From 8e4cfc50627cd3e321ef2db4f798e46698a2fbb8 Mon Sep 17 00:00:00 2001 From: Hendrik Liebau Date: Wed, 29 Apr 2026 10:20:37 +0200 Subject: [PATCH 1/9] Honor the route-level `expire` value with blocking revalidation (#93211) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A prerendered route's `expire` — set via `cacheLife({ expire })` inside `'use cache'` or via the `expireTime` config fallback — lands in the prerender manifest as `initialExpireSeconds` / `fallbackExpire` (#76207), but the runtime never read it: `IncrementalCache.get` only considered `revalidate`. So past expire, Next.js served stale with a background refresh instead of the blocking regeneration the `cacheLife` `expire` docs describe. The fix is three coordinated changes. The render-time `responseGenerator` in `app-page.ts`, `app-route.ts`, and `pages-handler.ts` now applies the `expireTime` fallback as soon as it has the render's `cacheControl`, so every downstream consumer (the cache stored via `IncrementalCache.set`, the response `Cache-Control` header, the entry returned to `handleResponse`) sees a finalized `cacheControl` with a populated `expire` — mirroring the build-time fallback. `IncrementalCache.get` then returns `isStale = -1` when `lastModified + expire * 1000 < now`, and `response-cache.handleGet` skips its early `resolve(previousEntry)` for `isStale === -1` so the blocking revalidation inside `responseGenerator` (which already picks `BLOCKING_STATIC_RENDER` on that signal) can return its fresh output to the user. Previously the early resolve committed the stale value to the response first, so even though `responseGenerator` still ran a fresh render its output only warmed the cache for the next request. As a side effect this also closes the same early-resolve hole on the existing tag-expired `isStale = -1` path. On Vercel, ISR cache decisions live at the Proxy and the Proxy currently ignores `staleExpiration` (using a hard-coded one-year value instead). It is also expected, once it starts honoring `staleExpiration`, to pick up updated values from the `stale-while-revalidate` response header. Until that lands this change is only observable on `next start` — deploy-mode behavior is tracked independently of Next.js. Two test suites cover the new behavior. `test/production/app-dir/use-cache-expire` uses `cacheComponents` + `cacheLife({ expire: 300 })` with a custom cache handler that shifts `lastModified` via an `x-test-cache-age-offset-ms` header, exercising the fully-static shell, the partially-static route shell for a known param, and the partially-static fallback shell for unknown params. `test/e2e/app-dir/expire-time` covers classic ISR (`revalidate = 1`, `expireTime: 2`) with a real three-second wait and is `it.failing` on deploy, so it will flip the moment the Proxy honors the expire value. fixes #78269 --- packages/next/src/build/templates/app-page.ts | 19 +++++- .../next/src/build/templates/app-route.ts | 12 +++- .../src/server/lib/incremental-cache/index.ts | 53 ++++++++++------ .../next/src/server/response-cache/index.ts | 13 +++- .../route-modules/pages/pages-handler.ts | 20 +++++- test/cache-components-tests-manifest.json | 1 + test/e2e/app-dir/expire-time/app/layout.tsx | 11 ++++ test/e2e/app-dir/expire-time/app/page.tsx | 5 ++ .../app-dir/expire-time/expire-time.test.ts | 63 +++++++++++++++++++ test/e2e/app-dir/expire-time/next.config.js | 10 +++ .../app-dir/use-cache-expire/app/layout.tsx | 11 ++++ .../app/partially-static/[id]/page.tsx | 38 +++++++++++ .../use-cache-expire/app/static/page.tsx | 11 ++++ .../incremental-cache-handler.js | 30 +++++++++ .../app-dir/use-cache-expire/next.config.js | 7 +++ .../use-cache-expire/use-cache-expire.test.ts | 52 +++++++++++++++ 16 files changed, 331 insertions(+), 25 deletions(-) create mode 100644 test/e2e/app-dir/expire-time/app/layout.tsx create mode 100644 test/e2e/app-dir/expire-time/app/page.tsx create mode 100644 test/e2e/app-dir/expire-time/expire-time.test.ts create mode 100644 test/e2e/app-dir/expire-time/next.config.js create mode 100644 test/production/app-dir/use-cache-expire/app/layout.tsx create mode 100644 test/production/app-dir/use-cache-expire/app/partially-static/[id]/page.tsx create mode 100644 test/production/app-dir/use-cache-expire/app/static/page.tsx create mode 100644 test/production/app-dir/use-cache-expire/incremental-cache-handler.js create mode 100644 test/production/app-dir/use-cache-expire/next.config.js create mode 100644 test/production/app-dir/use-cache-expire/use-cache-expire.test.ts diff --git a/packages/next/src/build/templates/app-page.ts b/packages/next/src/build/templates/app-page.ts index a333aa84acc1..a31a0b382d2e 100644 --- a/packages/next/src/build/templates/app-page.ts +++ b/packages/next/src/build/templates/app-page.ts @@ -943,6 +943,23 @@ export async function handler( fetchMetrics, } = metadata + // Apply the `expireTime` fallback as soon as we have the render's + // `cacheControl`, so every downstream consumer (the cache stored via + // `incrementalCache.set`, the response Cache-Control header, the outgoing + // entry returned to `handleResponse`) sees a finalized `cacheControl` + // with a populated `expire`. This mirrors the build-time fallback in + // `build/index.ts` so we don't apply an expire to routes that opt out of + // revalidation entirely (`revalidate: false`) or that are dynamic + // (`revalidate: 0`). + if ( + cacheControl && + cacheControl.revalidate !== false && + cacheControl.revalidate > 0 && + cacheControl.expire === undefined + ) { + cacheControl.expire = nextConfig.expireTime + } + if (cacheTags) { headers[NEXT_CACHE_TAGS_HEADER] = cacheTags } @@ -1605,7 +1622,7 @@ export async function handler( cacheControl = { revalidate: cacheEntry.cacheControl.revalidate, - expire: cacheEntry.cacheControl?.expire ?? nextConfig.expireTime, + expire: cacheEntry.cacheControl.expire, } } // Otherwise if the revalidate value is false, then we should use the diff --git a/packages/next/src/build/templates/app-route.ts b/packages/next/src/build/templates/app-route.ts index 9d0599202428..0c9ec49dc59e 100644 --- a/packages/next/src/build/templates/app-route.ts +++ b/packages/next/src/build/templates/app-route.ts @@ -387,7 +387,17 @@ export async function handler( const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE - ? undefined + ? // Fall back to the global `expireTime` config when the + // route has a numeric `revalidate` but didn't declare an + // explicit `expire` (e.g. via `cacheLife`). This mirrors the + // build-time fallback in `build/index.ts` so cache entries + // and the response Cache-Control header agree on the route's + // effective expire. Routes that opt out of revalidation + // (`revalidate: false`) or that are dynamic (`revalidate: 0`) + // keep `expire: undefined`. + revalidate !== false && revalidate > 0 + ? nextConfig.expireTime + : undefined : context.renderOpts.collectedExpire // Create the cache entry for the response. diff --git a/packages/next/src/server/lib/incremental-cache/index.ts b/packages/next/src/server/lib/incremental-cache/index.ts index 16fcd8e2ad66..b75d862a07eb 100644 --- a/packages/next/src/server/lib/incremental-cache/index.ts +++ b/packages/next/src/server/lib/incremental-cache/index.ts @@ -590,26 +590,39 @@ export class IncrementalCache implements IncrementalCacheType { ctx.isFallback ) - isStale = - revalidateAfter !== false && revalidateAfter < now ? true : undefined - - // If the stale time couldn't be determined based on the revalidation - // time, we check if the tags are expired or stale. - if ( - isStale === undefined && - (cacheData?.value?.kind === CachedRouteKind.APP_PAGE || - cacheData?.value?.kind === CachedRouteKind.APP_ROUTE) - ) { - const tagsHeader = cacheData.value.headers?.[NEXT_CACHE_TAGS_HEADER] - - if (typeof tagsHeader === 'string') { - const cacheTags = tagsHeader.split(',') - - if (cacheTags.length > 0) { - if (areTagsExpired(cacheTags, lastModified)) { - isStale = -1 - } else if (areTagsStale(cacheTags, lastModified)) { - isStale = true + // If the route's `expire` time has passed, force a blocking revalidation + // by signalling `isStale = -1`. The response cache treats `-1` as "skip + // the early SWR resolve" and awaits a fresh render before the user sees a + // response. + const expireAfter = + typeof cacheControl?.expire === 'number' + ? cacheControl.expire * 1000 + lastModified + : undefined + + if (expireAfter !== undefined && expireAfter < now) { + isStale = -1 + } else { + isStale = + revalidateAfter !== false && revalidateAfter < now ? true : undefined + + // If the stale time couldn't be determined based on the revalidation + // time, we check if the tags are expired or stale. + if ( + isStale === undefined && + (cacheData?.value?.kind === CachedRouteKind.APP_PAGE || + cacheData?.value?.kind === CachedRouteKind.APP_ROUTE) + ) { + const tagsHeader = cacheData.value.headers?.[NEXT_CACHE_TAGS_HEADER] + + if (typeof tagsHeader === 'string') { + const cacheTags = tagsHeader.split(',') + + if (cacheTags.length > 0) { + if (areTagsExpired(cacheTags, lastModified)) { + isStale = -1 + } else if (areTagsStale(cacheTags, lastModified)) { + isStale = true + } } } } diff --git a/packages/next/src/server/response-cache/index.ts b/packages/next/src/server/response-cache/index.ts index 4981741e6c31..a29c9cf74c0f 100644 --- a/packages/next/src/server/response-cache/index.ts +++ b/packages/next/src/server/response-cache/index.ts @@ -335,7 +335,16 @@ export default class ResponseCache implements ResponseCacheBase { }) : null - if (previousIncrementalCacheEntry && !context.isOnDemandRevalidate) { + // `isStale === -1` signals that the entry is past its `expire` (either + // via an expired tag or, with `cacheLife({ expire })`, past the route's + // expire time in the prerender manifest). In that case we must NOT + // early-resolve with the stale value — instead we fall through to a + // blocking revalidation so the response returned to the user is fresh. + if ( + previousIncrementalCacheEntry && + !context.isOnDemandRevalidate && + previousIncrementalCacheEntry.isStale !== -1 + ) { resolve(previousIncrementalCacheEntry) resolved = true @@ -353,7 +362,7 @@ export default class ResponseCache implements ResponseCacheBase { context.isFallback, responseGenerator, previousIncrementalCacheEntry, - previousIncrementalCacheEntry !== null && !context.isOnDemandRevalidate, + resolved, undefined, context.invocationID ) diff --git a/packages/next/src/server/route-modules/pages/pages-handler.ts b/packages/next/src/server/route-modules/pages/pages-handler.ts index 2c6b62c1a80f..564c46827cb9 100644 --- a/packages/next/src/server/route-modules/pages/pages-handler.ts +++ b/packages/next/src/server/route-modules/pages/pages-handler.ts @@ -361,6 +361,24 @@ export const getHandler = ({ let cacheControl: CacheControl | undefined = metadata.cacheControl + // Apply the `expireTime` fallback as soon as we have the + // render's `cacheControl`, so every downstream consumer (the + // cache stored via `incrementalCache.set`, the response + // Cache-Control header, the outgoing entry returned from this + // responseGenerator) sees a finalized `cacheControl` with a + // populated `expire`. This mirrors the build-time fallback in + // `build/index.ts` so we don't apply an expire to routes that + // opt out of revalidation entirely (`revalidate: false`) or + // that are dynamic (`revalidate: 0`). + if ( + cacheControl && + cacheControl.revalidate !== false && + cacheControl.revalidate > 0 && + cacheControl.expire === undefined + ) { + cacheControl.expire = nextConfig.expireTime + } + if ('isNotFound' in metadata && metadata.isNotFound) { return { value: null, @@ -609,7 +627,7 @@ export const getHandler = ({ } cacheControl = { revalidate: result.cacheControl.revalidate, - expire: result.cacheControl?.expire ?? nextConfig.expireTime, + expire: result.cacheControl.expire, } } else { // revalidate: false diff --git a/test/cache-components-tests-manifest.json b/test/cache-components-tests-manifest.json index 215b6029f175..0470ac161e51 100644 --- a/test/cache-components-tests-manifest.json +++ b/test/cache-components-tests-manifest.json @@ -169,6 +169,7 @@ "test/e2e/app-dir/error-boundary-navigation/index.test.ts", "test/e2e/app-dir/error-boundary-navigation/override-node-env.test.ts", "test/e2e/app-dir/errors/index.test.ts", + "test/e2e/app-dir/expire-time/**/*", "test/e2e/app-dir/fallback-prefetch/fallback-prefetch.test.ts", "test/e2e/app-dir/fallback-shells/**/*", "test/e2e/app-dir/forbidden/basic/forbidden-basic.test.ts", diff --git a/test/e2e/app-dir/expire-time/app/layout.tsx b/test/e2e/app-dir/expire-time/app/layout.tsx new file mode 100644 index 000000000000..08eaa94fdc88 --- /dev/null +++ b/test/e2e/app-dir/expire-time/app/layout.tsx @@ -0,0 +1,11 @@ +export default function RootLayout({ + children, +}: { + children: React.ReactNode +}) { + return ( + + {children} + + ) +} diff --git a/test/e2e/app-dir/expire-time/app/page.tsx b/test/e2e/app-dir/expire-time/app/page.tsx new file mode 100644 index 000000000000..5189a46d28f7 --- /dev/null +++ b/test/e2e/app-dir/expire-time/app/page.tsx @@ -0,0 +1,5 @@ +export const revalidate = 2 + +export default async function Page() { + return

{new Date().toISOString()}

+} diff --git a/test/e2e/app-dir/expire-time/expire-time.test.ts b/test/e2e/app-dir/expire-time/expire-time.test.ts new file mode 100644 index 000000000000..a80dfb5fe702 --- /dev/null +++ b/test/e2e/app-dir/expire-time/expire-time.test.ts @@ -0,0 +1,63 @@ +import { nextTestSetup } from 'e2e-utils' +import { retry } from 'next-test-utils' + +describe('expire-time', () => { + const { next, isNextDeploy } = nextTestSetup({ + files: __dirname, + }) + + // On Vercel, ISR cache decisions happen at the Proxy layer. The Vercel + // builder reads the route's `expire` value (Next.js's `initialExpireSeconds` + // in the prerender manifest, which the build derives from `expireTime` when + // no explicit `cacheLife` expire is set) and passes it to the Proxy as + // `staleExpiration`. The Proxy is also expected, once implemented, to read + // updated values from Next.js's `stale-while-revalidate` response header on + // subsequent revalidations. Today the Proxy ignores the expire value entirely + // and treats it as one year. Past `expireTime` it serves stale with a + // background revalidation instead of a blocking prerender. When Proxy is + // updated to honor the expire value, this test will start passing in deploy + // mode and `it.failing` will itself fail. That's the signal to flip it back + // to `it`. + const itFailsWhenDeployed = isNextDeploy ? it.failing : it + + /* eslint-disable jest/no-standalone-expect */ + itFailsWhenDeployed( + 'should do a blocking revalidation when the cache entry has expired', + async () => { + const $first = await next.render$('/') + const v1 = $first('#value').text() + expect(v1).toBeDateString() + + // The first request might trigger a background revalidation if the + // prerender document is already older than the configured revalidate + // time. So we refetch until we get a different value than the first one. + let v2: string + await retry( + async () => { + const $second = await next.render$('/') + v2 = $second('#value').text() + expect(v2).toBeDateString() + expect(v2).not.toBe(v1) + }, + 4_000, + 200 + ) + + // Wait past the `expireTime` (10 s). The next request must trigger a + // blocking prerender, not stale-while-revalidate — so the response + // returned right here carries a freshly-computed value. + await new Promise((resolve) => setTimeout(resolve, 10_000)) + + const $third = await next.render$('/') + const v3 = $third('#value').text() + expect(v3).toBeDateString() + + // This should be a new value, not the expired previous one, and + // especially not the expired prerendered one. + expect(v3).not.toBe(v2) + expect(v3).not.toBe(v1) + console.log({ v1, v2, v3 }) + } + ) + /* eslint-enable jest/no-standalone-expect */ +}) diff --git a/test/e2e/app-dir/expire-time/next.config.js b/test/e2e/app-dir/expire-time/next.config.js new file mode 100644 index 000000000000..e92f6ebf41ba --- /dev/null +++ b/test/e2e/app-dir/expire-time/next.config.js @@ -0,0 +1,10 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + // When a route has `export const revalidate = N` but no explicit `expire` + // (e.g. no `cacheLife`), the build falls back to `expireTime` for the route's + // `initialExpireSeconds` in the prerender manifest. Keep this low so the test + // can wait past it without slowing CI down. + expireTime: 10, +} + +module.exports = nextConfig diff --git a/test/production/app-dir/use-cache-expire/app/layout.tsx b/test/production/app-dir/use-cache-expire/app/layout.tsx new file mode 100644 index 000000000000..08eaa94fdc88 --- /dev/null +++ b/test/production/app-dir/use-cache-expire/app/layout.tsx @@ -0,0 +1,11 @@ +export default function RootLayout({ + children, +}: { + children: React.ReactNode +}) { + return ( + + {children} + + ) +} diff --git a/test/production/app-dir/use-cache-expire/app/partially-static/[id]/page.tsx b/test/production/app-dir/use-cache-expire/app/partially-static/[id]/page.tsx new file mode 100644 index 000000000000..7467bf69f930 --- /dev/null +++ b/test/production/app-dir/use-cache-expire/app/partially-static/[id]/page.tsx @@ -0,0 +1,38 @@ +import { cacheLife } from 'next/cache' +import { connection } from 'next/server' +import { Suspense } from 'react' + +async function getValue() { + 'use cache' + cacheLife({ revalidate: 60, expire: 300 }) + return new Date().toISOString() +} + +export function generateStaticParams() { + return [{ id: 'known' }] +} + +export default async function Page({ + params, +}: { + params: Promise<{ id: string }> +}) { + return ( + <> +

{await getValue()}

+ loading

}> + +
+ + ) +} + +async function DynamicPart({ params }: { params: Promise<{ id: string }> }) { + const { id } = await params + await connection() + return ( +

+ {id} - {new Date().toISOString()} +

+ ) +} diff --git a/test/production/app-dir/use-cache-expire/app/static/page.tsx b/test/production/app-dir/use-cache-expire/app/static/page.tsx new file mode 100644 index 000000000000..e2a0db13ec7d --- /dev/null +++ b/test/production/app-dir/use-cache-expire/app/static/page.tsx @@ -0,0 +1,11 @@ +import { cacheLife } from 'next/cache' + +async function getValue() { + 'use cache' + cacheLife({ revalidate: 60, expire: 300 }) + return new Date().toISOString() +} + +export default async function Page() { + return

{await getValue()}

+} diff --git a/test/production/app-dir/use-cache-expire/incremental-cache-handler.js b/test/production/app-dir/use-cache-expire/incremental-cache-handler.js new file mode 100644 index 000000000000..a2acf46af731 --- /dev/null +++ b/test/production/app-dir/use-cache-expire/incremental-cache-handler.js @@ -0,0 +1,30 @@ +const { + default: FileSystemCache, +} = require('next/dist/server/lib/incremental-cache/file-system-cache') + +/** + * A FileSystemCache variant that lets a test simulate the passage of time by + * shifting the `lastModified` timestamp of a cached entry into the past. The + * offset is controlled per-request via the `x-test-cache-age-offset-ms` header + * so tests can skip over `expire` windows (e.g. 5 minutes) without actually + * waiting. + */ +module.exports = class IncrementalCacheHandler extends FileSystemCache { + constructor(ctx) { + super(ctx) + this.requestHeaders = ctx._requestHeaders + } + + async get(key, ctx) { + const result = await super.get(key, ctx) + + const offsetHeader = this.requestHeaders?.['x-test-cache-age-offset-ms'] + const offsetMs = typeof offsetHeader === 'string' ? Number(offsetHeader) : 0 + + if (result && offsetMs > 0 && !ctx.fetchCache) { + return { ...result, lastModified: result.lastModified - offsetMs } + } + + return result + } +} diff --git a/test/production/app-dir/use-cache-expire/next.config.js b/test/production/app-dir/use-cache-expire/next.config.js new file mode 100644 index 000000000000..99fe6353de3a --- /dev/null +++ b/test/production/app-dir/use-cache-expire/next.config.js @@ -0,0 +1,7 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + cacheComponents: true, + cacheHandler: require.resolve('./incremental-cache-handler'), +} + +module.exports = nextConfig diff --git a/test/production/app-dir/use-cache-expire/use-cache-expire.test.ts b/test/production/app-dir/use-cache-expire/use-cache-expire.test.ts new file mode 100644 index 000000000000..d9cf8fa92469 --- /dev/null +++ b/test/production/app-dir/use-cache-expire/use-cache-expire.test.ts @@ -0,0 +1,52 @@ +import { nextTestSetup } from 'e2e-utils' + +// Lives under `test/production` so it only runs in `next start` mode. In dev +// mode the default in-memory `'use cache'` handler would return the cached +// function value on re-render (we don't fake time for the function-level +// cache), so the observable wouldn't change even when the ISR layer does a +// blocking revalidation. Deploy mode is also out of scope: on Vercel the ISR +// cache decision is made at the Proxy layer before the lambda runs, and +// Proxy-side behavior is covered by Proxy's own tests. The companion suite +// `test/e2e/app-dir/expire-time` covers the same `IncrementalCache` / +// response-cache change via classic ISR (no `use cache`, no custom handler, +// short `expireTime`) and runs in deploy mode. +describe('use-cache-expire', () => { + const { next } = nextTestSetup({ + files: __dirname, + }) + + async function expectBlockingRevalidation(path: string) { + const $first = await next.render$(path) + const v0 = $first('#value').text() + expect(v0).toBeTruthy() + + const $second = await next.render$(path, undefined, { + // Shift the ISR entry's `lastModified` past `expire` (301 s). Once past + // `expire`, the next request must trigger a blocking prerender — not + // stale-while-revalidate — so the response carries a freshly-computed + // value rather than the previous cached one. + headers: { 'x-test-cache-age-offset-ms': String(301 * 1000) }, + }) + const v1 = $second('#value').text() + + expect(v1).not.toBe(v0) + } + + it('should blocking-revalidate a fully static shell past expire', async () => { + await expectBlockingRevalidation('/static') + }) + + it('should blocking-revalidate a partially-static route shell past expire', async () => { + // Hits the prerendered route shell for the known `generateStaticParams` + // entry, whose static portion contains the cached `getValue()`. + await expectBlockingRevalidation('/partially-static/known') + }) + + it('should blocking-revalidate a partially-static fallback shell past expire', async () => { + // Hits the fallback shell for an unknown param (not in + // `generateStaticParams`). The cached `getValue()` lives above the Suspense + // boundary in the fallback shell itself, so the same past-expire blocking + // behavior must apply there too. + await expectBlockingRevalidation('/partially-static/unknown') + }) +}) From 668094edce26ce888e59e0f5a81966bd68d991ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=98=8A?= <45807027+GuinsooRocky@users.noreply.github.com> Date: Wed, 29 Apr 2026 17:05:11 +0800 Subject: [PATCH 2/9] Turbopack: add `experimental.turbopackWorkerAssetPrefix` to keep Workers same-origin when `assetPrefix` is a CDN (#93271) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What? Adds `experimental.turbopackWorkerAssetPrefix` — a Turbopack counterpart to webpack's [`output.workerPublicPath`](https://webpack.js.org/configuration/output/#outputworkerpublicpath). Opt-in, off by default, fully backward compatible. ```js // next.config.js module.exports = { assetPrefix: 'https://cdn.example.com', experimental: { // Same shape as `assetPrefix`: bare prefix, no trailing slash, no `/_next`. // `/_next/` is appended automatically. `''` → same-origin `/_next/...`. turbopackWorkerAssetPrefix: '', }, } ``` ### Why? When `assetPrefix` points to a cross-origin CDN (common production setup), Turbopack emits Worker URLs under that CDN origin. Browsers reject cross-origin `new Worker(url)` with `SecurityError`, breaking every feature that uses `new Worker(new URL('./worker.ts', import.meta.url))` — image decoders, WebP/GIF renderers, compression, OffscreenCanvas, etc. webpack solved this with `output.workerPublicPath`. Turbopack ignores the `webpack()` callback in `next.config.js`, so the existing same-origin workaround silently breaks when projects switch to Turbopack. Full design doc, alternatives considered, related issues (#88602, #92676, #74621, #29468): **#93044** Repro repo (`pnpm dev` reproduces, `pnpm dev:webpack` works): https://github.com/GuinsooRocky/next-turbopack-worker-cdn-repro ### How? Threads a new optional `turbopack_worker_asset_prefix: Option` from `ExperimentalConfig` → `BrowserChunkingContext` → the JS runtime, where `createWorker` reads it via a new `WORKER_BASE_PATH` global emitted alongside the existing `CHUNK_BASE_PATH`. When unset, behavior is identical to today. Semantics, modeled on `assetPrefix`: - **Bare prefix.** `/_next/` is appended automatically (same as `computed_asset_prefix`); the user supplies just the origin (or empty string for same-origin). - **`undefined` vs `''`.** `undefined` falls back to the regular chunk base path; `''` is a literal empty prefix that resolves to same-origin `/_next/...`. The runtime distinguishes the two by injecting a JS `null` literal vs a quoted string, and uses `WORKER_BASE_PATH ?? CHUNK_BASE_PATH` (not `||`). - **Applies to entrypoint and module chunks.** The Turbopack worker bootstrap rejects cross-origin module chunks (`Refusing to load script from foreign origin`), so the override has to cover both — overriding only the entrypoint would leave the worker unable to load any chunks under a cross-origin `assetPrefix`. Touchpoints: - `packages/next/src/server/config-{shared,schema}.ts` — public option + zod under `experimental` - `crates/next-{api,core}/...` — wiring through to `ClientChunkingContextOptions`; `NextConfig::turbopack_worker_asset_prefix()` resolves to `Some("/_next/")` or `None` - `turbopack/crates/turbopack-browser/src/chunking_context.rs` — new field + builder + getter - `turbopack/crates/turbopack-ecmascript-runtime/src/browser_runtime.rs` — emit `WORKER_BASE_PATH` declaration as `null` or a quoted string - `turbopack/.../runtime-base.ts` — `createWorker` resolves `workerBasePath` and uses it for both the entrypoint URL and module-chunk URLs delivered via params - `test/e2e/turbopack-worker-asset-prefix/` — e2e fixture using real cross-origin (`localhost` page, `127.0.0.1` `assetPrefix`); intercepts `new Worker()` to assert on the URL the runtime helper resolved. Three cases: no override (cross-origin URL → `SecurityError`), explicit override origin, and `''` (relative `/_next/...`). - `docs/01-app/03-api-reference/08-turbopack.mdx` — option reference - `telemetry/events/version.ts` — `useTurbopackWorkerAssetPrefix: boolean` (set on any explicit value, including empty string) ### Notes - Opening as **Draft** to invite API-shape feedback before going to review. Per the contributing guide, the design discussion is at #93044. - All checklist items the PR template requires for a feature are covered: e2e tests, docs, telemetry, no error-link path applies. cc @sokra Closes #93044 --------- Co-authored-by: Tobias Koppers --- crates/next-api/src/project.rs | 1 + crates/next-core/src/next_client/context.rs | 3 + crates/next-core/src/next_config.rs | 23 +++ docs/01-app/03-api-reference/08-turbopack.mdx | 39 ++--- packages/next/src/server/config-schema.ts | 1 + packages/next/src/server/config-shared.ts | 31 ++++ packages/next/src/telemetry/events/version.ts | 4 + .../app/client.tsx | 56 +++++++ .../app/layout.tsx | 11 ++ .../app/page.tsx | 5 + .../app/worker.ts | 3 + .../turbopack-worker-asset-prefix.test.ts | 148 ++++++++++++++++++ .../turbopack-browser/src/chunking_context.rs | 22 +++ .../src/ecmascript/evaluate/chunk.rs | 1 + .../src/browser/runtime/base/runtime-base.ts | 32 +++- .../src/browser_runtime.rs | 11 ++ ...bug-ids_browser_input_index_19boa0e.js.map | 14 +- ...t_debug-ids_browser_input_index_19boa0e.js | 18 ++- ...ult_dev_runtime_input_index_17smy-b.js.map | 12 +- ...default_dev_runtime_input_index_17smy-b.js | 14 +- ...orms_preset_env_input_index_04jskxh.js.map | 8 +- ...ansforms_preset_env_input_index_04jskxh.js | 13 +- ...t_workers_basic_input_index_09-gc7x.js.map | 12 +- ..._workers_basic_input_worker_0yr5fg0.js.map | 12 +- ...pshot_workers_basic_input_index_09-gc7x.js | 14 +- ...shot_workers_basic_input_worker_0yr5fg0.js | 14 +- ..._workers_shared_input_index_0arnewp.js.map | 12 +- ...workers_shared_input_worker_1xw116u.js.map | 12 +- ...shot_workers_shared_input_index_0arnewp.js | 14 +- ...hot_workers_shared_input_worker_1xw116u.js | 14 +- 30 files changed, 481 insertions(+), 93 deletions(-) create mode 100644 test/e2e/turbopack-worker-asset-prefix/app/client.tsx create mode 100644 test/e2e/turbopack-worker-asset-prefix/app/layout.tsx create mode 100644 test/e2e/turbopack-worker-asset-prefix/app/page.tsx create mode 100644 test/e2e/turbopack-worker-asset-prefix/app/worker.ts create mode 100644 test/e2e/turbopack-worker-asset-prefix/turbopack-worker-asset-prefix.test.ts diff --git a/crates/next-api/src/project.rs b/crates/next-api/src/project.rs index 611251d188c8..92ad18d04549 100644 --- a/crates/next-api/src/project.rs +++ b/crates/next-api/src/project.rs @@ -1589,6 +1589,7 @@ impl Project { .next_config() .turbo_nested_async_chunking(self.next_mode(), true), debug_ids: self.next_config().turbopack_debug_ids(), + worker_asset_prefix: self.next_config().turbopack_worker_asset_prefix(), should_use_absolute_url_references: self.next_config().inline_css(), css_url_suffix, hash_salt: self.next_config().output_hash_salt().to_resolved().await?, diff --git a/crates/next-core/src/next_client/context.rs b/crates/next-core/src/next_client/context.rs index 9892fa9858a9..0b60f88bbbae 100644 --- a/crates/next-core/src/next_client/context.rs +++ b/crates/next-core/src/next_client/context.rs @@ -477,6 +477,7 @@ pub struct ClientChunkingContextOptions { pub scope_hoisting: Vc, pub nested_async_chunking: Vc, pub debug_ids: Vc, + pub worker_asset_prefix: Vc>, pub should_use_absolute_url_references: Vc, pub css_url_suffix: Vc>, pub hash_salt: ResolvedVc, @@ -504,6 +505,7 @@ pub async fn get_client_chunking_context( scope_hoisting, nested_async_chunking, debug_ids, + worker_asset_prefix, should_use_absolute_url_references, css_url_suffix, hash_salt, @@ -544,6 +546,7 @@ pub async fn get_client_chunking_context( .unused_references(unused_references.to_resolved().await?) .module_id_strategy(module_id_strategy.to_resolved().await?) .debug_ids(*debug_ids.await?) + .worker_asset_prefix(worker_asset_prefix.owned().await?) .should_use_absolute_url_references(*should_use_absolute_url_references.await?) .nested_async_availability(*nested_async_chunking.await?) .worker_forwarded_globals(worker_forwarded_globals()) diff --git a/crates/next-core/src/next_config.rs b/crates/next-core/src/next_config.rs index 195b19751d22..623baf673678 100644 --- a/crates/next-core/src/next_config.rs +++ b/crates/next-core/src/next_config.rs @@ -1157,6 +1157,17 @@ pub struct ExperimentalConfig { turbopack_input_source_maps: Option, turbopack_tree_shaking: Option, turbopack_scope_hoisting: Option, + /// Custom URL prefix for Web Worker URLs (the entrypoint and the module + /// chunks loaded inside the worker) produced by + /// `new Worker(new URL(..., import.meta.url))`. Mirrors webpack's + /// `output.workerPublicPath`. When unset, Worker URLs use the regular + /// chunk base path (i.e. `assetPrefix` + `/_next/`). + /// + /// Like `assetPrefix`, the value is a prefix without a trailing slash + /// and without `/_next` — `/_next/` is appended automatically. An empty + /// string is a literal empty prefix; only `None` falls back to + /// `assetPrefix`. + turbopack_worker_asset_prefix: Option, turbopack_client_side_nested_async_chunking: Option, turbopack_server_side_nested_async_chunking: Option, turbopack_import_type_bytes: Option, @@ -2273,6 +2284,18 @@ impl NextConfig { ) } + /// Returns the resolved worker chunk base path with `/_next/` appended, + /// or `None` to fall back to the regular chunk base path. + #[turbo_tasks::function] + pub fn turbopack_worker_asset_prefix(&self) -> Vc> { + Vc::cell( + self.experimental + .turbopack_worker_asset_prefix + .as_ref() + .map(|prefix| format!("{}/_next/", prefix.trim_end_matches('/')).into()), + ) + } + #[turbo_tasks::function] pub fn typescript_tsconfig_path(&self) -> Result>> { Ok(Vc::cell( diff --git a/docs/01-app/03-api-reference/08-turbopack.mdx b/docs/01-app/03-api-reference/08-turbopack.mdx index 854407db3bee..c9b93ab0e8ac 100644 --- a/docs/01-app/03-api-reference/08-turbopack.mdx +++ b/docs/01-app/03-api-reference/08-turbopack.mdx @@ -369,25 +369,26 @@ Turbopack can be configured via `next.config.js` (or `next.config.ts`) under the Additionally, the following experimental options are available under `experimental` in `next.config.js`: -| Option | Description | Default (dev) | Default (build) | -| ------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- | ------------- | ----------------------------- | -| [`turbopackFileSystemCacheForDev`](/docs/app/api-reference/config/next-config-js/turbopackFileSystemCache) | Enable filesystem cache for the dev server. | `true` | N/A | -| [`turbopackFileSystemCacheForBuild`](/docs/app/api-reference/config/next-config-js/turbopackFileSystemCache) | Enable filesystem cache for builds. | N/A | `false` | -| `turbopackMinify` | Enable minification. | `false` | `true` | -| `turbopackSourceMaps` | Enable source maps. | `true` | `productionBrowserSourceMaps` | -| `turbopackInputSourceMaps` | Enable extraction of source maps from input files. | `true` | `true` | -| `turbopackTreeShaking` | Use advanced module-fragments tree shaking instead of the default reexports-only mode. | `false` | `false` | -| `turbopackRemoveUnusedImports` | Enable removing unused imports. Requires `turbopackRemoveUnusedExports`. | `false` | `true` | -| `turbopackRemoveUnusedExports` | Enable removing unused exports. | `false` | `true` | -| `turbopackInferModuleSideEffects` | Enable local analysis to infer side-effect-free modules for better tree shaking. | `true` | `true` | -| `turbopackScopeHoisting` | Enable scope hoisting. Always disabled in dev mode. | `false` | `true` | -| `turbopackClientSideNestedAsyncChunking` | Enable nested async chunking for client-side assets. | `false` | `true` | -| `turbopackServerSideNestedAsyncChunking` | Enable nested async chunking for server-side assets. | `false` | `false` | -| `turbopackImportTypeBytes` | Enable support for `with {type: "bytes"}` for ESM imports. | `false` | `false` | -| `turbopackUseBuiltinBabel` | Enable automatic Babel loader configuration when a Babel config file is present. | `true` | `true` | -| `turbopackUseBuiltinSass` | Enable automatic Sass loader configuration. | `true` | `true` | -| `turbopackModuleIds` | Module ID strategy: `'named'` or `'deterministic'`. | `'named'` | `'deterministic'` | -| [`turbopackLocalPostcssConfig`](/docs/app/api-reference/config/next-config-js/turbopackLocalPostcssConfig) | Resolve `postcss.config.js` from the CSS file's directory first, then the project root. | `false` | `false` | +| Option | Description | Default (dev) | Default (build) | +| ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ----------------------------- | +| [`turbopackFileSystemCacheForDev`](/docs/app/api-reference/config/next-config-js/turbopackFileSystemCache) | Enable filesystem cache for the dev server. | `true` | N/A | +| [`turbopackFileSystemCacheForBuild`](/docs/app/api-reference/config/next-config-js/turbopackFileSystemCache) | Enable filesystem cache for builds. | N/A | `false` | +| `turbopackMinify` | Enable minification. | `false` | `true` | +| `turbopackSourceMaps` | Enable source maps. | `true` | `productionBrowserSourceMaps` | +| `turbopackInputSourceMaps` | Enable extraction of source maps from input files. | `true` | `true` | +| `turbopackTreeShaking` | Use advanced module-fragments tree shaking instead of the default reexports-only mode. | `false` | `false` | +| `turbopackRemoveUnusedImports` | Enable removing unused imports. Requires `turbopackRemoveUnusedExports`. | `false` | `true` | +| `turbopackRemoveUnusedExports` | Enable removing unused exports. | `false` | `true` | +| `turbopackInferModuleSideEffects` | Enable local analysis to infer side-effect-free modules for better tree shaking. | `true` | `true` | +| `turbopackScopeHoisting` | Enable scope hoisting. Always disabled in dev mode. | `false` | `true` | +| `turbopackClientSideNestedAsyncChunking` | Enable nested async chunking for client-side assets. | `false` | `true` | +| `turbopackServerSideNestedAsyncChunking` | Enable nested async chunking for server-side assets. | `false` | `false` | +| `turbopackImportTypeBytes` | Enable support for `with {type: "bytes"}` for ESM imports. | `false` | `false` | +| `turbopackUseBuiltinBabel` | Enable automatic Babel loader configuration when a Babel config file is present. | `true` | `true` | +| `turbopackUseBuiltinSass` | Enable automatic Sass loader configuration. | `true` | `true` | +| `turbopackModuleIds` | Module ID strategy: `'named'` or `'deterministic'`. | `'named'` | `'deterministic'` | +| [`turbopackLocalPostcssConfig`](/docs/app/api-reference/config/next-config-js/turbopackLocalPostcssConfig) | Resolve `postcss.config.js` from the CSS file's directory first, then the project root. | `false` | `false` | +| `turbopackWorkerAssetPrefix` | Custom asset prefix for Web Worker URLs (entrypoint + module chunks), overriding `assetPrefix`. Mirrors webpack's `output.workerPublicPath`. | `undefined` | `undefined` | ```js filename="next.config.js" module.exports = { diff --git a/packages/next/src/server/config-schema.ts b/packages/next/src/server/config-schema.ts index 98c9fa788fe7..dd81aa12c619 100644 --- a/packages/next/src/server/config-schema.ts +++ b/packages/next/src/server/config-schema.ts @@ -362,6 +362,7 @@ export const experimentalSchema = { turbopackRemoveUnusedImports: z.boolean().optional(), turbopackRemoveUnusedExports: z.boolean().optional(), turbopackScopeHoisting: z.boolean().optional(), + turbopackWorkerAssetPrefix: z.string().optional(), turbopackClientSideNestedAsyncChunking: z.boolean().optional(), turbopackServerSideNestedAsyncChunking: z.boolean().optional(), turbopackImportTypeBytes: z.boolean().optional(), diff --git a/packages/next/src/server/config-shared.ts b/packages/next/src/server/config-shared.ts index 9f61694f4804..6bfc0919201f 100644 --- a/packages/next/src/server/config-shared.ts +++ b/packages/next/src/server/config-shared.ts @@ -674,6 +674,37 @@ export interface ExperimentalConfig { */ turbopackScopeHoisting?: boolean + /** + * (`next --turbopack` only) A custom URL prefix for Web Worker URLs + * produced by `new Worker(new URL(..., import.meta.url))` — both the + * entrypoint URL and the module chunks loaded inside the worker — + * overriding `assetPrefix` for those URLs. + * + * Use this when `assetPrefix` points to a cross-origin CDN: browsers + * reject cross-origin Worker construction, so the entrypoint must stay + * same-origin. Module chunks loaded inside the worker are also routed + * through this prefix because the worker bootstrap requires them to be + * same-origin with the entrypoint. Mirrors webpack's + * `output.workerPublicPath`. + * + * Like `assetPrefix`, the value is a prefix without a trailing slash and + * without `/_next` — `/_next/` is appended automatically. An empty + * string is treated as a literal empty prefix (resulting in same-origin + * `/_next/...` URLs); only `undefined` falls back to `assetPrefix`. + * + * @example + * ```js + * // next.config.js + * module.exports = { + * assetPrefix: 'https://cdn.example.com', + * experimental: { + * turbopackWorkerAssetPrefix: '', + * }, + * } + * ``` + */ + turbopackWorkerAssetPrefix?: string + /** * Enable nested async chunking for client side assets. Defaults to true in build mode and false in dev mode. * This optimization computes all possible paths through dynamic imports in the applications to figure out the modules needed at dynamic imports for every path. diff --git a/packages/next/src/telemetry/events/version.ts b/packages/next/src/telemetry/events/version.ts index 1d755f8335c1..ac93ef53a018 100644 --- a/packages/next/src/telemetry/events/version.ts +++ b/packages/next/src/telemetry/events/version.ts @@ -32,6 +32,7 @@ type EventCliSessionStarted = { reactStrictMode: boolean webpackVersion: number | null turboFlag: boolean + useTurbopackWorkerAssetPrefix: boolean isRspack: boolean appDir: boolean | null pagesDir: boolean | null @@ -77,6 +78,7 @@ export function eventCliSession( | 'reactCompilerPanicThreshold' | 'isRspack' | 'adapterPath' + | 'useTurbopackWorkerAssetPrefix' > ): { eventName: string; payload: EventCliSessionStarted }[] { // This should be an invariant, if it fails our build tooling is broken. @@ -120,6 +122,8 @@ export function eventCliSession( reactStrictMode: !!nextConfig?.reactStrictMode, webpackVersion: event.webpackVersion || null, turboFlag: event.turboFlag || false, + useTurbopackWorkerAssetPrefix: + nextConfig?.experimental?.turbopackWorkerAssetPrefix !== undefined, isRspack: process.env.NEXT_RSPACK !== undefined, appDir: event.appDir, pagesDir: event.pagesDir, diff --git a/test/e2e/turbopack-worker-asset-prefix/app/client.tsx b/test/e2e/turbopack-worker-asset-prefix/app/client.tsx new file mode 100644 index 000000000000..f2f67b5bfee7 --- /dev/null +++ b/test/e2e/turbopack-worker-asset-prefix/app/client.tsx @@ -0,0 +1,56 @@ +'use client' + +import { useEffect, useState } from 'react' + +const NONE = '(none)' + +export default function ClientComponent() { + const [pageOrigin, setPageOrigin] = useState(NONE) + const [workerCtorUrl, setWorkerCtorUrl] = useState(NONE) + const [workerCtorError, setWorkerCtorError] = useState(NONE) + + useEffect(() => { + setPageOrigin(window.location.origin) + + // Capture the URL the Worker constructor receives (computed by the + // turbopack runtime helper from `turbopackWorkerAssetPrefix`), so the + // test can assert on it. Browsers reject cross-origin Worker URLs + // synchronously, so we surface that too. + const OriginalWorker = window.Worker + ;(window as any).Worker = function PatchedWorker( + url: URL | string, + options?: object + ) { + const urlString = typeof url === 'string' ? url : url.toString() + setWorkerCtorUrl(urlString) + try { + return new OriginalWorker(url, options) + } catch (err) { + setWorkerCtorError(err instanceof Error ? err.name : String(err)) + throw err + } + } + + try { + // Trigger the turbopack `new Worker(new URL(..., import.meta.url))` + // pattern. Result is intercepted by the patched Worker above. + + new Worker(new URL('./worker.ts', import.meta.url)) + } catch { + // Already captured by the patched constructor; React state will + // reflect it on the next render. + } + ;(window as any).Worker = OriginalWorker + }, []) + + return ( + <> +

page origin:

+
{pageOrigin}
+

URL passed to the Worker constructor (from runtime helper):

+
{workerCtorUrl}
+

Worker constructor error (if any):

+
{workerCtorError}
+ + ) +} diff --git a/test/e2e/turbopack-worker-asset-prefix/app/layout.tsx b/test/e2e/turbopack-worker-asset-prefix/app/layout.tsx new file mode 100644 index 000000000000..08eaa94fdc88 --- /dev/null +++ b/test/e2e/turbopack-worker-asset-prefix/app/layout.tsx @@ -0,0 +1,11 @@ +export default function RootLayout({ + children, +}: { + children: React.ReactNode +}) { + return ( + + {children} + + ) +} diff --git a/test/e2e/turbopack-worker-asset-prefix/app/page.tsx b/test/e2e/turbopack-worker-asset-prefix/app/page.tsx new file mode 100644 index 000000000000..0fe3d266b263 --- /dev/null +++ b/test/e2e/turbopack-worker-asset-prefix/app/page.tsx @@ -0,0 +1,5 @@ +import ClientComponent from './client' + +export default function Page() { + return +} diff --git a/test/e2e/turbopack-worker-asset-prefix/app/worker.ts b/test/e2e/turbopack-worker-asset-prefix/app/worker.ts new file mode 100644 index 000000000000..e46c97e20267 --- /dev/null +++ b/test/e2e/turbopack-worker-asset-prefix/app/worker.ts @@ -0,0 +1,3 @@ +// Post back the worker's own origin so the main thread can verify whether the +// worker entrypoint was loaded same-origin or cross-origin. +self.postMessage(self.location.origin) diff --git a/test/e2e/turbopack-worker-asset-prefix/turbopack-worker-asset-prefix.test.ts b/test/e2e/turbopack-worker-asset-prefix/turbopack-worker-asset-prefix.test.ts new file mode 100644 index 000000000000..3eb92f5d21a3 --- /dev/null +++ b/test/e2e/turbopack-worker-asset-prefix/turbopack-worker-asset-prefix.test.ts @@ -0,0 +1,148 @@ +import { createNext, isNextDeploy } from 'e2e-utils' +import type { NextInstance } from 'e2e-utils' +import { findPort, retry } from 'next-test-utils' + +// `experimental.turbopackWorkerAssetPrefix` is turbopack-only. +const isTurbopack = !process.env.IS_WEBPACK_TEST +const describeTurbopack = + isTurbopack && !isNextDeploy ? describe : describe.skip + +// CORS so cross-origin script tags from `assetPrefix` can be fetched. Workers +// are NOT covered by CORS — `new Worker(crossOriginUrl)` is rejected +// regardless — so this only unblocks regular script loading. +const corsHeaders = () => ({ + async headers() { + return [ + { + source: '/:path*', + headers: [{ key: 'Access-Control-Allow-Origin', value: '*' }], + }, + ] + }, +}) + +/** + * Real cross-origin setup: the page is served at `http://localhost:PORT/`, + * `assetPrefix` points to `http://127.0.0.1:PORT` (different origin — + * browsers treat `localhost` and `127.0.0.1` as distinct origins). Both + * resolve to the same Next.js server bound to all interfaces. + * + * The fixture intercepts `new Worker()` to capture the URL the turbopack + * runtime helper resolved from `turbopackWorkerAssetPrefix`, so each test + * can assert on that URL directly. + */ +describeTurbopack('turbopack-worker-asset-prefix', () => { + describe('without turbopackWorkerAssetPrefix (cross-origin assetPrefix)', () => { + let next: NextInstance + let forcedPort: string + + beforeAll(async () => { + forcedPort = String((await findPort()) ?? '54321') + next = await createNext({ + files: __dirname, + forcedPort, + nextConfig: { + assetPrefix: `http://127.0.0.1:${forcedPort}`, + ...corsHeaders(), + }, + }) + }) + afterAll(() => next.destroy()) + + it('Worker URL inherits assetPrefix and the browser rejects construction', async () => { + const browser = await next.browser('/') + + await retry(async () => { + const url = await browser.elementByCss('#worker-ctor-url').text() + expect(url).toContain('http://127.0.0.1:') + expect(url).toContain(`:${forcedPort}/`) + }) + + // Cross-origin Worker construction throws SecurityError synchronously. + await retry(async () => { + const error = await browser.elementByCss('#worker-ctor-error').text() + expect(error).toBe('SecurityError') + }) + }) + }) + + describe('with turbopackWorkerAssetPrefix overriding assetPrefix', () => { + let next: NextInstance + let forcedPort: string + + beforeAll(async () => { + forcedPort = String((await findPort()) ?? '54322') + next = await createNext({ + files: __dirname, + forcedPort, + nextConfig: { + assetPrefix: `http://127.0.0.1:${forcedPort}`, + experimental: { + // Route Worker URLs through the page's own origin + // (`http://localhost:PORT`) instead of the cross-origin assetPrefix. + turbopackWorkerAssetPrefix: `http://localhost:${forcedPort}`, + }, + ...corsHeaders(), + }, + }) + }) + afterAll(() => next.destroy()) + + it('Worker URL uses the override origin and construction succeeds', async () => { + const browser = await next.browser('/') + + await retry(async () => { + const pageOrigin = await browser.elementByCss('#page-origin').text() + const url = await browser.elementByCss('#worker-ctor-url').text() + expect(pageOrigin).toBe(`http://localhost:${forcedPort}`) + expect(url.startsWith(pageOrigin)).toBe(true) + expect(url).not.toContain('127.0.0.1') + }) + + const error = await browser.elementByCss('#worker-ctor-error').text() + expect(error).toBe('(none)') + }) + }) + + describe('with turbopackWorkerAssetPrefix: "" (literal empty prefix)', () => { + let next: NextInstance + let forcedPort: string + + beforeAll(async () => { + forcedPort = String((await findPort()) ?? '54323') + next = await createNext({ + files: __dirname, + forcedPort, + nextConfig: { + assetPrefix: `http://127.0.0.1:${forcedPort}`, + experimental: { + // Empty string is a literal empty prefix (only `/_next/` is + // appended). It does NOT fall back to assetPrefix — only + // `undefined` does. + turbopackWorkerAssetPrefix: '', + }, + ...corsHeaders(), + }, + }) + }) + afterAll(() => next.destroy()) + + it('Worker URL is a relative /_next/ URL (resolved same-origin)', async () => { + const browser = await next.browser('/') + + await retry(async () => { + const pageOrigin = await browser.elementByCss('#page-origin').text() + const url = await browser.elementByCss('#worker-ctor-url').text() + expect(pageOrigin).toBe(`http://localhost:${forcedPort}`) + // URL passed to `new Worker(...)` lives on the page's origin, not + // assetPrefix. (Internally the runtime resolves the relative + // `/_next/...` against `location.origin`.) + expect(url.startsWith(pageOrigin)).toBe(true) + expect(url).not.toContain('127.0.0.1') + }) + + const error = await browser.elementByCss('#worker-ctor-error').text() + expect(error).toBe('(none)') + }) + }) +}) diff --git a/turbopack/crates/turbopack-browser/src/chunking_context.rs b/turbopack/crates/turbopack-browser/src/chunking_context.rs index 5942b6bc70ff..20de86d13aef 100644 --- a/turbopack/crates/turbopack-browser/src/chunking_context.rs +++ b/turbopack/crates/turbopack-browser/src/chunking_context.rs @@ -103,6 +103,11 @@ impl BrowserChunkingContextBuilder { self } + pub fn worker_asset_prefix(mut self, worker_asset_prefix: Option) -> Self { + self.chunking_context.worker_asset_prefix = worker_asset_prefix; + self + } + pub fn asset_suffix(mut self, asset_suffix: ResolvedVc) -> Self { self.chunking_context.asset_suffix = Some(asset_suffix); self @@ -267,6 +272,14 @@ pub struct BrowserChunkingContext { /// Base path that will be prepended to all chunk URLs when loading them. /// This path will not appear in chunk paths or chunk data. chunk_base_path: Option, + /// Base path for Web Worker URLs (the entrypoint and the module chunks + /// loaded inside the worker). When `Some`, overrides `chunk_base_path` + /// for those URLs. Mirrors webpack's `output.workerPublicPath`. Primary + /// use case: keep Worker URLs same-origin when + /// `chunk_base_path`/`assetPrefix` points to a cross-origin CDN + /// (browsers reject cross-origin Worker construction, and the worker + /// bootstrap rejects cross-origin module chunks). + worker_asset_prefix: Option, /// Suffix that will be appended to all chunk URLs when loading them. /// This path will not appear in chunk paths or chunk data. asset_suffix: Option>, @@ -355,6 +368,7 @@ impl BrowserChunkingContext { asset_root_path, asset_root_paths: Default::default(), chunk_base_path: None, + worker_asset_prefix: None, asset_suffix: None, asset_base_path: None, asset_base_paths: Default::default(), @@ -469,6 +483,14 @@ impl BrowserChunkingContext { Vc::cell(self.chunk_base_path.clone()) } + /// Returns the worker base-path override. When `Some`, takes precedence + /// over `chunk_base_path` for the entrypoint URL and the module chunks + /// loaded inside the worker. + #[turbo_tasks::function] + pub fn worker_asset_prefix(&self) -> Vc> { + Vc::cell(self.worker_asset_prefix.clone()) + } + /// Returns the asset suffix path. #[turbo_tasks::function] pub fn asset_suffix(&self) -> Vc { diff --git a/turbopack/crates/turbopack-browser/src/ecmascript/evaluate/chunk.rs b/turbopack/crates/turbopack-browser/src/ecmascript/evaluate/chunk.rs index bbe6d4688e0a..5cbf274732d4 100644 --- a/turbopack/crates/turbopack-browser/src/ecmascript/evaluate/chunk.rs +++ b/turbopack/crates/turbopack-browser/src/ecmascript/evaluate/chunk.rs @@ -179,6 +179,7 @@ impl EcmascriptBrowserEvaluateChunk { let runtime_code = turbopack_ecmascript_runtime::get_browser_runtime_code( asset_context, this.chunking_context.chunk_base_path(), + this.chunking_context.worker_asset_prefix(), this.chunking_context.asset_suffix(), this.chunking_context.worker_forwarded_globals(), runtime_type, diff --git a/turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/runtime/base/runtime-base.ts b/turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/runtime/base/runtime-base.ts index bf220dd1b602..3cee71db878f 100644 --- a/turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/runtime/base/runtime-base.ts +++ b/turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/runtime/base/runtime-base.ts @@ -20,6 +20,18 @@ declare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined // Injected by rust code declare var CHUNK_BASE_PATH: string +/** + * Custom base path for Web Worker URLs (the entrypoint and the module + * chunks loaded inside the worker). Mirrors webpack's + * `output.workerPublicPath`. `null` means "use CHUNK_BASE_PATH"; an empty + * string is a literal empty prefix (not a fallback). + * + * The worker's bootstrap rejects module chunks whose origin differs from + * the worker's own origin, so the override has to apply to both — using + * `WORKER_BASE_PATH` only for the entrypoint would leave the worker unable + * to load any chunks when `CHUNK_BASE_PATH` is on a different origin. + */ +declare var WORKER_BASE_PATH: string | null declare var ASSET_SUFFIX: string declare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null declare var WORKER_FORWARDED_GLOBALS: string[] @@ -312,15 +324,24 @@ function createWorker( ): Worker { const isSharedWorker = WorkerConstructor.name === 'SharedWorker' + // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the + // module chunks loaded inside the worker, keeping them same-origin to each + // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN. + // `null` falls back; an empty string is treated as a literal empty prefix. + const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH + const chunkUrls = moduleChunks - .map((chunk) => getChunkRelativeUrl(chunk)) + .map((chunk) => getChunkRelativeUrl(chunk, workerBasePath)) .reverse() const params: unknown[] = [chunkUrls, ASSET_SUFFIX] for (const globalName of WORKER_FORWARDED_GLOBALS) { params.push((globalThis as Record)[globalName]) } - const url = new URL(getChunkRelativeUrl(entrypoint), location.origin) + const url = new URL( + getChunkRelativeUrl(entrypoint, workerBasePath), + location.origin + ) const paramsJson = JSON.stringify(params) if (isSharedWorker) { url.searchParams.set('params', paramsJson) @@ -348,8 +369,11 @@ function instantiateRuntimeModule( /** * Returns the URL relative to the origin where a chunk can be fetched from. */ -function getChunkRelativeUrl(chunkPath: ChunkPath | ChunkListPath): ChunkUrl { - return `${CHUNK_BASE_PATH}${chunkPath +function getChunkRelativeUrl( + chunkPath: ChunkPath | ChunkListPath, + basePath: string = CHUNK_BASE_PATH +): ChunkUrl { + return `${basePath}${chunkPath .split('/') .map((p) => encodeURIComponent(p)) .join('/')}${ASSET_SUFFIX}` as ChunkUrl diff --git a/turbopack/crates/turbopack-ecmascript-runtime/src/browser_runtime.rs b/turbopack/crates/turbopack-ecmascript-runtime/src/browser_runtime.rs index 283e2809a491..aebb0928d6c0 100644 --- a/turbopack/crates/turbopack-ecmascript-runtime/src/browser_runtime.rs +++ b/turbopack/crates/turbopack-ecmascript-runtime/src/browser_runtime.rs @@ -19,6 +19,7 @@ use crate::{RuntimeType, embed_js::embed_static_code}; pub async fn get_browser_runtime_code( asset_context: ResolvedVc>, chunk_base_path: Vc>, + worker_asset_prefix: Vc>, asset_suffix: Vc, worker_forwarded_globals: Vc>, runtime_type: RuntimeType, @@ -86,6 +87,14 @@ pub async fn get_browser_runtime_code( let relative_root_path = output_root_to_root_path; let chunk_base_path = chunk_base_path.await?; let chunk_base_path = chunk_base_path.as_ref().map_or_else(|| "", |f| f.as_str()); + // `null` (no override) and `Some("")` (empty-string prefix) are distinct + // states, so inject as a JS literal — `null` for None and a quoted string + // for Some — instead of collapsing both to "". + let worker_asset_prefix = worker_asset_prefix.await?; + let worker_asset_prefix_js: String = worker_asset_prefix.as_ref().map_or_else( + || "null".to_string(), + |f| format!("{}", StringifyJs(f.as_str())), + ); let asset_suffix = asset_suffix.await?; let chunk_loading_global = chunk_loading_global.await?; let cross_origin = *cross_origin.await?; @@ -109,11 +118,13 @@ pub async fn get_browser_runtime_code( }} var CHUNK_BASE_PATH = {}; + var WORKER_BASE_PATH = {}; var RELATIVE_ROOT_PATH = {}; var RUNTIME_PUBLIC_PATH = {}; "#, StringifyJs(&chunk_loading_global), StringifyJs(chunk_base_path), + worker_asset_prefix_js, StringifyJs(relative_root_path.as_str()), StringifyJs(chunk_base_path), )?; diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js.map index f280589929f2..8883bf0ecbb2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js.map @@ -1,12 +1,12 @@ { "version": 3, "sources": [], - "debugId": "6a138f62-859e-e13c-84a0-d111b048d46a", + "debugId": "63d3116b-6e4c-29e3-253a-989477151583", "sections": [ - {"offset": {"line": 16, "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,QAAQM,SAAS;AA+B1C,MAAMC,iBAAiBC,OAAOF,SAAS,CAACC,cAAc;AACtD,MAAME,cAAc,OAAOC,WAAW,eAAeA,OAAOD,WAAW;AAEvE,SAASE,WACPC,GAAQ,EACRC,IAAiB,EACjBC,OAA2C;IAE3C,IAAI,CAACP,eAAeQ,IAAI,CAACH,KAAKC,OAAOL,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,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": 592, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(getChunkRelativeUrl(entrypoint), location.origin)\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(chunkPath: ChunkPath | ChunkListPath): ChunkUrl {\n return `${CHUNK_BASE_PATH}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","CHUNK_BASE_PATH","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AAiBhE,MAAMA,0BACJC,QAAQC,SAAS;AA4DnB,MAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,MAAMI,mBAAuD,IAAIH;AAEjE,MAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,IAAI,CAACC,CAAC,CAACC,EAAE,EAAEL;AACzD;AACAV,wBAAwBgB,CAAC,GAAGP;AAE5B,SAASQ,iBAAiBC,SAAoB,EAAER,SAAoB;IAClE,OAAOC,kBAAkBC,WAAWO,OAAO,EAAED,WAAWR;AAC1D;AAEA,eAAeC,kBACbS,UAAsB,EACtBC,UAAsB,EACtBX,SAAoB;IAEpB,IAAI,OAAOA,cAAc,UAAU;QACjC,OAAOY,cAAcF,YAAYC,YAAYX;IAC/C;IAEA,MAAMa,eAAeb,UAAUc,QAAQ,IAAI,EAAE;IAC7C,MAAMC,kBAAkBF,aAAaG,GAAG,CAAC,CAACF;QACxC,IAAIrB,gBAAgBwB,GAAG,CAACH,WAAW,OAAO;QAC1C,OAAOjB,iBAAiBqB,GAAG,CAACJ;IAC9B;I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AAM5C,IAAI2C,eAAeE,OAAO,CAAC;IACjC,IAAIC;IACJ,IAAI9C,MAAM,CAAC,GAAG;QACZ8C,MAAM9C;IACR,OAAO;QACL,MAAM+C,IAAIJ,eAAeE,OAAO,CAAC;QACjCC,MAAMC,MAAM,CAAC,IAAIA,IAAIJ,eAAepG,MAAM;IAC5C;IACA,oDAAoD;IACpD,OAAOuG,OAAOF,IAAIrG,MAAM,IAAIoG,eAAeR,UAAU,CAACS,KAAKE,MAAMF,IAAIrG,MAAM;AAC7E;AAEA,SAASyG,KAAKL,cAAoC;IAChD,OAAOD,kBAAkBC,gBAAgB;AAC3C;AAEA,SAASM,MAAMjF,QAAkB;IAC/B,OAAO0E,kBAAkB1E,UAAU;AACrC;AAEA,SAASkF,gBAEPtH,SAAoB,EACpBuH,UAAoC,EACpCC,UAA+B;IAE/B,OAAOhF,QAAQ8E,eAAe,CAC5B5H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH,YACAC;AAEJ;AACArI,iBAAiBsI,CAAC,GAAGH;AAErB,SAASI,sBAEP1H,SAAoB,EACpBuH,UAAoC;IAEpC,OAAO/E,QAAQkF,qBAAqB,CAClChI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH;AAEJ;AACApI,iBAAiBwI,CAAC,GAAGD","ignoreList":[0]}}, - {"offset": {"line": 851, "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,CAAC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ApI;AAEJ","ignoreList":[0]}}, - {"offset": {"line": 1545, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAMA,sBAAsBC,QAAQC,SAAS;AAE7C;;;;;;CAMC,GACD,oDAAoD,GAEpD,wEAAwE;AACxEC,iBAAiBC,OAAOC,MAAM,CAAC;AAC/BL,oBAAoBM,CAAC,GAAGH;AACxBI,iBAAiB,IAAIC;AAErB,kDAAkD;AAClDC,gCAAgC;AAgChC;;;;;;CAMC,GACD,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MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, - {"offset": {"line": 1962, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC,eAAeC,eAAe,UAAU;IAC9D,MAAMC,KAAKJ,IAAIK,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIJ,IAAIM,KAAK,CAACF,MAAM;AACnC;AAUA,IAAIG;AAEJ;;CAEC,GACD,MAAMC,iBAA+C,IAAIC;AAExD,CAAC;IACAF,UAAU;QACR,MAAMG,eAAc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8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, - {"offset": {"line": 2133, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3C,gFAAgF;YAChF,MAAMC,sBAAsBC,UAAUH;YAEtC,IAAII,MAAMN,WAAW;gBACnB,MAAMO,QAAQC,SAASC,gBAAgB,CACrC,CAAC,WAAW,EAAEP,aAAa,eAAe,EAAEA,aAAa,eAAe,EAAEE,oBAAoB,eAAe,EAAEA,oBAAoB,GAAG,CAAC;gBAEzI,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AkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] + {"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,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,O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AIjK,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]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\n/**\n * Custom base path for Web Worker URLs (the entrypoint and the module\n * chunks loaded inside the worker). Mirrors webpack's\n * `output.workerPublicPath`. `null` means \"use CHUNK_BASE_PATH\"; an empty\n * string is a literal empty prefix (not a fallback).\n *\n * The worker's bootstrap rejects module chunks whose origin differs from\n * the worker's own origin, so the override has to apply to both — using\n * `WORKER_BASE_PATH` only for the entrypoint would leave the worker unable\n * to load any chunks when `CHUNK_BASE_PATH` is on a different origin.\n */\ndeclare var WORKER_BASE_PATH: string | null\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk, workerBasePath))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(\n getChunkRelativeUrl(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(\n chunkPath: ChunkPath | ChunkListPath,\n basePath: string = CHUNK_BASE_PATH\n): ChunkUrl {\n return `${basePath}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","workerBasePath","WORKER_BASE_PATH","CHUNK_BASE_PATH","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","basePath","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AA6BhE,MAAMA,0BACJC,QAAQC,SAAS;AA4DnB,MAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,MAAMI,mBAAuD,IAAIH;AAEjE,MAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,IAAI,CAACC,CAAC,CAACC,EAAE,EAAEL;AACzD;AACAV,wBAAwBgB,CAAC,GAAGP;AAE5B,SAASQ,iBAAiBC,SAAoB,EAAER,SAAoB;IAClE,OAAOC,kBAAkBC,WAAWO,OAAO,EAAED,WAAWR;AAC1D;AAEA,eAAeC,kBACbS,UAAsB,EACtBC,UAAsB,EACtBX,SAAoB;IAEpB,IAAI,OAAOA,cAAc,UAAU;QACjC,OAAOY,cAAcF,YAAYC,YAAYX;IAC/C;IAEA,MAAMa,eAAeb,UAAUc,QAAQ,IAAI,EAAE;IAC7C,MAAMC,kBAAkBF,aAAaG,GAAG,CAAC,CAACF;QACxC,IAAIrB,gBAAgBwB,GAAG,CAACH,WAAW,OAAO;QAC1C,OAAOjB,iBAAiBqB,GAAG,CAACJ;IAC9B;IACA,IAAIC,gBAAgBI,MAAM,GAAG,KAAKJ,gBAAgBK,KAAK,CAAC,CAACC,IAAMA,IAAI;QACjE,uFAAuF;QACvF,MAAMC,QAAQC,GAAG,CAACR;QAClB;IACF;IAEA,MAAMS,2BAA2BxB,UAAUyB,YAAY,IAAI,EAAE;IAC7D,MAAMC,uBAAu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GAAG;QACZiD,MAAMjD;IACR,OAAO;QACL,MAAMkD,IAAIJ,eAAeE,OAAO,CAAC;QACjCC,MAAMC,MAAM,CAAC,IAAIA,IAAIJ,eAAevG,MAAM;IAC5C;IACA,oDAAoD;IACpD,OAAO0G,OAAOF,IAAIxG,MAAM,IAAIuG,eAAeR,UAAU,CAACS,KAAKE,MAAMF,IAAIxG,MAAM;AAC7E;AAEA,SAAS4G,KAAKL,cAAoC;IAChD,OAAOD,kBAAkBC,gBAAgB;AAC3C;AAEA,SAASM,MAAMpF,QAAkB;IAC/B,OAAO6E,kBAAkB7E,UAAU;AACrC;AAEA,SAASqF,gBAEPzH,SAAoB,EACpB0H,UAAoC,EACpCC,UAA+B;IAE/B,OAAOnF,QAAQiF,eAAe,CAC5B/H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H,YACAC;AAEJ;AACAxI,iBAAiByI,CAAC,GAAGH;AAErB,SAASI,sBAEP7H,SAAoB,EACpB0H,UAAoC;IAEpC,OAAOlF,QAAQqF,qBAAqB,CAClCnI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H;AAEJ;AACAvI,iBAAiB2I,CAAC,GAAGD","ignoreList":[0]}}, + {"offset": {"line": 857, "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;IA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F;AACF;AAEA;;;;;CAKC,GACD,SAASG,cACP/H,eAA8B,EAC9BC,oBAAkD,EAClDuE,eAAmC,EACnCyC,kBAA2D,EAC3DnC,eAAgC,EAChCzG,cAAsC,EACtC8I,mBAIc,EACdC,wBAAqE,EACrErH,qBAA8B;;IAE7B,CAAC,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": 1551, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAMA,sBAAsBC,QAAQC,SAAS;AAE7C;;;;;;CAMC,GACD,oDAAoD,GAEpD,wEAAwE;AACxEC,iBAAiBC,OAAOC,MAAM,CAAC;AAC/BL,oBAAoBM,CAAC,GAAGH;AACxBI,iBAAiB,IAAIC;AAErB,kDAAkD;AAClDC,gCAAgC;AAgChC;;;;;;CAMC,GACD,MAAMC,kBAAiD,IAAIC;AAC3D;;CAEC,GACD,MAAMC,kBAAiD,IAAID;AAC3D;;;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AAK,EAAE","ignoreList":[0]}}, + {"offset": {"line": 1968, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC,eAAeC,eAAe,UAAU;IAC9D,MAAMC,KAAKJ,IAAIK,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIJ,IAAIM,KAAK,CAACF,MAAM;AACnC;AAUA,IAAIG;AAEJ;;CAEC,GACD,MAAMC,iBAA+C,IAAIC;AAExD,CAAC;IACAF,UAAU;QACR,MAAMG,eAAcC,KAAK,EAAEC,MAAM;YAC/B,IAAIC,YAAYC,kBAAkBH;YAClC,IAAII,WAAWC,i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 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3C,gFAAgF;YAChF,MAAMC,sBAAsBC,UAAUH;YAEtC,IAAII,MAAMN,WAAW;gBACnB,MAAMO,QAAQC,SAASC,gBAAgB,CACrC,CAAC,WAAW,EAAEP,aAAa,eAAe,EAAEA,aAAa,eAAe,EAAEE,oBAAoB,eAAe,EAAEA,oBAAoB,GAAG,CAAC;gBAEzI,KAAK,MAAMM,QAAQC,MAAMC,IAAI,CAACL,OAAQ;oBACpCG,KAAKG,MAAM;gBACb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;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/1i9t_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/1i9t_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js index 06522f35f776..f54e6ef419ba 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/1i9t_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/1i9t_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js @@ -1,4 +1,4 @@ -;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="6a138f62-859e-e13c-84a0-d111b048d46a")}catch(e){}}(); +;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="63d3116b-6e4c-29e3-253a-989477151583")}catch(e){}}(); (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ "output/1i9t_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js", {"otherChunks":["output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvs.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/input/index.js [test] (ecmascript)"]} @@ -9,6 +9,7 @@ if (!Array.isArray(globalThis["TURBOPACK"])) { } var CHUNK_BASE_PATH = ""; +var WORKER_BASE_PATH = null; var RELATIVE_ROOT_PATH = "../../../../../../.."; var RUNTIME_PUBLIC_PATH = ""; var ASSET_SUFFIX = ""; @@ -748,7 +749,12 @@ browserContextPrototype.q = exportUrl; * @param workerOptions options to pass to the Worker constructor (optional) */ function createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions) { const isSharedWorker = WorkerConstructor.name === 'SharedWorker'; - const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk)).reverse(); + // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the + // module chunks loaded inside the worker, keeping them same-origin to each + // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN. + // `null` falls back; an empty string is treated as a literal empty prefix. + const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH; + const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk, workerBasePath)).reverse(); const params = [ chunkUrls, ASSET_SUFFIX @@ -756,7 +762,7 @@ browserContextPrototype.q = exportUrl; for (const globalName of WORKER_FORWARDED_GLOBALS){ params.push(globalThis[globalName]); } - const url = new URL(getChunkRelativeUrl(entrypoint), location.origin); + const url = new URL(getChunkRelativeUrl(entrypoint, workerBasePath), location.origin); const paramsJson = JSON.stringify(params); if (isSharedWorker) { url.searchParams.set('params', paramsJson); @@ -778,8 +784,8 @@ browserContextPrototype.b = createWorker; } /** * Returns the URL relative to the origin where a chunk can be fetched from. - */ function getChunkRelativeUrl(chunkPath) { - return `${CHUNK_BASE_PATH}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; + */ function getChunkRelativeUrl(chunkPath, basePath = CHUNK_BASE_PATH) { + return `${basePath}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; } function getPathFromScript(chunkScript) { if (typeof chunkScript === 'string') { @@ -2247,5 +2253,5 @@ chunkListsToRegister.forEach(registerChunkList); })(); -//# debugId=6a138f62-859e-e13c-84a0-d111b048d46a +//# debugId=63d3116b-6e4c-29e3-253a-989477151583 //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_19boa0e.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/0_9x_turbopack-tests_tests_snapshot_runtime_default_dev_runtime_input_index_17smy-b.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/0_9x_turbopack-tests_tests_snapshot_runtime_default_dev_runtime_input_index_17smy-b.js.map index 193a111fc8b3..90020a7b24bf 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/0_9x_turbopack-tests_tests_snapshot_runtime_default_dev_runtime_input_index_17smy-b.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/0_9x_turbopack-tests_tests_snapshot_runtime_default_dev_runtime_input_index_17smy-b.js.map @@ -2,10 +2,10 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 15, "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,QAAQM,SAAS;AA+B1C,MAAMC,iBAAiBC,OAAOF,SAAS,CAACC,cAAc;AACtD,MAAME,cAAc,OAAOC,WAAW,eAAeA,OAAOD,WAAW;AAEvE,SAASE,WACPC,GAAQ,EACRC,IAAiB,EACjBC,OAA2C;IAE3C,IAAI,CAACP,eAAeQ,IAAI,CAACH,KAAKC,OAAOL,OAAOQ,cAAc,CAACJ,KAAKC,MAAMC;AACxE;AAEA,SAASG,qBACPC,WAAgC,EAChCC,EAAY;IAEZ,IAAIlB,SAASiB,WAAW,CAACC,GAAG;IAC5B,IAAI,CAAClB,QAAQ;QACX,IAAIJ,+BAA+B;YACjC,2CAA2C;YAC3CI,SAASmB,0BAA0BD;QACrC,OAAO;YACLlB,SAASoB,mBAAmBF;QAC9B;QACAD,WAAW,CAACC,GAAG,GAAGlB;IACpB;IACA,OAAOA;AACT;AAEA;;CAEC,GACD,SAASoB,m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Ac,CAAC+K,SAAS,QAAQ;QACrCjK,OAAO;IACT;AACF","ignoreList":[0]}}, - {"offset": {"line": 591, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(getChunkRelativeUrl(entrypoint), location.origin)\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(chunkPath: ChunkPath | ChunkListPath): ChunkUrl {\n return `${CHUNK_BASE_PATH}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","CHUNK_BASE_PATH","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","ch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,KAAKL,cAAoC;IAChD,OAAOD,kBAAkBC,gBAAgB;AAC3C;AAEA,SAASM,MAAMjF,QAAkB;IAC/B,OAAO0E,kBAAkB1E,UAAU;AACrC;AAEA,SAASkF,gBAEPtH,SAAoB,EACpBuH,UAAoC,EACpCC,UAA+B;IAE/B,OAAOhF,QAAQ8E,eAAe,CAC5B5H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH,YACAC;AAEJ;AACArI,iBAAiBsI,CAAC,GAAGH;AAErB,SAASI,sBAEP1H,SAAoB,EACpBuH,UAAoC;IAEpC,OAAO/E,QAAQkF,qBAAqB,CAClChI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH;AAEJ;AACApI,iBAAiBwI,CAAC,GAAGD","ignoreList":[0]}}, - {"offset": {"line": 850, "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;IACxD,OAAO,CAAC,kBAAkB,EAAEA,gBAAgBY,IAAI,CAAC,SAAS;AAC5D;AAEA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D;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": 1544, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAMA,sBAAsBC,QAAQC,SAAS;AAE7C;;;;;;CAMC,GACD,oDAAoD,GAEpD,wEAAwE;AACxEC,iBAAiBC,OAAOC,MAAM,CAAC;AAC/BL,oBAAoBM,CAAC,GAAGH;AACxBI,iBAAiB,IAAIC;AAErB,kDAAkD;AAClDC,gCAAgC;AAgChC;;;;;;CAMC,GACD,MAAMC,kBAAiD,IAAIC;AAC3D;;CAEC,GACD,MAAMC,kBAAiD,IAAID;AAC3D;;;;CAIC,GACD,MAAME,oBAAwC,IAAIL;AAClD;;CAEC,GACD,MAAMM,qBAAyD,IAAIH;AACnE;;CAEC,GACD,MAAMI,qBAAyD,IAAIJ;AAEnE;;CAEC,GACD,aAAa;AACb,SAASK,8BACPC,SAAoB,EACpBC,QAAkB;IAElB,MAAMC,SAAShB,cAAc,CAACe,SAAS;IACvC,IAAIC,QAAQ;QACV,IAAIA,OAAOC,KAA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AAG;QAC7BD,gBAAgBH,YAAY,CAAC,EAAE;IACjC,OAAO;QACL,IAAIzH,YAAY8H,kBAAkBJ;QAClCE,gBAAgBG;QAChBC,iCACEP,cACA,WAAW,GAAG,GACd3F,iBACA,CAACtB,KAAiBwD,iBAAiBxD,IAAIR;IAE3C;IACA,OAAOgF,QAAQwC,aAAa,CAACE,OAAOE;AACtC;AAEA;;CAEC,GACD,SAASK,kBAAkBC,SAAoB;IAC7C,MAAMC,kBAAkBR,yBAAyBO,UAAUE,MAAM;IAGjE,MAAMhC,gBAAgB0B,kBAAkBK;IACxC,sEAAsE;IACtEnD,QAAQwC,aAAa,CAACpB;IACtB3D,WAAW4F,gCAAgC,CAAErH,IAAI,CAAC;QAChDoF;QACAD,YAAYmC,IAAI,CAAC,MAAMlC;KACxB;IAED,+CAA+C;IAC/C,MAAMY,aAAa,IAAIzH,IAAI2I,UAAUvD,MAAM,CAAC4D,GAAG,CAACC;IAChD3I,mBAAmByH,GAAG,CAAClB,eAAeY;IACtC,KAAK,MAAMhH,aAAagH,WAAY;QAClC,IAAIC,kBAAkBnH,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, - {"offset": {"line": 1961, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC,eAAeC,eAAe,UAAU;IAC9D,MAAMC,KAAKJ,IAAIK,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIJ,IAAIM,KAAK,CAACF,MAAM;AACnC;AAUA,IAAIG;AAEJ;;CAEC,GACD,MAAMC,iBAA+C,IAAIC;AAExD,CAAC;IACAF,UAAU;QACR,MAAMG,eAAcC,KAAK,EAAEC,MAAM;YAC/B,IAAIC,YAAYC,kBAAkBH;YAClC,IAAII,WAAWC,iBAAiBL;YAEhC,MAAMM,WAAWC,oBAAoBH;YACrCE,SAASE,OAAO;YAEhB,IAAIP,UAAU,MAAM;gBAClB;YACF;YAEA,KAAK,MAAMQ,kBAAkBR,OAAOS,WAAW,CAAE;gBAC/C,MAAMC,iBAAiBC,aAAaH;gBACpC,MAAMI,gBAAgBC,oBAAoBH;gBAE1C,iFAAiF;gBACjFJ,oBAAoBM;YACtB;YAEA,kF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SAAS8E,IAAI,CAACC,WAAW,CAACT;gBAC5B;YACF,OAAO,IAAIR,KAAKhD,WAAW;gBACzB,MAAMkE,kBAAkBhF,SAASqE,gBAAgB,CAC/C,CAAC,YAAY,EAAEvD,SAAS,gBAAgB,EAAEA,SAAS,gBAAgB,EAAEoD,gBAAgB,gBAAgB,EAAEA,gBAAgB,GAAG,CAAC;gBAE7H,IAAIc,gBAAgBlD,MAAM,GAAG,GAAG;oBAC9B,qEAAqE;oBACrE,kEAAkE;oBAClE,KAAK,MAAMmD,UAAUC,MAAMC,IAAI,CAACH,iBAAkB;wBAChDC,OAAOG,gBAAgB,CAAC,SAAS;4BAC/BpE,SAASmC,MAAM;wBACjB;oBACF;gBACF,OAAO;oBACL,MAAM8B,SAASjF,SAASuE,aAAa,CAAC;oBACtCU,OAAOR,WAAW,GAAGC;oBACrBO,OAAOlF,GAAG,GAAGe;oBACb,yEAAyE;oBACzE,wEAAwE;oBACxE,eAAe;oBACfmE,OAAOL,OAAO,GAAG;wBACf5D,SAASmC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDnD,SAAS8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, - {"offset": {"line": 2132, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3C,gFAAgF;YAChF,MAAMC,sBAAsBC,UAAUH;YAEtC,IAAII,MAAMN,WAAW;gBACnB,MAAMO,QAAQC,SAASC,gBAAgB,CACrC,CAAC,WAAW,EAAEP,aAAa,eAAe,EAAEA,aAAa,eAAe,EAAEE,oBAAoB,eAAe,EAAEA,oBAAoB,GAAG,CAAC;gBAEzI,KAAK,MAAMM,QAAQC,MAAMC,IAAI,CAACL,OAAQ;oBACpCG,KAAKG,MAAM;gBACb;YACF,OAAO,IAAIC,KAAKd,WAAW;gBACzB,mEAAmE;gBACnE,0BAA0B;gBAC1B,uEAAuE;gBACvE,4DAA4D;gBAC5D,MAAMe,UAAUP,SAASC,gBAAgB,CACvC,CAAC,YAAY,EAAEP,aAAa,gBAAgB,EAAEA,aAAa,gBAAgB,EAAEE,oBAAoB,gBAAgB,EAAEA,oBAAoB,GAAG,CAAC;gBAE7I,KAAK,MA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,MAAM,GAAGC,KAAKC,GAAG,GAAG,CAAC,EAAEC,KAAKC,MAAM,IAAI;oBAC3D9B,KAAK+B,IAAI,GAAGV,IAAIW,QAAQ,GAAGX,IAAIY,MAAM;gBACvC,OAAO;oBACLjC,KAAK+B,IAAI,GAAGzC;gBACd;gBAEAU,KAAKkC,OAAO,GAAG;oBACbvB;gBACF;gBACAX,KAAKmC,MAAM,GAAG;oBACZ,0EAA0E;oBAC1E,wEAAwE;oBACxE,uBAAuB;oBACvB,KAAK,MAAMC,gBAAgBnC,MAAMC,IAAI,CAACU,eACpCwB,aAAajC,MAAM;oBAErB,uEAAuE;oBACvE,oBAAoB;oBACpBO;gBACF;gBAEA,wEAAwE;gBACxE,4BAA4B;gBAC5BE,aAAa,CAAC,EAAE,CAACyB,aAAa,CAAEC,YAAY,CAC1CtC,MACAY,aAAa,CAAC,EAAE,CAAC2B,WAAW;YAEhC;QACF;QAEAC,SAAS,IAAMC,KAAKlB,QAAQ,CAACmB,MAAM;IACrC;IAEA,SAASnD,eAAeD,QAAkB;QACxCqD,eAAeC,MAAM,CAACtD;IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] + {"offset": {"line": 16, "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,QAAQM,SAAS;AA+B1C,MAAMC,iBAAiBC,OAAOF,SAAS,CAACC,cAAc;AACtD,MAAME,cAAc,OAAOC,WAAW,eAAeA,OAAOD,WAAW;AAEvE,SAASE,WACPC,GA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C,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": 592, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\n/**\n * Custom base path for Web Worker URLs (the entrypoint and the module\n * chunks loaded inside the worker). Mirrors webpack's\n * `output.workerPublicPath`. `null` means \"use CHUNK_BASE_PATH\"; an empty\n * string is a literal empty prefix (not a fallback).\n *\n * The worker's bootstrap rejects module chunks whose origin differs from\n * the worker's own origin, so the override has to apply to both — using\n * `WORKER_BASE_PATH` only for the entrypoint would leave the worker unable\n * to load any chunks when `CHUNK_BASE_PATH` is on a different origin.\n */\ndeclare var WORKER_BASE_PATH: string | null\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk, workerBasePath))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(\n getChunkRelativeUrl(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(\n chunkPath: ChunkPath | ChunkListPath,\n basePath: string = CHUNK_BASE_PATH\n): ChunkUrl {\n return `${basePath}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","workerBasePath","WORKER_BASE_PATH","CHUNK_BASE_PATH","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","basePath","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AA6BhE,MAAMA,0BACJC,QAAQC,SAAS;AA4DnB,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QAAkB;IAC/B,OAAO6E,kBAAkB7E,UAAU;AACrC;AAEA,SAASqF,gBAEPzH,SAAoB,EACpB0H,UAAoC,EACpCC,UAA+B;IAE/B,OAAOnF,QAAQiF,eAAe,CAC5B/H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H,YACAC;AAEJ;AACAxI,iBAAiByI,CAAC,GAAGH;AAErB,SAASI,sBAEP7H,SAAoB,EACpB0H,UAAoC;IAEpC,OAAOlF,QAAQqF,qBAAqB,CAClCnI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H;AAEJ;AACAvI,iBAAiB2I,CAAC,GAAGD","ignoreList":[0]}}, + {"offset": {"line": 856, "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;IACxD,OAAO,CAAC,kBAAkB,EAAEA,gBAAgBY,IAAI,CAAC,SAAS;AAC5D;AAEA;;;;;;;;CAQC,GACD,SAASC,yBACPC,QAAkB,EAClBC,qBAA8B;IAE9B,MAAMC,kB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M,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": 1550, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAMA,sBAAsBC,QAAQC,SAAS;AAE7C;;;;;;CAMC,GACD,oDAAoD,GAEpD,wEAAwE;AACxEC,iBAAiBC,OAAOC,MAAM,CAAC;AAC/BL,oBAAoBM,CAAC,GAAGH;AACxBI,iBAAiB,IAAIC;AAErB,kDAAkD;AAClDC,gCAAgC;AAgChC;;;;;;CAMC,GACD,MAAMC,kBAAiD,IAAIC;AAC3D;;CAEC,GACD,MAAMC,kBAAiD,IAAID;AAC3D;;;;CAIC,GACD,MAAME,oBAAwC,IAAIL;AAClD;;CAEC,GACD,MAAMM,qBAAyD,IAAIH;AACnE;;CAEC,GACD,MAAMI,qBAAyD,IAAIJ;AAEnE;;CAEC,GACD,aAAa;AACb,SAASK,8BACPC,SAAoB,EACpBC,QAAkB;IAElB,MAAMC,SAAShB,cAAc,CAACe,SAAS;IACvC,IAAIC,QAAQ;QACV,IAAIA,OAAOC,KAAK,EAAE;YAChB,MAAMD,OAAOC,KAAK;QACpB;QACA,OAAOD;IACT;IAEA,aAAa;IACb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,kBAAkBJ;QAClCE,gBAAgBG;QAChBC,iCACEP,cACA,WAAW,GAAG,GACd3F,iBACA,CAACtB,KAAiBwD,iBAAiBxD,IAAIR;IAE3C;IACA,OAAOgF,QAAQwC,aAAa,CAACE,OAAOE;AACtC;AAEA;;CAEC,GACD,SAASK,kBAAkBC,SAAoB;IAC7C,MAAMC,kBAAkBR,yBAAyBO,UAAUE,MAAM;IAGjE,MAAMhC,gBAAgB0B,kBAAkBK;IACxC,sEAAsE;IACtEnD,QAAQwC,aAAa,CAACpB;IACtB3D,WAAW4F,gCAAgC,CAAErH,IAAI,CAAC;QAChDoF;QACAD,YAAYmC,IAAI,CAAC,MAAMlC;KACxB;IAED,+CAA+C;IAC/C,MAAMY,aAAa,IAAIzH,IAAI2I,UAAUvD,MAAM,CAAC4D,GAAG,CAACC;IAChD3I,mBAAmByH,GAAG,CAAClB,eAAeY;IACtC,KAAK,MAAMhH,aAAagH,WAAY;QAClC,IAAIC,kBAAkBnH,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, + {"offset": {"line": 1967, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC,eAAeC,eAAe,UAAU;IAC9D,MAAMC,KAAKJ,IAAIK,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIJ,IAAIM,KAAK,CAACF,MAAM;AACnC;AAUA,IAAIG;AAEJ;;CAEC,GACD,MAAMC,iBAA+C,IAAIC;AAExD,CAAC;IACAF,UAAU;QACR,MAAMG,eAAcC,KAAK,EAAEC,MAAM;YAC/B,IAAIC,YAAYC,kBAAkBH;YAClC,IAAII,WAAWC,iBAAiBL;YAEhC,MAAMM,WAAWC,oBAAoBH;YACrCE,SAASE,OAAO;YAEhB,IAAIP,UAAU,MAAM;gBAClB;YACF;YAEA,KAAK,MAAMQ,kBAAkBR,OAAOS,WAAW,CAAE;gBAC/C,MAAMC,iBAAiBC,aAAaH;gBACpC,MAAMI,gBAAgBC,oBAAoBH;gBAE1C,iFAAiF;gBACjFJ,oBAAoBM;YACtB;YAEA,kFAAkF;YAClF,MAAME,QAAQC,GAAG,CACff,OAAOS,WAAW,CAACO,GAAG,CAAC,CAACR,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gBACzB,MAAMkE,kBAAkBhF,SAASqE,gBAAgB,CAC/C,CAAC,YAAY,EAAEvD,SAAS,gBAAgB,EAAEA,SAAS,gBAAgB,EAAEoD,gBAAgB,gBAAgB,EAAEA,gBAAgB,GAAG,CAAC;gBAE7H,IAAIc,gBAAgBlD,MAAM,GAAG,GAAG;oBAC9B,qEAAqE;oBACrE,kEAAkE;oBAClE,KAAK,MAAMmD,UAAUC,MAAMC,IAAI,CAACH,iBAAkB;wBAChDC,OAAOG,gBAAgB,CAAC,SAAS;4BAC/BpE,SAASmC,MAAM;wBACjB;oBACF;gBACF,OAAO;oBACL,MAAM8B,SAASjF,SAASuE,aAAa,CAAC;oBACtCU,OAAOR,WAAW,GAAGC;oBACrBO,OAAOlF,GAAG,GAAGe;oBACb,yEAAyE;oBACzE,wEAAwE;oBACxE,eAAe;oBACfmE,OAAOL,OAAO,GAAG;wBACf5D,SAASmC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDnD,SAAS8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, + {"offset": {"line": 2138, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3C,gFAAgF;YAChF,MAAMC,sBAAsBC,UAAUH;YAEtC,IAAII,MAAMN,WAAW;gBACnB,MAAMO,QAAQC,SAASC,gBAAgB,CACrC,CAAC,WAAW,EAAEP,aAAa,eAAe,EAAEA,aAAa,eAAe,EAAEE,oBAAoB,eAAe,EAAEA,oBAAoB,GAAG,CAAC;gBAEzI,KAAK,MAAMM,QAAQC,MAAMC,IAAI,CAACL,OAAQ;oBACpCG,KAAKG,MAAM;gBACb;YACF,OAAO,IAAIC,KAAKd,WAAW;gBACzB,mEAAmE;gBACnE,0BAA0B;gBAC1B,uEAAuE;gBACvE,4DAA4D;gBAC5D,MAAMe,UAAUP,SAASC,gBAAgB,CACvC,CAAC,YAAY,EAAEP,aAAa,gBAAgB,EAAEA,aAAa,gBAAgB,EAAEE,oBAAoB,gBAAgB,EAAEA,oBAAoB,GAAG,CAAC;gBAE7I,KAAK,MAAMY,UAAUL,MAAMC,IAAI,CAACG,SAAU;oBACxCC,OAAOH,MAAM;gBACf;YACF,OAA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9B,KAAK+B,IAAI,GAAGV,IAAIW,QAAQ,GAAGX,IAAIY,MAAM;gBACvC,OAAO;oBACLjC,KAAK+B,IAAI,GAAGzC;gBACd;gBAEAU,KAAKkC,OAAO,GAAG;oBACbvB;gBACF;gBACAX,KAAKmC,MAAM,GAAG;oBACZ,0EAA0E;oBAC1E,wEAAwE;oBACxE,uBAAuB;oBACvB,KAAK,MAAMC,gBAAgBnC,MAAMC,IAAI,CAACU,eACpCwB,aAAajC,MAAM;oBAErB,uEAAuE;oBACvE,oBAAoB;oBACpBO;gBACF;gBAEA,wEAAwE;gBACxE,4BAA4B;gBAC5BE,aAAa,CAAC,EAAE,CAACyB,aAAa,CAAEC,YAAY,CAC1CtC,MACAY,aAAa,CAAC,EAAE,CAAC2B,WAAW;YAEhC;QACF;QAEAC,SAAS,IAAMC,KAAKlB,QAAQ,CAACmB,MAAM;IACrC;IAEA,SAASnD,eAAeD,QAAkB;QACxCqD,eAAeC,MAAM,CAACtD;IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/0rv8_turbopack-tests_tests_snapshot_runtime_default_dev_runtime_input_index_17smy-b.js b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/0rv8_turbopack-tests_tests_snapshot_runtime_default_dev_runtime_input_index_17smy-b.js index 6174b5e88b5f..c921c1ad14dd 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/0rv8_turbopack-tests_tests_snapshot_runtime_default_dev_runtime_input_index_17smy-b.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/0rv8_turbopack-tests_tests_snapshot_runtime_default_dev_runtime_input_index_17smy-b.js @@ -8,6 +8,7 @@ if (!Array.isArray(globalThis["TURBOPACK"])) { } var CHUNK_BASE_PATH = ""; +var WORKER_BASE_PATH = null; var RELATIVE_ROOT_PATH = "../../../../../../.."; var RUNTIME_PUBLIC_PATH = ""; var ASSET_SUFFIX = ""; @@ -747,7 +748,12 @@ browserContextPrototype.q = exportUrl; * @param workerOptions options to pass to the Worker constructor (optional) */ function createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions) { const isSharedWorker = WorkerConstructor.name === 'SharedWorker'; - const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk)).reverse(); + // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the + // module chunks loaded inside the worker, keeping them same-origin to each + // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN. + // `null` falls back; an empty string is treated as a literal empty prefix. + const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH; + const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk, workerBasePath)).reverse(); const params = [ chunkUrls, ASSET_SUFFIX @@ -755,7 +761,7 @@ browserContextPrototype.q = exportUrl; for (const globalName of WORKER_FORWARDED_GLOBALS){ params.push(globalThis[globalName]); } - const url = new URL(getChunkRelativeUrl(entrypoint), location.origin); + const url = new URL(getChunkRelativeUrl(entrypoint, workerBasePath), location.origin); const paramsJson = JSON.stringify(params); if (isSharedWorker) { url.searchParams.set('params', paramsJson); @@ -777,8 +783,8 @@ browserContextPrototype.b = createWorker; } /** * Returns the URL relative to the origin where a chunk can be fetched from. - */ function getChunkRelativeUrl(chunkPath) { - return `${CHUNK_BASE_PATH}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; + */ function getChunkRelativeUrl(chunkPath, basePath = CHUNK_BASE_PATH) { + return `${basePath}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; } function getPathFromScript(chunkScript) { if (typeof chunkScript === 'string') { diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/0_9x_turbopack-tests_tests_snapshot_swc_transforms_preset_env_input_index_04jskxh.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/0_9x_turbopack-tests_tests_snapshot_swc_transforms_preset_env_input_index_04jskxh.js.map index e5eda39d84a0..08aac9e0f298 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/0_9x_turbopack-tests_tests_snapshot_swc_transforms_preset_env_input_index_04jskxh.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/0_9x_turbopack-tests_tests_snapshot_swc_transforms_preset_env_input_index_04jskxh.js.map @@ -2,8 +2,8 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 15, "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","_iteratorError","ownKeys","keys","_iteratorError1","key","includes","push","dynamicExport","object","_type_of","j","exportValue","v","exportNamespace","namespace","n","createGetter","getProto","getPrototypeOf","__proto__","LEAF_PROTOTYPES","interopEsm","raw","ns","allowExportDefault","defaultLocation","current","getOwnPropertyNames","splice","createNS","_key","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","j1","id1","has","applyModuleFactoryName","turbopackExports","turbopackError","resolveQueue","queue","status","forEach","fn","queueCount","wrapDeps","deps","dep","assign","_obj","err","_obj1","asyncModule","body","hasAwait","depQueues","Set","_createPromise","rawPromise","attributes","handleAsyncDependencies","currentDeps","getResult","d","fnQueue","q","add","asyncResult","a","relativeURL","inputUrl","realUrl","URL","values","href","pathname","replace","origin","protocol","toString","toJSON","_args","key1","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,IAAMC,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,IAAMG,mBAAmBL,QAAQM,SAAS;AA+B1C,IAAMC,iBAAiBC,OAAOF,SAAS,CAACC,cAAc;AACtD,IAAME,cAAc,OAAOC,WAAW,eAAeA,OAAOD,WAAW;AAEvE,SAASE,WACPC,GAAQ,EACRC,IAAiB,EACjBC,OAA2C;IAE3C,IAAI,CAACP,eAAeQ,IAAI,CAACH,KAAKC,OAAOL,OAAOQ,cAAc,CAAC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BAAoB,0CAA0C,CAAC;AAC/G;AAEA;;CAEC,GACD,SAASC,YAAYC,SAAmB;IACtC,MAAM,IAAIhK,MAAM;AAClB;AACAhC,iBAAiBiM,CAAC,GAAGF;AAErB,kGAAkG;AAClG/L,iBAAiBkM,CAAC,GAAGC;AAMrB,SAAS5D,uBAAuB6D,OAAiB;IAC/C,+DAA+D;IAC/DjM,OAAOQ,cAAc,CAACyL,SAAS,QAAQ;QACrC3K,OAAO;IACT;AACF","ignoreList":[0]}}, - {"offset": {"line": 841, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(getChunkRelativeUrl(entrypoint), location.origin)\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(chunkPath: ChunkPath | ChunkListPath): ChunkUrl {\n return `${CHUNK_BASE_PATH}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","includedList","modulesPromises","includedModuleChunksList","moduleChunksPromises","promise","moduleChunksToLoad","_iteratorError","moduleChunk","_iteratorError1","moduleChunkToLoad","promise1","_iteratorError2","includedModuleChunk","_iteratorError3","included","loadChunkPath","map","has","get","length","every","p","Promise","all","moduleChunks","filter","Set","add","set","push","path","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","chunkUrls","chunk","reverse","params","WORKER_FORWARDED_GLOBALS","globalName","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","CHUNK_BASE_PATH","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBhE,IAAMA,0BACJC,QAAQC,SAAS;AA4DnB,IAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,IAAMI,mBAAuD,IAAIH;AAEjE,IAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,IAAI,CAACC,CAAC,CAACC,EAAE,EAAEL;AACzD;AACAV,wBAAwBgB,CAAC,GAAGP;AAE5B,SAASQ,iBAAiBC,SAAoB,EAAER,SAAoB;IAClE,OAAOC,kBAAkBC,WAAWO,OAAO,EAAED,WAAWR;AAC1D;AAEA,SAAeC,kBACbS,UAAsB,EACtBC,UAAsB,EACtBX,SAAoB;;YAMdY,cACAC,iBAUAC,0BACAC,sBAQFC,SAUIC,oBACDC,2BAAAA,mBAAAA,gBAAAA,WAAAA,OAAMC,aAMNC,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IAAM5C,IAAI2C,eAAeE,OAAO,CAAC;IACjC,IAAIC;IACJ,IAAI9C,MAAM,CAAC,GAAG;QACZ8C,MAAM9C;IACR,OAAO;QACL,IAAM+C,IAAIJ,eAAeE,OAAO,CAAC;QACjCC,MAAMC,MAAM,CAAC,IAAIA,IAAIJ,eAAe7F,MAAM;IAC5C;IACA,oDAAoD;IACpD,OAAOgG,OAAOF,IAAI9F,MAAM,IAAI6F,eAAeR,UAAU,CAACS,KAAKE,MAAMF,IAAI9F,MAAM;AAC7E;AAEA,SAASkG,KAAKL,cAAoC;IAChD,OAAOD,kBAAkBC,gBAAgB;AAC3C;AAEA,SAASM,MAAMjF,QAAkB;IAC/B,OAAO0E,kBAAkB1E,UAAU;AACrC;AAEA,SAASkF,gBAEP3H,SAAoB,EACpB4H,UAAoC,EACpCC,UAA+B;IAE/B,OAAOhF,QAAQ8E,eAAe,CAC5BjI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA4H,YACAC;AAEJ;AACA1I,iBAAiB2I,CAAC,GAAGH;AAErB,SAASI,sBAEP/H,SAAoB,EACpB4H,UAAoC;IAEpC,OAAO/E,QAAQkF,qBAAqB,CAClCrI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA4H;AAEJ;AACAzI,iBAAiB6I,CAAC,GAAGD","ignoreList":[0]}}, - {"offset": {"line": 1420, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/build-base.ts"],"sourcesContent":["/// \n/// \n\nconst moduleCache: ModuleCache = {}\ncontextPrototype.c = moduleCache\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = moduleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// Used by the backend\n// @ts-ignore\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n Module\n> = (id, sourceModule) => {\n const module = moduleCache[id]\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n const moduleFactory = moduleFactories.get(id)\n if (typeof moduleFactory !== 'function') {\n // This can happen if modules incorrectly handle HMR disposes/updates,\n // e.g. when they keep a `setTimeout` around which still executes old code\n // and contains e.g. a `require(\"something\")` call.\n throw new Error(factoryNotAvailableMessage(id, sourceType, sourceData))\n }\n\n const module: Module = createModuleObject(id)\n const exports = module.exports\n\n moduleCache[id] = module\n\n // NOTE(alexkirsz) This can fail when the module encounters a runtime error.\n const context = new (Context as any as ContextConstructor)(\n module,\n exports\n )\n try {\n moduleFactory(context, module, exports)\n } catch (error) {\n module.error = error as any\n throw error\n }\n\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// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkScript\n | ChunkPath\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories\n )\n }\n\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n"],"names":["moduleCache","contextPrototype","c","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","Parent","sourceType","sourceData","moduleFactory","moduleFactories","get","Error","factoryNotAvailableMessage","createModuleObject","exports","context","Context","namespaceObject","interopEsm","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","undefined","installCompressedModuleFactories","BACKEND"],"mappings":"AAAA,0CAA0C;AAC1C,mCAAmC;AAEnC,IAAMA,cAAmC,CAAC;AAC1CC,iBAAiBC,CAAC,GAAGF;AAErB;;CAEC,GACD,aAAa;AACb,6DAA6D;AAC7D,SAASG,8BACPC,SAAoB,EACpBC,QAAkB;IAElB,IAAMC,SAASN,WAAW,CAACK,SAAS;IACpC,IAAIC,QAAQ;QACV,IAAIA,OAAOC,KAAK,EAAE;YAChB,MAAMD,OAAOC,KAAK;QACpB;QACA,OAAOD;IACT;IAEA,OAAOE,kBAAkBH,UAAUI,WAAWC,OAAO,EAAEN;AACzD;AAEA;;CAEC,GACD,sBAAsB;AACtB,aAAa;AACb,6DAA6D;AAC7D,IAAMO,mCAEF,0CAACC,IAAIC;IACP,IAAMP,SAASN,WAAW,CAACY,GAAG;IAE9B,IAAIN,QAAQ;QACV,IAAIA,OAAOC,KAAK,EAAE;YAChB,MAAMD,OAAOC,KAAK;QACpB;QACA,OAAOD;IACT;IAEA,OAAOE,kBAAkBI,IAAIH,WAAWK,MAAM,EAAED,aAAaD,EAAE;AACjE;AAEA,SAASJ,kBACPI,EAAY,EACZG,UAAsB,EACtBC,UAAsB;IAEtB,IAAMC,gBAAgBC,gBAAgBC,GAAG,CAACP;IAC1C,IAAI,OAAOK,kBAAkB,YAAY;QACvC,sEAAsE;QACtE,0EAA0E;QAC1E,mDAAmD;QACnD,MAAM,IAAIG,MAAMC,2BAA2BT,IAAIG,YAAYC;IAC7D;IAEA,IAAMV,SAAiBgB,mBAAmBV;IAC1C,IAAMW,UAAUjB,OAAOiB,OAAO;IAE9BvB,WAAW,CAACY,GAAG,GAAGN;IAElB,4EAA4E;IAC5E,IAAMkB,UAAU,IAAKC,QACnBnB,QACAiB;IAEF,IAAI;QACFN,cAAcO,SAASlB,QAAQiB;IACjC,EAAE,OAAOhB,OAAO;QACdD,OAAOC,KAAK,GAAGA;QACf,MAAMA;IACR;IAEA,IAAID,OAAOoB,eAAe,IAAIpB,OAAOiB,OAAO,KAAKjB,OAAOoB,eAAe,EAAE;QACvE,yDAAyD;QACzDC,WAAWrB,OAAOiB,OAAO,EAAEjB,OAAOoB,eAAe;IACnD;IAEA,OAAOpB;AACT;AAEA,6DAA6D;AAC7D,SAASsB,cAAcC,YAA+B;IACpD,IAAMC,QAAQC,yBAAyBF,YAAY,CAAC,EAAE;IAGtD,IAAIG;IACJ,8GAA8G;IAC9G,IAAIH,aAAaI,MAAM,KAAK,GAAG;QAC7BD,gBAAgBH,YAAY,CAAC,EAAE;IACjC,OAAO;QACLG,gBAAgBE;QAChBC,iCACEN,cACA,WAAW,GAAG,GACdX;IAEJ;IAEA,OAAOkB,QAAQR,aAAa,CAACE,OAAOE;AACtC","ignoreList":[0]}}, - {"offset": {"line": 1491, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","_document_currentScript","self","TURBOPACK_ASSET_SUFFIX","src","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","chunkUrl","resolver","_iteratorError","otherChunkData","otherChunkPath","otherChunkUrl","_iteratorError1","moduleId","getPathFromScript","getUrlFromScript","getOrCreateResolver","resolve","otherChunks","getChunkPath","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","instance","fetchWebAssembly","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","resolve1","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","document","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","Array","from","script","addEventListener","script1","fetch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;;QAGKC,sCAAAA,yBAAAA;IAFZ,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,IAAMC,eAAMH,YAAAA,sBAAAA,iCAAAA,0BAAAA,UAAUI,aAAa,cAAvBJ,+CAAAA,uCAAAA,wBAAyBK,YAAY,cAArCL,2DAAAA,0CAAAA,yBAAwC,6CAAU;IAC9D,IAAMM,KAAKH,IAAII,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIH,IAAIK,KAAK,CAACF,MAAM;AACnC;AAUA,IAAIG;AAEJ;;CAEC,GACD,IAAMC,iBAA+C,IAAIC;AAExD,CAAC;IACAF,UAAU;QACFG,eAAN,SAAMA,cAAcC,KAAK,EAAEC,MAAM;;oBAC3BC,WACAC,UAEEC,UAODC,2BAAAA,mBAAAA,gBAAAA,WAAAA,OAAMC,gBACHC,gBACAC,eAcDC,4BAAAA,oBAAAA,iBAAAA,YAAAA,QAAMC;;;;4BA1BTR,YAAYS,kBAAkBX;4BAC9BG,WAAWS,iBAAiBZ;4BAE1BI,WAAWS,oBAAoBV;4BACrCC,SAASU,OAAO;4BAEhB,IAAIb,UAAU,MAAM;gCAClB;;;4BACF;4BAEKI,kCAAAA,2BAAAA;;gCAAL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,yEAAyE;oBACzE,wEAAwE;oBACxE,eAAe;oBACf4E,QAAOT,OAAO,GAAG;wBACflE,SAASuC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDmB,SAASU,IAAI,CAACC,WAAW,CAACM;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIrB,MAAM,CAAC,mCAAmC,EAAEvD,UAAU;YAClE;QACF;QAEAC,SAAS4C,cAAc,GAAG;QAC1B,OAAO5C,SAASwC,OAAO;IACzB;IAEA,SAASR,iBAAiBL,aAAwB;QAChD,OAAOiD,MAAM/D,oBAAoBc;IACnC;AACF,CAAC","ignoreList":[0]}}] + {"offset": {"line": 16, "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","_iteratorError","ownKeys","keys","_iteratorError1","key","includes","push","dynamicExport","object","_type_of","j","exportValue","v","exportNamespace","namespace","n","createGetter","getProto","getPrototypeOf","__proto__","LEAF_PROTOTYPES","interopEsm","raw","ns","allowExportDefault","defaultLocation","current","getOwnPropertyNames","splice","createNS","_key","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","j1","id1","has","applyModuleFactoryName","turbopackExports","turbopackError","resolveQueue","queue","status","forEach","fn","queueCount","wrapDeps","deps","dep","assign","_obj","err","_obj1","asyncModule","body","hasAwait","depQueues","Set","_createPromise","rawPromise","attributes","handleAsyncDependencies","currentDeps","getResult","d","fnQueue","q","add","asyncResult","a","relativeURL","inputUrl","realUrl","URL","values","href","pathname","replace","origin","protocol","toString","toJSON","_args","key1","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,IAAMC,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,IAAMG,mBAAmBL,QAAQM,SAAS;AA+B1C,IAAMC,iBAAiBC,OAAOF,SAAS,CAACC,cAAc;AACtD,IAAME,cAAc,OAAOC,WAAW,eAAeA,OAAOD,WAAW;AAEvE,SAASE,WACPC,GAAQ,EACRC,IAAiB,EACjBC,OAA2C;IAE3C,IAAI,CAACP,eAAeQ,IAAI,CAACH,KAAKC,OAAOL,OAAOQ,cAAc,CAACJ,KAAKC,MAAMC;AACxE;AAEA,SAASG,qBACPC,WAAgC,EAChCC,EAAY;IAEZ,IAAIlB,SAASiB,WAAW,CAACC,GAAG;IAC5B,IAAI,CAAClB,QAAQ;QACX,IAAIJ,+BAA+B;YACjC,2CAA2C;YAC3CI,SAASmB,0BAA0BD;QACrC,OAAO;YACLlB,SAASoB,mBAAmBF;QAC9B;QACAD,WAAW,CAACC,GAAG,GAAGlB;IACpB;IACA,OAAOA;AACT;AAEA;;CAEC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0]}}, + {"offset": {"line": 842, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\n/**\n * Custom base path for Web Worker URLs (the entrypoint and the module\n * chunks loaded inside the worker). Mirrors webpack's\n * `output.workerPublicPath`. `null` means \"use CHUNK_BASE_PATH\"; an empty\n * string is a literal empty prefix (not a fallback).\n *\n * The worker's bootstrap rejects module chunks whose origin differs from\n * the worker's own origin, so the override has to apply to both — using\n * `WORKER_BASE_PATH` only for the entrypoint would leave the worker unable\n * to load any chunks when `CHUNK_BASE_PATH` is on a different origin.\n */\ndeclare var WORKER_BASE_PATH: string | null\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk, workerBasePath))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(\n getChunkRelativeUrl(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(\n chunkPath: ChunkPath | ChunkListPath,\n basePath: string = CHUNK_BASE_PATH\n): ChunkUrl {\n return `${basePath}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","includedList","modulesPromises","includedModuleChunksList","moduleChunksPromises","promise","moduleChunksToLoad","_iteratorError","moduleChunk","_iteratorError1","moduleChunkToLoad","promise1","_iteratorError2","includedModuleChunk","_iteratorError3","included","loadChunkPath","map","has","get","length","every","p","Promise","all","moduleChunks","filter","Set","add","set","push","path","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","workerBasePath","WORKER_BASE_PATH","CHUNK_BASE_PATH","chunkUrls","chunk","reverse","params","WORKER_FORWARDED_GLOBALS","globalName","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","basePath","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BhE,IAAMA,0BACJC,QAAQC,SAAS;AA4DnB,IAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,IAAMI,mBAAuD,IAAIH;AAEjE,IAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,IAAI,CAACC,CAAC,CAACC,EAAE,EAAEL;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CAAC,CAACC,EAAE,EACTG,WACA+H;AAEJ;AACA5I,iBAAiBgJ,CAAC,GAAGD","ignoreList":[0]}}, + {"offset": {"line": 1427, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/build-base.ts"],"sourcesContent":["/// \n/// \n\nconst moduleCache: ModuleCache = {}\ncontextPrototype.c = moduleCache\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = moduleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// Used by the backend\n// @ts-ignore\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n Module\n> = (id, sourceModule) => {\n const module = moduleCache[id]\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n const moduleFactory = moduleFactories.get(id)\n if (typeof moduleFactory !== 'function') {\n // This can happen if modules incorrectly handle HMR disposes/updates,\n // e.g. when they keep a `setTimeout` around which still executes old code\n // and contains e.g. a `require(\"something\")` call.\n throw new Error(factoryNotAvailableMessage(id, sourceType, sourceData))\n }\n\n const module: Module = createModuleObject(id)\n const exports = module.exports\n\n moduleCache[id] = module\n\n // NOTE(alexkirsz) This can fail when the module encounters a runtime error.\n const context = new (Context as any as ContextConstructor)(\n module,\n exports\n )\n try {\n moduleFactory(context, module, exports)\n } catch (error) {\n module.error = error as any\n throw error\n }\n\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// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkScript\n | ChunkPath\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories\n )\n }\n\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n"],"names":["moduleCache","contextPrototype","c","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","Parent","sourceType","sourceData","moduleFactory","moduleFactories","get","Error","factoryNotAvailableMessage","createModuleObject","exports","context","Context","namespaceObject","interopEsm","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","undefined","installCompressedModuleFactories","BACKEND"],"mappings":"AAAA,0CAA0C;AAC1C,mCAAmC;AAEnC,IAAMA,cAAmC,CAAC;AAC1CC,iBAAiBC,CAAC,GAAGF;AAErB;;CAEC,GACD,aAAa;AACb,6DAA6D;AAC7D,SAASG,8BACPC,SAAoB,EACpBC,QAAkB;IAElB,IAAMC,SAASN,WAAW,CAACK,SAAS;IACpC,IAAIC,QAAQ;QACV,IAAIA,OAAOC,KAAK,EAAE;YAChB,MAAMD,OAAOC,KAAK;QACpB;QACA,OAAOD;IACT;IAEA,OAAOE,kBAAkBH,UAAUI,WAAWC,OAAO,EAAEN;AACzD;AAEA;;CAEC,GACD,sBAAsB;AACtB,aAAa;AACb,6DAA6D;AAC7D,IAAMO,mCAEF,0CAACC,IAAIC;IACP,IAAMP,SAASN,WAAW,CAACY,GAAG;IAE9B,IAAIN,QAAQ;QACV,IAAIA,OAAOC,KAAK,EAAE;YAChB,MAAMD,OAAOC,KAAK;QACpB;QACA,OAAOD;IACT;IAEA,OAAOE,kBAAkBI,IAAIH,WAAWK,MAAM,EAAED,aAAaD,EAAE;AACjE;AAEA,SAASJ,kBACPI,EAAY,EACZG,UAAsB,EACtBC,UAAsB;IAEtB,IAAMC,gBAAgBC,gBAAgBC,GAAG,CAACP;IAC1C,IAAI,OAAOK,kBAAkB,YAAY;QACvC,sEAAsE;QACtE,0EAA0E;QAC1E,mDAAmD;QACnD,MAAM,IAAIG,MAAMC,2BAA2BT,IAAIG,YAAYC;IAC7D;IAEA,IAAMV,SAAiBgB,mBAAmBV;IAC1C,IAAMW,UAAUjB,OAAOiB,OAAO;IAE9BvB,WAAW,CAACY,GAAG,GAAGN;IAElB,4EAA4E;IAC5E,IAAMkB,UAAU,IAAKC,QACnBnB,QACAiB;IAEF,IAAI;QACFN,cAAcO,SAASlB,QAAQiB;IACjC,EAAE,OAAOhB,OAAO;QACdD,OAAOC,KAAK,GAAGA;QACf,MAAMA;IACR;IAEA,IAAID,OAAOoB,eAAe,IAAIpB,OAAOiB,OAAO,KAAKjB,OAAOoB,eAAe,EAAE;QACvE,yDAAyD;QACzDC,WAAWrB,OAAOiB,OAAO,EAAEjB,OAAOoB,eAAe;IACnD;IAEA,OAAOpB;AACT;AAEA,6DAA6D;AAC7D,SAASsB,cAAcC,YAA+B;IACpD,IAAMC,QAAQC,yBAAyBF,YAAY,CAAC,EAAE;IAGtD,IAAIG;IACJ,8GAA8G;IAC9G,IAAIH,aAAaI,MAAM,KAAK,GAAG;QAC7BD,gBAAgBH,YAAY,CAAC,EAAE;IACjC,OAAO;QACLG,gBAAgBE;QAChBC,iCACEN,cACA,WAAW,GAAG,GACdX;IAEJ;IAEA,OAAOkB,QAAQR,aAAa,CAACE,OAAOE;AACtC","ignoreList":[0]}}, + {"offset": {"line": 1498, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","_document_currentScript","self","TURBOPACK_ASSET_SUFFIX","src","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","chunkUrl","resolver","_iteratorError","otherChunkData","otherChunkPath","otherChunkUrl","_iteratorError1","moduleId","getPathFromScript","getUrlFromScript","getOrCreateResolver","resolve","otherChunks","getChunkPath","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","instance","fetchWebAssembly","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","resolve1","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","document","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","Array","from","script","addEventListener","script1","fetch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;;QAGKC,sCAAAA,yBAAAA;IAFZ,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,IAAMC,eAAMH,YAAAA,sBAAAA,iCAAAA,0BAAAA,UAAUI,aAAa,cAAvBJ,+CAAAA,uCAAAA,wBAAyBK,YAAY,cAArCL,2DAAAA,0CAAAA,yBAAwC,6CAAU;IAC9D,IAAMM,KAAKH,IAAII,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIH,IAAIK,KAAK,CAACF,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G,GAAG;wBAGzBlB,kCAAAA,2BAAAA;;wBAFL,qEAAqE;wBACrE,kEAAkE;wBAClE,QAAKA,YAAgBsE,MAAMC,IAAI,CAACF,qCAA3BrE,SAAAA,6BAAAA,QAAAA,yBAAAA,iCAA6C;4BAA7CA,IAAMwE,SAANxE;4BACHwE,OAAOC,gBAAgB,CAAC,SAAS;gCAC/B1E,SAASuC,MAAM;4BACjB;wBACF;;wBAJKtC;wBAAAA;;;iCAAAA,6BAAAA;gCAAAA;;;gCAAAA;sCAAAA;;;;gBAKP,OAAO;oBACL,IAAM0E,UAASjB,SAASG,aAAa,CAAC;oBACtCc,QAAOZ,WAAW,GAAGC;oBACrBW,QAAOzF,GAAG,GAAGa;oBACb,yEAAyE;oBACzE,wEAAwE;oBACxE,eAAe;oBACf4E,QAAOT,OAAO,GAAG;wBACflE,SAASuC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDmB,SAASU,IAAI,CAACC,WAAW,CAACM;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIrB,MAAM,CAAC,mCAAmC,EAAEvD,UAAU;YAClE;QACF;QAEAC,SAAS4C,cAAc,GAAG;QAC1B,OAAO5C,SAASwC,OAAO;IACzB;IAEA,SAASR,iBAAiBL,aAAwB;QAChD,OAAOiD,MAAM/D,oBAAoBc;IACnC;AACF,CAAC","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/0rv8_turbopack-tests_tests_snapshot_swc_transforms_preset_env_input_index_04jskxh.js b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/0rv8_turbopack-tests_tests_snapshot_swc_transforms_preset_env_input_index_04jskxh.js index 95dde9dc8795..25751893f720 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/0rv8_turbopack-tests_tests_snapshot_swc_transforms_preset_env_input_index_04jskxh.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/0rv8_turbopack-tests_tests_snapshot_swc_transforms_preset_env_input_index_04jskxh.js @@ -8,6 +8,7 @@ if (!Array.isArray(globalThis["TURBOPACK"])) { } var CHUNK_BASE_PATH = ""; +var WORKER_BASE_PATH = null; var RELATIVE_ROOT_PATH = "../../../../../../.."; var RUNTIME_PUBLIC_PATH = ""; var ASSET_SUFFIX = ""; @@ -1297,8 +1298,13 @@ browserContextPrototype.q = exportUrl; * @param workerOptions options to pass to the Worker constructor (optional) */ function createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions) { var isSharedWorker = WorkerConstructor.name === 'SharedWorker'; + // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the + // module chunks loaded inside the worker, keeping them same-origin to each + // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN. + // `null` falls back; an empty string is treated as a literal empty prefix. + var workerBasePath = WORKER_BASE_PATH !== null && WORKER_BASE_PATH !== void 0 ? WORKER_BASE_PATH : CHUNK_BASE_PATH; var chunkUrls = moduleChunks.map(function(chunk) { - return getChunkRelativeUrl(chunk); + return getChunkRelativeUrl(chunk, workerBasePath); }).reverse(); var params = [ chunkUrls, @@ -1324,7 +1330,7 @@ browserContextPrototype.q = exportUrl; } } } - var url = new URL(getChunkRelativeUrl(entrypoint), location.origin); + var url = new URL(getChunkRelativeUrl(entrypoint, workerBasePath), location.origin); var paramsJson = JSON.stringify(params); if (isSharedWorker) { url.searchParams.set('params', paramsJson); @@ -1346,7 +1352,8 @@ browserContextPrototype.b = createWorker; /** * Returns the URL relative to the origin where a chunk can be fetched from. */ function getChunkRelativeUrl(chunkPath) { - return `${CHUNK_BASE_PATH}${chunkPath.split('/').map(function(p) { + var basePath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : CHUNK_BASE_PATH; + return `${basePath}${chunkPath.split('/').map(function(p) { return encodeURIComponent(p); }).join('/')}${ASSET_SUFFIX}`; } diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_index_09-gc7x.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_index_09-gc7x.js.map index 193a111fc8b3..90020a7b24bf 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_index_09-gc7x.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_index_09-gc7x.js.map @@ -2,10 +2,10 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 15, "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","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AOK,QAAQ,GAAG;IAClCL,OAAOM,QAAQ,GAAGN,OAAOO,MAAM,GAAG,CAAC,GAAGC,QAAsBX;IAC5D,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": 591, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(getChunkRelativeUrl(entrypoint), location.origin)\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(chunkPath: ChunkPath | ChunkListPath): ChunkUrl {\n return `${CHUNK_BASE_PATH}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","CHUNK_BASE_PATH","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AAiBhE,MAAMA,0BACJC,QAAQ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F,QAAQ8E,eAAe,CAC5B5H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH,YACAC;AAEJ;AACArI,iBAAiBsI,CAAC,GAAGH;AAErB,SAASI,sBAEP1H,SAAoB,EACpBuH,UAAoC;IAEpC,OAAO/E,QAAQkF,qBAAqB,CAClChI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH;AAEJ;AACApI,iBAAiBwI,CAAC,GAAGD","ignoreList":[0]}}, - {"offset": {"line": 850, "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;IACxD,OAAO,CAAC,kBAAkB,EAAEA,gBAAgBY,IAAI,CAAC,SAAS;AAC5D;AAEA;;;;;;;;CAQC,GACD,SAASC,yBACPC,QAAkB,EAClBC,qBAA8B;IAE9B,MAAMC,kBAAiC,IAAIpB;IAC3C,MAAMqB,uBAAqD,IAAIzB;IAI/D,MAAM0B,QAAqB;QACzB;YACEJ;YACAd,iBAAiB,EAAE;QACrB;KACD;IAED,I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,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": 1544, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAMA,sBAAsBC,QAAQC,SAAS;AAE7C;;;;;;CAMC,GACD,oDAAoD,GAEpD,wEAAwE;AACxEC,iBAAiBC,OAAOC,MAAM,CAAC;AAC/BL,oBAAoBM,CAAC,GAAGH;AACxBI,iBAAiB,IAAIC;AAErB,kDAAkD;AAClDC,gCAAgC;AAgChC;;;;;;CAMC,GACD,MAAMC,kBAAiD,IAAIC;AAC3D;;CAEC,GACD,MAAMC,kBAAiD,IAAID;AAC3D;;;;CAIC,GACD,MAAME,oBAAwC,IAAIL;AAClD;;CAEC,GACD,MAAMM,qBAAyD,IAAIH;AACnE;;CAEC,GACD,MAAMI,qBAAyD,IAAIJ;AAEnE;;CAEC,GACD,aAAa;AACb,SAASK,8BACPC,SAAoB,EACpBC,QAAkB;IAElB,MAAMC,SAAShB,cAAc,CAACe,SAAS;IACvC,IAAIC,QAAQ;QACV,IAAIA,OAAOC,KAAK,EAAE;YAChB,MAAMD,OAAOC,KAAK;QACpB;QACA,OAAOD;IACT;IAEA,aAAa;IACb,OAAOE,kBAAkBH,UAAUI,WAAWC,OAAO,EAAEN;AACzD;AAEA;;CAEC,GACD,2CAA2C;AAC3C,MAAMO,mCAEF,CAACC,IAAIC;IACP,IA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OAAOgF,QAAQwC,aAAa,CAACE,OAAOE;AACtC;AAEA;;CAEC,GACD,SAASK,kBAAkBC,SAAoB;IAC7C,MAAMC,kBAAkBR,yBAAyBO,UAAUE,MAAM;IAGjE,MAAMhC,gBAAgB0B,kBAAkBK;IACxC,sEAAsE;IACtEnD,QAAQwC,aAAa,CAACpB;IACtB3D,WAAW4F,gCAAgC,CAAErH,IAAI,CAAC;QAChDoF;QACAD,YAAYmC,IAAI,CAAC,MAAMlC;KACxB;IAED,+CAA+C;IAC/C,MAAMY,aAAa,IAAIzH,IAAI2I,UAAUvD,MAAM,CAAC4D,GAAG,CAACC;IAChD3I,mBAAmByH,GAAG,CAAClB,eAAeY;IACtC,KAAK,MAAMhH,aAAagH,WAAY;QAClC,IAAIC,kBAAkBnH,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, - {"offset": {"line": 1961, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC,eAAeC,eAAe,UAAU;IAC9D,MAAMC,KAAKJ,IAAIK,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIJ,IAAIM,KAAK,CAACF,MAAM;AACnC;AAUA,IAAIG;AAEJ;;CAEC,GACD,MAAMC,iBAA+C,IAAIC;AAExD,CAAC;IACAF,UAAU;QACR,MAAMG,eAAcC,KAAK,EAAEC,MAAM;YAC/B,IAAIC,YAAYC,kBAAkBH;YAClC,IAAII,WAAWC,iBAAiBL;YAEhC,MAAMM,WAAWC,oBAAoBH;YACrCE,SAASE,OAAO;YAEhB,IAAIP,UAAU,MAAM;gBAClB;YACF;YAEA,KAAK,MAAMQ,kBAAkBR,OAAOS,WAAW,CAAE;gBAC/C,MAAMC,iBAAiBC,aAAaH;gBACpC,MAAMI,gBAAgBC,oBAAoBH;gBAE1C,iFAAiF;gBACjFJ,oBAAoBM;YACtB;YAEA,kFAAkF;YAClF,MAAME,QAAQC,GAAG,CACff,OAAOS,WAAW,CAACO,GAAG,CAAC,CAACR,iBACtBS,iBAAiBhB,WAAWO;YAIhC,IAAIR,OAAOkB,gBAAgB,CAACC,MAAM,GAAG,GAAG;gBACtC,KAAK,MAAMC,YAAYpB,OAAOkB,g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B,gBAAgB,EAAEA,gBAAgB,GAAG,CAAC;gBAE7H,IAAIc,gBAAgBlD,MAAM,GAAG,GAAG;oBAC9B,qEAAqE;oBACrE,kEAAkE;oBAClE,KAAK,MAAMmD,UAAUC,MAAMC,IAAI,CAACH,iBAAkB;wBAChDC,OAAOG,gBAAgB,CAAC,SAAS;4BAC/BpE,SAASmC,MAAM;wBACjB;oBACF;gBACF,OAAO;oBACL,MAAM8B,SAASjF,SAASuE,aAAa,CAAC;oBACtCU,OAAOR,WAAW,GAAGC;oBACrBO,OAAOlF,GAAG,GAAGe;oBACb,yEAAyE;oBACzE,wEAAwE;oBACxE,eAAe;oBACfmE,OAAOL,OAAO,GAAG;wBACf5D,SAASmC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDnD,SAAS8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, - {"offset": {"line": 2132, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3C,gFAAgF;YAChF,MAAMC,sBAAsBC,UAAUH;YAEtC,IAAII,MAAMN,WAAW;gBACnB,MAAMO,QAAQC,SAASC,gBAAgB,CACrC,CAAC,WAAW,EAAEP,aAAa,eAAe,EAAEA,aAAa,eAAe,EAAEE,oBAAoB,eAAe,EAAEA,oBAAoB,GAAG,CAAC;gBAEzI,KAAK,MAAMM,QAAQC,MAAMC,IAAI,CAACL,OAAQ;oBACpCG,KAAKG,MAAM;gBACb;YACF,OAAO,IAAIC,KAAKd,WAAW;gBACzB,mEAAmE;gBACnE,0BAA0B;gBAC1B,uEAAuE;gBACvE,4DAA4D;gBAC5D,MAAMe,UAAUP,SAASC,gBAAgB,CACvC,CAAC,YAAY,EAAEP,aAAa,gBAAgB,EAAEA,aAAa,gBAAgB,EAAEE,oBAAoB,gBAAgB,EAAEA,oBAAoB,GAAG,CAAC;gBAE7I,KAAK,MAAMY,UAAUL,MAAMC,IAAI,CAACG,SAAU;oBACxCC,OAAOH,MAAM;gBACf;YACF,OAAO;gBACL,MAAM,IAAII,MAAM,CAAC,mCAAmC,EAAEjB,UAAU;YAClE;QACF;QAEAkB,aAAYlB,QAAQ;YAClB,OAAO,IAAImB,QAAc,CAACC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AAKkC,OAAO,GAAG;oBACbvB;gBACF;gBACAX,KAAKmC,MAAM,GAAG;oBACZ,0EAA0E;oBAC1E,wEAAwE;oBACxE,uBAAuB;oBACvB,KAAK,MAAMC,gBAAgBnC,MAAMC,IAAI,CAACU,eACpCwB,aAAajC,MAAM;oBAErB,uEAAuE;oBACvE,oBAAoB;oBACpBO;gBACF;gBAEA,wEAAwE;gBACxE,4BAA4B;gBAC5BE,aAAa,CAAC,EAAE,CAACyB,aAAa,CAAEC,YAAY,CAC1CtC,MACAY,aAAa,CAAC,EAAE,CAAC2B,WAAW;YAEhC;QACF;QAEAC,SAAS,IAAMC,KAAKlB,QAAQ,CAACmB,MAAM;IACrC;IAEA,SAASnD,eAAeD,QAAkB;QACxCqD,eAAeC,MAAM,CAACtD;IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] + {"offset": {"line": 16, "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,QAAQM,SAAS;AA+B1C,MAAMC,iBAAiBC,OAAOF,SAAS,CAACC,cAAc;AACtD,MAAME,cAAc,OAAOC,WAAW,eAAeA,OAAOD,WAAW;AAEvE,SAASE,WACPC,GAAQ,EACRC,IAAiB,EACjBC,OAA2C;IAE3C,IAAI,CAACP,eAAeQ,IAAI,CAACH,KAAKC,OAAOL,OAAOQ,cAAc,CAACJ,KAAKC,MAAMC;AACxE;AAEA,SAASG,qBACPC,WAAgC,EAChCC,EAAY;IAEZ,IAAIlB,SAASiB,WA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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": 592, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\n/**\n * Custom base path for Web Worker URLs (the entrypoint and the module\n * chunks loaded inside the worker). Mirrors webpack's\n * `output.workerPublicPath`. `null` means \"use CHUNK_BASE_PATH\"; an empty\n * string is a literal empty prefix (not a fallback).\n *\n * The worker's bootstrap rejects module chunks whose origin differs from\n * the worker's own origin, so the override has to apply to both — using\n * `WORKER_BASE_PATH` only for the entrypoint would leave the worker unable\n * to load any chunks when `CHUNK_BASE_PATH` is on a different origin.\n */\ndeclare var WORKER_BASE_PATH: string | null\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk, workerBasePath))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(\n getChunkRelativeUrl(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(\n chunkPath: ChunkPath | ChunkListPath,\n basePath: string = CHUNK_BASE_PATH\n): ChunkUrl {\n return `${basePath}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","workerBasePath","WORKER_BASE_PATH","CHUNK_BASE_PATH","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","basePath","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AA6BhE,MAAMA,0BACJC,QAAQC,SAAS;AA4DnB,MAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,MAAMI,mBAAuD,IAAIH;AAEjE,MAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,IAAI,CA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,EACTG,WACA0H,YACAC;AAEJ;AACAxI,iBAAiByI,CAAC,GAAGH;AAErB,SAASI,sBAEP7H,SAAoB,EACpB0H,UAAoC;IAEpC,OAAOlF,QAAQqF,qBAAqB,CAClCnI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H;AAEJ;AACAvI,iBAAiB2I,CAAC,GAAGD","ignoreList":[0]}}, + {"offset": {"line": 856, "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;IACxD,OAAO,CAAC,kBAAkB,EAAEA,gBAAgBY,IAAI,CAAC,SAAS;AAC5D;AAEA;;;;;;;;CAQC,GACD,SAASC,yBACPC,QAAkB,EAClBC,qBAA8B;IAE9B,MAAMC,kBAAiC,IAAIpB;IAC3C,MAAMqB,uBAAqD,IAAIzB;IAI/D,MAAM0B,QAAqB;QACzB;YACEJ;YACAd,iBAAiB,EAAE;QACrB;KACD;IAED,IAAImB;IACJ,MAAQA,WAAWD,MAAME,KAAK,GAAK;QACjC,MAAM,EAAEN,QAAQ,EA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xE,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": 1550, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAMA,sBAAsBC,QAAQC,SAAS;AAE7C;;;;;;CAMC,GACD,oDAAoD,GAEpD,wEAAwE;AACxEC,iBAAiBC,OAAOC,MAAM,CAAC;AAC/BL,oBAAoBM,CAAC,GAAGH;AACxBI,iBAAiB,IAAIC;AAErB,kDAAkD;AAClDC,gCAAgC;AAgChC;;;;;;CAMC,GACD,MAAMC,kBAAiD,IAAIC;AAC3D;;CAEC,GACD,MAAMC,kBAAiD,IAAID;AAC3D;;;;CAIC,GACD,MAAME,oBAAwC,IAAIL;AAClD;;CAEC,GACD,MAAMM,qBAAyD,IAAIH;AACnE;;CAEC,GACD,MAAMI,qBAAyD,IAAIJ;AAEnE;;CAEC,GACD,aAAa;AACb,SAASK,8BACPC,SAAoB,EACpBC,QAAkB;IAElB,MAAMC,SAAShB,cAAc,CAACe,SAAS;IACvC,IAAIC,QAAQ;QACV,IAAIA,OAAOC,KAAK,EAAE;YAChB,MAAMD,OAAOC,KAAK;QACpB;QACA,OAAOD;IACT;IAEA,aAAa;IACb,OAAOE,kBAAkBH,UAAUI,WAAWC,OAAO,EAAEN;AACzD;AAEA;;CAEC,GACD,2CAA2C;AAC3C,MAAMO,mCAEF,CAACC,IAAIC;IACP,IAAI,CAACA,aAAaC,GAAG,CAACC,MAAM,EAAE;QAC5BC,QAAQC,IAAI,CACV,CAAC,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C,SAAoB;IAC7C,MAAMC,kBAAkBR,yBAAyBO,UAAUE,MAAM;IAGjE,MAAMhC,gBAAgB0B,kBAAkBK;IACxC,sEAAsE;IACtEnD,QAAQwC,aAAa,CAACpB;IACtB3D,WAAW4F,gCAAgC,CAAErH,IAAI,CAAC;QAChDoF;QACAD,YAAYmC,IAAI,CAAC,MAAMlC;KACxB;IAED,+CAA+C;IAC/C,MAAMY,aAAa,IAAIzH,IAAI2I,UAAUvD,MAAM,CAAC4D,GAAG,CAACC;IAChD3I,mBAAmByH,GAAG,CAAClB,eAAeY;IACtC,KAAK,MAAMhH,aAAagH,WAAY;QAClC,IAAIC,kBAAkBnH,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, + {"offset": {"line": 1967, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC,eAAeC,eAAe,UAAU;IAC9D,MAAMC,KAAKJ,IAAIK,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIJ,IAAIM,KAAK,CAACF,MAAM;AACnC;AAUA,IAAIG;AAEJ;;CAEC,GACD,MAAMC,iBAA+C,IAAIC;AAExD,CAAC;IACAF,UAAU;QACR,MAAMG,eAAcC,KAAK,EAAEC,MAAM;YAC/B,IAAIC,YAAYC,kBAAkBH;YAClC,IAAII,WAAWC,iBAAiBL;YAEhC,MAAMM,WAAWC,oBAAoBH;YACrCE,SAASE,OAAO;YAEhB,IAAIP,UAAU,MAAM;gBAClB;YACF;YAEA,KAAK,MAAMQ,kBAAkBR,OAAOS,WAAW,CAAE;gBAC/C,MAAMC,iBAAiBC,aAAaH;gBACpC,MAAMI,gBAAgBC,oBAAoBH;gBAE1C,iFAAiF;gBACjFJ,oBAAoBM;YACtB;YAEA,kFAAkF;YAClF,MAAME,QAAQC,GAAG,CACff,OAAOS,WAAW,CAACO,GAAG,CAAC,CAACR,iBACtBS,iBAAiBhB,WAAWO;YAIhC,IAAIR,OAAOkB,gBAAgB,CAACC,MAAM,GAAG,GAAG;gBACtC,KAAK,MAAMC,YAAYpB,OAAOkB,gBAAgB,CAAE;oBAC9CG,8BAA8BpB,WAAWmB;gBAC3C;YACF;QACF;QAEA;;;KAGC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AG,GAAG;oBAC9B,qEAAqE;oBACrE,kEAAkE;oBAClE,KAAK,MAAMmD,UAAUC,MAAMC,IAAI,CAACH,iBAAkB;wBAChDC,OAAOG,gBAAgB,CAAC,SAAS;4BAC/BpE,SAASmC,MAAM;wBACjB;oBACF;gBACF,OAAO;oBACL,MAAM8B,SAASjF,SAASuE,aAAa,CAAC;oBACtCU,OAAOR,WAAW,GAAGC;oBACrBO,OAAOlF,GAAG,GAAGe;oBACb,yEAAyE;oBACzE,wEAAwE;oBACxE,eAAe;oBACfmE,OAAOL,OAAO,GAAG;wBACf5D,SAASmC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDnD,SAAS8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, + {"offset": {"line": 2138, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3C,gFAAgF;YAChF,MAAMC,sBAAsBC,UAAUH;YAEtC,IAAII,MAAMN,WAAW;gBACnB,MAAMO,QAAQC,SAASC,gBAAgB,CACrC,CAAC,WAAW,EAAEP,aAAa,eAAe,EAAEA,aAAa,eAAe,EAAEE,oBAAoB,eAAe,EAAEA,oBAAoB,GAAG,CAAC;gBAEzI,KAAK,MAAMM,QAAQC,MAAMC,IAAI,CAACL,OAAQ;oBACpCG,KAAKG,MAAM;gBACb;YACF,OAAO,IAAIC,KAAKd,WAAW;gBACzB,mEAAmE;gBACnE,0BAA0B;gBAC1B,uEAAuE;gBACvE,4DAA4D;gBAC5D,MAAMe,UAAUP,SAASC,gBAAgB,CACvC,CAAC,YAAY,EAAEP,aAAa,gBAAgB,EAAEA,aAAa,gBAAgB,EAAEE,oBAAoB,gBAAgB,EAAEA,oBAAoB,GAAG,CAAC;gBAE7I,KAAK,MAAMY,UAAUL,MAAMC,IAAI,CAACG,SAAU;oBACxCC,OAAOH,MAAM;gBACf;YACF,OAAO;gBACL,MAAM,IAAII,MAAM,CAAC,mCAAmC,EAAEjB,UAAU;YAClE;QACF;QAEAkB,aAAYlB,QAAQ;YAClB,OAAO,IAAImB,QAAc,CAACC,SAASC;gBACjC,IAAI,CAACf,MAAMN,WAAW;oBACpBqB,OAAO,IAAIJ,MAAM;oBAC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0E;oBAC1E,wEAAwE;oBACxE,uBAAuB;oBACvB,KAAK,MAAMC,gBAAgBnC,MAAMC,IAAI,CAACU,eACpCwB,aAAajC,MAAM;oBAErB,uEAAuE;oBACvE,oBAAoB;oBACpBO;gBACF;gBAEA,wEAAwE;gBACxE,4BAA4B;gBAC5BE,aAAa,CAAC,EAAE,CAACyB,aAAa,CAAEC,YAAY,CAC1CtC,MACAY,aAAa,CAAC,EAAE,CAAC2B,WAAW;YAEhC;QACF;QAEAC,SAAS,IAAMC,KAAKlB,QAAQ,CAACmB,MAAM;IACrC;IAEA,SAASnD,eAAeD,QAAkB;QACxCqD,eAAeC,MAAM,CAACtD;IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0yr5fg0.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0yr5fg0.js.map index 193a111fc8b3..90020a7b24bf 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0yr5fg0.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0yr5fg0.js.map @@ -2,10 +2,10 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 15, "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,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W,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": 591, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(getChunkRelativeUrl(entrypoint), location.origin)\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(chunkPath: ChunkPath | ChunkListPath): ChunkUrl {\n return `${CHUNK_BASE_PATH}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","CHUNK_BASE_PATH","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AAiBhE,MAAMA,0BACJC,QAAQC,SAAS;AA4DnB,MAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,MAAMI,mBAAuD,IAAIH;AAEjE,MAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,IAAI,CAACC,CAAC,CAACC,EAAE,EAAEL;AACzD;AACAV,wBAAwBgB,CAAC,GAAGP;AAE5B,SAASQ,iBAAiBC,SAAoB,EAAER,SAAoB;IAClE,OAAOC,kBAAkBC,WAAWO,OAAO,EAAED,WAAWR;AAC1D;AAEA,eAAeC,kBACbS,UAAsB,EACtBC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AACA,OAAO;QACjB,IAAI,OAAOgC,8BAA8B,aAAa;YACpD,OAAO;gBAAEP,KAAKO,0BAA0BC,GAAG;YAAI;QACjD,OAAO;YACL,MAAM,IAAIzD,MAAM;QAClB;IACF,OAAO;QACL,OAAO;YAAEiD,KAAKzB,MAAMkC,YAAY,CAAC;QAAQ;IAC3C;AACF;AAEA;;;CAGC,GACD,SAASC,kBACPC,cAAoC,EACpCC,GAAW;IAEX,sDAAsD;IACtD,MAAM5C,IAAI2C,eAAeE,OAAO,CAAC;IACjC,IAAIC;IACJ,IAAI9C,MAAM,CAAC,GAAG;QACZ8C,MAAM9C;IACR,OAAO;QACL,MAAM+C,IAAIJ,eAAeE,OAAO,CAAC;QACjCC,MAAMC,MAAM,CAAC,IAAIA,IAAIJ,eAAepG,MAAM;IAC5C;IACA,oDAAoD;IACpD,OAAOuG,OAAOF,IAAIrG,MAAM,IAAIoG,eAAeR,UAAU,CAACS,KAAKE,MAAMF,IAAIrG,MAAM;AAC7E;AAEA,SAASyG,KAAKL,cAAoC;IAChD,OAAOD,kBAAkBC,gBAAgB;AAC3C;AAEA,SAASM,MAAMjF,QAAkB;IAC/B,OAAO0E,kBAAkB1E,UAAU;AACrC;AAEA,SAASkF,gBAEPtH,SAAoB,EACpBuH,UAAoC,EACpCC,UAA+B;IAE/B,OAAOhF,QAAQ8E,eAAe,CAC5B5H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH,YACAC;AAEJ;AACArI,iBAAiBsI,CAAC,GAAGH;AAErB,SAASI,sBAEP1H,SAAoB,EACpBuH,UAAoC;IAEpC,OAAO/E,QAAQkF,qBAAqB,CAClChI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH;AAEJ;AACApI,iBAAiBwI,CAAC,GAAGD","ignoreList":[0]}}, - {"offset": {"line": 850, "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,yB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ACR9B,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": 1544, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_L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AG,CAAClB,eAAeY;IACtC,KAAK,MAAMhH,aAAagH,WAAY;QAClC,IAAIC,kBAAkBnH,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, - {"offset": {"line": 1961, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAK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AAOL,OAAO,GAAG;wBACf5D,SAASmC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDnD,SAAS8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, - {"offset": {"line": 2132, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YAC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AACmB,MAAM;IACrC;IAEA,SAASnD,eAAeD,QAAkB;QACxCqD,eAAeC,MAAM,CAACtD;IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] + {"offset": {"line": 16, "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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M,GAAGJ,OAAOK,QAAQ,GAAG;IAClCL,OAAOM,QAAQ,GAAGN,OAAOO,MAAM,GAAG,CAAC,GAAGC,QAAsBX;IAC5D,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": 592, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\n/**\n * Custom base path for Web Worker URLs (the entrypoint and the module\n * chunks loaded inside the worker). Mirrors webpack's\n * `output.workerPublicPath`. `null` means \"use CHUNK_BASE_PATH\"; an empty\n * string is a literal empty prefix (not a fallback).\n *\n * The worker's bootstrap rejects module chunks whose origin differs from\n * the worker's own origin, so the override has to apply to both — using\n * `WORKER_BASE_PATH` only for the entrypoint would leave the worker unable\n * to load any chunks when `CHUNK_BASE_PATH` is on a different origin.\n */\ndeclare var WORKER_BASE_PATH: string | null\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk, workerBasePath))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(\n getChunkRelativeUrl(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(\n chunkPath: ChunkPath | ChunkListPath,\n basePath: string = CHUNK_BASE_PATH\n): ChunkUrl {\n return `${basePath}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","workerBasePath","WORKER_BASE_PATH","CHUNK_BASE_PATH","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","basePath","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AA6BhE,MAAMA,0BACJC,QAAQC,SAAS;AA4DnB,MAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,MAAMI,mBAAuD,IAAIH;AAEjE,MAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,IAAI,CAACC,CAAC,CAACC,EAAE,EAAEL;AACzD;AACAV,wBAAwBgB,CAAC,GAAGP;AAE5B,SAASQ,iBAAiBC,SAAoB,EAAER,SAAoB;IAClE,OAAOC,kBAAkBC,WAAWO,OAAO,EAAED,WAAWR;AAC1D;AAEA,eAAeC,kBACbS,UAAsB,EACtBC,UAAsB,EACtBX,SAAoB;IAEpB,IAAI,OAAOA,cAAc,UAAU;QACjC,OAAOY,cAAcF,YAAYC,YAAYX;IAC/C;IAEA,MAAMa,eAAeb,UAAUc,QAAQ,IAAI,EAAE;IAC7C,MAAMC,kBAAkBF,aAAaG,GAAG,CAAC,CAACF;QACxC,IAAIrB,gB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BAA0BC,GAAG;YAAI;QACjD,OAAO;YACL,MAAM,IAAI5D,MAAM;QAClB;IACF,OAAO;QACL,OAAO;YAAEoD,KAAKzB,MAAMkC,YAAY,CAAC;QAAQ;IAC3C;AACF;AAEA;;;CAGC,GACD,SAASC,kBACPC,cAAoC,EACpCC,GAAW;IAEX,sDAAsD;IACtD,MAAM/C,IAAI8C,eAAeE,OAAO,CAAC;IACjC,IAAIC;IACJ,IAAIjD,MAAM,CAAC,GAAG;QACZiD,MAAMjD;IACR,OAAO;QACL,MAAMkD,IAAIJ,eAAeE,OAAO,CAAC;QACjCC,MAAMC,MAAM,CAAC,IAAIA,IAAIJ,eAAevG,MAAM;IAC5C;IACA,oDAAoD;IACpD,OAAO0G,OAAOF,IAAIxG,MAAM,IAAIuG,eAAeR,UAAU,CAACS,KAAKE,MAAMF,IAAIxG,MAAM;AAC7E;AAEA,SAAS4G,KAAKL,cAAoC;IAChD,OAAOD,kBAAkBC,gBAAgB;AAC3C;AAEA,SAASM,MAAMpF,QAAkB;IAC/B,OAAO6E,kBAAkB7E,UAAU;AACrC;AAEA,SAASqF,gBAEPzH,SAAoB,EACpB0H,UAAoC,EACpCC,UAA+B;IAE/B,OAAOnF,QAAQiF,eAAe,CAC5B/H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H,YACAC;AAEJ;AACAxI,iBAAiByI,CAAC,GAAGH;AAErB,SAASI,sBAEP7H,SAAoB,EACpB0H,UAAoC;IAEpC,OAAOlF,QAAQqF,qBAAqB,CAClCnI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H;AAEJ;AACAvI,iBAAiB2I,CAAC,GAAGD","ignoreList":[0]}}, + {"offset": {"line": 856, "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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fzG,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": 1550, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAM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H,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, + {"offset": {"line": 1967, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC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AS8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, + {"offset": {"line": 2138, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3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;IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_index_09-gc7x.js b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_index_09-gc7x.js index e3441c2ddb84..0f7ae85e5ee8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_index_09-gc7x.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_index_09-gc7x.js @@ -8,6 +8,7 @@ if (!Array.isArray(globalThis["TURBOPACK"])) { } var CHUNK_BASE_PATH = ""; +var WORKER_BASE_PATH = null; var RELATIVE_ROOT_PATH = "../../../../../../.."; var RUNTIME_PUBLIC_PATH = ""; var ASSET_SUFFIX = ""; @@ -747,7 +748,12 @@ browserContextPrototype.q = exportUrl; * @param workerOptions options to pass to the Worker constructor (optional) */ function createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions) { const isSharedWorker = WorkerConstructor.name === 'SharedWorker'; - const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk)).reverse(); + // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the + // module chunks loaded inside the worker, keeping them same-origin to each + // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN. + // `null` falls back; an empty string is treated as a literal empty prefix. + const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH; + const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk, workerBasePath)).reverse(); const params = [ chunkUrls, ASSET_SUFFIX @@ -755,7 +761,7 @@ browserContextPrototype.q = exportUrl; for (const globalName of WORKER_FORWARDED_GLOBALS){ params.push(globalThis[globalName]); } - const url = new URL(getChunkRelativeUrl(entrypoint), location.origin); + const url = new URL(getChunkRelativeUrl(entrypoint, workerBasePath), location.origin); const paramsJson = JSON.stringify(params); if (isSharedWorker) { url.searchParams.set('params', paramsJson); @@ -777,8 +783,8 @@ browserContextPrototype.b = createWorker; } /** * Returns the URL relative to the origin where a chunk can be fetched from. - */ function getChunkRelativeUrl(chunkPath) { - return `${CHUNK_BASE_PATH}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; + */ function getChunkRelativeUrl(chunkPath, basePath = CHUNK_BASE_PATH) { + return `${basePath}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; } function getPathFromScript(chunkScript) { if (typeof chunkScript === 'string') { diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0yr5fg0.js b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0yr5fg0.js index 5ef137f03e3b..19aa7af6fc56 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0yr5fg0.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0yr5fg0.js @@ -8,6 +8,7 @@ if (!Array.isArray(globalThis["TURBOPACK"])) { } var CHUNK_BASE_PATH = ""; +var WORKER_BASE_PATH = null; var RELATIVE_ROOT_PATH = "../../../../../../.."; var RUNTIME_PUBLIC_PATH = ""; var ASSET_SUFFIX = ""; @@ -747,7 +748,12 @@ browserContextPrototype.q = exportUrl; * @param workerOptions options to pass to the Worker constructor (optional) */ function createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions) { const isSharedWorker = WorkerConstructor.name === 'SharedWorker'; - const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk)).reverse(); + // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the + // module chunks loaded inside the worker, keeping them same-origin to each + // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN. + // `null` falls back; an empty string is treated as a literal empty prefix. + const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH; + const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk, workerBasePath)).reverse(); const params = [ chunkUrls, ASSET_SUFFIX @@ -755,7 +761,7 @@ browserContextPrototype.q = exportUrl; for (const globalName of WORKER_FORWARDED_GLOBALS){ params.push(globalThis[globalName]); } - const url = new URL(getChunkRelativeUrl(entrypoint), location.origin); + const url = new URL(getChunkRelativeUrl(entrypoint, workerBasePath), location.origin); const paramsJson = JSON.stringify(params); if (isSharedWorker) { url.searchParams.set('params', paramsJson); @@ -777,8 +783,8 @@ browserContextPrototype.b = createWorker; } /** * Returns the URL relative to the origin where a chunk can be fetched from. - */ function getChunkRelativeUrl(chunkPath) { - return `${CHUNK_BASE_PATH}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; + */ function getChunkRelativeUrl(chunkPath, basePath = CHUNK_BASE_PATH) { + return `${basePath}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; } function getPathFromScript(chunkScript) { if (typeof chunkScript === 'string') { diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_index_0arnewp.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_index_0arnewp.js.map index 193a111fc8b3..90020a7b24bf 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_index_0arnewp.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_index_0arnewp.js.map @@ -2,10 +2,10 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 15, "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","_modu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AGJ,OAAOK,QAAQ,GAAG;IAClCL,OAAOM,QAAQ,GAAGN,OAAOO,MAAM,GAAG,CAAC,GAAGC,QAAsBX;IAC5D,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": 591, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(getChunkRelativeUrl(entrypoint), location.origin)\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(chunkPath: ChunkPath | ChunkListPath): ChunkUrl {\n return `${CHUNK_BASE_PATH}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","CHUNK_BASE_PATH","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AAiBhE,MAAMA,0BAC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B,OAAOhF,QAAQ8E,eAAe,CAC5B5H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH,YACAC;AAEJ;AACArI,iBAAiBsI,CAAC,GAAGH;AAErB,SAASI,sBAEP1H,SAAoB,EACpBuH,UAAoC;IAEpC,OAAO/E,QAAQkF,qBAAqB,CAClChI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH;AAEJ;AACApI,iBAAiBwI,CAAC,GAAGD","ignoreList":[0]}}, - {"offset": {"line": 850, "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;IACxD,OAAO,CAAC,kBAAkB,EAAEA,gBAAgBY,IAAI,CAAC,SAAS;AAC5D;AAEA;;;;;;;;CAQC,GACD,SAASC,yBACPC,QAAkB,EAClBC,qBAA8B;IAE9B,MAAMC,kBAAiC,IAAIpB;IAC3C,MAAMqB,uBAAqD,IAAIzB;IAI/D,MAAM0B,QAAqB;QACzB;YACEJ;YACAd,iBAAiB,EAAE;QACrB;KAC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I,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": 1544, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAMA,sBAAsBC,QAAQC,SAAS;AAE7C;;;;;;CAMC,GACD,oDAAoD,GAEpD,wEAAwE;AACxEC,iBAAiBC,OAAOC,MAAM,CAAC;AAC/BL,oBAAoBM,CAAC,GAAGH;AACxBI,iBAAiB,IAAIC;AAErB,kDAAkD;AAClDC,gCAAgC;AAgChC;;;;;;CAMC,GACD,MAAMC,kBAAiD,IAAIC;AAC3D;;CAEC,GACD,MAAMC,kBAAiD,IAAID;AAC3D;;;;CAIC,GACD,MAAME,oBAAwC,IAAIL;AAClD;;CAEC,GACD,MAAMM,qBAAyD,IAAIH;AACnE;;CAEC,GACD,MAAMI,qBAAyD,IAAIJ;AAEnE;;CAEC,GACD,aAAa;AACb,SAASK,8BACPC,SAAoB,EACpBC,QAAkB;IAElB,MAAMC,SAAShB,cAAc,CAACe,SAAS;IACvC,IAAIC,QAAQ;QACV,IAAIA,OAAOC,KAAK,EAAE;YAChB,MAAMD,OAAOC,KAAK;QACpB;QACA,OAAOD;IACT;IAEA,aAAa;IACb,OAAOE,kBAAkBH,UAAUI,WAAWC,OAAO,EAAEN;AACzD;AAEA;;CAEC,GACD,2CAA2C;AAC3C,MAAMO,mCAEF,CAACC,IAAIC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3C;IACA,OAAOgF,QAAQwC,aAAa,CAACE,OAAOE;AACtC;AAEA;;CAEC,GACD,SAASK,kBAAkBC,SAAoB;IAC7C,MAAMC,kBAAkBR,yBAAyBO,UAAUE,MAAM;IAGjE,MAAMhC,gBAAgB0B,kBAAkBK;IACxC,sEAAsE;IACtEnD,QAAQwC,aAAa,CAACpB;IACtB3D,WAAW4F,gCAAgC,CAAErH,IAAI,CAAC;QAChDoF;QACAD,YAAYmC,IAAI,CAAC,MAAMlC;KACxB;IAED,+CAA+C;IAC/C,MAAMY,aAAa,IAAIzH,IAAI2I,UAAUvD,MAAM,CAAC4D,GAAG,CAACC;IAChD3I,mBAAmByH,GAAG,CAAClB,eAAeY;IACtC,KAAK,MAAMhH,aAAagH,WAAY;QAClC,IAAIC,kBAAkBnH,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, - {"offset": {"line": 1961, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC,eAAeC,eAAe,UAAU;IAC9D,MAAMC,KAAKJ,IAAIK,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIJ,IAAIM,KAAK,CAACF,MAAM;AACnC;AAUA,IAAIG;AAEJ;;CAEC,GACD,MAAMC,iBAA+C,IAAIC;AAExD,CAAC;IACAF,UAAU;QACR,MAAMG,eAAcC,KAAK,EAAEC,MAAM;YAC/B,IAAIC,YAAYC,kBAAkBH;YAClC,IAAII,WAAWC,iBAAiBL;YAEhC,MAAMM,WAAWC,oBAAoBH;YACrCE,SAASE,OAAO;YAEhB,IAAIP,UAAU,MAAM;gBAClB;YACF;YAEA,KAAK,MAAMQ,kBAAkBR,OAAOS,WAAW,CAAE;gBAC/C,MAAMC,iBAAiBC,aAAaH;gBACpC,MAAMI,gBAAgBC,oBAAoBH;gBAE1C,iFAAiF;gBACjFJ,oBAAoBM;YACtB;YAEA,kFAAkF;YAClF,MAAME,QAAQC,GAAG,CACff,OAAOS,WAAW,CAACO,GAAG,CAAC,CAACR,iBACtBS,iBAAiBhB,WAAWO;YAIhC,IAAIR,OAAOkB,gBAAgB,CAACC,MAAM,GAAG,GAAG;gBACtC,KAAK,MAAMC,YAAYpB,O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D,gBAAgB,gBAAgB,EAAEA,gBAAgB,GAAG,CAAC;gBAE7H,IAAIc,gBAAgBlD,MAAM,GAAG,GAAG;oBAC9B,qEAAqE;oBACrE,kEAAkE;oBAClE,KAAK,MAAMmD,UAAUC,MAAMC,IAAI,CAACH,iBAAkB;wBAChDC,OAAOG,gBAAgB,CAAC,SAAS;4BAC/BpE,SAASmC,MAAM;wBACjB;oBACF;gBACF,OAAO;oBACL,MAAM8B,SAASjF,SAASuE,aAAa,CAAC;oBACtCU,OAAOR,WAAW,GAAGC;oBACrBO,OAAOlF,GAAG,GAAGe;oBACb,yEAAyE;oBACzE,wEAAwE;oBACxE,eAAe;oBACfmE,OAAOL,OAAO,GAAG;wBACf5D,SAASmC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDnD,SAAS8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, - {"offset": {"line": 2132, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3C,gFAAgF;YAChF,MAAMC,sBAAsBC,UAAUH;YAEtC,IAAII,MAAMN,WAAW;gBACnB,MAAMO,QAAQC,SAASC,gBAAgB,CACrC,CAAC,WAAW,EAAEP,aAAa,eAAe,EAAEA,aAAa,eAAe,EAAEE,oBAAoB,eAAe,EAAEA,oBAAoB,GAAG,CAAC;gBAEzI,KAAK,MAAMM,QAAQC,MAAMC,IAAI,CAACL,OAAQ;oBACpCG,KAAKG,MAAM;gBACb;YACF,OAAO,IAAIC,KAAKd,WAAW;gBACzB,mEAAmE;gBACnE,0BAA0B;gBAC1B,uEAAuE;gBACvE,4DAA4D;gBAC5D,MAAMe,UAAUP,SAASC,gBAAgB,CACvC,CAAC,YAAY,EAAEP,aAAa,gBAAgB,EAAEA,aAAa,gBAAgB,EAAEE,oBAAoB,gBAAgB,EAAEA,oBAAoB,GAAG,CAAC;gBAE7I,KAAK,MAAMY,UAAUL,MAAMC,IAAI,CAACG,SAAU;oBACxCC,OAAOH,MAAM;gBACf;YACF,OAAO;gBACL,MAAM,IAAII,MAAM,CAAC,mCAAmC,EAAEjB,UAAU;YAClE;QACF;QAEAkB,aAAYlB,QAAQ;YAClB,OAAO,IAAImB,QA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BAEAU,KAAKkC,OAAO,GAAG;oBACbvB;gBACF;gBACAX,KAAKmC,MAAM,GAAG;oBACZ,0EAA0E;oBAC1E,wEAAwE;oBACxE,uBAAuB;oBACvB,KAAK,MAAMC,gBAAgBnC,MAAMC,IAAI,CAACU,eACpCwB,aAAajC,MAAM;oBAErB,uEAAuE;oBACvE,oBAAoB;oBACpBO;gBACF;gBAEA,wEAAwE;gBACxE,4BAA4B;gBAC5BE,aAAa,CAAC,EAAE,CAACyB,aAAa,CAAEC,YAAY,CAC1CtC,MACAY,aAAa,CAAC,EAAE,CAAC2B,WAAW;YAEhC;QACF;QAEAC,SAAS,IAAMC,KAAKlB,QAAQ,CAACmB,MAAM;IACrC;IAEA,SAASnD,eAAeD,QAAkB;QACxCqD,eAAeC,MAAM,CAACtD;IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] + {"offset": {"line": 16, "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,QAAQM,SAAS;AA+B1C,MAAMC,iBAAiBC,OAAOF,SAAS,CAACC,cAAc;AACtD,MAAME,cAAc,OAAOC,WAAW,eAAeA,OAAOD,WAAW;AAEvE,SAASE,WACPC,GAAQ,EACRC,IAAiB,EACjBC,OAA2C;IAE3C,IAAI,CAACP,eAAeQ,IAAI,CAACH,KAAKC,OAAOL,OAAOQ,cAAc,CAACJ,KAAKC,MAAMC;AACxE;AAEA,SAASG,qBACPC,WAAgC,EAChCC,EAAY;IAEZ,IAAIlB,S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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": 592, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\n/**\n * Custom base path for Web Worker URLs (the entrypoint and the module\n * chunks loaded inside the worker). Mirrors webpack's\n * `output.workerPublicPath`. `null` means \"use CHUNK_BASE_PATH\"; an empty\n * string is a literal empty prefix (not a fallback).\n *\n * The worker's bootstrap rejects module chunks whose origin differs from\n * the worker's own origin, so the override has to apply to both — using\n * `WORKER_BASE_PATH` only for the entrypoint would leave the worker unable\n * to load any chunks when `CHUNK_BASE_PATH` is on a different origin.\n */\ndeclare var WORKER_BASE_PATH: string | null\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk, workerBasePath))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(\n getChunkRelativeUrl(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(\n chunkPath: ChunkPath | ChunkListPath,\n basePath: string = CHUNK_BASE_PATH\n): ChunkUrl {\n return `${basePath}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","workerBasePath","WORKER_BASE_PATH","CHUNK_BASE_PATH","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","basePath","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AA6BhE,MAAMA,0BACJC,QAAQC,SAAS;AA4DnB,MAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,MAAMI,mBAAuD,IAAIH;AAEjE,MAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,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ACC,EAAE,EACTG,WACA0H,YACAC;AAEJ;AACAxI,iBAAiByI,CAAC,GAAGH;AAErB,SAASI,sBAEP7H,SAAoB,EACpB0H,UAAoC;IAEpC,OAAOlF,QAAQqF,qBAAqB,CAClCnI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H;AAEJ;AACAvI,iBAAiB2I,CAAC,GAAGD","ignoreList":[0]}}, + {"offset": {"line": 856, "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;IACxD,OAAO,CAAC,kBAAkB,EAAEA,gBAAgBY,IAAI,CAAC,SAAS;AAC5D;AAEA;;;;;;;;CAQC,GACD,SAASC,yBACPC,QAAkB,EAClBC,qBAA8B;IAE9B,MAAMC,kBAAiC,IAAIpB;IAC3C,MAAMqB,uBAAqD,IAAIzB;IAI/D,MAAM0B,QAAqB;QACzB;YACEJ;YACAd,iBAAiB,EAAE;QACrB;KACD;IAED,IAAImB;IACJ,MAAQA,WAAWD,MAAME,KAAK,GAAK;QACjC,MAAM,EAAEN,Q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xC,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": 1550, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAMA,sBAAsBC,QAAQC,SAAS;AAE7C;;;;;;CAMC,GACD,oDAAoD,GAEpD,wEAAwE;AACxEC,iBAAiBC,OAAOC,MAAM,CAAC;AAC/BL,oBAAoBM,CAAC,GAAGH;AACxBI,iBAAiB,IAAIC;AAErB,kDAAkD;AAClDC,gCAAgC;AAgChC;;;;;;CAMC,GACD,MAAMC,kBAAiD,IAAIC;AAC3D;;CAEC,GACD,MAAMC,kBAAiD,IAAID;AAC3D;;;;CAIC,GACD,MAAME,oBAAwC,IAAIL;AAClD;;CAEC,GACD,MAAMM,qBAAyD,IAAIH;AACnE;;CAEC,GACD,MAAMI,qBAAyD,IAAIJ;AAEnE;;CAEC,GACD,aAAa;AACb,SAASK,8BACPC,SAAoB,EACpBC,QAAkB;IAElB,MAAMC,SAAShB,cAAc,CAACe,SAAS;IACvC,IAAIC,QAAQ;QACV,IAAIA,OAAOC,KAAK,EAAE;YAChB,MAAMD,OAAOC,KAAK;QACpB;QACA,OAAOD;IACT;IAEA,aAAa;IACb,OAAOE,kBAAkBH,UAAUI,WAAWC,OAAO,EAAEN;AACzD;AAEA;;CAEC,GACD,2CAA2C;AAC3C,MAAMO,mCAEF,CAACC,IAAIC;IACP,IAAI,CAACA,aAAaC,GAAG,CAACC,MAAM,EAAE;QAC5BC,QAAQC,IAAI,CAC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,kBAAkBC,SAAoB;IAC7C,MAAMC,kBAAkBR,yBAAyBO,UAAUE,MAAM;IAGjE,MAAMhC,gBAAgB0B,kBAAkBK;IACxC,sEAAsE;IACtEnD,QAAQwC,aAAa,CAACpB;IACtB3D,WAAW4F,gCAAgC,CAAErH,IAAI,CAAC;QAChDoF;QACAD,YAAYmC,IAAI,CAAC,MAAMlC;KACxB;IAED,+CAA+C;IAC/C,MAAMY,aAAa,IAAIzH,IAAI2I,UAAUvD,MAAM,CAAC4D,GAAG,CAACC;IAChD3I,mBAAmByH,GAAG,CAAClB,eAAeY;IACtC,KAAK,MAAMhH,aAAagH,WAAY;QAClC,IAAIC,kBAAkBnH,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, + {"offset": {"line": 1967, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC,eAAeC,eAAe,UAAU;IAC9D,MAAMC,KAAKJ,IAAIK,OAAO,CAAC;IACvB,OAAOD,MAAM,IAAIJ,IAAIM,KAAK,CAACF,MAAM;AACnC;AAUA,IAAIG;AAEJ;;CAEC,GACD,MAAMC,iBAA+C,IAAIC;AAExD,CAAC;IACAF,UAAU;QACR,MAAMG,eAAcC,KAAK,EAAEC,MAAM;YAC/B,IAAIC,YAAYC,kBAAkBH;YAClC,IAAII,WAAWC,iBAAiBL;YAEhC,MAAMM,WAAWC,oBAAoBH;YACrCE,SAASE,OAAO;YAEhB,IAAIP,UAAU,MAAM;gBAClB;YACF;YAEA,KAAK,MAAMQ,kBAAkBR,OAAOS,WAAW,CAAE;gBAC/C,MAAMC,iBAAiBC,aAAaH;gBACpC,MAAMI,gBAAgBC,oBAAoBH;gBAE1C,iFAAiF;gBACjFJ,oBAAoBM;YACtB;YAEA,kFAAkF;YAClF,MAAME,QAAQC,GAAG,CACff,OAAOS,WAAW,CAACO,GAAG,CAAC,CAACR,iBACtBS,iBAAiBhB,WAAWO;YAIhC,IAAIR,OAAOkB,gBAAgB,CAACC,MAAM,GAAG,GAAG;gBACtC,KAAK,MAAMC,YAAYpB,OAAOkB,gBAAgB,CAAE;oBAC9CG,8BAA8BpB,WAAWmB;gBAC3C;YACF;QACF;QAEA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MAAM,GAAG,GAAG;oBAC9B,qEAAqE;oBACrE,kEAAkE;oBAClE,KAAK,MAAMmD,UAAUC,MAAMC,IAAI,CAACH,iBAAkB;wBAChDC,OAAOG,gBAAgB,CAAC,SAAS;4BAC/BpE,SAASmC,MAAM;wBACjB;oBACF;gBACF,OAAO;oBACL,MAAM8B,SAASjF,SAASuE,aAAa,CAAC;oBACtCU,OAAOR,WAAW,GAAGC;oBACrBO,OAAOlF,GAAG,GAAGe;oBACb,yEAAyE;oBACzE,wEAAwE;oBACxE,eAAe;oBACfmE,OAAOL,OAAO,GAAG;wBACf5D,SAASmC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDnD,SAAS8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, + {"offset": {"line": 2138, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3C,gFAAgF;YAChF,MAAMC,sBAAsBC,UAAUH;YAEtC,IAAII,MAAMN,WAAW;gBACnB,MAAMO,QAAQC,SAASC,gBAAgB,CACrC,CAAC,WAAW,EAAEP,aAAa,eAAe,EAAEA,aAAa,eAAe,EAAEE,oBAAoB,eAAe,EAAEA,oBAAoB,GAAG,CAAC;gBAEzI,KAAK,MAAMM,QAAQC,MAAMC,IAAI,CAACL,OAAQ;oBACpCG,KAAKG,MAAM;gBACb;YACF,OAAO,IAAIC,KAAKd,WAAW;gBACzB,mEAAmE;gBACnE,0BAA0B;gBAC1B,uEAAuE;gBACvE,4DAA4D;gBAC5D,MAAMe,UAAUP,SAASC,gBAAgB,CACvC,CAAC,YAAY,EAAEP,aAAa,gBAAgB,EAAEA,aAAa,gBAAgB,EAAEE,oBAAoB,gBAAgB,EAAEA,oBAAoB,GAAG,CAAC;gBAE7I,KAAK,MAAMY,UAAUL,MAAMC,IAAI,CAACG,SAAU;oBACxCC,OAAOH,MAAM;gBACf;YACF,OAAO;gBACL,MAAM,IAAII,MAAM,CAAC,mCAAmC,EAAEjB,UAAU;YAClE;QACF;QAEAkB,aAAYlB,QAAQ;YAClB,OAAO,IAAImB,QAAc,CAACC,SAASC;gBACjC,IAAI,CAACf,MAAMN,WAAW;oBACpBqB,OAAO,IAAIJ,M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Z,0EAA0E;oBAC1E,wEAAwE;oBACxE,uBAAuB;oBACvB,KAAK,MAAMC,gBAAgBnC,MAAMC,IAAI,CAACU,eACpCwB,aAAajC,MAAM;oBAErB,uEAAuE;oBACvE,oBAAoB;oBACpBO;gBACF;gBAEA,wEAAwE;gBACxE,4BAA4B;gBAC5BE,aAAa,CAAC,EAAE,CAACyB,aAAa,CAAEC,YAAY,CAC1CtC,MACAY,aAAa,CAAC,EAAE,CAAC2B,WAAW;YAEhC;QACF;QAEAC,SAAS,IAAMC,KAAKlB,QAAQ,CAACmB,MAAM;IACrC;IAEA,SAASnD,eAAeD,QAAkB;QACxCqD,eAAeC,MAAM,CAACtD;IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1xw116u.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1xw116u.js.map index 193a111fc8b3..90020a7b24bf 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1xw116u.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1xw116u.js.map @@ -2,10 +2,10 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 15, "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,4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,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": 591, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(getChunkRelativeUrl(entrypoint), location.origin)\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(chunkPath: ChunkPath | ChunkListPath): ChunkUrl {\n return `${CHUNK_BASE_PATH}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","CHUNK_BASE_PATH","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AAiBhE,MAAMA,0BACJC,QAAQC,SAAS;AA4DnB,MAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,MAAMI,mBAAuD,IAAIH;AAEjE,MAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,IAAI,CAACC,CAAC,CAACC,EAAE,EAAEL;AACzD;AACAV,wBAAwBgB,CAAC,GAAGP;AAE5B,SAASQ,iBAAiBC,SAAoB,EAAER,SAAoB;IAClE,OAAOC,kBAAkBC,WAAWO,OAAO,EAAED,WAAWR;AAC1D;AAEA,eAAeC,kBACbS,UAAsB,EACtBC,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ACA,OAAO;QACjB,IAAI,OAAOgC,8BAA8B,aAAa;YACpD,OAAO;gBAAEP,KAAKO,0BAA0BC,GAAG;YAAI;QACjD,OAAO;YACL,MAAM,IAAIzD,MAAM;QAClB;IACF,OAAO;QACL,OAAO;YAAEiD,KAAKzB,MAAMkC,YAAY,CAAC;QAAQ;IAC3C;AACF;AAEA;;;CAGC,GACD,SAASC,kBACPC,cAAoC,EACpCC,GAAW;IAEX,sDAAsD;IACtD,MAAM5C,IAAI2C,eAAeE,OAAO,CAAC;IACjC,IAAIC;IACJ,IAAI9C,MAAM,CAAC,GAAG;QACZ8C,MAAM9C;IACR,OAAO;QACL,MAAM+C,IAAIJ,eAAeE,OAAO,CAAC;QACjCC,MAAMC,MAAM,CAAC,IAAIA,IAAIJ,eAAepG,MAAM;IAC5C;IACA,oDAAoD;IACpD,OAAOuG,OAAOF,IAAIrG,MAAM,IAAIoG,eAAeR,UAAU,CAACS,KAAKE,MAAMF,IAAIrG,MAAM;AAC7E;AAEA,SAASyG,KAAKL,cAAoC;IAChD,OAAOD,kBAAkBC,gBAAgB;AAC3C;AAEA,SAASM,MAAMjF,QAAkB;IAC/B,OAAO0E,kBAAkB1E,UAAU;AACrC;AAEA,SAASkF,gBAEPtH,SAAoB,EACpBuH,UAAoC,EACpCC,UAA+B;IAE/B,OAAOhF,QAAQ8E,eAAe,CAC5B5H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH,YACAC;AAEJ;AACArI,iBAAiBsI,CAAC,GAAGH;AAErB,SAASI,sBAEP1H,SAAoB,EACpBuH,UAAoC;IAEpC,OAAO/E,QAAQkF,qBAAqB,CAClChI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACAuH;AAEJ;AACApI,iBAAiBwI,CAAC,GAAGD","ignoreList":[0]}}, - {"offset": {"line": 850, "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,yBA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R9B,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": 1544, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LIS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G,CAAClB,eAAeY;IACtC,KAAK,MAAMhH,aAAagH,WAAY;QAClC,IAAIC,kBAAkBnH,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, - {"offset": {"line": 1961, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC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AOL,OAAO,GAAG;wBACf5D,SAASmC,MAAM;oBACjB;oBACA,kDAAkD;oBAClDnD,SAAS8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, - {"offset": {"line": 2132, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACn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ACmB,MAAM;IACrC;IAEA,SAASnD,eAAeD,QAAkB;QACxCqD,eAAeC,MAAM,CAACtD;IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] + {"offset": {"line": 16, "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","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,GAAGJ,OAAOK,QAAQ,GAAG;IAClCL,OAAOM,QAAQ,GAAGN,OAAOO,MAAM,GAAG,CAAC,GAAGC,QAAsBX;IAC5D,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": 592, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\n/**\n * Custom base path for Web Worker URLs (the entrypoint and the module\n * chunks loaded inside the worker). Mirrors webpack's\n * `output.workerPublicPath`. `null` means \"use CHUNK_BASE_PATH\"; an empty\n * string is a literal empty prefix (not a fallback).\n *\n * The worker's bootstrap rejects module chunks whose origin differs from\n * the worker's own origin, so the override has to apply to both — using\n * `WORKER_BASE_PATH` only for the entrypoint would leave the worker unable\n * to load any chunks when `CHUNK_BASE_PATH` is on a different origin.\n */\ndeclare var WORKER_BASE_PATH: string | null\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var WORKER_FORWARDED_GLOBALS: string[]\n\ninterface TurbopackBrowserBaseContext extends TurbopackBaseContext {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n registerChunk: (\n chunkPath: ChunkPath | ChunkScript,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise\n loadWebAssembly: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ) => Promise\n loadWebAssemblyModule: (\n sourceType: SourceType,\n sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n ) => Promise\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map | true> = new Map()\n\nconst availableModuleChunks: Map | true> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext,\n chunkData: ChunkData\n): Promise {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skip loading ourselves\n await Promise.all(modulesPromises)\n return\n }\n\n const includedModuleChunksList = chunkData.moduleChunks || []\n const moduleChunksPromises = includedModuleChunksList\n .map((included) => {\n // TODO(alexkirsz) Do we need this check?\n // if (moduleFactories[included]) return true;\n return availableModuleChunks.get(included)\n })\n .filter((p) => p)\n\n let promise: Promise\n if (moduleChunksPromises.length > 0) {\n // Some module chunks are already loaded or loading.\n\n if (moduleChunksPromises.length === includedModuleChunksList.length) {\n // When all included module chunks are already loaded or loading, we can skip loading ourselves\n await Promise.all(moduleChunksPromises)\n return\n }\n\n const moduleChunksToLoad: Set = new Set()\n for (const moduleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(moduleChunk)) {\n moduleChunksToLoad.add(moduleChunk)\n }\n }\n\n for (const moduleChunkToLoad of moduleChunksToLoad) {\n const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\n\n availableModuleChunks.set(moduleChunkToLoad, promise)\n\n moduleChunksPromises.push(promise)\n }\n\n promise = Promise.all(moduleChunksPromises)\n } else {\n promise = loadChunkPath(sourceType, sourceData, chunkData.path)\n\n // Mark all included module chunks as loading if they are not already loaded or loading.\n for (const includedModuleChunk of includedModuleChunksList) {\n if (!availableModuleChunks.has(includedModuleChunk)) {\n availableModuleChunks.set(includedModuleChunk, promise)\n }\n }\n }\n\n for (const included of includedList) {\n if (!availableModules.has(included)) {\n // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\n // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\n availableModules.set(included, promise)\n }\n }\n\n await promise\n}\n\nconst loadedChunk = Promise.resolve(undefined)\nconst instrumentedBackendLoadChunks = new WeakMap<\n Promise,\n Promise | typeof loadedChunk\n>()\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrl(\n this: TurbopackBrowserBaseContext,\n chunkUrl: ChunkUrl\n) {\n return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\n}\nbrowserContextPrototype.L = loadChunkByUrl\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkByUrlInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkUrl: ChunkUrl\n): Promise {\n const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\n let entry = instrumentedBackendLoadChunks.get(thenable)\n if (entry === undefined) {\n const resolve = instrumentedBackendLoadChunks.set.bind(\n instrumentedBackendLoadChunks,\n thenable,\n loadedChunk\n )\n entry = thenable.then(resolve).catch((cause) => {\n let loadReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n loadReason = `as a runtime dependency of chunk ${sourceData}`\n break\n case SourceType.Parent:\n loadReason = `from module ${sourceData}`\n break\n case SourceType.Update:\n loadReason = 'from an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n let error = new Error(\n `Failed to load chunk ${chunkUrl} ${loadReason}${\n cause ? `: ${cause}` : ''\n }`,\n cause ? { cause } : undefined\n )\n error.name = 'ChunkLoadError'\n throw error\n })\n instrumentedBackendLoadChunks.set(thenable, entry)\n }\n\n return entry\n}\n\n// Do not make this async. React relies on referential equality of the returned Promise.\nfunction loadChunkPath(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkPath: ChunkPath\n): Promise {\n const url = getChunkRelativeUrl(chunkPath)\n return loadChunkByUrlInternal(sourceType, sourceData, url)\n}\n\n/**\n * Returns an absolute url to an asset.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n return exported?.default ?? exported\n}\nbrowserContextPrototype.R = resolvePathFromModule\n\n/**\n * no-op for browser\n * @param modulePath\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n return `/ROOT/${modulePath ?? ''}`\n}\nbrowserContextPrototype.P = resolveAbsolutePath\n\n/**\n * Exports a URL with the static suffix appended.\n */\nfunction exportUrl(\n this: TurbopackBrowserBaseContext,\n url: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, `${url}${ASSET_SUFFIX}`, id)\n}\nbrowserContextPrototype.q = exportUrl\n\n/**\n * Creates a worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, ...WORKER_FORWARDED_GLOBALS values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint URL path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n entrypoint: ChunkPath,\n moduleChunks: ChunkPath[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH\n\n const chunkUrls = moduleChunks\n .map((chunk) => getChunkRelativeUrl(chunk, workerBasePath))\n .reverse()\n const params: unknown[] = [chunkUrls, ASSET_SUFFIX]\n for (const globalName of WORKER_FORWARDED_GLOBALS) {\n params.push((globalThis as Record)[globalName])\n }\n\n const url = new URL(\n getChunkRelativeUrl(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\nbrowserContextPrototype.b = createWorker\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): Module {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n/**\n * Returns the URL relative to the origin where a chunk can be fetched from.\n */\nfunction getChunkRelativeUrl(\n chunkPath: ChunkPath | ChunkListPath,\n basePath: string = CHUNK_BASE_PATH\n): ChunkUrl {\n return `${basePath}${chunkPath\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')}${ASSET_SUFFIX}` as ChunkUrl\n}\n\n/**\n * Return the ChunkPath from a ChunkScript.\n */\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\nfunction getPathFromScript(\n chunkScript: ChunkListPath | ChunkListScript\n): ChunkListPath\nfunction getPathFromScript(\n chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\n): ChunkPath | ChunkListPath {\n if (typeof chunkScript === 'string') {\n return chunkScript as ChunkPath | ChunkListPath\n }\n const chunkUrl = chunkScript.src!\n const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\n const path = src.startsWith(CHUNK_BASE_PATH)\n ? src.slice(CHUNK_BASE_PATH.length)\n : src\n return path as ChunkPath | ChunkListPath\n}\n\n/**\n * Return the ChunkUrl from a ChunkScript.\n */\nfunction getUrlFromScript(chunk: ChunkPath | ChunkScript): ChunkUrl {\n if (typeof chunk === 'string') {\n return getChunkRelativeUrl(chunk)\n } else {\n // This is already exactly what we want\n return chunk.src! as ChunkUrl\n }\n}\n\n/**\n * Determine the chunk to register. Note that this function has side-effects!\n */\nfunction getChunkFromRegistration(\n chunk: ChunkRegistrationChunk\n): ChunkPath | CurrentScript {\n if (typeof chunk === 'string') {\n return chunk\n } else if (!chunk) {\n if (typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined') {\n return { src: TURBOPACK_NEXT_CHUNK_URLS.pop()! } as CurrentScript\n } else {\n throw new Error('chunk path empty but not in a worker')\n }\n } else {\n return { src: chunk.getAttribute('src')! } as CurrentScript\n }\n}\n\n/**\n * Checks if a given path/URL ends with the given extension,\n * optionally followed by ?query or #fragment.\n */\nfunction endsWithExtension(\n chunkUrlOrPath: ChunkUrl | ChunkPath,\n ext: string\n): boolean {\n // Find where the path ends (before query or fragment)\n const q = chunkUrlOrPath.indexOf('?')\n let end: number\n if (q !== -1) {\n end = q\n } else {\n const h = chunkUrlOrPath.indexOf('#')\n end = h !== -1 ? h : chunkUrlOrPath.length\n }\n // Check if the path portion ends with the extension\n return end >= ext.length && chunkUrlOrPath.startsWith(ext, end - ext.length)\n}\n\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return endsWithExtension(chunkUrlOrPath, '.js')\n}\n\nfunction isCss(chunkUrl: ChunkUrl): boolean {\n return endsWithExtension(chunkUrl, '.css')\n}\n\nfunction loadWebAssembly(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n): Promise {\n return BACKEND.loadWebAssembly(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule,\n importsObj\n )\n}\ncontextPrototype.w = loadWebAssembly\n\nfunction loadWebAssemblyModule(\n this: TurbopackBaseContext,\n chunkPath: ChunkPath,\n edgeModule: () => WebAssembly.Module\n): Promise {\n return BACKEND.loadWebAssemblyModule(\n SourceType.Parent,\n this.m.id,\n chunkPath,\n edgeModule\n )\n}\ncontextPrototype.u = loadWebAssemblyModule\n"],"names":["browserContextPrototype","Context","prototype","moduleFactories","Map","contextPrototype","M","availableModules","availableModuleChunks","loadChunk","chunkData","loadChunkInternal","SourceType","Parent","m","id","l","loadInitialChunk","chunkPath","Runtime","sourceType","sourceData","loadChunkPath","includedList","included","modulesPromises","map","has","get","length","every","p","Promise","all","includedModuleChunksList","moduleChunks","moduleChunksPromises","filter","promise","moduleChunksToLoad","Set","moduleChunk","add","moduleChunkToLoad","set","push","path","includedModuleChunk","loadedChunk","resolve","undefined","instrumentedBackendLoadChunks","WeakMap","loadChunkByUrl","chunkUrl","loadChunkByUrlInternal","L","thenable","BACKEND","loadChunkCached","entry","bind","then","catch","cause","loadReason","Update","invariant","error","Error","name","url","getChunkRelativeUrl","resolvePathFromModule","moduleId","exported","r","default","R","resolveAbsolutePath","modulePath","P","exportUrl","exportValue","call","ASSET_SUFFIX","q","createWorker","WorkerConstructor","entrypoint","workerOptions","isSharedWorker","workerBasePath","WORKER_BASE_PATH","CHUNK_BASE_PATH","chunkUrls","chunk","reverse","params","globalName","WORKER_FORWARDED_GLOBALS","globalThis","URL","location","origin","paramsJson","JSON","stringify","searchParams","hash","encodeURIComponent","options","type","b","instantiateRuntimeModule","instantiateModule","basePath","split","join","getPathFromScript","chunkScript","src","decodeURIComponent","replace","startsWith","slice","getUrlFromScript","getChunkFromRegistration","TURBOPACK_NEXT_CHUNK_URLS","pop","getAttribute","endsWithExtension","chunkUrlOrPath","ext","indexOf","end","h","isJs","isCss","loadWebAssembly","edgeModule","importsObj","w","loadWebAssemblyModule","u"],"mappings":"AAAA;;;;;;CAMC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C,iEAAiE;AAEjE,gEAAgE;AA6BhE,MAAMA,0BACJC,QAAQC,SAAS;AA4DnB,MAAMC,kBAAmC,IAAIC;AAC7CC,iBAAiBC,CAAC,GAAGH;AAErB,MAAMI,mBAAuD,IAAIH;AAEjE,MAAMI,wBAA6D,IAAIJ;AAEvE,SAASK,UAEPC,SAAoB;IAEpB,OAAOC,kBAAkBC,WAAWC,MAAM,EAAE,IAAI,CAACC,CAAC,CAACC,EAAE,EAAEL;AACzD;AACAV,wBAAwBgB,CAAC,GAAGP;AAE5B,SAASQ,iBAAiBC,SAAoB,EAAER,SAAoB;IAClE,OAAOC,kBAAkBC,WAAWO,OAAO,EAAED,WAAWR;AAC1D;AAEA,eAAeC,kBACbS,UAAsB,EACtBC,UAAsB,EACtBX,SAAoB;IAEpB,IAAI,OAAOA,cAAc,UAAU;QACjC,OAAOY,cAAcF,YAAYC,YAAYX;IAC/C;IAEA,MAAMa,eAAeb,UAAUc,QAAQ,IAAI,EAAE;IAC7C,MAAMC,kBAAkBF,aAAaG,GAAG,CAAC,CAACF;QACxC,IAAIrB,gBA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AA0BC,GAAG;YAAI;QACjD,OAAO;YACL,MAAM,IAAI5D,MAAM;QAClB;IACF,OAAO;QACL,OAAO;YAAEoD,KAAKzB,MAAMkC,YAAY,CAAC;QAAQ;IAC3C;AACF;AAEA;;;CAGC,GACD,SAASC,kBACPC,cAAoC,EACpCC,GAAW;IAEX,sDAAsD;IACtD,MAAM/C,IAAI8C,eAAeE,OAAO,CAAC;IACjC,IAAIC;IACJ,IAAIjD,MAAM,CAAC,GAAG;QACZiD,MAAMjD;IACR,OAAO;QACL,MAAMkD,IAAIJ,eAAeE,OAAO,CAAC;QACjCC,MAAMC,MAAM,CAAC,IAAIA,IAAIJ,eAAevG,MAAM;IAC5C;IACA,oDAAoD;IACpD,OAAO0G,OAAOF,IAAIxG,MAAM,IAAIuG,eAAeR,UAAU,CAACS,KAAKE,MAAMF,IAAIxG,MAAM;AAC7E;AAEA,SAAS4G,KAAKL,cAAoC;IAChD,OAAOD,kBAAkBC,gBAAgB;AAC3C;AAEA,SAASM,MAAMpF,QAAkB;IAC/B,OAAO6E,kBAAkB7E,UAAU;AACrC;AAEA,SAASqF,gBAEPzH,SAAoB,EACpB0H,UAAoC,EACpCC,UAA+B;IAE/B,OAAOnF,QAAQiF,eAAe,CAC5B/H,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H,YACAC;AAEJ;AACAxI,iBAAiByI,CAAC,GAAGH;AAErB,SAASI,sBAEP7H,SAAoB,EACpB0H,UAAoC;IAEpC,OAAOlF,QAAQqF,qBAAqB,CAClCnI,WAAWC,MAAM,EACjB,IAAI,CAACC,CAAC,CAACC,EAAE,EACTG,WACA0H;AAEJ;AACAvI,iBAAiB2I,CAAC,GAAGD","ignoreList":[0]}}, + {"offset": {"line": 856, "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,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zG,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": 1550, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// \n/// \n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in ``d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n // Browser: creates base HotModule object (hot API added by shared code)\n const createModuleObjectFn = (id: ModuleId) => {\n return createModuleObject(id) as HotModule\n }\n\n // Browser: creates DevContext with refresh\n const createContext = (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ) => {\n return new (DevContext as any as DevContextConstructor)(\n module,\n exports,\n refresh\n )\n }\n\n // Use shared instantiation logic (includes hot API setup)\n return instantiateModuleShared(\n moduleId,\n sourceType,\n sourceData,\n moduleFactories,\n devModuleCache,\n runtimeModules,\n createModuleObjectFn,\n createContext,\n runModuleExecutionHooks\n )\n}\n\nconst DUMMY_REFRESH_CONTEXT = {\n register: (_type: unknown, _id: unknown) => {},\n signature: () => (_type: unknown) => {},\n registerExports: (_module: unknown, _helpers: unknown) => {},\n}\n\n/**\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\n * Next.js' React Refresh runtime hooks into to add module context to the\n * refresh registry.\n */\nfunction runModuleExecutionHooks(\n module: HotModule,\n executeModule: (ctx: RefreshContext) => void\n) {\n if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\n const cleanupReactRefreshIntercept =\n globalThis.$RefreshInterceptModuleExecution$(module.id)\n try {\n executeModule({\n register: globalThis.$RefreshReg$,\n signature: globalThis.$RefreshSig$,\n registerExports: registerExportsAndSetupBoundaryForReactRefresh,\n })\n } finally {\n // Always cleanup the intercept, even if module execution failed.\n cleanupReactRefreshIntercept()\n }\n } else {\n // If the react refresh hooks are not installed we need to bind dummy functions.\n // This is expected when running in a Web Worker. It is also common in some of\n // our test environments.\n executeModule(DUMMY_REFRESH_CONTEXT)\n }\n}\n\n/**\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\n */\nfunction registerExportsAndSetupBoundaryForReactRefresh(\n module: HotModule,\n helpers: RefreshHelpers\n) {\n const currentExports = module.exports\n const prevExports = module.hot.data.prevExports ?? null\n\n helpers.registerExportsForReactRefresh(currentExports, module.id)\n\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (helpers.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports on update, so we can compare the boundary\n // signatures.\n module.hot.dispose((data) => {\n data.prevExports = currentExports\n })\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept()\n\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (\n helpers.shouldInvalidateReactRefreshBoundary(\n helpers.getRefreshBoundarySignature(prevExports),\n helpers.getRefreshBoundarySignature(currentExports)\n )\n ) {\n module.hot.invalidate()\n } else {\n helpers.scheduleUpdate()\n }\n }\n } else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n const isNoLongerABoundary = prevExports !== null\n if (isNoLongerABoundary) {\n module.hot.invalidate()\n }\n }\n}\n\n/**\n * Adds, deletes, and moves modules between chunks. This must happen before the\n * dispose phase as it needs to know which modules were removed from all chunks,\n * which we can only compute *after* taking care of added and moved modules.\n */\nfunction updateChunksPhase(\n chunksAddedModules: Map>,\n chunksDeletedModules: Map>\n): { disposedModules: Set } {\n for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\n for (const moduleId of addedModuleIds) {\n addModuleToChunk(moduleId, chunkPath)\n }\n }\n\n const disposedModules: Set = new Set()\n for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\n for (const moduleId of addedModuleIds) {\n if (removeModuleFromChunk(moduleId, chunkPath)) {\n disposedModules.add(moduleId)\n }\n }\n }\n\n return { disposedModules }\n}\n\nfunction applyUpdate(update: PartialUpdate) {\n switch (update.type) {\n case 'ChunkListUpdate':\n applyChunkListUpdate(update)\n break\n default:\n invariant(update, (update) => `Unknown update type: ${update.type}`)\n }\n}\n\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\n if (update.merged != null) {\n for (const merged of update.merged) {\n switch (merged.type) {\n case 'EcmascriptMergedUpdate':\n applyEcmascriptMergedUpdate(merged)\n break\n default:\n invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\n }\n }\n }\n\n if (update.chunks != null) {\n for (const [chunkPath, chunkUpdate] of Object.entries(\n update.chunks\n ) as Array<[ChunkPath, ChunkUpdate]>) {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n\n switch (chunkUpdate.type) {\n case 'added':\n BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\n break\n case 'total':\n DEV_BACKEND.reloadChunk?.(chunkUrl)\n break\n case 'deleted':\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n break\n case 'partial':\n invariant(\n chunkUpdate.instruction,\n (instruction) =>\n `Unknown partial instruction: ${JSON.stringify(instruction)}.`\n )\n break\n default:\n invariant(\n chunkUpdate,\n (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\n )\n }\n }\n }\n}\n\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\n // Browser-specific chunk management phase\n const { entries = {}, chunks = {} } = update\n const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\n entries,\n chunks,\n chunkModulesMap\n )\n const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\n\n // Use shared HMR update implementation\n applyEcmascriptMergedUpdateShared({\n added,\n modified,\n disposedModules,\n evalModuleEntry: _eval, // browser's eval with source maps\n instantiateModule, // now wraps shared logic\n applyModuleFactoryName,\n moduleFactories,\n devModuleCache,\n autoAcceptRootModules: false,\n })\n}\n\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\n switch (update.type) {\n case 'partial': {\n // This indicates that the update is can be applied to the current state of the application.\n applyUpdate(update.instruction)\n break\n }\n case 'restart': {\n // This indicates that there is no way to apply the update to the\n // current state of the application, and that the application must be\n // restarted.\n DEV_BACKEND.restart()\n break\n }\n case 'notFound': {\n // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\n // or the page itself was deleted.\n // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\n // If it is a runtime chunk list, we restart the application.\n if (runtimeChunkLists.has(chunkListPath)) {\n DEV_BACKEND.restart()\n } else {\n disposeChunkList(chunkListPath)\n }\n break\n }\n default:\n throw new Error(`Unknown update type: ${update.type}`)\n }\n}\n\n/**\n * Removes a module from a chunk.\n * Returns `true` if there are no remaining chunks including this module.\n */\nfunction removeModuleFromChunk(\n moduleId: ModuleId,\n chunkPath: ChunkPath\n): boolean {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const chunkModules = chunkModulesMap.get(chunkPath)!\n chunkModules.delete(moduleId)\n\n const noRemainingModules = chunkModules.size === 0\n if (noRemainingModules) {\n chunkModulesMap.delete(chunkPath)\n }\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n }\n\n return noRemainingChunks\n}\n\n/**\n * Disposes of a chunk list and its corresponding exclusive chunks.\n */\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\n const chunkPaths = chunkListChunksMap.get(chunkListPath)\n if (chunkPaths == null) {\n return false\n }\n chunkListChunksMap.delete(chunkListPath)\n\n for (const chunkPath of chunkPaths) {\n const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\n chunkChunkLists.delete(chunkListPath)\n\n if (chunkChunkLists.size === 0) {\n chunkChunkListsMap.delete(chunkPath)\n disposeChunk(chunkPath)\n }\n }\n\n // We must also dispose of the chunk list's chunk itself to ensure it may\n // be reloaded properly in the future.\n const chunkListUrl = getChunkRelativeUrl(chunkListPath)\n\n DEV_BACKEND.unloadChunk?.(chunkListUrl)\n\n return true\n}\n\n/**\n * Disposes of a chunk and its corresponding exclusive modules.\n *\n * @returns Whether the chunk was disposed of.\n */\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\n const chunkUrl = getChunkRelativeUrl(chunkPath)\n // This should happen whether the chunk has any modules in it or not.\n // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\n DEV_BACKEND.unloadChunk?.(chunkUrl)\n\n const chunkModules = chunkModulesMap.get(chunkPath)\n if (chunkModules == null) {\n return false\n }\n chunkModules.delete(chunkPath)\n\n for (const moduleId of chunkModules) {\n const moduleChunks = moduleChunksMap.get(moduleId)!\n moduleChunks.delete(chunkPath)\n\n const noRemainingChunks = moduleChunks.size === 0\n if (noRemainingChunks) {\n moduleChunksMap.delete(moduleId)\n disposeModule(moduleId, 'clear')\n availableModules.delete(moduleId)\n }\n }\n\n return true\n}\n\n/**\n * Adds a module to a chunk.\n */\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\n let moduleChunks = moduleChunksMap.get(moduleId)\n if (!moduleChunks) {\n moduleChunks = new Set([chunkPath])\n moduleChunksMap.set(moduleId, moduleChunks)\n } else {\n moduleChunks.add(chunkPath)\n }\n\n let chunkModules = chunkModulesMap.get(chunkPath)\n if (!chunkModules) {\n chunkModules = new Set([moduleId])\n chunkModulesMap.set(chunkPath, chunkModules)\n } else {\n chunkModules.add(moduleId)\n }\n}\n\n/**\n * Marks a chunk list as a runtime chunk list. There can be more than one\n * runtime chunk list. For instance, integration tests can have multiple chunk\n * groups loaded at runtime, each with its own chunk list.\n */\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\n runtimeChunkLists.add(chunkListPath)\n}\n\nfunction registerChunk(registration: ChunkRegistration) {\n const chunk = getChunkFromRegistration(registration[0]) as\n | ChunkPath\n | ChunkScript\n let runtimeParams: RuntimeParams | undefined\n // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\n if (registration.length === 2) {\n runtimeParams = registration[1] as RuntimeParams\n } else {\n let chunkPath = getPathFromScript(chunk)\n runtimeParams = undefined\n installCompressedModuleFactories(\n registration as CompressedModuleFactories,\n /* offset= */ 1,\n moduleFactories,\n (id: ModuleId) => addModuleToChunk(id, chunkPath)\n )\n }\n return BACKEND.registerChunk(chunk, runtimeParams)\n}\n\n/**\n * Subscribes to chunk list updates from the update server and applies them.\n */\nfunction registerChunkList(chunkList: ChunkList) {\n const chunkListScript = getChunkFromRegistration(chunkList.script) as\n | ChunkListPath\n | ChunkListScript\n const chunkListPath = getPathFromScript(chunkListScript)\n // The \"chunk\" is also registered to finish the loading in the backend\n BACKEND.registerChunk(chunkListPath as string as ChunkPath)\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\n chunkListPath,\n handleApply.bind(null, chunkListPath),\n ])\n\n // Adding chunks to chunk lists and vice versa.\n const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\n chunkListChunksMap.set(chunkListPath, chunkPaths)\n for (const chunkPath of chunkPaths) {\n let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\n if (!chunkChunkLists) {\n chunkChunkLists = new Set([chunkListPath])\n chunkChunkListsMap.set(chunkPath, chunkChunkLists)\n } else {\n chunkChunkLists.add(chunkListPath)\n }\n }\n\n if (chunkList.source === 'entry') {\n markChunkListAsRuntime(chunkListPath)\n }\n}\n\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\n"],"names":["devContextPrototype","Context","prototype","devModuleCache","Object","create","c","runtimeModules","Set","createModuleWithDirectionFlag","moduleChunksMap","Map","chunkModulesMap","runtimeChunkLists","chunkListChunksMap","chunkChunkListsMap","getOrInstantiateRuntimeModule","chunkPath","moduleId","module","error","instantiateModule","SourceType","Runtime","getOrInstantiateModuleFromParent","id","sourceModule","hot","active","console","warn","children","indexOf","push","parents","Parent","DevContext","exports","refresh","call","k","sourceType","sourceData","createModuleObjectFn","createModuleObject","createContext","instantiateModuleShared","moduleFactories","runModuleExecutionHooks","DUMMY_REFRESH_CONTEXT","register","_type","_id","signature","registerExports","_module","_helpers","executeModule","globalThis","$RefreshInterceptModuleExecution$","cleanupReactRefreshIntercept","$RefreshReg$","$RefreshSig$","registerExportsAndSetupBoundaryForReactRefresh","helpers","currentExports","prevExports","data","registerExportsForReactRefresh","isReactRefreshBoundary","dispose","accept","shouldInvalidateReactRefreshBoundary","getRefreshBoundarySignature","invalidate","scheduleUpdate","isNoLongerABoundary","updateChunksPhase","chunksAddedModules","chunksDeletedModules","addedModuleIds","addModuleToChunk","disposedModules","removeModuleFromChunk","add","applyUpdate","update","type","applyChunkListUpdate","invariant","merged","applyEcmascriptMergedUpdate","chunks","chunkUpdate","entries","chunkUrl","getChunkRelativeUrl","BACKEND","loadChunkCached","Update","DEV_BACKEND","reloadChunk","unloadChunk","instruction","JSON","stringify","added","modified","chunksAdded","chunksDeleted","computeChangedModules","applyEcmascriptMergedUpdateShared","evalModuleEntry","_eval","applyModuleFactoryName","autoAcceptRootModules","handleApply","chunkListPath","restart","has","disposeChunkList","Error","moduleChunks","get","delete","chunkModules","noRemainingModules","size","noRemainingChunks","chunkPaths","chunkChunkLists","disposeChunk","chunkListUrl","disposeModule","availableModules","set","markChunkListAsRuntime","registerChunk","registration","chunk","getChunkFromRegistration","runtimeParams","length","getPathFromScript","undefined","installCompressedModuleFactories","registerChunkList","chunkList","chunkListScript","script","TURBOPACK_CHUNK_UPDATE_LISTENERS","bind","map","getChunkPath","source"],"mappings":"AAAA,iEAAiE;AACjE,kEAAkE;AAMlE,MAAMA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,mBAAmB4G,GAAG,CAAC1G;QAC7C,IAAI,CAACiH,iBAAiB;YACpBA,kBAAkB,IAAI1H,IAAI;gBAAC6G;aAAc;YACzCtG,mBAAmBwH,GAAG,CAACtH,WAAWiH;QACpC,OAAO;YACLA,gBAAgB9C,GAAG,CAACiC;QACtB;IACF;IAEA,IAAI8B,UAAUO,MAAM,KAAK,SAAS;QAChClB,uBAAuBnB;IACzB;AACF;AAEA3D,WAAW4F,gCAAgC,KAAK,EAAE","ignoreList":[0]}}, + {"offset": {"line": 1967, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n let chunkPath = getPathFromScript(chunk)\n let chunkUrl = getUrlFromScript(chunk)\n\n const resolver = getOrCreateResolver(chunkUrl)\n resolver.resolve()\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n\n async loadWebAssembly(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module,\n importsObj: WebAssembly.Imports\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n const { instance } = await WebAssembly.instantiateStreaming(\n req,\n importsObj\n )\n\n return instance.exports\n },\n\n async loadWebAssemblyModule(\n _sourceType: SourceType,\n _sourceData: SourceData,\n wasmChunkPath: ChunkPath,\n _edgeModule: () => WebAssembly.Module\n ): Promise {\n const req = fetchWebAssembly(wasmChunkPath)\n\n return await WebAssembly.compileStreaming(req)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\n const resolver = getOrCreateResolver(chunkUrl)\n if (resolver.loadingStarted) {\n return resolver.promise\n }\n\n if (sourceType === SourceType.Runtime) {\n // We don't need to load chunks references from runtime code, as they're already\n // present in the DOM.\n resolver.loadingStarted = true\n\n if (isCss(chunkUrl)) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n\n // We need to wait for JS chunks to register themselves within `registerChunk`\n // before we can start instantiating runtime modules, hence the absence of\n // `resolver.resolve()` in this branch.\n\n return resolver.promise\n }\n\n if (typeof importScripts === 'function') {\n // We're in a web worker\n if (isCss(chunkUrl)) {\n // ignore\n } else if (isJs(chunkUrl)) {\n self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\n importScripts(chunkUrl)\n } else {\n throw new Error(\n `can't infer type of chunk from URL ${chunkUrl} in worker`\n )\n }\n } else {\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedChunkUrl = decodeURI(chunkUrl)\n\n if (isCss(chunkUrl)) {\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\n )\n if (previousLinks.length > 0) {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n } else {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n link.href = chunkUrl\n link.onerror = () => {\n resolver.reject()\n }\n link.onload = () => {\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolver.resolve()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(link)\n }\n } else if (isJs(chunkUrl)) {\n const previousScripts = document.querySelectorAll(\n `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\n )\n if (previousScripts.length > 0) {\n // There is this edge where the script already failed loading, but we\n // can't detect that. The Promise will never resolve in this case.\n for (const script of Array.from(previousScripts)) {\n script.addEventListener('error', () => {\n resolver.reject()\n })\n }\n } else {\n const script = document.createElement('script')\n script.crossOrigin = CROSS_ORIGIN\n script.src = chunkUrl\n // We'll only mark the chunk as loaded once the script has been executed,\n // which happens in `registerChunk`. Hence the absence of `resolve()` in\n // this branch.\n script.onerror = () => {\n resolver.reject()\n }\n // Append to the `head` for webpack compatibility.\n document.head.appendChild(script)\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n }\n\n resolver.loadingStarted = true\n return resolver.promise\n }\n\n function fetchWebAssembly(wasmChunkPath: ChunkPath) {\n return fetch(getChunkRelativeUrl(wasmChunkPath))\n }\n})()\n"],"names":["getAssetSuffixFromScriptSrc","self","TURBOPACK_ASSET_SUFFIX","src","document","currentScript","getAttribute","qi","indexOf","slice","BACKEND","chunkResolvers","Map","registerChunk","chunk","params","chunkPath","getPathFromScript","chunkUrl","getUrlFromScript","resolver","getOrCreateResolver","resolve","otherChunkData","otherChunks","otherChunkPath","getChunkPath","otherChunkUrl","getChunkRelativeUrl","Promise","all","map","loadInitialChunk","runtimeModuleIds","length","moduleId","getOrInstantiateRuntimeModule","loadChunkCached","sourceType","doLoadChunk","loadWebAssembly","_sourceType","_sourceData","wasmChunkPath","_edgeModule","importsObj","req","fetchWebAssembly","instance","WebAssembly","instantiateStreaming","exports","loadWebAssemblyModule","compileStreaming","get","reject","promise","innerResolve","innerReject","resolved","loadingStarted","set","SourceType","Runtime","isCss","importScripts","isJs","TURBOPACK_NEXT_CHUNK_URLS","push","Error","decodedChunkUrl","decodeURI","previousLinks","querySelectorAll","link","createElement","rel","crossOrigin","CROSS_ORIGIN","href","onerror","onload","head","appendChild","previousScripts","script","Array","from","addEventListener","fetch"],"mappings":"AAAA;;;;CAIC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,mEAAmE;AAEnE,SAASA;IACP,+CAA+C;IAC/C,IAAIC,KAAKC,sBAAsB,IAAI,MAAM,OAAOD,KAAKC,sBAAsB;IAC3E,MAAMC,MAAMC,UAAUC,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S8E,IAAI,CAACC,WAAW,CAACE;gBAC5B;YACF,OAAO;gBACL,MAAM,IAAIhB,MAAM,CAAC,mCAAmC,EAAEnD,UAAU;YAClE;QACF;QAEAE,SAASwC,cAAc,GAAG;QAC1B,OAAOxC,SAASoC,OAAO;IACzB;IAEA,SAAST,iBAAiBJ,aAAwB;QAChD,OAAO8C,MAAM7D,oBAAoBe;IACnC;AACF,CAAC","ignoreList":[0]}}, + {"offset": {"line": 2138, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// \n/// \n/// \n/// \n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loaded instantly.\n resolve()\n }\n\n // Make sure to insert the new CSS right after the previous one, so that\n // its precedence is higher.\n previousLinks[0].parentElement!.insertBefore(\n link,\n previousLinks[0].nextSibling\n )\n })\n },\n\n restart: () => self.location.reload(),\n }\n\n function deleteResolver(chunkUrl: ChunkUrl) {\n chunkResolvers.delete(chunkUrl)\n }\n})()\n\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\n code += `\\n\\n//# sourceURL=${encodeURI(\n location.origin + CHUNK_BASE_PATH + url + ASSET_SUFFIX\n )}`\n if (map) {\n code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\n // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\n // See https://stackoverflow.com/a/26603875\n unescape(encodeURIComponent(map))\n )}`\n }\n\n // eslint-disable-next-line no-eval\n return eval(code)\n}\n"],"names":["DEV_BACKEND","unloadChunk","chunkUrl","deleteResolver","baseChunkUrl","split","decodedBaseChunkUrl","decodeURI","isCss","links","document","querySelectorAll","link","Array","from","remove","isJs","scripts","script","Error","reloadChunk","Promise","resolve","reject","previousLinks","length","createElement","rel","crossOrigin","CROSS_ORIGIN","navigator","userAgent","includes","url","URL","location","origin","searchParams","set","Date","now","Math","random","href","pathname","search","onerror","onload","previousLink","parentElement","insertBefore","nextSibling","restart","self","reload","chunkResolvers","delete","_eval","code","map","encodeURI","CHUNK_BASE_PATH","ASSET_SUFFIX","btoa","unescape","encodeURIComponent","eval"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAIA;AACH,CAAC;IACAA,cAAc;QACZC,aAAYC,QAAQ;YAClBC,eAAeD;YAEf,mEAAmE;YACnE,0DAA0D;YAC1D,MAAME,eAAeF,SAASG,KAAK,CAAC,IAAI,CAAC,EAAE;YAC3C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IACxB;AACF,CAAC;AAED,SAASuD,MAAM,EAAEC,IAAI,EAAEzB,GAAG,EAAE0B,GAAG,EAAyB;IACtDD,QAAQ,CAAC,kBAAkB,EAAEE,UAC3BzB,SAASC,MAAM,GAAGyB,kBAAkB5B,MAAM6B,eACzC;IACH,IAAIH,KAAK;QACPD,QAAQ,CAAC,kEAAkE,EAAEK,KAC3E,0EAA0E;QAC1E,2CAA2C;QAC3CC,SAASC,mBAAmBN,QAC3B;IACL;IAEA,mCAAmC;IACnC,OAAOO,KAAKR;AACd","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_index_0arnewp.js b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_index_0arnewp.js index d92ef3420f2e..c8bc2531c936 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_index_0arnewp.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_index_0arnewp.js @@ -8,6 +8,7 @@ if (!Array.isArray(globalThis["TURBOPACK"])) { } var CHUNK_BASE_PATH = ""; +var WORKER_BASE_PATH = null; var RELATIVE_ROOT_PATH = "../../../../../../.."; var RUNTIME_PUBLIC_PATH = ""; var ASSET_SUFFIX = ""; @@ -747,7 +748,12 @@ browserContextPrototype.q = exportUrl; * @param workerOptions options to pass to the Worker constructor (optional) */ function createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions) { const isSharedWorker = WorkerConstructor.name === 'SharedWorker'; - const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk)).reverse(); + // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the + // module chunks loaded inside the worker, keeping them same-origin to each + // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN. + // `null` falls back; an empty string is treated as a literal empty prefix. + const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH; + const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk, workerBasePath)).reverse(); const params = [ chunkUrls, ASSET_SUFFIX @@ -755,7 +761,7 @@ browserContextPrototype.q = exportUrl; for (const globalName of WORKER_FORWARDED_GLOBALS){ params.push(globalThis[globalName]); } - const url = new URL(getChunkRelativeUrl(entrypoint), location.origin); + const url = new URL(getChunkRelativeUrl(entrypoint, workerBasePath), location.origin); const paramsJson = JSON.stringify(params); if (isSharedWorker) { url.searchParams.set('params', paramsJson); @@ -777,8 +783,8 @@ browserContextPrototype.b = createWorker; } /** * Returns the URL relative to the origin where a chunk can be fetched from. - */ function getChunkRelativeUrl(chunkPath) { - return `${CHUNK_BASE_PATH}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; + */ function getChunkRelativeUrl(chunkPath, basePath = CHUNK_BASE_PATH) { + return `${basePath}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; } function getPathFromScript(chunkScript) { if (typeof chunkScript === 'string') { diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1xw116u.js b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1xw116u.js index b4d61ace1510..ec096285b404 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1xw116u.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1xw116u.js @@ -8,6 +8,7 @@ if (!Array.isArray(globalThis["TURBOPACK"])) { } var CHUNK_BASE_PATH = ""; +var WORKER_BASE_PATH = null; var RELATIVE_ROOT_PATH = "../../../../../../.."; var RUNTIME_PUBLIC_PATH = ""; var ASSET_SUFFIX = ""; @@ -747,7 +748,12 @@ browserContextPrototype.q = exportUrl; * @param workerOptions options to pass to the Worker constructor (optional) */ function createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions) { const isSharedWorker = WorkerConstructor.name === 'SharedWorker'; - const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk)).reverse(); + // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the + // module chunks loaded inside the worker, keeping them same-origin to each + // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN. + // `null` falls back; an empty string is treated as a literal empty prefix. + const workerBasePath = WORKER_BASE_PATH ?? CHUNK_BASE_PATH; + const chunkUrls = moduleChunks.map((chunk)=>getChunkRelativeUrl(chunk, workerBasePath)).reverse(); const params = [ chunkUrls, ASSET_SUFFIX @@ -755,7 +761,7 @@ browserContextPrototype.q = exportUrl; for (const globalName of WORKER_FORWARDED_GLOBALS){ params.push(globalThis[globalName]); } - const url = new URL(getChunkRelativeUrl(entrypoint), location.origin); + const url = new URL(getChunkRelativeUrl(entrypoint, workerBasePath), location.origin); const paramsJson = JSON.stringify(params); if (isSharedWorker) { url.searchParams.set('params', paramsJson); @@ -777,8 +783,8 @@ browserContextPrototype.b = createWorker; } /** * Returns the URL relative to the origin where a chunk can be fetched from. - */ function getChunkRelativeUrl(chunkPath) { - return `${CHUNK_BASE_PATH}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; + */ function getChunkRelativeUrl(chunkPath, basePath = CHUNK_BASE_PATH) { + return `${basePath}${chunkPath.split('/').map((p)=>encodeURIComponent(p)).join('/')}${ASSET_SUFFIX}`; } function getPathFromScript(chunkScript) { if (typeof chunkScript === 'string') { From 292a3fba322748c468fccecfd11ce030e1beabd4 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Wed, 29 Apr 2026 11:39:23 +0200 Subject: [PATCH 3/9] Report OS memory pressure in TurboMalloc and trace samples (#93333) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What? Adds a new `TurboMalloc::memory_pressure()` method that returns a normalized OS-level memory pressure value in the range `0..=100` as `Option`. That value is attached to every memory sample in the tracing layer (`TraceRow::MemorySample`) and propagated through the trace-server so that span queries return a `memory_pressure_samples` vector next to the existing `memory_samples`. ### Why? Our current tracing only records the in-process allocator usage (`TurboMalloc::memory_usage()`), which does not tell us when the *operating system* is actually under memory pressure. We want that signal in the trace output to: 1. Surface real OS memory pressure in trace dashboards alongside our own allocation totals. 2. Eventually use it as input to task-eviction decisions in `turbo-tasks` (see branch description). This PR lands the plumbing; the eviction heuristic is not part of this change. ### How? **`TurboMalloc::memory_pressure() -> Option`** — new, in `turbopack/crates/turbo-tasks-malloc/`. Values are normalized so that `0` = no pressure, `100` = maximum pressure. Platform-specific backends: | Platform | Source | Notes | |---|---|---| | Linux | `/proc/pressure/memory` (`some` `avg10`), fallback to `(MemTotal - MemAvailable) / MemTotal` from `/proc/meminfo` | PSI is not available on all kernels (< 4.20, without `CONFIG_PSI`, restricted containers). The meminfo fallback keeps the signal meaningful on any standard Linux system and matches the semantics of Windows' `dwMemoryLoad`. | | macOS | `kern.memorystatus_level` sysctl (% free memory) | Pressure = `100 - level`, read via `libc::sysctlbyname`. | | Windows | `MEMORYSTATUSEX::dwMemoryLoad` via `GlobalMemoryStatusEx` (`windows-sys`) | Already a 0–100 percentage of physical memory in use. | | Other / wasm | — | Returns `None`. | All runtime failures (missing file, sysctl error, failed API call, unparseable content) silently yield `None` rather than panicking. **Wiring into tracing:** - `TraceRow::MemorySample` gains a `memory_pressure: u8` field. `0` is used when `memory_pressure()` returns `None` on unsupported platforms. - `RawTraceLayer::maybe_report_memory_sample` populates it on every sample (sampling cadence unchanged). - This is a breaking change to the postcard wire format of `MemorySample`; old trace files cannot be read by the new `turbopack-trace-server`. Given the dev-only nature of this data that seemed acceptable — let me know if a migration is desired. **Wiring into the trace-server:** - `Store::memory_samples` is now `Vec<(Timestamp, u64, u8)>` and `add_memory_sample(ts, memory, memory_pressure)`. - A new `Store::memory_pressure_samples_for_range(start, end) -> Vec` mirrors `memory_samples_for_range`: same `MAX_MEMORY_SAMPLES = 200` cap and same group-and-max downsampling, so both vectors align index-by-index for a given span query. - `ServerToClientMessage::QueryResult` gains a `memory_pressure_samples: Vec` field next to `memory_samples`. **Dependencies:** `libc` (macOS only, `cfg`-gated), `windows-sys` with the `Win32_System_SystemInformation` feature (Windows only, `cfg`-gated). No new deps on Linux. ### Verification - `cargo build -p turbo-tasks-malloc -p turbopack-trace-utils -p turbopack-trace-server` - `cargo clippy -p turbo-tasks-malloc -p turbopack-trace-utils -p turbopack-trace-server --all-targets -- -D warnings` - `cargo test -p turbo-tasks-malloc` — 7 tests pass, including: - `memory_pressure_is_in_range`: asserts `Some(_)` and `≤ 100` on Linux, macOS and Windows (via `cfg`-gated `.expect()`), and allows `None` elsewhere. - Parser tests for both PSI and `/proc/meminfo` code paths (typical content, malformed input, clamping). - Runtime sanity check on the Linux sandbox: `/proc/pressure/memory` is absent (kernel 5.10 without `CONFIG_PSI`); the `/proc/meminfo` fallback returned `Some(3)` as expected. --------- Co-authored-by: Tobias Koppers Co-authored-by: Claude --- Cargo.lock | 2 + .../crates/turbo-tasks-malloc/Cargo.toml | 6 + .../crates/turbo-tasks-malloc/src/lib.rs | 51 +++++ .../turbo-tasks-malloc/src/memory_pressure.rs | 194 ++++++++++++++++++ .../src/reader/turbopack.rs | 8 +- .../turbopack-trace-server/src/server.rs | 5 + .../turbopack-trace-server/src/store.rs | 56 +++-- .../turbopack-trace-utils/src/raw_trace.rs | 7 +- .../turbopack-trace-utils/src/tracing.rs | 4 + 9 files changed, 317 insertions(+), 16 deletions(-) create mode 100644 turbopack/crates/turbo-tasks-malloc/src/memory_pressure.rs diff --git a/Cargo.lock b/Cargo.lock index 47f06d42eafd..2102ab754492 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10127,8 +10127,10 @@ dependencies = [ name = "turbo-tasks-malloc" version = "0.1.0" dependencies = [ + "libc", "libmimalloc-sys", "mimalloc", + "windows-sys 0.60.2", ] [[package]] diff --git a/turbopack/crates/turbo-tasks-malloc/Cargo.toml b/turbopack/crates/turbo-tasks-malloc/Cargo.toml index 4a5a971554d6..ab01665e0aaf 100644 --- a/turbopack/crates/turbo-tasks-malloc/Cargo.toml +++ b/turbopack/crates/turbo-tasks-malloc/Cargo.toml @@ -29,6 +29,12 @@ mimalloc = { version = "0.1.48", features = [ "local_dynamic_tls", ], optional = true } +[target.'cfg(target_os = "macos")'.dependencies] +libc = "0.2" + +[target.'cfg(windows)'.dependencies] +windows-sys = { version = "0.60", features = ["Win32_System_SystemInformation"] } + [features] custom_allocator = ["dep:mimalloc", "dep:libmimalloc-sys"] default = ["custom_allocator"] diff --git a/turbopack/crates/turbo-tasks-malloc/src/lib.rs b/turbopack/crates/turbo-tasks-malloc/src/lib.rs index edf251ab604d..5e252abf74f0 100644 --- a/turbopack/crates/turbo-tasks-malloc/src/lib.rs +++ b/turbopack/crates/turbo-tasks-malloc/src/lib.rs @@ -1,4 +1,5 @@ mod counter; +mod memory_pressure; use std::{ alloc::{GlobalAlloc, Layout}, @@ -107,6 +108,23 @@ impl TurboMalloc { pub fn reset_allocation_counters(start: AllocationCounters) { self::counter::reset_allocation_counters(start); } + + /// Returns a memory pressure value in the range `0..=100`, or `None` when + /// the current platform does not expose a memory pressure signal or a + /// query for it failed. + /// + /// `0` means no memory pressure, `100` means maximum pressure. + /// + /// - On Linux this is derived from `/proc/pressure/memory` (the `some` `avg10` stall + /// percentage), falling back to `(MemTotal - MemAvailable) / MemTotal` from `/proc/meminfo` + /// when PSI is not available (older kernels, no `CONFIG_PSI`, or containers without access). + /// - On macOS this is derived from the `kern.memorystatus_level` sysctl (`100 - + /// free_memory_percentage`). + /// - On Windows this is `MEMORYSTATUSEX::dwMemoryLoad` (percentage of physical memory in use). + /// - On other platforms this returns `None`. + pub fn memory_pressure() -> Option { + memory_pressure::memory_pressure() + } } /// Get the allocator for this platform that we should wrap with TurboMalloc. @@ -164,3 +182,36 @@ unsafe impl GlobalAlloc for TurboMalloc { ret } } + +#[cfg(test)] +mod tests { + use super::TurboMalloc; + + #[test] + fn memory_pressure_is_in_range() { + let value = TurboMalloc::memory_pressure(); + + // On all supported platforms the value must be reported. + #[cfg(any( + all(target_os = "linux", not(target_family = "wasm")), + target_os = "macos", + windows, + ))] + let value = value.expect("memory_pressure() should return Some on this platform"); + + // On unsupported platforms we expect None and have nothing further to assert. + #[cfg(not(any( + all(target_os = "linux", not(target_family = "wasm")), + target_os = "macos", + windows, + )))] + let Some(value) = value else { + return; + }; + + assert!( + value <= 100, + "memory_pressure() returned {value}, expected a value in 0..=100" + ); + } +} diff --git a/turbopack/crates/turbo-tasks-malloc/src/memory_pressure.rs b/turbopack/crates/turbo-tasks-malloc/src/memory_pressure.rs new file mode 100644 index 000000000000..157e24575432 --- /dev/null +++ b/turbopack/crates/turbo-tasks-malloc/src/memory_pressure.rs @@ -0,0 +1,194 @@ +//! Per-OS memory pressure detection. +//! +//! All implementations return a value in the range `0..=100`, where `0` means +//! no memory pressure and `100` means maximum memory pressure. Platforms that +//! do not expose a memory pressure signal (or for which the query fails) +//! return `None`. + +/// See [`super::TurboMalloc::memory_pressure`]. +pub fn memory_pressure() -> Option { + platform::memory_pressure() +} + +fn clamp_percent(value: f64) -> u8 { + if !value.is_finite() { + return 0; + } + value.round().clamp(0.0, 100.0) as u8 +} + +#[cfg(all(target_os = "linux", not(target_family = "wasm")))] +mod platform { + use super::clamp_percent; + + /// Reads memory pressure on Linux. Prefers `/proc/pressure/memory` (the + /// `some avg10` stall percentage) when the kernel exposes PSI, and falls + /// back to `MemAvailable`/`MemTotal` from `/proc/meminfo` when it does + /// not (older kernels, containers without PSI access, or kernels built + /// without `CONFIG_PSI`). + pub fn memory_pressure() -> Option { + if let Ok(content) = std::fs::read_to_string("/proc/pressure/memory") + && let Some(value) = parse_psi(&content) + { + return Some(value); + } + let content = std::fs::read_to_string("/proc/meminfo").ok()?; + parse_meminfo(&content) + } + + fn parse_psi(content: &str) -> Option { + // Expected format: + // some avg10=0.00 avg60=0.00 avg300=0.00 total=... + // full avg10=0.00 avg60=0.00 avg300=0.00 total=... + for line in content.lines() { + let Some(rest) = line.strip_prefix("some ") else { + continue; + }; + for field in rest.split_ascii_whitespace() { + if let Some(val) = field.strip_prefix("avg10=") { + let parsed: f64 = val.parse().ok()?; + return Some(clamp_percent(parsed)); + } + } + } + None + } + + fn parse_meminfo(content: &str) -> Option { + // Returns `(MemTotal - MemAvailable) / MemTotal * 100`, i.e. the + // percentage of physical memory currently unavailable — analogous to + // Windows' `dwMemoryLoad`. + let mut total: Option = None; + let mut available: Option = None; + for line in content.lines() { + if let Some(rest) = line.strip_prefix("MemTotal:") { + total = parse_kb(rest); + } else if let Some(rest) = line.strip_prefix("MemAvailable:") { + available = parse_kb(rest); + } + if total.is_some() && available.is_some() { + break; + } + } + let total = total?; + let available = available?; + if total == 0 { + return None; + } + let used = total.saturating_sub(available); + let pct = (used as f64) * 100.0 / (total as f64); + Some(clamp_percent(pct)) + } + + fn parse_kb(rest: &str) -> Option { + // Expected format: " 12345 kB" + let mut iter = rest.split_ascii_whitespace(); + iter.next()?.parse().ok() + } + + #[cfg(test)] + mod tests { + use super::{parse_meminfo, parse_psi}; + + #[test] + fn parses_typical_psi_content() { + let content = "some avg10=12.34 avg60=5.67 avg300=1.00 total=123456\nfull avg10=0.00 \ + avg60=0.00 avg300=0.00 total=0\n"; + assert_eq!(parse_psi(content), Some(12)); + } + + #[test] + fn returns_none_on_malformed_psi() { + assert_eq!(parse_psi(""), None); + assert_eq!(parse_psi("garbage"), None); + } + + #[test] + fn clamps_psi_to_100() { + let content = "some avg10=150.00 avg60=0.00 avg300=0.00 total=0\n"; + assert_eq!(parse_psi(content), Some(100)); + } + + #[test] + fn parses_meminfo() { + let content = + "MemTotal: 1000 kB\nMemFree: 500 kB\nMemAvailable: 750 kB\n"; + // used = 250, 25% + assert_eq!(parse_meminfo(content), Some(25)); + } + + #[test] + fn returns_none_on_missing_meminfo_fields() { + assert_eq!(parse_meminfo("MemTotal: 1000 kB\n"), None); + assert_eq!(parse_meminfo(""), None); + } + } +} + +#[cfg(target_os = "macos")] +mod platform { + use std::{ffi::c_void, mem::size_of}; + + use super::clamp_percent; + + /// Reads the `kern.memorystatus_level` sysctl, which exposes the percentage + /// of free memory available (0..=100). The returned memory pressure is + /// `100 - free_percentage`. + pub fn memory_pressure() -> Option { + // `kern.memorystatus_level` returns an `int` (percentage of free + // memory, 0..=100). + let mut level: libc::c_int = 0; + let mut size: libc::size_t = size_of::() as libc::size_t; + let name = c"kern.memorystatus_level"; + + // Safety: `sysctlbyname` writes up to `size` bytes into `&mut level`; + // the buffer is large enough for a `c_int`. We pass a valid, + // NUL-terminated C string as the first argument. + let ret = unsafe { + libc::sysctlbyname( + name.as_ptr(), + &mut level as *mut libc::c_int as *mut c_void, + &mut size, + std::ptr::null_mut(), + 0, + ) + }; + + if ret != 0 || size != size_of::() as libc::size_t { + return None; + } + + let pressure = 100.0 - f64::from(level); + Some(clamp_percent(pressure)) + } +} + +#[cfg(windows)] +mod platform { + use windows_sys::Win32::System::SystemInformation::{GlobalMemoryStatusEx, MEMORYSTATUSEX}; + + /// Reads `MEMORYSTATUSEX::dwMemoryLoad`, which is the approximate + /// percentage of physical memory in use (0..=100). + pub fn memory_pressure() -> Option { + let mut status: MEMORYSTATUSEX = unsafe { std::mem::zeroed() }; + status.dwLength = std::mem::size_of::() as u32; + // Safety: `status` is a properly sized and initialized MEMORYSTATUSEX. + let ok = unsafe { GlobalMemoryStatusEx(&mut status) }; + if ok == 0 { + return None; + } + let load = status.dwMemoryLoad; + Some(load.min(100) as u8) + } +} + +#[cfg(not(any( + all(target_os = "linux", not(target_family = "wasm")), + target_os = "macos", + windows, +)))] +mod platform { + pub fn memory_pressure() -> Option { + None + } +} diff --git a/turbopack/crates/turbopack-trace-server/src/reader/turbopack.rs b/turbopack/crates/turbopack-trace-server/src/reader/turbopack.rs index cb73c8392770..0152e4350c1f 100644 --- a/turbopack/crates/turbopack-trace-server/src/reader/turbopack.rs +++ b/turbopack/crates/turbopack-trace-server/src/reader/turbopack.rs @@ -298,9 +298,13 @@ impl TurbopackFormat { } } } - TraceRow::MemorySample { ts, memory } => { + TraceRow::MemorySample { + ts, + memory, + memory_pressure, + } => { let ts = Timestamp::from_micros(ts); - store.add_memory_sample(ts, memory); + store.add_memory_sample(ts, memory, memory_pressure); } TraceRow::AllocationCounters { ts: _, diff --git a/turbopack/crates/turbopack-trace-server/src/server.rs b/turbopack/crates/turbopack-trace-server/src/server.rs index 0d2dfc34d1cf..2b11274beeae 100644 --- a/turbopack/crates/turbopack-trace-server/src/server.rs +++ b/turbopack/crates/turbopack-trace-server/src/server.rs @@ -44,6 +44,7 @@ pub enum ServerToClientMessage { args: Vec<(String, String)>, path: Vec, memory_samples: Vec, + memory_pressure_samples: Vec, }, } @@ -294,6 +295,8 @@ fn handle_connection( path.reverse(); let memory_samples = store.memory_samples_for_range(span.start(), span.end()); + let memory_pressure_samples = store + .memory_pressure_samples_for_range(span.start(), span.end()); ServerToClientMessage::QueryResult { id, is_graph, @@ -308,6 +311,7 @@ fn handle_connection( args, path, memory_samples, + memory_pressure_samples, } } else { ServerToClientMessage::QueryResult { @@ -324,6 +328,7 @@ fn handle_connection( args: Vec::new(), path: Vec::new(), memory_samples: Vec::new(), + memory_pressure_samples: Vec::new(), } } }; diff --git a/turbopack/crates/turbopack-trace-server/src/store.rs b/turbopack/crates/turbopack-trace-server/src/store.rs index 47ca38fdc0ef..54dcc8331189 100644 --- a/turbopack/crates/turbopack-trace-server/src/store.rs +++ b/turbopack/crates/turbopack-trace-server/src/store.rs @@ -23,9 +23,11 @@ pub type SpanId = NonZeroUsize; /// at the cut-off depth (Flattening). const CUT_OFF_DEPTH: u32 = 80; -/// A single memory usage sample: (timestamp, memory_bytes). -/// Sorted by timestamp. -type MemorySample = (Timestamp, u64); +/// A single memory usage sample: (timestamp, memory_bytes, memory_pressure). +/// Sorted by timestamp. `memory_pressure` is an OS-reported pressure value in +/// the range `0..=100`; `0` is used when the reporter platform did not expose +/// a pressure signal. +type MemorySample = (Timestamp, u64, u8); /// Maximum number of memory samples returned in a query result. const MAX_MEMORY_SAMPLES: usize = 200; @@ -340,11 +342,11 @@ impl Store { span.self_deallocation_count += count; } - pub fn add_memory_sample(&mut self, ts: Timestamp, memory: u64) { + pub fn add_memory_sample(&mut self, ts: Timestamp, memory: u64, memory_pressure: u8) { // Samples arrive nearly sorted (roughly chronological from the trace // writer), so an insertion-sort step is efficient: push to the end // then swap backward until the timestamp ordering is restored. - self.memory_samples.push((ts, memory)); + self.memory_samples.push((ts, memory, memory_pressure)); let mut i = self.memory_samples.len() - 1; while i > 0 && self.memory_samples[i - 1].0 > ts { self.memory_samples.swap(i, i - 1); @@ -356,29 +358,57 @@ impl Store { /// `[start, end]`. When more samples exist, groups of N consecutive /// samples are merged by taking the maximum memory value in each group. pub fn memory_samples_for_range(&self, start: Timestamp, end: Timestamp) -> Vec { - // Binary search for the first sample >= start - let lo = self.memory_samples.partition_point(|(ts, _)| *ts < start); - // Binary search for the first sample > end - let hi = self.memory_samples.partition_point(|(ts, _)| *ts <= end); - - let slice = &self.memory_samples[lo..hi]; + let slice = self.memory_samples_slice(start, end); let count = slice.len(); if count == 0 { return Vec::new(); } if count <= MAX_MEMORY_SAMPLES { - return slice.iter().map(|(_, mem)| *mem).collect(); + return slice.iter().map(|(_, mem, _)| *mem).collect(); } // Merge groups of N samples, taking the max memory in each group. let n = count.div_ceil(MAX_MEMORY_SAMPLES); slice .chunks(n) - .map(|chunk| chunk.iter().map(|(_, mem)| *mem).max().unwrap()) + .map(|chunk| chunk.iter().map(|(_, mem, _)| *mem).max().unwrap()) .collect() } + /// Returns up to `MAX_MEMORY_SAMPLES` memory pressure values in the range + /// `[start, end]`. The returned slice has the same length and group + /// boundaries as [`Self::memory_samples_for_range`] so that the two + /// results can be rendered in parallel. Each group is downsampled by + /// taking the maximum pressure value. + pub fn memory_pressure_samples_for_range(&self, start: Timestamp, end: Timestamp) -> Vec { + let slice = self.memory_samples_slice(start, end); + let count = slice.len(); + if count == 0 { + return Vec::new(); + } + + if count <= MAX_MEMORY_SAMPLES { + return slice.iter().map(|(_, _, p)| *p).collect(); + } + + let n = count.div_ceil(MAX_MEMORY_SAMPLES); + slice + .chunks(n) + .map(|chunk| chunk.iter().map(|(_, _, p)| *p).max().unwrap()) + .collect() + } + + fn memory_samples_slice(&self, start: Timestamp, end: Timestamp) -> &[MemorySample] { + // Binary search for the first sample >= start + let lo = self + .memory_samples + .partition_point(|(ts, _, _)| *ts < start); + // Binary search for the first sample > end + let hi = self.memory_samples.partition_point(|(ts, _, _)| *ts <= end); + &self.memory_samples[lo..hi] + } + pub fn complete_span(&mut self, span_index: SpanIndex) { let span = &mut self.spans[span_index.get()]; span.is_complete = true; diff --git a/turbopack/crates/turbopack-trace-utils/src/raw_trace.rs b/turbopack/crates/turbopack-trace-utils/src/raw_trace.rs index a0c724573c40..7b0f5aee4a1d 100644 --- a/turbopack/crates/turbopack-trace-utils/src/raw_trace.rs +++ b/turbopack/crates/turbopack-trace-utils/src/raw_trace.rs @@ -102,7 +102,12 @@ impl LookupSpan<'a>> RawTraceLayer { // We won the race — write the sample THREAD_LOCAL_LAST_MEMORY_SAMPLE.with(|tl| tl.set(ts)); let memory = TurboMalloc::memory_usage() as u64; - self.write(TraceRow::MemorySample { ts, memory }); + let memory_pressure = TurboMalloc::memory_pressure().unwrap_or(0); + self.write(TraceRow::MemorySample { + ts, + memory, + memory_pressure, + }); } Err(actual) => { // Lost the race; update thread-local with the winner's timestamp diff --git a/turbopack/crates/turbopack-trace-utils/src/tracing.rs b/turbopack/crates/turbopack-trace-utils/src/tracing.rs index 175b85db0a5d..f082d9ae41b1 100644 --- a/turbopack/crates/turbopack-trace-utils/src/tracing.rs +++ b/turbopack/crates/turbopack-trace-utils/src/tracing.rs @@ -106,6 +106,10 @@ pub enum TraceRow<'a> { ts: u64, /// Memory usage in bytes (from TurboMalloc::memory_usage()) memory: u64, + /// OS memory pressure in `0..=100` (from + /// `TurboMalloc::memory_pressure()`). `0` is used when the current + /// platform does not report a pressure value. + memory_pressure: u8, }, } From b8c3e86156723d202e17f49a4d0f5f94eb0c9d1e Mon Sep 17 00:00:00 2001 From: "Sebastian \"Sebbie\" Silbermann" Date: Wed, 29 Apr 2026 12:26:26 +0200 Subject: [PATCH 4/9] Speed up native postinstall script (#93312) --- scripts/install-native.mjs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/scripts/install-native.mjs b/scripts/install-native.mjs index 35633925c60e..8922c829c3fe 100644 --- a/scripts/install-native.mjs +++ b/scripts/install-native.mjs @@ -86,18 +86,24 @@ import { outdent } from 'outdent' ` ) - const args = [ - 'add', - `next@${nextVersion}`, - '--lockfile=false', - '--ignore-scripts', - ] + const args = ['install', '--lockfile=false', '--ignore-scripts'] if (preferOffline) { args.push('--prefer-offline') } await execa('pnpm', args, { cwd: tmpdir }) - let pkgs = fs.readdirSync(path.join(tmpdir, 'node_modules/@next')) + /** @type {string[]} */ + let pkgs + try { + pkgs = fs.readdirSync(path.join(tmpdir, 'node_modules/@next'), {}) + } catch (error) { + throw new Error( + 'No binary candidate found.\n' + + `This environment is not supported by Next.js or publish of ${nextVersion} is incomplete.\n` + + 'If binaries are built from source, set `NEXT_SKIP_NATIVE_POSTINSTALL=1`.', + { cause: error } + ) + } fs.mkdirSync(path.join(cwd, 'node_modules/@next'), { recursive: true }) await Promise.all( From 5eec78a13bbfc37d2f95d7e54f1e7ec534008dff Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Wed, 29 Apr 2026 12:43:07 +0200 Subject: [PATCH 5/9] Turbopack: remove unused module references (#93335) - SingleModuleReference is dead code, never actually called - SingleOutputAssetReference was created, but never actually did anything because of the ChunkingType being None --- .../turbopack-core/src/reference/mod.rs | 63 +------------------ .../src/async_chunk/module.rs | 13 +--- .../src/manifest/chunk_asset.rs | 24 ------- 3 files changed, 4 insertions(+), 96 deletions(-) diff --git a/turbopack/crates/turbopack-core/src/reference/mod.rs b/turbopack/crates/turbopack-core/src/reference/mod.rs index b364f97c01d3..9517443229ea 100644 --- a/turbopack/crates/turbopack-core/src/reference/mod.rs +++ b/turbopack/crates/turbopack-core/src/reference/mod.rs @@ -16,7 +16,7 @@ use crate::{ expand_output_assets, }, raw_module::RawModule, - resolve::{BindingUsage, ExportUsage, ImportUsage, ModuleResolveResult, RequestKey}, + resolve::{BindingUsage, ExportUsage, ImportUsage, ModuleResolveResult}, }; pub mod source_map; @@ -56,35 +56,6 @@ impl ModuleReferences { } } -/// A reference that always resolves to a single module. -#[turbo_tasks::value] -#[derive(ValueToString)] -#[value_to_string(self.description)] -pub struct SingleModuleReference { - module: ResolvedVc>, - description: RcStr, -} - -#[turbo_tasks::value_impl] -impl ModuleReference for SingleModuleReference { - #[turbo_tasks::function] - fn resolve_reference(&self) -> Vc { - *ModuleResolveResult::module(self.module) - } -} - -#[turbo_tasks::value_impl] -impl SingleModuleReference { - /// Create a new instance that resolves to the given module. - #[turbo_tasks::function] - pub fn new(module: ResolvedVc>, description: RcStr) -> Vc { - Self::cell(SingleModuleReference { - module, - description, - }) - } -} - #[turbo_tasks::value] #[derive(ValueToString)] #[value_to_string(self.description)] @@ -132,38 +103,6 @@ impl ModuleReference for SingleChunkableModuleReference { } } -/// A reference that always resolves to a single module. -#[turbo_tasks::value] -#[derive(ValueToString)] -#[value_to_string(self.description)] -pub struct SingleOutputAssetReference { - asset: ResolvedVc>, - description: RcStr, -} - -#[turbo_tasks::value_impl] -impl ModuleReference for SingleOutputAssetReference { - #[turbo_tasks::function] - fn resolve_reference(&self) -> Vc { - *ModuleResolveResult::output_asset(RequestKey::default(), self.asset) - } -} - -#[turbo_tasks::value_impl] -impl SingleOutputAssetReference { - /// Create a new `Vc` that resolves to the given asset. - #[turbo_tasks::function] - pub fn new(asset: ResolvedVc>, description: RcStr) -> Vc { - Self::cell(SingleOutputAssetReference { asset, description }) - } - - /// The [`Vc>`][OutputAsset] that this reference resolves to. - #[turbo_tasks::function] - pub fn asset(&self) -> Vc> { - *self.asset - } -} - /// Aggregates all [Module]s referenced by an [Module]. [ModuleReference] /// This does not include transitively references [Module]s, but it includes /// primary and secondary [Module]s referenced. diff --git a/turbopack/crates/turbopack-ecmascript/src/async_chunk/module.rs b/turbopack/crates/turbopack-ecmascript/src/async_chunk/module.rs index 16bc9ec79c16..caa61dc53aac 100644 --- a/turbopack/crates/turbopack-ecmascript/src/async_chunk/module.rs +++ b/turbopack/crates/turbopack-ecmascript/src/async_chunk/module.rs @@ -1,4 +1,4 @@ -use anyhow::Result; +use anyhow::{Result, bail}; use indoc::formatdoc; use tracing::Instrument; use turbo_rcstr::rcstr; @@ -14,7 +14,7 @@ use turbopack_core::{ ModuleGraph, chunk_group_info::ChunkGroup, module_batch::ChunkableModuleOrBatch, }, output::OutputAssetsWithReferenced, - reference::{ModuleReferences, SingleModuleReference}, + reference::ModuleReferences, }; use crate::{ @@ -118,14 +118,7 @@ impl Module for AsyncLoaderModule { #[turbo_tasks::function] async fn references(self: Vc) -> Result> { - Ok(Vc::cell(vec![ResolvedVc::upcast( - SingleModuleReference::new( - *ResolvedVc::upcast(self.await?.inner), - rcstr!("async module"), - ) - .to_resolved() - .await?, - )])) + bail!("AsyncLoaderModule::references should never be called") } #[turbo_tasks::function] diff --git a/turbopack/crates/turbopack-ecmascript/src/manifest/chunk_asset.rs b/turbopack/crates/turbopack-ecmascript/src/manifest/chunk_asset.rs index 4bb4675c407c..d42121e2f246 100644 --- a/turbopack/crates/turbopack-ecmascript/src/manifest/chunk_asset.rs +++ b/turbopack/crates/turbopack-ecmascript/src/manifest/chunk_asset.rs @@ -13,7 +13,6 @@ use turbopack_core::{ ModuleGraph, chunk_group_info::ChunkGroup, module_batch::ChunkableModuleOrBatch, }, output::OutputAssetsWithReferenced, - reference::{ModuleReferences, SingleOutputAssetReference}, }; use crate::{ @@ -145,29 +144,6 @@ impl Module for ManifestAsyncModule { Vc::cell(None) } - #[turbo_tasks::function] - async fn references(self: Vc) -> Result> { - let assets = self.chunk_group().expand_all_assets().await?; - - Ok(Vc::cell( - assets - .into_iter() - .copied() - .map(|chunk| async move { - Ok(ResolvedVc::upcast( - SingleOutputAssetReference::new( - *chunk, - manifest_chunk_reference_description(), - ) - .to_resolved() - .await?, - )) - }) - .try_join() - .await?, - )) - } - #[turbo_tasks::function] fn side_effects(self: Vc) -> Vc { ModuleSideEffects::SideEffectFree.cell() From bed584b3d4e015535f3a9c5462883442557cbcac Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Wed, 29 Apr 2026 13:47:24 +0200 Subject: [PATCH 6/9] Turbopack: remove ModuleResolveResultItem::OutputAsset (#93349) It never made sense to have module references that point to an output asset, and the `ChunkingType` value on those made even less sense. We had already migrated almost everything off anyway --- .../turbopack-core/src/chunk/chunk_group.rs | 31 ++----------------- .../turbopack-core/src/introspect/utils.rs | 13 -------- .../crates/turbopack-core/src/resolve/mod.rs | 30 ------------------ .../src/references/pattern_mapping.rs | 4 +-- .../crates/turbopack-wasm/src/module_asset.rs | 12 +++---- 5 files changed, 9 insertions(+), 81 deletions(-) diff --git a/turbopack/crates/turbopack-core/src/chunk/chunk_group.rs b/turbopack/crates/turbopack-core/src/chunk/chunk_group.rs index 3be6cb80137c..b8f43e71ff2c 100644 --- a/turbopack/crates/turbopack-core/src/chunk/chunk_group.rs +++ b/turbopack/crates/turbopack-core/src/chunk/chunk_group.rs @@ -1,4 +1,4 @@ -use std::{collections::HashSet, sync::atomic::AtomicBool}; +use std::sync::atomic::AtomicBool; use anyhow::{Context, Result}; use rustc_hash::FxHashMap; @@ -26,11 +26,7 @@ use crate::{ }, module_batches::{BatchingConfig, ModuleBatchesGraphEdge}, }, - output::{ - OutputAsset, OutputAssets, OutputAssetsReference, OutputAssetsReferences, - OutputAssetsWithReferenced, - }, - reference::ModuleReference, + output::{OutputAsset, OutputAssetsReference}, traced_asset::TracedAsset, }; @@ -170,29 +166,6 @@ pub async fn make_chunk_group( }) } -pub async fn references_to_output_assets( - references: impl IntoIterator>>, -) -> Result> { - let output_assets = references - .into_iter() - .map(|reference| reference.resolve_reference().primary_output_assets()) - .try_join() - .await?; - let mut set = HashSet::new(); - let output_assets = output_assets - .iter() - .flatten() - .copied() - .filter(|&asset| set.insert(asset)) - .collect::>(); - Ok(OutputAssetsWithReferenced { - assets: ResolvedVc::cell(output_assets), - referenced_assets: OutputAssets::empty_resolved(), - references: OutputAssetsReferences::empty_resolved(), - } - .cell()) -} - pub struct ChunkGroupContentOptions { /// The availability info of the chunk group pub availability_info: AvailabilityInfo, diff --git a/turbopack/crates/turbopack-core/src/introspect/utils.rs b/turbopack/crates/turbopack-core/src/introspect/utils.rs index 7cd72735df6a..6df3d480d827 100644 --- a/turbopack/crates/turbopack-core/src/introspect/utils.rs +++ b/turbopack/crates/turbopack-core/src/introspect/utils.rs @@ -97,19 +97,6 @@ pub async fn children_from_module_references( IntrospectableModule::new(*module).to_resolved().await?, )); } - for &output_asset in reference - .resolve_reference() - .primary_output_assets() - .await? - .iter() - { - children.insert(( - key.clone(), - IntrospectableOutputAsset::new(*output_asset) - .to_resolved() - .await?, - )); - } } Ok(Vc::cell(children)) } diff --git a/turbopack/crates/turbopack-core/src/resolve/mod.rs b/turbopack/crates/turbopack-core/src/resolve/mod.rs index f4d20af2d58c..fca37dad75c5 100644 --- a/turbopack/crates/turbopack-core/src/resolve/mod.rs +++ b/turbopack/crates/turbopack-core/src/resolve/mod.rs @@ -32,7 +32,6 @@ use crate::{ resolve::ResolvingIssue, }, module::{Module, Modules, OptionModule}, - output::{OutputAsset, OutputAssets}, package_json::{PackageJsonIssue, read_package_json}, raw_module::RawModule, reference_type::ReferenceType, @@ -91,7 +90,6 @@ type AfterResolvePluginWithCondition = ( #[derive(Clone, Debug)] pub enum ModuleResolveResultItem { Module(ResolvedVc>), - OutputAsset(ResolvedVc>), External { /// uri, path, reference, etc. name: RcStr, @@ -242,21 +240,6 @@ impl ModuleResolveResult { .resolved_cell() } - pub fn output_asset( - request_key: RequestKey, - output_asset: ResolvedVc>, - ) -> ResolvedVc { - ModuleResolveResult { - primary: vec![( - request_key, - ModuleResolveResultItem::OutputAsset(output_asset), - )] - .into_boxed_slice(), - affecting_sources: Default::default(), - } - .resolved_cell() - } - pub fn modules( modules: impl IntoIterator>)>, ) -> ResolvedVc { @@ -414,19 +397,6 @@ impl ModuleResolveResult { } Ok(Vc::cell(set.into_iter().collect())) } - - #[turbo_tasks::function] - pub fn primary_output_assets(&self) -> Vc { - Vc::cell( - self.primary - .iter() - .filter_map(|(_, item)| match item { - &ModuleResolveResultItem::OutputAsset(a) => Some(a), - _ => None, - }) - .collect(), - ) - } } #[derive( diff --git a/turbopack/crates/turbopack-ecmascript/src/references/pattern_mapping.rs b/turbopack/crates/turbopack-ecmascript/src/references/pattern_mapping.rs index 59c4c902c72f..198b21ada3c1 100644 --- a/turbopack/crates/turbopack-ecmascript/src/references/pattern_mapping.rs +++ b/turbopack/crates/turbopack-ecmascript/src/references/pattern_mapping.rs @@ -328,9 +328,7 @@ async fn to_single_pattern_mapping( .to_unstyled_string(), )); } - ModuleResolveResultItem::OutputAsset(_) - | ModuleResolveResultItem::Empty - | ModuleResolveResultItem::Custom(_) => { + ModuleResolveResultItem::Empty | ModuleResolveResultItem::Custom(_) => { // TODO implement mapping CodeGenerationIssue { severity: IssueSeverity::Bug, diff --git a/turbopack/crates/turbopack-wasm/src/module_asset.rs b/turbopack/crates/turbopack-wasm/src/module_asset.rs index edb0c4620fcc..a774d126bca4 100644 --- a/turbopack/crates/turbopack-wasm/src/module_asset.rs +++ b/turbopack/crates/turbopack-wasm/src/module_asset.rs @@ -3,9 +3,7 @@ use turbo_rcstr::rcstr; use turbo_tasks::{ResolvedVc, Vc, fxindexmap}; use turbo_tasks_fs::FileSystemPath; use turbopack_core::{ - chunk::{ - AsyncModuleInfo, ChunkableModule, ChunkingContext, chunk_group::references_to_output_assets, - }, + chunk::{AsyncModuleInfo, ChunkableModule, ChunkingContext}, context::AssetContext, ident::AssetIdent, module::{Module, ModuleSideEffects}, @@ -196,11 +194,13 @@ impl EcmascriptChunkPlaceable for WebAssemblyModuleAsset { #[turbo_tasks::function] async fn chunk_item_output_assets( self: Vc, - _chunking_context: Vc>, + chunking_context: Vc>, _module_graph: Vc, ) -> Result> { - let loader_references = self.loader().references().await?; - references_to_output_assets(&*loader_references).await + let wasm_asset = self.wasm_asset(chunking_context).to_resolved().await?; + Ok(OutputAssetsWithReferenced::from_assets(Vc::cell(vec![ + ResolvedVc::upcast(wasm_asset), + ]))) } } From 8ff558ef5a0b1af8c844956cee7e6b5f7e41b6e5 Mon Sep 17 00:00:00 2001 From: "Sebastian \"Sebbie\" Silbermann" Date: Wed, 29 Apr 2026 14:09:11 +0200 Subject: [PATCH 7/9] [test] Suppress build when preparing next for cache hits (#93355) In https://github.com/vercel/next.js/pull/92575 we started using Turborepo to build a fresh copy of Next.js before each test. This can become quite noisy IMO since Turborepo replays logs by default. Now we hide logs for cache hits. If you want to debug logs from cached builds, you should use `pnpm build` directly. ```terminal @next/polyfill-nomodule#build > cache hit, suppressing logs 951e3e04258a486d @next/playwright#build > cache hit, suppressing logs a37fc1279a93411b @next/routing#build > cache hit, suppressing logs e29bf8207712d9ea @next/env#build > cache hit, suppressing logs 6f68cdf7c8f202f6 @next/bundle-analyzer-ui#build > cache hit, suppressing logs 5dbf9112c4f7029e @next/polyfill-module#build > cache hit, suppressing logs 601b6f5afa47853d @vercel/devlow-bench#build > cache hit, suppressing logs dfd1c037ef4e8100 @next/codemod#build > cache hit, suppressing logs a5eac293134b4263 @next/react-refresh-utils#build > cache hit, suppressing logs 51d64c1f7e8e5cfb @next/eslint-plugin-next#build > cache hit, suppressing logs 74ec27fec9910c71 create-next-app#build > cache hit, suppressing logs 0c4c9d38e0e0913e @next/font#build > cache hit, suppressing logs d1d057c5ffe70285 @next/bundle-analyzer#pack-for-isolated-tests > cache hit, suppressing logs 867b1e9082440087 @next/env#pack-for-isolated-tests > cache hit, suppressing logs 50d7a018277cafb8 next-rspack#pack-for-isolated-tests > cache hit, suppressing logs 1046e9cfa3ba6879 @next/mdx#pack-for-isolated-tests > cache hit, suppressing logs 6da45b672b5b081a eslint-config-next#build > cache hit, suppressing logs fcf529c5b1428c5d @next/font#pack-for-isolated-tests > cache hit, suppressing logs 9675f7ed199b9841 next#build > cache hit, suppressing logs 8c62df3806949bad @vercel/turbopack-next#build > cache hit, suppressing logs 94890b06e4b937bf @next/third-parties#build > cache hit, suppressing logs f1da8c56f9222a0c next#pack-for-isolated-tests > cache hit, suppressing logs f11a5a11e2584c14 @next/third-parties#pack-for-isolated-tests > cache hit, suppressing logs 988b5be9471a943e ``` --- test/lib/create-next-install.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/test/lib/create-next-install.js b/test/lib/create-next-install.js index 1cd8f8bbe471..b10b0d1d4797 100644 --- a/test/lib/create-next-install.js +++ b/test/lib/create-next-install.js @@ -82,10 +82,20 @@ async function createNextInstall({ require('console').log('using provided pkg paths') } else { await rootSpan.traceChild('turbo-run-pack').traceAsyncFn(() => - execa('pnpm', ['turbo', 'run', 'pack-for-isolated-tests'], { - cwd: origRepoDir, - stdio: ['ignore', 'inherit', 'inherit'], - }) + execa( + 'pnpm', + [ + 'turbo', + 'run', + 'pack-for-isolated-tests', + '--output-logs', + 'new-only', + ], + { + cwd: origRepoDir, + stdio: ['ignore', 'inherit', 'inherit'], + } + ) ) if (process.env.NEXT_TEST_WASM) { From 8adb4ea838da76cc1f1f11f582dfe4d571784b1b Mon Sep 17 00:00:00 2001 From: "Sebastian \"Sebbie\" Silbermann" Date: Wed, 29 Apr 2026 14:09:11 +0200 Subject: [PATCH 8/9] [test] Fix broken terminal output (#93357) Nesting TUIs is hard but also a bit excessive since Turborepo's TUI isn't interactive if `stdin` is ignored. Co-authored-by: Copilot --- test/lib/create-next-install.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lib/create-next-install.js b/test/lib/create-next-install.js index b10b0d1d4797..e55eb0896b9b 100644 --- a/test/lib/create-next-install.js +++ b/test/lib/create-next-install.js @@ -90,6 +90,10 @@ async function createNextInstall({ 'pack-for-isolated-tests', '--output-logs', 'new-only', + // Jest tui can't handle Turborepo tui. But we're cutting off stdin + // so Turborepo's tui isn't interactive anyway. + '--ui', + 'stream', ], { cwd: origRepoDir, From 4945b6e295efbdbfbd559d5d5bd2f1db1553b5f1 Mon Sep 17 00:00:00 2001 From: Maxime COLIN Date: Wed, 29 Apr 2026 15:16:45 +0200 Subject: [PATCH 9/9] chore: bump postcss to 8.5.10 (#93288) --- package.json | 2 +- packages/next/package.json | 2 +- .../next/src/compiled/cssnano-simple/index.js | 6 +- .../next/src/compiled/icss-utils/index.js | 2 +- .../compiled/postcss-flexbugs-fixes/index.js | 2 +- .../postcss-modules-extract-imports/index.js | 2 +- .../postcss-modules-local-by-default/index.js | 2 +- .../compiled/postcss-modules-scope/index.js | 2 +- .../compiled/postcss-modules-values/index.js | 2 +- .../src/compiled/postcss-preset-env/index.cjs | 12 +- .../postcss-safe-parser/safe-parse.js | 2 +- .../src/compiled/postcss-scss/scss-syntax.js | 2 +- pnpm-lock.yaml | 692 ++++++++---------- .../acceptance-app/ReactRefreshLogBox.test.ts | 4 +- .../acceptance/ReactRefreshLogBox.test.ts | 4 +- 15 files changed, 332 insertions(+), 406 deletions(-) diff --git a/package.json b/package.json index 6e7fc466dfa7..1da31f7f2ac8 100644 --- a/package.json +++ b/package.json @@ -249,7 +249,7 @@ "pixrem": "5.0.0", "playwright": "1.58.2", "playwright-chromium": "1.58.2", - "postcss": "8.4.31", + "postcss": "8.5.10", "postcss-nested": "4.2.1", "postcss-pseudoelements": "5.0.0", "postcss-short-size": "4.0.0", diff --git a/packages/next/package.json b/packages/next/package.json index 4eb3eb890d28..5ffb15a05e0e 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -105,7 +105,7 @@ "@swc/helpers": "0.5.15", "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", - "postcss": "8.4.31", + "postcss": "8.5.10", "styled-jsx": "5.1.6" }, "peerDependencies": { diff --git a/packages/next/src/compiled/cssnano-simple/index.js b/packages/next/src/compiled/cssnano-simple/index.js index affe6050db44..35fe4f2f5027 100644 --- a/packages/next/src/compiled/cssnano-simple/index.js +++ b/packages/next/src/compiled/cssnano-simple/index.js @@ -1,5 +1,5 @@ (()=>{var l={6615:(l,m,v)=>{"use strict";Object.defineProperty(m,"__esModule",{value:true});m.getBrowserScope=m.setBrowserScope=m.getLatestStableBrowsers=m.find=m.isSupported=m.getSupport=m.features=undefined;var y=v(4953);var w=_interopRequireDefault(y);var _=v(4907);var k=_interopRequireDefault(_);var S=v(9613);var C=v(4532);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}var E=Object.keys(S.features);var O=void 0;function setBrowserScope(l){O=(0,C.cleanBrowsersList)(l)}function getBrowserScope(){return O}var P=(0,w.default)(C.parseCaniuseData,(function(l,m){return l.title+m}));function getSupport(l){var m=void 0;try{m=(0,S.feature)(S.features[l])}catch(m){var v=find(l);if(v.length===1)return getSupport(v[0]);throw new ReferenceError("Please provide a proper feature name. Cannot find "+l)}return P(m,O)}function isSupported(l,m){var v=void 0;try{v=(0,S.feature)(S.features[l])}catch(m){var y=find(l);if(y.length===1){v=S.features[y[0]]}else{throw new ReferenceError("Please provide a proper feature name. Cannot find "+l)}}return(0,k.default)(m,{ignoreUnknownVersions:true}).map((function(l){return l.split(" ")})).every((function(l){return v.stats[l[0]]&&v.stats[l[0]][l[1]]==="y"}))}function find(l){if(typeof l!=="string"){throw new TypeError("The `query` parameter should be a string.")}if(~E.indexOf(l)){return l}return E.filter((function(m){return(0,C.contains)(m,l)}))}function getLatestStableBrowsers(){return(0,k.default)("last 1 version")}setBrowserScope();m.features=E;m.getSupport=getSupport;m.isSupported=isSupported;m.find=find;m.getLatestStableBrowsers=getLatestStableBrowsers;m.setBrowserScope=setBrowserScope;m.getBrowserScope=getBrowserScope},4532:(l,m,v)=>{"use strict";Object.defineProperty(m,"__esModule",{value:true});m.contains=contains;m.parseCaniuseData=parseCaniuseData;m.cleanBrowsersList=cleanBrowsersList;var y=v(2583);var w=_interopRequireDefault(y);var _=v(4907);var k=_interopRequireDefault(_);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function contains(l,m){return!!~l.indexOf(m)}function parseCaniuseData(l,m){var v={};var y;var w;m.forEach((function(m){v[m]={};for(var _ in l.stats[m]){y=l.stats[m][_].replace(/#\d+/,"").trim().split(" ");_=parseFloat(_.split("-")[0]);if(isNaN(_))continue;for(var k=0;kv[m][w]){v[m][w]=_}}}}}));return v}function cleanBrowsersList(l){return(0,w.default)((0,k.default)(l).map((function(l){return l.split(" ")[0]})))}},3251:(l,m)=>{Object.defineProperty(m,"__esModule",{value:!0});var v={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(l){return"string"==typeof l?l.length>0:"number"==typeof l},n=function(l,m,v){return void 0===m&&(m=0),void 0===v&&(v=Math.pow(10,m)),Math.round(v*l)/v+0},e=function(l,m,v){return void 0===m&&(m=0),void 0===v&&(v=1),l>v?v:l>m?l:m},u=function(l){return(l=isFinite(l)?l%360:0)>0?l:l+360},o=function(l){return{r:e(l.r,0,255),g:e(l.g,0,255),b:e(l.b,0,255),a:e(l.a)}},a=function(l){return{r:n(l.r),g:n(l.g),b:n(l.b),a:n(l.a,3)}},y=/^#([0-9a-f]{3,8})$/i,i=function(l){var m=l.toString(16);return m.length<2?"0"+m:m},h=function(l){var m=l.r,v=l.g,y=l.b,w=l.a,_=Math.max(m,v,y),k=_-Math.min(m,v,y),S=k?_===m?(v-y)/k:_===v?2+(y-m)/k:4+(m-v)/k:0;return{h:60*(S<0?S+6:S),s:_?k/_*100:0,v:_/255*100,a:w}},b=function(l){var m=l.h,v=l.s,y=l.v,w=l.a;m=m/360*6,v/=100,y/=100;var _=Math.floor(m),k=y*(1-v),S=y*(1-(m-_)*v),C=y*(1-(1-m+_)*v),E=_%6;return{r:255*[y,S,k,k,C,y][E],g:255*[C,y,y,S,k,k][E],b:255*[k,k,C,y,y,S][E],a:w}},d=function(l){return{h:u(l.h),s:e(l.s,0,100),l:e(l.l,0,100),a:e(l.a)}},g=function(l){return{h:n(l.h),s:n(l.s),l:n(l.l),a:n(l.a,3)}},f=function(l){return b((v=(m=l).s,{h:m.h,s:(v*=((y=m.l)<50?y:100-y)/100)>0?2*v/(y+v)*100:0,v:y+v,a:m.a}));var m,v,y},p=function(l){return{h:(m=h(l)).h,s:(w=(200-(v=m.s))*(y=m.v)/100)>0&&w<200?v*y/100/(w<=100?w:200-w)*100:0,l:w/2,a:m.a};var m,v,y,w},w=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,k=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C={string:[[function(l){var m=y.exec(l);return m?(l=m[1]).length<=4?{r:parseInt(l[0]+l[0],16),g:parseInt(l[1]+l[1],16),b:parseInt(l[2]+l[2],16),a:4===l.length?n(parseInt(l[3]+l[3],16)/255,2):1}:6===l.length||8===l.length?{r:parseInt(l.substr(0,2),16),g:parseInt(l.substr(2,2),16),b:parseInt(l.substr(4,2),16),a:8===l.length?n(parseInt(l.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(l){var m=k.exec(l)||S.exec(l);return m?m[2]!==m[4]||m[4]!==m[6]?null:o({r:Number(m[1])/(m[2]?100/255:1),g:Number(m[3])/(m[4]?100/255:1),b:Number(m[5])/(m[6]?100/255:1),a:void 0===m[7]?1:Number(m[7])/(m[8]?100:1)}):null},"rgb"],[function(l){var m=w.exec(l)||_.exec(l);if(!m)return null;var y,k,S=d({h:(y=m[1],k=m[2],void 0===k&&(k="deg"),Number(y)*(v[k]||1)),s:Number(m[3]),l:Number(m[4]),a:void 0===m[5]?1:Number(m[5])/(m[6]?100:1)});return f(S)},"hsl"]],object:[[function(l){var m=l.r,v=l.g,y=l.b,w=l.a,_=void 0===w?1:w;return t(m)&&t(v)&&t(y)?o({r:Number(m),g:Number(v),b:Number(y),a:Number(_)}):null},"rgb"],[function(l){var m=l.h,v=l.s,y=l.l,w=l.a,_=void 0===w?1:w;if(!t(m)||!t(v)||!t(y))return null;var k=d({h:Number(m),s:Number(v),l:Number(y),a:Number(_)});return f(k)},"hsl"],[function(l){var m=l.h,v=l.s,y=l.v,w=l.a,_=void 0===w?1:w;if(!t(m)||!t(v)||!t(y))return null;var k=function(l){return{h:u(l.h),s:e(l.s,0,100),v:e(l.v,0,100),a:e(l.a)}}({h:Number(m),s:Number(v),v:Number(y),a:Number(_)});return b(k)},"hsv"]]},N=function(l,m){for(var v=0;v=.5},r.prototype.toHex=function(){return l=a(this.rgba),m=l.r,v=l.g,y=l.b,_=(w=l.a)<1?i(n(255*w)):"","#"+i(m)+i(v)+i(y)+_;var l,m,v,y,w,_},r.prototype.toRgb=function(){return a(this.rgba)},r.prototype.toRgbString=function(){return l=a(this.rgba),m=l.r,v=l.g,y=l.b,(w=l.a)<1?"rgba("+m+", "+v+", "+y+", "+w+")":"rgb("+m+", "+v+", "+y+")";var l,m,v,y,w},r.prototype.toHsl=function(){return g(p(this.rgba))},r.prototype.toHslString=function(){return l=g(p(this.rgba)),m=l.h,v=l.s,y=l.l,(w=l.a)<1?"hsla("+m+", "+v+"%, "+y+"%, "+w+")":"hsl("+m+", "+v+"%, "+y+"%)";var l,m,v,y,w},r.prototype.toHsv=function(){return l=h(this.rgba),{h:n(l.h),s:n(l.s),v:n(l.v),a:n(l.a,3)};var l},r.prototype.invert=function(){return j({r:255-(l=this.rgba).r,g:255-l.g,b:255-l.b,a:l.a});var l},r.prototype.saturate=function(l){return void 0===l&&(l=.1),j(M(this.rgba,l))},r.prototype.desaturate=function(l){return void 0===l&&(l=.1),j(M(this.rgba,-l))},r.prototype.grayscale=function(){return j(M(this.rgba,-1))},r.prototype.lighten=function(l){return void 0===l&&(l=.1),j(H(this.rgba,l))},r.prototype.darken=function(l){return void 0===l&&(l=.1),j(H(this.rgba,-l))},r.prototype.rotate=function(l){return void 0===l&&(l=15),this.hue(this.hue()+l)},r.prototype.alpha=function(l){return"number"==typeof l?j({r:(m=this.rgba).r,g:m.g,b:m.b,a:l}):n(this.rgba.a,3);var m},r.prototype.hue=function(l){var m=p(this.rgba);return"number"==typeof l?j({h:l,s:m.s,l:m.l,a:m.a}):n(m.h)},r.prototype.isEqual=function(l){return this.toHex()===j(l).toHex()},r}(),j=function(l){return l instanceof E?l:new E(l)},O=[];m.Colord=E,m.colord=j,m.extend=function(l){l.forEach((function(l){O.indexOf(l)<0&&(l(E,C),O.push(l))}))},m.getFormat=function(l){return x(l)[1]},m.random=function(){return new E({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})}},47:l=>{l.exports=function(l){var r=function(l){var m,v,y,w=l.toHex(),_=l.alpha(),k=w.split(""),S=k[1],C=k[2],E=k[3],O=k[4],P=k[5],L=k[6],T=k[7],D=k[8];if(_>0&&_<1&&(m=parseInt(T+D,16)/255,void 0===(v=2)&&(v=0),void 0===y&&(y=Math.pow(10,v)),Math.round(y*m)/y+0!==_))return null;if(S===C&&E===O&&P===L){if(1===_)return"#"+S+E+P;if(T===D)return"#"+S+E+P+T}return w},n=function(l){return l>0&&l<1?l.toString().replace("0.","."):l};l.prototype.minify=function(l){void 0===l&&(l={});var m=this.toRgb(),v=n(m.r),y=n(m.g),w=n(m.b),_=this.toHsl(),k=n(_.h),S=n(_.s),C=n(_.l),E=n(this.alpha()),O=Object.assign({hex:!0,rgb:!0,hsl:!0},l),P=[];if(O.hex&&(1===E||O.alphaHex)){var L=r(this);L&&P.push(L)}if(O.rgb&&P.push(1===E?"rgb("+v+","+y+","+w+")":"rgba("+v+","+y+","+w+","+E+")"),O.hsl&&P.push(1===E?"hsl("+k+","+S+"%,"+C+"%)":"hsla("+k+","+S+"%,"+C+"%,"+E+")"),O.transparent&&0===v&&0===y&&0===w&&0===E)P.push("transparent");else if(1===E&&O.name&&"function"==typeof this.toName){var T=this.toName();T&&P.push(T)}return function(l){for(var m=l[0],v=1;v{l.exports=function(l,m){var v={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},y={};for(var w in v)y[v[w]]=w;var _={};l.prototype.toName=function(m){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var w,k,S=y[this.toHex()];if(S)return S;if(null==m?void 0:m.closest){var C=this.toRgb(),E=1/0,O="black";if(!_.length)for(var P in v)_[P]=new l(v[P]).toRgb();for(var L in v){var T=(w=C,k=_[L],Math.pow(w.r-k.r,2)+Math.pow(w.g-k.g,2)+Math.pow(w.b-k.b,2));T{"use strict"; -/*! https://mths.be/cssesc v3.0.0 by @mathias */var m={};var v=m.hasOwnProperty;var y=function merge(l,m){if(!l){return m}var y={};for(var w in m){y[w]=v.call(l,w)?l[w]:m[w]}return y};var w=/[ -,\.\/:-@\[-\^`\{-~]/;var _=/[ -,\.\/:-@\[\]\^`\{-~]/;var k=/['"\\]/;var S=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var C=function cssesc(l,m){m=y(m,cssesc.options);if(m.quotes!="single"&&m.quotes!="double"){m.quotes="single"}var v=m.quotes=="double"?'"':"'";var k=m.isIdentifier;var C=l.charAt(0);var E="";var O=0;var P=l.length;while(O126){if(T>=55296&&T<=56319&&O{"use strict"; +/*! https://mths.be/cssesc v3.0.0 by @mathias */var m={};var v=m.hasOwnProperty;var y=function merge(l,m){if(!l){return m}var y={};for(var w in m){y[w]=v.call(l,w)?l[w]:m[w]}return y};var w=/[ -,\.\/:-@\[-\^`\{-~]/;var _=/[ -,\.\/:-@\[\]\^`\{-~]/;var k=/['"\\]/;var S=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var C=function cssesc(l,m){m=y(m,cssesc.options);if(m.quotes!="single"&&m.quotes!="double"){m.quotes="single"}var v=m.quotes=="double"?'"':"'";var k=m.isIdentifier;var C=l.charAt(0);var E="";var O=0;var P=l.length;while(O126){if(T>=55296&&T<=56319&&O{"use strict"; /** * @author Ben Briggs * @license MIT @@ -12,7 +12,7 @@ * output to look different in certain use cases, but not others. These * transforms have been moved from the defaults to other presets, to make * this preset require only minimal configuration. - */const y=v(6680);const w=v(2487);const _=v(3252);const k=v(288);const S=v(8248);const C=v(1367);const E=v(6517);const O=v(9348);const P=v(4868);const L=v(3873);const T=v(5547);const D=v(9434);const R=v(949);const A=v(1927);const q=v(8508);const F=v(7969);const V=v(4277);const $=v(4967);const z=v(8041);const U=v(5505);const W=v(8553);const B=v(6512);const Q=v(8344);const Y=v(3434);const G=v(9255);const J=v(6242);const X=v(710);const Z=v(4675);const{rawCache:K}=v(8402);function configurePlugins(l,m={}){const{overrideBrowserslist:v,stats:y,env:w,path:_}=m;const k={overrideBrowserslist:v,stats:y,env:w,path:_};const S={colormin:{...k},convertValues:{length:false,...k},mergeRules:{...k},minifyParams:{...k},normalizeCharset:{add:false},normalizeUnicode:{...k},reduceInitial:{...k},cssDeclarationSorter:{keepOverrides:true},svgo:{plugins:[{name:"preset-default",params:{overrides:{removeViewBox:false,removeTitle:false}}}]}};return l.map((([l,v])=>{const y=S[v]??{};const w=m[v]??{};return[l,w!==false?{...y,...w}:{exclude:true}]}))}function defaultPreset(l={}){return{plugins:configurePlugins([[w,"discardComments"],[k,"minifyGradients"],[_,"reduceInitial"],[S,"svgo"],[X,"normalizeDisplayValues"],[C,"reduceTransforms"],[P,"colormin"],[Z,"normalizeTimingFunctions"],[O,"calc"],[E,"convertValues"],[L,"orderedValues"],[T,"minifySelectors"],[D,"minifyParams"],[R,"normalizeCharset"],[$,"discardOverridden"],[Q,"normalizeString"],[J,"normalizeUnicode"],[A,"minifyFontValues"],[q,"normalizeUrl"],[z,"normalizeRepeatStyle"],[Y,"normalizePositions"],[G,"normalizeWhitespace"],[F,"mergeLonghand"],[V,"discardDuplicates"],[U,"mergeRules"],[W,"discardEmpty"],[B,"uniqueSelectors"],[y,"cssDeclarationSorter"],[K,"rawCache"]],l)}}l.exports=defaultPreset},289:l=>{"use strict";l.exports=function getArguments(l){const m=[[]];for(const v of l.nodes){if(v.type!=="div"){m[m.length-1].push(v)}else{m.push([])}}return m}},8402:(l,m,v)=>{"use strict";const y=v(2923);const w=v(289);const _=v(5805);l.exports={rawCache:y,getArguments:w,sameParent:_}},2923:l=>{"use strict";function pluginCreator(){return{postcssPlugin:"cssnano-util-raw-cache",OnceExit(l,{result:m}){m.root.rawCache={colon:":",indent:"",beforeDecl:"",beforeRule:"",beforeOpen:"",beforeClose:"",beforeComment:"",after:"",emptyBody:"",commentLeft:"",commentRight:""}}}}pluginCreator.postcss=true;l.exports=pluginCreator},5805:l=>{"use strict";function checkMatch(l,m){if(l.type==="atrule"&&m.type==="atrule"){return l.params===m.params&&l.name.toLowerCase()===m.name.toLowerCase()}return l.type===m.type}function sameParent(l,m){if(!l.parent){return!m.parent}if(!m.parent){return false}if(!checkMatch(l.parent,m.parent)){return false}return sameParent(l.parent,m.parent)}l.exports=sameParent},4953:l=>{var m="Expected a function";var v="__lodash_hash_undefined__";var y="[object Function]",w="[object GeneratorFunction]";var _=/[\\^$.*+?()[\]{}|]/g;var k=/^\[object .+?Constructor\]$/;var S=typeof global=="object"&&global&&global.Object===Object&&global;var C=typeof self=="object"&&self&&self.Object===Object&&self;var E=S||C||Function("return this")();function getValue(l,m){return l==null?undefined:l[m]}function isHostObject(l){var m=false;if(l!=null&&typeof l.toString!="function"){try{m=!!(l+"")}catch(l){}}return m}var O=Array.prototype,P=Function.prototype,L=Object.prototype;var T=E["__core-js_shared__"];var D=function(){var l=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}();var R=P.toString;var A=L.hasOwnProperty;var q=L.toString;var F=RegExp("^"+R.call(A).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var V=O.splice;var $=getNative(E,"Map"),z=getNative(Object,"create");function Hash(l){var m=-1,v=l?l.length:0;this.clear();while(++m-1}function listCacheSet(l,m){var v=this.__data__,y=assocIndexOf(v,l);if(y<0){v.push([l,m])}else{v[y][1]=m}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(l){var m=-1,v=l?l.length:0;this.clear();while(++m{var m=200;var v="__lodash_hash_undefined__";var y=1/0;var w="[object Function]",_="[object GeneratorFunction]";var k=/[\\^$.*+?()[\]{}|]/g;var S=/^\[object .+?Constructor\]$/;var C=typeof global=="object"&&global&&global.Object===Object&&global;var E=typeof self=="object"&&self&&self.Object===Object&&self;var O=C||E||Function("return this")();function arrayIncludes(l,m){var v=l?l.length:0;return!!v&&baseIndexOf(l,m,0)>-1}function arrayIncludesWith(l,m,v){var y=-1,w=l?l.length:0;while(++y-1}function listCacheSet(l,m){var v=this.__data__,y=assocIndexOf(v,l);if(y<0){v.push([l,m])}else{v[y][1]=m}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(l){var m=-1,v=l?l.length:0;this.clear();while(++m=m){var O=v?null:B(l);if(O){return setToArray(O)}S=false;_=cacheHas;E=new SetCache}else{E=v?[]:C}e:while(++w{"use strict";const y=v(4498);function pluginCreator(l){const m=Object.assign({precision:5,preserve:false,warnWhenCannotResolve:false,mediaQueries:false,selectors:false},l);return{postcssPlugin:"postcss-calc",OnceExit(l,{result:v}){l.walk((l=>{const{type:w}=l;if(w==="decl"){y(l,"value",m,v)}if(w==="atrule"&&m.mediaQueries){y(l,"params",m,v)}if(w==="rule"&&m.selectors){y(l,"selector",m,v)}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},3048:l=>{"use strict";const m={px:{px:1,cm:96/2.54,mm:96/25.4,q:96/101.6,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,q:.025,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,q:.25,in:25.4,pt:25.4/72,pc:25.4/6},q:{px:101.6/96,cm:40,mm:4,q:1,in:101.6,pt:101.6/72,pc:101.6/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,q:1/101.6,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,q:72/101.6,in:72,pt:1,pc:12},pc:{px:.0625,cm:6/2.54,mm:6/25.4,q:6/101.6,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:Math.PI*2},turn:{deg:1/360,grad:.0025,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},hz:{hz:1,khz:1e3},khz:{hz:.001,khz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};function convertUnit(l,v,y,w){const _=v.toLowerCase();const k=y.toLowerCase();if(!m[k]){throw new Error("Cannot convert to "+y)}if(!m[k][_]){throw new Error("Cannot convert from "+v+" to "+y)}const S=m[k][_]*l;if(w!==false){w=Math.pow(10,Math.ceil(w)||5);return Math.round(S*w)/w}return S}l.exports=convertUnit},6689:(l,m,v)=>{"use strict";const y=v(3048);function isValueType(l){switch(l.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"SvhValue":case"LvhValue":case"DvhValue":case"VwValue":case"SvwValue":case"LvwValue":case"DvwValue":case"VminValue":case"SvminValue":case"LvminValue":case"DvminValue":case"VmaxValue":case"SvmaxValue":case"LvmaxValue":case"DvmaxValue":case"VbValue":case"SvbValue":case"LvbValue":case"DvbValue":case"ViValue":case"SviValue":case"LviValue":case"DviValue":case"CqwValue":case"CqhValue":case"CqiValue":case"CqbValue":case"CqminValue":case"CqmaxValue":case"PercentageValue":case"Number":return true}return false}function flip(l){return l==="+"?"-":"+"}function isAddSubOperator(l){return l==="+"||l==="-"}function collectAddSubItems(l,m,v,y){if(!isAddSubOperator(l)){throw new Error(`invalid operator ${l}`)}if(isValueType(m)){const w=v.findIndex((l=>l.node.type===m.type));if(w>=0){if(m.value===0){return}const _=v[w].node;const{left:k,right:S}=convertNodesUnits(_,m,y);if(v[w].preOperator==="-"){v[w].preOperator="+";k.value*=-1}if(l==="+"){k.value+=S.value}else{k.value-=S.value}if(k.value>=0){v[w]={node:k,preOperator:"+"}}else{k.value*=-1;v[w]={node:k,preOperator:"-"}}}else{if(m.value>=0){v.push({node:m,preOperator:l})}else{m.value*=-1;v.push({node:m,preOperator:flip(l)})}}}else if(m.type==="MathExpression"){if(isAddSubOperator(m.operator)){collectAddSubItems(l,m.left,v,y);const w=l==="-"?flip(m.operator):m.operator;collectAddSubItems(w,m.right,v,y)}else{const w=reduce(m,y);if(w.type!=="MathExpression"||isAddSubOperator(w.operator)){collectAddSubItems(l,w,v,y)}else{v.push({node:w,preOperator:l})}}}else if(m.type==="ParenthesizedExpression"){collectAddSubItems(l,m.content,v,y)}else{v.push({node:m,preOperator:l})}}function reduceAddSubExpression(l,m){const v=[];collectAddSubItems("+",l,v,m);const y=v.filter((l=>!(isValueType(l.node)&&l.node.value===0)));const w=y[0];if(!w||w.preOperator==="-"&&!isValueType(w.node)){const l=v.find((l=>isValueType(l.node)&&l.node.value===0));if(l){y.unshift(l)}}if(y[0].preOperator==="-"&&isValueType(y[0].node)){y[0].node.value*=-1;y[0].preOperator="+"}let _=y[0].node;for(let l=1;l{"use strict";const m={"*":0,"/":0,"+":1,"-":1};function round(l,m){if(m!==false){const v=Math.pow(10,m);return Math.round(l*v)/v}return l}function stringify(l,v){switch(l.type){case"MathExpression":{const{left:y,right:w,operator:_}=l;let k="";if(y.type==="MathExpression"&&m[_]{"use strict";const y=v(6206);const w=v(2045);const{parser:_}=v(5376);const k=v(6689);const S=v(3080);const C=/((?:-(moz|webkit)-)?calc)/i;function transformValue(l,m,v,y){return w(l).walk((E=>{if(E.type!=="function"||!C.test(E.value)){return}const O=w.stringify(E.nodes);const P=_.parse(O);const L=k(P,m.precision);E.type="word";E.value=S(E.value,L,l,m,v,y);return false})).toString()}function transformSelector(l,m,v,w){return y((l=>{l.walk((l=>{if(l.type==="attribute"&&l.value){l.setValue(transformValue(l.value,m,v,w))}if(l.type==="tag"){l.value=transformValue(l.value,m,v,w)}return}))})).processSync(l)}l.exports=(l,m,v,y)=>{let w=l[m];try{w=m==="selector"?transformSelector(l[m],v,y,l):transformValue(l[m],v,y,l)}catch(m){if(m instanceof Error){y.warn(m.message,{node:l})}else{y.warn("Error",{node:l})}return}if(v.preserve&&l[m]!==w){const v=l.clone();v[m]=w;l.parent.insertBefore(l,v)}else{l[m]=w}}},5376:(l,m)=>{var v=function(){function JisonParserError(l,m){Object.defineProperty(this,"name",{enumerable:false,writable:false,value:"JisonParserError"});if(l==null)l="???";Object.defineProperty(this,"message",{enumerable:false,writable:true,value:l});this.hash=m;var v;if(m&&m.exception instanceof Error){var y=m.exception;this.message=y.message||l;v=y.stack}if(!v){if(Error.hasOwnProperty("captureStackTrace")){Error.captureStackTrace(this,this.constructor)}else{v=new Error(l).stack}}if(v){Object.defineProperty(this,"stack",{enumerable:false,writable:false,value:v})}}if(typeof Object.setPrototypeOf==="function"){Object.setPrototypeOf(JisonParserError.prototype,Error.prototype)}else{JisonParserError.prototype=Object.create(Error.prototype)}JisonParserError.prototype.constructor=JisonParserError;JisonParserError.prototype.name="JisonParserError";function bp(l){var m=[];var v=l.pop;var y=l.rule;for(var w=0,_=v.length;w<_;w++){m.push([v[w],y[w]])}return m}function bda(l){var m={};var v=l.idx;var y=l.goto;for(var w=0,_=v.length;w<_;w++){var k=v[w];m[k]=y[w]}return m}function bt(l){var m=[];var v=l.len;var y=l.symbol;var w=l.type;var _=l.state;var k=l.mode;var S=l.goto;for(var C=0,E=v.length;C{const y=S[v]??{};const w=m[v]??{};return[l,w!==false?{...y,...w}:{exclude:true}]}))}function defaultPreset(l={}){return{plugins:configurePlugins([[w,"discardComments"],[k,"minifyGradients"],[_,"reduceInitial"],[S,"svgo"],[X,"normalizeDisplayValues"],[C,"reduceTransforms"],[P,"colormin"],[Z,"normalizeTimingFunctions"],[O,"calc"],[E,"convertValues"],[L,"orderedValues"],[T,"minifySelectors"],[D,"minifyParams"],[R,"normalizeCharset"],[$,"discardOverridden"],[Q,"normalizeString"],[J,"normalizeUnicode"],[A,"minifyFontValues"],[q,"normalizeUrl"],[z,"normalizeRepeatStyle"],[Y,"normalizePositions"],[G,"normalizeWhitespace"],[F,"mergeLonghand"],[V,"discardDuplicates"],[U,"mergeRules"],[W,"discardEmpty"],[B,"uniqueSelectors"],[y,"cssDeclarationSorter"],[K,"rawCache"]],l)}}l.exports=defaultPreset},5925:l=>{"use strict";l.exports=function getArguments(l){const m=[[]];for(const v of l.nodes){if(v.type!=="div"){m[m.length-1].push(v)}else{m.push([])}}return m}},2330:(l,m,v)=>{"use strict";const y=v(5846);const w=v(5925);const _=v(8705);l.exports={rawCache:y,getArguments:w,sameParent:_}},5846:l=>{"use strict";function pluginCreator(){return{postcssPlugin:"cssnano-util-raw-cache",OnceExit(l,{result:m}){m.root.rawCache={colon:":",indent:"",beforeDecl:"",beforeRule:"",beforeOpen:"",beforeClose:"",beforeComment:"",after:"",emptyBody:"",commentLeft:"",commentRight:""}}}}pluginCreator.postcss=true;l.exports=pluginCreator},8705:l=>{"use strict";function checkMatch(l,m){if(l.type==="atrule"&&m.type==="atrule"){return l.params===m.params&&l.name.toLowerCase()===m.name.toLowerCase()}return l.type===m.type}function sameParent(l,m){if(!l.parent){return!m.parent}if(!m.parent){return false}if(!checkMatch(l.parent,m.parent)){return false}return sameParent(l.parent,m.parent)}l.exports=sameParent},4953:l=>{var m="Expected a function";var v="__lodash_hash_undefined__";var y="[object Function]",w="[object GeneratorFunction]";var _=/[\\^$.*+?()[\]{}|]/g;var k=/^\[object .+?Constructor\]$/;var S=typeof global=="object"&&global&&global.Object===Object&&global;var C=typeof self=="object"&&self&&self.Object===Object&&self;var E=S||C||Function("return this")();function getValue(l,m){return l==null?undefined:l[m]}function isHostObject(l){var m=false;if(l!=null&&typeof l.toString!="function"){try{m=!!(l+"")}catch(l){}}return m}var O=Array.prototype,P=Function.prototype,L=Object.prototype;var T=E["__core-js_shared__"];var D=function(){var l=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}();var R=P.toString;var A=L.hasOwnProperty;var q=L.toString;var F=RegExp("^"+R.call(A).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var V=O.splice;var $=getNative(E,"Map"),z=getNative(Object,"create");function Hash(l){var m=-1,v=l?l.length:0;this.clear();while(++m-1}function listCacheSet(l,m){var v=this.__data__,y=assocIndexOf(v,l);if(y<0){v.push([l,m])}else{v[y][1]=m}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(l){var m=-1,v=l?l.length:0;this.clear();while(++m{var m=200;var v="__lodash_hash_undefined__";var y=1/0;var w="[object Function]",_="[object GeneratorFunction]";var k=/[\\^$.*+?()[\]{}|]/g;var S=/^\[object .+?Constructor\]$/;var C=typeof global=="object"&&global&&global.Object===Object&&global;var E=typeof self=="object"&&self&&self.Object===Object&&self;var O=C||E||Function("return this")();function arrayIncludes(l,m){var v=l?l.length:0;return!!v&&baseIndexOf(l,m,0)>-1}function arrayIncludesWith(l,m,v){var y=-1,w=l?l.length:0;while(++y-1}function listCacheSet(l,m){var v=this.__data__,y=assocIndexOf(v,l);if(y<0){v.push([l,m])}else{v[y][1]=m}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(l){var m=-1,v=l?l.length:0;this.clear();while(++m=m){var O=v?null:B(l);if(O){return setToArray(O)}S=false;_=cacheHas;E=new SetCache}else{E=v?[]:C}e:while(++w{"use strict";const y=v(3485);function pluginCreator(l){const m=Object.assign({precision:5,preserve:false,warnWhenCannotResolve:false,mediaQueries:false,selectors:false},l);return{postcssPlugin:"postcss-calc",OnceExit(l,{result:v}){l.walk((l=>{const{type:w}=l;if(w==="decl"){y(l,"value",m,v)}if(w==="atrule"&&m.mediaQueries){y(l,"params",m,v)}if(w==="rule"&&m.selectors){y(l,"selector",m,v)}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},1366:l=>{"use strict";const m={px:{px:1,cm:96/2.54,mm:96/25.4,q:96/101.6,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,q:.025,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,q:.25,in:25.4,pt:25.4/72,pc:25.4/6},q:{px:101.6/96,cm:40,mm:4,q:1,in:101.6,pt:101.6/72,pc:101.6/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,q:1/101.6,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,q:72/101.6,in:72,pt:1,pc:12},pc:{px:.0625,cm:6/2.54,mm:6/25.4,q:6/101.6,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:Math.PI*2},turn:{deg:1/360,grad:.0025,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},hz:{hz:1,khz:1e3},khz:{hz:.001,khz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};function convertUnit(l,v,y,w){const _=v.toLowerCase();const k=y.toLowerCase();if(!m[k]){throw new Error("Cannot convert to "+y)}if(!m[k][_]){throw new Error("Cannot convert from "+v+" to "+y)}const S=m[k][_]*l;if(w!==false){w=Math.pow(10,Math.ceil(w)||5);return Math.round(S*w)/w}return S}l.exports=convertUnit},2327:(l,m,v)=>{"use strict";const y=v(1366);function isValueType(l){switch(l.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"SvhValue":case"LvhValue":case"DvhValue":case"VwValue":case"SvwValue":case"LvwValue":case"DvwValue":case"VminValue":case"SvminValue":case"LvminValue":case"DvminValue":case"VmaxValue":case"SvmaxValue":case"LvmaxValue":case"DvmaxValue":case"VbValue":case"SvbValue":case"LvbValue":case"DvbValue":case"ViValue":case"SviValue":case"LviValue":case"DviValue":case"CqwValue":case"CqhValue":case"CqiValue":case"CqbValue":case"CqminValue":case"CqmaxValue":case"PercentageValue":case"Number":return true}return false}function flip(l){return l==="+"?"-":"+"}function isAddSubOperator(l){return l==="+"||l==="-"}function collectAddSubItems(l,m,v,y){if(!isAddSubOperator(l)){throw new Error(`invalid operator ${l}`)}if(isValueType(m)){const w=v.findIndex((l=>l.node.type===m.type));if(w>=0){if(m.value===0){return}const _=v[w].node;const{left:k,right:S}=convertNodesUnits(_,m,y);if(v[w].preOperator==="-"){v[w].preOperator="+";k.value*=-1}if(l==="+"){k.value+=S.value}else{k.value-=S.value}if(k.value>=0){v[w]={node:k,preOperator:"+"}}else{k.value*=-1;v[w]={node:k,preOperator:"-"}}}else{if(m.value>=0){v.push({node:m,preOperator:l})}else{m.value*=-1;v.push({node:m,preOperator:flip(l)})}}}else if(m.type==="MathExpression"){if(isAddSubOperator(m.operator)){collectAddSubItems(l,m.left,v,y);const w=l==="-"?flip(m.operator):m.operator;collectAddSubItems(w,m.right,v,y)}else{const w=reduce(m,y);if(w.type!=="MathExpression"||isAddSubOperator(w.operator)){collectAddSubItems(l,w,v,y)}else{v.push({node:w,preOperator:l})}}}else if(m.type==="ParenthesizedExpression"){collectAddSubItems(l,m.content,v,y)}else{v.push({node:m,preOperator:l})}}function reduceAddSubExpression(l,m){const v=[];collectAddSubItems("+",l,v,m);const y=v.filter((l=>!(isValueType(l.node)&&l.node.value===0)));const w=y[0];if(!w||w.preOperator==="-"&&!isValueType(w.node)){const l=v.find((l=>isValueType(l.node)&&l.node.value===0));if(l){y.unshift(l)}}if(y[0].preOperator==="-"&&isValueType(y[0].node)){y[0].node.value*=-1;y[0].preOperator="+"}let _=y[0].node;for(let l=1;l{"use strict";const m={"*":0,"/":0,"+":1,"-":1};function round(l,m){if(m!==false){const v=Math.pow(10,m);return Math.round(l*v)/v}return l}function stringify(l,v){switch(l.type){case"MathExpression":{const{left:y,right:w,operator:_}=l;let k="";if(y.type==="MathExpression"&&m[_]{"use strict";const y=v(6206);const w=v(2045);const{parser:_}=v(5882);const k=v(2327);const S=v(7379);const C=/((?:-(moz|webkit)-)?calc)/i;function transformValue(l,m,v,y){return w(l).walk((E=>{if(E.type!=="function"||!C.test(E.value)){return}const O=w.stringify(E.nodes);const P=_.parse(O);const L=k(P,m.precision);E.type="word";E.value=S(E.value,L,l,m,v,y);return false})).toString()}function transformSelector(l,m,v,w){return y((l=>{l.walk((l=>{if(l.type==="attribute"&&l.value){l.setValue(transformValue(l.value,m,v,w))}if(l.type==="tag"){l.value=transformValue(l.value,m,v,w)}return}))})).processSync(l)}l.exports=(l,m,v,y)=>{let w=l[m];try{w=m==="selector"?transformSelector(l[m],v,y,l):transformValue(l[m],v,y,l)}catch(m){if(m instanceof Error){y.warn(m.message,{node:l})}else{y.warn("Error",{node:l})}return}if(v.preserve&&l[m]!==w){const v=l.clone();v[m]=w;l.parent.insertBefore(l,v)}else{l[m]=w}}},5882:(l,m)=>{var v=function(){function JisonParserError(l,m){Object.defineProperty(this,"name",{enumerable:false,writable:false,value:"JisonParserError"});if(l==null)l="???";Object.defineProperty(this,"message",{enumerable:false,writable:true,value:l});this.hash=m;var v;if(m&&m.exception instanceof Error){var y=m.exception;this.message=y.message||l;v=y.stack}if(!v){if(Error.hasOwnProperty("captureStackTrace")){Error.captureStackTrace(this,this.constructor)}else{v=new Error(l).stack}}if(v){Object.defineProperty(this,"stack",{enumerable:false,writable:false,value:v})}}if(typeof Object.setPrototypeOf==="function"){Object.setPrototypeOf(JisonParserError.prototype,Error.prototype)}else{JisonParserError.prototype=Object.create(Error.prototype)}JisonParserError.prototype.constructor=JisonParserError;JisonParserError.prototype.name="JisonParserError";function bp(l){var m=[];var v=l.pop;var y=l.rule;for(var w=0,_=v.length;w<_;w++){m.push([v[w],y[w]])}return m}function bda(l){var m={};var v=l.idx;var y=l.goto;for(var w=0,_=v.length;w<_;w++){var k=v[w];m[k]=y[w]}return m}function bt(l){var m=[];var v=l.len;var y=l.symbol;var w=l.type;var _=l.state;var k=l.mode;var S=l.goto;for(var C=0,E=v.length;C{"use strict";const{dirname:y}=v(1017);const w=v(4907);const{isSupported:_}=v(6615);const k=v(2045);const S=v(7685);function walk(l,m){l.nodes.forEach(((v,y)=>{const w=m(v,y,l);if(v.type==="function"&&w!==false){walk(v,m)}}))}const C=new Set(["ie 8","ie 9"]);const E=new Set(["calc","min","max","clamp"]);function isMathFunctionNode(l){if(l.type!=="function"){return false}return E.has(l.value.toLowerCase())}function transform(l,m){const v=k(l);walk(v,((l,v,y)=>{if(l.type==="function"){if(/^(rgb|hsl)a?$/i.test(l.value)){const{value:w}=l;l.value=S(k.stringify(l),m);l.type="word";const _=y.nodes[v+1];if(l.value!==w&&_&&(_.type==="word"||_.type==="function")){y.nodes.splice(v+1,0,{type:"space",value:" "})}}else if(isMathFunctionNode(l)){return false}}else if(l.type==="word"){l.value=S(l.value,m)}}));return v.toString()}function addPluginDefaults(l,m){const v={transparent:m.some((l=>C.has(l)))===false,alphaHex:_("css-rrggbbaa",m),name:true};return{...v,...l}}function pluginCreator(l={}){return{postcssPlugin:"postcss-colormin",prepare(m){const{stats:v,env:_,from:k,file:S}=m.opts||{};const C=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||S||__filename),env:l.env||_});const E=new Map;const O=addPluginDefaults(l,C);return{OnceExit(l){l.walkDecls((l=>{if(/^(composes|font|src$|filter|-webkit-tap-highlight-color)/i.test(l.prop)){return}const m=l.value;if(!m){return}const v=JSON.stringify({value:m,options:O,browsers:C});if(E.has(v)){l.value=E.get(v);return}const y=transform(m,O);l.value=y;E.set(v,y)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},7685:(l,m,v)=>{"use strict";const{colord:y,extend:w}=v(3251);const _=v(2338);const k=v(47);w([_,k]);l.exports=function minifyColor(l,m={}){const v=y(l);if(v.isValid()){const y=v.minify(m);return y.length{"use strict";const{dirname:y}=v(1017);const w=v(2045);const _=v(4907);const k=v(572);const S=new Set(["em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","q","in","pt","pc","px"]);const C=new Set(["descent-override","ascent-override","font-stretch","size-adjust","line-gap-override"]);const E=new Set(["stroke-dashoffset","stroke-width","line-height"]);const O=new Set(["max-height","height","min-width"]);const P=new Set(["calc","color-mix","min","max","clamp","hsl","hsla","hwb"]);const L=new Set(["border-image-width","stroke-dasharray"]);function stripLeadingDot(l){if(l.charCodeAt(0)===".".charCodeAt(0)){return l.slice(1)}else{return l}}function parseWord(l,m,v){const y=w.unit(l.value);if(y){const w=Number(y.number);const _=stripLeadingDot(y.unit);if(w===0){l.value=0+(v||!S.has(_.toLowerCase())&&_!=="%"?_:"");if(l.value==="0ms"){l.value="0s"}}else{l.value=k(w,_,m);if(typeof m.precision==="number"&&_.toLowerCase()==="px"&&y.number.includes(".")){const v=Math.pow(10,m.precision);l.value=Math.round(parseFloat(l.value)*v)/v+_}}}}function clampOpacity(l){const m=w.unit(l.value);if(!m){return}let v=Number(m.number);if(v>1){l.value=m.unit==="%"?v+m.unit:1+m.unit}else if(v<0){l.value=0+m.unit}}function shouldKeepZeroUnit(l,m){const{parent:v}=l;const y=l.prop.toLowerCase();return l.value.includes("%")&&O.has(y)&&m.includes("ie 11")||L.has(y)&&v&&v.parent&&v.parent.type==="atrule"&&v.parent.name.toLowerCase()==="keyframes"||y==="initial-value"&&v&&v.type==="atrule"&&v.name==="property"&&v.nodes!==undefined&&v.nodes.some((l=>l.type==="decl"&&l.prop.toLowerCase()==="syntax"&&l.value==="''"))||E.has(y)}function transform(l,m,v){const y=v.prop.toLowerCase();if(y.includes("flex")||y.indexOf("--")===0||C.has(y)){return}v.value=w(v.value).walk((_=>{const k=_.value.toLowerCase();if(_.type==="word"){parseWord(_,l,shouldKeepZeroUnit(v,m));if(y==="opacity"||y==="shape-image-threshold"){clampOpacity(_)}}else if(_.type==="function"){if(P.has(k)){w.walk(_.nodes,(m=>{if(m.type==="word"){parseWord(m,l,true)}}));return false}if(k==="url"){return false}}})).toString()}const T="postcss-convert-values";function pluginCreator(l={precision:false}){return{postcssPlugin:T,prepare(m){const{stats:v,env:w,from:k,file:S}=m.opts||{};const C=_(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||S||__filename),env:l.env||w});return{OnceExit(m){m.walkDecls((m=>transform(l,C,m)))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},572:l=>{"use strict";const m=new Map([["in",96],["px",1],["pt",4/3],["pc",16]]);const v=new Map([["s",1e3],["ms",1]]);const y=new Map([["turn",360],["deg",1]]);function dropLeadingZero(l){const m=String(l);if(l%1){if(m[0]==="0"){return m.slice(1)}if(m[0]==="-"&&m[1]==="0"){return"-"+m.slice(2)}}return m}function transform(l,m,v){let y=[...v.keys()].filter((l=>m!==l));const w=l*v.get(m);return y.map((l=>dropLeadingZero(w/v.get(l))+l)).reduce(((l,m)=>l.length{"use strict";const y=v(6973);const w=v(9136);const _=v(6206);function pluginCreator(l={}){const m=new y(l);const v=new Map;const k=new Map;function matchesComments(l){if(v.has(l)){return v.get(l)}const m=w(l).filter((([l])=>l));v.set(l,m);return m}function replaceComments(l,v,y=" "){const _=l+"@|@"+y;if(k.has(_)){return k.get(_)}const S=w(l).reduce(((v,[w,_,k])=>{const S=l.slice(_,k);if(!w){return v+S}if(m.canRemove(S)){return v+y}return`${v}/*${S}*/`}),"");const C=v(S).join(" ");k.set(_,C);return C}function replaceCommentsInSelector(l,v){const y=l+"@|@";if(k.has(y)){return k.get(y)}const w=_((l=>{l.walk((l=>{if(l.type==="comment"){const v=l.value.slice(2,-2);if(m.canRemove(v)){l.remove()}}const y=replaceComments(l.rawSpaceAfter,v,"");const w=replaceComments(l.rawSpaceBefore,v,"");if(y!==l.rawSpaceAfter.trim()){l.rawSpaceAfter=y}if(w!==l.rawSpaceBefore.trim()){l.rawSpaceBefore=w}}))})).processSync(l);const S=v(w).join(" ");k.set(y,S);return S}return{postcssPlugin:"postcss-discard-comments",OnceExit(l,{list:v}){l.walk((l=>{if(l.type==="comment"&&m.canRemove(l.text)){l.remove();return}if(typeof l.raws.between==="string"){l.raws.between=replaceComments(l.raws.between,v.space)}if(l.type==="decl"){if(l.raws.value&&l.raws.value.raw){if(l.raws.value.value===l.value){l.value=replaceComments(l.raws.value.raw,v.space)}else{l.value=replaceComments(l.value,v.space)}l.raws.value=null}if(l.raws.important){l.raws.important=replaceComments(l.raws.important,v.space);const m=matchesComments(l.raws.important);l.raws.important=m.length?l.raws.important:"!important"}else{l.value=replaceComments(l.value,v.space)}return}if(l.type==="rule"){if(l.raws.selector&&l.raws.selector.raw){l.raws.selector.raw=replaceCommentsInSelector(l.raws.selector.raw,v.space)}else if(l.selector&&l.selector.includes("/*")){l.selector=replaceCommentsInSelector(l.selector,v.space)}return}if(l.type==="atrule"){if(l.raws.afterName){const m=replaceComments(l.raws.afterName,v.space);if(!m.length){l.raws.afterName=m+" "}else{l.raws.afterName=" "+m+" "}}if(l.raws.params&&l.raws.params.raw){l.raws.params.raw=replaceComments(l.raws.params.raw,v.space)}else if(l.params&&l.params.includes("/*")){l.params=replaceComments(l.params,v.space)}}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},9136:l=>{"use strict";l.exports=function commentParser(l){const m=[];const v=l.length;let y=0;let w;while(y{"use strict";function CommentRemover(l){this.options=l}CommentRemover.prototype.canRemove=function(l){const m=this.options.remove;if(m){return m(l)}else{const m=l.indexOf("!")===0;if(!m){return true}if(this.options.removeAll||this._hasFirst){return true}else if(this.options.removeAllButFirst&&!this._hasFirst){this._hasFirst=true;return false}}};l.exports=CommentRemover},4277:l=>{"use strict";function trimValue(l){return l?l.trim():l}function empty(l){return!l.nodes.filter((l=>l.type!=="comment")).length}function equals(l,m){const v=l;const y=m;if(v.type!==y.type){return false}if(v.important!==y.important){return false}if(v.raws&&!y.raws||!v.raws&&y.raws){return false}switch(v.type){case"rule":if(v.selector!==y.selector){return false}break;case"atrule":if(v.name!==y.name||v.params!==y.params){return false}if(v.raws&&trimValue(v.raws.before)!==trimValue(y.raws.before)){return false}if(v.raws&&trimValue(v.raws.afterName)!==trimValue(y.raws.afterName)){return false}break;case"decl":if(v.prop!==y.prop||v.value!==y.value){return false}if(v.raws&&trimValue(v.raws.before)!==trimValue(y.raws.before)){return false}break}if(v.nodes&&y.nodes){if(v.nodes.length!==y.nodes.length){return false}for(let l=0;l=0){const y=m[v--];if(y&&y.type==="rule"&&y.selector===l.selector){l.each((l=>{if(l.type==="decl"){dedupeNode(l,y.nodes)}}));if(empty(y)){y.remove()}}}}function dedupeNode(l,m){let v=m.includes(l)?m.indexOf(l)-1:m.length-1;while(v>=0){const y=m[v--];if(y&&equals(y,l)){y.remove()}}}function dedupe(l){const{nodes:m}=l;if(!m){return}let v=m.length-1;while(v>=0){let l=m[v--];if(!l||!l.parent){continue}dedupe(l);if(l.type==="rule"){dedupeRule(l,m)}else if(l.type==="atrule"&&l.name!=="layer"||l.type==="decl"){dedupeNode(l,m)}}}function pluginCreator(){return{postcssPlugin:"postcss-discard-duplicates",OnceExit(l){dedupe(l)}}}pluginCreator.postcss=true;l.exports=pluginCreator},8553:l=>{"use strict";const m="postcss-discard-empty";function discardAndReport(l,v){function discardEmpty(l){const{type:y}=l;const w=l.nodes;if(w){l.each(discardEmpty)}if(y==="decl"&&!l.value&&!l.prop.startsWith("--")||y==="rule"&&!l.selector||w&&!w.length&&!(y==="atrule"&&l.name==="layer")||y==="atrule"&&(!w&&!l.params||!l.params&&!w.length)){l.remove();v.messages.push({type:"removal",plugin:m,node:l})}}l.each(discardEmpty)}function pluginCreator(){return{postcssPlugin:m,OnceExit(l,{result:m}){discardAndReport(l,m)}}}pluginCreator.postcss=true;l.exports=pluginCreator},4967:l=>{"use strict";const m=new Set(["keyframes","counter-style"]);const v=new Set(["media","supports"]);function vendorUnprefixed(l){return l.replace(/^-\w+-/,"")}function isOverridable(l){return m.has(vendorUnprefixed(l.toLowerCase()))}function isScope(l){return v.has(vendorUnprefixed(l.toLowerCase()))}function getScope(l){let m=l.parent;const v=[l.name.toLowerCase(),l.params];while(m){if(m.type==="atrule"&&isScope(m.name)){v.unshift(m.name+" "+m.params)}m=m.parent}return v.join("|")}function pluginCreator(){return{postcssPlugin:"postcss-discard-overridden",prepare(){const l=new Map;const m=[];return{OnceExit(v){v.walkAtRules((v=>{if(isOverridable(v.name)){const y=getScope(v);l.set(y,v);m.push({node:v,scope:y})}}));m.forEach((m=>{if(l.get(m.scope)!==m.node){m.node.remove()}}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},7969:(l,m,v)=>{"use strict";const y=v(5162);function pluginCreator(){return{postcssPlugin:"postcss-merge-longhand",OnceExit(l){l.walkRules((l=>{y.forEach((m=>{m.explode(l);m.merge(l)}))}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},623:(l,m,v)=>{"use strict";const y=v(7443);const w=new Set(["inherit","initial","unset","revert"]);l.exports=(l,m=true)=>{if(!l.value||m&&y(l)||l.value&&w.has(l.value.toLowerCase())){return false}return true}},5089:(l,m,v)=>{"use strict";const y=v(7443);const important=l=>l.important;const unimportant=l=>!l.important;const w=["inherit","initial","unset","revert"];l.exports=(l,m=true)=>{const v=new Set(l.map((l=>l.value.toLowerCase())));if(v.size>1){for(const l of w){if(v.has(l)){return false}}}if(m&&l.some(y)&&!l.every(y)){return false}return l.every(unimportant)||l.every(important)}},8659:l=>{"use strict";l.exports=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"])},8815:(l,m,v)=>{"use strict";const{list:y}=v(977);const w=v(1948);const _=v(935);const k=v(9537);const S=v(2453);const C=v(5357);const E=v(9406);const O=v(7946);const P=v(3318);const L=v(7226);const T=v(9431);const D=v(5089);const R=v(3275);const A=v(7443);const q=v(623);const F=v(8200);const V=v(6671);const{isValidWsc:$}=v(6402);const z=["width","style","color"];const U=["medium","none","currentcolor"];const W=/(hsla|rgba|color|hwb|lab|lch|oklab|oklch)\(/i;function borderProperty(...l){return`border-${l.join("-")}`}function mapBorderProperty(l){return borderProperty(l)}const B=R.map(mapBorderProperty);const Q=z.map(mapBorderProperty);const Y=B.reduce(((l,m)=>l.concat(z.map((l=>`${m}-${l}`)))),[]);const G=[["border"],B.concat(Q),Y];const J=G.reduce(((l,m)=>l.concat(m)));function getLevel(l){for(let m=0;ml!==undefined&&l.search(/var\s*\(\s*--/i)!==-1;function canMergeValues(l){return!l.some(isValueCustomProp)}function getColorValue(l){if(l.prop.substr(-5)==="color"){return l.value}return V(l.value)[2]||U[2]}function diffingProps(l,m){return z.reduce(((v,y,w)=>{if(l[w]===m[w]){return v}return[...v,y]}),[])}function mergeRedundant({values:l,nextValues:m,decl:v,nextDecl:y,index:_}){if(!D([v,y])){return}if(w.detect(v)||w.detect(y)){return}const S=diffingProps(l,m);if(S.length!==1){return}const C=S.pop();const E=z.indexOf(C);const O=`${y.prop}-${C}`;const P=`border-${C}`;let R=k(l[E]);R[_]=m[E];const A=l.filter(((l,m)=>m!==E)).join(" ");const q=L(R);const F=(T(v.value)+y.prop+y.value).length;const V=v.value.length+O.length+T(m[E]).length;const $=A.length+P.length+q.length;if(V<$&&V{if(!q(l,false)){return}if(w.detect(l)){return}const m=l.prop.toLowerCase();if(m==="border"){if($(V(l.value))){B.forEach((m=>{_(l.parent,l,{prop:m})}));l.remove()}}if(B.some((l=>m===l))){let v=V(l.value);if($(v)){z.forEach(((y,w)=>{_(l.parent,l,{prop:`${m}-${y}`,value:v[w]||U[w]})}));l.remove()}}z.some((v=>{if(m!==borderProperty(v)){return false}if(A(l)){l.prop=l.prop.toLowerCase();return false}k(l.value).forEach(((m,y)=>{_(l.parent,l,{prop:borderProperty(R[y],v),value:m})}));return l.remove()}))}))}function merge(l){R.forEach((m=>{const v=borderProperty(m);P(l,z.map((l=>borderProperty(m,l))),((l,m)=>{if(D(l,false)&&!l.some(w.detect)){_(m.parent,m,{prop:v,value:l.map(O).join(" ")});for(const m of l){m.remove()}return true}return false}))}));z.forEach((m=>{const v=borderProperty(m);P(l,R.map((l=>borderProperty(l,m))),((l,m)=>{if(D(l)&&!l.some(w.detect)){_(m.parent,m,{prop:v,value:L(l.map(O).join(" "))});for(const m of l){m.remove()}return true}return false}))}));P(l,B,((l,m)=>{if(l.some(w.detect)){return false}const v=l.map((({value:l})=>l));if(!canMergeValues(v)){return false}const y=v.map((l=>V(l)));if(!y.every($)){return false}z.forEach(((l,v)=>{const w=y.map((l=>l[v]||U[v]));if(canMergeValues(w)){_(m.parent,m,{prop:borderProperty(l),value:L(w)})}else{_(m.parent,m)}}));for(const m of l){m.remove()}return true}));P(l,Q,((m,v)=>{if(m.some(w.detect)){return false}const y=m.map((l=>k(l.value)));const S=[0,1,2,3].map((l=>[y[0][l],y[1][l],y[2][l]].join(" ")));if(!canMergeValues(S)){return false}const[C,E,P]=m;const L=getDistinctShorthands(S);if(isCloseEnough(S)&&D(m,false)){const y=S.indexOf(L[0])!==S.lastIndexOf(L[0]);const w=_(v.parent,v,{prop:"border",value:y?L[0]:L[1]});if(L[1]){const m=y?L[1]:L[0];const _=borderProperty(R[S.indexOf(m)]);l.insertAfter(w,Object.assign(v.clone(),{prop:_,value:m}))}for(const l of m){l.remove()}return true}else if(L.length===1){l.insertBefore(P,Object.assign(v.clone(),{prop:"border",value:[C,E].map(O).join(" ")}));m.filter((l=>l.prop.toLowerCase()!==Q[2])).forEach((l=>l.remove()));return true}return false}));P(l,Q,((m,v)=>{if(m.some(w.detect)){return false}const y=m.map((l=>k(l.value)));const _=[0,1,2,3].map((l=>[y[0][l],y[1][l],y[2][l]].join(" ")));const S=getDistinctShorthands(_);const C="medium none currentcolor";if(S.length>1&&S.length<4&&S.includes(C)){const y=_.filter((l=>l!==C));const w=S.sort(((l,m)=>_.filter((l=>l===m)).length-_.filter((m=>m===l)).length))[0];const k=S.length===2?y[0]:w;l.insertBefore(v,Object.assign(v.clone(),{prop:"border",value:k}));B.forEach(((m,y)=>{if(_[y]!==k){l.insertBefore(v,Object.assign(v.clone(),{prop:m,value:_[y]}))}}));for(const l of m){l.remove()}return true}return false}));P(l,B,((m,v)=>{if(m.some(w.detect)){return false}const y=m.map((l=>{const m=V(l.value);if(!$(m)){return l.value}return m.map(((l,m)=>l||U[m])).join(" ")}));const _=getDistinctShorthands(y);if(isCloseEnough(y)){const w=y.indexOf(_[0])!==y.lastIndexOf(_[0]);l.insertBefore(v,Object.assign(v.clone(),{prop:"border",value:T(w?y[0]:y[1])}));if(_[1]){const m=w?_[1]:_[0];const k=B[y.indexOf(m)];l.insertBefore(v,Object.assign(v.clone(),{prop:k,value:T(m)}))}for(const l of m){l.remove()}return true}return false}));B.forEach((m=>{z.forEach(((v,y)=>{const k=`${m}-${v}`;P(l,[m,k],((l,v)=>{if(v.prop!==m){return false}const S=V(v.value);if(!$(S)){return false}const C=l.filter((l=>l!==v))[0];if(!isValueCustomProp(S[y])||A(C)){return false}const E=S[y];S[y]=C.value;if(D(l,false)&&!l.some(w.detect)){_(v.parent,v,{prop:k,value:E});v.value=T(S);C.remove();return true}return false}))}))}));z.forEach(((m,v)=>{const y=borderProperty(m);P(l,["border",y],((l,m)=>{if(m.prop!=="border"){return false}const k=V(m.value);if(!$(k)){return false}const S=l.filter((l=>l!==m))[0];if(!isValueCustomProp(k[v])||A(S)){return false}const C=k[v];k[v]=S.value;if(D(l,false)&&!l.some(w.detect)){_(m.parent,m,{prop:y,value:C});m.value=T(k);S.remove();return true}return false}))}));let m=C(l,B);while(m.length){const v=m[m.length-1];z.forEach(((k,C)=>{const O=B.filter((l=>l!==v.prop)).map((l=>`${l}-${k}`));let P=l.nodes.slice(0,l.nodes.indexOf(v));const T=F(P,"border");if(T){P=P.slice(P.indexOf(T))}const D=P.filter((l=>l.type==="decl"&&O.includes(l.prop)&&l.important===v.important));const R=E(D,O);if(S(R,...O)&&!R.some(w.detect)){const l=R.map((l=>l?l.value:null));const w=l.filter(Boolean);const S=y.space(v.value)[C];l[B.indexOf(v.prop)]=S;let E=L(l.join(" "));if(w[0]===w[1]&&w[1]===w[2]){E=w[0]}let O=D[D.length-1];if(E===S){O=v;let l=y.space(v.value);l.splice(C,1);v.value=l.join(" ")}_(O.parent,O,{prop:borderProperty(k),value:E});m=m.filter((l=>!R.includes(l)));for(const l of R){l.remove()}}}));m=m.filter((l=>l!==v))}l.walkDecls("border",(l=>{const m=l.next();if(!m||m.type!=="decl"){return false}const v=B.indexOf(m.prop);if(v===-1){return}const y=V(l.value);const w=V(m.value);if(!$(y)||!$(w)){return}const _={values:y,nextValues:w,decl:l,nextDecl:m,index:v};return mergeRedundant(_)}));l.walkDecls(/^border($|-(top|right|bottom|left)$)/i,(m=>{let v=V(m.value);if(!$(v)){return}const y=B.indexOf(m.prop);let w=[...B];w.splice(y,1);z.forEach(((y,k)=>{const S=w.map((l=>`${l}-${y}`));P(l,[m.prop,...S],(l=>{if(!l.includes(m)){return false}const w=l.filter((l=>l!==m));if(w[0].value.toLowerCase()===w[1].value.toLowerCase()&&w[1].value.toLowerCase()===w[2].value.toLowerCase()&&v[k]!==undefined&&w[0].value.toLowerCase()===v[k].toLowerCase()){for(const l of w){l.remove()}_(m.parent,m,{prop:borderProperty(y),value:v[k]});v[k]=null}return false}));const C=v.join(" ");if(C){m.value=C}else{m.remove()}}))}));l.walkDecls(/^border($|-(top|right|bottom|left)$)/i,(l=>{l.value=T(l.value)}));l.walkDecls(/^border-spacing$/i,(l=>{const m=y.space(l.value);if(m.length>1&&m[0]===m[1]){l.value=m.slice(1).join(" ")}}));m=C(l,J);while(m.length){const l=m[m.length-1];const v=l.prop.split("-").pop();const y=m.filter((m=>!w.detect(l)&&!w.detect(m)&&!A(l)&&m!==l&&m.important===l.important&&getLevel(m.prop)>getLevel(l.prop)&&(m.prop.toLowerCase().includes(l.prop)||m.prop.toLowerCase().endsWith(v))));for(const l of y){l.remove()}m=m.filter((l=>!y.includes(l)));let _=m.filter((m=>!w.detect(l)&&!w.detect(m)&&m!==l&&m.important===l.important&&m.prop===l.prop&&!(!A(m)&&A(l))));if(_.length){if(W.test(getColorValue(l))){const l=_.filter((l=>!W.test(getColorValue(l)))).pop();_=_.filter((m=>m!==l))}for(const l of _){l.remove()}}m=m.filter((m=>m!==l&&!_.includes(m)))}}l.exports={explode:explode,merge:merge}},5281:(l,m,v)=>{"use strict";const y=v(1948);const w=v(5089);const _=v(5357);const k=v(7226);const S=v(9537);const C=v(935);const E=v(3318);const O=v(1057);const P=v(3275);const L=v(7443);const T=v(623);l.exports=l=>{const m=P.map((m=>`${l}-${m}`));const cleanup=v=>{let w=_(v,[l].concat(m));while(w.length){const m=w[w.length-1];const v=w.filter((v=>!y.detect(m)&&!y.detect(v)&&v!==m&&v.important===m.important&&m.prop===l&&v.prop!==m.prop));for(const l of v){l.remove()}w=w.filter((l=>!v.includes(l)));let _=w.filter((l=>!y.detect(m)&&!y.detect(l)&&l!==m&&l.important===m.important&&l.prop===m.prop&&!(!L(l)&&L(m))));for(const l of _){l.remove()}w=w.filter((l=>l!==m&&!_.includes(l)))}};const v={explode:v=>{v.walkDecls(new RegExp("^"+l+"$","i"),(l=>{if(!T(l)){return}if(y.detect(l)){return}const v=S(l.value);P.forEach(((y,w)=>{C(l.parent,l,{prop:m[w],value:v[w]})}));l.remove()}))},merge:v=>{E(v,m,((m,v)=>{if(w(m)&&!m.some(y.detect)){C(v.parent,v,{prop:l,value:k(O(...m))});for(const l of m){l.remove()}return true}return false}));cleanup(v)}};return v}},4096:(l,m,v)=>{"use strict";const{list:y}=v(977);const{unit:w}=v(2045);const _=v(1948);const k=v(5089);const S=v(5357);const C=v(7946);const E=v(3318);const O=v(935);const P=v(7443);const L=v(623);const T=["column-width","column-count"];const D="auto";const R="inherit";function normalize(l){if(l[0].toLowerCase()===D){return l[1]}if(l[1].toLowerCase()===D){return l[0]}if(l[0].toLowerCase()===R&&l[1].toLowerCase()===R){return R}return l.join(" ")}function explode(l){l.walkDecls(/^columns$/i,(l=>{if(!L(l)){return}if(_.detect(l)){return}let m=y.space(l.value);if(m.length===1){m.push(D)}m.forEach(((m,v)=>{let y=T[1];const _=w(m);if(m.toLowerCase()===D){y=T[v]}else if(_&&_.unit!==""){y=T[0]}O(l.parent,l,{prop:y,value:m})}));l.remove()}))}function cleanup(l){let m=S(l,["columns"].concat(T));while(m.length){const l=m[m.length-1];const v=m.filter((m=>!_.detect(l)&&!_.detect(m)&&m!==l&&m.important===l.important&&l.prop==="columns"&&m.prop!==l.prop));for(const l of v){l.remove()}m=m.filter((l=>!v.includes(l)));let y=m.filter((m=>!_.detect(l)&&!_.detect(m)&&m!==l&&m.important===l.important&&m.prop===l.prop&&!(!P(m)&&P(l))));for(const l of y){l.remove()}m=m.filter((m=>m!==l&&!y.includes(m)))}}function merge(l){E(l,T,((l,m)=>{if(k(l)&&!l.some(_.detect)){O(m.parent,m,{prop:"columns",value:normalize(l.map(C))});for(const m of l){m.remove()}return true}return false}));cleanup(l)}l.exports={explode:explode,merge:merge}},5162:(l,m,v)=>{"use strict";const y=v(8815);const w=v(4096);const _=v(1380);const k=v(4098);l.exports=[y,w,_,k]},1380:(l,m,v)=>{"use strict";const y=v(5281);l.exports=y("margin")},4098:(l,m,v)=>{"use strict";const y=v(5281);l.exports=y("padding")},5357:l=>{"use strict";l.exports=function getDecls(l,m){return l.nodes.filter((l=>l.type==="decl"&&m.includes(l.prop.toLowerCase())))}},8200:l=>{"use strict";l.exports=(l,m)=>l.filter((l=>l.type==="decl"&&l.prop.toLowerCase()===m)).pop()},9406:(l,m,v)=>{"use strict";const y=v(8200);l.exports=function getRules(l,m){return m.map((m=>y(l,m))).filter(Boolean)}},7946:l=>{"use strict";l.exports=function getValue({value:l}){return l}},2453:l=>{"use strict";l.exports=(l,...m)=>m.every((m=>l.some((l=>l.prop&&l.prop.toLowerCase().includes(m)))))},935:l=>{"use strict";l.exports=function insertCloned(l,m,v){const y=Object.assign(m.clone(),v);l.insertAfter(m,y);return y}},7443:l=>{"use strict";l.exports=l=>l.value.search(/var\s*\(\s*--/i)!==-1},3318:(l,m,v)=>{"use strict";const y=v(2453);const w=v(5357);const _=v(9406);function isConflictingProp(l,m){if(!m.prop||m.important!==l.important||l.prop===m.prop){return false}const v=l.prop.split("-");const y=m.prop.split("-");if(v[0]!==y[0]){return false}const w=new Set(v);return y.every((l=>w.has(l)))}function hasConflicts(l,m){const v=Math.min(...l.map((l=>m.indexOf(l))));const y=Math.max(...l.map((l=>m.indexOf(l))));const w=m.slice(v+1,y);return l.some((l=>w.some((m=>isConflictingProp(l,m)))))}l.exports=function mergeRules(l,m,v){let k=w(l,m);while(k.length){const w=k[k.length-1];const S=k.filter((l=>l.important===w.important));const C=_(S,m);if(y(C,...m)&&!hasConflicts(C,l.nodes)){if(v(C,w,S)){k=k.filter((l=>!C.includes(l)))}}k=k.filter((l=>l!==w))}}},1057:(l,m,v)=>{"use strict";const y=v(7946);l.exports=(...l)=>l.map(y).join(" ")},7226:(l,m,v)=>{"use strict";const y=v(9537);l.exports=l=>{const m=y(l);if(m[3]===m[1]){m.pop();if(m[2]===m[0]){m.pop();if(m[0]===m[1]){m.pop()}}}return m.join(" ")}},9431:(l,m,v)=>{"use strict";const y=v(6671);const w=v(7226);const{isValidWsc:_}=v(6402);const k=["medium","none","currentcolor"];l.exports=l=>{const m=y(l);if(!_(m)){return w(l)}const v=[...m,""].reduceRight(((l,m,v,y)=>{if(m===undefined||m.toLowerCase()===k[v]&&(!v||(y[v-1]||"").toLowerCase()!==m.toLowerCase())){return l}return m+" "+l})).trim();return w(v||"none")}},9537:(l,m,v)=>{"use strict";const{list:y}=v(977);l.exports=l=>{const m=typeof l==="string"?y.space(l):l;return[m[0],m[1]||m[0],m[2]||m[0],m[3]||m[1]||m[0]]}},6671:(l,m,v)=>{"use strict";const{list:y}=v(977);const{isWidth:w,isStyle:_,isColor:k}=v(6402);const S=/^\s*(none|medium)(\s+none(\s+(none|currentcolor))?)?\s*$/i;const C=/--(\w|-|[^\x00-\x7F])+/g;const toLower=l=>{let m;let v=0;let y="";C.lastIndex=0;while((m=C.exec(l))!==null){if(m.index>v){y+=l.substring(v,m.index).toLowerCase()}y+=m[0];v=m.index+m[0].length}if(v1&&_(E[1])&&E[0].toLowerCase()==="none"){E.unshift();m="0"}const O=[];E.forEach((l=>{if(_(l)){v=toLower(l)}else if(w(l)){m=toLower(l)}else if(k(l)){C=toLower(l)}else{O.push(l)}}));if(O.length){if(!m&&v&&C){m=O.pop()}if(m&&!v&&C){v=O.pop()}if(m&&v&&!C){C=O.pop()}}return[m,v,C]}},3275:l=>{"use strict";l.exports=["top","right","bottom","left"]},6402:(l,m,v)=>{"use strict";const y=v(8659);const w=new Set(["thin","medium","thick"]);const _=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]);function isStyle(l){return l!==undefined&&_.has(l.toLowerCase())}function isWidth(l){return l&&w.has(l.toLowerCase())||/^(\d+(\.\d+)?|\.\d+)(\w+)?$/.test(l)}function isColor(l){if(!l){return false}l=l.toLowerCase();if(/rgba?\(/.test(l)){return true}if(/hsla?\(/.test(l)){return true}if(/#([0-9a-z]{6}|[0-9a-z]{3})/.test(l)){return true}if(l==="transparent"){return true}if(l==="currentcolor"){return true}return y.has(l)}function isValidWsc(l){const m=isWidth(l[0]);const v=isStyle(l[1]);const y=isColor(l[2]);return m&&v||m&&y||v&&y}l.exports={isStyle:isStyle,isWidth:isWidth,isColor:isColor,isValidWsc:isValidWsc}},5505:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const{sameParent:_}=v(8402);const{ensureCompatibility:k,sameVendor:S,noVendor:C}=v(4968);function declarationIsEqual(l,m){return l.important===m.important&&l.prop===m.prop&&l.value===m.value}function indexOfDeclaration(l,m){return l.findIndex((l=>declarationIsEqual(l,m)))}function intersect(l,m,v){return l.filter((l=>{const y=indexOfDeclaration(m,l)!==-1;return v?!y:y}))}function sameDeclarationsAndOrder(l,m){if(l.length!==m.length){return false}return l.every(((l,v)=>declarationIsEqual(l,m[v])))}function canMerge(l,m,v,y){const w=l.selectors;const E=m.selectors;const O=w.concat(E);if(!k(O,v,y)){return false}const P=_(l,m);if(P&&l.parent&&l.parent.type==="atrule"&&l.parent.name.includes("keyframes")){return false}if(l.some(isRuleOrAtRule)||m.some(isRuleOrAtRule)){return false}return P&&(O.every(C)||S(w,E))}function isRuleOrAtRule(l){return l.type==="rule"||l.type==="atrule"}function isDeclaration(l){return l.type==="decl"}function getDecls(l){return l.nodes.filter(isDeclaration)}const joinSelectors=(...l)=>l.map((l=>l.selector)).join();function ruleLength(...l){return l.map((l=>l.nodes.length?String(l):"")).join("").length}function splitProp(l){const m=l.split("-");if(l[0]!=="-"){return{prefix:"",base:m[0],rest:m.slice(1)}}if(l[1]==="-"){return{prefix:null,base:null,rest:[l]}}return{prefix:m[1],base:m[2],rest:m.slice(3)}}function isConflictingProp(l,m){if(l===m){return true}const v=splitProp(l);const y=splitProp(m);if(!v.base&&!y.base){return true}if(v.base!==y.base&&v.base!=="place"&&y.base!=="place"){return false}if(v.rest.length!==y.rest.length){return true}if(v.base==="border"){const l=new Set([...v.rest,...y.rest]);if(l.has("image")||l.has("width")||l.has("color")||l.has("style")){return true}}return v.rest.every(((l,m)=>y.rest[m]===l))}function mergeParents(l,m){if(!l.parent||!m.parent){return false}if(l.parent===m.parent){return false}m.remove();l.parent.append(m);return true}function partialMerge(l,m){let v=intersect(getDecls(l),getDecls(m));if(v.length===0){return m}let y=m.next();if(!y){const l=m.parent.next();y=l&&l.nodes&&l.nodes[0]}if(y&&y.type==="rule"&&canMerge(m,y)){let w=intersect(getDecls(m),getDecls(y));if(w.length>v.length){mergeParents(m,y);l=m;m=y;v=w}}const w=getDecls(l);v=v.filter(((l,m)=>{const y=indexOfDeclaration(w,l);const _=w.slice(y+1).filter((m=>isConflictingProp(m.prop,l.prop)));if(_.length===0){return true}const k=v.slice(m+1).filter((m=>isConflictingProp(m.prop,l.prop)));if(_.length!==k.length){return false}return _.every(((l,m)=>declarationIsEqual(l,k[m])))}));const _=getDecls(m);v=v.filter((l=>{const m=_.findIndex((m=>isConflictingProp(m.prop,l.prop)));if(m===-1){return false}if(!declarationIsEqual(_[m],l)){return false}if(l.prop.toLowerCase()!=="direction"&&l.prop.toLowerCase()!=="unicode-bidi"&&_.some((l=>l.prop.toLowerCase()==="all"))){return false}_.splice(m,1);return true}));if(v.length===0){return m}const k=m.clone();k.selector=joinSelectors(l,m);k.nodes=[];m.parent.insertBefore(m,k);const S=l.clone();const C=m.clone();function moveDecl(l){return m=>{if(indexOfDeclaration(v,m)!==-1){l.call(this,m)}}}S.walkDecls(moveDecl((l=>{l.remove();k.append(l)})));C.walkDecls(moveDecl((l=>l.remove())));const E=ruleLength(S,k,C);const O=ruleLength(l,m);if(E{if(l.nodes.length===0){l.remove()}}));if(!C.parent){return k}return C}else{k.remove();return m}}function selectorMerger(l,m){let v=null;return function(y){if(!v||!canMerge(y,v,l,m)){v=y;return}if(v===y){v=y;return}mergeParents(v,y);if(sameDeclarationsAndOrder(getDecls(y),getDecls(v))){y.selector=joinSelectors(v,y);v.remove();v=y;return}if(v.selector===y.selector){const l=getDecls(v);y.walk((m=>{if(m.type==="decl"&&indexOfDeclaration(l,m)!==-1){m.remove();return}v.append(m)}));y.remove();return}v=partialMerge(v,y)}}function pluginCreator(l={}){return{postcssPlugin:"postcss-merge-rules",prepare(m){const{stats:v,env:_,from:k,file:S}=m.opts||{};const C=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||S||__filename),env:l.env||_});const E=new Map;return{OnceExit(l){l.walkRules(selectorMerger(C,E))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},4968:(l,m,v)=>{"use strict";const{isSupported:y}=v(6615);const w=v(6206);const _=/^#?[-._a-z0-9 ]+$/i;const k="css-sel2";const S="css-sel3";const C="css-gencontent";const E="css-first-letter";const O="css-first-line";const P="css-in-out-of-range";const L="form-validation";const T=/-(ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)-/;const D=new Set(["=","~=","|="]);const R=new Set(["^=","$=","*="]);function filterPrefixes(l){return l.match(T)}const findMsInputPlaceholder=l=>~l.search(/-ms-input-placeholder/i);function sameVendor(l,m){let same=l=>l.map(filterPrefixes).join();let findMsVendor=l=>l.find(findMsInputPlaceholder);return same(l)===same(m)&&!(findMsVendor(l)&&findMsVendor(m))}function noVendor(l){return!T.test(l)}const A={":active":k,":after":C,":any-link":"css-any-link",":before":C,":checked":S,":default":"css-default-pseudo",":dir":"css-dir-pseudo",":disabled":S,":empty":S,":enabled":S,":first-child":k,":first-letter":E,":first-line":O,":first-of-type":S,":focus":k,":focus-within":"css-focus-within",":focus-visible":"css-focus-visible",":has":"css-has",":hover":k,":in-range":P,":indeterminate":"css-indeterminate-pseudo",":invalid":L,":is":"css-matches-pseudo",":lang":k,":last-child":S,":last-of-type":S,":link":k,":matches":"css-matches-pseudo",":not":S,":nth-child":S,":nth-last-child":S,":nth-last-of-type":S,":nth-of-type":S,":only-child":S,":only-of-type":S,":optional":"css-optional-pseudo",":out-of-range":P,":placeholder-shown":"css-placeholder-shown",":required":L,":root":S,":target":S,"::after":C,"::backdrop":"dialog","::before":C,"::first-letter":E,"::first-line":O,"::marker":"css-marker-pseudo","::placeholder":"css-placeholder","::selection":"css-selection",":valid":L,":visited":k};function isCssMixin(l){return l[l.length-1]===":"}function isHostPseudoClass(l){return l.includes(":host")}const q=new Map;function isSupportedCached(l,m){const v=JSON.stringify({feature:l,browsers:m});let w=q.get(v);if(!w){w=y(l,m);q.set(v,w)}return w}function ensureCompatibility(l,m,v){if(l.some(isCssMixin)){return false}if(l.some(isHostPseudoClass)){return false}return l.every((l=>{if(_.test(l)){return true}if(v&&v.has(l)){return v.get(l)}let y=true;w((l=>{l.walk((l=>{const{type:v,value:w}=l;if(v==="pseudo"){const l=A[w];if(!l&&noVendor(w)){y=false}if(l&&y){y=isSupportedCached(l,m)}}if(v==="combinator"){if(w.includes("~")){y=isSupportedCached(S,m)}if(w.includes(">")||w.includes("+")){y=isSupportedCached(k,m)}}if(v==="attribute"&&l.attribute){if(!l.operator){y=isSupportedCached(k,m)}if(w){if(D.has(l.operator)){y=isSupportedCached(k,m)}if(R.has(l.operator)){y=isSupportedCached(S,m)}}if(l.insensitive){y=isSupportedCached("css-case-insensitive",m)}}if(!y){return false}}))})).processSync(l);if(v){v.set(l,y)}return y}))}l.exports={sameVendor:sameVendor,noVendor:noVendor,pseudoElements:A,ensureCompatibility:ensureCompatibility}},1927:(l,m,v)=>{"use strict";const y=v(2045);const w=v(6119);const _=v(2829);const k=v(4902);function hasVariableFunction(l){const m=l.toLowerCase();return m.includes("var(")||m.includes("env(")}function transform(l,m,v){let S=l.toLowerCase();let C="";if(typeof v.removeQuotes==="function"){C=v.removeQuotes(l);v.removeQuotes=true}if((S==="font-weight"||C==="font-weight")&&!hasVariableFunction(m)){return w(m)}else if((S==="font-family"||C==="font-family")&&!hasVariableFunction(m)){const l=y(m);l.nodes=_(l.nodes,v);return l.toString()}else if(S==="font"||C==="font"){return k(m,v)}return m}function pluginCreator(l){l=Object.assign({},{removeAfterKeyword:false,removeDuplicates:true,removeQuotes:true},l);return{postcssPlugin:"postcss-minify-font-values",prepare(){const m=new Map;return{OnceExit(v){v.walkDecls(/font/i,(v=>{const y=v.value;if(!y){return}const w=v.prop;const _=`${w}|${y}`;if(m.has(_)){v.value=m.get(_);return}const k=transform(w,y,l);v.value=k;m.set(_,k)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},3106:l=>{"use strict";l.exports={style:new Set(["italic","oblique"]),variant:new Set(["small-caps"]),weight:new Set(["100","200","300","400","500","600","700","800","900","bold","lighter","bolder"]),stretch:new Set(["ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded"]),size:new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"])}},2829:(l,m,v)=>{"use strict";const{stringify:y}=v(2045);function uniqueFontFamilies(l){return l.filter(((m,v)=>{if(m.toLowerCase()==="monospace"){return true}return v===l.indexOf(m)}))}const w=["inherit","initial","unset"];const _=new Set(["sans-serif","serif","fantasy","cursive","monospace","system-ui"]);function makeArray(l,m){let v=[];while(m--){v[m]=l}return v}const k=/[ !"#$%&'()*+,.\/;<=>?@\[\\\]^`{|}~]/;function escape(l,m){let v=0;let y;let w;let _;let S="";while(v{const y=v.length;const w=Math.floor(y/2);const _=makeArray("\\ ",w);if(y%2){_[w-1]+="\\ "}return(m||"")+" "+_.join(" ")}));if(D.test(y)&&!T.test(y)){y=y.replace(D,"\\ ")}if(E.test(y)){y="\\ "+y.slice(1)}return y}l.exports=function(l,m){const v=[];let w=null;let k,C;l.forEach(((l,m,y)=>{if(l.type==="string"||l.type==="function"){v.push(l)}else if(l.type==="word"){if(!w){w={type:"word",value:""};v.push(w)}w.value+=l.value}else if(l.type==="space"){if(w&&m!==y.length-1){w.value+=" "}}else{w=null}}));let E=v.map((l=>{if(l.type==="string"){const v=S.test(l.value);if(!m.removeQuotes||v||/[0-9]/.test(l.value.slice(0,1))){return y(l)}let w=escapeIdentifierSequence(l.value);if(w.length{"use strict";const y=v(2045);const w=v(3106);const _=v(2829);const k=v(6119);function normalizeNodes(l,m){for(const v of m){l.splice(v,0,{type:"space",value:" "})}}l.exports=function(l,m){const v=y(l);const S=v.nodes;let C=NaN;let E=false;const O=new Set;for(const[l,m]of S.entries()){if(m.type==="string"&&l>0&&S[l-1].type!=="space"){O.add(l)}if(m.type==="word"){if(E){continue}const v=m.value.toLowerCase();if(v==="normal"||v==="inherit"||v==="initial"||v==="unset"){C=l}else if(w.style.has(v)||y.unit(v)){C=l}else if(w.variant.has(v)){C=l}else if(w.weight.has(v)){m.value=k(v);C=l}else if(w.stretch.has(v)){C=l}else if(w.size.has(v)||y.unit(v)){C=l;E=true}}else if(m.type==="function"&&S[l+1]&&S[l+1].type==="space"){C=l}else if(m.type==="div"&&m.value==="/"){C=l+1;break}}normalizeNodes(S,O);C+=2;const P=_(S.slice(C),m);v.nodes=S.slice(0,C).concat(P);return v.toString()}},6119:l=>{"use strict";l.exports=function(l){const m=l.toLowerCase();return m==="normal"?"400":m==="bold"?"700":l}},288:(l,m,v)=>{"use strict";const y=v(2045);const{getArguments:w}=v(8402);const _=v(9625);const k={top:"0deg",right:"90deg",bottom:"180deg",left:"270deg"};function isLessThan(l,m){return l.unit.toLowerCase()===m.unit.toLowerCase()&&parseFloat(l.number)>=parseFloat(m.number)}function optimise(l){const m=l.value;if(!m){return}const v=m.toLowerCase();if(v.includes("var(")||v.includes("env(")){return}if(!v.includes("gradient")){return}l.value=y(m).walk((l=>{if(l.type!=="function"||!l.nodes.length){return false}const m=l.value.toLowerCase();if(m==="linear-gradient"||m==="repeating-linear-gradient"||m==="-webkit-linear-gradient"||m==="-webkit-repeating-linear-gradient"){let m=w(l);if(l.nodes[0].value.toLowerCase()==="to"&&m[0].length===3){l.nodes=l.nodes.slice(2);l.nodes[0].value=k[l.nodes[0].value.toLowerCase()]}let v;m.forEach(((l,w)=>{if(l.length!==3){return}let _=w===m.length-1;let k=y.unit(l[2].value);if(v===undefined){v=k;if(!_&&v&&v.number==="0"&&v.unit.toLowerCase()!=="deg"){l[1].value=l[2].value=""}return}if(v&&k&&isLessThan(v,k)){l[2].value="0"}v=k;if(_&&l[2].value==="100%"){l[1].value=l[2].value=""}}));return false}if(m==="radial-gradient"||m==="repeating-radial-gradient"){let m=w(l);let v;const _=m[0].find((l=>l.value.toLowerCase()==="at"));m.forEach(((l,m)=>{if(!l[2]||!m&&_){return}let w=y.unit(l[2].value);if(!v){v=w;return}if(v&&w&&isLessThan(v,w)){l[2].value="0"}v=w}));return false}if(m==="-webkit-radial-gradient"||m==="-webkit-repeating-radial-gradient"){let m=w(l);let v;m.forEach((l=>{let m;let w;if(l[2]!==undefined){if(l[0].type==="function"){m=`${l[0].value}(${y.stringify(l[0].nodes)})`}else{m=l[0].value}if(l[2].type==="function"){w=`${l[2].value}(${y.stringify(l[2].nodes)})`}else{w=l[2].value}}else{if(l[0].type==="function"){m=`${l[0].value}(${y.stringify(l[0].nodes)})`}m=l[0].value}m=m.toLowerCase();const k=w!==undefined?_(m,w.toLowerCase()):_(m);if(!k||!l[2]){return}let S=y.unit(l[2].value);if(!v){v=S;return}if(v&&S&&isLessThan(v,S)){l[2].value="0"}v=S}));return false}})).toString()}function pluginCreator(){return{postcssPlugin:"postcss-minify-gradients",OnceExit(l){l.walkDecls(optimise)}}}pluginCreator.postcss=true;l.exports=pluginCreator},9625:(l,m,v)=>{"use strict";const{unit:y}=v(2045);const{colord:w,extend:_}=v(3251);const k=v(2338);_([k]);const S=new Set(["PX","IN","CM","MM","EM","REM","POINTS","PC","EX","CH","VW","VH","VMIN","VMAX","%"]);function isCSSLengthUnit(l){return S.has(l.toUpperCase())}function isStop(l){if(l){let m=false;const v=y(l);if(v){const l=Number(v.number);if(l===0||!isNaN(l)&&isCSSLengthUnit(v.unit)){m=true}}else{m=/^calc\(\S+\)$/g.test(l)}return m}return true}l.exports=function isColorStop(l,m){return w(l).isValid()&&isStop(m)}},9434:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const _=v(2045);const{getArguments:k}=v(8402);function gcd(l,m){return m?gcd(m,l%m):l}function aspectRatio(l,m){const v=gcd(l,m);return[l/v,m/v]}function split(l){return l.map((l=>_.stringify(l))).join("")}function removeNode(l){l.value="";l.type="word"}function sortAndDedupe(l){const m=[...new Set(l)];m.sort();return m.join()}function transform(l,m){const v=m.name.toLowerCase();if(!m.params||!["media","supports"].includes(v)){return}const y=_(m.params);y.walk(((v,w)=>{if(v.type==="div"){v.before=v.after=""}else if(v.type==="function"){v.before="";if(v.nodes[0]&&v.nodes[0].type==="word"&&v.nodes[0].value.startsWith("--")&&v.nodes[2]===undefined){v.after=" "}else{v.after=""}if(v.nodes[4]&&v.nodes[0].value.toLowerCase().indexOf("-aspect-ratio")===3){const[l,m]=aspectRatio(Number(v.nodes[2].value),Number(v.nodes[4].value));v.nodes[2].value=l.toString();v.nodes[4].value=m.toString()}}else if(v.type==="space"){v.value=" "}else{const _=y.nodes[w-2];if(v.value.toLowerCase()==="all"&&m.name.toLowerCase()==="media"&&!_){const m=y.nodes[w+2];if(!l||m){removeNode(v)}if(m&&m.value.toLowerCase()==="and"){const l=y.nodes[w+1];const v=y.nodes[w+3];removeNode(m);removeNode(l);removeNode(v)}}}}),true);m.params=sortAndDedupe(k(y).map(split));if(!m.params.length){m.raws.afterName=""}}const S=new Set(["ie 10","ie 11"]);function pluginCreator(l={}){return{postcssPlugin:"postcss-minify-params",prepare(m){const{stats:v,env:_,from:k,file:C}=m.opts||{};const E=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||C||__filename),env:l.env||_});const O=E.some((l=>S.has(l)));return{OnceExit(l){l.walkAtRules((l=>transform(O,l)))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},5547:(l,m,v)=>{"use strict";const y=v(6206);const w=v(280);const _=new Set(["::before","::after","::first-letter","::first-line"]);function attribute(l){if(l.value){if(l.raws.value){l.raws.value=l.raws.value.replace(/\\\n/g,"").trim()}if(w(l.value)){l.quoteMark=null}if(l.operator){l.operator=l.operator.trim()}}l.rawSpaceBefore="";l.rawSpaceAfter="";l.spaces.attribute={before:"",after:""};l.spaces.operator={before:"",after:""};l.spaces.value={before:"",after:l.insensitive?" ":""};if(l.raws.spaces){l.raws.spaces.attribute={before:"",after:""};l.raws.spaces.operator={before:"",after:""};l.raws.spaces.value={before:"",after:l.insensitive?" ":""};if(l.insensitive){l.raws.spaces.insensitive={before:"",after:""}}}l.attribute=l.attribute.trim()}function combinator(l){const m=l.value.trim();l.spaces.before="";l.spaces.after="";l.rawSpaceBefore="";l.rawSpaceAfter="";l.value=m.length?m:" "}const k=new Map([[":nth-child",":first-child"],[":nth-of-type",":first-of-type"],[":nth-last-child",":last-child"],[":nth-last-of-type",":last-of-type"]]);function pseudo(l){const m=l.value.toLowerCase();if(l.nodes.length===1&&k.has(m)){const v=l.at(0);const w=v.at(0);if(v.length===1){if(w.value==="1"){l.replaceWith(y.pseudo({value:k.get(m)}))}if(w.value&&w.value.toLowerCase()==="even"){w.value="2n"}}if(v.length===3){const l=v.at(1);const m=v.at(2);if(w.value&&w.value.toLowerCase()==="2n"&&l.value==="+"&&m.value==="1"){w.value="odd";l.remove();m.remove()}}return}l.walk((l=>{if(l.type==="selector"&&l.parent){const m=new Set;l.parent.each((l=>{const v=String(l);if(!m.has(v)){m.add(v)}else{l.remove()}}))}}));if(_.has(m)){l.value=l.value.slice(1)}}const S=new Map([["from","0%"],["100%","to"]]);function tag(l){const m=l.value.toLowerCase();const v=l.parent&&l.parent.nodes.length===1;if(!v){return}if(S.has(m)){l.value=S.get(m)}}function universal(l){const m=l.next();if(m&&m.type!=="combinator"){l.remove()}}const C=new Map([["attribute",attribute],["combinator",combinator],["pseudo",pseudo],["tag",tag],["universal",universal]]);function pluginCreator(){return{postcssPlugin:"postcss-minify-selectors",OnceExit(l){const m=new Map;const v=y((l=>{const m=new Set;l.walk((l=>{l.spaces.before=l.spaces.after="";const v=C.get(l.type);if(v!==undefined){v(l);return}const y=String(l);if(l.type==="selector"&&l.parent&&l.parent.type!=="pseudo"){if(!m.has(y)){m.add(y)}else{l.remove()}}}));l.nodes.sort()}));l.walkRules((l=>{const y=l.raws.selector&&l.raws.selector.value===l.selector?l.raws.selector.raw:l.selector;if(y[y.length-1]===":"){return}if(m.has(y)){l.selector=m.get(y);return}const w=v.processSync(y);l.selector=w;m.set(y,w)}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},280:(l,m,v)=>{"use strict";const y=v(441);const w=/\\([0-9A-Fa-f]{1,6})[ \t\n\f\r]?/g;const _=/[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;l.exports=function canUnquote(l){if(l==="-"||l===""){return false}l=l.replace(w,"a").replace(/\\./g,"a");return!(_.test(l)||/^(?:-?\d|--)/.test(l))&&y(l)===l}},949:l=>{"use strict";const m="charset";const v=/[^\x00-\x7F]/;function pluginCreator(l={}){return{postcssPlugin:"postcss-normalize-"+m,OnceExit(y,{AtRule:w}){let _;let k;y.walk((l=>{if(l.type==="atrule"&&l.name===m){if(!_){_=l}l.remove()}else if(!k&&l.parent===y&&v.test(l.toString())){k=l}}));if(k){if(!_&&l.add!==false){_=new w({name:m,params:'"utf-8"'})}if(_){_.source=k.source;y.prepend(_)}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},710:(l,m,v)=>{"use strict";const y=v(2045);const w=v(9042);function transform(l){const{nodes:m}=y(l);if(m.length===1){return l}const v=m.filter(((l,m)=>m%2===0)).filter((l=>l.type==="word")).map((l=>l.value.toLowerCase()));if(v.length===0){return l}const _=w.get(v.toString());if(!_){return l}return _}function pluginCreator(){return{postcssPlugin:"postcss-normalize-display-values",prepare(){const l=new Map;return{OnceExit(m){m.walkDecls(/^display$/i,(m=>{const v=m.value;if(!v){return}if(l.has(v)){m.value=l.get(v);return}const y=transform(v);m.value=y;l.set(v,y)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},9042:l=>{"use strict";const m="block";const v="flex";const y="flow";const w="flow-root";const _="grid";const k="inline";const S="inline-block";const C="inline-flex";const E="inline-grid";const O="inline-table";const P="list-item";const L="ruby";const T="ruby-base";const D="ruby-text";const R="run-in";const A="table";const q="table-cell";const F="table-caption";l.exports=new Map([[[m,y].toString(),m],[[m,w].toString(),w],[[k,y].toString(),k],[[k,w].toString(),S],[[R,y].toString(),R],[[P,m,y].toString(),P],[[k,y,P].toString(),k+" "+P],[[m,v].toString(),v],[[k,v].toString(),C],[[m,_].toString(),_],[[k,_].toString(),E],[[k,L].toString(),L],[[m,A].toString(),A],[[k,A].toString(),O],[[q,y].toString(),q],[[F,y].toString(),F],[[T,y].toString(),T],[[D,y].toString(),D]])},3434:(l,m,v)=>{"use strict";const y=v(2045);const w=new Set(["top","right","bottom","left","center"]);const _="50%";const k=new Map([["right","100%"],["left","0"]]);const S=new Map([["bottom","100%"],["top","0"]]);const C=new Set(["calc","min","max","clamp"]);const E=new Set(["var","env","constant"]);function isCommaNode(l){return l.type==="div"&&l.value===","}function isVariableFunctionNode(l){if(l.type!=="function"){return false}return E.has(l.value.toLowerCase())}function isMathFunctionNode(l){if(l.type!=="function"){return false}return C.has(l.value.toLowerCase())}function isNumberNode(l){if(l.type!=="word"){return false}const m=parseFloat(l.value);return!isNaN(m)}function isDimensionNode(l){if(l.type!=="word"){return false}const m=y.unit(l.value);if(!m){return false}return m.unit!==""}function transform(l){const m=y(l);const v=[];let C=0;let E=true;m.nodes.forEach(((l,m)=>{if(isCommaNode(l)){C+=1;E=true;return}if(!E){return}if(l.type==="div"&&l.value==="/"){E=false;return}if(!v[C]){v[C]={start:null,end:null}}if(isVariableFunctionNode(l)){E=false;v[C].start=null;v[C].end=null;return}const y=l.type==="word"&&w.has(l.value.toLowerCase())||isDimensionNode(l)||isNumberNode(l)||isMathFunctionNode(l);if(v[C].start===null&&y){v[C].start=m;v[C].end=m;return}if(v[C].start!==null){if(l.type==="space"){return}else if(y){v[C].end=m;return}return}}));v.forEach((l=>{if(l.start===null){return}const v=m.nodes.slice(l.start,l.end+1);if(v.length>3){return}const y=v[0].value.toLowerCase();const C=v[2]&&v[2].value?v[2].value.toLowerCase():null;if(v.length===1||C==="center"){if(C){v[2].value=v[1].value=""}const l=new Map([...k,["center",_]]);if(l.has(y)){v[0].value=l.get(y)}return}if(C!==null){if(y==="center"&&w.has(C)){v[0].value=v[1].value="";if(k.has(C)){v[2].value=k.get(C)}return}if(k.has(y)&&S.has(C)){v[0].value=k.get(y);v[2].value=S.get(C);return}else if(S.has(y)&&k.has(C)){v[0].value=k.get(C);v[2].value=S.get(y);return}}}));return m.toString()}function pluginCreator(){return{postcssPlugin:"postcss-normalize-positions",OnceExit(l){const m=new Map;l.walkDecls(/^(background(-position)?|(-\w+-)?perspective-origin)$/i,(l=>{const v=l.value;if(!v){return}if(m.has(v)){l.value=m.get(v);return}const y=transform(v);l.value=y;m.set(v,y)}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},8041:(l,m,v)=>{"use strict";const y=v(2045);const w=v(1856);function evenValues(l,m){return m%2===0}const _=new Set(w.values());function isCommaNode(l){return l.type==="div"&&l.value===","}const k=new Set(["var","env","constant"]);function isVariableFunctionNode(l){if(l.type!=="function"){return false}return k.has(l.value.toLowerCase())}function transform(l){const m=y(l);if(m.nodes.length===1){return l}const v=[];let k=0;let S=true;m.nodes.forEach(((l,m)=>{if(isCommaNode(l)){k+=1;S=true;return}if(!S){return}if(l.type==="div"&&l.value==="/"){S=false;return}if(!v[k]){v[k]={start:null,end:null}}if(isVariableFunctionNode(l)){S=false;v[k].start=null;v[k].end=null;return}const y=l.type==="word"&&_.has(l.value.toLowerCase());if(v[k].start===null&&y){v[k].start=m;v[k].end=m;return}if(v[k].start!==null){if(l.type==="space"){return}else if(y){v[k].end=m;return}return}}));v.forEach((l=>{if(l.start===null){return}const v=m.nodes.slice(l.start,l.end+1);if(v.length!==3){return}const y=v.filter(evenValues).map((l=>l.value.toLowerCase())).toString();const _=w.get(y);if(_){v[0].value=_;v[1].value=v[2].value=""}}));return m.toString()}function pluginCreator(){return{postcssPlugin:"postcss-normalize-repeat-style",prepare(){const l=new Map;return{OnceExit(m){m.walkDecls(/^(background(-repeat)?|(-\w+-)?mask-repeat)$/i,(m=>{const v=m.value;if(!v){return}if(l.has(v)){m.value=l.get(v);return}const y=transform(v);m.value=y;l.set(v,y)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},1856:l=>{"use strict";l.exports=new Map([[["repeat","no-repeat"].toString(),"repeat-x"],[["no-repeat","repeat"].toString(),"repeat-y"],[["repeat","repeat"].toString(),"repeat"],[["space","space"].toString(),"space"],[["round","round"].toString(),"round"],[["no-repeat","no-repeat"].toString(),"no-repeat"]])},8344:(l,m,v)=>{"use strict";const y=v(2045);const w="'".charCodeAt(0);const _='"'.charCodeAt(0);const k="\\".charCodeAt(0);const S="\n".charCodeAt(0);const C=" ".charCodeAt(0);const E="\f".charCodeAt(0);const O="\t".charCodeAt(0);const P="\r".charCodeAt(0);const L=/[ \n\t\r\f'"\\]/g;const T="string";const D="escapedSingleQuote";const R="escapedDoubleQuote";const A="singleQuote";const q="doubleQuote";const F="newline";const V="single";const $=`'`;const z=`"`;const U=`\\\n`;const W={type:D,value:`\\'`};const B={type:R,value:`\\"`};const Q={type:A,value:$};const Y={type:q,value:z};const G={type:F,value:U};function stringify(l){return l.nodes.reduce(((l,{value:m})=>{if(m===U){return l}return l+m}),"")}function parse(l){let m,v,y;let F=0;let V=l.length;const $={nodes:[],types:{escapedSingleQuote:0,escapedDoubleQuote:0,singleQuote:0,doubleQuote:0},quotes:false};while(F0&&!v[R]){l.quote=z}if(l.quote===z&&v[R]>0&&!v[D]){l.quote=$}m.nodes=changeChildQuotes(m.nodes,l.quote)}function changeChildQuotes(l,m){const v=[];for(const y of l){if(y.type===R&&m===$){v.push(Y)}else if(y.type===D&&m===z){v.push(Q)}else{v.push(y)}}return v}function normalize(l,m){if(!l||!l.length){return l}return y(l).walk((l=>{if(l.type!==T){return}const v=parse(l.value);if(v.quotes){changeWrappingQuotes(l,v)}else if(m===V){l.quote=$}else{l.quote=z}l.value=stringify(v)})).toString()}function minify(l,m,v){const y=l+"|"+v;if(m.has(y)){return m.get(y)}const w=normalize(l,v);m.set(y,w);return w}function pluginCreator(l){const{preferredQuote:m}=Object.assign({},{preferredQuote:"double"},l);return{postcssPlugin:"postcss-normalize-string",OnceExit(l){const v=new Map;l.walk((l=>{switch(l.type){case"rule":l.selector=minify(l.selector,v,m);break;case"decl":l.value=minify(l.value,v,m);break;case"atrule":l.params=minify(l.params,v,m);break}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},4675:(l,m,v)=>{"use strict";const y=v(2045);const getValue=l=>parseFloat(l.value);const w=new Map([[[.25,.1,.25,1].toString(),"ease"],[[0,0,1,1].toString(),"linear"],[[.42,0,1,1].toString(),"ease-in"],[[0,0,.58,1].toString(),"ease-out"],[[.42,0,.58,1].toString(),"ease-in-out"]]);function reduce(l){if(l.type!=="function"){return false}if(!l.value){return}const m=l.value.toLowerCase();if(m==="steps"){if(l.nodes[0].type==="word"&&getValue(l.nodes[0])===1&&l.nodes[2]&&l.nodes[2].type==="word"&&(l.nodes[2].value.toLowerCase()==="start"||l.nodes[2].value.toLowerCase()==="jump-start")){l.type="word";l.value="step-start";delete l.nodes;return}if(l.nodes[0].type==="word"&&getValue(l.nodes[0])===1&&l.nodes[2]&&l.nodes[2].type==="word"&&(l.nodes[2].value.toLowerCase()==="end"||l.nodes[2].value.toLowerCase()==="jump-end")){l.type="word";l.value="step-end";delete l.nodes;return}if(l.nodes[2]&&l.nodes[2].type==="word"&&(l.nodes[2].value.toLowerCase()==="end"||l.nodes[2].value.toLowerCase()==="jump-end")){l.nodes=[l.nodes[0]];return}return false}if(m==="cubic-bezier"){const m=l.nodes.filter(((l,m)=>m%2===0)).map(getValue);if(m.length!==4){return}const v=w.get(m.toString());if(v){l.type="word";l.value=v;delete l.nodes;return}}}function transform(l){return y(l).walk(reduce).toString()}function pluginCreator(){return{postcssPlugin:"postcss-normalize-timing-functions",OnceExit(l){const m=new Map;l.walkDecls(/^(-\w+-)?(animation|transition)(-timing-function)?$/i,(l=>{const v=l.value;if(m.has(v)){l.value=m.get(v);return}const y=transform(v);l.value=y;m.set(v,y)}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},6242:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const _=v(2045);const k=/^u(?=\+)/;function unicode(l){const m=l.slice(2).split("-");if(m.length<2){return l}const v=m[0].split("");const y=m[1].split("");if(v.length!==y.length){return l}const w=mergeRangeBounds(v,y);if(w){return w}return l}function mergeRangeBounds(l,m){let v=0;let y="u+";for(const[w,_]of l.entries()){if(_===m[w]&&v===0){y=y+_}else if(_==="0"&&m[w]==="f"){v++;y=y+"?"}else{return false}}if(v<6){return y}else{return false}}function hasLowerCaseUPrefixBug(l){return w("ie <=11, edge <= 15").includes(l)}function transform(l,m=false){return _(l).walk((l=>{if(l.type==="unicode-range"){const v=unicode(l.value.toLowerCase());l.value=m?v.replace(k,"U"):v}return false})).toString()}function pluginCreator(l={}){return{postcssPlugin:"postcss-normalize-unicode",prepare(m){const{stats:v,env:_,from:k,file:S}=m.opts||{};const C=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||S||__filename),env:l.env||_});const E=new Map;const O=C.some(hasLowerCaseUPrefixBug);return{OnceExit(l){l.walkDecls(/^unicode-range$/i,(l=>{const m=l.value;if(E.has(m)){l.value=E.get(m);return}const v=transform(m,O);l.value=v;E.set(m,v)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},8508:(l,m,v)=>{"use strict";const y=v(1017);const w=v(2045);const _=v(8193);const k=/\\[\r\n]/;const S=/([\s\(\)"'])/g;const C=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;const E=/^[a-zA-Z]:\\/;function isAbsolute(l){if(E.test(l)){return false}return C.test(l)}function convert(l){if(isAbsolute(l)||l.startsWith("//")){let m;try{m=_(l)}catch{m=l}return m}return y.normalize(l).replace(new RegExp("\\"+y.sep,"g"),"/")}function transformNamespace(l){l.params=w(l.params).walk((l=>{if(l.type==="function"&&l.value.toLowerCase()==="url"&&l.nodes.length){l.type="string";l.quote=l.nodes[0].type==="string"?l.nodes[0].quote:'"';l.value=l.nodes[0].value}if(l.type==="string"){l.value=l.value.trim()}return false})).toString()}function transformDecl(l){l.value=w(l.value).walk((l=>{if(l.type!=="function"||l.value.toLowerCase()!=="url"){return false}l.before=l.after="";if(!l.nodes.length){return false}let m=l.nodes[0];let v;m.value=m.value.trim().replace(k,"");if(m.value.length===0){m.quote="";return false}if(/^data:(.*)?,/i.test(m.value)){return false}if(!/^.+-extension:\//i.test(m.value)){m.value=convert(m.value)}if(S.test(m.value)&&m.type==="string"){v=m.value.replace(S,"\\$1");if(v.length{if(l.type==="decl"){return transformDecl(l)}else if(l.type==="atrule"&&l.name.toLowerCase()==="namespace"){return transformNamespace(l)}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},8193:l=>{"use strict";const m="text/plain";const v="us-ascii";const y=new Set(["https:","http:","file:"]);function hasCustomProtocol(l){try{const{protocol:m}=new URL(l);return m.endsWith(":")&&!y.has(m)}catch{return false}}function normalizeDataURL(l){const y=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(l);if(!y){throw new Error(`Invalid URL: ${l}`)}let{type:w,data:_,hash:k}=y.groups;const S=w.split(";");let C=false;if(S[S.length-1]==="base64"){S.pop();C=true}const E=S.shift()?.toLowerCase()??"";const O=S.map((l=>{let[m,y=""]=l.split("=").map((l=>l.trim()));if(m==="charset"){y=y.toLowerCase();if(y===v){return""}}return`${m}${y?`=${y}`:""}`})).filter(Boolean);const P=[...O];if(C){P.push("base64")}if(P.length>0||E&&E!==m){P.unshift(E)}return`data:${P.join(";")},${C?_.trim():_}${k?`#${k}`:""}`}function normalizeUrl(l){l=l.trim();if(/^data:/i.test(l)){return normalizeDataURL(l)}if(hasCustomProtocol(l)){return l}const m=l.startsWith("//");const v=!m&&/^\.*\//.test(l);if(!v){l=l.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,"http:")}const y=new URL(l);if(y.pathname){y.pathname=y.pathname.replace(/(?{"use strict";const y=v(2045);const w="atrule";const _="decl";const k="rule";const S=new Set(["var","env","constant"]);function reduceCalcWhitespaces(l){if(l.type==="space"){l.value=" "}else if(l.type==="function"){if(!S.has(l.value.toLowerCase())){l.before=l.after=""}}}function reduceWhitespaces(l){if(l.type==="space"){l.value=" "}else if(l.type==="div"){l.before=l.after=""}else if(l.type==="function"){if(!S.has(l.value.toLowerCase())){l.before=l.after=""}if(l.value.toLowerCase()==="calc"){y.walk(l.nodes,reduceCalcWhitespaces);return false}}}function pluginCreator(){return{postcssPlugin:"postcss-normalize-whitespace",OnceExit(l){const m=new Map;l.walk((l=>{const{type:v}=l;if([_,k,w].includes(v)&&l.raws.before){l.raws.before=l.raws.before.replace(/\s/g,"")}if(v===_){if(l.important){l.raws.important="!important"}l.value=l.value.replace(/\s*(\\9)\s*/,"$1");const v=l.value;if(m.has(v)){l.value=m.get(v)}else{const w=y(l.value);const _=w.walk(reduceWhitespaces).toString();l.value=_;m.set(v,_)}if(l.prop.startsWith("--")&&l.value===""){l.value=" "}if(l.raws.before){const m=l.prev();if(m&&m.type!==k){l.raws.before=l.raws.before.replace(/;/g,"")}}l.raws.between=":";l.raws.semicolon=false}else if(v===k||v===w){l.raws.between=l.raws.after="";l.raws.semicolon=false}}));l.raws.after=""}}}pluginCreator.postcss=true;l.exports=pluginCreator},3873:(l,m,v)=>{"use strict";const y=v(2045);const{normalizeGridAutoFlow:w,normalizeGridColumnRowGap:_,normalizeGridColumnRow:k}=v(1230);const S=v(7132);const C=v(8922);const E=v(1222);const O=v(8843);const P=v(4273);const L=v(6270);const T=v(6019);const D=v(4860);const R=[["border",C],["border-block",C],["border-inline",C],["border-block-end",C],["border-block-start",C],["border-inline-end",C],["border-inline-start",C],["border-top",C],["border-right",C],["border-bottom",C],["border-left",C]];const A=[["grid-auto-flow",w],["grid-column-gap",_],["grid-row-gap",_],["grid-column",k],["grid-row",k],["grid-row-start",k],["grid-row-end",k],["grid-column-start",k],["grid-column-end",k]];const q=[["column-rule",C],["columns",T]];const F=new Map([["animation",S],["outline",C],["box-shadow",E],["flex-flow",O],["list-style",L],["transition",P],...R,...A,...q]);const V=new Set(["var","env","constant"]);function isVariableFunctionNode(l){if(l.type!=="function"){return false}return V.has(l.value.toLowerCase())}function shouldAbort(l){let m=false;l.walk((l=>{if(l.type==="comment"||isVariableFunctionNode(l)||l.type==="word"&&l.value.includes(`___CSS_LOADER_IMPORT___`)){m=true;return false}}));return m}function getValue(l){let{value:m,raws:v}=l;if(v&&v.value&&v.value.raw){m=v.value.raw}return m}function pluginCreator(){return{postcssPlugin:"postcss-ordered-values",prepare(){const l=new Map;return{OnceExit(m){m.walkDecls((m=>{const v=m.prop.toLowerCase();const w=D(v);const _=F.get(w);if(!_){return}const k=getValue(m);if(l.has(k)){m.value=l.get(k);return}const S=y(k);if(S.nodes.length<2||shouldAbort(S)){l.set(k,k);return}const C=_(S);m.value=C.toString();l.set(k,C.toString())}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},7613:l=>{"use strict";l.exports=function addSpace(){return{type:"space",value:" "}}},5736:(l,m,v)=>{"use strict";const{stringify:y}=v(2045);l.exports=function getValue(l){return y(flatten(l))};function flatten(l){const m=[];for(const[v,y]of l.entries()){y.forEach(((w,_)=>{if(_===y.length-1&&v===l.length-1&&w.type==="space"){return}m.push(w)}));if(v!==l.length-1){m[m.length-1].type="div";m[m.length-1].value=","}}return m}},4994:l=>{"use strict";l.exports=function joinGridVal(l){return l.join(" / ").trim()}},8232:l=>{"use strict";l.exports=new Set(["calc","clamp","max","min"])},4860:l=>{"use strict";function vendorUnprefixed(l){return l.replace(/^-\w+-/,"")}l.exports=vendorUnprefixed},7132:(l,m,v)=>{"use strict";const{unit:y}=v(2045);const{getArguments:w}=v(8402);const _=v(7613);const k=v(5736);const S=v(8232);const C=new Set(["steps","cubic-bezier","frames"]);const E=new Set(["ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start"]);const O=new Set(["normal","reverse","alternate","alternate-reverse"]);const P=new Set(["none","forwards","backwards","both"]);const L=new Set(["running","paused"]);const T=new Set(["ms","s"]);function unitFromNode(l,m){if(m.type!=="function"){return y(l)}if(S.has(l)){for(const l of m.nodes){const m=unitFromNode(l.value.toLowerCase(),l);if(m&&m.unit&&m.unit!=="%"){return m}}}return false}const isTimingFunction=(l,{type:m})=>m==="function"&&C.has(l)||E.has(l);const isDirection=l=>O.has(l);const isFillMode=l=>P.has(l);const isPlayState=l=>L.has(l);const isTime=(l,m)=>{const v=unitFromNode(l,m);return v&&T.has(v.unit)};const isIterationCount=(l,m)=>{const v=unitFromNode(l,m);return l==="infinite"||v&&!v.unit};const D=[{property:"duration",delegate:isTime},{property:"timingFunction",delegate:isTimingFunction},{property:"delay",delegate:isTime},{property:"iterationCount",delegate:isIterationCount},{property:"direction",delegate:isDirection},{property:"fillMode",delegate:isFillMode},{property:"playState",delegate:isPlayState}];function normalize(l){const m=[];for(const v of l){const l={name:[],duration:[],timingFunction:[],delay:[],iterationCount:[],direction:[],fillMode:[],playState:[]};v.forEach((m=>{let{type:v,value:y}=m;if(v==="space"){return}y=y.toLowerCase();const w=D.some((({property:v,delegate:w})=>{if(w(y,m)&&!l[v].length){l[v]=[m,_()];return true}}));if(!w){l.name=[...l.name,m,_()]}}));m.push([...l.name,...l.duration,...l.timingFunction,...l.delay,...l.iterationCount,...l.direction,...l.fillMode,...l.playState])}return m}l.exports=function normalizeAnimation(l){const m=normalize(w(l));return k(m)}},8922:(l,m,v)=>{"use strict";const{unit:y,stringify:w}=v(2045);const _=v(8232);const k=new Set(["thin","medium","thick"]);const S=new Set(["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]);l.exports=function normalizeBorder(l){const m={width:"",style:"",color:""};l.walk((l=>{const{type:v,value:C}=l;if(v==="word"){if(S.has(C.toLowerCase())){m.style=C;return false}if(k.has(C.toLowerCase())||y(C.toLowerCase())){if(m.width!==""){m.width=`${m.width} ${C}`;return false}m.width=C;return false}m.color=C;return false}if(v==="function"){if(_.has(C.toLowerCase())){m.width=w(l)}else{m.color=w(l)}return false}}));return`${m.width} ${m.style} ${m.color}`.trim()}},1222:(l,m,v)=>{"use strict";const{unit:y}=v(2045);const{getArguments:w}=v(8402);const _=v(7613);const k=v(5736);const S=v(8232);const C=v(4860);l.exports=function normalizeBoxShadow(l){let m=w(l);const v=normalize(m);if(v===false){return l.toString()}return k(v)};function normalize(l){const m=[];let v=false;for(const w of l){let l=[];let k={inset:[],color:[]};w.forEach((m=>{const{type:w,value:E}=m;if(w==="function"&&S.has(C(E.toLowerCase()))){v=true;return}if(w==="space"){return}if(y(E)){l=[...l,m,_()]}else if(E.toLowerCase()==="inset"){k.inset=[...k.inset,m,_()]}else{k.color=[...k.color,m,_()]}}));if(v){return false}m.push([...k.inset,...l,...k.color])}return m}},6019:(l,m,v)=>{"use strict";const{unit:y}=v(2045);function hasUnit(l){const m=y(l);return m&&m.unit!==""}l.exports=l=>{const m=[];const v=[];l.walk((l=>{const{type:y,value:w}=l;if(y==="word"){if(hasUnit(w)){m.push(w)}else{v.push(w)}}}));if(v.length===1&&m.length===1){return`${m[0].trimStart()} ${v[0].trimStart()}`}return l}},8843:l=>{"use strict";const m=new Set(["row","row-reverse","column","column-reverse"]);const v=new Set(["nowrap","wrap","wrap-reverse"]);l.exports=function normalizeFlexFlow(l){let y={direction:"",wrap:""};l.walk((({value:l})=>{if(m.has(l.toLowerCase())){y.direction=l;return}if(v.has(l.toLowerCase())){y.wrap=l;return}}));return`${y.direction} ${y.wrap}`.trim()}},1230:(l,m,v)=>{"use strict";const y=v(4994);const normalizeGridAutoFlow=l=>{let m={front:"",back:""};let v=false;l.walk((l=>{if(l.value==="dense"){v=true;m.back=l.value}else if(["row","column"].includes(l.value.trim().toLowerCase())){v=true;m.front=l.value}else{v=false}}));if(v){return`${m.front.trim()} ${m.back.trim()}`}return l};const normalizeGridColumnRowGap=l=>{let m={front:"",back:""};let v=false;l.walk((l=>{if(l.value==="normal"){v=true;m.front=l.value}else{m.back=`${m.back} ${l.value}`}}));if(v){return`${m.front.trim()} ${m.back.trim()}`}return l};const normalizeGridColumnRow=l=>{let m=l.toString().split("/");if(m.length>1){return y(m.map((l=>{let m={front:"",back:""};l=l.trim();l.split(" ").forEach((l=>{if(l==="span"){m.front=l}else{m.back=`${m.back} ${l}`}}));return`${m.front.trim()} ${m.back.trim()}`})))}return m.map((l=>{let m={front:"",back:""};l=l.trim();l.split(" ").forEach((l=>{if(l==="span"){m.front=l}else{m.back=`${m.back} ${l}`}}));return`${m.front.trim()} ${m.back.trim()}`}))};l.exports={normalizeGridAutoFlow:normalizeGridAutoFlow,normalizeGridColumnRowGap:normalizeGridColumnRowGap,normalizeGridColumnRow:normalizeGridColumnRow}},6270:(l,m,v)=>{"use strict";const y=v(2045);const w=v(7965);const _=new Set(w["list-style-type"]);const k=new Set(["inside","outside"]);l.exports=function listStyleNormalizer(l){const m={type:"",position:"",image:""};l.walk((l=>{if(l.type==="word"){if(_.has(l.value)){m.type=`${m.type} ${l.value}`}else if(k.has(l.value)){m.position=`${m.position} ${l.value}`}else if(l.value==="none"){if(m.type.split(" ").filter((l=>l!==""&&l!==" ")).includes("none")){m.image=`${m.image} ${l.value}`}else{m.type=`${m.type} ${l.value}`}}else{m.type=`${m.type} ${l.value}`}}if(l.type==="function"){m.image=`${m.image} ${y.stringify(l)}`}}));return`${m.type.trim()} ${m.position.trim()} ${m.image.trim()}`.trim()}},4273:(l,m,v)=>{"use strict";const{unit:y}=v(2045);const{getArguments:w}=v(8402);const _=v(7613);const k=v(5736);const S=new Set(["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"]);function normalize(l){const m=[];for(const v of l){let l={timingFunction:[],property:[],time1:[],time2:[]};v.forEach((m=>{const{type:v,value:w}=m;if(v==="space"){return}if(v==="function"&&new Set(["steps","cubic-bezier"]).has(w.toLowerCase())){l.timingFunction=[...l.timingFunction,m,_()]}else if(y(w)){if(!l.time1.length){l.time1=[...l.time1,m,_()]}else{l.time2=[...l.time2,m,_()]}}else if(S.has(w.toLowerCase())){l.timingFunction=[...l.timingFunction,m,_()]}else{l.property=[...l.property,m,_()]}}));m.push([...l.property,...l.time1,...l.timingFunction,...l.time2])}return m}l.exports=function normalizeTransition(l){const m=normalize(w(l));return k(m)}},3252:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const{isSupported:_}=v(6615);const k=v(5264);const S=v(6559);const C=v(688);const E="initial";const O=C;function pluginCreator(l={}){return{postcssPlugin:"postcss-reduce-initial",prepare(m){const{stats:v,env:C,from:P,file:L}=m.opts||{};const T=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(P||L||__filename),env:l.env||C});const D=_("css-initial-value",T);return{OnceExit(m){m.walkDecls((m=>{const v=m.prop.toLowerCase();const y=new Set(O.concat(l.ignore||[]));if(y.has(v)){return}if(D&&Object.prototype.hasOwnProperty.call(S,v)&&m.value.toLowerCase()===S[v]){m.value=E;return}if(m.value.toLowerCase()!==E||!k[v]){return}m.value=k[v]}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},688:l=>{"use strict";l.exports=["writing-mode","transform-box"]},1367:(l,m,v)=>{"use strict";const y=v(2045);function getValues(l,m,v){if(v%2===0){let v=NaN;if(m.type==="function"&&(m.value==="var"||m.value==="env")&&m.nodes.length===1){v=y.stringify(m.nodes)}else if(m.type==="word"){v=parseFloat(m.value)}return[...l,v]}return l}function matrix3d(l,m){if(m.length!==16){return}if(m[15]&&m[2]===0&&m[3]===0&&m[6]===0&&m[7]===0&&m[8]===0&&m[9]===0&&m[10]===1&&m[11]===0&&m[14]===0&&m[15]===1){const{nodes:m}=l;l.value="matrix";l.nodes=[m[0],m[1],m[2],m[3],m[8],m[9],m[10],m[11],m[24],m[25],m[26]]}}const w=new Map([[[1,0,0].toString(),"rotateX"],[[0,1,0].toString(),"rotateY"],[[0,0,1].toString(),"rotate"]]);function rotate3d(l,m){if(m.length!==4){return}const{nodes:v}=l;const y=w.get(m.slice(0,3).toString());if(y){l.value=y;l.nodes=[v[6]]}}function rotateZ(l,m){if(m.length!==1){return}l.value="rotate"}function scale(l,m){if(m.length!==2){return}const{nodes:v}=l;const[y,w]=m;if(y===w){l.nodes=[v[0]];return}if(w===1){l.value="scaleX";l.nodes=[v[0]];return}if(y===1){l.value="scaleY";l.nodes=[v[2]];return}}function scale3d(l,m){if(m.length!==3){return}const{nodes:v}=l;const[y,w,_]=m;if(w===1&&_===1){l.value="scaleX";l.nodes=[v[0]];return}if(y===1&&_===1){l.value="scaleY";l.nodes=[v[2]];return}if(y===1&&w===1){l.value="scaleZ";l.nodes=[v[4]];return}}function translate(l,m){if(m.length!==2){return}const{nodes:v}=l;if(m[1]===0){l.nodes=[v[0]];return}if(m[0]===0){l.value="translateY";l.nodes=[v[2]];return}}function translate3d(l,m){if(m.length!==3){return}const{nodes:v}=l;if(m[0]===0&&m[1]===0){l.value="translateZ";l.nodes=[v[4]]}}const _=new Map([["matrix3d",matrix3d],["rotate3d",rotate3d],["rotateZ",rotateZ],["scale",scale],["scale3d",scale3d],["translate",translate],["translate3d",translate3d]]);function normalizeReducerName(l){const m=l.toLowerCase();if(m==="rotatez"){return"rotateZ"}return m}function reduce(l){if(l.type==="function"){const m=normalizeReducerName(l.value);const v=_.get(m);if(v!==undefined){v(l,l.nodes.reduce(getValues,[]))}}return false}function pluginCreator(){return{postcssPlugin:"postcss-reduce-transforms",prepare(){const l=new Map;return{OnceExit(m){m.walkDecls(/transform$/i,(m=>{const v=m.value;if(!v){return}if(l.has(v)){m.value=l.get(v);return}const w=y(v).walk(reduce).toString();m.value=w;l.set(v,w)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},6206:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(6440));var w=_interopRequireWildcard(v(7759));function _getRequireWildcardCache(l){if(typeof WeakMap!=="function")return null;var m=new WeakMap;var v=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?v:m})(l)}function _interopRequireWildcard(l,m){if(!m&&l&&l.__esModule){return l}if(l===null||typeof l!=="object"&&typeof l!=="function"){return{default:l}}var v=_getRequireWildcardCache(m);if(v&&v.has(l)){return v.get(l)}var y={};var w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l){if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var k=w?Object.getOwnPropertyDescriptor(l,_):null;if(k&&(k.get||k.set)){Object.defineProperty(y,_,k)}else{y[_]=l[_]}}}y["default"]=l;if(v){v.set(l,y)}return y}function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}var _=function parser(l){return new y["default"](l)};Object.assign(_,w);delete _.__esModule;var k=_;m["default"]=k;l.exports=m.default},5838:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(7774));var w=_interopRequireDefault(v(372));var _=_interopRequireDefault(v(7113));var k=_interopRequireDefault(v(6723));var S=_interopRequireDefault(v(8362));var C=_interopRequireDefault(v(4088));var E=_interopRequireDefault(v(4931));var O=_interopRequireDefault(v(9573));var P=_interopRequireWildcard(v(4910));var L=_interopRequireDefault(v(2767));var T=_interopRequireDefault(v(7805));var D=_interopRequireDefault(v(7066));var R=_interopRequireDefault(v(866));var A=_interopRequireWildcard(v(9668));var q=_interopRequireWildcard(v(6004));var F=_interopRequireWildcard(v(7105));var V=v(4371);var $,z;function _getRequireWildcardCache(l){if(typeof WeakMap!=="function")return null;var m=new WeakMap;var v=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?v:m})(l)}function _interopRequireWildcard(l,m){if(!m&&l&&l.__esModule){return l}if(l===null||typeof l!=="object"&&typeof l!=="function"){return{default:l}}var v=_getRequireWildcardCache(m);if(v&&v.has(l)){return v.get(l)}var y={};var w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l){if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var k=w?Object.getOwnPropertyDescriptor(l,_):null;if(k&&(k.get||k.set)){Object.defineProperty(y,_,k)}else{y[_]=l[_]}}}y["default"]=l;if(v){v.set(l,y)}return y}function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v0){var y=this.current.last;if(y){var w=this.convertWhitespaceNodesToSpace(v),_=w.space,k=w.rawSpace;if(k!==undefined){y.rawSpaceAfter+=k}y.spaces.after+=_}else{v.forEach((function(m){return l.newNode(m)}))}}return}var S=this.currToken;var C=undefined;if(m>this.position){C=this.parseWhitespaceEquivalentTokens(m)}var E;if(this.isNamedCombinator()){E=this.namedCombinator()}else if(this.currToken[A.FIELDS.TYPE]===q.combinator){E=new T["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[A.FIELDS.START_POS]});this.position++}else if(U[this.currToken[A.FIELDS.TYPE]]){}else if(!C){this.unexpected()}if(E){if(C){var O=this.convertWhitespaceNodesToSpace(C),P=O.space,L=O.rawSpace;E.spaces.before=P;E.rawSpaceBefore=L}}else{var D=this.convertWhitespaceNodesToSpace(C,true),R=D.space,F=D.rawSpace;if(!F){F=R}var V={};var $={spaces:{}};if(R.endsWith(" ")&&F.endsWith(" ")){V.before=R.slice(0,R.length-1);$.spaces.before=F.slice(0,F.length-1)}else if(R.startsWith(" ")&&F.startsWith(" ")){V.after=R.slice(1);$.spaces.after=F.slice(1)}else{$.value=F}E=new T["default"]({value:" ",source:getTokenSourceSpan(S,this.tokens[this.position-1]),sourceIndex:S[A.FIELDS.START_POS],spaces:V,raws:$})}if(this.currToken&&this.currToken[A.FIELDS.TYPE]===q.space){E.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(E)};l.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var l=new w["default"]({source:{start:tokenStart(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][A.FIELDS.START_POS]});this.current.parent.append(l);this.current=l;this.position++};l.comment=function comment(){var l=this.currToken;this.newNode(new k["default"]({value:this.content(),source:getTokenSource(l),sourceIndex:l[A.FIELDS.START_POS]}));this.position++};l.error=function error(l,m){throw this.root.error(l,m)};l.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[A.FIELDS.START_POS]})};l.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[A.FIELDS.START_POS])};l.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[A.FIELDS.START_POS])};l.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[A.FIELDS.START_POS])};l.unexpectedPipe=function unexpectedPipe(){return this.error("Unexpected '|'.",this.currToken[A.FIELDS.START_POS])};l.namespace=function namespace(){var l=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[A.FIELDS.TYPE]===q.word){this.position++;return this.word(l)}else if(this.nextToken[A.FIELDS.TYPE]===q.asterisk){this.position++;return this.universal(l)}this.unexpectedPipe()};l.nesting=function nesting(){if(this.nextToken){var l=this.content(this.nextToken);if(l==="|"){this.position++;return}}var m=this.currToken;this.newNode(new D["default"]({value:this.content(),source:getTokenSource(m),sourceIndex:m[A.FIELDS.START_POS]}));this.position++};l.parentheses=function parentheses(){var l=this.current.last;var m=1;this.position++;if(l&&l.type===F.PSEUDO){var v=new w["default"]({source:{start:tokenStart(this.tokens[this.position])},sourceIndex:this.tokens[this.position][A.FIELDS.START_POS]});var y=this.current;l.append(v);this.current=v;while(this.position1&&l.nextToken&&l.nextToken[A.FIELDS.TYPE]===q.openParenthesis){l.error("Misplaced parenthesis.",{index:l.nextToken[A.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[A.FIELDS.START_POS])}};l.space=function space(){var l=this.content();if(this.position===0||this.prevToken[A.FIELDS.TYPE]===q.comma||this.prevToken[A.FIELDS.TYPE]===q.openParenthesis||this.current.nodes.every((function(l){return l.type==="comment"}))){this.spaces=this.optionalSpace(l);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[A.FIELDS.TYPE]===q.comma||this.nextToken[A.FIELDS.TYPE]===q.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(l);this.position++}else{this.combinator()}};l.string=function string(){var l=this.currToken;this.newNode(new E["default"]({value:this.content(),source:getTokenSource(l),sourceIndex:l[A.FIELDS.START_POS]}));this.position++};l.universal=function universal(l){var m=this.nextToken;if(m&&this.content(m)==="|"){this.position++;return this.namespace()}var v=this.currToken;this.newNode(new L["default"]({value:this.content(),source:getTokenSource(v),sourceIndex:v[A.FIELDS.START_POS]}),l);this.position++};l.splitWord=function splitWord(l,m){var v=this;var y=this.nextToken;var w=this.content();while(y&&~[q.dollar,q.caret,q.equals,q.word].indexOf(y[A.FIELDS.TYPE])){this.position++;var k=this.content();w+=k;if(k.lastIndexOf("\\")===k.length-1){var E=this.nextToken;if(E&&E[A.FIELDS.TYPE]===q.space){w+=this.requiredSpace(this.content(E));this.position++}}y=this.nextToken}var O=indexesOf(w,".").filter((function(l){var m=w[l-1]==="\\";var v=/^\d+\.\d+%$/.test(w);return!m&&!v}));var P=indexesOf(w,"#").filter((function(l){return w[l-1]!=="\\"}));var L=indexesOf(w,"#{");if(L.length){P=P.filter((function(l){return!~L.indexOf(l)}))}var T=(0,R["default"])(uniqs([0].concat(O,P)));T.forEach((function(y,k){var E=T[k+1]||w.length;var L=w.slice(y,E);if(k===0&&m){return m.call(v,L,T.length)}var D;var R=v.currToken;var q=R[A.FIELDS.START_POS]+T[k];var F=getSource(R[1],R[2]+y,R[3],R[2]+(E-1));if(~O.indexOf(y)){var V={value:L.slice(1),source:F,sourceIndex:q};D=new _["default"](unescapeProp(V,"value"))}else if(~P.indexOf(y)){var $={value:L.slice(1),source:F,sourceIndex:q};D=new S["default"](unescapeProp($,"value"))}else{var z={value:L,source:F,sourceIndex:q};unescapeProp(z,"value");D=new C["default"](z)}v.newNode(D,l);l=null}));this.position++};l.word=function word(l){var m=this.nextToken;if(m&&this.content(m)==="|"){this.position++;return this.namespace()}return this.splitWord(l)};l.loop=function loop(){while(this.position{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(5838));function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}var w=function(){function Processor(l,m){this.func=l||function noop(){};this.funcRes=null;this.options=m}var l=Processor.prototype;l._shouldUpdateSelector=function _shouldUpdateSelector(l,m){if(m===void 0){m={}}var v=Object.assign({},this.options,m);if(v.updateSelector===false){return false}else{return typeof l!=="string"}};l._isLossy=function _isLossy(l){if(l===void 0){l={}}var m=Object.assign({},this.options,l);if(m.lossless===false){return true}else{return false}};l._root=function _root(l,m){if(m===void 0){m={}}var v=new y["default"](l,this._parseOptions(m));return v.root};l._parseOptions=function _parseOptions(l){return{lossy:this._isLossy(l)}};l._run=function _run(l,m){var v=this;if(m===void 0){m={}}return new Promise((function(y,w){try{var _=v._root(l,m);Promise.resolve(v.func(_)).then((function(y){var w=undefined;if(v._shouldUpdateSelector(l,m)){w=_.toString();l.selector=w}return{transform:y,root:_,string:w}})).then(y,w)}catch(l){w(l);return}}))};l._runSync=function _runSync(l,m){if(m===void 0){m={}}var v=this._root(l,m);var y=this.func(v);if(y&&typeof y.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var w=undefined;if(m.updateSelector&&typeof l!=="string"){w=v.toString();l.selector=w}return{transform:y,root:v,string:w}};l.ast=function ast(l,m){return this._run(l,m).then((function(l){return l.root}))};l.astSync=function astSync(l,m){return this._runSync(l,m).root};l.transform=function transform(l,m){return this._run(l,m).then((function(l){return l.transform}))};l.transformSync=function transformSync(l,m){return this._runSync(l,m).transform};l.process=function process(l,m){return this._run(l,m).then((function(l){return l.string||l.root.toString()}))};l.processSync=function processSync(l,m){var v=this._runSync(l,m);return v.string||v.root.toString()};return Processor}();m["default"]=w;l.exports=m.default},4910:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;m.unescapeValue=unescapeValue;var y=_interopRequireDefault(v(441));var w=_interopRequireDefault(v(7949));var _=_interopRequireDefault(v(2551));var k=v(7105);var S;function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v0&&!l.quoted&&v.before.length===0&&!(l.spaces.value&&l.spaces.value.after)){v.before=" "}return defaultAttrConcat(m,v)})))}m.push("]");m.push(this.rawSpaceAfter);return m.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var l=this.quoteMark;return l==="'"||l==='"'},set:function set(l){P()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(l){if(!this._constructed){this._quoteMark=l;return}if(this._quoteMark!==l){this._quoteMark=l;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(l){if(this._constructed){var m=unescapeValue(l),v=m.deprecatedUsage,y=m.unescaped,w=m.quoteMark;if(v){O()}if(y===this._value&&w===this._quoteMark){return}this._value=y;this._quoteMark=w;this._syncRawValue()}else{this._value=l}}},{key:"insensitive",get:function get(){return this._insensitive},set:function set(l){if(!l){this._insensitive=false;if(this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")){this.raws.insensitiveFlag=undefined}}this._insensitive=l}},{key:"attribute",get:function get(){return this._attribute},set:function set(l){this._handleEscapes("attribute",l);this._attribute=l}}]);return Attribute}(_["default"]);m["default"]=T;T.NO_QUOTE=null;T.SINGLE_QUOTE="'";T.DOUBLE_QUOTE='"';var D=(S={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},S[null]={isIdentifier:true},S);function defaultAttrConcat(l,m){return""+m.before+l+m.after}},7113:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(441));var w=v(4371);var _=_interopRequireDefault(v(4938));var k=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Combinator,l);function Combinator(m){var v;v=l.call(this,m)||this;v.type=w.COMBINATOR;return v}return Combinator}(y["default"]);m["default"]=_;l.exports=m.default},6723:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Comment,l);function Comment(m){var v;v=l.call(this,m)||this;v.type=w.COMMENT;return v}return Comment}(y["default"]);m["default"]=_;l.exports=m.default},9374:(l,m,v)=>{"use strict";m.__esModule=true;m.universal=m.tag=m.string=m.selector=m.root=m.pseudo=m.nesting=m.id=m.comment=m.combinator=m.className=m.attribute=void 0;var y=_interopRequireDefault(v(4910));var w=_interopRequireDefault(v(7113));var _=_interopRequireDefault(v(7805));var k=_interopRequireDefault(v(6723));var S=_interopRequireDefault(v(8362));var C=_interopRequireDefault(v(7066));var E=_interopRequireDefault(v(9573));var O=_interopRequireDefault(v(7774));var P=_interopRequireDefault(v(372));var L=_interopRequireDefault(v(4931));var T=_interopRequireDefault(v(4088));var D=_interopRequireDefault(v(2767));function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}var R=function attribute(l){return new y["default"](l)};m.attribute=R;var A=function className(l){return new w["default"](l)};m.className=A;var q=function combinator(l){return new _["default"](l)};m.combinator=q;var F=function comment(l){return new k["default"](l)};m.comment=F;var V=function id(l){return new S["default"](l)};m.id=V;var $=function nesting(l){return new C["default"](l)};m.nesting=$;var z=function pseudo(l){return new E["default"](l)};m.pseudo=z;var U=function root(l){return new O["default"](l)};m.root=U;var W=function selector(l){return new P["default"](l)};m.selector=W;var B=function string(l){return new L["default"](l)};m.string=B;var Q=function tag(l){return new T["default"](l)};m.tag=Q;var Y=function universal(l){return new D["default"](l)};m.universal=Y},304:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=_interopRequireWildcard(v(7105));function _getRequireWildcardCache(l){if(typeof WeakMap!=="function")return null;var m=new WeakMap;var v=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?v:m})(l)}function _interopRequireWildcard(l,m){if(!m&&l&&l.__esModule){return l}if(l===null||typeof l!=="object"&&typeof l!=="function"){return{default:l}}var v=_getRequireWildcardCache(m);if(v&&v.has(l)){return v.get(l)}var y={};var w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l){if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var k=w?Object.getOwnPropertyDescriptor(l,_):null;if(k&&(k.get||k.set)){Object.defineProperty(y,_,k)}else{y[_]=l[_]}}}y["default"]=l;if(v){v.set(l,y)}return y}function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _createForOfIteratorHelperLoose(l,m){var v=typeof Symbol!=="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(v)return(v=v.call(l)).next.bind(v);if(Array.isArray(l)||(v=_unsupportedIterableToArray(l))||m&&l&&typeof l.length==="number"){if(v)l=v;var y=0;return function(){if(y>=l.length)return{done:true};return{done:false,value:l[y++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(l,m){if(!l)return;if(typeof l==="string")return _arrayLikeToArray(l,m);var v=Object.prototype.toString.call(l).slice(8,-1);if(v==="Object"&&l.constructor)v=l.constructor.name;if(v==="Map"||v==="Set")return Array.from(l);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return _arrayLikeToArray(l,m)}function _arrayLikeToArray(l,m){if(m==null||m>l.length)m=l.length;for(var v=0,y=new Array(m);v=l){this.indexes[v]=m-1}}return this};m.removeAll=function removeAll(){for(var l=_createForOfIteratorHelperLoose(this.nodes),m;!(m=l()).done;){var v=m.value;v.parent=undefined}this.nodes=[];return this};m.empty=function empty(){return this.removeAll()};m.insertAfter=function insertAfter(l,m){m.parent=this;var v=this.index(l);this.nodes.splice(v+1,0,m);m.parent=this;var y;for(var w in this.indexes){y=this.indexes[w];if(v<=y){this.indexes[w]=y+1}}return this};m.insertBefore=function insertBefore(l,m){m.parent=this;var v=this.index(l);this.nodes.splice(v,0,m);m.parent=this;var y;for(var w in this.indexes){y=this.indexes[w];if(y<=v){this.indexes[w]=y+1}}return this};m._findChildAtPosition=function _findChildAtPosition(l,m){var v=undefined;this.each((function(y){if(y.atPosition){var w=y.atPosition(l,m);if(w){v=w;return false}}else if(y.isAtPosition(l,m)){v=y;return false}}));return v};m.atPosition=function atPosition(l,m){if(this.isAtPosition(l,m)){return this._findChildAtPosition(l,m)||this}else{return undefined}};m._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};m.each=function each(l){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var m=this.lastEach;this.indexes[m]=0;if(!this.length){return undefined}var v,y;while(this.indexes[m]{"use strict";m.__esModule=true;m.isComment=m.isCombinator=m.isClassName=m.isAttribute=void 0;m.isContainer=isContainer;m.isIdentifier=void 0;m.isNamespace=isNamespace;m.isNesting=void 0;m.isNode=isNode;m.isPseudo=void 0;m.isPseudoClass=isPseudoClass;m.isPseudoElement=isPseudoElement;m.isUniversal=m.isTag=m.isString=m.isSelector=m.isRoot=void 0;var y=v(7105);var w;var _=(w={},w[y.ATTRIBUTE]=true,w[y.CLASS]=true,w[y.COMBINATOR]=true,w[y.COMMENT]=true,w[y.ID]=true,w[y.NESTING]=true,w[y.PSEUDO]=true,w[y.ROOT]=true,w[y.SELECTOR]=true,w[y.STRING]=true,w[y.TAG]=true,w[y.UNIVERSAL]=true,w);function isNode(l){return typeof l==="object"&&_[l.type]}function isNodeType(l,m){return isNode(m)&&m.type===l}var k=isNodeType.bind(null,y.ATTRIBUTE);m.isAttribute=k;var S=isNodeType.bind(null,y.CLASS);m.isClassName=S;var C=isNodeType.bind(null,y.COMBINATOR);m.isCombinator=C;var E=isNodeType.bind(null,y.COMMENT);m.isComment=E;var O=isNodeType.bind(null,y.ID);m.isIdentifier=O;var P=isNodeType.bind(null,y.NESTING);m.isNesting=P;var L=isNodeType.bind(null,y.PSEUDO);m.isPseudo=L;var T=isNodeType.bind(null,y.ROOT);m.isRoot=T;var D=isNodeType.bind(null,y.SELECTOR);m.isSelector=D;var R=isNodeType.bind(null,y.STRING);m.isString=R;var A=isNodeType.bind(null,y.TAG);m.isTag=A;var q=isNodeType.bind(null,y.UNIVERSAL);m.isUniversal=q;function isPseudoElement(l){return L(l)&&l.value&&(l.value.startsWith("::")||l.value.toLowerCase()===":before"||l.value.toLowerCase()===":after"||l.value.toLowerCase()===":first-letter"||l.value.toLowerCase()===":first-line")}function isPseudoClass(l){return L(l)&&!isPseudoElement(l)}function isContainer(l){return!!(isNode(l)&&l.walk)}function isNamespace(l){return k(l)||A(l)}},8362:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(ID,l);function ID(m){var v;v=l.call(this,m)||this;v.type=w.ID;return v}var m=ID.prototype;m.valueToString=function valueToString(){return"#"+l.prototype.valueToString.call(this)};return ID}(y["default"]);m["default"]=_;l.exports=m.default},7759:(l,m,v)=>{"use strict";m.__esModule=true;var y=v(7105);Object.keys(y).forEach((function(l){if(l==="default"||l==="__esModule")return;if(l in m&&m[l]===y[l])return;m[l]=y[l]}));var w=v(9374);Object.keys(w).forEach((function(l){if(l==="default"||l==="__esModule")return;if(l in m&&m[l]===w[l])return;m[l]=w[l]}));var _=v(5943);Object.keys(_).forEach((function(l){if(l==="default"||l==="__esModule")return;if(l in m&&m[l]===_[l])return;m[l]=_[l]}))},2551:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(441));var w=v(4371);var _=_interopRequireDefault(v(4938));function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Nesting,l);function Nesting(m){var v;v=l.call(this,m)||this;v.type=w.NESTING;v.value="&";return v}return Nesting}(y["default"]);m["default"]=_;l.exports=m.default},4938:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=v(4371);function _defineProperties(l,m){for(var v=0;vl){return false}if(this.source.end.linem){return false}if(this.source.end.line===l&&this.source.end.column{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(304));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Pseudo,l);function Pseudo(m){var v;v=l.call(this,m)||this;v.type=w.PSEUDO;return v}var m=Pseudo.prototype;m.toString=function toString(){var l=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),l,this.rawSpaceAfter].join("")};return Pseudo}(y["default"]);m["default"]=_;l.exports=m.default},7774:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(304));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(304));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Selector,l);function Selector(m){var v;v=l.call(this,m)||this;v.type=w.SELECTOR;return v}return Selector}(y["default"]);m["default"]=_;l.exports=m.default},4931:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(String,l);function String(m){var v;v=l.call(this,m)||this;v.type=w.STRING;return v}return String}(y["default"]);m["default"]=_;l.exports=m.default},4088:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(2551));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Tag,l);function Tag(m){var v;v=l.call(this,m)||this;v.type=w.TAG;return v}return Tag}(y["default"]);m["default"]=_;l.exports=m.default},7105:(l,m)=>{"use strict";m.__esModule=true;m.UNIVERSAL=m.TAG=m.STRING=m.SELECTOR=m.ROOT=m.PSEUDO=m.NESTING=m.ID=m.COMMENT=m.COMBINATOR=m.CLASS=m.ATTRIBUTE=void 0;var v="tag";m.TAG=v;var y="string";m.STRING=y;var w="selector";m.SELECTOR=w;var _="root";m.ROOT=_;var k="pseudo";m.PSEUDO=k;var S="nesting";m.NESTING=S;var C="id";m.ID=C;var E="comment";m.COMMENT=E;var O="combinator";m.COMBINATOR=O;var P="class";m.CLASS=P;var L="attribute";m.ATTRIBUTE=L;var T="universal";m.UNIVERSAL=T},2767:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(2551));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Universal,l);function Universal(m){var v;v=l.call(this,m)||this;v.type=w.UNIVERSAL;v.value="*";return v}return Universal}(y["default"]);m["default"]=_;l.exports=m.default},866:(l,m)=>{"use strict";m.__esModule=true;m["default"]=sortAscending;function sortAscending(l){return l.sort((function(l,m){return l-m}))}l.exports=m.default},6004:(l,m)=>{"use strict";m.__esModule=true;m.word=m.tilde=m.tab=m.str=m.space=m.slash=m.singleQuote=m.semicolon=m.plus=m.pipe=m.openSquare=m.openParenthesis=m.newline=m.greaterThan=m.feed=m.equals=m.doubleQuote=m.dollar=m.cr=m.comment=m.comma=m.combinator=m.colon=m.closeSquare=m.closeParenthesis=m.caret=m.bang=m.backslash=m.at=m.asterisk=m.ampersand=void 0;var v=38;m.ampersand=v;var y=42;m.asterisk=y;var w=64;m.at=w;var _=44;m.comma=_;var k=58;m.colon=k;var S=59;m.semicolon=S;var C=40;m.openParenthesis=C;var E=41;m.closeParenthesis=E;var O=91;m.openSquare=O;var P=93;m.closeSquare=P;var L=36;m.dollar=L;var T=126;m.tilde=T;var D=94;m.caret=D;var R=43;m.plus=R;var A=61;m.equals=A;var q=124;m.pipe=q;var F=62;m.greaterThan=F;var V=32;m.space=V;var $=39;m.singleQuote=$;var z=34;m.doubleQuote=z;var U=47;m.slash=U;var W=33;m.bang=W;var B=92;m.backslash=B;var Q=13;m.cr=Q;var Y=12;m.feed=Y;var G=10;m.newline=G;var J=9;m.tab=J;var X=$;m.str=X;var Z=-1;m.comment=Z;var K=-2;m.word=K;var ee=-3;m.combinator=ee},9668:(l,m,v)=>{"use strict";m.__esModule=true;m.FIELDS=void 0;m["default"]=tokenize;var y=_interopRequireWildcard(v(6004));var w,_;function _getRequireWildcardCache(l){if(typeof WeakMap!=="function")return null;var m=new WeakMap;var v=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?v:m})(l)}function _interopRequireWildcard(l,m){if(!m&&l&&l.__esModule){return l}if(l===null||typeof l!=="object"&&typeof l!=="function"){return{default:l}}var v=_getRequireWildcardCache(m);if(v&&v.has(l)){return v.get(l)}var y={};var w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l){if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var k=w?Object.getOwnPropertyDescriptor(l,_):null;if(k&&(k.get||k.set)){Object.defineProperty(y,_,k)}else{y[_]=l[_]}}}y["default"]=l;if(v){v.set(l,y)}return y}var k=(w={},w[y.tab]=true,w[y.newline]=true,w[y.cr]=true,w[y.feed]=true,w);var S=(_={},_[y.space]=true,_[y.tab]=true,_[y.newline]=true,_[y.cr]=true,_[y.feed]=true,_[y.ampersand]=true,_[y.asterisk]=true,_[y.bang]=true,_[y.comma]=true,_[y.colon]=true,_[y.semicolon]=true,_[y.openParenthesis]=true,_[y.closeParenthesis]=true,_[y.openSquare]=true,_[y.closeSquare]=true,_[y.singleQuote]=true,_[y.doubleQuote]=true,_[y.plus]=true,_[y.pipe]=true,_[y.tilde]=true,_[y.greaterThan]=true,_[y.equals]=true,_[y.dollar]=true,_[y.caret]=true,_[y.slash]=true,_);var C={};var E="0123456789abcdefABCDEF";for(var O=0;O0){V=S+A;$=F-q[A].length}else{V=S;$=k}U=y.comment;S=V;T=V;L=F-$}else if(O===y.slash){F=C;U=O;T=S;L=C-k;E=F+1}else{F=consumeWord(v,C);U=y.word;T=S;L=F-k}E=F+1;break}m.push([U,S,C-k,T,L,C,E]);if($){k=$;$=null}C=E}return m}},3695:(l,m)=>{"use strict";m.__esModule=true;m["default"]=ensureObject;function ensureObject(l){for(var m=arguments.length,v=new Array(m>1?m-1:0),y=1;y0){var w=v.shift();if(!l[w]){l[w]={}}l=l[w]}}l.exports=m.default},5919:(l,m)=>{"use strict";m.__esModule=true;m["default"]=getProp;function getProp(l){for(var m=arguments.length,v=new Array(m>1?m-1:0),y=1;y0){var w=v.shift();if(!l[w]){return undefined}l=l[w]}return l}l.exports=m.default},4371:(l,m,v)=>{"use strict";m.__esModule=true;m.unesc=m.stripComments=m.getProp=m.ensureObject=void 0;var y=_interopRequireDefault(v(7949));m.unesc=y["default"];var w=_interopRequireDefault(v(5919));m.getProp=w["default"];var _=_interopRequireDefault(v(3695));m.ensureObject=_["default"];var k=_interopRequireDefault(v(7945));m.stripComments=k["default"];function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}},7945:(l,m)=>{"use strict";m.__esModule=true;m["default"]=stripComments;function stripComments(l){var m="";var v=l.indexOf("/*");var y=0;while(v>=0){m=m+l.slice(y,v);var w=l.indexOf("*/",v+2);if(w<0){return m}y=w+2;v=l.indexOf("/*",y)}m=m+l.slice(y);return m}l.exports=m.default},7949:(l,m)=>{"use strict";m.__esModule=true;m["default"]=unesc;function gobbleHex(l){var m=l.toLowerCase();var v="";var y=false;for(var w=0;w<6&&m[w]!==undefined;w++){var _=m.charCodeAt(w);var k=_>=97&&_<=102||_>=48&&_<=57;y=_===32;if(!k){break}v+=m[w]}if(v.length===0){return undefined}var S=parseInt(v,16);var C=S>=55296&&S<=57343;if(C||S===0||S>1114111){return["�",v.length+(y?1:0)]}return[String.fromCodePoint(S),v.length+(y?1:0)]}var v=/\\/;function unesc(l){var m=v.test(l);if(!m){return l}var y="";for(var w=0;w{"use strict";const y=v(6206);function generateUniqueSelector(l){const m=new Map;const collectUniqueSelectors=l=>{for(const v of l.nodes){const l=[];const y=v.clone();y.walk((m=>{if(m.type==="comment"){l.push(m.value);m.remove()}}));const w=y.toString().trim();const _=m.get(w);if(!_){m.set(w,v.toString())}else if(l.length){m.set(w,`${_}${l.join("")}`)}}};y(collectUniqueSelectors).processSync(l);return[...m.entries()].sort((([l],[m])=>l>m?1:ll)).join()}function pluginCreator(){return{postcssPlugin:"postcss-unique-selectors",OnceExit(l){l.walkRules((l=>{if(l.raws.selector&&l.raws.selector.raw){l.raws.selector.raw=generateUniqueSelector(l.raws.selector.raw)}else{l.selector=generateUniqueSelector(l.selector)}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},2601:l=>{"use strict";const m="firefox 2";const v="ie 5.5";const y="ie 6";const w="ie 7";const _="ie 8";const k="opera 9";l.exports={FF_2:m,IE_5_5:v,IE_6:y,IE_7:w,IE_8:_,OP_9:k}},6561:l=>{"use strict";const m="media query";const v="property";const y="selector";const w="value";l.exports={MEDIA_QUERY:m,PROPERTY:v,SELECTOR:y,VALUE:w}},1891:l=>{"use strict";const m="atrule";const v="decl";const y="rule";l.exports={ATRULE:m,DECL:v,RULE:y}},8833:l=>{"use strict";const m="body";const v="html";l.exports={BODY:m,HTML:v}},5935:l=>{"use strict";l.exports=function exists(l,m,v){const y=l.at(m);return y&&y.value&&y.value.toLowerCase()===v}},1948:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const _=v(1919);function pluginCreator(l={}){return{postcssPlugin:"stylehacks",prepare(m){const{stats:v,env:k,from:S,file:C}=m.opts||{};const E=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(S||C||__filename),env:l.env||k});return{OnceExit(v){const y=[];for(const l of _){const v=new l(m);if(!E.some((l=>v.targets.has(l)))){y.push(v)}}v.walk((m=>{y.forEach((v=>{if(!v.nodeTypes.has(m.type)){return}if(l.lint){return v.detectAndWarn(m)}return v.detectAndResolve(m)}))}))}}}}}pluginCreator.detect=l=>_.some((m=>{const v=new m;return v.any(l)}));pluginCreator.postcss=true;l.exports=pluginCreator},7114:l=>{"use strict";l.exports=function isMixin(l){const{selector:m}=l;if(!m||m[m.length-1]===":"){return true}return false}},822:l=>{"use strict";l.exports=class BasePlugin{constructor(l,m,v){this.nodes=[];this.targets=new Set(l);this.nodeTypes=new Set(m);this.result=v}push(l,m){l._stylehacks=Object.assign({},m,{message:`Bad ${m.identifier}: ${m.hack}`,browsers:this.targets});this.nodes.push(l)}any(l){if(this.nodeTypes.has(l.type)){this.detect(l);return l._stylehacks!==undefined}return false}detectAndResolve(l){this.nodes=[];this.detect(l);return this.resolve()}detectAndWarn(l){this.nodes=[];this.detect(l);return this.warn()}detect(l){throw new Error("You need to implement this method in a subclass.")}resolve(){return this.nodes.forEach((l=>l.remove()))}warn(){return this.nodes.forEach((l=>{const{message:m,browsers:v,identifier:y,hack:w}=l._stylehacks;return l.warn(this.result,m+JSON.stringify({browsers:v,identifier:y,hack:w}))}))}}},3447:(l,m,v)=>{"use strict";const y=v(6206);const w=v(5935);const _=v(7114);const k=v(822);const{FF_2:S}=v(2601);const{SELECTOR:C}=v(6561);const{RULE:E}=v(1891);const{BODY:O}=v(8833);l.exports=class BodyEmpty extends k{constructor(l){super([S],[E],l)}detect(l){if(_(l)){return}y(this.analyse(l)).processSync(l.selector)}analyse(l){return m=>{m.each((m=>{if(w(m,0,O)&&w(m,1,":empty")&&w(m,2," ")&&m.at(3)){this.push(l,{identifier:C,hack:m.toString()})}}))}}}},3738:(l,m,v)=>{"use strict";const y=v(6206);const w=v(5935);const _=v(7114);const k=v(822);const{IE_5_5:S,IE_6:C,IE_7:E}=v(2601);const{SELECTOR:O}=v(6561);const{RULE:P}=v(1891);const{BODY:L,HTML:T}=v(8833);l.exports=class HtmlCombinatorCommentBody extends k{constructor(l){super([S,C,E],[P],l)}detect(l){if(_(l)){return}if(l.raws.selector&&l.raws.selector.raw){y(this.analyse(l)).processSync(l.raws.selector.raw)}}analyse(l){return m=>{m.each((m=>{if(w(m,0,T)&&(w(m,1,">")||w(m,1,"~"))&&m.at(2)&&m.at(2).type==="comment"&&w(m,3," ")&&w(m,4,L)&&w(m,5," ")&&m.at(6)){this.push(l,{identifier:O,hack:m.toString()})}}))}}}},8586:(l,m,v)=>{"use strict";const y=v(6206);const w=v(5935);const _=v(7114);const k=v(822);const{OP_9:S}=v(2601);const{SELECTOR:C}=v(6561);const{RULE:E}=v(1891);const{HTML:O}=v(8833);l.exports=class HtmlFirstChild extends k{constructor(l){super([S],[E],l)}detect(l){if(_(l)){return}y(this.analyse(l)).processSync(l.selector)}analyse(l){return m=>{m.each((m=>{if(w(m,0,O)&&w(m,1,":first-child")&&w(m,2," ")&&m.at(3)){this.push(l,{identifier:C,hack:m.toString()})}}))}}}},4147:(l,m,v)=>{"use strict";const y=v(822);const{IE_5_5:w,IE_6:_,IE_7:k}=v(2601);const{DECL:S}=v(1891);l.exports=class Important extends y{constructor(l){super([w,_,k],[S],l)}detect(l){const m=l.value.match(/!\w/);if(m&&m.index){const v=l.value.substr(m.index,l.value.length-1);this.push(l,{identifier:"!important",hack:v})}}}},1919:(l,m,v)=>{"use strict";const y=v(3447);const w=v(3738);const _=v(8586);const k=v(4147);const S=v(1878);const C=v(2976);const E=v(1462);const O=v(8798);const P=v(8602);const L=v(7878);const T=v(1700);const D=v(2353);l.exports=[y,w,_,k,S,C,E,O,P,L,T,D]},1878:(l,m,v)=>{"use strict";const y=v(822);const{IE_5_5:w,IE_6:_,IE_7:k}=v(2601);const{PROPERTY:S}=v(6561);const{ATRULE:C,DECL:E}=v(1891);const O="!_$_&_*_)_=_%_+_,_._/_`_]_#_~_?_:_|".split("_");l.exports=class LeadingStar extends y{constructor(l){super([w,_,k],[C,E],l)}detect(l){if(l.type===E){O.forEach((m=>{if(!l.prop.indexOf(m)){this.push(l,{identifier:S,hack:l.prop})}}));const{before:m}=l.raws;if(!m){return}O.forEach((v=>{if(m.includes(v)){this.push(l,{identifier:S,hack:`${m.trim()}${l.prop}`})}}))}else{const{name:m}=l;const v=m.length-1;if(m.lastIndexOf(":")===v){this.push(l,{identifier:S,hack:`@${m.substr(0,v)}`})}}}}},2976:(l,m,v)=>{"use strict";const y=v(822);const{IE_6:w}=v(2601);const{PROPERTY:_}=v(6561);const{DECL:k}=v(1891);function vendorPrefix(l){let m=l.match(/^(-\w+-)/);if(m){return m[0]}return""}l.exports=class LeadingUnderscore extends y{constructor(l){super([w],[k],l)}detect(l){const{before:m}=l.raws;if(m&&m.includes("_")){this.push(l,{identifier:_,hack:`${m.trim()}${l.prop}`})}if(l.prop[0]==="-"&&l.prop[1]!=="-"&&vendorPrefix(l.prop)===""){this.push(l,{identifier:_,hack:l.prop})}}}},1462:(l,m,v)=>{"use strict";const y=v(822);const{IE_8:w}=v(2601);const{MEDIA_QUERY:_}=v(6561);const{ATRULE:k}=v(1891);l.exports=class MediaSlash0 extends y{constructor(l){super([w],[k],l)}detect(l){const m=l.params.trim();if(m.toLowerCase()==="\\0screen"){this.push(l,{identifier:_,hack:m})}}}},8798:(l,m,v)=>{"use strict";const y=v(822);const{IE_5_5:w,IE_6:_,IE_7:k,IE_8:S}=v(2601);const{MEDIA_QUERY:C}=v(6561);const{ATRULE:E}=v(1891);l.exports=class MediaSlash0Slash9 extends y{constructor(l){super([w,_,k,S],[E],l)}detect(l){const m=l.params.trim();if(m.toLowerCase()==="\\0screen\\,screen\\9"){this.push(l,{identifier:C,hack:m})}}}},8602:(l,m,v)=>{"use strict";const y=v(822);const{IE_5_5:w,IE_6:_,IE_7:k}=v(2601);const{MEDIA_QUERY:S}=v(6561);const{ATRULE:C}=v(1891);l.exports=class MediaSlash9 extends y{constructor(l){super([w,_,k],[C],l)}detect(l){const m=l.params.trim();if(m.toLowerCase()==="screen\\9"){this.push(l,{identifier:S,hack:m})}}}},7878:(l,m,v)=>{"use strict";const y=v(822);const{IE_6:w,IE_7:_,IE_8:k}=v(2601);const{VALUE:S}=v(6561);const{DECL:C}=v(1891);l.exports=class Slash9 extends y{constructor(l){super([w,_,k],[C],l)}detect(l){let m=l.value;if(m&&m.length>2&&m.indexOf("\\9")===m.length-2){this.push(l,{identifier:S,hack:m})}}}},1700:(l,m,v)=>{"use strict";const y=v(6206);const w=v(5935);const _=v(7114);const k=v(822);const{IE_5_5:S,IE_6:C}=v(2601);const{SELECTOR:E}=v(6561);const{RULE:O}=v(1891);const{HTML:P}=v(8833);l.exports=class StarHtml extends k{constructor(l){super([S,C],[O],l)}detect(l){if(_(l)){return}y(this.analyse(l)).processSync(l.selector)}analyse(l){return m=>{m.each((m=>{if(w(m,0,"*")&&w(m,1," ")&&w(m,2,P)&&w(m,3," ")&&m.at(4)){this.push(l,{identifier:E,hack:m.toString()})}}))}}}},2353:(l,m,v)=>{"use strict";const y=v(822);const w=v(7114);const{IE_5_5:_,IE_6:k,IE_7:S}=v(2601);const{SELECTOR:C}=v(6561);const{RULE:E}=v(1891);l.exports=class TrailingSlashComma extends y{constructor(l){super([_,k,S],[E],l)}detect(l){if(w(l)){return}const{selector:m}=l;const v=m.trim();if(v.lastIndexOf(",")===m.length-1||v.lastIndexOf("\\")===m.length-1){this.push(l,{identifier:C,hack:m})}}}},6124:(l,m,v)=>{l.exports=v(3837).deprecate},740:(l,m,v)=>{l.exports=function(l={}){const m=Object.assign({},{cssDeclarationSorter:{exclude:true},calc:{exclude:true}},l);return v(9231)(m)}},9536:(l,m,v)=>{const y=v(740);l.exports=(l={},m=v(977))=>{const w=Boolean(l&&l.excludeAll);const _=Object.assign({},l);if(w){for(const l in _){if(!_.hasOwnProperty(l))continue;const m=_[l];if(!Boolean(m)){continue}if(Object.prototype.toString.call(m)==="[object Object]"){_[l]=Object.assign({},{exclude:false},m)}}}const k=Object.assign({},w?{rawCache:true}:undefined,_);const S=[];y(k).plugins.forEach((l=>{if(Array.isArray(l)){let[m,v]=l;m=m.default||m;const y=!w&&typeof v==="undefined"||typeof v==="boolean"&&v||!w&&v&&typeof v==="object"&&!v.exclude||w&&v&&typeof v==="object"&&v.exclude===false;if(y){S.push(m(v))}}else{S.push(l)}}));return m(S)};l.exports.postcss=true},9613:l=>{"use strict";l.exports=require("caniuse-lite")},4907:l=>{"use strict";l.exports=require("next/dist/compiled/browserslist")},8248:l=>{"use strict";l.exports=require("next/dist/compiled/postcss-plugin-stub-for-cssnano-simple")},2045:l=>{"use strict";l.exports=require("next/dist/compiled/postcss-value-parser")},1017:l=>{"use strict";l.exports=require("path")},977:l=>{"use strict";l.exports=require("postcss")},3837:l=>{"use strict";l.exports=require("util")},6680:(l,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:true});const v={animation:["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"],background:["background-image","background-size","background-position","background-repeat","background-origin","background-clip","background-attachment","background-color"],columns:["column-width","column-count"],"column-rule":["column-rule-width","column-rule-style","column-rule-color"],flex:["flex-grow","flex-shrink","flex-basis"],"flex-flow":["flex-direction","flex-wrap"],font:["font-style","font-variant","font-weight","font-stretch","font-size","font-family","line-height"],gap:["column-gap","row-gap"],grid:["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","column-gap","row-gap"],"grid-area":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"grid-column":["grid-column-start","grid-column-end"],"grid-row":["grid-row-start","grid-row-end"],"grid-template":["grid-template-columns","grid-template-rows","grid-template-areas"],"list-style":["list-style-type","list-style-position","list-style-image"],offset:["offset-anchor","offset-distance","offset-path","offset-position","offset-rotate"],padding:["padding-block","padding-block-start","padding-block-end","padding-inline","padding-inline-start","padding-inline-end","padding-top","padding-right","padding-bottom","padding-left"],"padding-block":["padding-block-start","padding-block-end","padding-top","padding-right","padding-bottom","padding-left"],"padding-block-start":["padding-top","padding-right","padding-left"],"padding-block-end":["padding-right","padding-bottom","padding-left"],"padding-inline":["padding-inline-start","padding-inline-end","padding-top","padding-right","padding-bottom","padding-left"],"padding-inline-start":["padding-top","padding-right","padding-left"],"padding-inline-end":["padding-right","padding-bottom","padding-left"],margin:["margin-block","margin-block-start","margin-block-end","margin-inline","margin-inline-start","margin-inline-end","margin-top","margin-right","margin-bottom","margin-left"],"margin-block":["margin-block-start","margin-block-end","margin-top","margin-right","margin-bottom","margin-left"],"margin-inline":["margin-inline-start","margin-inline-end","margin-top","margin-right","margin-bottom","margin-left"],"margin-inline-start":["margin-top","margin-right","margin-bottom","margin-left"],"margin-inline-end":["margin-top","margin-right","margin-bottom","margin-left"],border:["border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-top-width","border-right-width","border-bottom-width","border-left-width","border-inline-start-width","border-inline-end-width","border-block-start-width","border-block-end-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-inline-start-style","border-inline-end-style","border-block-start-style","border-block-end-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-inline-start-color","border-inline-end-color","border-block-start-color","border-block-end-color","border-block","border-block-start","border-block-end","border-block-width","border-block-style","border-block-color","border-inline","border-inline-start","border-inline-end","border-inline-width","border-inline-style","border-inline-color"],"border-top":["border-width","border-style","border-color","border-top-width","border-top-style","border-top-color"],"border-right":["border-width","border-style","border-color","border-right-width","border-right-style","border-right-color"],"border-bottom":["border-width","border-style","border-color","border-bottom-width","border-bottom-style","border-bottom-color"],"border-left":["border-width","border-style","border-color","border-left-width","border-left-style","border-left-color"],"border-color":["border-top-color","border-bottom-color","border-left-color","border-right-color","border-inline-start-color","border-inline-end-color","border-block-start-color","border-block-end-color"],"border-width":["border-top-width","border-bottom-width","border-left-width","border-right-width","border-inline-start-width","border-inline-end-width","border-block-start-width","border-block-end-width"],"border-style":["border-top-style","border-bottom-style","border-left-style","border-right-style","border-inline-start-style","border-inline-end-style","border-block-start-style","border-block-end-style"],"border-radius":["border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius","border-end-end-radius","border-end-start-radius","border-start-end-radius","border-start-start-radius"],"border-block":["border-block-start","border-block-end","border-block-width","border-width","border-block-style","border-style","border-block-color","border-color"],"border-block-start":["border-block-start-width","border-width","border-block-start-style","border-style","border-block-start-color","border-color"],"border-block-end":["border-block-end-width","border-width","border-block-end-style","border-style","border-block-end-color","border-color"],"border-inline":["border-inline-start","border-inline-end","border-inline-width","border-width","border-inline-style","border-style","border-inline-color","border-color"],"border-inline-start":["border-inline-start-width","border-width","border-inline-start-style","border-style","border-inline-start-color","border-color"],"border-inline-end":["border-inline-end-width","border-width","border-inline-end-style","border-style","border-inline-end-color","border-color"],"border-image":["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"],mask:["mask-image","mask-mode","mask-position","mask-size","mask-repeat","mask-origin","mask-clip","mask-composite"],"inline-size":["width","height"],"block-size":["width","height"],"max-inline-size":["max-width","max-height"],"max-block-size":["max-width","max-height"],inset:["inset-block","inset-block-start","inset-block-end","inset-inline","inset-inline-start","inset-inline-end","top","right","bottom","left"],"inset-block":["inset-block-start","inset-block-end","top","right","bottom","left"],"inset-inline":["inset-inline-start","inset-inline-end","top","right","bottom","left"],outline:["outline-color","outline-style","outline-width"],overflow:["overflow-x","overflow-y"],"place-content":["align-content","justify-content"],"place-items":["align-items","justify-items"],"place-self":["align-self","justify-self"],"text-decoration":["text-decoration-color","text-decoration-style","text-decoration-line"],transition:["transition-delay","transition-duration","transition-property","transition-timing-function"],"text-emphasis":["text-emphasis-style","text-emphasis-color"],"font-synthesis":["font-synthesis-weight","font-synthesis-style","font-synthesis-small-caps","font-synthesis-position"]};function bubbleSort(l,m){let v=l.length-1;while(v>0){let y=0;for(let w=0;w0){const m=l[w+1];l[w+1]=l[w];l[w]=m;y=w}}v=y}return l}function __variableDynamicImportRuntime0__(l){switch(l){case"../orders/alphabetical.mjs":return Promise.resolve().then((function(){return _}));case"../orders/concentric-css.mjs":return Promise.resolve().then((function(){return S}));case"../orders/smacss.mjs":return Promise.resolve().then((function(){return E}));default:return new Promise((function(m,v){(typeof queueMicrotask==="function"?queueMicrotask:setTimeout)(v.bind(null,new Error("Unknown variable dynamic import: "+l)))}))}}const y=["alphabetical","concentric-css","smacss"];const cssDeclarationSorter=({order:l="alphabetical",keepOverrides:m=false}={})=>({postcssPlugin:"css-declaration-sorter",OnceExit(w){let withKeepOverrides=l=>l;if(m){withKeepOverrides=withOverridesComparator(v)}if(typeof l==="function"){return processCss({css:w,comparator:withKeepOverrides(l)})}if(!y.includes(l))return Promise.reject(Error([`Invalid built-in order '${l}' provided.`,`Available built-in orders are: ${y}`].join("\n")));return __variableDynamicImportRuntime0__(`../orders/${l}.mjs`).then((({properties:l})=>processCss({css:w,comparator:withKeepOverrides(orderComparator(l))})))}});cssDeclarationSorter.postcss=true;function processCss({css:l,comparator:m}){const v=[];const y=[];l.walk((l=>{const m=l.nodes;const w=l.type;if(w==="comment"){const m=l.raws.before&&l.raws.before.includes("\n");const y=m&&!l.next();const w=!l.prev()&&!l.next()||!l.parent;if(y||w||l.parent.type==="root"){return}if(m){const m=l.next()||l.prev();if(m){v.unshift({comment:l,pairedNode:m,insertPosition:l.next()?"Before":"After"});l.remove()}}else{const m=l.prev()||l.next();if(m){v.push({comment:l,pairedNode:m,insertPosition:"After"});l.remove()}}return}const _=w==="rule"||w==="atrule";if(_&&m&&m.length>1){y.push(m)}}));y.forEach((l=>{sortCssDeclarations({nodes:l,comparator:m})}));v.forEach((l=>{const m=l.pairedNode;l.comment.remove();m.parent&&m.parent["insert"+l.insertPosition](m,l.comment)}))}function sortCssDeclarations({nodes:l,comparator:m}){bubbleSort(l,((l,v)=>{if(l.type==="decl"&&v.type==="decl"){return m(l.prop,v.prop)}else{return compareDifferentType(l,v)}}))}function withOverridesComparator(l){return function(m){return function(v,y){v=removeVendorPrefix(v);y=removeVendorPrefix(y);if(l[v]&&l[v].includes(y))return 0;if(l[y]&&l[y].includes(v))return 0;return m(v,y)}}}function orderComparator(l){return function(m,v){const y=l.indexOf(v);if(y===-1){return 0}return l.indexOf(m)-y}}function compareDifferentType(l,m){if(m.type==="atrule"||l.type==="atrule"){return 0}return l.type==="decl"?-1:m.type==="decl"?1:0}function removeVendorPrefix(l){return l.replace(/^-\w+-/,"")}const w=["all","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","accent-color","align-content","align-items","align-self","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","ascent-override","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-source","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip-path","color","color-interpolation","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-height","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cursor","descent-override","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphens","image-orientation","image-rendering","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-gap-override","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","math-depth","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","print-color-adjust","quotes","resize","right","rotate","row-gap","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","size-adjust","src","tab-size","table-layout","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","text-wrap","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-select","vertical-align","visibility","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","writing-mode","z-index"];var _=Object.freeze({__proto__:null,properties:w});const k=["all","display","position","top","right","bottom","left","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","grid","grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","column-gap","row-gap","grid-area","grid-row","grid-row-start","grid-row-end","grid-column","grid-column-start","grid-column-end","grid-template","flex","flex-grow","flex-shrink","flex-basis","flex-direction","flex-flow","flex-wrap","box-decoration-break","place-content","align-content","justify-content","place-items","align-items","justify-items","place-self","align-self","justify-self","vertical-align","baseline-source","order","float","clear","shape-margin","shape-outside","shape-image-threshold","orphans","gap","columns","column-fill","column-rule","column-rule-width","column-rule-style","column-rule-color","column-width","column-span","column-count","break-before","break-after","break-inside","page","page-break-before","page-break-after","page-break-inside","transform","transform-box","transform-origin","transform-style","translate","rotate","scale","perspective","perspective-origin","appearance","visibility","content-visibility","opacity","z-index","paint-order","mix-blend-mode","backface-visibility","backdrop-filter","clip-path","mask","mask-border","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-image","mask-mode","mask-position","mask-size","mask-repeat","mask-origin","mask-clip","mask-composite","mask-type","filter","animation","animation-composition","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","will-change","counter-increment","counter-reset","counter-set","cursor","box-sizing","contain","contain-intrinsic-height","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","outline","outline-color","outline-style","outline-width","outline-offset","box-shadow","border","border-top","border-right","border-bottom","border-left","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-style","border-top-style","border-right-style","border-bottom-style","border-left-style","border-color","border-top-color","border-right-color","border-bottom-color","border-left-color","border-radius","border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius","border-inline","border-inline-width","border-inline-style","border-inline-color","border-inline-start","border-inline-start-width","border-inline-start-style","border-inline-start-color","border-inline-end","border-inline-end-width","border-inline-end-style","border-inline-end-color","border-block","border-block-width","border-block-style","border-block-color","border-block-start","border-block-start-width","border-block-start-style","border-block-start-color","border-block-end","border-block-end-width","border-block-end-style","border-block-end-color","border-image","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat","border-collapse","border-spacing","border-start-start-radius","border-start-end-radius","border-end-start-radius","border-end-end-radius","background","background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color","background-blend-mode","background-position-x","background-position-y","isolation","padding","padding-top","padding-right","padding-bottom","padding-left","padding-inline","padding-inline-start","padding-inline-end","padding-block","padding-block-start","padding-block-end","image-orientation","image-rendering","aspect-ratio","width","min-width","max-width","height","min-height","max-height","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","inline-size","min-inline-size","max-inline-size","block-size","min-block-size","max-block-size","table-layout","caption-side","empty-cells","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","resize","object-fit","object-position","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","touch-action","pointer-events","content","quotes","hanging-punctuation","color","color-interpolation","accent-color","print-color-adjust","forced-color-adjust","color-scheme","caret-color","font","font-style","font-variant","font-weight","font-stretch","font-size","size-adjust","line-height","src","font-family","font-display","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size-adjust","font-synthesis","font-synthesis-weight","font-synthesis-style","font-synthesis-small-caps","font-synthesis-position","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-feature-settings","ascent-override","descent-override","line-gap-override","hyphens","hyphenate-character","letter-spacing","line-break","list-style","list-style-type","list-style-image","list-style-position","writing-mode","direction","unicode-bidi","unicode-range","user-select","ruby-position","math-depth","math-style","text-combine-upright","text-align","text-align-last","text-decoration","text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness","text-decoration-skip-ink","text-emphasis","text-emphasis-style","text-emphasis-color","text-emphasis-position","text-indent","text-justify","text-underline-position","text-underline-offset","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-wrap","white-space","white-space-collapse","word-break","word-spacing","overflow-wrap","tab-size","widows"];var S=Object.freeze({__proto__:null,properties:k});const C=["all","box-sizing","contain","contain-intrinsic-height","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","display","appearance","visibility","content-visibility","z-index","paint-order","position","top","right","bottom","left","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","grid","grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","column-gap","row-gap","grid-area","grid-row","grid-row-start","grid-row-end","grid-column","grid-column-start","grid-column-end","grid-template","flex","flex-grow","flex-shrink","flex-basis","flex-direction","flex-flow","flex-wrap","box-decoration-break","place-content","place-items","place-self","align-content","align-items","align-self","justify-content","justify-items","justify-self","order","aspect-ratio","width","min-width","max-width","height","min-height","max-height","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","inline-size","min-inline-size","max-inline-size","block-size","min-block-size","max-block-size","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","padding","padding-top","padding-right","padding-bottom","padding-left","padding-inline","padding-inline-start","padding-inline-end","padding-block","padding-block-start","padding-block-end","float","clear","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","orphans","gap","columns","column-fill","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-count","column-width","object-fit","object-position","transform","transform-box","transform-origin","transform-style","translate","rotate","scale","border","border-top","border-right","border-bottom","border-left","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-style","border-top-style","border-right-style","border-bottom-style","border-left-style","border-radius","border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius","border-inline","border-inline-color","border-inline-style","border-inline-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-block","border-block-color","border-block-style","border-block-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-top-color","border-right-color","border-bottom-color","border-left-color","border-collapse","border-spacing","border-start-start-radius","border-start-end-radius","border-end-start-radius","border-end-end-radius","outline","outline-color","outline-style","outline-width","outline-offset","backdrop-filter","backface-visibility","background","background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color","background-blend-mode","background-position-x","background-position-y","box-shadow","isolation","content","quotes","hanging-punctuation","color","color-interpolation","accent-color","print-color-adjust","forced-color-adjust","color-scheme","caret-color","font","font-style","font-variant","font-weight","src","font-stretch","font-size","size-adjust","line-height","font-family","font-display","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size-adjust","font-synthesis","font-synthesis-weight","font-synthesis-style","font-synthesis-small-caps","font-synthesis-position","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-feature-settings","ascent-override","descent-override","line-gap-override","hyphens","hyphenate-character","letter-spacing","line-break","list-style","list-style-image","list-style-position","list-style-type","direction","text-align","text-align-last","text-decoration","text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness","text-decoration-skip-ink","text-emphasis","text-emphasis-style","text-emphasis-color","text-emphasis-position","text-indent","text-justify","text-underline-position","text-underline-offset","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-wrap","vertical-align","baseline-source","white-space","white-space-collapse","word-break","word-spacing","overflow-wrap","animation","animation-composition","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name","mix-blend-mode","break-before","break-after","break-inside","page","page-break-before","page-break-after","page-break-inside","caption-side","clip-path","counter-increment","counter-reset","counter-set","cursor","empty-cells","filter","image-orientation","image-rendering","mask","mask-border","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","opacity","perspective","perspective-origin","pointer-events","resize","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","tab-size","table-layout","ruby-position","math-depth","math-style","text-combine-upright","touch-action","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","will-change","unicode-bidi","unicode-range","user-select","widows","writing-mode"];var E=Object.freeze({__proto__:null,properties:C});m.cssDeclarationSorter=cssDeclarationSorter;m["default"]=cssDeclarationSorter;l.exports=cssDeclarationSorter},7965:l=>{"use strict";l.exports=JSON.parse('{"list-style-type":["afar","amharic","amharic-abegede","arabic-indic","armenian","asterisks","bengali","binary","cambodian","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","decimal","decimal-leading-zero","devanagari","disc","disclosure-closed","disclosure-open","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","footnotes","georgian","gujarati","gurmukhi","hangul","hangul-consonant","hebrew","hiragana","hiragana-iroha","japanese-formal","japanese-informal","kannada","katakana","katakana-iroha","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","lao","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","malayalam","mongolian","myanmar","octal","oriya","oromo","persian","sidama","simp-chinese-formal","simp-chinese-informal","somali","square","string","symbols","tamil","telugu","thai","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","trad-chinese-formal","trad-chinese-informal","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","urdu"]}')},5264:l=>{"use strict";l.exports=JSON.parse('{"accent-color":"auto","align-content":"normal","align-items":"normal","align-self":"auto","align-tracks":"normal","animation-delay":"0s","animation-direction":"normal","animation-duration":"0s","animation-fill-mode":"none","animation-iteration-count":"1","animation-name":"none","animation-range-end":"normal","animation-range-start":"normal","animation-timing-function":"ease","animation-timeline":"auto","appearance":"none","aspect-ratio":"auto","azimuth":"center","backdrop-filter":"none","background-attachment":"scroll","background-blend-mode":"normal","background-image":"none","background-position":"0% 0%","background-position-x":"0%","background-position-y":"0%","background-repeat":"repeat","block-size":"auto","border-block-style":"none","border-block-width":"medium","border-block-end-style":"none","border-block-end-width":"medium","border-block-start-style":"none","border-block-start-width":"medium","border-bottom-left-radius":"0","border-bottom-right-radius":"0","border-bottom-style":"none","border-bottom-width":"medium","border-end-end-radius":"0","border-end-start-radius":"0","border-image-outset":"0","border-image-slice":"100%","border-image-source":"none","border-image-width":"1","border-inline-style":"none","border-inline-width":"medium","border-inline-end-style":"none","border-inline-end-width":"medium","border-inline-start-style":"none","border-inline-start-width":"medium","border-left-style":"none","border-left-width":"medium","border-right-style":"none","border-right-width":"medium","border-spacing":"0","border-start-end-radius":"0","border-start-start-radius":"0","border-top-left-radius":"0","border-top-right-radius":"0","border-top-style":"none","border-top-width":"medium","bottom":"auto","box-decoration-break":"slice","box-shadow":"none","break-after":"auto","break-before":"auto","break-inside":"auto","caption-side":"top","caret-color":"auto","caret-shape":"auto","clear":"none","clip":"auto","clip-path":"none","color-scheme":"normal","column-count":"auto","column-gap":"normal","column-rule-style":"none","column-rule-width":"medium","column-span":"none","column-width":"auto","contain":"none","contain-intrinsic-block-size":"none","contain-intrinsic-height":"none","contain-intrinsic-inline-size":"none","contain-intrinsic-width":"none","container-name":"none","container-type":"normal","content":"normal","counter-increment":"none","counter-reset":"none","counter-set":"none","cursor":"auto","direction":"ltr","empty-cells":"show","filter":"none","flex-basis":"auto","flex-direction":"row","flex-grow":"0","flex-shrink":"1","flex-wrap":"nowrap","float":"none","font-feature-settings":"normal","font-kerning":"auto","font-language-override":"normal","font-optical-sizing":"auto","font-palette":"normal","font-variation-settings":"normal","font-size":"medium","font-size-adjust":"none","font-stretch":"normal","font-style":"normal","font-synthesis-position":"none","font-synthesis-small-caps":"auto","font-synthesis-style":"auto","font-synthesis-weight":"auto","font-variant":"normal","font-variant-alternates":"normal","font-variant-caps":"normal","font-variant-east-asian":"normal","font-variant-emoji":"normal","font-variant-ligatures":"normal","font-variant-numeric":"normal","font-variant-position":"normal","font-weight":"normal","forced-color-adjust":"auto","grid-auto-columns":"auto","grid-auto-flow":"row","grid-auto-rows":"auto","grid-column-end":"auto","grid-column-gap":"0","grid-column-start":"auto","grid-row-end":"auto","grid-row-gap":"0","grid-row-start":"auto","grid-template-areas":"none","grid-template-columns":"none","grid-template-rows":"none","hanging-punctuation":"none","height":"auto","hyphenate-character":"auto","hyphenate-limit-chars":"auto","hyphens":"manual","image-rendering":"auto","image-resolution":"1dppx","ime-mode":"auto","initial-letter":"normal","initial-letter-align":"auto","inline-size":"auto","input-security":"auto","inset-block-end":"auto","inset-block-start":"auto","inset-inline-end":"auto","inset-inline-start":"auto","isolation":"auto","justify-content":"normal","justify-items":"legacy","justify-self":"auto","justify-tracks":"normal","left":"auto","letter-spacing":"normal","line-break":"auto","line-clamp":"none","line-height":"normal","line-height-step":"0","list-style-image":"none","list-style-type":"disc","margin-block-end":"0","margin-block-start":"0","margin-bottom":"0","margin-inline-end":"0","margin-inline-start":"0","margin-left":"0","margin-right":"0","margin-top":"0","margin-trim":"none","mask-border-mode":"alpha","mask-border-outset":"0","mask-border-slice":"0","mask-border-source":"none","mask-border-width":"auto","mask-composite":"add","mask-image":"none","mask-position":"0% 0%","mask-repeat":"repeat","mask-size":"auto","masonry-auto-flow":"pack","math-depth":"0","math-shift":"normal","math-style":"normal","max-block-size":"none","max-height":"none","max-inline-size":"none","max-lines":"none","max-width":"none","min-block-size":"0","min-height":"auto","min-inline-size":"0","min-width":"auto","mix-blend-mode":"normal","object-fit":"fill","offset-anchor":"auto","offset-distance":"0","offset-path":"none","offset-position":"normal","offset-rotate":"auto","opacity":"1","order":"0","orphans":"2","outline-offset":"0","outline-style":"none","outline-width":"medium","overflow-anchor":"auto","overflow-block":"auto","overflow-clip-margin":"0px","overflow-inline":"auto","overflow-wrap":"normal","overlay":"none","overscroll-behavior":"auto","overscroll-behavior-block":"auto","overscroll-behavior-inline":"auto","overscroll-behavior-x":"auto","overscroll-behavior-y":"auto","padding-block-end":"0","padding-block-start":"0","padding-bottom":"0","padding-inline-end":"0","padding-inline-start":"0","padding-left":"0","padding-right":"0","padding-top":"0","page":"auto","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto","paint-order":"normal","perspective":"none","pointer-events":"auto","position":"static","resize":"none","right":"auto","rotate":"none","row-gap":"normal","scale":"none","scrollbar-color":"auto","scrollbar-gutter":"auto","scrollbar-width":"auto","scroll-behavior":"auto","scroll-margin-block-start":"0","scroll-margin-block-end":"0","scroll-margin-bottom":"0","scroll-margin-inline-start":"0","scroll-margin-inline-end":"0","scroll-margin-left":"0","scroll-margin-right":"0","scroll-margin-top":"0","scroll-padding-block-start":"auto","scroll-padding-block-end":"auto","scroll-padding-bottom":"auto","scroll-padding-inline-start":"auto","scroll-padding-inline-end":"auto","scroll-padding-left":"auto","scroll-padding-right":"auto","scroll-padding-top":"auto","scroll-snap-align":"none","scroll-snap-coordinate":"none","scroll-snap-points-x":"none","scroll-snap-points-y":"none","scroll-snap-stop":"normal","scroll-snap-type":"none","scroll-snap-type-x":"none","scroll-snap-type-y":"none","scroll-timeline-axis":"block","scroll-timeline-name":"none","shape-image-threshold":"0.0","shape-margin":"0","shape-outside":"none","tab-size":"8","table-layout":"auto","text-align-last":"auto","text-combine-upright":"none","text-decoration-line":"none","text-decoration-skip-ink":"auto","text-decoration-style":"solid","text-decoration-thickness":"auto","text-emphasis-style":"none","text-indent":"0","text-justify":"auto","text-orientation":"mixed","text-overflow":"clip","text-rendering":"auto","text-shadow":"none","text-transform":"none","text-underline-offset":"auto","text-underline-position":"auto","text-wrap":"wrap","timeline-scope":"none","top":"auto","touch-action":"auto","transform":"none","transform-style":"flat","transition-behavior":"normal","transition-delay":"0s","transition-duration":"0s","transition-property":"all","transition-timing-function":"ease","translate":"none","unicode-bidi":"normal","user-select":"auto","view-timeline-axis":"block","view-timeline-inset":"auto","view-timeline-name":"none","view-transition-name":"none","white-space":"normal","widows":"2","width":"auto","will-change":"auto","word-break":"normal","word-spacing":"normal","word-wrap":"normal","z-index":"auto"}')},6559:l=>{"use strict";l.exports=JSON.parse('{"background-clip":"border-box","background-color":"transparent","background-origin":"padding-box","background-size":"auto auto","border-block-color":"currentcolor","border-block-end-color":"currentcolor","border-block-start-color":"currentcolor","border-bottom-color":"currentcolor","border-collapse":"separate","border-inline-color":"currentcolor","border-inline-end-color":"currentcolor","border-inline-start-color":"currentcolor","border-left-color":"currentcolor","border-right-color":"currentcolor","border-top-color":"currentcolor","box-sizing":"content-box","color":"canvastext","column-rule-color":"currentcolor","font-synthesis":"weight style small-caps position","image-orientation":"from-image","mask-clip":"border-box","mask-mode":"match-source","mask-origin":"border-box","mask-type":"luminance","ruby-align":"space-around","ruby-merge":"separate","ruby-position":"alternate","text-decoration-color":"currentcolor","text-emphasis-color":"currentcolor","text-emphasis-position":"over right","transform-box":"view-box","transform-origin":"50% 50% 0","vertical-align":"baseline","white-space-collapse":"collapse","writing-mode":"horizontal-tb"}')}};var m={};function __nccwpck_require__(v){var y=m[v];if(y!==undefined){return y.exports}var w=m[v]={exports:{}};var _=true;try{l[v](w,w.exports,__nccwpck_require__);_=false}finally{if(_)delete m[v]}return w.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var v=__nccwpck_require__(9536);module.exports=v})(); \ No newline at end of file +64:1},rules:[/^(?:\s+)/i,/^(?:(-(webkit|moz)-)?calc\b)/i,/^(?:[a-z][\d\-a-z]*\s*\((?:(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')|\([^)]*\)|[^()]*)*\))/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)em\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)ex\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)ch\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)rem\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vw\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)svw\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)lvw\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dvw\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vh\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)svh\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)lvh\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dvh\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vmin\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)svmin\b)/i,/^(?:((\d+(\.\d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:\()/i,/^(?:\))/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64],inclusive:true}}};return l}();l.lexer=m;function Parser(){this.yy={}}Parser.prototype=l;l.Parser=Parser;return new Parser}();if(true){m.parser=v;m.Parser=v.Parser;m.parse=function(){return v.parse.apply(v,arguments)}}},3552:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const{isSupported:_}=v(6615);const k=v(2045);const S=v(8308);function walk(l,m){l.nodes.forEach(((v,y)=>{const w=m(v,y,l);if(v.type==="function"&&w!==false){walk(v,m)}}))}const C=new Set(["ie 8","ie 9"]);const E=new Set(["calc","min","max","clamp"]);function isMathFunctionNode(l){if(l.type!=="function"){return false}return E.has(l.value.toLowerCase())}function transform(l,m){const v=k(l);walk(v,((l,v,y)=>{if(l.type==="function"){if(/^(rgb|hsl)a?$/i.test(l.value)){const{value:w}=l;l.value=S(k.stringify(l),m);l.type="word";const _=y.nodes[v+1];if(l.value!==w&&_&&(_.type==="word"||_.type==="function")){y.nodes.splice(v+1,0,{type:"space",value:" "})}}else if(isMathFunctionNode(l)){return false}}else if(l.type==="word"){l.value=S(l.value,m)}}));return v.toString()}function addPluginDefaults(l,m){const v={transparent:m.some((l=>C.has(l)))===false,alphaHex:_("css-rrggbbaa",m),name:true};return{...v,...l}}function pluginCreator(l={}){return{postcssPlugin:"postcss-colormin",prepare(m){const{stats:v,env:_,from:k,file:S}=m.opts||{};const C=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||S||__filename),env:l.env||_});const E=new Map;const O=addPluginDefaults(l,C);return{OnceExit(l){l.walkDecls((l=>{if(/^(composes|font|src$|filter|-webkit-tap-highlight-color)/i.test(l.prop)){return}const m=l.value;if(!m){return}const v=JSON.stringify({value:m,options:O,browsers:C});if(E.has(v)){l.value=E.get(v);return}const y=transform(m,O);l.value=y;E.set(v,y)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},8308:(l,m,v)=>{"use strict";const{colord:y,extend:w}=v(3251);const _=v(2338);const k=v(47);w([_,k]);l.exports=function minifyColor(l,m={}){const v=y(l);if(v.isValid()){const y=v.minify(m);return y.length{"use strict";const{dirname:y}=v(1017);const w=v(2045);const _=v(4907);const k=v(4325);const S=new Set(["em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","q","in","pt","pc","px"]);const C=new Set(["descent-override","ascent-override","font-stretch","size-adjust","line-gap-override"]);const E=new Set(["stroke-dashoffset","stroke-width","line-height"]);const O=new Set(["max-height","height","min-width"]);const P=new Set(["calc","color-mix","min","max","clamp","hsl","hsla","hwb"]);const L=new Set(["border-image-width","stroke-dasharray"]);function stripLeadingDot(l){if(l.charCodeAt(0)===".".charCodeAt(0)){return l.slice(1)}else{return l}}function parseWord(l,m,v){const y=w.unit(l.value);if(y){const w=Number(y.number);const _=stripLeadingDot(y.unit);if(w===0){l.value=0+(v||!S.has(_.toLowerCase())&&_!=="%"?_:"");if(l.value==="0ms"){l.value="0s"}}else{l.value=k(w,_,m);if(typeof m.precision==="number"&&_.toLowerCase()==="px"&&y.number.includes(".")){const v=Math.pow(10,m.precision);l.value=Math.round(parseFloat(l.value)*v)/v+_}}}}function clampOpacity(l){const m=w.unit(l.value);if(!m){return}let v=Number(m.number);if(v>1){l.value=m.unit==="%"?v+m.unit:1+m.unit}else if(v<0){l.value=0+m.unit}}function shouldKeepZeroUnit(l,m){const{parent:v}=l;const y=l.prop.toLowerCase();return l.value.includes("%")&&O.has(y)&&m.includes("ie 11")||L.has(y)&&v&&v.parent&&v.parent.type==="atrule"&&v.parent.name.toLowerCase()==="keyframes"||y==="initial-value"&&v&&v.type==="atrule"&&v.name==="property"&&v.nodes!==undefined&&v.nodes.some((l=>l.type==="decl"&&l.prop.toLowerCase()==="syntax"&&l.value==="''"))||E.has(y)}function transform(l,m,v){const y=v.prop.toLowerCase();if(y.includes("flex")||y.indexOf("--")===0||C.has(y)){return}v.value=w(v.value).walk((_=>{const k=_.value.toLowerCase();if(_.type==="word"){parseWord(_,l,shouldKeepZeroUnit(v,m));if(y==="opacity"||y==="shape-image-threshold"){clampOpacity(_)}}else if(_.type==="function"){if(P.has(k)){w.walk(_.nodes,(m=>{if(m.type==="word"){parseWord(m,l,true)}}));return false}if(k==="url"){return false}}})).toString()}const T="postcss-convert-values";function pluginCreator(l={precision:false}){return{postcssPlugin:T,prepare(m){const{stats:v,env:w,from:k,file:S}=m.opts||{};const C=_(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||S||__filename),env:l.env||w});return{OnceExit(m){m.walkDecls((m=>transform(l,C,m)))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},4325:l=>{"use strict";const m=new Map([["in",96],["px",1],["pt",4/3],["pc",16]]);const v=new Map([["s",1e3],["ms",1]]);const y=new Map([["turn",360],["deg",1]]);function dropLeadingZero(l){const m=String(l);if(l%1){if(m[0]==="0"){return m.slice(1)}if(m[0]==="-"&&m[1]==="0"){return"-"+m.slice(2)}}return m}function transform(l,m,v){let y=[...v.keys()].filter((l=>m!==l));const w=l*v.get(m);return y.map((l=>dropLeadingZero(w/v.get(l))+l)).reduce(((l,m)=>l.length{"use strict";const y=v(7152);const w=v(9074);const _=v(6206);function pluginCreator(l={}){const m=new y(l);const v=new Map;const k=new Map;function matchesComments(l){if(v.has(l)){return v.get(l)}const m=w(l).filter((([l])=>l));v.set(l,m);return m}function replaceComments(l,v,y=" "){const _=l+"@|@"+y;if(k.has(_)){return k.get(_)}const S=w(l).reduce(((v,[w,_,k])=>{const S=l.slice(_,k);if(!w){return v+S}if(m.canRemove(S)){return v+y}return`${v}/*${S}*/`}),"");const C=v(S).join(" ");k.set(_,C);return C}function replaceCommentsInSelector(l,v){const y=l+"@|@";if(k.has(y)){return k.get(y)}const w=_((l=>{l.walk((l=>{if(l.type==="comment"){const v=l.value.slice(2,-2);if(m.canRemove(v)){l.remove()}}const y=replaceComments(l.rawSpaceAfter,v,"");const w=replaceComments(l.rawSpaceBefore,v,"");if(y!==l.rawSpaceAfter.trim()){l.rawSpaceAfter=y}if(w!==l.rawSpaceBefore.trim()){l.rawSpaceBefore=w}}))})).processSync(l);const S=v(w).join(" ");k.set(y,S);return S}return{postcssPlugin:"postcss-discard-comments",OnceExit(l,{list:v}){l.walk((l=>{if(l.type==="comment"&&m.canRemove(l.text)){l.remove();return}if(typeof l.raws.between==="string"){l.raws.between=replaceComments(l.raws.between,v.space)}if(l.type==="decl"){if(l.raws.value&&l.raws.value.raw){if(l.raws.value.value===l.value){l.value=replaceComments(l.raws.value.raw,v.space)}else{l.value=replaceComments(l.value,v.space)}l.raws.value=null}if(l.raws.important){l.raws.important=replaceComments(l.raws.important,v.space);const m=matchesComments(l.raws.important);l.raws.important=m.length?l.raws.important:"!important"}else{l.value=replaceComments(l.value,v.space)}return}if(l.type==="rule"){if(l.raws.selector&&l.raws.selector.raw){l.raws.selector.raw=replaceCommentsInSelector(l.raws.selector.raw,v.space)}else if(l.selector&&l.selector.includes("/*")){l.selector=replaceCommentsInSelector(l.selector,v.space)}return}if(l.type==="atrule"){if(l.raws.afterName){const m=replaceComments(l.raws.afterName,v.space);if(!m.length){l.raws.afterName=m+" "}else{l.raws.afterName=" "+m+" "}}if(l.raws.params&&l.raws.params.raw){l.raws.params.raw=replaceComments(l.raws.params.raw,v.space)}else if(l.params&&l.params.includes("/*")){l.params=replaceComments(l.params,v.space)}}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},9074:l=>{"use strict";l.exports=function commentParser(l){const m=[];const v=l.length;let y=0;let w;while(y{"use strict";function CommentRemover(l){this.options=l}CommentRemover.prototype.canRemove=function(l){const m=this.options.remove;if(m){return m(l)}else{const m=l.indexOf("!")===0;if(!m){return true}if(this.options.removeAll||this._hasFirst){return true}else if(this.options.removeAllButFirst&&!this._hasFirst){this._hasFirst=true;return false}}};l.exports=CommentRemover},8495:l=>{"use strict";function trimValue(l){return l?l.trim():l}function empty(l){return!l.nodes.filter((l=>l.type!=="comment")).length}function equals(l,m){const v=l;const y=m;if(v.type!==y.type){return false}if(v.important!==y.important){return false}if(v.raws&&!y.raws||!v.raws&&y.raws){return false}switch(v.type){case"rule":if(v.selector!==y.selector){return false}break;case"atrule":if(v.name!==y.name||v.params!==y.params){return false}if(v.raws&&trimValue(v.raws.before)!==trimValue(y.raws.before)){return false}if(v.raws&&trimValue(v.raws.afterName)!==trimValue(y.raws.afterName)){return false}break;case"decl":if(v.prop!==y.prop||v.value!==y.value){return false}if(v.raws&&trimValue(v.raws.before)!==trimValue(y.raws.before)){return false}break}if(v.nodes&&y.nodes){if(v.nodes.length!==y.nodes.length){return false}for(let l=0;l=0){const y=m[v--];if(y&&y.type==="rule"&&y.selector===l.selector){l.each((l=>{if(l.type==="decl"){dedupeNode(l,y.nodes)}}));if(empty(y)){y.remove()}}}}function dedupeNode(l,m){let v=m.includes(l)?m.indexOf(l)-1:m.length-1;while(v>=0){const y=m[v--];if(y&&equals(y,l)){y.remove()}}}function dedupe(l){const{nodes:m}=l;if(!m){return}let v=m.length-1;while(v>=0){let l=m[v--];if(!l||!l.parent){continue}dedupe(l);if(l.type==="rule"){dedupeRule(l,m)}else if(l.type==="atrule"&&l.name!=="layer"||l.type==="decl"){dedupeNode(l,m)}}}function pluginCreator(){return{postcssPlugin:"postcss-discard-duplicates",OnceExit(l){dedupe(l)}}}pluginCreator.postcss=true;l.exports=pluginCreator},9106:l=>{"use strict";const m="postcss-discard-empty";function discardAndReport(l,v){function discardEmpty(l){const{type:y}=l;const w=l.nodes;if(w){l.each(discardEmpty)}if(y==="decl"&&!l.value&&!l.prop.startsWith("--")||y==="rule"&&!l.selector||w&&!w.length&&!(y==="atrule"&&l.name==="layer")||y==="atrule"&&(!w&&!l.params||!l.params&&!w.length)){l.remove();v.messages.push({type:"removal",plugin:m,node:l})}}l.each(discardEmpty)}function pluginCreator(){return{postcssPlugin:m,OnceExit(l,{result:m}){discardAndReport(l,m)}}}pluginCreator.postcss=true;l.exports=pluginCreator},4175:l=>{"use strict";const m=new Set(["keyframes","counter-style"]);const v=new Set(["media","supports"]);function vendorUnprefixed(l){return l.replace(/^-\w+-/,"")}function isOverridable(l){return m.has(vendorUnprefixed(l.toLowerCase()))}function isScope(l){return v.has(vendorUnprefixed(l.toLowerCase()))}function getScope(l){let m=l.parent;const v=[l.name.toLowerCase(),l.params];while(m){if(m.type==="atrule"&&isScope(m.name)){v.unshift(m.name+" "+m.params)}m=m.parent}return v.join("|")}function pluginCreator(){return{postcssPlugin:"postcss-discard-overridden",prepare(){const l=new Map;const m=[];return{OnceExit(v){v.walkAtRules((v=>{if(isOverridable(v.name)){const y=getScope(v);l.set(y,v);m.push({node:v,scope:y})}}));m.forEach((m=>{if(l.get(m.scope)!==m.node){m.node.remove()}}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},4729:(l,m,v)=>{"use strict";const y=v(8627);function pluginCreator(){return{postcssPlugin:"postcss-merge-longhand",OnceExit(l){l.walkRules((l=>{y.forEach((m=>{m.explode(l);m.merge(l)}))}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},6088:(l,m,v)=>{"use strict";const y=v(8041);const w=new Set(["inherit","initial","unset","revert"]);l.exports=(l,m=true)=>{if(!l.value||m&&y(l)||l.value&&w.has(l.value.toLowerCase())){return false}return true}},9105:(l,m,v)=>{"use strict";const y=v(8041);const important=l=>l.important;const unimportant=l=>!l.important;const w=["inherit","initial","unset","revert"];l.exports=(l,m=true)=>{const v=new Set(l.map((l=>l.value.toLowerCase())));if(v.size>1){for(const l of w){if(v.has(l)){return false}}}if(m&&l.some(y)&&!l.every(y)){return false}return l.every(unimportant)||l.every(important)}},9888:l=>{"use strict";l.exports=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"])},418:(l,m,v)=>{"use strict";const{list:y}=v(977);const w=v(1417);const _=v(4249);const k=v(8163);const S=v(9818);const C=v(3766);const E=v(5833);const O=v(2238);const P=v(3145);const L=v(1790);const T=v(6663);const D=v(9105);const R=v(666);const A=v(8041);const q=v(6088);const F=v(2674);const V=v(7979);const{isValidWsc:$}=v(5457);const z=["width","style","color"];const U=["medium","none","currentcolor"];const W=/(hsla|rgba|color|hwb|lab|lch|oklab|oklch)\(/i;function borderProperty(...l){return`border-${l.join("-")}`}function mapBorderProperty(l){return borderProperty(l)}const B=R.map(mapBorderProperty);const Q=z.map(mapBorderProperty);const Y=B.reduce(((l,m)=>l.concat(z.map((l=>`${m}-${l}`)))),[]);const G=[["border"],B.concat(Q),Y];const J=G.reduce(((l,m)=>l.concat(m)));function getLevel(l){for(let m=0;ml!==undefined&&l.search(/var\s*\(\s*--/i)!==-1;function canMergeValues(l){return!l.some(isValueCustomProp)}function getColorValue(l){if(l.prop.substr(-5)==="color"){return l.value}return V(l.value)[2]||U[2]}function diffingProps(l,m){return z.reduce(((v,y,w)=>{if(l[w]===m[w]){return v}return[...v,y]}),[])}function mergeRedundant({values:l,nextValues:m,decl:v,nextDecl:y,index:_}){if(!D([v,y])){return}if(w.detect(v)||w.detect(y)){return}const S=diffingProps(l,m);if(S.length!==1){return}const C=S.pop();const E=z.indexOf(C);const O=`${y.prop}-${C}`;const P=`border-${C}`;let R=k(l[E]);R[_]=m[E];const A=l.filter(((l,m)=>m!==E)).join(" ");const q=L(R);const F=(T(v.value)+y.prop+y.value).length;const V=v.value.length+O.length+T(m[E]).length;const $=A.length+P.length+q.length;if(V<$&&V{if(!q(l,false)){return}if(w.detect(l)){return}const m=l.prop.toLowerCase();if(m==="border"){if($(V(l.value))){B.forEach((m=>{_(l.parent,l,{prop:m})}));l.remove()}}if(B.some((l=>m===l))){let v=V(l.value);if($(v)){z.forEach(((y,w)=>{_(l.parent,l,{prop:`${m}-${y}`,value:v[w]||U[w]})}));l.remove()}}z.some((v=>{if(m!==borderProperty(v)){return false}if(A(l)){l.prop=l.prop.toLowerCase();return false}k(l.value).forEach(((m,y)=>{_(l.parent,l,{prop:borderProperty(R[y],v),value:m})}));return l.remove()}))}))}function merge(l){R.forEach((m=>{const v=borderProperty(m);P(l,z.map((l=>borderProperty(m,l))),((l,m)=>{if(D(l,false)&&!l.some(w.detect)){_(m.parent,m,{prop:v,value:l.map(O).join(" ")});for(const m of l){m.remove()}return true}return false}))}));z.forEach((m=>{const v=borderProperty(m);P(l,R.map((l=>borderProperty(l,m))),((l,m)=>{if(D(l)&&!l.some(w.detect)){_(m.parent,m,{prop:v,value:L(l.map(O).join(" "))});for(const m of l){m.remove()}return true}return false}))}));P(l,B,((l,m)=>{if(l.some(w.detect)){return false}const v=l.map((({value:l})=>l));if(!canMergeValues(v)){return false}const y=v.map((l=>V(l)));if(!y.every($)){return false}z.forEach(((l,v)=>{const w=y.map((l=>l[v]||U[v]));if(canMergeValues(w)){_(m.parent,m,{prop:borderProperty(l),value:L(w)})}else{_(m.parent,m)}}));for(const m of l){m.remove()}return true}));P(l,Q,((m,v)=>{if(m.some(w.detect)){return false}const y=m.map((l=>k(l.value)));const S=[0,1,2,3].map((l=>[y[0][l],y[1][l],y[2][l]].join(" ")));if(!canMergeValues(S)){return false}const[C,E,P]=m;const L=getDistinctShorthands(S);if(isCloseEnough(S)&&D(m,false)){const y=S.indexOf(L[0])!==S.lastIndexOf(L[0]);const w=_(v.parent,v,{prop:"border",value:y?L[0]:L[1]});if(L[1]){const m=y?L[1]:L[0];const _=borderProperty(R[S.indexOf(m)]);l.insertAfter(w,Object.assign(v.clone(),{prop:_,value:m}))}for(const l of m){l.remove()}return true}else if(L.length===1){l.insertBefore(P,Object.assign(v.clone(),{prop:"border",value:[C,E].map(O).join(" ")}));m.filter((l=>l.prop.toLowerCase()!==Q[2])).forEach((l=>l.remove()));return true}return false}));P(l,Q,((m,v)=>{if(m.some(w.detect)){return false}const y=m.map((l=>k(l.value)));const _=[0,1,2,3].map((l=>[y[0][l],y[1][l],y[2][l]].join(" ")));const S=getDistinctShorthands(_);const C="medium none currentcolor";if(S.length>1&&S.length<4&&S.includes(C)){const y=_.filter((l=>l!==C));const w=S.sort(((l,m)=>_.filter((l=>l===m)).length-_.filter((m=>m===l)).length))[0];const k=S.length===2?y[0]:w;l.insertBefore(v,Object.assign(v.clone(),{prop:"border",value:k}));B.forEach(((m,y)=>{if(_[y]!==k){l.insertBefore(v,Object.assign(v.clone(),{prop:m,value:_[y]}))}}));for(const l of m){l.remove()}return true}return false}));P(l,B,((m,v)=>{if(m.some(w.detect)){return false}const y=m.map((l=>{const m=V(l.value);if(!$(m)){return l.value}return m.map(((l,m)=>l||U[m])).join(" ")}));const _=getDistinctShorthands(y);if(isCloseEnough(y)){const w=y.indexOf(_[0])!==y.lastIndexOf(_[0]);l.insertBefore(v,Object.assign(v.clone(),{prop:"border",value:T(w?y[0]:y[1])}));if(_[1]){const m=w?_[1]:_[0];const k=B[y.indexOf(m)];l.insertBefore(v,Object.assign(v.clone(),{prop:k,value:T(m)}))}for(const l of m){l.remove()}return true}return false}));B.forEach((m=>{z.forEach(((v,y)=>{const k=`${m}-${v}`;P(l,[m,k],((l,v)=>{if(v.prop!==m){return false}const S=V(v.value);if(!$(S)){return false}const C=l.filter((l=>l!==v))[0];if(!isValueCustomProp(S[y])||A(C)){return false}const E=S[y];S[y]=C.value;if(D(l,false)&&!l.some(w.detect)){_(v.parent,v,{prop:k,value:E});v.value=T(S);C.remove();return true}return false}))}))}));z.forEach(((m,v)=>{const y=borderProperty(m);P(l,["border",y],((l,m)=>{if(m.prop!=="border"){return false}const k=V(m.value);if(!$(k)){return false}const S=l.filter((l=>l!==m))[0];if(!isValueCustomProp(k[v])||A(S)){return false}const C=k[v];k[v]=S.value;if(D(l,false)&&!l.some(w.detect)){_(m.parent,m,{prop:y,value:C});m.value=T(k);S.remove();return true}return false}))}));let m=C(l,B);while(m.length){const v=m[m.length-1];z.forEach(((k,C)=>{const O=B.filter((l=>l!==v.prop)).map((l=>`${l}-${k}`));let P=l.nodes.slice(0,l.nodes.indexOf(v));const T=F(P,"border");if(T){P=P.slice(P.indexOf(T))}const D=P.filter((l=>l.type==="decl"&&O.includes(l.prop)&&l.important===v.important));const R=E(D,O);if(S(R,...O)&&!R.some(w.detect)){const l=R.map((l=>l?l.value:null));const w=l.filter(Boolean);const S=y.space(v.value)[C];l[B.indexOf(v.prop)]=S;let E=L(l.join(" "));if(w[0]===w[1]&&w[1]===w[2]){E=w[0]}let O=D[D.length-1];if(E===S){O=v;let l=y.space(v.value);l.splice(C,1);v.value=l.join(" ")}_(O.parent,O,{prop:borderProperty(k),value:E});m=m.filter((l=>!R.includes(l)));for(const l of R){l.remove()}}}));m=m.filter((l=>l!==v))}l.walkDecls("border",(l=>{const m=l.next();if(!m||m.type!=="decl"){return false}const v=B.indexOf(m.prop);if(v===-1){return}const y=V(l.value);const w=V(m.value);if(!$(y)||!$(w)){return}const _={values:y,nextValues:w,decl:l,nextDecl:m,index:v};return mergeRedundant(_)}));l.walkDecls(/^border($|-(top|right|bottom|left)$)/i,(m=>{let v=V(m.value);if(!$(v)){return}const y=B.indexOf(m.prop);let w=[...B];w.splice(y,1);z.forEach(((y,k)=>{const S=w.map((l=>`${l}-${y}`));P(l,[m.prop,...S],(l=>{if(!l.includes(m)){return false}const w=l.filter((l=>l!==m));if(w[0].value.toLowerCase()===w[1].value.toLowerCase()&&w[1].value.toLowerCase()===w[2].value.toLowerCase()&&v[k]!==undefined&&w[0].value.toLowerCase()===v[k].toLowerCase()){for(const l of w){l.remove()}_(m.parent,m,{prop:borderProperty(y),value:v[k]});v[k]=null}return false}));const C=v.join(" ");if(C){m.value=C}else{m.remove()}}))}));l.walkDecls(/^border($|-(top|right|bottom|left)$)/i,(l=>{l.value=T(l.value)}));l.walkDecls(/^border-spacing$/i,(l=>{const m=y.space(l.value);if(m.length>1&&m[0]===m[1]){l.value=m.slice(1).join(" ")}}));m=C(l,J);while(m.length){const l=m[m.length-1];const v=l.prop.split("-").pop();const y=m.filter((m=>!w.detect(l)&&!w.detect(m)&&!A(l)&&m!==l&&m.important===l.important&&getLevel(m.prop)>getLevel(l.prop)&&(m.prop.toLowerCase().includes(l.prop)||m.prop.toLowerCase().endsWith(v))));for(const l of y){l.remove()}m=m.filter((l=>!y.includes(l)));let _=m.filter((m=>!w.detect(l)&&!w.detect(m)&&m!==l&&m.important===l.important&&m.prop===l.prop&&!(!A(m)&&A(l))));if(_.length){if(W.test(getColorValue(l))){const l=_.filter((l=>!W.test(getColorValue(l)))).pop();_=_.filter((m=>m!==l))}for(const l of _){l.remove()}}m=m.filter((m=>m!==l&&!_.includes(m)))}}l.exports={explode:explode,merge:merge}},7577:(l,m,v)=>{"use strict";const y=v(1417);const w=v(9105);const _=v(3766);const k=v(1790);const S=v(8163);const C=v(4249);const E=v(3145);const O=v(2673);const P=v(666);const L=v(8041);const T=v(6088);l.exports=l=>{const m=P.map((m=>`${l}-${m}`));const cleanup=v=>{let w=_(v,[l].concat(m));while(w.length){const m=w[w.length-1];const v=w.filter((v=>!y.detect(m)&&!y.detect(v)&&v!==m&&v.important===m.important&&m.prop===l&&v.prop!==m.prop));for(const l of v){l.remove()}w=w.filter((l=>!v.includes(l)));let _=w.filter((l=>!y.detect(m)&&!y.detect(l)&&l!==m&&l.important===m.important&&l.prop===m.prop&&!(!L(l)&&L(m))));for(const l of _){l.remove()}w=w.filter((l=>l!==m&&!_.includes(l)))}};const v={explode:v=>{v.walkDecls(new RegExp("^"+l+"$","i"),(l=>{if(!T(l)){return}if(y.detect(l)){return}const v=S(l.value);P.forEach(((y,w)=>{C(l.parent,l,{prop:m[w],value:v[w]})}));l.remove()}))},merge:v=>{E(v,m,((m,v)=>{if(w(m)&&!m.some(y.detect)){C(v.parent,v,{prop:l,value:k(O(...m))});for(const l of m){l.remove()}return true}return false}));cleanup(v)}};return v}},7139:(l,m,v)=>{"use strict";const{list:y}=v(977);const{unit:w}=v(2045);const _=v(1417);const k=v(9105);const S=v(3766);const C=v(2238);const E=v(3145);const O=v(4249);const P=v(8041);const L=v(6088);const T=["column-width","column-count"];const D="auto";const R="inherit";function normalize(l){if(l[0].toLowerCase()===D){return l[1]}if(l[1].toLowerCase()===D){return l[0]}if(l[0].toLowerCase()===R&&l[1].toLowerCase()===R){return R}return l.join(" ")}function explode(l){l.walkDecls(/^columns$/i,(l=>{if(!L(l)){return}if(_.detect(l)){return}let m=y.space(l.value);if(m.length===1){m.push(D)}m.forEach(((m,v)=>{let y=T[1];const _=w(m);if(m.toLowerCase()===D){y=T[v]}else if(_&&_.unit!==""){y=T[0]}O(l.parent,l,{prop:y,value:m})}));l.remove()}))}function cleanup(l){let m=S(l,["columns"].concat(T));while(m.length){const l=m[m.length-1];const v=m.filter((m=>!_.detect(l)&&!_.detect(m)&&m!==l&&m.important===l.important&&l.prop==="columns"&&m.prop!==l.prop));for(const l of v){l.remove()}m=m.filter((l=>!v.includes(l)));let y=m.filter((m=>!_.detect(l)&&!_.detect(m)&&m!==l&&m.important===l.important&&m.prop===l.prop&&!(!P(m)&&P(l))));for(const l of y){l.remove()}m=m.filter((m=>m!==l&&!y.includes(m)))}}function merge(l){E(l,T,((l,m)=>{if(k(l)&&!l.some(_.detect)){O(m.parent,m,{prop:"columns",value:normalize(l.map(C))});for(const m of l){m.remove()}return true}return false}));cleanup(l)}l.exports={explode:explode,merge:merge}},8627:(l,m,v)=>{"use strict";const y=v(418);const w=v(7139);const _=v(160);const k=v(9560);l.exports=[y,w,_,k]},160:(l,m,v)=>{"use strict";const y=v(7577);l.exports=y("margin")},9560:(l,m,v)=>{"use strict";const y=v(7577);l.exports=y("padding")},3766:l=>{"use strict";l.exports=function getDecls(l,m){return l.nodes.filter((l=>l.type==="decl"&&m.includes(l.prop.toLowerCase())))}},2674:l=>{"use strict";l.exports=(l,m)=>l.filter((l=>l.type==="decl"&&l.prop.toLowerCase()===m)).pop()},5833:(l,m,v)=>{"use strict";const y=v(2674);l.exports=function getRules(l,m){return m.map((m=>y(l,m))).filter(Boolean)}},2238:l=>{"use strict";l.exports=function getValue({value:l}){return l}},9818:l=>{"use strict";l.exports=(l,...m)=>m.every((m=>l.some((l=>l.prop&&l.prop.toLowerCase().includes(m)))))},4249:l=>{"use strict";l.exports=function insertCloned(l,m,v){const y=Object.assign(m.clone(),v);l.insertAfter(m,y);return y}},8041:l=>{"use strict";l.exports=l=>l.value.search(/var\s*\(\s*--/i)!==-1},3145:(l,m,v)=>{"use strict";const y=v(9818);const w=v(3766);const _=v(5833);function isConflictingProp(l,m){if(!m.prop||m.important!==l.important||l.prop===m.prop){return false}const v=l.prop.split("-");const y=m.prop.split("-");if(v[0]!==y[0]){return false}const w=new Set(v);return y.every((l=>w.has(l)))}function hasConflicts(l,m){const v=Math.min(...l.map((l=>m.indexOf(l))));const y=Math.max(...l.map((l=>m.indexOf(l))));const w=m.slice(v+1,y);return l.some((l=>w.some((m=>isConflictingProp(l,m)))))}l.exports=function mergeRules(l,m,v){let k=w(l,m);while(k.length){const w=k[k.length-1];const S=k.filter((l=>l.important===w.important));const C=_(S,m);if(y(C,...m)&&!hasConflicts(C,l.nodes)){if(v(C,w,S)){k=k.filter((l=>!C.includes(l)))}}k=k.filter((l=>l!==w))}}},2673:(l,m,v)=>{"use strict";const y=v(2238);l.exports=(...l)=>l.map(y).join(" ")},1790:(l,m,v)=>{"use strict";const y=v(8163);l.exports=l=>{const m=y(l);if(m[3]===m[1]){m.pop();if(m[2]===m[0]){m.pop();if(m[0]===m[1]){m.pop()}}}return m.join(" ")}},6663:(l,m,v)=>{"use strict";const y=v(7979);const w=v(1790);const{isValidWsc:_}=v(5457);const k=["medium","none","currentcolor"];l.exports=l=>{const m=y(l);if(!_(m)){return w(l)}const v=[...m,""].reduceRight(((l,m,v,y)=>{if(m===undefined||m.toLowerCase()===k[v]&&(!v||(y[v-1]||"").toLowerCase()!==m.toLowerCase())){return l}return m+" "+l})).trim();return w(v||"none")}},8163:(l,m,v)=>{"use strict";const{list:y}=v(977);l.exports=l=>{const m=typeof l==="string"?y.space(l):l;return[m[0],m[1]||m[0],m[2]||m[0],m[3]||m[1]||m[0]]}},7979:(l,m,v)=>{"use strict";const{list:y}=v(977);const{isWidth:w,isStyle:_,isColor:k}=v(5457);const S=/^\s*(none|medium)(\s+none(\s+(none|currentcolor))?)?\s*$/i;const C=/--(\w|-|[^\x00-\x7F])+/g;const toLower=l=>{let m;let v=0;let y="";C.lastIndex=0;while((m=C.exec(l))!==null){if(m.index>v){y+=l.substring(v,m.index).toLowerCase()}y+=m[0];v=m.index+m[0].length}if(v1&&_(E[1])&&E[0].toLowerCase()==="none"){E.unshift();m="0"}const O=[];E.forEach((l=>{if(_(l)){v=toLower(l)}else if(w(l)){m=toLower(l)}else if(k(l)){C=toLower(l)}else{O.push(l)}}));if(O.length){if(!m&&v&&C){m=O.pop()}if(m&&!v&&C){v=O.pop()}if(m&&v&&!C){C=O.pop()}}return[m,v,C]}},666:l=>{"use strict";l.exports=["top","right","bottom","left"]},5457:(l,m,v)=>{"use strict";const y=v(9888);const w=new Set(["thin","medium","thick"]);const _=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]);function isStyle(l){return l!==undefined&&_.has(l.toLowerCase())}function isWidth(l){return l&&w.has(l.toLowerCase())||/^(\d+(\.\d+)?|\.\d+)(\w+)?$/.test(l)}function isColor(l){if(!l){return false}l=l.toLowerCase();if(/rgba?\(/.test(l)){return true}if(/hsla?\(/.test(l)){return true}if(/#([0-9a-z]{6}|[0-9a-z]{3})/.test(l)){return true}if(l==="transparent"){return true}if(l==="currentcolor"){return true}return y.has(l)}function isValidWsc(l){const m=isWidth(l[0]);const v=isStyle(l[1]);const y=isColor(l[2]);return m&&v||m&&y||v&&y}l.exports={isStyle:isStyle,isWidth:isWidth,isColor:isColor,isValidWsc:isValidWsc}},1962:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const{sameParent:_}=v(2330);const{ensureCompatibility:k,sameVendor:S,noVendor:C}=v(9098);function declarationIsEqual(l,m){return l.important===m.important&&l.prop===m.prop&&l.value===m.value}function indexOfDeclaration(l,m){return l.findIndex((l=>declarationIsEqual(l,m)))}function intersect(l,m,v){return l.filter((l=>{const y=indexOfDeclaration(m,l)!==-1;return v?!y:y}))}function sameDeclarationsAndOrder(l,m){if(l.length!==m.length){return false}return l.every(((l,v)=>declarationIsEqual(l,m[v])))}function canMerge(l,m,v,y){const w=l.selectors;const E=m.selectors;const O=w.concat(E);if(!k(O,v,y)){return false}const P=_(l,m);if(P&&l.parent&&l.parent.type==="atrule"&&l.parent.name.includes("keyframes")){return false}if(l.some(isRuleOrAtRule)||m.some(isRuleOrAtRule)){return false}return P&&(O.every(C)||S(w,E))}function isRuleOrAtRule(l){return l.type==="rule"||l.type==="atrule"}function isDeclaration(l){return l.type==="decl"}function getDecls(l){return l.nodes.filter(isDeclaration)}const joinSelectors=(...l)=>l.map((l=>l.selector)).join();function ruleLength(...l){return l.map((l=>l.nodes.length?String(l):"")).join("").length}function splitProp(l){const m=l.split("-");if(l[0]!=="-"){return{prefix:"",base:m[0],rest:m.slice(1)}}if(l[1]==="-"){return{prefix:null,base:null,rest:[l]}}return{prefix:m[1],base:m[2],rest:m.slice(3)}}function isConflictingProp(l,m){if(l===m){return true}const v=splitProp(l);const y=splitProp(m);if(!v.base&&!y.base){return true}if(v.base!==y.base&&v.base!=="place"&&y.base!=="place"){return false}if(v.rest.length!==y.rest.length){return true}if(v.base==="border"){const l=new Set([...v.rest,...y.rest]);if(l.has("image")||l.has("width")||l.has("color")||l.has("style")){return true}}return v.rest.every(((l,m)=>y.rest[m]===l))}function mergeParents(l,m){if(!l.parent||!m.parent){return false}if(l.parent===m.parent){return false}m.remove();l.parent.append(m);return true}function partialMerge(l,m){let v=intersect(getDecls(l),getDecls(m));if(v.length===0){return m}let y=m.next();if(!y){const l=m.parent.next();y=l&&l.nodes&&l.nodes[0]}if(y&&y.type==="rule"&&canMerge(m,y)){let w=intersect(getDecls(m),getDecls(y));if(w.length>v.length){mergeParents(m,y);l=m;m=y;v=w}}const w=getDecls(l);v=v.filter(((l,m)=>{const y=indexOfDeclaration(w,l);const _=w.slice(y+1).filter((m=>isConflictingProp(m.prop,l.prop)));if(_.length===0){return true}const k=v.slice(m+1).filter((m=>isConflictingProp(m.prop,l.prop)));if(_.length!==k.length){return false}return _.every(((l,m)=>declarationIsEqual(l,k[m])))}));const _=getDecls(m);v=v.filter((l=>{const m=_.findIndex((m=>isConflictingProp(m.prop,l.prop)));if(m===-1){return false}if(!declarationIsEqual(_[m],l)){return false}if(l.prop.toLowerCase()!=="direction"&&l.prop.toLowerCase()!=="unicode-bidi"&&_.some((l=>l.prop.toLowerCase()==="all"))){return false}_.splice(m,1);return true}));if(v.length===0){return m}const k=m.clone();k.selector=joinSelectors(l,m);k.nodes=[];m.parent.insertBefore(m,k);const S=l.clone();const C=m.clone();function moveDecl(l){return m=>{if(indexOfDeclaration(v,m)!==-1){l.call(this,m)}}}S.walkDecls(moveDecl((l=>{l.remove();k.append(l)})));C.walkDecls(moveDecl((l=>l.remove())));const E=ruleLength(S,k,C);const O=ruleLength(l,m);if(E{if(l.nodes.length===0){l.remove()}}));if(!C.parent){return k}return C}else{k.remove();return m}}function selectorMerger(l,m){let v=null;return function(y){if(!v||!canMerge(y,v,l,m)){v=y;return}if(v===y){v=y;return}mergeParents(v,y);if(sameDeclarationsAndOrder(getDecls(y),getDecls(v))){y.selector=joinSelectors(v,y);v.remove();v=y;return}if(v.selector===y.selector){const l=getDecls(v);y.walk((m=>{if(m.type==="decl"&&indexOfDeclaration(l,m)!==-1){m.remove();return}v.append(m)}));y.remove();return}v=partialMerge(v,y)}}function pluginCreator(l={}){return{postcssPlugin:"postcss-merge-rules",prepare(m){const{stats:v,env:_,from:k,file:S}=m.opts||{};const C=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||S||__filename),env:l.env||_});const E=new Map;return{OnceExit(l){l.walkRules(selectorMerger(C,E))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},9098:(l,m,v)=>{"use strict";const{isSupported:y}=v(6615);const w=v(6206);const _=/^#?[-._a-z0-9 ]+$/i;const k="css-sel2";const S="css-sel3";const C="css-gencontent";const E="css-first-letter";const O="css-first-line";const P="css-in-out-of-range";const L="form-validation";const T=/-(ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)-/;const D=new Set(["=","~=","|="]);const R=new Set(["^=","$=","*="]);function filterPrefixes(l){return l.match(T)}const findMsInputPlaceholder=l=>~l.search(/-ms-input-placeholder/i);function sameVendor(l,m){let same=l=>l.map(filterPrefixes).join();let findMsVendor=l=>l.find(findMsInputPlaceholder);return same(l)===same(m)&&!(findMsVendor(l)&&findMsVendor(m))}function noVendor(l){return!T.test(l)}const A={":active":k,":after":C,":any-link":"css-any-link",":before":C,":checked":S,":default":"css-default-pseudo",":dir":"css-dir-pseudo",":disabled":S,":empty":S,":enabled":S,":first-child":k,":first-letter":E,":first-line":O,":first-of-type":S,":focus":k,":focus-within":"css-focus-within",":focus-visible":"css-focus-visible",":has":"css-has",":hover":k,":in-range":P,":indeterminate":"css-indeterminate-pseudo",":invalid":L,":is":"css-matches-pseudo",":lang":k,":last-child":S,":last-of-type":S,":link":k,":matches":"css-matches-pseudo",":not":S,":nth-child":S,":nth-last-child":S,":nth-last-of-type":S,":nth-of-type":S,":only-child":S,":only-of-type":S,":optional":"css-optional-pseudo",":out-of-range":P,":placeholder-shown":"css-placeholder-shown",":required":L,":root":S,":target":S,"::after":C,"::backdrop":"dialog","::before":C,"::first-letter":E,"::first-line":O,"::marker":"css-marker-pseudo","::placeholder":"css-placeholder","::selection":"css-selection",":valid":L,":visited":k};function isCssMixin(l){return l[l.length-1]===":"}function isHostPseudoClass(l){return l.includes(":host")}const q=new Map;function isSupportedCached(l,m){const v=JSON.stringify({feature:l,browsers:m});let w=q.get(v);if(!w){w=y(l,m);q.set(v,w)}return w}function ensureCompatibility(l,m,v){if(l.some(isCssMixin)){return false}if(l.some(isHostPseudoClass)){return false}return l.every((l=>{if(_.test(l)){return true}if(v&&v.has(l)){return v.get(l)}let y=true;w((l=>{l.walk((l=>{const{type:v,value:w}=l;if(v==="pseudo"){const l=A[w];if(!l&&noVendor(w)){y=false}if(l&&y){y=isSupportedCached(l,m)}}if(v==="combinator"){if(w.includes("~")){y=isSupportedCached(S,m)}if(w.includes(">")||w.includes("+")){y=isSupportedCached(k,m)}}if(v==="attribute"&&l.attribute){if(!l.operator){y=isSupportedCached(k,m)}if(w){if(D.has(l.operator)){y=isSupportedCached(k,m)}if(R.has(l.operator)){y=isSupportedCached(S,m)}}if(l.insensitive){y=isSupportedCached("css-case-insensitive",m)}}if(!y){return false}}))})).processSync(l);if(v){v.set(l,y)}return y}))}l.exports={sameVendor:sameVendor,noVendor:noVendor,pseudoElements:A,ensureCompatibility:ensureCompatibility}},6822:(l,m,v)=>{"use strict";const y=v(2045);const w=v(279);const _=v(8797);const k=v(3346);function hasVariableFunction(l){const m=l.toLowerCase();return m.includes("var(")||m.includes("env(")}function transform(l,m,v){let S=l.toLowerCase();let C="";if(typeof v.removeQuotes==="function"){C=v.removeQuotes(l);v.removeQuotes=true}if((S==="font-weight"||C==="font-weight")&&!hasVariableFunction(m)){return w(m)}else if((S==="font-family"||C==="font-family")&&!hasVariableFunction(m)){const l=y(m);l.nodes=_(l.nodes,v);return l.toString()}else if(S==="font"||C==="font"){return k(m,v)}return m}function pluginCreator(l){l=Object.assign({},{removeAfterKeyword:false,removeDuplicates:true,removeQuotes:true},l);return{postcssPlugin:"postcss-minify-font-values",prepare(){const m=new Map;return{OnceExit(v){v.walkDecls(/font/i,(v=>{const y=v.value;if(!y){return}const w=v.prop;const _=`${w}|${y}`;if(m.has(_)){v.value=m.get(_);return}const k=transform(w,y,l);v.value=k;m.set(_,k)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},9382:l=>{"use strict";l.exports={style:new Set(["italic","oblique"]),variant:new Set(["small-caps"]),weight:new Set(["100","200","300","400","500","600","700","800","900","bold","lighter","bolder"]),stretch:new Set(["ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded"]),size:new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"])}},8797:(l,m,v)=>{"use strict";const{stringify:y}=v(2045);function uniqueFontFamilies(l){return l.filter(((m,v)=>{if(m.toLowerCase()==="monospace"){return true}return v===l.indexOf(m)}))}const w=["inherit","initial","unset"];const _=new Set(["sans-serif","serif","fantasy","cursive","monospace","system-ui"]);function makeArray(l,m){let v=[];while(m--){v[m]=l}return v}const k=/[ !"#$%&'()*+,.\/;<=>?@\[\\\]^`{|}~]/;function escape(l,m){let v=0;let y;let w;let _;let S="";while(v{const y=v.length;const w=Math.floor(y/2);const _=makeArray("\\ ",w);if(y%2){_[w-1]+="\\ "}return(m||"")+" "+_.join(" ")}));if(D.test(y)&&!T.test(y)){y=y.replace(D,"\\ ")}if(E.test(y)){y="\\ "+y.slice(1)}return y}l.exports=function(l,m){const v=[];let w=null;let k,C;l.forEach(((l,m,y)=>{if(l.type==="string"||l.type==="function"){v.push(l)}else if(l.type==="word"){if(!w){w={type:"word",value:""};v.push(w)}w.value+=l.value}else if(l.type==="space"){if(w&&m!==y.length-1){w.value+=" "}}else{w=null}}));let E=v.map((l=>{if(l.type==="string"){const v=S.test(l.value);if(!m.removeQuotes||v||/[0-9]/.test(l.value.slice(0,1))){return y(l)}let w=escapeIdentifierSequence(l.value);if(w.length{"use strict";const y=v(2045);const w=v(9382);const _=v(8797);const k=v(279);function normalizeNodes(l,m){for(const v of m){l.splice(v,0,{type:"space",value:" "})}}l.exports=function(l,m){const v=y(l);const S=v.nodes;let C=NaN;let E=false;const O=new Set;for(const[l,m]of S.entries()){if(m.type==="string"&&l>0&&S[l-1].type!=="space"){O.add(l)}if(m.type==="word"){if(E){continue}const v=m.value.toLowerCase();if(v==="normal"||v==="inherit"||v==="initial"||v==="unset"){C=l}else if(w.style.has(v)||y.unit(v)){C=l}else if(w.variant.has(v)){C=l}else if(w.weight.has(v)){m.value=k(v);C=l}else if(w.stretch.has(v)){C=l}else if(w.size.has(v)||y.unit(v)){C=l;E=true}}else if(m.type==="function"&&S[l+1]&&S[l+1].type==="space"){C=l}else if(m.type==="div"&&m.value==="/"){C=l+1;break}}normalizeNodes(S,O);C+=2;const P=_(S.slice(C),m);v.nodes=S.slice(0,C).concat(P);return v.toString()}},279:l=>{"use strict";l.exports=function(l){const m=l.toLowerCase();return m==="normal"?"400":m==="bold"?"700":l}},7751:(l,m,v)=>{"use strict";const y=v(2045);const{getArguments:w}=v(2330);const _=v(7590);const k={top:"0deg",right:"90deg",bottom:"180deg",left:"270deg"};function isLessThan(l,m){return l.unit.toLowerCase()===m.unit.toLowerCase()&&parseFloat(l.number)>=parseFloat(m.number)}function optimise(l){const m=l.value;if(!m){return}const v=m.toLowerCase();if(v.includes("var(")||v.includes("env(")){return}if(!v.includes("gradient")){return}l.value=y(m).walk((l=>{if(l.type!=="function"||!l.nodes.length){return false}const m=l.value.toLowerCase();if(m==="linear-gradient"||m==="repeating-linear-gradient"||m==="-webkit-linear-gradient"||m==="-webkit-repeating-linear-gradient"){let m=w(l);if(l.nodes[0].value.toLowerCase()==="to"&&m[0].length===3){l.nodes=l.nodes.slice(2);l.nodes[0].value=k[l.nodes[0].value.toLowerCase()]}let v;m.forEach(((l,w)=>{if(l.length!==3){return}let _=w===m.length-1;let k=y.unit(l[2].value);if(v===undefined){v=k;if(!_&&v&&v.number==="0"&&v.unit.toLowerCase()!=="deg"){l[1].value=l[2].value=""}return}if(v&&k&&isLessThan(v,k)){l[2].value="0"}v=k;if(_&&l[2].value==="100%"){l[1].value=l[2].value=""}}));return false}if(m==="radial-gradient"||m==="repeating-radial-gradient"){let m=w(l);let v;const _=m[0].find((l=>l.value.toLowerCase()==="at"));m.forEach(((l,m)=>{if(!l[2]||!m&&_){return}let w=y.unit(l[2].value);if(!v){v=w;return}if(v&&w&&isLessThan(v,w)){l[2].value="0"}v=w}));return false}if(m==="-webkit-radial-gradient"||m==="-webkit-repeating-radial-gradient"){let m=w(l);let v;m.forEach((l=>{let m;let w;if(l[2]!==undefined){if(l[0].type==="function"){m=`${l[0].value}(${y.stringify(l[0].nodes)})`}else{m=l[0].value}if(l[2].type==="function"){w=`${l[2].value}(${y.stringify(l[2].nodes)})`}else{w=l[2].value}}else{if(l[0].type==="function"){m=`${l[0].value}(${y.stringify(l[0].nodes)})`}m=l[0].value}m=m.toLowerCase();const k=w!==undefined?_(m,w.toLowerCase()):_(m);if(!k||!l[2]){return}let S=y.unit(l[2].value);if(!v){v=S;return}if(v&&S&&isLessThan(v,S)){l[2].value="0"}v=S}));return false}})).toString()}function pluginCreator(){return{postcssPlugin:"postcss-minify-gradients",OnceExit(l){l.walkDecls(optimise)}}}pluginCreator.postcss=true;l.exports=pluginCreator},7590:(l,m,v)=>{"use strict";const{unit:y}=v(2045);const{colord:w,extend:_}=v(3251);const k=v(2338);_([k]);const S=new Set(["PX","IN","CM","MM","EM","REM","POINTS","PC","EX","CH","VW","VH","VMIN","VMAX","%"]);function isCSSLengthUnit(l){return S.has(l.toUpperCase())}function isStop(l){if(l){let m=false;const v=y(l);if(v){const l=Number(v.number);if(l===0||!isNaN(l)&&isCSSLengthUnit(v.unit)){m=true}}else{m=/^calc\(\S+\)$/g.test(l)}return m}return true}l.exports=function isColorStop(l,m){return w(l).isValid()&&isStop(m)}},4346:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const _=v(2045);const{getArguments:k}=v(2330);function gcd(l,m){return m?gcd(m,l%m):l}function aspectRatio(l,m){const v=gcd(l,m);return[l/v,m/v]}function split(l){return l.map((l=>_.stringify(l))).join("")}function removeNode(l){l.value="";l.type="word"}function sortAndDedupe(l){const m=[...new Set(l)];m.sort();return m.join()}function transform(l,m){const v=m.name.toLowerCase();if(!m.params||!["media","supports"].includes(v)){return}const y=_(m.params);y.walk(((v,w)=>{if(v.type==="div"){v.before=v.after=""}else if(v.type==="function"){v.before="";if(v.nodes[0]&&v.nodes[0].type==="word"&&v.nodes[0].value.startsWith("--")&&v.nodes[2]===undefined){v.after=" "}else{v.after=""}if(v.nodes[4]&&v.nodes[0].value.toLowerCase().indexOf("-aspect-ratio")===3){const[l,m]=aspectRatio(Number(v.nodes[2].value),Number(v.nodes[4].value));v.nodes[2].value=l.toString();v.nodes[4].value=m.toString()}}else if(v.type==="space"){v.value=" "}else{const _=y.nodes[w-2];if(v.value.toLowerCase()==="all"&&m.name.toLowerCase()==="media"&&!_){const m=y.nodes[w+2];if(!l||m){removeNode(v)}if(m&&m.value.toLowerCase()==="and"){const l=y.nodes[w+1];const v=y.nodes[w+3];removeNode(m);removeNode(l);removeNode(v)}}}}),true);m.params=sortAndDedupe(k(y).map(split));if(!m.params.length){m.raws.afterName=""}}const S=new Set(["ie 10","ie 11"]);function pluginCreator(l={}){return{postcssPlugin:"postcss-minify-params",prepare(m){const{stats:v,env:_,from:k,file:C}=m.opts||{};const E=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||C||__filename),env:l.env||_});const O=E.some((l=>S.has(l)));return{OnceExit(l){l.walkAtRules((l=>transform(O,l)))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},9779:(l,m,v)=>{"use strict";const y=v(6206);const w=v(8558);const _=new Set(["::before","::after","::first-letter","::first-line"]);function attribute(l){if(l.value){if(l.raws.value){l.raws.value=l.raws.value.replace(/\\\n/g,"").trim()}if(w(l.value)){l.quoteMark=null}if(l.operator){l.operator=l.operator.trim()}}l.rawSpaceBefore="";l.rawSpaceAfter="";l.spaces.attribute={before:"",after:""};l.spaces.operator={before:"",after:""};l.spaces.value={before:"",after:l.insensitive?" ":""};if(l.raws.spaces){l.raws.spaces.attribute={before:"",after:""};l.raws.spaces.operator={before:"",after:""};l.raws.spaces.value={before:"",after:l.insensitive?" ":""};if(l.insensitive){l.raws.spaces.insensitive={before:"",after:""}}}l.attribute=l.attribute.trim()}function combinator(l){const m=l.value.trim();l.spaces.before="";l.spaces.after="";l.rawSpaceBefore="";l.rawSpaceAfter="";l.value=m.length?m:" "}const k=new Map([[":nth-child",":first-child"],[":nth-of-type",":first-of-type"],[":nth-last-child",":last-child"],[":nth-last-of-type",":last-of-type"]]);function pseudo(l){const m=l.value.toLowerCase();if(l.nodes.length===1&&k.has(m)){const v=l.at(0);const w=v.at(0);if(v.length===1){if(w.value==="1"){l.replaceWith(y.pseudo({value:k.get(m)}))}if(w.value&&w.value.toLowerCase()==="even"){w.value="2n"}}if(v.length===3){const l=v.at(1);const m=v.at(2);if(w.value&&w.value.toLowerCase()==="2n"&&l.value==="+"&&m.value==="1"){w.value="odd";l.remove();m.remove()}}return}l.walk((l=>{if(l.type==="selector"&&l.parent){const m=new Set;l.parent.each((l=>{const v=String(l);if(!m.has(v)){m.add(v)}else{l.remove()}}))}}));if(_.has(m)){l.value=l.value.slice(1)}}const S=new Map([["from","0%"],["100%","to"]]);function tag(l){const m=l.value.toLowerCase();const v=l.parent&&l.parent.nodes.length===1;if(!v){return}if(S.has(m)){l.value=S.get(m)}}function universal(l){const m=l.next();if(m&&m.type!=="combinator"){l.remove()}}const C=new Map([["attribute",attribute],["combinator",combinator],["pseudo",pseudo],["tag",tag],["universal",universal]]);function pluginCreator(){return{postcssPlugin:"postcss-minify-selectors",OnceExit(l){const m=new Map;const v=y((l=>{const m=new Set;l.walk((l=>{l.spaces.before=l.spaces.after="";const v=C.get(l.type);if(v!==undefined){v(l);return}const y=String(l);if(l.type==="selector"&&l.parent&&l.parent.type!=="pseudo"){if(!m.has(y)){m.add(y)}else{l.remove()}}}));l.nodes.sort()}));l.walkRules((l=>{const y=l.raws.selector&&l.raws.selector.value===l.selector?l.raws.selector.raw:l.selector;if(y[y.length-1]===":"){return}if(m.has(y)){l.selector=m.get(y);return}const w=v.processSync(y);l.selector=w;m.set(y,w)}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},8558:(l,m,v)=>{"use strict";const y=v(441);const w=/\\([0-9A-Fa-f]{1,6})[ \t\n\f\r]?/g;const _=/[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;l.exports=function canUnquote(l){if(l==="-"||l===""){return false}l=l.replace(w,"a").replace(/\\./g,"a");return!(_.test(l)||/^(?:-?\d|--)/.test(l))&&y(l)===l}},1982:l=>{"use strict";const m="charset";const v=/[^\x00-\x7F]/;function pluginCreator(l={}){return{postcssPlugin:"postcss-normalize-"+m,OnceExit(y,{AtRule:w}){let _;let k;y.walk((l=>{if(l.type==="atrule"&&l.name===m){if(!_){_=l}l.remove()}else if(!k&&l.parent===y&&v.test(l.toString())){k=l}}));if(k){if(!_&&l.add!==false){_=new w({name:m,params:'"utf-8"'})}if(_){_.source=k.source;y.prepend(_)}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},5203:(l,m,v)=>{"use strict";const y=v(2045);const w=v(7769);function transform(l){const{nodes:m}=y(l);if(m.length===1){return l}const v=m.filter(((l,m)=>m%2===0)).filter((l=>l.type==="word")).map((l=>l.value.toLowerCase()));if(v.length===0){return l}const _=w.get(v.toString());if(!_){return l}return _}function pluginCreator(){return{postcssPlugin:"postcss-normalize-display-values",prepare(){const l=new Map;return{OnceExit(m){m.walkDecls(/^display$/i,(m=>{const v=m.value;if(!v){return}if(l.has(v)){m.value=l.get(v);return}const y=transform(v);m.value=y;l.set(v,y)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},7769:l=>{"use strict";const m="block";const v="flex";const y="flow";const w="flow-root";const _="grid";const k="inline";const S="inline-block";const C="inline-flex";const E="inline-grid";const O="inline-table";const P="list-item";const L="ruby";const T="ruby-base";const D="ruby-text";const R="run-in";const A="table";const q="table-cell";const F="table-caption";l.exports=new Map([[[m,y].toString(),m],[[m,w].toString(),w],[[k,y].toString(),k],[[k,w].toString(),S],[[R,y].toString(),R],[[P,m,y].toString(),P],[[k,y,P].toString(),k+" "+P],[[m,v].toString(),v],[[k,v].toString(),C],[[m,_].toString(),_],[[k,_].toString(),E],[[k,L].toString(),L],[[m,A].toString(),A],[[k,A].toString(),O],[[q,y].toString(),q],[[F,y].toString(),F],[[T,y].toString(),T],[[D,y].toString(),D]])},1184:(l,m,v)=>{"use strict";const y=v(2045);const w=new Set(["top","right","bottom","left","center"]);const _="50%";const k=new Map([["right","100%"],["left","0"]]);const S=new Map([["bottom","100%"],["top","0"]]);const C=new Set(["calc","min","max","clamp"]);const E=new Set(["var","env","constant"]);function isCommaNode(l){return l.type==="div"&&l.value===","}function isVariableFunctionNode(l){if(l.type!=="function"){return false}return E.has(l.value.toLowerCase())}function isMathFunctionNode(l){if(l.type!=="function"){return false}return C.has(l.value.toLowerCase())}function isNumberNode(l){if(l.type!=="word"){return false}const m=parseFloat(l.value);return!isNaN(m)}function isDimensionNode(l){if(l.type!=="word"){return false}const m=y.unit(l.value);if(!m){return false}return m.unit!==""}function transform(l){const m=y(l);const v=[];let C=0;let E=true;m.nodes.forEach(((l,m)=>{if(isCommaNode(l)){C+=1;E=true;return}if(!E){return}if(l.type==="div"&&l.value==="/"){E=false;return}if(!v[C]){v[C]={start:null,end:null}}if(isVariableFunctionNode(l)){E=false;v[C].start=null;v[C].end=null;return}const y=l.type==="word"&&w.has(l.value.toLowerCase())||isDimensionNode(l)||isNumberNode(l)||isMathFunctionNode(l);if(v[C].start===null&&y){v[C].start=m;v[C].end=m;return}if(v[C].start!==null){if(l.type==="space"){return}else if(y){v[C].end=m;return}return}}));v.forEach((l=>{if(l.start===null){return}const v=m.nodes.slice(l.start,l.end+1);if(v.length>3){return}const y=v[0].value.toLowerCase();const C=v[2]&&v[2].value?v[2].value.toLowerCase():null;if(v.length===1||C==="center"){if(C){v[2].value=v[1].value=""}const l=new Map([...k,["center",_]]);if(l.has(y)){v[0].value=l.get(y)}return}if(C!==null){if(y==="center"&&w.has(C)){v[0].value=v[1].value="";if(k.has(C)){v[2].value=k.get(C)}return}if(k.has(y)&&S.has(C)){v[0].value=k.get(y);v[2].value=S.get(C);return}else if(S.has(y)&&k.has(C)){v[0].value=k.get(C);v[2].value=S.get(y);return}}}));return m.toString()}function pluginCreator(){return{postcssPlugin:"postcss-normalize-positions",OnceExit(l){const m=new Map;l.walkDecls(/^(background(-position)?|(-\w+-)?perspective-origin)$/i,(l=>{const v=l.value;if(!v){return}if(m.has(v)){l.value=m.get(v);return}const y=transform(v);l.value=y;m.set(v,y)}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},5271:(l,m,v)=>{"use strict";const y=v(2045);const w=v(9565);function evenValues(l,m){return m%2===0}const _=new Set(w.values());function isCommaNode(l){return l.type==="div"&&l.value===","}const k=new Set(["var","env","constant"]);function isVariableFunctionNode(l){if(l.type!=="function"){return false}return k.has(l.value.toLowerCase())}function transform(l){const m=y(l);if(m.nodes.length===1){return l}const v=[];let k=0;let S=true;m.nodes.forEach(((l,m)=>{if(isCommaNode(l)){k+=1;S=true;return}if(!S){return}if(l.type==="div"&&l.value==="/"){S=false;return}if(!v[k]){v[k]={start:null,end:null}}if(isVariableFunctionNode(l)){S=false;v[k].start=null;v[k].end=null;return}const y=l.type==="word"&&_.has(l.value.toLowerCase());if(v[k].start===null&&y){v[k].start=m;v[k].end=m;return}if(v[k].start!==null){if(l.type==="space"){return}else if(y){v[k].end=m;return}return}}));v.forEach((l=>{if(l.start===null){return}const v=m.nodes.slice(l.start,l.end+1);if(v.length!==3){return}const y=v.filter(evenValues).map((l=>l.value.toLowerCase())).toString();const _=w.get(y);if(_){v[0].value=_;v[1].value=v[2].value=""}}));return m.toString()}function pluginCreator(){return{postcssPlugin:"postcss-normalize-repeat-style",prepare(){const l=new Map;return{OnceExit(m){m.walkDecls(/^(background(-repeat)?|(-\w+-)?mask-repeat)$/i,(m=>{const v=m.value;if(!v){return}if(l.has(v)){m.value=l.get(v);return}const y=transform(v);m.value=y;l.set(v,y)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},9565:l=>{"use strict";l.exports=new Map([[["repeat","no-repeat"].toString(),"repeat-x"],[["no-repeat","repeat"].toString(),"repeat-y"],[["repeat","repeat"].toString(),"repeat"],[["space","space"].toString(),"space"],[["round","round"].toString(),"round"],[["no-repeat","no-repeat"].toString(),"no-repeat"]])},7823:(l,m,v)=>{"use strict";const y=v(2045);const w="'".charCodeAt(0);const _='"'.charCodeAt(0);const k="\\".charCodeAt(0);const S="\n".charCodeAt(0);const C=" ".charCodeAt(0);const E="\f".charCodeAt(0);const O="\t".charCodeAt(0);const P="\r".charCodeAt(0);const L=/[ \n\t\r\f'"\\]/g;const T="string";const D="escapedSingleQuote";const R="escapedDoubleQuote";const A="singleQuote";const q="doubleQuote";const F="newline";const V="single";const $=`'`;const z=`"`;const U=`\\\n`;const W={type:D,value:`\\'`};const B={type:R,value:`\\"`};const Q={type:A,value:$};const Y={type:q,value:z};const G={type:F,value:U};function stringify(l){return l.nodes.reduce(((l,{value:m})=>{if(m===U){return l}return l+m}),"")}function parse(l){let m,v,y;let F=0;let V=l.length;const $={nodes:[],types:{escapedSingleQuote:0,escapedDoubleQuote:0,singleQuote:0,doubleQuote:0},quotes:false};while(F0&&!v[R]){l.quote=z}if(l.quote===z&&v[R]>0&&!v[D]){l.quote=$}m.nodes=changeChildQuotes(m.nodes,l.quote)}function changeChildQuotes(l,m){const v=[];for(const y of l){if(y.type===R&&m===$){v.push(Y)}else if(y.type===D&&m===z){v.push(Q)}else{v.push(y)}}return v}function normalize(l,m){if(!l||!l.length){return l}return y(l).walk((l=>{if(l.type!==T){return}const v=parse(l.value);if(v.quotes){changeWrappingQuotes(l,v)}else if(m===V){l.quote=$}else{l.quote=z}l.value=stringify(v)})).toString()}function minify(l,m,v){const y=l+"|"+v;if(m.has(y)){return m.get(y)}const w=normalize(l,v);m.set(y,w);return w}function pluginCreator(l){const{preferredQuote:m}=Object.assign({},{preferredQuote:"double"},l);return{postcssPlugin:"postcss-normalize-string",OnceExit(l){const v=new Map;l.walk((l=>{switch(l.type){case"rule":l.selector=minify(l.selector,v,m);break;case"decl":l.value=minify(l.value,v,m);break;case"atrule":l.params=minify(l.params,v,m);break}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},1337:(l,m,v)=>{"use strict";const y=v(2045);const getValue=l=>parseFloat(l.value);const w=new Map([[[.25,.1,.25,1].toString(),"ease"],[[0,0,1,1].toString(),"linear"],[[.42,0,1,1].toString(),"ease-in"],[[0,0,.58,1].toString(),"ease-out"],[[.42,0,.58,1].toString(),"ease-in-out"]]);function reduce(l){if(l.type!=="function"){return false}if(!l.value){return}const m=l.value.toLowerCase();if(m==="steps"){if(l.nodes[0].type==="word"&&getValue(l.nodes[0])===1&&l.nodes[2]&&l.nodes[2].type==="word"&&(l.nodes[2].value.toLowerCase()==="start"||l.nodes[2].value.toLowerCase()==="jump-start")){l.type="word";l.value="step-start";delete l.nodes;return}if(l.nodes[0].type==="word"&&getValue(l.nodes[0])===1&&l.nodes[2]&&l.nodes[2].type==="word"&&(l.nodes[2].value.toLowerCase()==="end"||l.nodes[2].value.toLowerCase()==="jump-end")){l.type="word";l.value="step-end";delete l.nodes;return}if(l.nodes[2]&&l.nodes[2].type==="word"&&(l.nodes[2].value.toLowerCase()==="end"||l.nodes[2].value.toLowerCase()==="jump-end")){l.nodes=[l.nodes[0]];return}return false}if(m==="cubic-bezier"){const m=l.nodes.filter(((l,m)=>m%2===0)).map(getValue);if(m.length!==4){return}const v=w.get(m.toString());if(v){l.type="word";l.value=v;delete l.nodes;return}}}function transform(l){return y(l).walk(reduce).toString()}function pluginCreator(){return{postcssPlugin:"postcss-normalize-timing-functions",OnceExit(l){const m=new Map;l.walkDecls(/^(-\w+-)?(animation|transition)(-timing-function)?$/i,(l=>{const v=l.value;if(m.has(v)){l.value=m.get(v);return}const y=transform(v);l.value=y;m.set(v,y)}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},527:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const _=v(2045);const k=/^u(?=\+)/;function unicode(l){const m=l.slice(2).split("-");if(m.length<2){return l}const v=m[0].split("");const y=m[1].split("");if(v.length!==y.length){return l}const w=mergeRangeBounds(v,y);if(w){return w}return l}function mergeRangeBounds(l,m){let v=0;let y="u+";for(const[w,_]of l.entries()){if(_===m[w]&&v===0){y=y+_}else if(_==="0"&&m[w]==="f"){v++;y=y+"?"}else{return false}}if(v<6){return y}else{return false}}function hasLowerCaseUPrefixBug(l){return w("ie <=11, edge <= 15").includes(l)}function transform(l,m=false){return _(l).walk((l=>{if(l.type==="unicode-range"){const v=unicode(l.value.toLowerCase());l.value=m?v.replace(k,"U"):v}return false})).toString()}function pluginCreator(l={}){return{postcssPlugin:"postcss-normalize-unicode",prepare(m){const{stats:v,env:_,from:k,file:S}=m.opts||{};const C=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(k||S||__filename),env:l.env||_});const E=new Map;const O=C.some(hasLowerCaseUPrefixBug);return{OnceExit(l){l.walkDecls(/^unicode-range$/i,(l=>{const m=l.value;if(E.has(m)){l.value=E.get(m);return}const v=transform(m,O);l.value=v;E.set(m,v)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},2288:(l,m,v)=>{"use strict";const y=v(1017);const w=v(2045);const _=v(3881);const k=/\\[\r\n]/;const S=/([\s\(\)"'])/g;const C=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;const E=/^[a-zA-Z]:\\/;function isAbsolute(l){if(E.test(l)){return false}return C.test(l)}function convert(l){if(isAbsolute(l)||l.startsWith("//")){let m;try{m=_(l)}catch{m=l}return m}return y.normalize(l).replace(new RegExp("\\"+y.sep,"g"),"/")}function transformNamespace(l){l.params=w(l.params).walk((l=>{if(l.type==="function"&&l.value.toLowerCase()==="url"&&l.nodes.length){l.type="string";l.quote=l.nodes[0].type==="string"?l.nodes[0].quote:'"';l.value=l.nodes[0].value}if(l.type==="string"){l.value=l.value.trim()}return false})).toString()}function transformDecl(l){l.value=w(l.value).walk((l=>{if(l.type!=="function"||l.value.toLowerCase()!=="url"){return false}l.before=l.after="";if(!l.nodes.length){return false}let m=l.nodes[0];let v;m.value=m.value.trim().replace(k,"");if(m.value.length===0){m.quote="";return false}if(/^data:(.*)?,/i.test(m.value)){return false}if(!/^.+-extension:\//i.test(m.value)){m.value=convert(m.value)}if(S.test(m.value)&&m.type==="string"){v=m.value.replace(S,"\\$1");if(v.length{if(l.type==="decl"){return transformDecl(l)}else if(l.type==="atrule"&&l.name.toLowerCase()==="namespace"){return transformNamespace(l)}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},3881:l=>{"use strict";const m="text/plain";const v="us-ascii";const y=new Set(["https:","http:","file:"]);function hasCustomProtocol(l){try{const{protocol:m}=new URL(l);return m.endsWith(":")&&!y.has(m)}catch{return false}}function normalizeDataURL(l){const y=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(l);if(!y){throw new Error(`Invalid URL: ${l}`)}let{type:w,data:_,hash:k}=y.groups;const S=w.split(";");let C=false;if(S[S.length-1]==="base64"){S.pop();C=true}const E=S.shift()?.toLowerCase()??"";const O=S.map((l=>{let[m,y=""]=l.split("=").map((l=>l.trim()));if(m==="charset"){y=y.toLowerCase();if(y===v){return""}}return`${m}${y?`=${y}`:""}`})).filter(Boolean);const P=[...O];if(C){P.push("base64")}if(P.length>0||E&&E!==m){P.unshift(E)}return`data:${P.join(";")},${C?_.trim():_}${k?`#${k}`:""}`}function normalizeUrl(l){l=l.trim();if(/^data:/i.test(l)){return normalizeDataURL(l)}if(hasCustomProtocol(l)){return l}const m=l.startsWith("//");const v=!m&&/^\.*\//.test(l);if(!v){l=l.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,"http:")}const y=new URL(l);if(y.pathname){y.pathname=y.pathname.replace(/(?{"use strict";const y=v(2045);const w="atrule";const _="decl";const k="rule";const S=new Set(["var","env","constant"]);function reduceCalcWhitespaces(l){if(l.type==="space"){l.value=" "}else if(l.type==="function"){if(!S.has(l.value.toLowerCase())){l.before=l.after=""}}}function reduceWhitespaces(l){if(l.type==="space"){l.value=" "}else if(l.type==="div"){l.before=l.after=""}else if(l.type==="function"){if(!S.has(l.value.toLowerCase())){l.before=l.after=""}if(l.value.toLowerCase()==="calc"){y.walk(l.nodes,reduceCalcWhitespaces);return false}}}function pluginCreator(){return{postcssPlugin:"postcss-normalize-whitespace",OnceExit(l){const m=new Map;l.walk((l=>{const{type:v}=l;if([_,k,w].includes(v)&&l.raws.before){l.raws.before=l.raws.before.replace(/\s/g,"")}if(v===_){if(l.important){l.raws.important="!important"}l.value=l.value.replace(/\s*(\\9)\s*/,"$1");const v=l.value;if(m.has(v)){l.value=m.get(v)}else{const w=y(l.value);const _=w.walk(reduceWhitespaces).toString();l.value=_;m.set(v,_)}if(l.prop.startsWith("--")&&l.value===""){l.value=" "}if(l.raws.before){const m=l.prev();if(m&&m.type!==k){l.raws.before=l.raws.before.replace(/;/g,"")}}l.raws.between=":";l.raws.semicolon=false}else if(v===k||v===w){l.raws.between=l.raws.after="";l.raws.semicolon=false}}));l.raws.after=""}}}pluginCreator.postcss=true;l.exports=pluginCreator},492:(l,m,v)=>{"use strict";const y=v(2045);const{normalizeGridAutoFlow:w,normalizeGridColumnRowGap:_,normalizeGridColumnRow:k}=v(5540);const S=v(7228);const C=v(3841);const E=v(350);const O=v(3412);const P=v(2863);const L=v(8716);const T=v(1834);const D=v(4148);const R=[["border",C],["border-block",C],["border-inline",C],["border-block-end",C],["border-block-start",C],["border-inline-end",C],["border-inline-start",C],["border-top",C],["border-right",C],["border-bottom",C],["border-left",C]];const A=[["grid-auto-flow",w],["grid-column-gap",_],["grid-row-gap",_],["grid-column",k],["grid-row",k],["grid-row-start",k],["grid-row-end",k],["grid-column-start",k],["grid-column-end",k]];const q=[["column-rule",C],["columns",T]];const F=new Map([["animation",S],["outline",C],["box-shadow",E],["flex-flow",O],["list-style",L],["transition",P],...R,...A,...q]);const V=new Set(["var","env","constant"]);function isVariableFunctionNode(l){if(l.type!=="function"){return false}return V.has(l.value.toLowerCase())}function shouldAbort(l){let m=false;l.walk((l=>{if(l.type==="comment"||isVariableFunctionNode(l)||l.type==="word"&&l.value.includes(`___CSS_LOADER_IMPORT___`)){m=true;return false}}));return m}function getValue(l){let{value:m,raws:v}=l;if(v&&v.value&&v.value.raw){m=v.value.raw}return m}function pluginCreator(){return{postcssPlugin:"postcss-ordered-values",prepare(){const l=new Map;return{OnceExit(m){m.walkDecls((m=>{const v=m.prop.toLowerCase();const w=D(v);const _=F.get(w);if(!_){return}const k=getValue(m);if(l.has(k)){m.value=l.get(k);return}const S=y(k);if(S.nodes.length<2||shouldAbort(S)){l.set(k,k);return}const C=_(S);m.value=C.toString();l.set(k,C.toString())}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},6244:l=>{"use strict";l.exports=function addSpace(){return{type:"space",value:" "}}},7658:(l,m,v)=>{"use strict";const{stringify:y}=v(2045);l.exports=function getValue(l){return y(flatten(l))};function flatten(l){const m=[];for(const[v,y]of l.entries()){y.forEach(((w,_)=>{if(_===y.length-1&&v===l.length-1&&w.type==="space"){return}m.push(w)}));if(v!==l.length-1){m[m.length-1].type="div";m[m.length-1].value=","}}return m}},7094:l=>{"use strict";l.exports=function joinGridVal(l){return l.join(" / ").trim()}},9640:l=>{"use strict";l.exports=new Set(["calc","clamp","max","min"])},4148:l=>{"use strict";function vendorUnprefixed(l){return l.replace(/^-\w+-/,"")}l.exports=vendorUnprefixed},7228:(l,m,v)=>{"use strict";const{unit:y}=v(2045);const{getArguments:w}=v(2330);const _=v(6244);const k=v(7658);const S=v(9640);const C=new Set(["steps","cubic-bezier","frames"]);const E=new Set(["ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start"]);const O=new Set(["normal","reverse","alternate","alternate-reverse"]);const P=new Set(["none","forwards","backwards","both"]);const L=new Set(["running","paused"]);const T=new Set(["ms","s"]);function unitFromNode(l,m){if(m.type!=="function"){return y(l)}if(S.has(l)){for(const l of m.nodes){const m=unitFromNode(l.value.toLowerCase(),l);if(m&&m.unit&&m.unit!=="%"){return m}}}return false}const isTimingFunction=(l,{type:m})=>m==="function"&&C.has(l)||E.has(l);const isDirection=l=>O.has(l);const isFillMode=l=>P.has(l);const isPlayState=l=>L.has(l);const isTime=(l,m)=>{const v=unitFromNode(l,m);return v&&T.has(v.unit)};const isIterationCount=(l,m)=>{const v=unitFromNode(l,m);return l==="infinite"||v&&!v.unit};const D=[{property:"duration",delegate:isTime},{property:"timingFunction",delegate:isTimingFunction},{property:"delay",delegate:isTime},{property:"iterationCount",delegate:isIterationCount},{property:"direction",delegate:isDirection},{property:"fillMode",delegate:isFillMode},{property:"playState",delegate:isPlayState}];function normalize(l){const m=[];for(const v of l){const l={name:[],duration:[],timingFunction:[],delay:[],iterationCount:[],direction:[],fillMode:[],playState:[]};v.forEach((m=>{let{type:v,value:y}=m;if(v==="space"){return}y=y.toLowerCase();const w=D.some((({property:v,delegate:w})=>{if(w(y,m)&&!l[v].length){l[v]=[m,_()];return true}}));if(!w){l.name=[...l.name,m,_()]}}));m.push([...l.name,...l.duration,...l.timingFunction,...l.delay,...l.iterationCount,...l.direction,...l.fillMode,...l.playState])}return m}l.exports=function normalizeAnimation(l){const m=normalize(w(l));return k(m)}},3841:(l,m,v)=>{"use strict";const{unit:y,stringify:w}=v(2045);const _=v(9640);const k=new Set(["thin","medium","thick"]);const S=new Set(["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]);l.exports=function normalizeBorder(l){const m={width:"",style:"",color:""};l.walk((l=>{const{type:v,value:C}=l;if(v==="word"){if(S.has(C.toLowerCase())){m.style=C;return false}if(k.has(C.toLowerCase())||y(C.toLowerCase())){if(m.width!==""){m.width=`${m.width} ${C}`;return false}m.width=C;return false}m.color=C;return false}if(v==="function"){if(_.has(C.toLowerCase())){m.width=w(l)}else{m.color=w(l)}return false}}));return`${m.width} ${m.style} ${m.color}`.trim()}},350:(l,m,v)=>{"use strict";const{unit:y}=v(2045);const{getArguments:w}=v(2330);const _=v(6244);const k=v(7658);const S=v(9640);const C=v(4148);l.exports=function normalizeBoxShadow(l){let m=w(l);const v=normalize(m);if(v===false){return l.toString()}return k(v)};function normalize(l){const m=[];let v=false;for(const w of l){let l=[];let k={inset:[],color:[]};w.forEach((m=>{const{type:w,value:E}=m;if(w==="function"&&S.has(C(E.toLowerCase()))){v=true;return}if(w==="space"){return}if(y(E)){l=[...l,m,_()]}else if(E.toLowerCase()==="inset"){k.inset=[...k.inset,m,_()]}else{k.color=[...k.color,m,_()]}}));if(v){return false}m.push([...k.inset,...l,...k.color])}return m}},1834:(l,m,v)=>{"use strict";const{unit:y}=v(2045);function hasUnit(l){const m=y(l);return m&&m.unit!==""}l.exports=l=>{const m=[];const v=[];l.walk((l=>{const{type:y,value:w}=l;if(y==="word"){if(hasUnit(w)){m.push(w)}else{v.push(w)}}}));if(v.length===1&&m.length===1){return`${m[0].trimStart()} ${v[0].trimStart()}`}return l}},3412:l=>{"use strict";const m=new Set(["row","row-reverse","column","column-reverse"]);const v=new Set(["nowrap","wrap","wrap-reverse"]);l.exports=function normalizeFlexFlow(l){let y={direction:"",wrap:""};l.walk((({value:l})=>{if(m.has(l.toLowerCase())){y.direction=l;return}if(v.has(l.toLowerCase())){y.wrap=l;return}}));return`${y.direction} ${y.wrap}`.trim()}},5540:(l,m,v)=>{"use strict";const y=v(7094);const normalizeGridAutoFlow=l=>{let m={front:"",back:""};let v=false;l.walk((l=>{if(l.value==="dense"){v=true;m.back=l.value}else if(["row","column"].includes(l.value.trim().toLowerCase())){v=true;m.front=l.value}else{v=false}}));if(v){return`${m.front.trim()} ${m.back.trim()}`}return l};const normalizeGridColumnRowGap=l=>{let m={front:"",back:""};let v=false;l.walk((l=>{if(l.value==="normal"){v=true;m.front=l.value}else{m.back=`${m.back} ${l.value}`}}));if(v){return`${m.front.trim()} ${m.back.trim()}`}return l};const normalizeGridColumnRow=l=>{let m=l.toString().split("/");if(m.length>1){return y(m.map((l=>{let m={front:"",back:""};l=l.trim();l.split(" ").forEach((l=>{if(l==="span"){m.front=l}else{m.back=`${m.back} ${l}`}}));return`${m.front.trim()} ${m.back.trim()}`})))}return m.map((l=>{let m={front:"",back:""};l=l.trim();l.split(" ").forEach((l=>{if(l==="span"){m.front=l}else{m.back=`${m.back} ${l}`}}));return`${m.front.trim()} ${m.back.trim()}`}))};l.exports={normalizeGridAutoFlow:normalizeGridAutoFlow,normalizeGridColumnRowGap:normalizeGridColumnRowGap,normalizeGridColumnRow:normalizeGridColumnRow}},8716:(l,m,v)=>{"use strict";const y=v(2045);const w=v(1722);const _=new Set(w["list-style-type"]);const k=new Set(["inside","outside"]);l.exports=function listStyleNormalizer(l){const m={type:"",position:"",image:""};l.walk((l=>{if(l.type==="word"){if(_.has(l.value)){m.type=`${m.type} ${l.value}`}else if(k.has(l.value)){m.position=`${m.position} ${l.value}`}else if(l.value==="none"){if(m.type.split(" ").filter((l=>l!==""&&l!==" ")).includes("none")){m.image=`${m.image} ${l.value}`}else{m.type=`${m.type} ${l.value}`}}else{m.type=`${m.type} ${l.value}`}}if(l.type==="function"){m.image=`${m.image} ${y.stringify(l)}`}}));return`${m.type.trim()} ${m.position.trim()} ${m.image.trim()}`.trim()}},2863:(l,m,v)=>{"use strict";const{unit:y}=v(2045);const{getArguments:w}=v(2330);const _=v(6244);const k=v(7658);const S=new Set(["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"]);function normalize(l){const m=[];for(const v of l){let l={timingFunction:[],property:[],time1:[],time2:[]};v.forEach((m=>{const{type:v,value:w}=m;if(v==="space"){return}if(v==="function"&&new Set(["steps","cubic-bezier"]).has(w.toLowerCase())){l.timingFunction=[...l.timingFunction,m,_()]}else if(y(w)){if(!l.time1.length){l.time1=[...l.time1,m,_()]}else{l.time2=[...l.time2,m,_()]}}else if(S.has(w.toLowerCase())){l.timingFunction=[...l.timingFunction,m,_()]}else{l.property=[...l.property,m,_()]}}));m.push([...l.property,...l.time1,...l.timingFunction,...l.time2])}return m}l.exports=function normalizeTransition(l){const m=normalize(w(l));return k(m)}},3370:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const{isSupported:_}=v(6615);const k=v(3800);const S=v(26);const C=v(8078);const E="initial";const O=C;function pluginCreator(l={}){return{postcssPlugin:"postcss-reduce-initial",prepare(m){const{stats:v,env:C,from:P,file:L}=m.opts||{};const T=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(P||L||__filename),env:l.env||C});const D=_("css-initial-value",T);return{OnceExit(m){m.walkDecls((m=>{const v=m.prop.toLowerCase();const y=new Set(O.concat(l.ignore||[]));if(y.has(v)){return}if(D&&Object.prototype.hasOwnProperty.call(S,v)&&m.value.toLowerCase()===S[v]){m.value=E;return}if(m.value.toLowerCase()!==E||!k[v]){return}m.value=k[v]}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},8078:l=>{"use strict";l.exports=["writing-mode","transform-box"]},1716:(l,m,v)=>{"use strict";const y=v(2045);function getValues(l,m,v){if(v%2===0){let v=NaN;if(m.type==="function"&&(m.value==="var"||m.value==="env")&&m.nodes.length===1){v=y.stringify(m.nodes)}else if(m.type==="word"){v=parseFloat(m.value)}return[...l,v]}return l}function matrix3d(l,m){if(m.length!==16){return}if(m[15]&&m[2]===0&&m[3]===0&&m[6]===0&&m[7]===0&&m[8]===0&&m[9]===0&&m[10]===1&&m[11]===0&&m[14]===0&&m[15]===1){const{nodes:m}=l;l.value="matrix";l.nodes=[m[0],m[1],m[2],m[3],m[8],m[9],m[10],m[11],m[24],m[25],m[26]]}}const w=new Map([[[1,0,0].toString(),"rotateX"],[[0,1,0].toString(),"rotateY"],[[0,0,1].toString(),"rotate"]]);function rotate3d(l,m){if(m.length!==4){return}const{nodes:v}=l;const y=w.get(m.slice(0,3).toString());if(y){l.value=y;l.nodes=[v[6]]}}function rotateZ(l,m){if(m.length!==1){return}l.value="rotate"}function scale(l,m){if(m.length!==2){return}const{nodes:v}=l;const[y,w]=m;if(y===w){l.nodes=[v[0]];return}if(w===1){l.value="scaleX";l.nodes=[v[0]];return}if(y===1){l.value="scaleY";l.nodes=[v[2]];return}}function scale3d(l,m){if(m.length!==3){return}const{nodes:v}=l;const[y,w,_]=m;if(w===1&&_===1){l.value="scaleX";l.nodes=[v[0]];return}if(y===1&&_===1){l.value="scaleY";l.nodes=[v[2]];return}if(y===1&&w===1){l.value="scaleZ";l.nodes=[v[4]];return}}function translate(l,m){if(m.length!==2){return}const{nodes:v}=l;if(m[1]===0){l.nodes=[v[0]];return}if(m[0]===0){l.value="translateY";l.nodes=[v[2]];return}}function translate3d(l,m){if(m.length!==3){return}const{nodes:v}=l;if(m[0]===0&&m[1]===0){l.value="translateZ";l.nodes=[v[4]]}}const _=new Map([["matrix3d",matrix3d],["rotate3d",rotate3d],["rotateZ",rotateZ],["scale",scale],["scale3d",scale3d],["translate",translate],["translate3d",translate3d]]);function normalizeReducerName(l){const m=l.toLowerCase();if(m==="rotatez"){return"rotateZ"}return m}function reduce(l){if(l.type==="function"){const m=normalizeReducerName(l.value);const v=_.get(m);if(v!==undefined){v(l,l.nodes.reduce(getValues,[]))}}return false}function pluginCreator(){return{postcssPlugin:"postcss-reduce-transforms",prepare(){const l=new Map;return{OnceExit(m){m.walkDecls(/transform$/i,(m=>{const v=m.value;if(!v){return}if(l.has(v)){m.value=l.get(v);return}const w=y(v).walk(reduce).toString();m.value=w;l.set(v,w)}))}}}}}pluginCreator.postcss=true;l.exports=pluginCreator},6206:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(6440));var w=_interopRequireWildcard(v(7759));function _getRequireWildcardCache(l){if(typeof WeakMap!=="function")return null;var m=new WeakMap;var v=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?v:m})(l)}function _interopRequireWildcard(l,m){if(!m&&l&&l.__esModule){return l}if(l===null||typeof l!=="object"&&typeof l!=="function"){return{default:l}}var v=_getRequireWildcardCache(m);if(v&&v.has(l)){return v.get(l)}var y={};var w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l){if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var k=w?Object.getOwnPropertyDescriptor(l,_):null;if(k&&(k.get||k.set)){Object.defineProperty(y,_,k)}else{y[_]=l[_]}}}y["default"]=l;if(v){v.set(l,y)}return y}function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}var _=function parser(l){return new y["default"](l)};Object.assign(_,w);delete _.__esModule;var k=_;m["default"]=k;l.exports=m.default},5838:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(7774));var w=_interopRequireDefault(v(372));var _=_interopRequireDefault(v(7113));var k=_interopRequireDefault(v(6723));var S=_interopRequireDefault(v(8362));var C=_interopRequireDefault(v(4088));var E=_interopRequireDefault(v(4931));var O=_interopRequireDefault(v(9573));var P=_interopRequireWildcard(v(4910));var L=_interopRequireDefault(v(2767));var T=_interopRequireDefault(v(7805));var D=_interopRequireDefault(v(7066));var R=_interopRequireDefault(v(866));var A=_interopRequireWildcard(v(9668));var q=_interopRequireWildcard(v(6004));var F=_interopRequireWildcard(v(7105));var V=v(4371);var $,z;function _getRequireWildcardCache(l){if(typeof WeakMap!=="function")return null;var m=new WeakMap;var v=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?v:m})(l)}function _interopRequireWildcard(l,m){if(!m&&l&&l.__esModule){return l}if(l===null||typeof l!=="object"&&typeof l!=="function"){return{default:l}}var v=_getRequireWildcardCache(m);if(v&&v.has(l)){return v.get(l)}var y={};var w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l){if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var k=w?Object.getOwnPropertyDescriptor(l,_):null;if(k&&(k.get||k.set)){Object.defineProperty(y,_,k)}else{y[_]=l[_]}}}y["default"]=l;if(v){v.set(l,y)}return y}function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v0){var y=this.current.last;if(y){var w=this.convertWhitespaceNodesToSpace(v),_=w.space,k=w.rawSpace;if(k!==undefined){y.rawSpaceAfter+=k}y.spaces.after+=_}else{v.forEach((function(m){return l.newNode(m)}))}}return}var S=this.currToken;var C=undefined;if(m>this.position){C=this.parseWhitespaceEquivalentTokens(m)}var E;if(this.isNamedCombinator()){E=this.namedCombinator()}else if(this.currToken[A.FIELDS.TYPE]===q.combinator){E=new T["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[A.FIELDS.START_POS]});this.position++}else if(U[this.currToken[A.FIELDS.TYPE]]){}else if(!C){this.unexpected()}if(E){if(C){var O=this.convertWhitespaceNodesToSpace(C),P=O.space,L=O.rawSpace;E.spaces.before=P;E.rawSpaceBefore=L}}else{var D=this.convertWhitespaceNodesToSpace(C,true),R=D.space,F=D.rawSpace;if(!F){F=R}var V={};var $={spaces:{}};if(R.endsWith(" ")&&F.endsWith(" ")){V.before=R.slice(0,R.length-1);$.spaces.before=F.slice(0,F.length-1)}else if(R.startsWith(" ")&&F.startsWith(" ")){V.after=R.slice(1);$.spaces.after=F.slice(1)}else{$.value=F}E=new T["default"]({value:" ",source:getTokenSourceSpan(S,this.tokens[this.position-1]),sourceIndex:S[A.FIELDS.START_POS],spaces:V,raws:$})}if(this.currToken&&this.currToken[A.FIELDS.TYPE]===q.space){E.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(E)};l.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var l=new w["default"]({source:{start:tokenStart(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][A.FIELDS.START_POS]});this.current.parent.append(l);this.current=l;this.position++};l.comment=function comment(){var l=this.currToken;this.newNode(new k["default"]({value:this.content(),source:getTokenSource(l),sourceIndex:l[A.FIELDS.START_POS]}));this.position++};l.error=function error(l,m){throw this.root.error(l,m)};l.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[A.FIELDS.START_POS]})};l.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[A.FIELDS.START_POS])};l.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[A.FIELDS.START_POS])};l.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[A.FIELDS.START_POS])};l.unexpectedPipe=function unexpectedPipe(){return this.error("Unexpected '|'.",this.currToken[A.FIELDS.START_POS])};l.namespace=function namespace(){var l=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[A.FIELDS.TYPE]===q.word){this.position++;return this.word(l)}else if(this.nextToken[A.FIELDS.TYPE]===q.asterisk){this.position++;return this.universal(l)}this.unexpectedPipe()};l.nesting=function nesting(){if(this.nextToken){var l=this.content(this.nextToken);if(l==="|"){this.position++;return}}var m=this.currToken;this.newNode(new D["default"]({value:this.content(),source:getTokenSource(m),sourceIndex:m[A.FIELDS.START_POS]}));this.position++};l.parentheses=function parentheses(){var l=this.current.last;var m=1;this.position++;if(l&&l.type===F.PSEUDO){var v=new w["default"]({source:{start:tokenStart(this.tokens[this.position])},sourceIndex:this.tokens[this.position][A.FIELDS.START_POS]});var y=this.current;l.append(v);this.current=v;while(this.position1&&l.nextToken&&l.nextToken[A.FIELDS.TYPE]===q.openParenthesis){l.error("Misplaced parenthesis.",{index:l.nextToken[A.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[A.FIELDS.START_POS])}};l.space=function space(){var l=this.content();if(this.position===0||this.prevToken[A.FIELDS.TYPE]===q.comma||this.prevToken[A.FIELDS.TYPE]===q.openParenthesis||this.current.nodes.every((function(l){return l.type==="comment"}))){this.spaces=this.optionalSpace(l);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[A.FIELDS.TYPE]===q.comma||this.nextToken[A.FIELDS.TYPE]===q.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(l);this.position++}else{this.combinator()}};l.string=function string(){var l=this.currToken;this.newNode(new E["default"]({value:this.content(),source:getTokenSource(l),sourceIndex:l[A.FIELDS.START_POS]}));this.position++};l.universal=function universal(l){var m=this.nextToken;if(m&&this.content(m)==="|"){this.position++;return this.namespace()}var v=this.currToken;this.newNode(new L["default"]({value:this.content(),source:getTokenSource(v),sourceIndex:v[A.FIELDS.START_POS]}),l);this.position++};l.splitWord=function splitWord(l,m){var v=this;var y=this.nextToken;var w=this.content();while(y&&~[q.dollar,q.caret,q.equals,q.word].indexOf(y[A.FIELDS.TYPE])){this.position++;var k=this.content();w+=k;if(k.lastIndexOf("\\")===k.length-1){var E=this.nextToken;if(E&&E[A.FIELDS.TYPE]===q.space){w+=this.requiredSpace(this.content(E));this.position++}}y=this.nextToken}var O=indexesOf(w,".").filter((function(l){var m=w[l-1]==="\\";var v=/^\d+\.\d+%$/.test(w);return!m&&!v}));var P=indexesOf(w,"#").filter((function(l){return w[l-1]!=="\\"}));var L=indexesOf(w,"#{");if(L.length){P=P.filter((function(l){return!~L.indexOf(l)}))}var T=(0,R["default"])(uniqs([0].concat(O,P)));T.forEach((function(y,k){var E=T[k+1]||w.length;var L=w.slice(y,E);if(k===0&&m){return m.call(v,L,T.length)}var D;var R=v.currToken;var q=R[A.FIELDS.START_POS]+T[k];var F=getSource(R[1],R[2]+y,R[3],R[2]+(E-1));if(~O.indexOf(y)){var V={value:L.slice(1),source:F,sourceIndex:q};D=new _["default"](unescapeProp(V,"value"))}else if(~P.indexOf(y)){var $={value:L.slice(1),source:F,sourceIndex:q};D=new S["default"](unescapeProp($,"value"))}else{var z={value:L,source:F,sourceIndex:q};unescapeProp(z,"value");D=new C["default"](z)}v.newNode(D,l);l=null}));this.position++};l.word=function word(l){var m=this.nextToken;if(m&&this.content(m)==="|"){this.position++;return this.namespace()}return this.splitWord(l)};l.loop=function loop(){while(this.position{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(5838));function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}var w=function(){function Processor(l,m){this.func=l||function noop(){};this.funcRes=null;this.options=m}var l=Processor.prototype;l._shouldUpdateSelector=function _shouldUpdateSelector(l,m){if(m===void 0){m={}}var v=Object.assign({},this.options,m);if(v.updateSelector===false){return false}else{return typeof l!=="string"}};l._isLossy=function _isLossy(l){if(l===void 0){l={}}var m=Object.assign({},this.options,l);if(m.lossless===false){return true}else{return false}};l._root=function _root(l,m){if(m===void 0){m={}}var v=new y["default"](l,this._parseOptions(m));return v.root};l._parseOptions=function _parseOptions(l){return{lossy:this._isLossy(l)}};l._run=function _run(l,m){var v=this;if(m===void 0){m={}}return new Promise((function(y,w){try{var _=v._root(l,m);Promise.resolve(v.func(_)).then((function(y){var w=undefined;if(v._shouldUpdateSelector(l,m)){w=_.toString();l.selector=w}return{transform:y,root:_,string:w}})).then(y,w)}catch(l){w(l);return}}))};l._runSync=function _runSync(l,m){if(m===void 0){m={}}var v=this._root(l,m);var y=this.func(v);if(y&&typeof y.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var w=undefined;if(m.updateSelector&&typeof l!=="string"){w=v.toString();l.selector=w}return{transform:y,root:v,string:w}};l.ast=function ast(l,m){return this._run(l,m).then((function(l){return l.root}))};l.astSync=function astSync(l,m){return this._runSync(l,m).root};l.transform=function transform(l,m){return this._run(l,m).then((function(l){return l.transform}))};l.transformSync=function transformSync(l,m){return this._runSync(l,m).transform};l.process=function process(l,m){return this._run(l,m).then((function(l){return l.string||l.root.toString()}))};l.processSync=function processSync(l,m){var v=this._runSync(l,m);return v.string||v.root.toString()};return Processor}();m["default"]=w;l.exports=m.default},4910:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;m.unescapeValue=unescapeValue;var y=_interopRequireDefault(v(441));var w=_interopRequireDefault(v(7949));var _=_interopRequireDefault(v(2551));var k=v(7105);var S;function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v0&&!l.quoted&&v.before.length===0&&!(l.spaces.value&&l.spaces.value.after)){v.before=" "}return defaultAttrConcat(m,v)})))}m.push("]");m.push(this.rawSpaceAfter);return m.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var l=this.quoteMark;return l==="'"||l==='"'},set:function set(l){P()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(l){if(!this._constructed){this._quoteMark=l;return}if(this._quoteMark!==l){this._quoteMark=l;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(l){if(this._constructed){var m=unescapeValue(l),v=m.deprecatedUsage,y=m.unescaped,w=m.quoteMark;if(v){O()}if(y===this._value&&w===this._quoteMark){return}this._value=y;this._quoteMark=w;this._syncRawValue()}else{this._value=l}}},{key:"insensitive",get:function get(){return this._insensitive},set:function set(l){if(!l){this._insensitive=false;if(this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")){this.raws.insensitiveFlag=undefined}}this._insensitive=l}},{key:"attribute",get:function get(){return this._attribute},set:function set(l){this._handleEscapes("attribute",l);this._attribute=l}}]);return Attribute}(_["default"]);m["default"]=T;T.NO_QUOTE=null;T.SINGLE_QUOTE="'";T.DOUBLE_QUOTE='"';var D=(S={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},S[null]={isIdentifier:true},S);function defaultAttrConcat(l,m){return""+m.before+l+m.after}},7113:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(441));var w=v(4371);var _=_interopRequireDefault(v(4938));var k=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Combinator,l);function Combinator(m){var v;v=l.call(this,m)||this;v.type=w.COMBINATOR;return v}return Combinator}(y["default"]);m["default"]=_;l.exports=m.default},6723:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Comment,l);function Comment(m){var v;v=l.call(this,m)||this;v.type=w.COMMENT;return v}return Comment}(y["default"]);m["default"]=_;l.exports=m.default},9374:(l,m,v)=>{"use strict";m.__esModule=true;m.universal=m.tag=m.string=m.selector=m.root=m.pseudo=m.nesting=m.id=m.comment=m.combinator=m.className=m.attribute=void 0;var y=_interopRequireDefault(v(4910));var w=_interopRequireDefault(v(7113));var _=_interopRequireDefault(v(7805));var k=_interopRequireDefault(v(6723));var S=_interopRequireDefault(v(8362));var C=_interopRequireDefault(v(7066));var E=_interopRequireDefault(v(9573));var O=_interopRequireDefault(v(7774));var P=_interopRequireDefault(v(372));var L=_interopRequireDefault(v(4931));var T=_interopRequireDefault(v(4088));var D=_interopRequireDefault(v(2767));function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}var R=function attribute(l){return new y["default"](l)};m.attribute=R;var A=function className(l){return new w["default"](l)};m.className=A;var q=function combinator(l){return new _["default"](l)};m.combinator=q;var F=function comment(l){return new k["default"](l)};m.comment=F;var V=function id(l){return new S["default"](l)};m.id=V;var $=function nesting(l){return new C["default"](l)};m.nesting=$;var z=function pseudo(l){return new E["default"](l)};m.pseudo=z;var U=function root(l){return new O["default"](l)};m.root=U;var W=function selector(l){return new P["default"](l)};m.selector=W;var B=function string(l){return new L["default"](l)};m.string=B;var Q=function tag(l){return new T["default"](l)};m.tag=Q;var Y=function universal(l){return new D["default"](l)};m.universal=Y},304:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=_interopRequireWildcard(v(7105));function _getRequireWildcardCache(l){if(typeof WeakMap!=="function")return null;var m=new WeakMap;var v=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?v:m})(l)}function _interopRequireWildcard(l,m){if(!m&&l&&l.__esModule){return l}if(l===null||typeof l!=="object"&&typeof l!=="function"){return{default:l}}var v=_getRequireWildcardCache(m);if(v&&v.has(l)){return v.get(l)}var y={};var w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l){if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var k=w?Object.getOwnPropertyDescriptor(l,_):null;if(k&&(k.get||k.set)){Object.defineProperty(y,_,k)}else{y[_]=l[_]}}}y["default"]=l;if(v){v.set(l,y)}return y}function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _createForOfIteratorHelperLoose(l,m){var v=typeof Symbol!=="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(v)return(v=v.call(l)).next.bind(v);if(Array.isArray(l)||(v=_unsupportedIterableToArray(l))||m&&l&&typeof l.length==="number"){if(v)l=v;var y=0;return function(){if(y>=l.length)return{done:true};return{done:false,value:l[y++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(l,m){if(!l)return;if(typeof l==="string")return _arrayLikeToArray(l,m);var v=Object.prototype.toString.call(l).slice(8,-1);if(v==="Object"&&l.constructor)v=l.constructor.name;if(v==="Map"||v==="Set")return Array.from(l);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return _arrayLikeToArray(l,m)}function _arrayLikeToArray(l,m){if(m==null||m>l.length)m=l.length;for(var v=0,y=new Array(m);v=l){this.indexes[v]=m-1}}return this};m.removeAll=function removeAll(){for(var l=_createForOfIteratorHelperLoose(this.nodes),m;!(m=l()).done;){var v=m.value;v.parent=undefined}this.nodes=[];return this};m.empty=function empty(){return this.removeAll()};m.insertAfter=function insertAfter(l,m){m.parent=this;var v=this.index(l);this.nodes.splice(v+1,0,m);m.parent=this;var y;for(var w in this.indexes){y=this.indexes[w];if(v<=y){this.indexes[w]=y+1}}return this};m.insertBefore=function insertBefore(l,m){m.parent=this;var v=this.index(l);this.nodes.splice(v,0,m);m.parent=this;var y;for(var w in this.indexes){y=this.indexes[w];if(y<=v){this.indexes[w]=y+1}}return this};m._findChildAtPosition=function _findChildAtPosition(l,m){var v=undefined;this.each((function(y){if(y.atPosition){var w=y.atPosition(l,m);if(w){v=w;return false}}else if(y.isAtPosition(l,m)){v=y;return false}}));return v};m.atPosition=function atPosition(l,m){if(this.isAtPosition(l,m)){return this._findChildAtPosition(l,m)||this}else{return undefined}};m._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};m.each=function each(l){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var m=this.lastEach;this.indexes[m]=0;if(!this.length){return undefined}var v,y;while(this.indexes[m]{"use strict";m.__esModule=true;m.isComment=m.isCombinator=m.isClassName=m.isAttribute=void 0;m.isContainer=isContainer;m.isIdentifier=void 0;m.isNamespace=isNamespace;m.isNesting=void 0;m.isNode=isNode;m.isPseudo=void 0;m.isPseudoClass=isPseudoClass;m.isPseudoElement=isPseudoElement;m.isUniversal=m.isTag=m.isString=m.isSelector=m.isRoot=void 0;var y=v(7105);var w;var _=(w={},w[y.ATTRIBUTE]=true,w[y.CLASS]=true,w[y.COMBINATOR]=true,w[y.COMMENT]=true,w[y.ID]=true,w[y.NESTING]=true,w[y.PSEUDO]=true,w[y.ROOT]=true,w[y.SELECTOR]=true,w[y.STRING]=true,w[y.TAG]=true,w[y.UNIVERSAL]=true,w);function isNode(l){return typeof l==="object"&&_[l.type]}function isNodeType(l,m){return isNode(m)&&m.type===l}var k=isNodeType.bind(null,y.ATTRIBUTE);m.isAttribute=k;var S=isNodeType.bind(null,y.CLASS);m.isClassName=S;var C=isNodeType.bind(null,y.COMBINATOR);m.isCombinator=C;var E=isNodeType.bind(null,y.COMMENT);m.isComment=E;var O=isNodeType.bind(null,y.ID);m.isIdentifier=O;var P=isNodeType.bind(null,y.NESTING);m.isNesting=P;var L=isNodeType.bind(null,y.PSEUDO);m.isPseudo=L;var T=isNodeType.bind(null,y.ROOT);m.isRoot=T;var D=isNodeType.bind(null,y.SELECTOR);m.isSelector=D;var R=isNodeType.bind(null,y.STRING);m.isString=R;var A=isNodeType.bind(null,y.TAG);m.isTag=A;var q=isNodeType.bind(null,y.UNIVERSAL);m.isUniversal=q;function isPseudoElement(l){return L(l)&&l.value&&(l.value.startsWith("::")||l.value.toLowerCase()===":before"||l.value.toLowerCase()===":after"||l.value.toLowerCase()===":first-letter"||l.value.toLowerCase()===":first-line")}function isPseudoClass(l){return L(l)&&!isPseudoElement(l)}function isContainer(l){return!!(isNode(l)&&l.walk)}function isNamespace(l){return k(l)||A(l)}},8362:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(ID,l);function ID(m){var v;v=l.call(this,m)||this;v.type=w.ID;return v}var m=ID.prototype;m.valueToString=function valueToString(){return"#"+l.prototype.valueToString.call(this)};return ID}(y["default"]);m["default"]=_;l.exports=m.default},7759:(l,m,v)=>{"use strict";m.__esModule=true;var y=v(7105);Object.keys(y).forEach((function(l){if(l==="default"||l==="__esModule")return;if(l in m&&m[l]===y[l])return;m[l]=y[l]}));var w=v(9374);Object.keys(w).forEach((function(l){if(l==="default"||l==="__esModule")return;if(l in m&&m[l]===w[l])return;m[l]=w[l]}));var _=v(5943);Object.keys(_).forEach((function(l){if(l==="default"||l==="__esModule")return;if(l in m&&m[l]===_[l])return;m[l]=_[l]}))},2551:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(441));var w=v(4371);var _=_interopRequireDefault(v(4938));function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Nesting,l);function Nesting(m){var v;v=l.call(this,m)||this;v.type=w.NESTING;v.value="&";return v}return Nesting}(y["default"]);m["default"]=_;l.exports=m.default},4938:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=v(4371);function _defineProperties(l,m){for(var v=0;vl){return false}if(this.source.end.linem){return false}if(this.source.end.line===l&&this.source.end.column{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(304));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Pseudo,l);function Pseudo(m){var v;v=l.call(this,m)||this;v.type=w.PSEUDO;return v}var m=Pseudo.prototype;m.toString=function toString(){var l=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),l,this.rawSpaceAfter].join("")};return Pseudo}(y["default"]);m["default"]=_;l.exports=m.default},7774:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(304));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _defineProperties(l,m){for(var v=0;v{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(304));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Selector,l);function Selector(m){var v;v=l.call(this,m)||this;v.type=w.SELECTOR;return v}return Selector}(y["default"]);m["default"]=_;l.exports=m.default},4931:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(4938));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(String,l);function String(m){var v;v=l.call(this,m)||this;v.type=w.STRING;return v}return String}(y["default"]);m["default"]=_;l.exports=m.default},4088:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(2551));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Tag,l);function Tag(m){var v;v=l.call(this,m)||this;v.type=w.TAG;return v}return Tag}(y["default"]);m["default"]=_;l.exports=m.default},7105:(l,m)=>{"use strict";m.__esModule=true;m.UNIVERSAL=m.TAG=m.STRING=m.SELECTOR=m.ROOT=m.PSEUDO=m.NESTING=m.ID=m.COMMENT=m.COMBINATOR=m.CLASS=m.ATTRIBUTE=void 0;var v="tag";m.TAG=v;var y="string";m.STRING=y;var w="selector";m.SELECTOR=w;var _="root";m.ROOT=_;var k="pseudo";m.PSEUDO=k;var S="nesting";m.NESTING=S;var C="id";m.ID=C;var E="comment";m.COMMENT=E;var O="combinator";m.COMBINATOR=O;var P="class";m.CLASS=P;var L="attribute";m.ATTRIBUTE=L;var T="universal";m.UNIVERSAL=T},2767:(l,m,v)=>{"use strict";m.__esModule=true;m["default"]=void 0;var y=_interopRequireDefault(v(2551));var w=v(7105);function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}function _inheritsLoose(l,m){l.prototype=Object.create(m.prototype);l.prototype.constructor=l;_setPrototypeOf(l,m)}function _setPrototypeOf(l,m){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(l,m){l.__proto__=m;return l};return _setPrototypeOf(l,m)}var _=function(l){_inheritsLoose(Universal,l);function Universal(m){var v;v=l.call(this,m)||this;v.type=w.UNIVERSAL;v.value="*";return v}return Universal}(y["default"]);m["default"]=_;l.exports=m.default},866:(l,m)=>{"use strict";m.__esModule=true;m["default"]=sortAscending;function sortAscending(l){return l.sort((function(l,m){return l-m}))}l.exports=m.default},6004:(l,m)=>{"use strict";m.__esModule=true;m.word=m.tilde=m.tab=m.str=m.space=m.slash=m.singleQuote=m.semicolon=m.plus=m.pipe=m.openSquare=m.openParenthesis=m.newline=m.greaterThan=m.feed=m.equals=m.doubleQuote=m.dollar=m.cr=m.comment=m.comma=m.combinator=m.colon=m.closeSquare=m.closeParenthesis=m.caret=m.bang=m.backslash=m.at=m.asterisk=m.ampersand=void 0;var v=38;m.ampersand=v;var y=42;m.asterisk=y;var w=64;m.at=w;var _=44;m.comma=_;var k=58;m.colon=k;var S=59;m.semicolon=S;var C=40;m.openParenthesis=C;var E=41;m.closeParenthesis=E;var O=91;m.openSquare=O;var P=93;m.closeSquare=P;var L=36;m.dollar=L;var T=126;m.tilde=T;var D=94;m.caret=D;var R=43;m.plus=R;var A=61;m.equals=A;var q=124;m.pipe=q;var F=62;m.greaterThan=F;var V=32;m.space=V;var $=39;m.singleQuote=$;var z=34;m.doubleQuote=z;var U=47;m.slash=U;var W=33;m.bang=W;var B=92;m.backslash=B;var Q=13;m.cr=Q;var Y=12;m.feed=Y;var G=10;m.newline=G;var J=9;m.tab=J;var X=$;m.str=X;var Z=-1;m.comment=Z;var K=-2;m.word=K;var ee=-3;m.combinator=ee},9668:(l,m,v)=>{"use strict";m.__esModule=true;m.FIELDS=void 0;m["default"]=tokenize;var y=_interopRequireWildcard(v(6004));var w,_;function _getRequireWildcardCache(l){if(typeof WeakMap!=="function")return null;var m=new WeakMap;var v=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?v:m})(l)}function _interopRequireWildcard(l,m){if(!m&&l&&l.__esModule){return l}if(l===null||typeof l!=="object"&&typeof l!=="function"){return{default:l}}var v=_getRequireWildcardCache(m);if(v&&v.has(l)){return v.get(l)}var y={};var w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l){if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var k=w?Object.getOwnPropertyDescriptor(l,_):null;if(k&&(k.get||k.set)){Object.defineProperty(y,_,k)}else{y[_]=l[_]}}}y["default"]=l;if(v){v.set(l,y)}return y}var k=(w={},w[y.tab]=true,w[y.newline]=true,w[y.cr]=true,w[y.feed]=true,w);var S=(_={},_[y.space]=true,_[y.tab]=true,_[y.newline]=true,_[y.cr]=true,_[y.feed]=true,_[y.ampersand]=true,_[y.asterisk]=true,_[y.bang]=true,_[y.comma]=true,_[y.colon]=true,_[y.semicolon]=true,_[y.openParenthesis]=true,_[y.closeParenthesis]=true,_[y.openSquare]=true,_[y.closeSquare]=true,_[y.singleQuote]=true,_[y.doubleQuote]=true,_[y.plus]=true,_[y.pipe]=true,_[y.tilde]=true,_[y.greaterThan]=true,_[y.equals]=true,_[y.dollar]=true,_[y.caret]=true,_[y.slash]=true,_);var C={};var E="0123456789abcdefABCDEF";for(var O=0;O0){V=S+A;$=F-q[A].length}else{V=S;$=k}U=y.comment;S=V;T=V;L=F-$}else if(O===y.slash){F=C;U=O;T=S;L=C-k;E=F+1}else{F=consumeWord(v,C);U=y.word;T=S;L=F-k}E=F+1;break}m.push([U,S,C-k,T,L,C,E]);if($){k=$;$=null}C=E}return m}},3695:(l,m)=>{"use strict";m.__esModule=true;m["default"]=ensureObject;function ensureObject(l){for(var m=arguments.length,v=new Array(m>1?m-1:0),y=1;y0){var w=v.shift();if(!l[w]){l[w]={}}l=l[w]}}l.exports=m.default},5919:(l,m)=>{"use strict";m.__esModule=true;m["default"]=getProp;function getProp(l){for(var m=arguments.length,v=new Array(m>1?m-1:0),y=1;y0){var w=v.shift();if(!l[w]){return undefined}l=l[w]}return l}l.exports=m.default},4371:(l,m,v)=>{"use strict";m.__esModule=true;m.unesc=m.stripComments=m.getProp=m.ensureObject=void 0;var y=_interopRequireDefault(v(7949));m.unesc=y["default"];var w=_interopRequireDefault(v(5919));m.getProp=w["default"];var _=_interopRequireDefault(v(3695));m.ensureObject=_["default"];var k=_interopRequireDefault(v(7945));m.stripComments=k["default"];function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}},7945:(l,m)=>{"use strict";m.__esModule=true;m["default"]=stripComments;function stripComments(l){var m="";var v=l.indexOf("/*");var y=0;while(v>=0){m=m+l.slice(y,v);var w=l.indexOf("*/",v+2);if(w<0){return m}y=w+2;v=l.indexOf("/*",y)}m=m+l.slice(y);return m}l.exports=m.default},7949:(l,m)=>{"use strict";m.__esModule=true;m["default"]=unesc;function gobbleHex(l){var m=l.toLowerCase();var v="";var y=false;for(var w=0;w<6&&m[w]!==undefined;w++){var _=m.charCodeAt(w);var k=_>=97&&_<=102||_>=48&&_<=57;y=_===32;if(!k){break}v+=m[w]}if(v.length===0){return undefined}var S=parseInt(v,16);var C=S>=55296&&S<=57343;if(C||S===0||S>1114111){return["�",v.length+(y?1:0)]}return[String.fromCodePoint(S),v.length+(y?1:0)]}var v=/\\/;function unesc(l){var m=v.test(l);if(!m){return l}var y="";for(var w=0;w{"use strict";const y=v(6206);function generateUniqueSelector(l){const m=new Map;const collectUniqueSelectors=l=>{for(const v of l.nodes){const l=[];const y=v.clone();y.walk((m=>{if(m.type==="comment"){l.push(m.value);m.remove()}}));const w=y.toString().trim();const _=m.get(w);if(!_){m.set(w,v.toString())}else if(l.length){m.set(w,`${_}${l.join("")}`)}}};y(collectUniqueSelectors).processSync(l);return[...m.entries()].sort((([l],[m])=>l>m?1:ll)).join()}function pluginCreator(){return{postcssPlugin:"postcss-unique-selectors",OnceExit(l){l.walkRules((l=>{if(l.raws.selector&&l.raws.selector.raw){l.raws.selector.raw=generateUniqueSelector(l.raws.selector.raw)}else{l.selector=generateUniqueSelector(l.selector)}}))}}}pluginCreator.postcss=true;l.exports=pluginCreator},3337:l=>{"use strict";const m="firefox 2";const v="ie 5.5";const y="ie 6";const w="ie 7";const _="ie 8";const k="opera 9";l.exports={FF_2:m,IE_5_5:v,IE_6:y,IE_7:w,IE_8:_,OP_9:k}},4380:l=>{"use strict";const m="media query";const v="property";const y="selector";const w="value";l.exports={MEDIA_QUERY:m,PROPERTY:v,SELECTOR:y,VALUE:w}},8873:l=>{"use strict";const m="atrule";const v="decl";const y="rule";l.exports={ATRULE:m,DECL:v,RULE:y}},414:l=>{"use strict";const m="body";const v="html";l.exports={BODY:m,HTML:v}},4115:l=>{"use strict";l.exports=function exists(l,m,v){const y=l.at(m);return y&&y.value&&y.value.toLowerCase()===v}},1417:(l,m,v)=>{"use strict";const{dirname:y}=v(1017);const w=v(4907);const _=v(6766);function pluginCreator(l={}){return{postcssPlugin:"stylehacks",prepare(m){const{stats:v,env:k,from:S,file:C}=m.opts||{};const E=w(l.overrideBrowserslist,{stats:l.stats||v,path:l.path||y(S||C||__filename),env:l.env||k});return{OnceExit(v){const y=[];for(const l of _){const v=new l(m);if(!E.some((l=>v.targets.has(l)))){y.push(v)}}v.walk((m=>{y.forEach((v=>{if(!v.nodeTypes.has(m.type)){return}if(l.lint){return v.detectAndWarn(m)}return v.detectAndResolve(m)}))}))}}}}}pluginCreator.detect=l=>_.some((m=>{const v=new m;return v.any(l)}));pluginCreator.postcss=true;l.exports=pluginCreator},6531:l=>{"use strict";l.exports=function isMixin(l){const{selector:m}=l;if(!m||m[m.length-1]===":"){return true}return false}},6905:l=>{"use strict";l.exports=class BasePlugin{constructor(l,m,v){this.nodes=[];this.targets=new Set(l);this.nodeTypes=new Set(m);this.result=v}push(l,m){l._stylehacks=Object.assign({},m,{message:`Bad ${m.identifier}: ${m.hack}`,browsers:this.targets});this.nodes.push(l)}any(l){if(this.nodeTypes.has(l.type)){this.detect(l);return l._stylehacks!==undefined}return false}detectAndResolve(l){this.nodes=[];this.detect(l);return this.resolve()}detectAndWarn(l){this.nodes=[];this.detect(l);return this.warn()}detect(l){throw new Error("You need to implement this method in a subclass.")}resolve(){return this.nodes.forEach((l=>l.remove()))}warn(){return this.nodes.forEach((l=>{const{message:m,browsers:v,identifier:y,hack:w}=l._stylehacks;return l.warn(this.result,m+JSON.stringify({browsers:v,identifier:y,hack:w}))}))}}},2479:(l,m,v)=>{"use strict";const y=v(6206);const w=v(4115);const _=v(6531);const k=v(6905);const{FF_2:S}=v(3337);const{SELECTOR:C}=v(4380);const{RULE:E}=v(8873);const{BODY:O}=v(414);l.exports=class BodyEmpty extends k{constructor(l){super([S],[E],l)}detect(l){if(_(l)){return}y(this.analyse(l)).processSync(l.selector)}analyse(l){return m=>{m.each((m=>{if(w(m,0,O)&&w(m,1,":empty")&&w(m,2," ")&&m.at(3)){this.push(l,{identifier:C,hack:m.toString()})}}))}}}},1195:(l,m,v)=>{"use strict";const y=v(6206);const w=v(4115);const _=v(6531);const k=v(6905);const{IE_5_5:S,IE_6:C,IE_7:E}=v(3337);const{SELECTOR:O}=v(4380);const{RULE:P}=v(8873);const{BODY:L,HTML:T}=v(414);l.exports=class HtmlCombinatorCommentBody extends k{constructor(l){super([S,C,E],[P],l)}detect(l){if(_(l)){return}if(l.raws.selector&&l.raws.selector.raw){y(this.analyse(l)).processSync(l.raws.selector.raw)}}analyse(l){return m=>{m.each((m=>{if(w(m,0,T)&&(w(m,1,">")||w(m,1,"~"))&&m.at(2)&&m.at(2).type==="comment"&&w(m,3," ")&&w(m,4,L)&&w(m,5," ")&&m.at(6)){this.push(l,{identifier:O,hack:m.toString()})}}))}}}},629:(l,m,v)=>{"use strict";const y=v(6206);const w=v(4115);const _=v(6531);const k=v(6905);const{OP_9:S}=v(3337);const{SELECTOR:C}=v(4380);const{RULE:E}=v(8873);const{HTML:O}=v(414);l.exports=class HtmlFirstChild extends k{constructor(l){super([S],[E],l)}detect(l){if(_(l)){return}y(this.analyse(l)).processSync(l.selector)}analyse(l){return m=>{m.each((m=>{if(w(m,0,O)&&w(m,1,":first-child")&&w(m,2," ")&&m.at(3)){this.push(l,{identifier:C,hack:m.toString()})}}))}}}},5632:(l,m,v)=>{"use strict";const y=v(6905);const{IE_5_5:w,IE_6:_,IE_7:k}=v(3337);const{DECL:S}=v(8873);l.exports=class Important extends y{constructor(l){super([w,_,k],[S],l)}detect(l){const m=l.value.match(/!\w/);if(m&&m.index){const v=l.value.substr(m.index,l.value.length-1);this.push(l,{identifier:"!important",hack:v})}}}},6766:(l,m,v)=>{"use strict";const y=v(2479);const w=v(1195);const _=v(629);const k=v(5632);const S=v(3276);const C=v(2672);const E=v(6257);const O=v(5812);const P=v(1404);const L=v(12);const T=v(2653);const D=v(3594);l.exports=[y,w,_,k,S,C,E,O,P,L,T,D]},3276:(l,m,v)=>{"use strict";const y=v(6905);const{IE_5_5:w,IE_6:_,IE_7:k}=v(3337);const{PROPERTY:S}=v(4380);const{ATRULE:C,DECL:E}=v(8873);const O="!_$_&_*_)_=_%_+_,_._/_`_]_#_~_?_:_|".split("_");l.exports=class LeadingStar extends y{constructor(l){super([w,_,k],[C,E],l)}detect(l){if(l.type===E){O.forEach((m=>{if(!l.prop.indexOf(m)){this.push(l,{identifier:S,hack:l.prop})}}));const{before:m}=l.raws;if(!m){return}O.forEach((v=>{if(m.includes(v)){this.push(l,{identifier:S,hack:`${m.trim()}${l.prop}`})}}))}else{const{name:m}=l;const v=m.length-1;if(m.lastIndexOf(":")===v){this.push(l,{identifier:S,hack:`@${m.substr(0,v)}`})}}}}},2672:(l,m,v)=>{"use strict";const y=v(6905);const{IE_6:w}=v(3337);const{PROPERTY:_}=v(4380);const{DECL:k}=v(8873);function vendorPrefix(l){let m=l.match(/^(-\w+-)/);if(m){return m[0]}return""}l.exports=class LeadingUnderscore extends y{constructor(l){super([w],[k],l)}detect(l){const{before:m}=l.raws;if(m&&m.includes("_")){this.push(l,{identifier:_,hack:`${m.trim()}${l.prop}`})}if(l.prop[0]==="-"&&l.prop[1]!=="-"&&vendorPrefix(l.prop)===""){this.push(l,{identifier:_,hack:l.prop})}}}},6257:(l,m,v)=>{"use strict";const y=v(6905);const{IE_8:w}=v(3337);const{MEDIA_QUERY:_}=v(4380);const{ATRULE:k}=v(8873);l.exports=class MediaSlash0 extends y{constructor(l){super([w],[k],l)}detect(l){const m=l.params.trim();if(m.toLowerCase()==="\\0screen"){this.push(l,{identifier:_,hack:m})}}}},5812:(l,m,v)=>{"use strict";const y=v(6905);const{IE_5_5:w,IE_6:_,IE_7:k,IE_8:S}=v(3337);const{MEDIA_QUERY:C}=v(4380);const{ATRULE:E}=v(8873);l.exports=class MediaSlash0Slash9 extends y{constructor(l){super([w,_,k,S],[E],l)}detect(l){const m=l.params.trim();if(m.toLowerCase()==="\\0screen\\,screen\\9"){this.push(l,{identifier:C,hack:m})}}}},1404:(l,m,v)=>{"use strict";const y=v(6905);const{IE_5_5:w,IE_6:_,IE_7:k}=v(3337);const{MEDIA_QUERY:S}=v(4380);const{ATRULE:C}=v(8873);l.exports=class MediaSlash9 extends y{constructor(l){super([w,_,k],[C],l)}detect(l){const m=l.params.trim();if(m.toLowerCase()==="screen\\9"){this.push(l,{identifier:S,hack:m})}}}},12:(l,m,v)=>{"use strict";const y=v(6905);const{IE_6:w,IE_7:_,IE_8:k}=v(3337);const{VALUE:S}=v(4380);const{DECL:C}=v(8873);l.exports=class Slash9 extends y{constructor(l){super([w,_,k],[C],l)}detect(l){let m=l.value;if(m&&m.length>2&&m.indexOf("\\9")===m.length-2){this.push(l,{identifier:S,hack:m})}}}},2653:(l,m,v)=>{"use strict";const y=v(6206);const w=v(4115);const _=v(6531);const k=v(6905);const{IE_5_5:S,IE_6:C}=v(3337);const{SELECTOR:E}=v(4380);const{RULE:O}=v(8873);const{HTML:P}=v(414);l.exports=class StarHtml extends k{constructor(l){super([S,C],[O],l)}detect(l){if(_(l)){return}y(this.analyse(l)).processSync(l.selector)}analyse(l){return m=>{m.each((m=>{if(w(m,0,"*")&&w(m,1," ")&&w(m,2,P)&&w(m,3," ")&&m.at(4)){this.push(l,{identifier:E,hack:m.toString()})}}))}}}},3594:(l,m,v)=>{"use strict";const y=v(6905);const w=v(6531);const{IE_5_5:_,IE_6:k,IE_7:S}=v(3337);const{SELECTOR:C}=v(4380);const{RULE:E}=v(8873);l.exports=class TrailingSlashComma extends y{constructor(l){super([_,k,S],[E],l)}detect(l){if(w(l)){return}const{selector:m}=l;const v=m.trim();if(v.lastIndexOf(",")===m.length-1||v.lastIndexOf("\\")===m.length-1){this.push(l,{identifier:C,hack:m})}}}},6124:(l,m,v)=>{l.exports=v(3837).deprecate},740:(l,m,v)=>{l.exports=function(l={}){const m=Object.assign({},{cssDeclarationSorter:{exclude:true},calc:{exclude:true}},l);return v(6604)(m)}},9536:(l,m,v)=>{const y=v(740);l.exports=(l={},m=v(977))=>{const w=Boolean(l&&l.excludeAll);const _=Object.assign({},l);if(w){for(const l in _){if(!_.hasOwnProperty(l))continue;const m=_[l];if(!Boolean(m)){continue}if(Object.prototype.toString.call(m)==="[object Object]"){_[l]=Object.assign({},{exclude:false},m)}}}const k=Object.assign({},w?{rawCache:true}:undefined,_);const S=[];y(k).plugins.forEach((l=>{if(Array.isArray(l)){let[m,v]=l;m=m.default||m;const y=!w&&typeof v==="undefined"||typeof v==="boolean"&&v||!w&&v&&typeof v==="object"&&!v.exclude||w&&v&&typeof v==="object"&&v.exclude===false;if(y){S.push(m(v))}}else{S.push(l)}}));return m(S)};l.exports.postcss=true},9613:l=>{"use strict";l.exports=require("caniuse-lite")},4907:l=>{"use strict";l.exports=require("next/dist/compiled/browserslist")},8248:l=>{"use strict";l.exports=require("next/dist/compiled/postcss-plugin-stub-for-cssnano-simple")},2045:l=>{"use strict";l.exports=require("next/dist/compiled/postcss-value-parser")},1017:l=>{"use strict";l.exports=require("path")},977:l=>{"use strict";l.exports=require("postcss")},3837:l=>{"use strict";l.exports=require("util")},4518:(l,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:true});const v={animation:["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"],background:["background-image","background-size","background-position","background-repeat","background-origin","background-clip","background-attachment","background-color"],columns:["column-width","column-count"],"column-rule":["column-rule-width","column-rule-style","column-rule-color"],flex:["flex-grow","flex-shrink","flex-basis"],"flex-flow":["flex-direction","flex-wrap"],font:["font-style","font-variant","font-weight","font-stretch","font-size","font-family","line-height"],gap:["column-gap","row-gap"],grid:["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","column-gap","row-gap"],"grid-area":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"grid-column":["grid-column-start","grid-column-end"],"grid-row":["grid-row-start","grid-row-end"],"grid-template":["grid-template-columns","grid-template-rows","grid-template-areas"],"list-style":["list-style-type","list-style-position","list-style-image"],offset:["offset-anchor","offset-distance","offset-path","offset-position","offset-rotate"],padding:["padding-block","padding-block-start","padding-block-end","padding-inline","padding-inline-start","padding-inline-end","padding-top","padding-right","padding-bottom","padding-left"],"padding-block":["padding-block-start","padding-block-end","padding-top","padding-right","padding-bottom","padding-left"],"padding-block-start":["padding-top","padding-right","padding-left"],"padding-block-end":["padding-right","padding-bottom","padding-left"],"padding-inline":["padding-inline-start","padding-inline-end","padding-top","padding-right","padding-bottom","padding-left"],"padding-inline-start":["padding-top","padding-right","padding-left"],"padding-inline-end":["padding-right","padding-bottom","padding-left"],margin:["margin-block","margin-block-start","margin-block-end","margin-inline","margin-inline-start","margin-inline-end","margin-top","margin-right","margin-bottom","margin-left"],"margin-block":["margin-block-start","margin-block-end","margin-top","margin-right","margin-bottom","margin-left"],"margin-inline":["margin-inline-start","margin-inline-end","margin-top","margin-right","margin-bottom","margin-left"],"margin-inline-start":["margin-top","margin-right","margin-bottom","margin-left"],"margin-inline-end":["margin-top","margin-right","margin-bottom","margin-left"],border:["border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-top-width","border-right-width","border-bottom-width","border-left-width","border-inline-start-width","border-inline-end-width","border-block-start-width","border-block-end-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-inline-start-style","border-inline-end-style","border-block-start-style","border-block-end-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-inline-start-color","border-inline-end-color","border-block-start-color","border-block-end-color","border-block","border-block-start","border-block-end","border-block-width","border-block-style","border-block-color","border-inline","border-inline-start","border-inline-end","border-inline-width","border-inline-style","border-inline-color"],"border-top":["border-width","border-style","border-color","border-top-width","border-top-style","border-top-color"],"border-right":["border-width","border-style","border-color","border-right-width","border-right-style","border-right-color"],"border-bottom":["border-width","border-style","border-color","border-bottom-width","border-bottom-style","border-bottom-color"],"border-left":["border-width","border-style","border-color","border-left-width","border-left-style","border-left-color"],"border-color":["border-top-color","border-bottom-color","border-left-color","border-right-color","border-inline-start-color","border-inline-end-color","border-block-start-color","border-block-end-color"],"border-width":["border-top-width","border-bottom-width","border-left-width","border-right-width","border-inline-start-width","border-inline-end-width","border-block-start-width","border-block-end-width"],"border-style":["border-top-style","border-bottom-style","border-left-style","border-right-style","border-inline-start-style","border-inline-end-style","border-block-start-style","border-block-end-style"],"border-radius":["border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius","border-end-end-radius","border-end-start-radius","border-start-end-radius","border-start-start-radius"],"border-block":["border-block-start","border-block-end","border-block-width","border-width","border-block-style","border-style","border-block-color","border-color"],"border-block-start":["border-block-start-width","border-width","border-block-start-style","border-style","border-block-start-color","border-color"],"border-block-end":["border-block-end-width","border-width","border-block-end-style","border-style","border-block-end-color","border-color"],"border-inline":["border-inline-start","border-inline-end","border-inline-width","border-width","border-inline-style","border-style","border-inline-color","border-color"],"border-inline-start":["border-inline-start-width","border-width","border-inline-start-style","border-style","border-inline-start-color","border-color"],"border-inline-end":["border-inline-end-width","border-width","border-inline-end-style","border-style","border-inline-end-color","border-color"],"border-image":["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"],mask:["mask-image","mask-mode","mask-position","mask-size","mask-repeat","mask-origin","mask-clip","mask-composite"],"inline-size":["width","height"],"block-size":["width","height"],"max-inline-size":["max-width","max-height"],"max-block-size":["max-width","max-height"],inset:["inset-block","inset-block-start","inset-block-end","inset-inline","inset-inline-start","inset-inline-end","top","right","bottom","left"],"inset-block":["inset-block-start","inset-block-end","top","right","bottom","left"],"inset-inline":["inset-inline-start","inset-inline-end","top","right","bottom","left"],outline:["outline-color","outline-style","outline-width"],overflow:["overflow-x","overflow-y"],"place-content":["align-content","justify-content"],"place-items":["align-items","justify-items"],"place-self":["align-self","justify-self"],"text-decoration":["text-decoration-color","text-decoration-style","text-decoration-line"],transition:["transition-delay","transition-duration","transition-property","transition-timing-function"],"text-emphasis":["text-emphasis-style","text-emphasis-color"],"font-synthesis":["font-synthesis-weight","font-synthesis-style","font-synthesis-small-caps","font-synthesis-position"]};function bubbleSort(l,m){let v=l.length-1;while(v>0){let y=0;for(let w=0;w0){const m=l[w+1];l[w+1]=l[w];l[w]=m;y=w}}v=y}return l}function __variableDynamicImportRuntime0__(l){switch(l){case"../orders/alphabetical.mjs":return Promise.resolve().then((function(){return _}));case"../orders/concentric-css.mjs":return Promise.resolve().then((function(){return S}));case"../orders/smacss.mjs":return Promise.resolve().then((function(){return E}));default:return new Promise((function(m,v){(typeof queueMicrotask==="function"?queueMicrotask:setTimeout)(v.bind(null,new Error("Unknown variable dynamic import: "+l)))}))}}const y=["alphabetical","concentric-css","smacss"];const cssDeclarationSorter=({order:l="alphabetical",keepOverrides:m=false}={})=>({postcssPlugin:"css-declaration-sorter",OnceExit(w){let withKeepOverrides=l=>l;if(m){withKeepOverrides=withOverridesComparator(v)}if(typeof l==="function"){return processCss({css:w,comparator:withKeepOverrides(l)})}if(!y.includes(l))return Promise.reject(Error([`Invalid built-in order '${l}' provided.`,`Available built-in orders are: ${y}`].join("\n")));return __variableDynamicImportRuntime0__(`../orders/${l}.mjs`).then((({properties:l})=>processCss({css:w,comparator:withKeepOverrides(orderComparator(l))})))}});cssDeclarationSorter.postcss=true;function processCss({css:l,comparator:m}){const v=[];const y=[];l.walk((l=>{const m=l.nodes;const w=l.type;if(w==="comment"){const m=l.raws.before&&l.raws.before.includes("\n");const y=m&&!l.next();const w=!l.prev()&&!l.next()||!l.parent;if(y||w||l.parent.type==="root"){return}if(m){const m=l.next()||l.prev();if(m){v.unshift({comment:l,pairedNode:m,insertPosition:l.next()?"Before":"After"});l.remove()}}else{const m=l.prev()||l.next();if(m){v.push({comment:l,pairedNode:m,insertPosition:"After"});l.remove()}}return}const _=w==="rule"||w==="atrule";if(_&&m&&m.length>1){y.push(m)}}));y.forEach((l=>{sortCssDeclarations({nodes:l,comparator:m})}));v.forEach((l=>{const m=l.pairedNode;l.comment.remove();m.parent&&m.parent["insert"+l.insertPosition](m,l.comment)}))}function sortCssDeclarations({nodes:l,comparator:m}){bubbleSort(l,((l,v)=>{if(l.type==="decl"&&v.type==="decl"){return m(l.prop,v.prop)}else{return compareDifferentType(l,v)}}))}function withOverridesComparator(l){return function(m){return function(v,y){v=removeVendorPrefix(v);y=removeVendorPrefix(y);if(l[v]&&l[v].includes(y))return 0;if(l[y]&&l[y].includes(v))return 0;return m(v,y)}}}function orderComparator(l){return function(m,v){const y=l.indexOf(v);if(y===-1){return 0}return l.indexOf(m)-y}}function compareDifferentType(l,m){if(m.type==="atrule"||l.type==="atrule"){return 0}return l.type==="decl"?-1:m.type==="decl"?1:0}function removeVendorPrefix(l){return l.replace(/^-\w+-/,"")}const w=["all","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","accent-color","align-content","align-items","align-self","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","ascent-override","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-source","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip-path","color","color-interpolation","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-height","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cursor","descent-override","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphens","image-orientation","image-rendering","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-gap-override","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","math-depth","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","print-color-adjust","quotes","resize","right","rotate","row-gap","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","size-adjust","src","tab-size","table-layout","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","text-wrap","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-select","vertical-align","visibility","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","writing-mode","z-index"];var _=Object.freeze({__proto__:null,properties:w});const k=["all","display","position","top","right","bottom","left","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","grid","grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","column-gap","row-gap","grid-area","grid-row","grid-row-start","grid-row-end","grid-column","grid-column-start","grid-column-end","grid-template","flex","flex-grow","flex-shrink","flex-basis","flex-direction","flex-flow","flex-wrap","box-decoration-break","place-content","align-content","justify-content","place-items","align-items","justify-items","place-self","align-self","justify-self","vertical-align","baseline-source","order","float","clear","shape-margin","shape-outside","shape-image-threshold","orphans","gap","columns","column-fill","column-rule","column-rule-width","column-rule-style","column-rule-color","column-width","column-span","column-count","break-before","break-after","break-inside","page","page-break-before","page-break-after","page-break-inside","transform","transform-box","transform-origin","transform-style","translate","rotate","scale","perspective","perspective-origin","appearance","visibility","content-visibility","opacity","z-index","paint-order","mix-blend-mode","backface-visibility","backdrop-filter","clip-path","mask","mask-border","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-image","mask-mode","mask-position","mask-size","mask-repeat","mask-origin","mask-clip","mask-composite","mask-type","filter","animation","animation-composition","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","will-change","counter-increment","counter-reset","counter-set","cursor","box-sizing","contain","contain-intrinsic-height","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","outline","outline-color","outline-style","outline-width","outline-offset","box-shadow","border","border-top","border-right","border-bottom","border-left","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-style","border-top-style","border-right-style","border-bottom-style","border-left-style","border-color","border-top-color","border-right-color","border-bottom-color","border-left-color","border-radius","border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius","border-inline","border-inline-width","border-inline-style","border-inline-color","border-inline-start","border-inline-start-width","border-inline-start-style","border-inline-start-color","border-inline-end","border-inline-end-width","border-inline-end-style","border-inline-end-color","border-block","border-block-width","border-block-style","border-block-color","border-block-start","border-block-start-width","border-block-start-style","border-block-start-color","border-block-end","border-block-end-width","border-block-end-style","border-block-end-color","border-image","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat","border-collapse","border-spacing","border-start-start-radius","border-start-end-radius","border-end-start-radius","border-end-end-radius","background","background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color","background-blend-mode","background-position-x","background-position-y","isolation","padding","padding-top","padding-right","padding-bottom","padding-left","padding-inline","padding-inline-start","padding-inline-end","padding-block","padding-block-start","padding-block-end","image-orientation","image-rendering","aspect-ratio","width","min-width","max-width","height","min-height","max-height","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","inline-size","min-inline-size","max-inline-size","block-size","min-block-size","max-block-size","table-layout","caption-side","empty-cells","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","resize","object-fit","object-position","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","touch-action","pointer-events","content","quotes","hanging-punctuation","color","color-interpolation","accent-color","print-color-adjust","forced-color-adjust","color-scheme","caret-color","font","font-style","font-variant","font-weight","font-stretch","font-size","size-adjust","line-height","src","font-family","font-display","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size-adjust","font-synthesis","font-synthesis-weight","font-synthesis-style","font-synthesis-small-caps","font-synthesis-position","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-feature-settings","ascent-override","descent-override","line-gap-override","hyphens","hyphenate-character","letter-spacing","line-break","list-style","list-style-type","list-style-image","list-style-position","writing-mode","direction","unicode-bidi","unicode-range","user-select","ruby-position","math-depth","math-style","text-combine-upright","text-align","text-align-last","text-decoration","text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness","text-decoration-skip-ink","text-emphasis","text-emphasis-style","text-emphasis-color","text-emphasis-position","text-indent","text-justify","text-underline-position","text-underline-offset","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-wrap","white-space","white-space-collapse","word-break","word-spacing","overflow-wrap","tab-size","widows"];var S=Object.freeze({__proto__:null,properties:k});const C=["all","box-sizing","contain","contain-intrinsic-height","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","display","appearance","visibility","content-visibility","z-index","paint-order","position","top","right","bottom","left","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","grid","grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","column-gap","row-gap","grid-area","grid-row","grid-row-start","grid-row-end","grid-column","grid-column-start","grid-column-end","grid-template","flex","flex-grow","flex-shrink","flex-basis","flex-direction","flex-flow","flex-wrap","box-decoration-break","place-content","place-items","place-self","align-content","align-items","align-self","justify-content","justify-items","justify-self","order","aspect-ratio","width","min-width","max-width","height","min-height","max-height","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","inline-size","min-inline-size","max-inline-size","block-size","min-block-size","max-block-size","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","padding","padding-top","padding-right","padding-bottom","padding-left","padding-inline","padding-inline-start","padding-inline-end","padding-block","padding-block-start","padding-block-end","float","clear","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","orphans","gap","columns","column-fill","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-count","column-width","object-fit","object-position","transform","transform-box","transform-origin","transform-style","translate","rotate","scale","border","border-top","border-right","border-bottom","border-left","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-style","border-top-style","border-right-style","border-bottom-style","border-left-style","border-radius","border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius","border-inline","border-inline-color","border-inline-style","border-inline-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-block","border-block-color","border-block-style","border-block-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-top-color","border-right-color","border-bottom-color","border-left-color","border-collapse","border-spacing","border-start-start-radius","border-start-end-radius","border-end-start-radius","border-end-end-radius","outline","outline-color","outline-style","outline-width","outline-offset","backdrop-filter","backface-visibility","background","background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color","background-blend-mode","background-position-x","background-position-y","box-shadow","isolation","content","quotes","hanging-punctuation","color","color-interpolation","accent-color","print-color-adjust","forced-color-adjust","color-scheme","caret-color","font","font-style","font-variant","font-weight","src","font-stretch","font-size","size-adjust","line-height","font-family","font-display","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size-adjust","font-synthesis","font-synthesis-weight","font-synthesis-style","font-synthesis-small-caps","font-synthesis-position","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-feature-settings","ascent-override","descent-override","line-gap-override","hyphens","hyphenate-character","letter-spacing","line-break","list-style","list-style-image","list-style-position","list-style-type","direction","text-align","text-align-last","text-decoration","text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness","text-decoration-skip-ink","text-emphasis","text-emphasis-style","text-emphasis-color","text-emphasis-position","text-indent","text-justify","text-underline-position","text-underline-offset","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-wrap","vertical-align","baseline-source","white-space","white-space-collapse","word-break","word-spacing","overflow-wrap","animation","animation-composition","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name","mix-blend-mode","break-before","break-after","break-inside","page","page-break-before","page-break-after","page-break-inside","caption-side","clip-path","counter-increment","counter-reset","counter-set","cursor","empty-cells","filter","image-orientation","image-rendering","mask","mask-border","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","opacity","perspective","perspective-origin","pointer-events","resize","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","tab-size","table-layout","ruby-position","math-depth","math-style","text-combine-upright","touch-action","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","will-change","unicode-bidi","unicode-range","user-select","widows","writing-mode"];var E=Object.freeze({__proto__:null,properties:C});m.cssDeclarationSorter=cssDeclarationSorter;m["default"]=cssDeclarationSorter;l.exports=cssDeclarationSorter},1722:l=>{"use strict";l.exports=JSON.parse('{"list-style-type":["afar","amharic","amharic-abegede","arabic-indic","armenian","asterisks","bengali","binary","cambodian","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","decimal","decimal-leading-zero","devanagari","disc","disclosure-closed","disclosure-open","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","footnotes","georgian","gujarati","gurmukhi","hangul","hangul-consonant","hebrew","hiragana","hiragana-iroha","japanese-formal","japanese-informal","kannada","katakana","katakana-iroha","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","lao","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","malayalam","mongolian","myanmar","octal","oriya","oromo","persian","sidama","simp-chinese-formal","simp-chinese-informal","somali","square","string","symbols","tamil","telugu","thai","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","trad-chinese-formal","trad-chinese-informal","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","urdu"]}')},3800:l=>{"use strict";l.exports=JSON.parse('{"accent-color":"auto","align-content":"normal","align-items":"normal","align-self":"auto","align-tracks":"normal","animation-delay":"0s","animation-direction":"normal","animation-duration":"0s","animation-fill-mode":"none","animation-iteration-count":"1","animation-name":"none","animation-range-end":"normal","animation-range-start":"normal","animation-timing-function":"ease","animation-timeline":"auto","appearance":"none","aspect-ratio":"auto","azimuth":"center","backdrop-filter":"none","background-attachment":"scroll","background-blend-mode":"normal","background-image":"none","background-position":"0% 0%","background-position-x":"0%","background-position-y":"0%","background-repeat":"repeat","block-size":"auto","border-block-style":"none","border-block-width":"medium","border-block-end-style":"none","border-block-end-width":"medium","border-block-start-style":"none","border-block-start-width":"medium","border-bottom-left-radius":"0","border-bottom-right-radius":"0","border-bottom-style":"none","border-bottom-width":"medium","border-end-end-radius":"0","border-end-start-radius":"0","border-image-outset":"0","border-image-slice":"100%","border-image-source":"none","border-image-width":"1","border-inline-style":"none","border-inline-width":"medium","border-inline-end-style":"none","border-inline-end-width":"medium","border-inline-start-style":"none","border-inline-start-width":"medium","border-left-style":"none","border-left-width":"medium","border-right-style":"none","border-right-width":"medium","border-spacing":"0","border-start-end-radius":"0","border-start-start-radius":"0","border-top-left-radius":"0","border-top-right-radius":"0","border-top-style":"none","border-top-width":"medium","bottom":"auto","box-decoration-break":"slice","box-shadow":"none","break-after":"auto","break-before":"auto","break-inside":"auto","caption-side":"top","caret-color":"auto","caret-shape":"auto","clear":"none","clip":"auto","clip-path":"none","color-scheme":"normal","column-count":"auto","column-gap":"normal","column-rule-style":"none","column-rule-width":"medium","column-span":"none","column-width":"auto","contain":"none","contain-intrinsic-block-size":"none","contain-intrinsic-height":"none","contain-intrinsic-inline-size":"none","contain-intrinsic-width":"none","container-name":"none","container-type":"normal","content":"normal","counter-increment":"none","counter-reset":"none","counter-set":"none","cursor":"auto","direction":"ltr","empty-cells":"show","filter":"none","flex-basis":"auto","flex-direction":"row","flex-grow":"0","flex-shrink":"1","flex-wrap":"nowrap","float":"none","font-feature-settings":"normal","font-kerning":"auto","font-language-override":"normal","font-optical-sizing":"auto","font-palette":"normal","font-variation-settings":"normal","font-size":"medium","font-size-adjust":"none","font-stretch":"normal","font-style":"normal","font-synthesis-position":"none","font-synthesis-small-caps":"auto","font-synthesis-style":"auto","font-synthesis-weight":"auto","font-variant":"normal","font-variant-alternates":"normal","font-variant-caps":"normal","font-variant-east-asian":"normal","font-variant-emoji":"normal","font-variant-ligatures":"normal","font-variant-numeric":"normal","font-variant-position":"normal","font-weight":"normal","forced-color-adjust":"auto","grid-auto-columns":"auto","grid-auto-flow":"row","grid-auto-rows":"auto","grid-column-end":"auto","grid-column-gap":"0","grid-column-start":"auto","grid-row-end":"auto","grid-row-gap":"0","grid-row-start":"auto","grid-template-areas":"none","grid-template-columns":"none","grid-template-rows":"none","hanging-punctuation":"none","height":"auto","hyphenate-character":"auto","hyphenate-limit-chars":"auto","hyphens":"manual","image-rendering":"auto","image-resolution":"1dppx","ime-mode":"auto","initial-letter":"normal","initial-letter-align":"auto","inline-size":"auto","input-security":"auto","inset-block-end":"auto","inset-block-start":"auto","inset-inline-end":"auto","inset-inline-start":"auto","isolation":"auto","justify-content":"normal","justify-items":"legacy","justify-self":"auto","justify-tracks":"normal","left":"auto","letter-spacing":"normal","line-break":"auto","line-clamp":"none","line-height":"normal","line-height-step":"0","list-style-image":"none","list-style-type":"disc","margin-block-end":"0","margin-block-start":"0","margin-bottom":"0","margin-inline-end":"0","margin-inline-start":"0","margin-left":"0","margin-right":"0","margin-top":"0","margin-trim":"none","mask-border-mode":"alpha","mask-border-outset":"0","mask-border-slice":"0","mask-border-source":"none","mask-border-width":"auto","mask-composite":"add","mask-image":"none","mask-position":"0% 0%","mask-repeat":"repeat","mask-size":"auto","masonry-auto-flow":"pack","math-depth":"0","math-shift":"normal","math-style":"normal","max-block-size":"none","max-height":"none","max-inline-size":"none","max-lines":"none","max-width":"none","min-block-size":"0","min-height":"auto","min-inline-size":"0","min-width":"auto","mix-blend-mode":"normal","object-fit":"fill","offset-anchor":"auto","offset-distance":"0","offset-path":"none","offset-position":"normal","offset-rotate":"auto","opacity":"1","order":"0","orphans":"2","outline-offset":"0","outline-style":"none","outline-width":"medium","overflow-anchor":"auto","overflow-block":"auto","overflow-clip-margin":"0px","overflow-inline":"auto","overflow-wrap":"normal","overlay":"none","overscroll-behavior":"auto","overscroll-behavior-block":"auto","overscroll-behavior-inline":"auto","overscroll-behavior-x":"auto","overscroll-behavior-y":"auto","padding-block-end":"0","padding-block-start":"0","padding-bottom":"0","padding-inline-end":"0","padding-inline-start":"0","padding-left":"0","padding-right":"0","padding-top":"0","page":"auto","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto","paint-order":"normal","perspective":"none","pointer-events":"auto","position":"static","resize":"none","right":"auto","rotate":"none","row-gap":"normal","scale":"none","scrollbar-color":"auto","scrollbar-gutter":"auto","scrollbar-width":"auto","scroll-behavior":"auto","scroll-margin-block-start":"0","scroll-margin-block-end":"0","scroll-margin-bottom":"0","scroll-margin-inline-start":"0","scroll-margin-inline-end":"0","scroll-margin-left":"0","scroll-margin-right":"0","scroll-margin-top":"0","scroll-padding-block-start":"auto","scroll-padding-block-end":"auto","scroll-padding-bottom":"auto","scroll-padding-inline-start":"auto","scroll-padding-inline-end":"auto","scroll-padding-left":"auto","scroll-padding-right":"auto","scroll-padding-top":"auto","scroll-snap-align":"none","scroll-snap-coordinate":"none","scroll-snap-points-x":"none","scroll-snap-points-y":"none","scroll-snap-stop":"normal","scroll-snap-type":"none","scroll-snap-type-x":"none","scroll-snap-type-y":"none","scroll-timeline-axis":"block","scroll-timeline-name":"none","shape-image-threshold":"0.0","shape-margin":"0","shape-outside":"none","tab-size":"8","table-layout":"auto","text-align-last":"auto","text-combine-upright":"none","text-decoration-line":"none","text-decoration-skip-ink":"auto","text-decoration-style":"solid","text-decoration-thickness":"auto","text-emphasis-style":"none","text-indent":"0","text-justify":"auto","text-orientation":"mixed","text-overflow":"clip","text-rendering":"auto","text-shadow":"none","text-transform":"none","text-underline-offset":"auto","text-underline-position":"auto","text-wrap":"wrap","timeline-scope":"none","top":"auto","touch-action":"auto","transform":"none","transform-style":"flat","transition-behavior":"normal","transition-delay":"0s","transition-duration":"0s","transition-property":"all","transition-timing-function":"ease","translate":"none","unicode-bidi":"normal","user-select":"auto","view-timeline-axis":"block","view-timeline-inset":"auto","view-timeline-name":"none","view-transition-name":"none","white-space":"normal","widows":"2","width":"auto","will-change":"auto","word-break":"normal","word-spacing":"normal","word-wrap":"normal","z-index":"auto"}')},26:l=>{"use strict";l.exports=JSON.parse('{"background-clip":"border-box","background-color":"transparent","background-origin":"padding-box","background-size":"auto auto","border-block-color":"currentcolor","border-block-end-color":"currentcolor","border-block-start-color":"currentcolor","border-bottom-color":"currentcolor","border-collapse":"separate","border-inline-color":"currentcolor","border-inline-end-color":"currentcolor","border-inline-start-color":"currentcolor","border-left-color":"currentcolor","border-right-color":"currentcolor","border-top-color":"currentcolor","box-sizing":"content-box","color":"canvastext","column-rule-color":"currentcolor","font-synthesis":"weight style small-caps position","image-orientation":"from-image","mask-clip":"border-box","mask-mode":"match-source","mask-origin":"border-box","mask-type":"luminance","ruby-align":"space-around","ruby-merge":"separate","ruby-position":"alternate","text-decoration-color":"currentcolor","text-emphasis-color":"currentcolor","text-emphasis-position":"over right","transform-box":"view-box","transform-origin":"50% 50% 0","vertical-align":"baseline","white-space-collapse":"collapse","writing-mode":"horizontal-tb"}')}};var m={};function __nccwpck_require__(v){var y=m[v];if(y!==undefined){return y.exports}var w=m[v]={exports:{}};var _=true;try{l[v](w,w.exports,__nccwpck_require__);_=false}finally{if(_)delete m[v]}return w.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var v=__nccwpck_require__(9536);module.exports=v})(); \ No newline at end of file diff --git a/packages/next/src/compiled/icss-utils/index.js b/packages/next/src/compiled/icss-utils/index.js index fc40cbdccb7b..401f3f1a8b14 100644 --- a/packages/next/src/compiled/icss-utils/index.js +++ b/packages/next/src/compiled/icss-utils/index.js @@ -1 +1 @@ -(()=>{var e={858:e=>{const createImports=(e,r,t="rule")=>Object.keys(e).map((s=>{const o=e[s];const a=Object.keys(o).map((e=>r.decl({prop:e,value:o[e],raws:{before:"\n "}})));const n=a.length>0;const c=t==="rule"?r.rule({selector:`:import('${s}')`,raws:{after:n?"\n":""}}):r.atRule({name:"icss-import",params:`'${s}'`,raws:{after:n?"\n":""}});if(n){c.append(a)}return c}));const createExports=(e,r,t="rule")=>{const s=Object.keys(e).map((t=>r.decl({prop:t,value:e[t],raws:{before:"\n "}})));if(s.length===0){return[]}const o=t==="rule"?r.rule({selector:`:export`,raws:{after:"\n"}}):r.atRule({name:"icss-export",raws:{after:"\n"}});o.append(s);return[o]};const createICSSRules=(e,r,t,s)=>[...createImports(e,t,s),...createExports(r,t,s)];e.exports=createICSSRules},233:e=>{const r=/^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;const t=/^("[^"]*"|'[^']*'|[^"']+)$/;const getDeclsObject=e=>{const r={};e.walkDecls((e=>{const t=e.raws.before?e.raws.before.trim():"";r[t+e.prop]=e.value}));return r};const extractICSS=(e,s=true,o="auto")=>{const a={};const n={};function addImports(e,r){const t=r.replace(/'|"/g,"");a[t]=Object.assign(a[t]||{},getDeclsObject(e));if(s){e.remove()}}function addExports(e){Object.assign(n,getDeclsObject(e));if(s){e.remove()}}e.each((e=>{if(e.type==="rule"&&o!=="at-rule"){if(e.selector.slice(0,7)===":import"){const t=r.exec(e.selector);if(t){addImports(e,t[1])}}if(e.selector===":export"){addExports(e)}}if(e.type==="atrule"&&o!=="rule"){if(e.name==="icss-import"){const r=t.exec(e.params);if(r){addImports(e,r[1])}}if(e.name==="icss-export"){addExports(e)}}}));return{icssImports:a,icssExports:n}};e.exports=extractICSS},48:(e,r,t)=>{const s=t(63);const o=t(849);const a=t(233);const n=t(858);e.exports={replaceValueSymbols:s,replaceSymbols:o,extractICSS:a,createICSSRules:n}},849:(e,r,t)=>{const s=t(63);const replaceSymbols=(e,r)=>{e.walk((e=>{if(e.type==="decl"&&e.value){e.value=s(e.value.toString(),r)}else if(e.type==="rule"&&e.selector){e.selector=s(e.selector.toString(),r)}else if(e.type==="atrule"&&e.params){e.params=s(e.params.toString(),r)}}))};e.exports=replaceSymbols},63:e=>{const r=/[$]?[\w-]+/g;const replaceValueSymbols=(e,t)=>{let s;while(s=r.exec(e)){const o=t[s[0]];if(o){e=e.slice(0,s.index)+o+e.slice(r.lastIndex);r.lastIndex-=s[0].length-o.length}}return e};e.exports=replaceValueSymbols}};var r={};function __nccwpck_require__(t){var s=r[t];if(s!==undefined){return s.exports}var o=r[t]={exports:{}};var a=true;try{e[t](o,o.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(48);module.exports=t})(); \ No newline at end of file +(()=>{var e={853:e=>{const createImports=(e,r,t="rule")=>Object.keys(e).map((s=>{const o=e[s];const a=Object.keys(o).map((e=>r.decl({prop:e,value:o[e],raws:{before:"\n "}})));const n=a.length>0;const c=t==="rule"?r.rule({selector:`:import('${s}')`,raws:{after:n?"\n":""}}):r.atRule({name:"icss-import",params:`'${s}'`,raws:{after:n?"\n":""}});if(n){c.append(a)}return c}));const createExports=(e,r,t="rule")=>{const s=Object.keys(e).map((t=>r.decl({prop:t,value:e[t],raws:{before:"\n "}})));if(s.length===0){return[]}const o=t==="rule"?r.rule({selector:`:export`,raws:{after:"\n"}}):r.atRule({name:"icss-export",raws:{after:"\n"}});o.append(s);return[o]};const createICSSRules=(e,r,t,s)=>[...createImports(e,t,s),...createExports(r,t,s)];e.exports=createICSSRules},930:e=>{const r=/^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;const t=/^("[^"]*"|'[^']*'|[^"']+)$/;const getDeclsObject=e=>{const r={};e.walkDecls((e=>{const t=e.raws.before?e.raws.before.trim():"";r[t+e.prop]=e.value}));return r};const extractICSS=(e,s=true,o="auto")=>{const a={};const n={};function addImports(e,r){const t=r.replace(/'|"/g,"");a[t]=Object.assign(a[t]||{},getDeclsObject(e));if(s){e.remove()}}function addExports(e){Object.assign(n,getDeclsObject(e));if(s){e.remove()}}e.each((e=>{if(e.type==="rule"&&o!=="at-rule"){if(e.selector.slice(0,7)===":import"){const t=r.exec(e.selector);if(t){addImports(e,t[1])}}if(e.selector===":export"){addExports(e)}}if(e.type==="atrule"&&o!=="rule"){if(e.name==="icss-import"){const r=t.exec(e.params);if(r){addImports(e,r[1])}}if(e.name==="icss-export"){addExports(e)}}}));return{icssImports:a,icssExports:n}};e.exports=extractICSS},378:(e,r,t)=>{const s=t(167);const o=t(737);const a=t(930);const n=t(853);e.exports={replaceValueSymbols:s,replaceSymbols:o,extractICSS:a,createICSSRules:n}},737:(e,r,t)=>{const s=t(167);const replaceSymbols=(e,r)=>{e.walk((e=>{if(e.type==="decl"&&e.value){e.value=s(e.value.toString(),r)}else if(e.type==="rule"&&e.selector){e.selector=s(e.selector.toString(),r)}else if(e.type==="atrule"&&e.params){e.params=s(e.params.toString(),r)}}))};e.exports=replaceSymbols},167:e=>{const r=/[$]?[\w-]+/g;const replaceValueSymbols=(e,t)=>{let s;while(s=r.exec(e)){const o=t[s[0]];if(o){e=e.slice(0,s.index)+o+e.slice(r.lastIndex);r.lastIndex-=s[0].length-o.length}}return e};e.exports=replaceValueSymbols}};var r={};function __nccwpck_require__(t){var s=r[t];if(s!==undefined){return s.exports}var o=r[t]={exports:{}};var a=true;try{e[t](o,o.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(378);module.exports=t})(); \ No newline at end of file diff --git a/packages/next/src/compiled/postcss-flexbugs-fixes/index.js b/packages/next/src/compiled/postcss-flexbugs-fixes/index.js index ff5b0017a7e7..6d2d2fd12c3a 100644 --- a/packages/next/src/compiled/postcss-flexbugs-fixes/index.js +++ b/packages/next/src/compiled/postcss-flexbugs-fixes/index.js @@ -1 +1 @@ -(()=>{var e={747:(e,r,a)=>{var u=a(977);function shouldSetZeroBasis(e){if(!e){return false}return e==="0"||e.replace(/\s/g,"")==="0px"}function properBasis(e){if(shouldSetZeroBasis(e)){return"0%"}return e}e.exports=function(e){if(e.prop==="flex"){var r=u.list.space(e.value);var a="0";var s="1";var t="0%";if(r[0]){a=r[0]}if(r[1]){if(!isNaN(r[1])){s=r[1]}else{t=r[1]}}if(r[2]){t=r[2]}e.value=a+" "+s+" "+properBasis(t)}}},578:(e,r,a)=>{var u=a(977);e.exports=function(e){if(e.prop==="flex"){var r=u.list.space(e.value);var a=r[0];var s=r[1]||"1";var t=r[2]||"0%";if(t==="0%")t=null;e.value=a+" "+s+(t?" "+t:"")}}},526:(e,r,a)=>{var u=a(977);e.exports=function(e){var r=/(\d{1,}) (\d{1,}) (calc\(.*\))/g;var a=r.exec(e.value);if(e.prop==="flex"&&a){var s=u.decl({prop:"flex-grow",value:a[1],source:e.source});var t=u.decl({prop:"flex-shrink",value:a[2],source:e.source});var i=u.decl({prop:"flex-basis",value:a[3],source:e.source});e.parent.insertBefore(e,s);e.parent.insertBefore(e,t);e.parent.insertBefore(e,i);e.remove()}}},136:(e,r,a)=>{var u=a(747);var s=a(578);var t=a(526);var i=["none","auto","content","inherit","initial","unset"];e.exports=function(e){var r=Object.assign({bug4:true,bug6:true,bug81a:true},e);return{postcssPlugin:"postcss-flexbugs-fixes",Once:function(e,a){e.walkDecls((function(e){if(e.value.indexOf("var(")>-1){return}if(e.value==="none"){return}var n=a.list.space(e.value);if(i.indexOf(e.value)>0&&n.length===1){return}if(r.bug4){u(e)}if(r.bug6){s(e)}if(r.bug81a){t(e)}}))}}};e.exports.postcss=true},977:e=>{"use strict";e.exports=require("postcss")}};var r={};function __nccwpck_require__(a){var u=r[a];if(u!==undefined){return u.exports}var s=r[a]={exports:{}};var t=true;try{e[a](s,s.exports,__nccwpck_require__);t=false}finally{if(t)delete r[a]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var a=__nccwpck_require__(136);module.exports=a})(); \ No newline at end of file +(()=>{var e={974:(e,r,a)=>{var u=a(977);function shouldSetZeroBasis(e){if(!e){return false}return e==="0"||e.replace(/\s/g,"")==="0px"}function properBasis(e){if(shouldSetZeroBasis(e)){return"0%"}return e}e.exports=function(e){if(e.prop==="flex"){var r=u.list.space(e.value);var a="0";var s="1";var t="0%";if(r[0]){a=r[0]}if(r[1]){if(!isNaN(r[1])){s=r[1]}else{t=r[1]}}if(r[2]){t=r[2]}e.value=a+" "+s+" "+properBasis(t)}}},670:(e,r,a)=>{var u=a(977);e.exports=function(e){if(e.prop==="flex"){var r=u.list.space(e.value);var a=r[0];var s=r[1]||"1";var t=r[2]||"0%";if(t==="0%")t=null;e.value=a+" "+s+(t?" "+t:"")}}},53:(e,r,a)=>{var u=a(977);e.exports=function(e){var r=/(\d{1,}) (\d{1,}) (calc\(.*\))/g;var a=r.exec(e.value);if(e.prop==="flex"&&a){var s=u.decl({prop:"flex-grow",value:a[1],source:e.source});var t=u.decl({prop:"flex-shrink",value:a[2],source:e.source});var i=u.decl({prop:"flex-basis",value:a[3],source:e.source});e.parent.insertBefore(e,s);e.parent.insertBefore(e,t);e.parent.insertBefore(e,i);e.remove()}}},632:(e,r,a)=>{var u=a(974);var s=a(670);var t=a(53);var i=["none","auto","content","inherit","initial","unset"];e.exports=function(e){var r=Object.assign({bug4:true,bug6:true,bug81a:true},e);return{postcssPlugin:"postcss-flexbugs-fixes",Once:function(e,a){e.walkDecls((function(e){if(e.value.indexOf("var(")>-1){return}if(e.value==="none"){return}var n=a.list.space(e.value);if(i.indexOf(e.value)>0&&n.length===1){return}if(r.bug4){u(e)}if(r.bug6){s(e)}if(r.bug81a){t(e)}}))}}};e.exports.postcss=true},977:e=>{"use strict";e.exports=require("postcss")}};var r={};function __nccwpck_require__(a){var u=r[a];if(u!==undefined){return u.exports}var s=r[a]={exports:{}};var t=true;try{e[a](s,s.exports,__nccwpck_require__);t=false}finally{if(t)delete r[a]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var a=__nccwpck_require__(632);module.exports=a})(); \ No newline at end of file diff --git a/packages/next/src/compiled/postcss-modules-extract-imports/index.js b/packages/next/src/compiled/postcss-modules-extract-imports/index.js index f6b1fb0e7168..b4f48ce54d72 100644 --- a/packages/next/src/compiled/postcss-modules-extract-imports/index.js +++ b/packages/next/src/compiled/postcss-modules-extract-imports/index.js @@ -1 +1 @@ -(()=>{var r={591:(r,e,t)=>{const o=t(697);const n=/^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;const s=/^:import\((?:"([^"]+)"|'([^']+)')\)/;const c=1;function addImportToGraph(r,e,t,o){const n=e+"_"+"siblings";const s=e+"_"+r;if(o[s]!==c){if(!Array.isArray(o[n])){o[n]=[]}const e=o[n];if(Array.isArray(t[r])){t[r]=t[r].concat(e)}else{t[r]=e.slice()}o[s]=c;e.push(r)}}r.exports=(r={})=>{let e=0;const t=typeof r.createImportedName!=="function"?r=>`i__imported_${r.replace(/\W/g,"_")}_${e++}`:r.createImportedName;const c=r.failOnWrongOrder;return{postcssPlugin:"postcss-modules-extract-imports",prepare(){const r={};const e={};const a={};const i={};const p={};return{Once(l,f){l.walkRules((t=>{const o=s.exec(t.selector);if(o){const[,n,s]=o;const c=n||s;addImportToGraph(c,"root",r,e);a[c]=t}}));l.walkDecls(/^composes$/,(o=>{const s=o.value.match(n);if(!s){return}let c;let[,a,l,f,u]=s;if(u){c=a.split(/\s+/).map((r=>`global(${r})`))}else{const n=l||f;let s=o.parent;let u="";while(s.type!=="root"){u=s.parent.index(s)+"_"+u;s=s.parent}const{selector:d}=o.parent;const _=`_${u}${d}`;addImportToGraph(n,_,r,e);i[n]=o;p[n]=p[n]||{};c=a.split(/\s+/).map((r=>{if(!p[n][r]){p[n][r]=t(r,n)}return p[n][r]}))}o.value=c.join(" ")}));const u=o(r,c);if(u instanceof Error){const r=u.nodes.find((r=>i.hasOwnProperty(r)));const e=i[r];throw e.error("Failed to resolve order of composed modules "+u.nodes.map((r=>"`"+r+"`")).join(", ")+".",{plugin:"postcss-modules-extract-imports",word:"composes"})}let d;u.forEach((r=>{const e=p[r];let t=a[r];if(!t&&e){t=f.rule({selector:`:import("${r}")`,raws:{after:"\n"}});if(d){l.insertAfter(d,t)}else{l.prepend(t)}}d=t;if(!e){return}Object.keys(e).forEach((r=>{t.append(f.decl({value:r,prop:e[r],raws:{before:"\n "}}))}))}))}}}}};r.exports.postcss=true},697:r=>{const e=2;const t=1;function createError(r,e){const t=new Error("Nondeterministic import's order");const o=e[r];const n=o.find((t=>e[t].indexOf(r)>-1));t.nodes=[r,n];return t}function walkGraph(r,o,n,s,c){if(n[r]===e){return}if(n[r]===t){if(c){return createError(r,o)}return}n[r]=t;const a=o[r];const i=a.length;for(let r=0;r{var r={166:(r,e,t)=>{const o=t(232);const n=/^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;const s=/^:import\((?:"([^"]+)"|'([^']+)')\)/;const c=1;function addImportToGraph(r,e,t,o){const n=e+"_"+"siblings";const s=e+"_"+r;if(o[s]!==c){if(!Array.isArray(o[n])){o[n]=[]}const e=o[n];if(Array.isArray(t[r])){t[r]=t[r].concat(e)}else{t[r]=e.slice()}o[s]=c;e.push(r)}}r.exports=(r={})=>{let e=0;const t=typeof r.createImportedName!=="function"?r=>`i__imported_${r.replace(/\W/g,"_")}_${e++}`:r.createImportedName;const c=r.failOnWrongOrder;return{postcssPlugin:"postcss-modules-extract-imports",prepare(){const r={};const e={};const a={};const i={};const p={};return{Once(l,f){l.walkRules((t=>{const o=s.exec(t.selector);if(o){const[,n,s]=o;const c=n||s;addImportToGraph(c,"root",r,e);a[c]=t}}));l.walkDecls(/^composes$/,(o=>{const s=o.value.match(n);if(!s){return}let c;let[,a,l,f,u]=s;if(u){c=a.split(/\s+/).map((r=>`global(${r})`))}else{const n=l||f;let s=o.parent;let u="";while(s.type!=="root"){u=s.parent.index(s)+"_"+u;s=s.parent}const{selector:d}=o.parent;const _=`_${u}${d}`;addImportToGraph(n,_,r,e);i[n]=o;p[n]=p[n]||{};c=a.split(/\s+/).map((r=>{if(!p[n][r]){p[n][r]=t(r,n)}return p[n][r]}))}o.value=c.join(" ")}));const u=o(r,c);if(u instanceof Error){const r=u.nodes.find((r=>i.hasOwnProperty(r)));const e=i[r];throw e.error("Failed to resolve order of composed modules "+u.nodes.map((r=>"`"+r+"`")).join(", ")+".",{plugin:"postcss-modules-extract-imports",word:"composes"})}let d;u.forEach((r=>{const e=p[r];let t=a[r];if(!t&&e){t=f.rule({selector:`:import("${r}")`,raws:{after:"\n"}});if(d){l.insertAfter(d,t)}else{l.prepend(t)}}d=t;if(!e){return}Object.keys(e).forEach((r=>{t.append(f.decl({value:r,prop:e[r],raws:{before:"\n "}}))}))}))}}}}};r.exports.postcss=true},232:r=>{const e=2;const t=1;function createError(r,e){const t=new Error("Nondeterministic import's order");const o=e[r];const n=o.find((t=>e[t].indexOf(r)>-1));t.nodes=[r,n];return t}function walkGraph(r,o,n,s,c){if(n[r]===e){return}if(n[r]===t){if(c){return createError(r,o)}return}n[r]=t;const a=o[r];const i=a.length;for(let r=0;r{var e={441:e=>{"use strict"; -/*! https://mths.be/cssesc v3.0.0 by @mathias */var t={};var r=t.hasOwnProperty;var n=function merge(e,t){if(!e){return t}var n={};for(var i in t){n[i]=r.call(e,i)?e[i]:t[i]}return n};var i=/[ -,\.\/:-@\[-\^`\{-~]/;var s=/[ -,\.\/:-@\[\]\^`\{-~]/;var o=/['"\\]/;var a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var u=function cssesc(e,t){t=n(t,cssesc.options);if(t.quotes!="single"&&t.quotes!="double"){t.quotes="single"}var r=t.quotes=="double"?'"':"'";var o=t.isIdentifier;var u=e.charAt(0);var c="";var l=0;var f=e.length;while(l126){if(d>=55296&&d<=56319&&l{"use strict";const n=r(133);const i=r(45);const{extractICSS:s}=r(903);const o="cssmodules-pure-no-check";const a="cssmodules-pure-ignore";const isSpacing=e=>e.type==="combinator"&&e.value===" ";const isPureCheckDisabled=e=>{for(const t of e.nodes){if(t.type!=="comment"){return false}if(t.text.trim().startsWith(o)){return true}}return false};function getIgnoreComment(e){if(!e.parent){return}const t=e.parent.index(e);for(let r=t-1;r>=0;r--){const t=e.parent.nodes[r];if(t.type==="comment"){if(t.text.trimStart().startsWith(a)){return t}}else{break}}}function normalizeNodeArray(e){const t=[];e.forEach((e=>{if(Array.isArray(e)){normalizeNodeArray(e).forEach((e=>{t.push(e)}))}else if(e){t.push(e)}}));if(t.length>0&&isSpacing(t[t.length-1])){t.pop()}return t}const u=Symbol("is-pure-selector");function localizeNode(e,t,r){const transform=(t,i)=>{if(i.ignoreNextSpacing&&!isSpacing(t)){throw new Error("Missing whitespace after "+i.ignoreNextSpacing)}if(i.enforceNoSpacing&&isSpacing(t)){throw new Error("Missing whitespace before "+i.enforceNoSpacing)}let s;switch(t.type){case"root":{let e;i.hasPureGlobals=false;s=t.nodes.map((r=>{const n={global:i.global,lastWasSpacing:true,hasLocals:false,explicit:false};r=transform(r,n);if(typeof e==="undefined"){e=n.global}else if(e!==n.global){throw new Error('Inconsistent rule global/local result in rule "'+t+'" (multiple selectors must result in the same mode for the rule)')}if(!n.hasLocals){i.hasPureGlobals=true}return r}));i.global=e;t.nodes=normalizeNodeArray(s);break}case"selector":{s=t.map((e=>transform(e,i)));t=t.clone();t.nodes=normalizeNodeArray(s);break}case"combinator":{if(isSpacing(t)){if(i.ignoreNextSpacing){i.ignoreNextSpacing=false;i.lastWasSpacing=false;i.enforceNoSpacing=false;return null}i.lastWasSpacing=true;return t}break}case"pseudo":{let e;const r=!!t.length;const o=t.value===":local"||t.value===":global";const a=t.value===":import"||t.value===":export";if(a){i.hasLocals=true}else if(r){if(o){if(t.nodes.length===0){throw new Error(`${t.value}() can't be empty`)}if(i.inside){throw new Error(`A ${t.value} is not allowed inside of a ${i.inside}(...)`)}e={global:t.value===":global",inside:t.value,hasLocals:false,explicit:true};s=t.map((t=>transform(t,e))).reduce(((e,t)=>e.concat(t.nodes)),[]);if(s.length){const{before:e,after:r}=t.spaces;const n=s[0];const i=s[s.length-1];n.spaces={before:e,after:n.spaces.after};i.spaces={before:i.spaces.before,after:r}}t=s;break}else{e={global:i.global,inside:i.inside,lastWasSpacing:true,hasLocals:false,explicit:i.explicit};s=t.map((t=>{const r={...e,enforceNoSpacing:false};const n=transform(t,r);e.global=r.global;e.hasLocals=r.hasLocals;return n}));t=t.clone();t.nodes=normalizeNodeArray(s);if(e.hasLocals){i.hasLocals=true}}break}else if(o){if(i.inside){throw new Error(`A ${t.value} is not allowed inside of a ${i.inside}(...)`)}const e=!!t.spaces.before;i.ignoreNextSpacing=i.lastWasSpacing?t.value:false;i.enforceNoSpacing=i.lastWasSpacing?false:t.value;i.global=t.value===":global";i.explicit=true;return e?n.combinator({value:" "}):null}break}case"id":case"class":{if(!t.value){throw new Error("Invalid class or id selector syntax")}if(i.global){break}const e=r.has(t.value);const s=e&&i.explicit;if(!e||s){const e=t.clone();e.spaces={before:"",after:""};t=n.pseudo({value:":local",nodes:[e],spaces:t.spaces});i.hasLocals=true}break}case"nesting":{if(t.value==="&"){i.hasLocals=e.parent[u]}}}i.lastWasSpacing=false;i.ignoreNextSpacing=false;i.enforceNoSpacing=false;return t};const i={global:t==="global",hasPureGlobals:false};i.selector=n((e=>{transform(e,i)})).processSync(e,{updateSelector:false,lossless:true});return i}function localizeDeclNode(e,t){switch(e.type){case"word":if(t.localizeNextItem){if(!t.localAliasMap.has(e.value)){e.value=":local("+e.value+")";t.localizeNextItem=false}}break;case"function":if(t.options&&t.options.rewriteUrl&&e.value.toLowerCase()==="url"){e.nodes.map((e=>{if(e.type!=="string"&&e.type!=="word"){return}let r=t.options.rewriteUrl(t.global,e.value);switch(e.type){case"string":if(e.quote==="'"){r=r.replace(/(\\)/g,"\\$1").replace(/'/g,"\\'")}if(e.quote==='"'){r=r.replace(/(\\)/g,"\\$1").replace(/"/g,'\\"')}break;case"word":r=r.replace(/("|'|\)|\\)/g,"\\$1");break}e.value=r}))}break}return e}const c=["none","inherit","initial","revert","revert-layer","unset"];function localizeDeclarationValues(e,t,r){const n=i(t.value);n.walk(((t,n,i)=>{if(t.type==="function"&&(t.value.toLowerCase()==="var"||t.value.toLowerCase()==="env")){return false}if(t.type==="word"&&c.includes(t.value.toLowerCase())){return}const s={options:r.options,global:r.global,localizeNextItem:e&&!r.global,localAliasMap:r.localAliasMap};i[n]=localizeDeclNode(t,s)}));t.value=n.toString()}const l=/^-?([a-z\u0080-\uFFFF_]|(\\[^\r\n\f])|-(?![0-9]))((\\[^\r\n\f])|[a-z\u0080-\uFFFF_0-9-])*$/i;const f={$normal:1,$reverse:1,$alternate:1,"$alternate-reverse":1,$forwards:1,$backwards:1,$both:1,$infinite:1,$paused:1,$running:1,$ease:1,"$ease-in":1,"$ease-out":1,"$ease-in-out":1,$linear:1,"$step-end":1,"$step-start":1,$none:Infinity,$initial:Infinity,$inherit:Infinity,$unset:Infinity,$revert:Infinity,"$revert-layer":Infinity};function localizeDeclaration(e,t){const r=/animation(-name)?$/i.test(e.prop);if(r){let r={};const n=i(e.value).walk((e=>{if(e.type==="div"){r={};return}else if(e.type==="function"&&e.value.toLowerCase()==="local"&&e.nodes.length===1){e.type="word";e.value=e.nodes[0].value;return localizeDeclNode(e,{options:t.options,global:t.global,localizeNextItem:true,localAliasMap:t.localAliasMap})}else if(e.type==="function"){if(e.value.toLowerCase()==="global"&&e.nodes.length===1){e.type="word";e.value=e.nodes[0].value}return false}else if(e.type!=="word"){return}const n=e.type==="word"?e.value.toLowerCase():null;let i=false;if(n&&l.test(n)){if("$"+n in f){r["$"+n]="$"+n in r?r["$"+n]+1:0;i=r["$"+n]>=f["$"+n]}else{i=true}}return localizeDeclNode(e,{options:t.options,global:t.global,localizeNextItem:i&&!t.global,localAliasMap:t.localAliasMap})}));e.value=n.toString();return}if(/url\(/i.test(e.value)){return localizeDeclarationValues(false,e,t)}}const isPureSelector=(e,t)=>{if(!t.parent||t.type==="root"){return!e.hasPureGlobals}if(t.type==="rule"&&t[u]){return t[u]||isPureSelector(e,t.parent)}return!e.hasPureGlobals||isPureSelector(e,t.parent)};const isNodeWithoutDeclarations=e=>{if(e.nodes.length>0){return!e.nodes.every((e=>e.type==="rule"||e.type==="atrule"&&!isNodeWithoutDeclarations(e)))}return true};e.exports=(e={})=>{if(e&&e.mode&&e.mode!=="global"&&e.mode!=="local"&&e.mode!=="pure"){throw new Error('options.mode must be either "global", "local" or "pure" (default "local")')}const t=e&&e.mode==="pure";const r=e&&e.mode==="global";return{postcssPlugin:"postcss-modules-local-by-default",prepare(){const n=new Map;return{Once(i){const{icssImports:o}=s(i,false);const a=t&&!isPureCheckDisabled(i);Object.keys(o).forEach((e=>{Object.keys(o[e]).forEach((t=>{n.set(t,o[e][t])}))}));i.walkAtRules((i=>{if(/keyframes$/i.test(i.name)){const t=/^\s*:global\s*\((.+)\)\s*$/.exec(i.params);const s=/^\s*:local\s*\((.+)\)\s*$/.exec(i.params);let o=r;if(t){if(a){const e=getIgnoreComment(i);if(!e){throw i.error("@keyframes :global(...) is not allowed in pure mode")}else{e.remove()}}i.params=t[1];o=true}else if(s){i.params=s[0];o=false}else if(i.params&&!r&&!n.has(i.params)){i.params=":local("+i.params+")"}i.walkDecls((t=>{localizeDeclaration(t,{localAliasMap:n,options:e,global:o})}))}else if(/scope$/i.test(i.name)){if(i.params){const r=t?getIgnoreComment(i):undefined;if(r){r.remove()}i.params=i.params.split("to").map((t=>{const s=t.trim().slice(1,-1).trim();const o=localizeNode(s,e.mode,n);o.options=e;o.localAliasMap=n;if(a&&o.hasPureGlobals&&!r){throw i.error('Selector in at-rule"'+s+'" is not pure '+"(pure selectors must contain at least one local class or id)")}return`(${o.selector})`})).join(" to ")}i.nodes.forEach((t=>{if(t.type==="decl"){localizeDeclaration(t,{localAliasMap:n,options:e,global:r})}}))}else if(i.nodes){i.nodes.forEach((t=>{if(t.type==="decl"){localizeDeclaration(t,{localAliasMap:n,options:e,global:r})}}))}}));i.walkRules((r=>{if(r.parent&&r.parent.type==="atrule"&&/keyframes$/i.test(r.parent.name)){return}const i=localizeNode(r,e.mode,n);i.options=e;i.localAliasMap=n;const s=a?getIgnoreComment(r):undefined;const o=a&&!isPureSelector(i,r);if(o&&isNodeWithoutDeclarations(r)&&!s){throw r.error('Selector "'+r.selector+'" is not pure '+"(pure selectors must contain at least one local class or id)")}else if(s){s.remove()}if(t){r[u]=!o}r.selector=i.selector;if(r.nodes){r.nodes.forEach((e=>localizeDeclaration(e,i)))}}))}}}}};e.exports.postcss=true},133:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(128));var i=_interopRequireWildcard(r(60));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s=function parser(e){return new n["default"](e)};Object.assign(s,i);delete s.__esModule;var o=s;t["default"]=o;e.exports=t.default},553:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(478));var i=_interopRequireDefault(r(193));var s=_interopRequireDefault(r(692));var o=_interopRequireDefault(r(416));var a=_interopRequireDefault(r(114));var u=_interopRequireDefault(r(830));var c=_interopRequireDefault(r(54));var l=_interopRequireDefault(r(330));var f=_interopRequireWildcard(r(767));var p=_interopRequireDefault(r(627));var d=_interopRequireDefault(r(242));var h=_interopRequireDefault(r(426));var v=_interopRequireDefault(r(549));var _=_interopRequireWildcard(r(999));var y=_interopRequireWildcard(r(530));var g=_interopRequireWildcard(r(763));var b=r(362);var S,m;function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r0){var n=this.current.last;if(n){var i=this.convertWhitespaceNodesToSpace(r),s=i.space,o=i.rawSpace;if(o!==undefined){n.rawSpaceAfter+=o}n.spaces.after+=s}else{r.forEach((function(t){return e.newNode(t)}))}}return}var a=this.currToken;var u=undefined;if(t>this.position){u=this.parseWhitespaceEquivalentTokens(t)}var c;if(this.isNamedCombinator()){c=this.namedCombinator()}else if(this.currToken[_.FIELDS.TYPE]===y.combinator){c=new d["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[_.FIELDS.START_POS]});this.position++}else if(O[this.currToken[_.FIELDS.TYPE]]){}else if(!u){this.unexpected()}if(c){if(u){var l=this.convertWhitespaceNodesToSpace(u),f=l.space,p=l.rawSpace;c.spaces.before=f;c.rawSpaceBefore=p}}else{var h=this.convertWhitespaceNodesToSpace(u,true),v=h.space,g=h.rawSpace;if(!g){g=v}var b={};var S={spaces:{}};if(v.endsWith(" ")&&g.endsWith(" ")){b.before=v.slice(0,v.length-1);S.spaces.before=g.slice(0,g.length-1)}else if(v.startsWith(" ")&&g.startsWith(" ")){b.after=v.slice(1);S.spaces.after=g.slice(1)}else{S.value=g}c=new d["default"]({value:" ",source:getTokenSourceSpan(a,this.tokens[this.position-1]),sourceIndex:a[_.FIELDS.START_POS],spaces:b,raws:S})}if(this.currToken&&this.currToken[_.FIELDS.TYPE]===y.space){c.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(c)};e.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var e=new i["default"]({source:{start:tokenStart(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][_.FIELDS.START_POS]});this.current.parent.append(e);this.current=e;this.position++};e.comment=function comment(){var e=this.currToken;this.newNode(new o["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.error=function error(e,t){throw this.root.error(e,t)};e.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[_.FIELDS.START_POS]})};e.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[_.FIELDS.START_POS])};e.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[_.FIELDS.START_POS])};e.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[_.FIELDS.START_POS])};e.unexpectedPipe=function unexpectedPipe(){return this.error("Unexpected '|'.",this.currToken[_.FIELDS.START_POS])};e.namespace=function namespace(){var e=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[_.FIELDS.TYPE]===y.word){this.position++;return this.word(e)}else if(this.nextToken[_.FIELDS.TYPE]===y.asterisk){this.position++;return this.universal(e)}this.unexpectedPipe()};e.nesting=function nesting(){if(this.nextToken){var e=this.content(this.nextToken);if(e==="|"){this.position++;return}}var t=this.currToken;this.newNode(new h["default"]({value:this.content(),source:getTokenSource(t),sourceIndex:t[_.FIELDS.START_POS]}));this.position++};e.parentheses=function parentheses(){var e=this.current.last;var t=1;this.position++;if(e&&e.type===g.PSEUDO){var r=new i["default"]({source:{start:tokenStart(this.tokens[this.position])},sourceIndex:this.tokens[this.position][_.FIELDS.START_POS]});var n=this.current;e.append(r);this.current=r;while(this.position1&&e.nextToken&&e.nextToken[_.FIELDS.TYPE]===y.openParenthesis){e.error("Misplaced parenthesis.",{index:e.nextToken[_.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[_.FIELDS.START_POS])}};e.space=function space(){var e=this.content();if(this.position===0||this.prevToken[_.FIELDS.TYPE]===y.comma||this.prevToken[_.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return e.type==="comment"}))){this.spaces=this.optionalSpace(e);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[_.FIELDS.TYPE]===y.comma||this.nextToken[_.FIELDS.TYPE]===y.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(e);this.position++}else{this.combinator()}};e.string=function string(){var e=this.currToken;this.newNode(new c["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.universal=function universal(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}var r=this.currToken;this.newNode(new p["default"]({value:this.content(),source:getTokenSource(r),sourceIndex:r[_.FIELDS.START_POS]}),e);this.position++};e.splitWord=function splitWord(e,t){var r=this;var n=this.nextToken;var i=this.content();while(n&&~[y.dollar,y.caret,y.equals,y.word].indexOf(n[_.FIELDS.TYPE])){this.position++;var o=this.content();i+=o;if(o.lastIndexOf("\\")===o.length-1){var c=this.nextToken;if(c&&c[_.FIELDS.TYPE]===y.space){i+=this.requiredSpace(this.content(c));this.position++}}n=this.nextToken}var l=indexesOf(i,".").filter((function(e){var t=i[e-1]==="\\";var r=/^\d+\.\d+%$/.test(i);return!t&&!r}));var f=indexesOf(i,"#").filter((function(e){return i[e-1]!=="\\"}));var p=indexesOf(i,"#{");if(p.length){f=f.filter((function(e){return!~p.indexOf(e)}))}var d=(0,v["default"])(uniqs([0].concat(l,f)));d.forEach((function(n,o){var c=d[o+1]||i.length;var p=i.slice(n,c);if(o===0&&t){return t.call(r,p,d.length)}var h;var v=r.currToken;var y=v[_.FIELDS.START_POS]+d[o];var g=getSource(v[1],v[2]+n,v[3],v[2]+(c-1));if(~l.indexOf(n)){var b={value:p.slice(1),source:g,sourceIndex:y};h=new s["default"](unescapeProp(b,"value"))}else if(~f.indexOf(n)){var S={value:p.slice(1),source:g,sourceIndex:y};h=new a["default"](unescapeProp(S,"value"))}else{var m={value:p,source:g,sourceIndex:y};unescapeProp(m,"value");h=new u["default"](m)}r.newNode(h,e);e=null}));this.position++};e.word=function word(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}return this.splitWord(e)};e.loop=function loop(){while(this.position{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(553));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=function(){function Processor(e,t){this.func=e||function noop(){};this.funcRes=null;this.options=t}var e=Processor.prototype;e._shouldUpdateSelector=function _shouldUpdateSelector(e,t){if(t===void 0){t={}}var r=Object.assign({},this.options,t);if(r.updateSelector===false){return false}else{return typeof e!=="string"}};e._isLossy=function _isLossy(e){if(e===void 0){e={}}var t=Object.assign({},this.options,e);if(t.lossless===false){return true}else{return false}};e._root=function _root(e,t){if(t===void 0){t={}}var r=new n["default"](e,this._parseOptions(t));return r.root};e._parseOptions=function _parseOptions(e){return{lossy:this._isLossy(e)}};e._run=function _run(e,t){var r=this;if(t===void 0){t={}}return new Promise((function(n,i){try{var s=r._root(e,t);Promise.resolve(r.func(s)).then((function(n){var i=undefined;if(r._shouldUpdateSelector(e,t)){i=s.toString();e.selector=i}return{transform:n,root:s,string:i}})).then(n,i)}catch(e){i(e);return}}))};e._runSync=function _runSync(e,t){if(t===void 0){t={}}var r=this._root(e,t);var n=this.func(r);if(n&&typeof n.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var i=undefined;if(t.updateSelector&&typeof e!=="string"){i=r.toString();e.selector=i}return{transform:n,root:r,string:i}};e.ast=function ast(e,t){return this._run(e,t).then((function(e){return e.root}))};e.astSync=function astSync(e,t){return this._runSync(e,t).root};e.transform=function transform(e,t){return this._run(e,t).then((function(e){return e.transform}))};e.transformSync=function transformSync(e,t){return this._runSync(e,t).transform};e.process=function process(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))};e.processSync=function processSync(e,t){var r=this._runSync(e,t);return r.string||r.root.toString()};return Processor}();t["default"]=i;e.exports=t.default},767:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;t.unescapeValue=unescapeValue;var n=_interopRequireDefault(r(441));var i=_interopRequireDefault(r(255));var s=_interopRequireDefault(r(929));var o=r(763);var a;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r0&&!e.quoted&&r.before.length===0&&!(e.spaces.value&&e.spaces.value.after)){r.before=" "}return defaultAttrConcat(t,r)})))}t.push("]");t.push(this.rawSpaceAfter);return t.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var e=this.quoteMark;return e==="'"||e==='"'},set:function set(e){f()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(e){if(!this._constructed){this._quoteMark=e;return}if(this._quoteMark!==e){this._quoteMark=e;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(e){if(this._constructed){var t=unescapeValue(e),r=t.deprecatedUsage,n=t.unescaped,i=t.quoteMark;if(r){l()}if(n===this._value&&i===this._quoteMark){return}this._value=n;this._quoteMark=i;this._syncRawValue()}else{this._value=e}}},{key:"insensitive",get:function get(){return this._insensitive},set:function set(e){if(!e){this._insensitive=false;if(this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")){this.raws.insensitiveFlag=undefined}}this._insensitive=e}},{key:"attribute",get:function get(){return this._attribute},set:function set(e){this._handleEscapes("attribute",e);this._attribute=e}}]);return Attribute}(s["default"]);t["default"]=d;d.NO_QUOTE=null;d.SINGLE_QUOTE="'";d.DOUBLE_QUOTE='"';var h=(a={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},a[null]={isIdentifier:true},a);function defaultAttrConcat(e,t){return""+t.before+e+t.after}},692:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=r(362);var s=_interopRequireDefault(r(616));var o=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Combinator,e);function Combinator(t){var r;r=e.call(this,t)||this;r.type=i.COMBINATOR;return r}return Combinator}(n["default"]);t["default"]=s;e.exports=t.default},416:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Comment,e);function Comment(t){var r;r=e.call(this,t)||this;r.type=i.COMMENT;return r}return Comment}(n["default"]);t["default"]=s;e.exports=t.default},875:(e,t,r)=>{"use strict";t.__esModule=true;t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=_interopRequireDefault(r(767));var i=_interopRequireDefault(r(692));var s=_interopRequireDefault(r(242));var o=_interopRequireDefault(r(416));var a=_interopRequireDefault(r(114));var u=_interopRequireDefault(r(426));var c=_interopRequireDefault(r(330));var l=_interopRequireDefault(r(478));var f=_interopRequireDefault(r(193));var p=_interopRequireDefault(r(54));var d=_interopRequireDefault(r(830));var h=_interopRequireDefault(r(627));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var v=function attribute(e){return new n["default"](e)};t.attribute=v;var _=function className(e){return new i["default"](e)};t.className=_;var y=function combinator(e){return new s["default"](e)};t.combinator=y;var g=function comment(e){return new o["default"](e)};t.comment=g;var b=function id(e){return new a["default"](e)};t.id=b;var S=function nesting(e){return new u["default"](e)};t.nesting=S;var m=function pseudo(e){return new c["default"](e)};t.pseudo=m;var O=function root(e){return new l["default"](e)};t.root=O;var w=function selector(e){return new f["default"](e)};t.selector=w;var P=function string(e){return new p["default"](e)};t.string=P;var T=function tag(e){return new d["default"](e)};t.tag=T;var k=function universal(e){return new h["default"](e)};t.universal=k},300:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=_interopRequireWildcard(r(763));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _createForOfIteratorHelperLoose(e,t){var r=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&typeof e.length==="number"){if(r)e=r;var n=0;return function(){if(n>=e.length)return{done:true};return{done:false,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}function _arrayLikeToArray(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r=e){this.indexes[r]=t-1}}return this};t.removeAll=function removeAll(){for(var e=_createForOfIteratorHelperLoose(this.nodes),t;!(t=e()).done;){var r=t.value;r.parent=undefined}this.nodes=[];return this};t.empty=function empty(){return this.removeAll()};t.insertAfter=function insertAfter(e,t){t.parent=this;var r=this.index(e);this.nodes.splice(r+1,0,t);t.parent=this;var n;for(var i in this.indexes){n=this.indexes[i];if(r=r){this.indexes[i]=n+1}}return this};t._findChildAtPosition=function _findChildAtPosition(e,t){var r=undefined;this.each((function(n){if(n.atPosition){var i=n.atPosition(e,t);if(i){r=i;return false}}else if(n.isAtPosition(e,t)){r=n;return false}}));return r};t.atPosition=function atPosition(e,t){if(this.isAtPosition(e,t)){return this._findChildAtPosition(e,t)||this}else{return undefined}};t._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};t.each=function each(e){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var t=this.lastEach;this.indexes[t]=0;if(!this.length){return undefined}var r,n;while(this.indexes[t]{"use strict";t.__esModule=true;t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0;t.isContainer=isContainer;t.isIdentifier=void 0;t.isNamespace=isNamespace;t.isNesting=void 0;t.isNode=isNode;t.isPseudo=void 0;t.isPseudoClass=isPseudoClass;t.isPseudoElement=isPseudoElement;t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=void 0;var n=r(763);var i;var s=(i={},i[n.ATTRIBUTE]=true,i[n.CLASS]=true,i[n.COMBINATOR]=true,i[n.COMMENT]=true,i[n.ID]=true,i[n.NESTING]=true,i[n.PSEUDO]=true,i[n.ROOT]=true,i[n.SELECTOR]=true,i[n.STRING]=true,i[n.TAG]=true,i[n.UNIVERSAL]=true,i);function isNode(e){return typeof e==="object"&&s[e.type]}function isNodeType(e,t){return isNode(t)&&t.type===e}var o=isNodeType.bind(null,n.ATTRIBUTE);t.isAttribute=o;var a=isNodeType.bind(null,n.CLASS);t.isClassName=a;var u=isNodeType.bind(null,n.COMBINATOR);t.isCombinator=u;var c=isNodeType.bind(null,n.COMMENT);t.isComment=c;var l=isNodeType.bind(null,n.ID);t.isIdentifier=l;var f=isNodeType.bind(null,n.NESTING);t.isNesting=f;var p=isNodeType.bind(null,n.PSEUDO);t.isPseudo=p;var d=isNodeType.bind(null,n.ROOT);t.isRoot=d;var h=isNodeType.bind(null,n.SELECTOR);t.isSelector=h;var v=isNodeType.bind(null,n.STRING);t.isString=v;var _=isNodeType.bind(null,n.TAG);t.isTag=_;var y=isNodeType.bind(null,n.UNIVERSAL);t.isUniversal=y;function isPseudoElement(e){return p(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function isPseudoClass(e){return p(e)&&!isPseudoElement(e)}function isContainer(e){return!!(isNode(e)&&e.walk)}function isNamespace(e){return o(e)||_(e)}},114:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(ID,e);function ID(t){var r;r=e.call(this,t)||this;r.type=i.ID;return r}var t=ID.prototype;t.valueToString=function valueToString(){return"#"+e.prototype.valueToString.call(this)};return ID}(n["default"]);t["default"]=s;e.exports=t.default},60:(e,t,r)=>{"use strict";t.__esModule=true;var n=r(763);Object.keys(n).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;t[e]=n[e]}));var i=r(875);Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===i[e])return;t[e]=i[e]}));var s=r(93);Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;t[e]=s[e]}))},929:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=r(362);var s=_interopRequireDefault(r(616));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Nesting,e);function Nesting(t){var r;r=e.call(this,t)||this;r.type=i.NESTING;r.value="&";return r}return Nesting}(n["default"]);t["default"]=s;e.exports=t.default},616:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=r(362);function _defineProperties(e,t){for(var r=0;re){return false}if(this.source.end.linet){return false}if(this.source.end.line===e&&this.source.end.column{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(300));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Pseudo,e);function Pseudo(t){var r;r=e.call(this,t)||this;r.type=i.PSEUDO;return r}var t=Pseudo.prototype;t.toString=function toString(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),e,this.rawSpaceAfter].join("")};return Pseudo}(n["default"]);t["default"]=s;e.exports=t.default},478:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(300));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(300));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Selector,e);function Selector(t){var r;r=e.call(this,t)||this;r.type=i.SELECTOR;return r}return Selector}(n["default"]);t["default"]=s;e.exports=t.default},54:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(String,e);function String(t){var r;r=e.call(this,t)||this;r.type=i.STRING;return r}return String}(n["default"]);t["default"]=s;e.exports=t.default},830:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(929));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Tag,e);function Tag(t){var r;r=e.call(this,t)||this;r.type=i.TAG;return r}return Tag}(n["default"]);t["default"]=s;e.exports=t.default},763:(e,t)=>{"use strict";t.__esModule=true;t.UNIVERSAL=t.TAG=t.STRING=t.SELECTOR=t.ROOT=t.PSEUDO=t.NESTING=t.ID=t.COMMENT=t.COMBINATOR=t.CLASS=t.ATTRIBUTE=void 0;var r="tag";t.TAG=r;var n="string";t.STRING=n;var i="selector";t.SELECTOR=i;var s="root";t.ROOT=s;var o="pseudo";t.PSEUDO=o;var a="nesting";t.NESTING=a;var u="id";t.ID=u;var c="comment";t.COMMENT=c;var l="combinator";t.COMBINATOR=l;var f="class";t.CLASS=f;var p="attribute";t.ATTRIBUTE=p;var d="universal";t.UNIVERSAL=d},627:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(929));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Universal,e);function Universal(t){var r;r=e.call(this,t)||this;r.type=i.UNIVERSAL;r.value="*";return r}return Universal}(n["default"]);t["default"]=s;e.exports=t.default},549:(e,t)=>{"use strict";t.__esModule=true;t["default"]=sortAscending;function sortAscending(e){return e.sort((function(e,t){return e-t}))}e.exports=t.default},530:(e,t)=>{"use strict";t.__esModule=true;t.word=t.tilde=t.tab=t.str=t.space=t.slash=t.singleQuote=t.semicolon=t.plus=t.pipe=t.openSquare=t.openParenthesis=t.newline=t.greaterThan=t.feed=t.equals=t.doubleQuote=t.dollar=t.cr=t.comment=t.comma=t.combinator=t.colon=t.closeSquare=t.closeParenthesis=t.caret=t.bang=t.backslash=t.at=t.asterisk=t.ampersand=void 0;var r=38;t.ampersand=r;var n=42;t.asterisk=n;var i=64;t.at=i;var s=44;t.comma=s;var o=58;t.colon=o;var a=59;t.semicolon=a;var u=40;t.openParenthesis=u;var c=41;t.closeParenthesis=c;var l=91;t.openSquare=l;var f=93;t.closeSquare=f;var p=36;t.dollar=p;var d=126;t.tilde=d;var h=94;t.caret=h;var v=43;t.plus=v;var _=61;t.equals=_;var y=124;t.pipe=y;var g=62;t.greaterThan=g;var b=32;t.space=b;var S=39;t.singleQuote=S;var m=34;t.doubleQuote=m;var O=47;t.slash=O;var w=33;t.bang=w;var P=92;t.backslash=P;var T=13;t.cr=T;var k=12;t.feed=k;var E=10;t.newline=E;var D=9;t.tab=D;var I=S;t.str=I;var L=-1;t.comment=L;var q=-2;t.word=q;var R=-3;t.combinator=R},999:(e,t,r)=>{"use strict";t.__esModule=true;t.FIELDS=void 0;t["default"]=tokenize;var n=_interopRequireWildcard(r(530));var i,s;function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}var o=(i={},i[n.tab]=true,i[n.newline]=true,i[n.cr]=true,i[n.feed]=true,i);var a=(s={},s[n.space]=true,s[n.tab]=true,s[n.newline]=true,s[n.cr]=true,s[n.feed]=true,s[n.ampersand]=true,s[n.asterisk]=true,s[n.bang]=true,s[n.comma]=true,s[n.colon]=true,s[n.semicolon]=true,s[n.openParenthesis]=true,s[n.closeParenthesis]=true,s[n.openSquare]=true,s[n.closeSquare]=true,s[n.singleQuote]=true,s[n.doubleQuote]=true,s[n.plus]=true,s[n.pipe]=true,s[n.tilde]=true,s[n.greaterThan]=true,s[n.equals]=true,s[n.dollar]=true,s[n.caret]=true,s[n.slash]=true,s);var u={};var c="0123456789abcdefABCDEF";for(var l=0;l0){b=a+_;S=g-y[_].length}else{b=a;S=o}O=n.comment;a=b;d=b;p=g-S}else if(l===n.slash){g=u;O=l;d=a;p=u-o;c=g+1}else{g=consumeWord(r,u);O=n.word;d=a;p=g-o}c=g+1;break}t.push([O,a,u-o,d,p,u,c]);if(S){o=S;S=null}u=c}return t}},184:(e,t)=>{"use strict";t.__esModule=true;t["default"]=ensureObject;function ensureObject(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0){var i=r.shift();if(!e[i]){e[i]={}}e=e[i]}}e.exports=t.default},735:(e,t)=>{"use strict";t.__esModule=true;t["default"]=getProp;function getProp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0){var i=r.shift();if(!e[i]){return undefined}e=e[i]}return e}e.exports=t.default},362:(e,t,r)=>{"use strict";t.__esModule=true;t.unesc=t.stripComments=t.getProp=t.ensureObject=void 0;var n=_interopRequireDefault(r(255));t.unesc=n["default"];var i=_interopRequireDefault(r(735));t.getProp=i["default"];var s=_interopRequireDefault(r(184));t.ensureObject=s["default"];var o=_interopRequireDefault(r(326));t.stripComments=o["default"];function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},326:(e,t)=>{"use strict";t.__esModule=true;t["default"]=stripComments;function stripComments(e){var t="";var r=e.indexOf("/*");var n=0;while(r>=0){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0){return t}n=i+2;r=e.indexOf("/*",n)}t=t+e.slice(n);return t}e.exports=t.default},255:(e,t)=>{"use strict";t.__esModule=true;t["default"]=unesc;function gobbleHex(e){var t=e.toLowerCase();var r="";var n=false;for(var i=0;i<6&&t[i]!==undefined;i++){var s=t.charCodeAt(i);var o=s>=97&&s<=102||s>=48&&s<=57;n=s===32;if(!o){break}r+=t[i]}if(r.length===0){return undefined}var a=parseInt(r,16);var u=a>=55296&&a<=57343;if(u||a===0||a>1114111){return["�",r.length+(n?1:0)]}return[String.fromCodePoint(a),r.length+(n?1:0)]}var r=/\\/;function unesc(e){var t=r.test(e);if(!t){return e}var n="";for(var i=0;i{e.exports=r(837).deprecate},903:e=>{"use strict";e.exports=require("next/dist/compiled/icss-utils")},45:e=>{"use strict";e.exports=require("next/dist/compiled/postcss-value-parser")},837:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var s=true;try{e[r](i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(742);module.exports=r})(); \ No newline at end of file +/*! https://mths.be/cssesc v3.0.0 by @mathias */var t={};var r=t.hasOwnProperty;var n=function merge(e,t){if(!e){return t}var n={};for(var i in t){n[i]=r.call(e,i)?e[i]:t[i]}return n};var i=/[ -,\.\/:-@\[-\^`\{-~]/;var s=/[ -,\.\/:-@\[\]\^`\{-~]/;var o=/['"\\]/;var a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var u=function cssesc(e,t){t=n(t,cssesc.options);if(t.quotes!="single"&&t.quotes!="double"){t.quotes="single"}var r=t.quotes=="double"?'"':"'";var o=t.isIdentifier;var u=e.charAt(0);var c="";var l=0;var f=e.length;while(l126){if(d>=55296&&d<=56319&&l{"use strict";const n=r(133);const i=r(45);const{extractICSS:s}=r(903);const o="cssmodules-pure-no-check";const a="cssmodules-pure-ignore";const isSpacing=e=>e.type==="combinator"&&e.value===" ";const isPureCheckDisabled=e=>{for(const t of e.nodes){if(t.type!=="comment"){return false}if(t.text.trim().startsWith(o)){return true}}return false};function getIgnoreComment(e){if(!e.parent){return}const t=e.parent.index(e);for(let r=t-1;r>=0;r--){const t=e.parent.nodes[r];if(t.type==="comment"){if(t.text.trimStart().startsWith(a)){return t}}else{break}}}function normalizeNodeArray(e){const t=[];e.forEach((e=>{if(Array.isArray(e)){normalizeNodeArray(e).forEach((e=>{t.push(e)}))}else if(e){t.push(e)}}));if(t.length>0&&isSpacing(t[t.length-1])){t.pop()}return t}const u=Symbol("is-pure-selector");function localizeNode(e,t,r){const transform=(t,i)=>{if(i.ignoreNextSpacing&&!isSpacing(t)){throw new Error("Missing whitespace after "+i.ignoreNextSpacing)}if(i.enforceNoSpacing&&isSpacing(t)){throw new Error("Missing whitespace before "+i.enforceNoSpacing)}let s;switch(t.type){case"root":{let e;i.hasPureGlobals=false;s=t.nodes.map((r=>{const n={global:i.global,lastWasSpacing:true,hasLocals:false,explicit:false};r=transform(r,n);if(typeof e==="undefined"){e=n.global}else if(e!==n.global){throw new Error('Inconsistent rule global/local result in rule "'+t+'" (multiple selectors must result in the same mode for the rule)')}if(!n.hasLocals){i.hasPureGlobals=true}return r}));i.global=e;t.nodes=normalizeNodeArray(s);break}case"selector":{s=t.map((e=>transform(e,i)));t=t.clone();t.nodes=normalizeNodeArray(s);break}case"combinator":{if(isSpacing(t)){if(i.ignoreNextSpacing){i.ignoreNextSpacing=false;i.lastWasSpacing=false;i.enforceNoSpacing=false;return null}i.lastWasSpacing=true;return t}break}case"pseudo":{let e;const r=!!t.length;const o=t.value===":local"||t.value===":global";const a=t.value===":import"||t.value===":export";if(a){i.hasLocals=true}else if(r){if(o){if(t.nodes.length===0){throw new Error(`${t.value}() can't be empty`)}if(i.inside){throw new Error(`A ${t.value} is not allowed inside of a ${i.inside}(...)`)}e={global:t.value===":global",inside:t.value,hasLocals:false,explicit:true};s=t.map((t=>transform(t,e))).reduce(((e,t)=>e.concat(t.nodes)),[]);if(s.length){const{before:e,after:r}=t.spaces;const n=s[0];const i=s[s.length-1];n.spaces={before:e,after:n.spaces.after};i.spaces={before:i.spaces.before,after:r}}t=s;break}else{e={global:i.global,inside:i.inside,lastWasSpacing:true,hasLocals:false,explicit:i.explicit};s=t.map((t=>{const r={...e,enforceNoSpacing:false};const n=transform(t,r);e.global=r.global;e.hasLocals=r.hasLocals;return n}));t=t.clone();t.nodes=normalizeNodeArray(s);if(e.hasLocals){i.hasLocals=true}}break}else if(o){if(i.inside){throw new Error(`A ${t.value} is not allowed inside of a ${i.inside}(...)`)}const e=!!t.spaces.before;i.ignoreNextSpacing=i.lastWasSpacing?t.value:false;i.enforceNoSpacing=i.lastWasSpacing?false:t.value;i.global=t.value===":global";i.explicit=true;return e?n.combinator({value:" "}):null}break}case"id":case"class":{if(!t.value){throw new Error("Invalid class or id selector syntax")}if(i.global){break}const e=r.has(t.value);const s=e&&i.explicit;if(!e||s){const e=t.clone();e.spaces={before:"",after:""};t=n.pseudo({value:":local",nodes:[e],spaces:t.spaces});i.hasLocals=true}break}case"nesting":{if(t.value==="&"){i.hasLocals=e.parent[u]}}}i.lastWasSpacing=false;i.ignoreNextSpacing=false;i.enforceNoSpacing=false;return t};const i={global:t==="global",hasPureGlobals:false};i.selector=n((e=>{transform(e,i)})).processSync(e,{updateSelector:false,lossless:true});return i}function localizeDeclNode(e,t){switch(e.type){case"word":if(t.localizeNextItem){if(!t.localAliasMap.has(e.value)){e.value=":local("+e.value+")";t.localizeNextItem=false}}break;case"function":if(t.options&&t.options.rewriteUrl&&e.value.toLowerCase()==="url"){e.nodes.map((e=>{if(e.type!=="string"&&e.type!=="word"){return}let r=t.options.rewriteUrl(t.global,e.value);switch(e.type){case"string":if(e.quote==="'"){r=r.replace(/(\\)/g,"\\$1").replace(/'/g,"\\'")}if(e.quote==='"'){r=r.replace(/(\\)/g,"\\$1").replace(/"/g,'\\"')}break;case"word":r=r.replace(/("|'|\)|\\)/g,"\\$1");break}e.value=r}))}break}return e}const c=["none","inherit","initial","revert","revert-layer","unset"];function localizeDeclarationValues(e,t,r){const n=i(t.value);n.walk(((t,n,i)=>{if(t.type==="function"&&(t.value.toLowerCase()==="var"||t.value.toLowerCase()==="env")){return false}if(t.type==="word"&&c.includes(t.value.toLowerCase())){return}const s={options:r.options,global:r.global,localizeNextItem:e&&!r.global,localAliasMap:r.localAliasMap};i[n]=localizeDeclNode(t,s)}));t.value=n.toString()}const l=/^-?([a-z\u0080-\uFFFF_]|(\\[^\r\n\f])|-(?![0-9]))((\\[^\r\n\f])|[a-z\u0080-\uFFFF_0-9-])*$/i;const f={$normal:1,$reverse:1,$alternate:1,"$alternate-reverse":1,$forwards:1,$backwards:1,$both:1,$infinite:1,$paused:1,$running:1,$ease:1,"$ease-in":1,"$ease-out":1,"$ease-in-out":1,$linear:1,"$step-end":1,"$step-start":1,$none:Infinity,$initial:Infinity,$inherit:Infinity,$unset:Infinity,$revert:Infinity,"$revert-layer":Infinity};function localizeDeclaration(e,t){const r=/animation(-name)?$/i.test(e.prop);if(r){let r={};const n=i(e.value).walk((e=>{if(e.type==="div"){r={};return}else if(e.type==="function"&&e.value.toLowerCase()==="local"&&e.nodes.length===1){e.type="word";e.value=e.nodes[0].value;return localizeDeclNode(e,{options:t.options,global:t.global,localizeNextItem:true,localAliasMap:t.localAliasMap})}else if(e.type==="function"){if(e.value.toLowerCase()==="global"&&e.nodes.length===1){e.type="word";e.value=e.nodes[0].value}return false}else if(e.type!=="word"){return}const n=e.type==="word"?e.value.toLowerCase():null;let i=false;if(n&&l.test(n)){if("$"+n in f){r["$"+n]="$"+n in r?r["$"+n]+1:0;i=r["$"+n]>=f["$"+n]}else{i=true}}return localizeDeclNode(e,{options:t.options,global:t.global,localizeNextItem:i&&!t.global,localAliasMap:t.localAliasMap})}));e.value=n.toString();return}if(/url\(/i.test(e.value)){return localizeDeclarationValues(false,e,t)}}const isPureSelector=(e,t)=>{if(!t.parent||t.type==="root"){return!e.hasPureGlobals}if(t.type==="rule"&&t[u]){return t[u]||isPureSelector(e,t.parent)}return!e.hasPureGlobals||isPureSelector(e,t.parent)};const isNodeWithoutDeclarations=e=>{if(e.nodes.length>0){return!e.nodes.every((e=>e.type==="rule"||e.type==="atrule"&&!isNodeWithoutDeclarations(e)))}return true};e.exports=(e={})=>{if(e&&e.mode&&e.mode!=="global"&&e.mode!=="local"&&e.mode!=="pure"){throw new Error('options.mode must be either "global", "local" or "pure" (default "local")')}const t=e&&e.mode==="pure";const r=e&&e.mode==="global";return{postcssPlugin:"postcss-modules-local-by-default",prepare(){const n=new Map;return{Once(i){const{icssImports:o}=s(i,false);const a=t&&!isPureCheckDisabled(i);Object.keys(o).forEach((e=>{Object.keys(o[e]).forEach((t=>{n.set(t,o[e][t])}))}));i.walkAtRules((i=>{if(/keyframes$/i.test(i.name)){const t=/^\s*:global\s*\((.+)\)\s*$/.exec(i.params);const s=/^\s*:local\s*\((.+)\)\s*$/.exec(i.params);let o=r;if(t){if(a){const e=getIgnoreComment(i);if(!e){throw i.error("@keyframes :global(...) is not allowed in pure mode")}else{e.remove()}}i.params=t[1];o=true}else if(s){i.params=s[0];o=false}else if(i.params&&!r&&!n.has(i.params)){i.params=":local("+i.params+")"}i.walkDecls((t=>{localizeDeclaration(t,{localAliasMap:n,options:e,global:o})}))}else if(/scope$/i.test(i.name)){if(i.params){const r=t?getIgnoreComment(i):undefined;if(r){r.remove()}i.params=i.params.split("to").map((t=>{const s=t.trim().slice(1,-1).trim();const o=localizeNode(s,e.mode,n);o.options=e;o.localAliasMap=n;if(a&&o.hasPureGlobals&&!r){throw i.error('Selector in at-rule"'+s+'" is not pure '+"(pure selectors must contain at least one local class or id)")}return`(${o.selector})`})).join(" to ")}i.nodes.forEach((t=>{if(t.type==="decl"){localizeDeclaration(t,{localAliasMap:n,options:e,global:r})}}))}else if(i.nodes){i.nodes.forEach((t=>{if(t.type==="decl"){localizeDeclaration(t,{localAliasMap:n,options:e,global:r})}}))}}));i.walkRules((r=>{if(r.parent&&r.parent.type==="atrule"&&/keyframes$/i.test(r.parent.name)){return}const i=localizeNode(r,e.mode,n);i.options=e;i.localAliasMap=n;const s=a?getIgnoreComment(r):undefined;const o=a&&!isPureSelector(i,r);if(o&&isNodeWithoutDeclarations(r)&&!s){throw r.error('Selector "'+r.selector+'" is not pure '+"(pure selectors must contain at least one local class or id)")}else if(s){s.remove()}if(t){r[u]=!o}r.selector=i.selector;if(r.nodes){r.nodes.forEach((e=>localizeDeclaration(e,i)))}}))}}}}};e.exports.postcss=true},133:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(128));var i=_interopRequireWildcard(r(60));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s=function parser(e){return new n["default"](e)};Object.assign(s,i);delete s.__esModule;var o=s;t["default"]=o;e.exports=t.default},553:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(478));var i=_interopRequireDefault(r(193));var s=_interopRequireDefault(r(692));var o=_interopRequireDefault(r(416));var a=_interopRequireDefault(r(114));var u=_interopRequireDefault(r(830));var c=_interopRequireDefault(r(54));var l=_interopRequireDefault(r(330));var f=_interopRequireWildcard(r(767));var p=_interopRequireDefault(r(627));var d=_interopRequireDefault(r(242));var h=_interopRequireDefault(r(426));var v=_interopRequireDefault(r(549));var _=_interopRequireWildcard(r(999));var y=_interopRequireWildcard(r(530));var g=_interopRequireWildcard(r(763));var b=r(362);var S,m;function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r0){var n=this.current.last;if(n){var i=this.convertWhitespaceNodesToSpace(r),s=i.space,o=i.rawSpace;if(o!==undefined){n.rawSpaceAfter+=o}n.spaces.after+=s}else{r.forEach((function(t){return e.newNode(t)}))}}return}var a=this.currToken;var u=undefined;if(t>this.position){u=this.parseWhitespaceEquivalentTokens(t)}var c;if(this.isNamedCombinator()){c=this.namedCombinator()}else if(this.currToken[_.FIELDS.TYPE]===y.combinator){c=new d["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[_.FIELDS.START_POS]});this.position++}else if(O[this.currToken[_.FIELDS.TYPE]]){}else if(!u){this.unexpected()}if(c){if(u){var l=this.convertWhitespaceNodesToSpace(u),f=l.space,p=l.rawSpace;c.spaces.before=f;c.rawSpaceBefore=p}}else{var h=this.convertWhitespaceNodesToSpace(u,true),v=h.space,g=h.rawSpace;if(!g){g=v}var b={};var S={spaces:{}};if(v.endsWith(" ")&&g.endsWith(" ")){b.before=v.slice(0,v.length-1);S.spaces.before=g.slice(0,g.length-1)}else if(v.startsWith(" ")&&g.startsWith(" ")){b.after=v.slice(1);S.spaces.after=g.slice(1)}else{S.value=g}c=new d["default"]({value:" ",source:getTokenSourceSpan(a,this.tokens[this.position-1]),sourceIndex:a[_.FIELDS.START_POS],spaces:b,raws:S})}if(this.currToken&&this.currToken[_.FIELDS.TYPE]===y.space){c.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(c)};e.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var e=new i["default"]({source:{start:tokenStart(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][_.FIELDS.START_POS]});this.current.parent.append(e);this.current=e;this.position++};e.comment=function comment(){var e=this.currToken;this.newNode(new o["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.error=function error(e,t){throw this.root.error(e,t)};e.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[_.FIELDS.START_POS]})};e.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[_.FIELDS.START_POS])};e.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[_.FIELDS.START_POS])};e.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[_.FIELDS.START_POS])};e.unexpectedPipe=function unexpectedPipe(){return this.error("Unexpected '|'.",this.currToken[_.FIELDS.START_POS])};e.namespace=function namespace(){var e=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[_.FIELDS.TYPE]===y.word){this.position++;return this.word(e)}else if(this.nextToken[_.FIELDS.TYPE]===y.asterisk){this.position++;return this.universal(e)}this.unexpectedPipe()};e.nesting=function nesting(){if(this.nextToken){var e=this.content(this.nextToken);if(e==="|"){this.position++;return}}var t=this.currToken;this.newNode(new h["default"]({value:this.content(),source:getTokenSource(t),sourceIndex:t[_.FIELDS.START_POS]}));this.position++};e.parentheses=function parentheses(){var e=this.current.last;var t=1;this.position++;if(e&&e.type===g.PSEUDO){var r=new i["default"]({source:{start:tokenStart(this.tokens[this.position])},sourceIndex:this.tokens[this.position][_.FIELDS.START_POS]});var n=this.current;e.append(r);this.current=r;while(this.position1&&e.nextToken&&e.nextToken[_.FIELDS.TYPE]===y.openParenthesis){e.error("Misplaced parenthesis.",{index:e.nextToken[_.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[_.FIELDS.START_POS])}};e.space=function space(){var e=this.content();if(this.position===0||this.prevToken[_.FIELDS.TYPE]===y.comma||this.prevToken[_.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return e.type==="comment"}))){this.spaces=this.optionalSpace(e);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[_.FIELDS.TYPE]===y.comma||this.nextToken[_.FIELDS.TYPE]===y.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(e);this.position++}else{this.combinator()}};e.string=function string(){var e=this.currToken;this.newNode(new c["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.universal=function universal(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}var r=this.currToken;this.newNode(new p["default"]({value:this.content(),source:getTokenSource(r),sourceIndex:r[_.FIELDS.START_POS]}),e);this.position++};e.splitWord=function splitWord(e,t){var r=this;var n=this.nextToken;var i=this.content();while(n&&~[y.dollar,y.caret,y.equals,y.word].indexOf(n[_.FIELDS.TYPE])){this.position++;var o=this.content();i+=o;if(o.lastIndexOf("\\")===o.length-1){var c=this.nextToken;if(c&&c[_.FIELDS.TYPE]===y.space){i+=this.requiredSpace(this.content(c));this.position++}}n=this.nextToken}var l=indexesOf(i,".").filter((function(e){var t=i[e-1]==="\\";var r=/^\d+\.\d+%$/.test(i);return!t&&!r}));var f=indexesOf(i,"#").filter((function(e){return i[e-1]!=="\\"}));var p=indexesOf(i,"#{");if(p.length){f=f.filter((function(e){return!~p.indexOf(e)}))}var d=(0,v["default"])(uniqs([0].concat(l,f)));d.forEach((function(n,o){var c=d[o+1]||i.length;var p=i.slice(n,c);if(o===0&&t){return t.call(r,p,d.length)}var h;var v=r.currToken;var y=v[_.FIELDS.START_POS]+d[o];var g=getSource(v[1],v[2]+n,v[3],v[2]+(c-1));if(~l.indexOf(n)){var b={value:p.slice(1),source:g,sourceIndex:y};h=new s["default"](unescapeProp(b,"value"))}else if(~f.indexOf(n)){var S={value:p.slice(1),source:g,sourceIndex:y};h=new a["default"](unescapeProp(S,"value"))}else{var m={value:p,source:g,sourceIndex:y};unescapeProp(m,"value");h=new u["default"](m)}r.newNode(h,e);e=null}));this.position++};e.word=function word(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}return this.splitWord(e)};e.loop=function loop(){while(this.position{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(553));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=function(){function Processor(e,t){this.func=e||function noop(){};this.funcRes=null;this.options=t}var e=Processor.prototype;e._shouldUpdateSelector=function _shouldUpdateSelector(e,t){if(t===void 0){t={}}var r=Object.assign({},this.options,t);if(r.updateSelector===false){return false}else{return typeof e!=="string"}};e._isLossy=function _isLossy(e){if(e===void 0){e={}}var t=Object.assign({},this.options,e);if(t.lossless===false){return true}else{return false}};e._root=function _root(e,t){if(t===void 0){t={}}var r=new n["default"](e,this._parseOptions(t));return r.root};e._parseOptions=function _parseOptions(e){return{lossy:this._isLossy(e)}};e._run=function _run(e,t){var r=this;if(t===void 0){t={}}return new Promise((function(n,i){try{var s=r._root(e,t);Promise.resolve(r.func(s)).then((function(n){var i=undefined;if(r._shouldUpdateSelector(e,t)){i=s.toString();e.selector=i}return{transform:n,root:s,string:i}})).then(n,i)}catch(e){i(e);return}}))};e._runSync=function _runSync(e,t){if(t===void 0){t={}}var r=this._root(e,t);var n=this.func(r);if(n&&typeof n.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var i=undefined;if(t.updateSelector&&typeof e!=="string"){i=r.toString();e.selector=i}return{transform:n,root:r,string:i}};e.ast=function ast(e,t){return this._run(e,t).then((function(e){return e.root}))};e.astSync=function astSync(e,t){return this._runSync(e,t).root};e.transform=function transform(e,t){return this._run(e,t).then((function(e){return e.transform}))};e.transformSync=function transformSync(e,t){return this._runSync(e,t).transform};e.process=function process(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))};e.processSync=function processSync(e,t){var r=this._runSync(e,t);return r.string||r.root.toString()};return Processor}();t["default"]=i;e.exports=t.default},767:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;t.unescapeValue=unescapeValue;var n=_interopRequireDefault(r(441));var i=_interopRequireDefault(r(255));var s=_interopRequireDefault(r(929));var o=r(763);var a;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r0&&!e.quoted&&r.before.length===0&&!(e.spaces.value&&e.spaces.value.after)){r.before=" "}return defaultAttrConcat(t,r)})))}t.push("]");t.push(this.rawSpaceAfter);return t.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var e=this.quoteMark;return e==="'"||e==='"'},set:function set(e){f()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(e){if(!this._constructed){this._quoteMark=e;return}if(this._quoteMark!==e){this._quoteMark=e;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(e){if(this._constructed){var t=unescapeValue(e),r=t.deprecatedUsage,n=t.unescaped,i=t.quoteMark;if(r){l()}if(n===this._value&&i===this._quoteMark){return}this._value=n;this._quoteMark=i;this._syncRawValue()}else{this._value=e}}},{key:"insensitive",get:function get(){return this._insensitive},set:function set(e){if(!e){this._insensitive=false;if(this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")){this.raws.insensitiveFlag=undefined}}this._insensitive=e}},{key:"attribute",get:function get(){return this._attribute},set:function set(e){this._handleEscapes("attribute",e);this._attribute=e}}]);return Attribute}(s["default"]);t["default"]=d;d.NO_QUOTE=null;d.SINGLE_QUOTE="'";d.DOUBLE_QUOTE='"';var h=(a={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},a[null]={isIdentifier:true},a);function defaultAttrConcat(e,t){return""+t.before+e+t.after}},692:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=r(362);var s=_interopRequireDefault(r(616));var o=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Combinator,e);function Combinator(t){var r;r=e.call(this,t)||this;r.type=i.COMBINATOR;return r}return Combinator}(n["default"]);t["default"]=s;e.exports=t.default},416:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Comment,e);function Comment(t){var r;r=e.call(this,t)||this;r.type=i.COMMENT;return r}return Comment}(n["default"]);t["default"]=s;e.exports=t.default},875:(e,t,r)=>{"use strict";t.__esModule=true;t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=_interopRequireDefault(r(767));var i=_interopRequireDefault(r(692));var s=_interopRequireDefault(r(242));var o=_interopRequireDefault(r(416));var a=_interopRequireDefault(r(114));var u=_interopRequireDefault(r(426));var c=_interopRequireDefault(r(330));var l=_interopRequireDefault(r(478));var f=_interopRequireDefault(r(193));var p=_interopRequireDefault(r(54));var d=_interopRequireDefault(r(830));var h=_interopRequireDefault(r(627));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var v=function attribute(e){return new n["default"](e)};t.attribute=v;var _=function className(e){return new i["default"](e)};t.className=_;var y=function combinator(e){return new s["default"](e)};t.combinator=y;var g=function comment(e){return new o["default"](e)};t.comment=g;var b=function id(e){return new a["default"](e)};t.id=b;var S=function nesting(e){return new u["default"](e)};t.nesting=S;var m=function pseudo(e){return new c["default"](e)};t.pseudo=m;var O=function root(e){return new l["default"](e)};t.root=O;var w=function selector(e){return new f["default"](e)};t.selector=w;var P=function string(e){return new p["default"](e)};t.string=P;var T=function tag(e){return new d["default"](e)};t.tag=T;var k=function universal(e){return new h["default"](e)};t.universal=k},300:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=_interopRequireWildcard(r(763));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _createForOfIteratorHelperLoose(e,t){var r=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&typeof e.length==="number"){if(r)e=r;var n=0;return function(){if(n>=e.length)return{done:true};return{done:false,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}function _arrayLikeToArray(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r=e){this.indexes[r]=t-1}}return this};t.removeAll=function removeAll(){for(var e=_createForOfIteratorHelperLoose(this.nodes),t;!(t=e()).done;){var r=t.value;r.parent=undefined}this.nodes=[];return this};t.empty=function empty(){return this.removeAll()};t.insertAfter=function insertAfter(e,t){t.parent=this;var r=this.index(e);this.nodes.splice(r+1,0,t);t.parent=this;var n;for(var i in this.indexes){n=this.indexes[i];if(r=r){this.indexes[i]=n+1}}return this};t._findChildAtPosition=function _findChildAtPosition(e,t){var r=undefined;this.each((function(n){if(n.atPosition){var i=n.atPosition(e,t);if(i){r=i;return false}}else if(n.isAtPosition(e,t)){r=n;return false}}));return r};t.atPosition=function atPosition(e,t){if(this.isAtPosition(e,t)){return this._findChildAtPosition(e,t)||this}else{return undefined}};t._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};t.each=function each(e){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var t=this.lastEach;this.indexes[t]=0;if(!this.length){return undefined}var r,n;while(this.indexes[t]{"use strict";t.__esModule=true;t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0;t.isContainer=isContainer;t.isIdentifier=void 0;t.isNamespace=isNamespace;t.isNesting=void 0;t.isNode=isNode;t.isPseudo=void 0;t.isPseudoClass=isPseudoClass;t.isPseudoElement=isPseudoElement;t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=void 0;var n=r(763);var i;var s=(i={},i[n.ATTRIBUTE]=true,i[n.CLASS]=true,i[n.COMBINATOR]=true,i[n.COMMENT]=true,i[n.ID]=true,i[n.NESTING]=true,i[n.PSEUDO]=true,i[n.ROOT]=true,i[n.SELECTOR]=true,i[n.STRING]=true,i[n.TAG]=true,i[n.UNIVERSAL]=true,i);function isNode(e){return typeof e==="object"&&s[e.type]}function isNodeType(e,t){return isNode(t)&&t.type===e}var o=isNodeType.bind(null,n.ATTRIBUTE);t.isAttribute=o;var a=isNodeType.bind(null,n.CLASS);t.isClassName=a;var u=isNodeType.bind(null,n.COMBINATOR);t.isCombinator=u;var c=isNodeType.bind(null,n.COMMENT);t.isComment=c;var l=isNodeType.bind(null,n.ID);t.isIdentifier=l;var f=isNodeType.bind(null,n.NESTING);t.isNesting=f;var p=isNodeType.bind(null,n.PSEUDO);t.isPseudo=p;var d=isNodeType.bind(null,n.ROOT);t.isRoot=d;var h=isNodeType.bind(null,n.SELECTOR);t.isSelector=h;var v=isNodeType.bind(null,n.STRING);t.isString=v;var _=isNodeType.bind(null,n.TAG);t.isTag=_;var y=isNodeType.bind(null,n.UNIVERSAL);t.isUniversal=y;function isPseudoElement(e){return p(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function isPseudoClass(e){return p(e)&&!isPseudoElement(e)}function isContainer(e){return!!(isNode(e)&&e.walk)}function isNamespace(e){return o(e)||_(e)}},114:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(ID,e);function ID(t){var r;r=e.call(this,t)||this;r.type=i.ID;return r}var t=ID.prototype;t.valueToString=function valueToString(){return"#"+e.prototype.valueToString.call(this)};return ID}(n["default"]);t["default"]=s;e.exports=t.default},60:(e,t,r)=>{"use strict";t.__esModule=true;var n=r(763);Object.keys(n).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;t[e]=n[e]}));var i=r(875);Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===i[e])return;t[e]=i[e]}));var s=r(93);Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;t[e]=s[e]}))},929:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=r(362);var s=_interopRequireDefault(r(616));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Nesting,e);function Nesting(t){var r;r=e.call(this,t)||this;r.type=i.NESTING;r.value="&";return r}return Nesting}(n["default"]);t["default"]=s;e.exports=t.default},616:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=r(362);function _defineProperties(e,t){for(var r=0;re){return false}if(this.source.end.linet){return false}if(this.source.end.line===e&&this.source.end.column{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(300));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Pseudo,e);function Pseudo(t){var r;r=e.call(this,t)||this;r.type=i.PSEUDO;return r}var t=Pseudo.prototype;t.toString=function toString(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),e,this.rawSpaceAfter].join("")};return Pseudo}(n["default"]);t["default"]=s;e.exports=t.default},478:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(300));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(300));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Selector,e);function Selector(t){var r;r=e.call(this,t)||this;r.type=i.SELECTOR;return r}return Selector}(n["default"]);t["default"]=s;e.exports=t.default},54:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(616));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(String,e);function String(t){var r;r=e.call(this,t)||this;r.type=i.STRING;return r}return String}(n["default"]);t["default"]=s;e.exports=t.default},830:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(929));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Tag,e);function Tag(t){var r;r=e.call(this,t)||this;r.type=i.TAG;return r}return Tag}(n["default"]);t["default"]=s;e.exports=t.default},763:(e,t)=>{"use strict";t.__esModule=true;t.UNIVERSAL=t.TAG=t.STRING=t.SELECTOR=t.ROOT=t.PSEUDO=t.NESTING=t.ID=t.COMMENT=t.COMBINATOR=t.CLASS=t.ATTRIBUTE=void 0;var r="tag";t.TAG=r;var n="string";t.STRING=n;var i="selector";t.SELECTOR=i;var s="root";t.ROOT=s;var o="pseudo";t.PSEUDO=o;var a="nesting";t.NESTING=a;var u="id";t.ID=u;var c="comment";t.COMMENT=c;var l="combinator";t.COMBINATOR=l;var f="class";t.CLASS=f;var p="attribute";t.ATTRIBUTE=p;var d="universal";t.UNIVERSAL=d},627:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(929));var i=r(763);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Universal,e);function Universal(t){var r;r=e.call(this,t)||this;r.type=i.UNIVERSAL;r.value="*";return r}return Universal}(n["default"]);t["default"]=s;e.exports=t.default},549:(e,t)=>{"use strict";t.__esModule=true;t["default"]=sortAscending;function sortAscending(e){return e.sort((function(e,t){return e-t}))}e.exports=t.default},530:(e,t)=>{"use strict";t.__esModule=true;t.word=t.tilde=t.tab=t.str=t.space=t.slash=t.singleQuote=t.semicolon=t.plus=t.pipe=t.openSquare=t.openParenthesis=t.newline=t.greaterThan=t.feed=t.equals=t.doubleQuote=t.dollar=t.cr=t.comment=t.comma=t.combinator=t.colon=t.closeSquare=t.closeParenthesis=t.caret=t.bang=t.backslash=t.at=t.asterisk=t.ampersand=void 0;var r=38;t.ampersand=r;var n=42;t.asterisk=n;var i=64;t.at=i;var s=44;t.comma=s;var o=58;t.colon=o;var a=59;t.semicolon=a;var u=40;t.openParenthesis=u;var c=41;t.closeParenthesis=c;var l=91;t.openSquare=l;var f=93;t.closeSquare=f;var p=36;t.dollar=p;var d=126;t.tilde=d;var h=94;t.caret=h;var v=43;t.plus=v;var _=61;t.equals=_;var y=124;t.pipe=y;var g=62;t.greaterThan=g;var b=32;t.space=b;var S=39;t.singleQuote=S;var m=34;t.doubleQuote=m;var O=47;t.slash=O;var w=33;t.bang=w;var P=92;t.backslash=P;var T=13;t.cr=T;var k=12;t.feed=k;var E=10;t.newline=E;var D=9;t.tab=D;var I=S;t.str=I;var L=-1;t.comment=L;var q=-2;t.word=q;var R=-3;t.combinator=R},999:(e,t,r)=>{"use strict";t.__esModule=true;t.FIELDS=void 0;t["default"]=tokenize;var n=_interopRequireWildcard(r(530));var i,s;function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var r=_getRequireWildcardCache(t);if(r&&r.has(e)){return r.get(e)}var n={};var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;if(o&&(o.get||o.set)){Object.defineProperty(n,s,o)}else{n[s]=e[s]}}}n["default"]=e;if(r){r.set(e,n)}return n}var o=(i={},i[n.tab]=true,i[n.newline]=true,i[n.cr]=true,i[n.feed]=true,i);var a=(s={},s[n.space]=true,s[n.tab]=true,s[n.newline]=true,s[n.cr]=true,s[n.feed]=true,s[n.ampersand]=true,s[n.asterisk]=true,s[n.bang]=true,s[n.comma]=true,s[n.colon]=true,s[n.semicolon]=true,s[n.openParenthesis]=true,s[n.closeParenthesis]=true,s[n.openSquare]=true,s[n.closeSquare]=true,s[n.singleQuote]=true,s[n.doubleQuote]=true,s[n.plus]=true,s[n.pipe]=true,s[n.tilde]=true,s[n.greaterThan]=true,s[n.equals]=true,s[n.dollar]=true,s[n.caret]=true,s[n.slash]=true,s);var u={};var c="0123456789abcdefABCDEF";for(var l=0;l0){b=a+_;S=g-y[_].length}else{b=a;S=o}O=n.comment;a=b;d=b;p=g-S}else if(l===n.slash){g=u;O=l;d=a;p=u-o;c=g+1}else{g=consumeWord(r,u);O=n.word;d=a;p=g-o}c=g+1;break}t.push([O,a,u-o,d,p,u,c]);if(S){o=S;S=null}u=c}return t}},184:(e,t)=>{"use strict";t.__esModule=true;t["default"]=ensureObject;function ensureObject(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0){var i=r.shift();if(!e[i]){e[i]={}}e=e[i]}}e.exports=t.default},735:(e,t)=>{"use strict";t.__esModule=true;t["default"]=getProp;function getProp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0){var i=r.shift();if(!e[i]){return undefined}e=e[i]}return e}e.exports=t.default},362:(e,t,r)=>{"use strict";t.__esModule=true;t.unesc=t.stripComments=t.getProp=t.ensureObject=void 0;var n=_interopRequireDefault(r(255));t.unesc=n["default"];var i=_interopRequireDefault(r(735));t.getProp=i["default"];var s=_interopRequireDefault(r(184));t.ensureObject=s["default"];var o=_interopRequireDefault(r(326));t.stripComments=o["default"];function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},326:(e,t)=>{"use strict";t.__esModule=true;t["default"]=stripComments;function stripComments(e){var t="";var r=e.indexOf("/*");var n=0;while(r>=0){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0){return t}n=i+2;r=e.indexOf("/*",n)}t=t+e.slice(n);return t}e.exports=t.default},255:(e,t)=>{"use strict";t.__esModule=true;t["default"]=unesc;function gobbleHex(e){var t=e.toLowerCase();var r="";var n=false;for(var i=0;i<6&&t[i]!==undefined;i++){var s=t.charCodeAt(i);var o=s>=97&&s<=102||s>=48&&s<=57;n=s===32;if(!o){break}r+=t[i]}if(r.length===0){return undefined}var a=parseInt(r,16);var u=a>=55296&&a<=57343;if(u||a===0||a>1114111){return["�",r.length+(n?1:0)]}return[String.fromCodePoint(a),r.length+(n?1:0)]}var r=/\\/;function unesc(e){var t=r.test(e);if(!t){return e}var n="";for(var i=0;i{e.exports=r(837).deprecate},903:e=>{"use strict";e.exports=require("next/dist/compiled/icss-utils")},45:e=>{"use strict";e.exports=require("next/dist/compiled/postcss-value-parser")},837:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var s=true;try{e[r](i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(756);module.exports=r})(); \ No newline at end of file diff --git a/packages/next/src/compiled/postcss-modules-scope/index.js b/packages/next/src/compiled/postcss-modules-scope/index.js index 50fde83a77ab..8ce3f23311fc 100644 --- a/packages/next/src/compiled/postcss-modules-scope/index.js +++ b/packages/next/src/compiled/postcss-modules-scope/index.js @@ -1,2 +1,2 @@ (()=>{var e={441:e=>{"use strict"; -/*! https://mths.be/cssesc v3.0.0 by @mathias */var t={};var r=t.hasOwnProperty;var n=function merge(e,t){if(!e){return t}var n={};for(var i in t){n[i]=r.call(e,i)?e[i]:t[i]}return n};var i=/[ -,\.\/:-@\[-\^`\{-~]/;var s=/[ -,\.\/:-@\[\]\^`\{-~]/;var o=/['"\\]/;var a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var u=function cssesc(e,t){t=n(t,cssesc.options);if(t.quotes!="single"&&t.quotes!="double"){t.quotes="single"}var r=t.quotes=="double"?'"':"'";var o=t.isIdentifier;var u=e.charAt(0);var c="";var f=0;var l=e.length;while(f126){if(h>=55296&&h<=56319&&f{"use strict";const n=r(475);const i=Object.prototype.hasOwnProperty;function getSingleLocalNamesForComposes(e){return e.nodes.map((t=>{if(t.type!=="selector"||t.nodes.length!==1){throw new Error(`composition is only allowed when selector is single :local class name not in "${e}"`)}t=t.nodes[0];if(t.type!=="pseudo"||t.value!==":local"||t.nodes.length!==1){throw new Error('composition is only allowed when selector is single :local class name not in "'+e+'", "'+t+'" is weird')}t=t.first;if(t.type!=="selector"||t.length!==1){throw new Error('composition is only allowed when selector is single :local class name not in "'+e+'", "'+t+'" is weird')}t=t.first;if(t.type!=="class"){throw new Error('composition is only allowed when selector is single :local class name not in "'+e+'", "'+t+'" is weird')}return t.value}))}const s="[\\x20\\t\\r\\n\\f]";const o=new RegExp("\\\\([\\da-f]{1,6}"+s+"?|("+s+")|.)","ig");function unescape(e){return e.replace(o,((e,t,r)=>{const n="0x"+t-65536;return n!==n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}))}const plugin=(e={})=>{const t=e&&e.generateScopedName||plugin.generateScopedName;const r=e&&e.generateExportEntry||plugin.generateExportEntry;const s=e&&e.exportGlobals;return{postcssPlugin:"postcss-modules-scope",Once(e,{rule:o}){const a=Object.create(null);function exportScopedName(n,i){const s=t(i?i:n,e.source.input.from,e.source.input.css);const o=r(i?i:n,s,e.source.input.from,e.source.input.css);const{key:u,value:c}=o;a[u]=a[u]||[];if(a[u].indexOf(c)<0){a[u].push(c)}return s}function localizeNode(e){switch(e.type){case"selector":e.nodes=e.map(localizeNode);return e;case"class":return n.className({value:exportScopedName(e.value,e.raws&&e.raws.value?e.raws.value:null)});case"id":{return n.id({value:exportScopedName(e.value,e.raws&&e.raws.value?e.raws.value:null)})}}throw new Error(`${e.type} ("${e}") is not allowed in a :local block`)}function traverseNode(e){switch(e.type){case"pseudo":if(e.value===":local"){if(e.nodes.length!==1){throw new Error('Unexpected comma (",") in :local block')}const t=localizeNode(e.first,e.spaces);t.first.spaces=e.spaces;const r=e.next();if(r&&r.type==="combinator"&&r.value===" "&&/\\[A-F0-9]{1,6}$/.test(t.last.value)){t.last.spaces.after=" "}e.replaceWith(t);return}case"root":case"selector":{e.each(traverseNode);break}case"id":case"class":if(s){a[e.value]=[e.value]}break}return e}const u={};e.walkRules(/^:import\(.+\)$/,(e=>{e.walkDecls((e=>{u[e.prop]=true}))}));e.walkRules((e=>{let t=n().astSync(e);e.selector=traverseNode(t.clone()).toString();e.walkDecls(/composes|compose-with/i,(e=>{const r=getSingleLocalNamesForComposes(t);const n=e.value.split(/\s+/);n.forEach((t=>{const n=/^global\(([^)]+)\)$/.exec(t);if(n){r.forEach((e=>{a[e].push(n[1])}))}else if(i.call(u,t)){r.forEach((e=>{a[e].push(t)}))}else if(i.call(a,t)){r.forEach((e=>{a[t].forEach((t=>{a[e].push(t)}))}))}else{throw e.error(`referenced class name "${t}" in ${e.prop} not found`)}}));e.remove()}));e.walkDecls((e=>{if(!/:local\s*\((.+?)\)/.test(e.value)){return}let t=e.value.split(/(,|'[^']*'|"[^"]*")/);t=t.map(((e,r)=>{if(r===0||t[r-1]===","){let t=e;const r=/:local\s*\((.+?)\)/.exec(e);if(r){const e=r.input;const n=r[0];const i=r[1];const s=exportScopedName(i);t=e.replace(n,s)}else{return e}return t}else{return e}}));e.value=t.join("")}))}));e.walkAtRules(/keyframes$/i,(e=>{const t=/^\s*:local\s*\((.+?)\)\s*$/.exec(e.params);if(!t){return}e.params=exportScopedName(t[1])}));const c=Object.keys(a);if(c.length>0){const t=o({selector:":export"});c.forEach((e=>t.append({prop:e,value:a[e].join(" "),raws:{before:"\n "}})));e.append(t)}}}};plugin.postcss=true;plugin.generateScopedName=function(e,t){const r=t.replace(/\.[^./\\]+$/,"").replace(/[\W_]+/g,"_").replace(/^_|_$/g,"");return`_${r}__${e}`.trim()};plugin.generateExportEntry=function(e,t){return{key:unescape(e),value:unescape(t)}};e.exports=plugin},475:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(605));var i=_interopRequireWildcard(r(534));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r["default"]=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s=function parser(e){return new n["default"](e)};Object.assign(s,i);delete s.__esModule;var o=s;t["default"]=o;e.exports=t.default},969:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(173));var i=_interopRequireDefault(r(589));var s=_interopRequireDefault(r(616));var o=_interopRequireDefault(r(42));var a=_interopRequireDefault(r(46));var u=_interopRequireDefault(r(308));var c=_interopRequireDefault(r(429));var f=_interopRequireDefault(r(794));var l=_interopRequireWildcard(r(382));var p=_interopRequireDefault(r(893));var h=_interopRequireDefault(r(884));var d=_interopRequireDefault(r(743));var v=_interopRequireDefault(r(393));var _=_interopRequireWildcard(r(452));var y=_interopRequireWildcard(r(210));var g=_interopRequireWildcard(r(342));var S=r(984);var b,w;function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r["default"]=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r0){var n=this.current.last;if(n){var i=this.convertWhitespaceNodesToSpace(r),s=i.space,o=i.rawSpace;if(o!==undefined){n.rawSpaceAfter+=o}n.spaces.after+=s}else{r.forEach((function(t){return e.newNode(t)}))}}return}var a=this.currToken;var u=undefined;if(t>this.position){u=this.parseWhitespaceEquivalentTokens(t)}var c;if(this.isNamedCombinator()){c=this.namedCombinator()}else if(this.currToken[_.FIELDS.TYPE]===y.combinator){c=new h["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[_.FIELDS.START_POS]});this.position++}else if(T[this.currToken[_.FIELDS.TYPE]]){}else if(!u){this.unexpected()}if(c){if(u){var f=this.convertWhitespaceNodesToSpace(u),l=f.space,p=f.rawSpace;c.spaces.before=l;c.rawSpaceBefore=p}}else{var d=this.convertWhitespaceNodesToSpace(u,true),v=d.space,g=d.rawSpace;if(!g){g=v}var S={};var b={spaces:{}};if(v.endsWith(" ")&&g.endsWith(" ")){S.before=v.slice(0,v.length-1);b.spaces.before=g.slice(0,g.length-1)}else if(v.startsWith(" ")&&g.startsWith(" ")){S.after=v.slice(1);b.spaces.after=g.slice(1)}else{b.value=g}c=new h["default"]({value:" ",source:getTokenSourceSpan(a,this.tokens[this.position-1]),sourceIndex:a[_.FIELDS.START_POS],spaces:S,raws:b})}if(this.currToken&&this.currToken[_.FIELDS.TYPE]===y.space){c.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(c)};e.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var e=new i["default"]({source:{start:tokenStart(this.tokens[this.position+1])}});this.current.parent.append(e);this.current=e;this.position++};e.comment=function comment(){var e=this.currToken;this.newNode(new o["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.error=function error(e,t){throw this.root.error(e,t)};e.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[_.FIELDS.START_POS]})};e.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[_.FIELDS.START_POS])};e.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[_.FIELDS.START_POS])};e.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[_.FIELDS.START_POS])};e.namespace=function namespace(){var e=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[_.FIELDS.TYPE]===y.word){this.position++;return this.word(e)}else if(this.nextToken[_.FIELDS.TYPE]===y.asterisk){this.position++;return this.universal(e)}};e.nesting=function nesting(){if(this.nextToken){var e=this.content(this.nextToken);if(e==="|"){this.position++;return}}var t=this.currToken;this.newNode(new d["default"]({value:this.content(),source:getTokenSource(t),sourceIndex:t[_.FIELDS.START_POS]}));this.position++};e.parentheses=function parentheses(){var e=this.current.last;var t=1;this.position++;if(e&&e.type===g.PSEUDO){var r=new i["default"]({source:{start:tokenStart(this.tokens[this.position-1])}});var n=this.current;e.append(r);this.current=r;while(this.position1&&e.nextToken&&e.nextToken[_.FIELDS.TYPE]===y.openParenthesis){e.error("Misplaced parenthesis.",{index:e.nextToken[_.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[_.FIELDS.START_POS])}};e.space=function space(){var e=this.content();if(this.position===0||this.prevToken[_.FIELDS.TYPE]===y.comma||this.prevToken[_.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return e.type==="comment"}))){this.spaces=this.optionalSpace(e);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[_.FIELDS.TYPE]===y.comma||this.nextToken[_.FIELDS.TYPE]===y.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(e);this.position++}else{this.combinator()}};e.string=function string(){var e=this.currToken;this.newNode(new c["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.universal=function universal(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}var r=this.currToken;this.newNode(new p["default"]({value:this.content(),source:getTokenSource(r),sourceIndex:r[_.FIELDS.START_POS]}),e);this.position++};e.splitWord=function splitWord(e,t){var r=this;var n=this.nextToken;var i=this.content();while(n&&~[y.dollar,y.caret,y.equals,y.word].indexOf(n[_.FIELDS.TYPE])){this.position++;var o=this.content();i+=o;if(o.lastIndexOf("\\")===o.length-1){var c=this.nextToken;if(c&&c[_.FIELDS.TYPE]===y.space){i+=this.requiredSpace(this.content(c));this.position++}}n=this.nextToken}var f=indexesOf(i,".").filter((function(e){var t=i[e-1]==="\\";var r=/^\d+\.\d+%$/.test(i);return!t&&!r}));var l=indexesOf(i,"#").filter((function(e){return i[e-1]!=="\\"}));var p=indexesOf(i,"#{");if(p.length){l=l.filter((function(e){return!~p.indexOf(e)}))}var h=(0,v["default"])(uniqs([0].concat(f,l)));h.forEach((function(n,o){var c=h[o+1]||i.length;var p=i.slice(n,c);if(o===0&&t){return t.call(r,p,h.length)}var d;var v=r.currToken;var y=v[_.FIELDS.START_POS]+h[o];var g=getSource(v[1],v[2]+n,v[3],v[2]+(c-1));if(~f.indexOf(n)){var S={value:p.slice(1),source:g,sourceIndex:y};d=new s["default"](unescapeProp(S,"value"))}else if(~l.indexOf(n)){var b={value:p.slice(1),source:g,sourceIndex:y};d=new a["default"](unescapeProp(b,"value"))}else{var w={value:p,source:g,sourceIndex:y};unescapeProp(w,"value");d=new u["default"](w)}r.newNode(d,e);e=null}));this.position++};e.word=function word(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}return this.splitWord(e)};e.loop=function loop(){while(this.position{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(969));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=function(){function Processor(e,t){this.func=e||function noop(){};this.funcRes=null;this.options=t}var e=Processor.prototype;e._shouldUpdateSelector=function _shouldUpdateSelector(e,t){if(t===void 0){t={}}var r=Object.assign({},this.options,t);if(r.updateSelector===false){return false}else{return typeof e!=="string"}};e._isLossy=function _isLossy(e){if(e===void 0){e={}}var t=Object.assign({},this.options,e);if(t.lossless===false){return true}else{return false}};e._root=function _root(e,t){if(t===void 0){t={}}var r=new n["default"](e,this._parseOptions(t));return r.root};e._parseOptions=function _parseOptions(e){return{lossy:this._isLossy(e)}};e._run=function _run(e,t){var r=this;if(t===void 0){t={}}return new Promise((function(n,i){try{var s=r._root(e,t);Promise.resolve(r.func(s)).then((function(n){var i=undefined;if(r._shouldUpdateSelector(e,t)){i=s.toString();e.selector=i}return{transform:n,root:s,string:i}})).then(n,i)}catch(e){i(e);return}}))};e._runSync=function _runSync(e,t){if(t===void 0){t={}}var r=this._root(e,t);var n=this.func(r);if(n&&typeof n.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var i=undefined;if(t.updateSelector&&typeof e!=="string"){i=r.toString();e.selector=i}return{transform:n,root:r,string:i}};e.ast=function ast(e,t){return this._run(e,t).then((function(e){return e.root}))};e.astSync=function astSync(e,t){return this._runSync(e,t).root};e.transform=function transform(e,t){return this._run(e,t).then((function(e){return e.transform}))};e.transformSync=function transformSync(e,t){return this._runSync(e,t).transform};e.process=function process(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))};e.processSync=function processSync(e,t){var r=this._runSync(e,t);return r.string||r.root.toString()};return Processor}();t["default"]=i;e.exports=t.default},382:(e,t,r)=>{"use strict";t.__esModule=true;t.unescapeValue=unescapeValue;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=_interopRequireDefault(r(30));var s=_interopRequireDefault(r(59));var o=r(342);var a;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r0&&!e.quoted&&r.before.length===0&&!(e.spaces.value&&e.spaces.value.after)){r.before=" "}return defaultAttrConcat(t,r)})))}t.push("]");t.push(this.rawSpaceAfter);return t.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var e=this.quoteMark;return e==="'"||e==='"'},set:function set(e){l()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(e){if(!this._constructed){this._quoteMark=e;return}if(this._quoteMark!==e){this._quoteMark=e;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(e){if(this._constructed){var t=unescapeValue(e),r=t.deprecatedUsage,n=t.unescaped,i=t.quoteMark;if(r){f()}if(n===this._value&&i===this._quoteMark){return}this._value=n;this._quoteMark=i;this._syncRawValue()}else{this._value=e}}},{key:"attribute",get:function get(){return this._attribute},set:function set(e){this._handleEscapes("attribute",e);this._attribute=e}}]);return Attribute}(s["default"]);t["default"]=h;h.NO_QUOTE=null;h.SINGLE_QUOTE="'";h.DOUBLE_QUOTE='"';var d=(a={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},a[null]={isIdentifier:true},a);function defaultAttrConcat(e,t){return""+t.before+e+t.after}},616:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=r(984);var s=_interopRequireDefault(r(503));var o=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Combinator,e);function Combinator(t){var r;r=e.call(this,t)||this;r.type=i.COMBINATOR;return r}return Combinator}(n["default"]);t["default"]=s;e.exports=t.default},42:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Comment,e);function Comment(t){var r;r=e.call(this,t)||this;r.type=i.COMMENT;return r}return Comment}(n["default"]);t["default"]=s;e.exports=t.default},280:(e,t,r)=>{"use strict";t.__esModule=true;t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=_interopRequireDefault(r(382));var i=_interopRequireDefault(r(616));var s=_interopRequireDefault(r(884));var o=_interopRequireDefault(r(42));var a=_interopRequireDefault(r(46));var u=_interopRequireDefault(r(743));var c=_interopRequireDefault(r(794));var f=_interopRequireDefault(r(173));var l=_interopRequireDefault(r(589));var p=_interopRequireDefault(r(429));var h=_interopRequireDefault(r(308));var d=_interopRequireDefault(r(893));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var v=function attribute(e){return new n["default"](e)};t.attribute=v;var _=function className(e){return new i["default"](e)};t.className=_;var y=function combinator(e){return new s["default"](e)};t.combinator=y;var g=function comment(e){return new o["default"](e)};t.comment=g;var S=function id(e){return new a["default"](e)};t.id=S;var b=function nesting(e){return new u["default"](e)};t.nesting=b;var w=function pseudo(e){return new c["default"](e)};t.pseudo=w;var T=function root(e){return new f["default"](e)};t.root=T;var m=function selector(e){return new l["default"](e)};t.selector=m;var O=function string(e){return new p["default"](e)};t.string=O;var k=function tag(e){return new h["default"](e)};t.tag=k;var P=function universal(e){return new d["default"](e)};t.universal=P},248:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=_interopRequireWildcard(r(342));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r["default"]=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _createForOfIteratorHelperLoose(e,t){var r;if(typeof Symbol==="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&typeof e.length==="number"){if(r)e=r;var n=0;return function(){if(n>=e.length)return{done:true};return{done:false,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r=e[Symbol.iterator]();return r.next.bind(r)}function _unsupportedIterableToArray(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}function _arrayLikeToArray(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r=e){this.indexes[r]=t-1}}return this};t.removeAll=function removeAll(){for(var e=_createForOfIteratorHelperLoose(this.nodes),t;!(t=e()).done;){var r=t.value;r.parent=undefined}this.nodes=[];return this};t.empty=function empty(){return this.removeAll()};t.insertAfter=function insertAfter(e,t){t.parent=this;var r=this.index(e);this.nodes.splice(r+1,0,t);t.parent=this;var n;for(var i in this.indexes){n=this.indexes[i];if(r<=n){this.indexes[i]=n+1}}return this};t.insertBefore=function insertBefore(e,t){t.parent=this;var r=this.index(e);this.nodes.splice(r,0,t);t.parent=this;var n;for(var i in this.indexes){n=this.indexes[i];if(n<=r){this.indexes[i]=n+1}}return this};t._findChildAtPosition=function _findChildAtPosition(e,t){var r=undefined;this.each((function(n){if(n.atPosition){var i=n.atPosition(e,t);if(i){r=i;return false}}else if(n.isAtPosition(e,t)){r=n;return false}}));return r};t.atPosition=function atPosition(e,t){if(this.isAtPosition(e,t)){return this._findChildAtPosition(e,t)||this}else{return undefined}};t._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};t.each=function each(e){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var t=this.lastEach;this.indexes[t]=0;if(!this.length){return undefined}var r,n;while(this.indexes[t]{"use strict";t.__esModule=true;t.isNode=isNode;t.isPseudoElement=isPseudoElement;t.isPseudoClass=isPseudoClass;t.isContainer=isContainer;t.isNamespace=isNamespace;t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=t.isPseudo=t.isNesting=t.isIdentifier=t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0;var n=r(342);var i;var s=(i={},i[n.ATTRIBUTE]=true,i[n.CLASS]=true,i[n.COMBINATOR]=true,i[n.COMMENT]=true,i[n.ID]=true,i[n.NESTING]=true,i[n.PSEUDO]=true,i[n.ROOT]=true,i[n.SELECTOR]=true,i[n.STRING]=true,i[n.TAG]=true,i[n.UNIVERSAL]=true,i);function isNode(e){return typeof e==="object"&&s[e.type]}function isNodeType(e,t){return isNode(t)&&t.type===e}var o=isNodeType.bind(null,n.ATTRIBUTE);t.isAttribute=o;var a=isNodeType.bind(null,n.CLASS);t.isClassName=a;var u=isNodeType.bind(null,n.COMBINATOR);t.isCombinator=u;var c=isNodeType.bind(null,n.COMMENT);t.isComment=c;var f=isNodeType.bind(null,n.ID);t.isIdentifier=f;var l=isNodeType.bind(null,n.NESTING);t.isNesting=l;var p=isNodeType.bind(null,n.PSEUDO);t.isPseudo=p;var h=isNodeType.bind(null,n.ROOT);t.isRoot=h;var d=isNodeType.bind(null,n.SELECTOR);t.isSelector=d;var v=isNodeType.bind(null,n.STRING);t.isString=v;var _=isNodeType.bind(null,n.TAG);t.isTag=_;var y=isNodeType.bind(null,n.UNIVERSAL);t.isUniversal=y;function isPseudoElement(e){return p(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function isPseudoClass(e){return p(e)&&!isPseudoElement(e)}function isContainer(e){return!!(isNode(e)&&e.walk)}function isNamespace(e){return o(e)||_(e)}},46:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(ID,e);function ID(t){var r;r=e.call(this,t)||this;r.type=i.ID;return r}var t=ID.prototype;t.valueToString=function valueToString(){return"#"+e.prototype.valueToString.call(this)};return ID}(n["default"]);t["default"]=s;e.exports=t.default},534:(e,t,r)=>{"use strict";t.__esModule=true;var n=r(342);Object.keys(n).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;t[e]=n[e]}));var i=r(280);Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===i[e])return;t[e]=i[e]}));var s=r(836);Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;t[e]=s[e]}))},59:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=r(984);var s=_interopRequireDefault(r(503));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Nesting,e);function Nesting(t){var r;r=e.call(this,t)||this;r.type=i.NESTING;r.value="&";return r}return Nesting}(n["default"]);t["default"]=s;e.exports=t.default},503:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=r(984);function _defineProperties(e,t){for(var r=0;re){return false}if(this.source.end.linet){return false}if(this.source.end.line===e&&this.source.end.column{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(248));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Pseudo,e);function Pseudo(t){var r;r=e.call(this,t)||this;r.type=i.PSEUDO;return r}var t=Pseudo.prototype;t.toString=function toString(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),e,this.rawSpaceAfter].join("")};return Pseudo}(n["default"]);t["default"]=s;e.exports=t.default},173:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(248));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(248));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Selector,e);function Selector(t){var r;r=e.call(this,t)||this;r.type=i.SELECTOR;return r}return Selector}(n["default"]);t["default"]=s;e.exports=t.default},429:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(String,e);function String(t){var r;r=e.call(this,t)||this;r.type=i.STRING;return r}return String}(n["default"]);t["default"]=s;e.exports=t.default},308:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(59));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Tag,e);function Tag(t){var r;r=e.call(this,t)||this;r.type=i.TAG;return r}return Tag}(n["default"]);t["default"]=s;e.exports=t.default},342:(e,t)=>{"use strict";t.__esModule=true;t.UNIVERSAL=t.ATTRIBUTE=t.CLASS=t.COMBINATOR=t.COMMENT=t.ID=t.NESTING=t.PSEUDO=t.ROOT=t.SELECTOR=t.STRING=t.TAG=void 0;var r="tag";t.TAG=r;var n="string";t.STRING=n;var i="selector";t.SELECTOR=i;var s="root";t.ROOT=s;var o="pseudo";t.PSEUDO=o;var a="nesting";t.NESTING=a;var u="id";t.ID=u;var c="comment";t.COMMENT=c;var f="combinator";t.COMBINATOR=f;var l="class";t.CLASS=l;var p="attribute";t.ATTRIBUTE=p;var h="universal";t.UNIVERSAL=h},893:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(59));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Universal,e);function Universal(t){var r;r=e.call(this,t)||this;r.type=i.UNIVERSAL;r.value="*";return r}return Universal}(n["default"]);t["default"]=s;e.exports=t.default},393:(e,t)=>{"use strict";t.__esModule=true;t["default"]=sortAscending;function sortAscending(e){return e.sort((function(e,t){return e-t}))}e.exports=t.default},210:(e,t)=>{"use strict";t.__esModule=true;t.combinator=t.word=t.comment=t.str=t.tab=t.newline=t.feed=t.cr=t.backslash=t.bang=t.slash=t.doubleQuote=t.singleQuote=t.space=t.greaterThan=t.pipe=t.equals=t.plus=t.caret=t.tilde=t.dollar=t.closeSquare=t.openSquare=t.closeParenthesis=t.openParenthesis=t.semicolon=t.colon=t.comma=t.at=t.asterisk=t.ampersand=void 0;var r=38;t.ampersand=r;var n=42;t.asterisk=n;var i=64;t.at=i;var s=44;t.comma=s;var o=58;t.colon=o;var a=59;t.semicolon=a;var u=40;t.openParenthesis=u;var c=41;t.closeParenthesis=c;var f=91;t.openSquare=f;var l=93;t.closeSquare=l;var p=36;t.dollar=p;var h=126;t.tilde=h;var d=94;t.caret=d;var v=43;t.plus=v;var _=61;t.equals=_;var y=124;t.pipe=y;var g=62;t.greaterThan=g;var S=32;t.space=S;var b=39;t.singleQuote=b;var w=34;t.doubleQuote=w;var T=47;t.slash=T;var m=33;t.bang=m;var O=92;t.backslash=O;var k=13;t.cr=k;var P=12;t.feed=P;var E=10;t.newline=E;var D=9;t.tab=D;var q=b;t.str=q;var L=-1;t.comment=L;var R=-2;t.word=R;var I=-3;t.combinator=I},452:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=tokenize;t.FIELDS=void 0;var n=_interopRequireWildcard(r(210));var i,s;function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r["default"]=e;if(t){t.set(e,r)}return r}var o=(i={},i[n.tab]=true,i[n.newline]=true,i[n.cr]=true,i[n.feed]=true,i);var a=(s={},s[n.space]=true,s[n.tab]=true,s[n.newline]=true,s[n.cr]=true,s[n.feed]=true,s[n.ampersand]=true,s[n.asterisk]=true,s[n.bang]=true,s[n.comma]=true,s[n.colon]=true,s[n.semicolon]=true,s[n.openParenthesis]=true,s[n.closeParenthesis]=true,s[n.openSquare]=true,s[n.closeSquare]=true,s[n.singleQuote]=true,s[n.doubleQuote]=true,s[n.plus]=true,s[n.pipe]=true,s[n.tilde]=true,s[n.greaterThan]=true,s[n.equals]=true,s[n.dollar]=true,s[n.caret]=true,s[n.slash]=true,s);var u={};var c="0123456789abcdefABCDEF";for(var f=0;f0){S=a+_;b=g-y[_].length}else{S=a;b=o}T=n.comment;a=S;h=S;p=g-b}else if(f===n.slash){g=u;T=f;h=a;p=u-o;c=g+1}else{g=consumeWord(r,u);T=n.word;h=a;p=g-o}c=g+1;break}t.push([T,a,u-o,h,p,u,c]);if(b){o=b;b=null}u=c}return t}},93:(e,t)=>{"use strict";t.__esModule=true;t["default"]=ensureObject;function ensureObject(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0){var i=r.shift();if(!e[i]){e[i]={}}e=e[i]}}e.exports=t.default},533:(e,t)=>{"use strict";t.__esModule=true;t["default"]=getProp;function getProp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0){var i=r.shift();if(!e[i]){return undefined}e=e[i]}return e}e.exports=t.default},984:(e,t,r)=>{"use strict";t.__esModule=true;t.stripComments=t.ensureObject=t.getProp=t.unesc=void 0;var n=_interopRequireDefault(r(30));t.unesc=n["default"];var i=_interopRequireDefault(r(533));t.getProp=i["default"];var s=_interopRequireDefault(r(93));t.ensureObject=s["default"];var o=_interopRequireDefault(r(386));t.stripComments=o["default"];function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},386:(e,t)=>{"use strict";t.__esModule=true;t["default"]=stripComments;function stripComments(e){var t="";var r=e.indexOf("/*");var n=0;while(r>=0){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0){return t}n=i+2;r=e.indexOf("/*",n)}t=t+e.slice(n);return t}e.exports=t.default},30:(e,t)=>{"use strict";t.__esModule=true;t["default"]=unesc;function gobbleHex(e){var t=e.toLowerCase();var r="";var n=false;for(var i=0;i<6&&t[i]!==undefined;i++){var s=t.charCodeAt(i);var o=s>=97&&s<=102||s>=48&&s<=57;n=s===32;if(!o){break}r+=t[i]}if(r.length===0){return undefined}var a=parseInt(r,16);var u=a>=55296&&a<=57343;if(u||a===0||a>1114111){return["�",r.length+(n?1:0)]}return[String.fromCodePoint(a),r.length+(n?1:0)]}var r=/\\/;function unesc(e){var t=r.test(e);if(!t){return e}var n="";for(var i=0;i{e.exports=r(837).deprecate},837:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var s=true;try{e[r](i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(361);module.exports=r})(); \ No newline at end of file +/*! https://mths.be/cssesc v3.0.0 by @mathias */var t={};var r=t.hasOwnProperty;var n=function merge(e,t){if(!e){return t}var n={};for(var i in t){n[i]=r.call(e,i)?e[i]:t[i]}return n};var i=/[ -,\.\/:-@\[-\^`\{-~]/;var s=/[ -,\.\/:-@\[\]\^`\{-~]/;var o=/['"\\]/;var a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var u=function cssesc(e,t){t=n(t,cssesc.options);if(t.quotes!="single"&&t.quotes!="double"){t.quotes="single"}var r=t.quotes=="double"?'"':"'";var o=t.isIdentifier;var u=e.charAt(0);var c="";var f=0;var l=e.length;while(f126){if(h>=55296&&h<=56319&&f{"use strict";const n=r(475);const i=Object.prototype.hasOwnProperty;function getSingleLocalNamesForComposes(e){return e.nodes.map((t=>{if(t.type!=="selector"||t.nodes.length!==1){throw new Error(`composition is only allowed when selector is single :local class name not in "${e}"`)}t=t.nodes[0];if(t.type!=="pseudo"||t.value!==":local"||t.nodes.length!==1){throw new Error('composition is only allowed when selector is single :local class name not in "'+e+'", "'+t+'" is weird')}t=t.first;if(t.type!=="selector"||t.length!==1){throw new Error('composition is only allowed when selector is single :local class name not in "'+e+'", "'+t+'" is weird')}t=t.first;if(t.type!=="class"){throw new Error('composition is only allowed when selector is single :local class name not in "'+e+'", "'+t+'" is weird')}return t.value}))}const s="[\\x20\\t\\r\\n\\f]";const o=new RegExp("\\\\([\\da-f]{1,6}"+s+"?|("+s+")|.)","ig");function unescape(e){return e.replace(o,((e,t,r)=>{const n="0x"+t-65536;return n!==n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}))}const plugin=(e={})=>{const t=e&&e.generateScopedName||plugin.generateScopedName;const r=e&&e.generateExportEntry||plugin.generateExportEntry;const s=e&&e.exportGlobals;return{postcssPlugin:"postcss-modules-scope",Once(e,{rule:o}){const a=Object.create(null);function exportScopedName(n,i){const s=t(i?i:n,e.source.input.from,e.source.input.css);const o=r(i?i:n,s,e.source.input.from,e.source.input.css);const{key:u,value:c}=o;a[u]=a[u]||[];if(a[u].indexOf(c)<0){a[u].push(c)}return s}function localizeNode(e){switch(e.type){case"selector":e.nodes=e.map(localizeNode);return e;case"class":return n.className({value:exportScopedName(e.value,e.raws&&e.raws.value?e.raws.value:null)});case"id":{return n.id({value:exportScopedName(e.value,e.raws&&e.raws.value?e.raws.value:null)})}}throw new Error(`${e.type} ("${e}") is not allowed in a :local block`)}function traverseNode(e){switch(e.type){case"pseudo":if(e.value===":local"){if(e.nodes.length!==1){throw new Error('Unexpected comma (",") in :local block')}const t=localizeNode(e.first,e.spaces);t.first.spaces=e.spaces;const r=e.next();if(r&&r.type==="combinator"&&r.value===" "&&/\\[A-F0-9]{1,6}$/.test(t.last.value)){t.last.spaces.after=" "}e.replaceWith(t);return}case"root":case"selector":{e.each(traverseNode);break}case"id":case"class":if(s){a[e.value]=[e.value]}break}return e}const u={};e.walkRules(/^:import\(.+\)$/,(e=>{e.walkDecls((e=>{u[e.prop]=true}))}));e.walkRules((e=>{let t=n().astSync(e);e.selector=traverseNode(t.clone()).toString();e.walkDecls(/composes|compose-with/i,(e=>{const r=getSingleLocalNamesForComposes(t);const n=e.value.split(/\s+/);n.forEach((t=>{const n=/^global\(([^)]+)\)$/.exec(t);if(n){r.forEach((e=>{a[e].push(n[1])}))}else if(i.call(u,t)){r.forEach((e=>{a[e].push(t)}))}else if(i.call(a,t)){r.forEach((e=>{a[t].forEach((t=>{a[e].push(t)}))}))}else{throw e.error(`referenced class name "${t}" in ${e.prop} not found`)}}));e.remove()}));e.walkDecls((e=>{if(!/:local\s*\((.+?)\)/.test(e.value)){return}let t=e.value.split(/(,|'[^']*'|"[^"]*")/);t=t.map(((e,r)=>{if(r===0||t[r-1]===","){let t=e;const r=/:local\s*\((.+?)\)/.exec(e);if(r){const e=r.input;const n=r[0];const i=r[1];const s=exportScopedName(i);t=e.replace(n,s)}else{return e}return t}else{return e}}));e.value=t.join("")}))}));e.walkAtRules(/keyframes$/i,(e=>{const t=/^\s*:local\s*\((.+?)\)\s*$/.exec(e.params);if(!t){return}e.params=exportScopedName(t[1])}));const c=Object.keys(a);if(c.length>0){const t=o({selector:":export"});c.forEach((e=>t.append({prop:e,value:a[e].join(" "),raws:{before:"\n "}})));e.append(t)}}}};plugin.postcss=true;plugin.generateScopedName=function(e,t){const r=t.replace(/\.[^./\\]+$/,"").replace(/[\W_]+/g,"_").replace(/^_|_$/g,"");return`_${r}__${e}`.trim()};plugin.generateExportEntry=function(e,t){return{key:unescape(e),value:unescape(t)}};e.exports=plugin},475:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(605));var i=_interopRequireWildcard(r(534));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r["default"]=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s=function parser(e){return new n["default"](e)};Object.assign(s,i);delete s.__esModule;var o=s;t["default"]=o;e.exports=t.default},969:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(173));var i=_interopRequireDefault(r(589));var s=_interopRequireDefault(r(616));var o=_interopRequireDefault(r(42));var a=_interopRequireDefault(r(46));var u=_interopRequireDefault(r(308));var c=_interopRequireDefault(r(429));var f=_interopRequireDefault(r(794));var l=_interopRequireWildcard(r(382));var p=_interopRequireDefault(r(893));var h=_interopRequireDefault(r(884));var d=_interopRequireDefault(r(743));var v=_interopRequireDefault(r(393));var _=_interopRequireWildcard(r(452));var y=_interopRequireWildcard(r(210));var g=_interopRequireWildcard(r(342));var S=r(984);var b,w;function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r["default"]=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r0){var n=this.current.last;if(n){var i=this.convertWhitespaceNodesToSpace(r),s=i.space,o=i.rawSpace;if(o!==undefined){n.rawSpaceAfter+=o}n.spaces.after+=s}else{r.forEach((function(t){return e.newNode(t)}))}}return}var a=this.currToken;var u=undefined;if(t>this.position){u=this.parseWhitespaceEquivalentTokens(t)}var c;if(this.isNamedCombinator()){c=this.namedCombinator()}else if(this.currToken[_.FIELDS.TYPE]===y.combinator){c=new h["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[_.FIELDS.START_POS]});this.position++}else if(T[this.currToken[_.FIELDS.TYPE]]){}else if(!u){this.unexpected()}if(c){if(u){var f=this.convertWhitespaceNodesToSpace(u),l=f.space,p=f.rawSpace;c.spaces.before=l;c.rawSpaceBefore=p}}else{var d=this.convertWhitespaceNodesToSpace(u,true),v=d.space,g=d.rawSpace;if(!g){g=v}var S={};var b={spaces:{}};if(v.endsWith(" ")&&g.endsWith(" ")){S.before=v.slice(0,v.length-1);b.spaces.before=g.slice(0,g.length-1)}else if(v.startsWith(" ")&&g.startsWith(" ")){S.after=v.slice(1);b.spaces.after=g.slice(1)}else{b.value=g}c=new h["default"]({value:" ",source:getTokenSourceSpan(a,this.tokens[this.position-1]),sourceIndex:a[_.FIELDS.START_POS],spaces:S,raws:b})}if(this.currToken&&this.currToken[_.FIELDS.TYPE]===y.space){c.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(c)};e.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var e=new i["default"]({source:{start:tokenStart(this.tokens[this.position+1])}});this.current.parent.append(e);this.current=e;this.position++};e.comment=function comment(){var e=this.currToken;this.newNode(new o["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.error=function error(e,t){throw this.root.error(e,t)};e.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[_.FIELDS.START_POS]})};e.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[_.FIELDS.START_POS])};e.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[_.FIELDS.START_POS])};e.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[_.FIELDS.START_POS])};e.namespace=function namespace(){var e=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[_.FIELDS.TYPE]===y.word){this.position++;return this.word(e)}else if(this.nextToken[_.FIELDS.TYPE]===y.asterisk){this.position++;return this.universal(e)}};e.nesting=function nesting(){if(this.nextToken){var e=this.content(this.nextToken);if(e==="|"){this.position++;return}}var t=this.currToken;this.newNode(new d["default"]({value:this.content(),source:getTokenSource(t),sourceIndex:t[_.FIELDS.START_POS]}));this.position++};e.parentheses=function parentheses(){var e=this.current.last;var t=1;this.position++;if(e&&e.type===g.PSEUDO){var r=new i["default"]({source:{start:tokenStart(this.tokens[this.position-1])}});var n=this.current;e.append(r);this.current=r;while(this.position1&&e.nextToken&&e.nextToken[_.FIELDS.TYPE]===y.openParenthesis){e.error("Misplaced parenthesis.",{index:e.nextToken[_.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[_.FIELDS.START_POS])}};e.space=function space(){var e=this.content();if(this.position===0||this.prevToken[_.FIELDS.TYPE]===y.comma||this.prevToken[_.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return e.type==="comment"}))){this.spaces=this.optionalSpace(e);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[_.FIELDS.TYPE]===y.comma||this.nextToken[_.FIELDS.TYPE]===y.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(e);this.position++}else{this.combinator()}};e.string=function string(){var e=this.currToken;this.newNode(new c["default"]({value:this.content(),source:getTokenSource(e),sourceIndex:e[_.FIELDS.START_POS]}));this.position++};e.universal=function universal(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}var r=this.currToken;this.newNode(new p["default"]({value:this.content(),source:getTokenSource(r),sourceIndex:r[_.FIELDS.START_POS]}),e);this.position++};e.splitWord=function splitWord(e,t){var r=this;var n=this.nextToken;var i=this.content();while(n&&~[y.dollar,y.caret,y.equals,y.word].indexOf(n[_.FIELDS.TYPE])){this.position++;var o=this.content();i+=o;if(o.lastIndexOf("\\")===o.length-1){var c=this.nextToken;if(c&&c[_.FIELDS.TYPE]===y.space){i+=this.requiredSpace(this.content(c));this.position++}}n=this.nextToken}var f=indexesOf(i,".").filter((function(e){var t=i[e-1]==="\\";var r=/^\d+\.\d+%$/.test(i);return!t&&!r}));var l=indexesOf(i,"#").filter((function(e){return i[e-1]!=="\\"}));var p=indexesOf(i,"#{");if(p.length){l=l.filter((function(e){return!~p.indexOf(e)}))}var h=(0,v["default"])(uniqs([0].concat(f,l)));h.forEach((function(n,o){var c=h[o+1]||i.length;var p=i.slice(n,c);if(o===0&&t){return t.call(r,p,h.length)}var d;var v=r.currToken;var y=v[_.FIELDS.START_POS]+h[o];var g=getSource(v[1],v[2]+n,v[3],v[2]+(c-1));if(~f.indexOf(n)){var S={value:p.slice(1),source:g,sourceIndex:y};d=new s["default"](unescapeProp(S,"value"))}else if(~l.indexOf(n)){var b={value:p.slice(1),source:g,sourceIndex:y};d=new a["default"](unescapeProp(b,"value"))}else{var w={value:p,source:g,sourceIndex:y};unescapeProp(w,"value");d=new u["default"](w)}r.newNode(d,e);e=null}));this.position++};e.word=function word(e){var t=this.nextToken;if(t&&this.content(t)==="|"){this.position++;return this.namespace()}return this.splitWord(e)};e.loop=function loop(){while(this.position{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(969));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=function(){function Processor(e,t){this.func=e||function noop(){};this.funcRes=null;this.options=t}var e=Processor.prototype;e._shouldUpdateSelector=function _shouldUpdateSelector(e,t){if(t===void 0){t={}}var r=Object.assign({},this.options,t);if(r.updateSelector===false){return false}else{return typeof e!=="string"}};e._isLossy=function _isLossy(e){if(e===void 0){e={}}var t=Object.assign({},this.options,e);if(t.lossless===false){return true}else{return false}};e._root=function _root(e,t){if(t===void 0){t={}}var r=new n["default"](e,this._parseOptions(t));return r.root};e._parseOptions=function _parseOptions(e){return{lossy:this._isLossy(e)}};e._run=function _run(e,t){var r=this;if(t===void 0){t={}}return new Promise((function(n,i){try{var s=r._root(e,t);Promise.resolve(r.func(s)).then((function(n){var i=undefined;if(r._shouldUpdateSelector(e,t)){i=s.toString();e.selector=i}return{transform:n,root:s,string:i}})).then(n,i)}catch(e){i(e);return}}))};e._runSync=function _runSync(e,t){if(t===void 0){t={}}var r=this._root(e,t);var n=this.func(r);if(n&&typeof n.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var i=undefined;if(t.updateSelector&&typeof e!=="string"){i=r.toString();e.selector=i}return{transform:n,root:r,string:i}};e.ast=function ast(e,t){return this._run(e,t).then((function(e){return e.root}))};e.astSync=function astSync(e,t){return this._runSync(e,t).root};e.transform=function transform(e,t){return this._run(e,t).then((function(e){return e.transform}))};e.transformSync=function transformSync(e,t){return this._runSync(e,t).transform};e.process=function process(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))};e.processSync=function processSync(e,t){var r=this._runSync(e,t);return r.string||r.root.toString()};return Processor}();t["default"]=i;e.exports=t.default},382:(e,t,r)=>{"use strict";t.__esModule=true;t.unescapeValue=unescapeValue;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=_interopRequireDefault(r(30));var s=_interopRequireDefault(r(59));var o=r(342);var a;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r0&&!e.quoted&&r.before.length===0&&!(e.spaces.value&&e.spaces.value.after)){r.before=" "}return defaultAttrConcat(t,r)})))}t.push("]");t.push(this.rawSpaceAfter);return t.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var e=this.quoteMark;return e==="'"||e==='"'},set:function set(e){l()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(e){if(!this._constructed){this._quoteMark=e;return}if(this._quoteMark!==e){this._quoteMark=e;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(e){if(this._constructed){var t=unescapeValue(e),r=t.deprecatedUsage,n=t.unescaped,i=t.quoteMark;if(r){f()}if(n===this._value&&i===this._quoteMark){return}this._value=n;this._quoteMark=i;this._syncRawValue()}else{this._value=e}}},{key:"attribute",get:function get(){return this._attribute},set:function set(e){this._handleEscapes("attribute",e);this._attribute=e}}]);return Attribute}(s["default"]);t["default"]=h;h.NO_QUOTE=null;h.SINGLE_QUOTE="'";h.DOUBLE_QUOTE='"';var d=(a={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},a[null]={isIdentifier:true},a);function defaultAttrConcat(e,t){return""+t.before+e+t.after}},616:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=r(984);var s=_interopRequireDefault(r(503));var o=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Combinator,e);function Combinator(t){var r;r=e.call(this,t)||this;r.type=i.COMBINATOR;return r}return Combinator}(n["default"]);t["default"]=s;e.exports=t.default},42:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Comment,e);function Comment(t){var r;r=e.call(this,t)||this;r.type=i.COMMENT;return r}return Comment}(n["default"]);t["default"]=s;e.exports=t.default},280:(e,t,r)=>{"use strict";t.__esModule=true;t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=_interopRequireDefault(r(382));var i=_interopRequireDefault(r(616));var s=_interopRequireDefault(r(884));var o=_interopRequireDefault(r(42));var a=_interopRequireDefault(r(46));var u=_interopRequireDefault(r(743));var c=_interopRequireDefault(r(794));var f=_interopRequireDefault(r(173));var l=_interopRequireDefault(r(589));var p=_interopRequireDefault(r(429));var h=_interopRequireDefault(r(308));var d=_interopRequireDefault(r(893));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var v=function attribute(e){return new n["default"](e)};t.attribute=v;var _=function className(e){return new i["default"](e)};t.className=_;var y=function combinator(e){return new s["default"](e)};t.combinator=y;var g=function comment(e){return new o["default"](e)};t.comment=g;var S=function id(e){return new a["default"](e)};t.id=S;var b=function nesting(e){return new u["default"](e)};t.nesting=b;var w=function pseudo(e){return new c["default"](e)};t.pseudo=w;var T=function root(e){return new f["default"](e)};t.root=T;var m=function selector(e){return new l["default"](e)};t.selector=m;var O=function string(e){return new p["default"](e)};t.string=O;var k=function tag(e){return new h["default"](e)};t.tag=k;var P=function universal(e){return new d["default"](e)};t.universal=P},248:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=_interopRequireWildcard(r(342));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r["default"]=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _createForOfIteratorHelperLoose(e,t){var r;if(typeof Symbol==="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&typeof e.length==="number"){if(r)e=r;var n=0;return function(){if(n>=e.length)return{done:true};return{done:false,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r=e[Symbol.iterator]();return r.next.bind(r)}function _unsupportedIterableToArray(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}function _arrayLikeToArray(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r=e){this.indexes[r]=t-1}}return this};t.removeAll=function removeAll(){for(var e=_createForOfIteratorHelperLoose(this.nodes),t;!(t=e()).done;){var r=t.value;r.parent=undefined}this.nodes=[];return this};t.empty=function empty(){return this.removeAll()};t.insertAfter=function insertAfter(e,t){t.parent=this;var r=this.index(e);this.nodes.splice(r+1,0,t);t.parent=this;var n;for(var i in this.indexes){n=this.indexes[i];if(r<=n){this.indexes[i]=n+1}}return this};t.insertBefore=function insertBefore(e,t){t.parent=this;var r=this.index(e);this.nodes.splice(r,0,t);t.parent=this;var n;for(var i in this.indexes){n=this.indexes[i];if(n<=r){this.indexes[i]=n+1}}return this};t._findChildAtPosition=function _findChildAtPosition(e,t){var r=undefined;this.each((function(n){if(n.atPosition){var i=n.atPosition(e,t);if(i){r=i;return false}}else if(n.isAtPosition(e,t)){r=n;return false}}));return r};t.atPosition=function atPosition(e,t){if(this.isAtPosition(e,t)){return this._findChildAtPosition(e,t)||this}else{return undefined}};t._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};t.each=function each(e){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var t=this.lastEach;this.indexes[t]=0;if(!this.length){return undefined}var r,n;while(this.indexes[t]{"use strict";t.__esModule=true;t.isNode=isNode;t.isPseudoElement=isPseudoElement;t.isPseudoClass=isPseudoClass;t.isContainer=isContainer;t.isNamespace=isNamespace;t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=t.isPseudo=t.isNesting=t.isIdentifier=t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0;var n=r(342);var i;var s=(i={},i[n.ATTRIBUTE]=true,i[n.CLASS]=true,i[n.COMBINATOR]=true,i[n.COMMENT]=true,i[n.ID]=true,i[n.NESTING]=true,i[n.PSEUDO]=true,i[n.ROOT]=true,i[n.SELECTOR]=true,i[n.STRING]=true,i[n.TAG]=true,i[n.UNIVERSAL]=true,i);function isNode(e){return typeof e==="object"&&s[e.type]}function isNodeType(e,t){return isNode(t)&&t.type===e}var o=isNodeType.bind(null,n.ATTRIBUTE);t.isAttribute=o;var a=isNodeType.bind(null,n.CLASS);t.isClassName=a;var u=isNodeType.bind(null,n.COMBINATOR);t.isCombinator=u;var c=isNodeType.bind(null,n.COMMENT);t.isComment=c;var f=isNodeType.bind(null,n.ID);t.isIdentifier=f;var l=isNodeType.bind(null,n.NESTING);t.isNesting=l;var p=isNodeType.bind(null,n.PSEUDO);t.isPseudo=p;var h=isNodeType.bind(null,n.ROOT);t.isRoot=h;var d=isNodeType.bind(null,n.SELECTOR);t.isSelector=d;var v=isNodeType.bind(null,n.STRING);t.isString=v;var _=isNodeType.bind(null,n.TAG);t.isTag=_;var y=isNodeType.bind(null,n.UNIVERSAL);t.isUniversal=y;function isPseudoElement(e){return p(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function isPseudoClass(e){return p(e)&&!isPseudoElement(e)}function isContainer(e){return!!(isNode(e)&&e.walk)}function isNamespace(e){return o(e)||_(e)}},46:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(ID,e);function ID(t){var r;r=e.call(this,t)||this;r.type=i.ID;return r}var t=ID.prototype;t.valueToString=function valueToString(){return"#"+e.prototype.valueToString.call(this)};return ID}(n["default"]);t["default"]=s;e.exports=t.default},534:(e,t,r)=>{"use strict";t.__esModule=true;var n=r(342);Object.keys(n).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;t[e]=n[e]}));var i=r(280);Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===i[e])return;t[e]=i[e]}));var s=r(836);Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;t[e]=s[e]}))},59:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(441));var i=r(984);var s=_interopRequireDefault(r(503));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Nesting,e);function Nesting(t){var r;r=e.call(this,t)||this;r.type=i.NESTING;r.value="&";return r}return Nesting}(n["default"]);t["default"]=s;e.exports=t.default},503:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=r(984);function _defineProperties(e,t){for(var r=0;re){return false}if(this.source.end.linet){return false}if(this.source.end.line===e&&this.source.end.column{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(248));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Pseudo,e);function Pseudo(t){var r;r=e.call(this,t)||this;r.type=i.PSEUDO;return r}var t=Pseudo.prototype;t.toString=function toString(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),e,this.rawSpaceAfter].join("")};return Pseudo}(n["default"]);t["default"]=s;e.exports=t.default},173:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(248));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var r=0;r{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(248));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Selector,e);function Selector(t){var r;r=e.call(this,t)||this;r.type=i.SELECTOR;return r}return Selector}(n["default"]);t["default"]=s;e.exports=t.default},429:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(503));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(String,e);function String(t){var r;r=e.call(this,t)||this;r.type=i.STRING;return r}return String}(n["default"]);t["default"]=s;e.exports=t.default},308:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(59));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Tag,e);function Tag(t){var r;r=e.call(this,t)||this;r.type=i.TAG;return r}return Tag}(n["default"]);t["default"]=s;e.exports=t.default},342:(e,t)=>{"use strict";t.__esModule=true;t.UNIVERSAL=t.ATTRIBUTE=t.CLASS=t.COMBINATOR=t.COMMENT=t.ID=t.NESTING=t.PSEUDO=t.ROOT=t.SELECTOR=t.STRING=t.TAG=void 0;var r="tag";t.TAG=r;var n="string";t.STRING=n;var i="selector";t.SELECTOR=i;var s="root";t.ROOT=s;var o="pseudo";t.PSEUDO=o;var a="nesting";t.NESTING=a;var u="id";t.ID=u;var c="comment";t.COMMENT=c;var f="combinator";t.COMBINATOR=f;var l="class";t.CLASS=l;var p="attribute";t.ATTRIBUTE=p;var h="universal";t.UNIVERSAL=h},893:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var n=_interopRequireDefault(r(59));var i=r(342);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}var s=function(e){_inheritsLoose(Universal,e);function Universal(t){var r;r=e.call(this,t)||this;r.type=i.UNIVERSAL;r.value="*";return r}return Universal}(n["default"]);t["default"]=s;e.exports=t.default},393:(e,t)=>{"use strict";t.__esModule=true;t["default"]=sortAscending;function sortAscending(e){return e.sort((function(e,t){return e-t}))}e.exports=t.default},210:(e,t)=>{"use strict";t.__esModule=true;t.combinator=t.word=t.comment=t.str=t.tab=t.newline=t.feed=t.cr=t.backslash=t.bang=t.slash=t.doubleQuote=t.singleQuote=t.space=t.greaterThan=t.pipe=t.equals=t.plus=t.caret=t.tilde=t.dollar=t.closeSquare=t.openSquare=t.closeParenthesis=t.openParenthesis=t.semicolon=t.colon=t.comma=t.at=t.asterisk=t.ampersand=void 0;var r=38;t.ampersand=r;var n=42;t.asterisk=n;var i=64;t.at=i;var s=44;t.comma=s;var o=58;t.colon=o;var a=59;t.semicolon=a;var u=40;t.openParenthesis=u;var c=41;t.closeParenthesis=c;var f=91;t.openSquare=f;var l=93;t.closeSquare=l;var p=36;t.dollar=p;var h=126;t.tilde=h;var d=94;t.caret=d;var v=43;t.plus=v;var _=61;t.equals=_;var y=124;t.pipe=y;var g=62;t.greaterThan=g;var S=32;t.space=S;var b=39;t.singleQuote=b;var w=34;t.doubleQuote=w;var T=47;t.slash=T;var m=33;t.bang=m;var O=92;t.backslash=O;var k=13;t.cr=k;var P=12;t.feed=P;var E=10;t.newline=E;var D=9;t.tab=D;var q=b;t.str=q;var L=-1;t.comment=L;var R=-2;t.word=R;var I=-3;t.combinator=I},452:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=tokenize;t.FIELDS=void 0;var n=_interopRequireWildcard(r(210));var i,s;function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r["default"]=e;if(t){t.set(e,r)}return r}var o=(i={},i[n.tab]=true,i[n.newline]=true,i[n.cr]=true,i[n.feed]=true,i);var a=(s={},s[n.space]=true,s[n.tab]=true,s[n.newline]=true,s[n.cr]=true,s[n.feed]=true,s[n.ampersand]=true,s[n.asterisk]=true,s[n.bang]=true,s[n.comma]=true,s[n.colon]=true,s[n.semicolon]=true,s[n.openParenthesis]=true,s[n.closeParenthesis]=true,s[n.openSquare]=true,s[n.closeSquare]=true,s[n.singleQuote]=true,s[n.doubleQuote]=true,s[n.plus]=true,s[n.pipe]=true,s[n.tilde]=true,s[n.greaterThan]=true,s[n.equals]=true,s[n.dollar]=true,s[n.caret]=true,s[n.slash]=true,s);var u={};var c="0123456789abcdefABCDEF";for(var f=0;f0){S=a+_;b=g-y[_].length}else{S=a;b=o}T=n.comment;a=S;h=S;p=g-b}else if(f===n.slash){g=u;T=f;h=a;p=u-o;c=g+1}else{g=consumeWord(r,u);T=n.word;h=a;p=g-o}c=g+1;break}t.push([T,a,u-o,h,p,u,c]);if(b){o=b;b=null}u=c}return t}},93:(e,t)=>{"use strict";t.__esModule=true;t["default"]=ensureObject;function ensureObject(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0){var i=r.shift();if(!e[i]){e[i]={}}e=e[i]}}e.exports=t.default},533:(e,t)=>{"use strict";t.__esModule=true;t["default"]=getProp;function getProp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0){var i=r.shift();if(!e[i]){return undefined}e=e[i]}return e}e.exports=t.default},984:(e,t,r)=>{"use strict";t.__esModule=true;t.stripComments=t.ensureObject=t.getProp=t.unesc=void 0;var n=_interopRequireDefault(r(30));t.unesc=n["default"];var i=_interopRequireDefault(r(533));t.getProp=i["default"];var s=_interopRequireDefault(r(93));t.ensureObject=s["default"];var o=_interopRequireDefault(r(386));t.stripComments=o["default"];function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},386:(e,t)=>{"use strict";t.__esModule=true;t["default"]=stripComments;function stripComments(e){var t="";var r=e.indexOf("/*");var n=0;while(r>=0){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0){return t}n=i+2;r=e.indexOf("/*",n)}t=t+e.slice(n);return t}e.exports=t.default},30:(e,t)=>{"use strict";t.__esModule=true;t["default"]=unesc;function gobbleHex(e){var t=e.toLowerCase();var r="";var n=false;for(var i=0;i<6&&t[i]!==undefined;i++){var s=t.charCodeAt(i);var o=s>=97&&s<=102||s>=48&&s<=57;n=s===32;if(!o){break}r+=t[i]}if(r.length===0){return undefined}var a=parseInt(r,16);var u=a>=55296&&a<=57343;if(u||a===0||a>1114111){return["�",r.length+(n?1:0)]}return[String.fromCodePoint(a),r.length+(n?1:0)]}var r=/\\/;function unesc(e){var t=r.test(e);if(!t){return e}var n="";for(var i=0;i{e.exports=r(837).deprecate},837:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var s=true;try{e[r](i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(304);module.exports=r})(); \ No newline at end of file diff --git a/packages/next/src/compiled/postcss-modules-values/index.js b/packages/next/src/compiled/postcss-modules-values/index.js index 1d62b13778de..9df9499c0008 100644 --- a/packages/next/src/compiled/postcss-modules-values/index.js +++ b/packages/next/src/compiled/postcss-modules-values/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={400:(e,r,t)=>{const s=t(903);const a=/^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;const n=/(?:\s+|^)([\w-]+):?(.*?)$/;const o=/^([\w-]+)(?:\s+as\s+([\w-]+))?/;e.exports=e=>{let r=0;const t=e&&e.createImportedName||(e=>`i__const_${e.replace(/\W/g,"_")}_${r++}`);return{postcssPlugin:"postcss-modules-values",prepare(e){const r=[];const p={};return{Once(i,c){i.walkAtRules(/value/i,(i=>{const c=i.params.match(a);if(c){let[,e,s]=c;if(p[s]){s=p[s]}const a=e.replace(/^\(\s*([\s\S]+)\s*\)$/,"$1").split(/\s*,\s*/).map((e=>{const r=o.exec(e);if(r){const[,e,s=e]=r;const a=t(s);p[s]=a;return{theirName:e,importedName:a}}else{throw new Error(`@import statement "${e}" is invalid!`)}}));r.push({path:s,imports:a});i.remove();return}if(i.params.indexOf("@value")!==-1){e.warn("Invalid value definition: "+i.params)}let[,l,u]=`${i.params}${i.raws.between}`.match(n);const m=u.replace(/\/\*((?!\*\/).*?)\*\//g,"");if(m.length===0){e.warn("Invalid value definition: "+i.params);i.remove();return}let _=/^\s+$/.test(m);if(!_){u=u.trim()}p[l]=s.replaceValueSymbols(u,p);i.remove()}));if(!Object.keys(p).length){return}s.replaceSymbols(i,p);const l=Object.keys(p).map((e=>c.decl({value:p[e],prop:e,raws:{before:"\n "}})));if(l.length>0){const e=c.rule({selector:":export",raws:{after:"\n"}});e.append(l);i.prepend(e)}r.reverse().forEach((({path:e,imports:r})=>{const t=c.rule({selector:`:import(${e})`,raws:{after:"\n"}});r.forEach((({theirName:e,importedName:r})=>{t.append({value:e,prop:r,raws:{before:"\n "}})}));i.prepend(t)}))}}}}};e.exports.postcss=true},903:e=>{e.exports=require("next/dist/compiled/icss-utils")}};var r={};function __nccwpck_require__(t){var s=r[t];if(s!==undefined){return s.exports}var a=r[t]={exports:{}};var n=true;try{e[t](a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete r[t]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(400);module.exports=t})(); \ No newline at end of file +(()=>{"use strict";var e={117:(e,r,t)=>{const s=t(903);const a=/^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;const n=/(?:\s+|^)([\w-]+):?(.*?)$/;const o=/^([\w-]+)(?:\s+as\s+([\w-]+))?/;e.exports=e=>{let r=0;const t=e&&e.createImportedName||(e=>`i__const_${e.replace(/\W/g,"_")}_${r++}`);return{postcssPlugin:"postcss-modules-values",prepare(e){const r=[];const p={};return{Once(i,c){i.walkAtRules(/value/i,(i=>{const c=i.params.match(a);if(c){let[,e,s]=c;if(p[s]){s=p[s]}const a=e.replace(/^\(\s*([\s\S]+)\s*\)$/,"$1").split(/\s*,\s*/).map((e=>{const r=o.exec(e);if(r){const[,e,s=e]=r;const a=t(s);p[s]=a;return{theirName:e,importedName:a}}else{throw new Error(`@import statement "${e}" is invalid!`)}}));r.push({path:s,imports:a});i.remove();return}if(i.params.indexOf("@value")!==-1){e.warn("Invalid value definition: "+i.params)}let[,l,u]=`${i.params}${i.raws.between}`.match(n);const m=u.replace(/\/\*((?!\*\/).*?)\*\//g,"");if(m.length===0){e.warn("Invalid value definition: "+i.params);i.remove();return}let _=/^\s+$/.test(m);if(!_){u=u.trim()}p[l]=s.replaceValueSymbols(u,p);i.remove()}));if(!Object.keys(p).length){return}s.replaceSymbols(i,p);const l=Object.keys(p).map((e=>c.decl({value:p[e],prop:e,raws:{before:"\n "}})));if(l.length>0){const e=c.rule({selector:":export",raws:{after:"\n"}});e.append(l);i.prepend(e)}r.reverse().forEach((({path:e,imports:r})=>{const t=c.rule({selector:`:import(${e})`,raws:{after:"\n"}});r.forEach((({theirName:e,importedName:r})=>{t.append({value:e,prop:r,raws:{before:"\n "}})}));i.prepend(t)}))}}}}};e.exports.postcss=true},903:e=>{e.exports=require("next/dist/compiled/icss-utils")}};var r={};function __nccwpck_require__(t){var s=r[t];if(s!==undefined){return s.exports}var a=r[t]={exports:{}};var n=true;try{e[t](a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete r[t]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(117);module.exports=t})(); \ No newline at end of file diff --git a/packages/next/src/compiled/postcss-preset-env/index.cjs b/packages/next/src/compiled/postcss-preset-env/index.cjs index 20e8f07b9293..44b8310955c5 100644 --- a/packages/next/src/compiled/postcss-preset-env/index.cjs +++ b/packages/next/src/compiled/postcss-preset-env/index.cjs @@ -1,5 +1,5 @@ -(()=>{var _={6472:(_,X,ee)=>{let te=ee(1711);function browsersSort(_,X){_=_.split(" ");X=X.split(" ");if(_[0]>X[0]){return 1}else if(_[0]prefix(["border-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],{browsers:_,feature:"border-radius",mistakes:["-khtml-","-ms-","-o-"]})));let ne=ee(2194);f(ne,(_=>prefix(["box-shadow"],{browsers:_,feature:"css-boxshadow",mistakes:["-khtml-"]})));let ie=ee(354);f(ie,(_=>prefix(["animation","animation-name","animation-duration","animation-delay","animation-direction","animation-fill-mode","animation-iteration-count","animation-play-state","animation-timing-function","@keyframes"],{browsers:_,feature:"css-animation",mistakes:["-khtml-","-ms-"]})));let oe=ee(40);f(oe,(_=>prefix(["transition","transition-property","transition-duration","transition-delay","transition-timing-function"],{browsers:_,feature:"css-transitions",mistakes:["-khtml-","-ms-"]})));let ae=ee(4602);f(ae,(_=>prefix(["transform","transform-origin"],{browsers:_,feature:"transforms2d"})));let le=ee(2866);f(le,(_=>{prefix(["perspective","perspective-origin"],{browsers:_,feature:"transforms3d"});return prefix(["transform-style"],{browsers:_,feature:"transforms3d",mistakes:["-ms-","-o-"]})}));f(le,{match:/y\sx|y\s#2/},(_=>prefix(["backface-visibility"],{browsers:_,feature:"transforms3d",mistakes:["-ms-","-o-"]})));let ue=ee(2571);f(ue,{match:/y\sx/},(_=>prefix(["linear-gradient","repeating-linear-gradient","radial-gradient","repeating-radial-gradient"],{browsers:_,feature:"css-gradients",mistakes:["-ms-"],props:["background","background-image","border-image","mask","list-style","list-style-image","content","mask-image"]})));f(ue,{match:/a\sx/},(_=>{_=_.map((_=>{if(/firefox|op/.test(_)){return _}else{return`${_} old`}}));return add(["linear-gradient","repeating-linear-gradient","radial-gradient","repeating-radial-gradient"],{browsers:_,feature:"css-gradients"})}));let ce=ee(6597);f(ce,(_=>prefix(["box-sizing"],{browsers:_,feature:"css3-boxsizing"})));let pe=ee(3882);f(pe,(_=>prefix(["filter"],{browsers:_,feature:"css-filters"})));let fe=ee(1545);f(fe,(_=>prefix(["filter-function"],{browsers:_,feature:"css-filter-function",props:["background","background-image","border-image","mask","list-style","list-style-image","content","mask-image"]})));let de=ee(3166);f(de,{match:/y\sx|y\s#2/},(_=>prefix(["backdrop-filter"],{browsers:_,feature:"css-backdrop-filter"})));let he=ee(7801);f(he,(_=>prefix(["element"],{browsers:_,feature:"css-element-function",props:["background","background-image","border-image","mask","list-style","list-style-image","content","mask-image"]})));let me=ee(7809);f(me,(_=>{prefix(["columns","column-width","column-gap","column-rule","column-rule-color","column-rule-width","column-count","column-rule-style","column-span","column-fill"],{browsers:_,feature:"multicolumn"});let X=_.filter((_=>!/firefox/.test(_)));prefix(["break-before","break-after","break-inside"],{browsers:X,feature:"multicolumn"})}));let ge=ee(9474);f(ge,(_=>prefix(["user-select"],{browsers:_,feature:"user-select-none",mistakes:["-khtml-"]})));let be=ee(4618);f(be,{match:/a\sx/},(_=>{_=_.map((_=>{if(/ie|firefox/.test(_)){return _}else{return`${_} 2009`}}));prefix(["display-flex","inline-flex"],{browsers:_,feature:"flexbox",props:["display"]});prefix(["flex","flex-grow","flex-shrink","flex-basis"],{browsers:_,feature:"flexbox"});prefix(["flex-direction","flex-wrap","flex-flow","justify-content","order","align-items","align-self","align-content"],{browsers:_,feature:"flexbox"})}));f(be,{match:/y\sx/},(_=>{add(["display-flex","inline-flex"],{browsers:_,feature:"flexbox"});add(["flex","flex-grow","flex-shrink","flex-basis"],{browsers:_,feature:"flexbox"});add(["flex-direction","flex-wrap","flex-flow","justify-content","order","align-items","align-self","align-content"],{browsers:_,feature:"flexbox"})}));let ve=ee(3098);f(ve,(_=>prefix(["calc"],{browsers:_,feature:"calc",props:["*"]})));let ye=ee(1188);f(ye,(_=>prefix(["background-origin","background-size"],{browsers:_,feature:"background-img-opts"})));let we=ee(5591);f(we,(_=>prefix(["background-clip"],{browsers:_,feature:"background-clip-text"})));let xe=ee(1328);f(xe,(_=>prefix(["font-feature-settings","font-variant-ligatures","font-language-override"],{browsers:_,feature:"font-feature"})));let ke=ee(3944);f(ke,(_=>prefix(["font-kerning"],{browsers:_,feature:"font-kerning"})));let Se=ee(7097);f(Se,(_=>prefix(["border-image"],{browsers:_,feature:"border-image"})));let _e=ee(4822);f(_e,(_=>prefix(["::selection"],{browsers:_,feature:"css-selection",selector:true})));let Pe=ee(6215);f(Pe,(_=>{prefix(["::placeholder"],{browsers:_.concat(["ie 10 old","ie 11 old","firefox 18 old"]),feature:"css-placeholder",selector:true})}));let Oe=ee(9278);f(Oe,(_=>{prefix([":placeholder-shown"],{browsers:_,feature:"css-placeholder-shown",selector:true})}));let je=ee(5197);f(je,(_=>prefix(["hyphens"],{browsers:_,feature:"css-hyphens"})));let Te=ee(7766);f(Te,(_=>prefix([":fullscreen"],{browsers:_,feature:"fullscreen",selector:true})));let Ee=ee(4643);f(Ee,(_=>prefix(["::backdrop"],{browsers:_,feature:"backdrop",selector:true})));let Fe=ee(2416);f(Fe,(_=>prefix(["::file-selector-button"],{browsers:_,feature:"file-selector-button",selector:true})));let Me=ee(7721);f(Me,(_=>prefix([":autofill"],{browsers:_,feature:"css-autofill",selector:true})));let $e=ee(3247);f($e,(_=>prefix(["tab-size"],{browsers:_,feature:"css3-tabsize"})));let Re=ee(5691);let Ae=["width","min-width","max-width","height","min-height","max-height","inline-size","min-inline-size","max-inline-size","block-size","min-block-size","max-block-size","grid","grid-template","grid-template-rows","grid-template-columns","grid-auto-columns","grid-auto-rows"];f(Re,(_=>prefix(["max-content","min-content"],{browsers:_,feature:"intrinsic-width",props:Ae})));f(Re,{match:/x|\s#4/},(_=>prefix(["fill","fill-available"],{browsers:_,feature:"intrinsic-width",props:Ae})));f(Re,{match:/x|\s#5/},(_=>{let X=_.filter((_=>{let[X,ee]=_.split(" ");if(X==="firefox"||X==="and_ff"){return parseInt(ee)<94}else{return true}}));return prefix(["fit-content"],{browsers:X,feature:"intrinsic-width",props:Ae})}));let qe=ee(7437);f(qe,(_=>prefix(["stretch"],{browsers:_,feature:"css-width-stretch",props:Ae})));let ze=ee(8265);f(ze,(_=>prefix(["zoom-in","zoom-out"],{browsers:_,feature:"css3-cursors-newer",props:["cursor"]})));let Ge=ee(2983);f(Ge,(_=>prefix(["grab","grabbing"],{browsers:_,feature:"css3-cursors-grab",props:["cursor"]})));let Ue=ee(8235);f(Ue,(_=>prefix(["sticky"],{browsers:_,feature:"css-sticky",props:["position"]})));let He=ee(1014);f(He,(_=>prefix(["touch-action"],{browsers:_,feature:"pointer"})));let Ze=ee(134);f(Ze,{match:/x.*#[235]/},(_=>prefix(["text-decoration-skip","text-decoration-skip-ink"],{browsers:_,feature:"text-decoration"})));let Ke=ee(1597);f(Ke,(_=>prefix(["text-decoration"],{browsers:_,feature:"text-decoration"})));let Xe=ee(5934);f(Xe,(_=>prefix(["text-decoration-color"],{browsers:_,feature:"text-decoration"})));let et=ee(3874);f(et,(_=>prefix(["text-decoration-line"],{browsers:_,feature:"text-decoration"})));let tt=ee(3480);f(tt,(_=>prefix(["text-decoration-style"],{browsers:_,feature:"text-decoration"})));let rt=ee(744);f(rt,(_=>prefix(["text-size-adjust"],{browsers:_,feature:"text-size-adjust"})));let st=ee(6649);f(st,(_=>{prefix(["mask-clip","mask-composite","mask-image","mask-origin","mask-repeat","mask-border-repeat","mask-border-source"],{browsers:_,feature:"css-masks"});prefix(["mask","mask-position","mask-size","mask-border","mask-border-outset","mask-border-width","mask-border-slice"],{browsers:_,feature:"css-masks"})}));let nt=ee(9205);f(nt,(_=>prefix(["clip-path"],{browsers:_,feature:"css-clip-path"})));let it=ee(6781);f(it,(_=>prefix(["box-decoration-break"],{browsers:_,feature:"css-boxdecorationbreak"})));let ot=ee(1480);f(ot,(_=>prefix(["object-fit","object-position"],{browsers:_,feature:"object-fit"})));let lt=ee(5460);f(lt,(_=>prefix(["shape-margin","shape-outside","shape-image-threshold"],{browsers:_,feature:"css-shapes"})));let ut=ee(7806);f(ut,(_=>prefix(["text-overflow"],{browsers:_,feature:"text-overflow"})));let ct=ee(3504);f(ct,(_=>prefix(["@viewport"],{browsers:_,feature:"css-deviceadaptation"})));let pt=ee(8181);f(pt,{match:/( x($| )|a #2)/},(_=>prefix(["@resolution"],{browsers:_,feature:"css-media-resolution"})));let ft=ee(2807);f(ft,(_=>prefix(["text-align-last"],{browsers:_,feature:"css-text-align-last"})));let dt=ee(8995);f(dt,{match:/y x|a x #1/},(_=>prefix(["pixelated"],{browsers:_,feature:"css-crisp-edges",props:["image-rendering"]})));f(dt,{match:/a x #2/},(_=>prefix(["image-rendering"],{browsers:_,feature:"css-crisp-edges"})));let ht=ee(7395);f(ht,(_=>prefix(["border-inline-start","border-inline-end","margin-inline-start","margin-inline-end","padding-inline-start","padding-inline-end"],{browsers:_,feature:"css-logical-props"})));f(ht,{match:/x\s#2/},(_=>prefix(["border-block-start","border-block-end","margin-block-start","margin-block-end","padding-block-start","padding-block-end"],{browsers:_,feature:"css-logical-props"})));let mt=ee(4773);f(mt,{match:/#2|x/},(_=>prefix(["appearance"],{browsers:_,feature:"css-appearance"})));let gt=ee(1340);f(gt,(_=>prefix(["scroll-snap-type","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y"],{browsers:_,feature:"css-snappoints"})));let bt=ee(1949);f(bt,(_=>prefix(["flow-into","flow-from","region-fragment"],{browsers:_,feature:"css-regions"})));let vt=ee(2237);f(vt,(_=>prefix(["image-set"],{browsers:_,feature:"css-image-set",props:["background","background-image","border-image","cursor","mask","mask-image","list-style","list-style-image","content"]})));let yt=ee(2298);f(yt,{match:/a|x/},(_=>prefix(["writing-mode"],{browsers:_,feature:"css-writing-mode"})));let wt=ee(8786);f(wt,(_=>prefix(["cross-fade"],{browsers:_,feature:"css-cross-fade",props:["background","background-image","border-image","mask","list-style","list-style-image","content","mask-image"]})));let xt=ee(2478);f(xt,(_=>prefix([":read-only",":read-write"],{browsers:_,feature:"css-read-only-write",selector:true})));let kt=ee(5514);f(kt,(_=>prefix(["text-emphasis","text-emphasis-position","text-emphasis-style","text-emphasis-color"],{browsers:_,feature:"text-emphasis"})));let St=ee(6554);f(St,(_=>{prefix(["display-grid","inline-grid"],{browsers:_,feature:"css-grid",props:["display"]});prefix(["grid-template-columns","grid-template-rows","grid-row-start","grid-column-start","grid-row-end","grid-column-end","grid-row","grid-column","grid-area","grid-template","grid-template-areas","place-self"],{browsers:_,feature:"css-grid"})}));f(St,{match:/a x/},(_=>prefix(["grid-column-align","grid-row-align"],{browsers:_,feature:"css-grid"})));let _t=ee(9290);f(_t,(_=>prefix(["text-spacing"],{browsers:_,feature:"css-text-spacing"})));let Pt=ee(9323);f(Pt,(_=>prefix([":any-link"],{browsers:_,feature:"css-any-link",selector:true})));let Ot=ee(7856);f(Ot,(_=>prefix(["isolate"],{browsers:_,feature:"css-unicode-bidi",props:["unicode-bidi"]})));let Ct=ee(6097);f(Ct,(_=>prefix(["plaintext"],{browsers:_,feature:"css-unicode-bidi",props:["unicode-bidi"]})));let jt=ee(9067);f(jt,{match:/y x/},(_=>prefix(["isolate-override"],{browsers:_,feature:"css-unicode-bidi",props:["unicode-bidi"]})));let Tt=ee(3898);f(Tt,{match:/a #1/},(_=>prefix(["overscroll-behavior"],{browsers:_,feature:"css-overscroll-behavior"})));let Et=ee(4838);f(Et,(_=>prefix(["text-orientation"],{browsers:_,feature:"css-text-orientation"})));let Ft=ee(8066);f(Ft,(_=>prefix(["print-color-adjust","color-adjust"],{browsers:_,feature:"css-print-color-adjust"})))},1318:(_,X,ee)=>{let te=ee(9511);class AtRule extends te{add(_,X){let ee=X+_.name;let te=_.parent.some((X=>X.name===ee&&X.params===_.params));if(te){return undefined}let re=this.clone(_,{name:ee});return _.parent.insertBefore(_,re)}process(_){let X=this.parentPrefix(_);for(let ee of this.prefixes){if(!X||X===ee){this.add(_,ee)}}}}_.exports=AtRule},4135:(_,X,ee)=>{let te=ee(4907);let{agents:re}=ee(3768);let se=ee(5701);let ne=ee(6472);let ie=ee(8277);let oe=ee(3872);let ae=ee(4848);let le={browsers:re,prefixes:ne};const ue="\n"+" Replace Autoprefixer `browsers` option to Browserslist config.\n"+" Use `browserslist` key in `package.json` or `.browserslistrc` file.\n"+"\n"+" Using `browsers` option can cause errors. Browserslist config can\n"+" be used for Babel, Autoprefixer, postcss-normalize and other tools.\n"+"\n"+" If you really need to use option, rename it to `overrideBrowserslist`.\n"+"\n"+" Learn more at:\n"+" https://github.com/browserslist/browserslist#readme\n"+" https://twitter.com/browserslist\n"+"\n";function isPlainObject(_){return Object.prototype.toString.apply(_)==="[object Object]"}let ce=new Map;function timeCapsule(_,X){if(X.browsers.selected.length===0){return}if(X.add.selectors.length>0){return}if(Object.keys(X.add).length>2){return}_.warn("Autoprefixer target browsers do not need any prefixes."+"You do not need Autoprefixer anymore.\n"+"Check your Browserslist config to be sure that your targets "+"are set up correctly.\n"+"\n"+" Learn more at:\n"+" https://github.com/postcss/autoprefixer#readme\n"+" https://github.com/browserslist/browserslist#readme\n"+"\n")}_.exports=plugin;function plugin(..._){let X;if(_.length===1&&isPlainObject(_[0])){X=_[0];_=undefined}else if(_.length===0||_.length===1&&!_[0]){_=undefined}else if(_.length<=2&&(Array.isArray(_[0])||!_[0])){X=_[1];_=_[0]}else if(typeof _[_.length-1]==="object"){X=_.pop()}if(!X){X={}}if(X.browser){throw new Error("Change `browser` option to `overrideBrowserslist` in Autoprefixer")}else if(X.browserslist){throw new Error("Change `browserslist` option to `overrideBrowserslist` in Autoprefixer")}if(X.overrideBrowserslist){_=X.overrideBrowserslist}else if(X.browsers){if(typeof console!=="undefined"&&console.warn){console.warn(se.red(ue.replace(/`[^`]+`/g,(_=>se.yellow(_.slice(1,-1))))))}_=X.browsers}let ee={env:X.env,ignoreUnknownVersions:X.ignoreUnknownVersions,stats:X.stats};function loadPrefixes(te){let re=le;let se=new ie(re.browsers,_,te,ee);let ne=se.selected.join(", ")+JSON.stringify(X);if(!ce.has(ne)){ce.set(ne,new ae(re.prefixes,se,X))}return ce.get(ne)}return{browsers:_,info(_){_=_||{};_.from=_.from||process.cwd();return oe(loadPrefixes(_))},options:X,postcssPlugin:"autoprefixer",prepare(_){let ee=loadPrefixes({env:X.env,from:_.opts.from});return{OnceExit(te){timeCapsule(_,ee);if(X.remove!==false){ee.processor.remove(te,_)}if(X.add!==false){ee.processor.add(te,_)}}}}}}plugin.postcss=true;plugin.data=le;plugin.defaults=te.defaults;plugin.info=()=>plugin().info()},8500:_=>{function last(_){return _[_.length-1]}let X={parse(_){let X=[""];let ee=[X];for(let te of _){if(te==="("){X=[""];last(ee).push(X);ee.push(X);continue}if(te===")"){ee.pop();X=last(ee);X.push("");continue}X[X.length-1]+=te}return ee[0]},stringify(_){let ee="";for(let te of _){if(typeof te==="object"){ee+=`(${X.stringify(te)})`;continue}ee+=te}return ee}};_.exports=X},8277:(_,X,ee)=>{let te=ee(4907);let{agents:re}=ee(3768);let se=ee(699);class Browsers{constructor(_,X,ee,te){this.data=_;this.options=ee||{};this.browserslistOpts=te||{};this.selected=this.parse(X)}static prefixes(){if(this.prefixesCache){return this.prefixesCache}this.prefixesCache=[];for(let _ in re){this.prefixesCache.push(`-${re[_].prefix}-`)}this.prefixesCache=se.uniq(this.prefixesCache).sort(((_,X)=>X.length-_.length));return this.prefixesCache}static withPrefix(_){if(!this.prefixesRegexp){this.prefixesRegexp=new RegExp(this.prefixes().join("|"))}return this.prefixesRegexp.test(_)}isSelected(_){return this.selected.includes(_)}parse(_){let X={};for(let _ in this.browserslistOpts){X[_]=this.browserslistOpts[_]}X.path=this.options.from;return te(_,X)}prefix(_){let[X,ee]=_.split(" ");let te=this.data[X];let re=te.prefix_exceptions&&te.prefix_exceptions[ee];if(!re){re=te.prefix}return`-${re}-`}}_.exports=Browsers},4750:(_,X,ee)=>{let te=ee(8277);let re=ee(9511);let se=ee(699);class Declaration extends re{add(_,X,ee,te){let re=this.prefixed(_.prop,X);if(this.isAlready(_,re)||this.otherPrefixes(_.value,X)){return undefined}return this.insert(_,X,ee,te)}calcBefore(_,X,ee=""){let te=this.maxPrefixed(_,X);let re=te-se.removeNote(ee).length;let ne=X.raw("before");if(re>0){ne+=Array(re).fill(" ").join("")}return ne}check(){return true}insert(_,X,ee){let te=this.set(this.clone(_),X);if(!te)return undefined;let re=_.parent.some((_=>_.prop===te.prop&&_.value===te.value));if(re){return undefined}if(this.needCascade(_)){te.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,te)}isAlready(_,X){let ee=this.all.group(_).up((_=>_.prop===X));if(!ee){ee=this.all.group(_).down((_=>_.prop===X))}return ee}maxPrefixed(_,X){if(X._autoprefixerMax){return X._autoprefixerMax}let ee=0;for(let X of _){X=se.removeNote(X);if(X.length>ee){ee=X.length}}X._autoprefixerMax=ee;return X._autoprefixerMax}needCascade(_){if(!_._autoprefixerCascade){_._autoprefixerCascade=this.all.options.cascade!==false&&_.raw("before").includes("\n")}return _._autoprefixerCascade}normalize(_){return _}old(_,X){return[this.prefixed(_,X)]}otherPrefixes(_,X){for(let ee of te.prefixes()){if(ee===X){continue}if(_.includes(ee)){return _.replace(/var\([^)]+\)/,"").includes(ee)}}return false}prefixed(_,X){return X+_}process(_,X){if(!this.needCascade(_)){super.process(_,X);return}let ee=super.process(_,X);if(!ee||!ee.length){return}this.restoreBefore(_);_.raws.before=this.calcBefore(ee,_)}restoreBefore(_){let X=_.raw("before").split("\n");let ee=X[X.length-1];this.all.group(_).up((_=>{let X=_.raw("before").split("\n");let te=X[X.length-1];if(te.length{let te=ee(4750);let re=ee(1902);class AlignContent extends te{normalize(){return"align-content"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2012){return X+"flex-line-pack"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2012){_.value=AlignContent.oldValues[_.value]||_.value;return super.set(_,X)}if(ee==="final"){return super.set(_,X)}return undefined}}AlignContent.names=["align-content","flex-line-pack"];AlignContent.oldValues={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"};_.exports=AlignContent},1262:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class AlignItems extends te{normalize(){return"align-items"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2009){return X+"box-align"}if(ee===2012){return X+"flex-align"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2009||ee===2012){_.value=AlignItems.oldValues[_.value]||_.value}return super.set(_,X)}}AlignItems.names=["align-items","flex-align","box-align"];AlignItems.oldValues={"flex-end":"end","flex-start":"start"};_.exports=AlignItems},2537:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class AlignSelf extends te{check(_){return _.parent&&!_.parent.some((_=>_.prop&&_.prop.startsWith("grid-")))}normalize(){return"align-self"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2012){return X+"flex-item-align"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2012){_.value=AlignSelf.oldValues[_.value]||_.value;return super.set(_,X)}if(ee==="final"){return super.set(_,X)}return undefined}}AlignSelf.names=["align-self","flex-item-align"];AlignSelf.oldValues={"flex-end":"end","flex-start":"start"};_.exports=AlignSelf},5136:(_,X,ee)=>{let te=ee(4750);class Animation extends te{check(_){return!_.value.split(/\s+/).some((_=>{let X=_.toLowerCase();return X==="reverse"||X==="alternate-reverse"}))}}Animation.names=["animation","animation-direction"];_.exports=Animation},256:(_,X,ee)=>{let te=ee(4750);let re=ee(699);class Appearance extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((_=>{if(_==="-ms-"){return"-webkit-"}return _})))}}}Appearance.names=["appearance"];_.exports=Appearance},2087:(_,X,ee)=>{let te=ee(7276);let re=ee(699);class Autofill extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((()=>"-webkit-")))}}prefixed(_){if(_==="-webkit-"){return":-webkit-autofill"}return`:${_}autofill`}}Autofill.names=[":autofill"];_.exports=Autofill},6921:(_,X,ee)=>{let te=ee(4750);let re=ee(699);class BackdropFilter extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((_=>_==="-ms-"?"-webkit-":_)))}}}BackdropFilter.names=["backdrop-filter"];_.exports=BackdropFilter},8641:(_,X,ee)=>{let te=ee(4750);let re=ee(699);class BackgroundClip extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((_=>_==="-ms-"?"-webkit-":_)))}}check(_){return _.value.toLowerCase()==="text"}}BackgroundClip.names=["background-clip"];_.exports=BackgroundClip},2100:(_,X,ee)=>{let te=ee(4750);class BackgroundSize extends te{set(_,X){let ee=_.value.toLowerCase();if(X==="-webkit-"&&!ee.includes(" ")&&ee!=="contain"&&ee!=="cover"){_.value=_.value+" "+_.value}return super.set(_,X)}}BackgroundSize.names=["background-size"];_.exports=BackgroundSize},305:(_,X,ee)=>{let te=ee(4750);class BlockLogical extends te{normalize(_){if(_.includes("-before")){return _.replace("-before","-block-start")}return _.replace("-after","-block-end")}prefixed(_,X){if(_.includes("-start")){return X+_.replace("-block-start","-before")}return X+_.replace("-block-end","-after")}}BlockLogical.names=["border-block-start","border-block-end","margin-block-start","margin-block-end","padding-block-start","padding-block-end","border-before","border-after","margin-before","margin-after","padding-before","padding-after"];_.exports=BlockLogical},6162:(_,X,ee)=>{let te=ee(4750);class BorderImage extends te{set(_,X){_.value=_.value.replace(/\s+fill(\s)/,"$1");return super.set(_,X)}}BorderImage.names=["border-image"];_.exports=BorderImage},4917:(_,X,ee)=>{let te=ee(4750);class BorderRadius extends te{normalize(_){return BorderRadius.toNormal[_]||_}prefixed(_,X){if(X==="-moz-"){return X+(BorderRadius.toMozilla[_]||_)}return super.prefixed(_,X)}}BorderRadius.names=["border-radius"];BorderRadius.toMozilla={};BorderRadius.toNormal={};for(let _ of["top","bottom"]){for(let X of["left","right"]){let ee=`border-${_}-${X}-radius`;let te=`border-radius-${_}${X}`;BorderRadius.names.push(ee);BorderRadius.names.push(te);BorderRadius.toMozilla[ee]=te;BorderRadius.toNormal[te]=ee}}_.exports=BorderRadius},2928:(_,X,ee)=>{let te=ee(4750);class BreakProps extends te{insert(_,X,ee){if(_.prop!=="break-inside"){return super.insert(_,X,ee)}if(/region/i.test(_.value)||/page/i.test(_.value)){return undefined}return super.insert(_,X,ee)}normalize(_){if(_.includes("inside")){return"break-inside"}if(_.includes("before")){return"break-before"}return"break-after"}prefixed(_,X){return`${X}column-${_}`}set(_,X){if(_.prop==="break-inside"&&_.value==="avoid-column"||_.value==="avoid-page"){_.value="avoid"}return super.set(_,X)}}BreakProps.names=["break-inside","page-break-inside","column-break-inside","break-before","page-break-before","column-break-before","break-after","page-break-after","column-break-after"];_.exports=BreakProps},6575:(_,X,ee)=>{let te=ee(977).list;let re=ee(3129);class CrossFade extends re{replace(_,X){return te.space(_).map((_=>{if(_.slice(0,+this.name.length+1)!==this.name+"("){return _}let ee=_.lastIndexOf(")");let te=_.slice(ee+1);let re=_.slice(this.name.length+1,ee);if(X==="-webkit-"){let _=re.match(/\d*.?\d+%?/);if(_){re=re.slice(_[0].length).trim();re+=`, ${_[0]}`}else{re+=", 0.5"}}return X+this.name+"("+re+")"+te})).join(" ")}}CrossFade.names=["cross-fade"];_.exports=CrossFade},6700:(_,X,ee)=>{let te=ee(2097);let re=ee(3129);let se=ee(1902);class DisplayFlex extends re{constructor(_,X){super(_,X);if(_==="display-flex"){this.name="flex"}}check(_){return _.prop==="display"&&_.value===this.name}old(_){let X=this.prefixed(_);if(!X)return undefined;return new te(this.name,X)}prefixed(_){let X,ee;[X,_]=se(_);if(X===2009){if(this.name==="flex"){ee="box"}else{ee="inline-box"}}else if(X===2012){if(this.name==="flex"){ee="flexbox"}else{ee="inline-flexbox"}}else if(X==="final"){ee=this.name}return _+ee}replace(_,X){return this.prefixed(X)}}DisplayFlex.names=["display-flex","inline-flex"];_.exports=DisplayFlex},6898:(_,X,ee)=>{let te=ee(3129);class DisplayGrid extends te{constructor(_,X){super(_,X);if(_==="display-grid"){this.name="grid"}}check(_){return _.prop==="display"&&_.value===this.name}}DisplayGrid.names=["display-grid","inline-grid"];_.exports=DisplayGrid},3594:(_,X,ee)=>{let te=ee(7276);let re=ee(699);class FileSelectorButton extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((()=>"-webkit-")))}}prefixed(_){if(_==="-webkit-"){return"::-webkit-file-upload-button"}return`::${_}file-selector-button`}}FileSelectorButton.names=["::file-selector-button"];_.exports=FileSelectorButton},4653:(_,X,ee)=>{let te=ee(3129);class FilterValue extends te{constructor(_,X){super(_,X);if(_==="filter-function"){this.name="filter"}}}FilterValue.names=["filter","filter-function"];_.exports=FilterValue},8706:(_,X,ee)=>{let te=ee(4750);class Filter extends te{check(_){let X=_.value;return!X.toLowerCase().includes("alpha(")&&!X.includes("DXImageTransform.Microsoft")&&!X.includes("data:image/svg+xml")}}Filter.names=["filter"];_.exports=Filter},5:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class FlexBasis extends te{normalize(){return"flex-basis"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2012){return X+"flex-preferred-size"}return super.prefixed(_,X)}set(_,X){let ee;[ee,X]=re(X);if(ee===2012||ee==="final"){return super.set(_,X)}return undefined}}FlexBasis.names=["flex-basis","flex-preferred-size"];_.exports=FlexBasis},4927:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class FlexDirection extends te{insert(_,X,ee){let te;[te,X]=re(X);if(te!==2009){return super.insert(_,X,ee)}let se=_.parent.some((_=>_.prop===X+"box-orient"||_.prop===X+"box-direction"));if(se){return undefined}let ne=_.value;let ie,oe;if(ne==="inherit"||ne==="initial"||ne==="unset"){oe=ne;ie=ne}else{oe=ne.includes("row")?"horizontal":"vertical";ie=ne.includes("reverse")?"reverse":"normal"}let ae=this.clone(_);ae.prop=X+"box-orient";ae.value=oe;if(this.needCascade(_)){ae.raws.before=this.calcBefore(ee,_,X)}_.parent.insertBefore(_,ae);ae=this.clone(_);ae.prop=X+"box-direction";ae.value=ie;if(this.needCascade(_)){ae.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,ae)}normalize(){return"flex-direction"}old(_,X){let ee;[ee,X]=re(X);if(ee===2009){return[X+"box-orient",X+"box-direction"]}else{return super.old(_,X)}}}FlexDirection.names=["flex-direction","box-direction","box-orient"];_.exports=FlexDirection},2346:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class FlexFlow extends te{insert(_,X,ee){let te;[te,X]=re(X);if(te!==2009){return super.insert(_,X,ee)}let se=_.value.split(/\s+/).filter((_=>_!=="wrap"&&_!=="nowrap"&&"wrap-reverse"));if(se.length===0){return undefined}let ne=_.parent.some((_=>_.prop===X+"box-orient"||_.prop===X+"box-direction"));if(ne){return undefined}let ie=se[0];let oe=ie.includes("row")?"horizontal":"vertical";let ae=ie.includes("reverse")?"reverse":"normal";let le=this.clone(_);le.prop=X+"box-orient";le.value=oe;if(this.needCascade(_)){le.raws.before=this.calcBefore(ee,_,X)}_.parent.insertBefore(_,le);le=this.clone(_);le.prop=X+"box-direction";le.value=ae;if(this.needCascade(_)){le.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,le)}}FlexFlow.names=["flex-flow","box-direction","box-orient"];_.exports=FlexFlow},5238:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class Flex extends te{normalize(){return"flex"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2009){return X+"box-flex"}if(ee===2012){return X+"flex-positive"}return super.prefixed(_,X)}}Flex.names=["flex-grow","flex-positive"];_.exports=Flex},5713:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class FlexShrink extends te{normalize(){return"flex-shrink"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2012){return X+"flex-negative"}return super.prefixed(_,X)}set(_,X){let ee;[ee,X]=re(X);if(ee===2012||ee==="final"){return super.set(_,X)}return undefined}}FlexShrink.names=["flex-shrink","flex-negative"];_.exports=FlexShrink},1902:_=>{_.exports=function(_){let X;if(_==="-webkit- 2009"||_==="-moz-"){X=2009}else if(_==="-ms-"){X=2012}else if(_==="-webkit-"){X="final"}if(_==="-webkit- 2009"){_="-webkit-"}return[X,_]}},4690:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class FlexWrap extends te{set(_,X){let ee=re(X)[0];if(ee!==2009){return super.set(_,X)}return undefined}}FlexWrap.names=["flex-wrap"];_.exports=FlexWrap},9591:(_,X,ee)=>{let te=ee(977).list;let re=ee(4750);let se=ee(1902);class Flex extends re{normalize(){return"flex"}prefixed(_,X){let ee;[ee,X]=se(X);if(ee===2009){return X+"box-flex"}return super.prefixed(_,X)}set(_,X){let ee=se(X)[0];if(ee===2009){_.value=te.space(_.value)[0];_.value=Flex.oldValues[_.value]||_.value;return super.set(_,X)}if(ee===2012){let X=te.space(_.value);if(X.length===3&&X[2]==="0"){_.value=X.slice(0,2).concat("0px").join(" ")}}return super.set(_,X)}}Flex.names=["flex","box-flex"];Flex.oldValues={auto:"1",none:"0"};_.exports=Flex},4799:(_,X,ee)=>{let te=ee(7276);class Fullscreen extends te{prefixed(_){if(_==="-webkit-"){return":-webkit-full-screen"}if(_==="-moz-"){return":-moz-full-screen"}return`:${_}fullscreen`}}Fullscreen.names=[":fullscreen"];_.exports=Fullscreen},2118:(_,X,ee)=>{let te=ee(2443);let re=ee(2045);let se=ee(2097);let ne=ee(699);let ie=ee(3129);let oe=/top|left|right|bottom/gi;class Gradient extends ie{add(_,X){let ee=_.prop;if(ee.includes("mask")){if(X==="-webkit-"||X==="-webkit- old"){return super.add(_,X)}}else if(ee==="list-style"||ee==="list-style-image"||ee==="content"){if(X==="-webkit-"||X==="-webkit- old"){return super.add(_,X)}}else{return super.add(_,X)}return undefined}cloneDiv(_){for(let X of _){if(X.type==="div"&&X.value===","){return X}}return{after:" ",type:"div",value:","}}colorStops(_){let X=[];for(let ee=0;ee<_.length;ee++){let te;let se=_[ee];let ne;if(ee===0){continue}let ie=re.stringify(se[0]);if(se[1]&&se[1].type==="word"){te=se[1].value}else if(se[2]&&se[2].type==="word"){te=se[2].value}let oe;if(ee===1&&(!te||te==="0%")){oe=`from(${ie})`}else if(ee===_.length-1&&(!te||te==="100%")){oe=`to(${ie})`}else if(te){oe=`color-stop(${te}, ${ie})`}else{oe=`color-stop(${ie})`}let ae=se[se.length-1];_[ee]=[{type:"word",value:oe}];if(ae.type==="div"&&ae.value===","){ne=_[ee].push(ae)}X.push(ne)}return X}convertDirection(_){if(_.length>0){if(_[0].value==="to"){this.fixDirection(_)}else if(_[0].value.includes("deg")){this.fixAngle(_)}else if(this.isRadial(_)){this.fixRadial(_)}}return _}fixAngle(_){let X=_[0].value;X=parseFloat(X);X=Math.abs(450-X)%360;X=this.roundFloat(X,3);_[0].value=`${X}deg`}fixDirection(_){_.splice(0,2);for(let X of _){if(X.type==="div"){break}if(X.type==="word"){X.value=this.revertDirection(X.value)}}}fixRadial(_){let X=[];let ee=[];let te,re,se,ne,ie;for(ne=0;ne<_.length-2;ne++){te=_[ne];re=_[ne+1];se=_[ne+2];if(te.type==="space"&&re.value==="at"&&se.type==="space"){ie=ne+3;break}else{X.push(te)}}let oe;for(ne=ie;ne<_.length;ne++){if(_[ne].type==="div"){oe=_[ne];break}else{ee.push(_[ne])}}_.splice(0,ne,...ee,oe,...X)}isRadial(_){let X="before";for(let ee of _){if(X==="before"&&ee.type==="space"){X="at"}else if(X==="at"&&ee.value==="at"){X="after"}else if(X==="after"&&ee.type==="space"){return true}else if(ee.type==="div"){break}else{X="before"}}return false}newDirection(_){if(_[0].value==="to"){return _}oe.lastIndex=0;if(!oe.test(_[0].value)){return _}_.unshift({type:"word",value:"to"},{type:"space",value:" "});for(let X=2;X<_.length;X++){if(_[X].type==="div"){break}if(_[X].type==="word"){_[X].value=this.revertDirection(_[X].value)}}return _}normalize(_,X){if(!_[0])return _;if(/-?\d+(.\d+)?grad/.test(_[0].value)){_[0].value=this.normalizeUnit(_[0].value,400)}else if(/-?\d+(.\d+)?rad/.test(_[0].value)){_[0].value=this.normalizeUnit(_[0].value,2*Math.PI)}else if(/-?\d+(.\d+)?turn/.test(_[0].value)){_[0].value=this.normalizeUnit(_[0].value,1)}else if(_[0].value.includes("deg")){let X=parseFloat(_[0].value);X=te.wrap(0,360,X);_[0].value=`${X}deg`}if(X==="linear-gradient"||X==="repeating-linear-gradient"){let X=_[0].value;if(X==="0deg"||X==="0"){_=this.replaceFirst(_,"to"," ","top")}else if(X==="90deg"){_=this.replaceFirst(_,"to"," ","right")}else if(X==="180deg"){_=this.replaceFirst(_,"to"," ","bottom")}else if(X==="270deg"){_=this.replaceFirst(_,"to"," ","left")}}return _}normalizeUnit(_,X){let ee=parseFloat(_);let te=ee/X*360;return`${te}deg`}old(_){if(_==="-webkit-"){let X;if(this.name==="linear-gradient"){X="linear"}else if(this.name==="repeating-linear-gradient"){X="repeating-linear"}else if(this.name==="repeating-radial-gradient"){X="repeating-radial"}else{X="radial"}let ee="-gradient";let te=ne.regexp(`-webkit-(${X}-gradient|gradient\\(\\s*${X})`,false);return new se(this.name,_+this.name,ee,te)}else{return super.old(_)}}oldDirection(_){let X=this.cloneDiv(_[0]);if(_[0][0].value!=="to"){return _.unshift([{type:"word",value:Gradient.oldDirections.bottom},X])}else{let ee=[];for(let X of _[0].slice(2)){if(X.type==="word"){ee.push(X.value.toLowerCase())}}ee=ee.join(" ");let te=Gradient.oldDirections[ee]||ee;_[0]=[{type:"word",value:te},X];return _[0]}}oldWebkit(_){let{nodes:X}=_;let ee=re.stringify(_.nodes);if(this.name!=="linear-gradient"){return false}if(X[0]&&X[0].value.includes("deg")){return false}if(ee.includes("px")||ee.includes("-corner")||ee.includes("-side")){return false}let te=[[]];for(let _ of X){te[te.length-1].push(_);if(_.type==="div"&&_.value===","){te.push([])}}this.oldDirection(te);this.colorStops(te);_.nodes=[];for(let X of te){_.nodes=_.nodes.concat(X)}_.nodes.unshift({type:"word",value:"linear"},this.cloneDiv(_.nodes));_.value="-webkit-gradient";return true}replace(_,X){let ee=re(_);for(let _ of ee.nodes){let ee=this.name;if(_.type==="function"&&_.value===ee){_.nodes=this.newDirection(_.nodes);_.nodes=this.normalize(_.nodes,ee);if(X==="-webkit- old"){let X=this.oldWebkit(_);if(!X){return false}}else{_.nodes=this.convertDirection(_.nodes);_.value=X+_.value}}}return ee.toString()}replaceFirst(_,...X){let ee=X.map((_=>{if(_===" "){return{type:"space",value:_}}return{type:"word",value:_}}));return ee.concat(_.slice(1))}revertDirection(_){return Gradient.directions[_.toLowerCase()]||_}roundFloat(_,X){return parseFloat(_.toFixed(X))}}Gradient.names=["linear-gradient","repeating-linear-gradient","radial-gradient","repeating-radial-gradient"];Gradient.directions={bottom:"top",left:"right",right:"left",top:"bottom"};Gradient.oldDirections={bottom:"left top, left bottom","bottom left":"right top, left bottom","bottom right":"left top, right bottom",left:"right top, left top","left bottom":"right top, left bottom","left top":"right bottom, left top",right:"left top, right top","right bottom":"left top, right bottom","right top":"left bottom, right top",top:"left bottom, left top","top left":"right bottom, left top","top right":"left bottom, right top"};_.exports=Gradient},3725:(_,X,ee)=>{let te=ee(4750);let re=ee(9850);class GridArea extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);let se=re.parse(_);let[ne,ie]=re.translate(se,0,2);let[oe,ae]=re.translate(se,1,3);[["grid-row",ne],["grid-row-span",ie],["grid-column",oe],["grid-column-span",ae]].forEach((([X,ee])=>{re.insertDecl(_,X,ee)}));re.warnTemplateSelectorNotFound(_,te);re.warnIfGridRowColumnExists(_,te);return undefined}}GridArea.names=["grid-area"];_.exports=GridArea},1218:(_,X,ee)=>{let te=ee(4750);class GridColumnAlign extends te{check(_){return!_.value.includes("flex-")&&_.value!=="baseline"}normalize(){return"justify-self"}prefixed(_,X){return X+"grid-column-align"}}GridColumnAlign.names=["grid-column-align"];_.exports=GridColumnAlign},397:(_,X,ee)=>{let te=ee(4750);let{isPureNumber:re}=ee(699);class GridEnd extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);let se=this.clone(_);let ne=_.prop.replace(/end$/,"start");let ie=X+_.prop.replace(/end$/,"span");if(_.parent.some((_=>_.prop===ie))){return undefined}se.prop=ie;if(_.value.includes("span")){se.value=_.value.replace(/span\s/i,"")}else{let X;_.parent.walkDecls(ne,(_=>{X=_}));if(X){if(re(X.value)){let ee=Number(_.value)-Number(X.value)+"";se.value=ee}else{return undefined}}else{_.warn(te,`Can not prefix ${_.prop} (${ne} is not found)`)}}_.cloneBefore(se);return undefined}}GridEnd.names=["grid-row-end","grid-column-end"];_.exports=GridEnd},1446:(_,X,ee)=>{let te=ee(4750);class GridRowAlign extends te{check(_){return!_.value.includes("flex-")&&_.value!=="baseline"}normalize(){return"align-self"}prefixed(_,X){return X+"grid-row-align"}}GridRowAlign.names=["grid-row-align"];_.exports=GridRowAlign},1909:(_,X,ee)=>{let te=ee(4750);let re=ee(9850);class GridRowColumn extends te{insert(_,X,ee){if(X!=="-ms-")return super.insert(_,X,ee);let te=re.parse(_);let[se,ne]=re.translate(te,0,1);let ie=te[0]&&te[0].includes("span");if(ie){ne=te[0].join("").replace(/\D/g,"")}[[_.prop,se],[`${_.prop}-span`,ne]].forEach((([X,ee])=>{re.insertDecl(_,X,ee)}));return undefined}}GridRowColumn.names=["grid-row","grid-column"];_.exports=GridRowColumn},9762:(_,X,ee)=>{let te=ee(4750);let re=ee(2140);let{autoplaceGridItems:se,getGridGap:ne,inheritGridGap:ie,prefixTrackProp:oe,prefixTrackValue:ae}=ee(9850);class GridRowsColumns extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);let{parent:le,prop:ue,value:ce}=_;let pe=ue.includes("rows");let fe=ue.includes("columns");let de=le.some((_=>_.prop==="grid-template"||_.prop==="grid-template-areas"));if(de&&pe){return false}let he=new re({options:{}});let me=he.gridStatus(le,te);let ge=ne(_);ge=ie(_,ge)||ge;let be=pe?ge.row:ge.column;if((me==="no-autoplace"||me===true)&&!de){be=null}let ve=ae({gap:be,value:ce});_.cloneBefore({prop:oe({prefix:X,prop:ue}),value:ve});let ye=le.nodes.find((_=>_.prop==="grid-auto-flow"));let we="row";if(ye&&!he.disabled(ye,te)){we=ye.value.trim()}if(me==="autoplace"){let X=le.nodes.find((_=>_.prop==="grid-template-rows"));if(!X&&de){return undefined}else if(!X&&!de){_.warn(te,"Autoplacement does not work without grid-template-rows property");return undefined}let ee=le.nodes.find((_=>_.prop==="grid-template-columns"));if(!ee&&!de){_.warn(te,"Autoplacement does not work without grid-template-columns property")}if(fe&&!de){se(_,te,ge,we)}}return undefined}normalize(_){return _.replace(/^grid-(rows|columns)/,"grid-template-$1")}prefixed(_,X){if(X==="-ms-"){return oe({prefix:X,prop:_})}return super.prefixed(_,X)}}GridRowsColumns.names=["grid-template-rows","grid-template-columns","grid-rows","grid-columns"];_.exports=GridRowsColumns},1461:(_,X,ee)=>{let te=ee(4750);class GridStart extends te{check(_){let X=_.value;return!X.includes("/")&&!X.includes("span")}normalize(_){return _.replace("-start","")}prefixed(_,X){let ee=super.prefixed(_,X);if(X==="-ms-"){ee=ee.replace("-start","")}return ee}}GridStart.names=["grid-row-start","grid-column-start"];_.exports=GridStart},9104:(_,X,ee)=>{let te=ee(4750);let{getGridGap:re,inheritGridGap:se,parseGridAreas:ne,prefixTrackProp:ie,prefixTrackValue:oe,warnGridGap:ae,warnMissedAreas:le}=ee(9850);function getGridRows(_){return _.trim().slice(1,-1).split(/["']\s*["']?/g)}class GridTemplateAreas extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);let ue=false;let ce=false;let pe=_.parent;let fe=re(_);fe=se(_,fe)||fe;pe.walkDecls(/-ms-grid-rows/,(_=>_.remove()));pe.walkDecls(/grid-template-(rows|columns)/,(_=>{if(_.prop==="grid-template-rows"){ce=true;let{prop:ee,value:te}=_;_.cloneBefore({prop:ie({prefix:X,prop:ee}),value:oe({gap:fe.row,value:te})})}else{ue=true}}));let de=getGridRows(_.value);if(ue&&!ce&&fe.row&&de.length>1){_.cloneBefore({prop:"-ms-grid-rows",raws:{},value:oe({gap:fe.row,value:`repeat(${de.length}, auto)`})})}ae({decl:_,gap:fe,hasColumns:ue,result:te});let he=ne({gap:fe,rows:de});le(he,_,te);return _}}GridTemplateAreas.names=["grid-template-areas"];_.exports=GridTemplateAreas},6955:(_,X,ee)=>{let te=ee(4750);let{getGridGap:re,inheritGridGap:se,parseTemplate:ne,warnGridGap:ie,warnMissedAreas:oe}=ee(9850);class GridTemplate extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);if(_.parent.some((_=>_.prop==="-ms-grid-rows"))){return undefined}let ae=re(_);let le=se(_,ae);let{areas:ue,columns:ce,rows:pe}=ne({decl:_,gap:le||ae});let fe=Object.keys(ue).length>0;let de=Boolean(pe);let he=Boolean(ce);ie({decl:_,gap:ae,hasColumns:he,result:te});oe(ue,_,te);if(de&&he||fe){_.cloneBefore({prop:"-ms-grid-rows",raws:{},value:pe})}if(he){_.cloneBefore({prop:"-ms-grid-columns",raws:{},value:ce})}return _}}GridTemplate.names=["grid-template"];_.exports=GridTemplate},9850:(_,X,ee)=>{let te=ee(2045);let re=ee(977).list;let se=ee(699).uniq;let ne=ee(699).escapeRegexp;let ie=ee(699).splitSelector;function convert(_){if(_&&_.length===2&&_[0]==="span"&&parseInt(_[1],10)>0){return[false,parseInt(_[1],10)]}if(_&&_.length===1&&parseInt(_[0],10)>0){return[parseInt(_[0],10),false]}return[false,false]}X.translate=translate;function translate(_,X,ee){let te=_[X];let re=_[ee];if(!te){return[false,false]}let[se,ne]=convert(te);let[ie,oe]=convert(re);if(se&&!re){return[se,false]}if(ne&&ie){return[ie-ne,ne]}if(se&&oe){return[se,oe]}if(se&&ie){return[se,ie-se]}return[false,false]}X.parse=parse;function parse(_){let X=te(_.value);let ee=[];let re=0;ee[re]=[];for(let _ of X.nodes){if(_.type==="div"){re+=1;ee[re]=[]}else if(_.type==="word"){ee[re].push(_.value)}}return ee}X.insertDecl=insertDecl;function insertDecl(_,X,ee){if(ee&&!_.parent.some((_=>_.prop===`-ms-${X}`))){_.cloneBefore({prop:`-ms-${X}`,value:ee.toString()})}}X.prefixTrackProp=prefixTrackProp;function prefixTrackProp({prefix:_,prop:X}){return _+X.replace("template-","")}function transformRepeat({nodes:_},{gap:X}){let{count:ee,size:re}=_.reduce(((_,X)=>{if(X.type==="div"&&X.value===","){_.key="size"}else{_[_.key].push(te.stringify(X))}return _}),{count:[],key:"count",size:[]});if(X){re=re.filter((_=>_.trim()));let _=[];for(let te=1;te<=ee;te++){re.forEach(((ee,re)=>{if(re>0||te>1){_.push(X)}_.push(ee)}))}return _.join(" ")}return`(${re.join("")})[${ee.join("")}]`}X.prefixTrackValue=prefixTrackValue;function prefixTrackValue({gap:_,value:X}){let ee=te(X).nodes.reduce(((X,ee)=>{if(ee.type==="function"&&ee.value==="repeat"){return X.concat({type:"word",value:transformRepeat(ee,{gap:_})})}if(_&&ee.type==="space"){return X.concat({type:"space",value:" "},{type:"word",value:_},ee)}return X.concat(ee)}),[]);return te.stringify(ee)}let oe=/^\.+$/;function track(_,X){return{end:X,span:X-_,start:_}}function getColumns(_){return _.trim().split(/\s+/g)}X.parseGridAreas=parseGridAreas;function parseGridAreas({gap:_,rows:X}){return X.reduce(((X,ee,te)=>{if(_.row)te*=2;if(ee.trim()==="")return X;getColumns(ee).forEach(((ee,re)=>{if(oe.test(ee))return;if(_.column)re*=2;if(typeof X[ee]==="undefined"){X[ee]={column:track(re+1,re+2),row:track(te+1,te+2)}}else{let{column:_,row:se}=X[ee];_.start=Math.min(_.start,re+1);_.end=Math.max(_.end,re+2);_.span=_.end-_.start;se.start=Math.min(se.start,te+1);se.end=Math.max(se.end,te+2);se.span=se.end-se.start}}));return X}),{})}function testTrack(_){return _.type==="word"&&/^\[.+]$/.test(_.value)}function verifyRowSize(_){if(_.areas.length>_.rows.length){_.rows.push("auto")}return _}X.parseTemplate=parseTemplate;function parseTemplate({decl:_,gap:X}){let ee=te(_.value).nodes.reduce(((_,X)=>{let{type:ee,value:re}=X;if(testTrack(X)||ee==="space")return _;if(ee==="string"){_=verifyRowSize(_);_.areas.push(re)}if(ee==="word"||ee==="function"){_[_.key].push(te.stringify(X))}if(ee==="div"&&re==="/"){_.key="columns";_=verifyRowSize(_)}return _}),{areas:[],columns:[],key:"rows",rows:[]});return{areas:parseGridAreas({gap:X,rows:ee.areas}),columns:prefixTrackValue({gap:X.column,value:ee.columns.join(" ")}),rows:prefixTrackValue({gap:X.row,value:ee.rows.join(" ")})}}function getMSDecls(_,X=false,ee=false){let te=[{prop:"-ms-grid-row",value:String(_.row.start)}];if(_.row.span>1||X){te.push({prop:"-ms-grid-row-span",value:String(_.row.span)})}te.push({prop:"-ms-grid-column",value:String(_.column.start)});if(_.column.span>1||ee){te.push({prop:"-ms-grid-column-span",value:String(_.column.span)})}return te}function getParentMedia(_){if(_.type==="atrule"&&_.name==="media"){return _}if(!_.parent){return false}return getParentMedia(_.parent)}function changeDuplicateAreaSelectors(_,X){_=_.map((_=>{let X=re.space(_);let ee=re.comma(_);if(X.length>ee.length){_=X.slice(-1).join("")}return _}));return _.map((_=>{let ee=X.map(((X,ee)=>{let te=ee===0?"":" ";return`${te}${X} > ${_}`}));return ee}))}function selectorsEqual(_,X){return _.selectors.some((_=>X.selectors.includes(_)))}function parseGridTemplatesData(_){let X=[];_.walkDecls(/grid-template(-areas)?$/,(_=>{let ee=_.parent;let te=getParentMedia(ee);let re=getGridGap(_);let ne=inheritGridGap(_,re);let{areas:ie}=parseTemplate({decl:_,gap:ne||re});let oe=Object.keys(ie);if(oe.length===0){return true}let ae=X.reduce(((_,{allAreas:X},ee)=>{let te=X&&oe.some((_=>X.includes(_)));return te?ee:_}),null);if(ae!==null){let{allAreas:_,rules:re}=X[ae];let ne=re.some((_=>_.hasDuplicates===false&&selectorsEqual(_,ee)));let le=false;let ue=re.reduce(((_,X)=>{if(!X.params&&selectorsEqual(X,ee)){le=true;return X.duplicateAreaNames}if(!le){oe.forEach((ee=>{if(X.areas[ee]){_.push(ee)}}))}return se(_)}),[]);re.forEach((_=>{oe.forEach((X=>{let ee=_.areas[X];if(ee&&ee.row.span!==ie[X].row.span){ie[X].row.updateSpan=true}if(ee&&ee.column.span!==ie[X].column.span){ie[X].column.updateSpan=true}}))}));X[ae].allAreas=se([..._,...oe]);X[ae].rules.push({areas:ie,duplicateAreaNames:ue,hasDuplicates:!ne,node:ee,params:te.params,selectors:ee.selectors})}else{X.push({allAreas:oe,areasCount:0,rules:[{areas:ie,duplicateAreaNames:[],duplicateRules:[],hasDuplicates:false,node:ee,params:te.params,selectors:ee.selectors}]})}return undefined}));return X}X.insertAreas=insertAreas;function insertAreas(_,X){let ee=parseGridTemplatesData(_);if(ee.length===0){return undefined}let te={};_.walkDecls("grid-area",(se=>{let ne=se.parent;let ie=ne.first.prop==="-ms-grid-row";let oe=getParentMedia(ne);if(X(se)){return undefined}let ae=_.index(oe||ne);let le=se.value;let ue=ee.filter((_=>_.allAreas.includes(le)))[0];if(!ue){return true}let ce=ue.allAreas[ue.allAreas.length-1];let pe=re.space(ne.selector);let fe=re.comma(ne.selector);let de=pe.length>1&&pe.length>fe.length;if(ie){return false}if(!te[ce]){te[ce]={}}let he=false;for(let X of ue.rules){let ee=X.areas[le];let re=X.duplicateAreaNames.includes(le);if(!ee){let X=te[ce].lastRule;let ee;if(X){ee=_.index(X)}else{ee=-1}if(ae>ee){te[ce].lastRule=oe||ne}continue}if(X.params&&!te[ce][X.params]){te[ce][X.params]=[]}if((!X.hasDuplicates||!re)&&!X.params){getMSDecls(ee,false,false).reverse().forEach((_=>ne.prepend(Object.assign(_,{raws:{between:se.raws.between}}))));te[ce].lastRule=ne;he=true}else if(X.hasDuplicates&&!X.params&&!de){let _=ne.clone();_.removeAll();getMSDecls(ee,ee.row.updateSpan,ee.column.updateSpan).reverse().forEach((X=>_.prepend(Object.assign(X,{raws:{between:se.raws.between}}))));_.selectors=changeDuplicateAreaSelectors(_.selectors,X.selectors);if(te[ce].lastRule){te[ce].lastRule.after(_)}te[ce].lastRule=_;he=true}else if(X.hasDuplicates&&!X.params&&de&&ne.selector.includes(X.selectors[0])){ne.walkDecls(/-ms-grid-(row|column)/,(_=>_.remove()));getMSDecls(ee,ee.row.updateSpan,ee.column.updateSpan).reverse().forEach((_=>ne.prepend(Object.assign(_,{raws:{between:se.raws.between}}))))}else if(X.params){let ie=ne.clone();ie.removeAll();getMSDecls(ee,ee.row.updateSpan,ee.column.updateSpan).reverse().forEach((_=>ie.prepend(Object.assign(_,{raws:{between:se.raws.between}}))));if(X.hasDuplicates&&re){ie.selectors=changeDuplicateAreaSelectors(ie.selectors,X.selectors)}ie.raws=X.node.raws;if(_.index(X.node.parent)>ae){X.node.parent.append(ie)}else{te[ce][X.params].push(ie)}if(!he){te[ce].lastRule=oe||ne}}}return undefined}));Object.keys(te).forEach((_=>{let X=te[_];let ee=X.lastRule;Object.keys(X).reverse().filter((_=>_!=="lastRule")).forEach((_=>{if(X[_].length>0&&ee){ee.after({name:"media",params:_});ee.next().append(X[_])}}))}));return undefined}X.warnMissedAreas=warnMissedAreas;function warnMissedAreas(_,X,ee){let te=Object.keys(_);X.root().walkDecls("grid-area",(_=>{te=te.filter((X=>X!==_.value))}));if(te.length>0){X.warn(ee,"Can not find grid areas: "+te.join(", "))}return undefined}X.warnTemplateSelectorNotFound=warnTemplateSelectorNotFound;function warnTemplateSelectorNotFound(_,X){let ee=_.parent;let te=_.root();let se=false;let ne=re.space(ee.selector).filter((_=>_!==">")).slice(0,-1);if(ne.length>0){let ee=false;let ie=null;te.walkDecls(/grid-template(-areas)?$/,(X=>{let te=X.parent;let oe=te.selectors;let{areas:ae}=parseTemplate({decl:X,gap:getGridGap(X)});let le=ae[_.value];for(let _ of oe){if(ee){break}let X=re.space(_).filter((_=>_!==">"));ee=X.every(((_,X)=>_===ne[X]))}if(ee||!le){return true}if(!ie){ie=te.selector}if(ie&&ie!==te.selector){se=true}return undefined}));if(!ee&&se){_.warn(X,"Autoprefixer cannot find a grid-template "+`containing the duplicate grid-area "${_.value}" `+`with full selector matching: ${ne.join(" ")}`)}}}X.warnIfGridRowColumnExists=warnIfGridRowColumnExists;function warnIfGridRowColumnExists(_,X){let ee=_.parent;let te=[];ee.walkDecls(/^grid-(row|column)/,(_=>{if(!_.prop.endsWith("-end")&&!_.value.startsWith("span")&&!_.prop.endsWith("-gap")){te.push(_)}}));if(te.length>0){te.forEach((_=>{_.warn(X,"You already have a grid-area declaration present in the rule. "+`You should use either grid-area or ${_.prop}, not both`)}))}return undefined}X.getGridGap=getGridGap;function getGridGap(_){let X={};let ee=/^(grid-)?((row|column)-)?gap$/;_.parent.walkDecls(ee,(({prop:_,value:ee})=>{if(/^(grid-)?gap$/.test(_)){let[_,,re]=te(ee).nodes;X.row=_&&te.stringify(_);X.column=re?te.stringify(re):X.row}if(/^(grid-)?row-gap$/.test(_))X.row=ee;if(/^(grid-)?column-gap$/.test(_))X.column=ee}));return X}function parseMediaParams(_){if(!_){return[]}let X=te(_);let ee;let re;X.walk((_=>{if(_.type==="word"&&/min|max/g.test(_.value)){ee=_.value}else if(_.value.includes("px")){re=parseInt(_.value.replace(/\D/g,""))}}));return[ee,re]}function shouldInheritGap(_,X){let ee;let te=ie(_);let re=ie(X);if(te[0].lengthre[0].length){let _=te[0].reduce(((_,[X],ee)=>{let te=re[0][0][0];if(X===te){return ee}return false}),false);if(_){ee=re[0].every(((X,ee)=>X.every(((X,re)=>te[0].slice(_)[ee][re]===X))))}}else{ee=re.some((_=>_.every(((_,X)=>_.every(((_,ee)=>te[0][X][ee]===_))))))}return ee}X.inheritGridGap=inheritGridGap;function inheritGridGap(_,X){let ee=_.parent;let te=getParentMedia(ee);let re=ee.root();let se=ie(ee.selector);if(Object.keys(X).length>0){return false}let[oe]=parseMediaParams(te.params);let ae=se[0];let le=ne(ae[ae.length-1][0]);let ue=new RegExp(`(${le}$)|(${le}[,.])`);let ce;re.walkRules(ue,(_=>{let X;if(ee.toString()===_.toString()){return false}_.walkDecls("grid-gap",(_=>X=getGridGap(_)));if(!X||Object.keys(X).length===0){return true}if(!shouldInheritGap(ee.selector,_.selector)){return true}let te=getParentMedia(_);if(te){let _=parseMediaParams(te.params)[0];if(_===oe){ce=X;return true}}else{ce=X;return true}return undefined}));if(ce&&Object.keys(ce).length>0){return ce}return false}X.warnGridGap=warnGridGap;function warnGridGap({decl:_,gap:X,hasColumns:ee,result:te}){let re=X.row&&X.column;if(!ee&&(re||X.column&&!X.row)){delete X.column;_.warn(te,"Can not implement grid-gap without grid-template-columns")}}function normalizeRowColumn(_){let X=te(_).nodes.reduce(((_,X)=>{if(X.type==="function"&&X.value==="repeat"){let ee="count";let[re,se]=X.nodes.reduce(((_,X)=>{if(X.type==="word"&&ee==="count"){_[0]=Math.abs(parseInt(X.value));return _}if(X.type==="div"&&X.value===","){ee="value";return _}if(ee==="value"){_[1]+=te.stringify(X)}return _}),[0,""]);if(re){for(let X=0;X_.prop==="grid-template-rows"));let ne=normalizeRowColumn(se.value);let ie=normalizeRowColumn(_.value);let oe=ne.map(((_,X)=>Array.from({length:ie.length},((_,ee)=>ee+X*ie.length+1)).join(" ")));let ae=parseGridAreas({gap:ee,rows:oe});let le=Object.keys(ae);let ue=le.map((_=>ae[_]));if(te.includes("column")){ue=ue.sort(((_,X)=>_.column.start-X.column.start))}ue.reverse().forEach(((_,X)=>{let{column:ee,row:te}=_;let se=re.selectors.map((_=>_+` > *:nth-child(${le.length-X})`)).join(", ");let ne=re.clone().removeAll();ne.selector=se;ne.append({prop:"-ms-grid-row",value:te.start});ne.append({prop:"-ms-grid-column",value:ee.start});re.after(ne)}));return undefined}},1390:(_,X,ee)=>{let te=ee(4750);class ImageRendering extends te{check(_){return _.value==="pixelated"}normalize(){return"image-rendering"}prefixed(_,X){if(X==="-ms-"){return"-ms-interpolation-mode"}return super.prefixed(_,X)}process(_,X){return super.process(_,X)}set(_,X){if(X!=="-ms-")return super.set(_,X);_.prop="-ms-interpolation-mode";_.value="nearest-neighbor";return _}}ImageRendering.names=["image-rendering","interpolation-mode"];_.exports=ImageRendering},1119:(_,X,ee)=>{let te=ee(3129);class ImageSet extends te{replace(_,X){let ee=super.replace(_,X);if(X==="-webkit-"){ee=ee.replace(/("[^"]+"|'[^']+')(\s+\d+\w)/gi,"url($1)$2")}return ee}}ImageSet.names=["image-set"];_.exports=ImageSet},2993:(_,X,ee)=>{let te=ee(4750);class InlineLogical extends te{normalize(_){return _.replace(/(margin|padding|border)-(start|end)/,"$1-inline-$2")}prefixed(_,X){return X+_.replace("-inline","")}}InlineLogical.names=["border-inline-start","border-inline-end","margin-inline-start","margin-inline-end","padding-inline-start","padding-inline-end","border-start","border-end","margin-start","margin-end","padding-start","padding-end"];_.exports=InlineLogical},5204:(_,X,ee)=>{let te=ee(2097);let re=ee(3129);function regexp(_){return new RegExp(`(^|[\\s,(])(${_}($|[\\s),]))`,"gi")}class Intrinsic extends re{add(_,X){if(_.prop.includes("grid")&&X!=="-webkit-"){return undefined}return super.add(_,X)}isStretch(){return this.name==="stretch"||this.name==="fill"||this.name==="fill-available"}old(_){let X=_+this.name;if(this.isStretch()){if(_==="-moz-"){X="-moz-available"}else if(_==="-webkit-"){X="-webkit-fill-available"}}return new te(this.name,X,X,regexp(X))}regexp(){if(!this.regexpCache)this.regexpCache=regexp(this.name);return this.regexpCache}replace(_,X){if(X==="-moz-"&&this.isStretch()){return _.replace(this.regexp(),"$1-moz-available$3")}if(X==="-webkit-"&&this.isStretch()){return _.replace(this.regexp(),"$1-webkit-fill-available$3")}return super.replace(_,X)}}Intrinsic.names=["max-content","min-content","fit-content","fill","fill-available","stretch"];_.exports=Intrinsic},2982:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class JustifyContent extends te{normalize(){return"justify-content"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2009){return X+"box-pack"}if(ee===2012){return X+"flex-pack"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2009||ee===2012){let te=JustifyContent.oldValues[_.value]||_.value;_.value=te;if(ee!==2009||te!=="distribute"){return super.set(_,X)}}else if(ee==="final"){return super.set(_,X)}return undefined}}JustifyContent.names=["justify-content","flex-pack","box-pack"];JustifyContent.oldValues={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"};_.exports=JustifyContent},493:(_,X,ee)=>{let te=ee(4750);class MaskBorder extends te{normalize(){return this.name.replace("box-image","border")}prefixed(_,X){let ee=super.prefixed(_,X);if(X==="-webkit-"){ee=ee.replace("border","box-image")}return ee}}MaskBorder.names=["mask-border","mask-border-source","mask-border-slice","mask-border-width","mask-border-outset","mask-border-repeat","mask-box-image","mask-box-image-source","mask-box-image-slice","mask-box-image-width","mask-box-image-outset","mask-box-image-repeat"];_.exports=MaskBorder},2782:(_,X,ee)=>{let te=ee(4750);class MaskComposite extends te{insert(_,X,ee){let te=_.prop==="mask-composite";let re;if(te){re=_.value.split(",")}else{re=_.value.match(MaskComposite.regexp)||[]}re=re.map((_=>_.trim())).filter((_=>_));let se=re.length;let ne;if(se){ne=this.clone(_);ne.value=re.map((_=>MaskComposite.oldValues[_]||_)).join(", ");if(re.includes("intersect")){ne.value+=", xor"}ne.prop=X+"mask-composite"}if(te){if(!se){return undefined}if(this.needCascade(_)){ne.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,ne)}let ie=this.clone(_);ie.prop=X+ie.prop;if(se){ie.value=ie.value.replace(MaskComposite.regexp,"")}if(this.needCascade(_)){ie.raws.before=this.calcBefore(ee,_,X)}_.parent.insertBefore(_,ie);if(!se){return _}if(this.needCascade(_)){ne.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,ne)}}MaskComposite.names=["mask","mask-composite"];MaskComposite.oldValues={add:"source-over",exclude:"xor",intersect:"source-in",subtract:"source-out"};MaskComposite.regexp=new RegExp(`\\s+(${Object.keys(MaskComposite.oldValues).join("|")})\\b(?!\\))\\s*(?=[,])`,"ig");_.exports=MaskComposite},9320:(_,X,ee)=>{let te=ee(4750);let re=ee(1902);class Order extends te{normalize(){return"order"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2009){return X+"box-ordinal-group"}if(ee===2012){return X+"flex-order"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2009&&/\d/.test(_.value)){_.value=(parseInt(_.value)+1).toString();return super.set(_,X)}return super.set(_,X)}}Order.names=["order","flex-order","box-ordinal-group"];_.exports=Order},2405:(_,X,ee)=>{let te=ee(4750);class OverscrollBehavior extends te{normalize(){return"overscroll-behavior"}prefixed(_,X){return X+"scroll-chaining"}set(_,X){if(_.value==="auto"){_.value="chained"}else if(_.value==="none"||_.value==="contain"){_.value="none"}return super.set(_,X)}}OverscrollBehavior.names=["overscroll-behavior","scroll-chaining"];_.exports=OverscrollBehavior},5017:(_,X,ee)=>{let te=ee(2097);let re=ee(3129);class Pixelated extends re{old(_){if(_==="-webkit-"){return new te(this.name,"-webkit-optimize-contrast")}if(_==="-moz-"){return new te(this.name,"-moz-crisp-edges")}return super.old(_)}replace(_,X){if(X==="-webkit-"){return _.replace(this.regexp(),"$1-webkit-optimize-contrast")}if(X==="-moz-"){return _.replace(this.regexp(),"$1-moz-crisp-edges")}return super.replace(_,X)}}Pixelated.names=["pixelated"];_.exports=Pixelated},7669:(_,X,ee)=>{let te=ee(4750);let re=ee(9850);class PlaceSelf extends te{insert(_,X,ee){if(X!=="-ms-")return super.insert(_,X,ee);if(_.parent.some((_=>_.prop==="-ms-grid-row-align"))){return undefined}let[[te,se]]=re.parse(_);if(se){re.insertDecl(_,"grid-row-align",te);re.insertDecl(_,"grid-column-align",se)}else{re.insertDecl(_,"grid-row-align",te);re.insertDecl(_,"grid-column-align",te)}return undefined}}PlaceSelf.names=["place-self"];_.exports=PlaceSelf},4655:(_,X,ee)=>{let te=ee(7276);class PlaceholderShown extends te{prefixed(_){if(_==="-moz-"){return":-moz-placeholder"}else if(_==="-ms-"){return":-ms-input-placeholder"}return`:${_}placeholder-shown`}}PlaceholderShown.names=[":placeholder-shown"];_.exports=PlaceholderShown},9818:(_,X,ee)=>{let te=ee(7276);class Placeholder extends te{possible(){return super.possible().concat(["-moz- old","-ms- old"])}prefixed(_){if(_==="-webkit-"){return"::-webkit-input-placeholder"}if(_==="-ms-"){return"::-ms-input-placeholder"}if(_==="-ms- old"){return":-ms-input-placeholder"}if(_==="-moz- old"){return":-moz-placeholder"}return`::${_}placeholder`}}Placeholder.names=["::placeholder"];_.exports=Placeholder},8881:(_,X,ee)=>{let te=ee(4750);class PrintColorAdjust extends te{normalize(){return"print-color-adjust"}prefixed(_,X){if(X==="-moz-"){return"color-adjust"}else{return X+"print-color-adjust"}}}PrintColorAdjust.names=["print-color-adjust","color-adjust"];_.exports=PrintColorAdjust},2066:(_,X,ee)=>{let te=ee(4750);class TextDecorationSkipInk extends te{set(_,X){if(_.prop==="text-decoration-skip-ink"&&_.value==="auto"){_.prop=X+"text-decoration-skip";_.value="ink";return _}else{return super.set(_,X)}}}TextDecorationSkipInk.names=["text-decoration-skip-ink","text-decoration-skip"];_.exports=TextDecorationSkipInk},9187:(_,X,ee)=>{let te=ee(4750);const re=["none","underline","overline","line-through","blink","inherit","initial","unset"];class TextDecoration extends te{check(_){return _.value.split(/\s+/).some((_=>!re.includes(_)))}}TextDecoration.names=["text-decoration"];_.exports=TextDecoration},7598:(_,X,ee)=>{let te=ee(4750);class TextEmphasisPosition extends te{set(_,X){if(X==="-webkit-"){_.value=_.value.replace(/\s*(right|left)\s*/i,"")}return super.set(_,X)}}TextEmphasisPosition.names=["text-emphasis-position"];_.exports=TextEmphasisPosition},8563:(_,X,ee)=>{let te=ee(4750);class TransformDecl extends te{contain3d(_){if(_.prop==="transform-origin"){return false}for(let X of TransformDecl.functions3d){if(_.value.includes(`${X}(`)){return true}}return false}insert(_,X,ee){if(X==="-ms-"){if(!this.contain3d(_)&&!this.keyframeParents(_)){return super.insert(_,X,ee)}}else if(X==="-o-"){if(!this.contain3d(_)){return super.insert(_,X,ee)}}else{return super.insert(_,X,ee)}return undefined}keyframeParents(_){let{parent:X}=_;while(X){if(X.type==="atrule"&&X.name==="keyframes"){return true}({parent:X}=X)}return false}set(_,X){_=super.set(_,X);if(X==="-ms-"){_.value=_.value.replace(/rotatez/gi,"rotate")}return _}}TransformDecl.names=["transform","transform-origin"];TransformDecl.functions3d=["matrix3d","translate3d","translateZ","scale3d","scaleZ","rotate3d","rotateX","rotateY","perspective"];_.exports=TransformDecl},5959:(_,X,ee)=>{let te=ee(4750);class UserSelect extends te{insert(_,X,ee){if(_.value==="all"&&X==="-ms-"){return undefined}else if(_.value==="contain"&&(X==="-moz-"||X==="-webkit-")){return undefined}else{return super.insert(_,X,ee)}}set(_,X){if(X==="-ms-"&&_.value==="contain"){_.value="element"}return super.set(_,X)}}UserSelect.names=["user-select"];_.exports=UserSelect},801:(_,X,ee)=>{let te=ee(4750);class WritingMode extends te{insert(_,X,ee){if(X==="-ms-"){let te=this.set(this.clone(_),X);if(this.needCascade(_)){te.raws.before=this.calcBefore(ee,_,X)}let re="ltr";_.parent.nodes.forEach((_=>{if(_.prop==="direction"){if(_.value==="rtl"||_.value==="ltr")re=_.value}}));te.value=WritingMode.msValues[re][_.value]||_.value;return _.parent.insertBefore(_,te)}return super.insert(_,X,ee)}}WritingMode.names=["writing-mode"];WritingMode.msValues={ltr:{"horizontal-tb":"lr-tb","vertical-lr":"tb-lr","vertical-rl":"tb-rl"},rtl:{"horizontal-tb":"rl-tb","vertical-lr":"bt-lr","vertical-rl":"bt-rl"}};_.exports=WritingMode},3872:(_,X,ee)=>{let te=ee(4907);function capitalize(_){return _.slice(0,1).toUpperCase()+_.slice(1)}const re={and_chr:"Chrome for Android",and_ff:"Firefox for Android",and_qq:"QQ Browser",and_uc:"UC for Android",baidu:"Baidu Browser",ie:"IE",ie_mob:"IE Mobile",ios_saf:"iOS Safari",kaios:"KaiOS Browser",op_mini:"Opera Mini",op_mob:"Opera Mobile",samsung:"Samsung Internet"};function prefix(_,X,ee){let te=` ${_}`;if(ee)te+=" *";te+=": ";te+=X.map((_=>_.replace(/^-(.*)-$/g,"$1"))).join(", ");te+="\n";return te}_.exports=function(_){if(_.browsers.selected.length===0){return"No browsers selected"}let X={};for(let ee of _.browsers.selected){let _=ee.split(" ");let te=_[0];let se=_[1];te=re[te]||capitalize(te);if(X[te]){X[te].push(se)}else{X[te]=[se]}}let ee="Browsers:\n";for(let _ in X){let te=X[_];te=te.sort(((_,X)=>parseFloat(X)-parseFloat(_)));ee+=` ${_}: ${te.join(", ")}\n`}let se=te.coverage(_.browsers.selected);let ne=Math.round(se*100)/100;ee+=`\nThese browsers account for ${ne}% of all users globally\n`;let ie=[];for(let X in _.add){let ee=_.add[X];if(X[0]==="@"&&ee.prefixes){ie.push(prefix(X,ee.prefixes))}}if(ie.length>0){ee+=`\nAt-Rules:\n${ie.sort().join("")}`}let oe=[];for(let X of _.add.selectors){if(X.prefixes){oe.push(prefix(X.name,X.prefixes))}}if(oe.length>0){ee+=`\nSelectors:\n${oe.sort().join("")}`}let ae=[];let le=[];let ue=false;for(let X in _.add){let ee=_.add[X];if(X[0]!=="@"&&ee.prefixes){let _=X.indexOf("grid-")===0;if(_)ue=true;le.push(prefix(X,ee.prefixes,_))}if(!Array.isArray(ee.values)){continue}for(let _ of ee.values){let X=_.name.includes("grid");if(X)ue=true;let ee=prefix(_.name,_.prefixes,X);if(!ae.includes(ee)){ae.push(ee)}}}if(le.length>0){ee+=`\nProperties:\n${le.sort().join("")}`}if(ae.length>0){ee+=`\nValues:\n${ae.sort().join("")}`}if(ue){ee+="\n* - Prefixes will be added only on grid: true option.\n"}if(!ie.length&&!oe.length&&!le.length&&!ae.length){ee+="\nAwesome! Your browsers don't require any vendor prefixes."+"\nNow you can remove Autoprefixer from build steps."}return ee}},9830:_=>{class OldSelector{constructor(_,X){this.prefix=X;this.prefixed=_.prefixed(this.prefix);this.regexp=_.regexp(this.prefix);this.prefixeds=_.possible().map((X=>[_.prefixed(X),_.regexp(X)]));this.unprefixed=_.name;this.nameRegexp=_.regexp()}check(_){if(!_.selector.includes(this.prefixed)){return false}if(!_.selector.match(this.regexp)){return false}if(this.isHack(_)){return false}return true}isHack(_){let X=_.parent.index(_)+1;let ee=_.parent.nodes;while(X{let te=ee(699);class OldValue{constructor(_,X,ee,re){this.unprefixed=_;this.prefixed=X;this.string=ee||X;this.regexp=re||te.regexp(X)}check(_){if(_.includes(this.string)){return!!_.match(this.regexp)}return false}}_.exports=OldValue},9511:(_,X,ee)=>{let te=ee(8277);let re=ee(699);let se=ee(8853);function clone(_,X){let ee=new _.constructor;for(let te of Object.keys(_||{})){let re=_[te];if(te==="parent"&&typeof re==="object"){if(X){ee[te]=X}}else if(te==="source"||te===null){ee[te]=re}else if(Array.isArray(re)){ee[te]=re.map((_=>clone(_,ee)))}else if(te!=="_autoprefixerPrefix"&&te!=="_autoprefixerValues"&&te!=="proxyCache"){if(typeof re==="object"&&re!==null){re=clone(re,ee)}ee[te]=re}}return ee}class Prefixer{constructor(_,X,ee){this.prefixes=X;this.name=_;this.all=ee}static clone(_,X){let ee=clone(_);for(let _ in X){ee[_]=X[_]}return ee}static hack(_){if(!this.hacks){this.hacks={}}return _.names.map((X=>{this.hacks[X]=_;return this.hacks[X]}))}static load(_,X,ee){let te=this.hacks&&this.hacks[_];if(te){return new te(_,X,ee)}else{return new this(_,X,ee)}}clone(_,X){return Prefixer.clone(_,X)}parentPrefix(_){let X;if(typeof _._autoprefixerPrefix!=="undefined"){X=_._autoprefixerPrefix}else if(_.type==="decl"&&_.prop[0]==="-"){X=se.prefix(_.prop)}else if(_.type==="root"){X=false}else if(_.type==="rule"&&_.selector.includes(":-")&&/:(-\w+-)/.test(_.selector)){X=_.selector.match(/:(-\w+-)/)[1]}else if(_.type==="atrule"&&_.name[0]==="-"){X=se.prefix(_.name)}else{X=this.parentPrefix(_.parent)}if(!te.prefixes().includes(X)){X=false}_._autoprefixerPrefix=X;return _._autoprefixerPrefix}process(_,X){if(!this.check(_)){return undefined}let ee=this.parentPrefix(_);let te=this.prefixes.filter((_=>!ee||ee===re.removeNote(_)));let se=[];for(let ee of te){if(this.add(_,ee,se.concat([ee]),X)){se.push(ee)}}return se}}_.exports=Prefixer},4848:(_,X,ee)=>{let te=ee(1318);let re=ee(8277);let se=ee(4750);let ne=ee(3740);let ie=ee(1262);let oe=ee(2537);let ae=ee(5136);let le=ee(256);let ue=ee(2087);let ce=ee(6921);let pe=ee(8641);let fe=ee(2100);let de=ee(305);let he=ee(6162);let me=ee(4917);let ge=ee(2928);let be=ee(6575);let ve=ee(6700);let ye=ee(6898);let we=ee(3594);let xe=ee(8706);let ke=ee(4653);let Se=ee(9591);let _e=ee(5);let Pe=ee(4927);let Oe=ee(2346);let je=ee(5238);let Te=ee(5713);let Ee=ee(4690);let Fe=ee(4799);let Me=ee(2118);let $e=ee(3725);let Re=ee(1218);let Ae=ee(397);let qe=ee(1446);let ze=ee(1909);let Ge=ee(9762);let Ue=ee(1461);let He=ee(6955);let Ze=ee(9104);let Ke=ee(1390);let Xe=ee(1119);let et=ee(2993);let tt=ee(5204);let rt=ee(2982);let st=ee(493);let nt=ee(2782);let it=ee(9320);let ot=ee(2405);let lt=ee(5017);let ut=ee(7669);let ct=ee(9818);let pt=ee(4655);let ft=ee(8881);let dt=ee(9187);let ht=ee(2066);let mt=ee(7598);let gt=ee(8563);let bt=ee(5959);let vt=ee(801);let yt=ee(2140);let wt=ee(7876);let xt=ee(7276);let kt=ee(9159);let St=ee(3398);let _t=ee(699);let Pt=ee(3129);let Ot=ee(8853);xt.hack(ue);xt.hack(Fe);xt.hack(ct);xt.hack(pt);xt.hack(we);se.hack(Se);se.hack(it);se.hack(xe);se.hack(Ae);se.hack(ae);se.hack(Oe);se.hack(je);se.hack(Ee);se.hack($e);se.hack(ut);se.hack(Ue);se.hack(oe);se.hack(le);se.hack(_e);se.hack(st);se.hack(nt);se.hack(ie);se.hack(bt);se.hack(Te);se.hack(ge);se.hack(vt);se.hack(he);se.hack(ne);se.hack(me);se.hack(de);se.hack(He);se.hack(et);se.hack(qe);se.hack(gt);se.hack(Pe);se.hack(Ke);se.hack(ce);se.hack(pe);se.hack(dt);se.hack(rt);se.hack(fe);se.hack(ze);se.hack(Ge);se.hack(Re);se.hack(ot);se.hack(Ze);se.hack(ft);se.hack(mt);se.hack(ht);Pt.hack(Me);Pt.hack(tt);Pt.hack(lt);Pt.hack(Xe);Pt.hack(be);Pt.hack(ve);Pt.hack(ye);Pt.hack(ke);let Ct=new Map;class Prefixes{constructor(_,X,ee={}){this.data=_;this.browsers=X;this.options=ee;[this.add,this.remove]=this.preprocess(this.select(this.data));this.transition=new St(this);this.processor=new yt(this)}cleaner(){if(this.cleanerCache){return this.cleanerCache}if(this.browsers.selected.length){let _=new re(this.browsers.data,[]);this.cleanerCache=new Prefixes(this.data,_,this.options)}else{return this}return this.cleanerCache}decl(_){if(!Ct.has(_)){Ct.set(_,se.load(_))}return Ct.get(_)}group(_){let X=_.parent;let ee=X.index(_);let{length:te}=X.nodes;let se=this.unprefixed(_.prop);let checker=(_,ne)=>{ee+=_;while(ee>=0&&ee{let X=_.split(" ");return{browser:`${X[0]} ${X[1]}`,note:X[2]}}));let se=re.filter((_=>_.note)).map((_=>`${this.browsers.prefix(_.browser)} ${_.note}`));se=_t.uniq(se);re=re.filter((_=>this.browsers.isSelected(_.browser))).map((_=>{let X=this.browsers.prefix(_.browser);if(_.note){return`${X} ${_.note}`}else{return X}}));re=this.sort(_t.uniq(re));if(this.options.flexbox==="no-2009"){re=re.filter((_=>!_.includes("2009")))}let ne=te.browsers.map((_=>this.browsers.prefix(_)));if(te.mistakes){ne=ne.concat(te.mistakes)}ne=ne.concat(se);ne=_t.uniq(ne);if(re.length){X.add[ee]=re;if(re.length!re.includes(_)))}}else{X.remove[ee]=ne}}return X}sort(_){return _.sort(((_,X)=>{let ee=_t.removeNote(_).length;let te=_t.removeNote(X).length;if(ee===te){return X.length-_.length}else{return te-ee}}))}unprefixed(_){let X=this.normalize(Ot.unprefixed(_));if(X==="flex-direction"){X="flex-flow"}return X}values(_,X){let ee=this[_];let te=ee["*"]&&ee["*"].values;let re=ee[X]&&ee[X].values;if(te&&re){return _t.uniq(te.concat(re))}else{return te||re||[]}}}_.exports=Prefixes},2140:(_,X,ee)=>{let te=ee(2045);let re=ee(3129);let se=ee(9850).insertAreas;const ne=/(^|[^-])linear-gradient\(\s*(top|left|right|bottom)/i;const ie=/(^|[^-])radial-gradient\(\s*\d+(\w*|%)\s+\d+(\w*|%)\s*,/i;const oe=/(!\s*)?autoprefixer:\s*ignore\s+next/i;const ae=/(!\s*)?autoprefixer\s*grid:\s*(on|off|(no-)?autoplace)/i;const le=["width","height","min-width","max-width","min-height","max-height","inline-size","min-inline-size","max-inline-size","block-size","min-block-size","max-block-size"];function hasGridTemplate(_){return _.parent.some((_=>_.prop==="grid-template"||_.prop==="grid-template-areas"))}function hasRowsAndColumns(_){let X=_.parent.some((_=>_.prop==="grid-template-rows"));let ee=_.parent.some((_=>_.prop==="grid-template-columns"));return X&&ee}class Processor{constructor(_){this.prefixes=_}add(_,X){let ee=this.prefixes.add["@resolution"];let oe=this.prefixes.add["@keyframes"];let ae=this.prefixes.add["@viewport"];let ue=this.prefixes.add["@supports"];_.walkAtRules((_=>{if(_.name==="keyframes"){if(!this.disabled(_,X)){return oe&&oe.process(_)}}else if(_.name==="viewport"){if(!this.disabled(_,X)){return ae&&ae.process(_)}}else if(_.name==="supports"){if(this.prefixes.options.supports!==false&&!this.disabled(_,X)){return ue.process(_)}}else if(_.name==="media"&&_.params.includes("-resolution")){if(!this.disabled(_,X)){return ee&&ee.process(_)}}return undefined}));_.walkRules((_=>{if(this.disabled(_,X))return undefined;return this.prefixes.add.selectors.map((ee=>ee.process(_,X)))}));function insideGrid(_){return _.parent.nodes.some((_=>{if(_.type!=="decl")return false;let X=_.prop==="display"&&/(inline-)?grid/.test(_.value);let ee=_.prop.startsWith("grid-template");let te=/^grid-([A-z]+-)?gap/.test(_.prop);return X||ee||te}))}let ce=this.gridStatus(_,X)&&this.prefixes.add["grid-area"]&&this.prefixes.add["grid-area"].prefixes;_.walkDecls((_=>{if(this.disabledDecl(_,X))return undefined;let ee=_.parent;let re=_.prop;let se=_.value;if(re==="color-adjust"){if(ee.every((_=>_.prop!=="print-color-adjust"))){X.warn("Replace color-adjust to print-color-adjust. "+"The color-adjust shorthand is currently deprecated.",{node:_})}}else if(re==="grid-row-span"){X.warn("grid-row-span is not part of final Grid Layout. Use grid-row.",{node:_});return undefined}else if(re==="grid-column-span"){X.warn("grid-column-span is not part of final Grid Layout. Use grid-column.",{node:_});return undefined}else if(re==="display"&&se==="box"){X.warn("You should write display: flex by final spec "+"instead of display: box",{node:_});return undefined}else if(re==="text-emphasis-position"){if(se==="under"||se==="over"){X.warn("You should use 2 values for text-emphasis-position "+"For example, `under left` instead of just `under`.",{node:_})}}else if(re==="text-decoration-skip"&&se==="ink"){X.warn("Replace text-decoration-skip: ink to "+"text-decoration-skip-ink: auto, because spec had been changed",{node:_})}else{if(ce&&this.gridStatus(_,X)){if(_.value==="subgrid"){X.warn("IE does not support subgrid",{node:_})}if(/^(align|justify|place)-items$/.test(re)&&insideGrid(_)){let ee=re.replace("-items","-self");X.warn(`IE does not support ${re} on grid containers. `+`Try using ${ee} on child elements instead: `+`${_.parent.selector} > * { ${ee}: ${_.value} }`,{node:_})}else if(/^(align|justify|place)-content$/.test(re)&&insideGrid(_)){X.warn(`IE does not support ${_.prop} on grid containers`,{node:_})}else if(re==="display"&&_.value==="contents"){X.warn("Please do not use display: contents; "+"if you have grid setting enabled",{node:_});return undefined}else if(_.prop==="grid-gap"){let ee=this.gridStatus(_,X);if(ee==="autoplace"&&!hasRowsAndColumns(_)&&!hasGridTemplate(_)){X.warn("grid-gap only works if grid-template(-areas) is being "+"used or both rows and columns have been declared "+"and cells have not been manually "+"placed inside the explicit grid",{node:_})}else if((ee===true||ee==="no-autoplace")&&!hasGridTemplate(_)){X.warn("grid-gap only works if grid-template(-areas) is being used",{node:_})}}else if(re==="grid-auto-columns"){X.warn("grid-auto-columns is not supported by IE",{node:_});return undefined}else if(re==="grid-auto-rows"){X.warn("grid-auto-rows is not supported by IE",{node:_});return undefined}else if(re==="grid-auto-flow"){let te=ee.some((_=>_.prop==="grid-template-rows"));let re=ee.some((_=>_.prop==="grid-template-columns"));if(hasGridTemplate(_)){X.warn("grid-auto-flow is not supported by IE",{node:_})}else if(se.includes("dense")){X.warn("grid-auto-flow: dense is not supported by IE",{node:_})}else if(!te&&!re){X.warn("grid-auto-flow works only if grid-template-rows and "+"grid-template-columns are present in the same rule",{node:_})}return undefined}else if(se.includes("auto-fit")){X.warn("auto-fit value is not supported by IE",{node:_,word:"auto-fit"});return undefined}else if(se.includes("auto-fill")){X.warn("auto-fill value is not supported by IE",{node:_,word:"auto-fill"});return undefined}else if(re.startsWith("grid-template")&&se.includes("[")){X.warn("Autoprefixer currently does not support line names. "+"Try using grid-template-areas instead.",{node:_,word:"["})}}if(se.includes("radial-gradient")){if(ie.test(_.value)){X.warn("Gradient has outdated direction syntax. "+"New syntax is like `closest-side at 0 0` "+"instead of `0 0, closest-side`.",{node:_})}else{let ee=te(se);for(let te of ee.nodes){if(te.type==="function"&&te.value==="radial-gradient"){for(let ee of te.nodes){if(ee.type==="word"){if(ee.value==="cover"){X.warn("Gradient has outdated direction syntax. "+"Replace `cover` to `farthest-corner`.",{node:_})}else if(ee.value==="contain"){X.warn("Gradient has outdated direction syntax. "+"Replace `contain` to `closest-side`.",{node:_})}}}}}}}if(se.includes("linear-gradient")){if(ne.test(se)){X.warn("Gradient has outdated direction syntax. "+"New syntax is like `to left` instead of `right`.",{node:_})}}}if(le.includes(_.prop)){if(!_.value.includes("-fill-available")){if(_.value.includes("fill-available")){X.warn("Replace fill-available to stretch, "+"because spec had been changed",{node:_})}else if(_.value.includes("fill")){let ee=te(se);if(ee.nodes.some((_=>_.type==="word"&&_.value==="fill"))){X.warn("Replace fill to stretch, because spec had been changed",{node:_})}}}}let oe;if(_.prop==="transition"||_.prop==="transition-property"){return this.prefixes.transition.add(_,X)}else if(_.prop==="align-self"){let ee=this.displayType(_);if(ee!=="grid"&&this.prefixes.options.flexbox!==false){oe=this.prefixes.add["align-self"];if(oe&&oe.prefixes){oe.process(_)}}if(this.gridStatus(_,X)!==false){oe=this.prefixes.add["grid-row-align"];if(oe&&oe.prefixes){return oe.process(_,X)}}}else if(_.prop==="justify-self"){if(this.gridStatus(_,X)!==false){oe=this.prefixes.add["grid-column-align"];if(oe&&oe.prefixes){return oe.process(_,X)}}}else if(_.prop==="place-self"){oe=this.prefixes.add["place-self"];if(oe&&oe.prefixes&&this.gridStatus(_,X)!==false){return oe.process(_,X)}}else{oe=this.prefixes.add[_.prop];if(oe&&oe.prefixes){return oe.process(_,X)}}return undefined}));if(this.gridStatus(_,X)){se(_,this.disabled)}return _.walkDecls((_=>{if(this.disabledValue(_,X))return;let ee=this.prefixes.unprefixed(_.prop);let te=this.prefixes.values("add",ee);if(Array.isArray(te)){for(let ee of te){if(ee.process)ee.process(_,X)}}re.save(this.prefixes,_)}))}disabled(_,X){if(!_)return false;if(_._autoprefixerDisabled!==undefined){return _._autoprefixerDisabled}if(_.parent){let X=_.prev();if(X&&X.type==="comment"&&oe.test(X.text)){_._autoprefixerDisabled=true;_._autoprefixerSelfDisabled=true;return true}}let ee=null;if(_.nodes){let te;_.each((_=>{if(_.type!=="comment")return;if(/(!\s*)?autoprefixer:\s*(off|on)/i.test(_.text)){if(typeof te!=="undefined"){X.warn("Second Autoprefixer control comment "+"was ignored. Autoprefixer applies control "+"comment to whole block, not to next rules.",{node:_})}else{te=/on/i.test(_.text)}}}));if(te!==undefined){ee=!te}}if(!_.nodes||ee===null){if(_.parent){let te=this.disabled(_.parent,X);if(_.parent._autoprefixerSelfDisabled===true){ee=false}else{ee=te}}else{ee=false}}_._autoprefixerDisabled=ee;return ee}disabledDecl(_,X){if(_.type==="decl"&&this.gridStatus(_,X)===false){if(_.prop.includes("grid")||_.prop==="justify-items"){return true}}if(_.type==="decl"&&this.prefixes.options.flexbox===false){let X=["order","justify-content","align-items","align-content"];if(_.prop.includes("flex")||X.includes(_.prop)){return true}}return this.disabled(_,X)}disabledValue(_,X){if(this.gridStatus(_,X)===false&&_.type==="decl"){if(_.prop==="display"&&_.value.includes("grid")){return true}}if(this.prefixes.options.flexbox===false&&_.type==="decl"){if(_.prop==="display"&&_.value.includes("flex")){return true}}if(_.type==="decl"&&_.prop==="content"){return true}return this.disabled(_,X)}displayType(_){for(let X of _.parent.nodes){if(X.prop!=="display"){continue}if(X.value.includes("flex")){return"flex"}if(X.value.includes("grid")){return"grid"}}return false}gridStatus(_,X){if(!_)return false;if(_._autoprefixerGridStatus!==undefined){return _._autoprefixerGridStatus}let ee=null;if(_.nodes){let te;_.each((_=>{if(_.type!=="comment")return;if(ae.test(_.text)){let ee=/:\s*autoplace/i.test(_.text);let re=/no-autoplace/i.test(_.text);if(typeof te!=="undefined"){X.warn("Second Autoprefixer grid control comment was "+"ignored. Autoprefixer applies control comments to the whole "+"block, not to the next rules.",{node:_})}else if(ee){te="autoplace"}else if(re){te=true}else{te=/on/i.test(_.text)}}}));if(te!==undefined){ee=te}}if(_.type==="atrule"&&_.name==="supports"){let X=_.params;if(X.includes("grid")&&X.includes("auto")){ee=false}}if(!_.nodes||ee===null){if(_.parent){let te=this.gridStatus(_.parent,X);if(_.parent._autoprefixerSelfDisabled===true){ee=false}else{ee=te}}else if(typeof this.prefixes.options.grid!=="undefined"){ee=this.prefixes.options.grid}else if(typeof process.env.AUTOPREFIXER_GRID!=="undefined"){if(process.env.AUTOPREFIXER_GRID==="autoplace"){ee="autoplace"}else{ee=true}}else{ee=false}}_._autoprefixerGridStatus=ee;return ee}reduceSpaces(_){let X=false;this.prefixes.group(_).up((()=>{X=true;return true}));if(X){return}let ee=_.raw("before").split("\n");let te=ee[ee.length-1].length;let re=false;this.prefixes.group(_).down((_=>{ee=_.raw("before").split("\n");let X=ee.length-1;if(ee[X].length>te){if(re===false){re=ee[X].length-te}ee[X]=ee[X].slice(0,-re);_.raws.before=ee.join("\n")}}))}remove(_,X){let ee=this.prefixes.remove["@resolution"];_.walkAtRules(((_,te)=>{if(this.prefixes.remove[`@${_.name}`]){if(!this.disabled(_,X)){_.parent.removeChild(te)}}else if(_.name==="media"&&_.params.includes("-resolution")&&ee){ee.clean(_)}}));_.walkRules(((_,ee)=>{if(this.disabled(_,X))return;for(let X of this.prefixes.remove.selectors){if(X.check(_)){_.parent.removeChild(ee);return}}}));return _.walkDecls(((_,ee)=>{if(this.disabled(_,X))return;let te=_.parent;let re=this.prefixes.unprefixed(_.prop);if(_.prop==="transition"||_.prop==="transition-property"){this.prefixes.transition.remove(_)}if(this.prefixes.remove[_.prop]&&this.prefixes.remove[_.prop].remove){let X=this.prefixes.group(_).down((_=>this.prefixes.normalize(_.prop)===re));if(re==="flex-flow"){X=true}if(_.prop==="-webkit-box-orient"){let X={"flex-direction":true,"flex-flow":true};if(!_.parent.some((_=>X[_.prop])))return}if(X&&!this.withHackValue(_)){if(_.raw("before").includes("\n")){this.reduceSpaces(_)}te.removeChild(ee);return}}for(let X of this.prefixes.values("remove",re)){if(!X.check)continue;if(!X.check(_.value))continue;re=X.unprefixed;let se=this.prefixes.group(_).down((_=>_.value.includes(re)));if(se){te.removeChild(ee);return}}}))}withHackValue(_){return _.prop==="-webkit-background-clip"&&_.value==="text"||_.prop==="-webkit-box-orient"&&_.parent.some((_=>_.prop==="-webkit-line-clamp"))}}_.exports=Processor},7876:(_,X,ee)=>{let te=ee(725);let re=ee(9511);let se=ee(699);const ne=/(min|max)-resolution\s*:\s*\d*\.?\d+(dppx|dpcm|dpi|x)/gi;const ie=/(min|max)-resolution(\s*:\s*)(\d*\.?\d+)(dppx|dpcm|dpi|x)/i;class Resolution extends re{clean(_){if(!this.bad){this.bad=[];for(let _ of this.prefixes){this.bad.push(this.prefixName(_,"min"));this.bad.push(this.prefixName(_,"max"))}}_.params=se.editList(_.params,(_=>_.filter((_=>this.bad.every((X=>!_.includes(X)))))))}prefixName(_,X){if(_==="-moz-"){return X+"--moz-device-pixel-ratio"}else{return _+X+"-device-pixel-ratio"}}prefixQuery(_,X,ee,re,se){re=new te(re);if(se==="dpi"){re=re.div(96)}else if(se==="dpcm"){re=re.mul(2.54).div(96)}re=re.simplify();if(_==="-o-"){re=re.n+"/"+re.d}return this.prefixName(_,X)+ee+re}process(_){let X=this.parentPrefix(_);let ee=X?[X]:this.prefixes;_.params=se.editList(_.params,((_,X)=>{for(let te of _){if(!te.includes("min-resolution")&&!te.includes("max-resolution")){X.push(te);continue}for(let _ of ee){let ee=te.replace(ne,(X=>{let ee=X.match(ie);return this.prefixQuery(_,ee[1],ee[2],ee[3],ee[4])}));X.push(ee)}X.push(te)}return se.uniq(X)}))}}_.exports=Resolution},7276:(_,X,ee)=>{let{list:te}=ee(977);let re=ee(8277);let se=ee(9830);let ne=ee(9511);let ie=ee(699);class Selector extends ne{constructor(_,X,ee){super(_,X,ee);this.regexpCache=new Map}add(_,X){let ee=this.prefixeds(_);if(this.already(_,ee,X)){return}let te=this.clone(_,{selector:ee[this.name][X]});_.parent.insertBefore(_,te)}already(_,X,ee){let te=_.parent.index(_)-1;while(te>=0){let re=_.parent.nodes[te];if(re.type!=="rule"){return false}let se=false;for(let _ in X[this.name]){let te=X[this.name][_];if(re.selector===te){if(ee===_){return true}else{se=true;break}}}if(!se){return false}te-=1}return false}check(_){if(_.selector.includes(this.name)){return!!_.selector.match(this.regexp())}return false}old(_){return new se(this,_)}possible(){return re.prefixes()}prefixed(_){return this.name.replace(/^(\W*)/,`$1${_}`)}prefixeds(_){if(_._autoprefixerPrefixeds){if(_._autoprefixerPrefixeds[this.name]){return _._autoprefixerPrefixeds}}else{_._autoprefixerPrefixeds={}}let X={};if(_.selector.includes(",")){let ee=te.comma(_.selector);let re=ee.filter((_=>_.includes(this.name)));for(let _ of this.possible()){X[_]=re.map((X=>this.replace(X,_))).join(", ")}}else{for(let ee of this.possible()){X[ee]=this.replace(_.selector,ee)}}_._autoprefixerPrefixeds[this.name]=X;return _._autoprefixerPrefixeds}regexp(_){if(!this.regexpCache.has(_)){let X=_?this.prefixed(_):this.name;this.regexpCache.set(_,new RegExp(`(^|[^:"'=])${ie.escapeRegexp(X)}`,"gi"))}return this.regexpCache.get(_)}replace(_,X){return _.replace(this.regexp(),`$1${this.prefixed(X)}`)}}_.exports=Selector},9159:(_,X,ee)=>{let te=ee(8944);let re=ee(1711);let{parse:se}=ee(977);let ne=ee(8500);let ie=ee(8277);let oe=ee(699);let ae=ee(3129);let le=re(te);let ue=[];for(let _ in le.stats){let X=le.stats[_];for(let ee in X){let te=X[ee];if(/y/.test(te)){ue.push(_+" "+ee)}}}class Supports{constructor(_,X){this.Prefixes=_;this.all=X}add(_,X){return _.map((_=>{if(this.isProp(_)){let X=this.prefixed(_[0]);if(X.length>1){return this.convert(X)}return _}if(typeof _==="object"){return this.add(_,X)}return _}))}cleanBrackets(_){return _.map((_=>{if(typeof _!=="object"){return _}if(_.length===1&&typeof _[0]==="object"){return this.cleanBrackets(_[0])}return this.cleanBrackets(_)}))}convert(_){let X=[""];for(let ee of _){X.push([`${ee.prop}: ${ee.value}`]);X.push(" or ")}X[X.length-1]="";return X}disabled(_){if(!this.all.options.grid){if(_.prop==="display"&&_.value.includes("grid")){return true}if(_.prop.includes("grid")||_.prop==="justify-items"){return true}}if(this.all.options.flexbox===false){if(_.prop==="display"&&_.value.includes("flex")){return true}let X=["order","justify-content","align-items","align-content"];if(_.prop.includes("flex")||X.includes(_.prop)){return true}}return false}isHack(_,X){let ee=new RegExp(`(\\(|\\s)${oe.escapeRegexp(X)}:`);return!ee.test(_)}isNot(_){return typeof _==="string"&&/not\s*/i.test(_)}isOr(_){return typeof _==="string"&&/\s*or\s*/i.test(_)}isProp(_){return typeof _==="object"&&_.length===1&&typeof _[0]==="string"}normalize(_){if(typeof _!=="object"){return _}_=_.filter((_=>_!==""));if(typeof _[0]==="string"){let X=_[0].trim();if(X.includes(":")||X==="selector"||X==="not selector"){return[ne.stringify(_)]}}return _.map((_=>this.normalize(_)))}parse(_){let X=_.split(":");let ee=X[0];let te=X[1];if(!te)te="";return[ee.trim(),te.trim()]}prefixed(_){let X=this.virtual(_);if(this.disabled(X.first)){return X.nodes}let ee={warn:()=>null};let te=this.prefixer().add[X.first.prop];te&&te.process&&te.process(X.first,ee);for(let _ of X.nodes){for(let ee of this.prefixer().values("add",X.first.prop)){ee.process(_)}ae.save(this.all,_)}return X.nodes}prefixer(){if(this.prefixerCache){return this.prefixerCache}let _=this.all.browsers.selected.filter((_=>ue.includes(_)));let X=new ie(this.all.browsers.data,_,this.all.options);this.prefixerCache=new this.Prefixes(this.all.data,X,this.all.options);return this.prefixerCache}process(_){let X=ne.parse(_.params);X=this.normalize(X);X=this.remove(X,_.params);X=this.add(X,_.params);X=this.cleanBrackets(X);_.params=ne.stringify(X)}remove(_,X){let ee=0;while(ee<_.length){if(!this.isNot(_[ee-1])&&this.isProp(_[ee])&&this.isOr(_[ee+1])){if(this.toRemove(_[ee][0],X)){_.splice(ee,2);continue}ee+=2;continue}if(typeof _[ee]==="object"){_[ee]=this.remove(_[ee],X)}ee+=1}return _}toRemove(_,X){let[ee,te]=this.parse(_);let re=this.all.unprefixed(ee);let se=this.all.cleaner();if(se.remove[ee]&&se.remove[ee].remove&&!this.isHack(X,re)){return true}for(let _ of se.values("remove",re)){if(_.check(te)){return true}}return false}virtual(_){let[X,ee]=this.parse(_);let te=se("a{}").first;te.append({prop:X,raws:{before:""},value:ee});return te}}_.exports=Supports},3398:(_,X,ee)=>{let{list:te}=ee(977);let re=ee(2045);let se=ee(8277);let ne=ee(8853);class Transition{constructor(_){this.props=["transition","transition-property"];this.prefixes=_}add(_,X){let ee,te;let re=this.prefixes.add[_.prop];let se=this.ruleVendorPrefixes(_);let ne=se||re&&re.prefixes||[];let ie=this.parse(_.value);let oe=ie.map((_=>this.findProp(_)));let ae=[];if(oe.some((_=>_[0]==="-"))){return}for(let _ of ie){te=this.findProp(_);if(te[0]==="-")continue;let X=this.prefixes.add[te];if(!X||!X.prefixes)continue;for(ee of X.prefixes){if(se&&!se.some((_=>ee.includes(_)))){continue}let X=this.prefixes.prefixed(te,ee);if(X!=="-ms-transform"&&!oe.includes(X)){if(!this.disabled(te,ee)){ae.push(this.clone(te,X,_))}}}}ie=ie.concat(ae);let le=this.stringify(ie);let ue=this.stringify(this.cleanFromUnprefixed(ie,"-webkit-"));if(ne.includes("-webkit-")){this.cloneBefore(_,`-webkit-${_.prop}`,ue)}this.cloneBefore(_,_.prop,ue);if(ne.includes("-o-")){let X=this.stringify(this.cleanFromUnprefixed(ie,"-o-"));this.cloneBefore(_,`-o-${_.prop}`,X)}for(ee of ne){if(ee!=="-webkit-"&&ee!=="-o-"){let X=this.stringify(this.cleanOtherPrefixes(ie,ee));this.cloneBefore(_,ee+_.prop,X)}}if(le!==_.value&&!this.already(_,_.prop,le)){this.checkForWarning(X,_);_.cloneBefore();_.value=le}}already(_,X,ee){return _.parent.some((_=>_.prop===X&&_.value===ee))}checkForWarning(_,X){if(X.prop!=="transition-property"){return}let ee=false;let re=false;X.parent.each((_=>{if(_.type!=="decl"){return undefined}if(_.prop.indexOf("transition-")!==0){return undefined}let X=te.comma(_.value);if(_.prop==="transition-property"){X.forEach((_=>{let X=this.prefixes.add[_];if(X&&X.prefixes&&X.prefixes.length>0){ee=true}}));return undefined}re=re||X.length>1;return false}));if(ee&&re){X.warn(_,"Replace transition-property to transition, "+"because Autoprefixer could not support "+"any cases of transition-property "+"and other transition-*")}}cleanFromUnprefixed(_,X){let ee=_.map((_=>this.findProp(_))).filter((_=>_.slice(0,X.length)===X)).map((_=>this.prefixes.unprefixed(_)));let te=[];for(let re of _){let _=this.findProp(re);let se=ne.prefix(_);if(!ee.includes(_)&&(se===X||se==="")){te.push(re)}}return te}cleanOtherPrefixes(_,X){return _.filter((_=>{let ee=ne.prefix(this.findProp(_));return ee===""||ee===X}))}clone(_,X,ee){let te=[];let re=false;for(let se of ee){if(!re&&se.type==="word"&&se.value===_){te.push({type:"word",value:X});re=true}else{te.push(se)}}return te}cloneBefore(_,X,ee){if(!this.already(_,X,ee)){_.cloneBefore({prop:X,value:ee})}}disabled(_,X){let ee=["order","justify-content","align-self","align-content"];if(_.includes("flex")||ee.includes(_)){if(this.prefixes.options.flexbox===false){return true}if(this.prefixes.options.flexbox==="no-2009"){return X.includes("2009")}}return undefined}div(_){for(let X of _){for(let _ of X){if(_.type==="div"&&_.value===","){return _}}}return{after:" ",type:"div",value:","}}findProp(_){let X=_[0].value;if(/^\d/.test(X)){for(let[X,ee]of _.entries()){if(X!==0&&ee.type==="word"){return ee.value}}}return X}parse(_){let X=re(_);let ee=[];let te=[];for(let _ of X.nodes){te.push(_);if(_.type==="div"&&_.value===","){ee.push(te);te=[]}}ee.push(te);return ee.filter((_=>_.length>0))}remove(_){let X=this.parse(_.value);X=X.filter((_=>{let X=this.prefixes.remove[this.findProp(_)];return!X||!X.remove}));let ee=this.stringify(X);if(_.value===ee){return}if(X.length===0){_.remove();return}let te=_.parent.some((X=>X.prop===_.prop&&X.value===ee));let re=_.parent.some((X=>X!==_&&X.prop===_.prop&&X.value.length>ee.length));if(te||re){_.remove();return}_.value=ee}ruleVendorPrefixes(_){let{parent:X}=_;if(X.type!=="rule"){return false}else if(!X.selector.includes(":-")){return false}let ee=se.prefixes().filter((_=>X.selector.includes(":"+_)));return ee.length>0?ee:false}stringify(_){if(_.length===0){return""}let X=[];for(let ee of _){if(ee[ee.length-1].type!=="div"){ee.push(this.div(_))}X=X.concat(ee)}if(X[0].type==="div"){X=X.slice(1)}if(X[X.length-1].type==="div"){X=X.slice(0,+-2+1||0)}return re.stringify({nodes:X})}}_.exports=Transition},699:(_,X,ee)=>{let{list:te}=ee(977);_.exports.error=function(_){let X=new Error(_);X.autoprefixer=true;throw X};_.exports.uniq=function(_){return[...new Set(_)]};_.exports.removeNote=function(_){if(!_.includes(" ")){return _}return _.split(" ")[0]};_.exports.escapeRegexp=function(_){return _.replace(/[$()*+-.?[\\\]^{|}]/g,"\\$&")};_.exports.regexp=function(_,X=true){if(X){_=this.escapeRegexp(_)}return new RegExp(`(^|[\\s,(])(${_}($|[\\s(,]))`,"gi")};_.exports.editList=function(_,X){let ee=te.comma(_);let re=X(ee,[]);if(ee===re){return _}let se=_.match(/,\s*/);se=se?se[0]:", ";return re.join(se)};_.exports.splitSelector=function(_){return te.comma(_).map((_=>te.space(_).map((_=>_.split(/(?=\.|#)/g)))))};_.exports.isPureNumber=function(_){if(typeof _==="number"){return true}if(typeof _==="string"){return/^[0-9]+$/.test(_)}return false}},3129:(_,X,ee)=>{let te=ee(2097);let re=ee(9511);let se=ee(699);let ne=ee(8853);class Value extends re{static save(_,X){let ee=X.prop;let te=[];for(let re in X._autoprefixerValues){let se=X._autoprefixerValues[re];if(se===X.value){continue}let ie;let oe=ne.prefix(ee);if(oe==="-pie-"){continue}if(oe===re){ie=X.value=se;te.push(ie);continue}let ae=_.prefixed(ee,re);let le=X.parent;if(!le.every((_=>_.prop!==ae))){te.push(ie);continue}let ue=se.replace(/\s+/," ");let ce=le.some((_=>_.prop===X.prop&&_.value.replace(/\s+/," ")===ue));if(ce){te.push(ie);continue}let pe=this.clone(X,{value:se});ie=X.parent.insertBefore(X,pe);te.push(ie)}return te}add(_,X){if(!_._autoprefixerValues){_._autoprefixerValues={}}let ee=_._autoprefixerValues[X]||this.value(_);let te;do{te=ee;ee=this.replace(ee,X);if(ee===false)return}while(ee!==te);_._autoprefixerValues[X]=ee}check(_){let X=_.value;if(!X.includes(this.name)){return false}return!!X.match(this.regexp())}old(_){return new te(this.name,_+this.name)}regexp(){return this.regexpCache||(this.regexpCache=se.regexp(this.name))}replace(_,X){return _.replace(this.regexp(),`$1${X}$2`)}value(_){if(_.raws.value&&_.raws.value.value===_.value){return _.raws.value.raw}else{return _.value}}}_.exports=Value},8853:_=>{_.exports={prefix(_){let X=_.match(/^(-\w+-)/);if(X){return X[0]}return""},unprefixed(_){return _.replace(/^-\w+-/,"")}}},4442:_=>{"use strict";_.exports=balanced;function balanced(_,X,ee){if(_ instanceof RegExp)_=maybeMatch(_,ee);if(X instanceof RegExp)X=maybeMatch(X,ee);var te=range(_,X,ee);return te&&{start:te[0],end:te[1],pre:ee.slice(0,te[0]),body:ee.slice(te[0]+_.length,te[1]),post:ee.slice(te[1]+X.length)}}function maybeMatch(_,X){var ee=X.match(_);return ee?ee[0]:null}balanced.range=range;function range(_,X,ee){var te,re,se,ne,ie;var oe=ee.indexOf(_);var ae=ee.indexOf(X,oe+1);var le=oe;if(oe>=0&&ae>0){te=[];se=ee.length;while(le>=0&&!ie){if(le==oe){te.push(le);oe=ee.indexOf(_,le+1)}else if(te.length==1){ie=[te.pop(),ae]}else{re=te.pop();if(re=0?oe:ae}if(te.length){ie=[se,ne]}}return ie}},441:_=>{"use strict"; -/*! https://mths.be/cssesc v3.0.0 by @mathias */var X={};var ee=X.hasOwnProperty;var te=function merge(_,X){if(!_){return X}var te={};for(var re in X){te[re]=ee.call(_,re)?_[re]:X[re]}return te};var re=/[ -,\.\/:-@\[-\^`\{-~]/;var se=/[ -,\.\/:-@\[\]\^`\{-~]/;var ne=/['"\\]/;var ie=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var oe=function cssesc(_,X){X=te(X,cssesc.options);if(X.quotes!="single"&&X.quotes!="double"){X.quotes="single"}var ee=X.quotes=="double"?'"':"'";var ne=X.isIdentifier;var oe=_.charAt(0);var ae="";var le=0;var ue=_.length;while(le126){if(pe>=55296&&pe<=56319&&le{"use strict";_.exports={wrap:wrapRange,limit:limitRange,validate:validateRange,test:testRange,curry:curry,name:name};function wrapRange(_,X,ee){var te=X-_;return((ee-_)%te+te)%te+_}function limitRange(_,X,ee){return Math.max(_,Math.min(X,ee))}function validateRange(_,X,ee,te,re){if(!testRange(_,X,ee,te,re)){throw new Error(ee+" is outside of range ["+_+","+X+")")}return ee}function testRange(_,X,ee,te,re){return!(ee<_||ee>X||re&&ee===X||te&&ee===_)}function name(_,X,ee,te){return(ee?"(":"[")+_+","+X+(te?")":"]")}function curry(_,X,ee,te){var re=name.bind(null,_,X,ee,te);return{wrap:wrapRange.bind(null,_,X),limit:limitRange.bind(null,_,X),validate:function(re){return validateRange(_,X,re,ee,te)},test:function(re){return testRange(_,X,re,ee,te)},toString:re,name:re}}},5701:_=>{let X=process||{},ee=X.argv||[],te=X.env||{};let re=!(!!te.NO_COLOR||ee.includes("--no-color"))&&(!!te.FORCE_COLOR||ee.includes("--color")||X.platform==="win32"||(X.stdout||{}).isTTY&&te.TERM!=="dumb"||!!te.CI);let formatter=(_,X,ee=_)=>te=>{let re=""+te,se=re.indexOf(X,_.length);return~se?_+replaceClose(re,X,ee,se)+X:_+re+X};let replaceClose=(_,X,ee,te)=>{let re="",se=0;do{re+=_.substring(se,te)+ee;se=te+X.length;te=_.indexOf(X,se)}while(~te);return re+_.substring(se)};let createColors=(_=re)=>{let X=_?formatter:()=>String;return{isColorSupported:_,reset:X("",""),bold:X("","",""),dim:X("","",""),italic:X("",""),underline:X("",""),inverse:X("",""),hidden:X("",""),strikethrough:X("",""),black:X("",""),red:X("",""),green:X("",""),yellow:X("",""),blue:X("",""),magenta:X("",""),cyan:X("",""),white:X("",""),gray:X("",""),bgBlack:X("",""),bgRed:X("",""),bgGreen:X("",""),bgYellow:X("",""),bgBlue:X("",""),bgMagenta:X("",""),bgCyan:X("",""),bgWhite:X("",""),blackBright:X("",""),redBright:X("",""),greenBright:X("",""),yellowBright:X("",""),blueBright:X("",""),magentaBright:X("",""),cyanBright:X("",""),whiteBright:X("",""),bgBlackBright:X("",""),bgRedBright:X("",""),bgGreenBright:X("",""),bgYellowBright:X("",""),bgBlueBright:X("",""),bgMagentaBright:X("",""),bgCyanBright:X("",""),bgWhiteBright:X("","")}};_.exports=createColors();_.exports.createColors=createColors},6924:(_,X,ee)=>{const te=ee(6206);function nodeIsInsensitiveAttribute(_){return _.type==="attribute"&&_.insensitive}function selectorHasInsensitiveAttribute(_){return _.some(nodeIsInsensitiveAttribute)}function transformString(_,X,ee){const te=ee.charAt(X);if(te===""){return _}let re=_.map((_=>_+te));const se=te.toLocaleUpperCase();if(se!==te){re=re.concat(_.map((_=>_+se)))}return transformString(re,X+1,ee)}function createSensitiveAtributes(_){const X=transformString([""],0,_.value);return X.map((X=>{const ee=_.clone({spaces:{after:_.spaces.after,before:_.spaces.before},insensitive:false});ee.setValue(X);return ee}))}function createNewSelectors(_){let X=[te.selector()];_.walk((_=>{if(!nodeIsInsensitiveAttribute(_)){X.forEach((X=>{X.append(_.clone())}));return}const ee=createSensitiveAtributes(_);const te=[];ee.forEach((_=>{X.forEach((X=>{const ee=X.clone();ee.append(_);te.push(ee)}))}));X=te}));return X}function transform(_){let X=[];_.each((_=>{if(selectorHasInsensitiveAttribute(_)){X=X.concat(createNewSelectors(_));_.remove()}}));if(X.length){X.forEach((X=>_.append(X)))}}const re=/i(\s*\/\*[\W\w]*?\*\/)*\s*\]/;_.exports=()=>({postcssPlugin:"postcss-attribute-case-insensitive",Rule(_){if(re.test(_.selector)){_.selector=te(transform).processSync(_.selector)}}});_.exports.postcss=true},4719:(_,X,ee)=>{let te=ee(2045);function parseValue(_){let X=_.match(/([\d.-]+)(.*)/);if(!X||!X[1]||!X[2]||isNaN(X[1])){return undefined}return[parseFloat(X[1]),X[2]]}function compose(_,X,ee){if(_&&X&&ee){return`max(${_}, min(${X}, ${ee}))`}if(_&&X){return`max(${_}, ${X})`}return _}function updateValue(_,X,ee){let re=X;let se=te(X);let ne=te(_.value);let ie=false;ne.walk(((_,X,ee)=>{let te=_.type==="function"&&_.value==="clamp";if(!te||ie){return}ie=true;ee[X]=se}));if(ie){re=ne.toString()}if(ee){_.cloneBefore({value:re})}else{_.value=re}}_.exports=_=>{_=_||{};let X=_.precalculate?Boolean(_.precalculate):false;let ee=_.preserve?Boolean(_.preserve):false;return{postcssPlugin:"postcss-clamp",Declaration(_){if(!_||!_.value.includes("clamp")){return}te(_.value).walk((re=>{let se=re.nodes;if(re.type!=="function"||re.value!=="clamp"||se.length!==5){return}let ne=se[0];let ie=se[2];let oe=se[4];let ae=compose(te.stringify(ne),te.stringify(ie),te.stringify(oe));if(!X||ie.type!=="word"||oe.type!=="word"){updateValue(_,ae,ee);return}let le=parseValue(ie.value);let ue=parseValue(oe.value);if(le===undefined||ue===undefined){updateValue(_,ae,ee);return}let[ce,pe]=le;let[fe,de]=ue;if(pe!==de){updateValue(_,ae,ee);return}let he=parseValue(ne.value);if(he===undefined){let X=`${ce+fe}${pe}`;updateValue(_,compose(te.stringify(ne),X),ee);return}let[me,ge]=he;if(ge!==pe){let X=`${ce+fe}${pe}`;updateValue(_,compose(te.stringify(ne),X),ee);return}updateValue(_,compose(`${me+ce+fe}${pe}`),ee)}))}}};_.exports.postcss=true},5671:(_,X,ee)=>{"use strict";var te=ee(7147);var re=ee(1017);var se=ee(977);function _interopDefaultLegacy(_){return _&&typeof _==="object"&&"default"in _?_:{default:_}}function _interopNamespace(_){if(_&&_.__esModule)return _;var X=Object.create(null);if(_){Object.keys(_).forEach((function(ee){if(ee!=="default"){var te=Object.getOwnPropertyDescriptor(_,ee);Object.defineProperty(X,ee,te.get?te:{enumerable:true,get:function(){return _[ee]}})}}))}X["default"]=_;return Object.freeze(X)}var ne=_interopDefaultLegacy(te);var ie=_interopDefaultLegacy(re);function parse(_,X){const ee=[];let te="";let re=false;let se=0;let ne=-1;while(++ne<_.length){const ie=_[ne];if(ie==="("){se+=1}else if(ie===")"){if(se>0){se-=1}}else if(se===0){if(X&&de.test(te+ie)){re=true}else if(!X&&ie===","){re=true}}if(re){ee.push(X?new MediaExpression(te+ie):new MediaQuery(te));te="";re=false}else{te+=ie}}if(te!==""){ee.push(X?new MediaExpression(te):new MediaQuery(te))}return ee}class MediaQueryList{constructor(_){this.nodes=parse(_)}invert(){this.nodes.forEach((_=>{_.invert()}));return this}clone(){return new MediaQueryList(String(this))}toString(){return this.nodes.join(",")}}class MediaQuery{constructor(_){const[,X,ee,te]=_.match(he);const[,re="",se=" ",ne="",ie="",oe="",ae="",le="",ue=""]=ee.match(me)||[];const ce={before:X,after:te,afterModifier:se,originalModifier:re||"",beforeAnd:ie,and:oe,beforeExpression:ae};const pe=parse(le||ue,true);Object.assign(this,{modifier:re,type:ne,raws:ce,nodes:pe})}clone(_){const X=new MediaQuery(String(this));Object.assign(X,_);return X}invert(){this.modifier=this.modifier?"":this.raws.originalModifier;return this}toString(){const{raws:_}=this;return`${_.before}${this.modifier}${this.modifier?`${_.afterModifier}`:""}${this.type}${_.beforeAnd}${_.and}${_.beforeExpression}${this.nodes.join("")}${this.raws.after}`}}class MediaExpression{constructor(_){const[,X,ee="",te="",re=""]=_.match(de)||[null,_];const se={after:ee,and:te,afterAnd:re};Object.assign(this,{value:X,raws:se})}clone(_){const X=new MediaExpression(String(this));Object.assign(X,_);return X}toString(){const{raws:_}=this;return`${this.value}${_.after}${_.and}${_.afterAnd}`}}const oe="(not|only)";const ae="(all|print|screen|speech)";const le="([\\W\\w]*)";const ue="([\\W\\w]+)";const ce="(\\s*)";const pe="(\\s+)";const fe="(?:(\\s+)(and))";const de=new RegExp(`^${ue}(?:${fe}${pe})$`,"i");const he=new RegExp(`^${ce}${le}${ce}$`);const me=new RegExp(`^(?:${oe}${pe})?(?:${ae}(?:${fe}${pe}${ue})?|${ue})$`,"i");var mediaASTFromString=_=>new MediaQueryList(_);var getCustomMediaFromRoot=(_,X)=>{const ee={};_.nodes.slice().forEach((_=>{if(isCustomMedia(_)){const[,te,re]=_.params.match(be);ee[te]=mediaASTFromString(re);if(!Object(X).preserve){_.remove()}}}));return ee};const ge=/^custom-media$/i;const be=/^(--[A-z][\w-]*)\s+([\W\w]+)\s*$/;const isCustomMedia=_=>_.type==="atrule"&&ge.test(_.name)&&be.test(_.params);async function getCustomMediaFromCSSFile(_){const X=await readFile(_);const ee=se.parse(X,{from:_});return getCustomMediaFromRoot(ee,{preserve:true})}function getCustomMediaFromObject(_){const X=Object.assign({},Object(_).customMedia,Object(_)["custom-media"]);for(const _ in X){X[_]=mediaASTFromString(X[_])}return X}async function getCustomMediaFromJSONFile(_){const X=await readJSON(_);return getCustomMediaFromObject(X)}async function getCustomMediaFromJSFile(_){const X=await Promise.resolve().then((function(){return _interopNamespace(require(_))}));return getCustomMediaFromObject(X)}function getCustomMediaFromSources(_){return _.map((_=>{if(_ instanceof Promise){return _}else if(_ instanceof Function){return _()}const X=_===Object(_)?_:{from:String(_)};if(Object(X).customMedia||Object(X)["custom-media"]){return X}const ee=ie["default"].resolve(String(X.from||""));const te=(X.type||ie["default"].extname(ee).slice(1)).toLowerCase();return{type:te,from:ee}})).reduce((async(_,X)=>{const{type:ee,from:te}=await X;if(ee==="css"||ee==="pcss"){return Object.assign(await _,await getCustomMediaFromCSSFile(te))}if(ee==="js"){return Object.assign(await _,await getCustomMediaFromJSFile(te))}if(ee==="json"){return Object.assign(await _,await getCustomMediaFromJSONFile(te))}return Object.assign(await _,getCustomMediaFromObject(await X))}),{})}const readFile=_=>new Promise(((X,ee)=>{ne["default"].readFile(_,"utf8",((_,te)=>{if(_){ee(_)}else{X(te)}}))}));const readJSON=async _=>JSON.parse(await readFile(_));function transformMediaList(_,X){let ee=_.nodes.length-1;while(ee>=0){const te=transformMedia(_.nodes[ee],X);if(te.length){_.nodes.splice(ee,1,...te)}--ee}return _}function transformMedia(_,X){const ee=[];for(const te in _.nodes){const{value:re,nodes:se}=_.nodes[te];const ne=re.replace(ve,"$1");if(ne in X){for(const re of X[ne].nodes){const se=_.modifier!==re.modifier?_.modifier||re.modifier:"";const ie=_.clone({modifier:se,raws:!se||_.modifier?{..._.raws}:{...re.raws},type:_.type||re.type});if(ie.type===re.type){Object.assign(ie.raws,{and:re.raws.and,beforeAnd:re.raws.beforeAnd,beforeExpression:re.raws.beforeExpression})}ie.nodes.splice(te,1,...re.clone().nodes.map((X=>{if(_.nodes[te].raws.and){X.raws={..._.nodes[te].raws}}X.spaces={..._.nodes[te].spaces};return X})));const oe=getCustomMediasWithoutKey(X,ne);const ae=transformMedia(ie,oe);if(ae.length){ee.push(...ae)}else{ee.push(ie)}}return ee}else if(se&&se.length){transformMediaList(_.nodes[te],X)}}return ee}const ve=/\((--[A-z][\w-]*)\)/;const getCustomMediasWithoutKey=(_,X)=>{const ee=Object.assign({},_);delete ee[X];return ee};var transformAtrules=(_,X,ee)=>{_.walkAtRules(ye,(_=>{if(we.test(_.params)){const te=mediaASTFromString(_.params);const re=String(transformMediaList(te,X));if(ee.preserve){_.cloneBefore({params:re})}else{_.params=re}}}))};const ye=/^media$/i;const we=/\(--[A-z][\w-]*\)/;async function writeCustomMediaToCssFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`@custom-media ${ee} ${X[ee]};`);return _}),[]).join("\n");const te=`${ee}\n`;await writeFile(_,te)}async function writeCustomMediaToJsonFile(_,X){const ee=JSON.stringify({"custom-media":X},null," ");const te=`${ee}\n`;await writeFile(_,te)}async function writeCustomMediaToCjsFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`\t\t'${escapeForJS(ee)}': '${escapeForJS(X[ee])}'`);return _}),[]).join(",\n");const te=`module.exports = {\n\tcustomMedia: {\n${ee}\n\t}\n};\n`;await writeFile(_,te)}async function writeCustomMediaToMjsFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`\t'${escapeForJS(ee)}': '${escapeForJS(X[ee])}'`);return _}),[]).join(",\n");const te=`export const customMedia = {\n${ee}\n};\n`;await writeFile(_,te)}function writeCustomMediaToExports(_,X){return Promise.all(X.map((async X=>{if(X instanceof Function){await X(defaultCustomMediaToJSON(_))}else{const ee=X===Object(X)?X:{to:String(X)};const te=ee.toJSON||defaultCustomMediaToJSON;if("customMedia"in ee){ee.customMedia=te(_)}else if("custom-media"in ee){ee["custom-media"]=te(_)}else{const X=String(ee.to||"");const re=(ee.type||ie["default"].extname(X).slice(1)).toLowerCase();const se=te(_);if(re==="css"){await writeCustomMediaToCssFile(X,se)}if(re==="js"){await writeCustomMediaToCjsFile(X,se)}if(re==="json"){await writeCustomMediaToJsonFile(X,se)}if(re==="mjs"){await writeCustomMediaToMjsFile(X,se)}}}})))}const defaultCustomMediaToJSON=_=>Object.keys(_).reduce(((X,ee)=>{X[ee]=String(_[ee]);return X}),{});const writeFile=(_,X)=>new Promise(((ee,te)=>{ne["default"].writeFile(_,X,(_=>{if(_){te(_)}else{ee()}}))}));const escapeForJS=_=>_.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const creator=_=>{const X="preserve"in Object(_)?Boolean(_.preserve):false;const ee=[].concat(Object(_).importFrom||[]);const te=[].concat(Object(_).exportTo||[]);const re=getCustomMediaFromSources(ee);return{postcssPlugin:"postcss-custom-media",Once:async _=>{const ee=Object.assign(await re,getCustomMediaFromRoot(_,{preserve:X}));await writeCustomMediaToExports(ee,te);transformAtrules(_,ee,{preserve:X})}}};creator.postcss=true;_.exports=creator},8179:(_,X,ee)=>{"use strict";var te=ee(6206);var re=ee(7147);var se=ee(1017);var ne=ee(977);function _interopDefaultLegacy(_){return _&&typeof _==="object"&&"default"in _?_:{default:_}}function _interopNamespace(_){if(_&&_.__esModule)return _;var X=Object.create(null);if(_){Object.keys(_).forEach((function(ee){if(ee!=="default"){var te=Object.getOwnPropertyDescriptor(_,ee);Object.defineProperty(X,ee,te.get?te:{enumerable:true,get:function(){return _[ee]}})}}))}X["default"]=_;return Object.freeze(X)}var ie=_interopDefaultLegacy(te);var oe=_interopDefaultLegacy(re);var ae=_interopDefaultLegacy(se);var le=_interopDefaultLegacy(ne);var getSelectorsAstFromSelectorsString=_=>{let X;ie["default"]((_=>{X=_})).processSync(_);return X};var getCustomSelectors=(_,X)=>{const ee={};_.nodes.slice().forEach((_=>{if(isCustomSelector(_)){const[,te,re]=_.params.match(ce);ee[te]=getSelectorsAstFromSelectorsString(re);if(!Object(X).preserve){_.remove()}}}));return ee};const ue=/^custom-selector$/i;const ce=/^(:--[A-z][\w-]*)\s+([\W\w]+)\s*$/;const isCustomSelector=_=>_.type==="atrule"&&ue.test(_.name)&&ce.test(_.params);function transformSelectorList(_,X){let ee=_.nodes.length-1;while(ee>=0){const te=transformSelector(_.nodes[ee],X);if(te.length){_.nodes.splice(ee,1,...te)}--ee}return _}function transformSelector(_,X){const ee=[];for(const te in _.nodes){const{value:re,nodes:se}=_.nodes[te];if(re in X){for(const se of X[re].nodes){const re=_.clone();re.nodes.splice(te,1,...se.clone().nodes.map((X=>{X.spaces={..._.nodes[te].spaces};return X})));const ne=transformSelector(re,X);adjustNodesBySelectorEnds(re.nodes,Number(te));if(ne.length){ee.push(...ne)}else{ee.push(re)}}return ee}else if(se&&se.length){transformSelectorList(_.nodes[te],X)}}return ee}const pe=/^(tag|universal)$/;const fe=/^(class|id|pseudo|tag|universal)$/;const isWithoutSelectorStart=_=>pe.test(Object(_).type);const isWithoutSelectorEnd=_=>fe.test(Object(_).type);const adjustNodesBySelectorEnds=(_,X)=>{if(X&&isWithoutSelectorStart(_[X])&&isWithoutSelectorEnd(_[X-1])){let ee=X-1;while(ee&&isWithoutSelectorEnd(_[ee])){--ee}if(ee{_.walkRules(de,(_=>{const te=ie["default"]((_=>{transformSelectorList(_,X)})).processSync(_.selector);if(ee.preserve){_.cloneBefore({selector:te})}else{_.selector=te}}))};const de=/:--[A-z][\w-]*/;function importCustomSelectorsFromCSSAST(_){return getCustomSelectors(_)}async function importCustomSelectorsFromCSSFile(_){const X=await readFile(ae["default"].resolve(_));const ee=le["default"].parse(X,{from:ae["default"].resolve(_)});return importCustomSelectorsFromCSSAST(ee)}function importCustomSelectorsFromObject(_){const X=Object.assign({},Object(_).customSelectors||Object(_)["custom-selectors"]);for(const _ in X){X[_]=getSelectorsAstFromSelectorsString(X[_])}return X}async function importCustomSelectorsFromJSONFile(_){const X=await readJSON(ae["default"].resolve(_));return importCustomSelectorsFromObject(X)}async function importCustomSelectorsFromJSFile(_){const X=await Promise.resolve().then((function(){return _interopNamespace(require(ae["default"].resolve(_)))}));return importCustomSelectorsFromObject(X)}function importCustomSelectorsFromSources(_){return _.map((_=>{if(_ instanceof Promise){return _}else if(_ instanceof Function){return _()}const X=_===Object(_)?_:{from:String(_)};if(Object(X).customSelectors||Object(X)["custom-selectors"]){return X}const ee=String(X.from||"");const te=(X.type||ae["default"].extname(ee).slice(1)).toLowerCase();return{type:te,from:ee}})).reduce((async(_,X)=>{const ee=await _;const{type:te,from:re}=await X;if(te==="ast"){return Object.assign(ee,importCustomSelectorsFromCSSAST(re))}if(te==="css"){return Object.assign(ee,await importCustomSelectorsFromCSSFile(re))}if(te==="js"){return Object.assign(ee,await importCustomSelectorsFromJSFile(re))}if(te==="json"){return Object.assign(ee,await importCustomSelectorsFromJSONFile(re))}return Object.assign(ee,importCustomSelectorsFromObject(await X))}),Promise.resolve({}))}const readFile=_=>new Promise(((X,ee)=>{oe["default"].readFile(_,"utf8",((_,te)=>{if(_){ee(_)}else{X(te)}}))}));const readJSON=async _=>JSON.parse(await readFile(_));async function exportCustomSelectorsToCssFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`@custom-selector ${ee} ${X[ee]};`);return _}),[]).join("\n");const te=`${ee}\n`;await writeFile(_,te)}async function exportCustomSelectorsToJsonFile(_,X){const ee=JSON.stringify({"custom-selectors":X},null," ");const te=`${ee}\n`;await writeFile(_,te)}async function exportCustomSelectorsToCjsFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`\t\t'${escapeForJS(ee)}': '${escapeForJS(X[ee])}'`);return _}),[]).join(",\n");const te=`module.exports = {\n\tcustomSelectors: {\n${ee}\n\t}\n};\n`;await writeFile(_,te)}async function exportCustomSelectorsToMjsFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`\t'${escapeForJS(ee)}': '${escapeForJS(X[ee])}'`);return _}),[]).join(",\n");const te=`export const customSelectors = {\n${ee}\n};\n`;await writeFile(_,te)}function exportCustomSelectorsToDestinations(_,X){return Promise.all(X.map((async X=>{if(X instanceof Function){await X(defaultCustomSelectorsToJSON(_))}else{const ee=X===Object(X)?X:{to:String(X)};const te=ee.toJSON||defaultCustomSelectorsToJSON;if("customSelectors"in ee){ee.customSelectors=te(_)}else if("custom-selectors"in ee){ee["custom-selectors"]=te(_)}else{const X=String(ee.to||"");const re=(ee.type||ae["default"].extname(ee.to).slice(1)).toLowerCase();const se=te(_);if(re==="css"){await exportCustomSelectorsToCssFile(X,se)}if(re==="js"){await exportCustomSelectorsToCjsFile(X,se)}if(re==="json"){await exportCustomSelectorsToJsonFile(X,se)}if(re==="mjs"){await exportCustomSelectorsToMjsFile(X,se)}}}})))}const defaultCustomSelectorsToJSON=_=>Object.keys(_).reduce(((X,ee)=>{X[ee]=String(_[ee]);return X}),{});const writeFile=(_,X)=>new Promise(((ee,te)=>{oe["default"].writeFile(_,X,(_=>{if(_){te(_)}else{ee()}}))}));const escapeForJS=_=>_.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const postcssCustomSelectors=_=>{const X=Boolean(Object(_).preserve);const ee=[].concat(Object(_).importFrom||[]);const te=[].concat(Object(_).exportTo||[]);const re=importCustomSelectorsFromSources(ee);return{postcssPlugin:"postcss-custom-selectors",async Once(_){const ee=Object.assign({},await re,getCustomSelectors(_,{preserve:X}));await exportCustomSelectorsToDestinations(ee,te);transformRules(_,ee,{preserve:X})}}};postcssCustomSelectors.postcss=true;_.exports=postcssCustomSelectors},6033:_=>{const X={"font-variant-ligatures":{"common-ligatures":'"liga", "clig"',"no-common-ligatures":'"liga", "clig off"',"discretionary-ligatures":'"dlig"',"no-discretionary-ligatures":'"dlig" off',"historical-ligatures":'"hlig"',"no-historical-ligatures":'"hlig" off',contextual:'"calt"',"no-contextual":'"calt" off'},"font-variant-position":{sub:'"subs"',super:'"sups"',normal:'"subs" off, "sups" off'},"font-variant-caps":{"small-caps":'"smcp"',"all-small-caps":'"smcp", "c2sc"',"petite-caps":'"pcap"',"all-petite-caps":'"pcap", "c2pc"',unicase:'"unic"',"titling-caps":'"titl"'},"font-variant-numeric":{"lining-nums":'"lnum"',"oldstyle-nums":'"onum"',"proportional-nums":'"pnum"',"tabular-nums":'"tnum"',"diagonal-fractions":'"frac"',"stacked-fractions":'"afrc"',ordinal:'"ordn"',"slashed-zero":'"zero"'},"font-kerning":{normal:'"kern"',none:'"kern" off'},"font-variant":{normal:"normal",inherit:"inherit"}};for(const _ in X){const ee=X[_];for(const _ in ee){if(!(_ in X["font-variant"])){X["font-variant"][_]=ee[_]}}}function getFontFeatureSettingsPrevTo(_){let X=null;_.parent.walkDecls((_=>{if(_.prop==="font-feature-settings"){X=_}}));if(X===null){X=_.clone();X.prop="font-feature-settings";X.value="";_.parent.insertBefore(_,X)}return X}function walkRule(_){let ee=null;_.walkDecls((_=>{if(!X[_.prop]){return null}let te=_.value;if(_.prop==="font-variant"){te=_.value.split(/\s+/g).map((_=>X["font-variant"][_])).join(", ")}else if(X[_.prop][_.value]){te=X[_.prop][_.value]}if(ee===null){ee=getFontFeatureSettingsPrevTo(_)}if(ee.value&&ee.value!==te){ee.value+=", "+te}else{ee.value=te}}))}_.exports=()=>({postcssPlugin:"postcss-font-variant",Once(_){_.walkRules(walkRule)}});_.exports.postcss=true},8633:(_,X,ee)=>{var te=ee(298);_.exports=function postcssInitial(_){_=_||{};_.reset=_.reset||"all";_.replace=_.replace||false;var X=te(_.reset==="inherited");var getPropPrevTo=function(_,X){var ee=false;X.parent.walkDecls((function(_){if(_.prop===X.prop&&_.value!==X.value){ee=true}}));return ee};return{postcssPlugin:"postcss-initial",Declaration:function(ee){if(!/\binitial\b/.test(ee.value)){return}var te=X(ee.prop,ee.value);if(te.length===0)return;te.forEach((function(_){if(!getPropPrevTo(ee.prop,ee)){ee.cloneBefore(_)}}));if(_.replace===true){ee.remove()}}}};_.exports.postcss=true},298:(_,X,ee)=>{var te=ee(9717);function template(_,X){return _.replace(/\$\{([\w\-\.]*)\}/g,(function(_,ee){var te=X[ee];return typeof te!=="undefined"&&te!==null?te:""}))}function _getRulesMap(_){return _.filter((function(_){return!_.combined})).reduce((function(_,X){_[X.prop.replace(/\-/g,"")]=X.initial;return _}),{})}function _compileDecls(_){var X=_getRulesMap(_);return _.map((function(_){if(_.combined&&_.initial){_.initial=template(_.initial.replace(/\-/g,""),X)}return _}))}function _getRequirements(_){return _.reduce((function(_,X){if(!X.contains)return _;return X.contains.reduce((function(_,ee){_[ee]=X;return _}),_)}),{})}function _expandContainments(_){var X=_getRequirements(_);return _.filter((function(_){return!_.contains})).map((function(_){var ee=X[_.prop];if(ee){_.requiredBy=ee.prop;_.basic=_.basic||ee.basic;_.inherited=_.inherited||ee.inherited}return _}))}var re=_expandContainments(_compileDecls(te));function _clearDecls(_,X){return _.map((function(_){return{prop:_.prop,value:X.replace(/\binitial\b/g,_.initial)}}))}function _allDecls(_){return re.filter((function(X){var ee=X.combined||X.basic;if(_)return ee&&X.inherited;return ee}))}function _concreteDecl(_){return re.filter((function(X){return _===X.prop||_===X.requiredBy}))}function makeFallbackFunction(_){return function(X,ee){var te;if(X==="all"){te=_allDecls(_)}else{te=_concreteDecl(X)}return _clearDecls(te,ee)}}_.exports=makeFallbackFunction},9142:_=>{const X={width:"px",height:"px","device-width":"px","device-height":"px","aspect-ratio":"","device-aspect-ratio":"",color:"","color-index":"",monochrome:"",resolution:"dpi"};const ee=Object.keys(X);const te=.001;const re={">":1,"<":-1};const se={">":"min","<":"max"};function create_query(_,ee,ne,ie){return ie.replace(/([-\d\.]+)(.*)/,(function(ie,oe,ae){const le=parseFloat(oe);if(parseFloat(oe)||ne){if(!ne){if(ae==="px"&&le===parseInt(oe,10)){oe=le+re[ee]}else{oe=Number(Math.round(parseFloat(oe)+te*re[ee]+"e6")+"e-6")}}}else{oe=re[ee]+X[_]}return"("+se[ee]+"-"+_+": "+oe+ae+")"}))}function transform(_){if(!_.params.includes("<")&&!_.params.includes(">")){return}_.params=_.params.replace(/\(\s*([a-z-]+?)\s*([<>])(=?)\s*((?:-?\d*\.?(?:\s*\/?\s*)?\d+[a-z]*)?)\s*\)/gi,(function(_,X,te,re,se){if(ee.indexOf(X)>-1){return create_query(X,te,re,se)}return _}));_.params=_.params.replace(/\(\s*((?:-?\d*\.?(?:\s*\/?\s*)?\d+[a-z]*)?)\s*(<|>)(=?)\s*([a-z-]+)\s*(<|>)(=?)\s*((?:-?\d*\.?(?:\s*\/?\s*)?\d+[a-z]*)?)\s*\)/gi,(function(_,X,te,re,se,ne,ie,oe){if(ee.indexOf(se)>-1){if(te==="<"&&ne==="<"||te===">"&&ne===">"){const _=te==="<"?X:oe;const ee=te==="<"?oe:X;let ne=re;let ae=ie;if(te===">"){ne=ie;ae=re}return create_query(se,">",ne,_)+" and "+create_query(se,"<",ae,ee)}}return _}))}_.exports=()=>({postcssPlugin:"postcss-media-minmax",AtRule:{media:_=>{transform(_)},"custom-media":_=>{transform(_)}}});_.exports.postcss=true},4658:_=>{const X=new Set(["inherit","initial","revert","unset"]);_.exports=({preserve:_=false}={})=>({postcssPlugin:"postcss-opacity-percentage",Declaration:{opacity:ee=>{if(!ee.value||ee.value.startsWith("var(")||!ee.value.endsWith("%")||X.has(ee.value)){return}ee.cloneBefore({value:String(Number.parseFloat(ee.value)/100)});if(!_){ee.remove()}}}});_.exports.postcss=true},971:_=>{_.exports=function(_){return{postcssPlugin:"postcss-page-break",Declaration(_){if(_.prop.startsWith("break-")&&/^break-(inside|before|after)/.test(_.prop)){if(_.value.search(/column|region/)>=0){return}let X;switch(_.value){case"page":X="always";break;case"avoid-page":X="avoid";break;default:X=_.value}const ee="page-"+_.prop;if(_.parent.every((_=>_.prop!==ee))){_.cloneBefore({prop:ee,value:X})}}}}};_.exports.postcss=true},3181:_=>{_.exports=function(_){_=_||{};var X=_.method||"replace";return{postcssPlugin:"postcss-replace-overflow-wrap",Declaration:{"overflow-wrap":_=>{_.cloneBefore({prop:"word-wrap"});if(X==="replace"){_.remove()}}}}};_.exports.postcss=true},3991:(_,X,ee)=>{"use strict";Object.defineProperty(X,"__esModule",{value:true});X["default"]=void 0;var te=_interopRequireDefault(ee(5726));var re=_interopRequireDefault(ee(4442));function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function explodeSelector(_,X){const ee=locatePseudoClass(X,_);if(X&&ee>-1){const se=X.slice(0,ee);const ne=(0,re.default)("(",")",X.slice(ee));if(!ne){return X}const ie=ne.body?te.default.comma(ne.body).map((X=>explodeSelector(_,X))).join(`)${_}(`):"";const oe=ne.post?explodeSelector(_,ne.post):"";return`${se}${_}(${ie})${oe}`}return X}const se={};function locatePseudoClass(_,X){se[X]=se[X]||new RegExp(`([^\\\\]|^)${X}`);const ee=se[X];const te=_.search(ee);if(te===-1){return-1}return te+_.slice(te).indexOf(X)}function explodeSelectors(_){return()=>({postcssPlugin:"postcss-selector-not",Rule:X=>{if(X.selector&&X.selector.indexOf(_)>-1){X.selector=explodeSelector(_,X.selector)}}})}const ne=explodeSelectors(":not");ne.postcss=true;var ie=ne;X["default"]=ie},6206:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(6440));var re=_interopRequireWildcard(ee(7759));function _getRequireWildcardCache(_){if(typeof WeakMap!=="function")return null;var X=new WeakMap;var ee=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(_){return _?ee:X})(_)}function _interopRequireWildcard(_,X){if(!X&&_&&_.__esModule){return _}if(_===null||typeof _!=="object"&&typeof _!=="function"){return{default:_}}var ee=_getRequireWildcardCache(X);if(ee&&ee.has(_)){return ee.get(_)}var te={};var re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in _){if(se!=="default"&&Object.prototype.hasOwnProperty.call(_,se)){var ne=re?Object.getOwnPropertyDescriptor(_,se):null;if(ne&&(ne.get||ne.set)){Object.defineProperty(te,se,ne)}else{te[se]=_[se]}}}te["default"]=_;if(ee){ee.set(_,te)}return te}function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}var se=function parser(_){return new te["default"](_)};Object.assign(se,re);delete se.__esModule;var ne=se;X["default"]=ne;_.exports=X.default},5838:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(7774));var re=_interopRequireDefault(ee(372));var se=_interopRequireDefault(ee(7113));var ne=_interopRequireDefault(ee(6723));var ie=_interopRequireDefault(ee(8362));var oe=_interopRequireDefault(ee(4088));var ae=_interopRequireDefault(ee(4931));var le=_interopRequireDefault(ee(9573));var ue=_interopRequireWildcard(ee(4910));var ce=_interopRequireDefault(ee(2767));var pe=_interopRequireDefault(ee(7805));var fe=_interopRequireDefault(ee(7066));var de=_interopRequireDefault(ee(866));var he=_interopRequireWildcard(ee(9668));var me=_interopRequireWildcard(ee(6004));var ge=_interopRequireWildcard(ee(7105));var be=ee(4371);var ve,ye;function _getRequireWildcardCache(_){if(typeof WeakMap!=="function")return null;var X=new WeakMap;var ee=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(_){return _?ee:X})(_)}function _interopRequireWildcard(_,X){if(!X&&_&&_.__esModule){return _}if(_===null||typeof _!=="object"&&typeof _!=="function"){return{default:_}}var ee=_getRequireWildcardCache(X);if(ee&&ee.has(_)){return ee.get(_)}var te={};var re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in _){if(se!=="default"&&Object.prototype.hasOwnProperty.call(_,se)){var ne=re?Object.getOwnPropertyDescriptor(_,se):null;if(ne&&(ne.get||ne.set)){Object.defineProperty(te,se,ne)}else{te[se]=_[se]}}}te["default"]=_;if(ee){ee.set(_,te)}return te}function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee0){var te=this.current.last;if(te){var re=this.convertWhitespaceNodesToSpace(ee),se=re.space,ne=re.rawSpace;if(ne!==undefined){te.rawSpaceAfter+=ne}te.spaces.after+=se}else{ee.forEach((function(X){return _.newNode(X)}))}}return}var ie=this.currToken;var oe=undefined;if(X>this.position){oe=this.parseWhitespaceEquivalentTokens(X)}var ae;if(this.isNamedCombinator()){ae=this.namedCombinator()}else if(this.currToken[he.FIELDS.TYPE]===me.combinator){ae=new pe["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[he.FIELDS.START_POS]});this.position++}else if(we[this.currToken[he.FIELDS.TYPE]]){}else if(!oe){this.unexpected()}if(ae){if(oe){var le=this.convertWhitespaceNodesToSpace(oe),ue=le.space,ce=le.rawSpace;ae.spaces.before=ue;ae.rawSpaceBefore=ce}}else{var fe=this.convertWhitespaceNodesToSpace(oe,true),de=fe.space,ge=fe.rawSpace;if(!ge){ge=de}var be={};var ve={spaces:{}};if(de.endsWith(" ")&&ge.endsWith(" ")){be.before=de.slice(0,de.length-1);ve.spaces.before=ge.slice(0,ge.length-1)}else if(de.startsWith(" ")&&ge.startsWith(" ")){be.after=de.slice(1);ve.spaces.after=ge.slice(1)}else{ve.value=ge}ae=new pe["default"]({value:" ",source:getTokenSourceSpan(ie,this.tokens[this.position-1]),sourceIndex:ie[he.FIELDS.START_POS],spaces:be,raws:ve})}if(this.currToken&&this.currToken[he.FIELDS.TYPE]===me.space){ae.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(ae)};_.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var _=new re["default"]({source:{start:tokenStart(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][he.FIELDS.START_POS]});this.current.parent.append(_);this.current=_;this.position++};_.comment=function comment(){var _=this.currToken;this.newNode(new ne["default"]({value:this.content(),source:getTokenSource(_),sourceIndex:_[he.FIELDS.START_POS]}));this.position++};_.error=function error(_,X){throw this.root.error(_,X)};_.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[he.FIELDS.START_POS]})};_.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[he.FIELDS.START_POS])};_.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[he.FIELDS.START_POS])};_.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[he.FIELDS.START_POS])};_.unexpectedPipe=function unexpectedPipe(){return this.error("Unexpected '|'.",this.currToken[he.FIELDS.START_POS])};_.namespace=function namespace(){var _=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[he.FIELDS.TYPE]===me.word){this.position++;return this.word(_)}else if(this.nextToken[he.FIELDS.TYPE]===me.asterisk){this.position++;return this.universal(_)}this.unexpectedPipe()};_.nesting=function nesting(){if(this.nextToken){var _=this.content(this.nextToken);if(_==="|"){this.position++;return}}var X=this.currToken;this.newNode(new fe["default"]({value:this.content(),source:getTokenSource(X),sourceIndex:X[he.FIELDS.START_POS]}));this.position++};_.parentheses=function parentheses(){var _=this.current.last;var X=1;this.position++;if(_&&_.type===ge.PSEUDO){var ee=new re["default"]({source:{start:tokenStart(this.tokens[this.position])},sourceIndex:this.tokens[this.position][he.FIELDS.START_POS]});var te=this.current;_.append(ee);this.current=ee;while(this.position1&&_.nextToken&&_.nextToken[he.FIELDS.TYPE]===me.openParenthesis){_.error("Misplaced parenthesis.",{index:_.nextToken[he.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[he.FIELDS.START_POS])}};_.space=function space(){var _=this.content();if(this.position===0||this.prevToken[he.FIELDS.TYPE]===me.comma||this.prevToken[he.FIELDS.TYPE]===me.openParenthesis||this.current.nodes.every((function(_){return _.type==="comment"}))){this.spaces=this.optionalSpace(_);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[he.FIELDS.TYPE]===me.comma||this.nextToken[he.FIELDS.TYPE]===me.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(_);this.position++}else{this.combinator()}};_.string=function string(){var _=this.currToken;this.newNode(new ae["default"]({value:this.content(),source:getTokenSource(_),sourceIndex:_[he.FIELDS.START_POS]}));this.position++};_.universal=function universal(_){var X=this.nextToken;if(X&&this.content(X)==="|"){this.position++;return this.namespace()}var ee=this.currToken;this.newNode(new ce["default"]({value:this.content(),source:getTokenSource(ee),sourceIndex:ee[he.FIELDS.START_POS]}),_);this.position++};_.splitWord=function splitWord(_,X){var ee=this;var te=this.nextToken;var re=this.content();while(te&&~[me.dollar,me.caret,me.equals,me.word].indexOf(te[he.FIELDS.TYPE])){this.position++;var ne=this.content();re+=ne;if(ne.lastIndexOf("\\")===ne.length-1){var ae=this.nextToken;if(ae&&ae[he.FIELDS.TYPE]===me.space){re+=this.requiredSpace(this.content(ae));this.position++}}te=this.nextToken}var le=indexesOf(re,".").filter((function(_){var X=re[_-1]==="\\";var ee=/^\d+\.\d+%$/.test(re);return!X&&!ee}));var ue=indexesOf(re,"#").filter((function(_){return re[_-1]!=="\\"}));var ce=indexesOf(re,"#{");if(ce.length){ue=ue.filter((function(_){return!~ce.indexOf(_)}))}var pe=(0,de["default"])(uniqs([0].concat(le,ue)));pe.forEach((function(te,ne){var ae=pe[ne+1]||re.length;var ce=re.slice(te,ae);if(ne===0&&X){return X.call(ee,ce,pe.length)}var fe;var de=ee.currToken;var me=de[he.FIELDS.START_POS]+pe[ne];var ge=getSource(de[1],de[2]+te,de[3],de[2]+(ae-1));if(~le.indexOf(te)){var be={value:ce.slice(1),source:ge,sourceIndex:me};fe=new se["default"](unescapeProp(be,"value"))}else if(~ue.indexOf(te)){var ve={value:ce.slice(1),source:ge,sourceIndex:me};fe=new ie["default"](unescapeProp(ve,"value"))}else{var ye={value:ce,source:ge,sourceIndex:me};unescapeProp(ye,"value");fe=new oe["default"](ye)}ee.newNode(fe,_);_=null}));this.position++};_.word=function word(_){var X=this.nextToken;if(X&&this.content(X)==="|"){this.position++;return this.namespace()}return this.splitWord(_)};_.loop=function loop(){while(this.position{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(5838));function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}var re=function(){function Processor(_,X){this.func=_||function noop(){};this.funcRes=null;this.options=X}var _=Processor.prototype;_._shouldUpdateSelector=function _shouldUpdateSelector(_,X){if(X===void 0){X={}}var ee=Object.assign({},this.options,X);if(ee.updateSelector===false){return false}else{return typeof _!=="string"}};_._isLossy=function _isLossy(_){if(_===void 0){_={}}var X=Object.assign({},this.options,_);if(X.lossless===false){return true}else{return false}};_._root=function _root(_,X){if(X===void 0){X={}}var ee=new te["default"](_,this._parseOptions(X));return ee.root};_._parseOptions=function _parseOptions(_){return{lossy:this._isLossy(_)}};_._run=function _run(_,X){var ee=this;if(X===void 0){X={}}return new Promise((function(te,re){try{var se=ee._root(_,X);Promise.resolve(ee.func(se)).then((function(te){var re=undefined;if(ee._shouldUpdateSelector(_,X)){re=se.toString();_.selector=re}return{transform:te,root:se,string:re}})).then(te,re)}catch(_){re(_);return}}))};_._runSync=function _runSync(_,X){if(X===void 0){X={}}var ee=this._root(_,X);var te=this.func(ee);if(te&&typeof te.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var re=undefined;if(X.updateSelector&&typeof _!=="string"){re=ee.toString();_.selector=re}return{transform:te,root:ee,string:re}};_.ast=function ast(_,X){return this._run(_,X).then((function(_){return _.root}))};_.astSync=function astSync(_,X){return this._runSync(_,X).root};_.transform=function transform(_,X){return this._run(_,X).then((function(_){return _.transform}))};_.transformSync=function transformSync(_,X){return this._runSync(_,X).transform};_.process=function process(_,X){return this._run(_,X).then((function(_){return _.string||_.root.toString()}))};_.processSync=function processSync(_,X){var ee=this._runSync(_,X);return ee.string||ee.root.toString()};return Processor}();X["default"]=re;_.exports=X.default},4910:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;X.unescapeValue=unescapeValue;var te=_interopRequireDefault(ee(441));var re=_interopRequireDefault(ee(7949));var se=_interopRequireDefault(ee(2551));var ne=ee(7105);var ie;function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee0&&!_.quoted&&ee.before.length===0&&!(_.spaces.value&&_.spaces.value.after)){ee.before=" "}return defaultAttrConcat(X,ee)})))}X.push("]");X.push(this.rawSpaceAfter);return X.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var _=this.quoteMark;return _==="'"||_==='"'},set:function set(_){ue()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(_){if(!this._constructed){this._quoteMark=_;return}if(this._quoteMark!==_){this._quoteMark=_;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(_){if(this._constructed){var X=unescapeValue(_),ee=X.deprecatedUsage,te=X.unescaped,re=X.quoteMark;if(ee){le()}if(te===this._value&&re===this._quoteMark){return}this._value=te;this._quoteMark=re;this._syncRawValue()}else{this._value=_}}},{key:"insensitive",get:function get(){return this._insensitive},set:function set(_){if(!_){this._insensitive=false;if(this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")){this.raws.insensitiveFlag=undefined}}this._insensitive=_}},{key:"attribute",get:function get(){return this._attribute},set:function set(_){this._handleEscapes("attribute",_);this._attribute=_}}]);return Attribute}(se["default"]);X["default"]=pe;pe.NO_QUOTE=null;pe.SINGLE_QUOTE="'";pe.DOUBLE_QUOTE='"';var fe=(ie={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},ie[null]={isIdentifier:true},ie);function defaultAttrConcat(_,X){return""+X.before+_+X.after}},7113:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(441));var re=ee(4371);var se=_interopRequireDefault(ee(4938));var ne=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Combinator,_);function Combinator(X){var ee;ee=_.call(this,X)||this;ee.type=re.COMBINATOR;return ee}return Combinator}(te["default"]);X["default"]=se;_.exports=X.default},6723:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Comment,_);function Comment(X){var ee;ee=_.call(this,X)||this;ee.type=re.COMMENT;return ee}return Comment}(te["default"]);X["default"]=se;_.exports=X.default},9374:(_,X,ee)=>{"use strict";X.__esModule=true;X.universal=X.tag=X.string=X.selector=X.root=X.pseudo=X.nesting=X.id=X.comment=X.combinator=X.className=X.attribute=void 0;var te=_interopRequireDefault(ee(4910));var re=_interopRequireDefault(ee(7113));var se=_interopRequireDefault(ee(7805));var ne=_interopRequireDefault(ee(6723));var ie=_interopRequireDefault(ee(8362));var oe=_interopRequireDefault(ee(7066));var ae=_interopRequireDefault(ee(9573));var le=_interopRequireDefault(ee(7774));var ue=_interopRequireDefault(ee(372));var ce=_interopRequireDefault(ee(4931));var pe=_interopRequireDefault(ee(4088));var fe=_interopRequireDefault(ee(2767));function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}var de=function attribute(_){return new te["default"](_)};X.attribute=de;var he=function className(_){return new re["default"](_)};X.className=he;var me=function combinator(_){return new se["default"](_)};X.combinator=me;var ge=function comment(_){return new ne["default"](_)};X.comment=ge;var be=function id(_){return new ie["default"](_)};X.id=be;var ve=function nesting(_){return new oe["default"](_)};X.nesting=ve;var ye=function pseudo(_){return new ae["default"](_)};X.pseudo=ye;var we=function root(_){return new le["default"](_)};X.root=we;var xe=function selector(_){return new ue["default"](_)};X.selector=xe;var ke=function string(_){return new ce["default"](_)};X.string=ke;var Se=function tag(_){return new pe["default"](_)};X.tag=Se;var _e=function universal(_){return new fe["default"](_)};X.universal=_e},304:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=_interopRequireWildcard(ee(7105));function _getRequireWildcardCache(_){if(typeof WeakMap!=="function")return null;var X=new WeakMap;var ee=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(_){return _?ee:X})(_)}function _interopRequireWildcard(_,X){if(!X&&_&&_.__esModule){return _}if(_===null||typeof _!=="object"&&typeof _!=="function"){return{default:_}}var ee=_getRequireWildcardCache(X);if(ee&&ee.has(_)){return ee.get(_)}var te={};var re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in _){if(se!=="default"&&Object.prototype.hasOwnProperty.call(_,se)){var ne=re?Object.getOwnPropertyDescriptor(_,se):null;if(ne&&(ne.get||ne.set)){Object.defineProperty(te,se,ne)}else{te[se]=_[se]}}}te["default"]=_;if(ee){ee.set(_,te)}return te}function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _createForOfIteratorHelperLoose(_,X){var ee=typeof Symbol!=="undefined"&&_[Symbol.iterator]||_["@@iterator"];if(ee)return(ee=ee.call(_)).next.bind(ee);if(Array.isArray(_)||(ee=_unsupportedIterableToArray(_))||X&&_&&typeof _.length==="number"){if(ee)_=ee;var te=0;return function(){if(te>=_.length)return{done:true};return{done:false,value:_[te++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(_,X){if(!_)return;if(typeof _==="string")return _arrayLikeToArray(_,X);var ee=Object.prototype.toString.call(_).slice(8,-1);if(ee==="Object"&&_.constructor)ee=_.constructor.name;if(ee==="Map"||ee==="Set")return Array.from(_);if(ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee))return _arrayLikeToArray(_,X)}function _arrayLikeToArray(_,X){if(X==null||X>_.length)X=_.length;for(var ee=0,te=new Array(X);ee=_){this.indexes[ee]=X-1}}return this};X.removeAll=function removeAll(){for(var _=_createForOfIteratorHelperLoose(this.nodes),X;!(X=_()).done;){var ee=X.value;ee.parent=undefined}this.nodes=[];return this};X.empty=function empty(){return this.removeAll()};X.insertAfter=function insertAfter(_,X){X.parent=this;var ee=this.index(_);this.nodes.splice(ee+1,0,X);X.parent=this;var te;for(var re in this.indexes){te=this.indexes[re];if(ee<=te){this.indexes[re]=te+1}}return this};X.insertBefore=function insertBefore(_,X){X.parent=this;var ee=this.index(_);this.nodes.splice(ee,0,X);X.parent=this;var te;for(var re in this.indexes){te=this.indexes[re];if(te<=ee){this.indexes[re]=te+1}}return this};X._findChildAtPosition=function _findChildAtPosition(_,X){var ee=undefined;this.each((function(te){if(te.atPosition){var re=te.atPosition(_,X);if(re){ee=re;return false}}else if(te.isAtPosition(_,X)){ee=te;return false}}));return ee};X.atPosition=function atPosition(_,X){if(this.isAtPosition(_,X)){return this._findChildAtPosition(_,X)||this}else{return undefined}};X._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};X.each=function each(_){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var X=this.lastEach;this.indexes[X]=0;if(!this.length){return undefined}var ee,te;while(this.indexes[X]{"use strict";X.__esModule=true;X.isComment=X.isCombinator=X.isClassName=X.isAttribute=void 0;X.isContainer=isContainer;X.isIdentifier=void 0;X.isNamespace=isNamespace;X.isNesting=void 0;X.isNode=isNode;X.isPseudo=void 0;X.isPseudoClass=isPseudoClass;X.isPseudoElement=isPseudoElement;X.isUniversal=X.isTag=X.isString=X.isSelector=X.isRoot=void 0;var te=ee(7105);var re;var se=(re={},re[te.ATTRIBUTE]=true,re[te.CLASS]=true,re[te.COMBINATOR]=true,re[te.COMMENT]=true,re[te.ID]=true,re[te.NESTING]=true,re[te.PSEUDO]=true,re[te.ROOT]=true,re[te.SELECTOR]=true,re[te.STRING]=true,re[te.TAG]=true,re[te.UNIVERSAL]=true,re);function isNode(_){return typeof _==="object"&&se[_.type]}function isNodeType(_,X){return isNode(X)&&X.type===_}var ne=isNodeType.bind(null,te.ATTRIBUTE);X.isAttribute=ne;var ie=isNodeType.bind(null,te.CLASS);X.isClassName=ie;var oe=isNodeType.bind(null,te.COMBINATOR);X.isCombinator=oe;var ae=isNodeType.bind(null,te.COMMENT);X.isComment=ae;var le=isNodeType.bind(null,te.ID);X.isIdentifier=le;var ue=isNodeType.bind(null,te.NESTING);X.isNesting=ue;var ce=isNodeType.bind(null,te.PSEUDO);X.isPseudo=ce;var pe=isNodeType.bind(null,te.ROOT);X.isRoot=pe;var fe=isNodeType.bind(null,te.SELECTOR);X.isSelector=fe;var de=isNodeType.bind(null,te.STRING);X.isString=de;var he=isNodeType.bind(null,te.TAG);X.isTag=he;var me=isNodeType.bind(null,te.UNIVERSAL);X.isUniversal=me;function isPseudoElement(_){return ce(_)&&_.value&&(_.value.startsWith("::")||_.value.toLowerCase()===":before"||_.value.toLowerCase()===":after"||_.value.toLowerCase()===":first-letter"||_.value.toLowerCase()===":first-line")}function isPseudoClass(_){return ce(_)&&!isPseudoElement(_)}function isContainer(_){return!!(isNode(_)&&_.walk)}function isNamespace(_){return ne(_)||he(_)}},8362:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(ID,_);function ID(X){var ee;ee=_.call(this,X)||this;ee.type=re.ID;return ee}var X=ID.prototype;X.valueToString=function valueToString(){return"#"+_.prototype.valueToString.call(this)};return ID}(te["default"]);X["default"]=se;_.exports=X.default},7759:(_,X,ee)=>{"use strict";X.__esModule=true;var te=ee(7105);Object.keys(te).forEach((function(_){if(_==="default"||_==="__esModule")return;if(_ in X&&X[_]===te[_])return;X[_]=te[_]}));var re=ee(9374);Object.keys(re).forEach((function(_){if(_==="default"||_==="__esModule")return;if(_ in X&&X[_]===re[_])return;X[_]=re[_]}));var se=ee(5943);Object.keys(se).forEach((function(_){if(_==="default"||_==="__esModule")return;if(_ in X&&X[_]===se[_])return;X[_]=se[_]}))},2551:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(441));var re=ee(4371);var se=_interopRequireDefault(ee(4938));function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Nesting,_);function Nesting(X){var ee;ee=_.call(this,X)||this;ee.type=re.NESTING;ee.value="&";return ee}return Nesting}(te["default"]);X["default"]=se;_.exports=X.default},4938:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=ee(4371);function _defineProperties(_,X){for(var ee=0;ee_){return false}if(this.source.end.line<_){return false}if(this.source.start.line===_&&this.source.start.column>X){return false}if(this.source.end.line===_&&this.source.end.column{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(304));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Pseudo,_);function Pseudo(X){var ee;ee=_.call(this,X)||this;ee.type=re.PSEUDO;return ee}var X=Pseudo.prototype;X.toString=function toString(){var _=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),_,this.rawSpaceAfter].join("")};return Pseudo}(te["default"]);X["default"]=se;_.exports=X.default},7774:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(304));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(304));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Selector,_);function Selector(X){var ee;ee=_.call(this,X)||this;ee.type=re.SELECTOR;return ee}return Selector}(te["default"]);X["default"]=se;_.exports=X.default},4931:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(String,_);function String(X){var ee;ee=_.call(this,X)||this;ee.type=re.STRING;return ee}return String}(te["default"]);X["default"]=se;_.exports=X.default},4088:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(2551));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Tag,_);function Tag(X){var ee;ee=_.call(this,X)||this;ee.type=re.TAG;return ee}return Tag}(te["default"]);X["default"]=se;_.exports=X.default},7105:(_,X)=>{"use strict";X.__esModule=true;X.UNIVERSAL=X.TAG=X.STRING=X.SELECTOR=X.ROOT=X.PSEUDO=X.NESTING=X.ID=X.COMMENT=X.COMBINATOR=X.CLASS=X.ATTRIBUTE=void 0;var ee="tag";X.TAG=ee;var te="string";X.STRING=te;var re="selector";X.SELECTOR=re;var se="root";X.ROOT=se;var ne="pseudo";X.PSEUDO=ne;var ie="nesting";X.NESTING=ie;var oe="id";X.ID=oe;var ae="comment";X.COMMENT=ae;var le="combinator";X.COMBINATOR=le;var ue="class";X.CLASS=ue;var ce="attribute";X.ATTRIBUTE=ce;var pe="universal";X.UNIVERSAL=pe},2767:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(2551));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Universal,_);function Universal(X){var ee;ee=_.call(this,X)||this;ee.type=re.UNIVERSAL;ee.value="*";return ee}return Universal}(te["default"]);X["default"]=se;_.exports=X.default},866:(_,X)=>{"use strict";X.__esModule=true;X["default"]=sortAscending;function sortAscending(_){return _.sort((function(_,X){return _-X}))}_.exports=X.default},6004:(_,X)=>{"use strict";X.__esModule=true;X.word=X.tilde=X.tab=X.str=X.space=X.slash=X.singleQuote=X.semicolon=X.plus=X.pipe=X.openSquare=X.openParenthesis=X.newline=X.greaterThan=X.feed=X.equals=X.doubleQuote=X.dollar=X.cr=X.comment=X.comma=X.combinator=X.colon=X.closeSquare=X.closeParenthesis=X.caret=X.bang=X.backslash=X.at=X.asterisk=X.ampersand=void 0;var ee=38;X.ampersand=ee;var te=42;X.asterisk=te;var re=64;X.at=re;var se=44;X.comma=se;var ne=58;X.colon=ne;var ie=59;X.semicolon=ie;var oe=40;X.openParenthesis=oe;var ae=41;X.closeParenthesis=ae;var le=91;X.openSquare=le;var ue=93;X.closeSquare=ue;var ce=36;X.dollar=ce;var pe=126;X.tilde=pe;var fe=94;X.caret=fe;var de=43;X.plus=de;var he=61;X.equals=he;var me=124;X.pipe=me;var ge=62;X.greaterThan=ge;var be=32;X.space=be;var ve=39;X.singleQuote=ve;var ye=34;X.doubleQuote=ye;var we=47;X.slash=we;var xe=33;X.bang=xe;var ke=92;X.backslash=ke;var Se=13;X.cr=Se;var _e=12;X.feed=_e;var Pe=10;X.newline=Pe;var Oe=9;X.tab=Oe;var je=ve;X.str=je;var Te=-1;X.comment=Te;var Ee=-2;X.word=Ee;var Fe=-3;X.combinator=Fe},9668:(_,X,ee)=>{"use strict";X.__esModule=true;X.FIELDS=void 0;X["default"]=tokenize;var te=_interopRequireWildcard(ee(6004));var re,se;function _getRequireWildcardCache(_){if(typeof WeakMap!=="function")return null;var X=new WeakMap;var ee=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(_){return _?ee:X})(_)}function _interopRequireWildcard(_,X){if(!X&&_&&_.__esModule){return _}if(_===null||typeof _!=="object"&&typeof _!=="function"){return{default:_}}var ee=_getRequireWildcardCache(X);if(ee&&ee.has(_)){return ee.get(_)}var te={};var re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in _){if(se!=="default"&&Object.prototype.hasOwnProperty.call(_,se)){var ne=re?Object.getOwnPropertyDescriptor(_,se):null;if(ne&&(ne.get||ne.set)){Object.defineProperty(te,se,ne)}else{te[se]=_[se]}}}te["default"]=_;if(ee){ee.set(_,te)}return te}var ne=(re={},re[te.tab]=true,re[te.newline]=true,re[te.cr]=true,re[te.feed]=true,re);var ie=(se={},se[te.space]=true,se[te.tab]=true,se[te.newline]=true,se[te.cr]=true,se[te.feed]=true,se[te.ampersand]=true,se[te.asterisk]=true,se[te.bang]=true,se[te.comma]=true,se[te.colon]=true,se[te.semicolon]=true,se[te.openParenthesis]=true,se[te.closeParenthesis]=true,se[te.openSquare]=true,se[te.closeSquare]=true,se[te.singleQuote]=true,se[te.doubleQuote]=true,se[te.plus]=true,se[te.pipe]=true,se[te.tilde]=true,se[te.greaterThan]=true,se[te.equals]=true,se[te.dollar]=true,se[te.caret]=true,se[te.slash]=true,se);var oe={};var ae="0123456789abcdefABCDEF";for(var le=0;le0){be=ie+he;ve=ge-me[he].length}else{be=ie;ve=ne}we=te.comment;ie=be;pe=be;ce=ge-ve}else if(le===te.slash){ge=oe;we=le;pe=ie;ce=oe-ne;ae=ge+1}else{ge=consumeWord(ee,oe);we=te.word;pe=ie;ce=ge-ne}ae=ge+1;break}X.push([we,ie,oe-ne,pe,ce,oe,ae]);if(ve){ne=ve;ve=null}oe=ae}return X}},3695:(_,X)=>{"use strict";X.__esModule=true;X["default"]=ensureObject;function ensureObject(_){for(var X=arguments.length,ee=new Array(X>1?X-1:0),te=1;te0){var re=ee.shift();if(!_[re]){_[re]={}}_=_[re]}}_.exports=X.default},5919:(_,X)=>{"use strict";X.__esModule=true;X["default"]=getProp;function getProp(_){for(var X=arguments.length,ee=new Array(X>1?X-1:0),te=1;te0){var re=ee.shift();if(!_[re]){return undefined}_=_[re]}return _}_.exports=X.default},4371:(_,X,ee)=>{"use strict";X.__esModule=true;X.unesc=X.stripComments=X.getProp=X.ensureObject=void 0;var te=_interopRequireDefault(ee(7949));X.unesc=te["default"];var re=_interopRequireDefault(ee(5919));X.getProp=re["default"];var se=_interopRequireDefault(ee(3695));X.ensureObject=se["default"];var ne=_interopRequireDefault(ee(7945));X.stripComments=ne["default"];function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}},7945:(_,X)=>{"use strict";X.__esModule=true;X["default"]=stripComments;function stripComments(_){var X="";var ee=_.indexOf("/*");var te=0;while(ee>=0){X=X+_.slice(te,ee);var re=_.indexOf("*/",ee+2);if(re<0){return X}te=re+2;ee=_.indexOf("/*",te)}X=X+_.slice(te);return X}_.exports=X.default},7949:(_,X)=>{"use strict";X.__esModule=true;X["default"]=unesc;function gobbleHex(_){var X=_.toLowerCase();var ee="";var te=false;for(var re=0;re<6&&X[re]!==undefined;re++){var se=X.charCodeAt(re);var ne=se>=97&&se<=102||se>=48&&se<=57;te=se===32;if(!ne){break}ee+=X[re]}if(ee.length===0){return undefined}var ie=parseInt(ee,16);var oe=ie>=55296&&ie<=57343;if(oe||ie===0||ie>1114111){return["�",ee.length+(te?1:0)]}return[String.fromCodePoint(ie),ee.length+(te?1:0)]}var ee=/\\/;function unesc(_){var X=ee.test(_);if(!X){return _}var te="";for(var re=0;re<_.length;re++){if(_[re]==="\\"){var se=gobbleHex(_.slice(re+1,re+7));if(se!==undefined){te+=se[0];re+=se[1];continue}if(_[re+1]==="\\"){te+="\\";re++;continue}if(_.length===re+1){te+=_[re]}continue}te+=_[re]}return te}_.exports=X.default},5726:_=>{"use strict";let X={comma(_){return X.split(_,[","],true)},space(_){let ee=[" ","\n","\t"];return X.split(_,ee)},split(_,X,ee){let te=[];let re="";let se=false;let ne=0;let ie=false;let oe="";let ae=false;for(let ee of _){if(ae){ae=false}else if(ee==="\\"){ae=true}else if(ie){if(ee===oe){ie=false}}else if(ee==='"'||ee==="'"){ie=true;oe=ee}else if(ee==="("){ne+=1}else if(ee===")"){if(ne>0)ne-=1}else if(ne===0){if(X.includes(ee))se=true}if(se){if(re!=="")te.push(re.trim());re="";se=false}else{re+=ee}}if(ee||re!=="")te.push(re.trim());return te}};_.exports=X;X.default=X},6124:(_,X,ee)=>{_.exports=ee(3837).deprecate},5829:_=>{function webpackEmptyContext(_){var X=new Error("Cannot find module '"+_+"'");X.code="MODULE_NOT_FOUND";throw X}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=5829;_.exports=webpackEmptyContext},1736:_=>{function webpackEmptyContext(_){var X=new Error("Cannot find module '"+_+"'");X.code="MODULE_NOT_FOUND";throw X}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=1736;_.exports=webpackEmptyContext},5591:_=>{"use strict";_.exports=require("caniuse-lite/data/features/background-clip-text")},1188:_=>{"use strict";_.exports=require("caniuse-lite/data/features/background-img-opts")},7097:_=>{"use strict";_.exports=require("caniuse-lite/data/features/border-image")},2861:_=>{"use strict";_.exports=require("caniuse-lite/data/features/border-radius")},3098:_=>{"use strict";_.exports=require("caniuse-lite/data/features/calc")},354:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-animation")},9323:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-any-link")},4773:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-appearance")},7721:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-autofill")},3166:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-backdrop-filter")},6781:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-boxdecorationbreak")},2194:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-boxshadow")},9205:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-clip-path")},8995:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-crisp-edges")},8786:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-cross-fade")},3504:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-deviceadaptation")},7801:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-element-function")},8944:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-featurequeries.js")},2416:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-file-selector-button")},1545:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-filter-function")},3882:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-filters")},2571:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-gradients")},6554:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-grid")},5197:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-hyphens")},2237:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-image-set")},7395:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-logical-props")},6649:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-masks")},8181:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-media-resolution")},3898:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-overscroll-behavior")},6215:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-placeholder")},9278:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-placeholder-shown")},8066:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-print-color-adjust")},2478:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-read-only-write")},1949:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-regions")},4822:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-selection")},5460:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-shapes")},1340:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-snappoints")},8235:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-sticky")},2807:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-text-align-last")},4838:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-text-orientation")},9290:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-text-spacing")},40:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-transitions")},7437:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-width-stretch")},2298:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-writing-mode")},6597:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css3-boxsizing")},2983:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css3-cursors-grab")},8265:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css3-cursors-newer")},3247:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css3-tabsize")},4618:_=>{"use strict";_.exports=require("caniuse-lite/data/features/flexbox")},1328:_=>{"use strict";_.exports=require("caniuse-lite/data/features/font-feature")},3944:_=>{"use strict";_.exports=require("caniuse-lite/data/features/font-kerning")},7766:_=>{"use strict";_.exports=require("caniuse-lite/data/features/fullscreen")},5691:_=>{"use strict";_.exports=require("caniuse-lite/data/features/intrinsic-width")},4643:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-css-backdrop-pseudo-element")},7856:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-css-unicode-bidi-isolate")},9067:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override")},6097:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext")},5934:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-text-decoration-color")},3874:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-text-decoration-line")},1597:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-text-decoration-shorthand")},3480:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-text-decoration-style")},7809:_=>{"use strict";_.exports=require("caniuse-lite/data/features/multicolumn")},1480:_=>{"use strict";_.exports=require("caniuse-lite/data/features/object-fit")},1014:_=>{"use strict";_.exports=require("caniuse-lite/data/features/pointer")},134:_=>{"use strict";_.exports=require("caniuse-lite/data/features/text-decoration")},5514:_=>{"use strict";_.exports=require("caniuse-lite/data/features/text-emphasis")},7806:_=>{"use strict";_.exports=require("caniuse-lite/data/features/text-overflow")},744:_=>{"use strict";_.exports=require("caniuse-lite/data/features/text-size-adjust")},4602:_=>{"use strict";_.exports=require("caniuse-lite/data/features/transforms2d")},2866:_=>{"use strict";_.exports=require("caniuse-lite/data/features/transforms3d")},9474:_=>{"use strict";_.exports=require("caniuse-lite/data/features/user-select-none")},3768:_=>{"use strict";_.exports=require("caniuse-lite/dist/unpacker/agents")},1711:_=>{"use strict";_.exports=require("caniuse-lite/dist/unpacker/feature")},7147:_=>{"use strict";_.exports=require("fs")},4907:_=>{"use strict";_.exports=require("next/dist/compiled/browserslist")},2045:_=>{"use strict";_.exports=require("next/dist/compiled/postcss-value-parser")},1017:_=>{"use strict";_.exports=require("path")},977:_=>{"use strict";_.exports=require("postcss")},7310:_=>{"use strict";_.exports=require("url")},3837:_=>{"use strict";_.exports=require("util")},5378:(_,X,ee)=>{"use strict";var te=ee(5449),re=ee(2045);function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=t(te),ne=t(re); +(()=>{var _={5399:(_,X,ee)=>{let te=ee(1711);function browsersSort(_,X){_=_.split(" ");X=X.split(" ");if(_[0]>X[0]){return 1}else if(_[0]prefix(["border-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],{browsers:_,feature:"border-radius",mistakes:["-khtml-","-ms-","-o-"]})));let ne=ee(2194);f(ne,(_=>prefix(["box-shadow"],{browsers:_,feature:"css-boxshadow",mistakes:["-khtml-"]})));let ie=ee(354);f(ie,(_=>prefix(["animation","animation-name","animation-duration","animation-delay","animation-direction","animation-fill-mode","animation-iteration-count","animation-play-state","animation-timing-function","@keyframes"],{browsers:_,feature:"css-animation",mistakes:["-khtml-","-ms-"]})));let oe=ee(40);f(oe,(_=>prefix(["transition","transition-property","transition-duration","transition-delay","transition-timing-function"],{browsers:_,feature:"css-transitions",mistakes:["-khtml-","-ms-"]})));let ae=ee(4602);f(ae,(_=>prefix(["transform","transform-origin"],{browsers:_,feature:"transforms2d"})));let le=ee(2866);f(le,(_=>{prefix(["perspective","perspective-origin"],{browsers:_,feature:"transforms3d"});return prefix(["transform-style"],{browsers:_,feature:"transforms3d",mistakes:["-ms-","-o-"]})}));f(le,{match:/y\sx|y\s#2/},(_=>prefix(["backface-visibility"],{browsers:_,feature:"transforms3d",mistakes:["-ms-","-o-"]})));let ue=ee(2571);f(ue,{match:/y\sx/},(_=>prefix(["linear-gradient","repeating-linear-gradient","radial-gradient","repeating-radial-gradient"],{browsers:_,feature:"css-gradients",mistakes:["-ms-"],props:["background","background-image","border-image","mask","list-style","list-style-image","content","mask-image"]})));f(ue,{match:/a\sx/},(_=>{_=_.map((_=>{if(/firefox|op/.test(_)){return _}else{return`${_} old`}}));return add(["linear-gradient","repeating-linear-gradient","radial-gradient","repeating-radial-gradient"],{browsers:_,feature:"css-gradients"})}));let ce=ee(6597);f(ce,(_=>prefix(["box-sizing"],{browsers:_,feature:"css3-boxsizing"})));let pe=ee(3882);f(pe,(_=>prefix(["filter"],{browsers:_,feature:"css-filters"})));let fe=ee(1545);f(fe,(_=>prefix(["filter-function"],{browsers:_,feature:"css-filter-function",props:["background","background-image","border-image","mask","list-style","list-style-image","content","mask-image"]})));let de=ee(3166);f(de,{match:/y\sx|y\s#2/},(_=>prefix(["backdrop-filter"],{browsers:_,feature:"css-backdrop-filter"})));let he=ee(7801);f(he,(_=>prefix(["element"],{browsers:_,feature:"css-element-function",props:["background","background-image","border-image","mask","list-style","list-style-image","content","mask-image"]})));let me=ee(7809);f(me,(_=>{prefix(["columns","column-width","column-gap","column-rule","column-rule-color","column-rule-width","column-count","column-rule-style","column-span","column-fill"],{browsers:_,feature:"multicolumn"});let X=_.filter((_=>!/firefox/.test(_)));prefix(["break-before","break-after","break-inside"],{browsers:X,feature:"multicolumn"})}));let ge=ee(9474);f(ge,(_=>prefix(["user-select"],{browsers:_,feature:"user-select-none",mistakes:["-khtml-"]})));let be=ee(4618);f(be,{match:/a\sx/},(_=>{_=_.map((_=>{if(/ie|firefox/.test(_)){return _}else{return`${_} 2009`}}));prefix(["display-flex","inline-flex"],{browsers:_,feature:"flexbox",props:["display"]});prefix(["flex","flex-grow","flex-shrink","flex-basis"],{browsers:_,feature:"flexbox"});prefix(["flex-direction","flex-wrap","flex-flow","justify-content","order","align-items","align-self","align-content"],{browsers:_,feature:"flexbox"})}));f(be,{match:/y\sx/},(_=>{add(["display-flex","inline-flex"],{browsers:_,feature:"flexbox"});add(["flex","flex-grow","flex-shrink","flex-basis"],{browsers:_,feature:"flexbox"});add(["flex-direction","flex-wrap","flex-flow","justify-content","order","align-items","align-self","align-content"],{browsers:_,feature:"flexbox"})}));let ve=ee(3098);f(ve,(_=>prefix(["calc"],{browsers:_,feature:"calc",props:["*"]})));let ye=ee(1188);f(ye,(_=>prefix(["background-origin","background-size"],{browsers:_,feature:"background-img-opts"})));let we=ee(5591);f(we,(_=>prefix(["background-clip"],{browsers:_,feature:"background-clip-text"})));let xe=ee(1328);f(xe,(_=>prefix(["font-feature-settings","font-variant-ligatures","font-language-override"],{browsers:_,feature:"font-feature"})));let ke=ee(3944);f(ke,(_=>prefix(["font-kerning"],{browsers:_,feature:"font-kerning"})));let Se=ee(7097);f(Se,(_=>prefix(["border-image"],{browsers:_,feature:"border-image"})));let _e=ee(4822);f(_e,(_=>prefix(["::selection"],{browsers:_,feature:"css-selection",selector:true})));let Pe=ee(6215);f(Pe,(_=>{prefix(["::placeholder"],{browsers:_.concat(["ie 10 old","ie 11 old","firefox 18 old"]),feature:"css-placeholder",selector:true})}));let Oe=ee(9278);f(Oe,(_=>{prefix([":placeholder-shown"],{browsers:_,feature:"css-placeholder-shown",selector:true})}));let je=ee(5197);f(je,(_=>prefix(["hyphens"],{browsers:_,feature:"css-hyphens"})));let Te=ee(7766);f(Te,(_=>prefix([":fullscreen"],{browsers:_,feature:"fullscreen",selector:true})));let Ee=ee(4643);f(Ee,(_=>prefix(["::backdrop"],{browsers:_,feature:"backdrop",selector:true})));let Fe=ee(2416);f(Fe,(_=>prefix(["::file-selector-button"],{browsers:_,feature:"file-selector-button",selector:true})));let Me=ee(7721);f(Me,(_=>prefix([":autofill"],{browsers:_,feature:"css-autofill",selector:true})));let $e=ee(3247);f($e,(_=>prefix(["tab-size"],{browsers:_,feature:"css3-tabsize"})));let Re=ee(5691);let Ae=["width","min-width","max-width","height","min-height","max-height","inline-size","min-inline-size","max-inline-size","block-size","min-block-size","max-block-size","grid","grid-template","grid-template-rows","grid-template-columns","grid-auto-columns","grid-auto-rows"];f(Re,(_=>prefix(["max-content","min-content"],{browsers:_,feature:"intrinsic-width",props:Ae})));f(Re,{match:/x|\s#4/},(_=>prefix(["fill","fill-available"],{browsers:_,feature:"intrinsic-width",props:Ae})));f(Re,{match:/x|\s#5/},(_=>{let X=_.filter((_=>{let[X,ee]=_.split(" ");if(X==="firefox"||X==="and_ff"){return parseInt(ee)<94}else{return true}}));return prefix(["fit-content"],{browsers:X,feature:"intrinsic-width",props:Ae})}));let qe=ee(7437);f(qe,(_=>prefix(["stretch"],{browsers:_,feature:"css-width-stretch",props:Ae})));let ze=ee(8265);f(ze,(_=>prefix(["zoom-in","zoom-out"],{browsers:_,feature:"css3-cursors-newer",props:["cursor"]})));let Ge=ee(2983);f(Ge,(_=>prefix(["grab","grabbing"],{browsers:_,feature:"css3-cursors-grab",props:["cursor"]})));let Ue=ee(8235);f(Ue,(_=>prefix(["sticky"],{browsers:_,feature:"css-sticky",props:["position"]})));let He=ee(1014);f(He,(_=>prefix(["touch-action"],{browsers:_,feature:"pointer"})));let Ze=ee(134);f(Ze,{match:/x.*#[235]/},(_=>prefix(["text-decoration-skip","text-decoration-skip-ink"],{browsers:_,feature:"text-decoration"})));let Ke=ee(1597);f(Ke,(_=>prefix(["text-decoration"],{browsers:_,feature:"text-decoration"})));let Xe=ee(5934);f(Xe,(_=>prefix(["text-decoration-color"],{browsers:_,feature:"text-decoration"})));let et=ee(3874);f(et,(_=>prefix(["text-decoration-line"],{browsers:_,feature:"text-decoration"})));let tt=ee(3480);f(tt,(_=>prefix(["text-decoration-style"],{browsers:_,feature:"text-decoration"})));let rt=ee(744);f(rt,(_=>prefix(["text-size-adjust"],{browsers:_,feature:"text-size-adjust"})));let st=ee(6649);f(st,(_=>{prefix(["mask-clip","mask-composite","mask-image","mask-origin","mask-repeat","mask-border-repeat","mask-border-source"],{browsers:_,feature:"css-masks"});prefix(["mask","mask-position","mask-size","mask-border","mask-border-outset","mask-border-width","mask-border-slice"],{browsers:_,feature:"css-masks"})}));let nt=ee(9205);f(nt,(_=>prefix(["clip-path"],{browsers:_,feature:"css-clip-path"})));let it=ee(6781);f(it,(_=>prefix(["box-decoration-break"],{browsers:_,feature:"css-boxdecorationbreak"})));let ot=ee(1480);f(ot,(_=>prefix(["object-fit","object-position"],{browsers:_,feature:"object-fit"})));let lt=ee(5460);f(lt,(_=>prefix(["shape-margin","shape-outside","shape-image-threshold"],{browsers:_,feature:"css-shapes"})));let ut=ee(7806);f(ut,(_=>prefix(["text-overflow"],{browsers:_,feature:"text-overflow"})));let ct=ee(3504);f(ct,(_=>prefix(["@viewport"],{browsers:_,feature:"css-deviceadaptation"})));let pt=ee(8181);f(pt,{match:/( x($| )|a #2)/},(_=>prefix(["@resolution"],{browsers:_,feature:"css-media-resolution"})));let ft=ee(2807);f(ft,(_=>prefix(["text-align-last"],{browsers:_,feature:"css-text-align-last"})));let dt=ee(8995);f(dt,{match:/y x|a x #1/},(_=>prefix(["pixelated"],{browsers:_,feature:"css-crisp-edges",props:["image-rendering"]})));f(dt,{match:/a x #2/},(_=>prefix(["image-rendering"],{browsers:_,feature:"css-crisp-edges"})));let ht=ee(7395);f(ht,(_=>prefix(["border-inline-start","border-inline-end","margin-inline-start","margin-inline-end","padding-inline-start","padding-inline-end"],{browsers:_,feature:"css-logical-props"})));f(ht,{match:/x\s#2/},(_=>prefix(["border-block-start","border-block-end","margin-block-start","margin-block-end","padding-block-start","padding-block-end"],{browsers:_,feature:"css-logical-props"})));let mt=ee(4773);f(mt,{match:/#2|x/},(_=>prefix(["appearance"],{browsers:_,feature:"css-appearance"})));let gt=ee(1340);f(gt,(_=>prefix(["scroll-snap-type","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y"],{browsers:_,feature:"css-snappoints"})));let bt=ee(1949);f(bt,(_=>prefix(["flow-into","flow-from","region-fragment"],{browsers:_,feature:"css-regions"})));let vt=ee(2237);f(vt,(_=>prefix(["image-set"],{browsers:_,feature:"css-image-set",props:["background","background-image","border-image","cursor","mask","mask-image","list-style","list-style-image","content"]})));let yt=ee(2298);f(yt,{match:/a|x/},(_=>prefix(["writing-mode"],{browsers:_,feature:"css-writing-mode"})));let wt=ee(8786);f(wt,(_=>prefix(["cross-fade"],{browsers:_,feature:"css-cross-fade",props:["background","background-image","border-image","mask","list-style","list-style-image","content","mask-image"]})));let xt=ee(2478);f(xt,(_=>prefix([":read-only",":read-write"],{browsers:_,feature:"css-read-only-write",selector:true})));let kt=ee(5514);f(kt,(_=>prefix(["text-emphasis","text-emphasis-position","text-emphasis-style","text-emphasis-color"],{browsers:_,feature:"text-emphasis"})));let St=ee(6554);f(St,(_=>{prefix(["display-grid","inline-grid"],{browsers:_,feature:"css-grid",props:["display"]});prefix(["grid-template-columns","grid-template-rows","grid-row-start","grid-column-start","grid-row-end","grid-column-end","grid-row","grid-column","grid-area","grid-template","grid-template-areas","place-self"],{browsers:_,feature:"css-grid"})}));f(St,{match:/a x/},(_=>prefix(["grid-column-align","grid-row-align"],{browsers:_,feature:"css-grid"})));let _t=ee(9290);f(_t,(_=>prefix(["text-spacing"],{browsers:_,feature:"css-text-spacing"})));let Pt=ee(9323);f(Pt,(_=>prefix([":any-link"],{browsers:_,feature:"css-any-link",selector:true})));let Ot=ee(7856);f(Ot,(_=>prefix(["isolate"],{browsers:_,feature:"css-unicode-bidi",props:["unicode-bidi"]})));let Ct=ee(6097);f(Ct,(_=>prefix(["plaintext"],{browsers:_,feature:"css-unicode-bidi",props:["unicode-bidi"]})));let jt=ee(9067);f(jt,{match:/y x/},(_=>prefix(["isolate-override"],{browsers:_,feature:"css-unicode-bidi",props:["unicode-bidi"]})));let Tt=ee(3898);f(Tt,{match:/a #1/},(_=>prefix(["overscroll-behavior"],{browsers:_,feature:"css-overscroll-behavior"})));let Et=ee(4838);f(Et,(_=>prefix(["text-orientation"],{browsers:_,feature:"css-text-orientation"})));let Ft=ee(8066);f(Ft,(_=>prefix(["print-color-adjust","color-adjust"],{browsers:_,feature:"css-print-color-adjust"})))},7811:(_,X,ee)=>{let te=ee(1683);class AtRule extends te{add(_,X){let ee=X+_.name;let te=_.parent.some((X=>X.name===ee&&X.params===_.params));if(te){return undefined}let re=this.clone(_,{name:ee});return _.parent.insertBefore(_,re)}process(_){let X=this.parentPrefix(_);for(let ee of this.prefixes){if(!X||X===ee){this.add(_,ee)}}}}_.exports=AtRule},2380:(_,X,ee)=>{let te=ee(4907);let{agents:re}=ee(3768);let se=ee(5701);let ne=ee(5399);let ie=ee(5957);let oe=ee(1498);let ae=ee(4824);let le={browsers:re,prefixes:ne};const ue="\n"+" Replace Autoprefixer `browsers` option to Browserslist config.\n"+" Use `browserslist` key in `package.json` or `.browserslistrc` file.\n"+"\n"+" Using `browsers` option can cause errors. Browserslist config can\n"+" be used for Babel, Autoprefixer, postcss-normalize and other tools.\n"+"\n"+" If you really need to use option, rename it to `overrideBrowserslist`.\n"+"\n"+" Learn more at:\n"+" https://github.com/browserslist/browserslist#readme\n"+" https://twitter.com/browserslist\n"+"\n";function isPlainObject(_){return Object.prototype.toString.apply(_)==="[object Object]"}let ce=new Map;function timeCapsule(_,X){if(X.browsers.selected.length===0){return}if(X.add.selectors.length>0){return}if(Object.keys(X.add).length>2){return}_.warn("Autoprefixer target browsers do not need any prefixes."+"You do not need Autoprefixer anymore.\n"+"Check your Browserslist config to be sure that your targets "+"are set up correctly.\n"+"\n"+" Learn more at:\n"+" https://github.com/postcss/autoprefixer#readme\n"+" https://github.com/browserslist/browserslist#readme\n"+"\n")}_.exports=plugin;function plugin(..._){let X;if(_.length===1&&isPlainObject(_[0])){X=_[0];_=undefined}else if(_.length===0||_.length===1&&!_[0]){_=undefined}else if(_.length<=2&&(Array.isArray(_[0])||!_[0])){X=_[1];_=_[0]}else if(typeof _[_.length-1]==="object"){X=_.pop()}if(!X){X={}}if(X.browser){throw new Error("Change `browser` option to `overrideBrowserslist` in Autoprefixer")}else if(X.browserslist){throw new Error("Change `browserslist` option to `overrideBrowserslist` in Autoprefixer")}if(X.overrideBrowserslist){_=X.overrideBrowserslist}else if(X.browsers){if(typeof console!=="undefined"&&console.warn){console.warn(se.red(ue.replace(/`[^`]+`/g,(_=>se.yellow(_.slice(1,-1))))))}_=X.browsers}let ee={env:X.env,ignoreUnknownVersions:X.ignoreUnknownVersions,stats:X.stats};function loadPrefixes(te){let re=le;let se=new ie(re.browsers,_,te,ee);let ne=se.selected.join(", ")+JSON.stringify(X);if(!ce.has(ne)){ce.set(ne,new ae(re.prefixes,se,X))}return ce.get(ne)}return{browsers:_,info(_){_=_||{};_.from=_.from||process.cwd();return oe(loadPrefixes(_))},options:X,postcssPlugin:"autoprefixer",prepare(_){let ee=loadPrefixes({env:X.env,from:_.opts.from});return{OnceExit(te){timeCapsule(_,ee);if(X.remove!==false){ee.processor.remove(te,_)}if(X.add!==false){ee.processor.add(te,_)}}}}}}plugin.postcss=true;plugin.data=le;plugin.defaults=te.defaults;plugin.info=()=>plugin().info()},465:_=>{function last(_){return _[_.length-1]}let X={parse(_){let X=[""];let ee=[X];for(let te of _){if(te==="("){X=[""];last(ee).push(X);ee.push(X);continue}if(te===")"){ee.pop();X=last(ee);X.push("");continue}X[X.length-1]+=te}return ee[0]},stringify(_){let ee="";for(let te of _){if(typeof te==="object"){ee+=`(${X.stringify(te)})`;continue}ee+=te}return ee}};_.exports=X},5957:(_,X,ee)=>{let te=ee(4907);let{agents:re}=ee(3768);let se=ee(3640);class Browsers{constructor(_,X,ee,te){this.data=_;this.options=ee||{};this.browserslistOpts=te||{};this.selected=this.parse(X)}static prefixes(){if(this.prefixesCache){return this.prefixesCache}this.prefixesCache=[];for(let _ in re){this.prefixesCache.push(`-${re[_].prefix}-`)}this.prefixesCache=se.uniq(this.prefixesCache).sort(((_,X)=>X.length-_.length));return this.prefixesCache}static withPrefix(_){if(!this.prefixesRegexp){this.prefixesRegexp=new RegExp(this.prefixes().join("|"))}return this.prefixesRegexp.test(_)}isSelected(_){return this.selected.includes(_)}parse(_){let X={};for(let _ in this.browserslistOpts){X[_]=this.browserslistOpts[_]}X.path=this.options.from;return te(_,X)}prefix(_){let[X,ee]=_.split(" ");let te=this.data[X];let re=te.prefix_exceptions&&te.prefix_exceptions[ee];if(!re){re=te.prefix}return`-${re}-`}}_.exports=Browsers},4173:(_,X,ee)=>{let te=ee(5957);let re=ee(1683);let se=ee(3640);class Declaration extends re{add(_,X,ee,te){let re=this.prefixed(_.prop,X);if(this.isAlready(_,re)||this.otherPrefixes(_.value,X)){return undefined}return this.insert(_,X,ee,te)}calcBefore(_,X,ee=""){let te=this.maxPrefixed(_,X);let re=te-se.removeNote(ee).length;let ne=X.raw("before");if(re>0){ne+=Array(re).fill(" ").join("")}return ne}check(){return true}insert(_,X,ee){let te=this.set(this.clone(_),X);if(!te)return undefined;let re=_.parent.some((_=>_.prop===te.prop&&_.value===te.value));if(re){return undefined}if(this.needCascade(_)){te.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,te)}isAlready(_,X){let ee=this.all.group(_).up((_=>_.prop===X));if(!ee){ee=this.all.group(_).down((_=>_.prop===X))}return ee}maxPrefixed(_,X){if(X._autoprefixerMax){return X._autoprefixerMax}let ee=0;for(let X of _){X=se.removeNote(X);if(X.length>ee){ee=X.length}}X._autoprefixerMax=ee;return X._autoprefixerMax}needCascade(_){if(!_._autoprefixerCascade){_._autoprefixerCascade=this.all.options.cascade!==false&&_.raw("before").includes("\n")}return _._autoprefixerCascade}normalize(_){return _}old(_,X){return[this.prefixed(_,X)]}otherPrefixes(_,X){for(let ee of te.prefixes()){if(ee===X){continue}if(_.includes(ee)){return _.replace(/var\([^)]+\)/,"").includes(ee)}}return false}prefixed(_,X){return X+_}process(_,X){if(!this.needCascade(_)){super.process(_,X);return}let ee=super.process(_,X);if(!ee||!ee.length){return}this.restoreBefore(_);_.raws.before=this.calcBefore(ee,_)}restoreBefore(_){let X=_.raw("before").split("\n");let ee=X[X.length-1];this.all.group(_).up((_=>{let X=_.raw("before").split("\n");let te=X[X.length-1];if(te.length{let te=ee(4173);let re=ee(6977);class AlignContent extends te{normalize(){return"align-content"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2012){return X+"flex-line-pack"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2012){_.value=AlignContent.oldValues[_.value]||_.value;return super.set(_,X)}if(ee==="final"){return super.set(_,X)}return undefined}}AlignContent.names=["align-content","flex-line-pack"];AlignContent.oldValues={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"};_.exports=AlignContent},440:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class AlignItems extends te{normalize(){return"align-items"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2009){return X+"box-align"}if(ee===2012){return X+"flex-align"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2009||ee===2012){_.value=AlignItems.oldValues[_.value]||_.value}return super.set(_,X)}}AlignItems.names=["align-items","flex-align","box-align"];AlignItems.oldValues={"flex-end":"end","flex-start":"start"};_.exports=AlignItems},3872:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class AlignSelf extends te{check(_){return _.parent&&!_.parent.some((_=>_.prop&&_.prop.startsWith("grid-")))}normalize(){return"align-self"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2012){return X+"flex-item-align"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2012){_.value=AlignSelf.oldValues[_.value]||_.value;return super.set(_,X)}if(ee==="final"){return super.set(_,X)}return undefined}}AlignSelf.names=["align-self","flex-item-align"];AlignSelf.oldValues={"flex-end":"end","flex-start":"start"};_.exports=AlignSelf},7215:(_,X,ee)=>{let te=ee(4173);class Animation extends te{check(_){return!_.value.split(/\s+/).some((_=>{let X=_.toLowerCase();return X==="reverse"||X==="alternate-reverse"}))}}Animation.names=["animation","animation-direction"];_.exports=Animation},7926:(_,X,ee)=>{let te=ee(4173);let re=ee(3640);class Appearance extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((_=>{if(_==="-ms-"){return"-webkit-"}return _})))}}}Appearance.names=["appearance"];_.exports=Appearance},333:(_,X,ee)=>{let te=ee(9868);let re=ee(3640);class Autofill extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((()=>"-webkit-")))}}prefixed(_){if(_==="-webkit-"){return":-webkit-autofill"}return`:${_}autofill`}}Autofill.names=[":autofill"];_.exports=Autofill},7590:(_,X,ee)=>{let te=ee(4173);let re=ee(3640);class BackdropFilter extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((_=>_==="-ms-"?"-webkit-":_)))}}}BackdropFilter.names=["backdrop-filter"];_.exports=BackdropFilter},5300:(_,X,ee)=>{let te=ee(4173);let re=ee(3640);class BackgroundClip extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((_=>_==="-ms-"?"-webkit-":_)))}}check(_){return _.value.toLowerCase()==="text"}}BackgroundClip.names=["background-clip"];_.exports=BackgroundClip},3079:(_,X,ee)=>{let te=ee(4173);class BackgroundSize extends te{set(_,X){let ee=_.value.toLowerCase();if(X==="-webkit-"&&!ee.includes(" ")&&ee!=="contain"&&ee!=="cover"){_.value=_.value+" "+_.value}return super.set(_,X)}}BackgroundSize.names=["background-size"];_.exports=BackgroundSize},1450:(_,X,ee)=>{let te=ee(4173);class BlockLogical extends te{normalize(_){if(_.includes("-before")){return _.replace("-before","-block-start")}return _.replace("-after","-block-end")}prefixed(_,X){if(_.includes("-start")){return X+_.replace("-block-start","-before")}return X+_.replace("-block-end","-after")}}BlockLogical.names=["border-block-start","border-block-end","margin-block-start","margin-block-end","padding-block-start","padding-block-end","border-before","border-after","margin-before","margin-after","padding-before","padding-after"];_.exports=BlockLogical},3562:(_,X,ee)=>{let te=ee(4173);class BorderImage extends te{set(_,X){_.value=_.value.replace(/\s+fill(\s)/,"$1");return super.set(_,X)}}BorderImage.names=["border-image"];_.exports=BorderImage},2636:(_,X,ee)=>{let te=ee(4173);class BorderRadius extends te{normalize(_){return BorderRadius.toNormal[_]||_}prefixed(_,X){if(X==="-moz-"){return X+(BorderRadius.toMozilla[_]||_)}return super.prefixed(_,X)}}BorderRadius.names=["border-radius"];BorderRadius.toMozilla={};BorderRadius.toNormal={};for(let _ of["top","bottom"]){for(let X of["left","right"]){let ee=`border-${_}-${X}-radius`;let te=`border-radius-${_}${X}`;BorderRadius.names.push(ee);BorderRadius.names.push(te);BorderRadius.toMozilla[ee]=te;BorderRadius.toNormal[te]=ee}}_.exports=BorderRadius},2627:(_,X,ee)=>{let te=ee(4173);class BreakProps extends te{insert(_,X,ee){if(_.prop!=="break-inside"){return super.insert(_,X,ee)}if(/region/i.test(_.value)||/page/i.test(_.value)){return undefined}return super.insert(_,X,ee)}normalize(_){if(_.includes("inside")){return"break-inside"}if(_.includes("before")){return"break-before"}return"break-after"}prefixed(_,X){return`${X}column-${_}`}set(_,X){if(_.prop==="break-inside"&&_.value==="avoid-column"||_.value==="avoid-page"){_.value="avoid"}return super.set(_,X)}}BreakProps.names=["break-inside","page-break-inside","column-break-inside","break-before","page-break-before","column-break-before","break-after","page-break-after","column-break-after"];_.exports=BreakProps},8109:(_,X,ee)=>{let te=ee(977).list;let re=ee(2120);class CrossFade extends re{replace(_,X){return te.space(_).map((_=>{if(_.slice(0,+this.name.length+1)!==this.name+"("){return _}let ee=_.lastIndexOf(")");let te=_.slice(ee+1);let re=_.slice(this.name.length+1,ee);if(X==="-webkit-"){let _=re.match(/\d*.?\d+%?/);if(_){re=re.slice(_[0].length).trim();re+=`, ${_[0]}`}else{re+=", 0.5"}}return X+this.name+"("+re+")"+te})).join(" ")}}CrossFade.names=["cross-fade"];_.exports=CrossFade},1257:(_,X,ee)=>{let te=ee(2536);let re=ee(2120);let se=ee(6977);class DisplayFlex extends re{constructor(_,X){super(_,X);if(_==="display-flex"){this.name="flex"}}check(_){return _.prop==="display"&&_.value===this.name}old(_){let X=this.prefixed(_);if(!X)return undefined;return new te(this.name,X)}prefixed(_){let X,ee;[X,_]=se(_);if(X===2009){if(this.name==="flex"){ee="box"}else{ee="inline-box"}}else if(X===2012){if(this.name==="flex"){ee="flexbox"}else{ee="inline-flexbox"}}else if(X==="final"){ee=this.name}return _+ee}replace(_,X){return this.prefixed(X)}}DisplayFlex.names=["display-flex","inline-flex"];_.exports=DisplayFlex},6083:(_,X,ee)=>{let te=ee(2120);class DisplayGrid extends te{constructor(_,X){super(_,X);if(_==="display-grid"){this.name="grid"}}check(_){return _.prop==="display"&&_.value===this.name}}DisplayGrid.names=["display-grid","inline-grid"];_.exports=DisplayGrid},1254:(_,X,ee)=>{let te=ee(9868);let re=ee(3640);class FileSelectorButton extends te{constructor(_,X,ee){super(_,X,ee);if(this.prefixes){this.prefixes=re.uniq(this.prefixes.map((()=>"-webkit-")))}}prefixed(_){if(_==="-webkit-"){return"::-webkit-file-upload-button"}return`::${_}file-selector-button`}}FileSelectorButton.names=["::file-selector-button"];_.exports=FileSelectorButton},4041:(_,X,ee)=>{let te=ee(2120);class FilterValue extends te{constructor(_,X){super(_,X);if(_==="filter-function"){this.name="filter"}}}FilterValue.names=["filter","filter-function"];_.exports=FilterValue},6171:(_,X,ee)=>{let te=ee(4173);class Filter extends te{check(_){let X=_.value;return!X.toLowerCase().includes("alpha(")&&!X.includes("DXImageTransform.Microsoft")&&!X.includes("data:image/svg+xml")}}Filter.names=["filter"];_.exports=Filter},6901:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class FlexBasis extends te{normalize(){return"flex-basis"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2012){return X+"flex-preferred-size"}return super.prefixed(_,X)}set(_,X){let ee;[ee,X]=re(X);if(ee===2012||ee==="final"){return super.set(_,X)}return undefined}}FlexBasis.names=["flex-basis","flex-preferred-size"];_.exports=FlexBasis},7003:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class FlexDirection extends te{insert(_,X,ee){let te;[te,X]=re(X);if(te!==2009){return super.insert(_,X,ee)}let se=_.parent.some((_=>_.prop===X+"box-orient"||_.prop===X+"box-direction"));if(se){return undefined}let ne=_.value;let ie,oe;if(ne==="inherit"||ne==="initial"||ne==="unset"){oe=ne;ie=ne}else{oe=ne.includes("row")?"horizontal":"vertical";ie=ne.includes("reverse")?"reverse":"normal"}let ae=this.clone(_);ae.prop=X+"box-orient";ae.value=oe;if(this.needCascade(_)){ae.raws.before=this.calcBefore(ee,_,X)}_.parent.insertBefore(_,ae);ae=this.clone(_);ae.prop=X+"box-direction";ae.value=ie;if(this.needCascade(_)){ae.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,ae)}normalize(){return"flex-direction"}old(_,X){let ee;[ee,X]=re(X);if(ee===2009){return[X+"box-orient",X+"box-direction"]}else{return super.old(_,X)}}}FlexDirection.names=["flex-direction","box-direction","box-orient"];_.exports=FlexDirection},1196:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class FlexFlow extends te{insert(_,X,ee){let te;[te,X]=re(X);if(te!==2009){return super.insert(_,X,ee)}let se=_.value.split(/\s+/).filter((_=>_!=="wrap"&&_!=="nowrap"&&"wrap-reverse"));if(se.length===0){return undefined}let ne=_.parent.some((_=>_.prop===X+"box-orient"||_.prop===X+"box-direction"));if(ne){return undefined}let ie=se[0];let oe=ie.includes("row")?"horizontal":"vertical";let ae=ie.includes("reverse")?"reverse":"normal";let le=this.clone(_);le.prop=X+"box-orient";le.value=oe;if(this.needCascade(_)){le.raws.before=this.calcBefore(ee,_,X)}_.parent.insertBefore(_,le);le=this.clone(_);le.prop=X+"box-direction";le.value=ae;if(this.needCascade(_)){le.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,le)}}FlexFlow.names=["flex-flow","box-direction","box-orient"];_.exports=FlexFlow},3666:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class Flex extends te{normalize(){return"flex"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2009){return X+"box-flex"}if(ee===2012){return X+"flex-positive"}return super.prefixed(_,X)}}Flex.names=["flex-grow","flex-positive"];_.exports=Flex},1987:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class FlexShrink extends te{normalize(){return"flex-shrink"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2012){return X+"flex-negative"}return super.prefixed(_,X)}set(_,X){let ee;[ee,X]=re(X);if(ee===2012||ee==="final"){return super.set(_,X)}return undefined}}FlexShrink.names=["flex-shrink","flex-negative"];_.exports=FlexShrink},6977:_=>{_.exports=function(_){let X;if(_==="-webkit- 2009"||_==="-moz-"){X=2009}else if(_==="-ms-"){X=2012}else if(_==="-webkit-"){X="final"}if(_==="-webkit- 2009"){_="-webkit-"}return[X,_]}},4555:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class FlexWrap extends te{set(_,X){let ee=re(X)[0];if(ee!==2009){return super.set(_,X)}return undefined}}FlexWrap.names=["flex-wrap"];_.exports=FlexWrap},3036:(_,X,ee)=>{let te=ee(977).list;let re=ee(4173);let se=ee(6977);class Flex extends re{normalize(){return"flex"}prefixed(_,X){let ee;[ee,X]=se(X);if(ee===2009){return X+"box-flex"}return super.prefixed(_,X)}set(_,X){let ee=se(X)[0];if(ee===2009){_.value=te.space(_.value)[0];_.value=Flex.oldValues[_.value]||_.value;return super.set(_,X)}if(ee===2012){let X=te.space(_.value);if(X.length===3&&X[2]==="0"){_.value=X.slice(0,2).concat("0px").join(" ")}}return super.set(_,X)}}Flex.names=["flex","box-flex"];Flex.oldValues={auto:"1",none:"0"};_.exports=Flex},7148:(_,X,ee)=>{let te=ee(9868);class Fullscreen extends te{prefixed(_){if(_==="-webkit-"){return":-webkit-full-screen"}if(_==="-moz-"){return":-moz-full-screen"}return`:${_}fullscreen`}}Fullscreen.names=[":fullscreen"];_.exports=Fullscreen},6288:(_,X,ee)=>{let te=ee(2443);let re=ee(2045);let se=ee(2536);let ne=ee(3640);let ie=ee(2120);let oe=/top|left|right|bottom/gi;class Gradient extends ie{add(_,X){let ee=_.prop;if(ee.includes("mask")){if(X==="-webkit-"||X==="-webkit- old"){return super.add(_,X)}}else if(ee==="list-style"||ee==="list-style-image"||ee==="content"){if(X==="-webkit-"||X==="-webkit- old"){return super.add(_,X)}}else{return super.add(_,X)}return undefined}cloneDiv(_){for(let X of _){if(X.type==="div"&&X.value===","){return X}}return{after:" ",type:"div",value:","}}colorStops(_){let X=[];for(let ee=0;ee<_.length;ee++){let te;let se=_[ee];let ne;if(ee===0){continue}let ie=re.stringify(se[0]);if(se[1]&&se[1].type==="word"){te=se[1].value}else if(se[2]&&se[2].type==="word"){te=se[2].value}let oe;if(ee===1&&(!te||te==="0%")){oe=`from(${ie})`}else if(ee===_.length-1&&(!te||te==="100%")){oe=`to(${ie})`}else if(te){oe=`color-stop(${te}, ${ie})`}else{oe=`color-stop(${ie})`}let ae=se[se.length-1];_[ee]=[{type:"word",value:oe}];if(ae.type==="div"&&ae.value===","){ne=_[ee].push(ae)}X.push(ne)}return X}convertDirection(_){if(_.length>0){if(_[0].value==="to"){this.fixDirection(_)}else if(_[0].value.includes("deg")){this.fixAngle(_)}else if(this.isRadial(_)){this.fixRadial(_)}}return _}fixAngle(_){let X=_[0].value;X=parseFloat(X);X=Math.abs(450-X)%360;X=this.roundFloat(X,3);_[0].value=`${X}deg`}fixDirection(_){_.splice(0,2);for(let X of _){if(X.type==="div"){break}if(X.type==="word"){X.value=this.revertDirection(X.value)}}}fixRadial(_){let X=[];let ee=[];let te,re,se,ne,ie;for(ne=0;ne<_.length-2;ne++){te=_[ne];re=_[ne+1];se=_[ne+2];if(te.type==="space"&&re.value==="at"&&se.type==="space"){ie=ne+3;break}else{X.push(te)}}let oe;for(ne=ie;ne<_.length;ne++){if(_[ne].type==="div"){oe=_[ne];break}else{ee.push(_[ne])}}_.splice(0,ne,...ee,oe,...X)}isRadial(_){let X="before";for(let ee of _){if(X==="before"&&ee.type==="space"){X="at"}else if(X==="at"&&ee.value==="at"){X="after"}else if(X==="after"&&ee.type==="space"){return true}else if(ee.type==="div"){break}else{X="before"}}return false}newDirection(_){if(_[0].value==="to"){return _}oe.lastIndex=0;if(!oe.test(_[0].value)){return _}_.unshift({type:"word",value:"to"},{type:"space",value:" "});for(let X=2;X<_.length;X++){if(_[X].type==="div"){break}if(_[X].type==="word"){_[X].value=this.revertDirection(_[X].value)}}return _}normalize(_,X){if(!_[0])return _;if(/-?\d+(.\d+)?grad/.test(_[0].value)){_[0].value=this.normalizeUnit(_[0].value,400)}else if(/-?\d+(.\d+)?rad/.test(_[0].value)){_[0].value=this.normalizeUnit(_[0].value,2*Math.PI)}else if(/-?\d+(.\d+)?turn/.test(_[0].value)){_[0].value=this.normalizeUnit(_[0].value,1)}else if(_[0].value.includes("deg")){let X=parseFloat(_[0].value);X=te.wrap(0,360,X);_[0].value=`${X}deg`}if(X==="linear-gradient"||X==="repeating-linear-gradient"){let X=_[0].value;if(X==="0deg"||X==="0"){_=this.replaceFirst(_,"to"," ","top")}else if(X==="90deg"){_=this.replaceFirst(_,"to"," ","right")}else if(X==="180deg"){_=this.replaceFirst(_,"to"," ","bottom")}else if(X==="270deg"){_=this.replaceFirst(_,"to"," ","left")}}return _}normalizeUnit(_,X){let ee=parseFloat(_);let te=ee/X*360;return`${te}deg`}old(_){if(_==="-webkit-"){let X;if(this.name==="linear-gradient"){X="linear"}else if(this.name==="repeating-linear-gradient"){X="repeating-linear"}else if(this.name==="repeating-radial-gradient"){X="repeating-radial"}else{X="radial"}let ee="-gradient";let te=ne.regexp(`-webkit-(${X}-gradient|gradient\\(\\s*${X})`,false);return new se(this.name,_+this.name,ee,te)}else{return super.old(_)}}oldDirection(_){let X=this.cloneDiv(_[0]);if(_[0][0].value!=="to"){return _.unshift([{type:"word",value:Gradient.oldDirections.bottom},X])}else{let ee=[];for(let X of _[0].slice(2)){if(X.type==="word"){ee.push(X.value.toLowerCase())}}ee=ee.join(" ");let te=Gradient.oldDirections[ee]||ee;_[0]=[{type:"word",value:te},X];return _[0]}}oldWebkit(_){let{nodes:X}=_;let ee=re.stringify(_.nodes);if(this.name!=="linear-gradient"){return false}if(X[0]&&X[0].value.includes("deg")){return false}if(ee.includes("px")||ee.includes("-corner")||ee.includes("-side")){return false}let te=[[]];for(let _ of X){te[te.length-1].push(_);if(_.type==="div"&&_.value===","){te.push([])}}this.oldDirection(te);this.colorStops(te);_.nodes=[];for(let X of te){_.nodes=_.nodes.concat(X)}_.nodes.unshift({type:"word",value:"linear"},this.cloneDiv(_.nodes));_.value="-webkit-gradient";return true}replace(_,X){let ee=re(_);for(let _ of ee.nodes){let ee=this.name;if(_.type==="function"&&_.value===ee){_.nodes=this.newDirection(_.nodes);_.nodes=this.normalize(_.nodes,ee);if(X==="-webkit- old"){let X=this.oldWebkit(_);if(!X){return false}}else{_.nodes=this.convertDirection(_.nodes);_.value=X+_.value}}}return ee.toString()}replaceFirst(_,...X){let ee=X.map((_=>{if(_===" "){return{type:"space",value:_}}return{type:"word",value:_}}));return ee.concat(_.slice(1))}revertDirection(_){return Gradient.directions[_.toLowerCase()]||_}roundFloat(_,X){return parseFloat(_.toFixed(X))}}Gradient.names=["linear-gradient","repeating-linear-gradient","radial-gradient","repeating-radial-gradient"];Gradient.directions={bottom:"top",left:"right",right:"left",top:"bottom"};Gradient.oldDirections={bottom:"left top, left bottom","bottom left":"right top, left bottom","bottom right":"left top, right bottom",left:"right top, left top","left bottom":"right top, left bottom","left top":"right bottom, left top",right:"left top, right top","right bottom":"left top, right bottom","right top":"left bottom, right top",top:"left bottom, left top","top left":"right bottom, left top","top right":"left bottom, right top"};_.exports=Gradient},3865:(_,X,ee)=>{let te=ee(4173);let re=ee(2110);class GridArea extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);let se=re.parse(_);let[ne,ie]=re.translate(se,0,2);let[oe,ae]=re.translate(se,1,3);[["grid-row",ne],["grid-row-span",ie],["grid-column",oe],["grid-column-span",ae]].forEach((([X,ee])=>{re.insertDecl(_,X,ee)}));re.warnTemplateSelectorNotFound(_,te);re.warnIfGridRowColumnExists(_,te);return undefined}}GridArea.names=["grid-area"];_.exports=GridArea},3078:(_,X,ee)=>{let te=ee(4173);class GridColumnAlign extends te{check(_){return!_.value.includes("flex-")&&_.value!=="baseline"}normalize(){return"justify-self"}prefixed(_,X){return X+"grid-column-align"}}GridColumnAlign.names=["grid-column-align"];_.exports=GridColumnAlign},4833:(_,X,ee)=>{let te=ee(4173);let{isPureNumber:re}=ee(3640);class GridEnd extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);let se=this.clone(_);let ne=_.prop.replace(/end$/,"start");let ie=X+_.prop.replace(/end$/,"span");if(_.parent.some((_=>_.prop===ie))){return undefined}se.prop=ie;if(_.value.includes("span")){se.value=_.value.replace(/span\s/i,"")}else{let X;_.parent.walkDecls(ne,(_=>{X=_}));if(X){if(re(X.value)){let ee=Number(_.value)-Number(X.value)+"";se.value=ee}else{return undefined}}else{_.warn(te,`Can not prefix ${_.prop} (${ne} is not found)`)}}_.cloneBefore(se);return undefined}}GridEnd.names=["grid-row-end","grid-column-end"];_.exports=GridEnd},9955:(_,X,ee)=>{let te=ee(4173);class GridRowAlign extends te{check(_){return!_.value.includes("flex-")&&_.value!=="baseline"}normalize(){return"align-self"}prefixed(_,X){return X+"grid-row-align"}}GridRowAlign.names=["grid-row-align"];_.exports=GridRowAlign},8878:(_,X,ee)=>{let te=ee(4173);let re=ee(2110);class GridRowColumn extends te{insert(_,X,ee){if(X!=="-ms-")return super.insert(_,X,ee);let te=re.parse(_);let[se,ne]=re.translate(te,0,1);let ie=te[0]&&te[0].includes("span");if(ie){ne=te[0].join("").replace(/\D/g,"")}[[_.prop,se],[`${_.prop}-span`,ne]].forEach((([X,ee])=>{re.insertDecl(_,X,ee)}));return undefined}}GridRowColumn.names=["grid-row","grid-column"];_.exports=GridRowColumn},7669:(_,X,ee)=>{let te=ee(4173);let re=ee(4553);let{autoplaceGridItems:se,getGridGap:ne,inheritGridGap:ie,prefixTrackProp:oe,prefixTrackValue:ae}=ee(2110);class GridRowsColumns extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);let{parent:le,prop:ue,value:ce}=_;let pe=ue.includes("rows");let fe=ue.includes("columns");let de=le.some((_=>_.prop==="grid-template"||_.prop==="grid-template-areas"));if(de&&pe){return false}let he=new re({options:{}});let me=he.gridStatus(le,te);let ge=ne(_);ge=ie(_,ge)||ge;let be=pe?ge.row:ge.column;if((me==="no-autoplace"||me===true)&&!de){be=null}let ve=ae({gap:be,value:ce});_.cloneBefore({prop:oe({prefix:X,prop:ue}),value:ve});let ye=le.nodes.find((_=>_.prop==="grid-auto-flow"));let we="row";if(ye&&!he.disabled(ye,te)){we=ye.value.trim()}if(me==="autoplace"){let X=le.nodes.find((_=>_.prop==="grid-template-rows"));if(!X&&de){return undefined}else if(!X&&!de){_.warn(te,"Autoplacement does not work without grid-template-rows property");return undefined}let ee=le.nodes.find((_=>_.prop==="grid-template-columns"));if(!ee&&!de){_.warn(te,"Autoplacement does not work without grid-template-columns property")}if(fe&&!de){se(_,te,ge,we)}}return undefined}normalize(_){return _.replace(/^grid-(rows|columns)/,"grid-template-$1")}prefixed(_,X){if(X==="-ms-"){return oe({prefix:X,prop:_})}return super.prefixed(_,X)}}GridRowsColumns.names=["grid-template-rows","grid-template-columns","grid-rows","grid-columns"];_.exports=GridRowsColumns},5936:(_,X,ee)=>{let te=ee(4173);class GridStart extends te{check(_){let X=_.value;return!X.includes("/")&&!X.includes("span")}normalize(_){return _.replace("-start","")}prefixed(_,X){let ee=super.prefixed(_,X);if(X==="-ms-"){ee=ee.replace("-start","")}return ee}}GridStart.names=["grid-row-start","grid-column-start"];_.exports=GridStart},2731:(_,X,ee)=>{let te=ee(4173);let{getGridGap:re,inheritGridGap:se,parseGridAreas:ne,prefixTrackProp:ie,prefixTrackValue:oe,warnGridGap:ae,warnMissedAreas:le}=ee(2110);function getGridRows(_){return _.trim().slice(1,-1).split(/["']\s*["']?/g)}class GridTemplateAreas extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);let ue=false;let ce=false;let pe=_.parent;let fe=re(_);fe=se(_,fe)||fe;pe.walkDecls(/-ms-grid-rows/,(_=>_.remove()));pe.walkDecls(/grid-template-(rows|columns)/,(_=>{if(_.prop==="grid-template-rows"){ce=true;let{prop:ee,value:te}=_;_.cloneBefore({prop:ie({prefix:X,prop:ee}),value:oe({gap:fe.row,value:te})})}else{ue=true}}));let de=getGridRows(_.value);if(ue&&!ce&&fe.row&&de.length>1){_.cloneBefore({prop:"-ms-grid-rows",raws:{},value:oe({gap:fe.row,value:`repeat(${de.length}, auto)`})})}ae({decl:_,gap:fe,hasColumns:ue,result:te});let he=ne({gap:fe,rows:de});le(he,_,te);return _}}GridTemplateAreas.names=["grid-template-areas"];_.exports=GridTemplateAreas},8060:(_,X,ee)=>{let te=ee(4173);let{getGridGap:re,inheritGridGap:se,parseTemplate:ne,warnGridGap:ie,warnMissedAreas:oe}=ee(2110);class GridTemplate extends te{insert(_,X,ee,te){if(X!=="-ms-")return super.insert(_,X,ee);if(_.parent.some((_=>_.prop==="-ms-grid-rows"))){return undefined}let ae=re(_);let le=se(_,ae);let{areas:ue,columns:ce,rows:pe}=ne({decl:_,gap:le||ae});let fe=Object.keys(ue).length>0;let de=Boolean(pe);let he=Boolean(ce);ie({decl:_,gap:ae,hasColumns:he,result:te});oe(ue,_,te);if(de&&he||fe){_.cloneBefore({prop:"-ms-grid-rows",raws:{},value:pe})}if(he){_.cloneBefore({prop:"-ms-grid-columns",raws:{},value:ce})}return _}}GridTemplate.names=["grid-template"];_.exports=GridTemplate},2110:(_,X,ee)=>{let te=ee(2045);let re=ee(977).list;let se=ee(3640).uniq;let ne=ee(3640).escapeRegexp;let ie=ee(3640).splitSelector;function convert(_){if(_&&_.length===2&&_[0]==="span"&&parseInt(_[1],10)>0){return[false,parseInt(_[1],10)]}if(_&&_.length===1&&parseInt(_[0],10)>0){return[parseInt(_[0],10),false]}return[false,false]}X.translate=translate;function translate(_,X,ee){let te=_[X];let re=_[ee];if(!te){return[false,false]}let[se,ne]=convert(te);let[ie,oe]=convert(re);if(se&&!re){return[se,false]}if(ne&&ie){return[ie-ne,ne]}if(se&&oe){return[se,oe]}if(se&&ie){return[se,ie-se]}return[false,false]}X.parse=parse;function parse(_){let X=te(_.value);let ee=[];let re=0;ee[re]=[];for(let _ of X.nodes){if(_.type==="div"){re+=1;ee[re]=[]}else if(_.type==="word"){ee[re].push(_.value)}}return ee}X.insertDecl=insertDecl;function insertDecl(_,X,ee){if(ee&&!_.parent.some((_=>_.prop===`-ms-${X}`))){_.cloneBefore({prop:`-ms-${X}`,value:ee.toString()})}}X.prefixTrackProp=prefixTrackProp;function prefixTrackProp({prefix:_,prop:X}){return _+X.replace("template-","")}function transformRepeat({nodes:_},{gap:X}){let{count:ee,size:re}=_.reduce(((_,X)=>{if(X.type==="div"&&X.value===","){_.key="size"}else{_[_.key].push(te.stringify(X))}return _}),{count:[],key:"count",size:[]});if(X){re=re.filter((_=>_.trim()));let _=[];for(let te=1;te<=ee;te++){re.forEach(((ee,re)=>{if(re>0||te>1){_.push(X)}_.push(ee)}))}return _.join(" ")}return`(${re.join("")})[${ee.join("")}]`}X.prefixTrackValue=prefixTrackValue;function prefixTrackValue({gap:_,value:X}){let ee=te(X).nodes.reduce(((X,ee)=>{if(ee.type==="function"&&ee.value==="repeat"){return X.concat({type:"word",value:transformRepeat(ee,{gap:_})})}if(_&&ee.type==="space"){return X.concat({type:"space",value:" "},{type:"word",value:_},ee)}return X.concat(ee)}),[]);return te.stringify(ee)}let oe=/^\.+$/;function track(_,X){return{end:X,span:X-_,start:_}}function getColumns(_){return _.trim().split(/\s+/g)}X.parseGridAreas=parseGridAreas;function parseGridAreas({gap:_,rows:X}){return X.reduce(((X,ee,te)=>{if(_.row)te*=2;if(ee.trim()==="")return X;getColumns(ee).forEach(((ee,re)=>{if(oe.test(ee))return;if(_.column)re*=2;if(typeof X[ee]==="undefined"){X[ee]={column:track(re+1,re+2),row:track(te+1,te+2)}}else{let{column:_,row:se}=X[ee];_.start=Math.min(_.start,re+1);_.end=Math.max(_.end,re+2);_.span=_.end-_.start;se.start=Math.min(se.start,te+1);se.end=Math.max(se.end,te+2);se.span=se.end-se.start}}));return X}),{})}function testTrack(_){return _.type==="word"&&/^\[.+]$/.test(_.value)}function verifyRowSize(_){if(_.areas.length>_.rows.length){_.rows.push("auto")}return _}X.parseTemplate=parseTemplate;function parseTemplate({decl:_,gap:X}){let ee=te(_.value).nodes.reduce(((_,X)=>{let{type:ee,value:re}=X;if(testTrack(X)||ee==="space")return _;if(ee==="string"){_=verifyRowSize(_);_.areas.push(re)}if(ee==="word"||ee==="function"){_[_.key].push(te.stringify(X))}if(ee==="div"&&re==="/"){_.key="columns";_=verifyRowSize(_)}return _}),{areas:[],columns:[],key:"rows",rows:[]});return{areas:parseGridAreas({gap:X,rows:ee.areas}),columns:prefixTrackValue({gap:X.column,value:ee.columns.join(" ")}),rows:prefixTrackValue({gap:X.row,value:ee.rows.join(" ")})}}function getMSDecls(_,X=false,ee=false){let te=[{prop:"-ms-grid-row",value:String(_.row.start)}];if(_.row.span>1||X){te.push({prop:"-ms-grid-row-span",value:String(_.row.span)})}te.push({prop:"-ms-grid-column",value:String(_.column.start)});if(_.column.span>1||ee){te.push({prop:"-ms-grid-column-span",value:String(_.column.span)})}return te}function getParentMedia(_){if(_.type==="atrule"&&_.name==="media"){return _}if(!_.parent){return false}return getParentMedia(_.parent)}function changeDuplicateAreaSelectors(_,X){_=_.map((_=>{let X=re.space(_);let ee=re.comma(_);if(X.length>ee.length){_=X.slice(-1).join("")}return _}));return _.map((_=>{let ee=X.map(((X,ee)=>{let te=ee===0?"":" ";return`${te}${X} > ${_}`}));return ee}))}function selectorsEqual(_,X){return _.selectors.some((_=>X.selectors.includes(_)))}function parseGridTemplatesData(_){let X=[];_.walkDecls(/grid-template(-areas)?$/,(_=>{let ee=_.parent;let te=getParentMedia(ee);let re=getGridGap(_);let ne=inheritGridGap(_,re);let{areas:ie}=parseTemplate({decl:_,gap:ne||re});let oe=Object.keys(ie);if(oe.length===0){return true}let ae=X.reduce(((_,{allAreas:X},ee)=>{let te=X&&oe.some((_=>X.includes(_)));return te?ee:_}),null);if(ae!==null){let{allAreas:_,rules:re}=X[ae];let ne=re.some((_=>_.hasDuplicates===false&&selectorsEqual(_,ee)));let le=false;let ue=re.reduce(((_,X)=>{if(!X.params&&selectorsEqual(X,ee)){le=true;return X.duplicateAreaNames}if(!le){oe.forEach((ee=>{if(X.areas[ee]){_.push(ee)}}))}return se(_)}),[]);re.forEach((_=>{oe.forEach((X=>{let ee=_.areas[X];if(ee&&ee.row.span!==ie[X].row.span){ie[X].row.updateSpan=true}if(ee&&ee.column.span!==ie[X].column.span){ie[X].column.updateSpan=true}}))}));X[ae].allAreas=se([..._,...oe]);X[ae].rules.push({areas:ie,duplicateAreaNames:ue,hasDuplicates:!ne,node:ee,params:te.params,selectors:ee.selectors})}else{X.push({allAreas:oe,areasCount:0,rules:[{areas:ie,duplicateAreaNames:[],duplicateRules:[],hasDuplicates:false,node:ee,params:te.params,selectors:ee.selectors}]})}return undefined}));return X}X.insertAreas=insertAreas;function insertAreas(_,X){let ee=parseGridTemplatesData(_);if(ee.length===0){return undefined}let te={};_.walkDecls("grid-area",(se=>{let ne=se.parent;let ie=ne.first.prop==="-ms-grid-row";let oe=getParentMedia(ne);if(X(se)){return undefined}let ae=_.index(oe||ne);let le=se.value;let ue=ee.filter((_=>_.allAreas.includes(le)))[0];if(!ue){return true}let ce=ue.allAreas[ue.allAreas.length-1];let pe=re.space(ne.selector);let fe=re.comma(ne.selector);let de=pe.length>1&&pe.length>fe.length;if(ie){return false}if(!te[ce]){te[ce]={}}let he=false;for(let X of ue.rules){let ee=X.areas[le];let re=X.duplicateAreaNames.includes(le);if(!ee){let X=te[ce].lastRule;let ee;if(X){ee=_.index(X)}else{ee=-1}if(ae>ee){te[ce].lastRule=oe||ne}continue}if(X.params&&!te[ce][X.params]){te[ce][X.params]=[]}if((!X.hasDuplicates||!re)&&!X.params){getMSDecls(ee,false,false).reverse().forEach((_=>ne.prepend(Object.assign(_,{raws:{between:se.raws.between}}))));te[ce].lastRule=ne;he=true}else if(X.hasDuplicates&&!X.params&&!de){let _=ne.clone();_.removeAll();getMSDecls(ee,ee.row.updateSpan,ee.column.updateSpan).reverse().forEach((X=>_.prepend(Object.assign(X,{raws:{between:se.raws.between}}))));_.selectors=changeDuplicateAreaSelectors(_.selectors,X.selectors);if(te[ce].lastRule){te[ce].lastRule.after(_)}te[ce].lastRule=_;he=true}else if(X.hasDuplicates&&!X.params&&de&&ne.selector.includes(X.selectors[0])){ne.walkDecls(/-ms-grid-(row|column)/,(_=>_.remove()));getMSDecls(ee,ee.row.updateSpan,ee.column.updateSpan).reverse().forEach((_=>ne.prepend(Object.assign(_,{raws:{between:se.raws.between}}))))}else if(X.params){let ie=ne.clone();ie.removeAll();getMSDecls(ee,ee.row.updateSpan,ee.column.updateSpan).reverse().forEach((_=>ie.prepend(Object.assign(_,{raws:{between:se.raws.between}}))));if(X.hasDuplicates&&re){ie.selectors=changeDuplicateAreaSelectors(ie.selectors,X.selectors)}ie.raws=X.node.raws;if(_.index(X.node.parent)>ae){X.node.parent.append(ie)}else{te[ce][X.params].push(ie)}if(!he){te[ce].lastRule=oe||ne}}}return undefined}));Object.keys(te).forEach((_=>{let X=te[_];let ee=X.lastRule;Object.keys(X).reverse().filter((_=>_!=="lastRule")).forEach((_=>{if(X[_].length>0&&ee){ee.after({name:"media",params:_});ee.next().append(X[_])}}))}));return undefined}X.warnMissedAreas=warnMissedAreas;function warnMissedAreas(_,X,ee){let te=Object.keys(_);X.root().walkDecls("grid-area",(_=>{te=te.filter((X=>X!==_.value))}));if(te.length>0){X.warn(ee,"Can not find grid areas: "+te.join(", "))}return undefined}X.warnTemplateSelectorNotFound=warnTemplateSelectorNotFound;function warnTemplateSelectorNotFound(_,X){let ee=_.parent;let te=_.root();let se=false;let ne=re.space(ee.selector).filter((_=>_!==">")).slice(0,-1);if(ne.length>0){let ee=false;let ie=null;te.walkDecls(/grid-template(-areas)?$/,(X=>{let te=X.parent;let oe=te.selectors;let{areas:ae}=parseTemplate({decl:X,gap:getGridGap(X)});let le=ae[_.value];for(let _ of oe){if(ee){break}let X=re.space(_).filter((_=>_!==">"));ee=X.every(((_,X)=>_===ne[X]))}if(ee||!le){return true}if(!ie){ie=te.selector}if(ie&&ie!==te.selector){se=true}return undefined}));if(!ee&&se){_.warn(X,"Autoprefixer cannot find a grid-template "+`containing the duplicate grid-area "${_.value}" `+`with full selector matching: ${ne.join(" ")}`)}}}X.warnIfGridRowColumnExists=warnIfGridRowColumnExists;function warnIfGridRowColumnExists(_,X){let ee=_.parent;let te=[];ee.walkDecls(/^grid-(row|column)/,(_=>{if(!_.prop.endsWith("-end")&&!_.value.startsWith("span")&&!_.prop.endsWith("-gap")){te.push(_)}}));if(te.length>0){te.forEach((_=>{_.warn(X,"You already have a grid-area declaration present in the rule. "+`You should use either grid-area or ${_.prop}, not both`)}))}return undefined}X.getGridGap=getGridGap;function getGridGap(_){let X={};let ee=/^(grid-)?((row|column)-)?gap$/;_.parent.walkDecls(ee,(({prop:_,value:ee})=>{if(/^(grid-)?gap$/.test(_)){let[_,,re]=te(ee).nodes;X.row=_&&te.stringify(_);X.column=re?te.stringify(re):X.row}if(/^(grid-)?row-gap$/.test(_))X.row=ee;if(/^(grid-)?column-gap$/.test(_))X.column=ee}));return X}function parseMediaParams(_){if(!_){return[]}let X=te(_);let ee;let re;X.walk((_=>{if(_.type==="word"&&/min|max/g.test(_.value)){ee=_.value}else if(_.value.includes("px")){re=parseInt(_.value.replace(/\D/g,""))}}));return[ee,re]}function shouldInheritGap(_,X){let ee;let te=ie(_);let re=ie(X);if(te[0].lengthre[0].length){let _=te[0].reduce(((_,[X],ee)=>{let te=re[0][0][0];if(X===te){return ee}return false}),false);if(_){ee=re[0].every(((X,ee)=>X.every(((X,re)=>te[0].slice(_)[ee][re]===X))))}}else{ee=re.some((_=>_.every(((_,X)=>_.every(((_,ee)=>te[0][X][ee]===_))))))}return ee}X.inheritGridGap=inheritGridGap;function inheritGridGap(_,X){let ee=_.parent;let te=getParentMedia(ee);let re=ee.root();let se=ie(ee.selector);if(Object.keys(X).length>0){return false}let[oe]=parseMediaParams(te.params);let ae=se[0];let le=ne(ae[ae.length-1][0]);let ue=new RegExp(`(${le}$)|(${le}[,.])`);let ce;re.walkRules(ue,(_=>{let X;if(ee.toString()===_.toString()){return false}_.walkDecls("grid-gap",(_=>X=getGridGap(_)));if(!X||Object.keys(X).length===0){return true}if(!shouldInheritGap(ee.selector,_.selector)){return true}let te=getParentMedia(_);if(te){let _=parseMediaParams(te.params)[0];if(_===oe){ce=X;return true}}else{ce=X;return true}return undefined}));if(ce&&Object.keys(ce).length>0){return ce}return false}X.warnGridGap=warnGridGap;function warnGridGap({decl:_,gap:X,hasColumns:ee,result:te}){let re=X.row&&X.column;if(!ee&&(re||X.column&&!X.row)){delete X.column;_.warn(te,"Can not implement grid-gap without grid-template-columns")}}function normalizeRowColumn(_){let X=te(_).nodes.reduce(((_,X)=>{if(X.type==="function"&&X.value==="repeat"){let ee="count";let[re,se]=X.nodes.reduce(((_,X)=>{if(X.type==="word"&&ee==="count"){_[0]=Math.abs(parseInt(X.value));return _}if(X.type==="div"&&X.value===","){ee="value";return _}if(ee==="value"){_[1]+=te.stringify(X)}return _}),[0,""]);if(re){for(let X=0;X_.prop==="grid-template-rows"));let ne=normalizeRowColumn(se.value);let ie=normalizeRowColumn(_.value);let oe=ne.map(((_,X)=>Array.from({length:ie.length},((_,ee)=>ee+X*ie.length+1)).join(" ")));let ae=parseGridAreas({gap:ee,rows:oe});let le=Object.keys(ae);let ue=le.map((_=>ae[_]));if(te.includes("column")){ue=ue.sort(((_,X)=>_.column.start-X.column.start))}ue.reverse().forEach(((_,X)=>{let{column:ee,row:te}=_;let se=re.selectors.map((_=>_+` > *:nth-child(${le.length-X})`)).join(", ");let ne=re.clone().removeAll();ne.selector=se;ne.append({prop:"-ms-grid-row",value:te.start});ne.append({prop:"-ms-grid-column",value:ee.start});re.after(ne)}));return undefined}},9581:(_,X,ee)=>{let te=ee(4173);class ImageRendering extends te{check(_){return _.value==="pixelated"}normalize(){return"image-rendering"}prefixed(_,X){if(X==="-ms-"){return"-ms-interpolation-mode"}return super.prefixed(_,X)}process(_,X){return super.process(_,X)}set(_,X){if(X!=="-ms-")return super.set(_,X);_.prop="-ms-interpolation-mode";_.value="nearest-neighbor";return _}}ImageRendering.names=["image-rendering","interpolation-mode"];_.exports=ImageRendering},9852:(_,X,ee)=>{let te=ee(2120);class ImageSet extends te{replace(_,X){let ee=super.replace(_,X);if(X==="-webkit-"){ee=ee.replace(/("[^"]+"|'[^']+')(\s+\d+\w)/gi,"url($1)$2")}return ee}}ImageSet.names=["image-set"];_.exports=ImageSet},8763:(_,X,ee)=>{let te=ee(4173);class InlineLogical extends te{normalize(_){return _.replace(/(margin|padding|border)-(start|end)/,"$1-inline-$2")}prefixed(_,X){return X+_.replace("-inline","")}}InlineLogical.names=["border-inline-start","border-inline-end","margin-inline-start","margin-inline-end","padding-inline-start","padding-inline-end","border-start","border-end","margin-start","margin-end","padding-start","padding-end"];_.exports=InlineLogical},6670:(_,X,ee)=>{let te=ee(2536);let re=ee(2120);function regexp(_){return new RegExp(`(^|[\\s,(])(${_}($|[\\s),]))`,"gi")}class Intrinsic extends re{add(_,X){if(_.prop.includes("grid")&&X!=="-webkit-"){return undefined}return super.add(_,X)}isStretch(){return this.name==="stretch"||this.name==="fill"||this.name==="fill-available"}old(_){let X=_+this.name;if(this.isStretch()){if(_==="-moz-"){X="-moz-available"}else if(_==="-webkit-"){X="-webkit-fill-available"}}return new te(this.name,X,X,regexp(X))}regexp(){if(!this.regexpCache)this.regexpCache=regexp(this.name);return this.regexpCache}replace(_,X){if(X==="-moz-"&&this.isStretch()){return _.replace(this.regexp(),"$1-moz-available$3")}if(X==="-webkit-"&&this.isStretch()){return _.replace(this.regexp(),"$1-webkit-fill-available$3")}return super.replace(_,X)}}Intrinsic.names=["max-content","min-content","fit-content","fill","fill-available","stretch"];_.exports=Intrinsic},6759:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class JustifyContent extends te{normalize(){return"justify-content"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2009){return X+"box-pack"}if(ee===2012){return X+"flex-pack"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2009||ee===2012){let te=JustifyContent.oldValues[_.value]||_.value;_.value=te;if(ee!==2009||te!=="distribute"){return super.set(_,X)}}else if(ee==="final"){return super.set(_,X)}return undefined}}JustifyContent.names=["justify-content","flex-pack","box-pack"];JustifyContent.oldValues={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"};_.exports=JustifyContent},3039:(_,X,ee)=>{let te=ee(4173);class MaskBorder extends te{normalize(){return this.name.replace("box-image","border")}prefixed(_,X){let ee=super.prefixed(_,X);if(X==="-webkit-"){ee=ee.replace("border","box-image")}return ee}}MaskBorder.names=["mask-border","mask-border-source","mask-border-slice","mask-border-width","mask-border-outset","mask-border-repeat","mask-box-image","mask-box-image-source","mask-box-image-slice","mask-box-image-width","mask-box-image-outset","mask-box-image-repeat"];_.exports=MaskBorder},3071:(_,X,ee)=>{let te=ee(4173);class MaskComposite extends te{insert(_,X,ee){let te=_.prop==="mask-composite";let re;if(te){re=_.value.split(",")}else{re=_.value.match(MaskComposite.regexp)||[]}re=re.map((_=>_.trim())).filter((_=>_));let se=re.length;let ne;if(se){ne=this.clone(_);ne.value=re.map((_=>MaskComposite.oldValues[_]||_)).join(", ");if(re.includes("intersect")){ne.value+=", xor"}ne.prop=X+"mask-composite"}if(te){if(!se){return undefined}if(this.needCascade(_)){ne.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,ne)}let ie=this.clone(_);ie.prop=X+ie.prop;if(se){ie.value=ie.value.replace(MaskComposite.regexp,"")}if(this.needCascade(_)){ie.raws.before=this.calcBefore(ee,_,X)}_.parent.insertBefore(_,ie);if(!se){return _}if(this.needCascade(_)){ne.raws.before=this.calcBefore(ee,_,X)}return _.parent.insertBefore(_,ne)}}MaskComposite.names=["mask","mask-composite"];MaskComposite.oldValues={add:"source-over",exclude:"xor",intersect:"source-in",subtract:"source-out"};MaskComposite.regexp=new RegExp(`\\s+(${Object.keys(MaskComposite.oldValues).join("|")})\\b(?!\\))\\s*(?=[,])`,"ig");_.exports=MaskComposite},5220:(_,X,ee)=>{let te=ee(4173);let re=ee(6977);class Order extends te{normalize(){return"order"}prefixed(_,X){let ee;[ee,X]=re(X);if(ee===2009){return X+"box-ordinal-group"}if(ee===2012){return X+"flex-order"}return super.prefixed(_,X)}set(_,X){let ee=re(X)[0];if(ee===2009&&/\d/.test(_.value)){_.value=(parseInt(_.value)+1).toString();return super.set(_,X)}return super.set(_,X)}}Order.names=["order","flex-order","box-ordinal-group"];_.exports=Order},1927:(_,X,ee)=>{let te=ee(4173);class OverscrollBehavior extends te{normalize(){return"overscroll-behavior"}prefixed(_,X){return X+"scroll-chaining"}set(_,X){if(_.value==="auto"){_.value="chained"}else if(_.value==="none"||_.value==="contain"){_.value="none"}return super.set(_,X)}}OverscrollBehavior.names=["overscroll-behavior","scroll-chaining"];_.exports=OverscrollBehavior},4881:(_,X,ee)=>{let te=ee(2536);let re=ee(2120);class Pixelated extends re{old(_){if(_==="-webkit-"){return new te(this.name,"-webkit-optimize-contrast")}if(_==="-moz-"){return new te(this.name,"-moz-crisp-edges")}return super.old(_)}replace(_,X){if(X==="-webkit-"){return _.replace(this.regexp(),"$1-webkit-optimize-contrast")}if(X==="-moz-"){return _.replace(this.regexp(),"$1-moz-crisp-edges")}return super.replace(_,X)}}Pixelated.names=["pixelated"];_.exports=Pixelated},8817:(_,X,ee)=>{let te=ee(4173);let re=ee(2110);class PlaceSelf extends te{insert(_,X,ee){if(X!=="-ms-")return super.insert(_,X,ee);if(_.parent.some((_=>_.prop==="-ms-grid-row-align"))){return undefined}let[[te,se]]=re.parse(_);if(se){re.insertDecl(_,"grid-row-align",te);re.insertDecl(_,"grid-column-align",se)}else{re.insertDecl(_,"grid-row-align",te);re.insertDecl(_,"grid-column-align",te)}return undefined}}PlaceSelf.names=["place-self"];_.exports=PlaceSelf},734:(_,X,ee)=>{let te=ee(9868);class PlaceholderShown extends te{prefixed(_){if(_==="-moz-"){return":-moz-placeholder"}else if(_==="-ms-"){return":-ms-input-placeholder"}return`:${_}placeholder-shown`}}PlaceholderShown.names=[":placeholder-shown"];_.exports=PlaceholderShown},2449:(_,X,ee)=>{let te=ee(9868);class Placeholder extends te{possible(){return super.possible().concat(["-moz- old","-ms- old"])}prefixed(_){if(_==="-webkit-"){return"::-webkit-input-placeholder"}if(_==="-ms-"){return"::-ms-input-placeholder"}if(_==="-ms- old"){return":-ms-input-placeholder"}if(_==="-moz- old"){return":-moz-placeholder"}return`::${_}placeholder`}}Placeholder.names=["::placeholder"];_.exports=Placeholder},910:(_,X,ee)=>{let te=ee(4173);class PrintColorAdjust extends te{normalize(){return"print-color-adjust"}prefixed(_,X){if(X==="-moz-"){return"color-adjust"}else{return X+"print-color-adjust"}}}PrintColorAdjust.names=["print-color-adjust","color-adjust"];_.exports=PrintColorAdjust},2278:(_,X,ee)=>{let te=ee(4173);class TextDecorationSkipInk extends te{set(_,X){if(_.prop==="text-decoration-skip-ink"&&_.value==="auto"){_.prop=X+"text-decoration-skip";_.value="ink";return _}else{return super.set(_,X)}}}TextDecorationSkipInk.names=["text-decoration-skip-ink","text-decoration-skip"];_.exports=TextDecorationSkipInk},1036:(_,X,ee)=>{let te=ee(4173);const re=["none","underline","overline","line-through","blink","inherit","initial","unset"];class TextDecoration extends te{check(_){return _.value.split(/\s+/).some((_=>!re.includes(_)))}}TextDecoration.names=["text-decoration"];_.exports=TextDecoration},6721:(_,X,ee)=>{let te=ee(4173);class TextEmphasisPosition extends te{set(_,X){if(X==="-webkit-"){_.value=_.value.replace(/\s*(right|left)\s*/i,"")}return super.set(_,X)}}TextEmphasisPosition.names=["text-emphasis-position"];_.exports=TextEmphasisPosition},980:(_,X,ee)=>{let te=ee(4173);class TransformDecl extends te{contain3d(_){if(_.prop==="transform-origin"){return false}for(let X of TransformDecl.functions3d){if(_.value.includes(`${X}(`)){return true}}return false}insert(_,X,ee){if(X==="-ms-"){if(!this.contain3d(_)&&!this.keyframeParents(_)){return super.insert(_,X,ee)}}else if(X==="-o-"){if(!this.contain3d(_)){return super.insert(_,X,ee)}}else{return super.insert(_,X,ee)}return undefined}keyframeParents(_){let{parent:X}=_;while(X){if(X.type==="atrule"&&X.name==="keyframes"){return true}({parent:X}=X)}return false}set(_,X){_=super.set(_,X);if(X==="-ms-"){_.value=_.value.replace(/rotatez/gi,"rotate")}return _}}TransformDecl.names=["transform","transform-origin"];TransformDecl.functions3d=["matrix3d","translate3d","translateZ","scale3d","scaleZ","rotate3d","rotateX","rotateY","perspective"];_.exports=TransformDecl},3621:(_,X,ee)=>{let te=ee(4173);class UserSelect extends te{insert(_,X,ee){if(_.value==="all"&&X==="-ms-"){return undefined}else if(_.value==="contain"&&(X==="-moz-"||X==="-webkit-")){return undefined}else{return super.insert(_,X,ee)}}set(_,X){if(X==="-ms-"&&_.value==="contain"){_.value="element"}return super.set(_,X)}}UserSelect.names=["user-select"];_.exports=UserSelect},2948:(_,X,ee)=>{let te=ee(4173);class WritingMode extends te{insert(_,X,ee){if(X==="-ms-"){let te=this.set(this.clone(_),X);if(this.needCascade(_)){te.raws.before=this.calcBefore(ee,_,X)}let re="ltr";_.parent.nodes.forEach((_=>{if(_.prop==="direction"){if(_.value==="rtl"||_.value==="ltr")re=_.value}}));te.value=WritingMode.msValues[re][_.value]||_.value;return _.parent.insertBefore(_,te)}return super.insert(_,X,ee)}}WritingMode.names=["writing-mode"];WritingMode.msValues={ltr:{"horizontal-tb":"lr-tb","vertical-lr":"tb-lr","vertical-rl":"tb-rl"},rtl:{"horizontal-tb":"rl-tb","vertical-lr":"bt-lr","vertical-rl":"bt-rl"}};_.exports=WritingMode},1498:(_,X,ee)=>{let te=ee(4907);function capitalize(_){return _.slice(0,1).toUpperCase()+_.slice(1)}const re={and_chr:"Chrome for Android",and_ff:"Firefox for Android",and_qq:"QQ Browser",and_uc:"UC for Android",baidu:"Baidu Browser",ie:"IE",ie_mob:"IE Mobile",ios_saf:"iOS Safari",kaios:"KaiOS Browser",op_mini:"Opera Mini",op_mob:"Opera Mobile",samsung:"Samsung Internet"};function prefix(_,X,ee){let te=` ${_}`;if(ee)te+=" *";te+=": ";te+=X.map((_=>_.replace(/^-(.*)-$/g,"$1"))).join(", ");te+="\n";return te}_.exports=function(_){if(_.browsers.selected.length===0){return"No browsers selected"}let X={};for(let ee of _.browsers.selected){let _=ee.split(" ");let te=_[0];let se=_[1];te=re[te]||capitalize(te);if(X[te]){X[te].push(se)}else{X[te]=[se]}}let ee="Browsers:\n";for(let _ in X){let te=X[_];te=te.sort(((_,X)=>parseFloat(X)-parseFloat(_)));ee+=` ${_}: ${te.join(", ")}\n`}let se=te.coverage(_.browsers.selected);let ne=Math.round(se*100)/100;ee+=`\nThese browsers account for ${ne}% of all users globally\n`;let ie=[];for(let X in _.add){let ee=_.add[X];if(X[0]==="@"&&ee.prefixes){ie.push(prefix(X,ee.prefixes))}}if(ie.length>0){ee+=`\nAt-Rules:\n${ie.sort().join("")}`}let oe=[];for(let X of _.add.selectors){if(X.prefixes){oe.push(prefix(X.name,X.prefixes))}}if(oe.length>0){ee+=`\nSelectors:\n${oe.sort().join("")}`}let ae=[];let le=[];let ue=false;for(let X in _.add){let ee=_.add[X];if(X[0]!=="@"&&ee.prefixes){let _=X.indexOf("grid-")===0;if(_)ue=true;le.push(prefix(X,ee.prefixes,_))}if(!Array.isArray(ee.values)){continue}for(let _ of ee.values){let X=_.name.includes("grid");if(X)ue=true;let ee=prefix(_.name,_.prefixes,X);if(!ae.includes(ee)){ae.push(ee)}}}if(le.length>0){ee+=`\nProperties:\n${le.sort().join("")}`}if(ae.length>0){ee+=`\nValues:\n${ae.sort().join("")}`}if(ue){ee+="\n* - Prefixes will be added only on grid: true option.\n"}if(!ie.length&&!oe.length&&!le.length&&!ae.length){ee+="\nAwesome! Your browsers don't require any vendor prefixes."+"\nNow you can remove Autoprefixer from build steps."}return ee}},4335:_=>{class OldSelector{constructor(_,X){this.prefix=X;this.prefixed=_.prefixed(this.prefix);this.regexp=_.regexp(this.prefix);this.prefixeds=_.possible().map((X=>[_.prefixed(X),_.regexp(X)]));this.unprefixed=_.name;this.nameRegexp=_.regexp()}check(_){if(!_.selector.includes(this.prefixed)){return false}if(!_.selector.match(this.regexp)){return false}if(this.isHack(_)){return false}return true}isHack(_){let X=_.parent.index(_)+1;let ee=_.parent.nodes;while(X{let te=ee(3640);class OldValue{constructor(_,X,ee,re){this.unprefixed=_;this.prefixed=X;this.string=ee||X;this.regexp=re||te.regexp(X)}check(_){if(_.includes(this.string)){return!!_.match(this.regexp)}return false}}_.exports=OldValue},1683:(_,X,ee)=>{let te=ee(5957);let re=ee(3640);let se=ee(9438);function clone(_,X){let ee=new _.constructor;for(let te of Object.keys(_||{})){let re=_[te];if(te==="parent"&&typeof re==="object"){if(X){ee[te]=X}}else if(te==="source"||te===null){ee[te]=re}else if(Array.isArray(re)){ee[te]=re.map((_=>clone(_,ee)))}else if(te!=="_autoprefixerPrefix"&&te!=="_autoprefixerValues"&&te!=="proxyCache"){if(typeof re==="object"&&re!==null){re=clone(re,ee)}ee[te]=re}}return ee}class Prefixer{constructor(_,X,ee){this.prefixes=X;this.name=_;this.all=ee}static clone(_,X){let ee=clone(_);for(let _ in X){ee[_]=X[_]}return ee}static hack(_){if(!this.hacks){this.hacks={}}return _.names.map((X=>{this.hacks[X]=_;return this.hacks[X]}))}static load(_,X,ee){let te=this.hacks&&this.hacks[_];if(te){return new te(_,X,ee)}else{return new this(_,X,ee)}}clone(_,X){return Prefixer.clone(_,X)}parentPrefix(_){let X;if(typeof _._autoprefixerPrefix!=="undefined"){X=_._autoprefixerPrefix}else if(_.type==="decl"&&_.prop[0]==="-"){X=se.prefix(_.prop)}else if(_.type==="root"){X=false}else if(_.type==="rule"&&_.selector.includes(":-")&&/:(-\w+-)/.test(_.selector)){X=_.selector.match(/:(-\w+-)/)[1]}else if(_.type==="atrule"&&_.name[0]==="-"){X=se.prefix(_.name)}else{X=this.parentPrefix(_.parent)}if(!te.prefixes().includes(X)){X=false}_._autoprefixerPrefix=X;return _._autoprefixerPrefix}process(_,X){if(!this.check(_)){return undefined}let ee=this.parentPrefix(_);let te=this.prefixes.filter((_=>!ee||ee===re.removeNote(_)));let se=[];for(let ee of te){if(this.add(_,ee,se.concat([ee]),X)){se.push(ee)}}return se}}_.exports=Prefixer},4824:(_,X,ee)=>{let te=ee(7811);let re=ee(5957);let se=ee(4173);let ne=ee(3827);let ie=ee(440);let oe=ee(3872);let ae=ee(7215);let le=ee(7926);let ue=ee(333);let ce=ee(7590);let pe=ee(5300);let fe=ee(3079);let de=ee(1450);let he=ee(3562);let me=ee(2636);let ge=ee(2627);let be=ee(8109);let ve=ee(1257);let ye=ee(6083);let we=ee(1254);let xe=ee(6171);let ke=ee(4041);let Se=ee(3036);let _e=ee(6901);let Pe=ee(7003);let Oe=ee(1196);let je=ee(3666);let Te=ee(1987);let Ee=ee(4555);let Fe=ee(7148);let Me=ee(6288);let $e=ee(3865);let Re=ee(3078);let Ae=ee(4833);let qe=ee(9955);let ze=ee(8878);let Ge=ee(7669);let Ue=ee(5936);let He=ee(8060);let Ze=ee(2731);let Ke=ee(9581);let Xe=ee(9852);let et=ee(8763);let tt=ee(6670);let rt=ee(6759);let st=ee(3039);let nt=ee(3071);let it=ee(5220);let ot=ee(1927);let lt=ee(4881);let ut=ee(8817);let ct=ee(2449);let pt=ee(734);let ft=ee(910);let dt=ee(1036);let ht=ee(2278);let mt=ee(6721);let gt=ee(980);let bt=ee(3621);let vt=ee(2948);let yt=ee(4553);let wt=ee(3739);let xt=ee(9868);let kt=ee(5729);let St=ee(2132);let _t=ee(3640);let Pt=ee(2120);let Ot=ee(9438);xt.hack(ue);xt.hack(Fe);xt.hack(ct);xt.hack(pt);xt.hack(we);se.hack(Se);se.hack(it);se.hack(xe);se.hack(Ae);se.hack(ae);se.hack(Oe);se.hack(je);se.hack(Ee);se.hack($e);se.hack(ut);se.hack(Ue);se.hack(oe);se.hack(le);se.hack(_e);se.hack(st);se.hack(nt);se.hack(ie);se.hack(bt);se.hack(Te);se.hack(ge);se.hack(vt);se.hack(he);se.hack(ne);se.hack(me);se.hack(de);se.hack(He);se.hack(et);se.hack(qe);se.hack(gt);se.hack(Pe);se.hack(Ke);se.hack(ce);se.hack(pe);se.hack(dt);se.hack(rt);se.hack(fe);se.hack(ze);se.hack(Ge);se.hack(Re);se.hack(ot);se.hack(Ze);se.hack(ft);se.hack(mt);se.hack(ht);Pt.hack(Me);Pt.hack(tt);Pt.hack(lt);Pt.hack(Xe);Pt.hack(be);Pt.hack(ve);Pt.hack(ye);Pt.hack(ke);let Ct=new Map;class Prefixes{constructor(_,X,ee={}){this.data=_;this.browsers=X;this.options=ee;[this.add,this.remove]=this.preprocess(this.select(this.data));this.transition=new St(this);this.processor=new yt(this)}cleaner(){if(this.cleanerCache){return this.cleanerCache}if(this.browsers.selected.length){let _=new re(this.browsers.data,[]);this.cleanerCache=new Prefixes(this.data,_,this.options)}else{return this}return this.cleanerCache}decl(_){if(!Ct.has(_)){Ct.set(_,se.load(_))}return Ct.get(_)}group(_){let X=_.parent;let ee=X.index(_);let{length:te}=X.nodes;let se=this.unprefixed(_.prop);let checker=(_,ne)=>{ee+=_;while(ee>=0&&ee{let X=_.split(" ");return{browser:`${X[0]} ${X[1]}`,note:X[2]}}));let se=re.filter((_=>_.note)).map((_=>`${this.browsers.prefix(_.browser)} ${_.note}`));se=_t.uniq(se);re=re.filter((_=>this.browsers.isSelected(_.browser))).map((_=>{let X=this.browsers.prefix(_.browser);if(_.note){return`${X} ${_.note}`}else{return X}}));re=this.sort(_t.uniq(re));if(this.options.flexbox==="no-2009"){re=re.filter((_=>!_.includes("2009")))}let ne=te.browsers.map((_=>this.browsers.prefix(_)));if(te.mistakes){ne=ne.concat(te.mistakes)}ne=ne.concat(se);ne=_t.uniq(ne);if(re.length){X.add[ee]=re;if(re.length!re.includes(_)))}}else{X.remove[ee]=ne}}return X}sort(_){return _.sort(((_,X)=>{let ee=_t.removeNote(_).length;let te=_t.removeNote(X).length;if(ee===te){return X.length-_.length}else{return te-ee}}))}unprefixed(_){let X=this.normalize(Ot.unprefixed(_));if(X==="flex-direction"){X="flex-flow"}return X}values(_,X){let ee=this[_];let te=ee["*"]&&ee["*"].values;let re=ee[X]&&ee[X].values;if(te&&re){return _t.uniq(te.concat(re))}else{return te||re||[]}}}_.exports=Prefixes},4553:(_,X,ee)=>{let te=ee(2045);let re=ee(2120);let se=ee(2110).insertAreas;const ne=/(^|[^-])linear-gradient\(\s*(top|left|right|bottom)/i;const ie=/(^|[^-])radial-gradient\(\s*\d+(\w*|%)\s+\d+(\w*|%)\s*,/i;const oe=/(!\s*)?autoprefixer:\s*ignore\s+next/i;const ae=/(!\s*)?autoprefixer\s*grid:\s*(on|off|(no-)?autoplace)/i;const le=["width","height","min-width","max-width","min-height","max-height","inline-size","min-inline-size","max-inline-size","block-size","min-block-size","max-block-size"];function hasGridTemplate(_){return _.parent.some((_=>_.prop==="grid-template"||_.prop==="grid-template-areas"))}function hasRowsAndColumns(_){let X=_.parent.some((_=>_.prop==="grid-template-rows"));let ee=_.parent.some((_=>_.prop==="grid-template-columns"));return X&&ee}class Processor{constructor(_){this.prefixes=_}add(_,X){let ee=this.prefixes.add["@resolution"];let oe=this.prefixes.add["@keyframes"];let ae=this.prefixes.add["@viewport"];let ue=this.prefixes.add["@supports"];_.walkAtRules((_=>{if(_.name==="keyframes"){if(!this.disabled(_,X)){return oe&&oe.process(_)}}else if(_.name==="viewport"){if(!this.disabled(_,X)){return ae&&ae.process(_)}}else if(_.name==="supports"){if(this.prefixes.options.supports!==false&&!this.disabled(_,X)){return ue.process(_)}}else if(_.name==="media"&&_.params.includes("-resolution")){if(!this.disabled(_,X)){return ee&&ee.process(_)}}return undefined}));_.walkRules((_=>{if(this.disabled(_,X))return undefined;return this.prefixes.add.selectors.map((ee=>ee.process(_,X)))}));function insideGrid(_){return _.parent.nodes.some((_=>{if(_.type!=="decl")return false;let X=_.prop==="display"&&/(inline-)?grid/.test(_.value);let ee=_.prop.startsWith("grid-template");let te=/^grid-([A-z]+-)?gap/.test(_.prop);return X||ee||te}))}let ce=this.gridStatus(_,X)&&this.prefixes.add["grid-area"]&&this.prefixes.add["grid-area"].prefixes;_.walkDecls((_=>{if(this.disabledDecl(_,X))return undefined;let ee=_.parent;let re=_.prop;let se=_.value;if(re==="color-adjust"){if(ee.every((_=>_.prop!=="print-color-adjust"))){X.warn("Replace color-adjust to print-color-adjust. "+"The color-adjust shorthand is currently deprecated.",{node:_})}}else if(re==="grid-row-span"){X.warn("grid-row-span is not part of final Grid Layout. Use grid-row.",{node:_});return undefined}else if(re==="grid-column-span"){X.warn("grid-column-span is not part of final Grid Layout. Use grid-column.",{node:_});return undefined}else if(re==="display"&&se==="box"){X.warn("You should write display: flex by final spec "+"instead of display: box",{node:_});return undefined}else if(re==="text-emphasis-position"){if(se==="under"||se==="over"){X.warn("You should use 2 values for text-emphasis-position "+"For example, `under left` instead of just `under`.",{node:_})}}else if(re==="text-decoration-skip"&&se==="ink"){X.warn("Replace text-decoration-skip: ink to "+"text-decoration-skip-ink: auto, because spec had been changed",{node:_})}else{if(ce&&this.gridStatus(_,X)){if(_.value==="subgrid"){X.warn("IE does not support subgrid",{node:_})}if(/^(align|justify|place)-items$/.test(re)&&insideGrid(_)){let ee=re.replace("-items","-self");X.warn(`IE does not support ${re} on grid containers. `+`Try using ${ee} on child elements instead: `+`${_.parent.selector} > * { ${ee}: ${_.value} }`,{node:_})}else if(/^(align|justify|place)-content$/.test(re)&&insideGrid(_)){X.warn(`IE does not support ${_.prop} on grid containers`,{node:_})}else if(re==="display"&&_.value==="contents"){X.warn("Please do not use display: contents; "+"if you have grid setting enabled",{node:_});return undefined}else if(_.prop==="grid-gap"){let ee=this.gridStatus(_,X);if(ee==="autoplace"&&!hasRowsAndColumns(_)&&!hasGridTemplate(_)){X.warn("grid-gap only works if grid-template(-areas) is being "+"used or both rows and columns have been declared "+"and cells have not been manually "+"placed inside the explicit grid",{node:_})}else if((ee===true||ee==="no-autoplace")&&!hasGridTemplate(_)){X.warn("grid-gap only works if grid-template(-areas) is being used",{node:_})}}else if(re==="grid-auto-columns"){X.warn("grid-auto-columns is not supported by IE",{node:_});return undefined}else if(re==="grid-auto-rows"){X.warn("grid-auto-rows is not supported by IE",{node:_});return undefined}else if(re==="grid-auto-flow"){let te=ee.some((_=>_.prop==="grid-template-rows"));let re=ee.some((_=>_.prop==="grid-template-columns"));if(hasGridTemplate(_)){X.warn("grid-auto-flow is not supported by IE",{node:_})}else if(se.includes("dense")){X.warn("grid-auto-flow: dense is not supported by IE",{node:_})}else if(!te&&!re){X.warn("grid-auto-flow works only if grid-template-rows and "+"grid-template-columns are present in the same rule",{node:_})}return undefined}else if(se.includes("auto-fit")){X.warn("auto-fit value is not supported by IE",{node:_,word:"auto-fit"});return undefined}else if(se.includes("auto-fill")){X.warn("auto-fill value is not supported by IE",{node:_,word:"auto-fill"});return undefined}else if(re.startsWith("grid-template")&&se.includes("[")){X.warn("Autoprefixer currently does not support line names. "+"Try using grid-template-areas instead.",{node:_,word:"["})}}if(se.includes("radial-gradient")){if(ie.test(_.value)){X.warn("Gradient has outdated direction syntax. "+"New syntax is like `closest-side at 0 0` "+"instead of `0 0, closest-side`.",{node:_})}else{let ee=te(se);for(let te of ee.nodes){if(te.type==="function"&&te.value==="radial-gradient"){for(let ee of te.nodes){if(ee.type==="word"){if(ee.value==="cover"){X.warn("Gradient has outdated direction syntax. "+"Replace `cover` to `farthest-corner`.",{node:_})}else if(ee.value==="contain"){X.warn("Gradient has outdated direction syntax. "+"Replace `contain` to `closest-side`.",{node:_})}}}}}}}if(se.includes("linear-gradient")){if(ne.test(se)){X.warn("Gradient has outdated direction syntax. "+"New syntax is like `to left` instead of `right`.",{node:_})}}}if(le.includes(_.prop)){if(!_.value.includes("-fill-available")){if(_.value.includes("fill-available")){X.warn("Replace fill-available to stretch, "+"because spec had been changed",{node:_})}else if(_.value.includes("fill")){let ee=te(se);if(ee.nodes.some((_=>_.type==="word"&&_.value==="fill"))){X.warn("Replace fill to stretch, because spec had been changed",{node:_})}}}}let oe;if(_.prop==="transition"||_.prop==="transition-property"){return this.prefixes.transition.add(_,X)}else if(_.prop==="align-self"){let ee=this.displayType(_);if(ee!=="grid"&&this.prefixes.options.flexbox!==false){oe=this.prefixes.add["align-self"];if(oe&&oe.prefixes){oe.process(_)}}if(this.gridStatus(_,X)!==false){oe=this.prefixes.add["grid-row-align"];if(oe&&oe.prefixes){return oe.process(_,X)}}}else if(_.prop==="justify-self"){if(this.gridStatus(_,X)!==false){oe=this.prefixes.add["grid-column-align"];if(oe&&oe.prefixes){return oe.process(_,X)}}}else if(_.prop==="place-self"){oe=this.prefixes.add["place-self"];if(oe&&oe.prefixes&&this.gridStatus(_,X)!==false){return oe.process(_,X)}}else{oe=this.prefixes.add[_.prop];if(oe&&oe.prefixes){return oe.process(_,X)}}return undefined}));if(this.gridStatus(_,X)){se(_,this.disabled)}return _.walkDecls((_=>{if(this.disabledValue(_,X))return;let ee=this.prefixes.unprefixed(_.prop);let te=this.prefixes.values("add",ee);if(Array.isArray(te)){for(let ee of te){if(ee.process)ee.process(_,X)}}re.save(this.prefixes,_)}))}disabled(_,X){if(!_)return false;if(_._autoprefixerDisabled!==undefined){return _._autoprefixerDisabled}if(_.parent){let X=_.prev();if(X&&X.type==="comment"&&oe.test(X.text)){_._autoprefixerDisabled=true;_._autoprefixerSelfDisabled=true;return true}}let ee=null;if(_.nodes){let te;_.each((_=>{if(_.type!=="comment")return;if(/(!\s*)?autoprefixer:\s*(off|on)/i.test(_.text)){if(typeof te!=="undefined"){X.warn("Second Autoprefixer control comment "+"was ignored. Autoprefixer applies control "+"comment to whole block, not to next rules.",{node:_})}else{te=/on/i.test(_.text)}}}));if(te!==undefined){ee=!te}}if(!_.nodes||ee===null){if(_.parent){let te=this.disabled(_.parent,X);if(_.parent._autoprefixerSelfDisabled===true){ee=false}else{ee=te}}else{ee=false}}_._autoprefixerDisabled=ee;return ee}disabledDecl(_,X){if(_.type==="decl"&&this.gridStatus(_,X)===false){if(_.prop.includes("grid")||_.prop==="justify-items"){return true}}if(_.type==="decl"&&this.prefixes.options.flexbox===false){let X=["order","justify-content","align-items","align-content"];if(_.prop.includes("flex")||X.includes(_.prop)){return true}}return this.disabled(_,X)}disabledValue(_,X){if(this.gridStatus(_,X)===false&&_.type==="decl"){if(_.prop==="display"&&_.value.includes("grid")){return true}}if(this.prefixes.options.flexbox===false&&_.type==="decl"){if(_.prop==="display"&&_.value.includes("flex")){return true}}if(_.type==="decl"&&_.prop==="content"){return true}return this.disabled(_,X)}displayType(_){for(let X of _.parent.nodes){if(X.prop!=="display"){continue}if(X.value.includes("flex")){return"flex"}if(X.value.includes("grid")){return"grid"}}return false}gridStatus(_,X){if(!_)return false;if(_._autoprefixerGridStatus!==undefined){return _._autoprefixerGridStatus}let ee=null;if(_.nodes){let te;_.each((_=>{if(_.type!=="comment")return;if(ae.test(_.text)){let ee=/:\s*autoplace/i.test(_.text);let re=/no-autoplace/i.test(_.text);if(typeof te!=="undefined"){X.warn("Second Autoprefixer grid control comment was "+"ignored. Autoprefixer applies control comments to the whole "+"block, not to the next rules.",{node:_})}else if(ee){te="autoplace"}else if(re){te=true}else{te=/on/i.test(_.text)}}}));if(te!==undefined){ee=te}}if(_.type==="atrule"&&_.name==="supports"){let X=_.params;if(X.includes("grid")&&X.includes("auto")){ee=false}}if(!_.nodes||ee===null){if(_.parent){let te=this.gridStatus(_.parent,X);if(_.parent._autoprefixerSelfDisabled===true){ee=false}else{ee=te}}else if(typeof this.prefixes.options.grid!=="undefined"){ee=this.prefixes.options.grid}else if(typeof process.env.AUTOPREFIXER_GRID!=="undefined"){if(process.env.AUTOPREFIXER_GRID==="autoplace"){ee="autoplace"}else{ee=true}}else{ee=false}}_._autoprefixerGridStatus=ee;return ee}reduceSpaces(_){let X=false;this.prefixes.group(_).up((()=>{X=true;return true}));if(X){return}let ee=_.raw("before").split("\n");let te=ee[ee.length-1].length;let re=false;this.prefixes.group(_).down((_=>{ee=_.raw("before").split("\n");let X=ee.length-1;if(ee[X].length>te){if(re===false){re=ee[X].length-te}ee[X]=ee[X].slice(0,-re);_.raws.before=ee.join("\n")}}))}remove(_,X){let ee=this.prefixes.remove["@resolution"];_.walkAtRules(((_,te)=>{if(this.prefixes.remove[`@${_.name}`]){if(!this.disabled(_,X)){_.parent.removeChild(te)}}else if(_.name==="media"&&_.params.includes("-resolution")&&ee){ee.clean(_)}}));_.walkRules(((_,ee)=>{if(this.disabled(_,X))return;for(let X of this.prefixes.remove.selectors){if(X.check(_)){_.parent.removeChild(ee);return}}}));return _.walkDecls(((_,ee)=>{if(this.disabled(_,X))return;let te=_.parent;let re=this.prefixes.unprefixed(_.prop);if(_.prop==="transition"||_.prop==="transition-property"){this.prefixes.transition.remove(_)}if(this.prefixes.remove[_.prop]&&this.prefixes.remove[_.prop].remove){let X=this.prefixes.group(_).down((_=>this.prefixes.normalize(_.prop)===re));if(re==="flex-flow"){X=true}if(_.prop==="-webkit-box-orient"){let X={"flex-direction":true,"flex-flow":true};if(!_.parent.some((_=>X[_.prop])))return}if(X&&!this.withHackValue(_)){if(_.raw("before").includes("\n")){this.reduceSpaces(_)}te.removeChild(ee);return}}for(let X of this.prefixes.values("remove",re)){if(!X.check)continue;if(!X.check(_.value))continue;re=X.unprefixed;let se=this.prefixes.group(_).down((_=>_.value.includes(re)));if(se){te.removeChild(ee);return}}}))}withHackValue(_){return _.prop==="-webkit-background-clip"&&_.value==="text"||_.prop==="-webkit-box-orient"&&_.parent.some((_=>_.prop==="-webkit-line-clamp"))}}_.exports=Processor},3739:(_,X,ee)=>{let te=ee(725);let re=ee(1683);let se=ee(3640);const ne=/(min|max)-resolution\s*:\s*\d*\.?\d+(dppx|dpcm|dpi|x)/gi;const ie=/(min|max)-resolution(\s*:\s*)(\d*\.?\d+)(dppx|dpcm|dpi|x)/i;class Resolution extends re{clean(_){if(!this.bad){this.bad=[];for(let _ of this.prefixes){this.bad.push(this.prefixName(_,"min"));this.bad.push(this.prefixName(_,"max"))}}_.params=se.editList(_.params,(_=>_.filter((_=>this.bad.every((X=>!_.includes(X)))))))}prefixName(_,X){if(_==="-moz-"){return X+"--moz-device-pixel-ratio"}else{return _+X+"-device-pixel-ratio"}}prefixQuery(_,X,ee,re,se){re=new te(re);if(se==="dpi"){re=re.div(96)}else if(se==="dpcm"){re=re.mul(2.54).div(96)}re=re.simplify();if(_==="-o-"){re=re.n+"/"+re.d}return this.prefixName(_,X)+ee+re}process(_){let X=this.parentPrefix(_);let ee=X?[X]:this.prefixes;_.params=se.editList(_.params,((_,X)=>{for(let te of _){if(!te.includes("min-resolution")&&!te.includes("max-resolution")){X.push(te);continue}for(let _ of ee){let ee=te.replace(ne,(X=>{let ee=X.match(ie);return this.prefixQuery(_,ee[1],ee[2],ee[3],ee[4])}));X.push(ee)}X.push(te)}return se.uniq(X)}))}}_.exports=Resolution},9868:(_,X,ee)=>{let{list:te}=ee(977);let re=ee(5957);let se=ee(4335);let ne=ee(1683);let ie=ee(3640);class Selector extends ne{constructor(_,X,ee){super(_,X,ee);this.regexpCache=new Map}add(_,X){let ee=this.prefixeds(_);if(this.already(_,ee,X)){return}let te=this.clone(_,{selector:ee[this.name][X]});_.parent.insertBefore(_,te)}already(_,X,ee){let te=_.parent.index(_)-1;while(te>=0){let re=_.parent.nodes[te];if(re.type!=="rule"){return false}let se=false;for(let _ in X[this.name]){let te=X[this.name][_];if(re.selector===te){if(ee===_){return true}else{se=true;break}}}if(!se){return false}te-=1}return false}check(_){if(_.selector.includes(this.name)){return!!_.selector.match(this.regexp())}return false}old(_){return new se(this,_)}possible(){return re.prefixes()}prefixed(_){return this.name.replace(/^(\W*)/,`$1${_}`)}prefixeds(_){if(_._autoprefixerPrefixeds){if(_._autoprefixerPrefixeds[this.name]){return _._autoprefixerPrefixeds}}else{_._autoprefixerPrefixeds={}}let X={};if(_.selector.includes(",")){let ee=te.comma(_.selector);let re=ee.filter((_=>_.includes(this.name)));for(let _ of this.possible()){X[_]=re.map((X=>this.replace(X,_))).join(", ")}}else{for(let ee of this.possible()){X[ee]=this.replace(_.selector,ee)}}_._autoprefixerPrefixeds[this.name]=X;return _._autoprefixerPrefixeds}regexp(_){if(!this.regexpCache.has(_)){let X=_?this.prefixed(_):this.name;this.regexpCache.set(_,new RegExp(`(^|[^:"'=])${ie.escapeRegexp(X)}`,"gi"))}return this.regexpCache.get(_)}replace(_,X){return _.replace(this.regexp(),`$1${this.prefixed(X)}`)}}_.exports=Selector},5729:(_,X,ee)=>{let te=ee(8944);let re=ee(1711);let{parse:se}=ee(977);let ne=ee(465);let ie=ee(5957);let oe=ee(3640);let ae=ee(2120);let le=re(te);let ue=[];for(let _ in le.stats){let X=le.stats[_];for(let ee in X){let te=X[ee];if(/y/.test(te)){ue.push(_+" "+ee)}}}class Supports{constructor(_,X){this.Prefixes=_;this.all=X}add(_,X){return _.map((_=>{if(this.isProp(_)){let X=this.prefixed(_[0]);if(X.length>1){return this.convert(X)}return _}if(typeof _==="object"){return this.add(_,X)}return _}))}cleanBrackets(_){return _.map((_=>{if(typeof _!=="object"){return _}if(_.length===1&&typeof _[0]==="object"){return this.cleanBrackets(_[0])}return this.cleanBrackets(_)}))}convert(_){let X=[""];for(let ee of _){X.push([`${ee.prop}: ${ee.value}`]);X.push(" or ")}X[X.length-1]="";return X}disabled(_){if(!this.all.options.grid){if(_.prop==="display"&&_.value.includes("grid")){return true}if(_.prop.includes("grid")||_.prop==="justify-items"){return true}}if(this.all.options.flexbox===false){if(_.prop==="display"&&_.value.includes("flex")){return true}let X=["order","justify-content","align-items","align-content"];if(_.prop.includes("flex")||X.includes(_.prop)){return true}}return false}isHack(_,X){let ee=new RegExp(`(\\(|\\s)${oe.escapeRegexp(X)}:`);return!ee.test(_)}isNot(_){return typeof _==="string"&&/not\s*/i.test(_)}isOr(_){return typeof _==="string"&&/\s*or\s*/i.test(_)}isProp(_){return typeof _==="object"&&_.length===1&&typeof _[0]==="string"}normalize(_){if(typeof _!=="object"){return _}_=_.filter((_=>_!==""));if(typeof _[0]==="string"){let X=_[0].trim();if(X.includes(":")||X==="selector"||X==="not selector"){return[ne.stringify(_)]}}return _.map((_=>this.normalize(_)))}parse(_){let X=_.split(":");let ee=X[0];let te=X[1];if(!te)te="";return[ee.trim(),te.trim()]}prefixed(_){let X=this.virtual(_);if(this.disabled(X.first)){return X.nodes}let ee={warn:()=>null};let te=this.prefixer().add[X.first.prop];te&&te.process&&te.process(X.first,ee);for(let _ of X.nodes){for(let ee of this.prefixer().values("add",X.first.prop)){ee.process(_)}ae.save(this.all,_)}return X.nodes}prefixer(){if(this.prefixerCache){return this.prefixerCache}let _=this.all.browsers.selected.filter((_=>ue.includes(_)));let X=new ie(this.all.browsers.data,_,this.all.options);this.prefixerCache=new this.Prefixes(this.all.data,X,this.all.options);return this.prefixerCache}process(_){let X=ne.parse(_.params);X=this.normalize(X);X=this.remove(X,_.params);X=this.add(X,_.params);X=this.cleanBrackets(X);_.params=ne.stringify(X)}remove(_,X){let ee=0;while(ee<_.length){if(!this.isNot(_[ee-1])&&this.isProp(_[ee])&&this.isOr(_[ee+1])){if(this.toRemove(_[ee][0],X)){_.splice(ee,2);continue}ee+=2;continue}if(typeof _[ee]==="object"){_[ee]=this.remove(_[ee],X)}ee+=1}return _}toRemove(_,X){let[ee,te]=this.parse(_);let re=this.all.unprefixed(ee);let se=this.all.cleaner();if(se.remove[ee]&&se.remove[ee].remove&&!this.isHack(X,re)){return true}for(let _ of se.values("remove",re)){if(_.check(te)){return true}}return false}virtual(_){let[X,ee]=this.parse(_);let te=se("a{}").first;te.append({prop:X,raws:{before:""},value:ee});return te}}_.exports=Supports},2132:(_,X,ee)=>{let{list:te}=ee(977);let re=ee(2045);let se=ee(5957);let ne=ee(9438);class Transition{constructor(_){this.props=["transition","transition-property"];this.prefixes=_}add(_,X){let ee,te;let re=this.prefixes.add[_.prop];let se=this.ruleVendorPrefixes(_);let ne=se||re&&re.prefixes||[];let ie=this.parse(_.value);let oe=ie.map((_=>this.findProp(_)));let ae=[];if(oe.some((_=>_[0]==="-"))){return}for(let _ of ie){te=this.findProp(_);if(te[0]==="-")continue;let X=this.prefixes.add[te];if(!X||!X.prefixes)continue;for(ee of X.prefixes){if(se&&!se.some((_=>ee.includes(_)))){continue}let X=this.prefixes.prefixed(te,ee);if(X!=="-ms-transform"&&!oe.includes(X)){if(!this.disabled(te,ee)){ae.push(this.clone(te,X,_))}}}}ie=ie.concat(ae);let le=this.stringify(ie);let ue=this.stringify(this.cleanFromUnprefixed(ie,"-webkit-"));if(ne.includes("-webkit-")){this.cloneBefore(_,`-webkit-${_.prop}`,ue)}this.cloneBefore(_,_.prop,ue);if(ne.includes("-o-")){let X=this.stringify(this.cleanFromUnprefixed(ie,"-o-"));this.cloneBefore(_,`-o-${_.prop}`,X)}for(ee of ne){if(ee!=="-webkit-"&&ee!=="-o-"){let X=this.stringify(this.cleanOtherPrefixes(ie,ee));this.cloneBefore(_,ee+_.prop,X)}}if(le!==_.value&&!this.already(_,_.prop,le)){this.checkForWarning(X,_);_.cloneBefore();_.value=le}}already(_,X,ee){return _.parent.some((_=>_.prop===X&&_.value===ee))}checkForWarning(_,X){if(X.prop!=="transition-property"){return}let ee=false;let re=false;X.parent.each((_=>{if(_.type!=="decl"){return undefined}if(_.prop.indexOf("transition-")!==0){return undefined}let X=te.comma(_.value);if(_.prop==="transition-property"){X.forEach((_=>{let X=this.prefixes.add[_];if(X&&X.prefixes&&X.prefixes.length>0){ee=true}}));return undefined}re=re||X.length>1;return false}));if(ee&&re){X.warn(_,"Replace transition-property to transition, "+"because Autoprefixer could not support "+"any cases of transition-property "+"and other transition-*")}}cleanFromUnprefixed(_,X){let ee=_.map((_=>this.findProp(_))).filter((_=>_.slice(0,X.length)===X)).map((_=>this.prefixes.unprefixed(_)));let te=[];for(let re of _){let _=this.findProp(re);let se=ne.prefix(_);if(!ee.includes(_)&&(se===X||se==="")){te.push(re)}}return te}cleanOtherPrefixes(_,X){return _.filter((_=>{let ee=ne.prefix(this.findProp(_));return ee===""||ee===X}))}clone(_,X,ee){let te=[];let re=false;for(let se of ee){if(!re&&se.type==="word"&&se.value===_){te.push({type:"word",value:X});re=true}else{te.push(se)}}return te}cloneBefore(_,X,ee){if(!this.already(_,X,ee)){_.cloneBefore({prop:X,value:ee})}}disabled(_,X){let ee=["order","justify-content","align-self","align-content"];if(_.includes("flex")||ee.includes(_)){if(this.prefixes.options.flexbox===false){return true}if(this.prefixes.options.flexbox==="no-2009"){return X.includes("2009")}}return undefined}div(_){for(let X of _){for(let _ of X){if(_.type==="div"&&_.value===","){return _}}}return{after:" ",type:"div",value:","}}findProp(_){let X=_[0].value;if(/^\d/.test(X)){for(let[X,ee]of _.entries()){if(X!==0&&ee.type==="word"){return ee.value}}}return X}parse(_){let X=re(_);let ee=[];let te=[];for(let _ of X.nodes){te.push(_);if(_.type==="div"&&_.value===","){ee.push(te);te=[]}}ee.push(te);return ee.filter((_=>_.length>0))}remove(_){let X=this.parse(_.value);X=X.filter((_=>{let X=this.prefixes.remove[this.findProp(_)];return!X||!X.remove}));let ee=this.stringify(X);if(_.value===ee){return}if(X.length===0){_.remove();return}let te=_.parent.some((X=>X.prop===_.prop&&X.value===ee));let re=_.parent.some((X=>X!==_&&X.prop===_.prop&&X.value.length>ee.length));if(te||re){_.remove();return}_.value=ee}ruleVendorPrefixes(_){let{parent:X}=_;if(X.type!=="rule"){return false}else if(!X.selector.includes(":-")){return false}let ee=se.prefixes().filter((_=>X.selector.includes(":"+_)));return ee.length>0?ee:false}stringify(_){if(_.length===0){return""}let X=[];for(let ee of _){if(ee[ee.length-1].type!=="div"){ee.push(this.div(_))}X=X.concat(ee)}if(X[0].type==="div"){X=X.slice(1)}if(X[X.length-1].type==="div"){X=X.slice(0,+-2+1||0)}return re.stringify({nodes:X})}}_.exports=Transition},3640:(_,X,ee)=>{let{list:te}=ee(977);_.exports.error=function(_){let X=new Error(_);X.autoprefixer=true;throw X};_.exports.uniq=function(_){return[...new Set(_)]};_.exports.removeNote=function(_){if(!_.includes(" ")){return _}return _.split(" ")[0]};_.exports.escapeRegexp=function(_){return _.replace(/[$()*+-.?[\\\]^{|}]/g,"\\$&")};_.exports.regexp=function(_,X=true){if(X){_=this.escapeRegexp(_)}return new RegExp(`(^|[\\s,(])(${_}($|[\\s(,]))`,"gi")};_.exports.editList=function(_,X){let ee=te.comma(_);let re=X(ee,[]);if(ee===re){return _}let se=_.match(/,\s*/);se=se?se[0]:", ";return re.join(se)};_.exports.splitSelector=function(_){return te.comma(_).map((_=>te.space(_).map((_=>_.split(/(?=\.|#)/g)))))};_.exports.isPureNumber=function(_){if(typeof _==="number"){return true}if(typeof _==="string"){return/^[0-9]+$/.test(_)}return false}},2120:(_,X,ee)=>{let te=ee(2536);let re=ee(1683);let se=ee(3640);let ne=ee(9438);class Value extends re{static save(_,X){let ee=X.prop;let te=[];for(let re in X._autoprefixerValues){let se=X._autoprefixerValues[re];if(se===X.value){continue}let ie;let oe=ne.prefix(ee);if(oe==="-pie-"){continue}if(oe===re){ie=X.value=se;te.push(ie);continue}let ae=_.prefixed(ee,re);let le=X.parent;if(!le.every((_=>_.prop!==ae))){te.push(ie);continue}let ue=se.replace(/\s+/," ");let ce=le.some((_=>_.prop===X.prop&&_.value.replace(/\s+/," ")===ue));if(ce){te.push(ie);continue}let pe=this.clone(X,{value:se});ie=X.parent.insertBefore(X,pe);te.push(ie)}return te}add(_,X){if(!_._autoprefixerValues){_._autoprefixerValues={}}let ee=_._autoprefixerValues[X]||this.value(_);let te;do{te=ee;ee=this.replace(ee,X);if(ee===false)return}while(ee!==te);_._autoprefixerValues[X]=ee}check(_){let X=_.value;if(!X.includes(this.name)){return false}return!!X.match(this.regexp())}old(_){return new te(this.name,_+this.name)}regexp(){return this.regexpCache||(this.regexpCache=se.regexp(this.name))}replace(_,X){return _.replace(this.regexp(),`$1${X}$2`)}value(_){if(_.raws.value&&_.raws.value.value===_.value){return _.raws.value.raw}else{return _.value}}}_.exports=Value},9438:_=>{_.exports={prefix(_){let X=_.match(/^(-\w+-)/);if(X){return X[0]}return""},unprefixed(_){return _.replace(/^-\w+-/,"")}}},4442:_=>{"use strict";_.exports=balanced;function balanced(_,X,ee){if(_ instanceof RegExp)_=maybeMatch(_,ee);if(X instanceof RegExp)X=maybeMatch(X,ee);var te=range(_,X,ee);return te&&{start:te[0],end:te[1],pre:ee.slice(0,te[0]),body:ee.slice(te[0]+_.length,te[1]),post:ee.slice(te[1]+X.length)}}function maybeMatch(_,X){var ee=X.match(_);return ee?ee[0]:null}balanced.range=range;function range(_,X,ee){var te,re,se,ne,ie;var oe=ee.indexOf(_);var ae=ee.indexOf(X,oe+1);var le=oe;if(oe>=0&&ae>0){te=[];se=ee.length;while(le>=0&&!ie){if(le==oe){te.push(le);oe=ee.indexOf(_,le+1)}else if(te.length==1){ie=[te.pop(),ae]}else{re=te.pop();if(re=0?oe:ae}if(te.length){ie=[se,ne]}}return ie}},441:_=>{"use strict"; +/*! https://mths.be/cssesc v3.0.0 by @mathias */var X={};var ee=X.hasOwnProperty;var te=function merge(_,X){if(!_){return X}var te={};for(var re in X){te[re]=ee.call(_,re)?_[re]:X[re]}return te};var re=/[ -,\.\/:-@\[-\^`\{-~]/;var se=/[ -,\.\/:-@\[\]\^`\{-~]/;var ne=/['"\\]/;var ie=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var oe=function cssesc(_,X){X=te(X,cssesc.options);if(X.quotes!="single"&&X.quotes!="double"){X.quotes="single"}var ee=X.quotes=="double"?'"':"'";var ne=X.isIdentifier;var oe=_.charAt(0);var ae="";var le=0;var ue=_.length;while(le126){if(pe>=55296&&pe<=56319&&le{"use strict";_.exports={wrap:wrapRange,limit:limitRange,validate:validateRange,test:testRange,curry:curry,name:name};function wrapRange(_,X,ee){var te=X-_;return((ee-_)%te+te)%te+_}function limitRange(_,X,ee){return Math.max(_,Math.min(X,ee))}function validateRange(_,X,ee,te,re){if(!testRange(_,X,ee,te,re)){throw new Error(ee+" is outside of range ["+_+","+X+")")}return ee}function testRange(_,X,ee,te,re){return!(ee<_||ee>X||re&&ee===X||te&&ee===_)}function name(_,X,ee,te){return(ee?"(":"[")+_+","+X+(te?")":"]")}function curry(_,X,ee,te){var re=name.bind(null,_,X,ee,te);return{wrap:wrapRange.bind(null,_,X),limit:limitRange.bind(null,_,X),validate:function(re){return validateRange(_,X,re,ee,te)},test:function(re){return testRange(_,X,re,ee,te)},toString:re,name:re}}},5701:_=>{let X=process||{},ee=X.argv||[],te=X.env||{};let re=!(!!te.NO_COLOR||ee.includes("--no-color"))&&(!!te.FORCE_COLOR||ee.includes("--color")||X.platform==="win32"||(X.stdout||{}).isTTY&&te.TERM!=="dumb"||!!te.CI);let formatter=(_,X,ee=_)=>te=>{let re=""+te,se=re.indexOf(X,_.length);return~se?_+replaceClose(re,X,ee,se)+X:_+re+X};let replaceClose=(_,X,ee,te)=>{let re="",se=0;do{re+=_.substring(se,te)+ee;se=te+X.length;te=_.indexOf(X,se)}while(~te);return re+_.substring(se)};let createColors=(_=re)=>{let X=_?formatter:()=>String;return{isColorSupported:_,reset:X("",""),bold:X("","",""),dim:X("","",""),italic:X("",""),underline:X("",""),inverse:X("",""),hidden:X("",""),strikethrough:X("",""),black:X("",""),red:X("",""),green:X("",""),yellow:X("",""),blue:X("",""),magenta:X("",""),cyan:X("",""),white:X("",""),gray:X("",""),bgBlack:X("",""),bgRed:X("",""),bgGreen:X("",""),bgYellow:X("",""),bgBlue:X("",""),bgMagenta:X("",""),bgCyan:X("",""),bgWhite:X("",""),blackBright:X("",""),redBright:X("",""),greenBright:X("",""),yellowBright:X("",""),blueBright:X("",""),magentaBright:X("",""),cyanBright:X("",""),whiteBright:X("",""),bgBlackBright:X("",""),bgRedBright:X("",""),bgGreenBright:X("",""),bgYellowBright:X("",""),bgBlueBright:X("",""),bgMagentaBright:X("",""),bgCyanBright:X("",""),bgWhiteBright:X("","")}};_.exports=createColors();_.exports.createColors=createColors},4738:(_,X,ee)=>{const te=ee(6206);function nodeIsInsensitiveAttribute(_){return _.type==="attribute"&&_.insensitive}function selectorHasInsensitiveAttribute(_){return _.some(nodeIsInsensitiveAttribute)}function transformString(_,X,ee){const te=ee.charAt(X);if(te===""){return _}let re=_.map((_=>_+te));const se=te.toLocaleUpperCase();if(se!==te){re=re.concat(_.map((_=>_+se)))}return transformString(re,X+1,ee)}function createSensitiveAtributes(_){const X=transformString([""],0,_.value);return X.map((X=>{const ee=_.clone({spaces:{after:_.spaces.after,before:_.spaces.before},insensitive:false});ee.setValue(X);return ee}))}function createNewSelectors(_){let X=[te.selector()];_.walk((_=>{if(!nodeIsInsensitiveAttribute(_)){X.forEach((X=>{X.append(_.clone())}));return}const ee=createSensitiveAtributes(_);const te=[];ee.forEach((_=>{X.forEach((X=>{const ee=X.clone();ee.append(_);te.push(ee)}))}));X=te}));return X}function transform(_){let X=[];_.each((_=>{if(selectorHasInsensitiveAttribute(_)){X=X.concat(createNewSelectors(_));_.remove()}}));if(X.length){X.forEach((X=>_.append(X)))}}const re=/i(\s*\/\*[\W\w]*?\*\/)*\s*\]/;_.exports=()=>({postcssPlugin:"postcss-attribute-case-insensitive",Rule(_){if(re.test(_.selector)){_.selector=te(transform).processSync(_.selector)}}});_.exports.postcss=true},8924:(_,X,ee)=>{let te=ee(2045);function parseValue(_){let X=_.match(/([\d.-]+)(.*)/);if(!X||!X[1]||!X[2]||isNaN(X[1])){return undefined}return[parseFloat(X[1]),X[2]]}function compose(_,X,ee){if(_&&X&&ee){return`max(${_}, min(${X}, ${ee}))`}if(_&&X){return`max(${_}, ${X})`}return _}function updateValue(_,X,ee){let re=X;let se=te(X);let ne=te(_.value);let ie=false;ne.walk(((_,X,ee)=>{let te=_.type==="function"&&_.value==="clamp";if(!te||ie){return}ie=true;ee[X]=se}));if(ie){re=ne.toString()}if(ee){_.cloneBefore({value:re})}else{_.value=re}}_.exports=_=>{_=_||{};let X=_.precalculate?Boolean(_.precalculate):false;let ee=_.preserve?Boolean(_.preserve):false;return{postcssPlugin:"postcss-clamp",Declaration(_){if(!_||!_.value.includes("clamp")){return}te(_.value).walk((re=>{let se=re.nodes;if(re.type!=="function"||re.value!=="clamp"||se.length!==5){return}let ne=se[0];let ie=se[2];let oe=se[4];let ae=compose(te.stringify(ne),te.stringify(ie),te.stringify(oe));if(!X||ie.type!=="word"||oe.type!=="word"){updateValue(_,ae,ee);return}let le=parseValue(ie.value);let ue=parseValue(oe.value);if(le===undefined||ue===undefined){updateValue(_,ae,ee);return}let[ce,pe]=le;let[fe,de]=ue;if(pe!==de){updateValue(_,ae,ee);return}let he=parseValue(ne.value);if(he===undefined){let X=`${ce+fe}${pe}`;updateValue(_,compose(te.stringify(ne),X),ee);return}let[me,ge]=he;if(ge!==pe){let X=`${ce+fe}${pe}`;updateValue(_,compose(te.stringify(ne),X),ee);return}updateValue(_,compose(`${me+ce+fe}${pe}`),ee)}))}}};_.exports.postcss=true},8432:(_,X,ee)=>{"use strict";var te=ee(7147);var re=ee(1017);var se=ee(977);function _interopDefaultLegacy(_){return _&&typeof _==="object"&&"default"in _?_:{default:_}}function _interopNamespace(_){if(_&&_.__esModule)return _;var X=Object.create(null);if(_){Object.keys(_).forEach((function(ee){if(ee!=="default"){var te=Object.getOwnPropertyDescriptor(_,ee);Object.defineProperty(X,ee,te.get?te:{enumerable:true,get:function(){return _[ee]}})}}))}X["default"]=_;return Object.freeze(X)}var ne=_interopDefaultLegacy(te);var ie=_interopDefaultLegacy(re);function parse(_,X){const ee=[];let te="";let re=false;let se=0;let ne=-1;while(++ne<_.length){const ie=_[ne];if(ie==="("){se+=1}else if(ie===")"){if(se>0){se-=1}}else if(se===0){if(X&&de.test(te+ie)){re=true}else if(!X&&ie===","){re=true}}if(re){ee.push(X?new MediaExpression(te+ie):new MediaQuery(te));te="";re=false}else{te+=ie}}if(te!==""){ee.push(X?new MediaExpression(te):new MediaQuery(te))}return ee}class MediaQueryList{constructor(_){this.nodes=parse(_)}invert(){this.nodes.forEach((_=>{_.invert()}));return this}clone(){return new MediaQueryList(String(this))}toString(){return this.nodes.join(",")}}class MediaQuery{constructor(_){const[,X,ee,te]=_.match(he);const[,re="",se=" ",ne="",ie="",oe="",ae="",le="",ue=""]=ee.match(me)||[];const ce={before:X,after:te,afterModifier:se,originalModifier:re||"",beforeAnd:ie,and:oe,beforeExpression:ae};const pe=parse(le||ue,true);Object.assign(this,{modifier:re,type:ne,raws:ce,nodes:pe})}clone(_){const X=new MediaQuery(String(this));Object.assign(X,_);return X}invert(){this.modifier=this.modifier?"":this.raws.originalModifier;return this}toString(){const{raws:_}=this;return`${_.before}${this.modifier}${this.modifier?`${_.afterModifier}`:""}${this.type}${_.beforeAnd}${_.and}${_.beforeExpression}${this.nodes.join("")}${this.raws.after}`}}class MediaExpression{constructor(_){const[,X,ee="",te="",re=""]=_.match(de)||[null,_];const se={after:ee,and:te,afterAnd:re};Object.assign(this,{value:X,raws:se})}clone(_){const X=new MediaExpression(String(this));Object.assign(X,_);return X}toString(){const{raws:_}=this;return`${this.value}${_.after}${_.and}${_.afterAnd}`}}const oe="(not|only)";const ae="(all|print|screen|speech)";const le="([\\W\\w]*)";const ue="([\\W\\w]+)";const ce="(\\s*)";const pe="(\\s+)";const fe="(?:(\\s+)(and))";const de=new RegExp(`^${ue}(?:${fe}${pe})$`,"i");const he=new RegExp(`^${ce}${le}${ce}$`);const me=new RegExp(`^(?:${oe}${pe})?(?:${ae}(?:${fe}${pe}${ue})?|${ue})$`,"i");var mediaASTFromString=_=>new MediaQueryList(_);var getCustomMediaFromRoot=(_,X)=>{const ee={};_.nodes.slice().forEach((_=>{if(isCustomMedia(_)){const[,te,re]=_.params.match(be);ee[te]=mediaASTFromString(re);if(!Object(X).preserve){_.remove()}}}));return ee};const ge=/^custom-media$/i;const be=/^(--[A-z][\w-]*)\s+([\W\w]+)\s*$/;const isCustomMedia=_=>_.type==="atrule"&&ge.test(_.name)&&be.test(_.params);async function getCustomMediaFromCSSFile(_){const X=await readFile(_);const ee=se.parse(X,{from:_});return getCustomMediaFromRoot(ee,{preserve:true})}function getCustomMediaFromObject(_){const X=Object.assign({},Object(_).customMedia,Object(_)["custom-media"]);for(const _ in X){X[_]=mediaASTFromString(X[_])}return X}async function getCustomMediaFromJSONFile(_){const X=await readJSON(_);return getCustomMediaFromObject(X)}async function getCustomMediaFromJSFile(_){const X=await Promise.resolve().then((function(){return _interopNamespace(require(_))}));return getCustomMediaFromObject(X)}function getCustomMediaFromSources(_){return _.map((_=>{if(_ instanceof Promise){return _}else if(_ instanceof Function){return _()}const X=_===Object(_)?_:{from:String(_)};if(Object(X).customMedia||Object(X)["custom-media"]){return X}const ee=ie["default"].resolve(String(X.from||""));const te=(X.type||ie["default"].extname(ee).slice(1)).toLowerCase();return{type:te,from:ee}})).reduce((async(_,X)=>{const{type:ee,from:te}=await X;if(ee==="css"||ee==="pcss"){return Object.assign(await _,await getCustomMediaFromCSSFile(te))}if(ee==="js"){return Object.assign(await _,await getCustomMediaFromJSFile(te))}if(ee==="json"){return Object.assign(await _,await getCustomMediaFromJSONFile(te))}return Object.assign(await _,getCustomMediaFromObject(await X))}),{})}const readFile=_=>new Promise(((X,ee)=>{ne["default"].readFile(_,"utf8",((_,te)=>{if(_){ee(_)}else{X(te)}}))}));const readJSON=async _=>JSON.parse(await readFile(_));function transformMediaList(_,X){let ee=_.nodes.length-1;while(ee>=0){const te=transformMedia(_.nodes[ee],X);if(te.length){_.nodes.splice(ee,1,...te)}--ee}return _}function transformMedia(_,X){const ee=[];for(const te in _.nodes){const{value:re,nodes:se}=_.nodes[te];const ne=re.replace(ve,"$1");if(ne in X){for(const re of X[ne].nodes){const se=_.modifier!==re.modifier?_.modifier||re.modifier:"";const ie=_.clone({modifier:se,raws:!se||_.modifier?{..._.raws}:{...re.raws},type:_.type||re.type});if(ie.type===re.type){Object.assign(ie.raws,{and:re.raws.and,beforeAnd:re.raws.beforeAnd,beforeExpression:re.raws.beforeExpression})}ie.nodes.splice(te,1,...re.clone().nodes.map((X=>{if(_.nodes[te].raws.and){X.raws={..._.nodes[te].raws}}X.spaces={..._.nodes[te].spaces};return X})));const oe=getCustomMediasWithoutKey(X,ne);const ae=transformMedia(ie,oe);if(ae.length){ee.push(...ae)}else{ee.push(ie)}}return ee}else if(se&&se.length){transformMediaList(_.nodes[te],X)}}return ee}const ve=/\((--[A-z][\w-]*)\)/;const getCustomMediasWithoutKey=(_,X)=>{const ee=Object.assign({},_);delete ee[X];return ee};var transformAtrules=(_,X,ee)=>{_.walkAtRules(ye,(_=>{if(we.test(_.params)){const te=mediaASTFromString(_.params);const re=String(transformMediaList(te,X));if(ee.preserve){_.cloneBefore({params:re})}else{_.params=re}}}))};const ye=/^media$/i;const we=/\(--[A-z][\w-]*\)/;async function writeCustomMediaToCssFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`@custom-media ${ee} ${X[ee]};`);return _}),[]).join("\n");const te=`${ee}\n`;await writeFile(_,te)}async function writeCustomMediaToJsonFile(_,X){const ee=JSON.stringify({"custom-media":X},null," ");const te=`${ee}\n`;await writeFile(_,te)}async function writeCustomMediaToCjsFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`\t\t'${escapeForJS(ee)}': '${escapeForJS(X[ee])}'`);return _}),[]).join(",\n");const te=`module.exports = {\n\tcustomMedia: {\n${ee}\n\t}\n};\n`;await writeFile(_,te)}async function writeCustomMediaToMjsFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`\t'${escapeForJS(ee)}': '${escapeForJS(X[ee])}'`);return _}),[]).join(",\n");const te=`export const customMedia = {\n${ee}\n};\n`;await writeFile(_,te)}function writeCustomMediaToExports(_,X){return Promise.all(X.map((async X=>{if(X instanceof Function){await X(defaultCustomMediaToJSON(_))}else{const ee=X===Object(X)?X:{to:String(X)};const te=ee.toJSON||defaultCustomMediaToJSON;if("customMedia"in ee){ee.customMedia=te(_)}else if("custom-media"in ee){ee["custom-media"]=te(_)}else{const X=String(ee.to||"");const re=(ee.type||ie["default"].extname(X).slice(1)).toLowerCase();const se=te(_);if(re==="css"){await writeCustomMediaToCssFile(X,se)}if(re==="js"){await writeCustomMediaToCjsFile(X,se)}if(re==="json"){await writeCustomMediaToJsonFile(X,se)}if(re==="mjs"){await writeCustomMediaToMjsFile(X,se)}}}})))}const defaultCustomMediaToJSON=_=>Object.keys(_).reduce(((X,ee)=>{X[ee]=String(_[ee]);return X}),{});const writeFile=(_,X)=>new Promise(((ee,te)=>{ne["default"].writeFile(_,X,(_=>{if(_){te(_)}else{ee()}}))}));const escapeForJS=_=>_.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const creator=_=>{const X="preserve"in Object(_)?Boolean(_.preserve):false;const ee=[].concat(Object(_).importFrom||[]);const te=[].concat(Object(_).exportTo||[]);const re=getCustomMediaFromSources(ee);return{postcssPlugin:"postcss-custom-media",Once:async _=>{const ee=Object.assign(await re,getCustomMediaFromRoot(_,{preserve:X}));await writeCustomMediaToExports(ee,te);transformAtrules(_,ee,{preserve:X})}}};creator.postcss=true;_.exports=creator},8474:(_,X,ee)=>{"use strict";var te=ee(6206);var re=ee(7147);var se=ee(1017);var ne=ee(977);function _interopDefaultLegacy(_){return _&&typeof _==="object"&&"default"in _?_:{default:_}}function _interopNamespace(_){if(_&&_.__esModule)return _;var X=Object.create(null);if(_){Object.keys(_).forEach((function(ee){if(ee!=="default"){var te=Object.getOwnPropertyDescriptor(_,ee);Object.defineProperty(X,ee,te.get?te:{enumerable:true,get:function(){return _[ee]}})}}))}X["default"]=_;return Object.freeze(X)}var ie=_interopDefaultLegacy(te);var oe=_interopDefaultLegacy(re);var ae=_interopDefaultLegacy(se);var le=_interopDefaultLegacy(ne);var getSelectorsAstFromSelectorsString=_=>{let X;ie["default"]((_=>{X=_})).processSync(_);return X};var getCustomSelectors=(_,X)=>{const ee={};_.nodes.slice().forEach((_=>{if(isCustomSelector(_)){const[,te,re]=_.params.match(ce);ee[te]=getSelectorsAstFromSelectorsString(re);if(!Object(X).preserve){_.remove()}}}));return ee};const ue=/^custom-selector$/i;const ce=/^(:--[A-z][\w-]*)\s+([\W\w]+)\s*$/;const isCustomSelector=_=>_.type==="atrule"&&ue.test(_.name)&&ce.test(_.params);function transformSelectorList(_,X){let ee=_.nodes.length-1;while(ee>=0){const te=transformSelector(_.nodes[ee],X);if(te.length){_.nodes.splice(ee,1,...te)}--ee}return _}function transformSelector(_,X){const ee=[];for(const te in _.nodes){const{value:re,nodes:se}=_.nodes[te];if(re in X){for(const se of X[re].nodes){const re=_.clone();re.nodes.splice(te,1,...se.clone().nodes.map((X=>{X.spaces={..._.nodes[te].spaces};return X})));const ne=transformSelector(re,X);adjustNodesBySelectorEnds(re.nodes,Number(te));if(ne.length){ee.push(...ne)}else{ee.push(re)}}return ee}else if(se&&se.length){transformSelectorList(_.nodes[te],X)}}return ee}const pe=/^(tag|universal)$/;const fe=/^(class|id|pseudo|tag|universal)$/;const isWithoutSelectorStart=_=>pe.test(Object(_).type);const isWithoutSelectorEnd=_=>fe.test(Object(_).type);const adjustNodesBySelectorEnds=(_,X)=>{if(X&&isWithoutSelectorStart(_[X])&&isWithoutSelectorEnd(_[X-1])){let ee=X-1;while(ee&&isWithoutSelectorEnd(_[ee])){--ee}if(ee{_.walkRules(de,(_=>{const te=ie["default"]((_=>{transformSelectorList(_,X)})).processSync(_.selector);if(ee.preserve){_.cloneBefore({selector:te})}else{_.selector=te}}))};const de=/:--[A-z][\w-]*/;function importCustomSelectorsFromCSSAST(_){return getCustomSelectors(_)}async function importCustomSelectorsFromCSSFile(_){const X=await readFile(ae["default"].resolve(_));const ee=le["default"].parse(X,{from:ae["default"].resolve(_)});return importCustomSelectorsFromCSSAST(ee)}function importCustomSelectorsFromObject(_){const X=Object.assign({},Object(_).customSelectors||Object(_)["custom-selectors"]);for(const _ in X){X[_]=getSelectorsAstFromSelectorsString(X[_])}return X}async function importCustomSelectorsFromJSONFile(_){const X=await readJSON(ae["default"].resolve(_));return importCustomSelectorsFromObject(X)}async function importCustomSelectorsFromJSFile(_){const X=await Promise.resolve().then((function(){return _interopNamespace(require(ae["default"].resolve(_)))}));return importCustomSelectorsFromObject(X)}function importCustomSelectorsFromSources(_){return _.map((_=>{if(_ instanceof Promise){return _}else if(_ instanceof Function){return _()}const X=_===Object(_)?_:{from:String(_)};if(Object(X).customSelectors||Object(X)["custom-selectors"]){return X}const ee=String(X.from||"");const te=(X.type||ae["default"].extname(ee).slice(1)).toLowerCase();return{type:te,from:ee}})).reduce((async(_,X)=>{const ee=await _;const{type:te,from:re}=await X;if(te==="ast"){return Object.assign(ee,importCustomSelectorsFromCSSAST(re))}if(te==="css"){return Object.assign(ee,await importCustomSelectorsFromCSSFile(re))}if(te==="js"){return Object.assign(ee,await importCustomSelectorsFromJSFile(re))}if(te==="json"){return Object.assign(ee,await importCustomSelectorsFromJSONFile(re))}return Object.assign(ee,importCustomSelectorsFromObject(await X))}),Promise.resolve({}))}const readFile=_=>new Promise(((X,ee)=>{oe["default"].readFile(_,"utf8",((_,te)=>{if(_){ee(_)}else{X(te)}}))}));const readJSON=async _=>JSON.parse(await readFile(_));async function exportCustomSelectorsToCssFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`@custom-selector ${ee} ${X[ee]};`);return _}),[]).join("\n");const te=`${ee}\n`;await writeFile(_,te)}async function exportCustomSelectorsToJsonFile(_,X){const ee=JSON.stringify({"custom-selectors":X},null," ");const te=`${ee}\n`;await writeFile(_,te)}async function exportCustomSelectorsToCjsFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`\t\t'${escapeForJS(ee)}': '${escapeForJS(X[ee])}'`);return _}),[]).join(",\n");const te=`module.exports = {\n\tcustomSelectors: {\n${ee}\n\t}\n};\n`;await writeFile(_,te)}async function exportCustomSelectorsToMjsFile(_,X){const ee=Object.keys(X).reduce(((_,ee)=>{_.push(`\t'${escapeForJS(ee)}': '${escapeForJS(X[ee])}'`);return _}),[]).join(",\n");const te=`export const customSelectors = {\n${ee}\n};\n`;await writeFile(_,te)}function exportCustomSelectorsToDestinations(_,X){return Promise.all(X.map((async X=>{if(X instanceof Function){await X(defaultCustomSelectorsToJSON(_))}else{const ee=X===Object(X)?X:{to:String(X)};const te=ee.toJSON||defaultCustomSelectorsToJSON;if("customSelectors"in ee){ee.customSelectors=te(_)}else if("custom-selectors"in ee){ee["custom-selectors"]=te(_)}else{const X=String(ee.to||"");const re=(ee.type||ae["default"].extname(ee.to).slice(1)).toLowerCase();const se=te(_);if(re==="css"){await exportCustomSelectorsToCssFile(X,se)}if(re==="js"){await exportCustomSelectorsToCjsFile(X,se)}if(re==="json"){await exportCustomSelectorsToJsonFile(X,se)}if(re==="mjs"){await exportCustomSelectorsToMjsFile(X,se)}}}})))}const defaultCustomSelectorsToJSON=_=>Object.keys(_).reduce(((X,ee)=>{X[ee]=String(_[ee]);return X}),{});const writeFile=(_,X)=>new Promise(((ee,te)=>{oe["default"].writeFile(_,X,(_=>{if(_){te(_)}else{ee()}}))}));const escapeForJS=_=>_.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const postcssCustomSelectors=_=>{const X=Boolean(Object(_).preserve);const ee=[].concat(Object(_).importFrom||[]);const te=[].concat(Object(_).exportTo||[]);const re=importCustomSelectorsFromSources(ee);return{postcssPlugin:"postcss-custom-selectors",async Once(_){const ee=Object.assign({},await re,getCustomSelectors(_,{preserve:X}));await exportCustomSelectorsToDestinations(ee,te);transformRules(_,ee,{preserve:X})}}};postcssCustomSelectors.postcss=true;_.exports=postcssCustomSelectors},8650:_=>{const X={"font-variant-ligatures":{"common-ligatures":'"liga", "clig"',"no-common-ligatures":'"liga", "clig off"',"discretionary-ligatures":'"dlig"',"no-discretionary-ligatures":'"dlig" off',"historical-ligatures":'"hlig"',"no-historical-ligatures":'"hlig" off',contextual:'"calt"',"no-contextual":'"calt" off'},"font-variant-position":{sub:'"subs"',super:'"sups"',normal:'"subs" off, "sups" off'},"font-variant-caps":{"small-caps":'"smcp"',"all-small-caps":'"smcp", "c2sc"',"petite-caps":'"pcap"',"all-petite-caps":'"pcap", "c2pc"',unicase:'"unic"',"titling-caps":'"titl"'},"font-variant-numeric":{"lining-nums":'"lnum"',"oldstyle-nums":'"onum"',"proportional-nums":'"pnum"',"tabular-nums":'"tnum"',"diagonal-fractions":'"frac"',"stacked-fractions":'"afrc"',ordinal:'"ordn"',"slashed-zero":'"zero"'},"font-kerning":{normal:'"kern"',none:'"kern" off'},"font-variant":{normal:"normal",inherit:"inherit"}};for(const _ in X){const ee=X[_];for(const _ in ee){if(!(_ in X["font-variant"])){X["font-variant"][_]=ee[_]}}}function getFontFeatureSettingsPrevTo(_){let X=null;_.parent.walkDecls((_=>{if(_.prop==="font-feature-settings"){X=_}}));if(X===null){X=_.clone();X.prop="font-feature-settings";X.value="";_.parent.insertBefore(_,X)}return X}function walkRule(_){let ee=null;_.walkDecls((_=>{if(!X[_.prop]){return null}let te=_.value;if(_.prop==="font-variant"){te=_.value.split(/\s+/g).map((_=>X["font-variant"][_])).join(", ")}else if(X[_.prop][_.value]){te=X[_.prop][_.value]}if(ee===null){ee=getFontFeatureSettingsPrevTo(_)}if(ee.value&&ee.value!==te){ee.value+=", "+te}else{ee.value=te}}))}_.exports=()=>({postcssPlugin:"postcss-font-variant",Once(_){_.walkRules(walkRule)}});_.exports.postcss=true},5276:(_,X,ee)=>{var te=ee(8277);_.exports=function postcssInitial(_){_=_||{};_.reset=_.reset||"all";_.replace=_.replace||false;var X=te(_.reset==="inherited");var getPropPrevTo=function(_,X){var ee=false;X.parent.walkDecls((function(_){if(_.prop===X.prop&&_.value!==X.value){ee=true}}));return ee};return{postcssPlugin:"postcss-initial",Declaration:function(ee){if(!/\binitial\b/.test(ee.value)){return}var te=X(ee.prop,ee.value);if(te.length===0)return;te.forEach((function(_){if(!getPropPrevTo(ee.prop,ee)){ee.cloneBefore(_)}}));if(_.replace===true){ee.remove()}}}};_.exports.postcss=true},8277:(_,X,ee)=>{var te=ee(1859);function template(_,X){return _.replace(/\$\{([\w\-\.]*)\}/g,(function(_,ee){var te=X[ee];return typeof te!=="undefined"&&te!==null?te:""}))}function _getRulesMap(_){return _.filter((function(_){return!_.combined})).reduce((function(_,X){_[X.prop.replace(/\-/g,"")]=X.initial;return _}),{})}function _compileDecls(_){var X=_getRulesMap(_);return _.map((function(_){if(_.combined&&_.initial){_.initial=template(_.initial.replace(/\-/g,""),X)}return _}))}function _getRequirements(_){return _.reduce((function(_,X){if(!X.contains)return _;return X.contains.reduce((function(_,ee){_[ee]=X;return _}),_)}),{})}function _expandContainments(_){var X=_getRequirements(_);return _.filter((function(_){return!_.contains})).map((function(_){var ee=X[_.prop];if(ee){_.requiredBy=ee.prop;_.basic=_.basic||ee.basic;_.inherited=_.inherited||ee.inherited}return _}))}var re=_expandContainments(_compileDecls(te));function _clearDecls(_,X){return _.map((function(_){return{prop:_.prop,value:X.replace(/\binitial\b/g,_.initial)}}))}function _allDecls(_){return re.filter((function(X){var ee=X.combined||X.basic;if(_)return ee&&X.inherited;return ee}))}function _concreteDecl(_){return re.filter((function(X){return _===X.prop||_===X.requiredBy}))}function makeFallbackFunction(_){return function(X,ee){var te;if(X==="all"){te=_allDecls(_)}else{te=_concreteDecl(X)}return _clearDecls(te,ee)}}_.exports=makeFallbackFunction},7362:_=>{const X={width:"px",height:"px","device-width":"px","device-height":"px","aspect-ratio":"","device-aspect-ratio":"",color:"","color-index":"",monochrome:"",resolution:"dpi"};const ee=Object.keys(X);const te=.001;const re={">":1,"<":-1};const se={">":"min","<":"max"};function create_query(_,ee,ne,ie){return ie.replace(/([-\d\.]+)(.*)/,(function(ie,oe,ae){const le=parseFloat(oe);if(parseFloat(oe)||ne){if(!ne){if(ae==="px"&&le===parseInt(oe,10)){oe=le+re[ee]}else{oe=Number(Math.round(parseFloat(oe)+te*re[ee]+"e6")+"e-6")}}}else{oe=re[ee]+X[_]}return"("+se[ee]+"-"+_+": "+oe+ae+")"}))}function transform(_){if(!_.params.includes("<")&&!_.params.includes(">")){return}_.params=_.params.replace(/\(\s*([a-z-]+?)\s*([<>])(=?)\s*((?:-?\d*\.?(?:\s*\/?\s*)?\d+[a-z]*)?)\s*\)/gi,(function(_,X,te,re,se){if(ee.indexOf(X)>-1){return create_query(X,te,re,se)}return _}));_.params=_.params.replace(/\(\s*((?:-?\d*\.?(?:\s*\/?\s*)?\d+[a-z]*)?)\s*(<|>)(=?)\s*([a-z-]+)\s*(<|>)(=?)\s*((?:-?\d*\.?(?:\s*\/?\s*)?\d+[a-z]*)?)\s*\)/gi,(function(_,X,te,re,se,ne,ie,oe){if(ee.indexOf(se)>-1){if(te==="<"&&ne==="<"||te===">"&&ne===">"){const _=te==="<"?X:oe;const ee=te==="<"?oe:X;let ne=re;let ae=ie;if(te===">"){ne=ie;ae=re}return create_query(se,">",ne,_)+" and "+create_query(se,"<",ae,ee)}}return _}))}_.exports=()=>({postcssPlugin:"postcss-media-minmax",AtRule:{media:_=>{transform(_)},"custom-media":_=>{transform(_)}}});_.exports.postcss=true},4658:_=>{const X=new Set(["inherit","initial","revert","unset"]);_.exports=({preserve:_=false}={})=>({postcssPlugin:"postcss-opacity-percentage",Declaration:{opacity:ee=>{if(!ee.value||ee.value.startsWith("var(")||!ee.value.endsWith("%")||X.has(ee.value)){return}ee.cloneBefore({value:String(Number.parseFloat(ee.value)/100)});if(!_){ee.remove()}}}});_.exports.postcss=true},8723:_=>{_.exports=function(_){return{postcssPlugin:"postcss-page-break",Declaration(_){if(_.prop.startsWith("break-")&&/^break-(inside|before|after)/.test(_.prop)){if(_.value.search(/column|region/)>=0){return}let X;switch(_.value){case"page":X="always";break;case"avoid-page":X="avoid";break;default:X=_.value}const ee="page-"+_.prop;if(_.parent.every((_=>_.prop!==ee))){_.cloneBefore({prop:ee,value:X})}}}}};_.exports.postcss=true},8544:_=>{_.exports=function(_){_=_||{};var X=_.method||"replace";return{postcssPlugin:"postcss-replace-overflow-wrap",Declaration:{"overflow-wrap":_=>{_.cloneBefore({prop:"word-wrap"});if(X==="replace"){_.remove()}}}}};_.exports.postcss=true},5505:(_,X,ee)=>{"use strict";Object.defineProperty(X,"__esModule",{value:true});X["default"]=void 0;var te=_interopRequireDefault(ee(1343));var re=_interopRequireDefault(ee(4442));function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function explodeSelector(_,X){const ee=locatePseudoClass(X,_);if(X&&ee>-1){const se=X.slice(0,ee);const ne=(0,re.default)("(",")",X.slice(ee));if(!ne){return X}const ie=ne.body?te.default.comma(ne.body).map((X=>explodeSelector(_,X))).join(`)${_}(`):"";const oe=ne.post?explodeSelector(_,ne.post):"";return`${se}${_}(${ie})${oe}`}return X}const se={};function locatePseudoClass(_,X){se[X]=se[X]||new RegExp(`([^\\\\]|^)${X}`);const ee=se[X];const te=_.search(ee);if(te===-1){return-1}return te+_.slice(te).indexOf(X)}function explodeSelectors(_){return()=>({postcssPlugin:"postcss-selector-not",Rule:X=>{if(X.selector&&X.selector.indexOf(_)>-1){X.selector=explodeSelector(_,X.selector)}}})}const ne=explodeSelectors(":not");ne.postcss=true;var ie=ne;X["default"]=ie},6206:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(6440));var re=_interopRequireWildcard(ee(7759));function _getRequireWildcardCache(_){if(typeof WeakMap!=="function")return null;var X=new WeakMap;var ee=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(_){return _?ee:X})(_)}function _interopRequireWildcard(_,X){if(!X&&_&&_.__esModule){return _}if(_===null||typeof _!=="object"&&typeof _!=="function"){return{default:_}}var ee=_getRequireWildcardCache(X);if(ee&&ee.has(_)){return ee.get(_)}var te={};var re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in _){if(se!=="default"&&Object.prototype.hasOwnProperty.call(_,se)){var ne=re?Object.getOwnPropertyDescriptor(_,se):null;if(ne&&(ne.get||ne.set)){Object.defineProperty(te,se,ne)}else{te[se]=_[se]}}}te["default"]=_;if(ee){ee.set(_,te)}return te}function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}var se=function parser(_){return new te["default"](_)};Object.assign(se,re);delete se.__esModule;var ne=se;X["default"]=ne;_.exports=X.default},5838:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(7774));var re=_interopRequireDefault(ee(372));var se=_interopRequireDefault(ee(7113));var ne=_interopRequireDefault(ee(6723));var ie=_interopRequireDefault(ee(8362));var oe=_interopRequireDefault(ee(4088));var ae=_interopRequireDefault(ee(4931));var le=_interopRequireDefault(ee(9573));var ue=_interopRequireWildcard(ee(4910));var ce=_interopRequireDefault(ee(2767));var pe=_interopRequireDefault(ee(7805));var fe=_interopRequireDefault(ee(7066));var de=_interopRequireDefault(ee(866));var he=_interopRequireWildcard(ee(9668));var me=_interopRequireWildcard(ee(6004));var ge=_interopRequireWildcard(ee(7105));var be=ee(4371);var ve,ye;function _getRequireWildcardCache(_){if(typeof WeakMap!=="function")return null;var X=new WeakMap;var ee=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(_){return _?ee:X})(_)}function _interopRequireWildcard(_,X){if(!X&&_&&_.__esModule){return _}if(_===null||typeof _!=="object"&&typeof _!=="function"){return{default:_}}var ee=_getRequireWildcardCache(X);if(ee&&ee.has(_)){return ee.get(_)}var te={};var re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in _){if(se!=="default"&&Object.prototype.hasOwnProperty.call(_,se)){var ne=re?Object.getOwnPropertyDescriptor(_,se):null;if(ne&&(ne.get||ne.set)){Object.defineProperty(te,se,ne)}else{te[se]=_[se]}}}te["default"]=_;if(ee){ee.set(_,te)}return te}function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee0){var te=this.current.last;if(te){var re=this.convertWhitespaceNodesToSpace(ee),se=re.space,ne=re.rawSpace;if(ne!==undefined){te.rawSpaceAfter+=ne}te.spaces.after+=se}else{ee.forEach((function(X){return _.newNode(X)}))}}return}var ie=this.currToken;var oe=undefined;if(X>this.position){oe=this.parseWhitespaceEquivalentTokens(X)}var ae;if(this.isNamedCombinator()){ae=this.namedCombinator()}else if(this.currToken[he.FIELDS.TYPE]===me.combinator){ae=new pe["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[he.FIELDS.START_POS]});this.position++}else if(we[this.currToken[he.FIELDS.TYPE]]){}else if(!oe){this.unexpected()}if(ae){if(oe){var le=this.convertWhitespaceNodesToSpace(oe),ue=le.space,ce=le.rawSpace;ae.spaces.before=ue;ae.rawSpaceBefore=ce}}else{var fe=this.convertWhitespaceNodesToSpace(oe,true),de=fe.space,ge=fe.rawSpace;if(!ge){ge=de}var be={};var ve={spaces:{}};if(de.endsWith(" ")&&ge.endsWith(" ")){be.before=de.slice(0,de.length-1);ve.spaces.before=ge.slice(0,ge.length-1)}else if(de.startsWith(" ")&&ge.startsWith(" ")){be.after=de.slice(1);ve.spaces.after=ge.slice(1)}else{ve.value=ge}ae=new pe["default"]({value:" ",source:getTokenSourceSpan(ie,this.tokens[this.position-1]),sourceIndex:ie[he.FIELDS.START_POS],spaces:be,raws:ve})}if(this.currToken&&this.currToken[he.FIELDS.TYPE]===me.space){ae.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(ae)};_.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var _=new re["default"]({source:{start:tokenStart(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][he.FIELDS.START_POS]});this.current.parent.append(_);this.current=_;this.position++};_.comment=function comment(){var _=this.currToken;this.newNode(new ne["default"]({value:this.content(),source:getTokenSource(_),sourceIndex:_[he.FIELDS.START_POS]}));this.position++};_.error=function error(_,X){throw this.root.error(_,X)};_.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[he.FIELDS.START_POS]})};_.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[he.FIELDS.START_POS])};_.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[he.FIELDS.START_POS])};_.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[he.FIELDS.START_POS])};_.unexpectedPipe=function unexpectedPipe(){return this.error("Unexpected '|'.",this.currToken[he.FIELDS.START_POS])};_.namespace=function namespace(){var _=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[he.FIELDS.TYPE]===me.word){this.position++;return this.word(_)}else if(this.nextToken[he.FIELDS.TYPE]===me.asterisk){this.position++;return this.universal(_)}this.unexpectedPipe()};_.nesting=function nesting(){if(this.nextToken){var _=this.content(this.nextToken);if(_==="|"){this.position++;return}}var X=this.currToken;this.newNode(new fe["default"]({value:this.content(),source:getTokenSource(X),sourceIndex:X[he.FIELDS.START_POS]}));this.position++};_.parentheses=function parentheses(){var _=this.current.last;var X=1;this.position++;if(_&&_.type===ge.PSEUDO){var ee=new re["default"]({source:{start:tokenStart(this.tokens[this.position])},sourceIndex:this.tokens[this.position][he.FIELDS.START_POS]});var te=this.current;_.append(ee);this.current=ee;while(this.position1&&_.nextToken&&_.nextToken[he.FIELDS.TYPE]===me.openParenthesis){_.error("Misplaced parenthesis.",{index:_.nextToken[he.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[he.FIELDS.START_POS])}};_.space=function space(){var _=this.content();if(this.position===0||this.prevToken[he.FIELDS.TYPE]===me.comma||this.prevToken[he.FIELDS.TYPE]===me.openParenthesis||this.current.nodes.every((function(_){return _.type==="comment"}))){this.spaces=this.optionalSpace(_);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[he.FIELDS.TYPE]===me.comma||this.nextToken[he.FIELDS.TYPE]===me.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(_);this.position++}else{this.combinator()}};_.string=function string(){var _=this.currToken;this.newNode(new ae["default"]({value:this.content(),source:getTokenSource(_),sourceIndex:_[he.FIELDS.START_POS]}));this.position++};_.universal=function universal(_){var X=this.nextToken;if(X&&this.content(X)==="|"){this.position++;return this.namespace()}var ee=this.currToken;this.newNode(new ce["default"]({value:this.content(),source:getTokenSource(ee),sourceIndex:ee[he.FIELDS.START_POS]}),_);this.position++};_.splitWord=function splitWord(_,X){var ee=this;var te=this.nextToken;var re=this.content();while(te&&~[me.dollar,me.caret,me.equals,me.word].indexOf(te[he.FIELDS.TYPE])){this.position++;var ne=this.content();re+=ne;if(ne.lastIndexOf("\\")===ne.length-1){var ae=this.nextToken;if(ae&&ae[he.FIELDS.TYPE]===me.space){re+=this.requiredSpace(this.content(ae));this.position++}}te=this.nextToken}var le=indexesOf(re,".").filter((function(_){var X=re[_-1]==="\\";var ee=/^\d+\.\d+%$/.test(re);return!X&&!ee}));var ue=indexesOf(re,"#").filter((function(_){return re[_-1]!=="\\"}));var ce=indexesOf(re,"#{");if(ce.length){ue=ue.filter((function(_){return!~ce.indexOf(_)}))}var pe=(0,de["default"])(uniqs([0].concat(le,ue)));pe.forEach((function(te,ne){var ae=pe[ne+1]||re.length;var ce=re.slice(te,ae);if(ne===0&&X){return X.call(ee,ce,pe.length)}var fe;var de=ee.currToken;var me=de[he.FIELDS.START_POS]+pe[ne];var ge=getSource(de[1],de[2]+te,de[3],de[2]+(ae-1));if(~le.indexOf(te)){var be={value:ce.slice(1),source:ge,sourceIndex:me};fe=new se["default"](unescapeProp(be,"value"))}else if(~ue.indexOf(te)){var ve={value:ce.slice(1),source:ge,sourceIndex:me};fe=new ie["default"](unescapeProp(ve,"value"))}else{var ye={value:ce,source:ge,sourceIndex:me};unescapeProp(ye,"value");fe=new oe["default"](ye)}ee.newNode(fe,_);_=null}));this.position++};_.word=function word(_){var X=this.nextToken;if(X&&this.content(X)==="|"){this.position++;return this.namespace()}return this.splitWord(_)};_.loop=function loop(){while(this.position{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(5838));function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}var re=function(){function Processor(_,X){this.func=_||function noop(){};this.funcRes=null;this.options=X}var _=Processor.prototype;_._shouldUpdateSelector=function _shouldUpdateSelector(_,X){if(X===void 0){X={}}var ee=Object.assign({},this.options,X);if(ee.updateSelector===false){return false}else{return typeof _!=="string"}};_._isLossy=function _isLossy(_){if(_===void 0){_={}}var X=Object.assign({},this.options,_);if(X.lossless===false){return true}else{return false}};_._root=function _root(_,X){if(X===void 0){X={}}var ee=new te["default"](_,this._parseOptions(X));return ee.root};_._parseOptions=function _parseOptions(_){return{lossy:this._isLossy(_)}};_._run=function _run(_,X){var ee=this;if(X===void 0){X={}}return new Promise((function(te,re){try{var se=ee._root(_,X);Promise.resolve(ee.func(se)).then((function(te){var re=undefined;if(ee._shouldUpdateSelector(_,X)){re=se.toString();_.selector=re}return{transform:te,root:se,string:re}})).then(te,re)}catch(_){re(_);return}}))};_._runSync=function _runSync(_,X){if(X===void 0){X={}}var ee=this._root(_,X);var te=this.func(ee);if(te&&typeof te.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var re=undefined;if(X.updateSelector&&typeof _!=="string"){re=ee.toString();_.selector=re}return{transform:te,root:ee,string:re}};_.ast=function ast(_,X){return this._run(_,X).then((function(_){return _.root}))};_.astSync=function astSync(_,X){return this._runSync(_,X).root};_.transform=function transform(_,X){return this._run(_,X).then((function(_){return _.transform}))};_.transformSync=function transformSync(_,X){return this._runSync(_,X).transform};_.process=function process(_,X){return this._run(_,X).then((function(_){return _.string||_.root.toString()}))};_.processSync=function processSync(_,X){var ee=this._runSync(_,X);return ee.string||ee.root.toString()};return Processor}();X["default"]=re;_.exports=X.default},4910:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;X.unescapeValue=unescapeValue;var te=_interopRequireDefault(ee(441));var re=_interopRequireDefault(ee(7949));var se=_interopRequireDefault(ee(2551));var ne=ee(7105);var ie;function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee0&&!_.quoted&&ee.before.length===0&&!(_.spaces.value&&_.spaces.value.after)){ee.before=" "}return defaultAttrConcat(X,ee)})))}X.push("]");X.push(this.rawSpaceAfter);return X.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var _=this.quoteMark;return _==="'"||_==='"'},set:function set(_){ue()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(_){if(!this._constructed){this._quoteMark=_;return}if(this._quoteMark!==_){this._quoteMark=_;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(_){if(this._constructed){var X=unescapeValue(_),ee=X.deprecatedUsage,te=X.unescaped,re=X.quoteMark;if(ee){le()}if(te===this._value&&re===this._quoteMark){return}this._value=te;this._quoteMark=re;this._syncRawValue()}else{this._value=_}}},{key:"insensitive",get:function get(){return this._insensitive},set:function set(_){if(!_){this._insensitive=false;if(this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")){this.raws.insensitiveFlag=undefined}}this._insensitive=_}},{key:"attribute",get:function get(){return this._attribute},set:function set(_){this._handleEscapes("attribute",_);this._attribute=_}}]);return Attribute}(se["default"]);X["default"]=pe;pe.NO_QUOTE=null;pe.SINGLE_QUOTE="'";pe.DOUBLE_QUOTE='"';var fe=(ie={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},ie[null]={isIdentifier:true},ie);function defaultAttrConcat(_,X){return""+X.before+_+X.after}},7113:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(441));var re=ee(4371);var se=_interopRequireDefault(ee(4938));var ne=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Combinator,_);function Combinator(X){var ee;ee=_.call(this,X)||this;ee.type=re.COMBINATOR;return ee}return Combinator}(te["default"]);X["default"]=se;_.exports=X.default},6723:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Comment,_);function Comment(X){var ee;ee=_.call(this,X)||this;ee.type=re.COMMENT;return ee}return Comment}(te["default"]);X["default"]=se;_.exports=X.default},9374:(_,X,ee)=>{"use strict";X.__esModule=true;X.universal=X.tag=X.string=X.selector=X.root=X.pseudo=X.nesting=X.id=X.comment=X.combinator=X.className=X.attribute=void 0;var te=_interopRequireDefault(ee(4910));var re=_interopRequireDefault(ee(7113));var se=_interopRequireDefault(ee(7805));var ne=_interopRequireDefault(ee(6723));var ie=_interopRequireDefault(ee(8362));var oe=_interopRequireDefault(ee(7066));var ae=_interopRequireDefault(ee(9573));var le=_interopRequireDefault(ee(7774));var ue=_interopRequireDefault(ee(372));var ce=_interopRequireDefault(ee(4931));var pe=_interopRequireDefault(ee(4088));var fe=_interopRequireDefault(ee(2767));function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}var de=function attribute(_){return new te["default"](_)};X.attribute=de;var he=function className(_){return new re["default"](_)};X.className=he;var me=function combinator(_){return new se["default"](_)};X.combinator=me;var ge=function comment(_){return new ne["default"](_)};X.comment=ge;var be=function id(_){return new ie["default"](_)};X.id=be;var ve=function nesting(_){return new oe["default"](_)};X.nesting=ve;var ye=function pseudo(_){return new ae["default"](_)};X.pseudo=ye;var we=function root(_){return new le["default"](_)};X.root=we;var xe=function selector(_){return new ue["default"](_)};X.selector=xe;var ke=function string(_){return new ce["default"](_)};X.string=ke;var Se=function tag(_){return new pe["default"](_)};X.tag=Se;var _e=function universal(_){return new fe["default"](_)};X.universal=_e},304:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=_interopRequireWildcard(ee(7105));function _getRequireWildcardCache(_){if(typeof WeakMap!=="function")return null;var X=new WeakMap;var ee=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(_){return _?ee:X})(_)}function _interopRequireWildcard(_,X){if(!X&&_&&_.__esModule){return _}if(_===null||typeof _!=="object"&&typeof _!=="function"){return{default:_}}var ee=_getRequireWildcardCache(X);if(ee&&ee.has(_)){return ee.get(_)}var te={};var re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in _){if(se!=="default"&&Object.prototype.hasOwnProperty.call(_,se)){var ne=re?Object.getOwnPropertyDescriptor(_,se):null;if(ne&&(ne.get||ne.set)){Object.defineProperty(te,se,ne)}else{te[se]=_[se]}}}te["default"]=_;if(ee){ee.set(_,te)}return te}function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _createForOfIteratorHelperLoose(_,X){var ee=typeof Symbol!=="undefined"&&_[Symbol.iterator]||_["@@iterator"];if(ee)return(ee=ee.call(_)).next.bind(ee);if(Array.isArray(_)||(ee=_unsupportedIterableToArray(_))||X&&_&&typeof _.length==="number"){if(ee)_=ee;var te=0;return function(){if(te>=_.length)return{done:true};return{done:false,value:_[te++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(_,X){if(!_)return;if(typeof _==="string")return _arrayLikeToArray(_,X);var ee=Object.prototype.toString.call(_).slice(8,-1);if(ee==="Object"&&_.constructor)ee=_.constructor.name;if(ee==="Map"||ee==="Set")return Array.from(_);if(ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee))return _arrayLikeToArray(_,X)}function _arrayLikeToArray(_,X){if(X==null||X>_.length)X=_.length;for(var ee=0,te=new Array(X);ee=_){this.indexes[ee]=X-1}}return this};X.removeAll=function removeAll(){for(var _=_createForOfIteratorHelperLoose(this.nodes),X;!(X=_()).done;){var ee=X.value;ee.parent=undefined}this.nodes=[];return this};X.empty=function empty(){return this.removeAll()};X.insertAfter=function insertAfter(_,X){X.parent=this;var ee=this.index(_);this.nodes.splice(ee+1,0,X);X.parent=this;var te;for(var re in this.indexes){te=this.indexes[re];if(ee<=te){this.indexes[re]=te+1}}return this};X.insertBefore=function insertBefore(_,X){X.parent=this;var ee=this.index(_);this.nodes.splice(ee,0,X);X.parent=this;var te;for(var re in this.indexes){te=this.indexes[re];if(te<=ee){this.indexes[re]=te+1}}return this};X._findChildAtPosition=function _findChildAtPosition(_,X){var ee=undefined;this.each((function(te){if(te.atPosition){var re=te.atPosition(_,X);if(re){ee=re;return false}}else if(te.isAtPosition(_,X)){ee=te;return false}}));return ee};X.atPosition=function atPosition(_,X){if(this.isAtPosition(_,X)){return this._findChildAtPosition(_,X)||this}else{return undefined}};X._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};X.each=function each(_){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var X=this.lastEach;this.indexes[X]=0;if(!this.length){return undefined}var ee,te;while(this.indexes[X]{"use strict";X.__esModule=true;X.isComment=X.isCombinator=X.isClassName=X.isAttribute=void 0;X.isContainer=isContainer;X.isIdentifier=void 0;X.isNamespace=isNamespace;X.isNesting=void 0;X.isNode=isNode;X.isPseudo=void 0;X.isPseudoClass=isPseudoClass;X.isPseudoElement=isPseudoElement;X.isUniversal=X.isTag=X.isString=X.isSelector=X.isRoot=void 0;var te=ee(7105);var re;var se=(re={},re[te.ATTRIBUTE]=true,re[te.CLASS]=true,re[te.COMBINATOR]=true,re[te.COMMENT]=true,re[te.ID]=true,re[te.NESTING]=true,re[te.PSEUDO]=true,re[te.ROOT]=true,re[te.SELECTOR]=true,re[te.STRING]=true,re[te.TAG]=true,re[te.UNIVERSAL]=true,re);function isNode(_){return typeof _==="object"&&se[_.type]}function isNodeType(_,X){return isNode(X)&&X.type===_}var ne=isNodeType.bind(null,te.ATTRIBUTE);X.isAttribute=ne;var ie=isNodeType.bind(null,te.CLASS);X.isClassName=ie;var oe=isNodeType.bind(null,te.COMBINATOR);X.isCombinator=oe;var ae=isNodeType.bind(null,te.COMMENT);X.isComment=ae;var le=isNodeType.bind(null,te.ID);X.isIdentifier=le;var ue=isNodeType.bind(null,te.NESTING);X.isNesting=ue;var ce=isNodeType.bind(null,te.PSEUDO);X.isPseudo=ce;var pe=isNodeType.bind(null,te.ROOT);X.isRoot=pe;var fe=isNodeType.bind(null,te.SELECTOR);X.isSelector=fe;var de=isNodeType.bind(null,te.STRING);X.isString=de;var he=isNodeType.bind(null,te.TAG);X.isTag=he;var me=isNodeType.bind(null,te.UNIVERSAL);X.isUniversal=me;function isPseudoElement(_){return ce(_)&&_.value&&(_.value.startsWith("::")||_.value.toLowerCase()===":before"||_.value.toLowerCase()===":after"||_.value.toLowerCase()===":first-letter"||_.value.toLowerCase()===":first-line")}function isPseudoClass(_){return ce(_)&&!isPseudoElement(_)}function isContainer(_){return!!(isNode(_)&&_.walk)}function isNamespace(_){return ne(_)||he(_)}},8362:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(ID,_);function ID(X){var ee;ee=_.call(this,X)||this;ee.type=re.ID;return ee}var X=ID.prototype;X.valueToString=function valueToString(){return"#"+_.prototype.valueToString.call(this)};return ID}(te["default"]);X["default"]=se;_.exports=X.default},7759:(_,X,ee)=>{"use strict";X.__esModule=true;var te=ee(7105);Object.keys(te).forEach((function(_){if(_==="default"||_==="__esModule")return;if(_ in X&&X[_]===te[_])return;X[_]=te[_]}));var re=ee(9374);Object.keys(re).forEach((function(_){if(_==="default"||_==="__esModule")return;if(_ in X&&X[_]===re[_])return;X[_]=re[_]}));var se=ee(5943);Object.keys(se).forEach((function(_){if(_==="default"||_==="__esModule")return;if(_ in X&&X[_]===se[_])return;X[_]=se[_]}))},2551:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(441));var re=ee(4371);var se=_interopRequireDefault(ee(4938));function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Nesting,_);function Nesting(X){var ee;ee=_.call(this,X)||this;ee.type=re.NESTING;ee.value="&";return ee}return Nesting}(te["default"]);X["default"]=se;_.exports=X.default},4938:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=ee(4371);function _defineProperties(_,X){for(var ee=0;ee_){return false}if(this.source.end.line<_){return false}if(this.source.start.line===_&&this.source.start.column>X){return false}if(this.source.end.line===_&&this.source.end.column{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(304));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Pseudo,_);function Pseudo(X){var ee;ee=_.call(this,X)||this;ee.type=re.PSEUDO;return ee}var X=Pseudo.prototype;X.toString=function toString(){var _=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),_,this.rawSpaceAfter].join("")};return Pseudo}(te["default"]);X["default"]=se;_.exports=X.default},7774:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(304));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _defineProperties(_,X){for(var ee=0;ee{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(304));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Selector,_);function Selector(X){var ee;ee=_.call(this,X)||this;ee.type=re.SELECTOR;return ee}return Selector}(te["default"]);X["default"]=se;_.exports=X.default},4931:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(4938));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(String,_);function String(X){var ee;ee=_.call(this,X)||this;ee.type=re.STRING;return ee}return String}(te["default"]);X["default"]=se;_.exports=X.default},4088:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(2551));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Tag,_);function Tag(X){var ee;ee=_.call(this,X)||this;ee.type=re.TAG;return ee}return Tag}(te["default"]);X["default"]=se;_.exports=X.default},7105:(_,X)=>{"use strict";X.__esModule=true;X.UNIVERSAL=X.TAG=X.STRING=X.SELECTOR=X.ROOT=X.PSEUDO=X.NESTING=X.ID=X.COMMENT=X.COMBINATOR=X.CLASS=X.ATTRIBUTE=void 0;var ee="tag";X.TAG=ee;var te="string";X.STRING=te;var re="selector";X.SELECTOR=re;var se="root";X.ROOT=se;var ne="pseudo";X.PSEUDO=ne;var ie="nesting";X.NESTING=ie;var oe="id";X.ID=oe;var ae="comment";X.COMMENT=ae;var le="combinator";X.COMBINATOR=le;var ue="class";X.CLASS=ue;var ce="attribute";X.ATTRIBUTE=ce;var pe="universal";X.UNIVERSAL=pe},2767:(_,X,ee)=>{"use strict";X.__esModule=true;X["default"]=void 0;var te=_interopRequireDefault(ee(2551));var re=ee(7105);function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}function _inheritsLoose(_,X){_.prototype=Object.create(X.prototype);_.prototype.constructor=_;_setPrototypeOf(_,X)}function _setPrototypeOf(_,X){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(_,X){_.__proto__=X;return _};return _setPrototypeOf(_,X)}var se=function(_){_inheritsLoose(Universal,_);function Universal(X){var ee;ee=_.call(this,X)||this;ee.type=re.UNIVERSAL;ee.value="*";return ee}return Universal}(te["default"]);X["default"]=se;_.exports=X.default},866:(_,X)=>{"use strict";X.__esModule=true;X["default"]=sortAscending;function sortAscending(_){return _.sort((function(_,X){return _-X}))}_.exports=X.default},6004:(_,X)=>{"use strict";X.__esModule=true;X.word=X.tilde=X.tab=X.str=X.space=X.slash=X.singleQuote=X.semicolon=X.plus=X.pipe=X.openSquare=X.openParenthesis=X.newline=X.greaterThan=X.feed=X.equals=X.doubleQuote=X.dollar=X.cr=X.comment=X.comma=X.combinator=X.colon=X.closeSquare=X.closeParenthesis=X.caret=X.bang=X.backslash=X.at=X.asterisk=X.ampersand=void 0;var ee=38;X.ampersand=ee;var te=42;X.asterisk=te;var re=64;X.at=re;var se=44;X.comma=se;var ne=58;X.colon=ne;var ie=59;X.semicolon=ie;var oe=40;X.openParenthesis=oe;var ae=41;X.closeParenthesis=ae;var le=91;X.openSquare=le;var ue=93;X.closeSquare=ue;var ce=36;X.dollar=ce;var pe=126;X.tilde=pe;var fe=94;X.caret=fe;var de=43;X.plus=de;var he=61;X.equals=he;var me=124;X.pipe=me;var ge=62;X.greaterThan=ge;var be=32;X.space=be;var ve=39;X.singleQuote=ve;var ye=34;X.doubleQuote=ye;var we=47;X.slash=we;var xe=33;X.bang=xe;var ke=92;X.backslash=ke;var Se=13;X.cr=Se;var _e=12;X.feed=_e;var Pe=10;X.newline=Pe;var Oe=9;X.tab=Oe;var je=ve;X.str=je;var Te=-1;X.comment=Te;var Ee=-2;X.word=Ee;var Fe=-3;X.combinator=Fe},9668:(_,X,ee)=>{"use strict";X.__esModule=true;X.FIELDS=void 0;X["default"]=tokenize;var te=_interopRequireWildcard(ee(6004));var re,se;function _getRequireWildcardCache(_){if(typeof WeakMap!=="function")return null;var X=new WeakMap;var ee=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(_){return _?ee:X})(_)}function _interopRequireWildcard(_,X){if(!X&&_&&_.__esModule){return _}if(_===null||typeof _!=="object"&&typeof _!=="function"){return{default:_}}var ee=_getRequireWildcardCache(X);if(ee&&ee.has(_)){return ee.get(_)}var te={};var re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in _){if(se!=="default"&&Object.prototype.hasOwnProperty.call(_,se)){var ne=re?Object.getOwnPropertyDescriptor(_,se):null;if(ne&&(ne.get||ne.set)){Object.defineProperty(te,se,ne)}else{te[se]=_[se]}}}te["default"]=_;if(ee){ee.set(_,te)}return te}var ne=(re={},re[te.tab]=true,re[te.newline]=true,re[te.cr]=true,re[te.feed]=true,re);var ie=(se={},se[te.space]=true,se[te.tab]=true,se[te.newline]=true,se[te.cr]=true,se[te.feed]=true,se[te.ampersand]=true,se[te.asterisk]=true,se[te.bang]=true,se[te.comma]=true,se[te.colon]=true,se[te.semicolon]=true,se[te.openParenthesis]=true,se[te.closeParenthesis]=true,se[te.openSquare]=true,se[te.closeSquare]=true,se[te.singleQuote]=true,se[te.doubleQuote]=true,se[te.plus]=true,se[te.pipe]=true,se[te.tilde]=true,se[te.greaterThan]=true,se[te.equals]=true,se[te.dollar]=true,se[te.caret]=true,se[te.slash]=true,se);var oe={};var ae="0123456789abcdefABCDEF";for(var le=0;le0){be=ie+he;ve=ge-me[he].length}else{be=ie;ve=ne}we=te.comment;ie=be;pe=be;ce=ge-ve}else if(le===te.slash){ge=oe;we=le;pe=ie;ce=oe-ne;ae=ge+1}else{ge=consumeWord(ee,oe);we=te.word;pe=ie;ce=ge-ne}ae=ge+1;break}X.push([we,ie,oe-ne,pe,ce,oe,ae]);if(ve){ne=ve;ve=null}oe=ae}return X}},3695:(_,X)=>{"use strict";X.__esModule=true;X["default"]=ensureObject;function ensureObject(_){for(var X=arguments.length,ee=new Array(X>1?X-1:0),te=1;te0){var re=ee.shift();if(!_[re]){_[re]={}}_=_[re]}}_.exports=X.default},5919:(_,X)=>{"use strict";X.__esModule=true;X["default"]=getProp;function getProp(_){for(var X=arguments.length,ee=new Array(X>1?X-1:0),te=1;te0){var re=ee.shift();if(!_[re]){return undefined}_=_[re]}return _}_.exports=X.default},4371:(_,X,ee)=>{"use strict";X.__esModule=true;X.unesc=X.stripComments=X.getProp=X.ensureObject=void 0;var te=_interopRequireDefault(ee(7949));X.unesc=te["default"];var re=_interopRequireDefault(ee(5919));X.getProp=re["default"];var se=_interopRequireDefault(ee(3695));X.ensureObject=se["default"];var ne=_interopRequireDefault(ee(7945));X.stripComments=ne["default"];function _interopRequireDefault(_){return _&&_.__esModule?_:{default:_}}},7945:(_,X)=>{"use strict";X.__esModule=true;X["default"]=stripComments;function stripComments(_){var X="";var ee=_.indexOf("/*");var te=0;while(ee>=0){X=X+_.slice(te,ee);var re=_.indexOf("*/",ee+2);if(re<0){return X}te=re+2;ee=_.indexOf("/*",te)}X=X+_.slice(te);return X}_.exports=X.default},7949:(_,X)=>{"use strict";X.__esModule=true;X["default"]=unesc;function gobbleHex(_){var X=_.toLowerCase();var ee="";var te=false;for(var re=0;re<6&&X[re]!==undefined;re++){var se=X.charCodeAt(re);var ne=se>=97&&se<=102||se>=48&&se<=57;te=se===32;if(!ne){break}ee+=X[re]}if(ee.length===0){return undefined}var ie=parseInt(ee,16);var oe=ie>=55296&&ie<=57343;if(oe||ie===0||ie>1114111){return["�",ee.length+(te?1:0)]}return[String.fromCodePoint(ie),ee.length+(te?1:0)]}var ee=/\\/;function unesc(_){var X=ee.test(_);if(!X){return _}var te="";for(var re=0;re<_.length;re++){if(_[re]==="\\"){var se=gobbleHex(_.slice(re+1,re+7));if(se!==undefined){te+=se[0];re+=se[1];continue}if(_[re+1]==="\\"){te+="\\";re++;continue}if(_.length===re+1){te+=_[re]}continue}te+=_[re]}return te}_.exports=X.default},1343:_=>{"use strict";let X={comma(_){return X.split(_,[","],true)},space(_){let ee=[" ","\n","\t"];return X.split(_,ee)},split(_,X,ee){let te=[];let re="";let se=false;let ne=0;let ie=false;let oe="";let ae=false;for(let ee of _){if(ae){ae=false}else if(ee==="\\"){ae=true}else if(ie){if(ee===oe){ie=false}}else if(ee==='"'||ee==="'"){ie=true;oe=ee}else if(ee==="("){ne+=1}else if(ee===")"){if(ne>0)ne-=1}else if(ne===0){if(X.includes(ee))se=true}if(se){if(re!=="")te.push(re.trim());re="";se=false}else{re+=ee}}if(ee||re!=="")te.push(re.trim());return te}};_.exports=X;X.default=X},6124:(_,X,ee)=>{_.exports=ee(3837).deprecate},1983:_=>{function webpackEmptyContext(_){var X=new Error("Cannot find module '"+_+"'");X.code="MODULE_NOT_FOUND";throw X}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=1983;_.exports=webpackEmptyContext},6102:_=>{function webpackEmptyContext(_){var X=new Error("Cannot find module '"+_+"'");X.code="MODULE_NOT_FOUND";throw X}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=6102;_.exports=webpackEmptyContext},5591:_=>{"use strict";_.exports=require("caniuse-lite/data/features/background-clip-text")},1188:_=>{"use strict";_.exports=require("caniuse-lite/data/features/background-img-opts")},7097:_=>{"use strict";_.exports=require("caniuse-lite/data/features/border-image")},2861:_=>{"use strict";_.exports=require("caniuse-lite/data/features/border-radius")},3098:_=>{"use strict";_.exports=require("caniuse-lite/data/features/calc")},354:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-animation")},9323:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-any-link")},4773:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-appearance")},7721:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-autofill")},3166:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-backdrop-filter")},6781:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-boxdecorationbreak")},2194:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-boxshadow")},9205:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-clip-path")},8995:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-crisp-edges")},8786:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-cross-fade")},3504:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-deviceadaptation")},7801:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-element-function")},8944:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-featurequeries.js")},2416:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-file-selector-button")},1545:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-filter-function")},3882:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-filters")},2571:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-gradients")},6554:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-grid")},5197:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-hyphens")},2237:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-image-set")},7395:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-logical-props")},6649:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-masks")},8181:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-media-resolution")},3898:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-overscroll-behavior")},6215:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-placeholder")},9278:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-placeholder-shown")},8066:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-print-color-adjust")},2478:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-read-only-write")},1949:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-regions")},4822:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-selection")},5460:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-shapes")},1340:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-snappoints")},8235:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-sticky")},2807:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-text-align-last")},4838:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-text-orientation")},9290:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-text-spacing")},40:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-transitions")},7437:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-width-stretch")},2298:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css-writing-mode")},6597:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css3-boxsizing")},2983:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css3-cursors-grab")},8265:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css3-cursors-newer")},3247:_=>{"use strict";_.exports=require("caniuse-lite/data/features/css3-tabsize")},4618:_=>{"use strict";_.exports=require("caniuse-lite/data/features/flexbox")},1328:_=>{"use strict";_.exports=require("caniuse-lite/data/features/font-feature")},3944:_=>{"use strict";_.exports=require("caniuse-lite/data/features/font-kerning")},7766:_=>{"use strict";_.exports=require("caniuse-lite/data/features/fullscreen")},5691:_=>{"use strict";_.exports=require("caniuse-lite/data/features/intrinsic-width")},4643:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-css-backdrop-pseudo-element")},7856:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-css-unicode-bidi-isolate")},9067:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override")},6097:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext")},5934:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-text-decoration-color")},3874:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-text-decoration-line")},1597:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-text-decoration-shorthand")},3480:_=>{"use strict";_.exports=require("caniuse-lite/data/features/mdn-text-decoration-style")},7809:_=>{"use strict";_.exports=require("caniuse-lite/data/features/multicolumn")},1480:_=>{"use strict";_.exports=require("caniuse-lite/data/features/object-fit")},1014:_=>{"use strict";_.exports=require("caniuse-lite/data/features/pointer")},134:_=>{"use strict";_.exports=require("caniuse-lite/data/features/text-decoration")},5514:_=>{"use strict";_.exports=require("caniuse-lite/data/features/text-emphasis")},7806:_=>{"use strict";_.exports=require("caniuse-lite/data/features/text-overflow")},744:_=>{"use strict";_.exports=require("caniuse-lite/data/features/text-size-adjust")},4602:_=>{"use strict";_.exports=require("caniuse-lite/data/features/transforms2d")},2866:_=>{"use strict";_.exports=require("caniuse-lite/data/features/transforms3d")},9474:_=>{"use strict";_.exports=require("caniuse-lite/data/features/user-select-none")},3768:_=>{"use strict";_.exports=require("caniuse-lite/dist/unpacker/agents")},1711:_=>{"use strict";_.exports=require("caniuse-lite/dist/unpacker/feature")},7147:_=>{"use strict";_.exports=require("fs")},4907:_=>{"use strict";_.exports=require("next/dist/compiled/browserslist")},2045:_=>{"use strict";_.exports=require("next/dist/compiled/postcss-value-parser")},1017:_=>{"use strict";_.exports=require("path")},977:_=>{"use strict";_.exports=require("postcss")},7310:_=>{"use strict";_.exports=require("url")},3837:_=>{"use strict";_.exports=require("util")},1800:(_,X,ee)=>{"use strict";var te=ee(2605),re=ee(2045);function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=t(te),ne=t(re); /** * Simple matrix (and vector) multiplication * Warning: No error handling for incompatible dimensions! @@ -27,7 +27,7 @@ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang). * * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js - */function h(_,X){const[ee,te,re]=_,[se,ne,ie]=X,oe=ee-se,ae=te-ne,le=re-ie;return Math.sqrt(oe**2+ae**2+le**2)}function m(_,X,ee){return function(_,X,ee){let te=0,re=_[1];const se=_;for(;re-te>1e-4;){const _=b(X(se));h(v(se),v(ee(_)))-.02<1e-4?te=se[1]:re=se[1],se[1]=(re+te)/2}return b(X([...se]))}(_,X,ee)}function b(_){return _.map((_=>_<0?0:_>1?1:_))}function y(_){const[X,ee,te]=_;return X>=-1e-4&&X<=1.0001&&ee>=-1e-4&&ee<=1.0001&&te>=-1e-4&&te<=1.0001}function g(_){let X=_.slice();X=X.map((function(_){const X=_<0?-1:1,ee=Math.abs(_);return X*Math.pow(ee,563/256)})),X=a([[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function x(_){let X=_.slice();X=l(X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function M(_){let X=_.slice(),ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function w(_){let X=_.slice();X=o(X),X=a([[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function I(_){let X=_.slice();X=X.map((function(_){const X=_<0?-1:1;return Math.abs(_)<=.03125?_/16:X*Math.pow(_,1.8)})),X=a([[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],X),X=l(X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function S(_){let X=_.slice();X=function(_){const X=1.09929682680944;return _.map((function(_){const ee=_<0?-1:1,te=Math.abs(_);return te<.08124285829863151?_/4.5:ee*Math.pow((te+X-1)/X,1/.45)}))}(X),X=a([[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function k(_){let X=_.slice();X=c(X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function P(_){let X=_.slice();X=o(X),X=c(X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function E(_,X,ee,te){const re=ne.default.stringify(_),se=_.value,ie=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let oe,ae=null;if("color"===se&&(ae=function(_){if(!function(_){if(!_||"word"!==_.type)return!1;switch(_.value){case"srgb":case"srgb-linear":case"display-p3":case"a98-rgb":case"prophoto-rgb":case"rec2020":case"xyz-d50":case"xyz-d65":case"xyz":return!0;default:return!1}}(_[0]))return null;const X={colorSpace:_[0].value,colorSpaceNode:_[0],parameters:[]};for(let ee=1;ee<_.length;ee++)if(F(_[ee]))X.slash=_[ee];else{if(X.slash&&(z(_[ee])||A(_[ee])||q(_[ee]))){X.alpha=_[ee];break}if(!z(_[ee]))return null;{const te=ne.default.unit(_[ee].value);"%"===te.unit&&(te.number=String(parseFloat(te.number)/100),te.unit="",_[ee].value=String(te.number)),X.parameters.push({value:te,node:_[ee]})}}if(0===X.parameters.length)return X;X.parameters.length<3&&(X.parameters=[...X.parameters,{node:{sourceIndex:0,sourceEndIndex:1,value:"0",type:"word"},value:{number:"0",unit:""}},{node:{sourceIndex:0,sourceEndIndex:1,value:"0",type:"word"},value:{number:"0",unit:""}}]);X.parameters.length>3&&(X.parameters=X.parameters.slice(0,3));return X}(ie)),!ae)return;switch(_.value="rgb",function(_,X,ee){if(!X||!ee)return;if(_.value="rgba",X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!O(_))return!1;const X=ne.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const te=ne.default.unit(ee.value);if(!te)return;"%"===te.unit&&(te.number=String(parseFloat(te.number)/100),ee.value=String(te.number))}(_,ae.slash,ae.alpha),ae.colorSpace){case"srgb":oe=P;break;case"srgb-linear":oe=k;break;case"a98-rgb":oe=g;break;case"prophoto-rgb":oe=I;break;case"display-p3":oe=w;break;case"rec2020":oe=S;break;case"xyz-d50":oe=x;break;case"xyz-d65":case"xyz":oe=M;break;default:return}const le=(ue=ae,ue.parameters.map((_=>_.value))).map((_=>parseFloat(_.number)));var ue;const ce=oe(le);!y(le)&&te&&X.warn(ee,`"${re}" is out of gamut for "${ae.colorSpace}". Given "preserve: true" is set, this will lead to unexpected results in some browsers.`),_.nodes=[{sourceIndex:0,sourceEndIndex:1,value:String(Math.round(255*ce[0])),type:"word"},{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""},{sourceIndex:0,sourceEndIndex:1,value:String(Math.round(255*ce[1])),type:"word"},{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""},{sourceIndex:0,sourceEndIndex:1,value:String(Math.round(255*ce[2])),type:"word"}],ae.alpha&&(_.nodes.push({sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.push(ae.alpha))}function z(_){if(!_||"word"!==_.type)return!1;if(!O(_))return!1;const X=ne.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function A(_){return _&&"function"===_.type&&"calc"===_.value}function q(_){return _&&"function"===_.type&&"var"===_.value}function F(_){return _&&"div"===_.type&&"/"===_.value}function O(_){if(!_||!_.value)return!1;try{return!1!==ne.default.unit(_.value)}catch(_){return!1}}const j=_=>{const X="preserve"in Object(_)&&Boolean(_.preserve);return{postcssPlugin:"postcss-color-function",Declaration:(_,{result:ee})=>{if(function(_){const X=_.parent;if(!X)return!1;const ee=X.index(_);for(let te=0;te{_.type&&"function"===_.type&&"color"===_.value&&E(_,X,ee,te)}));const se=String(re);return se!==_?se:void 0}(te,_,ee,X);void 0!==re&&(X?_.cloneBefore({value:re}):_.value=re)}}};j.postcss=!0;const $=_=>{const X=Object.assign({preserve:!1,enableProgressiveCustomProperties:!0},_);return X.enableProgressiveCustomProperties&&X.preserve?{postcssPlugin:"postcss-color-function",plugins:[se.default(),j(X)]}:j(X)};$.postcss=!0,_.exports=$},3345:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));const re=["woff","truetype","opentype","woff2","embedded-opentype","collection","svg"],r=_=>{const X="preserve"in Object(_)&&Boolean(_.preserve);return{postcssPlugin:"postcss-font-format-keywords",AtRule:{"font-face"(_){"font-face"===_.name&&_.walkDecls("src",(_=>{if(!_.value.includes("format("))return;const ee=te.default(_.value);ee.walk((_=>{"function"===_.type&&"format"===_.value&&_.nodes.forEach((_=>{"word"===_.type&&re.includes(_.value)&&(_.value=te.default.stringify({type:"string",value:_.value,quote:'"'}))}))})),X?_.cloneBefore({value:ee.toString()}):_.value=ee.toString()}))}}}};r.postcss=!0,_.exports=r},434:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));function t(_){const X=_[0];let ee=_[1],te=_[2];if(ee/=100,te/=100,ee+te>=1){const _=ee/(ee+te);return[_,_,_]}const re=function(_){let X=_[0],ee=_[1],te=_[2];X%=360,X<0&&(X+=360);function u(_){const re=(_+X/30)%12,se=ee*Math.min(te,1-te);return te-se*Math.max(-1,Math.min(re-3,9-re,1))}return ee/=100,te/=100,[u(0),u(8),u(4)]}([X,100,50]);for(let _=0;_<3;_++)re[_]*=1-ee-te,re[_]+=ee;return re.map((_=>Math.round(255*_)))}function r(_){const X=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type)),ee=function(_){if(!function(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);if(!X)return!1;return!!X.number&&("deg"===X.unit||"grad"===X.unit||"rad"===X.unit||"turn"===X.unit||""===X.unit)}(_[0]))return null;if(!u(_[1]))return null;if(!u(_[2]))return null;const X={h:te.default.unit(_[0].value),hNode:_[0],w:te.default.unit(_[1].value),wNode:_[1],b:te.default.unit(_[2].value),bNode:_[2]};if(function(_){switch(_.unit){case"deg":return void(_.unit="");case"rad":return _.unit="",void(_.number=(180*parseFloat(_.number)/Math.PI).toString());case"grad":return _.unit="",void(_.number=(.9*parseFloat(_.number)).toString());case"turn":_.unit="",_.number=(360*parseFloat(_.number)).toString()}}(X.h),""!==X.h.unit)return null;i(X.w),i(X.b),function(_){return _&&"div"===_.type&&"/"===_.value}(_[3])&&(X.slash=_[3]);(u(_[4])||function(_){return _&&"function"===_.type&&"calc"===_.value}(_[4])||function(_){return _&&"function"===_.type&&"var"===_.value}(_[4]))&&(X.alpha=_[4]);return X}(X);if(!ee)return;if(X.length>3&&(!ee.slash||!ee.alpha))return;_.value="rgb",function(_,X,ee){if(!X||!ee)return;if(_.value="rgba",X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const re=te.default.unit(ee.value);if(!re)return;"%"===re.unit&&(re.number=String(parseFloat(re.number)/100),ee.value=String(re.number))}(_,ee.slash,ee.alpha);const[re,se,ne]=[(ie=ee).hNode,ie.wNode,ie.bNode];var ie;const[oe,ae,le]=function(_){return[_.h,_.w,_.b]}(ee),ue=t([oe.number,ae.number,le.number].map((_=>parseFloat(_))));_.nodes.splice(_.nodes.indexOf(re)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.splice(_.nodes.indexOf(se)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),a(_.nodes,re,{...re,value:String(ue[0])}),a(_.nodes,se,{...se,value:String(ue[1])}),a(_.nodes,ne,{...ne,value:String(ue[2])})}function u(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function a(_,X,ee){const te=_.indexOf(X);_[te]=ee}function i(_){if("%"!==_.unit)return _.unit="%",void(_.number=(100*parseFloat(_.number)).toString())}function o(_){if(!_||!_.value)return!1;try{return!1!==te.default.unit(_.value)}catch(_){return!1}}const l=_=>{const X="preserve"in Object(_)&&Boolean(_.preserve);return{postcssPlugin:"postcss-hwb-function",Declaration:(_,{result:ee,postcss:re})=>{if(X&&function(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("supports"===X.name&&-1!==X.params.indexOf("(color: hwb(0% 0 0))"))return!0;X=X.parent}else X=X.parent;return!1}(_))return;const se=_.value;if(!se.includes("hwb"))return;const ne=function(_,X,ee){let re;try{re=te.default(_)}catch(te){X.warn(ee,`Failed to parse value '${_}' as a hwb function. Leaving the original value intact.`)}if(void 0===re)return;re.walk((_=>{_.type&&"function"===_.type&&"hwb"===_.value&&r(_)}));const se=String(re);if(se===_)return;return se}(se,_,ee);if(void 0!==ne)if(_.variable&&X){const X=_.parent,ee=re.atRule({name:"supports",params:"(color: hwb(0% 0 0))",source:_.source}),te=X.clone();te.removeAll(),te.append(_.clone()),ee.append(te),function(_,X,ee){let te=X,re=X.next();for(;te&&re&&"atrule"===re.type&&"supports"===re.name&&re.params===ee;)te=re,re=re.next();te.after(_)}(ee,X,"(color: hwb(0% 0 0))"),_.value=ne}else X?_.cloneBefore({value:ne}):_.value=ne}}};l.postcss=!0,_.exports=l},1758:(_,X,ee)=>{"use strict";var te=ee(5449),re=ee(2045);function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=t(te),ne=t(re);const n=_=>({postcssPlugin:"postcss-ic-unit",Declaration(X){if(!X.value.includes("ic"))return;if(function(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("supports"===X.name&&/\(font-size: \d+ic\)/.test(X.params))return!0;X=X.parent}else X=X.parent;return!1}(X))return;const ee=ne.default(X.value);ee.walk((_=>{if(!_.type||"word"!==_.type)return;const X=ne.default.unit(_.value);X&&"ic"===X.unit&&(_.value=`${X.number}em`)}));const te=String(ee);te!==X.value&&(_.preserve?X.cloneBefore({value:te}):X.value=te)}});n.postcss=!0;const o=_=>{const X=Object.assign({preserve:!1,enableProgressiveCustomProperties:!0},_);return X.enableProgressiveCustomProperties&&X.preserve?{postcssPlugin:"postcss-ic-unit",plugins:[se.default(),n(X)]}:n(X)};o.postcss=!0,_.exports=o},2238:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));function n(_){_&&_.nodes&&_.nodes.sort(((_,X)=>"selector"===_.type&&"selector"===X.type&&_.nodes.length&&X.nodes.length?o(_.nodes[0].value,_.nodes[0].type)-o(X.nodes[0].value,X.nodes[0].type):"selector"===_.type&&_.nodes.length?o(_.nodes[0].value,_.nodes[0].type)-o(X.value,X.type):"selector"===X.type&&X.nodes.length?o(_.value,_.type)-o(X.nodes[0].value,X.nodes[0].type):o(_.value,_.type)-o(X.value,X.type)))}function o(_,X){return"pseudo"===X&&_&&0===_.indexOf("::")?re.pseudoElement:re[X]}const re={universal:0,tag:1,id:2,class:3,attribute:4,selector:5,pseudo:6,pseudoElement:7,string:8,root:9,comment:10};function d(_,X,ee){return _.flatMap((_=>{if(-1===_.indexOf(":-csstools-matches")&&-1===_.indexOf(":is"))return _;const re=te.default().astSync(_);return re.walkPseudos((_=>{if(":is"===_.value&&_.nodes&&_.nodes.length&&"selector"===_.nodes[0].type&&0===_.nodes[0].nodes.length)return _.value=":not",void _.nodes[0].append(te.default.universal());if(":-csstools-matches"===_.value)if(!_.nodes||_.nodes.length){if(1===_.nodes.length&&"selector"===_.nodes[0].type){if(1===_.nodes[0].nodes.length)return void _.replaceWith(_.nodes[0].nodes[0]);if(!_.nodes[0].some((_=>"combinator"===_.type)))return void _.replaceWith(..._.nodes[0].nodes)}1!==re.nodes.length||"selector"!==re.nodes[0].type||1!==re.nodes[0].nodes.length||re.nodes[0].nodes[0]!==_?function(_){return!(!_||!_.nodes||"selector"!==_.type||3!==_.nodes.length||!_.nodes[0]||"pseudo"!==_.nodes[0].type||":-csstools-matches"!==_.nodes[0].value||!_.nodes[1]||"combinator"!==_.nodes[1].type||"+"!==_.nodes[1].value||!_.nodes[2]||"pseudo"!==_.nodes[2].type||":-csstools-matches"!==_.nodes[2].value||!_.nodes[0].nodes||1!==_.nodes[0].nodes.length||"selector"!==_.nodes[0].nodes[0].type||!_.nodes[0].nodes[0].nodes||3!==_.nodes[0].nodes[0].nodes.length||!_.nodes[0].nodes[0].nodes||"combinator"!==_.nodes[0].nodes[0].nodes[1].type||">"!==_.nodes[0].nodes[0].nodes[1].value||!_.nodes[2].nodes||1!==_.nodes[2].nodes.length||"selector"!==_.nodes[2].nodes[0].type||!_.nodes[2].nodes[0].nodes||3!==_.nodes[2].nodes[0].nodes.length||!_.nodes[2].nodes[0].nodes||"combinator"!==_.nodes[2].nodes[0].nodes[1].type||">"!==_.nodes[2].nodes[0].nodes[1].value||(_.nodes[0].nodes[0].insertAfter(_.nodes[0].nodes[0].nodes[0],_.nodes[2].nodes[0].nodes[0].clone()),_.nodes[2].nodes[0].nodes[1].remove(),_.nodes[2].nodes[0].nodes[0].remove(),_.nodes[0].replaceWith(_.nodes[0].nodes[0]),_.nodes[2].replaceWith(_.nodes[2].nodes[0]),0))}(_.parent)||function(_){if(!_||!_.nodes)return!1;if("selector"!==_.type)return!1;if(2!==_.nodes.length)return!1;let X,ee;return _.nodes[0]&&"pseudo"===_.nodes[0].type&&":-csstools-matches"===_.nodes[0].value?(X=0,ee=1):_.nodes[1]&&"pseudo"===_.nodes[1].type&&":-csstools-matches"===_.nodes[1].value&&(X=1,ee=0),!(!X||!_.nodes[ee]||"selector"===_.nodes[ee].type&&_.nodes[ee].some((_=>"combinator"===_.type))||(_.nodes[X].append(_.nodes[ee].clone()),_.nodes[X].replaceWith(..._.nodes[X].nodes),_.nodes[ee].remove(),0))}(_.parent)||("warning"===X.onComplexSelector&&ee(),_.value=":is"):_.replaceWith(..._.nodes[0].nodes)}else _.remove()})),re.walk((_=>{"selector"===_.type&&"nodes"in _&&1===_.nodes.length&&"selector"===_.nodes[0].type&&_.replaceWith(_.nodes[0])})),re.walk((_=>{"nodes"in _&&function(_){if(!_||!_.nodes)return;let X=[];const ee=[..._.nodes];for(let _=0;_1){const _=te.default.selector({value:""});X[0].replaceWith(_),X.slice(1).forEach((_=>{_.remove()})),X.forEach((X=>{_.append(X)})),n(_),_.replaceWith(..._.nodes)}X=[]}}}(_)})),re.toString()})).filter((_=>!!_))}function l(_){let X=0,ee=0,re=0;if("universal"==_.type)return{a:0,b:0,c:0};if("id"===_.type)X+=1;else if("tag"===_.type)re+=1;else if("class"===_.type)ee+=1;else if("attribute"===_.type)ee+=1;else if("pseudo"===_.type&&0===_.value.indexOf("::"))re+=1;else if("pseudo"===_.type)switch(_.value){case":after":case":before":re+=1;break;case":is":case":has":case":not":if(_.nodes&&_.nodes.length>0){let te={a:0,b:0,c:0};_.nodes.forEach((_=>{const X=l(_);X.a>te.a?te=X:X.ate.b?te=X:X.bte.c&&(te=X))})),X+=te.a,ee+=te.b,re+=te.c}break;case"where":break;case":nth-child":case":nth-last-child":{const se=_.nodes.findIndex((_=>{_.value}));if(se>-1){const ne=l(te.default.selector({nodes:_.nodes.slice(se+1),value:""}));X+=ne.a,ee+=ne.b,re+=ne.c}else X+=X,ee+=ee,re+=re}break;default:ee+=1}else _.nodes&&_.nodes.length>0&&_.nodes.forEach((_=>{const te=l(_);X+=te.a,ee+=te.b,re+=te.c}));return{a:X,b:ee,c:re}}function r(_,X,ee=0){const re=":not(#"+X.specificityMatchingName+")",se=":not(."+X.specificityMatchingName+")",ne=":not("+X.specificityMatchingName+")";return _.flatMap((_=>{if(-1===_.indexOf(":is"))return _;let ie=!1;const oe=[];if(te.default().astSync(_).walkPseudos((_=>{if(":is"!==_.value||!_.nodes||!_.nodes.length)return;if("selector"===_.nodes[0].type&&0===_.nodes[0].nodes.length)return;let X=_.parent;for(;X;){if(":is"===X.value&&"pseudo"===X.type)return void(ie=!0);X=X.parent}const ee=l(_),te=_.sourceIndex,ae=te+_.toString().length,le=[];_.nodes.forEach((_=>{const X={start:te,end:ae,option:""},ie=l(_);let oe=_.toString().trim();const ue=Math.max(0,ee.a-ie.a),ce=Math.max(0,ee.b-ie.b),pe=Math.max(0,ee.c-ie.c);for(let _=0;_{let ee="";for(let re=0;re!!_))}const c=_=>{const X={specificityMatchingName:"does-not-exist",..._||{}};return{postcssPlugin:"postcss-is-pseudo-class",Rule(_,{result:ee}){if(!_.selector)return;if(-1===_.selector.indexOf(":is"))return;let te=!1;const t=()=>{"warning"===X.onComplexSelector&&(te||(te=!0,_.warn(ee,`Complex selectors in '${_.selector}' can not be transformed to an equivalent selector without ':is()'.`)))};try{let ee=!1;const te=[],re=d(r(_.selectors,{specificityMatchingName:X.specificityMatchingName}),{onComplexSelector:X.onComplexSelector},t);if(Array.from(new Set(re)).forEach((X=>{_.selectors.indexOf(X)>-1?te.push(X):(_.cloneBefore({selector:X}),ee=!0)})),te.length&&ee&&_.cloneBefore({selectors:te}),!X.preserve){if(!ee)return;_.remove()}}catch(X){if(X.message.indexOf("call stack size exceeded")>-1)throw X;_.warn(ee,`Failed to parse selector "${_.selector}"`)}}}};c.postcss=!0,_.exports=c},3942:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045)),re=new Map([["block,flow","block"],["block,flow-root","flow-root"],["inline,flow","inline"],["inline,flow-root","inline-block"],["run-in,flow","run-in"],["list-item,block,flow","list-item"],["inline,flow,list-item","inline list-item"],["block,flex","flex"],["inline,flex","inline-flex"],["block,grid","grid"],["inline,grid","inline-grid"],["inline,ruby","ruby"],["block,table","table"],["inline,table","inline-table"],["table-cell,flow","table-cell"],["table-caption,flow","table-caption"],["ruby-base,flow","ruby-base"],["ruby-text,flow","ruby-text"]]);const n=_=>{const X=!("preserve"in Object(_))||Boolean(_.preserve);return{postcssPlugin:"postcss-normalize-display-values",prepare(){const _=new Map;return{Declaration:{display(ee){const se=ee.value;if(!se)return;if(_.has(se))return void(ee.value!==_.get(se)&&(X?ee.cloneBefore({value:_.get(se)}):ee.value=_.get(se)));const ne=function(_){const{nodes:X}=te.default(_);if(1===X.length)return _;const ee=X.filter((_=>"word"===_.type)).map((_=>_.value.toLowerCase()));if(ee.length<=1)return _;return re.get(ee.join(","))||_}(se);ee.value!==ne&&(X?ee.cloneBefore({value:ne}):ee.value=ne),_.set(se,ne)}}}}}};n.postcss=!0,_.exports=n},8078:(_,X,ee)=>{"use strict";var te=ee(5449),re=ee(2045);function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=t(te),ne=t(re); + */function h(_,X){const[ee,te,re]=_,[se,ne,ie]=X,oe=ee-se,ae=te-ne,le=re-ie;return Math.sqrt(oe**2+ae**2+le**2)}function m(_,X,ee){return function(_,X,ee){let te=0,re=_[1];const se=_;for(;re-te>1e-4;){const _=b(X(se));h(v(se),v(ee(_)))-.02<1e-4?te=se[1]:re=se[1],se[1]=(re+te)/2}return b(X([...se]))}(_,X,ee)}function b(_){return _.map((_=>_<0?0:_>1?1:_))}function y(_){const[X,ee,te]=_;return X>=-1e-4&&X<=1.0001&&ee>=-1e-4&&ee<=1.0001&&te>=-1e-4&&te<=1.0001}function g(_){let X=_.slice();X=X.map((function(_){const X=_<0?-1:1,ee=Math.abs(_);return X*Math.pow(ee,563/256)})),X=a([[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function x(_){let X=_.slice();X=l(X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function M(_){let X=_.slice(),ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function w(_){let X=_.slice();X=o(X),X=a([[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function I(_){let X=_.slice();X=X.map((function(_){const X=_<0?-1:1;return Math.abs(_)<=.03125?_/16:X*Math.pow(_,1.8)})),X=a([[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],X),X=l(X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function S(_){let X=_.slice();X=function(_){const X=1.09929682680944;return _.map((function(_){const ee=_<0?-1:1,te=Math.abs(_);return te<.08124285829863151?_/4.5:ee*Math.pow((te+X-1)/X,1/.45)}))}(X),X=a([[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function k(_){let X=_.slice();X=c(X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function P(_){let X=_.slice();X=o(X),X=c(X);let ee=X.slice();return ee=p(ee),ee=d(ee),ee[0]<1e-6&&(ee=[0,0,0]),ee[0]>.999999&&(ee=[1,0,0]),X=i(X),X=s(X),y(X)?b(X):m(ee,(_=>s(_=i(_=f(_=v(_))))),(_=>d(_=p(_=c(_=o(_))))))}function E(_,X,ee,te){const re=ne.default.stringify(_),se=_.value,ie=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let oe,ae=null;if("color"===se&&(ae=function(_){if(!function(_){if(!_||"word"!==_.type)return!1;switch(_.value){case"srgb":case"srgb-linear":case"display-p3":case"a98-rgb":case"prophoto-rgb":case"rec2020":case"xyz-d50":case"xyz-d65":case"xyz":return!0;default:return!1}}(_[0]))return null;const X={colorSpace:_[0].value,colorSpaceNode:_[0],parameters:[]};for(let ee=1;ee<_.length;ee++)if(F(_[ee]))X.slash=_[ee];else{if(X.slash&&(z(_[ee])||A(_[ee])||q(_[ee]))){X.alpha=_[ee];break}if(!z(_[ee]))return null;{const te=ne.default.unit(_[ee].value);"%"===te.unit&&(te.number=String(parseFloat(te.number)/100),te.unit="",_[ee].value=String(te.number)),X.parameters.push({value:te,node:_[ee]})}}if(0===X.parameters.length)return X;X.parameters.length<3&&(X.parameters=[...X.parameters,{node:{sourceIndex:0,sourceEndIndex:1,value:"0",type:"word"},value:{number:"0",unit:""}},{node:{sourceIndex:0,sourceEndIndex:1,value:"0",type:"word"},value:{number:"0",unit:""}}]);X.parameters.length>3&&(X.parameters=X.parameters.slice(0,3));return X}(ie)),!ae)return;switch(_.value="rgb",function(_,X,ee){if(!X||!ee)return;if(_.value="rgba",X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!O(_))return!1;const X=ne.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const te=ne.default.unit(ee.value);if(!te)return;"%"===te.unit&&(te.number=String(parseFloat(te.number)/100),ee.value=String(te.number))}(_,ae.slash,ae.alpha),ae.colorSpace){case"srgb":oe=P;break;case"srgb-linear":oe=k;break;case"a98-rgb":oe=g;break;case"prophoto-rgb":oe=I;break;case"display-p3":oe=w;break;case"rec2020":oe=S;break;case"xyz-d50":oe=x;break;case"xyz-d65":case"xyz":oe=M;break;default:return}const le=(ue=ae,ue.parameters.map((_=>_.value))).map((_=>parseFloat(_.number)));var ue;const ce=oe(le);!y(le)&&te&&X.warn(ee,`"${re}" is out of gamut for "${ae.colorSpace}". Given "preserve: true" is set, this will lead to unexpected results in some browsers.`),_.nodes=[{sourceIndex:0,sourceEndIndex:1,value:String(Math.round(255*ce[0])),type:"word"},{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""},{sourceIndex:0,sourceEndIndex:1,value:String(Math.round(255*ce[1])),type:"word"},{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""},{sourceIndex:0,sourceEndIndex:1,value:String(Math.round(255*ce[2])),type:"word"}],ae.alpha&&(_.nodes.push({sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.push(ae.alpha))}function z(_){if(!_||"word"!==_.type)return!1;if(!O(_))return!1;const X=ne.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function A(_){return _&&"function"===_.type&&"calc"===_.value}function q(_){return _&&"function"===_.type&&"var"===_.value}function F(_){return _&&"div"===_.type&&"/"===_.value}function O(_){if(!_||!_.value)return!1;try{return!1!==ne.default.unit(_.value)}catch(_){return!1}}const j=_=>{const X="preserve"in Object(_)&&Boolean(_.preserve);return{postcssPlugin:"postcss-color-function",Declaration:(_,{result:ee})=>{if(function(_){const X=_.parent;if(!X)return!1;const ee=X.index(_);for(let te=0;te{_.type&&"function"===_.type&&"color"===_.value&&E(_,X,ee,te)}));const se=String(re);return se!==_?se:void 0}(te,_,ee,X);void 0!==re&&(X?_.cloneBefore({value:re}):_.value=re)}}};j.postcss=!0;const $=_=>{const X=Object.assign({preserve:!1,enableProgressiveCustomProperties:!0},_);return X.enableProgressiveCustomProperties&&X.preserve?{postcssPlugin:"postcss-color-function",plugins:[se.default(),j(X)]}:j(X)};$.postcss=!0,_.exports=$},8630:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));const re=["woff","truetype","opentype","woff2","embedded-opentype","collection","svg"],r=_=>{const X="preserve"in Object(_)&&Boolean(_.preserve);return{postcssPlugin:"postcss-font-format-keywords",AtRule:{"font-face"(_){"font-face"===_.name&&_.walkDecls("src",(_=>{if(!_.value.includes("format("))return;const ee=te.default(_.value);ee.walk((_=>{"function"===_.type&&"format"===_.value&&_.nodes.forEach((_=>{"word"===_.type&&re.includes(_.value)&&(_.value=te.default.stringify({type:"string",value:_.value,quote:'"'}))}))})),X?_.cloneBefore({value:ee.toString()}):_.value=ee.toString()}))}}}};r.postcss=!0,_.exports=r},1082:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));function t(_){const X=_[0];let ee=_[1],te=_[2];if(ee/=100,te/=100,ee+te>=1){const _=ee/(ee+te);return[_,_,_]}const re=function(_){let X=_[0],ee=_[1],te=_[2];X%=360,X<0&&(X+=360);function u(_){const re=(_+X/30)%12,se=ee*Math.min(te,1-te);return te-se*Math.max(-1,Math.min(re-3,9-re,1))}return ee/=100,te/=100,[u(0),u(8),u(4)]}([X,100,50]);for(let _=0;_<3;_++)re[_]*=1-ee-te,re[_]+=ee;return re.map((_=>Math.round(255*_)))}function r(_){const X=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type)),ee=function(_){if(!function(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);if(!X)return!1;return!!X.number&&("deg"===X.unit||"grad"===X.unit||"rad"===X.unit||"turn"===X.unit||""===X.unit)}(_[0]))return null;if(!u(_[1]))return null;if(!u(_[2]))return null;const X={h:te.default.unit(_[0].value),hNode:_[0],w:te.default.unit(_[1].value),wNode:_[1],b:te.default.unit(_[2].value),bNode:_[2]};if(function(_){switch(_.unit){case"deg":return void(_.unit="");case"rad":return _.unit="",void(_.number=(180*parseFloat(_.number)/Math.PI).toString());case"grad":return _.unit="",void(_.number=(.9*parseFloat(_.number)).toString());case"turn":_.unit="",_.number=(360*parseFloat(_.number)).toString()}}(X.h),""!==X.h.unit)return null;i(X.w),i(X.b),function(_){return _&&"div"===_.type&&"/"===_.value}(_[3])&&(X.slash=_[3]);(u(_[4])||function(_){return _&&"function"===_.type&&"calc"===_.value}(_[4])||function(_){return _&&"function"===_.type&&"var"===_.value}(_[4]))&&(X.alpha=_[4]);return X}(X);if(!ee)return;if(X.length>3&&(!ee.slash||!ee.alpha))return;_.value="rgb",function(_,X,ee){if(!X||!ee)return;if(_.value="rgba",X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const re=te.default.unit(ee.value);if(!re)return;"%"===re.unit&&(re.number=String(parseFloat(re.number)/100),ee.value=String(re.number))}(_,ee.slash,ee.alpha);const[re,se,ne]=[(ie=ee).hNode,ie.wNode,ie.bNode];var ie;const[oe,ae,le]=function(_){return[_.h,_.w,_.b]}(ee),ue=t([oe.number,ae.number,le.number].map((_=>parseFloat(_))));_.nodes.splice(_.nodes.indexOf(re)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.splice(_.nodes.indexOf(se)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),a(_.nodes,re,{...re,value:String(ue[0])}),a(_.nodes,se,{...se,value:String(ue[1])}),a(_.nodes,ne,{...ne,value:String(ue[2])})}function u(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function a(_,X,ee){const te=_.indexOf(X);_[te]=ee}function i(_){if("%"!==_.unit)return _.unit="%",void(_.number=(100*parseFloat(_.number)).toString())}function o(_){if(!_||!_.value)return!1;try{return!1!==te.default.unit(_.value)}catch(_){return!1}}const l=_=>{const X="preserve"in Object(_)&&Boolean(_.preserve);return{postcssPlugin:"postcss-hwb-function",Declaration:(_,{result:ee,postcss:re})=>{if(X&&function(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("supports"===X.name&&-1!==X.params.indexOf("(color: hwb(0% 0 0))"))return!0;X=X.parent}else X=X.parent;return!1}(_))return;const se=_.value;if(!se.includes("hwb"))return;const ne=function(_,X,ee){let re;try{re=te.default(_)}catch(te){X.warn(ee,`Failed to parse value '${_}' as a hwb function. Leaving the original value intact.`)}if(void 0===re)return;re.walk((_=>{_.type&&"function"===_.type&&"hwb"===_.value&&r(_)}));const se=String(re);if(se===_)return;return se}(se,_,ee);if(void 0!==ne)if(_.variable&&X){const X=_.parent,ee=re.atRule({name:"supports",params:"(color: hwb(0% 0 0))",source:_.source}),te=X.clone();te.removeAll(),te.append(_.clone()),ee.append(te),function(_,X,ee){let te=X,re=X.next();for(;te&&re&&"atrule"===re.type&&"supports"===re.name&&re.params===ee;)te=re,re=re.next();te.after(_)}(ee,X,"(color: hwb(0% 0 0))"),_.value=ne}else X?_.cloneBefore({value:ne}):_.value=ne}}};l.postcss=!0,_.exports=l},9322:(_,X,ee)=>{"use strict";var te=ee(2605),re=ee(2045);function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=t(te),ne=t(re);const n=_=>({postcssPlugin:"postcss-ic-unit",Declaration(X){if(!X.value.includes("ic"))return;if(function(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("supports"===X.name&&/\(font-size: \d+ic\)/.test(X.params))return!0;X=X.parent}else X=X.parent;return!1}(X))return;const ee=ne.default(X.value);ee.walk((_=>{if(!_.type||"word"!==_.type)return;const X=ne.default.unit(_.value);X&&"ic"===X.unit&&(_.value=`${X.number}em`)}));const te=String(ee);te!==X.value&&(_.preserve?X.cloneBefore({value:te}):X.value=te)}});n.postcss=!0;const o=_=>{const X=Object.assign({preserve:!1,enableProgressiveCustomProperties:!0},_);return X.enableProgressiveCustomProperties&&X.preserve?{postcssPlugin:"postcss-ic-unit",plugins:[se.default(),n(X)]}:n(X)};o.postcss=!0,_.exports=o},1671:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));function n(_){_&&_.nodes&&_.nodes.sort(((_,X)=>"selector"===_.type&&"selector"===X.type&&_.nodes.length&&X.nodes.length?o(_.nodes[0].value,_.nodes[0].type)-o(X.nodes[0].value,X.nodes[0].type):"selector"===_.type&&_.nodes.length?o(_.nodes[0].value,_.nodes[0].type)-o(X.value,X.type):"selector"===X.type&&X.nodes.length?o(_.value,_.type)-o(X.nodes[0].value,X.nodes[0].type):o(_.value,_.type)-o(X.value,X.type)))}function o(_,X){return"pseudo"===X&&_&&0===_.indexOf("::")?re.pseudoElement:re[X]}const re={universal:0,tag:1,id:2,class:3,attribute:4,selector:5,pseudo:6,pseudoElement:7,string:8,root:9,comment:10};function d(_,X,ee){return _.flatMap((_=>{if(-1===_.indexOf(":-csstools-matches")&&-1===_.indexOf(":is"))return _;const re=te.default().astSync(_);return re.walkPseudos((_=>{if(":is"===_.value&&_.nodes&&_.nodes.length&&"selector"===_.nodes[0].type&&0===_.nodes[0].nodes.length)return _.value=":not",void _.nodes[0].append(te.default.universal());if(":-csstools-matches"===_.value)if(!_.nodes||_.nodes.length){if(1===_.nodes.length&&"selector"===_.nodes[0].type){if(1===_.nodes[0].nodes.length)return void _.replaceWith(_.nodes[0].nodes[0]);if(!_.nodes[0].some((_=>"combinator"===_.type)))return void _.replaceWith(..._.nodes[0].nodes)}1!==re.nodes.length||"selector"!==re.nodes[0].type||1!==re.nodes[0].nodes.length||re.nodes[0].nodes[0]!==_?function(_){return!(!_||!_.nodes||"selector"!==_.type||3!==_.nodes.length||!_.nodes[0]||"pseudo"!==_.nodes[0].type||":-csstools-matches"!==_.nodes[0].value||!_.nodes[1]||"combinator"!==_.nodes[1].type||"+"!==_.nodes[1].value||!_.nodes[2]||"pseudo"!==_.nodes[2].type||":-csstools-matches"!==_.nodes[2].value||!_.nodes[0].nodes||1!==_.nodes[0].nodes.length||"selector"!==_.nodes[0].nodes[0].type||!_.nodes[0].nodes[0].nodes||3!==_.nodes[0].nodes[0].nodes.length||!_.nodes[0].nodes[0].nodes||"combinator"!==_.nodes[0].nodes[0].nodes[1].type||">"!==_.nodes[0].nodes[0].nodes[1].value||!_.nodes[2].nodes||1!==_.nodes[2].nodes.length||"selector"!==_.nodes[2].nodes[0].type||!_.nodes[2].nodes[0].nodes||3!==_.nodes[2].nodes[0].nodes.length||!_.nodes[2].nodes[0].nodes||"combinator"!==_.nodes[2].nodes[0].nodes[1].type||">"!==_.nodes[2].nodes[0].nodes[1].value||(_.nodes[0].nodes[0].insertAfter(_.nodes[0].nodes[0].nodes[0],_.nodes[2].nodes[0].nodes[0].clone()),_.nodes[2].nodes[0].nodes[1].remove(),_.nodes[2].nodes[0].nodes[0].remove(),_.nodes[0].replaceWith(_.nodes[0].nodes[0]),_.nodes[2].replaceWith(_.nodes[2].nodes[0]),0))}(_.parent)||function(_){if(!_||!_.nodes)return!1;if("selector"!==_.type)return!1;if(2!==_.nodes.length)return!1;let X,ee;return _.nodes[0]&&"pseudo"===_.nodes[0].type&&":-csstools-matches"===_.nodes[0].value?(X=0,ee=1):_.nodes[1]&&"pseudo"===_.nodes[1].type&&":-csstools-matches"===_.nodes[1].value&&(X=1,ee=0),!(!X||!_.nodes[ee]||"selector"===_.nodes[ee].type&&_.nodes[ee].some((_=>"combinator"===_.type))||(_.nodes[X].append(_.nodes[ee].clone()),_.nodes[X].replaceWith(..._.nodes[X].nodes),_.nodes[ee].remove(),0))}(_.parent)||("warning"===X.onComplexSelector&&ee(),_.value=":is"):_.replaceWith(..._.nodes[0].nodes)}else _.remove()})),re.walk((_=>{"selector"===_.type&&"nodes"in _&&1===_.nodes.length&&"selector"===_.nodes[0].type&&_.replaceWith(_.nodes[0])})),re.walk((_=>{"nodes"in _&&function(_){if(!_||!_.nodes)return;let X=[];const ee=[..._.nodes];for(let _=0;_1){const _=te.default.selector({value:""});X[0].replaceWith(_),X.slice(1).forEach((_=>{_.remove()})),X.forEach((X=>{_.append(X)})),n(_),_.replaceWith(..._.nodes)}X=[]}}}(_)})),re.toString()})).filter((_=>!!_))}function l(_){let X=0,ee=0,re=0;if("universal"==_.type)return{a:0,b:0,c:0};if("id"===_.type)X+=1;else if("tag"===_.type)re+=1;else if("class"===_.type)ee+=1;else if("attribute"===_.type)ee+=1;else if("pseudo"===_.type&&0===_.value.indexOf("::"))re+=1;else if("pseudo"===_.type)switch(_.value){case":after":case":before":re+=1;break;case":is":case":has":case":not":if(_.nodes&&_.nodes.length>0){let te={a:0,b:0,c:0};_.nodes.forEach((_=>{const X=l(_);X.a>te.a?te=X:X.ate.b?te=X:X.bte.c&&(te=X))})),X+=te.a,ee+=te.b,re+=te.c}break;case"where":break;case":nth-child":case":nth-last-child":{const se=_.nodes.findIndex((_=>{_.value}));if(se>-1){const ne=l(te.default.selector({nodes:_.nodes.slice(se+1),value:""}));X+=ne.a,ee+=ne.b,re+=ne.c}else X+=X,ee+=ee,re+=re}break;default:ee+=1}else _.nodes&&_.nodes.length>0&&_.nodes.forEach((_=>{const te=l(_);X+=te.a,ee+=te.b,re+=te.c}));return{a:X,b:ee,c:re}}function r(_,X,ee=0){const re=":not(#"+X.specificityMatchingName+")",se=":not(."+X.specificityMatchingName+")",ne=":not("+X.specificityMatchingName+")";return _.flatMap((_=>{if(-1===_.indexOf(":is"))return _;let ie=!1;const oe=[];if(te.default().astSync(_).walkPseudos((_=>{if(":is"!==_.value||!_.nodes||!_.nodes.length)return;if("selector"===_.nodes[0].type&&0===_.nodes[0].nodes.length)return;let X=_.parent;for(;X;){if(":is"===X.value&&"pseudo"===X.type)return void(ie=!0);X=X.parent}const ee=l(_),te=_.sourceIndex,ae=te+_.toString().length,le=[];_.nodes.forEach((_=>{const X={start:te,end:ae,option:""},ie=l(_);let oe=_.toString().trim();const ue=Math.max(0,ee.a-ie.a),ce=Math.max(0,ee.b-ie.b),pe=Math.max(0,ee.c-ie.c);for(let _=0;_{let ee="";for(let re=0;re!!_))}const c=_=>{const X={specificityMatchingName:"does-not-exist",..._||{}};return{postcssPlugin:"postcss-is-pseudo-class",Rule(_,{result:ee}){if(!_.selector)return;if(-1===_.selector.indexOf(":is"))return;let te=!1;const t=()=>{"warning"===X.onComplexSelector&&(te||(te=!0,_.warn(ee,`Complex selectors in '${_.selector}' can not be transformed to an equivalent selector without ':is()'.`)))};try{let ee=!1;const te=[],re=d(r(_.selectors,{specificityMatchingName:X.specificityMatchingName}),{onComplexSelector:X.onComplexSelector},t);if(Array.from(new Set(re)).forEach((X=>{_.selectors.indexOf(X)>-1?te.push(X):(_.cloneBefore({selector:X}),ee=!0)})),te.length&&ee&&_.cloneBefore({selectors:te}),!X.preserve){if(!ee)return;_.remove()}}catch(X){if(X.message.indexOf("call stack size exceeded")>-1)throw X;_.warn(ee,`Failed to parse selector "${_.selector}"`)}}}};c.postcss=!0,_.exports=c},2757:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045)),re=new Map([["block,flow","block"],["block,flow-root","flow-root"],["inline,flow","inline"],["inline,flow-root","inline-block"],["run-in,flow","run-in"],["list-item,block,flow","list-item"],["inline,flow,list-item","inline list-item"],["block,flex","flex"],["inline,flex","inline-flex"],["block,grid","grid"],["inline,grid","inline-grid"],["inline,ruby","ruby"],["block,table","table"],["inline,table","inline-table"],["table-cell,flow","table-cell"],["table-caption,flow","table-caption"],["ruby-base,flow","ruby-base"],["ruby-text,flow","ruby-text"]]);const n=_=>{const X=!("preserve"in Object(_))||Boolean(_.preserve);return{postcssPlugin:"postcss-normalize-display-values",prepare(){const _=new Map;return{Declaration:{display(ee){const se=ee.value;if(!se)return;if(_.has(se))return void(ee.value!==_.get(se)&&(X?ee.cloneBefore({value:_.get(se)}):ee.value=_.get(se)));const ne=function(_){const{nodes:X}=te.default(_);if(1===X.length)return _;const ee=X.filter((_=>"word"===_.type)).map((_=>_.value.toLowerCase()));if(ee.length<=1)return _;return re.get(ee.join(","))||_}(se);ee.value!==ne&&(X?ee.cloneBefore({value:ne}):ee.value=ne),_.set(se,ne)}}}}}};n.postcss=!0,_.exports=n},4873:(_,X,ee)=>{"use strict";var te=ee(2605),re=ee(2045);function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=t(te),ne=t(re); /** * Simple matrix (and vector) multiplication * Warning: No error handling for incompatible dimensions! @@ -55,7 +55,7 @@ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang). * * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js - */function y(_,X){const[ee,te,re]=_,[se,ne,ie]=X,oe=ee-se,ae=te-ne,le=re-ie;return Math.sqrt(oe**2+ae**2+le**2)}function g(_,X,ee){return function(_,X,ee){let te=0,re=_[1];const se=_;for(;re-te>1e-4;){const _=x(X(se));y(h(se),h(ee(_)))-.02<1e-4?te=se[1]:re=se[1],se[1]=(re+te)/2}return x(X([...se]))}(_,X,ee)}function x(_){return _.map((_=>_<0?0:_>1?1:_))}function F(_){const[X,ee,te]=_;return X>=-1e-4&&X<=1.0001&&ee>=-1e-4&&ee<=1.0001&&te>=-1e-4&&te<=1.0001}function M(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te],se=m(re);return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=v(re),re=d(re),re=f(re),F(re)?[x(re),!0]:[g(se,(_=>f(_=d(_=v(_=h(_))))),(_=>m(_=b(_=p(_=c(_)))))),!1]}function k(_){const[X,ee,te]=_,re=[Math.max(X,0),ee,te%360];let se=re;return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),se=h(se),se=v(se),se=d(se),se=f(se),F(se)?[x(se),!0]:[g(re,(_=>f(_=d(_=v(_=h(_))))),(_=>m(_=b(_=p(_=c(_)))))),!1]}function P(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te],se=m(re);return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=v(re),re=s(re),re=i(re),F(re)?x(re).map((_=>Math.round(255*_))):g(se,(_=>i(_=s(_=v(_=h(_))))),(_=>m(_=b(_=l(_=o(_)))))).map((_=>Math.round(255*_)))}function w(_){const[X,ee,te]=_,re=[Math.max(X,0),ee,te%360];let se=re;return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),se=h(se),se=v(se),se=s(se),se=i(se),F(se)?x(se).map((_=>Math.round(255*_))):g(re,(_=>i(_=s(_=v(_=h(_))))),(_=>m(_=b(_=l(_=o(_)))))).map((_=>Math.round(255*_)))}function I(_){const X=_.value,ee=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let te=null;if("oklab"===X?te=B(ee):"oklch"===X&&(te=q(ee)),!te)return;_.value="rgb",function(_,X,ee){if(!X||!ee)return;if(_.value="rgba",X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!D(_))return!1;const X=ne.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const te=ne.default.unit(ee.value);if(!te)return;"%"===te.unit&&(te.number=String(parseFloat(te.number)/100),ee.value=String(te.number))}(_,te.slash,te.alpha);const[re,se,ie]=j(te),[oe,ae,le]=C(te),ue=("oklab"===X?P:w)([oe.number,ae.number,le.number].map((_=>parseFloat(_))));_.nodes.splice(_.nodes.indexOf(re)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.splice(_.nodes.indexOf(se)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),$(_.nodes,re,{...re,value:String(ue[0])}),$(_.nodes,se,{...se,value:String(ue[1])}),$(_.nodes,ie,{...ie,value:String(ue[2])})}function N(_){if(!_||"word"!==_.type)return!1;if(!D(_))return!1;const X=ne.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function S(_){return _&&"function"===_.type&&"calc"===_.value}function O(_){return _&&"function"===_.type&&"var"===_.value}function A(_){return _&&"div"===_.type&&"/"===_.value}function q(_){if(!N(_[0]))return null;if(!N(_[1]))return null;if(!function(_){if(!_||"word"!==_.type)return!1;if(!D(_))return!1;const X=ne.default.unit(_.value);return!(!X||!X.number||"deg"!==X.unit&&"grad"!==X.unit&&"rad"!==X.unit&&"turn"!==X.unit&&""!==X.unit)}(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],c:ne.default.unit(_[1].value),cNode:_[1],h:ne.default.unit(_[2].value),hNode:_[2]};return function(_){switch(_.unit){case"deg":return void(_.unit="");case"rad":return _.unit="",void(_.number=(180*parseFloat(_.number)/Math.PI).toString());case"grad":return _.unit="",void(_.number=(.9*parseFloat(_.number)).toString());case"turn":_.unit="",_.number=(360*parseFloat(_.number)).toString()}}(X.h),""!==X.h.unit?null:(A(_[3])&&(X.slash=_[3]),(N(_[4])||S(_[4])||O(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit="",X.l.number=(parseFloat(X.l.number)/100).toFixed(10)),"%"===X.c.unit&&(X.c.unit="",X.c.number=(parseFloat(X.c.number)/100*.4).toFixed(10)),X):null)}function B(_){if(!N(_[0]))return null;if(!N(_[1]))return null;if(!N(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],a:ne.default.unit(_[1].value),aNode:_[1],b:ne.default.unit(_[2].value),bNode:_[2]};return A(_[3])&&(X.slash=_[3]),(N(_[4])||S(_[4])||O(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit="",X.l.number=(parseFloat(X.l.number)/100).toFixed(10)),"%"===X.a.unit&&(X.a.unit="",X.a.number=(parseFloat(X.a.number)/100*.4).toFixed(10)),"%"===X.b.unit&&(X.b.unit="",X.b.number=(parseFloat(X.b.number)/100*.4).toFixed(10)),X):null}function E(_){return void 0!==_.a}function j(_){return E(_)?[_.lNode,_.aNode,_.bNode]:[_.lNode,_.cNode,_.hNode]}function C(_){return E(_)?[_.l,_.a,_.b]:[_.l,_.c,_.h]}function $(_,X,ee){const te=_.indexOf(X);_[te]=ee}function D(_){if(!_||!_.value)return!1;try{return!1!==ne.default.unit(_.value)}catch(_){return!1}}function G(_,X,ee,te){let re;try{re=ne.default(_)}catch(te){X.warn(ee,`Failed to parse value '${_}' as an oklab or oklch function. Leaving the original value intact.`)}if(void 0===re)return;re.walk((_=>{_.type&&"function"===_.type&&("oklab"!==_.value&&"oklch"!==_.value||I(_))}));const se=String(re);if(se===_)return;const ie=ne.default(_);ie.walk((_=>{_.type&&"function"===_.type&&("oklab"!==_.value&&"oklch"!==_.value||function(_,X,ee,te){const re=ne.default.stringify(_),se=_.value,ie=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let oe=null;if("oklab"===se?oe=B(ie):"oklch"===se&&(oe=q(ie)),!oe)return;if(ie.length>3&&(!oe.slash||!oe.alpha))return;_.value="color";const[ae,le,ue]=j(oe),[ce,pe,fe]=C(oe),de="oklab"===se?M:k,he=[ce.number,pe.number,fe.number].map((_=>parseFloat(_))),[me,ge]=de(he);!ge&&te&&X.warn(ee,`"${re}" is out of gamut for "display-p3". Given "preserve: true" is set, this will lead to unexpected results in some browsers.`),_.nodes.splice(0,0,{sourceIndex:0,sourceEndIndex:10,value:"display-p3",type:"word"}),_.nodes.splice(1,0,{sourceIndex:0,sourceEndIndex:1,value:" ",type:"space"}),$(_.nodes,ae,{...ae,value:me[0].toFixed(5)}),$(_.nodes,le,{...le,value:me[1].toFixed(5)}),$(_.nodes,ue,{...ue,value:me[2].toFixed(5)})}(_,X,ee,te))}));return{rgb:se,displayP3:String(ie)}}const L=_=>({postcssPlugin:"postcss-oklab-function",Declaration:(X,{result:ee})=>{if(function(_){const X=_.parent;if(!X)return!1;const ee=X.index(_);for(let te=0;te{const X=Object.assign({enableProgressiveCustomProperties:!0,preserve:!1,subFeatures:{displayP3:!0}},_);return X.subFeatures=Object.assign({displayP3:!0},X.subFeatures),X.enableProgressiveCustomProperties&&(X.preserve||X.subFeatures.displayP3)?{postcssPlugin:"postcss-oklab-function",plugins:[se.default(),L(X)]}:L(X)};z.postcss=!0,_.exports=z},5449:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));const re=[{supports:"color(srgb 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"srgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"srgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(srgb-linear 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"srgb-linear"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"srgb-linear"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(a98-rgb 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"a98-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"a98-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(prophoto-rgb 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"prophoto-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"prophoto-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(display-p3 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"display-p3"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"display-p3"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(rec2020 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"rec2020"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"rec2020"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(xyz-d50 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d50"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d50"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(xyz-d65 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d65"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d65"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(xyz 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"xyz"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"xyz"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"hsl(0, 0%, 0%)",property:"color",sniff:"hsl",matchers:[{type:"function",value:"hsl",nodes:[{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]}]},{supports:"hsl(0 0% 0% / 0)",property:"color",sniff:"hsl",matchers:[{type:"function",value:"hsl",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"hsl",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"hsla(0 0% 0% / 0)",property:"color",sniff:"hsla",matchers:[{type:"function",value:"hsla",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"hwb(0 0% 0%)",property:"color",sniff:"hwb",matchers:[{type:"function",value:"hwb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"hwb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"lab(0% 0 0)",property:"color",sniff:"lab",matchers:[{type:"function",value:"lab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"lab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"lch(0% 0 0)",property:"color",sniff:"lch",matchers:[{type:"function",value:"lch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"lch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"oklab(0% 0 0)",property:"color",sniff:"oklab",matchers:[{type:"function",value:"oklab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"oklab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"oklch(0% 0 0)",property:"color",sniff:"oklch",matchers:[{type:"function",value:"oklch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"oklch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"rgb(0, 0, 0, 0)",property:"color",sniff:"rgb",matchers:[{type:"function",value:"rgb",nodes:[{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]}]},{supports:"rgb(0 0 0 / 0)",property:"color",sniff:"rgb",matchers:[{type:"function",value:"rgb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"rgb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"rgba(0 0 0 / 0)",property:"color",sniff:"rgba",matchers:[{type:"function",value:"rgba",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color-mix(in oklch, #000, #fff)",property:"color",sniff:"color-mix",matchers:[{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]}]},{supports:"1ic",property:"font-size",sniff:"ic",matchers:[{type:"word",value:"1ic",dimension:{unit:"ic"}}]}];function p(_,X){if(_.isVariable&&X)return!0;if(_.type!==X.type)return!1;if(function(_,X){if("space"===_.type&&"space"===X.type&&_.value.trim()===X.value.trim())return!1;if(_.dimension&&X.dimension)return _.dimension.unit!==X.dimension.unit;if(_.value!==X.value)return!0;return!1}(_,X))return!1;if(_.nodes&&X.nodes){for(let ee=0;ee<_.nodes.length;ee++){let te=ee,re=ee;for(;_.nodes[te]&&"space"===_.nodes[te].type;)te++;for(;X.nodes[re]&&"space"===X.nodes[re].type;)re++;if(!!_.nodes[te]!=!!X.nodes[re])return!1;if(!p(_.nodes[te],X.nodes[re]))return!1}return!0}return!0}const se=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"];function i(_){const X=[],ee=[];re.forEach((X=>{_.indexOf(X.sniff)>-1&&ee.push(X)}));try{te.default(_).walk((_=>{try{_.dimension=te.default.unit(_.value)}finally{!1===_.dimension&&delete _.dimension}for(let te=0;te({postcssPlugin:"postcss-progressive-custom-properties",RuleExit:(_,{postcss:X})=>{const ee=[],te=new Set;_.each((re=>{if("decl"!==re.type)return;if(!re.variable)return;if("initial"===re.value.trim())return;if(""===re.value.trim())return;if(!te.has(re.prop.toString()))return void te.add(re.prop.toString());const se=i(re.value);if(!se.length)return;const ne=X.atRule({name:"supports",params:se.join(" and "),source:_.source,raws:{before:"\n\n",after:"\n"}}),ie=_.clone();ie.removeAll(),ie.raws.before="\n",ie.append(re.clone()),re.remove(),ne.append(ie),ee.push(ne)})),0!==ee.length&&ee.reverse().forEach((X=>{_.after(X)}))}});o.postcss=!0,_.exports=o},3570:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const r=_=>{const X=String(Object(_).replaceWith||"[blank]"),ee=te.default().astSync(X),re=Boolean(!("preserve"in Object(_))||_.preserve);return{postcssPlugin:"css-blank-pseudo",Rule:(_,{result:X})=>{if(-1===_.selector.indexOf(":blank"))return;let se;try{const X=te.default((_=>{_.walkPseudos((_=>{":blank"===_.value&&(_.nodes&&_.nodes.length||_.replaceWith(ee.clone()))}))})).processSync(_.selector);se=String(X)}catch(ee){return void _.warn(X,`Failed to parse selector : ${_.selector}`)}if(void 0===se)return;if(se===_.selector)return;const ne=_.clone({selector:se});re?_.before(ne):_.replaceWith(ne)}}};r.postcss=!0,_.exports=r},3318:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const s=_=>{_="object"==typeof _&&_||re;const X=Boolean(!("preserve"in _)||_.preserve);return{postcssPlugin:"css-has-pseudo",Rule:(_,{result:ee})=>{if(!_.selector.includes(":has("))return;let re;try{const X=te.default((_=>{_.walkPseudos((_=>{if(":has"===_.value&&_.nodes){const X=r(_);_.value=X?":not-has":":has";const ee=te.default.attribute({attribute:o(String(_))});X?_.parent.parent.replaceWith(ee):_.replaceWith(ee)}}))})).processSync(_.selector);re=String(X)}catch(X){return void _.warn(ee,`Failed to parse selector : ${_.selector}`)}void 0!==re&&re!==_.selector&&(X?_.cloneBefore({selector:re}):_.selector=re)}}};s.postcss=!0;const re={preserve:!0},o=_=>{let X="",ee="";const n=()=>{if(ee){const _=encodeURIComponent(ee);let te="",re="";const r=()=>{te&&(re+=te,te="")};let se=!1;for(let X=0;X<_.length;X++){const ee=_[X];if(se)te+=ee,se=!1;else switch(ee){case"%":r(),re+="\\"+ee;continue;case"\\":te+=ee,se=!0;continue;default:te+=ee;continue}}r(),X+=re,ee=""}};let te=!1;for(let re=0;re<_.length;re++){const se=_[re];if(te)ee+=se,te=!1;else switch(se){case":":case"[":case"]":case",":case"(":case")":n(),X+="\\"+se;continue;case"\\":ee+=se,te=!0;continue;default:ee+=se;continue}}return n(),X},r=_=>{var X,ee;return"pseudo"===(null==(X=_.parent)||null==(ee=X.parent)?void 0:ee.type)&&":not"===_.parent.parent.value};_.exports=s},8780:_=>{"use strict";const X=/^media$/i,ee=/\(\s*prefers-color-scheme\s*:\s*(dark|light|no-preference)\s*\)/i,te={dark:48,light:70,"no-preference":22},s=(_,X)=>`(color-index: ${te[X.toLowerCase()]})`,re={dark:48842621,light:70318723,"no-preference":22511989},t=(_,X)=>`(color: ${re[X.toLowerCase()]})`,l=_=>{const te=!("preserve"in Object(_))||_.preserve,re={};return!("mediaQuery"in Object(_))||"color-index"!==_.mediaQuery&&"color"!==_.mediaQuery?(re["color-index"]=!0,re.color=!0):re[_.mediaQuery]=!0,{postcssPlugin:"postcss-prefers-color-scheme",AtRule:_=>{if(!X.test(_.name))return;const{params:se}=_,ne=se.replace(ee,s),ie=se.replace(ee,t);let oe=!1;se!==ne&&re["color-index"]&&(_.cloneBefore({params:ne}),oe=!0),se!==ie&&re.color&&(_.cloneBefore({params:ie}),oe=!0),!te&&oe&&_.remove()}}};l.postcss=!0,_.exports=l},725:function(_,X){ + */function y(_,X){const[ee,te,re]=_,[se,ne,ie]=X,oe=ee-se,ae=te-ne,le=re-ie;return Math.sqrt(oe**2+ae**2+le**2)}function g(_,X,ee){return function(_,X,ee){let te=0,re=_[1];const se=_;for(;re-te>1e-4;){const _=x(X(se));y(h(se),h(ee(_)))-.02<1e-4?te=se[1]:re=se[1],se[1]=(re+te)/2}return x(X([...se]))}(_,X,ee)}function x(_){return _.map((_=>_<0?0:_>1?1:_))}function F(_){const[X,ee,te]=_;return X>=-1e-4&&X<=1.0001&&ee>=-1e-4&&ee<=1.0001&&te>=-1e-4&&te<=1.0001}function M(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te],se=m(re);return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=v(re),re=d(re),re=f(re),F(re)?[x(re),!0]:[g(se,(_=>f(_=d(_=v(_=h(_))))),(_=>m(_=b(_=p(_=c(_)))))),!1]}function k(_){const[X,ee,te]=_,re=[Math.max(X,0),ee,te%360];let se=re;return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),se=h(se),se=v(se),se=d(se),se=f(se),F(se)?[x(se),!0]:[g(re,(_=>f(_=d(_=v(_=h(_))))),(_=>m(_=b(_=p(_=c(_)))))),!1]}function P(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te],se=m(re);return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=v(re),re=s(re),re=i(re),F(re)?x(re).map((_=>Math.round(255*_))):g(se,(_=>i(_=s(_=v(_=h(_))))),(_=>m(_=b(_=l(_=o(_)))))).map((_=>Math.round(255*_)))}function w(_){const[X,ee,te]=_,re=[Math.max(X,0),ee,te%360];let se=re;return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),se=h(se),se=v(se),se=s(se),se=i(se),F(se)?x(se).map((_=>Math.round(255*_))):g(re,(_=>i(_=s(_=v(_=h(_))))),(_=>m(_=b(_=l(_=o(_)))))).map((_=>Math.round(255*_)))}function I(_){const X=_.value,ee=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let te=null;if("oklab"===X?te=B(ee):"oklch"===X&&(te=q(ee)),!te)return;_.value="rgb",function(_,X,ee){if(!X||!ee)return;if(_.value="rgba",X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!D(_))return!1;const X=ne.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const te=ne.default.unit(ee.value);if(!te)return;"%"===te.unit&&(te.number=String(parseFloat(te.number)/100),ee.value=String(te.number))}(_,te.slash,te.alpha);const[re,se,ie]=j(te),[oe,ae,le]=C(te),ue=("oklab"===X?P:w)([oe.number,ae.number,le.number].map((_=>parseFloat(_))));_.nodes.splice(_.nodes.indexOf(re)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.splice(_.nodes.indexOf(se)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),$(_.nodes,re,{...re,value:String(ue[0])}),$(_.nodes,se,{...se,value:String(ue[1])}),$(_.nodes,ie,{...ie,value:String(ue[2])})}function N(_){if(!_||"word"!==_.type)return!1;if(!D(_))return!1;const X=ne.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function S(_){return _&&"function"===_.type&&"calc"===_.value}function O(_){return _&&"function"===_.type&&"var"===_.value}function A(_){return _&&"div"===_.type&&"/"===_.value}function q(_){if(!N(_[0]))return null;if(!N(_[1]))return null;if(!function(_){if(!_||"word"!==_.type)return!1;if(!D(_))return!1;const X=ne.default.unit(_.value);return!(!X||!X.number||"deg"!==X.unit&&"grad"!==X.unit&&"rad"!==X.unit&&"turn"!==X.unit&&""!==X.unit)}(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],c:ne.default.unit(_[1].value),cNode:_[1],h:ne.default.unit(_[2].value),hNode:_[2]};return function(_){switch(_.unit){case"deg":return void(_.unit="");case"rad":return _.unit="",void(_.number=(180*parseFloat(_.number)/Math.PI).toString());case"grad":return _.unit="",void(_.number=(.9*parseFloat(_.number)).toString());case"turn":_.unit="",_.number=(360*parseFloat(_.number)).toString()}}(X.h),""!==X.h.unit?null:(A(_[3])&&(X.slash=_[3]),(N(_[4])||S(_[4])||O(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit="",X.l.number=(parseFloat(X.l.number)/100).toFixed(10)),"%"===X.c.unit&&(X.c.unit="",X.c.number=(parseFloat(X.c.number)/100*.4).toFixed(10)),X):null)}function B(_){if(!N(_[0]))return null;if(!N(_[1]))return null;if(!N(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],a:ne.default.unit(_[1].value),aNode:_[1],b:ne.default.unit(_[2].value),bNode:_[2]};return A(_[3])&&(X.slash=_[3]),(N(_[4])||S(_[4])||O(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit="",X.l.number=(parseFloat(X.l.number)/100).toFixed(10)),"%"===X.a.unit&&(X.a.unit="",X.a.number=(parseFloat(X.a.number)/100*.4).toFixed(10)),"%"===X.b.unit&&(X.b.unit="",X.b.number=(parseFloat(X.b.number)/100*.4).toFixed(10)),X):null}function E(_){return void 0!==_.a}function j(_){return E(_)?[_.lNode,_.aNode,_.bNode]:[_.lNode,_.cNode,_.hNode]}function C(_){return E(_)?[_.l,_.a,_.b]:[_.l,_.c,_.h]}function $(_,X,ee){const te=_.indexOf(X);_[te]=ee}function D(_){if(!_||!_.value)return!1;try{return!1!==ne.default.unit(_.value)}catch(_){return!1}}function G(_,X,ee,te){let re;try{re=ne.default(_)}catch(te){X.warn(ee,`Failed to parse value '${_}' as an oklab or oklch function. Leaving the original value intact.`)}if(void 0===re)return;re.walk((_=>{_.type&&"function"===_.type&&("oklab"!==_.value&&"oklch"!==_.value||I(_))}));const se=String(re);if(se===_)return;const ie=ne.default(_);ie.walk((_=>{_.type&&"function"===_.type&&("oklab"!==_.value&&"oklch"!==_.value||function(_,X,ee,te){const re=ne.default.stringify(_),se=_.value,ie=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let oe=null;if("oklab"===se?oe=B(ie):"oklch"===se&&(oe=q(ie)),!oe)return;if(ie.length>3&&(!oe.slash||!oe.alpha))return;_.value="color";const[ae,le,ue]=j(oe),[ce,pe,fe]=C(oe),de="oklab"===se?M:k,he=[ce.number,pe.number,fe.number].map((_=>parseFloat(_))),[me,ge]=de(he);!ge&&te&&X.warn(ee,`"${re}" is out of gamut for "display-p3". Given "preserve: true" is set, this will lead to unexpected results in some browsers.`),_.nodes.splice(0,0,{sourceIndex:0,sourceEndIndex:10,value:"display-p3",type:"word"}),_.nodes.splice(1,0,{sourceIndex:0,sourceEndIndex:1,value:" ",type:"space"}),$(_.nodes,ae,{...ae,value:me[0].toFixed(5)}),$(_.nodes,le,{...le,value:me[1].toFixed(5)}),$(_.nodes,ue,{...ue,value:me[2].toFixed(5)})}(_,X,ee,te))}));return{rgb:se,displayP3:String(ie)}}const L=_=>({postcssPlugin:"postcss-oklab-function",Declaration:(X,{result:ee})=>{if(function(_){const X=_.parent;if(!X)return!1;const ee=X.index(_);for(let te=0;te{const X=Object.assign({enableProgressiveCustomProperties:!0,preserve:!1,subFeatures:{displayP3:!0}},_);return X.subFeatures=Object.assign({displayP3:!0},X.subFeatures),X.enableProgressiveCustomProperties&&(X.preserve||X.subFeatures.displayP3)?{postcssPlugin:"postcss-oklab-function",plugins:[se.default(),L(X)]}:L(X)};z.postcss=!0,_.exports=z},2605:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));const re=[{supports:"color(srgb 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"srgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"srgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(srgb-linear 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"srgb-linear"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"srgb-linear"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(a98-rgb 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"a98-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"a98-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(prophoto-rgb 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"prophoto-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"prophoto-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(display-p3 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"display-p3"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"display-p3"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(rec2020 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"rec2020"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"rec2020"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(xyz-d50 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d50"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d50"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(xyz-d65 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d65"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d65"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(xyz 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"xyz"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"xyz"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"hsl(0, 0%, 0%)",property:"color",sniff:"hsl",matchers:[{type:"function",value:"hsl",nodes:[{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]}]},{supports:"hsl(0 0% 0% / 0)",property:"color",sniff:"hsl",matchers:[{type:"function",value:"hsl",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"hsl",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"hsla(0 0% 0% / 0)",property:"color",sniff:"hsla",matchers:[{type:"function",value:"hsla",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"hwb(0 0% 0%)",property:"color",sniff:"hwb",matchers:[{type:"function",value:"hwb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"hwb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"lab(0% 0 0)",property:"color",sniff:"lab",matchers:[{type:"function",value:"lab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"lab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"lch(0% 0 0)",property:"color",sniff:"lch",matchers:[{type:"function",value:"lch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"lch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"oklab(0% 0 0)",property:"color",sniff:"oklab",matchers:[{type:"function",value:"oklab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"oklab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"oklch(0% 0 0)",property:"color",sniff:"oklch",matchers:[{type:"function",value:"oklch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"oklch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"rgb(0, 0, 0, 0)",property:"color",sniff:"rgb",matchers:[{type:"function",value:"rgb",nodes:[{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]}]},{supports:"rgb(0 0 0 / 0)",property:"color",sniff:"rgb",matchers:[{type:"function",value:"rgb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"rgb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"rgba(0 0 0 / 0)",property:"color",sniff:"rgba",matchers:[{type:"function",value:"rgba",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color-mix(in oklch, #000, #fff)",property:"color",sniff:"color-mix",matchers:[{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]}]},{supports:"1ic",property:"font-size",sniff:"ic",matchers:[{type:"word",value:"1ic",dimension:{unit:"ic"}}]}];function p(_,X){if(_.isVariable&&X)return!0;if(_.type!==X.type)return!1;if(function(_,X){if("space"===_.type&&"space"===X.type&&_.value.trim()===X.value.trim())return!1;if(_.dimension&&X.dimension)return _.dimension.unit!==X.dimension.unit;if(_.value!==X.value)return!0;return!1}(_,X))return!1;if(_.nodes&&X.nodes){for(let ee=0;ee<_.nodes.length;ee++){let te=ee,re=ee;for(;_.nodes[te]&&"space"===_.nodes[te].type;)te++;for(;X.nodes[re]&&"space"===X.nodes[re].type;)re++;if(!!_.nodes[te]!=!!X.nodes[re])return!1;if(!p(_.nodes[te],X.nodes[re]))return!1}return!0}return!0}const se=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"];function i(_){const X=[],ee=[];re.forEach((X=>{_.indexOf(X.sniff)>-1&&ee.push(X)}));try{te.default(_).walk((_=>{try{_.dimension=te.default.unit(_.value)}finally{!1===_.dimension&&delete _.dimension}for(let te=0;te({postcssPlugin:"postcss-progressive-custom-properties",RuleExit:(_,{postcss:X})=>{const ee=[],te=new Set;_.each((re=>{if("decl"!==re.type)return;if(!re.variable)return;if("initial"===re.value.trim())return;if(""===re.value.trim())return;if(!te.has(re.prop.toString()))return void te.add(re.prop.toString());const se=i(re.value);if(!se.length)return;const ne=X.atRule({name:"supports",params:se.join(" and "),source:_.source,raws:{before:"\n\n",after:"\n"}}),ie=_.clone();ie.removeAll(),ie.raws.before="\n",ie.append(re.clone()),re.remove(),ne.append(ie),ee.push(ne)})),0!==ee.length&&ee.reverse().forEach((X=>{_.after(X)}))}});o.postcss=!0,_.exports=o},6504:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const r=_=>{const X=String(Object(_).replaceWith||"[blank]"),ee=te.default().astSync(X),re=Boolean(!("preserve"in Object(_))||_.preserve);return{postcssPlugin:"css-blank-pseudo",Rule:(_,{result:X})=>{if(-1===_.selector.indexOf(":blank"))return;let se;try{const X=te.default((_=>{_.walkPseudos((_=>{":blank"===_.value&&(_.nodes&&_.nodes.length||_.replaceWith(ee.clone()))}))})).processSync(_.selector);se=String(X)}catch(ee){return void _.warn(X,`Failed to parse selector : ${_.selector}`)}if(void 0===se)return;if(se===_.selector)return;const ne=_.clone({selector:se});re?_.before(ne):_.replaceWith(ne)}}};r.postcss=!0,_.exports=r},4139:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const s=_=>{_="object"==typeof _&&_||re;const X=Boolean(!("preserve"in _)||_.preserve);return{postcssPlugin:"css-has-pseudo",Rule:(_,{result:ee})=>{if(!_.selector.includes(":has("))return;let re;try{const X=te.default((_=>{_.walkPseudos((_=>{if(":has"===_.value&&_.nodes){const X=r(_);_.value=X?":not-has":":has";const ee=te.default.attribute({attribute:o(String(_))});X?_.parent.parent.replaceWith(ee):_.replaceWith(ee)}}))})).processSync(_.selector);re=String(X)}catch(X){return void _.warn(ee,`Failed to parse selector : ${_.selector}`)}void 0!==re&&re!==_.selector&&(X?_.cloneBefore({selector:re}):_.selector=re)}}};s.postcss=!0;const re={preserve:!0},o=_=>{let X="",ee="";const n=()=>{if(ee){const _=encodeURIComponent(ee);let te="",re="";const r=()=>{te&&(re+=te,te="")};let se=!1;for(let X=0;X<_.length;X++){const ee=_[X];if(se)te+=ee,se=!1;else switch(ee){case"%":r(),re+="\\"+ee;continue;case"\\":te+=ee,se=!0;continue;default:te+=ee;continue}}r(),X+=re,ee=""}};let te=!1;for(let re=0;re<_.length;re++){const se=_[re];if(te)ee+=se,te=!1;else switch(se){case":":case"[":case"]":case",":case"(":case")":n(),X+="\\"+se;continue;case"\\":ee+=se,te=!0;continue;default:ee+=se;continue}}return n(),X},r=_=>{var X,ee;return"pseudo"===(null==(X=_.parent)||null==(ee=X.parent)?void 0:ee.type)&&":not"===_.parent.parent.value};_.exports=s},4585:_=>{"use strict";const X=/^media$/i,ee=/\(\s*prefers-color-scheme\s*:\s*(dark|light|no-preference)\s*\)/i,te={dark:48,light:70,"no-preference":22},s=(_,X)=>`(color-index: ${te[X.toLowerCase()]})`,re={dark:48842621,light:70318723,"no-preference":22511989},t=(_,X)=>`(color: ${re[X.toLowerCase()]})`,l=_=>{const te=!("preserve"in Object(_))||_.preserve,re={};return!("mediaQuery"in Object(_))||"color-index"!==_.mediaQuery&&"color"!==_.mediaQuery?(re["color-index"]=!0,re.color=!0):re[_.mediaQuery]=!0,{postcssPlugin:"postcss-prefers-color-scheme",AtRule:_=>{if(!X.test(_.name))return;const{params:se}=_,ne=se.replace(ee,s),ie=se.replace(ee,t);let oe=!1;se!==ne&&re["color-index"]&&(_.cloneBefore({params:ne}),oe=!0),se!==ie&&re.color&&(_.cloneBefore({params:ie}),oe=!0),!te&&oe&&_.remove()}}};l.postcss=!0,_.exports=l},725:function(_,X){ /** * @license Fraction.js v4.3.7 31/08/2023 * https://www.xarg.org/2014/03/rational-numbers-in-javascript/ @@ -63,7 +63,7 @@ * Copyright (c) 2023, Robert Eisele (robert@raw.org) * Dual licensed under the MIT or GPL Version 2 licenses. **/ -(function(ee){"use strict";var te=2e3;var re={s:1,n:0,d:1};function assign(_,X){if(isNaN(_=parseInt(_,10))){throw InvalidParameter()}return _*X}function newFraction(_,X){if(X===0){throw DivisionByZero()}var ee=Object.create(Fraction.prototype);ee["s"]=_<0?-1:1;_=_<0?-_:_;var te=gcd(_,X);ee["n"]=_/te;ee["d"]=X/te;return ee}function factorize(_){var X={};var ee=_;var te=2;var re=4;while(re<=ee){while(ee%te===0){ee/=te;X[te]=(X[te]||0)+1}re+=1+2*te++}if(ee!==_){if(ee>1)X[ee]=(X[ee]||0)+1}else{X[_]=(X[_]||0)+1}return X}var parse=function(_,X){var ee=0,te=1,se=1;var ne=0,ie=0,oe=0,ae=1,le=1;var ue=0,ce=1;var pe=1,fe=1;var de=1e7;var he;if(_===undefined||_===null){}else if(X!==undefined){ee=_;te=X;se=ee*te;if(ee%1!==0||te%1!==0){throw NonIntegerParameter()}}else switch(typeof _){case"object":{if("d"in _&&"n"in _){ee=_["n"];te=_["d"];if("s"in _)ee*=_["s"]}else if(0 in _){ee=_[0];if(1 in _)te=_[1]}else{throw InvalidParameter()}se=ee*te;break}case"number":{if(_<0){se=_;_=-_}if(_%1===0){ee=_}else if(_>0){if(_>=1){le=Math.pow(10,Math.floor(1+Math.log(_)/Math.LN10));_/=le}while(ce<=de&&fe<=de){he=(ue+pe)/(ce+fe);if(_===he){if(ce+fe<=de){ee=ue+pe;te=ce+fe}else if(fe>ce){ee=pe;te=fe}else{ee=ue;te=ce}break}else{if(_>he){ue+=pe;ce+=fe}else{pe+=ue;fe+=ce}if(ce>de){ee=pe;te=fe}else{ee=ue;te=ce}}}ee*=le}else if(isNaN(_)||isNaN(X)){te=ee=NaN}break}case"string":{ce=_.match(/\d+|./g);if(ce===null)throw InvalidParameter();if(ce[ue]==="-"){se=-1;ue++}else if(ce[ue]==="+"){ue++}if(ce.length===ue+1){ie=assign(ce[ue++],se)}else if(ce[ue+1]==="."||ce[ue]==="."){if(ce[ue]!=="."){ne=assign(ce[ue++],se)}ue++;if(ue+1===ce.length||ce[ue+1]==="("&&ce[ue+3]===")"||ce[ue+1]==="'"&&ce[ue+3]==="'"){ie=assign(ce[ue],se);ae=Math.pow(10,ce[ue].length);ue++}if(ce[ue]==="("&&ce[ue+2]===")"||ce[ue]==="'"&&ce[ue+2]==="'"){oe=assign(ce[ue+1],se);le=Math.pow(10,ce[ue+1].length)-1;ue+=3}}else if(ce[ue+1]==="/"||ce[ue+1]===":"){ie=assign(ce[ue],se);ae=assign(ce[ue+2],1);ue+=3}else if(ce[ue+3]==="/"&&ce[ue+1]===" "){ne=assign(ce[ue],se);ie=assign(ce[ue+2],se);ae=assign(ce[ue+4],1);ue+=5}if(ce.length<=ue){te=ae*le;se=ee=oe+te*ne+le*ie;break}}default:throw InvalidParameter()}if(te===0){throw DivisionByZero()}re["s"]=se<0?-1:1;re["n"]=Math.abs(ee);re["d"]=Math.abs(te)};function modpow(_,X,ee){var te=1;for(;X>0;_=_*_%ee,X>>=1){if(X&1){te=te*_%ee}}return te}function cycleLen(_,X){for(;X%2===0;X/=2){}for(;X%5===0;X/=5){}if(X===1)return 0;var ee=10%X;var re=1;for(;ee!==1;re++){ee=ee*10%X;if(re>te)return 0}return re}function cycleStart(_,X,ee){var te=1;var re=modpow(10,ee,X);for(var se=0;se<300;se++){if(te===re)return se;te=te*10%X;re=re*10%X}return 0}function gcd(_,X){if(!_)return X;if(!X)return _;while(1){_%=X;if(!_)return X;X%=_;if(!X)return _}}function Fraction(_,X){parse(_,X);if(this instanceof Fraction){_=gcd(re["d"],re["n"]);this["s"]=re["s"];this["n"]=re["n"]/_;this["d"]=re["d"]/_}else{return newFraction(re["s"]*re["n"],re["d"])}}var DivisionByZero=function(){return new Error("Division by Zero")};var InvalidParameter=function(){return new Error("Invalid argument")};var NonIntegerParameter=function(){return new Error("Parameters must be integer")};Fraction.prototype={s:1,n:0,d:1,abs:function(){return newFraction(this["n"],this["d"])},neg:function(){return newFraction(-this["s"]*this["n"],this["d"])},add:function(_,X){parse(_,X);return newFraction(this["s"]*this["n"]*re["d"]+re["s"]*this["d"]*re["n"],this["d"]*re["d"])},sub:function(_,X){parse(_,X);return newFraction(this["s"]*this["n"]*re["d"]-re["s"]*this["d"]*re["n"],this["d"]*re["d"])},mul:function(_,X){parse(_,X);return newFraction(this["s"]*re["s"]*this["n"]*re["n"],this["d"]*re["d"])},div:function(_,X){parse(_,X);return newFraction(this["s"]*re["s"]*this["n"]*re["d"],this["d"]*re["n"])},clone:function(){return newFraction(this["s"]*this["n"],this["d"])},mod:function(_,X){if(isNaN(this["n"])||isNaN(this["d"])){return new Fraction(NaN)}if(_===undefined){return newFraction(this["s"]*this["n"]%this["d"],1)}parse(_,X);if(0===re["n"]&&0===this["d"]){throw DivisionByZero()}return newFraction(this["s"]*(re["d"]*this["n"])%(re["n"]*this["d"]),re["d"]*this["d"])},gcd:function(_,X){parse(_,X);return newFraction(gcd(re["n"],this["n"])*gcd(re["d"],this["d"]),re["d"]*this["d"])},lcm:function(_,X){parse(_,X);if(re["n"]===0&&this["n"]===0){return newFraction(0,1)}return newFraction(re["n"]*this["n"],gcd(re["n"],this["n"])*gcd(re["d"],this["d"]))},ceil:function(_){_=Math.pow(10,_||0);if(isNaN(this["n"])||isNaN(this["d"])){return new Fraction(NaN)}return newFraction(Math.ceil(_*this["s"]*this["n"]/this["d"]),_)},floor:function(_){_=Math.pow(10,_||0);if(isNaN(this["n"])||isNaN(this["d"])){return new Fraction(NaN)}return newFraction(Math.floor(_*this["s"]*this["n"]/this["d"]),_)},round:function(_){_=Math.pow(10,_||0);if(isNaN(this["n"])||isNaN(this["d"])){return new Fraction(NaN)}return newFraction(Math.round(_*this["s"]*this["n"]/this["d"]),_)},roundTo:function(_,X){parse(_,X);return newFraction(this["s"]*Math.round(this["n"]*re["d"]/(this["d"]*re["n"]))*re["n"],re["d"])},inverse:function(){return newFraction(this["s"]*this["d"],this["n"])},pow:function(_,X){parse(_,X);if(re["d"]===1){if(re["s"]<0){return newFraction(Math.pow(this["s"]*this["d"],re["n"]),Math.pow(this["n"],re["n"]))}else{return newFraction(Math.pow(this["s"]*this["n"],re["n"]),Math.pow(this["d"],re["n"]))}}if(this["s"]<0)return null;var ee=factorize(this["n"]);var te=factorize(this["d"]);var se=1;var ne=1;for(var ie in ee){if(ie==="1")continue;if(ie==="0"){se=0;break}ee[ie]*=re["n"];if(ee[ie]%re["d"]===0){ee[ie]/=re["d"]}else return null;se*=Math.pow(ie,ee[ie])}for(var ie in te){if(ie==="1")continue;te[ie]*=re["n"];if(te[ie]%re["d"]===0){te[ie]/=re["d"]}else return null;ne*=Math.pow(ie,te[ie])}if(re["s"]<0){return newFraction(ne,se)}return newFraction(se,ne)},equals:function(_,X){parse(_,X);return this["s"]*this["n"]*re["d"]===re["s"]*re["n"]*this["d"]},compare:function(_,X){parse(_,X);var ee=this["s"]*this["n"]*re["d"]-re["s"]*re["n"]*this["d"];return(0=0;se--){re=re["inverse"]()["add"](ee[se])}if(Math.abs(re["sub"](X).valueOf())<_){return re["mul"](this["s"])}}return this},divisible:function(_,X){parse(_,X);return!(!(re["n"]*this["d"])||this["n"]*re["d"]%(re["n"]*this["d"]))},valueOf:function(){return this["s"]*this["n"]/this["d"]},toFraction:function(_){var X,ee="";var te=this["n"];var re=this["d"];if(this["s"]<0){ee+="-"}if(re===1){ee+=te}else{if(_&&(X=Math.floor(te/re))>0){ee+=X;ee+=" ";te%=re}ee+=te;ee+="/";ee+=re}return ee},toLatex:function(_){var X,ee="";var te=this["n"];var re=this["d"];if(this["s"]<0){ee+="-"}if(re===1){ee+=te}else{if(_&&(X=Math.floor(te/re))>0){ee+=X;te%=re}ee+="\\frac{";ee+=te;ee+="}{";ee+=re;ee+="}"}return ee},toContinued:function(){var _;var X=this["n"];var ee=this["d"];var te=[];if(isNaN(X)||isNaN(ee)){return te}do{te.push(Math.floor(X/ee));_=X%ee;X=ee;ee=_}while(X!==1);return te},toString:function(_){var X=this["n"];var ee=this["d"];if(isNaN(X)||isNaN(ee)){return"NaN"}_=_||15;var te=cycleLen(X,ee);var re=cycleStart(X,ee,te);var se=this["s"]<0?"-":"";se+=X/ee|0;X%=ee;X*=10;if(X)se+=".";if(te){for(var ne=re;ne--;){se+=X/ee|0;X%=ee;X*=10}se+="(";for(var ne=te;ne--;){se+=X/ee|0;X%=ee;X*=10}se+=")"}else{for(var ne=_;X&&ne--;){se+=X/ee|0;X%=ee;X*=10}}return se}};if(true){Object.defineProperty(X,"__esModule",{value:true});X["default"]=Fraction;_["exports"]=Fraction}else{}})(this)},4836:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));function n(_){const X=_.value;let ee=_.nodes;"rgb"!==X&&"hsl"!==X||(ee=function(_){let X=0;for(let ee=0;ee<_.length;ee++){const te=_[ee];if("div"===te.type&&","===te.value){if(X<2&&(te.value=" ",te.type="space"),2===X&&(te.value="/"),X>2)return;X++}}return _}(ee));const re=ee.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let se=null;if("hsl"===X||"hsla"===X?se=function(_){if(!function(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);if(!X)return!1;return!!X.number&&("deg"===X.unit||"grad"===X.unit||"rad"===X.unit||"turn"===X.unit||""===X.unit)}(_[0]))return null;if(!t(_[1]))return null;if(!t(_[2]))return null;const X={h:te.default.unit(_[0].value),hNode:_[0],s:te.default.unit(_[1].value),sNode:_[1],l:te.default.unit(_[2].value),lNode:_[2]};if(function(_){switch(_.unit){case"deg":return void(_.unit="");case"rad":return _.unit="",void(_.number=Math.round(180*parseFloat(_.number)/Math.PI).toString());case"grad":return _.unit="",void(_.number=Math.round(.9*parseFloat(_.number)).toString());case"turn":_.unit="",_.number=Math.round(360*parseFloat(_.number)).toString()}}(X.h),""!==X.h.unit)return null;X.hNode.value=X.h.number,l(_[3])&&(X.slash=_[3]);(t(_[4])||u(_[4])||a(_[4]))&&(X.alpha=_[4]);return X}(re):"rgb"!==X&&"rgba"!==X||(se=function(_){if(!t(_[0]))return null;if(!t(_[1]))return null;if(!t(_[2]))return null;const X={r:te.default.unit(_[0].value),rNode:_[0],g:te.default.unit(_[1].value),gNode:_[1],b:te.default.unit(_[2].value),bNode:_[2]};"%"===X.r.unit&&(X.r.number=String(Math.floor(Number(X.r.number)/100*255)),X.rNode.value=X.r.number);"%"===X.g.unit&&(X.g.number=String(Math.floor(Number(X.g.number)/100*255)),X.gNode.value=X.g.number);"%"===X.b.unit&&(X.b.number=String(Math.floor(Number(X.b.number)/100*255)),X.bNode.value=X.b.number);l(_[3])&&(X.slash=_[3]);(t(_[4])||u(_[4])||a(_[4]))&&(X.alpha=_[4]);return X}(re)),!se)return;if(re.length>3&&(!se.slash||!se.alpha))return;!function(_,X,ee){"hsl"===_.value||"hsla"===_.value?_.value="hsl":"rgb"!==_.value&&"rgba"!==_.value||(_.value="rgb");if(!X||!ee)return;"hsl"===_.value?_.value="hsla":_.value="rgba";if(X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const re=te.default.unit(ee.value);if(!re)return;"%"===re.unit&&(re.number=String(parseFloat(re.number)/100),ee.value=String(re.number))}(_,se.slash,se.alpha);const[ne,ie]=function(_){if(function(_){if(void 0!==_.r)return!0;return!1}(_))return[_.rNode,_.gNode,_.bNode];return[_.hNode,_.sNode,_.lNode]}(se);_.nodes.splice(_.nodes.indexOf(ne)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.splice(_.nodes.indexOf(ie)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""})}function t(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function u(_){return _&&"function"===_.type&&"calc"===_.value}function a(_){return _&&"function"===_.type&&"var"===_.value}function l(_){return _&&"div"===_.type&&"/"===_.value}function o(_){if(!_||!_.value)return!1;try{return!1!==te.default.unit(_.value)}catch(_){return!1}}const i=_=>{const X="preserve"in Object(_)&&Boolean(_.preserve);return{postcssPlugin:"postcss-color-functional-notation",Declaration:(_,{result:ee,postcss:re})=>{if(X&&function(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("supports"===X.name&&-1!==X.params.indexOf("(color: rgb(0 0 0 / 0.5)) and (color: hsl(0 0% 0% / 0.5))"))return!0;X=X.parent}else X=X.parent;return!1}(_))return;const se=_.value;if(!/(^|[^\w-])(hsla?|rgba?)\(/i.test(se))return;let ne;try{ne=te.default(se)}catch(X){_.warn(ee,`Failed to parse value '${se}' as a hsl or rgb function. Leaving the original value intact.`)}if(void 0===ne)return;ne.walk((_=>{_.type&&"function"===_.type&&("hsl"!==_.value&&"hsla"!==_.value&&"rgb"!==_.value&&"rgba"!==_.value||n(_))}));const ie=String(ne);if(ie!==se)if(X&&_.variable){const X=_.parent,ee="(color: rgb(0 0 0 / 0.5)) and (color: hsl(0 0% 0% / 0.5))",te=re.atRule({name:"supports",params:ee,source:_.source}),se=X.clone();se.removeAll(),se.append(_.clone()),te.append(se);let ne=X,oe=X.next();for(;ne&&oe&&"atrule"===oe.type&&"supports"===oe.name&&oe.params===ee;)ne=oe,oe=oe.next();ne.after(te),_.value=ie}else X?_.cloneBefore({value:ie}):_.value=ie}}};i.postcss=!0,_.exports=i},2060:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045)),re={preserve:!1};const r=_=>{if(o(_)){const{value:X}=_,ee=te.default(X);ee.walk((_=>{c(_)&&n(_)}));const se=ee.toString();se!==X&&(re.preserve?_.cloneBefore({value:se}):_.value=se)}},se=/^#([0-9A-Fa-f]{4}(?:[0-9A-Fa-f]{4})?)$/,ne=/#([0-9A-Fa-f]{4}(?:[0-9A-Fa-f]{4})?)\b/,o=_=>ne.test(_.value),c=_=>"word"===_.type&&se.test(_.value),n=_=>{const X=_.value,ee=`0x${5===X.length?X.slice(1).replace(/[0-9A-f]/g,"$&$&"):X.slice(1)}`,[te,re,se,ne]=[parseInt(ee.slice(2,4),16),parseInt(ee.slice(4,6),16),parseInt(ee.slice(6,8),16),Math.round(parseInt(ee.slice(8,10),16)/255*1e5)/1e5];_.value=`rgba(${te},${re},${se},${ne})`};function u(_){return re.preserve="preserve"in Object(_)&&Boolean(_.preserve),{postcssPlugin:"postcss-color-hex-alpha",Declaration:r}}u.postcss=!0,_.exports=u},7106:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));const re=Function.bind.bind(RegExp.prototype.test)(/^rebeccapurple$/i);var se={preserve:!1};const s=_=>{const{value:X}=_;if(ne(X)){const ee=te.default(X);ee.walk((_=>{"word"===_.type&&(_=>{re(_.value)&&(_.value="#639")})(_)}));const ne=String(ee);ne!==X&&(se.preserve?_.cloneBefore({value:ne}):_.value=ne)}},ne=Function.bind.bind(RegExp.prototype.test)(/(^|[^\w-])rebeccapurple([^\w-]|$)/i);function c(_){return se.preserve="preserve"in Object(_)&&Boolean(_.preserve),{postcssPlugin:"postcss-color-rebeccapurple",Declaration:s}}c.postcss=!0,_.exports=c},8806:(_,X,ee)=>{"use strict";var te=ee(2045),re=ee(1017),se=ee(7310),ne=ee(977),ie=ee(7147);function n(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}function i(_){if(_&&_.__esModule)return _;var X=Object.create(null);return _&&Object.keys(_).forEach((function(ee){if("default"!==ee){var te=Object.getOwnPropertyDescriptor(_,ee);Object.defineProperty(X,ee,te.get?te:{enumerable:!0,get:function(){return _[ee]}})}})),X.default=_,Object.freeze(X)}var oe=n(te),ae=n(re);function u(_){const X=_.selector?_:_.parent;return/(!\s*)?postcss-custom-properties:\s*off\b/i.test(X.toString())}function l(_,X){const ee=new Map,te=new Map,re=new Map;_.nodes.slice().forEach((_=>{const re=m(_)?ee:w(_)?te:null;re&&(_.nodes.slice().forEach((_=>{if(_.variable&&!u(_)){const{prop:ee}=_;re.set(ee,oe.default(_.value)),X.preserve||_.remove()}})),X.preserve||!d(_)||u(_)||_.remove())}));for(const[_,X]of ee.entries())re.set(_,X);for(const[_,X]of te.entries())re.set(_,X);return re}const le=/^html$/i,ue=/^:root$/i,m=_=>"rule"===_.type&&_.selector.split(",").some((_=>le.test(_)))&&Object(_.nodes).length,w=_=>"rule"===_.type&&_.selector.split(",").some((_=>ue.test(_)))&&Object(_.nodes).length,d=_=>0===Object(_.nodes).length;function v(_){const X=new Map;if("customProperties"in _)for(const[ee,te]of Object.entries(_.customProperties))X.set(ee,oe.default(te.toString()));if("custom-properties"in _)for(const[ee,te]of Object.entries(_["custom-properties"]))X.set(ee,oe.default(te.toString()));return X}async function y(_){let X;try{X=await(te=_,Promise.resolve().then((function(){return i(ee(5829)(te))})))}catch(te){X=await function(_){return Promise.resolve().then((function(){return i(ee(5829)(_))}))}(se.pathToFileURL(_).href)}var te;return v("default"in X?X.default:X)}async function h(_){const X=(await Promise.all(_.map((async _=>{if(_ instanceof Promise?_=await _:_ instanceof Function&&(_=await _()),"string"==typeof _){const X=ae.default.resolve(_);return{type:ae.default.extname(X).slice(1).toLowerCase(),from:X}}if("customProperties"in _&&Object(_.customProperties)===_.customProperties)return _;if("custom-properties"in _&&Object(_["custom-properties"])===_["custom-properties"])return _;if("from"in _){const X=ae.default.resolve(_.from);let ee=_.type;return ee||(ee=ae.default.extname(X).slice(1).toLowerCase()),{type:ee,from:X}}return Object.keys(_).length,null})))).filter((_=>!!_)),ee=await Promise.all(X.map((async _=>{if("type"in _&&"from"in _){if("css"===_.type||"pcss"===_.type)return await async function(_){const X=await ie.promises.readFile(_);return l(ne.parse(X,{from:_.toString()}),{preserve:!0})}(_.from);if("js"===_.type||"cjs"===_.type)return await y(_.from);if("mjs"===_.type)return await y(_.from);if("json"===_.type)return await async function(_){return v(await g(_))}(_.from);throw new Error("Invalid source type: "+_.type)}return v(_)}))),te=new Map;return ee.forEach((_=>{for(const[X,ee]of _.entries())te.set(X,ee)})),te}const g=async _=>JSON.parse((await ie.promises.readFile(_)).toString());function j(_,X){return _.nodes&&_.nodes.length&&_.nodes.slice().forEach((ee=>{if(O(ee)){const[te,...re]=ee.nodes.filter((_=>"div"!==_.type)),{value:se}=te,ne=_.nodes.indexOf(ee);if(X.has(se)){const ee=X.get(se).nodes;!function(_,X,ee){const te=new Map(X);te.delete(ee),j(_,te)}({nodes:ee},X,se),ne>-1&&_.nodes.splice(ne,1,...ee)}else re.length&&(ne>-1&&_.nodes.splice(ne,1,...ee.nodes.slice(ee.nodes.indexOf(re[0]))),j(_,X))}else j(ee,X)})),_.toString()}const ce=/^var$/i,O=_=>"function"===_.type&&ce.test(_.value)&&Object(_.nodes).length>0;var $=(_,X,ee)=>{if(F(_)&&!function(_){const X=_.prev();return Boolean(u(_)||X&&"comment"===X.type&&/(!\s*)?postcss-custom-properties:\s*ignore\s+next\b/i.test(X.text))}(_)){const te=_.value;let re=j(oe.default(te),X);const se=new Set;for(;fe.test(re)&&!se.has(re);){se.add(re);re=j(oe.default(re),X)}if(re!==te)if(ee.preserve){const X=_.cloneBefore({value:re});S(X)&&(X.raws.value.value=X.value.replace(de,"$1"),X.raws.value.raw=X.raws.value.value+X.raws.value.raw.replace(de,"$2"))}else _.value=re,S(_)&&(_.raws.value.value=_.value.replace(de,"$1"),_.raws.value.raw=_.raws.value.value+_.raws.value.raw.replace(de,"$2"))}};const pe=/^--[A-z][\w-]*$/,fe=/(^|[^\w-])var\([\W\w]+\)/,F=_=>!pe.test(_.prop)&&fe.test(_.value),S=_=>"value"in Object(Object(_.raws).value)&&"raw"in _.raws.value&&de.test(_.raws.value.raw),de=/^([\W\w]+)(\s*\/\*[\W\w]+?\*\/)$/;async function E(_,X,ee){"css"===X&&await async function(_,X){const ee=`:root {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t${ee}: ${X[ee]};`),_)),[]).join("\n")}\n}\n`;await ie.promises.writeFile(_,ee)}(_,ee),"scss"===X&&await async function(_,X){const ee=`${Object.keys(X).reduce(((_,ee)=>{const te=ee.replace("--","$");return _.push(`${te}: ${X[ee]};`),_}),[]).join("\n")}\n`;await ie.promises.writeFile(_,ee)}(_,ee),"js"===X&&await async function(_,X){const ee=`module.exports = {\n\tcustomProperties: {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t\t'${q(ee)}': '${q(X[ee])}'`),_)),[]).join(",\n")}\n\t}\n};\n`;await ie.promises.writeFile(_,ee)}(_,ee),"json"===X&&await async function(_,X){const ee=`${JSON.stringify({"custom-properties":X},null," ")}\n`;await ie.promises.writeFile(_,ee)}(_,ee),"mjs"===X&&await async function(_,X){const ee=`export const customProperties = {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t'${q(ee)}': '${q(X[ee])}'`),_)),[]).join(",\n")}\n};\n`;await ie.promises.writeFile(_,ee)}(_,ee)}function M(_){const X={};for(const[ee,te]of _.entries())X[ee]=te.toString();return X}const q=_=>_.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),N=_=>{const X=!("preserve"in Object(_))||Boolean(_.preserve),ee="overrideImportFromWithRoot"in Object(_)&&Boolean(_.overrideImportFromWithRoot),te="disableDeprecationNotice"in Object(_)&&Boolean(_.disableDeprecationNotice);let re=[];Array.isArray(null==_?void 0:_.importFrom)?re=_.importFrom:null!=_&&_.importFrom&&(re=[_.importFrom]);let se=[];Array.isArray(null==_?void 0:_.exportTo)?se=_.exportTo:null!=_&&_.exportTo&&(se=[_.exportTo]);const ne=h(re),ie=0===re.length&&0===se.length;return{postcssPlugin:"postcss-custom-properties",prepare(){let _=new Map;return ie?{Once:ee=>{_=l(ee,{preserve:X})},Declaration:ee=>{$(ee,_,{preserve:X})},OnceExit:()=>{_.clear()}}:{Once:async te=>{const re=(await ne).entries(),ie=l(te,{preserve:X}).entries();if(ee)for(const[X,ee]of[...re,...ie])_.set(X,ee);else for(const[X,ee]of[...ie,...re])_.set(X,ee);await function(_,X){return Promise.all(X.map((async X=>{if(X instanceof Function)return void await X(M(_));if("string"==typeof X){const ee=ae.default.resolve(X),te=ae.default.extname(ee).slice(1).toLowerCase();return void await E(ee,te,M(_))}let ee={};if(ee="toJSON"in X?X.toJSON(M(_)):M(_),"to"in X){const _=ae.default.resolve(X.to);let te=X.type;return te||(te=ae.default.extname(_).slice(1).toLowerCase()),void await E(_,te,ee)}"customProperties"in X?X.customProperties=ee:"custom-properties"in X&&(X["custom-properties"]=ee)})))}(_,se)},Declaration:ee=>{$(ee,_,{preserve:X})},OnceExit:(X,{result:ee})=>{!te&&(re.length>0||se.length>0)&&X.warn(ee,'"importFrom" and "exportTo" will be removed in a future version of postcss-custom-properties.\nWe are looking for insights and anecdotes on how these features are used so that we can design the best alternative.\nPlease let us know if our proposal will work for you.\nVisit the discussion on github for more details. https://github.com/csstools/postcss-plugins/discussions/192'),_.clear()}}}}};N.postcss=!0,_.exports=N},50:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const re=/:dir\([^)]*\)/;function o(_){const X=Object(_).dir,ee=Boolean(Object(_).preserve),se=Boolean(Object(_).shadow);return{postcssPlugin:"postcss-dir-pseudo-class",Rule(_,{result:ne}){let ie,oe=!1;if(re.test(_.selector)){try{ie=te.default((ee=>{ee.nodes.forEach((ee=>{ee.walk((ee=>{if("pseudo"!==ee.type)return;if(":dir"!==ee.value)return;const re=ee.nodes.toString();if("rtl"!==re&&"ltr"!==re)return;const ie=ee.parent;ie.nodes.filter((_=>"pseudo"===_.type&&":dir"===_.value)).length>1&&!oe&&(oe=!0,_.warn(ne,`Hierarchical :dir pseudo class usage can't be transformed correctly to [dir] attributes. This will lead to incorrect selectors for "${_.selector}"`));const ae=ee.prev(),le=ee.next(),ue=ae&&ae.type&&"combinator"!==ae.type,ce=le&&le.type&&"combinator"!==le.type,pe=le&&le.type&&("combinator"!==le.type||"combinator"===le.type&&" "===le.value);ue||ce||0===ie.nodes.indexOf(ee)&&pe||1===ie.nodes.length?ee.remove():ee.replaceWith(te.default.universal());const fe=ie.nodes[0],de=fe&&"combinator"===fe.type&&" "===fe.value,he=fe&&"tag"===fe.type&&"html"===fe.value,me=fe&&"pseudo"===fe.type&&":root"===fe.value;!fe||he||me||de||ie.prepend(te.default.combinator({value:" "}));const ge=X===re,be=te.default.attribute({attribute:"dir",operator:"=",quoteMark:'"',value:`"${re}"`}),ve=te.default.pseudo({value:":host-context"});ve.append(be);const ye=te.default.pseudo({value:(he||me?"":"html")+":not"});ye.append(te.default.attribute({attribute:"dir",operator:"=",quoteMark:'"',value:`"${"ltr"===re?"rtl":"ltr"}"`})),ge?he?ie.insertAfter(fe,ye):ie.prepend(ye):he?ie.insertAfter(fe,be):se&&!me?ie.prepend(ve):ie.prepend(be)}))}))})).processSync(_.selector)}catch(X){return void _.warn(ne,`Failed to parse selector : ${_.selector}`)}void 0!==ie&&ie!==_.selector&&(ee?_.cloneBefore({selector:ie}):_.selector=ie)}}}}o.postcss=!0,_.exports=o},1426:(_,X,ee)=>{"use strict";var te=ee(5449),re=ee(2045);function r(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=r(te),ne=r(re);function s(_){return _.includes("conic-gradient(")||_.includes("linear-gradient(")||_.includes("radial-gradient(")||_.includes("repeating-conic-gradient(")||_.includes("repeating-linear-gradient(")||_.includes("repeating-radial-gradient(")}const ie=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"],o=_=>"div"===_.type&&","===_.value;function l(_){try{return!1!==ne.default.unit(null==_?void 0:_.value)}catch(_){return!1}}const c=_=>({postcssPlugin:"postcss-double-position-gradients",Declaration(X,{result:ee}){if(!s(X.value))return;if(function(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("supports"===X.name&&s(X.params))return!0;X=X.parent}else X=X.parent;return!1}(X))return;let te;try{te=ne.default(X.value)}catch(_){X.warn(ee,`Failed to parse value '${X.value}' as a CSS gradient. Leaving the original value intact.`)}if(void 0===te)return;te.walk((_=>{if("function"!==_.type||"conic-gradient"!==(X=_.value)&&"linear-gradient"!==X&&"radial-gradient"!==X&&"repeating-conic-gradient"!==X&&"repeating-linear-gradient"!==X&&"repeating-radial-gradient"!==X)return;var X;const ee=_.nodes.filter((_=>"comment"!==_.type&&"space"!==_.type));let te=!1;ee.forEach(((X,ee,re)=>{if("word"===X.type&&ie.includes(X.value)&&(te=!0),"div"===X.type&&","===X.value&&(te=!1),te)return;const se=Object(re[ee-1]),ne=Object(re[ee-2]),oe=Object(re[ee+1]);if(ne.type&&l(se)&&l(X)){const ee=ne,te={type:"div",value:",",before:o(oe)?oe.before:"",after:o(oe)?"":" "};_.nodes.splice(_.nodes.indexOf(X)-1,0,te,ee)}}))}));const re=te.toString();if(re!==X.value){if(_.preserve)return void X.cloneBefore({value:re});X.value=re}}});c.postcss=!0;const u=_=>{const X=Object.assign({enableProgressiveCustomProperties:!0,preserve:!0},_);return X.enableProgressiveCustomProperties&&X.preserve?{postcssPlugin:"postcss-double-position-gradients",plugins:[se.default(),c(X)]}:c(X)};u.postcss=!0,_.exports=u},3365:(_,X,ee)=>{"use strict";var te=ee(2045),re=ee(7147),se=ee(1017);function a(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}function r(_){if(_&&_.__esModule)return _;var X=Object.create(null);return _&&Object.keys(_).forEach((function(ee){if("default"!==ee){var te=Object.getOwnPropertyDescriptor(_,ee);Object.defineProperty(X,ee,te.get?te:{enumerable:!0,get:function(){return _[ee]}})}})),X.default=_,Object.freeze(X)}var ne=a(te),ie=a(re),oe=a(se),c=(_,X)=>{const ee=ne.default(_);return ee.walk((_=>{if((_=>_&&"function"===_.type&&"env"===_.value)(_)){const[ee]=_.nodes;"word"===ee.type&&void 0!==X[ee.value]&&(_.nodes=[],_.type="word",_.value=X[ee.value])}})),ee.toString()};function u(_){return Object.assign({},Object(_).environmentVariables||Object(_)["environment-variables"])}function l(_){return _.map((_=>{if(_ instanceof Promise)return _;if(_ instanceof Function)return _();const X=_===Object(_)?_:{from:String(_)};if(X.environmentVariables||X["environment-variables"])return X;const ee=String(X.from||"");return{type:(X.type||oe.default.extname(ee).slice(1)).toLowerCase(),from:ee}})).reduce((async(_,X)=>{const{type:te,from:re}=await X;return"js"===te||"cjs"===te?Object.assign(_,await async function(_){var X;return u(await(X=oe.default.resolve(_),Promise.resolve().then((function(){return r(ee(1736)(X))}))))}(re)):"json"===te?Object.assign(_,await async function(_){return u(await f(oe.default.resolve(_)))}(re)):Object.assign(_,u(await X))}),{})}const f=async _=>JSON.parse(await(_=>new Promise(((X,ee)=>{ie.default.readFile(_,"utf8",((_,te)=>{_?ee(_):X(te)}))})))(_));function d(_){const X=l([].concat(Object(_).importFrom||[])),ee="disableDeprecationNotice"in Object(_)&&Boolean(_.disableDeprecationNotice);let te=!1;return{postcssPlugin:"postcss-env-fn",async AtRule(_,{result:re}){let se;try{se=c(_.params,await X)}catch(X){_.warn(re,`Failed to parse params '${_.params}' as an environment value. Leaving the original value intact.`)}void 0!==se&&se!==_.params&&(_.params=se,ee||te||(te=!0,_.warn(re,"postcss-env-function is deprecated and will be removed.\nCheck the discussion on github for more details. https://github.com/csstools/postcss-plugins/discussions/192")))},async Declaration(_,{result:re}){let se;try{se=c(_.value,await X)}catch(X){_.warn(re,`Failed to parse value '${_.value}' as an environment value. Leaving the original value intact.`)}void 0!==se&&se!==_.value&&(_.value=se,ee||te||(te=!0,_.warn(re,"postcss-env-function is deprecated and will be removed.\nWe are looking for insights and anecdotes on how these features are used so that we can design the best alternative.\nPlease let us know if our proposal will work for you.\nVisit the discussion on github for more details. https://github.com/csstools/postcss-plugins/discussions/192")))}}}d.postcss=!0,_.exports=d},3073:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const t=_=>{_=Object(_);const X=Boolean(!("preserve"in _)||_.preserve),ee=String(_.replaceWith||".focus-visible"),re=te.default().astSync(ee);return{postcssPlugin:"postcss-focus-visible",Rule(_,{result:ee}){if(!_.selector.includes(":focus-visible"))return;let se;try{const X=te.default((_=>{_.walkPseudos((_=>{":focus-visible"===_.value&&(_.nodes&&_.nodes.length||_.replaceWith(re.clone({})))}))})).processSync(_.selector);se=String(X)}catch(X){return void _.warn(ee,`Failed to parse selector : ${_.selector}`)}if(void 0===se)return;if(se===_.selector)return;const ne=_.clone({selector:se});X?_.before(ne):_.replaceWith(ne)}}};t.postcss=!0,_.exports=t},8742:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const s=_=>{const X=String(Object(_).replaceWith||"[focus-within]"),ee=Boolean(!("preserve"in Object(_))||_.preserve),re=te.default().astSync(X);return{postcssPlugin:"postcss-focus-within",Rule:(_,{result:X})=>{if(!_.selector.includes(":focus-within"))return;let se;try{const X=te.default((_=>{_.walkPseudos((_=>{":focus-within"===_.value&&(_.nodes&&_.nodes.length||_.replaceWith(re.clone({})))}))})).processSync(_.selector);se=String(X)}catch(ee){return void _.warn(X,`Failed to parse selector : ${_.selector}`)}if(void 0===se)return;if(se===_.selector)return;const ne=_.clone({selector:se});ee?_.before(ne):_.replaceWith(ne)}}};s.postcss=!0,_.exports=s},9060:_=>{"use strict";const X=/^(column-gap|gap|row-gap)$/i,o=_=>"display"===_.prop&&"grid"===_.value;function p(_){const ee=!("preserve"in Object(_))||Boolean(_.preserve);return{postcssPlugin:"postcss-gap-properties",Declaration(_){X.test(_.prop)&&_.parent.some(o)&&(_.cloneBefore({prop:`grid-${_.prop}`}),ee||_.remove())}}}p.postcss=!0,_.exports=p},6008:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));const re=/^(cross-fade|image|(repeating-)?(conic|linear|radial)-gradient|url|var)$/i;function r(_){return!(!_||!_.type)&&("string"===_.type?"url("+te.default.stringify(_)+")":!("function"!==_.type||!re.test(_.value))&&te.default.stringify(_))}const se={dpcm:2.54,dpi:1,dppx:96,x:96};function a(_,X,ee){if("boolean"==typeof _)return!1;const te=Math.floor(_/se.x*100)/100;return X.atRule({name:"media",params:`(-webkit-min-device-pixel-ratio: ${te}), (min-resolution: ${_}dpi)`,source:ee.source})}function o(_){if(!_)return!1;if("word"!==_.type)return!1;if(!function(_){if(!_||!_.value)return!1;try{return!1!==te.default.unit(_.value)}catch(_){return!1}}(_))return!1;const X=te.default.unit(_.value);return!!X&&(X.unit.toLowerCase()in se&&Number(X.number)*se[X.unit.toLowerCase()])}const s=(_,X,ee)=>{if("warn"===_.oninvalid)_.decl.warn(_.result,X,{word:String(ee)});else if("throw"===_.oninvalid)throw _.decl.error(X,{word:String(ee)})},ne=/(^|[^\w-])(-webkit-)?image-set\(/i,ie=/^(-webkit-)?image-set$/i,c=_=>{const X=!("preserve"in Object(_))||Boolean(_.preserve),ee="oninvalid"in Object(_)?_.oninvalid:"ignore";return{postcssPlugin:"postcss-image-set-function",Declaration(_,{result:re,postcss:se}){const oe=_.value;if(!ne.test(oe))return;let ae;try{ae=te.default(oe)}catch(X){_.warn(re,`Failed to parse value '${oe}' as an image-set function. Leaving the original value intact.`)}if(void 0===ae)return;const le=[];ae.walk((X=>{if("function"!==X.type)return;if(!ie.test(X.value))return;let se=!1;if(te.default.walk(X.nodes,(_=>{"function"===_.type&&ie.test(_.value)&&(se=!0)})),se)return s({decl:_,oninvalid:ee,result:re},"nested image-set functions are not allowed",te.default.stringify(X)),!1;const ne=X.nodes.filter((_=>"comment"!==_.type&&"space"!==_.type));le.push({imageSetFunction:X,imageSetOptionNodes:ne})})),((_,X,ee)=>{const re=X.parent,se=new Map,ne=X.value;for(let re=0;re<_.length;re++){const{imageSetFunction:oe,imageSetOptionNodes:ae}=_[re],le=new Map,ue=ae.length;let ce=-1;for(;ce_-X)).map((_=>se.get(_).atRule));if(!oe.length)return;const ae=oe[0],le=oe.slice(1);le.length&&re.after(le);const ue=ae.nodes[0].nodes[0];X.cloneBefore({value:ue.value.trim()}),ee.preserve||(X.remove(),re.nodes.length||re.remove())})(le,_,{decl:_,oninvalid:ee,preserve:X,result:re,postcss:se})}}};c.postcss=!0,_.exports=c},6157:(_,X,ee)=>{"use strict";var te=ee(5449),re=ee(2045);function n(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=n(te),ne=n(re); +(function(ee){"use strict";var te=2e3;var re={s:1,n:0,d:1};function assign(_,X){if(isNaN(_=parseInt(_,10))){throw InvalidParameter()}return _*X}function newFraction(_,X){if(X===0){throw DivisionByZero()}var ee=Object.create(Fraction.prototype);ee["s"]=_<0?-1:1;_=_<0?-_:_;var te=gcd(_,X);ee["n"]=_/te;ee["d"]=X/te;return ee}function factorize(_){var X={};var ee=_;var te=2;var re=4;while(re<=ee){while(ee%te===0){ee/=te;X[te]=(X[te]||0)+1}re+=1+2*te++}if(ee!==_){if(ee>1)X[ee]=(X[ee]||0)+1}else{X[_]=(X[_]||0)+1}return X}var parse=function(_,X){var ee=0,te=1,se=1;var ne=0,ie=0,oe=0,ae=1,le=1;var ue=0,ce=1;var pe=1,fe=1;var de=1e7;var he;if(_===undefined||_===null){}else if(X!==undefined){ee=_;te=X;se=ee*te;if(ee%1!==0||te%1!==0){throw NonIntegerParameter()}}else switch(typeof _){case"object":{if("d"in _&&"n"in _){ee=_["n"];te=_["d"];if("s"in _)ee*=_["s"]}else if(0 in _){ee=_[0];if(1 in _)te=_[1]}else{throw InvalidParameter()}se=ee*te;break}case"number":{if(_<0){se=_;_=-_}if(_%1===0){ee=_}else if(_>0){if(_>=1){le=Math.pow(10,Math.floor(1+Math.log(_)/Math.LN10));_/=le}while(ce<=de&&fe<=de){he=(ue+pe)/(ce+fe);if(_===he){if(ce+fe<=de){ee=ue+pe;te=ce+fe}else if(fe>ce){ee=pe;te=fe}else{ee=ue;te=ce}break}else{if(_>he){ue+=pe;ce+=fe}else{pe+=ue;fe+=ce}if(ce>de){ee=pe;te=fe}else{ee=ue;te=ce}}}ee*=le}else if(isNaN(_)||isNaN(X)){te=ee=NaN}break}case"string":{ce=_.match(/\d+|./g);if(ce===null)throw InvalidParameter();if(ce[ue]==="-"){se=-1;ue++}else if(ce[ue]==="+"){ue++}if(ce.length===ue+1){ie=assign(ce[ue++],se)}else if(ce[ue+1]==="."||ce[ue]==="."){if(ce[ue]!=="."){ne=assign(ce[ue++],se)}ue++;if(ue+1===ce.length||ce[ue+1]==="("&&ce[ue+3]===")"||ce[ue+1]==="'"&&ce[ue+3]==="'"){ie=assign(ce[ue],se);ae=Math.pow(10,ce[ue].length);ue++}if(ce[ue]==="("&&ce[ue+2]===")"||ce[ue]==="'"&&ce[ue+2]==="'"){oe=assign(ce[ue+1],se);le=Math.pow(10,ce[ue+1].length)-1;ue+=3}}else if(ce[ue+1]==="/"||ce[ue+1]===":"){ie=assign(ce[ue],se);ae=assign(ce[ue+2],1);ue+=3}else if(ce[ue+3]==="/"&&ce[ue+1]===" "){ne=assign(ce[ue],se);ie=assign(ce[ue+2],se);ae=assign(ce[ue+4],1);ue+=5}if(ce.length<=ue){te=ae*le;se=ee=oe+te*ne+le*ie;break}}default:throw InvalidParameter()}if(te===0){throw DivisionByZero()}re["s"]=se<0?-1:1;re["n"]=Math.abs(ee);re["d"]=Math.abs(te)};function modpow(_,X,ee){var te=1;for(;X>0;_=_*_%ee,X>>=1){if(X&1){te=te*_%ee}}return te}function cycleLen(_,X){for(;X%2===0;X/=2){}for(;X%5===0;X/=5){}if(X===1)return 0;var ee=10%X;var re=1;for(;ee!==1;re++){ee=ee*10%X;if(re>te)return 0}return re}function cycleStart(_,X,ee){var te=1;var re=modpow(10,ee,X);for(var se=0;se<300;se++){if(te===re)return se;te=te*10%X;re=re*10%X}return 0}function gcd(_,X){if(!_)return X;if(!X)return _;while(1){_%=X;if(!_)return X;X%=_;if(!X)return _}}function Fraction(_,X){parse(_,X);if(this instanceof Fraction){_=gcd(re["d"],re["n"]);this["s"]=re["s"];this["n"]=re["n"]/_;this["d"]=re["d"]/_}else{return newFraction(re["s"]*re["n"],re["d"])}}var DivisionByZero=function(){return new Error("Division by Zero")};var InvalidParameter=function(){return new Error("Invalid argument")};var NonIntegerParameter=function(){return new Error("Parameters must be integer")};Fraction.prototype={s:1,n:0,d:1,abs:function(){return newFraction(this["n"],this["d"])},neg:function(){return newFraction(-this["s"]*this["n"],this["d"])},add:function(_,X){parse(_,X);return newFraction(this["s"]*this["n"]*re["d"]+re["s"]*this["d"]*re["n"],this["d"]*re["d"])},sub:function(_,X){parse(_,X);return newFraction(this["s"]*this["n"]*re["d"]-re["s"]*this["d"]*re["n"],this["d"]*re["d"])},mul:function(_,X){parse(_,X);return newFraction(this["s"]*re["s"]*this["n"]*re["n"],this["d"]*re["d"])},div:function(_,X){parse(_,X);return newFraction(this["s"]*re["s"]*this["n"]*re["d"],this["d"]*re["n"])},clone:function(){return newFraction(this["s"]*this["n"],this["d"])},mod:function(_,X){if(isNaN(this["n"])||isNaN(this["d"])){return new Fraction(NaN)}if(_===undefined){return newFraction(this["s"]*this["n"]%this["d"],1)}parse(_,X);if(0===re["n"]&&0===this["d"]){throw DivisionByZero()}return newFraction(this["s"]*(re["d"]*this["n"])%(re["n"]*this["d"]),re["d"]*this["d"])},gcd:function(_,X){parse(_,X);return newFraction(gcd(re["n"],this["n"])*gcd(re["d"],this["d"]),re["d"]*this["d"])},lcm:function(_,X){parse(_,X);if(re["n"]===0&&this["n"]===0){return newFraction(0,1)}return newFraction(re["n"]*this["n"],gcd(re["n"],this["n"])*gcd(re["d"],this["d"]))},ceil:function(_){_=Math.pow(10,_||0);if(isNaN(this["n"])||isNaN(this["d"])){return new Fraction(NaN)}return newFraction(Math.ceil(_*this["s"]*this["n"]/this["d"]),_)},floor:function(_){_=Math.pow(10,_||0);if(isNaN(this["n"])||isNaN(this["d"])){return new Fraction(NaN)}return newFraction(Math.floor(_*this["s"]*this["n"]/this["d"]),_)},round:function(_){_=Math.pow(10,_||0);if(isNaN(this["n"])||isNaN(this["d"])){return new Fraction(NaN)}return newFraction(Math.round(_*this["s"]*this["n"]/this["d"]),_)},roundTo:function(_,X){parse(_,X);return newFraction(this["s"]*Math.round(this["n"]*re["d"]/(this["d"]*re["n"]))*re["n"],re["d"])},inverse:function(){return newFraction(this["s"]*this["d"],this["n"])},pow:function(_,X){parse(_,X);if(re["d"]===1){if(re["s"]<0){return newFraction(Math.pow(this["s"]*this["d"],re["n"]),Math.pow(this["n"],re["n"]))}else{return newFraction(Math.pow(this["s"]*this["n"],re["n"]),Math.pow(this["d"],re["n"]))}}if(this["s"]<0)return null;var ee=factorize(this["n"]);var te=factorize(this["d"]);var se=1;var ne=1;for(var ie in ee){if(ie==="1")continue;if(ie==="0"){se=0;break}ee[ie]*=re["n"];if(ee[ie]%re["d"]===0){ee[ie]/=re["d"]}else return null;se*=Math.pow(ie,ee[ie])}for(var ie in te){if(ie==="1")continue;te[ie]*=re["n"];if(te[ie]%re["d"]===0){te[ie]/=re["d"]}else return null;ne*=Math.pow(ie,te[ie])}if(re["s"]<0){return newFraction(ne,se)}return newFraction(se,ne)},equals:function(_,X){parse(_,X);return this["s"]*this["n"]*re["d"]===re["s"]*re["n"]*this["d"]},compare:function(_,X){parse(_,X);var ee=this["s"]*this["n"]*re["d"]-re["s"]*re["n"]*this["d"];return(0=0;se--){re=re["inverse"]()["add"](ee[se])}if(Math.abs(re["sub"](X).valueOf())<_){return re["mul"](this["s"])}}return this},divisible:function(_,X){parse(_,X);return!(!(re["n"]*this["d"])||this["n"]*re["d"]%(re["n"]*this["d"]))},valueOf:function(){return this["s"]*this["n"]/this["d"]},toFraction:function(_){var X,ee="";var te=this["n"];var re=this["d"];if(this["s"]<0){ee+="-"}if(re===1){ee+=te}else{if(_&&(X=Math.floor(te/re))>0){ee+=X;ee+=" ";te%=re}ee+=te;ee+="/";ee+=re}return ee},toLatex:function(_){var X,ee="";var te=this["n"];var re=this["d"];if(this["s"]<0){ee+="-"}if(re===1){ee+=te}else{if(_&&(X=Math.floor(te/re))>0){ee+=X;te%=re}ee+="\\frac{";ee+=te;ee+="}{";ee+=re;ee+="}"}return ee},toContinued:function(){var _;var X=this["n"];var ee=this["d"];var te=[];if(isNaN(X)||isNaN(ee)){return te}do{te.push(Math.floor(X/ee));_=X%ee;X=ee;ee=_}while(X!==1);return te},toString:function(_){var X=this["n"];var ee=this["d"];if(isNaN(X)||isNaN(ee)){return"NaN"}_=_||15;var te=cycleLen(X,ee);var re=cycleStart(X,ee,te);var se=this["s"]<0?"-":"";se+=X/ee|0;X%=ee;X*=10;if(X)se+=".";if(te){for(var ne=re;ne--;){se+=X/ee|0;X%=ee;X*=10}se+="(";for(var ne=te;ne--;){se+=X/ee|0;X%=ee;X*=10}se+=")"}else{for(var ne=_;X&&ne--;){se+=X/ee|0;X%=ee;X*=10}}return se}};if(true){Object.defineProperty(X,"__esModule",{value:true});X["default"]=Fraction;_["exports"]=Fraction}else{}})(this)},1504:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));function n(_){const X=_.value;let ee=_.nodes;"rgb"!==X&&"hsl"!==X||(ee=function(_){let X=0;for(let ee=0;ee<_.length;ee++){const te=_[ee];if("div"===te.type&&","===te.value){if(X<2&&(te.value=" ",te.type="space"),2===X&&(te.value="/"),X>2)return;X++}}return _}(ee));const re=ee.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let se=null;if("hsl"===X||"hsla"===X?se=function(_){if(!function(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);if(!X)return!1;return!!X.number&&("deg"===X.unit||"grad"===X.unit||"rad"===X.unit||"turn"===X.unit||""===X.unit)}(_[0]))return null;if(!t(_[1]))return null;if(!t(_[2]))return null;const X={h:te.default.unit(_[0].value),hNode:_[0],s:te.default.unit(_[1].value),sNode:_[1],l:te.default.unit(_[2].value),lNode:_[2]};if(function(_){switch(_.unit){case"deg":return void(_.unit="");case"rad":return _.unit="",void(_.number=Math.round(180*parseFloat(_.number)/Math.PI).toString());case"grad":return _.unit="",void(_.number=Math.round(.9*parseFloat(_.number)).toString());case"turn":_.unit="",_.number=Math.round(360*parseFloat(_.number)).toString()}}(X.h),""!==X.h.unit)return null;X.hNode.value=X.h.number,l(_[3])&&(X.slash=_[3]);(t(_[4])||u(_[4])||a(_[4]))&&(X.alpha=_[4]);return X}(re):"rgb"!==X&&"rgba"!==X||(se=function(_){if(!t(_[0]))return null;if(!t(_[1]))return null;if(!t(_[2]))return null;const X={r:te.default.unit(_[0].value),rNode:_[0],g:te.default.unit(_[1].value),gNode:_[1],b:te.default.unit(_[2].value),bNode:_[2]};"%"===X.r.unit&&(X.r.number=String(Math.floor(Number(X.r.number)/100*255)),X.rNode.value=X.r.number);"%"===X.g.unit&&(X.g.number=String(Math.floor(Number(X.g.number)/100*255)),X.gNode.value=X.g.number);"%"===X.b.unit&&(X.b.number=String(Math.floor(Number(X.b.number)/100*255)),X.bNode.value=X.b.number);l(_[3])&&(X.slash=_[3]);(t(_[4])||u(_[4])||a(_[4]))&&(X.alpha=_[4]);return X}(re)),!se)return;if(re.length>3&&(!se.slash||!se.alpha))return;!function(_,X,ee){"hsl"===_.value||"hsla"===_.value?_.value="hsl":"rgb"!==_.value&&"rgba"!==_.value||(_.value="rgb");if(!X||!ee)return;"hsl"===_.value?_.value="hsla":_.value="rgba";if(X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const re=te.default.unit(ee.value);if(!re)return;"%"===re.unit&&(re.number=String(parseFloat(re.number)/100),ee.value=String(re.number))}(_,se.slash,se.alpha);const[ne,ie]=function(_){if(function(_){if(void 0!==_.r)return!0;return!1}(_))return[_.rNode,_.gNode,_.bNode];return[_.hNode,_.sNode,_.lNode]}(se);_.nodes.splice(_.nodes.indexOf(ne)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.splice(_.nodes.indexOf(ie)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""})}function t(_){if(!_||"word"!==_.type)return!1;if(!o(_))return!1;const X=te.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function u(_){return _&&"function"===_.type&&"calc"===_.value}function a(_){return _&&"function"===_.type&&"var"===_.value}function l(_){return _&&"div"===_.type&&"/"===_.value}function o(_){if(!_||!_.value)return!1;try{return!1!==te.default.unit(_.value)}catch(_){return!1}}const i=_=>{const X="preserve"in Object(_)&&Boolean(_.preserve);return{postcssPlugin:"postcss-color-functional-notation",Declaration:(_,{result:ee,postcss:re})=>{if(X&&function(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("supports"===X.name&&-1!==X.params.indexOf("(color: rgb(0 0 0 / 0.5)) and (color: hsl(0 0% 0% / 0.5))"))return!0;X=X.parent}else X=X.parent;return!1}(_))return;const se=_.value;if(!/(^|[^\w-])(hsla?|rgba?)\(/i.test(se))return;let ne;try{ne=te.default(se)}catch(X){_.warn(ee,`Failed to parse value '${se}' as a hsl or rgb function. Leaving the original value intact.`)}if(void 0===ne)return;ne.walk((_=>{_.type&&"function"===_.type&&("hsl"!==_.value&&"hsla"!==_.value&&"rgb"!==_.value&&"rgba"!==_.value||n(_))}));const ie=String(ne);if(ie!==se)if(X&&_.variable){const X=_.parent,ee="(color: rgb(0 0 0 / 0.5)) and (color: hsl(0 0% 0% / 0.5))",te=re.atRule({name:"supports",params:ee,source:_.source}),se=X.clone();se.removeAll(),se.append(_.clone()),te.append(se);let ne=X,oe=X.next();for(;ne&&oe&&"atrule"===oe.type&&"supports"===oe.name&&oe.params===ee;)ne=oe,oe=oe.next();ne.after(te),_.value=ie}else X?_.cloneBefore({value:ie}):_.value=ie}}};i.postcss=!0,_.exports=i},3676:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045)),re={preserve:!1};const r=_=>{if(o(_)){const{value:X}=_,ee=te.default(X);ee.walk((_=>{c(_)&&n(_)}));const se=ee.toString();se!==X&&(re.preserve?_.cloneBefore({value:se}):_.value=se)}},se=/^#([0-9A-Fa-f]{4}(?:[0-9A-Fa-f]{4})?)$/,ne=/#([0-9A-Fa-f]{4}(?:[0-9A-Fa-f]{4})?)\b/,o=_=>ne.test(_.value),c=_=>"word"===_.type&&se.test(_.value),n=_=>{const X=_.value,ee=`0x${5===X.length?X.slice(1).replace(/[0-9A-f]/g,"$&$&"):X.slice(1)}`,[te,re,se,ne]=[parseInt(ee.slice(2,4),16),parseInt(ee.slice(4,6),16),parseInt(ee.slice(6,8),16),Math.round(parseInt(ee.slice(8,10),16)/255*1e5)/1e5];_.value=`rgba(${te},${re},${se},${ne})`};function u(_){return re.preserve="preserve"in Object(_)&&Boolean(_.preserve),{postcssPlugin:"postcss-color-hex-alpha",Declaration:r}}u.postcss=!0,_.exports=u},5779:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));const re=Function.bind.bind(RegExp.prototype.test)(/^rebeccapurple$/i);var se={preserve:!1};const s=_=>{const{value:X}=_;if(ne(X)){const ee=te.default(X);ee.walk((_=>{"word"===_.type&&(_=>{re(_.value)&&(_.value="#639")})(_)}));const ne=String(ee);ne!==X&&(se.preserve?_.cloneBefore({value:ne}):_.value=ne)}},ne=Function.bind.bind(RegExp.prototype.test)(/(^|[^\w-])rebeccapurple([^\w-]|$)/i);function c(_){return se.preserve="preserve"in Object(_)&&Boolean(_.preserve),{postcssPlugin:"postcss-color-rebeccapurple",Declaration:s}}c.postcss=!0,_.exports=c},325:(_,X,ee)=>{"use strict";var te=ee(2045),re=ee(1017),se=ee(7310),ne=ee(977),ie=ee(7147);function n(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}function i(_){if(_&&_.__esModule)return _;var X=Object.create(null);return _&&Object.keys(_).forEach((function(ee){if("default"!==ee){var te=Object.getOwnPropertyDescriptor(_,ee);Object.defineProperty(X,ee,te.get?te:{enumerable:!0,get:function(){return _[ee]}})}})),X.default=_,Object.freeze(X)}var oe=n(te),ae=n(re);function u(_){const X=_.selector?_:_.parent;return/(!\s*)?postcss-custom-properties:\s*off\b/i.test(X.toString())}function l(_,X){const ee=new Map,te=new Map,re=new Map;_.nodes.slice().forEach((_=>{const re=m(_)?ee:w(_)?te:null;re&&(_.nodes.slice().forEach((_=>{if(_.variable&&!u(_)){const{prop:ee}=_;re.set(ee,oe.default(_.value)),X.preserve||_.remove()}})),X.preserve||!d(_)||u(_)||_.remove())}));for(const[_,X]of ee.entries())re.set(_,X);for(const[_,X]of te.entries())re.set(_,X);return re}const le=/^html$/i,ue=/^:root$/i,m=_=>"rule"===_.type&&_.selector.split(",").some((_=>le.test(_)))&&Object(_.nodes).length,w=_=>"rule"===_.type&&_.selector.split(",").some((_=>ue.test(_)))&&Object(_.nodes).length,d=_=>0===Object(_.nodes).length;function v(_){const X=new Map;if("customProperties"in _)for(const[ee,te]of Object.entries(_.customProperties))X.set(ee,oe.default(te.toString()));if("custom-properties"in _)for(const[ee,te]of Object.entries(_["custom-properties"]))X.set(ee,oe.default(te.toString()));return X}async function y(_){let X;try{X=await(te=_,Promise.resolve().then((function(){return i(ee(1983)(te))})))}catch(te){X=await function(_){return Promise.resolve().then((function(){return i(ee(1983)(_))}))}(se.pathToFileURL(_).href)}var te;return v("default"in X?X.default:X)}async function h(_){const X=(await Promise.all(_.map((async _=>{if(_ instanceof Promise?_=await _:_ instanceof Function&&(_=await _()),"string"==typeof _){const X=ae.default.resolve(_);return{type:ae.default.extname(X).slice(1).toLowerCase(),from:X}}if("customProperties"in _&&Object(_.customProperties)===_.customProperties)return _;if("custom-properties"in _&&Object(_["custom-properties"])===_["custom-properties"])return _;if("from"in _){const X=ae.default.resolve(_.from);let ee=_.type;return ee||(ee=ae.default.extname(X).slice(1).toLowerCase()),{type:ee,from:X}}return Object.keys(_).length,null})))).filter((_=>!!_)),ee=await Promise.all(X.map((async _=>{if("type"in _&&"from"in _){if("css"===_.type||"pcss"===_.type)return await async function(_){const X=await ie.promises.readFile(_);return l(ne.parse(X,{from:_.toString()}),{preserve:!0})}(_.from);if("js"===_.type||"cjs"===_.type)return await y(_.from);if("mjs"===_.type)return await y(_.from);if("json"===_.type)return await async function(_){return v(await g(_))}(_.from);throw new Error("Invalid source type: "+_.type)}return v(_)}))),te=new Map;return ee.forEach((_=>{for(const[X,ee]of _.entries())te.set(X,ee)})),te}const g=async _=>JSON.parse((await ie.promises.readFile(_)).toString());function j(_,X){return _.nodes&&_.nodes.length&&_.nodes.slice().forEach((ee=>{if(O(ee)){const[te,...re]=ee.nodes.filter((_=>"div"!==_.type)),{value:se}=te,ne=_.nodes.indexOf(ee);if(X.has(se)){const ee=X.get(se).nodes;!function(_,X,ee){const te=new Map(X);te.delete(ee),j(_,te)}({nodes:ee},X,se),ne>-1&&_.nodes.splice(ne,1,...ee)}else re.length&&(ne>-1&&_.nodes.splice(ne,1,...ee.nodes.slice(ee.nodes.indexOf(re[0]))),j(_,X))}else j(ee,X)})),_.toString()}const ce=/^var$/i,O=_=>"function"===_.type&&ce.test(_.value)&&Object(_.nodes).length>0;var $=(_,X,ee)=>{if(F(_)&&!function(_){const X=_.prev();return Boolean(u(_)||X&&"comment"===X.type&&/(!\s*)?postcss-custom-properties:\s*ignore\s+next\b/i.test(X.text))}(_)){const te=_.value;let re=j(oe.default(te),X);const se=new Set;for(;fe.test(re)&&!se.has(re);){se.add(re);re=j(oe.default(re),X)}if(re!==te)if(ee.preserve){const X=_.cloneBefore({value:re});S(X)&&(X.raws.value.value=X.value.replace(de,"$1"),X.raws.value.raw=X.raws.value.value+X.raws.value.raw.replace(de,"$2"))}else _.value=re,S(_)&&(_.raws.value.value=_.value.replace(de,"$1"),_.raws.value.raw=_.raws.value.value+_.raws.value.raw.replace(de,"$2"))}};const pe=/^--[A-z][\w-]*$/,fe=/(^|[^\w-])var\([\W\w]+\)/,F=_=>!pe.test(_.prop)&&fe.test(_.value),S=_=>"value"in Object(Object(_.raws).value)&&"raw"in _.raws.value&&de.test(_.raws.value.raw),de=/^([\W\w]+)(\s*\/\*[\W\w]+?\*\/)$/;async function E(_,X,ee){"css"===X&&await async function(_,X){const ee=`:root {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t${ee}: ${X[ee]};`),_)),[]).join("\n")}\n}\n`;await ie.promises.writeFile(_,ee)}(_,ee),"scss"===X&&await async function(_,X){const ee=`${Object.keys(X).reduce(((_,ee)=>{const te=ee.replace("--","$");return _.push(`${te}: ${X[ee]};`),_}),[]).join("\n")}\n`;await ie.promises.writeFile(_,ee)}(_,ee),"js"===X&&await async function(_,X){const ee=`module.exports = {\n\tcustomProperties: {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t\t'${q(ee)}': '${q(X[ee])}'`),_)),[]).join(",\n")}\n\t}\n};\n`;await ie.promises.writeFile(_,ee)}(_,ee),"json"===X&&await async function(_,X){const ee=`${JSON.stringify({"custom-properties":X},null," ")}\n`;await ie.promises.writeFile(_,ee)}(_,ee),"mjs"===X&&await async function(_,X){const ee=`export const customProperties = {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t'${q(ee)}': '${q(X[ee])}'`),_)),[]).join(",\n")}\n};\n`;await ie.promises.writeFile(_,ee)}(_,ee)}function M(_){const X={};for(const[ee,te]of _.entries())X[ee]=te.toString();return X}const q=_=>_.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),N=_=>{const X=!("preserve"in Object(_))||Boolean(_.preserve),ee="overrideImportFromWithRoot"in Object(_)&&Boolean(_.overrideImportFromWithRoot),te="disableDeprecationNotice"in Object(_)&&Boolean(_.disableDeprecationNotice);let re=[];Array.isArray(null==_?void 0:_.importFrom)?re=_.importFrom:null!=_&&_.importFrom&&(re=[_.importFrom]);let se=[];Array.isArray(null==_?void 0:_.exportTo)?se=_.exportTo:null!=_&&_.exportTo&&(se=[_.exportTo]);const ne=h(re),ie=0===re.length&&0===se.length;return{postcssPlugin:"postcss-custom-properties",prepare(){let _=new Map;return ie?{Once:ee=>{_=l(ee,{preserve:X})},Declaration:ee=>{$(ee,_,{preserve:X})},OnceExit:()=>{_.clear()}}:{Once:async te=>{const re=(await ne).entries(),ie=l(te,{preserve:X}).entries();if(ee)for(const[X,ee]of[...re,...ie])_.set(X,ee);else for(const[X,ee]of[...ie,...re])_.set(X,ee);await function(_,X){return Promise.all(X.map((async X=>{if(X instanceof Function)return void await X(M(_));if("string"==typeof X){const ee=ae.default.resolve(X),te=ae.default.extname(ee).slice(1).toLowerCase();return void await E(ee,te,M(_))}let ee={};if(ee="toJSON"in X?X.toJSON(M(_)):M(_),"to"in X){const _=ae.default.resolve(X.to);let te=X.type;return te||(te=ae.default.extname(_).slice(1).toLowerCase()),void await E(_,te,ee)}"customProperties"in X?X.customProperties=ee:"custom-properties"in X&&(X["custom-properties"]=ee)})))}(_,se)},Declaration:ee=>{$(ee,_,{preserve:X})},OnceExit:(X,{result:ee})=>{!te&&(re.length>0||se.length>0)&&X.warn(ee,'"importFrom" and "exportTo" will be removed in a future version of postcss-custom-properties.\nWe are looking for insights and anecdotes on how these features are used so that we can design the best alternative.\nPlease let us know if our proposal will work for you.\nVisit the discussion on github for more details. https://github.com/csstools/postcss-plugins/discussions/192'),_.clear()}}}}};N.postcss=!0,_.exports=N},618:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const re=/:dir\([^)]*\)/;function o(_){const X=Object(_).dir,ee=Boolean(Object(_).preserve),se=Boolean(Object(_).shadow);return{postcssPlugin:"postcss-dir-pseudo-class",Rule(_,{result:ne}){let ie,oe=!1;if(re.test(_.selector)){try{ie=te.default((ee=>{ee.nodes.forEach((ee=>{ee.walk((ee=>{if("pseudo"!==ee.type)return;if(":dir"!==ee.value)return;const re=ee.nodes.toString();if("rtl"!==re&&"ltr"!==re)return;const ie=ee.parent;ie.nodes.filter((_=>"pseudo"===_.type&&":dir"===_.value)).length>1&&!oe&&(oe=!0,_.warn(ne,`Hierarchical :dir pseudo class usage can't be transformed correctly to [dir] attributes. This will lead to incorrect selectors for "${_.selector}"`));const ae=ee.prev(),le=ee.next(),ue=ae&&ae.type&&"combinator"!==ae.type,ce=le&&le.type&&"combinator"!==le.type,pe=le&&le.type&&("combinator"!==le.type||"combinator"===le.type&&" "===le.value);ue||ce||0===ie.nodes.indexOf(ee)&&pe||1===ie.nodes.length?ee.remove():ee.replaceWith(te.default.universal());const fe=ie.nodes[0],de=fe&&"combinator"===fe.type&&" "===fe.value,he=fe&&"tag"===fe.type&&"html"===fe.value,me=fe&&"pseudo"===fe.type&&":root"===fe.value;!fe||he||me||de||ie.prepend(te.default.combinator({value:" "}));const ge=X===re,be=te.default.attribute({attribute:"dir",operator:"=",quoteMark:'"',value:`"${re}"`}),ve=te.default.pseudo({value:":host-context"});ve.append(be);const ye=te.default.pseudo({value:(he||me?"":"html")+":not"});ye.append(te.default.attribute({attribute:"dir",operator:"=",quoteMark:'"',value:`"${"ltr"===re?"rtl":"ltr"}"`})),ge?he?ie.insertAfter(fe,ye):ie.prepend(ye):he?ie.insertAfter(fe,be):se&&!me?ie.prepend(ve):ie.prepend(be)}))}))})).processSync(_.selector)}catch(X){return void _.warn(ne,`Failed to parse selector : ${_.selector}`)}void 0!==ie&&ie!==_.selector&&(ee?_.cloneBefore({selector:ie}):_.selector=ie)}}}}o.postcss=!0,_.exports=o},9:(_,X,ee)=>{"use strict";var te=ee(2605),re=ee(2045);function r(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=r(te),ne=r(re);function s(_){return _.includes("conic-gradient(")||_.includes("linear-gradient(")||_.includes("radial-gradient(")||_.includes("repeating-conic-gradient(")||_.includes("repeating-linear-gradient(")||_.includes("repeating-radial-gradient(")}const ie=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"],o=_=>"div"===_.type&&","===_.value;function l(_){try{return!1!==ne.default.unit(null==_?void 0:_.value)}catch(_){return!1}}const c=_=>({postcssPlugin:"postcss-double-position-gradients",Declaration(X,{result:ee}){if(!s(X.value))return;if(function(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("supports"===X.name&&s(X.params))return!0;X=X.parent}else X=X.parent;return!1}(X))return;let te;try{te=ne.default(X.value)}catch(_){X.warn(ee,`Failed to parse value '${X.value}' as a CSS gradient. Leaving the original value intact.`)}if(void 0===te)return;te.walk((_=>{if("function"!==_.type||"conic-gradient"!==(X=_.value)&&"linear-gradient"!==X&&"radial-gradient"!==X&&"repeating-conic-gradient"!==X&&"repeating-linear-gradient"!==X&&"repeating-radial-gradient"!==X)return;var X;const ee=_.nodes.filter((_=>"comment"!==_.type&&"space"!==_.type));let te=!1;ee.forEach(((X,ee,re)=>{if("word"===X.type&&ie.includes(X.value)&&(te=!0),"div"===X.type&&","===X.value&&(te=!1),te)return;const se=Object(re[ee-1]),ne=Object(re[ee-2]),oe=Object(re[ee+1]);if(ne.type&&l(se)&&l(X)){const ee=ne,te={type:"div",value:",",before:o(oe)?oe.before:"",after:o(oe)?"":" "};_.nodes.splice(_.nodes.indexOf(X)-1,0,te,ee)}}))}));const re=te.toString();if(re!==X.value){if(_.preserve)return void X.cloneBefore({value:re});X.value=re}}});c.postcss=!0;const u=_=>{const X=Object.assign({enableProgressiveCustomProperties:!0,preserve:!0},_);return X.enableProgressiveCustomProperties&&X.preserve?{postcssPlugin:"postcss-double-position-gradients",plugins:[se.default(),c(X)]}:c(X)};u.postcss=!0,_.exports=u},8785:(_,X,ee)=>{"use strict";var te=ee(2045),re=ee(7147),se=ee(1017);function a(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}function r(_){if(_&&_.__esModule)return _;var X=Object.create(null);return _&&Object.keys(_).forEach((function(ee){if("default"!==ee){var te=Object.getOwnPropertyDescriptor(_,ee);Object.defineProperty(X,ee,te.get?te:{enumerable:!0,get:function(){return _[ee]}})}})),X.default=_,Object.freeze(X)}var ne=a(te),ie=a(re),oe=a(se),c=(_,X)=>{const ee=ne.default(_);return ee.walk((_=>{if((_=>_&&"function"===_.type&&"env"===_.value)(_)){const[ee]=_.nodes;"word"===ee.type&&void 0!==X[ee.value]&&(_.nodes=[],_.type="word",_.value=X[ee.value])}})),ee.toString()};function u(_){return Object.assign({},Object(_).environmentVariables||Object(_)["environment-variables"])}function l(_){return _.map((_=>{if(_ instanceof Promise)return _;if(_ instanceof Function)return _();const X=_===Object(_)?_:{from:String(_)};if(X.environmentVariables||X["environment-variables"])return X;const ee=String(X.from||"");return{type:(X.type||oe.default.extname(ee).slice(1)).toLowerCase(),from:ee}})).reduce((async(_,X)=>{const{type:te,from:re}=await X;return"js"===te||"cjs"===te?Object.assign(_,await async function(_){var X;return u(await(X=oe.default.resolve(_),Promise.resolve().then((function(){return r(ee(6102)(X))}))))}(re)):"json"===te?Object.assign(_,await async function(_){return u(await f(oe.default.resolve(_)))}(re)):Object.assign(_,u(await X))}),{})}const f=async _=>JSON.parse(await(_=>new Promise(((X,ee)=>{ie.default.readFile(_,"utf8",((_,te)=>{_?ee(_):X(te)}))})))(_));function d(_){const X=l([].concat(Object(_).importFrom||[])),ee="disableDeprecationNotice"in Object(_)&&Boolean(_.disableDeprecationNotice);let te=!1;return{postcssPlugin:"postcss-env-fn",async AtRule(_,{result:re}){let se;try{se=c(_.params,await X)}catch(X){_.warn(re,`Failed to parse params '${_.params}' as an environment value. Leaving the original value intact.`)}void 0!==se&&se!==_.params&&(_.params=se,ee||te||(te=!0,_.warn(re,"postcss-env-function is deprecated and will be removed.\nCheck the discussion on github for more details. https://github.com/csstools/postcss-plugins/discussions/192")))},async Declaration(_,{result:re}){let se;try{se=c(_.value,await X)}catch(X){_.warn(re,`Failed to parse value '${_.value}' as an environment value. Leaving the original value intact.`)}void 0!==se&&se!==_.value&&(_.value=se,ee||te||(te=!0,_.warn(re,"postcss-env-function is deprecated and will be removed.\nWe are looking for insights and anecdotes on how these features are used so that we can design the best alternative.\nPlease let us know if our proposal will work for you.\nVisit the discussion on github for more details. https://github.com/csstools/postcss-plugins/discussions/192")))}}}d.postcss=!0,_.exports=d},1909:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const t=_=>{_=Object(_);const X=Boolean(!("preserve"in _)||_.preserve),ee=String(_.replaceWith||".focus-visible"),re=te.default().astSync(ee);return{postcssPlugin:"postcss-focus-visible",Rule(_,{result:ee}){if(!_.selector.includes(":focus-visible"))return;let se;try{const X=te.default((_=>{_.walkPseudos((_=>{":focus-visible"===_.value&&(_.nodes&&_.nodes.length||_.replaceWith(re.clone({})))}))})).processSync(_.selector);se=String(X)}catch(X){return void _.warn(ee,`Failed to parse selector : ${_.selector}`)}if(void 0===se)return;if(se===_.selector)return;const ne=_.clone({selector:se});X?_.before(ne):_.replaceWith(ne)}}};t.postcss=!0,_.exports=t},990:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const s=_=>{const X=String(Object(_).replaceWith||"[focus-within]"),ee=Boolean(!("preserve"in Object(_))||_.preserve),re=te.default().astSync(X);return{postcssPlugin:"postcss-focus-within",Rule:(_,{result:X})=>{if(!_.selector.includes(":focus-within"))return;let se;try{const X=te.default((_=>{_.walkPseudos((_=>{":focus-within"===_.value&&(_.nodes&&_.nodes.length||_.replaceWith(re.clone({})))}))})).processSync(_.selector);se=String(X)}catch(ee){return void _.warn(X,`Failed to parse selector : ${_.selector}`)}if(void 0===se)return;if(se===_.selector)return;const ne=_.clone({selector:se});ee?_.before(ne):_.replaceWith(ne)}}};s.postcss=!0,_.exports=s},1760:_=>{"use strict";const X=/^(column-gap|gap|row-gap)$/i,o=_=>"display"===_.prop&&"grid"===_.value;function p(_){const ee=!("preserve"in Object(_))||Boolean(_.preserve);return{postcssPlugin:"postcss-gap-properties",Declaration(_){X.test(_.prop)&&_.parent.some(o)&&(_.cloneBefore({prop:`grid-${_.prop}`}),ee||_.remove())}}}p.postcss=!0,_.exports=p},1493:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));const re=/^(cross-fade|image|(repeating-)?(conic|linear|radial)-gradient|url|var)$/i;function r(_){return!(!_||!_.type)&&("string"===_.type?"url("+te.default.stringify(_)+")":!("function"!==_.type||!re.test(_.value))&&te.default.stringify(_))}const se={dpcm:2.54,dpi:1,dppx:96,x:96};function a(_,X,ee){if("boolean"==typeof _)return!1;const te=Math.floor(_/se.x*100)/100;return X.atRule({name:"media",params:`(-webkit-min-device-pixel-ratio: ${te}), (min-resolution: ${_}dpi)`,source:ee.source})}function o(_){if(!_)return!1;if("word"!==_.type)return!1;if(!function(_){if(!_||!_.value)return!1;try{return!1!==te.default.unit(_.value)}catch(_){return!1}}(_))return!1;const X=te.default.unit(_.value);return!!X&&(X.unit.toLowerCase()in se&&Number(X.number)*se[X.unit.toLowerCase()])}const s=(_,X,ee)=>{if("warn"===_.oninvalid)_.decl.warn(_.result,X,{word:String(ee)});else if("throw"===_.oninvalid)throw _.decl.error(X,{word:String(ee)})},ne=/(^|[^\w-])(-webkit-)?image-set\(/i,ie=/^(-webkit-)?image-set$/i,c=_=>{const X=!("preserve"in Object(_))||Boolean(_.preserve),ee="oninvalid"in Object(_)?_.oninvalid:"ignore";return{postcssPlugin:"postcss-image-set-function",Declaration(_,{result:re,postcss:se}){const oe=_.value;if(!ne.test(oe))return;let ae;try{ae=te.default(oe)}catch(X){_.warn(re,`Failed to parse value '${oe}' as an image-set function. Leaving the original value intact.`)}if(void 0===ae)return;const le=[];ae.walk((X=>{if("function"!==X.type)return;if(!ie.test(X.value))return;let se=!1;if(te.default.walk(X.nodes,(_=>{"function"===_.type&&ie.test(_.value)&&(se=!0)})),se)return s({decl:_,oninvalid:ee,result:re},"nested image-set functions are not allowed",te.default.stringify(X)),!1;const ne=X.nodes.filter((_=>"comment"!==_.type&&"space"!==_.type));le.push({imageSetFunction:X,imageSetOptionNodes:ne})})),((_,X,ee)=>{const re=X.parent,se=new Map,ne=X.value;for(let re=0;re<_.length;re++){const{imageSetFunction:oe,imageSetOptionNodes:ae}=_[re],le=new Map,ue=ae.length;let ce=-1;for(;ce_-X)).map((_=>se.get(_).atRule));if(!oe.length)return;const ae=oe[0],le=oe.slice(1);le.length&&re.after(le);const ue=ae.nodes[0].nodes[0];X.cloneBefore({value:ue.value.trim()}),ee.preserve||(X.remove(),re.nodes.length||re.remove())})(le,_,{decl:_,oninvalid:ee,preserve:X,result:re,postcss:se})}}};c.postcss=!0,_.exports=c},9590:(_,X,ee)=>{"use strict";var te=ee(2605),re=ee(2045);function n(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var se=n(te),ne=n(re); /** * Simple matrix (and vector) multiplication * Warning: No error handling for incompatible dimensions! @@ -91,4 +91,4 @@ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang). * * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js - */function F(_,X){const[ee,te,re]=_,[se,ne,ie]=X,oe=ee-se,ae=te-ne,le=re-ie;return Math.sqrt(oe**2+ae**2+le**2)}function P(_,X,ee){return function(_,X,ee){let te=0,re=_[1];const se=_;for(;re-te>1e-4;){const _=w(X(se));F(x(se),x(ee(_)))-.02<1e-4?te=se[1]:re=se[1],se[1]=(re+te)/2}return w(X([...se]))}(_,X,ee)}function w(_){return _.map((_=>_<0?0:_>1?1:_))}function I(_){const[X,ee,te]=_;return X>=-1e-4&&X<=1.0001&&ee>=-1e-4&&ee<=1.0001&&te>=-1e-4&&te<=1.0001}function N(_){const[X,ee,te]=_;let re=[Math.max(X,0),Math.min(Math.max(ee,-160),160),Math.min(Math.max(te,-160),160)];re=v(re);let se=re.slice();return se=m(se),se=y(se),se=g(se),se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=m(re),re=h(re),re=p(re),I(re)?[w(re),!0]:[P(se,(_=>p(_=h(_=M(_=x(_))))),(_=>g(_=y(_=d(_=f(_)))))),!1]}function S(_){const[X,ee,te]=_;let re=[Math.max(X,0),Math.min(Math.max(ee,-160),160),Math.min(Math.max(te,-160),160)];re=v(re);let se=re.slice();return se=m(se),se=y(se),se=g(se),se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=m(re),re=c(re),re=s(re),I(re)?w(re).map((_=>Math.round(255*_))):P(se,(_=>s(_=c(_=M(_=x(_))))),(_=>g(_=y(_=l(_=i(_)))))).map((_=>Math.round(255*_)))}function O(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te%360];re=b(re),re=v(re);let se=re.slice();return se=m(se),se=y(se),se=g(se),se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=m(re),re=h(re),re=p(re),I(re)?[w(re),!0]:[P(se,(_=>p(_=h(_=M(_=x(_))))),(_=>g(_=y(_=d(_=f(_)))))),!1]}function A(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te%360];re=b(re),re=v(re);let se=re.slice();return se=m(se),se=y(se),se=g(se),se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=m(re),re=c(re),re=s(re),I(re)?w(re).map((_=>Math.round(255*_))):P(se,(_=>s(_=c(_=M(_=x(_))))),(_=>g(_=y(_=l(_=i(_)))))).map((_=>Math.round(255*_)))}function q(_){const X=_.value,ee=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let te=null;if("lab"===X?te=$(ee):"lch"===X&&(te=C(ee)),!te)return;_.value="rgb",function(_,X,ee){if(!X||!ee)return;if(_.value="rgba",X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!H(_))return!1;const X=ne.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const te=ne.default.unit(ee.value);if(!te)return;"%"===te.unit&&(te.number=String(parseFloat(te.number)/100),ee.value=String(te.number))}(_,te.slash,te.alpha);const[re,se,ie]=G(te),[oe,ae,le]=L(te),ue=("lab"===X?S:A)([oe.number,ae.number,le.number].map((_=>parseFloat(_))));_.nodes.splice(_.nodes.indexOf(re)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.splice(_.nodes.indexOf(se)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),z(_.nodes,re,{...re,value:String(ue[0])}),z(_.nodes,se,{...se,value:String(ue[1])}),z(_.nodes,ie,{...ie,value:String(ue[2])})}function B(_){if(!_||"word"!==_.type)return!1;if(!H(_))return!1;const X=ne.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function E(_){return _&&"function"===_.type&&"calc"===_.value}function j(_){return _&&"function"===_.type&&"var"===_.value}function k(_){return _&&"div"===_.type&&"/"===_.value}function C(_){if(!B(_[0]))return null;if(!B(_[1]))return null;if(!function(_){if(!_||"word"!==_.type)return!1;if(!H(_))return!1;const X=ne.default.unit(_.value);return!(!X||!X.number||"deg"!==X.unit&&"grad"!==X.unit&&"rad"!==X.unit&&"turn"!==X.unit&&""!==X.unit)}(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],c:ne.default.unit(_[1].value),cNode:_[1],h:ne.default.unit(_[2].value),hNode:_[2]};return function(_){switch(_.unit){case"deg":return void(_.unit="");case"rad":return _.unit="",void(_.number=(180*parseFloat(_.number)/Math.PI).toString());case"grad":return _.unit="",void(_.number=(.9*parseFloat(_.number)).toString());case"turn":_.unit="",_.number=(360*parseFloat(_.number)).toString()}}(X.h),""!==X.h.unit?null:(k(_[3])&&(X.slash=_[3]),(B(_[4])||E(_[4])||j(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit=""),"%"===X.c.unit&&(X.c.unit="",X.c.number=(parseFloat(X.c.number)/100*150).toFixed(10)),X):null)}function $(_){if(!B(_[0]))return null;if(!B(_[1]))return null;if(!B(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],a:ne.default.unit(_[1].value),aNode:_[1],b:ne.default.unit(_[2].value),bNode:_[2]};return k(_[3])&&(X.slash=_[3]),(B(_[4])||E(_[4])||j(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit=""),"%"===X.a.unit&&(X.a.unit="",X.a.number=(parseFloat(X.a.number)/100*125).toFixed(10)),"%"===X.b.unit&&(X.b.unit="",X.b.number=(parseFloat(X.b.number)/100*125).toFixed(10)),X):null}function D(_){return void 0!==_.a}function G(_){return D(_)?[_.lNode,_.aNode,_.bNode]:[_.lNode,_.cNode,_.hNode]}function L(_){return D(_)?[_.l,_.a,_.b]:[_.l,_.c,_.h]}function z(_,X,ee){const te=_.indexOf(X);_[te]=ee}function H(_){if(!_||!_.value)return!1;try{return!1!==ne.default.unit(_.value)}catch(_){return!1}}function J(_,X,ee,te){let re;try{re=ne.default(_)}catch(te){X.warn(ee,`Failed to parse value '${_}' as a lab or lch function. Leaving the original value intact.`)}if(void 0===re)return;re.walk((_=>{_.type&&"function"===_.type&&("lab"!==_.value&&"lch"!==_.value||q(_))}));const se=String(re);if(se===_)return;const ie=ne.default(_);ie.walk((_=>{_.type&&"function"===_.type&&("lab"!==_.value&&"lch"!==_.value||function(_,X,ee,te){const re=ne.default.stringify(_),se=_.value,ie=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let oe=null;if("lab"===se?oe=$(ie):"lch"===se&&(oe=C(ie)),!oe)return;if(ie.length>3&&(!oe.slash||!oe.alpha))return;_.value="color";const[ae,le,ue]=G(oe),[ce,pe,fe]=L(oe),de="lab"===se?N:O,he=[ce.number,pe.number,fe.number].map((_=>parseFloat(_))),[me,ge]=de(he);!ge&&te&&X.warn(ee,`"${re}" is out of gamut for "display-p3". Given "preserve: true" is set, this will lead to unexpected results in some browsers.`),_.nodes.splice(0,0,{sourceIndex:0,sourceEndIndex:10,value:"display-p3",type:"word"}),_.nodes.splice(1,0,{sourceIndex:0,sourceEndIndex:1,value:" ",type:"space"}),z(_.nodes,ae,{...ae,value:me[0].toFixed(5)}),z(_.nodes,le,{...le,value:me[1].toFixed(5)}),z(_.nodes,ue,{...ue,value:me[2].toFixed(5)})}(_,X,ee,te))}));return{rgb:se,displayP3:String(ie)}}const K=_=>({postcssPlugin:"postcss-lab-function",Declaration:(X,{result:ee})=>{if(function(_){const X=_.parent;if(!X)return!1;const ee=X.index(_);for(let te=0;te{const X=Object.assign({enableProgressiveCustomProperties:!0,preserve:!1,subFeatures:{displayP3:!0}},_);return X.subFeatures=Object.assign({displayP3:!0},X.subFeatures),X.enableProgressiveCustomProperties&&(X.preserve||X.subFeatures.displayP3)?{postcssPlugin:"postcss-lab-function",plugins:[se.default(),K(X)]}:K(X)};Q.postcss=!0,_.exports=Q},2520:(_,X,ee)=>{"use strict";function r(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=r(ee(977)),t=(_,X)=>{const ee="rule"===Object(_.parent).type?_.parent.cloneBefore({raws:{}}).removeAll():te.default.rule({selector:"&"});return ee.selectors=ee.selectors.map((_=>`${_}:dir(${X})`)),ee};const re=/^border-(block|block-start|block-end|inline|inline-start|inline-end)(-(width|style|color))?$/i;var l=(_,X,ee,te)=>{_.cloneBefore({prop:`border-top${_.prop.replace(re,"$2")}`,value:X[0]}),_.cloneBefore({prop:`border-bottom${_.prop.replace(re,"$2")}`,value:X[1]||X[0]}),b(_,te)},n=(_,X,ee,te)=>{_.cloneBefore({prop:`border-top${_.prop.replace(re,"$2")}`}),b(_,te)},i=(_,X,ee,te)=>{_.cloneBefore({prop:`border-bottom${_.prop.replace(re,"$2")}`}),b(_,te)},d=(_,X,ee,te)=>{const i=()=>[_.cloneBefore({prop:`border-left${_.prop.replace(re,"$2")}`,value:X[0]}),_.cloneBefore({prop:`border-right${_.prop.replace(re,"$2")}`,value:X[1]||X[0]})],d=()=>[_.clone({prop:`border-right${_.prop.replace(re,"$2")}`,value:X[0]}),_.clone({prop:`border-left${_.prop.replace(re,"$2")}`,value:X[1]||X[0]})];return 1===X.length||2===X.length&&X[0]===X[1]||"ltr"===ee?(i(),void b(_,te)):"rtl"===ee?(d(),void b(_,te)):(t(_,"ltr").append(i()),t(_,"rtl").append(d()),void b(_,te))},p=(_,X,ee,te)=>{const i=()=>_.cloneBefore({prop:`border-left${_.prop.replace(re,"$2")}`}),d=()=>_.cloneBefore({prop:`border-right${_.prop.replace(re,"$2")}`});return"ltr"===ee?(i(),void b(_,te)):"rtl"===ee?(d(),void b(_,te)):(t(_,"ltr").append(i()),t(_,"rtl").append(d()),void b(_,te))},a=(_,X,ee,te)=>{const i=()=>_.cloneBefore({prop:`border-right${_.prop.replace(re,"$2")}`}),d=()=>_.cloneBefore({prop:`border-left${_.prop.replace(re,"$2")}`});return"ltr"===ee?(i(),void b(_,te)):"rtl"===ee?(d(),void b(_,te)):(t(_,"ltr").append(i()),t(_,"rtl").append(d()),void b(_,te))};function b(_,X){X||_.remove()}const se=/^(border-)(end-end|end-start|start-end|start-start)(-radius)$/i,ne={"end-end":"bottom-right","end-start":"bottom-left","start-end":"top-right","start-start":"top-left"},ie={"end-end":"bottom-left","end-start":"bottom-right","start-end":"top-left","start-start":"top-right"};var f=(_,X,ee,te)=>"ltr"===ee?(u(_),void v(_,te)):"rtl"===ee?(h(_),void v(_,te)):(t(_,"ltr").append(u(_)),t(_,"rtl").append(h(_)),void v(_,te));function u(_){return _.cloneBefore({prop:_.prop.replace(se,((_,X,ee,te)=>`${X}${ne[ee]}${te}`))})}function h(_){return _.cloneBefore({prop:_.prop.replace(se,((_,X,ee,te)=>`${X}${ie[ee]}${te}`))})}function v(_,X){X||_.remove()}var m=_=>{const X=_.slice();return 4===X.length&&X[3]===X[1]&&X.pop(),3===X.length&&X[2]===X[0]&&X.pop(),2===X.length&&X[1]===X[0]&&X.pop(),X},k=(_,X,ee,te)=>{if("logical"!==X[0])return null;const[,re,se,ne,ie]=X,oe=m([re,ie||se||re,ne||re,se||re]),b=()=>_.cloneBefore({value:oe.join(" ")});if(oe.length<4||"ltr"===ee)return b(),void $(_,te);const ae=m([re,se||re,ne||re,ie||se||re]),s=()=>_.cloneBefore({value:ae.join(" ")});if("rtl"===ee)return s(),void $(_,te);t(_,"ltr").append(b()),t(_,"rtl").append(s()),$(_,te)};function $(_,X){X||_.remove()}var B=(_,X,ee,te)=>/^inline-start$/i.test(_.value)?"ltr"===ee?(y(_),void j(_,te)):"rtl"===ee?(w(_),void j(_,te)):(t(_,"ltr").append(y(_)),t(_,"rtl").append(w(_)),void j(_,te)):/^inline-end$/i.test(_.value)?"ltr"===ee?(w(_),void j(_,te)):"rtl"===ee?(y(_),void j(_,te)):(t(_,"ltr").append(w(_)),t(_,"rtl").append(y(_)),void j(_,te)):void 0;function y(_){return _.cloneBefore({value:"left"})}function w(_){return _.cloneBefore({value:"right"})}function j(_,X){X||_.remove()}var z=(_,X,ee,te)=>{if("logical"!==X[0])return _.cloneBefore({prop:"top",value:X[0]}),_.cloneBefore({prop:"right",value:X[1]||X[0]}),_.cloneBefore({prop:"bottom",value:X[2]||X[0]}),_.cloneBefore({prop:"left",value:X[3]||X[1]||X[0]}),void O(_,te);return!X[4]||X[4]===X[2]||"ltr"===ee?(x(_,X),void O(_,te)):"rtl"===ee?(E(_,X),void O(_,te)):(t(_,"ltr").append(x(_,X)),t(_,"rtl").append(E(_,X)),void O(_,te))};function x(_,X){return[_.cloneBefore({prop:"top",value:X[1]}),_.cloneBefore({prop:"left",value:X[2]||X[1]}),_.cloneBefore({prop:"bottom",value:X[3]||X[1]}),_.cloneBefore({prop:"right",value:X[4]||X[2]||X[1]})]}function E(_,X){return[_.cloneBefore({prop:"top",value:X[1]}),_.cloneBefore({prop:"right",value:X[2]||X[1]}),_.cloneBefore({prop:"bottom",value:X[3]||X[1]}),_.cloneBefore({prop:"left",value:X[4]||X[2]||X[1]})]}function O(_,X){X||_.remove()}var q=(_,X,ee,te)=>/^block$/i.test(_.value)?(_.cloneBefore({value:"vertical"}),void A(_,te)):/^inline$/i.test(_.value)?(_.cloneBefore({value:"horizontal"}),void A(_,te)):void 0;function A(_,X){X||_.remove()}var oe=/^(inset|margin|padding)(?:-(block|block-start|block-end|inline|inline-start|inline-end|start|end))$/i,ae=/^inset-/i,C=(_,X,ee)=>_.cloneBefore({prop:`${_.prop.replace(oe,"$1")}${X}`.replace(ae,""),value:ee}),F=(_,X,ee,te)=>{C(_,"-top",X[0]),C(_,"-bottom",X[1]||X[0]),L(_,te)},G=(_,X,ee,te)=>{_.cloneBefore({prop:_.prop.replace(oe,"$1-top").replace(ae,"")}),L(_,te)},H=(_,X,ee,te)=>{_.cloneBefore({prop:_.prop.replace(oe,"$1-bottom").replace(ae,"")}),L(_,te)},I=(_,X,ee,te)=>{const n=()=>[C(_,"-left",X[0]),C(_,"-right",X[1]||X[0])],i=()=>[C(_,"-right",X[0]),C(_,"-left",X[1]||X[0])];return 1===X.length||2===X.length&&X[0]===X[1]||"ltr"===ee?(n(),void L(_,te)):"rtl"===ee?(i(),void L(_,te)):(t(_,"ltr").append(n()),t(_,"rtl").append(i()),void L(_,te))},J=(_,X,ee,te)=>{const n=()=>C(_,"-left",_.value),i=()=>C(_,"-right",_.value);return"ltr"===ee?(n(),void L(_,te)):"rtl"===ee?(i(),void L(_,te)):(t(_,"ltr").append(n()),t(_,"rtl").append(i()),void L(_,te))},K=(_,X,ee,te)=>{const n=()=>C(_,"-right",_.value),i=()=>C(_,"-left",_.value);return"ltr"===ee?(n(),void L(_,te)):"rtl"===ee?(i(),void L(_,te)):(t(_,"ltr").append(n()),t(_,"rtl").append(i()),void L(_,te))};function L(_,X){X||_.remove()}var le=/^(min-|max-)?(block|inline)-(size)$/i,N=(_,X,ee,te)=>{_.cloneBefore({prop:_.prop.replace(le,((_,X,ee)=>`${X||""}${"block"===ee?"height":"width"}`))}),te||_.remove()},Q=(_,X,ee,te)=>/^start$/i.test(_.value)?"ltr"===ee?(R(_),void T(_,te)):"rtl"===ee?(S(_),void T(_,te)):(t(_,"ltr").append(R(_)),t(_,"rtl").append(S(_)),void T(_,te)):/^end$/i.test(_.value)?"ltr"===ee?(S(_),void T(_,te)):"rtl"===ee?(R(_),void T(_,te)):(t(_,"ltr").append(S(_)),t(_,"rtl").append(R(_)),void T(_,te)):void 0;function R(_){return _.cloneBefore({value:"left"})}function S(_){return _.cloneBefore({value:"right"})}function T(_,X){X||_.remove()}function U(_,X){return V(_,/^\s$/,X)}function V(_,X,ee){const te=[];let re="",se=!1,ne=0,ie=-1;for(;++ie<_.length;){const oe=_[ie];"("===oe?ne+=1:")"===oe?ne>0&&(ne-=1):0===ne&&X.test(oe)&&(se=!0),se?(ee&&!re.trim()||te.push(ee?re.trim():re),ee||te.push(oe),re="",se=!1):re+=oe}return""!==re&&te.push(ee?re.trim():re),te}var W=(_,X,ee,te)=>{const re=[],se=[];var ne,ie;return(ne=_.value,V(ne,/^,$/,ie)).forEach((_=>{let X=!1;U(_).forEach(((_,ee,te)=>{_ in ue&&(X=!0,ue[_].ltr.forEach((_=>{const X=te.slice();X.splice(ee,1,_),re.length&&!/^,$/.test(re[re.length-1])&&re.push(","),re.push(X.join(""))})),ue[_].rtl.forEach((_=>{const X=te.slice();X.splice(ee,1,_),se.length&&!/^,$/.test(se[se.length-1])&&se.push(","),se.push(X.join(""))})))})),X||(re.push(_),se.push(_))})),re.length&&"ltr"===ee?(te&&_.cloneBefore({}),void(_.value=re.join(""))):se.length&&"rtl"===ee?(te&&_.cloneBefore({}),void(_.value=se.join(""))):re.join("")!==se.join("")?(t(_,"ltr").append(_.cloneBefore({value:re.join("")})),t(_,"rtl").append(_.cloneBefore({value:se.join("")})),void function(_,X){X||_.remove()}(_,te)):void 0};const ue={"block-size":{ltr:["height"],rtl:["height"]},"inline-size":{ltr:["width"],rtl:["width"]},"margin-block-end":{ltr:["margin-bottom"],rtl:["margin-bottom"]},"margin-block-start":{ltr:["margin-top"],rtl:["margin-top"]},"margin-block":{ltr:["margin-top","margin-bottom"],rtl:["margin-top","margin-bottom"]},"margin-inline-end":{ltr:["margin-right"],rtl:["margin-left"]},"margin-inline-start":{ltr:["margin-left"],rtl:["margin-right"]},"margin-inline":{ltr:["margin-left","margin-right"],rtl:["margin-left","margin-right"]},"inset-block-end":{ltr:["bottom"],rtl:["bottom"]},"inset-block-start":{ltr:["top"],rtl:["top"]},"inset-block":{ltr:["top","bottom"],rtl:["top","bottom"]},"inset-inline-end":{ltr:["right"],rtl:["left"]},"inset-inline-start":{ltr:["left"],rtl:["right"]},"inset-inline":{ltr:["left","right"],rtl:["left","right"]},inset:{ltr:["top","right","bottom","left"],rtl:["top","right","bottom","left"]},"padding-block-end":{ltr:["padding-bottom"],rtl:["padding-bottom"]},"padding-block-start":{ltr:["padding-top"],rtl:["padding-top"]},"padding-block":{ltr:["padding-top","padding-bottom"],rtl:["padding-top","padding-bottom"]},"padding-inline-end":{ltr:["padding-right"],rtl:["padding-left"]},"padding-inline-start":{ltr:["padding-left"],rtl:["padding-right"]},"padding-inline":{ltr:["padding-left","padding-right"],rtl:["padding-left","padding-right"]},"border-block-color":{ltr:["border-top-color","border-bottom-color"],rtl:["border-top-color","border-bottom-color"]},"border-block-end-color":{ltr:["border-bottom-color"],rtl:["border-bottom-color"]},"border-block-end-style":{ltr:["border-bottom-style"],rtl:["border-bottom-style"]},"border-block-end-width":{ltr:["border-bottom-width"],rtl:["border-bottom-width"]},"border-block-end":{ltr:["border-bottom"],rtl:["border-bottom"]},"border-block-start-color":{ltr:["border-top-color"],rtl:["border-top-color"]},"border-block-start-style":{ltr:["border-top-style"],rtl:["border-top-style"]},"border-block-start-width":{ltr:["border-top-width"],rtl:["border-top-width"]},"border-block-start":{ltr:["border-top"],rtl:["border-top"]},"border-block-style":{ltr:["border-top-style","border-bottom-style"],rtl:["border-top-style","border-bottom-style"]},"border-block-width":{ltr:["border-top-width","border-bottom-width"],rtl:["border-top-width","border-bottom-width"]},"border-block":{ltr:["border-top","border-bottom"],rtl:["border-top","border-bottom"]},"border-inline-color":{ltr:["border-left-color","border-right-color"],rtl:["border-left-color","border-right-color"]},"border-inline-end-color":{ltr:["border-right-color"],rtl:["border-left-color"]},"border-inline-end-style":{ltr:["border-right-style"],rtl:["border-left-style"]},"border-inline-end-width":{ltr:["border-right-width"],rtl:["border-left-width"]},"border-inline-end":{ltr:["border-right"],rtl:["border-left"]},"border-inline-start-color":{ltr:["border-left-color"],rtl:["border-right-color"]},"border-inline-start-style":{ltr:["border-left-style"],rtl:["border-right-style"]},"border-inline-start-width":{ltr:["border-left-width"],rtl:["border-right-width"]},"border-inline-start":{ltr:["border-left"],rtl:["border-right"]},"border-inline-style":{ltr:["border-left-style","border-right-style"],rtl:["border-left-style","border-right-style"]},"border-inline-width":{ltr:["border-left-width","border-right-width"],rtl:["border-left-width","border-right-width"]},"border-inline":{ltr:["border-left","border-right"],rtl:["border-left","border-right"]},"border-end-end-radius":{ltr:["border-bottom-right-radius"],rtl:["border-bottom-left-radius"]},"border-end-start-radius":{ltr:["border-bottom-left-radius"],rtl:["border-bottom-right-radius"]},"border-start-end-radius":{ltr:["border-top-right-radius"],rtl:["border-top-left-radius"]},"border-start-start-radius":{ltr:["border-top-left-radius"],rtl:["border-top-right-radius"]}};function Y(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("keyframes"===X.name)return!0;X=X.parent}else X=X.parent;return!1}function Z(_){_=Object(_);const X=Boolean(_.preserve),ee=!X&&"string"==typeof _.dir&&(/^rtl$/i.test(_.dir)?"rtl":"ltr"),o=_=>te=>{if(Y(te))return;const re=te.parent,se=U(te.value,!0);_(te,se,ee,X),re.nodes.length||re.remove()},b=_=>te=>{if(Y(te))return;const re=te.parent,se=[te.value];_(te,se,ee,X),re.nodes.length||re.remove()};return{postcssPlugin:"postcss-logical-properties",Declaration:{clear:o(B),float:o(B),resize:o(q),"text-align":o(Q),"block-size":o(N),"max-block-size":o(N),"min-block-size":o(N),"inline-size":o(N),"max-inline-size":o(N),"min-inline-size":o(N),margin:o(k),"margin-inline":o(I),"margin-inline-end":o(K),"margin-inline-start":o(J),"margin-block":o(F),"margin-block-end":o(H),"margin-block-start":o(G),inset:o(z),"inset-inline":o(I),"inset-inline-end":o(K),"inset-inline-start":o(J),"inset-block":o(F),"inset-block-end":o(H),"inset-block-start":o(G),padding:o(k),"padding-inline":o(I),"padding-inline-end":o(K),"padding-inline-start":o(J),"padding-block":o(F),"padding-block-end":o(H),"padding-block-start":o(G),"border-block":b(l),"border-block-color":o(l),"border-block-style":o(l),"border-block-width":o(l),"border-block-end":b(i),"border-block-end-color":o(i),"border-block-end-style":o(i),"border-block-end-width":o(i),"border-block-start":b(n),"border-block-start-color":o(n),"border-block-start-style":o(n),"border-block-start-width":o(n),"border-inline":b(d),"border-inline-color":o(d),"border-inline-style":o(d),"border-inline-width":o(d),"border-inline-end":b(a),"border-inline-end-color":o(a),"border-inline-end-style":o(a),"border-inline-end-width":o(a),"border-inline-start":b(p),"border-inline-start-color":o(p),"border-inline-start-style":o(p),"border-inline-start-width":o(p),"border-end-end-radius":o(f),"border-end-start-radius":o(f),"border-start-end-radius":o(f),"border-start-start-radius":o(f),"border-color":o(k),"border-style":o(k),"border-width":o(k),transition:o(W),"transition-property":o(W)}}}Z.postcss=!0,_.exports=Z},94:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));function n(_){if(!_.nodes.length)return void _.remove();const X=_.nodes.filter((_=>"comment"===_.type));X.length===_.nodes.length&&_.replaceWith(...X)}function o(_){const X=_.parent,ee=X.index(_);if(ee){n(X.cloneBefore().removeAll().append(X.nodes.slice(0,ee)))}return X.before(_),X}function r(_,X){if(X<2)throw new Error("n must be greater than 1");if(_.length<2)throw new Error("s must be greater than 1");if(Math.pow(_.length,X)>1e4)throw new Error("Too many combinations when trying to resolve a nested selector with lists, reduce the complexity of your selectors");const ee=[];for(let _=0;_=0;se--){let X=ee[se];if(X>=_.length){if(X=0,ee[se]=0,0===se)return te;ee[se-1]+=1}re[se]=_[X]}te.push(re),ee[ee.length-1]++}}const re=te.default.pseudo({value:":is"});function a(_){const X=_.nodes.filter((_=>"tag"===_.type));X.length>1&&X.slice(1).forEach((_=>{const X=re.clone();_.replaceWith(X),X.append(_)}))}function l(_,X){let ee=[],re=!1;const se=[..._.nodes];for(let _=0;_1){const _=te.default.selector();ee[0].replaceWith(_),ee.slice(1).forEach((_=>{_.remove()})),ee.forEach((X=>{_.append(X)})),c(_),X&&a(_),_.replaceWith(..._.nodes)}ee=[]}}}function c(_){_.nodes.sort(((_,X)=>i(_.value,_.type)-i(X.value,X.type)))}function i(_,X){return"pseudo"===X&&_&&0===_.indexOf("::")?se.pseudoElement:se[X]}const se={universal:0,tag:1,id:2,class:3,attribute:4,selector:5,pseudo:6,pseudoElement:7,string:8,root:9,comment:10,nesting:9999};function u(_){const X=_.map((_=>te.default().astSync(_))).map((_=>d(_))),ee=X[0];for(let _=1;_0){let te={a:0,b:0,c:0};_.nodes.forEach((_=>{const X=d(_);X.a>te.a?te=X:X.ate.b?te=X:X.bte.c&&(te=X))})),X+=te.a,ee+=te.b,re+=te.c}break;case"where":break;case":nth-child":case":nth-last-child":{const se=_.nodes.findIndex((_=>{_.value}));if(se>-1){const ne=d(te.default.selector({nodes:_.nodes.slice(se+1),value:""}));X+=ne.a,ee+=ne.b,re+=ne.c}else X+=X,ee+=ee,re+=re}break;default:ee+=1}else _.nodes&&_.nodes.length>0&&_.nodes.forEach((_=>{const te=d(_);X+=te.a,ee+=te.b,re+=te.c}));return{a:X,b:ee,c:re}}function f(_,X,ee){let re=[];re=u(_)||ee.noIsPseudoSelector?_.map((_=>te.default().astSync(_))):[te.default().astSync(`:is(${_.join(",")})`)];let se=[];for(let _=0;_{ae++})),ae>1&&re.length>1)oe=r(re,ae),ie=oe.length;else{ie=re.length;for(let _=0;_{if("nesting"!==re.type)return;let se=oe[_][X];X++,"root"===se.type&&1===se.nodes.length&&(se=se.nodes[0]);const ne=te.default().astSync(`:is(${se.toString()})`),ie=h(se.nodes[0]),ae=y(se.nodes[0]),le=h(re),ue=y(re);if(ie&&le)return void re.replaceWith(se.clone());if((ie||ae)&&(le||ue)){const _=re.parent;return ie&&"selector"===se.type?re.replaceWith(se.clone().nodes[0]):re.replaceWith(...se.clone().nodes),void(_&&_.nodes.length>1&&(c(_),ee.noIsPseudoSelector||a(_)))}if(ie){const _=re.parent;return re.replaceWith(se.clone().nodes[0]),void(_&&l(_,!ee.noIsPseudoSelector))}if(ae){const _=re.parent;return re.replaceWith(...se.clone().nodes),void(_&&l(_,!ee.noIsPseudoSelector))}if(m(re)){const _=re.parent;return re.replaceWith(...se.clone().nodes),void(_&&l(_,!ee.noIsPseudoSelector))}if(g(re)){const _=re.parent;return re.replaceWith(...se.clone().nodes),void(_&&l(_,!ee.noIsPseudoSelector))}const ce=re.parent;ee.noIsPseudoSelector?re.replaceWith(...se.clone().nodes):re.replaceWith(...ne.clone().nodes),ce&&l(ce,!ee.noIsPseudoSelector)})),se.push(re.toString())}}return se}function h(_){return"combinator"!==_.type&&!(_.parent&&_.parent.nodes.length>1)}function y(_,X=null){if(h(_))return!1;if(!_.parent)return!1;if(!!_.parent.nodes.find((_=>"combinator"===_.type||"comment"===_.type)))return!1;return!(!!_.parent.nodes.find((_=>"nesting"===_.type))&&X&&!y(X))}function m(_){if(!_.parent)return!1;if(0!==_.parent.nodes.indexOf(_))return!1;for(let X=1;X<_.parent.nodes.length;X++)if("combinator"===_.parent.nodes[X].type&&" "!==_.parent.nodes[X].value&&">"!==_.parent.nodes[X].value)return!1;return!0}function g(_){if(h(_))return!0;if(!_.parent)return!1;for(let X=0;X<_.parent.nodes.length;X++)if("nesting"!==!_.parent.nodes[X].type&&(_.parent.nodes[X].prev()||_.parent.nodes[X].next())){if(_.parent.nodes[X].prev()&&"combinator"!==_.parent.nodes[X].prev().type)return!1;if(_.parent.nodes[X].next()&&"combinator"!==_.parent.nodes[X].next().type)return!1}return!0}const b=_=>{let X=[],ee="",te=!1,re=0,se=!1,ne=!1;for(let ie of _)ne?ne=!1:"\\"===ie?ne=!0:se?ie===se&&(se=!1):'"'===ie||"'"===ie?se=ie:"("===ie?re+=1:")"===ie?re>0&&(re-=1):0===re&&","===ie&&(te=!0),te?(""!==ee&&X.push(ee.trim()),ee="",te=!1):ee+=ie;return X.push(ee.trim()),X};var ne=["container","document","media","supports"];function S(_){const X=o(_);var ee,te;_.params=(ee=X.params,te=_.params,b(ee).map((_=>b(te).map((X=>`${_} and ${X}`)).join(", "))).join(", ")),n(X)}function W(_,X){_.each((_=>{(_=>"rule"===_.type&&"rule"===Object(_.parent).type&&_.selectors.every((_=>0===_.trim().indexOf("&")&&-1===_.indexOf("|"))))(_)?function(_,X){const ee=o(_);_.selectors=f(ee.selectors,_.selectors,X),("rule"===_.type&&"rule"===ee.type&&_.selector===ee.selector||"atrule"===_.type&&"atrule"===ee.type&&_.params===ee.params)&&_.append(...ee.nodes),n(ee)}(_,X):(_=>"atrule"===_.type&&"nest"===_.name&&"rule"===Object(_.parent).type&&b(_.params).every((_=>_.split("&").length>=2&&-1===_.indexOf("|"))))(_)?function(_,X,ee){const te=o(_),re=te.clone().removeAll().append(_.nodes);_.replaceWith(re),re.selectors=f(te.selectors,b(_.params),ee),n(te),X(re,ee)}(_,W,X):(_=>"atrule"===_.type&&ne.includes(_.name)&&"rule"===Object(_.parent).type)(_)?function(_,X,ee){const te=o(_),re=te.clone().removeAll().append(_.nodes);_.append(re),n(te),X(re,ee)}(_,W,X):(_=>"atrule"===_.type&&ne.includes(_.name)&&"atrule"===Object(_.parent).type&&_.name===_.parent.name)(_)&&S(_),Object(_.nodes).length&&W(_,X)}))}function w(_){const X=Object(_).noIsPseudoSelector||!1;return{postcssPlugin:"postcss-nesting",Rule(_){W(_,{noIsPseudoSelector:X})}}}w.postcss=!0,_.exports=w},5698:_=>{"use strict";const X=/^overflow/i;const o=_=>{const ee=!("preserve"in Object(_))||Boolean(_.preserve);return{postcssPlugin:"postcss-overflow-shorthand",Declaration:(_,{list:te})=>{X.test(_)&&function(_,X,ee){const[te,re,...se]=_.space(X.value);re&&!se.length&&(X.cloneBefore({prop:`${X.prop}-x`,value:te}),X.cloneBefore({prop:`${X.prop}-y`,value:re}),ee||X.remove())}(te,_,ee)}}};o.postcss=!0,_.exports=o},6681:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045)),re={preserve:!0};const se=/^place-(content|items|self)/,l=_=>("preserve"in Object(_)&&(re.preserve=Boolean(_.preserve)),{postcssPlugin:"postcss-place",Declaration:(_,{result:X})=>{se.test(_)&&((_,{result:X})=>{const ee=_.prop.match(se)[1];let ne;try{ne=te.default(_.value)}catch(ee){_.warn(X,`Failed to parse value '${_.value}'. Leaving the original value intact.`)}if(void 0===ne)return;let ie=[];ie=ne.nodes.length?ne.nodes.filter((_=>"word"===_.type||"function"===_.type)).map((_=>te.default.stringify(_))):[te.default.stringify(ne)],_.cloneBefore({prop:`align-${ee}`,value:ie[0]}),_.cloneBefore({prop:`justify-${ee}`,value:ie[1]||ie[0]}),re.preserve||_.remove()})(_,{result:X})}});l.postcss=!0,_.exports=l},1097:(_,X,ee)=>{"use strict";var te=ee(4135),re=ee(2760),se=ee(5449),ne=ee(7147),ie=ee(1017),oe=ee(4907),ae=ee(6924),le=ee(3570),ue=ee(4836),ce=ee(2060),pe=ee(7106),fe=ee(5671),de=ee(8806),he=ee(8179),me=ee(50),ge=ee(1426),be=ee(3365),ve=ee(3073),ye=ee(8742),we=ee(6033),xe=ee(9060),ke=ee(3318),Se=ee(6008),_e=ee(8633),Pe=ee(6157),Oe=ee(2520),je=ee(9142),Te=ee(94),Ee=ee(5698),Fe=ee(971),Me=ee(6681),$e=ee(8780),Re=ee(6788),Ae=ee(3181),qe=ee(3991),ze=ee(2238),Ge=ee(434),Ue=ee(4658),He=ee(4719),Ze=ee(3345),Ke=ee(3942),Xe=ee(5378),et=ee(8078),tt=ee(1758);function L(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var rt=L(te),st=L(re),nt=L(se),it=L(ne),ot=L(ie),lt=L(oe),ut=L(ae),ct=L(le),pt=L(ue),ft=L(ce),dt=L(pe),ht=L(fe),mt=L(de),gt=L(he),bt=L(me),vt=L(ge),yt=L(be),wt=L(ve),xt=L(ye),kt=L(we),St=L(xe),_t=L(ke),Pt=L(Se),Ot=L(_e),Ct=L(Pe),jt=L(Oe),Tt=L(je),Et=L(Te),Ft=L(Ee),Mt=L(Fe),$t=L(Me),Rt=L($e),At=L(Re),Dt=L(Ae),qt=L(qe),It=L(ze),Nt=L(Ge),Lt=L(Ue),Bt=L(He),Vt=L(Ze),zt=L(Ke),Wt=L(Xe),Gt=L(et),Ut=L(tt);const Qt={"blank-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README-BROWSER.md","focus-visible-pseudo-class":"https://github.com/WICG/focus-visible","focus-within-pseudo-class":"https://github.com/jsxtools/focus-within/blob/master/README-BROWSER.md","has-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-has-pseudo/README-BROWSER.md","prefers-color-scheme-query":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-prefers-color-scheme/README-BROWSER.md"},Yt=["blank-pseudo-class","focus-visible-pseudo-class","focus-within-pseudo-class","has-pseudo-class","prefers-color-scheme-query"];async function Ne(_,X,ee,te){const re=function(_){return`:root {\n${Object.keys(_).reduce(((X,ee)=>(X.push(`\t${ee}: ${_[ee]};`),X)),[]).join("\n")}\n}\n`}(ee),se=function(_){return`${Object.keys(_).reduce(((X,ee)=>(X.push(`@custom-media ${ee} ${_[ee]};`),X)),[]).join("\n")}\n`}(X),ne=function(_){return`${Object.keys(_).reduce(((X,ee)=>(X.push(`@custom-selector ${ee} ${_[ee]};`),X)),[]).join("\n")}\n`}(te),ie=`${se}\n${ne}\n${re}`;await Ve(_,ie)}function Be(_,X){return`\n\t${_}: {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t\t'${De(ee)}': '${De(X[ee])}'`),_)),[]).join(",\n")}\n\t}`}function We(_,X){return`export const ${_} = {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t'${De(ee)}': '${De(X[ee])}'`),_)),[]).join(",\n")}\n};\n`}function Ce(_,X){return Promise.all([].concat(X).map((async X=>{if(X instanceof Function)await X({customMedia:Ie(_.customMedia),customProperties:Ie(_.customProperties),customSelectors:Ie(_.customSelectors)});else{const ee=X===Object(X)?X:{to:String(X)},te=ee.toJSON||Ie;if("customMedia"in ee||"customProperties"in ee||"customSelectors"in ee)ee.customMedia=te(_.customMedia),ee.customProperties=te(_.customProperties),ee.customSelectors=te(_.customSelectors);else if("custom-media"in ee||"custom-properties"in ee||"custom-selectors"in ee)ee["custom-media"]=te(_.customMedia),ee["custom-properties"]=te(_.customProperties),ee["custom-selectors"]=te(_.customSelectors);else{const X=String(ee.to||""),re=(ee.type||ot.default.extname(ee.to).slice(1)).toLowerCase(),se=te(_.customMedia),ne=te(_.customProperties),ie=te(_.customSelectors);"css"===re&&await Ne(X,se,ne,ie),"js"===re&&await async function(_,X,ee,te){const re=`module.exports = {${Be("customMedia",X)},${Be("customProperties",ee)},${Be("customSelectors",te)}\n};\n`;await Ve(_,re)}(X,se,ne,ie),"json"===re&&await async function(_,X,ee,te){const re=`${JSON.stringify({"custom-media":X,"custom-properties":ee,"custom-selectors":te},null," ")}\n`;await Ve(_,re)}(X,se,ne,ie),"mjs"===re&&await async function(_,X,ee,te){const re=`${We("customMedia",X)}\n${We("customProperties",ee)}\n${We("customSelectors",te)}`;await Ve(_,re)}(X,se,ne,ie)}}})))}function Ie(_){return Object.keys(_).reduce(((X,ee)=>(X[ee]=String(_[ee]),X)),{})}function Ve(_,X){return new Promise(((ee,te)=>{it.default.writeFile(_,X,(_=>{_?te(_):ee()}))}))}function De(_){return _.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}function Le(_,X){if(!_)return!1;if("string"==typeof _)return!0;if(Array.isArray(_)){for(let ee=0;ee<_.length;ee++){if("string"==typeof _[ee])return!0;if(_[ee]&&X in Object(_[ee]))return!0}return!1}return X in Object(_)}function Je(_,X,ee){return Math.max(_,Math.min(X,ee))}const Jt=Symbol("insertBefore"),Ht=Symbol("insertAfter"),Zt=Symbol("insertOrder"),Kt=Symbol("plugin");function Qe(_,X,ee){if("insertBefore"!==ee&&"insertAfter"!==ee)return[];const te="insertBefore"===ee?Jt:Ht,re=[];for(const ee in X){if(!Object.hasOwnProperty.call(X,ee))continue;if(!_.find((_=>_.id===ee)))continue;let se=X[ee];Array.isArray(se)||(se=[se]);for(let _=0;_function(_){return!!_[Jt]||!!_[Ht]||!!ir.has(_.id)}(_))).sort(((_,X)=>function(_,X){return _.id===X.id?_[Jt]&&X[Jt]||_[Ht]&&X[Ht]?Je(-1,_[Zt]-X[Zt],1):_[Jt]||X[Ht]?-1:_[Ht]||X[Jt]?1:0:Je(-1,Xt.indexOf(_.id)-Xt.indexOf(X.id),1)}(_,X)))}const or=["ie","edge","firefox","chrome","safari","opera","ios_saf","android","op_mob","and_chr","and_ff","and_uc","samsung","and_qq","baidu","kaios"];function cs(_){if(!_)return[];if(!("browser_support"in _))return["> 0%"];const X=[];return or.forEach((ee=>{const te=_.browser_support[ee];"string"==typeof te&&/^[0-9|.]+$/.test(te)?X.push(`${ee} < ${_.browser_support[ee]}`):X.push(`${ee} >= 1`)})),X}function us(_,X,ee,te){const re=lt.default(_,{ignoreUnknownVersions:!0});switch(X.id){case"is-pseudo-class":return{onComplexSelector:"warning"};case"nesting-rules":if(function(_,X){const ee=cs(_);if(X.some((_=>lt.default(ee,{ignoreUnknownVersions:!0}).some((X=>X===_)))))return!0;return!1}(ee.find((_=>"is-pseudo-class"===_.id)),re))return te.log('Disabling :is on "nesting-rules" due to lack of browser support.'),{noIsPseudoSelector:!0};return{};case"any-link-pseudo-class":if(re.find((_=>_.startsWith("ie ")||_.startsWith("edge "))))return te.log('Adding area[href] fallbacks for ":any-link" support in Edge and IE.'),{subFeatures:{areaHrefNeedsFixing:!0}};return{};default:return{}}}function as(_,X,ee,te){const re=Object(X.features),se=!("enableClientSidePolyfills"in X)||X.enableClientSidePolyfills,ne=Object(X.insertBefore),ie=Object(X.insertAfter),oe=X.browsers,ae=Je(0,function(_){const X=parseInt(_,10);return Number.isNaN(X)?0:X}(X.minimumVendorImplementations),3);ae>0&&te.log(`Using features with ${ae} or more vendor implementations`);const le=function(_,X){let ee=2;if(void 0===_.stage)return X.log(`Using features from Stage ${ee} (default)`),ee;if(!1===_.stage)ee=5;else{let X=parseInt(_.stage,10);Number.isNaN(X)&&(X=0),ee=Je(0,X,5)}return 5===ee?X.log('Stage has been disabled, features will be handled via the "features" option.'):X.log(`Using features from Stage ${ee}`),ee}(X,te);2===le&&ee&&!1===ee.preserve&&(_=JSON.parse(JSON.stringify(_))).forEach((_=>{("blank-pseudo-class"===_.id||"prefers-color-scheme-query"===_.id)&&(_.stage=1)}));const ue=is(_,ne,ie).map((_=>function(_){const X=cs(_);if(_[Jt]||_[Ht]){let ee=_.id;return ee=_.insertBefore?`before-${ee}`:`after-${ee}`,{browsers:X,vendors_implementations:_.vendors_implementations,plugin:_[Kt],id:ee,stage:6}}return{browsers:X,vendors_implementations:_.vendors_implementations,plugin:ir.get(_.id),id:_.id,stage:_.stage}}(_))).filter((_=>0===ae||(!(!_[Jt]&&!_[Ht])||(ae<=_.vendors_implementations||(re[_.id]?(te.log(` ${_.id} does not meet the required vendor implementations but has been enabled by options`),!0):(te.log(` ${_.id} with ${_.vendors_implementations} vendor implementations has been disabled`),!1)))))).filter((_=>{const X=_.stage>=le,ee=se||!Yt.includes(_.id),ne=!1===re[_.id],ie=re[_.id]?re[_.id]:X&ⅇreturn ne?te.log(` ${_.id} has been disabled by options`):X?ee||te.log(` ${_.id} has been disabled by "enableClientSidePolyfills: false".`):ie?te.log(` ${_.id} does not meet the required stage but has been enabled by options`):te.log(` ${_.id} with stage ${_.stage} has been disabled`),ie})).map((X=>function(_,X,ee,te,re,se){let ne,ie;return ne=us(X,te,_,se),!0===ee[te.id]?re&&(ne=Object.assign({},ne,re)):ne=re?Object.assign({},ne,re,ee[te.id]):Object.assign({},ne,ee[te.id]),ne.enableProgressiveCustomProperties=!1,ie=te.plugin.postcss&&"function"==typeof te.plugin?te.plugin(ne):te.plugin&&te.plugin.default&&"function"==typeof te.plugin.default&&te.plugin.default.postcss?te.plugin.default(ne):te.plugin,{browsers:te.browsers,vendors_implementations:te.vendors_implementations,plugin:ie,pluginOptions:ne,id:te.id}}(_,oe,re,X,ee,te))),ce=lt.default(oe,{ignoreUnknownVersions:!0});return ue.filter((_=>{if(_.id in re)return re[_.id];if(function(_){if("importFrom"in Object(_.pluginOptions))switch(_.id){case"custom-media-queries":if(Le(_.pluginOptions.importFrom,"customMedia"))return!0;break;case"custom-properties":if(Le(_.pluginOptions.importFrom,"customProperties"))return!0;break;case"environment-variables":if(Le(_.pluginOptions.importFrom,"environmentVariables"))return!0;break;case"custom-selectors":if(Le(_.pluginOptions.importFrom,"customSelectors"))return!0}if("exportTo"in Object(_.pluginOptions))switch(_.id){case"custom-media-queries":if(Le(_.pluginOptions.exportTo,"customMedia"))return!0;break;case"custom-properties":if(Le(_.pluginOptions.exportTo,"customProperties"))return!0;break;case"environment-variables":if(Le(_.pluginOptions.exportTo,"environmentVariables"))return!0;break;case"custom-selectors":if(Le(_.pluginOptions.exportTo,"customSelectors"))return!0}return!1}(_))return!0;const X=lt.default(_.browsers,{ignoreUnknownVersions:!0}),ee=ce.some((_=>X.some((X=>X===_))));return ee||te.log(`${_.id} disabled due to browser support`),ee}))}class ls{constructor(){this.logs=[]}log(_){this.logs.push(_)}resetLogger(){this.logs.length=0}dumpLogs(_){_&&this.logs.forEach((X=>_.warn(X))),this.resetLogger()}}const ar={"css-blank-pseudo":"blank-pseudo-class","css-has-pseudo":"has-pseudo-class","css-prefers-color-scheme":"prefers-color-scheme-query","postcss-attribute-case-insensitive":"case-insensitive-attributes","postcss-clamp":"clamp","postcss-color-function":"color-function","postcss-color-functional-notation":"color-functional-notation","postcss-color-hex-alpha":"hexadecimal-alpha-notation","postcss-color-rebeccapurple":"rebeccapurple-color","postcss-custom-media":"custom-media-queries","postcss-custom-properties":"custom-properties","postcss-custom-selectors":"custom-selectors","postcss-dir-pseudo-class":"dir-pseudo-class","postcss-double-position-gradients":"double-position-gradients","postcss-env-function":"environment-variables","postcss-focus-visible":"focus-visible-pseudo-class","postcss-focus-within":"focus-within-pseudo-class","postcss-font-format-keywords":"font-format-keywords","postcss-font-variant":"font-variant-property","postcss-gap-properties":"gap-properties","postcss-hwb-function":"hwb-function","postcss-ic-unit":"ic-unit","postcss-image-set-function":"image-set-function","postcss-initial":"all-property","postcss-is-pseudo-class":"is-pseudo-class","postcss-lab-function":"lab-function","postcss-logical":"logical-properties-and-values","postcss-media-minmax":"media-query-ranges","postcss-nesting":"nesting-rules","postcss-normalize-display-values":"display-two-values","postcss-oklab-function":"oklab-function","postcss-opacity-percentage":"opacity-percentage","postcss-overflow-shorthand":"overflow-property","postcss-page-break":"break-properties","postcss-place":"place-properties","postcss-pseudo-class-any-link":"any-link-pseudo-class","postcss-replace-overflow-wrap":"overflow-wrap-property","postcss-selector-not":"not-pseudo-class","postcss-system-ui-font-family":"system-ui-font-family"},lr=(()=>{const _={};for(const[X,ee]of Object.entries(ar))_[ee]=X;return _})();function ds(_,X){let ee="unknown",te=1/0;for(let re=0;re{const X=new ls,ee=Object(_),te=Object.keys(Object(ee.features)),re=ee.browsers,se=function(_){if("importFrom"in _||"exportTo"in _||"preserve"in _){const X={};return"importFrom"in _&&(X.importFrom=_.importFrom),"exportTo"in _&&(X.exportTo={customMedia:{},customProperties:{},customSelectors:{}}),"preserve"in _&&(X.preserve=_.preserve),X}return!1}(ee),ne=as(st.default,ee,se,X),ie=ne.map((_=>_.plugin));!1!==ee.autoprefixer&&ie.push(rt.default(Object.assign({overrideBrowserslist:re},ee.autoprefixer))),ie.push(nt.default()),function(_,X,ee){if(X.debug){ee.log("Enabling the following feature(s):");const X=[];_.forEach((_=>{_.id.startsWith("before")||_.id.startsWith("after")?ee.log(` ${_.id} (injected via options)`):ee.log(` ${_.id}`),void 0!==Qt[_.id]&&X.push(_.id)})),X.length&&(ee.log("These feature(s) need a browser library to work:"),X.forEach((_=>ee.log(` ${_}: ${Qt[_]}`))))}}(ne,ee,X);const u=()=>({postcssPlugin:"postcss-preset-env",OnceExit:function(re,{result:ne}){!function(_,X,ee){const te=Object.keys(lr),re=Object.keys(ar);_.forEach((_=>{if(te.includes(_))return;const se=ds(_,te),ne=ds(_,re);Math.min(se.distance,ne.distance)>10?X.warn(ee`Unknown feature: "${_}", see the list of features https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/FEATURES.md`):se.distance{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));function n(_){if(!_||!_.nodes)return;let X=[];const ee=[..._.nodes];for(let _=0;_1){const _=te.default.selector({value:""});X[0].replaceWith(_),X.slice(1).forEach((_=>{_.remove()})),X.forEach((X=>{_.append(X)})),s(_),_.replaceWith(..._.nodes)}X=[]}}}function s(_){_&&_.nodes&&_.nodes.sort(((_,X)=>{if("selector"===_.type&&"selector"===X.type&&_.nodes.length&&X.nodes.length){if(_.nodes[0].type===X.nodes[0].type)return 0;if(re[_.nodes[0].type]re[X.nodes[0].type])return 1}if("selector"===_.type&&_.nodes.length){if(_.nodes[0].type===X.type)return 0;if(re[_.nodes[0].type]re[X.type])return 1}if("selector"===X.type&&X.nodes.length){if(_.type===X.nodes[0].type)return 0;if(re[_.type]re[X.nodes[0].type])return 1}return _.type===X.type?0:re[_.type]{let te=0;if(_.walkPseudos((_=>{":any-link"!==_.value||_.nodes&&_.nodes.length||te++})),!te)return;let re=[];for(let _=0;_{const te=_.clone();te.walkPseudos((_=>{":any-link"!==_.value||_.nodes&&_.nodes.length||_.replaceWith(...X.shift().nodes)})),te.walk((_=>{"nodes"in _&&(_.nodes.forEach((_=>{n(_)})),n(_))})),ee.push(te.toString())}))})).processSync(_),ee}const oe=/:any-link/;function p(_){const X={preserve:!0,..._},ee={areaHrefNeedsFixing:!1,...Object(X.subFeatures)};return{postcssPlugin:"postcss-pseudo-class-any-link",Rule(_,{result:te}){if(!oe.test(_.selector))return;const re=_.raws.selector&&_.raws.selector.raw||_.selector;":"!==re[re.length-1]&&function(_,X,ee,te){let re=[],se=[];try{for(let X=0;X<_.selectors.length;X++){const ee=_.selectors[X],ne=u(ee,te);ne.length?re.push(...ne):se.push(ee)}}catch(ee){return void _.warn(X,`Failed to parse selector : ${_.selector}`)}re.length&&(_.cloneBefore({selectors:re}),ee?se.length&&_.cloneBefore({selectors:se}):se.length?_.selectors=se:_.remove())}(_,te,X.preserve,ee.areaHrefNeedsFixing)}}}p.postcss=!0,_.exports=p},2760:_=>{"use strict";_.exports=JSON.parse('[{"id":"all-property","title":"`all` Property","description":"A property for defining the reset of all properties of an element","specification":"https://www.w3.org/TR/css-cascade-3/#all-shorthand","stage":4,"browser_support":{"edge":"79","firefox":"27","chrome":"37","safari":"9.1","opera":"24","ios_saf":"9.3","android":"4.4.3","op_mob":"64","and_chr":"37","and_ff":"27","and_uc":"12.12","samsung":"4","and_qq":"10.4","baidu":"7.12","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/all"},"example":"a {\\n all: initial;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/maximkoretskiy/postcss-initial"}],"vendors_implementations":3},{"id":"any-link-pseudo-class","title":"`:any-link` Hyperlink Pseudo-Class","description":"A pseudo-class for matching anchor elements independent of whether they have been visited","specification":"https://www.w3.org/TR/selectors-4/#any-link-pseudo","stage":2,"browser_support":{"chrome":"1","and_chr":"18","edge":"79","firefox":"1","and_ff":"4","opera":"15","op_mob":"14","safari":"3","ios_saf":"1","samsung":"1.0","android":"65"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:any-link"},"example":"nav :any-link > span {\\n background-color: yellow;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-pseudo-class-any-link"}],"vendors_implementations":3},{"id":"blank-pseudo-class","title":"`:blank` Empty-Value Pseudo-Class","description":"A pseudo-class for matching form elements when they are empty","specification":"https://www.w3.org/TR/selectors-4/#blank","stage":2,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:blank"},"example":"input:blank {\\n background-color: yellow;\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo"}],"vendors_implementations":0},{"id":"break-properties","title":"Break Properties","description":"Properties for defining the break behavior between and within boxes","specification":"https://www.w3.org/TR/css-break-3/#breaking-controls","stage":3,"browser_support":{"ie":"10","edge":"12","safari":"10","opera":"11.1","ios_saf":"10","op_mini":"all","op_mob":"11.1","ie_mob":"10","and_uc":"12.12","samsung":"5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/break-after"},"example":"a {\\n break-inside: avoid;\\n break-before: avoid-column;\\n break-after: always;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/shrpne/postcss-page-break"}],"vendors_implementations":1},{"id":"cascade-layers","title":"CSS Cascade Layers","description":"The `@layer` at-rule allows authors to explicitly layer their styles in the cascade, before specificity and order of appearance are considered.","specification":"https://www.w3.org/TR/css-cascade-5/#layering","stage":2,"browser_support":{"edge":"99","firefox":"97","chrome":"99","safari":"15.4","ios_saf":"15.4","android":"99","and_chr":"99"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/@layer"},"example":"/* Un-layered styles have the highest priority */\\na {\\n color: mediumvioletred;\\n}\\n\\n@layer defaults {\\n a { color: maroon; }\\n}","polyfills":[],"vendors_implementations":3},{"id":"case-insensitive-attributes","title":"Case-Insensitive Attributes","description":"An attribute selector matching attribute values case-insensitively","specification":"https://www.w3.org/TR/selectors-4/#attribute-case","stage":2,"browser_support":{"edge":"79","firefox":"47","chrome":"49","safari":"9","opera":"36","ios_saf":"9","android":"49","op_mob":"64","and_chr":"49","and_ff":"47","and_uc":"12.12","samsung":"5","and_qq":"10.4","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors"},"example":"[frame=hsides i] {\\n border-style: solid none;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/Semigradsky/postcss-attribute-case-insensitive"}],"vendors_implementations":3},{"id":"clamp","title":"`clamp` Function","description":"The clamp() CSS function clamps a value between an upper and lower bound. It enables selecting a middle value within a range of values between a defined minimum and maximum.","specification":"https://www.w3.org/TR/css-values-4/#funcdef-clamp","stage":2,"browser_support":{"chrome":"79","and_chr":"79","edge":"79","firefox":"75","and_ff":"79","opera":"66","op_mob":"57","safari":"13.1","ios_saf":"13.4","samsung":"12.0","android":"79"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/clamp()"},"example":"button {\\n font-size: clamp(1rem, 2.5vw, 2rem);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/polemius/postcss-clamp"}],"vendors_implementations":3},{"id":"color-adjust","title":"`color-adjust` Property","description":"The color-adjust property is a non-standard CSS extension that can be used to force printing of background colors and images","specification":"https://www.w3.org/TR/css-color-4/#color-adjust","stage":2,"browser_support":{"firefox":"48","and_ff":"48","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color-adjust"},"example":".background {\\n background-color:#ccc;\\n}\\n.background.color-adjust {\\n color-adjust: economy;\\n}\\n.background.color-adjust-exact {\\n color-adjust: exact;\\n}","vendors_implementations":1},{"id":"color-contrast","title":"`color-contrast()` Function","description":"A function for choosing the color that contrasts the most.","specification":"https://www.w3.org/TR/css-color-5/#colorcontrast","stage":2,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-contrast()"},"example":"p {\\n color: color-contrast(wheat vs tan, sienna, var(--myAccent), #d2691e);\\n}","polyfills":[],"vendors_implementations":0},{"id":"color-function","title":"`color()` Function","description":"A function that allows a color to be specified in a particular, specified color space rather than the implicit sRGB color space that most of the other color functions operate in.","specification":"https://www.w3.org/TR/css-color-4/#funcdef-color","stage":2,"browser_support":{"safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color()"},"example":"p {\\n color: color(display-p3 1 0.5 0);\\n color: color(display-p3 1 0.5 0 / .5);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function"}],"vendors_implementations":1},{"id":"color-functional-notation","title":"Color Functional Notation","description":"A space and slash separated notation for specifying colors","specification":"https://www.w3.org/TR/css-color-4/#funcdef-rgb","stage":2,"browser_support":{"chrome":"65","and_chr":"65","edge":"79","firefox":"52","and_ff":"52","opera":"52","op_mob":"47","safari":"12.1","ios_saf":"12.2","samsung":"9.0","android":"65"},"example":"em {\\n background-color: hsl(120deg 100% 25%);\\n color: rgb(0 255 0);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-functional-notation"}],"vendors_implementations":3},{"id":"color-mix","title":"`color-mix()` Function","description":"A function for mixing colors","specification":"https://www.w3.org/TR/css-color-5/#color-mix","stage":2,"browser_support":{},"example":"p {\\n color: color-mix(in lch, purple 50%, plum 50%);\\n}","polyfills":[],"vendors_implementations":0},{"id":"color-mod-function","title":"`color-mod()` Function","description":"A function for modifying colors","specification":"https://www.w3.org/TR/css-color-4/#funcdef-color-mod","stage":-1,"browser_support":{},"example":"p {\\n color: color-mod(black alpha(50%));\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-color-mod-function"}],"vendors_implementations":0},{"id":"container-queries","title":"Container Queries","description":"New container property and container at rule to make changes depending on the container\'s size","specification":"https://www.w3.org/TR/css-contain-3/#container-queries","stage":0,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Container_Queries"},"example":".container {\\n contain: layout inline-size;\\n}\\n\\n@container (min-width: 700px) {\\n .container {\\n /* styles applied when a container is at least 700px */\\n }\\n}","polyfills":[{"type":"JavaScript Library","link":"https://www.npmjs.com/package/container-query-polyfill"}],"vendors_implementations":0},{"id":"custom-media-queries","title":"Custom Media Queries","description":"An at-rule for defining aliases that represent media queries","specification":"https://www.w3.org/TR/mediaqueries-5/#at-ruledef-custom-media","stage":2,"browser_support":{},"example":"@custom-media --narrow-window (max-width: 30em);\\n\\n@media (--narrow-window) {}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-custom-media"}],"vendors_implementations":0},{"id":"custom-properties","title":"Custom Properties","description":"A syntax for defining custom values accepted by all CSS properties","specification":"https://www.w3.org/TR/css-variables-1/","stage":3,"browser_support":{"edge":"16","firefox":"31","chrome":"49","safari":"10","opera":"36","ios_saf":"10","android":"49","op_mob":"64","and_chr":"49","and_ff":"31","and_uc":"12.12","samsung":"5","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/var"},"example":":root {\\n --some-length: 32px;\\n\\n height: var(--some-length);\\n width: var(--some-length);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties"}],"vendors_implementations":3},{"id":"custom-property-sets","title":"Custom Property Sets","description":"A syntax for storing properties in named variables, referenceable in other style rules","specification":"https://tabatkins.github.io/specs/css-apply-rule/","stage":-1,"browser_support":{},"example":"img {\\n --some-length-styles: {\\n height: 32px;\\n width: 32px;\\n };\\n\\n @apply --some-length-styles;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/pascalduez/postcss-apply"}],"vendors_implementations":0},{"id":"custom-selectors","title":"Custom Selectors","description":"An at-rule for defining aliases that represent selectors","specification":"https://drafts.csswg.org/css-extensions/#custom-selectors","stage":1,"browser_support":{},"example":"@custom-selector :--heading h1, h2, h3, h4, h5, h6;\\n\\narticle :--heading + p {}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-custom-selectors"}],"vendors_implementations":0},{"id":"dir-pseudo-class","title":"`:dir` Directionality Pseudo-Class","description":"A pseudo-class for matching elements based on their directionality","specification":"https://www.w3.org/TR/selectors-4/#dir-pseudo","stage":2,"browser_support":{"firefox":"49","and_ff":"49"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:dir"},"example":"blockquote:dir(rtl) {\\n margin-right: 10px;\\n}\\n\\nblockquote:dir(ltr) {\\n margin-left: 10px;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-dir-pseudo-class"}],"vendors_implementations":1},{"id":"display-two-values","title":"Two values syntax for `display`","description":"Syntax that allows definition of outer and inner displays types for an element","specification":"https://www.w3.org/TR/css-display-3/#the-display-properties","stage":2,"browser_support":{"firefox":"70","safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/display/two-value_syntax_of_display"},"example":".element {\\n display: inline flow-root;\\n display: inline flex;\\n display: block grid;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-normalize-display-values"}],"vendors_implementations":2},{"id":"double-position-gradients","title":"Double Position Gradients","description":"A syntax for using two positions in a gradient.","specification":"https://www.w3.org/TR/css-images-4/#color-stop-syntax","stage":2,"browser_support":{"chrome":"72","and_chr":"72","edge":"79","firefox":"83","and_ff":"83","opera":"60","op_mob":"51","safari":"12.1","ios_saf":"12.2","samsung":"11.0","android":"72"},"example":".pie_chart {\\n background-image: conic-gradient(yellowgreen 40%, gold 0deg 75%, #f06 0deg);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-double-position-gradients"}],"vendors_implementations":3},{"id":"environment-variables","title":"Custom Environment Variables","description":"A syntax for using custom values accepted by CSS globally","specification":"https://drafts.csswg.org/css-env-1/","stage":0,"browser_support":{"edge":"79","firefox":"65","chrome":"69","safari":"11.1","opera":"56","ios_saf":"11.3","android":"69","op_mob":"64","and_chr":"69","and_ff":"65","samsung":"10.1"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/env"},"example":"@media (max-width: env(--brand-small)) {\\n body {\\n padding: env(--brand-spacing);\\n }\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-env-function"}],"vendors_implementations":3},{"id":"fangsong-font-family","title":"`fangsong` Font Family","description":"A generic font used for Fang Song (仿宋) typefaces in Chinese","specification":"https://www.w3.org/TR/css-fonts-4/#fangsong-def","stage":2,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#Syntax"},"example":"body {\\n font-family: fangsong;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/JLHwung/postcss-font-family-fangsong"}],"vendors_implementations":0},{"id":"focus-visible-pseudo-class","title":"`:focus-visible` Focus-Indicated Pseudo-Class","description":"A pseudo-class for matching focused elements that indicate that focus to a user","specification":"https://www.w3.org/TR/selectors-4/#focus-visible-pseudo","stage":2,"browser_support":{"chrome":"86","and_chr":"86","edge":"86","firefox":"85","and_ff":"85","opera":"72","op_mob":"61","samsung":"14.0","android":"86"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible"},"example":":focus:not(:focus-visible) {\\n outline: 0;\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/WICG/focus-visible"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-visible"}],"vendors_implementations":2},{"id":"focus-within-pseudo-class","title":"`:focus-within` Focus Container Pseudo-Class","description":"A pseudo-class for matching elements that are either focused or that have focused descendants","specification":"https://www.w3.org/TR/selectors-4/#focus-within-pseudo","stage":2,"browser_support":{"edge":"79","firefox":"52","chrome":"60","safari":"10.1","opera":"47","ios_saf":"10.3","android":"60","op_mob":"64","and_chr":"60","and_ff":"52","samsung":"8.2","and_qq":"10.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-within"},"example":"form:focus-within {\\n background: rgba(0, 0, 0, 0.3);\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/jsxtools/focus-within"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-within"}],"vendors_implementations":3},{"id":"font-format-keywords","title":"Font `format()` Keywords","description":"A syntax for specifying font format as a keyword in `@font-face` rule’s `format()` function","specification":"https://www.w3.org/TR/css-fonts-4/#font-format-values","stage":1,"browser_support":{"safari":"4","ios_saf":"5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face"},"example":"@font-face {\\n src: url(file.woff2) format(woff2);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/valtlai/postcss-font-format-keywords"}],"vendors_implementations":1},{"id":"font-variant-property","title":"`font-variant` Property","description":"A property for defining the usage of alternate glyphs in a font","specification":"https://www.w3.org/TR/css-fonts-3/#propdef-font-variant","stage":4,"browser_support":{"firefox":"34","safari":"9.1","ios_saf":"9.3","and_ff":"34","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant"},"example":"h2 {\\n font-variant: small-caps;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-font-variant"}],"vendors_implementations":2},{"id":"gap-properties","title":"Gap Properties","description":"Properties for defining gutters within a layout","specification":"https://www.w3.org/TR/css-grid-1/#gutters","stage":3,"browser_support":{"chrome":"66","and_chr":"66","edge":"16","firefox":"61","and_ff":"61","opera":"53","op_mob":"47","safari":"12","ios_saf":"12","samsung":"9.0","android":"66"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/gap"},"example":".grid-1 {\\n gap: 20px;\\n}\\n\\n.grid-2 {\\n column-gap: 40px;\\n row-gap: 20px;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gap-properties"}],"vendors_implementations":3},{"id":"gray-function","title":"`gray()` Function","description":"A function for specifying fully desaturated colors","specification":"https://www.w3.org/TR/css-color-4/#funcdef-gray","stage":-1,"browser_support":{},"example":"p {\\n color: gray(50);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-color-gray"}],"vendors_implementations":0},{"id":"grid-layout","title":"Grid Layout","description":"A syntax for using a grid concept to lay out content","specification":"https://www.w3.org/TR/css-grid-1/","stage":3,"browser_support":{"edge":"16","firefox":"54","chrome":"58","safari":"10.1","opera":"44","ios_saf":"10.3","android":"58","op_mob":"64","and_chr":"58","and_ff":"54","and_uc":"12.12","samsung":"6.2","and_qq":"10.4","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/grid"},"example":"section {\\n display: grid;\\n grid-template-columns: 100px 100px 100px;\\n grid-gap: 10px;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/autoprefixer"}],"vendors_implementations":3},{"id":"has-pseudo-class","title":"`:has()` Relational Pseudo-Class","description":"A pseudo-class for matching ancestor and sibling elements","specification":"https://www.w3.org/TR/selectors-4/#has-pseudo","stage":2,"browser_support":{"safari":"15.4","ios_saf":"15.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:has"},"example":"a:has(> img) {\\n display: block;\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo"},{"type":"Experimental Library","link":"https://github.com/csstools/postcss-plugins/tree/main/experimental/css-has-pseudo"}],"vendors_implementations":1},{"id":"hexadecimal-alpha-notation","title":"Hexadecimal Alpha Notation","description":"A 4 & 8 character hex color notation for specifying the opacity level","specification":"https://www.w3.org/TR/css-color-4/#hex-notation","stage":2,"browser_support":{"edge":"79","firefox":"49","chrome":"62","safari":"10","opera":"52","ios_saf":"10","android":"62","op_mob":"64","and_chr":"62","and_ff":"49","samsung":"8.2"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Syntax_2"},"example":"section {\\n background-color: #f3f3f3f3;\\n color: #0003;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-hex-alpha"}],"vendors_implementations":3},{"id":"hwb-function","title":"`hwb()` Function","description":"A function for specifying colors by hue and then a degree of whiteness and blackness to mix into it","specification":"https://www.w3.org/TR/css-color-4/#funcdef-hwb","stage":2,"browser_support":{"firefox":"96","and_ff":"96","safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hwb()"},"example":"p {\\n color: hwb(120 44% 50%);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function"}],"vendors_implementations":2},{"id":"ic-unit","title":"`ic` length unit","description":"Equal to the used advance measure of the \\"水\\" (CJK water ideograph, U+6C34) glyph found in the font used to render it","specification":"https://www.w3.org/TR/css-values-4/#ic","stage":2,"browser_support":{"firefox":"97","and_ff":"97","safari":"15.4","ios_saf":"15.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_and_Units#dimensions"},"example":"p {\\n text-indent: 2ic;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit"}],"vendors_implementations":2},{"id":"image-set-function","title":"`image-set()` Function","description":"A function for specifying image sources based on the user’s resolution","specification":"https://www.w3.org/TR/css-images-4/#image-set-notation","stage":2,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/image-set"},"example":"p {\\n background-image: image-set(\\n \\"foo.png\\" 1x,\\n \\"foo-2x.png\\" 2x,\\n \\"foo-print.png\\" 600dpi\\n );\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-image-set-function"}],"vendors_implementations":0},{"id":"in-out-of-range-pseudo-class","title":"`:in-range` and `:out-of-range` Pseudo-Classes","description":"A pseudo-class for matching elements that have range limitations","specification":"https://www.w3.org/TR/selectors-4/#range-pseudos","stage":2,"browser_support":{"edge":"79","firefox":"50","chrome":"53","safari":"10.1","opera":"40","ios_saf":"10.3","android":"53","op_mob":"64","and_chr":"53","and_ff":"50","and_uc":"12.12","samsung":"5","and_qq":"10.4","baidu":"7.12"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:in-range"},"example":"input:in-range {\\n background-color: rgba(0, 255, 0, 0.25);\\n}\\ninput:out-of-range {\\n background-color: rgba(255, 0, 0, 0.25);\\n border: 2px solid red;\\n}","vendors_implementations":3},{"id":"is-pseudo-class","title":"`:is()` Matches-Any Pseudo-Class","description":"A pseudo-class for matching elements in a selector list","specification":"https://www.w3.org/TR/selectors-4/#matches-pseudo","stage":2,"browser_support":{"edge":"88","firefox":"78","chrome":"88","safari":"14","opera":"75","ios_saf":"14","android":"88","op_mob":"64","and_chr":"88","and_ff":"78","samsung":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:is"},"example":"p:is(:first-child, .special) {\\n margin-top: 1em;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-is-pseudo-class"}],"vendors_implementations":3},{"id":"lab-function","title":"`lab()` Function","description":"A function for specifying colors expressed in the CIE Lab color space","specification":"https://www.w3.org/TR/css-color-4/#funcdef-lab","stage":2,"browser_support":{"safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lab()"},"example":"body {\\n color: lab(80% 50 20);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function"}],"vendors_implementations":1},{"id":"lch-function","title":"`lch()` Function","description":"A function for specifying colors expressed in the CIE Lab color space with chroma and hue","specification":"https://www.w3.org/TR/css-color-4/#funcdef-lch","stage":2,"browser_support":{"safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lch()"},"example":"body {\\n color: lch(53% 105 40);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function"}],"vendors_implementations":1},{"id":"logical-properties-and-values","title":"Logical Properties and Values","description":"Flow-relative (left-to-right or right-to-left) properties and values","specification":"https://www.w3.org/TR/css-logical-1/","stage":2,"browser_support":{"edge":"89","firefox":"66","chrome":"89","safari":"15","opera":"76","ios_saf":"15","android":"89","op_mob":"64","and_chr":"89","and_ff":"66","samsung":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties"},"example":"span:first-child {\\n float: inline-start;\\n margin-inline-start: 10px;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical"}],"vendors_implementations":3},{"id":"matches-pseudo-class","title":"`:matches()` Matches-Any Pseudo-Class","description":"A pseudo-class for matching elements in a selector list","specification":"https://www.w3.org/TR/selectors-4/#selectordef-matches","stage":-1,"browser_support":{"edge":"88","firefox":"78","chrome":"88","safari":"14","opera":"75","ios_saf":"14","android":"88","op_mob":"64","and_chr":"88","and_ff":"78","samsung":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:is"},"example":"p:matches(:first-child, .special) {\\n margin-top: 1em;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-selector-matches"}],"vendors_implementations":3},{"id":"media-query-ranges","title":"Media Query Ranges","description":"A syntax for defining media query ranges using ordinary comparison operators","specification":"https://www.w3.org/TR/mediaqueries-4/#range-context","stage":3,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#Syntax_improvements_in_Level_4"},"example":"@media (width < 480px) {}\\n\\n@media (480px <= width < 768px) {}\\n\\n@media (width >= 768px) {}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-media-minmax"}],"vendors_implementations":0},{"id":"nesting-rules","title":"Nesting Rules","description":"A syntax for nesting relative rules within rules","specification":"https://www.w3.org/TR/css-nesting-1/","stage":1,"browser_support":{},"example":"article {\\n & p {\\n color: #333;\\n }\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting"}],"vendors_implementations":0},{"id":"not-pseudo-class","title":"`:not()` Negation List Pseudo-Class","description":"A pseudo-class for ignoring elements in a selector list","specification":"https://www.w3.org/TR/selectors-4/#negation-pseudo","stage":2,"browser_support":{"edge":"88","firefox":"84","chrome":"88","safari":"9","opera":"75","ios_saf":"9","android":"88","op_mob":"64","and_chr":"88","and_ff":"84","samsung":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:not"},"example":"p:not(:first-child, .special) {\\n margin-top: 1em;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-selector-not"}],"vendors_implementations":3},{"id":"oklab-function","title":"`oklab` and `oklch` color functions","description":"Functions that allow colors to be expressed in OKLab and OKLCH.","specification":"https://www.w3.org/TR/css-color-4/#specifying-oklab-oklch","stage":2,"browser_support":{},"example":"p {\\n color: oklab(72.322% -0.0465 -0.1150);\\n color: oklch(72.322% 0.12403 247.996);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function"}],"vendors_implementations":0},{"id":"opacity-percentage","title":"Support for percentages for `opacity`","description":"Syntactic sugar to use percentages instead of a float between 0 and 1.","specification":"https://www.w3.org/TR/css-color-4/#transparency","stage":2,"browser_support":{"chrome":"78","and_chr":"78","edge":"79","firefox":"70","samsung":"12.0","android":"78"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/opacity"},"example":"img {\\n opacity: 90%;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/mrcgrtz/postcss-opacity-percentage"}],"vendors_implementations":2},{"id":"overflow-property","title":"`overflow` Shorthand Property","description":"A property for defining `overflow-x` and `overflow-y`","specification":"https://www.w3.org/TR/css-overflow-3/#propdef-overflow","stage":2,"browser_support":{"chrome":"68","and_chr":"68","edge":"79","firefox":"61","and_ff":"61","opera":"55","op_mob":"48","samsung":"10.0","android":"68"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/overflow"},"example":"html {\\n overflow: hidden auto;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-overflow-shorthand"}],"vendors_implementations":2},{"id":"overflow-wrap-property","title":"`overflow-wrap` Property","description":"A property for defining whether to insert line breaks within words to prevent overflowing","specification":"https://www.w3.org/TR/css-text-3/#overflow-wrap-property","stage":2,"browser_support":{"edge":"18","firefox":"49","chrome":"23","safari":"6.1","opera":"12.1","ios_saf":"7","android":"4.4","bb":"10","op_mob":"64","and_chr":"23","and_ff":"49","and_uc":"12.12","samsung":"4","and_qq":"10.4","baidu":"7.12"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap"},"example":"p {\\n overflow-wrap: break-word;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/mattdimu/postcss-replace-overflow-wrap"}],"vendors_implementations":3},{"id":"overscroll-behavior-property","title":"`overscroll-behavior` Property","description":"Properties for controlling when the scroll position of a scroll container reaches the edge of a scrollport","specification":"https://www.w3.org/TR/css-overscroll-1/","stage":1,"browser_support":{"edge":"79","firefox":"59","chrome":"65","opera":"52","android":"65","op_mob":"64","and_chr":"65","and_ff":"59","samsung":"8.2","and_qq":"10.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior"},"example":".messages {\\n height: 220px;\\n overflow: auto;\\n overscroll-behavior-y: contain;\\n}\\n\\nbody {\\n margin: 0;\\n overscroll-behavior: none;\\n}","vendors_implementations":2},{"id":"place-properties","title":"Place Properties","description":"Properties for defining alignment within a layout","specification":"https://www.w3.org/TR/css-align-3/#place-items-property","stage":2,"browser_support":{"chrome":"59","and_chr":"59","edge":"79","firefox":"53","and_ff":"53","opera":"46","op_mob":"43","safari":"11","ios_saf":"11","samsung":"7.0","android":"59"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/place-content"},"example":".example {\\n place-content: flex-end;\\n place-items: center / space-between;\\n place-self: flex-start / center;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-place"}],"vendors_implementations":3},{"id":"prefers-color-scheme-query","title":"`prefers-color-scheme` Media Query","description":"A media query to detect if the user has requested the system use a light or dark color theme","specification":"https://www.w3.org/TR/mediaqueries-5/#prefers-color-scheme","stage":2,"browser_support":{"edge":"79","firefox":"67","chrome":"76","safari":"12.1","opera":"62","ios_saf":"13","android":"76","op_mob":"64","and_chr":"76","and_ff":"67","samsung":"12"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme"},"example":"body {\\n background-color: white;\\n color: black;\\n}\\n\\n@media (prefers-color-scheme: dark) {\\n body {\\n background-color: black;\\n color: white;\\n }\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-prefers-color-scheme"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-prefers-color-scheme"}],"vendors_implementations":3},{"id":"prefers-reduced-motion-query","title":"`prefers-reduced-motion` Media Query","description":"A media query to detect if the user has requested less animation and general motion on the page","specification":"https://www.w3.org/TR/mediaqueries-5/#prefers-reduced-motion","stage":2,"browser_support":{"edge":"79","firefox":"63","chrome":"74","safari":"10.1","opera":"64","ios_saf":"10.3","android":"74","op_mob":"64","and_chr":"74","and_ff":"63","samsung":"11.1"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion"},"example":".animation {\\n animation: vibrate 0.3s linear infinite both; \\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n .animation {\\n animation: none;\\n }\\n}","vendors_implementations":3},{"id":"read-only-write-pseudo-class","title":"`:read-only` and `:read-write` selectors","description":"Pseudo-classes to match elements which are considered user-alterable","specification":"https://www.w3.org/TR/selectors-4/#rw-pseudos","stage":2,"browser_support":{"edge":"13","firefox":"78","chrome":"36","safari":"9","opera":"23","ios_saf":"9","android":"36","bb":"10","op_mob":"64","and_chr":"36","and_ff":"78","and_uc":"12.12","samsung":"4","and_qq":"10.4","baidu":"7.12"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:read-only"},"example":"input:read-only {\\n background-color: #ccc;\\n}","vendors_implementations":3},{"id":"rebeccapurple-color","title":"`rebeccapurple` Color","description":"A particularly lovely shade of purple in memory of Rebecca Alison Meyer","specification":"https://www.w3.org/TR/css-color-4/#valdef-color-rebeccapurple","stage":2,"browser_support":{"edge":"12","firefox":"33","chrome":"38","safari":"7","opera":"25","ios_saf":"8","android":"4.4","op_mob":"64","and_chr":"38","and_ff":"33","and_uc":"12.12","samsung":"4","and_qq":"10.4","baidu":"7.12","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value"},"example":"html {\\n color: rebeccapurple;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-rebeccapurple"}],"vendors_implementations":3},{"id":"system-ui-font-family","title":"`system-ui` Font Family","description":"A generic font used to match the user’s interface","specification":"https://www.w3.org/TR/css-fonts-4/#system-ui-def","stage":2,"browser_support":{"edge":"79","firefox":"92","chrome":"56","safari":"11","opera":"43","ios_saf":"11","android":"56","op_mob":"64","and_chr":"56","and_ff":"92","and_uc":"12.12","samsung":"6.2","and_qq":"10.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#Syntax"},"example":"body {\\n font-family: system-ui;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/JLHwung/postcss-font-family-system-ui"}],"vendors_implementations":3},{"id":"unset-value","title":"`unset` Keyword","description":"The unset CSS keyword resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.","specification":"https://www.w3.org/TR/css-cascade-4/#inherit-initial","stage":3,"browser_support":{"chrome":"41","and_chr":"41","edge":"13","firefox":"27","and_ff":"27","opera":"28","op_mob":"28","safari":"9.1","ios_saf":"9.3","samsung":"4.0","android":"41"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/unset"},"example":"div {\\n border-color: unset;\\n color: unset;\\n}","vendors_implementations":3},{"id":"when-else-rules","title":"When/Else Rules","description":"At-rules for specifying media queries and support queries in a single grammar","specification":"https://www.w3.org/TR/2021/WD-css-conditional-5-20211221/","stage":2,"browser_support":{},"example":"@when media(width >= 640px) and (supports(display: flex) or supports(display: grid)) {\\n /* A */\\n} @else media(pointer: coarse) {\\n /* B */\\n} @else {\\n /* C */\\n}","vendors_implementations":0},{"id":"where-pseudo-class","title":"`:where()` Zero-Specificity Pseudo-Class","description":"A pseudo-class for matching elements in a selector list without contributing specificity","specification":"https://www.w3.org/TR/selectors-4/#where-pseudo","stage":2,"browser_support":{"chrome":"88","and_chr":"88","edge":"88","firefox":"82","and_ff":"82","opera":"74","op_mob":"63","safari":"14","ios_saf":"14","samsung":"15.0","android":"88"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:where"},"example":"a:where(:not(:hover)) {\\n text-decoration: none;\\n}","vendors_implementations":3}]')},9717:_=>{"use strict";_.exports=JSON.parse('[{"prop":"animation","initial":"${animation-name} ${animation-duration} ${animation-timing-function} ${animation-delay} ${animation-iteration-count} ${animation-direction} ${animation-fill-mode} ${animation-play-state}","combined":true},{"prop":"animation-delay","initial":"0s"},{"prop":"animation-direction","initial":"normal"},{"prop":"animation-duration","initial":"0s"},{"prop":"animation-fill-mode","initial":"none"},{"prop":"animation-iteration-count","initial":"1"},{"prop":"animation-name","initial":"none"},{"prop":"animation-play-state","initial":"running"},{"prop":"animation-timing-function","initial":"ease"},{"prop":"backface-visibility","initial":"visible","basic":true},{"prop":"background","initial":"${background-color} ${background-image} ${background-repeat} ${background-position} / ${background-size} ${background-origin} ${background-clip} ${background-attachment}","combined":true},{"prop":"background-attachment","initial":"scroll"},{"prop":"background-clip","initial":"border-box"},{"prop":"background-color","initial":"transparent"},{"prop":"background-image","initial":"none"},{"prop":"background-origin","initial":"padding-box"},{"prop":"background-position","initial":"0 0"},{"prop":"background-position-x","initial":"0"},{"prop":"background-position-y","initial":"0"},{"prop":"background-repeat","initial":"repeat"},{"prop":"background-size","initial":"auto auto"},{"prop":"border","initial":"${border-width} ${border-style} ${border-color}","combined":true},{"prop":"border-style","initial":"none"},{"prop":"border-width","initial":"medium"},{"prop":"border-color","initial":"currentColor"},{"prop":"border-bottom","initial":"0"},{"prop":"border-bottom-color","initial":"currentColor"},{"prop":"border-bottom-left-radius","initial":"0"},{"prop":"border-bottom-right-radius","initial":"0"},{"prop":"border-bottom-style","initial":"none"},{"prop":"border-bottom-width","initial":"medium"},{"prop":"border-collapse","initial":"separate","basic":true,"inherited":true},{"prop":"border-image","initial":"none","basic":true},{"prop":"border-left","initial":"0"},{"prop":"border-left-color","initial":"currentColor"},{"prop":"border-left-style","initial":"none"},{"prop":"border-left-width","initial":"medium"},{"prop":"border-radius","initial":"0","basic":true},{"prop":"border-right","initial":"0"},{"prop":"border-right-color","initial":"currentColor"},{"prop":"border-right-style","initial":"none"},{"prop":"border-right-width","initial":"medium"},{"prop":"border-spacing","initial":"0","basic":true,"inherited":true},{"prop":"border-top","initial":"0"},{"prop":"border-top-color","initial":"currentColor"},{"prop":"border-top-left-radius","initial":"0"},{"prop":"border-top-right-radius","initial":"0"},{"prop":"border-top-style","initial":"none"},{"prop":"border-top-width","initial":"medium"},{"prop":"bottom","initial":"auto","basic":true},{"prop":"box-shadow","initial":"none","basic":true},{"prop":"box-sizing","initial":"content-box","basic":true},{"prop":"caption-side","initial":"top","basic":true,"inherited":true},{"prop":"clear","initial":"none","basic":true},{"prop":"clip","initial":"auto","basic":true},{"prop":"color","initial":"#000","basic":true},{"prop":"columns","initial":"auto","basic":true},{"prop":"column-count","initial":"auto","basic":true},{"prop":"column-fill","initial":"balance","basic":true},{"prop":"column-gap","initial":"normal","basic":true},{"prop":"column-rule","initial":"${column-rule-width} ${column-rule-style} ${column-rule-color}","combined":true},{"prop":"column-rule-color","initial":"currentColor"},{"prop":"column-rule-style","initial":"none"},{"prop":"column-rule-width","initial":"medium"},{"prop":"column-span","initial":"1","basic":true},{"prop":"column-width","initial":"auto","basic":true},{"prop":"content","initial":"normal","basic":true},{"prop":"counter-increment","initial":"none","basic":true},{"prop":"counter-reset","initial":"none","basic":true},{"prop":"cursor","initial":"auto","basic":true,"inherited":true},{"prop":"direction","initial":"ltr","basic":true,"inherited":true},{"prop":"display","initial":"inline","basic":true},{"prop":"empty-cells","initial":"show","basic":true,"inherited":true},{"prop":"float","initial":"none","basic":true},{"prop":"font","contains":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"basic":true,"inherited":true},{"prop":"font-family","initial":"serif"},{"prop":"font-size","initial":"medium"},{"prop":"font-style","initial":"normal"},{"prop":"font-variant","initial":"normal"},{"prop":"font-weight","initial":"normal"},{"prop":"font-stretch","initial":"normal"},{"prop":"line-height","initial":"normal","inherited":true},{"prop":"height","initial":"auto","basic":true},{"prop":"hyphens","initial":"none","basic":true,"inherited":true},{"prop":"left","initial":"auto","basic":true},{"prop":"letter-spacing","initial":"normal","basic":true,"inherited":true},{"prop":"list-style","initial":"${list-style-type} ${list-style-position} ${list-style-image}","combined":true,"inherited":true},{"prop":"list-style-image","initial":"none"},{"prop":"list-style-position","initial":"outside"},{"prop":"list-style-type","initial":"disc"},{"prop":"margin","initial":"0","basic":true},{"prop":"margin-bottom","initial":"0"},{"prop":"margin-left","initial":"0"},{"prop":"margin-right","initial":"0"},{"prop":"margin-top","initial":"0"},{"prop":"max-height","initial":"none","basic":true},{"prop":"max-width","initial":"none","basic":true},{"prop":"min-height","initial":"0","basic":true},{"prop":"min-width","initial":"0","basic":true},{"prop":"opacity","initial":"1","basic":true},{"prop":"orphans","initial":"2","basic":true},{"prop":"outline","initial":"${outline-width} ${outline-style} ${outline-color}","combined":true},{"prop":"outline-color","initial":"invert"},{"prop":"outline-style","initial":"none"},{"prop":"outline-width","initial":"medium"},{"prop":"overflow","initial":"visible","basic":true},{"prop":"overflow-x","initial":"visible","basic":true},{"prop":"overflow-y","initial":"visible","basic":true},{"prop":"padding","initial":"0","basic":true},{"prop":"padding-bottom","initial":"0"},{"prop":"padding-left","initial":"0"},{"prop":"padding-right","initial":"0"},{"prop":"padding-top","initial":"0"},{"prop":"page-break-after","initial":"auto","basic":true},{"prop":"page-break-before","initial":"auto","basic":true},{"prop":"page-break-inside","initial":"auto","basic":true},{"prop":"perspective","initial":"none","basic":true},{"prop":"perspective-origin","initial":"50% 50%","basic":true},{"prop":"position","initial":"static","basic":true},{"prop":"quotes","initial":"“ ” ‘ ’"},{"prop":"right","initial":"auto","basic":true},{"prop":"tab-size","initial":"8","basic":true,"inherited":true},{"prop":"table-layout","initial":"auto","basic":true},{"prop":"text-align","initial":"left","basic":true,"inherited":true},{"prop":"text-align-last","initial":"auto","basic":true,"inherited":true},{"prop":"text-decoration","initial":"${text-decoration-line}","combined":true},{"prop":"text-decoration-color","initial":"inherited"},{"prop":"text-decoration-color","initial":"currentColor"},{"prop":"text-decoration-line","initial":"none"},{"prop":"text-decoration-style","initial":"solid"},{"prop":"text-indent","initial":"0","basic":true,"inherited":true},{"prop":"text-shadow","initial":"none","basic":true,"inherited":true},{"prop":"text-transform","initial":"none","basic":true,"inherited":true},{"prop":"top","initial":"auto","basic":true},{"prop":"transform","initial":"none","basic":true},{"prop":"transform-origin","initial":"50% 50% 0","basic":true},{"prop":"transform-style","initial":"flat","basic":true},{"prop":"transition","initial":"${transition-property} ${transition-duration} ${transition-timing-function} ${transition-delay}","combined":true},{"prop":"transition-delay","initial":"0s"},{"prop":"transition-duration","initial":"0s"},{"prop":"transition-property","initial":"none"},{"prop":"transition-timing-function","initial":"ease"},{"prop":"unicode-bidi","initial":"normal","basic":true},{"prop":"vertical-align","initial":"baseline","basic":true},{"prop":"visibility","initial":"visible","basic":true,"inherited":true},{"prop":"white-space","initial":"normal","basic":true,"inherited":true},{"prop":"widows","initial":"2","basic":true,"inherited":true},{"prop":"width","initial":"auto","basic":true},{"prop":"word-spacing","initial":"normal","basic":true,"inherited":true},{"prop":"z-index","initial":"auto","basic":true}]')}};var X={};function __nccwpck_require__(ee){var te=X[ee];if(te!==undefined){return te.exports}var re=X[ee]={exports:{}};var se=true;try{_[ee].call(re.exports,re,re.exports,__nccwpck_require__);se=false}finally{if(se)delete X[ee]}return re.exports}(()=>{__nccwpck_require__.o=(_,X)=>Object.prototype.hasOwnProperty.call(_,X)})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var ee=__nccwpck_require__(1097);module.exports=ee})(); \ No newline at end of file + */function F(_,X){const[ee,te,re]=_,[se,ne,ie]=X,oe=ee-se,ae=te-ne,le=re-ie;return Math.sqrt(oe**2+ae**2+le**2)}function P(_,X,ee){return function(_,X,ee){let te=0,re=_[1];const se=_;for(;re-te>1e-4;){const _=w(X(se));F(x(se),x(ee(_)))-.02<1e-4?te=se[1]:re=se[1],se[1]=(re+te)/2}return w(X([...se]))}(_,X,ee)}function w(_){return _.map((_=>_<0?0:_>1?1:_))}function I(_){const[X,ee,te]=_;return X>=-1e-4&&X<=1.0001&&ee>=-1e-4&&ee<=1.0001&&te>=-1e-4&&te<=1.0001}function N(_){const[X,ee,te]=_;let re=[Math.max(X,0),Math.min(Math.max(ee,-160),160),Math.min(Math.max(te,-160),160)];re=v(re);let se=re.slice();return se=m(se),se=y(se),se=g(se),se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=m(re),re=h(re),re=p(re),I(re)?[w(re),!0]:[P(se,(_=>p(_=h(_=M(_=x(_))))),(_=>g(_=y(_=d(_=f(_)))))),!1]}function S(_){const[X,ee,te]=_;let re=[Math.max(X,0),Math.min(Math.max(ee,-160),160),Math.min(Math.max(te,-160),160)];re=v(re);let se=re.slice();return se=m(se),se=y(se),se=g(se),se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=m(re),re=c(re),re=s(re),I(re)?w(re).map((_=>Math.round(255*_))):P(se,(_=>s(_=c(_=M(_=x(_))))),(_=>g(_=y(_=l(_=i(_)))))).map((_=>Math.round(255*_)))}function O(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te%360];re=b(re),re=v(re);let se=re.slice();return se=m(se),se=y(se),se=g(se),se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=m(re),re=h(re),re=p(re),I(re)?[w(re),!0]:[P(se,(_=>p(_=h(_=M(_=x(_))))),(_=>g(_=y(_=d(_=f(_)))))),!1]}function A(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te%360];re=b(re),re=v(re);let se=re.slice();return se=m(se),se=y(se),se=g(se),se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=m(re),re=c(re),re=s(re),I(re)?w(re).map((_=>Math.round(255*_))):P(se,(_=>s(_=c(_=M(_=x(_))))),(_=>g(_=y(_=l(_=i(_)))))).map((_=>Math.round(255*_)))}function q(_){const X=_.value,ee=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let te=null;if("lab"===X?te=$(ee):"lch"===X&&(te=C(ee)),!te)return;_.value="rgb",function(_,X,ee){if(!X||!ee)return;if(_.value="rgba",X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!H(_))return!1;const X=ne.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const te=ne.default.unit(ee.value);if(!te)return;"%"===te.unit&&(te.number=String(parseFloat(te.number)/100),ee.value=String(te.number))}(_,te.slash,te.alpha);const[re,se,ie]=G(te),[oe,ae,le]=L(te),ue=("lab"===X?S:A)([oe.number,ae.number,le.number].map((_=>parseFloat(_))));_.nodes.splice(_.nodes.indexOf(re)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.splice(_.nodes.indexOf(se)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),z(_.nodes,re,{...re,value:String(ue[0])}),z(_.nodes,se,{...se,value:String(ue[1])}),z(_.nodes,ie,{...ie,value:String(ue[2])})}function B(_){if(!_||"word"!==_.type)return!1;if(!H(_))return!1;const X=ne.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function E(_){return _&&"function"===_.type&&"calc"===_.value}function j(_){return _&&"function"===_.type&&"var"===_.value}function k(_){return _&&"div"===_.type&&"/"===_.value}function C(_){if(!B(_[0]))return null;if(!B(_[1]))return null;if(!function(_){if(!_||"word"!==_.type)return!1;if(!H(_))return!1;const X=ne.default.unit(_.value);return!(!X||!X.number||"deg"!==X.unit&&"grad"!==X.unit&&"rad"!==X.unit&&"turn"!==X.unit&&""!==X.unit)}(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],c:ne.default.unit(_[1].value),cNode:_[1],h:ne.default.unit(_[2].value),hNode:_[2]};return function(_){switch(_.unit){case"deg":return void(_.unit="");case"rad":return _.unit="",void(_.number=(180*parseFloat(_.number)/Math.PI).toString());case"grad":return _.unit="",void(_.number=(.9*parseFloat(_.number)).toString());case"turn":_.unit="",_.number=(360*parseFloat(_.number)).toString()}}(X.h),""!==X.h.unit?null:(k(_[3])&&(X.slash=_[3]),(B(_[4])||E(_[4])||j(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit=""),"%"===X.c.unit&&(X.c.unit="",X.c.number=(parseFloat(X.c.number)/100*150).toFixed(10)),X):null)}function $(_){if(!B(_[0]))return null;if(!B(_[1]))return null;if(!B(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],a:ne.default.unit(_[1].value),aNode:_[1],b:ne.default.unit(_[2].value),bNode:_[2]};return k(_[3])&&(X.slash=_[3]),(B(_[4])||E(_[4])||j(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit=""),"%"===X.a.unit&&(X.a.unit="",X.a.number=(parseFloat(X.a.number)/100*125).toFixed(10)),"%"===X.b.unit&&(X.b.unit="",X.b.number=(parseFloat(X.b.number)/100*125).toFixed(10)),X):null}function D(_){return void 0!==_.a}function G(_){return D(_)?[_.lNode,_.aNode,_.bNode]:[_.lNode,_.cNode,_.hNode]}function L(_){return D(_)?[_.l,_.a,_.b]:[_.l,_.c,_.h]}function z(_,X,ee){const te=_.indexOf(X);_[te]=ee}function H(_){if(!_||!_.value)return!1;try{return!1!==ne.default.unit(_.value)}catch(_){return!1}}function J(_,X,ee,te){let re;try{re=ne.default(_)}catch(te){X.warn(ee,`Failed to parse value '${_}' as a lab or lch function. Leaving the original value intact.`)}if(void 0===re)return;re.walk((_=>{_.type&&"function"===_.type&&("lab"!==_.value&&"lch"!==_.value||q(_))}));const se=String(re);if(se===_)return;const ie=ne.default(_);ie.walk((_=>{_.type&&"function"===_.type&&("lab"!==_.value&&"lch"!==_.value||function(_,X,ee,te){const re=ne.default.stringify(_),se=_.value,ie=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let oe=null;if("lab"===se?oe=$(ie):"lch"===se&&(oe=C(ie)),!oe)return;if(ie.length>3&&(!oe.slash||!oe.alpha))return;_.value="color";const[ae,le,ue]=G(oe),[ce,pe,fe]=L(oe),de="lab"===se?N:O,he=[ce.number,pe.number,fe.number].map((_=>parseFloat(_))),[me,ge]=de(he);!ge&&te&&X.warn(ee,`"${re}" is out of gamut for "display-p3". Given "preserve: true" is set, this will lead to unexpected results in some browsers.`),_.nodes.splice(0,0,{sourceIndex:0,sourceEndIndex:10,value:"display-p3",type:"word"}),_.nodes.splice(1,0,{sourceIndex:0,sourceEndIndex:1,value:" ",type:"space"}),z(_.nodes,ae,{...ae,value:me[0].toFixed(5)}),z(_.nodes,le,{...le,value:me[1].toFixed(5)}),z(_.nodes,ue,{...ue,value:me[2].toFixed(5)})}(_,X,ee,te))}));return{rgb:se,displayP3:String(ie)}}const K=_=>({postcssPlugin:"postcss-lab-function",Declaration:(X,{result:ee})=>{if(function(_){const X=_.parent;if(!X)return!1;const ee=X.index(_);for(let te=0;te{const X=Object.assign({enableProgressiveCustomProperties:!0,preserve:!1,subFeatures:{displayP3:!0}},_);return X.subFeatures=Object.assign({displayP3:!0},X.subFeatures),X.enableProgressiveCustomProperties&&(X.preserve||X.subFeatures.displayP3)?{postcssPlugin:"postcss-lab-function",plugins:[se.default(),K(X)]}:K(X)};Q.postcss=!0,_.exports=Q},4451:(_,X,ee)=>{"use strict";function r(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=r(ee(977)),t=(_,X)=>{const ee="rule"===Object(_.parent).type?_.parent.cloneBefore({raws:{}}).removeAll():te.default.rule({selector:"&"});return ee.selectors=ee.selectors.map((_=>`${_}:dir(${X})`)),ee};const re=/^border-(block|block-start|block-end|inline|inline-start|inline-end)(-(width|style|color))?$/i;var l=(_,X,ee,te)=>{_.cloneBefore({prop:`border-top${_.prop.replace(re,"$2")}`,value:X[0]}),_.cloneBefore({prop:`border-bottom${_.prop.replace(re,"$2")}`,value:X[1]||X[0]}),b(_,te)},n=(_,X,ee,te)=>{_.cloneBefore({prop:`border-top${_.prop.replace(re,"$2")}`}),b(_,te)},i=(_,X,ee,te)=>{_.cloneBefore({prop:`border-bottom${_.prop.replace(re,"$2")}`}),b(_,te)},d=(_,X,ee,te)=>{const i=()=>[_.cloneBefore({prop:`border-left${_.prop.replace(re,"$2")}`,value:X[0]}),_.cloneBefore({prop:`border-right${_.prop.replace(re,"$2")}`,value:X[1]||X[0]})],d=()=>[_.clone({prop:`border-right${_.prop.replace(re,"$2")}`,value:X[0]}),_.clone({prop:`border-left${_.prop.replace(re,"$2")}`,value:X[1]||X[0]})];return 1===X.length||2===X.length&&X[0]===X[1]||"ltr"===ee?(i(),void b(_,te)):"rtl"===ee?(d(),void b(_,te)):(t(_,"ltr").append(i()),t(_,"rtl").append(d()),void b(_,te))},p=(_,X,ee,te)=>{const i=()=>_.cloneBefore({prop:`border-left${_.prop.replace(re,"$2")}`}),d=()=>_.cloneBefore({prop:`border-right${_.prop.replace(re,"$2")}`});return"ltr"===ee?(i(),void b(_,te)):"rtl"===ee?(d(),void b(_,te)):(t(_,"ltr").append(i()),t(_,"rtl").append(d()),void b(_,te))},a=(_,X,ee,te)=>{const i=()=>_.cloneBefore({prop:`border-right${_.prop.replace(re,"$2")}`}),d=()=>_.cloneBefore({prop:`border-left${_.prop.replace(re,"$2")}`});return"ltr"===ee?(i(),void b(_,te)):"rtl"===ee?(d(),void b(_,te)):(t(_,"ltr").append(i()),t(_,"rtl").append(d()),void b(_,te))};function b(_,X){X||_.remove()}const se=/^(border-)(end-end|end-start|start-end|start-start)(-radius)$/i,ne={"end-end":"bottom-right","end-start":"bottom-left","start-end":"top-right","start-start":"top-left"},ie={"end-end":"bottom-left","end-start":"bottom-right","start-end":"top-left","start-start":"top-right"};var f=(_,X,ee,te)=>"ltr"===ee?(u(_),void v(_,te)):"rtl"===ee?(h(_),void v(_,te)):(t(_,"ltr").append(u(_)),t(_,"rtl").append(h(_)),void v(_,te));function u(_){return _.cloneBefore({prop:_.prop.replace(se,((_,X,ee,te)=>`${X}${ne[ee]}${te}`))})}function h(_){return _.cloneBefore({prop:_.prop.replace(se,((_,X,ee,te)=>`${X}${ie[ee]}${te}`))})}function v(_,X){X||_.remove()}var m=_=>{const X=_.slice();return 4===X.length&&X[3]===X[1]&&X.pop(),3===X.length&&X[2]===X[0]&&X.pop(),2===X.length&&X[1]===X[0]&&X.pop(),X},k=(_,X,ee,te)=>{if("logical"!==X[0])return null;const[,re,se,ne,ie]=X,oe=m([re,ie||se||re,ne||re,se||re]),b=()=>_.cloneBefore({value:oe.join(" ")});if(oe.length<4||"ltr"===ee)return b(),void $(_,te);const ae=m([re,se||re,ne||re,ie||se||re]),s=()=>_.cloneBefore({value:ae.join(" ")});if("rtl"===ee)return s(),void $(_,te);t(_,"ltr").append(b()),t(_,"rtl").append(s()),$(_,te)};function $(_,X){X||_.remove()}var B=(_,X,ee,te)=>/^inline-start$/i.test(_.value)?"ltr"===ee?(y(_),void j(_,te)):"rtl"===ee?(w(_),void j(_,te)):(t(_,"ltr").append(y(_)),t(_,"rtl").append(w(_)),void j(_,te)):/^inline-end$/i.test(_.value)?"ltr"===ee?(w(_),void j(_,te)):"rtl"===ee?(y(_),void j(_,te)):(t(_,"ltr").append(w(_)),t(_,"rtl").append(y(_)),void j(_,te)):void 0;function y(_){return _.cloneBefore({value:"left"})}function w(_){return _.cloneBefore({value:"right"})}function j(_,X){X||_.remove()}var z=(_,X,ee,te)=>{if("logical"!==X[0])return _.cloneBefore({prop:"top",value:X[0]}),_.cloneBefore({prop:"right",value:X[1]||X[0]}),_.cloneBefore({prop:"bottom",value:X[2]||X[0]}),_.cloneBefore({prop:"left",value:X[3]||X[1]||X[0]}),void O(_,te);return!X[4]||X[4]===X[2]||"ltr"===ee?(x(_,X),void O(_,te)):"rtl"===ee?(E(_,X),void O(_,te)):(t(_,"ltr").append(x(_,X)),t(_,"rtl").append(E(_,X)),void O(_,te))};function x(_,X){return[_.cloneBefore({prop:"top",value:X[1]}),_.cloneBefore({prop:"left",value:X[2]||X[1]}),_.cloneBefore({prop:"bottom",value:X[3]||X[1]}),_.cloneBefore({prop:"right",value:X[4]||X[2]||X[1]})]}function E(_,X){return[_.cloneBefore({prop:"top",value:X[1]}),_.cloneBefore({prop:"right",value:X[2]||X[1]}),_.cloneBefore({prop:"bottom",value:X[3]||X[1]}),_.cloneBefore({prop:"left",value:X[4]||X[2]||X[1]})]}function O(_,X){X||_.remove()}var q=(_,X,ee,te)=>/^block$/i.test(_.value)?(_.cloneBefore({value:"vertical"}),void A(_,te)):/^inline$/i.test(_.value)?(_.cloneBefore({value:"horizontal"}),void A(_,te)):void 0;function A(_,X){X||_.remove()}var oe=/^(inset|margin|padding)(?:-(block|block-start|block-end|inline|inline-start|inline-end|start|end))$/i,ae=/^inset-/i,C=(_,X,ee)=>_.cloneBefore({prop:`${_.prop.replace(oe,"$1")}${X}`.replace(ae,""),value:ee}),F=(_,X,ee,te)=>{C(_,"-top",X[0]),C(_,"-bottom",X[1]||X[0]),L(_,te)},G=(_,X,ee,te)=>{_.cloneBefore({prop:_.prop.replace(oe,"$1-top").replace(ae,"")}),L(_,te)},H=(_,X,ee,te)=>{_.cloneBefore({prop:_.prop.replace(oe,"$1-bottom").replace(ae,"")}),L(_,te)},I=(_,X,ee,te)=>{const n=()=>[C(_,"-left",X[0]),C(_,"-right",X[1]||X[0])],i=()=>[C(_,"-right",X[0]),C(_,"-left",X[1]||X[0])];return 1===X.length||2===X.length&&X[0]===X[1]||"ltr"===ee?(n(),void L(_,te)):"rtl"===ee?(i(),void L(_,te)):(t(_,"ltr").append(n()),t(_,"rtl").append(i()),void L(_,te))},J=(_,X,ee,te)=>{const n=()=>C(_,"-left",_.value),i=()=>C(_,"-right",_.value);return"ltr"===ee?(n(),void L(_,te)):"rtl"===ee?(i(),void L(_,te)):(t(_,"ltr").append(n()),t(_,"rtl").append(i()),void L(_,te))},K=(_,X,ee,te)=>{const n=()=>C(_,"-right",_.value),i=()=>C(_,"-left",_.value);return"ltr"===ee?(n(),void L(_,te)):"rtl"===ee?(i(),void L(_,te)):(t(_,"ltr").append(n()),t(_,"rtl").append(i()),void L(_,te))};function L(_,X){X||_.remove()}var le=/^(min-|max-)?(block|inline)-(size)$/i,N=(_,X,ee,te)=>{_.cloneBefore({prop:_.prop.replace(le,((_,X,ee)=>`${X||""}${"block"===ee?"height":"width"}`))}),te||_.remove()},Q=(_,X,ee,te)=>/^start$/i.test(_.value)?"ltr"===ee?(R(_),void T(_,te)):"rtl"===ee?(S(_),void T(_,te)):(t(_,"ltr").append(R(_)),t(_,"rtl").append(S(_)),void T(_,te)):/^end$/i.test(_.value)?"ltr"===ee?(S(_),void T(_,te)):"rtl"===ee?(R(_),void T(_,te)):(t(_,"ltr").append(S(_)),t(_,"rtl").append(R(_)),void T(_,te)):void 0;function R(_){return _.cloneBefore({value:"left"})}function S(_){return _.cloneBefore({value:"right"})}function T(_,X){X||_.remove()}function U(_,X){return V(_,/^\s$/,X)}function V(_,X,ee){const te=[];let re="",se=!1,ne=0,ie=-1;for(;++ie<_.length;){const oe=_[ie];"("===oe?ne+=1:")"===oe?ne>0&&(ne-=1):0===ne&&X.test(oe)&&(se=!0),se?(ee&&!re.trim()||te.push(ee?re.trim():re),ee||te.push(oe),re="",se=!1):re+=oe}return""!==re&&te.push(ee?re.trim():re),te}var W=(_,X,ee,te)=>{const re=[],se=[];var ne,ie;return(ne=_.value,V(ne,/^,$/,ie)).forEach((_=>{let X=!1;U(_).forEach(((_,ee,te)=>{_ in ue&&(X=!0,ue[_].ltr.forEach((_=>{const X=te.slice();X.splice(ee,1,_),re.length&&!/^,$/.test(re[re.length-1])&&re.push(","),re.push(X.join(""))})),ue[_].rtl.forEach((_=>{const X=te.slice();X.splice(ee,1,_),se.length&&!/^,$/.test(se[se.length-1])&&se.push(","),se.push(X.join(""))})))})),X||(re.push(_),se.push(_))})),re.length&&"ltr"===ee?(te&&_.cloneBefore({}),void(_.value=re.join(""))):se.length&&"rtl"===ee?(te&&_.cloneBefore({}),void(_.value=se.join(""))):re.join("")!==se.join("")?(t(_,"ltr").append(_.cloneBefore({value:re.join("")})),t(_,"rtl").append(_.cloneBefore({value:se.join("")})),void function(_,X){X||_.remove()}(_,te)):void 0};const ue={"block-size":{ltr:["height"],rtl:["height"]},"inline-size":{ltr:["width"],rtl:["width"]},"margin-block-end":{ltr:["margin-bottom"],rtl:["margin-bottom"]},"margin-block-start":{ltr:["margin-top"],rtl:["margin-top"]},"margin-block":{ltr:["margin-top","margin-bottom"],rtl:["margin-top","margin-bottom"]},"margin-inline-end":{ltr:["margin-right"],rtl:["margin-left"]},"margin-inline-start":{ltr:["margin-left"],rtl:["margin-right"]},"margin-inline":{ltr:["margin-left","margin-right"],rtl:["margin-left","margin-right"]},"inset-block-end":{ltr:["bottom"],rtl:["bottom"]},"inset-block-start":{ltr:["top"],rtl:["top"]},"inset-block":{ltr:["top","bottom"],rtl:["top","bottom"]},"inset-inline-end":{ltr:["right"],rtl:["left"]},"inset-inline-start":{ltr:["left"],rtl:["right"]},"inset-inline":{ltr:["left","right"],rtl:["left","right"]},inset:{ltr:["top","right","bottom","left"],rtl:["top","right","bottom","left"]},"padding-block-end":{ltr:["padding-bottom"],rtl:["padding-bottom"]},"padding-block-start":{ltr:["padding-top"],rtl:["padding-top"]},"padding-block":{ltr:["padding-top","padding-bottom"],rtl:["padding-top","padding-bottom"]},"padding-inline-end":{ltr:["padding-right"],rtl:["padding-left"]},"padding-inline-start":{ltr:["padding-left"],rtl:["padding-right"]},"padding-inline":{ltr:["padding-left","padding-right"],rtl:["padding-left","padding-right"]},"border-block-color":{ltr:["border-top-color","border-bottom-color"],rtl:["border-top-color","border-bottom-color"]},"border-block-end-color":{ltr:["border-bottom-color"],rtl:["border-bottom-color"]},"border-block-end-style":{ltr:["border-bottom-style"],rtl:["border-bottom-style"]},"border-block-end-width":{ltr:["border-bottom-width"],rtl:["border-bottom-width"]},"border-block-end":{ltr:["border-bottom"],rtl:["border-bottom"]},"border-block-start-color":{ltr:["border-top-color"],rtl:["border-top-color"]},"border-block-start-style":{ltr:["border-top-style"],rtl:["border-top-style"]},"border-block-start-width":{ltr:["border-top-width"],rtl:["border-top-width"]},"border-block-start":{ltr:["border-top"],rtl:["border-top"]},"border-block-style":{ltr:["border-top-style","border-bottom-style"],rtl:["border-top-style","border-bottom-style"]},"border-block-width":{ltr:["border-top-width","border-bottom-width"],rtl:["border-top-width","border-bottom-width"]},"border-block":{ltr:["border-top","border-bottom"],rtl:["border-top","border-bottom"]},"border-inline-color":{ltr:["border-left-color","border-right-color"],rtl:["border-left-color","border-right-color"]},"border-inline-end-color":{ltr:["border-right-color"],rtl:["border-left-color"]},"border-inline-end-style":{ltr:["border-right-style"],rtl:["border-left-style"]},"border-inline-end-width":{ltr:["border-right-width"],rtl:["border-left-width"]},"border-inline-end":{ltr:["border-right"],rtl:["border-left"]},"border-inline-start-color":{ltr:["border-left-color"],rtl:["border-right-color"]},"border-inline-start-style":{ltr:["border-left-style"],rtl:["border-right-style"]},"border-inline-start-width":{ltr:["border-left-width"],rtl:["border-right-width"]},"border-inline-start":{ltr:["border-left"],rtl:["border-right"]},"border-inline-style":{ltr:["border-left-style","border-right-style"],rtl:["border-left-style","border-right-style"]},"border-inline-width":{ltr:["border-left-width","border-right-width"],rtl:["border-left-width","border-right-width"]},"border-inline":{ltr:["border-left","border-right"],rtl:["border-left","border-right"]},"border-end-end-radius":{ltr:["border-bottom-right-radius"],rtl:["border-bottom-left-radius"]},"border-end-start-radius":{ltr:["border-bottom-left-radius"],rtl:["border-bottom-right-radius"]},"border-start-end-radius":{ltr:["border-top-right-radius"],rtl:["border-top-left-radius"]},"border-start-start-radius":{ltr:["border-top-left-radius"],rtl:["border-top-right-radius"]}};function Y(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("keyframes"===X.name)return!0;X=X.parent}else X=X.parent;return!1}function Z(_){_=Object(_);const X=Boolean(_.preserve),ee=!X&&"string"==typeof _.dir&&(/^rtl$/i.test(_.dir)?"rtl":"ltr"),o=_=>te=>{if(Y(te))return;const re=te.parent,se=U(te.value,!0);_(te,se,ee,X),re.nodes.length||re.remove()},b=_=>te=>{if(Y(te))return;const re=te.parent,se=[te.value];_(te,se,ee,X),re.nodes.length||re.remove()};return{postcssPlugin:"postcss-logical-properties",Declaration:{clear:o(B),float:o(B),resize:o(q),"text-align":o(Q),"block-size":o(N),"max-block-size":o(N),"min-block-size":o(N),"inline-size":o(N),"max-inline-size":o(N),"min-inline-size":o(N),margin:o(k),"margin-inline":o(I),"margin-inline-end":o(K),"margin-inline-start":o(J),"margin-block":o(F),"margin-block-end":o(H),"margin-block-start":o(G),inset:o(z),"inset-inline":o(I),"inset-inline-end":o(K),"inset-inline-start":o(J),"inset-block":o(F),"inset-block-end":o(H),"inset-block-start":o(G),padding:o(k),"padding-inline":o(I),"padding-inline-end":o(K),"padding-inline-start":o(J),"padding-block":o(F),"padding-block-end":o(H),"padding-block-start":o(G),"border-block":b(l),"border-block-color":o(l),"border-block-style":o(l),"border-block-width":o(l),"border-block-end":b(i),"border-block-end-color":o(i),"border-block-end-style":o(i),"border-block-end-width":o(i),"border-block-start":b(n),"border-block-start-color":o(n),"border-block-start-style":o(n),"border-block-start-width":o(n),"border-inline":b(d),"border-inline-color":o(d),"border-inline-style":o(d),"border-inline-width":o(d),"border-inline-end":b(a),"border-inline-end-color":o(a),"border-inline-end-style":o(a),"border-inline-end-width":o(a),"border-inline-start":b(p),"border-inline-start-color":o(p),"border-inline-start-style":o(p),"border-inline-start-width":o(p),"border-end-end-radius":o(f),"border-end-start-radius":o(f),"border-start-end-radius":o(f),"border-start-start-radius":o(f),"border-color":o(k),"border-style":o(k),"border-width":o(k),transition:o(W),"transition-property":o(W)}}}Z.postcss=!0,_.exports=Z},2253:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));function n(_){if(!_.nodes.length)return void _.remove();const X=_.nodes.filter((_=>"comment"===_.type));X.length===_.nodes.length&&_.replaceWith(...X)}function o(_){const X=_.parent,ee=X.index(_);if(ee){n(X.cloneBefore().removeAll().append(X.nodes.slice(0,ee)))}return X.before(_),X}function r(_,X){if(X<2)throw new Error("n must be greater than 1");if(_.length<2)throw new Error("s must be greater than 1");if(Math.pow(_.length,X)>1e4)throw new Error("Too many combinations when trying to resolve a nested selector with lists, reduce the complexity of your selectors");const ee=[];for(let _=0;_=0;se--){let X=ee[se];if(X>=_.length){if(X=0,ee[se]=0,0===se)return te;ee[se-1]+=1}re[se]=_[X]}te.push(re),ee[ee.length-1]++}}const re=te.default.pseudo({value:":is"});function a(_){const X=_.nodes.filter((_=>"tag"===_.type));X.length>1&&X.slice(1).forEach((_=>{const X=re.clone();_.replaceWith(X),X.append(_)}))}function l(_,X){let ee=[],re=!1;const se=[..._.nodes];for(let _=0;_1){const _=te.default.selector();ee[0].replaceWith(_),ee.slice(1).forEach((_=>{_.remove()})),ee.forEach((X=>{_.append(X)})),c(_),X&&a(_),_.replaceWith(..._.nodes)}ee=[]}}}function c(_){_.nodes.sort(((_,X)=>i(_.value,_.type)-i(X.value,X.type)))}function i(_,X){return"pseudo"===X&&_&&0===_.indexOf("::")?se.pseudoElement:se[X]}const se={universal:0,tag:1,id:2,class:3,attribute:4,selector:5,pseudo:6,pseudoElement:7,string:8,root:9,comment:10,nesting:9999};function u(_){const X=_.map((_=>te.default().astSync(_))).map((_=>d(_))),ee=X[0];for(let _=1;_0){let te={a:0,b:0,c:0};_.nodes.forEach((_=>{const X=d(_);X.a>te.a?te=X:X.ate.b?te=X:X.bte.c&&(te=X))})),X+=te.a,ee+=te.b,re+=te.c}break;case"where":break;case":nth-child":case":nth-last-child":{const se=_.nodes.findIndex((_=>{_.value}));if(se>-1){const ne=d(te.default.selector({nodes:_.nodes.slice(se+1),value:""}));X+=ne.a,ee+=ne.b,re+=ne.c}else X+=X,ee+=ee,re+=re}break;default:ee+=1}else _.nodes&&_.nodes.length>0&&_.nodes.forEach((_=>{const te=d(_);X+=te.a,ee+=te.b,re+=te.c}));return{a:X,b:ee,c:re}}function f(_,X,ee){let re=[];re=u(_)||ee.noIsPseudoSelector?_.map((_=>te.default().astSync(_))):[te.default().astSync(`:is(${_.join(",")})`)];let se=[];for(let _=0;_{ae++})),ae>1&&re.length>1)oe=r(re,ae),ie=oe.length;else{ie=re.length;for(let _=0;_{if("nesting"!==re.type)return;let se=oe[_][X];X++,"root"===se.type&&1===se.nodes.length&&(se=se.nodes[0]);const ne=te.default().astSync(`:is(${se.toString()})`),ie=h(se.nodes[0]),ae=y(se.nodes[0]),le=h(re),ue=y(re);if(ie&&le)return void re.replaceWith(se.clone());if((ie||ae)&&(le||ue)){const _=re.parent;return ie&&"selector"===se.type?re.replaceWith(se.clone().nodes[0]):re.replaceWith(...se.clone().nodes),void(_&&_.nodes.length>1&&(c(_),ee.noIsPseudoSelector||a(_)))}if(ie){const _=re.parent;return re.replaceWith(se.clone().nodes[0]),void(_&&l(_,!ee.noIsPseudoSelector))}if(ae){const _=re.parent;return re.replaceWith(...se.clone().nodes),void(_&&l(_,!ee.noIsPseudoSelector))}if(m(re)){const _=re.parent;return re.replaceWith(...se.clone().nodes),void(_&&l(_,!ee.noIsPseudoSelector))}if(g(re)){const _=re.parent;return re.replaceWith(...se.clone().nodes),void(_&&l(_,!ee.noIsPseudoSelector))}const ce=re.parent;ee.noIsPseudoSelector?re.replaceWith(...se.clone().nodes):re.replaceWith(...ne.clone().nodes),ce&&l(ce,!ee.noIsPseudoSelector)})),se.push(re.toString())}}return se}function h(_){return"combinator"!==_.type&&!(_.parent&&_.parent.nodes.length>1)}function y(_,X=null){if(h(_))return!1;if(!_.parent)return!1;if(!!_.parent.nodes.find((_=>"combinator"===_.type||"comment"===_.type)))return!1;return!(!!_.parent.nodes.find((_=>"nesting"===_.type))&&X&&!y(X))}function m(_){if(!_.parent)return!1;if(0!==_.parent.nodes.indexOf(_))return!1;for(let X=1;X<_.parent.nodes.length;X++)if("combinator"===_.parent.nodes[X].type&&" "!==_.parent.nodes[X].value&&">"!==_.parent.nodes[X].value)return!1;return!0}function g(_){if(h(_))return!0;if(!_.parent)return!1;for(let X=0;X<_.parent.nodes.length;X++)if("nesting"!==!_.parent.nodes[X].type&&(_.parent.nodes[X].prev()||_.parent.nodes[X].next())){if(_.parent.nodes[X].prev()&&"combinator"!==_.parent.nodes[X].prev().type)return!1;if(_.parent.nodes[X].next()&&"combinator"!==_.parent.nodes[X].next().type)return!1}return!0}const b=_=>{let X=[],ee="",te=!1,re=0,se=!1,ne=!1;for(let ie of _)ne?ne=!1:"\\"===ie?ne=!0:se?ie===se&&(se=!1):'"'===ie||"'"===ie?se=ie:"("===ie?re+=1:")"===ie?re>0&&(re-=1):0===re&&","===ie&&(te=!0),te?(""!==ee&&X.push(ee.trim()),ee="",te=!1):ee+=ie;return X.push(ee.trim()),X};var ne=["container","document","media","supports"];function S(_){const X=o(_);var ee,te;_.params=(ee=X.params,te=_.params,b(ee).map((_=>b(te).map((X=>`${_} and ${X}`)).join(", "))).join(", ")),n(X)}function W(_,X){_.each((_=>{(_=>"rule"===_.type&&"rule"===Object(_.parent).type&&_.selectors.every((_=>0===_.trim().indexOf("&")&&-1===_.indexOf("|"))))(_)?function(_,X){const ee=o(_);_.selectors=f(ee.selectors,_.selectors,X),("rule"===_.type&&"rule"===ee.type&&_.selector===ee.selector||"atrule"===_.type&&"atrule"===ee.type&&_.params===ee.params)&&_.append(...ee.nodes),n(ee)}(_,X):(_=>"atrule"===_.type&&"nest"===_.name&&"rule"===Object(_.parent).type&&b(_.params).every((_=>_.split("&").length>=2&&-1===_.indexOf("|"))))(_)?function(_,X,ee){const te=o(_),re=te.clone().removeAll().append(_.nodes);_.replaceWith(re),re.selectors=f(te.selectors,b(_.params),ee),n(te),X(re,ee)}(_,W,X):(_=>"atrule"===_.type&&ne.includes(_.name)&&"rule"===Object(_.parent).type)(_)?function(_,X,ee){const te=o(_),re=te.clone().removeAll().append(_.nodes);_.append(re),n(te),X(re,ee)}(_,W,X):(_=>"atrule"===_.type&&ne.includes(_.name)&&"atrule"===Object(_.parent).type&&_.name===_.parent.name)(_)&&S(_),Object(_.nodes).length&&W(_,X)}))}function w(_){const X=Object(_).noIsPseudoSelector||!1;return{postcssPlugin:"postcss-nesting",Rule(_){W(_,{noIsPseudoSelector:X})}}}w.postcss=!0,_.exports=w},9582:_=>{"use strict";const X=/^overflow/i;const o=_=>{const ee=!("preserve"in Object(_))||Boolean(_.preserve);return{postcssPlugin:"postcss-overflow-shorthand",Declaration:(_,{list:te})=>{X.test(_)&&function(_,X,ee){const[te,re,...se]=_.space(X.value);re&&!se.length&&(X.cloneBefore({prop:`${X.prop}-x`,value:te}),X.cloneBefore({prop:`${X.prop}-y`,value:re}),ee||X.remove())}(te,_,ee)}}};o.postcss=!0,_.exports=o},6979:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045)),re={preserve:!0};const se=/^place-(content|items|self)/,l=_=>("preserve"in Object(_)&&(re.preserve=Boolean(_.preserve)),{postcssPlugin:"postcss-place",Declaration:(_,{result:X})=>{se.test(_)&&((_,{result:X})=>{const ee=_.prop.match(se)[1];let ne;try{ne=te.default(_.value)}catch(ee){_.warn(X,`Failed to parse value '${_.value}'. Leaving the original value intact.`)}if(void 0===ne)return;let ie=[];ie=ne.nodes.length?ne.nodes.filter((_=>"word"===_.type||"function"===_.type)).map((_=>te.default.stringify(_))):[te.default.stringify(ne)],_.cloneBefore({prop:`align-${ee}`,value:ie[0]}),_.cloneBefore({prop:`justify-${ee}`,value:ie[1]||ie[0]}),re.preserve||_.remove()})(_,{result:X})}});l.postcss=!0,_.exports=l},8668:(_,X,ee)=>{"use strict";var te=ee(2380),re=ee(2760),se=ee(2605),ne=ee(7147),ie=ee(1017),oe=ee(4907),ae=ee(4738),le=ee(6504),ue=ee(1504),ce=ee(3676),pe=ee(5779),fe=ee(8432),de=ee(325),he=ee(8474),me=ee(618),ge=ee(9),be=ee(8785),ve=ee(1909),ye=ee(990),we=ee(8650),xe=ee(1760),ke=ee(4139),Se=ee(1493),_e=ee(5276),Pe=ee(9590),Oe=ee(4451),je=ee(7362),Te=ee(2253),Ee=ee(9582),Fe=ee(8723),Me=ee(6979),$e=ee(4585),Re=ee(8820),Ae=ee(8544),qe=ee(5505),ze=ee(1671),Ge=ee(1082),Ue=ee(4658),He=ee(8924),Ze=ee(8630),Ke=ee(2757),Xe=ee(1800),et=ee(4873),tt=ee(9322);function L(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var rt=L(te),st=L(re),nt=L(se),it=L(ne),ot=L(ie),lt=L(oe),ut=L(ae),ct=L(le),pt=L(ue),ft=L(ce),dt=L(pe),ht=L(fe),mt=L(de),gt=L(he),bt=L(me),vt=L(ge),yt=L(be),wt=L(ve),xt=L(ye),kt=L(we),St=L(xe),_t=L(ke),Pt=L(Se),Ot=L(_e),Ct=L(Pe),jt=L(Oe),Tt=L(je),Et=L(Te),Ft=L(Ee),Mt=L(Fe),$t=L(Me),Rt=L($e),At=L(Re),Dt=L(Ae),qt=L(qe),It=L(ze),Nt=L(Ge),Lt=L(Ue),Bt=L(He),Vt=L(Ze),zt=L(Ke),Wt=L(Xe),Gt=L(et),Ut=L(tt);const Qt={"blank-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README-BROWSER.md","focus-visible-pseudo-class":"https://github.com/WICG/focus-visible","focus-within-pseudo-class":"https://github.com/jsxtools/focus-within/blob/master/README-BROWSER.md","has-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-has-pseudo/README-BROWSER.md","prefers-color-scheme-query":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-prefers-color-scheme/README-BROWSER.md"},Yt=["blank-pseudo-class","focus-visible-pseudo-class","focus-within-pseudo-class","has-pseudo-class","prefers-color-scheme-query"];async function Ne(_,X,ee,te){const re=function(_){return`:root {\n${Object.keys(_).reduce(((X,ee)=>(X.push(`\t${ee}: ${_[ee]};`),X)),[]).join("\n")}\n}\n`}(ee),se=function(_){return`${Object.keys(_).reduce(((X,ee)=>(X.push(`@custom-media ${ee} ${_[ee]};`),X)),[]).join("\n")}\n`}(X),ne=function(_){return`${Object.keys(_).reduce(((X,ee)=>(X.push(`@custom-selector ${ee} ${_[ee]};`),X)),[]).join("\n")}\n`}(te),ie=`${se}\n${ne}\n${re}`;await Ve(_,ie)}function Be(_,X){return`\n\t${_}: {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t\t'${De(ee)}': '${De(X[ee])}'`),_)),[]).join(",\n")}\n\t}`}function We(_,X){return`export const ${_} = {\n${Object.keys(X).reduce(((_,ee)=>(_.push(`\t'${De(ee)}': '${De(X[ee])}'`),_)),[]).join(",\n")}\n};\n`}function Ce(_,X){return Promise.all([].concat(X).map((async X=>{if(X instanceof Function)await X({customMedia:Ie(_.customMedia),customProperties:Ie(_.customProperties),customSelectors:Ie(_.customSelectors)});else{const ee=X===Object(X)?X:{to:String(X)},te=ee.toJSON||Ie;if("customMedia"in ee||"customProperties"in ee||"customSelectors"in ee)ee.customMedia=te(_.customMedia),ee.customProperties=te(_.customProperties),ee.customSelectors=te(_.customSelectors);else if("custom-media"in ee||"custom-properties"in ee||"custom-selectors"in ee)ee["custom-media"]=te(_.customMedia),ee["custom-properties"]=te(_.customProperties),ee["custom-selectors"]=te(_.customSelectors);else{const X=String(ee.to||""),re=(ee.type||ot.default.extname(ee.to).slice(1)).toLowerCase(),se=te(_.customMedia),ne=te(_.customProperties),ie=te(_.customSelectors);"css"===re&&await Ne(X,se,ne,ie),"js"===re&&await async function(_,X,ee,te){const re=`module.exports = {${Be("customMedia",X)},${Be("customProperties",ee)},${Be("customSelectors",te)}\n};\n`;await Ve(_,re)}(X,se,ne,ie),"json"===re&&await async function(_,X,ee,te){const re=`${JSON.stringify({"custom-media":X,"custom-properties":ee,"custom-selectors":te},null," ")}\n`;await Ve(_,re)}(X,se,ne,ie),"mjs"===re&&await async function(_,X,ee,te){const re=`${We("customMedia",X)}\n${We("customProperties",ee)}\n${We("customSelectors",te)}`;await Ve(_,re)}(X,se,ne,ie)}}})))}function Ie(_){return Object.keys(_).reduce(((X,ee)=>(X[ee]=String(_[ee]),X)),{})}function Ve(_,X){return new Promise(((ee,te)=>{it.default.writeFile(_,X,(_=>{_?te(_):ee()}))}))}function De(_){return _.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}function Le(_,X){if(!_)return!1;if("string"==typeof _)return!0;if(Array.isArray(_)){for(let ee=0;ee<_.length;ee++){if("string"==typeof _[ee])return!0;if(_[ee]&&X in Object(_[ee]))return!0}return!1}return X in Object(_)}function Je(_,X,ee){return Math.max(_,Math.min(X,ee))}const Jt=Symbol("insertBefore"),Ht=Symbol("insertAfter"),Zt=Symbol("insertOrder"),Kt=Symbol("plugin");function Qe(_,X,ee){if("insertBefore"!==ee&&"insertAfter"!==ee)return[];const te="insertBefore"===ee?Jt:Ht,re=[];for(const ee in X){if(!Object.hasOwnProperty.call(X,ee))continue;if(!_.find((_=>_.id===ee)))continue;let se=X[ee];Array.isArray(se)||(se=[se]);for(let _=0;_function(_){return!!_[Jt]||!!_[Ht]||!!ir.has(_.id)}(_))).sort(((_,X)=>function(_,X){return _.id===X.id?_[Jt]&&X[Jt]||_[Ht]&&X[Ht]?Je(-1,_[Zt]-X[Zt],1):_[Jt]||X[Ht]?-1:_[Ht]||X[Jt]?1:0:Je(-1,Xt.indexOf(_.id)-Xt.indexOf(X.id),1)}(_,X)))}const or=["ie","edge","firefox","chrome","safari","opera","ios_saf","android","op_mob","and_chr","and_ff","and_uc","samsung","and_qq","baidu","kaios"];function cs(_){if(!_)return[];if(!("browser_support"in _))return["> 0%"];const X=[];return or.forEach((ee=>{const te=_.browser_support[ee];"string"==typeof te&&/^[0-9|.]+$/.test(te)?X.push(`${ee} < ${_.browser_support[ee]}`):X.push(`${ee} >= 1`)})),X}function us(_,X,ee,te){const re=lt.default(_,{ignoreUnknownVersions:!0});switch(X.id){case"is-pseudo-class":return{onComplexSelector:"warning"};case"nesting-rules":if(function(_,X){const ee=cs(_);if(X.some((_=>lt.default(ee,{ignoreUnknownVersions:!0}).some((X=>X===_)))))return!0;return!1}(ee.find((_=>"is-pseudo-class"===_.id)),re))return te.log('Disabling :is on "nesting-rules" due to lack of browser support.'),{noIsPseudoSelector:!0};return{};case"any-link-pseudo-class":if(re.find((_=>_.startsWith("ie ")||_.startsWith("edge "))))return te.log('Adding area[href] fallbacks for ":any-link" support in Edge and IE.'),{subFeatures:{areaHrefNeedsFixing:!0}};return{};default:return{}}}function as(_,X,ee,te){const re=Object(X.features),se=!("enableClientSidePolyfills"in X)||X.enableClientSidePolyfills,ne=Object(X.insertBefore),ie=Object(X.insertAfter),oe=X.browsers,ae=Je(0,function(_){const X=parseInt(_,10);return Number.isNaN(X)?0:X}(X.minimumVendorImplementations),3);ae>0&&te.log(`Using features with ${ae} or more vendor implementations`);const le=function(_,X){let ee=2;if(void 0===_.stage)return X.log(`Using features from Stage ${ee} (default)`),ee;if(!1===_.stage)ee=5;else{let X=parseInt(_.stage,10);Number.isNaN(X)&&(X=0),ee=Je(0,X,5)}return 5===ee?X.log('Stage has been disabled, features will be handled via the "features" option.'):X.log(`Using features from Stage ${ee}`),ee}(X,te);2===le&&ee&&!1===ee.preserve&&(_=JSON.parse(JSON.stringify(_))).forEach((_=>{("blank-pseudo-class"===_.id||"prefers-color-scheme-query"===_.id)&&(_.stage=1)}));const ue=is(_,ne,ie).map((_=>function(_){const X=cs(_);if(_[Jt]||_[Ht]){let ee=_.id;return ee=_.insertBefore?`before-${ee}`:`after-${ee}`,{browsers:X,vendors_implementations:_.vendors_implementations,plugin:_[Kt],id:ee,stage:6}}return{browsers:X,vendors_implementations:_.vendors_implementations,plugin:ir.get(_.id),id:_.id,stage:_.stage}}(_))).filter((_=>0===ae||(!(!_[Jt]&&!_[Ht])||(ae<=_.vendors_implementations||(re[_.id]?(te.log(` ${_.id} does not meet the required vendor implementations but has been enabled by options`),!0):(te.log(` ${_.id} with ${_.vendors_implementations} vendor implementations has been disabled`),!1)))))).filter((_=>{const X=_.stage>=le,ee=se||!Yt.includes(_.id),ne=!1===re[_.id],ie=re[_.id]?re[_.id]:X&ⅇreturn ne?te.log(` ${_.id} has been disabled by options`):X?ee||te.log(` ${_.id} has been disabled by "enableClientSidePolyfills: false".`):ie?te.log(` ${_.id} does not meet the required stage but has been enabled by options`):te.log(` ${_.id} with stage ${_.stage} has been disabled`),ie})).map((X=>function(_,X,ee,te,re,se){let ne,ie;return ne=us(X,te,_,se),!0===ee[te.id]?re&&(ne=Object.assign({},ne,re)):ne=re?Object.assign({},ne,re,ee[te.id]):Object.assign({},ne,ee[te.id]),ne.enableProgressiveCustomProperties=!1,ie=te.plugin.postcss&&"function"==typeof te.plugin?te.plugin(ne):te.plugin&&te.plugin.default&&"function"==typeof te.plugin.default&&te.plugin.default.postcss?te.plugin.default(ne):te.plugin,{browsers:te.browsers,vendors_implementations:te.vendors_implementations,plugin:ie,pluginOptions:ne,id:te.id}}(_,oe,re,X,ee,te))),ce=lt.default(oe,{ignoreUnknownVersions:!0});return ue.filter((_=>{if(_.id in re)return re[_.id];if(function(_){if("importFrom"in Object(_.pluginOptions))switch(_.id){case"custom-media-queries":if(Le(_.pluginOptions.importFrom,"customMedia"))return!0;break;case"custom-properties":if(Le(_.pluginOptions.importFrom,"customProperties"))return!0;break;case"environment-variables":if(Le(_.pluginOptions.importFrom,"environmentVariables"))return!0;break;case"custom-selectors":if(Le(_.pluginOptions.importFrom,"customSelectors"))return!0}if("exportTo"in Object(_.pluginOptions))switch(_.id){case"custom-media-queries":if(Le(_.pluginOptions.exportTo,"customMedia"))return!0;break;case"custom-properties":if(Le(_.pluginOptions.exportTo,"customProperties"))return!0;break;case"environment-variables":if(Le(_.pluginOptions.exportTo,"environmentVariables"))return!0;break;case"custom-selectors":if(Le(_.pluginOptions.exportTo,"customSelectors"))return!0}return!1}(_))return!0;const X=lt.default(_.browsers,{ignoreUnknownVersions:!0}),ee=ce.some((_=>X.some((X=>X===_))));return ee||te.log(`${_.id} disabled due to browser support`),ee}))}class ls{constructor(){this.logs=[]}log(_){this.logs.push(_)}resetLogger(){this.logs.length=0}dumpLogs(_){_&&this.logs.forEach((X=>_.warn(X))),this.resetLogger()}}const ar={"css-blank-pseudo":"blank-pseudo-class","css-has-pseudo":"has-pseudo-class","css-prefers-color-scheme":"prefers-color-scheme-query","postcss-attribute-case-insensitive":"case-insensitive-attributes","postcss-clamp":"clamp","postcss-color-function":"color-function","postcss-color-functional-notation":"color-functional-notation","postcss-color-hex-alpha":"hexadecimal-alpha-notation","postcss-color-rebeccapurple":"rebeccapurple-color","postcss-custom-media":"custom-media-queries","postcss-custom-properties":"custom-properties","postcss-custom-selectors":"custom-selectors","postcss-dir-pseudo-class":"dir-pseudo-class","postcss-double-position-gradients":"double-position-gradients","postcss-env-function":"environment-variables","postcss-focus-visible":"focus-visible-pseudo-class","postcss-focus-within":"focus-within-pseudo-class","postcss-font-format-keywords":"font-format-keywords","postcss-font-variant":"font-variant-property","postcss-gap-properties":"gap-properties","postcss-hwb-function":"hwb-function","postcss-ic-unit":"ic-unit","postcss-image-set-function":"image-set-function","postcss-initial":"all-property","postcss-is-pseudo-class":"is-pseudo-class","postcss-lab-function":"lab-function","postcss-logical":"logical-properties-and-values","postcss-media-minmax":"media-query-ranges","postcss-nesting":"nesting-rules","postcss-normalize-display-values":"display-two-values","postcss-oklab-function":"oklab-function","postcss-opacity-percentage":"opacity-percentage","postcss-overflow-shorthand":"overflow-property","postcss-page-break":"break-properties","postcss-place":"place-properties","postcss-pseudo-class-any-link":"any-link-pseudo-class","postcss-replace-overflow-wrap":"overflow-wrap-property","postcss-selector-not":"not-pseudo-class","postcss-system-ui-font-family":"system-ui-font-family"},lr=(()=>{const _={};for(const[X,ee]of Object.entries(ar))_[ee]=X;return _})();function ds(_,X){let ee="unknown",te=1/0;for(let re=0;re{const X=new ls,ee=Object(_),te=Object.keys(Object(ee.features)),re=ee.browsers,se=function(_){if("importFrom"in _||"exportTo"in _||"preserve"in _){const X={};return"importFrom"in _&&(X.importFrom=_.importFrom),"exportTo"in _&&(X.exportTo={customMedia:{},customProperties:{},customSelectors:{}}),"preserve"in _&&(X.preserve=_.preserve),X}return!1}(ee),ne=as(st.default,ee,se,X),ie=ne.map((_=>_.plugin));!1!==ee.autoprefixer&&ie.push(rt.default(Object.assign({overrideBrowserslist:re},ee.autoprefixer))),ie.push(nt.default()),function(_,X,ee){if(X.debug){ee.log("Enabling the following feature(s):");const X=[];_.forEach((_=>{_.id.startsWith("before")||_.id.startsWith("after")?ee.log(` ${_.id} (injected via options)`):ee.log(` ${_.id}`),void 0!==Qt[_.id]&&X.push(_.id)})),X.length&&(ee.log("These feature(s) need a browser library to work:"),X.forEach((_=>ee.log(` ${_}: ${Qt[_]}`))))}}(ne,ee,X);const u=()=>({postcssPlugin:"postcss-preset-env",OnceExit:function(re,{result:ne}){!function(_,X,ee){const te=Object.keys(lr),re=Object.keys(ar);_.forEach((_=>{if(te.includes(_))return;const se=ds(_,te),ne=ds(_,re);Math.min(se.distance,ne.distance)>10?X.warn(ee`Unknown feature: "${_}", see the list of features https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/FEATURES.md`):se.distance{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));function n(_){if(!_||!_.nodes)return;let X=[];const ee=[..._.nodes];for(let _=0;_1){const _=te.default.selector({value:""});X[0].replaceWith(_),X.slice(1).forEach((_=>{_.remove()})),X.forEach((X=>{_.append(X)})),s(_),_.replaceWith(..._.nodes)}X=[]}}}function s(_){_&&_.nodes&&_.nodes.sort(((_,X)=>{if("selector"===_.type&&"selector"===X.type&&_.nodes.length&&X.nodes.length){if(_.nodes[0].type===X.nodes[0].type)return 0;if(re[_.nodes[0].type]re[X.nodes[0].type])return 1}if("selector"===_.type&&_.nodes.length){if(_.nodes[0].type===X.type)return 0;if(re[_.nodes[0].type]re[X.type])return 1}if("selector"===X.type&&X.nodes.length){if(_.type===X.nodes[0].type)return 0;if(re[_.type]re[X.nodes[0].type])return 1}return _.type===X.type?0:re[_.type]{let te=0;if(_.walkPseudos((_=>{":any-link"!==_.value||_.nodes&&_.nodes.length||te++})),!te)return;let re=[];for(let _=0;_{const te=_.clone();te.walkPseudos((_=>{":any-link"!==_.value||_.nodes&&_.nodes.length||_.replaceWith(...X.shift().nodes)})),te.walk((_=>{"nodes"in _&&(_.nodes.forEach((_=>{n(_)})),n(_))})),ee.push(te.toString())}))})).processSync(_),ee}const oe=/:any-link/;function p(_){const X={preserve:!0,..._},ee={areaHrefNeedsFixing:!1,...Object(X.subFeatures)};return{postcssPlugin:"postcss-pseudo-class-any-link",Rule(_,{result:te}){if(!oe.test(_.selector))return;const re=_.raws.selector&&_.raws.selector.raw||_.selector;":"!==re[re.length-1]&&function(_,X,ee,te){let re=[],se=[];try{for(let X=0;X<_.selectors.length;X++){const ee=_.selectors[X],ne=u(ee,te);ne.length?re.push(...ne):se.push(ee)}}catch(ee){return void _.warn(X,`Failed to parse selector : ${_.selector}`)}re.length&&(_.cloneBefore({selectors:re}),ee?se.length&&_.cloneBefore({selectors:se}):se.length?_.selectors=se:_.remove())}(_,te,X.preserve,ee.areaHrefNeedsFixing)}}}p.postcss=!0,_.exports=p},2760:_=>{"use strict";_.exports=JSON.parse('[{"id":"all-property","title":"`all` Property","description":"A property for defining the reset of all properties of an element","specification":"https://www.w3.org/TR/css-cascade-3/#all-shorthand","stage":4,"browser_support":{"edge":"79","firefox":"27","chrome":"37","safari":"9.1","opera":"24","ios_saf":"9.3","android":"4.4.3","op_mob":"64","and_chr":"37","and_ff":"27","and_uc":"12.12","samsung":"4","and_qq":"10.4","baidu":"7.12","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/all"},"example":"a {\\n all: initial;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/maximkoretskiy/postcss-initial"}],"vendors_implementations":3},{"id":"any-link-pseudo-class","title":"`:any-link` Hyperlink Pseudo-Class","description":"A pseudo-class for matching anchor elements independent of whether they have been visited","specification":"https://www.w3.org/TR/selectors-4/#any-link-pseudo","stage":2,"browser_support":{"chrome":"1","and_chr":"18","edge":"79","firefox":"1","and_ff":"4","opera":"15","op_mob":"14","safari":"3","ios_saf":"1","samsung":"1.0","android":"65"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:any-link"},"example":"nav :any-link > span {\\n background-color: yellow;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-pseudo-class-any-link"}],"vendors_implementations":3},{"id":"blank-pseudo-class","title":"`:blank` Empty-Value Pseudo-Class","description":"A pseudo-class for matching form elements when they are empty","specification":"https://www.w3.org/TR/selectors-4/#blank","stage":2,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:blank"},"example":"input:blank {\\n background-color: yellow;\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo"}],"vendors_implementations":0},{"id":"break-properties","title":"Break Properties","description":"Properties for defining the break behavior between and within boxes","specification":"https://www.w3.org/TR/css-break-3/#breaking-controls","stage":3,"browser_support":{"ie":"10","edge":"12","safari":"10","opera":"11.1","ios_saf":"10","op_mini":"all","op_mob":"11.1","ie_mob":"10","and_uc":"12.12","samsung":"5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/break-after"},"example":"a {\\n break-inside: avoid;\\n break-before: avoid-column;\\n break-after: always;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/shrpne/postcss-page-break"}],"vendors_implementations":1},{"id":"cascade-layers","title":"CSS Cascade Layers","description":"The `@layer` at-rule allows authors to explicitly layer their styles in the cascade, before specificity and order of appearance are considered.","specification":"https://www.w3.org/TR/css-cascade-5/#layering","stage":2,"browser_support":{"edge":"99","firefox":"97","chrome":"99","safari":"15.4","ios_saf":"15.4","android":"99","and_chr":"99"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/@layer"},"example":"/* Un-layered styles have the highest priority */\\na {\\n color: mediumvioletred;\\n}\\n\\n@layer defaults {\\n a { color: maroon; }\\n}","polyfills":[],"vendors_implementations":3},{"id":"case-insensitive-attributes","title":"Case-Insensitive Attributes","description":"An attribute selector matching attribute values case-insensitively","specification":"https://www.w3.org/TR/selectors-4/#attribute-case","stage":2,"browser_support":{"edge":"79","firefox":"47","chrome":"49","safari":"9","opera":"36","ios_saf":"9","android":"49","op_mob":"64","and_chr":"49","and_ff":"47","and_uc":"12.12","samsung":"5","and_qq":"10.4","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors"},"example":"[frame=hsides i] {\\n border-style: solid none;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/Semigradsky/postcss-attribute-case-insensitive"}],"vendors_implementations":3},{"id":"clamp","title":"`clamp` Function","description":"The clamp() CSS function clamps a value between an upper and lower bound. It enables selecting a middle value within a range of values between a defined minimum and maximum.","specification":"https://www.w3.org/TR/css-values-4/#funcdef-clamp","stage":2,"browser_support":{"chrome":"79","and_chr":"79","edge":"79","firefox":"75","and_ff":"79","opera":"66","op_mob":"57","safari":"13.1","ios_saf":"13.4","samsung":"12.0","android":"79"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/clamp()"},"example":"button {\\n font-size: clamp(1rem, 2.5vw, 2rem);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/polemius/postcss-clamp"}],"vendors_implementations":3},{"id":"color-adjust","title":"`color-adjust` Property","description":"The color-adjust property is a non-standard CSS extension that can be used to force printing of background colors and images","specification":"https://www.w3.org/TR/css-color-4/#color-adjust","stage":2,"browser_support":{"firefox":"48","and_ff":"48","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color-adjust"},"example":".background {\\n background-color:#ccc;\\n}\\n.background.color-adjust {\\n color-adjust: economy;\\n}\\n.background.color-adjust-exact {\\n color-adjust: exact;\\n}","vendors_implementations":1},{"id":"color-contrast","title":"`color-contrast()` Function","description":"A function for choosing the color that contrasts the most.","specification":"https://www.w3.org/TR/css-color-5/#colorcontrast","stage":2,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-contrast()"},"example":"p {\\n color: color-contrast(wheat vs tan, sienna, var(--myAccent), #d2691e);\\n}","polyfills":[],"vendors_implementations":0},{"id":"color-function","title":"`color()` Function","description":"A function that allows a color to be specified in a particular, specified color space rather than the implicit sRGB color space that most of the other color functions operate in.","specification":"https://www.w3.org/TR/css-color-4/#funcdef-color","stage":2,"browser_support":{"safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color()"},"example":"p {\\n color: color(display-p3 1 0.5 0);\\n color: color(display-p3 1 0.5 0 / .5);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function"}],"vendors_implementations":1},{"id":"color-functional-notation","title":"Color Functional Notation","description":"A space and slash separated notation for specifying colors","specification":"https://www.w3.org/TR/css-color-4/#funcdef-rgb","stage":2,"browser_support":{"chrome":"65","and_chr":"65","edge":"79","firefox":"52","and_ff":"52","opera":"52","op_mob":"47","safari":"12.1","ios_saf":"12.2","samsung":"9.0","android":"65"},"example":"em {\\n background-color: hsl(120deg 100% 25%);\\n color: rgb(0 255 0);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-functional-notation"}],"vendors_implementations":3},{"id":"color-mix","title":"`color-mix()` Function","description":"A function for mixing colors","specification":"https://www.w3.org/TR/css-color-5/#color-mix","stage":2,"browser_support":{},"example":"p {\\n color: color-mix(in lch, purple 50%, plum 50%);\\n}","polyfills":[],"vendors_implementations":0},{"id":"color-mod-function","title":"`color-mod()` Function","description":"A function for modifying colors","specification":"https://www.w3.org/TR/css-color-4/#funcdef-color-mod","stage":-1,"browser_support":{},"example":"p {\\n color: color-mod(black alpha(50%));\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-color-mod-function"}],"vendors_implementations":0},{"id":"container-queries","title":"Container Queries","description":"New container property and container at rule to make changes depending on the container\'s size","specification":"https://www.w3.org/TR/css-contain-3/#container-queries","stage":0,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Container_Queries"},"example":".container {\\n contain: layout inline-size;\\n}\\n\\n@container (min-width: 700px) {\\n .container {\\n /* styles applied when a container is at least 700px */\\n }\\n}","polyfills":[{"type":"JavaScript Library","link":"https://www.npmjs.com/package/container-query-polyfill"}],"vendors_implementations":0},{"id":"custom-media-queries","title":"Custom Media Queries","description":"An at-rule for defining aliases that represent media queries","specification":"https://www.w3.org/TR/mediaqueries-5/#at-ruledef-custom-media","stage":2,"browser_support":{},"example":"@custom-media --narrow-window (max-width: 30em);\\n\\n@media (--narrow-window) {}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-custom-media"}],"vendors_implementations":0},{"id":"custom-properties","title":"Custom Properties","description":"A syntax for defining custom values accepted by all CSS properties","specification":"https://www.w3.org/TR/css-variables-1/","stage":3,"browser_support":{"edge":"16","firefox":"31","chrome":"49","safari":"10","opera":"36","ios_saf":"10","android":"49","op_mob":"64","and_chr":"49","and_ff":"31","and_uc":"12.12","samsung":"5","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/var"},"example":":root {\\n --some-length: 32px;\\n\\n height: var(--some-length);\\n width: var(--some-length);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties"}],"vendors_implementations":3},{"id":"custom-property-sets","title":"Custom Property Sets","description":"A syntax for storing properties in named variables, referenceable in other style rules","specification":"https://tabatkins.github.io/specs/css-apply-rule/","stage":-1,"browser_support":{},"example":"img {\\n --some-length-styles: {\\n height: 32px;\\n width: 32px;\\n };\\n\\n @apply --some-length-styles;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/pascalduez/postcss-apply"}],"vendors_implementations":0},{"id":"custom-selectors","title":"Custom Selectors","description":"An at-rule for defining aliases that represent selectors","specification":"https://drafts.csswg.org/css-extensions/#custom-selectors","stage":1,"browser_support":{},"example":"@custom-selector :--heading h1, h2, h3, h4, h5, h6;\\n\\narticle :--heading + p {}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-custom-selectors"}],"vendors_implementations":0},{"id":"dir-pseudo-class","title":"`:dir` Directionality Pseudo-Class","description":"A pseudo-class for matching elements based on their directionality","specification":"https://www.w3.org/TR/selectors-4/#dir-pseudo","stage":2,"browser_support":{"firefox":"49","and_ff":"49"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:dir"},"example":"blockquote:dir(rtl) {\\n margin-right: 10px;\\n}\\n\\nblockquote:dir(ltr) {\\n margin-left: 10px;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-dir-pseudo-class"}],"vendors_implementations":1},{"id":"display-two-values","title":"Two values syntax for `display`","description":"Syntax that allows definition of outer and inner displays types for an element","specification":"https://www.w3.org/TR/css-display-3/#the-display-properties","stage":2,"browser_support":{"firefox":"70","safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/display/two-value_syntax_of_display"},"example":".element {\\n display: inline flow-root;\\n display: inline flex;\\n display: block grid;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-normalize-display-values"}],"vendors_implementations":2},{"id":"double-position-gradients","title":"Double Position Gradients","description":"A syntax for using two positions in a gradient.","specification":"https://www.w3.org/TR/css-images-4/#color-stop-syntax","stage":2,"browser_support":{"chrome":"72","and_chr":"72","edge":"79","firefox":"83","and_ff":"83","opera":"60","op_mob":"51","safari":"12.1","ios_saf":"12.2","samsung":"11.0","android":"72"},"example":".pie_chart {\\n background-image: conic-gradient(yellowgreen 40%, gold 0deg 75%, #f06 0deg);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-double-position-gradients"}],"vendors_implementations":3},{"id":"environment-variables","title":"Custom Environment Variables","description":"A syntax for using custom values accepted by CSS globally","specification":"https://drafts.csswg.org/css-env-1/","stage":0,"browser_support":{"edge":"79","firefox":"65","chrome":"69","safari":"11.1","opera":"56","ios_saf":"11.3","android":"69","op_mob":"64","and_chr":"69","and_ff":"65","samsung":"10.1"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/env"},"example":"@media (max-width: env(--brand-small)) {\\n body {\\n padding: env(--brand-spacing);\\n }\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-env-function"}],"vendors_implementations":3},{"id":"fangsong-font-family","title":"`fangsong` Font Family","description":"A generic font used for Fang Song (仿宋) typefaces in Chinese","specification":"https://www.w3.org/TR/css-fonts-4/#fangsong-def","stage":2,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#Syntax"},"example":"body {\\n font-family: fangsong;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/JLHwung/postcss-font-family-fangsong"}],"vendors_implementations":0},{"id":"focus-visible-pseudo-class","title":"`:focus-visible` Focus-Indicated Pseudo-Class","description":"A pseudo-class for matching focused elements that indicate that focus to a user","specification":"https://www.w3.org/TR/selectors-4/#focus-visible-pseudo","stage":2,"browser_support":{"chrome":"86","and_chr":"86","edge":"86","firefox":"85","and_ff":"85","opera":"72","op_mob":"61","samsung":"14.0","android":"86"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible"},"example":":focus:not(:focus-visible) {\\n outline: 0;\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/WICG/focus-visible"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-visible"}],"vendors_implementations":2},{"id":"focus-within-pseudo-class","title":"`:focus-within` Focus Container Pseudo-Class","description":"A pseudo-class for matching elements that are either focused or that have focused descendants","specification":"https://www.w3.org/TR/selectors-4/#focus-within-pseudo","stage":2,"browser_support":{"edge":"79","firefox":"52","chrome":"60","safari":"10.1","opera":"47","ios_saf":"10.3","android":"60","op_mob":"64","and_chr":"60","and_ff":"52","samsung":"8.2","and_qq":"10.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-within"},"example":"form:focus-within {\\n background: rgba(0, 0, 0, 0.3);\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/jsxtools/focus-within"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-within"}],"vendors_implementations":3},{"id":"font-format-keywords","title":"Font `format()` Keywords","description":"A syntax for specifying font format as a keyword in `@font-face` rule’s `format()` function","specification":"https://www.w3.org/TR/css-fonts-4/#font-format-values","stage":1,"browser_support":{"safari":"4","ios_saf":"5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face"},"example":"@font-face {\\n src: url(file.woff2) format(woff2);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/valtlai/postcss-font-format-keywords"}],"vendors_implementations":1},{"id":"font-variant-property","title":"`font-variant` Property","description":"A property for defining the usage of alternate glyphs in a font","specification":"https://www.w3.org/TR/css-fonts-3/#propdef-font-variant","stage":4,"browser_support":{"firefox":"34","safari":"9.1","ios_saf":"9.3","and_ff":"34","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant"},"example":"h2 {\\n font-variant: small-caps;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-font-variant"}],"vendors_implementations":2},{"id":"gap-properties","title":"Gap Properties","description":"Properties for defining gutters within a layout","specification":"https://www.w3.org/TR/css-grid-1/#gutters","stage":3,"browser_support":{"chrome":"66","and_chr":"66","edge":"16","firefox":"61","and_ff":"61","opera":"53","op_mob":"47","safari":"12","ios_saf":"12","samsung":"9.0","android":"66"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/gap"},"example":".grid-1 {\\n gap: 20px;\\n}\\n\\n.grid-2 {\\n column-gap: 40px;\\n row-gap: 20px;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gap-properties"}],"vendors_implementations":3},{"id":"gray-function","title":"`gray()` Function","description":"A function for specifying fully desaturated colors","specification":"https://www.w3.org/TR/css-color-4/#funcdef-gray","stage":-1,"browser_support":{},"example":"p {\\n color: gray(50);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-color-gray"}],"vendors_implementations":0},{"id":"grid-layout","title":"Grid Layout","description":"A syntax for using a grid concept to lay out content","specification":"https://www.w3.org/TR/css-grid-1/","stage":3,"browser_support":{"edge":"16","firefox":"54","chrome":"58","safari":"10.1","opera":"44","ios_saf":"10.3","android":"58","op_mob":"64","and_chr":"58","and_ff":"54","and_uc":"12.12","samsung":"6.2","and_qq":"10.4","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/grid"},"example":"section {\\n display: grid;\\n grid-template-columns: 100px 100px 100px;\\n grid-gap: 10px;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/autoprefixer"}],"vendors_implementations":3},{"id":"has-pseudo-class","title":"`:has()` Relational Pseudo-Class","description":"A pseudo-class for matching ancestor and sibling elements","specification":"https://www.w3.org/TR/selectors-4/#has-pseudo","stage":2,"browser_support":{"safari":"15.4","ios_saf":"15.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:has"},"example":"a:has(> img) {\\n display: block;\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo"},{"type":"Experimental Library","link":"https://github.com/csstools/postcss-plugins/tree/main/experimental/css-has-pseudo"}],"vendors_implementations":1},{"id":"hexadecimal-alpha-notation","title":"Hexadecimal Alpha Notation","description":"A 4 & 8 character hex color notation for specifying the opacity level","specification":"https://www.w3.org/TR/css-color-4/#hex-notation","stage":2,"browser_support":{"edge":"79","firefox":"49","chrome":"62","safari":"10","opera":"52","ios_saf":"10","android":"62","op_mob":"64","and_chr":"62","and_ff":"49","samsung":"8.2"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Syntax_2"},"example":"section {\\n background-color: #f3f3f3f3;\\n color: #0003;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-hex-alpha"}],"vendors_implementations":3},{"id":"hwb-function","title":"`hwb()` Function","description":"A function for specifying colors by hue and then a degree of whiteness and blackness to mix into it","specification":"https://www.w3.org/TR/css-color-4/#funcdef-hwb","stage":2,"browser_support":{"firefox":"96","and_ff":"96","safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hwb()"},"example":"p {\\n color: hwb(120 44% 50%);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function"}],"vendors_implementations":2},{"id":"ic-unit","title":"`ic` length unit","description":"Equal to the used advance measure of the \\"水\\" (CJK water ideograph, U+6C34) glyph found in the font used to render it","specification":"https://www.w3.org/TR/css-values-4/#ic","stage":2,"browser_support":{"firefox":"97","and_ff":"97","safari":"15.4","ios_saf":"15.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_and_Units#dimensions"},"example":"p {\\n text-indent: 2ic;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit"}],"vendors_implementations":2},{"id":"image-set-function","title":"`image-set()` Function","description":"A function for specifying image sources based on the user’s resolution","specification":"https://www.w3.org/TR/css-images-4/#image-set-notation","stage":2,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/image-set"},"example":"p {\\n background-image: image-set(\\n \\"foo.png\\" 1x,\\n \\"foo-2x.png\\" 2x,\\n \\"foo-print.png\\" 600dpi\\n );\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-image-set-function"}],"vendors_implementations":0},{"id":"in-out-of-range-pseudo-class","title":"`:in-range` and `:out-of-range` Pseudo-Classes","description":"A pseudo-class for matching elements that have range limitations","specification":"https://www.w3.org/TR/selectors-4/#range-pseudos","stage":2,"browser_support":{"edge":"79","firefox":"50","chrome":"53","safari":"10.1","opera":"40","ios_saf":"10.3","android":"53","op_mob":"64","and_chr":"53","and_ff":"50","and_uc":"12.12","samsung":"5","and_qq":"10.4","baidu":"7.12"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:in-range"},"example":"input:in-range {\\n background-color: rgba(0, 255, 0, 0.25);\\n}\\ninput:out-of-range {\\n background-color: rgba(255, 0, 0, 0.25);\\n border: 2px solid red;\\n}","vendors_implementations":3},{"id":"is-pseudo-class","title":"`:is()` Matches-Any Pseudo-Class","description":"A pseudo-class for matching elements in a selector list","specification":"https://www.w3.org/TR/selectors-4/#matches-pseudo","stage":2,"browser_support":{"edge":"88","firefox":"78","chrome":"88","safari":"14","opera":"75","ios_saf":"14","android":"88","op_mob":"64","and_chr":"88","and_ff":"78","samsung":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:is"},"example":"p:is(:first-child, .special) {\\n margin-top: 1em;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-is-pseudo-class"}],"vendors_implementations":3},{"id":"lab-function","title":"`lab()` Function","description":"A function for specifying colors expressed in the CIE Lab color space","specification":"https://www.w3.org/TR/css-color-4/#funcdef-lab","stage":2,"browser_support":{"safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lab()"},"example":"body {\\n color: lab(80% 50 20);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function"}],"vendors_implementations":1},{"id":"lch-function","title":"`lch()` Function","description":"A function for specifying colors expressed in the CIE Lab color space with chroma and hue","specification":"https://www.w3.org/TR/css-color-4/#funcdef-lch","stage":2,"browser_support":{"safari":"15","ios_saf":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lch()"},"example":"body {\\n color: lch(53% 105 40);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function"}],"vendors_implementations":1},{"id":"logical-properties-and-values","title":"Logical Properties and Values","description":"Flow-relative (left-to-right or right-to-left) properties and values","specification":"https://www.w3.org/TR/css-logical-1/","stage":2,"browser_support":{"edge":"89","firefox":"66","chrome":"89","safari":"15","opera":"76","ios_saf":"15","android":"89","op_mob":"64","and_chr":"89","and_ff":"66","samsung":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties"},"example":"span:first-child {\\n float: inline-start;\\n margin-inline-start: 10px;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical"}],"vendors_implementations":3},{"id":"matches-pseudo-class","title":"`:matches()` Matches-Any Pseudo-Class","description":"A pseudo-class for matching elements in a selector list","specification":"https://www.w3.org/TR/selectors-4/#selectordef-matches","stage":-1,"browser_support":{"edge":"88","firefox":"78","chrome":"88","safari":"14","opera":"75","ios_saf":"14","android":"88","op_mob":"64","and_chr":"88","and_ff":"78","samsung":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:is"},"example":"p:matches(:first-child, .special) {\\n margin-top: 1em;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-selector-matches"}],"vendors_implementations":3},{"id":"media-query-ranges","title":"Media Query Ranges","description":"A syntax for defining media query ranges using ordinary comparison operators","specification":"https://www.w3.org/TR/mediaqueries-4/#range-context","stage":3,"browser_support":{},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#Syntax_improvements_in_Level_4"},"example":"@media (width < 480px) {}\\n\\n@media (480px <= width < 768px) {}\\n\\n@media (width >= 768px) {}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-media-minmax"}],"vendors_implementations":0},{"id":"nesting-rules","title":"Nesting Rules","description":"A syntax for nesting relative rules within rules","specification":"https://www.w3.org/TR/css-nesting-1/","stage":1,"browser_support":{},"example":"article {\\n & p {\\n color: #333;\\n }\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting"}],"vendors_implementations":0},{"id":"not-pseudo-class","title":"`:not()` Negation List Pseudo-Class","description":"A pseudo-class for ignoring elements in a selector list","specification":"https://www.w3.org/TR/selectors-4/#negation-pseudo","stage":2,"browser_support":{"edge":"88","firefox":"84","chrome":"88","safari":"9","opera":"75","ios_saf":"9","android":"88","op_mob":"64","and_chr":"88","and_ff":"84","samsung":"15"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:not"},"example":"p:not(:first-child, .special) {\\n margin-top: 1em;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/postcss/postcss-selector-not"}],"vendors_implementations":3},{"id":"oklab-function","title":"`oklab` and `oklch` color functions","description":"Functions that allow colors to be expressed in OKLab and OKLCH.","specification":"https://www.w3.org/TR/css-color-4/#specifying-oklab-oklch","stage":2,"browser_support":{},"example":"p {\\n color: oklab(72.322% -0.0465 -0.1150);\\n color: oklch(72.322% 0.12403 247.996);\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function"}],"vendors_implementations":0},{"id":"opacity-percentage","title":"Support for percentages for `opacity`","description":"Syntactic sugar to use percentages instead of a float between 0 and 1.","specification":"https://www.w3.org/TR/css-color-4/#transparency","stage":2,"browser_support":{"chrome":"78","and_chr":"78","edge":"79","firefox":"70","samsung":"12.0","android":"78"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/opacity"},"example":"img {\\n opacity: 90%;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/mrcgrtz/postcss-opacity-percentage"}],"vendors_implementations":2},{"id":"overflow-property","title":"`overflow` Shorthand Property","description":"A property for defining `overflow-x` and `overflow-y`","specification":"https://www.w3.org/TR/css-overflow-3/#propdef-overflow","stage":2,"browser_support":{"chrome":"68","and_chr":"68","edge":"79","firefox":"61","and_ff":"61","opera":"55","op_mob":"48","samsung":"10.0","android":"68"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/overflow"},"example":"html {\\n overflow: hidden auto;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-overflow-shorthand"}],"vendors_implementations":2},{"id":"overflow-wrap-property","title":"`overflow-wrap` Property","description":"A property for defining whether to insert line breaks within words to prevent overflowing","specification":"https://www.w3.org/TR/css-text-3/#overflow-wrap-property","stage":2,"browser_support":{"edge":"18","firefox":"49","chrome":"23","safari":"6.1","opera":"12.1","ios_saf":"7","android":"4.4","bb":"10","op_mob":"64","and_chr":"23","and_ff":"49","and_uc":"12.12","samsung":"4","and_qq":"10.4","baidu":"7.12"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap"},"example":"p {\\n overflow-wrap: break-word;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/mattdimu/postcss-replace-overflow-wrap"}],"vendors_implementations":3},{"id":"overscroll-behavior-property","title":"`overscroll-behavior` Property","description":"Properties for controlling when the scroll position of a scroll container reaches the edge of a scrollport","specification":"https://www.w3.org/TR/css-overscroll-1/","stage":1,"browser_support":{"edge":"79","firefox":"59","chrome":"65","opera":"52","android":"65","op_mob":"64","and_chr":"65","and_ff":"59","samsung":"8.2","and_qq":"10.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior"},"example":".messages {\\n height: 220px;\\n overflow: auto;\\n overscroll-behavior-y: contain;\\n}\\n\\nbody {\\n margin: 0;\\n overscroll-behavior: none;\\n}","vendors_implementations":2},{"id":"place-properties","title":"Place Properties","description":"Properties for defining alignment within a layout","specification":"https://www.w3.org/TR/css-align-3/#place-items-property","stage":2,"browser_support":{"chrome":"59","and_chr":"59","edge":"79","firefox":"53","and_ff":"53","opera":"46","op_mob":"43","safari":"11","ios_saf":"11","samsung":"7.0","android":"59"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/place-content"},"example":".example {\\n place-content: flex-end;\\n place-items: center / space-between;\\n place-self: flex-start / center;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-place"}],"vendors_implementations":3},{"id":"prefers-color-scheme-query","title":"`prefers-color-scheme` Media Query","description":"A media query to detect if the user has requested the system use a light or dark color theme","specification":"https://www.w3.org/TR/mediaqueries-5/#prefers-color-scheme","stage":2,"browser_support":{"edge":"79","firefox":"67","chrome":"76","safari":"12.1","opera":"62","ios_saf":"13","android":"76","op_mob":"64","and_chr":"76","and_ff":"67","samsung":"12"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme"},"example":"body {\\n background-color: white;\\n color: black;\\n}\\n\\n@media (prefers-color-scheme: dark) {\\n body {\\n background-color: black;\\n color: white;\\n }\\n}","polyfills":[{"type":"JavaScript Library","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-prefers-color-scheme"},{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/css-prefers-color-scheme"}],"vendors_implementations":3},{"id":"prefers-reduced-motion-query","title":"`prefers-reduced-motion` Media Query","description":"A media query to detect if the user has requested less animation and general motion on the page","specification":"https://www.w3.org/TR/mediaqueries-5/#prefers-reduced-motion","stage":2,"browser_support":{"edge":"79","firefox":"63","chrome":"74","safari":"10.1","opera":"64","ios_saf":"10.3","android":"74","op_mob":"64","and_chr":"74","and_ff":"63","samsung":"11.1"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion"},"example":".animation {\\n animation: vibrate 0.3s linear infinite both; \\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n .animation {\\n animation: none;\\n }\\n}","vendors_implementations":3},{"id":"read-only-write-pseudo-class","title":"`:read-only` and `:read-write` selectors","description":"Pseudo-classes to match elements which are considered user-alterable","specification":"https://www.w3.org/TR/selectors-4/#rw-pseudos","stage":2,"browser_support":{"edge":"13","firefox":"78","chrome":"36","safari":"9","opera":"23","ios_saf":"9","android":"36","bb":"10","op_mob":"64","and_chr":"36","and_ff":"78","and_uc":"12.12","samsung":"4","and_qq":"10.4","baidu":"7.12"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:read-only"},"example":"input:read-only {\\n background-color: #ccc;\\n}","vendors_implementations":3},{"id":"rebeccapurple-color","title":"`rebeccapurple` Color","description":"A particularly lovely shade of purple in memory of Rebecca Alison Meyer","specification":"https://www.w3.org/TR/css-color-4/#valdef-color-rebeccapurple","stage":2,"browser_support":{"edge":"12","firefox":"33","chrome":"38","safari":"7","opera":"25","ios_saf":"8","android":"4.4","op_mob":"64","and_chr":"38","and_ff":"33","and_uc":"12.12","samsung":"4","and_qq":"10.4","baidu":"7.12","kaios":"2.5"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value"},"example":"html {\\n color: rebeccapurple;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-rebeccapurple"}],"vendors_implementations":3},{"id":"system-ui-font-family","title":"`system-ui` Font Family","description":"A generic font used to match the user’s interface","specification":"https://www.w3.org/TR/css-fonts-4/#system-ui-def","stage":2,"browser_support":{"edge":"79","firefox":"92","chrome":"56","safari":"11","opera":"43","ios_saf":"11","android":"56","op_mob":"64","and_chr":"56","and_ff":"92","and_uc":"12.12","samsung":"6.2","and_qq":"10.4"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#Syntax"},"example":"body {\\n font-family: system-ui;\\n}","polyfills":[{"type":"PostCSS Plugin","link":"https://github.com/JLHwung/postcss-font-family-system-ui"}],"vendors_implementations":3},{"id":"unset-value","title":"`unset` Keyword","description":"The unset CSS keyword resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.","specification":"https://www.w3.org/TR/css-cascade-4/#inherit-initial","stage":3,"browser_support":{"chrome":"41","and_chr":"41","edge":"13","firefox":"27","and_ff":"27","opera":"28","op_mob":"28","safari":"9.1","ios_saf":"9.3","samsung":"4.0","android":"41"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/unset"},"example":"div {\\n border-color: unset;\\n color: unset;\\n}","vendors_implementations":3},{"id":"when-else-rules","title":"When/Else Rules","description":"At-rules for specifying media queries and support queries in a single grammar","specification":"https://www.w3.org/TR/2021/WD-css-conditional-5-20211221/","stage":2,"browser_support":{},"example":"@when media(width >= 640px) and (supports(display: flex) or supports(display: grid)) {\\n /* A */\\n} @else media(pointer: coarse) {\\n /* B */\\n} @else {\\n /* C */\\n}","vendors_implementations":0},{"id":"where-pseudo-class","title":"`:where()` Zero-Specificity Pseudo-Class","description":"A pseudo-class for matching elements in a selector list without contributing specificity","specification":"https://www.w3.org/TR/selectors-4/#where-pseudo","stage":2,"browser_support":{"chrome":"88","and_chr":"88","edge":"88","firefox":"82","and_ff":"82","opera":"74","op_mob":"63","safari":"14","ios_saf":"14","samsung":"15.0","android":"88"},"docs":{"mdn":"https://developer.mozilla.org/en-US/docs/Web/CSS/:where"},"example":"a:where(:not(:hover)) {\\n text-decoration: none;\\n}","vendors_implementations":3}]')},1859:_=>{"use strict";_.exports=JSON.parse('[{"prop":"animation","initial":"${animation-name} ${animation-duration} ${animation-timing-function} ${animation-delay} ${animation-iteration-count} ${animation-direction} ${animation-fill-mode} ${animation-play-state}","combined":true},{"prop":"animation-delay","initial":"0s"},{"prop":"animation-direction","initial":"normal"},{"prop":"animation-duration","initial":"0s"},{"prop":"animation-fill-mode","initial":"none"},{"prop":"animation-iteration-count","initial":"1"},{"prop":"animation-name","initial":"none"},{"prop":"animation-play-state","initial":"running"},{"prop":"animation-timing-function","initial":"ease"},{"prop":"backface-visibility","initial":"visible","basic":true},{"prop":"background","initial":"${background-color} ${background-image} ${background-repeat} ${background-position} / ${background-size} ${background-origin} ${background-clip} ${background-attachment}","combined":true},{"prop":"background-attachment","initial":"scroll"},{"prop":"background-clip","initial":"border-box"},{"prop":"background-color","initial":"transparent"},{"prop":"background-image","initial":"none"},{"prop":"background-origin","initial":"padding-box"},{"prop":"background-position","initial":"0 0"},{"prop":"background-position-x","initial":"0"},{"prop":"background-position-y","initial":"0"},{"prop":"background-repeat","initial":"repeat"},{"prop":"background-size","initial":"auto auto"},{"prop":"border","initial":"${border-width} ${border-style} ${border-color}","combined":true},{"prop":"border-style","initial":"none"},{"prop":"border-width","initial":"medium"},{"prop":"border-color","initial":"currentColor"},{"prop":"border-bottom","initial":"0"},{"prop":"border-bottom-color","initial":"currentColor"},{"prop":"border-bottom-left-radius","initial":"0"},{"prop":"border-bottom-right-radius","initial":"0"},{"prop":"border-bottom-style","initial":"none"},{"prop":"border-bottom-width","initial":"medium"},{"prop":"border-collapse","initial":"separate","basic":true,"inherited":true},{"prop":"border-image","initial":"none","basic":true},{"prop":"border-left","initial":"0"},{"prop":"border-left-color","initial":"currentColor"},{"prop":"border-left-style","initial":"none"},{"prop":"border-left-width","initial":"medium"},{"prop":"border-radius","initial":"0","basic":true},{"prop":"border-right","initial":"0"},{"prop":"border-right-color","initial":"currentColor"},{"prop":"border-right-style","initial":"none"},{"prop":"border-right-width","initial":"medium"},{"prop":"border-spacing","initial":"0","basic":true,"inherited":true},{"prop":"border-top","initial":"0"},{"prop":"border-top-color","initial":"currentColor"},{"prop":"border-top-left-radius","initial":"0"},{"prop":"border-top-right-radius","initial":"0"},{"prop":"border-top-style","initial":"none"},{"prop":"border-top-width","initial":"medium"},{"prop":"bottom","initial":"auto","basic":true},{"prop":"box-shadow","initial":"none","basic":true},{"prop":"box-sizing","initial":"content-box","basic":true},{"prop":"caption-side","initial":"top","basic":true,"inherited":true},{"prop":"clear","initial":"none","basic":true},{"prop":"clip","initial":"auto","basic":true},{"prop":"color","initial":"#000","basic":true},{"prop":"columns","initial":"auto","basic":true},{"prop":"column-count","initial":"auto","basic":true},{"prop":"column-fill","initial":"balance","basic":true},{"prop":"column-gap","initial":"normal","basic":true},{"prop":"column-rule","initial":"${column-rule-width} ${column-rule-style} ${column-rule-color}","combined":true},{"prop":"column-rule-color","initial":"currentColor"},{"prop":"column-rule-style","initial":"none"},{"prop":"column-rule-width","initial":"medium"},{"prop":"column-span","initial":"1","basic":true},{"prop":"column-width","initial":"auto","basic":true},{"prop":"content","initial":"normal","basic":true},{"prop":"counter-increment","initial":"none","basic":true},{"prop":"counter-reset","initial":"none","basic":true},{"prop":"cursor","initial":"auto","basic":true,"inherited":true},{"prop":"direction","initial":"ltr","basic":true,"inherited":true},{"prop":"display","initial":"inline","basic":true},{"prop":"empty-cells","initial":"show","basic":true,"inherited":true},{"prop":"float","initial":"none","basic":true},{"prop":"font","contains":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"basic":true,"inherited":true},{"prop":"font-family","initial":"serif"},{"prop":"font-size","initial":"medium"},{"prop":"font-style","initial":"normal"},{"prop":"font-variant","initial":"normal"},{"prop":"font-weight","initial":"normal"},{"prop":"font-stretch","initial":"normal"},{"prop":"line-height","initial":"normal","inherited":true},{"prop":"height","initial":"auto","basic":true},{"prop":"hyphens","initial":"none","basic":true,"inherited":true},{"prop":"left","initial":"auto","basic":true},{"prop":"letter-spacing","initial":"normal","basic":true,"inherited":true},{"prop":"list-style","initial":"${list-style-type} ${list-style-position} ${list-style-image}","combined":true,"inherited":true},{"prop":"list-style-image","initial":"none"},{"prop":"list-style-position","initial":"outside"},{"prop":"list-style-type","initial":"disc"},{"prop":"margin","initial":"0","basic":true},{"prop":"margin-bottom","initial":"0"},{"prop":"margin-left","initial":"0"},{"prop":"margin-right","initial":"0"},{"prop":"margin-top","initial":"0"},{"prop":"max-height","initial":"none","basic":true},{"prop":"max-width","initial":"none","basic":true},{"prop":"min-height","initial":"0","basic":true},{"prop":"min-width","initial":"0","basic":true},{"prop":"opacity","initial":"1","basic":true},{"prop":"orphans","initial":"2","basic":true},{"prop":"outline","initial":"${outline-width} ${outline-style} ${outline-color}","combined":true},{"prop":"outline-color","initial":"invert"},{"prop":"outline-style","initial":"none"},{"prop":"outline-width","initial":"medium"},{"prop":"overflow","initial":"visible","basic":true},{"prop":"overflow-x","initial":"visible","basic":true},{"prop":"overflow-y","initial":"visible","basic":true},{"prop":"padding","initial":"0","basic":true},{"prop":"padding-bottom","initial":"0"},{"prop":"padding-left","initial":"0"},{"prop":"padding-right","initial":"0"},{"prop":"padding-top","initial":"0"},{"prop":"page-break-after","initial":"auto","basic":true},{"prop":"page-break-before","initial":"auto","basic":true},{"prop":"page-break-inside","initial":"auto","basic":true},{"prop":"perspective","initial":"none","basic":true},{"prop":"perspective-origin","initial":"50% 50%","basic":true},{"prop":"position","initial":"static","basic":true},{"prop":"quotes","initial":"“ ” ‘ ’"},{"prop":"right","initial":"auto","basic":true},{"prop":"tab-size","initial":"8","basic":true,"inherited":true},{"prop":"table-layout","initial":"auto","basic":true},{"prop":"text-align","initial":"left","basic":true,"inherited":true},{"prop":"text-align-last","initial":"auto","basic":true,"inherited":true},{"prop":"text-decoration","initial":"${text-decoration-line}","combined":true},{"prop":"text-decoration-color","initial":"inherited"},{"prop":"text-decoration-color","initial":"currentColor"},{"prop":"text-decoration-line","initial":"none"},{"prop":"text-decoration-style","initial":"solid"},{"prop":"text-indent","initial":"0","basic":true,"inherited":true},{"prop":"text-shadow","initial":"none","basic":true,"inherited":true},{"prop":"text-transform","initial":"none","basic":true,"inherited":true},{"prop":"top","initial":"auto","basic":true},{"prop":"transform","initial":"none","basic":true},{"prop":"transform-origin","initial":"50% 50% 0","basic":true},{"prop":"transform-style","initial":"flat","basic":true},{"prop":"transition","initial":"${transition-property} ${transition-duration} ${transition-timing-function} ${transition-delay}","combined":true},{"prop":"transition-delay","initial":"0s"},{"prop":"transition-duration","initial":"0s"},{"prop":"transition-property","initial":"none"},{"prop":"transition-timing-function","initial":"ease"},{"prop":"unicode-bidi","initial":"normal","basic":true},{"prop":"vertical-align","initial":"baseline","basic":true},{"prop":"visibility","initial":"visible","basic":true,"inherited":true},{"prop":"white-space","initial":"normal","basic":true,"inherited":true},{"prop":"widows","initial":"2","basic":true,"inherited":true},{"prop":"width","initial":"auto","basic":true},{"prop":"word-spacing","initial":"normal","basic":true,"inherited":true},{"prop":"z-index","initial":"auto","basic":true}]')}};var X={};function __nccwpck_require__(ee){var te=X[ee];if(te!==undefined){return te.exports}var re=X[ee]={exports:{}};var se=true;try{_[ee].call(re.exports,re,re.exports,__nccwpck_require__);se=false}finally{if(se)delete X[ee]}return re.exports}(()=>{__nccwpck_require__.o=(_,X)=>Object.prototype.hasOwnProperty.call(_,X)})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var ee=__nccwpck_require__(8668);module.exports=ee})(); \ No newline at end of file diff --git a/packages/next/src/compiled/postcss-safe-parser/safe-parse.js b/packages/next/src/compiled/postcss-safe-parser/safe-parse.js index a82b760157dd..7fac47f0d0d8 100644 --- a/packages/next/src/compiled/postcss-safe-parser/safe-parse.js +++ b/packages/next/src/compiled/postcss-safe-parser/safe-parse.js @@ -1 +1 @@ -(()=>{var e={701:e=>{let t=process||{},r=t.argv||[],s=t.env||{};let i=!(!!s.NO_COLOR||r.includes("--no-color"))&&(!!s.FORCE_COLOR||r.includes("--color")||t.platform==="win32"||(t.stdout||{}).isTTY&&s.TERM!=="dumb"||!!s.CI);let formatter=(e,t,r=e)=>s=>{let i=""+s,n=i.indexOf(t,e.length);return~n?e+replaceClose(i,t,r,n)+t:e+i+t};let replaceClose=(e,t,r,s)=>{let i="",n=0;do{i+=e.substring(n,s)+r;n=s+t.length;s=e.indexOf(t,n)}while(~s);return i+e.substring(n)};let createColors=(e=i)=>{let t=e?formatter:()=>String;return{isColorSupported:e,reset:t("",""),bold:t("","",""),dim:t("","",""),italic:t("",""),underline:t("",""),inverse:t("",""),hidden:t("",""),strikethrough:t("",""),black:t("",""),red:t("",""),green:t("",""),yellow:t("",""),blue:t("",""),magenta:t("",""),cyan:t("",""),white:t("",""),gray:t("",""),bgBlack:t("",""),bgRed:t("",""),bgGreen:t("",""),bgYellow:t("",""),bgBlue:t("",""),bgMagenta:t("",""),bgCyan:t("",""),bgWhite:t("",""),blackBright:t("",""),redBright:t("",""),greenBright:t("",""),yellowBright:t("",""),blueBright:t("",""),magentaBright:t("",""),cyanBright:t("",""),whiteBright:t("",""),bgBlackBright:t("",""),bgRedBright:t("",""),bgGreenBright:t("",""),bgYellowBright:t("",""),bgBlueBright:t("",""),bgMagentaBright:t("",""),bgCyanBright:t("",""),bgWhiteBright:t("","")}};e.exports=createColors();e.exports.createColors=createColors},534:(e,t,r)=>{let{Input:s}=r(977);let i=r(702);e.exports=function safeParse(e,t){let r=new s(e,t);let n=new i(r);n.parse();return n.root}},702:(e,t,r)=>{let s=r(970);let i=r(865);let n=r(38);class SafeParser extends n{createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:true})}comment(e){let t=new i;this.init(t,e[2]);let r=this.input.fromOffset(e[3])||this.input.fromOffset(this.input.css.length-1);t.source.end={offset:e[3],line:r.line,column:r.col};let s=e[1].slice(2);if(s.slice(-2)==="*/")s=s.slice(0,-2);if(/^\s*$/.test(s)){t.text="";t.raws.left=s;t.raws.right=""}else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}decl(e){if(e.length>1&&e.some((e=>e[0]==="word"))){super.decl(e)}}unclosedBracket(){}unknownWord(e){this.spaces+=e.map((e=>e[1])).join("")}unexpectedClose(){this.current.raws.after+="}"}doubleColon(){}unnamedAtrule(e){e.name=""}precheckMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r,s;for(r=t-1;r>=0;r--){if(e[r][0]==="word")break}if(r===0)return;for(s=r-1;s>=0;s--){if(e[s][0]!=="space"){s+=1;break}}let i=e.slice(r);let n=e.slice(s,r);e.splice(s,e.length-s);this.spaces=n.map((e=>e[1])).join("");this.decl(i)}checkMissedSemicolon(){}endFile(){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;while(this.current.parent){this.current=this.current.parent;this.current.raws.after=""}}}e.exports=SafeParser},60:(e,t,r)=>{"use strict";let s=r(911);class AtRule extends s{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=AtRule;AtRule.default=AtRule;s.registerAtRule(AtRule)},865:(e,t,r)=>{"use strict";let s=r(490);class Comment extends s{constructor(e){super(e);this.type="comment"}}e.exports=Comment;Comment.default=Comment},911:(e,t,r)=>{"use strict";let{isClean:s,my:i}=r(522);let n=r(258);let o=r(865);let l=r(490);let a,f,h,u;function cleanSource(e){return e.map((e=>{if(e.nodes)e.nodes=cleanSource(e.nodes);delete e.source;return e}))}function markDirtyUp(e){e[s]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){markDirtyUp(t)}}}class Container extends l{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let r,s;while(this.indexes[t]e[t](...r.map((e=>{if(typeof e==="function"){return(t,r)=>e(t.toProxy(),r)}else{return e}})))}else if(t==="every"||t==="some"){return r=>e[t](((e,...t)=>r(e.toProxy(),...t)))}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map((e=>e.toProxy()))}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let r=this.index(e);let s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of s)this.proxyOf.nodes.splice(r+1,0,e);let i;for(let e in this.indexes){i=this.indexes[e];if(r{if(!e[i])Container.rebuild(e);e=e.proxyOf;if(e.parent)e.parent.removeChild(e);if(e[s])markDirtyUp(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this.proxyOf;return e}));return r}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}removeChild(e){e=this.index(e);this.proxyOf.nodes[e].parent=undefined;this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes){t=this.indexes[r];if(t>=e){this.indexes[r]=t-1}}this.markDirty();return this}replaceValues(e,t,r){if(!r){r=t;t={}}this.walkDecls((s=>{if(t.props&&!t.props.includes(s.prop))return;if(t.fast&&!s.value.includes(t.fast))return;s.value=s.value.replace(e,r)}));this.markDirty();return this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}if(s!==false&&t.walk){s=t.walk(e)}return s}))}walkAtRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="atrule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="atrule"&&e.test(r.name)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="atrule"&&r.name===e){return t(r,s)}}))}walkComments(e){return this.walk(((t,r)=>{if(t.type==="comment"){return e(t,r)}}))}walkDecls(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="decl"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="decl"&&e.test(r.prop)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="decl"&&r.prop===e){return t(r,s)}}))}walkRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="rule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="rule"&&e.test(r.selector)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="rule"&&r.selector===e){return t(r,s)}}))}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}Container.registerParse=e=>{a=e};Container.registerRule=e=>{f=e};Container.registerAtRule=e=>{h=e};Container.registerRoot=e=>{u=e};e.exports=Container;Container.default=Container;Container.rebuild=e=>{if(e.type==="atrule"){Object.setPrototypeOf(e,h.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,f.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,n.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,o.prototype)}else if(e.type==="root"){Object.setPrototypeOf(e,u.prototype)}e[i]=true;if(e.nodes){e.nodes.forEach((e=>{Container.rebuild(e)}))}}},430:(e,t,r)=>{"use strict";let s=r(701);let i=r(364);class CssSyntaxError extends Error{constructor(e,t,r,s,i,n){super(e);this.name="CssSyntaxError";this.reason=e;if(i){this.file=i}if(s){this.source=s}if(n){this.plugin=n}if(typeof t!=="undefined"&&typeof r!=="undefined"){if(typeof t==="number"){this.line=t;this.column=r}else{this.line=t.line;this.column=t.column;this.endLine=r.line;this.endColumn=r.column}}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=s.isColorSupported;if(i){if(e)t=i(t)}let r=t.split(/\r?\n/);let n=Math.max(this.line-3,0);let o=Math.min(this.line+2,r.length);let l=String(o).length;let a,f;if(e){let{bold:e,gray:t,red:r}=s.createColors(true);a=t=>e(r(t));f=e=>t(e)}else{a=f=e=>e}return r.slice(n,o).map(((e,t)=>{let r=n+1+t;let s=" "+(" "+r).slice(-l)+" | ";if(r===this.line){let t=f(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+f(s)+e+"\n "+t+a("^")}return" "+f(s)+e})).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=CssSyntaxError;CssSyntaxError.default=CssSyntaxError},258:(e,t,r)=>{"use strict";let s=r(490);class Declaration extends s{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=Declaration;Declaration.default=Declaration},726:e=>{"use strict";let t={comma(e){return t.split(e,[","],true)},space(e){let r=[" ","\n","\t"];return t.split(e,r)},split(e,t,r){let s=[];let i="";let n=false;let o=0;let l=false;let a="";let f=false;for(let r of e){if(f){f=false}else if(r==="\\"){f=true}else if(l){if(r===a){l=false}}else if(r==='"'||r==="'"){l=true;a=r}else if(r==="("){o+=1}else if(r===")"){if(o>0)o-=1}else if(o===0){if(t.includes(r))n=true}if(n){if(i!=="")s.push(i.trim());i="";n=false}else{i+=r}}if(r||i!=="")s.push(i.trim());return s}};e.exports=t;t.default=t},490:(e,t,r)=>{"use strict";let{isClean:s,my:i}=r(522);let n=r(430);let o=r(943);let l=r(34);function cloneNode(e,t){let r=new e.constructor;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)){continue}if(s==="proxyCache")continue;let i=e[s];let n=typeof i;if(s==="parent"&&n==="object"){if(t)r[s]=t}else if(s==="source"){r[s]=i}else if(Array.isArray(i)){r[s]=i.map((e=>cloneNode(e,r)))}else{if(n==="object"&&i!==null)i=cloneNode(i);r[s]=i}}return r}class Node{constructor(e={}){this.raws={};this[s]=false;this[i]=true;for(let t in e){if(t==="nodes"){this.nodes=[];for(let r of e[t]){if(typeof r.clone==="function"){this.append(r.clone())}else{this.append(r)}}}else{this[t]=e[t]}}}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){this.parent.insertAfter(this,e);return this}assign(e={}){for(let t in e){this[t]=e[t]}return this}before(e){this.parent.insertBefore(this,e);return this}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}clone(e={}){let t=cloneNode(this);for(let r in e){t[r]=e[r]}return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){if(t==="proxyOf"){return e}else if(t==="root"){return()=>e.root().toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text"){e.markDirty()}return true}}}markDirty(){if(this[s]){this[s]=false;let e=this;while(e=e.parent){e[s]=false}}}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index){r=this.positionInside(e.index,t)}else if(e.word){t=this.toString();let s=t.indexOf(e.word);if(s!==-1)r=this.positionInside(s,t)}return r}positionInside(e,t){let r=t||this.toString();let s=this.source.start.column;let i=this.source.start.line;for(let t=0;t{if(typeof e==="object"&&e.toJSON){return e.toJSON(null,t)}else{return e}}))}else if(typeof s==="object"&&s.toJSON){r[e]=s.toJSON(null,t)}else if(e==="source"){let n=t.get(s.input);if(n==null){n=i;t.set(s.input,i);i++}r[e]={end:s.end,inputId:n,start:s.start}}else{r[e]=s}}if(s){r.inputs=[...t.keys()].map((e=>e.toJSON()))}return r}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}toString(e=l){if(e.stringify)e=e.stringify;let t="";e(this,(e=>{t+=e}));return t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}}e.exports=Node;Node.default=Node},38:(e,t,r)=>{"use strict";let s=r(258);let i=r(970);let n=r(865);let o=r(60);let l=r(991);let a=r(202);const f={empty:true,space:true};function findLastWithPosition(e){for(let t=e.length-1;t>=0;t--){let r=e[t];let s=r[3]||r[2];if(s)return s}}class Parser{constructor(e){this.input=e;this.root=new l;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new o;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let r;let s;let i;let n=false;let l=false;let a=[];let f=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();r=e[0];if(r==="("||r==="["){f.push(r==="("?")":"]")}else if(r==="{"&&f.length>0){f.push("}")}else if(r===f[f.length-1]){f.pop()}if(f.length===0){if(r===";"){t.source.end=this.getPosition(e[2]);t.source.end.offset++;this.semicolon=true;break}else if(r==="{"){l=true;break}else if(r==="}"){if(a.length>0){i=a.length-1;s=a[i];while(s&&s[0]==="space"){s=a[--i]}if(s){t.source.end=this.getPosition(s[3]||s[2]);t.source.end.offset++}}this.end(e);break}else{a.push(e)}}else{a.push(e)}if(this.tokenizer.endOfFile()){n=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a);if(a.length){t.raws.afterName=this.spacesAndCommentsFromStart(a);this.raw(t,"params",a);if(n){e=a[a.length-1];t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(l){t.nodes=[];this.current=t}}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r=0;let s;for(let i=t-1;i>=0;i--){s=e[i];if(s[0]!=="space"){r+=1;if(r===2)break}}throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0;let r,s,i;for(let[n,o]of e.entries()){r=o;s=r[0];if(s==="("){t+=1}if(s===")"){t-=1}if(t===0&&s===":"){if(!i){this.doubleColon(r)}else if(i[0]==="word"&&i[1]==="progid"){continue}else{return n}}i=r}return false}comment(e){let t=new n;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r)){t.text="";t.raws.left=r;t.raws.right=""}else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(e,t){let r=new s;this.init(r,e[0][2]);let i=e[e.length-1];if(i[0]===";"){this.semicolon=true;e.pop()}r.source.end=this.getPosition(i[3]||i[2]||findLastWithPosition(e));r.source.end.offset++;while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);r.raws.before+=e.shift()[1]}r.source.start=this.getPosition(e[0][2]);r.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}r.prop+=e.shift()[1]}r.raws.between="";let n;while(e.length){n=e.shift();if(n[0]===":"){r.raws.between+=n[1];break}else{if(n[0]==="word"&&/\w/.test(n[1])){this.unknownWord([n])}r.raws.between+=n[1]}}if(r.prop[0]==="_"||r.prop[0]==="*"){r.raws.before+=r.prop[0];r.prop=r.prop.slice(1)}let o=[];let l;while(e.length){l=e[0][0];if(l!=="space"&&l!=="comment")break;o.push(e.shift())}this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){n=e[t];if(n[1].toLowerCase()==="!important"){r.important=true;let s=this.stringFrom(e,t);s=this.spacesFromEnd(e)+s;if(s!==" !important")r.raws.important=s;break}else if(n[1].toLowerCase()==="important"){let s=e.slice(0);let i="";for(let e=t;e>0;e--){let t=s[e][0];if(i.trim().indexOf("!")===0&&t!=="space"){break}i=s.pop()[1]+i}if(i.trim().indexOf("!")===0){r.important=true;r.raws.important=i;e=s}}if(n[0]!=="space"&&n[0]!=="comment"){break}}let a=e.some((e=>e[0]!=="space"&&e[0]!=="comment"));if(a){r.raws.between+=o.map((e=>e[1])).join("");o=[]}this.raw(r,"value",o.concat(e),t);if(r.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current.source.end.offset++;this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e);e.source={input:this.input,start:this.getPosition(t)};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}other(e){let t=false;let r=null;let s=false;let i=null;let n=[];let o=e[1].startsWith("--");let l=[];let a=e;while(a){r=a[0];l.push(a);if(r==="("||r==="["){if(!i)i=a;n.push(r==="("?")":"]")}else if(o&&s&&r==="{"){if(!i)i=a;n.push("}")}else if(n.length===0){if(r===";"){if(s){this.decl(l,o);return}else{break}}else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop());t=true;break}else if(r===":"){s=true}}else if(r===n[n.length-1]){n.pop();if(n.length===0)i=null}a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(n.length>0)this.unclosedBracket(i);if(t&&s){if(!o){while(l.length){a=l[l.length-1][0];if(a!=="space"&&a!=="comment")break;this.tokenizer.back(l.pop())}}this.decl(l,o)}else{this.unknownWord(l)}}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let i,n;let o=r.length;let l="";let a=true;let h,u;for(let e=0;ee+t[1]),"");e.raws[t]={raw:s,value:l}}e[t]=l}rule(e){e.pop();let t=new a;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t;let r="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let s=t;s{"use strict";let s=r(911);let i,n;class Root extends s{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of s){e.raws.before=t.raws.before}}}return s}removeChild(e,t){let r=this.index(e);if(!t&&r===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[r].raws.before}return super.removeChild(e)}toResult(e={}){let t=new i(new n,this,e);return t.stringify()}}Root.registerLazyResult=e=>{i=e};Root.registerProcessor=e=>{n=e};e.exports=Root;Root.default=Root;s.registerRoot(Root)},202:(e,t,r)=>{"use strict";let s=r(911);let i=r(726);class Rule extends s{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=Rule;Rule.default=Rule;s.registerRule(Rule)},943:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name;let s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(s){r+=" "}if(e.nodes){this.block(e,r+s)}else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+s+i,e)}}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let s=e.parent;let i=0;while(s&&s.type!=="root"){i+=1;s=s.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");for(let s=0;s{i=e.raws[r];if(typeof i!=="undefined")return false}))}}if(typeof i==="undefined")i=t[s];o.rawCache[s]=i;return i}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawValue(e,t){let r=e[t];let s=e.raws[t];if(s&&s.value===r){return s.raw}return r}root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}}e.exports=Stringifier;Stringifier.default=Stringifier},34:(e,t,r)=>{"use strict";let s=r(943);function stringify(e,t){let r=new s(t);r.stringify(e)}e.exports=stringify;stringify.default=stringify},522:e=>{"use strict";e.exports.isClean=Symbol("isClean");e.exports.my=Symbol("my")},364:(e,t,r)=>{"use strict";let s=r(701);let i=r(970);let n;function registerInput(e){n=e}const o={";":s.yellow,":":s.yellow,"(":s.cyan,")":s.cyan,"[":s.yellow,"]":s.yellow,"{":s.yellow,"}":s.yellow,"at-word":s.cyan,brackets:s.cyan,call:s.cyan,class:s.yellow,comment:s.gray,hash:s.magenta,string:s.green};function getTokenType([e,t],r){if(e==="word"){if(t[0]==="."){return"class"}if(t[0]==="#"){return"hash"}}if(!r.endOfFile()){let e=r.nextToken();r.back(e);if(e[0]==="brackets"||e[0]==="(")return"call"}return e}function terminalHighlight(e){let t=i(new n(e),{ignoreErrors:true});let r="";while(!t.endOfFile()){let e=t.nextToken();let s=o[getTokenType(e,t)];if(s){r+=e[1].split(/\r?\n/).map((e=>s(e))).join("\n")}else{r+=e[1]}}return r}terminalHighlight.registerInput=registerInput;e.exports=terminalHighlight},970:e=>{"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const s="\\".charCodeAt(0);const i="/".charCodeAt(0);const n="\n".charCodeAt(0);const o=" ".charCodeAt(0);const l="\f".charCodeAt(0);const a="\t".charCodeAt(0);const f="\r".charCodeAt(0);const h="[".charCodeAt(0);const u="]".charCodeAt(0);const c="(".charCodeAt(0);const p=")".charCodeAt(0);const d="{".charCodeAt(0);const m="}".charCodeAt(0);const w=";".charCodeAt(0);const g="*".charCodeAt(0);const y=":".charCodeAt(0);const b="@".charCodeAt(0);const x=/[\t\n\f\r "#'()/;[\\\]{}]/g;const k=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const C=/.[\r\n"'(/\\]/;const O=/[\da-f]/i;e.exports=function tokenizer(e,S={}){let A=e.css.valueOf();let R=S.ignoreErrors;let v,P,B,E,_;let z,D,I,T,F;let N=A.length;let j=0;let M=[];let $=[];function position(){return j}function unclosed(t){throw e.error("Unclosed "+t,j)}function endOfFile(){return $.length===0&&j>=N}function nextToken(e){if($.length)return $.pop();if(j>=N)return;let S=e?e.ignoreUnclosed:false;v=A.charCodeAt(j);switch(v){case n:case o:case a:case f:case l:{P=j;do{P+=1;v=A.charCodeAt(P)}while(v===o||v===n||v===a||v===f||v===l);F=["space",A.slice(j,P)];j=P-1;break}case h:case u:case d:case m:case y:case w:case p:{let e=String.fromCharCode(v);F=[e,e,j];break}case c:{I=M.length?M.pop()[1]:"";T=A.charCodeAt(j+1);if(I==="url"&&T!==t&&T!==r&&T!==o&&T!==n&&T!==a&&T!==l&&T!==f){P=j;do{z=false;P=A.indexOf(")",P+1);if(P===-1){if(R||S){P=j;break}else{unclosed("bracket")}}D=P;while(A.charCodeAt(D-1)===s){D-=1;z=!z}}while(z);F=["brackets",A.slice(j,P+1),j,P];j=P}else{P=A.indexOf(")",j+1);E=A.slice(j,P+1);if(P===-1||C.test(E)){F=["(","(",j]}else{F=["brackets",E,j,P];j=P}}break}case t:case r:{B=v===t?"'":'"';P=j;do{z=false;P=A.indexOf(B,P+1);if(P===-1){if(R||S){P=j+1;break}else{unclosed("string")}}D=P;while(A.charCodeAt(D-1)===s){D-=1;z=!z}}while(z);F=["string",A.slice(j,P+1),j,P];j=P;break}case b:{x.lastIndex=j+1;x.test(A);if(x.lastIndex===0){P=A.length-1}else{P=x.lastIndex-2}F=["at-word",A.slice(j,P+1),j,P];j=P;break}case s:{P=j;_=true;while(A.charCodeAt(P+1)===s){P+=1;_=!_}v=A.charCodeAt(P+1);if(_&&v!==i&&v!==o&&v!==n&&v!==a&&v!==f&&v!==l){P+=1;if(O.test(A.charAt(P))){while(O.test(A.charAt(P+1))){P+=1}if(A.charCodeAt(P+1)===o){P+=1}}}F=["word",A.slice(j,P+1),j,P];j=P;break}default:{if(v===i&&A.charCodeAt(j+1)===g){P=A.indexOf("*/",j+2)+1;if(P===0){if(R||S){P=A.length}else{unclosed("comment")}}F=["comment",A.slice(j,P+1),j,P];j=P}else{k.lastIndex=j+1;k.test(A);if(k.lastIndex===0){P=A.length-1}else{P=k.lastIndex-2}F=["word",A.slice(j,P+1),j,P];M.push(F);j=P}break}}j++;return F}function back(e){$.push(e)}return{back:back,endOfFile:endOfFile,nextToken:nextToken,position:position}}},977:e=>{"use strict";e.exports=require("postcss")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var i=t[r]={exports:{}};var n=true;try{e[r](i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(534);module.exports=r})(); \ No newline at end of file +(()=>{var e={701:e=>{let t=process||{},r=t.argv||[],s=t.env||{};let i=!(!!s.NO_COLOR||r.includes("--no-color"))&&(!!s.FORCE_COLOR||r.includes("--color")||t.platform==="win32"||(t.stdout||{}).isTTY&&s.TERM!=="dumb"||!!s.CI);let formatter=(e,t,r=e)=>s=>{let i=""+s,n=i.indexOf(t,e.length);return~n?e+replaceClose(i,t,r,n)+t:e+i+t};let replaceClose=(e,t,r,s)=>{let i="",n=0;do{i+=e.substring(n,s)+r;n=s+t.length;s=e.indexOf(t,n)}while(~s);return i+e.substring(n)};let createColors=(e=i)=>{let t=e?formatter:()=>String;return{isColorSupported:e,reset:t("",""),bold:t("","",""),dim:t("","",""),italic:t("",""),underline:t("",""),inverse:t("",""),hidden:t("",""),strikethrough:t("",""),black:t("",""),red:t("",""),green:t("",""),yellow:t("",""),blue:t("",""),magenta:t("",""),cyan:t("",""),white:t("",""),gray:t("",""),bgBlack:t("",""),bgRed:t("",""),bgGreen:t("",""),bgYellow:t("",""),bgBlue:t("",""),bgMagenta:t("",""),bgCyan:t("",""),bgWhite:t("",""),blackBright:t("",""),redBright:t("",""),greenBright:t("",""),yellowBright:t("",""),blueBright:t("",""),magentaBright:t("",""),cyanBright:t("",""),whiteBright:t("",""),bgBlackBright:t("",""),bgRedBright:t("",""),bgGreenBright:t("",""),bgYellowBright:t("",""),bgBlueBright:t("",""),bgMagentaBright:t("",""),bgCyanBright:t("",""),bgWhiteBright:t("","")}};e.exports=createColors();e.exports.createColors=createColors},916:(e,t,r)=>{let{Input:s}=r(977);let i=r(747);e.exports=function safeParse(e,t){let r=new s(e,t);let n=new i(r);n.parse();return n.root}},747:(e,t,r)=>{let s=r(258);let i=r(128);let n=r(572);class SafeParser extends n{createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:true})}comment(e){let t=new i;this.init(t,e[2]);let r=this.input.fromOffset(e[3])||this.input.fromOffset(this.input.css.length-1);t.source.end={offset:e[3],line:r.line,column:r.col};let s=e[1].slice(2);if(s.slice(-2)==="*/")s=s.slice(0,-2);if(/^\s*$/.test(s)){t.text="";t.raws.left=s;t.raws.right=""}else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}decl(e){if(e.length>1&&e.some((e=>e[0]==="word"))){super.decl(e)}}unclosedBracket(){}unknownWord(e){this.spaces+=e.map((e=>e[1])).join("")}unexpectedClose(){this.current.raws.after+="}"}doubleColon(){}unnamedAtrule(e){e.name=""}precheckMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r,s;for(r=t-1;r>=0;r--){if(e[r][0]==="word")break}if(r===0)return;for(s=r-1;s>=0;s--){if(e[s][0]!=="space"){s+=1;break}}let i=e.slice(r);let n=e.slice(s,r);e.splice(s,e.length-s);this.spaces=n.map((e=>e[1])).join("");this.decl(i)}checkMissedSemicolon(){}endFile(){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;while(this.current.parent){this.current=this.current.parent;this.current.raws.after=""}}}e.exports=SafeParser},999:(e,t,r)=>{"use strict";let s=r(285);class AtRule extends s{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=AtRule;AtRule.default=AtRule;s.registerAtRule(AtRule)},128:(e,t,r)=>{"use strict";let s=r(584);class Comment extends s{constructor(e){super(e);this.type="comment"}}e.exports=Comment;Comment.default=Comment},285:(e,t,r)=>{"use strict";let s=r(128);let i=r(182);let n=r(584);let{isClean:o,my:l}=r(96);let a,f,c,u;function cleanSource(e){return e.map((e=>{if(e.nodes)e.nodes=cleanSource(e.nodes);delete e.source;return e}))}function markTreeDirty(e){e[o]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){markTreeDirty(t)}}}class Container extends n{get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let r,s;while(this.indexes[t]e[t](...r.map((e=>{if(typeof e==="function"){return(t,r)=>e(t.toProxy(),r)}else{return e}})))}else if(t==="every"||t==="some"){return r=>e[t](((e,...t)=>r(e.toProxy(),...t)))}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map((e=>e.toProxy()))}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let r=this.index(e);let s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of s)this.proxyOf.nodes.splice(r+1,0,e);let i;for(let e in this.indexes){i=this.indexes[e];if(r{if(!e[l])Container.rebuild(e);e=e.proxyOf;if(e.parent)e.parent.removeChild(e);if(e[o])markTreeDirty(e);if(!e.raws)e.raws={};if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this.proxyOf;return e}));return r}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}removeChild(e){e=this.index(e);this.proxyOf.nodes[e].parent=undefined;this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes){t=this.indexes[r];if(t>=e){this.indexes[r]=t-1}}this.markDirty();return this}replaceValues(e,t,r){if(!r){r=t;t={}}this.walkDecls((s=>{if(t.props&&!t.props.includes(s.prop))return;if(t.fast&&!s.value.includes(t.fast))return;s.value=s.value.replace(e,r)}));this.markDirty();return this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}if(s!==false&&t.walk){s=t.walk(e)}return s}))}walkAtRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="atrule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="atrule"&&e.test(r.name)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="atrule"&&r.name===e){return t(r,s)}}))}walkComments(e){return this.walk(((t,r)=>{if(t.type==="comment"){return e(t,r)}}))}walkDecls(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="decl"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="decl"&&e.test(r.prop)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="decl"&&r.prop===e){return t(r,s)}}))}walkRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="rule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="rule"&&e.test(r.selector)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="rule"&&r.selector===e){return t(r,s)}}))}}Container.registerParse=e=>{f=e};Container.registerRule=e=>{u=e};Container.registerAtRule=e=>{a=e};Container.registerRoot=e=>{c=e};e.exports=Container;Container.default=Container;Container.rebuild=e=>{if(e.type==="atrule"){Object.setPrototypeOf(e,a.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,u.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,i.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,s.prototype)}else if(e.type==="root"){Object.setPrototypeOf(e,c.prototype)}e[l]=true;if(e.nodes){e.nodes.forEach((e=>{Container.rebuild(e)}))}}},527:(e,t,r)=>{"use strict";let s=r(701);let i=r(16);class CssSyntaxError extends Error{constructor(e,t,r,s,i,n){super(e);this.name="CssSyntaxError";this.reason=e;if(i){this.file=i}if(s){this.source=s}if(n){this.plugin=n}if(typeof t!=="undefined"&&typeof r!=="undefined"){if(typeof t==="number"){this.line=t;this.column=r}else{this.line=t.line;this.column=t.column;this.endLine=r.line;this.endColumn=r.column}}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=s.isColorSupported;let aside=e=>e;let mark=e=>e;let highlight=e=>e;if(e){let{bold:e,gray:t,red:r}=s.createColors(true);mark=t=>e(r(t));aside=e=>t(e);if(i){highlight=e=>i(e)}}let r=t.split(/\r?\n/);let n=Math.max(this.line-3,0);let o=Math.min(this.line+2,r.length);let l=String(o).length;return r.slice(n,o).map(((e,t)=>{let r=n+1+t;let s=" "+(" "+r).slice(-l)+" | ";if(r===this.line){if(e.length>160){let t=20;let r=Math.max(0,this.column-t);let i=Math.max(this.column+t,this.endColumn+t);let n=e.slice(r,i);let o=aside(s.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return mark(">")+aside(s)+highlight(n)+"\n "+o+mark("^")}let t=aside(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return mark(">")+aside(s)+highlight(e)+"\n "+t+mark("^")}return" "+aside(s)+highlight(e)})).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=CssSyntaxError;CssSyntaxError.default=CssSyntaxError},182:(e,t,r)=>{"use strict";let s=r(584);class Declaration extends s{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}}e.exports=Declaration;Declaration.default=Declaration},343:e=>{"use strict";let t={comma(e){return t.split(e,[","],true)},space(e){let r=[" ","\n","\t"];return t.split(e,r)},split(e,t,r){let s=[];let i="";let n=false;let o=0;let l=false;let a="";let f=false;for(let r of e){if(f){f=false}else if(r==="\\"){f=true}else if(l){if(r===a){l=false}}else if(r==='"'||r==="'"){l=true;a=r}else if(r==="("){o+=1}else if(r===")"){if(o>0)o-=1}else if(o===0){if(t.includes(r))n=true}if(n){if(i!=="")s.push(i.trim());i="";n=false}else{i+=r}}if(r||i!=="")s.push(i.trim());return s}};e.exports=t;t.default=t},584:(e,t,r)=>{"use strict";let s=r(527);let i=r(423);let n=r(640);let{isClean:o,my:l}=r(96);function cloneNode(e,t){let r=new e.constructor;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)){continue}if(s==="proxyCache")continue;let i=e[s];let n=typeof i;if(s==="parent"&&n==="object"){if(t)r[s]=t}else if(s==="source"){r[s]=i}else if(Array.isArray(i)){r[s]=i.map((e=>cloneNode(e,r)))}else{if(n==="object"&&i!==null)i=cloneNode(i);r[s]=i}}return r}function sourceOffset(e,t){if(t&&typeof t.offset!=="undefined"){return t.offset}let r=1;let s=1;let i=0;for(let n=0;ne.root().toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text"){e.markDirty()}return true}}}markClean(){this[o]=true}markDirty(){if(this[o]){this[o]=false;let e=this;while(e=e.parent){e[o]=false}}}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index){t=this.positionInside(e.index)}else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css;let s=r.slice(sourceOffset(r,this.source.start),sourceOffset(r,this.source.end));let i=s.indexOf(e.word);if(i!==-1)t=this.positionInside(i)}return t}positionInside(e){let t=this.source.start.column;let r=this.source.start.line;let s="document"in this.source.input?this.source.input.document:this.source.input.css;let i=sourceOffset(s,this.source.start);let n=i+e;for(let e=i;e{if(typeof e==="object"&&e.toJSON){return e.toJSON(null,t)}else{return e}}))}else if(typeof s==="object"&&s.toJSON){r[e]=s.toJSON(null,t)}else if(e==="source"){if(s==null)continue;let n=t.get(s.input);if(n==null){n=i;t.set(s.input,i);i++}r[e]={end:s.end,inputId:n,start:s.start}}else{r[e]=s}}if(s){r.inputs=[...t.keys()].map((e=>e.toJSON()))}return r}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}toString(e=n){if(e.stringify)e=e.stringify;let t="";e(this,(e=>{t+=e}));return t}warn(e,t,r={}){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}}e.exports=Node;Node.default=Node},572:(e,t,r)=>{"use strict";let s=r(999);let i=r(128);let n=r(182);let o=r(14);let l=r(997);let a=r(258);const f={empty:true,space:true};function findLastWithPosition(e){for(let t=e.length-1;t>=0;t--){let r=e[t];let s=r[3]||r[2];if(s)return s}}class Parser{constructor(e){this.input=e;this.root=new o;this.current=this.root;this.spaces="";this.semicolon=false;this.createTokenizer();this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new s;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let r;let i;let n;let o=false;let l=false;let a=[];let f=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();r=e[0];if(r==="("||r==="["){f.push(r==="("?")":"]")}else if(r==="{"&&f.length>0){f.push("}")}else if(r===f[f.length-1]){f.pop()}if(f.length===0){if(r===";"){t.source.end=this.getPosition(e[2]);t.source.end.offset++;this.semicolon=true;break}else if(r==="{"){l=true;break}else if(r==="}"){if(a.length>0){n=a.length-1;i=a[n];while(i&&i[0]==="space"){i=a[--n]}if(i){t.source.end=this.getPosition(i[3]||i[2]);t.source.end.offset++}}this.end(e);break}else{a.push(e)}}else{a.push(e)}if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a);if(a.length){t.raws.afterName=this.spacesAndCommentsFromStart(a);this.raw(t,"params",a);if(o){e=a[a.length-1];t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(l){t.nodes=[];this.current=t}}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r=0;let s;for(let i=t-1;i>=0;i--){s=e[i];if(s[0]!=="space"){r+=1;if(r===2)break}}throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0;let r,s,i;for(let[n,o]of e.entries()){s=o;i=s[0];if(i==="("){t+=1}if(i===")"){t-=1}if(t===0&&i===":"){if(!r){this.doubleColon(s)}else if(r[0]==="word"&&r[1]==="progid"){continue}else{return n}}r=s}return false}comment(e){let t=new i;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim()){t.text="";t.raws.left=r;t.raws.right=""}else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(e,t){let r=new n;this.init(r,e[0][2]);let s=e[e.length-1];if(s[0]===";"){this.semicolon=true;e.pop()}r.source.end=this.getPosition(s[3]||s[2]||findLastWithPosition(e));r.source.end.offset++;while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);r.raws.before+=e.shift()[1]}r.source.start=this.getPosition(e[0][2]);r.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}r.prop+=e.shift()[1]}r.raws.between="";let i;while(e.length){i=e.shift();if(i[0]===":"){r.raws.between+=i[1];break}else{if(i[0]==="word"&&/\w/.test(i[1])){this.unknownWord([i])}r.raws.between+=i[1]}}if(r.prop[0]==="_"||r.prop[0]==="*"){r.raws.before+=r.prop[0];r.prop=r.prop.slice(1)}let o=[];let l;while(e.length){l=e[0][0];if(l!=="space"&&l!=="comment")break;o.push(e.shift())}this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){i=e[t];if(i[1].toLowerCase()==="!important"){r.important=true;let s=this.stringFrom(e,t);s=this.spacesFromEnd(e)+s;if(s!==" !important")r.raws.important=s;break}else if(i[1].toLowerCase()==="important"){let s=e.slice(0);let i="";for(let e=t;e>0;e--){let t=s[e][0];if(i.trim().startsWith("!")&&t!=="space"){break}i=s.pop()[1]+i}if(i.trim().startsWith("!")){r.important=true;r.raws.important=i;e=s}}if(i[0]!=="space"&&i[0]!=="comment"){break}}let a=e.some((e=>e[0]!=="space"&&e[0]!=="comment"));if(a){r.raws.between+=o.map((e=>e[1])).join("");o=[]}this.raw(r,"value",o.concat(e),t);if(r.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current.source.end.offset++;this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];if(t&&t.type==="rule"&&!t.raws.ownSemicolon){t.raws.ownSemicolon=this.spaces;this.spaces="";t.source.end=this.getPosition(e[2]);t.source.end.offset+=t.raws.ownSemicolon.length}}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e);e.source={input:this.input,start:this.getPosition(t)};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}other(e){let t=false;let r=null;let s=false;let i=null;let n=[];let o=e[1].startsWith("--");let l=[];let a=e;while(a){r=a[0];l.push(a);if(r==="("||r==="["){if(!i)i=a;n.push(r==="("?")":"]")}else if(o&&s&&r==="{"){if(!i)i=a;n.push("}")}else if(n.length===0){if(r===";"){if(s){this.decl(l,o);return}else{break}}else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop());t=true;break}else if(r===":"){s=true}}else if(r===n[n.length-1]){n.pop();if(n.length===0)i=null}a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(n.length>0)this.unclosedBracket(i);if(t&&s){if(!o){while(l.length){a=l[l.length-1][0];if(a!=="space"&&a!=="comment")break;this.tokenizer.back(l.pop())}}this.decl(l,o)}else{this.unknownWord(l)}}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let i,n;let o=r.length;let l="";let a=true;let c,u;for(let e=0;ee+t[1]),"");e.raws[t]={raw:s,value:l}}e[t]=l}rule(e){e.pop();let t=new l;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t;let r="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let s=t;s{"use strict";let s=r(285);let i,n;class Root extends s{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of s){e.raws.before=t.raws.before}}}return s}removeChild(e,t){let r=this.index(e);if(!t&&r===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[r].raws.before}return super.removeChild(e)}toResult(e={}){let t=new i(new n,this,e);return t.stringify()}}Root.registerLazyResult=e=>{i=e};Root.registerProcessor=e=>{n=e};e.exports=Root;Root.default=Root;s.registerRoot(Root)},997:(e,t,r)=>{"use strict";let s=r(285);let i=r(343);class Rule extends s{get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}}e.exports=Rule;Rule.default=Rule;s.registerRule(Rule)},423:e=>{"use strict";const t=/(<)(\/?style\b)/gi;const r=/(<)(!--)/g;function escapeHTMLInCSS(e){if(typeof e!=="string")return e;if(!e.includes("<"))return e;return e.replace(t,"\\3c $2").replace(r,"\\3c $2")}const s={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name;let s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(s){r+=" "}if(e.nodes){this.block(e,r+s)}else{let i=(e.raws.between||"")+(t?";":"");this.builder(escapeHTMLInCSS(r+s+i),e)}}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let s=e.parent;let i=0;while(s&&s.type!=="root"){i+=1;s=s.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");let s=e.type==="document";for(let i=0;i{i=e.raws[t];if(typeof i!=="undefined")return false}))}}if(typeof i==="undefined")i=s[r];o.rawCache[r]=i;return i}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawValue(e,t){let r=e[t];let s=e.raws[t];if(s&&s.value===r){return s.raw}return r}root(e){this.body(e);if(e.raws.after){let t=e.raws.after;let r=e.parent&&e.parent.type==="document";this.builder(r?t:escapeHTMLInCSS(t))}}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(escapeHTMLInCSS(e.raws.ownSemicolon),e,"end")}}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}}e.exports=Stringifier;Stringifier.default=Stringifier},640:(e,t,r)=>{"use strict";let s=r(423);function stringify(e,t){let r=new s(t);r.stringify(e)}e.exports=stringify;stringify.default=stringify},96:e=>{"use strict";e.exports.isClean=Symbol("isClean");e.exports.my=Symbol("my")},16:(e,t,r)=>{"use strict";let s=r(701);let i=r(258);let n;function registerInput(e){n=e}const o={";":s.yellow,":":s.yellow,"(":s.cyan,")":s.cyan,"[":s.yellow,"]":s.yellow,"{":s.yellow,"}":s.yellow,"at-word":s.cyan,brackets:s.cyan,call:s.cyan,class:s.yellow,comment:s.gray,hash:s.magenta,string:s.green};function getTokenType([e,t],r){if(e==="word"){if(t[0]==="."){return"class"}if(t[0]==="#"){return"hash"}}if(!r.endOfFile()){let e=r.nextToken();r.back(e);if(e[0]==="brackets"||e[0]==="(")return"call"}return e}function terminalHighlight(e){let t=i(new n(e),{ignoreErrors:true});let r="";while(!t.endOfFile()){let e=t.nextToken();let s=o[getTokenType(e,t)];if(s){r+=e[1].split(/\r?\n/).map((e=>s(e))).join("\n")}else{r+=e[1]}}return r}terminalHighlight.registerInput=registerInput;e.exports=terminalHighlight},258:e=>{"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const s="\\".charCodeAt(0);const i="/".charCodeAt(0);const n="\n".charCodeAt(0);const o=" ".charCodeAt(0);const l="\f".charCodeAt(0);const a="\t".charCodeAt(0);const f="\r".charCodeAt(0);const c="[".charCodeAt(0);const u="]".charCodeAt(0);const h="(".charCodeAt(0);const p=")".charCodeAt(0);const d="{".charCodeAt(0);const m="}".charCodeAt(0);const w=";".charCodeAt(0);const g="*".charCodeAt(0);const y=":".charCodeAt(0);const b="@".charCodeAt(0);const x=/[\t\n\f\r "#'()/;[\\\]{}]/g;const k=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const C=/.[\r\n"'(/\\]/;const O=/[\da-f]/i;e.exports=function tokenizer(e,S={}){let A=e.css.valueOf();let R=S.ignoreErrors;let v,P,B,T,I;let E,_,M,z,D;let F=A.length;let N=0;let L=[];let j=[];function position(){return N}function unclosed(t){throw e.error("Unclosed "+t,N)}function endOfFile(){return j.length===0&&N>=F}function nextToken(e){if(j.length)return j.pop();if(N>=F)return;let S=e?e.ignoreUnclosed:false;v=A.charCodeAt(N);switch(v){case n:case o:case a:case f:case l:{T=N;do{T+=1;v=A.charCodeAt(T)}while(v===o||v===n||v===a||v===f||v===l);E=["space",A.slice(N,T)];N=T-1;break}case c:case u:case d:case m:case y:case w:case p:{let e=String.fromCharCode(v);E=[e,e,N];break}case h:{D=L.length?L.pop()[1]:"";z=A.charCodeAt(N+1);if(D==="url"&&z!==t&&z!==r&&z!==o&&z!==n&&z!==a&&z!==l&&z!==f){T=N;do{_=false;T=A.indexOf(")",T+1);if(T===-1){if(R||S){T=N;break}else{unclosed("bracket")}}M=T;while(A.charCodeAt(M-1)===s){M-=1;_=!_}}while(_);E=["brackets",A.slice(N,T+1),N,T];N=T}else{T=A.indexOf(")",N+1);P=A.slice(N,T+1);if(T===-1||C.test(P)){E=["(","(",N]}else{E=["brackets",P,N,T];N=T}}break}case t:case r:{I=v===t?"'":'"';T=N;do{_=false;T=A.indexOf(I,T+1);if(T===-1){if(R||S){T=N+1;break}else{unclosed("string")}}M=T;while(A.charCodeAt(M-1)===s){M-=1;_=!_}}while(_);E=["string",A.slice(N,T+1),N,T];N=T;break}case b:{x.lastIndex=N+1;x.test(A);if(x.lastIndex===0){T=A.length-1}else{T=x.lastIndex-2}E=["at-word",A.slice(N,T+1),N,T];N=T;break}case s:{T=N;B=true;while(A.charCodeAt(T+1)===s){T+=1;B=!B}v=A.charCodeAt(T+1);if(B&&v!==i&&v!==o&&v!==n&&v!==a&&v!==f&&v!==l){T+=1;if(O.test(A.charAt(T))){while(O.test(A.charAt(T+1))){T+=1}if(A.charCodeAt(T+1)===o){T+=1}}}E=["word",A.slice(N,T+1),N,T];N=T;break}default:{if(v===i&&A.charCodeAt(N+1)===g){T=A.indexOf("*/",N+2)+1;if(T===0){if(R||S){T=A.length}else{unclosed("comment")}}E=["comment",A.slice(N,T+1),N,T];N=T}else{k.lastIndex=N+1;k.test(A);if(k.lastIndex===0){T=A.length-1}else{T=k.lastIndex-2}E=["word",A.slice(N,T+1),N,T];L.push(E);N=T}break}}N++;return E}function back(e){j.push(e)}return{back:back,endOfFile:endOfFile,nextToken:nextToken,position:position}}},977:e=>{"use strict";e.exports=require("postcss")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var i=t[r]={exports:{}};var n=true;try{e[r](i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(916);module.exports=r})(); \ No newline at end of file diff --git a/packages/next/src/compiled/postcss-scss/scss-syntax.js b/packages/next/src/compiled/postcss-scss/scss-syntax.js index 7ba2390a6964..308230894505 100644 --- a/packages/next/src/compiled/postcss-scss/scss-syntax.js +++ b/packages/next/src/compiled/postcss-scss/scss-syntax.js @@ -1 +1 @@ -(()=>{var e={45:(e,t,r)=>{const{Container:s}=r(977);class NestedDeclaration extends s{constructor(e){super(e);this.type="decl";this.isNested=true;if(!this.nodes)this.nodes=[]}}e.exports=NestedDeclaration},56:(e,t,r)=>{let{Input:s}=r(977);let i=r(475);e.exports=function scssParse(e,t){let r=new s(e,t);let n=new i(r);n.parse();return n.root}},475:(e,t,r)=>{let{Comment:s}=r(977);let i=r(46);let n=r(45);let l=r(2);class ScssParser extends i{createTokenizer(){this.tokenizer=l(this.input)}rule(e){let t=false;let r=0;let s="";for(let i of e){if(t){if(i[0]!=="comment"&&i[0]!=="{"){s+=i[1]}}else if(i[0]==="space"&&i[1].includes("\n")){break}else if(i[0]==="("){r+=1}else if(i[0]===")"){r-=1}else if(r===0&&i[0]===":"){t=true}}if(!t||s.trim()===""||/^[#:A-Za-z-]/.test(s)){super.rule(e)}else{e.pop();let t=new n;this.init(t,e[0][2]);let r;for(let t=e.length-1;t>=0;t--){if(e[t][0]!=="space"){r=e[t];break}}if(r[3]){let e=this.input.fromOffset(r[3]);t.source.end={offset:r[3],line:e.line,column:e.col}}else{let e=this.input.fromOffset(r[2]);t.source.end={offset:r[2],line:e.line,column:e.col}}while(e[0][0]!=="word"){t.raws.before+=e.shift()[1]}if(e[0][2]){let r=this.input.fromOffset(e[0][2]);t.source.start={offset:e[0][2],line:r.line,column:r.col}}t.prop="";while(e.length){let r=e[0][0];if(r===":"||r==="space"||r==="comment"){break}t.prop+=e.shift()[1]}t.raws.between="";let s;while(e.length){s=e.shift();if(s[0]===":"){t.raws.between+=s[1];break}else{t.raws.between+=s[1]}}if(t.prop[0]==="_"||t.prop[0]==="*"){t.raws.before+=t.prop[0];t.prop=t.prop.slice(1)}t.raws.between+=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let r=e.length-1;r>0;r--){s=e[r];if(s[1]==="!important"){t.important=true;let s=this.stringFrom(e,r);s=this.spacesFromEnd(e)+s;if(s!==" !important"){t.raws.important=s}break}else if(s[1]==="important"){let s=e.slice(0);let i="";for(let e=r;e>0;e--){let t=s[e][0];if(i.trim().indexOf("!")===0&&t!=="space"){break}i=s.pop()[1]+i}if(i.trim().indexOf("!")===0){t.important=true;t.raws.important=i;e=s}}if(s[0]!=="space"&&s[0]!=="comment"){break}}this.raw(t,"value",e);if(t.value.includes(":")){this.checkMissedSemicolon(e)}this.current=t}}comment(e){if(e[4]==="inline"){let t=new s;this.init(t,e[2]);t.raws.inline=true;let r=this.input.fromOffset(e[3]);t.source.end={offset:e[3],line:r.line,column:r.col};let i=e[1].slice(2);if(/^\s*$/.test(i)){t.text="";t.raws.left=i;t.raws.right=""}else{let e=i.match(/^(\s*)([^]*\S)(\s*)$/);let r=e[2].replace(/(\*\/|\/\*)/g,"*//*");t.text=r;t.raws.left=e[1];t.raws.right=e[3];t.raws.text=e[2]}}else{super.comment(e)}}atrule(e){let t=e[1];let r=e;while(!this.tokenizer.endOfFile()){let e=this.tokenizer.nextToken();if(e[0]==="word"&&e[2]===r[3]+1){t+=e[1];r=e}else{this.tokenizer.back(e);break}}super.atrule(["at-word",t,e[2],r[3]])}raw(e,t,r){super.raw(e,t,r);if(e.raws[t]){let s=e.raws[t].raw;e.raws[t].raw=r.reduce(((e,t)=>{if(t[0]==="comment"&&t[4]==="inline"){let r=t[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return e+"/*"+r+"*/"}else{return e+t[1]}}),"");if(s!==e.raws[t].raw){e.raws[t].scss=s}}}}e.exports=ScssParser},523:(e,t,r)=>{let s=r(534);class ScssStringifier extends s{comment(e){let t=this.raw(e,"left","commentLeft");let r=this.raw(e,"right","commentRight");if(e.raws.inline){let s=e.raws.text||e.text;this.builder("//"+t+s+r,e)}else{this.builder("/*"+t+e.text+r+"*/",e)}}decl(e,t){if(!e.isNested){super.decl(e,t)}else{let t=this.raw(e,"between","colon");let r=e.prop+t+this.rawValue(e,"value");if(e.important){r+=e.raws.important||" !important"}this.builder(r+"{",e,"start");let s;if(e.nodes&&e.nodes.length){this.body(e);s=this.raw(e,"after")}else{s=this.raw(e,"after","emptyBody")}if(s)this.builder(s);this.builder("}",e,"end")}}rawValue(e,t){let r=e[t];let s=e.raws[t];if(s&&s.value===r){return s.scss?s.scss:s.raw}else{return r}}}e.exports=ScssStringifier},157:(e,t,r)=>{let s=r(523);e.exports=function scssStringify(e,t){let r=new s(t);r.stringify(e)}},673:(e,t,r)=>{let s=r(157);let i=r(56);e.exports={parse:i,stringify:s}},2:e=>{"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const s="\\".charCodeAt(0);const i="/".charCodeAt(0);const n="\n".charCodeAt(0);const l=" ".charCodeAt(0);const a="\f".charCodeAt(0);const o="\t".charCodeAt(0);const f="\r".charCodeAt(0);const c="[".charCodeAt(0);const d="]".charCodeAt(0);const u="(".charCodeAt(0);const h=")".charCodeAt(0);const w="{".charCodeAt(0);const p="}".charCodeAt(0);const m=";".charCodeAt(0);const b="*".charCodeAt(0);const g=":".charCodeAt(0);const k="@".charCodeAt(0);const C=",".charCodeAt(0);const y="#".charCodeAt(0);const x=/[\t\n\f\r "#'()/;[\\\]{}]/g;const A=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const _=/.[\n"'(/\\]/;const S=/[\da-f]/i;const O=/[\n\f\r]/g;e.exports=function scssTokenize(e,v={}){let I=e.css.valueOf();let z=v.ignoreErrors;let B,D,q,F,R;let T,N,V,$;let E=I.length;let P=0;let U=[];let L=[];let M;function position(){return P}function unclosed(t){throw e.error("Unclosed "+t,P)}function endOfFile(){return L.length===0&&P>=E}function interpolation(){let e=1;let i=false;let n=false;while(e>0){D+=1;if(I.length<=D)unclosed("interpolation");B=I.charCodeAt(D);V=I.charCodeAt(D+1);if(i){if(!n&&B===i){i=false;n=false}else if(B===s){n=!n}else if(n){n=false}}else if(B===t||B===r){i=B}else if(B===p){e-=1}else if(B===y&&V===w){e+=1}}}function nextToken(e){if(L.length)return L.pop();if(P>=E)return;let v=e?e.ignoreUnclosed:false;B=I.charCodeAt(P);switch(B){case n:case l:case o:case f:case a:{D=P;do{D+=1;B=I.charCodeAt(D)}while(B===l||B===n||B===o||B===f||B===a);$=["space",I.slice(P,D)];P=D-1;break}case c:case d:case w:case p:case g:case m:case h:{let e=String.fromCharCode(B);$=[e,e,P];break}case C:{$=["word",",",P,P+1];break}case u:{N=U.length?U.pop()[1]:"";V=I.charCodeAt(P+1);if(N==="url"&&V!==t&&V!==r){M=1;T=false;D=P+1;while(D<=I.length-1){V=I.charCodeAt(D);if(V===s){T=!T}else if(V===u){M+=1}else if(V===h){M-=1;if(M===0)break}D+=1}F=I.slice(P,D+1);$=["brackets",F,P,D];P=D}else{D=I.indexOf(")",P+1);F=I.slice(P,D+1);if(D===-1||_.test(F)){$=["(","(",P]}else{$=["brackets",F,P,D];P=D}}break}case t:case r:{q=B;D=P;T=false;while(D{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name;let s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(s){r+=" "}if(e.nodes){this.block(e,r+s)}else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+s+i,e)}}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let s=e.parent;let i=0;while(s&&s.type!=="root"){i+=1;s=s.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");for(let s=0;s{i=e.raws[r];if(typeof i!=="undefined")return false}))}}if(typeof i==="undefined")i=t[s];l.rawCache[s]=i;return i}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawValue(e,t){let r=e[t];let s=e.raws[t];if(s&&s.value===r){return s.raw}return r}root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}}e.exports=Stringifier;Stringifier.default=Stringifier},977:e=>{"use strict";e.exports=require("postcss")},46:e=>{"use strict";e.exports=require("postcss/lib/parser")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var i=t[r]={exports:{}};var n=true;try{e[r](i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(673);module.exports=r})(); \ No newline at end of file +(()=>{var e={566:(e,t,r)=>{const{Container:s}=r(977);class NestedDeclaration extends s{constructor(e){super(e);this.type="decl";this.isNested=true;if(!this.nodes)this.nodes=[]}}e.exports=NestedDeclaration},572:(e,t,r)=>{let{Input:s}=r(977);let i=r(753);e.exports=function scssParse(e,t){let r=new s(e,t);let n=new i(r);n.parse();return n.root}},753:(e,t,r)=>{let{Comment:s}=r(977);let i=r(46);let n=r(566);let l=r(837);class ScssParser extends i{createTokenizer(){this.tokenizer=l(this.input)}rule(e){let t=false;let r=0;let s="";for(let i of e){if(t){if(i[0]!=="comment"&&i[0]!=="{"){s+=i[1]}}else if(i[0]==="space"&&i[1].includes("\n")){break}else if(i[0]==="("){r+=1}else if(i[0]===")"){r-=1}else if(r===0&&i[0]===":"){t=true}}if(!t||s.trim()===""||/^[#:A-Za-z-]/.test(s)){super.rule(e)}else{e.pop();let t=new n;this.init(t,e[0][2]);let r;for(let t=e.length-1;t>=0;t--){if(e[t][0]!=="space"){r=e[t];break}}if(r[3]){let e=this.input.fromOffset(r[3]);t.source.end={offset:r[3],line:e.line,column:e.col}}else{let e=this.input.fromOffset(r[2]);t.source.end={offset:r[2],line:e.line,column:e.col}}while(e[0][0]!=="word"){t.raws.before+=e.shift()[1]}if(e[0][2]){let r=this.input.fromOffset(e[0][2]);t.source.start={offset:e[0][2],line:r.line,column:r.col}}t.prop="";while(e.length){let r=e[0][0];if(r===":"||r==="space"||r==="comment"){break}t.prop+=e.shift()[1]}t.raws.between="";let s;while(e.length){s=e.shift();if(s[0]===":"){t.raws.between+=s[1];break}else{t.raws.between+=s[1]}}if(t.prop[0]==="_"||t.prop[0]==="*"){t.raws.before+=t.prop[0];t.prop=t.prop.slice(1)}t.raws.between+=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let r=e.length-1;r>0;r--){s=e[r];if(s[1]==="!important"){t.important=true;let s=this.stringFrom(e,r);s=this.spacesFromEnd(e)+s;if(s!==" !important"){t.raws.important=s}break}else if(s[1]==="important"){let s=e.slice(0);let i="";for(let e=r;e>0;e--){let t=s[e][0];if(i.trim().indexOf("!")===0&&t!=="space"){break}i=s.pop()[1]+i}if(i.trim().indexOf("!")===0){t.important=true;t.raws.important=i;e=s}}if(s[0]!=="space"&&s[0]!=="comment"){break}}this.raw(t,"value",e);if(t.value.includes(":")){this.checkMissedSemicolon(e)}this.current=t}}comment(e){if(e[4]==="inline"){let t=new s;this.init(t,e[2]);t.raws.inline=true;let r=this.input.fromOffset(e[3]);t.source.end={offset:e[3],line:r.line,column:r.col};let i=e[1].slice(2);if(/^\s*$/.test(i)){t.text="";t.raws.left=i;t.raws.right=""}else{let e=i.match(/^(\s*)([^]*\S)(\s*)$/);let r=e[2].replace(/(\*\/|\/\*)/g,"*//*");t.text=r;t.raws.left=e[1];t.raws.right=e[3];t.raws.text=e[2]}}else{super.comment(e)}}atrule(e){let t=e[1];let r=e;while(!this.tokenizer.endOfFile()){let e=this.tokenizer.nextToken();if(e[0]==="word"&&e[2]===r[3]+1){t+=e[1];r=e}else{this.tokenizer.back(e);break}}super.atrule(["at-word",t,e[2],r[3]])}raw(e,t,r){super.raw(e,t,r);if(e.raws[t]){let s=e.raws[t].raw;e.raws[t].raw=r.reduce(((e,t)=>{if(t[0]==="comment"&&t[4]==="inline"){let r=t[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return e+"/*"+r+"*/"}else{return e+t[1]}}),"");if(s!==e.raws[t].raw){e.raws[t].scss=s}}}}e.exports=ScssParser},512:(e,t,r)=>{let s=r(423);class ScssStringifier extends s{comment(e){let t=this.raw(e,"left","commentLeft");let r=this.raw(e,"right","commentRight");if(e.raws.inline){let s=e.raws.text||e.text;this.builder("//"+t+s+r,e)}else{this.builder("/*"+t+e.text+r+"*/",e)}}decl(e,t){if(!e.isNested){super.decl(e,t)}else{let t=this.raw(e,"between","colon");let r=e.prop+t+this.rawValue(e,"value");if(e.important){r+=e.raws.important||" !important"}this.builder(r+"{",e,"start");let s;if(e.nodes&&e.nodes.length){this.body(e);s=this.raw(e,"after")}else{s=this.raw(e,"after","emptyBody")}if(s)this.builder(s);this.builder("}",e,"end")}}rawValue(e,t){let r=e[t];let s=e.raws[t];if(s&&s.value===r){return s.scss?s.scss:s.raw}else{return r}}}e.exports=ScssStringifier},127:(e,t,r)=>{let s=r(512);e.exports=function scssStringify(e,t){let r=new s(t);r.stringify(e)}},348:(e,t,r)=>{let s=r(127);let i=r(572);e.exports={parse:i,stringify:s}},837:e=>{"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const s="\\".charCodeAt(0);const i="/".charCodeAt(0);const n="\n".charCodeAt(0);const l=" ".charCodeAt(0);const a="\f".charCodeAt(0);const o="\t".charCodeAt(0);const f="\r".charCodeAt(0);const c="[".charCodeAt(0);const d="]".charCodeAt(0);const u="(".charCodeAt(0);const p=")".charCodeAt(0);const h="{".charCodeAt(0);const w="}".charCodeAt(0);const m=";".charCodeAt(0);const b="*".charCodeAt(0);const g=":".charCodeAt(0);const C="@".charCodeAt(0);const k=",".charCodeAt(0);const y="#".charCodeAt(0);const S=/[\t\n\f\r "#'()/;[\\\]{}]/g;const x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const A=/.[\n"'(/\\]/;const _=/[\da-f]/i;const I=/[\n\f\r]/g;e.exports=function scssTokenize(e,O={}){let T=e.css.valueOf();let v=O.ignoreErrors;let L,M,z,B,H;let D,$,q,F;let R=T.length;let N=0;let V=[];let E=[];let P;function position(){return N}function unclosed(t){throw e.error("Unclosed "+t,N)}function endOfFile(){return E.length===0&&N>=R}function interpolation(){let e=1;let i=false;let n=false;while(e>0){M+=1;if(T.length<=M)unclosed("interpolation");L=T.charCodeAt(M);q=T.charCodeAt(M+1);if(i){if(!n&&L===i){i=false;n=false}else if(L===s){n=!n}else if(n){n=false}}else if(L===t||L===r){i=L}else if(L===w){e-=1}else if(L===y&&q===h){e+=1}}}function nextToken(e){if(E.length)return E.pop();if(N>=R)return;let O=e?e.ignoreUnclosed:false;L=T.charCodeAt(N);switch(L){case n:case l:case o:case f:case a:{M=N;do{M+=1;L=T.charCodeAt(M)}while(L===l||L===n||L===o||L===f||L===a);F=["space",T.slice(N,M)];N=M-1;break}case c:case d:case h:case w:case g:case m:case p:{let e=String.fromCharCode(L);F=[e,e,N];break}case k:{F=["word",",",N,N+1];break}case u:{$=V.length?V.pop()[1]:"";q=T.charCodeAt(N+1);if($==="url"&&q!==t&&q!==r){P=1;D=false;M=N+1;while(M<=T.length-1){q=T.charCodeAt(M);if(q===s){D=!D}else if(q===u){P+=1}else if(q===p){P-=1;if(P===0)break}M+=1}B=T.slice(N,M+1);F=["brackets",B,N,M];N=M}else{M=T.indexOf(")",N+1);B=T.slice(N,M+1);if(M===-1||A.test(B)){F=["(","(",N]}else{F=["brackets",B,N,M];N=M}}break}case t:case r:{z=L;M=N;D=false;while(M{"use strict";const t=/(<)(\/?style\b)/gi;const r=/(<)(!--)/g;function escapeHTMLInCSS(e){if(typeof e!=="string")return e;if(!e.includes("<"))return e;return e.replace(t,"\\3c $2").replace(r,"\\3c $2")}const s={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name;let s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(s){r+=" "}if(e.nodes){this.block(e,r+s)}else{let i=(e.raws.between||"")+(t?";":"");this.builder(escapeHTMLInCSS(r+s+i),e)}}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let s=e.parent;let i=0;while(s&&s.type!=="root"){i+=1;s=s.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");let s=e.type==="document";for(let i=0;i{i=e.raws[t];if(typeof i!=="undefined")return false}))}}if(typeof i==="undefined")i=s[r];l.rawCache[r]=i;return i}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawValue(e,t){let r=e[t];let s=e.raws[t];if(s&&s.value===r){return s.raw}return r}root(e){this.body(e);if(e.raws.after){let t=e.raws.after;let r=e.parent&&e.parent.type==="document";this.builder(r?t:escapeHTMLInCSS(t))}}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(escapeHTMLInCSS(e.raws.ownSemicolon),e,"end")}}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}}e.exports=Stringifier;Stringifier.default=Stringifier},977:e=>{"use strict";e.exports=require("postcss")},46:e=>{"use strict";e.exports=require("postcss/lib/parser")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var i=t[r]={exports:{}};var n=true;try{e[r](i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(348);module.exports=r})(); \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4f8a13325bd0..2bc05aff386d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -484,8 +484,8 @@ importers: specifier: 1.58.2 version: 1.58.2 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.5.10 + version: 8.5.10 postcss-nested: specifier: 4.2.1 version: 4.2.1 @@ -602,7 +602,7 @@ importers: version: 2.2.4(react@19.3.0-canary-da9325b5-20260417) tailwindcss: specifier: 3.2.7 - version: 3.2.7(postcss@8.4.31) + version: 3.2.7(postcss@8.5.10) taskr: specifier: 1.1.0 version: 1.1.0(patch_hash=1d0f571943b5d4761d4f2f39723796e402dd317f14a7c714e2021d3f12cc481c) @@ -789,7 +789,7 @@ importers: version: link:../../packages/next tailwindcss: specifier: 3.2.7 - version: 3.2.7(postcss@8.5.3) + version: 3.2.7(postcss@8.5.10) bench/module-cost: devDependencies: @@ -1072,8 +1072,8 @@ importers: specifier: 1.0.30001746 version: 1.0.30001746 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.5.10 + version: 8.5.10 react: specifier: npm:react@19.3.0-canary-da9325b5-20260417 version: 19.3.0-canary-da9325b5-20260417 @@ -1455,7 +1455,7 @@ importers: version: 1.5.1 cssnano-preset-default: specifier: 7.0.6 - version: 7.0.6(postcss@8.4.31) + version: 7.0.6(postcss@8.5.10) data-uri-to-buffer: specifier: 3.0.1 version: 3.0.1 @@ -1500,7 +1500,7 @@ importers: version: 5.0.1 icss-utils: specifier: 5.1.0 - version: 5.1.0(postcss@8.4.31) + version: 5.1.0(postcss@8.5.10) ignore-loader: specifier: 0.1.2 version: 0.1.2 @@ -1578,28 +1578,28 @@ importers: version: 4.0.1 postcss-flexbugs-fixes: specifier: 5.0.2 - version: 5.0.2(postcss@8.4.31) + version: 5.0.2(postcss@8.5.10) postcss-modules-extract-imports: specifier: 3.0.0 - version: 3.0.0(postcss@8.4.31) + version: 3.0.0(postcss@8.5.10) postcss-modules-local-by-default: specifier: 4.2.0 - version: 4.2.0(postcss@8.4.31) + version: 4.2.0(postcss@8.5.10) postcss-modules-scope: specifier: 3.0.0 - version: 3.0.0(postcss@8.4.31) + version: 3.0.0(postcss@8.5.10) postcss-modules-values: specifier: 4.0.0 - version: 4.0.0(postcss@8.4.31) + version: 4.0.0(postcss@8.5.10) postcss-preset-env: specifier: 7.4.3 - version: 7.4.3(postcss@8.4.31) + version: 7.4.3(postcss@8.5.10) postcss-safe-parser: specifier: 6.0.0 - version: 6.0.0(postcss@8.4.31) + version: 6.0.0(postcss@8.5.10) postcss-scss: specifier: 4.0.3 - version: 4.0.3(patch_hash=88893e632b3e099730dc0ffcc93cf3654b31c277da9e2796e822f6b5aeedc093)(postcss@8.4.31) + version: 4.0.3(patch_hash=88893e632b3e099730dc0ffcc93cf3654b31c277da9e2796e822f6b5aeedc093)(postcss@8.5.10) postcss-value-parser: specifier: 4.2.0 version: 4.2.0 @@ -13589,11 +13589,6 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - nanoid@3.3.7: - resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - napi-postinstall@0.3.4: resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} @@ -15144,6 +15139,10 @@ packages: resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} engines: {node: ^10 || ^12 || >=14} + postcss@8.5.10: + resolution: {integrity: sha512-pMMHxBOZKFU6HgAZ4eyGnwXF/EvPGGqUr0MnZ5+99485wwW41kW91A4LOGxSHhgugZmSChL5AlElNdwlNgcnLQ==} + engines: {node: ^10 || ^12 || >=14} + postcss@8.5.3: resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==} engines: {node: ^10 || ^12 || >=14} @@ -19648,47 +19647,47 @@ snapshots: '@capsizecss/metrics@3.4.0': {} - '@csstools/postcss-color-function@1.1.0(postcss@8.4.31)': + '@csstools/postcss-color-function@1.1.0(postcss@8.5.10)': dependencies: - '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.31) - postcss: 8.4.31 + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.5.10) + postcss: 8.5.10 postcss-value-parser: 4.2.0 - '@csstools/postcss-font-format-keywords@1.0.0(postcss@8.4.31)': + '@csstools/postcss-font-format-keywords@1.0.0(postcss@8.5.10)': dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - '@csstools/postcss-hwb-function@1.0.0(postcss@8.4.31)': + '@csstools/postcss-hwb-function@1.0.0(postcss@8.5.10)': dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - '@csstools/postcss-ic-unit@1.0.0(postcss@8.4.31)': + '@csstools/postcss-ic-unit@1.0.0(postcss@8.5.10)': dependencies: - '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.31) - postcss: 8.4.31 + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.5.10) + postcss: 8.5.10 postcss-value-parser: 4.2.0 - '@csstools/postcss-is-pseudo-class@2.0.2(postcss@8.4.31)': + '@csstools/postcss-is-pseudo-class@2.0.2(postcss@8.5.10)': dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 - '@csstools/postcss-normalize-display-values@1.0.0(postcss@8.4.31)': + '@csstools/postcss-normalize-display-values@1.0.0(postcss@8.5.10)': dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - '@csstools/postcss-oklab-function@1.1.0(postcss@8.4.31)': + '@csstools/postcss-oklab-function@1.1.0(postcss@8.5.10)': dependencies: - '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.31) - postcss: 8.4.31 + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.5.10) + postcss: 8.5.10 postcss-value-parser: 4.2.0 - '@csstools/postcss-progressive-custom-properties@1.3.0(postcss@8.4.31)': + '@csstools/postcss-progressive-custom-properties@1.3.0(postcss@8.5.10)': dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 '@datadog/datadog-api-client@1.25.0(encoding@0.1.13)': @@ -24628,14 +24627,14 @@ snapshots: stubborn-fs: 1.2.5 when-exit: 2.1.2 - autoprefixer@10.4.21(postcss@8.4.31): + autoprefixer@10.4.21(postcss@8.5.10): dependencies: browserslist: 4.28.1 caniuse-lite: 1.0.30001746 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.1.1 - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 autoprefixer@10.4.21(postcss@8.5.3): @@ -26078,9 +26077,9 @@ snapshots: css-background-parser@0.1.0: {} - css-blank-pseudo@3.0.3(postcss@8.4.31): + css-blank-pseudo@3.0.3(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 css-box-shadow@1.0.0-3: {} @@ -26094,25 +26093,25 @@ snapshots: postcss: 7.0.32 timsort: 0.3.0 - css-declaration-sorter@7.2.0(postcss@8.4.31): + css-declaration-sorter@7.2.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 css-gradient-parser@0.0.17: {} - css-has-pseudo@3.0.4(postcss@8.4.31): + css-has-pseudo@3.0.4(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 css-loader@6.11.0(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)): dependencies: - icss-utils: 5.1.0(postcss@8.5.3) - postcss: 8.5.3 - postcss-modules-extract-imports: 3.1.0(postcss@8.5.3) - postcss-modules-local-by-default: 4.2.0(postcss@8.5.3) - postcss-modules-scope: 3.2.1(postcss@8.5.3) - postcss-modules-values: 4.0.0(postcss@8.5.3) + icss-utils: 5.1.0(postcss@8.5.10) + postcss: 8.5.10 + postcss-modules-extract-imports: 3.1.0(postcss@8.5.10) + postcss-modules-local-by-default: 4.2.0(postcss@8.5.10) + postcss-modules-scope: 3.2.1(postcss@8.5.10) + postcss-modules-values: 4.0.0(postcss@8.5.10) postcss-value-parser: 4.2.0 semver: 7.6.3 optionalDependencies: @@ -26121,21 +26120,21 @@ snapshots: css-loader@7.1.2(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)): dependencies: - icss-utils: 5.1.0(postcss@8.5.3) - postcss: 8.5.3 - postcss-modules-extract-imports: 3.1.0(postcss@8.5.3) - postcss-modules-local-by-default: 4.2.0(postcss@8.5.3) - postcss-modules-scope: 3.2.1(postcss@8.5.3) - postcss-modules-values: 4.0.0(postcss@8.5.3) + icss-utils: 5.1.0(postcss@8.5.10) + postcss: 8.5.10 + postcss-modules-extract-imports: 3.1.0(postcss@8.5.10) + postcss-modules-local-by-default: 4.2.0(postcss@8.5.10) + postcss-modules-scope: 3.2.1(postcss@8.5.10) + postcss-modules-values: 4.0.0(postcss@8.5.10) postcss-value-parser: 4.2.0 semver: 7.6.3 optionalDependencies: '@rspack/core': 1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15) webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9) - css-prefers-color-scheme@6.0.3(postcss@8.4.31): + css-prefers-color-scheme@6.0.3(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 css-select-base-adapter@0.1.1: {} @@ -26264,39 +26263,39 @@ snapshots: postcss-svgo: 4.0.2 postcss-unique-selectors: 4.0.1 - cssnano-preset-default@7.0.6(postcss@8.4.31): + cssnano-preset-default@7.0.6(postcss@8.5.10): dependencies: browserslist: 4.28.1 - css-declaration-sorter: 7.2.0(postcss@8.4.31) - cssnano-utils: 5.0.0(postcss@8.4.31) - postcss: 8.4.31 - postcss-calc: 10.0.2(postcss@8.4.31) - postcss-colormin: 7.0.2(postcss@8.4.31) - postcss-convert-values: 7.0.4(postcss@8.4.31) - postcss-discard-comments: 7.0.3(postcss@8.4.31) - postcss-discard-duplicates: 7.0.1(postcss@8.4.31) - postcss-discard-empty: 7.0.0(postcss@8.4.31) - postcss-discard-overridden: 7.0.0(postcss@8.4.31) - postcss-merge-longhand: 7.0.4(postcss@8.4.31) - postcss-merge-rules: 7.0.4(postcss@8.4.31) - postcss-minify-font-values: 7.0.0(postcss@8.4.31) - postcss-minify-gradients: 7.0.0(postcss@8.4.31) - postcss-minify-params: 7.0.2(postcss@8.4.31) - postcss-minify-selectors: 7.0.4(postcss@8.4.31) - postcss-normalize-charset: 7.0.0(postcss@8.4.31) - postcss-normalize-display-values: 7.0.0(postcss@8.4.31) - postcss-normalize-positions: 7.0.0(postcss@8.4.31) - postcss-normalize-repeat-style: 7.0.0(postcss@8.4.31) - postcss-normalize-string: 7.0.0(postcss@8.4.31) - postcss-normalize-timing-functions: 7.0.0(postcss@8.4.31) - postcss-normalize-unicode: 7.0.2(postcss@8.4.31) - postcss-normalize-url: 7.0.0(postcss@8.4.31) - postcss-normalize-whitespace: 7.0.0(postcss@8.4.31) - postcss-ordered-values: 7.0.1(postcss@8.4.31) - postcss-reduce-initial: 7.0.2(postcss@8.4.31) - postcss-reduce-transforms: 7.0.0(postcss@8.4.31) - postcss-svgo: 7.0.1(postcss@8.4.31) - postcss-unique-selectors: 7.0.3(postcss@8.4.31) + css-declaration-sorter: 7.2.0(postcss@8.5.10) + cssnano-utils: 5.0.0(postcss@8.5.10) + postcss: 8.5.10 + postcss-calc: 10.0.2(postcss@8.5.10) + postcss-colormin: 7.0.2(postcss@8.5.10) + postcss-convert-values: 7.0.4(postcss@8.5.10) + postcss-discard-comments: 7.0.3(postcss@8.5.10) + postcss-discard-duplicates: 7.0.1(postcss@8.5.10) + postcss-discard-empty: 7.0.0(postcss@8.5.10) + postcss-discard-overridden: 7.0.0(postcss@8.5.10) + postcss-merge-longhand: 7.0.4(postcss@8.5.10) + postcss-merge-rules: 7.0.4(postcss@8.5.10) + postcss-minify-font-values: 7.0.0(postcss@8.5.10) + postcss-minify-gradients: 7.0.0(postcss@8.5.10) + postcss-minify-params: 7.0.2(postcss@8.5.10) + postcss-minify-selectors: 7.0.4(postcss@8.5.10) + postcss-normalize-charset: 7.0.0(postcss@8.5.10) + postcss-normalize-display-values: 7.0.0(postcss@8.5.10) + postcss-normalize-positions: 7.0.0(postcss@8.5.10) + postcss-normalize-repeat-style: 7.0.0(postcss@8.5.10) + postcss-normalize-string: 7.0.0(postcss@8.5.10) + postcss-normalize-timing-functions: 7.0.0(postcss@8.5.10) + postcss-normalize-unicode: 7.0.2(postcss@8.5.10) + postcss-normalize-url: 7.0.0(postcss@8.5.10) + postcss-normalize-whitespace: 7.0.0(postcss@8.5.10) + postcss-ordered-values: 7.0.1(postcss@8.5.10) + postcss-reduce-initial: 7.0.2(postcss@8.5.10) + postcss-reduce-transforms: 7.0.0(postcss@8.5.10) + postcss-svgo: 7.0.1(postcss@8.5.10) + postcss-unique-selectors: 7.0.3(postcss@8.5.10) cssnano-util-get-arguments@4.0.0: {} @@ -26308,9 +26307,9 @@ snapshots: cssnano-util-same-parent@4.0.1: {} - cssnano-utils@5.0.0(postcss@8.4.31): + cssnano-utils@5.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 cssnano@4.1.10: dependencies: @@ -29431,13 +29430,9 @@ snapshots: icss-replace-symbols@1.1.0: {} - icss-utils@5.1.0(postcss@8.4.31): + icss-utils@5.1.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 - - icss-utils@5.1.0(postcss@8.5.3): - dependencies: - postcss: 8.5.3 + postcss: 8.5.10 idb@3.0.2: {} @@ -31912,7 +31907,7 @@ snapshots: '@rollup/plugin-node-resolve': 11.0.1(rollup@2.35.1) '@surma/rollup-plugin-off-main-thread': 2.2.3 asyncro: 3.0.0 - autoprefixer: 10.4.21(postcss@8.5.3) + autoprefixer: 10.4.21(postcss@8.5.10) babel-plugin-macros: 3.0.1 babel-plugin-transform-async-to-promises: 0.8.15 babel-plugin-transform-replace-expressions: 0.2.0(@babel/core@7.26.10) @@ -31924,11 +31919,11 @@ snapshots: gzip-size: 6.0.0 kleur: 4.1.3 lodash.merge: 4.6.2 - postcss: 8.5.3 + postcss: 8.5.10 pretty-bytes: 5.6.0 rollup: 2.35.1 rollup-plugin-bundle-size: 1.0.3 - rollup-plugin-postcss: 4.0.0(postcss@8.5.3) + rollup-plugin-postcss: 4.0.0(postcss@8.5.10) rollup-plugin-terser: 7.0.2(rollup@2.35.1) rollup-plugin-typescript2: 0.29.0(rollup@2.35.1)(typescript@4.9.5) rollup-plugin-visualizer: 5.6.0(rollup@2.35.1) @@ -32653,8 +32648,6 @@ snapshots: nanoid@3.3.11: {} - nanoid@3.3.7: {} - napi-postinstall@0.3.4: {} native-url@0.3.4: @@ -33767,14 +33760,14 @@ snapshots: possible-typed-array-names@1.0.0: {} - postcss-attribute-case-insensitive@5.0.0(postcss@8.4.31): + postcss-attribute-case-insensitive@5.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 - postcss-calc@10.0.2(postcss@8.4.31): + postcss-calc@10.0.2(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 postcss-value-parser: 4.2.0 @@ -33785,24 +33778,24 @@ snapshots: postcss-selector-parser: 5.0.0 postcss-value-parser: 3.3.1 - postcss-clamp@4.1.0(postcss@8.4.31): + postcss-clamp@4.1.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-color-functional-notation@4.2.2(postcss@8.4.31): + postcss-color-functional-notation@4.2.2(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-color-hex-alpha@8.0.3(postcss@8.4.31): + postcss-color-hex-alpha@8.0.3(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-color-rebeccapurple@7.0.2(postcss@8.4.31): + postcss-color-rebeccapurple@7.0.2(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-colormin@4.0.3: @@ -33813,12 +33806,12 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-colormin@7.0.2(postcss@8.4.31): + postcss-colormin@7.0.2(postcss@8.5.10): dependencies: browserslist: 4.28.1 caniuse-api: 3.0.0 colord: 2.9.3 - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-convert-values@4.0.1: @@ -33826,162 +33819,143 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-convert-values@7.0.4(postcss@8.4.31): + postcss-convert-values@7.0.4(postcss@8.5.10): dependencies: browserslist: 4.28.1 - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-custom-media@8.0.0(postcss@8.4.31): + postcss-custom-media@8.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-custom-properties@12.1.7(postcss@8.4.31): + postcss-custom-properties@12.1.7(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-custom-selectors@6.0.0(postcss@8.4.31): + postcss-custom-selectors@6.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 - postcss-dir-pseudo-class@6.0.4(postcss@8.4.31): + postcss-dir-pseudo-class@6.0.4(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 postcss-discard-comments@4.0.2: dependencies: postcss: 7.0.32 - postcss-discard-comments@7.0.3(postcss@8.4.31): + postcss-discard-comments@7.0.3(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 postcss-discard-duplicates@4.0.2: dependencies: postcss: 7.0.32 - postcss-discard-duplicates@7.0.1(postcss@8.4.31): + postcss-discard-duplicates@7.0.1(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-discard-empty@4.0.1: dependencies: postcss: 7.0.32 - postcss-discard-empty@7.0.0(postcss@8.4.31): + postcss-discard-empty@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-discard-overridden@4.0.1: dependencies: postcss: 7.0.32 - postcss-discard-overridden@7.0.0(postcss@8.4.31): + postcss-discard-overridden@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-double-position-gradients@3.1.1(postcss@8.4.31): + postcss-double-position-gradients@3.1.1(postcss@8.5.10): dependencies: - '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.31) - postcss: 8.4.31 + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.5.10) + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-env-function@4.0.6(postcss@8.4.31): + postcss-env-function@4.0.6(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-flexbugs-fixes@5.0.2(postcss@8.4.31): + postcss-flexbugs-fixes@5.0.2(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-focus-visible@6.0.4(postcss@8.4.31): + postcss-focus-visible@6.0.4(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 - postcss-focus-within@5.0.4(postcss@8.4.31): + postcss-focus-within@5.0.4(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 - postcss-font-variant@5.0.0(postcss@8.4.31): + postcss-font-variant@5.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-gap-properties@3.0.3(postcss@8.4.31): + postcss-gap-properties@3.0.3(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-image-set-function@4.0.6(postcss@8.4.31): + postcss-image-set-function@4.0.6(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-import@14.1.0(postcss@8.4.31): + postcss-import@14.1.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 - postcss-value-parser: 4.2.0 - read-cache: 1.0.0 - resolve: 1.22.8 - - postcss-import@14.1.0(postcss@8.5.3): - dependencies: - postcss: 8.5.3 + postcss: 8.5.10 postcss-value-parser: 4.2.0 read-cache: 1.0.0 resolve: 1.22.8 - postcss-initial@4.0.1(postcss@8.4.31): + postcss-initial@4.0.1(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-js@4.0.1(postcss@8.4.31): + postcss-js@4.0.1(postcss@8.5.10): dependencies: camelcase-css: 2.0.1 - postcss: 8.4.31 + postcss: 8.5.10 - postcss-js@4.0.1(postcss@8.5.3): + postcss-lab-function@4.2.0(postcss@8.5.10): dependencies: - camelcase-css: 2.0.1 - postcss: 8.5.3 - - postcss-lab-function@4.2.0(postcss@8.4.31): - dependencies: - '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.31) - postcss: 8.4.31 + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.5.10) + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-load-config@3.1.4(postcss@8.4.31): - dependencies: - lilconfig: 2.1.0 - yaml: 1.10.2 - optionalDependencies: - postcss: 8.4.31 - - postcss-load-config@3.1.4(postcss@8.5.3): + postcss-load-config@3.1.4(postcss@8.5.10): dependencies: lilconfig: 2.1.0 yaml: 1.10.2 optionalDependencies: - postcss: 8.5.3 + postcss: 8.5.10 postcss-load-plugins@2.3.0: dependencies: cosmiconfig: 2.2.2 object-assign: 4.1.1 - postcss-logical@5.0.4(postcss@8.4.31): + postcss-logical@5.0.4(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-media-minmax@5.0.0(postcss@8.4.31): + postcss-media-minmax@5.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-merge-longhand@4.0.11: dependencies: @@ -33990,11 +33964,11 @@ snapshots: postcss-value-parser: 3.3.1 stylehacks: 4.0.3 - postcss-merge-longhand@7.0.4(postcss@8.4.31): + postcss-merge-longhand@7.0.4(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - stylehacks: 7.0.4(postcss@8.4.31) + stylehacks: 7.0.4(postcss@8.5.10) postcss-merge-rules@4.0.3: dependencies: @@ -34005,12 +33979,12 @@ snapshots: postcss-selector-parser: 3.1.1 vendors: 1.0.3 - postcss-merge-rules@7.0.4(postcss@8.4.31): + postcss-merge-rules@7.0.4(postcss@8.5.10): dependencies: browserslist: 4.28.1 caniuse-api: 3.0.0 - cssnano-utils: 5.0.0(postcss@8.4.31) - postcss: 8.4.31 + cssnano-utils: 5.0.0(postcss@8.5.10) + postcss: 8.5.10 postcss-selector-parser: 6.1.2 postcss-minify-font-values@4.0.2: @@ -34018,9 +33992,9 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-minify-font-values@7.0.0(postcss@8.4.31): + postcss-minify-font-values@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-minify-gradients@4.0.2: @@ -34030,11 +34004,11 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-minify-gradients@7.0.0(postcss@8.4.31): + postcss-minify-gradients@7.0.0(postcss@8.5.10): dependencies: colord: 2.9.3 - cssnano-utils: 5.0.0(postcss@8.4.31) - postcss: 8.4.31 + cssnano-utils: 5.0.0(postcss@8.5.10) + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-minify-params@4.0.2: @@ -34046,11 +34020,11 @@ snapshots: postcss-value-parser: 3.3.1 uniqs: 2.0.0 - postcss-minify-params@7.0.2(postcss@8.4.31): + postcss-minify-params@7.0.2(postcss@8.5.10): dependencies: browserslist: 4.28.1 - cssnano-utils: 5.0.0(postcss@8.4.31) - postcss: 8.4.31 + cssnano-utils: 5.0.0(postcss@8.5.10) + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-minify-selectors@4.0.2: @@ -34060,73 +34034,52 @@ snapshots: postcss: 7.0.32 postcss-selector-parser: 3.1.1 - postcss-minify-selectors@7.0.4(postcss@8.4.31): + postcss-minify-selectors@7.0.4(postcss@8.5.10): dependencies: cssesc: 3.0.0 - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 - postcss-modules-extract-imports@3.0.0(postcss@8.4.31): - dependencies: - postcss: 8.4.31 - - postcss-modules-extract-imports@3.0.0(postcss@8.5.3): + postcss-modules-extract-imports@3.0.0(postcss@8.5.10): dependencies: - postcss: 8.5.3 + postcss: 8.5.10 - postcss-modules-extract-imports@3.1.0(postcss@8.5.3): + postcss-modules-extract-imports@3.1.0(postcss@8.5.10): dependencies: - postcss: 8.5.3 + postcss: 8.5.10 - postcss-modules-local-by-default@4.2.0(postcss@8.4.31): + postcss-modules-local-by-default@4.2.0(postcss@8.5.10): dependencies: - icss-utils: 5.1.0(postcss@8.4.31) - postcss: 8.4.31 + icss-utils: 5.1.0(postcss@8.5.10) + postcss: 8.5.10 postcss-selector-parser: 7.0.0 postcss-value-parser: 4.2.0 - postcss-modules-local-by-default@4.2.0(postcss@8.5.3): + postcss-modules-scope@3.0.0(postcss@8.5.10): dependencies: - icss-utils: 5.1.0(postcss@8.5.3) - postcss: 8.5.3 - postcss-selector-parser: 7.0.0 - postcss-value-parser: 4.2.0 - - postcss-modules-scope@3.0.0(postcss@8.4.31): - dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.0.10 - postcss-modules-scope@3.0.0(postcss@8.5.3): + postcss-modules-scope@3.2.1(postcss@8.5.10): dependencies: - postcss: 8.5.3 - postcss-selector-parser: 6.0.10 - - postcss-modules-scope@3.2.1(postcss@8.5.3): - dependencies: - postcss: 8.5.3 + postcss: 8.5.10 postcss-selector-parser: 7.1.0 - postcss-modules-values@4.0.0(postcss@8.4.31): + postcss-modules-values@4.0.0(postcss@8.5.10): dependencies: - icss-utils: 5.1.0(postcss@8.4.31) - postcss: 8.4.31 + icss-utils: 5.1.0(postcss@8.5.10) + postcss: 8.5.10 - postcss-modules-values@4.0.0(postcss@8.5.3): - dependencies: - icss-utils: 5.1.0(postcss@8.5.3) - postcss: 8.5.3 - - postcss-modules@4.0.0(postcss@8.5.3): + postcss-modules@4.0.0(postcss@8.5.10): dependencies: generic-names: 2.0.1 icss-replace-symbols: 1.1.0 lodash.camelcase: 4.3.0 - postcss: 8.5.3 - postcss-modules-extract-imports: 3.0.0(postcss@8.5.3) - postcss-modules-local-by-default: 4.2.0(postcss@8.5.3) - postcss-modules-scope: 3.0.0(postcss@8.5.3) - postcss-modules-values: 4.0.0(postcss@8.5.3) + postcss: 8.5.10 + postcss-modules-extract-imports: 3.0.0(postcss@8.5.10) + postcss-modules-local-by-default: 4.2.0(postcss@8.5.10) + postcss-modules-scope: 3.0.0(postcss@8.5.10) + postcss-modules-values: 4.0.0(postcss@8.5.10) string-hash: 1.1.3 postcss-nested@4.2.1: @@ -34134,28 +34087,23 @@ snapshots: postcss: 7.0.32 postcss-selector-parser: 6.0.10 - postcss-nested@6.0.0(postcss@8.4.31): + postcss-nested@6.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 - postcss-selector-parser: 6.1.2 - - postcss-nested@6.0.0(postcss@8.5.3): - dependencies: - postcss: 8.5.3 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 - postcss-nesting@10.1.4(postcss@8.4.31): + postcss-nesting@10.1.4(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 postcss-normalize-charset@4.0.1: dependencies: postcss: 7.0.32 - postcss-normalize-charset@7.0.0(postcss@8.4.31): + postcss-normalize-charset@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-normalize-display-values@4.0.2: dependencies: @@ -34163,9 +34111,9 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-normalize-display-values@7.0.0(postcss@8.4.31): + postcss-normalize-display-values@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-normalize-positions@4.0.2: @@ -34175,9 +34123,9 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-normalize-positions@7.0.0(postcss@8.4.31): + postcss-normalize-positions@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-normalize-repeat-style@4.0.2: @@ -34187,9 +34135,9 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-normalize-repeat-style@7.0.0(postcss@8.4.31): + postcss-normalize-repeat-style@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-normalize-string@4.0.2: @@ -34198,9 +34146,9 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-normalize-string@7.0.0(postcss@8.4.31): + postcss-normalize-string@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-normalize-timing-functions@4.0.2: @@ -34209,9 +34157,9 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-normalize-timing-functions@7.0.0(postcss@8.4.31): + postcss-normalize-timing-functions@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-normalize-unicode@4.0.1: @@ -34220,10 +34168,10 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-normalize-unicode@7.0.2(postcss@8.4.31): + postcss-normalize-unicode@7.0.2(postcss@8.5.10): dependencies: browserslist: 4.28.1 - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-normalize-url@4.0.1: @@ -34233,9 +34181,9 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-normalize-url@7.0.0(postcss@8.4.31): + postcss-normalize-url@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-normalize-whitespace@4.0.2: @@ -34243,9 +34191,9 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-normalize-whitespace@7.0.0(postcss@8.4.31): + postcss-normalize-whitespace@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 postcss-opacity-percentage@1.1.2: {} @@ -34256,75 +34204,75 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-ordered-values@7.0.1(postcss@8.4.31): + postcss-ordered-values@7.0.1(postcss@8.5.10): dependencies: - cssnano-utils: 5.0.0(postcss@8.4.31) - postcss: 8.4.31 + cssnano-utils: 5.0.0(postcss@8.5.10) + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-overflow-shorthand@3.0.3(postcss@8.4.31): + postcss-overflow-shorthand@3.0.3(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-page-break@3.0.4(postcss@8.4.31): + postcss-page-break@3.0.4(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-place@7.0.4(postcss@8.4.31): + postcss-place@7.0.4(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-preset-env@7.4.3(postcss@8.4.31): - dependencies: - '@csstools/postcss-color-function': 1.1.0(postcss@8.4.31) - '@csstools/postcss-font-format-keywords': 1.0.0(postcss@8.4.31) - '@csstools/postcss-hwb-function': 1.0.0(postcss@8.4.31) - '@csstools/postcss-ic-unit': 1.0.0(postcss@8.4.31) - '@csstools/postcss-is-pseudo-class': 2.0.2(postcss@8.4.31) - '@csstools/postcss-normalize-display-values': 1.0.0(postcss@8.4.31) - '@csstools/postcss-oklab-function': 1.1.0(postcss@8.4.31) - '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.31) - autoprefixer: 10.4.21(postcss@8.4.31) + postcss-preset-env@7.4.3(postcss@8.5.10): + dependencies: + '@csstools/postcss-color-function': 1.1.0(postcss@8.5.10) + '@csstools/postcss-font-format-keywords': 1.0.0(postcss@8.5.10) + '@csstools/postcss-hwb-function': 1.0.0(postcss@8.5.10) + '@csstools/postcss-ic-unit': 1.0.0(postcss@8.5.10) + '@csstools/postcss-is-pseudo-class': 2.0.2(postcss@8.5.10) + '@csstools/postcss-normalize-display-values': 1.0.0(postcss@8.5.10) + '@csstools/postcss-oklab-function': 1.1.0(postcss@8.5.10) + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.5.10) + autoprefixer: 10.4.21(postcss@8.5.10) browserslist: 4.28.1 - css-blank-pseudo: 3.0.3(postcss@8.4.31) - css-has-pseudo: 3.0.4(postcss@8.4.31) - css-prefers-color-scheme: 6.0.3(postcss@8.4.31) + css-blank-pseudo: 3.0.3(postcss@8.5.10) + css-has-pseudo: 3.0.4(postcss@8.5.10) + css-prefers-color-scheme: 6.0.3(postcss@8.5.10) cssdb: 6.5.0 - postcss: 8.4.31 - postcss-attribute-case-insensitive: 5.0.0(postcss@8.4.31) - postcss-clamp: 4.1.0(postcss@8.4.31) - postcss-color-functional-notation: 4.2.2(postcss@8.4.31) - postcss-color-hex-alpha: 8.0.3(postcss@8.4.31) - postcss-color-rebeccapurple: 7.0.2(postcss@8.4.31) - postcss-custom-media: 8.0.0(postcss@8.4.31) - postcss-custom-properties: 12.1.7(postcss@8.4.31) - postcss-custom-selectors: 6.0.0(postcss@8.4.31) - postcss-dir-pseudo-class: 6.0.4(postcss@8.4.31) - postcss-double-position-gradients: 3.1.1(postcss@8.4.31) - postcss-env-function: 4.0.6(postcss@8.4.31) - postcss-focus-visible: 6.0.4(postcss@8.4.31) - postcss-focus-within: 5.0.4(postcss@8.4.31) - postcss-font-variant: 5.0.0(postcss@8.4.31) - postcss-gap-properties: 3.0.3(postcss@8.4.31) - postcss-image-set-function: 4.0.6(postcss@8.4.31) - postcss-initial: 4.0.1(postcss@8.4.31) - postcss-lab-function: 4.2.0(postcss@8.4.31) - postcss-logical: 5.0.4(postcss@8.4.31) - postcss-media-minmax: 5.0.0(postcss@8.4.31) - postcss-nesting: 10.1.4(postcss@8.4.31) + postcss: 8.5.10 + postcss-attribute-case-insensitive: 5.0.0(postcss@8.5.10) + postcss-clamp: 4.1.0(postcss@8.5.10) + postcss-color-functional-notation: 4.2.2(postcss@8.5.10) + postcss-color-hex-alpha: 8.0.3(postcss@8.5.10) + postcss-color-rebeccapurple: 7.0.2(postcss@8.5.10) + postcss-custom-media: 8.0.0(postcss@8.5.10) + postcss-custom-properties: 12.1.7(postcss@8.5.10) + postcss-custom-selectors: 6.0.0(postcss@8.5.10) + postcss-dir-pseudo-class: 6.0.4(postcss@8.5.10) + postcss-double-position-gradients: 3.1.1(postcss@8.5.10) + postcss-env-function: 4.0.6(postcss@8.5.10) + postcss-focus-visible: 6.0.4(postcss@8.5.10) + postcss-focus-within: 5.0.4(postcss@8.5.10) + postcss-font-variant: 5.0.0(postcss@8.5.10) + postcss-gap-properties: 3.0.3(postcss@8.5.10) + postcss-image-set-function: 4.0.6(postcss@8.5.10) + postcss-initial: 4.0.1(postcss@8.5.10) + postcss-lab-function: 4.2.0(postcss@8.5.10) + postcss-logical: 5.0.4(postcss@8.5.10) + postcss-media-minmax: 5.0.0(postcss@8.5.10) + postcss-nesting: 10.1.4(postcss@8.5.10) postcss-opacity-percentage: 1.1.2 - postcss-overflow-shorthand: 3.0.3(postcss@8.4.31) - postcss-page-break: 3.0.4(postcss@8.4.31) - postcss-place: 7.0.4(postcss@8.4.31) - postcss-pseudo-class-any-link: 7.1.1(postcss@8.4.31) - postcss-replace-overflow-wrap: 4.0.0(postcss@8.4.31) - postcss-selector-not: 5.0.0(postcss@8.4.31) + postcss-overflow-shorthand: 3.0.3(postcss@8.5.10) + postcss-page-break: 3.0.4(postcss@8.5.10) + postcss-place: 7.0.4(postcss@8.5.10) + postcss-pseudo-class-any-link: 7.1.1(postcss@8.5.10) + postcss-replace-overflow-wrap: 4.0.0(postcss@8.5.10) + postcss-selector-not: 5.0.0(postcss@8.5.10) postcss-value-parser: 4.2.0 - postcss-pseudo-class-any-link@7.1.1(postcss@8.4.31): + postcss-pseudo-class-any-link@7.1.1(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 postcss-pseudoelements@5.0.0: @@ -34338,11 +34286,11 @@ snapshots: has: 1.0.3 postcss: 7.0.32 - postcss-reduce-initial@7.0.2(postcss@8.4.31): + postcss-reduce-initial@7.0.2(postcss@8.5.10): dependencies: browserslist: 4.28.1 caniuse-api: 3.0.0 - postcss: 8.4.31 + postcss: 8.5.10 postcss-reduce-transforms@4.0.2: dependencies: @@ -34351,27 +34299,27 @@ snapshots: postcss: 7.0.32 postcss-value-parser: 3.3.1 - postcss-reduce-transforms@7.0.0(postcss@8.4.31): + postcss-reduce-transforms@7.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 - postcss-replace-overflow-wrap@4.0.0(postcss@8.4.31): + postcss-replace-overflow-wrap@4.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-safe-parser@6.0.0(postcss@8.4.31): + postcss-safe-parser@6.0.0(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-scss@4.0.3(patch_hash=88893e632b3e099730dc0ffcc93cf3654b31c277da9e2796e822f6b5aeedc093)(postcss@8.4.31): + postcss-scss@4.0.3(patch_hash=88893e632b3e099730dc0ffcc93cf3654b31c277da9e2796e822f6b5aeedc093)(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 - postcss-selector-not@5.0.0(postcss@8.4.31): + postcss-selector-not@5.0.0(postcss@8.5.10): dependencies: balanced-match: 1.0.0 - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser@3.1.1: dependencies: @@ -34421,9 +34369,9 @@ snapshots: postcss-value-parser: 3.3.1 svgo: 1.3.2 - postcss-svgo@7.0.1(postcss@8.4.31): + postcss-svgo@7.0.1(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-value-parser: 4.2.0 svgo: 3.3.2 @@ -34438,9 +34386,9 @@ snapshots: postcss: 7.0.32 uniqs: 2.0.0 - postcss-unique-selectors@7.0.3(postcss@8.4.31): + postcss-unique-selectors@7.0.3(postcss@8.5.10): dependencies: - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 postcss-value-parser@3.3.1: {} @@ -34474,7 +34422,13 @@ snapshots: postcss@8.4.31: dependencies: - nanoid: 3.3.7 + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + postcss@8.5.10: + dependencies: + nanoid: 3.3.11 picocolors: 1.1.1 source-map-js: 1.2.1 @@ -35560,7 +35514,7 @@ snapshots: chalk: 1.1.3 maxmin: 2.1.0 - rollup-plugin-postcss@4.0.0(postcss@8.5.3): + rollup-plugin-postcss@4.0.0(postcss@8.5.10): dependencies: chalk: 4.1.2 concat-with-sourcemaps: 1.1.0 @@ -35568,9 +35522,9 @@ snapshots: import-cwd: 3.0.0 p-queue: 6.6.2 pify: 5.0.0 - postcss: 8.5.3 - postcss-load-config: 3.1.4(postcss@8.5.3) - postcss-modules: 4.0.0(postcss@8.5.3) + postcss: 8.5.10 + postcss-load-config: 3.1.4(postcss@8.5.10) + postcss-modules: 4.0.0(postcss@8.5.10) promise.series: 0.2.0 resolve: 1.22.10 rollup-pluginutils: 2.8.2 @@ -36611,10 +36565,10 @@ snapshots: postcss: 7.0.32 postcss-selector-parser: 3.1.1 - stylehacks@7.0.4(postcss@8.4.31): + stylehacks@7.0.4(postcss@8.5.10): dependencies: browserslist: 4.28.1 - postcss: 8.4.31 + postcss: 8.5.10 postcss-selector-parser: 6.1.2 stylis@4.2.0: {} @@ -36740,7 +36694,7 @@ snapshots: dependencies: tailwindcss: 4.1.13 - tailwindcss@3.2.7(postcss@8.4.31): + tailwindcss@3.2.7(postcss@8.5.10): dependencies: arg: 5.0.2 chokidar: 3.6.0 @@ -36756,39 +36710,11 @@ snapshots: normalize-path: 3.0.0 object-hash: 3.0.0 picocolors: 1.0.1 - postcss: 8.4.31 - postcss-import: 14.1.0(postcss@8.4.31) - postcss-js: 4.0.1(postcss@8.4.31) - postcss-load-config: 3.1.4(postcss@8.4.31) - postcss-nested: 6.0.0(postcss@8.4.31) - postcss-selector-parser: 6.0.11 - postcss-value-parser: 4.2.0 - quick-lru: 5.1.1 - resolve: 1.22.8 - transitivePeerDependencies: - - ts-node - - tailwindcss@3.2.7(postcss@8.5.3): - dependencies: - arg: 5.0.2 - chokidar: 3.6.0 - color-name: 1.1.4 - detective: 5.2.1 - didyoumean: 1.2.2 - dlv: 1.1.3 - fast-glob: 3.3.1 - glob-parent: 6.0.2 - is-glob: 4.0.3 - lilconfig: 2.1.0 - micromatch: 4.0.8 - normalize-path: 3.0.0 - object-hash: 3.0.0 - picocolors: 1.0.1 - postcss: 8.5.3 - postcss-import: 14.1.0(postcss@8.5.3) - postcss-js: 4.0.1(postcss@8.5.3) - postcss-load-config: 3.1.4(postcss@8.5.3) - postcss-nested: 6.0.0(postcss@8.5.3) + postcss: 8.5.10 + postcss-import: 14.1.0(postcss@8.5.10) + postcss-js: 4.0.1(postcss@8.5.10) + postcss-load-config: 3.1.4(postcss@8.5.10) + postcss-nested: 6.0.0(postcss@8.5.10) postcss-selector-parser: 6.0.11 postcss-value-parser: 4.2.0 quick-lru: 5.1.1 diff --git a/test/development/acceptance-app/ReactRefreshLogBox.test.ts b/test/development/acceptance-app/ReactRefreshLogBox.test.ts index 807839bb414a..cd25ca2aa412 100644 --- a/test/development/acceptance-app/ReactRefreshLogBox.test.ts +++ b/test/development/acceptance-app/ReactRefreshLogBox.test.ts @@ -515,11 +515,11 @@ describe('ReactRefreshLogBox app', () => { } else { await expect({ browser, next }).toDisplayRedbox(` { - "description": "Syntax error: /index.module.css Unknown word", + "description": "Syntax error: /index.module.css Unknown word .button", "environmentLabel": null, "label": "Build Error", "source": "./index.module.css (1:1) - Syntax error: /index.module.css Unknown word + Syntax error: /index.module.css Unknown word .button > 1 | .button | ^", "stack": [], diff --git a/test/development/acceptance/ReactRefreshLogBox.test.ts b/test/development/acceptance/ReactRefreshLogBox.test.ts index 4980b1deb73a..e3b30f440373 100644 --- a/test/development/acceptance/ReactRefreshLogBox.test.ts +++ b/test/development/acceptance/ReactRefreshLogBox.test.ts @@ -748,11 +748,11 @@ describe('ReactRefreshLogBox', () => { } else { await expect({ browser, next }).toDisplayRedbox(` { - "description": "Syntax error: /index.module.css Unknown word", + "description": "Syntax error: /index.module.css Unknown word .button", "environmentLabel": null, "label": "Build Error", "source": "./index.module.css (1:1) - Syntax error: /index.module.css Unknown word + Syntax error: /index.module.css Unknown word .button > 1 | .button | ^", "stack": [],