Unverified Commit 9af72fa0 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Merge pull request #47019 from vercel/jrl-next-crates

Move `next-*` crates from Turbopack
parents 7457be0c 39e240bc
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md
examples/ examples/
**/*/LICENSE.md
...@@ -1127,7 +1127,7 @@ jobs: ...@@ -1127,7 +1127,7 @@ jobs:
toolchain: ${{ env.RUST_TOOLCHAIN }} toolchain: ${{ env.RUST_TOOLCHAIN }}
profile: minimal profile: minimal
- run: cd packages/next-swc && cargo test - run: cd packages/next-swc && cargo test --workspace --exclude next-dev-tests
if: ${{ steps.swc-change.outputs.SWC_CHANGE == 'yup' }} if: ${{ steps.swc-change.outputs.SWC_CHANGE == 'yup' }}
test-wasm: test-wasm:
......
...@@ -57,5 +57,16 @@ ...@@ -57,5 +57,16 @@
"explorer.fileNesting.patterns": { "explorer.fileNesting.patterns": {
"*.ts": "$(capture).test.ts, $(capture).test.tsx", "*.ts": "$(capture).test.ts, $(capture).test.tsx",
"*.tsx": "$(capture).test.ts, $(capture).test.tsx" "*.tsx": "$(capture).test.ts, $(capture).test.tsx"
},
// Allow to find the cargo project for rust-analyzer.
"rust-analyzer.linkedProjects": ["packages/next-swc/Cargo.toml"],
// Compile rust-analyzer in a separate directory to avoid conflicts with the main project.
"rust-analyzer.checkOnSave.extraEnv": {
"CARGO_TARGET_DIR": "target/rust-analyzer"
},
"rust-analyzer.server.extraEnv": {
"CARGO_TARGET_DIR": "target/rust-analyzer",
"RUST_BACKTRACE": "0"
} }
} }
[env]
CARGO_WORKSPACE_DIR = { value = "", relative = true }
[build] [build]
rustdocflags = [] rustdocflags = []
[target.x86_64-pc-windows-msvc]
linker = "rust-lld"
[target.aarch64-unknown-linux-gnu] [target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc" linker = "aarch64-linux-gnu-gcc"
[target.aarch64-unknown-linux-musl] [target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc" linker = "aarch64-linux-musl-gcc"
rustflags = [ rustflags = [
"-C", "--cfg",
"target-feature=-crt-static", "tokio_unstable",
"-C", "-Csymbol-mangling-version=v0",
"link-arg=-lgcc", "-Ctarget-feature=-crt-static",
"-Clink-arg=-lgcc",
] ]
[target.armv7-unknown-linux-gnueabihf] [target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc" linker = "arm-linux-gnueabihf-gcc"
[target.'cfg(all())']
rustflags = [
"--cfg",
"tokio_unstable",
"-Csymbol-mangling-version=v0",
"-Aclippy::too_many_arguments"
]
This diff is collapsed.
[workspace] [workspace]
members = ["crates/core", "crates/napi", "crates/wasm"] members = [
"crates/core",
"crates/napi",
"crates/wasm",
"crates/next-binding",
"crates/next-core",
"crates/next-dev",
"crates/next-dev-tests",
# "crates/next-font",
# "crates/next-transform-dynamic",
# "crates/next-transform-strip-page-exports",
]
[profile.dev.package.swc_css_prefixer] [profile.dev.package.swc_css_prefixer]
opt-level = 2 opt-level = 2
...@@ -11,3 +22,131 @@ debug-assertions = false ...@@ -11,3 +22,131 @@ debug-assertions = false
[profile.release] [profile.release]
lto = true lto = true
[workspace.dependencies]
# Workspace crates
next-binding = { path = "crates/next-binding" }
next-core = { path = "crates/next-core" }
next-dev = { path = "crates/next-dev" }
next-dev-tests = { path = "crates/next-dev-tests" }
# next-font = { path = "crates/next-font" }
# next-transform-dynamic = { path = "crates/next-transform-dynamic" }
# next-transform-strip-page-exports = { path = "crates/next-transform-strip-page-exports" }
# SWC crates
# Keep consistent with preset_env_base through swc_core
browserslist-rs = { version = "0.12.2" }
mdxjs = { version = "0.1.6" }
modularize_imports = { version = "0.26.4" }
styled_components = { version = "0.53.4" }
styled_jsx = { version = "0.30.4" }
swc_core = { version = "0.59.26" }
swc_emotion = { version = "0.29.4" }
testing = { version = "0.31.31" }
# Turbo crates
auto-hash-map = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
node-file-trace = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
swc-ast-explorer = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-malloc = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94", default-features = false }
turbo-tasks = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-tasks-build = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-tasks-env = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-tasks-fetch = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-tasks-hash = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-tasks-macros = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-tasks-macros-shared = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-tasks-memory = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-tasks-testing = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbo-updater = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-cli-utils = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-core = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-create-test-app = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-css = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-dev-server = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-ecmascript = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-env = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-json = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-mdx = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-node = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-static = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-swc-utils = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-test-utils = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
turbopack-tests = { git = "https://github.com/vercel/turbo.git", rev = "8a8038f94" }
# General Deps
# Be careful when selecting tls backend, including change default tls backend.
# If you changed, must verify with ALL build targets with next-swc to ensure
# it works. next-swc have various platforms, some doesn't support native (using openssl-sys)
# and some aren't buildable with rustls.
reqwest = { version = "0.11.14", default-features = false }
chromiumoxide = { version = "0.4.0", features = [
"tokio-runtime",
], default-features = false }
# For matching on errors from chromiumoxide. Keep in
# sync with chromiumoxide's tungstenite requirement.
tungstenite = "0.17.3"
anyhow = "1.0.69"
assert_cmd = "2.0.8"
async-compression = { version = "0.3.13", default-features = false, features = [
"gzip",
"tokio",
] }
async-trait = "0.1.64"
atty = "0.2.14"
chrono = "0.4.23"
clap = "4.1.6"
clap_complete = "4.1.2"
concurrent-queue = "2.1.0"
console = "0.15.5"
console-subscriber = "0.1.8"
criterion = "0.4.0"
dashmap = "5.4.0"
dialoguer = "0.10.3"
dunce = "1.0.3"
futures = "0.3.26"
futures-retry = "0.6.0"
httpmock = "0.6.7"
indexmap = "1.9.2"
indicatif = "0.17.3"
indoc = "2.0.0"
itertools = "0.10.5"
lazy_static = "1.4.0"
log = "0.4.17"
mime = "0.3.16"
nohash-hasher = "0.2.0"
once_cell = "1.17.1"
owo-colors = "3.5.0"
parking_lot = "0.12.1"
pathdiff = "0.2.1"
pin-project-lite = "0.2.9"
predicates = "2.1.5"
pretty_assertions = "1.3.0"
proc-macro2 = "1.0.51"
qstring = "0.7.2"
quote = "1.0.23"
rand = "0.8.5"
regex = "1.7.0"
rstest = "0.16.0"
rustc-hash = "1.1.0"
semver = "1.0.16"
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.93"
serde_qs = "0.11.0"
serde_yaml = "0.9.17"
syn = "1.0.107"
tempfile = "3.3.0"
test-generator = "0.3.1"
thiserror = "1.0.38"
tiny-gradient = "0.1.0"
tokio = "1.25.0"
tokio-util = { version = "0.7.7", features = ["io"] }
tracing = "0.1.37"
url = "2.2.2"
urlencoding = "2.1.2"
webbrowser = "0.8.7"
...@@ -21,7 +21,7 @@ serde_json = "1" ...@@ -21,7 +21,7 @@ serde_json = "1"
sha1 = "0.10.1" sha1 = "0.10.1"
tracing = { version = "0.1.37", features = ["release_max_level_info"] } tracing = { version = "0.1.37", features = ["release_max_level_info"] }
next-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230310.2", features = [ next-binding = { path = "../next-binding", features = [
"__swc_core", "__swc_core",
"__swc_core_next_core", "__swc_core_next_core",
"__swc_transform_styled_jsx", "__swc_transform_styled_jsx",
...@@ -31,7 +31,7 @@ next-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-2 ...@@ -31,7 +31,7 @@ next-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-2
] } ] }
[dev-dependencies] [dev-dependencies]
next-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230310.2", features = [ next-binding = { path = "../next-binding", features = [
"__swc_core_testing_transform", "__swc_core_testing_transform",
"__swc_testing", "__swc_testing",
] } ] }
......
...@@ -39,10 +39,10 @@ tracing = { version = "0.1.37", features = ["release_max_level_info"] } ...@@ -39,10 +39,10 @@ tracing = { version = "0.1.37", features = ["release_max_level_info"] }
tracing-futures = "0.2.5" tracing-futures = "0.2.5"
tracing-subscriber = "0.3.9" tracing-subscriber = "0.3.9"
tracing-chrome = "0.5.0" tracing-chrome = "0.5.0"
turbopack = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230310.2" } turbopack = { workspace = true }
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230310.2" } turbo-tasks = { workspace = true }
turbo-tasks-memory = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230310.2" } turbo-tasks-memory = { workspace = true }
next-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230310.2", features = [ next-binding = { path = "../next-binding", features = [
"__swc_core_binding_napi", "__swc_core_binding_napi",
"__turbo_next_dev_server", "__turbo_next_dev_server",
"__turbo_node_file_trace", "__turbo_node_file_trace",
...@@ -51,7 +51,7 @@ next-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-2 ...@@ -51,7 +51,7 @@ next-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-2
[target.'cfg(not(all(target_os = "linux", target_env = "musl", target_arch = "aarch64")))'.dependencies] [target.'cfg(not(all(target_os = "linux", target_env = "musl", target_arch = "aarch64")))'.dependencies]
turbo-malloc = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230310.2" } turbo-malloc = { workspace = true }
# There are few build targets we can't use native-tls which default features rely on, # There are few build targets we can't use native-tls which default features rely on,
# allow to specify alternative (rustls) instead via features. # allow to specify alternative (rustls) instead via features.
......
[package]
name = "next-binding"
version = "0.1.0"
edition = "2021"
license = "MPL-2.0"
autobenches = false
[lib]
bench = false
[features]
__swc = []
__swc_core = ["__swc"]
__swc_core_next_core = [
"__swc_core",
"swc_core/common_concurrent",
"swc_core/ecma_ast",
"swc_core/ecma_visit",
"swc_core/ecma_loader_node",
"swc_core/ecma_loader_lru",
"swc_core/ecma_utils",
"swc_core/ecma_minifier",
"swc_core/ecma_transforms",
"swc_core/ecma_transforms_react",
"swc_core/ecma_transforms_typescript",
"swc_core/ecma_transforms_optimization",
"swc_core/ecma_parser",
"swc_core/ecma_parser_typescript",
"swc_core/cached",
"swc_core/base",
]
__swc_core_binding_napi = [
"__swc_core",
"swc_core/base_concurrent",
"swc_core/base_node",
"swc_core/common_concurrent",
"swc_core/ecma_ast",
"swc_core/ecma_loader_node",
"swc_core/ecma_loader_lru",
"swc_core/bundler",
"swc_core/bundler_concurrent",
"swc_core/ecma_codegen",
"swc_core/ecma_minifier",
"swc_core/ecma_parser",
"swc_core/ecma_parser_typescript",
"swc_core/ecma_transforms",
"swc_core/ecma_transforms_optimization",
"swc_core/ecma_transforms_react",
"swc_core/ecma_transforms_typescript",
"swc_core/ecma_utils",
"swc_core/ecma_visit",
]
__swc_core_binding_napi_plugin = ["swc_core/plugin_transform_host_native"]
__swc_core_binding_napi_allocator = ["swc_core/allocator_node"]
__swc_core_binding_wasm = [
"__swc_core",
"swc_core/common_concurrent",
"swc_core/binding_macro_wasm",
"swc_core/ecma_codegen",
"swc_core/ecma_minifier",
"swc_core/ecma_transforms",
"swc_core/ecma_transforms_typescript",
"swc_core/ecma_transforms_optimization",
"swc_core/ecma_transforms_react",
"swc_core/ecma_parser",
"swc_core/ecma_parser_typescript",
"swc_core/ecma_utils",
"swc_core/ecma_visit",
]
__swc_core_binding_wasm_plugin = ["swc_core/plugin_transform_host_js"]
__swc_core_testing_transform = ["swc_core/testing_transform"]
__turbo = []
__turbo_next_dev_server = ["__turbo", "next-dev/serializable"]
__turbo_node_file_trace = ["__turbo", "node-file-trace/node-api"]
# set tls for downstream dependenices of turbo
__turbo_native_tls = ["next-dev/native-tls"]
__turbo_rustls_tls = ["next-dev/rustls-tls"]
__features = []
__feature_mdx_rs = ["__features", "mdxjs/serializable"]
__swc_custom_transform = []
__swc_transform_styled_components = [
"__swc",
"__swc_custom_transform",
"styled_components",
]
__swc_transform_styled_jsx = ["__swc", "__swc_custom_transform", "styled_jsx"]
__swc_transform_emotion = ["__swc", "__swc_custom_transform", "swc_emotion"]
__swc_transform_modularize_imports = [
"__swc",
"__swc_custom_transform",
"modularize_imports",
]
__swc_testing = ["__swc", "testing"]
[dependencies]
mdxjs = { optional = true, workspace = true }
modularize_imports = { optional = true, workspace = true }
# TODO: Not sure what's going on, but using `workspace = true` noops `default-features = false`?
next-dev = { optional = true, path = "../next-dev", default-features = false, features = [
"custom_allocator",
] }
node-file-trace = { optional = true, workspace = true }
styled_components = { optional = true, workspace = true }
styled_jsx = { optional = true, workspace = true }
swc_core = { optional = true, workspace = true }
swc_emotion = { optional = true, workspace = true }
testing = { optional = true, workspace = true }
### next-binding
This is an internal package, does not provide any public interface or stability guarantees. Do not use it directly.
#[cfg(feature = "__swc")]
pub mod swc {
#[cfg(feature = "__swc_core")]
pub use swc_core as core;
#[cfg(feature = "__swc_custom_transform")]
pub mod custom_transform {
#[cfg(feature = "__swc_transform_modularize_imports")]
pub use modularize_imports;
#[cfg(feature = "__swc_transform_styled_components")]
pub use styled_components;
#[cfg(feature = "__swc_transform_styled_jsx")]
pub use styled_jsx;
#[cfg(feature = "__swc_transform_emotion")]
pub use swc_emotion as emotion;
}
#[cfg(feature = "testing")]
pub use testing;
}
#[cfg(feature = "__turbo")]
pub mod turbo {
#[cfg(feature = "__turbo_next_dev_server")]
pub use next_dev;
#[cfg(feature = "__turbo_node_file_trace")]
pub use node_file_trace;
}
#[cfg(feature = "__features")]
pub mod features {
#[cfg(feature = "__feature_mdx_rs")]
pub use mdxjs;
}
[package]
name = "next-core"
version = "0.1.0"
description = "TBD"
license = "MPL-2.0"
edition = "2021"
[lib]
bench = false
[dependencies]
anyhow = { workspace = true }
auto-hash-map = { workspace = true }
indexmap = { workspace = true, features = ["serde"] }
indoc = { workspace = true }
mime = { workspace = true }
once_cell = { workspace = true }
qstring = { workspace = true }
regex = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
turbo-tasks = { workspace = true }
turbo-tasks-env = { workspace = true }
turbo-tasks-fetch = { workspace = true }
turbo-tasks-fs = { workspace = true }
turbo-tasks-hash = { workspace = true }
turbopack = { workspace = true }
turbopack-core = { workspace = true }
turbopack-dev-server = { workspace = true }
turbopack-ecmascript = { workspace = true }
turbopack-env = { workspace = true }
turbopack-node = { workspace = true }
swc_core = { workspace = true, features = ["ecma_ast", "common"] }
[build-dependencies]
turbo-tasks-build = { workspace = true }
[features]
next-font-local = []
native-tls = ["turbo-tasks-fetch/native-tls"]
rustls-tls = ["turbo-tasks-fetch/rustls-tls"]
# Internal only. Enabled when building for the Next.js integration test suite.
__internal_nextjs_integration_test = []
use turbo_tasks_build::generate_register;
fn main() {
generate_register();
}
/**
* Build npm package to be able to embed them in the binary
*/
import { mkdir, writeFile, rm, readFile } from "node:fs/promises";
import { existsSync } from "node:fs";
import { createRequire } from "node:module";
import { join, dirname, basename, extname } from "node:path";
import { fileURLToPath } from "node:url";
import ncc from "@vercel/ncc";
import { findUp } from "find-up";
const __dirname = dirname(fileURLToPath(import.meta.url));
const require = createRequire(import.meta.url);
/**
* @type {{
* name: string;
* type: "cjs" | "module" | "module-default";
* types?: string;
* }[]}
*/
const packages = [
{
name: "anser",
type: "cjs",
},
{
name: "css.escape",
type: "cjs",
types: "export = CSS.escape;",
},
{
name: "platform",
type: "cjs",
},
{
name: "source-map",
type: "module",
},
{
name: "stacktrace-parser",
type: "module",
},
{
name: "strip-ansi",
type: "module-default",
},
];
const externals = Object.fromEntries(
packages.map((pkg) => [
pkg.name,
`@vercel/turbopack-next/compiled/${pkg.name}`,
])
);
// adapted from https://github.com/vercel/next.js/blob/8fb5ef18e7958a19874e11b8037ac0f71c48baef/packages/next/taskfile-ncc.js
async function writePackageManifest(packageName, main) {
// some newer packages fail to include package.json in the exports
// so we can't reliably use require.resolve here
let packagePath;
try {
packagePath = require.resolve(packageName + "/package.json");
} catch (_) {
packagePath = await findUp("package.json", {
cwd: dirname(require.resolve(packageName)),
});
}
const { name, author, license } = require(packagePath);
const compiledPackagePath = join(__dirname, `src/compiled/${packageName}`);
const potentialLicensePath = join(dirname(packagePath), "./LICENSE");
if (existsSync(potentialLicensePath)) {
await writeFile(
join(compiledPackagePath, "LICENSE"),
await readFile(potentialLicensePath, "utf8")
);
} else {
// license might be lower case and not able to be found on case-sensitive
// file systems (ubuntu)
const otherPotentialLicensePath = join(dirname(packagePath), "./license");
if (existsSync(otherPotentialLicensePath)) {
await writeFile(
join(compiledPackagePath, "LICENSE"),
await readFile(otherPotentialLicensePath, "utf8")
);
}
}
await writeFile(
join(compiledPackagePath, "package.json"),
JSON.stringify(
Object.assign(
{},
{ name, main: `${basename(main, "." + extname(main))}` },
author ? { author } : undefined,
license ? { license } : undefined
)
) + "\n"
);
}
async function main() {
const baseDir = join(__dirname, "src/compiled");
await rm(baseDir, {
force: true,
recursive: true,
});
let types = "/* GENERATED FILE, DO NOT EDIT */\n";
for (const pkg of packages) {
const input = require.resolve(pkg.name);
const outputDir = join(baseDir, pkg.name);
await mkdir(outputDir, { recursive: true });
const { code, assets } = await ncc(input, {
minify: true,
assetBuilds: true,
quiet: true,
externals,
});
await writeFile(join(outputDir, "index.js"), code);
for (const key in assets) {
await writeFile(join(outputDir, key), assets[key].source);
}
await writePackageManifest(pkg.name, "index.js");
types += `\ndeclare module "@vercel/turbopack-next/compiled/${pkg.name}" {\n`;
if (pkg.types) {
types += ` ${pkg.types}\n`;
} else if (pkg.type === "module-default") {
types += ` import m from "${pkg.name}";\n`;
types += ` export default m;\n`;
} else if (pkg.type === "module") {
types += ` export * from "${pkg.name}";\n`;
} else if (pkg.type === "cjs") {
types += ` import m from "${pkg.name}";\n`;
types += ` export = m;\n`;
} else {
throw new Error(`unknown package type ${pkg.type} for ${pkg.name}`);
}
types += `}\n`;
console.log(`built ${pkg.name}`);
}
await writeFile(join(__dirname, "types", "compiled.d.ts"), types);
}
main().catch((e) => {
console.dir(e);
process.exit(1);
});
{
"name": "@vercel/turbopack-next",
"version": "0.0.0",
"description": "turbopack next runtime",
"license": "UNLICENSED",
"private": true,
"scripts": {
"check": "tsc --noEmit",
"build:compiled": "node build.mjs"
},
"dependencies": {
"@vercel/turbopack-runtime": "https://gitpkg.now.sh/vercel/turbo/crates/turbopack-ecmascript/js?8a8038f94",
"anser": "^2.1.1",
"css.escape": "^1.5.1",
"next": "*",
"platform": "1.3.6",
"react-dom": "^18.2.0",
"react": "^18.2.0",
"source-map": "0.8.0-beta.0",
"stacktrace-parser": "^0.1.10",
"strip-ansi": "^7.0.1"
},
"devDependencies": {
"@types/node": "^18.11.11",
"@types/platform": "^1.3.4",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@vercel/ncc": "^0.36.0",
"find-up": "^6.3.0"
}
}
The MIT License (MIT)
Copyright (c) 2012-22 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
(()=>{"use strict";var e={793:e=>{var r=function(){function defineProperties(e,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(e,r,s){if(r)defineProperties(e.prototype,r);if(s)defineProperties(e,s);return e}}();function _classCallCheck(e,r){if(!(e instanceof r)){throw new TypeError("Cannot call a class as a function")}}var s=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]];var n=function(){r(Anser,null,[{key:"escapeForHtml",value:function escapeForHtml(e){return(new Anser).escapeForHtml(e)}},{key:"linkify",value:function linkify(e){return(new Anser).linkify(e)}},{key:"ansiToHtml",value:function ansiToHtml(e,r){return(new Anser).ansiToHtml(e,r)}},{key:"ansiToJson",value:function ansiToJson(e,r){return(new Anser).ansiToJson(e,r)}},{key:"ansiToText",value:function ansiToText(e){return(new Anser).ansiToText(e)}}]);function Anser(){_classCallCheck(this,Anser);this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null;this.bright=0;this.decorations=[]}r(Anser,[{key:"setupPalette",value:function setupPalette(){this.PALETTE_COLORS=[];for(var e=0;e<2;++e){for(var r=0;r<8;++r){this.PALETTE_COLORS.push(s[e][r].color)}}var n=[0,95,135,175,215,255];var o=function format(e,r,s){return n[e]+", "+n[r]+", "+n[s]};var i=void 0,t=void 0,a=void 0;for(var l=0;l<6;++l){for(var c=0;c<6;++c){for(var u=0;u<6;++u){this.PALETTE_COLORS.push(o(l,c,u))}}}var f=8;for(var h=0;h<24;++h,f+=10){this.PALETTE_COLORS.push(o(f,f,f))}}},{key:"escapeForHtml",value:function escapeForHtml(e){return e.replace(/[&<>\"]/gm,(function(e){return e=="&"?"&amp;":e=='"'?"&quot;":e=="<"?"&lt;":e==">"?"&gt;":""}))}},{key:"linkify",value:function linkify(e){return e.replace(/(https?:\/\/[^\s]+)/gm,(function(e){return'<a href="'+e+'">'+e+"</a>"}))}},{key:"ansiToHtml",value:function ansiToHtml(e,r){return this.process(e,r,true)}},{key:"ansiToJson",value:function ansiToJson(e,r){r=r||{};r.json=true;r.clearLine=false;return this.process(e,r,true)}},{key:"ansiToText",value:function ansiToText(e){return this.process(e,{},false)}},{key:"process",value:function process(e,r,s){var n=this;var o=this;var i=e.split(/\033\[/);var t=i.shift();if(r===undefined||r===null){r={}}r.clearLine=/\r/.test(e);var a=i.map((function(e){return n.processChunk(e,r,s)}));if(r&&r.json){var l=o.processChunkJson("");l.content=t;l.clearLine=r.clearLine;a.unshift(l);if(r.remove_empty){a=a.filter((function(e){return!e.isEmpty()}))}return a}else{a.unshift(t)}return a.join("")}},{key:"processChunkJson",value:function processChunkJson(e,r,n){r=typeof r=="undefined"?{}:r;var o=r.use_classes=typeof r.use_classes!="undefined"&&r.use_classes;var i=r.key=o?"class":"color";var t={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:false,clearLine:r.clearLine,decoration:null,decorations:[],was_processed:false,isEmpty:function isEmpty(){return!t.content}};var a=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!a)return t;var l=t.content=a[4];var c=a[2].split(";");if(a[1]!==""||a[3]!=="m"){return t}if(!n){return t}var u=this;while(c.length>0){var f=c.shift();var h=parseInt(f);if(isNaN(h)||h===0){u.fg=u.bg=null;u.decorations=[]}else if(h===1){u.decorations.push("bold")}else if(h===2){u.decorations.push("dim")}else if(h===3){u.decorations.push("italic")}else if(h===4){u.decorations.push("underline")}else if(h===5){u.decorations.push("blink")}else if(h===7){u.decorations.push("reverse")}else if(h===8){u.decorations.push("hidden")}else if(h===9){u.decorations.push("strikethrough")}else if(h===21){u.removeDecoration("bold")}else if(h===22){u.removeDecoration("bold");u.removeDecoration("dim")}else if(h===23){u.removeDecoration("italic")}else if(h===24){u.removeDecoration("underline")}else if(h===25){u.removeDecoration("blink")}else if(h===27){u.removeDecoration("reverse")}else if(h===28){u.removeDecoration("hidden")}else if(h===29){u.removeDecoration("strikethrough")}else if(h===39){u.fg=null}else if(h===49){u.bg=null}else if(h>=30&&h<38){u.fg=s[0][h%10][i]}else if(h>=90&&h<98){u.fg=s[1][h%10][i]}else if(h>=40&&h<48){u.bg=s[0][h%10][i]}else if(h>=100&&h<108){u.bg=s[1][h%10][i]}else if(h===38||h===48){var v=h===38;if(c.length>=1){var g=c.shift();if(g==="5"&&c.length>=1){var p=parseInt(c.shift());if(p>=0&&p<=255){if(!o){if(!this.PALETTE_COLORS){u.setupPalette()}if(v){u.fg=this.PALETTE_COLORS[p]}else{u.bg=this.PALETTE_COLORS[p]}}else{var d=p>=16?"ansi-palette-"+p:s[p>7?1:0][p%8]["class"];if(v){u.fg=d}else{u.bg=d}}}}else if(g==="2"&&c.length>=3){var b=parseInt(c.shift());var _=parseInt(c.shift());var m=parseInt(c.shift());if(b>=0&&b<=255&&_>=0&&_<=255&&m>=0&&m<=255){var k=b+", "+_+", "+m;if(!o){if(v){u.fg=k}else{u.bg=k}}else{if(v){u.fg="ansi-truecolor";u.fg_truecolor=k}else{u.bg="ansi-truecolor";u.bg_truecolor=k}}}}}}}if(u.fg===null&&u.bg===null&&u.decorations.length===0){return t}else{var y=[];var T=[];var w={};t.fg=u.fg;t.bg=u.bg;t.fg_truecolor=u.fg_truecolor;t.bg_truecolor=u.bg_truecolor;t.decorations=u.decorations;t.decoration=u.decorations.slice(-1).pop()||null;t.was_processed=true;return t}}},{key:"processChunk",value:function processChunk(e,r,n){var o=this;r=r||{};var i=this.processChunkJson(e,r,n);var t=r.use_classes;i.decorations=i.decorations.filter((function(e){if(e==="reverse"){if(!i.fg){i.fg=s[0][7][t?"class":"color"]}if(!i.bg){i.bg=s[0][0][t?"class":"color"]}var r=i.fg;i.fg=i.bg;i.bg=r;var n=i.fg_truecolor;i.fg_truecolor=i.bg_truecolor;i.bg_truecolor=n;i.isInverted=true;return false}return true}));if(r.json){return i}if(i.isEmpty()){return""}if(!i.was_processed){return i.content}var a=[];var l=[];var c=[];var u={};var f=function render_data(e){var r=[];var s=void 0;for(s in e){if(e.hasOwnProperty(s)){r.push("data-"+s+'="'+o.escapeForHtml(e[s])+'"')}}return r.length>0?" "+r.join(" "):""};if(i.isInverted){u["ansi-is-inverted"]="true"}if(i.fg){if(t){a.push(i.fg+"-fg");if(i.fg_truecolor!==null){u["ansi-truecolor-fg"]=i.fg_truecolor;i.fg_truecolor=null}}else{a.push("color:rgb("+i.fg+")")}}if(i.bg){if(t){a.push(i.bg+"-bg");if(i.bg_truecolor!==null){u["ansi-truecolor-bg"]=i.bg_truecolor;i.bg_truecolor=null}}else{a.push("background-color:rgb("+i.bg+")")}}i.decorations.forEach((function(e){if(t){l.push("ansi-"+e);return}if(e==="bold"){l.push("font-weight:bold")}else if(e==="dim"){l.push("opacity:0.5")}else if(e==="italic"){l.push("font-style:italic")}else if(e==="hidden"){l.push("visibility:hidden")}else if(e==="strikethrough"){c.push("line-through")}else{c.push(e)}}));if(c.length){l.push("text-decoration:"+c.join(" "))}if(t){return'<span class="'+a.concat(l).join(" ")+'"'+f(u)+">"+i.content+"</span>"}else{return'<span style="'+a.concat(l).join(";")+'"'+f(u)+">"+i.content+"</span>"}}},{key:"removeDecoration",value:function removeDecoration(e){var r=this.decorations.indexOf(e);if(r>=0){this.decorations.splice(r,1)}}}]);return Anser}();e.exports=n}};var r={};function __nccwpck_require__(s){var n=r[s];if(n!==undefined){return n.exports}var o=r[s]={exports:{}};var i=true;try{e[s](o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete r[s]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var s=__nccwpck_require__(793);module.exports=s})();
\ No newline at end of file
{"name":"anser","main":"index.js","author":"Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)","license":"MIT"}
(()=>{var e={969:function(e){(function(r,t){if(true){e.exports=t(r)}else{}})(typeof global!="undefined"?global:this,(function(e){if(e.CSS&&e.CSS.escape){return e.CSS.escape}var cssEscape=function(e){if(arguments.length==0){throw new TypeError("`CSS.escape` requires an argument.")}var r=String(e);var t=r.length;var n=-1;var a;var i="";var u=r.charCodeAt(0);while(++n<t){a=r.charCodeAt(n);if(a==0){i+="�";continue}if(a>=1&&a<=31||a==127||n==0&&a>=48&&a<=57||n==1&&a>=48&&a<=57&&u==45){i+="\\"+a.toString(16)+" ";continue}if(n==0&&t==1&&a==45){i+="\\"+r.charAt(n);continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){i+=r.charAt(n);continue}i+="\\"+r.charAt(n)}return i};if(!e.CSS){e.CSS={}}e.CSS.escape=cssEscape;return cssEscape}))}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var a=r[t]={exports:{}};var i=true;try{e[t].call(a.exports,a,a.exports,__nccwpck_require__);i=false}finally{if(i)delete r[t]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(969);module.exports=t})();
\ No newline at end of file
{"name":"css.escape","main":"index.js","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"license":"MIT"}
Copyright 2014-2020 Benjamin Tan
Copyright 2011-2013 John-David Dalton
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
{"name":"platform","main":"index.js","author":"Benjamin Tan <demoneaux@gmail.com>","license":"MIT"}
Copyright (c) 2009-2011, Mozilla Foundation and contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the names of the Mozilla Foundation nor the names of project
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{"name":"source-map","main":"index.js","author":"Nick Fitzgerald <nfitzgerald@mozilla.com>","license":"BSD-3-Clause"}
MIT License
Copyright (c) 2014-2019 Georg Tavonius
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
(()=>{"use strict";if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var e={};(()=>{var r=e;Object.defineProperty(r,"__esModule",{value:true});var n="<unknown>";function parse(e){var r=e.split("\n");return r.reduce((function(e,r){var n=parseChrome(r)||parseWinjs(r)||parseGecko(r)||parseNode(r)||parseJSC(r);if(n){e.push(n)}return e}),[])}var a=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;var l=/\((\S*)(?::(\d+))(?::(\d+))\)/;function parseChrome(e){var r=a.exec(e);if(!r){return null}var u=r[2]&&r[2].indexOf("native")===0;var t=r[2]&&r[2].indexOf("eval")===0;var i=l.exec(r[2]);if(t&&i!=null){r[2]=i[1];r[3]=i[2];r[4]=i[3]}return{file:!u?r[2]:null,methodName:r[1]||n,arguments:u?[r[2]]:[],lineNumber:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}var u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function parseWinjs(e){var r=u.exec(e);if(!r){return null}return{file:r[2],methodName:r[1]||n,arguments:[],lineNumber:+r[3],column:r[4]?+r[4]:null}}var t=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i;var i=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function parseGecko(e){var r=t.exec(e);if(!r){return null}var a=r[3]&&r[3].indexOf(" > eval")>-1;var l=i.exec(r[3]);if(a&&l!=null){r[3]=l[1];r[4]=l[2];r[5]=null}return{file:r[3],methodName:r[1]||n,arguments:r[2]?r[2].split(","):[],lineNumber:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}var s=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function parseJSC(e){var r=s.exec(e);if(!r){return null}return{file:r[3],methodName:r[1]||n,arguments:[],lineNumber:+r[4],column:r[5]?+r[5]:null}}var o=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function parseNode(e){var r=o.exec(e);if(!r){return null}return{file:r[2],methodName:r[1]||n,arguments:[],lineNumber:+r[3],column:r[4]?+r[4]:null}}r.parse=parse})();module.exports=e})();
\ No newline at end of file
{"name":"stacktrace-parser","main":"index.js","author":"Georg Tavonius <g.tavonius@gmail.com> (http://jaz-lounge.com)","license":"MIT"}
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
var e={};(()=>{e.d=(t,r)=>{for(var n in r){if(e.o(r,n)&&!e.o(t,n)){Object.defineProperty(t,n,{enumerable:true,get:r[n]})}}}})();(()=>{e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();if(typeof e!=="undefined")e.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var t={};e.d(t,{Z:()=>stripAnsi});function ansiRegex({onlyFirst:e=false}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?undefined:"g")}function stripAnsi(e){if(typeof e!=="string"){throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``)}return e.replace(ansiRegex(),"")}var r=t.Z;export{r as default};
\ No newline at end of file
{"name":"strip-ansi","main":"index.js","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT"}
import { initializeHMR } from "./client";
initializeHMR({
assetPrefix: "",
});
import { connect } from "./hmr-client";
import { connectHMR } from "./websocket";
import { register, ReactDevOverlay } from "../overlay/client";
export function initializeHMR(options: { assetPrefix: string }) {
connect({
assetPrefix: options.assetPrefix,
});
connectHMR({
assetPrefix: options.assetPrefix,
log: true,
path: "/turbopack-hmr",
});
register();
}
export { ReactDevOverlay };
This diff is collapsed.
"use client";
import type React from "react";
import { useRouter, usePathname } from "next/dist/client/components/navigation";
import { useEffect } from "react";
import { subscribeToUpdate } from "./hmr-client";
import { ReactDevOverlay } from "./client";
type HotReloadProps = React.PropsWithChildren<{
assetPrefix?: string;
}>;
export default function HotReload({ assetPrefix, children }: HotReloadProps) {
const router = useRouter();
const path = usePathname()!.slice(1);
useEffect(() => {
const unsubscribe = subscribeToUpdate(
{
path,
headers: {
rsc: "1",
},
},
(update) => {
if (update.type !== "issues") {
router.refresh();
}
}
);
return unsubscribe;
}, [router, path]);
return <ReactDevOverlay globalOverlay={true}>{children}</ReactDevOverlay>;
}
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/client/dev/error-overlay/websocket.ts
let source: WebSocket;
const eventCallbacks: ((event: WebsocketEvent) => void)[] = [];
// TODO: add timeout again
// let lastActivity = Date.now()
function getSocketProtocol(assetPrefix: string): string {
let protocol = location.protocol;
try {
// assetPrefix is a url
protocol = new URL(assetPrefix).protocol;
} catch (_) {}
return protocol === "http:" ? "ws" : "wss";
}
type WebsocketEvent =
| {
type: "connected";
}
| {
type: "message";
message: MessageEvent;
};
export function addEventListener(cb: (event: WebsocketEvent) => void) {
eventCallbacks.push(cb);
}
export function sendMessage(data: any) {
if (!source || source.readyState !== source.OPEN) return;
return source.send(data);
}
export type HMROptions = {
path: string;
assetPrefix: string;
timeout?: number;
log?: boolean;
};
export function connectHMR(options: HMROptions) {
const { timeout = 5 * 1000 } = options;
function init() {
if (source) source.close();
console.log("[HMR] connecting...");
function handleOnline() {
eventCallbacks.forEach((cb) => {
cb({
type: "connected",
});
});
if (options.log) console.log("[HMR] connected");
// lastActivity = Date.now()
}
function handleMessage(event: MessageEvent) {
// lastActivity = Date.now()
eventCallbacks.forEach((cb) => {
cb({
type: "message",
message: event,
});
});
}
// let timer: NodeJS.Timeout
function handleDisconnect() {
source.close();
setTimeout(init, timeout);
}
const { hostname, port } = location;
const protocol = getSocketProtocol(options.assetPrefix || "");
const assetPrefix = options.assetPrefix.replace(/^\/+/, "");
let url = `${protocol}://${hostname}:${port}${
assetPrefix ? `/${assetPrefix}` : ""
}`;
if (assetPrefix.startsWith("http")) {
url = `${protocol}://${assetPrefix.split("://")[1]}`;
}
source = new window.WebSocket(`${url}${options.path}`);
source.onopen = handleOnline;
source.onerror = handleDisconnect;
source.onmessage = handleMessage;
}
init();
}
// Provided by the rust generate code
type FileType =
| "layout"
| "template"
| "error"
| "loading"
| "not-found"
| "head";
declare global {
// an array of all layouts and the page
const LAYOUT_INFO: ({
segment: string;
page?: { module: any; chunks: string[] };
} & {
[componentKey in FileType]?: { module: any; chunks: string[] };
})[];
// array of chunks for the bootstrap script
const BOOTSTRAP: string[];
const IPC: Ipc<unknown, unknown>;
}
import type { Ipc } from "@vercel/turbopack-next/ipc/index";
import type { IncomingMessage, ServerResponse } from "node:http";
import type {
FlightCSSManifest,
FlightManifest,
} from "next/dist/build/webpack/plugins/flight-manifest-plugin";
import type { RenderData } from "types/turbopack";
import "next/dist/server/node-polyfill-fetch";
import "next/dist/server/node-polyfill-web-streams";
import "@vercel/turbopack-next/polyfill/async-local-storage";
import { RenderOpts, renderToHTMLOrFlight } from "next/dist/server/app-render";
import { PassThrough } from "stream";
import { ServerResponseShim } from "@vercel/turbopack-next/internal/http";
import { headersFromEntries } from "@vercel/turbopack-next/internal/headers";
import { parse, ParsedUrlQuery } from "node:querystring";
globalThis.__next_require__ = (data) => {
const [, , , ssr_id] = JSON.parse(data);
return __turbopack_require__(ssr_id);
};
globalThis.__next_chunk_load__ = () => Promise.resolve();
process.env.__NEXT_NEW_LINK_BEHAVIOR = "true";
const ipc = IPC as Ipc<IpcIncomingMessage, IpcOutgoingMessage>;
type IpcIncomingMessage = {
type: "headers";
data: RenderData;
};
type IpcOutgoingMessage = {
type: "response";
statusCode: number;
headers: Array<[string, string]>;
body: string;
};
const MIME_TEXT_HTML_UTF8 = "text/html; charset=utf-8";
(async () => {
while (true) {
const msg = await ipc.recv();
let renderData: RenderData;
switch (msg.type) {
case "headers": {
renderData = msg.data;
break;
}
default: {
console.error("unexpected message type", msg.type);
process.exit(1);
}
}
const result = await runOperation(renderData);
if (result == null) {
throw new Error("no html returned");
}
ipc.send({
type: "response",
statusCode: 200,
...result,
});
}
})().catch((err) => {
ipc.sendError(err);
});
// TODO expose these types in next.js
type ComponentModule = () => any;
type ModuleReference = [componentModule: ComponentModule, filePath: string];
export type ComponentsType = {
[componentKey in FileType]?: ModuleReference;
} & {
page?: ModuleReference;
};
type LoaderTree = [
segment: string,
parallelRoutes: { [parallelRouterKey: string]: LoaderTree },
components: ComponentsType
];
type ServerComponentsManifest = {
[id: string]: ServerComponentsManifestModule;
};
type ServerComponentsManifestModule = {
[exportName: string]: { id: string; chunks: string[]; name: string };
};
async function runOperation(renderData: RenderData) {
const layoutInfoChunks: Record<string, string[]> = {};
const pageItem = LAYOUT_INFO[LAYOUT_INFO.length - 1];
const pageModule = pageItem.page!.module;
let tree: LoaderTree = [
"",
{},
{ page: [() => pageModule.module, "page.js"] },
];
layoutInfoChunks["page"] = pageItem.page!.chunks;
for (let i = LAYOUT_INFO.length - 2; i >= 0; i--) {
const info = LAYOUT_INFO[i];
const components: ComponentsType = {};
for (const key of Object.keys(info)) {
if (key === "segment") {
continue;
}
const k = key as FileType;
components[k] = [() => info[k]!.module.module, `${k}${i}.js`];
layoutInfoChunks[`${k}${i}`] = info[k]!.chunks;
}
tree = [info.segment, { children: tree }, components];
}
const proxyMethodsForModule = (
id: string
): ProxyHandler<FlightManifest["__ssr_module_mapping__"][""]> => ({
get(_target, name) {
return {
id,
chunks: JSON.parse(id)[1],
name,
};
},
});
const proxyMethodsNested = (): ProxyHandler<
FlightManifest["__ssr_module_mapping__"]
> => {
return {
get(target, name, receiver) {
if (name === "__ssr_module_mapping__") {
return manifest;
}
if (name === "__entry_css_files__") {
return __entry_css_files__;
}
return new Proxy({}, proxyMethodsForModule(name as string));
},
};
};
const proxyMethods = (): ProxyHandler<FlightManifest> => {
return {
get(_target, key: string) {
if (key === "__ssr_module_mapping__") {
return new Proxy({} as any, proxyMethodsNested());
}
if (key === "__entry_css_files__") {
return __entry_css_files__;
}
// The key is a `${file}#${name}`, but `file` can contain `#` itself.
// There are 2 possibilities:
// "file#" => id = "file", name = ""
// "file#foo" => id = "file", name = "foo"
const pos = key.lastIndexOf("#");
let id = key;
let name = "";
if (pos === -1) {
throw new Error("key need to be in format of ${file}#${name}");
} else {
id = key.slice(0, pos);
name = key.slice(pos + 1);
}
return {
id,
name,
chunks: JSON.parse(id)[1],
};
},
};
};
const manifest: FlightManifest = new Proxy({} as any, proxyMethods());
const serverCSSManifest: FlightCSSManifest = {};
const __entry_css_files__: FlightManifest["__entry_css_files__"] = {};
for (const [key, chunks] of Object.entries(layoutInfoChunks)) {
const cssChunks = chunks.filter((path) => path.endsWith(".css"));
serverCSSManifest[`${key}.js`] = cssChunks.map((chunk) =>
JSON.stringify([chunk, [chunk]])
);
__entry_css_files__[key] = cssChunks;
}
serverCSSManifest.__entry_css_mods__ = {
page: serverCSSManifest["page.js"],
};
const req: IncomingMessage = {
url: renderData.url,
method: renderData.method,
headers: headersFromEntries(renderData.rawHeaders),
} as any;
const res: ServerResponse = new ServerResponseShim(req) as any;
const parsedQuery = parse(renderData.rawQuery);
const query = { ...parsedQuery, ...renderData.params };
const renderOpt: Omit<
RenderOpts,
"App" | "Document" | "Component" | "pathname"
> & { params: ParsedUrlQuery } = {
params: renderData.params,
supportsDynamicHTML: true,
dev: true,
buildManifest: {
polyfillFiles: [],
rootMainFiles: Object.values(layoutInfoChunks)
.flat()
.concat(BOOTSTRAP)
.filter((path) => path.endsWith(".js")),
devFiles: [],
ampDevFiles: [],
lowPriorityFiles: [],
pages: {
"/_app": [],
},
ampFirstPages: [],
},
ComponentMod: {
...pageModule,
default: undefined,
tree,
pages: ["page.js"],
},
serverComponentManifest: manifest,
serverCSSManifest,
runtime: "nodejs",
serverComponents: true,
assetPrefix: "",
pageConfig: pageModule.config,
reactLoadableManifest: {},
};
const result = await renderToHTMLOrFlight(
req,
res,
renderData.path,
query,
renderOpt as any as RenderOpts
);
if (!result) throw new Error("rendering was not successful");
let body;
if (result.isDynamic()) {
const stream = new PassThrough();
result.pipe(stream);
const chunks = [];
for await (const chunk of stream) {
chunks.push(chunk);
}
body = Buffer.concat(chunks).toString();
} else {
body = result.toUnchunkedString();
}
return {
headers: [
["Content-Type", result.contentType() ?? MIME_TEXT_HTML_UTF8],
] as [string, string][],
body,
};
}
// This utility is based on https://github.com/zertosh/htmlescape
// License: https://github.com/zertosh/htmlescape/blob/0527ca7156a524d256101bb310a9f970f63078ad/LICENSE
const ESCAPE_LOOKUP = {
"&": "\\u0026",
">": "\\u003e",
"<": "\\u003c",
"\u2028": "\\u2028",
"\u2029": "\\u2029",
};
const ESCAPE_REGEX = /[&><\u2028\u2029]/g;
export function htmlEscapeJsonString(str: string) {
return str.replace(
ESCAPE_REGEX,
(match) => ESCAPE_LOOKUP[match as keyof typeof ESCAPE_LOOKUP]
);
}
import ReactDOMClient from "react-dom/client";
import React, { use } from "react";
import type { ReactElement } from "react";
// @ts-expect-error
import { version } from "next/package.json";
import { createFromReadableStream } from "next/dist/compiled/react-server-dom-webpack/client";
import { HeadManagerContext } from "next/dist/shared/lib/head-manager-context";
import { initializeHMR } from "@vercel/turbopack-next/dev/client";
initializeHMR({
assetPrefix: "",
});
window.next = {
version,
appDir: true,
};
globalThis.__next_require__ = (data) => {
const [client_id, chunks, chunkListPath] = JSON.parse(data);
__turbopack_register_chunk_list__(chunkListPath, chunks);
return __turbopack_require__(client_id);
};
globalThis.__next_chunk_load__ = __turbopack_load__;
process.env.__NEXT_NEW_LINK_BEHAVIOR = "true";
const appElement = document;
const getCacheKey = () => {
const { pathname, search } = location;
return pathname + search;
};
const encoder = new TextEncoder();
let initialServerDataBuffer: string[] | undefined = undefined;
let initialServerDataWriter: ReadableStreamDefaultController | undefined =
undefined;
let initialServerDataLoaded = false;
let initialServerDataFlushed = false;
function nextServerDataCallback(
seg: [isBootStrap: 0] | [isNotBootstrap: 1, responsePartial: string]
): number {
if (seg[0] === 0) {
initialServerDataBuffer = [];
} else {
if (!initialServerDataBuffer)
throw new Error("Unexpected server data: missing bootstrap script.");
if (initialServerDataWriter) {
initialServerDataWriter.enqueue(encoder.encode(seg[1]));
} else {
initialServerDataBuffer.push(seg[1]);
}
}
return 0;
}
function nextServerDataRegisterWriter(ctr: ReadableStreamDefaultController) {
if (initialServerDataBuffer) {
initialServerDataBuffer.forEach((val) => {
ctr.enqueue(encoder.encode(val));
});
if (initialServerDataLoaded && !initialServerDataFlushed) {
ctr.close();
initialServerDataFlushed = true;
initialServerDataBuffer = undefined;
}
}
initialServerDataWriter = ctr;
}
// When `DOMContentLoaded`, we can close all pending writers to finish hydration.
const DOMContentLoaded = function () {
if (initialServerDataWriter && !initialServerDataFlushed) {
initialServerDataWriter.close();
initialServerDataFlushed = true;
initialServerDataBuffer = undefined;
}
initialServerDataLoaded = true;
};
// It's possible that the DOM is already loaded.
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", DOMContentLoaded, false);
} else {
DOMContentLoaded();
}
const nextServerDataLoadingGlobal = (self.__next_f = self.__next_f || []);
nextServerDataLoadingGlobal.forEach(nextServerDataCallback);
nextServerDataLoadingGlobal.push = nextServerDataCallback;
function createResponseCache() {
return new Map();
}
const rscCache = createResponseCache();
function useInitialServerResponse(cacheKey: string) {
const response = rscCache.get(cacheKey);
if (response) return response;
const readable = new ReadableStream({
start(controller) {
nextServerDataRegisterWriter(controller);
},
});
const newResponse = createFromReadableStream(readable);
rscCache.set(cacheKey, newResponse);
return newResponse;
}
function ServerRoot({ cacheKey }: { cacheKey: string }) {
React.useEffect(() => {
rscCache.delete(cacheKey);
});
const response = useInitialServerResponse(cacheKey);
const root = use(response) as ReactElement;
return root;
}
function RSCComponent() {
const cacheKey = getCacheKey();
return <ServerRoot cacheKey={cacheKey} />;
}
function hydrate() {
const reactEl = (
<React.StrictMode>
<HeadManagerContext.Provider
value={{
appDir: true,
}}
>
<RSCComponent />
</HeadManagerContext.Provider>
</React.StrictMode>
);
const isError = document.documentElement.id === "__next_error__";
if (isError) {
// cast necessary because of a typing bug
const reactRoot = ReactDOMClient.createRoot(
appElement as unknown as DocumentFragment
);
reactRoot.render(reactEl);
} else {
React.startTransition(() => {
ReactDOMClient.hydrateRoot(appElement, reactEl);
});
}
}
window.next = {
version: "turbo",
appDir: true,
};
hydrate();
// this file is just here to make typescript happy about the wrapped/virtual assets (import ".")
declare var Anything: any;
export = Anything;
export const __turbopack_module_id__: string | number;
export const chunks: string[];
export const chunkListPath: string;
export { default as AppRouter } from "next/dist/client/components/app-router.js";
export { default as LayoutRouter } from "next/dist/client/components/layout-router.js";
export { default as RenderFromTemplateContext } from "next/dist/client/components/render-from-template-context.js";
export { default as GlobalError } from "next/dist/client/components/error-boundary.js";
export { staticGenerationAsyncStorage } from "next/dist/client/components/static-generation-async-storage.js";
export { requestAsyncStorage } from "next/dist/client/components/request-async-storage.js";
import * as serverHooks from "next/dist/client/components/hooks-server-context.js";
export { serverHooks };
export { renderToReadableStream } from "next/dist/compiled/react-server-dom-webpack/server.edge";
// @ts-expect-error PAGE is provided by rust
import * as module from "PAGE";
export { module };
declare const PAGE: string;
import { adapter, enhanceGlobals } from "next/dist/server/web/adapter";
import { getHandle } from "next/dist/build/webpack/loaders/next-edge-app-route-loader/handle";
import { staticGenerationAsyncStorage } from "next/dist/client/components/static-generation-async-storage";
import * as serverHooks from "next/dist/client/components/hooks-server-context";
import { staticGenerationBailout } from "next/dist/client/components/static-generation-bailout";
import * as headerHooks from "next/dist/client/components/headers";
import { requestAsyncStorage } from "next/dist/client/components/request-async-storage";
enhanceGlobals();
// @ts-expect-error ENTRY is set from rust code
import * as handlers from "ENTRY";
const mod = {
handlers,
resolvedPagePath: `app/${PAGE}`,
staticGenerationAsyncStorage,
serverHooks,
staticGenerationBailout,
headerHooks,
requestAsyncStorage,
};
const handler = getHandle({
mod,
page: `/${PAGE}`,
});
// @ts-ignore
globalThis._ENTRIES = {
middleware_edge: {
default: function (opts: any) {
return adapter({
...opts,
page: `/${PAGE}`,
handler,
});
},
},
};
// IPC need to be the first import to allow it to catch errors happening during
// the other imports
import startHandler from "@vercel/turbopack-next/internal/api-server-handler";
import { runEdgeFunction } from "@vercel/turbopack-next/internal/edge";
import { join } from "path";
import "next/dist/server/node-polyfill-fetch.js";
import chunkGroup from "ROUTE_CHUNK_GROUP";
import {
NodeNextRequest,
NodeNextResponse,
} from "next/dist/server/base-http/node";
startHandler(async ({ request, response, query, params, path }) => {
const edgeInfo = {
name: "edge",
paths: chunkGroup.map((chunk: string) =>
join(process.cwd(), ".next/server/app", chunk)
),
wasm: [],
env: [],
assets: [],
};
await runEdgeFunction({
edgeInfo,
outputDir: "app",
req: new NodeNextRequest(request),
res: new NodeNextResponse(response),
query,
params,
path,
onWarning(warning) {
console.warn(warning);
},
});
});
import { createProxy } from "next/dist/build/webpack/loaders/next-flight-loader/module-proxy";
("TURBOPACK { chunking-type: isolatedParallel }");
// @ts-expect-error CLIENT_MODULE is provided by rust
import { __turbopack_module_id__ as id } from "CLIENT_MODULE";
// @ts-expect-error CLIENT_CHUNKS is provided by rust
import client_id, { chunks, chunkListPath } from "CLIENT_CHUNKS";
export default createProxy(
JSON.stringify([client_id, chunks, chunkListPath, id])
);
import { createProxy } from "next/dist/build/webpack/loaders/next-flight-loader/module-proxy";
// @ts-expect-error CLIENT_CHUNKS is provided by rust
import client_id, { chunks, chunkListPath } from "CLIENT_CHUNKS";
export default createProxy(JSON.stringify([client_id, chunks, chunkListPath]));
import loadConfig from "next/dist/server/config";
import loadCustomRoutes from "next/dist/lib/load-custom-routes";
import { PHASE_DEVELOPMENT_SERVER } from "next/dist/shared/lib/constants";
import assert from "node:assert";
const loadNextConfig = async (silent) => {
const nextConfig = await loadConfig(
PHASE_DEVELOPMENT_SERVER,
process.cwd(),
undefined,
undefined,
silent
);
nextConfig.generateBuildId = await nextConfig.generateBuildId?.();
const customRoutes = await loadCustomRoutes(nextConfig);
nextConfig.headers = customRoutes.headers;
nextConfig.rewrites = customRoutes.rewrites;
nextConfig.redirects = customRoutes.redirects;
// TODO: these functions takes arguments, have to be supported in a different way
nextConfig.exportPathMap = nextConfig.exportPathMap && {};
nextConfig.webpack = nextConfig.webpack && {};
if (nextConfig.experimental?.turbopack?.loaders) {
ensureLoadersHaveSerializableOptions(
nextConfig.experimental.turbopack.loaders
);
}
return nextConfig;
};
export { loadNextConfig as default };
function ensureLoadersHaveSerializableOptions(turbopackLoaders) {
for (const [ext, loaderItems] of Object.entries(turbopackLoaders)) {
for (const loaderItem of loaderItems) {
if (
typeof loaderItem !== "string" &&
!deepEqual(loaderItem, JSON.parse(JSON.stringify(loaderItem)))
) {
throw new Error(
`loader ${loaderItem.loader} for match "${ext}" does not have serializable options. Ensure that options passed are plain JavaScript objects and values.`
);
}
}
}
}
function deepEqual(a, b) {
try {
assert.deepStrictEqual(a, b);
return true;
} catch {
return false;
}
}
declare const NAME: string;
declare const PAGE: string;
import { adapter, enhanceGlobals } from "next/dist/server/web/adapter";
enhanceGlobals();
var mod = require("ENTRY");
var handler = mod.middleware || mod.default;
if (typeof handler !== "function") {
throw new Error(
`The Edge Function "pages/${PAGE}" must export a \`default\` function`
);
}
// @ts-ignore
globalThis._ENTRIES = {
[`middleware_${NAME}`]: {
default: function (opts: any) {
return adapter({
...opts,
page: `/${PAGE}`,
handler,
});
},
},
};
// TODO(alexkirsz) export * would be preferrable here once supported.
export {
default,
getStaticProps,
__N_SSG,
__N_SSP,
} from "@vercel/turbopack-next/internal/_error";
import "@vercel/turbopack-next/internal/shims-client";
import { createRoot } from "react-dom/client";
import {
initializeHMR,
ReactDevOverlay,
} from "@vercel/turbopack-next/dev/client";
import { subscribeToUpdate } from "@vercel/turbopack-next/dev/hmr-client";
const pageChunkPath = location.pathname.slice(1);
subscribeToUpdate(
{
path: pageChunkPath,
headers: {
accept: "text/html",
},
},
(update) => {
if (update.type === "restart" || update.type === "notFound") {
location.reload();
}
}
);
initializeHMR({
assetPrefix: "",
});
const el = document.getElementById("__next")!;
el.innerText = "";
createRoot(el).render(<ReactDevOverlay />);
// this file is just here to make typescript happy about the wrapped/virtual assets (import ".")
declare var Anything: any;
export = Anything;
((manifest) => {
// adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/build/webpack/plugins/build-manifest-plugin.ts#L54-L54
function processRoute(rewrite) {
// omit external rewrite destinations since these aren't
// handled client-side
if (!rewrite.destination.startsWith("/")) {
delete rewrite.destination;
}
return rewrite;
}
manifest.__rewrites.beforeFiles.map(processRoute);
manifest.__rewrites.afterFiles.map(processRoute);
manifest.__rewrites.fallback.map(processRoute);
self.__BUILD_MANIFEST = manifest;
self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB();
})($$MANIFEST$$);
import * as page from "PAGE";
// inserted by rust code
declare const PAGE_PATH: string;
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/build/webpack/loaders/next-client-pages-loader.ts
(window.__NEXT_P = window.__NEXT_P || []).push([
PAGE_PATH,
() => {
return page;
},
]);
if (module.hot) {
module.hot.dispose(function () {
window.__NEXT_P.push([PAGE_PATH]);
});
}
This diff is collapsed.
This diff is collapsed.
// IPC need to be the first import to allow it to catch errors happening during
// the other imports
import startHandler from "@vercel/turbopack-next/internal/page-server-handler";
// eslint-disable-next-line
import Document from "next/document";
import App from "next/app";
// @ts-expect-error INNER is provided by rust
import * as otherExports from "INNER";
startHandler({
isDataReq: true,
App,
Document,
Component: () => {},
otherExports,
});
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
// This ensures Next.js uses React 18's APIs (hydrateRoot) instead of React 17's
// (hydrate).
process.env.__NEXT_REACT_ROOT = "true";
This diff is collapsed.
This diff is collapsed.
# Turbopack Next Dev Overlay
Adapted from [next.js](https://github.com/vercel/next.js/tree/canary/packages/react-dev-overlay)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment