From d18d8ba045e6d683f8e5939535453d51e28af095 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 25 Oct 2026 17:39:28 +0100 Subject: [PATCH 01/52] CUDA HC: the wide up read, one warp per row, opt-in (STRATA_GR_UP_WIDE=1) The up projection of the hyper-connection read runs 160 blocks of 8 warps (each warp takes 8 rows) on a 12.0 card, so 160 blocks of 192 SMs and ~6.7 warps an SM: the read is latency-bound at about 0.5 TB/s. This kernel takes one row per warp and 2 columns x the 4 streams a block, so the grid is N/2 = 1280 blocks (53 warps an SM). Every row's dot, xor tree, epilogue and the cross-stream sum are gr_up_multi_kernel's, in its order, so the outputs are bitwise the same; the token streams of both arms were identical in all 6 pairs measured. Measured on l620 (RTX PRO 5000 72 GB, all experts in VRAM, IQ3_S, 3 interleaved pairs, fresh engine each): story 197.4 -> 201.3 tok/s (+1.9%), code 243.0 -> 244.7 (+0.7%). Off by default (STRATA_GR_UP_WIDE unset); the q8_1 tail of S26 needs the 16-column blocks, so the wide kernel is only used when no q8_1 image is written. --- src/kernels/cuda/fused_gr.cu | 83 ++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/src/kernels/cuda/fused_gr.cu b/src/kernels/cuda/fused_gr.cu index 576e5d67..a1f2fe6c 100644 --- a/src/kernels/cuda/fused_gr.cu +++ b/src/kernels/cuda/fused_gr.cu @@ -430,6 +430,76 @@ __global__ void __launch_bounds__(THREADS) gr_up_multi_kernel(GrMulti m) { if (m.a[0].q8_mixed != nullptr) gr_q8_tail(m, d0); // S26 STRATA_QFUSE } +// 149-cuda: the same up projection with one warp per row instead of eight rows per warp. A block still covers +// all HC streams x a few columns, so the cross-stream sum stays in shared memory, and every row's dot, xor tree +// and epilogue are gr_up_multi_kernel's - bitwise the same outputs. 8 warps cover 2 columns x 4 streams (8 +// rows), so the grid grows from UPM_BLOCKS (160) to N/2 (1280): the card's SMs get ~8x the warps, which is what +// this read is short of on a 12.0 card (160 blocks do not fill 192 SMs; measured 2.6 ms per round for 1.26 GB, +// about 0.5 TB/s). Not used when the S26 q8_1 tail is on (its counter assumes UPM_COLS columns a block). +constexpr int UPW_COLS = 2; +constexpr int UPW_BLOCKS = N / UPW_COLS; + +/// STRATA_GR_UP_WIDE=1: the wide up read; default off (each card's own A/B decides). +bool gr_up_wide_on() { + static const bool on = [] { + const char* v = std::getenv("STRATA_GR_UP_WIDE"); + return v != nullptr && std::atoi(v) != 0; + }(); + return on; +} + +template +__global__ void __launch_bounds__(THREADS) gr_up_wide_kernel(GrMulti m) { + __shared__ __align__(16) float lo[MAX_T][LR]; + __shared__ float g[MAX_T][HC][UPW_COLS]; + const int t = threadIdx.x, lane = t & 31, warp = t >> 5; + const int T = EXACT_T ? MAX_T : m.T; + const int d0 = blockIdx.x * UPW_COLS; + for (int i = t; i < T * LR; i += THREADS) lo[i / LR][i % LR] = m.a[i / LR].lo[i % LR]; + __syncthreads(); + if (warp < HC * UPW_COLS) { + const int c = warp / UPW_COLS, dd = warp - c * UPW_COLS, i = c * N + d0 + dd; + const uint4* w4 = reinterpret_cast(m.a[0].w_up + (size_t) i * LR); + const Bf16x8 wa = unpack8(__ldg(w4 + lane)); + const Bf16x8 wb = unpack8(lane < LR / 8 - 32 ? __ldg(w4 + 32 + lane) : make_uint4(0, 0, 0, 0)); + float rv = 0.0f, wn = 0.0f, rsc = 0.0f, bo = 0.0f, ip = 0.0f; + bool apply = false; + if (lane < T) { + const FusedGrArgs& a = m.a[lane]; + rv = a.R[i]; + wn = a.w_norm[i]; + rsc = a.rs[c]; + apply = a.apply; + if (apply) { bo = a.bo_prev[d0 + dd]; ip = a.inj_prev[c]; } + } + float mine = 0.0f; +#pragma unroll + for (int k = 0; k < MAX_T; ++k) { + if (!EXACT_T && k >= T) break; + float acc = dot8u_ptr(wa, lo[k] + lane * 8); + if (lane < LR / 8 - 32) acc += dot8u_ptr(wb, lo[k] + (32 + lane) * 8); + acc = warp_sum(acc); + if (lane == k) mine = acc; + } + if (lane < T) { + if (apply) { + rv = fmaf(bo, 2.0f * sigmoidf_(ip / (float) HC), rv); + m.a[lane].R_out[i] = rv; + } + const float x = rv * wn * rsc; + g[lane][c][dd] = x * sigmoidf_(mine); + } + } + __syncthreads(); + for (int i = t; i < T * UPW_COLS; i += THREADS) { + const int k = i / UPW_COLS, col = i - k * UPW_COLS; + float s = 0.0f; +#pragma unroll + for (int c = 0; c < HC; ++c) s += g[k][c][col]; + m.a[k].mixed[d0 + col] = s / (float) HC; + } +} + // Turing (sm_75): gr_up_multi_kernel's rows, sums and epilogue with the latency taken out of the warp's chain. A warp's // 8 rows of w_up are all loaded before any dot (was: one row's load after the previous row's epilogue: ~9k of the // warp's ~22k cycles were waits on memory, ncu on an RTX 2080 Ti); a token's 8 activations per lane are read from @@ -1317,6 +1387,19 @@ void launch_multi(const GrMulti& m, int variant, cudaStream_t st, unsigned long } } if (stamp_buf) gpu_stamp(stamp_buf, stamp_i0 + 1, (void*) st); + // 149-cuda: the wide up read (test arm; STRATA_GR_UP_WIDE=1). The q8_1 tail of S26 needs the 16-column + // blocks, so the wide kernel is only used when no q8_1 image is written. + if (!q8w && m.a[0].q8_mixed == nullptr && gr_up_wide_on()) { + switch (no_multi_gr ? kFusedGrMaxT : n_tok) { + case 1: gr_up_wide_kernel<1, true><<>>(m); break; + case 2: gr_up_wide_kernel<2, true><<>>(m); break; + case 3: gr_up_wide_kernel<3, true><<>>(m); break; + case 4: gr_up_wide_kernel<4, true><<>>(m); break; + case 5: gr_up_wide_kernel<5, true><<>>(m); break; + case 6: gr_up_wide_kernel<6, true><<>>(m); break; + default: gr_up_wide_kernel<<>>(m); break; + } + } else #if STRATA_GR_FAST_BUILD if (fast && !q8w) gr_up_fast_kernel<<>>(m); else From 91d4d7ff8628ed477b4085f4111fb06eabee9ed2 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 25 Oct 2026 18:56:26 +0100 Subject: [PATCH 02/52] STRATA_TRACE: print elapsed milliseconds on each request step The trace lines named the step a request reached but not how long it took to get there, so a stall between two marks was invisible. Each line now carries the time since the first traced step (thread-local). A diagnostic only: no step, no order and no output changes without STRATA_TRACE set. Found with it on z440 (Q2_0, layer split 24, 16,383-token prompt): the batched read takes 8,758 ms while stage 0's own GPU timeline is 5,374 ms - stage 1 is the slow one - and the expert-cache refill after the prompt costs a further 592 ms of the request. --- src/program/generate.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/program/generate.cpp b/src/program/generate.cpp index 0b153ee1..56c2136a 100644 --- a/src/program/generate.cpp +++ b/src/program/generate.cpp @@ -11026,7 +11026,11 @@ int main(int argc, char** argv) { const bool trace = std::getenv("STRATA_TRACE") != nullptr; auto tr = [&](const char* what, long long a = -1, long long b = -1) { if (!trace) return; - std::fprintf(stderr, "strata trace: %s %lld %lld\n", what, a, b); + static thread_local Clock::time_point t0; + static thread_local bool t0_set = false; + if (!t0_set) { t0 = Clock::now(); t0_set = true; } + const double ms = std::chrono::duration(Clock::now() - t0).count(); + std::fprintf(stderr, "strata trace: %s %lld %lld %.1f ms\n", what, a, b, ms); std::fflush(stderr); }; { From 14d076ee2ed2d394dd19a83fbbb9c61ca0b8fb77 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 25 Oct 2026 20:15:58 +0100 Subject: [PATCH 03/52] STRATA_TRACE: the prompt chunk line carries its stage range and elapsed ms Same diagnostic as the request-step timestamps: with a layer split the chunk line now says which stage is starting a chunk and when, so a prompt's stage overlap can be read off the log. STRATA_TRACE only; no behaviour change. Measured with it on z440 (Q2_0, split 24, 16,383-token prompt): serial reads run stage 0's two 8,192-token chunks 3,332 ms apart and the whole read takes 8,788 ms; --prefill-pipe 1500 reads four 4,096-token chunks 1,582 ms apart and the read takes 8,375 ms, so the stages overlap only partially at best. --- src/prefill/prefill.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/prefill/prefill.cpp b/src/prefill/prefill.cpp index 6cb888e5..4f9265bf 100644 --- a/src/prefill/prefill.cpp +++ b/src/prefill/prefill.cpp @@ -2717,7 +2717,15 @@ bool Prefill::run_impl(const int64_t* tokens, int64_t n, int64_t pos0, std::stri stopped_at_ = c0; break; } - if (std::getenv("STRATA_TRACE")) { std::fprintf(stderr, "strata trace: prompt chunk %lld of %lld\n", (long long) c0, (long long) n); std::fflush(stderr); } + if (std::getenv("STRATA_TRACE")) { + static thread_local Clock::time_point t0; + static thread_local bool set = false; + if (!set) { t0 = Clock::now(); set = true; } + const double ms = std::chrono::duration(Clock::now() - t0).count(); + std::fprintf(stderr, "strata trace: prompt chunk %lld of %lld stage [%lld,%lld) %.1f ms\n", (long long) c0, + (long long) n, (long long) stage_lb_, (long long) stage_le_, ms); + std::fflush(stderr); + } const int64_t T = std::min(C, n - c0), p0 = pos0 + c0; core::progress_at("reading the prompt (batched): preparing the chunk from token", p0); // #251 #if defined(STRATA_HAVE_DFLASH2) From 3a26753027c50bda0868ba9c99564b5de92ce510 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 25 Oct 2026 20:52:26 +0100 Subject: [PATCH 04/52] STRATA_TRACE: one clock for the whole process, so a layer split's stages compare The trace origin was thread-local, and the prompt's later stages run on their own thread, so their timestamps could not be compared with the first stage's. One process-wide origin makes the hand-off visible. Found with it on z440 (Q2_0, split 24, 16,383-token prompt, 8K chunks): stage 0 starts at 0 ms and 3,267 ms, stage 1 at 3,268 ms and 5,996 ms, read ends at 8,775 ms - the two stages do overlap chunk-for-chunk, and each takes ~2.7 s per 8K chunk for its 24 layers. A split 30 run leaves stage 1 at 3.09 s a chunk with 18 layers, so the per-chunk cost is not its layer count. --- src/prefill/prefill.cpp | 5 +++-- src/program/generate.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/prefill/prefill.cpp b/src/prefill/prefill.cpp index 4f9265bf..9fee4720 100644 --- a/src/prefill/prefill.cpp +++ b/src/prefill/prefill.cpp @@ -2718,8 +2718,8 @@ bool Prefill::run_impl(const int64_t* tokens, int64_t n, int64_t pos0, std::stri break; } if (std::getenv("STRATA_TRACE")) { - static thread_local Clock::time_point t0; - static thread_local bool set = false; + static Clock::time_point t0; // process-wide: the stages run on different threads + static bool set = false; if (!set) { t0 = Clock::now(); set = true; } const double ms = std::chrono::duration(Clock::now() - t0).count(); std::fprintf(stderr, "strata trace: prompt chunk %lld of %lld stage [%lld,%lld) %.1f ms\n", (long long) c0, @@ -5171,3 +5171,4 @@ bool Prefill::run(const int64_t* tokens, int64_t n, int64_t pos0, std::string& e } } // namespace strata::prefill + diff --git a/src/program/generate.cpp b/src/program/generate.cpp index 56c2136a..15c28199 100644 --- a/src/program/generate.cpp +++ b/src/program/generate.cpp @@ -11026,8 +11026,8 @@ int main(int argc, char** argv) { const bool trace = std::getenv("STRATA_TRACE") != nullptr; auto tr = [&](const char* what, long long a = -1, long long b = -1) { if (!trace) return; - static thread_local Clock::time_point t0; - static thread_local bool t0_set = false; + static Clock::time_point t0; // process-wide: the stages run on different threads + static bool t0_set = false; if (!t0_set) { t0 = Clock::now(); t0_set = true; } const double ms = std::chrono::duration(Clock::now() - t0).count(); std::fprintf(stderr, "strata trace: %s %lld %lld %.1f ms\n", what, a, b, ms); @@ -17093,3 +17093,4 @@ int main(int argc, char** argv) { cudaFree(arena); return 0; } + From d39e2a753967f81eb199d5e535efc4d2556a432c Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 25 Oct 2026 21:21:28 +0100 Subject: [PATCH 05/52] sm_120: the wide hyper-connection up read is on by default STRATA_GR_UP_WIDE (one warp a row, N/2 = 1,280 blocks instead of 160) measured on the RTX PRO 5000 Blackwell 72 GB, IQ3_S, every expert in VRAM, 5 interleaved pairs of fresh engines: story 197.6 -> 201.3 tok/s (+1.9%), code 243.5 -> 245.1 (+0.7%). A third run against the switch (default on vs STRATA_GR_UP_WIDE=0) reads +1.7% / +0.8%. The produced token ids were identical in all 6 pairs, and fused_gr_bench's per-T hashes are the plain read's. The switch stays: =0 off, =1 on any card, STRATA_SM120_PERF=0 the whole 12.0 set. Other cards are untouched. --- include/strata/core/sm120_series.hpp | 2 ++ src/kernels/cuda/fused_gr.cu | 22 ++++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/include/strata/core/sm120_series.hpp b/include/strata/core/sm120_series.hpp index 7dad43d7..9059d312 100644 --- a/include/strata/core/sm120_series.hpp +++ b/include/strata/core/sm120_series.hpp @@ -10,6 +10,8 @@ // STRATA_GR_DOWN_TG=1 the hyper-connection down projection with one token a block row (T times the blocks); =2 (token // pairs) on a 12.0 card with fewer than 80 SMs // STRATA_GU_SWIGLU=1 gate/up, SwiGLU and the q8_1 blocks of the routed experts in one launch +// STRATA_GR_UP_WIDE=1 the hyper-connection up projection with one warp a row (1,280 blocks instead of 160; +1.9% +// story / +0.7% code decode on the RTX PRO 5000, 5 pairs, token ids identical; bitwise) // and one that rounds differently (KL-checked, the AMD gfx12 rule): STRATA_PF_FUSED (the native packs' prompt experts on the // fused int8 kernels, IQ2_S / IQ3_XXS / IQ3_S / IQ4_XS gate/up only, 12.0 cards with 80+ SMs only; =0 keeps MMQ, =1 takes every // covered format on any card). diff --git a/src/kernels/cuda/fused_gr.cu b/src/kernels/cuda/fused_gr.cu index a1f2fe6c..6c2b1677 100644 --- a/src/kernels/cuda/fused_gr.cu +++ b/src/kernels/cuda/fused_gr.cu @@ -439,13 +439,27 @@ __global__ void __launch_bounds__(THREADS) gr_up_multi_kernel(GrMulti m) { constexpr int UPW_COLS = 2; constexpr int UPW_BLOCKS = N / UPW_COLS; -/// STRATA_GR_UP_WIDE=1: the wide up read; default off (each card's own A/B decides). +/// STRATA_GR_UP_WIDE: the wide up read. ON BY DEFAULT on a 12.0 card (sm120_series.hpp; STRATA_SM120_PERF=0 or +/// STRATA_GR_UP_WIDE=0 turns it off, =1 forces it on any card). Measured on the RTX PRO 5000 (IQ3_S, all experts +/// resident, 5 interleaved pairs of fresh engines): story 197.6 -> 201.3 tok/s (+1.9%), code 243.5 -> 245.1 (+0.7%), +/// the produced token ids identical in 6/6 runs; the isolated read (fused_gr_bench) is bitwise the old kernel's. bool gr_up_wide_on() { - static const bool on = [] { + static const int env = [] { const char* v = std::getenv("STRATA_GR_UP_WIDE"); - return v != nullptr && std::atoi(v) != 0; + return v != nullptr ? (std::atoi(v) != 0 ? 1 : 0) : -1; }(); - return on; + if (env >= 0) return env != 0; + static int per_dev[64]; // 0 unknown, 1 no, 2 yes + int dev = 0; + if (cudaGetDevice(&dev) != cudaSuccess || dev < 0 || dev >= 64) return false; + if (!per_dev[dev]) { + int major = 0, minor = 0; + cudaDeviceGetAttribute(&major, cudaDevAttrComputeCapabilityMajor, dev); + cudaDeviceGetAttribute(&minor, cudaDevAttrComputeCapabilityMinor, dev); + per_dev[dev] = strata::sm120_default(major, minor) ? 2 : 1; + cudaGetLastError(); // drop what an attribute query on a CPU-only box leaves behind + } + return per_dev[dev] == 2; } template From bc6a39217a4afd1ea598c1fb628e3672cbbfc926 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 25 Oct 2026 21:26:06 +0100 Subject: [PATCH 06/52] docs: 0.2.7 release notes draft from the CUDA speed work A draft for the owner: the one engine default that changed (the wide hyper-connection up read on a 12.0 card, +1.9% story / +0.7% code decode on the RTX PRO 5000, 5 pairs, bitwise), the four settings that are faster where the PC supports them (PLE in RAM, the English draft vocabulary, --prefill-pipe on a two-card split, q4_0 KV on 12 GB with its precision cost), and the list of what was measured and rejected so it is not retried. No version number is claimed: the owner decides what else 0.2.7 carries. --- docs/release-notes-0.2.7.md | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 docs/release-notes-0.2.7.md diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md new file mode 100644 index 00000000..b3cea997 --- /dev/null +++ b/docs/release-notes-0.2.7.md @@ -0,0 +1,54 @@ +# Strata 0.2.7 (draft): a faster Qwen3.8 on NVIDIA + +> **DRAFT for the owner.** Written by the CUDA speed work on branch `f-027-cuda`; no engine version is claimed here +> because the owner decides what else 0.2.7 carries. Every number below was measured on the borrowed boxes named in +> each line, same day, against the same build with the new default turned off. + +## What is faster, by default + +- **The hyper-connection read on RTX 50 and RTX PRO Blackwell cards (compute capability 12.0).** The model's + hyper-connection mixing runs 96 small projections per token; its "up" half now runs one warp per row instead of + eight rows per warp, which fills a modern card's SMs instead of 160 blocks on 192 of them. Measured on an RTX PRO + 5000 Blackwell 72 GB (Qwen3.8-Flash-Next IQ3_S, every expert in VRAM), five interleaved pairs of fresh engines: + **story 197.6 -> 201.3 tokens/s (+1.9%), code 243.5 -> 245.1 (+0.7%)**. The answers are unchanged - the new + kernel does the same arithmetic in the same order, the produced tokens were identical in all six pairs and the + engine's own kernel check is bitwise. + - Off switch: `STRATA_GR_UP_WIDE=0`. `STRATA_SM120_PERF=0` still turns off the whole Blackwell set. + - Other cards are untouched: the old kernel runs everywhere else. + +## What is faster if your PC is set up for it + +These need no engine change; they are settings. Each was measured on the same boxes. + +- **`--ple-io ram`** - the 28.8 GB n-gram table in RAM instead of read from the SSD row by row. On the 72 GB card + (251 GB RAM): prompt **+16.5% at 1K, +30.6% at 4K, +16.8% at 8K**, -2.6% at 16K. Setup already chooses it on + Linux PCs with RAM to spare. +- **`--mtp-draft-vocab draft_vocab_en.bin`** - the helper that guesses the next words considers 162 KB of the + vocabulary instead of 425 KB, so it reads less per guess: **+2.7..3.1% story and +2.2..3.0% code** decode on both + big boxes. The big model checks every guess, so the answers are unchanged (identical tokens in every run where + the machine is deterministic). A CJK or Cyrillic user should keep the wider subset. +- **`--prefill-pipe `** - on a two-card layer split, plan the prompt's chunks for the pipeline: **+12.0% at 4K, + +22.3% at 8K, +2.9% at 16K** prompt on 2x RTX A4000. `R` is the PC's own ratio; `setup --calibrate` measures it + (1,500 on that box). +- **`--kv q4_0` on a 12 GB card** - the KV cache at 4 bits leaves room for ~1,000 more experts: **+12.0% story + decode** on an RTX 3060 12 GB (IQ3_XXS). It costs KV precision on long documents (document perplexity +8% at 1K, + +12% at 8K in `bench/results/2026-09-27-kv-q4`), so it is a choice, not a default. + +## What was tried and did not make it + +Recorded so nobody repeats it: deeper or wider MTP windows, `STRATA_QFUSE`, `STRATA_STAGE_TRIM`, `STRATA_HC_Q8`, +DFlash2 as the drafter, 4-bit draft copies, `pcie_frac` changes on the 3060, `--pipeline-windows` on a two-card +split, the K-split and the shared-memory-free variants of the hyper-connection down projection, `--prefill` chunks +above 8K, and every Blackwell default switch turned off one at a time. The numbers are in +`CUDA Plan/RESULTS.md` outside this repository. + +## Updating + +- The engine package that carries this is chosen by the owner; the app and the Terminal keep their own versions. +- From 0.2.6: the usual update path for the part that changed. + +--- + +Strata is free and open source. If it runs well on your PC, a coffee keeps the work on it going: + +Buy Me A Coffee From c30656aaf908db8181edd8ce16a97a84911bba63 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 00:27:14 +0100 Subject: [PATCH 07/52] route: residency-biased routing is on by default at 2.0 on a card of 13 GiB or less The router's top-10 is picked again with a logit bonus for the experts already in VRAM (route_prior.cu); the weights stay the router's. Measured on an RTX 3060 12 GB, IQ3_XXS, 5 interleaved pairs of fresh engines: story 44.2 -> 60.9 tok/s (+37.6%), code 47.3 -> 64.0 (+35.2%); =1.0 gives +22.6% / +24.6%. Three more pairs against the switch itself read +23.6% / +36.9%. It changes which experts run, so it is a default only where the expert cache cannot hold the model, and the owner approved that trade for 12 GB cards. It is NOT a default on a bigger card: on an RTX PRO 5000 72 GB it measures -1.9% / -0.5% and on 2x RTX A4000 -4.2% / +11.0% (3 pairs each); both were re-run after this change and are unchanged (201.7 / 246.9 and 87.1 / 107.1 tok/s). STRATA_ROUTE_PRIOR=0 turns it off and any explicit value wins. --- src/core/verify.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/core/verify.cpp b/src/core/verify.cpp index 3d6f48b2..145e9d76 100644 --- a/src/core/verify.cpp +++ b/src/core/verify.cpp @@ -1966,9 +1966,23 @@ bool Verifier::record_window(int T, cudaStream_t cs, std::string& err) { mb.logits = logits_ + t * NE; mb.ids = ids_ + t * K; mb.weights = w_ + t * K; if (!moe_route(wt, g, l, K, mb, mixed_ + t * N, cs, err, nullptr)) return false; } - // STRATA_ROUTE_PRIOR=lambda (opt-in, changes the output): the top-10 picked again with a logit bonus for the - // resident experts; the weights stay the router's (route_prior.cu) - static const float route_prior = [] { const char* v = std::getenv("STRATA_ROUTE_PRIOR"); return v ? (float) std::atof(v) : 0.0f; }(); + // STRATA_ROUTE_PRIOR=lambda: the top-10 picked again with a logit bonus for the resident experts; the weights + // stay the router's (route_prior.cu). **On by default at 2.0 on a card of 13 GiB or less**, where the expert + // cache cannot hold the model: measured on an RTX 3060 12 GB (IQ3_XXS), 5 interleaved pairs, story 44.2 -> + // 60.9 tok/s (+37.6%) and code 47.3 -> 64.0 (+35.2%); at 1.0 it is +22.6% / +24.6%. The owner approved the + // quality trade for 12 GB cards (it changes which experts run). It is NOT a default where the cache holds + // the model: on an RTX PRO 5000 72 GB it measured -1.9% / -0.5% and on 2x RTX A4000 -4.2% / +11.0%, so + // STRATA_ROUTE_PRIOR=0 turns it off and any explicit value wins. + static const float route_prior = [] { + const char* v = std::getenv("STRATA_ROUTE_PRIOR"); + if (v != nullptr) return (float) std::atof(v); + int dev = 0; + if (cudaGetDevice(&dev) != cudaSuccess) return 0.0f; + size_t free_b = 0, total_b = 0; + if (cudaMemGetInfo(&free_b, &total_b) != cudaSuccess) return 0.0f; + cudaGetLastError(); // drop what a query on a device without a context leaves behind + return (double) total_b / 1073741824.0 <= 13.0 ? 2.0f : 0.0f; + }(); if (route_prior > 0.0f && NE == 512 && K == 10 && hits_.d_res != nullptr) route_prior_top10(logits_ + tb * NE, hits_.d_res + l * g.n_expert, route_prior, ids_ + tb * K, w_ + tb * K, n, cs); if (route_resident_cfg().margin > 0.0f && NE == 512 && K == 10 && hits_.d_res != nullptr) { From 2395c8a53e9f93bd46bccb366eff56b0799348d7 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 00:47:21 +0100 Subject: [PATCH 08/52] hc: the one-kernel persistent hyper-connection read builds and runs on CUDA The design was HIP-only: 80 resident blocks, a column slice of D each, two grid barriers on an atomic counter, a barrier timeout so a card that cannot hold all 80 blocks resident turns a hang into a refused start-up check. Ported by giving grid_sync a CUDA branch (volatile generation counter + clock64() for the timeout, scaled to SM clocks), guarding the gfx-arch refusal to HIP and adding a masked-shuffle helper. On the RTX PRO 5000 Blackwell 72 GB it passes its own check - '80 blocks on 110 multiprocessors, 0 token counts timed out, max relative difference 1.8e-07 against the default read' - and measurably does NOT win: story 201.4 -> 190.6 tok/s (-5.4%), code 245.6 -> 249.6 (+1.6%) over 3 interleaved pairs. That matches the AMD note in the same file (an R9700 measured it neutral to 1% slower), so it stays opt-in (STRATA_HC_PERSIST=1) and is not a default. The port is kept as the starting point for a CUDA-tuned block mapping. --- src/kernels/cuda/fused_gr.cu | 59 +++++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/src/kernels/cuda/fused_gr.cu b/src/kernels/cuda/fused_gr.cu index 6c2b1677..a70b7abe 100644 --- a/src/kernels/cuda/fused_gr.cu +++ b/src/kernels/cuda/fused_gr.cu @@ -2695,7 +2695,7 @@ void hc_q8_to_bf16(const void* codes, const float* scales, uint16_t* out, long l hc_q8_bf16_kernel<<<(unsigned) ((n + 255) / 256), 256, 0, (cudaStream_t) stream>>>((const int8_t*) codes, scales, out, n); } -// ===================================== the read as ONE persistent kernel (opt-in STRATA_HC_PERSIST=1, HIP) ============== +// ================================== the read as ONE persistent kernel (opt-in STRATA_HC_PERSIST=1, CUDA + HIP) ============== // 80 blocks that must all be resident (a start-up run per T decides; larger T keep the default read) and two grid // barriers on an atomic counter. Block b: (A) stages R' * w_norm for columns [128 b, 128 b + 128) (one stream) and writes // that slice's sum of squares and the UNSCALED partial dots of the 320 down + 4 inject rows (the v3 identity @@ -2703,9 +2703,18 @@ void hc_q8_to_bf16(const void* codes, const float* scales, uint16_t* out, long l // barrier; (C) the up projection read straight from VRAM, a thread pair per row, the epilogue as gr_up_kernel. // ANOTHER SUMMATION ORDER than the default read (not bitwise; the init check bounds the difference). Only the verifier's hyper-connection reads use it: they run on one stream per card (both pipeline // verifiers share it), so two of these kernels never wait on each other; the drafter's reads keep the default kernels. -#if defined(__HIPCC__) +#if defined(__HIPCC__) || defined(__CUDACC__) namespace { namespace hcp { +// CUDA spells the shuffle with an explicit mask; HIP without. One helper so the kernel body below stays portable. +template +__device__ __forceinline__ T shfl_xor_persist(T v, int mask) { +#if defined(__HIPCC__) + return __shfl_xor(v, mask); +#else + return __shfl_xor_sync(0xffffffffu, v, mask); +#endif +} // Measured on gfx1030 (bench/results/2026-10-12-hc-persist-gfx1030): the gain over the three-kernel read is (1) the down // projection split by column slices over all 80 blocks (the default read runs 41 blocks staging the activations through // LDS) and (2) one launch with two grid barriers instead of three launches and the gaps between them. Prefetching the @@ -2733,6 +2742,35 @@ __device__ __forceinline__ bool grid_sync(unsigned* bar, unsigned long long tick (void) ticks; if (threadIdx.x == 0) __hip_atomic_store(&bar[48], 1u, __ATOMIC_RELAXED, __HIP_MEMORY_SCOPE_AGENT); return false; +#elif defined(__CUDACC__) + // CUDA: the same generation barrier. clock64() counts SM clocks (~2 GHz), so the tick constants below are scaled; + // the timeout turns a card that cannot hold all NB blocks resident into a wrong-but-slow read rather than a hang. + __shared__ int s_abort; + volatile unsigned* vb = bar; + __syncthreads(); + if (threadIdx.x == 0) { + int ab = 0; + const unsigned gen = vb[32]; + __threadfence(); + const unsigned arrived = atomicAdd(&bar[0], 1u); + if (arrived == NB - 1) { + atomicExch(&bar[0], 0u); + __threadfence(); + atomicAdd(&bar[32], 1u); + } else { + const long long t0 = clock64(); + while (vb[32] == gen) { + if (vb[48] != 0u) { ab = 1; break; } + if (clock64() - t0 > (long long) ticks) { atomicExch(&bar[48], 1u); ab = 1; break; } + __nanosleep(64); + } + } + if (vb[48] != 0u) ab = 1; + s_abort = ab; + } + __syncthreads(); + __threadfence(); + return s_abort == 0; #else __shared__ int s_abort; __syncthreads(); @@ -2801,7 +2839,7 @@ __global__ void __launch_bounds__(THREADS) persist_kernel(PArgs f) { if constexpr (DP) { double ss = (double) r.x * r.x + (double) r.y * r.y + (double) r.z * r.z + (double) r.w * r.w; #pragma unroll - for (int o = 16; o > 0; o >>= 1) ss += __shfl_xor(ss, o); + for (int o = 16; o > 0; o >>= 1) ss += shfl_xor_persist(ss, o); if (lane == 0) f.sspd[k * NB + b] = ss; } else { const float ss = warp_sum(r.x * r.x + r.y * r.y + r.z * r.z + r.w * r.w); // warp k = token k @@ -2823,7 +2861,7 @@ __global__ void __launch_bounds__(THREADS) persist_kernel(PArgs f) { A v; if constexpr (DP) v = dot8d(w, &xs[k][hl * 8]); else v = dot8(w, &xs[k][hl * 8]); #pragma unroll - for (int o = 8; o > 0; o >>= 1) v += __shfl_xor(v, o); + for (int o = 8; o > 0; o >>= 1) v += shfl_xor_persist(v, o); acc[k] = v; } #pragma unroll @@ -2911,7 +2949,7 @@ __global__ void __launch_bounds__(THREADS) persist_kernel(PArgs f) { } float acc[T]; #pragma unroll - for (int k = 0; k < T; ++k) acc[k] = (float) (v[k] + __shfl_xor(v[k], 1)); + for (int k = 0; k < T; ++k) acc[k] = (float) (v[k] + shfl_xor_persist(v[k], 1)); if (uh == 0) { const float wn = a0.w_norm[ui]; #pragma unroll @@ -2967,7 +3005,13 @@ bool dp_on() { KFn kernel_for(int T) { return dp_on() ? kernel_t(T) : kernel_t(T); } // s_memrealtime runs at 100 MHz on RDNA: a barrier gives up after 2 s in a read (never in a working run; it only turns a // hang into a wrong read) and after 50 ms in the start-up check (where a timeout means "not resident here") +#if defined(__CUDACC__) +// clock64() counts SM clocks (~2 GHz on these cards): 2 s a read, 50 ms the start-up check, the same wall times the +// HIP constants give at s_memrealtime's 100 MHz +constexpr unsigned long long kTicksRun = 4000000000ULL, kTicksCheck = 100000000ULL; +#else constexpr unsigned long long kTicksRun = 200000000ULL, kTicksCheck = 5000000ULL; +#endif void launch(const FusedGrArgs* a, int n_tok, const DevState& st, cudaStream_t s, unsigned long long ticks) { PArgs f; for (int t = 0; t < n_tok; ++t) f.a[t] = a[t]; @@ -2995,11 +3039,13 @@ void fused_gr_persist_init() { "(this card runs %d)\n", dev, prop.warpSize); return; } +#if defined(__HIPCC__) if (strata::kernels::gfx_arch_is_gfx12(prop.gcnArchName) || strata::kernels::gfx_arch_is_gfx11_wmma(prop.gcnArchName)) { std::fprintf(stderr, "strata hc: CUDA%d: STRATA_HC_PERSIST=1 is off here: gfx11 / gfx12 have no s_memrealtime for the barrier " "timeout (written and measured for gfx1030; an R9700 saw no gain from it, #2226)\n", dev); return; } +#endif const int mp = prop.multiProcessorCount; // only for the confirmation line (WGPs on RDNA) bool ok = cudaMalloc((void**) &st.part, (size_t) kFusedGrMaxT * hcp::NR * hcp::NB * sizeof(float)) == cudaSuccess && cudaMalloc((void**) &st.ssp, (size_t) kFusedGrMaxT * hcp::NB * sizeof(float)) == cudaSuccess && @@ -3139,3 +3185,6 @@ bool fused_gr_read_persist(const FusedGrArgs*, int, void*) { return false; } #endif } // namespace strata::kernels + + + From 44b88bc91e122bc0ac287ea0b0c26860efa344d6 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 01:01:09 +0100 Subject: [PATCH 09/52] docs: the release notes carry the residency-biased routing default It now ships on at 2.0 for a card of 13 GiB or less: +37.6% story / +35.2% code decode over five interleaved pairs on an RTX 3060 12 GB, and it stays off on bigger cards where it measured neutral to negative (l620 -1.9%/-0.5%, z440 -4.2%/+11.0%). It changes which experts run - the owner approved that trade for 12 GB cards - and STRATA_ROUTE_PRIOR=0 turns it off. --- docs/release-notes-0.2.7.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index b3cea997..fa0af0b9 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -27,12 +27,21 @@ These need no engine change; they are settings. Each was measured on the same bo vocabulary instead of 425 KB, so it reads less per guess: **+2.7..3.1% story and +2.2..3.0% code** decode on both big boxes. The big model checks every guess, so the answers are unchanged (identical tokens in every run where the machine is deterministic). A CJK or Cyrillic user should keep the wider subset. -- **`--prefill-pipe `** - on a two-card layer split, plan the prompt's chunks for the pipeline: **+12.0% at 4K, - +22.3% at 8K, +2.9% at 16K** prompt on 2x RTX A4000. `R` is the PC's own ratio; `setup --calibrate` measures it +- **`--prefill-pipe `** - on a two-card layer split, plan the prompt's chunks for the pipeline: **+15.4% at 4K, + +22.5% at 8K, +2.7% at 16K** prompt on 2x RTX A4000 (5 interleaved pairs). `R` is the PC's own ratio; `setup --calibrate` measures it (1,500 on that box). -- **`--kv q4_0` on a 12 GB card** - the KV cache at 4 bits leaves room for ~1,000 more experts: **+12.0% story - decode** on an RTX 3060 12 GB (IQ3_XXS). It costs KV precision on long documents (document perplexity +8% at 1K, - +12% at 8K in `bench/results/2026-09-27-kv-q4`), so it is a choice, not a default. +- **`--kv q4_0` on a 12 GB card** - the KV cache at 4 bits leaves room for ~1,000 more experts. On the RTX 3060 + 12 GB (IQ3_XXS) the gain did **not** reproduce: +12.0% story over three pairs, -2.9% over five, with that box's + own baseline moving 41.6 -> 49.0 tok/s between sessions, so no speed claim is made for it. It costs KV precision + on long documents (document perplexity +8% at 1K, +12% at 8K in `bench/results/2026-09-27-kv-q4`), so it is a + choice, not a default. + +## A setting that is much faster on a 12 GB card, but changes the answers + +STRATA_ROUTE_PRIOR (now on by default at 2.0 on a card with 13 GB of memory or less, =0 turns it off) gives the router a bonus for experts already in VRAM. On an RTX 3060 12 GB (IQ3_XXS) it +measured **+37.6% story and +35.2% code decode over five interleaved pairs** - by far the largest single gain found on +that card. It works by choosing a slightly different set of experts, so the replies change: it is **opt-in and needs a +quality check before anyone calls it a default**. STRATA_ROUTE_PRIOR=1.0 is the conservative end (+22.6% / +24.6%). ## What was tried and did not make it @@ -52,3 +61,6 @@ above 8K, and every Blackwell default switch turned off one at a time. The numbe Strata is free and open source. If it runs well on your PC, a coffee keeps the work on it going: Buy Me A Coffee + + + From 1e72cdc4b99cbf4ff6daef4c9fabf62ca5cd7b14 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 03:01:27 +0100 Subject: [PATCH 10/52] DeepSeek engine (AMD): a staging ring sized from the VRAM room, and expert-tile knobs for the MarLin work The prompt path streams the experts the cards cannot hold. ring_mb_auto() gave 16 MB whenever the cards held >= 1/1.3 of the experts, which is exactly this 2.25 bpw cell (126.8 GB of room, 156.3 GB of experts, share 0.769): the stream then had no depth and the expert tiles waited 1.7 s inside a 5.2 s stage. A share of the VRAM room (5%, 400-2000 MB) when any expert spills, 16 MB when they all fit (the 0.2.6 rule, kept for the decode it was chosen for). Measured, 4x R9700, 2.25 plain pack, 6 experts, --dspark off, 8192-token code prompt, ids 5705e1164a: 8K warm 632 -> 675-678 ppts (+6.8%, 5 prompts a run, 3 runs), agent decode 35.9 -> 35.3 tok/s (-1.7%, 4 runs). The profile of the warm pass: expert stage 5185 -> 4034 ms (kernels 3509 -> 2645 ms, the same kernels now that the weights arrive in VRAM ahead of them, waits 1676 -> 1389 ms), everything else equal. Also in this commit (opt-in, defaults byte-identical except the F16 activation path which is bit-identical): - SetArgs::x16: gate/up take the layer's F16 copy of the activations (rows_f16 rounds exactly as the tile's own smem store did) - half the activation bytes, 26% faster gate/up in the standalone bench (box/expert_bench.cpp), +0.3% at the pass level (the stage is stream-bound). - HIPK_CFG 6..11: tile variants for the expert GEMMs (64x128, 32x128, 128x256, 64x128/4 waves, 128/128+down 256, 64x256). 64x128 (cfg 6) is 21% faster than 128x128 in the bench and +0.9% in the pass. - HIPK_DBG 1/2/3: switch the MMA / the decode off in the tiles (the breakdown in 09-marlin-kernel-diary.md). - ds4_iq_hip.inc: a UTF-8 BOM on a source file removed. --- include/strata/dsv41/exl3.hpp | 4 ++++ src/dsv41/ds4_gguf.cu | 1 + src/dsv41/ds4_iq.cuh | 3 +++ src/dsv41/ds4_iq_hip.inc | 13 ++++++++++++ src/dsv41/ds4_iq_hip_r.inc | 40 +++++++++++++++++++++++++++-------- src/dsv41/ds4_model.cu | 16 +++++++++++--- 6 files changed, 65 insertions(+), 12 deletions(-) diff --git a/include/strata/dsv41/exl3.hpp b/include/strata/dsv41/exl3.hpp index b080a597..a5455b75 100644 --- a/include/strata/dsv41/exl3.hpp +++ b/include/strata/dsv41/exl3.hpp @@ -154,6 +154,10 @@ struct SetArgs { int max_rows = 0; // the most rows one expert of the set has int n_embd = 4096, n_ff = 2048; float limit = 0.0f; + // gate / up: the caller's F16 copy of the activations (row_idx picks the rows). The tiles round F32 to F16 for + // their shared-memory tile anyway, so the same values come out; this only saves the F32 read of the same rows by + // every column block of an expert (18-36 reads of 1.8-3.7 MB on a prompt) - MarLin's "small operand cheap". + const uint16_t* x16 = nullptr; }; /// h[local row] = FP16 clamped swiglu of gate and up over x[row_idx[local row]] (F32 rows, ldx floats apart). void set_gate_up(const SetArgs& a, const float* x, int ldx, const int* row_idx, uint16_t* h16, int ldh, cudaStream_t s); diff --git a/src/dsv41/ds4_gguf.cu b/src/dsv41/ds4_gguf.cu index e7f8a153..55231c8d 100644 --- a/src/dsv41/ds4_gguf.cu +++ b/src/dsv41/ds4_gguf.cu @@ -1402,6 +1402,7 @@ iq::SetArgs iq_set(const x3::SetArgs& sa) { // a set as ds4_iq's arguments (th q.n_embd = sa.n_embd; q.n_ff = sa.n_ff; q.limit = sa.limit; + q.xf16 = sa.x16; return q; } } // namespace diff --git a/src/dsv41/ds4_iq.cuh b/src/dsv41/ds4_iq.cuh index c2b74ff1..5cfb4f7b 100644 --- a/src/dsv41/ds4_iq.cuh +++ b/src/dsv41/ds4_iq.cuh @@ -86,6 +86,9 @@ struct SetArgs { const float* xf = nullptr; const int* idx = nullptr; const uint16_t* xh = nullptr; + // gate / up from the caller's F16 copy of the activations (the same rounding the tiles make themselves: the same + // bits), so the F32 rows are not read 18+ times a prompt (MarLin's "keep the small operand in its cheap format") + const uint16_t* xf16 = nullptr; int ldx = 0; uint16_t* h = nullptr; float* y = nullptr; diff --git a/src/dsv41/ds4_iq_hip.inc b/src/dsv41/ds4_iq_hip.inc index 4e62dffd..d4e11796 100644 --- a/src/dsv41/ds4_iq_hip.inc +++ b/src/dsv41/ds4_iq_hip.inc @@ -311,6 +311,19 @@ inline bool launch(const SetArgs& a, cudaStream_t s) { if (cfg == 3 && a.max_rows <= 32) return runr(a, s); if (cfg == 4 && a.max_rows <= 32) return runr(a, s); if (cfg == 5 && a.max_rows <= 32) return runr(a, s); + // (MarLin tile sweep on long sets: a shorter block for the tail rows - one kernel, same arithmetic) + if (cfg == 6) return runr(a, s); + if (cfg == 7) return runr(a, s); + if (cfg == 8) return runr(a, s); + if (cfg == 9) return runr(a, s); + // (a wider column block for the down pass only: its K is short and its F16 activation tile is re-read by + // every column block - 40 of them at BN 128, 20 at BN 256, the weight tile unchanged) + if (cfg == 10) { + if constexpr (GU) return runr(a, s); + else return runr(a, s); + } + // (64 rows x 256 columns a block: half the activation re-reads of 128 x 128 at the same accumulator count) + if (cfg == 11) return runr(a, s); if (a.max_rows <= 32) return runr(a, s); if (a.max_rows <= 64) return runr(a, s); return runr(a, s); diff --git a/src/dsv41/ds4_iq_hip_r.inc b/src/dsv41/ds4_iq_hip_r.inc index 0844177b..85f1a0f4 100644 --- a/src/dsv41/ds4_iq_hip_r.inc +++ b/src/dsv41/ds4_iq_hip_r.inc @@ -10,7 +10,7 @@ __device__ __forceinline__ float hf(uint32_t h) { return __half2float(__ushort_a constexpr int kKC = 64; // K a step: two sub-blocks // BM rows (MT tiles of 16) x BN = NW 16 NTW weight rows per block; NW waves, each NTW column tiles of 16 and every row tile -template +template __global__ void __launch_bounds__(NW * 32) set_kernel_r(const SetArgs a, int dbg) { constexpr int NM = GU ? 2 : 1, MT = BM / 16, BN = NW * 16 * NTW, NTH = NW * 32; static_assert(BM % 16 == 0, "row tiles"); @@ -39,16 +39,17 @@ __global__ void __launch_bounds__(NW * 32) set_kernel_r(const SetArgs a, int dbg for (int j = 0; j < NTW; ++j) wrow[m][j] = blob + a.tr[GU ? m : 2] + (size_t) ((c0 + warp * (16 * NTW) + j * 16 + l16)) * rb; - constexpr int NX = GU ? (BM * 16 + NTH - 1) / NTH : (BM * 8 + NTH - 1) / NTH; + constexpr bool XS = GU && X16; // gate / up take the caller's F16 rows (the same values the F32 path rounds to) + constexpr int NX = (GU && !XS) ? (BM * 16 + NTH - 1) / NTH : (BM * 8 + NTH - 1) / NTH; struct XR { - float4 f[GU ? NX : 1]; - uint4 u[GU ? 1 : NX]; + float4 f[(GU && !XS) ? NX : 1]; + uint4 u[(GU && !XS) ? 1 : NX]; }; auto fetchx = [&](int s, XR& R) { #pragma unroll for (int xi = 0; xi < NX; ++xi) { const int c = tid + xi * NTH; - if constexpr (GU) { + if constexpr (GU && !XS) { if (c < BM * 16) { const int row = c >> 4, ch = c & 15; R.f[xi] = *(const float4*) (a.xf + (size_t) srow[row] * a.ldx + (size_t) s * kKC + ch * 4); @@ -56,7 +57,8 @@ __global__ void __launch_bounds__(NW * 32) set_kernel_r(const SetArgs a, int dbg } else { if (c < BM * 8) { const int row = c >> 3, ch = c & 7; - R.u[xi] = *(const uint4*) (a.xh + (size_t) srow[row] * a.ldx + (size_t) s * kKC + ch * 8); + const uint16_t* px = GU ? a.xf16 : a.xh; + R.u[xi] = *(const uint4*) (px + (size_t) srow[row] * a.ldx + (size_t) s * kKC + ch * 8); } } } @@ -65,7 +67,7 @@ __global__ void __launch_bounds__(NW * 32) set_kernel_r(const SetArgs a, int dbg #pragma unroll for (int xi = 0; xi < NX; ++xi) { const int c = tid + xi * NTH; - if constexpr (GU) { + if constexpr (GU && !XS) { if (c < BM * 16) { const int row = c >> 4, ch = c & 15; const float4 v = R.f[xi]; @@ -88,6 +90,7 @@ __global__ void __launch_bounds__(NW * 32) set_kernel_r(const SetArgs a, int dbg for (int i = 0; i < MT; ++i) #pragma unroll for (int j = 0; j < NTW; ++j) acc[m][i][j] = fv8{0, 0, 0, 0, 0, 0, 0, 0}; + uint32_t sink = 0; // (HIPK_DBG=1: keeps the decode's registers alive when the MMA is switched off) { XR R0; @@ -123,7 +126,13 @@ __global__ void __launch_bounds__(NW * 32) set_kernel_r(const SetArgs a, int dbg for (int j = 0; j < NTW; ++j) { int c0_, c1_; float sc; - step_dec(cur[m][j], s, hi, tab, c0_, c1_, sc); + if (!(dbg & 2)) { // HIPK_DBG=2: no decode (the MMA path alone), =1: no MMA (the decode alone) + step_dec(cur[m][j], s, hi, tab, c0_, c1_, sc); + } else { + c0_ = (int) cur[m][j].w[0]; + c1_ = (int) cur[m][j].w[1]; + sc = 1.0f; + } const hv2 h = {(_Float16) sc, (_Float16) sc}; const uint2 u0 = codes4(c0_, h), u1 = codes4(c1_, h); #if defined(DS4_HIPK_G11) @@ -139,6 +148,7 @@ __global__ void __launch_bounds__(NW * 32) set_kernel_r(const SetArgs a, int dbg #else bf[m][j] = __builtin_bit_cast(hv8, make_uint4(u0.x, u0.y, u1.x, u1.y)); #endif + if (dbg & 1) sink ^= u0.x ^ u0.y ^ u1.x ^ u1.y; } #if defined(DS4_HIPK_G11) const int kcol = sub * 32 + ks * 16; @@ -147,7 +157,7 @@ __global__ void __launch_bounds__(NW * 32) set_kernel_r(const SetArgs a, int dbg #endif #pragma unroll for (int i = 0; i < MT; ++i) { - if (i * 16 < nr) { // (a tile past the rows: skipped, uniform) + if (i * 16 < nr && !(dbg & 1)) { // (a tile past the rows: skipped, uniform; HIPK_DBG=1: no MMA) #if defined(DS4_HIPK_G11) const hv16 af = *(const hv16*) &xs[b][i * 16 + l16][kcol]; #pragma unroll @@ -195,6 +205,7 @@ __global__ void __launch_bounds__(NW * 32) set_kernel_r(const SetArgs a, int dbg else a.y[lr * a.ldo + col] = acc[0][i][j][q]; } } + if (sink == 0xdeadbeefu && tid == 0) a.y[0] = 0.0f; // (HIPK_DBG=1 only: never true) } template @@ -204,6 +215,17 @@ inline bool runr(const SetArgs& a, cudaStream_t s) { if (N % BN != 0) return false; const dim3 grid((unsigned) ((a.max_rows + BM - 1) / BM), (unsigned) (N / BN), (unsigned) a.n_exp); static const int dbg = std::getenv("HIPK_DBG") ? std::atoi(std::getenv("HIPK_DBG")) : 0; + static const bool x16 = [] { // STRATA_DS4_X16=0: gate / up read the F32 rows as before (A/B) + const char* v = std::getenv("STRATA_DS4_X16"); + return !(v != nullptr && v[0] == '0'); + }(); + if constexpr (GU) { + if (x16 && a.xf16 != nullptr) { + set_kernel_r<<>>(a, dbg); + launches().fetch_add(1, std::memory_order_relaxed); + return cudaPeekAtLastError() == cudaSuccess; + } + } set_kernel_r<<>>(a, dbg); launches().fetch_add(1, std::memory_order_relaxed); return cudaPeekAtLastError() == cudaSuccess; diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index f7e29e0e..e81458ed 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -2908,11 +2908,18 @@ struct Model::Impl { size_t ring_mb_auto() const { double exp_b = 0, other_b = 0, room = 0; const double share = gpu_expert_share(&exp_b, &room, &other_b); - const bool fit = exp_b > 0 && share >= 1.0 / 1.3; // (R9700 x4: 0.86 -> ring 16: decode -1.8% after a prompt, 64: -4.4%, 400: -4.6%) + // The prompt path streams the experts the cards cannot hold. When every expert fits, the ring is worth + // nothing (16 MB): the VRAM is better as slots for the decode after the prompt (measured: decode -1.8 to -4.6% + // at 64-400 MB, unchanged at 16). When they do not fit, the stream IS the prompt's expert stage, and its depth + // is what decides how long the tiles wait: on the 4x R9700 8K prompt a 16 MB ring left 1.7 s of DMA waits in a + // 5.2 s expert stage, and 1.2-3 GB of ring measured 632 -> 678-684 ppts (+7%) for about -2% decode (off a + // fifth more CPU-lane experts). So: a share of the room, bounded, rather than the fixed 400 MB of 0.2.6. + const size_t deep = (size_t) std::min(2000.0, std::max(400.0, room / 1e9 * 0.05 * 1000.0)); // (MB) + const size_t mb = share >= 0.98 ? 16 : deep; if (o.verbose) std::fprintf(stderr, "ds4: staging ring: experts %.1f GB, VRAM room %.1f GB, dense %.1f GB -> %d MB\n", exp_b / 1e9, - room / 1e9, other_b / 1e9, fit ? 16 : 400); - return fit ? 16 : 400; + room / 1e9, other_b / 1e9, (int) mb); + return mb; } bool alloc_chunks(std::string& err) { chunks.resize(devs.size()); @@ -3629,6 +3636,9 @@ struct Model::Impl { sa.n_embd = D; sa.n_ff = FF; sa.limit = g.lim; + // gate / up read the layer's F16 copy of the activations (the same rounding the tiles make for their + // shared tile): with 18-36 column blocks an expert the F32 rows were read that many times + sa.x16 = c.x16; EkMark ek{}; const bool ekp = prof_chunk; if (ekp) { From 3b2399456840d3ce7e26c019daadb886e87a0d7e Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 03:36:03 +0100 Subject: [PATCH 11/52] DeepSeek engine (AMD): the staging ring from each device's room (not the summed room) No behaviour change on the 4x R9700 cell (126.8 GB of room / 4 = 31.7 GB a device, 8% -> 2000 MB, the value measured in 76177ec34); on other card counts it is the per-device share that was meant. --- src/dsv41/ds4_model.cu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index e81458ed..30c06b39 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -2913,8 +2913,9 @@ struct Model::Impl { // at 64-400 MB, unchanged at 16). When they do not fit, the stream IS the prompt's expert stage, and its depth // is what decides how long the tiles wait: on the 4x R9700 8K prompt a 16 MB ring left 1.7 s of DMA waits in a // 5.2 s expert stage, and 1.2-3 GB of ring measured 632 -> 678-684 ppts (+7%) for about -2% decode (off a - // fifth more CPU-lane experts). So: a share of the room, bounded, rather than the fixed 400 MB of 0.2.6. - const size_t deep = (size_t) std::min(2000.0, std::max(400.0, room / 1e9 * 0.05 * 1000.0)); // (MB) + // fifth more CPU-lane experts). So: a share of each device's room, bounded, rather than the fixed 400 MB. + const double per_dev = devs.empty() ? 0.0 : room / (double) devs.size(); + const size_t deep = (size_t) std::min(2000.0, std::max(400.0, per_dev / 1e9 * 0.08 * 1000.0)); // (MB) const size_t mb = share >= 0.98 ? 16 : deep; if (o.verbose) std::fprintf(stderr, "ds4: staging ring: experts %.1f GB, VRAM room %.1f GB, dense %.1f GB -> %d MB\n", exp_b / 1e9, From 3cc132ec51cbe9be035b93154ca322028f2ab8f9 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 04:07:19 +0100 Subject: [PATCH 12/52] DeepSeek engine (AMD, diagnostic): where copy_ahead's time goes in the prompt stream line (DS4_PROF only) The first prompt after a load is 2-9x slower than the second on the 4x R9700 2.25 bpw cell and it is not the disk (0 MB read during it), the RAM store (removing it is worse), the dense GEMM shapes (q_b+rope 1.46 s) or the compute waiting (0 ms). The lead is the RAM->pinned-staging->DMA path (the file's own note: 6.8 GB/s through the staging against 24-28 GB/s probes); DS4_COPY_PIN=1 measured 47.9 -> 31.4 s on the first prompt and 28.8 -> 12.0 s on the second, decode unchanged. This commit only adds the counters (staging / DMA issue / slot wait) to the existing prompt stream line under DS4_PROF; no behaviour change. --- src/dsv41/ds4_model.cu | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 30c06b39..ea653138 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -594,6 +594,8 @@ struct Chunk { int *bc_pin = nullptr, *bc_dev = nullptr; uint64_t n_batch = 0; double wait_ms = 0; // the compute waiting for a read + // (DS4_PROF: where copy_ahead's time goes - the host staging copy, the DMA issues, the waits for a slot) + double dbg_stage_ms = 0, dbg_dma_ms = 0, dbg_evt_ms = 0; uint64_t it_file = 0, it_ram = 0, it_spec = 0, it_spec_unused = 0; uint64_t io_d0 = 0, io_b0 = 0; // io's unbuffered / buffered bytes when the run started // layer-major (a run of several chunks, every layer on this device): the layers one after another, each through @@ -3226,9 +3228,12 @@ struct Model::Impl { if (S.cp >= (size_t) P) CK(cudaStreamWaitEvent(c.cs, c.freed[half], 0)); uint8_t* sb = nullptr; // in place: the batch's regions in the part's staging slots if (c.stage != nullptr) { + const double t_evt = now_ms(); if (S.cp >= (size_t) P) CK(cudaEventSynchronize(c.filled[half])); // (its last batch's copies out) + c.dbg_evt_ms += now_ms() - t_evt; sb = c.stage + (size_t) half * (c.ring_n / P) * c.stage_stride; std::atomic bad{false}; + const double t_st = now_ms(); c.readers->run(bt.n, [&](int i) { const int e = l0.host_list[(size_t) (bt.j0 + i)]; if (l0.lay.fmt == gg::kFmtMXFP4 ? !read_mx(l0, e, sb + (size_t) i * c.stage_stride) @@ -3237,11 +3242,13 @@ struct Model::Impl { sb + (size_t) i * c.stage_stride)) bad.store(true); }); + c.dbg_stage_ms += now_ms() - t_st; if (bad.load()) { err = "reading layer " + std::to_string(l0.il) + "'s experts from the model's files failed"; return false; } } + const double t_dma = now_ms(); for (int i = 0; i < bt.n; ++i) { uint8_t* dst = c.ring + ((size_t) half * (c.ring_n / P) + i) * c.ring_stride; if (!stream_expert(l0, mi, l0.host_list[(size_t) (bt.j0 + i)], dst, c.cs, err, @@ -3249,6 +3256,7 @@ struct Model::Impl { return false; c.stream_bytes += (double) unit(member(l0, mi)); } + c.dbg_dma_ms += now_ms() - t_dma; CK(cudaEventRecord(c.filled[half], c.cs)); ++S.cp; S.done.store(S.cp, std::memory_order_relaxed); @@ -8494,15 +8502,19 @@ struct Model::Impl { if (c.lm) std::snprintf(lcs, sizeof lcs, ", %llu again from the layer cache (layer-major, %d chunks, %.1f GB " "of RAM)", (unsigned long long) c.it_lc, (int) run.T.size(), (double) c.lc_bytes / 1e9); + char dbgs[160] = ""; + if (pm.on) + std::snprintf(dbgs, sizeof dbgs, "; copy_ahead: staging %.0f ms, DMA issues %.0f ms, slot waits %.0f ms", + c.dbg_stage_ms, c.dbg_dma_ms, c.dbg_evt_ms); std::fprintf(stderr, "ds4 prompt stream, CUDA%d: %d tokens in %.0f ms; %llu experts streamed: %llu from the files " "(%.1f GB, %.2f GB/s: %.1f GB from the disk unbuffered, %.1f GB through the page cache), %llu " "from RAM (%.1f GB)%s; %llu likely ones queued early, %llu of them unpicked; the compute waited " - "%.0f ms for reads\n", + "%.0f ms for reads%s\n", devs[di].id, n, ms, (unsigned long long) (c.it_file + c.it_ram + c.it_lc), (unsigned long long) c.it_file, fb, fb / std::max(1e-3, ms / 1000.0), db, bb, (unsigned long long) c.it_ram, rb, lcs, (unsigned long long) c.it_spec, - (unsigned long long) c.it_spec_unused, c.wait_ms); + (unsigned long long) c.it_spec_unused, c.wait_ms, dbgs); } } if (pm.on && run.T.size() == 1) { // (the picks' spread for pick_path: the CPU-lane experts this run picked) From 5b969c1f7a41f86cec796818b7ec9b2a87eb4aed Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 04:30:12 +0100 Subject: [PATCH 13/52] DeepSeek engine (AMD, diagnostic): the io threads' busy time in the prompt stream line The RAM->staging memcpy runs on the IoQueue's threads; on a warm 8K prompt (stream stage 14.3 s, 12.8 GB a device) they are busy 4.1 s, i.e. ~3 GB/s a device - a real share, and the thing to check in the 50-95 s first-prompt runs (where the same counters are what to read first). DS4_PROF only. --- src/dsv41/ds4_model.cu | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index ea653138..e4a0ba7e 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -598,6 +598,7 @@ struct Chunk { double dbg_stage_ms = 0, dbg_dma_ms = 0, dbg_evt_ms = 0; uint64_t it_file = 0, it_ram = 0, it_spec = 0, it_spec_unused = 0; uint64_t io_d0 = 0, io_b0 = 0; // io's unbuffered / buffered bytes when the run started + double io_busy0 = 0; // io's busy time when the run started (DS4_PROF) // layer-major (a run of several chunks, every layer on this device): the layers one after another, each through // all the chunks; a chunk's state between its layers (h | pre | topk | cand, chunk k at k chunk_hand_bytes()) in // host memory, and the layer cache - RAM slots where the experts a layer's chunk reads from the files are kept for @@ -7739,6 +7740,7 @@ struct Model::Impl { c.lc_first = c.lc_chk = 0; c.io_d0 = c.io->direct_bytes(); c.io_b0 = c.io->buffered_bytes(); + c.io_busy0 = c.io->busy_ms(); if (!c.fl_layers.empty()) { flow_spec(c, 0, c.fl_layers[0], run.T[0]); if (!flow_pump(c, err)) return false; @@ -8502,10 +8504,11 @@ struct Model::Impl { if (c.lm) std::snprintf(lcs, sizeof lcs, ", %llu again from the layer cache (layer-major, %d chunks, %.1f GB " "of RAM)", (unsigned long long) c.it_lc, (int) run.T.size(), (double) c.lc_bytes / 1e9); - char dbgs[160] = ""; + char dbgs[200] = ""; if (pm.on) - std::snprintf(dbgs, sizeof dbgs, "; copy_ahead: staging %.0f ms, DMA issues %.0f ms, slot waits %.0f ms", - c.dbg_stage_ms, c.dbg_dma_ms, c.dbg_evt_ms); + std::snprintf(dbgs, sizeof dbgs, + "; io threads busy %.0f ms, copy_ahead staging %.0f ms, DMA issues %.0f ms, slot waits %.0f ms", + c.io->busy_ms() - c.io_busy0, c.dbg_stage_ms, c.dbg_dma_ms, c.dbg_evt_ms); std::fprintf(stderr, "ds4 prompt stream, CUDA%d: %d tokens in %.0f ms; %llu experts streamed: %llu from the files " "(%.1f GB, %.2f GB/s: %.1f GB from the disk unbuffered, %.1f GB through the page cache), %llu " From 2247e5a98ddebeecbd4180b2740e8d91a5b9fc52 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 04:46:46 +0100 Subject: [PATCH 14/52] DeepSeek engine (AMD): pin the CPU lane's RAM copy when the cards hold >= half the experts (DS4_COPY_PIN auto) The prompt path copies every streamed expert from the RAM copy into the pinned staging before its DMA (the file's own note: 6.8 GB/s through the staging against 24-28 GB/s probes). Registering the copy lets it DMA in place. Three interleaved pairs on 4x R9700, 2.25 bpw (share 0.72): the second 8K prompt of a process 12.0 / 11.9 / 11.9 s against 28.8 / 13.8 / 12.3 s unpinned; decode 35.42 / 35.50 / 34.9-36.0 against 35.43 / 35.45 / 34.9-36.0 tok/s, i.e. no cost; ids unchanged. Costs 23 s of load (registering a 50 GB copy) - once a process, which for a server is the right trade. Auto only when the expert share is >= 0.5 (the CPU lane is then a minority of the decode, so the pinned pages' TLB cost cannot bite); DS4_COPY_PIN=0/1 forces it, and it stays off where the 12 GB cards' decode is CPU-lane-bound (the -15% measured there). --- src/dsv41/ds4_model.cu | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index e4a0ba7e..5df38cf8 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -4453,12 +4453,18 @@ struct Model::Impl { std::fprintf(stderr, "ds4: %zu of the CPU lane's %zu experts copied into RAM (%.1f GB, %d NUMA part%s) in %.1f s%s\n", jobs.size(), hot.size(), cb / 1e9, NH, NH > 1 ? "s" : "", (now_ms() - t0) / 1000.0, jobs.size() < hot.size() ? "; the others read in place" : ""); - // DS4_COPY_PIN=1: pin the copies, so the prompt path DMAs each expert from where it lies instead of copying it - // to the pinned staging first (measured on the R9700 box: the 8K pass streams 122 GB at 6.8 GB/s through the - // staging, where the RAM-to-staging and DMA probes are 24 and 28 GB/s). The CPU lane reads the same memory, and - // pinned 4 KB pages can cost its TLB (an earlier registration measured -15% decode), so this stays opt-in. + // DS4_COPY_PIN: pin the copies, so the prompt path DMAs each expert from where it lies instead of copying it to + // the pinned staging first (the pass streams 122 GB at 6.8 GB/s through the staging, where the RAM-to-staging + // and DMA probes are 24 and 28 GB/s). The CPU lane reads the same memory, and pinned 4 KB pages can cost its + // TLB (an earlier registration measured -15% decode on a 12 GB card, where the CPU lane does nearly all of the + // decode) - so AUTO (unset) pins when the cards hold at least half the routed experts: the CPU lane is then a + // minority of the decode and the prompt stream is what hurts. Measured on 4x R9700, 2.25 bpw (share 0.72), + // three interleaved pairs: the second 8K prompt of a process 12.0/11.9/11.9 s against 28.8/13.8/12.3 s unpinned, + // decode 35.42/35.50/34.9-36.0 against 35.43/35.45/34.9-36.0 tok/s (no cost). DS4_COPY_PIN=0/1 forces it. // DS4_COPY_PIN_RO=1: cudaHostRegisterReadOnly (the GPU only reads it). - if (const char* cp = std::getenv("DS4_COPY_PIN"); cp != nullptr && std::atoi(cp) != 0) { + const char* cp = std::getenv("DS4_COPY_PIN"); + const bool pin_on = cp != nullptr ? std::atoi(cp) != 0 : gpu_expert_share() >= 0.5; + if (pin_on) { const bool ro = std::getenv("DS4_COPY_PIN_RO") != nullptr && std::atoi(std::getenv("DS4_COPY_PIN_RO")) != 0; const double tr = now_ms(); bool ok = true; From e83b82afe562705f5c39580c0ac6bb470380da4f Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 06:09:02 +0100 Subject: [PATCH 15/52] DeepSeek engine (AMD): the drafter's cumulative confidence cut on by default (0.5) on HIP DeepInfer's rule: verify a draft while the product of the confidences so far stays above the cut, instead of only each draft's own floor. The 0.2.7 notes left it off ('not measured faster on code: H100 / owner PC'), Project Maya runs 0.5 on a Radeon 8065S (+6.5% decode, the same tokens). Measured on 4x R9700, DeepSeek 2.25 bpw, six 128-token decodes an arm in one load, same ids (81d895366c): 71.7 -> 76.9 tok/s (medians) with STRATA_DS4_DSPARK_CUM=0.5, and a second pair 74.1/73.6; the default with the rule on (no env) verified at 74.5 tok/s (6 decodes). CUDA keeps 0 (the rule was flat there). STRATA_DS4_DSPARK_CUM still overrides either way. --- src/dsv41/ds4_main.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/dsv41/ds4_main.cpp b/src/dsv41/ds4_main.cpp index 57950f60..fdbd542e 100644 --- a/src/dsv41/ds4_main.cpp +++ b/src/dsv41/ds4_main.cpp @@ -152,11 +152,19 @@ static int g_round_nd = 0; // The drafts' cut on the product of their confidences (DeepInfer's cumulative rule): a draft is verified while the chance // that it and every draft before it are kept stays at least this - a long window whose later drafts are likely lost is // not verified whole. STRATA_DS4_DSPARK_CUM=F, a request's dspark_cum key; 0: off, only the floor on each draft's own -// confidence (dspark_conf). Off by default (not measured faster on code: H100 / owner PC); Project Maya runs 0.5 (a Radeon 8065S: decode +6.5%, the same tokens) +// confidence (dspark_conf). On AMD 0.5 is the default: measured on 4x R9700, DeepSeek 2.25 bpw, six 128-token +// decodes an arm in one load - 71.7 -> 76.9 tok/s (medians), the same ids; Project Maya runs 0.5 on a Radeon 8065S +// too (+6.5% decode, the same tokens), while the CUDA measurements in 0.2.7 had it flat, so CUDA keeps 0. +// STRATA_DS4_DSPARK_CUM overrides either way. float dspark_cum_default() { static const float v = [] { const char* e = std::getenv("STRATA_DS4_DSPARK_CUM"); - return e != nullptr ? (float) std::atof(e) : 0.0f; + if (e != nullptr) return (float) std::atof(e); +#if defined(STRATA_USE_HIP) + return 0.5f; +#else + return 0.0f; +#endif }(); return v; } From 88c293196371333a63bd14d0ceaf3949a07e4020 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 07:24:22 +0100 Subject: [PATCH 16/52] DeepSeek engine (AMD): the small prompt chunk whenever the cards hold most of the experts, 4 cards included prefill_chunk_default() returned 1024 only for a single-card run (own_default); a multi-card run whose cards hold most of the experts fell through to 2048 (HIP skips the two 4096 branches) - and the rule's own datapoint for 1024 was a 4 x R9700 run ('1024 370 tok/s, 8192 214'). Measured again here, 2.25 bpw, 4 cards, 8K code prompt, --dspark auto, ids 5705e1164a, 4 prompts a load: 512 1110 / 1137 / 1142 ppts (median 1123) 1024 1229 / 1257 / 1270 (median 1243) <- this commit's default 2048 689 / 695 / 696 (median 692) <- what the engine picked before 8192 690 / 690 / 695 (median 690) <- what the 0.2.7 configs passed Decode unchanged (73.2 against 73.2 tok/s medians, --dspark auto). So the owner's default 8K prompt goes from 692 to 1243 ppts (+80%) with no flag; --prefill-chunk still overrides. --- src/dsv41/ds4_experts_rule.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dsv41/ds4_experts_rule.hpp b/src/dsv41/ds4_experts_rule.hpp index 60d5881c..63c4c49a 100644 --- a/src/dsv41/ds4_experts_rule.hpp +++ b/src/dsv41/ds4_experts_rule.hpp @@ -40,7 +40,12 @@ constexpr uint64_t kChunkInPlace4096Below = 16ull << 30; // smallest card; big: the chunk of the streamed case (the engine's kVlRows, 8192) inline int prefill_chunk_default(bool own_default, double gpu_share, bool gguf_copy, bool file_experts, bool hip, uint64_t min_vram_bytes, int big = 8192) { - if (own_default && gpu_share >= 0.5) return 1024; + // The cards hold most of the experts: the small chunk is the measured one, and it is not a single-card matter. The + // 4 x R9700 datapoint above (1024: 370 against 214 tok/s at 8192) is a multi-card run, and on that box the rule used + // to fall through to 2048/8192: measured here again (2.25 bpw, 4 cards, --dspark auto, ids 5705e1164a) 8K warm + // prompts 1024 -> 1247 ppts against 690 at 8192, with the decode unchanged, so the share alone decides it now. + (void) own_default; + if (gpu_share >= 0.5) return 1024; if (gguf_copy && !hip && min_vram_bytes >= kChunk4096MinVram) return 4096; // the experts read in place on a card under 16 GiB (the 12 GB PCs; not measured on HIP): 4096 keeps ~120 more experts resident than 8192 (RTX 5070 // 287 against 165, RTX 3060 386 against 277) - 5 interleaved pairs, 4096 against 8192, decode: 5070 agent x1.020 (5/5) code x1.004 (3/5), 3060 From 4aa645c0075d51c86cc5320394804631c0409ef1 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 08:10:37 +0100 Subject: [PATCH 17/52] DeepSeek engine (AMD): a small staging ring where the cards hold most of the experts With the 1024-token prompt chunk (the default where the cards hold most of the experts, abfe7d813) a big staging ring is no longer the trade it was: every MB it takes is a tenth of an expert the decode keeps. Measured on the same box, 8K code prompt + six 128-token decodes a load, ids 5705e1164a / 81d895366c: 2000 MB 1243 ppts / 73.2 tok/s 1000 MB 1287 / 77.5 500 MB 1314 / 78.5 256 MB 1324 / 78.4 128 MB 1338 / 78.3 So high-share runs take clamp(room/device * 0.008, 128, 512) MB (248 MB here) and the old deeper ring stays for the cases it was measured for (share < 0.5, where the cards stream most of the experts). The un-enved default verified at 1339 ppts / 78.1 tok/s, 42 s of summed GPU time in a 36 s pass. --- src/dsv41/ds4_model.cu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 5df38cf8..94641b4e 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -2919,7 +2919,13 @@ struct Model::Impl { // fifth more CPU-lane experts). So: a share of each device's room, bounded, rather than the fixed 400 MB. const double per_dev = devs.empty() ? 0.0 : room / (double) devs.size(); const size_t deep = (size_t) std::min(2000.0, std::max(400.0, per_dev / 1e9 * 0.08 * 1000.0)); // (MB) - const size_t mb = share >= 0.98 ? 16 : deep; + // ... but with the 1024-token prompt chunk (the default now when the cards hold most of the experts) the + // ring's balance moved: every MB it takes is a tenth of an expert the decode keeps. Measured on the same + // box, 8K prompt and six 128-token decodes a load, chunk 1024: 2000 MB 1243 ppts / 73.2 tok/s, 1000 MB + // 1287 / 77.5, 500 MB 1314 / 78.5, 256 MB 1324 / 78.4. So a small bounded ring where the cards hold the + // most of the experts, and the old depth where they do not (the streaming cases it was measured for). + const size_t small = (size_t) std::min(512.0, std::max(128.0, per_dev / 1e9 * 0.008 * 1000.0)); // (MB) + const size_t mb = share >= 0.98 ? 16 : (share >= 0.5 ? small : deep); if (o.verbose) std::fprintf(stderr, "ds4: staging ring: experts %.1f GB, VRAM room %.1f GB, dense %.1f GB -> %d MB\n", exp_b / 1e9, room / 1e9, other_b / 1e9, (int) mb); From 0f66c316eea3ad2c240761bc3eb4104dcffe5cad Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 08:52:39 +0100 Subject: [PATCH 18/52] DeepSeek engine (AMD): the whole chunk's attention slab where the cards hold most of the experts The slab rule (8 MB of q/o per device, 256 rows here) was set to keep the dense dequant's VRAM small; with a 1024-token chunk it dequantizes q_b/wo once per 256 rows - four times a chunk, 32 times an 8K prompt. Measured on 4x R9700, 2.25 bpw, share 0.77, chunk 1024, 8K code prompt, ids 5705e1164a: 256-row rule 1204 / 1236 / 1250 ppts, decode 77.7 tok/s chunk's 1024 1324 / 1353 / 1363 decode 78.1 (+9% prefill, decode unchanged) The 1024 rows cost 268 MB a device (1% of the card). So high-share runs take min(chunk, 1024) rows and the old rule stays elsewhere; DS4_ATTN_SLAB still overrides. The un-enved default verified at 1335 ppts / 77.8 tok/s with the ring at 253 MB. --- src/dsv41/ds4_model.cu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 94641b4e..ddafb556 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -2946,11 +2946,17 @@ struct Model::Impl { split128(g.ff, nm, 0, ff0_, FF); // (the widest member's share: member 0 takes the odd blocks) const size_t C = (size_t) chunk; c.C = chunk; - c.A = std::max(64, (int) (((size_t) 8 << 20) / (size_t) HQ) / 64 * 64); // DS4_ATTN_SLAB=N: the attention slab's rows. The dense projections (q_b, wo_a/b) are dequantized and GEMM'd // once a slab, so a slab of 256 rows dequantizes the same weights 32 times for an 8K prompt (measured: the // dense dequant 916 ms of the 8K prompt, rocBLAS 867 ms); a larger slab costs VRAM for c.q/c.o and the oa // buffers (A * HQ x 4 bytes each). + const int a_rule = std::max(64, (int) (((size_t) 8 << 20) / (size_t) HQ) / 64 * 64); // 256 rows here + c.A = a_rule; + // Where the cards hold most of the experts, the whole chunk's slab is worth its VRAM: measured on 4x R9700 + // (2.25 bpw, share 0.77, chunk 1024) the 256-row rule gives 8K warm 1204 / 1236 / 1250 ppts and a slab of + // the chunk's 1024 rows 1324 / 1353 / 1363 (+9%) with the decode unchanged (77.7 against 78.1 tok/s); the + // 1024 rows cost 268 MB a device, 1% of the card. Elsewhere the rule stays as it was. + if (gpu_expert_share() >= 0.5) c.A = std::max(a_rule, std::min(chunk, 1024) / 64 * 64); if (const char* v = std::getenv("DS4_ATTN_SLAB")) { const int a = std::atoi(v); if (a > 0) c.A = std::max(64, std::min(chunk, a) / 64 * 64); From 7e1a7cb93ca85699bdee563e3ffbf1cb7af9a5a3 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 09:38:45 +0100 Subject: [PATCH 19/52] docs: the release notes carry the 12 GB routing default with its held-out evidence --- docs/release-notes-0.2.7.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index fa0af0b9..a7691122 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -36,12 +36,27 @@ These need no engine change; they are settings. Each was measured on the same bo on long documents (document perplexity +8% at 1K, +12% at 8K in `bench/results/2026-09-27-kv-q4`), so it is a choice, not a default. -## A setting that is much faster on a 12 GB card, but changes the answers +## The 12 GB default: residency-biased routing -STRATA_ROUTE_PRIOR (now on by default at 2.0 on a card with 13 GB of memory or less, =0 turns it off) gives the router a bonus for experts already in VRAM. On an RTX 3060 12 GB (IQ3_XXS) it -measured **+37.6% story and +35.2% code decode over five interleaved pairs** - by far the largest single gain found on -that card. It works by choosing a slightly different set of experts, so the replies change: it is **opt-in and needs a -quality check before anyone calls it a default**. STRATA_ROUTE_PRIOR=1.0 is the conservative end (+22.6% / +24.6%). +**On by default at 2.0 on a card with 13 GiB of memory or less** (`STRATA_ROUTE_PRIOR=0` turns it off). The router prefers +experts that are already resident, so a window stops waiting on a page-in that the next window would need again. Measured +on the RTX 3060 12 GB (IQ3_XXS), five interleaved pairs of fresh engines: + +| axis | before | after | +|---|---|---| +| decode story | 45.9 | **61.6 (+34.1%)** | +| decode code | 43.6 | **73.1 (+67.6%)** | +| prompt 1K | 333.6 | **451.5 (+35.3%)** | +| prompt 4K, in a 4K context | 248.5 | **291.0 (+17.1%)** | +| decode behind a 4K document | 45.1 | **62.2 (+37.9%)** | + +It holds where it matters most: on content the tuning was never fitted to it measures **+29.0%** (43.5 -> 55.0 tok/s on a +document prompt), and the whole recipe - routing, a workload-fitted expert profile, `--adapt-every 0`, `--vram-reserve-mib +896` and the English draft vocabulary - gives **+26.5%** there and **+80%** on code in a sustained 80-request session. + +It works by choosing a slightly different set of experts, so replies change: the owner approved that trade for 12 GB cards. +**Do not raise the bonus beyond 2.0.** 3.0 measures +17.7% / +24.0% on the test prompts but **-4.5% on held-out content**, +and 4.0 breaks outright - 2.0 is the setting that generalises. ## What was tried and did not make it @@ -64,3 +79,4 @@ Strata is free and open source. If it runs well on your PC, a coffee keeps the w + From 03056168d9ee72a807f83789a56cd4a1e7da8e49 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 12:21:18 +0100 Subject: [PATCH 20/52] dense dequant: the chunked prompt's dq_rows_kernel packs each sub-block's 32 halves into four 16-byte stores and stages the warp's input through contiguous uint4 loads decoded at a relative index - the same values (bit-identical), 4K prefill 79.5 -> 88.52 tok/s, acceptance 97.4% --- src/dsv41/ds4_iq.cu | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/src/dsv41/ds4_iq.cu b/src/dsv41/ds4_iq.cu index e5f66887..e6674b4b 100644 --- a/src/dsv41/ds4_iq.cu +++ b/src/dsv41/ds4_iq.cu @@ -1287,20 +1287,55 @@ __global__ void __launch_bounds__(kThreads) dq_rows_kernel(const uint8_t* __rest __syncthreads(); const int nsb = k / 32; const size_t total = (size_t) n * (size_t) nsb; + // A warp stages its 32 sub-blocks in shared through contiguous uint4 loads and decodes from there: a lane reading its own + // 176-byte block at that stride touched 32 scattered sectors per instruction - the dequant's remaining cost once the stores + // were vectorised (15.4 s of a 4K prompt, 23 GB of quantised input at ~1.5 GB/s). Each lane decodes with the index relative + // to the staged buffer (kb - kb0), which is exactly equivalent because kb0 is a multiple of the 8 sub-blocks in a block. + constexpr int kQKv = kQK; + constexpr int kSpan = (kQKv == 32 ? 32 : 4) * Ty::B; // bytes of a warp's 32 sub-blocks + constexpr bool kCanStage = Ty::TAB == 0; // (a codebook table already fills shared for the i-quants) + const bool staged = (nsb % 32 == 0) && kCanStage; + __shared__ uint4 sin4[kCanStage ? (kThreads / 32) * 44 : 1]; + const int lane32 = threadIdx.x & 31, wq = threadIdx.x >> 5; for (size_t i = (size_t) blockIdx.x * blockDim.x + threadIdx.x; i < total; i += (size_t) gridDim.x * blockDim.x) { const size_t r = i / (size_t) nsb; const int kb = (int) (i - r * (size_t) nsb); Sub sb; sb.m0 = sb.m1 = 0.0f; - decode(raw + r * ld, kb, tab, sb); + if (staged) { + const size_t wbase = i - (size_t) lane32; // (uniform in the warp: blockDim and the stride are multiples of 32) + const size_t r0 = wbase / (size_t) nsb; + const int kb0 = (int) (wbase - r0 * (size_t) nsb); + const uint8_t* srcp = raw + r0 * ld + (size_t) (kb0 * Ty::B) / (kQKv / 32); + uint4* st = sin4 + wq * 44; + for (int c = lane32; c < kSpan / 16; c += 32) st[c] = ((const uint4*) srcp)[c]; + __threadfence_block(); + __syncwarp(); + decode((const uint8_t*) st, kb - kb0, tab, sb); + } else + decode(raw + r * ld, kb, tab, sb); const float d0 = __fmul_rn(sb.d, (float) sb.s0), d1 = __fmul_rn(sb.d, (float) sb.s1); uint16_t* o = dst + r * (size_t) k + (size_t) kb * 32; + // (the 32 halves packed into four 16-byte stores: 32 two-byte stores a lane, each lane 64 bytes from the next, write + // ~16x the bytes they carry in DRAM sectors - measured as the dense dequant's whole cost: 6.6 GB to FP16 in 20.0 s) + uint32_t hw[16]; #pragma unroll - for (int j = 0; j < 32; ++j) { - const int q = (int) (int8_t) ((uint32_t) sb.q[j >> 2] >> (8 * (j & 3))); - const float v = j < 16 ? __fsub_rn(__fmul_rn(d0, (float) q), sb.m0) : __fsub_rn(__fmul_rn(d1, (float) q), sb.m1); - o[j] = bf16 ? strata::ds4::bf16_rn(v) : __half_as_ushort(__float2half_rn(v)); + for (int j = 0; j < 16; ++j) { + const int q0 = (int) (int8_t) ((uint32_t) sb.q[j >> 1] >> (8 * ((2 * j) & 3))); + const int q1 = (int) (int8_t) ((uint32_t) sb.q[j >> 1] >> (8 * ((2 * j + 1) & 3))); + const bool lo = (2 * j) < 16; + const float v0 = lo ? __fsub_rn(__fmul_rn(d0, (float) q0), sb.m0) : __fsub_rn(__fmul_rn(d1, (float) q0), sb.m1); + const bool lo1 = (2 * j + 1) < 16; + const float v1 = lo1 ? __fsub_rn(__fmul_rn(d0, (float) q1), sb.m0) : __fsub_rn(__fmul_rn(d1, (float) q1), sb.m1); + const uint32_t h0 = bf16 ? strata::ds4::bf16_rn(v0) : __half_as_ushort(__float2half_rn(v0)); + const uint32_t h1 = bf16 ? strata::ds4::bf16_rn(v1) : __half_as_ushort(__float2half_rn(v1)); + hw[j] = h0 | (h1 << 16); } + uint4* o4 = (uint4*) o; + o4[0] = make_uint4(hw[0], hw[1], hw[2], hw[3]); + o4[1] = make_uint4(hw[4], hw[5], hw[6], hw[7]); + o4[2] = make_uint4(hw[8], hw[9], hw[10], hw[11]); + o4[3] = make_uint4(hw[12], hw[13], hw[14], hw[15]); } } From e66d2758ed659aca1236e76b9d930eba27874102 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 12:46:27 +0100 Subject: [PATCH 21/52] docs: the release notes carry the two-conversation batching gain --- docs/release-notes-0.2.7.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index a7691122..9f6ebd44 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -27,6 +27,10 @@ These need no engine change; they are settings. Each was measured on the same bo vocabulary instead of 425 KB, so it reads less per guess: **+2.7..3.1% story and +2.2..3.0% code** decode on both big boxes. The big model checks every guess, so the answers are unchanged (identical tokens in every run where the machine is deterministic). A CJK or Cyrillic user should keep the wider subset. +- **`--slots 2`** - when the engine serves more than one conversation at a time (an agent with several sessions), decoding two + requests together returns **+10% aggregate throughput on the RTX PRO 5000 and +12% on the RTX 3060**, for a slightly higher + latency per token. Three and four slots add nothing measurable (+8.4% and +11.7%): the gain is all in the second slot, and + more slots cost KV memory. A single conversation gains nothing from it. - **`--prefill-pipe `** - on a two-card layer split, plan the prompt's chunks for the pipeline: **+15.4% at 4K, +22.5% at 8K, +2.7% at 16K** prompt on 2x RTX A4000 (5 interleaved pairs). `R` is the PC's own ratio; `setup --calibrate` measures it (1,500 on that box). From f9907b6d9ce53970823ba4315c86add652f63783 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 13:14:27 +0100 Subject: [PATCH 22/52] docs: the routing default is +67% with two conversations in flight --- docs/release-notes-0.2.7.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index 9f6ebd44..76289d72 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -54,7 +54,8 @@ on the RTX 3060 12 GB (IQ3_XXS), five interleaved pairs of fresh engines: | prompt 4K, in a 4K context | 248.5 | **291.0 (+17.1%)** | | decode behind a 4K document | 45.1 | **62.2 (+37.9%)** | -It holds where it matters most: on content the tuning was never fitted to it measures **+29.0%** (43.5 -> 55.0 tok/s on a +It holds where it matters most: with **two conversations in flight** it measures **+67% aggregate** (59.7 against 35.6 tok/s), +and on content the tuning was never fitted to it **+29.0%** (43.5 -> 55.0 tok/s on a document prompt), and the whole recipe - routing, a workload-fitted expert profile, `--adapt-every 0`, `--vram-reserve-mib 896` and the English draft vocabulary - gives **+26.5%** there and **+80%** on code in a sustained 80-request session. From 11b5a77fe99986d33a02a041c375bb7bc194547b Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 13:23:56 +0100 Subject: [PATCH 23/52] docs: the agent scenario - two conversations nearly double throughput --- docs/release-notes-0.2.7.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index 76289d72..0a044dfb 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -54,7 +54,9 @@ on the RTX 3060 12 GB (IQ3_XXS), five interleaved pairs of fresh engines: | prompt 4K, in a 4K context | 248.5 | **291.0 (+17.1%)** | | decode behind a 4K document | 45.1 | **62.2 (+37.9%)** | -It holds where it matters most: with **two conversations in flight** it measures **+67% aggregate** (59.7 against 35.6 tok/s), +It holds where it matters most: with **two conversations in flight** the whole recipe reads **31.2 -> 62.0 tok/s aggregate +(+99%)** and both answers arrive in 4.8 s instead of 9.7 s, and the routing default alone is **+67% aggregate** (59.7 against +35.6 tok/s) - and on content the tuning was never fitted to it **+29.0%** (43.5 -> 55.0 tok/s on a document prompt), and the whole recipe - routing, a workload-fitted expert profile, `--adapt-every 0`, `--vram-reserve-mib 896` and the English draft vocabulary - gives **+26.5%** there and **+80%** on code in a sustained 80-request session. From 6bc27ebef73b2eeac2b94bac1f973a32ab5a7d16 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 13:34:58 +0100 Subject: [PATCH 24/52] docs: the agent scenario across all three boxes --- docs/release-notes-0.2.7.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index 0a044dfb..91122a6b 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -55,8 +55,8 @@ on the RTX 3060 12 GB (IQ3_XXS), five interleaved pairs of fresh engines: | decode behind a 4K document | 45.1 | **62.2 (+37.9%)** | It holds where it matters most: with **two conversations in flight** the whole recipe reads **31.2 -> 62.0 tok/s aggregate -(+99%)** and both answers arrive in 4.8 s instead of 9.7 s, and the routing default alone is **+67% aggregate** (59.7 against -35.6 tok/s) - +(+99%)** on that card and +22% on the 2x A4000, both answers arriving in half the wall time on the 12 GB box, and the routing +default alone is **+67% aggregate** there (59.7 against 35.6 tok/s) - and on content the tuning was never fitted to it **+29.0%** (43.5 -> 55.0 tok/s on a document prompt), and the whole recipe - routing, a workload-fitted expert profile, `--adapt-every 0`, `--vram-reserve-mib 896` and the English draft vocabulary - gives **+26.5%** there and **+80%** on code in a sustained 80-request session. From cca3dd2e33dd71de65c44bca5258b819b0badf8b Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 15:07:37 +0100 Subject: [PATCH 25/52] dense GEMM: the chunked prompt's gemm() prefers the engine's own RDNA3 WMMA kernel (src/prefill/wmma_gemm.cu, now linked) over hipBLAS - 4.97 vs 20-40 TFLOPS at our shapes The dense GEMM was 11.1 s of a 4K prompt at hipBLAS's measured 4.97 TFLOPS (M 4096 N 2304 K 5120, the engine's call convention). A blocked WMMA kernel reaches 23.96 TFLOPS at that shape (128x128 tile, BK 32, 2-stage LDS, rocwmma; scripts/wmma2.cu) and the engine's own tuned kernel (BM 128 x BN 256, grouped tile order, raw wmma intrinsics) 20.8-20.9 at the wq_b shape and 38-41 at M 16384. gemm() now calls strata_pf_gemm_f16_ld with hipBLAS as the fallback (rows < 64, N < 512, K % 32, unaligned X: unchanged); STRATA_DENSE_PFGEMM=0 restores hipBLAS for an A/B. Same operands, the kernel's own k order (rounding-level). Measured on the box (eng-028, 4E224E7F -> 467D7320, 4K prompt fixture p4k, chunk 16384): 46.4 -> 38.1 s, 88.30 -> 107.63 tok/s; with DS4_SETTLE_MS=0;DS4_SETTLE_STORE=0 27.5 s = 148.98 tok/s. 8K 134.66 -> 218.31, 16K 158.6 -> 290.97, 32K 178.9 -> 316.92 (settle off). Decode unchanged in an interleaved A/B (old 15.17/16.73, new 17.38/18.48 tok/s) with acceptance 151/164 = 92% (93/98/100/100/90 per position). c.A (the attention slab, the reason each dense matrix is re-read 10-16x a prompt) takes STRATA_DS4_A_MB: 32 gives 107.63 -> 110.67, small because the expert reads now dominate. --- CMakeLists.txt | 6 ++++-- src/dsv41/ds4_model.cu | 23 +++++++++++++++++++++-- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c4e6e8a1..6e7a9b67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -822,8 +822,10 @@ if(STRATA_ENABLE_CUDA OR STRATA_ENABLE_HIP) endif() set_source_files_properties(src/dsv41/ds4_main.cpp PROPERTIES COMPILE_DEFINITIONS "DS4_BUILD_ID=\"${STRATA_BUILD_ID}\"") target_include_directories(strata-dsv41 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include ${_strata_gpu_include_directories} - ${CMAKE_CURRENT_SOURCE_DIR}/third_party/ggml) - target_link_libraries(strata-dsv41 PRIVATE strata_dsv41_kernels ${_strata_gpu_runtime_target} ${_strata_gpu_blas_target}) + ${CMAKE_CURRENT_SOURCE_DIR}/third_party/ggml ${CMAKE_CURRENT_SOURCE_DIR}/src/prefill) + # strata_prefill: the RDNA3 WMMA dense GEMM (src/prefill/wmma_gemm.cu), which gemm() prefers over hipBLAS on gfx11 (measured + # 4.97 -> 20-40 TFLOPS on this part: the chunked prompt's dense GEMM is 11.1 s of a 4K prompt at the library's rate) + target_link_libraries(strata-dsv41 PRIVATE strata_prefill strata_dsv41_kernels ${_strata_gpu_runtime_target} ${_strata_gpu_blas_target}) find_package(Threads REQUIRED) target_link_libraries(strata-dsv41 PRIVATE Threads::Threads) if(WIN32 AND STRATA_ENABLE_HIP) # cudaMemGetInfo is the DXGI-budgeted hip_compat::mem_get_info (src/core/device.cu): on a Strix Halo the diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 9e983c6f..807ac003 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -30,6 +30,7 @@ #include "strata/kernels/f16_bits.hpp" #include "strata/dsv41/moe_win.hpp" #include "strata/dsv41/sampler.hpp" +#include "wmma_gemm.h" // strata_pf_gemm_f16_ld: the RDNA3 WMMA dense GEMM (gemm() prefers it over hipBLAS on gfx11; -Isrc/prefill) #include #include @@ -2972,7 +2973,13 @@ struct Model::Impl { split128(g.ff, nm, 0, ff0_, FF); // (the widest member's share: member 0 takes the odd blocks) const size_t C = (size_t) chunk; c.C = chunk; - c.A = std::max(64, (int) (((size_t) 8 << 20) / (size_t) HQ) / 64 * 64); + // the attention slab's rows: 8 MB of q by default. Every dense GEMM of a layer is issued once a slab, so the slab + // width divides the prompt's dense weight traffic (the matrices are re-read once a slab): STRATA_DS4_A_MB widens it. + static const size_t a_mb = [] { + const char* v = std::getenv("STRATA_DS4_A_MB"); + return (size_t) (v != nullptr ? std::max(1, std::atoi(v)) : 8); + }(); + c.A = std::max(64, (int) ((a_mb << 20) / (size_t) HQ) / 64 * 64); // (the indexer's slab: its scores rows are the context wide - about 64 MB of them) c.AI = std::max(32, std::min(128, (int) (((size_t) 64 << 20) / (((size_t) o.max_context + 64) * 4)) / 32 * 32)); c.w16_elems = (size_t) 8 << 20; @@ -3041,15 +3048,27 @@ struct Model::Impl { return true; } - // y[r][c] = x16[r] . W[:, c] (+ beta y) for r < rows: W reconstructed to FP16 in whole 128-column blocks, cuBLAS + // y[r][c] = x16[r] . W[:, c] (+ beta y) for r < rows: W reconstructed to FP16 in whole 128-column blocks, then the product. + // The product prefers the engine's own RDNA3 WMMA kernel (src/prefill/wmma_gemm.cu) over hipBLAS: on gfx1151 hipBLAS + // measures 4.97 TFLOPS at this call convention while that kernel measures 20-40 (BM 128 x BN 256, grouped tile order), and + // the chunked prompt's dense GEMM is 11.1 s of a 4K prompt at the library's rate. Same operands and the same values (the + // k order differs, so it is rounding-level: the quality gate and the acceptance gate cover it); STRATA_DENSE_PFGEMM=0 keeps + // hipBLAS for an A/B. bool gemm(Dev& d, Chunk& c, const x3::Mat& m, const uint16_t* x16, int ldx, int rows, float* y, int ldy, float beta, std::string& err) { if (rows <= 0) return true; + static const bool pf = [] { + const char* v = std::getenv("STRATA_DENSE_PFGEMM"); + return v == nullptr || v[0] != '0'; + }(); const int cols = std::max(128, (int) std::min((size_t) m.n, c.w16_elems / (size_t) m.k) / 128 * 128); for (int c0 = 0; c0 < m.n; c0 += cols) { const int nc = std::min(cols, m.n - c0); if (m.fmt != 0) gg::rows(nc == m.n ? m : gg::view(m, c0, nc), c.w16, false, d.st); // (a GGUF's) else x3::reconstruct_rows(nc == m.n ? m : x3::view(m, c0, nc), c.w16, false, d.st); + if (pf && rows >= 64 && ((uintptr_t) x16 & 15u) == 0 && + strata_pf_gemm_f16_ld(x16, ldx, c.w16, m.k, y + c0, rows, nc, m.k, ldy, beta, d.st)) + continue; const float one = 1.0f; const cublasStatus_t st = cublasGemmEx(c.blas, CUBLAS_OP_T, CUBLAS_OP_N, nc, rows, m.k, &one, c.w16, CUDA_R_16F, m.k, x16, CUDA_R_16F, ldx, &beta, y + c0, CUDA_R_32F, ldy, From 1ee6060afba9593b821d5c3048110baeb7114dcd Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 15:08:43 +0100 Subject: [PATCH 26/52] docs: the 12 GB card's prompt figures are withdrawn - a five-pair repeat read +254% and -20.5% where the first read +35% and +17%, and that box's prompt swings 218-466 tok/s between arms --- docs/release-notes-0.2.7.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index 91122a6b..c0345964 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -50,8 +50,7 @@ on the RTX 3060 12 GB (IQ3_XXS), five interleaved pairs of fresh engines: |---|---|---| | decode story | 45.9 | **61.6 (+34.1%)** | | decode code | 43.6 | **73.1 (+67.6%)** | -| prompt 1K | 333.6 | **451.5 (+35.3%)** | -| prompt 4K, in a 4K context | 248.5 | **291.0 (+17.1%)** | +| prompt | **not claimed** - this box's prompt read swings between 218 and 466 tok/s across runs, and a repeat of the same five-pair A/B read +254% and -20.5% where the first read +35% and +17% | | decode behind a 4K document | 45.1 | **62.2 (+37.9%)** | It holds where it matters most: with **two conversations in flight** the whole recipe reads **31.2 -> 62.0 tok/s aggregate From 67cfaf2ac65b5b353eafa6e9321c309319b75729 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 15:43:31 +0100 Subject: [PATCH 27/52] prompt streaming: the staging ring sizes from the VRAM room (400 -> 1200 MB on Strix Halo) and the attention slab defaults to 32 MB - 4K prompt 27.3 -> 21.0 s ring_mb_auto() returned a flat 400 MB on any box whose experts do not fit in VRAM, but on such a box the ring is exactly what lets a prompt queue its likely experts early. 400 -> 1200 MB measured on the box (settle off): the queue 3,200 -> 8,087 experts, the disk's effective rate 1.49 -> 2.44 GB/s, the compute's exposed read wait 11.4 -> 3.5 s, the 4K prompt 148.98 -> 190.98 tok/s; 16K 290.97 -> 315.01, 32K 316.92 -> 325.89. Decode unmoved in an interleaved A/B (17.54/16.39 against 17.61 tok/s). It is now a sixteenth of the VRAM room clamped to 400-1200 MB, so a smaller pool still loads; DS4_RING_MB still overrides. c.A: the attention slab decides how many times each dense matrix is re-read a prompt. 8 -> 32 MB (STRATA_DS4_A_MB): 32K 325.89 -> 357.78 tok/s, 16K 315.01 -> 328.04, 8K +1.6%, 4K flat, decode unmoved (16.81 against 17.60 tok/s interleaved, noise-limited) for ~0.4 GB of VRAM. Best measured prompt set with the two new defaults (DS4_SETTLE_MS=0;DS4_SETTLE_STORE=0, which is a prompt-only trade): 4K 195.18, 8K 258.47, 16K 328.04, 32K 357.78 tok/s. With the settle work at its default a 4K prompt is 31.3 s = 130.89 tok/s (was 88.30). --- src/dsv41/ds4_model.cu | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 807ac003..6d151af6 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -2953,10 +2953,16 @@ struct Model::Impl { double exp_b = 0, other_b = 0, room = 0; const double share = gpu_expert_share(&exp_b, &room, &other_b); const bool fit = exp_b > 0 && share >= 1.0 / 1.3; // (R9700 x4: 0.86 -> ring 16: decode -1.8% after a prompt, 64: -4.4%, 400: -4.6%) + // A box whose experts do not fit (a unified-memory APU) streams them from the disk, and the ring is what lets the + // prompt queue its likely ones early: 400 -> 1200 MB on Strix Halo took the queue 3,200 -> 8,087 experts, the disk + // 1.49 -> 2.44 GB/s and the compute's exposed read wait 11.4 -> 3.5 s (4K prompt 27.3 -> 21.3 s, 148.98 -> 190.98 + // tok/s) with decode unchanged (17.54/16.39 against 17.61 tok/s interleaved). A sixteenth of the VRAM room, so a + // small pool still loads. DS4_RING_MB overrides. + const size_t want = (size_t) std::max(400.0, std::min(1200.0, room / 1e9 * 64.0)); if (o.verbose) std::fprintf(stderr, "ds4: staging ring: experts %.1f GB, VRAM room %.1f GB, dense %.1f GB -> %d MB\n", exp_b / 1e9, - room / 1e9, other_b / 1e9, fit ? 16 : 400); - return fit ? 16 : 400; + room / 1e9, other_b / 1e9, fit ? 16 : (int) want); + return fit ? 16 : want; } bool alloc_chunks(std::string& err) { chunks.resize(devs.size()); @@ -2973,11 +2979,13 @@ struct Model::Impl { split128(g.ff, nm, 0, ff0_, FF); // (the widest member's share: member 0 takes the odd blocks) const size_t C = (size_t) chunk; c.C = chunk; - // the attention slab's rows: 8 MB of q by default. Every dense GEMM of a layer is issued once a slab, so the slab - // width divides the prompt's dense weight traffic (the matrices are re-read once a slab): STRATA_DS4_A_MB widens it. + // the attention slab's rows: 32 MB of q. Every dense GEMM of a layer is issued once a slab, so the slab width + // divides the prompt's dense weight traffic (each matrix is re-read once a slab): 8 -> 32 MB took the 32K prompt + // 325.89 -> 357.78 tok/s, 16K 315.01 -> 328.04, 8K +1.6%, 4K flat, with decode unmoved (16.81 against 17.60 tok/s + // interleaved, noise-limited). STRATA_DS4_A_MB overrides (8 restores the old slab). static const size_t a_mb = [] { const char* v = std::getenv("STRATA_DS4_A_MB"); - return (size_t) (v != nullptr ? std::max(1, std::atoi(v)) : 8); + return (size_t) (v != nullptr ? std::max(1, std::atoi(v)) : 32); }(); c.A = std::max(64, (int) ((a_mb << 20) / (size_t) HQ) / 64 * 64); // (the indexer's slab: its scores rows are the context wide - about 64 MB of them) From 879b958a3e7aa708c45574d076936e3cb1c4e759 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 16:08:11 +0100 Subject: [PATCH 28/52] docs: setup is expected to choose --ple-io ram on a RAM-rich Linux PC - say to check setup --plan rather than asserting it --- docs/release-notes-0.2.7.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index c0345964..8c10493d 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -21,8 +21,8 @@ These need no engine change; they are settings. Each was measured on the same boxes. - **`--ple-io ram`** - the 28.8 GB n-gram table in RAM instead of read from the SSD row by row. On the 72 GB card - (251 GB RAM): prompt **+16.5% at 1K, +30.6% at 4K, +16.8% at 8K**, -2.6% at 16K. Setup already chooses it on - Linux PCs with RAM to spare. + (251 GB RAM): prompt **+16.5% at 1K, +30.6% at 4K, +16.8% at 8K**, -2.6% at 16K. Setup chooses it on a Linux PC + with RAM to spare - check `setup --plan` on yours before trusting that. - **`--mtp-draft-vocab draft_vocab_en.bin`** - the helper that guesses the next words considers 162 KB of the vocabulary instead of 425 KB, so it reads less per guess: **+2.7..3.1% story and +2.2..3.0% code** decode on both big boxes. The big model checks every guess, so the answers are unchanged (identical tokens in every run where From fd81df6972b656fbfd480be8cb16c4438384d1ff Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 16:16:28 +0100 Subject: [PATCH 29/52] DeepSeek engine (AMD): the matrix-core attention on by default for the chunked prompt fast_attn_enabled() was opt-in (DS4_FAST_ATTN=1); with the prompt chunk at 1024 it is worth far more than when it was gated: measured on 4x R9700, 2.25 bpw, 8K code prompts, three warm prompts a load, the same ids (5705e1164a) -- without it 1159 / 1180 / 1195 ppts (median 1180) with it 1327 / 1354 / 1360 ppts (median 1354, +14.7%) and after this commit the un-enved default reads 1314 / 1357 / 1369 (median 1357), i.e. identical to setting the flag, so a deployment no longer needs any environment at all. The QK/PV sums are the matrix cores' order, which the owner already approved for the prefill; the decode path keeps the scalar kernels. DS4_FAST_ATTN=0 turns it off (it is a no-op on CUDA, whose dispatch is not compiled). --- src/dsv41/ds4_kernels.cu | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/dsv41/ds4_kernels.cu b/src/dsv41/ds4_kernels.cu index 7656f33a..a0b7c38a 100644 --- a/src/dsv41/ds4_kernels.cu +++ b/src/dsv41/ds4_kernels.cu @@ -1998,13 +1998,15 @@ bool split_enabled() { }(); return on; } -// DS4_FAST_ATTN=1: the chunked prompt's packed-KV attention on the matrix cores (sparse_attn_wmma_kernel). Opt-in: the -// QK/PV sums are the matrix cores' order, so the outputs differ from the scalar kernel's in the last places (the owner -// approved the trade for the prefill; the decode path stays on the scalar kernels). +// The chunked prompt's packed-KV attention on the matrix cores (sparse_attn_wmma_kernel). ON by default: measured on +// 4x R9700, 2.25 bpw, 8K code prompts, warm medians of three a load -- 1180 ppts without it, 1354 with it (+14.7%), +// the same ids (5705e1164a). The QK/PV sums are the matrix cores' order, so the last places differ from the scalar +// kernel's and the owner approved that trade for the prefill; the decode path stays on the scalar kernels. +// DS4_FAST_ATTN=0 turns it off. bool fast_attn_enabled() { static const bool on = [] { const char* e = std::getenv("DS4_FAST_ATTN"); - return e != nullptr && std::atoi(e) != 0; + return e != nullptr ? std::atoi(e) != 0 : true; }(); return on; } From 259532bf2e7457791114e66cade358a2a6415e44 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 17:07:53 +0100 Subject: [PATCH 30/52] prompt: the RAM store's post-prompt preload is off by default - it costs a 4K prompt 4.7 s and the decode that follows gains nothing cache_settle()'s store preload (DS4_SETTLE_STORE) read 2,243 hot experts into free store slots after every chunked prompt: 4,713 ms of a 4K prompt. Measured on the box (code fixture, prompt + 256 tokens, interleaved, 3 runs a side): with it on the decode is 13.9/14.4 s, with it off 14.2 s - no benefit - while the 4K prompt goes 31.3 -> 26.6 s (130.89 -> 153.78 tok/s). The swap loop above it is what the decode uses (it holds the CPU lane at ~5-7 k experts a run against ~14 k without), so that keeps its budget; DS4_SETTLE_STORE=1 restores the preload. --- src/dsv41/ds4_model.cu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 6d151af6..48d6d54f 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -6282,7 +6282,10 @@ struct Model::Impl { if (sw_inflight == 0) break; // (nothing queued: every layer's best CPU-lane expert is not hotter than its coldest VRAM one) std::this_thread::sleep_for(std::chrono::milliseconds(1)); } - if (store && env_f("DS4_SETTLE_STORE", 1.0f) != 0.0f) { // the RAM store too: a window prompt fills it through the CPU + // The RAM store's preload after a chunked prompt is off by default: measured on Strix Halo (code fixture, prompt + + // 256 tokens, 3 runs a side) it costs the prompt 4.7 s and the decode that follows gains nothing (13.9/14.4 s with it + // against 14.2 s without). The swaps above are what the decode actually uses; DS4_SETTLE_STORE=1 restores it. + if (store && env_f("DS4_SETTLE_STORE", 0.0f) != 0.0f) { // the RAM store too: a window prompt fills it through the CPU // lane's picks, a chunked one streams past it - the hottest CPU-lane experts of the prompt into its free slots std::vector>> hot; for (const Layer& l : L) { From 2e1fad783d232e4904903dfdd079e96aad949a21 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 17:35:48 +0100 Subject: [PATCH 31/52] host test offline-start: point STRATA_COMPONENTS_DIR at the test's own folder so the host cannot find an installed Strata Control. On a PC with the app installed the update check went through the installed Control (no host fetch, 45 s), so the test saw 0 outside calls and failed; it failed the same on v0.2.6. With the fix both tests pass in 2-12 s. --- apps/host/tests/offline-start.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/host/tests/offline-start.test.mjs b/apps/host/tests/offline-start.test.mjs index dd53ee4d..4968e131 100644 --- a/apps/host/tests/offline-start.test.mjs +++ b/apps/host/tests/offline-start.test.mjs @@ -26,7 +26,7 @@ async function startOfflineHost() { let output = ''; const host = spawn(process.execPath, ['--import', preload, 'server/index.mjs'], { cwd: root, stdio: ['ignore', 'pipe', 'pipe'], - env: { ...process.env, STRATA_HOME: home, STRATA_MODELS_DIR: join(home, 'models'), STRATA_PORT: String(port), STRATA_SHARE_PORT: String(await freePort()), STRATA_TUNNEL_PORT: String(await freePort()), STRATA_PACKAGED: '1', STRATA_NET_LOG: log, STRATA_NO_ACQUIRE: '1', STRATA_REAL_ENGINE: '0', STRATA_TEST_HARDWARE: ROOMY_HOST }, + env: { ...process.env, STRATA_HOME: home, STRATA_MODELS_DIR: join(home, 'models'), STRATA_PORT: String(port), STRATA_SHARE_PORT: String(await freePort()), STRATA_TUNNEL_PORT: String(await freePort()), STRATA_PACKAGED: '1', STRATA_COMPONENTS_DIR: join(home, 'components'), STRATA_NET_LOG: log, STRATA_NO_ACQUIRE: '1', STRATA_REAL_ENGINE: '0', STRATA_TEST_HARDWARE: ROOMY_HOST }, }); host.stdout.on('data', d => { output += d; }); host.stderr.on('data', d => { output += d; }); let up = false; From 20c2f42bf106c6c58377e4fe77029b6d78e3fd85 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 17:36:16 +0100 Subject: [PATCH 32/52] ds4_iq.cu: the NUL character literal in dq_use_old_kernel had been written as a raw NUL byte by the merge script (nvcc: quoted string should contain at least one character); it is a backslash-zero escape again --- src/dsv41/ds4_iq.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsv41/ds4_iq.cu b/src/dsv41/ds4_iq.cu index b0539d1d..931e3d33 100644 --- a/src/dsv41/ds4_iq.cu +++ b/src/dsv41/ds4_iq.cu @@ -1393,7 +1393,7 @@ __global__ void __launch_bounds__(kThreads) dq_rows_kernel(const uint8_t* __rest // prompt 79.5 -> 88.5 tok/s with it, so a gfx11 device defaults to it. DS4_DQ_OLD=1 forces it anywhere, DS4_DQ_OLD=0 forces kernel2 // anywhere. The detection is the device's gcnArchName (HIP only; a CUDA build has no gfx11). Decided once per device. static bool dq_use_old_kernel() { - if (const char* e = std::getenv("DS4_DQ_OLD"); e != nullptr && *e != '') return std::atoi(e) != 0; + if (const char* e = std::getenv("DS4_DQ_OLD"); e != nullptr && *e != '\0') return std::atoi(e) != 0; #if defined(STRATA_USE_HIP) static std::atomic cache[64]; // 0 unknown, 1 no, 2 yes int dev = 0; From 063b3c5dc8b2ea1eb4493d915d7295754ae3be5a Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 17:48:36 +0100 Subject: [PATCH 33/52] DeepSeek engine: the RDNA3 WMMA dense GEMM call in gemm() is HIP-only (wmma_gemm.cu is part of the AMD builds; main's 0eea4a3d5 called strata_pf_gemm_f16_ld unconditionally, so a CUDA build failed to link: unresolved external) --- src/dsv41/ds4_model.cu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index e224ad6a..deee99ab 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -3110,18 +3110,22 @@ struct Model::Impl { bool gemm(Dev& d, Chunk& c, const x3::Mat& m, const uint16_t* x16, int ldx, int rows, float* y, int ldy, float beta, std::string& err) { if (rows <= 0) return true; +#if defined(STRATA_USE_HIP) // (wmma_gemm.cu is part of the AMD builds only: a CUDA build has no such kernel and keeps cuBLAS) static const bool pf = [] { const char* v = std::getenv("STRATA_DENSE_PFGEMM"); return v == nullptr || v[0] != '0'; }(); +#endif const int cols = std::max(128, (int) std::min((size_t) m.n, c.w16_elems / (size_t) m.k) / 128 * 128); for (int c0 = 0; c0 < m.n; c0 += cols) { const int nc = std::min(cols, m.n - c0); if (m.fmt != 0) gg::rows(nc == m.n ? m : gg::view(m, c0, nc), c.w16, false, d.st); // (a GGUF's) else x3::reconstruct_rows(nc == m.n ? m : x3::view(m, c0, nc), c.w16, false, d.st); +#if defined(STRATA_USE_HIP) if (pf && rows >= 64 && ((uintptr_t) x16 & 15u) == 0 && strata_pf_gemm_f16_ld(x16, ldx, c.w16, m.k, y + c0, rows, nc, m.k, ldy, beta, d.st)) continue; +#endif const float one = 1.0f; const cublasStatus_t st = cublasGemmEx(c.blas, CUBLAS_OP_T, CUBLAS_OP_N, nc, rows, m.k, &one, c.w16, CUDA_R_16F, m.k, x16, CUDA_R_16F, ldx, &beta, y + c0, CUDA_R_32F, ldy, From 7c4c20799c2cd8b3a0d91d25f4a7355eedf8643f Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 18:19:39 +0100 Subject: [PATCH 34/52] Residency-biased routing default is CUDA-discrete-only: read from the device properties once in Verifier::init (never first inside a graph capture), off in HIP builds and on integrated GPUs, a line in the log when it is on; the wide HC up read never defaults on in a HIP build (gfx12 reports compute capability 12.0 too) --- docs/DETAILS.md | 4 +-- docs/release-notes-0.2.7.md | 3 +- src/core/verify.cpp | 54 ++++++++++++++++++++++++------------ src/kernels/cuda/fused_gr.cu | 6 ++++ 4 files changed, 47 insertions(+), 20 deletions(-) diff --git a/docs/DETAILS.md b/docs/DETAILS.md index 43538ddc..afd8290a 100644 --- a/docs/DETAILS.md +++ b/docs/DETAILS.md @@ -899,7 +899,7 @@ them on your own card. | `STRATA_PREFILL_EQUAL=1` | CUDA | A prompt segment is read in chunks of equal size, not full chunks and a short last one. Changes rounding. | | | `STRATA_OWNED_PRICE=exact` | CUDA | The cache sizing prices the prompt path's own buffers by their real allocation. | | | `STRATA_IQ_MT_MIN=1`, `STRATA_IQ3S_MT1=1` | CPU | See [Draft layer](#draft-layer) (reproducible output; the second gives IQ3_S the multi-token kernel for one token on Alder Lake and later without AVX-512). | | -| `STRATA_ROUTE_PRIOR`, `STRATA_ROUTE_RESIDENT`, `STRATA_ROUTE_RESIDENT_MTP` | CUDA | Routing changes that add speed and also add KL. | Not recommended. | +| `STRATA_ROUTE_PRIOR`, `STRATA_ROUTE_RESIDENT`, `STRATA_ROUTE_RESIDENT_MTP` | CUDA | Routing changes that add speed and also add KL. | Not recommended, except that 0.2.7 turns `STRATA_ROUTE_PRIOR=2.0` on by itself on a discrete NVIDIA card of 13 GiB or less (the owner approved the quality trade for 12 GB cards); `STRATA_ROUTE_PRIOR=0` turns it off. It is never a default on a Radeon, an integrated GPU or a bigger card. | | `STRATA_HOST_CORE=last\|sibling` (or `--host-core`) | Windows | `last` puts the host thread on the last physical core, away from the core that gets the GPU's interrupts. `sibling` keeps it on the first core's other hardware thread, so the workers keep every core. The default `first` leaves a hybrid CPU as it is. | One layer-split box went from a ±6% swing to steady and 8% faster. | | `--pool-affinity measure` | Hybrid CPUs, native packs | Times the `all` and `p-cores` layouts at start (about a second) and takes the faster. The measurement is taken once; where the E-cores' speed changes while the engine runs, `--pool-affinity p-cores` is the steady choice. | | | `STRATA_KEEP_EMPTY_TURNS=1`, `STRATA_TOPK_STREAM=0` | | See [TROUBLESHOOTING.md](TROUBLESHOOTING.md). | | @@ -1078,7 +1078,7 @@ On 12.0 cards (sm_120) these also apply: prompt time and start-up time, which is why smaller PCs keep the SSD reads. A prompt chunk above 8192 (`--prefill auto:16384` or `auto:32768`) is not bit-exact on CUDA, so the default stays 8192 on -NVIDIA. It is exact on gfx12, where 16384 is the default. `STRATA_ROUTE_PRIOR=0.5` stays opt-in because it raises KL. +NVIDIA. It is exact on gfx12, where 16384 is the default. `STRATA_ROUTE_PRIOR` raises KL, so below 0.2.7 it was opt-in; 0.2.7 sets 2.0 by itself only on a discrete NVIDIA card of 13 GiB or less. --- diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index 8c10493d..8166d70d 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -42,7 +42,8 @@ These need no engine change; they are settings. Each was measured on the same bo ## The 12 GB default: residency-biased routing -**On by default at 2.0 on a card with 13 GiB of memory or less** (`STRATA_ROUTE_PRIOR=0` turns it off). The router prefers +**On by default at 2.0 on a discrete NVIDIA card with 13 GiB of memory or less** (`STRATA_ROUTE_PRIOR=0` turns it off; +not a default on a Radeon, a Strix Halo or any integrated GPU, where it was not measured). The router prefers experts that are already resident, so a window stops waiting on a page-in that the next window would need again. Measured on the RTX 3060 12 GB (IQ3_XXS), five interleaved pairs of fresh engines: diff --git a/src/core/verify.cpp b/src/core/verify.cpp index 6c7d1a1b..b9d4eede 100644 --- a/src/core/verify.cpp +++ b/src/core/verify.cpp @@ -204,6 +204,32 @@ inline int g_side_mixer() { return per_dev[dev] - 1; #endif } +// STRATA_ROUTE_PRIOR=lambda: residency-biased routing (the top-10 picked again with a logit bonus for the resident +// experts; route_prior.cu). Unset: 2.0 on a DISCRETE NVIDIA card of 13 GiB or less (CUDA builds only), 0 elsewhere. +// Measured on an RTX 3060 12 GB only (IQ3_XXS, 5 interleaved pairs: +37.6% / +35.2% decode); the owner approved the +// quality trade for 12 GB cards (it changes which experts run). Not a default in a HIP build (a 12 GB Radeon, or a +// Strix Halo whose reported VRAM is a small carve-out of unified memory: unmeasured there) and not on an integrated GPU. +// STRATA_ROUTE_PRIOR=0 turns it off, any other value wins everywhere. The default is read from the device properties +// (no allocation, no stream work), and Verifier::init asks once per card, so the first ask is never inside a graph capture. +inline float g_route_prior() { + static const char* const env_s = std::getenv("STRATA_ROUTE_PRIOR"); + static const float env = env_s ? (float) std::atof(env_s) : 0.0f; + if (env_s != nullptr) return env; +#if defined(STRATA_USE_HIP) || defined(STRATA_GPU_METAL) + return 0.0f; +#else + static float per_dev[64]; // 0 unknown, else prior + 1 + int dev = 0; + if (cudaGetDevice(&dev) != cudaSuccess || dev < 0 || dev >= 64) { cudaGetLastError(); return 0.0f; } + if (per_dev[dev] == 0.0f) { + cudaDeviceProp p; + const bool ok = cudaGetDeviceProperties(&p, dev) == cudaSuccess; + if (!ok) cudaGetLastError(); + per_dev[dev] = 1.0f + (ok && !p.integrated && (double) p.totalGlobalMem / 1073741824.0 <= 13.0 ? 2.0f : 0.0f); + } + return per_dev[dev] - 1.0f; +#endif +} inline bool g_qfuse() { static const bool on = [] { const char* v = std::getenv("STRATA_QFUSE"); return v != nullptr && std::atoi(v) != 0; }(); return on; } #define VDBG(...) do { if (g_dbg) { std::fprintf(stderr, "verify dbg: " __VA_ARGS__); std::fflush(stderr); } } while (0) @@ -703,6 +729,12 @@ bool Verifier::init(const WeightTable& wt, const ModelGeometry& g, SessionState& release_gpu_fn().store(&release_live_verifiers); cudaGetDevice(&device_); // a layer split's stage on another GPU: its streams, graphs and buffers live there rr_stats_ = route_resident_cfg().stats_on(device_); // STRATA_ROUTE_RESIDENT: this GPU's counters, outside graph capture + { // once per card, here: record_window (graph capture) only reads the cached value + const float rp = g_route_prior(); + if (rp > 0.0f && std::getenv("STRATA_ROUTE_PRIOR") == nullptr) + std::fprintf(stderr, "strata verify: residency-biased routing is on by default on this card (STRATA_ROUTE_PRIOR=%.1f: a card of 13 GiB " + "or less; it changes which experts run; STRATA_ROUTE_PRIOR=0 turns it off)\n", (double) rp); + } strata::kernels::fused_gr_check(); // once per card: which bitwise-equal hyper-connection read runs there strata::kernels::fused_gr_persist_init(); // opt-in STRATA_HC_PERSIST=1 (HIP) wt_ = &wt; @@ -1966,23 +1998,11 @@ bool Verifier::record_window(int T, cudaStream_t cs, std::string& err) { mb.logits = logits_ + t * NE; mb.ids = ids_ + t * K; mb.weights = w_ + t * K; if (!moe_route(wt, g, l, K, mb, mixed_ + t * N, cs, err, nullptr)) return false; } - // STRATA_ROUTE_PRIOR=lambda: the top-10 picked again with a logit bonus for the resident experts; the weights - // stay the router's (route_prior.cu). **On by default at 2.0 on a card of 13 GiB or less**, where the expert - // cache cannot hold the model: measured on an RTX 3060 12 GB (IQ3_XXS), 5 interleaved pairs, story 44.2 -> - // 60.9 tok/s (+37.6%) and code 47.3 -> 64.0 (+35.2%); at 1.0 it is +22.6% / +24.6%. The owner approved the - // quality trade for 12 GB cards (it changes which experts run). It is NOT a default where the cache holds - // the model: on an RTX PRO 5000 72 GB it measured -1.9% / -0.5% and on 2x RTX A4000 -4.2% / +11.0%, so - // STRATA_ROUTE_PRIOR=0 turns it off and any explicit value wins. - static const float route_prior = [] { - const char* v = std::getenv("STRATA_ROUTE_PRIOR"); - if (v != nullptr) return (float) std::atof(v); - int dev = 0; - if (cudaGetDevice(&dev) != cudaSuccess) return 0.0f; - size_t free_b = 0, total_b = 0; - if (cudaMemGetInfo(&free_b, &total_b) != cudaSuccess) return 0.0f; - cudaGetLastError(); // drop what a query on a device without a context leaves behind - return (double) total_b / 1073741824.0 <= 13.0 ? 2.0f : 0.0f; - }(); + // STRATA_ROUTE_PRIOR=lambda (changes the output): the top-10 picked again with a logit bonus for the resident + // experts; the weights stay the router's (route_prior.cu). The default is g_route_prior() above: 2.0 on a + // discrete CUDA card of 13 GiB or less, off elsewhere (measured on an RTX 3060 12 GB: story +37.6%, code +35.2%; + // on an RTX PRO 5000 72 GB -1.9% / -0.5%, on 2x RTX A4000 -4.2% / +11.0%, hence not a default on bigger cards). + const float route_prior = g_route_prior(); if (route_prior > 0.0f && NE == 512 && K == 10 && hits_.d_res != nullptr) route_prior_top10(logits_ + tb * NE, hits_.d_res + l * g.n_expert, route_prior, ids_ + tb * K, w_ + tb * K, n, cs); if (route_resident_cfg().margin > 0.0f && NE == 512 && K == 10 && hits_.d_res != nullptr) { diff --git a/src/kernels/cuda/fused_gr.cu b/src/kernels/cuda/fused_gr.cu index a70b7abe..73a9089b 100644 --- a/src/kernels/cuda/fused_gr.cu +++ b/src/kernels/cuda/fused_gr.cu @@ -444,6 +444,11 @@ constexpr int UPW_BLOCKS = N / UPW_COLS; /// resident, 5 interleaved pairs of fresh engines): story 197.6 -> 201.3 tok/s (+1.9%), code 243.5 -> 245.1 (+0.7%), /// the produced token ids identical in 6/6 runs; the isolated read (fused_gr_bench) is bitwise the old kernel's. bool gr_up_wide_on() { +#if defined(__HIPCC__) + // A HIP build never takes it: gfx1200 / gfx1201 report compute capability 12.0 too, and sm120_default() would turn the + // CUDA-measured kernel on there (unmeasured on AMD). The persistent HC read is the HIP card's own opt-in. + return false; +#else static const int env = [] { const char* v = std::getenv("STRATA_GR_UP_WIDE"); return v != nullptr ? (std::atoi(v) != 0 ? 1 : 0) : -1; @@ -460,6 +465,7 @@ bool gr_up_wide_on() { cudaGetLastError(); // drop what an attribute query on a CPU-only box leaves behind } return per_dev[dev] == 2; +#endif } template From 3b64abf5e095ee493739f701fda7161d2e6fcef4 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 18:29:34 +0100 Subject: [PATCH 35/52] DeepSeek drafter cumulative cut 0.5 by default on gfx1200/gfx1201 only (Model::gpus_are_gfx12); Strix Halo, other AMD and CUDA keep 0 until measured --- src/dsv41/ds4_main.cpp | 25 +++++++++---------------- src/dsv41/ds4_model.cu | 16 ++++++++++++++++ src/dsv41/ds4_model.hpp | 2 ++ 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/dsv41/ds4_main.cpp b/src/dsv41/ds4_main.cpp index fdbd542e..2c11b876 100644 --- a/src/dsv41/ds4_main.cpp +++ b/src/dsv41/ds4_main.cpp @@ -152,21 +152,14 @@ static int g_round_nd = 0; // The drafts' cut on the product of their confidences (DeepInfer's cumulative rule): a draft is verified while the chance // that it and every draft before it are kept stays at least this - a long window whose later drafts are likely lost is // not verified whole. STRATA_DS4_DSPARK_CUM=F, a request's dspark_cum key; 0: off, only the floor on each draft's own -// confidence (dspark_conf). On AMD 0.5 is the default: measured on 4x R9700, DeepSeek 2.25 bpw, six 128-token -// decodes an arm in one load - 71.7 -> 76.9 tok/s (medians), the same ids; Project Maya runs 0.5 on a Radeon 8065S -// too (+6.5% decode, the same tokens), while the CUDA measurements in 0.2.7 had it flat, so CUDA keeps 0. -// STRATA_DS4_DSPARK_CUM overrides either way. -float dspark_cum_default() { - static const float v = [] { - const char* e = std::getenv("STRATA_DS4_DSPARK_CUM"); - if (e != nullptr) return (float) std::atof(e); -#if defined(STRATA_USE_HIP) - return 0.5f; -#else - return 0.0f; -#endif - }(); - return v; +// confidence (dspark_conf). 0.5 is the default on gfx1200 / gfx1201 (RDNA4: R9700, RX 9000) only: measured on 4x R9700, DeepSeek 2.25 bpw, +// six 128-token decodes an arm in one load - 71.7 -> 76.9 tok/s (medians), the same ids. Project Maya ran 0.5 on a Radeon 8065S (Strix Halo, +// gfx1151: +6.5% decode, the same tokens), but that is a single datapoint on a box the 0.2.7 defaults have not been tested on, so +// Strix keeps 0 until it is; the CUDA measurements in 0.2.7 had it flat, so CUDA keeps 0. STRATA_DS4_DSPARK_CUM overrides everywhere. +float dspark_cum_default(const strata::ds4::Model& m) { + static const char* const e = std::getenv("STRATA_DS4_DSPARK_CUM"); + if (e != nullptr) return (float) std::atof(e); + return m.gpus_are_gfx12() ? 0.5f : 0.0f; } // One round of decoding after `tok` (the token at pos(), not fed yet): with the drafter, its drafts while their @@ -184,7 +177,7 @@ bool round(strata::ds4::Model& m, int tok, int room, bool spec, float conf_min, g_round_conf = conf; g_round_nd = (int) drafts.size(); int keep = 0; - if (cum_min < 0) cum_min = dspark_cum_default(); + if (cum_min < 0) cum_min = dspark_cum_default(m); float cum = 1.0f; while (keep < (int) drafts.size() && keep < room - 1 && conf[(size_t) keep] >= conf_min && (cum *= conf[(size_t) keep]) >= cum_min) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 8c3052ae..0286e716 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -811,6 +811,7 @@ struct Model::Impl { std::vector groups; std::vector> workers; // threads mode: one per device bool par = false; // threads mode (the windows: decode) + mutable int all_gfx12 = -1; // gpus_are_gfx12(): -1 not asked yet bool prompt_par = false; // the prompt path's chunks (a thread a GPU), as --tp / --threads asked unsigned win_seq = 0; // the windows the threads ran (the hand-offs' seq) // the chunked prompt path (threads mode): chunk tokens a pass, runs shorter than chunk_min in windows @@ -9663,6 +9664,21 @@ void Model::set_images(std::vector images) { p_->imgs = std::move(images); } int Model::draft_block() const { return p_->g.n_mtp > 0 ? p_->g.d_block : 0; } +bool Model::gpus_are_gfx12() const { + if (p_->all_gfx12 < 0) { + bool yes = false; +#if defined(STRATA_USE_HIP) + yes = !p_->devs.empty(); + for (const auto& d : p_->devs) { + cudaDeviceProp prop{}; + yes = yes && cudaGetDeviceProperties(&prop, d.id) == cudaSuccess && + (std::strncmp(prop.gcnArchName, "gfx1200", 7) == 0 || std::strncmp(prop.gcnArchName, "gfx1201", 7) == 0); + } +#endif + p_->all_gfx12 = yes ? 1 : 0; + } + return p_->all_gfx12 == 1; +} bool Model::draft(int y, std::vector& d, std::vector& c, std::string& err, float t, float tp, int tk, float mp, uint64_t seed, uint64_t counter) { return p_->draft(y, d, c, err, t, tp, tk, mp, seed, counter); diff --git a/src/dsv41/ds4_model.hpp b/src/dsv41/ds4_model.hpp index 9cac562c..afa9d2a6 100644 --- a/src/dsv41/ds4_model.hpp +++ b/src/dsv41/ds4_model.hpp @@ -129,6 +129,8 @@ public: /// DeepSeek's reference does. verify() keeps a draft d with probability min(1, p(d) / q(d)) over the request's /// chain - the speculative-sampling rule, so every token is still distributed as the model's own draw. int draft_block() const; + /// every GPU the engine uses is a gfx1200 / gfx1201 (RDNA4: R9700, RX 9000) in a HIP build, false anywhere else (decided once) + bool gpus_are_gfx12() const; bool draft(int y, std::vector& drafts, std::vector& conf, std::string& err, float temperature = 0.0f, float top_p = 1.0f, int top_k = 0, float min_p = 0.0f, uint64_t seed = 0, uint64_t counter = 0); bool verify(int y, const std::vector& drafts, float temperature, float top_p, int top_k, float min_p, From 484c6893375c579170685e32445ccf7a3e152c2d Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 18:33:37 +0100 Subject: [PATCH 36/52] DeepSeek: the 4 x R9700 share-based defaults (small chunk for multi-card tp runs, whole-chunk slab, small staging ring, pinned copy at share >= 0.5) apply to HIP builds only; the staging ring takes a hip flag; tests for both branches --- src/dsv41/ds4_experts_rule.hpp | 11 ++++--- src/dsv41/ds4_model.cu | 20 ++++++++---- tests/dsv41/experts_rule_test.cpp | 52 +++++++++++++++++-------------- 3 files changed, 50 insertions(+), 33 deletions(-) diff --git a/src/dsv41/ds4_experts_rule.hpp b/src/dsv41/ds4_experts_rule.hpp index 50e23d98..746822ea 100644 --- a/src/dsv41/ds4_experts_rule.hpp +++ b/src/dsv41/ds4_experts_rule.hpp @@ -47,7 +47,7 @@ inline int prefill_chunk_default(bool own_default, double gpu_share, bool gguf_c // `strata launch` writes for 4 or more AMD cards), share 0.86: 1024 370 against 214 tok/s at 8192; and with the engine's own default tp // (2, pairs of cards, nothing written), where the rule used to fall through to 2048/8192: 2.25 bpw, --dspark auto, ids 5705e1164a, 8K // warm prompts 1024 -> 1247 ppts against 690 at 8192, decode unchanged. So a multi-card tp run takes it too. One card with the default - // tp, and `--threads on` (it stalled at the first 8K prompt in the 4-card runs), keep their old defaults: not measured with 1024. + // tp, `--threads on` (it stalled at the first 8K prompt in the 4-card runs) and a build that is not HIP keep their old defaults: not measured with 1024. // An explicit --prefill-chunk N wins over all of this (the call site takes the rule only when none was given). if ((own_default || multi_tp) && gpu_share >= 0.5) return 1024; if (gguf_copy && !hip && min_vram_bytes >= kChunk4096MinVram) return 4096; @@ -81,7 +81,8 @@ inline bool copy_all_fits(double lane_bytes, uint64_t ram_avail, double ram_marg // ppts with the 256-row rule against 1324 / 1353 / 1363 with a 1024-row slab (+9%), decode 77.7 against 78.1 tok/s, 268 MB a device (1% of // the card). That branch asks for min(chunk, 1024) rows whatever the spare room (the spare of such a box is negative: its room is all // experts), and never less than the base; the automatic growth on top of it still applies where the room is there. A unified-memory GPU -// (the caller passes env 0 there) and DS4_ATTN_SLAB=0 never take either branch. +// (the caller passes env 0 there) and DS4_ATTN_SLAB=0 never take either branch. The caller passes 0 for `expert_share` in a build that is not +// HIP: that branch is the 4 x R9700 measurement. inline int attn_slab_rows(int env, int chunk, int base, double spare_bytes, double bytes_per_row, double expert_share = 0.0) { auto clampn = [&](int a) { return std::max(64, std::min(chunk, a) / 64 * 64); }; if (env == 0) return base; @@ -107,11 +108,13 @@ inline int attn_slab_rows(int env, int chunk, int base, double spare_bytes, doub // summed room, 64 MB a GB, 400..1200 MB. Measured on Strix Halo only (400 -> 1200: the queue 3,200 -> 8,087 experts, 4K prompt 27.3 // -> 21.3 s, decode unchanged); a discrete card in this band is not measured and takes the same, VRAM-bounded, rule. // A unified-memory GPU never takes the small ring (its datapoint is the 1200 MB one): it keeps the 16 MB "fit" rule at 1/1.3. -inline int staging_ring_mb(double share, double room_bytes, int n_dev, bool integrated) { +// `hip`: the 0.5..0.82 band and the 0.82 threshold are the 4 x R9700 measurements, so only a HIP build takes them; any other build keeps main's +// rule there (16 MB from 1/1.3, the streamed ring below it) until a CUDA multi-card rig is measured. +inline int staging_ring_mb(double share, double room_bytes, int n_dev, bool integrated, bool hip) { const double GB = 1e9; const double per_dev = n_dev > 0 ? room_bytes / (double) n_dev : 0.0; const double streamed = std::min(1200.0, std::max(400.0, room_bytes / GB * 64.0)); - if (integrated) return share >= 1.0 / 1.3 ? 16 : (int) streamed; + if (integrated || !hip) return share >= 1.0 / 1.3 ? 16 : (int) streamed; if (share >= 0.82) return 16; if (share >= 0.5) return (int) std::min(512.0, std::max(128.0, per_dev / GB * 8.0)); return (int) streamed; diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 0286e716..d35398e2 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -78,6 +78,14 @@ namespace gg = strata::ds4::gguf; namespace { +// The DeepSeek engine's share-based defaults (small chunk, whole-chunk slab, small ring, pinned copy) are the 4 x R9700 measurements: only a HIP +// build takes them. +#if defined(__HIP_PLATFORM_AMD__) || defined(__HIPCC__) +constexpr bool kHipBuild = true; +#else +constexpr bool kHipBuild = false; +#endif + double now_ms() { return std::chrono::duration(std::chrono::steady_clock::now().time_since_epoch()).count(); } @@ -2032,7 +2040,7 @@ struct Model::Impl { // most (4 x R9700: 8192 214, 1024 370) the small one wins; with the experts copied into RAM (--mmap-experts off) 4096 beats 8192 by 7-9% // (H100 32 GiB: 2048 502, 4096 538, 8192 495). A GGUF pack always has file_experts set (copied only by --mmap-experts off). const bool own_default = !(par || o.tp > 1); // (a run with tp 1 and no --threads: `strata launch` writes --tp 1 for 4+ AMD cards, --tp 2 for 2-3 and nothing for one card = the engine's tp 2) - const bool multi_tp = !own_default && !o.threads && devs.size() >= 2; // (the 4-card default-tp run the 1024 chunk was also measured on; an explicit --prefill-chunk below wins over the rule) + const bool multi_tp = kHipBuild && !own_default && !o.threads && devs.size() >= 2; // (the 4-card default-tp run the 1024 chunk was also measured on; an explicit --prefill-chunk below wins over the rule) const bool gguf_copy = pk.gguf && (o.mmap_experts == 0 || (store_gb() <= 0.0 && auto_copy_all)); uint64_t vmin_bytes = ~0ull; for (const Dev& dv : devs) vmin_bytes = std::min(vmin_bytes, (uint64_t) dv.total); @@ -2975,7 +2983,7 @@ struct Model::Impl { cudaDeviceProp ip{}; if (cudaGetDeviceProperties(&ip, d.id) == cudaSuccess && ip.integrated != 0) unified = true; } - const size_t mb = (size_t) strata::ds4::staging_ring_mb(exp_b > 0 ? share : 0.0, room, (int) devs.size(), unified); + const size_t mb = (size_t) strata::ds4::staging_ring_mb(exp_b > 0 ? share : 0.0, room, (int) devs.size(), unified, kHipBuild); if (o.verbose) std::fprintf(stderr, "ds4: staging ring: experts %.1f GB, VRAM room %.1f GB, dense %.1f GB -> %d MB\n", exp_b / 1e9, room / 1e9, other_b / 1e9, (int) mb); @@ -3035,11 +3043,11 @@ struct Model::Impl { const int base = c.A; // one rule (ds4_experts_rule.hpp: attn_slab_rows): the chunk's whole slab (<= 1024 rows) where the cards hold half the // experts or more (4 x R9700, +9% prompt), up to 2048 rows where the VRAM is spare, the base otherwise - c.A = strata::ds4::attn_slab_rows(env, chunk, base, spare, bpr, share); + c.A = strata::ds4::attn_slab_rows(env, chunk, base, spare, bpr, kHipBuild ? share : 0.0); if (env < 0 && c.A > base) { slab_auto_grew_ = true; if (di == 0 && o.verbose) { - if (share >= 0.5) + if (kHipBuild && share >= 0.5) std::fprintf(stderr, "ds4: attention slab %d rows (automatic: the cards hold %.0f%% of the experts; DS4_ATTN_SLAB=0 keeps %d)\n", c.A, share * 100.0, base); else @@ -4591,10 +4599,10 @@ struct Model::Impl { // DS4_COPY_PIN_RO=1: cudaHostRegisterReadOnly (the GPU only reads it). // 0.2.7: DS4_COPY_PIN unset = ON when EITHER condition measured reliable holds: (a) the whole arena is on explicit 2 MB pages (a pin of a // THP arena registers 4 KB pages and the DMA rate was erratic on the 12 GB cell: 11.9 s one prompt, 30.4 s the next), or (b) the - // cards hold at least half the routed experts (4 x R9700: the pin was reliable in 4/4 runs there, see above). =0 is the off + // cards hold at least half the routed experts in a HIP build (4 x R9700: the pin was reliable in 4/4 runs there, see above). =0 is the off // switch, =1 pins any arena. const char* cp = std::getenv("DS4_COPY_PIN"); - const bool pin_copies = cp != nullptr ? std::atoi(cp) != 0 : ((arena_all_huge || gpu_expert_share() >= 0.5) && !ram_chunks.empty()); + const bool pin_copies = cp != nullptr ? std::atoi(cp) != 0 : ((arena_all_huge || (kHipBuild && gpu_expert_share() >= 0.5)) && !ram_chunks.empty()); if (pin_copies) { const bool ro = std::getenv("DS4_COPY_PIN_RO") != nullptr && std::atoi(std::getenv("DS4_COPY_PIN_RO")) != 0; const double tr = now_ms(); diff --git a/tests/dsv41/experts_rule_test.cpp b/tests/dsv41/experts_rule_test.cpp index fa1691bb..fdaf50fe 100644 --- a/tests/dsv41/experts_rule_test.cpp +++ b/tests/dsv41/experts_rule_test.cpp @@ -104,36 +104,42 @@ int main() { CHECK_EQ(attn_slab_rows(512, 1024, 256, 1e18, bpr, 0.77), 512); // DS4_ATTN_SLAB=N: that many rows whatever the share CHECK_EQ(attn_slab_rows(-1, 1024, 1024, -5.0e9, bpr, 0.77), 1024); // a unified-memory base (32 MB of q = 1024 rows) is kept } - // the staging ring (MB): staging_ring_mb(share, room_bytes, n_dev, integrated) + // the staging ring (MB): staging_ring_mb(share, room_bytes, n_dev, integrated, hip) { const double GB = 1e9; // the cards hold the experts: 16 MB, discrete (4 x R9700 at 0.86 and a card that holds everything) - CHECK_EQ(staging_ring_mb(0.86, 4 * 30 * GB, 4, false), 16); - CHECK_EQ(staging_ring_mb(1.00, 70 * GB, 1, false), 16); - CHECK_EQ(staging_ring_mb(0.82, 4 * 30 * GB, 4, false), 16); + CHECK_EQ(staging_ring_mb(0.86, 4 * 30 * GB, 4, false, true), 16); + CHECK_EQ(staging_ring_mb(1.00, 70 * GB, 1, false, true), 16); + CHECK_EQ(staging_ring_mb(0.82, 4 * 30 * GB, 4, false, true), 16); // they hold most of them (4 x R9700, share 0.72-0.77, 31 GB of room a device): 8 MB a GB of one device's room = 248 MB - CHECK_EQ(staging_ring_mb(0.77, 4 * 31 * GB, 4, false), 248); - CHECK_EQ(staging_ring_mb(0.72, 4 * 31 * GB, 4, false), 248); - CHECK_EQ(staging_ring_mb(0.81, 4 * 31 * GB, 4, false), 248); - CHECK_EQ(staging_ring_mb(0.77, 4 * 10 * GB, 4, false), 128); // small devices: at least 128 - CHECK_EQ(staging_ring_mb(0.60, 3 * 90 * GB, 3, false), 512); // big devices: at most 512 - CHECK_EQ(staging_ring_mb(0.50, 2 * 31 * GB, 2, false), 248); // the per-device room, not the summed one (1 card: 31 GB -> 248 too) - CHECK_EQ(staging_ring_mb(0.60, 31 * GB, 1, false), 248); + CHECK_EQ(staging_ring_mb(0.77, 4 * 31 * GB, 4, false, true), 248); + CHECK_EQ(staging_ring_mb(0.72, 4 * 31 * GB, 4, false, true), 248); + CHECK_EQ(staging_ring_mb(0.81, 4 * 31 * GB, 4, false, true), 248); + CHECK_EQ(staging_ring_mb(0.77, 4 * 10 * GB, 4, false, true), 128); // small devices: at least 128 + CHECK_EQ(staging_ring_mb(0.60, 3 * 90 * GB, 3, false, true), 512); // big devices: at most 512 + CHECK_EQ(staging_ring_mb(0.50, 2 * 31 * GB, 2, false, true), 248); // the per-device room, not the summed one (1 card: 31 GB -> 248 too) + CHECK_EQ(staging_ring_mb(0.60, 31 * GB, 1, false, true), 248); // they hold under half (discrete): 64 MB a GB of the summed room, 400..1200 (streamed; not measured on a discrete card) - CHECK_EQ(staging_ring_mb(0.19, 31 * GB, 1, false), 1200); - CHECK_EQ(staging_ring_mb(0.06, 10 * GB, 1, false), 640); // a 12 GB card - CHECK_EQ(staging_ring_mb(0.06, 4 * GB, 1, false), 400); // a small pool still gets 400 - CHECK_EQ(staging_ring_mb(0.40, 2 * 31 * GB, 2, false), 1200); // capped - CHECK_EQ(staging_ring_mb(0.49, 4 * 31 * GB, 4, false), 1200); + CHECK_EQ(staging_ring_mb(0.19, 31 * GB, 1, false, true), 1200); + CHECK_EQ(staging_ring_mb(0.06, 10 * GB, 1, false, true), 640); // a 12 GB card + CHECK_EQ(staging_ring_mb(0.06, 4 * GB, 1, false, true), 400); // a small pool still gets 400 + CHECK_EQ(staging_ring_mb(0.40, 2 * 31 * GB, 2, false, true), 1200); // capped + CHECK_EQ(staging_ring_mb(0.49, 4 * 31 * GB, 4, false, true), 1200); // a unified-memory GPU (Strix Halo): never the small ring; the streamed 400..1200 MB under 1/1.3, 16 above - CHECK_EQ(staging_ring_mb(0.60, 40 * GB, 1, true), 1200); // share 0.6 would be the small ring on a discrete card - CHECK_EQ(staging_ring_mb(0.30, 18.75 * GB, 1, true), 1200); - CHECK_EQ(staging_ring_mb(0.30, 12 * GB, 1, true), 768); - CHECK_EQ(staging_ring_mb(0.30, 5 * GB, 1, true), 400); - CHECK_EQ(staging_ring_mb(0.77, 40 * GB, 1, true), 16); // main's "fit" threshold, 1/1.3 = 0.769 - CHECK_EQ(staging_ring_mb(0.76, 40 * GB, 1, true), 1200); + CHECK_EQ(staging_ring_mb(0.60, 40 * GB, 1, true, true), 1200); // share 0.6 would be the small ring on a discrete card + CHECK_EQ(staging_ring_mb(0.30, 18.75 * GB, 1, true, true), 1200); + CHECK_EQ(staging_ring_mb(0.30, 12 * GB, 1, true, true), 768); + CHECK_EQ(staging_ring_mb(0.30, 5 * GB, 1, true, true), 400); + CHECK_EQ(staging_ring_mb(0.77, 40 * GB, 1, true, true), 16); // main's "fit" threshold, 1/1.3 = 0.769 + CHECK_EQ(staging_ring_mb(0.76, 40 * GB, 1, true, true), 1200); // nothing known: no devices - CHECK_EQ(staging_ring_mb(0.0, 0.0, 0, false), 400); + CHECK_EQ(staging_ring_mb(0.0, 0.0, 0, false, true), 400); + // a build that is not HIP keeps main's rule everywhere: 16 MB from 1/1.3, the streamed ring below it (no small band, no 0.82) + CHECK_EQ(staging_ring_mb(0.77, 4 * 31 * GB, 4, false, false), 16); + CHECK_EQ(staging_ring_mb(0.60, 4 * 31 * GB, 4, false, false), 1200); + CHECK_EQ(staging_ring_mb(0.80, 4 * 31 * GB, 4, false, false), 16); + CHECK_EQ(staging_ring_mb(0.06, 10 * GB, 1, false, false), 640); + CHECK_EQ(staging_ring_mb(0.30, 12 * GB, 1, true, false), 768); } // prompt chunk: prefill_chunk_default(own_default, gpu_share, gguf_copy, file_experts, hip, min_vram, big=8192, multi_tp=false). What `strata launch` runs on one card // passes neither --tp nor --threads, but the engine's default tp is 2, so own_default is false there; a launch with several cards passes --tp 1. From 164619c5a84f6fb2a8a11012e764f7a907f213e2 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 18:36:12 +0100 Subject: [PATCH 37/52] DeepSeek: the 4 x R9700 share-based defaults and the drafter cut apply when every device is RDNA4 (gfx1200/gfx1201), not to every HIP build (Impl::rdna4) --- src/dsv41/ds4_experts_rule.hpp | 4 +-- src/dsv41/ds4_model.cu | 51 ++++++++++++++++--------------- tests/dsv41/experts_rule_test.cpp | 4 +-- 3 files changed, 31 insertions(+), 28 deletions(-) diff --git a/src/dsv41/ds4_experts_rule.hpp b/src/dsv41/ds4_experts_rule.hpp index 746822ea..140b3df4 100644 --- a/src/dsv41/ds4_experts_rule.hpp +++ b/src/dsv41/ds4_experts_rule.hpp @@ -47,7 +47,7 @@ inline int prefill_chunk_default(bool own_default, double gpu_share, bool gguf_c // `strata launch` writes for 4 or more AMD cards), share 0.86: 1024 370 against 214 tok/s at 8192; and with the engine's own default tp // (2, pairs of cards, nothing written), where the rule used to fall through to 2048/8192: 2.25 bpw, --dspark auto, ids 5705e1164a, 8K // warm prompts 1024 -> 1247 ppts against 690 at 8192, decode unchanged. So a multi-card tp run takes it too. One card with the default - // tp, `--threads on` (it stalled at the first 8K prompt in the 4-card runs) and a build that is not HIP keep their old defaults: not measured with 1024. + // tp, `--threads on` (it stalled at the first 8K prompt in the 4-card runs) and a system that is not RDNA4 keep their old defaults: not measured with 1024. // An explicit --prefill-chunk N wins over all of this (the call site takes the rule only when none was given). if ((own_default || multi_tp) && gpu_share >= 0.5) return 1024; if (gguf_copy && !hip && min_vram_bytes >= kChunk4096MinVram) return 4096; @@ -108,7 +108,7 @@ inline int attn_slab_rows(int env, int chunk, int base, double spare_bytes, doub // summed room, 64 MB a GB, 400..1200 MB. Measured on Strix Halo only (400 -> 1200: the queue 3,200 -> 8,087 experts, 4K prompt 27.3 // -> 21.3 s, decode unchanged); a discrete card in this band is not measured and takes the same, VRAM-bounded, rule. // A unified-memory GPU never takes the small ring (its datapoint is the 1200 MB one): it keeps the 16 MB "fit" rule at 1/1.3. -// `hip`: the 0.5..0.82 band and the 0.82 threshold are the 4 x R9700 measurements, so only a HIP build takes them; any other build keeps main's +// `hip`: the 0.5..0.82 band and the 0.82 threshold are the 4 x R9700 measurements, so only an RDNA4 system (every device a gfx1200 or gfx1201; the parameter is named hip) takes them; any other build keeps main's // rule there (16 MB from 1/1.3, the streamed ring below it) until a CUDA multi-card rig is measured. inline int staging_ring_mb(double share, double room_bytes, int n_dev, bool integrated, bool hip) { const double GB = 1e9; diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index d35398e2..e36ed767 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -78,8 +78,7 @@ namespace gg = strata::ds4::gguf; namespace { -// The DeepSeek engine's share-based defaults (small chunk, whole-chunk slab, small ring, pinned copy) are the 4 x R9700 measurements: only a HIP -// build takes them. +// A HIP build (the share-based defaults below are gated on the devices being RDNA4, Impl::rdna4()). #if defined(__HIP_PLATFORM_AMD__) || defined(__HIPCC__) constexpr bool kHipBuild = true; #else @@ -819,7 +818,25 @@ struct Model::Impl { std::vector groups; std::vector> workers; // threads mode: one per device bool par = false; // threads mode (the windows: decode) - mutable int all_gfx12 = -1; // gpus_are_gfx12(): -1 not asked yet + mutable int all_gfx12 = -1; // rdna4(): -1 not asked yet + // Every GPU the engine uses is a gfx1200 / gfx1201 (RDNA4: R9700, RX 9000) in a HIP build. The DeepSeek engine's share-based defaults (the small + // chunk for multi-card tp runs, the whole-chunk slab, the small staging ring, the pinned copy at share >= 0.5) and the drafter's cumulative cut are + // the 4 x R9700 measurements, so only RDNA4 takes them until another AMD part is tested (Strix Halo next). + bool rdna4() const { + if (all_gfx12 < 0) { + bool yes = false; +#if defined(STRATA_USE_HIP) + yes = !devs.empty(); + for (const auto& d : devs) { + cudaDeviceProp prop{}; + yes = yes && cudaGetDeviceProperties(&prop, d.id) == cudaSuccess && + (std::strncmp(prop.gcnArchName, "gfx1200", 7) == 0 || std::strncmp(prop.gcnArchName, "gfx1201", 7) == 0); + } +#endif + all_gfx12 = yes ? 1 : 0; + } + return all_gfx12 == 1; + } bool prompt_par = false; // the prompt path's chunks (a thread a GPU), as --tp / --threads asked unsigned win_seq = 0; // the windows the threads ran (the hand-offs' seq) // the chunked prompt path (threads mode): chunk tokens a pass, runs shorter than chunk_min in windows @@ -2040,7 +2057,7 @@ struct Model::Impl { // most (4 x R9700: 8192 214, 1024 370) the small one wins; with the experts copied into RAM (--mmap-experts off) 4096 beats 8192 by 7-9% // (H100 32 GiB: 2048 502, 4096 538, 8192 495). A GGUF pack always has file_experts set (copied only by --mmap-experts off). const bool own_default = !(par || o.tp > 1); // (a run with tp 1 and no --threads: `strata launch` writes --tp 1 for 4+ AMD cards, --tp 2 for 2-3 and nothing for one card = the engine's tp 2) - const bool multi_tp = kHipBuild && !own_default && !o.threads && devs.size() >= 2; // (the 4-card default-tp run the 1024 chunk was also measured on; an explicit --prefill-chunk below wins over the rule) + const bool multi_tp = rdna4() && !own_default && !o.threads && devs.size() >= 2; // (the 4-card default-tp run the 1024 chunk was also measured on; an explicit --prefill-chunk below wins over the rule) const bool gguf_copy = pk.gguf && (o.mmap_experts == 0 || (store_gb() <= 0.0 && auto_copy_all)); uint64_t vmin_bytes = ~0ull; for (const Dev& dv : devs) vmin_bytes = std::min(vmin_bytes, (uint64_t) dv.total); @@ -2983,7 +3000,7 @@ struct Model::Impl { cudaDeviceProp ip{}; if (cudaGetDeviceProperties(&ip, d.id) == cudaSuccess && ip.integrated != 0) unified = true; } - const size_t mb = (size_t) strata::ds4::staging_ring_mb(exp_b > 0 ? share : 0.0, room, (int) devs.size(), unified, kHipBuild); + const size_t mb = (size_t) strata::ds4::staging_ring_mb(exp_b > 0 ? share : 0.0, room, (int) devs.size(), unified, rdna4()); if (o.verbose) std::fprintf(stderr, "ds4: staging ring: experts %.1f GB, VRAM room %.1f GB, dense %.1f GB -> %d MB\n", exp_b / 1e9, room / 1e9, other_b / 1e9, (int) mb); @@ -3043,11 +3060,11 @@ struct Model::Impl { const int base = c.A; // one rule (ds4_experts_rule.hpp: attn_slab_rows): the chunk's whole slab (<= 1024 rows) where the cards hold half the // experts or more (4 x R9700, +9% prompt), up to 2048 rows where the VRAM is spare, the base otherwise - c.A = strata::ds4::attn_slab_rows(env, chunk, base, spare, bpr, kHipBuild ? share : 0.0); + c.A = strata::ds4::attn_slab_rows(env, chunk, base, spare, bpr, rdna4() ? share : 0.0); if (env < 0 && c.A > base) { slab_auto_grew_ = true; if (di == 0 && o.verbose) { - if (kHipBuild && share >= 0.5) + if (rdna4() && share >= 0.5) std::fprintf(stderr, "ds4: attention slab %d rows (automatic: the cards hold %.0f%% of the experts; DS4_ATTN_SLAB=0 keeps %d)\n", c.A, share * 100.0, base); else @@ -4599,10 +4616,10 @@ struct Model::Impl { // DS4_COPY_PIN_RO=1: cudaHostRegisterReadOnly (the GPU only reads it). // 0.2.7: DS4_COPY_PIN unset = ON when EITHER condition measured reliable holds: (a) the whole arena is on explicit 2 MB pages (a pin of a // THP arena registers 4 KB pages and the DMA rate was erratic on the 12 GB cell: 11.9 s one prompt, 30.4 s the next), or (b) the - // cards hold at least half the routed experts in a HIP build (4 x R9700: the pin was reliable in 4/4 runs there, see above). =0 is the off + // cards hold at least half the routed experts on RDNA4 (4 x R9700: the pin was reliable in 4/4 runs there, see above). =0 is the off // switch, =1 pins any arena. const char* cp = std::getenv("DS4_COPY_PIN"); - const bool pin_copies = cp != nullptr ? std::atoi(cp) != 0 : ((arena_all_huge || (kHipBuild && gpu_expert_share() >= 0.5)) && !ram_chunks.empty()); + const bool pin_copies = cp != nullptr ? std::atoi(cp) != 0 : ((arena_all_huge || (rdna4() && gpu_expert_share() >= 0.5)) && !ram_chunks.empty()); if (pin_copies) { const bool ro = std::getenv("DS4_COPY_PIN_RO") != nullptr && std::atoi(std::getenv("DS4_COPY_PIN_RO")) != 0; const double tr = now_ms(); @@ -9672,21 +9689,7 @@ void Model::set_images(std::vector images) { p_->imgs = std::move(images); } int Model::draft_block() const { return p_->g.n_mtp > 0 ? p_->g.d_block : 0; } -bool Model::gpus_are_gfx12() const { - if (p_->all_gfx12 < 0) { - bool yes = false; -#if defined(STRATA_USE_HIP) - yes = !p_->devs.empty(); - for (const auto& d : p_->devs) { - cudaDeviceProp prop{}; - yes = yes && cudaGetDeviceProperties(&prop, d.id) == cudaSuccess && - (std::strncmp(prop.gcnArchName, "gfx1200", 7) == 0 || std::strncmp(prop.gcnArchName, "gfx1201", 7) == 0); - } -#endif - p_->all_gfx12 = yes ? 1 : 0; - } - return p_->all_gfx12 == 1; -} +bool Model::gpus_are_gfx12() const { return p_->rdna4(); } bool Model::draft(int y, std::vector& d, std::vector& c, std::string& err, float t, float tp, int tk, float mp, uint64_t seed, uint64_t counter) { return p_->draft(y, d, c, err, t, tp, tk, mp, seed, counter); diff --git a/tests/dsv41/experts_rule_test.cpp b/tests/dsv41/experts_rule_test.cpp index fdaf50fe..1f9bfee7 100644 --- a/tests/dsv41/experts_rule_test.cpp +++ b/tests/dsv41/experts_rule_test.cpp @@ -134,7 +134,7 @@ int main() { CHECK_EQ(staging_ring_mb(0.76, 40 * GB, 1, true, true), 1200); // nothing known: no devices CHECK_EQ(staging_ring_mb(0.0, 0.0, 0, false, true), 400); - // a build that is not HIP keeps main's rule everywhere: 16 MB from 1/1.3, the streamed ring below it (no small band, no 0.82) + // a system that is not RDNA4 keeps main's rule everywhere: 16 MB from 1/1.3, the streamed ring below it (no small band, no 0.82) CHECK_EQ(staging_ring_mb(0.77, 4 * 31 * GB, 4, false, false), 16); CHECK_EQ(staging_ring_mb(0.60, 4 * 31 * GB, 4, false, false), 1200); CHECK_EQ(staging_ring_mb(0.80, 4 * 31 * GB, 4, false, false), 16); @@ -174,7 +174,7 @@ int main() { CHECK_EQ(prefill_chunk_default(true, 0.86, false, true, true, 32 * GiB), 1024); CHECK_EQ(prefill_chunk_default(true, 0.50, false, true, true, 32 * GiB), 1024); CHECK_EQ(prefill_chunk_default(true, 0.49, false, true, true, 32 * GiB), 8192); - // a multi-card tp run (own_default false, multi_tp: 2+ cards, no --threads on; the engine's default tp 2, or --tp 2 from the launcher) takes + // a multi-card tp run (own_default false, multi_tp: RDNA4, 2+ cards, no --threads on; the engine's default tp 2, or --tp 2 from the launcher) takes // the small chunk too: the 4 x R9700 default-tp datapoint (8K warm 1247 ppts at 1024 against 690) CHECK_EQ(prefill_chunk_default(false, 0.86, false, true, true, 32 * GiB, 8192, true), 1024); CHECK_EQ(prefill_chunk_default(false, 0.50, false, true, true, 32 * GiB, 8192, true), 1024); From 54d9363c972cd3e4178ccc6408a13b5b42f8246f Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 18:41:09 +0100 Subject: [PATCH 38/52] CUDA Plan opt-ins become defaults where measured: STRATA_GR_V3 on a discrete 12.0 card above 13 GiB, STRATA_PROMPT_ATTN_IMMA on CUDA sm_80+ (env =0 turns each off); DeepSeek Faster mode (5 experts) by default on 2+ RDNA4 cards that hold half the experts; the route-prior/GR_V3/IMMA rules are pure functions with tests; gr_parity and fused_gr_bench pin STRATA_GR_V3=0 for their bitwise contract --- include/strata/core/sm120_series.hpp | 23 +++++++++++++++ src/core/arch_defaults_test.cpp | 42 ++++++++++++++++++++++++++++ src/core/verify.cpp | 2 +- src/dsv41/ds4_experts_rule.hpp | 7 +++-- src/dsv41/ds4_model.cu | 6 ++-- src/kernels/cuda/fused_gr.cu | 34 ++++++++++++++++++++-- src/kernels/cuda/qsa_prompt_attn.cu | 11 ++++++-- src/kernels/fused_gr_bench.cpp | 6 ++++ src/kernels/gr_parity.cpp | 6 ++++ tests/dsv41/experts_rule_test.cpp | 9 ++++++ 10 files changed, 135 insertions(+), 11 deletions(-) diff --git a/include/strata/core/sm120_series.hpp b/include/strata/core/sm120_series.hpp index 9059d312..b1cc1192 100644 --- a/include/strata/core/sm120_series.hpp +++ b/include/strata/core/sm120_series.hpp @@ -42,4 +42,27 @@ inline bool is_sm120(int major, int minor) { return cc_major_of(major) == 12 && /// the default of a bitwise switch of the set: on for a 12.0 card unless STRATA_SM120_PERF=0 inline bool sm120_default(int major, int minor) { return is_sm120(major, minor) && sm120_series(); } +// ---- 0.2.7 defaults of the CUDA speed work (pure rules; the engine reads the device and calls these; tests in arch_defaults_test) +// `hip`: a HIP build, where a gfx1200 / gfx1201 reports compute capability 12.0 as well and none of these is measured or wanted. +// `total_bytes`: the card's memory (cudaDeviceProp::totalGlobalMem); `integrated`: a GPU that shares the PC's memory. +constexpr double kSmallCardGiB = 13.0; // "a 12 GB card": 12 GB cards report 11.6 - 12.0 GiB, 16 GB ones 15.6 - 16.0 + +/// STRATA_ROUTE_PRIOR when the user set nothing: 2.0 (residency-biased routing, changes which experts run; owner-approved for 12 GB cards) on a +/// discrete CUDA card of 13 GiB or less, 0 everywhere else. Measured on an RTX 3060 12 GB only. +inline float route_prior_default(bool hip, bool integrated, double total_bytes) { + return !hip && !integrated && total_bytes > 0.0 && total_bytes / 1073741824.0 <= kSmallCardGiB ? 2.0f : 0.0f; +} + +/// STRATA_GR_V3 (the stream-split hyper-connection read, another summation order) when the user set nothing: ON for a discrete compute capability +/// 12.0 card (STRATA_SM120_PERF=0 turns the set off) with more than 13 GiB, CUDA builds only. Measured: RTX PRO 5000 72 GB +1.2% decode clean, +/// -3.0% / -5.9% on 2x RTX A4000 (sm_86), +1.0% / -3.4% on an RTX 3060 (sm_86): so not those; a 12 GB sm_120 card is unmeasured. +inline bool gr_v3_default(bool hip, int major, int minor, bool integrated, double total_bytes) { + return !hip && !integrated && sm120_default(major, minor) && total_bytes / 1073741824.0 > kSmallCardGiB; +} + +/// STRATA_PROMPT_ATTN_IMMA (the prompt attention on int8 tensor cores, another summation order) when the user set nothing: ON for every CUDA card of +/// compute capability 8.0 or newer (the int8 m16n8k32 MMA), not Turing / Volta / Pascal, not HIP. `cc` = 10 * major + minor as the engine +/// resolves it (an emulated or forced Turing counts as 75). Measured on sm_120 (RTX PRO 5000) and sm_86 (2x RTX A4000): +1.1 .. +1.8% prompt. +inline bool prompt_attn_imma_default(bool hip, int cc) { return !hip && cc >= 80; } + } // namespace strata diff --git a/src/core/arch_defaults_test.cpp b/src/core/arch_defaults_test.cpp index 459fdaa4..9723b2b7 100644 --- a/src/core/arch_defaults_test.cpp +++ b/src/core/arch_defaults_test.cpp @@ -1,6 +1,7 @@ // src/core/arch_defaults_test.cpp - the per-architecture default table (no GPU needed). #include "strata/core/arch_defaults.hpp" #include "strata/core/gfx12_platform_defaults.hpp" +#include "strata/core/sm120_series.hpp" #include #include @@ -226,5 +227,46 @@ int main() { unset("STRATA_UMA_REGISTER"); // both platforms: no Windows guard on the iGPU set (the owner wants it there too; untested on Windows is only said in the log) std::printf(fails ? "arch_defaults_test: %d FAILED\n" : "arch_defaults_test: OK\n", fails); + // ---- 0.2.7 CUDA defaults (sm120_series.hpp): which cards get which, and which never do + { + const double GiB = 1073741824.0; + using namespace strata; + // residency-biased routing: 2.0 on a discrete CUDA card of 13 GiB or less, nothing else + CHECK(route_prior_default(false, false, 11.9 * GiB) == 2.0f); // RTX 3060 / 5070 12 GB + CHECK(route_prior_default(false, false, 12.0 * GiB) == 2.0f); + CHECK(route_prior_default(false, false, 8.0 * GiB) == 2.0f); // an 8 GB card + CHECK(route_prior_default(false, false, 13.0 * GiB) == 2.0f); // the boundary is inclusive + CHECK(route_prior_default(false, false, 13.5 * GiB) == 0.0f); + CHECK(route_prior_default(false, false, 15.7 * GiB) == 0.0f); // 16 GB card: z440's A4000, P100 + CHECK(route_prior_default(false, false, 72.0 * GiB) == 0.0f); // RTX PRO 5000 + CHECK(route_prior_default(true, false, 12.0 * GiB) == 0.0f); // a HIP build: a 12 GB RX 6700 XT / 7700 XT + CHECK(route_prior_default(true, true, 12.0 * GiB) == 0.0f); // Strix Halo with a small carve-out + CHECK(route_prior_default(false, true, 8.0 * GiB) == 0.0f); // an integrated GPU on CUDA (Jetson-like) + CHECK(route_prior_default(false, false, 0.0) == 0.0f); // unknown memory + // the stream-split hyper-connection read: a discrete 12.0 card above 13 GiB (RTX PRO 5000 72 GB, RTX 5090 32 GB), nothing else + CHECK(gr_v3_default(false, 12, 0, false, 72.0 * GiB)); + CHECK(gr_v3_default(false, 12, 0, false, 31.4 * GiB)); // RTX 5090 + CHECK(!gr_v3_default(false, 12, 0, false, 11.9 * GiB)); // RTX 5070 12 GB: streams most experts, unmeasured + CHECK(gr_v3_default(false, 12, 0, false, 15.6 * GiB)); // a 16 GB sm_120 card (RTX 5060 Ti / 5070 Ti): above 13 GiB, on (unmeasured size, same arch) + CHECK(!gr_v3_default(false, 8, 6, false, 15.7 * GiB)); // 2x RTX A4000 (sm_86): measured -3.0% / -5.9% + CHECK(!gr_v3_default(false, 8, 6, false, 72.0 * GiB)); // any sm_86 + CHECK(!gr_v3_default(false, 8, 9, false, 24.0 * GiB)); // sm_89 + CHECK(!gr_v3_default(false, 12, 1, false, 128.0 * GiB)); // sm_121 (DGX Spark class): not 12.0 + CHECK(!gr_v3_default(false, 12, 0, true, 128.0 * GiB)); // integrated + CHECK(!gr_v3_default(true, 12, 0, false, 32.0 * GiB)); // a HIP build: gfx1201 reports 12.0 too + CHECK(!gr_v3_default(false, 6, 0, false, 16.0 * GiB)); // P100 + } + { + using namespace strata; + // the prompt attention on int8 tensor cores: every CUDA card from sm_80 on, not Turing / Volta / Pascal, not HIP + CHECK(prompt_attn_imma_default(false, 120)); // RTX PRO 5000 / RTX 50: measured +1.6-1.8% + CHECK(prompt_attn_imma_default(false, 86)); // 2x RTX A4000 / RTX 3060: measured +1.1-1.3% + CHECK(prompt_attn_imma_default(false, 80)); + CHECK(prompt_attn_imma_default(false, 89)); + CHECK(!prompt_attn_imma_default(false, 75)); // Turing (also a forced STRATA_QSA_WARP=1 card) + CHECK(!prompt_attn_imma_default(false, 70)); // Volta + CHECK(!prompt_attn_imma_default(false, 60)); // Pascal (P100) + CHECK(!prompt_attn_imma_default(true, 120)); // HIP + } return fails ? 1 : 0; } diff --git a/src/core/verify.cpp b/src/core/verify.cpp index b9d4eede..f99dc9e8 100644 --- a/src/core/verify.cpp +++ b/src/core/verify.cpp @@ -225,7 +225,7 @@ inline float g_route_prior() { cudaDeviceProp p; const bool ok = cudaGetDeviceProperties(&p, dev) == cudaSuccess; if (!ok) cudaGetLastError(); - per_dev[dev] = 1.0f + (ok && !p.integrated && (double) p.totalGlobalMem / 1073741824.0 <= 13.0 ? 2.0f : 0.0f); + per_dev[dev] = 1.0f + (ok ? strata::route_prior_default(false, p.integrated != 0, (double) p.totalGlobalMem) : 0.0f); } return per_dev[dev] - 1.0f; #endif diff --git a/src/dsv41/ds4_experts_rule.hpp b/src/dsv41/ds4_experts_rule.hpp index 140b3df4..ae872def 100644 --- a/src/dsv41/ds4_experts_rule.hpp +++ b/src/dsv41/ds4_experts_rule.hpp @@ -18,10 +18,13 @@ constexpr int kFasterModeExperts = 5; // requested: --experts (-1: not given, the rule decides); vram_bytes: the total memory of the cards the engine uses; // model_k: the experts a word takes in the model; integrated: a GPU that shares the PC's RAM (Strix Halo: part of the experts live only on // the SSD, each expert dropped is less read - measured 5 against 6 on a Radeon 8065S: decode +11..13%, prompts +5..7%). The result is in 1 .. model_k. -inline int experts_per_word(int requested, uint64_t vram_bytes, int model_k, bool integrated = false) { +// multi_rdna4: two or more RDNA4 cards (gfx1200 / gfx1201: R9700, RX 9000) that together hold at least half of the routed experts - the 4 x R9700 box +// the Marlin stream measured: 5 against 6 experts, 2.25 bpw, 8K prompt 1339 -> 1419 ppts (+6%) and decode 78.1 -> 81.2 tok/s (+4%), reference KL +// 0.10987 against 0.10833 and top-1 87.59% against 87.53% (the gate is 0.006). Faster mode there too, by default. +inline int experts_per_word(int requested, uint64_t vram_bytes, int model_k, bool integrated = false, bool multi_rdna4 = false) { if (model_k <= 1) return model_k; int n = requested; - if (n < 1) n = integrated || (vram_bytes != 0 && vram_bytes <= kFasterModeVramMax) ? kFasterModeExperts : model_k; + if (n < 1) n = integrated || multi_rdna4 || (vram_bytes != 0 && vram_bytes <= kFasterModeVramMax) ? kFasterModeExperts : model_k; if (n > model_k) n = model_k; return n < 1 ? 1 : n; } diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index e36ed767..9c359644 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -2132,11 +2132,13 @@ struct Model::Impl { cudaDeviceProp ip{}; if (cudaGetDeviceProperties(&ip, dv.id) == cudaSuccess && ip.integrated) integrated = true; } - const int n = experts_test_override(experts_per_word(o.experts, vram_all, l.k_exp, integrated), l.k_exp); + // two or more RDNA4 cards holding at least half of the experts (the 4 x R9700 class): Faster by default too + const bool multi_rdna4 = rdna4() && devs.size() >= 2 && gpu_expert_share() >= 0.5; + const int n = experts_test_override(experts_per_word(o.experts, vram_all, l.k_exp, integrated, multi_rdna4), l.k_exp); experts_used = n; if (n < l.k_exp) std::fprintf(stderr, "ds4: experts per word: %d (%s; full quality: --experts %d)\n", n, - o.experts >= 1 ? "as asked" : "faster mode", l.k_exp); + o.experts >= 1 ? "as asked" : multi_rdna4 ? "faster mode: the cards hold most of the experts" : "faster mode", l.k_exp); else if (o.experts >= 1) std::fprintf(stderr, "ds4: experts per word: %d (full quality)\n", n); } diff --git a/src/kernels/cuda/fused_gr.cu b/src/kernels/cuda/fused_gr.cu index 73a9089b..ad1fcbd3 100644 --- a/src/kernels/cuda/fused_gr.cu +++ b/src/kernels/cuda/fused_gr.cu @@ -2302,6 +2302,32 @@ int g_gr_fast = -1; #endif void fused_gr_set_fast(int on) { g_gr_fast = on; } +// STRATA_GR_V3: the stream-split hyper-connection read (gr_down_v3_kernel / gr_up_v3_kernel). Another summation order than the default +// read (~1e-7; a greedy tie can flip, so the answers are not byte-identical to 0.2.6's). 0.2.7: ON by default on a compute capability 12.0 +// card (RTX 50 / RTX PRO Blackwell: sm120_series.hpp, STRATA_SM120_PERF=0 turns the set off) with more than 13 GiB of memory, discrete; +// measured on the RTX PRO 5000 72 GB with every expert resident: code decode 245.1 -> 248.1 tok/s (+1.2%, identical tokens), a story prompt +// +6.4% (tokens changed, not a claim), held-out document prompt +4.3%, with STRATA_PROMPT_ATTN_IMMA=1 +1.5% decode / +1.6-1.8% prompt together, +// 5 pairs. NOT a default elsewhere: it measured -3.0% / -5.9% on 2x RTX A4000 (sm_86) and +1.0% / -3.4% on an RTX 3060 (sm_86), and a 12 GB +// sm_120 card (RTX 5070: streams most experts, the read is a small share of its window) is unmeasured. STRATA_GR_V3=0 / 1 forces it off / on +// on any card; never in a HIP build (gfx12 reports compute capability 12.0 too). Decided per card, first asked in fused_gr_check (before any +// graph capture). +static bool gr_v3_default_on(int dev) { +#if defined(__HIPCC__) + (void) dev; + return false; +#else + static int per_dev[64]; // 0 unknown, 1 no, 2 yes + if (dev < 0 || dev >= 64) return false; + if (!per_dev[dev]) { + cudaDeviceProp p; + const bool ok = cudaGetDeviceProperties(&p, dev) == cudaSuccess; + if (!ok) cudaGetLastError(); + per_dev[dev] = ok && strata::gr_v3_default(false, p.major, p.minor, p.integrated != 0, (double) p.totalGlobalMem) ? 2 : 1; + } + return per_dev[dev] == 2; +#endif +} + bool fused_gr_read_multi(const FusedGrArgs* a, int n_tok, float* xn_scratch, void* stream, unsigned long long* stamp_buf, int stamp_i0) { if (n_tok < 1 || n_tok > kFusedGrMaxT || xn_scratch == nullptr) { @@ -2337,12 +2363,13 @@ bool fused_gr_read_multi(const FusedGrArgs* a, int n_tok, float* xn_scratch, voi } return q8; } - // STRATA_GR_V3=1: the two-kernel read above (another summation order - opt-in) - static const bool v3 = [] { const char* v = std::getenv("STRATA_GR_V3"); return v != nullptr && std::atoi(v) != 0; }(); + // the two-kernel read above (another summation order): STRATA_GR_V3=0 / 1, unset = gr_v3_default_on (a 12.0 card with > 13 GiB) + static const int v3_env = [] { const char* v = std::getenv("STRATA_GR_V3"); return v != nullptr ? (std::atoi(v) != 0 ? 1 : 0) : -1; }(); static int split3[64] = {}; // per device: 0 = not decided yet, 1 / 2 = column halves S, -1 = does not fit int dev3 = 0; + cudaGetDevice(&dev3); + const bool v3 = v3_env >= 0 ? v3_env == 1 : gr_v3_default_on(dev3); if (v3) { - cudaGetDevice(&dev3); if (dev3 >= 0 && dev3 < 64 && split3[dev3] == 0) { int optin = 0; cudaDeviceGetAttribute(&optin, cudaDevAttrMaxSharedMemoryPerBlockOptin, dev3); @@ -2653,6 +2680,7 @@ int fused_gr_variant() { void fused_gr_check() { int dev = 0; cudaGetDevice(&dev); + (void) gr_v3_default_on(dev); // decided here, before any graph capture asks if (dev < 0 || dev >= 64 || g_variant[dev].load() > 0) return; const int want = env_variant(); if (want == kHcPlain) { diff --git a/src/kernels/cuda/qsa_prompt_attn.cu b/src/kernels/cuda/qsa_prompt_attn.cu index 3bdc4ffc..f2b2d0a0 100644 --- a/src/kernels/cuda/qsa_prompt_attn.cu +++ b/src/kernels/cuda/qsa_prompt_attn.cu @@ -1,5 +1,6 @@ // src/kernels/cuda/qsa_prompt_attn.cu - see include/strata/kernels/qsa_prompt_attn.hpp. #include "strata/core/emulate.hpp" +#include "strata/core/sm120_series.hpp" #include "strata/core/sm75_series.hpp" #include "strata/core/geometry.hpp" #include "strata/core/gfx12_platform_defaults.hpp" @@ -2418,12 +2419,16 @@ bool qsa_prompt_attn_batch(const float* q, const QsaAttnPools& pools, const int3 if (pf_env == 1 || (pf_env < 0 && t75 && strata::sm75_series())) return launch<1, true>(q, pools, ids, steps, cap, s, attn, n_q, st); return launch<1>(q, pools, ids, steps, cap, s, attn, n_q, st); } - // STRATA_PROMPT_ATTN_IMMA=1 (opt-in, sm_80+): both products on INT8 tensor cores (prompt_attn_i8v3_kernel) + // STRATA_PROMPT_ATTN_IMMA (sm_80+): both products on INT8 tensor cores (prompt_attn_i8v3_kernel). ON by default since 0.2.7 on every + // card that has them (Ampere and newer, CUDA builds; not Turing, Volta or Pascal, which have no int8 m16n8k32 MMA this kernel needs): + // +1.6% / +1.8% prompt at 8K / 16K on the RTX PRO 5000 (sm_120) and +1.1% / +1.3% at 8K / 16K on 2x RTX A4000 (sm_86), decode unchanged, + // 5 pairs each; another summation order (~1e-7), so a near-tie can flip a prompt's first token. Sm_80, 8.9, 9.0 and the datacentre + // Blackwells run the same kernel unmeasured. STRATA_PROMPT_ATTN_IMMA=0 is the off switch (the v2 i8 kernel of 0.2.6), =1 as the default. if (g_pa_imma < 0) { const char* v = std::getenv("STRATA_PROMPT_ATTN_IMMA"); - g_pa_imma = v != nullptr && v[0] == '1' ? 1 : 0; + g_pa_imma = v == nullptr ? 2 : (v[0] == '1' ? 1 : 0); // 2: the default (on where the kernel can run) } - if (g_pa_imma == 1 && !turing) return launch_i8v3(q, pools, ids, steps, cap, s, attn, n_q, st); + if (!turing && (g_pa_imma == 1 || (g_pa_imma == 2 && strata::prompt_attn_imma_default(false, 80)))) return launch_i8v3(q, pools, ids, steps, cap, s, attn, n_q, st); return launch_i8(q, pools, ids, steps, cap, s, attn, n_q, st); } if (!pools.k_pool || !pools.v_pool) return false; diff --git a/src/kernels/fused_gr_bench.cpp b/src/kernels/fused_gr_bench.cpp index 0ac95eaf..677696cf 100644 --- a/src/kernels/fused_gr_bench.cpp +++ b/src/kernels/fused_gr_bench.cpp @@ -55,6 +55,12 @@ static std::vector q8_0_of_bf16(const std::vector& w, size_t } int main(int argc, char** argv) { + // the bench's contract is the default kernels' bitwise hashes; the split read (a default on a 12.0 card since 0.2.7) is another summation order +#if defined(_WIN32) + if (std::getenv("STRATA_GR_V3") == nullptr) _putenv_s("STRATA_GR_V3", "0"); +#else + if (std::getenv("STRATA_GR_V3") == nullptr) setenv("STRATA_GR_V3", "0", 1); +#endif setvbuf(stdout, nullptr, _IONBF, 0); const int iters = argc > 1 ? std::atoi(argv[1]) : 500; const int t_lo = argc > 2 ? std::atoi(argv[2]) : 1, t_hi = argc > 3 ? std::atoi(argv[3]) : 6; diff --git a/src/kernels/gr_parity.cpp b/src/kernels/gr_parity.cpp index 34d7510b..22da807b 100644 --- a/src/kernels/gr_parity.cpp +++ b/src/kernels/gr_parity.cpp @@ -480,6 +480,12 @@ int fused_multi_lds_parity(const float* d_norm, const uint16_t* d_down, const ui } // namespace int main(int argc, char** argv) { + // this test compares the default kernels bit for bit; the split read (a default on a 12.0 card since 0.2.7) is STRATA_GR_V3=1 below +#if defined(_WIN32) + if (std::getenv("STRATA_GR_V3") == nullptr) _putenv_s("STRATA_GR_V3", "0"); +#else + if (std::getenv("STRATA_GR_V3") == nullptr) setenv("STRATA_GR_V3", "0", 1); +#endif bool selftest = false; for (int i = 1; i < argc; ++i) { if (std::string(argv[i]) == "--selftest") selftest = true; diff --git a/tests/dsv41/experts_rule_test.cpp b/tests/dsv41/experts_rule_test.cpp index 1f9bfee7..6fb5a1d8 100644 --- a/tests/dsv41/experts_rule_test.cpp +++ b/tests/dsv41/experts_rule_test.cpp @@ -38,6 +38,15 @@ int main() { CHECK_EQ(experts_per_word(-1, 24 * GiB, 6, false), 6); // a discrete 24 GB card CHECK_EQ(experts_per_word(-1, 12 * GiB, 6, false), 5); // a discrete 12 GB card CHECK_EQ(experts_per_word(6, 91 * GiB, 6, true), 6); // --experts 6 wins on the unified-memory GPU too + // two or more RDNA4 cards that hold at least half of the experts (4 x R9700, 128 GiB in all): faster mode by default (the 5th argument) + CHECK_EQ(experts_per_word(-1, 4 * 32 * GiB, 6, false, true), 5); + CHECK_EQ(experts_per_word(-1, 3 * 32 * GiB, 6, false, true), 5); + CHECK_EQ(experts_per_word(-1, 4 * 32 * GiB, 6, false, false), 6); // the same cards when they hold under half (or are not RDNA4): the model's 6 + CHECK_EQ(experts_per_word(6, 4 * 32 * GiB, 6, false, true), 6); // --experts 6 (the app's / Terminal's "Full quality") wins + CHECK_EQ(experts_per_word(4, 4 * 32 * GiB, 6, false, true), 4); // so does any other --experts N + CHECK_EQ(experts_per_word(5, 4 * 32 * GiB, 6, false, false), 5); + CHECK_EQ(experts_per_word(-1, 4 * 32 * GiB, 1, false, true), 1); // a model of one expert a word has nothing to drop + CHECK_EQ(experts_test_override(experts_per_word(-1, 4 * 32 * GiB, 6, false, true), 6), 5); CHECK_EQ(experts_per_word(-1, 91 * GiB, 4, true), 4); // never raised // unknown memory (0): the model's count, never a silent cut CHECK_EQ(experts_per_word(-1, 0, 6), 6); From 407f659763412d5b0e6e4f91db1f12db867f1731 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 18:45:02 +0100 Subject: [PATCH 39/52] docs: GR_V3 and PROMPT_ATTN_IMMA defaults in DETAILS.md and the 0.2.7 release-notes draft --- docs/DETAILS.md | 3 ++- docs/release-notes-0.2.7.md | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/DETAILS.md b/docs/DETAILS.md index afd8290a..e5c23659 100644 --- a/docs/DETAILS.md +++ b/docs/DETAILS.md @@ -919,7 +919,8 @@ measured. "Exact" means the 10-prompt and 4K/20K identity gate with the switch o | `STRATA_B6_MMVQ_ROWS=1` | Exact multi-column MMVQ reusing the activation fragment across rows | Exact; on by default on sm_86 and sm_60 | | `STRATA_QSA_SPLIT_ATTN=1` | Decode attention split across blocks on the int8 mma path (sm_80+, int8 KV) | Rounding level | | `STRATA_HC_UPMIX=1` | Hyper-connection up projection and `gr_mix_r` in one kernel (sm_80+) | Exact | -| `STRATA_PROMPT_ATTN_IMMA=1` | Int8-KV prompt attention on INT8 tensor cores | Rounding level | +| `STRATA_PROMPT_ATTN_IMMA` | Int8-KV prompt attention on INT8 tensor cores | Rounding level. On by default since 0.2.7 on NVIDIA Ampere and newer (+1.1% to +1.8% prompt at 8K/16K on an RTX PRO 5000 and 2x RTX A4000); `=0` brings the 0.2.6 kernel back. | +| `STRATA_GR_V3` | The hyper-connection read split over two kernels | Rounding level. On by default since 0.2.7 on a discrete compute capability 12.0 card (RTX 50, RTX PRO Blackwell) with more than 13 GiB (RTX PRO 5000: +1.2% decode with identical tokens); slower on sm_86, so off there. `=0` / `=1` forces it off / on. | | `STRATA_HC_REQ8=1` | Hyper-connection projections as int8 plus a scale per 32 (more expert-cache slots) | Rounding level | | `STRATA_QUANT_GATHER=1`, `STRATA_PREFILL_GROUP_GATHER=0` | Per-row gather for the MoE input quantization; the short-prompt grouped gather off | No gain measured; keep the defaults | diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index 8166d70d..de029522 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -16,6 +16,14 @@ - Off switch: `STRATA_GR_UP_WIDE=0`. `STRATA_SM120_PERF=0` still turns off the whole Blackwell set. - Other cards are untouched: the old kernel runs everywhere else. +- **Two more kernel switches are on by default where they were measured.** Both sum in another order (about 1e-7), so a + tie between two near-equal words can flip and a reply can differ from 0.2.6 here and there. + - The prompt attention on int8 tensor cores (NVIDIA Ampere and newer): **+1.6% / +1.8% prompt at 8K / 16K on the RTX PRO 5000 + and +1.1% / +1.3% on 2x RTX A4000**, decode unchanged, five pairs each. Off switch: `STRATA_PROMPT_ATTN_IMMA=0`. + - The hyper-connection read split over two kernels (a discrete RTX 50 / RTX PRO Blackwell card with more than 13 GiB): **+1.2% + decode on the RTX PRO 5000 with identical tokens**, about +1.5% together with the switch above. On 2x RTX A4000 and the + RTX 3060 it was slower, so those cards keep the old read. Off switch: `STRATA_GR_V3=0`. + ## What is faster if your PC is set up for it These need no engine change; they are settings. Each was measured on the same boxes. From a3ab37fc039ca7487913c3d8551aebb01070eb45 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 19:13:25 +0100 Subject: [PATCH 40/52] Master switches DS4_DEFAULTS=026 (DeepSeek) and STRATA_DEFAULTS=026 (Qwen): every default changed since v0.2.6 gives v0.2.6's behaviour; explicit per-feature variables and flags still win; every rule is a pure function with a v026 argument and a test --- include/strata/core/arch_defaults.hpp | 4 +- include/strata/core/defaults_026.hpp | 39 +++++++++++ include/strata/core/ple_residency.hpp | 8 +++ include/strata/core/sm120_series.hpp | 16 +++-- src/core/arch_defaults.cpp | 16 +++-- src/core/arch_defaults_test.cpp | 49 ++++++++++++++ src/core/ple_residency_test.cpp | 6 ++ src/core/verify.cpp | 3 +- src/dsv41/ds4_experts_rule.hpp | 95 +++++++++++++++++++++++++-- src/dsv41/ds4_iq.cu | 6 +- src/dsv41/ds4_kernels.cu | 6 +- src/dsv41/ds4_main.cpp | 5 +- src/dsv41/ds4_model.cu | 52 ++++++++------- src/kernels/cuda/fused_gr.cu | 5 +- src/kernels/cuda/qsa_prompt_attn.cu | 3 +- src/program/generate.cpp | 6 +- tests/dsv41/experts_rule_test.cpp | 92 ++++++++++++++++++++++++++ 17 files changed, 358 insertions(+), 53 deletions(-) create mode 100644 include/strata/core/defaults_026.hpp diff --git a/include/strata/core/arch_defaults.hpp b/include/strata/core/arch_defaults.hpp index 969e4cee..7062f4b2 100644 --- a/include/strata/core/arch_defaults.hpp +++ b/include/strata/core/arch_defaults.hpp @@ -18,7 +18,9 @@ namespace strata::core { /// The environment settings that are the defaults of `gcn_arch` (hipDeviceProp_t::gcnArchName; "gfx1151" or -/// "gfx1151:sramecc-:xnack-"): empty for every other architecture. +/// "gfx1151:sramecc-:xnack-"): empty for every other architecture. `defaults026` (STRATA_DEFAULTS=026, defaults_026.hpp): the gfx12 table of +/// v0.2.6 (the five prompt switches only, without the four 0.2.7 decode switches); the one-argument form asks the environment. +std::vector> arch_default_env(const char* gcn_arch, bool defaults026); std::vector> arch_default_env(const char* gcn_arch); /// The integrated Radeons (Phoenix / Hawk Point 780M gfx1103, Strix Point 890M / 880M gfx1150, Strix Halo gfx1151) whose diff --git a/include/strata/core/defaults_026.hpp b/include/strata/core/defaults_026.hpp new file mode 100644 index 00000000..84221a54 --- /dev/null +++ b/include/strata/core/defaults_026.hpp @@ -0,0 +1,39 @@ +// include/strata/core/defaults_026.hpp - STRATA_DEFAULTS=026: the master switch of the Qwen engine's 0.2.7 defaults. +// +// Every default the Qwen engine (`strata`) changed since v0.2.6 goes back to what v0.2.6 did when STRATA_DEFAULTS=026 is in the +// environment (the app's "off" for its speed switches sends it): the residency-biased routing (STRATA_ROUTE_PRIOR), the wide +// hyper-connection up read (STRATA_GR_UP_WIDE), the stream-split hyper-connection read (STRATA_GR_V3), the int8 prompt attention +// (STRATA_PROMPT_ATTN_IMMA), the four gfx12 decode switches of the arch table, the PLE residency policy (STRATA_PLE_AUTO_RAM), and the +// gfx12 decode miss split of 0.15 (back to 0.55). KVA is off by default in 0.2.7 and stays whatever STRATA_KVA says. +// An explicit per-feature variable (STRATA_ROUTE_PRIOR=2, STRATA_GR_V3=1, STRATA_PLE_AUTO_RAM=1, ...) or flag (--pcie-frac, --ple-io) +// still wins over the master switch. Each rule is a pure function that takes the answer of qwen_defaults_026() as its `v026` +// argument, so a test can check both settings without touching the environment (src/core/arch_defaults_test.cpp, +// src/core/ple_residency_test.cpp). +#pragma once + +#include +#include + +namespace strata { + +/// "026", "0.2.6" and "v0.2.6" name version 0.2.6; anything else (unset, "", "0", "027") does not. +inline bool is_026_token(const char* v) { + return v != nullptr && (std::strcmp(v, "026") == 0 || std::strcmp(v, "0.2.6") == 0 || std::strcmp(v, "v0.2.6") == 0); +} + +/// STRATA_DEFAULTS=026 (read once). +inline bool qwen_defaults_026() { + static const bool on = is_026_token(std::getenv("STRATA_DEFAULTS")); + return on; +} + +/// The decode miss split's start value (the share of a native pack's missing experts the CPU pool takes) when --pcie-frac is not given: +/// NVFP4 packs 0.25, other native packs 0.55 (the x16 share), and 0.15 on gfx12 (0.2.7) unless STRATA_PCIE_FRAC_DEFAULT=old or the master +/// switch is 026; a canonical pack 0.2. +inline double pcie_start_frac(bool nvfp4_pack, bool native_pack, bool gfx12_default, bool pf_old, bool v026 = false) { + if (nvfp4_pack) return 0.25; + if (!native_pack) return 0.2; + return gfx12_default && !pf_old && !v026 ? 0.15 : 0.55; +} + +} // namespace strata diff --git a/include/strata/core/ple_residency.hpp b/include/strata/core/ple_residency.hpp index 1135b89e..b9e3829e 100644 --- a/include/strata/core/ple_residency.hpp +++ b/include/strata/core/ple_residency.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include "strata/core/conversation_memory.hpp" @@ -26,4 +27,11 @@ inline bool ple_resident_admit(std::optional available, uint64_t table return conversation_memory_admit(available, table_bytes + experts_ram_bytes, headroom_bytes); } +/// May the residency policy run at all? STRATA_PLE_AUTO_RAM when it is set (0 off, anything else on: an explicit value wins), otherwise on +/// except under STRATA_DEFAULTS=026 (`v026`: v0.2.6 had no such policy, the direct reads stayed). +inline bool ple_auto_ram_allowed(const char* env_value, bool v026) { + if (env_value != nullptr) return std::atoi(env_value) != 0; + return !v026; +} + } // namespace strata::core diff --git a/include/strata/core/sm120_series.hpp b/include/strata/core/sm120_series.hpp index b1cc1192..8a6932a6 100644 --- a/include/strata/core/sm120_series.hpp +++ b/include/strata/core/sm120_series.hpp @@ -44,25 +44,31 @@ inline bool sm120_default(int major, int minor) { return is_sm120(major, minor) // ---- 0.2.7 defaults of the CUDA speed work (pure rules; the engine reads the device and calls these; tests in arch_defaults_test) // `hip`: a HIP build, where a gfx1200 / gfx1201 reports compute capability 12.0 as well and none of these is measured or wanted. +// `v026`: STRATA_DEFAULTS=026 (defaults_026.hpp qwen_defaults_026()): every one of these is then off, as in v0.2.6. An explicit variable +// (STRATA_ROUTE_PRIOR=2, STRATA_GR_V3=1, ...) is decided by the caller before it asks the rule, so it still wins. // `total_bytes`: the card's memory (cudaDeviceProp::totalGlobalMem); `integrated`: a GPU that shares the PC's memory. constexpr double kSmallCardGiB = 13.0; // "a 12 GB card": 12 GB cards report 11.6 - 12.0 GiB, 16 GB ones 15.6 - 16.0 /// STRATA_ROUTE_PRIOR when the user set nothing: 2.0 (residency-biased routing, changes which experts run; owner-approved for 12 GB cards) on a /// discrete CUDA card of 13 GiB or less, 0 everywhere else. Measured on an RTX 3060 12 GB only. -inline float route_prior_default(bool hip, bool integrated, double total_bytes) { - return !hip && !integrated && total_bytes > 0.0 && total_bytes / 1073741824.0 <= kSmallCardGiB ? 2.0f : 0.0f; +inline float route_prior_default(bool hip, bool integrated, double total_bytes, bool v026 = false) { + return !v026 && !hip && !integrated && total_bytes > 0.0 && total_bytes / 1073741824.0 <= kSmallCardGiB ? 2.0f : 0.0f; } /// STRATA_GR_V3 (the stream-split hyper-connection read, another summation order) when the user set nothing: ON for a discrete compute capability /// 12.0 card (STRATA_SM120_PERF=0 turns the set off) with more than 13 GiB, CUDA builds only. Measured: RTX PRO 5000 72 GB +1.2% decode clean, /// -3.0% / -5.9% on 2x RTX A4000 (sm_86), +1.0% / -3.4% on an RTX 3060 (sm_86): so not those; a 12 GB sm_120 card is unmeasured. -inline bool gr_v3_default(bool hip, int major, int minor, bool integrated, double total_bytes) { - return !hip && !integrated && sm120_default(major, minor) && total_bytes / 1073741824.0 > kSmallCardGiB; +inline bool gr_v3_default(bool hip, int major, int minor, bool integrated, double total_bytes, bool v026 = false) { + return !v026 && !hip && !integrated && sm120_default(major, minor) && total_bytes / 1073741824.0 > kSmallCardGiB; } /// STRATA_PROMPT_ATTN_IMMA (the prompt attention on int8 tensor cores, another summation order) when the user set nothing: ON for every CUDA card of /// compute capability 8.0 or newer (the int8 m16n8k32 MMA), not Turing / Volta / Pascal, not HIP. `cc` = 10 * major + minor as the engine /// resolves it (an emulated or forced Turing counts as 75). Measured on sm_120 (RTX PRO 5000) and sm_86 (2x RTX A4000): +1.1 .. +1.8% prompt. -inline bool prompt_attn_imma_default(bool hip, int cc) { return !hip && cc >= 80; } +inline bool prompt_attn_imma_default(bool hip, int cc, bool v026 = false) { return !v026 && !hip && cc >= 80; } + +/// STRATA_GR_UP_WIDE (the hyper-connection up projection, one warp a row; bitwise the old kernel) when the user set nothing: ON for a compute +/// capability 12.0 card (STRATA_SM120_PERF=0 turns the set off), CUDA builds only. +inline bool gr_up_wide_default(bool hip, int major, int minor, bool v026 = false) { return !v026 && !hip && sm120_default(major, minor); } } // namespace strata diff --git a/src/core/arch_defaults.cpp b/src/core/arch_defaults.cpp index efacbdad..47b9ba7a 100644 --- a/src/core/arch_defaults.cpp +++ b/src/core/arch_defaults.cpp @@ -1,5 +1,6 @@ // src/core/arch_defaults.cpp - see include/strata/core/arch_defaults.hpp. #include "strata/core/arch_defaults.hpp" +#include "strata/core/defaults_026.hpp" #include "strata/kernels/gfx_arch.hpp" @@ -10,6 +11,10 @@ namespace strata::core { std::vector> arch_default_env(const char* gcn_arch) { + return arch_default_env(gcn_arch, strata::qwen_defaults_026()); +} + +std::vector> arch_default_env(const char* gcn_arch, bool defaults026) { std::vector> t; if (strata::kernels::gfx_arch_is_gfx12(gcn_arch)) { // gfx1200 / gfx1201 (RDNA4): the PROMPT half of the gfx1151 table (reported exact on an R9700 in #1478, re-checked @@ -30,12 +35,13 @@ std::vector> arch_default_env(const char* gc {"STRATA_GDN_CONVL2", "1"}, {"STRATA_GDN_NOY", "1"}, {"STRATA_CVEC_FUSE", "1"}, - // decode (bit-identical on the R9700 measurement above) - {"STRATA_ATTN_LANECELL", "1"}, - {"STRATA_ATTN_MERGE_V2", "1"}, - {"STRATA_TSUM", "1"}, - {"STRATA_EXPDEC", "1"}, }; + if (defaults026) return t; // STRATA_DEFAULTS=026: v0.2.6's table, the prompt half only + // decode (bit-identical on the R9700 measurement above) + t.push_back({"STRATA_ATTN_LANECELL", "1"}); + t.push_back({"STRATA_ATTN_MERGE_V2", "1"}); + t.push_back({"STRATA_TSUM", "1"}); + t.push_back({"STRATA_EXPDEC", "1"}); return t; } if (!strata::kernels::gfx_arch_is_gfx1151(gcn_arch)) return t; diff --git a/src/core/arch_defaults_test.cpp b/src/core/arch_defaults_test.cpp index 9723b2b7..db193a7f 100644 --- a/src/core/arch_defaults_test.cpp +++ b/src/core/arch_defaults_test.cpp @@ -2,6 +2,7 @@ #include "strata/core/arch_defaults.hpp" #include "strata/core/gfx12_platform_defaults.hpp" #include "strata/core/sm120_series.hpp" +#include "strata/core/defaults_026.hpp" #include #include @@ -226,6 +227,54 @@ int main() { CHECK(!igpu_uma_arena_default("gfx1103", true, false, true)); // the user registers the arena as before unset("STRATA_UMA_REGISTER"); // both platforms: no Windows guard on the iGPU set (the owner wants it there too; untested on Windows is only said in the log) + // ---- STRATA_DEFAULTS=026 (defaults_026.hpp): every 0.2.7 Qwen default gives v0.2.6's answer; an explicit variable is decided by the caller first + { + const double GiB = 1073741824.0; + using namespace strata; + CHECK(is_026_token("026") && is_026_token("0.2.6") && is_026_token("v0.2.6")); + CHECK(!is_026_token(nullptr) && !is_026_token("") && !is_026_token("0") && !is_026_token("027")); + // residency-biased routing: 0 under 026 on the card that gets 2.0 otherwise + CHECK(route_prior_default(false, false, 12.0 * GiB, false) == 2.0f); + CHECK(route_prior_default(false, false, 12.0 * GiB, true) == 0.0f); + CHECK(route_prior_default(false, false, 8.0 * GiB, true) == 0.0f); + // the wide HC up read: on for a 12.0 card on CUDA, off under 026, off in HIP, off on sm_86 / sm_121 + CHECK(gr_up_wide_default(false, 12, 0)); + CHECK(!gr_up_wide_default(false, 12, 0, true)); + CHECK(!gr_up_wide_default(true, 12, 0)); + CHECK(!gr_up_wide_default(false, 8, 6)); + CHECK(!gr_up_wide_default(false, 12, 1)); + // GR_V3 and IMMA + CHECK(gr_v3_default(false, 12, 0, false, 72.0 * GiB, false)); + CHECK(!gr_v3_default(false, 12, 0, false, 72.0 * GiB, true)); + CHECK(prompt_attn_imma_default(false, 86, false)); + CHECK(!prompt_attn_imma_default(false, 86, true)); + CHECK(!prompt_attn_imma_default(false, 120, true)); + // the gfx12 decode switches: the arch table is v0.2.6's five prompt switches under 026, nine otherwise; gfx1151 and the others do not move + { + const auto t26 = strata::core::arch_default_env("gfx1201", true); + const auto t27 = strata::core::arch_default_env("gfx1201", false); + auto has = [](const std::vector>& t, const char* k) { + for (const auto& kv : t) if (kv.first == k) return true; + return false; + }; + CHECK(t26.size() == 5 && t27.size() == 9); + CHECK(has(t26, "STRATA_GDN_HEAD") && has(t26, "STRATA_CVEC_FUSE")); + CHECK(!has(t26, "STRATA_ATTN_LANECELL") && !has(t26, "STRATA_ATTN_MERGE_V2") && !has(t26, "STRATA_TSUM") && !has(t26, "STRATA_EXPDEC")); + CHECK(has(t27, "STRATA_ATTN_LANECELL") && has(t27, "STRATA_ATTN_MERGE_V2") && has(t27, "STRATA_TSUM") && has(t27, "STRATA_EXPDEC")); + CHECK(strata::core::arch_default_env("gfx1200", true).size() == 5); + CHECK(strata::core::arch_default_env("gfx1151", true) == strata::core::arch_default_env("gfx1151", false)); + CHECK(strata::core::arch_default_env("gfx1100", true).empty() && strata::core::arch_default_env("gfx1100", false).empty()); + } + // the decode miss split start value: 0.15 on gfx12 native packs, 0.55 under 026 or STRATA_PCIE_FRAC_DEFAULT=old; the others do not move + CHECK(pcie_start_frac(false, true, true, false, false) == 0.15); + CHECK(pcie_start_frac(false, true, true, false, true) == 0.55); + CHECK(pcie_start_frac(false, true, true, true, false) == 0.55); + CHECK(pcie_start_frac(false, true, false, false, false) == 0.55); + CHECK(pcie_start_frac(true, true, true, false, true) == 0.25); + CHECK(pcie_start_frac(true, true, true, false, false) == 0.25); + CHECK(pcie_start_frac(false, false, true, false, true) == 0.2); + CHECK(pcie_start_frac(false, false, true, false, false) == 0.2); + } std::printf(fails ? "arch_defaults_test: %d FAILED\n" : "arch_defaults_test: OK\n", fails); // ---- 0.2.7 CUDA defaults (sm120_series.hpp): which cards get which, and which never do { diff --git a/src/core/ple_residency_test.cpp b/src/core/ple_residency_test.cpp index 4673b7ad..fedfb9f2 100644 --- a/src/core/ple_residency_test.cpp +++ b/src/core/ple_residency_test.cpp @@ -21,6 +21,12 @@ int main() { // (table + 8 GiB) admitted it and the expert load then failed with error 1453. Not admitted now. check(!ple_resident_admit(45ull * GiB + (1ull << 28), table, arena, 8 * GiB), "64 GB PC with the IQ3_S arena: not admitted"); check(!ple_resident_admit(40ull * GiB, table, arena, 8 * GiB), "40 GiB: not admitted"); + // STRATA_DEFAULTS=026: the policy does not run (v0.2.6 had none); an explicit STRATA_PLE_AUTO_RAM wins either way + check(ple_auto_ram_allowed(nullptr, false), "policy on by default"); + check(!ple_auto_ram_allowed(nullptr, true), "policy off under STRATA_DEFAULTS=026"); + check(ple_auto_ram_allowed("1", true), "STRATA_PLE_AUTO_RAM=1 wins over 026"); + check(!ple_auto_ram_allowed("0", false), "STRATA_PLE_AUTO_RAM=0 is the old off switch"); + check(!ple_auto_ram_allowed("0", true), "STRATA_PLE_AUTO_RAM=0 under 026"); // a PC that holds the table, the arena and 8 GiB check(ple_resident_admit(table + arena + 8 * GiB, table, arena, 8 * GiB), "exactly table + arena + headroom is admitted"); check(!ple_resident_admit(table + arena + 8 * GiB - 1, table, arena, 8 * GiB), "one byte below is not"); diff --git a/src/core/verify.cpp b/src/core/verify.cpp index f99dc9e8..ac3f874a 100644 --- a/src/core/verify.cpp +++ b/src/core/verify.cpp @@ -2,6 +2,7 @@ #include "strata/core/batch_rows.hpp" #include "strata/core/sm75_series.hpp" #include "strata/core/sm120_series.hpp" +#include "strata/core/defaults_026.hpp" #include "strata/kernels/gfx_arch.hpp" #include "strata/core/verify.hpp" #include "strata/core/pin_budget.hpp" @@ -225,7 +226,7 @@ inline float g_route_prior() { cudaDeviceProp p; const bool ok = cudaGetDeviceProperties(&p, dev) == cudaSuccess; if (!ok) cudaGetLastError(); - per_dev[dev] = 1.0f + (ok ? strata::route_prior_default(false, p.integrated != 0, (double) p.totalGlobalMem) : 0.0f); + per_dev[dev] = 1.0f + (ok ? strata::route_prior_default(false, p.integrated != 0, (double) p.totalGlobalMem, strata::qwen_defaults_026()) : 0.0f); } return per_dev[dev] - 1.0f; #endif diff --git a/src/dsv41/ds4_experts_rule.hpp b/src/dsv41/ds4_experts_rule.hpp index ae872def..79e9c4b9 100644 --- a/src/dsv41/ds4_experts_rule.hpp +++ b/src/dsv41/ds4_experts_rule.hpp @@ -9,9 +9,24 @@ #include #include #include +#include namespace strata::ds4 { +// DS4_DEFAULTS=026: the master switch. Every default the DeepSeek engine changed since v0.2.6 goes back to what v0.2.6 did, so "off" in the app's +// "DeepSeek speed-ups" really is version 0.2.6. Each rule below takes `v026` (the engine passes defaults_026()); an explicit per-feature variable or +// flag (DS4_ATTN_SLAB=N, DS4_COPY_PIN=1, DS4_FAST_ATTN=1, --experts N, --prefill-chunk N, ...) still wins over it. The list, from +// `git diff v0.2.6..f-027-int2 -- src/dsv41`: the staging ring, the prompt chunk rule, the attention slab (base and growth), the pinned copy, +// the huge-page arena, the matrix-core attention, the drafter's cumulative cut, the 5-experts default, the store's spare slots and put, the +// store settle after a prompt, the dense dequantizer, the F16 gate/up operand, the markov head in Q8, the head's column count, the RDNA3 WMMA GEMM. +inline bool is_026_token(const char* v) { + return v != nullptr && (std::strcmp(v, "026") == 0 || std::strcmp(v, "0.2.6") == 0 || std::strcmp(v, "v0.2.6") == 0); +} +inline bool defaults_026() { + static const bool on = is_026_token(std::getenv("DS4_DEFAULTS")); + return on; +} + constexpr uint64_t kFasterModeVramMax = 16ull << 30; // GiB of graphics memory in all, at most constexpr int kFasterModeExperts = 5; @@ -21,8 +36,10 @@ constexpr int kFasterModeExperts = 5; // multi_rdna4: two or more RDNA4 cards (gfx1200 / gfx1201: R9700, RX 9000) that together hold at least half of the routed experts - the 4 x R9700 box // the Marlin stream measured: 5 against 6 experts, 2.25 bpw, 8K prompt 1339 -> 1419 ppts (+6%) and decode 78.1 -> 81.2 tok/s (+4%), reference KL // 0.10987 against 0.10833 and top-1 87.59% against 87.53% (the gate is 0.006). Faster mode there too, by default. -inline int experts_per_word(int requested, uint64_t vram_bytes, int model_k, bool integrated = false, bool multi_rdna4 = false) { +inline int experts_per_word(int requested, uint64_t vram_bytes, int model_k, bool integrated = false, bool multi_rdna4 = false, + bool v026 = false) { if (model_k <= 1) return model_k; + if (v026) multi_rdna4 = false; // 0.2.6: Faster by default on a small card or an integrated GPU only int n = requested; if (n < 1) n = integrated || multi_rdna4 || (vram_bytes != 0 && vram_bytes <= kFasterModeVramMax) ? kFasterModeExperts : model_k; if (n > model_k) n = model_k; @@ -45,7 +62,8 @@ constexpr uint64_t kChunkInPlace4096Below = 16ull << 30; // gguf_copy: a GGUF pack with --mmap-experts off; file_experts: the experts stay in the files; hip: a HIP build; min_vram_bytes: the // smallest card; big: the chunk of the streamed case (the engine's kVlRows, 8192) inline int prefill_chunk_default(bool own_default, double gpu_share, bool gguf_copy, bool file_experts, bool hip, uint64_t min_vram_bytes, - int big = 8192, bool multi_tp = false) { + int big = 8192, bool multi_tp = false, bool v026 = false) { + if (v026) multi_tp = false; // 0.2.6: the 1024 chunk for a --tp 1 run only // The cards hold most of the experts: the small chunk is the measured one. Two datapoints, both on 4 x R9700: with `--tp 1` (what // `strata launch` writes for 4 or more AMD cards), share 0.86: 1024 370 against 214 tok/s at 8192; and with the engine's own default tp // (2, pairs of cards, nothing written), where the rule used to fall through to 2048/8192: 2.25 bpw, --dspark auto, ids 5705e1164a, 8K @@ -86,8 +104,10 @@ inline bool copy_all_fits(double lane_bytes, uint64_t ram_avail, double ram_marg // experts), and never less than the base; the automatic growth on top of it still applies where the room is there. A unified-memory GPU // (the caller passes env 0 there) and DS4_ATTN_SLAB=0 never take either branch. The caller passes 0 for `expert_share` in a build that is not // HIP: that branch is the 4 x R9700 measurement. -inline int attn_slab_rows(int env, int chunk, int base, double spare_bytes, double bytes_per_row, double expert_share = 0.0) { +inline int attn_slab_rows(int env, int chunk, int base, double spare_bytes, double bytes_per_row, double expert_share = 0.0, + bool v026 = false) { auto clampn = [&](int a) { return std::max(64, std::min(chunk, a) / 64 * 64); }; + if (v026 && env < 0) env = 0; // 0.2.6: DS4_ATTN_SLAB unset gave the base; DS4_ATTN_SLAB=N still asks for N rows if (env == 0) return base; if (env > 0) return clampn(env); int rows = base; @@ -113,7 +133,8 @@ inline int attn_slab_rows(int env, int chunk, int base, double spare_bytes, doub // A unified-memory GPU never takes the small ring (its datapoint is the 1200 MB one): it keeps the 16 MB "fit" rule at 1/1.3. // `hip`: the 0.5..0.82 band and the 0.82 threshold are the 4 x R9700 measurements, so only an RDNA4 system (every device a gfx1200 or gfx1201; the parameter is named hip) takes them; any other build keeps main's // rule there (16 MB from 1/1.3, the streamed ring below it) until a CUDA multi-card rig is measured. -inline int staging_ring_mb(double share, double room_bytes, int n_dev, bool integrated, bool hip) { +inline int staging_ring_mb(double share, double room_bytes, int n_dev, bool integrated, bool hip, bool v026 = false) { + if (v026) return share >= 1.0 / 1.3 ? 16 : 400; // 0.2.6: 16 MB where the cards hold the experts, a fixed 400 MB otherwise const double GB = 1e9; const double per_dev = n_dev > 0 ? room_bytes / (double) n_dev : 0.0; const double streamed = std::min(1200.0, std::max(400.0, room_bytes / GB * 64.0)); @@ -132,4 +153,70 @@ inline int experts_test_override(int chosen, int model_k) { return chosen; } + +// The base of the attention slab, MB of q (rows = MB / the heads' width, rounded to 64): STRATA_DS4_A_MB when given; 0.2.6 and a discrete card 8 MB; +// a unified-memory GPU 32 MB (main's 3133160ed, Strix Halo). +inline size_t attn_slab_base_mb(bool unified, size_t env_mb, bool v026 = false) { + if (env_mb != 0) return env_mb; + return !v026 && unified ? 32 : 8; +} + +// DS4_COPY_PIN (pin the CPU lane's RAM copy so the prompt DMAs it in place): env -1 unset, else 0 / 1. Explicit wins; 0.2.6: opt-in, so unset = off; +// 0.2.7: on when the whole arena is on explicit huge pages OR (RDNA4 and the cards hold at least half the experts). +inline bool copy_pin_default(int env, bool arena_all_huge, bool rdna4, double share, bool have_chunks, bool v026 = false) { + if (env >= 0) return env != 0; + if (v026) return false; + return (arena_all_huge || (rdna4 && share >= 0.5)) && have_chunks; +} + +// DS4_COPY_HUGETLB (the copy arena on explicit 2 MB pages): env -1 unset, else 0 / 1; 0.2.6: opt-in; 0.2.7: on when the reserved pool already holds the whole copy. +inline bool copy_hugetlb_default(int env, double pool_free_bytes, double copy_bytes, bool v026 = false) { + if (env >= 0) return env != 0; + if (v026) return false; + return pool_free_bytes > 0.0 && pool_free_bytes >= copy_bytes; +} + +// DS4_FAST_ATTN (the chunked prompt's attention on the matrix cores): env -1 unset, else 0 / 1; 0.2.6: opt-in; 0.2.7: on for gfx1200 / gfx1201. +inline bool fast_attn_default(int env, bool gfx12, bool v026 = false) { + if (env >= 0) return env != 0; + return !v026 && gfx12; +} + +// The drafter's cumulative confidence cut (STRATA_DS4_DSPARK_CUM, a request's dspark_cum): the variable when set; 0.2.6: 0; 0.2.7: 0.5 on gfx1200 / gfx1201. +inline float dspark_cum_value(bool has_env, float env_value, bool gfx12, bool v026 = false) { + if (has_env) return env_value; + return !v026 && gfx12 ? 0.5f : 0.0f; +} + +// DS4_STORE_SPARE (the RAM store takes the spare slots) and DS4_STORE_PUT (an expert the VRAM cache gives back is put into the store from memory): +// env -1 unset, else 0 / 1; 0.2.6: neither existed (off); 0.2.7: on. +inline bool store_feature_default(int env, bool v026 = false) { + if (env >= 0) return env != 0; + return !v026; +} + +// DS4_SETTLE_STORE (the RAM store's post-prompt preload) when the variable is unset: 0.2.6 ran it (1), 0.2.7 does not (0: it cost a 4K prompt 4.7 s). +inline float settle_store_default(bool v026 = false) { return v026 ? 1.0f : 0.0f; } +// The preload skips the experts the CPU lane already holds as a RAM copy (0.2.7); 0.2.6 did not. +inline bool settle_skips_copy_experts(bool v026 = false) { return !v026; } + +// The chunked prompt's dense dequantizer: the row-per-lane dq_rows_kernel (0.2.6's values, bit for bit) or dq_rows_kernel2 (the coalesced transpose). +// DS4_DQ_OLD (-1 unset, else 0 / 1) wins; 0.2.6: the old one; 0.2.7: the old one on gfx11 only. +inline bool dq_old_default(int env, bool gfx11, bool v026 = false) { + if (env >= 0) return env != 0; + return v026 || gfx11; +} + +// The head's columns a pass for a GGUF head (DS4_HEAD_PER overrides): 0.2.6 4, 0.2.7 8 (the same logits per column). +inline int head_per_default(bool v026 = false) { return v026 ? 4 : 8; } +// The drafter's markov head quantised to Q8_0 as it loads (0.2.7) or read as F16 (0.2.6). +inline bool markov_head_q8_default(bool v026 = false) { return !v026; } +// The gate/up tiles read the layer's F16 copy of the activations (0.2.7, bit-identical) or the F32 rows (0.2.6). +inline bool gate_up_x16_default(bool v026 = false) { return !v026; } +// STRATA_DENSE_PFGEMM (the RDNA3 WMMA dense GEMM before hipBLAS; -1 unset, else 0 / 1): 0.2.6 did not have it. +inline bool dense_pfgemm_default(int env, bool v026 = false) { + if (env >= 0) return env != 0; + return !v026; +} + } // namespace strata::ds4 diff --git a/src/dsv41/ds4_iq.cu b/src/dsv41/ds4_iq.cu index 931e3d33..da5e8e5d 100644 --- a/src/dsv41/ds4_iq.cu +++ b/src/dsv41/ds4_iq.cu @@ -4,6 +4,7 @@ // ggml's (ggml-common.h, MIT, third_party/ggml/LICENSE); the sign and grid tricks are llama.cpp's vecdotq.cuh. #include "ds4_iq.cuh" #include "ds4_numerics.cuh" +#include "ds4_experts_rule.hpp" #include #if !defined(STRATA_USE_HIP) @@ -1393,7 +1394,10 @@ __global__ void __launch_bounds__(kThreads) dq_rows_kernel(const uint8_t* __rest // prompt 79.5 -> 88.5 tok/s with it, so a gfx11 device defaults to it. DS4_DQ_OLD=1 forces it anywhere, DS4_DQ_OLD=0 forces kernel2 // anywhere. The detection is the device's gcnArchName (HIP only; a CUDA build has no gfx11). Decided once per device. static bool dq_use_old_kernel() { - if (const char* e = std::getenv("DS4_DQ_OLD"); e != nullptr && *e != '\0') return std::atoi(e) != 0; + const char* dq_env = std::getenv("DS4_DQ_OLD"); + const int env = dq_env != nullptr && *dq_env != '\0' ? (std::atoi(dq_env) != 0 ? 1 : 0) : -1; + const bool v026 = strata::ds4::defaults_026(); // DS4_DEFAULTS=026: 0.2.6's row-per-lane dequantizer (the same values, bit for bit) + if (env >= 0 || v026) return strata::ds4::dq_old_default(env, false, v026); #if defined(STRATA_USE_HIP) static std::atomic cache[64]; // 0 unknown, 1 no, 2 yes int dev = 0; diff --git a/src/dsv41/ds4_kernels.cu b/src/dsv41/ds4_kernels.cu index a05091f0..baf63dcc 100644 --- a/src/dsv41/ds4_kernels.cu +++ b/src/dsv41/ds4_kernels.cu @@ -7,6 +7,7 @@ #include "ds4_q6k.cuh" #include "ds4_attn_split.cuh" #include "ds4_wmma.cuh" +#include "ds4_experts_rule.hpp" #include @@ -2056,11 +2057,10 @@ bool fast_attn_enabled() { const char* e = std::getenv("DS4_FAST_ATTN"); return e == nullptr ? -1 : (std::atoi(e) != 0 ? 1 : 0); }(); - if (env >= 0) return env == 1; #if defined(STRATA_USE_HIP) - return device_is_gfx12(); + return strata::ds4::fast_attn_default(env, device_is_gfx12(), strata::ds4::defaults_026()); #else - return false; + return strata::ds4::fast_attn_default(env, false, strata::ds4::defaults_026()); #endif } attnsplit::AttnSplitScratch split_scratch(cudaStream_t s, int heads) { diff --git a/src/dsv41/ds4_main.cpp b/src/dsv41/ds4_main.cpp index 2c11b876..3b259b2a 100644 --- a/src/dsv41/ds4_main.cpp +++ b/src/dsv41/ds4_main.cpp @@ -19,6 +19,7 @@ // read stops there for a checkpoint, so a request behind the same start - another agent - goes back to it instead of // reading it again (also without slots). STRATA_DS4_REUSE=0 turns every reuse off (each request reads its whole prompt). #include "ds4_model.hpp" +#include "ds4_experts_rule.hpp" #include "ds4_os.hpp" #include "ds4_packinfo.hpp" #include "ds4_slotmeta.hpp" @@ -158,8 +159,8 @@ static int g_round_nd = 0; // Strix keeps 0 until it is; the CUDA measurements in 0.2.7 had it flat, so CUDA keeps 0. STRATA_DS4_DSPARK_CUM overrides everywhere. float dspark_cum_default(const strata::ds4::Model& m) { static const char* const e = std::getenv("STRATA_DS4_DSPARK_CUM"); - if (e != nullptr) return (float) std::atof(e); - return m.gpus_are_gfx12() ? 0.5f : 0.0f; + return strata::ds4::dspark_cum_value(e != nullptr, e != nullptr ? (float) std::atof(e) : 0.0f, m.gpus_are_gfx12(), + strata::ds4::defaults_026()); } // One round of decoding after `tok` (the token at pos(), not fed yet): with the drafter, its drafts while their diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index 9c359644..91d29a26 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -85,6 +85,12 @@ constexpr bool kHipBuild = true; constexpr bool kHipBuild = false; #endif +// an environment variable as 0 / 1, or -1 when it is not set (the rules in ds4_experts_rule.hpp take this form) +int env_tri(const char* name) { + const char* v = std::getenv(name); + return v != nullptr ? (std::atoi(v) != 0 ? 1 : 0) : -1; +} + double now_ms() { return std::chrono::duration(std::chrono::steady_clock::now().time_since_epoch()).count(); } @@ -2067,7 +2073,7 @@ struct Model::Impl { #else const bool hip_build = false; #endif - const int rule_chunk = prefill_chunk_default(own_default, gpu_expert_share(), gguf_copy, file_experts, hip_build, vmin_bytes, kVlRows, multi_tp); + const int rule_chunk = prefill_chunk_default(own_default, gpu_expert_share(), gguf_copy, file_experts, hip_build, vmin_bytes, kVlRows, multi_tp, defaults_026()); chunk = prompt_par ? (o.prefill_chunk >= 0 ? o.prefill_chunk : rule_chunk) : 0; if (prompt_par && o.prefill_chunk < 0 && rule_chunk == 4096 && gguf_copy) std::fprintf(stderr, "ds4: prompts in chunks of 4096 tokens (the experts are copied into RAM, %.0f GiB of graphics memory; --prefill-chunk N changes it)\n", @@ -2134,7 +2140,7 @@ struct Model::Impl { } // two or more RDNA4 cards holding at least half of the experts (the 4 x R9700 class): Faster by default too const bool multi_rdna4 = rdna4() && devs.size() >= 2 && gpu_expert_share() >= 0.5; - const int n = experts_test_override(experts_per_word(o.experts, vram_all, l.k_exp, integrated, multi_rdna4), l.k_exp); + const int n = experts_test_override(experts_per_word(o.experts, vram_all, l.k_exp, integrated, multi_rdna4, defaults_026()), l.k_exp); experts_used = n; if (n < l.k_exp) std::fprintf(stderr, "ds4: experts per word: %d (%s; full quality: --experts %d)\n", n, @@ -3002,7 +3008,7 @@ struct Model::Impl { cudaDeviceProp ip{}; if (cudaGetDeviceProperties(&ip, d.id) == cudaSuccess && ip.integrated != 0) unified = true; } - const size_t mb = (size_t) strata::ds4::staging_ring_mb(exp_b > 0 ? share : 0.0, room, (int) devs.size(), unified, rdna4()); + const size_t mb = (size_t) strata::ds4::staging_ring_mb(exp_b > 0 ? share : 0.0, room, (int) devs.size(), unified, rdna4(), defaults_026()); if (o.verbose) std::fprintf(stderr, "ds4: staging ring: experts %.1f GB, VRAM room %.1f GB, dense %.1f GB -> %d MB\n", exp_b / 1e9, room / 1e9, other_b / 1e9, (int) mb); @@ -3039,7 +3045,7 @@ struct Model::Impl { const char* v = std::getenv("STRATA_DS4_A_MB"); return (size_t) (v != nullptr ? std::max(1, std::atoi(v)) : 0); }(); - const size_t a_mb = a_mb_env != 0 ? a_mb_env : (unified ? 32 : 8); + const size_t a_mb = strata::ds4::attn_slab_base_mb(unified, a_mb_env, defaults_026()); c.A = std::max(64, (int) ((a_mb << 20) / (size_t) HQ) / 64 * 64); // DS4_ATTN_SLAB=N: the attention slab's rows. The dense projections (q_b, wo_a/b) are dequantized and GEMM'd // once a slab, so a slab of 256 rows dequantizes the same weights 32 times for an 8K prompt (measured: the @@ -3062,7 +3068,7 @@ struct Model::Impl { const int base = c.A; // one rule (ds4_experts_rule.hpp: attn_slab_rows): the chunk's whole slab (<= 1024 rows) where the cards hold half the // experts or more (4 x R9700, +9% prompt), up to 2048 rows where the VRAM is spare, the base otherwise - c.A = strata::ds4::attn_slab_rows(env, chunk, base, spare, bpr, rdna4() ? share : 0.0); + c.A = strata::ds4::attn_slab_rows(env, chunk, base, spare, bpr, rdna4() ? share : 0.0, defaults_026()); if (env < 0 && c.A > base) { slab_auto_grew_ = true; if (di == 0 && o.verbose) { @@ -3153,10 +3159,7 @@ struct Model::Impl { std::string& err) { if (rows <= 0) return true; #if defined(STRATA_USE_HIP) // (wmma_gemm.cu is part of the AMD builds only: a CUDA build has no such kernel and keeps cuBLAS) - static const bool pf = [] { - const char* v = std::getenv("STRATA_DENSE_PFGEMM"); - return v == nullptr || v[0] != '0'; - }(); + static const bool pf = strata::ds4::dense_pfgemm_default(env_tri("STRATA_DENSE_PFGEMM"), defaults_026()); #endif const int cols = std::max(128, (int) std::min((size_t) m.n, c.w16_elems / (size_t) m.k) / 128 * 128); for (int c0 = 0; c0 < m.n; c0 += cols) { @@ -3790,7 +3793,7 @@ struct Model::Impl { sa.limit = g.lim; // gate / up read the layer's F16 copy of the activations (the same rounding the tiles make for their // shared tile): with 18-36 column blocks an expert the F32 rows were read that many times - sa.x16 = c.x16; + sa.x16 = strata::ds4::gate_up_x16_default(defaults_026()) ? c.x16 : nullptr; EkMark ek{}; const bool ekp = prof_chunk; if (ekp) { @@ -3965,7 +3968,9 @@ struct Model::Impl { return false; } if (!dalloc(d, d_mk_embed, te->bytes / 2, err, acct) || !upload(d, *te, d_mk_embed, err) || - !mk_head_q8(d, Z + "markov_head.head.weight", d_mk_head_q8, err, acct)) + (strata::ds4::markov_head_q8_default(defaults_026()) + ? !mk_head_q8(d, Z + "markov_head.head.weight", d_mk_head_q8, err, acct) + : !f16raw(d, Z + "markov_head.head.weight", d_mk_head, err, acct))) // (0.2.6: the head as F16) return false; } } @@ -4450,11 +4455,7 @@ struct Model::Impl { // 0.2.7: DS4_COPY_HUGETLB unset = ON when the reserved pool already holds the whole copy (HugePages_Free), else the // ordinary arena exactly as before; =0 is the off switch, =1 asks for it anyway (a smaller pool is used, the rest warns). const uint64_t pool_free = os::huge_free_bytes(); - const bool huge_arena = [&] { - const char* e = std::getenv("DS4_COPY_HUGETLB"); - if (e != nullptr) return std::atoi(e) != 0; - return pool_free > 0 && (double) pool_free >= all; - }(); + const bool huge_arena = strata::ds4::copy_hugetlb_default(env_tri("DS4_COPY_HUGETLB"), (double) pool_free, all, defaults_026()); if (huge_arena && std::getenv("DS4_COPY_HUGETLB") == nullptr) std::fprintf(stderr, "ds4: the reserved huge-page pool (%.1f GB free) holds the whole copy (%.1f GB): the arena on 2 MB pages " "(DS4_COPY_HUGETLB=0 keeps the ordinary arena)\n", (double) pool_free / 1e9, all / 1e9); @@ -4620,8 +4621,8 @@ struct Model::Impl { // THP arena registers 4 KB pages and the DMA rate was erratic on the 12 GB cell: 11.9 s one prompt, 30.4 s the next), or (b) the // cards hold at least half the routed experts on RDNA4 (4 x R9700: the pin was reliable in 4/4 runs there, see above). =0 is the off // switch, =1 pins any arena. - const char* cp = std::getenv("DS4_COPY_PIN"); - const bool pin_copies = cp != nullptr ? std::atoi(cp) != 0 : ((arena_all_huge || (rdna4() && gpu_expert_share() >= 0.5)) && !ram_chunks.empty()); + const bool pin_copies = strata::ds4::copy_pin_default(env_tri("DS4_COPY_PIN"), arena_all_huge, rdna4(), gpu_expert_share(), + !ram_chunks.empty(), defaults_026()); if (pin_copies) { const bool ro = std::getenv("DS4_COPY_PIN_RO") != nullptr && std::atoi(std::getenv("DS4_COPY_PIN_RO")) != 0; const double tr = now_ms(); @@ -5013,7 +5014,7 @@ struct Model::Impl { // up its coldest to the CPU lane, and a store without them reads each from the SSD while the CPU lane waits - 1.8 misses a // token on the 251 GB R9700 box, 2.9 ms of a 49 ms token), then the lane's experts the profile never saw. Last in the list: they // take only the slots the likely ones left. DS4_STORE_SPARE=0: off. - if (!(std::getenv("DS4_STORE_SPARE") && std::atoi(std::getenv("DS4_STORE_SPARE")) == 0)) { + if (strata::ds4::store_feature_default(env_tri("DS4_STORE_SPARE"), defaults_026())) { std::vector>> vr, zero; for (const Layer& l : L) { if (l.il >= g.nl) continue; @@ -5029,7 +5030,7 @@ struct Model::Impl { } const double t0 = now_ms(); // (with the spare experts in the list the reserve is theirs: last in the list, so the oldest ticks, so the first a demand read replaces) - const bool spare_on = !(std::getenv("DS4_STORE_SPARE") && std::atoi(std::getenv("DS4_STORE_SPARE")) == 0); + const bool spare_on = strata::ds4::store_feature_default(env_tri("DS4_STORE_SPARE"), defaults_026()); const size_t leave = spare_on ? 0 : (size_t) (std::getenv("DS4_STORE_RESERVE") ? std::atoi(std::getenv("DS4_STORE_RESERVE")) : 192) + 64; // The first 48 GB (what a store held before it could take every expert) are read before the first token; the rest of the // hottest-first list is read after it, in pieces of 128 experts on a thread of its own, behind the model's own reads (a @@ -6417,7 +6418,7 @@ struct Model::Impl { } if (got) blob_to_ram(l, sw_b, sw.ram); else sw.ram = -1; // (back to the file's pages then) - } else if (ok && store && l.nm == 1 && l.lay.fmt == gg::kFmtMXFP4 && !(std::getenv("DS4_STORE_PUT") && std::atoi(std::getenv("DS4_STORE_PUT")) == 0)) { + } else if (ok && store && l.nm == 1 && l.lay.fmt == gg::kFmtMXFP4 && strata::ds4::store_feature_default(env_tri("DS4_STORE_PUT"), defaults_026())) { // `out` goes back to the CPU lane: its blob is in VRAM, so it is copied into a store slot now - the lane would otherwise read it from // the SSD and wait for it (1-2 misses a token on the 251 GB R9700 box). DS4_STORE_PUT=0: off. uint8_t* dst = store->put_begin(l.il, sw.out); @@ -6481,7 +6482,7 @@ struct Model::Impl { // The RAM store's preload after a chunked prompt is off by default: measured on Strix Halo (code fixture, prompt + // 256 tokens, 3 runs a side) it costs the prompt 4.7 s and the decode that follows gains nothing (13.9/14.4 s with it // against 14.2 s without). The swaps above are what the decode actually uses; DS4_SETTLE_STORE=1 restores it. - if (store && env_f("DS4_SETTLE_STORE", 0.0f) != 0.0f) { // the RAM store too: a window prompt fills it through the CPU + if (store && env_f("DS4_SETTLE_STORE", strata::ds4::settle_store_default(defaults_026())) != 0.0f) { // the RAM store too: a window prompt fills it through the CPU // lane's picks, a chunked one streams past it - the hottest CPU-lane experts of the prompt into its free slots // (copy_mode: an expert already in the CPU lane's RAM copy gains nothing from a second copy of the same bytes - // measured on the R9700 12 GB cell: 4152 such experts, 40 GB read at 6.4 GB/s, 6.2 s of an 8K prompt, 0.0 store @@ -6490,7 +6491,7 @@ struct Model::Impl { for (const Layer& l : L) { if (l.mtp) continue; for (int e = 0; e < l.n_exp; ++e) - if (l.slot[(size_t) e] < 0 && !(copy_mode && !l.ram.empty() && l.ram[(size_t) e] >= 0) && + if (l.slot[(size_t) e] < 0 && !(strata::ds4::settle_skips_copy_experts(defaults_026()) && copy_mode && !l.ram.empty() && l.ram[(size_t) e] >= 0) && l.heat[(size_t) e] >= 4.0f) hot.push_back({l.heat[(size_t) e], {l.il, e}}); } std::sort(hot.begin(), hot.end(), [](const auto& a, const auto& b) { return a.first > b.first; }); @@ -7121,7 +7122,8 @@ struct Model::Impl { sp.seed = dq_seed; } for (int i = 0; i < T; ++i) { // the markov bias of the token before, then that position's draft - markov_add_q8(hd.logits + (size_t) i * V, d_mk_embed, d_mk_head_q8, d_ints + i, V, R, hd.st); + if (d_mk_head_q8 != nullptr) markov_add_q8(hd.logits + (size_t) i * V, d_mk_embed, d_mk_head_q8, d_ints + i, V, R, hd.st); + else markov_add(hd.logits + (size_t) i * V, d_mk_embed, d_mk_head, d_ints + i, V, R, hd.st); if (drafts_q) { sp.counter = dq_counter + (uint64_t) i; strata::dsv41k::sample_draft(hd.logits + (size_t) i * V, 1, V, sp, d_specq + i, d_ints + i + 1, hd.st); @@ -8803,7 +8805,7 @@ struct Model::Impl { // for a whole one, each pass reading the whole share; a GGUF's: 8, so that every window the engine can build (rows // <= kWin = 8) walks the head once instead of twice - measured on the drafter's fixed T=5: 4.55 -> 2.83 ms, its // round 14.49 -> 13.46; the verify window's head 3.48 -> 2.68 ms, the same logits. DS4_HEAD_PER overrides.) - const int per = d.head.fmt != 0 ? (std::getenv("DS4_HEAD_PER") ? std::atoi(std::getenv("DS4_HEAD_PER")) : 8) + const int per = d.head.fmt != 0 ? (std::getenv("DS4_HEAD_PER") ? std::atoi(std::getenv("DS4_HEAD_PER")) : strata::ds4::head_per_default(defaults_026())) : std::max(1, x3::mv_cols(d.head)); for (int c = 0; c < rows; c += per) if (!mv(d, {job(d.head, xn + (size_t) c * D, out + (size_t) c * ld, std::min(per, rows - c), D, ld)}, err)) diff --git a/src/kernels/cuda/fused_gr.cu b/src/kernels/cuda/fused_gr.cu index ad1fcbd3..6f6f3232 100644 --- a/src/kernels/cuda/fused_gr.cu +++ b/src/kernels/cuda/fused_gr.cu @@ -2,6 +2,7 @@ #include "strata/core/emulate.hpp" #include "strata/core/sm75_series.hpp" #include "strata/core/sm120_series.hpp" +#include "strata/core/defaults_026.hpp" #include "strata/kernels/q8_1_finite.hpp" // #606: q8_1_ds #include "strata/core/geometry.hpp" #include "strata/kernels/fused_gr.hpp" @@ -461,7 +462,7 @@ bool gr_up_wide_on() { int major = 0, minor = 0; cudaDeviceGetAttribute(&major, cudaDevAttrComputeCapabilityMajor, dev); cudaDeviceGetAttribute(&minor, cudaDevAttrComputeCapabilityMinor, dev); - per_dev[dev] = strata::sm120_default(major, minor) ? 2 : 1; + per_dev[dev] = strata::gr_up_wide_default(false, major, minor, strata::qwen_defaults_026()) ? 2 : 1; cudaGetLastError(); // drop what an attribute query on a CPU-only box leaves behind } return per_dev[dev] == 2; @@ -2322,7 +2323,7 @@ static bool gr_v3_default_on(int dev) { cudaDeviceProp p; const bool ok = cudaGetDeviceProperties(&p, dev) == cudaSuccess; if (!ok) cudaGetLastError(); - per_dev[dev] = ok && strata::gr_v3_default(false, p.major, p.minor, p.integrated != 0, (double) p.totalGlobalMem) ? 2 : 1; + per_dev[dev] = ok && strata::gr_v3_default(false, p.major, p.minor, p.integrated != 0, (double) p.totalGlobalMem, strata::qwen_defaults_026()) ? 2 : 1; } return per_dev[dev] == 2; #endif diff --git a/src/kernels/cuda/qsa_prompt_attn.cu b/src/kernels/cuda/qsa_prompt_attn.cu index f2b2d0a0..82b199b1 100644 --- a/src/kernels/cuda/qsa_prompt_attn.cu +++ b/src/kernels/cuda/qsa_prompt_attn.cu @@ -1,6 +1,7 @@ // src/kernels/cuda/qsa_prompt_attn.cu - see include/strata/kernels/qsa_prompt_attn.hpp. #include "strata/core/emulate.hpp" #include "strata/core/sm120_series.hpp" +#include "strata/core/defaults_026.hpp" #include "strata/core/sm75_series.hpp" #include "strata/core/geometry.hpp" #include "strata/core/gfx12_platform_defaults.hpp" @@ -2428,7 +2429,7 @@ bool qsa_prompt_attn_batch(const float* q, const QsaAttnPools& pools, const int3 const char* v = std::getenv("STRATA_PROMPT_ATTN_IMMA"); g_pa_imma = v == nullptr ? 2 : (v[0] == '1' ? 1 : 0); // 2: the default (on where the kernel can run) } - if (!turing && (g_pa_imma == 1 || (g_pa_imma == 2 && strata::prompt_attn_imma_default(false, 80)))) return launch_i8v3(q, pools, ids, steps, cap, s, attn, n_q, st); + if (!turing && (g_pa_imma == 1 || (g_pa_imma == 2 && strata::prompt_attn_imma_default(false, 80, strata::qwen_defaults_026())))) return launch_i8v3(q, pools, ids, steps, cap, s, attn, n_q, st); return launch_i8(q, pools, ids, steps, cap, s, attn, n_q, st); } if (!pools.k_pool || !pools.v_pool) return false; diff --git a/src/program/generate.cpp b/src/program/generate.cpp index 43b9bcb5..4e871b0d 100644 --- a/src/program/generate.cpp +++ b/src/program/generate.cpp @@ -30,6 +30,7 @@ #include "strata/core/session_save_reclaim.hpp" #include "strata/core/conversation_memory.hpp" #include "strata/core/ple_residency.hpp" +#include "strata/core/defaults_026.hpp" #include "strata/core/coupled_draft.hpp" #include "strata/core/expert_source.hpp" #include "strata/core/foresight_swap.hpp" @@ -3585,8 +3586,7 @@ int main(int argc, char** argv) { const bool pf_old = pfd != nullptr && std::strcmp(pfd, "old") == 0; // 0.2.7: gfx12 native packs start at 0.15 (see pcie_share_gfx12_default above); other cards and // STRATA_PCIE_FRAC_DEFAULT=old keep the x16 share measured for them. - const double base = nvfp4_pack ? 0.25 - : native_pack ? (pcie_share_gfx12_default() && !pf_old ? 0.15 : 0.55) : 0.2; + const double base = strata::pcie_start_frac(nvfp4_pack, native_pack, pcie_share_gfx12_default(), pf_old, strata::qwen_defaults_026()); std::string bursts; #if !defined(STRATA_USE_HIP) && defined(_WIN32) // Windows: opt-in (STRATA_PCIE_AUTO_CANON=1); an RTX 5070 decoded a short Q2_0 answer 3% slower with it, code 2.5% faster @@ -4095,7 +4095,7 @@ int main(int argc, char** argv) { if (pio.mode == strata::kernels::PleIo::Direct && !o.ple_io_explicit) { const strata::kernels::PleIoOptions direct_pio = pio; const char* auto_ram = std::getenv("STRATA_PLE_AUTO_RAM"); - const bool allowed = auto_ram == nullptr || std::atoi(auto_ram) != 0; + const bool allowed = strata::core::ple_auto_ram_allowed(auto_ram, strata::qwen_defaults_026()); const uint64_t need = ple_table.table_bytes(); const auto available = strata::core::available_host_bytes(); uint64_t experts_ram = 0; // every routed expert's blob, the arena the engine copies into RAM at start diff --git a/tests/dsv41/experts_rule_test.cpp b/tests/dsv41/experts_rule_test.cpp index 6fb5a1d8..895df7f0 100644 --- a/tests/dsv41/experts_rule_test.cpp +++ b/tests/dsv41/experts_rule_test.cpp @@ -215,6 +215,98 @@ int main() { // a 192 GB Windows PC with a 4 GB page file: 150 GB free RAM but only 100 GB of commit room: no CHECK_EQ(copy_all_fits(108 * GB, (uint64_t) (150 * GB), margin, 100 * GB), 0); } + // ---- DS4_DEFAULTS=026: every rule gives v0.2.6's answer (the last argument v026 = true); an explicit variable / flag still wins; the six old + // DS4_*=0 switches keep working with v026 = false + { + using namespace strata::ds4; + const double GB = 1e9; + CHECK_EQ(is_026_token("026"), 1); + CHECK_EQ(is_026_token("0.2.6"), 1); + CHECK_EQ(is_026_token("v0.2.6"), 1); + CHECK_EQ(is_026_token("0"), 0); + CHECK_EQ(is_026_token(""), 0); + CHECK_EQ(is_026_token("027"), 0); + CHECK_EQ(is_026_token(nullptr), 0); + // the 5-experts default: 4 x R9700 goes back to 6; a small card and an integrated GPU were Faster in 0.2.6 already; --experts wins + CHECK_EQ(experts_per_word(-1, 4 * 32 * GiB, 6, false, true, true), 6); + CHECK_EQ(experts_per_word(-1, 4 * 32 * GiB, 6, false, true, false), 5); + CHECK_EQ(experts_per_word(-1, 12 * GiB, 6, false, false, true), 5); + CHECK_EQ(experts_per_word(-1, 91 * GiB, 6, true, false, true), 5); + CHECK_EQ(experts_per_word(5, 4 * 32 * GiB, 6, false, true, true), 5); + // the chunk rule: the multi-card tp run loses the 1024; a --tp 1 run keeps it (0.2.6 had it); an explicit --prefill-chunk is not this rule + CHECK_EQ(prefill_chunk_default(false, 0.86, false, true, true, 32 * GiB, 8192, true, true), 8192); + CHECK_EQ(prefill_chunk_default(false, 0.86, false, true, true, 32 * GiB, 8192, true, false), 1024); + CHECK_EQ(prefill_chunk_default(true, 0.86, false, true, true, 32 * GiB, 8192, true, true), 1024); + CHECK_EQ(prefill_chunk_default(false, 0.30, false, false, false, 24 * GiB, 8192, true, true), 2048); + // the slab: the base 8 MB everywhere, no growth, no whole-chunk slab; DS4_ATTN_SLAB=N (env N) and =0 still do what they say + CHECK_EQ(attn_slab_base_mb(true, 0, true), 8); + CHECK_EQ(attn_slab_base_mb(true, 0, false), 32); + CHECK_EQ(attn_slab_base_mb(false, 0, false), 8); + CHECK_EQ(attn_slab_base_mb(false, 0, true), 8); + CHECK_EQ(attn_slab_base_mb(true, 16, true), 16); // STRATA_DS4_A_MB wins + CHECK_EQ(attn_slab_rows(-1, 8192, 256, 1e18, 377000.0, 1.0, true), 256); // spare room: the 0.2.6 slab + CHECK_EQ(attn_slab_rows(-1, 1024, 256, -5.0e9, 377000.0, 0.77, true), 256); // the 4 x R9700 whole-chunk slab: off + CHECK_EQ(attn_slab_rows(1024, 1024, 256, -5.0e9, 377000.0, 0.77, true), 1024); // DS4_ATTN_SLAB=1024 wins + CHECK_EQ(attn_slab_rows(0, 8192, 256, 1e18, 377000.0, 1.0, true), 256); + CHECK_EQ(attn_slab_rows(0, 8192, 256, 1e18, 377000.0, 1.0, false), 256); // the old DS4_ATTN_SLAB=0 switch + // the staging ring: 16 MB where the cards hold the experts (>= 1/1.3), a fixed 400 MB below, whatever the platform + CHECK_EQ(staging_ring_mb(0.86, 4 * 30 * GB, 4, false, true, true), 16); + CHECK_EQ(staging_ring_mb(0.77, 4 * 31 * GB, 4, false, true, true), 16); + CHECK_EQ(staging_ring_mb(0.72, 4 * 31 * GB, 4, false, true, true), 400); + CHECK_EQ(staging_ring_mb(0.06, 10 * GB, 1, false, false, true), 400); + CHECK_EQ(staging_ring_mb(0.30, 18.75 * GB, 1, true, false, true), 400); // Strix Halo: not 1200 + CHECK_EQ(staging_ring_mb(0.0, 0.0, 0, false, false, true), 400); + // the pinned copy and the huge-page arena: opt-in again; =1 / =0 win + CHECK_EQ(copy_pin_default(-1, true, true, 0.8, true, true), 0); + CHECK_EQ(copy_pin_default(-1, true, true, 0.8, true, false), 1); + CHECK_EQ(copy_pin_default(1, false, false, 0.0, false, true), 1); + CHECK_EQ(copy_pin_default(0, true, true, 0.8, true, false), 0); // the old DS4_COPY_PIN=0 + CHECK_EQ(copy_pin_default(-1, false, true, 0.5, true, false), 1); + CHECK_EQ(copy_pin_default(-1, false, true, 0.49, true, false), 0); + CHECK_EQ(copy_pin_default(-1, false, false, 0.9, true, false), 0); + CHECK_EQ(copy_pin_default(-1, true, false, 0.0, false, false), 0); // nothing to pin + CHECK_EQ(copy_hugetlb_default(-1, 120 * GB, 100 * GB, true), 0); + CHECK_EQ(copy_hugetlb_default(-1, 120 * GB, 100 * GB, false), 1); + CHECK_EQ(copy_hugetlb_default(-1, 90 * GB, 100 * GB, false), 0); + CHECK_EQ(copy_hugetlb_default(1, 0.0, 100 * GB, true), 1); + CHECK_EQ(copy_hugetlb_default(0, 120 * GB, 100 * GB, false), 0); // the old DS4_COPY_HUGETLB=0 + // the matrix-core attention: opt-in again + CHECK_EQ(fast_attn_default(-1, true, true), 0); + CHECK_EQ(fast_attn_default(-1, true, false), 1); + CHECK_EQ(fast_attn_default(-1, false, false), 0); + CHECK_EQ(fast_attn_default(1, false, true), 1); + CHECK_EQ(fast_attn_default(0, true, false), 0); // the old DS4_FAST_ATTN=0 + // the drafter's cumulative cut: 0 again; STRATA_DS4_DSPARK_CUM wins + CHECK_EQ((int) (dspark_cum_value(false, 0.0f, true, true) * 100), 0); + CHECK_EQ((int) (dspark_cum_value(false, 0.0f, true, false) * 100), 50); + CHECK_EQ((int) (dspark_cum_value(false, 0.0f, false, false) * 100), 0); + CHECK_EQ((int) (dspark_cum_value(true, 0.7f, true, true) * 100), 70); + CHECK_EQ((int) (dspark_cum_value(true, 0.0f, true, false) * 100), 0); + // the store: spare slots and put off, the post-prompt settle back on (and without the copy-mode skip); the old =0 switches keep working + CHECK_EQ(store_feature_default(-1, true), 0); + CHECK_EQ(store_feature_default(-1, false), 1); + CHECK_EQ(store_feature_default(1, true), 1); + CHECK_EQ(store_feature_default(0, false), 0); // the old DS4_STORE_SPARE=0 / DS4_STORE_PUT=0 + CHECK_EQ((int) settle_store_default(true), 1); + CHECK_EQ((int) settle_store_default(false), 0); + CHECK_EQ(settle_skips_copy_experts(true), 0); + CHECK_EQ(settle_skips_copy_experts(false), 1); + // the dense dequantizer, the head, the drafter's markov head, the F16 operand, the RDNA3 GEMM + CHECK_EQ(dq_old_default(-1, false, true), 1); + CHECK_EQ(dq_old_default(-1, false, false), 0); + CHECK_EQ(dq_old_default(-1, true, false), 1); + CHECK_EQ(dq_old_default(0, true, true), 0); // DS4_DQ_OLD=0 wins + CHECK_EQ(head_per_default(true), 4); + CHECK_EQ(head_per_default(false), 8); + CHECK_EQ(markov_head_q8_default(true), 0); + CHECK_EQ(markov_head_q8_default(false), 1); + CHECK_EQ(gate_up_x16_default(true), 0); + CHECK_EQ(gate_up_x16_default(false), 1); + CHECK_EQ(dense_pfgemm_default(-1, true), 0); + CHECK_EQ(dense_pfgemm_default(-1, false), 1); + CHECK_EQ(dense_pfgemm_default(1, true), 1); + CHECK_EQ(dense_pfgemm_default(0, false), 0); + } if (fails == 0) std::printf("experts rule: all checks passed\n"); return fails == 0 ? 0 : 1; } From 9db497056b0c1857f6ece0e1c5b0284d5444cf16 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 19:14:00 +0100 Subject: [PATCH 41/52] docs: the two master switches in the 0.2.7 release-notes draft --- docs/release-notes-0.2.7.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/release-notes-0.2.7.md b/docs/release-notes-0.2.7.md index de029522..6e806ade 100644 --- a/docs/release-notes-0.2.7.md +++ b/docs/release-notes-0.2.7.md @@ -24,6 +24,23 @@ decode on the RTX PRO 5000 with identical tokens**, about +1.5% together with the switch above. On 2x RTX A4000 and the RTX 3060 it was slower, so those cards keep the old read. Off switch: `STRATA_GR_V3=0`. +## Going back to 0.2.6 + +Two switches bring back every default that 0.2.7 changed, in one step, for a test or for a PC where something looks wrong. The app's +"off" for its speed switches sends them. + +- **`DS4_DEFAULTS=026`** (DeepSeek): the staging ring, the prompt chunk rule, the attention slab (its base and its growth), the pinned + copy and the huge-page arena, the matrix-core attention, the drafter's cumulative cut, the 5-experts default on several Radeon cards, + the RAM store's spare slots and put and its settle after a prompt, the dense dequantizer, the F16 gate/up operand, the drafter's + markov head and the head's column count, and the RDNA3 dense GEMM all go back to what 0.2.6 did. +- **`STRATA_DEFAULTS=026`** (Qwen): the residency-biased routing, the wide and the stream-split hyper-connection reads, the int8 + prompt attention, the four gfx12 decode switches, the PLE residency policy and the gfx12 decode split of 0.15 (back to 0.55). + Long prompts on the approximate read (`STRATA_KVA`) are off by default and stay as `STRATA_KVA` says. + +A variable or flag you set yourself (`DS4_ATTN_SLAB=N`, `STRATA_ROUTE_PRIOR=2`, `--experts 5`, `--prefill-chunk N`, `--pcie-frac`, +`--ple-io`) still wins over the switch. The older single switches (`DS4_FAST_ATTN=0`, `DS4_ATTN_SLAB=0`, `DS4_COPY_PIN=0`, +`DS4_COPY_HUGETLB=0`, `DS4_STORE_SPARE=0`, `DS4_STORE_PUT=0`, `STRATA_ROUTE_PRIOR=0`, ...) work as before. + ## What is faster if your PC is set up for it These need no engine change; they are settings. Each was measured on the same boxes. From ad1a310f55778eb816c4866c3c3fdee6a55c18be Mon Sep 17 00:00:00 2001 From: Matthias Nott <2168313+mnott@users.noreply.github.com> Date: Mon, 26 Oct 2026 19:40:00 +0100 Subject: [PATCH 42/52] Web page: use wide windows and fit narrow screens (#3176) The chat, About and Monitor columns grow with the window (the chat and the composer to 1100 px, About to 1100 px, Monitor to 1920 px), the metric cards wrap with auto-fit, and under 640 / 560 / 480 px the controls get bigger touch targets, the composer bar wraps, and long words, code and tables stay inside the viewport. Ported by hand from PR #3176 by Matthias Nott (mnott); the CSS is his. --- serve/web/app.css | 48 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/serve/web/app.css b/serve/web/app.css index f9bad8cc..1191b041 100644 --- a/serve/web/app.css +++ b/serve/web/app.css @@ -15,12 +15,12 @@ main { flex: 1; min-height: 0; display: flex; } /* ---------------------------------------------------------------- chat */ .chat-scroll { flex: 1; min-height: 0; overflow-y: auto; } -.chat { max-width: 860px; margin: 0 auto; padding: var(--st-s-8) var(--st-s-6) var(--st-s-6); display: flex; +.chat { max-width: min(100%, 1100px); margin: 0 auto; padding: var(--st-s-8) var(--st-s-6) var(--st-s-6); display: flex; flex-direction: column; gap: var(--st-s-6); } .chat-empty { margin: 12vh auto 0; text-align: center; } .chat-empty__title { font-weight: var(--st-fw-black); font-size: var(--st-fs-display); line-height: var(--st-lh-tight); letter-spacing: -.02em; } -.chat-empty__sub { margin-top: var(--st-s-3); color: var(--st-ink-muted); } +.chat-empty__sub { overflow-wrap: anywhere; margin-top: var(--st-s-3); color: var(--st-ink-muted); } .st-msg { width: 100%; } .st-msg--assistant { align-self: flex-start; } .st-msg--assistant .st-bubble { width: 100%; overflow-wrap: anywhere; } @@ -44,6 +44,7 @@ main { flex: 1; min-height: 0; display: flex; } .msg-images img { max-width: 220px; max-height: 180px; border-radius: var(--st-r-md); border: 1px solid var(--st-line); } .st-msg .st-collapse { width: 100%; } .st-collapse__body.thinking { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; } +.st-msg { min-width: 0; } .st-msg__meta .st-btn--icon { width: 28px; height: 28px; } .st-msg__meta .st-btn--icon .st-icon { width: 16px; height: 16px; } .cursor::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -3px; @@ -66,7 +67,7 @@ main { flex: 1; min-height: 0; display: flex; } border: 1px solid var(--st-line-soft); border-radius: var(--st-r-sm); } .composer-wrap { flex: none; padding: 0 var(--st-s-6) var(--st-s-6); } -.st-composer { max-width: 860px; margin: 0 auto; } +.st-composer { max-width: min(100%, 1100px); margin: 0 auto; } .st-composer textarea { max-height: 40vh; } .st-btn--send { width: 42px; padding: 0; } .composer-hint { font-size: var(--st-fs-xs); color: var(--st-ink-muted); margin-right: var(--st-s-2); font-variant-numeric: tabular-nums; } @@ -79,16 +80,17 @@ main { flex: 1; min-height: 0; display: flex; } /* ---------------------------------------------------------------- monitor */ .view--monitor, .view--about { overflow-y: auto; } -.monitor, .about { max-width: 1240px; width: 100%; margin: 0 auto; padding: var(--st-s-6); display: flex; flex-direction: column; +.monitor, .about { max-width: min(100%, 1920px); width: 100%; margin: 0 auto; padding: var(--st-s-6); display: flex; flex-direction: column; gap: var(--st-s-5); } .state-card { display: flex; flex-direction: column; gap: var(--st-s-3); } .state-card__head { display: flex; align-items: center; gap: var(--st-s-4); flex-wrap: wrap; } +.state-card, .metric-card, .req-card, .ctx-card, .cc-card, .mcp-card { min-width: 0; } .badges { display: flex; gap: var(--st-s-2); flex-wrap: wrap; } .badges .st-badge { opacity: .38; transition: opacity var(--st-dur); } .badges .st-badge.on { opacity: 1; } .state-card__row { display: flex; justify-content: space-between; gap: var(--st-s-4); font-size: var(--st-fs-sm); font-weight: var(--st-fw-medium); font-variant-numeric: tabular-nums; } -.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--st-s-4); } +.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--st-s-4); } .metric-card { padding: var(--st-s-4) var(--st-s-5); } .st-metric__value small { font-size: var(--st-fs-md); font-weight: var(--st-fw-medium); color: var(--st-ink-muted); margin-left: 4px; } .st-metric__sub { font-size: var(--st-fs-xs); color: var(--st-ink-muted); font-variant-numeric: tabular-nums; min-height: 1em; } @@ -100,10 +102,10 @@ main { flex: 1; min-height: 0; display: flex; } .st-metric__spark .speed-prefill { color: color-mix(in srgb, var(--st-accent) 65%, black); } .st-metric__spark[data-tone="warn"] { color: var(--st-warn); } .st-metric__spark[data-tone="info"] { color: var(--st-info); } -.monitor-row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr); gap: var(--st-s-4); } +.monitor-row { display: grid; grid-template-columns: minmax(min(260px, 100%), 1fr) minmax(0, 2.4fr); gap: var(--st-s-4); } .ctx-card { display: flex; flex-direction: column; gap: var(--st-s-2); } -.ctx-gauge { position: relative; width: 150px; height: 150px; margin: var(--st-s-2) auto var(--st-s-3); } -.ctx-gauge .st-gauge { width: 150px; height: 150px; } +.ctx-gauge { position: relative; width: 150px; max-width: 100%; aspect-ratio: 1; height: auto; margin: var(--st-s-2) auto var(--st-s-3); } +.ctx-gauge .st-gauge { width: 100%; height: 100%; } .ctx-gauge .st-gauge__fill { transition: stroke-dasharray 400ms var(--st-ease); } .ctx-gauge__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: var(--st-fs-xs); } @@ -128,9 +130,9 @@ main { flex: 1; min-height: 0; display: flex; } .cc-note { margin: 0; } .cc-note:empty { display: none; } .mcp-card { display: flex; flex-direction: column; gap: var(--st-s-3); } -.cfg-form { display: grid; grid-template-columns: minmax(0, max-content) minmax(180px, 1fr); gap: var(--st-s-3) var(--st-s-4); +.cfg-form { display: grid; grid-template-columns: minmax(min(180px, 100%), max-content) minmax(0, 1fr); gap: var(--st-s-3) var(--st-s-4); align-items: center; } -.cfg-form label { font-size: var(--st-fs-sm); font-weight: var(--st-fw-medium); overflow-wrap: anywhere; } +.cfg-form label { overflow-wrap: anywhere; font-size: var(--st-fs-sm); font-weight: var(--st-fw-medium); } .cfg-form label code { font: 400 12px var(--st-font-mono); color: var(--st-ink-muted); display: block; } .cfg-form .st-input { height: 38px; width: 100%; max-width: 360px; min-width: 0; } .cfg-actions { display: flex; align-items: center; gap: var(--st-s-3); } @@ -142,7 +144,7 @@ main { flex: 1; min-height: 0; display: flex; } .mcp-note { margin: 0; } /* ---------------------------------------------------------------- about */ -.about { max-width: 860px; } +.about { max-width: min(100%, 1100px); } .about .st-card { display: flex; flex-direction: column; gap: var(--st-s-3); } .about p { margin: 0; } .facts { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 10px var(--st-s-6); margin: 0; font-size: var(--st-fs-md); } @@ -172,11 +174,13 @@ main { flex: 1; min-height: 0; display: flex; } /* ---------------------------------------------------------------- narrow screens */ @media (max-width: 1000px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } - .monitor-row { grid-template-columns: 1fr; } .cc-bars { grid-template-columns: 1fr; } .cfg-form { grid-template-columns: 1fr; gap: 4px; } .cfg-form .st-input { margin-bottom: var(--st-s-2); } } +@media (max-width: 900px) { + .monitor-row { grid-template-columns: minmax(0, 1fr); } +} @media (max-width: 640px) { .st-header { padding: 0 var(--st-s-3); gap: var(--st-s-2); } .st-header .st-tabs { margin-left: 0; } @@ -188,6 +192,26 @@ main { flex: 1; min-height: 0; display: flex; } .monitor, .about { padding: var(--st-s-4); } .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: var(--st-s-2); } + .cfg-form .st-input { max-width: none; } + .st-btn, .st-input, .seg button, .st-tab { min-height: 40px; } + .st-btn--icon, .st-composer__bar .st-btn--icon { width: 40px; height: 40px; } + .st-btn--send { width: 44px; } + .st-msg__meta .st-btn--icon, .facts .st-btn--icon { width: 40px; height: 40px; } + .st-composer__bar { flex-wrap: wrap; } + .tool-call__pre, .st-code pre, .table-wrap { max-width: 100%; } +} +@media (max-width: 560px) { + .metrics { grid-template-columns: minmax(0, 1fr); } +} +@media (max-width: 480px) { + .st-header { padding: 0 var(--st-s-2); gap: 6px; } + .st-header__brand { font-size: var(--st-fs-md); } + .st-tabs { gap: 2px; padding: 3px; } + .st-tab { padding: 0 8px; } + .composer-hint { display: none; } + .chat { padding: var(--st-s-4) var(--st-s-3); } + .monitor, .about { padding: var(--st-s-3); } + .st-bubble { padding: 10px 12px; } } /* Images tab (POST /v1/images/generations) */ .img-form{display:flex;flex-direction:column;gap:12px} From d5cca319c96287b4aaa5b2fb4e197f87f2b9790a Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 19:52:26 +0100 Subject: [PATCH 43/52] Web page: a translation mechanism, and a language choice in About > Settings The served page had no way to translate its text: every string was English in the HTML and the script. Now the English text stays in the code next to a key (tr("key", "text", vars), data-i18n="key" in the HTML), a language is a catalog serve/web/locales/.json, and a catalog that is missing or has no entry for a key leaves the English text. The language is the user's choice (About > Settings), kept in this browser; nothing is chosen from the browser's language, because a page translated in part would mix two languages. /?lang=de shows one for a visit. The server hands out /web/locales/.json and /web/vendor/katex/** from serve/webfiles.py: whitelisted names and types, no backslash, colon, percent or dot-dot, and the resolved path must stay inside the folder (also against a link out of it). tools/web_i18n.py reads the English text out of the code, writes en.json and checks every catalog for the same keys and {placeholders}; the check runs once the catalogs exist. --- serve/server.py | 16 ++++ serve/test_web_i18n.js | 92 +++++++++++++++++++ serve/test_web_i18n.py | 108 ++++++++++++++++++++++ serve/web/app.js | 35 +++++-- serve/web/i18n.js | 77 ++++++++++++++++ serve/web/index.html | 6 ++ serve/webfiles.py | 35 +++++++ tools/web_i18n.py | 203 +++++++++++++++++++++++++++++++++++++++++ 8 files changed, 565 insertions(+), 7 deletions(-) create mode 100644 serve/test_web_i18n.js create mode 100644 serve/test_web_i18n.py create mode 100644 serve/web/i18n.js create mode 100644 serve/webfiles.py create mode 100644 tools/web_i18n.py diff --git a/serve/server.py b/serve/server.py index 76b5a2c7..ad0e10a9 100644 --- a/serve/server.py +++ b/serve/server.py @@ -65,6 +65,7 @@ from serve.frontend import (THINK_END, ChatTemplate, Event, OutputParser, anthro tool_choice_of, unmark_think_literals) from serve.mcp import McpCancelled, hub_from_config # noqa: E402 from serve import runconfig # noqa: E402 +from serve.webfiles import subtree_file as web_subtree_file # noqa: E402 from strata_control import engine_component # noqa: E402 from strata_control import tls # noqa: E402 @@ -6387,6 +6388,21 @@ def make_handler(svc: Service): self.end_headers() self.wfile.write(body) return + sub = web_subtree_file(path) + if path.startswith(("/web/locales/", "/web/vendor/")): + # the page's translations (serve/web/locales/.json) and the vendored KaTeX (serve/web/vendor): + # only whitelisted names and types, never a path out of those folders + if sub is None: + self._json(404, {"error": {"message": "not found"}}) + return + body = sub[0].read_bytes() + self.send_response(200) + self.send_header("Content-Type", sub[1]) + self.send_header("Cache-Control", "no-cache") + self.send_header("Content-Length", str(len(body))) + self.end_headers() + self.wfile.write(body) + return if path.startswith("/web/"): # the web app's own files (serve/web): styles, script, icon sprite - same origin, no CDN name = path[len("/web/"):] diff --git a/serve/test_web_i18n.js b/serve/test_web_i18n.js new file mode 100644 index 00000000..a712f6e7 --- /dev/null +++ b/serve/test_web_i18n.js @@ -0,0 +1,92 @@ +// The web page's translation mechanism (serve/web/i18n.js), run in Node with a small stub of the DOM and fetch. +// node serve/test_web_i18n.js (serve/test_web_i18n.py runs it too and skips when node is missing) +"use strict"; +const assert = require("node:assert/strict"); +const path = require("node:path"); + +// a page element that holds data-i18n marks and keeps its attributes +class El { + constructor(attrs, text = "") { this.attrs = {...attrs}; this.textContent = text; this.dataset = {}; } + getAttribute(k) { return k in this.attrs ? this.attrs[k] : null; } + setAttribute(k, v) { this.attrs[k] = String(v); } +} +const marks = [ + new El({"data-i18n": "a.text"}, "Rewind to here"), + new El({"data-i18n-title": "a.title", title: "Light / dark"}), + new El({"data-i18n-label": "a.label", "aria-label": "Send"}), + new El({"data-i18n-placeholder": "a.hint", placeholder: "Ask anything…"}), +]; +globalThis.document = { + documentElement: {lang: "en"}, + querySelectorAll: (sel) => marks.filter((e) => sel.slice(1, -1) in e.attrs), +}; +const catalogs = { + de: {"a.text": "Hierher zurückspulen", "a.title": "Hell / Dunkel", "chat.hidden": {one: "{n} Nachricht ausgeblendet", other: "{n} Nachrichten ausgeblendet"}}, + ru: {"chat.hidden": {one: "{n} сообщение скрыто", few: "{n} сообщения скрыто", many: "{n} сообщений скрыто", other: "{n} сообщения скрыто"}}, + ja: {"chat.hidden": {other: "{n} 件のメッセージを非表示"}}, +}; +let fetched = []; +globalThis.fetch = async (url) => { + fetched.push(url); + const m = /web\/locales\/([\w-]+)\.json$/.exec(url); + if (m && catalogs[m[1]]) return {ok: true, json: async () => catalogs[m[1]]}; + if (m && m[1] === "zh") return {ok: true, json: async () => ["not", "an", "object"]}; + if (m && m[1] === "es") throw new Error("offline"); + return {ok: false, json: async () => { throw new Error("404"); }}; +}; +const i18n = require(path.join(__dirname, "web", "i18n.js")); +const {tr} = i18n; +const plural = {one: "{n} message hidden", other: "{n} messages hidden"}; + +(async () => { + // English: the text in the code, with its {placeholders}; a key with no text shows the key rather than nothing + assert.equal(tr("x.y", "Hello {name}", {name: "Ada"}), "Hello Ada"); + assert.equal(tr("x.y", "Hello {name}"), "Hello {name}", "an unknown placeholder stays visible"); + assert.equal(tr("chat.hidden", plural, {n: 1}), "1 message hidden"); + assert.equal(tr("chat.hidden", plural, {n: 3}), "3 messages hidden"); + assert.equal(tr("x.y", undefined), "x.y"); + assert.equal(globalThis.tr, tr, "tr is global for app.js"); + i18n.apply(); + assert.equal(marks[0].textContent, "Rewind to here", "English leaves the marked text alone"); + + // a catalog replaces the text; a key it does not have falls back to the English text in the code + assert.equal(await i18n.setLanguage("de"), "de"); + assert.equal(document.documentElement.lang, "de"); + assert.equal(marks[0].textContent, "Hierher zurückspulen"); + assert.equal(marks[1].attrs.title, "Hell / Dunkel"); + assert.equal(marks[2].attrs["aria-label"], "Send", "no German text for this key: English stays"); + assert.equal(tr("chat.hidden", plural, {n: 1}), "1 Nachricht ausgeblendet"); + assert.equal(tr("chat.hidden", plural, {n: 2}), "2 Nachrichten ausgeblendet"); + assert.equal(tr("only.english", "Only English"), "Only English"); + + // plural forms of the language: Russian has few and many, Japanese only other + await i18n.setLanguage("ru"); + assert.deepEqual([1, 2, 5, 21, 22].map((n) => tr("chat.hidden", plural, {n})), + ["1 сообщение скрыто", "2 сообщения скрыто", "5 сообщений скрыто", "21 сообщение скрыто", "22 сообщения скрыто"]); + await i18n.setLanguage("ja"); + assert.equal(tr("chat.hidden", plural, {n: 1}), "1 件のメッセージを非表示"); + + // switching back restores the English text that was in the page + await i18n.setLanguage("de"); + await i18n.setLanguage("en"); + assert.equal(marks[0].textContent, "Rewind to here"); + assert.equal(marks[1].attrs.title, "Light / dark"); + assert.equal(marks[3].attrs.placeholder, "Ask anything…"); + assert.equal(document.documentElement.lang, "en"); + + // a language that is not offered, a catalog that is not an object, one that cannot be fetched, a missing file: + // all stay English, and never throw + fetched = []; + assert.equal(await i18n.setLanguage("xx"), "en"); + assert.deepEqual(fetched, [], "an unknown code is not even requested"); + assert.equal(await i18n.setLanguage("zh"), "en"); + assert.equal(await i18n.setLanguage("es"), "en"); + assert.equal(await i18n.setLanguage("fr"), "en", "French is not in LANGUAGES yet"); + assert.equal(await i18n.setLanguage("ko"), "en", "the file does not exist in this test"); + assert.equal(tr("chat.hidden", plural, {n: 3}), "3 messages hidden"); + + // the list: English first, every entry [code, own name] + assert.equal(i18n.LANGUAGES[0][0], "en"); + for (const [code, name] of i18n.LANGUAGES) assert.ok(/^[a-z]{2,3}(-[A-Z]{2})?$/.test(code) && name, code); + console.log("ok web i18n"); +})().catch((e) => { console.error(e); process.exitCode = 1; }); diff --git a/serve/test_web_i18n.py b/serve/test_web_i18n.py new file mode 100644 index 00000000..52853373 --- /dev/null +++ b/serve/test_web_i18n.py @@ -0,0 +1,108 @@ +"""The web page's translations: the mechanism (node, serve/test_web_i18n.js), the files the server hands out for it +(serve/web/locales, serve/web/vendor), and the catalogs against the text in the code (tools/web_i18n.py).""" +from __future__ import annotations + +import shutil +import subprocess +import sys +import unittest +import urllib.error +import urllib.request +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / "tools")) + +import web_i18n # noqa: E402 +from serve.frontend import ChatTemplate # noqa: E402 +from serve.server import ByteTokenizer, MockEngine, Service, serve # noqa: E402 +from serve.webfiles import subtree_file # noqa: E402 + + +def run_node(script: str, *args: str) -> None: + result = subprocess.run([shutil.which("node"), str(Path(__file__).with_name(script)), *args], + capture_output=True, text=True, timeout=60) + if result.returncode: + raise AssertionError((result.stdout + result.stderr).strip()) + + +@unittest.skipUnless(shutil.which("node"), "node is not installed") +class Mechanism(unittest.TestCase): + def test_tr_apply_and_set_language(self): + run_node("test_web_i18n.js") + + +class WhatTheServerHandsOut(unittest.TestCase): + """/web/locales and /web/vendor: whitelisted names and types, nothing outside those folders.""" + + def test_names_and_types(self): + web = Path(__file__).parent / "web" + locales = web / "locales" + if (locales / "de.json").is_file(): + self.assertEqual(subtree_file("/web/locales/de.json")[1], "application/json; charset=utf-8") + for bad in ("/web/locales/de.js", "/web/locales/DE.json", "/web/locales/../app.js", "/web/locales/x/y.json", + "/web/locales/%2e%2e%2fapp.json", "/web/locales/de.json%00.js", "/web/locales/missing.json", + "/web/locales/C:\\x.json", "/web/vendor/katex/../../app.js", "/web/vendor/katex/dist/katex.min.js.map", + "/web/vendor/other/dist/katex.min.js", "/web/vendor/katex/dist/fonts/x.ttf", "/web/vendor/katex/dist/"): + with self.subTest(bad=bad): + self.assertIsNone(subtree_file(bad)) + + def test_a_link_out_of_the_folder_is_refused(self): + import tempfile + with tempfile.TemporaryDirectory() as d: + web = Path(d) / "web" + (web / "vendor" / "katex").mkdir(parents=True) + (web / "locales").mkdir() + (web / "secret.js").write_text("secret") + (web / "vendor" / "katex" / "ok.js").write_text("ok") + self.assertEqual(subtree_file("/web/vendor/katex/ok.js", web)[1], "text/javascript; charset=utf-8") + try: + (web / "vendor" / "katex" / "link.js").symlink_to(web / "secret.js") + except (OSError, NotImplementedError): + self.skipTest("symlinks need a privilege here") + self.assertIsNone(subtree_file("/web/vendor/katex/link.js", web)) + + +class Served(unittest.TestCase): + @classmethod + def setUpClass(cls): + tok = ByteTokenizer() + cls.svc = Service(MockEngine(tok, "ok"), tok, ChatTemplate(ROOT / "serve" / "chat_template.jinja")) + cls.httpd = serve(cls.svc, port=0) + cls.base = f"http://127.0.0.1:{cls.httpd.server_address[1]}" + + @classmethod + def tearDownClass(cls): + cls.httpd.shutdown() + cls.httpd.server_close() + + def get(self, path): + try: + with urllib.request.urlopen(self.base + path, timeout=10) as r: + return r.status, r.headers.get("Content-Type", ""), r.read() + except urllib.error.HTTPError as e: + return e.code, e.headers.get("Content-Type", ""), e.read() + + def test_i18n_script_and_refusals(self): + code, ctype, body = self.get("/web/i18n.js") + self.assertEqual(code, 200) + self.assertIn(b"StrataI18n", body) + for path in ("/web/locales/../server.py", "/web/locales/nope.json", "/web/vendor/katex/../../app.js", + "/web/vendor/katex/dist/missing.js", "/web/locales/de.json%00"): + with self.subTest(path=path): + self.assertEqual(self.get(path)[0], 404) + + +@unittest.skipUnless((Path(__file__).parent / "web" / "locales" / "en.json").is_file(), "no catalogs yet") +class Catalogs(unittest.TestCase): + """Every language in serve/web/i18n.js has a catalog with exactly the keys and {placeholders} of the code.""" + + def test_the_text_in_the_code_is_plain_literals(self): + self.assertTrue(web_i18n.english()) + + def test_catalogs_are_complete(self): + self.assertEqual(web_i18n.check(), []) + + +if __name__ == "__main__": + unittest.main() diff --git a/serve/web/app.js b/serve/web/app.js index ac84f85d..b3448d92 100644 --- a/serve/web/app.js +++ b/serve/web/app.js @@ -1096,14 +1096,35 @@ $("drawer-close").onclick = () => openDrawer(false); $("scrim").onclick = () => openDrawer(false); document.addEventListener("keydown", (e) => { if (e.key === "Escape" && $("drawer").dataset.open === "true") openDrawer(false); }); +// ------------------------------------------------------------------ language (serve/web/i18n.js) +// The user's own choice, kept in this browser: English until they pick another. /?lang=de shows one for this visit only. +const urlLang = new URLSearchParams(location.search).get("lang"); +$("lang").innerHTML = StrataI18n.LANGUAGES.map(([code, name]) => ``).join(""); +function showLanguage() { + $("lang").value = StrataI18n.lang; + renderChat(); + setBusy(!!busy); + if (lastMetrics) render(lastMetrics); +} +$("lang").onchange = async () => { + store.set("lang", $("lang").value); + await StrataI18n.setLanguage($("lang").value); + showLanguage(); +}; + // ------------------------------------------------------------------ start -setBusy(false); -renderChat(); -const startQuestion = new URLSearchParams(location.search).get("q"); // /?q=... starts a chat (a shortcut) -if (startQuestion) history.replaceState(null, "", location.pathname + location.hash); -loadHealth().then(loadMcp).then(() => { if (startQuestion) { $("input").value = startQuestion; send(); } }); -showTab(location.hash.slice(1) || "chat"); -poll(); +async function start() { + await StrataI18n.setLanguage(urlLang || store.get("lang", "en")); + $("lang").value = StrataI18n.lang; + setBusy(false); + renderChat(); + const startQuestion = new URLSearchParams(location.search).get("q"); // /?q=... starts a chat (a shortcut) + if (startQuestion) history.replaceState(null, "", location.pathname + location.hash); + loadHealth().then(loadMcp).then(() => { if (startQuestion) { $("input").value = startQuestion; send(); } }); + showTab(location.hash.slice(1) || "chat"); + poll(); +} +start(); // ------------------------------------------------------------------ images (POST /v1/images/generations) $("img-form").onsubmit = async (ev) => { diff --git a/serve/web/i18n.js b/serve/web/i18n.js new file mode 100644 index 00000000..81defdbb --- /dev/null +++ b/serve/web/i18n.js @@ -0,0 +1,77 @@ +// serve/web/i18n.js - the web page's translations. +// +// The English text sits in the code, next to the key: tr("chat.rewind", "Rewind to here") and +// tr("chat.hidden", {one: "{n} message hidden", other: "{n} messages hidden"}, {n: 3}). Static page text is marked +// data-i18n="key" (also data-i18n-title, data-i18n-label, data-i18n-placeholder) and holds its English text in the HTML. +// So the page reads fine with no catalog at all. Every other language is a catalog, serve/web/locales/.json +// (a flat {"key": "text"} object; a plural is {"one": "...", "other": "..."}, the CLDR names of the language). +// serve/test_web_i18n.py keeps the catalogs complete: same keys as the English text in the code, same {placeholders}. +// +// The language is the user's choice (About > Settings), kept in this browser. Nothing is chosen for them from the +// browser's language: a page that is translated in part would mix two languages. +"use strict"; +(function (root) { + // [code, the language's own name]. A new language is a locales/.json file plus one line here. + const LANGUAGES = [["en", "English"], ["de", "Deutsch"], ["es", "Español"], ["ja", "日本語"], ["ko", "한국어"], + ["pt", "Português"], ["ru", "Русский"], ["zh", "中文"]]; + let lang = "en", catalog = null, rules = null; + + const fill = (s, vars) => String(s).replace(/\{(\w+)\}/g, (m, k) => (vars && k in vars ? String(vars[k]) : m)); + function pick(entry, vars) { + if (entry && typeof entry === "object") { + const n = vars && vars.n != null ? Number(vars.n) : 1; + let cat = "other"; + try { cat = (rules || new Intl.PluralRules(lang === "en" ? "en" : lang)).select(n); } catch (e) { /* other */ } + return entry[cat] != null ? entry[cat] : entry.other != null ? entry.other : entry.one; + } + return entry; + } + // tr(key, english, vars): the catalog's text for the chosen language, else the English text in the code + function tr(key, english, vars) { + const own = catalog && Object.prototype.hasOwnProperty.call(catalog, key) ? catalog[key] : undefined; + const text = pick(own != null ? own : english, vars); + return fill(text == null ? key : text, vars); + } + + // marked page text: the English text is read once from the HTML and kept, so switching back restores it + const ATTRS = [["data-i18n", null], ["data-i18n-title", "title"], ["data-i18n-label", "aria-label"], + ["data-i18n-placeholder", "placeholder"]]; + function apply(scope) { + const doc = scope || root.document; + if (!doc || !doc.querySelectorAll) return; + for (const [mark, attr] of ATTRS) { + for (const el of doc.querySelectorAll(`[${mark}]`)) { + const key = el.getAttribute(mark); + const slot = "en_" + mark.replace(/[^a-z]/g, ""); + if (el.dataset[slot] === undefined) el.dataset[slot] = attr ? (el.getAttribute(attr) || "") : el.textContent; + const text = tr(key, el.dataset[slot]); + if (attr) el.setAttribute(attr, text); else el.textContent = text; + } + } + if (root.document && root.document.documentElement) root.document.documentElement.lang = lang; + } + + const known = (code) => LANGUAGES.some((l) => l[0] === code); + // load a catalog; English, or a catalog that cannot be read, leaves the English text in the code + async function setLanguage(code) { + code = known(code) ? code : "en"; + let next = null; + if (code !== "en") { + try { + const r = await root.fetch(`web/locales/${code}.json`); + const j = r.ok ? await r.json() : null; + if (j && typeof j === "object" && !Array.isArray(j)) next = j; + } catch (e) { /* the English text stays */ } + if (!next) code = "en"; + } + lang = code; catalog = next; rules = null; + try { rules = new Intl.PluralRules(lang); } catch (e) { /* other */ } + apply(); + return lang; + } + + const api = {LANGUAGES, tr, apply, setLanguage, get lang() { return lang; }, fill, pick}; + root.StrataI18n = api; + root.tr = tr; + if (typeof module !== "undefined" && module.exports) module.exports = api; +})(typeof globalThis !== "undefined" ? globalThis : this); diff --git a/serve/web/index.html b/serve/web/index.html index 0c7847f2..0fdb4e6e 100644 --- a/serve/web/index.html +++ b/serve/web/index.html @@ -192,6 +192,11 @@ +
+ + + Chat, its settings and the buttons above are translated. The Monitor, Images and About views are still in English. +
Dark theme

Chats, settings and the key are kept in this browser only. @@ -262,6 +267,7 @@

+ diff --git a/serve/webfiles.py b/serve/webfiles.py new file mode 100644 index 00000000..d79b107d --- /dev/null +++ b/serve/webfiles.py @@ -0,0 +1,35 @@ +"""Which files of serve/web the server hands out below /web/: the page's translations and the vendored KaTeX. + +The flat files (app.js, app.css, ...) are served by serve/server.py itself. The two folders here hold more than one +level, so each has its own whitelist: a name pattern and the types it may have. Nothing outside these folders is ever +read, a name with a backslash, a colon or a percent sign is refused, and the resolved path must stay inside the folder. +""" +from __future__ import annotations + +import re +from pathlib import Path + +WEB = Path(__file__).resolve().parent / "web" + +# /web/locales/.json e.g. de.json, pt-BR.json +LOCALE = re.compile(r"^/web/locales/(?P[a-z]{2,3}(?:-[A-Z]{2})?\.json)$") +# /web/vendor/katex/dist/... : the script, the style sheet and the fonts only +VENDOR_TYPES = {".js": "text/javascript; charset=utf-8", ".css": "text/css; charset=utf-8", ".woff2": "font/woff2"} +VENDOR_PREFIX = "/web/vendor/katex/" + + +def subtree_file(path: str, web: Path = WEB): + """(file, content type) for a /web/locales or /web/vendor path, or None when it is not served.""" + if any(c in path for c in ("\\", ":", "%", "\0")) or ".." in path: + return None + m = LOCALE.match(path) + if m: + f = web / "locales" / m.group("name") + return (f, "application/json; charset=utf-8") if f.is_file() else None + if path.startswith(VENDOR_PREFIX): + vendor = (web / "vendor" / "katex").resolve() + f = (vendor / path[len(VENDOR_PREFIX):]).resolve() + ctype = VENDOR_TYPES.get(f.suffix) + if ctype and f.is_relative_to(vendor) and f.is_file(): + return f, ctype + return None diff --git a/tools/web_i18n.py b/tools/web_i18n.py new file mode 100644 index 00000000..747f1101 --- /dev/null +++ b/tools/web_i18n.py @@ -0,0 +1,203 @@ +"""The web page's translations: read the English text out of serve/web, write locales/en.json, check the catalogs. + + python tools/web_i18n.py # check every catalog against the text in the code (exit 1 on a problem) + python tools/web_i18n.py --write # also rewrite serve/web/locales/en.json from the code + +The English text lives in the code (see serve/web/i18n.js): + tr("key", "English text", vars) in serve/web/*.js + tr("key", {one: "{n} chat", other: "{n} chats"}, vars) a plural + English text in serve/web/index.html (also data-i18n-title, -label, -placeholder) +Both must be plain string literals (no template strings, no joined strings), so that this reader and a translator see +the same text. serve/test_web_i18n.py runs the check. +""" +from __future__ import annotations + +import html.parser +import json +import re +import sys +from pathlib import Path + +WEB = Path(__file__).resolve().parents[1] / "serve" / "web" +LOCALES = WEB / "locales" +PLACEHOLDER = re.compile(r"\{(\w+)\}") +CALL = re.compile(r"(? dict: + found = {} + for m in CALL.finditer(src): + key = m.group(1) + i = m.end() + try: + value, _ = _plural(src, i) if src[i] == "{" else _string(src, i) + except Problem as e: + line = src.count("\n", 0, m.start()) + 1 + raise Problem(f"{name}:{line}: tr({key!r}): {e}") + found[key] = value + return found + + +class _Html(html.parser.HTMLParser): + ATTRS = {"data-i18n-title": "title", "data-i18n-label": "aria-label", "data-i18n-placeholder": "placeholder"} + + def __init__(self): + super().__init__(convert_charrefs=True) + self.found: dict = {} + self.open = [] # [(tag, key, [text])] + + def handle_starttag(self, tag, attrs): + a = dict(attrs) + for mark, attr in self.ATTRS.items(): + if mark in a: + self.found[a[mark]] = a.get(attr) or "" + if "data-i18n" in a: + self.open.append((tag, a["data-i18n"], [])) + elif self.open: + self.open.append((tag, None, self.open[-1][2])) + + def handle_data(self, data): + if self.open: + self.open[-1][2].append(data) + + def handle_endtag(self, tag): + if self.open and self.open[-1][0] == tag: + _, key, text = self.open.pop() + if key: + self.found[key] = " ".join("".join(text).split()) + + +def html_strings(src: str) -> dict: + p = _Html() + p.feed(src) + return p.found + + +def english() -> dict: + """Every key in serve/web with its English text; the same key twice must have the same text.""" + out: dict = {} + sources = {p.name: js_strings(p.read_text(encoding="utf-8"), p.name) for p in sorted(WEB.glob("*.js"))} + sources["index.html"] = html_strings((WEB / "index.html").read_text(encoding="utf-8")) + for name, found in sources.items(): + for key, value in found.items(): + if key in out and out[key] != value: + raise Problem(f"{key!r} has two different English texts (one is in {name})") + out[key] = value + return dict(sorted(out.items())) + + +def languages() -> list: + src = (WEB / "i18n.js").read_text(encoding="utf-8") + block = re.search(r"const LANGUAGES = (\[.*?\]);", src, re.S).group(1) + return [m for m in re.findall(r'\["([\w-]+)",', block)] + + +def placeholders(value) -> set: + forms = value.values() if isinstance(value, dict) else [value] + return {name for form in forms for name in PLACEHOLDER.findall(form)} + + +def check_catalog(code: str, catalog: dict, en: dict) -> list: + problems = [] + for key in sorted(set(en) - set(catalog)): + problems.append(f"{code}: missing {key!r}") + for key in sorted(set(catalog) - set(en)): + problems.append(f"{code}: {key!r} is not in the page (renamed or removed?)") + for key, value in catalog.items(): + if key not in en: + continue + forms = value if isinstance(value, dict) else {"": value} + if isinstance(value, dict): + bad = [c for c in value if c not in PLURAL_CATEGORIES] + if bad or "other" not in value: + problems.append(f"{code}: {key!r}: plural forms must be CLDR names with an 'other' form, got {sorted(value)}") + if not isinstance(en[key], dict): + problems.append(f"{code}: {key!r} is a plural here but not in the code") + elif isinstance(en[key], dict): + problems.append(f"{code}: {key!r} is a plain text here but a plural in the code") + for form, text in forms.items(): + if not isinstance(text, str) or not text.strip(): + problems.append(f"{code}: {key!r} {form} is empty or not a string") + if placeholders(value) != placeholders(en[key]) and not ( + isinstance(value, dict) and isinstance(en[key], dict) + and all(placeholders(f) <= placeholders(en[key]) for f in value.values())): + problems.append(f"{code}: {key!r} uses {sorted(placeholders(value))}, the code uses {sorted(placeholders(en[key]))}") + return problems + + +def check(write: bool = False) -> list: + en = english() + if write: + LOCALES.mkdir(exist_ok=True) + (LOCALES / "en.json").write_text(json.dumps(en, ensure_ascii=False, indent=2) + "\n", encoding="utf-8") + problems = [] + on_disk = LOCALES / "en.json" + if not on_disk.is_file() or json.loads(on_disk.read_text(encoding="utf-8")) != en: + problems.append("en.json is not the text in the code (python tools/web_i18n.py --write)") + for code in languages(): + if code == "en": + continue + f = LOCALES / f"{code}.json" + if not f.is_file(): + problems.append(f"{code}: serve/web/locales/{code}.json is missing") + continue + problems += check_catalog(code, json.loads(f.read_text(encoding="utf-8")), en) + for f in sorted(LOCALES.glob("*.json")): + if f.stem not in languages(): + problems.append(f"{f.name}: not in LANGUAGES of serve/web/i18n.js") + return problems + + +if __name__ == "__main__": + try: + problems = check(write="--write" in sys.argv) + except Problem as e: + print(f"web_i18n: {e}") + sys.exit(1) + for p in problems: + print("web_i18n:", p) + sys.exit(1 if problems else 0) From a965c962cfea5c225ae40bd02a143d63b203b58d Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 19:52:56 +0100 Subject: [PATCH 44/52] Web chat: draw math with the bundled KaTeX, opt-in and offline (#2972, #2974) Chat settings > Render math (off by default). When it is on, \( \), \[ \], $x$ and $$ $$ in an answer are drawn as formulas by KaTeX 0.19.0, which is vendored in serve/web/vendor/katex (script, style, 20 woff2 fonts, MIT licence and a PROVENANCE.json with the npm integrity and the sha256 of every file, so the page needs no network). Nothing of KaTeX loads until an answer holds a formula. The shared core (math.js, from #2972) keeps the text of every message exactly as the model wrote it: formulas are swapped for placeholders before the Markdown runs and drawn over them afterwards, so history, copying, the Markdown export and the requests never see the drawing. Code, link targets, prices ($5 and $10) and a formula still being streamed stay text. A formula that fails, is over 16 KiB or times out stays as its source text. Safety: KaTeX runs with trust off (no \href, \url, \includegraphics, \htmlClass: they are drawn as their own name), maxExpand 1000, maxSize 20 and a fresh macro table per formula; it builds DOM nodes itself, so no HTML string from a model reaches the page. A formula already drawn is placed again at once while an answer streams, so it does not flicker back to source. serve/test_web_math.js runs the real vendored KaTeX against hostile formulas; serve/test_web_math.py checks the vendored files against PROVENANCE.json and that nothing outside this server is addressed. serve/web/vendor is -text in .gitattributes so the hashes hold on a Windows checkout. Ported by hand from PRs #2972 (core) and #2974 (KaTeX) by CC-David-CC. Co-authored-by: David <336302908+CC-David-CC@users.noreply.github.com> --- .gitattributes | 3 + serve/test_web_math.js | 170 ++++++++++++++++++ serve/test_web_math.py | 107 +++++++++++ serve/web/app.css | 7 + serve/web/app.js | 21 ++- serve/web/index.html | 5 + serve/web/math-adapter.js | 34 ++++ serve/web/math.js | 142 +++++++++++++++ serve/web/vendor/katex/LICENSE | 21 +++ serve/web/vendor/katex/PROVENANCE.json | 34 ++++ .../katex/dist/fonts/KaTeX_AMS-Regular.woff2 | Bin 0 -> 28076 bytes .../dist/fonts/KaTeX_Caligraphic-Bold.woff2 | Bin 0 -> 6912 bytes .../fonts/KaTeX_Caligraphic-Regular.woff2 | Bin 0 -> 6908 bytes .../katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 | Bin 0 -> 11348 bytes .../dist/fonts/KaTeX_Fraktur-Regular.woff2 | Bin 0 -> 11316 bytes .../katex/dist/fonts/KaTeX_Main-Bold.woff2 | Bin 0 -> 25324 bytes .../dist/fonts/KaTeX_Main-BoldItalic.woff2 | Bin 0 -> 16780 bytes .../katex/dist/fonts/KaTeX_Main-Italic.woff2 | Bin 0 -> 16988 bytes .../katex/dist/fonts/KaTeX_Main-Regular.woff2 | Bin 0 -> 26272 bytes .../dist/fonts/KaTeX_Math-BoldItalic.woff2 | Bin 0 -> 16400 bytes .../katex/dist/fonts/KaTeX_Math-Italic.woff2 | Bin 0 -> 16440 bytes .../dist/fonts/KaTeX_SansSerif-Bold.woff2 | Bin 0 -> 12216 bytes .../dist/fonts/KaTeX_SansSerif-Italic.woff2 | Bin 0 -> 12028 bytes .../dist/fonts/KaTeX_SansSerif-Regular.woff2 | Bin 0 -> 10344 bytes .../dist/fonts/KaTeX_Script-Regular.woff2 | Bin 0 -> 9644 bytes .../dist/fonts/KaTeX_Size1-Regular.woff2 | Bin 0 -> 5468 bytes .../dist/fonts/KaTeX_Size2-Regular.woff2 | Bin 0 -> 5208 bytes .../dist/fonts/KaTeX_Size3-Regular.woff2 | Bin 0 -> 3624 bytes .../dist/fonts/KaTeX_Size4-Regular.woff2 | Bin 0 -> 4928 bytes .../dist/fonts/KaTeX_Typewriter-Regular.woff2 | Bin 0 -> 13568 bytes serve/web/vendor/katex/dist/katex.min.css | 1 + serve/web/vendor/katex/dist/katex.min.js | 1 + 32 files changed, 542 insertions(+), 4 deletions(-) create mode 100644 serve/test_web_math.js create mode 100644 serve/test_web_math.py create mode 100644 serve/web/math-adapter.js create mode 100644 serve/web/math.js create mode 100644 serve/web/vendor/katex/LICENSE create mode 100644 serve/web/vendor/katex/PROVENANCE.json create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_AMS-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Fraktur-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Main-Bold.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Main-BoldItalic.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Main-Italic.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Main-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Math-Italic.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_SansSerif-Bold.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_SansSerif-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Script-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Size1-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Size2-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Size3-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Size4-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 create mode 100644 serve/web/vendor/katex/dist/katex.min.css create mode 100644 serve/web/vendor/katex/dist/katex.min.js diff --git a/.gitattributes b/.gitattributes index e9e15ba7..8a835e52 100644 --- a/.gitattributes +++ b/.gitattributes @@ -25,3 +25,6 @@ docker/compose/* text eol=lf # Apple tools (codesign, plutil) read these: LF only, wherever the repository is cloned *.plist text eol=lf + +# vendored KaTeX (serve/web/vendor): the files are hashed byte for byte (PROVENANCE.json), never convert their line endings. +serve/web/vendor/** -text diff --git a/serve/test_web_math.js b/serve/test_web_math.js new file mode 100644 index 00000000..76ad9e39 --- /dev/null +++ b/serve/test_web_math.js @@ -0,0 +1,170 @@ +// Chat math (serve/web/math.js + math-adapter.js + the vendored KaTeX), run in Node. +// node serve/test_web_math.js (serve/test_web_math.py runs it too and skips when node is missing) +// +// 1. where a formula starts and ends (prices, code, links, half-written formulas); +// 2. the Markdown step: the model's text is escaped, a formula's source only ever reaches the page escaped; +// 3. drawing: a stub adapter and a stub DOM (order, cache, stale answers, errors, size limit); +// 4. safety: the REAL vendored KaTeX with the adapter's options, fed hostile formulas. +"use strict"; +const assert = require("node:assert/strict"); +const path = require("node:path"); + +const web = path.join(__dirname, "web"); +const math = require(path.join(web, "math.js")); +const {split} = math; +const esc = (s) => String(s).replace(/[&<>"']/g, (c) => ({"&": "&", "<": "<", ">": ">", '"': """, "'": "'"}[c])); +const unesc = (s) => s.replace(/&(amp|lt|gt|quot|#39);/g, (m, k) => ({amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'"}[k])); +const sources = (text) => split(text).filter((p) => p.source !== undefined).map((p) => [p.source, p.display]); + +const cases = { + split_delimiters() { + assert.deepEqual(sources("a $x^2$ b"), [["x^2", false]]); + assert.deepEqual(sources("a \\(x+1\\) b"), [["x+1", false]]); + assert.deepEqual(sources("a $$\\int_0^1 f$$ b"), [["\\int_0^1 f", true]]); + assert.deepEqual(sources("a \\[\\sum_i i\\] b"), [["\\sum_i i", true]]); + assert.deepEqual(sources("$$\nx = 1\n$$"), [["\nx = 1\n", true]], "display math may span lines"); + assert.deepEqual(sources("$a$ and $b$"), [["a", false], ["b", false]]); + // the text around a formula is kept whole + assert.equal(split("a $x$ b").map((p) => p.raw).join(""), "a $x$ b"); + }, + split_not_math() { + for (const text of ["It costs $5.", "$5 and $10", "from $5 to $10 each", "$ 5 $", "a $ b", "price: $1,000", "cost $5 USD, $6 EUR", + "no formula here", "\\$x\\$", "a \\( unfinished", "100$"]) { + assert.deepEqual(sources(text), [], text); + } + assert.deepEqual(sources("`$x$` and ```\n$$y$$\n```"), [], "code is code"); + assert.deepEqual(sources("```js\nlet a = '$x$'\n```\n$z$"), [["z", false]], "a closed fence ends"); + assert.deepEqual(sources("~~~\n\\(a\\)\n~~~"), [], "tilde fences too"); + assert.deepEqual(sources("[x](https://example.com/$a$/b) $c$"), [["c", false]], "a link target is not math"); + }, + split_streaming() { + const parts = split("see $$x^2 + "); + assert.equal(parts.length, 2); + assert.equal(parts[1].incomplete, true, "a formula still being written is plain text"); + assert.equal(parts[1].source, undefined); + assert.equal(split("```\n$$never closed").filter((p) => p.source !== undefined).length, 0, "an open fence swallows the rest"); + }, + markdown_escapes_everything() { + const fmt = (t) => `

${esc(t)}

`; + const html = math.markdown("hi there $x\"'$ and ", fmt); + assert.ok(html.includes("<b>there</b>") && html.includes("<script>"), "the model's own tags are escaped"); + assert.ok(!//.test(html), html); + // the source sits in one attribute, URL-encoded, and as escaped text + const m = /data-math="([^"]*)"/.exec(html); + assert.ok(m, html); + assert.equal(decodeURIComponent(unesc(m[1])), "x\"'", "the attribute (as the browser reads it) holds the source"); + assert.ok(!m[1].includes("<") && !m[1].includes('"')); + assert.ok(html.includes("$x<y>"'$"), "the visible fallback is the escaped source"); + // an attribute break-out in the source stays in the attribute + const evil = math.markdown('$x" onmouseover="alert(1)$', fmt); + assert.equal((evil.match(/]*)>/.exec(evil)[1]; + assert.deepEqual([...tag.matchAll(/(?:^|\s)([\w-]+)="/g)].map((x) => x[1]), ["class", "data-math", "data-display"], "no attribute of the model's"); + }, + markdown_keeps_source_text() { + const text = "a $x$ and \\(y\\)"; + const seen = []; + math.markdown(text, (t) => { seen.push(t); return t; }); + assert.equal(text, "a $x$ and \\(y\\)", "strings are values, but the function must also not need a copy"); + assert.ok(!/\$x\$|\\\(y\\\)/.test(seen[0]), "the Markdown step sees placeholders, not formulas"); + // a message that contains the placeholder word itself is not confused + const html = math.markdown("STRATAMATHPLACEHOLDER0END and $x$", (t) => t); + assert.ok(html.startsWith("STRATAMATHPLACEHOLDER0END and ({querySelectorAll: () => slots, contains: (s) => slots.includes(s)}); + const mk = (tag) => ({tag, cloneNode() { return {tag, cloned: true}; }}); + globalThis.StrataMathAdapter = { + async initialize() { calls.push("init"); }, + async render(source, {display}) { + calls.push("render " + source); + if (source === "bad") return {ok: false, reason: "invalid"}; + return {ok: true, element: mk(source)}; + }, + }; + math.reset(); + const a = new Slot("x", false), b = new Slot("bad", false), c = new Slot("x", true); + const container = box([a, b, c]); + math.hydrate(container); + await new Promise((r) => setTimeout(r, 20)); + assert.deepEqual(calls, ["init", "render x", "render bad", "render x"], "one at a time, started once"); + assert.equal(a.children[0].tag, "x"); assert.equal(c.children[0].tag, "x"); + assert.equal(b.dataset.mathError, "invalid"); assert.ok(b.children.length === 0, "a bad formula stays source text"); + assert.match(b.title, /invalid/); + // drawn before: placed at once (no flicker while an answer streams), without another render + const again = new Slot("x", false); + math.hydrate(box([again])); + assert.equal(again.children[0].tag, "x", "placed synchronously from the cache"); + assert.equal(calls.length, 4); + // an answer that was replaced while a formula was drawn does not get the old drawing + const old = new Slot("slow", false); + const stale = box([old]); + globalThis.StrataMathAdapter.render = async (s) => { await new Promise((r) => setTimeout(r, 15)); return {ok: true, element: mk(s)}; }; + math.hydrate(stale); + math.hydrate(box([])); // a different container is a different generation; the same container is bumped below + stale._mathGeneration++; + await new Promise((r) => setTimeout(r, 40)); + assert.equal(old.children.length, 0, "stale generation ignored"); + // a formula over 16 KiB is not drawn, and no adapter means source text + assert.deepEqual(await math.result("x".repeat(20000), false), {ok: false, reason: "limit"}); + math.reset(); delete globalThis.StrataMathAdapter; + assert.deepEqual(await math.result("y", false), {ok: false, reason: "unavailable"}); + math.reset(); globalThis.StrataMathAdapter = {initialize: async () => { throw new Error("no engine"); }, render: async () => ({ok: true})}; + assert.deepEqual(await math.result("z", false), {ok: false, reason: "unavailable"}, "an engine that cannot start leaves the source"); + delete globalThis.StrataMathAdapter; + }, + katex_options_are_the_safe_ones() { + const {OPTIONS} = require(path.join(web, "math-adapter.js")); + assert.equal(OPTIONS.trust, false, "no \\href, \\url, \\includegraphics, \\htmlClass ..."); + assert.equal(OPTIONS.throwOnError, true, "an error returns the source, not a red error box"); + assert.ok(OPTIONS.maxExpand <= 1000 && OPTIONS.maxSize <= 20, "macro loops and huge sizes are cut"); + }, + katex_hostile_input() { + const katex = require(path.join(web, "vendor", "katex", "dist", "katex.min.js")); + const {OPTIONS} = require(path.join(web, "math-adapter.js")); + const draw = (src, display = false) => katex.renderToString(src, {...OPTIONS, displayMode: display, macros: {}}); + // with trust off these commands are not run: KaTeX draws the command's name in red, as text. There is no link, picture, + // style, id, class or data attribute of the model's making in the result. + const mathml = (h) => h.replace(/]*>[\s\S]*?<\/annotation>/g, ""); + for (const [src, name] of [["\\href{javascript:alert(1)}{click}", "\\href"], ["\\url{javascript:alert(1)}", "\\url"], + ["\\href{https://example.com}{x}", "\\href"], ["\\includegraphics{https://example.com/p.png}", "\\includegraphics"], + ["\\htmlClass{evil}{b}", "\\htmlClass"], ["\\htmlId{evil}{b}", "\\htmlId"], + ["\\htmlStyle{color:red}{b}", "\\htmlStyle"], ["\\htmlData{evil=1}{b}", "\\htmlData"]]) { + const html = mathml(draw(src)); + assert.ok(html.includes(`${name}`), src + " is drawn as its own name: " + html.slice(0, 200)); + assert.ok(!/ " + html); + } + for (const src of ["", "\\text{}", "a < b > c \\& d \" '", + "\\text{}", "\\mathrm{javascript:alert(1)}", "x_{}"]) { + const html = draw(src); + // the output may contain the text, but only as text: no tag the model wrote exists + assert.ok(!/<(img|script|svg|iframe|a)\b/i.test(html.replace(/]*>[\s\S]*?<\/annotation>/g, "")), src + " -> " + html); + const tags = (html.match(/<[a-zA-Z][^>]*>/g) || []).join(" "); + assert.ok(!/\son\w+\s*=|javascript:|\ssrc\s*=|\shref\s*=/i.test(tags), "no event handler, link or source in any tag: " + src); + } + // the TeX source is kept in an as escaped text, never as markup + const kept = draw(""); + assert.ok(!kept.includes(" draw("\\def\\a{\\a\\a}\\a"), /expansion|Too many/i, "a macro loop is cut"); + const rule = mathml(draw("\\rule{100em}{100em}")); + assert.ok(rule.includes("20em") && !rule.includes("100em"), "a huge rule is cut to maxSize"); + // macros are not shared between formulas + draw("\\gdef\\foo{1}\\foo"); + assert.throws(() => draw("\\foo"), /Undefined control sequence/); + // and a good formula still draws + assert.match(draw("\\frac{a}{b} + \\sqrt{x}"), /class="katex"/); + }, +}; + +(async () => { + const name = process.argv[2]; + const run = name ? [[name, cases[name]]] : Object.entries(cases); + if (name && !cases[name]) throw new Error("unknown test " + name); + for (const [n, fn] of run) { await fn(); console.log("ok " + n); } +})().catch((e) => { console.error(e); process.exitCode = 1; }); diff --git a/serve/test_web_math.py b/serve/test_web_math.py new file mode 100644 index 00000000..2c5a2b83 --- /dev/null +++ b/serve/test_web_math.py @@ -0,0 +1,107 @@ +"""Chat math on the served page (serve/web/math.js, math-adapter.js, vendor/katex): opt-in, offline, no scripts from the model.""" +from __future__ import annotations + +import hashlib +import json +import re +import shutil +import subprocess +import unittest +import urllib.error +import urllib.request +from pathlib import Path + +from serve.frontend import ChatTemplate +from serve.server import ByteTokenizer, MockEngine, Service, serve + +WEB = Path(__file__).parent / "web" +KATEX = WEB / "vendor" / "katex" + + +@unittest.skipUnless(shutil.which("node"), "node is not installed") +class MathInNode(unittest.TestCase): + def test_delimiters_escaping_drawing_and_hostile_formulas(self): + r = subprocess.run([shutil.which("node"), str(Path(__file__).with_name("test_web_math.js"))], + capture_output=True, text=True, timeout=120) + self.assertEqual(r.returncode, 0, r.stdout + r.stderr) + + +class Vendored(unittest.TestCase): + def test_the_files_are_the_ones_in_provenance(self): + prov = json.loads((KATEX / "PROVENANCE.json").read_text(encoding="utf-8")) + self.assertEqual((prov["package"], prov["version"], prov["license"]), ("katex", "0.19.0", "MIT")) + self.assertTrue(prov["integrity"].startswith("sha512-")) + on_disk = {p.relative_to(KATEX).as_posix() for p in KATEX.rglob("*") if p.is_file() and p.name != "PROVENANCE.json"} + self.assertEqual(on_disk, set(prov["sha256"]), "a file was added or removed without PROVENANCE.json") + for name, digest in prov["sha256"].items(): + with self.subTest(name=name): + self.assertEqual(hashlib.sha256((KATEX / name).read_bytes()).hexdigest(), digest) + self.assertTrue((KATEX / "LICENSE").read_text(encoding="utf-8").startswith("The MIT License")) + + def test_it_works_offline(self): + css = (KATEX / "dist" / "katex.min.css").read_text(encoding="utf-8") + fonts = set(re.findall(r"url\(fonts/([\w-]+\.woff2)\)", css)) + self.assertEqual(len(fonts), 20) + for font in fonts: + self.assertTrue((KATEX / "dist" / "fonts" / font).is_file(), font) + # no address outside this server in anything that loads on the page + for f in (WEB / "math.js", WEB / "math-adapter.js", KATEX / "dist" / "katex.min.css"): + self.assertNotRegex(f.read_text(encoding="utf-8"), r"https?://(?!www\.w3\.org)", f.name) + self.assertNotIn("@import", css) + + def test_the_page_loads_nothing_until_math_is_on(self): + html = (WEB / "index.html").read_text(encoding="utf-8") + js = (WEB / "app.js").read_text(encoding="utf-8") + self.assertIn('src="web/math.js"', html) + self.assertIn('src="web/math-adapter.js"', html) + self.assertNotIn("katex", html.lower().replace("math-adapter", ""), "KaTeX is not named in the page: the adapter loads it") + self.assertIn("math: false", js, "off by default") + self.assertIn('id="s-math"', html) + self.assertIn('aria-checked="false"', re.search(r']*id="s-math"[^>]*>', html).group(0)) + adapter = re.sub(r"^\s*//.*$", "", (WEB / "math-adapter.js").read_text(encoding="utf-8"), flags=re.M) # the code, not its comments + self.assertIn("trust: false", adapter) + self.assertNotIn("innerHTML", adapter) + self.assertNotIn("renderToString", adapter, "KaTeX builds DOM nodes; no HTML string goes into the page") + + +class Served(unittest.TestCase): + @classmethod + def setUpClass(cls): + tok = ByteTokenizer() + cls.svc = Service(MockEngine(tok, "ok"), tok, ChatTemplate(Path(__file__).parent / "chat_template.jinja")) + cls.httpd = serve(cls.svc, port=0) + cls.base = f"http://127.0.0.1:{cls.httpd.server_address[1]}" + + @classmethod + def tearDownClass(cls): + cls.httpd.shutdown() + cls.httpd.server_close() + + def get(self, path): + try: + with urllib.request.urlopen(self.base + path, timeout=10) as r: + return r.status, r.headers.get("Content-Type", ""), r.read() + except urllib.error.HTTPError as e: + return e.code, e.headers.get("Content-Type", ""), e.read() + + def test_scripts_style_and_fonts_are_served(self): + for path, want in (("/web/math.js", "javascript"), ("/web/math-adapter.js", "javascript"), + ("/web/vendor/katex/dist/katex.min.js", "javascript"), + ("/web/vendor/katex/dist/katex.min.css", "text/css"), + ("/web/vendor/katex/dist/fonts/KaTeX_Main-Regular.woff2", "font/woff2")): + with self.subTest(path=path): + code, ctype, body = self.get(path) + self.assertEqual(code, 200) + self.assertIn(want, ctype) + self.assertTrue(body) + + def test_nothing_else_below_vendor(self): + for path in ("/web/vendor/katex/PROVENANCE.json", "/web/vendor/katex/LICENSE", "/web/vendor/katex/dist/fonts/x.ttf", + "/web/vendor/katex/../../app.js", "/web/vendor/", "/web/vendor/katex/dist/fonts", + "/web/vendor/katex/dist/missing.js"): + with self.subTest(path=path): + self.assertEqual(self.get(path)[0], 404) + + +if __name__ == "__main__": + unittest.main() diff --git a/serve/web/app.css b/serve/web/app.css index 1191b041..e899121b 100644 --- a/serve/web/app.css +++ b/serve/web/app.css @@ -221,3 +221,10 @@ main { flex: 1; min-height: 0; display: flex; } .img-results figure{margin:0} .img-results img{max-width:100%;border-radius:var(--st-r-lg);display:block} .img-results figcaption{font-size:var(--st-fs-sm, 13px);color:var(--st-ink-2, inherit);margin-top:4px} + +/* Math (serve/web/math.js): a formula never widens the chat; a long display formula scrolls inside its own box. */ +.chat-math { overflow-wrap: normal; } +.chat-math--display { display: block; text-align: center; overflow-x: auto; max-width: 100%; margin: .6em 0; padding: .25em 0; } +.chat-math--display > * { margin: 0 !important; } +.chat-math[data-math-error] { white-space: pre-wrap; } +.chat-math .katex { font-size: 1.08em; } diff --git a/serve/web/app.js b/serve/web/app.js index b3448d92..ef81c9bb 100644 --- a/serve/web/app.js +++ b/serve/web/app.js @@ -573,7 +573,7 @@ function markdown(text) { // fields: the server picks the card's set for the request's thinking state (thinking 1.0 / 0.95 / 20, not thinking // 0.7 / 0.8 / 20 with a presence penalty). Before 0.1.45 the page sent 0.6 itself; a stored 0.6 with the other two // values untouched counts as "not set" too. -const DEFAULTS = {thinking: "high", temperature: 1.0, top_p: 0.95, top_k: 20, max: "", seed: "", show: true, esp: true, mcp: true}; +const DEFAULTS = {thinking: "high", temperature: 1.0, top_p: 0.95, top_k: 20, max: "", seed: "", show: true, esp: true, mcp: true, math: false}; const OLD_DEFAULT_TEMPERATURE = 0.6; function samplingUntouched(s) { const t = +s.temperature; @@ -658,16 +658,20 @@ function toolHtml(t, k) { `${icon("chevron", "st-icon st-icon--sm st-chev")}
${body}
`; } // the answer's text with the tool blocks where the model called them +// math (opt-in, serve/web/math.js): formulas become placeholders before the Markdown runs and are drawn after it +function answerMarkdown(text) { + return settings.math ? StrataMath.markdown(text, markdown) : markdown(text); +} function answerHtml(m) { - if (!m.tools || !m.tools.length) return markdown(m.text || ""); + if (!m.tools || !m.tools.length) return answerMarkdown(m.text || ""); let html = "", pos = 0; m.tools.forEach((t, k) => { const at = Math.min(Math.max(t.at || 0, pos), m.text.length); - if (at > pos) html += markdown(m.text.slice(pos, at)); + if (at > pos) html += answerMarkdown(m.text.slice(pos, at)); pos = at; html += toolHtml(t, k); }); - return html + markdown(m.text.slice(pos)); + return html + answerMarkdown(m.text.slice(pos)); } // a tool event from the stream (the `strata_mcp` field of a chunk) function onTool(m, x) { @@ -704,6 +708,7 @@ function updateAssistant(el, m, streaming) { bubble.innerHTML = m.reasoning ? `Writing` : ``; } else { bubble.innerHTML = answerHtml(m); + if (settings.math) StrataMath.hydrate(bubble); if (streaming) bubble.classList.add("cursor"); else bubble.classList.remove("cursor"); } el.querySelector(".meta-text").textContent = m.meta || (streaming ? "" : m.stopped ? "Stopped" : ""); @@ -1013,6 +1018,7 @@ function loadDrawer(s = settings) { for (const b of $("s-thinking").children) b.setAttribute("aria-checked", String(b.dataset.v === s.thinking)); $("s-temp").value = s.temperature; $("s-topp").value = s.top_p; $("s-topk").value = s.top_k; $("s-max").value = s.max; $("s-seed").value = s.seed; + $("s-math").setAttribute("aria-checked", String(!!s.math)); $("s-show").setAttribute("aria-checked", String(!!s.show)); $("s-esp").setAttribute("aria-checked", String(s.esp !== false)); $("esp-row").hidden = !projectionLoaded(); @@ -1064,6 +1070,7 @@ function outputs() { } for (const b of $("s-thinking").children) b.onclick = () => { for (const x of $("s-thinking").children) x.setAttribute("aria-checked", String(x === b)); outputs(); }; for (const id of ["s-temp", "s-topp", "s-topk"]) $(id).oninput = outputs; +$("s-math").onclick = () => $("s-math").setAttribute("aria-checked", String($("s-math").getAttribute("aria-checked") !== "true")); $("s-show").onclick = () => $("s-show").setAttribute("aria-checked", String($("s-show").getAttribute("aria-checked") !== "true")); $("s-esp").onclick = () => $("s-esp").setAttribute("aria-checked", String($("s-esp").getAttribute("aria-checked") !== "true")); $("s-mcp").onclick = () => $("s-mcp").setAttribute("aria-checked", String($("s-mcp").getAttribute("aria-checked") !== "true")); @@ -1073,10 +1080,16 @@ $("s-apply").onclick = async () => { const sel = [...$("s-thinking").children].find((b) => b.getAttribute("aria-checked") === "true"); settings = {thinking: sel ? sel.dataset.v : "high", temperature: +$("s-temp").value, top_p: +$("s-topp").value, top_k: +$("s-topk").value, max: $("s-max").value.trim(), seed: $("s-seed").value.trim(), + math: $("s-math").getAttribute("aria-checked") === "true", show: $("s-show").getAttribute("aria-checked") === "true", esp: $("s-esp").getAttribute("aria-checked") === "true", mcp: $("s-mcp").getAttribute("aria-checked") === "true"}; store.set("sampling", settings); + StrataMath.reset(); // math on or off: every answer is drawn again + for (const el of $("chat").querySelectorAll(".st-msg--assistant")) { + const m = messages[+el.dataset.i]; + updateAssistant(el, m, !!busy && busy.msg === m); // the element send() holds stays the same while an answer streams + } const share = $("s-share").getAttribute("aria-checked") === "true"; openDrawer(false); if (share || sharedOn) { diff --git a/serve/web/index.html b/serve/web/index.html index 0fdb4e6e..f08271ba 100644 --- a/serve/web/index.html +++ b/serve/web/index.html @@ -248,6 +248,9 @@ +
Render math
draw equations in answers as formulas (works offline)
+
Show thinking
expanded while it streams
+ + diff --git a/serve/web/math-adapter.js b/serve/web/math-adapter.js new file mode 100644 index 00000000..7be74c8f --- /dev/null +++ b/serve/web/math-adapter.js @@ -0,0 +1,34 @@ +// serve/web/math-adapter.js - the KaTeX renderer for math.js (PR #2974 by CC-David-CC). KaTeX 0.19.0 is vendored in +// serve/web/vendor/katex (MIT, see PROVENANCE.json there): no network, no CDN. Nothing is loaded until "Render math" is +// switched on and an answer holds a formula. +// +// What a formula may do: nothing but draw. `trust: false` turns off \href, \url, \includegraphics and \htmlClass-style +// commands, so a formula cannot make a link, load a picture or add an attribute; the macros are not shared between +// formulas; \def loops are cut by maxExpand and a huge \rule or \kern by maxSize. KaTeX builds DOM nodes itself (no +// innerHTML), the result is cloned into the page by math.js, and an error returns the source text instead. +"use strict"; +(function (root) { + const OPTIONS = {output: "htmlAndMathml", trust: false, throwOnError: true, strict: "ignore", maxExpand: 1000, maxSize: 20}; + const adapter = { + OPTIONS, + async initialize() { + if (root.katex && document.querySelector("link[data-katex-ready]")) return; + const css = document.createElement("link"); css.rel = "stylesheet"; + css.href = "web/vendor/katex/dist/katex.min.css"; + const loaded = new Promise((resolve, reject) => { css.onload = resolve; css.onerror = reject; }); + document.head.append(css); + await Promise.all([loaded, root.katex ? Promise.resolve() : root.StrataMath.script("web/vendor/katex/dist/katex.min.js")]); + css.dataset.katexReady = "1"; + }, + async render(source, {display, signal}) { + if (signal.aborted) return {ok: false, reason: "unavailable"}; + const element = document.createElement("span"); + try { + root.katex.render(source, element, {...OPTIONS, displayMode: display, macros: {}}); + return {ok: true, element: element.firstElementChild}; + } catch (_) { return {ok: false, reason: "invalid"}; } + }, + }; + root.StrataMathAdapter = adapter; + if (typeof module !== "undefined" && module.exports) module.exports = adapter; +})(typeof globalThis !== "undefined" ? globalThis : this); diff --git a/serve/web/math.js b/serve/web/math.js new file mode 100644 index 00000000..15e295f5 --- /dev/null +++ b/serve/web/math.js @@ -0,0 +1,142 @@ +// serve/web/math.js - chat math that never changes the source. Engine-independent: a renderer (math-adapter.js) is plugged in. +// Ported from PR #2972 by CC-David-CC. The text of a message stays as the model wrote it (history, copying, the Markdown +// export and the requests all use it); math is only drawn over a placeholder in the page, and a formula that cannot be drawn +// stays as its source text. +"use strict"; +(function (root) { + const escape = (s) => String(s).replace(/[&<>"']/g, (c) => ({"&": "&", "<": "<", ">": ">", '"': """, "'": "'"}[c])); + const escaped = (s, i) => { let n = 0; while (i > 0 && s[--i] === "\\") n++; return n % 2 === 1; }; + + // split(text) -> [{raw}, {source, display, raw}, {raw, incomplete: true}, ...] + // \( \) and $x$ are inline, \[ \] and $$ $$ are display. Code (fences, `spans`), Markdown link targets and prices ($5 and + // $10) are not math. A formula that is still being written (no closing delimiter yet) stays plain text. + function split(text) { + const parts = []; let start = 0, i = 0; + const push = (end, math) => { if (start < i) parts.push({raw: text.slice(start, i)}); parts.push(math); start = i = end; }; + while (i < text.length) { + // Code takes precedence, including incomplete fences while streaming. + const fence = (i === 0 || text[i - 1] === "\n") && text.slice(i).match(/^ {0,3}(`{3,}|~{3,})[^\n]*\n/); + if (fence) { + const marker = fence[1][0], count = fence[1].length; + const end = new RegExp("^ {0,3}" + marker + "{" + count + ",}[ \\t]*(?:\\n|$)", "m").exec(text.slice(i + fence[0].length)); + i = end ? i + fence[0].length + end.index + end[0].length : text.length; continue; + } + if (text[i] === "`" && !escaped(text, i)) { + const ticks = text.slice(i).match(/^`+/)[0]; let end = text.indexOf(ticks, i + ticks.length); + while (end >= 0 && (text[end - 1] === "`" || text[end + ticks.length] === "`")) end = text.indexOf(ticks, end + ticks.length); + i = end < 0 ? text.length : end + ticks.length; continue; + } + if (escaped(text, i)) { i++; continue; } + // Never inject a math element into a Markdown link's href attribute. + if (text.startsWith("](http", i)) { + const end = text.indexOf(")", i + 2); + i = end < 0 ? text.length : end + 1; continue; + } + let open, close, display; + if (text.startsWith("\\(", i)) { open = "\\("; close = "\\)"; display = false; } + else if (text.startsWith("\\[", i)) { open = "\\["; close = "\\]"; display = true; } + else if (text.startsWith("$$", i)) { open = close = "$$"; display = true; } + else if (text[i] === "$" && !/\s/.test(text[i + 1] || " ") && text[i - 1] !== "$") { open = close = "$"; display = false; } + if (!open) { i++; continue; } + let end = text.indexOf(close, i + open.length); + while (end >= 0 && (escaped(text, end) || (close === "$" && (/\s/.test(text[end - 1]) || /[\d$]/.test(text[end + 1] || ""))))) end = text.indexOf(close, end + close.length); + const source = end >= 0 ? text.slice(i + open.length, end) : text.slice(i + open.length); + // Numeric prices are text, even when separated by a second dollar amount. + if (open === "$" && (/\n/.test(source) || /\$/.test(source) || + /^\d[\d,.]*(?:\s*[A-Za-z]|\s*$)/.test(source))) { i++; continue; } + if (end < 0) { push(text.length, {raw: text.slice(i), incomplete: true}); break; } + push(end + close.length, {source, display, raw: text.slice(i, end + close.length)}); + } + if (start < text.length) parts.push({raw: text.slice(start)}); + return parts; + } + + // markdown(text, format): format() is the page's Markdown, run on the text with every formula swapped for a placeholder + // word, then each word becomes holding the escaped source until it is drawn. + function markdown(text, format) { + let prefix = "STRATAMATHPLACEHOLDER"; while (text.includes(prefix)) prefix += "X"; + const slots = []; + const protectedText = split(text).map((p) => { + if (p.source === undefined && !p.incomplete) return p.raw; + const key = prefix + slots.length + "END"; + slots.push(p); return key; + }).join(""); + let html = format(protectedText); + slots.forEach((p, i) => { + const body = p.incomplete ? escape(p.raw) : `${escape(p.raw)}`; + html = html.replaceAll(prefix + i + "END", () => body); + }); + return html; + } + + // drawing: one formula at a time (an engine may keep state between formulas), 256 results cached, a 10 s deadline for the + // engine to start and 15 s for one formula. A formula over 16 KiB is not drawn. The adapter returns an element that is not + // in the page; the core clones it into the placeholder if that is still on the screen. + const cache = new Map(), done = new Map(); + let initialization = null, queue = Promise.resolve(), epoch = 0; + function reset() { cache.clear(); done.clear(); initialization = null; epoch++; } + const keyOf = (source, display) => JSON.stringify([source, display]); + async function result(source, display) { + if (new TextEncoder().encode(source).length > 16384) return {ok: false, reason: "limit"}; + const key = keyOf(source, display); + if (cache.has(key)) { const hit = cache.get(key); cache.delete(key); cache.set(key, hit); return hit; } + if (cache.size >= 256) { const old = cache.keys().next().value; cache.delete(old); done.delete(old); } + const current = epoch; let work; + const task = queue.then(async () => { + if (epoch !== current || cache.get(key) !== task) return {ok: false, reason: "unavailable"}; + try { + const adapter = root.StrataMathAdapter; + if (!adapter) return {ok: false, reason: "unavailable"}; + initialization ||= Promise.race([adapter.initialize(), new Promise((_, reject) => + setTimeout(() => reject(new Error("Math initialization timed out")), 10000))]); + await initialization; + const signal = AbortSignal.timeout(15000); + let onAbort; + const deadline = new Promise((resolve) => { + onAbort = () => resolve({ok: false, reason: "limit"}); + signal.addEventListener("abort", onAbort, {once: true}); + }); + work = Promise.resolve(adapter.render(source, {display, signal})); + try { return await Promise.race([work, deadline]); } + finally { signal.removeEventListener("abort", onAbort); } + } catch (_) { return {ok: false, reason: "unavailable"}; } + }); + // A browser engine may ignore cancellation. Return source at the deadline, + // but do not overlap conversions that mutate the engine's macro state. + queue = task.then(() => work, () => work).then(() => undefined, () => undefined); + cache.set(key, task); + task.then((r) => { if (cache.get(key) === task) done.set(key, r); }); + return task; + } + + function place(slot, r, tr) { + if (r.ok) slot.replaceChildren(r.element.cloneNode(true)); + else { slot.dataset.mathError = r.reason; slot.title = tr ? tr("math.source", "Math source ({reason})", {reason: r.reason}) : "Math source (" + r.reason + ")"; } + } + // hydrate(container): draw the placeholders in a container. A formula drawn before is placed at once, so a streaming + // answer that is rebuilt on every frame does not flicker back to source text. + function hydrate(container) { + const generation = container._mathGeneration = (container._mathGeneration || 0) + 1; + for (const slot of container.querySelectorAll("[data-math]")) { + const source = decodeURIComponent(slot.dataset.math), display = slot.dataset.display === "1"; + const known = done.get(keyOf(source, display)); + if (known && known.ok) { place(slot, known, root.tr); continue; } + result(source, display).then((r) => { + if (generation !== container._mathGeneration || !container.contains(slot)) return; + place(slot, r, root.tr); + }); + } + } + function script(url) { + return new Promise((resolve, reject) => { + const s = document.createElement("script"); s.src = url; + const timer = setTimeout(() => { s.remove(); reject(new Error("Math script timed out")); }, 10000); + s.onload = () => { clearTimeout(timer); resolve(); }; + s.onerror = () => { clearTimeout(timer); s.remove(); reject(new Error("Math script unavailable")); }; + document.head.append(s); + }); + } + const api = {split, markdown, hydrate, reset, script, result}; + root.StrataMath = api; + if (typeof module !== "undefined" && module.exports) module.exports = api; +})(typeof globalThis !== "undefined" ? globalThis : this); diff --git a/serve/web/vendor/katex/LICENSE b/serve/web/vendor/katex/LICENSE new file mode 100644 index 00000000..37c6433e --- /dev/null +++ b/serve/web/vendor/katex/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2013-2020 Khan Academy and other contributors + +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. diff --git a/serve/web/vendor/katex/PROVENANCE.json b/serve/web/vendor/katex/PROVENANCE.json new file mode 100644 index 00000000..9f713bf8 --- /dev/null +++ b/serve/web/vendor/katex/PROVENANCE.json @@ -0,0 +1,34 @@ +{ + "package": "katex", + "version": "0.19.0", + "url": "https://registry.npmjs.org/katex/-/katex-0.19.0.tgz", + "integrity": "sha512-v6Tznz3zJ7u3niRCoDTsumM2+HA2XXcCu+WAacCeHD2z3p9A9Ks987o5FzfTGBN0e8A0vjEgIDvLbICrXpdw/Q==", + "license": "MIT", + "verified": "the tarball's sha512 was checked against the integrity above when these files were copied from package/dist (2026-10-26)", + "changes": "dist/katex.min.css lost the .woff and .ttf fallbacks of its 20 @font-face rules (every browser that runs this page reads woff2); nothing else was edited. katex.min.js and the 20 woff2 fonts are the package's files unchanged.", + "sha256": { + "LICENSE": "766ccc1f306c885aa45542a9846bbd0a505b27a0374f146778171c2254ce18e3", + "dist/fonts/KaTeX_AMS-Regular.woff2": "0cdd387c9590a1a9f9794560022dbb59654a7d86f187aa0c81495ad42d3a7308", + "dist/fonts/KaTeX_Caligraphic-Bold.woff2": "de7701e42cf1f4cf0b766c03fb27977207eee2f4fd5d76fa82188406da43ea4c", + "dist/fonts/KaTeX_Caligraphic-Regular.woff2": "5d53e70ad607c2352162dec9e0923fb54ecdafaccbf604cd8dcf7d00facb989b", + "dist/fonts/KaTeX_Fraktur-Bold.woff2": "74444efd593c005e3f4573b44524704c0af0a937fe911cca9e94068d0d140d3f", + "dist/fonts/KaTeX_Fraktur-Regular.woff2": "51814d270d06ff0255dba0799994fa4d8c84d11f09951d47595f4abb1f3602dc", + "dist/fonts/KaTeX_Main-Bold.woff2": "0f60d1b897938ec918c8ce073092411baf9438f6739465693ff18b0f9d20b021", + "dist/fonts/KaTeX_Main-BoldItalic.woff2": "99cd42a3c072d918f2f44984a807cf7aa16e13545fd0875fc07c6c65f99e715b", + "dist/fonts/KaTeX_Main-Italic.woff2": "97479ca6cce906abc961ecac96faa5f9ca2e61b8e7670d475826bcdee9a7c267", + "dist/fonts/KaTeX_Main-Regular.woff2": "c2342cd8b869e01752a9321dc17213fc40d4d04c79688c1d43f2cf316abd7866", + "dist/fonts/KaTeX_Math-BoldItalic.woff2": "dc47344dbb6cb5b655c8460d561f4df5f501b90c804ad3c6cec65fe322351ab1", + "dist/fonts/KaTeX_Math-Italic.woff2": "7af58c5ec8f132a2ddde9027c6d7814decce4d3b822a11192a42a20e2e973264", + "dist/fonts/KaTeX_SansSerif-Bold.woff2": "e99ae51144bf1232efcc1bfe5add36262c6866b0faab24fa75740e1b98577a62", + "dist/fonts/KaTeX_SansSerif-Italic.woff2": "00b26ac825e2095056396e0553b8ac26d3f8ad158c3826e28b4c45b385c4714a", + "dist/fonts/KaTeX_SansSerif-Regular.woff2": "68e8c73ef42afd3ccec58bf0fba302cce448938e7fc020a5e31f8a952eee1342", + "dist/fonts/KaTeX_Script-Regular.woff2": "036d4e95149b69ff9bcc0cd55771efeb25ffa3947293e69acd78d5ac328c684b", + "dist/fonts/KaTeX_Size1-Regular.woff2": "6b47c40166b6dbe21a5dfca7718413f2147fd2399be1ba605d8ad39cedf25dfe", + "dist/fonts/KaTeX_Size2-Regular.woff2": "d04c54219f9eaec6d4d4fd42dfb28785975a4794d6b2fc71e566b9cd6db842dd", + "dist/fonts/KaTeX_Size3-Regular.woff2": "73d591271b1604960cb10bb90fee021670af7297017e0e98480b332d11f51995", + "dist/fonts/KaTeX_Size4-Regular.woff2": "a4af7d414440a1c1790825cfb700cf9cf43b0f2c4b04f0ebc523011ad9853ec0", + "dist/fonts/KaTeX_Typewriter-Regular.woff2": "71d517d67827787cfabdf186914cc3358eda539e37931941f2b2fd4a21f68c0b", + "dist/katex.min.css": "864f909fc1f3da0f140321d0e277ac0a444d8909e072cdbf174bcea93b95c089", + "dist/katex.min.js": "103a53763cc033bba8d175bf3f0ba597c3505c9b6747dd3f2c7bc2a6bfcc8ae7" + } +} diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_AMS-Regular.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_AMS-Regular.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..0acaaff03d4bb7606de02a827aeee338e5a86910 GIT binary patch literal 28076 zcmV)4K+3;&Pew8T0RR910Bx)Q4gdfE0Qryr0ButM0RR9100000000000000000000 z00006U;u_x2rvnp3=s$lgQIMM!gK*P0we>6dJBXK00bZfh;RpzAq;^h8yChW*tQI) zf474tf9UWmvjer;At_qJJ4ObAjRSzte{IG8|DTss#?U6Pq$r5$-28t~$dN6wErwJo za~1SqW}?_^GLyD_B})qv!-NCu+2=w|xZXP?WH@?W-qc{t=*Dc@7G{&*Rr|f2PJS1C zhC(0s6eQ>iMjQ6NMr%a(8W(NUg-6j?jOV&o6a!>CRL6BUiA-uV3!83tjRD8w9Q zTS)(|WV)+(idwaDgvnbaZjk7gd`Q54BYKt#$^sjr>VY-r-3%|Gm46yDaW9 zA*>`MVXTA%2t!Ch7$IRKA?zg}h>8dZvc$1L!HHv{b?xdd&bo@Vt*u>ZTiaS|hyA~G z{@0vZsQ;#>ocmS+q4P+Q6bJ==`li~vx<@m2JRmS77FvoOGC`1MckSwYimL)UDdBE= zU(y{*T007`?KlPI+1(^67zzMC`>m=oco?9F7&)oE+s{ZQpTPk8{JE5yXE%chKZB_X8HRih-qey z+?Q-qv53jN4{v&CO1eskfOCJa3iT;f#6SE4=USD}rard`&95=?zssa(BF1FNtXLQ1 zZ~TM@OYAGf@a}&8C9fbbx97ge(q^cIwlr8&Knje!sSE&n4+)%A=~R~^uDx$0UY7!KfcrV?PMq?9a+|xdk4sNTo`xT10ZSpv)=wBog^+? zNVtS)ZhL_W7i(KX_NCm#VEfLsy7t$Ty`QJ}p`|<%v{So>8SwJ~C zVK#U35`M*$l6L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+;U*GxH1J0 z0H6E*aQruEo3P+FLWq2s*MQaf8yC-yaqY8i#)?`=qQJk(G#t6i%>^14OGDNFU$nFS zW<{#Mxl|3>!{1XxZW-%aPIZxFHA%J6$BwM?TzLn7UbFpK2*^qgb0o}*r3^XOUna|w zG?H8}o%hkYi=s9#)HD5iJu>EQia6!gA9QiC`x^jICby4*?X%nDwl7kycwjS`Z8-!q z*%gjEx@i!NB@p_7&m zS)oM2>c{G}3Ftw;yx!JfRQ8?A{YDJV$#8$iuyMIOs=Fd;d;T9a596_Id)RU=vNo=l zlVgm8PIfNy1v!4m?pZle^oV(PGE+zFInsi6x*r!s*Yn+E887DbfWjc$;B&3w1$g8w-^4TQ*$WK=;EauvU zZC>+Q&!wIE-_lo2N6)~>#4L@4m5p6`3w_@%88T(bmLr#2o_qxg2h5td>T@`J4p8y| zo{aki2-ZkpRvv* G2<`xUL{2yW literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..75344a1f98e37e2c631e178065854c3a81fb842f GIT binary patch literal 6908 zcmV8Fb8N1fhQaGDMf{_aR5Q!Ty=u~ zF9)2+5IRGd_aY*eXu*h4iwC8kb*{C_QN)VA7RMQTu+u)>xr{eg*P|+Ht6ytXr+d(m zZ~p#e2L!$$0|$%oOtI@cwhS2;jT&TD-BQw*ROSFERP599O_J6$GcUwoCkE!d0F$=B3ebZj) z%u2tl(MPUHcVnr%0uq2j$ZD?mW>&vQa*^&_boaZ?MJ~Oeyzo++dtr6}Y?ubX02szi zP*4Emv9VMKu55x7Pupj&vGqTAnT&D>y#d1ekyijf!(aEQSqT*TC&1j-cL)Ens*}5? zPXgozu7BUTz|2A2s#l8S0Ji^=-i#RP8zmtu&neZRA0(Ii3yrZrSlxAws(Hqkb;`{* z>R>b_>h+hM-@KF)45>S=iBNAa{5HRC7)r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AnixIm(Igk3ouVbmK0} z;W&JsPbL<(RM)Km*&mJwVQx5p&z7RJ#X#SL!A_5himYSg(A7fb%Ix>cvj{c=l8OI_ zPA?`GsY7cS^|)ENDg^}|fO&K_oCxhYk{TB+hHUrAqXX)&bXpPHmGB?IuF!-fMx(Xj1@Z7LYtX7*GKa~9YoWe#0HD$rG`)06%$wu&iQ#MvU0`5~0RX^efNUa2 zZSzD3+vSO{Y!4?QY^R+_OTUV|PKgKEAqv9YjP z7^8%(Woe3At!^D|%a~&V)^fGr0K+B?$7$kVv{ew=IR&*I;~1NG)Rd7{gHklieW*|c zm$aDmVy8z3H=aqhT7!E5_T;7GwQJM!%3a>py0xYxUTHYW>>iA}9j(dvs_lZyX-}+7 zoFf$OIk*nx-eB8}bhQCw`;`)c-JI(#jK(22GL&^dfZskZ8U{ zZpm?1v+{19?dAb+K&ka>49`*k+iqC7Pt2=95j`a(ok#2TlS`#p!{thM?>5Fc3f6J| zfn7eOSP-@vO6|dYa~gM8mbvObT)Ued#WJ}*oFe}O#yD*{RqXQ&)dcl z>#WkUD+QDFIIhLYl4U)@;goriI|7?oty?vf+>uSRrXYG+fdBZLWr&xm8$s?~a&)S) z=~n$m^kvi1(eq*8%a6YRMkeMG`n7EW1ql`+lwFu`5h6t$MDMK{E%#qrRLTpuzU~fy z;QaCn{F{BFJ^;}F?i%uYGyh5;Aifzzx)E&ofgNMaOcjRa0;hZ<7~no@b=K~7zvI17 z4mHY9J&pkzn%F31$=u~mVv~R^d}j6K1iCxXAvOZC{a$!SER?`981pokH CFgb+) literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..395f28beac23c7b0f7f3a1e714bd8dac253dd3bc GIT binary patch literal 11348 zcmV-aEUVLZPew8T0RR9104!7h4gdfE08HQj04x0f0RR9100000000000000000000 z00006U;u#x2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euA+iC$IEc>tG|Ce|}L@ zOCwZq9V))g3tn&U`1+xH1D)NAdpO0{IyuE>{)i(zNyvMTSC9P|f$ztU(r-VXbnh7W zyRRC6w2b?{=`v-K?fG3*t*BVA`^k9N1Q6$#hv+W2xexpR4)|YGXzkI8qswcr=J2RB z!m}nYr32#QnqT$#1?SBP;NTs9D6JuV^;112HXy(Cp8kEbvFSyv=~t>{30T_$Kmo+O literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Main-Italic.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Main-Italic.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..b50920e138807f385d0b0359f4f0f09891f18406 GIT binary patch literal 16988 zcmV(>K-j-`Pew8T0RR91076^<4gdfE0E4su073x(0RR9100000000000000000000 z00006U;u(d2wDl83=s$lfzV`upmYH?0we>33=4t?00bZfh;j#m7Yuo}gkBMuFlG6J5B*sHHKd(*=umo3RRA1q&Aq{Qq;*?z?Zs zS6lWBvpA{|4kRGzglV7W)AM`dl?u#krjN&WNtdj+pK9tmbDj6g11qm=IR>q4=|=`? zti%rTtj4WAvC1G_rIr^=2^+WshA@nFohl_hT*y>e+7AVqh%8x7!MALuOl3;G|JvJS zZ2pf6{GYmVua&&rfSf~>Q|VHyoWtv{ooO}gpZNn4!G}Ns2Wky}~; z-+Rx%Qf?d6zTgLFWNq{L)|&XtUDJ@rBvM+z<#qC}{~v8;7xR!-65^qpmB9aR)86*I z(Fb`#+6{RXz>gL8A*j+OT~ahDXWkvbdrxCqZx*DH?W|_}L8Ap}LZi^ z0IlqWBQJkKu7V{2mMO|~b$%JDQZ#*va?6C3FLd5So^>i7j8{2goP1iH=I;vx?RqZ+f%D!E1Q}Uf z{0KzZ#6dL*1rA#A#nlOe2*^SaCA87WYSuH!F-~xf7kHOX_>w>4Ow>GI^i|*Yqu$(o zy|edpvIl#l$1ki=Wz?DEGei2WNuq=@I_Sp34KMx$U-n%;?B1Oo?y(DFR2sE^J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D{oa1=%ve_1lg$szem2=a}pBF z({>1!YW6>)A>=45Iy@o?=U_`XF9_boBw^wWi5~%ZWLiFk5K!Q?g0XFX!t=lRfchkR z_c?-{3kuwtd~(P+Pka?%gva;py-f6~&*%sWg=MMdU_Lnd&V$AMVIMdYH~;_u7N@=P literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Main-Regular.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Main-Regular.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..eb24a7ba282b03d830fa6c63ee897d92a5188736 GIT binary patch literal 26272 zcmV)0K+eB+Pew8T0RR910A`>74gdfE0Mb|h0A@!30RR9100000000000000000000 z00006U;u_x2wDl83=s$lg4ZO1h%W&)0we>7bPI$&00bZfh>~Lg>lfqq!H9{pqisKVY-r;FZ|J_}3x%f#O2oVCoLIe_|K;jSrB#_|6tcF#nQYuiY zRK(X+)^(Nr)_--CzcH|L6YOKIgtS zV^e?n{KWzdGz>Uvr3ogO(O4za|Gv{cJ82%+Gi-Qo5zvVr0DLZxboS5QW$DVXQ;r?L zmIH039WJ0HEy6d@pqu?CAy_CO;Dwq|QLaaOJrjSrzwPh3%zqSH-@JXOXu3ou^maSn zD6Y9G97Z4w7UP0&7>6YQ{`#g?zwBT4E;k4aiG}91V;Mr|0QXGWtJ_n;Rp(_G-LZ7X zBgu&ZY&pQNp#j4J@h#fb%-g|!nDK9Z{#y17F$vj|Ow$cw^7Zx5lyr?)4bguwH}XpQ zh^e)Sc&Uh2jvmQxaQ?x06H|Yz6Aq_$_jY?{Yg@O_mO4~aKnjeqsU9vsh70XIBy6)b zDEZG{)L+!>A4obA0Y9^&d{=I z1rQNW-S`)HK@33?1Q_TF+)dX^5`^^cPky~Ft6Q`9TUr!UZBCSJl$f=3h(YRSXRjSf z|1Z&uk0Zv)$I=m0ewE+k>r|MjE&PC~R_Rj!|nOT6qEFfVQj7#Ym zT#(NMmbwG?5(z-e(xsRnh)SU3rz4djk$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7n<#u7Q8GA{4o4U61Ajh-O zSFU-^`hD6dL0V6!I(d-l5|L&ABbdTu*6KSDt)=T$X67XpiDi4;ZK}r8gv|)1Ba^uR z`0m+Fbb%w8(Kw-}Cqjo=c&c!@xI5-HRGRdukOnqx7e*sD3A>&dDpTwxNaIfH@ZRcj z)4MzB8V6z6Y&K|~kp{f!+N@Ir7jsuyT&a)-F76iY6flDYQXvg&%u!)8xxuFE^bIb( zQ4jJy09T93jzG|o^1~1q+G8C@0KxBnlb~lpVGXmK_Qj9qqse7}!yWiSn=`F^4s$us#6Mcu_;pho0{r bkH82T%!~T~dOL3iZSfI!+IWoKhyte*`46Vs literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..29657023adc09956249f6295746c8ce4469b50d3 GIT binary patch literal 16400 zcmV+rK<~eIPew8T0RR9106-7`4gdfE0D43K06(+<0RR9100000000000000000000 z00006U;u$k2x2I17PZ00bZfi3|sWeGGvz8}4HTsSn}h_&&m_g4$s+7>x}(e0b|zhiFmih3+Y z_JHa$ux;c|a`FyO&iVK5;5haj2M0Us5CRDY31pB2cF2N2#x@CA?hH+IC$1T5oL#Oi zTm8l{f35!3j;S46ZTBB`{Z8%g_kYV-Npt*qbNf{)Q`HU6L<5cyhmJv2>TM?E4I!B; zTrs$#{npsIL(Zb)U1m1L)1HRv;hxQZYYB2DMJ06qtE=2;?F$=%RNirU)ujURtb7>?5s{7KnM;^!<)4(Fm5+BJ{pbl7Y+ig#pY8WtNs@R;Tv}Vb2zWA1jQzm*#o`3DI zY!Lj&klRuUKmwu&j_kk{H`eCp-_vbX8mEgy4^o9{Y;D`8bQQe5ncy0wN9SLFsawuhEI@!jD6#EQ9wi)K3zoxV;?`!a^soM1A0#+O2q9KiRK~gx40mr#h`^il zZVIM5HcJKuSG5?>jK5AE+syVBx&R<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7ZgsgeVi$csj4wRWp-D?D1O>iV=}fb0>F{=-pTg@6*|1up@(uT9+@hFVlK^Y` z-=0c`uTqR2p8JXyyj!rgeBJt262GDyc`M^%3yZnhI34tsG|h0hG eto0caMqseOdLG;#8C$2}qx2NB2Zcf*0001K|EysE literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Math-Italic.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Math-Italic.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..215c143fd7805a5c2b222bd7892a1a2b09610020 GIT binary patch literal 16440 zcmV(}K+wN;Pew8T0RR9106;hZ4gdfE0D72I17PZ00bZfh;j#meGGvz8}?&GBPzE8 z1u0OUJSyttUiBVPluy!d#s9|yDnr%+PdDJI6W~D+hF7dn3876mx~G$_T&rr^uln5x z|BT}}4pu5P3e*HEr8*eDNTG<1F_;U3ZA=tqpJ7vDW=sX5YRKxDB`FY!LZL8@ z!bX`TSd8YAvLOreMkita9aZ$fQ$*@8r}n?8&fXI{KJWmoXc#0=X$40A*07 z&SI0gyJXs?ugX_CC|r4aZcQPu+bcrpYg<7f7bmfQRh4#o+@zM{cG#5I0dklZ z)z<8ItFoM}%JCB=SLYwy?cof?1GGfhVUk-3A3vRct*O30o6@Q!dZh;dM6m*cJeAl!*4z~IaFs+R8AEDeJOU?u3$8JXqZrnAU^RPh+F zU;a;L|F-we${!dyOb=Y9sM9p#JJMP+Bki*!?>>9v2ey3PS!?%!*)SOVy?*)743p>5skoe=iCPWL7}q;e-a9(G+RBfkb0t=i8_N*+ z7_N0U_z$PkZB<@dmg^}j2qDKj_ZiD2E{-^a@MxAp%Lt*{=gz|MvAU+<%dmy%)1*fC9?>djP?CJbUm!@N*vrK|8L#IrzmL7}7602l}4y?RTD= z#6!3r^5Ona!>#G)S?_S5-S-FtfgimK1aUrG4ns(0(V#gV^>8f@hf-*su5ukNasBL{ zgLBnfJJ-)mbL-qOFU-SP%s=z%Z}%T+!EL+v^$fiHW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&X;4<@FQBZxdcb+_X1=r)kFdjBniptC+RTRQeLoARlL5K$_RDECAh)I^rkm~3 z8$C<10}P%_sEll@bvD6qwT^Imywoi~FT#&A18G(R0)>U{XPz8y1 zXB7;0wF(jTY!xaY!YT$|GEQS#RlFL2mV7OryM4iL(2&JO^jM(V7*c|EiENx4Uz;g8 zVv1Ii0y>StctAr;OX%cw%eFuYocr0aQHv>V$l#)~v?2m+T6NHDzr~6!sPJnviyiVP zOQ*ZMi_f6GHV$$AfH8l>0-Xe6=X;+lBtlDacsvlPT9OLxprP0eXCFMaaMvRqXEUgK zX&#U*ivUkEgPlvF>epop3B%@?$Y$;OwMx@%A@igg(&j(Om3Tk#{4W(c+y^=z>**bea`n(V9&rko|US|m)5J_~KM+@*`Ol37}G&|tH$ z??@950jGTJsCN0<z(I{S3PO5uOsC866l1 G>;nKVNojrn literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..349c06dc609f896392fd5bc8b364d3bc3efc9330 GIT binary patch literal 12028 zcmV659DkbG}7@mjJD1@jO-Eqc8pH1xbNXy>V zuj4@|WLKW95E7|5CLkNL;`-Y+wfA&?GtJ-Z&L(!k4v|`??3CPcqTcL|tNjQ{K536( z{p-EnmtzN&6c7(-?6J;0;$I;9*Or=#CSe6e`Kj!u4Ul0&Ix>QOQ1Y#>s9n_Rs?i!K z`N8}1e;oFIb6U<-O6FuJcnRoEPTZX=aW9wuuhQ&I(s%2$94HMXDG%c+*1)?j&HvPt z{x5f&l`#j}k2io7&=!!w?=Rc&|6fkeUw4gUWm(R$oMkzA?`+>1cE=cO4|J9@oUwe@ zJq9WYEP(~E3>U5e2q**H@Lxant9$O-_qA1~YfFUmMWi9#7(z1*h0+O0B{7{3D{D^4 z+y+H#pL-pvasQi8$-7u`oy}^Vd1cS&h7d}o=09l#K=2N@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*9yjrRykKn!-}`@UYVunQ|r348rO5AJA(*Ity@)<|qcL4O_;%QD<2) zY(Nx>Rn*|71Z8jrYzb{R>et^$tMxj^l^`9nXa%tn>A3iT=a=*56Cu(I!y|;VKTmvw z@A^>_wIECg1Au2?KmH7rfHHt&G#qG%1h6f59s`N9Z48X=voSa(KaRo6O3WAnRdn+r zv@x{mfEGMeI$6J_)~U-lqcv;Pq!(YBAR)Ju5)&(wnQ)2C=hLXy1LGYTw?$^5o(E?x zDpc)i^RkeI4v~;S0oV6czd%sN{6ds#H;(=Q`!u&&HYV?3wSFCIVBPGE`n2&Ev2vX~ zwU_YGl3FiE%~E=EitxoOATybhK-Eb_T%^vJL{{R(8}E(0q0jp`)~PAhcOapT0q}yf zC36Vfu%tu@ib#yo|CYzYI8{S3uv2{kBjP;mQb>sS(zw8b`c}q zWqI}|(Icoo%XzQmS%6|fNZ<9dnUyoZqp;UA{4gV_NfZAmLFm5|eCL89A)}z8p$o&n z6pkeV8wVFpq$ts1#EQe0C`qyu0;$pnrOP0aDN8mn38@@1x$@*IP^d_;QA(6jP*Tw- zQ?5cKEgd}rBNH=>g_Vt+gOiJ!hgX$qKK{U9kr}SL5FEJZX7CUJLckSQU31Be5Fr#I zL1c&mQ6U;chr%F6n2tDV$T1%q9PR697K@b`87R%k@18Yi?|oa&+}Hw{>>lu%_n3_F(PJ`6#Nt`0$e zVdM667!VJSrU5Md*nBWr3&X?YWO#~TS1HorDI&lFFbZ`;84eT_6+glOnwMmpd*ME$ znCnhRh^EDlqhO1f>8t3&+ewp?=v2^<=Io&TCcf@{Fjiv@!SwVG`7mp=@P$dv*MtxP GG{*pT{>~Tx literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Script-Regular.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Script-Regular.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..b3048fc115681ee6c1bc86b0aa158cfbbf59daa3 GIT binary patch literal 9644 zcmV;dB~#jWP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if2U^93KBQ1nB_W2DT*eD@0=WZ?$yb8LPB_zNyw7N8U$s*hgnV& zLQxj7mgik-IH6`i;CUE*-&oJ*9;kci{zG!GhPFx*bh1UamHPl7?_D*^G5@*zw@Y$C z{yzlw?7EjB@ePPU^cDm`kgWP0`8{4=is|doj^U0$?YO2&T*m^CWKhog=!Bc1FaQ2v5 zv0z*Yg|j&vzz^56;*%W7^@2Ovy0P0kI(=*)n6}V2`la7<$B*n;>qcv*cQut7^em76 zy4$Pyene%)5k6Wbba){>b$0#h_gW*O0)XxdKhfVe(8wwJr*e=loJ$tY_dhq9;@^Mw zYj4E||8_t}laGsB3q@-t1TJWL<`Ad)Q*@id!4CfX5RoZau9F&jBqR=5Lr0ZMp!8^l zn0ZZdW-6>Dsn0FK#k(PP%_JpPZ9{ylDSs8s5y+6ChyNn2oA?^uUNK|zL#9ll${8K; ziu}wImRN*<9w+=CLQTzmk@fuelmU~5W}0CLP@_3GVoh`aB1bx4Y!^BZ9#=b18HMP; z*ox_%_|pznbb|T&%9fiSvl}pIo?%@&bQ&d=p+#ol>u9bZU(Q%)sZq?K%?O9+PZ;J7 z+e8Z&N?CcgPfdj`{#318G>KAB#YCgkk7*^p&peeUQ7Hs98l{p@F_=V1>DggSubA&L z@BuYC62q!$lciLeKe+;8QTLH^x@(w4m86E@$PD;eDkcg`F}jL&P>eZ$KSerf@W zY!uKBNAlrj>iPom9DqSUI})<2_Zvb$j%PVob5S#6SyM9!tt>-7O@$6LFFGa8rk@fQ isFOeq9&M@oI}Pp55h!41eSwD&UH=U4=~t{3ha6jZwt}$$ literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Size1-Regular.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Size1-Regular.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..c5a8462fbfe2c39a7c1857b9e296e62500a8a8a5 GIT binary patch literal 5468 zcmV-i6{G5RPew8T0RR9102N#S4gdfE059|a02KrP0RR9100000000000000000000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wQl}5!JVS^_UHzRu>namZ+ z^iM%x70W6!lBGb=`f(NAF;Y>~8qex2_rx)Qd@;~uJ`hC!C>^R~`4B@vsuVvIJX0#k zpocSV0cK=|iO)n}#-J)J&co63=RnM?GV7|MdzwaB|oq zZ87}%ab7O*a;O!Q9A9cXmmBYE(ap5f95`NNRSbOQk21kCbSTW_wYVp z2#Yg>BRo+NfvAb7S~_p0-Cl0*@7!s3sF%!~(?0cIq=^x7MC8vM1&(sfT{Ulb{^<%Z z_CdTjx#liHw%1-KKR67z;4Y}#cL5pmw#5}60w8VqI0*w(-jzf)dupz`HrJS`ou#Ee uC}16e%Gv>UrEUWr7J?uwp6K^lh(`Fkpv`!YL^q7xb{CaG@8Q~cR8|6Fhs$~Z literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Size4-Regular.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Size4-Regular.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..680c13085076a2f6c5a7e695935ec3f21cddb65f GIT binary patch literal 4928 zcmV-G6Tj?tPew8T0RR91024p}4gdfE04S^g021l|0RR9100000000000000000000 z00006U;u$M2o4FH3=s$lpb(dJ0X7081A$BnXaEEt1&II$gDMPx92+(xvye7xR)-Qr zuyF+D<2}WHmB5qvtDzk>iwqJnL*(fZs|06Yb!k(1`ETc1I4-BI5fi@^u8fdm)_=e` zdp}9j)YFz0DG~@_Kr>cMHY70C!K^ZDLNTA1b7Br>uDhMiy#E2l3s-l)|7lD20$2hm z@RXnGF4_PYHl#gB*k&mx`PNs|E@~BRiaIk-Yp%L*)p~xqH)tK24LDPq+9^`k`Cgg@ z?wr3yPQ)iMi`0C({fo<{L5l+`f3Eib=1O^!+?5mxbFzfbmnAs&^Jiy+y`4!4(_Cp% zqD;z%tlFv-x2E;!;w zVW0LxIo!N76;gG%@Hb~*66P0cigm@!%!Cno$kKtF{J6eOf$5?ZhZ zGxUV~z5L(+ewzJn*7bz*N{9T6&S$7sY0!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>H%ZG z^-DO;E}HCzW9!w$_j~-7$l*4@;Rv(b4R1>?|7ShTT$e0)e4>665*$kjchBvGYlW zVFf{88Rp5xs_ysr^`=9=Fi?M47nbk1E?9R>W>`1R@MHqzN_m-wSvrhkCVj<4pSw2P z9)=TJ^AcaxXRvNtuJ_T1AAF?ccXZ%oE_l%9(r`;hs!%jQG?KAQ^?y|NMm0=%m zDp3wQk=5Rfussmr&7R<7&lQCop?gBz@77;ie_dPVir%j-KZ3*88_esm=dk1WcPGAg zto?*Wm=AMA!|Wqb!MEldKGJdgGeJxdqsAN-1>yD|6?!3WhqDhm>PHM>j@5nhx#9SC zj^p2-XK{?-drRD44zlS_--hSvOCM?YJ?{7N{K3&Z!TxDjURSqu!?e!HYXw&1>@L0Z zZ=-jKj*UzCrvgQ_uG{h>He8n&ugf-VTVA_iTHV%la@cN*S^%7Rg7*2Tf+kR*!tk*_@q85UwF!pw(p|nk`ns4bNmF3u!6WrJ!9# zT^44B(E|fR(rr2R^(;aba*?6@{ZjXVY_1F|9y?hWL?q1gppPxAM3zE_WC}8Bbh)$x z{n%R~yGzrnT4THQvNK6vTcWBi$4ecM>e*PrOhhnvRW%Hq7FP?Yee05N4RUnp3c%t4 z38w?h+SS7nbYPivurP_2byCduQ6FY!VI<&E`djO1pk75!^k?zAa`GJs5iIxC+f{{a z7`Rzd#v*CwDlx~hw-hBXRw<4;5_Hl%w*>9g(~%NK%i=IJp!MrN39~R2^?_pyOs5yO z6ge2o{ae&O0u#(|U<%4nfdyzK24CVUVu`~Yq$8g6B#?oOWFj+J$VxU6$xaS(QWUw! zP0CfBZ=4xqAJKL2sICSTTqTeI literal 0 HcmV?d00001 diff --git a/serve/web/vendor/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 b/serve/web/vendor/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..771f1af705f5cef5f578b3a1e7d8eff66f9b76b0 GIT binary patch literal 13568 zcmV+bHUG+YPew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MDqRe;IUMow%&r#FFU3xHbgvPTtq9`Tv9R&PLef>N|ssVSQskO?P-g7p~ zCP68+rc(M)Q)A_{PG0t4uk``s=9Ky|tHj?!fYT&uyr%rH2Oug$86&l;xQbg%1sU$h z((YsLY{=2FbrpL6OANW^RGADzoFi2Ao-%5GAY(ZK3+XjQ*)r_%_0uA87vTg4I&Pv$ zoo6EjC|)u+L-Od-3K^M5dE#Df0?|i}8RpUlfSMeYDo)~Pn%b!ioPy+FA=Igdonyr> zddn5~@*@l?7Ly%D*}m?zrvP$*^Z7LsK`I4|IOrYw z%mma?KlxW&tQ{4jgu_m2`QKu8p+*0;IPm|AA2Tp~0zx8U5>hyV42eQxu;dh!RMa%I zqUh)u7@3$^M2itCPW;COo}7PvyA-L?q<`J@XH1rCIdbK3$mitZ=Hca2z^_n|VgV&e zl_^&tD5O%AYBg%rsn?)UlV&Yig|!7{4o_O_Q@4`G|9p`Gi!9+IAN#~@pQX$StE{ok z2AgcL%?`VG)8X{kFCnoNzFO_9xoKwAS?i6?bc^0(v$pf-24xvVl^VTf^vTf{#*Uqy z2?|4BK6K@y51!RkerYBzsY>|D@!>0@POF>sV*j)k?p}&|v)%}_ZsiD^4F!exS-wI4 z&a1bt3V0_?49+3t+y79NTY0JW^O%c+a~}T5DG&LNQM9%p;XJ@uIIA854zN}e-)`N9 z^KD&^4pNLb!qCDvSBysY87J7A0?M0fJ8nOQ(}aI$%AE_+Opl<`rO1C$>3SRP;Zm{g G0ssIW.katex-newline{display:block}.katex .katex-base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .katex-base,.katex .katex-strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .katex-vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .katex-thinbox{display:inline-flex;flex-direction:row;max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .katex-hdashline,.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-rule,.katex .katex-underline .underline-line,.katex .mfrac .frac-line{min-height:1px}.katex .mspace{display:inline-block}.katex .katex-smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.katex-inner,.katex .llap>.katex-inner,.katex .rlap>.katex-inner{position:absolute}.katex .clap>.katex-fix,.katex .llap>.katex-fix,.katex .rlap>.katex-fix{display:inline-block}.katex .llap>.katex-inner{right:0}.katex .clap>.katex-inner,.katex .rlap>.katex-inner{left:0}.katex .clap>.katex-inner>span{margin-left:-50%;margin-right:50%}.katex .katex-rule{border:0 solid;display:inline-block;position:relative}.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .katex-hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.katex-root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .katex-sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .katex-sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .katex-sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .katex-sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .katex-sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .katex-sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .katex-sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .katex-sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .katex-sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .katex-sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .katex-sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .katex-sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .katex-sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .katex-sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .katex-sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .katex-sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .katex-sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .katex-sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .katex-sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .katex-sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .katex-sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .katex-sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .katex-sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .katex-sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .katex-sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .katex-sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .katex-sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .katex-sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .katex-sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .katex-sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .katex-sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .katex-sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .katex-sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .katex-sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .katex-sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .katex-sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .katex-sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .katex-sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .katex-sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .katex-sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .katex-sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .katex-sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .katex-sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .katex-sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .katex-sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .katex-sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .katex-sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .katex-sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .katex-sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .katex-sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .katex-sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .katex-sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .katex-sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .katex-sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .katex-sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .katex-sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .katex-sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .katex-sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .katex-sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .katex-sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .katex-sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .katex-sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .katex-sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .katex-sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .katex-sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .katex-sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .katex-sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .katex-sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .katex-sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .katex-sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .katex-sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .katex-sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .katex-sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .katex-sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .katex-sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .katex-sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .katex-sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .katex-sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .katex-sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .katex-sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .katex-sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .katex-sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .katex-sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .katex-sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .katex-sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .katex-sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .katex-sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .katex-sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .katex-sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .katex-sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .katex-sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .katex-sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .katex-sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .katex-sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .katex-sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .katex-sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .katex-sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .katex-sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .katex-sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .katex-sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .katex-sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .katex-sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .katex-sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .katex-sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .katex-sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .katex-sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .katex-sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .katex-sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .katex-sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .katex-sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .katex-sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .katex-sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .katex-sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .katex-sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .katex-sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .katex-sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .katex-sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .katex-sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .katex-sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .katex-sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .katex-sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .katex-accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .katex-accent .accent-body{position:relative}.katex .katex-accent .accent-body:not(.accent-full){width:0}.katex .katex-overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .katex-stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .katex-stretchy:after,.katex .katex-stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .katex-sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .reflectbox{display:inline-block;transform:scaleX(-1)}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.katex-tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.katex-tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo} diff --git a/serve/web/vendor/katex/dist/katex.min.js b/serve/web/vendor/katex/dist/katex.min.js new file mode 100644 index 00000000..4a6810d6 --- /dev/null +++ b/serve/web/vendor/katex/dist/katex.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return go}});class r extends Error{constructor(e,t){let n,o,s="KaTeX parse error: "+e;const i=t&&t.loc;if(i&&i.start<=i.end){const e=i.lexer.input;n=i.start,o=i.end,n===e.length?s+=" at end of input: ":s+=" at position "+(n+1)+": ";const t=e.slice(n,o).replace(/[^]/g,"$&\u0332");let r,a;r=n>15?"\u2026"+e.slice(n-15,n):e.slice(0,n),a=o+15e.replace(o,"-$1").toLowerCase(),i={"&":"&",">":">","<":"<",'"':""","'":"'"},a=/[&><"']/g,l=e=>String(e).replace(a,e=>i[e]),c=e=>"ordgroup"===e.type||"color"===e.type?1===e.body.length?c(e.body[0]):e:"font"===e.type?c(e.body):e,h=new Set(["mathord","textord","atom"]),m=e=>h.has(c(e).type),u={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function p(e){if(Object.prototype.hasOwnProperty.call(e,"default")&&void 0!==e.default)return e.default;return function(e){if("string"!=typeof e)return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}(Array.isArray(e.type)?e.type[0]:e.type)}function d(e,t,r,n){const o=Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0,s=Object.prototype.hasOwnProperty.call(n,"processor")?n.processor:void 0;e[t]=void 0!==o?s?s(o):o:p(n)}class g{constructor(e){void 0===e&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(const t of Object.keys(u)){const r=u[t];r&&d(this,t,e,r)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){const t=(e=>{const t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"})(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class f{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return b[y[this.id]]}sub(){return b[x[this.id]]}fracNum(){return b[w[this.id]]}fracDen(){return b[v[this.id]]}cramp(){return b[k[this.id]]}text(){return b[z[this.id]]}isTight(){return this.size>=2}}const b=[new f(0,0,!1),new f(1,0,!0),new f(2,1,!1),new f(3,1,!0),new f(4,2,!1),new f(5,2,!0),new f(6,3,!1),new f(7,3,!0)],y=[4,5,4,5,6,7,6,7],x=[5,5,5,5,7,7,7,7],w=[2,3,4,5,6,7,6,7],v=[3,3,5,5,7,7,7,7],k=[1,1,3,3,5,5,7,7],z=[0,1,2,3,2,3,2,3];var S={DISPLAY:b[0],TEXT:b[2],SCRIPT:b[4],SCRIPTSCRIPT:b[6]};const M=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];const A=[];function T(e){for(let t=0;t=A[t]&&e<=A[t+1])return!0;return!1}M.forEach(e=>e.blocks.forEach(e=>A.push(...e)));const C=e=>e+" "+e,B=80,q={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:C("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:C("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:C("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:C("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:C("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:C("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:C("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:C("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class I{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createDocumentFragment();for(let t=0;t{if("toText"in e)return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}const R={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},O={ex:!0,em:!0,mu:!0},E=function(e){return"string"!=typeof e&&(e=e.unit),e in R||e in O||"ex"===e},H=function(e,t){let r;if(e.unit in R)r=R[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{let o;if(o=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=o.fontMetrics().xHeight;else{if("em"!==e.unit)throw new n("Invalid unit: '"+e.unit+"'");r=o.fontMetrics().quad}o!==t&&(r*=o.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},N=function(e){return+e.toFixed(4)+"em"},D=function(e){return e.filter(e=>e).join(" ")},L=function(e){let t="";for(const r of Object.keys(e)){const n=e[r];void 0!==n&&(t+=s(r)+":"+n+";")}return t},F=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}},P=function(e){const t=document.createElement(e);t.className=D(this.classes),Object.assign(t.style,this.style);for(const e of Object.keys(this.attributes))t.setAttribute(e,this.attributes[e]);for(let e=0;e/=\x00-\x1f]/,G=function(e){let t="<"+e;this.classes.length&&(t+=' class="'+l(D(this.classes))+'"');const r=L(this.style);r&&(t+=' style="'+l(r)+'"');for(const e of Object.keys(this.attributes)){if(V.test(e))throw new n("Invalid attribute name '"+e+"'");t+=" "+e+'="'+l(this.attributes[e])+'"'}t+=">";for(let e=0;e",t};class j{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,F.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return P.call(this,"span")}toMarkup(){return G.call(this,"span")}}class U{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,F.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return P.call(this,"a")}toMarkup(){return G.call(this,"a")}}class Y{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){let e=''+l(this.alt)+'=n[0]&&e<=n[1])return r.name}}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=X[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createTextNode(this.text);let t=null;return this.italic>0&&(t=document.createElement("span"),t.style.marginRight=N(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=D(this.classes)),Object.keys(this.style).length>0&&(t=t||document.createElement("span"),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){let e=!1,t="0&&(r+="margin-right:"+N(this.italic)+";"),r+=L(this.style),r&&(e=!0,t+=' style="'+l(r)+'"');const n=l(this.text);return e?(t+=">",t+=n,t+="",t):n}}class _{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(let t=0;t':''}}class Z{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="","\\gt",!0),oe(se,ae,be,"\u2208","\\in",!0),oe(se,ae,be,"\ue020","\\@not"),oe(se,ae,be,"\u2282","\\subset",!0),oe(se,ae,be,"\u2283","\\supset",!0),oe(se,ae,be,"\u2286","\\subseteq",!0),oe(se,ae,be,"\u2287","\\supseteq",!0),oe(se,le,be,"\u2288","\\nsubseteq",!0),oe(se,le,be,"\u2289","\\nsupseteq",!0),oe(se,ae,be,"\u22a8","\\models"),oe(se,ae,be,"\u2190","\\leftarrow",!0),oe(se,ae,be,"\u2264","\\le"),oe(se,ae,be,"\u2264","\\leq",!0),oe(se,ae,be,"<","\\lt",!0),oe(se,ae,be,"\u2192","\\rightarrow",!0),oe(se,ae,be,"\u2192","\\to"),oe(se,le,be,"\u2271","\\ngeq",!0),oe(se,le,be,"\u2270","\\nleq",!0),oe(se,ae,ye,"\xa0","\\ "),oe(se,ae,ye,"\xa0","\\space"),oe(se,ae,ye,"\xa0","\\nobreakspace"),oe(ie,ae,ye,"\xa0","\\ "),oe(ie,ae,ye,"\xa0"," "),oe(ie,ae,ye,"\xa0","\\space"),oe(ie,ae,ye,"\xa0","\\nobreakspace"),oe(se,ae,ye,"","\\nobreak"),oe(se,ae,ye,"","\\allowbreak"),oe(se,ae,fe,",",","),oe(se,ae,fe,";",";"),oe(se,le,he,"\u22bc","\\barwedge",!0),oe(se,le,he,"\u22bb","\\veebar",!0),oe(se,ae,he,"\u2299","\\odot",!0),oe(se,ae,he,"\u2295","\\oplus",!0),oe(se,ae,he,"\u2297","\\otimes",!0),oe(se,ae,xe,"\u2202","\\partial",!0),oe(se,ae,he,"\u2298","\\oslash",!0),oe(se,le,he,"\u229a","\\circledcirc",!0),oe(se,le,he,"\u22a1","\\boxdot",!0),oe(se,ae,he,"\u25b3","\\bigtriangleup"),oe(se,ae,he,"\u25bd","\\bigtriangledown"),oe(se,ae,he,"\u2020","\\dagger"),oe(se,ae,he,"\u22c4","\\diamond"),oe(se,ae,he,"\u22c6","\\star"),oe(se,ae,he,"\u25c3","\\triangleleft"),oe(se,ae,he,"\u25b9","\\triangleright"),oe(se,ae,ge,"{","\\{"),oe(ie,ae,xe,"{","\\{"),oe(ie,ae,xe,"{","\\textbraceleft"),oe(se,ae,me,"}","\\}"),oe(ie,ae,xe,"}","\\}"),oe(ie,ae,xe,"}","\\textbraceright"),oe(se,ae,ge,"{","\\lbrace"),oe(se,ae,me,"}","\\rbrace"),oe(se,ae,ge,"[","\\lbrack",!0),oe(ie,ae,xe,"[","\\lbrack",!0),oe(se,ae,me,"]","\\rbrack",!0),oe(ie,ae,xe,"]","\\rbrack",!0),oe(se,ae,ge,"(","\\lparen",!0),oe(se,ae,me,")","\\rparen",!0),oe(ie,ae,xe,"<","\\textless",!0),oe(ie,ae,xe,">","\\textgreater",!0),oe(se,ae,ge,"\u230a","\\lfloor",!0),oe(se,ae,me,"\u230b","\\rfloor",!0),oe(se,ae,ge,"\u2308","\\lceil",!0),oe(se,ae,me,"\u2309","\\rceil",!0),oe(se,ae,xe,"\\","\\backslash"),oe(se,ae,xe,"\u2223","|"),oe(se,ae,xe,"\u2223","\\vert"),oe(ie,ae,xe,"|","\\textbar",!0),oe(se,ae,xe,"\u2225","\\|"),oe(se,ae,xe,"\u2225","\\Vert"),oe(ie,ae,xe,"\u2225","\\textbardbl"),oe(ie,ae,xe,"~","\\textasciitilde"),oe(ie,ae,xe,"\\","\\textbackslash"),oe(ie,ae,xe,"^","\\textasciicircum"),oe(se,ae,be,"\u2191","\\uparrow",!0),oe(se,ae,be,"\u21d1","\\Uparrow",!0),oe(se,ae,be,"\u2193","\\downarrow",!0),oe(se,ae,be,"\u21d3","\\Downarrow",!0),oe(se,ae,be,"\u2195","\\updownarrow",!0),oe(se,ae,be,"\u21d5","\\Updownarrow",!0),oe(se,ae,de,"\u2210","\\coprod"),oe(se,ae,de,"\u22c1","\\bigvee"),oe(se,ae,de,"\u22c0","\\bigwedge"),oe(se,ae,de,"\u2a04","\\biguplus"),oe(se,ae,de,"\u22c2","\\bigcap"),oe(se,ae,de,"\u22c3","\\bigcup"),oe(se,ae,de,"\u222b","\\int"),oe(se,ae,de,"\u222b","\\intop"),oe(se,ae,de,"\u222c","\\iint"),oe(se,ae,de,"\u222d","\\iiint"),oe(se,ae,de,"\u220f","\\prod"),oe(se,ae,de,"\u2211","\\sum"),oe(se,ae,de,"\u2a02","\\bigotimes"),oe(se,ae,de,"\u2a01","\\bigoplus"),oe(se,ae,de,"\u2a00","\\bigodot"),oe(se,ae,de,"\u222e","\\oint"),oe(se,ae,de,"\u222f","\\oiint"),oe(se,ae,de,"\u2230","\\oiiint"),oe(se,ae,de,"\u2a06","\\bigsqcup"),oe(se,ae,de,"\u222b","\\smallint"),oe(ie,ae,ue,"\u2026","\\textellipsis"),oe(se,ae,ue,"\u2026","\\mathellipsis"),oe(ie,ae,ue,"\u2026","\\ldots",!0),oe(se,ae,ue,"\u2026","\\ldots",!0),oe(se,ae,ue,"\u22ef","\\@cdots",!0),oe(se,ae,ue,"\u22f1","\\ddots",!0),oe(se,ae,xe,"\u22ee","\\varvdots"),oe(ie,ae,xe,"\u22ee","\\varvdots"),oe(se,ae,ce,"\u02ca","\\acute"),oe(se,ae,ce,"\u02cb","\\grave"),oe(se,ae,ce,"\xa8","\\ddot"),oe(se,ae,ce,"~","\\tilde"),oe(se,ae,ce,"\u02c9","\\bar"),oe(se,ae,ce,"\u02d8","\\breve"),oe(se,ae,ce,"\u02c7","\\check"),oe(se,ae,ce,"^","\\hat"),oe(se,ae,ce,"\u20d7","\\vec"),oe(se,ae,ce,"\u02d9","\\dot"),oe(se,ae,ce,"\u02da","\\mathring"),oe(se,ae,pe,"\ue131","\\@imath"),oe(se,ae,pe,"\ue237","\\@jmath"),oe(se,ae,xe,"\u0131","\u0131"),oe(se,ae,xe,"\u0237","\u0237"),oe(ie,ae,xe,"\u0131","\\i",!0),oe(ie,ae,xe,"\u0237","\\j",!0),oe(ie,ae,xe,"\xdf","\\ss",!0),oe(ie,ae,xe,"\xe6","\\ae",!0),oe(ie,ae,xe,"\u0153","\\oe",!0),oe(ie,ae,xe,"\xf8","\\o",!0),oe(ie,ae,xe,"\xc6","\\AE",!0),oe(ie,ae,xe,"\u0152","\\OE",!0),oe(ie,ae,xe,"\xd8","\\O",!0),oe(ie,ae,ce,"\u02ca","\\'"),oe(ie,ae,ce,"\u02cb","\\`"),oe(ie,ae,ce,"\u02c6","\\^"),oe(ie,ae,ce,"\u02dc","\\~"),oe(ie,ae,ce,"\u02c9","\\="),oe(ie,ae,ce,"\u02d8","\\u"),oe(ie,ae,ce,"\u02d9","\\."),oe(ie,ae,ce,"\xb8","\\c"),oe(ie,ae,ce,"\u02da","\\r"),oe(ie,ae,ce,"\u02c7","\\v"),oe(ie,ae,ce,"\xa8",'\\"'),oe(ie,ae,ce,"\u02dd","\\H"),oe(ie,ae,ce,"\u25ef","\\textcircled");const we={"--":!0,"---":!0,"``":!0,"''":!0};oe(ie,ae,xe,"\u2013","--",!0),oe(ie,ae,xe,"\u2013","\\textendash"),oe(ie,ae,xe,"\u2014","---",!0),oe(ie,ae,xe,"\u2014","\\textemdash"),oe(ie,ae,xe,"\u2018","`",!0),oe(ie,ae,xe,"\u2018","\\textquoteleft"),oe(ie,ae,xe,"\u2019","'",!0),oe(ie,ae,xe,"\u2019","\\textquoteright"),oe(ie,ae,xe,"\u201c","``",!0),oe(ie,ae,xe,"\u201c","\\textquotedblleft"),oe(ie,ae,xe,"\u201d","''",!0),oe(ie,ae,xe,"\u201d","\\textquotedblright"),oe(se,ae,xe,"\xb0","\\degree",!0),oe(ie,ae,xe,"\xb0","\\degree"),oe(ie,ae,xe,"\xb0","\\textdegree",!0),oe(se,ae,xe,"\xa3","\\pounds"),oe(se,ae,xe,"\xa3","\\mathsterling",!0),oe(ie,ae,xe,"\xa3","\\pounds"),oe(ie,ae,xe,"\xa3","\\textsterling",!0),oe(se,le,xe,"\u2720","\\maltese"),oe(ie,le,xe,"\u2720","\\maltese");const ve='0123456789/@."';for(let e=0;e<14;e++){const t=ve.charAt(e);oe(se,ae,xe,t,t)}const ke='0123456789!@*()-=+";:?/.,';for(let e=0;e<25;e++){const t=ke.charAt(e);oe(ie,ae,xe,t,t)}const ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let e=0;e<52;e++){const t=ze.charAt(e);oe(se,ae,pe,t,t),oe(ie,ae,xe,t,t)}let Se;oe(se,le,xe,"C","\u2102"),oe(ie,le,xe,"C","\u2102"),oe(se,le,xe,"H","\u210d"),oe(ie,le,xe,"H","\u210d"),oe(se,le,xe,"N","\u2115"),oe(ie,le,xe,"N","\u2115"),oe(se,le,xe,"P","\u2119"),oe(ie,le,xe,"P","\u2119"),oe(se,le,xe,"Q","\u211a"),oe(ie,le,xe,"Q","\u211a"),oe(se,le,xe,"R","\u211d"),oe(ie,le,xe,"R","\u211d"),oe(se,le,xe,"Z","\u2124"),oe(ie,le,xe,"Z","\u2124"),oe(se,ae,pe,"h","\u210e"),oe(ie,ae,pe,"h","\u210e");for(let e=0;e<52;e++){const t=ze.charAt(e);Se=String.fromCharCode(55349,56320+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,56372+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,56424+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,56580+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,56684+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,56736+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,56788+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,56840+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,56944+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),e<26&&(Se=String.fromCharCode(55349,56632+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,56476+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se))}Se=String.fromCharCode(55349,56668),oe(se,ae,pe,"k",Se),oe(ie,ae,xe,"k",Se);for(let e=0;e<10;e++){const t=e.toString();Se=String.fromCharCode(55349,57294+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,57314+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,57324+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se),Se=String.fromCharCode(55349,57334+e),oe(se,ae,pe,t,Se),oe(ie,ae,xe,t,Se)}const Me="\xd0\xde\xfe";for(let e=0;e<3;e++){const t=Me.charAt(e);oe(se,ae,pe,t,t),oe(ie,ae,xe,t,t)}const Ae={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Te={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},Ce={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},Be={mathClass:"",textClass:"",font:""},qe={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Ie={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},Re={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Oe={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Ee={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},He={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Ne={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},De=[Ae,Ae,Te,Te,Ce,Ce,{mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Be,Be,Be,qe,qe,Ie,Ie,Re,Re,Oe,Oe,Ee,Ee,He,He,Be,Be,Ne,Ne],Le=[Ae,Be,Oe,Ee,Ne];function Fe(e){const t=e.strict,r=e.errorCode,o=e.errorMsg,s=e.token,i=e.report;let a=t;if("function"==typeof t)if(i)a=t(r,o,s);else try{a=t(r,o,s)}catch(e){a="error"}switch(a){case!0:case"error":if(i)throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+o+" ["+r+"]",s);return!0;case!1:case"ignore":if(!i)return!1;break;default:if("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+o+" ["+r+"]"),!i)return!1}}const Pe=function(e,t,r){if(ne[r][e]){const t=ne[r][e].replace;t&&(e=t)}return{value:e,metrics:ee(e,t,r)}},Ve=function(e,t,r,n,o){const s=Pe(e,t,r),i=s.metrics;let a;if(e=s.value,i){let t=i.italic;("text"===r||n&&"mathit"===n.font)&&(t=0),a=new W(e,i.height,i.depth,t,i.skew,i.width,o)}else Fe({strict:n.strict,errorCode:"symbolNotInFont",errorMsg:"No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'",report:!0}),a=new W(e,0,0,0,0,0,o);a.maxFontSize=n.sizeMultiplier,n.style.isTight()&&a.classes.push("mtight");const l=n.getColor();return l&&(a.style.color=l),a},Ge=function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&Pe(e,"Main-Bold",t).metrics?Ve(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===ne[t][e].font?Ve(e,"Main-Regular",t,r,n):Ve(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},je=function(e,t){const r="mathord"===e.type?"mathord":"textord",o=e.mode,s=e.text,i=["mord"],a=t.font,l=t.fontFamily,c=t.fontWeight,h=t.fontShape,m="math"===o||"text"===o&&!!a,u=m?a:l;let p="",d="";if(55349===s.charCodeAt(0)){const e=(e=>{const t=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536;if(119808<=t&&t<120484){const e=Math.floor((t-119808)/26);return De[e]}if(120782<=t&&t<=120831){const e=Math.floor((t-120782)/10);return Le[e]}if(120485===t||120486===t)return De[0];if(120486{if(D(e.classes)!==D(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||0!==e.italic&&e.hasClass("mathnormal"))return!1;if(1===e.classes.length){const t=e.classes[0];if("mbin"===t||"mord"===t)return!1}for(const r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(const r of Object.keys(t.style))if(e.style[r]!==t.style[r])return!1;return!0},Ye=e=>{for(let t=0;tt&&(t=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>n&&(n=s.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},We=function(e,t,r,n){const o=new j(e,t,r,n);return Xe(o),o},_e=(e,t,r,n)=>new j(e,t,r,n),$e=function(e,t,r){const n=We([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=N(n.height),n.maxFontSize=1,n},Ze=function(e){const t=new I(e);return Xe(t),t},Ke=function(e,t){return e instanceof I?We([],[e],t):e},Je=function(e,t){const r=function(e){if("individualShift"===e.positionType){const t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth;let o=n;for(let e=1;e{const r=We(["mspace"],[],t),n=H(e,t);return r.style.marginRight=N(n),r},et=(e,t,r)=>{let n,o;switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return o="textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===r?"Italic":"Regular",n+"-"+o},tt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},rt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},nt=function(e,t){const r=rt[e],n=r[0],o=r[1],s=r[2],i=new $(n),a=new _([i],{width:N(o),height:N(s),style:"width:"+N(o),viewBox:"0 0 "+1e3*o+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),l=_e(["katex-overlay"],[a],t);return l.height=s,l.style.height=N(s),l.style.width=N(o),l},ot={number:3,unit:"mu"},st={number:4,unit:"mu"},it={number:5,unit:"mu"},at={mord:{mop:ot,mbin:st,mrel:it,minner:ot},mop:{mord:ot,mop:ot,mrel:it,minner:ot},mbin:{mord:st,mop:st,mopen:st,minner:st},mrel:{mord:it,mop:it,mopen:it,minner:it},mopen:{},mclose:{mop:ot,mbin:st,mrel:it,minner:ot},mpunct:{mord:ot,mop:ot,mrel:it,mopen:ot,mclose:ot,mpunct:ot,minner:ot},minner:{mord:ot,mop:ot,mbin:st,mrel:it,mopen:ot,mpunct:ot,minner:ot}},lt={mord:{mop:ot},mop:{mord:ot,mop:ot},mbin:{},mrel:{},mopen:{},mclose:{mop:ot},mpunct:{},minner:{mop:ot}},ct={},ht={},mt={};function ut(e){const t=e.type,r=e.names,n=e.htmlBuilder,o=e.mathmlBuilder;for(let t=0;t{const r=t.classes[0],n=e.classes[0];"mbin"===r&&bt.has(n)?t.classes[0]="mord":"mbin"===n&&ft.has(r)&&(e.classes[0]="mord")},{node:i},a,l),vt(o,(e,t)=>{var r,n;const o=St(t),i=St(e),a=o&&i?e.hasClass("mtight")?null==(r=lt[o])?void 0:r[i]:null==(n=at[o])?void 0:n[i]:null;if(a)return Qe(a,s)},{node:i},a,l),o},vt=function(e,t,r,n,o){n&&e.push(n);let s=0;for(;sr=>{e.splice(t+1,0,r),s++})(s)}n&&e.pop()},kt=function(e){return e instanceof I||e instanceof U||e instanceof j&&e.hasClass("enclosing")?e:null},zt=function(e,t){const r=kt(e);if(r){const e=r.children;if(e.length){if("right"===t)return zt(e[e.length-1],"right");if("left"===t)return zt(e[0],"left")}}return e},St=function(e,t){if(!e)return null;t&&(e=zt(e,t));const r=e.classes[0];return xt[r]||null},Mt=function(e,t){const r=["nulldelimiter"].concat(e.baseSizingClasses());return We(t.concat(r))},At=function(e,t,r){if(!e)return We();if(ht[e.type]){let n=ht[e.type](e,t);if(r&&t.size!==r.size){n=We(t.sizingClasses(r),[n],t);const e=t.sizeMultiplier/r.sizeMultiplier;n.height*=e,n.depth*=e}return n}throw new n("Got group of unknown type: '"+e.type+"'")};function Tt(e,t){const r=We(["katex-base"],e,t),n=We(["katex-strut"]);return n.style.height=N(r.height+r.depth),r.depth&&(n.style.verticalAlign=N(-r.depth)),r.children.unshift(n),r}function Ct(e,t){let r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);const n=wt(e,t,"root");let o;2===n.length&&n[1].hasClass("katex-tag")&&(o=n.pop());const s=[];let i,a=[];for(let e=0;e0&&(s.push(Tt(a,t)),a=[]),s.push(n[e]));a.length>0&&s.push(Tt(a,t)),r?(i=Tt(wt(r,t,!0),t),i.classes=["katex-tag"],s.push(i)):o&&s.push(o);const l=We(["katex-html"],s);if(l.setAttribute("aria-hidden","true"),i){const e=i.children[0];e.style.height=N(l.height+l.depth),l.depth&&(e.style.verticalAlign=N(-l.depth))}return l}function Bt(e){return new I(e)}class qt{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){const e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const t of Object.entries(this.attributes)){const r=t[0],n=t[1];e.setAttribute(r,n)}this.classes.length>0&&(e.className=D(this.classes));for(let t=0;t0&&(e+=' class ="'+l(D(this.classes))+'"'),e+=">";for(let t=0;t",e}toText(){return this.children.map(e=>e.toText()).join("")}}class It{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return l(this.toText())}toText(){return this.text}}class Rt{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}toNode(){if(this.character)return document.createTextNode(this.character);{const e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",N(this.width)),e}}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}const Ot=new Set(["\\imath","\\jmath"]),Et=new Set(["mrow","mtable"]),Ht=function(e,t,r){var n,o;return ne[t][e]&&ne[t][e].replace&&55349!==e.charCodeAt(0)&&(!Object.prototype.hasOwnProperty.call(we,e)||"tt"!==(null==r||null==(n=r.fontFamily)?void 0:n.slice(4,6))&&"tt"!==(null==r||null==(o=r.font)?void 0:o.slice(4,6)))&&(e=ne[t][e].replace),new It(e)},Nt=function(e){return 1===e.length?e[0]:new qt("mrow",e)},Dt={mathit:"italic",boldsymbol:e=>"textord"===e.type?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},Lt=(e,t)=>{if("text"===e.mode){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold"}const r=t.font;if(!r||"mathnormal"===r)return null;const n=e.mode,o=Dt[r];if(o)return"function"==typeof o?o(e):o;let s=e.text;if(Ot.has(s))return null;if(ne[n][s]){const e=ne[n][s].replace;e&&(s=e)}return ee(s,tt[r].fontName,n)?tt[r].variant:null};function Ft(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){const t=e.children[0];return t instanceof It&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){const t=e.children[0];return t instanceof It&&","===t.text}return!1}const Pt=function(e,t,r){if(1===e.length){const n=Gt(e[0],t);return r&&n instanceof qt&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}const n=[];let o;for(let r=0;r=1&&("mn"===o.type||Ft(o))){const e=s.children[0];e instanceof qt&&"mn"===e.type&&(e.children=[...o.children,...e.children],n.pop())}else if("mi"===o.type&&1===o.children.length){const e=o.children[0];if(e instanceof It&&"\u0338"===e.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){const e=s.children[0];e instanceof It&&e.text.length>0&&(e.text=e.text.slice(0,1)+"\u0338"+e.text.slice(1),n.pop())}}}n.push(s),o=s}return n},Vt=function(e,t,r){return Nt(Pt(e,t,r))},Gt=function(e,t){if(!e)return new qt("mrow");if(mt[e.type])return mt[e.type](e,t);throw new n("Got group of unknown type: '"+e.type+"'")};function jt(e,t,r,n,o){const s=Pt(e,r);let i;i=1===s.length&&s[0]instanceof qt&&Et.has(s[0].type)?s[0]:new qt("mrow",s);const a=new qt("annotation",[new It(t)]);a.setAttribute("encoding","application/x-tex");const l=new qt("semantics",[i,a]),c=new qt("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block");return We([o?"katex":"katex-mathml"],[c])}const Ut=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Yt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Xt=function(e,t){return t.size<2?e:Ut[e-1][t.size-1]};class Wt{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=e.style,this.color=e.color,this.size=e.size||Wt.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Yt[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.strict=e.strict,this._fontMetrics=void 0}extend(e){const t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(t,e),new Wt(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Xt(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Yt[e-1]})}havingBaseStyle(e){e=e||this.style.text();const t=Xt(Wt.BASESIZE,e);return this.size===t&&this.textSize===Wt.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){let e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["katex-sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Wt.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+Wt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){let t;if(t=e>=5?0:e>=3?1:2,!te[t]){const e=te[t]={cssEmPerMu:J.quad[t]/18};for(const r of Object.keys(J))e[r]=J[r][t]}return te[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Wt.BASESIZE=6;var _t=Wt;const $t=e=>new _t({style:e.displayMode?S.DISPLAY:S.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),Zt=function(e,t){if(t.displayMode){const r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=We(r,[e])}return e},Kt=function(e,t,r){const n=$t(r);let o;if("mathml"===r.output)return jt(e,t,n,r.displayMode,!0);if("html"===r.output){const t=Ct(e,n);o=We(["katex"],[t])}else{const s=jt(e,t,n,r.displayMode,!1),i=Ct(e,n);o=We(["katex"],[s,i])}return Zt(o,r)};const Jt={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",underbracket:"\u23b5",overbracket:"\u23b4",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Qt=function(e){const t=new qt("mo",[new It(Jt[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},er={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},tr=new Set(["widehat","widecheck","widetilde","utilde"]),rr=function(e,t){const r=function(){let r=4e5;const n=e.label.slice(1);if(tr.has(n)&&"base"in e){const o="ordgroup"===e.base.type?e.base.body.length:1;let s,i,a;if(o>5)"widehat"===n||"widecheck"===n?(s=420,r=2364,a=.42,i=n+"4"):(s=312,r=2340,a=.34,i="tilde4");else{const e=[1,1,2,2,3,3][o];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][e],s=[0,239,300,360,420][e],a=[0,.24,.3,.3,.36,.42][e],i=n+e):(r=[0,600,1033,2339,2340][e],s=[0,260,286,306,312][e],a=[0,.26,.286,.3,.306,.34][e],i="tilde"+e)}const l=new $(i),c=new _([l],{width:"100%",height:N(a),viewBox:"0 0 "+r+" "+s,preserveAspectRatio:"none"});return{span:_e([],[c],t),minWidth:0,height:a}}{const e=[],o=er[n];if(!o)throw new Error('No SVG data for "'+n+'".');const s=o[0],i=o[1],a=o[2],l=a/1e3,c=s.length;let h,m;if(1===c){if(4!==o.length)throw new Error('Expected 4-tuple for single-path SVG data "'+n+'".');h=["hide-tail"],m=[o[3]]}else if(2===c)h=["halfarrow-left","halfarrow-right"],m=["xMinYMin","xMaxYMin"];else{if(3!==c)throw new Error("Correct katexImagesData or update code here to support\n "+c+" children.");h=["brace-left","brace-center","brace-right"],m=["xMinYMin","xMidYMin","xMaxYMin"]}for(let n=0;n0&&(n.style.minWidth=N(o)),n},nr=new Set(["bin","close","inner","open","punct","rel"]),or=new Set(["accent-token","mathord","op-token","spacing","textord"]);function sr(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function ir(e){const t=ar(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function ar(e){return"atom"===e.type||or.has(e.type)?e:null}function lr(e,t,r){let o="";for(const s of e.body)if("textord"===s.type)o+=s.text;else{if(!r||"spacing"!==s.type||" "!==s.text)throw new n(t,e);o+=" "}return o}const cr=e=>{return e instanceof W?e:((t=e)instanceof j||t instanceof U||t instanceof I)&&1===e.children.length?cr(e.children[0]):void 0;var t},hr=(e,t)=>{let r,n,o;e&&"supsub"===e.type?(n=sr(e.base,"accent"),r=n.base,e.base=r,o=function(e){if(e instanceof j)return e;throw new Error("Expected span but got "+String(e)+".")}(At(e,t)),e.base=n):(n=sr(e,"accent"),r=n.base);const s=At(r,t.havingCrampedStyle());let i=0;var a,l;n.isShifty&&m(r)&&(i=null!=(a=null==(l=cr(s))?void 0:l.skew)?a:0);const c="\\c"===n.label;let h,u=c?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight);if(n.isStretchy)h=rr(n,t),h=Je({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:i>0?{width:"calc(100% - "+N(2*i)+")",marginLeft:N(2*i)}:void 0}]});else{let e,r;"\\vec"===n.label?(e=nt("vec",t),r=rt.vec[1]):(e=je({type:"textord",mode:n.mode,text:n.label},t),e=function(e){if(e instanceof W)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}(e),e.italic=0,r=e.width,c&&(u+=e.depth)),h=We(["accent-body"],[e]);const o="\\textcircled"===n.label;o&&(h.classes.push("accent-full"),u=s.height);let a=i;o||(a-=r/2),h.style.left=N(a),"\\textcircled"===n.label&&(h.style.top=".2em"),h=Je({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-u},{type:"elem",elem:h}]})}const p=We(["mord","katex-accent"],[h],t);return o?(o.children[0]=p,o.height=Math.max(p.height,o.height),o.classes[0]="mord",o):p},mr=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ut({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],numArgs:1,handler:(e,t)=>{const r=dt(t[0]),n=!mr.test(e.funcName),o=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:o,base:r}},htmlBuilder:hr,mathmlBuilder:(e,t)=>{const r=e.isStretchy?Qt(e.label):new qt("mo",[Ht(e.label,e.mode)]),n=new qt("mover",[Gt(e.base,t),r]);return n.setAttribute("accent","true"),n}}),ut({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(e,t)=>{const r=t[0];let n=e.parser.mode;return"math"===n&&(Fe({strict:e.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+e.funcName+" works only in text mode",report:!0}),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}}}),ut({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(e,t)=>{let r=e.parser,n=e.funcName;const o=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:o}},htmlBuilder:(e,t)=>{const r=At(e.base,t),n=rr(e,t),o="\\utilde"===e.label?.12:0,s=Je({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:r}]});return We(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{const r=Qt(e.label),n=new qt("munder",[Gt(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});const ur=e=>{const t=new qt("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ut({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],numArgs:1,numOptionalArgs:1,handler(e,t,r){let n=e.parser,o=e.funcName;return{type:"xArrow",mode:n.mode,label:o,body:t[0],below:r[0]}},htmlBuilder(e,t){const r=t.style;let n=t.havingStyle(r.sup());const o=Ke(At(e.body,n,t),t),s="\\x"===e.label.slice(0,2)?"x":"cd";let i;o.classes.push(s+"-arrow-pad"),e.below&&(n=t.havingStyle(r.sub()),i=Ke(At(e.below,n,t),t),i.classes.push(s+"-arrow-pad"));const a=rr(e,t),l=-t.fontMetrics().axisHeight+.5*a.height;let c,h=-t.fontMetrics().axisHeight-.5*a.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(h-=o.depth),i){const e=-t.fontMetrics().axisHeight+i.height+.5*a.height+.111;c=Je({positionType:"individualShift",children:[{type:"elem",elem:o,shift:h},{type:"elem",elem:a,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:i,shift:e}]})}else c=Je({positionType:"individualShift",children:[{type:"elem",elem:o,shift:h},{type:"elem",elem:a,shift:l,wrapperClasses:["svg-align"]}]});return We(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){const r=Qt(e.label);let n;if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){const o=ur(Gt(e.body,t));if(e.below){const s=ur(Gt(e.below,t));n=new qt("munderover",[r,s,o])}else n=new qt("mover",[r,o])}else if(e.below){const o=ur(Gt(e.below,t));n=new qt("munder",[r,o])}else n=ur(),n=new qt("mover",[r,n]);return n}}),ut({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(e,t){let r=e.parser,n=e.funcName;const o=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:gt(o),isCharacterBox:m(o)}},htmlBuilder:function(e,t){const r=wt(e.body,t,!0);return We([e.mclass],r,t)},mathmlBuilder:function(e,t){let r;const n=Pt(e.body,t);return"minner"===e.mclass?r=new qt("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0],r.type="mi"):r=new qt("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new qt("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}});const pr=e=>{const t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};ut({type:"mclass",names:["\\@binrel"],numArgs:2,handler(e,t){return{type:"mclass",mode:e.parser.mode,mclass:pr(t[0]),body:gt(t[1]),isCharacterBox:m(t[1])}}}),ut({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(e,t){let r=e.parser,n=e.funcName;const o=t[1],s=t[0];let i;i="\\stackrel"!==n?pr(o):"mrel";const a={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==n,body:gt(o)},l="\\underset"===n?{type:"supsub",mode:s.mode,base:a,sub:s}:{type:"supsub",mode:s.mode,base:a,sup:s};return{type:"mclass",mode:r.mode,mclass:i,body:[l],isCharacterBox:m(l)}}}),ut({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(e,t){return{type:"pmb",mode:e.parser.mode,mclass:pr(t[0]),body:gt(t[0])}},htmlBuilder(e,t){const r=wt(e.body,t,!0),n=We([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){const r=Pt(e.body,t),n=new qt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});const dr={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},gr=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),fr=e=>"textord"===e.type&&"@"===e.text,br=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function yr(e,t,r){const n=dr[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{const e={type:"atom",text:n,mode:"math",family:"rel"},o={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[e],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[o],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const e={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[e],[])}default:return{type:"textord",text:" ",mode:"math"}}}ut({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(e,t){let r=e.parser,n=e.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){const r=t.havingStyle(t.style.sup()),n=Ke(At(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=N(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){let r=new qt("mrow",[Gt(e.label,t)]);return r=new qt("mpadded",[r]),r.setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new qt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),ut({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(e,t){return{type:"cdlabelparent",mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){const r=Ke(At(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new qt("mrow",[Gt(e.fragment,t)])}}),ut({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(e,t){let r=e.parser;const o=lr(sr(t[0],"ordgroup"),"\\@char has non-numeric argument");let s,i=parseInt(o);if(isNaN(i))throw new n("\\@char has non-numeric argument "+o);if(i<0||i>1114111)throw new n("\\@char with invalid code point "+o);return i<=65535?s=String.fromCharCode(i):(i-=65536,s=String.fromCharCode(55296+(i>>10),56320+(1023&i))),{type:"textord",mode:r.mode,text:s}}});ut({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(e,t){let r=e.parser;const n=sr(t[0],"color-token").color,o=t[1];return{type:"color",mode:r.mode,color:n,body:gt(o)}},htmlBuilder:(e,t)=>{const r=wt(e.body,t.withColor(e.color),!1);return Ze(r)},mathmlBuilder:(e,t)=>{const r=Pt(e.body,t.withColor(e.color)),n=new qt("mstyle",r);return n.setAttribute("mathcolor",e.color),n}}),ut({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(e,t){let r=e.parser,n=e.breakOnTokenText;const o=sr(t[0],"color-token").color;r.gullet.macros.set("\\current@color",o);const s=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:o,body:s}}}),ut({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){let t=e.parser;const r="["===t.gullet.future().text?t.parseSizeGroup(!0):null,n=!t.settings.displayMode||!Fe({strict:t.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:t.mode,newLine:n,size:r&&sr(r,"size").value}},htmlBuilder(e,t){const r=We(["mspace"],[],t);return e.newLine&&(r.classes.push("katex-newline"),e.size&&(r.style.marginTop=N(H(e.size,t)))),r},mathmlBuilder(e,t){const r=new qt("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",N(H(e.size,t)))),r}});const xr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},wr=e=>{const t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new n("Expected a control sequence",e);return t},vr=(e,t,r,n)=>{let o=e.gullet.macros.get(r.text);null==o&&(r.noexpand=!0,o={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,o,n)};ut({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(e){let t=e.parser,r=e.funcName;t.consumeSpaces();const o=t.fetch();if(xr[o.text])return"\\global"!==r&&"\\\\globallong"!==r||(o.text=xr[o.text]),sr(t.parseFunction(),"internal");throw new n("Invalid token after macro prefix",o)}}),ut({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){let t=e.parser,r=e.funcName,o=t.gullet.popToken();const s=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new n("Expected a control sequence",o);let i,a=0;const l=[[]];for(;"{"!==t.gullet.future().text;)if(o=t.gullet.popToken(),"#"===o.text){if("{"===t.gullet.future().text){i=t.gullet.future(),l[a].push("{");break}if(o=t.gullet.popToken(),!/^[1-9]$/.test(o.text))throw new n('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==a+1)throw new n('Argument number "'+o.text+'" out of order');a++,l.push([])}else{if("EOF"===o.text)throw new n("Expected a macro definition");l[a].push(o.text)}let c=t.gullet.consumeArg().tokens;return i&&c.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(s,{tokens:c,numArgs:a,delimiters:l},r===xr[r]),{type:"internal",mode:t.mode}}}),ut({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){let t=e.parser,r=e.funcName;const n=wr(t.gullet.popToken());t.gullet.consumeSpaces();const o=(e=>{let t=e.gullet.popToken();return"="===t.text&&(t=e.gullet.popToken()," "===t.text&&(t=e.gullet.popToken())),t})(t);return vr(t,n,o,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),ut({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){let t=e.parser,r=e.funcName;const n=wr(t.gullet.popToken()),o=t.gullet.popToken(),s=t.gullet.popToken();return vr(t,n,s,"\\\\globalfuture"===r),t.gullet.pushToken(s),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});const kr=function(e,t,r){const n=ee(ne.math[e]&&ne.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},zr=function(e,t,r,n){const o=r.havingBaseStyle(t),s=We(n.concat(o.sizingClasses(r)),[e],r),i=o.sizeMultiplier/r.sizeMultiplier;return s.height*=i,s.depth*=i,s.maxFontSize=o.sizeMultiplier,s},Sr=function(e,t,r){const n=t.havingBaseStyle(r),o=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=N(o),e.height-=o,e.depth+=o},Mr=function(e,t,r,n,o,s){const i=function(e,t,r,n){return Ve(e,"Size"+t+"-Regular",r,n)}(e,t,o,n),a=zr(We(["delimsizing","size"+t],[i],n),S.TEXT,n,s);return r&&Sr(a,n,S.TEXT),a},Ar=function(e,t,r,n){let o;o="Size1-Regular"===t?"delim-size1":"delim-size4";return{type:"elem",elem:We(["delimsizinginner",o],[We([],[Ve(e,t,r,n)])])}},Tr=function(e,t,r){const n=K["Size4-Regular"][e.charCodeAt(0)]?K["Size4-Regular"][e.charCodeAt(0)][4]:K["Size1-Regular"][e.charCodeAt(0)][4],o=new $("inner",function(e,t){switch(e){case"\u239c":return C("M291 0 H417 V"+t+" H291z");case"\u2223":return C("M145 0 H188 V"+t+" H145z");case"\u2225":return C("M145 0 H188 V"+t+" H145z")+C("M367 0 H410 V"+t+" H367z");case"\u239f":return C("M457 0 H583 V"+t+" H457z");case"\u23a2":return C("M319 0 H403 V"+t+" H319z");case"\u23a5":return C("M263 0 H347 V"+t+" H263z");case"\u23aa":return C("M384 0 H504 V"+t+" H384z");case"\u23d0":return C("M312 0 H355 V"+t+" H312z");case"\u2016":return C("M257 0 H300 V"+t+" H257z")+C("M478 0 H521 V"+t+" H478z");default:return""}}(e,Math.round(1e3*t))),s=new _([o],{width:N(n),height:N(t),style:"width:"+N(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),i=_e([],[s],r);return i.height=t,i.style.height=N(t),i.style.width=N(n),{type:"elem",elem:i}},Cr={type:"kern",size:-.008},Br=new Set(["|","\\lvert","\\rvert","\\vert"]),qr=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Ir=function(e,t,r,n,o,s){let i,a,l,c,h="",m=0;i=l=c=e,a=null;let u="Size1-Regular";"\\uparrow"===e?l=c="\u23d0":"\\Uparrow"===e?l=c="\u2016":"\\downarrow"===e?i=l="\u23d0":"\\Downarrow"===e?i=l="\u2016":"\\updownarrow"===e?(i="\\uparrow",l="\u23d0",c="\\downarrow"):"\\Updownarrow"===e?(i="\\Uparrow",l="\u2016",c="\\Downarrow"):Br.has(e)?(l="\u2223",h="vert",m=333):qr.has(e)?(l="\u2225",h="doublevert",m=556):"["===e||"\\lbrack"===e?(i="\u23a1",l="\u23a2",c="\u23a3",u="Size4-Regular",h="lbrack",m=667):"]"===e||"\\rbrack"===e?(i="\u23a4",l="\u23a5",c="\u23a6",u="Size4-Regular",h="rbrack",m=667):"\\lfloor"===e||"\u230a"===e?(l=i="\u23a2",c="\u23a3",u="Size4-Regular",h="lfloor",m=667):"\\lceil"===e||"\u2308"===e?(i="\u23a1",l=c="\u23a2",u="Size4-Regular",h="lceil",m=667):"\\rfloor"===e||"\u230b"===e?(l=i="\u23a5",c="\u23a6",u="Size4-Regular",h="rfloor",m=667):"\\rceil"===e||"\u2309"===e?(i="\u23a4",l=c="\u23a5",u="Size4-Regular",h="rceil",m=667):"("===e||"\\lparen"===e?(i="\u239b",l="\u239c",c="\u239d",u="Size4-Regular",h="lparen",m=875):")"===e||"\\rparen"===e?(i="\u239e",l="\u239f",c="\u23a0",u="Size4-Regular",h="rparen",m=875):"\\{"===e||"\\lbrace"===e?(i="\u23a7",a="\u23a8",c="\u23a9",l="\u23aa",u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(i="\u23ab",a="\u23ac",c="\u23ad",l="\u23aa",u="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(i="\u23a7",c="\u23a9",l="\u23aa",u="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(i="\u23ab",c="\u23ad",l="\u23aa",u="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(i="\u23a7",c="\u23ad",l="\u23aa",u="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(i="\u23ab",c="\u23a9",l="\u23aa",u="Size4-Regular");const p=kr(i,u,o),d=p.height+p.depth,g=kr(l,u,o),f=g.height+g.depth,b=kr(c,u,o),y=b.height+b.depth;let x=0,w=1;if(null!==a){const e=kr(a,u,o);x=e.height+e.depth,w=2}const v=d+y+x,k=v+Math.max(0,Math.ceil((t-v)/(w*f)))*w*f;let z=n.fontMetrics().axisHeight;r&&(z*=n.sizeMultiplier);const M=k/2-z,A=[];if(h.length>0){const e=k-d-y,t=Math.round(1e3*k),r=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 v84 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(h,Math.round(1e3*e)),o=new $(h,r),s=N(m/1e3),i=N(t/1e3),a=new _([o],{width:s,height:i,viewBox:"0 0 "+m+" "+t}),l=_e([],[a],n);l.height=t/1e3,l.style.width=s,l.style.height=i,A.push({type:"elem",elem:l})}else{if(A.push(Ar(c,u,o,n)),A.push(Cr),null===a){const e=k-d-y+.016;A.push(Tr(l,e,n))}else{const e=(k-d-y-x)/2+.016;A.push(Tr(l,e,n)),A.push(Cr),A.push(Ar(a,u,o,n)),A.push(Cr),A.push(Tr(l,e,n))}A.push(Cr),A.push(Ar(i,u,o,n))}const T=n.havingBaseStyle(S.TEXT),C=Je({positionType:"bottom",positionData:M,children:A});return zr(We(["delimsizing","mult"],[C],T),S.TEXT,n,s)},Rr=.08,Or=function(e,t,r,n,o){const s=function(e,t,r){t*=1e3;let n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,B);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,B);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,B);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,B);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,B);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,B,r)}return n}(e,n,r),i=new $(e,s),a=new _([i],{width:"400em",height:N(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return _e(["hide-tail"],[a],o)},Er=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),Hr=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"]),Nr=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Dr=[0,1.2,1.8,2.4,3],Lr=function(e,t,r,o,s){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),Er.has(e)||Nr.has(e))return Mr(e,t,!1,r,o,s);if(Hr.has(e))return Ir(e,Dr[t],!1,r,o,s);throw new n("Illegal delimiter: '"+e+"'")},Fr=[{type:"small",style:S.SCRIPTSCRIPT},{type:"small",style:S.SCRIPT},{type:"small",style:S.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Pr=[{type:"small",style:S.SCRIPTSCRIPT},{type:"small",style:S.SCRIPT},{type:"small",style:S.TEXT},{type:"stack"}],Vr=[{type:"small",style:S.SCRIPTSCRIPT},{type:"small",style:S.SCRIPT},{type:"small",style:S.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Gr=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";{const t=e.type;throw new Error("Add support for delim type '"+t+"' here.")}},jr=function(e,t,r,n){for(let o=Math.min(2,3-n.style.size);ot)return s}return r[r.length-1]},Ur=function(e,t,r,n,o,s){let i;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),i=Nr.has(e)?Fr:Er.has(e)?Vr:Pr;const a=jr(e,t,i,n);return"small"===a.type?function(e,t,r,n,o,s){const i=Ve(e,"Main-Regular",o,n),a=zr(i,t,n,s);return r&&Sr(a,n,t),a}(e,a.style,r,n,o,s):"large"===a.type?Mr(e,a.size,r,n,o,s):Ir(e,t,r,n,o,s)},Yr=function(e,t,r,n,o,s){const i=n.fontMetrics().axisHeight*n.sizeMultiplier,a=5/n.fontMetrics().ptPerEm,l=Math.max(t-i,r+i),c=Math.max(l/500*901,2*l-a);return Ur(e,c,!0,n,o,s)},Xr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Wr=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function _r(e){return"isMiddle"in e}function $r(e,t){const r=ar(e);if(r&&Wr.has(r.text))return r;throw new n(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Zr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ut({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(e,t)=>{const r=$r(dt(t[0]),e);return{type:"delimsizing",mode:e.parser.mode,size:Xr[e.funcName].size,mclass:Xr[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?We([e.mclass]):Lr(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{const t=[];"."!==e.delim&&t.push(Ht(e.delim,e.mode));const r=new qt("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");const n=N(Dr[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),ut({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(e,t)=>{const r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new n("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:$r(t[0],e).text,color:r}}}),ut({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(e,t)=>{const r=$r(t[0],e),n=e.parser;++n.leftrightDepth;const o=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);const s=sr(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:o,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Zr(e);const r=wt(e.body,t,!0,["mopen","mclose"]);let n,o,s=0,i=0,a=!1;for(let e=0;e{Zr(e);const r=Pt(e.body,t);if("."!==e.left){const t=new qt("mo",[Ht(e.left,e.mode)]);t.setAttribute("fence","true"),r.unshift(t)}if("."!==e.right){const t=new qt("mo",[Ht(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),r.push(t)}return Nt(r)}}),ut({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(e,t)=>{const r=$r(t[0],e);if(!e.parser.leftrightDepth)throw new n("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{let r;return"."===e.delim?r=Mt(t,[]):(r=Lr(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{const r="\\vert"===e.delim||"|"===e.delim?Ht("|","text"):Ht(e.delim,e.mode),n=new qt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});ut({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(e,t,r){let n=e.parser,o=e.funcName;const s=sr(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:n.mode,label:o,backgroundColor:s,body:i}},htmlBuilder:(e,t)=>{const r=Ke(At(e.body,t),t),n=e.label.slice(1);let o,s,i=t.sizeMultiplier;const a=m(e.body);if("sout"===n)o=We(["katex-stretchy","katex-sout"]),o.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if("phase"===n){const e=H({number:.6,unit:"pt"},t),n=H({number:.35,unit:"ex"},t);i/=t.havingBaseSizing().sizeMultiplier;const a=r.height+r.depth+e+n;r.style.paddingLeft=N(a/2+e);const c=Math.floor(1e3*a*i),h="M400000 "+(l=c)+" H0 L"+l/2+" 0 l65 45 L145 "+(l-80)+" H400000z",m=new _([new $("phase",h)],{width:"400em",height:N(c/1e3),viewBox:"0 0 400000 "+c,preserveAspectRatio:"xMinYMin slice"});o=_e(["hide-tail"],[m],t),o.style.height=N(a),s=r.depth+e+n}else{let i,l;/cancel/.test(n)?a||r.classes.push("cancel-pad"):"angl"===n?r.classes.push("anglpad"):r.classes.push("boxpad");let c=0;/box/.test(n)?(c=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),i=t.fontMetrics().fboxsep+("colorbox"===n?0:c),l=i):"angl"===n?(c=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i=4*c,l=Math.max(0,.25-r.depth)):(i=a?.2:0,l=i),o=function(e,t,r,n,o){let s;const i=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(s=We(["katex-stretchy",t],[],o),"fbox"===t){const e=o.color&&o.getColor();e&&(s.style.borderColor=e)}}else{const e=[];/^[bx]cancel$/.test(t)&&e.push(new Z({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new Z({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const r=new _(e,{width:"100%",height:N(i)});s=_e([],[r],o)}return s.height=i,s.style.height=N(i),s}(r,n,i,l,t),/fbox|boxed|fcolorbox/.test(n)?(o.style.borderStyle="solid",o.style.borderWidth=N(c)):"angl"===n&&.049!==c&&(o.style.borderTopWidth=N(c),o.style.borderRightWidth=N(c)),s=r.depth+l,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var l;let c;if(e.backgroundColor)c=Je({positionType:"individualShift",children:[{type:"elem",elem:o,shift:s},{type:"elem",elem:r,shift:0}]});else{const e=/cancel|phase/.test(n)?["svg-align"]:[];c=Je({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:o,shift:s,wrapperClasses:e}]})}return/cancel/.test(n)&&(c.height=r.height,c.depth=r.depth),/cancel/.test(n)&&!a?We(["mord","cancel-lap"],[c],t):We(["mord"],[c],t)},mathmlBuilder:(e,t)=>{let r;const n=new qt(e.label.includes("colorbox")?"mpadded":"menclose",[Gt(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){const r=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+N(r)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n}}),ut({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(e,t,r){let n=e.parser,o=e.funcName;const s=sr(t[0],"color-token").color,i=sr(t[1],"color-token").color,a=t[2];return{type:"enclose",mode:n.mode,label:o,backgroundColor:i,borderColor:s,body:a}}}),ut({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),ut({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(e,t){let r=e.parser,n=e.funcName;const o=t[0];return{type:"enclose",mode:r.mode,label:n,body:o}}}),ut({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(e,t){let r=e.parser,n=e.funcName;"math"===r.mode&&Fe({strict:r.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});const o=t[0];return{type:"enclose",mode:r.mode,label:n,body:o}}}),ut({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\angl",body:t[0]}}});const Kr={};function Jr(e){let t=e.type,r=e.names,n=e.props,o=e.handler,s=e.htmlBuilder,i=e.mathmlBuilder;const a={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o};for(let e=0;e{if(!e.parser.settings.displayMode)throw new n("{"+e.envName+"} can be used only in display mode.")},sn=new Set(["gather","gather*"]);function an(e){if(!e.includes("ed"))return!e.includes("*")}function ln(e,t,r){let o=t.hskipBeforeAndAfter,s=t.addJot,i=t.cols,a=t.arraystretch,l=t.colSeparationType,c=t.autoTag,h=t.singleRow,m=t.emptySingleRow,u=t.maxNumCols,p=t.leqno;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){const t=e.gullet.expandMacroAsText("\\arraystretch");if(null==t)a=1;else if(a=parseFloat(t),!a||a<0)throw new n("Invalid \\arraystretch: "+t)}e.gullet.beginGroup();let d=[];const g=[d],f=[],b=[],y=null!=c?[]:void 0;function x(){c&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new rn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(c)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(x(),b.push(nn(e));;){const t=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();let o={type:"ordgroup",mode:e.mode,body:t};r&&(o={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[o]}),d.push(o);const s=e.fetch().text;if("&"===s){if(u&&d.length===u){if(h||l)throw new n("Too many tab characters: &",e.nextToken);Fe({strict:e.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}e.consume()}else{if("\\end"===s){w(),1!==d.length||"styling"!==o.type||1!==o.body.length||"ordgroup"!==o.body[0].type||0!==o.body[0].body.length||!(g.length>1)&&m||Array.isArray(null==y?void 0:y[y.length-1])||c&&!0===(null==y?void 0:y[y.length-1])||g.pop(),b.length0&&(y+=.25),c.push({pos:y,isDashed:e[t]})}for(x(i[0]),r=0;r0&&(u+=b,ce))for(r=0;r=a)continue;var B,q;if(o>0||e.hskipBeforeAndAfter)i=null!=(B=null==(q=c)?void 0:q.pregap)?B:u,0!==i&&(z=We(["arraycolsep"],[]),z.style.width=N(i),k.push(z));const p=[];for(r=0;r0){const e=$e("katex-hline",t,h),r=$e("katex-hdashline",t,h),n=[{type:"elem",elem:O,shift:0}];for(;c.length>0;){const t=c.pop(),o=t.pos-w;t.isDashed?n.push({type:"elem",elem:r,shift:o}):n.push({type:"elem",elem:e,shift:o})}O=Je({positionType:"individualShift",children:n})}if(0===A.length)return We(["mord"],[O],t);{const e=Je({positionType:"individualShift",children:A}),r=We(["katex-tag"],[e],t);return Ze([O,r])}},mn={c:"center ",l:"left ",r:"right "},un=function(e,t){const r=[],n=new qt("mtd",[],["mtr-glue"]),o=new qt("mtd",[],["mml-eqn-num"]);for(let s=0;s0){const t=e.cols;let r="",n=!1,o=0,i=t.length;"separator"===t[0].type&&(a+="top ",o=1),"separator"===t[t.length-1].type&&(a+="bottom ",i-=1);for(let e=o;e0?"left ":"",a+=h[h.length-1].length>0?"right ":"";for(let e=1;e0&&c&&(n=1),r[e]={type:"align",align:t,pregap:n,postgap:0}}return s.colSeparationType=c?"align":"alignat",s};Jr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){const r=(ar(t[0])?[t[0]]:sr(t[0],"ordgroup").body).map(function(e){const t=ir(e).text;if("lcr".includes(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new n("Unknown column alignment: "+t,e)}),o={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return ln(e.parser,o,cn(e.envName))},htmlBuilder:hn,mathmlBuilder:un}),Jr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){const t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")];let r="c";const o={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){const t=e.parser;if(t.consumeSpaces(),"["===t.fetch().text){if(t.consume(),t.consumeSpaces(),r=t.fetch().text,!"lcr".includes(r))throw new n("Expected l or c or r",t.nextToken);t.consume(),t.consumeSpaces(),t.expect("]"),t.consume(),o.cols=[{type:"align",align:r}]}}const s=ln(e.parser,o,cn(e.envName)),i=Math.max(0,...s.body.map(e=>e.length));return s.cols=new Array(i).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:hn,mathmlBuilder:un}),Jr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){const t=ln(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:hn,mathmlBuilder:un}),Jr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){const r=(ar(t[0])?[t[0]]:sr(t[0],"ordgroup").body).map(function(e){const t=ir(e).text;if("lc".includes(t))return{type:"align",align:t};throw new n("Unknown column alignment: "+t,e)});if(r.length>1)throw new n("{subarray} can contain only one column");const o={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5},s=ln(e.parser,o,"script");if(s.body.length>0&&s.body[0].length>1)throw new n("{subarray} can contain only one column");return s},htmlBuilder:hn,mathmlBuilder:un}),Jr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){const t=ln(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},cn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:hn,mathmlBuilder:un}),Jr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:pn,htmlBuilder:hn,mathmlBuilder:un}),Jr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){sn.has(e.envName)&&on(e);const t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:an(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ln(e.parser,t,"display")},htmlBuilder:hn,mathmlBuilder:un}),Jr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:pn,htmlBuilder:hn,mathmlBuilder:un}),Jr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){on(e);const t={autoTag:an(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ln(e.parser,t,"display")},htmlBuilder:hn,mathmlBuilder:un}),Jr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return on(e),function(e){const t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();const r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new n("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}let r=[];const o=[r];for(let s=0;sAV".includes(o))throw new n('Expected one of "<>AV=|." after @',i[t]);for(let e=0;e<2;e++){let r=!0;for(let a=t+1;a{let r=e.parser,n=e.funcName;const o=dt(t[0]),s=n in gn?gn[n]:n;return{type:"font",mode:r.mode,font:s.slice(1),body:o}},htmlBuilder:(e,t)=>{const r=e.font,n=t.withFont(r);return At(e.body,n)},mathmlBuilder:(e,t)=>{const r=e.font,n=t.withFont(r);return Gt(e.body,n)}}),ut({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(e,t)=>{let r=e.parser;const n=t[0];return{type:"mclass",mode:r.mode,mclass:pr(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:m(n)}}}),ut({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(e,t)=>{let r=e.parser,n=e.funcName,o=e.breakOnTokenText;const s=r.mode,i=r.parseExpression(!0,o);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:i}}}});const fn=(e,t)=>{if(!t)return e;return{type:"styling",mode:e.mode,style:t,body:[e]}};ut({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{let r=e.parser,n=e.funcName;const o=t[0],s=t[1];let i,a=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,a="(",l=")";break;case"\\\\bracefrac":i=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":i=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}const c="\\cfrac"===n;let h=null;return c||n.startsWith("\\d")?h="display":n.startsWith("\\t")&&(h="text"),fn({type:"genfrac",mode:r.mode,numer:o,denom:s,continued:c,hasBarLine:i,leftDelim:a,rightDelim:l,barSize:null},h)},htmlBuilder:(e,t)=>{const r=t.style,n=r.fracNum(),o=r.fracDen();let s;s=t.havingStyle(n);const i=At(e.numer,s,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,r=3.5/t.fontMetrics().ptPerEm;i.height=i.height0?3*h:7*h,p=t.fontMetrics().denom1):(c>0?(m=t.fontMetrics().num2,u=h):(m=t.fontMetrics().num3,u=3*h),p=t.fontMetrics().denom2),l){const e=t.fontMetrics().axisHeight;m-i.depth-(e+.5*c){const r=new qt("mfrac",[Gt(e.numer,t),Gt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const n=H(e.barSize,t);r.setAttribute("linethickness",N(n))}}else r.setAttribute("linethickness","0px");if(null!=e.leftDelim||null!=e.rightDelim){const t=[];if(null!=e.leftDelim){const r=new qt("mo",[new It(e.leftDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}if(t.push(r),null!=e.rightDelim){const r=new qt("mo",[new It(e.rightDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}return Nt(t)}return r}}),ut({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(e){let t,r=e.parser,n=e.funcName,o=e.token;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:o}}});const bn=["display","text","script","scriptscript"],yn=function(e){let t=null;return e.length>0&&(t=e,t="."===t?null:t),t};ut({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(e,t){let r=e.parser;const n=t[4],o=t[5],s=dt(t[0]),i="atom"===s.type&&"open"===s.family?yn(s.text):null,a=dt(t[1]),l="atom"===a.type&&"close"===a.family?yn(a.text):null,c=sr(t[2],"size");let h,m=null;c.isBlank?h=!0:(m=c.value,h=m.number>0);let u=null,p=t[3];if("ordgroup"===p.type){if(p.body.length>0){const e=sr(p.body[0],"textord");u=bn[Number(e.text)]}}else p=sr(p,"textord"),u=bn[Number(p.text)];return fn({type:"genfrac",mode:r.mode,numer:n,denom:o,continued:!1,hasBarLine:h,barSize:m,leftDelim:i,rightDelim:l},u)}}),ut({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(e,t){let r=e.parser,n=(e.funcName,e.token);return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:sr(t[0],"size").value,token:n}}}),ut({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(e,t)=>{let r=e.parser;e.funcName;const n=t[0],o=sr(t[1],"infix").size;if(!o)throw new Error("\\\\abovefrac expected size, but got "+String(o));const s=t[2],i=o.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:s,continued:!1,hasBarLine:i,barSize:o,leftDelim:null,rightDelim:null}}});const xn=(e,t)=>{const r=t.style;let n,o;"supsub"===e.type?(n=e.sup?At(e.sup,t.havingStyle(r.sup()),t):At(e.sub,t.havingStyle(r.sub()),t),o=sr(e.base,"horizBrace")):o=sr(e,"horizBrace");const s=At(o.base,t.havingBaseStyle(S.DISPLAY)),i=rr(o,t);let a;if(a=o.isOver?Je({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i,wrapperClasses:["svg-align"]}]}):Je({positionType:"bottom",positionData:s.depth+.1+i.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){const e=We(["minner",o.isOver?"mover":"munder"],[a],t);a=o.isOver?Je({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:n}]}):Je({positionType:"bottom",positionData:e.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:e}]})}return We(["minner",o.isOver?"mover":"munder"],[a],t)};ut({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(e,t){let r=e.parser,n=e.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:xn,mathmlBuilder:(e,t)=>{const r=Qt(e.label);return new qt(e.isOver?"mover":"munder",[Gt(e.base,t),r])}}),ut({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(e,t)=>{let r=e.parser;const n=t[1],o=sr(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:r.mode,href:o,body:gt(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{const r=wt(e.body,t,!1);return function(e,t,r,n){const o=new U(e,t,r,n);return Xe(o),o}(e.href,[],r,t)},mathmlBuilder:(e,t)=>{let r=Vt(e.body,t);return r instanceof qt||(r=new qt("mrow",[r])),r.setAttribute("href",e.href),r}}),ut({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(e,t)=>{let r=e.parser;const n=sr(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");const o=[];for(let e=0;e{let r=e.parser,o=e.funcName;e.token;const s=sr(t[0],"raw").string,i=t[1];let a;r.settings.strict&&Fe({strict:r.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});const l={};switch(o){case"\\htmlClass":l.class=s,a={command:"\\htmlClass",class:s};break;case"\\htmlId":l.id=s,a={command:"\\htmlId",id:s};break;case"\\htmlStyle":l.style=s,a={command:"\\htmlStyle",style:s};break;case"\\htmlData":{const e="{,}",t=[];let r="";for(let n=0;n{const r=wt(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));const o=We(n,r,t);for(const t of Object.entries(e.attributes)){const e=t[0],r=t[1];"class"!==e&&o.setAttribute(e,r)}return o},mathmlBuilder:(e,t)=>Vt(e.body,t)}),ut({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:"htmlmathml",mode:e.parser.mode,html:gt(t[0]),mathml:gt(t[1])}),htmlBuilder:(e,t)=>{const r=wt(e.html,t,!1);return Ze(r)},mathmlBuilder:(e,t)=>Vt(e.mathml,t)});const wn=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};{const t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new n("Invalid size: '"+e+"' in \\includegraphics");const r={number:+(t[1]+t[2]),unit:t[3]};if(!E(r))throw new n("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r}};ut({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(e,t,r)=>{let o=e.parser,s={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},l="";if(r[0]){const e=sr(r[0],"raw").string.split(",");for(let t=0;t{const r=H(e.height,t);let n=0;e.totalheight.number>0&&(n=H(e.totalheight,t)-r);let o=0;e.width.number>0&&(o=H(e.width,t));const s={height:N(r+n)};o>0&&(s.width=N(o)),n>0&&(s.verticalAlign=N(-n));const i=new Y(e.src,e.alt,s);return i.height=r,i.depth=n,i},mathmlBuilder:(e,t)=>{const r=new qt("mglyph",[]);r.setAttribute("alt",e.alt);const n=H(e.height,t);let o=0;if(e.totalheight.number>0&&(o=H(e.totalheight,t)-n,r.setAttribute("valign",N(-o))),r.setAttribute("height",N(n+o)),e.width.number>0){const n=H(e.width,t);r.setAttribute("width",N(n))}return r.setAttribute("src",e.src),r}}),ut({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(e,t){let r=e.parser,n=e.funcName;const o=sr(t[0],"size");if(r.settings.strict){const e="m"===n[1],t="mu"===o.value.unit;e?(t||Fe({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" supports only mu units, not "+o.value.unit+" units",report:!0}),"math"!==r.mode&&Fe({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" works only in math mode",report:!0})):t&&Fe({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" doesn't support mu units",report:!0})}return{type:"kern",mode:r.mode,dimension:o.value}},htmlBuilder(e,t){return Qe(e.dimension,t)},mathmlBuilder(e,t){const r=H(e.dimension,t);return new Rt(r)}}),ut({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(e,t)=>{let r=e.parser,n=e.funcName;const o=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:o}},htmlBuilder:(e,t)=>{let r;"clap"===e.alignment?(r=We([],[At(e.body,t)]),r=We(["katex-inner"],[r],t)):r=We(["katex-inner"],[At(e.body,t)]);const n=We(["katex-fix"],[]);let o=We([e.alignment],[r,n],t);const s=We(["katex-strut"]);return s.style.height=N(o.height+o.depth),o.depth&&(s.style.verticalAlign=N(-o.depth)),o.children.unshift(s),o=We(["katex-thinbox"],[o],t),We(["mord","katex-vbox"],[o],t)},mathmlBuilder:(e,t)=>{const r=new qt("mpadded",[Gt(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",t+"width")}return r.setAttribute("width","0px"),r}}),ut({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){let r=e.funcName,n=e.parser;const o=n.mode;n.switchMode("math");const s="\\("===r?"\\)":"$",i=n.parseExpression(!1,s);return n.expect(s),n.switchMode(o),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:i}}}),ut({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new n("Mismatched "+e.funcName)}});const vn=(e,t)=>{switch(t.style.size){case S.DISPLAY.size:return e.display;case S.TEXT.size:return e.text;case S.SCRIPT.size:return e.script;case S.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ut({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(e,t)=>({type:"mathchoice",mode:e.parser.mode,display:gt(t[0]),text:gt(t[1]),script:gt(t[2]),scriptscript:gt(t[3])}),htmlBuilder:(e,t)=>{const r=vn(e,t),n=wt(r,t,!1);return Ze(n)},mathmlBuilder:(e,t)=>{const r=vn(e,t);return Vt(r,t)}});const kn=(e,t,r,n,o,s,i)=>{e=We([],[e]);const a=r&&m(r);let l,c,h;if(t){const e=At(t,n.havingStyle(o.sup()),n);c={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-e.depth)}}if(r){const e=At(r,n.havingStyle(o.sub()),n);l={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-e.height)}}if(c&&l){const t=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+i;h=Je({positionType:"bottom",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:N(-s)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:N(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){const t=e.height-i;h=Je({positionType:"top",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:N(-s)},{type:"kern",size:l.kern},{type:"elem",elem:e}]})}else{if(!c)return e;{const t=e.depth+i;h=Je({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:N(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}}const u=[h];if(l&&0!==s&&!a){const e=We(["mspace"],[],n);e.style.marginRight=N(s),u.unshift(e)}return We(["mop","op-limits"],u,n)},zn=new Set(["\\smallint"]),Sn=(e,t)=>{let r,n,o,s=!1;"supsub"===e.type?(r=e.sup,n=e.sub,o=sr(e.base,"op"),s=!0):o=sr(e,"op");const i=t.style;let a,l,c=!1;if(i.size===S.DISPLAY.size&&o.symbol&&!zn.has(o.name)&&(c=!0),o.symbol){const e=c?"Size2-Regular":"Size1-Regular";let r="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(r=o.name.slice(1),o.name="oiint"===r?"\\iint":"\\iiint"),a=Ve(o.name,e,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),l=a.italic,r.length>0){const e=nt(r+"Size"+(c?"2":"1"),t);a=Je({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:e,shift:c?.08:0}]}),o.name="\\"+r,a.classes.unshift("mop"),a.italic=l}}else if(o.body){const e=wt(o.body,t,!0);1===e.length&&e[0]instanceof W?(a=e[0],a.classes[0]="mop"):a=We(["mop"],e,t)}else{const e=[];for(let r=1;r{let r=e.parser,n=e.funcName;return 1===n.length&&(n=Mn[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Sn,mathmlBuilder:(e,t)=>{let r;if(e.symbol)r=new qt("mo",[Ht(e.name,e.mode)]),zn.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new qt("mo",Pt(e.body,t));else{r=new qt("mi",[new It(e.name.slice(1))]);const t=new qt("mo",[Ht("\u2061","text")]);r=e.parentIsSupSub?new qt("mrow",[r,t]):Bt([r,t])}return r}}),ut({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(e,t)=>{let r=e.parser;const n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:gt(n)}}});const An={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};ut({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],numArgs:0,handler(e){let t=e.parser,r=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}}),ut({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(e){let t=e.parser,r=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}}),ut({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],numArgs:0,allowedInArgument:!0,handler(e){let t=e.parser,r=e.funcName;return 1===r.length&&(r=An[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}}});const Tn=(e,t)=>{let r,n,o,s,i=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,o=sr(e.base,"operatorname"),i=!0):o=sr(e,"operatorname"),o.body.length>0){const e=o.body.map(e=>{const t="text"in e?e.text:void 0;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),r=wt(e,t.withFont("mathrm"),!0);for(let e=0;e{let r=e.parser,n=e.funcName;const o=t[0];return{type:"operatorname",mode:r.mode,body:gt(o),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:Tn,mathmlBuilder:(e,t)=>{let r=Pt(e.body,t.withFont("mathrm")),n=!0;for(let e=0;ee.toText()).join("");r=[new It(e)]}const o=new qt("mi",r);o.setAttribute("mathvariant","normal");const s=new qt("mo",[Ht("\u2061","text")]);return e.parentIsSupSub?new qt("mrow",[o,s]):Bt([o,s])}}),en("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),pt({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ze(wt(e.body,t,!1)):We(["mord"],wt(e.body,t,!0),t)},mathmlBuilder(e,t){return Vt(e.body,t,!0)}}),ut({type:"overline",names:["\\overline"],numArgs:1,handler(e,t){let r=e.parser;const n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){const r=At(e.body,t.havingCrampedStyle()),n=$e("overline-line",t),o=t.fontMetrics().defaultRuleThickness,s=Je({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n},{type:"kern",size:o}]});return We(["mord","katex-overline"],[s],t)},mathmlBuilder(e,t){const r=new qt("mo",[new It("\u203e")]);r.setAttribute("stretchy","true");const n=new qt("mover",[Gt(e.body,t),r]);return n.setAttribute("accent","true"),n}}),ut({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(e,t)=>{let r=e.parser;const n=t[0];return{type:"phantom",mode:r.mode,body:gt(n)}},htmlBuilder:(e,t)=>{const r=wt(e.body,t.withPhantom(),!1);return Ze(r)},mathmlBuilder:(e,t)=>{const r=Pt(e.body,t);return new qt("mphantom",r)}}),en("\\hphantom","\\smash{\\phantom{#1}}"),ut({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(e,t)=>{let r=e.parser;const n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{const r=We(["katex-inner"],[At(e.body,t.withPhantom())]),n=We(["katex-fix"],[]);return We(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{const r=Pt(gt(e.body),t),n=new qt("mphantom",r),o=new qt("mpadded",[n]);return o.setAttribute("width","0px"),o}}),ut({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(e,t){let r=e.parser;const n=sr(t[0],"size").value,o=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:o}},htmlBuilder(e,t){const r=At(e.body,t),n=H(e.dy,t);return Je({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){const r=new qt("mpadded",[Gt(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});const Cn=(e,t)=>({type:"reflectbox",mode:e.parser.mode,body:t[0]});function Bn(e,t,r){const n=wt(e,t,!1),o=t.sizeMultiplier/r.sizeMultiplier;for(let e=0;e=0?a.setAttribute("height",N(o)):(a.setAttribute("height",N(o)),a.setAttribute("depth",N(-o))),a.setAttribute("voffset",N(o)),a}});const qn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];ut({type:"sizing",names:qn,numArgs:0,allowedInText:!0,handler:(e,t)=>{let r=e.breakOnTokenText,n=e.funcName,o=e.parser;const s=o.parseExpression(!1,r);return{type:"sizing",mode:o.mode,size:qn.indexOf(n)+1,body:s}},htmlBuilder:(e,t)=>{const r=t.havingSize(e.size);return Bn(e.body,r,t)},mathmlBuilder:(e,t)=>{const r=t.havingSize(e.size),n=Pt(e.body,r),o=new qt("mstyle",n);return o.setAttribute("mathsize",N(r.sizeMultiplier)),o}}),ut({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,r)=>{let n=e.parser,o=!1,s=!1;const i=r[0]&&sr(r[0],"ordgroup");if(i){let e;for(let t=0;t{const r=We([],[At(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return We(["mord","katex-smash"],[r],t);if(r.children)for(let t=0;t{const r=new qt("mpadded",[Gt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),ut({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(e,t,r){let n=e.parser;const o=r[0],s=t[0];return{type:"sqrt",mode:n.mode,body:s,index:o}},htmlBuilder(e,t){let r=At(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=Ke(r,t);const n=t.fontMetrics().defaultRuleThickness;let o=n;t.style.idr.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);const m=a.height-r.height-s-l;r.style.paddingLeft=N(c);const u=Je({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+m)},{type:"elem",elem:a},{type:"kern",size:l}]});if(e.index){const r=t.havingStyle(S.SCRIPTSCRIPT),n=At(e.index,r,t),o=.6*(u.height-u.depth),s=Je({positionType:"shift",positionData:-o,children:[{type:"elem",elem:n}]}),i=We(["katex-root"],[s]);return We(["mord","sqrt"],[i,u],t)}return We(["mord","sqrt"],[u],t)},mathmlBuilder(e,t){const r=e.body,n=e.index;return n?new qt("mroot",[Gt(r,t),Gt(n,t)]):new qt("msqrt",[Gt(r,t)])}});const In={display:S.DISPLAY,text:S.TEXT,script:S.SCRIPT,scriptscript:S.SCRIPTSCRIPT};ut({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){let r=e.breakOnTokenText,n=e.funcName,o=e.parser;const s=o.parseExpression(!0,r),i=n.slice(1,n.length-5);if(!(i in In))throw new Error("Unknown style: "+i);return{type:"styling",mode:o.mode,style:i,body:s}},htmlBuilder(e,t){const r=In[e.style];let n=t.havingStyle(r);return e.resetFont&&(n=n.withFont("")),Bn(e.body,n,t)},mathmlBuilder(e,t){const r=In[e.style];let n=t.havingStyle(r);e.resetFont&&(n=n.withFont(""));const o=Pt(e.body,n),s=new qt("mstyle",o),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return s.setAttribute("scriptlevel",i[0]),s.setAttribute("displaystyle",i[1]),s}});pt({type:"supsub",htmlBuilder(e,t){const r=function(e,t){const r=e.base;if(r)return"op"===r.type?r.limits&&(t.style.size===S.DISPLAY.size||r.alwaysHandleSupSub)?Sn:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===S.DISPLAY.size||r.limits)?Tn:null:"accent"===r.type?m(r.base)?hr:null:"horizBrace"===r.type&&!e.sub===r.isOver?xn:null;return null}(e,t);if(r)return r(e,t);const n=e.base,o=e.sup,s=e.sub,i=At(n,t);let a,l;const c=t.fontMetrics();let h=0,u=0;const p=n&&m(n);if(o){const e=t.havingStyle(t.style.sup());a=At(o,e,t),p||(h=i.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(s){const e=t.havingStyle(t.style.sub());l=At(s,e,t),p||(u=i.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}let d;d=t.style===S.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;const g=t.sizeMultiplier,f=N(.5/c.ptPerEm/g);let b,y=null;if(l){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);var x;if(i instanceof W||t)y=N(-(null!=(x=i.italic)?x:0))}if(a&&l){h=Math.max(h,d,a.depth+.25*c.xHeight),u=Math.max(u,c.sub2);const e=4*c.defaultRuleThickness;if(h-a.depth-(l.height-u)0&&(h+=t,u-=t)}b=Je({positionType:"individualShift",children:[{type:"elem",elem:l,shift:u,marginRight:f,marginLeft:y},{type:"elem",elem:a,shift:-h,marginRight:f}]})}else if(l){u=Math.max(u,c.sub1,l.height-.8*c.xHeight);b=Je({positionType:"shift",positionData:u,children:[{type:"elem",elem:l,marginLeft:y,marginRight:f}]})}else{if(!a)throw new Error("supsub must have either sup or sub.");h=Math.max(h,d,a.depth+.25*c.xHeight),b=Je({positionType:"shift",positionData:-h,children:[{type:"elem",elem:a,marginRight:f}]})}const w=St(i,"right")||"mord";return We([w],[i,We(["msupsub"],[b])],t)},mathmlBuilder(e,t){let r,n,o=!1;e.base&&"horizBrace"===e.base.type&&(n=!!e.sup,n===e.base.isOver&&(o=!0,r=e.base.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);const s=[Gt(e.base,t)];let i;if(e.sub&&s.push(Gt(e.sub,t)),e.sup&&s.push(Gt(e.sup,t)),o)i=r?"mover":"munder";else if(e.sub)if(e.sup){const r=e.base;i=r&&"op"===r.type&&r.limits&&t.style===S.DISPLAY||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(t.style===S.DISPLAY||r.limits)?"munderover":"msubsup"}else{const r=e.base;i=r&&"op"===r.type&&r.limits&&(t.style===S.DISPLAY||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(r.limits||t.style===S.DISPLAY)?"munder":"msub"}else{const r=e.base;i=r&&"op"===r.type&&r.limits&&(t.style===S.DISPLAY||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(r.limits||t.style===S.DISPLAY)?"mover":"msup"}return new qt(i,s)}}),pt({type:"atom",htmlBuilder(e,t){return Ge(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){const r=new qt("mo",[Ht(e.text,e.mode)]);if("bin"===e.family){const n=Lt(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});const Rn={mi:"italic",mn:"normal",mtext:"normal"};pt({type:"mathord",htmlBuilder(e,t){return je(e,t)},mathmlBuilder(e,t){const r=new qt("mi",[Ht(e.text,e.mode,t)]),n=Lt(e,t)||"italic";return n!==Rn[r.type]&&r.setAttribute("mathvariant",n),r}}),pt({type:"textord",htmlBuilder(e,t){return je(e,t)},mathmlBuilder(e,t){const r=Ht(e.text,e.mode,t),n=Lt(e,t)||"normal";let o;return o="text"===e.mode?new qt("mtext",[r]):/[0-9]/.test(e.text)?new qt("mn",[r]):"\\prime"===e.text?new qt("mo",[r]):new qt("mi",[r]),n!==Rn[o.type]&&o.setAttribute("mathvariant",n),o}});const On=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),En=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);pt({type:"spacing",htmlBuilder(e,t){const r=En.get(e.text),o=On.get(e.text);if(r){const n=r.className||"";if("text"===e.mode){const r=je(e,t);return r.classes.push(n),r}return We(["mspace",n],[Ge(e.text,e.mode,t)],t)}if(o)return We(["mspace",o],[],t);throw new n('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){let r;if(!En.has(e.text)){if(On.has(e.text))return new qt("mspace");throw new n('Unknown type of space "'+e.text+'"')}return r=new qt("mtext",[new It("\xa0")]),r}});const Hn=()=>{const e=new qt("mtd",[]);return e.setAttribute("width","50%"),e};pt({type:"tag",mathmlBuilder(e,t){const r=new qt("mtable",[new qt("mtr",[Hn(),new qt("mtd",[Vt(e.body,t)]),Hn(),new qt("mtd",[Vt(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});const Nn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Dn={"\\textbf":"textbf","\\textmd":"textmd"},Ln={"\\textit":"textit","\\textup":"textup"},Fn=(e,t)=>{const r=e.font;return r?Nn[r]?t.withTextFontFamily(Nn[r]):Dn[r]?t.withTextFontWeight(Dn[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Ln[r]):t};ut({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(e,t){let r=e.parser,n=e.funcName;const o=t[0];return{type:"text",mode:r.mode,body:gt(o),font:n}},htmlBuilder(e,t){const r=Fn(e,t),n=wt(e.body,r,!0);return We(["mord","text"],n,r)},mathmlBuilder(e,t){const r=Fn(e,t);return Vt(e.body,r)}}),ut({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){const r=At(e.body,t),n=$e("underline-line",t),o=t.fontMetrics().defaultRuleThickness,s=Je({positionType:"top",positionData:r.height,children:[{type:"kern",size:o},{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r}]});return We(["mord","katex-underline"],[s],t)},mathmlBuilder(e,t){const r=new qt("mo",[new It("\u203e")]);r.setAttribute("stretchy","true");const n=new qt("munder",[Gt(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),ut({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(e,t){return{type:"vcenter",mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){const r=At(e.body,t),n=t.fontMetrics().axisHeight,o=.5*(r.height-n-(r.depth+n));return Je({positionType:"shift",positionData:o,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){const r=new qt("mpadded",[Gt(e.body,t)],["vcenter"]);return new qt("mrow",[r])}}),ut({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(e,t,r){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){const r=Pn(e),n=[],o=t.havingStyle(t.style.text());for(let t=0;te.body.replace(/ /g,e.star?"\u2423":"\xa0");var Vn=ct;const Gn="[ \r\n\t]",jn="(\\\\[a-zA-Z@]+)"+Gn+"*",Un="[\u0300-\u036f]",Yn=new RegExp(Un+"+$"),Xn="("+Gn+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]"+Un+"*|[\ud800-\udbff][\udc00-\udfff]"+Un+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+jn+"|\\\\[^\ud800-\udfff])";class Wn{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Xn,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new rn("EOF",new tn(this,t,t));const r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new n("Unexpected character: '"+e[t]+"'",new rn(e[t],new tn(this,t,t+1)));const o=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[o]){const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(this.tokenRegex.lastIndex=e.length,Fe({strict:this.settings.strict,errorCode:"commentAtEnd",errorMsg:"% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)",report:!0})):this.tokenRegex.lastIndex=t+1,this.lex()}return new rn(o,new tn(this,t,this.tokenRegex.lastIndex))}}class _n{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new n("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const e=this.undefStack.pop();for(const t of Object.keys(e))void 0===e[t]?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:Object.prototype.hasOwnProperty.call(this.builtins,e)?this.builtins[e]:void 0}set(e,t,r){if(void 0===r&&(r=!1),r){for(let t=0;t0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{const t=this.undefStack[this.undefStack.length-1];t&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}null==t?delete this.current[e]:this.current[e]=t}}var $n=Qr;en("\\noexpand",function(e){const t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),en("\\expandafter",function(e){const t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),en("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),en("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),en("\\@ifnextchar",function(e){const t=e.consumeArgs(3);e.consumeSpaces();const r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),en("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),en("\\TextOrMath",function(e){const t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});const Zn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};en("\\char",function(e){let t,r=e.popToken(),o=0;if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if(r=e.popToken(),"\\"===r.text[0])o=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new n("\\char` missing argument");o=r.text.charCodeAt(0)}else t=10;if(t){if(o=Zn[r.text],null==o||o>=t)throw new n("Invalid base-"+t+" digit "+r.text);let s;for(;null!=(s=Zn[e.future().text])&&s{let s=e.consumeArg().tokens;if(1!==s.length)throw new n("\\newcommand's first argument must be a macro name");const i=s[0].text,a=e.isDefined(i);if(a&&!t)throw new n("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!r)throw new n("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");let l=0;if(s=e.consumeArg().tokens,1===s.length&&"["===s[0].text){let t="",r=e.expandNextToken();for(;"]"!==r.text&&"EOF"!==r.text;)t+=r.text,r=e.expandNextToken();if(!t.match(/^\s*[0-9]+\s*$/))throw new n("Invalid number of arguments: "+t);l=parseInt(t),s=e.consumeArg().tokens}return a&&o||e.macros.set(i,{tokens:s,numArgs:l}),""};en("\\newcommand",e=>Kn(e,!1,!0,!1)),en("\\renewcommand",e=>Kn(e,!0,!1,!1)),en("\\providecommand",e=>Kn(e,!0,!0,!0)),en("\\message",e=>{const t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join("")),""}),en("\\errmessage",e=>{const t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join("")),""}),en("\\show",e=>{const t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Vn[r],ne.math[r],ne.text[r]),""}),en("\\bgroup","{"),en("\\egroup","}"),en("~","\\nobreakspace"),en("\\lq","`"),en("\\rq","'"),en("\\aa","\\r a"),en("\\AA","\\r A"),en("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),en("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),en("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),en("\u212c","\\mathscr{B}"),en("\u2130","\\mathscr{E}"),en("\u2131","\\mathscr{F}"),en("\u210b","\\mathscr{H}"),en("\u2110","\\mathscr{I}"),en("\u2112","\\mathscr{L}"),en("\u2133","\\mathscr{M}"),en("\u211b","\\mathscr{R}"),en("\u212d","\\mathfrak{C}"),en("\u210c","\\mathfrak{H}"),en("\u2128","\\mathfrak{Z}"),en("\\Bbbk","\\Bbb{k}"),en("\\llap","\\mathllap{\\textrm{#1}}"),en("\\rlap","\\mathrlap{\\textrm{#1}}"),en("\\clap","\\mathclap{\\textrm{#1}}"),en("\\mathstrut","\\vphantom{(}"),en("\\underbar","\\underline{\\text{#1}}"),en("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),en("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),en("\\ne","\\neq"),en("\u2260","\\neq"),en("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),en("\u2209","\\notin"),en("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),en("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),en("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),en("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),en("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),en("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),en("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),en("\u27c2","\\perp"),en("\u203c","\\mathclose{!\\mkern-0.8mu!}"),en("\u220c","\\notni"),en("\u231c","\\ulcorner"),en("\u231d","\\urcorner"),en("\u231e","\\llcorner"),en("\u231f","\\lrcorner"),en("\xa9","\\copyright"),en("\xae","\\textregistered"),en("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),en("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),en("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),en("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),en("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),en("\u22ee","\\vdots"),en("\\varGamma","\\mathit{\\Gamma}"),en("\\varDelta","\\mathit{\\Delta}"),en("\\varTheta","\\mathit{\\Theta}"),en("\\varLambda","\\mathit{\\Lambda}"),en("\\varXi","\\mathit{\\Xi}"),en("\\varPi","\\mathit{\\Pi}"),en("\\varSigma","\\mathit{\\Sigma}"),en("\\varUpsilon","\\mathit{\\Upsilon}"),en("\\varPhi","\\mathit{\\Phi}"),en("\\varPsi","\\mathit{\\Psi}"),en("\\varOmega","\\mathit{\\Omega}"),en("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),en("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),en("\\boxed","\\fbox{$\\displaystyle{#1}$}"),en("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),en("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),en("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),en("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),en("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");const Jn={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},Qn=new Set(["bin","rel"]);en("\\dots",function(e){let t="\\dotso";const r=e.expandAfterFuture().text;return r in Jn?t=Jn[r]:("\\not"===r.slice(0,4)||r in ne.math&&Qn.has(ne.math[r].group))&&(t="\\dotsb"),t});const eo={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};en("\\dotso",function(e){return e.future().text in eo?"\\ldots\\,":"\\ldots"}),en("\\dotsc",function(e){const t=e.future().text;return t in eo&&","!==t?"\\ldots\\,":"\\ldots"}),en("\\cdots",function(e){return e.future().text in eo?"\\@cdots\\,":"\\@cdots"}),en("\\dotsb","\\cdots"),en("\\dotsm","\\cdots"),en("\\dotsi","\\!\\cdots"),en("\\dotsx","\\ldots\\,"),en("\\DOTSI","\\relax"),en("\\DOTSB","\\relax"),en("\\DOTSX","\\relax"),en("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),en("\\,","\\tmspace+{3mu}{.1667em}"),en("\\thinspace","\\,"),en("\\>","\\mskip{4mu}"),en("\\:","\\tmspace+{4mu}{.2222em}"),en("\\medspace","\\:"),en("\\;","\\tmspace+{5mu}{.2777em}"),en("\\thickspace","\\;"),en("\\!","\\tmspace-{3mu}{.1667em}"),en("\\negthinspace","\\!"),en("\\negmedspace","\\tmspace-{4mu}{.2222em}"),en("\\negthickspace","\\tmspace-{5mu}{.277em}"),en("\\enspace","\\kern.5em "),en("\\enskip","\\hskip.5em\\relax"),en("\\quad","\\hskip1em\\relax"),en("\\qquad","\\hskip2em\\relax"),en("\\tag","\\@ifstar\\tag@literal\\tag@paren"),en("\\tag@paren","\\tag@literal{({#1})}"),en("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new n("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),en("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),en("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),en("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),en("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),en("\\newline","\\\\\\relax"),en("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const to=N(K["Main-Regular"]["T".charCodeAt(0)][1]-.7*K["Main-Regular"]["A".charCodeAt(0)][1]);en("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+to+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),en("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+to+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),en("\\hspace","\\@ifstar\\@hspacer\\@hspace"),en("\\@hspace","\\hskip #1\\relax"),en("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),en("\\ordinarycolon",":"),en("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),en("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),en("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),en("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),en("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),en("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),en("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),en("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),en("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),en("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),en("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),en("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),en("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),en("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),en("\u2237","\\dblcolon"),en("\u2239","\\eqcolon"),en("\u2254","\\coloneqq"),en("\u2255","\\eqqcolon"),en("\u2a74","\\Coloneqq"),en("\\ratio","\\vcentcolon"),en("\\coloncolon","\\dblcolon"),en("\\colonequals","\\coloneqq"),en("\\coloncolonequals","\\Coloneqq"),en("\\equalscolon","\\eqqcolon"),en("\\equalscoloncolon","\\Eqqcolon"),en("\\colonminus","\\coloneq"),en("\\coloncolonminus","\\Coloneq"),en("\\minuscolon","\\eqcolon"),en("\\minuscoloncolon","\\Eqcolon"),en("\\coloncolonapprox","\\Colonapprox"),en("\\coloncolonsim","\\Colonsim"),en("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),en("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),en("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),en("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),en("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),en("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),en("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),en("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),en("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),en("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),en("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),en("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),en("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),en("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),en("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),en("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),en("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),en("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),en("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),en("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),en("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),en("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),en("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),en("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),en("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),en("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),en("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),en("\\imath","\\html@mathml{\\@imath}{\u0131}"),en("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),en("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),en("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),en("\u27e6","\\llbracket"),en("\u27e7","\\rrbracket"),en("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),en("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),en("\u21a4","\\mapsfrom"),en("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`\u21a4}}"),en("\u2983","\\lBrace"),en("\u2984","\\rBrace"),en("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),en("\u29b5","\\minuso"),en("\\darr","\\downarrow"),en("\\dArr","\\Downarrow"),en("\\Darr","\\Downarrow"),en("\\lang","\\langle"),en("\\rang","\\rangle"),en("\\uarr","\\uparrow"),en("\\uArr","\\Uparrow"),en("\\Uarr","\\Uparrow"),en("\\N","\\mathbb{N}"),en("\\R","\\mathbb{R}"),en("\\Z","\\mathbb{Z}"),en("\\alef","\\aleph"),en("\\alefsym","\\aleph"),en("\\Alpha","\\mathrm{A}"),en("\\Beta","\\mathrm{B}"),en("\\bull","\\bullet"),en("\\Chi","\\mathrm{X}"),en("\\clubs","\\clubsuit"),en("\\cnums","\\mathbb{C}"),en("\\Complex","\\mathbb{C}"),en("\\Dagger","\\ddagger"),en("\\diamonds","\\diamondsuit"),en("\\empty","\\emptyset"),en("\\Epsilon","\\mathrm{E}"),en("\\Eta","\\mathrm{H}"),en("\\exist","\\exists"),en("\\harr","\\leftrightarrow"),en("\\hArr","\\Leftrightarrow"),en("\\Harr","\\Leftrightarrow"),en("\\hearts","\\heartsuit"),en("\\image","\\Im"),en("\\infin","\\infty"),en("\\Iota","\\mathrm{I}"),en("\\isin","\\in"),en("\\Kappa","\\mathrm{K}"),en("\\larr","\\leftarrow"),en("\\lArr","\\Leftarrow"),en("\\Larr","\\Leftarrow"),en("\\lrarr","\\leftrightarrow"),en("\\lrArr","\\Leftrightarrow"),en("\\Lrarr","\\Leftrightarrow"),en("\\Mu","\\mathrm{M}"),en("\\natnums","\\mathbb{N}"),en("\\Nu","\\mathrm{N}"),en("\\Omicron","\\mathrm{O}"),en("\\plusmn","\\pm"),en("\\rarr","\\rightarrow"),en("\\rArr","\\Rightarrow"),en("\\Rarr","\\Rightarrow"),en("\\real","\\Re"),en("\\reals","\\mathbb{R}"),en("\\Reals","\\mathbb{R}"),en("\\Rho","\\mathrm{P}"),en("\\sdot","\\cdot"),en("\\sect","\\S"),en("\\spades","\\spadesuit"),en("\\sub","\\subset"),en("\\sube","\\subseteq"),en("\\supe","\\supseteq"),en("\\Tau","\\mathrm{T}"),en("\\thetasym","\\vartheta"),en("\\weierp","\\wp"),en("\\Zeta","\\mathrm{Z}"),en("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),en("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),en("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),en("\\bra","\\mathinner{\\langle{#1}|}"),en("\\ket","\\mathinner{|{#1}\\rangle}"),en("\\braket","\\mathinner{\\langle{#1}\\rangle}"),en("\\Bra","\\left\\langle#1\\right|"),en("\\Ket","\\left|#1\\right\\rangle");const ro=e=>t=>{const r=t.consumeArg().tokens,n=t.consumeArg().tokens,o=t.consumeArg().tokens,s=t.consumeArg().tokens,i=t.macros.get("|"),a=t.macros.get("\\|");t.macros.beginGroup();const l=t=>r=>{e&&(r.macros.set("|",i),o.length&&r.macros.set("\\|",a));let s=t;if(!t&&o.length){"|"===r.future().text&&(r.popToken(),s=!0)}return{tokens:s?o:n,numArgs:0}};t.macros.set("|",l(!1)),o.length&&t.macros.set("\\|",l(!0));const c=t.consumeArg().tokens,h=t.expandTokens([...s,...c,...r]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};en("\\bra@ket",ro(!1)),en("\\bra@set",ro(!0)),en("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),en("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),en("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),en("\\angln","{\\angl n}"),en("\\blue","\\textcolor{##6495ed}{#1}"),en("\\orange","\\textcolor{##ffa500}{#1}"),en("\\pink","\\textcolor{##ff00af}{#1}"),en("\\red","\\textcolor{##df0030}{#1}"),en("\\green","\\textcolor{##28ae7b}{#1}"),en("\\gray","\\textcolor{gray}{#1}"),en("\\purple","\\textcolor{##9d38bd}{#1}"),en("\\blueA","\\textcolor{##ccfaff}{#1}"),en("\\blueB","\\textcolor{##80f6ff}{#1}"),en("\\blueC","\\textcolor{##63d9ea}{#1}"),en("\\blueD","\\textcolor{##11accd}{#1}"),en("\\blueE","\\textcolor{##0c7f99}{#1}"),en("\\tealA","\\textcolor{##94fff5}{#1}"),en("\\tealB","\\textcolor{##26edd5}{#1}"),en("\\tealC","\\textcolor{##01d1c1}{#1}"),en("\\tealD","\\textcolor{##01a995}{#1}"),en("\\tealE","\\textcolor{##208170}{#1}"),en("\\greenA","\\textcolor{##b6ffb0}{#1}"),en("\\greenB","\\textcolor{##8af281}{#1}"),en("\\greenC","\\textcolor{##74cf70}{#1}"),en("\\greenD","\\textcolor{##1fab54}{#1}"),en("\\greenE","\\textcolor{##0d923f}{#1}"),en("\\goldA","\\textcolor{##ffd0a9}{#1}"),en("\\goldB","\\textcolor{##ffbb71}{#1}"),en("\\goldC","\\textcolor{##ff9c39}{#1}"),en("\\goldD","\\textcolor{##e07d10}{#1}"),en("\\goldE","\\textcolor{##a75a05}{#1}"),en("\\redA","\\textcolor{##fca9a9}{#1}"),en("\\redB","\\textcolor{##ff8482}{#1}"),en("\\redC","\\textcolor{##f9685d}{#1}"),en("\\redD","\\textcolor{##e84d39}{#1}"),en("\\redE","\\textcolor{##bc2612}{#1}"),en("\\maroonA","\\textcolor{##ffbde0}{#1}"),en("\\maroonB","\\textcolor{##ff92c6}{#1}"),en("\\maroonC","\\textcolor{##ed5fa6}{#1}"),en("\\maroonD","\\textcolor{##ca337c}{#1}"),en("\\maroonE","\\textcolor{##9e034e}{#1}"),en("\\purpleA","\\textcolor{##ddd7ff}{#1}"),en("\\purpleB","\\textcolor{##c6b9fc}{#1}"),en("\\purpleC","\\textcolor{##aa87ff}{#1}"),en("\\purpleD","\\textcolor{##7854ab}{#1}"),en("\\purpleE","\\textcolor{##543b78}{#1}"),en("\\mintA","\\textcolor{##f5f9e8}{#1}"),en("\\mintB","\\textcolor{##edf2df}{#1}"),en("\\mintC","\\textcolor{##e0e5cc}{#1}"),en("\\grayA","\\textcolor{##f6f7f7}{#1}"),en("\\grayB","\\textcolor{##f0f1f2}{#1}"),en("\\grayC","\\textcolor{##e3e5e6}{#1}"),en("\\grayD","\\textcolor{##d6d8da}{#1}"),en("\\grayE","\\textcolor{##babec2}{#1}"),en("\\grayF","\\textcolor{##888d93}{#1}"),en("\\grayG","\\textcolor{##626569}{#1}"),en("\\grayH","\\textcolor{##3b3e40}{#1}"),en("\\grayI","\\textcolor{##21242c}{#1}"),en("\\kaBlue","\\textcolor{##314453}{#1}"),en("\\kaGreen","\\textcolor{##71B307}{#1}");const no={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class oo{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new _n($n,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new Wn(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){let t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var o=this.consumeArg(["]"]);n=o.tokens,r=o.end}else{var s=this.consumeArg();n=s.tokens,t=s.start,r=s.end}return this.pushToken(new rn("EOF",r.loc)),this.pushTokens(n),new rn("",tn.range(t,r))}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){const t=[],r=e&&e.length>0;r||this.consumeSpaces();const o=this.future();let s,i=0,a=0;do{if(s=this.popToken(),t.push(s),"{"===s.text)++i;else if("}"===s.text){if(--i,-1===i)throw new n("Extra }",s)}else if("EOF"===s.text)throw new n("Unexpected end of input in a macro argument, expected '"+(e&&r?e[a]:"}")+"'",s);if(e&&r)if((0===i||1===i&&"{"===e[a])&&s.text===e[a]){if(++a,a===e.length){t.splice(-a,a);break}}else a=0}while(0!==i||r);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new n("The length of delimiters doesn't match the number of args!");const r=t[0];for(let e=0;ethis.settings.maxExpand)throw new n("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){const t=this.popToken(),r=t.text,o=t.noexpand?null:this._getExpansion(r);if(null==o||e&&o.unexpandable){if(e&&null==o&&"\\"===r[0]&&!this.isDefined(r))throw new n("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);let s=o.tokens;const i=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){s=s.slice();for(let e=s.length-1;e>=0;--e){let t=s[e];if("#"===t.text){if(0===e)throw new n("Incomplete placeholder at end of macro body",t);if(t=s[--e],"#"===t.text)s.splice(e+1,1);else{if(!/^[1-9]$/.test(t.text))throw new n("Not a valid argument number",t);s.splice(e,2,...i[+t.text-1])}}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){const e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new rn(e)]):void 0}expandTokens(e){const t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return this.countExpansion(t.length),t}expandMacroAsText(e){const t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){const t=this.macros.get(e);if(null==t)return t;if(1===e.length){const t=this.lexer.catcodes[e];if(null!=t&&13!==t)return}const r="function"==typeof t?t(this):t;if("string"==typeof r){let e=0;if(r.includes("#")){const t=r.replace(/##/g,"");for(;t.includes("#"+(e+1));)++e}const t=new Wn(r,this.settings),n=[];let o=t.lex();for(;"EOF"!==o.text;)n.push(o),o=t.lex();n.reverse();return{tokens:n,numArgs:e}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(Vn,e)||Object.prototype.hasOwnProperty.call(ne.math,e)||Object.prototype.hasOwnProperty.call(ne.text,e)||Object.prototype.hasOwnProperty.call(no,e)}isExpandable(e){const t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Object.prototype.hasOwnProperty.call(Vn,e)&&!Vn[e].primitive}}const so=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,io=Object.freeze({"\u208a":"+","\u208b":"-","\u208c":"=","\u208d":"(","\u208e":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1d62":"i","\u2c7c":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209a":"p","\u1d63":"r","\u209b":"s","\u209c":"t","\u1d64":"u","\u1d65":"v","\u2093":"x","\u1d66":"\u03b2","\u1d67":"\u03b3","\u1d68":"\u03c1","\u1d69":"\u03d5","\u1d6a":"\u03c7","\u207a":"+","\u207b":"-","\u207c":"=","\u207d":"(","\u207e":")","\u2070":"0","\xb9":"1","\xb2":"2","\xb3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1d2c":"A","\u1d2e":"B","\u1d30":"D","\u1d31":"E","\u1d33":"G","\u1d34":"H","\u1d35":"I","\u1d36":"J","\u1d37":"K","\u1d38":"L","\u1d39":"M","\u1d3a":"N","\u1d3c":"O","\u1d3e":"P","\u1d3f":"R","\u1d40":"T","\u1d41":"U","\u2c7d":"V","\u1d42":"W","\u1d43":"a","\u1d47":"b","\u1d9c":"c","\u1d48":"d","\u1d49":"e","\u1da0":"f","\u1d4d":"g","\u02b0":"h","\u2071":"i","\u02b2":"j","\u1d4f":"k","\u02e1":"l","\u1d50":"m","\u207f":"n","\u1d52":"o","\u1d56":"p","\u02b3":"r","\u02e2":"s","\u1d57":"t","\u1d58":"u","\u1d5b":"v","\u02b7":"w","\u02e3":"x","\u02b8":"y","\u1dbb":"z","\u1d5d":"\u03b2","\u1d5e":"\u03b3","\u1d5f":"\u03b4","\u1d60":"\u03d5","\u1d61":"\u03c7","\u1dbf":"\u03b8"}),ao={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},lo={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u1e09":"c\u0327\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\xe7":"c\u0327","\u010f":"d\u030c","\u1e0b":"d\u0307","\u1e11":"d\u0327","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u1e1d":"e\u0327\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u0229":"e\u0327","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u0123":"g\u0327","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\u1e29":"h\u0327","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u0137":"k\u0327","\u013a":"l\u0301","\u013e":"l\u030c","\u013c":"l\u0327","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\u0146":"n\u0327","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u0157":"r\u0327","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u015f":"s\u0327","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\u0163":"t\u0327","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u1e08":"C\u0327\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\xc7":"C\u0327","\u010e":"D\u030c","\u1e0a":"D\u0307","\u1e10":"D\u0327","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u1e1c":"E\u0327\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u0228":"E\u0327","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u0122":"G\u0327","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\u1e28":"H\u0327","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0136":"K\u0327","\u0139":"L\u0301","\u013d":"L\u030c","\u013b":"L\u0327","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\u0145":"N\u0327","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u0156":"R\u0327","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u015e":"S\u0327","\u0164":"T\u030c","\u1e6a":"T\u0307","\u0162":"T\u0327","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"};class co{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new oo(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new n("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){const t=this.nextToken;this.consume(),this.gullet.pushToken(new rn("}")),this.gullet.pushTokens(e);const r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){const r=[];for(;;){"math"===this.mode&&this.consumeSpaces();const n=this.fetch();if(co.endOfExpression.has(n.text))break;if(t&&n.text===t)break;if(e&&Vn[n.text]&&Vn[n.text].infix)break;const o=this.parseAtom(t);if(!o)break;"internal"!==o.type&&r.push(o)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){let t,r=-1;for(let o=0;o=128))return null;this.settings.strict&&(T(t.charCodeAt(0))?"math"===this.mode&&Fe({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+t[0]+'" used in math mode',report:!0,token:e}):Fe({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",report:!0,token:e})),o={type:"textord",mode:"text",loc:tn.range(e),text:t}}var s;if(this.consume(),r)for(let t=0;t Date: Mon, 26 Oct 2026 19:57:56 +0100 Subject: [PATCH 45/52] Web chat: preview a generated svg or html block in a sandboxed frame (#1628) A complete ```svg or ```html block in an answer gets a Preview button. The block's own code is drawn in an iframe (srcdoc) that is cut off from the page: sandbox="" (an opaque origin: no access to the page's DOM, storage, cookies or server, no scripts, forms, popups, downloads or navigation of the page), a CSP in the frame's document (default-src 'none': no network, fonts, frames or media; styles inline, pictures as data: only; no , no form target), no referrer and no permissions. A well-formed svg is shown as an with a data: URL: an image runs no script, loads nothing and animates in every browser. The frame takes the page's light or dark colours and is built again when the theme changes. A page (html) can also be run WITH scripts, one block at a time, after a warning that is shown every time: sandbox="allow-scripts" only (still an opaque origin), the CSP allows the block's inline script and no address; closing the preview ends it. What the sandbox flags alone do not stop is a link or inside the model's html loading a web page into the frame. The browser test shows it does (tools/webtest/browser_test.mjs, with and without the header). So the page is served with Content-Security-Policy: frame-src 'none' (nothing else: a srcdoc frame inherits the page's policy, and the script preview needs its inline script), and a in a previewed page is dropped. tools/webtest holds the mock server (the page's own files, scripted answers, no model) and the browser tests; serve/test_web_preview.js checks the documents, flags and frames, serve/test_web_preview.py the header and that the page never listens for a frame's postMessage. Ported by hand from PR #1628 by thoives. Co-authored-by: Thomas Ivesdal-Tronstad <325436323+thoives@users.noreply.github.com> --- serve/server.py | 9 ++ serve/test_web_preview.js | 104 ++++++++++++++++++ serve/test_web_preview.py | 79 ++++++++++++++ serve/web/app.css | 13 +++ serve/web/app.js | 60 +++++++++-- serve/web/index.html | 1 + serve/web/preview.js | 81 +++++++++++++++ tools/webtest/browser_test.mjs | 185 +++++++++++++++++++++++++++++++++ tools/webtest/lib.mjs | 77 ++++++++++++++ tools/webtest/mock.mjs | 129 +++++++++++++++++++++++ 10 files changed, 732 insertions(+), 6 deletions(-) create mode 100644 serve/test_web_preview.js create mode 100644 serve/test_web_preview.py create mode 100644 serve/web/preview.js create mode 100644 tools/webtest/browser_test.mjs create mode 100644 tools/webtest/lib.mjs create mode 100644 tools/webtest/mock.mjs diff --git a/serve/server.py b/serve/server.py index ad0e10a9..ba92ffba 100644 --- a/serve/server.py +++ b/serve/server.py @@ -449,6 +449,11 @@ class GpuBusy(RuntimeError): self.retry_after = retry_after +# The page's only CSP directive: its preview frames (srcdoc) may not load any address. Other directives are left out +# on purpose: a frame made from srcdoc inherits the page's policy, and the opt-in "run scripts" preview needs its own inline script. +PAGE_CSP = "frame-src 'none'" + + def unload_wait(value, default: float) -> float: """#1997: the `wait` of POST /unload?wait=...: absent / 0 / false: 0 (answer "busy" at once, as before); 1 / true / yes: `default` seconds; a number of seconds above 1: that long (at most an hour).""" @@ -6646,6 +6651,10 @@ def make_handler(svc: Service): body = (ROOT / "serve" / "web" / ("monitor.html" if path else "index.html")).read_bytes() self.send_response(200) self.send_header("Content-Type", "text/html; charset=utf-8") + if not path: + # the chat's svg/html preview is a sandboxed frame; this keeps it from navigating away to a web page + # (a link or inside a model's html), which no sandbox flag does (serve/web/preview.js) + self.send_header("Content-Security-Policy", PAGE_CSP) self.send_header("Content-Length", str(len(body))) self.end_headers() self.wfile.write(body) diff --git a/serve/test_web_preview.js b/serve/test_web_preview.js new file mode 100644 index 00000000..7c1dad15 --- /dev/null +++ b/serve/test_web_preview.js @@ -0,0 +1,104 @@ +// The svg/html preview (serve/web/preview.js), run in Node. The real browser behaviour (what a sandboxed frame can and +// cannot reach) is tested in tools/webtest/browser_test.mjs; here the documents and frames that are built are checked. +// node serve/test_web_preview.js (serve/test_web_preview.py runs it too and skips when node is missing) +"use strict"; +const assert = require("node:assert/strict"); +const path = require("node:path"); +const P = require(path.join(__dirname, "web", "preview.js")); + +const light = {dark: false, ink: "#221e1f"}, dark = {dark: true, ink: "#eef1f3"}; +const cspOf = (doc) => /Content-Security-Policy" content="([^"]*)"/.exec(doc)[1]; +const noImage = {DOMParser: undefined}; // no DOMParser: the inline svg path + +const cases = { + can_preview() { + assert.ok(P.canPreview("svg", "") && P.canPreview("SVG", " ")); + assert.ok(P.canPreview("html", "

x

") && P.canPreview("htm", "") && P.canPreview("HTML", "

")); + assert.ok(!P.canPreview("python", "") && !P.canPreview("html", "plain words") && !P.canPreview("svg", "

not svg

")); + assert.ok(!P.canPreview("", "

x

") && !P.canPreview("svgx", ""), "the fence's language decides"); + }, + sandbox_flags_are_minimal() { + assert.equal(P.SANDBOX.static, "", "no flags: no scripts, forms, popups, downloads, modals or navigation"); + assert.equal(P.SANDBOX.scripts, "allow-scripts", "scripts only"); + for (const v of Object.values(P.SANDBOX)) assert.ok(!/same-origin|top-navigation|popups|forms|modals|downloads|storage|pointer-lock|presentation/.test(v)); + }, + csp_has_no_network() { + const off = P.csp(false), on = P.csp(true); + for (const c of [off, on]) { + assert.match(c, /^default-src 'none'; /, "everything is off unless listed"); + assert.ok(!/connect-src|frame-src|font-src|media-src|object-src|https?:|\*/.test(c), "no network source: " + c); + assert.match(c, /img-src data:/); assert.match(c, /base-uri 'none'/); assert.match(c, /form-action 'none'/); + } + assert.ok(!off.includes("script-src"), "off: scripts fall back to default-src 'none'"); + assert.match(on, /script-src 'unsafe-inline'/, "on: the block's own inline script, and no source"); + assert.ok(!/script-src[^;]*(https?:|\*|'self'|data:)/.test(on)); + }, + html_documents() { + const frag = P.previewDoc("html", "

hi

", false, light); + assert.ok(frag.startsWith("hi

") && frag.endsWith("")); + assert.match(frag, /color-scheme:light/); + const full = P.previewDoc("html", "tx", false, dark); + assert.ok(full.indexOf("Content-Security-Policy") < full.indexOf(""), "our CSP is before the page's head"); + assert.equal((full.match(/<!doctype/gi) || []).length, 1, "one doctype"); + assert.match(full, /color-scheme:dark/); + assert.equal(cspOf(full), P.csp(false)); + assert.equal(cspOf(P.previewDoc("html", "<p>x</p>", true, light)), P.csp(true)); + assert.equal(P.previewDoc("html", "just words", false, light), null); + assert.equal(P.previewDoc("python", "<p>x</p>", false, light), null); + }, + a_page_cannot_redirect_itself() { + for (const meta of ['<meta http-equiv="refresh" content="0;url=http://evil.example/">', "<meta http-equiv=refresh content='0; url=http://evil.example'>", + '<META HTTP-EQUIV = "Refresh" CONTENT="1;URL=http://evil.example">', '<meta content="0;url=http://evil.example" http-equiv="refresh">']) { + const doc = P.previewDoc("html", `<!doctype html><html><head>${meta}</head><body>x</body></html>`, false, light); + assert.ok(!/refresh/i.test(doc.replace(/Content-Security-Policy[^>]*>/, "")), meta + " -> " + doc); + assert.ok(!/<meta\b[^>]*refresh/i.test(P.previewDoc("html", `<p>x</p>${meta}`, true, light)), "also in a fragment and with scripts"); + } + }, + svg_documents() { + const doc = P.previewDoc("svg", '<svg width="10" height="10"><circle r="4"/></svg>', false, light, noImage); + assert.ok(doc.includes("<svg width=\"10\"") && doc.includes("display:flex"), "an svg that cannot be an image is inline"); + assert.equal(cspOf(doc), P.csp(false), "inline svg: scripts and handlers are still blocked by the CSP"); + assert.equal(P.previewDoc("svg", "<p>no</p>", false, light), null); + // as an image: with a parser, the svg goes in as a data: URL, with the page's ink as currentColor + const env = { + DOMParser: class { parseFromString(s) { + const style = {textContent: ""}, root = {namespaceURI: "http://www.w3.org/2000/svg", localName: "svg", firstChild: null, + insertBefore(n) { this.style = n; }, hasAttribute: () => false}; + return {documentElement: root, querySelector: () => null, createElementNS: () => style, src: s}; + } }, + XMLSerializer: class { serializeToString(d) { return "<svg>" + (d.documentElement.style ? d.documentElement.style.textContent : "") + "</svg>"; } }, + }; + const img = P.previewDoc("svg", '<svg><script>x</script></svg>', false, {dark: false, ink: "#123456"}, env); + assert.match(img, /<img alt="" style="width:100%;height:100%;object-fit:contain" src="data:image\/svg\+xml;charset=utf-8,/); + assert.ok(decodeURIComponent(/src="data:image\/svg\+xml;charset=utf-8,([^"]*)"/.exec(img)[1]).includes("svg{color:#123456}")); + assert.ok(!img.includes("<svg><script>"), "the svg is not in the document, only its encoded image"); + // with scripts requested for an svg, the markup is inline (an image cannot run anything) + assert.ok(P.previewDoc("svg", "<svg></svg>", true, light, env).includes("<body><svg></svg>")); + }, + the_theme_cannot_inject() { + const evil = {dark: false, ink: "red;}</style><script>parent.x=1</script><style>"}; + assert.ok(!P.previewDoc("html", "<p>x</p>", false, evil).includes("<script>parent.x"), "the ink goes into CSS only after a check"); + assert.match(P.previewDoc("html", "<p>x</p>", false, evil), /color:CanvasText/); + assert.match(P.previewDoc("html", "<p>x</p>", false, {dark: true, ink: "rgb(1, 2, 3)"}), /color:rgb\(1, 2, 3\)/); + }, + frames_are_built_cut_off() { + class Frame { constructor() { this.attrs = {}; this.dataset = {}; } setAttribute(k, v) { this.attrs[k] = v; } } + const env = {document: {createElement: (t) => { assert.equal(t, "iframe"); return new Frame(); }}}; + const f = P.makeFrame("<p>x</p>", {scripts: false, title: "Page preview", lang: "html"}, env); + assert.deepEqual(f.attrs, {sandbox: "", referrerpolicy: "no-referrer", allow: ""}); + assert.equal(f.srcdoc, "<p>x</p>"); assert.equal(f.dataset.opened, "1"); assert.equal(f.dataset.scripts, undefined); + const run = P.makeFrame("<p>x</p>", {scripts: true}, env); + assert.equal(run.attrs.sandbox, "allow-scripts"); assert.equal(run.dataset.scripts, "1"); + const blank = P.makeFrame(null, {}, env); + assert.equal(blank.srcdoc, undefined); assert.equal(blank.dataset.opened, undefined, "an empty frame holds nothing"); + assert.equal(blank.attrs.sandbox, "", "a blank frame is as closed as a static one"); + }, +}; + +(async () => { + const name = process.argv[2]; + const run = name ? [[name, cases[name]]] : Object.entries(cases); + if (name && !cases[name]) throw new Error("unknown test " + name); + for (const [n, fn] of run) { await fn(); console.log("ok " + n); } +})().catch((e) => { console.error(e); process.exitCode = 1; }); diff --git a/serve/test_web_preview.py b/serve/test_web_preview.py new file mode 100644 index 00000000..b61acd80 --- /dev/null +++ b/serve/test_web_preview.py @@ -0,0 +1,79 @@ +"""The chat's svg/html preview: sandboxed, no network, no way to the page (serve/web/preview.js).""" +from __future__ import annotations + +import os +import re +import shutil +import subprocess +import unittest +import urllib.request +from pathlib import Path + +from serve.frontend import ChatTemplate +from serve.server import PAGE_CSP, ByteTokenizer, MockEngine, Service, serve + +ROOT = Path(__file__).resolve().parents[1] +WEB = Path(__file__).parent / "web" + + +@unittest.skipUnless(shutil.which("node"), "node is not installed") +class PreviewInNode(unittest.TestCase): + def test_documents_frames_and_flags(self): + r = subprocess.run([shutil.which("node"), str(Path(__file__).with_name("test_web_preview.js"))], + capture_output=True, text=True, timeout=60) + self.assertEqual(r.returncode, 0, r.stdout + r.stderr) + + +class ThePageSource(unittest.TestCase): + def test_no_way_for_a_frame_to_reach_the_page(self): + scripts = {p.name: p.read_text(encoding="utf-8") for p in WEB.glob("*.js")} + for name, src in scripts.items(): + with self.subTest(name=name): + self.assertNotIn("allow-same-origin", src.replace("no allow-same-origin", ""), "a frame with the page's origin is the page") + self.assertNotRegex(src, r"allow-(top-navigation|popups|forms|modals|downloads)") + # the page never listens for what a frame posts to it + self.assertNotRegex(scripts["app.js"], r"addEventListener\(\s*[\"']message[\"']") + self.assertNotRegex(scripts["app.js"], r"\bonmessage\b") + # every iframe starts closed, and is only ever made by preview.js + for tag in re.findall(r"<iframe\b[^>]*>", scripts["app.js"]): + self.assertIn('sandbox=""', tag) + self.assertNotIn("createElement(\"iframe\")", scripts["app.js"]) + self.assertIn("srcdoc", scripts["preview.js"]) + self.assertNotRegex(scripts["preview.js"], r"\.src\s*=") + + +class TheHeader(unittest.TestCase): + @classmethod + def setUpClass(cls): + tok = ByteTokenizer() + cls.svc = Service(MockEngine(tok, "ok"), tok, ChatTemplate(ROOT / "serve" / "chat_template.jinja")) + cls.httpd = serve(cls.svc, port=0) + cls.base = f"http://127.0.0.1:{cls.httpd.server_address[1]}" + + @classmethod + def tearDownClass(cls): + cls.httpd.shutdown() + cls.httpd.server_close() + + def test_the_page_forbids_a_frame_to_load_an_address(self): + with urllib.request.urlopen(self.base + "/", timeout=10) as r: + self.assertEqual(r.headers.get("Content-Security-Policy"), PAGE_CSP) + self.assertEqual(PAGE_CSP, "frame-src 'none'", + "only this directive: a srcdoc frame inherits the page's policy, and the opt-in script preview needs its inline script") + + def test_other_files_do_not_carry_it(self): + with urllib.request.urlopen(self.base + "/web/app.js", timeout=10) as r: + self.assertIsNone(r.headers.get("Content-Security-Policy")) + + +@unittest.skipUnless(os.environ.get("WEBTEST_MODULES") and shutil.which("node"), + "set WEBTEST_MODULES (a folder with node_modules/puppeteer-core) to run the browser tests") +class InABrowser(unittest.TestCase): + def test_sandbox_in_chrome(self): + r = subprocess.run([shutil.which("node"), str(ROOT / "tools" / "webtest" / "browser_test.mjs"), "preview"], + capture_output=True, text=True, timeout=300) + self.assertEqual(r.returncode, 0, r.stdout + r.stderr) + + +if __name__ == "__main__": + unittest.main() diff --git a/serve/web/app.css b/serve/web/app.css index e899121b..fb17d537 100644 --- a/serve/web/app.css +++ b/serve/web/app.css @@ -228,3 +228,16 @@ main { flex: 1; min-height: 0; display: flex; } .chat-math--display > * { margin: 0 !important; } .chat-math[data-math-error] { white-space: pre-wrap; } .chat-math .katex { font-size: 1.08em; } + +/* svg/html preview (serve/web/preview.js): the frame is sandboxed and carries the page's colours, so it is transparent on the + theme's surface; the code and the preview swap places inside the same box. */ +.st-code__btns { display: flex; gap: 4px; } +.st-code .st-btn--icon[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: #fff; } +.st-code__preview { display: none; } +.st-code[data-preview="true"] > pre { display: none; } +.st-code[data-preview="true"] .st-code__preview { display: block; height: min(340px, 60vh); background: var(--st-surface-2); } +.st-code [data-preview-scripts] { display: none; } +.st-code[data-preview="true"] [data-preview-scripts] { display: inline-flex; } +.st-code .st-btn--icon[data-preview-scripts][aria-pressed="true"] { background: var(--st-warn-tint); color: var(--st-warn-text); } +.st-code--run .st-code__preview { outline: 2px solid var(--st-warn-text); outline-offset: -2px; } +.st-code__preview iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; } diff --git a/serve/web/app.js b/serve/web/app.js index ef81c9bb..310c0b90 100644 --- a/serve/web/app.js +++ b/serve/web/app.js @@ -60,6 +60,7 @@ function setTheme(t, save) { if (save) try { localStorage.setItem("strata.theme", t); } catch (e) { /* ignore */ } $("theme-icon").setAttribute("href", `${SPRITE}#i-${t === "dark" ? "sun" : "moon"}`); $("dark-toggle").setAttribute("aria-checked", String(t === "dark")); + refreshPreviews(); // the preview frames carry the page's colours } const flipTheme = () => setTheme(document.documentElement.dataset.theme === "dark" ? "light" : "dark", true); $("theme-btn").onclick = flipTheme; @@ -512,10 +513,36 @@ function inline(s) { .replace(/\[([^\]\n]+)\]\((https?:\/\/[^)\s]+)\)/g, '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'); return s.replace(/\u0000(\d+)\u0000/g, (_, i) => `<code class="inline">${esc(codes[+i])}</code>`); } -function codeBlock(lang, code) { - return `<div class="st-code"><div class="st-code__head"><span>${esc(lang || "code")}</span>` + - `<button class="st-btn st-btn--icon" data-code-copy aria-label="Copy code">${icon("copy")}</button></div>` + - `<pre><code>${esc(code)}</code></pre></div>`; +// An ```svg or ```html block that is complete gets a Preview button (serve/web/preview.js): the block's own code in a sandboxed +// frame, built when it is first opened and again when the theme changes. The state lives on the box (data-preview), so it +// resets if the answer is rebuilt. A page (html) can also be run WITH scripts, after a warning, one block at a time. +function pageTheme() { + const root = document.documentElement; + return {dark: root.dataset.theme === "dark", ink: getComputedStyle(root).getPropertyValue("--st-ink").trim()}; +} +function fillPreview(fr, scripts, blank) { + const box = fr.closest(".st-code"); + const doc = blank ? null : StrataPreview.previewDoc(fr.dataset.lang, box.querySelector("pre").textContent, scripts, pageTheme(), window); + const nf = StrataPreview.makeFrame(doc, {scripts, title: fr.title, lang: fr.dataset.lang}); + fr.replaceWith(nf); + box.classList.toggle("st-code--run", !!(doc && scripts)); + const rb = box.querySelector("[data-preview-scripts]"); + if (rb) { + rb.setAttribute("aria-pressed", String(!!(doc && scripts))); + rb.setAttribute("aria-label", doc && scripts ? tr("preview.stopScripts", "Stop scripts") : tr("preview.runScripts", "Run scripts")); + } +} +function refreshPreviews() { for (const fr of document.querySelectorAll("iframe[data-opened]")) fillPreview(fr, fr.dataset.scripts === "1"); } +function codeBlock(lang, code, complete) { + const ok = complete && StrataPreview.canPreview(lang || "", code); + const kind = ok ? StrataPreview.kindOf(lang) : null; + const label = kind === "svg" ? tr("preview.showSvg", "Preview the picture") : tr("preview.showPage", "Preview the page"); + const head = `<div class="st-code__head"><span>${esc(lang || tr("code.label", "code"))}</span><span class="st-code__btns">` + + (kind === "page" ? `<button class="st-btn st-btn--icon" data-preview-scripts aria-label="${esc(tr("preview.runScripts", "Run scripts"))}" aria-pressed="false" title="${esc(tr("preview.runScripts", "Run scripts"))}">${icon("warning")}</button>` : "") + + (ok ? `<button class="st-btn st-btn--icon" data-preview-toggle data-preview-label="${esc(label)}" aria-label="${esc(label)}" title="${esc(label)}" aria-pressed="false">${icon("image")}</button>` : "") + + `<button class="st-btn st-btn--icon" data-code-copy aria-label="${esc(tr("code.copy", "Copy code"))}">${icon("copy")}</button></span></div>`; + const prev = ok ? `<div class="st-code__preview"><iframe sandbox="" title="${esc(kind === "svg" ? tr("preview.titleSvg", "Picture preview") : tr("preview.titlePage", "Page preview"))}" data-lang="${esc(lang)}"></iframe></div>` : ""; + return `<div class="st-code">${head}<pre><code>${esc(code)}</code></pre>${prev}</div>`; } function blocks(text) { const out = [], lines = text.split("\n"); @@ -561,8 +588,8 @@ function markdown(text) { html += blocks(rest.slice(0, m.index)); rest = rest.slice(m.index + m[0].length); const end = rest.match(/(^|\n)```[ \t]*(\n|$)/); - if (!end) { html += codeBlock(m[2].trim(), rest); break; } // still streaming - html += codeBlock(m[2].trim(), rest.slice(0, end.index)); + if (!end) { html += codeBlock(m[2].trim(), rest, false); break; } // still streaming: no preview of a half-written block + html += codeBlock(m[2].trim(), rest.slice(0, end.index), true); rest = rest.slice(end.index + end[0].length); } return html; @@ -727,6 +754,27 @@ function scrollDown(force) { const s = $("chat-scroll"); if (force || nearBottom $("chat").addEventListener("click", (e) => { const cc = e.target.closest("[data-code-copy]"); if (cc) { copyText(cc.closest(".st-code").querySelector("pre").textContent, cc); return; } + // an svg/html block: flip between its code and its sandboxed preview. Closing the preview also turns scripts off. + const pv = e.target.closest("[data-preview-toggle]"); + if (pv) { + const box = pv.closest(".st-code"); + const on = box.dataset.preview === "true"; + if (on) delete box.dataset.preview; else box.dataset.preview = "true"; + pv.setAttribute("aria-pressed", String(!on)); + pv.setAttribute("aria-label", on ? pv.dataset.previewLabel : tr("preview.showCode", "Show the code")); + const fr = box.querySelector("iframe"); + if (on) fillPreview(fr, false, true); + else if (!fr.dataset.opened) fillPreview(fr, false); + return; + } + const rs = e.target.closest("[data-preview-scripts]"); + if (rs) { + const fr = rs.closest(".st-code").querySelector("iframe"); + const run = fr.dataset.scripts !== "1"; + if (run && !confirm(tr("preview.confirm", "Run this code with scripts?\n\nIt runs in your browser, cut off from this chat and from the network, but it can still freeze the tab, and it is code the model wrote.\n\nOnly this block, and only until you close the preview."))) return; + fillPreview(fr, run); + return; + } const mc = e.target.closest("[data-msg-copy]"); if (mc) { const i = +mc.closest(".st-msg").dataset.i; copyText(messages[i].text, mc); return; } // a tool block: its open state lives in the message (the answer is rebuilt while it streams), so the click sets it diff --git a/serve/web/index.html b/serve/web/index.html index f08271ba..704417c7 100644 --- a/serve/web/index.html +++ b/serve/web/index.html @@ -271,6 +271,7 @@ <div class="scrim" id="scrim" hidden></div> <div class="st-toasts" id="toasts" aria-live="polite"></div> <script src="web/i18n.js"></script> +<script src="web/preview.js"></script> <script src="web/math.js"></script> <script src="web/math-adapter.js"></script> <script src="web/app.js"></script> diff --git a/serve/web/preview.js b/serve/web/preview.js new file mode 100644 index 00000000..b6d26fb9 --- /dev/null +++ b/serve/web/preview.js @@ -0,0 +1,81 @@ +// serve/web/preview.js - the preview of an ```svg or ```html block in an answer (PR #1628 by thoives). +// +// A block is shown in an <iframe srcdoc> that is cut off from the page: +// - sandbox="" : an opaque origin, so no access to the page's DOM, storage, cookies or the server; no scripts, no forms, +// no popups, no navigation of the page, no downloads; +// - a CSP in the frame's own document: default-src 'none' (no network, no fonts, no frames, no media), styles inline and +// pictures as data: only, no <base>, no form target; +// - the page's own header CSP frame-src 'none' (serve/server.py) stops the frame from navigating away to a web page +// (a link, or <meta refresh>), which no sandbox flag can. +// An svg is shown as an <img> with a data: URL where it parses as XML: an image runs no scripts and loads nothing, and it +// animates in every browser. The user can run ONE html block with scripts, after a warning, never remembered: the frame then +// has sandbox="allow-scripts" (still an opaque origin, still no network), and the CSP allows its inline script. +// +// This file builds strings and frames only; app.js decides when. Nothing in it touches the page's own DOM. +"use strict"; +(function (root) { + // no allow-same-origin: that would give the frame the page's origin and with it the page itself + const SANDBOX = {static: "", scripts: "allow-scripts"}; + const csp = (scripts) => "default-src 'none'; " + (scripts ? "script-src 'unsafe-inline'; " : "") + + "style-src 'unsafe-inline'; img-src data:; base-uri 'none'; form-action 'none'"; + const metaCsp = (scripts) => `<meta http-equiv="Content-Security-Policy" content="${csp(scripts)}">`; + const SVG_NS = "http://www.w3.org/2000/svg"; + + // theme = {dark: bool, ink: "#rrggbb"}: the frame carries the page's colours, so it is transparent on the page's surface + const safeInk = (ink) => (/^[#\w(),.\s%-]{1,40}$/.test(ink || "") ? ink : "CanvasText"); + const themeCss = (theme) => `html{color-scheme:${theme && theme.dark ? "dark" : "light"};color:${safeInk(theme && theme.ink)}}`; + const frameHead = (css, scripts, theme) => `<!doctype html><html><head>${metaCsp(scripts)}<style>${themeCss(theme)}html,body{background:transparent;margin:0;height:100%}${css}</style></head><body>`; + + // a plain svg as an <img> with a data: URL, or null when it is not well-formed XML (then the inline svg is used) + function svgImage(s, theme, env = root) { + try { + const doc = new env.DOMParser().parseFromString(/^<svg\b[^>]*\sxmlns\s*=/i.test(s) ? s : s.replace(/^<svg\b/i, `<svg xmlns="${SVG_NS}"`), "image/svg+xml"); + const r = doc.documentElement; + if (doc.querySelector("parsererror") || r.namespaceURI !== SVG_NS || r.localName !== "svg") return null; + const st = doc.createElementNS(SVG_NS, "style"); // an image has no page around it: give currentColor the page's ink + st.textContent = `svg{color:${safeInk(theme && theme.ink)}}`; + r.insertBefore(st, r.firstChild); + const fill = !r.hasAttribute("width") && !r.hasAttribute("height"); + return `<img alt="" ${fill ? 'style="width:100%;height:100%;object-fit:contain" ' : ""}src="data:image/svg+xml;charset=utf-8,${encodeURIComponent(new env.XMLSerializer().serializeToString(doc))}">`; + } catch (e) { return null; } + } + + // the document for a block, or null when the block is not a previewable svg or html (lang is the fence's language) + function previewDoc(lang, code, scripts, theme, env) { + let s = String(code).trim(); + if (/^svg\b/i.test(lang) && /^<svg[\s>]/i.test(s)) { + const img = scripts ? null : svgImage(s, theme, env); + return frameHead("body{display:flex;align-items:center;justify-content:center}" + (img ? "img" : "svg") + "{max-width:100%;max-height:100%}", scripts, theme) + + (img || s) + "</body></html>"; + } + if (/^html?$/i.test(lang) && /^<[/a-z!]/i.test(s)) { + s = s.replace(/<meta\b[^>]*\bhttp-equiv\s*=\s*["']?\s*refresh\b[^>]*>/gi, ""); // a page that redirects itself would leave the sandbox's document + // a complete document: our CSP and theme come first, then the page without its doctype (its own html and head tags merge + // into ours, and its own CSS still wins); nothing of the page can run before the CSP is in force + if (/^<!doctype\s+html/i.test(s)) return `<!doctype html><html><head>${metaCsp(scripts)}<style>${themeCss(theme)}</style></head>` + s.replace(/^<!doctype[^>]*>/i, ""); + return frameHead("", scripts, theme) + s + "</body></html>"; // a fragment: wrap in a minimal document + } + return null; + } + const kindOf = (lang) => (/^svg\b/i.test(lang) ? "svg" : "page"); + // cheap: can this block be previewed at all (the same test as previewDoc, without building anything) + const canPreview = (lang, code) => { + const s = String(code).trim(); + return (/^svg\b/i.test(lang) && /^<svg[\s>]/i.test(s)) || (/^html?$/i.test(lang) && /^<[/a-z!]/i.test(s)); + }; + + // a new frame holding the document (the sandbox attribute only counts when a frame is created, so a frame is never reused) + function makeFrame(doc, {scripts = false, title = "", lang = ""} = {}, env = root) { + const f = env.document.createElement("iframe"); + f.setAttribute("sandbox", scripts ? SANDBOX.scripts : SANDBOX.static); + f.setAttribute("referrerpolicy", "no-referrer"); + f.setAttribute("allow", ""); + f.title = title; f.dataset.lang = lang; + if (doc) { f.dataset.opened = "1"; if (scripts) f.dataset.scripts = "1"; f.srcdoc = doc; } + return f; + } + + const api = {SANDBOX, csp, metaCsp, previewDoc, svgImage, kindOf, canPreview, makeFrame, themeCss}; + root.StrataPreview = api; + if (typeof module !== "undefined" && module.exports) module.exports = api; +})(typeof globalThis !== "undefined" ? globalThis : this); diff --git a/tools/webtest/browser_test.mjs b/tools/webtest/browser_test.mjs new file mode 100644 index 00000000..8fe01ec2 --- /dev/null +++ b/tools/webtest/browser_test.mjs @@ -0,0 +1,185 @@ +// Browser tests of the served web page (serve/web) in headless Chrome or Edge, against the mock server in mock.mjs. +// No model, no GPU. Optional: the normal test run (serve/test_web_*.py, node serve/test_web_*.js) does not need a browser. +// +// WEBTEST_MODULES=<folder with node_modules/puppeteer-core> [CHROME_BIN=<chrome>] node tools/webtest/browser_test.mjs [name] +import assert from "node:assert/strict"; +import { startMock } from "./mock.mjs"; +import { launch, openPage, say, idle, sleep, runner } from "./lib.mjs"; + +const { test, run } = runner("web page browser tests"); + +const turn = (role, text, extra = {}) => ({ role, text, time: 1, ...extra }); +const fence = (lang, code) => "```" + lang + "\n" + code + "\n```\n"; + +// ------------------------------------------------------------------------------------------------ preview (#1628) +const hostilePage = (base) => `<!doctype html><html><head><meta http-equiv="refresh" content="0;url=${base}/exfil-refresh"></head><body> +<pre id="out">static</pre><a id="l" href="${base}/exfil-link">link</a> +<form id="f" action="${base}/exfil-form" method="post"><button id="s">go</button></form> +<script> +const out = []; +const log = (k, v) => { out.push(k + ": " + v); document.getElementById("out").textContent = out.join("\\n"); }; +try { log("parent.document", typeof parent.document.title); } catch (e) { log("parent.document", "blocked " + e.name); } +try { log("top.document", typeof top.document.title); } catch (e) { log("top.document", "blocked " + e.name); } +try { log("localStorage", localStorage.length); } catch (e) { log("localStorage", "blocked " + e.name); } +try { log("cookie", document.cookie.length); } catch (e) { log("cookie", "blocked " + e.name); } +try { top.location = "${base}/exfil-top"; log("top.location=", "no error"); } catch (e) { log("top.location=", "blocked " + e.name); } +try { const w = window.open("${base}/exfil-open"); log("window.open", w ? "opened" : "blocked"); } catch (e) { log("window.open", "blocked"); } +try { parent.postMessage("hello", "*"); log("postMessage", "sent"); } catch (e) { log("postMessage", "blocked"); } +fetch("${base}/exfil-fetch").then(() => log("fetch", "went out"), () => log("fetch", "blocked")); +const x = new XMLHttpRequest(); x.open("GET", "${base}/exfil-xhr"); x.onerror = () => log("xhr", "blocked"); x.onload = () => log("xhr", "went out"); try { x.send(); } catch (e) { log("xhr", "blocked"); } +new Image().src = "${base}/exfil-img"; +const s = document.createElement("script"); s.src = "${base}/exfil-script.js"; document.head.appendChild(s); +try { new WebSocket("ws://127.0.0.1:9/exfil-ws"); } catch (e) { log("websocket", "blocked"); } +log("ran", "yes"); +</script></body></html>`; + +async function hostileChat(mock) { + return { chat: [turn("user", "page please"), turn("assistant", "Here:\n\n" + fence("html", hostilePage(mock.url)))] }; +} +const exfil = (mock) => mock.state.calls.filter((c) => c.includes("exfil")); + +test("preview: an svg block previews as a picture, with no script and no network", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: { chat: [turn("user", "draw"), turn("assistant", "x\n\n" + fence("svg", + '<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><script>parent.__pwned=1</script><image href="' + mock.url + '/exfil-svg-img"/><circle cx="40" cy="40" r="30" fill="red" onload="parent.__pwned=2"/></svg>'))] } }); + await page.click("[data-preview-toggle]"); + const frame = await page.$("iframe"); + assert.equal(await frame.evaluate((f) => f.getAttribute("sandbox")), "", "the sandbox has no flags at all"); + assert.equal(await frame.evaluate((f) => f.getAttribute("referrerpolicy")), "no-referrer"); + const doc = await frame.evaluate((f) => f.srcdoc); + assert.match(doc, /Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:; base-uri 'none'; form-action 'none'"/); + assert.match(doc, /<img [^>]*src="data:image\/svg\+xml/, "a well-formed svg is shown as an image: images run no script"); + await sleep(400); + assert.equal(await page.evaluate(() => window.__pwned), undefined); + assert.deepEqual(exfil(mock), []); + await page.close(); +}); + +test("preview: a page does not run scripts, load addresses or leave the sandbox until asked", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: await hostileChat(mock) }); + const title = await page.title(), url = page.url(); + await page.click("[data-preview-toggle]"); + await sleep(600); + const frame = await (await page.$("iframe")).contentFrame(); + assert.equal(await frame.evaluate(() => document.getElementById("out").textContent), "static", "the script did not run"); + assert.equal(await (await page.$("iframe")).evaluate((f) => f.getAttribute("sandbox")), ""); + assert.equal(page.lastDialog, undefined, "no dialog without the run button"); + await frame.click("#l").catch(() => {}); // a link in the page + await frame.click("#s").catch(() => {}); // a form in the page + await sleep(500); + assert.deepEqual(exfil(mock), [], "no request left the preview"); + assert.equal(page.url(), url); assert.equal(await page.title(), title); + await page.close(); +}); + +test("preview: run with scripts keeps the page and the network out of reach", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: await hostileChat(mock) }); + const url = page.url(), title = await page.title(); + const messages = []; + await page.evaluate(() => { window.addEventListener("message", (e) => { window.__message = e.data; }); }); + await page.click("[data-preview-toggle]"); + await page.click("[data-preview-scripts]"); + assert.match(page.lastDialog, /Run this code with scripts/, "a warning comes first"); + const iframe = await page.$("iframe"); + assert.equal(await iframe.evaluate((f) => f.getAttribute("sandbox")), "allow-scripts", "scripts, and nothing else"); + await sleep(1200); + const frame = await iframe.contentFrame(); + const out = await frame.evaluate(() => document.getElementById("out").textContent); + for (const line of ["ran: yes", "parent.document: blocked SecurityError", "top.document: blocked SecurityError", + "localStorage: blocked SecurityError", "cookie: blocked SecurityError", "fetch: blocked", "xhr: blocked", "window.open: blocked"]) { + assert.ok(out.includes(line), `${line}\n--- got:\n${out}`); + } + await frame.click("#l").catch(() => {}); + await frame.click("#s").catch(() => {}); + await sleep(800); + assert.deepEqual(exfil(mock), [], "no address was reached from the preview: " + exfil(mock)); + assert.equal(page.url(), url, "the page did not navigate"); + assert.equal(await page.title(), title); + assert.equal(await page.evaluate(() => document.querySelectorAll("iframe").length), 1, "no frame was added to the page"); + assert.equal(await page.evaluate(() => typeof localStorage.getItem("strata.chat")), "string", "the page's own store is untouched"); + // a message to the page is the only thing that can cross; the page has no listener of its own, so nothing happens with it + assert.ok(!(await page.evaluate(() => /addEventListener\(["']message["']/.test(document.scripts[document.scripts.length - 1].textContent || "")))); + // closing the preview ends the script + await page.click("[data-preview-toggle]"); + assert.equal(await page.$eval(".st-code", (b) => b.classList.contains("st-code--run")), false); + assert.equal(await page.$eval("iframe", (f) => f.getAttribute("sandbox")), ""); + assert.equal(await page.$eval("iframe", (f) => f.getAttribute("srcdoc")), null); + await page.close(); +}); + +test("preview: the page's CSP header is what keeps a link inside the preview from loading a web page", async ({ browser }) => { + const link = (m) => ({ chat: [turn("user", "x"), turn("assistant", fence("html", `<a id="l" href="${m.url}/exfil-link">go</a>`))] }); + for (const csp of [false, true]) { + const m = await startMock({ csp }); + const page = await openPage(browser, m, { seed: link(m) }); + await page.click("[data-preview-toggle]"); + await sleep(300); + await (await (await page.$("iframe")).contentFrame()).click("#l"); + await sleep(700); + const went = exfil(m).length; + assert.equal(went, csp ? 0 : 1, csp ? "with the header the link goes nowhere" : "without it the sandbox alone does let a link load a page (why the header exists)"); + await page.close(); + await m.stop(); + } +}); + +test("preview: declining the warning runs nothing", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: await hostileChat(mock), dialogs: "dismiss" }); + await page.click("[data-preview-toggle]"); + await page.click("[data-preview-scripts]"); + assert.ok(page.lastDialog); + assert.equal(await page.$eval("iframe", (f) => f.getAttribute("sandbox")), ""); + assert.equal(await (await (await page.$("iframe")).contentFrame()).evaluate(() => document.getElementById("out").textContent), "static"); + await page.close(); +}); + +test("preview: not offered for a half-written block, other languages or text that is not markup", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: { chat: [turn("user", "x"), + turn("assistant", fence("python", "<svg></svg>") + fence("html", "just words") + fence("svg", "not an svg") + "```html\n<p>unfinished")] } }); + assert.equal(await page.$$eval("[data-preview-toggle]", (e) => e.length), 0); + await page.close(); +}); + +test("preview: follows the theme and shows the code again", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { dark: false, seed: { chat: [turn("user", "x"), turn("assistant", fence("html", "<p>hello</p>"))] } }); + await page.click("[data-preview-toggle]"); + const doc = () => page.$eval("iframe", (f) => f.srcdoc); + assert.match(await doc(), /color-scheme:light/); + await page.click("#theme-btn"); + assert.match(await doc(), /color-scheme:dark/, "the frame is built again when the theme changes"); + assert.equal(await page.$eval("pre", (p) => getComputedStyle(p).display), "none"); + await page.click("[data-preview-toggle]"); + assert.notEqual(await page.$eval("pre", (p) => getComputedStyle(p).display), "none"); + await page.close(); +}); + +test("preview: from a streamed answer, only once the block is complete", async ({ browser, mock }) => { + const page = await openPage(browser, mock); + await say(page, "#svg draw a circle"); + await idle(page); + assert.equal(await page.$$eval("[data-preview-toggle]", (e) => e.length), 1); + await page.click("[data-preview-toggle]"); + const w = await (await page.$("iframe")).evaluate((f) => f.getBoundingClientRect().width); + assert.ok(w > 100, "the frame has room"); + await page.close(); +}); + +// ------------------------------------------------------------------------------------------------ math (#2972, #2974) +test("math: off by default, drawn when switched on, source kept", async ({ browser, mock }) => { + const page = await openPage(browser, mock); + await say(page, "#math please"); + await idle(page); + assert.equal(await page.$$eval(".katex", (e) => e.length), 0, "off: the model's text as written"); + await page.evaluate(() => { settings.math = true; renderChat(); }); + await page.waitForSelector(".katex"); + assert.equal(await page.$$eval(".katex", (e) => e.length), 3, "the inline, the display and the blocked-command formula"); + const requestText = await page.evaluate(() => JSON.stringify(apiMessages())); + assert.ok(requestText.includes("\\\\pi r^2") && requestText.includes("\\\\frac{n(n+1)}{2}"), "the request keeps the source"); + assert.equal(await page.$$eval("#chat a[href], #chat .chat-math img", (e) => e.length), 0, "no link or picture from a formula"); + assert.deepEqual(exfil(mock), []); + assert.equal(await page.evaluate(() => messages.at(-1).text.includes("$\\pi r^2$")), true); + await page.close(); +}); + +const mock = await startMock(); +const browser = await launch(); +await run(async () => ({ browser, mock, close: async () => { await browser.close(); await mock.stop(); } })); diff --git a/tools/webtest/lib.mjs b/tools/webtest/lib.mjs new file mode 100644 index 00000000..e7cce3cd --- /dev/null +++ b/tools/webtest/lib.mjs @@ -0,0 +1,77 @@ +// Shared bits for the browser tests and the screenshot script of the served web page (serve/web): a headless Chromium, +// a page against the mock server, small helpers. puppeteer-core is not a dependency of the repo: install it anywhere and +// point WEBTEST_MODULES at that folder (the one that holds node_modules); CHROME_BIN is the Chrome or Edge to drive. +import { createRequire } from "node:module"; +import path from "node:path"; +import fs from "node:fs"; + +const req = createRequire(path.join(process.env.WEBTEST_MODULES || process.cwd(), "noop.js")); +export const puppeteer = req("puppeteer-core"); + +const CANDIDATES = [process.env.CHROME_BIN, "C:/Program Files/Google/Chrome/Application/chrome.exe", + "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe", "/usr/bin/google-chrome", "/usr/bin/chromium", "/usr/bin/chromium-browser", + "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"].filter(Boolean); +export const chrome = () => { + const found = CANDIDATES.find((p) => fs.existsSync(p)); + if (!found) throw new Error("no Chrome or Edge found; set CHROME_BIN"); + return found; +}; +export const launch = () => puppeteer.launch({ executablePath: chrome(), headless: true, args: ["--no-sandbox", "--disable-gpu"] }); + +// a page with a seeded browser store (localStorage values are JSON, as the page's own store writes them), console errors collected +export async function openPage(browser, mock, { width = 1280, height = 800, seed = {}, query = "", dark = false, hash = "", dialogs = "accept" } = {}) { + const context = await browser.createBrowserContext(); + const page = await context.newPage(); + page.errors = []; + page.on("pageerror", (e) => page.errors.push("pageerror: " + e.message)); + page.on("console", (m) => { if (m.type() === "error") page.errors.push("console: " + m.text()); }); + page.on("dialog", async (d) => { page.lastDialog = d.message(); if (dialogs === "accept") await d.accept(); else await d.dismiss(); }); + await page.setViewport({ width, height }); + await page.emulateMediaFeatures([{ name: "prefers-color-scheme", value: dark ? "dark" : "light" }]); + await page.evaluateOnNewDocument((s) => { + if (window !== window.top) return; // not in the preview frames: they have no storage + if (sessionStorage.getItem("seeded")) return; + sessionStorage.setItem("seeded", "1"); + for (const [k, v] of Object.entries(s)) localStorage.setItem("strata." + k, JSON.stringify(v)); + }, seed); + await page.goto(mock.url + "/" + query + hash, { waitUntil: "networkidle0" }); + return page; +} + +export const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); +// the page's own `busy` is a top-level let of app.js: reachable by name from page.evaluate +export const idle = (page, timeout = 15000) => page.waitForFunction(() => busy === null, { timeout }); +export async function say(page, text) { + await page.click("#input"); + await page.type("#input", text); + await page.keyboard.press("Enter"); +} +export const assistantText = (page, i = -1) => page.evaluate((n) => { const a = messages.filter((m) => m.role === "assistant"); return a.at(n).text; }, i); +export const shot = async (page, dir, name, opts = {}) => { + fs.mkdirSync(dir, { recursive: true }); + const file = path.join(dir, name + ".png"); + await page.screenshot({ path: file, ...opts }); + return file; +}; + +// tiny test runner: node file.mjs [name-substring] +export function runner(title) { + const tests = []; + const only = process.argv[2]; + return { + test: (name, fn) => tests.push([name, fn]), + async run(setup) { + const ctx = await setup(); + let failed = 0; + for (const [name, fn] of tests) { + if (only && !name.includes(only)) continue; + const t = Date.now(); + try { await fn(ctx); console.log(`ok ${name} (${Date.now() - t} ms)`); } + catch (e) { failed++; console.log(`FAIL ${name}\n ${String(e.stack || e).split("\n").slice(0, 6).join("\n ")}`); } + } + await ctx.close(); + console.log(failed ? `${title}: ${failed} failed` : `${title}: all passed`); + process.exitCode = failed ? 1 : 0; + }, + }; +} diff --git a/tools/webtest/mock.mjs b/tools/webtest/mock.mjs new file mode 100644 index 00000000..6c343c21 --- /dev/null +++ b/tools/webtest/mock.mjs @@ -0,0 +1,129 @@ +// A stand-in for the Strata server for tests of the served web page (serve/web): it serves the page's own files and +// answers the few calls the page makes with scripted text. No model, no GPU, no Python. Used by browser_test.mjs and shots.mjs. +// +// import { startMock } from "./mock.mjs"; +// const mock = await startMock(); // { url, state, stop() } +// +// What the page asks and what it gets: GET /health /metrics /mcp /settings /config, POST /load /unload, +// POST /v1/chat/completions (streamed). The reply depends on a word in the last user message: +// #math inline and display formulas, a price #svg / #html a fenced svg / html block #think reasoning first +// #long a slow answer (about 6 s) to interrupt #hold never ends until the page stops it #tool an MCP tool call, then text +// #error a 500 anything else: "Mock answer N." +import http from "node:http"; +import fs from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +const here = path.dirname(fileURLToPath(import.meta.url)); +export const WEB = path.resolve(here, "..", "..", "serve", "web"); +const TYPES = { ".html": "text/html; charset=utf-8", ".js": "text/javascript; charset=utf-8", ".css": "text/css; charset=utf-8", + ".svg": "image/svg+xml", ".json": "application/json; charset=utf-8", ".woff2": "font/woff2" }; + +// the one header the real server puts on the page (serve/server.py, PAGE_CSP): read from the source so the two cannot drift +const PAGE_CSP = (/^PAGE_CSP = "(.*)"$/m.exec(fs.readFileSync(path.join(here, "..", "..", "serve", "server.py"), "utf8")) || [])[1] || ""; +const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); +const lastUser = (messages) => { + for (let i = messages.length - 1; i >= 0; i--) { + if (messages[i].role !== "user") continue; + const c = messages[i].content; + return typeof c === "string" ? c : (c.find((p) => p.type === "text") || {}).text || ""; + } + return ""; +}; + +const MATH = "The area is $\\pi r^2$ and the sum is\n\n$$\\sum_{k=1}^{n} k = \\frac{n(n+1)}{2}$$\n\nIt costs $5 or $10, and `$x$` is code.\n\n" + + "A bad one: $\\frac{1}{$ and a link-ish \\href{javascript:alert(1)}{click}: $\\href{javascript:alert(1)}{click}$."; +const SVG = "Here is a circle:\n\n```svg\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" width=\"120\" height=\"120\">" + + "<circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#10b981\"/><text x=\"50\" y=\"56\" text-anchor=\"middle\" fill=\"white\" font-size=\"18\">SVG</text></svg>\n```\n"; +const HTML = "A small page:\n\n```html\n<!doctype html><html><body style=\"font-family:sans-serif\"><h2>Hello</h2>" + + "<p id=\"p\">Static text.</p><script>document.getElementById('p').textContent='Script ran.'</script></body></html>\n```\n"; + +export async function startMock({ port = 0, root = WEB, loaded = true, csp = true } = {}) { + const state = { requests: [], aborted: 0, completed: 0, loaded, calls: [], answers: 0 }; + const server = http.createServer(async (req, res) => { + const url = new URL(req.url, "http://x"); + const p = url.pathname.replace(/\/+$/, ""); + state.calls.push(`${req.method} ${p}`); + const json = (code, body) => { res.writeHead(code, { "Content-Type": "application/json" }); res.end(JSON.stringify(body)); }; + if (req.method === "GET") { + if (p === "") return file(res, path.join(root, "index.html"), undefined, csp && PAGE_CSP ? { "Content-Security-Policy": PAGE_CSP } : {}); + if (p.startsWith("/web/")) return file(res, path.join(root, p.slice(5)), root); + if (p.startsWith("/fonts/")) return file(res, path.join(root, "fonts", p.slice(7)), root); + if (p === "/health") return json(200, { status: "ok", max_context: 32768, model: "Mock-Model", images: true, image_generation: false, loaded: state.loaded, service: "strata" }); + if (p === "/metrics") return json(200, metrics(state)); + if (p === "/mcp") return json(200, { servers: [], tools: 0 }); + if (p === "/settings") return json(200, { shared: false, defaults: null }); + return json(404, { error: { message: "not found" } }); + } + let body = ""; + for await (const part of req) body += part; + if (p === "/unload") { await sleep(150); state.loaded = false; return json(200, { status: "unloaded" }); } + if (p === "/load") { await sleep(300); state.loaded = true; return json(200, { status: "loaded" }); } + if (p === "/settings") return json(200, { shared: false }); + if (p !== "/v1/chat/completions") return json(404, { error: { message: "not found" } }); + const b = JSON.parse(body || "{}"); + state.requests.push(b); + const text = lastUser(b.messages || []); + if (text.includes("#error")) return json(500, { error: { message: "The mock engine failed on purpose." } }); + state.loaded = true; + res.writeHead(200, { "Content-Type": "text/event-stream", "Cache-Control": "no-cache" }); + let closed = false; + res.on("close", () => { if (!res.writableEnded) { closed = true; state.aborted++; } }); + const send = (o) => { if (!closed) res.write("data: " + JSON.stringify(o) + "\n\n"); }; + const say = async (s, ms = 0, step = 6) => { + for (let i = 0; i < s.length && !closed; i += step) { send({ choices: [{ delta: { content: s.slice(i, i + step) } }] }); if (ms) await sleep(ms); } + }; + state.answers++; + if (text.includes("#think")) { + for (const w of ["Let me think ", "about this ", "for a moment."]) { send({ choices: [{ delta: { reasoning_content: w } }] }); await sleep(30); } + await say("Thought through. The answer is 42."); + } else if (text.includes("#math")) await say(MATH, 4); + else if (text.includes("#svg")) await say(SVG, 2); + else if (text.includes("#html")) await say(HTML, 2); + else if (text.includes("#hold")) { await say("Working on it", 20); while (!closed) await sleep(50); return; } + else if (text.includes("#long")) { await say("This is a long answer that goes on for a while so that it can be interrupted. ".repeat(3), 40, 4); } + else if (text.includes("#tool")) { + await say("Let me look that up. ", 5); + const id = "call-1"; + send({ strata_mcp: { event: "call", id, name: "fs__read", server: "fs", tool: "read", arguments: { path: "notes.txt" }, round: 0 } }); + await sleep(900); + send({ strata_mcp: { event: "result", id, text: "The file says hello.", ok: true, chars: 20, ms: 900 } }); + await say("The file says hello.", 5); + } else await say(`Mock answer ${state.answers}.`, 5); + if (!closed) { + send({ choices: [{ delta: {}, finish_reason: "stop" }], usage: { completion_tokens: 12 } }); + res.write("data: [DONE]\n\n"); + res.end(); + state.completed++; + } + }); + await new Promise((r) => server.listen(port, "127.0.0.1", r)); + return { url: `http://127.0.0.1:${server.address().port}`, state, stop: () => new Promise((r) => { server.closeAllConnections?.(); server.close(r); }) }; +} + +function file(res, f, root, extra = {}) { + const resolved = path.resolve(f); + if (root && !resolved.startsWith(path.resolve(root) + path.sep)) { res.writeHead(404); return res.end(); } + fs.readFile(resolved, (err, data) => { + if (err) { res.writeHead(404, { "Content-Type": "application/json" }); return res.end('{"error":{"message":"not found"}}'); } + res.writeHead(200, { "Content-Type": TYPES[path.extname(resolved)] || "application/octet-stream", "Cache-Control": "no-cache", ...extra }); + res.end(data); + }); +} + +function metrics(state) { + const spark = Array.from({ length: 30 }, (_, i) => 20 + 10 * Math.sin(i / 3)); + return { + live: { state: state.loaded ? "idle" : "unloaded", queued: 0 }, + engine: { model: "Mock-Model", version: "0.0", max_context: 32768, expert_slots: 1200, expert_cache_mib: 9000 }, + hardware: { gpu_util: 35, gpu_mem_used: 9e9, gpu_mem_total: 12e9, gpu_temp: 61, gpu_power: 140, cpu: 22, ram_total: 64e9, ram_used: 30e9, disk_read_mb: 5 }, + hardware_static: { gpu_name: "Mock GPU", cpu_name: "Mock CPU", threads: 16, cores: 8, psutil: true }, + history: { tok_s: spark, gpu_util: spark, gpu_mem_used: spark, gpu_temp: spark, gpu_power: spark, cpu: spark, disk_read_mb: spark, gpu_pcie_rx_mb: spark, prefill_tok_s_mean: spark }, + requests: [], totals: null, requests_kept: 0, conversation_cache: null, + }; +} + +if (process.argv[1] === fileURLToPath(import.meta.url)) { + const mock = await startMock({ port: Number(process.argv[2] || 0) }); + console.log("mock server on " + mock.url); +} From bcdb92ac6875beb7e0418c1447701ce9440f2f9f Mon Sep 17 00:00:00 2001 From: Niko1221 <Niko1221@users.noreply.github.com> Date: Mon, 26 Oct 2026 19:59:54 +0100 Subject: [PATCH 46/52] Web page: Load and Unload in the header (#3550) One button in the header of every tab: Load while the model is unloaded, Unload otherwise. It calls POST /load and POST /unload (the server already had both, for its own page only). Unload asks first and never interrupts a turn: the button is off while an answer is being written, an image is made or a request is queued. The pill and the Monitor say Unloaded / Loading / Unloading, a message or an image on an unloaded model shows Loading, and a poll that started before the POST cannot flip the button back (the POST's state is held until a later poll agrees). On a phone the pill's text is the first thing the header row gives up (it measures the row, not a fixed width), so Load/Unload and the theme button stay on the screen from 320 px. Browser tests (tools/webtest/browser_test.mjs): unload with its question, load back, declining, not while answering, a message that loads, the header at 320 to 640 px. Ported by hand from PR #3550 by Sakurai Momoka (sakuumomo); the texts now go through the page's translation catalog. Co-authored-by: Sakurai Momoka <159397306+sakuumomo@users.noreply.github.com> --- serve/test_web_load_unload.py | 68 +++++++++++ serve/web/app.css | 22 +++- serve/web/app.js | 214 +++++++++++++++++++++++++++++++-- serve/web/index.html | 2 + tools/webtest/browser_test.mjs | 73 +++++++++++ 5 files changed, 363 insertions(+), 16 deletions(-) create mode 100644 serve/test_web_load_unload.py diff --git a/serve/test_web_load_unload.py b/serve/test_web_load_unload.py new file mode 100644 index 00000000..f6118e7d --- /dev/null +++ b/serve/test_web_load_unload.py @@ -0,0 +1,68 @@ +"""serve/test_web_load_unload.py - the web page's header carries the Load / Unload control (#3550, by sakuumomo). + +Pins, as text: index.html holds the header button and the Monitor's "Unloaded" badge; app.js wires the button to POST /load +and POST /unload, holds the POST's state until a later poll agrees, answers a 401 with the key copy, and refits the header +row only when its text changed (the per-second poll does not force a layout). The behaviour itself, in a real browser, is in +tools/webtest/browser_test.mjs ("load/unload: ..."). + + python -m unittest serve.test_web_load_unload -v +""" +from __future__ import annotations + +import shutil +import subprocess +import unittest +from pathlib import Path + +WEB = Path(__file__).resolve().parent / "web" + + +class WebLoadUnloadMarkup(unittest.TestCase): + @classmethod + def setUpClass(cls): + cls.html = (WEB / "index.html").read_text(encoding="utf-8") + cls.js = (WEB / "app.js").read_text(encoding="utf-8") + cls.css = (WEB / "app.css").read_text(encoding="utf-8") + + def test_header_button_and_monitor_badge(self): + self.assertIn('id="unload-btn"', self.html) + self.assertIn('data-s="unloaded"', self.html) + self.assertLess(self.html.index('id="unload-btn"'), self.html.index('id="theme-btn"')) # in the header row + + def test_button_posts_load_and_unload(self): + self.assertIn('$("unload-btn").onclick', self.js) + self.assertIn('fetch(loadingNow ? "load" : "unload", {method: "POST", headers: headers(true), body: "{}"})', self.js) + + def test_unload_asks_first_and_never_interrupts_a_turn(self): + self.assertIn("confirm(tr(\"model.confirmUnload\"", self.js) + self.assertIn("turnBlocksUnload(live)", self.js) + self.assertIn("function turnBlocksUnload(live)", self.js) + + def test_401_gets_the_key_copy(self): + # The control POST answers a 401 the way poll and send do, not with a bare HTTP line. + self.assertIn('r.status === 401 ? tr("toast.keyAbout2"', self.js) + + def test_poll_hold_until_a_poll_agrees(self): + self.assertIn("metricsHold = {state, after: metricsEpoch};", self.js) + self.assertIn("function metricsAgree(live, state)", self.js) + + def test_header_refits_only_on_changed_text(self): + # The per-second poll re-sets the pill; the fit runs when its text actually changed. + self.assertIn("if (text !== lastPillText) { lastPillText = text; fitHeader(); }", self.js) + + def test_the_header_row_keeps_the_buttons_on_a_phone(self): + self.assertIn("#unload-btn", self.css) + self.assertIn(".st-header--clip #pill-text", self.css) + for width in ("955px", "457px", "382px"): + self.assertIn(f"@media (max-width: {width})", self.css) + + +@unittest.skipUnless(shutil.which("node"), "node is not installed") +class WebLoadUnloadParses(unittest.TestCase): + def test_app_js_parses(self): + r = subprocess.run(["node", "--check", str(WEB / "app.js")], capture_output=True, text=True) + self.assertEqual(r.returncode, 0, r.stderr) + + +if __name__ == "__main__": + unittest.main() diff --git a/serve/web/app.css b/serve/web/app.css index fb17d537..9c40e420 100644 --- a/serve/web/app.css +++ b/serve/web/app.css @@ -11,6 +11,8 @@ main { flex: 1; min-height: 0; display: flex; } .card-title { font-weight: var(--st-fw-bold); font-size: var(--st-fs-base); color: var(--st-ink); } .st-header { position: relative; z-index: 2; flex: none; } .st-header .st-tabs { margin-left: var(--st-s-4); } +#unload-btn { flex: none; height: 32px; padding: 0 12px; min-width: 7.75rem; } +.st-header--clip #pill-text { display: none; } #drawer-close .st-icon { transform: rotate(-90deg); } /* ---------------------------------------------------------------- chat */ @@ -181,12 +183,26 @@ main { flex: 1; min-height: 0; display: flex; } @media (max-width: 900px) { .monitor-row { grid-template-columns: minmax(0, 1fr); } } -@media (max-width: 640px) { +/* The tab strip keeps a width it can scroll. The pill's text hides only when the header row overflows (fitHeader in app.js). + Load / Unload (PR #3550) sits in the row: 9rem of tabs plus its 7.75rem fit from 458px; below that the tighter floors keep + it and the theme button in the viewport. */ +@media (max-width: 955px) { .st-header { padding: 0 var(--st-s-3); gap: var(--st-s-2); } - .st-header .st-tabs { margin-left: 0; } + .st-header__brand, #theme-btn, #pill, #unload-btn { flex: none; } + .st-header .st-tabs { margin-left: 0; flex: 1 1 auto; min-width: 9rem; overflow-x: auto; } .st-tab { padding: 0 10px; } .st-tab .st-icon { display: none; } - #pill-text { display: none; } +} +@media (max-width: 457px) { + #unload-btn { min-width: 0; padding: 0 8px; } + .st-header .st-tabs { min-width: 5.5rem; } +} +/* the name plus "Unloading…" still overflows at 374px in Firefox 158 */ +@media (max-width: 382px) { + .st-header__brand { display: none; } + .st-header .st-tabs { min-width: 4.75rem; } +} +@media (max-width: 640px) { .chat { padding: var(--st-s-5) var(--st-s-4); } .composer-wrap { padding: 0 var(--st-s-3) var(--st-s-3); } .monitor, .about { padding: var(--st-s-4); } diff --git a/serve/web/app.js b/serve/web/app.js index 310c0b90..4b0477fd 100644 --- a/serve/web/app.js +++ b/serve/web/app.js @@ -164,22 +164,38 @@ function setMetric(key, value, unit, sub) { } let lastMetrics = null, metricsFailures = 0, keyWarned = false, mcpTick = 0; +let metricsEpoch = 0; +// After Load or Unload returns, a poll that started earlier can still say the opposite. Hold the POST's state until a later +// poll agrees, or until the first poll that started after the POST arrives. (PR #3550 by sakuumomo) +let metricsHold = null; let reqShowAll = false; // the Monitor's request table: the last 12, or every one the server keeps (issue #35) +function metricsAgree(live, state) { + const s = (live && live.state) || ""; + if (state === "unloaded") return s === "unloaded"; + return s !== "" && s !== "unloaded"; +} async function poll() { + const epoch = ++metricsEpoch; try { const r = await fetch(reqShowAll ? "metrics?requests=all" : "metrics", {headers: headers()}); if (r.status === 401) { - setPill("error", "API key needed"); - if (!keyWarned) { keyWarned = true; toast("warn", "API key needed", "This server needs a key: add it under About > Settings.", 6000); } + setPill("error", tr("pill.keyNeeded", "API key needed")); + if (!keyWarned) { keyWarned = true; toast("warn", tr("pill.keyNeeded", "API key needed"), tr("toast.keyAbout", "This server needs a key: add it under About > Settings."), 6000); } } else if (r.ok) { - lastMetrics = await r.json(); + const m = await r.json(); + if (metricsHold && epoch <= metricsHold.after && !metricsAgree(m.live, metricsHold.state)) { + setTimeout(poll, 1000); + return; + } + if (metricsHold && (metricsAgree(m.live, metricsHold.state) || epoch > metricsHold.after)) metricsHold = null; + lastMetrics = m; metricsFailures = 0; render(lastMetrics); } else { throw new Error(`HTTP ${r.status}`); } } catch (e) { - if (++metricsFailures === 3) setPill("error", "Server not reachable"); + if (++metricsFailures === 3) setPill("error", tr("pill.unreachable", "Server not reachable")); } if (tab === "monitor" && ++mcpTick % 10 === 0) loadMcp(); // server states change rarely: every 10 s setTimeout(poll, 1000); @@ -188,21 +204,164 @@ async function poll() { function setPill(state, text) { $("pill").dataset.state = state === "error" ? "queued" : state; $("pill-text").textContent = text; + // a poll re-sets the sentence every second; refit only when its text changed + if (text !== lastPillText) { lastPillText = text; fitHeader(); } } +let lastPillText = null; +// The pill's sentence is the first thing the header row can spare when it runs out of room. +function fitHeader() { + const header = document.querySelector(".st-header"); + if (!header) return; + header.classList.remove("st-header--clip"); + if (header.scrollWidth > header.clientWidth) header.classList.add("st-header--clip"); +} +window.addEventListener("resize", fitHeader); + +// ------------------------------------------------------------------ Load / Unload (POST /load, /unload: the header button) +// Metrics stay "unloaded" until the engine is READY, so a turn or an image job on this page has to paint Loading itself. +// modelOp covers the button's own POST, which returns before the next poll can agree. +let modelOp = null; +let imageBusy = false; +function pageBusy() { return busy != null || imageBusy; } +// "generating an image" is the job a refresh can see. imageBusy is this page's POST before that phase is published. A chat +// phase already on the metrics wins, because Stop still stops that reply. +function imageLive(live) { + if (live && live.phase === "generating an image") return true; + const state = live && live.state; + if (state === "reading" || state === "generating") return false; + return imageBusy; +} +function paintLive() { if (lastMetrics) render(lastMetrics); } +function turnBlocksUnload(live) { + const state = (live && live.state) || ""; + return pageBusy() || state === "reading" || state === "generating" || (live && live.queued > 0); +} +function setModelButton(text, title, disabled) { + const btn = $("unload-btn"); + btn.textContent = text; btn.title = title; btn.disabled = disabled; + fitHeader(); +} +function modelButton(live) { + if (modelOp === "load") return setModelButton(tr("model.loading", "Loading…"), tr("model.loadingTitle", "The model is loading"), true); + if (modelOp === "unload") return setModelButton(tr("model.unloading", "Unloading…"), tr("model.unloadingTitle", "The model is unloading"), true); + const state = (live && live.state) || ""; + const metricsBusy = state === "reading" || state === "generating" || (live && live.queued > 0); + const imageNow = imageLive(live); + const unload = tr("model.unload", "Unload"); + if (state === "unloaded") { + if (imageNow) return setModelButton(tr("model.loading", "Loading…"), tr("model.imageLoading", "An image is already loading the model"), true); + if (pageBusy()) return setModelButton(tr("model.loading", "Loading…"), tr("model.replyLoading", "A reply is already loading the model"), true); + return setModelButton(tr("model.load", "Load"), tr("model.loadTitle", "Load the model now. A message also loads it."), false); + } + if (imageNow) return setModelButton(unload, tr("model.imageBusy", "An image is generating. It finishes on its own."), true); + if (!state) return setModelButton("…", tr("model.waiting", "Waiting for the server"), true); + if (metricsBusy || pageBusy()) return setModelButton(unload, tr("model.stopFirst", "Stop the reply, then unload"), true); + return setModelButton(unload, tr("model.unloadTitle", "Unload the model and free the GPU"), false); +} +$("unload-btn").onclick = async () => { + if (modelOp) return; + const live = (lastMetrics && lastMetrics.live) || {}; + const loading = live.state === "unloaded"; + const busyCopy = (sample, stillLoading) => stillLoading + ? (imageLive(sample) ? tr("model.imageLoadingDot", "An image is already loading the model.") : tr("model.replyLoadingDot", "A reply is already loading the model.")) + : (imageLive(sample) ? tr("model.imageBusy", "An image is generating. It finishes on its own.") : tr("model.stopFirstDot", "Stop the reply, then unload.")); + if (loading ? pageBusy() : turnBlocksUnload(live)) { + toast("warn", tr("model.busy", "Model is busy"), busyCopy(live, loading)); + return; + } + if (!loading && !confirm(tr("model.confirmUnload", "Unload the model and free the GPU? Load, or the next message, brings it back."))) return; + // confirm() blocks the poll. Yield so a sample that arrived during the dialog is applied. A confirmed Unload stays an unload. + if (!loading) { + modelOp = "unload"; + modelButton(live); + await new Promise((resolve) => setTimeout(resolve, 0)); + } + const now = (lastMetrics && lastMetrics.live) || {}; + const loadingNow = loading; + if (loadingNow ? pageBusy() : turnBlocksUnload(now)) { + modelOp = null; + if (lastMetrics) render(lastMetrics); else modelButton(now); + toast("warn", tr("model.busy", "Model is busy"), busyCopy(now, loadingNow)); + return; + } + modelOp = loadingNow ? "load" : "unload"; + modelButton(now); + if (loadingNow) toast("info", tr("model.loadingToast", "Loading the model"), tr("model.fewMinutes", "This can take a few minutes.")); + const remember = (state) => { + if (!lastMetrics) lastMetrics = {}; + lastMetrics.live = Object.assign({}, lastMetrics.live, {state, queued: 0}); + metricsHold = {state, after: metricsEpoch}; + }; + try { + const r = await fetch(loadingNow ? "load" : "unload", {method: "POST", headers: headers(true), body: "{}"}); + let body = {}; + try { body = await r.json(); } catch (e) { /* the connection dropped */ } + const status = body.status || ""; + const msg = (body.error && body.error.message) || + (r.status === 401 ? tr("toast.keyAbout2", "API key needed: add it under About > Settings.") : tr("toast.httpAnswer", "The server answered HTTP {code}.", {code: r.status})); + const failTitle = loadingNow ? tr("model.loadFailed", "Load failed") : tr("model.unloadFailed", "Unload failed"); + if (loadingNow) { + if (r.ok && status === "loaded") { + remember("idle"); + toast("success", tr("model.loaded", "Model loaded"), tr("model.gpuInUse", "The GPU is in use.")); + } else { + toast("error", failTitle, msg); + } + } else if (status === "unloaded" || status === "not loaded") { + remember("unloaded"); + toast(status === "unloaded" ? "success" : "info", + status === "unloaded" ? tr("model.unloaded", "Model unloaded") : tr("model.alreadyUnloaded", "Already unloaded"), + tr("model.gpuFree", "The GPU is free. Load, or the next message, brings it back.")); + } else if (r.status === 409 || status === "busy") { + let sample = (lastMetrics && lastMetrics.live) || {}; + try { + const mr = await fetch("metrics", {headers: headers()}); + if (mr.ok) { + const m = await mr.json(); + if (m && m.live) { sample = m.live; lastMetrics = m; } + } + } catch (e) { /* the 409 body has no phase */ } + toast("warn", tr("model.busy", "Model is busy"), imageLive(sample) + ? tr("model.imageBusy", "An image is generating. It finishes on its own.") : tr("model.stopFirstDot", "Stop the reply, then unload.")); + } else if (status === "unsupported") { + toast("error", tr("model.unsupported", "Unload is not available"), ""); + } else { + toast("error", failTitle, msg); + } + } catch (e) { + toast("error", loadingNow ? tr("model.loadFailed", "Load failed") : tr("model.unloadFailed", "Unload failed"), tr("model.noAnswer", "The server did not answer.")); + } finally { + modelOp = null; + if (lastMetrics) render(lastMetrics); else modelButton({}); + } +}; function render(m) { const live = m.live || {}, hw = m.hardware || {}, st = m.hardware_static || {}, eng = m.engine || {}, h = m.history || {}; const last = (m.requests || [])[0]; - // the header pill - if (live.state === "reading") { + // the header pill. modelOp and a local load win over "N queued": with parallel requests, queued stays up through + // ensure_loaded(), and metrics stay "unloaded" until the engine is READY. An image POST in that window is still a load. + const localLoad = live.state === "unloaded" && (busy != null || imageBusy); + if (modelOp === "load") { + setPill("idle", tr("model.loading", "Loading…")); + } else if (modelOp === "unload") { + setPill("idle", tr("model.unloading", "Unloading…")); + } else if (localLoad) { + setPill("idle", tr("model.loading", "Loading…")); + } else if (imageLive(live)) { + setPill("reading", tr("pill.image", "Generating image…")); + } else if (live.state === "reading") { const pct = live.prompt_total ? Math.round((100 * live.prompt_read) / live.prompt_total) : null; - setPill("reading", pct != null ? `Reading prompt · ${pct}%` : "Reading prompt"); + setPill("reading", pct != null ? tr("pill.readingPct", "Reading prompt · {pct}%", {pct}) : tr("pill.reading", "Reading prompt")); } else if (live.state === "generating") { - setPill("generating", `Generating · ${fmt(live.tok_s, 1)} tok/s`); + setPill("generating", tr("pill.generating", "Generating · {rate} tok/s", {rate: fmt(live.tok_s, 1)})); + } else if (live.state === "unloaded") { + setPill("idle", tr("pill.unloaded", "Unloaded")); } else { - setPill("idle", "Idle"); + setPill("idle", tr("pill.idle", "Idle")); } - if (live.queued > 0) setPill("queued", `${live.queued} queued`); + modelButton(live); + if (!modelOp && !localLoad && live.queued > 0) setPill("queued", tr("pill.queued", "{n} queued", {n: live.queued})); if (tab === "monitor") renderMonitor(live, hw, st, eng, h, last, m.requests || [], m.totals, m.requests_kept); if (tab === "monitor") renderConvCache(m.conversation_cache); if (tab === "about") renderAbout(eng, hw, st); @@ -252,11 +411,29 @@ function renderTotals(t) { } function renderMonitor(live, hw, st, eng, h, last, requests, totals, kept) { // model state - const on = live.queued > 0 ? "queued" : live.state; - for (const b of document.querySelectorAll("#state-badges .st-badge")) b.classList.toggle("on", b.dataset.s === on || b.dataset.s === live.state); + // A local turn keeps metrics on "unloaded" for the whole engine start. + const imageNow = imageLive(live); + const starting = modelOp === "load" || imageNow || (busy != null && live.state === "unloaded"); + const on = !modelOp && live.queued > 0 ? "queued" : live.state; + for (const b of document.querySelectorAll("#state-badges .st-badge")) { + const lit = (b.dataset.s === on || b.dataset.s === live.state) && !(starting && b.dataset.s === "unloaded"); + b.classList.toggle("on", lit); + } const prog = $("state-progress"); let label = "Waiting for a request", detail = "", pct = 0; - if (live.state === "reading") { + if (modelOp === "load" || (busy != null && live.state === "unloaded" && !imageNow)) { + label = "Loading"; + delete prog.dataset.tone; + detail = "The model is loading."; + } else if (imageNow && (live.state === "unloaded" || live.state === "reading" || live.state === "generating" || live.state === "idle")) { + label = live.state === "unloaded" ? "Loading" : "Generating image"; + delete prog.dataset.tone; + detail = live.state === "unloaded" ? "The model is loading." : "An image is generating. It finishes on its own."; + } else if (modelOp === "unload") { + label = "Unloading"; + delete prog.dataset.tone; + detail = "Freeing the GPU."; + } else if (live.state === "reading") { label = "Reading prompt"; prog.dataset.tone = "info"; if (live.prompt_total) { @@ -270,6 +447,10 @@ function renderMonitor(live, hw, st, eng, h, last, requests, totals, kept) { delete prog.dataset.tone; pct = live.max_tokens ? Math.min(100, (100 * live.generated) / live.max_tokens) : 0; detail = `${fmt(live.generated)} tokens · ${fmt(live.tok_s, 1)} tok/s`; + } else if (live.state === "unloaded") { + label = "Unloaded"; + delete prog.dataset.tone; + detail = "Load brings it back. A message does too."; } else if (last) { delete prog.dataset.tone; detail = `last: ${fmt(last.output_tokens)} tokens${last.decode_tok_s ? ` at ${fmt(last.decode_tok_s, 1)} tok/s` : ""}`; @@ -859,6 +1040,7 @@ async function send() { const controller = new AbortController(); busy = {controller, msg: m}; setBusy(true); + paintLive(); const body = {model: health.model, messages: apiMessages(), stream: true, reasoning_effort: settings.thinking}; @@ -937,6 +1119,7 @@ async function send() { if (m.limit) m.meta = `${m.meta || ""} · stopped at the limit of ${m.limit} tool rounds (mcp.max_rounds)`; busy = null; setBusy(false); + paintLive(); if (frame) cancelAnimationFrame(frame); updateAssistant(el, m, false); saveChat(); @@ -1184,6 +1367,7 @@ async function start() { loadHealth().then(loadMcp).then(() => { if (startQuestion) { $("input").value = startQuestion; send(); } }); showTab(location.hash.slice(1) || "chat"); poll(); + requestAnimationFrame(fitHeader); } start(); @@ -1194,7 +1378,9 @@ $("img-form").onsubmit = async (ev) => { if (!prompt) return; const body = {prompt, size: $("img-size").value, response_format: "b64_json"}; if ($("img-seed").value !== "") body.seed = Number($("img-seed").value); + imageBusy = true; $("img-go").disabled = true; + paintLive(); const t0 = performance.now(); $("img-hint").textContent = "Generating\u2026 (a minute or more on a small GPU)"; try { @@ -1216,6 +1402,8 @@ $("img-form").onsubmit = async (ev) => { $("img-hint").textContent = ""; toast("error", "No image", String(e.message || e), 8000); } finally { + imageBusy = false; $("img-go").disabled = false; + paintLive(); } }; diff --git a/serve/web/index.html b/serve/web/index.html index 704417c7..be6f6d36 100644 --- a/serve/web/index.html +++ b/serve/web/index.html @@ -33,6 +33,7 @@ <span class="st-header__spacer"></span> <span class="st-pill" id="pill" data-state="idle" role="status" aria-live="polite"> <span class="st-pill__dot"></span><span id="pill-text">Connecting…</span></span> + <button class="st-btn st-btn--secondary" id="unload-btn" type="button" title="Waiting for the server" disabled>…</button> <button class="st-btn st-btn--icon" id="theme-btn" title="Light / dark" aria-label="Switch between light and dark"> <svg class="st-icon"><use id="theme-icon" href="web/sprite.svg#i-moon"/></svg></button> </header> @@ -102,6 +103,7 @@ <span class="card-title">Model state</span> <span class="badges" id="state-badges"> <span class="st-badge" data-s="idle">Idle</span> + <span class="st-badge" data-s="unloaded">Unloaded</span> <span class="st-badge st-badge--reading" data-s="reading">Reading</span> <span class="st-badge st-badge--generating" data-s="generating">Generating</span> <span class="st-badge st-badge--queued" data-s="queued">Queued</span> diff --git a/tools/webtest/browser_test.mjs b/tools/webtest/browser_test.mjs index 8fe01ec2..5949db2e 100644 --- a/tools/webtest/browser_test.mjs +++ b/tools/webtest/browser_test.mjs @@ -180,6 +180,79 @@ test("math: off by default, drawn when switched on, source kept", async ({ brows await page.close(); }); +// ------------------------------------------------------------------------------------------------ load / unload (#3550) +const btnText = (page) => page.$eval("#unload-btn", (b) => b.textContent); +const waitBtn = (page, text) => page.waitForFunction((t) => document.getElementById("unload-btn").textContent === t, { timeout: 8000 }, text); +const posts = (mock, what) => mock.state.calls.filter((c) => c === "POST " + what).length; + +test("load/unload: the header button unloads after a confirmation and loads again", async ({ browser, mock }) => { + mock.state.loaded = true; mock.state.calls.length = 0; + const page = await openPage(browser, mock); + await waitBtn(page, "Unload"); + await page.click("#unload-btn"); + assert.match(page.lastDialog, /Unload the model and free the GPU/); + await waitBtn(page, "Load"); + assert.equal(posts(mock, "/unload"), 1); + assert.equal(await page.$eval("#pill-text", (e) => e.textContent), "Unloaded"); + await sleep(2500); // the poll must agree, not flip the button back + assert.equal(await btnText(page), "Load"); + await page.click("#unload-btn"); + await waitBtn(page, "Unload"); + assert.equal(posts(mock, "/load"), 1); + assert.equal(await page.$eval("#pill-text", (e) => e.textContent), "Idle"); + await page.close(); +}); + +test("load/unload: declining the question changes nothing", async ({ browser, mock }) => { + mock.state.loaded = true; mock.state.calls.length = 0; + const page = await openPage(browser, mock, { dialogs: "dismiss" }); + await waitBtn(page, "Unload"); + await page.click("#unload-btn"); + await sleep(500); + assert.equal(posts(mock, "/unload"), 0); + assert.equal(await btnText(page), "Unload"); + await page.close(); +}); + +test("load/unload: not while an answer is being written", async ({ browser, mock }) => { + mock.state.loaded = true; + const page = await openPage(browser, mock); + await waitBtn(page, "Unload"); + await say(page, "#hold please"); + await page.waitForFunction(() => busy !== null); + assert.equal(await page.$eval("#unload-btn", (b) => b.disabled), true); + assert.match(await page.$eval("#unload-btn", (b) => b.title), /Stop the reply/); + await page.click("#stop-btn"); + await idle(page); + await page.waitForFunction(() => !document.getElementById("unload-btn").disabled, { timeout: 8000 }); + await page.close(); +}); + +test("load/unload: an unloaded model is loaded by a message and the button follows", async ({ browser, mock }) => { + mock.state.loaded = false; + const page = await openPage(browser, mock); + await waitBtn(page, "Load"); + await say(page, "hello"); + await idle(page); + await waitBtn(page, "Unload"); + await page.close(); +}); + +test("load/unload: the header fits a phone", async ({ browser, mock }) => { + mock.state.loaded = true; + for (const width of [320, 360, 390, 640]) { + const page = await openPage(browser, mock, { width, height: 700 }); + await waitBtn(page, "Unload"); + const r = await page.evaluate(() => { + const box = (id) => { const b = document.getElementById(id).getBoundingClientRect(); return [b.left, b.right]; }; + return { unload: box("unload-btn"), theme: box("theme-btn"), scroll: document.documentElement.scrollWidth, width: innerWidth }; + }); + for (const [l, rt] of [r.unload, r.theme]) assert.ok(l >= 0 && rt <= r.width, `${width}px: ${JSON.stringify(r)}`); + assert.ok(r.scroll <= r.width, `${width}px: the page scrolls sideways: ${JSON.stringify(r)}`); + await page.close(); + } +}); + const mock = await startMock(); const browser = await launch(); await run(async () => ({ browser, mock, close: async () => { await browser.close(); await mock.stop(); } })); From fcd3cdbcd7cd591262238f8ffc8c1030db50ac88 Mon Sep 17 00:00:00 2001 From: Niko1221 <Niko1221@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:14:14 +0100 Subject: [PATCH 47/52] Web chat: one chat-history design - saved chats, edit and rewind, branch, send while answering (#1787, #2615, #3823, #4004) Five overlapping proposals, one set of controls (Chat settings > Chats, all off by default; off, the page is the page from before: one chat, New chat clears it with an Undo, Send is off while an answer is written, no new request field). - Saved chats list (#1787): the chats kept in this browser (IndexedDB, one record per chat, names of attachments only), a list with day groups, search over titles and text, rename, delete with Undo, collapse; a private window or full store keeps the list in memory and says so once. Nothing goes to the server. The list has the New chat button, so the composer's one is hidden while it is on. - Edit and rewind messages (#2615 + #3823): under each message, Regenerate (a new answer to the same question), Edit answer (its text only: thinking and tool calls go, no request) and Rewind to here. Rewind asks, as #3823 proposes: "Edit and send again here" hides this message and the ones after it, puts the question and its attachments in the box and keeps one Undo bar ("2 messages hidden"); "Branch from here" starts a new saved chat with the messages before it and leaves this one alone. A branch keeps a title that says where it came from ("Branch of ...", also at the very first message) and links back. One control does what #2615 had as Edit on a question and as Remove from here. - Send while answering (#4004, for the web page): "Wait" (default, as before), "Send after" (the message waits and goes when the answer is done) or "Interrupt" (the answer stops where it is, what is written stays and is marked interrupted, the message goes at once; a running tool finishes first). One message waits; Take back returns it to the box; Stop keeps it for you to send. The pure logic is serve/web/history.js, the store serve/web/chatstore.js, the page's part serve/web/chats-ui.js. Tests: serve/test_web_history.js (Node, with the IndexedDB stub and cases of #1787), serve/test_web_history.py, and 17 browser tests (tools/webtest/browser_test.mjs). Screenshots: tools/webtest/shots.mjs. Also: the Sampling drawer is now Chat settings (its button says so), a wide window lets a message use the column (#3176 widened only the column). Ported by hand and merged: #1787 by Scotty Hudson, #2615 by Joyer Huang (uppet), issues #3823 and #4004 by xvcezrqpbxtpzblrt (their proposals, for the desktop app, carried to the web page). Co-authored-by: Scotty Hudson <14501954+Scotty-Hudson@users.noreply.github.com> Co-authored-by: Joyer Huang <110209+uppet@users.noreply.github.com> Co-authored-by: xvcezrqpbxtpzblrt <333138892+xvcezrqpbxtpzblrt@users.noreply.github.com> --- serve/test_web_history.js | 222 ++++++++++++++++ serve/test_web_history.py | 119 +++++++++ serve/web/app.css | 78 ++++++ serve/web/app.js | 230 +++++++++++++---- serve/web/chats-ui.js | 450 +++++++++++++++++++++++++++++++++ serve/web/chatstore.js | 66 +++++ serve/web/history.js | 90 +++++++ serve/web/index.html | 142 +++++++---- serve/web/sprite.svg | 1 + tools/webtest/browser_test.mjs | 348 +++++++++++++++++++++++++ tools/webtest/shots.mjs | 142 +++++++++++ 11 files changed, 1786 insertions(+), 102 deletions(-) create mode 100644 serve/test_web_history.js create mode 100644 serve/test_web_history.py create mode 100644 serve/web/chats-ui.js create mode 100644 serve/web/chatstore.js create mode 100644 serve/web/history.js create mode 100644 tools/webtest/shots.mjs diff --git a/serve/test_web_history.js b/serve/test_web_history.js new file mode 100644 index 00000000..74658c24 --- /dev/null +++ b/serve/test_web_history.js @@ -0,0 +1,222 @@ +// The chat history's logic (serve/web/history.js) and the browser store behind the saved-chats list (serve/web/chatstore.js), +// run in Node. The store runs against a small stub of IndexedDB that is faithful where the code depends on it: a read's result +// is on the request and not on the store; a write the browser refuses fires abort on the transaction; a blocked open never +// resolves by itself; a database already at version 1 does not run onupgradeneeded; requests answer on a later tick. +// (The stub and its cases are from PR #1787 by Scotty-Hudson, rebuilt for the split modules.) +// node serve/test_web_history.js (serve/test_web_history.py runs it too and skips when node is missing) +"use strict"; +const assert = require("node:assert/strict"); +const path = require("node:path"); +const H = require(path.join(__dirname, "web", "history.js")); +const {createChatStore} = require(path.join(__dirname, "web", "chatstore.js")); + +const user = (text, extra = {}) => ({role: "user", text, time: 1, ...extra}); +const bot = (text, extra = {}) => ({role: "assistant", text, time: 2, ...extra}); +const tool = {id: "t1", name: "fs__read", result: "secret result", state: "done", round: 0, at: 0}; +const convo = () => [user("q1", {images: [{kind: "image", name: "a.png", url: "data:image/png;base64,AAA"}], files: [{kind: "file", name: "n.txt", text: "notes"}]}), + bot("a1", {reasoning: "thoughts", tools: [tool], meta: "12 tokens", stopped: true, error: "x"}), user("q2"), bot("a2")]; + +const cases = { + titles_and_groups() { + assert.equal(H.chatTitle({title: "Mine", messages: []}), "Mine"); + assert.equal(H.chatTitle({title: "", messages: [user(" first line\nsecond")]}), "first line"); + assert.equal(H.chatTitle({title: "", messages: [user("x".repeat(100))]}).length, H.TITLE_MAX); + assert.equal(H.chatTitle({title: "", messages: []}), "New chat"); + assert.equal(H.chatTitle({title: "", messages: []}, "Neuer Chat"), "Neuer Chat", "the caller's word for an unnamed chat"); + const now = Date.UTC(2026, 9, 26, 12), day = 86400000; + const keys = [0, 0.4, 1.5, 5, 20, 40].map((d) => H.groupKey(now - d * day, now)); + assert.deepEqual(keys, ["today", "today", "yesterday", "week", "month", "older"]); + const a = H.newChat(1, 0.5), b = H.newChat(2, 0.5); + assert.notEqual(a.id, b.id); assert.deepEqual(a.messages, []); + }, + filter_searches_titles_and_text() { + const chats = [{id: "a", title: "the garden", time: 3, messages: [user("watering the tomatoes")]}, + {id: "b", title: "a chat about code", time: 2, messages: [user("nothing here")]}, + {id: "c", title: "tomatoes again", time: 1, messages: [user("a different question")]}]; + assert.deepEqual(H.filterChats(chats, "").map((c) => c.id), ["a", "b", "c"], "newest first"); + assert.deepEqual(H.filterChats(chats, " TOMATOES ").map((c) => c.id), ["a", "c"], "title or text, any case"); + assert.deepEqual(H.filterChats(chats, "nothing here").map((c) => c.id), ["b"]); + assert.deepEqual(H.filterChats(chats, "zzz"), []); + assert.deepEqual(chats.map((c) => c.id), ["a", "b", "c"], "the caller's list is not reordered"); + }, + clean_keeps_names_only() { + const clean = H.cleanMessages(convo()); + assert.deepEqual(clean[0].images, [{name: "a.png"}]); + assert.deepEqual(clean[0].files, [{name: "n.txt"}]); + assert.ok(!JSON.stringify(clean).includes("data:image") && !JSON.stringify(clean).includes("notes"), "no contents in the browser's store"); + assert.equal(clean[1].text, "a1", "the text stays"); + assert.deepEqual(convo()[0].files, [{kind: "file", name: "n.txt", text: "notes"}], "a copy: the screen keeps its contents"); + }, + rewind_a_question() { + const m = convo(); + const plan = H.rewind(m, 2); + assert.deepEqual(plan.keep.map((x) => x.text), ["q1", "a1"]); + assert.equal(plan.hidden, 2, "the question and its answer"); + assert.equal(plan.draft.text, "q2"); assert.equal(plan.draft.lost, 0); + const first = H.rewind(m, 0); + assert.deepEqual(first.keep, [], "the first question: nothing stays, the question goes to the box"); + assert.equal(first.draft.text, "q1"); assert.equal(first.hidden, 4); + assert.deepEqual(first.draft.images, [{kind: "image", name: "a.png", url: "data:image/png;base64,AAA"}], "attachments with contents come back"); + assert.deepEqual(first.draft.files, [{kind: "file", name: "n.txt", text: "notes"}]); + assert.equal(m.length, 4, "the list itself is not changed"); + }, + rewind_an_answer() { + const plan = H.rewind(convo(), 1); + assert.deepEqual(plan.keep.map((x) => x.text), ["q1", "a1"], "the answer stays and the list ends with it"); + assert.equal(plan.draft, null); assert.equal(plan.hidden, 2); + assert.equal(H.rewind(convo(), 3).hidden, 0, "the last answer: nothing to hide"); + assert.equal(H.rewind(convo(), 9), null); + }, + lost_attachments_are_counted() { + const reloaded = H.cleanMessages(convo()); + assert.equal(H.lostAttachments(reloaded[0]), 2); + assert.equal(H.lostAttachments(convo()[0]), 0); + const plan = H.rewind(reloaded, 0); + assert.equal(plan.draft.lost, 2); assert.deepEqual(plan.draft.images, []); assert.deepEqual(plan.draft.files, []); + assert.equal(plan.draft.text, "q1", "the text still comes back"); + }, + regenerate_from_the_question() { + const m = convo(); + assert.deepEqual(H.regenerate(m, 1).keep.map((x) => x.text), ["q1"]); + assert.equal(H.regenerate(m, 1).hidden, 3); + assert.deepEqual(H.regenerate(m, 3).keep.map((x) => x.text), ["q1", "a1", "q2"]); + assert.deepEqual(H.regenerate(m, 2).keep.map((x) => x.text), ["q1", "a1", "q2"], "on the last question itself"); + assert.equal(H.regenerate([bot("orphan")], 0), null, "no question before it"); + }, + edit_an_answer() { + const plan = H.editAnswer(convo(), 1, "corrected", "Edited"); + assert.equal(plan.keep.length, 2); assert.equal(plan.hidden, 2); + const a = plan.keep[1]; + assert.deepEqual(a, {role: "assistant", text: "corrected", time: 2, meta: "Edited"}, "no thinking, tools, error, stop mark or stats"); + assert.equal(H.editAnswer(convo(), 0, "x"), null, "only an answer can be edited"); + }, + branch_is_a_copy_with_a_title_that_stays() { + const original = {id: "c1", title: "", time: 1, messages: convo()}; + const plan = H.rewind(original.messages, 2); + const b = H.branch(original, plan.keep, plan.keep.length, "Branch of q1", 5, 0.25); + assert.deepEqual(b.messages.map((x) => x.text), ["q1", "a1"]); + assert.equal(b.title, "Branch of q1"); assert.deepEqual(b.parent, {id: "c1", title: "q1"}); + assert.notEqual(b.id, "c1"); + b.messages[0].text = "changed"; b.messages[1].tools[0].result = "changed"; + assert.equal(original.messages[0].text, "q1", "the original is untouched"); + assert.equal(original.messages[1].tools[0].result, "secret result"); + assert.equal(H.chatTitle(H.branch(original, [], 0, "Branch of q1"), "x"), "Branch of q1", "a branch at the first message keeps its title"); + }, +}; + +// ---------------------------------------------------------------- the stub IndexedDB +function makeIdb(hooks = {}, seed = {}) { + const data = Object.assign({}, seed), stores = {}, calls = {upgradeneeded: 0, createObjectStore: 0}; + let current = null; + const request = () => ({result: null, error: null, transaction: current, onsuccess: null, onerror: null}); + const store = { + put(value) { + const req = request(); + queueMicrotask(() => { + if (hooks.quota) { req.error = {name: "QuotaExceededError"}; req.onerror && req.onerror(); return; } + if (hooks.abort) return; + data[value.id] = value; req.result = value; req.onsuccess && req.onsuccess(); + }); + return req; + }, + delete(key) { + const req = request(); + queueMicrotask(() => { if (hooks.quota || hooks.abort) return; delete data[key]; req.result = true; req.onsuccess && req.onsuccess(); }); + return req; + }, + getAll() { + const req = request(); + queueMicrotask(() => { if (hooks.abort) return; req.result = Object.values(data); req.onsuccess && req.onsuccess(); }); + return req; + }, + }; + const transaction = () => { + const t = {error: null, oncomplete: null, onerror: null, onabort: null, objectStore: () => store}; + current = t; + queueMicrotask(() => { + if (hooks.quota || hooks.abort) { t.error = {name: hooks.quota ? "QuotaExceededError" : hooks.abort}; t.onabort && t.onabort(); } + else if (t.oncomplete) t.oncomplete(); + }); + return t; + }; + const db = {objectStoreNames: {contains: (n) => n in stores}, createObjectStore: (n) => { calls.createObjectStore++; stores[n] = store; }, transaction}; + return {open: () => { + if (hooks.throws) throw new Error("private mode"); + const r = {result: db, error: null, onupgradeneeded: null, onsuccess: null, onerror: null, onblocked: null}; + queueMicrotask(() => { + if (hooks.blocked) { r.onblocked && r.onblocked(); return; } + if (hooks.newDatabase !== false) { calls.upgradeneeded++; r.onupgradeneeded && r.onupgradeneeded(); } + r.result = db; r.onsuccess && r.onsuccess(); + }); + return r; + }, records: data, calls}; +} +const wait = () => new Promise((r) => setTimeout(r, 10)); +const mk = (hooks, seed) => { + const idb = makeIdb(hooks, seed), problems = []; + return {idb, problems, store: createChatStore({indexedDB: idb, onProblem: (k) => problems.push(k)})}; +}; +const chat = (id, extra = {}) => ({id, title: id, time: 1, messages: [user("hi " + id)], ...extra}); + +Object.assign(cases, { + async store_fresh_database_creates_the_store_and_reads() { + const a = mk({}, {c0: chat("c0"), c1: chat("c1")}); + assert.equal(await a.store.start(), true); + assert.equal(a.idb.calls.upgradeneeded, 1); assert.equal(a.idb.calls.createObjectStore, 1); + assert.deepEqual((await a.store.all()).map((c) => c.id).sort(), ["c0", "c1"], "the result is read from the request"); + assert.deepEqual(a.problems, []); + }, + async store_put_and_remove_touch_one_record() { + const a = mk({}, {c0: chat("c0")}); + await a.store.start(); + a.store.put(chat("c1", {title: "renamed"})); await wait(); + assert.equal(a.idb.records.c1.title, "renamed"); assert.ok(a.idb.records.c0, "the other record is not rewritten"); + a.store.remove("c0"); await wait(); + assert.ok(!("c0" in a.idb.records)); + }, + async store_private_mode_is_memory_only_and_says_so_once() { + const a = mk({throws: true}); + assert.equal(await a.store.start(), false); + assert.deepEqual(a.problems, ["memory"]); + assert.deepEqual(await a.store.all(), []); + a.store.put(chat("x")); a.store.remove("x"); // no store: nothing to do, nothing thrown + await a.store.start(); + assert.deepEqual(a.problems, ["memory"], "told once, not on every try"); + }, + async store_missing_object_store_is_memory_only() { + const a = mk({newDatabase: false}); // a database already at version 1: no upgrade, no store + assert.equal(await a.store.start(), false); + assert.equal(a.idb.calls.createObjectStore, 0); + assert.deepEqual(a.problems, ["memory"]); + }, + async store_blocked_open_does_not_hang() { + const a = mk({blocked: true}); + assert.equal(await a.store.start(), false); + assert.deepEqual(a.problems, ["memory"]); + }, + async store_full_storage_warns_once_with_its_own_message() { + const a = mk({quota: true}); + await a.store.start(); + a.store.put(chat("big")); await wait(); + a.store.put(chat("big2")); await wait(); + assert.deepEqual(a.problems, ["quota"], "one warning, the quota one"); + }, + async store_another_failure_is_not_called_quota() { + const a = mk({abort: "DataError"}); + await a.store.start(); + a.store.put(chat("bad")); await wait(); + assert.deepEqual(a.problems, ["failed"]); + }, + async store_a_read_that_aborts_answers_empty() { + const a = mk({abort: "DataError"}, {c0: chat("c0")}); + await a.store.start(); + assert.deepEqual(await a.store.all(), [], "no hang, no records"); + }, +}); + +(async () => { + const name = process.argv[2]; + const run = name ? [[name, cases[name]]] : Object.entries(cases); + if (name && !cases[name]) throw new Error("unknown test " + name); + for (const [n, fn] of run) { await fn(); console.log("ok " + n); } +})().catch((e) => { console.error(e); process.exitCode = 1; }); diff --git a/serve/test_web_history.py b/serve/test_web_history.py new file mode 100644 index 00000000..15854f2e --- /dev/null +++ b/serve/test_web_history.py @@ -0,0 +1,119 @@ +"""The web page's chat history: saved chats in the browser (#1787), edit / regenerate / rewind with an Undo (#2615), the rewind +choice between "here" and a branch (#3823), and sending while an answer is written (#4004). One design, opt-in, off by default. + +The logic runs in Node (serve/test_web_history.js); what the page does in a real browser is in tools/webtest/browser_test.mjs +(run here when WEBTEST_MODULES is set). These checks read the sources for what must hold whatever the code looks like: +off is the page from before, and nothing about a chat goes to the server.""" +from __future__ import annotations + +import os +import re +import shutil +import subprocess +import unittest +import urllib.error +import urllib.request +from pathlib import Path + +from serve.frontend import ChatTemplate +from serve.server import ByteTokenizer, MockEngine, Service, serve + +ROOT = Path(__file__).resolve().parents[1] +WEB = Path(__file__).parent / "web" + + +@unittest.skipUnless(shutil.which("node"), "node is not installed") +class HistoryInNode(unittest.TestCase): + def test_messages_titles_branches_and_the_browser_store(self): + r = subprocess.run([shutil.which("node"), str(Path(__file__).with_name("test_web_history.js"))], + capture_output=True, text=True, timeout=60) + self.assertEqual(r.returncode, 0, r.stdout + r.stderr) + + +class OffIsThePageFromBefore(unittest.TestCase): + @classmethod + def setUpClass(cls): + cls.html = (WEB / "index.html").read_text(encoding="utf-8") + cls.app = (WEB / "app.js").read_text(encoding="utf-8") + cls.ui = (WEB / "chats-ui.js").read_text(encoding="utf-8") + cls.store = (WEB / "chatstore.js").read_text(encoding="utf-8") + + def test_the_three_switches_start_off(self): + self.assertIn('chatList: false, chatEdit: false, whileBusy: "wait"', self.app) + for el in ("s-list", "s-edit"): + self.assertIn('aria-checked="false"', re.search(rf'<button[^>]*id="{el}"[^>]*>', self.html).group(0)) + self.assertIn('data-v="wait"', self.html) + self.assertRegex(self.html, r'<aside class="chat-sidebar"[^>]*\bhidden>') # no list until it is switched on + + def test_the_browser_store_is_opened_only_for_the_list(self): + self.assertEqual(self.ui.count("chatStore.start()"), 1) + self.assertRegex(self.ui, r"async function openChats\(fromScreen\) \{\s*await chatStore\.start\(\);") + self.assertEqual(len(re.findall(r"\bopenChats\(", self.ui)), 2) # its definition and the one call, in setChatList + self.assertNotIn("indexedDB", self.app, "the page's main script never touches the store") + self.assertIn("if (settings.chatList) await setChatList(true, false);", self.app) + + def test_with_the_list_off_one_chat_is_kept_as_before(self): + self.assertIn('if (!listOn) { store.set("chat", H.cleanMessages(messages)); return; }', self.ui) + self.assertIn('$("new-btn").hidden = on;', self.ui) # only the list's own New chat shows while it is on + + def test_pictures_and_files_are_kept_as_names_only(self): + self.assertIn("chatStore.put(H.cleanChat(chat))", self.ui) + self.assertNotIn("chatStore.put(chat)", self.ui) + + def test_nothing_about_a_chat_goes_to_the_server(self): + for name, src in (("app.js", self.app), ("chats-ui.js", self.ui), ("chatstore.js", self.store)): + for call in re.findall(r'fetch\(\s*([^,)]+)', src): + if call != '"v1/chat/completions"': # the question itself, as ever + self.assertNotRegex(call, r"chat|histor", f"{name}: {call}") + + def test_the_edit_controls_wait_for_a_finished_answer(self): + self.assertIn("const historyLocked = () => !!busy || !!panel || !!pending;", self.ui) + self.assertIn("$(\"s-list\").disabled = $(\"s-edit\").disabled = !!busy || !!panel;", self.app) + + def test_an_interrupted_answer_keeps_what_was_written(self): + self.assertIn("if (cut) m.interrupted = true;", self.app) + self.assertIn("busy.cutAfterTool = true; return; } // let the tool finish", self.app) + self.assertIn("settlePending(cut, !m.stopped && !m.error);", self.app) + + def test_sending_while_busy_parks_nothing_unless_asked(self): + self.assertIn('const parksWhileBusy = () => settings.whileBusy === "queue" || settings.whileBusy === "interject";', self.app) + self.assertIn("if (!parksWhileBusy()) return;", self.app) + + +class NothingOnTheServer(unittest.TestCase): + @classmethod + def setUpClass(cls): + tok = ByteTokenizer() + cls.svc = Service(MockEngine(tok, "ok"), tok, ChatTemplate(ROOT / "serve" / "chat_template.jinja")) + cls.httpd = serve(cls.svc, port=0) + cls.base = f"http://127.0.0.1:{cls.httpd.server_address[1]}" + + @classmethod + def tearDownClass(cls): + cls.httpd.shutdown() + cls.httpd.server_close() + + def test_the_scripts_are_served_and_there_is_no_chat_endpoint(self): + for name in ("history.js", "chatstore.js", "chats-ui.js"): + with urllib.request.urlopen(f"{self.base}/web/{name}", timeout=10) as r: + self.assertEqual(r.status, 200) + for path in ("/chats", "/api/chats", "/history", "/api/history"): + with self.subTest(path=path): + with self.assertRaises(urllib.error.HTTPError) as e: + urllib.request.urlopen(self.base + path, timeout=10) + self.assertEqual(e.exception.code, 404) + + +@unittest.skipUnless(os.environ.get("WEBTEST_MODULES") and shutil.which("node"), + "set WEBTEST_MODULES (a folder with node_modules/puppeteer-core) to run the browser tests") +class InABrowser(unittest.TestCase): + def test_history_in_chrome(self): + for name in ("history", "list", "rewind", "branch", "regenerate", "edit answer", "while answering"): + with self.subTest(name=name): + r = subprocess.run([shutil.which("node"), str(ROOT / "tools" / "webtest" / "browser_test.mjs"), name], + capture_output=True, text=True, timeout=300) + self.assertEqual(r.returncode, 0, r.stdout + r.stderr) + + +if __name__ == "__main__": + unittest.main() diff --git a/serve/web/app.css b/serve/web/app.css index 9c40e420..0873b269 100644 --- a/serve/web/app.css +++ b/serve/web/app.css @@ -257,3 +257,81 @@ main { flex: 1; min-height: 0; display: flex; } .st-code .st-btn--icon[data-preview-scripts][aria-pressed="true"] { background: var(--st-warn-tint); color: var(--st-warn-text); } .st-code--run .st-code__preview { outline: 2px solid var(--st-warn-text); outline-offset: -2px; } .st-code__preview iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; } + +/* ---------------------------------------------------------------- chat history (chats-ui.js) + The saved-chats list (PR #1787 by Scotty-Hudson), edit / regenerate / rewind (PR #2615 by uppet) and the Chat settings button. */ +.view--chat { flex-direction: row; } +.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } +.chat-sidebar { flex: none; width: 260px; display: flex; flex-direction: column; gap: var(--st-s-3); + padding: var(--st-s-4); background: var(--st-surface); border-right: 1px solid var(--st-line); } +.sidebar-head { display: flex; align-items: center; gap: var(--st-s-2); } +.sidebar-head .card-title { flex: 1; } +#sidebar-toggle .st-icon { transform: rotate(90deg); transition: transform var(--st-dur) var(--st-ease); } +.chat-sidebar[data-open="false"] { width: 60px; } +.chat-sidebar[data-open="false"] .sidebar-head { flex-direction: column; } +.chat-sidebar[data-open="false"] #sidebar-toggle .st-icon { transform: rotate(-90deg); } +.chat-sidebar[data-open="false"] .sidebar-title, .chat-sidebar[data-open="false"] .sidebar-search, +.chat-sidebar[data-open="false"] .sidebar-list, .chat-sidebar[data-open="false"] .sidebar-foot { display: none; } +.sidebar-search { height: 36px; font-size: var(--st-fs-sm); } +.sidebar-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; } +.sidebar-group { margin: 0; padding: var(--st-s-3) 8px var(--st-s-1); font-size: var(--st-fs-xs); + font-weight: var(--st-fw-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--st-ink-muted); } +.chat-item { display: flex; align-items: center; gap: 2px; border-radius: var(--st-r-md); } +.chat-item.on { background: var(--st-surface-2); } +.chat-item__title { flex: 1; min-width: 0; border: 0; background: transparent; cursor: pointer; text-align: left; + padding: 8px; color: var(--st-ink-soft); font: 500 var(--st-fs-sm)/1.35 var(--st-font); + white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.chat-item:hover .chat-item__title { color: var(--st-ink); } +.chat-item.on .chat-item__title { color: var(--st-ink); font-weight: var(--st-fw-bold); } +.chat-item__actions { display: flex; gap: 2px; flex: none; opacity: 0; } /* the buttons come up on hover or focus */ +.chat-item:hover .chat-item__actions, .chat-item:focus-within .chat-item__actions { opacity: 1; } +.chat-item__actions .st-btn--icon { width: 30px; height: 30px; } +.chat-item__actions .st-btn--icon .st-icon { width: 16px; height: 16px; } +.chat-item__input { flex: 1; min-width: 0; height: 34px; font-size: var(--st-fs-sm); } +.sidebar-empty { margin: 0; padding: var(--st-s-2) 8px; } +.sidebar-foot { margin: 0; } +.chat-parent { display: flex; align-items: center; justify-content: center; gap: var(--st-s-3); flex-wrap: wrap; padding: var(--st-s-2) var(--st-s-4); + border-bottom: 1px solid var(--st-line-soft); font-size: var(--st-fs-sm); } +.chat-parent .st-btn { height: 30px; padding: 0 12px; font-size: var(--st-fs-xs); } + +/* the buttons under a message, the open panel / editor, and the bars above the box (Undo, a waiting message) */ +.history-actions, .history-editor__actions, .history-undo, .pending { display: flex; flex-wrap: wrap; gap: var(--st-s-2); align-items: center; } +.history-actions .st-btn, .history-undo .st-btn, .pending .st-btn, .history-panel .st-btn { height: 30px; padding: 0 10px; font-size: var(--st-fs-xs); } +.history-actions { margin-top: var(--st-s-1); } +.st-msg--user .history-actions { justify-content: flex-end; } +.history-panel, .history-editor { width: 100%; display: flex; flex-direction: column; gap: var(--st-s-2); padding: var(--st-s-3); + border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface-2); } +.history-choice { display: flex; align-items: center; gap: var(--st-s-3); flex-wrap: wrap; } +.history-choice > .muted { flex: 1 1 14rem; min-width: 0; } +.history-panel > .st-btn { align-self: flex-start; } +.history-editor textarea { width: 100%; min-height: 140px; max-height: 50vh; resize: vertical; font: inherit; height: auto; padding: 10px 14px; } +.history-editor p, .history-panel p { margin: 0; } +.st-msg[data-editing="true"] > .st-bubble { display: none; } +.history-undo, .pending { max-width: min(100%, 1100px); margin: 0 auto var(--st-s-2); color: var(--st-ink-muted); font-size: var(--st-fs-sm); } +.pending { justify-content: space-between; padding: 6px 10px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); } +.pending__text { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; color: var(--st-ink-soft); } +.pending__actions { display: flex; gap: var(--st-s-2); } + +/* Chat settings: the button says what it is, and the drawer groups the chat switches */ +.chat-settings-button { height: 36px; padding: 0 10px; gap: 6px; white-space: nowrap; font-size: var(--st-fs-sm); } +.chat-settings-short { display: none; } +.drawer-group { display: flex; flex-direction: column; gap: var(--st-s-4); padding-top: var(--st-s-4); border-top: 1px solid var(--st-line); } +.drawer-group__title { margin: 0; font-size: var(--st-fs-base); font-weight: var(--st-fw-bold); color: var(--st-ink); } +.seg--3 { grid-template-columns: repeat(3, 1fr); } +.seg--3 button { padding: 0 4px; } +#lang { width: 100%; } +@media (max-width: 640px) { + .chat-settings-label, .composer-hint { display: none; } + .chat-settings-short { display: inline; } + .st-btn--send { margin-left: auto; } +} +@media (max-width: 760px) { + /* the list is an overlay here: the chat keeps the whole width when it is closed to its rail */ + .view--chat { position: relative; } + .chat-sidebar[data-open="true"] { position: absolute; top: 0; left: 0; bottom: 0; z-index: 30; box-shadow: var(--st-sh-pop); } + .chat-sidebar { padding: var(--st-s-3); } +} + +/* a message may use the room a wide window gives the chat column (#3176 widened the column; the kit's 720px kept the messages narrow in it) */ +.st-msg { max-width: min(100%, 900px); } +.st-toast .st-btn { white-space: nowrap; } diff --git a/serve/web/app.js b/serve/web/app.js index 4b0477fd..e0ad80aa 100644 --- a/serve/web/app.js +++ b/serve/web/app.js @@ -781,7 +781,8 @@ function markdown(text) { // fields: the server picks the card's set for the request's thinking state (thinking 1.0 / 0.95 / 20, not thinking // 0.7 / 0.8 / 20 with a presence penalty). Before 0.1.45 the page sent 0.6 itself; a stored 0.6 with the other two // values untouched counts as "not set" too. -const DEFAULTS = {thinking: "high", temperature: 1.0, top_p: 0.95, top_k: 20, max: "", seed: "", show: true, esp: true, mcp: true, math: false}; +const DEFAULTS = {thinking: "high", temperature: 1.0, top_p: 0.95, top_k: 20, max: "", seed: "", show: true, esp: true, mcp: true, math: false, + chatList: false, chatEdit: false, whileBusy: "wait"}; const OLD_DEFAULT_TEMPERATURE = 0.6; function samplingUntouched(s) { const t = +s.temperature; @@ -789,14 +790,10 @@ function samplingUntouched(s) { } let settings = {...DEFAULTS, ...store.get("sampling", {})}; if (samplingUntouched(settings)) settings.temperature = DEFAULTS.temperature; -let messages = store.get("chat", []); +let messages = store.get("chat", []); // the open chat's messages (chats-ui.js: with the saved-chats list on, also that chat's own) let attachments = []; // {name, url} -let busy = null; // {controller, msg} - -function saveChat() { - store.set("chat", messages.map((m) => ({...m, images: (m.images || []).map((i) => ({name: i.name})), - files: (m.files || []).map((f) => ({name: f.name}))}))); -} +let busy = null; // {controller, msg, cut, cutAfterTool} +let pending = null; // a message parked while an answer is written: {text, images, files, mode} function timeStr(t) { return new Date(t).toLocaleTimeString([], {hour: "2-digit", minute: "2-digit"}); } function msgEl(m, i) { @@ -840,6 +837,8 @@ function msgEl(m, i) { `<button class="st-btn st-btn--icon" data-msg-copy aria-label="Copy the answer" title="Copy">${icon("copy")}</button></div>`; updateAssistant(el, m, false); } + const actions = msgActions(m, i); // edit / regenerate / rewind (chats-ui.js), when switched on + if (actions) el.appendChild(actions); return el; } // One MCP tool call in the answer: a compact block (name, state, a one-line preview) that opens to the arguments and @@ -927,6 +926,9 @@ function renderChat() { chat.querySelectorAll(".st-msg").forEach((e) => e.remove()); $("chat-empty").hidden = messages.length > 0; messages.forEach((m, i) => chat.appendChild(msgEl(m, i))); + renderSidebar(); + renderParent(); + renderUndoBar(); scrollDown(true); } function nearBottom() { const s = $("chat-scroll"); return s.scrollHeight - s.scrollTop - s.clientHeight < 120; } @@ -1018,27 +1020,122 @@ function assistantMessages(m) { return out; } +function busyHint() { + const mode = settings.whileBusy; + return mode === "queue" ? tr("composer.hintQueue", "Enter sends when the answer is done") + : mode === "interject" ? tr("composer.hintInterject", "Enter stops the answer here and sends now") : ""; +} +// While an answer is written, Send is off ("wait", as always) or parks the message ("queue", "interject": Chat settings) +const parksWhileBusy = () => settings.whileBusy === "queue" || settings.whileBusy === "interject"; function setBusy(on) { $("stop-btn").hidden = !on; - $("send-btn").disabled = on; - $("composer-hint").textContent = on ? "" : "Shift+Enter: new line"; + $("send-btn").disabled = (on && !parksWhileBusy()) || !!panel; + $("input").disabled = !!panel; + $("composer-hint").textContent = panel ? tr("composer.finishOpen", "Save or cancel what is open above to continue") + : on ? busyHint() : tr("composer.newline", "Shift+Enter: new line"); + if (settings.chatEdit) syncActions(); // the buttons follow the state: none under the answer being written + $("s-list").disabled = $("s-edit").disabled = !!busy || !!panel; // they change the messages on the screen + renderUndoBar(); + renderPending(); } -async function send() { - const text = $("input").value.trim(); - if ((!text && !attachments.length) || busy) return; - messages.push({role: "user", text, images: attachments.filter((a) => a.kind !== "file"), - files: attachments.filter((a) => a.kind === "file"), time: Date.now()}); - attachments = []; - renderAttachments(); - $("input").value = ""; - autosize(); +// A message sent while an answer is being written (#4004). "queue": it waits and goes when the answer is done. "interject": the +// answer stops where it is (what is written stays, marked interrupted) and the message goes at once; if a tool is running, the +// tool finishes first. Only one message waits. Off by default: with "wait" the page does nothing, as before. +function park(p, own) { + if (!parksWhileBusy()) return; + if (pending) { toast("warn", tr("pending.one", "A message is already waiting"), tr("pending.oneText", "Take it back or wait until it is sent.")); return; } + pending = {...p, mode: settings.whileBusy}; + if (own) { attachments = []; renderAttachments(); $("input").value = ""; autosize(); } + if (pending.mode === "interject") requestCut(); + setBusy(!!busy); +} +function requestCut() { + if (!busy || busy.cut) return; + if ((busy.msg.tools || []).some((t) => t.state === "running")) { busy.cutAfterTool = true; return; } // let the tool finish + busy.cut = true; + busy.controller.abort(); +} +function renderPending() { + let el = $("pending"); + if (!pending) { if (el) el.remove(); return; } + if (!el) { + el = node("div", "pending"); + el.id = "pending"; + el.setAttribute("role", "status"); + el.innerHTML = "<span class=\"pending__text\"></span><span class=\"pending__actions\"><button type=\"button\" class=\"st-btn st-btn--secondary\" data-pending-now></button>" + + "<button type=\"button\" class=\"st-btn st-btn--secondary\" data-pending-back></button></span>"; + el.querySelector("[data-pending-now]").onclick = pendingNow; + el.querySelector("[data-pending-back]").onclick = releasePending; + $("composer").before(el); + } + const quote = (pending.text || (pending.files[0] || pending.images[0] || {}).name || "").replace(/\s+/g, " ").slice(0, 70); + const text = !busy ? tr("pending.ready", "Not sent yet: “{text}”", {text: quote}) + : pending.mode === "queue" ? tr("pending.queued", "Sends when this answer is done: “{text}”", {text: quote}) + : busy.cutAfterTool ? tr("pending.afterTool", "Waiting for the tool to finish, then sending: “{text}”", {text: quote}) + : tr("pending.cutting", "Stopping the answer, then sending: “{text}”", {text: quote}); + el.querySelector(".pending__text").textContent = text; + const now = el.querySelector("[data-pending-now]"); + now.textContent = busy ? tr("pending.sendNow", "Send now") : tr("pending.send", "Send"); + now.hidden = !!busy && pending.mode === "interject"; // already on its way + el.querySelector("[data-pending-back]").textContent = tr("pending.takeBack", "Take back"); +} +function pendingNow() { + if (!pending) return; + if (busy) { pending.mode = "interject"; requestCut(); setBusy(true); return; } + const p = pending; + pending = null; + setBusy(false); + send(p); +} +// the waiting message goes back into the message box (a chat switch or a new chat must not lose it) +function releasePending() { + if (!pending) return; + const p = pending; + pending = null; + if (!$("input").value.trim()) $("input").value = p.text; + else $("input").value = `${p.text}\n\n${$("input").value}`; + attachments = [...p.images, ...p.files, ...attachments]; + renderAttachments(); autosize(); + setBusy(!!busy); +} +// after an answer: an interrupted one sends an interjection, a finished one sends a queued message +function settlePending(cut, finished) { + if (!pending) return; + if ((pending.mode === "interject" && cut) || (pending.mode === "queue" && finished)) { + const p = pending; + pending = null; + setBusy(false); + send(p); + } +} + +// the message box (or a parked message, `payload`) becomes a user turn and a reply is asked for +async function send(payload) { + const own = !payload; + const p = payload || {text: $("input").value.trim(), images: attachments.filter((a) => a.kind !== "file"), + files: attachments.filter((a) => a.kind === "file")}; + if (!p.text && !p.images.length && !p.files.length) return; + if (panel) return; // something is open above (an edit): finish it first + if (busy) { park(p, own); return; } + clearUndo(); + messages.push({role: "user", text: p.text, images: p.images, files: p.files, time: Date.now()}); + if (own) { + attachments = []; + renderAttachments(); + $("input").value = ""; + autosize(); + } + return generateReply(); +} +// an answer for the messages as they are: the last one is a user turn +async function generateReply() { const m = {role: "assistant", text: "", reasoning: "", time: Date.now()}; messages.push(m); renderChat(); const el = $("chat").lastElementChild; const controller = new AbortController(); - busy = {controller, msg: m}; + busy = {controller, msg: m, cut: false, cutAfterTool: false}; setBusy(true); paintLive(); @@ -1062,7 +1159,7 @@ async function send() { if (!r.ok) { let msg = `HTTP ${r.status}`; try { msg = (await r.json()).error.message || msg; } catch (e) { /* not json */ } - if (r.status === 401) msg = "This server needs an API key: add it under About > Settings."; + if (r.status === 401) msg = tr("toast.keyNeeded", "This server needs an API key: add it under About > Settings."); throw new Error(msg); } const reader = r.body.getReader(), dec = new TextDecoder(); @@ -1080,9 +1177,13 @@ async function send() { if (data === "[DONE]") continue; let j; try { j = JSON.parse(data); } catch (e) { continue; } - if (j.error) throw new Error(j.error.message || "the engine reported an error"); + if (j.error) throw new Error(j.error.message || tr("toast.engineError", "the engine reported an error")); if (j.usage) usage = j.usage; - if (j.strata_mcp) onTool(m, j.strata_mcp); + if (j.strata_mcp) { + onTool(m, j.strata_mcp); + // an interjection waited for a running tool: it has its result now, so the answer can stop + if (busy.cutAfterTool && !busy.cut && !(m.tools || []).some((t) => t.state === "running")) { busy.cut = true; controller.abort(); } + } const d = (j.choices && j.choices[0] && j.choices[0].delta) || {}; const lastTool = m.tools && m.tools.length ? m.tools[m.tools.length - 1] : null; // a new round after a tool if (d.reasoning_content) { @@ -1102,21 +1203,24 @@ async function send() { } } catch (e) { if (e.name === "AbortError") m.stopped = true; - else { m.error = e.message || String(e); toast("error", "The request failed", m.error, 6000); } + else { m.error = e.message || String(e); toast("error", tr("toast.requestFailed", "The request failed"), m.error, 6000); } } + const cut = busy.cut; // an interjection ended it: kept as written, marked interrupted + if (cut) m.interrupted = true; if (thinkStart && m.thinkSecs == null) m.thinkSecs = (performance.now() - thinkStart) / 1000; const n = usage ? usage.completion_tokens : null; + const ended = cut ? tr("chat.interruptedLower", "interrupted") : tr("chat.stoppedLower", "stopped"); if (n && firstAt) { const secs = (performance.now() - firstAt) / 1000; - m.meta = `${fmt(n)} tokens${secs > 0.25 ? ` · ${fmt(n / secs, 1)} tok/s` : ""}${m.stopped ? " · stopped" : ""}` + - (projectionLoaded() ? (settings.esp ? " · projection on" : " · projection off") : ""); + m.meta = tr("chat.tokens", "{n} tokens", {n: fmt(n)}) + (secs > 0.25 ? ` · ${fmt(n / secs, 1)} tok/s` : "") + (m.stopped ? ` · ${ended}` : "") + + (projectionLoaded() ? (settings.esp ? ` · ${tr("chat.projectionOn", "projection on")}` : ` · ${tr("chat.projectionOff", "projection off")}`) : ""); } else if (m.stopped) { - m.meta = "Stopped"; + m.meta = cut ? tr("chat.interrupted", "Interrupted") : tr("chat.stopped", "Stopped"); } for (const t of m.tools || []) if (t.state === "writing" || t.state === "running") { t.state = "skipped"; t.ms = null; } const ran = (m.tools || []).filter((t) => t.state === "done" || t.state === "error").length; - if (ran) m.meta = `${m.meta ? `${m.meta} · ` : ""}${ran} tool call${ran > 1 ? "s" : ""}`; - if (m.limit) m.meta = `${m.meta || ""} · stopped at the limit of ${m.limit} tool rounds (mcp.max_rounds)`; + if (ran) m.meta = `${m.meta ? `${m.meta} · ` : ""}${tr("chat.toolCalls", {one: "{n} tool call", other: "{n} tool calls"}, {n: ran})}`; + if (m.limit) m.meta = `${m.meta || ""} · ${tr("chat.toolLimit", "stopped at the limit of {n} tool rounds (mcp.max_rounds)", {n: m.limit})}`; busy = null; setBusy(false); paintLive(); @@ -1124,6 +1228,7 @@ async function send() { updateAssistant(el, m, false); saveChat(); scrollDown(); + settlePending(cut, !m.stopped && !m.error); } $("composer").onsubmit = (e) => { e.preventDefault(); send(); }; @@ -1134,14 +1239,21 @@ $("input").addEventListener("keydown", (e) => { function autosize() { const t = $("input"); t.style.height = "auto"; t.style.height = `${Math.min(t.scrollHeight, innerHeight * 0.4)}px`; } $("input").addEventListener("input", autosize); +// one chat, as before: New chat clears it, with an Undo (with the saved-chats list on, its own New chat button does this job) $("new-btn").onclick = () => { - if (busy) { toast("warn", "Still writing", "Stop the answer first."); return; } + if (busy) { stillWriting(); return; } + if (panel) { closePanel(); } + clearUndo(); + releasePending(); if (!messages.length) return; const backup = messages; messages = []; saveChat(); renderChat(); - toast("info", "New chat", "The last one was cleared.", 6000, {label: "Undo", run: () => { messages = backup; saveChat(); renderChat(); }}); + toast("info", tr("chat.newToast", "New chat"), tr("chat.clearedToast", "The last one was cleared."), 6000, {label: tr("undo", "Undo"), run: () => { + if (busy || messages.length) return; // a new question since: the cleared chat is not put back over it + messages = backup; saveChat(); renderChat(); + }}); }; $("export-btn").onclick = () => { if (!messages.length) { toast("info", "Nothing to save yet"); return; } @@ -1238,13 +1350,15 @@ $("input").addEventListener("paste", (e) => { if (files.length) { e.preventDefault(); addFiles(files); } }); -// ------------------------------------------------------------------ the sampling drawer +// ------------------------------------------------------------------ the chat settings drawer function openDrawer(open) { $("drawer").dataset.open = String(open); $("drawer").setAttribute("aria-hidden", String(!open)); $("scrim").hidden = !open; if (open) { loadDrawer(); loadShared(); loadMcp(); } } +const checked = (id) => $(id).getAttribute("aria-checked") === "true"; +const segValue = (id) => { const b = [...$(id).children].find((x) => x.getAttribute("aria-checked") === "true"); return b ? b.dataset.v : null; }; function loadDrawer(s = settings) { for (const b of $("s-thinking").children) b.setAttribute("aria-checked", String(b.dataset.v === s.thinking)); $("s-temp").value = s.temperature; $("s-topp").value = s.top_p; $("s-topk").value = s.top_k; @@ -1255,6 +1369,9 @@ function loadDrawer(s = settings) { $("esp-row").hidden = !projectionLoaded(); $("s-mcp").setAttribute("aria-checked", String(s.mcp !== false)); $("s-share").setAttribute("aria-checked", String(sharedOn)); + $("s-list").setAttribute("aria-checked", String(!!s.chatList)); + $("s-edit").setAttribute("aria-checked", String(!!s.chatEdit)); + for (const b of $("s-busy").children) b.setAttribute("aria-checked", String(b.dataset.v === (s.whileBusy || "wait"))); outputs(); } // "Use for other apps too": the server keeps these settings as every client's defaults (GET/POST /settings) @@ -1292,48 +1409,57 @@ function projectionLoaded() { } function outputs() { const t = +$("s-temp").value; - $("o-temp").textContent = t === 0 ? "0 · greedy" : t.toFixed(2); + $("o-temp").textContent = t === 0 ? tr("drawer.greedy", "0 · greedy") : t.toFixed(2); $("o-topp").textContent = (+$("s-topp").value).toFixed(2); $("o-topk").textContent = $("s-topk").value; - const sel = [...$("s-thinking").children].find((b) => b.getAttribute("aria-checked") === "true"); - $("o-thinking").textContent = sel ? {none: "answers right away", low: "short", medium: "medium", high: "thorough (default)"}[sel.dataset.v] : ""; + const sel = segValue("s-thinking"); + $("o-thinking").textContent = sel ? {none: tr("drawer.thinkNone", "answers right away"), low: tr("drawer.thinkLow", "short"), + medium: tr("drawer.thinkMedium", "medium"), high: tr("drawer.thinkHigh", "thorough (default)")}[sel] : ""; + const busyMode = segValue("s-busy"); + $("o-busy").textContent = {wait: tr("drawer.busyWaitNote", "Send is off until the answer is done, as before."), + queue: tr("drawer.busyQueueNote", "Your message waits and goes as soon as the answer is done."), + interject: tr("drawer.busyInterjectNote", "The answer stops where it is (what is written stays) and your message goes at once. A tool that is running finishes first.")}[busyMode] || ""; for (const id of ["s-topp", "s-topk"]) $(id).disabled = t === 0; } for (const b of $("s-thinking").children) b.onclick = () => { for (const x of $("s-thinking").children) x.setAttribute("aria-checked", String(x === b)); outputs(); }; +for (const b of $("s-busy").children) b.onclick = () => { for (const x of $("s-busy").children) x.setAttribute("aria-checked", String(x === b)); outputs(); }; for (const id of ["s-temp", "s-topp", "s-topk"]) $(id).oninput = outputs; -$("s-math").onclick = () => $("s-math").setAttribute("aria-checked", String($("s-math").getAttribute("aria-checked") !== "true")); -$("s-show").onclick = () => $("s-show").setAttribute("aria-checked", String($("s-show").getAttribute("aria-checked") !== "true")); -$("s-esp").onclick = () => $("s-esp").setAttribute("aria-checked", String($("s-esp").getAttribute("aria-checked") !== "true")); -$("s-mcp").onclick = () => $("s-mcp").setAttribute("aria-checked", String($("s-mcp").getAttribute("aria-checked") !== "true")); -$("s-share").onclick = () => $("s-share").setAttribute("aria-checked", String($("s-share").getAttribute("aria-checked") !== "true")); +for (const id of ["s-math", "s-show", "s-esp", "s-mcp", "s-share", "s-list", "s-edit"]) { + $(id).onclick = () => $(id).setAttribute("aria-checked", String($(id).getAttribute("aria-checked") !== "true")); +} $("s-reset").onclick = () => loadDrawer(DEFAULTS); $("s-apply").onclick = async () => { - const sel = [...$("s-thinking").children].find((b) => b.getAttribute("aria-checked") === "true"); - settings = {thinking: sel ? sel.dataset.v : "high", temperature: +$("s-temp").value, top_p: +$("s-topp").value, + const prev = settings; + // the list and the edit controls change the messages on the screen: not while an answer is written or something is open + const locked = !!busy || !!panel; + settings = {thinking: segValue("s-thinking") || "high", temperature: +$("s-temp").value, top_p: +$("s-topp").value, top_k: +$("s-topk").value, max: $("s-max").value.trim(), seed: $("s-seed").value.trim(), - math: $("s-math").getAttribute("aria-checked") === "true", - show: $("s-show").getAttribute("aria-checked") === "true", - esp: $("s-esp").getAttribute("aria-checked") === "true", - mcp: $("s-mcp").getAttribute("aria-checked") === "true"}; + math: checked("s-math"), show: checked("s-show"), esp: checked("s-esp"), mcp: checked("s-mcp"), + chatList: locked ? !!prev.chatList : checked("s-list"), chatEdit: locked ? !!prev.chatEdit : checked("s-edit"), + whileBusy: segValue("s-busy") || "wait"}; store.set("sampling", settings); StrataMath.reset(); // math on or off: every answer is drawn again + if (settings.chatList !== !!prev.chatList) await setChatList(settings.chatList, true); + if (settings.chatEdit !== !!prev.chatEdit) { clearUndo(); syncActions(); } + if (settings.whileBusy === "wait" && pending) releasePending(); // "wait" parks nothing: a waiting message goes back to the box + setBusy(!!busy); for (const el of $("chat").querySelectorAll(".st-msg--assistant")) { const m = messages[+el.dataset.i]; updateAssistant(el, m, !!busy && busy.msg === m); // the element send() holds stays the same while an answer streams } - const share = $("s-share").getAttribute("aria-checked") === "true"; + const share = checked("s-share"); openDrawer(false); if (share || sharedOn) { try { await saveShared(share, settings); - toast("success", "Sampling saved", share ? "Other apps (omp, API clients) use these settings from their next request." - : "Other apps use their own settings again."); + toast("success", tr("drawer.saved", "Chat settings saved"), share ? tr("drawer.savedShared", "Other apps (omp, API clients) use these settings from their next request.") + : tr("drawer.savedOwn", "Other apps use their own settings again.")); } catch (e) { - toast("error", "Saved here, but not for other apps", e.message, 6000); + toast("error", tr("drawer.savedHere", "Saved here, but not for other apps"), e.message, 6000); } return; } - toast("success", "Sampling saved", settings.temperature === 0 ? "Greedy: the same question gives the same answer." : ""); + toast("success", tr("drawer.saved", "Chat settings saved"), settings.temperature === 0 ? tr("drawer.savedGreedy", "Greedy: the same question gives the same answer.") : ""); }; $("sampling-btn").onclick = () => openDrawer(true); $("drawer-close").onclick = () => openDrawer(false); @@ -1360,6 +1486,8 @@ $("lang").onchange = async () => { async function start() { await StrataI18n.setLanguage(urlLang || store.get("lang", "en")); $("lang").value = StrataI18n.lang; + initChats(); + if (settings.chatList) await setChatList(true, false); // the saved-chats list is read before the first draw setBusy(false); renderChat(); const startQuestion = new URLSearchParams(location.search).get("q"); // /?q=... starts a chat (a shortcut) diff --git a/serve/web/chats-ui.js b/serve/web/chats-ui.js new file mode 100644 index 00000000..f15d7869 --- /dev/null +++ b/serve/web/chats-ui.js @@ -0,0 +1,450 @@ +// serve/web/chats-ui.js - the chat history on the page: the saved-chats list, and edit / regenerate / go back / branch / undo. +// One design for the proposals in PRs #1787 (list), #2615 (edit, regenerate, undo) and issue #3823 (rewind asks: here or a branch); +// the pure part is serve/web/history.js, the browser store is serve/web/chatstore.js. +// +// Both are opt-in (Chat settings > Chats) and off by default: off, the page keeps the one chat it always had, with "New chat" +// clearing it (and an Undo). Nothing here goes to the server. +// +// This file is loaded before app.js and uses its globals when its functions run: $, esc, icon, node, toast, store, settings, +// messages, attachments, busy, pending, setBusy, renderChat, renderAttachments, autosize, generateReply, releasePending. +// app.js calls initChats() once, from start(). +"use strict"; + +const H = StrataHistory; +const untitled = () => tr("chat.untitled", "New chat"); +const node = (tag, cls, text) => { + const n = document.createElement(tag); + if (cls) n.className = cls; + if (text != null) n.textContent = text; + return n; +}; + +// ------------------------------------------------------------------ state +let listOn = false; // the saved-chats list is on +let chats = [], chat = null, chatId = ""; +let sidebarQuery = "", sidebarOpen = true; +let undoState = null; // one change, in memory until a new question, another chat or a reload +let panel = null; // the open "Rewind to here" panel or answer editor: {kind, index, el} +const chatStore = StrataChatStore.createChatStore({ + onProblem(kind) { + toast("warn", tr("store.title", "Chat list not saved"), kind === "memory" + ? tr("store.memory", "This browser will not keep the chat list. It stays in memory until you close the page.") + : kind === "quota" ? tr("store.quota", "This browser cannot keep more. The chats on the screen are still there.") + : tr("store.failed", "The chat list could not be saved. The chats on the screen are still there."), 6000); + }, +}); + +// the open chat's messages are the page's `messages`; with the list on they are also the chat's, the same array +function setMessages(next) { + messages = next; + if (chat) chat.messages = next; +} +function saveChat() { + if (!listOn) { store.set("chat", H.cleanMessages(messages)); return; } // off: one chat, as before + chat.time = Date.now(); + chatStore.put(H.cleanChat(chat)); + renderSidebar(); +} +function stillWriting() { toast("warn", tr("busy.stillWriting", "Still writing"), tr("busy.stopFirst", "Stop the answer first.")); } + +// ------------------------------------------------------------------ the saved-chats list (#1787) +// Turning the list on: the chat on the screen becomes the first record. Only when the switch is flipped in this visit: on a page +// load the list is the list, so a fresh chat stays empty and the single chat of before ("strata.chat") is read once, when the +// store is empty. +async function openChats(fromScreen) { + await chatStore.start(); + chats = await chatStore.all(); + if (!chats.length) { + const old = fromScreen ? messages : store.get("chat", []); + if (old.length) { + const c = {...H.newChat(), messages: old, time: old[old.length - 1].time || Date.now()}; + chats = [c]; + chatStore.put(H.cleanChat(c)); // the migrated chat is a record like the others + } + } + chat = chats.find((c) => c.id === store.get("chatId", "")) || chats[0] || H.newChat(); + if (!chats.includes(chat)) chats.push(chat); + chatId = chat.id; + setMessages(chat.messages); +} +async function setChatList(on, fromScreen) { + listOn = on; + $("sidebar").hidden = !on; + $("new-btn").hidden = on; // the list has its own New chat + if (!on) { // off writes the single chat, so a reload shows the chat you were in + if (chat) messages = chat.messages; + chat = null; + store.set("chat", H.cleanMessages(messages)); + renderChat(); + return; + } + await openChats(fromScreen); + renderChat(); +} + +function groupName(key) { + return {today: tr("group.today", "Today"), yesterday: tr("group.yesterday", "Yesterday"), week: tr("group.week", "Previous 7 days"), + month: tr("group.month", "Previous 30 days"), older: tr("group.older", "Older")}[key]; +} +function chatItem(c) { + const t = H.chatTitle(c, untitled()); + const row = node("div", `chat-item${c.id === chatId ? " on" : ""}`); + row.dataset.id = c.id; + row.innerHTML = `<button class="chat-item__title" data-open-chat title="${esc(t)}">${esc(t)}</button>` + + `<span class="chat-item__actions">` + + `<button class="st-btn st-btn--icon" data-rename aria-label="${esc(tr("sidebar.rename", "Rename this chat"))}" title="${esc(tr("sidebar.renameShort", "Rename"))}">${icon("edit")}</button>` + + `<button class="st-btn st-btn--icon" data-delete aria-label="${esc(tr("sidebar.delete", "Delete this chat"))}" title="${esc(tr("sidebar.deleteShort", "Delete"))}">${icon("trash")}</button>` + + `</span>`; + return row; +} +function renderSidebar() { + if (!listOn) return; + // the search reads every chat's message text, so the whole store is in memory after the first load + const list = H.filterChats(chats, sidebarQuery, untitled()); + const box = $("sidebar-list"); + box.innerHTML = ""; + if (!list.length) { + box.appendChild(node("p", "muted small sidebar-empty", sidebarQuery.trim() ? tr("sidebar.noMatch", "No chat matches") : tr("sidebar.none", "No chats yet"))); + } else { + let group = ""; + for (const c of list) { + const g = H.groupKey(c.time); + if (g !== group) { group = g; box.appendChild(node("p", "sidebar-group", groupName(g))); } + box.appendChild(chatItem(c)); + } + } + $("sidebar-foot").textContent = tr("sidebar.foot", {one: "{n} chat · kept in this browser", other: "{n} chats · kept in this browser"}, {n: chats.length}); +} + +function showChat(c) { + clearUndo(); + chat = c; chatId = c.id; messages = c.messages; + store.set("chatId", chatId); + chatStore.put(H.cleanChat(chat)); // renderChat renders the list, so the write here does not render it again + renderChat(); +} +function openChat(id) { + if (busy) { stillWriting(); return; } + const c = chats.find((x) => x.id === id); + if (!c || c === chat) return; + releasePending(); + closePanel(); + showChat(c); +} +function startChat() { + if (busy) { stillWriting(); return; } + if (!messages.length && !chat.parent) { $("input").focus(); return; } // already a fresh chat + releasePending(); + closePanel(); + const prev = chatId, c = H.newChat(); + chats.push(c); + showChat(c); + $("input").focus(); + toast("info", tr("chat.newToast", "New chat"), tr("chat.newToastText", "The one you were in is in the list on the left."), 6000, + {label: tr("undo", "Undo"), run: () => openChat(prev)}); +} +function deleteChat(c) { + if (busy && c.id === chatId) { stillWriting(); return; } + const i = chats.indexOf(c), wasOpen = c.id === chatId; + if (i < 0) return; // the list only ever passes a chat it holds + chats.splice(i, 1); + chatStore.remove(c.id); // the record; the Undo puts it back + if (wasOpen) { + releasePending(); + closePanel(); + const next = chats[0] || H.newChat(); + if (!chats.includes(next)) chats.push(next); + showChat(next); + } else renderSidebar(); + toast("info", tr("chat.deleted", "Chat deleted"), H.chatTitle(c, untitled()), 6000, {label: tr("undo", "Undo"), run: () => { + if (chats.includes(c)) return; // already put back + chats.splice(Math.min(i, chats.length), 0, c); // the display is sorted by time, so only the index matters + if (wasOpen) showChat(c); else { chatStore.put(H.cleanChat(c)); renderSidebar(); } + }}); +} +// rename: the row turns into a field; Enter or a click outside keeps the name, Escape gives it up +function renameChat(row, c) { + const title = row.querySelector(".chat-item__title"); + const input = node("input", "st-input chat-item__input"); + input.value = H.chatTitle(c, untitled()); + input.setAttribute("aria-label", tr("sidebar.nameFor", "Name for this chat")); + title.replaceWith(input); + input.focus(); input.select(); + let done = false; + const finish = (keep) => { + if (done) return; + done = true; + if (keep) { c.title = input.value.trim(); chatStore.put(H.cleanChat(c)); } + renderSidebar(); + }; + input.addEventListener("keydown", (e) => { + if (e.key === "Enter") { e.preventDefault(); finish(true); } + else if (e.key === "Escape") { e.preventDefault(); finish(false); } + }); + input.addEventListener("blur", () => finish(true)); +} +function setSidebar(open, save) { + sidebarOpen = open; + $("sidebar").dataset.open = String(open); + const t = open ? tr("sidebar.collapse", "Collapse the chat list") : tr("sidebar.expand", "Open the chat list"); + $("sidebar-toggle").title = t; $("sidebar-toggle").setAttribute("aria-label", t); + $("sidebar-toggle").setAttribute("aria-expanded", String(open)); + if (save) store.set("sidebar", open); +} + +// a chat that was branched from another says so, and links back while the original is still in the list +function renderParent() { + const bar = $("chat-parent"); + const p = listOn && chat ? chat.parent : null; + bar.hidden = !p; + if (!p) return; + const alive = chats.some((c) => c.id === p.id); + bar.innerHTML = ""; + bar.appendChild(node("span", "muted", tr("branch.from", "Branched from “{title}”", {title: p.title}))); + if (alive) { + const b = node("button", "st-btn st-btn--secondary", tr("branch.open", "Open the original")); + b.type = "button"; + b.onclick = () => openChat(p.id); + bar.appendChild(b); + } +} + +// ------------------------------------------------------------------ edit, regenerate, go back (#2615, #3823) +// Every change keeps the messages it replaced for one Undo: a new question, another chat or a reload ends it. The controls +// are off while an answer is written (stop it first), while something is open, and while a message waits to be sent. +const historyLocked = () => !!busy || !!panel || !!pending; +function clearUndo() { undoState = null; renderUndoBar(); } +function renderUndoBar() { + let el = $("history-undo"); + if (!settings.chatEdit || !undoState) { if (el) el.remove(); return; } + if (!el) { + el = node("div", "history-undo"); + el.id = "history-undo"; + el.setAttribute("role", "status"); + el.innerHTML = "<span></span><button type=\"button\" class=\"st-btn st-btn--secondary\"></button>"; + el.querySelector("button").onclick = undoHistory; + $("composer").before(el); + } + el.querySelector("span").textContent = undoState.text; + el.querySelector("button").textContent = tr("undo", "Undo"); + el.querySelector("button").disabled = historyLocked(); +} +// replace the messages with `next`; text says what happened, for the Undo bar +function commit(next, text) { + undoState = {messages, text, inserted: undefined, draftBefore: null}; + setMessages(next); + saveChat(); + renderChat(); + return undoState; +} +function undoHistory() { + if (!settings.chatEdit || !undoState || historyLocked()) return false; + const u = undoState; + setMessages(u.messages); + if (u.inserted !== undefined && $("input").value === u.inserted && u.draftBefore) { // the box still holds what the rewind put there + $("input").value = u.draftBefore.text; + attachments = u.draftBefore.attachments; + renderAttachments(); autosize(); + } + undoState = null; + saveChat(); + renderChat(); + $("input").focus(); + return true; +} +const hiddenText = (n) => tr("hist.hidden", {one: "{n} message hidden", other: "{n} messages hidden"}, {n}); + +function msgActions(m, i) { + if (!settings.chatEdit) return null; + if (busy && busy.msg === m) return null; // the answer being written has no buttons until it is done + const row = node("div", "history-actions"); + const lock = historyLocked(); + const add = (label, title, run) => { + const b = node("button", "st-btn st-btn--secondary", label); + b.type = "button"; b.title = title; b.disabled = lock; b.onclick = run; + row.appendChild(b); + }; + const last = i === messages.length - 1; + if (m.role === "assistant" || last) { + add(tr("hist.regenerate", "Regenerate"), tr("hist.regenerateTitle", "Ask for a new answer to this question. Tools may run again."), () => regenerateAt(i)); + } + if (m.role === "assistant") add(tr("hist.editAnswer", "Edit answer"), tr("hist.editAnswerTitle", "Correct the answer's text. No request is sent."), () => editAnswerAt(i)); + add(tr("hist.rewind", "Rewind to here"), tr("hist.rewindTitle", "Go back to this point in the chat"), () => openRewind(i)); + return row; +} +// true when a history change may start now (and says why not when it may not) +function historyReady() { + if (!settings.chatEdit) return false; + if (busy) { stillWriting(); return false; } + if (panel) { toast("warn", tr("hist.finishFirst", "Finish what is open first"), tr("hist.finishFirstText", "Save it or press Cancel.")); return false; } + if (pending) { toast("warn", tr("hist.pendingFirst", "A message is waiting"), tr("hist.pendingFirstText", "Send it or take it back first.")); return false; } + return true; +} +// the action rows under the messages follow the switch, without replacing any message (an answer may be streaming into one) +function syncActions() { + for (const el of $("chat").querySelectorAll(".st-msg")) { + const i = +el.dataset.i; + const old = el.querySelector(".history-actions"); + if (old) old.remove(); + const row = messages[i] ? msgActions(messages[i], i) : null; + if (row) el.appendChild(row); + } +} +function closePanel() { + if (!panel) return; + const {el} = panel; + const open = el.querySelector(".history-panel, .history-editor"); + if (open) open.remove(); + delete el.dataset.editing; + panel = null; + setBusy(!!busy); +} +function regenerateAt(i) { + if (!historyReady()) return false; + const plan = H.regenerate(messages, i); + if (!plan) return false; + if (H.lostAttachments(messages[plan.keep.length - 1])) { + toast("warn", tr("hist.lostTitle", "Attachments need to be added again"), tr("hist.lostText", "This browser kept their names, not their contents. Start a new chat and attach them again."), 7000); + return false; + } + commit(plan.keep, tr("hist.replaced", "The answer was replaced")); + return generateReply(); +} + +// edit an answer: its text, in place. The old thinking and tool calls go, and so do the messages after it. +function editAnswerAt(i) { + if (!historyReady() || !messages[i]) return false; + const m = messages[i], el = $("chat").querySelector(`[data-i="${i}"]`); + const later = messages.length - i - 1; + const box = node("div", "history-editor"); + box.innerHTML = "<label></label><textarea class=\"st-input\" rows=\"6\"></textarea><p class=\"muted small\"></p>" + + "<div class=\"history-editor__actions\"><button type=\"button\" class=\"st-btn st-btn--primary\" data-edit-save></button>" + + "<button type=\"button\" class=\"st-btn st-btn--secondary\" data-edit-cancel></button></div>"; + const label = tr("hist.editLabel", "Edit the answer"); + box.querySelector("label").textContent = label; + const input = box.querySelector("textarea"); + input.setAttribute("aria-label", label); + input.value = m.text || ""; + box.querySelector("p").textContent = (later ? tr("hist.editRemoves", {one: "Saving hides the {n} message after it. ", other: "Saving hides the {n} messages after it. "}, {n: later}) : "") + + tr("hist.editNote", "The answer's old thinking and tool calls are removed. No request is sent."); + const save = box.querySelector("[data-edit-save]"); + save.textContent = tr("hist.save", "Save"); + box.querySelector("[data-edit-cancel]").textContent = tr("cancel", "Cancel"); + save.onclick = () => saveAnswerEdit(i, input.value); + box.querySelector("[data-edit-cancel]").onclick = closePanel; + input.onkeydown = (e) => { + if (e.key === "Escape") { e.preventDefault(); e.stopPropagation(); closePanel(); } + if (e.key === "Enter" && (e.ctrlKey || e.metaKey) && !e.isComposing) { e.preventDefault(); save.click(); } + }; + el.dataset.editing = "true"; + el.appendChild(box); + panel = {kind: "edit", index: i, el}; + setBusy(!!busy); + input.focus(); + input.scrollIntoView({block: "nearest"}); + return true; +} +function saveAnswerEdit(i, text) { + if (busy || !panel || panel.kind !== "edit" || panel.index !== i) return false; + if (typeof text !== "string" || !text.trim()) { toast("warn", tr("hist.empty", "The answer is empty"), tr("hist.emptyText", "Write something before saving.")); return false; } + const plan = H.editAnswer(messages, i, text, tr("hist.edited", "Edited")); + if (!plan) return false; + closePanel(); + commit(plan.keep, plan.hidden ? tr("hist.editedHidden", {one: "Answer edited, {n} message hidden", other: "Answer edited, {n} messages hidden"}, {n: plan.hidden}) + : tr("hist.editedOnly", "Answer edited")); + return true; +} + +// "Rewind to here" asks what to do (#3823): go back HERE (this chat, with an Undo) or BRANCH (a new chat, this one stays) +function openRewind(i) { + if (!historyReady() || !messages[i]) return false; + const m = messages[i], el = $("chat").querySelector(`[data-i="${i}"]`); + const user = m.role === "user"; + const box = node("div", "history-panel"); + box.setAttribute("role", "group"); + box.setAttribute("aria-label", tr("rewind.title", "Rewind to here")); + const choice = (label, text, run, primary) => { + const row = node("div", "history-choice"); + const b = node("button", `st-btn ${primary ? "st-btn--primary" : "st-btn--secondary"}`, label); + b.type = "button"; b.onclick = run; + row.appendChild(b); + row.appendChild(node("span", "muted small", text)); + box.appendChild(row); + }; + choice(user ? tr("rewind.hereUser", "Edit and send again here") : tr("rewind.hereAnswer", "Continue from here"), + user ? tr("rewind.hereUserText", "Hides this message and the ones after it, and puts your message in the box below. Undo brings them back.") + : tr("rewind.hereAnswerText", "Hides the messages after this answer. Undo brings them back."), + () => rewindHere(i), true); + if (listOn) { + choice(tr("rewind.branch", "Branch from here"), + user ? tr("rewind.branchUserText", "Starts a new chat with the messages before this one, and puts your message in its box. This chat stays as it is.") + : tr("rewind.branchAnswerText", "Starts a new chat with the messages up to this answer. This chat stays as it is."), + () => branchHere(i), false); + } else { + box.appendChild(node("p", "muted small", tr("rewind.noList", "To start a new chat from here instead, turn on Saved chats in Chat settings."))); + } + const cancel = node("button", "st-btn st-btn--secondary", tr("cancel", "Cancel")); + cancel.type = "button"; cancel.onclick = closePanel; + box.appendChild(cancel); + box.onkeydown = (e) => { if (e.key === "Escape") { e.preventDefault(); closePanel(); } }; + el.appendChild(box); + panel = {kind: "rewind", index: i, el}; + setBusy(!!busy); + box.querySelector("button").focus(); + box.scrollIntoView({block: "nearest"}); + return true; +} +function fillBox(draft) { + $("input").value = draft.text; + attachments = [...draft.images, ...draft.files]; + renderAttachments(); + autosize(); + if (draft.lost) toast("warn", tr("hist.lostTitle", "Attachments need to be added again"), tr("hist.lostText2", "This browser kept their names, not their contents. Attach them again."), 7000); +} +function rewindHere(i) { + if (!settings.chatEdit || busy || pending || !panel || panel.kind !== "rewind") return false; // called from the open panel + const plan = H.rewind(messages, i); + if (!plan) return false; + const draftBefore = {text: $("input").value, attachments: attachments.slice()}; + closePanel(); + const u = commit(plan.keep, plan.hidden ? hiddenText(plan.hidden) : tr("hist.nothingHidden", "Back at this message")); + if (plan.draft) { u.draftBefore = draftBefore; fillBox(plan.draft); u.inserted = $("input").value; } + $("input").focus(); + return true; +} +function branchHere(i) { + if (!listOn || busy || pending || !panel || panel.kind !== "rewind") return false; + const plan = H.rewind(messages, i); + if (!plan) return false; + closePanel(); + const prev = chatId; + const c = H.branch(chat, plan.keep, plan.keep.length, tr("branch.title", "Branch of {title}", {title: H.chatTitle(chat, untitled())})); + chats.push(c); + showChat(c); + if (plan.draft) fillBox(plan.draft); + $("input").focus(); + toast("info", tr("branch.started", "Branch started"), tr("branch.startedText", "The chat you were in is unchanged, in the list on the left."), 8000, + {label: tr("branch.back", "Back to it"), run: () => openChat(prev)}); + return true; +} + +// ------------------------------------------------------------------ wiring (called once by app.js) +function initChats() { + $("sidebar-toggle").onclick = () => setSidebar(!sidebarOpen, true); + $("sidebar-new").onclick = startChat; + $("sidebar-search").addEventListener("input", () => { sidebarQuery = $("sidebar-search").value; renderSidebar(); }); + $("sidebar-list").addEventListener("click", (e) => { + // a click inside the rename field is caret placement, not a click on the row: the row's handler would open the chat, + // which re-renders the list and takes the field away mid-click + if (e.target.closest(".chat-item__input")) return; + const row = e.target.closest(".chat-item"); + if (!row) return; + const c = chats.find((x) => x.id === row.dataset.id); + if (!c) return; + if (e.target.closest("[data-delete]")) { deleteChat(c); return; } + if (e.target.closest("[data-rename]")) { renameChat(row, c); return; } + openChat(c.id); + }); + // a narrow screen starts with the list closed so the chat has room + setSidebar(store.get("sidebar", true) && !matchMedia("(max-width: 760px)").matches, false); +} diff --git a/serve/web/chatstore.js b/serve/web/chatstore.js new file mode 100644 index 00000000..fc5b682d --- /dev/null +++ b/serve/web/chatstore.js @@ -0,0 +1,66 @@ +// serve/web/chatstore.js - the saved chats, kept in this browser (IndexedDB, database "strata", store "chats", one record per +// chat). Ported from PR #1787 by Scotty-Hudson. A chat can be several megabytes and localStorage holds about 5 MB for the whole +// page, so the chats live here and only small keys (which chat is open, the settings) stay in localStorage. Nothing goes to the +// server: the server has no endpoint for chats and never sees a title. +// +// Where the browser will not keep it (a private window, a blocked or full store) the list lives in memory for the visit, and +// onProblem(kind) tells the page once: "memory" (no store), "quota" (full), "failed" (a write the browser refused). +"use strict"; +(function (root) { + function createChatStore({indexedDB: idb = root.indexedDB, onProblem = () => {}} = {}) { + let db = null, told = false; + const problem = (kind) => { if (!told) { told = true; onProblem(kind); } }; + + function open() { + return new Promise((resolve) => { + let r; + try { r = idb.open("strata", 1); } catch (e) { resolve(null); return; } // private mode: memory only + r.onupgradeneeded = () => { + const d = r.result; + if (!d.objectStoreNames.contains("chats")) d.createObjectStore("chats", {keyPath: "id"}); + }; + // a database already at version 1 does not run onupgradeneeded, so the store may not be there + r.onsuccess = () => resolve(r.result.objectStoreNames.contains("chats") ? r.result : null); + r.onerror = () => resolve(null); + r.onblocked = () => resolve(null); // another tab holds an older version of the database + }); + } + // true when the store is there; false: memory only (and the page has been told) + async function start() { + db = await open(); + if (!db) problem("memory"); + return !!db; + } + function all() { + return new Promise((resolve) => { + if (!db) { resolve([]); return; } + // the result is on the request, not on the store: reading it at oncomplete gives nothing + const req = db.transaction("chats", "readonly").objectStore("chats").getAll(); + req.onsuccess = () => resolve(req.result || []); + req.onerror = () => resolve([]); + req.transaction.onabort = () => resolve([]); // an aborted read fires abort, not error: do not hang + }); + } + // a request that fails because the storage is full aborts the transaction, so it fires abort rather than error + function watch(t) { + const warn = () => problem(t.error && t.error.name === "QuotaExceededError" ? "quota" : "failed"); + t.onerror = warn; t.onabort = warn; + } + function put(chat) { // one record per chat: not the whole list for one message + if (!db) return; + const t = db.transaction("chats", "readwrite"); + t.objectStore("chats").put(chat); + watch(t); + } + function remove(id) { + if (!db) return; + const t = db.transaction("chats", "readwrite"); + t.objectStore("chats").delete(id); + watch(t); + } + return {start, all, put, remove, get usable() { return !!db; }}; + } + const api = {createChatStore}; + root.StrataChatStore = api; + if (typeof module !== "undefined" && module.exports) module.exports = api; +})(typeof globalThis !== "undefined" ? globalThis : this); diff --git a/serve/web/history.js b/serve/web/history.js new file mode 100644 index 00000000..8e5428d5 --- /dev/null +++ b/serve/web/history.js @@ -0,0 +1,90 @@ +// serve/web/history.js - what the chat history does to a list of messages. Pure functions: no page, no storage, no clock of +// their own, so they can be tested alone (serve/test_web_history.js). app.js draws the controls and keeps the state. +// +// One design for five proposals (see docs/DETAILS.md, "The web page"): +// #2615 (uppet) edit your question, correct an answer, regenerate, go back, undo +// #1787 (Scotty-Hudson) saved chats in a list, kept in this browser (IndexedDB), renamed, deleted, searched +// #3823 (xvcezrqpbxtpzblrt) "Rewind to here" asks: edit and send again HERE, or BRANCH into a new chat +// #3550 / #4004 the header's Load / Unload; sending while an answer is being written (app.js) +// A message list is an array of {role, text, time, images, files, reasoning, tools, meta, ...}; an attachment that was read +// in this page has its contents (image url, file text), one that came back from the browser's store has its name only. +"use strict"; +(function (root) { + const TITLE_MAX = 60; + + const newChatId = (now, rnd) => `c${now.toString(36)}${Math.floor(rnd * 1e6).toString(36)}`; + function newChat(now = Date.now(), rnd = Math.random()) { + return {id: newChatId(now, rnd), title: "", time: now, messages: []}; + } + // the name in the list: what the user called it, else the first line of their first question, else the caller's word for "new" + function chatTitle(c, untitled = "New chat") { + if (c.title) return c.title; + const first = (c.messages.find((m) => m.role === "user") || {}).text || ""; + return first.split("\n")[0].trim().slice(0, TITLE_MAX) || untitled; + } + + // pictures and files are kept as their names only: a data URL would fill the browser's storage + const cleanMessages = (list) => list.map((m) => ({...m, images: (m.images || []).map((i) => ({name: i.name})), + files: (m.files || []).map((f) => ({name: f.name}))})); + const cleanChat = (c) => ({...c, messages: cleanMessages(c.messages)}); + + // "today" | "yesterday" | "week" | "month" | "older", by calendar days back from now + function groupKey(t, now = Date.now()) { + const days = Math.floor((now - t) / 86400000); + if (!days) return "today"; + if (days === 1) return "yesterday"; + if (days <= 7) return "week"; + if (days <= 30) return "month"; + return "older"; + } + // the list for a search box: titles and message text, newest first + function filterChats(chats, query, untitled) { + const q = String(query || "").trim().toLowerCase(); + return chats.filter((c) => !q || chatTitle(c, untitled).toLowerCase().includes(q) || + c.messages.some((m) => (m.text || "").toLowerCase().includes(q))) + .sort((a, b) => b.time - a.time); + } + + // Can a user turn be sent again as it was? A picture or file that came back from the browser's store has only its name. + const lostAttachments = (m) => ((m.images || []).filter((x) => !x.url).length + (m.files || []).filter((x) => typeof x.text !== "string").length); + // what goes back into the message box when a user turn is edited: its text and the attachments that still have contents + function draftOf(m) { + return {text: m.text || "", + images: (m.images || []).filter((x) => x.url).map((x) => ({kind: "image", name: x.name, url: x.url})), + files: (m.files || []).filter((x) => typeof x.text === "string").map((x) => ({kind: "file", name: x.name, text: x.text})), + lost: lostAttachments(m)}; + } + + // "Rewind to here" on message i. A user turn goes back into the box and leaves the list; an answer stays and the list ends + // with it. {keep, draft, hidden}: the messages that stay, the draft for the box (null for an answer), how many are hidden. + function rewind(messages, i) { + const m = messages[i]; + if (!m) return null; + if (m.role === "user") return {keep: messages.slice(0, i), draft: draftOf(m), hidden: messages.length - i}; + return {keep: messages.slice(0, i + 1), draft: null, hidden: messages.length - i - 1}; + } + // Regenerate the answer at i (or the last user turn): the list up to and including the user turn before it + function regenerate(messages, i) { + let u = i; + while (u >= 0 && messages[u] && messages[u].role !== "user") u--; + if (u < 0 || !messages[u]) return null; + return {keep: messages.slice(0, u + 1), hidden: messages.length - u - 1}; + } + // Edit the answer at i: its text replaced, its thinking, tool calls, error and stats dropped, everything after it hidden + function editAnswer(messages, i, text, meta = "Edited") { + const m = messages[i]; + if (!m || m.role !== "assistant") return null; + return {keep: [...messages.slice(0, i), {role: "assistant", text, time: m.time, meta}], hidden: messages.length - i - 1}; + } + // A branch: a new chat that starts with a copy of the first `end` messages. The original is not touched. The title says + // where it came from and stays: the first question does not rename it (the first-message case of #3823). + function branch(chat, messages, end, title, now = Date.now(), rnd = Math.random()) { + const copy = JSON.parse(JSON.stringify(messages.slice(0, end))); + return {...newChat(now, rnd), title, parent: {id: chat.id, title: chatTitle(chat)}, messages: copy}; + } + + const api = {TITLE_MAX, newChat, chatTitle, cleanMessages, cleanChat, groupKey, filterChats, lostAttachments, draftOf, rewind, + regenerate, editAnswer, branch}; + root.StrataHistory = api; + if (typeof module !== "undefined" && module.exports) module.exports = api; +})(typeof globalThis !== "undefined" ? globalThis : this); diff --git a/serve/web/index.html b/serve/web/index.html index be6f6d36..0511153d 100644 --- a/serve/web/index.html +++ b/serve/web/index.html @@ -41,36 +41,54 @@ <main> <!-- ============================ Chat ============================ --> <section class="view view--chat" id="view-chat" role="tabpanel" aria-labelledby="tab-btn-chat"> - <div class="chat-scroll" id="chat-scroll"> - <div class="chat" id="chat"> - <div class="chat-empty" id="chat-empty"> - <div class="chat-empty__title">Ask anything</div> - <div class="chat-empty__sub" id="chat-empty-sub">The model runs on this PC. Nothing leaves it.</div> + <!-- the chats kept in this browser (Chat settings > Chats): the open one is the chat on the right --> + <aside class="chat-sidebar" id="sidebar" data-open="true" aria-label="Chats" data-i18n-label="sidebar.title" hidden> + <div class="sidebar-head"> + <button class="st-btn st-btn--icon" id="sidebar-toggle" type="button" title="Collapse the chat list" aria-label="Collapse the chat list" aria-expanded="true"> + <svg class="st-icon"><use href="web/sprite.svg#i-chevron"/></svg></button> + <span class="card-title sidebar-title" data-i18n="sidebar.title">Chats</span> + <button class="st-btn st-btn--icon" id="sidebar-new" type="button" title="New chat" aria-label="New chat" data-i18n-title="chat.new" data-i18n-label="chat.new"> + <svg class="st-icon"><use href="web/sprite.svg#i-new-chat"/></svg></button> + </div> + <input class="st-input sidebar-search" id="sidebar-search" type="search" placeholder="Search chats" + autocomplete="off" aria-label="Search chats" data-i18n-placeholder="sidebar.search" data-i18n-label="sidebar.search"> + <div class="sidebar-list" id="sidebar-list"></div> + <p class="muted small sidebar-foot" id="sidebar-foot"></p> + </aside> + <div class="chat-main"> + <div class="chat-parent" id="chat-parent" hidden></div> + <div class="chat-scroll" id="chat-scroll"> + <div class="chat" id="chat"> + <div class="chat-empty" id="chat-empty"> + <div class="chat-empty__title" data-i18n="chat.empty">Ask anything</div> + <div class="chat-empty__sub" id="chat-empty-sub" data-i18n="chat.emptySub">The model runs on this PC. Nothing leaves it.</div> + </div> </div> </div> - </div> - <div class="composer-wrap"> - <form class="st-composer" id="composer"> - <div class="attachments" id="attachments" hidden></div> - <textarea id="input" rows="2" placeholder="Ask anything…" aria-label="Message"></textarea> - <div class="st-composer__bar"> - <button type="button" class="st-btn st-btn--icon" id="attach-btn" title="Attach a text file (or drop it here)" aria-label="Attach a file"> - <svg class="st-icon"><use href="web/sprite.svg#i-attach"/></svg></button> - <input type="file" id="file" multiple hidden> - <button type="button" class="st-btn st-btn--icon" id="new-btn" title="New chat" aria-label="New chat"> - <svg class="st-icon"><use href="web/sprite.svg#i-new-chat"/></svg></button> - <button type="button" class="st-btn st-btn--icon" id="export-btn" title="Save this chat as Markdown" aria-label="Save this chat"> - <svg class="st-icon"><use href="web/sprite.svg#i-download"/></svg></button> - <button type="button" class="st-btn st-btn--icon" id="sampling-btn" title="Sampling and thinking" aria-label="Sampling and thinking"> - <svg class="st-icon"><use href="web/sprite.svg#i-settings"/></svg></button> - <span class="spacer"></span> - <span class="composer-hint" id="composer-hint"></span> - <button type="button" class="st-btn st-btn--secondary" id="stop-btn" hidden> - <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-stop"/></svg>Stop</button> - <button type="submit" class="st-btn st-btn--primary st-btn--send" id="send-btn" aria-label="Send"> - <svg class="st-icon"><use href="web/sprite.svg#i-send"/></svg></button> - </div> - </form> + <div class="composer-wrap"> + <form class="st-composer" id="composer"> + <div class="attachments" id="attachments" hidden></div> + <textarea id="input" rows="2" placeholder="Ask anything…" aria-label="Message" data-i18n-placeholder="composer.placeholder" data-i18n-label="composer.message"></textarea> + <div class="st-composer__bar"> + <button type="button" class="st-btn st-btn--icon" id="attach-btn" title="Attach a text file (or drop it here)" aria-label="Attach a file" data-i18n-label="composer.attach"> + <svg class="st-icon"><use href="web/sprite.svg#i-attach"/></svg></button> + <input type="file" id="file" multiple hidden> + <button type="button" class="st-btn st-btn--icon" id="new-btn" title="New chat" aria-label="New chat" data-i18n-title="chat.new" data-i18n-label="chat.new"> + <svg class="st-icon"><use href="web/sprite.svg#i-new-chat"/></svg></button> + <button type="button" class="st-btn st-btn--icon" id="export-btn" title="Save this chat as Markdown" aria-label="Save this chat" data-i18n-title="composer.save" data-i18n-label="composer.saveLabel"> + <svg class="st-icon"><use href="web/sprite.svg#i-download"/></svg></button> + <button type="button" class="st-btn st-btn--secondary chat-settings-button" id="sampling-btn" title="Chat settings" aria-label="Chat settings" data-i18n-title="drawer.title" data-i18n-label="drawer.title"> + <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-settings"/></svg> + <span class="chat-settings-label" data-i18n="drawer.title">Chat settings</span><span class="chat-settings-short" aria-hidden="true" data-i18n="drawer.short">Settings</span></button> + <span class="spacer"></span> + <span class="composer-hint" id="composer-hint"></span> + <button type="button" class="st-btn st-btn--secondary" id="stop-btn" hidden> + <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-stop"/></svg><span data-i18n="composer.stop">Stop</span></button> + <button type="submit" class="st-btn st-btn--primary st-btn--send" id="send-btn" aria-label="Send" data-i18n-label="composer.send"> + <svg class="st-icon"><use href="web/sprite.svg#i-send"/></svg></button> + </div> + </form> + </div> </div> </section> @@ -216,23 +234,23 @@ </section> </main> -<!-- ============================ Sampling drawer ============================ --> -<aside class="st-drawer" id="drawer" data-open="false" aria-label="Sampling and thinking" aria-hidden="true"> - <div class="st-drawer__head"><span class="card-title">Sampling</span> - <button class="st-btn st-btn--icon" id="drawer-close" aria-label="Close"> +<!-- ============================ Chat settings drawer ============================ --> +<aside class="st-drawer" id="drawer" data-open="false" aria-label="Chat settings" data-i18n-label="drawer.title" aria-hidden="true"> + <div class="st-drawer__head"><span class="card-title" data-i18n="drawer.title">Chat settings</span> + <button class="st-btn st-btn--icon" id="drawer-close" aria-label="Close" data-i18n-label="close"> <svg class="st-icon"><use href="web/sprite.svg#i-chevron"/></svg></button></div> <div class="st-drawer__body"> <div class="st-field"> - <label class="st-label" for="s-thinking">Thinking <output id="o-thinking"></output></label> - <div class="seg" id="s-thinking" role="radiogroup" aria-label="Thinking"> - <button type="button" role="radio" data-v="none">Off</button><button type="button" role="radio" data-v="low">Low</button> - <button type="button" role="radio" data-v="medium">Medium</button><button type="button" role="radio" data-v="high">High</button> + <label class="st-label" for="s-thinking"><span data-i18n="drawer.thinking">Thinking</span> <output id="o-thinking"></output></label> + <div class="seg" id="s-thinking" role="radiogroup" aria-label="Thinking" data-i18n-label="drawer.thinking"> + <button type="button" role="radio" data-v="none" data-i18n="drawer.off">Off</button><button type="button" role="radio" data-v="low" data-i18n="drawer.low">Low</button> + <button type="button" role="radio" data-v="medium" data-i18n="drawer.medium">Medium</button><button type="button" role="radio" data-v="high" data-i18n="drawer.high">High</button> </div> </div> <div class="st-field"> - <label class="st-label" for="s-temp">Temperature <output id="o-temp"></output></label> + <label class="st-label" for="s-temp"><span data-i18n="drawer.temperature">Temperature</span> <output id="o-temp"></output></label> <input class="st-slider" type="range" id="s-temp" min="0" max="1.5" step="0.05"> - <span class="muted small">0 = always the most likely word (exact, repeatable)</span> + <span class="muted small" data-i18n="drawer.temperatureNote">0 = always the most likely word (exact, repeatable)</span> </div> <div class="st-field"> <label class="st-label" for="s-topp">Top-p <output id="o-topp"></output></label> @@ -243,30 +261,49 @@ <input class="st-slider" type="range" id="s-topk" min="1" max="64" step="1"> </div> <div class="st-field"> - <label class="st-label" for="s-max">Max tokens <output>empty = until done</output></label> - <input class="st-input" id="s-max" type="number" min="1" step="1" placeholder="Until done"> + <label class="st-label" for="s-max"><span data-i18n="drawer.maxTokens">Max tokens</span> <output data-i18n="drawer.maxTokensNote">empty = until done</output></label> + <input class="st-input" id="s-max" type="number" min="1" step="1" placeholder="Until done" data-i18n-placeholder="drawer.untilDone"> </div> <div class="st-field"> - <label class="st-label" for="s-seed">Seed <output>empty = random</output></label> - <input class="st-input" id="s-seed" type="number" min="1" step="1" placeholder="Random"> + <label class="st-label" for="s-seed"><span data-i18n="drawer.seed">Seed</span> <output data-i18n="drawer.seedNote">empty = random</output></label> + <input class="st-input" id="s-seed" type="number" min="1" step="1" placeholder="Random" data-i18n-placeholder="drawer.random"> </div> + <div class="toggle-row"><span><span data-i18n="drawer.showThinking">Show thinking</span><br><span class="muted small" data-i18n="drawer.showThinkingNote">expanded while it streams</span></span> + <button class="st-toggle" id="s-show" role="switch" aria-checked="true" aria-label="Show thinking" data-i18n-label="drawer.showThinking"></button></div> <div class="toggle-row"><span><span data-i18n="drawer.math">Render math</span><br><span class="muted small" data-i18n="drawer.mathNote">draw equations in answers as formulas (works offline)</span></span> <button class="st-toggle" id="s-math" role="switch" aria-checked="false" aria-label="Render math" data-i18n-label="drawer.math"></button></div> - <div class="toggle-row"><span>Show thinking<br><span class="muted small">expanded while it streams</span></span> - <button class="st-toggle" id="s-show" role="switch" aria-checked="true" aria-label="Show thinking"></button></div> - <div class="toggle-row" id="mcp-row" hidden><span>Use tools from MCP servers<br><span class="muted small" + <div class="toggle-row" id="mcp-row" hidden><span><span data-i18n="drawer.mcp">Use tools from MCP servers</span><br><span class="muted small" id="mcp-row-sub">the model may call them while it answers</span></span> - <button class="st-toggle" id="s-mcp" role="switch" aria-checked="true" aria-label="Use tools from MCP servers"></button></div> + <button class="st-toggle" id="s-mcp" role="switch" aria-checked="true" aria-label="Use tools from MCP servers" data-i18n-label="drawer.mcp"></button></div> <div class="toggle-row" id="esp-row" hidden><span>Experimental speed projection<br><span class="muted small">the engine's control vector; off = the stock model. Switching reads the chat again once</span></span> <button class="st-toggle" id="s-esp" role="switch" aria-checked="true" aria-label="Experimental speed projection"></button></div> - <div class="toggle-row"><span>Use for other apps too<br><span class="muted small">omp and other API clients get - these settings for anything they don't set themselves</span></span> - <button class="st-toggle" id="s-share" role="switch" aria-checked="false" aria-label="Use for other apps too"></button></div> + <div class="toggle-row"><span><span data-i18n="drawer.share">Use for other apps too</span><br><span class="muted small" data-i18n="drawer.shareNote">omp and other API clients get + these settings for anything they do not set themselves</span></span> + <button class="st-toggle" id="s-share" role="switch" aria-checked="false" aria-label="Use for other apps too" data-i18n-label="drawer.share"></button></div> + + <div class="drawer-group" role="group" aria-labelledby="g-chats"> + <h3 class="drawer-group__title" id="g-chats" data-i18n="drawer.chats">Chats</h3> + <div class="toggle-row"><span><span data-i18n="drawer.list">Saved chats list</span><br><span class="muted small" + data-i18n="drawer.listNote">keeps every chat in a list on the left, in this browser only. Off: one chat, as before</span></span> + <button class="st-toggle" id="s-list" role="switch" aria-checked="false" aria-label="Saved chats list" data-i18n-label="drawer.list"></button></div> + <div class="toggle-row"><span><span data-i18n="drawer.edit">Edit and rewind messages</span><br><span class="muted small" + data-i18n="drawer.editNote">edit an answer, ask for a new one, or go back to an earlier message (with an Undo)</span></span> + <button class="st-toggle" id="s-edit" role="switch" aria-checked="false" aria-label="Edit and rewind messages" data-i18n-label="drawer.edit"></button></div> + <div class="st-field"> + <label class="st-label" for="s-busy"><span data-i18n="drawer.busy">When you send while it is answering</span></label> + <div class="seg seg--3" id="s-busy" role="radiogroup" aria-label="When you send while it is answering" data-i18n-label="drawer.busy"> + <button type="button" role="radio" data-v="wait" data-i18n="drawer.busyWait">Wait</button><button type="button" role="radio" data-v="queue" data-i18n="drawer.busyQueue">Send after</button> + <button type="button" role="radio" data-v="interject" data-i18n="drawer.busyInterject">Interrupt</button> + </div> + <span class="muted small" id="o-busy"></span> + </div> + </div> + <div class="drawer-actions"> - <button class="st-btn st-btn--secondary" id="s-reset" type="button">Reset</button> - <button class="st-btn st-btn--primary" id="s-apply" type="button">Apply</button> + <button class="st-btn st-btn--secondary" id="s-reset" type="button" data-i18n="drawer.reset">Reset</button> + <button class="st-btn st-btn--primary" id="s-apply" type="button" data-i18n="drawer.apply">Apply</button> </div> </div> </aside> @@ -276,6 +313,9 @@ <script src="web/preview.js"></script> <script src="web/math.js"></script> <script src="web/math-adapter.js"></script> +<script src="web/history.js"></script> +<script src="web/chatstore.js"></script> +<script src="web/chats-ui.js"></script> <script src="web/app.js"></script> </body> </html> diff --git a/serve/web/sprite.svg b/serve/web/sprite.svg index 598f6234..1298c13e 100644 --- a/serve/web/sprite.svg +++ b/serve/web/sprite.svg @@ -21,6 +21,7 @@ <symbol id="i-check" viewBox="0 0 24 24" fill="none"><path d="M4.5 12.5L9.5 17.5L19.5 6.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></symbol> <symbol id="i-trash" viewBox="0 0 24 24" fill="none"><path opacity="0.12" d="M5 6L6 19C6.08 20.1 7 21 8.1 21H15.9C17 21 17.92 20.1 18 19L19 6H5Z" fill="currentColor"></path><path d="M5 6L6 19C6.08 20.1 7 21 8.1 21H15.9C17 21 17.92 20.1 18 19L19 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 6H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 6V4.5C9 3.672 9.672 3 10.5 3H13.5C14.328 3 15 3.672 15 4.5V6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 10.5V16.5M14 10.5V16.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></symbol> <symbol id="i-new-chat" viewBox="0 0 24 24" fill="none"><path opacity="0.12" d="M21 11.5C21 16.194 16.971 20 12 20C10.8 20 9.65 19.78 8.6 19.37L4 20.5L5.2 16.8C3.83 15.34 3 13.5 3 11.5C3 6.806 7.029 3 12 3C16.971 3 21 6.806 21 11.5Z" fill="currentColor"></path><path d="M21 11.5C21 16.194 16.971 20 12 20C10.8 20 9.65 19.78 8.6 19.37L4 20.5L5.2 16.8C3.83 15.34 3 13.5 3 11.5C3 6.806 7.029 3 12 3C16.971 3 21 6.806 21 11.5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 8.5V14.5M9 11.5H15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></symbol> +<symbol id="i-edit" viewBox="0 0 24 24" fill="none"><path opacity="0.12" d="M17.66 6.34L19.07 7.75A2 2 0 0 1 19.07 10.57L7.5 22.14L3.86 22.97L4.69 19.33L16.26 7.76A2 2 0 0 1 17.66 6.34Z" fill="currentColor"></path><path d="M17.66 6.34L19.07 7.75A2 2 0 0 1 19.07 10.57L7.5 22.14L3.86 22.97L4.69 19.33L16.26 7.76A2 2 0 0 1 17.66 6.34Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.83 9.17L16.24 10.58" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></symbol> <symbol id="i-chevron" viewBox="0 0 24 24" fill="none"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></symbol> <symbol id="i-thinking" viewBox="0 0 24 24" fill="none"><path opacity="0.12" d="M12 2.5C8.41 2.5 5.5 5.41 5.5 9C5.5 11.3 6.7 13.3 8.5 14.5V16.5C8.5 17.05 8.95 17.5 9.5 17.5H14.5C15.05 17.5 15.5 17.05 15.5 16.5V14.5C17.3 13.3 18.5 11.3 18.5 9C18.5 5.41 15.59 2.5 12 2.5Z" fill="currentColor"></path><path d="M12 2.5C8.41 2.5 5.5 5.41 5.5 9C5.5 11.3 6.7 13.3 8.5 14.5V16.5C8.5 17.05 8.95 17.5 9.5 17.5H14.5C15.05 17.5 15.5 17.05 15.5 16.5V14.5C17.3 13.3 18.5 11.3 18.5 9C18.5 5.41 15.59 2.5 12 2.5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.5 20.5H14.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></symbol> <symbol id="i-tool" viewBox="0 0 24 24" fill="none"><path opacity="0.12" d="M14.7 6.3A1 1 0 0 0 14.7 7.7L16.3 9.3A1 1 0 0 0 17.7 9.3L21.47 5.53A6 6 0 0 1 13.53 13.47L6.62 20.38A2.12 2.12 0 0 1 3.62 17.38L10.53 10.47A6 6 0 0 1 18.47 2.53L14.71 6.29Z" fill="currentColor"></path><path d="M14.7 6.3A1 1 0 0 0 14.7 7.7L16.3 9.3A1 1 0 0 0 17.7 9.3L21.47 5.53A6 6 0 0 1 13.53 13.47L6.62 20.38A2.12 2.12 0 0 1 3.62 17.38L10.53 10.47A6 6 0 0 1 18.47 2.53L14.71 6.29Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></symbol> diff --git a/tools/webtest/browser_test.mjs b/tools/webtest/browser_test.mjs index 5949db2e..9b2ec42f 100644 --- a/tools/webtest/browser_test.mjs +++ b/tools/webtest/browser_test.mjs @@ -253,6 +253,354 @@ test("load/unload: the header fits a phone", async ({ browser, mock }) => { } }); +// ------------------------------------------------------------------------------------------------ chat history (#1787, #2615, #3823, #4004) +const on = (extra = {}) => ({ sampling: { chatList: true, chatEdit: true, ...extra } }); +const texts = (page) => page.evaluate(() => messages.map((m) => m.role[0] + ":" + (m.text || ""))); +const sidebarTitles = (page) => page.$$eval(".chat-item__title", (e) => e.map((x) => x.textContent)); +const ask = async (page, text) => { await say(page, text); await idle(page); await sleep(80); }; +const requestTexts = (mock, n = -1) => mock.state.requests.at(n).messages.map((m) => m.role[0] + ":" + (typeof m.content === "string" ? m.content : m.content[0].text)); +const clickAction = async (page, i, label) => { + const handle = await page.evaluateHandle((n, text) => [...document.querySelector(`[data-i="${n}"] .history-actions`).querySelectorAll("button")].find((b) => b.textContent === text), i, label); + await handle.asElement().click(); +}; +const reset = (mock) => { mock.state.requests.length = 0; mock.state.aborted = 0; mock.state.completed = 0; mock.state.answers = 0; }; +const htest = (name, fn) => test(name, async (ctx) => { reset(ctx.mock); await fn(ctx); }); +// (a toast sits over the drawer's Apply button for a few seconds: clear it, as a person would wait for it) +const openSettings = async (page) => { await page.click("#sampling-btn"); await page.waitForSelector('#drawer[data-open="true"]'); await sleep(320); await page.evaluate(() => document.querySelectorAll(".st-toast").forEach((t) => t.remove())); }; + +htest("history: everything is off by default - the page is the page it was", async ({ browser, mock }) => { + reset(mock); + const page = await openPage(browser, mock); + assert.equal(await page.$eval("#sidebar", (e) => e.hidden), true, "no list"); + assert.equal(await page.$eval("#new-btn", (e) => e.hidden), false, "the New chat button is there"); + await ask(page, "hello"); + assert.equal(await page.$$eval(".history-actions", (e) => e.length), 0, "no edit buttons"); + assert.deepEqual(mock.state.requests[0].messages, [{ role: "user", content: "hello" }]); + assert.equal(Object.keys(mock.state.requests[0]).sort().join(), "messages,model,reasoning_effort,stream", "the request has no new field"); + assert.equal(await page.evaluate(() => settings.whileBusy), "wait"); + const dbs = await page.evaluate(async () => (indexedDB.databases ? (await indexedDB.databases()).map((d) => d.name) : [])); + assert.ok(!dbs.includes("strata"), "the browser store is never opened while the list is off"); + assert.equal(await page.evaluate(() => JSON.parse(localStorage.getItem("strata.chat")).length), 2, "one chat in localStorage, as before"); + // Enter while an answer is being written does nothing + await say(page, "#hold one"); + await page.waitForFunction(() => busy !== null); + await page.type("#input", "second"); + await page.keyboard.press("Enter"); + await sleep(300); + assert.equal(await page.$eval("#input", (e) => e.value), "second", "the text stays in the box"); + assert.equal(await page.$("#pending"), null); + assert.equal(await page.$eval("#send-btn", (b) => b.disabled), true); + assert.equal(mock.state.requests.length, 2); + await page.click("#stop-btn"); + await idle(page); + await page.close(); +}); + +htest("list: chats are kept, found, renamed, deleted with an Undo, and survive a reload", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: on() }); + assert.equal(await page.$eval("#sidebar", (e) => e.hidden), false); + assert.equal(await page.$eval("#new-btn", (e) => e.hidden), true, "the list has its own New chat"); + await ask(page, "alpha question"); + await page.click("#sidebar-new"); + await ask(page, "beta question"); + assert.deepEqual((await sidebarTitles(page)).sort(), ["alpha question", "beta question"]); + assert.equal(await page.$$eval(".sidebar-group", (e) => e.map((x) => x.textContent).join()), "Today"); + assert.equal(await page.$eval("#sidebar-foot", (e) => e.textContent), "2 chats · kept in this browser"); + // search: titles and message text + await page.type("#sidebar-search", "alpha"); + assert.deepEqual(await sidebarTitles(page), ["alpha question"]); + await page.$eval("#sidebar-search", (e) => { e.value = "Mock answer"; e.dispatchEvent(new Event("input")); }); + assert.equal((await sidebarTitles(page)).length, 2, "the search reads the answers too"); + await page.$eval("#sidebar-search", (e) => { e.value = ""; e.dispatchEvent(new Event("input")); }); + // rename: Enter keeps, Escape gives up, a click inside the field does not end it + const row = async (title) => (await page.evaluateHandle((t) => [...document.querySelectorAll(".chat-item")].find((r) => r.querySelector(".chat-item__title") && r.querySelector(".chat-item__title").textContent === t), title)).asElement(); + await (await row("alpha question")).hover(); + await (await (await row("alpha question")).$("[data-rename]")).click(); + await page.click(".chat-item__input"); // a click in the field + assert.ok(await page.$(".chat-item__input"), "the rename is still open"); + await page.keyboard.down("Control"); await page.keyboard.press("a"); await page.keyboard.up("Control"); + await page.keyboard.type("Garden plan"); + await page.keyboard.press("Enter"); + assert.ok((await sidebarTitles(page)).includes("Garden plan")); + // delete (not the open one), then Undo + await (await row("Garden plan")).hover(); + await (await (await row("Garden plan")).$("[data-delete]")).click(); + assert.deepEqual(await sidebarTitles(page), ["beta question"]); + await page.evaluate(() => { const b = document.querySelectorAll(".st-toast .st-btn"); b[b.length - 1].click(); }); + await sleep(100); + assert.deepEqual((await sidebarTitles(page)).sort(), ["Garden plan", "beta question"], "the chat is back"); + // a reload: both chats, the open one is the same, the answers are there + await page.reload({ waitUntil: "networkidle0" }); + assert.deepEqual((await sidebarTitles(page)).sort(), ["Garden plan", "beta question"]); + assert.deepEqual(await texts(page), ["u:beta question", "a:Mock answer 2."]); + await (await row("Garden plan")).click(); + assert.deepEqual(await texts(page), ["u:alpha question", "a:Mock answer 1."]); + assert.deepEqual(page.errors, []); + await page.close(); +}); + +htest("list: switching it on keeps the chat on the screen; off keeps it as the single chat", async ({ browser, mock }) => { + const page = await openPage(browser, mock); + await ask(page, "before the list"); + await openSettings(page); + await page.click("#s-list"); + await page.click("#s-apply"); + await page.waitForFunction(() => document.querySelectorAll(".chat-item").length === 1); + assert.deepEqual(await sidebarTitles(page), ["before the list"], "the chat on the screen is the first one in the list"); + await page.click("#sidebar-new"); + await openSettings(page); + await page.click("#s-list"); + await page.click("#s-apply"); + await page.waitForFunction(() => document.getElementById("sidebar").hidden); + assert.equal(await page.evaluate(() => JSON.parse(localStorage.getItem("strata.chat")).length), 0, "the empty chat you were in is the single chat now"); + await page.close(); +}); + +htest("rewind: edit and send again here, with an Undo that brings everything back", async ({ browser, mock }) => { + reset(mock); + const page = await openPage(browser, mock, { seed: on() }); + await ask(page, "q1"); await ask(page, "q2"); + await page.type("#input", "a draft"); + await clickAction(page, 2, "Rewind to here"); + assert.equal(await page.$$eval(".history-panel .st-btn", (e) => e.map((x) => x.textContent).join("|")), "Edit and send again here|Branch from here|Cancel"); + assert.equal(await page.$eval("#send-btn", (b) => b.disabled), true, "nothing can be sent while the panel is open"); + await page.$eval(".history-panel .st-btn--primary", (b) => b.click()); + assert.deepEqual(await texts(page), ["u:q1", "a:Mock answer 1."]); + assert.equal(await page.$eval("#input", (e) => e.value), "q2", "the question is in the box"); + assert.equal(await page.$eval("#history-undo span", (e) => e.textContent), "2 messages hidden"); + await page.click("#history-undo button"); + assert.deepEqual(await texts(page), ["u:q1", "a:Mock answer 1.", "u:q2", "a:Mock answer 2."]); + assert.equal(await page.$eval("#input", (e) => e.value), "a draft", "the draft that was in the box is back"); + assert.equal(await page.$("#history-undo"), null); + // go back again, change the question, send: the request has only what is left, and the Undo is gone + await clickAction(page, 2, "Rewind to here"); + await page.$eval(".history-panel .st-btn--primary", (b) => b.click()); + await page.click("#input"); + await page.keyboard.down("Control"); await page.keyboard.press("a"); await page.keyboard.up("Control"); + await page.keyboard.type("q2 better"); + await page.keyboard.press("Enter"); + await idle(page); + assert.deepEqual(requestTexts(mock), ["u:q1", "a:Mock answer 1.", "u:q2 better"]); + assert.equal(await page.$("#history-undo"), null, "a new question ends the Undo"); + await page.close(); +}); + +htest("rewind: an answer - continue from here; the box is untouched", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: on() }); + await ask(page, "q1"); await ask(page, "q2"); + await page.type("#input", "keep me"); + await clickAction(page, 1, "Rewind to here"); + assert.equal(await page.$eval(".history-panel .st-btn--primary", (b) => b.textContent), "Continue from here"); + await page.$eval(".history-panel .st-btn--primary", (b) => b.click()); + assert.deepEqual(await texts(page), ["u:q1", "a:Mock answer 1."]); + assert.equal(await page.$eval("#input", (e) => e.value), "keep me"); + await page.click("#history-undo button"); + assert.equal((await texts(page)).length, 4); + await page.close(); +}); + +htest("rewind: with the list off there is no branch, only a hint", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: { sampling: { chatEdit: true } } }); + await ask(page, "q1"); + await clickAction(page, 0, "Rewind to here"); + assert.equal(await page.$$eval(".history-panel .st-btn", (e) => e.map((x) => x.textContent).join("|")), "Edit and send again here|Cancel"); + assert.match(await page.$eval(".history-panel p", (e) => e.textContent), /turn on Saved chats/); + await page.keyboard.press("Escape"); + assert.equal(await page.$(".history-panel"), null, "Escape closes it"); + await page.close(); +}); + +htest("branch: a new chat from here; the original stays; the title stays; a link back", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: on() }); + await ask(page, "q1"); await ask(page, "q2"); + await clickAction(page, 2, "Rewind to here"); + await page.evaluate(() => [...document.querySelectorAll(".history-panel .st-btn")].find((b) => b.textContent === "Branch from here").click()); + assert.deepEqual(await texts(page), ["u:q1", "a:Mock answer 1."]); + assert.equal(await page.$eval("#input", (e) => e.value), "q2"); + assert.equal(await page.$eval("#chat-parent", (e) => e.textContent), "Branched from “q1”Open the original"); + assert.deepEqual((await sidebarTitles(page)).sort(), ["Branch of q1", "q1"]); + await ask(page, "a new second question"); + assert.deepEqual((await sidebarTitles(page)).sort(), ["Branch of q1", "q1"], "sending does not rename the branch"); + await page.click("#chat-parent .st-btn"); + assert.deepEqual(await texts(page), ["u:q1", "a:Mock answer 1.", "u:q2", "a:Mock answer 2."], "the original is untouched"); + assert.equal(await page.$("#chat-parent:not([hidden])"), null); + // a branch at the very first message: an empty chat that keeps its name after the first send + await clickAction(page, 0, "Rewind to here"); + await page.evaluate(() => [...document.querySelectorAll(".history-panel .st-btn")].find((b) => b.textContent === "Branch from here").click()); + assert.deepEqual(await texts(page), []); + assert.equal(await page.$eval("#input", (e) => e.value), "q1"); + await ask(page, "something else entirely"); + assert.ok((await sidebarTitles(page)).filter((t) => t === "Branch of q1").length === 2, "both branches keep their names: " + (await sidebarTitles(page))); + await page.close(); +}); + +htest("regenerate: a new answer to the same question; Undo brings the old one back", async ({ browser, mock }) => { + reset(mock); + const page = await openPage(browser, mock, { seed: on() }); + await ask(page, "q1"); await ask(page, "q2"); + await clickAction(page, 3, "Regenerate"); + await idle(page); + assert.deepEqual(requestTexts(mock), ["u:q1", "a:Mock answer 1.", "u:q2"], "the old answer is not sent"); + assert.deepEqual(await texts(page), ["u:q1", "a:Mock answer 1.", "u:q2", "a:Mock answer 3."]); + await page.click("#history-undo button"); + assert.deepEqual(await texts(page), ["u:q1", "a:Mock answer 1.", "u:q2", "a:Mock answer 2."]); + await page.close(); +}); + +htest("edit answer: the text is saved, thinking and tools go, later messages are hidden, no request", async ({ browser, mock }) => { + reset(mock); + const page = await openPage(browser, mock, { seed: on() }); + await ask(page, "#think q1"); await ask(page, "q2"); + const before = mock.state.requests.length; + await clickAction(page, 1, "Edit answer"); + assert.match(await page.$eval(".history-editor p", (e) => e.textContent), /Saving hides the 2 messages after it\./); + await page.$eval(".history-editor textarea", (e) => { e.value = "The corrected answer"; }); + await page.click("[data-edit-save]"); + assert.deepEqual(await texts(page), ["u:#think q1", "a:The corrected answer"]); + assert.equal(mock.state.requests.length, before, "no request"); + assert.equal(await page.evaluate(() => messages[1].reasoning), undefined, "the old thinking is gone"); + assert.equal(await page.$eval("#history-undo span", (e) => e.textContent), "Answer edited, 2 messages hidden"); + await ask(page, "q3"); + assert.deepEqual(requestTexts(mock), ["u:#think q1", "a:The corrected answer", "u:q3"], "the corrected text is what the model reads"); + await page.close(); +}); + +htest("history: the buttons wait while an answer is written, and while something is open", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: on() }); + await ask(page, "q1"); + await say(page, "#hold q2"); + await page.waitForFunction(() => busy !== null); + assert.equal(await page.$$eval(".history-actions button:not([disabled])", (e) => e.length), 0); + assert.equal(await page.$eval("#s-list", (e) => e.disabled), true, "the list switch waits too"); + await page.click("#stop-btn"); + await idle(page); + assert.ok((await page.$$eval(".history-actions button:not([disabled])", (e) => e.length)) > 0); + await clickAction(page, 1, "Edit answer"); + assert.equal(await page.$$eval(".history-actions button:not([disabled])", (e) => e.length), 0, "while an editor is open"); + await page.keyboard.press("Escape"); + assert.equal(await page.$(".history-editor"), null); + await page.close(); +}); + +htest("history: an attachment that was only kept by name is not sent as if it were whole", async ({ browser, mock }) => { + reset(mock); + const lost = [{ role: "user", text: "see file", time: 1, files: [{ name: "notes.txt" }], images: [] }, { role: "assistant", text: "ok", time: 2 }]; + const page = await openPage(browser, mock, { seed: { ...on(), chat: lost, sampling: { chatEdit: true } } }); + await clickAction(page, 1, "Regenerate"); + await sleep(200); + assert.equal(mock.state.requests.length, 0, "no request with a missing file"); + assert.match(await page.$eval(".st-toast__title", (e) => e.textContent), /Attachments need to be added again/); + await clickAction(page, 0, "Rewind to here"); + await page.$eval(".history-panel .st-btn--primary", (b) => b.click()); + assert.equal(await page.$eval("#input", (e) => e.value), "see file"); + assert.equal(await page.$$eval("#attachments .chip", (e) => e.length), 0); + await page.close(); +}); + +// ---- sending while an answer is written (#4004) +htest("while answering - send after: the message waits and goes when the answer is done", async ({ browser, mock }) => { + reset(mock); + const page = await openPage(browser, mock, { seed: on({ whileBusy: "queue" }) }); + await say(page, "#long first"); + await page.waitForFunction(() => busy !== null); + assert.equal(await page.$eval("#send-btn", (b) => b.disabled), false); + assert.match(await page.$eval("#composer-hint", (e) => e.textContent), /sends when the answer is done/); + await say(page, "second"); + assert.match(await page.$eval("#pending .pending__text", (e) => e.textContent), /Sends when this answer is done: “second”/); + assert.equal(await page.$eval("#input", (e) => e.value), "", "the box is empty: the message is parked"); + await page.waitForFunction(() => messages.length === 4 && busy === null, { timeout: 20000 }); + assert.equal(await page.$("#pending"), null); + assert.equal(mock.state.requests.length, 2); + assert.deepEqual(requestTexts(mock).map((t) => t.slice(0, 10)), ["u:#long fi", "a:This is ", "u:second"], "the first answer is whole, then the second question"); + assert.equal(mock.state.aborted, 0, "nothing was cut"); + await page.close(); +}); + +htest("while answering - interrupt: the answer stops where it is and the message goes at once", async ({ browser, mock }) => { + reset(mock); + const page = await openPage(browser, mock, { seed: on({ whileBusy: "interject" }) }); + await say(page, "#long first"); + await page.waitForFunction(() => busy && busy.msg.text.length > 12); + await say(page, "actually, second"); + await page.waitForFunction(() => messages.length === 4 && busy === null, { timeout: 20000 }); + assert.equal(mock.state.aborted, 1, "the first stream was cut"); + const got = await page.evaluate(() => messages.map((m) => ({ r: m.role, t: m.text, i: !!m.interrupted, meta: m.meta }))); + assert.equal(got[1].i, true); assert.ok(got[1].t.length > 12 && got[1].t.length < 200, "what was written stays: " + got[1].t.length); + assert.match(got[1].meta, /nterrupted/); + assert.deepEqual(requestTexts(mock).map((t) => t.slice(0, 10)), ["u:#long fi", "a:This is ", "u:actually"], "the partial answer and the new message go to the model, in that order"); + assert.equal(requestTexts(mock)[1], "a:" + got[1].t.trim() || true); + assert.equal(await page.$("#pending"), null); + assert.equal(await page.$eval(".st-msg--assistant .meta-text", (e) => /nterrupted/.test(e.textContent)), true); + await page.close(); +}); + +htest("while answering - interrupt waits for a running tool, then stops", async ({ browser, mock }) => { + reset(mock); + // the mock engine here has an MCP server for the page to offer + const page = await openPage(browser, mock, { seed: on({ whileBusy: "interject" }) }); + await say(page, "#tool find it"); + await page.waitForFunction(() => busy && (busy.msg.tools || []).some((t) => t.state === "running")); + await say(page, "never mind, second"); + assert.match(await page.$eval("#pending .pending__text", (e) => e.textContent), /Waiting for the tool to finish, then sending: “never mind, second”/); + assert.equal(await page.evaluate(() => busy.cut), false, "the tool is not killed"); + await page.waitForFunction(() => messages.length === 4 && busy === null, { timeout: 20000 }); + const tool = await page.evaluate(() => messages[1].tools[0]); + assert.equal(tool.state, "done"); assert.equal(tool.result, "The file says hello.", "the tool finished and its result is kept"); + assert.equal(mock.state.aborted, 1); + assert.equal(requestTexts(mock).at(-1), "u:never mind, second"); + await page.close(); +}); + +htest("while answering - a waiting message can be taken back, or sent now", async ({ browser, mock }) => { + reset(mock); + const page = await openPage(browser, mock, { seed: on({ whileBusy: "queue" }) }); + await say(page, "#hold one"); + await page.waitForFunction(() => busy !== null); + await say(page, "later"); + await page.click("[data-pending-back]"); + assert.equal(await page.$eval("#input", (e) => e.value), "later", "back in the box"); + assert.equal(await page.$("#pending"), null); + await page.$eval("#input", (e) => { e.value = ""; }); + await say(page, "now"); + await page.click("[data-pending-now]"); // queue -> interrupt + await page.waitForFunction(() => messages.length === 4 && busy === null || (busy && busy.msg.text === "Working on it" && messages.length === 4), { timeout: 20000 }); + assert.equal(requestTexts(mock).at(-1), "u:now"); + await page.click("#stop-btn").catch(() => {}); + await page.close(); +}); + +htest("while answering - Stop keeps a waiting message for you to decide", async ({ browser, mock }) => { + reset(mock); + const page = await openPage(browser, mock, { seed: on({ whileBusy: "queue" }) }); + await say(page, "#hold one"); + await page.waitForFunction(() => busy !== null); + await say(page, "later"); + await page.click("#stop-btn"); + await idle(page); + await sleep(300); + assert.equal(mock.state.requests.length, 1, "a stopped answer does not send the queued message by itself"); + assert.match(await page.$eval("#pending .pending__text", (e) => e.textContent), /Not sent yet: “later”/); + await page.click("[data-pending-now]"); + await idle(page); + await page.waitForFunction(() => messages.length === 4); + assert.equal(requestTexts(mock).at(-1), "u:later"); + await page.close(); +}); + +htest("history: another chat or New chat does not lose a waiting message", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: on({ whileBusy: "queue" }) }); + await ask(page, "first chat"); + await say(page, "#hold running"); + await page.waitForFunction(() => busy !== null); + await say(page, "parked"); + await page.click("#stop-btn"); + await idle(page); + await page.click("#sidebar-new"); + assert.equal(await page.$eval("#input", (e) => e.value), "parked", "back in the box"); + assert.equal(await page.$("#pending"), null); + await page.close(); +}); + const mock = await startMock(); const browser = await launch(); await run(async () => ({ browser, mock, close: async () => { await browser.close(); await mock.stop(); } })); diff --git a/tools/webtest/shots.mjs b/tools/webtest/shots.mjs new file mode 100644 index 00000000..5c00ca8e --- /dev/null +++ b/tools/webtest/shots.mjs @@ -0,0 +1,142 @@ +// Screenshots of the served web page (serve/web) in its new states, against the mock server (no model): +// WEBTEST_MODULES=<folder with node_modules/puppeteer-core> node tools/webtest/shots.mjs <out folder> [name-substring] +import { startMock } from "./mock.mjs"; +import { launch, openPage, say, idle, sleep, shot } from "./lib.mjs"; + +const out = process.argv[2] || "shots"; +const only = process.argv[3]; +const mock = await startMock(); +const browser = await launch(); +const turn = (role, text, extra = {}) => ({ role, text, time: Date.now(), ...extra }); +const fence = (lang, code) => "```" + lang + "\n" + code + "\n```\n"; +const on = (extra = {}) => ({ sampling: { chatList: true, chatEdit: true, ...extra } }); +const day = 86400000; + +const LONG = "Here is a short plan.\n\n1. Read the notes the user attached.\n2. Write the summary in plain words.\n3. List the open questions.\n\n" + + "The summary is **short** on purpose: three sentences, no jargon, and one next step.\n\n| Step | Who | When |\n|---|---|---|\n| Read | You | Today |\n| Summary | Me | Now |\n"; +const CHAT = [turn("user", "Can you plan how to summarise my notes?"), turn("assistant", LONG, { meta: "212 tokens · 41.3 tok/s" }), + turn("user", "Make it shorter, please."), turn("assistant", "Sure. Read the notes, write three sentences, list what is still open.", { meta: "24 tokens · 40.8 tok/s" })]; + +// the saved-chats list with chats from different days (put into the page's own store, then the page is reloaded) +async function seedChats(page) { + await page.evaluate(async (base, d) => { + const mk = (id, title, days, text) => ({ id, title, time: Date.now() - days * d, messages: [{ role: "user", text, time: 1 }, { role: "assistant", text: "Sure.", time: 2 }] }); + for (const c of [mk("s1", "", 0.1, "Plan my week"), mk("s2", "Garden plan", 0.2, "Which tomatoes grow in shade?"), mk("s3", "", 1.5, "Translate this letter"), + mk("s4", "Branch of Recipe ideas", 3, "Recipe ideas"), mk("s5", "", 12, "Explain compound interest"), mk("s6", "", 50, "Old question about the printer")]) { + chatStore.put(StrataHistory.cleanChat(c)); + } + }, null, day); + await sleep(300); + await page.reload({ waitUntil: "networkidle0" }); +} + +const shots = [ + ["01-wide-window", async () => { + const p = await openPage(browser, mock, { width: 2560, height: 1300, seed: { chat: CHAT, ...on() } }); + await seedChats(p); + return p; + }], + ["02-saved-chats-list", async () => { + const p = await openPage(browser, mock, { width: 1280, height: 800, seed: { chat: CHAT, ...on() } }); + await seedChats(p); + return p; + }], + ["03-rewind-choice", async () => { + const p = await openPage(browser, mock, { width: 1280, height: 800, seed: { chat: CHAT, ...on() } }); + await p.evaluate(() => { const i = 2; openRewind(i); }); + await sleep(200); + return p; + }], + ["04-undo-bar", async () => { + const p = await openPage(browser, mock, { width: 1280, height: 800, seed: { chat: CHAT, ...on() } }); + await p.evaluate(() => { openRewind(2); }); + await p.$eval(".history-panel .st-btn--primary", (b) => b.click()); + await sleep(200); + return p; + }], + ["05-edit-answer", async () => { + const p = await openPage(browser, mock, { width: 1280, height: 800, seed: { chat: CHAT, ...on() } }); + await p.evaluate(() => { editAnswerAt(3); }); + await sleep(200); + return p; + }], + ["06-branch-from-here", async () => { + const p = await openPage(browser, mock, { width: 1280, height: 800, seed: { chat: CHAT, ...on() } }); + await p.evaluate(() => { openRewind(2); }); + await p.evaluate(() => [...document.querySelectorAll(".history-panel .st-btn")].find((b) => b.textContent === "Branch from here").click()); + await sleep(300); + return p; + }], + ["07-math", async () => { + const p = await openPage(browser, mock, { width: 1100, height: 760, seed: { sampling: { math: true } } }); + await say(p, "#math show me"); await idle(p); await sleep(900); + return p; + }], + ["08-math-dark", async () => { + const p = await openPage(browser, mock, { width: 1100, height: 760, dark: true, seed: { sampling: { math: true } } }); + await say(p, "#math show me"); await idle(p); await sleep(900); + return p; + }], + ["09-svg-preview", async () => { + const p = await openPage(browser, mock, { width: 1100, height: 760 }); + await say(p, "#svg draw a circle"); await idle(p); await sleep(200); + await p.click("[data-preview-toggle]"); await sleep(400); + return p; + }], + ["10-html-preview-and-scripts", async () => { + const p = await openPage(browser, mock, { width: 1100, height: 760 }); + await say(p, "#html make a page"); await idle(p); await sleep(200); + await p.click("[data-preview-toggle]"); await sleep(300); + await p.click("[data-preview-scripts]"); await sleep(500); + return p; + }], + ["11-narrow-chat", async () => { + const p = await openPage(browser, mock, { width: 390, height: 780, seed: { chat: CHAT, ...on() } }); + await sleep(200); + return p; + }], + ["12-narrow-saved-chats-open", async () => { + const p = await openPage(browser, mock, { width: 390, height: 780, seed: { chat: CHAT, ...on() } }); + await seedChats(p); + await p.click("#sidebar-toggle"); await sleep(300); + return p; + }], + ["13-narrow-header-320", async () => openPage(browser, mock, { width: 320, height: 640, seed: { chat: CHAT } })], + ["14-chat-settings", async () => { + const p = await openPage(browser, mock, { width: 1280, height: 900, seed: { chat: CHAT } }); + await p.click("#sampling-btn"); await sleep(500); + await p.$eval(".st-drawer__body", (e) => { e.scrollTop = e.scrollHeight; }); + await sleep(200); + return p; + }], + ["15-send-while-answering", async () => { + const p = await openPage(browser, mock, { width: 1100, height: 760, seed: on({ whileBusy: "queue" }) }); + await say(p, "#hold start a long answer"); + await p.waitForFunction(() => busy !== null); + await sleep(500); + await say(p, "And then summarise it for me"); + await sleep(300); + return p; + }], + ["16-load-unload", async () => { + mock.state.loaded = false; + const p = await openPage(browser, mock, { width: 1100, height: 520 }); + await sleep(1500); + return p; + }], + ["17-narrow-wide-mid-900", async () => openPage(browser, mock, { width: 900, height: 700, seed: { chat: CHAT, ...on() } })], +]; + +try { + for (const [name, make] of shots) { + if (only && !name.includes(only)) continue; + mock.state.loaded = true; + const page = await make(); + await sleep(300); + console.log(await shot(page, out, name), page.errors.length ? "ERRORS " + page.errors.join(" | ") : ""); + await page.close(); + } +} finally { + await browser.close(); + await mock.stop(); +} From 4661596ce37fb920a75fb005e4e79d9191d4694a Mon Sep 17 00:00:00 2001 From: Niko1221 <Niko1221@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:22:05 +0100 Subject: [PATCH 48/52] Web page: the chat view in eight languages, and the page's docs Everything the Chat view shows (header, tabs, message box, settings, toasts, tool blocks, the sidebar, the history and Load/Unload texts) now goes through the translation catalog: serve/web/locales/{de,es,ja,ko,pt,ru,zh}.json beside en.json (written from the English text in the code by tools/web_i18n.py). Plurals follow the language (Russian has few and many, Japanese and Korean only one form). serve/test_web_i18n.py fails when a catalog lacks a key, has a stale one or changes a {placeholder}. A ninth language is one file plus one line in serve/web/i18n.js. The Monitor, Images and About views are still English (the language setting says so); they are the next step. Browser tests: a language pick translates and is kept, /?lang= is for one visit, an unknown code stays English, all seven catalogs load without an error. docs/DETAILS.md: a section "The web page" (every switch, what the preview can and cannot reach, the languages, the tests), the Sampling drawer's new name, and the credits (KaTeX and the contributors of the PRs ported into the page). --- docs/DETAILS.md | 57 ++++++- serve/web/app.js | 61 ++++---- serve/web/index.html | 18 +-- serve/web/locales/de.json | 249 +++++++++++++++++++++++++++++++ serve/web/locales/en.json | 264 +++++++++++++++++++++++++++++++++ serve/web/locales/es.json | 249 +++++++++++++++++++++++++++++++ serve/web/locales/ja.json | 249 +++++++++++++++++++++++++++++++ serve/web/locales/ko.json | 249 +++++++++++++++++++++++++++++++ serve/web/locales/pt.json | 249 +++++++++++++++++++++++++++++++ serve/web/locales/ru.json | 249 +++++++++++++++++++++++++++++++ serve/web/locales/zh.json | 249 +++++++++++++++++++++++++++++++ tools/web_i18n.py | 2 +- tools/webtest/browser_test.mjs | 45 ++++++ 13 files changed, 2153 insertions(+), 37 deletions(-) create mode 100644 serve/web/locales/de.json create mode 100644 serve/web/locales/en.json create mode 100644 serve/web/locales/es.json create mode 100644 serve/web/locales/ja.json create mode 100644 serve/web/locales/ko.json create mode 100644 serve/web/locales/pt.json create mode 100644 serve/web/locales/ru.json create mode 100644 serve/web/locales/zh.json diff --git a/docs/DETAILS.md b/docs/DETAILS.md index e5c23659..92360d80 100644 --- a/docs/DETAILS.md +++ b/docs/DETAILS.md @@ -676,6 +676,56 @@ curl -X POST "http://127.0.0.1:8080/slots/0?action=restore" -H "Content-Type: ap only for this feature. Exact token replay across restarts is not guaranteed: expert residency and CPU/GPU rounding can change later output. +### The web page (Chat, Images, Monitor, About) + +Open the server's address in a browser. Everything in it runs from the server's own files: no CDN, no outside address. Chats, +settings and the API key stay in the browser. + +**Chat settings** (the button next to the message box) holds the sampling and thinking settings and the switches below. Every +switch below is **off by default**; with all of them off the page behaves as it did before. + +- **Render math.** Equations written as `\( ... \)`, `\[ ... \]`, `$x$` or `$$ ... $$` are drawn as formulas by KaTeX 0.19.0, which + ships in `serve/web/vendor/katex` (MIT; `PROVENANCE.json` there lists the package and a hash of every file). The text of a + message is never changed: copying, the Markdown export and the next request all carry what the model wrote. Code, prices + (`$5 and $10`) and a formula still being written stay text. A formula KaTeX cannot read stays as its source. A formula can only + draw: it cannot make a link, load a picture or run anything (`\href`, `\url`, `\includegraphics` and `\htmlClass` are shown as + their own names). +- **Saved chats list.** Keeps every chat in a list on the left, with search over titles and text, rename, delete (with Undo) and + days as headings. The chats live in this browser's IndexedDB; a picture or file is kept by name only. Nothing goes to the server. + In a private window, or when the browser's storage is full, the list stays in memory and the page says so once. Turning it on + keeps the chat on the screen as the first one in the list; turning it off keeps that chat as the single chat. +- **Edit and rewind messages.** Under each message: **Regenerate** (a new answer to the same question), **Edit answer** (correct its + text; the old thinking and tool calls go and no request is sent) and **Rewind to here**. Rewind asks what you want. On your + message, **Edit and send again here** hides it and the messages after it and puts it in the box; on an answer, **Continue from + here** hides the messages after it. **Branch from here** (needs the saved chats list) starts a new chat from the messages up to + that point and leaves this chat as it is; the branch keeps a name such as "Branch of ..." and links back to the original. An + **Undo** bar above the box brings back what was hidden, until your next question, another chat or a reload. A picture or file + that was only kept by name is not sent again: the page asks you to attach it again. +- **When you send while it is answering.** *Wait* (the default): Send is off until the answer is done. *Send after*: your message + waits and goes when the answer is done. *Interrupt*: the answer stops where it is, what was written stays and is marked + interrupted, and your message goes at once; a tool that is running finishes first. Only one message waits, and **Take back** + returns it to the box. Stop keeps a waiting message for you to send yourself. + +An answer's ` ```svg ` or ` ```html ` block gets a **Preview** button. The code is drawn in a frame that is cut off from the page: +an empty sandbox (no scripts, forms, popups or downloads, and no access to the page, its storage or the server), a policy inside +the frame that allows no address at all, and a page header (`Content-Security-Policy: frame-src 'none'`) that keeps a link or a +redirect in the model's HTML from loading a web page into it. An svg is shown as a picture. For an HTML page there is also a +warning button, **Run scripts**: after you confirm, that one block runs with scripts, still with no way to the page and no network, +until you close the preview. It can still use your CPU, and it is code the model wrote. + +**Load / Unload** in the header loads the model or frees the GPU (`POST /load`, `POST /unload`). It asks before unloading and is off +while an answer is being written or an image is made. + +**Language.** About > Settings lists the page's languages: English (the default), German, Spanish, Japanese, Korean, Portuguese, +Russian and Chinese. The Chat view, its settings and the header are translated; Monitor, Images and About are still English. A +language is a file `serve/web/locales/<lang>.json`; the English text lives in the code next to its key, and +`python tools/web_i18n.py` checks every file for the same keys and placeholders (`--write` rewrites `en.json`). `/?lang=de` shows a +language for one visit. + +Tests: `serve/test_web_*.py` and `serve/test_web_*.js` (Node), and a browser run against a stand-in server with no model: +`WEBTEST_MODULES=<folder with puppeteer-core> node tools/webtest/browser_test.mjs`. `tools/webtest/shots.mjs` takes the page's +screenshots. + ### API request monitor Off by default, because it keeps prompts and answers in memory. Turn it on with `"api_monitor": true` or @@ -765,7 +815,7 @@ after a change. needed for `npx` servers. An **address** (`url`, optional `headers`) uses MCP's Streamable HTTP transport (the older SSE-only transport is not supported). `"disabled": true` leaves an entry out. - Servers start with Strata. The server window says what each offers or why it did not start. The Monitor tab lists them, and - the Sampling drawer has **Use tools from MCP servers** (on by default). A server that stops later is started again at its next call. + Chat settings has **Use tools from MCP servers** (on by default). A server that stops later is started again at its next call. - In the chat each call shows as a small block. The model reads the result and goes on, up to `max_rounds` calls in a row. A tool that fails or takes longer than `timeout_s` gives the model an `error: ...` result. Results longer than `max_result_chars` are cut with a note. Stop stops a running tool too. @@ -1042,7 +1092,7 @@ your own prompts. The Monitor marks every request ESP or stock. ``` The engine log then says `control vector mode = project, dir = per-layer, layers 4..44 (41 steered)`. A loaded vector is on for -every request unless it says otherwise: the Sampling drawer has a switch, and the API takes `"experimental_speed_projection": false` +every request unless it says otherwise: Chat settings has a switch, and the API takes `"experimental_speed_projection": false` (config default: `"sampling": {"experimental_speed_projection": false}`). Switching drops the conversation cache once. Switched off, the output is token for token the stock model's. @@ -1154,6 +1204,9 @@ Strata itself: [MIT](../LICENSE). The model files are not part of it; their lice [HyperQwen](https://github.com/syv-ai/HyperQwen); references in the paper. - The web app's font: [Outfit](https://github.com/Outfitio/Outfit-Fonts) (SIL Open Font License 1.1, see `serve/web/fonts/OFL.txt`). Its Monitor tab started from @code-martin's dashboard idea (PR #22). + Math is drawn by [KaTeX](https://katex.org) (MIT, vendored in `serve/web/vendor/katex`). The chat page's wide-window layout, svg/html preview, math, Load/Unload, saved + chats, edit and rewind came from PRs #3176 (@mnott), #1628 (@thoives), #2972 and #2974 (@CC-David-CC), #3550 (@sakuumomo), #1787 (@Scotty-Hudson) and + #2615 (@uppet), and the rewind choice and sending while answering from issues #3823 and #4004 (@xvcezrqpbxtpzblrt). - The experimental speed projection's vector (`data/experimental-speed-projection/`): Qwen Community License 1.0, made from the model's activations (see its README). diff --git a/serve/web/app.js b/serve/web/app.js index e0ad80aa..46d79bea 100644 --- a/serve/web/app.js +++ b/serve/web/app.js @@ -50,7 +50,7 @@ async function copyText(text, btn) { use.setAttribute("href", `${SPRITE}#i-check`); setTimeout(() => use.setAttribute("href", `${SPRITE}#i-copy`), 1500); } - toast("success", "Copied to clipboard", "", 1800); + toast("success", tr("toast.copied", "Copied to clipboard"), "", 1800); } // ------------------------------------------------------------------ theme and tabs @@ -108,12 +108,16 @@ $("api-key").oninput = () => saveApiKey(); $("api-key").onchange = () => saveApiKey(true); let health = {model: "strata", images: false, max_context: 0}; +// the texts that depend on what this server offers: the empty chat's line and the attach button's hint +function renderEmptyChat() { + $("attach-btn").title = health.images ? tr("composer.attachPictures", "Attach a text file or a picture (or drop it here)") + : tr("composer.attach", "Attach a text file (or drop it here)"); + $("chat-empty-sub").textContent = tr("chat.emptyModel", "{model} runs on this PC. Nothing leaves it.", {model: health.model}); +} async function loadHealth() { try { health = await (await fetch("health")).json(); - $("attach-btn").title = health.images ? "Attach a text file or a picture (or drop it here)" - : "Attach a text file (or drop it here)"; - $("chat-empty-sub").textContent = `${health.model} runs on this PC. Nothing leaves it.`; + renderEmptyChat(); $("tab-btn-images").hidden = !health.image_generation; if (location.hash === "#images" && health.image_generation) showTab("images"); } catch (e) { @@ -817,8 +821,8 @@ function msgEl(m, i) { const wrap = document.createElement("div"); wrap.className = "msg-images"; for (const im of m.images) { - if (im.url) { const img = document.createElement("img"); img.src = im.url; img.alt = im.name || "image"; wrap.appendChild(img); } - else { const c = document.createElement("span"); c.className = "chip"; c.innerHTML = icon("image", "st-icon st-icon--sm"); c.append(im.name || "image"); wrap.appendChild(c); } + if (im.url) { const img = document.createElement("img"); img.src = im.url; img.alt = im.name || tr("chat.image", "image"); wrap.appendChild(img); } + else { const c = document.createElement("span"); c.className = "chip"; c.innerHTML = icon("image", "st-icon st-icon--sm"); c.append(im.name || tr("chat.image", "image")); wrap.appendChild(c); } } el.appendChild(wrap); } @@ -828,13 +832,13 @@ function msgEl(m, i) { el.appendChild(b); const meta = document.createElement("div"); meta.className = "st-msg__meta"; - meta.textContent = `You · ${timeStr(m.time)}`; + meta.textContent = `${tr("chat.you", "You")} · ${timeStr(m.time)}`; el.appendChild(meta); } else { el.innerHTML = `<details class="st-collapse think" hidden><summary>${icon("thinking", "st-icon st-icon--sm")}<span class="think-title"></span>` + `${icon("chevron", "st-icon st-icon--sm st-chev")}</summary><div class="st-collapse__body thinking"></div></details>` + `<div class="st-bubble"></div><div class="st-msg__meta"><span class="meta-text"></span>` + - `<button class="st-btn st-btn--icon" data-msg-copy aria-label="Copy the answer" title="Copy">${icon("copy")}</button></div>`; + `<button class="st-btn st-btn--icon" data-msg-copy aria-label="${esc(tr("chat.copyAnswer", "Copy the answer"))}" title="${esc(tr("chat.copy", "Copy"))}">${icon("copy")}</button></div>`; updateAssistant(el, m, false); } const actions = msgActions(m, i); // edit / regenerate / rewind (chats-ui.js), when switched on @@ -843,18 +847,20 @@ function msgEl(m, i) { } // One MCP tool call in the answer: a compact block (name, state, a one-line preview) that opens to the arguments and // the result as the model read it. Its body is built only while open: a result can be 20,000 characters. -const TOOL_STATE = {writing: ["st-badge--reading", "Writing"], running: ["st-badge--generating", "Running"], done: ["", "Done"], - error: ["st-badge--error", "Error"], skipped: ["st-badge--queued", "Not run"]}; +const TOOL_STATE = {writing: ["st-badge--reading", () => tr("tool.writing", "Writing")], running: ["st-badge--generating", () => tr("tool.running", "Running")], + done: ["", () => tr("tool.done", "Done")], error: ["st-badge--error", () => tr("tool.error", "Error")], + skipped: ["st-badge--queued", () => tr("tool.skipped", "Not run")]}; function toolHtml(t, k) { - const [cls, label] = TOOL_STATE[t.state] || ["", t.state]; + const [cls, labelOf] = TOOL_STATE[t.state] || ["", () => t.state]; + const label = labelOf(); const args = t.arguments == null ? "" : JSON.stringify(t.arguments, null, 2); const preview = t.result != null ? t.result : args.replace(/\s+/g, " "); let body = ""; if (t.open) { - body = `<div class="tool-call__label">Arguments</div><pre class="tool-call__pre">${esc(args || "(being written)")}</pre>`; + body = `<div class="tool-call__label">${esc(tr("tool.arguments", "Arguments"))}</div><pre class="tool-call__pre">${esc(args || tr("tool.beingWritten", "(being written)"))}</pre>`; if (t.result != null) { - body += `<div class="tool-call__label">${t.ok ? "Result" : "Error"}${t.chars ? ` · ${fmt(t.chars)} characters` : ""}` + - `${t.truncated ? ", cut for the model" : ""}</div><pre class="tool-call__pre">${esc(t.result)}</pre>`; + body += `<div class="tool-call__label">${esc(t.ok ? tr("tool.result", "Result") : tr("tool.error", "Error"))}${t.chars ? ` · ${esc(tr("tool.chars", "{n} characters", {n: fmt(t.chars)}))}` : ""}` + + `${t.truncated ? esc(tr("tool.cut", ", cut for the model")) : ""}</div><pre class="tool-call__pre">${esc(t.result)}</pre>`; } } return `<details class="st-collapse tool-call" data-tool="${k}" data-state="${esc(t.state)}"${t.open ? " open" : ""}>` + @@ -898,8 +904,8 @@ function updateAssistant(el, m, streaming) { if (m.reasoning) { det.hidden = false; const thinkingNow = streaming && !m.text; - el.querySelector(".think-title").textContent = thinkingNow ? "Thinking…" : - m.thinkSecs != null ? `Thought for ${fmt(m.thinkSecs, 1)} s` : "Thoughts"; + el.querySelector(".think-title").textContent = thinkingNow ? tr("think.now", "Thinking…") : + m.thinkSecs != null ? tr("think.for", "Thought for {s} s", {s: fmt(m.thinkSecs, 1)}) : tr("think.done", "Thoughts"); const body = el.querySelector(".thinking"); if (det.open || thinkingNow) body.textContent = m.reasoning; else body.dataset.pending = "1"; @@ -918,7 +924,7 @@ function updateAssistant(el, m, streaming) { if (settings.math) StrataMath.hydrate(bubble); if (streaming) bubble.classList.add("cursor"); else bubble.classList.remove("cursor"); } - el.querySelector(".meta-text").textContent = m.meta || (streaming ? "" : m.stopped ? "Stopped" : ""); + el.querySelector(".meta-text").textContent = m.meta || (streaming ? "" : m.stopped ? tr("chat.stopped", "Stopped") : ""); el.querySelector("[data-msg-copy]").hidden = streaming || !m.text; } function renderChat() { @@ -1256,7 +1262,7 @@ $("new-btn").onclick = () => { }}); }; $("export-btn").onclick = () => { - if (!messages.length) { toast("info", "Nothing to save yet"); return; } + if (!messages.length) { toast("info", tr("export.nothing", "Nothing to save yet")); return; } const tools = (m) => (m.tools || []).filter((t) => t.result != null).map((t) => `<details><summary>Tool ${t.server ? `${t.server} / ` : ""}${t.tool || t.name}${t.ok ? "" : " (error)"}</summary>\n\n` + `\`\`\`json\n${JSON.stringify(t.arguments || {}, null, 2)}\n\`\`\`\n\n\`\`\`\n${t.result}\n\`\`\`\n\n</details>\n\n`).join(""); @@ -1279,19 +1285,20 @@ function isTextFile(f) { function addFiles(files) { for (const f of files) { if (f.type.startsWith("image/")) { - if (!health.images) { toast("warn", "Pictures are off", "This model was set up for text only."); continue; } - if (f.size > 20e6) { toast("warn", "Picture too large", `${f.name} is over 20 MB.`); continue; } + if (!health.images) { toast("warn", tr("file.picturesOff", "Pictures are off"), tr("file.picturesOffText", "This model was set up for text only.")); continue; } + if (f.size > 20e6) { toast("warn", tr("file.pictureBig", "Picture too large"), tr("file.pictureBigText", "{name} is over 20 MB.", {name: f.name})); continue; } const r = new FileReader(); - r.onload = () => { attachments.push({kind: "image", name: f.name || "pasted image", url: r.result}); renderAttachments(); }; + r.onload = () => { attachments.push({kind: "image", name: f.name || tr("file.pasted", "pasted image"), url: r.result}); renderAttachments(); }; r.readAsDataURL(f); continue; } - if (!isTextFile(f)) { toast("warn", "Not a text file", `${f.name}: attach text files (code, notes, logs, data)${health.images ? " or pictures" : ""}.`); continue; } - if (f.size > MAX_TEXT_FILE) { toast("warn", "File too large", `${f.name} is over 512 KB.`); continue; } + if (!isTextFile(f)) { toast("warn", tr("file.notText", "Not a text file"), health.images ? tr("file.notTextPictures", "{name}: attach text files (code, notes, logs, data) or pictures.", {name: f.name}) + : tr("file.notTextOnly", "{name}: attach text files (code, notes, logs, data).", {name: f.name})); continue; } + if (f.size > MAX_TEXT_FILE) { toast("warn", tr("file.big", "File too large"), tr("file.bigText", "{name} is over 512 KB.", {name: f.name})); continue; } const r = new FileReader(); r.onload = () => { const text = String(r.result); - if (text.includes("\u0000")) { toast("warn", "Not a text file", `${f.name} looks like a binary file.`); return; } + if (text.includes("\u0000")) { toast("warn", tr("file.notText", "Not a text file"), tr("file.binaryText", "{name} looks like a binary file.", {name: f.name})); return; } attachments.push({kind: "file", name: f.name, text}); renderAttachments(); }; @@ -1318,7 +1325,7 @@ function renderAttachments() { c.innerHTML = icon(a.kind === "file" ? "attach" : "image", "st-icon st-icon--sm"); c.append(a.name); const x = document.createElement("button"); - x.type = "button"; x.className = "st-btn st-btn--icon"; x.setAttribute("aria-label", "Remove"); + x.type = "button"; x.className = "st-btn st-btn--icon"; x.setAttribute("aria-label", tr("file.remove", "Remove")); x.innerHTML = icon("trash"); x.onclick = () => { attachments.splice(i, 1); renderAttachments(); }; c.appendChild(x); @@ -1472,6 +1479,9 @@ const urlLang = new URLSearchParams(location.search).get("lang"); $("lang").innerHTML = StrataI18n.LANGUAGES.map(([code, name]) => `<option value="${esc(code)}">${esc(name)}</option>`).join(""); function showLanguage() { $("lang").value = StrataI18n.lang; + renderEmptyChat(); + setSidebar(sidebarOpen, false); + outputs(); renderChat(); setBusy(!!busy); if (lastMetrics) render(lastMetrics); @@ -1486,6 +1496,7 @@ $("lang").onchange = async () => { async function start() { await StrataI18n.setLanguage(urlLang || store.get("lang", "en")); $("lang").value = StrataI18n.lang; + renderEmptyChat(); initChats(); if (settings.chatList) await setChatList(true, false); // the saved-chats list is read before the first draw setBusy(false); diff --git a/serve/web/index.html b/serve/web/index.html index 0511153d..4de2fc44 100644 --- a/serve/web/index.html +++ b/serve/web/index.html @@ -20,21 +20,21 @@ <body> <header class="st-header"> <span class="st-header__brand">Strata</span> - <nav class="st-tabs" role="tablist" aria-label="Views"> + <nav class="st-tabs" role="tablist" aria-label="Views" data-i18n-label="tab.views"> <button class="st-tab" role="tab" id="tab-btn-chat" aria-controls="view-chat" aria-selected="true" data-tab="chat"> - <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-chat"/></svg>Chat</button> + <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-chat"/></svg><span data-i18n="tab.chat">Chat</span></button> <button class="st-tab" role="tab" id="tab-btn-images" aria-controls="view-images" aria-selected="false" data-tab="images" hidden> - <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-image"/></svg>Images</button> + <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-image"/></svg><span data-i18n="tab.images">Images</span></button> <button class="st-tab" role="tab" id="tab-btn-monitor" aria-controls="view-monitor" aria-selected="false" data-tab="monitor"> - <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-activity"/></svg>Monitor</button> + <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-activity"/></svg><span data-i18n="tab.monitor">Monitor</span></button> <button class="st-tab" role="tab" id="tab-btn-about" aria-controls="view-about" aria-selected="false" data-tab="about"> - <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-info"/></svg>About</button> + <svg class="st-icon st-icon--sm"><use href="web/sprite.svg#i-info"/></svg><span data-i18n="tab.about">About</span></button> </nav> <span class="st-header__spacer"></span> <span class="st-pill" id="pill" data-state="idle" role="status" aria-live="polite"> - <span class="st-pill__dot"></span><span id="pill-text">Connecting…</span></span> + <span class="st-pill__dot"></span><span id="pill-text" data-i18n="pill.connecting">Connecting…</span></span> <button class="st-btn st-btn--secondary" id="unload-btn" type="button" title="Waiting for the server" disabled>…</button> - <button class="st-btn st-btn--icon" id="theme-btn" title="Light / dark" aria-label="Switch between light and dark"> + <button class="st-btn st-btn--icon" id="theme-btn" title="Light / dark" aria-label="Switch between light and dark" data-i18n-title="theme.title" data-i18n-label="theme.label"> <svg class="st-icon"><use id="theme-icon" href="web/sprite.svg#i-moon"/></svg></button> </header> @@ -61,7 +61,7 @@ <div class="chat" id="chat"> <div class="chat-empty" id="chat-empty"> <div class="chat-empty__title" data-i18n="chat.empty">Ask anything</div> - <div class="chat-empty__sub" id="chat-empty-sub" data-i18n="chat.emptySub">The model runs on this PC. Nothing leaves it.</div> + <div class="chat-empty__sub" id="chat-empty-sub">The model runs on this PC. Nothing leaves it.</div> </div> </div> </div> @@ -70,7 +70,7 @@ <div class="attachments" id="attachments" hidden></div> <textarea id="input" rows="2" placeholder="Ask anything…" aria-label="Message" data-i18n-placeholder="composer.placeholder" data-i18n-label="composer.message"></textarea> <div class="st-composer__bar"> - <button type="button" class="st-btn st-btn--icon" id="attach-btn" title="Attach a text file (or drop it here)" aria-label="Attach a file" data-i18n-label="composer.attach"> + <button type="button" class="st-btn st-btn--icon" id="attach-btn" title="Attach a text file (or drop it here)" aria-label="Attach a file" data-i18n-label="composer.attachLabel"> <svg class="st-icon"><use href="web/sprite.svg#i-attach"/></svg></button> <input type="file" id="file" multiple hidden> <button type="button" class="st-btn st-btn--icon" id="new-btn" title="New chat" aria-label="New chat" data-i18n-title="chat.new" data-i18n-label="chat.new"> diff --git a/serve/web/locales/de.json b/serve/web/locales/de.json new file mode 100644 index 00000000..67a2c5cb --- /dev/null +++ b/serve/web/locales/de.json @@ -0,0 +1,249 @@ +{ + "branch.back": "Zurück dorthin", + "branch.from": "Abgezweigt von „{title}“", + "branch.open": "Das Original öffnen", + "branch.started": "Verzweigung gestartet", + "branch.startedText": "Der Chat, in dem Sie waren, ist unverändert und steht in der Liste links.", + "branch.title": "Verzweigung von {title}", + "busy.stillWriting": "Es schreibt noch", + "busy.stopFirst": "Stoppen Sie zuerst die Antwort.", + "cancel": "Abbrechen", + "chat.clearedToast": "Der letzte Chat wurde geleert.", + "chat.copy": "Kopieren", + "chat.copyAnswer": "Antwort kopieren", + "chat.deleted": "Chat gelöscht", + "chat.empty": "Fragen Sie, was Sie möchten", + "chat.emptyModel": "{model} läuft auf diesem PC. Nichts verlässt ihn.", + "chat.image": "Bild", + "chat.interrupted": "Unterbrochen", + "chat.interruptedLower": "unterbrochen", + "chat.new": "Neuer Chat", + "chat.newToast": "Neuer Chat", + "chat.newToastText": "Der bisherige Chat steht in der Liste links.", + "chat.projectionOff": "Projektion aus", + "chat.projectionOn": "Projektion an", + "chat.stopped": "Gestoppt", + "chat.stoppedLower": "gestoppt", + "chat.tokens": "{n} Tokens", + "chat.toolCalls": {"one": "{n} Werkzeugaufruf", "other": "{n} Werkzeugaufrufe"}, + "chat.toolLimit": "bei der Grenze von {n} Werkzeugrunden gestoppt (mcp.max_rounds)", + "chat.untitled": "Neuer Chat", + "chat.you": "Sie", + "close": "Schließen", + "code.copy": "Code kopieren", + "code.label": "Code", + "composer.attach": "Textdatei anhängen (oder hierher ziehen)", + "composer.attachLabel": "Datei anhängen", + "composer.attachPictures": "Textdatei oder Bild anhängen (oder hierher ziehen)", + "composer.finishOpen": "Speichern oder abbrechen, was oben offen ist, um fortzufahren", + "composer.hintInterject": "Eingabe stoppt die Antwort hier und sendet sofort", + "composer.hintQueue": "Eingabe sendet, sobald die Antwort fertig ist", + "composer.message": "Nachricht", + "composer.newline": "Umschalt+Eingabe: neue Zeile", + "composer.placeholder": "Fragen Sie, was Sie möchten…", + "composer.save": "Diesen Chat als Markdown speichern", + "composer.saveLabel": "Diesen Chat speichern", + "composer.send": "Senden", + "composer.stop": "Stoppen", + "drawer.apply": "Anwenden", + "drawer.busy": "Wenn Sie senden, während es antwortet", + "drawer.busyInterject": "Unterbrechen", + "drawer.busyInterjectNote": "Die Antwort hört dort auf, wo sie ist (Geschriebenes bleibt), und Ihre Nachricht geht sofort los. Ein laufendes Werkzeug wird zuerst fertig.", + "drawer.busyQueue": "Danach senden", + "drawer.busyQueueNote": "Ihre Nachricht wartet und geht los, sobald die Antwort fertig ist.", + "drawer.busyWait": "Warten", + "drawer.busyWaitNote": "Senden ist aus, bis die Antwort fertig ist, wie bisher.", + "drawer.chats": "Chats", + "drawer.edit": "Nachrichten bearbeiten und zurückspulen", + "drawer.editNote": "eine Antwort bearbeiten, eine neue verlangen oder zu einer früheren Nachricht zurückgehen (mit Rückgängig)", + "drawer.greedy": "0 · deterministisch", + "drawer.high": "Hoch", + "drawer.list": "Liste gespeicherter Chats", + "drawer.listNote": "behält jeden Chat in einer Liste links, nur in diesem Browser. Aus: ein Chat, wie bisher", + "drawer.low": "Niedrig", + "drawer.math": "Formeln darstellen", + "drawer.mathNote": "Gleichungen in Antworten als Formeln zeichnen (funktioniert offline)", + "drawer.maxTokens": "Max. Tokens", + "drawer.maxTokensNote": "leer = bis fertig", + "drawer.mcp": "Werkzeuge von MCP-Servern nutzen", + "drawer.medium": "Mittel", + "drawer.off": "Aus", + "drawer.random": "Zufällig", + "drawer.reset": "Zurücksetzen", + "drawer.saved": "Chat-Einstellungen gespeichert", + "drawer.savedGreedy": "Deterministisch: dieselbe Frage gibt dieselbe Antwort.", + "drawer.savedHere": "Hier gespeichert, aber nicht für andere Apps", + "drawer.savedOwn": "Andere Apps nutzen wieder ihre eigenen Einstellungen.", + "drawer.savedShared": "Andere Apps (omp, API-Clients) nutzen diese Einstellungen ab ihrer nächsten Anfrage.", + "drawer.seed": "Seed", + "drawer.seedNote": "leer = zufällig", + "drawer.share": "Auch für andere Apps verwenden", + "drawer.shareNote": "omp und andere API-Clients bekommen diese Einstellungen für alles, was sie nicht selbst festlegen", + "drawer.short": "Einstellungen", + "drawer.showThinking": "Denken anzeigen", + "drawer.showThinkingNote": "aufgeklappt, solange es schreibt", + "drawer.temperature": "Temperatur", + "drawer.temperatureNote": "0 = immer das wahrscheinlichste Wort (exakt, wiederholbar)", + "drawer.thinkHigh": "gründlich (Standard)", + "drawer.thinkLow": "kurz", + "drawer.thinkMedium": "mittel", + "drawer.thinkNone": "antwortet sofort", + "drawer.thinking": "Denken", + "drawer.title": "Chat-Einstellungen", + "drawer.untilDone": "Bis fertig", + "export.nothing": "Noch nichts zu speichern", + "file.big": "Datei zu groß", + "file.bigText": "{name} ist größer als 512 KB.", + "file.binaryText": "{name} sieht nach einer Binärdatei aus.", + "file.notText": "Keine Textdatei", + "file.notTextOnly": "{name}: Hängen Sie Textdateien an (Code, Notizen, Protokolle, Daten).", + "file.notTextPictures": "{name}: Hängen Sie Textdateien (Code, Notizen, Protokolle, Daten) oder Bilder an.", + "file.pasted": "eingefügtes Bild", + "file.pictureBig": "Bild zu groß", + "file.pictureBigText": "{name} ist größer als 20 MB.", + "file.picturesOff": "Bilder sind aus", + "file.picturesOffText": "Dieses Modell wurde nur für Text eingerichtet.", + "file.remove": "Entfernen", + "group.month": "Letzte 30 Tage", + "group.older": "Älter", + "group.today": "Heute", + "group.week": "Letzte 7 Tage", + "group.yesterday": "Gestern", + "hist.editAnswer": "Antwort bearbeiten", + "hist.editAnswerTitle": "Den Text der Antwort korrigieren. Es wird keine Anfrage gesendet.", + "hist.editLabel": "Antwort bearbeiten", + "hist.editNote": "Das bisherige Denken und die Werkzeugaufrufe der Antwort werden entfernt. Es wird keine Anfrage gesendet.", + "hist.editRemoves": {"one": "Speichern blendet die {n} Nachricht danach aus. ", "other": "Speichern blendet die {n} Nachrichten danach aus. "}, + "hist.edited": "Bearbeitet", + "hist.editedHidden": {"one": "Antwort bearbeitet, {n} Nachricht ausgeblendet", "other": "Antwort bearbeitet, {n} Nachrichten ausgeblendet"}, + "hist.editedOnly": "Antwort bearbeitet", + "hist.empty": "Die Antwort ist leer", + "hist.emptyText": "Schreiben Sie etwas, bevor Sie speichern.", + "hist.finishFirst": "Schließen Sie zuerst ab, was offen ist", + "hist.finishFirstText": "Speichern Sie es oder drücken Sie Abbrechen.", + "hist.hidden": {"one": "{n} Nachricht ausgeblendet", "other": "{n} Nachrichten ausgeblendet"}, + "hist.lostText": "Dieser Browser hat nur die Namen behalten, nicht den Inhalt. Starten Sie einen neuen Chat und hängen Sie sie erneut an.", + "hist.lostText2": "Dieser Browser hat nur die Namen behalten, nicht den Inhalt. Hängen Sie sie erneut an.", + "hist.lostTitle": "Anhänge müssen erneut hinzugefügt werden", + "hist.nothingHidden": "Zurück bei dieser Nachricht", + "hist.pendingFirst": "Eine Nachricht wartet", + "hist.pendingFirstText": "Senden Sie sie oder nehmen Sie sie zuerst zurück.", + "hist.regenerate": "Neu erzeugen", + "hist.regenerateTitle": "Eine neue Antwort auf diese Frage verlangen. Werkzeuge können erneut laufen.", + "hist.replaced": "Die Antwort wurde ersetzt", + "hist.rewind": "Bis hier zurückgehen", + "hist.rewindTitle": "Zu diesem Punkt im Chat zurückgehen", + "hist.save": "Speichern", + "math.source": "Formelquelltext ({reason})", + "model.alreadyUnloaded": "Bereits entladen", + "model.busy": "Das Modell ist beschäftigt", + "model.confirmUnload": "Das Modell entladen und die GPU freigeben? Laden oder die nächste Nachricht holt es zurück.", + "model.fewMinutes": "Das kann einige Minuten dauern.", + "model.gpuFree": "Die GPU ist frei. Laden oder die nächste Nachricht holt das Modell zurück.", + "model.gpuInUse": "Die GPU wird genutzt.", + "model.imageBusy": "Ein Bild wird erzeugt. Es wird von selbst fertig.", + "model.imageLoading": "Ein Bild lädt das Modell bereits", + "model.imageLoadingDot": "Ein Bild lädt das Modell bereits.", + "model.load": "Laden", + "model.loadFailed": "Laden fehlgeschlagen", + "model.loadTitle": "Das Modell jetzt laden. Eine Nachricht lädt es auch.", + "model.loaded": "Modell geladen", + "model.loading": "Lädt…", + "model.loadingTitle": "Das Modell wird geladen", + "model.loadingToast": "Das Modell wird geladen", + "model.noAnswer": "Der Server hat nicht geantwortet.", + "model.replyLoading": "Eine Antwort lädt das Modell bereits", + "model.replyLoadingDot": "Eine Antwort lädt das Modell bereits.", + "model.stopFirst": "Antwort stoppen, dann entladen", + "model.stopFirstDot": "Stoppen Sie die Antwort, dann entladen.", + "model.unload": "Entladen", + "model.unloadFailed": "Entladen fehlgeschlagen", + "model.unloadTitle": "Das Modell entladen und die GPU freigeben", + "model.unloaded": "Modell entladen", + "model.unloading": "Entlädt…", + "model.unloadingTitle": "Das Modell wird entladen", + "model.unsupported": "Entladen ist nicht verfügbar", + "model.waiting": "Warte auf den Server", + "pending.afterTool": "Wartet, bis das Werkzeug fertig ist, dann wird gesendet: „{text}“", + "pending.cutting": "Die Antwort wird gestoppt, dann wird gesendet: „{text}“", + "pending.one": "Eine Nachricht wartet bereits", + "pending.oneText": "Nehmen Sie sie zurück oder warten Sie, bis sie gesendet ist.", + "pending.queued": "Wird gesendet, wenn diese Antwort fertig ist: „{text}“", + "pending.ready": "Noch nicht gesendet: „{text}“", + "pending.send": "Senden", + "pending.sendNow": "Jetzt senden", + "pending.takeBack": "Zurücknehmen", + "pill.connecting": "Verbinde…", + "pill.generating": "Schreibt · {rate} Tok/s", + "pill.idle": "Leerlauf", + "pill.image": "Erzeugt ein Bild…", + "pill.keyNeeded": "API-Schlüssel nötig", + "pill.queued": "{n} in der Warteschlange", + "pill.reading": "Liest die Eingabe", + "pill.readingPct": "Liest die Eingabe · {pct} %", + "pill.unloaded": "Entladen", + "pill.unreachable": "Server nicht erreichbar", + "preview.confirm": "Diesen Code mit Skripten ausführen?\n\nEr läuft in Ihrem Browser, abgeschottet von diesem Chat und vom Netzwerk, kann aber den Tab trotzdem einfrieren, und es ist Code, den das Modell geschrieben hat.\n\nNur dieser Block, und nur bis Sie die Vorschau schließen.", + "preview.runScripts": "Skripte ausführen", + "preview.showCode": "Den Code zeigen", + "preview.showPage": "Die Seite in der Vorschau zeigen", + "preview.showSvg": "Das Bild in der Vorschau zeigen", + "preview.stopScripts": "Skripte beenden", + "preview.titlePage": "Seitenvorschau", + "preview.titleSvg": "Bildvorschau", + "rewind.branch": "Ab hier verzweigen", + "rewind.branchAnswerText": "Startet einen neuen Chat mit den Nachrichten bis zu dieser Antwort. Dieser Chat bleibt, wie er ist.", + "rewind.branchUserText": "Startet einen neuen Chat mit den Nachrichten vor dieser und legt Ihre Nachricht in sein Eingabefeld. Dieser Chat bleibt, wie er ist.", + "rewind.hereAnswer": "Ab hier weitermachen", + "rewind.hereAnswerText": "Blendet die Nachrichten nach dieser Antwort aus. Rückgängig holt sie zurück.", + "rewind.hereUser": "Hier bearbeiten und erneut senden", + "rewind.hereUserText": "Blendet diese Nachricht und die danach aus und legt Ihre Nachricht ins Eingabefeld unten. Rückgängig holt sie zurück.", + "rewind.noList": "Um stattdessen von hier einen neuen Chat zu starten, schalten Sie in den Chat-Einstellungen die Liste gespeicherter Chats ein.", + "rewind.title": "Bis hier zurückgehen", + "settings.language": "Sprache", + "settings.languageNote": "Chat, seine Einstellungen und die Schaltflächen oben sind übersetzt. Die Ansichten Monitor, Bilder und Info sind noch auf Englisch.", + "sidebar.collapse": "Die Chatliste einklappen", + "sidebar.delete": "Diesen Chat löschen", + "sidebar.deleteShort": "Löschen", + "sidebar.expand": "Die Chatliste öffnen", + "sidebar.foot": {"one": "{n} Chat · in diesem Browser gespeichert", "other": "{n} Chats · in diesem Browser gespeichert"}, + "sidebar.nameFor": "Name für diesen Chat", + "sidebar.noMatch": "Kein Chat passt", + "sidebar.none": "Noch keine Chats", + "sidebar.rename": "Diesen Chat umbenennen", + "sidebar.renameShort": "Umbenennen", + "sidebar.search": "Chats durchsuchen", + "sidebar.title": "Chats", + "store.failed": "Die Chatliste konnte nicht gespeichert werden. Die Chats auf dem Bildschirm sind noch da.", + "store.memory": "Dieser Browser behält die Chatliste nicht. Sie bleibt im Speicher, bis Sie die Seite schließen.", + "store.quota": "Dieser Browser kann nicht mehr behalten. Die Chats auf dem Bildschirm sind noch da.", + "store.title": "Chatliste nicht gespeichert", + "tab.about": "Info", + "tab.chat": "Chat", + "tab.images": "Bilder", + "tab.monitor": "Monitor", + "tab.views": "Ansichten", + "theme.label": "Zwischen hell und dunkel wechseln", + "theme.title": "Hell / Dunkel", + "think.done": "Gedanken", + "think.for": "Nachgedacht: {s} s", + "think.now": "Denkt nach…", + "toast.copied": "In die Zwischenablage kopiert", + "toast.engineError": "die Engine hat einen Fehler gemeldet", + "toast.httpAnswer": "Der Server antwortete mit HTTP {code}.", + "toast.keyAbout": "Dieser Server braucht einen Schlüssel: Tragen Sie ihn unter Info > Einstellungen ein.", + "toast.keyAbout2": "API-Schlüssel nötig: Tragen Sie ihn unter Info > Einstellungen ein.", + "toast.keyNeeded": "Dieser Server braucht einen API-Schlüssel: Tragen Sie ihn unter Info > Einstellungen ein.", + "toast.requestFailed": "Die Anfrage ist fehlgeschlagen", + "tool.arguments": "Argumente", + "tool.beingWritten": "(wird geschrieben)", + "tool.chars": "{n} Zeichen", + "tool.cut": ", für das Modell gekürzt", + "tool.done": "Fertig", + "tool.error": "Fehler", + "tool.result": "Ergebnis", + "tool.running": "Läuft", + "tool.skipped": "Nicht ausgeführt", + "tool.writing": "Schreibt", + "undo": "Rückgängig" +} diff --git a/serve/web/locales/en.json b/serve/web/locales/en.json new file mode 100644 index 00000000..adcd6fd2 --- /dev/null +++ b/serve/web/locales/en.json @@ -0,0 +1,264 @@ +{ + "branch.back": "Back to it", + "branch.from": "Branched from “{title}”", + "branch.open": "Open the original", + "branch.started": "Branch started", + "branch.startedText": "The chat you were in is unchanged, in the list on the left.", + "branch.title": "Branch of {title}", + "busy.stillWriting": "Still writing", + "busy.stopFirst": "Stop the answer first.", + "cancel": "Cancel", + "chat.clearedToast": "The last one was cleared.", + "chat.copy": "Copy", + "chat.copyAnswer": "Copy the answer", + "chat.deleted": "Chat deleted", + "chat.empty": "Ask anything", + "chat.emptyModel": "{model} runs on this PC. Nothing leaves it.", + "chat.image": "image", + "chat.interrupted": "Interrupted", + "chat.interruptedLower": "interrupted", + "chat.new": "New chat", + "chat.newToast": "New chat", + "chat.newToastText": "The one you were in is in the list on the left.", + "chat.projectionOff": "projection off", + "chat.projectionOn": "projection on", + "chat.stopped": "Stopped", + "chat.stoppedLower": "stopped", + "chat.tokens": "{n} tokens", + "chat.toolCalls": { + "one": "{n} tool call", + "other": "{n} tool calls" + }, + "chat.toolLimit": "stopped at the limit of {n} tool rounds (mcp.max_rounds)", + "chat.untitled": "New chat", + "chat.you": "You", + "close": "Close", + "code.copy": "Copy code", + "code.label": "code", + "composer.attach": "Attach a text file (or drop it here)", + "composer.attachLabel": "Attach a file", + "composer.attachPictures": "Attach a text file or a picture (or drop it here)", + "composer.finishOpen": "Save or cancel what is open above to continue", + "composer.hintInterject": "Enter stops the answer here and sends now", + "composer.hintQueue": "Enter sends when the answer is done", + "composer.message": "Message", + "composer.newline": "Shift+Enter: new line", + "composer.placeholder": "Ask anything…", + "composer.save": "Save this chat as Markdown", + "composer.saveLabel": "Save this chat", + "composer.send": "Send", + "composer.stop": "Stop", + "drawer.apply": "Apply", + "drawer.busy": "When you send while it is answering", + "drawer.busyInterject": "Interrupt", + "drawer.busyInterjectNote": "The answer stops where it is (what is written stays) and your message goes at once. A tool that is running finishes first.", + "drawer.busyQueue": "Send after", + "drawer.busyQueueNote": "Your message waits and goes as soon as the answer is done.", + "drawer.busyWait": "Wait", + "drawer.busyWaitNote": "Send is off until the answer is done, as before.", + "drawer.chats": "Chats", + "drawer.edit": "Edit and rewind messages", + "drawer.editNote": "edit an answer, ask for a new one, or go back to an earlier message (with an Undo)", + "drawer.greedy": "0 · greedy", + "drawer.high": "High", + "drawer.list": "Saved chats list", + "drawer.listNote": "keeps every chat in a list on the left, in this browser only. Off: one chat, as before", + "drawer.low": "Low", + "drawer.math": "Render math", + "drawer.mathNote": "draw equations in answers as formulas (works offline)", + "drawer.maxTokens": "Max tokens", + "drawer.maxTokensNote": "empty = until done", + "drawer.mcp": "Use tools from MCP servers", + "drawer.medium": "Medium", + "drawer.off": "Off", + "drawer.random": "Random", + "drawer.reset": "Reset", + "drawer.saved": "Chat settings saved", + "drawer.savedGreedy": "Greedy: the same question gives the same answer.", + "drawer.savedHere": "Saved here, but not for other apps", + "drawer.savedOwn": "Other apps use their own settings again.", + "drawer.savedShared": "Other apps (omp, API clients) use these settings from their next request.", + "drawer.seed": "Seed", + "drawer.seedNote": "empty = random", + "drawer.share": "Use for other apps too", + "drawer.shareNote": "omp and other API clients get these settings for anything they do not set themselves", + "drawer.short": "Settings", + "drawer.showThinking": "Show thinking", + "drawer.showThinkingNote": "expanded while it streams", + "drawer.temperature": "Temperature", + "drawer.temperatureNote": "0 = always the most likely word (exact, repeatable)", + "drawer.thinkHigh": "thorough (default)", + "drawer.thinkLow": "short", + "drawer.thinkMedium": "medium", + "drawer.thinkNone": "answers right away", + "drawer.thinking": "Thinking", + "drawer.title": "Chat settings", + "drawer.untilDone": "Until done", + "export.nothing": "Nothing to save yet", + "file.big": "File too large", + "file.bigText": "{name} is over 512 KB.", + "file.binaryText": "{name} looks like a binary file.", + "file.notText": "Not a text file", + "file.notTextOnly": "{name}: attach text files (code, notes, logs, data).", + "file.notTextPictures": "{name}: attach text files (code, notes, logs, data) or pictures.", + "file.pasted": "pasted image", + "file.pictureBig": "Picture too large", + "file.pictureBigText": "{name} is over 20 MB.", + "file.picturesOff": "Pictures are off", + "file.picturesOffText": "This model was set up for text only.", + "file.remove": "Remove", + "group.month": "Previous 30 days", + "group.older": "Older", + "group.today": "Today", + "group.week": "Previous 7 days", + "group.yesterday": "Yesterday", + "hist.editAnswer": "Edit answer", + "hist.editAnswerTitle": "Correct the answer's text. No request is sent.", + "hist.editLabel": "Edit the answer", + "hist.editNote": "The answer's old thinking and tool calls are removed. No request is sent.", + "hist.editRemoves": { + "one": "Saving hides the {n} message after it. ", + "other": "Saving hides the {n} messages after it. " + }, + "hist.edited": "Edited", + "hist.editedHidden": { + "one": "Answer edited, {n} message hidden", + "other": "Answer edited, {n} messages hidden" + }, + "hist.editedOnly": "Answer edited", + "hist.empty": "The answer is empty", + "hist.emptyText": "Write something before saving.", + "hist.finishFirst": "Finish what is open first", + "hist.finishFirstText": "Save it or press Cancel.", + "hist.hidden": { + "one": "{n} message hidden", + "other": "{n} messages hidden" + }, + "hist.lostText": "This browser kept their names, not their contents. Start a new chat and attach them again.", + "hist.lostText2": "This browser kept their names, not their contents. Attach them again.", + "hist.lostTitle": "Attachments need to be added again", + "hist.nothingHidden": "Back at this message", + "hist.pendingFirst": "A message is waiting", + "hist.pendingFirstText": "Send it or take it back first.", + "hist.regenerate": "Regenerate", + "hist.regenerateTitle": "Ask for a new answer to this question. Tools may run again.", + "hist.replaced": "The answer was replaced", + "hist.rewind": "Rewind to here", + "hist.rewindTitle": "Go back to this point in the chat", + "hist.save": "Save", + "math.source": "Math source ({reason})", + "model.alreadyUnloaded": "Already unloaded", + "model.busy": "Model is busy", + "model.confirmUnload": "Unload the model and free the GPU? Load, or the next message, brings it back.", + "model.fewMinutes": "This can take a few minutes.", + "model.gpuFree": "The GPU is free. Load, or the next message, brings it back.", + "model.gpuInUse": "The GPU is in use.", + "model.imageBusy": "An image is generating. It finishes on its own.", + "model.imageLoading": "An image is already loading the model", + "model.imageLoadingDot": "An image is already loading the model.", + "model.load": "Load", + "model.loadFailed": "Load failed", + "model.loadTitle": "Load the model now. A message also loads it.", + "model.loaded": "Model loaded", + "model.loading": "Loading…", + "model.loadingTitle": "The model is loading", + "model.loadingToast": "Loading the model", + "model.noAnswer": "The server did not answer.", + "model.replyLoading": "A reply is already loading the model", + "model.replyLoadingDot": "A reply is already loading the model.", + "model.stopFirst": "Stop the reply, then unload", + "model.stopFirstDot": "Stop the reply, then unload.", + "model.unload": "Unload", + "model.unloadFailed": "Unload failed", + "model.unloadTitle": "Unload the model and free the GPU", + "model.unloaded": "Model unloaded", + "model.unloading": "Unloading…", + "model.unloadingTitle": "The model is unloading", + "model.unsupported": "Unload is not available", + "model.waiting": "Waiting for the server", + "pending.afterTool": "Waiting for the tool to finish, then sending: “{text}”", + "pending.cutting": "Stopping the answer, then sending: “{text}”", + "pending.one": "A message is already waiting", + "pending.oneText": "Take it back or wait until it is sent.", + "pending.queued": "Sends when this answer is done: “{text}”", + "pending.ready": "Not sent yet: “{text}”", + "pending.send": "Send", + "pending.sendNow": "Send now", + "pending.takeBack": "Take back", + "pill.connecting": "Connecting…", + "pill.generating": "Generating · {rate} tok/s", + "pill.idle": "Idle", + "pill.image": "Generating image…", + "pill.keyNeeded": "API key needed", + "pill.queued": "{n} queued", + "pill.reading": "Reading prompt", + "pill.readingPct": "Reading prompt · {pct}%", + "pill.unloaded": "Unloaded", + "pill.unreachable": "Server not reachable", + "preview.confirm": "Run this code with scripts?\n\nIt runs in your browser, cut off from this chat and from the network, but it can still freeze the tab, and it is code the model wrote.\n\nOnly this block, and only until you close the preview.", + "preview.runScripts": "Run scripts", + "preview.showCode": "Show the code", + "preview.showPage": "Preview the page", + "preview.showSvg": "Preview the picture", + "preview.stopScripts": "Stop scripts", + "preview.titlePage": "Page preview", + "preview.titleSvg": "Picture preview", + "rewind.branch": "Branch from here", + "rewind.branchAnswerText": "Starts a new chat with the messages up to this answer. This chat stays as it is.", + "rewind.branchUserText": "Starts a new chat with the messages before this one, and puts your message in its box. This chat stays as it is.", + "rewind.hereAnswer": "Continue from here", + "rewind.hereAnswerText": "Hides the messages after this answer. Undo brings them back.", + "rewind.hereUser": "Edit and send again here", + "rewind.hereUserText": "Hides this message and the ones after it, and puts your message in the box below. Undo brings them back.", + "rewind.noList": "To start a new chat from here instead, turn on Saved chats in Chat settings.", + "rewind.title": "Rewind to here", + "settings.language": "Language", + "settings.languageNote": "Chat, its settings and the buttons above are translated. The Monitor, Images and About views are still in English.", + "sidebar.collapse": "Collapse the chat list", + "sidebar.delete": "Delete this chat", + "sidebar.deleteShort": "Delete", + "sidebar.expand": "Open the chat list", + "sidebar.foot": { + "one": "{n} chat · kept in this browser", + "other": "{n} chats · kept in this browser" + }, + "sidebar.nameFor": "Name for this chat", + "sidebar.noMatch": "No chat matches", + "sidebar.none": "No chats yet", + "sidebar.rename": "Rename this chat", + "sidebar.renameShort": "Rename", + "sidebar.search": "Search chats", + "sidebar.title": "Chats", + "store.failed": "The chat list could not be saved. The chats on the screen are still there.", + "store.memory": "This browser will not keep the chat list. It stays in memory until you close the page.", + "store.quota": "This browser cannot keep more. The chats on the screen are still there.", + "store.title": "Chat list not saved", + "tab.about": "About", + "tab.chat": "Chat", + "tab.images": "Images", + "tab.monitor": "Monitor", + "tab.views": "Views", + "theme.label": "Switch between light and dark", + "theme.title": "Light / dark", + "think.done": "Thoughts", + "think.for": "Thought for {s} s", + "think.now": "Thinking…", + "toast.copied": "Copied to clipboard", + "toast.engineError": "the engine reported an error", + "toast.httpAnswer": "The server answered HTTP {code}.", + "toast.keyAbout": "This server needs a key: add it under About > Settings.", + "toast.keyAbout2": "API key needed: add it under About > Settings.", + "toast.keyNeeded": "This server needs an API key: add it under About > Settings.", + "toast.requestFailed": "The request failed", + "tool.arguments": "Arguments", + "tool.beingWritten": "(being written)", + "tool.chars": "{n} characters", + "tool.cut": ", cut for the model", + "tool.done": "Done", + "tool.error": "Error", + "tool.result": "Result", + "tool.running": "Running", + "tool.skipped": "Not run", + "tool.writing": "Writing", + "undo": "Undo" +} diff --git a/serve/web/locales/es.json b/serve/web/locales/es.json new file mode 100644 index 00000000..9f9a2429 --- /dev/null +++ b/serve/web/locales/es.json @@ -0,0 +1,249 @@ +{ + "branch.back": "Volver a ella", + "branch.from": "Rama creada desde «{title}»", + "branch.open": "Abrir la original", + "branch.started": "Rama creada", + "branch.startedText": "El chat en el que estabas no ha cambiado; está en la lista de la izquierda.", + "branch.title": "Rama de {title}", + "busy.stillWriting": "Todavía está escribiendo", + "busy.stopFirst": "Detén primero la respuesta.", + "cancel": "Cancelar", + "chat.clearedToast": "Se vació el último chat.", + "chat.copy": "Copiar", + "chat.copyAnswer": "Copiar la respuesta", + "chat.deleted": "Chat eliminado", + "chat.empty": "Pregunta lo que quieras", + "chat.emptyModel": "{model} se ejecuta en este PC. Nada sale de él.", + "chat.image": "imagen", + "chat.interrupted": "Interrumpida", + "chat.interruptedLower": "interrumpida", + "chat.new": "Nuevo chat", + "chat.newToast": "Nuevo chat", + "chat.newToastText": "El chat anterior está en la lista de la izquierda.", + "chat.projectionOff": "proyección desactivada", + "chat.projectionOn": "proyección activada", + "chat.stopped": "Detenida", + "chat.stoppedLower": "detenida", + "chat.tokens": "{n} tokens", + "chat.toolCalls": {"one": "{n} llamada a herramienta", "other": "{n} llamadas a herramientas"}, + "chat.toolLimit": "detenida en el límite de {n} rondas de herramientas (mcp.max_rounds)", + "chat.untitled": "Nuevo chat", + "chat.you": "Tú", + "close": "Cerrar", + "code.copy": "Copiar el código", + "code.label": "código", + "composer.attach": "Adjuntar un archivo de texto (o soltarlo aquí)", + "composer.attachLabel": "Adjuntar un archivo", + "composer.attachPictures": "Adjuntar un archivo de texto o una imagen (o soltarlos aquí)", + "composer.finishOpen": "Guarda o cancela lo que está abierto arriba para continuar", + "composer.hintInterject": "Intro detiene la respuesta aquí y envía ahora", + "composer.hintQueue": "Intro envía cuando termine la respuesta", + "composer.message": "Mensaje", + "composer.newline": "Mayús+Intro: nueva línea", + "composer.placeholder": "Pregunta lo que quieras…", + "composer.save": "Guardar este chat como Markdown", + "composer.saveLabel": "Guardar este chat", + "composer.send": "Enviar", + "composer.stop": "Detener", + "drawer.apply": "Aplicar", + "drawer.busy": "Si envías mientras responde", + "drawer.busyInterject": "Interrumpir", + "drawer.busyInterjectNote": "La respuesta se detiene donde está (lo escrito se queda) y tu mensaje sale enseguida. Una herramienta en marcha termina primero.", + "drawer.busyQueue": "Enviar después", + "drawer.busyQueueNote": "Tu mensaje espera y sale en cuanto termine la respuesta.", + "drawer.busyWait": "Esperar", + "drawer.busyWaitNote": "Enviar está desactivado hasta que termine la respuesta, como antes.", + "drawer.chats": "Chats", + "drawer.edit": "Editar y rebobinar mensajes", + "drawer.editNote": "editar una respuesta, pedir otra nueva o volver a un mensaje anterior (con Deshacer)", + "drawer.greedy": "0 · determinista", + "drawer.high": "Alto", + "drawer.list": "Lista de chats guardados", + "drawer.listNote": "guarda cada chat en una lista a la izquierda, solo en este navegador. Desactivado: un solo chat, como antes", + "drawer.low": "Bajo", + "drawer.math": "Mostrar fórmulas", + "drawer.mathNote": "dibuja las ecuaciones de las respuestas como fórmulas (funciona sin conexión)", + "drawer.maxTokens": "Máx. de tokens", + "drawer.maxTokensNote": "vacío = hasta terminar", + "drawer.mcp": "Usar herramientas de servidores MCP", + "drawer.medium": "Medio", + "drawer.off": "No", + "drawer.random": "Aleatoria", + "drawer.reset": "Restablecer", + "drawer.saved": "Ajustes del chat guardados", + "drawer.savedGreedy": "Determinista: la misma pregunta da la misma respuesta.", + "drawer.savedHere": "Guardado aquí, pero no para otras apps", + "drawer.savedOwn": "Las otras apps vuelven a usar sus propios ajustes.", + "drawer.savedShared": "Las otras apps (omp, clientes de la API) usan estos ajustes desde su próxima solicitud.", + "drawer.seed": "Semilla", + "drawer.seedNote": "vacío = aleatoria", + "drawer.share": "Usar también para otras apps", + "drawer.shareNote": "omp y otros clientes de la API reciben estos ajustes para todo lo que no definan ellos mismos", + "drawer.short": "Ajustes", + "drawer.showThinking": "Mostrar el razonamiento", + "drawer.showThinkingNote": "desplegado mientras se escribe", + "drawer.temperature": "Temperatura", + "drawer.temperatureNote": "0 = siempre la palabra más probable (exacto, repetible)", + "drawer.thinkHigh": "a fondo (predeterminado)", + "drawer.thinkLow": "breve", + "drawer.thinkMedium": "medio", + "drawer.thinkNone": "responde enseguida", + "drawer.thinking": "Razonamiento", + "drawer.title": "Ajustes del chat", + "drawer.untilDone": "Hasta terminar", + "export.nothing": "Todavía no hay nada que guardar", + "file.big": "Archivo demasiado grande", + "file.bigText": "{name} supera los 512 KB.", + "file.binaryText": "{name} parece un archivo binario.", + "file.notText": "No es un archivo de texto", + "file.notTextOnly": "{name}: adjunta archivos de texto (código, notas, registros, datos).", + "file.notTextPictures": "{name}: adjunta archivos de texto (código, notas, registros, datos) o imágenes.", + "file.pasted": "imagen pegada", + "file.pictureBig": "Imagen demasiado grande", + "file.pictureBigText": "{name} supera los 20 MB.", + "file.picturesOff": "Las imágenes están desactivadas", + "file.picturesOffText": "Este modelo se configuró solo para texto.", + "file.remove": "Quitar", + "group.month": "Últimos 30 días", + "group.older": "Más antiguos", + "group.today": "Hoy", + "group.week": "Últimos 7 días", + "group.yesterday": "Ayer", + "hist.editAnswer": "Editar respuesta", + "hist.editAnswerTitle": "Corrige el texto de la respuesta. No se envía ninguna solicitud.", + "hist.editLabel": "Editar la respuesta", + "hist.editNote": "Se quitan el razonamiento y las llamadas a herramientas anteriores de la respuesta. No se envía ninguna solicitud.", + "hist.editRemoves": {"one": "Al guardar se oculta el {n} mensaje posterior. ", "other": "Al guardar se ocultan los {n} mensajes posteriores. "}, + "hist.edited": "Editada", + "hist.editedHidden": {"one": "Respuesta editada, {n} mensaje oculto", "other": "Respuesta editada, {n} mensajes ocultos"}, + "hist.editedOnly": "Respuesta editada", + "hist.empty": "La respuesta está vacía", + "hist.emptyText": "Escribe algo antes de guardar.", + "hist.finishFirst": "Termina primero lo que está abierto", + "hist.finishFirstText": "Guárdalo o pulsa Cancelar.", + "hist.hidden": {"one": "{n} mensaje oculto", "other": "{n} mensajes ocultos"}, + "hist.lostText": "Este navegador guardó los nombres, no el contenido. Empieza un chat nuevo y adjúntalos de nuevo.", + "hist.lostText2": "Este navegador guardó los nombres, no el contenido. Adjúntalos de nuevo.", + "hist.lostTitle": "Hay que volver a adjuntar los archivos", + "hist.nothingHidden": "De vuelta en este mensaje", + "hist.pendingFirst": "Hay un mensaje esperando", + "hist.pendingFirstText": "Envíalo o recupéralo primero.", + "hist.regenerate": "Regenerar", + "hist.regenerateTitle": "Pedir una respuesta nueva a esta pregunta. Las herramientas pueden volver a ejecutarse.", + "hist.replaced": "Se reemplazó la respuesta", + "hist.rewind": "Volver hasta aquí", + "hist.rewindTitle": "Volver a este punto del chat", + "hist.save": "Guardar", + "math.source": "Código de la fórmula ({reason})", + "model.alreadyUnloaded": "Ya estaba descargado", + "model.busy": "El modelo está ocupado", + "model.confirmUnload": "¿Descargar el modelo y liberar la GPU? Cargar, o el siguiente mensaje, lo devuelve.", + "model.fewMinutes": "Puede tardar unos minutos.", + "model.gpuFree": "La GPU está libre. Cargar, o el siguiente mensaje, devuelve el modelo.", + "model.gpuInUse": "La GPU está en uso.", + "model.imageBusy": "Se está generando una imagen. Terminará por sí sola.", + "model.imageLoading": "Una imagen ya está cargando el modelo", + "model.imageLoadingDot": "Una imagen ya está cargando el modelo.", + "model.load": "Cargar", + "model.loadFailed": "No se pudo cargar", + "model.loadTitle": "Cargar el modelo ahora. Un mensaje también lo carga.", + "model.loaded": "Modelo cargado", + "model.loading": "Cargando…", + "model.loadingTitle": "El modelo se está cargando", + "model.loadingToast": "Cargando el modelo", + "model.noAnswer": "El servidor no respondió.", + "model.replyLoading": "Una respuesta ya está cargando el modelo", + "model.replyLoadingDot": "Una respuesta ya está cargando el modelo.", + "model.stopFirst": "Detén la respuesta y luego descarga", + "model.stopFirstDot": "Detén la respuesta y luego descarga.", + "model.unload": "Descargar", + "model.unloadFailed": "No se pudo descargar", + "model.unloadTitle": "Descargar el modelo y liberar la GPU", + "model.unloaded": "Modelo descargado", + "model.unloading": "Descargando…", + "model.unloadingTitle": "El modelo se está descargando", + "model.unsupported": "Descargar no está disponible", + "model.waiting": "Esperando al servidor", + "pending.afterTool": "Esperando a que termine la herramienta, luego se envía: «{text}»", + "pending.cutting": "Deteniendo la respuesta, luego se envía: «{text}»", + "pending.one": "Ya hay un mensaje esperando", + "pending.oneText": "Recupéralo o espera a que se envíe.", + "pending.queued": "Se envía cuando termine esta respuesta: «{text}»", + "pending.ready": "Aún no enviado: «{text}»", + "pending.send": "Enviar", + "pending.sendNow": "Enviar ahora", + "pending.takeBack": "Recuperar", + "pill.connecting": "Conectando…", + "pill.generating": "Escribiendo · {rate} tok/s", + "pill.idle": "Inactivo", + "pill.image": "Generando imagen…", + "pill.keyNeeded": "Falta la clave de API", + "pill.queued": "{n} en cola", + "pill.reading": "Leyendo el mensaje", + "pill.readingPct": "Leyendo el mensaje · {pct} %", + "pill.unloaded": "Descargado", + "pill.unreachable": "Servidor no disponible", + "preview.confirm": "¿Ejecutar este código con scripts?\n\nSe ejecuta en tu navegador, aislado de este chat y de la red, pero aun así puede bloquear la pestaña, y es código escrito por el modelo.\n\nSolo este bloque, y solo hasta que cierres la vista previa.", + "preview.runScripts": "Ejecutar scripts", + "preview.showCode": "Mostrar el código", + "preview.showPage": "Vista previa de la página", + "preview.showSvg": "Vista previa de la imagen", + "preview.stopScripts": "Detener scripts", + "preview.titlePage": "Vista previa de la página", + "preview.titleSvg": "Vista previa de la imagen", + "rewind.branch": "Crear una rama desde aquí", + "rewind.branchAnswerText": "Empieza un chat nuevo con los mensajes hasta esta respuesta. Este chat se queda como está.", + "rewind.branchUserText": "Empieza un chat nuevo con los mensajes anteriores a este y pone tu mensaje en su cuadro. Este chat se queda como está.", + "rewind.hereAnswer": "Continuar desde aquí", + "rewind.hereAnswerText": "Oculta los mensajes posteriores a esta respuesta. Deshacer los devuelve.", + "rewind.hereUser": "Editar y volver a enviar aquí", + "rewind.hereUserText": "Oculta este mensaje y los siguientes, y pone tu mensaje en el cuadro de abajo. Deshacer los devuelve.", + "rewind.noList": "Para empezar en su lugar un chat nuevo desde aquí, activa la lista de chats guardados en los ajustes del chat.", + "rewind.title": "Volver hasta aquí", + "settings.language": "Idioma", + "settings.languageNote": "El chat, sus ajustes y los botones de arriba están traducidos. Las vistas Monitor, Imágenes y Acerca de siguen en inglés.", + "sidebar.collapse": "Contraer la lista de chats", + "sidebar.delete": "Eliminar este chat", + "sidebar.deleteShort": "Eliminar", + "sidebar.expand": "Abrir la lista de chats", + "sidebar.foot": {"one": "{n} chat · guardado en este navegador", "other": "{n} chats · guardados en este navegador"}, + "sidebar.nameFor": "Nombre de este chat", + "sidebar.noMatch": "Ningún chat coincide", + "sidebar.none": "Aún no hay chats", + "sidebar.rename": "Cambiar el nombre de este chat", + "sidebar.renameShort": "Cambiar nombre", + "sidebar.search": "Buscar chats", + "sidebar.title": "Chats", + "store.failed": "No se pudo guardar la lista de chats. Los chats de la pantalla siguen ahí.", + "store.memory": "Este navegador no guardará la lista de chats. Se queda en memoria hasta que cierres la página.", + "store.quota": "Este navegador no puede guardar más. Los chats de la pantalla siguen ahí.", + "store.title": "Lista de chats sin guardar", + "tab.about": "Acerca de", + "tab.chat": "Chat", + "tab.images": "Imágenes", + "tab.monitor": "Monitor", + "tab.views": "Vistas", + "theme.label": "Cambiar entre claro y oscuro", + "theme.title": "Claro / oscuro", + "think.done": "Razonamiento", + "think.for": "Pensó durante {s} s", + "think.now": "Pensando…", + "toast.copied": "Copiado al portapapeles", + "toast.engineError": "el motor informó de un error", + "toast.httpAnswer": "El servidor respondió con HTTP {code}.", + "toast.keyAbout": "Este servidor necesita una clave: añádela en Acerca de > Ajustes.", + "toast.keyAbout2": "Falta la clave de API: añádela en Acerca de > Ajustes.", + "toast.keyNeeded": "Este servidor necesita una clave de API: añádela en Acerca de > Ajustes.", + "toast.requestFailed": "La solicitud falló", + "tool.arguments": "Argumentos", + "tool.beingWritten": "(se está escribiendo)", + "tool.chars": "{n} caracteres", + "tool.cut": ", recortado para el modelo", + "tool.done": "Hecho", + "tool.error": "Error", + "tool.result": "Resultado", + "tool.running": "En marcha", + "tool.skipped": "No ejecutada", + "tool.writing": "Escribiendo", + "undo": "Deshacer" +} diff --git a/serve/web/locales/ja.json b/serve/web/locales/ja.json new file mode 100644 index 00000000..024050c1 --- /dev/null +++ b/serve/web/locales/ja.json @@ -0,0 +1,249 @@ +{ + "branch.back": "元に戻る", + "branch.from": "「{title}」から分岐", + "branch.open": "元のチャットを開く", + "branch.started": "分岐を作成しました", + "branch.startedText": "元のチャットは変わらず、左の一覧にあります。", + "branch.title": "{title} の分岐", + "busy.stillWriting": "まだ書き込み中です", + "busy.stopFirst": "先に回答を停止してください。", + "cancel": "キャンセル", + "chat.clearedToast": "前のチャットを消去しました。", + "chat.copy": "コピー", + "chat.copyAnswer": "回答をコピー", + "chat.deleted": "チャットを削除しました", + "chat.empty": "なんでも聞いてください", + "chat.emptyModel": "{model} はこの PC で動いています。外部には何も送られません。", + "chat.image": "画像", + "chat.interrupted": "中断しました", + "chat.interruptedLower": "中断", + "chat.new": "新しいチャット", + "chat.newToast": "新しいチャット", + "chat.newToastText": "前のチャットは左の一覧にあります。", + "chat.projectionOff": "プロジェクションオフ", + "chat.projectionOn": "プロジェクションオン", + "chat.stopped": "停止しました", + "chat.stoppedLower": "停止", + "chat.tokens": "{n} トークン", + "chat.toolCalls": {"other": "ツール呼び出し {n} 回"}, + "chat.toolLimit": "ツールのラウンド上限 {n} 回で停止 (mcp.max_rounds)", + "chat.untitled": "新しいチャット", + "chat.you": "あなた", + "close": "閉じる", + "code.copy": "コードをコピー", + "code.label": "コード", + "composer.attach": "テキストファイルを添付 (ここにドロップも可)", + "composer.attachLabel": "ファイルを添付", + "composer.attachPictures": "テキストファイルまたは画像を添付 (ここにドロップも可)", + "composer.finishOpen": "続けるには、上で開いているものを保存するかキャンセルしてください", + "composer.hintInterject": "Enter で回答をここで止めてすぐに送信します", + "composer.hintQueue": "Enter で回答が終わってから送信します", + "composer.message": "メッセージ", + "composer.newline": "Shift+Enter: 改行", + "composer.placeholder": "なんでも聞いてください…", + "composer.save": "このチャットを Markdown で保存", + "composer.saveLabel": "このチャットを保存", + "composer.send": "送信", + "composer.stop": "停止", + "drawer.apply": "適用", + "drawer.busy": "回答中に送信したとき", + "drawer.busyInterject": "割り込む", + "drawer.busyInterjectNote": "回答はその場で止まり (書かれた分は残ります)、メッセージがすぐ送られます。実行中のツールは先に終わります。", + "drawer.busyQueue": "終了後に送信", + "drawer.busyQueueNote": "メッセージは待機し、回答が終わりしだい送られます。", + "drawer.busyWait": "待つ", + "drawer.busyWaitNote": "回答が終わるまで送信はできません (これまでどおり)。", + "drawer.chats": "チャット", + "drawer.edit": "メッセージの編集と巻き戻し", + "drawer.editNote": "回答の編集、新しい回答の再生成、以前のメッセージへの巻き戻し (元に戻せます)", + "drawer.greedy": "0 · 固定", + "drawer.high": "高", + "drawer.list": "保存したチャットの一覧", + "drawer.listNote": "すべてのチャットを左の一覧に、このブラウザー内だけに保存します。オフ: これまでどおり 1 つのチャット", + "drawer.low": "低", + "drawer.math": "数式を表示", + "drawer.mathNote": "回答の数式を整形して描画します (オフラインで動作)", + "drawer.maxTokens": "最大トークン数", + "drawer.maxTokensNote": "空欄 = 最後まで", + "drawer.mcp": "MCP サーバーのツールを使う", + "drawer.medium": "中", + "drawer.off": "オフ", + "drawer.random": "ランダム", + "drawer.reset": "リセット", + "drawer.saved": "チャット設定を保存しました", + "drawer.savedGreedy": "固定: 同じ質問には同じ回答が返ります。", + "drawer.savedHere": "ここには保存しましたが、他のアプリには反映されません", + "drawer.savedOwn": "他のアプリは再び独自の設定を使います。", + "drawer.savedShared": "他のアプリ (omp、API クライアント) は次のリクエストからこの設定を使います。", + "drawer.seed": "シード", + "drawer.seedNote": "空欄 = ランダム", + "drawer.share": "他のアプリにも使う", + "drawer.shareNote": "omp などの API クライアントが自分で指定しない項目に、この設定が使われます", + "drawer.short": "設定", + "drawer.showThinking": "思考を表示", + "drawer.showThinkingNote": "生成中は開いた状態にします", + "drawer.temperature": "温度", + "drawer.temperatureNote": "0 = 常に最も確率の高い単語 (正確で再現可能)", + "drawer.thinkHigh": "じっくり (既定)", + "drawer.thinkLow": "短め", + "drawer.thinkMedium": "中程度", + "drawer.thinkNone": "すぐに回答", + "drawer.thinking": "思考", + "drawer.title": "チャット設定", + "drawer.untilDone": "最後まで", + "export.nothing": "保存するものがまだありません", + "file.big": "ファイルが大きすぎます", + "file.bigText": "{name} は 512 KB を超えています。", + "file.binaryText": "{name} はバイナリファイルのようです。", + "file.notText": "テキストファイルではありません", + "file.notTextOnly": "{name}: テキストファイル (コード、メモ、ログ、データ) を添付してください。", + "file.notTextPictures": "{name}: テキストファイル (コード、メモ、ログ、データ) または画像を添付してください。", + "file.pasted": "貼り付けた画像", + "file.pictureBig": "画像が大きすぎます", + "file.pictureBigText": "{name} は 20 MB を超えています。", + "file.picturesOff": "画像はオフです", + "file.picturesOffText": "このモデルはテキスト専用に設定されています。", + "file.remove": "削除", + "group.month": "過去 30 日", + "group.older": "それ以前", + "group.today": "今日", + "group.week": "過去 7 日", + "group.yesterday": "昨日", + "hist.editAnswer": "回答を編集", + "hist.editAnswerTitle": "回答の文章を直します。リクエストは送られません。", + "hist.editLabel": "回答を編集", + "hist.editNote": "回答のこれまでの思考とツール呼び出しは削除されます。リクエストは送られません。", + "hist.editRemoves": {"other": "保存すると、これ以降の {n} 件のメッセージが非表示になります。"}, + "hist.edited": "編集済み", + "hist.editedHidden": {"other": "回答を編集しました。{n} 件のメッセージを非表示"}, + "hist.editedOnly": "回答を編集しました", + "hist.empty": "回答が空です", + "hist.emptyText": "保存する前に何か入力してください。", + "hist.finishFirst": "先に開いているものを終えてください", + "hist.finishFirstText": "保存するか、キャンセルを押してください。", + "hist.hidden": {"other": "{n} 件のメッセージを非表示"}, + "hist.lostText": "このブラウザーには名前だけが残り、内容は残っていません。新しいチャットを始めて、もう一度添付してください。", + "hist.lostText2": "このブラウザーには名前だけが残り、内容は残っていません。もう一度添付してください。", + "hist.lostTitle": "添付をもう一度追加してください", + "hist.nothingHidden": "このメッセージまで戻りました", + "hist.pendingFirst": "待機中のメッセージがあります", + "hist.pendingFirstText": "先に送信するか、取り下げてください。", + "hist.regenerate": "再生成", + "hist.regenerateTitle": "この質問に新しい回答を求めます。ツールがもう一度動くことがあります。", + "hist.replaced": "回答を置き換えました", + "hist.rewind": "ここまで戻す", + "hist.rewindTitle": "チャットのこの時点まで戻ります", + "hist.save": "保存", + "math.source": "数式のソース ({reason})", + "model.alreadyUnloaded": "すでに解放済みです", + "model.busy": "モデルは使用中です", + "model.confirmUnload": "モデルを解放して GPU を空けますか?「読み込む」または次のメッセージで元に戻ります。", + "model.fewMinutes": "数分かかることがあります。", + "model.gpuFree": "GPU は空きました。「読み込む」または次のメッセージでモデルが戻ります。", + "model.gpuInUse": "GPU を使用中です。", + "model.imageBusy": "画像を生成中です。自動で終わります。", + "model.imageLoading": "画像がすでにモデルを読み込んでいます", + "model.imageLoadingDot": "画像がすでにモデルを読み込んでいます。", + "model.load": "読み込む", + "model.loadFailed": "読み込みに失敗しました", + "model.loadTitle": "今すぐモデルを読み込みます。メッセージを送っても読み込まれます。", + "model.loaded": "モデルを読み込みました", + "model.loading": "読み込み中…", + "model.loadingTitle": "モデルを読み込んでいます", + "model.loadingToast": "モデルを読み込み中", + "model.noAnswer": "サーバーが応答しませんでした。", + "model.replyLoading": "回答がすでにモデルを読み込んでいます", + "model.replyLoadingDot": "回答がすでにモデルを読み込んでいます。", + "model.stopFirst": "回答を停止してから解放してください", + "model.stopFirstDot": "回答を停止してから解放してください。", + "model.unload": "解放", + "model.unloadFailed": "解放に失敗しました", + "model.unloadTitle": "モデルを解放して GPU を空けます", + "model.unloaded": "モデルを解放しました", + "model.unloading": "解放中…", + "model.unloadingTitle": "モデルを解放しています", + "model.unsupported": "解放は利用できません", + "model.waiting": "サーバーを待っています", + "pending.afterTool": "ツールの終了を待ってから送信します:「{text}」", + "pending.cutting": "回答を止めてから送信します:「{text}」", + "pending.one": "すでに待機中のメッセージがあります", + "pending.oneText": "取り下げるか、送信されるまでお待ちください。", + "pending.queued": "この回答が終わったら送信します:「{text}」", + "pending.ready": "未送信:「{text}」", + "pending.send": "送信", + "pending.sendNow": "今すぐ送信", + "pending.takeBack": "取り下げる", + "pill.connecting": "接続中…", + "pill.generating": "生成中 · {rate} tok/s", + "pill.idle": "待機中", + "pill.image": "画像を生成中…", + "pill.keyNeeded": "API キーが必要です", + "pill.queued": "待機 {n} 件", + "pill.reading": "プロンプトを読み込み中", + "pill.readingPct": "プロンプトを読み込み中 · {pct}%", + "pill.unloaded": "解放済み", + "pill.unreachable": "サーバーに接続できません", + "preview.confirm": "このコードをスクリプト付きで実行しますか?\n\nコードはお使いのブラウザー内で、このチャットとネットワークから隔離されて動きますが、タブがフリーズすることはあります。また、モデルが書いたコードです。\n\nこのブロックだけ、プレビューを閉じるまでの間だけ実行されます。", + "preview.runScripts": "スクリプトを実行", + "preview.showCode": "コードを表示", + "preview.showPage": "ページをプレビュー", + "preview.showSvg": "画像をプレビュー", + "preview.stopScripts": "スクリプトを停止", + "preview.titlePage": "ページのプレビュー", + "preview.titleSvg": "画像のプレビュー", + "rewind.branch": "ここから分岐", + "rewind.branchAnswerText": "この回答までのメッセージで新しいチャットを始めます。このチャットはそのまま残ります。", + "rewind.branchUserText": "このメッセージより前のメッセージで新しいチャットを始め、あなたのメッセージをその入力欄に入れます。このチャットはそのまま残ります。", + "rewind.hereAnswer": "ここから続ける", + "rewind.hereAnswerText": "この回答より後のメッセージを非表示にします。「元に戻す」で戻せます。", + "rewind.hereUser": "ここで編集して再送信", + "rewind.hereUserText": "このメッセージとそれ以降を非表示にし、あなたのメッセージを下の入力欄に入れます。「元に戻す」で戻せます。", + "rewind.noList": "代わりにここから新しいチャットを始めるには、チャット設定で「保存したチャットの一覧」をオンにしてください。", + "rewind.title": "ここまで戻す", + "settings.language": "言語", + "settings.languageNote": "チャットとその設定、上のボタンは翻訳されています。モニター、画像、情報の画面はまだ英語です。", + "sidebar.collapse": "チャット一覧を閉じる", + "sidebar.delete": "このチャットを削除", + "sidebar.deleteShort": "削除", + "sidebar.expand": "チャット一覧を開く", + "sidebar.foot": {"other": "{n} 件のチャット · このブラウザーに保存"}, + "sidebar.nameFor": "このチャットの名前", + "sidebar.noMatch": "一致するチャットはありません", + "sidebar.none": "チャットはまだありません", + "sidebar.rename": "このチャットの名前を変更", + "sidebar.renameShort": "名前を変更", + "sidebar.search": "チャットを検索", + "sidebar.title": "チャット", + "store.failed": "チャット一覧を保存できませんでした。画面上のチャットはそのまま残っています。", + "store.memory": "このブラウザーはチャット一覧を保存しません。ページを閉じるまでメモリ上に残ります。", + "store.quota": "このブラウザーはこれ以上保存できません。画面上のチャットはそのまま残っています。", + "store.title": "チャット一覧は保存されていません", + "tab.about": "情報", + "tab.chat": "チャット", + "tab.images": "画像", + "tab.monitor": "モニター", + "tab.views": "表示", + "theme.label": "ライトとダークを切り替え", + "theme.title": "ライト / ダーク", + "think.done": "思考", + "think.for": "{s} 秒考えました", + "think.now": "考え中…", + "toast.copied": "クリップボードにコピーしました", + "toast.engineError": "エンジンがエラーを報告しました", + "toast.httpAnswer": "サーバーが HTTP {code} で応答しました。", + "toast.keyAbout": "このサーバーにはキーが必要です。「情報」>「設定」で入力してください。", + "toast.keyAbout2": "API キーが必要です。「情報」>「設定」で入力してください。", + "toast.keyNeeded": "このサーバーには API キーが必要です。「情報」>「設定」で入力してください。", + "toast.requestFailed": "リクエストに失敗しました", + "tool.arguments": "引数", + "tool.beingWritten": "(書き込み中)", + "tool.chars": "{n} 文字", + "tool.cut": "、モデル向けに省略", + "tool.done": "完了", + "tool.error": "エラー", + "tool.result": "結果", + "tool.running": "実行中", + "tool.skipped": "未実行", + "tool.writing": "書き込み中", + "undo": "元に戻す" +} diff --git a/serve/web/locales/ko.json b/serve/web/locales/ko.json new file mode 100644 index 00000000..c14f4437 --- /dev/null +++ b/serve/web/locales/ko.json @@ -0,0 +1,249 @@ +{ + "branch.back": "원래 채팅으로", + "branch.from": "“{title}”에서 분기됨", + "branch.open": "원본 열기", + "branch.started": "분기를 만들었습니다", + "branch.startedText": "이전 채팅은 그대로이며 왼쪽 목록에 있습니다.", + "branch.title": "{title}의 분기", + "busy.stillWriting": "아직 작성 중입니다", + "busy.stopFirst": "먼저 답변을 중지하세요.", + "cancel": "취소", + "chat.clearedToast": "지난 채팅을 비웠습니다.", + "chat.copy": "복사", + "chat.copyAnswer": "답변 복사", + "chat.deleted": "채팅을 삭제했습니다", + "chat.empty": "무엇이든 물어보세요", + "chat.emptyModel": "{model}은(는) 이 PC에서 실행됩니다. 밖으로 나가는 것은 없습니다.", + "chat.image": "이미지", + "chat.interrupted": "중단됨", + "chat.interruptedLower": "중단됨", + "chat.new": "새 채팅", + "chat.newToast": "새 채팅", + "chat.newToastText": "이전 채팅은 왼쪽 목록에 있습니다.", + "chat.projectionOff": "프로젝션 꺼짐", + "chat.projectionOn": "프로젝션 켜짐", + "chat.stopped": "중지됨", + "chat.stoppedLower": "중지됨", + "chat.tokens": "토큰 {n}개", + "chat.toolCalls": {"other": "도구 호출 {n}회"}, + "chat.toolLimit": "도구 라운드 한도 {n}회에서 중지됨 (mcp.max_rounds)", + "chat.untitled": "새 채팅", + "chat.you": "나", + "close": "닫기", + "code.copy": "코드 복사", + "code.label": "코드", + "composer.attach": "텍스트 파일 첨부 (여기로 끌어다 놓아도 됩니다)", + "composer.attachLabel": "파일 첨부", + "composer.attachPictures": "텍스트 파일 또는 이미지 첨부 (여기로 끌어다 놓아도 됩니다)", + "composer.finishOpen": "계속하려면 위에 열려 있는 것을 저장하거나 취소하세요", + "composer.hintInterject": "Enter를 누르면 답변을 여기서 멈추고 바로 보냅니다", + "composer.hintQueue": "Enter를 누르면 답변이 끝난 뒤에 보냅니다", + "composer.message": "메시지", + "composer.newline": "Shift+Enter: 줄바꿈", + "composer.placeholder": "무엇이든 물어보세요…", + "composer.save": "이 채팅을 Markdown으로 저장", + "composer.saveLabel": "이 채팅 저장", + "composer.send": "보내기", + "composer.stop": "중지", + "drawer.apply": "적용", + "drawer.busy": "답변 중에 보내면", + "drawer.busyInterject": "중단", + "drawer.busyInterjectNote": "답변이 그 자리에서 멈추고 (쓰인 내용은 남습니다) 메시지가 바로 전송됩니다. 실행 중인 도구는 먼저 끝납니다.", + "drawer.busyQueue": "끝난 뒤 보내기", + "drawer.busyQueueNote": "메시지가 기다렸다가 답변이 끝나는 즉시 전송됩니다.", + "drawer.busyWait": "대기", + "drawer.busyWaitNote": "답변이 끝날 때까지 보내기가 꺼져 있습니다. 이전과 같습니다.", + "drawer.chats": "채팅", + "drawer.edit": "메시지 편집 및 되감기", + "drawer.editNote": "답변을 편집하거나, 새 답변을 요청하거나, 이전 메시지로 되돌아갑니다 (실행 취소 가능)", + "drawer.greedy": "0 · 고정", + "drawer.high": "높음", + "drawer.list": "저장된 채팅 목록", + "drawer.listNote": "모든 채팅을 이 브라우저 안에서만 왼쪽 목록에 보관합니다. 끔: 이전처럼 채팅 하나", + "drawer.low": "낮음", + "drawer.math": "수식 표시", + "drawer.mathNote": "답변의 수식을 공식 형태로 그립니다 (오프라인에서 동작)", + "drawer.maxTokens": "최대 토큰", + "drawer.maxTokensNote": "비우면 끝까지", + "drawer.mcp": "MCP 서버의 도구 사용", + "drawer.medium": "보통", + "drawer.off": "끔", + "drawer.random": "무작위", + "drawer.reset": "초기화", + "drawer.saved": "채팅 설정을 저장했습니다", + "drawer.savedGreedy": "고정: 같은 질문에는 같은 답변이 나옵니다.", + "drawer.savedHere": "여기에는 저장했지만 다른 앱에는 적용되지 않았습니다", + "drawer.savedOwn": "다른 앱이 다시 자체 설정을 사용합니다.", + "drawer.savedShared": "다른 앱 (omp, API 클라이언트)은 다음 요청부터 이 설정을 사용합니다.", + "drawer.seed": "시드", + "drawer.seedNote": "비우면 무작위", + "drawer.share": "다른 앱에도 사용", + "drawer.shareNote": "omp 등 API 클라이언트가 직접 지정하지 않은 항목에 이 설정이 적용됩니다", + "drawer.short": "설정", + "drawer.showThinking": "추론 표시", + "drawer.showThinkingNote": "작성되는 동안 펼쳐 둡니다", + "drawer.temperature": "온도", + "drawer.temperatureNote": "0 = 항상 가장 가능성 높은 단어 (정확하고 반복 가능)", + "drawer.thinkHigh": "꼼꼼히 (기본값)", + "drawer.thinkLow": "짧게", + "drawer.thinkMedium": "보통", + "drawer.thinkNone": "바로 답변", + "drawer.thinking": "추론", + "drawer.title": "채팅 설정", + "drawer.untilDone": "끝까지", + "export.nothing": "아직 저장할 내용이 없습니다", + "file.big": "파일이 너무 큽니다", + "file.bigText": "{name}은(는) 512 KB를 넘습니다.", + "file.binaryText": "{name}은(는) 바이너리 파일 같습니다.", + "file.notText": "텍스트 파일이 아닙니다", + "file.notTextOnly": "{name}: 텍스트 파일(코드, 메모, 로그, 데이터)을 첨부하세요.", + "file.notTextPictures": "{name}: 텍스트 파일(코드, 메모, 로그, 데이터) 또는 이미지를 첨부하세요.", + "file.pasted": "붙여넣은 이미지", + "file.pictureBig": "이미지가 너무 큽니다", + "file.pictureBigText": "{name}은(는) 20 MB를 넘습니다.", + "file.picturesOff": "이미지가 꺼져 있습니다", + "file.picturesOffText": "이 모델은 텍스트 전용으로 설정되었습니다.", + "file.remove": "제거", + "group.month": "지난 30일", + "group.older": "이전", + "group.today": "오늘", + "group.week": "지난 7일", + "group.yesterday": "어제", + "hist.editAnswer": "답변 편집", + "hist.editAnswerTitle": "답변의 텍스트를 고칩니다. 요청은 전송되지 않습니다.", + "hist.editLabel": "답변 편집", + "hist.editNote": "답변의 이전 추론과 도구 호출이 제거됩니다. 요청은 전송되지 않습니다.", + "hist.editRemoves": {"other": "저장하면 이후 메시지 {n}개가 숨겨집니다. "}, + "hist.edited": "편집됨", + "hist.editedHidden": {"other": "답변을 편집했습니다. 메시지 {n}개 숨김"}, + "hist.editedOnly": "답변을 편집했습니다", + "hist.empty": "답변이 비어 있습니다", + "hist.emptyText": "저장하기 전에 내용을 입력하세요.", + "hist.finishFirst": "먼저 열려 있는 것을 마무리하세요", + "hist.finishFirstText": "저장하거나 취소를 누르세요.", + "hist.hidden": {"other": "메시지 {n}개 숨김"}, + "hist.lostText": "이 브라우저에는 이름만 남아 있고 내용은 없습니다. 새 채팅을 시작해 다시 첨부하세요.", + "hist.lostText2": "이 브라우저에는 이름만 남아 있고 내용은 없습니다. 다시 첨부하세요.", + "hist.lostTitle": "첨부 파일을 다시 추가해야 합니다", + "hist.nothingHidden": "이 메시지로 돌아왔습니다", + "hist.pendingFirst": "대기 중인 메시지가 있습니다", + "hist.pendingFirstText": "먼저 보내거나 되돌려 놓으세요.", + "hist.regenerate": "다시 생성", + "hist.regenerateTitle": "이 질문에 새 답변을 요청합니다. 도구가 다시 실행될 수 있습니다.", + "hist.replaced": "답변을 교체했습니다", + "hist.rewind": "여기로 되감기", + "hist.rewindTitle": "채팅의 이 지점으로 돌아갑니다", + "hist.save": "저장", + "math.source": "수식 원문 ({reason})", + "model.alreadyUnloaded": "이미 해제되어 있습니다", + "model.busy": "모델이 사용 중입니다", + "model.confirmUnload": "모델을 해제하고 GPU를 비울까요? 불러오기 또는 다음 메시지로 다시 돌아옵니다.", + "model.fewMinutes": "몇 분 걸릴 수 있습니다.", + "model.gpuFree": "GPU가 비었습니다. 불러오기 또는 다음 메시지로 모델이 돌아옵니다.", + "model.gpuInUse": "GPU를 사용 중입니다.", + "model.imageBusy": "이미지를 생성 중입니다. 저절로 끝납니다.", + "model.imageLoading": "이미지가 이미 모델을 불러오고 있습니다", + "model.imageLoadingDot": "이미지가 이미 모델을 불러오고 있습니다.", + "model.load": "불러오기", + "model.loadFailed": "불러오지 못했습니다", + "model.loadTitle": "지금 모델을 불러옵니다. 메시지를 보내도 불러옵니다.", + "model.loaded": "모델을 불러왔습니다", + "model.loading": "불러오는 중…", + "model.loadingTitle": "모델을 불러오는 중입니다", + "model.loadingToast": "모델을 불러오는 중", + "model.noAnswer": "서버가 응답하지 않았습니다.", + "model.replyLoading": "답변이 이미 모델을 불러오고 있습니다", + "model.replyLoadingDot": "답변이 이미 모델을 불러오고 있습니다.", + "model.stopFirst": "답변을 중지한 뒤 해제하세요", + "model.stopFirstDot": "답변을 중지한 뒤 해제하세요.", + "model.unload": "해제", + "model.unloadFailed": "해제하지 못했습니다", + "model.unloadTitle": "모델을 해제하고 GPU를 비웁니다", + "model.unloaded": "모델을 해제했습니다", + "model.unloading": "해제하는 중…", + "model.unloadingTitle": "모델을 해제하는 중입니다", + "model.unsupported": "해제를 사용할 수 없습니다", + "model.waiting": "서버를 기다리는 중", + "pending.afterTool": "도구가 끝나기를 기다린 뒤 보냅니다: “{text}”", + "pending.cutting": "답변을 멈춘 뒤 보냅니다: “{text}”", + "pending.one": "이미 대기 중인 메시지가 있습니다", + "pending.oneText": "되돌려 놓거나 전송될 때까지 기다리세요.", + "pending.queued": "이 답변이 끝나면 보냅니다: “{text}”", + "pending.ready": "아직 보내지 않음: “{text}”", + "pending.send": "보내기", + "pending.sendNow": "지금 보내기", + "pending.takeBack": "되돌리기", + "pill.connecting": "연결 중…", + "pill.generating": "작성 중 · {rate} tok/s", + "pill.idle": "유휴 상태", + "pill.image": "이미지 생성 중…", + "pill.keyNeeded": "API 키 필요", + "pill.queued": "대기 {n}건", + "pill.reading": "프롬프트 읽는 중", + "pill.readingPct": "프롬프트 읽는 중 · {pct}%", + "pill.unloaded": "해제됨", + "pill.unreachable": "서버에 연결할 수 없음", + "preview.confirm": "이 코드를 스크립트와 함께 실행할까요?\n\n코드는 이 채팅과 네트워크에서 격리된 채 브라우저 안에서 실행되지만, 탭이 멈출 수는 있으며 모델이 작성한 코드입니다.\n\n이 블록만, 미리보기를 닫을 때까지만 실행됩니다.", + "preview.runScripts": "스크립트 실행", + "preview.showCode": "코드 보기", + "preview.showPage": "페이지 미리보기", + "preview.showSvg": "이미지 미리보기", + "preview.stopScripts": "스크립트 중지", + "preview.titlePage": "페이지 미리보기", + "preview.titleSvg": "이미지 미리보기", + "rewind.branch": "여기서 분기", + "rewind.branchAnswerText": "이 답변까지의 메시지로 새 채팅을 시작합니다. 이 채팅은 그대로 남습니다.", + "rewind.branchUserText": "이 메시지 이전의 메시지로 새 채팅을 시작하고 내 메시지를 그 입력란에 넣습니다. 이 채팅은 그대로 남습니다.", + "rewind.hereAnswer": "여기서 계속", + "rewind.hereAnswerText": "이 답변 이후의 메시지를 숨깁니다. 실행 취소로 되돌릴 수 있습니다.", + "rewind.hereUser": "여기서 편집하고 다시 보내기", + "rewind.hereUserText": "이 메시지와 이후 메시지를 숨기고 내 메시지를 아래 입력란에 넣습니다. 실행 취소로 되돌릴 수 있습니다.", + "rewind.noList": "대신 여기서 새 채팅을 시작하려면 채팅 설정에서 저장된 채팅 목록을 켜세요.", + "rewind.title": "여기로 되감기", + "settings.language": "언어", + "settings.languageNote": "채팅과 채팅 설정, 위의 버튼은 번역되어 있습니다. 모니터, 이미지, 정보 화면은 아직 영어입니다.", + "sidebar.collapse": "채팅 목록 접기", + "sidebar.delete": "이 채팅 삭제", + "sidebar.deleteShort": "삭제", + "sidebar.expand": "채팅 목록 열기", + "sidebar.foot": {"other": "채팅 {n}개 · 이 브라우저에 저장됨"}, + "sidebar.nameFor": "이 채팅의 이름", + "sidebar.noMatch": "일치하는 채팅이 없습니다", + "sidebar.none": "아직 채팅이 없습니다", + "sidebar.rename": "이 채팅 이름 변경", + "sidebar.renameShort": "이름 변경", + "sidebar.search": "채팅 검색", + "sidebar.title": "채팅", + "store.failed": "채팅 목록을 저장하지 못했습니다. 화면의 채팅은 그대로 있습니다.", + "store.memory": "이 브라우저는 채팅 목록을 보관하지 않습니다. 페이지를 닫을 때까지 메모리에만 남습니다.", + "store.quota": "이 브라우저는 더 이상 보관할 수 없습니다. 화면의 채팅은 그대로 있습니다.", + "store.title": "채팅 목록이 저장되지 않음", + "tab.about": "정보", + "tab.chat": "채팅", + "tab.images": "이미지", + "tab.monitor": "모니터", + "tab.views": "보기", + "theme.label": "라이트와 다크 전환", + "theme.title": "라이트 / 다크", + "think.done": "추론", + "think.for": "{s}초 동안 생각함", + "think.now": "생각하는 중…", + "toast.copied": "클립보드에 복사했습니다", + "toast.engineError": "엔진이 오류를 보고했습니다", + "toast.httpAnswer": "서버가 HTTP {code}로 응답했습니다.", + "toast.keyAbout": "이 서버에는 키가 필요합니다. 정보 > 설정에 입력하세요.", + "toast.keyAbout2": "API 키가 필요합니다. 정보 > 설정에 입력하세요.", + "toast.keyNeeded": "이 서버에는 API 키가 필요합니다. 정보 > 설정에 입력하세요.", + "toast.requestFailed": "요청이 실패했습니다", + "tool.arguments": "인수", + "tool.beingWritten": "(작성 중)", + "tool.chars": "{n}자", + "tool.cut": ", 모델용으로 줄임", + "tool.done": "완료", + "tool.error": "오류", + "tool.result": "결과", + "tool.running": "실행 중", + "tool.skipped": "실행 안 됨", + "tool.writing": "작성 중", + "undo": "실행 취소" +} diff --git a/serve/web/locales/pt.json b/serve/web/locales/pt.json new file mode 100644 index 00000000..bc343a61 --- /dev/null +++ b/serve/web/locales/pt.json @@ -0,0 +1,249 @@ +{ + "branch.back": "Voltar a ele", + "branch.from": "Ramificado de “{title}”", + "branch.open": "Abrir o original", + "branch.started": "Ramificação criada", + "branch.startedText": "O chat em que você estava não mudou; ele está na lista à esquerda.", + "branch.title": "Ramificação de {title}", + "busy.stillWriting": "Ainda está escrevendo", + "busy.stopFirst": "Pare a resposta primeiro.", + "cancel": "Cancelar", + "chat.clearedToast": "O último chat foi limpo.", + "chat.copy": "Copiar", + "chat.copyAnswer": "Copiar a resposta", + "chat.deleted": "Chat excluído", + "chat.empty": "Pergunte o que quiser", + "chat.emptyModel": "{model} roda neste PC. Nada sai dele.", + "chat.image": "imagem", + "chat.interrupted": "Interrompida", + "chat.interruptedLower": "interrompida", + "chat.new": "Novo chat", + "chat.newToast": "Novo chat", + "chat.newToastText": "O chat anterior está na lista à esquerda.", + "chat.projectionOff": "projeção desativada", + "chat.projectionOn": "projeção ativada", + "chat.stopped": "Parada", + "chat.stoppedLower": "parada", + "chat.tokens": "{n} tokens", + "chat.toolCalls": {"one": "{n} chamada de ferramenta", "other": "{n} chamadas de ferramenta"}, + "chat.toolLimit": "parada no limite de {n} rodadas de ferramentas (mcp.max_rounds)", + "chat.untitled": "Novo chat", + "chat.you": "Você", + "close": "Fechar", + "code.copy": "Copiar o código", + "code.label": "código", + "composer.attach": "Anexar um arquivo de texto (ou soltá-lo aqui)", + "composer.attachLabel": "Anexar um arquivo", + "composer.attachPictures": "Anexar um arquivo de texto ou uma imagem (ou soltá-los aqui)", + "composer.finishOpen": "Salve ou cancele o que está aberto acima para continuar", + "composer.hintInterject": "Enter interrompe a resposta aqui e envia agora", + "composer.hintQueue": "Enter envia quando a resposta terminar", + "composer.message": "Mensagem", + "composer.newline": "Shift+Enter: nova linha", + "composer.placeholder": "Pergunte o que quiser…", + "composer.save": "Salvar este chat como Markdown", + "composer.saveLabel": "Salvar este chat", + "composer.send": "Enviar", + "composer.stop": "Parar", + "drawer.apply": "Aplicar", + "drawer.busy": "Quando você envia enquanto ele responde", + "drawer.busyInterject": "Interromper", + "drawer.busyInterjectNote": "A resposta para onde está (o que foi escrito fica) e sua mensagem vai na hora. Uma ferramenta em execução termina primeiro.", + "drawer.busyQueue": "Enviar depois", + "drawer.busyQueueNote": "Sua mensagem espera e vai assim que a resposta terminar.", + "drawer.busyWait": "Esperar", + "drawer.busyWaitNote": "Enviar fica desativado até a resposta terminar, como antes.", + "drawer.chats": "Chats", + "drawer.edit": "Editar e voltar nas mensagens", + "drawer.editNote": "editar uma resposta, pedir uma nova ou voltar a uma mensagem anterior (com Desfazer)", + "drawer.greedy": "0 · determinístico", + "drawer.high": "Alto", + "drawer.list": "Lista de chats salvos", + "drawer.listNote": "guarda cada chat em uma lista à esquerda, só neste navegador. Desativado: um único chat, como antes", + "drawer.low": "Baixo", + "drawer.math": "Exibir fórmulas", + "drawer.mathNote": "desenha as equações das respostas como fórmulas (funciona offline)", + "drawer.maxTokens": "Máx. de tokens", + "drawer.maxTokensNote": "vazio = até terminar", + "drawer.mcp": "Usar ferramentas de servidores MCP", + "drawer.medium": "Médio", + "drawer.off": "Não", + "drawer.random": "Aleatória", + "drawer.reset": "Redefinir", + "drawer.saved": "Configurações do chat salvas", + "drawer.savedGreedy": "Determinístico: a mesma pergunta dá a mesma resposta.", + "drawer.savedHere": "Salvo aqui, mas não para outros apps", + "drawer.savedOwn": "Os outros apps voltam a usar as próprias configurações.", + "drawer.savedShared": "Os outros apps (omp, clientes da API) usam estas configurações a partir da próxima solicitação.", + "drawer.seed": "Semente", + "drawer.seedNote": "vazio = aleatória", + "drawer.share": "Usar também para outros apps", + "drawer.shareNote": "omp e outros clientes da API recebem estas configurações para tudo que eles mesmos não definirem", + "drawer.short": "Configurações", + "drawer.showThinking": "Mostrar o raciocínio", + "drawer.showThinkingNote": "aberto enquanto escreve", + "drawer.temperature": "Temperatura", + "drawer.temperatureNote": "0 = sempre a palavra mais provável (exato, repetível)", + "drawer.thinkHigh": "a fundo (padrão)", + "drawer.thinkLow": "curto", + "drawer.thinkMedium": "médio", + "drawer.thinkNone": "responde na hora", + "drawer.thinking": "Raciocínio", + "drawer.title": "Configurações do chat", + "drawer.untilDone": "Até terminar", + "export.nothing": "Ainda não há nada para salvar", + "file.big": "Arquivo grande demais", + "file.bigText": "{name} passa de 512 KB.", + "file.binaryText": "{name} parece ser um arquivo binário.", + "file.notText": "Não é um arquivo de texto", + "file.notTextOnly": "{name}: anexe arquivos de texto (código, notas, logs, dados).", + "file.notTextPictures": "{name}: anexe arquivos de texto (código, notas, logs, dados) ou imagens.", + "file.pasted": "imagem colada", + "file.pictureBig": "Imagem grande demais", + "file.pictureBigText": "{name} passa de 20 MB.", + "file.picturesOff": "As imagens estão desativadas", + "file.picturesOffText": "Este modelo foi configurado só para texto.", + "file.remove": "Remover", + "group.month": "Últimos 30 dias", + "group.older": "Mais antigos", + "group.today": "Hoje", + "group.week": "Últimos 7 dias", + "group.yesterday": "Ontem", + "hist.editAnswer": "Editar resposta", + "hist.editAnswerTitle": "Corrija o texto da resposta. Nenhuma solicitação é enviada.", + "hist.editLabel": "Editar a resposta", + "hist.editNote": "O raciocínio e as chamadas de ferramenta anteriores da resposta são removidos. Nenhuma solicitação é enviada.", + "hist.editRemoves": {"one": "Ao salvar, a {n} mensagem seguinte fica oculta. ", "other": "Ao salvar, as {n} mensagens seguintes ficam ocultas. "}, + "hist.edited": "Editada", + "hist.editedHidden": {"one": "Resposta editada, {n} mensagem oculta", "other": "Resposta editada, {n} mensagens ocultas"}, + "hist.editedOnly": "Resposta editada", + "hist.empty": "A resposta está vazia", + "hist.emptyText": "Escreva algo antes de salvar.", + "hist.finishFirst": "Termine primeiro o que está aberto", + "hist.finishFirstText": "Salve ou pressione Cancelar.", + "hist.hidden": {"one": "{n} mensagem oculta", "other": "{n} mensagens ocultas"}, + "hist.lostText": "Este navegador guardou os nomes, não o conteúdo. Comece um novo chat e anexe-os de novo.", + "hist.lostText2": "Este navegador guardou os nomes, não o conteúdo. Anexe-os de novo.", + "hist.lostTitle": "É preciso anexar os arquivos de novo", + "hist.nothingHidden": "De volta a esta mensagem", + "hist.pendingFirst": "Há uma mensagem esperando", + "hist.pendingFirstText": "Envie-a ou retire-a primeiro.", + "hist.regenerate": "Gerar de novo", + "hist.regenerateTitle": "Pedir uma nova resposta a esta pergunta. As ferramentas podem rodar de novo.", + "hist.replaced": "A resposta foi substituída", + "hist.rewind": "Voltar até aqui", + "hist.rewindTitle": "Voltar a este ponto do chat", + "hist.save": "Salvar", + "math.source": "Código da fórmula ({reason})", + "model.alreadyUnloaded": "Já estava descarregado", + "model.busy": "O modelo está ocupado", + "model.confirmUnload": "Descarregar o modelo e liberar a GPU? Carregar, ou a próxima mensagem, o traz de volta.", + "model.fewMinutes": "Isso pode levar alguns minutos.", + "model.gpuFree": "A GPU está livre. Carregar, ou a próxima mensagem, traz o modelo de volta.", + "model.gpuInUse": "A GPU está em uso.", + "model.imageBusy": "Uma imagem está sendo gerada. Ela termina sozinha.", + "model.imageLoading": "Uma imagem já está carregando o modelo", + "model.imageLoadingDot": "Uma imagem já está carregando o modelo.", + "model.load": "Carregar", + "model.loadFailed": "Falha ao carregar", + "model.loadTitle": "Carregar o modelo agora. Uma mensagem também o carrega.", + "model.loaded": "Modelo carregado", + "model.loading": "Carregando…", + "model.loadingTitle": "O modelo está sendo carregado", + "model.loadingToast": "Carregando o modelo", + "model.noAnswer": "O servidor não respondeu.", + "model.replyLoading": "Uma resposta já está carregando o modelo", + "model.replyLoadingDot": "Uma resposta já está carregando o modelo.", + "model.stopFirst": "Pare a resposta e depois descarregue", + "model.stopFirstDot": "Pare a resposta e depois descarregue.", + "model.unload": "Descarregar", + "model.unloadFailed": "Falha ao descarregar", + "model.unloadTitle": "Descarregar o modelo e liberar a GPU", + "model.unloaded": "Modelo descarregado", + "model.unloading": "Descarregando…", + "model.unloadingTitle": "O modelo está sendo descarregado", + "model.unsupported": "Descarregar não está disponível", + "model.waiting": "Esperando o servidor", + "pending.afterTool": "Esperando a ferramenta terminar, depois envia: “{text}”", + "pending.cutting": "Parando a resposta, depois envia: “{text}”", + "pending.one": "Já há uma mensagem esperando", + "pending.oneText": "Retire-a ou espere até ela ser enviada.", + "pending.queued": "Envia quando esta resposta terminar: “{text}”", + "pending.ready": "Ainda não enviada: “{text}”", + "pending.send": "Enviar", + "pending.sendNow": "Enviar agora", + "pending.takeBack": "Retirar", + "pill.connecting": "Conectando…", + "pill.generating": "Escrevendo · {rate} tok/s", + "pill.idle": "Ocioso", + "pill.image": "Gerando imagem…", + "pill.keyNeeded": "Falta a chave de API", + "pill.queued": "{n} na fila", + "pill.reading": "Lendo a mensagem", + "pill.readingPct": "Lendo a mensagem · {pct}%", + "pill.unloaded": "Descarregado", + "pill.unreachable": "Servidor inacessível", + "preview.confirm": "Executar este código com scripts?\n\nEle roda no seu navegador, isolado deste chat e da rede, mas ainda pode travar a aba, e é código escrito pelo modelo.\n\nSó este bloco, e só até você fechar a prévia.", + "preview.runScripts": "Executar scripts", + "preview.showCode": "Mostrar o código", + "preview.showPage": "Prévia da página", + "preview.showSvg": "Prévia da imagem", + "preview.stopScripts": "Parar scripts", + "preview.titlePage": "Prévia da página", + "preview.titleSvg": "Prévia da imagem", + "rewind.branch": "Criar ramificação a partir daqui", + "rewind.branchAnswerText": "Começa um novo chat com as mensagens até esta resposta. Este chat fica como está.", + "rewind.branchUserText": "Começa um novo chat com as mensagens anteriores a esta e põe sua mensagem no campo dele. Este chat fica como está.", + "rewind.hereAnswer": "Continuar daqui", + "rewind.hereAnswerText": "Oculta as mensagens depois desta resposta. Desfazer as traz de volta.", + "rewind.hereUser": "Editar e enviar de novo aqui", + "rewind.hereUserText": "Oculta esta mensagem e as seguintes e põe sua mensagem no campo abaixo. Desfazer as traz de volta.", + "rewind.noList": "Para começar um novo chat a partir daqui, ative a lista de chats salvos nas configurações do chat.", + "rewind.title": "Voltar até aqui", + "settings.language": "Idioma", + "settings.languageNote": "O chat, as configurações dele e os botões acima estão traduzidos. As telas Monitor, Imagens e Sobre ainda estão em inglês.", + "sidebar.collapse": "Recolher a lista de chats", + "sidebar.delete": "Excluir este chat", + "sidebar.deleteShort": "Excluir", + "sidebar.expand": "Abrir a lista de chats", + "sidebar.foot": {"one": "{n} chat · guardado neste navegador", "other": "{n} chats · guardados neste navegador"}, + "sidebar.nameFor": "Nome deste chat", + "sidebar.noMatch": "Nenhum chat corresponde", + "sidebar.none": "Ainda não há chats", + "sidebar.rename": "Renomear este chat", + "sidebar.renameShort": "Renomear", + "sidebar.search": "Buscar chats", + "sidebar.title": "Chats", + "store.failed": "Não foi possível salvar a lista de chats. Os chats na tela continuam lá.", + "store.memory": "Este navegador não vai guardar a lista de chats. Ela fica na memória até você fechar a página.", + "store.quota": "Este navegador não consegue guardar mais. Os chats na tela continuam lá.", + "store.title": "Lista de chats não salva", + "tab.about": "Sobre", + "tab.chat": "Chat", + "tab.images": "Imagens", + "tab.monitor": "Monitor", + "tab.views": "Telas", + "theme.label": "Alternar entre claro e escuro", + "theme.title": "Claro / escuro", + "think.done": "Raciocínio", + "think.for": "Pensou por {s} s", + "think.now": "Pensando…", + "toast.copied": "Copiado para a área de transferência", + "toast.engineError": "o motor informou um erro", + "toast.httpAnswer": "O servidor respondeu com HTTP {code}.", + "toast.keyAbout": "Este servidor precisa de uma chave: adicione-a em Sobre > Configurações.", + "toast.keyAbout2": "Falta a chave de API: adicione-a em Sobre > Configurações.", + "toast.keyNeeded": "Este servidor precisa de uma chave de API: adicione-a em Sobre > Configurações.", + "toast.requestFailed": "A solicitação falhou", + "tool.arguments": "Argumentos", + "tool.beingWritten": "(sendo escrito)", + "tool.chars": "{n} caracteres", + "tool.cut": ", cortado para o modelo", + "tool.done": "Concluído", + "tool.error": "Erro", + "tool.result": "Resultado", + "tool.running": "Em execução", + "tool.skipped": "Não executada", + "tool.writing": "Escrevendo", + "undo": "Desfazer" +} diff --git a/serve/web/locales/ru.json b/serve/web/locales/ru.json new file mode 100644 index 00000000..7b83de91 --- /dev/null +++ b/serve/web/locales/ru.json @@ -0,0 +1,249 @@ +{ + "branch.back": "Вернуться к нему", + "branch.from": "Ответвление от «{title}»", + "branch.open": "Открыть оригинал", + "branch.started": "Ответвление создано", + "branch.startedText": "Чат, в котором вы были, не изменился: он в списке слева.", + "branch.title": "Ответвление от «{title}»", + "busy.stillWriting": "Ответ ещё пишется", + "busy.stopFirst": "Сначала остановите ответ.", + "cancel": "Отмена", + "chat.clearedToast": "Последний чат очищен.", + "chat.copy": "Копировать", + "chat.copyAnswer": "Копировать ответ", + "chat.deleted": "Чат удалён", + "chat.empty": "Спрашивайте что угодно", + "chat.emptyModel": "{model} работает на этом ПК. Ничто не уходит наружу.", + "chat.image": "изображение", + "chat.interrupted": "Прервано", + "chat.interruptedLower": "прервано", + "chat.new": "Новый чат", + "chat.newToast": "Новый чат", + "chat.newToastText": "Прежний чат остался в списке слева.", + "chat.projectionOff": "проекция выключена", + "chat.projectionOn": "проекция включена", + "chat.stopped": "Остановлено", + "chat.stoppedLower": "остановлено", + "chat.tokens": "{n} токенов", + "chat.toolCalls": {"one": "{n} вызов инструмента", "few": "{n} вызова инструмента", "many": "{n} вызовов инструмента", "other": "{n} вызова инструмента"}, + "chat.toolLimit": "остановлено на пределе в {n} раундов инструментов (mcp.max_rounds)", + "chat.untitled": "Новый чат", + "chat.you": "Вы", + "close": "Закрыть", + "code.copy": "Копировать код", + "code.label": "код", + "composer.attach": "Прикрепить текстовый файл (или перетащить сюда)", + "composer.attachLabel": "Прикрепить файл", + "composer.attachPictures": "Прикрепить текстовый файл или изображение (или перетащить сюда)", + "composer.finishOpen": "Сохраните или отмените то, что открыто выше, чтобы продолжить", + "composer.hintInterject": "Enter остановит ответ здесь и сразу отправит", + "composer.hintQueue": "Enter отправит, когда ответ закончится", + "composer.message": "Сообщение", + "composer.newline": "Shift+Enter: новая строка", + "composer.placeholder": "Спрашивайте что угодно…", + "composer.save": "Сохранить этот чат как Markdown", + "composer.saveLabel": "Сохранить этот чат", + "composer.send": "Отправить", + "composer.stop": "Остановить", + "drawer.apply": "Применить", + "drawer.busy": "Если отправить, пока идёт ответ", + "drawer.busyInterject": "Прервать", + "drawer.busyInterjectNote": "Ответ остановится там, где он есть (написанное останется), и ваше сообщение уйдёт сразу. Работающий инструмент сначала закончит.", + "drawer.busyQueue": "Отправить после", + "drawer.busyQueueNote": "Сообщение подождёт и уйдёт, как только ответ закончится.", + "drawer.busyWait": "Ждать", + "drawer.busyWaitNote": "Отправка выключена, пока ответ не закончится, как раньше.", + "drawer.chats": "Чаты", + "drawer.edit": "Правка и возврат по сообщениям", + "drawer.editNote": "править ответ, просить новый или вернуться к более раннему сообщению (с отменой)", + "drawer.greedy": "0 · детерминированно", + "drawer.high": "Высокий", + "drawer.list": "Список сохранённых чатов", + "drawer.listNote": "хранит каждый чат в списке слева, только в этом браузере. Выключено: один чат, как раньше", + "drawer.low": "Низкий", + "drawer.math": "Показывать формулы", + "drawer.mathNote": "рисовать уравнения в ответах как формулы (работает без сети)", + "drawer.maxTokens": "Макс. токенов", + "drawer.maxTokensNote": "пусто = до конца", + "drawer.mcp": "Использовать инструменты серверов MCP", + "drawer.medium": "Средний", + "drawer.off": "Выкл.", + "drawer.random": "Случайно", + "drawer.reset": "Сбросить", + "drawer.saved": "Настройки чата сохранены", + "drawer.savedGreedy": "Детерминированно: один и тот же вопрос даёт один и тот же ответ.", + "drawer.savedHere": "Сохранено здесь, но не для других приложений", + "drawer.savedOwn": "Другие приложения снова используют свои настройки.", + "drawer.savedShared": "Другие приложения (omp, клиенты API) используют эти настройки со следующего запроса.", + "drawer.seed": "Seed", + "drawer.seedNote": "пусто = случайно", + "drawer.share": "Использовать и для других приложений", + "drawer.shareNote": "omp и другие клиенты API получают эти настройки для всего, что не задают сами", + "drawer.short": "Настройки", + "drawer.showThinking": "Показывать рассуждение", + "drawer.showThinkingNote": "раскрыто, пока идёт ответ", + "drawer.temperature": "Температура", + "drawer.temperatureNote": "0 = всегда самое вероятное слово (точно, повторяемо)", + "drawer.thinkHigh": "тщательно (по умолчанию)", + "drawer.thinkLow": "коротко", + "drawer.thinkMedium": "средне", + "drawer.thinkNone": "отвечает сразу", + "drawer.thinking": "Рассуждение", + "drawer.title": "Настройки чата", + "drawer.untilDone": "До конца", + "export.nothing": "Пока нечего сохранять", + "file.big": "Файл слишком большой", + "file.bigText": "{name} больше 512 КБ.", + "file.binaryText": "{name} похож на двоичный файл.", + "file.notText": "Это не текстовый файл", + "file.notTextOnly": "{name}: прикрепляйте текстовые файлы (код, заметки, журналы, данные).", + "file.notTextPictures": "{name}: прикрепляйте текстовые файлы (код, заметки, журналы, данные) или изображения.", + "file.pasted": "вставленное изображение", + "file.pictureBig": "Изображение слишком большое", + "file.pictureBigText": "{name} больше 20 МБ.", + "file.picturesOff": "Изображения выключены", + "file.picturesOffText": "Эта модель настроена только на текст.", + "file.remove": "Удалить", + "group.month": "Последние 30 дней", + "group.older": "Раньше", + "group.today": "Сегодня", + "group.week": "Последние 7 дней", + "group.yesterday": "Вчера", + "hist.editAnswer": "Править ответ", + "hist.editAnswerTitle": "Исправить текст ответа. Запрос не отправляется.", + "hist.editLabel": "Правка ответа", + "hist.editNote": "Прежнее рассуждение и вызовы инструментов в ответе удаляются. Запрос не отправляется.", + "hist.editRemoves": {"one": "При сохранении скроется {n} следующее сообщение. ", "few": "При сохранении скроются {n} следующих сообщения. ", "many": "При сохранении скроются {n} следующих сообщений. ", "other": "При сохранении скроются {n} следующих сообщения. "}, + "hist.edited": "Изменено", + "hist.editedHidden": {"one": "Ответ изменён, скрыто {n} сообщение", "few": "Ответ изменён, скрыто {n} сообщения", "many": "Ответ изменён, скрыто {n} сообщений", "other": "Ответ изменён, скрыто {n} сообщения"}, + "hist.editedOnly": "Ответ изменён", + "hist.empty": "Ответ пуст", + "hist.emptyText": "Напишите что-нибудь перед сохранением.", + "hist.finishFirst": "Сначала закончите то, что открыто", + "hist.finishFirstText": "Сохраните это или нажмите «Отмена».", + "hist.hidden": {"one": "Скрыто {n} сообщение", "few": "Скрыто {n} сообщения", "many": "Скрыто {n} сообщений", "other": "Скрыто {n} сообщения"}, + "hist.lostText": "Браузер сохранил только имена, без содержимого. Начните новый чат и прикрепите их снова.", + "hist.lostText2": "Браузер сохранил только имена, без содержимого. Прикрепите их снова.", + "hist.lostTitle": "Вложения нужно добавить заново", + "hist.nothingHidden": "Возврат к этому сообщению", + "hist.pendingFirst": "Одно сообщение ждёт отправки", + "hist.pendingFirstText": "Сначала отправьте его или заберите обратно.", + "hist.regenerate": "Сгенерировать заново", + "hist.regenerateTitle": "Запросить новый ответ на этот вопрос. Инструменты могут запуститься снова.", + "hist.replaced": "Ответ заменён", + "hist.rewind": "Вернуться сюда", + "hist.rewindTitle": "Вернуться к этому месту в чате", + "hist.save": "Сохранить", + "math.source": "Исходный текст формулы ({reason})", + "model.alreadyUnloaded": "Уже выгружена", + "model.busy": "Модель занята", + "model.confirmUnload": "Выгрузить модель и освободить GPU? Кнопка «Загрузить» или следующее сообщение вернёт её.", + "model.fewMinutes": "Это может занять несколько минут.", + "model.gpuFree": "GPU свободен. Кнопка «Загрузить» или следующее сообщение вернёт модель.", + "model.gpuInUse": "GPU используется.", + "model.imageBusy": "Создаётся изображение. Оно закончится само.", + "model.imageLoading": "Изображение уже загружает модель", + "model.imageLoadingDot": "Изображение уже загружает модель.", + "model.load": "Загрузить", + "model.loadFailed": "Не удалось загрузить", + "model.loadTitle": "Загрузить модель сейчас. Сообщение тоже загрузит её.", + "model.loaded": "Модель загружена", + "model.loading": "Загрузка…", + "model.loadingTitle": "Модель загружается", + "model.loadingToast": "Загрузка модели", + "model.noAnswer": "Сервер не ответил.", + "model.replyLoading": "Ответ уже загружает модель", + "model.replyLoadingDot": "Ответ уже загружает модель.", + "model.stopFirst": "Остановите ответ, затем выгрузите", + "model.stopFirstDot": "Остановите ответ, затем выгрузите.", + "model.unload": "Выгрузить", + "model.unloadFailed": "Не удалось выгрузить", + "model.unloadTitle": "Выгрузить модель и освободить GPU", + "model.unloaded": "Модель выгружена", + "model.unloading": "Выгрузка…", + "model.unloadingTitle": "Модель выгружается", + "model.unsupported": "Выгрузка недоступна", + "model.waiting": "Ожидание сервера", + "pending.afterTool": "Ждёт, пока закончит инструмент, затем отправит: «{text}»", + "pending.cutting": "Останавливает ответ, затем отправит: «{text}»", + "pending.one": "Одно сообщение уже ждёт", + "pending.oneText": "Заберите его обратно или дождитесь отправки.", + "pending.queued": "Отправится, когда закончится этот ответ: «{text}»", + "pending.ready": "Ещё не отправлено: «{text}»", + "pending.send": "Отправить", + "pending.sendNow": "Отправить сейчас", + "pending.takeBack": "Забрать", + "pill.connecting": "Подключение…", + "pill.generating": "Пишет · {rate} ток/с", + "pill.idle": "Ожидание", + "pill.image": "Создаёт изображение…", + "pill.keyNeeded": "Нужен ключ API", + "pill.queued": "В очереди: {n}", + "pill.reading": "Читает запрос", + "pill.readingPct": "Читает запрос · {pct}%", + "pill.unloaded": "Выгружена", + "pill.unreachable": "Сервер недоступен", + "preview.confirm": "Запустить этот код со скриптами?\n\nОн работает в вашем браузере, отрезанный от этого чата и от сети, но всё равно может заморозить вкладку, и это код, написанный моделью.\n\nТолько этот блок и только пока вы не закроете предпросмотр.", + "preview.runScripts": "Запустить скрипты", + "preview.showCode": "Показать код", + "preview.showPage": "Предпросмотр страницы", + "preview.showSvg": "Предпросмотр изображения", + "preview.stopScripts": "Остановить скрипты", + "preview.titlePage": "Предпросмотр страницы", + "preview.titleSvg": "Предпросмотр изображения", + "rewind.branch": "Создать ветку отсюда", + "rewind.branchAnswerText": "Начинает новый чат с сообщениями до этого ответа. Этот чат остаётся как есть.", + "rewind.branchUserText": "Начинает новый чат с сообщениями до этого и кладёт ваше сообщение в его поле. Этот чат остаётся как есть.", + "rewind.hereAnswer": "Продолжить отсюда", + "rewind.hereAnswerText": "Скрывает сообщения после этого ответа. «Отменить» вернёт их.", + "rewind.hereUser": "Изменить и отправить заново здесь", + "rewind.hereUserText": "Скрывает это сообщение и следующие и кладёт ваше сообщение в поле ввода ниже. «Отменить» вернёт их.", + "rewind.noList": "Чтобы вместо этого начать новый чат отсюда, включите список сохранённых чатов в настройках чата.", + "rewind.title": "Вернуться сюда", + "settings.language": "Язык", + "settings.languageNote": "Чат, его настройки и кнопки выше переведены. Разделы «Монитор», «Изображения» и «О программе» пока на английском.", + "sidebar.collapse": "Свернуть список чатов", + "sidebar.delete": "Удалить этот чат", + "sidebar.deleteShort": "Удалить", + "sidebar.expand": "Открыть список чатов", + "sidebar.foot": {"one": "{n} чат · хранится в этом браузере", "few": "{n} чата · хранятся в этом браузере", "many": "{n} чатов · хранятся в этом браузере", "other": "{n} чата · хранятся в этом браузере"}, + "sidebar.nameFor": "Название этого чата", + "sidebar.noMatch": "Подходящих чатов нет", + "sidebar.none": "Чатов пока нет", + "sidebar.rename": "Переименовать этот чат", + "sidebar.renameShort": "Переименовать", + "sidebar.search": "Поиск по чатам", + "sidebar.title": "Чаты", + "store.failed": "Не удалось сохранить список чатов. Чаты на экране остаются на месте.", + "store.memory": "Этот браузер не сохранит список чатов. Он останется в памяти, пока вы не закроете страницу.", + "store.quota": "Этот браузер не может хранить больше. Чаты на экране остаются на месте.", + "store.title": "Список чатов не сохранён", + "tab.about": "О программе", + "tab.chat": "Чат", + "tab.images": "Изображения", + "tab.monitor": "Монитор", + "tab.views": "Разделы", + "theme.label": "Переключить светлую и тёмную тему", + "theme.title": "Светлая / тёмная", + "think.done": "Рассуждение", + "think.for": "Думал {s} с", + "think.now": "Думает…", + "toast.copied": "Скопировано в буфер обмена", + "toast.engineError": "движок сообщил об ошибке", + "toast.httpAnswer": "Сервер ответил HTTP {code}.", + "toast.keyAbout": "Этому серверу нужен ключ: укажите его в разделе «О программе» > «Настройки».", + "toast.keyAbout2": "Нужен ключ API: укажите его в разделе «О программе» > «Настройки».", + "toast.keyNeeded": "Этому серверу нужен ключ API: укажите его в разделе «О программе» > «Настройки».", + "toast.requestFailed": "Запрос не удался", + "tool.arguments": "Аргументы", + "tool.beingWritten": "(пишется)", + "tool.chars": "{n} симв.", + "tool.cut": ", сокращено для модели", + "tool.done": "Готово", + "tool.error": "Ошибка", + "tool.result": "Результат", + "tool.running": "Выполняется", + "tool.skipped": "Не выполнен", + "tool.writing": "Пишется", + "undo": "Отменить" +} diff --git a/serve/web/locales/zh.json b/serve/web/locales/zh.json new file mode 100644 index 00000000..773d5f60 --- /dev/null +++ b/serve/web/locales/zh.json @@ -0,0 +1,249 @@ +{ + "branch.back": "回到原聊天", + "branch.from": "分支自“{title}”", + "branch.open": "打开原聊天", + "branch.started": "已创建分支", + "branch.startedText": "你之前所在的聊天没有改变,仍在左侧列表中。", + "branch.title": "{title} 的分支", + "busy.stillWriting": "仍在生成", + "busy.stopFirst": "请先停止回答。", + "cancel": "取消", + "chat.clearedToast": "上一个聊天已清空。", + "chat.copy": "复制", + "chat.copyAnswer": "复制回答", + "chat.deleted": "聊天已删除", + "chat.empty": "想问什么都可以", + "chat.emptyModel": "{model} 运行在这台电脑上,不会向外发送任何内容。", + "chat.image": "图片", + "chat.interrupted": "已打断", + "chat.interruptedLower": "已打断", + "chat.new": "新聊天", + "chat.newToast": "新聊天", + "chat.newToastText": "之前的聊天在左侧列表中。", + "chat.projectionOff": "投影关闭", + "chat.projectionOn": "投影开启", + "chat.stopped": "已停止", + "chat.stoppedLower": "已停止", + "chat.tokens": "{n} 个 token", + "chat.toolCalls": {"other": "{n} 次工具调用"}, + "chat.toolLimit": "已在 {n} 轮工具调用的上限处停止 (mcp.max_rounds)", + "chat.untitled": "新聊天", + "chat.you": "你", + "close": "关闭", + "code.copy": "复制代码", + "code.label": "代码", + "composer.attach": "附加文本文件 (也可拖到这里)", + "composer.attachLabel": "附加文件", + "composer.attachPictures": "附加文本文件或图片 (也可拖到这里)", + "composer.finishOpen": "请先保存或取消上方打开的内容,再继续", + "composer.hintInterject": "按 Enter 会在此处停止回答并立即发送", + "composer.hintQueue": "按 Enter 会在回答结束后发送", + "composer.message": "消息", + "composer.newline": "Shift+Enter: 换行", + "composer.placeholder": "想问什么都可以…", + "composer.save": "将此聊天保存为 Markdown", + "composer.saveLabel": "保存此聊天", + "composer.send": "发送", + "composer.stop": "停止", + "drawer.apply": "应用", + "drawer.busy": "回答过程中发送消息时", + "drawer.busyInterject": "打断", + "drawer.busyInterjectNote": "回答会在当前位置停止 (已写的内容保留),你的消息立即发出。正在运行的工具会先完成。", + "drawer.busyQueue": "结束后发送", + "drawer.busyQueueNote": "你的消息会等待,回答一结束就发出。", + "drawer.busyWait": "等待", + "drawer.busyWaitNote": "回答结束前无法发送,和以前一样。", + "drawer.chats": "聊天", + "drawer.edit": "编辑和回退消息", + "drawer.editNote": "编辑回答、要求重新生成,或回到更早的消息 (可撤销)", + "drawer.greedy": "0 · 确定性", + "drawer.high": "高", + "drawer.list": "已保存聊天列表", + "drawer.listNote": "把每个聊天保存在左侧列表中,仅保存在此浏览器内。关闭: 和以前一样只有一个聊天", + "drawer.low": "低", + "drawer.math": "渲染公式", + "drawer.mathNote": "把回答中的公式绘制成数学公式 (可离线使用)", + "drawer.maxTokens": "最大 token 数", + "drawer.maxTokensNote": "留空 = 直到完成", + "drawer.mcp": "使用 MCP 服务器的工具", + "drawer.medium": "中", + "drawer.off": "关", + "drawer.random": "随机", + "drawer.reset": "重置", + "drawer.saved": "聊天设置已保存", + "drawer.savedGreedy": "确定性: 同一个问题得到同一个回答。", + "drawer.savedHere": "已保存在这里,但未用于其他应用", + "drawer.savedOwn": "其他应用重新使用它们自己的设置。", + "drawer.savedShared": "其他应用 (omp、API 客户端) 从下一次请求起使用这些设置。", + "drawer.seed": "种子", + "drawer.seedNote": "留空 = 随机", + "drawer.share": "也用于其他应用", + "drawer.shareNote": "omp 等 API 客户端未自行设置的项目会使用这些设置", + "drawer.short": "设置", + "drawer.showThinking": "显示思考过程", + "drawer.showThinkingNote": "生成时保持展开", + "drawer.temperature": "温度", + "drawer.temperatureNote": "0 = 总是选概率最高的词 (精确、可重复)", + "drawer.thinkHigh": "深入 (默认)", + "drawer.thinkLow": "简短", + "drawer.thinkMedium": "适中", + "drawer.thinkNone": "立即回答", + "drawer.thinking": "思考", + "drawer.title": "聊天设置", + "drawer.untilDone": "直到完成", + "export.nothing": "还没有可保存的内容", + "file.big": "文件太大", + "file.bigText": "{name} 超过 512 KB。", + "file.binaryText": "{name} 看起来是二进制文件。", + "file.notText": "不是文本文件", + "file.notTextOnly": "{name}: 请附加文本文件 (代码、笔记、日志、数据)。", + "file.notTextPictures": "{name}: 请附加文本文件 (代码、笔记、日志、数据) 或图片。", + "file.pasted": "粘贴的图片", + "file.pictureBig": "图片太大", + "file.pictureBigText": "{name} 超过 20 MB。", + "file.picturesOff": "图片功能已关闭", + "file.picturesOffText": "此模型只按文本方式设置。", + "file.remove": "移除", + "group.month": "过去 30 天", + "group.older": "更早", + "group.today": "今天", + "group.week": "过去 7 天", + "group.yesterday": "昨天", + "hist.editAnswer": "编辑回答", + "hist.editAnswerTitle": "修改回答的文字。不会发送请求。", + "hist.editLabel": "编辑回答", + "hist.editNote": "该回答之前的思考过程和工具调用会被移除。不会发送请求。", + "hist.editRemoves": {"other": "保存会隐藏其后的 {n} 条消息。"}, + "hist.edited": "已编辑", + "hist.editedHidden": {"other": "回答已编辑,隐藏了 {n} 条消息"}, + "hist.editedOnly": "回答已编辑", + "hist.empty": "回答是空的", + "hist.emptyText": "保存前请先写点内容。", + "hist.finishFirst": "请先完成打开着的内容", + "hist.finishFirstText": "保存它,或点击取消。", + "hist.hidden": {"other": "已隐藏 {n} 条消息"}, + "hist.lostText": "此浏览器只保留了名称,没有保留内容。请开始新聊天并重新附加。", + "hist.lostText2": "此浏览器只保留了名称,没有保留内容。请重新附加。", + "hist.lostTitle": "需要重新添加附件", + "hist.nothingHidden": "已回到这条消息", + "hist.pendingFirst": "有一条消息正在等待", + "hist.pendingFirstText": "请先发送它,或把它取回。", + "hist.regenerate": "重新生成", + "hist.regenerateTitle": "要求对这个问题给出新的回答。工具可能会再次运行。", + "hist.replaced": "回答已替换", + "hist.rewind": "回退到此处", + "hist.rewindTitle": "回到聊天中的这个位置", + "hist.save": "保存", + "math.source": "公式源码 ({reason})", + "model.alreadyUnloaded": "已经卸载", + "model.busy": "模型正忙", + "model.confirmUnload": "要卸载模型并释放 GPU 吗?点击“加载”或发送下一条消息即可恢复。", + "model.fewMinutes": "这可能需要几分钟。", + "model.gpuFree": "GPU 已空闲。点击“加载”或发送下一条消息即可恢复模型。", + "model.gpuInUse": "GPU 正在使用。", + "model.imageBusy": "正在生成图片,会自行结束。", + "model.imageLoading": "图片任务已在加载模型", + "model.imageLoadingDot": "图片任务已在加载模型。", + "model.load": "加载", + "model.loadFailed": "加载失败", + "model.loadTitle": "立即加载模型。发送消息也会加载。", + "model.loaded": "模型已加载", + "model.loading": "正在加载…", + "model.loadingTitle": "模型正在加载", + "model.loadingToast": "正在加载模型", + "model.noAnswer": "服务器没有响应。", + "model.replyLoading": "回答已在加载模型", + "model.replyLoadingDot": "回答已在加载模型。", + "model.stopFirst": "先停止回答,再卸载", + "model.stopFirstDot": "请先停止回答,再卸载。", + "model.unload": "卸载", + "model.unloadFailed": "卸载失败", + "model.unloadTitle": "卸载模型并释放 GPU", + "model.unloaded": "模型已卸载", + "model.unloading": "正在卸载…", + "model.unloadingTitle": "模型正在卸载", + "model.unsupported": "无法卸载", + "model.waiting": "正在等待服务器", + "pending.afterTool": "等工具完成后发送:“{text}”", + "pending.cutting": "停止回答后发送:“{text}”", + "pending.one": "已经有一条消息在等待", + "pending.oneText": "请取回它,或等它发送出去。", + "pending.queued": "本次回答结束后发送:“{text}”", + "pending.ready": "尚未发送:“{text}”", + "pending.send": "发送", + "pending.sendNow": "立即发送", + "pending.takeBack": "取回", + "pill.connecting": "正在连接…", + "pill.generating": "生成中 · {rate} tok/s", + "pill.idle": "空闲", + "pill.image": "正在生成图片…", + "pill.keyNeeded": "需要 API 密钥", + "pill.queued": "排队 {n} 个", + "pill.reading": "正在读取提示词", + "pill.readingPct": "正在读取提示词 · {pct}%", + "pill.unloaded": "已卸载", + "pill.unreachable": "无法连接服务器", + "preview.confirm": "要带脚本运行这段代码吗?\n\n它在你的浏览器中运行,与此聊天和网络隔离,但仍可能让标签页卡死,而且这是模型写的代码。\n\n仅限这一块,且只到你关闭预览为止。", + "preview.runScripts": "运行脚本", + "preview.showCode": "显示代码", + "preview.showPage": "预览页面", + "preview.showSvg": "预览图片", + "preview.stopScripts": "停止脚本", + "preview.titlePage": "页面预览", + "preview.titleSvg": "图片预览", + "rewind.branch": "从此处分支", + "rewind.branchAnswerText": "用到这条回答为止的消息开始一个新聊天。当前聊天保持原样。", + "rewind.branchUserText": "用这条消息之前的消息开始一个新聊天,并把你的消息放进它的输入框。当前聊天保持原样。", + "rewind.hereAnswer": "从此处继续", + "rewind.hereAnswerText": "隐藏这条回答之后的消息。点“撤销”可以恢复。", + "rewind.hereUser": "在此编辑并重新发送", + "rewind.hereUserText": "隐藏这条消息及其后的消息,并把你的消息放进下方输入框。点“撤销”可以恢复。", + "rewind.noList": "想改为从这里开始新聊天,请在聊天设置中打开“已保存聊天列表”。", + "rewind.title": "回退到此处", + "settings.language": "语言", + "settings.languageNote": "聊天、聊天设置和上方的按钮已翻译。监控、图片和关于页面仍是英文。", + "sidebar.collapse": "收起聊天列表", + "sidebar.delete": "删除此聊天", + "sidebar.deleteShort": "删除", + "sidebar.expand": "展开聊天列表", + "sidebar.foot": {"other": "{n} 个聊天 · 保存在此浏览器中"}, + "sidebar.nameFor": "此聊天的名称", + "sidebar.noMatch": "没有匹配的聊天", + "sidebar.none": "还没有聊天", + "sidebar.rename": "重命名此聊天", + "sidebar.renameShort": "重命名", + "sidebar.search": "搜索聊天", + "sidebar.title": "聊天", + "store.failed": "无法保存聊天列表。屏幕上的聊天仍在。", + "store.memory": "此浏览器不会保存聊天列表。它只留在内存中,关闭页面后就没有了。", + "store.quota": "此浏览器无法再保存更多内容。屏幕上的聊天仍在。", + "store.title": "聊天列表未保存", + "tab.about": "关于", + "tab.chat": "聊天", + "tab.images": "图片", + "tab.monitor": "监控", + "tab.views": "视图", + "theme.label": "在浅色和深色之间切换", + "theme.title": "浅色 / 深色", + "think.done": "思考", + "think.for": "思考了 {s} 秒", + "think.now": "正在思考…", + "toast.copied": "已复制到剪贴板", + "toast.engineError": "引擎报告了错误", + "toast.httpAnswer": "服务器返回了 HTTP {code}。", + "toast.keyAbout": "此服务器需要密钥: 请在“关于”>“设置”中填写。", + "toast.keyAbout2": "需要 API 密钥: 请在“关于”>“设置”中填写。", + "toast.keyNeeded": "此服务器需要 API 密钥: 请在“关于”>“设置”中填写。", + "toast.requestFailed": "请求失败", + "tool.arguments": "参数", + "tool.beingWritten": "(正在写入)", + "tool.chars": "{n} 个字符", + "tool.cut": ",已为模型截短", + "tool.done": "完成", + "tool.error": "错误", + "tool.result": "结果", + "tool.running": "运行中", + "tool.skipped": "未运行", + "tool.writing": "正在写入", + "undo": "撤销" +} diff --git a/tools/web_i18n.py b/tools/web_i18n.py index 747f1101..f40f8c27 100644 --- a/tools/web_i18n.py +++ b/tools/web_i18n.py @@ -120,7 +120,7 @@ def html_strings(src: str) -> dict: def english() -> dict: """Every key in serve/web with its English text; the same key twice must have the same text.""" out: dict = {} - sources = {p.name: js_strings(p.read_text(encoding="utf-8"), p.name) for p in sorted(WEB.glob("*.js"))} + sources = {p.name: js_strings(p.read_text(encoding="utf-8"), p.name) for p in sorted(WEB.glob("*.js")) if p.name != "i18n.js"} sources["index.html"] = html_strings((WEB / "index.html").read_text(encoding="utf-8")) for name, found in sources.items(): for key, value in found.items(): diff --git a/tools/webtest/browser_test.mjs b/tools/webtest/browser_test.mjs index 9b2ec42f..b0f7846b 100644 --- a/tools/webtest/browser_test.mjs +++ b/tools/webtest/browser_test.mjs @@ -601,6 +601,51 @@ htest("history: another chat or New chat does not lose a waiting message", async await page.close(); }); +// ------------------------------------------------------------------------------------------------ language +htest("language: English until the user picks one; a pick translates the chat and is kept", async ({ browser, mock }) => { + const page = await openPage(browser, mock, { seed: on() }); + assert.equal(await page.evaluate(() => StrataI18n.lang), "en"); + assert.equal(await page.$eval("html", (e) => e.lang), "en"); + assert.equal(await page.$eval("#tab-btn-chat", (e) => e.textContent.trim()), "Chat"); + await page.evaluate(() => { document.getElementById("tab-btn-about").click(); }); + await page.select("#lang", "de"); + await page.waitForFunction(() => StrataI18n.lang === "de"); + assert.equal(await page.$eval("html", (e) => e.lang), "de"); + assert.equal(await page.$eval("#tab-btn-chat", (e) => e.textContent.trim()), "Chat"); + assert.equal(await page.$eval("#tab-btn-about", (e) => e.textContent.trim()), "Info"); + await page.evaluate(() => { document.getElementById("tab-btn-chat").click(); }); + assert.equal(await page.$eval("#input", (e) => e.placeholder), "Fragen Sie, was Sie möchten…"); + await ask(page, "hallo"); + assert.equal(await page.$eval(".st-msg--user .st-msg__meta", (e) => e.textContent.startsWith("Sie · ")), true); + assert.equal(await page.$eval(".history-actions button:last-child", (e) => e.textContent), "Bis hier zurückgehen"); + assert.equal(await page.$eval("#sidebar-foot", (e) => e.textContent), "1 Chat · in diesem Browser gespeichert"); + await page.reload({ waitUntil: "networkidle0" }); + assert.equal(await page.evaluate(() => StrataI18n.lang), "de", "kept in this browser"); + await page.select("#lang", "en"); + await page.waitForFunction(() => StrataI18n.lang === "en"); + assert.equal(await page.$eval("#input", (e) => e.placeholder), "Ask anything…"); + assert.deepEqual(page.errors.filter((e) => !e.includes("404")), [], "(About asks for /config, which the mock does not have)"); + await page.close(); +}); + +htest("language: /?lang= is for one visit, an unknown code stays English, every language loads", async ({ browser, mock }) => { + let page = await openPage(browser, mock, { query: "?lang=ru" }); + assert.equal(await page.$eval("#send-btn", (e) => e.getAttribute("aria-label")), "Отправить"); + assert.equal(await page.evaluate(() => localStorage.getItem("strata.lang")), null, "not remembered"); + await page.close(); + page = await openPage(browser, mock, { query: "?lang=xx" }); + assert.equal(await page.evaluate(() => StrataI18n.lang), "en"); + await page.close(); + for (const lang of ["de", "es", "ja", "ko", "pt", "ru", "zh"]) { + page = await openPage(browser, mock, { query: "?lang=" + lang, seed: on() }); + assert.equal(await page.evaluate(() => StrataI18n.lang), lang); + assert.notEqual(await page.$eval("#send-btn", (e) => e.getAttribute("aria-label")), "Send", lang); + await ask(page, "hello " + lang); + assert.deepEqual(page.errors, [], lang); + await page.close(); + } +}); + const mock = await startMock(); const browser = await launch(); await run(async () => ({ browser, mock, close: async () => { await browser.close(); await mock.stop(); } })); From 40e78366bc6ae20986a8e706c1d822c53c0a8c4c Mon Sep 17 00:00:00 2001 From: Niko1221 <Niko1221@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:23:06 +0100 Subject: [PATCH 49/52] Web page: German and dark screenshots in tools/webtest/shots.mjs --- tools/webtest/shots.mjs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/webtest/shots.mjs b/tools/webtest/shots.mjs index 5c00ca8e..0462108a 100644 --- a/tools/webtest/shots.mjs +++ b/tools/webtest/shots.mjs @@ -124,6 +124,24 @@ const shots = [ await sleep(1500); return p; }], + ["18-german-chat", async () => { + const p = await openPage(browser, mock, { width: 1280, height: 800, query: "?lang=de", seed: { chat: CHAT, ...on() } }); + await p.evaluate(() => { openRewind(2); }); + await sleep(200); + return p; + }], + ["19-german-chat-settings", async () => { + const p = await openPage(browser, mock, { width: 1280, height: 900, query: "?lang=de", seed: { chat: CHAT } }); + await p.click("#sampling-btn"); await sleep(500); + await p.$eval(".st-drawer__body", (e) => { e.scrollTop = e.scrollHeight; }); + await sleep(200); + return p; + }], + ["20-dark-saved-chats", async () => { + const p = await openPage(browser, mock, { width: 1280, height: 800, dark: true, seed: { chat: CHAT, ...on() } }); + await seedChats(p); + return p; + }], ["17-narrow-wide-mid-900", async () => openPage(browser, mock, { width: 900, height: 700, seed: { chat: CHAT, ...on() } })], ]; From 52a558abbed8415104ece1b66fdd8ea16c7d853e Mon Sep 17 00:00:00 2001 From: Niko1221 <Niko1221@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:57:57 +0100 Subject: [PATCH 50/52] App: French as the ninth interface language (#3970) fr.json, fix-fr.json, tune-fr.json and tools-fr.json (3,654 strings, vous, plain short words), the Francais entry in the language picker, every locale test and gap check now covers fr, a french-catalog test (spacing before ? ! : ;, apostrophes, short labels, no leftover English), scripts/fr_sync.py to list and merge strings added later, and scripts/language-shots.mjs for screenshots of the app in one language. --- apps/host/README.md | 12 + apps/host/scripts/fr_sync.py | 156 + apps/host/scripts/language-shots.mjs | 64 + apps/host/server/agent/context-fit.mjs | 2 +- apps/host/server/agent/turn-guard.mjs | 2 +- apps/host/src/lib/i18n.ts | 10 +- apps/host/src/locales/fix-fr.json | 81 + apps/host/src/locales/fr.json | 3530 +++++++++++++++++ apps/host/src/locales/tools-fr.json | 6 + apps/host/src/locales/tune-fr.json | 45 + apps/host/tests/agent-events.test.mjs | 4 +- apps/host/tests/agent-status.test.mjs | 4 +- apps/host/tests/agent-turn-guard.test.mjs | 4 +- apps/host/tests/card-labels.test.mjs | 2 +- apps/host/tests/context-ui.test.mjs | 6 +- apps/host/tests/cors-help.test.mjs | 4 +- apps/host/tests/deepseek-context.test.mjs | 4 +- apps/host/tests/drafting.test.mjs | 6 +- apps/host/tests/french-catalog.test.mjs | 60 + .../host/tests/languages-and-catalog.test.mjs | 2 +- apps/host/tests/locale-gaps.test.mjs | 4 +- apps/host/tests/mcp-rows.test.mjs | 2 +- apps/host/tests/models-folder.test.mjs | 4 +- apps/host/tests/plain-errors.test.mjs | 4 +- apps/host/tests/qa1-downloads.test.mjs | 2 +- apps/host/tests/reliability.test.mjs | 2 +- apps/host/tests/run-config-check.test.mjs | 4 +- apps/host/tests/speed-switches.test.mjs | 4 +- apps/host/tests/tools-locales.test.mjs | 2 +- apps/host/tests/tune-locales.test.mjs | 2 +- apps/host/tests/web-ask.test.mjs | 4 +- tests/terminal/test_drafting.py | 2 +- 32 files changed, 3999 insertions(+), 41 deletions(-) create mode 100644 apps/host/scripts/fr_sync.py create mode 100644 apps/host/scripts/language-shots.mjs create mode 100644 apps/host/src/locales/fix-fr.json create mode 100644 apps/host/src/locales/fr.json create mode 100644 apps/host/src/locales/tools-fr.json create mode 100644 apps/host/src/locales/tune-fr.json create mode 100644 apps/host/tests/french-catalog.test.mjs diff --git a/apps/host/README.md b/apps/host/README.md index 25c8f531..182a525b 100644 --- a/apps/host/README.md +++ b/apps/host/README.md @@ -10,3 +10,15 @@ npm run preview:ui The built UI is included. To rebuild after source edits, run `npm run build`. `preview:ui` uses isolated simulated data; `npm run dev` connects the normal host. The previous project README is retained in [docs/README-historical.md](docs/README-historical.md). It contains older implementation status and is historical reference. + +## Languages + +The app speaks English, Chinese, Japanese, German, French, Spanish, Russian, Portuguese and Korean. The English text is the key: `src/locales/en.json` +(with `fix-en.json`, `tune-en.json` and `tools-en.json`) holds every string, and each language has the same four files (`fr.json`, `fix-fr.json`, ...). + +- **A new string.** Write it with `tr("...")`, then add it to the English catalog (`node scripts/append-localization.mjs`, or the next `fx` number in + `scripts/make-fix-locales.py`). The language tests fail until every language has it. +- **French.** `python scripts/fr_sync.py missing todo.tsv` lists the English strings that have no French yet, one per line (`id`, a tab, the text). + Translate the second column ("vous", short plain words, one next step; a lone `=` keeps the English), then `python scripts/fr_sync.py apply todo.tsv` merges it + (it also sets the French spacing before `: ; ? !` and the typographic apostrophe) and `python scripts/fr_sync.py check` confirms nothing is missing. +- **Screenshots in a language.** `npm run build`, then `node scripts/language-shots.mjs fr <folder> models settings setup` (hermetic preview host, scratch profile, headless Chrome). diff --git a/apps/host/scripts/fr_sync.py b/apps/host/scripts/fr_sync.py new file mode 100644 index 00000000..90bf8970 --- /dev/null +++ b/apps/host/scripts/fr_sync.py @@ -0,0 +1,156 @@ +"""French (fr) catalog tooling for the desktop app (#3970). + +The French texts live in src/locales/fr.json, fix-fr.json, tune-fr.json and tools-fr.json, next to the other languages. +They are edited by hand (they are the translations, not generated), so a string added to an English catalog later has no +French yet. This script lists and merges those. From apps/host: + + python scripts/fr_sync.py missing [out.tsv] write every English string that has no French yet + python scripts/fr_sync.py apply done.tsv merge translations, rewrite the four fr files in English key order + python scripts/fr_sync.py check exit 1 if a French string is missing, empty or breaks a placeholder / tag + +The TSV has one string per line: <id><TAB><text>. In the text, a newline is written \\n and a backslash \\\\. +In the "done" file a lone = means "keep the English text as it is" (class names, product names, file names). +The id prefix picks the file: s0001 -> fr.json, fx01 -> fix-fr.json, tune01 -> tune-fr.json, tl01 -> tools-fr.json. +Use "vous", plain short words, a next step, and a no-break space (U+00A0) before : ; ? ! and inside guillemets. +""" +import json +import re +import sys +from pathlib import Path + +LOCALES = Path(__file__).resolve().parent.parent / "src" / "locales" +PAIRS = [("en.json", "fr.json"), ("fix-en.json", "fix-fr.json"), ("tune-en.json", "tune-fr.json"), ("tools-en.json", "tools-fr.json")] +SLOT = re.compile(r"\{\d+\}") +TAG = re.compile(r"</?[A-Za-z][^>]*>") + + +def load(name): + path = LOCALES / name + return json.loads(path.read_text(encoding="utf-8")) if path.exists() else {} + + +def file_of(identifier): + for en_name, fr_name in PAIRS: + if identifier in load(en_name): + return fr_name + raise SystemExit(f"unknown id {identifier}: it is in no English catalog") + + +def escape(text): + return text.replace("\\", "\\\\").replace("\n", "\\n") + + +def unescape(text): + out, i = [], 0 + while i < len(text): + if text[i] == "\\" and i + 1 < len(text): + out.append({"n": "\n", "\\": "\\"}.get(text[i + 1], text[i + 1])) + i += 2 + else: + out.append(text[i]) + i += 1 + return "".join(out) + + +NBSP = " " + + +def typography(text): + """French spacing and apostrophes, applied to every translated (not kept) string. + l'image -> l'image with a typographic apostrophe (also before a {0} slot); a no-break space before : ; ? ! % and inside the guillemets.""" + text = re.sub(r"(?<=[A-Za-zÀ-ſ])'(?=[A-Za-zÀ-ſ{])", "’", text) + text = re.sub(r"(?<=\S) ([:;?!])", NBSP + r"\1", text) + text = re.sub(r"(?<=[\d}]) %", NBSP + "%", text) + text = re.sub("« ?", "«" + NBSP, text) + text = re.sub(" ?»", NBSP + "»", text) + return text + + +def problems(identifier, source, text): + found = [] + if not text.strip(): + found.append("empty") + expected = [slot for slot in SLOT.findall(source) if not (identifier == "s2463" and slot == "{1}")] # the tests allow this one to drop {1} (the plural suffix) + if sorted(expected) != sorted(SLOT.findall(text)): + found.append("placeholders differ") + if sorted(TAG.findall(source)) != sorted(TAG.findall(text)): + found.append("markup differs") + return found + + +def missing(): + todo = {} + for en_name, fr_name in PAIRS: + en, fr = load(en_name), load(fr_name) + for identifier, text in en.items(): + if identifier not in fr: + todo[identifier] = text + return todo + + +def main(argv): + command = argv[1] if len(argv) > 1 else "" + if command == "missing": + todo = missing() + lines = [f"{identifier}\t{escape(text)}" for identifier, text in todo.items()] + if len(argv) > 2: + Path(argv[2]).write_text("\n".join(lines) + ("\n" if lines else ""), encoding="utf-8") + print(f"{len(lines)} strings without French written to {argv[2]}") + else: + print("\n".join(lines)) + print(f"{len(lines)} strings without French", file=sys.stderr) + return 0 + if command == "apply" and len(argv) > 2: + incoming = {} + for number, line in enumerate(Path(argv[2]).read_text(encoding="utf-8").splitlines(), 1): + if not line.strip(): + continue + if "\t" not in line: + raise SystemExit(f"{argv[2]}:{number}: no tab") + identifier, text = line.split("\t", 1) + incoming[identifier.strip()] = text + bad = 0 + for en_name, fr_name in PAIRS: + en, fr = load(en_name), load(fr_name) + changed = False + for identifier, source in en.items(): + if identifier in incoming: + text = source if incoming[identifier] == "=" else typography(unescape(incoming[identifier])) + for why in problems(identifier, source, text): + print(f"{identifier}: {why}: {source!r} -> {text!r}") + bad += 1 + fr[identifier] = text + changed = True + if changed: + ordered = {identifier: fr[identifier] for identifier in en if identifier in fr} + (LOCALES / fr_name).write_text(json.dumps(ordered, ensure_ascii=False, indent=1 if en_name != "en.json" else 2) + "\n", encoding="utf-8") + unknown = [identifier for identifier in incoming if not any(identifier in load(en_name) for en_name, _ in PAIRS)] + for identifier in unknown: + print(f"{identifier}: not in any English catalog") + bad += 1 + print(f"applied {len(incoming)} strings, {bad} problems") + return 1 if bad else 0 + if command == "check": + bad = 0 + for en_name, fr_name in PAIRS: + en, fr = load(en_name), load(fr_name) + for identifier, source in en.items(): + if identifier not in fr: + print(f"{fr_name}: {identifier} has no French yet: {source!r}") + bad += 1 + continue + for why in problems(identifier, source, fr[identifier]): + print(f"{fr_name}: {identifier}: {why}") + bad += 1 + for identifier in fr: + if identifier not in en: + print(f"{fr_name}: {identifier} is not in {en_name}") + bad += 1 + print("French catalogs complete" if not bad else f"{bad} problems") + return 1 if bad else 0 + print(__doc__) + return 2 + + +if __name__ == "__main__": + raise SystemExit(main(sys.argv)) diff --git a/apps/host/scripts/language-shots.mjs b/apps/host/scripts/language-shots.mjs new file mode 100644 index 00000000..4a371007 --- /dev/null +++ b/apps/host/scripts/language-shots.mjs @@ -0,0 +1,64 @@ +#!/usr/bin/env node +/** + * Screenshots of the app screens in one interface language, from a hermetic preview host (simulated hardware and models, + * scratch profile, no engine, no weights). The browser is a throw-away headless Chrome profile. + * + * node scripts/language-shots.mjs <lang> <outDir> [route ...] (needs `npm run build` first) + * example: node scripts/language-shots.mjs fr C:/Users/me/Desktop/fr-screens models settings setup + * + * Env: CHROME (path to Chrome/Edge), WIDTH (default 1280), HEIGHT (default 800). + */ +import { spawn } from 'node:child_process'; +import { chromium } from 'playwright-core'; +import { existsSync, mkdirSync, mkdtempSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join, resolve } from 'node:path'; + +const root = resolve(import.meta.dirname, '..'); +const [, , language = 'fr', outDir = 'language-shots', ...routes] = process.argv; +const screens = routes.length ? routes : ['models', 'settings', 'setup']; +if (!existsSync(join(root, 'dist/index.html'))) { console.error('Run npm run build first.'); process.exit(1); } +const chrome = process.env.CHROME ?? ['C:/Program Files/Google/Chrome/Application/chrome.exe', 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe', '/usr/bin/google-chrome', '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'].find(existsSync); +if (!chrome) { console.error('No Chrome or Edge found; set CHROME.'); process.exit(1); } + +const home = mkdtempSync(join(tmpdir(), 'strata-language-shots-')); +const hostPort = 8830 + Math.floor(Math.random() * 40), webPort = hostPort + 100; +const scratch = { STRATA_HOME: home, STRATA_MODELS_DIR: join(home, 'models'), STRATA_WORKSPACE: home, STRATA_REAL_ENGINE: '0', STRATA_NATIVE_REPO: join(home, 'no-native-installation'), + STRATA_SETTINGS_FILE: join(home, 'app-settings.json'), STRATA_COMPONENTS_DIR: join(home, 'components'), LOCALAPPDATA: join(home, 'Local'), APPDATA: join(home, 'Roaming'), + XDG_DATA_HOME: join(home, 'xdg-data'), XDG_STATE_HOME: join(home, 'xdg-state'), XDG_CONFIG_HOME: join(home, 'xdg-config'), STRATA_PORT: String(hostPort) }; +const children = []; +const run = (args, extra = {}) => { const child = spawn(process.execPath, args, { cwd: root, env: { ...process.env, ...scratch, ...extra }, stdio: 'ignore' }); children.push(child); return child; }; +const stop = () => { for (const child of children) { try { child.kill(); } catch {} } try { rmSync(home, { recursive: true, force: true }); } catch {} }; +process.on('exit', stop); + +run(['server/index.mjs']); +for (let attempt = 0; ; attempt++) { + try { if ((await fetch(`http://127.0.0.1:${hostPort}/api/health`)).ok) break; } catch {} + if (attempt > 200) { console.error('The preview host did not start.'); process.exit(1); } + await new Promise(done => setTimeout(done, 150)); +} +run(['tests/fixtures/onboarding-ui-host.mjs'], { STRATA_UI_PREVIEW: '1', STRATA_ONBOARDING_UPSTREAM: `http://127.0.0.1:${hostPort}`, STRATA_ONBOARDING_PORT: String(webPort), STRATA_ONBOARDING_START: 'ready', STRATA_ONBOARDING_SCENARIO: 'telemetry', STRATA_ONBOARDING_PREVIEW: '1' }); +for (let attempt = 0; ; attempt++) { + try { if ((await fetch(`http://127.0.0.1:${webPort}/`)).ok) break; } catch {} + if (attempt > 200) { console.error('The preview page did not start.'); process.exit(1); } + await new Promise(done => setTimeout(done, 150)); +} + +mkdirSync(resolve(outDir), { recursive: true }); +const browser = await chromium.launch({ executablePath: chrome, headless: true, args: ['--no-sandbox', '--disable-gpu', '--force-device-scale-factor=1'] }); +const page = await browser.newPage({ viewport: { width: Number(process.env.WIDTH ?? 1280), height: Number(process.env.HEIGHT ?? 800) }, deviceScaleFactor: 1 }); +await page.addInitScript(code => { try { localStorage.setItem('strata.prefs.v2', JSON.stringify({ language: code, onboardingSeen: true })); } catch {} }, language); +const problems = []; +page.on('pageerror', error => problems.push(`pageerror: ${error.message}`)); +for (const screen of screens) { + await page.goto(`http://127.0.0.1:${webPort}/#/${screen}`, { waitUntil: 'load' }); + await page.reload({ waitUntil: 'load' }); + await page.waitForTimeout(2500); + const file = join(resolve(outDir), `${language}-${screen}.png`); + await page.screenshot({ path: file }); + console.log(`${screen}: ${file} (lang=${await page.evaluate(() => document.documentElement.lang)})`); +} +await browser.close(); +if (problems.length) console.log(problems.join('\n')); +stop(); +process.exit(0); diff --git a/apps/host/server/agent/context-fit.mjs b/apps/host/server/agent/context-fit.mjs index 0abcb08a..7bc12e79 100644 --- a/apps/host/server/agent/context-fit.mjs +++ b/apps/host/server/agent/context-fit.mjs @@ -58,7 +58,7 @@ export async function countTokens({ baseUrl, key = '', model = '', text, fetchIm } catch { return null; } } -/** The plain sentences (also in the interface catalog in all eight languages). `{0}` slots are filled by the page. */ +/** The plain sentences (also in the interface catalog in all nine languages). `{0}` slots are filled by the page. */ export const FIT_TEXT = Object.freeze({ tooLarge: 'This message is about {0} tokens long, and this model can read about {1} at a time. It is too large to send as it is.', tooLargeNext: 'Attach it as a file for the assistant to read in parts, or send a shortened preview.', diff --git a/apps/host/server/agent/turn-guard.mjs b/apps/host/server/agent/turn-guard.mjs index f28ce3f4..14566d5b 100644 --- a/apps/host/server/agent/turn-guard.mjs +++ b/apps/host/server/agent/turn-guard.mjs @@ -10,7 +10,7 @@ * rewrites a plan turn wrote its numbered plan from "1." again this many times * context the context is nearly full: the Harness compaction did not keep up * - * What the person is told is `guardNote`: fixed English sentences that are also in the interface catalog in all eight languages (the page + * What the person is told is `guardNote`: fixed English sentences that are also in the interface catalog in all nine languages (the page * translates a `delta` frame that carries `key`). Each says what happened and gives one next step. */ diff --git a/apps/host/src/lib/i18n.ts b/apps/host/src/lib/i18n.ts index 952e3ca2..0c398be8 100644 --- a/apps/host/src/lib/i18n.ts +++ b/apps/host/src/lib/i18n.ts @@ -7,6 +7,7 @@ import tune_es from '../locales/tune-es.json'; import tune_ru from '../locales/tune-ru.json'; import tune_pt from '../locales/tune-pt.json'; import tune_ko from '../locales/tune-ko.json'; +import tune_fr from '../locales/tune-fr.json'; import tools_en from '../locales/tools-en.json'; import tools_zh from '../locales/tools-zh.json'; import tools_ja from '../locales/tools-ja.json'; @@ -15,6 +16,7 @@ import tools_es from '../locales/tools-es.json'; import tools_ru from '../locales/tools-ru.json'; import tools_pt from '../locales/tools-pt.json'; import tools_ko from '../locales/tools-ko.json'; +import tools_fr from '../locales/tools-fr.json'; import fix_en from '../locales/fix-en.json'; import fix_zh from '../locales/fix-zh.json'; import fix_ja from '../locales/fix-ja.json'; @@ -23,6 +25,7 @@ import fix_es from '../locales/fix-es.json'; import fix_ru from '../locales/fix-ru.json'; import fix_pt from '../locales/fix-pt.json'; import fix_ko from '../locales/fix-ko.json'; +import fix_fr from '../locales/fix-fr.json'; import base_zh from '../locales/zh.json'; import base_ja from '../locales/ja.json'; import base_de from '../locales/de.json'; @@ -30,15 +33,16 @@ import base_es from '../locales/es.json'; import base_ru from '../locales/ru.json'; import base_pt from '../locales/pt.json'; import base_ko from '../locales/ko.json'; +import base_fr from '../locales/fr.json'; -export const LANGUAGES=[{value:'en',label:'English'},{value:'zh',label:'中文(简体)'},{value:'ja',label:'日本語'},{value:'de',label:'Deutsch'},{value:'es',label:'Español'},{value:'ru',label:'Русский'},{value:'pt',label:'Português'},{value:'ko',label:'한국어'}] as const; +export const LANGUAGES=[{value:'en',label:'English'},{value:'zh',label:'中文(简体)'},{value:'ja',label:'日本語'},{value:'de',label:'Deutsch'},{value:'fr',label:'Français'},{value:'es',label:'Español'},{value:'ru',label:'Русский'},{value:'pt',label:'Português'},{value:'ko',label:'한국어'}] as const; export type Language=typeof LANGUAGES[number]['value']; /* The Tune model dialog's strings live in tune-<lang>.json (apps/host/scripts/make-tune-locales.py) so other interface work does not collide with them. */ /* The tool-server, picture and agent-result strings of the tools and images fixes live in tools-<lang>.json for the same reason. */ /* The strings that had no key in the files above (#3479, #3825) and the 0.2.4.3 fixes live in fix-<lang>.json (scripts/make-fix-locales.py). */ const english:Record<string,string>={...baseEnglish,...tune_en,...tools_en,...fix_en}; -const [zh,ja,de,es,ru,pt,ko]=[{...base_zh,...tune_zh,...tools_zh,...fix_zh},{...base_ja,...tune_ja,...tools_ja,...fix_ja},{...base_de,...tune_de,...tools_de,...fix_de},{...base_es,...tune_es,...tools_es,...fix_es},{...base_ru,...tune_ru,...tools_ru,...fix_ru},{...base_pt,...tune_pt,...tools_pt,...fix_pt},{...base_ko,...tune_ko,...tools_ko,...fix_ko}] as Record<string,string>[]; -const catalogs:Record<Language,Record<string,string>>={en:english,zh,ja,de,es,ru,pt,ko}; +const [zh,ja,de,es,ru,pt,ko,fr]=[{...base_zh,...tune_zh,...tools_zh,...fix_zh},{...base_ja,...tune_ja,...tools_ja,...fix_ja},{...base_de,...tune_de,...tools_de,...fix_de},{...base_es,...tune_es,...tools_es,...fix_es},{...base_ru,...tune_ru,...tools_ru,...fix_ru},{...base_pt,...tune_pt,...tools_pt,...fix_pt},{...base_ko,...tune_ko,...tools_ko,...fix_ko},{...base_fr,...tune_fr,...tools_fr,...fix_fr}] as Record<string,string>[]; +const catalogs:Record<Language,Record<string,string>>={en:english,zh,ja,de,fr,es,ru,pt,ko}; const entities:Record<string,string>={amp:'&',lt:'<',gt:'>',quot:'"',apos:"'",nbsp:'\u00a0'}; const decode=(text:string)=>text.replace(/&(#x[\da-f]+|#\d+|amp|lt|gt|quot|apos|nbsp);/gi,(whole,key:string)=>key[0]==='#'?String.fromCodePoint(key[1].toLowerCase()==='x'?parseInt(key.slice(2),16):parseInt(key.slice(1),10)):entities[key]??whole); const ids=new Map(Object.entries(english).map(([id,value])=>[decode(value),id])); diff --git a/apps/host/src/locales/fix-fr.json b/apps/host/src/locales/fix-fr.json new file mode 100644 index 00000000..0b0ab157 --- /dev/null +++ b/apps/host/src/locales/fix-fr.json @@ -0,0 +1,81 @@ +{ + "fx01": "ne s’exécutera plus et sera retirée.", + "fx02": "Téléchargé, mais pas chargé. Ouvrez Modèles pour le charger.", + "fx03": "{0} lignes ajoutées, {1} supprimées", + "fx04": "{0} fichiers modifiés", + "fx05": "Déposez des fichiers pour les ajouter", + "fx06": "Images et fichiers texte", + "fx07": "Garder l’objectif", + "fx08": "Supprimer l’objectif", + "fx09": "L’assistant cesse de travailler à l’atteindre. Votre conversation et vos fichiers restent comme ils sont.", + "fx10": "Ce modèle peut lire les images, mais le moteur installé ici n’inclut pas encore le lecteur d’images : Lire les images est donc désactivé. Mettez à jour le moteur dans Paramètres → À propos pour l’activer.", + "fx11": "Affichage des valeurs de votre optimisation « {0} ».", + "fx12": "Votre optimisation « {0} » règle", + "fx13": "était {0}", + "fx14": "· {0} de RAM", + "fx15": "Le message n’a pas été annulé", + "fx16": "Réglages supplémentaires pour le programme", + "fx17": "Rédiger avec l’IA", + "fx18": "Temps de réflexion", + "fx19": "Temps de rédaction", + "fx20": "tokens/s", + "fx21": "% du contexte", + "fx22": "Cette page demande des fichiers à internet, que l’aperçu ne charge pas : elle peut donc paraître incomplète. Voir le code montre exactement ce qui a été écrit.", + "fx23": "Garder A", + "fx24": "Garder B", + "fx25": "A pris", + "fx26": "Variante", + "fx27": "Modifié", + "fx28": "Rien", + "fx29": "Les deux versions sont prêtes. Comparez A et B, puis gardez-en une.", + "fx30": "L’assistant répond encore", + "fx31": "Envoyez votre message quand il a terminé.", + "fx32": "Le message n’a pas été mis en file d’attente", + "fx33": "Aller au dernier message", + "fx34": "Retirer la tâche", + "fx35": "Ouvrir une nouvelle conversation ; garder celle-ci", + "fx36": "Faire d’abord rédiger un plan à l’assistant ; rien ne s’exécute tant que vous ne l’avez pas approuvé", + "fx37": "Chercher sur le web, lire les pages et répondre avec des sources", + "fx38": "Copié", + "fx39": "Réponse", + "fx40": "Message", + "fx41": "PDF ajouté", + "fx42": "Sélectionnez le texte et copiez-le avec Ctrl+C.", + "fx43": "{0} est dans cette conversation. Posez une question à son sujet dans votre prochain message.", + "fx44": "Le moteur est prêt.", + "fx45": "Étape suivante : choisir un modèle.", + "fx46": "Téléchargement du moteur", + "fx47": "Vous pouvez fermer Strata ; le téléchargement reprendra là où il s’est arrêté.", + "fx48": "Bienvenue dans Strata", + "fx49": "Examen de votre carte graphique…", + "fx50": "Strata a trouvé votre carte graphique :", + "fx51": "{0} cartes trouvées. Strata utilise la première pour le moteur ; vous pourrez changer cela plus tard dans les Paramètres.", + "fx52": "Strata n’a pas reconnu de carte graphique prise en charge.", + "fx53": "Pour y exécuter des modèles, Strata a besoin d’un téléchargement :", + "fx54": "Le moteur pour cette carte", + "fx55": "Le moteur a besoin d’environ {0} Go d’espace libre sur ce disque et il n’y en a que {1} Go. Libérez de l’espace, puis continuez.", + "fx56": "Il vient du serveur de mise à jour de Strata et il est vérifié avant utilisation. Vos modèles et vos conversations ne sont jamais touchés.", + "fx57": "Strata n’a pas pu joindre github.com. Vérifiez votre connexion et réessayez, ou téléchargez le fichier du moteur sur un autre PC et choisissez-le ici.", + "fx58": "Le moteur installé ici est prévu pour une autre marque de carte graphique.", + "fx59": "Strata ne peut pas choisir de moteur pour ce PC dans sa liste de mises à jour.", + "fx60": "Continuer sans moteur", + "fx61": "Le téléchargement s’est arrêté. Continuer le reprend là où il s’est arrêté.", + "fx62": "C’est un très gros modèle. Le téléchargement fait {0} Go et il faut à peu près autant d’espace disque libre. Il tourne sur une carte graphique de 12 Go avec 46 à 64 Go de RAM, lentement : environ 5 à 7 mots par seconde. Ce qui ne tient pas en mémoire est lu depuis votre SSD, un disque NVMe compte donc beaucoup.", + "fx63": "Vous pouvez arrêter le téléchargement et le continuer plus tard ; il reprend là où il s’est arrêté. Strata vous avertit ici mais ne vous bloque jamais.", + "fx64": "Plus rapide", + "fx65": "Qualité maximale", + "fx66": "Par défaut (Plus rapide sur ce PC)", + "fx67": "Par défaut (Qualité maximale sur ce PC)", + "fx68": "Plus rapide (par défaut sur ce PC)", + "fx69": "Qualité maximale (par défaut sur ce PC)", + "fx70": "Longs prompts plus rapides", + "fx71": "Réponses plus rapides sur Radeon RX 9000 / AI PRO R9700", + "fx72": "Accélérations DeepSeek", + "fx73": "Lit les très longs prompts plus vite en approximant une partie du travail. Désactivé par défaut : les réponses sur de longs documents peuvent manquer ou mélanger des détails.", + "fx74": "Répartit le travail entre la carte graphique et le processeur d’une façon qui accélère les réponses sur ces cartes. Désactivez pour revenir au réglage précédent, plus lent.", + "fx75": "Lit les longs prompts plus vite et charge plus vite les parties du modèle dont il a besoin. Désactivez si DeepSeek cesse de fonctionner ou si ses réponses semblent fausses ; il fonctionne alors comme dans la version 0.2.6.", + "fx76": "Activé (recommandé)", + "fx77": "C’est un très gros modèle. Le téléchargement fait {0} Go et il faut à peu près autant d’espace disque libre. Il tourne sur les cartes NVIDIA RTX 30, 40 et 50, sur une Radeon AI PRO R9700 (Linux) ou sur un PC Ryzen AI Max / Strix Halo (Windows) ; sa vitesse dépend de la mémoire et de la carte (la ligne ci-dessous indique à quoi s’attendre sur cet ordinateur). Ce qui ne tient pas en mémoire est lu depuis votre SSD, un disque NVMe compte donc beaucoup.", + "fx78": "Pas encore testé. Un contexte aussi long prend de la mémoire graphique au modèle et lit lentement les longs prompts.", + "fx79": "Désactivé (recommandé)" +} diff --git a/apps/host/src/locales/fr.json b/apps/host/src/locales/fr.json new file mode 100644 index 00000000..1f9094c4 --- /dev/null +++ b/apps/host/src/locales/fr.json @@ -0,0 +1,3530 @@ +{ + "s0001": "% PCIe", + "s7331": "Les résultats viennent de DuckDuckGo, ou de Bing quand DuckDuckGo est saturé. Vous n’avez besoin ni de compte ni de clé.", + "s7321": "La recherche web est limitée en ce moment, j’ai donc arrêté de chercher et poursuivi avec ce que j’ai. Réessayez dans une minute, ou ajoutez une clé de recherche dans Paramètres → Outils → Recherche web.", + "s7322": "J’ai beaucoup cherché et je me suis arrêté pour que cette conversation ne se remplisse pas. Voici ce que j’ai jusqu’ici. Dites-moi ce qu’il faut explorer ensuite.", + "s7323": "J’ai réécrit le plan plusieurs fois, je m’arrête donc ici avec la dernière version. Dites-moi quoi changer, ou approuvez-la.", + "s7324": "Je n’ai plus de place dans cette conversation, je me suis donc arrêté. Strata résume les anciens messages pour libérer de la place. Dites « continue » pour poursuivre, ou ouvrez une nouvelle conversation.", + "s7325": "Je me suis arrêté sans écrire de réponse. Renvoyez votre message, ou dites « continue ».", + "s7301": "Tapez /loop, la fréquence, puis ce qu’il faut faire. Par exemple : /loop 10m vérifiez si la compilation réussit. Ajoutez « stop after 3 answers » pour l’arrêter tout seul. Tapez /loop stop pour l’arrêter.", + "s7302": "Dites ce qu’il faut faire à chaque fois, pas seulement quand s’arrêter.", + "s7303": "La boucle est terminée : elle s’est exécutée {0} fois, comme demandé. Tapez /loop pour en lancer une autre.", + "s7304": "La boucle s’est arrêtée parce que la dernière réponse indique que le travail est terminé. Tapez /loop pour en lancer une autre.", + "s7305": "La boucle s’est arrêtée parce que le temps que vous aviez fixé est écoulé. Tapez /loop pour en lancer une autre.", + "s7306": "La boucle s’est arrêtée parce que {0} exécutions de suite ont échoué. Vérifiez le modèle, puis tapez /loop pour la relancer.", + "s7307": "Elle s’arrête toute seule après la première réponse.", + "s7308": "Elle s’arrête toute seule après {0} réponses.", + "s7309": "Elle s’arrête toute seule après {0} minutes.", + "s7310": "Elle s’arrête toute seule quand une réponse indique que le travail est terminé.", + "s7311": "Les applications Anthropic ajoutent /v1/messages elles-mêmes : cette adresse ne se termine donc pas par /v1. Dans Claude Code, indiquez-la dans ANTHROPIC_BASE_URL.", + "s0002": "(facultatif)", + "s0003": ", le cache de contexte ne tient pas", + "s0004": "-y @modelcontextprotocol/server-filesystem /your/folder", + "s0005": "0 utilise la valeur par défaut du moteur.", + "s0006": "20 % de marge pour le reste", + "s0007": "Classe 32 Go de RAM", + "s0008": "Classe 48 Go de RAM", + "s0009": "Classe 60–64 Go de RAM", + "s0010": "Classe 8 Go de RAM", + "s0011": "8 testeurs sur 10 terminent l’installation.", + "s0012": "Un serveur Strata tourne déjà en dehors de cette interface. Arrêtez-le avant de charger ici, ou connectez son API dans Paramètres → Modèles.", + "s0013": "Un prompt fixe, sans réflexion, avec jusqu’à 200 tokens de sortie. Dure en général 10 à 60 secondes. Les résultats sont mesurés par votre moteur.", + "s0014": "Une correction ciblée, à partir du même point de départ.", + "s0015": "Un nouveau point de situation, chaque matin", + "s0016": "Un objectif décrit le résultat voulu. Strata planifie le travail, suit son avancement et continue jusqu’à l’atteindre.", + "s0017": "Un bon point de départ.", + "s0018": "Une clé permet à vos autres applications de se connecter à Strata.", + "s0019": "Un petit coup de pouce.", + "s0020": "Un peu de réglage. Un meilleur résultat.", + "s0021": "Bien plus de possibilités.", + "s0022": "Une opération sur un modèle est en cours.", + "s0023": "Un nouveau candidat part du point de départ de B.", + "s0024": "Une visite rapide de Strata", + "s0025": "Un petit exercice quotidien pour affûter votre écriture.", + "s0026": "Une adresse stable sur un domaine que vous gérez avec Cloudflare.", + "s0027": "Une configuration de moteur validée est requise.", + "s0028": "A → B · détail manquant ajouté, aucune vérification en recul.", + "s0029": "API", + "s0030": "URL de base de l’API", + "s0031": "Clé API", + "s0032": "Clé API prête", + "s0033": "Clé API requise", + "s0034": "Clé API enregistrée", + "s0035": "API à l’écoute", + "s0036": "Alias des modèles API", + "s0037": "Les modèles API utilisent les réglages de réponse de leur fournisseur.", + "s0038": "Protocole de l’API", + "s0039": "Fournisseur d’API", + "s0040": "API arrêtée", + "s0041": "À propos", + "s0042": "Au-dessus de 1, le texte répété est découragé.", + "s0043": "Accès", + "s0044": "Accès configuré dans le serveur MCP", + "s0045": "Actions pour {0}", + "s0046": "Actif", + "s0047": "Actives / en file d’attente", + "s0048": "Jours actifs", + "s0049": "Ajoutez un objet de réglages pour débutant.", + "s0050": "Ajoutez un dossier contenant SKILL.md.", + "s0051": "Ajoutez un prompt après /time-skip", + "s0052": "Ajoutez une route d’application publiée pour ce nom d’hôte avec cette URL de service :", + "s0053": "Ajouter une tâche", + "s0054": "Ajouter un dossier de travail", + "s0055": "Ajoutez un objet de réglages experts.", + "s0056": "Ajouter des fichiers ou des photos", + "s0057": "Ajouter un dossier", + "s0058": "Ajoutez des programmes locaux ou des serveurs MCP HTTP. Les outils connectés peuvent lire ou modifier les ressources auxquelles vous leur donnez accès. Activez les outils dans la conversation quand vous voulez que le modèle les utilise.", + "s0059": "Ajouter un modèle", + "s0060": "Ajouter un fournisseur de modèles", + "s0061": "Ajouter des modèles à votre sélecteur de conversation", + "s0062": "Ajouter ou ouvrir", + "s0063": "Ajouter une compétence", + "s0064": "Ajouter aux paramètres", + "s0065": "Ajouter un serveur d’outils", + "s0066": "Ajoutez deux fois, remettez à 0, puis vérifiez à 320 px.", + "s0067": "Vérification de réussite reproductible ajoutée", + "s0068": "Vérification de réussite ajoutée", + "s0069": "Compétences ajoutées", + "s0070": "Ajout…", + "s0071": "Réglages supplémentaires", + "s0072": "Adresse", + "s0073": "Ajuster", + "s0074": "Avancé", + "s0075": "JSON avancé", + "s0076": "Agentique", + "s0077": "Les agents travaillent en parallèle", + "s0078": "Tout", + "s0079": "Tous les GPU ({0})", + "s0080": "Toutes les conversations", + "s0081": "Tous les groupes", + "s0082": "Toutes les couches", + "s0083": "Tous les modèles", + "s0084": "Tous les modèles ({0})", + "s0085": "Tous les processeurs ({0})", + "s0086": "Tous les espaces de travail", + "s0087": "Les {0} modèles chargés seront tous déchargés.", + "s0088": "Autoriser des origines de navigateur", + "s0089": "Déjà attribué à {0}. Effacez ou modifiez d’abord cette association.", + "s0090": "Vous avez déjà téléchargé le modèle ?", + "s0091": "Vous savez déjà vous en servir ?", + "s0092": "Un argument du moteur désigne un fichier GGUF introuvable. Restaurez les arguments enregistrés ou réparez les fichiers.", + "s0093": "GIF animé", + "s0094": "Réponse", + "s0095": "Réponse de", + "s0096": "Anthropic", + "s0097": "Anthropic Messages", + "s0098": "Réflexion Anthropic", + "s0099": "Hôte de l’application :", + "s0100": "Apparence", + "s0101": "Appliqué sous la forme --vram-reserve-mib au chargement.", + "s0102": "Appliquer", + "s0103": "Appliquer la police", + "s0104": "Appliquer maintenant…", + "s0105": "Appliquer les réglages maintenant ?", + "s0106": "Approuver", + "s0107": "Approuvé", + "s0108": "Les applications de cet ordinateur pourront envoyer des requêtes sans clé. Les clients existants peuvent garder leur champ de clé actuel.", + "s0109": "Architecture", + "s0110": "Archivée", + "s0111": "Arguments · un par ligne", + "s0112": "Redemander", + "s0113": "Demander avant de modifier", + "s0114": "Écrivez « spawn subagents » dans la conversation et décrivez les tâches. Des agents distincts peuvent chercher, rédiger et relire en parallèle, puis vous rapporter leur travail.", + "s0115": "Ressource introuvable", + "s0116": "GPU attribués", + "s0117": "Joignez une image PNG, JPEG ou WebP. Les autres images peuvent s’ouvrir dans l’aperçu.", + "s0118": "Joignez jusqu’à trois images par message.", + "s0119": "Outil connecté autorisé", + "s0120": "Optimiser pour mon PC", + "s0121": "Optimiser pour cet ordinateur", + "s0122": "Automatique", + "s0123": "GPU automatique", + "s0124": "La configuration automatique du connecteur n’est pas disponible pour ce système d’exploitation et ce processeur.", + "s0125": "La configuration automatique doit être retentée.", + "s0126": "Automatique utilise le placement GPU de l’installation. Choisissez un GPU, ou répartissez ce modèle sur plusieurs GPU.", + "s0127": "Automatique · GPU 1", + "s0128": "Automatique · tous les GPU", + "s0129": "Automatique · recommandé : 2 048", + "s0130": "Disponible", + "s0131": "Modèles API disponibles", + "s0132": "Disponible dans", + "s0133": "Modèles disponibles", + "s0134": "Délai moyen avant le premier token", + "s0135": "B comble les lacunes et garde les bons éléments de A.", + "s0136": "B est enregistré. Une dernière révision ciblée est en cours dans l’autre flux.", + "s0137": "B sélectionné · les trois vérifications d’exemple réussissent.", + "s0138": "Retour", + "s0139": "Retour à la conversation", + "s0140": "Revenir au réglage recommandé", + "s0141": "Équilibré", + "s0142": "URL de base", + "s0143": "Taille du lot", + "s0144": "En dessous du minimum de 16 Go", + "s0145": "Test de performance", + "s0146": "Tester le modèle", + "s0147": "Le corps doit être du JSON", + "s0148": "Style botanique", + "s0149": "Style botanique conservé", + "s0150": "Créer une branche à partir d’ici", + "s0151": "Rassembler les résultats", + "s0152": "Le stockage du navigateur est plein. Libérez de la place avant d’enregistrer les réglages.", + "s0153": "Création de B à partir du brouillon enregistré.", + "s0154": "Compétences intégrées", + "s0155": "Ignorer les autorisations", + "s0156": "CPU", + "s0157": "Le CPU et le GPU partagent un même pool de mémoire.", + "s0158": "Le CPU et le GPU utilisent le même pool de mémoire. La VRAM partagée n’est comptée qu’une fois dans le total.", + "s0159": "Charge du CPU", + "s0160": "CPU uniquement", + "s0161": "CPU uniquement · aucun GPU attribué", + "s0162": "Threads CPU", + "s0163": "Threads CPU.", + "s0164": "Utilisation du CPU", + "s0165": "CPU {0} ·", + "s0166": "CPU {0} · {1}", + "s0167": "Les détails du cache apparaissent quand le moteur signale une réutilisation du prompt.", + "s0168": "Calibrer le moteur…", + "s0169": "Calibrer cet ordinateur ?", + "s0170": "La calibration est disponible sur le matériel NVIDIA pris en charge par la version installée. Les tests courts fonctionnent avec toute instance native en cours d’exécution.", + "s0171": "Peut-on aller plus loin ?", + "s0172": "Annuler", + "s0173": "Annuler le téléchargement", + "s0174": "Échec de l’annulation", + "s0175": "Annuler l’aperçu", + "s0176": "Annuler la requête", + "s0177": "Annulé", + "s0178": "Annulation…", + "s0179": "Tokens candidats. Zéro supprime cette limite.", + "s0180": "Estimation de capacité : {0} Go de GPU, {1} Go de {2}, {3} Go de débordement sur SSD{4}", + "s0181": "Plan de capacité d’après les métadonnées du modèle. Le placement réel, la mémoire libre et les lectures SSD doivent être vérifiés par le moteur.", + "s0182": "Mesures capturées par Strata Monitor", + "s0183": "Préférence du catalogue parmi les modèles qui tiennent. {0}.", + "s0184": "Modifier", + "s0185": "Changer la clé API", + "s0186": "Changer de dossier", + "s0187": "Changer de fichier", + "s0188": "Changer la clé", + "s0189": "Changer le raccourci de {0}", + "s0190": "Changez l’adresse d’écoute de l’hôte et redémarrez pour mettre à jour l’accès réseau.", + "s0191": "Modifications seulement", + "s0192": "Modifications seulement (", + "s0193": "Les modifications sont enregistrées dans Strata. Le fichier d’origine de la compétence reste intact.", + "s0194": "Modifications en surbrillance", + "s0195": "Chat", + "s0196": "Chat Completions", + "s0197": "Mémoire de conversation nécessaire", + "s0198": "Modèle de conversation", + "s0199": "Modèle de conversation modifié", + "s0200": "Nom de la conversation", + "s0201": "Options de la conversation", + "s0202": "Démo du chat · code, outils et médias", + "s0203": "Statistiques de la conversation", + "s0204": "Conversation {0}", + "s0205": "Vérifier", + "s0206": "Vérifier à nouveau", + "s0207": "Vérifiez l’ordinateur, choisissez une version et chargez-la", + "s0208": "Vérifier chaque page", + "s0209": "Échec de la vérification", + "s0210": "Vérifier le dossier", + "s0211": "Rechercher des mises à jour", + "s0212": "Vérification conservée", + "s0213": "Vérifier le résultat", + "s0214": "Vérification indisponible", + "s0215": "Analysez votre ordinateur pour savoir quels modèles lui conviennent.", + "s0216": "Vérifié à", + "s0217": "Vérification d’une révision ultérieure", + "s0218": "Vérification des modifications…", + "s0219": "Vérification de l’exhaustivité et de ce qui fonctionnait déjà.", + "s0220": "Vérification du brouillon…", + "s0221": "Vérification des fichiers…", + "s0222": "Recherche de nouvelles versions…", + "s0223": "Analyse du matériel", + "s0224": "Vérification des menus, des commandes et de la navigation au clavier.", + "s0225": "Vérification des espacements et de l’alignement des composants.", + "s0226": "Vérification du stockage…", + "s0227": "Vérification…", + "s0228": "Vérifications et historique", + "s0229": "Chinois", + "s0230": "Choisissez CPU uniquement comme périphérique d’exécution, ou activez les couches GPU.", + "s0231": "Choisir les GPU…", + "s0232": "Choisissez Désactivé, Q4, Q5, Q6 ou Q8.", + "s0233": "Choisissez Ouvrir ou Afficher dans l’explorateur de fichiers.", + "s0234": "Choisissez un fichier GGUF.", + "s0235": "Choisissez un fichier de moins de 20 Mo.", + "s0236": "Choisissez d’abord un dossier.", + "s0237": "Choisissez un dossier à parcourir.", + "s0238": "Choisissez un dossier, pas un fichier.", + "s0239": "Choisissez l’ID d’un modèle chargé.", + "s0240": "Choisissez un modèle local qui lit les images avant d’envoyer des images jointes.", + "s0241": "Choisir un modèle", + "s0242": "Indiquez l’ID du modèle dans votre requête quand plusieurs modèles sont chargés.", + "s0243": "Choisissez un fichier de modèle ou saisissez son chemin complet.", + "s0244": "Choisissez un dossier de modèles.", + "s0245": "Choisissez une image de moins de 2 Mo.", + "s0246": "Choisissez un port entre 1024 et 65535.", + "s0247": "Choisissez un fournisseur, saisissez sa clé API, puis sélectionnez les modèles à ajouter.", + "s0248": "Choisissez une préférence de ressources.", + "s0249": "Choisissez un dossier distinct pour les modèles, en dehors des données de l’application Strata.", + "s0250": "Choisir un modèle plus petit", + "s0251": "Choisissez un contexte de conversation pris en charge.", + "s0252": "Choisissez une opération native prise en charge.", + "s0253": "Choisissez une planification prise en charge.", + "s0254": "Choisir une police système", + "s0255": "Choisissez une URL temporaire ou votre propre domaine.", + "s0256": "Choisissez une heure valide.", + "s0257": "Choisir une version", + "s0258": "Choisissez une version, puis chargez-la depuis Modèles. Les fichiers natifs partagés sont regroupés dans Stockage.", + "s0259": "Choisir une version…", + "s0260": "Choisissez un jour de la semaine.", + "s0261": "Choisissez une version d’image à télécharger.", + "s0262": "Choisir un modèle qui lit les images", + "s0263": "Choisir une installation", + "s0264": "Choisissez une police installée pour l’interface et les conversations.", + "s0265": "Choisissez un modèle installé.", + "s0266": "Choisir un autre fichier", + "s0267": "Choisir un autre dossier", + "s0268": "Choisissez un autre dossier ou un modèle plus petit.", + "s0269": "Choisissez les GPU détectés, ou CPU uniquement.", + "s0270": "Choisissez des GPU détectés différents. L’inférence de texte sur CPU seul n’est pas prise en charge par cet adaptateur natif.", + "s0271": "Choisissez des alias de modèle distincts, de 80 caractères maximum chacun.", + "s0272": "Choisir un fichier", + "s0273": "Choisir un dossier", + "s0274": "Choisir un modèle : {0}", + "s0275": "Choisissez un point de répartition des couches entre chaque paire de GPU.", + "s0276": "Choisissez des images de moins de 2 Mo.", + "s0277": "Choisir la planification", + "s0278": "Choisissez l’exécution d’un seul modèle ou de plusieurs.", + "s0279": "Choisissez le dossier du dépôt Strata qui contient setup.py et tools/strata_mcp.py.", + "s0280": "Choisir le meilleur travail", + "s0281": "Choisissez le dossier et nous démarrerons vos modèles avec Strata.", + "s0282": "Choisissez la langue utilisée dans tout Strata.", + "s0283": "Choisissez le", + "s0284": "Choisissez si la lecture des images doit être activée.", + "s0285": "Choisissez votre adresse", + "s0286": "Choisissez votre dossier de modèles", + "s0287": "Choix des réglages recommandés", + "s0288": "Choisi pendant l’installation. Les modèles déjà préparés continuent d’utiliser leurs fichiers actuels.", + "s0289": "Effacer les filtres", + "s0290": "Résultat clair · progression mesurable", + "s0291": "Effacer la recherche", + "s0292": "Effacer le raccourci de {0}", + "s0293": "Point de départ clair", + "s0294": "Moyen clair de vérifier", + "s0295": "Étapes suivantes plus claires", + "s0296": "Cliquez sur un raccourci, puis appuyez sur les touches de votre choix. Les modifications sont enregistrées dans ce navigateur. Échap annule l’enregistrement.", + "s0297": "Client / point d’accès", + "s0298": "Client, modèle ou ID de requête…", + "s0299": "Fermer", + "s0300": "Fermer la recherche de conversations", + "s0301": "Fermer le contexte de la conversation", + "s0302": "Fermer la dictée", + "s0303": "Fermer le mode expert", + "s0304": "Fermer la navigation", + "s0305": "Fermer {0}", + "s0306": "Type de connexion Cloudflare", + "s0307": "Tableau de bord Cloudflare ↗", + "s0308": "Tunnel Cloudflare", + "s0309": "Cloudflare créera votre adresse quand vous vous connecterez.", + "s0310": "Le service de téléchargement de Cloudflare est indisponible. Réessayez dans un instant.", + "s0311": "Coder", + "s0312": "Coder · IQ1_M", + "s0313": "Programmation", + "s0314": "Réduire le panneau d’aperçu", + "s0315": "Recueillir les retours", + "s0316": "Recueillir les retours d’ici vendredi", + "s0317": "Collecte et journaux", + "s0318": "Confortable", + "s0319": "Tient confortablement · estimation", + "s0320": "Espacement confortable par défaut.", + "s0321": "Bientôt disponible", + "s0322": "Noms séparés par des virgules que les clients peuvent utiliser pour ce modèle.", + "s0323": "Palette de commandes", + "s0324": "Commandes", + "s0325": "Compact", + "s0326": "Comparer", + "s0327": "Comparer et garder", + "s0328": "Comparer les résultats", + "s0329": "Comparaison du candidat avec l’original sur les mêmes vérifications.", + "s0330": "La compatibilité et les tailles dépendent de la version de Strata installée.", + "s0331": "GPU compatible trouvé", + "s0332": "Terminé", + "s0333": "Mémoire de l’ordinateur", + "s0334": "Préférence de ressources de l’ordinateur", + "s0335": "Utilisation de l’ordinateur", + "s0336": "Requêtes simultanées", + "s0337": "Configuration vérifiée. Aucune erreur de validation.", + "s0338": "Brouillon de configuration", + "s0339": "Exemple de configuration", + "s0340": "La configuration doit être un objet JSON.", + "s0341": "Connecter Strata à une application", + "s0342": "Connectez un fournisseur d’API ou un serveur de modèles sur un autre ordinateur.", + "s0343": "Connecter une application", + "s0344": "Connecter un domaine", + "s0345": "Connecter le moteur", + "s0346": "Connecter l’installation", + "s0347": "Connectez le moteur pour configurer un modèle.", + "s0348": "Connectez le moteur pour modifier ses réglages.", + "s0349": "Se connecter avec Cloudflare", + "s0350": "Connectez votre installation de Strata", + "s0351": "Connectez votre installation locale pour choisir un modèle optimisé.", + "s0352": "Connecté", + "s0353": "Connecté. Réinitialiser pour remettre le compteur à zéro", + "s0354": "Les serveurs connectés peuvent agir sur les ressources que vous avez configurées. Les appels s’exécutent automatiquement quand le modèle les choisit, et leurs résultats apparaissent dans la conversation.", + "s0355": "Outil connecté", + "s0356": "Outils connectés", + "s0357": "Connexion à Cloudflare…", + "s0358": "Connexion au moteur local…", + "s0359": "Connexion…", + "s0360": "Détails de la connexion", + "s0361": "Échec de la connexion", + "s0362": "Guide de connexion", + "s0363": "Modèle du guide de connexion", + "s0364": "Progression de la connexion", + "s0365": "Réglages de connexion", + "s0366": "Type de connexion", + "s0367": "Connecteur", + "s0368": "Connecteur prêt", + "s0369": "La configuration du connecteur est déjà en cours.", + "s0370": "Le contenu déborde", + "s0371": "Contexte", + "s0372": "Cache de contexte", + "s0373": "Le cache de contexte a besoin de plus de mémoire", + "s0374": "Remplissage du contexte", + "s0375": "Longueur du contexte", + "s0376": "Limite de contexte", + "s0377": "Mémoire de contexte", + "s0378": "Le contexte a besoin de plus de mémoire", + "s0379": "Contexte non pris en charge", + "s0380": "Préréglages de contexte", + "s0381": "Contexte trop long", + "s0382": "Contexte trop court", + "s0383": "Contexte utilisé", + "s0384": "Fenêtre de contexte utilisée", + "s0385": "Continuer", + "s0386": "Reprenez là où vous vous êtes arrêté. Ne répétez pas ce que vous avez déjà écrit.", + "s0387": "Passer à la conversation sans résultat de vitesse", + "s0388": "Contraste", + "s0389": "Contrôle", + "s0390": "Cache de conversation", + "s0391": "Mémoire du cache de conversation", + "s0392": "Contexte de la conversation", + "s0393": "Contexte de la conversation ·", + "s0394": "Taille du texte des conversations. Les commandes de l’interface restent à part.", + "s0395": "Copier l’URL de base de l’API", + "s0396": "Copier l’URL du tunnel Cloudflare", + "s0397": "Copier l’ID du modèle", + "s0398": "Copier le code", + "s0399": "Copier l’URL du réseau local", + "s0400": "Copier le message", + "s0401": "Copier l’ID du modèle {0}", + "s0402": "Copier la nouvelle clé API", + "s0403": "Copier le modèle de requête", + "s0404": "Copier la réponse", + "s0405": "Copier l’évaluation", + "s0406": "Copiez cette clé dans votre client. Elle prend effet quand vous choisissez Utiliser cette clé.", + "s0407": "Copier l’URL du tunnel", + "s0408": "Copier l’URL du service du tunnel", + "s0409": "Mise en page de base", + "s0410": "Corrigez la configuration avant d’enregistrer un profil.", + "s0411": "Impossible de calculer la prochaine exécution.", + "s0412": "Impossible de rechercher les mises à jour.", + "s0413": "Impossible de rechercher les mises à jour. Réessayez.", + "s0414": "Impossible de supprimer cette version. Consultez la notification et réessayez.", + "s0415": "Impossible de récupérer les modèles. Vous pouvez ajouter un ID de modèle ci-dessous.", + "s0416": "Impossible de récupérer la liste des modèles.", + "s0417": "Impossible de charger le modèle", + "s0418": "Impossible de lire les métadonnées GGUF.", + "s0419": "Impossible de lire l’image jointe.", + "s0420": "Impossible de lire le fichier.", + "s0421": "Impossible de lire ce fichier.", + "s0422": "Impossible de lire cette image.", + "s0423": "Impossible de supprimer la connexion.", + "s0424": "Impossible d’enregistrer la connexion.", + "s0425": "Impossible de stocker cette image. Vérifiez le stockage du navigateur.", + "s0426": "Impossible de décharger le modèle. Réessayez quand le moteur est inactif.", + "s0427": "Impossible d’ajouter ce dossier", + "s0428": "Impossible de retirer cet espace de travail", + "s0429": "Copie impossible", + "s0430": "Impossible de charger les tâches.", + "s0431": "Impossible de charger cette image.", + "s0432": "Impossible d’ouvrir ce PDF.", + "s0433": "Composant compteur", + "s0434": "Créez une clé API Strata avant de connecter Cloudflare.", + "s0435": "Créez une clé pour protéger votre API. Vous reviendrez ici quand elle sera prête.", + "s0436": "Créer un plan avant de modifier quoi que ce soit", + "s0437": "Créez un tunnel dans votre", + "s0438": "Créer une clé API", + "s0439": "Créez d’abord une clé API", + "s0440": "Créer la tâche", + "s0441": "Créer une URL temporaire", + "s0442": "Créer avec l’IA", + "s0443": "Identifiants et environnement", + "s0444": "Ctrl", + "s0445": "Ctrl+Maj+A", + "s0446": "Contexte actuel", + "s0447": "Moteur actuel", + "s0448": "Progression du téléchargement du fichier en cours", + "s0449": "Réglages actuels", + "s0450": "Personnalisé", + "s0451": "Contexte personnalisé en K tokens", + "s0452": "API de modèle personnalisée", + "s0453": "Modèle personnalisé · la compatibilité avec le moteur est vérifiée au chargement. Les estimations de mémoire s’appuient sur les métadonnées du fichier.", + "s0454": "Tous les jours", + "s0455": "Point quotidien", + "s0456": "Activité quotidienne des messages. {0} jours actifs sur cette période.", + "s0457": "Sombre", + "s0458": "Jour", + "s0459": "Jour de la semaine", + "s0460": "Décodage", + "s0461": "Décodage de la dernière requête", + "s0462": "Décodage actuel", + "s0463": "Décodage :", + "s0464": "Par défaut", + "s0465": "Valeur par défaut pour ce modèle", + "s0466": "Supprimer", + "s0467": "Supprimer la conversation", + "s0468": "Supprimer la version téléchargée du modèle", + "s0469": "Supprimer les fichiers", + "s0470": "Supprimer les fichiers…", + "s0471": "Supprimer la tâche", + "s0472": "Supprimer la tâche {0}", + "s0473": "Supprimer cette conversation ?", + "s0474": "Supprimer cette tâche ?", + "s0475": "Supprimer cette version ?", + "s0476": "Supprimer la version", + "s0477": "Supprimer {0}", + "s0478": "Supprimer {0} ?", + "s0479": "Tâches supprimées", + "s0480": "Suppression…", + "s0481": "Simulé", + "s0482": "Votre approbation est nécessaire", + "s0483": "Refusé. Rien n’a été exécuté.", + "s0484": "Approbation enregistrée. Rien n’a été exécuté.", + "s0485": "Estimation indicative", + "s0486": "État d’installation d’exemple effacé.", + "s0487": "Installation d’exemple lancée", + "s0488": "État de chargement d’exemple effacé.", + "s0489": "Modèle d’exemple prêt", + "s0490": "Modèle d’exemple · réponses fictives.", + "s0491": "Aperçu terminé. Aucune mesure n’a été effectuée.", + "s0492": "Progression", + "s0493": "Suggestion d’exemple.", + "s0494": "Tokens en entrée / sortie (exemple)", + "s0495": "Refusé", + "s0496": "Zone de texte dense", + "s0497": "Refuser", + "s0498": "Décrivez les tâches", + "s0499": "Décrivez d’abord la tâche.", + "s0500": "Décrivez cette image.", + "s0501": "Description", + "s0502": "Descriptions", + "s0503": "Aperçu du design · les réponses sont fictives.", + "s0504": "Revue du design · six aperçus", + "s0505": "Détails", + "s0506": "Deutsch", + "s0507": "Diagnostic", + "s0508": "Dictée", + "s0509": "Impossible de lancer la dictée. Réessayez ou utilisez la dictée intégrée à votre ordinateur.", + "s0510": "Dictée terminée", + "s0511": "Dictée arrêtée", + "s0512": "Dictée indisponible", + "s0513": "Chemin du dossier", + "s0514": "Désactivé", + "s0515": "Abandonner", + "s0516": "Abandonner toutes les modifications non enregistrées du moteur et revenir à la configuration enregistrée.", + "s0517": "Abandonner les modifications", + "s0518": "Abandonner les modifications de la configuration ?", + "s0519": "Abandon de la révision la plus faible et reprise à partir de B.", + "s0520": "Lecture disque", + "s0521": "Ignorer", + "s0522": "Nom affiché", + "s0523": "Texte du document", + "s0524": "Documents / Strata / Models", + "s0525": "La modification tient-elle la route ?", + "s0526": "Terminé", + "s0527": "Comparaison terminée", + "s0528": "Télécharger", + "s0529": "Télécharger et charger", + "s0530": "Télécharger et préparer", + "s0531": "Téléchargement annulé.", + "s0532": "Échec du téléchargement", + "s0533": "Télécharger le modèle", + "s0534": "Télécharger la version du modèle", + "s0535": "Télécharger le journal de session", + "s0536": "Taille du téléchargement", + "s0537": "Téléchargement lancé", + "s0538": "Téléchargement arrêté. Reprenez quand vous voulez.", + "s0539": "Télécharger la conversation active au format Markdown", + "s0540": "Téléchargez d’abord la version sélectionnée du modèle d’image.", + "s0541": "Téléchargez ce modèle avant de le charger.", + "s0542": "Téléchargez cette version du modèle avant de la charger.", + "s0543": "Téléchargez cette version pour l’utiliser.", + "s0544": "Le téléchargement a expiré. Réessayez depuis Modèles.", + "s0545": "Télécharger la version", + "s0546": "Télécharger {0}", + "s0547": "Télécharger · {0}", + "s0548": "Téléchargé", + "s0549": "Modèles téléchargés", + "s0550": "Versions téléchargées de {0}", + "s0551": "Téléchargé · moteur d’image requis", + "s0552": "Téléchargement", + "s0553": "Téléchargement et préparation des fichiers du modèle…", + "s0554": "Téléchargement des fichiers du modèle…", + "s0555": "Téléchargement du modèle...", + "s0556": "Téléchargement : {0} %", + "s0557": "Téléchargement…", + "s0558": "Les téléchargements ne démarrent que lorsque vous êtes prêt.", + "s0559": "Les échecs de téléchargement, de préparation et du moteur affichent ici leurs messages d’origine.", + "s0560": "Brouillon", + "s0561": "Brouillon / spéculation", + "s0562": "Profondeur du brouillon", + "s0563": "Brouillon : {0}{1} Go estimés", + "s0564": "Rédaction…", + "s0565": "Faites glisser pour comparer", + "s0566": "Faites glisser pour redimensionner · les flèches ajustent · double-clic pour réinitialiser", + "s0567": "Durée", + "s0568": "Mode simple", + "s0569": "Facile à utiliser", + "s0570": "Modifier", + "s0571": "Modifier le serveur MCP {0}", + "s0572": "Modifier les réglages enregistrés…", + "s0573": "Modifier les raccourcis", + "s0574": "Modifier la compétence", + "s0575": "Modifier la tâche", + "s0576": "Modifier la tâche {0}", + "s0577": "Modifier le serveur d’outils", + "s0578": "Modifier {0}", + "s0579": "Modification à partir d’un message précédent. Mettez à jour le prompt ci-dessous.", + "s0580": "Cache d’experts GPU élastique", + "s0581": "Activer le serveur MCP {0}", + "s0582": "Activez Lire les images pour ce modèle avant d’envoyer des images.", + "s0583": "Activez Lire les images dans Modèles pour envoyer cette image au modèle. Elle est ouverte dans l’aperçu.", + "s0584": "Activer les outils connectés ?", + "s0585": "Activer les outils", + "s0586": "Activer {0}", + "s0587": "Activé", + "s0588": "Moteur", + "s0589": "Les arguments du moteur et les variables d’environnement STRATA se modifient ici. Les chemins des programmes et l’accès réseau restent gérés par l’hôte.", + "s0590": "Les arguments du moteur doivent être des valeurs de texte. L’accès réseau reste géré par Strata.", + "s0591": "Moteur modifié · réoptimisez avant de lancer", + "s0592": "Le moteur n’est pas devenu opérationnel à temps", + "s0593": "L’environnement du moteur doit être un objet.", + "s0594": "Erreur du moteur", + "s0595": "Hôte du moteur injoignable", + "s0596": "Installation du moteur", + "s0597": "Journal du moteur", + "s0598": "Niveau de journalisation du moteur", + "s0599": "Opération du moteur", + "s0600": "Emplacements de requêtes du moteur", + "s0601": "Moteur redémarré", + "s0602": "Délai de blocage du moteur (secondes)", + "s0603": "Moteur décompressé, mais aucun binaire llama-server n’a été trouvé", + "s0604": "La recherche de mises à jour du moteur n’est pas disponible dans cette version.", + "s0605": "Anglais", + "s0606": "Suffisant pour un modèle", + "s0607": "Suffisant pour le modèle recommandé", + "s0608": "Suffisant pour le plus petit modèle", + "s0609": "Saisir la clé API", + "s0610": "Saisissez un nom affiché de 160 caractères maximum.", + "s0611": "Saisissez un nom affiché.", + "s0612": "Saisissez le nom d’une famille de polices", + "s0613": "Saisissez une adresse complète en http:// ou https://.", + "s0614": "Saisissez un chemin complet.", + "s0615": "Saisissez un nom d’hôte comme ai.example.com, sans https:// ni chemin.", + "s0616": "Saisissez un dossier de modèles.", + "s0617": "Saisissez un nombre positif.", + "s0618": "Saisissez le chemin complet d’un dossier existant.", + "s0619": "Saisissez l’URL du serveur ou le programme.", + "s0620": "Saisissez votre clé API existante dans le client.", + "s0621": "Erreur", + "s0622": "Erreurs", + "s0623": "Échap", + "s0624": "Estimé", + "s0625": "Mémoire estimée", + "s0626": "Mémoire de travail estimée (", + "s0627": "Tous les jours", + "s0628": "Toutes les heures", + "s0629": "Toutes les valeurs sont revenues à la valeur par défaut sûre.", + "s0630": "Toutes les semaines", + "s0631": "Au quotidien", + "s0632": "Choix au quotidien", + "s0633": "Travail au quotidien", + "s0634": "Tout ce qu’il faut pour le modèle recommandé est présent.", + "s0635": "Valeur exacte", + "s0636": "Exemple", + "s0637": "Exemple : Passez en revue ce projet et résumez ce qui a changé.", + "s0638": "Dépasse le budget de mémoire estimé", + "s0639": "Dépasse le budget de mémoire", + "s0640": "Périphérique d’exécution", + "s0641": "Les fichiers existants sont vérifiés et réutilisés. Les modèles natifs actuellement chargés seront déchargés avant la préparation des fichiers.", + "s0642": "Les fichiers existants restent où ils sont. Strata cherche dans ce dossier les fichiers GGUF pris en charge.", + "s0643": "Dossier de modèles existant", + "s0644": "Quitter l’aperçu plein écran", + "s0645": "Une capture d’écran PNG de moins de 18 Mo était attendue.", + "s0646": "Expérience attendue", + "s0647": "Vecteur de contrôle expérimental. Nécessite un moteur compatible avec le vecteur chargé.", + "s0648": "Cache d’experts", + "s0649": "Cache d’experts / mode RAM", + "s0650": "Emplacements du cache d’experts", + "s0651": "Éditeur expert", + "s0652": "Mode expert", + "s0653": "Réglages experts", + "s0654": "Valeur experte", + "s0655": "Experts en VRAM", + "s0656": "Experts signalés par ce moteur.", + "s0657": "Explique en langage simple ce que cette machine peut exécuter, d’après le CPU, le GPU et la mémoire détectés.", + "s0658": "Explorer une révision", + "s0659": "Explorez le déroulement du test. Les valeurs de l’aperçu ne sont jamais enregistrées comme des performances mesurées ni utilisées comme preuve pour une vraie recommandation.", + "s0660": "Exploration d’une idée", + "s0661": "Exporter", + "s0662": "Exporter la conversation", + "s0663": "Marge supplémentaire", + "s0664": "Échec", + "s0665": "Adéquation rapide", + "s0666": "Réponses plus rapides", + "s0667": "Le plus rapide", + "s0668": "IA la plus rapide", + "s0669": "Modèle favori", + "s0670": "Récupérer les modèles disponibles", + "s0671": "Récupération…", + "s0672": "Peu de cœurs : attendez-vous à une lecture lente du prompt", + "s0673": "Fieldnotes cover.svg", + "s0674": "Fieldnotes — site web", + "s0675": "Emplacement du fichier", + "s0676": "Le fichier a renvoyé {0}", + "s0677": "Les mises à jour de fichiers ne peuvent pas être annulées sans risque pendant le remplacement des fichiers.", + "s0678": "Fichiers installés", + "s0679": "Fichiers supprimés", + "s0680": "Les fichiers restent sur votre ordinateur. Ajoutez à nouveau ce dossier pour rouvrir ses conversations.", + "s0681": "Filtrer les modèles disponibles", + "s0682": "Filtrer les modèles…", + "s0683": "Filtrer les lignes…", + "s0684": "Filtrer le tableau", + "s0685": "Trouvez un point de départ pour votre matériel, puis vérifiez avant d’enregistrer.", + "s0686": "Trouver les réglages les plus rapides pour ce PC", + "s0687": "Prise de rythme", + "s0688": "Terminer plus tard", + "s0689": "Terminez ou annulez les téléchargements et les chargements pour changer de dossier.", + "s0690": "Terminez ou annulez les téléchargements et les chargements de modèles avant de changer de dossier.", + "s0691": "Terminez ou annulez les requêtes du modèle avant de changer de dossier.", + "s0692": "Terminez ou annulez les requêtes natives avant de changer de modèle.", + "s0693": "Terminez ou annulez les requêtes avant de préparer les fichiers du modèle.", + "s0694": "Terminez ou annulez d’abord l’opération en cours du moteur.", + "s0695": "Terminez ou annulez d’abord le téléchargement du modèle d’image en cours.", + "s0696": "Terminez ou annulez d’abord le téléchargement de l’image.", + "s0697": "Terminez ou annulez les requêtes de ce modèle avant de le décharger.", + "s0698": "Terminez ou annulez d’abord les requêtes de ce modèle.", + "s0699": "Terminez les requêtes avant de changer de moteur.", + "s0700": "Terminez les requêtes avant d’optimiser.", + "s0701": "Terminez l’opération en cours avant de changer de dossier.", + "s0702": "Terminez l’opération en cours avant d’enregistrer les réglages natifs.", + "s0703": "Terminez les requêtes de ce modèle avant d’enregistrer ses réglages.", + "s0704": "Fin de la dictée…", + "s0705": "Finalisation…", + "s0706": "Adéquation", + "s0707": "Ajuster la sortie au contexte restant", + "s0708": "Adéquation inconnue", + "s0709": "Tient en mémoire", + "s0710": "Tient dans la fenêtre", + "s0711": "Corriger la réinitialisation et l’affichage mobile en conservant la mise en page.", + "s0712": "Corrigez le JSON avant de changer d’onglet.", + "s0713": "Corrigez le JSON de configuration de l’outil.", + "s0714": "Corriger les 3 principaux problèmes", + "s0715": "Flash attention", + "s0716": "Se concentrer sur la conversation", + "s0717": "Lecture ciblée", + "s0718": "Concentrez cet ordinateur sur votre IA.", + "s0719": "Dossier contenant setup.py", + "s0720": "Suivre le système", + "s0721": "Suivre le réglage par défaut du modèle, ou ne réfléchir que sur demande.", + "s0722": "Les requêtes suivantes peuvent réutiliser les tokens en cache du prompt précédent.", + "s0723": "Police", + "s0724": "Famille de polices", + "s0725": "Par exemple : /time-skip Faites un plan de lancement pour mon application", + "s0726": "{0} modèles trouvés. Choisissez ceux à afficher dans la conversation.", + "s0727": "Stockage libre", + "s0728": "URL temporaire gratuite", + "s0729": "Libère la mémoire du modèle", + "s0730": "Pénalité de fréquence", + "s0731": "Vendredis", + "s0732": "D’après les métadonnées GGUF", + "s0733": "Complet", + "s0734": "Chemin complet du dossier", + "s0735": "Chemin complet d’un dossier existant", + "s0736": "Performances maximales", + "s0737": "Priorité maximale pour Strata", + "s0738": "Aperçu plein écran", + "s0739": "Pleine vitesse", + "s0740": "Go", + "s0741": "Go de RAM", + "s0742": "Go de RAM", + "s0743": "Go de marge en RAM · les estimations incluent tous les modèles chargés", + "s0744": "Go de VRAM", + "s0745": "Go de budget", + "s0746": "Go restants dans ce fichier", + "s0747": "Go restants à télécharger", + "s0748": "Go requis", + "s0749": "Go à télécharger", + "s0750": "Go/s", + "s0751": "Le GGUF contient des noms de tenseurs en double.", + "s0752": "Fichiers GGUF de ce dossier. Les téléchargements dans des sous-dossiers sont vérifiés par l’installateur.", + "s0753": "Un entier du GGUF est trop grand.", + "s0754": "Un tableau de métadonnées GGUF est trop grand.", + "s0755": "Les tableaux de métadonnées GGUF sont imbriqués trop profondément.", + "s0756": "Les métadonnées GGUF contiennent une clé en double.", + "s0757": "Les métadonnées GGUF contiennent une chaîne trop longue.", + "s0758": "Les métadonnées GGUF contiennent un entier non pris en charge.", + "s0759": "Les métadonnées GGUF contiennent trop d’entrées.", + "s0760": "Les métadonnées GGUF utilisent un type de valeur non pris en charge.", + "s0761": "L’alignement des tenseurs du GGUF n’est pas valide.", + "s0762": "Les dimensions des tenseurs du GGUF ne sont pas valides.", + "s0763": "La disposition des tenseurs du GGUF n’est pas valide.", + "s0764": "GPU", + "s0765": "GPU / répartition des couches", + "s0766": "GPU et pilote", + "s0767": "L’attribution des GPU nécessite un adaptateur de moteur natif. Utilisez Automatique avec cet hôte.", + "s0768": "Charge du GPU", + "s0769": "Mémoire du GPU", + "s0770": "Détail de la mémoire du GPU", + "s0771": "Mémoire GPU réservée aux autres applications (Mio)", + "s0772": "Ordre des GPU", + "s0773": "Puissance du GPU", + "s0774": "Consommation du GPU", + "s0775": "Les mesures du GPU incluent tout le travail effectué sur ce périphérique. La RAM système est partagée par tous les modèles.", + "s0776": "Temp. GPU", + "s0777": "Température du GPU", + "s0778": "GPU indisponible", + "s0779": "GPU {0}", + "s0780": "GPU {0} ·", + "s0781": "GPU {0} · {1}", + "s0782": "GPU", + "s0783": "GPU connectés", + "s0784": "Général", + "s0785": "Générer", + "s0786": "Générer une autre", + "s0787": "Générer un exemple de réponse", + "s0788": "Génération", + "s0789": "Génération en tok/s", + "s0790": "Échec de la génération", + "s0791": "Vitesse de génération", + "s0792": "Obtenir Strata", + "s0793": "Préparez mon portfolio pour la publication.", + "s0794": "Faites avancer vos projets sur du matériel qui vous appartient.", + "s0795": "Obtenir la mise à jour", + "s0796": "Préparation des fichiers…", + "s0797": "Préparation de votre installation…", + "s0798": "Git n’a pas pu mettre à jour cette installation. Ouvrez le diagnostic.", + "s0799": "Donner la priorité à Strata", + "s0800": "Donnez à chaque serveur d’outils un nom simple et unique.", + "s0801": "Donnez-moi un court exercice d’écriture et un exemple de réponse. Restez pratique et sous les 200 mots.", + "s0802": "Donner plus de threads CPU au moteur", + "s0803": "Donnez une ligne d’arrivée à votre IA.", + "s0804": "Donnez à votre IA les ressources disponibles pour travailler sans distraction.", + "s0805": "Donnez à votre API locale une adresse HTTPS qu’une autre application peut atteindre.", + "s0806": "Donner plus de ressources à votre modèle", + "s0807": "Global · toutes les conversations", + "s0808": "Aller", + "s0809": "Aller directement à l’application", + "s0810": "Aller à", + "s0811": "Objectif", + "s0812": "Grammaire", + "s0813": "Aperçu HTML", + "s0814": "Serveur HTTP", + "s0815": "Marge pour vos autres applications", + "s0816": "Bonjour, je suis Strata.", + "s0817": "Aidez-moi à pratiquer l’espagnol chaque matin…", + "s0818": "Masquer", + "s0819": "Masquer la clé API", + "s0820": "Masquer les journaux", + "s0821": "Masquer la barre latérale", + "s0822": "Masque la navigation dans la conversation. Les Paramètres restent ouverts au-dessus de la conversation.", + "s0823": "Élevé", + "s0824": "Haute qualité", + "s0825": "Plus haute borne inférieure de {0} prise en charge parmi les candidats comparables qui tiennent. {1}.", + "s0826": "Historique", + "s0827": "GPU sélectionné le plus chaud", + "s0828": "Ce que votre modèle peut garder en tête.", + "s0829": "Comment fonctionne le partage des ressources", + "s0830": "Comment souhaitez-vous travailler avec Strata ?", + "s0831": "ID", + "s0832": "INT8", + "s0833": "Inactif", + "s0834": "Illustratif", + "s0835": "Exemple d’interface illustratif · ni une mesure ni une prévision matérielle", + "s0836": "Estimations illustratives", + "s0837": "Aperçu de design illustratif avec contexte, utilisation de l’ordinateur et débordement sur SSD. Pas un test de performance.", + "s0838": "Image", + "s0839": "Séparateur de comparaison d’images", + "s0840": "Périphérique de l’encodeur d’images", + "s0841": "Génération d’images", + "s0842": "La génération d’images nécessite un moteur d’images, un encodeur de texte et un VAE compatibles.", + "s0843": "Modèle d’image", + "s0844": "Progression du téléchargement du modèle d’image", + "s0845": "La mémoire du modèle d’image n’est pas incluse dans cette estimation.", + "s0846": "Version du modèle d’image", + "s0847": "Lecture d’images", + "s0848": "Importer", + "s0849": "Échec de l’importation : {0}", + "s0850": "Améliorez ce plan de lancement.", + "s0851": "Amélioration du brouillon enregistré.", + "s0852": "En cours", + "s0853": "Dans votre client, choisissez un fournisseur compatible.", + "s0854": "Inclure les conversations archivées", + "s0855": "Incluez le préfixe de l’API, comme /v1, mais sans /models ni /chat/completions.", + "s0856": "Augmenter le contraste du texte et des bordures.", + "s0857": "Augmenté", + "s0858": "Tokens en entrée", + "s0859": "Installez un moteur llama-server compatible avant de quitter Strata natif.", + "s0860": "Dossier d’installation", + "s0861": "Installé", + "s0862": "Polices installées", + "s0863": "Version installée", + "s0864": "Instructions", + "s0865": "Instructions envoyées :", + "s0866": "Revue des interactions", + "s0867": "Taille de l’interface", + "s0868": "Espacement de l’interface", + "s0869": "Port interne du moteur", + "s0870": "Clé API non valide", + "s0871": "JSON non valide", + "s0872": "Capture d’écran PNG non valide.", + "s0873": "Inviter quelques testeurs", + "s0874": "Ses fichiers seront supprimés de cet ordinateur.", + "s0875": "Ses modèles seront retirés du sélecteur de conversation. Vos conversations restent enregistrées.", + "s0876": "JSON", + "s0877": "Japonais", + "s0878": "K de contexte · lot", + "s0879": "K tokens", + "s0880": "K. Choisissez un contexte pris en charge pour l’exécuter.", + "s0881": "Mode KV", + "s0882": "Conserver les métadonnées des requêtes API", + "s0883": "Gardez une clé tant que l’API est accessible à d’autres appareils.", + "s0884": "Garder la conversation", + "s0885": "Garder la connexion", + "s0886": "Continuer à modifier", + "s0887": "Garder le moteur prêt", + "s0888": "Garder les experts en RAM", + "s0889": "Garder la clé", + "s0890": "Garder les modèles chargés quand vous en ajoutez un autre.", + "s0891": "Garder la tâche", + "s0892": "Garder le style botanique et rendre le titre plus facile à parcourir.", + "s0893": "Conserver la progression réalisée.", + "s0894": "Garder l’idée la plus solide.", + "s0895": "Garder cet ordinateur réactif", + "s0896": "Garder les outils désactivés", + "s0897": "Garder le résultat mis à jour", + "s0898": "Garder la version", + "s0899": "Garder l’espace de travail", + "s0900": "Gardez votre navigateur et vos outils à côté de votre IA.", + "s0901": "Conservation de B", + "s0902": "L’original est conservé pendant qu’un candidat comble ses lacunes.", + "s0903": "Résultat conservé", + "s0904": "Conservé de la mise à jour", + "s0905": "Détail clé supprimé", + "s0906": "Raccourcis clavier", + "s0907": "Coréen", + "s0908": "Libellés et descriptions relus.", + "s0909": "Langue", + "s0910": "Dernière requête", + "s0911": "Taille de la dernière requête", + "s0912": "Dernier résultat", + "s0913": "Dernière exécution échouée · Voir", + "s0914": "Dernier changement", + "s0915": "Révision ultérieure non conservée", + "s0916": "Dernière version", + "s0917": "Vitesse de la dernière réponse", + "s0918": "Plan de lancement", + "s0919": "Répartition des couches", + "s0920": "Les points de répartition des couches doivent augmenter de 1 à 47, par exemple 16,32.", + "s0921": "Revue de la mise en page", + "s0922": "Mise en page simplifiée", + "s0923": "Apprenez une notion utile à la fois.", + "s0924": "Prompt d’apprentissage", + "s0925": "Garder 20 % pour mon travail", + "s0926": "Laissez vide pour utiliser la valeur par défaut du modèle.", + "s0927": "Laissez vide pour garder la clé enregistrée", + "s0928": "Quitter le mode concentration", + "s0929": "Laisser de la place aux autres applications", + "s0930": "Moins", + "s0931": "Laissez un autre appareil de votre réseau utiliser vos modèles chargés.", + "s0932": "Laissez le travail utile se répéter.", + "s0933": "C’est parti", + "s0934": "Clair", + "s0935": "Clair par défaut. Système suit votre ordinateur.", + "s0936": "Devrait tenir (estimation)", + "s0937": "Limite l’échantillonnage aux mots les plus probables.", + "s0938": "Ligne {0}, colonne {1} : {2}", + "s0939": "Je vous écoute…", + "s0940": "Estimation en direct d’après la longueur de la réponse et le temps écoulé. L’utilisation finale vient du moteur.", + "s0941": "Charger", + "s0942": "Chargez à nouveau un modèle après le changement.", + "s0943": "Chargez un modèle avant de terminer l’installation.", + "s0944": "Chargez un modèle dans Modèles pour le rendre disponible ici.", + "s0945": "Chargez un modèle Strata natif pour utiliser l’API Responses.", + "s0946": "Chargez d’abord un modèle natif.", + "s0947": "Charger le modèle", + "s0948": "Charger à la première requête", + "s0949": "Les réglages de chargement s’appliquent au prochain chargement. Les valeurs d’échantillonnage par défaut s’appliquent à la prochaine requête.", + "s0950": "Les réglages de chargement s’appliquent quand vous lancez le modèle.", + "s0951": "Chargez le modèle pour démarrer une requête.", + "s0952": "Charger {0} pour toutes les conversations. Le chargement peut prendre quelques instants.", + "s0953": "Chargé", + "s0954": "Modèle chargé", + "s0955": "Modèles chargés", + "s0956": "Chargement", + "s0957": "Le chargement ajoute un modèle. Les modèles existants gardent leurs réglages et leurs GPU.", + "s0958": "Charger un autre modèle laisse les autres chargés.", + "s0959": "Le chargement applique ces réglages à cette instance. Les autres modèles restent chargés.", + "s0960": "Chargement du document…", + "s0961": "Chargement des polices installées…", + "s0962": "Chargement du modèle", + "s0963": "Chargement des versions du modèle…", + "s0964": "Chargement des réglages…", + "s0965": "Chargement des tâches…", + "s0966": "Chargement de vos modèles et de vos réglages…", + "s0967": "Chargement…", + "s0968": "L’IA en local. La vôtre.", + "s0969": "GGUF local ·", + "s0970": "Fichier local", + "s0971": "Fichiers de modèle locaux", + "s0972": "Modèle local retiré", + "s0973": "Modèle local ·", + "s0974": "Modèles locaux", + "s0975": "Les modèles locaux ne sont pas téléchargés. Choisissez à nouveau leur fichier GGUF pour les reconnecter.", + "s0976": "Réseau local", + "s0977": "Programme local", + "s0978": "Partage local", + "s0979": "Verrouiller le modèle en mémoire", + "s0980": "Contexte long", + "s0981": "Phrase plus longue", + "s0982": "Boucle", + "s0983": "Mode peu de RAM", + "s0984": "Mo/s", + "s0985": "Réglages de connexion avancés MCP", + "s0986": "Programme MCP", + "s0987": "Arguments du programme MCP", + "s0988": "URL du serveur MCP", + "s0989": "Configuration du serveur MCP", + "s0990": "Nom du serveur MCP", + "s0991": "Serveurs MCP", + "s0992": "Les serveurs MCP doivent former un objet de 30 entrées au maximum.", + "s0993": "Outils MCP", + "s0994": "Transport MCP", + "s0995": "Les 3 étapes ont été précisées", + "s0996": "Mise en page adaptée aux petits écrans", + "s0997": "Idée principale", + "s0998": "Navigation principale", + "s0999": "Apporter des améliorations", + "s1000": "Personnalisez", + "s1001": "Tirez le meilleur de cet ordinateur", + "s1002": "Rendre les étapes concrètes et ajouter un moyen de vérifier le résultat.", + "s1003": "Clarification de l’étape suivante.", + "s1004": "Gérer / arrêter", + "s1005": "Gérer les modèles API", + "s1006": "Gérer le tunnel Cloudflare", + "s1007": "Gérer la famille de modèles", + "s1008": "Gérer les modèles", + "s1009": "Manuel", + "s1010": "Vue Markdown", + "s1011": "Tokens de sortie max.", + "s1012": "Tokens max.", + "s1013": "Tokens d’image maximum", + "s1014": "Performances maximales", + "s1015": "Nombre maximal de caractères d’un résultat d’outil", + "s1016": "Nombre maximal de tours d’outils", + "s1017": "Peut être plus lent", + "s1018": "Peut être plus lent · Les données du modèle peuvent être lues sur le SSD.", + "s1019": "Mesurer les performances", + "s1020": "Mesurer la vitesse", + "s1021": "Mesurez la vitesse avec un test court. La calibration experte essaie des réglages du moteur et enregistre la configuration mesurée la plus rapide.", + "s1022": "Mesuré", + "s1023": "Mesure en cours…", + "s1024": "Mémoire", + "s1025": "Détail de la mémoire", + "s1026": "La mémoire pourrait être juste", + "s1027": "La mémoire pourrait être juste (estimation)", + "s1028": "Mémoire nécessaire", + "s1029": "Le placement en mémoire n’est pas disponible pour cette configuration.", + "s1030": "Mémoire · Non estimée ·", + "s1031": "Mapper les fichiers du modèle en mémoire", + "s1032": "Écrire à Strata", + "s1033": "Écrire à Strata…", + "s1034": "Messages", + "s1035": "Meta", + "s1036": "Mesures indisponibles", + "s1037": "L’accès au microphone a été refusé. Autorisez-le dans votre navigateur, puis réessayez.", + "s1038": "Tokens d’image minimum", + "s1039": "Mode", + "s1040": "Modèle", + "s1041": "Modèle / périphérique", + "s1042": "ID du modèle", + "s1043": "ID du modèle donné par votre fournisseur ou votre serveur", + "s1044": "Activité du modèle", + "s1045": "Changement de modèle indisponible", + "s1046": "Dossier des modèles", + "s1047": "Exécution du modèle", + "s1048": "Famille de modèles", + "s1049": "Chemin du fichier ou du dossier du modèle", + "s1050": "Fichiers du modèle", + "s1051": "Fichiers du modèle supprimés du disque.", + "s1052": "Modèle pour cette application", + "s1053": "Liste des modèles :", + "s1054": "Modèle chargé", + "s1055": "Mémoire du modèle libérée.", + "s1056": "Nom du modèle", + "s1057": "Le modèle a besoin de plus de mémoire", + "s1058": "Modèle pas prêt", + "s1059": "Performances du modèle", + "s1060": "Priorité du modèle", + "s1061": "Progression du modèle", + "s1062": "Modèle prêt", + "s1063": "Raisonnement du modèle", + "s1064": "Réglages du modèle", + "s1065": "Réglages et outils du modèle", + "s1066": "État du modèle", + "s1067": "Modèle optimisé", + "s1068": "Modèle déchargé", + "s1069": "Version du modèle", + "s1070": "Versions du modèle", + "s1071": "Poids du modèle", + "s1072": "Modèle {0} Go, contexte {1} Go, exécution {2} Go. {3}", + "s1073": "Modèles", + "s1074": "Modèles ajoutés. Choisissez-en un dans le sélecteur de modèle de la conversation.", + "s1075": "Modèles dans la conversation", + "s1076": "Moniteur", + "s1077": "Surveiller le GPU", + "s1078": "Surveiller le modèle", + "s1079": "Surveiller le processeur", + "s1080": "Capture d’écran du moniteur", + "s1081": "Plus", + "s1082": "Autres actions Time-skip", + "s1083": "Autres actions", + "s1084": "Plus concis", + "s1085": "Plus d’historique de conversation utilise plus de mémoire.", + "s1086": "D’autres paramètres du moteur deviennent disponibles après la préparation de cette version.", + "s1087": "Plus de mains, une seule conversation.", + "s1088": "Autres actions sur le message", + "s1089": "Plus d’espace libre", + "s1090": "Autres actions sur la réponse", + "s1091": "Plus d’emplacements demandent plus de mémoire et peuvent ralentir chaque réponse.", + "s1092": "Plus de texte utilise plus de mémoire.", + "s1093": "Plus — Serveur API et Paramètres", + "s1094": "Animations", + "s1095": "Cet hôte ne prend pas encore en charge plusieurs moteurs natifs ni l’attribution des GPU.", + "s1096": "Les performances de mon IA locale avec Strata", + "s1097": "Mon autre PC", + "s1098": "Mon propre domaine", + "s1099": "Politique NUMA", + "s1100": "Nom", + "s1101": "Nom affiché dans la conversation", + "s1102": "Format KV natif", + "s1103": "JSON de configuration native", + "s1104": "La connexion de contrôle native est fermée.", + "s1105": "Réglages du moteur natif", + "s1106": "Mode peu de RAM natif", + "s1107": "Modèle natif", + "s1108": "Éditeur de réglages natifs", + "s1109": "Modèle des réglages natifs", + "s1110": "Les réglages natifs doivent former un objet.", + "s1111": "{0} natif", + "s1112": "Un test de vitesse est nécessaire", + "s1113": "Les nouvelles requêtes API sont en pause.", + "s1114": "Les nouvelles requêtes API sont en pause. Reprenez-les dans Serveur API.", + "s1115": "Nouvelle conversation", + "s1116": "Nouvelle conversation", + "s1117": "Nouvelle tâche", + "s1118": "Page suivante", + "s1119": "Prochaine exécution", + "s1120": "Étapes suivantes", + "s1121": "Astuce suivante", + "s1122": "Aucune clé API", + "s1123": "Aucun fichier GGUF ici", + "s1124": "Aucun accélérateur GPU trouvé — Strata fonctionnera sur le CPU", + "s1125": "Aucun GPU détecté", + "s1126": "Aucune mesure du GPU pour l’instant", + "s1127": "Aucun PDF à afficher.", + "s1128": "Ni compte ni domaine nécessaires. Idéal pour une connexion rapide.", + "s1129": "Aucun candidat agent approuvé ne convient à cette configuration. Essayez Équilibré ou envisagez un contexte plus court.", + "s1130": "Aucune conversation pour l’instant", + "s1131": "Aucune commande ne correspond à « /", + "s1132": "Aucune mesure de vitesse comparable pour cette configuration.", + "s1133": "Aucun modèle compatible ne tient dans ce contexte et ce budget de mémoire. Envisagez un contexte plus court.", + "s1134": "Aucune conversation sélectionnée", + "s1135": "Aucune tâche supprimée", + "s1136": "Aucun modèle téléchargé", + "s1137": "Aucun message du moteur pour l’instant.", + "s1138": "Aucun contenu de fichier n’a été fourni.", + "s1139": "Aucun port privé libre n’a été trouvé pour le moteur.", + "s1140": "Aucun fichier local n’est disponible.", + "s1141": "Aucun modèle local téléchargé pour l’instant.", + "s1142": "Aucune conversation correspondante", + "s1143": "Aucune conversation correspondante. Essayez une autre recherche.", + "s1144": "Aucune version de llama.cpp correspondante pour cette plateforme", + "s1145": "Aucune requête correspondante", + "s1146": "Aucune compétence correspondante", + "s1147": "Aucune tâche correspondante", + "s1148": "Aucun message pour l’instant", + "s1149": "Aucun microphone disponible. Vérifiez la connexion de votre microphone.", + "s1150": "Aucun modèle n’est chargé.", + "s1151": "Aucun modèle n’est chargé. Choisissez-en un dans Modèles, puis réessayez.", + "s1152": "Aucun modèle chargé", + "s1153": "Aucun modèle chargé — rien à redémarrer", + "s1154": "Aucune version de modèle disponible.", + "s1155": "Aucun modèle sélectionné pour l’instant. Récupérez la liste ou ajoutez un ID de modèle.", + "s1156": "Aucun connecteur officiel à télécharger n’a été trouvé pour cet ordinateur.", + "s1157": "Aucun paramètre ne correspond à vos filtres.", + "s1158": "Aucun paramètre ne correspond.", + "s1159": "Aucune utilisation de requête enregistrée", + "s1160": "Aucun échantillon de vitesse enregistré pour l’instant", + "s1161": "Aucune version publiée", + "s1162": "Aucune utilisation de modèle signalée sur cette période.", + "s1163": "Aucune requête pour l’instant", + "s1164": "Aucune requête pour l’instant", + "s1165": "Aucun résultat pour l’instant.", + "s1166": "Aucune conversation enregistrée à cette position.", + "s1167": "Aucun moteur précédent enregistré n’est disponible.", + "s1168": "Aucune version précédente enregistrée", + "s1169": "Aucune tâche planifiée pour l’instant", + "s1170": "Aucune compétence pour l’instant", + "s1171": "Aucune parole détectée. Essayez de parler plus près du microphone.", + "s1172": "Aucune version stable de Strata n’est encore publiée dans ce flux.", + "s1173": "Aucun sous-agent enregistré", + "s1174": "Aucun GPU pris en charge n’a été signalé par cette installation.", + "s1175": "Aucune longueur de contexte prise en charge.", + "s1176": "Aucune tâche pour l’instant", + "s1177": "Aucun texte n’a été ajouté. Votre brouillon est prêt à être modifié.", + "s1178": "Aucun appel d’outil dans cette conversation.", + "s1179": "Aucun message de l’utilisateur trouvé", + "s1180": "Aucune version disponible.", + "s1181": "Aucune version téléchargée pour l’instant. Choisissez-en une ci-dessus pour commencer.", + "s1182": "Aucun dossier de données accessible en écriture trouvé — définissez STRATA_HOME sur un chemin accessible en écriture", + "s1183": "Indisponible", + "s1184": "Pas disponible pour toutes les requêtes", + "s1185": "Non défini", + "s1186": "Pas encore défini", + "s1187": "Non téléchargé", + "s1188": "Espace disque insuffisant", + "s1189": "Stockage insuffisant", + "s1190": "Non estimé", + "s1191": "Introuvable", + "s1192": "Non installé", + "s1193": "Non conservé", + "s1194": "Non communiqué", + "s1195": "Non évalué pour les tâches d’agent", + "s1196": "Non pris en charge par ce moteur", + "s1197": "Non utilisé par ce moteur", + "s1198": "Pas encore disponible", + "s1199": "Rien ne correspond à « ", + "s1200": "Maintenant", + "s1201": "Désactivé", + "s1202": "Activé", + "s1203": "Dans les temps", + "s1204": "Sur cet ordinateur", + "s1205": "Sur cet ordinateur. Restaurez-le quand vous voulez depuis Modèles.", + "s1206": "Une seule URL d’API · routage par ID de modèle", + "s1207": "Une seule configuration pour toutes les commandes.", + "s1208": "Un seul fichier", + "s1209": "Un modèle à la fois. Le chargement bascule vers le modèle sélectionné.", + "s1210": "Un plan, tout réuni", + "s1211": "Une vérification qui passait auparavant échoue maintenant.", + "s1212": "Un seul pool de mémoire partagé", + "s1213": "Mesure unique · environ 5 à 10 minutes. Votre ordinateur sera occupé.", + "s1214": "Seules les applications dotées de votre clé API Strata peuvent utiliser cette connexion.", + "s1215": "Seuls les dossiers et les fichiers GGUF sont affichés. Les adaptateurs LoRA et les projecteurs d’images demandent une prise en charge distincte.", + "s1216": "Seulement dans {0}", + "s1217": "Seule l’API d’inférence est partagée. Votre ordinateur et Strata doivent rester allumés.", + "s1218": "Opaque", + "s1219": "Ouvrir", + "s1220": "Ouvrez Modèles et déchargez d’abord les modèles natifs en cours d’exécution.", + "s1221": "Ouvrir le moniteur", + "s1222": "Ouvrir les tâches", + "s1223": "Ouvrez une conversation et attendez la fin de la réponse en cours.", + "s1224": "Ouvrez d’abord une conversation qui contient des messages.", + "s1225": "Ouvrir un fichier local dans le panneau d’aperçu", + "s1226": "Ouvrir un site web", + "s1227": "Ouvrir un site web dans le panneau d’aperçu", + "s1228": "Ouvrez un autre dossier ou saisissez plus haut le chemin complet du modèle.", + "s1229": "Ouvrir le dossier", + "s1230": "Ouvrir avec l’application par défaut", + "s1231": "Ouvrir dans le panneau latéral", + "s1232": "Ouvrir la navigation", + "s1233": "Ouvrir l’original", + "s1234": "Ouvrir hors de l’aperçu", + "s1235": "Ouvrir l’aperçu", + "s1236": "Aperçus ouverts", + "s1237": "Ouvrir le résultat", + "s1238": "Ouvrez six types de sorties différents pour que je puisse affiner l’aperçu du design.", + "s1239": "Ouvrez l’application Strata locale pour utiliser les commandes de l’hôte.", + "s1240": "Ouvrez la page de la version pour mettre à jour cette installation", + "s1241": "Ouvrez le nombre de sous-agents ci-dessus pour examiner cette exécution d’exemple. Chaque ligne indique l’état, l’utilisation de tokens et le temps écoulé.", + "s1242": "Ouvrir {0}", + "s1243": "Ouvrir {0} dans le panneau latéral", + "s1244": "OpenAI Chat Completions", + "s1245": "OpenAI Responses", + "s1246": "Composition aérée", + "s1247": "Ouverture de la visionneuse PDF…", + "s1248": "Ouvre une copie locale de cet aperçu.", + "s1249": "Fichiers de modèle Strata optimisés", + "s1250": "Facultatif", + "s1251": "Options pour {0}", + "s1252": "Original", + "s1253": "Couverture Fieldnotes d’origine : Room to begin again, avec des formes botaniques.", + "s1254": "Idée d’origine conservée", + "s1255": "Original restauré", + "s1256": "Original restauré dans cet exemple.", + "s1257": "Original enregistré", + "s1258": "Autres applications", + "s1259": "D’autres modèles chargés ont réservé cette mémoire. Choisissez un autre GPU, réduisez le contexte ou déchargez un modèle.", + "s1260": "Les autres modèles chargés restent disponibles.", + "s1261": "Autres modèles locaux", + "s1262": "Autres modèles locaux…", + "s1263": "Sortie", + "s1264": "Tokens de sortie", + "s1265": "Vue d’ensemble", + "s1266": "PCIe", + "s1267": "Transfert PCIe", + "s1268": "PDF", + "s1269": "Commandes du PDF", + "s1270": "Page {0} du PDF", + "s1271": "Les requêtes parallèles multiplient la mémoire du cache KV — laissez 1 sur une mémoire unifiée.", + "s1272": "Groupe de paramètres", + "s1273": "Paramètres", + "s1274": "En réserve", + "s1275": "En réserve / restaurées", + "s1276": "Conversations en réserve", + "s1277": "Les conversations en réserve reprennent depuis leur état enregistré. La plus ancienne est retirée quand le cache est plein.", + "s1278": "Le placement partiel des couches sur le GPU nécessite un plan d’allocation vérifié. Choisissez Automatique, Toutes les couches ou CPU uniquement.", + "s1279": "Déchargement partiel : la répartition entre le GPU et la mémoire système n’est pas estimée.", + "s1280": "Collez uniquement le token qui suit --token", + "s1281": "Collez le token du tunnel fourni par Cloudflare, pas la commande d’installation complète.", + "s1282": "Mettre l’animation en pause", + "s1283": "En pause", + "s1284": "Heure de pointe", + "s1285": "Fenêtre de pénalité", + "s1286": "En attente", + "s1287": "Performances", + "s1288": "Choisir une planification", + "s1289": "Les images sont ouvertes dans l’aperçu. Choisissez un modèle local avec Lire les images activé pour les envoyer.", + "s1290": "Les images doivent être des fichiers PNG, JPEG ou WebP joints.", + "s1291": "Épingler", + "s1292": "Épinglé", + "s1293": "Plan", + "s1294": "Lancer l’animation", + "s1295": "Portfolio prêt à publier", + "s1296": "Portugais", + "s1297": "Puissance", + "s1298": "Traitement du prompt", + "s1299": "Traitement du prompt de la dernière requête", + "s1300": "Traiter le prompt maintenant", + "s1301": "Traiter le prompt de cette requête", + "s1302": "Préparer", + "s1303": "Préparez d’abord un modèle. Son installateur télécharge le moteur correspondant.", + "s1304": "Préparez un modèle dans Modèles pour configurer les paramètres de son moteur et ses outils MCP.", + "s1305": "Préparez d’abord l’environnement Python.", + "s1306": "Préparez le modèle avant d’optimiser.", + "s1307": "Préparez ce modèle avant de calibrer.", + "s1308": "Préparez les fichiers de vision de ce modèle avant d’activer la lecture d’images.", + "s1309": "Préparation des fichiers…", + "s1310": "Préparation de la capture d’écran…", + "s1311": "Préparation de votre connecteur", + "s1312": "Préparation de votre modèle", + "s1313": "Préparation de votre modèle…", + "s1314": "Préparation de votre capture d’écran…", + "s1315": "Préparation…", + "s1316": "Pénalité de présence", + "s1317": "Conservé avant toute révision.", + "s1318": "Appuyez sur les touches…", + "s1319": "Aperçu", + "s1320": "Version d’aperçu", + "s1321": "Actions sur le fichier d’aperçu", + "s1322": "Aperçu des statistiques des sous-agents", + "s1323": "Test d’aperçu · Exemple", + "s1324": "Largeur de l’aperçu : {0} pixels", + "s1325": "Moteur précédent disponible", + "s1326": "Page précédente", + "s1327": "Confidentialité", + "s1328": "La confidentialité d’abord", + "s1329": "Informations sur le processeur indisponibles", + "s1330": "Programme", + "s1331": "La progression s’affiche dans Modèles.", + "s1332": "Prompt", + "s1333": "Lot de prompts", + "s1334": "Lot de prompts ·", + "s1335": "Le contenu du prompt et la position passée dans la file ne sont pas conservés. Cette vue se met à jour pendant l’exécution de la requête.", + "s1336": "Lecture du prompt", + "s1337": "Protégez votre connexion", + "s1338": "Fournisseur", + "s1339": "Valeur par défaut du fournisseur", + "s1340": "Nom du fournisseur", + "s1341": "Quantification", + "s1342": "Longueur de la file", + "s1343": "En file d’attente", + "s1344": "Qwen · IQ2_M", + "s1345": "Qwen · IQ3_XXS", + "s1346": "Qwen · Q2_K", + "s1347": "RAM", + "s1348": "Marge de RAM", + "s1349": "Configuration brute", + "s1350": "Lecture", + "s1351": "Lire les experts depuis le disque", + "s1352": "Lire les images", + "s1353": "Lire les images quand ce modèle se charge", + "s1354": "Lire le prompt", + "s1355": "Lire un prompt d’exemple", + "s1356": "Débit de lecture", + "s1357": "Lecture", + "s1358": "Lecture et concentration", + "s1359": "Vitesses de lecture et de réponse. {0}.", + "s1360": "Lecture des fichiers…", + "s1361": "Lecture de la mémoire…", + "s1362": "Lecture du dossier des modèles…", + "s1363": "Lecture du prompt", + "s1364": "Lecture des réglages enregistrés…", + "s1365": "Taille de lecture", + "s1366": "Taille du texte de lecture", + "s1367": "Lecture en tok/s", + "s1368": "Lectures", + "s1369": "Prêt", + "s1370": "Prêt pour une requête.", + "s1371": "Prêt pour les requêtes.", + "s1372": "Prêt à se connecter", + "s1373": "Prêt à écouter", + "s1374": "Prêt pour l’aperçu", + "s1375": "Prêt à être restauré depuis les Réglages enregistrés.", + "s1376": "Prêt pour la revue", + "s1377": "Effort de raisonnement", + "s1378": "Niveau d’effort de raisonnement", + "s1379": "Effort de raisonnement : {0}", + "s1380": "Le raisonnement utilise les valeurs par défaut du fournisseur d’API.", + "s1381": "Conversations récentes", + "s1382": "Requêtes récentes", + "s1383": "Recommandé", + "s1384": "Valeurs par défaut recommandées", + "s1385": "Recommandé :", + "s1386": "Reconnecter le fichier", + "s1387": "Reconnecter le fichier local", + "s1388": "Durée enregistrée", + "s1389": "Tokens enregistrés en entrée / sortie", + "s1390": "Réduisez le contexte ou choisissez une version plus petite pour que ce modèle tienne.", + "s1391": "Réduit", + "s1392": "Réduire les animations désactive aussi le défilement fluide.", + "s1393": "Faites le point sur l’avancement et planifiez la semaine prochaine.", + "s1394": "Actualiser les compétences", + "s1395": "Révision de la couverture Fieldnotes rejetée : la mise en page raccourcie supprime le sous-titre utile.", + "s1396": "Recharger l’aperçu", + "s1397": "Recharger l’enregistré", + "s1398": "Recharge le modèle en mémoire", + "s1399": "Retirer", + "s1400": "Retirer la clé API ?", + "s1401": "Retirer le serveur MCP {0}", + "s1402": "Supprimer la connexion", + "s1403": "Échec du retrait", + "s1404": "Retirer de Strata ?", + "s1405": "Retirer de Strata…", + "s1406": "Retirer de la barre latérale", + "s1407": "Retirer la clé", + "s1408": "Retirer le modèle", + "s1409": "Retirer la clé API enregistrée", + "s1410": "Retire ce modèle de Strata. Vos fichiers GGUF d’origine restent dans leur dossier.", + "s1411": "Retirer l’espace de travail de la barre latérale ?", + "s1412": "Retirer {0}", + "s1413": "Supprime {0} Go de fichiers téléchargés. Vous pourrez télécharger à nouveau cette version.", + "s1414": "Retirer {0} du sélecteur de conversation", + "s1415": "Retirer {0} de la barre latérale", + "s1416": "Supprime {0} de fichiers téléchargés. Vous pourrez télécharger à nouveau cette version.", + "s1417": "Retirer {0} ?", + "s1418": "Retrait…", + "s1419": "Renommer", + "s1420": "Renommer la conversation", + "s1421": "Affichage de la page…", + "s1422": "Répéter", + "s1423": "Répéter automatiquement", + "s1424": "Pénalité de répétition", + "s1425": "Répéter la tâche", + "s1426": "Se répète chaque jour de la semaine", + "s1427": "Pénalité de répétition", + "s1428": "Remplacer ce brouillon par les réglages enregistrés en dernier dans le moteur.", + "s1429": "Rejouer", + "s1430": "Rejouer l’exemple", + "s1431": "Revoir cette astuce", + "s1432": "Signalé par le modèle", + "s1433": "Utilisation de tokens signalée par modèle au fil du temps. {0} tokens.", + "s1434": "Requête", + "s1435": "Corps de la requête trop volumineux", + "s1436": "Détails de la requête", + "s1437": "Échec de la requête ({0} {1})", + "s1438": "La taille de la requête est l’entrée plus la sortie à la fin. Ce n’est pas une lecture en direct du cache du modèle. Les anciens messages peuvent n’avoir aucune utilisation enregistrée.", + "s1439": "Filtre d’état des requêtes", + "s1440": "État de la requête indisponible. Reconnectez-vous avant de changer le modèle chargé.", + "s1441": "Délai d’attente de la requête", + "s1442": "Requêtes", + "s1443": "Les requêtes apparaissent ici quand un client ou la conversation Strata utilise l’API.", + "s1444": "Les requêtes, le contexte et la vitesse concernent ce modèle. Les mesures du GPU incluent tout le travail des périphériques sélectionnés.", + "s1445": "Requis ·", + "s1446": "Nécessite une installation de Strata plus récente.", + "s1447": "Recherche", + "s1448": "Réinitialiser", + "s1449": "Rétablir les valeurs par défaut", + "s1450": "La réinitialisation a perdu son état", + "s1451": "La réinitialisation est à revoir", + "s1452": "Revenir aux réglages recommandés", + "s1453": "La réinitialisation fonctionne", + "s1454": "Remettre {0} sur la valeur recommandée", + "s1455": "Redimensionner le panneau d’aperçu", + "s1456": "Aperçu de la préférence de ressources", + "s1457": "Ressources", + "s1458": "Réglages des réponses", + "s1459": "Sections des réglages des réponses", + "s1460": "Responses", + "s1461": "Responses nécessite un modèle natif en cours d’exécution et une version de Strata qui prend en charge cette API. Si besoin, mettez à jour l’installation native dans Paramètres → À propos.", + "s1462": "Les réponses sont des exemples simulés, pas celles d’un vrai modèle.", + "s1463": "Redémarrer le moteur", + "s1464": "Échec du redémarrage", + "s1465": "Le redémarrage n’est pas disponible avec le moteur d’exemple. Enregistrez les réglages pour le prochain chargement.", + "s1466": "Redémarrage indisponible avec le moteur d’exemple", + "s1467": "Restaurer", + "s1468": "Rétablir les valeurs par défaut", + "s1469": "Restaurer le résultat d’origine", + "s1470": "Restaurer le moteur précédent", + "s1471": "Restaurer l’enregistré", + "s1472": "Restaurer les réglages enregistrés", + "s1473": "Restaurer les réglages enregistrés ?", + "s1474": "Restaurer les réglages", + "s1475": "Restaurez d’abord cette tâche.", + "s1476": "Restauré", + "s1477": "Comparaison des résultats", + "s1478": "Résultat prêt · comparez les versions", + "s1479": "Version du résultat", + "s1480": "Reprendre le téléchargement", + "s1481": "Réessayer", + "s1482": "Réessayer le téléchargement", + "s1483": "Réessayer le chargement", + "s1484": "Réessayer l’installation", + "s1485": "Nouvelle tentative…", + "s1486": "Réutilisation non communiquée", + "s1487": "Réutilisé", + "s1488": "Réutilisé depuis le démarrage", + "s1489": "Rétablir", + "s1490": "Relire", + "s1491": "Revoir les réglages recommandés", + "s1492": "Revoir les résultats", + "s1493": "Revoyez les réglages en surbrillance avant de charger.", + "s1494": "Relisez les instructions, puis choisissez une planification.", + "s1495": "Examen des paramètres pris en charge", + "s1496": "Relit un fichier ou un diff : d’abord l’exactitude, puis le style, et signale ses constats avec les numéros de ligne.", + "s1497": "Révision du brouillon enregistré. Suivez le résultat dans la barre latérale. Cet exemple utilise des sorties factices et des vérifications simulées.", + "s1498": "Révision · suivre la progression", + "s1499": "Révision…", + "s1500": "Révision", + "s1501": "Révision rejetée · le meilleur point de départ est conservé.", + "s1502": "Revenir ici", + "s1503": "Ici même, sur votre ordinateur", + "s1504": "Base RoPE", + "s1505": "Mise à l’échelle RoPE", + "s1506": "Revenir à une version antérieure", + "s1507": "Revenir en arrière…", + "s1508": "Le retour en arrière nécessite un moteur précédent enregistré par une version de Strata qui le prend en charge.", + "s1509": "De la place pour les autres applications", + "s1510": "De la place pour votre travail au quotidien", + "s1511": "Place restante inconnue", + "s1512": "Lancez un prompt selon un horaire, ou quand vous en avez besoin.", + "s1513": "JSON de configuration d’exécution", + "s1514": "Lancer le modèle", + "s1515": "Exécuter plusieurs modèles", + "s1516": "Lancer maintenant", + "s1517": "Exécuter sur", + "s1518": "Exécuter selon un horaire", + "s1519": "Impossible de charger les profils d’exécution.", + "s1520": "Réglages d’exécution", + "s1521": "Lancer l’installation", + "s1522": "Lancer le test court", + "s1523": "Lancer le test de vitesse", + "s1524": "Lancez cette tâche pour voir ici son premier résultat.", + "s1525": "Lancer {0} maintenant", + "s1526": "En cours", + "s1527": "En cours…", + "s1528": "Exécute une commande", + "s1529": "S’exécute tant que l’hôte de Strata est ouvert. Exécute les instructions enregistrées avec le modèle chargé.", + "s1530": "Exécution", + "s1531": "Russe", + "s1532": "SSD", + "s1533": "Informations sur le débordement sur SSD", + "s1534": "Débordement sur SSD probable", + "s1535": "Débordement sur SSD probable. Une partie de ce modèle peut être lue depuis le stockage, les réponses peuvent donc être plus lentes.", + "s1536": "Débordement sur SSD · réponses plus lentes", + "s1537": "Mêmes vérifications, deux versions", + "s1538": "Même pool de mémoire que la RAM système", + "s1539": "L’exemple dépasse le contexte, 256 tokens de sortie compris. Choisissez un texte plus court ou augmentez le contexte.", + "s1540": "Image d’exemple · 1200 × 900", + "s1541": "Charge de travail d’exemple", + "s1542": "Échantillonnage", + "s1543": "L’échantillonnage doit être un objet.", + "s1544": "Enregistrer", + "s1545": "Enregistrer la capture d’écran du moniteur", + "s1546": "Enregistrez une configuration pour la réutiliser.", + "s1547": "Enregistrer et redémarrer", + "s1548": "Enregistrer sous un nouveau nom…", + "s1549": "Enregistrer les modifications", + "s1550": "Enregistrer les réglages actuels…", + "s1551": "Enregistrer les journaux", + "s1552": "Enregistrer le nom", + "s1553": "Enregistrer le rapport", + "s1554": "Enregistrer les réglages", + "s1555": "Enregistrer les réglages pour le prochain chargement.", + "s1556": "Enregistrer le brouillon et redémarrer", + "s1557": "Enregistrer l’original", + "s1558": "Enregistrer dans", + "s1559": "Brouillon enregistré", + "s1560": "Enregistré sur l’hôte Strata, jamais dans le stockage du navigateur.", + "s1561": "Impossible de lire les profils d’exécution enregistrés.", + "s1562": "Enregistré en lieu sûr", + "s1563": "Réglages enregistrés", + "s1564": "Réglages enregistrés{0}{1}", + "s1565": "Enregistré. Rechargez le modèle pour appliquer ces réglages. Une sauvegarde de la configuration précédente a été conservée.", + "s1566": "Enregistrement de l’original…", + "s1567": "Enregistrement du premier brouillon avant d’explorer une autre direction.", + "s1568": "Enregistrement…", + "s1569": "Dites bonjour, ou lancez-vous directement.", + "s1570": "Agrandir la navigation et les commandes.", + "s1571": "Planifier votre tâche", + "s1572": "Planifier {0}", + "s1573": "Tâches planifiées", + "s1574": "Planifiée · calcul de la prochaine exécution", + "s1575": "Impossible de préparer la capture d’écran.", + "s1576": "Impossible d’enregistrer la capture d’écran.", + "s1577": "Impossible de charger les icônes de la capture d’écran. Réessayez.", + "s1578": "Faire défiler les onglets d’aperçu vers la gauche", + "s1579": "Faire défiler les onglets d’aperçu vers la droite", + "s1580": "Rechercher dans toutes les conversations", + "s1581": "Rechercher dans les conversations", + "s1582": "Rechercher des conversations, des écrans ou des actions…", + "s1583": "Rechercher des conversations…", + "s1584": "Rechercher des commandes", + "s1585": "Rechercher des paramètres du moteur", + "s1586": "Rechercher un nom ou une clé technique…", + "s1587": "Rechercher des paramètres natifs", + "s1588": "Rechercher des paramètres", + "s1589": "Rechercher des paramètres…", + "s1590": "Rechercher des requêtes", + "s1591": "Rechercher des compétences", + "s1592": "Rechercher des compétences…", + "s1593": "Rechercher des tâches", + "s1594": "Rechercher des tâches…", + "s1595": "Graine", + "s1596": "Sélectionnez un fichier de modèle .gguf. Les dossiers, adaptateurs et projecteurs ne peuvent pas être chargés comme modèle de conversation.", + "s1597": "Sélectionnez un modèle pour voir son contexte et sa vitesse. Les mesures du GPU et de la RAM système sont des mesures partagées de l’hôte.", + "s1598": "Sélectionnez un modèle pour voir le contexte", + "s1599": "Sélectionnez le modèle à lancer.", + "s1600": "Sélectionnez le fichier .gguf du modèle, et non son dossier.", + "s1601": "Sélectionnez la valeur et copiez-la manuellement.", + "s1602": "Sélectionnez cette version pour voir le contexte, la mémoire et les performances.", + "s1603": "Sélectionné", + "s1604": "Sélectionné automatiquement pour ce modèle sur cet ordinateur.", + "s1605": "Envoyer", + "s1606": "Envoyer le message", + "s1607": "Séparez les expressions par des virgules.", + "s1608": "URL du serveur", + "s1609": "Accès au serveur", + "s1610": "L’accès au serveur se gère dans Serveur API", + "s1611": "Serveur API", + "s1612": "Filtre du modèle servi", + "s1613": "Statistiques de la session", + "s1614": "Sessions", + "s1615": "Définir", + "s1616": "Définissez une clé API avant de partager avec d’autres appareils.", + "s1617": "Définissez son URL de base sur", + "s1618": "Définir la clé", + "s1619": "Définissez les combinaisons de touches qui vous conviennent.", + "s1620": "Fixez le résultat voulu", + "s1621": "Configurer Strata", + "s1622": "Configurer une tâche récurrente", + "s1623": "Configurer manuellement", + "s1624": "Configurer votre domaine", + "s1625": "Configuration…", + "s1626": "Paramètres", + "s1627": "Les réglages sont prêts. Chargez le modèle quand vous voulez.", + "s1628": "Réglages de ce modèle. Les valeurs vides utilisent les valeurs par défaut de Strata.", + "s1629": "Nom des réglages", + "s1630": "Réglages enregistrés", + "s1631": "Sections des paramètres", + "s1632": "Contexte de conversation de l’installation", + "s1633": "Objectif de l’installation", + "s1634": "Modèle de l’installation", + "s1635": "Installation requise", + "s1636": "Progression de l’installation", + "s1637": "Partager", + "s1638": "Partager sur Reddit", + "s1639": "Partager sur X", + "s1640": "Partagé", + "s1641": "Mémoire GPU partagée", + "s1642": "RAM partagée après le chargement", + "s1643": "RAM partagée réservée", + "s1644": "Mémoire partagée · pas de liaison PCIe", + "s1645": "Partagé sur le réseau local", + "s1646": "Mémoire système partagée", + "s1647": "Mémoire unifiée partagée", + "s1648": "Partagé avec la RAM", + "s1649": "Le partage télécharge l’image et ouvre un brouillon. Joignez l’image à votre publication.", + "s1650": "Le partage est déjà en cours de démarrage.", + "s1651": "Maj + Entrée ajoute une ligne. Tapez / pour les commandes de conversation. Échap ferme les panneaux.", + "s1652": "Texte court", + "s1653": "Raccourcir le titre et aérer la composition en gardant le style botanique.", + "s1654": "Raccourci encore", + "s1655": "Titre raccourci", + "s1656": "Raccourcit la limite de sortie demandée quand le prompt laisse moins de place.", + "s1657": "Plus court et plus clair", + "s1658": "Plus court n’est pas toujours mieux.", + "s1659": "Afficher", + "s1660": "Afficher la clé API", + "s1661": "Tout afficher ({0})", + "s1662": "Afficher les descriptions", + "s1663": "Afficher moins", + "s1664": "Afficher dans l’explorateur de fichiers", + "s1665": "Afficher moins", + "s1666": "Afficher ou masquer la barre latérale", + "s1667": "Afficher la barre latérale", + "s1668": "Afficher les éléments non pris en charge", + "s1669": "Afficher {0} de plus", + "s1670": "Affichage des 1 000 premiers éléments. Saisissez un chemin pour ouvrir un fichier précis.", + "s1671": "Affichage des 1 000 premières lignes correspondantes.", + "s1672": "Vérifications de comparaison simulées", + "s1673": "Depuis", + "s1674": "Taille", + "s1675": "Sections de l’éditeur de compétences", + "s1676": "Compétence activée", + "s1677": "Portée de la compétence dans l’espace de travail", + "s1678": "Compétences", + "s1679": "Ignorer les demandes d’autorisation", + "s1680": "Commandes slash", + "s1681": "Plus lent · mémoire système", + "s1682": "Petits écrans", + "s1683": "Logiciel", + "s1684": "Logiciel à gérer", + "s1685": "Certains fichiers n’ont pas pu être lus. Essayez de les ajouter séparément.", + "s1686": "Des fichiers du modèle sont manquants. Utilisez Télécharger / réparer pour les restaurer.", + "s1687": "Quelque chose demande votre attention.", + "s1688": "Trier les tâches", + "s1689": "Source", + "s1690": "Espace", + "s1691": "Espace disponible", + "s1692": "Espace restant", + "s1693": "Espacement", + "s1694": "Espagnol", + "s1695": "Parler à nouveau", + "s1696": "Dicter dans la zone de message sans envoyer", + "s1697": "Parlez naturellement. Une pause de 3,5 secondes termine la dictée. Le texte apparaît dans votre zone de message sans être envoyé.", + "s1698": "Précis et ordonné", + "s1699": "La reconnaissance vocale n’est pas disponible dans ce navigateur. Essayez un navigateur compatible avec la dictée.", + "s1700": "La reconnaissance vocale n’est pas disponible dans ce navigateur. Utilisez la dictée intégrée à votre ordinateur.", + "s1701": "Dictée vocale", + "s1702": "Dictée vocale · {0}", + "s1703": "Vitesse", + "s1704": "Historique de vitesse", + "s1705": "Projection de vitesse", + "s1706": "La projection de vitesse doit être activée ou désactivée.", + "s1707": "Aperçu du test de vitesse", + "s1708": "Les vitesses proviennent de chaque instance du moteur. Les mesures manquantes affichent —.", + "s1709": "Les noms de fichiers GGUF fractionnés doivent contenir 00001-of-000NN et correspondre à leurs métadonnées.", + "s1710": "Répartir sur les GPU…", + "s1711": "Standard / système", + "s1712": "Démarrez une nouvelle conversation quand vous voulez.", + "s1713": "Recommencer", + "s1714": "Commencer à répondre", + "s1715": "Lancer la calibration", + "s1716": "Commencer à discuter", + "s1717": "Lancer l’aperçu", + "s1718": "Lancez-le avec `npm run host` puis rechargez la page.", + "s1719": "Démarrer ou arrêter la dictée", + "s1720": "Démarrer le partage", + "s1721": "Démarrez le connecteur pour le domaine que vous avez configuré.", + "s1722": "Partez d’une idée ci-dessous, ou créez la vôtre.", + "s1723": "Démarrer votre première conversation", + "s1724": "Démarrage · 0.5B Q4_K_M", + "s1725": "Démarrage du microphone…", + "s1726": "Démarrage…", + "s1727": "État", + "s1728": "À la pointe. Chez vous.", + "s1729": "Statut", + "s1730": "Statut indisponible", + "s1731": "Statut :", + "s1732": "Étape", + "s1733": "Tient toujours", + "s1734": "Arrêter", + "s1735": "Arrêter le test", + "s1736": "Arrêtez le partage local et Cloudflare avant de retirer la clé API.", + "s1737": "Arrêter le partage", + "s1738": "Arrêtez le test avant de décharger ce modèle.", + "s1739": "Arrêtez l’exécution en cours avant de modifier.", + "s1740": "Arrêtez le tunnel en cours avant d’en démarrer un autre.", + "s1741": "Arrêtez le serveur natif qui tourne hors de cette interface avant d’optimiser.", + "s1742": "Arrêtez le serveur natif qui tourne hors de cette interface avant de modifier les fichiers du moteur.", + "s1743": "Arrêtez le serveur natif qui tourne hors de cette interface avant de préparer les fichiers.", + "s1744": "Arrêtez cette tâche avant de la supprimer", + "s1745": "Arrêter l’optimisation", + "s1746": "Arrêter le tunnel", + "s1747": "Arrêter {0}", + "s1748": "Arrêté", + "s1749": "Arrêt du tunnel…", + "s1750": "Arrêt…", + "s1751": "Stockage", + "s1752": "Réglages du stockage", + "s1753": "Strata", + "s1754": "Strata peut maintenant lire les fichiers de {0}.", + "s1755": "Le contrôle de Strata s’est arrêté. Python 3.10 ou plus récent est requis.", + "s1756": "Strata n’a pas pu afficher cet écran", + "s1757": "Strata télécharge et configure le connecteur Cloudflare pour vous.", + "s1758": "Dossier Strata", + "s1759": "Police de Strata", + "s1760": "Dossier d’installation de Strata", + "s1761": "Strata n’est pas connecté à son moteur.", + "s1762": "Modèles optimisés par Strata", + "s1763": "Strata prépare tous les fragments, la couche de brouillon et les fichiers partagés. Les téléchargements terminés sont réutilisés.", + "s1764": "Strata n’envoie aucune télémétrie d’utilisation. Les conversations restent dans le stockage du navigateur. Quand vous choisissez un modèle API, cette conversation et les instructions des compétences activées sont envoyées à son fournisseur. Le journal des requêtes de l’interface garde en mémoire le client, les durées et les métadonnées de tokens. La surveillance de l’API native peut conserver le contenu des requêtes en mémoire lorsqu’elle est activée. Les outils connectés accèdent aux ressources que vous configurez.", + "s1765": "Strata utilise ces fichiers sur place. Vous pourrez charger le modèle après l’avoir ajouté.", + "s1766": "Strata — ouvrir la conversation", + "s1767": "Budget de Strata", + "s1768": "Échec du flux ({0})", + "s1769": "Version la plus solide conservée", + "s1770": "Structure en place", + "s1771": "Structure conservée", + "s1772": "Aperçu des sous-agents", + "s1773": "Sous-agents", + "s1774": "Les sous-agents lancés dans cette conversation apparaissent ici, avec leur progression, leur utilisation de tokens et leur durée. Les exécutions terminées restent visibles.", + "s1775": "Sous-agents — afficher la vue d’ensemble", + "s1776": "Vérification de réussite", + "s1777": "Suggérer une tâche", + "s1778": "Pris en charge", + "s1779": "Pris en charge, lecture du prompt plus lente", + "s1780": "Swift 1.5", + "s1781": "Basculer toutes les conversations sur {0} ({1}). Le chargement peut prendre quelques instants.", + "s1782": "Passer à", + "s1783": "Passez à un modèle local avec Lire les images activé, ou retirez les pièces jointes.", + "s1784": "Passer en mode sombre", + "s1785": "Passer au thème sombre", + "s1786": "Passer en mode clair", + "s1787": "Passer au thème clair", + "s1788": "Passer à {0} ?", + "s1789": "Changer de version", + "s1790": "Changer de version ?", + "s1791": "Système", + "s1792": "RAM système", + "s1793": "Budget système de {0} Go compté à part ; l’utilisation supplémentaire de l’hôte n’est pas estimée.", + "s1794": "Mémoire système", + "s1795": "Le budget de mémoire système réserve de la place pour le système d’exploitation.", + "s1796": "Jetez un œil pendant que nous préparons tout.", + "s1797": "On retient la direction la plus solide.", + "s1798": "Tâche supprimée", + "s1799": "Idées de tâches", + "s1800": "Tâche introuvable.", + "s1801": "Résultat de la tâche", + "s1802": "Étapes de configuration de la tâche", + "s1803": "Tâches", + "s1804": "Apprenez-moi une notion utile de statistiques. Ajoutez un exemple simple et une question pour vérifier ma compréhension.", + "s1805": "Température", + "s1806": "Adresse temporaire · désactivez le streaming dans votre client.", + "s1807": "Répartition des tenseurs", + "s1808": "Le texte est dans votre zone de message. Relisez-le avant de l’envoyer.", + "s1809": "Ce fichier n’existe plus.", + "s1810": "Ce fichier est en dehors de l’espace de travail.", + "s1811": "Ce dossier n’existe pas.", + "s1812": "Ce dossier ne contient pas de SKILL.md, le modèle n’a donc rien à lire. Un dossier de compétence contient un fichier SKILL.md avec ses instructions.", + "s1813": "Ce dossier est déjà dans vos espaces de travail.", + "s1814": "Cet ID de modèle n’est pas chargé. Choisissez-en un dans /v1/models.", + "s1815": "Ce nom de serveur est déjà utilisé.", + "s1816": "C’est un fichier, pas un dossier.", + "s1817": "C’est un dossier, pas un fichier.", + "s1818": "Le fichier GGUF est incomplet. Téléchargez tous ses poids avant de l’ajouter.", + "s1819": "L’en-tête GGUF est tronqué ou dépasse la taille de métadonnées prise en charge.", + "s1820": "L’environnement Python de Strata est introuvable. Utilisez d’abord Télécharger / réparer.", + "s1821": "Le service vocal du navigateur n’a pas pu se connecter. Vérifiez votre connexion ou essayez un autre navigateur.", + "s1822": "Le candidat ajoute du détail sans perdre l’idée d’origine.", + "s1823": "L’ordinateur sera occupé pendant environ 5 à 15 minutes. Déchargez d’abord les modèles.", + "s1824": "Le connecteur n’a pas pu être téléchargé. Vérifiez votre connexion et réessayez.", + "s1825": "Le connecteur n’a pas pu être préparé automatiquement.", + "s1826": "Le connecteur n’a pas pu être préparé automatiquement. Relancez la configuration du connecteur.", + "s1827": "Le téléchargement du connecteur n’a pas pu être vérifié. Relancez la configuration automatique.", + "s1828": "Le téléchargement du connecteur est anormalement volumineux.", + "s1829": "Le paquet du connecteur contenait un exécutable non valide.", + "s1830": "Le paquet du connecteur ne contenait pas l’exécutable attendu.", + "s1831": "Le cache de contexte et l’exécution doivent tenir dans la RAM ou la mémoire du GPU.", + "s1832": "Le modèle actuellement chargé peut différer de celui qui a répondu aux messages précédents.", + "s1833": "Le dossier de modèles par défaut est en conflit avec une autre bibliothèque. Choisissez un autre dossier.", + "s1834": "Le modèle d’image téléchargé n’a pas passé la vérification. Relancez le téléchargement.", + "s1835": "Le moteur ne s’est pas relancé.", + "s1836": "Le moteur ne tourne pas. Chargez un modèle avant d’appliquer les réglages.", + "s1837": "Le moteur a renvoyé une liste de modèles incomplète. Relancez l’opération.", + "s1838": "Le moteur indique toujours cette instance du modèle comme chargée.", + "s1839": "La mémoire estimée nécessaire dépasse celle de cet ordinateur.", + "s1840": "Le premier fragment est manquant ou non valide. Gardez tous les fragments du modèle dans le même dossier.", + "s1841": "Le premier espace de travail ne peut pas être retiré.", + "s1842": "Le parcours est prêt. Les vitesses restent non mesurées tant qu’aucun adaptateur de test local n’est connecté.", + "s1843": "L’hôte est en cours d’arrêt.", + "s1844": "Le fichier du modèle d’image est plus gros que prévu.", + "s1845": "La révision suivante supprime le sous-titre utile. Gardez la couverture complète.", + "s1846": "Le modèle chargé sera déchargé.", + "s1847": "La configuration du modèle est en dehors de l’installation de Strata.", + "s1848": "Le modèle n’a pas pu être chargé.", + "s1849": "Le modèle n’a pas fini de se charger.", + "s1850": "Le modèle ne s’est pas chargé.", + "s1851": "Le modèle n’a pas renvoyé de brouillon utilisable. Réessayez ou configurez manuellement.", + "s1852": "Les fichiers du modèle n’ont pas été supprimés.", + "s1853": "Le modèle n’a renvoyé aucune réponse.", + "s1854": "Les fragments du modèle ne forment pas un ensemble cohérent. Retéléchargez le fragment manquant ou différent.", + "s1855": "Le modèle sera retiré de Strata.", + "s1856": "Le modèle sera déchargé puis retiré de Strata.", + "s1857": "Le moteur natif n’a pas répondu à temps. Consultez les journaux du moteur.", + "s1858": "L’installation native doit utiliser le dépôt officiel de Strata pour se mettre à jour ici.", + "s1859": "L’installateur natif peut restaurer son moteur précédent. Les fichiers des modèles restent en place.", + "s1860": "L’installateur natif met à jour l’installation. Les fichiers des modèles et les réglages sont conservés. Déchargez les modèles natifs avant la mise à jour.", + "s1861": "La nouvelle révision est concise, mais perd un détail utile.", + "s1862": "L’opération n’a pas pu se terminer. Vérifiez la connexion au moteur et réessayez.", + "s1863": "Les fichiers GGUF d’origine sont conservés.", + "s1864": "L’original reste toujours disponible.", + "s1865": "L’original est enregistré. Le nouveau résultat apparaîtra ici quand il sera prêt à être comparé.", + "s1866": "L’original reste disponible.", + "s1867": "Le vrai moteur d’inférence est indisponible. Chargez un modèle et réessayez.", + "s1868": "Le service de versions a renvoyé une réponse non valide.", + "s1869": "Le résultat est prêt. Passez de l’original à la version mise à jour, ou comparez-les côte à côte. Cet exemple utilise des sorties factices et des vérifications simulées.", + "s1870": "Le modèle en cours d’exécution sera déchargé et ses fichiers supprimés.", + "s1871": "L’exemple ou le contexte n’est pas pris en charge par cette configuration.", + "s1872": "La boîte de dialogue d’enregistrement n’a pas pu s’ouvrir. Essayez d’enregistrer à nouveau la capture d’écran.", + "s1873": "La mise à jour enregistrée reste disponible.", + "s1874": "Le modèle sélectionné", + "s1875": "La révision plus courte casse la réinitialisation. Gardez les commandes fonctionnelles de B.", + "s1876": "La révision plus courte supprime une étape utile. Gardez la version complète de B.", + "s1877": "La version la plus solide est conservée.", + "s1878": "Le token sert uniquement à cette connexion et n’est pas enregistré.", + "s1879": "Le tunnel est en cours de mise à jour. Réessayez dans un instant.", + "s1880": "Le service de mise à jour a renvoyé un résultat incomplet.", + "s1881": "Le résultat mis à jour est prêt. Passez de l’original à la version mise à jour, ou comparez-les côte à côte. Cet exemple utilise des sorties factices et des vérifications simulées.", + "s1882": "Le résultat mis à jour reste disponible.", + "s1883": "La version n’a pas pu se charger. Réessayez quand le moteur sera prêt.", + "s1884": "Leur mémoire (RAM)", + "s1885": "Il n’y a pas assez de stockage libre pour ce modèle d’image.", + "s1886": "Il n’y a pas assez d’espace libre pour télécharger ce modèle.", + "s1887": "Ces fragments déclarent des architectures différentes.", + "s1888": "Réflexion", + "s1889": "Réflexion et rédaction", + "s1890": "Budget de tokens de réflexion", + "s1891": "Cette API n’a renvoyé aucun modèle. Ajoutez un ID de modèle ci-dessous.", + "s1892": "Ce GGUF n’inclut pas son tokenizer. Choisissez le modèle complet, pas un projecteur ni un adaptateur.", + "s1893": "Ce format de tenseur GGUF n’est pas encore pris en charge par l’importateur.", + "s1894": "Cette version de GGUF ou cet ordre des octets n’est pas pris en charge.", + "s1895": "Cette copie de Strata contient des modifications locales. Enregistrez-les ou validez-les avant de mettre à jour.", + "s1896": "Cette action est indisponible.", + "s1897": "Cet adaptateur ne peut pas appliquer les réglages de lot de prompts.", + "s1898": "Cet alias correspond à plusieurs instances. Choisissez l’ID exact du modèle.", + "s1899": "Ce navigateur n’offre pas de reconnaissance vocale. Utilisez la dictée intégrée à votre ordinateur dans la zone de message.", + "s1900": "Cette conversation sera supprimée définitivement.", + "s1901": "Cet ordinateur", + "s1902": "Cette configuration a besoin de plus de mémoire résidente. Revoyez le mappage mémoire ou choisissez une version plus petite.", + "s1903": "Cette conversation", + "s1904": "Ce moteur ne peut pas encore exécuter de modèles d’images. Choisissez Désactivé pour lancer le modèle de conversation.", + "s1905": "Ce fichier ne peut pas être ouvert.", + "s1906": "Ce fichier n’est pas un aperçu local.", + "s1907": "Ce fichier ou ce dossier est indisponible. Vérifiez son emplacement et ses autorisations.", + "s1908": "Ce type de fichier ne peut pas être ouvert depuis un aperçu.", + "s1909": "Ce dossier est indisponible ou protégé en écriture. Vérifiez le chemin et les autorisations du dossier.", + "s1910": "Cette installation ne calibre que les GPU NVIDIA. Utilisez le test court sur les autres appareils.", + "s1911": "Cette installation n’a pas de numéro de version comparable.", + "s1912": "C’est un adaptateur ou un fichier auxiliaire. Choisissez le GGUF du modèle complet.", + "s1913": "Ce n’est qu’un avertissement : le modèle risque d’être plus lent à cause du déchargement sur le SSD.", + "s1914": "Ce n’est pas un fichier de modèle GGUF.", + "s1915": "Cette API locale n’a pas de clé configurée.", + "s1916": "Ce média n’a pas pu se charger.", + "s1917": "Ce modèle ne tient pas dans la configuration choisie.", + "s1918": "Les métadonnées d’attention ou d’experts de ce modèle ne sont pas valides.", + "s1919": "Il manque des tenseurs ou des fragments à ce modèle.", + "s1920": "Ce modèle n’est plus chargé.", + "s1921": "Ce modèle n’est pas installé. Téléchargez-le et préparez-le d’abord.", + "s1922": "Ce modèle n’est pas prêt.", + "s1923": "Ce modèle a besoin d’un moteur plus récent.", + "s1924": "Ce modèle a besoin d’environ {0} Go.{1}", + "s1925": "Ce modèle prend en charge jusqu’à", + "s1926": "Cette version du modèle est indisponible.", + "s1927": "Ce modèle a été déchargé avant l’envoi.", + "s1928": "Cet hôte natif prend actuellement en charge un seul modèle avec placement automatique sur le GPU.", + "s1929": "Cet hôte natif prend en charge un seul modèle avec placement automatique sur le GPU.", + "s1930": "Cette opération n’est plus en cours.", + "s1931": "Cette image n’a pas pu être enregistrée.", + "s1932": "Ce port privé du moteur est déjà utilisé.", + "s1933": "Cet hôte ne peut pas annuler cette requête.", + "s1934": "Cette requête n’est plus conservée dans le journal de session.", + "s1935": "Cette requête n’est plus conservée.", + "s1936": "Cette configuration ne peut pas faire tenir son contexte et son exécution dans la mémoire disponible. Réduisez le contexte ou utilisez une version plus petite.", + "s1937": "Ce modèle fractionné a un nombre de fragments non pris en charge.", + "s1938": "Cela change la version du modèle pour toutes les conversations. Vos conversations restent enregistrées.", + "s1939": "Cela fait passer cette conversation en mode Ignorer les autorisations. Serveurs :", + "s1940": "Ce fichier texte est trop volumineux pour être prévisualisé.", + "s1941": "Cela prend en général quelques secondes. Vous pouvez fermer cette fenêtre pendant la connexion.", + "s1942": "Cette version n’est plus téléchargée.", + "s1943": "Cette version a besoin de plus de mémoire avec le contexte actuel. Choisissez une version plus petite ou réduisez le contexte dans Moteur.", + "s1944": "Ce site web n’a pas de fichier local", + "s1945": "Cet espace de travail", + "s1946": "Trois tâches qui avancent ensemble", + "s1947": "Juste — choisissez la plus petite variante", + "s1948": "Heure", + "s1949": "Time-skip", + "s1950": "Actions Time-skip", + "s1951": "Time-skip {0}", + "s1952": "Vers le GPU {0} Mo/s{1}", + "s1953": "Tok/s", + "s1954": "Utilisation des tokens", + "s1955": "Tokens en entrée / sortie", + "s1956": "Tokens de la requête en cours ou de la dernière requête de ce modèle.", + "s1957": "Demain est déjà planifié", + "s1958": "Trop gros", + "s1959": "Trop gros pour ce PC", + "s1960": "Trop général", + "s1961": "Activité des outils ·", + "s1962": "L’exécution des outils n’est pas connectée dans cette version. Les propositions et approbations enregistrées sont des exemples. La disponibilité n’accorde aucune autorisation.", + "s1963": "Temps des outils", + "s1964": "Délai d’attente des outils (secondes)", + "s1965": "Outils", + "s1966": "Outils et longs prompts", + "s1967": "Top-k", + "s1968": "Top-p", + "s1969": "Total sur les GPU sélectionnés", + "s1970": "Total dans cette conversation", + "s1971": "Mémoire totale", + "s1972": "Capacité physique totale de la RAM et de tous les GPU dédiés. Le placement du modèle détermine comment elle est utilisée.", + "s1973": "Total de tokens", + "s1974": "Transfert total vers les GPU sélectionnés", + "s1975": "Sujet de la visite", + "s1976": "Transfert vers le GPU indisponible", + "s1977": "Translucide", + "s1978": "Commandes translucides ou surfaces pleines. Le texte reste opaque.", + "s1979": "Transparence", + "s1980": "Phrases déclencheuses", + "s1981": "Essayez /time-skip, ou chargez un modèle pour discuter…", + "s1982": "Réessayer", + "s1983": "Essayez un autre filtre ou un autre nom de client.", + "s1984": "Essayez une autre recherche.", + "s1985": "Essayez ceci dans Strata", + "s1986": "Essayez deux versions et gardez la meilleure", + "s1987": "Essai d’une nouvelle direction", + "s1988": "Nouvel essai de révision. Votre progression est enregistrée.", + "s1989": "Optimiser et commencer à discuter", + "s1990": "Optimiser le modèle", + "s1991": "Optimisé pour votre ordinateur", + "s1992": "Optimisation arrêtée. Vos fichiers de modèle sont intacts.", + "s1993": "Optimisation…", + "s1994": "Token du tunnel", + "s1995": "Tournez le cadran · ou utilisez les flèches", + "s1996": "Transformez vos notes en plan de matinée ciblé.", + "s1997": "Tours / appels d’outils", + "s1998": "Transforme les commits fusionnés en notes de version destinées aux utilisateurs, regroupées par nouveauté, correctif et changement majeur.", + "s1999": "Deux passes. Une amélioration utile. L’original est toujours là.", + "s2000": "Deux directions possibles.", + "s2001": "Tapez /loop pour ouvrir les Tâches. Choisissez une tâche, fixez sa planification et laissez Strata la répéter, comme un point quotidien chaque jour de la semaine à 8 h.", + "s2002": "Tapez /time-skip et ce que vous voulez améliorer. Strata explore une révision, la compare à l’original et garde la meilleure version.", + "s2003": "Indisponible", + "s2004": "Comprend les photos et les captures d’écran. Les fichiers de vision sont déjà téléchargés.", + "s2005": "Comprend les photos, les captures d’écran et les graphiques. Les fichiers de vision se téléchargent automatiquement. Activez-les au chargement de ce modèle.", + "s2006": "Annuler", + "s2007": "Unifiée", + "s2008": "Mémoire unifiée", + "s2009": "Action de contrôle native inconnue.", + "s2010": "Action de tunnel inconnue.", + "s2011": "Décharger", + "s2012": "Déchargez un modèle avant d’en ajouter un autre. Cet aperçu prend en charge huit instances.", + "s2013": "Décharger après N secondes d’inactivité", + "s2014": "Déchargez une instance avant d’en ajouter une autre. Jusqu’à huit instances natives peuvent tourner ici.", + "s2015": "Décharger et changer de dossier", + "s2016": "Déchargez toutes les instances de ce modèle avant de supprimer ses fichiers.", + "s2017": "Échec du déchargement", + "s2018": "Décharger le modèle", + "s2019": "Déchargez les modèles et terminez les opérations avant de modifier l’installation.", + "s2020": "Déchargez les modèles natifs avant de modifier les fichiers du moteur.", + "s2021": "Déchargez les modèles natifs avant de changer le dossier des modèles.", + "s2022": "Déchargez les modèles actuels avant de changer de dossier.", + "s2023": "Déchargez ce modèle local avant de remplacer la référence de son fichier.", + "s2024": "Déchargez ce modèle avant de supprimer ses fichiers.", + "s2025": "Déchargez d’abord cette version", + "s2026": "Décharger {0} instances", + "s2027": "Déchargement…", + "s2028": "Détacher", + "s2029": "Non lu", + "s2030": "Mesures du moteur non reconnues", + "s2031": "Modifications non enregistrées", + "s2032": "Unsloth", + "s2033": "Non pris en charge", + "s2034": "Opération native non prise en charge.", + "s2035": "Dossier parent", + "s2036": "À jour", + "s2037": "Mettre à jour", + "s2038": "Mettre à jour Strata", + "s2039": "Mettre à jour Strata ?", + "s2040": "Mise à jour disponible", + "s2041": "Mettre à jour le moteur", + "s2042": "Mettre à jour le moteur ?", + "s2043": "La mise à jour a passé les vérifications d’exemple", + "s2044": "Mise à jour prête à être vérifiée", + "s2045": "Mettre à jour les réglages enregistrés", + "s2046": "Mettre à jour les réglages", + "s2047": "Mettez à jour l’installation native de Strata pour utiliser l’API Responses.", + "s2048": "Mettez à jour votre moteur ou importez un GGUF local pour ce modèle.", + "s2049": "Mis à jour", + "s2050": "Couverture Fieldnotes mise à jour : Make room for ideas, avec plus d’espace libre autour du titre.", + "s2051": "Résultat mis à jour conservé", + "s2052": "Mise à jour…", + "s2053": "Tableau de bord d’utilisation", + "s2054": "Période d’utilisation", + "s2055": "Source d’utilisation", + "s2056": "Utilisation indisponible", + "s2057": "Vue d’utilisation", + "s2058": "Utilisez Commande/Ctrl avec une lettre, un chiffre ou un signe de ponctuation.", + "s2059": "Utilisez Entrée ou Commande/Ctrl + Entrée. Maj + Entrée reste disponible pour une nouvelle ligne.", + "s2060": "Utilisez des variables d’environnement STRATA_ avec des valeurs de texte.", + "s2061": "Utilisez Strata en naviguant, en écrivant ou en travaillant.", + "s2062": "Utiliser une police de votre ordinateur", + "s2063": "Utiliser un GGUF local…", + "s2064": "Utiliser un modèle local", + "s2065": "Utiliser un modèle local…", + "s2066": "Utilisez un ID de modèle de /v1/models.", + "s2067": "Utilisez un nom de serveur simple : lettres, chiffres, tirets ou tirets bas.", + "s2068": "Utilisez un nom de tâche de 1 à 120 caractères.", + "s2069": "Utilisez un objet avec une entrée par serveur d’outils.", + "s2070": "Utiliser par défaut pour ce modèle", + "s2071": "Utiliser les outils MCP connectés", + "s2072": "Utilisez ici env, headers et cwd. Les identifiants existants sont masqués et conservés si vous gardez le masque.", + "s2073": "Utiliser les performances maximales", + "s2074": "Utiliser dans la conversation", + "s2075": "Utilisez des instructions de 1 à 12 000 caractères.", + "s2076": "Utilisez l’intelligence comme vous l’entendez.", + "s2077": "Utiliser l’ID du modèle", + "s2078": "Utiliser ma propre clé", + "s2079": "Utiliser un seul GPU quand le modèle y tient", + "s2080": "Utilisez l’adresse API du serveur. Pour un autre PC, saisissez son adresse réseau au lieu de localhost.", + "s2081": "Utilisez cette adresse et votre clé API Strata dans votre autre application.", + "s2082": "Utiliser ce dossier", + "s2083": "Utiliser ce dossier", + "s2084": "Utilisez ce nom d’hôte et votre clé API Strata dans votre client. Le streaming est pris en charge.", + "s2085": "Utiliser cette clé", + "s2086": "Utiliser ce modèle", + "s2087": "Utiliser cette version", + "s2088": "Utilisez jusqu’à 32 phrases déclencheuses, de 160 caractères maximum chacune.", + "s2089": "Utiliser la version", + "s2090": "Utilisez votre clé existante dans l’application que vous connectez.", + "s2091": "Utilisé au prochain chargement de ce modèle. Les valeurs d’échantillonnage par défaut s’appliquent à la prochaine requête.", + "s2092": "Sous-titre utile perdu", + "s2093": "Utilise le service vocal de votre navigateur.", + "s2094": "Utilise vos réglages enregistrés", + "s2095": "VRAM", + "s2096": "Taux de réussite en VRAM", + "s2097": "Valider le brouillon", + "s2098": "Version", + "s2099": "Actions sur la version", + "s2100": "Détails de la version", + "s2101": "Version indisponible", + "s2102": "Très élevé", + "s2103": "Vidéo", + "s2104": "Voir toutes les conversations", + "s2105": "Voir et changer de modèle", + "s2106": "Voir les journaux du moteur", + "s2107": "Voir le dernier résultat", + "s2108": "Voir le journal", + "s2109": "Voir les versions du modèle", + "s2110": "Voir le journal des requêtes", + "s2111": "Voir la requête {0}", + "s2112": "Voir les requêtes", + "s2113": "Voir la vue d’ensemble des sous-agents", + "s2114": "Voir la révision rejetée", + "s2115": "Les fichiers de l’encodeur de vision sont inclus. La lecture d’images ne se charge que si elle est activée.", + "s2116": "Style visuel", + "s2117": "Style visuel conservé", + "s2118": "Attendez la fin de la vérification du dossier des modèles.", + "s2119": "Attendez que ce modèle ait terminé avant de lancer un test.", + "s2120": "En attente de l’état de l’API…", + "s2121": "En attente d’une requête", + "s2122": "En attente de la télémétrie du moteur…", + "s2123": "Préchauffer", + "s2124": "Le préchauffage prend quelques secondes.", + "s2125": "Nous réservons de la mémoire GPU et limitons les workers d’experts CPU pour laisser de la marge aux autres applications. L’utilisation réelle varie selon votre modèle. Les besoins en RAM du modèle et les réserves de sécurité du système s’appliquent toujours.", + "s2126": "Adresse du site web", + "s2127": "Les sites web s’ouvrent dans votre navigateur par défaut.", + "s2128": "Jours de semaine", + "s2129": "Bilan hebdomadaire", + "s2130": "Bienvenue", + "s2131": "Nous appliquerons votre préférence et lancerons un court test de vitesse.", + "s2132": "Nous ouvrirons la conversation quand votre modèle sera prêt.", + "s2133": "Nous mesurons, appliquons votre préférence et préparons la conversation.", + "s2134": "Ce qui a changé", + "s2135": "Par quoi commençons-nous ?", + "s2136": "Que voulez-vous que Strata fasse ?", + "s2137": "Travaillez aux côtés de votre modèle", + "s2138": "Dérouler le plan", + "s2139": "Mise à jour en cours", + "s2140": "Travailler ensemble", + "s2141": "En cours…", + "s2142": "Espace de travail ajouté", + "s2143": "Espaces de travail", + "s2144": "Rédiger les récits du projet", + "s2145": "Écriture {0} Mo/s", + "s2146": "Écritures", + "s2147": "Rédige des messages de commit conventionnels à partir d’un diff, avec une ligne de portée et un paragraphe sur le pourquoi.", + "s2148": "Entraînement à l’écriture", + "s2149": "Vous pourrez toujours changer de modèles plus tard.", + "s2150": "Vous disposez de {0} Go libres.", + "s2151": "Il vous faut plus de stockage.", + "s2152": "Votre CPU", + "s2153": "Votre connecteur Cloudflare est installé et prêt.", + "s2154": "Votre route Cloudflare doit pointer vers {0}.", + "s2155": "Votre GPU", + "s2156": "Votre navigateur ne peut pas lister les polices installées. Saisissez le nom d’une police installée sur votre ordinateur.", + "s2157": "Le service vocal de votre navigateur ne prend pas en charge cette langue.", + "s2158": "Votre choix :", + "s2159": "Votre ordinateur", + "s2160": "Votre ordinateur peut sembler plus lent pendant le chargement des poids. Vous pouvez arrêter le téléchargement et le reprendre plus tard.", + "s2161": "Votre conversation et vos brouillons sont conservés pendant la reconnexion.", + "s2162": "Votre nom d’hôte", + "s2163": "Votre API d’inférence est accessible aux appareils de ce réseau.", + "s2164": "Votre installation locale de Strata gère les modèles optimisés, les fichiers complémentaires et les mises à jour du moteur.", + "s2165": "Votre modèle local reste disponible. Ajoutez une connexion API pour utiliser plus de modèles dans Strata.", + "s2166": "Votre modèle", + "s2167": "Votre dossier de modèles", + "s2168": "Vos modèles sont enregistrés ici. Utilisez un dossier existant pour réutiliser les téléchargements pris en charge.", + "s2169": "Votre nouvelle clé", + "s2170": "Votre ancienne clé cessera de fonctionner.", + "s2171": "Votre propre clé", + "s2172": "Vos conversations et vos réglages enregistrés sont toujours disponibles.", + "s2173": "Vous êtes connecté", + "s2174": "Zéro garde le modèle chargé.", + "s2175": "\\ -H 'Authorization: Bearer YOUR_API_KEY'", + "s2176": "accent", + "s2177": "actif", + "s2178": "actif ·", + "s2179": "réel", + "s2180": "avancé", + "s2181": "ai.example.com", + "s2182": "tout", + "s2183": "un autre espace de travail", + "s2184": "réponse", + "s2185": "vitesse de réponse", + "s2186": "api server endpoint openai anthropic port API serveur point d’accès port", + "s2187": "appearance colours apparence couleurs", + "s2188": "artifact-content", + "s2189": "croissant", + "s2190": "attribué", + "s2191": "à {0} tok/s", + "s2192": "auto", + "s2193": "auto ou 16,32", + "s2194": "auto, ou des points de répartition croissants comme 18 ou 16,32.", + "s2195": "débutant", + "s2196": "éclair", + "s2197": "branche", + "s2198": "brand brand--{0} {1}", + "s2199": "occupé", + "s2200": "button:not([disabled])", + "s2201": "cache ·", + "s2202": "calc(100dvh - {0}px)", + "s2203": "modification", + "s2204": "modifications", + "s2205": "chat", + "s2206": "chat, programmation", + "s2207": "chat:send", + "s2208": "chat:slot:", + "s2209": "vérification", + "s2210": "horloge", + "s2211": "code", + "s2212": "code-preview", + "s2213": "colonnes", + "s2214": "confortable", + "s2215": "commande", + "s2216": "compact", + "s2217": "terminé", + "s2218": "terminés ·", + "s2219": "ordinateur", + "s2220": "config-errors", + "s2221": "de contexte. Modifiez le contexte sur la page Modèle.", + "s2222": "réduire", + "s2223": "conversation prompt ask discussion prompt demander", + "s2224": "copier", + "s2225": "cœurs ·", + "s2226": "compteur", + "s2227": "CPU", + "s2228": "curl", + "s2229": "personnalisé", + "s2230": "valeurs personnalisées", + "s2231": "danger", + "s2232": "sombre", + "s2233": "décimal", + "s2234": "exemple", + "s2235": "refusé", + "s2236": "décroissant", + "s2237": "bureau", + "s2238": "détails", + "s2239": "dial-detent", + "s2240": "dial-detent dial-detent--recommended", + "s2241": "dialog", + "s2242": "dialog-surface", + "s2243": "dialog-surface dialog-surface--sheet", + "s2244": "dialog-surface--compact", + "s2245": "dialog-surface--wide", + "s2246": "dictation-feedback", + "s2247": "disque", + "s2248": "ne tient pas", + "s2249": "domaine", + "s2250": "terminé", + "s2251": "télécharger", + "s2252": "download weights gguf choose tune engine parameters context sampling télécharger poids gguf choisir optimiser moteur paramètres contexte échantillonnage", + "s2253": "eject stop vram éjecter arrêter vram", + "s2254": "fin", + "s2255": "moteur", + "s2256": "erreur du moteur", + "s2257": "erreur", + "s2258": "échap", + "s2259": "développer", + "s2260": "expert", + "s2261": "experts", + "s2262": "family-qwen", + "s2263": "rapide", + "s2264": "fichier", + "s2265": "fichiers ou recherche", + "s2266": "tient", + "s2267": "dossier", + "s2268": "pour les commandes,", + "s2269": "pour les conversations,", + "s2270": "pour les espaces de travail.", + "s2271": "libre", + "s2272": "depuis l’écran Modèles après le chargement", + "s2273": "complet", + "s2274": "génération", + "s2275": "génération · {0} tok/s", + "s2276": "go:models", + "s2277": "go:monitor", + "s2278": "go:tasks", + "s2279": "bon", + "s2280": "groupe", + "s2281": "matériel", + "s2282": "élevé", + "s2283": "inactif", + "s2284": "image", + "s2285": "image:select", + "s2286": "img", + "s2287": "dans chaque requête. Chaque modèle a sa propre file d’attente.", + "s2288": "dans cette bibliothèque d’exemple", + "s2289": "entrée ·", + "s2290": "info", + "s2291": "entrée · 256 en sortie ·", + "s2292": "input:not(:disabled),button:not(:disabled)", + "s2293": "input:not([disabled])", + "s2294": "instantané", + "s2295": "instructions", + "s2296": "instructions prompts abilities consignes prompts compétences", + "s2297": "est calibré. L’installateur enregistre les réglages mesurés à la fin.", + "s2298": "est une mémoire rapide. L’adéquation réelle", + "s2299": "est une mémoire rapide. L’adéquation réelle et le comportement de déchargement", + "s2300": "is-open", + "s2301": "à l’instant", + "s2302": "keys bindings help touches raccourcis aide", + "s2303": "dernier", + "s2304": "launch-plan", + "s2305": "couches", + "s2306": "quitter", + "s2307": "clair", + "s2308": "lien", + "s2309": "chargement", + "s2310": "markdown", + "s2311": "moyen", + "s2312": "un message est requis", + "s2313": "micro", + "s2314": "milieu", + "s2315": "mobile", + "s2316": "mode", + "s2317": "modèle", + "s2318": "fichiers du modèle ·", + "s2319": "version du modèle", + "s2320": "model-file", + "s2321": "modèles", + "s2322": "lune", + "s2323": "plusieurs", + "s2324": "non", + "s2325": "aucun modèle chargé", + "s2326": "aucun", + "s2327": "noopener,noreferrer", + "s2328": "normal", + "s2329": "maintenant", + "s2330": "npx, uvx ou python", + "s2331": "nombre", + "s2332": "numérique", + "s2333": "sur", + "s2334": "sur une limite de {0} W", + "s2335": "désactivé", + "s2336": "activé", + "s2337": "onboard-art onboard-art--{0}", + "s2338": "onboard-tour-preview preview-{0}", + "s2339": "original", + "s2340": "sortie", + "s2341": "vue d’ensemble", + "s2342": "page", + "s2343": "mot de passe", + "s2344": "PDF", + "s2345": "pdfjs-dist/build/pdf.worker.min.mjs?url", + "s2346": "crayon", + "s2347": "en attente", + "s2348": "plus", + "s2349": "preferences theme appearance text size préférences thème apparence taille du texte", + "s2350": "préparer", + "s2351": "préparation des résultats", + "s2352": "principal", + "s2353": "project-brief.md", + "s2354": "project-brief.pdf", + "s2355": "tokens du prompt", + "s2356": "lecture du prompt", + "s2357": "px", + "s2358": "en file d’attente", + "s2359": "en file d’attente ·", + "s2360": "rapide", + "s2361": "radio", + "s2362": "radiogroup", + "s2363": "lecture à {0} tok/s", + "s2364": "lecture", + "s2365": "lecture du prompt", + "s2366": "prêt", + "s2367": "reboot refresh redémarrer actualiser", + "s2368": "actualiser", + "s2369": "release-plan.csv", + "s2370": "requests reused prompt tokens requêtes tokens du prompt réutilisés", + "s2371": "requêtes ·", + "s2372": "relisez ceci, vérifiez mon code", + "s2373": "lignes ·", + "s2374": "lancer", + "s2375": "en cours ·", + "s2376": "s ont été", + "s2377": "échantillonnage", + "s2378": "save download markdown enregistrer télécharger markdown", + "s2379": "schedule recurring loop automation planifier récurrent boucle automatisation", + "s2380": "select:not([disabled])", + "s2381": "sélectionné", + "s2382": "serveurs connectés", + "s2383": "partagé", + "s2384": "bouclier", + "s2385": "unique", + "s2386": "plus lent", + "s2387": "fluide", + "s2388": "speech microphone voice transcribe parole microphone voix transcrire", + "s2389": "sr-only", + "s2390": "démarrer", + "s2391": "stats performance speed hardware statistiques performances vitesse matériel", + "s2392": "état indisponible", + "s2393": "étape", + "s2394": "arrêter", + "s2395": "strata:dictation", + "s2396": "strata:open-preview", + "s2397": "strata:open-website", + "s2398": "strata:tasks", + "s2399": "réussite", + "s2400": "soleil", + "s2401": "svg use", + "s2402": "syntax-code {0} {1}", + "s2403": "onglet", + "s2404": "tableau", + "s2405": "tablist", + "s2406": "tabpanel", + "s2407": "texte", + "s2408": "textarea:not([disabled])", + "s2409": "le modèle chargé", + "s2410": "réflexion", + "s2411": "threads", + "s2412": "juste", + "s2413": "time-skip-content", + "s2414": "pour rechercher, rédiger et relire mon plan de lancement.", + "s2415": "à faire", + "s2416": "basculer", + "s2417": "tok", + "s2418": "tok/s", + "s2419": "tokens", + "s2420": "tokens / seconde", + "s2421": "too-big", + "s2422": "too-large", + "s2423": "outil", + "s2424": "outils", + "s2425": "outils ·", + "s2426": "total", + "s2427": "true", + "s2428": "tours", + "s2429": "indisponible", + "s2430": "mémoire unifiée", + "s2431": "inconnu", + "s2432": "mis à jour", + "s2433": "mises à jour", + "s2434": "url", + "s2435": "version", + "s2436": "version-ladder--compact", + "s2437": "versions", + "s2438": "préchauffage", + "s2439": "avertissement", + "s2440": "était", + "s2441": "site web", + "s2442": "ne s’exécutera plus et sera retirée de vos tâches actives.", + "s2443": "wizard onboarding install resume assistant prise en main installation reprendre", + "s2444": "écrit", + "s2445": "ws__chev {0}", + "s2446": "oui", + "s2447": "your-next-idea.md", + "s2448": "{0} / {1} tokens · {2} %", + "s2449": "{0} Go de VRAM", + "s2450": "{0} Go en cache.", + "s2451": "{0} Go de capacité prévue restent disponibles.", + "s2452": "{0} Go au-dessus du budget", + "s2453": "{0} Go restants", + "s2454": "{0} GPU · utilisation moyenne", + "s2455": "{0} Vous pourrez le télécharger à nouveau dans Modèles.", + "s2456": "{0} Vos fichiers GGUF d’origine restent dans leur dossier.", + "s2457": "{0} actives · {1} en file d’attente", + "s2458": "{0} actives · {1} en file d’attente. Terminez ou annulez d’abord les requêtes.", + "s2459": "{0} cœurs ·", + "s2460": "{0} valeur exacte", + "s2461": "{0} experts en cache", + "s2462": "{0} fichiers trouvés", + "s2463": "{0} fichier(s) ignoré(s). Ajoutez jusqu’à 64 fichiers texte, avec 256 Ko de texte au total. Les photos et les PDF peuvent s’ouvrir séparément.", + "s2464": "{0} n’est plus dans le stockage du navigateur. Joignez-le à nouveau.", + "s2465": "{0} modèles chargés", + "s2466": "{0} modèles chargés", + "s2467": "{0} tokens du prompt sur {1} réutilisés", + "s2468": "{0} sur cet ordinateur. Choisissez une version pour supprimer ses fichiers.", + "s2469": "{0} processeurs · {1} cœurs · {2} threads", + "s2470": "{0} sous-agents en cours · Voir la vue d’ensemble", + "s2471": "{0} sous-agents en cours — afficher la vue d’ensemble", + "s2472": "{0} tokens · {1} tok/s", + "s2473": "Trouvé : {0} {1}{2}. Les prochains téléchargements utiliseront ce dossier.", + "s2474": "{0} · {1} · {2} · prompt hors cache", + "s2475": "{0} — afficher les détails", + "s2476": "{0} % du contexte", + "s2477": "{0} % de ce fichier", + "s2478": "{0}, 60 dernières secondes", + "s2479": "{0}, 60 dernières secondes. Utilisez les flèches pour examiner les échantillons.", + "s2480": "{0} : en dehors de la période sélectionnée", + "s2481": "{0} : utilisez une valeur texte, nombre ou vrai/faux.", + "s2482": "Le contexte de {0} K dépasse le budget disponible du modèle.", + "s2483": "{0}{1} tokens au total", + "s2484": "· Par défaut dans la conversation", + "s2485": "· Compatibilité vérifiée au chargement.", + "s2486": "· Exemple", + "s2487": "· Résultat d’exemple", + "s2488": "· Téléchargé", + "s2489": "· Image {0}", + "s2490": "· Local", + "s2491": "· Les exécutions manquées sont ignorées quand Strata est fermé.", + "s2492": "· Ouvrir dans le panneau latéral", + "s2493": "· Lit les images", + "s2494": "· environ", + "s2495": "· inactif Gen{0}", + "s2496": "· dernière réponse", + "s2497": "· nécessite plus de contexte", + "s2498": "· recommandé", + "s2499": "· {0} Go de marge en RAM dans l’estimation", + "s2500": "— modifications non enregistrées", + "s2501": "« {0} » est arrêtée. Restaurez-la depuis Tâches supprimées quand vous voulez.", + "s2502": " ». Essayez", + "s2503": "−1 choisit une graine aléatoire.", + "s2504": "-y\n@modelcontextprotocol/server-filesystem\n/your/folder", + "s2505": ". Copiez le token depuis la configuration de son connecteur.", + "s2506": ". L’accès au réseau dépend de l’adresse d’écoute de l’hôte et de votre pare-feu.", + "s2507": ". Les mesures conservées peuvent être périmées. Démarrez l’hôte du moteur configuré, puis réessayez.", + "s2508": "i-quant 2 bits, qualité un peu meilleure, vitesse proche", + "s2509": "2 bits, le plus rapide", + "s2510": "i-quant 3 bits, meilleure qualité, plus lent (plus de calcul CPU par token)", + "s2511": "i-quant 3,5 bits, la meilleure qualité (équivalente au modèle complet), le plus lent ; demande un PC de 64 Go avec peu d’autres programmes", + "s2512": "4 bits (Unsloth Dynamic), EXPÉRIMENTAL : la meilleure qualité, mais la plupart des experts viennent du SSD sur un PC de 64 Go (7 à 8,5 tokens/s mesurés)", + "s2513": "4 bits, téléchargement de 111 Go, la plupart des experts lus depuis le SSD : lent (7 à 8,5 tokens/s sur un PC de 64 Go)", + "s2514": "Une recommandation fondée sur le matériel détecté et les valeurs par défaut prises en charge. Enregistrez pour l’appliquer ; la vitesse n’a pas été mesurée.", + "s2515": "Choisissez le dossier de données Strata qui contient vos modèles téléchargés. Les fichiers correspondants sont réutilisés ; les fichiers manquants sont préparés automatiquement.", + "s2516": "Choisissez le fichier .gguf du modèle. Pour un modèle fractionné, choisissez n’importe quel fragment ; Strata trouve le premier et vérifie l’ensemble.", + "s2517": "Les fichiers terminés sont conservés. Le téléchargement, l’empaquetage et le chargement sont des étapes distinctes ; c’est le moteur qui confirme que tout est prêt.", + "s2518": "Experts déjà dans la mémoire du GPU ; la part PCIe est indiquée à part quand elle est communiquée.", + "s2519": "Nom de la famille de polices", + "s2520": "Des lots plus grands peuvent utiliser plus de mémoire ; ils ne sont pas toujours plus rapides.", + "s2521": "La mémoire est une approximation du catalogue, pas une mesure de mémoire libre. L’espace de travail des lots et le déchargement partiel ne sont pas prévus. Le temps de raisonnement et de planification n’est pas estimé ; ces durées ne sont pas le temps total de la tâche.", + "s2522": "Mode : {0}", + "s2523": "Aucun modèle de conversation n’est déclaré ; la mise en forme des réponses dépend du moteur.", + "s2524": "Rien ne correspond à « {0} ». Essayez > pour les commandes, # pour les conversations ou @ pour les espaces de travail.", + "s2525": "Seule l’API d’inférence est partagée. Les clients ont besoin de votre clé API. Utilisez un réseau local de confiance ; cette connexion utilise HTTP.", + "s2526": "Revoir le contexte", + "s2527": "Lancer l’installation guidée", + "s2528": "Les identifiants enregistrés sont masqués. Gardez le masque pour conserver une valeur existante ; saisissez une nouvelle valeur pour la remplacer.", + "s2529": "Ce modèle a besoin d’un moteur plus récent. Mettez à jour votre moteur ou importez un GGUF local pour ce modèle.", + "s2530": "Vos instructions et le dernier résultat sont conservés dans Tâches supprimées. Vous pouvez y restaurer la tâche ; sa planification restera en pause.", + "s2531": "la moitié des experts (code, outils, images conservés) : demande environ 32 Go de RAM, plus rapide ; moins bon hors programmation", + "s2532": "http://192.168.1.20:1234/v1", + "s2533": "https://example.com", + "s2534": "la seule taille de Coder : la moitié des experts, stockés comme IQ3_S (3,5 bits)", + "s2535": "le modèle d’origine", + "s2536": "réfléchit beaucoup plus court (−63 % de tokens de réflexion, des réponses 1,8 fois plus rapides d’après les chiffres de ses auteurs)", + "s2537": "Aperçu {0}", + "s2538": "Zoom {0}", + "s2539": "{0} · journal", + "s2540": "{0}. Utilisez les flèches pour examiner les échantillons.", + "s2541": "{0} : indisponible", + "s2542": "{0}{1} tok/s{2}", + "s2543": "Aperçu : {0}…", + "s2544": "Génération : {0} tok/s", + "s2545": "Lecture : {0} tok/s", + "s2546": "Réutilisés : {0} tokens", + "s2547": "Depuis {0} : {1} requêtes · {2} tokens de prompt · {3} tokens de sortie", + "s2548": "Strata va calibrer {0} et enregistrer les réglages les plus rapides mesurés.", + "s2549": "{0} requêtes sur {1} ont réutilisé des tokens du prompt", + "s2550": "{0} outils · {1} serveurs sur {2} connectés", + "s2551": "Un contexte plus court peut laisser de la place à une version plus petite.", + "s2552": "Vérifiez la connexion du client et réessayez la requête.", + "s2553": "Analysez cet ordinateur pour voir quelles versions conviennent.", + "s2554": "Vérifiez votre connexion internet, puis réessayez.", + "s2555": "Choisissez un fichier GGUF de modèle de texte complet.", + "s2556": "Corrigez le JSON avant d’enregistrer ou d’appliquer.", + "s2557": "Gérer votre bibliothèque de compétences", + "s2558": "Réessayez, ou désactivez la mesure plus longue ci-dessus.", + "s2559": "Essayez de relancer cette tâche.", + "s2560": "Essayez de renvoyer le message.", + "s2561": "Vos fichiers téléchargés sont conservés.", + "s2562": "Messages de commit", + "s2563": "Revue de code", + "s2564": "Notes de version", + "s2565": "Rapport matériel", + "s2566": "Impossible de charger les réglages du modèle.", + "s2567": "Vérifiez que le moteur est connecté et que ce modèle est installé, puis réessayez.", + "s2568": "Exécuté", + "s2569": "Non autorisé dans ce mode. Rien n’a été exécuté.", + "s2570": "Rejouer l’aperçu", + "s2571": "Environ {0} min restantes", + "s2572": "Environ {0} h {1} min restantes", + "s2573": "Environ {0} h restantes", + "s2574": "Le thème Système suit votre ordinateur par défaut.", + "s2575": "La lecture d’images n’est pas disponible pour ce modèle.", + "s2576": "Désactivez la lecture d’images et réessayez.", + "s2577": "Le modèle s’est arrêté au démarrage, très probablement parce que le PC manquait de mémoire.", + "s2578": "Fermez les autres programmes et réessayez, ou choisissez « Garder 20 % pour mon travail ». En mode expert, vous pouvez aussi activer l’option peu de RAM : une partie du modèle est alors lue depuis le SSD.", + "s2579": "Le chargement prend trop de temps.", + "s2580": "Le PC manque peut-être de mémoire. Fermez les autres programmes et réessayez.", + "s2581": "Le moteur de Strata pour cet ordinateur n’est pas encore installé.", + "s2582": "Il est ajouté quand vous téléchargez un modèle. Téléchargez à nouveau votre modèle pour l’ajouter.", + "s2583": "Le téléchargement n’a pas pu accéder à internet.", + "s2584": "Vérifiez votre connexion, puis appuyez sur Reprendre le téléchargement.", + "s2585": "Un fichier téléchargé n’a pas passé le contrôle de sécurité de Strata.", + "s2586": "Appuyez sur Reprendre le téléchargement et Strata le récupérera à nouveau.", + "s2587": "L’assistant de programmation n’est pas encore installé sur cet ordinateur.", + "s2588": "La conversation fonctionne sans lui.", + "s2589": "Strata n’a pas pu lire ses propres composants.", + "s2590": "Fermez puis rouvrez Strata. Si le problème persiste, réinstallez l’application.", + "s2591": "Un problème est survenu.", + "s2592": "Réessayez. Si le problème persiste, ouvrez Détails et partagez-les quand vous demandez de l’aide.", + "s2593": "Analyse de votre ordinateur…", + "s2594": "Préparation en cours…", + "s2595": "Téléchargement de votre modèle…", + "s2596": "Préparation de votre modèle pour Strata…", + "s2597": "Mettre à jour le composant", + "s2598": "Mettez à jour le moteur de cet ordinateur. Vos modèles et vos réglages sont conservés.", + "s2599": "Enregistré dans {0}", + "s2600": "Vous avez déjà un modèle pris en charge sur cet ordinateur ? Choisissez le dossier qui contient ses fichiers. Strata les vérifie, prépare le modèle et le charge. Rien n’est copié ni téléchargé.", + "s2601": "Dossier contenant les fichiers GGUF", + "s2602": "Chemin complet du dossier", + "s2603": "Vérifier les fichiers", + "s2604": "Modèle trouvé", + "s2605": "{0} fichiers · {1}", + "s2606": "Préparer et charger", + "s2607": "Certaines parties de ce modèle sont manquantes, ou le dossier contient plus d’un modèle.", + "s2608": "Mettez toutes les parties d’un seul modèle dans un seul dossier, puis vérifiez à nouveau.", + "s2609": "Strata ne peut pas encore exécuter ces fichiers.", + "s2610": "Strata exécute les modèles Qwen3.8-Flash-Next. Téléchargez-en un depuis Modèles, ou choisissez un dossier contenant ses fichiers.", + "s2611": "Ces fichiers n’ont pas pu être vérifiés.", + "s2612": "Vérifiez que le dossier contient des fichiers GGUF complets, puis réessayez.", + "s2613": "Budget de réflexion", + "s2614": "Sans limite", + "s2615": "Ce que cette tâche peut faire", + "s2616": "Regarder seulement, ne rien modifier", + "s2617": "M’arrêter et me prévenir avant toute modification", + "s2619": "Tâche terminée", + "s2620": "La tâche attend votre accord", + "s2621": "La tâche a échoué", + "s2622": "Écriture d’un fichier", + "s2623": "Fichier écrit", + "s2624": "Impossible d’écrire le fichier", + "s2625": "Modification d’un fichier", + "s2626": "Fichier modifié", + "s2627": "Impossible de modifier le fichier", + "s2628": "Lecture d’un fichier", + "s2629": "Fichier lu", + "s2630": "Impossible de lire le fichier", + "s2631": "Observation d’une image", + "s2632": "Image observée", + "s2633": "Impossible d’observer l’image", + "s2634": "Recherche de fichiers", + "s2635": "Fichiers recherchés", + "s2636": "Impossible de rechercher des fichiers", + "s2637": "Recherche dans les fichiers", + "s2638": "Recherche faite dans les fichiers", + "s2639": "Impossible de chercher dans les fichiers", + "s2640": "Exécution d’une commande", + "s2641": "Commande exécutée", + "s2642": "La commande a échoué", + "s2643": "Ouverture d’une page web", + "s2644": "Page web ouverte", + "s2645": "Impossible d’ouvrir la page web", + "s2646": "Recherche sur le web", + "s2647": "Recherche web effectuée", + "s2648": "Impossible de faire la recherche web", + "s2649": "Mise à jour de sa liste de tâches", + "s2650": "Liste de tâches mise à jour", + "s2651": "Impossible de mettre à jour sa liste de tâches", + "s2652": "Affichage d’un résultat", + "s2653": "Résultat affiché", + "s2654": "Impossible d’afficher le résultat", + "s2655": "Vérification du dossier", + "s2656": "Dossier vérifié", + "s2657": "Impossible de vérifier le dossier", + "s2658": "Vérification des tâches en arrière-plan", + "s2659": "Tâches en arrière-plan vérifiées", + "s2660": "Impossible de vérifier les tâches en arrière-plan", + "s2661": "Lecture d’une tâche en arrière-plan", + "s2662": "Tâche en arrière-plan lue", + "s2663": "Impossible de lire la tâche en arrière-plan", + "s2664": "Arrêt d’une tâche en arrière-plan", + "s2665": "Tâche en arrière-plan arrêtée", + "s2666": "Impossible d’arrêter la tâche en arrière-plan", + "s2667": "Utilisation d’un outil", + "s2668": "Outil utilisé", + "s2669": "L’outil a échoué", + "s2670": "Appliquer les réglages et charger", + "s2671": "Appliquer et charger", + "s2672": "Les fichiers du modèle sont déjà sur cet ordinateur. Rien ne sera téléchargé ; seuls les réglages que vous avez choisis sont appliqués.", + "s2673": "Les modèles natifs actuellement chargés seront d’abord déchargés.", + "s2674": "Strata ne peut pas ouvrir son fichier de réglages.", + "s2675": "Lancez Strata une fois avec votre propre compte (pas en administrateur) ou appuyez sur Réparer.", + "s2676": "Essayer une modification sur une copie, la vérifier, et ne la garder que si elle est meilleure", + "s2677": "Fixer un objectif et laisser l’assistant travailler jusqu’à ce qu’il soit atteint", + "s2678": "Répéter un message toutes les quelques minutes tant que cette conversation est ouverte", + "s2679": "Tapez /loop, la fréquence et ce qu’il faut faire — par exemple /loop 10m vérifiez la compilation. Strata l’envoie encore et encore tant que la conversation est ouverte. Pour un travail qui doit continuer Strata fermé, utilisez les Tâches.", + "s2680": "Indiquer la fréquence", + "s2681": "Indiquer quoi faire", + "s2682": "Arrêt à tout moment", + "s2683": "Garder la mise à jour", + "s2684": "Remettre l’original", + "s2685": "La mise à jour est dans vos fichiers. Vous pouvez remettre l’original.", + "s2686": "Vos fichiers sont inchangés. Gardez la mise à jour pour l’appliquer à votre dossier ; vous pourrez remettre l’original plus tard.", + "s2687": "Vérifications", + "s2688": "Résultat", + "s2689": "Aucune vérification n’est configurée pour ce dossier, rien n’a donc été jugé automatiquement. Regardez les deux versions et choisissez celle à garder.", + "s2690": "Conservé avant toute modification.", + "s2691": "Révision {0}", + "s2692": "Ce qui n’a pas fonctionné", + "s2693": "Arrêter Time-skip", + "s2694": "Mise à jour conservée · vos fichiers l’ont maintenant", + "s2695": "Original conservé · vos fichiers sont inchangés", + "s2696": "Prêt à comparer · vous choisissez ce qu’on garde", + "s2697": "Tapez /loop, la fréquence, puis ce qu’il faut faire. Par exemple : /loop 10m vérifiez si la compilation réussit. Utilisez /loop stop pour l’arrêter.", + "s2698": "Indiquez d’abord la fréquence, comme 10m (minutes) ou 2h (heures), puis ce qu’il faut faire.", + "s2699": "Le délai le plus court entre deux exécutions est de 1 minute, pour que le modèle ait le temps de terminer chacune.", + "s2700": "Le délai le plus long entre deux exécutions est de 24 heures. Pour des attentes plus longues, utilisez une tâche dans l’écran Tâches.", + "s2701": "toutes les minutes", + "s2702": "toutes les {0} minutes", + "s2703": "toutes les heures", + "s2704": "toutes les {0} heures", + "s2705": "Une boucle tourne dans cette conversation : elle envoie « {0} » {1}, tant que la conversation est ouverte. Tapez /loop stop pour l’arrêter.", + "s2706": "Boucle lancée : « {0} » {1}, tant que la conversation est ouverte. Tapez /loop stop pour l’arrêter. Pour un travail qui doit continuer Strata fermé, utilisez l’écran Tâches.", + "s2707": "Aucune boucle ne tourne dans cette conversation.", + "s2708": "La boucle est arrêtée.", + "s2709": "La boucle s’est arrêtée après {0} exécutions. Tapez /loop à nouveau pour la relancer.", + "s2710": "Cette conversation a déjà une boucle. Tapez d’abord /loop stop, puis lancez-en une nouvelle.", + "s2713": "Vos fichiers ont changé après le début de cet essai, rien n’a donc été écrasé. Relancez Time-skip.", + "s2714": "Chargez d’abord un modèle, puis relancez Time-skip.", + "s2715": "Impossible de joindre l’assistant. Réessayez.", + "s2716": "Time-skip s’est arrêté. {0} Vos fichiers n’ont pas été modifiés.", + "s2717": "Time-skip a été arrêté avant la fin. Vos fichiers n’ont pas été modifiés.", + "s2718": "L’assistant n’a rien modifié, il n’y a donc rien à comparer. Vos fichiers n’ont pas été modifiés.", + "s2719": "Time-skip n’a pas pu démarrer. {0}", + "s2720": "Time-skip a perdu le contact avec l’application et s’est arrêté. Vos fichiers n’ont pas été modifiés.", + "s2721": "La mise à jour est maintenant dans vos fichiers", + "s2722": "Vos fichiers d’origine sont revenus", + "s2724": "Vos fichiers n’ont pas été modifiés", + "s2725": "Chargement de la liste des outils…", + "s2726": "Choisissez ce que l’assistant peut utiliser dans vos conversations. Un changement s’applique dès votre prochain message. En mode Manuel, tout ce qui modifie votre ordinateur demande d’abord votre accord.", + "s2727": "Sur le web", + "s2728": "Pour les gros travaux", + "s2729": "Exécuter des commandes", + "s2730": "Permet à l’assistant d’exécuter des commandes, par exemple pour ouvrir un dossier ou lancer un programme.", + "s2731": "Lire et modifier des fichiers", + "s2732": "Permet à l’assistant de lire, créer et modifier des fichiers dans le dossier de votre conversation.", + "s2733": "Trouver des fichiers et du texte", + "s2734": "Permet à l’assistant de chercher des fichiers par nom et dans leur contenu. Il ne fait que lire.", + "s2735": "Tâches longues", + "s2736": "Permet à l’assistant de lancer une commande lente en arrière-plan et d’en vérifier l’avancement plus tard.", + "s2737": "Ouvrir des pages web", + "s2738": "Permet à l’assistant de lire une page web que vous lui indiquez.", + "s2739": "Rechercher sur le web", + "s2740": "Permet à l’assistant de chercher sur le web quand il a besoin d’informations récentes.", + "s2741": "Assistants auxiliaires", + "s2742": "Permet à l’assistant de lancer des auxiliaires qui travaillent en même temps sur des parties d’une tâche.", + "s2743": "Objectifs", + "s2744": "Permet de fixer un objectif avec /goal. L’assistant continue de travailler jusqu’à ce qu’il soit atteint.", + "s2745": "Liste de tâches", + "s2746": "Permet à l’assistant de tenir une liste de contrôle pendant une grande tâche.", + "s2747": "Permet à l’assistant d’utiliser vos compétences enregistrées quand elles conviennent à la tâche.", + "s2748": "Afficher les résultats", + "s2749": "Permet à l’assistant d’afficher une page ou un fichier dans l’aperçu à côté de la conversation.", + "s2750": "Recherche web", + "s2751": "D’où viennent les résultats", + "s2752": "Les recherches utilisent votre propre compte auprès de ce service.", + "s2753": "Les résultats viennent de DuckDuckGo. Vous n’avez besoin ni de compte ni de clé.", + "s2754": "DuckDuckGo (sans clé)", + "s2755": "Exa (votre propre clé)", + "s2756": "Perplexity (votre propre clé)", + "s2757": "DeepSeek (votre propre clé)", + "s2758": "Votre clé", + "s2759": "Une clé est enregistrée sur cet ordinateur. Saisissez-en une nouvelle pour la remplacer.", + "s2760": "Enregistrée sur cet ordinateur uniquement. Strata ne la réaffiche jamais.", + "s2761": "Collez votre clé", + "s2762": "Enregistrer la clé", + "s2763": "Clé enregistrée", + "s2764": "Navigateur web", + "s2765": "Utiliser un navigateur web", + "s2766": "L’assistant peut ouvrir des pages, cliquer et saisir du texte dans {0}. En mode Manuel, chaque action demande d’abord votre accord.", + "s2767": "votre navigateur", + "s2768": "Chrome ou Edge est introuvable sur cet ordinateur. Installez-en un, puis revenez l’activer.", + "s2769": "Vos propres outils", + "s2770": "Apprenez quelque chose de nouveau à l’assistant : donnez-lui des instructions à suivre, une commande à exécuter, ou connectez un serveur d’outils. Les commandes et les serveurs demandent d’abord votre accord en mode Manuel.", + "s2771": "Pas encore d’outils à vous", + "s2772": "Par exemple : « Rédigez les notes de version dans notre style maison », ou une commande qui vérifie que votre site est en ligne.", + "s2773": "Ajouter un outil", + "s2774": "Modifier l’outil", + "s2775": "Enregistrer l’outil", + "s2776": "Commande", + "s2777": "Serveur d’outils", + "s2778": "Suivre mes instructions", + "s2779": "Exécuter une commande", + "s2780": "Connecter un serveur d’outils (MCP)", + "s2781": "Par exemple : Notes de version", + "s2782": "Ce qu’il fait", + "s2783": "Une phrase. L’assistant la lit pour décider quand utiliser l’outil.", + "s2784": "Comment il fonctionne", + "s2785": "Écrivez ce que l’assistant doit faire quand il utilise cet outil.", + "s2786": "Commande à exécuter", + "s2787": "Par exemple : curl -I https://example.com", + "s2788": "L’assistant peut transmettre du texte à la commande. La commande le lit dans le réglage STRATA_INPUT. Ce qu’elle affiche est renvoyé à l’assistant.", + "s2789": "Adresse web ou programme", + "s2790": "https://… ou le programme qui démarre le serveur", + "s2791": "Réglages supplémentaires pour le programme", + "s2792": "(facultatif, un par ligne)", + "s2793": "Retirer cet outil ?", + "s2794": "Le garder", + "s2795": "« {0} » ne sera plus disponible pour l’assistant.", + "s2796": "Donnez à l’outil un nom court : lettres, chiffres, espaces ou tirets.", + "s2797": "Dites en une phrase ce que fait l’outil. L’assistant la lit pour décider quand l’utiliser.", + "s2798": "Écrivez les instructions que l’assistant doit suivre quand il utilise cet outil.", + "s2799": "Saisissez la commande à exécuter.", + "s2800": "Saisissez l’adresse web du serveur d’outils, ou le programme qui le démarre.", + "s2801": "La liste des outils n’a pas pu être chargée.", + "s2802": "La modification n’a pas pu être enregistrée.", + "s2803": "L’outil n’a pas pu être enregistré.", + "s2804": "L’outil n’a pas pu être retiré.", + "s2805": "L’outil de navigateur ne fait pas partie de cette installation.", + "s2806": "Travail sur une copie de vos fichiers. Suivez l’avancement dans la barre latérale.", + "s2807": "Le résultat est prêt. Passez de l’original à la version mise à jour, ou comparez-les côte à côte.", + "s2808": "Ouverture d’une page dans le navigateur", + "s2809": "Page ouverte dans le navigateur", + "s2810": "Impossible d’ouvrir la page", + "s2811": "Clic sur la page", + "s2812": "Clic effectué sur la page", + "s2813": "Impossible de cliquer sur la page", + "s2814": "Pointage sur la page", + "s2815": "Pointage effectué sur la page", + "s2816": "Impossible de pointer sur la page", + "s2817": "Saisie sur la page", + "s2818": "Saisie effectuée sur la page", + "s2819": "Impossible de saisir sur la page", + "s2820": "Observation de la page", + "s2821": "Page observée", + "s2822": "Impossible d’observer la page", + "s2823": "Utilisation du navigateur", + "s2824": "Navigateur utilisé", + "s2825": "L’étape du navigateur a échoué", + "s2826": "Lecture de vos instructions", + "s2827": "Instructions lues", + "s2828": "Impossible de lire vos instructions", + "s2829": "Exécution de votre outil", + "s2830": "Outil exécuté", + "s2831": "Votre outil a échoué", + "s2832": "Ce dossier est trop gros pour tester une modification sur une copie. Ouvrez un dossier plus petit pour cette conversation, puis réessayez.", + "s2833": "Time-skip travaille sur un dossier qui vous appartient. Choisissez un dossier de travail pour cette conversation, puis réessayez.", + "s2834": "Exécution d’un petit programme sur la page", + "s2835": "Petit programme exécuté sur la page", + "s2836": "Impossible d’exécuter le programme sur la page", + "s2837": "Attente de la page", + "s2838": "Page attendue", + "s2839": "Impossible d’attendre la page", + "s2840": "Retour à la page précédente", + "s2841": "Retour effectué à la page précédente", + "s2842": "Impossible de revenir en arrière", + "s2843": "Gestion des onglets du navigateur", + "s2844": "Onglets du navigateur gérés", + "s2845": "Impossible de gérer les onglets du navigateur", + "s2846": "Fermeture de la page du navigateur", + "s2847": "Page du navigateur fermée", + "s2848": "Impossible de fermer la page du navigateur", + "s2849": "Renommer {0}", + "s2850": "Renommer l’espace de travail", + "s2851": "Nom de l’espace de travail", + "s2852": "Seul le nom change. Le dossier reste où il est.", + "s2853": "Impossible de renommer cet espace de travail", + "s2854": "Modèles Swift", + "s2855": "Modèles GSQ-RCO", + "s2856": "Modèles NVFP4", + "s2857": "Modèles Gyro", + "s2858": "Modèles Unsloth", + "s2859": "Modèles Qwen3.6", + "s2860": "Utiliser votre propre GGUF…", + "s2861": "RAM + VRAM", + "s2862": "Utilise {0} Go de SSD", + "s2863": "le plus petit", + "s2864": "bon équilibre", + "s2865": "la meilleure qualité pour sa taille", + "s2866": "plus de qualité", + "s2867": "sur {0}", + "s2868": "{0} : environ {1} sur {2} utilisés par ce modèle", + "s2869": "{0} · {1} de mémoire graphique", + "s2870": "Aucune carte graphique prise en charge n’est signalée par cette installation.", + "s2871": "Mémoire graphique", + "s2872": " · {0} de RAM", + "s2873": "Environ {0} Go seront lus depuis le SSD, les réponses peuvent donc être un peu plus lentes.", + "s2874": "Tient entièrement en mémoire.", + "s2875": "Ouvrir votre dossier {0} dans l’Explorateur de fichiers ?", + "s2876": "Ouvrir le dossier {0} dans l’Explorateur de fichiers ?", + "s2877": "Ouvrir le fichier {0} ?", + "s2878": "Ouvrir l’Explorateur de fichiers ?", + "s2879": "Lancer un programme : {0} ?", + "s2880": "Exécuter le script {0} ?", + "s2881": "Exécuter {0} étapes sur votre ordinateur ?", + "s2882": "Exécuter une commande sur votre ordinateur ?", + "s2883": "Créer le fichier {0} ?", + "s2884": "Créer le dossier {0} ?", + "s2885": "Écrire dans le fichier {0} ?", + "s2886": "Modifier le fichier {0} ?", + "s2887": "Copier {0} ?", + "s2888": "Déplacer {0} ?", + "s2889": "Renommer {0} ?", + "s2890": "Exécuter git {0} ?", + "s2891": "Installer des paquets avec {0} ?", + "s2892": "Arrêter une tâche en arrière-plan ?", + "s2893": "Ouvrir la page web {0} ?", + "s2894": "Utiliser l’outil connecté {0} ?", + "s2895": "Utiliser l’outil {0} ?", + "s2896": "Une fenêtre va s’ouvrir. Rien n’est modifié.", + "s2897": "Peut modifier votre ordinateur.", + "s2898": "Est supprimé de votre ordinateur.", + "s2899": "Remplace le fichier s’il existe déjà.", + "s2900": "Modifie les fichiers ou l’historique du projet.", + "s2901": "Télécharge des logiciels et modifie votre ordinateur.", + "s2902": "Plusieurs choses se passent. Détails montre chaque étape.", + "s2903": "Détails montre exactement ce que cela fait.", + "s2904": "Peut agir sur le service que vous avez connecté.", + "s2905": "Mettre {0} en pause", + "s2906": "Reprendre {0}", + "s2907": "Résumé de la tâche", + "s2908": "Planification", + "s2909": "Ce qu’elle peut faire", + "s2910": "Dernière exécution échouée", + "s2911": "Pas encore exécutée", + "s2912": "Ce qu’elle fait", + "s2913": "Dernière réponse", + "s2914": "Suivante : {0}", + "s2915": "Calcul de la prochaine exécution…", + "s2916": "Analyse de votre PC", + "s2917": "Examen de votre carte graphique et de votre mémoire", + "s2918": "Mesure de la vitesse de base", + "s2919": "Chronométrage de vos réglages actuels", + "s2920": "Point de départ : {0} tokens par seconde", + "s2921": "Essai de réglages", + "s2922": "Essai d’autres réglages, un par un", + "s2923": "Confirmation du meilleur", + "s2924": "Le test est répété pour être sûr", + "s2925": "Enregistrement", + "s2926": "Conservé pour ce modèle ; vous pouvez l’annuler", + "s2927": "Étapes de l’optimisation", + "s2928": "En attente", + "s2929": "Vitesse actuelle", + "s2930": "tokens par seconde", + "s2931": "Vos réglages", + "s2932": "{0} à {1} tokens par seconde", + "s2933": "Avant", + "s2934": "Réflexion…", + "s2935": "Je réfléchis…", + "s2936": "Je mijote une réponse…", + "s2937": "Je rumine…", + "s2938": "Je relie les points…", + "s2939": "Je suis une idée…", + "s2940": "Je fais un brouillon…", + "s2941": "Je pèse le pour et le contre…", + "s2942": "Je lis entre les lignes…", + "s2943": "Je prépare une réponse…", + "s2944": "J’assemble le tout…", + "s2945": "Je suis une intuition…", + "s2946": "Lecture de votre message…", + "s2947": "Rédaction de la réponse…", + "s2948": "En attente de votre réponse…", + "s2949": "Les auxiliaires travaillent ({0})…", + "s2950": "Travail sur l’objectif, étape {0}", + "s2951": "{0} tokens", + "s2952": "A réfléchi pendant {0}", + "s2953": "Raisonnement", + "s2954": "Aller au dernier message", + "s2955": "A besoin de vous", + "s2956": "étape {0} sur {1}", + "s2957": "En cours de travail", + "s2958": "Reprendre l’objectif", + "s2959": "Mettre l’objectif en pause", + "s2960": "Modifier l’objectif", + "s2961": "Supprimer l’objectif", + "s2962": "L’objectif n’a pas été modifié", + "s2963": "Enregistrer l’objectif", + "s2964": "Vers quoi l’assistant doit-il continuer à travailler ?", + "s2965": "Supprimer cet objectif ?", + "s2966": "nouveau", + "s2967": "supprimé", + "s2968": "modifié", + "s2969": "Ce fichier est trop gros, ou n’est pas du texte : il est listé mais pas affiché.", + "s2970": "Absent auparavant.", + "s2971": "Supprimé.", + "s2972": "Voir l’aperçu", + "s2973": "Voir le code", + "s2974": "Page d’origine", + "s2975": "Page mise à jour", + "s2976": "{0} lignes inchangées", + "s2977": "Modifications", + "s2978": "Agrandir l’image {0}", + "s2979": "Cette image n’a pas pu être chargée.", + "s2980": "Original et version mise à jour, côte à côte", + "s2981": "Fichiers modifiés", + "s2982": "+{0} de plus", + "s2983": "Time-skip est au travail", + "s2984": "Révision en cours", + "s2985": "Lecture de vos fichiers…", + "s2986": "Essai d’une version améliorée…", + "s2987": "Vérification du résultat…", + "s2988": "Comparaison des deux versions…", + "s2989": "Après", + "s2990": "Enregistré sous {0}. Il est utilisé à chaque chargement de ce modèle.", + "s2991": "Optimisé et enregistré", + "s2992": "Définition de l’objectif", + "s2993": "Objectif défini", + "s2994": "Impossible de définir l’objectif", + "s2995": "Mise à jour de l’objectif", + "s2996": "Objectif mis à jour", + "s2997": "Impossible de mettre à jour l’objectif", + "s2998": "Vérification de l’objectif", + "s2999": "Objectif vérifié", + "s3000": "Impossible de vérifier l’objectif", + "s3001": "Lecture de votre message…", + "s3002": "Détermination de la prochaine étape…", + "s3003": "Réflexion… {0} tokens", + "s3004": "Rédaction de la réponse…", + "s3005": "En attente de votre réponse…", + "s3006": "Les auxiliaires travaillent ({0})…", + "s3007": "Travail sur l’objectif, étape {0}", + "s3008": "Écriture de {0}…", + "s3009": "Écriture d’un fichier…", + "s3010": "Écriture de {0}… ({1} Ko)", + "s3011": "Écriture d’un fichier… ({0} Ko)", + "s3012": "Modification de {0}…", + "s3013": "Modification d’un fichier…", + "s3014": "Modification de {0}… ({1} Ko)", + "s3015": "Modification d’un fichier… ({0} Ko)", + "s3016": "Lecture de {0}…", + "s3017": "Lecture d’un fichier…", + "s3018": "Observation d’une image…", + "s3019": "Exécution d’une commande…", + "s3020": "Recherche dans vos fichiers…", + "s3021": "Recherche sur le web…", + "s3022": "Ouverture de {0}…", + "s3023": "Ouverture d’une page web…", + "s3024": "Ouverture d’une page…", + "s3025": "Utilisation du navigateur…", + "s3026": "Définition de l’objectif…", + "s3027": "Mise à jour de l’objectif…", + "s3028": "Vérification de l’objectif…", + "s3029": "Mise à jour de sa liste de tâches…", + "s3030": "Utilisation d’une compétence enregistrée…", + "s3031": "Affichage d’un résultat…", + "s3032": "Exécution d’un plan en plusieurs étapes…", + "s3033": "Vérification des tâches en arrière-plan…", + "s3034": "Lecture de vos instructions…", + "s3035": "Exécution de votre outil…", + "s3036": "Utilisation d’un outil…", + "s3037": "Lecture de vos fichiers…", + "s3038": "Essai d’une version améliorée…", + "s3039": "Vérification du résultat…", + "s3040": "Comparaison des deux versions…", + "s3041": "Nouvelle compétence", + "s3042": "Voir les journaux", + "s3043": "Journaux du moteur", + "s3044": "Strata n’envoie aucune télémétrie d’utilisation.", + "s3045": "Les conversations restent dans le stockage du navigateur.", + "s3046": "Quand vous choisissez un modèle API, cette conversation et les instructions des compétences activées sont envoyées à son fournisseur.", + "s3047": "Le journal des requêtes de l’interface garde en mémoire le client, les durées et les métadonnées de tokens.", + "s3048": "La surveillance de l’API native peut conserver le contenu des requêtes en mémoire lorsqu’elle est activée.", + "s3049": "Les outils connectés accèdent aux ressources que vous configurez.", + "s3050": "Sur {0} requêtes, votre sortie moyenne était de {1} tok/s et la lecture du prompt de {2} tok/s, avec {3} tokens réutilisés.", + "s3051": "Sur {0} requêtes, votre sortie moyenne était de {1} tok/s et la lecture du prompt de {2} tok/s.", + "s3052": "Sur {0} requêtes, votre sortie moyenne était de {1} tok/s, avec {2} tokens réutilisés.", + "s3053": "Sur {0} requêtes, votre sortie moyenne était de {1} tok/s.", + "s3054": "{0} requêtes jusqu’ici.", + "s3055": "Tâche retirée", + "s3056": "Retirer cette tâche ?", + "s3057": "{0} % plus rapide", + "s3058": "Déjà le plus rapide", + "s3059": "Toujours aussi rapide qu’avant", + "s3060": "Plus lent qu’avant", + "s3061": "Mesure non fiable", + "s3062": "Impossible de savoir pour l’instant", + "s3063": "L’optimisation n’est pas terminée", + "s3064": "Vos réponses arrivent maintenant plus vite. La qualité reste la même.", + "s3065": "Rien de ce que nous avons essayé n’a fait mieux que vos réglages actuels, rien n’a donc été modifié.", + "s3066": "Votre optimisation enregistrée fonctionne toujours aussi bien qu’au moment de son enregistrement.", + "s3067": "Votre optimisation a été conservée. Refaites la vérification plus tard.", + "s3068": "Votre PC était trop occupé pour essayer d’autres réglages, rien n’a donc été modifié. Réessayez quand les autres programmes sont fermés.", + "s3069": "Votre PC était occupé pendant le test, nous n’avons donc pas pu mesurer de façon fiable. Rien n’a été modifié. Réessayez quand les autres programmes sont fermés.", + "s3070": "Il n’y avait pas assez de mémoire libre pour tester. Rien n’a été modifié. Fermez les autres programmes et réessayez.", + "s3071": "Le moteur n’a pas pu démarrer avec ces réglages. Rien n’a été modifié.", + "s3072": "Le moteur s’est arrêté pendant la mesure. Rien n’a été modifié.", + "s3074": "Enregistré sous", + "s3075": "Le plan n’a pas été modifié", + "s3076": "Modifier le plan", + "s3077": "Étape {0}", + "s3078": "Supprimer cette étape", + "s3079": "Ajouter une étape", + "s3080": "Enregistrer le plan", + "s3081": "{0} étapes", + "s3082": "{0} sur {1} terminées", + "s3083": "Rien ne s’exécute tant que vous n’avez pas approuvé.", + "s3084": "Rejeter", + "s3085": "Lancer comme objectif", + "s3086": "Il n’y a pas de plan dans cette conversation.", + "s3087": "En attente — part quand l’étape {0} se termine", + "s3088": "En attente — part quand l’assistant a terminé", + "s3089": "Annuler ce message", + "s3090": "Reprendre", + "s3091": "ignorée", + "s3092": "En pause · {0} sur {1} terminées", + "s3093": "Plan approuvé.", + "s3094": "Expérimental", + "s3095": "Autres façons d’ouvrir {0}", + "s3096": "Actions sur le fichier", + "s3097": "Afficher dans le dossier", + "s3098": "Copier le chemin", + "s3099": "Joindre comme contexte", + "s3100": "Chemin copié", + "s3101": "Joint à votre prochain message", + "s3102": "Le fichier n’a pas été ouvert", + "s3103": "Le fichier n’a pas d’aperçu", + "s3104": "Le dossier n’a pas été ouvert", + "s3105": "Le chemin n’a pas été copié", + "s3106": "Le fichier n’a pas été joint", + "s3107": "Sélectionner un dossier", + "s3108": "Choisissez le dossier dans lequel cette conversation travaille", + "s3109": "Dossier du projet : {0}. Le changer.", + "s3110": "Utiliser le dossier par défaut", + "s3111": "Le dossier n’a pas été modifié", + "s3112": "Le plan", + "s3113": "C’est ici que la vérification compte le plus", + "s3114": "choisie par défaut", + "s3115": "C’est un travail court, il n’y a donc qu’une version. Rien ne vaut la peine d’être divisé en branches.", + "s3116": "Étape {0} sur {1} : {2}", + "s3117": "Démarre quand A atteint l’étape {0}", + "s3118": "En attente de démarrage", + "s3119": "En attente du plan", + "s3120": "Progression de {0}", + "s3121": "Garder une version", + "s3122": "La version A est dans vos fichiers.", + "s3123": "La version B est dans vos fichiers.", + "s3124": "La lecture d’images demande quelques fichiers de plus qui ne sont pas encore sur cet ordinateur.", + "s3125": "Télécharger les fichiers de lecture d’images", + "s3126": "Deux versions à comparer", + "s3127": "A et B sont allées jusqu’au bout. Gardez celle que vous préférez.", + "s3128": "Time-skip travaille avec un modèle chargé. Choisissez-en un dans l’onglet Modèles, puis réessayez.", + "s3129": "Ceci est un essai d’exemple réalisé alors que l’application ne pouvait pas joindre son hôte.", + "s3130": "Démarrage en cours", + "s3131": "Time-skip a besoin que l’application finisse de démarrer. Réessayez dans un instant.", + "s3132": "Travail sur une copie de vos fichiers.", + "s3133": "Le moteur n’a pas pu démarrer car l’un de ses fichiers de programme est absent de cet ordinateur.", + "s3134": "Réinstallez Strata (l’installateur l’inclut) ou appuyez sur Réparer. Fermer d’autres programmes n’aidera pas.", + "s3135": "Le moteur n’a pas pu démarrer car l’un de ses fichiers de programme ne convient pas à cet ordinateur ou est endommagé.", + "s3136": "Réinstallez Strata ou appuyez sur Réparer. Si le problème persiste, mettez à jour votre pilote graphique.", + "s3137": "Le moteur a besoin d’une fonction de processeur plus récente que celle de cet ordinateur.", + "s3138": "Ouvrez Détails et partagez-les quand vous demandez de l’aide.", + "s3139": "Le moteur a planté au démarrage.", + "s3140": "Redémarrez le PC et réessayez. Si le problème persiste, mettez à jour votre pilote graphique et ouvrez Détails quand vous demandez de l’aide.", + "s3141": "Windows ou votre logiciel de sécurité a empêché le moteur de démarrer.", + "s3142": "Autorisez Strata dans votre logiciel de sécurité, puis réessayez.", + "s3143": "Strata n’a pas trouvé un fichier dont il a besoin pour démarrer le moteur.", + "s3144": "Réinstallez Strata ou appuyez sur Réparer.", + "s3145": "Le modèle s’est arrêté au démarrage.", + "s3146": "Aucun sélecteur de dossier n’a été trouvé. Installez zenity ou kdialog pour choisir un dossier, ou saisissez le chemin.", + "s3147": "Le sélecteur de dossier n’a pas pu s’ouvrir. Installez zenity ou kdialog pour choisir un dossier, ou saisissez le chemin.", + "s3148": "Saisissez le chemin du dossier", + "s3149": "Chemin du dossier", + "s3150": "/home/you/Documents", + "s3151": "Quitter Strata", + "s3152": "Quitter Strata ?", + "s3153": "Cela arrête le modèle et ferme Strata. Vos conversations et vos fichiers restent comme ils sont. Fermer seulement l’onglet du navigateur laisserait Strata en marche.", + "s3154": "Strata est arrêté", + "s3155": "Strata est arrêté. Vous pouvez fermer cet onglet. Pour le réutiliser, lancez Strata depuis son icône.", + "s3156": "Strata n’a pas pu être arrêté d’ici. Lancez l’application avec --quit dans un terminal, ou réessayez.", + "s3157": "Fermeture…", + "s3158": "Décompression du moteur fourni avec l’application. Cela prend environ une minute la première fois.", + "s3159": "Utilisation de {0}", + "s3160": "Installé · cloudflared {0}", + "s3161": "Le connecteur de Cloudflare tourne déjà sur cet ordinateur comme service système, Strata n’en a donc pas démarré un second. Arrêtez d’abord ce service (ou utilisez son tunnel tel quel), puis reconnectez-vous ici.", + "s3162": "Le connecteur de Cloudflare (cloudflared) tourne déjà sur cet ordinateur, Strata n’en a donc pas démarré un second. Fermez-le d’abord (ou utilisez son tunnel tel quel), puis reconnectez-vous ici.", + "s3163": "Strata n’a pas trouvé le connecteur de Cloudflare (cloudflared) sur cet ordinateur.", + "s3164": "Installez cloudflared (avec votre gestionnaire de paquets, ou depuis le site de Cloudflare), puis appuyez sur Réessayer l’installation. Strata le cherche dans votre PATH et aux emplacements habituels.", + "s3165": "Le connecteur Cloudflare de cet ordinateur est trop ancien.", + "s3166": "Mettez cloudflared à jour vers une version plus récente, puis appuyez sur Réessayer l’installation.", + "s3167": "Le fichier trouvé comme cloudflared ne s’est pas exécuté.", + "s3168": "Réinstallez cloudflared, puis appuyez sur Réessayer l’installation.", + "s3169": "Fichier de réglages", + "s3170": "Ouvrir le fichier de réglages", + "s3171": "Les modifications que vous faites dans le fichier s’appliquent au prochain démarrage du modèle.", + "s3172": "Ouvrez plutôt le fichier depuis son dossier, ou réessayez.", + "s3173": "Votre fichier de réglages contient une erreur, le modèle ne démarrera donc pas tant qu’elle n’est pas corrigée.", + "s3174": "Ouvrez le fichier de réglages, corrigez les lignes ci-dessous, puis rechargez le modèle.", + "s3175": "Le fichier de réglages n’est pas du JSON valide ; regardez près de la ligne {0}. Vérifiez s’il manque une virgule entre deux entrées, s’il y a une virgule après la dernière entrée ou s’il manque un guillemet.", + "s3176": "Le fichier de réglages n’est pas du JSON valide. Vérifiez s’il manque une virgule entre deux entrées, s’il y a une virgule après la dernière entrée ou s’il manque un guillemet.", + "s3177": "Le fichier de réglages doit contenir un seul objet, { … }, avec les réglages à l’intérieur.", + "s3178": "\"{0}\" n’est pas un réglage lu par Strata, il est donc ignoré. Vouliez-vous dire \"{1}\" ?", + "s3179": "\"{0}\" n’est pas un réglage lu par Strata, il est donc ignoré.", + "s3180": "\"args\" doit être une liste d’entrées de texte entre guillemets, par exemple [\"--ple-io\", \"mmap\"]. Les nombres doivent aussi être entre guillemets.", + "s3181": "Strata gère lui-même l’adresse réseau, le port et la clé API : --host, --port et --api-key dans \"args\" ne sont donc pas pris en compte.", + "s3182": "\"env\" doit être un objet de noms STRATA_ avec des valeurs de texte entre guillemets.", + "s3183": "L’entrée \"env\" {0} doit être un texte entre guillemets, par exemple \"1\".", + "s3184": "\"sampling\" doit être un objet tel que { \"temperature\": 0.7 }.", + "s3185": "\"{0}\" doit être true ou false, pas {1}.", + "s3186": "\"{0}\" doit être un nombre de {1} à {2}, pas {3}.", + "s3187": "\"{0}\" doit être un nombre entier de {1} à {2}, pas {3}.", + "s3188": "\"{0}\" doit être l’une des valeurs {1}, pas {2}.", + "s3189": "\"{0}\" doit être un texte court, ou une liste de noms courts.", + "s3190": "Les points de \"layer_split\" doivent augmenter de 1 à 47, par exemple \"16,32\", ou valoir \"auto\".", + "s3191": "\"gpu\" doit être un numéro de carte graphique comme 0, ou une liste comme [0, 1].", + "s3192": "Ligne {0} : {1}", + "s3193": "Votre fichier de réglages contient une erreur, le modèle n’a donc pas été démarré.", + "s3194": "Ouvrez le fichier de réglages sous Réglages experts, corrigez la ligne indiquée sous Détails, puis rechargez le modèle.", + "s3195": "Mettez le moteur à jour (Paramètres, Moteur, Mettre à jour le moteur), puis réessayez.", + "s3196": "Déjà utilisé par {0}", + "s3197": "Arrêtez ou terminez la conversation qui utilise encore ce modèle, puis réessayez.", + "s3198": "Un autre modèle sur la même carte graphique n’a pas laissé de place à celui-ci.", + "s3199": "Chargez-le sur un autre GPU, ou déchargez d’abord l’autre modèle.", + "s3200": "cloudflared tourne déjà pour un autre tunnel (PID {0}).", + "s3201": "cloudflared tourne déjà pour d’autres tunnels (PID {0}).", + "s3202": "Le tunnel de Strata pour cette adresse tourne déjà (PID {0}).", + "s3203": "Le tunnel de Strata pour cette adresse tourne déjà.", + "s3204": "Arrêtez-le d’abord, ou utilisez-le tel quel, puis reconnectez-vous ici.", + "s3205": "Les modèles qui restent chargés utilisent environ {0} Go de RAM et {1} Go de la mémoire de cette carte.", + "s3206": "Activé par défaut", + "s3207": "Comprend les photos, les captures d’écran et les graphiques. Les fichiers d’images se téléchargent automatiquement. Désactivez-le pour économiser de la mémoire.", + "s3208": "Lire les images avec ce modèle", + "s3209": "(son serveur indique qu’il ne le peut pas)", + "s3210": "(activé par défaut)", + "s3211": "Les images ne peuvent être envoyées qu’aux API de modèles qui utilisent le style de conversation OpenAI. Choisissez un autre modèle, ou retirez l’image.", + "s3212": "La lecture d’images est désactivée pour ce modèle. Ouvrez Paramètres, Modèles, modifiez la connexion et activez Lire les images avec ce modèle, ou choisissez un autre modèle.", + "s3213": "Chargez d’abord un modèle qui lit les images, puis ajoutez l’image.", + "s3214": "Ce modèle a été démarré sans lecture d’images. Ouvrez Modèles, activez Lire les images et rechargez-le.", + "s3215": "Ce modèle ne peut pas lire les images. Choisissez un modèle qui lit les images, ou retirez l’image.", + "s3216": "Elle est ouverte dans l’aperçu.", + "s3217": "1 compétence utilisée : {0}", + "s3218": "{0} compétences utilisées : {1}", + "s3219": "Continuer dans une nouvelle conversation", + "s3220": "Suite de la tâche « {0} »", + "s3221": "(a exécuté {0}, terminé).", + "s3222": "(a exécuté {0}, sans terminer).", + "s3223": "Ce qu’elle a trouvé", + "s3224": "Demande votre attention", + "s3225": "Ce qu’elle a fait", + "s3226": "Fichiers", + "s3227": "Aidez-moi à reprendre à partir de là, s’il vous plaît.", + "s3228": "…et {0} étapes de plus", + "s3229": "Saisissez un nombre.", + "s3230": "Saisissez un nombre entier de {0} à {1}.", + "s3231": "Ajouter une compétence ouvre une fenêtre de dossier sur l’ordinateur qui exécute Strata. Ouvrez Strata sur cet ordinateur pour en ajouter une.", + "s3232": "Capture d’écran enregistrée", + "s3233": "Elle est dans votre dossier Téléchargements.", + "s3234": "La capture d’écran n’a pas été enregistrée", + "s3235": "Réessayez, ou faites plutôt une capture d’écran de cette fenêtre.", + "s3236": "La fenêtre de dossier ne s’est pas ouverte. Saisissez plutôt le chemin du dossier.", + "s3237": "Le fichier n’a pas été ajouté", + "s3238": "Essayez de le déposer à nouveau.", + "s3260": "NVFP4 (version de Strata)", + "s3261": "NVFP4 (version de NVIDIA)", + "s3262": "NVFP4 (NVIDIA, entraîné pour le FP4)", + "s3263": "Conversion propre à Strata. La meilleure qualité des versions NVFP4.", + "s3264": "Le checkpoint NVFP4 de NVIDIA, converti pour Strata. Même taille et même vitesse.", + "s3265": "Le checkpoint FP4 de NVIDIA, entraîné pour le FP4. Un peu plus rapide sur les prompts courts.", + "s3266": "Toutes les autres versions", + "s3267": "Plus de versions", + "s3268": "Téléchargement des fichiers du modèle · partie {0} sur {1}", + "s3269": "Téléchargement du lecteur d’images…", + "s3270": "Téléchargement du moteur pour ce PC…", + "s3271": "Préparation de {0}", + "s3272": "Parties du téléchargement", + "s3273": "Lecteur d’images", + "s3274": "Fichiers partagés", + "s3275": "Utilisés par plus d’un modèle", + "s3276": "Ces fichiers sont dans votre propre dossier, ils y restent donc. Seule l’entrée dans Strata est retirée.", + "s3277": "Le modèle en cours d’exécution sera déchargé.", + "s3278": "Local", + "s3279": "Strata n’a pas reconnu de moteur pour cet ordinateur. Le modèle va se télécharger, mais il risque de ne pas fonctionner tant que le bon moteur n’est pas installé (Paramètres → Moteur).", + "s3280": "Strata n’a pas reconnu de moteur pour cet ordinateur. Le modèle est téléchargé, mais il ne peut pas fonctionner tant que le bon moteur n’est pas installé. Ouvrez Paramètres → Moteur.", + "s7332": "Un modèle est en cours de téléchargement", + "s7333": "Votre modèle est en cours de téléchargement ({0} %). Vous pourrez discuter quand il sera terminé.", + "s7334": "Votre modèle est en cours de téléchargement. Vous pourrez discuter quand il sera terminé.", + "s7335": "Le modèle se charge", + "s7336": "Votre modèle est encore en cours de chargement. Vous pourrez discuter dans un instant.", + "s7337": "Aucun modèle n’est chargé", + "s7338": "Aucun modèle n’est chargé. Chargez-en un d’abord dans Modèles.", + "s7339": "Démarrage de l’assistant…", + "s7340": "L’assistant n’a pas pu démarrer. Réessayez dans un instant.", + "s7341": "Travail sur l’objectif…", + "s8001": "le choix pour ce PC", + "s8002": "l’autre choix", + "s7400": "L’assistant veut chercher sur le web : {0}. Les mots recherchés sont envoyés à {1}.", + "s7401": "L’assistant veut ouvrir la page web {0}. Le site de la page voit la requête.", + "s7402": "Laisser l’assistant chercher sur le web sans demander", + "s7403": "En mode Manuel, l’assistant demande une fois par conversation avant de chercher sur le web ou d’ouvrir une page web. Activez ceci pour passer cette question.", + "s7404": "DuckDuckGo, ou Bing quand DuckDuckGo est saturé", + "s8201": "moins d'1 min", + "s8202": "{0} min", + "s8203": "{0} h", + "s8204": "{0} j", + "s8205": "il y a {0}", + "s8206": "aujourd’hui {0}", + "s8207": "hier", + "s8208": "démarrée {0}", + "s8209": "en attente depuis {0}", + "s8210": "prochaine dans {0}", + "s8211": "répond maintenant", + "s8212": "arrêtée {0}", + "s8213": "Elle ne s’est pas terminée.", + "s8214": "Cette exécution a été arrêtée avant la fin.", + "s8215": "Strata s’est fermé pendant cette exécution, elle ne s’est donc pas terminée.", + "s8216": "Terminée, mais elle voulait modifier quelque chose sans pouvoir demander. Rien n’a été modifié.", + "s8217": "Arrêtée : {0} exécutions de suite n’ont pas fonctionné.", + "s8218": "Tâche planifiée", + "s8219": "Boucle · {0}", + "s8220": "Chargez d’abord un modèle", + "s8221": "Autres actions pour {0}", + "s8222": "Les cartes bougent toutes seules selon ce qui se passe. Une carte de À traiter y reste jusqu’à ce que vous vous en occupiez ou la fermiez.", + "s8223": "{0} demandent votre attention", + "s8224": "Rien n’a besoin de vous pour l’instant.", + "s8225": "{0} cartes", + "s8226": "À venir", + "s8227": "Suite de la conversation « {0} »", + "s8228": "La boucle", + "s8229": "Ce que j’ai demandé", + "s8230": "La dernière réponse", + "s8231": "Tableau des tâches", + "s8232": "À traiter", + "s8233": "Vous attendent", + "s8234": "Arrêtée sur une question à laquelle vous seul pouvez répondre.", + "s8235": "A trouvé un problème. Reste ici jusqu’à ce que vous vous en occupiez.", + "s8236": "Terminée sans problème ces 7 derniers jours.", + "s8237": "Relancer", + "s8238": "Ouvrir la tâche", + "s8239": "Ouvrir la conversation", + "s8240": "Arrêter la conversation", + "s8241": "Arrêter la boucle", + "s8242": "Voir le résultat", + "s8243": "Terminée", + "s8244": "Arrêtée par vous", + "s8245": "Arrêtée à la fermeture de Strata", + "s8246": "Terminée d’elle-même", + "s8247": "réponse {0} sur {1}", + "s8248": "réponse {0}", + "s8249": "1 auxiliaire au travail", + "s8250": "{0} auxiliaires au travail", + "s8251": "Tableau", + "s8252": "Afficher", + "s8253": "Tout ce qui tourne, attend votre réponse ou mérite un coup d’œil.", + "s8254": "Ça n’a pas fonctionné", + "s8255": "Aucune carte correspondante.", + "s8256": "Rien ici pour l’instant.", + "s8257": "toutes les {0} min", + "s8258": "Ce moteur Strata n’a pas de code pour la carte graphique qu’il a essayé d’utiliser.", + "s8259": "Choisissez une autre carte sous Exécuter sur, ou ouvrez Détails pour voir quelles cartes ont été trouvées et pour quoi le moteur est conçu.", + "s8260": "Ce réglage ne fait rien dans l’application. Les pages web de n’importe quel site peuvent déjà appeler l’API indiquée sous Serveur API. Pour n’autoriser que certains sites, ou pour utiliser le serveur propre du moteur (port 8080), ajoutez \"cors_origins\": [\"https://your.site\"] au fichier de configuration du modèle.", + "s8301": "Créer une clé API (recommandé)", + "s8302": "Sans clé API, n’importe quel appareil de ce réseau peut utiliser votre modèle.", + "s8303": "Seule l’API d’inférence est partagée. Les clients ont besoin de votre clé API quand il y en a une. Utilisez un réseau local de confiance ; cette connexion utilise HTTP.", + "s8304": "Créez une clé pour protéger votre API. Vous reviendrez ici quand elle sera prête. Vous pouvez aussi continuer sans clé, mais toute personne qui trouve le lien pourra alors utiliser votre modèle.", + "s8305": "Vous avez déjà un modèle pris en charge sur cet ordinateur ? Choisissez le dossier qui contient ses fichiers, ou l’un de ses fichiers .gguf. Strata les vérifie, prépare le modèle et le charge. Rien n’est copié ni téléchargé.", + "s8306": "Dossier contenant les fichiers GGUF, ou un fichier .gguf", + "s8307": "Chemin complet du dossier ou du fichier", + "s8308": "Sans clé API, toute personne qui peut atteindre cette adresse peut utiliser votre modèle.", + "s8309": "Strata n’a pas pu utiliser {0} pour les modèles ({1}), ils sont donc placés dans {2}. Vous pouvez choisir un autre dossier dans les Paramètres.", + "s8310": "Le port {0} est déjà utilisé. Strata est peut-être déjà en cours d’exécution ; fermez-le ou fermez l’autre programme, ou lancez Strata avec un autre port (STRATA_PORT).", + "s8311": "Windows ou un pare-feu ne laisse pas Strata utiliser le port {0}. Hyper-V, WSL et Docker se réservent des plages de ports (voir \"netsh int ipv4 show excludedportrange protocol=tcp\"). Lancez Strata avec un autre port (STRATA_PORT), par exemple 8801.", + "s8312": "{0} n’est pas une adresse de cet ordinateur, Strata ne peut donc pas y écouter. Vérifiez STRATA_BIND.", + "s8313": "Strata ne peut pas écouter sur {0}:{1} ({2}).", + "s8339": "Dossier des modèles", + "s8340": "Strata enregistre ici les gros fichiers de modèles.", + "s8341": "Changer de dossier", + "s8342": "En attente du dossier…", + "s8343": "Espace disque utilisé", + "s8344": "{0} libres", + "s8345": "sur ce disque", + "s8346": "Vos modèles utilisent {0}", + "s8347": "Terminez ou arrêtez le téléchargement pour changer de dossier.", + "s8348": "Ce dossier n’existe pas", + "s8349": "Ce dossier ne peut pas être utilisé", + "s8350": "Strata ne peut pas enregistrer de fichiers dans {0}.", + "s8351": "Strata ne trouve pas {0}.", + "s8352": "Choisissez un dossier en dehors du dossier actuel.", + "s8353": "Choisissez un dossier qui vous appartient, par exemple dans Documents ou sur un autre disque.", + "s8354": "Vérifiez que le disque est branché, puis choisissez à nouveau le dossier. Vos modèles n’ont pas été touchés.", + "s8355": "Utiliser ce dossier pour vos modèles ?", + "s8356": "Nouveau dossier", + "s8357": "{0} libres sur ce disque", + "s8358": "Vous avez choisi tout le disque {0}. Strata garde ses fichiers dans un dossier à part, vos modèles iront donc dans {1}.", + "s8359": "Les trois choix viennent ensuite.", + "s8360": "Déplacer mes modèles", + "s8361": "Utiliser les deux dossiers", + "s8362": "Repartir de zéro", + "s8363": "Déplacement de vos modèles", + "s8364": "Arrêter le déplacement", + "s8365": "{0} sur {1} Go", + "s8366": "Moins d’une minute restante", + "s8367": "Environ une minute restante", + "s8368": "Environ {0} minutes restantes", + "s8369": "Environ {0} heures restantes", + "s8370": "Gardez Strata ouvert. Vous pouvez continuer à utiliser d’autres applications. Vos modèles ne peuvent pas être chargés tant que le déplacement n’est pas terminé.", + "s8371": "Copie en cours : {0}, fichier {1} sur {2}", + "s8372": "De {0} vers {1}", + "s8373": "Déplacer mes modèles là-bas", + "s8374": "Vous n’avez aucun modèle à déplacer.", + "s8375": "Strata déplace vos {0} de modèles vers le nouveau dossier. C’est le même disque, cela prend donc un instant.", + "s8376": "Strata copie vos {0} de modèles vers le nouveau dossier, les vérifie, puis supprime les anciennes copies.", + "s8377": "Ne demande aucun espace supplémentaire.", + "s8378": "Demande {0} libres dans le nouveau dossier. Vous avez {1}.", + "s8379": "Les garder où ils sont et utiliser aussi le nouveau dossier", + "s8380": "Rien n’est copié. Vos modèles actuels continuent de fonctionner, et les nouveaux téléchargements vont dans le nouveau dossier.", + "s8381": "Ne demande pas d’espace maintenant. Les nouveaux téléchargements doivent tenir dans {1}.", + "s8382": "Ne demande pas d’espace maintenant.", + "s8383": "Strata utilise désormais le nouveau dossier et n’affiche pas vos modèles actuels. Vos anciens fichiers ne sont pas supprimés.", + "s8384": "Ne demande pas d’espace maintenant. Chaque modèle que vous téléchargerez ensuite aura besoin de son propre espace.", + "s8385": "Vos modèles ont besoin de {0}, ce disque a {1} libres.", + "s8386": "Libérez environ {0} sur ce disque, choisissez un autre dossier, ou prenez l’une des deux autres options.", + "s8387": "Ce qui doit arriver à vos modèles", + "s8388": "Un modèle en cours d’exécution est d’abord arrêté ; rechargez-le quand le déplacement est terminé.", + "s8389": "{0} seraient déplacés.", + "s8390": "L’espace libre est mesuré sur le disque qui contient {0}.", + "s8391": "Ancien dossier : {0}", + "s8392": "Strata copie un fichier à la fois et vérifie sa taille avant de supprimer l’ancien.", + "s8393": "Vous pouvez arrêter à tout moment ; les fichiers déjà déplacés restent utilisables.", + "s8394": "Le disque n’a plus d’espace", + "s8395": "Le déplacement s’est arrêté", + "s8396": "{0} s’est rempli après {1}, le déplacement s’est donc arrêté.", + "s8397": "Les modèles n’ont pas pu être déplacés.", + "s8398": "Rien n’a été perdu. Les modèles déjà déplacés sont dans le nouveau dossier, les autres sont toujours dans {0}, et le fichier à moitié copié a été supprimé. Libérez de l’espace sur {1} ou choisissez un autre dossier, puis réessayez.", + "s8399": "Rien n’a été perdu. Tous vos modèles sont toujours dans {0}, et le fichier à moitié copié a été supprimé. Libérez de l’espace sur {1} ou choisissez un autre dossier, puis réessayez.", + "s8400": "Rien n’a été perdu. Vos modèles qui n’ont pas été déplacés sont toujours dans {0}. Choisissez un autre dossier pour réessayer.", + "s8401": "Déplacement arrêté", + "s8402": "Rien n’a été perdu.", + "s8403": "{0} est dans le nouveau dossier.", + "s8404": "{0} est toujours dans l’ancien dossier.", + "s8405": "Les deux fonctionnent.", + "s8406": "Les modèles des deux dossiers sont listés normalement. Vous pourrez terminer le déplacement plus tard avec Changer de dossier.", + "s8407": "Vos modèles sont déplacés", + "s8408": "{0} sont maintenant dans {1}", + "s8409": "Les anciennes copies ont été supprimées et {0} sont de nouveau libres sur {1}.", + "s8410": "Strata utilise désormais aussi {0}. Les nouveaux téléchargements y vont, et vos modèles actuels restent où ils sont.", + "s8411": "Strata utilise désormais {0}. Vos anciens fichiers de modèles sont toujours dans {1} ; Strata ne les supprime pas.", + "s8412": "Le changement du dossier des modèles fait partie de l’application Strata.", + "s8413": "Un modèle est en cours d’exécution. Arrêtez-le d’abord, puis changez de dossier.", + "s8414": "Choisissez un dossier de modèles.", + "s8415": "Choisissez ce qu’il faut faire de vos modèles.", + "s8416": "Ce choix n’est pas possible ici.", + "s8417": "Un déplacement a été interrompu. Terminez-le ou laissez-le.", + "s8418": "Strata déplaçait vos modèles de {0} vers {1} quand il s’est arrêté. Rien n’est perdu.", + "s8419": "Terminer le déplacement", + "s8420": "Le laisser", + "s8421": "Terminer place tous vos modèles dans {1}. Le laisser les garde dans {0} et supprime les copies partielles de {1}.", + "s8422": "Les copies partielles ont été supprimées. Vos modèles sont dans {0}.", + "s8601": "Cartes graphiques", + "s8602": "Principale", + "s8603": "Auxiliaire", + "s8604": "Votre choix.", + "s8605": "Recommandé.", + "s8606": "Vous avez changé les rôles. Strata utilisera exactement ceux-ci.", + "s8607": "Recommandé : {0}", + "s8608": "Rôle de {0}", + "s8609": "{0} Go de mémoire", + "s8610": "Utilise la mémoire de votre ordinateur (graphisme intégré)", + "s8611": "Fait le travail principal", + "s8612": "Contient une partie du modèle", + "s8613": "Inutilisée", + "s8614": "Utilisée par {0}", + "s8615": "La désactiver", + "s8616": "Définir {0} comme principale", + "s8617": "{0} ne peut pas exécuter Strata.", + "s8618": "{0} est un graphisme intégré ; elle est lente comme carte principale.", + "s8619": "Les performances sont dégradées avec le CPU seul.", + "s8620": "Ce moteur a besoin d’une carte graphique pour démarrer. Activez-en une.", + "s8621": "Pas assez de mémoire pour cette configuration : environ {0} Go sont lus depuis le disque.", + "s8622": "{0} est maintenant auxiliaire.", + "s8623": "{0} est maintenant principale.", + "s8624": "La seule carte activée doit être la principale.", + "s8625": "Aucune carte graphique utilisable par Strata n’a été trouvée.", + "s8626": "Strata utilisera votre {0}.", + "s8627": "{0} est principale : {1}.", + "s8628": "les cartes se valent", + "s8629": "elle a plus de mémoire", + "s8630": "elle est plus rapide", + "s8631": "c’est la seule carte", + "s8632": "{0} aident.", + "s8633": "{0} aide.", + "s8634": "{0} démarre désactivée : {1}", + "s8635": "Strata ne peut pas l’exécuter.", + "s8636": "graphisme intégré.", + "s8637": "{0} Go ou moins.", + "s8638": "La carte qui fait les dernières étapes de chaque réponse : elle écrit les mots suivants, exécute l’étape d’anticipation et la vérifie, et garde votre conversation. Choisissez votre carte la plus rapide avec beaucoup de mémoire. Il n’y en a jamais qu’une.", + "s8639": "Contient une part du modèle et de sa mémoire rapide, pour que davantage tienne sur les cartes graphiques au lieu d’être lu depuis votre disque. Les prompts sont lus environ 20 % plus vite.", + "s8640": "Strata ne touche pas à cette carte. Pratique pour une carte que vous utilisez pour autre chose, comme un jeu ou votre écran.", + "s8641": "Le modèle a besoin d’environ {0} Go. Ces cartes et votre mémoire en offrent environ {1}. Il tient.", + "s8642": "Le modèle a besoin d’environ {0} Go. Ces cartes et votre mémoire en offrent environ {1}, donc environ {2} Go seraient lus depuis votre disque.", + "s8643": "Seuls votre processeur et votre mémoire sont utilisés.", + "s8644": "Pour les experts : le moteur démarre sur les cartes {0} (la principale en dernier).", + "s8645": "Non enregistré tant que vous gardez la recommandation : Strata choisit à nouveau si vous ajoutez ou retirez une carte.", + "s8646": "Inutilisée : {0} (une autre marque de carte graphique que celle que ce moteur pilote).", + "s9001": "Ce message fait environ {0} tokens, et ce modèle peut en lire environ {1} à la fois. Il est trop gros pour être envoyé tel quel.", + "s9002": "Joignez-le comme fichier pour que l’assistant le lise par parties, ou envoyez un aperçu raccourci.", + "s9003": "Cette conversation ne tient plus dans la fenêtre du modèle, et le résumé des anciens messages n’a pas libéré assez de place.", + "s9004": "Résumez-la maintenant et continuez, ou ouvrez une nouvelle conversation.", + "s9005": "Résumé des messages précédents…", + "s9006": "Les anciens messages ont été résumés pour faire de la place. La conversation était pleine à {0} % et l’est maintenant à {1} %.", + "s9007": "Les anciens messages ont été résumés pour faire de la place. La conversation était pleine à {0} %.", + "s9008": "Les anciens messages ont été résumés pour faire de la place.", + "s9009": "Cette conversation est pleine à {0} %, mais il n’y a rien d’ancien à résumer : c’est le dernier message qui la remplit. Ouvrez une nouvelle conversation, ou envoyez un message plus court.", + "s9010": "Il n’y a encore rien d’ancien à résumer. Tout ce qui est dans cette conversation sert encore à l’assistant.", + "s9011": "Il n’y a encore rien à résumer. Cette conversation n’a pas encore commencé avec l’assistant.", + "s9012": "Les anciens messages n’ont pas pu être résumés pour le moment. Réessayez dans un instant, ou ouvrez une nouvelle conversation.", + "s9013": "Cette conversation est encore en cours de travail. Arrêtez-la ou attendez la fin, puis réessayez.", + "s9014": "Joindre comme fichier", + "s9015": "Envoyer un aperçu raccourci", + "s9016": "Résumer et continuer", + "s9017": "Ouvrir une nouvelle conversation", + "s9018": "Le message n’a pas pu être préparé. Essayez un message plus court.", + "s9019": "La dernière session de Strata est encore en cours de fermeture.", + "s9020": "Attendez un instant et réessayez. Si le problème persiste, redémarrez l’ordinateur.", + "s9021": "Anticipation", + "s9022": "Auto (recommandé)", + "s9023": "MTP", + "s9024": "DFlash2", + "s9025": "Anticipation : MTP (DFlash2 ne tenait pas)", + "s9026": "Anticipation : MTP (DFlash2 n’est pas disponible dans ce mode)", + "s9027": "Anticipation : MTP (DFlash2 est réservé à Qwen3.8-Flash-Next)", + "s9028": "Anticipation : MTP (le module d’anticipation DFlash2 n’est pas encore téléchargé)", + "s9029": "Choisir DFlash2 télécharge aussi son module d’anticipation : environ {0} Go, une seule fois. S’il ne tient pas dans la mémoire graphique, le modèle utilise MTP à la place.", + "s9030": "Téléchargement du module d’anticipation DFlash2…", + "s9031": "Préparation du module d’anticipation DFlash2 pour le moteur…", + "s9032": "Le module d’anticipation DFlash2 est prêt.", + "s9033": "Le module d’anticipation DFlash2 n’a pas pu être téléchargé, le modèle démarre donc avec MTP. Chargement du modèle…", + "s9034": "Chargement du modèle…", + "s9035": "Ces fichiers du modèle sont manquants : {0}.", + "s9036": "Appuyez à nouveau sur Télécharger et charger pour les récupérer. Les fichiers déjà présents sont conservés. Si les mêmes fichiers sont listés à nouveau, ouvrez Détails et partagez-les quand vous demandez de l’aide.", + "s9037": "Cette mise à jour a été interrompue au redémarrage de l’application. Une mise à jour plus récente s’est terminée, il n’y a donc rien à faire." +} diff --git a/apps/host/src/locales/tools-fr.json b/apps/host/src/locales/tools-fr.json new file mode 100644 index 00000000..5d12b6d9 --- /dev/null +++ b/apps/host/src/locales/tools-fr.json @@ -0,0 +1,6 @@ +{ + "tl01": "Utilisez un nom de serveur simple de 32 caractères maximum : lettres, chiffres, tirets ou tirets bas.", + "tl02": "Ces serveurs d’outils ont été laissés de côté car leurs noms ne sont pas autorisés : {0}. Un nom peut contenir jusqu’à 32 lettres, chiffres, tirets ou tirets bas.", + "tl03": "Ces serveurs d’outils ont été laissés de côté car ils n’ont ni programme ni adresse web : {0}.", + "tl04": "Ces serveurs d’outils ont été laissés de côté car un autre a presque le même nom : {0}." +} diff --git a/apps/host/src/locales/tune-fr.json b/apps/host/src/locales/tune-fr.json new file mode 100644 index 00000000..6f81ceb2 --- /dev/null +++ b/apps/host/src/locales/tune-fr.json @@ -0,0 +1,45 @@ +{ + "tune01": "Optimiser ce modèle", + "tune02": "Recherche des réglages les plus rapides pour votre PC…", + "tune03": "environ {0} min restantes", + "tune04": "Cela prend environ 20 minutes.", + "tune05": "Arrêté. Vos réglages n’ont pas été modifiés.", + "tune06": "L’optimisation n’est pas terminée. Vos réglages n’ont pas été modifiés.", + "tune07": "Toujours aussi rapide qu’à l’enregistrement.", + "tune08": "C’est plus lent qu’avant. Vous pouvez optimiser à nouveau.", + "tune09": "Impossible de savoir pour l’instant. Votre optimisation a été conservée.", + "tune10": "Réponses {0} % plus rapides, enregistré sous « {1} »", + "tune11": "Vos réglages actuels sont déjà les plus rapides que nous ayons trouvés.", + "tune12": "Rien n’a été modifié.", + "tune13": "Enregistré sous « {0} », il ne sera donc pas réoptimisé à la réouverture de l’application.", + "tune14": "Vitesse : {0} → {1} tok/s", + "tune15": "Les réponses sont identiques à la configuration standard.", + "tune16": "Les réponses peuvent différer légèrement de la configuration standard.", + "tune17": "Les réponses ne sont pas reproductibles d’une exécution à l’autre.", + "tune18": "Comprend un réglage de qualité qui modifie les chiffres.", + "tune19": "Optimisation enregistrée utilisée : {0}", + "tune20": "Réponses {0} % plus rapides", + "tune21": "Ce PC a changé depuis l’optimisation, ces réglages ne sont donc pas utilisés tant que vous n’optimisez pas à nouveau.", + "tune22": "Ce PC ou le moteur a changé depuis l’optimisation. Une vérification courte prend environ 2 minutes.", + "tune23": "Pas encore d’optimisation enregistrée pour ces choix.", + "tune24": "Strata essaie différents réglages sur ce PC et garde ceux qui accélèrent les réponses. Votre modèle est déchargé pendant ce temps, et l’ordinateur sera occupé.", + "tune25": "Terminez d’abord l’opération en cours.", + "tune26": "Durée à y consacrer", + "tune27": "Rapide (environ 20 minutes)", + "tune28": "Approfondie (jusqu’à 2 heures)", + "tune29": "Ce que vous faites surtout", + "tune30": "Programmation avec de longs prompts", + "tune31": "Autoriser les réglages qui changent très légèrement les réponses (même qualité)", + "tune32": "Optimisations enregistrées", + "tune33": "Utilisée", + "tune34": "Utiliser", + "tune35": "Optimiser à nouveau", + "tune36": "Lancer l’optimisation", + "tune37": "Optimisation de votre modèle", + "tune38": "Les réponses peuvent différer d’une exécution à l’autre sur ce PC même avec la configuration standard ; ce réglage n’y ajoute rien.", + "tune39": "Utilisation de votre optimisation « {0} »", + "tune40": "Désactiver", + "tune41": "Activer", + "tune42": "Votre optimisation est désactivée. Les réglages standard sont utilisés.", + "tune43": "Votre PC était occupé, les mesures n’étaient donc pas fiables. Rien n’a été modifié. Réessayez quand il est au calme." +} diff --git a/apps/host/tests/agent-events.test.mjs b/apps/host/tests/agent-events.test.mjs index bacba919..6564e4fd 100644 --- a/apps/host/tests/agent-events.test.mjs +++ b/apps/host/tests/agent-events.test.mjs @@ -138,7 +138,7 @@ test('a chat that existed before the agent carries a bounded summary into its fi test('the browser and the person\'s own tools have plain sentences, translated in every language', async () => { const { readFileSync } = await import('node:fs'); - const catalog = Object.fromEntries(['en', 'de', 'es', 'ja', 'ko', 'pt', 'ru', 'zh'].map(l => [l, JSON.parse(readFileSync(new URL(`../src/locales/${l}.json`, import.meta.url), 'utf8'))])); + const catalog = Object.fromEntries(['en', 'de', 'es', 'fr', 'ja', 'ko', 'pt', 'ru', 'zh'].map(l => [l, JSON.parse(readFileSync(new URL(`../src/locales/${l}.json`, import.meta.url), 'utf8'))])); const idOf = text => Object.entries(catalog.en).find(([, v]) => v === text)?.[0]; const cases = [ ['mcp__browser__browser_navigate', 'Opening a page in the browser', 'Opened a page in the browser', "Couldn't open the page"], @@ -157,7 +157,7 @@ test('the browser and the person\'s own tools have plain sentences, translated i ]; for (const [name, running, done, failed] of cases) { assert.equal(toolVerb(name, 'running'), running, name); assert.equal(toolVerb(name, 'done'), done, name); assert.equal(toolVerb(name, 'error'), failed, name); - for (const text of [running, done, failed]) { const id = idOf(text); assert.ok(id, `${text} is in the catalog`); for (const l of ['de', 'es', 'ja', 'ko', 'pt', 'ru', 'zh']) assert.ok(catalog[l][id]?.trim(), `${l}: ${text}`); } + for (const text of [running, done, failed]) { const id = idOf(text); assert.ok(id, `${text} is in the catalog`); for (const l of ['de', 'es', 'fr', 'ja', 'ko', 'pt', 'ru', 'zh']) assert.ok(catalog[l][id]?.trim(), `${l}: ${text}`); } } const nav = presentTool({ callId: 'c1', name: 'mcp__browser__browser_navigate', args: { url: 'https://example.com' } }); assert.equal(nav.target, 'https://example.com'); assert.equal(nav.verb, 'Opening a page in the browser'); diff --git a/apps/host/tests/agent-status.test.mjs b/apps/host/tests/agent-status.test.mjs index a25b9da8..c9d6d811 100644 --- a/apps/host/tests/agent-status.test.mjs +++ b/apps/host/tests/agent-status.test.mjs @@ -154,7 +154,7 @@ test('real Harness: a turn that writes a file says what it is doing, in order, a test('a sentence with a name or a number also carries its catalog template and values, and every status sentence is in the catalog in every language', async () => { const { readFileSync } = await import('node:fs'); - const catalog = Object.fromEntries(['en', 'de', 'es', 'ja', 'ko', 'pt', 'ru', 'zh'].map(l => [l, JSON.parse(readFileSync(new URL(`../src/locales/${l}.json`, import.meta.url), 'utf8'))])); + const catalog = Object.fromEntries(['en', 'de', 'es', 'fr', 'ja', 'ko', 'pt', 'ru', 'zh'].map(l => [l, JSON.parse(readFileSync(new URL(`../src/locales/${l}.json`, import.meta.url), 'utf8'))])); const idOf = text => Object.entries(catalog.en).find(([, v]) => v === text)?.[0]; const p = new TurnProjector(); const seen = []; p.onStatus = u => seen.push(u); p.consume({ type: 'assistant-stream', frame: { type: 'chunk', attemptId: 'a', chunk: { type: 'tool-call-delta', index: 0, id: 'c', name: 'write', argumentsDelta: '{"file_path":"/w/pagoda.html","content":"' + 'x'.repeat(4000) } } }); @@ -163,7 +163,7 @@ test('a sentence with a name or a number also carries its catalog template and v const keys = ['Starting the assistant…', 'Starting…', 'Reading your message…', 'Working out the next step…', 'Thinking… {0} tokens', 'Writing the answer…', 'Waiting for your answer…', 'Helpers are working ({0})…', 'Working on the goal…', 'Writing {0}…', 'Writing a file…', 'Writing {0}… ({1} KB)', 'Writing a file… ({0} KB)', 'Changing {0}…', 'Changing a file…', 'Reading {0}…', 'Reading a file…', 'Running a command…', 'Searching your files…', 'Searching the web…', 'Opening {0}…', 'Opening a web page…', 'Using the browser…', 'Setting the goal…', 'Updating the goal…', 'Checking the goal…', 'Using a tool…', 'Reading your files…', 'Trying an improved version…', 'Checking the result…', 'Comparing the two versions…']; - for (const key of keys) { const id = idOf(key); assert.ok(id, `${key} is in the catalog`); for (const l of ['de', 'es', 'ja', 'ko', 'pt', 'ru', 'zh']) { assert.ok(catalog[l][id]?.trim(), `${l}: ${key}`); assert.deepEqual((catalog[l][id].match(/\{\d\}/g) ?? []).sort(), (key.match(/\{\d\}/g) ?? []).sort(), `${l} keeps the slots of ${key}`); } } + for (const key of keys) { const id = idOf(key); assert.ok(id, `${key} is in the catalog`); for (const l of ['de', 'es', 'fr', 'ja', 'ko', 'pt', 'ru', 'zh']) { assert.ok(catalog[l][id]?.trim(), `${l}: ${key}`); assert.deepEqual((catalog[l][id].match(/\{\d\}/g) ?? []).sort(), (key.match(/\{\d\}/g) ?? []).sort(), `${l} keeps the slots of ${key}`); } } }); test('a goal step is always sent, even right after another status (it used to be swallowed by the 300 ms gap, which made a test flaky)', () => { diff --git a/apps/host/tests/agent-turn-guard.test.mjs b/apps/host/tests/agent-turn-guard.test.mjs index 4f33f171..6ac287a3 100644 --- a/apps/host/tests/agent-turn-guard.test.mjs +++ b/apps/host/tests/agent-turn-guard.test.mjs @@ -74,8 +74,8 @@ test('a turn that ends with no words always gets a plain message: out of room, o assert.equal(g.silent({ ended: done, wrote: false, contextTokens: 9700, stoppedByPerson: true }), null, 'Stop is the person\'s own'); }); -test('every message is a plain sentence with a next step, carries its interface key, and is in the catalog in all eight languages', () => { - const langs = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']; +test('every message is a plain sentence with a next step, carries its interface key, and is in the catalog in all nine languages', () => { + const langs = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']; const catalogs = Object.fromEntries(langs.map(l => [l, JSON.parse(readFileSync(new URL(`../src/locales/${l}.json`, import.meta.url), 'utf8'))])); const idOf = text => Object.entries(catalogs.en).find(([, v]) => v === text)?.[0]; for (const [reason, text] of Object.entries(GUARD_NOTES)) { diff --git a/apps/host/tests/card-labels.test.mjs b/apps/host/tests/card-labels.test.mjs index 9943fdbd..33e164e9 100644 --- a/apps/host/tests/card-labels.test.mjs +++ b/apps/host/tests/card-labels.test.mjs @@ -5,7 +5,7 @@ import { readFileSync } from 'node:fs'; import { resolve } from 'node:path'; const root = resolve(import.meta.dirname, '..'); -const languages = ['en', 'de', 'es', 'ja', 'ko', 'pt', 'ru', 'zh']; +const languages = ['en', 'de', 'es', 'fr', 'ja', 'ko', 'pt', 'ru', 'zh']; const catalog = Object.fromEntries(languages.map(l => [l, JSON.parse(readFileSync(resolve(root, 'src/locales', `${l}.json`), 'utf8'))])); const idOf = text => Object.entries(catalog.en).find(([, v]) => v === text)?.[0]; diff --git a/apps/host/tests/context-ui.test.mjs b/apps/host/tests/context-ui.test.mjs index b9b8dfc4..b55f46c9 100644 --- a/apps/host/tests/context-ui.test.mjs +++ b/apps/host/tests/context-ui.test.mjs @@ -1,5 +1,5 @@ // The page side of the context fixes (2026-10-22 hands-on test): what the error card offers, what the context meter reads while a turn runs, -// and that every sentence the host or the page says about the context is in the catalog in all eight languages. +// and that every sentence the host or the page says about the context is in the catalog in all nine languages. import test from 'node:test'; import assert from 'node:assert/strict'; import { readFileSync } from 'node:fs'; @@ -99,8 +99,8 @@ test('the context meter follows the turn that is running: a tool step does not r assert.equal(chatMetrics(session([earlier, done]), null, 65536).used, 43090, 'when the turn has ended its final figure stands'); }); -test('every sentence about the context is in the catalog in all eight languages, with the same slots', () => { - const langs = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']; +test('every sentence about the context is in the catalog in all nine languages, with the same slots', () => { + const langs = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']; const catalogs = Object.fromEntries(langs.map(l => [l, JSON.parse(read(`../src/locales/${l}.json`))])); const idOf = text => Object.entries(catalogs.en).find(([, v]) => v === text)?.[0]; const sentences = [...Object.values(FIT_TEXT), 'Attach as a file', 'Send a shortened preview', 'Summarize and continue', 'Start a new chat', diff --git a/apps/host/tests/cors-help.test.mjs b/apps/host/tests/cors-help.test.mjs index 12c178fe..431285df 100644 --- a/apps/host/tests/cors-help.test.mjs +++ b/apps/host/tests/cors-help.test.mjs @@ -4,9 +4,9 @@ import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import { expertParams } from '../server/catalog.mjs'; -const languages = ['en', 'de', 'es', 'ja', 'ko', 'pt', 'ru', 'zh']; +const languages = ['en', 'de', 'es', 'fr', 'ja', 'ko', 'pt', 'ru', 'zh']; -test('the CORS setting explains itself and the explanation exists in all 8 languages', async () => { +test('the CORS setting explains itself and the explanation exists in all 9 languages', async () => { const cors = expertParams().find(p => p.id === 'server.cors'); assert.match(cors.effect, /does nothing in the app/); assert.match(cors.effect, /"cors_origins"/); diff --git a/apps/host/tests/deepseek-context.test.mjs b/apps/host/tests/deepseek-context.test.mjs index 6963fb65..40bdd7cb 100644 --- a/apps/host/tests/deepseek-context.test.mjs +++ b/apps/host/tests/deepseek-context.test.mjs @@ -87,12 +87,12 @@ test('the Models screen honours the choice (it no longer forces 8K), offers the assert.match(screen, /installed\?\.ready && context === installed\.context/, 'a load at the prepared context starts from the saved file; only a changed choice runs setup again'); }); -test('the note is in the catalog in all eight languages, translated', () => { +test('the note is in the catalog in all nine languages, translated', () => { const find = lang => Object.values(JSON.parse(read(`../src/locales/fix-${lang}.json`))); assert.ok(find('en').includes(UNTESTED_NOTE)); const en = JSON.parse(read('../src/locales/fix-en.json')); const id = Object.keys(en).find(k => en[k] === UNTESTED_NOTE); - for (const lang of ['zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']) { + for (const lang of ['zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']) { const text = JSON.parse(read(`../src/locales/fix-${lang}.json`))[id]; assert.ok(text && text !== UNTESTED_NOTE, `${lang} is translated`); } diff --git a/apps/host/tests/drafting.test.mjs b/apps/host/tests/drafting.test.mjs index 89987d95..fe7d398f 100644 --- a/apps/host/tests/drafting.test.mjs +++ b/apps/host/tests/drafting.test.mjs @@ -1,5 +1,5 @@ // The Drafting choice in the app (MTP / DFlash2 / Off / Auto): the Models screen row, the setting the host saves, what the host asks Control before -// a load, the download plan line, and the words in all eight languages. The table of which card gets which drafter lives in Python +// a load, the download plan line, and the words in all nine languages. The table of which card gets which drafter lives in Python // (strata_control/drafting.py, tests/terminal/test_drafting.py); the app never reads it. import test from 'node:test'; import assert from 'node:assert/strict'; @@ -77,8 +77,8 @@ test('a load fetches the drafter first, never stops for it, and says what ran', assert.match(source, /drafting:cfg\.drafting\?\?'auto'/, 'the installed model reports its saved choice'); }); -test('every sentence of the Drafting choice is in the catalog in all eight languages, with the same slots', () => { - const langs = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']; +test('every sentence of the Drafting choice is in the catalog in all nine languages, with the same slots', () => { + const langs = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']; const catalogs = Object.fromEntries(langs.map(l => [l, JSON.parse(read(`../src/locales/${l}.json`))])); const idOf = text => Object.entries(catalogs.en).find(([, v]) => v === text)?.[0]; const sentences = ['Drafting', 'Auto (recommended)', 'MTP', 'DFlash2', diff --git a/apps/host/tests/french-catalog.test.mjs b/apps/host/tests/french-catalog.test.mjs new file mode 100644 index 00000000..acd2451f --- /dev/null +++ b/apps/host/tests/french-catalog.test.mjs @@ -0,0 +1,60 @@ +import { test } from 'node:test'; +import assert from 'node:assert/strict'; +import { readFile } from 'node:fs/promises'; +import { build } from 'esbuild'; + +// French (#3970): the catalogs are complete (the generic language tests cover keys and placeholders); these tests cover +// what is specific to French: spacing before ? ! : ;, apostrophes, short labels staying short, and the picker entry. +const names = [['en', 'fr'], ['fix-en', 'fix-fr'], ['tune-en', 'tune-fr'], ['tools-en', 'tools-fr']]; +const read = async name => JSON.parse(await readFile(`src/locales/${name}.json`, 'utf8')); +const compiled = await build({ stdin: { contents: "export * from './src/lib/i18n';", resolveDir: process.cwd() }, bundle: true, write: false, format: 'esm', platform: 'node', loader: { '.json': 'json' } }); +const { tr, setTranslationLanguage, localeTag, currentLanguage, LANGUAGES, validLanguage } = await import(`data:text/javascript;base64,${Buffer.from(compiled.outputFiles[0].text).toString('base64')}`); + +test('French is in the language picker under its own name', () => { + const entry = LANGUAGES.find(item => item.value === 'fr'); + assert.equal(entry?.label, 'Français'); + assert.ok(validLanguage('fr')); + assert.equal(LANGUAGES.length, 9); + setTranslationLanguage('fr'); + assert.equal(currentLanguage(), 'fr'); + assert.equal(localeTag(), 'fr'); + assert.equal(tr('Settings'), 'Paramètres'); + assert.equal(tr('Cancel'), 'Annuler'); + assert.equal(tr('Open {0}', ['Modèles']).includes('{'), false); + assert.equal(tr('unrecognized user content Ω'), 'unrecognized user content Ω'); + setTranslationLanguage('en'); +}); + +test('French text keeps the French typography: a no-break space before ? ! : ; and a typographic apostrophe', async () => { + const bad = []; + for (const [englishName, frenchName] of names) { + const english = await read(englishName), french = await read(frenchName); + for (const [id, text] of Object.entries(french)) { + if (text === english[id]) continue; // kept as is: names, file names, class names + if (/[A-Za-zÀ-ÿ\)\]\d%] [?!;:]/.test(text) && !/https?:|\d:\d/.test(text)) bad.push(`${id}: ordinary space before punctuation: ${text}`); + if (/[A-Za-zÀ-ÿ\)\]\d%][?!;]/.test(text)) bad.push(`${id}: no space before ? ! or ;: ${text}`); + if (/[A-Za-zÀ-ÿ]'[A-Za-zÀ-ÿ{]/.test(text)) bad.push(`${id}: straight apostrophe: ${text}`); + } + } + assert.deepEqual(bad, []); +}); + +test('short labels stay short in French (buttons, tabs, chips)', async () => { + const english = await read('en'), french = await read('fr'); + const long = []; + for (const [id, text] of Object.entries(english)) { + if (text.length > 10 || french[id] === text || /\{\d+\}/.test(text)) continue; + // a label of up to 10 letters may take up to 3 times the room, and never more than 36 characters + if (french[id].length > Math.max(18, text.length * 3.2) || french[id].length > 36) long.push(`${id}: ${text} -> ${french[id]} (${french[id].length})`); + } + assert.deepEqual(long, []); +}); + +test('no French string is still English by accident: at most 5% of the main catalog is left unchanged', async () => { + const english = await read('en'), french = await read('fr'); + const same = Object.keys(english).filter(id => english[id] === french[id]); + assert.ok(same.length < Object.keys(english).length * 0.05, `${same.length} unchanged`); + // every unchanged string has no real words in it, or is a name that is spelled the same in French + const words = same.filter(id => english[id].split(/\s+/).length >= 4 && /\s(the|your|you|is|are|this|that|with|from|and)\s/i.test(english[id]) && !/^[-/\\]/.test(english[id])); + assert.deepEqual(words.map(id => `${id}: ${english[id]}`), []); +}); diff --git a/apps/host/tests/languages-and-catalog.test.mjs b/apps/host/tests/languages-and-catalog.test.mjs index 1cd8a25f..c7e4372e 100644 --- a/apps/host/tests/languages-and-catalog.test.mjs +++ b/apps/host/tests/languages-and-catalog.test.mjs @@ -2,7 +2,7 @@ import {test} from 'node:test'; import assert from 'node:assert/strict'; import {readFile} from 'node:fs/promises'; import {build} from 'esbuild'; -const languages=['en','zh','ja','de','es','ru','pt','ko']; +const languages=['en','zh','ja','de','es','ru','pt','ko','fr']; const catalogs=Object.fromEntries(await Promise.all(languages.map(async language=>[language,JSON.parse(await readFile(`src/locales/${language}.json`,'utf8'))]))); const english=catalogs.en; const slots=text=>[...text.matchAll(/\{\d+\}/g)].map(match=>match[0]).sort(); diff --git a/apps/host/tests/locale-gaps.test.mjs b/apps/host/tests/locale-gaps.test.mjs index 9e7c7ae7..aefa8982 100644 --- a/apps/host/tests/locale-gaps.test.mjs +++ b/apps/host/tests/locale-gaps.test.mjs @@ -5,7 +5,7 @@ import { readdir, readFile } from 'node:fs/promises'; import { join } from 'node:path'; import { build } from 'esbuild'; -const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']; +const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']; const read = async name => JSON.parse(await readFile(`src/locales/${name}.json`, 'utf8')); const built = await build({ stdin: { contents: "export * from './src/lib/i18n';", resolveDir: process.cwd() }, bundle: true, write: false, format: 'esm', platform: 'node', loader: { '.json': 'json' } }); const { tr, setTranslationLanguage } = await import(`data:text/javascript;base64,${Buffer.from(built.outputFiles[0].text).toString('base64')}`); @@ -38,7 +38,7 @@ test('every tr("...") literal and every command hint has a key in the English ca assert.deepEqual(missing, []); }); -test('the fix catalogs have the same keys and placeholders in all eight languages', async () => { +test('the fix catalogs have the same keys and placeholders in all nine languages', async () => { const en = await read('fix-en'); for (const language of languages) { const catalog = await read(`fix-${language}`); diff --git a/apps/host/tests/mcp-rows.test.mjs b/apps/host/tests/mcp-rows.test.mjs index c44411ea..5d00fd8f 100644 --- a/apps/host/tests/mcp-rows.test.mjs +++ b/apps/host/tests/mcp-rows.test.mjs @@ -53,7 +53,7 @@ test('the notices name the servers, one sentence per reason, in the catalog word assert.notEqual(notices[0].code, notices[1].code); assert.deepEqual(mcpSkippedNotices([]), []); // every sentence is in the catalog of every language (src/locales/tools-<lang>.json) - for (const lang of ['en', 'de', 'es', 'pt', 'ru', 'ja', 'ko', 'zh']) { + for (const lang of ['en', 'de', 'es', 'pt', 'ru', 'ja', 'ko', 'fr', 'zh']) { const catalog = JSON.parse(await readFile(new URL(`../src/locales/tools-${lang}.json`, import.meta.url), 'utf8')); const english = JSON.parse(await readFile(new URL('../src/locales/tools-en.json', import.meta.url), 'utf8')); for (const text of ['These tool servers were left out because their names are not allowed: {0}. A name can have up to 32 letters, numbers, hyphens or underscores.', diff --git a/apps/host/tests/models-folder.test.mjs b/apps/host/tests/models-folder.test.mjs index 9f6f2cb8..63650a5f 100644 --- a/apps/host/tests/models-folder.test.mjs +++ b/apps/host/tests/models-folder.test.mjs @@ -202,12 +202,12 @@ test('the Control command lines for status, resume and leave', async () => { assert.deepEqual(seen[2], ['models', 'move', '--leave', '--from', '/o', '--install-dir', '/i', '--output', 'json']); }); -test('the models folder strings exist in all 8 languages with the same placeholders', () => { +test('the models folder strings exist in all 9 languages with the same placeholders', () => { const read = lang => JSON.parse(readFileSync(new URL(`../src/locales/${lang}.json`, import.meta.url), 'utf8')); const en = read('en'); const ours = Object.keys(en).filter(k => Number(k.slice(1)) >= 8339 && Number(k.slice(1)) <= 8422); assert.equal(ours.length, 84); - for (const lang of ['de', 'es', 'ja', 'ko', 'pt', 'ru', 'zh']) { + for (const lang of ['de', 'es', 'fr', 'ja', 'ko', 'pt', 'ru', 'zh']) { const text = read(lang); for (const key of ours) { assert.ok(text[key], `${lang} ${key}`); diff --git a/apps/host/tests/plain-errors.test.mjs b/apps/host/tests/plain-errors.test.mjs index bb27d0e8..d96f4b9f 100644 --- a/apps/host/tests/plain-errors.test.mjs +++ b/apps/host/tests/plain-errors.test.mjs @@ -3,7 +3,7 @@ import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import { build } from 'esbuild'; -const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']; +const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']; const catalogs = Object.fromEntries(await Promise.all(languages.map(async l => [l, JSON.parse(await readFile(`src/locales/${l}.json`, 'utf8'))]))); const built = await build({ stdin: { contents: "export * from './src/lib/plain-errors'; export * from './src/lib/i18n';", resolveDir: process.cwd() }, bundle: true, write: false, format: 'esm', platform: 'node', loader: { '.json': 'json' } }); const { plainFailure, plainFailureText, setTranslationLanguage } = await import(`data:text/javascript;base64,${Buffer.from(built.outputFiles[0].text).toString('base64')}`); @@ -57,7 +57,7 @@ test('an ordinary sentence is left as it is and gets no Details', () => { assert.equal(f.detail, undefined); }); -test('every plain message and next step is translated in all eight languages', () => { +test('every plain message and next step is translated in all nine languages', () => { const en = catalogs.en; const ids = Object.fromEntries(Object.entries(en).map(([id, text]) => [text, id])); for (const [raw] of cases) { diff --git a/apps/host/tests/qa1-downloads.test.mjs b/apps/host/tests/qa1-downloads.test.mjs index e0ef38d4..26a3c629 100644 --- a/apps/host/tests/qa1-downloads.test.mjs +++ b/apps/host/tests/qa1-downloads.test.mjs @@ -115,7 +115,7 @@ test('the three NVFP4 versions have clear names and one line that tells them apa assert.match(lines[2], /faster on short prompts/); assert.equal(lib.versionNote('IQ3_S'), ''); assert.equal(lib.nativeShortName('nvfp4-nvfp4-nvidia'), 'NVFP4 (NVIDIA’s version)'); - for (const language of ['zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']) { + for (const language of ['zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']) { lib.setTranslationLanguage(language); const local = ['NVFP4', 'NVFP4-NVIDIA', 'NVFP4-QAD'].map(m => lib.nativeVersionLabel(m)); assert.equal(new Set(local).size, 3, `${language}: three different names`); diff --git a/apps/host/tests/reliability.test.mjs b/apps/host/tests/reliability.test.mjs index a8e922ec..ce0cb40e 100644 --- a/apps/host/tests/reliability.test.mjs +++ b/apps/host/tests/reliability.test.mjs @@ -25,7 +25,7 @@ test('Markdown renders every incomplete stream prefix without looping', { timeou const mod = { exports: {} }; new Function('require', 'module', 'exports', bundle.outputFiles[0].text)(createRequire(import.meta.url), mod, mod.exports); const { render, setLanguage } = mod.exports; - for(const language of ['zh','ja','de','es','ru','pt','ko']) { setLanguage(language); const markup=render('Ready\n\n**Settings**\n\n*Download*\n\n[Cancel](https://example.com)\n\n| Name | Value |\n| --- | --- |\n| Close | Language |'); for(const word of ['Ready','Settings','Download','Cancel','Name','Value','Close','Language'])assert(markup.includes(word),language+': user text changed: '+word); } + for(const language of ['zh','ja','de','es','ru','pt','ko','fr']) { setLanguage(language); const markup=render('Ready\n\n**Settings**\n\n*Download*\n\n[Cancel](https://example.com)\n\n| Name | Value |\n| --- | --- |\n| Close | Language |'); for(const word of ['Ready','Settings','Download','Cancel','Name','Value','Close','Language'])assert(markup.includes(word),language+': user text changed: '+word); } setLanguage('en'); for (const marker of ['- ', '* ', '+ ', '1. ', '2) ', ' - ', ' 12. ']) assert.ok(render(marker).includes(marker)); const text = '# Answer\n\n- First item\n- Second item\n\n1. First step\n2. Second step\n\n```js\nconsole.log("hello");\n```\n\n| Name | Value |\n| --- | --- |\n| One | Two |'; diff --git a/apps/host/tests/run-config-check.test.mjs b/apps/host/tests/run-config-check.test.mjs index 5cd00c80..5183b479 100644 --- a/apps/host/tests/run-config-check.test.mjs +++ b/apps/host/tests/run-config-check.test.mjs @@ -91,8 +91,8 @@ test('the text editor: Notepad on Windows, text mode on a Mac, the system text-f assert.deepEqual(seen, [['xdg-open', '/s/strata-q.json']], 'with no text editor known the file’s own program opens it'); }); -test('every issue sentence exists in all eight languages and keeps its slots', async () => { - const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']; +test('every issue sentence exists in all nine languages and keeps its slots', async () => { + const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']; const compiled = await build({ stdin: { contents: "export * from './src/lib/run-config-issues'; export * from './src/lib/i18n';", resolveDir: process.cwd() }, bundle: true, write: false, platform: 'node', format: 'esm' }); const { issueText, setTranslationLanguage } = await import(`data:text/javascript;base64,${Buffer.from(compiled.outputFiles[0].text).toString('base64')}`); const samples = [ diff --git a/apps/host/tests/speed-switches.test.mjs b/apps/host/tests/speed-switches.test.mjs index 58b8c638..13145c53 100644 --- a/apps/host/tests/speed-switches.test.mjs +++ b/apps/host/tests/speed-switches.test.mjs @@ -186,13 +186,13 @@ test('through the host: a Qwen model on a PC the engine cannot speed up offers n } finally { await f.cleanup(); } }); -test('the Expert settings show the rows in the existing row layout with an On / Off choice (Off recommended for KVA), and the words are in all eight languages', () => { +test('the Expert settings show the rows in the existing row layout with an On / Off choice (Off recommended for KVA), and the words are in all nine languages', () => { const screen = read('../src/components/NativeSettings.tsx'); assert.match(screen, /<h3 className="h4">\{tr\("Speed"\)\}<\/h3>/); assert.match(screen, /<label className="native-setting-row" key=\{sw\.id\}><span><strong>\{tr\(sw\.label\)\}<\/strong><small>\{tr\(sw\.hint\)\}<\/small><\/span><Select /, 'the same row, the same Select'); assert.match(screen, /\[\{ value: 'on', label: 'On \(recommended\)' \}, \{ value: 'off', label: 'Off' \}\] : \[\{ value: 'off', label: 'Off \(recommended\)' \}, \{ value: 'on', label: 'On' \}\]/); assert.match(screen, /if \(write\) env\[name\] = value; else delete env\[name\];/, 'the default removes the entries'); - const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']; + const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']; const catalog = lang => JSON.parse(read(`../src/locales/fix-${lang}.json`)); const words = [...SPEED_SWITCHES.flatMap(s => [s.label, s.hint]), 'On (recommended)', 'Off (recommended)']; const english = Object.values(catalog('en')); diff --git a/apps/host/tests/tools-locales.test.mjs b/apps/host/tests/tools-locales.test.mjs index 294ddb7a..fe11434e 100644 --- a/apps/host/tests/tools-locales.test.mjs +++ b/apps/host/tests/tools-locales.test.mjs @@ -5,7 +5,7 @@ import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import { build } from 'esbuild'; -const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']; +const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']; const catalogs = Object.fromEntries(await Promise.all(languages.map(async l => [l, JSON.parse(await readFile(`src/locales/tools-${l}.json`, 'utf8'))]))); const main = JSON.parse(await readFile('src/locales/en.json', 'utf8')); const tune = JSON.parse(await readFile('src/locales/tune-en.json', 'utf8')); diff --git a/apps/host/tests/tune-locales.test.mjs b/apps/host/tests/tune-locales.test.mjs index ed52eccd..4f43a9c3 100644 --- a/apps/host/tests/tune-locales.test.mjs +++ b/apps/host/tests/tune-locales.test.mjs @@ -3,7 +3,7 @@ import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import { build } from 'esbuild'; -const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']; +const languages = ['en', 'zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']; const catalogs = Object.fromEntries(await Promise.all(languages.map(async l => [l, JSON.parse(await readFile(`src/locales/tune-${l}.json`, 'utf8'))]))); const main = JSON.parse(await readFile('src/locales/en.json', 'utf8')); const slots = text => [...text.matchAll(/\{\d+\}/g)].map(m => m[0]).sort(); diff --git a/apps/host/tests/web-ask.test.mjs b/apps/host/tests/web-ask.test.mjs index 287afdf8..d16c8abf 100644 --- a/apps/host/tests/web-ask.test.mjs +++ b/apps/host/tests/web-ask.test.mjs @@ -162,13 +162,13 @@ test('the profile names the search service in the gate\'s question, and carries // ---------------------------------------------------------------------------------------------- the words, in every language -test('the card text and the Settings switch exist in all eight languages', async () => { +test('the card text and the Settings switch exist in all nine languages', async () => { const compiled = await build({ stdin: { contents: "export * from './src/lib/i18n';", resolveDir: process.cwd() }, bundle: true, write: false, platform: 'node', format: 'esm' }); const { tr, setTranslationLanguage } = await import(`data:text/javascript;base64,${Buffer.from(compiled.outputFiles[0].text).toString('base64')}`); const search = manualDecision(SEARCH, { provider: 'DuckDuckGo, or Bing when DuckDuckGo is busy' }).reason; const open = manualDecision(FETCH).reason; const english = [search, open, 'Let the assistant search the web without asking']; - for (const language of ['zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko']) { + for (const language of ['zh', 'ja', 'de', 'es', 'ru', 'pt', 'ko', 'fr']) { setTranslationLanguage(language); for (const text of english) assert.notEqual(tr(text), text, `${language}: ${text}`); const translated = tr(search); diff --git a/tests/terminal/test_drafting.py b/tests/terminal/test_drafting.py index c9e851ba..f1fdb311 100644 --- a/tests/terminal/test_drafting.py +++ b/tests/terminal/test_drafting.py @@ -238,7 +238,7 @@ class WhatTheEngineSaid(unittest.TestCase): class WordsMatchTheApp(unittest.TestCase): def test_every_line_the_engine_start_can_say_is_in_the_apps_catalog_in_all_eight_languages(self): folder = ROOT / "apps" / "host" / "src" / "locales" - catalogs = {l: json.loads((folder / f"{l}.json").read_text(encoding="utf-8")) for l in ("en", "de", "es", "ja", "ko", "pt", "ru", "zh")} + catalogs = {l: json.loads((folder / f"{l}.json").read_text(encoding="utf-8")) for l in ("en", "de", "es", "fr", "ja", "ko", "pt", "ru", "zh")} ids = {v: k for k, v in catalogs["en"].items()} self.assertEqual(len(drafting.REASONS), 4) for reason in drafting.REASONS: From 2ce07f86313f05007dc96cc0e78f7c39ebf90613 Mon Sep 17 00:00:00 2001 From: Niko1221 <Niko1221@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:57:57 +0100 Subject: [PATCH 51/52] Docs: Polish README (#3355) Ports the Polish translation from #3355 and the Polski entry in the language row of every README. The pull request translated the older long README, so README.pl.md is rewritten from the current README.md (logo, centred language row, DeepSeek speed tables including Strix Halo, Gyro, coffee button). README.md's own language row had garbled names (double-encoded text); it is written out correctly. Co-authored-by: Jakub Luwierski <91573380+j-luwierski@users.noreply.github.com> --- README.de.md | 2 +- README.es.md | 2 +- README.fr.md | 2 +- README.ja.md | 2 +- README.md | 2 +- README.pl.md | 192 +++++++++++++++++++++++ README.pt-BR.md | 2 +- README.zh-CN.md | 2 +- tests/terminal/test_tui2_023_versions.py | 2 +- 9 files changed, 200 insertions(+), 8 deletions(-) create mode 100644 README.pl.md diff --git a/README.de.md b/README.de.md index e9dd81b4..cf1f8186 100644 --- a/README.de.md +++ b/README.de.md @@ -20,7 +20,7 @@ <a href="https://buymeacoffee.com/strataengine"><img src="https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buymeacoffee&logoColor=000" alt="Strata auf Buy Me a Coffee unterstützen"></a> </p> -<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <b>Deutsch</b> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a></sub></p> +<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <b>Deutsch</b> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <a href="README.pl.md">Polski</a></sub></p> **Kostenlos, Open Source und ganz in deiner Hand.** Nutze Strata auf dem Desktop oder mit deinen liebsten Coding-Tools. Kein Konto nötig. diff --git a/README.es.md b/README.es.md index 52b9f30d..63e96151 100644 --- a/README.es.md +++ b/README.es.md @@ -20,7 +20,7 @@ <a href="https://buymeacoffee.com/strataengine"><img src="https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buymeacoffee&logoColor=000" alt="Apoya Strata en Buy Me a Coffee"></a> </p> -<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <b>Español</b> · <a href="README.pt-BR.md">Português</a></sub></p> +<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <b>Español</b> · <a href="README.pt-BR.md">Português</a> · <a href="README.pl.md">Polski</a></sub></p> **Gratis, de código abierto y tuyo para ejecutar.** Usa Strata en tu escritorio o con tus herramientas de programación favoritas. No necesitas cuenta. diff --git a/README.fr.md b/README.fr.md index 0d2e04f1..a3f7fd4d 100644 --- a/README.fr.md +++ b/README.fr.md @@ -20,7 +20,7 @@ <a href="https://buymeacoffee.com/strataengine"><img src="https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buymeacoffee&logoColor=000" alt="Soutenir Strata sur Buy Me a Coffee"></a> </p> -<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <b>Français</b> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a></sub></p> +<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <b>Français</b> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <a href="README.pl.md">Polski</a></sub></p> **Gratuit, open source, et à vous de l'exécuter.** Utilisez Strata sur votre bureau ou avec vos outils de programmation préférés. Aucun compte nécessaire. diff --git a/README.ja.md b/README.ja.md index 47f8baa4..d57eab8c 100644 --- a/README.ja.md +++ b/README.ja.md @@ -20,7 +20,7 @@ <a href="https://buymeacoffee.com/strataengine"><img src="https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buymeacoffee&logoColor=000" alt="Buy Me a Coffee で Strata を支援する"></a> </p> -<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <b>日本語</b> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a></sub></p> +<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <b>日本語</b> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <a href="README.pl.md">Polski</a></sub></p> **無料でオープンソース。自分の環境で動かせます。** デスクトップで、またはお好みのコーディングツールと一緒に Strata を使えます。アカウントは不要です。 diff --git a/README.md b/README.md index a5baabec..af82584d 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ <a href="https://buymeacoffee.com/strataengine"><img src="https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buymeacoffee&logoColor=000" alt="Support Strata on Buy Me a Coffee"></a> </p> -<p align="center"><sub><b>English</b> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">PortuguĂŞs</a></sub></p> +<p align="center"><sub><b>English</b> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <a href="README.pl.md">Polski</a></sub></p> **Free, open source, and yours to run.** Use Strata on your desktop or with your favorite coding tools. No account needed. diff --git a/README.pl.md b/README.pl.md new file mode 100644 index 00000000..5c779ef2 --- /dev/null +++ b/README.pl.md @@ -0,0 +1,192 @@ +<p align="center"> + <picture> + <source media="(prefers-color-scheme: dark)" srcset="apps/host/public/brand/strata-lockup-dark.svg"> + <img src="apps/host/public/brand/strata-lockup-light.svg" alt="Strata" width="340"> + </picture> +</p> + +<h3 align="center">Uruchom potężną sztuczną inteligencję na własnym komputerze.</h3> +<p align="center">Rozmawiaj, programuj i pracuj z obrazami — lokalnie.</p> + +<p align="center"> + <a href="#modele">Modele</a> · <a href="#instalacja"><b>Instalacja</b></a> · + <a href="#sprzęt">Sprzęt</a> · <a href="#narzędzia">Narzędzia</a> · + <a href="#pomoc">Pomoc</a> · <a href="#wesprzyj-stratę">Wsparcie</a> +</p> + +<p align="center"> + <a href="https://github.com/Niko1221/Strata/releases/latest"><img src="https://img.shields.io/github/v/release/Niko1221/Strata?label=download&color=0ab887" alt="Pobierz Stratę"></a> + <a href="LICENSE"><img src="https://img.shields.io/github/license/Niko1221/Strata" alt="Licencja MIT"></a> + <a href="https://buymeacoffee.com/strataengine"><img src="https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buymeacoffee&logoColor=000" alt="Wesprzyj Stratę na Buy Me a Coffee"></a> +</p> + +<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <b>Polski</b></sub></p> + +**Bezpłatna, z otwartym kodem źródłowym i do uruchomienia u siebie.** Używaj Straty na swoim komputerze albo razem z ulubionymi narzędziami do programowania. Konto nie jest potrzebne. + +## Modele + +Najpierw polecamy **ISTA-DASLab**, potem **Unsloth** i innych dostawców — o ile zgodny model mieści się w pamięci. + +<details> +<summary><img src="docs/media/models/qwen.svg" width="22" alt="" align="middle">  <b>Qwen3.8-Flash-Next</b></summary> + +| Dostawca | Do wyboru | +| --- | --- | +| **ISTA-DASLab · polecany** | Q2\_0, IQ2\_XS, IQ3\_XXS, IQ3\_S. [Coder: IQ1\_M](docs/MODELS.md#coder) do programowania. | +| **Unsloth** | UD-IQ4\_XS, UD-Q4\_K\_XL, UD-Q5\_K\_XL, UD-Q6\_K\_XL, Q8\_0 | +| **Gyro · agentionai** | [Gyro-S, Gyro-M](https://huggingface.co/agentionai/Qwen3.8-Flash-Next-Gyro-GGUF). Zużywa mniej pamięci, ale działa wolniej. | +| **Inne opcje** | [Swift 1.5](docs/MODELS.md#swift-15), [NVFP4](docs/NVFP4.md), [OrcaRouter](docs/ORCA.md) | + +[Porównaj rozmiary, wymagania pamięciowe i zgodność](docs/MODELS.md). + +</details> + +<details> +<summary><img src="docs/media/models/qwen.svg" width="22" alt="" align="middle">  <b>Qwen3.6-35B-A3B</b></summary> + +**Unsloth:** UD-Q4_K_XL, UD-Q6_K_XL, Q8_0. To obecnie udokumentowane pakiety dla tego modelu. + +[Przewodnik po modelu i zgodność](docs/QWEN36.md). + +</details> + +<details> +<summary><img src="docs/media/models/deepseek.svg" width="22" alt="" align="middle">  <b>DeepSeekV4.1-Flash-1017</b></summary> + +W **aplikacji na komputer** i w **Terminalu**. To, co nie mieści się w pamięci, jest czytane z dysku SSD, więc potrzebujesz +dużo wolnego miejsca na dysku. + +| Zestaw (IST-DAS) | Do pobrania | Potrzebne wolne miejsce | +| --- | ---: | ---: | +| 1.75 bpw | 239 GB | około 245 GB | +| 2.00 bpw | 257 GB | około 265 GB | +| 2.25 bpw | 274 GB | około 280 GB | + +Działa na kartach NVIDIA RTX serii 30, 40 i 50 (Windows i Linux), AMD Radeon AI PRO R9700 (Linux) oraz AMD Ryzen AI Max — Strix Halo +(Windows). Instalacja pobiera pliki i silnik DeepSeek, a potem uruchamia model. + +```sh +strata launch --family deepseek41 --model ist-das-2.00bpw --plan +``` + +Zmierzone na zestawie 2.00 bpw w Strata 0.2.5 (Strix Halo: 0.2.7). „Wyjście” to szybkość odpowiedzi, „prompt” — jak szybko Strata czyta twój tekst. + +| Sprzęt | Wyjście | Prompt | +| --- | ---: | ---: | +| RTX 5070 12 GB, 64 GB RAM | 4–6 tokenów/s | około 110 tokenów/s (4K) | +| RTX 3060 12 GB, 46 GB RAM | 9–11 tokenów/s | około 155 tokenów/s (4K) | +| 1x Radeon AI PRO R9700, 251 GB RAM | 21–25 tokenów/s | 320–360 tokenów/s (8K) | +| 4x Radeon AI PRO R9700 | 74–77 tokenów/s | 400–450 tokenów/s (8K) | +| Ryzen AI Max+ 395 (Strix Halo), 128 GB pamięci współdzielonej | 19–21 tokenów/s (kod), 11 (czat) | 87 tokenów/s (4K), 125 tokenów/s (8K) | + +[Pamięć, dysk i szczegóły](docs/DEEPSEEK41.md) · [Informacje o wydaniach](https://github.com/Niko1221/Strata/releases) + +</details> + +<a id="the-other-sizes"></a> + +Nie wiesz, co się zmieści? [Wybierz model do swojego komputera](docs/MODELS.md#pick-by-memory). + +## Instalacja + +<a id="option-a-the-strata-app"></a> + +### Aplikacja na komputer + +**[Pobierz Stratę dla Windows, Linuxa lub Maca →](https://github.com/Niko1221/Strata/releases/latest)** + +Zainstaluj aplikację, wybierz model i zacznij rozmawiać. Dla każdego systemu jest jeden instalator. Przy pierwszym +uruchomieniu aplikacja pobiera silnik dla twojej karty graficznej. [Pomoc z instalatorem](docs/INSTALL.md#the-app). + +<sub>Pliki: `Strata-0.2.6-windows-x64-setup.exe` · `Strata-0.2.6-linux-x86_64.AppImage` · `Strata-0.2.6-macos-arm64.dmg`</sub> + +<p align="center"> + <img src="docs/media/app-chat.png" width="900" alt="Aplikacja Strata na komputer: czat i podgląd kodu na żywo obok siebie"> + <br><sub>Czat, pliki i podgląd na żywo w jednym oknie.</sub> +</p> + +<a id="option-b-the-terminal-one-line"></a> + +### Aplikacja Terminal + +Wolisz terminal? Zainstaluj Stratę, a potem uruchom **`strata launch`**. + +<details open> +<summary><b>Polecenia instalacji</b></summary> + +**Linux / Mac** + +```sh +curl -fsSL https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh +``` + +**Windows PowerShell** + +```powershell +irm https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex +``` + +W Windows otwórz potem nowe okno terminala. Następnie: + +```sh +strata launch +``` + +Postępuj zgodnie z podpowiedziami, aby pobrać i uruchomić model. [Przewodnik po Terminalu](docs/TERMINAL_LAUNCH.md). + +</details> + +<p align="center"> + <img src="docs/media/terminal-monitor.png" width="900" alt="Aplikacja Terminal Straty pokazująca aktywność modelu, szybkość, pamięć i ostatnie zapytania"> + <br><sub>Obserwuj model i sprzęt w trakcie pracy.</sub> +</p> + +<a id="build-from-source"></a> + +[Budowanie ze źródeł](docs/SOURCE_INSTALL.md) · [Docker](docs/DOCKER.md) · [Pełny przewodnik instalacji](docs/INSTALL.md) + +<a id="what-you-need"></a> + +## Sprzęt + +| Obsługiwany sprzęt | Przewodnik | +| --- | --- | +| **NVIDIA GeForce RTX serii 20 / 30 / 40 / 50** | [Konfiguracja NVIDIA](docs/INSTALL.md#what-you-need) | +| **AMD Radeon RX 7700 / 7800 / 7900, RX 9060 / 9070, AI PRO R9700** | [Konfiguracja AMD](docs/AMD_HIP.md) | +| **AMD Radeon RX 6800 / 6900 · eksperymentalnie** | [Konfiguracja RX 6000](docs/AMD_HIP.md#rdna2-gfx1030) | +| **Intel Arc · Linux** | [Konfiguracja Intel](docs/INTEL_ARC.md) | +| **Apple Silicon · M1 lub nowszy** | [Konfiguracja Mac](docs/MAC.md) | +| **AMD Ryzen AI Max · Strix Halo** | [Konfiguracja Strix Halo](docs/STRIX_HALO.md) | + +<a id="using-it"></a> + +## Narzędzia + +**Claude Code · Codex CLI · OpenCode · oh-my-pi · pi.dev · Hermes Agent · OpenClaw** i inne — przez API zgodne z OpenAI i Anthropic. + +Uruchom **`strata connect`**, aby zobaczyć instrukcję konfiguracji dla swojego narzędzia. [Przewodnik po połączeniach](docs/TERMINAL_LAUNCH.md#connect-your-apps-strata-connect). + +<a id="guides"></a> +<a id="how-fast-is-it"></a> +<a id="how-does-it-work"></a> +<a id="something-went-wrong"></a> + +## Pomoc + +[Wszystkie przewodniki](docs) · [Rozwiązywanie problemów](docs/TROUBLESHOOTING.md) · [Zgłoś błąd](https://github.com/Niko1221/Strata/issues/new/choose) · +[Testy wydajności](docs/COMMUNITY_BENCHMARKS.md) · [Jak to działa](docs/HOW_IT_WORKS.md) · [Współtworzenie](CONTRIBUTING.md) + +## Wesprzyj Stratę + +**Pomóż zachować lokalną sztuczną inteligencję otwartą dla wszystkich.** Kawa pomaga finansować rozwój i testy na większej liczbie sprzętu. + +<a href="https://buymeacoffee.com/strataengine"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me a Coffee: wesprzyj Stratę" height="48"></a> + +[Licencja MIT](LICENSE) · [Podziękowania i licencje modeli](docs/HOW_IT_WORKS.md#credits) · [Prywatność](docs/SAFETY.md) + +<a id="option-c-let-your-ai-set-it-up"></a> + +<sub>Dla narzędzi AI i automatycznych czytników: <a href="AGENTS.md">dokumentacja techniczna</a> · <a href="docs/AI_SETUP.md">instrukcja instalacji</a>.</sub> + +**Sponsoring, partnerstwa sprzętowe i współpraca:** [niko.veit@outlook.com](mailto:niko.veit@outlook.com). diff --git a/README.pt-BR.md b/README.pt-BR.md index bcc2796e..68556d00 100644 --- a/README.pt-BR.md +++ b/README.pt-BR.md @@ -20,7 +20,7 @@ <a href="https://buymeacoffee.com/strataengine"><img src="https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buymeacoffee&logoColor=000" alt="Apoie o Strata no Buy Me a Coffee"></a> </p> -<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <b>Português</b></sub></p> +<p align="center"><sub><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <b>Português</b> · <a href="README.pl.md">Polski</a></sub></p> **Gratuito, de código aberto e seu para executar.** Use o Strata no desktop ou com suas ferramentas de programação favoritas. Não precisa de conta. diff --git a/README.zh-CN.md b/README.zh-CN.md index 4c716fe7..b21e8e80 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -20,7 +20,7 @@ <a href="https://buymeacoffee.com/strataengine"><img src="https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buymeacoffee&logoColor=000" alt="在 Buy Me a Coffee 上支持 Strata"></a> </p> -<p align="center"><sub><a href="README.md">English</a> · <b>简体中文</b> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a></sub></p> +<p align="center"><sub><a href="README.md">English</a> · <b>简体中文</b> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <a href="README.pl.md">Polski</a></sub></p> **免费、开源,由你自己运行。** 在桌面上使用 Strata,或搭配你喜欢的编程工具。无需账号。 diff --git a/tests/terminal/test_tui2_023_versions.py b/tests/terminal/test_tui2_023_versions.py index 0c792fcb..6d73bfdf 100644 --- a/tests/terminal/test_tui2_023_versions.py +++ b/tests/terminal/test_tui2_023_versions.py @@ -39,7 +39,7 @@ class VersionBump(unittest.TestCase): def test_the_documents_that_state_the_current_version_agree(self): self.assertIn("Version 0.2.6, engine 0.1.51.", (ROOT / "AGENTS.md").read_text(encoding="utf-8")) - for name in ("README.md", "README.de.md", "README.es.md", "README.fr.md", "README.ja.md", "README.pt-BR.md", "README.zh-CN.md"): + for name in ("README.md", "README.de.md", "README.es.md", "README.fr.md", "README.ja.md", "README.pl.md", "README.pt-BR.md", "README.zh-CN.md"): text = (ROOT / name).read_text(encoding="utf-8") self.assertRegex(text, r"Strata-0[.]2[.][0-9]+-", name) # (the restyled READMEs state the app version through the download buttons; their owner moves them to the release) self.assertNotIn("Strata-0.2.2-", text, name) From 2b9869eddf0ed50262098584446dbf734582ad15 Mon Sep 17 00:00:00 2001 From: Niko1221 <Niko1221@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:59:54 +0100 Subject: [PATCH 52/52] Web chat page: French (#3970) serve/web/locales/fr.json (247 keys, plurals one/other, same terms as the app catalog) and the French line in serve/web/i18n.js. tools/web_i18n.py and serve/test_web_i18n.py (node and python) pass. --- serve/web/i18n.js | 2 +- serve/web/locales/fr.json | 264 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 265 insertions(+), 1 deletion(-) create mode 100644 serve/web/locales/fr.json diff --git a/serve/web/i18n.js b/serve/web/i18n.js index 81defdbb..bdcebd7f 100644 --- a/serve/web/i18n.js +++ b/serve/web/i18n.js @@ -12,7 +12,7 @@ "use strict"; (function (root) { // [code, the language's own name]. A new language is a locales/<code>.json file plus one line here. - const LANGUAGES = [["en", "English"], ["de", "Deutsch"], ["es", "Español"], ["ja", "日本語"], ["ko", "한국어"], + const LANGUAGES = [["en", "English"], ["de", "Deutsch"], ["fr", "Français"], ["es", "Español"], ["ja", "日本語"], ["ko", "한국어"], ["pt", "Português"], ["ru", "Русский"], ["zh", "中文"]]; let lang = "en", catalog = null, rules = null; diff --git a/serve/web/locales/fr.json b/serve/web/locales/fr.json new file mode 100644 index 00000000..7bbb7616 --- /dev/null +++ b/serve/web/locales/fr.json @@ -0,0 +1,264 @@ +{ + "branch.back": "Y retourner", + "branch.from": "Créée à partir de « {title} »", + "branch.open": "Ouvrir l’originale", + "branch.started": "Branche créée", + "branch.startedText": "La conversation où vous étiez reste inchangée, dans la liste à gauche.", + "branch.title": "Branche de {title}", + "busy.stillWriting": "Écriture en cours", + "busy.stopFirst": "Arrêtez d’abord la réponse.", + "cancel": "Annuler", + "chat.clearedToast": "La dernière a été effacée.", + "chat.copy": "Copier", + "chat.copyAnswer": "Copier la réponse", + "chat.deleted": "Conversation supprimée", + "chat.empty": "Posez n’importe quelle question", + "chat.emptyModel": "{model} tourne sur ce PC. Rien n’en sort.", + "chat.image": "image", + "chat.interrupted": "Interrompue", + "chat.interruptedLower": "interrompue", + "chat.new": "Nouvelle conversation", + "chat.newToast": "Nouvelle conversation", + "chat.newToastText": "Celle où vous étiez est dans la liste à gauche.", + "chat.projectionOff": "projection désactivée", + "chat.projectionOn": "projection activée", + "chat.stopped": "Arrêtée", + "chat.stoppedLower": "arrêtée", + "chat.tokens": "{n} tokens", + "chat.toolCalls": { + "one": "{n} appel d’outil", + "other": "{n} appels d’outils" + }, + "chat.toolLimit": "arrêtée à la limite de {n} tours d’outils (mcp.max_rounds)", + "chat.untitled": "Nouvelle conversation", + "chat.you": "Vous", + "close": "Fermer", + "code.copy": "Copier le code", + "code.label": "code", + "composer.attach": "Joindre un fichier texte (ou le déposer ici)", + "composer.attachLabel": "Joindre un fichier", + "composer.attachPictures": "Joindre un fichier texte ou une image (ou la déposer ici)", + "composer.finishOpen": "Enregistrez ou annulez ce qui est ouvert au-dessus pour continuer", + "composer.hintInterject": "Entrée arrête la réponse ici et envoie tout de suite", + "composer.hintQueue": "Entrée envoie quand la réponse est terminée", + "composer.message": "Message", + "composer.newline": "Maj+Entrée : nouvelle ligne", + "composer.placeholder": "Posez une question…", + "composer.save": "Enregistrer cette conversation en Markdown", + "composer.saveLabel": "Enregistrer cette conversation", + "composer.send": "Envoyer", + "composer.stop": "Arrêter", + "drawer.apply": "Appliquer", + "drawer.busy": "Quand vous envoyez pendant qu’il répond", + "drawer.busyInterject": "Interrompre", + "drawer.busyInterjectNote": "La réponse s’arrête là où elle est (ce qui est écrit reste) et votre message part tout de suite. Un outil en cours se termine d’abord.", + "drawer.busyQueue": "Envoyer après", + "drawer.busyQueueNote": "Votre message attend et part dès que la réponse est terminée.", + "drawer.busyWait": "Attendre", + "drawer.busyWaitNote": "Envoyer est désactivé jusqu’à la fin de la réponse, comme avant.", + "drawer.chats": "Conversations", + "drawer.edit": "Modifier et revenir en arrière dans les messages", + "drawer.editNote": "modifier une réponse, en demander une nouvelle, ou revenir à un message précédent (avec Annuler)", + "drawer.greedy": "0 · glouton", + "drawer.high": "Élevé", + "drawer.list": "Liste des conversations enregistrées", + "drawer.listNote": "garde chaque conversation dans une liste à gauche, dans ce navigateur seulement. Désactivé : une seule conversation, comme avant", + "drawer.low": "Faible", + "drawer.math": "Afficher les maths", + "drawer.mathNote": "dessiner les équations des réponses sous forme de formules (fonctionne hors ligne)", + "drawer.maxTokens": "Tokens max.", + "drawer.maxTokensNote": "vide = jusqu’à la fin", + "drawer.mcp": "Utiliser les outils des serveurs MCP", + "drawer.medium": "Moyen", + "drawer.off": "Désactivé", + "drawer.random": "Aléatoire", + "drawer.reset": "Réinitialiser", + "drawer.saved": "Réglages de la conversation enregistrés", + "drawer.savedGreedy": "Glouton : la même question donne la même réponse.", + "drawer.savedHere": "Enregistré ici, mais pas pour les autres applications", + "drawer.savedOwn": "Les autres applications réutilisent leurs propres réglages.", + "drawer.savedShared": "Les autres applications (omp, clients API) utilisent ces réglages dès leur prochaine requête.", + "drawer.seed": "Graine", + "drawer.seedNote": "vide = aléatoire", + "drawer.share": "Utiliser aussi pour les autres applications", + "drawer.shareNote": "omp et les autres clients API reçoivent ces réglages pour tout ce qu’ils ne définissent pas eux-mêmes", + "drawer.short": "Réglages", + "drawer.showThinking": "Afficher la réflexion", + "drawer.showThinkingNote": "déployée pendant la diffusion", + "drawer.temperature": "Température", + "drawer.temperatureNote": "0 = toujours le mot le plus probable (exact, reproductible)", + "drawer.thinkHigh": "approfondie (par défaut)", + "drawer.thinkLow": "courte", + "drawer.thinkMedium": "moyenne", + "drawer.thinkNone": "répond tout de suite", + "drawer.thinking": "Réflexion", + "drawer.title": "Réglages de la conversation", + "drawer.untilDone": "Jusqu’à la fin", + "export.nothing": "Rien à enregistrer pour l’instant", + "file.big": "Fichier trop volumineux", + "file.bigText": "{name} dépasse 512 Ko.", + "file.binaryText": "{name} ressemble à un fichier binaire.", + "file.notText": "Ce n’est pas un fichier texte", + "file.notTextOnly": "{name} : joignez des fichiers texte (code, notes, journaux, données).", + "file.notTextPictures": "{name} : joignez des fichiers texte (code, notes, journaux, données) ou des images.", + "file.pasted": "image collée", + "file.pictureBig": "Image trop volumineuse", + "file.pictureBigText": "{name} dépasse 20 Mo.", + "file.picturesOff": "Les images sont désactivées", + "file.picturesOffText": "Ce modèle a été configuré pour le texte seul.", + "file.remove": "Retirer", + "group.month": "30 derniers jours", + "group.older": "Plus anciennes", + "group.today": "Aujourd’hui", + "group.week": "7 derniers jours", + "group.yesterday": "Hier", + "hist.editAnswer": "Modifier la réponse", + "hist.editAnswerTitle": "Corrigez le texte de la réponse. Aucune requête n’est envoyée.", + "hist.editLabel": "Modifier la réponse", + "hist.editNote": "L’ancienne réflexion et les anciens appels d’outils de la réponse sont retirés. Aucune requête n’est envoyée.", + "hist.editRemoves": { + "one": "Enregistrer masque le message qui la suit. ", + "other": "Enregistrer masque les {n} messages qui la suivent. " + }, + "hist.edited": "Modifiée", + "hist.editedHidden": { + "one": "Réponse modifiée, {n} message masqué", + "other": "Réponse modifiée, {n} messages masqués" + }, + "hist.editedOnly": "Réponse modifiée", + "hist.empty": "La réponse est vide", + "hist.emptyText": "Écrivez quelque chose avant d’enregistrer.", + "hist.finishFirst": "Terminez d’abord ce qui est ouvert", + "hist.finishFirstText": "Enregistrez-le ou appuyez sur Annuler.", + "hist.hidden": { + "one": "{n} message masqué", + "other": "{n} messages masqués" + }, + "hist.lostText": "Ce navigateur a gardé leurs noms, pas leur contenu. Ouvrez une nouvelle conversation et joignez-les à nouveau.", + "hist.lostText2": "Ce navigateur a gardé leurs noms, pas leur contenu. Joignez-les à nouveau.", + "hist.lostTitle": "Les pièces jointes doivent être ajoutées à nouveau", + "hist.nothingHidden": "De retour à ce message", + "hist.pendingFirst": "Un message attend", + "hist.pendingFirstText": "Envoyez-le ou reprenez-le d’abord.", + "hist.regenerate": "Régénérer", + "hist.regenerateTitle": "Demander une nouvelle réponse à cette question. Les outils peuvent se relancer.", + "hist.replaced": "La réponse a été remplacée", + "hist.rewind": "Revenir ici", + "hist.rewindTitle": "Revenir à ce point de la conversation", + "hist.save": "Enregistrer", + "math.source": "Source mathématique ({reason})", + "model.alreadyUnloaded": "Déjà déchargé", + "model.busy": "Le modèle est occupé", + "model.confirmUnload": "Décharger le modèle et libérer le GPU ? Charger, ou le prochain message, le ramène.", + "model.fewMinutes": "Cela peut prendre quelques minutes.", + "model.gpuFree": "Le GPU est libre. Charger, ou le prochain message, le ramène.", + "model.gpuInUse": "Le GPU est utilisé.", + "model.imageBusy": "Une image est en cours de génération. Elle se termine toute seule.", + "model.imageLoading": "Une image charge déjà le modèle", + "model.imageLoadingDot": "Une image charge déjà le modèle.", + "model.load": "Charger", + "model.loadFailed": "Échec du chargement", + "model.loadTitle": "Charger le modèle maintenant. Un message le charge aussi.", + "model.loaded": "Modèle chargé", + "model.loading": "Chargement…", + "model.loadingTitle": "Le modèle se charge", + "model.loadingToast": "Chargement du modèle", + "model.noAnswer": "Le serveur n’a pas répondu.", + "model.replyLoading": "Une réponse charge déjà le modèle", + "model.replyLoadingDot": "Une réponse charge déjà le modèle.", + "model.stopFirst": "Arrêtez la réponse, puis déchargez", + "model.stopFirstDot": "Arrêtez la réponse, puis déchargez.", + "model.unload": "Décharger", + "model.unloadFailed": "Échec du déchargement", + "model.unloadTitle": "Décharger le modèle et libérer le GPU", + "model.unloaded": "Modèle déchargé", + "model.unloading": "Déchargement…", + "model.unloadingTitle": "Le modèle se décharge", + "model.unsupported": "Le déchargement n’est pas disponible", + "model.waiting": "En attente du serveur", + "pending.afterTool": "Attente de la fin de l’outil, puis envoi : « {text} »", + "pending.cutting": "Arrêt de la réponse, puis envoi : « {text} »", + "pending.one": "Un message attend déjà", + "pending.oneText": "Reprenez-le ou attendez qu’il soit envoyé.", + "pending.queued": "Part quand cette réponse est terminée : « {text} »", + "pending.ready": "Pas encore envoyé : « {text} »", + "pending.send": "Envoyer", + "pending.sendNow": "Envoyer maintenant", + "pending.takeBack": "Reprendre", + "pill.connecting": "Connexion…", + "pill.generating": "Génération · {rate} tok/s", + "pill.idle": "Inactif", + "pill.image": "Génération de l’image…", + "pill.keyNeeded": "Clé API requise", + "pill.queued": "{n} en attente", + "pill.reading": "Lecture du prompt", + "pill.readingPct": "Lecture du prompt · {pct} %", + "pill.unloaded": "Déchargé", + "pill.unreachable": "Serveur injoignable", + "preview.confirm": "Exécuter ce code avec ses scripts ?\n\nIl s’exécute dans votre navigateur, coupé de cette conversation et du réseau, mais il peut quand même bloquer l’onglet, et c’est du code écrit par le modèle.\n\nSeulement ce bloc, et seulement jusqu’à la fermeture de l’aperçu.", + "preview.runScripts": "Exécuter les scripts", + "preview.showCode": "Afficher le code", + "preview.showPage": "Afficher un aperçu de la page", + "preview.showSvg": "Afficher un aperçu de l’image", + "preview.stopScripts": "Arrêter les scripts", + "preview.titlePage": "Aperçu de la page", + "preview.titleSvg": "Aperçu de l’image", + "rewind.branch": "Créer une branche ici", + "rewind.branchAnswerText": "Ouvre une nouvelle conversation avec les messages jusqu’à cette réponse. Cette conversation reste telle quelle.", + "rewind.branchUserText": "Ouvre une nouvelle conversation avec les messages avant celui-ci, et place votre message dans sa zone de saisie. Cette conversation reste telle quelle.", + "rewind.hereAnswer": "Continuer à partir d’ici", + "rewind.hereAnswerText": "Masque les messages après cette réponse. Annuler les ramène.", + "rewind.hereUser": "Modifier et renvoyer ici", + "rewind.hereUserText": "Masque ce message et ceux qui le suivent, et place votre message dans la zone ci-dessous. Annuler les ramène.", + "rewind.noList": "Pour plutôt ouvrir une nouvelle conversation à partir d’ici, activez Conversations enregistrées dans les réglages de la conversation.", + "rewind.title": "Revenir ici", + "settings.language": "Langue", + "settings.languageNote": "La conversation, ses réglages et les boutons ci-dessus sont traduits. Les vues Moniteur, Images et À propos sont encore en anglais.", + "sidebar.collapse": "Réduire la liste des conversations", + "sidebar.delete": "Supprimer cette conversation", + "sidebar.deleteShort": "Supprimer", + "sidebar.expand": "Ouvrir la liste des conversations", + "sidebar.foot": { + "one": "{n} conversation · gardée dans ce navigateur", + "other": "{n} conversations · gardées dans ce navigateur" + }, + "sidebar.nameFor": "Nom de cette conversation", + "sidebar.noMatch": "Aucune conversation ne correspond", + "sidebar.none": "Aucune conversation pour l’instant", + "sidebar.rename": "Renommer cette conversation", + "sidebar.renameShort": "Renommer", + "sidebar.search": "Rechercher dans les conversations", + "sidebar.title": "Conversations", + "store.failed": "La liste des conversations n’a pas pu être enregistrée. Les conversations à l’écran y sont toujours.", + "store.memory": "Ce navigateur ne gardera pas la liste des conversations. Elle reste en mémoire jusqu’à la fermeture de la page.", + "store.quota": "Ce navigateur ne peut pas en garder plus. Les conversations à l’écran y sont toujours.", + "store.title": "Liste des conversations non enregistrée", + "tab.about": "À propos", + "tab.chat": "Chat", + "tab.images": "Images", + "tab.monitor": "Moniteur", + "tab.views": "Vues", + "theme.label": "Basculer entre clair et sombre", + "theme.title": "Clair / sombre", + "think.done": "Réflexion", + "think.for": "A réfléchi pendant {s} s", + "think.now": "Réflexion…", + "toast.copied": "Copié dans le presse-papiers", + "toast.engineError": "le moteur a signalé une erreur", + "toast.httpAnswer": "Le serveur a répondu HTTP {code}.", + "toast.keyAbout": "Ce serveur a besoin d’une clé : ajoutez-la dans À propos > Paramètres.", + "toast.keyAbout2": "Clé API requise : ajoutez-la dans À propos > Paramètres.", + "toast.keyNeeded": "Ce serveur a besoin d’une clé API : ajoutez-la dans À propos > Paramètres.", + "toast.requestFailed": "La requête a échoué", + "tool.arguments": "Arguments", + "tool.beingWritten": "(en cours d’écriture)", + "tool.chars": "{n} caractères", + "tool.cut": ", coupé pour le modèle", + "tool.done": "Terminé", + "tool.error": "Erreur", + "tool.result": "Résultat", + "tool.running": "En cours", + "tool.skipped": "Non exécuté", + "tool.writing": "Écriture", + "undo": "Annuler" +}