diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..0ada2152 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,57 @@ +name: Deploy website to GitHub Pages + +on: + push: + branches: [master] + paths: + - 'website/**' + - '.github/workflows/pages.yml' + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: github-pages + cancel-in-progress: false + +jobs: + build: + if: github.ref == 'refs/heads/master' + runs-on: ubuntu-latest + defaults: + run: + working-directory: website + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Set up Node.js + uses: actions/setup-node@v6 + with: + node-version: '24' + cache: npm + cache-dependency-path: website/package-lock.json + - name: Configure GitHub Pages + uses: actions/configure-pages@v5 + - name: Install dependencies + run: npm ci + - name: Build website + run: npm run build + - name: Upload website artifact + uses: actions/upload-pages-artifact@v4 + with: + path: website/dist + + deploy: + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/README.md b/README.md index a1b9771f..6dba02a7 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ Dr. MAS: Stable Reinforcement Learning for Multi-Agent LLM Systems

+ +Project Page + arXiv Paper @@ -30,6 +33,8 @@ Dr. MAS: Stable Reinforcement Learning for Multi-Agent LLM Systems

+The project-page source and visual previews are available in [website/](./website/README.md). + `Dr.MAS` is designed for **end-to-end post-training** of **Multi-Agent LLM Systems** via **Reinforcement Learning (RL)**, enabling multiple LLM-based agents to collaborate on complex reasoning and decision-making tasks. This framework features **flexible agent registry**, **customizable multi-agent orchestration**, **LLM sharing/non-sharing (e.g., heterogeneous LLMs)**, **per-agent configuration**, and **shared resource pooling**, making it well suited for training multi-agent LLM systems with RL. diff --git a/website/.gitignore b/website/.gitignore new file mode 100644 index 00000000..bf3f731f --- /dev/null +++ b/website/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +test-results/ +playwright-report/ +.DS_Store diff --git a/website/README.md b/website/README.md new file mode 100644 index 00000000..a704f53d --- /dev/null +++ b/website/README.md @@ -0,0 +1,30 @@ +# Dr. MAS Project Page + +Project page for **Dr. MAS: Stable Reinforcement Learning for Multi-Agent LLM +Systems**, built with HTML, CSS, JavaScript, Vite, and build-time KaTeX. + +## Local Preview + +Requires Node.js 22.12+. + +```bash +cd website +npm ci +npm run dev +``` + +## Build + +```bash +npm run build +npm run preview +``` + +`dist/` is the deployable static site. Relative asset paths support GitHub Pages +at . Pushing this review branch does not deploy it. + +Edit page content in `index.html` and `src/`. Display equations use `$$...$$` +inside `data-math` elements and are rendered during the build. + +The supplied manuscript is kept once at [public/paper.pdf](public/paper.pdf). +Figures are from the paper; fonts and their licenses are bundled locally. diff --git a/website/index.html b/website/index.html new file mode 100644 index 00000000..3b4c0876 --- /dev/null +++ b/website/index.html @@ -0,0 +1,397 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Dr. MAS | Stable Reinforcement Learning for Multi-Agent LLM Systems + + + + + +
+
+ +
+
Multi-agent reinforcement learning
+

Dr. MASStable Reinforcement Learning
for Multi-Agent LLM Systems

+

NeurIPS 2026

+ +

Nanyang Technological University, Singapore

+ + + +
+
01 Algorithmic stability02 System-level flexibility
+ +
Figure 1 A simple change in the learning signal, paired with a framework built for multiple LLM actors.
+
+
+
+ +
+
+5.6%

Better math reasoning

Relative avg@16 improvement

+
+15.2%

Stronger multi-turn search

Relative avg@16 improvement

+

Relative performance gains over multi-agent GRPO, as reported in the paper. See experimental results for settings.

+
+ +
+
01 / Overview

Collaboration needs
a better learning signal.

+
+
+ Abstract +

Multi-agent LLM systems improve reasoning and tool use via role specialization, yet reinforcement learning (RL) post-training for such systems remains unstable and underexplored. We theoretically pinpoint a key source of instability when extending group-based RL to cooperative multi-agent LLM systems: under GRPO-style optimization, a global normalization baseline can mismatch heterogeneous agents' reward distributions, inducing gradient-norm instability.

+

Based on this finding, we propose Dr. MAS, a simple and stable RL recipe for cooperative multi-agent LLM systems. Algorithmically, Dr. MAS normalizes advantages per agent using each agent's own reward statistics, which calibrates gradient scales and dramatically stabilizes the training. Systemically, Dr. MAS provides an end-to-end multi-agent RL framework with scalable orchestration, flexible per-agent LLM serving and optimization, and shared resource scheduling of actor backends.

+
Read the full abstract

Unlike single-actor frameworks such as veRL, Dr. MAS natively supports multiple heterogeneous LLMs over a unified GPU pool. Lifecycle-aware backend management and dynamic dispatch release inactive models' GPU memory and schedule active agents on demand, enabling hardware-efficient co-training. We evaluate Dr. MAS on multi-agent math reasoning and multi-turn search with Qwen2.5 and Qwen3. Dr. MAS achieves clear gains over vanilla GRPO (e.g., +5.6% avg@16 and +4.6% pass@16 on math, and +15.2% avg@16 and +13.1% pass@16 on search) while largely eliminating gradient spikes. It also remains highly effective under heterogeneous agent-model assignments while improving efficiency.

+
+
+
01

Understand the instability

A theoretical analysis connects mismatched global reward statistics to inflated per-agent gradient norms.

+
02

Calibrate every agent

Agent-wise advantage normalization aligns update scales with each role's own reward distribution.

+
03

Train as one system

Flexible orchestration, per-model optimization, and lifecycle-aware scheduling in a unified GPU pool.

+
+
+
+ +
+
+
02 / Theory & Method

Find the instability.
Then remove the mismatch.

A theoretical diagnosis.
A one-line change to normalization.

+
+
4.1 / Risk of Gradient Norm Explosion

The instability has a precise scaling law.

Proof in Appendix B
+

Following the paper's notation, the score function and unclipped gradient contribution for an active agent are:

+
+
$$ z_{i,t}^{(k)} \triangleq \nabla_{\theta_k}\rho_{\theta_k}(\bm{a}_t^i) $$
+
$$ \tilde{g}_k^{\mathrm{global}} \triangleq \frac{R^i-\mu}{\sigma}\,z_{i,t}^{(k)} $$
+
+

Expectations sample outputs uniformly from \(\mathcal{Y}_k\), the steps where agent \(k\) is active. Assumption 4.1 bounds the score second moment: \(0\leq\mathbb{E}[\|z_{i,t}^{(k)}\|^2]\leq C_k\lt\infty\).

+
+
Lemma 4.2

The gradient second moment

Agent-active reward statistics determine the multiplicative scale; \(\Delta_k\) retains score-reward dependence.

+
$$ \mathbb{E}_{\bm{a}_t^i\sim\mathcal{Y}_k}\!\left[\|\tilde{g}_k^{\mathrm{global}}\|^2\right]=\mathbb{E}_{\bm{a}_t^i\sim\mathcal{Y}_k}\!\left[\|z_{i,t}^{(k)}\|^2\right]\,\frac{\sigma_k^2+(\mu_k-\mu)^2}{\sigma^2}+\Delta_k $$
+
+
+ See the three-step proof +

Appendix B.1 expands the reward about the agent-active mean, then uses the covariance identity. No independence assumption is needed.

+
    +
  1. Center the reward on the active agent.

    Rewrite the trajectory reward using the same \(R^i,\mu,\mu_k\) as the paper.

    $$ R^i-\mu=(R^i-\mu_k)+(\mu_k-\mu) $$
  2. +
  3. The cross term vanishes.

    Under uniform sampling from \(\mathcal{Y}_k\), the centered reward has zero mean. Its second moment is:

    $$ \mathbb{E}_{\bm{a}_t^i\sim\mathcal{Y}_k}\!\left[(R^i-\mu)^2\right]=\sigma_k^2+(\mu_k-\mu)^2 $$
  4. +
  5. Keep the covariance correction.

    Factor the score and normalized-reward second moments, retaining their covariance. Substitution gives Lemma 4.2 exactly.

    $$ \Delta_k=\operatorname{Cov}\!\Big(\|z_{i,t}^{(k)}\|^2,\frac{(R^i-\mu)^2}{\sigma^2}\Big) $$
  6. +
+

The identity requires finite moments and a nonzero normalization standard deviation. It concerns the unclipped, per-active-output gradient contribution, not the norm of an averaged minibatch update.

+
+
+
Proposition 4.3 / Gradient-Norm Inflation

Large mean offsets or variance ratios can amplify gradients.

A larger mean offset or variance ratio increases the multiplicative term. A smaller global standard deviation magnifies both.

+
$$ \frac{\sigma_k^2+(\mu_k-\mu)^2}{\sigma^2}=\underbrace{\frac{\sigma_k^2}{\sigma^2}}_{\text{variance mismatch}}+\underbrace{\frac{(\mu_k-\mu)^2}{\sigma^2}}_{\text{mean mismatch}} $$
+

Along training iterations \(m\), if the score and covariance do not cancel this growth:

$$ \frac{\sigma_{k,m}^2+(\mu_{k,m}-\mu_m)^2}{\sigma_m^2}\to\infty\quad\Longrightarrow\quad\mathbb{E}[\|\tilde{g}_m^{\mathrm{global}}\|^2]\to\infty $$

Here \(\tilde{g}_m^{\mathrm{global}}\) stacks all agents' gradients. One diverging component is enough.

+

As qualified in Appendix B.2, divergence follows when the growing factor is not cancelled by the score second moment or covariance correction. A growing factor alone is not an unconditional guarantee of gradient divergence.

+
+
+ + + + +
4.2 / Agent-Wise Remedy

Change the statistics.
Keep the objective.

Replace \((\mu,\sigma)\) with \((\mu_k,\sigma_k)\). The multiplicative term becomes exactly 1, giving Eq. (6):

$$ \mathbb{E}_{\bm{a}_t^i\sim\mathcal{Y}_k}\!\left[\|\tilde{g}_k^{\mathrm{agent}}\|^2\right]=\mathbb{E}_{\bm{a}_t^i\sim\mathcal{Y}_k}\!\left[\|z_{i,t}^{(k)}\|^2\right]+\Delta_k^{\mathrm{agent}} $$

This removes the reward-statistics multiplier, not every possible source of gradient instability.

+
+
+
GRPOGlobal baseline
+

The same statistics for every role.

+
+ $$ A_{\mathrm{global}}^{i} = \frac{R^{i} - \mu}{\sigma} $$ +
+

All agents inherit the same normalized advantage, even when their active steps follow different reward distributions.

+
Baseline mismatch can inflate gradient norms.
+
+
+
Dr. MASAgent-wise baseline
+

Each role learns on its own scale.

+
+ $$ A_{\mathrm{agent}}^{i,k} = \frac{R^{i} - \color{#8c569b}{\mu_k}}{\color{#8c569b}{\sigma_k}} $$ +
+

Normalize each agent's advantage with the reward statistics of its own active steps, keeping update scales better calibrated.

+
Agent-wise normalization stabilizes co-training.
+
+
+
+

Statistics that follow the agent.

For the set of outputs \(\mathcal{Y}_k\) where agent \(k\) is active:

+
+
$$ \mu_k \triangleq \frac{1}{|\mathcal{Y}_k|} \sum_{\bm{a}_t^i \in \mathcal{Y}_k} R^i $$
+
$$ \sigma_k^2 \triangleq \frac{1}{|\mathcal{Y}_k|} \sum_{\bm{a}_t^i \in \mathcal{Y}_k} (R^i - \mu_k)^2 $$
+
+

These are action-weighted statistics: a trajectory's reward contributes once for every step in which the agent is active. Section 4.2

+
+
+ Inside the update A shared objective, with agent-specific advantages +
+

As illustrated in Figure 1, the clipped group-relative objective is retained. Dr. MAS replaces the global advantage with \(A_{\mathrm{agent}}^{i,k}\) for each agent.

+
+
+ $$ \mathcal{J}_k(\theta_k) = + \mathbb{E}_{x \sim p(x)}\!\left[ + \frac{1}{|\mathcal{Y}_k|} \sum_{\bm{a}_t^i \in \mathcal{Y}_k} + \min\!\left( + \rho_{\theta_k}(\bm{a}_t^i) A_{\mathrm{agent}}^{i,k},\; + \operatorname{clip}\!\left(\rho_{\theta_k}(\bm{a}_t^i), 1 \pm \epsilon\right) + A_{\mathrm{agent}}^{i,k} + \right) + \right] $$ +
+
+

Scroll horizontally to view the full objective.

+

The importance-sampling ratio is \(\rho_{\theta_k}(\bm{a}_t^i) = \pi_{\theta_k}(\bm{a}_t^i \mid \bm{s}_t^i) / \pi_{\theta_k^{\mathrm{old}}}(\bm{a}_t^i \mid \bm{s}_t^i)\). As in the paper's presentation, the KL regularization term is omitted here for clarity.

+
+
+
+
Training dynamics

Less noise. More learning.

Qwen2.5-3B / Non-sharing
+
Figure 3 from the paper. Agent-wise normalization smooths gradient norms across the three-agent search system.
+
+

Appendix F.2: a more severe failure case at 7B

+

Under Qwen2.5-7B non-sharing, the paper reports a search-agent gradient spike above 80 followed by NaN. The missing orange curve is not a return to zero.

+
Figure 7 / Additional stability evidence, Qwen2.5-7B, non-sharing. Appendix F.2
+
+
+
+
+ +
+
+
03 / Framework

Framework for
Multi-Agent LLM RL

+
+

An end-to-end RL post-training pipeline for cooperative multi-agent LLM systems, from flexible orchestration to per-model updates over a shared GPU pool.

+ +
+
+ +
+ +
Figure 2 / End-to-end architecture From distributed rollout to per-worker-group policy updates.
+
+ +
+
+

Multi-Agent Orchestration

+
+

A multi-agent trajectory collector coordinates interactions between agents and the environment. A pluggable orchestra defines agent roles and execution flows, including sequential collaboration, conditional routing, and per-agent active masking. At each step, it selects the active agent based on the current state and previous agent outputs.

+
+
+ +
Figure 5 / Two evaluated workflows. Appendix C.1
+
+
+
Math: a refinement loop
A solver proposes or revises a solution; a verifier accepts it or requests another round.
+
Search: a verifier-led hierarchy
The verifier invokes search for more evidence, then calls the answer agent when ready.
+
+
+
+
+ +
+

Agent-Model Assignment

+
+

Logical agents are mapped to physical LLM worker groups (wg_id). In non-shared settings, each agent has a distinct worker group. In shared settings, agents configured with the same model use one worker group, reusing its weights for joint training and inference.

+
+
+

Shared LLM Optional

+ + +

Same-model agents reuse one set of weights.

+
+
+

Separate LLMs Optional

+ + +

Independent weights; model choices can differ.

+
+
+
+
+ +
+

Per-Agent Configuration

+
+

Agent-specific training hyperparameters, such as actor.optim.lr, are injected into each agent's configuration and attached to its corresponding LLM worker group.

+

Shared worker group, identical configuration. A runtime check ensures that all agents sharing a worker group use the same configuration.

+
+
+ +
+

Shared GPU Resource Pooling and Scheduling

+
+

Dr. MAS co-locates LLM worker groups in a unified GPU resource pool. ActorRollout backends are scheduled through Ray placement groups and served by SGLang. During rollout, agent_to_wg_mapping routes requests to the corresponding actor_rollout_wg[wg_id] backend.

+
    +
  1. Route

    Dispatch each active agent's generation request to its assigned worker group.

  2. +
  3. resume()

    Load the active backend's model weights and KV caches onto GPU.

  4. +
  5. offload()

    Release inactive backends' GPU memory; models need not all remain resident.

  6. +
+
+
+ +
+

Per-Worker-Group Optimization

+
+

After rollout collection, the trainer partitions the aggregated batch by worker-group ID:

+
$$ \mathcal{B}_{g}=\{\,\tau\in\mathcal{B}\mid\texttt{wg\_id}(\tau)=g\,\} $$
+

Policy updates are performed for each worker group, so gradients from an agent's trajectories update only its designated LLM backend.

+
+
+
+
+ +
+
+
04 / Experiments

Stable training.
Measurable gains.

Two workflows. Four model sizes.
Shared and independent LLM weights.

+ + +
Heterogeneous by design

Different models.
One effective team.

Keep Qwen2.5-7B as the verifier. Use Llama-3.2-3B-Instruct for search and answering. The heterogeneous assignment retains nearly the same benchmark performance as the all-7B team.

Explore heterogeneous assignments
42.0%avg@16

All-7B baseline: 42.5%

57.5%pass@16

All-7B baseline: 57.7%

Figure 4: three-agent multi-turn search, heterogeneous versus all-Qwen2.5-7B model assignment.

+

Scope & limitations. Evaluated on two representative workflows. Dr. MAS does not address every source of multi-agent RL instability, including credit assignment across agents and turns. Generalization to broader architectures and larger models remains open.

+
+
+ +
+
05 / Citation

Build on
this work.

If you find Dr. MAS useful in your research, please consider citing our paper.

Download .bib
+
BibTeX
@article{feng2026dr,
+  title={{Dr. MAS}: Stable reinforcement learning for multi-agent {LLM} systems},
+  author={Feng, Lang and Zheng, Longtao and He, Shuo and Zhang, Fuxiang and An, Bo},
+  journal={arXiv preprint arXiv:2602.08847},
+  year={2026}
+}
+
+
+ + + +
A closer look

Open full-resolution image
+ + + + + diff --git a/website/package-lock.json b/website/package-lock.json new file mode 100644 index 00000000..350b0616 --- /dev/null +++ b/website/package-lock.json @@ -0,0 +1,1192 @@ +{ + "name": "drmas-project-page", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "drmas-project-page", + "version": "1.0.0", + "devDependencies": { + "katex": "^0.16.47", + "vite": "^7.1.7" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@napi-rs/lzma-linux-x64-gnu": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz", + "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^22.20 || ^24.12 || >=25" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.5.tgz", + "integrity": "sha512-J25QJU+B78T4FhhBsNpLJyVWOi31mwtpcMwywHmOKH65Q9IWGA81gPj+dnwlhU8wktVriYE+tFAaQgrnJRzAZg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.63.5.tgz", + "integrity": "sha512-LDopB3zuZM5Ux9TT2luNEBJW/tYbGU2g1d+VpKk6I+gSKDb+/7sYE6M225gRQt4RbMX6MSwMsVR/phdjVUgRLg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.63.5.tgz", + "integrity": "sha512-wlJEERGfeuHeBavCL2qVnNacOK43NDoZM4sjkeRPymd04OAE9T1zBqDJgmZ+CIsPTYKwdzpUC8vmOw84dwY4Tg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.63.5.tgz", + "integrity": "sha512-4nJJGg5jbo2wwPP4JP+LfEBA3bvP8rU9CLuhp7jWvq9sxEyhjQFTFdrqi+/dHEin/pd8jpT0vcehIpnZtmEdcQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.63.5.tgz", + "integrity": "sha512-DrZbyCDF1hneuO6jRbvZ2D7+PIBM6yIwYnJpg2vIk58T+wuFpiaGZrfUr59lDWw45bg+IrpTGLPiNi/Fk4w3Cg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.63.5.tgz", + "integrity": "sha512-gqfUVMJMB3mehqywxp6hTBFfgtMQykZY19+cfiaYP0toIJLb/1DZRJHVkQQGP13W4TAwfZDWeg1qBcheTRioXQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.63.5.tgz", + "integrity": "sha512-CFmhpvAwzSaWMlN3VN7UtmoTihlZNzoP0juQib5TQRnYUyDV8dXeWOp29sobWAT6gXl/hQgAClLlEiYozQG3OQ==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.63.5.tgz", + "integrity": "sha512-Uc9H8eXCOayV6JLTH5bXKMId6qbhNHa818/BgYjm4jrlq3vZquC9cqyvHBw17xy5Mnj5f+I3gFK5JcEf3hSqrw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.63.5.tgz", + "integrity": "sha512-VcPr/szv/1BFw112Kt//fxulXt/JPqzzidU84iW68L2DdjnOO8QFUv2zTSYBEPHD6movBD4z+bbr5y60GYM7Jw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.63.5.tgz", + "integrity": "sha512-BnxtJ5/91BrIHYIkGrmjz/lbMhqEHt1dPFqIxIFR+jPn0xVc/oUSCtIT089zfp5ufwGDlYz2UC+Fe1SRBpYFbQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.63.5.tgz", + "integrity": "sha512-LrYcHZwF+fAMNKHYTOQ5osWM4AZF7YF6D+XtsjDyEvljtt11twc+zHVXBLNEjxVSUnKYsOhvVz4Z213eW02COQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.63.5.tgz", + "integrity": "sha512-nj7QKQePAAUpCpJHtg0pR0W/b92A9NO17JS3BAQmHDn/yhmkir2p8llrKY9TOhleKIaSzy1JhxS3T9FVld6coA==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.63.5.tgz", + "integrity": "sha512-5ylkX6dWMeBKge9nTU+Rxfb+ZfaCIJ9lRqIFaK0eAMcWp7OJbYnLveLgXmm0VrvuLKb8qIK+mHyH0qu88RM+iA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.63.5.tgz", + "integrity": "sha512-oHK4ZHYFDKjZviK34I+NwgfbGxgI7ztrNxj2hPTSSNFgeq1a/lEd7dHV2fdGAuTH4Iym3RHJg+vAbWaWG4B7Zg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.63.5.tgz", + "integrity": "sha512-UcetmHZ6XOXuUByiKZyQmb55ZPr0LABr3Ec/HB9wKZn6CEAFWZkE+hsJErJ9hbPBC7nI0dKuELx7CoV6IM7TMg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.63.5.tgz", + "integrity": "sha512-C5CmDPQBtvjVo8cgQsBs+w6WB0JLkiixhgi6hVLV11hERWdn/p0XcPU2OUcZzac9BPOFq7SbaHFa8r3SWEysCQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.63.5.tgz", + "integrity": "sha512-lHVQHJFKsuuxLMi3MQO9XVL8Tje3JR82CzB+QDKC5NWBcsIWuwsn9uIM5e3lBhI+fF1/s63qnyYqsg65+8rV/w==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.63.5.tgz", + "integrity": "sha512-3W9bTFcQNJn71cSJVM9RKIiZOy8DO/XLDii8Uv/Pm6WKqDRj7JV3ZfuXIEfyuy5LXpIzAbB/1M4Ukp9GKNa7nA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.63.5.tgz", + "integrity": "sha512-VDC7rRJlee/scpki96GZ27Omf6yU87s1YXwVTpjE5841faVlDYYT565rgfmoR1U0sqL7z5ivQSDjcsF6VRXyBA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.63.5.tgz", + "integrity": "sha512-z86Ok2p4pTdv5xqCKZsTooO7yBEiaJR/HzU3Wx8RmWsPoLppnMKROhJusQob8B3IE1ghC343kUW9rC2r+Wf3ig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.63.5.tgz", + "integrity": "sha512-IzQmj+xXwQFGhMAMKMQVXkMwMZN3TqkJgAE0nSsqvVwWWciP4AIPMmWRqOQ2GfX7TUDZr+xqGFcBS36CRPGw0g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.63.5.tgz", + "integrity": "sha512-F6qpTaPc9bwBH85kjy0/BLmLSW1uv7AoOXCoRIkg2arlgCYlWYcAbiMkvZuAcaWk9TpCRG//okznLAqLGshkMw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.63.5.tgz", + "integrity": "sha512-igoDsTFhhwECBeGbUuLeIk7t8Y1apa+cs6mDWpx2EZ0ch7oEQgzHbFUXN9euoHekCAQzXdXApAGkV6jznS7tWw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.63.5.tgz", + "integrity": "sha512-U3teMeMbXFmaM5D+OTJpsOXd+wV/qftIeYF9kBKL4v73641qyJmoXFtA28DQLsnmlyayEsTe72xpLHrArq6vHw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.63.5.tgz", + "integrity": "sha512-ypfC34F3RKXvCXBglGqGMsUSMKlgwd1HX9AOAlx9RoZZ6GaI42YHVeKpzg3JG+wpBUJYTG+NNZhqbDWL8tBZkw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/katex": { + "version": "0.16.47", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", + "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", + "dev": true, + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "license": "MIT", + "dependencies": { + "commander": "^8.3.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/nanoid": { + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.18", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/rollup": { + "version": "4.63.5", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.63.5.tgz", + "integrity": "sha512-KRWwmNLlPw5M7HcdYfm15oBv9n9LPtjzpzCIxS/phwqvPyxHSoKX6Y2YU3pxSPfy0CLquVgsx/j/hBi6OvH1Nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@napi-rs/lzma-linux-x64-gnu": "1.5.1", + "@rollup/rollup-android-arm-eabi": "4.63.5", + "@rollup/rollup-android-arm64": "4.63.5", + "@rollup/rollup-darwin-arm64": "4.63.5", + "@rollup/rollup-darwin-x64": "4.63.5", + "@rollup/rollup-freebsd-arm64": "4.63.5", + "@rollup/rollup-freebsd-x64": "4.63.5", + "@rollup/rollup-linux-arm-gnueabihf": "4.63.5", + "@rollup/rollup-linux-arm-musleabihf": "4.63.5", + "@rollup/rollup-linux-arm64-gnu": "4.63.5", + "@rollup/rollup-linux-arm64-musl": "4.63.5", + "@rollup/rollup-linux-loong64-gnu": "4.63.5", + "@rollup/rollup-linux-loong64-musl": "4.63.5", + "@rollup/rollup-linux-ppc64-gnu": "4.63.5", + "@rollup/rollup-linux-ppc64-musl": "4.63.5", + "@rollup/rollup-linux-riscv64-gnu": "4.63.5", + "@rollup/rollup-linux-riscv64-musl": "4.63.5", + "@rollup/rollup-linux-s390x-gnu": "4.63.5", + "@rollup/rollup-linux-x64-gnu": "4.63.5", + "@rollup/rollup-linux-x64-musl": "4.63.5", + "@rollup/rollup-openbsd-x64": "4.63.5", + "@rollup/rollup-openharmony-arm64": "4.63.5", + "@rollup/rollup-win32-arm64-msvc": "4.63.5", + "@rollup/rollup-win32-ia32-msvc": "4.63.5", + "@rollup/rollup-win32-x64-gnu": "4.63.5", + "@rollup/rollup-win32-x64-msvc": "4.63.5", + "fsevents": "~2.3.2" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/vite": { + "version": "7.3.6", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.6.tgz", + "integrity": "sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0 || ^0.28.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + } + } +} diff --git a/website/package.json b/website/package.json new file mode 100644 index 00000000..114aa490 --- /dev/null +++ b/website/package.json @@ -0,0 +1,15 @@ +{ + "name": "drmas-project-page", + "version": "1.0.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --host 0.0.0.0", + "build": "vite build", + "preview": "vite preview --host 0.0.0.0" + }, + "devDependencies": { + "katex": "^0.16.47", + "vite": "^7.1.7" + } +} diff --git a/website/public/citation.bib b/website/public/citation.bib new file mode 100644 index 00000000..ee6f1e41 --- /dev/null +++ b/website/public/citation.bib @@ -0,0 +1,6 @@ +@article{feng2026dr, + title={{Dr. MAS}: Stable reinforcement learning for multi-agent {LLM} systems}, + author={Feng, Lang and Zheng, Longtao and He, Shuo and Zhang, Fuxiang and An, Bo}, + journal={arXiv preprint arXiv:2602.08847}, + year={2026} +} diff --git a/website/public/favicon.svg b/website/public/favicon.svg new file mode 100644 index 00000000..481aed4e --- /dev/null +++ b/website/public/favicon.svg @@ -0,0 +1 @@ + diff --git a/website/public/figures/framework.png b/website/public/figures/framework.png new file mode 100644 index 00000000..78556d48 Binary files /dev/null and b/website/public/figures/framework.png differ diff --git a/website/public/figures/gradient-failure.png b/website/public/figures/gradient-failure.png new file mode 100644 index 00000000..82eaed53 Binary files /dev/null and b/website/public/figures/gradient-failure.png differ diff --git a/website/public/figures/orchestration.png b/website/public/figures/orchestration.png new file mode 100644 index 00000000..14dfbb6c Binary files /dev/null and b/website/public/figures/orchestration.png differ diff --git a/website/public/figures/overview.png b/website/public/figures/overview.png new file mode 100644 index 00000000..4cc8bce1 Binary files /dev/null and b/website/public/figures/overview.png differ diff --git a/website/public/figures/training-dynamics.png b/website/public/figures/training-dynamics.png new file mode 100644 index 00000000..83d60f7a Binary files /dev/null and b/website/public/figures/training-dynamics.png differ diff --git a/website/public/fonts/DMSans-OFL.txt b/website/public/fonts/DMSans-OFL.txt new file mode 100644 index 00000000..a0eedfbf --- /dev/null +++ b/website/public/fonts/DMSans-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/public/fonts/IBMPlexMono-OFL.txt b/website/public/fonts/IBMPlexMono-OFL.txt new file mode 100644 index 00000000..670c6c04 --- /dev/null +++ b/website/public/fonts/IBMPlexMono-OFL.txt @@ -0,0 +1,93 @@ +Copyright © 2017 IBM Corp. with Reserved Font Name "Plex" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/public/fonts/KaTeX-Fonts-OFL.txt b/website/public/fonts/KaTeX-Fonts-OFL.txt new file mode 100644 index 00000000..6ed9901a --- /dev/null +++ b/website/public/fonts/KaTeX-Fonts-OFL.txt @@ -0,0 +1,101 @@ +KaTeX Font Software + +Copyright (c) 2009-2010, Design Science, Inc. () +Copyright (c) 2014-2018 Khan Academy (), +with Reserved Font Names KaTeX_AMS, KaTeX_Caligraphic, KaTeX_Fraktur, +KaTeX_Main, KaTeX_Math, KaTeX_SansSerif, KaTeX_Script, KaTeX_Size1, +KaTeX_Size2, KaTeX_Size3, KaTeX_Size4, and KaTeX_Typewriter. + +These copyright notices and reserved names are recorded in the bundled +KaTeX font metadata. The software's MIT license is in KaTeX-LICENSE.txt. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/public/fonts/KaTeX-LICENSE.txt b/website/public/fonts/KaTeX-LICENSE.txt new file mode 100644 index 00000000..37c6433e --- /dev/null +++ b/website/public/fonts/KaTeX-LICENSE.txt @@ -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/website/public/fonts/SpaceGrotesk-OFL.txt b/website/public/fonts/SpaceGrotesk-OFL.txt new file mode 100644 index 00000000..d5666d70 --- /dev/null +++ b/website/public/fonts/SpaceGrotesk-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Space Grotesk Project Authors (https://github.com/floriankarsten/space-grotesk) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/public/fonts/dm-sans-latin.woff2 b/website/public/fonts/dm-sans-latin.woff2 new file mode 100644 index 00000000..01383d7e Binary files /dev/null and b/website/public/fonts/dm-sans-latin.woff2 differ diff --git a/website/public/fonts/ibm-plex-mono-latin.woff2 b/website/public/fonts/ibm-plex-mono-latin.woff2 new file mode 100644 index 00000000..0804aaff Binary files /dev/null and b/website/public/fonts/ibm-plex-mono-latin.woff2 differ diff --git a/website/public/fonts/space-grotesk-latin.woff2 b/website/public/fonts/space-grotesk-latin.woff2 new file mode 100644 index 00000000..0f3474ee Binary files /dev/null and b/website/public/fonts/space-grotesk-latin.woff2 differ diff --git a/website/public/paper.pdf b/website/public/paper.pdf new file mode 100644 index 00000000..2cee26b2 Binary files /dev/null and b/website/public/paper.pdf differ diff --git a/website/scripts/render-math.mjs b/website/scripts/render-math.mjs new file mode 100644 index 00000000..4052b6af --- /dev/null +++ b/website/scripts/render-math.mjs @@ -0,0 +1,20 @@ +import katex from 'katex'; + +// Only explicit math elements are transformed; dollar amounts in prose stay intact. +export function renderMath(html) { + return html.replace(/<(div|span)\b([^>]*\bdata-math\b[^>]*)>([\s\S]*?)<\/\1>/g, (_, tag, attributes, content) => { + const source = content.trim(); + const display = source.startsWith('$$') && source.endsWith('$$'); + const inline = source.startsWith('\\(') && source.endsWith('\\)'); + if (!display && !inline) throw new Error('Math must use $$...$$ or \\(...\\) delimiters'); + const rendered = katex.renderToString(source.slice(2, -2).trim(), { + displayMode: display, + output: 'htmlAndMathml', + throwOnError: true, + strict: 'error', + trust: false, + macros: { '\\bm': '\\boldsymbol{#1}' }, + }); + return `<${tag}${attributes}>${rendered}`; + }); +} diff --git a/website/src/framework.css b/website/src/framework.css new file mode 100644 index 00000000..4f1e5d3b --- /dev/null +++ b/website/src/framework.css @@ -0,0 +1,129 @@ +/* Follow the five framework paragraphs in the final paper's Section 4.3. */ +.fs-section.section { padding-block: 80px; } +.fs-heading.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 30px; } +.fs-heading-copy { max-width: 380px; padding-bottom: 3px; } +.fs-heading-copy > p { color: var(--muted); font-size: 14px; line-height: 1.75; } +.fs-source-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; font-size: 11px; color: var(--accent-strong); } +.fs-source-links a, .fs-workflow-figure figcaption a { text-decoration: underline; text-decoration-color: #d6c3df; text-underline-offset: 4px; } +.fs-source-links a:hover, .fs-workflow-figure figcaption a:hover { text-decoration-color: currentColor; } +.fs-source-links span { margin-left: 3px; } + +.fs-system-figure { padding: 18px 20px 13px; border: 1px solid var(--line); border-radius: 5px; background: #fff; } +.fs-system-figure img { max-width: 1000px; margin-inline: auto; } +.fs-system-figure figcaption { display: flex; gap: 22px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eee9f1; font-size: 10px; } +.fs-system-figure figcaption > span { color: #58445f; } + +.fs-components { margin-top: 32px; border-top: 1px solid var(--line); } +.fs-component { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 42px; padding-block: 28px; } +.fs-component + .fs-component { border-top: 1px solid var(--line); } +.fs-component:last-child { padding-bottom: 0; } +.fs-component-heading { display: flex; align-items: baseline; gap: 14px; } +.fs-component-index { color: var(--accent); font: 10px/1.9 var(--mono); flex: 0 0 auto; } +.fs-component-heading h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.035em; } +.fs-component-body { min-width: 0; } +.fs-component-body > p { color: #6b626f; font-size: 13px; line-height: 1.85; } +.fs-component-body > p + p { margin-top: 14px; } +.fs-component-body code { color: #6c467a; font: .9em/1.6 var(--mono); overflow-wrap: anywhere; } + +.fs-workflows { margin-top: 20px; } +.fs-workflow-figure .figure-zoom { border-radius: 0; } +.fs-workflow-figure figcaption { margin-top: 8px; font-size: 9px; } +.fs-workflow-figure figcaption a { margin-left: 5px; color: var(--accent-strong); } +.fs-workflow-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 15px 0 0; } +.fs-workflow-notes > div { padding-left: 13px; border-left: 2px solid #cbb5d5; } +.fs-workflow-notes > div + div { border-color: #ebc5a3; } +.fs-workflow-notes dt { font-family: var(--display); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: -.015em; } +.fs-workflow-notes dd { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; } + +.fs-assignment { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 19px; } +.fs-map-option { min-width: 0; } +.fs-map-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: -.02em; } +.fs-map-title > span { color: var(--muted); font: 9px var(--mono); letter-spacing: 0; } +.fs-map-labels { display: flex; justify-content: space-between; gap: 8px; margin-block: 9px 7px; font: 8px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); } +.fs-map { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1.25fr); align-items: center; } +.fs-roles, .fs-workers { display: flex; flex-direction: column; gap: 6px; } +.fs-roles > span, .fs-workers > span { display: flex; align-items: center; justify-content: center; min-height: 26px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; line-height: 1.4; padding: 3px 6px; white-space: nowrap; } +.fs-roles > span { background: #fff; color: #655d6b; } +.fs-workers > span { background: var(--accent-wash); border-color: #d9c5e2; color: var(--accent-strong); font-weight: 550; } +.fs-map-lines { display: block; width: 52px; height: 90px; fill: none; stroke: #b998c7; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; } +.fs-map-separate .fs-map-lines { stroke: #d5ae8d; } +.fs-map-separate .fs-workers > span { background: #fff6ee; border-color: #ecd2bb; color: #81552e; } +.fs-map-note { color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 7px; } + +.fs-component-body > .fs-sharing-constraint { padding: 11px 15px; border-left: 2px solid #cbb5d5; background: #f7f3f9; color: #6b5874; font-size: 12px; } +.fs-sharing-constraint strong { font-weight: 600; color: #58445f; } +.fs-lifecycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 19px 0 0; } +.fs-lifecycle > li { display: flex; align-items: flex-start; gap: 11px; padding-right: 20px; } +.fs-lifecycle > li + li { border-left: 1px solid var(--line); padding-left: 20px; } +.fs-lifecycle > li:last-child { padding-right: 0; } +.fs-step-index { font: 9px/2 var(--mono); color: var(--accent); } +.fs-lifecycle > li:last-child .fs-step-index { color: #a26d40; } +.fs-lifecycle h4 { margin: 0; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: -.015em; line-height: 1.5; } +.fs-lifecycle h4 code { font-size: 11px; } +.fs-lifecycle p { color: var(--muted); font-size: 11px; line-height: 1.75; margin-top: 6px; } +.fs-batch-equation.math-block { width: fit-content; max-width: 100%; margin-block: 12px; padding: 9px 22px; border-left: 2px solid #cbb5d5; background: #f7f3f9; font-size: 14px; } +.fs-batch-equation .katex-display { margin: .35em 0; } + +@media (max-width: 1000px) { + .fs-heading.section-heading { gap: 30px; } + .fs-heading-copy { max-width: 325px; } + .fs-component { grid-template-columns: 215px minmax(0, 1fr); gap: 28px; } + .fs-component-heading { gap: 11px; } + .fs-component-heading h3 { font-size: 18px; } + .fs-assignment { gap: 25px; } + .fs-map { grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1.25fr); } + .fs-map-lines { width: 35px; } + .fs-roles > span, .fs-workers > span { font-size: 9px; padding-inline: 4px; } + .fs-lifecycle > li { display: block; padding-right: 15px; } + .fs-lifecycle > li + li { padding-left: 15px; } + .fs-step-index { display: block; margin-bottom: 5px; } +} +@media (max-width: 760px) { + .fs-section.section { padding-block: 60px; } + .fs-heading.section-heading { display: block; } + .fs-heading-copy { max-width: 530px; margin-top: 17px; } + .fs-heading-copy > p { font-size: 13px; } + .fs-system-figure { padding: 13px; } + .fs-system-figure figcaption { flex-direction: column; gap: 2px; } + .fs-components { margin-top: 26px; } + .fs-component { grid-template-columns: 1fr; gap: 14px; padding-block: 25px; } + .fs-component-heading { gap: 12px; } + .fs-component-heading h3 { font-size: 21px; } + .fs-component-body > p { font-size: 13px; } + .fs-map { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1.25fr); } + .fs-map-lines { width: 52px; } + .fs-roles > span, .fs-workers > span { font-size: 10px; } + .fs-lifecycle > li { display: flex; gap: 10px; } + .fs-step-index { margin-bottom: 0; } +} +@media (max-width: 540px) { + .fs-section.section { padding-block: 56px; } + .fs-heading.section-heading { margin-bottom: 24px; } + .fs-heading-copy { margin-top: 15px; } + .fs-source-links { gap: 20px; } + .fs-system-figure { padding: 10px; } + .fs-system-figure figcaption { font-size: 9px; } + .fs-component-heading h3 { font-size: 20px; line-height: 1.35; } + .fs-component-body > p { font-size: 12px; line-height: 1.85; } + .fs-workflows { margin-top: 16px; } + .fs-workflow-notes { grid-template-columns: 1fr; gap: 15px; margin-top: 15px; } + .fs-workflow-notes dt { font-size: 13px; } + .fs-workflow-notes dd { font-size: 12px; } + .fs-assignment { grid-template-columns: 1fr; gap: 23px; margin-top: 18px; } + .fs-map-option { max-width: 410px; } + .fs-map { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.25fr); } + .fs-map-lines { width: 64px; } + .fs-roles > span, .fs-workers > span { font-size: 11px; } + .fs-map-labels { font-size: 9px; } + .fs-map-note { font-size: 11px; } + .fs-component-body > .fs-sharing-constraint { padding: 11px 13px; font-size: 12px; } + .fs-lifecycle { grid-template-columns: 1fr; margin-top: 9px; } + .fs-lifecycle > li, .fs-lifecycle > li + li { display: flex; gap: 13px; border-left: 0; padding: 12px 0; } + .fs-lifecycle > li + li { border-top: 1px solid var(--line); } + .fs-lifecycle > li:last-child { padding-bottom: 0; } + .fs-step-index { font-size: 10px; } + .fs-lifecycle h4 { font-size: 14px; } + .fs-lifecycle h4 code { font-size: 12px; } + .fs-lifecycle p { font-size: 12px; margin-top: 4px; } + .fs-batch-equation.math-block { width: 100%; padding: 9px 10px; font-size: 12px; } +} diff --git a/website/src/github-stars.js b/website/src/github-stars.js new file mode 100644 index 00000000..f8f19eaf --- /dev/null +++ b/website/src/github-stars.js @@ -0,0 +1,66 @@ +const cacheKey = 'drmas:github-stars:v1'; +const cacheLifetime = 6 * 60 * 60 * 1000; +const sources = [ + { url: 'https://api.github.com/repos/langfengQ/DrMAS', field: 'stargazers_count', label: 'GitHub' }, + { url: 'https://img.shields.io/github/stars/langfengQ/DrMAS.json', field: 'value', label: 'Shields.io cache' }, +]; + +export function formatStarCount(value) { + if (Number.isSafeInteger(value) && value >= 0) return value.toLocaleString('en-US'); + if (typeof value !== 'string') return null; + const label = value.trim(); + // Shields may abbreviate large counts. Preserve that label rather than inventing precision. + if (/^(?:0|[1-9]\d*|[1-9]\d{0,2}(?:,\d{3})+|[1-9]\d*(?:\.\d{1,2})?[kM])$/.test(label)) return label; + return null; +} + +export async function fetchStarCount(fetcher = fetch) { + for (const source of sources) { + const controller = new AbortController(); + const timer = setTimeout(() => controller.abort(), 4000); + try { + const response = await fetcher(source.url, { + signal: controller.signal, + credentials: 'omit', + referrerPolicy: 'no-referrer', + headers: { Accept: 'application/json' }, + }); + if (!response.ok) continue; + const data = await response.json(); + const label = formatStarCount(data[source.field]); + if (label !== null) return { label, source: source.label, savedAt: Date.now() }; + } catch { + // Counts are supplementary; a blocked endpoint must not break the project page. + } finally { + clearTimeout(timer); + } + } + return null; +} + +export async function initGitHubStars() { + const counters = document.querySelectorAll('[data-github-stars]'); + if (!counters.length) return; + + function render(record) { + for (const counter of counters) { + counter.textContent = record.label; + counter.dataset.starsSource = record.source; + counter.closest('.github-stars').title = `GitHub stars: ${record.label}. Last retrieved ${new Date(record.savedAt).toLocaleDateString('en-GB')} via ${record.source}.`; + } + } + + try { + const cached = JSON.parse(localStorage.getItem(cacheKey)); + if (cached && formatStarCount(cached.label) !== null && Number.isFinite(cached.savedAt) && + typeof cached.source === 'string' && cached.savedAt <= Date.now()) { + render(cached); + if (Date.now() - cached.savedAt < cacheLifetime) return; + } + } catch { /* Storage can be disabled; the embedded count stays readable. */ } + + const latest = await fetchStarCount(); + if (!latest) return; + render(latest); + try { localStorage.setItem(cacheKey, JSON.stringify(latest)); } catch { /* Optional cache. */ } +} diff --git a/website/src/gradient-demo.js b/website/src/gradient-demo.js new file mode 100644 index 00000000..4790b10b --- /dev/null +++ b/website/src/gradient-demo.js @@ -0,0 +1,273 @@ +import { gradientMismatch } from './gradient-model.js'; + +const presets = { + matched: { mean: 0, agentMean: 0, std: 0.5, agentStd: 0.5 }, + mean: { mean: 0, agentMean: 1, std: 0.5, agentStd: 0.5 }, + variance: { mean: 0, agentMean: 0, std: 0.5, agentStd: 1 }, + combined: { mean: 0, agentMean: 1, std: 0.5, agentStd: 1 }, +}; +const momentKeys = ['mean', 'agentMean', 'std', 'agentStd']; +const initialized = new WeakSet(); +const svgNamespace = 'http://www.w3.org/2000/svg'; +const curveStyles = { + global: { class: 'gm-curve-global', stroke: '#d28a48', 'stroke-width': 3 }, + agent: { class: 'gm-curve-agent', stroke: '#8c569b', 'stroke-width': 2.5, 'stroke-dasharray': '7 5' }, +}; + +function format(value) { + return (Math.abs(value) < 1e-10 ? 0 : value).toFixed(2); +} + +function formatPercent(value) { + const rounded = Number(value.toFixed(2)); + return `${rounded > 0 ? '+' : ''}${format(rounded)}%`; +} + +function svgElement(name, attributes = {}, text) { + const node = document.createElementNS(svgNamespace, name); + for (const [key, value] of Object.entries(attributes)) { + node.setAttribute(key, String(value)); + } + if (text !== undefined) node.textContent = text; + return node; +} + +function drawSecondMomentResponse(svg, { moments, minStd, maxStd, remedy }) { + const left = 70; + const right = 620; + const top = 24; + const bottom = 255; + const valueAt = (std) => gradientMismatch({ ...moments, std }).inflation; + // The sweep is monotone in sigma. Its endpoint fixes the scale independently + // of the current sigma, so moving that control only moves the selected point. + const yMax = Math.max(valueAt(minStd), 1) * 1.15; + const scaleX = (x) => left + (x - minStd) / (maxStd - minStd) * (right - left); + const scaleY = (y) => bottom - y / yMax * (bottom - top); + const marks = svgElement('g', { 'aria-hidden': 'true' }); + + for (let index = 0; index < 5; index++) { + const fraction = index / 4; + const xValue = minStd + (maxStd - minStd) * fraction; + const x = scaleX(xValue); + const yValue = yMax * fraction; + const y = scaleY(yValue); + marks.append( + svgElement('line', { x1: x, y1: top, x2: x, y2: bottom, class: 'gm-grid', stroke: '#e7e2df' }), + svgElement('line', { x1: left, y1: y, x2: right, y2: y, class: 'gm-grid', stroke: '#e7e2df' }), + svgElement('text', { + x, + y: bottom + 21, + class: 'gm-axis-label', + 'text-anchor': index === 0 ? 'start' : index === 4 ? 'end' : 'middle', + 'font-size': 12, + fill: '#706864', + }, format(xValue)), + svgElement('text', { + x: left - 8, + y: y + 4, + class: 'gm-axis-label', + 'text-anchor': 'end', + 'font-size': 11, + fill: '#706864', + }, format(yValue)), + ); + } + + marks.append( + svgElement('path', { + d: `M${left},${top} V${bottom} H${right}`, + class: 'gm-axis', + fill: 'none', + stroke: '#a69a94', + }), + svgElement('text', { + x: (left + right) / 2, + y: 299, + class: 'gm-axis-label gm-axis-title', + 'text-anchor': 'middle', + 'font-size': 13, + fill: '#706864', + }, 'Global standard deviation (\u03c3)'), + svgElement('text', { + x: 15, + y: (top + bottom) / 2, + transform: `rotate(-90 15 ${(top + bottom) / 2})`, + class: 'gm-axis-label gm-axis-title', + 'text-anchor': 'middle', + 'font-size': 12, + fill: '#706864', + }, 'Second-moment multiplier'), + ); + + const samples = Array.from({ length: 321 }, (_, index) => minStd + (maxStd - minStd) * index / 320); + const globalPath = samples.map((std, index) => + `${index === 0 ? 'M' : 'L'}${scaleX(std).toFixed(3)},${scaleY(valueAt(std)).toFixed(3)}`).join(' '); + const selectedValue = remedy ? 1 : valueAt(moments.std); + const selectedX = scaleX(moments.std); + const selectedY = scaleY(selectedValue); + const selectedColor = remedy ? curveStyles.agent.stroke : curveStyles.global.stroke; + const labelOnLeft = selectedX > (left + right) / 2; + + marks.append( + svgElement('path', { + ...curveStyles.global, + d: globalPath, + fill: 'none', + 'stroke-linejoin': 'round', + 'stroke-linecap': 'round', + }), + svgElement('path', { + ...curveStyles.agent, + d: `M${left},${scaleY(1).toFixed(3)} L${right},${scaleY(1).toFixed(3)}`, + fill: 'none', + }), + svgElement('line', { + x1: selectedX, + x2: selectedX, + y1: top, + y2: bottom, + class: 'gm-current-guide', + stroke: '#96918f', + 'stroke-dasharray': '3 4', + }), + svgElement('circle', { + cx: selectedX, + cy: selectedY, + r: 5, + class: 'gm-current-point', + 'data-std': moments.std, + 'data-value': selectedValue, + 'data-mode': remedy ? 'agent' : 'global', + fill: selectedColor, + stroke: '#ffffff', + 'stroke-width': 2, + }), + svgElement('text', { + x: selectedX + (labelOnLeft ? -9 : 9), + y: Math.max(top + 12, selectedY - 10), + class: 'gm-current-label', + 'text-anchor': labelOnLeft ? 'end' : 'start', + 'font-size': 13, + fill: selectedColor, + }, `${format(selectedValue)}\u00d7`), + ); + + const titleId = `${svg.id}-title`; + const descriptionId = `${svg.id}-description`; + const mode = remedy ? 'agent-wise' : 'global'; + svg.setAttribute('viewBox', '0 0 640 310'); + svg.setAttribute('role', 'img'); + svg.setAttribute('aria-labelledby', titleId); + svg.setAttribute('aria-describedby', descriptionId); + svg.dataset.xMin = String(minStd); + svg.dataset.xMax = String(maxStd); + svg.dataset.yMax = String(yMax); + svg.replaceChildren( + svgElement('title', { id: titleId }, 'Gradient second-moment multiplier: illustrative response to global standard deviation'), + svgElement('desc', { id: descriptionId }, `Global standard deviation varies from ${format(minStd)} to ${format(maxStd)}, holding global mean ${format(moments.mean)}, agent mean ${format(moments.agentMean)}, and agent standard deviation ${format(moments.agentStd)} fixed. Orange shows global normalization; the dashed purple agent-wise reference is 1.00. The selected ${mode} point at standard deviation ${format(moments.std)} has multiplier ${format(selectedValue)}. The score-function second moment is fixed at 1 and both covariance corrections are zero. This is not a measured gradient trace.`), + marks, + ); +} + +export function initGradientDemo() { + if (typeof document === 'undefined') return; + const root = document.querySelector('#mismatch-demo'); + if (!root || initialized.has(root)) return; + + const controls = Object.fromEntries(momentKeys.map((key) => [key, root.querySelector(`[data-moment="${key}"]`)])); + const secondMomentChart = root.querySelector('#second-moment-response'); + const remedyButton = root.querySelector('#apply-remedy'); + if (Object.values(controls).some((control) => !control) || !secondMomentChart || !remedyButton) return; + const remedyLabel = remedyButton.firstChild?.nodeType === Node.TEXT_NODE ? remedyButton.firstChild : remedyButton; + const minStd = Number(controls.std.min); + const maxStd = Number(controls.std.max); + + let moments = { ...presets.combined }; + let remedy = false; + + function setText(selector, text) { + const node = root.querySelector(selector); + if (node && node.textContent !== text) node.textContent = text; + } + + function readControls() { + moments = Object.fromEntries(momentKeys.map((key) => [key, Number(controls[key].value)])); + } + + function applyMoments(next) { + moments = { ...next }; + for (const key of momentKeys) controls[key].value = moments[key]; + } + + function render(announce = false) { + const result = gradientMismatch(moments); + const activeFactor = remedy ? result.remedyInflation : result.inflation; + const mode = remedy ? 'Agent-wise normalization' : 'Global normalization'; + const factorState = Math.abs(result.inflation - 1) < 1e-9 + ? 'Matched scale' + : result.inflation > 1 ? 'Amplification' : 'Attenuation'; + + for (const key of momentKeys) { + const control = controls[key]; + const progress = 100 * (moments[key] - Number(control.min)) / (Number(control.max) - Number(control.min)); + setText(`[data-value="${key}"]`, format(moments[key])); + control.setAttribute('aria-valuetext', format(moments[key])); + control.style.setProperty('--range-fill', `${progress}%`); + } + const numericReadouts = { + '#gm-factor': result.inflation, + '#gm-variance-term': result.varianceRatio, + '#gm-mean-term': result.meanMismatch, + '#gm-active-factor': activeFactor, + }; + for (const [selector, value] of Object.entries(numericReadouts)) setText(selector, format(value)); + setText('#gm-active-second-change', formatPercent(remedy ? 0 : result.secondMomentChangePercent)); + setText('#gm-factor-state', factorState); + setText('#gm-demo-state', mode); + + root.dataset.remedy = String(remedy); + remedyButton.setAttribute('aria-pressed', String(remedy)); + remedyLabel.textContent = remedy ? 'Restore global baseline' : 'Apply the remedy'; + root.querySelectorAll('.gm-formula-global').forEach((node) => { node.hidden = remedy; }); + root.querySelectorAll('.gm-formula-agent').forEach((node) => { node.hidden = !remedy; }); + root.querySelectorAll('[data-preset]').forEach((button) => { + const preset = presets[button.dataset.preset]; + const selected = preset && momentKeys.every((key) => Math.abs(preset[key] - moments[key]) < 1e-9); + button.setAttribute('aria-pressed', String(Boolean(selected))); + }); + + drawSecondMomentResponse(secondMomentChart, { moments, minStd, maxStd, remedy }); + + if (announce) { + setText('#gradient-status', `${mode}. Global reward mean ${format(moments.mean)}, standard deviation ${format(moments.std)}. Agent reward mean ${format(moments.agentMean)}, standard deviation ${format(moments.agentStd)}. Illustrative gradient second-moment multiplier ${format(activeFactor)}, ${formatPercent(remedy ? 0 : result.secondMomentChangePercent)} versus agent-wise. The score second moment is fixed at 1 and both covariance corrections are zero.`); + } + } + + for (const control of Object.values(controls)) { + control.addEventListener('input', () => { + readControls(); + render(); + }); + control.addEventListener('change', () => { + readControls(); + render(true); + }); + } + root.querySelectorAll('[data-preset]').forEach((button) => { + button.addEventListener('click', () => { + const name = button.dataset.preset; + if (!Object.hasOwn(presets, name)) return; + applyMoments(presets[name]); + render(true); + }); + }); + remedyButton.addEventListener('click', () => { + remedy = !remedy; + render(true); + }); + + applyMoments(presets.combined); + render(); + initialized.add(root); + root.hidden = false; +} diff --git a/website/src/gradient-model.js b/website/src/gradient-model.js new file mode 100644 index 00000000..df51ffad --- /dev/null +++ b/website/src/gradient-model.js @@ -0,0 +1,34 @@ +function requireFinite(value, name) { + if (!Number.isFinite(value)) { + throw new TypeError(`${name} must be a finite number`); + } +} + +function requirePositiveStd(value, name) { + requireFinite(value, name); + if (value <= 0) { + throw new RangeError(`${name} must be greater than zero`); + } +} + +// Lemma 4.2's reward-statistics factor, not a measured gradient norm. +// Second-moment comparisons fix the positive score second moment and set +// both global and agent-wise score-reward covariance corrections to zero. +export function gradientMismatch({ mean, agentMean, std, agentStd }) { + requireFinite(mean, 'mean'); + requireFinite(agentMean, 'agentMean'); + requirePositiveStd(std, 'std'); + requirePositiveStd(agentStd, 'agentStd'); + + const meanMismatch = ((agentMean - mean) / std) ** 2; + const varianceRatio = (agentStd / std) ** 2; + const inflation = varianceRatio + meanMismatch; + + return { + varianceRatio, + meanMismatch, + inflation, + secondMomentChangePercent: (inflation - 1) * 100, + remedyInflation: 1, + }; +} diff --git a/website/src/main.js b/website/src/main.js new file mode 100644 index 00000000..af42faeb --- /dev/null +++ b/website/src/main.js @@ -0,0 +1,195 @@ +import { experiments, formatGain, getResults } from './results.js'; +import { initGradientDemo } from './gradient-demo.js'; +import { getGainScale, getGainGeometry, formatGainTick } from './results-visual.js'; +import { initGitHubStars } from './github-stars.js'; + +document.documentElement.classList.add('js'); + +const state = { task: 'math', model: '8b', setting: 'shared', metric: 'avg' }; +const modelSelect = document.querySelector('#model-select'); +const explorer = document.querySelector('#results-explorer'); + +function renderResults(announce = true) { + const result = getResults(state); + const scale = getGainScale(result.rows.map((row) => row.gain)); + const gainAxis = document.querySelector('#gain-axis'); + gainAxis.dataset.limit = String(scale.limit); + gainAxis.setAttribute('aria-hidden', 'true'); + gainAxis.innerHTML = scale.ticks.map((tick) => ` + ${formatGainTick(tick)} + `).join(''); + document.querySelector('#gain-scale-note').textContent = `Shared scale: ${formatGainTick(-scale.limit)} to ${formatGainTick(scale.limit)} percentage points (pp). Zero means equal scores. The scale updates with the selected configuration.`; + document.querySelector('#results-body').innerHTML = result.rows.map((row) => { + const geometry = getGainGeometry(row.gain, scale.limit); + return ` + + ${row.benchmark} +
+ ${row.grpo.toFixed(1)} + ${row.drmas.toFixed(1)} + ${formatGain(row.gain)} + + `; + }).join(''); + document.querySelector('#baseline-average').innerHTML = `${result.average.grpo.toFixed(1)}%`; + document.querySelector('#drmas-average').innerHTML = `${result.average.drmas.toFixed(1)}%`; + document.querySelector('#average-gain').textContent = `${formatGain(result.average.gain)} pp`; + document.querySelector('#results-caption').textContent = result.description; + document.querySelector('#table-number').textContent = result.table; + document.querySelector('.table-source').href = `./paper.pdf#page=${result.page}`; + for (const key of ['task', 'setting', 'metric']) { + explorer.querySelectorAll(`[data-${key}]`).forEach((button) => { + button.setAttribute('aria-pressed', String(button.dataset[key] === state[key])); + }); + } + if (announce) { + document.querySelector('#result-announcement').textContent = `${result.description}. Average: GRPO ${result.average.grpo.toFixed(1)} percent; Dr. MAS ${result.average.drmas.toFixed(1)} percent. Gain ${formatGain(result.average.gain)} percentage points.`; + } +} + +explorer.addEventListener('click', (event) => { + const button = event.target.closest('button'); + if (!button) return; + if (button.dataset.task && button.dataset.task !== state.task) { + state.task = button.dataset.task; + state.model = experiments[state.task].defaultModel; + modelSelect.replaceChildren(...Object.entries(experiments[state.task].models).map(([value, model]) => new Option(model.label, value))); + modelSelect.value = state.model; + } else if (button.dataset.setting) { + state.setting = button.dataset.setting; + } else if (button.dataset.metric) { + state.metric = button.dataset.metric; + } else { + return; + } + renderResults(); +}); +modelSelect.addEventListener('change', () => { + state.model = modelSelect.value; + renderResults(); +}); +renderResults(false); +explorer.hidden = false; +initGradientDemo(); +initGitHubStars(); + +const menuButton = document.querySelector('.menu-toggle'); +const navigation = document.querySelector('#navigation'); +function closeMenu() { + navigation.classList.remove('open'); + menuButton.setAttribute('aria-expanded', 'false'); + menuButton.setAttribute('aria-label', 'Open navigation'); +} +menuButton.addEventListener('click', () => { + const open = menuButton.getAttribute('aria-expanded') !== 'true'; + navigation.classList.toggle('open', open); + menuButton.setAttribute('aria-expanded', String(open)); + menuButton.setAttribute('aria-label', open ? 'Close navigation' : 'Open navigation'); +}); +navigation.addEventListener('click', (event) => { + if (event.target.closest('a')) closeMenu(); +}); +document.addEventListener('keydown', (event) => { + if (event.key === 'Escape' && menuButton.getAttribute('aria-expanded') === 'true') { + closeMenu(); + menuButton.focus(); + } +}); +document.addEventListener('click', (event) => { + if (!event.target.closest('.site-header')) closeMenu(); +}); +window.matchMedia('(min-width: 541px)').addEventListener('change', closeMenu); + +const dialog = document.querySelector('#figure-dialog'); +const dialogImage = document.querySelector('#dialog-image'); +document.querySelectorAll('[data-figure]').forEach((button) => { + button.addEventListener('click', () => { + dialogImage.src = button.dataset.figure; + dialogImage.alt = button.querySelector('img').alt; + document.querySelector('#figure-caption').textContent = button.dataset.caption; + document.querySelector('#figure-original').href = button.dataset.figure; + dialog.showModal(); + document.body.classList.add('dialog-open'); + }); +}); +document.querySelector('.dialog-close').addEventListener('click', () => dialog.close()); +dialog.addEventListener('click', (event) => { + if (event.target !== dialog) return; + const { left, right, top, bottom } = dialog.getBoundingClientRect(); + if (event.clientX < left || event.clientX > right || event.clientY < top || event.clientY > bottom) dialog.close(); +}); +dialog.addEventListener('close', () => document.body.classList.remove('dialog-open')); + +const copyButton = document.querySelector('#copy-citation'); +const copyStatus = document.querySelector('#copy-status'); +copyButton.hidden = false; +let copyTimeout; + +function legacyCopy(text) { + const input = document.createElement('textarea'); + input.value = text; + input.style.cssText = 'position:fixed;top:0;left:-9999px;'; + document.body.append(input); + input.select(); + let copied = false; + try { + copied = document.execCommand('copy'); + } finally { + input.remove(); + copyButton.focus({ preventScroll: true }); + } + return copied; +} + +copyButton.addEventListener('click', async () => { + const text = document.querySelector('#bibtex').textContent; + clearTimeout(copyTimeout); + let copied = false; + try { + await navigator.clipboard.writeText(text); + copied = true; + } catch { + try { copied = legacyCopy(text); } catch { /* Offer manual selection below. */ } + } + if (copied) { + copyButton.querySelector('span').textContent = 'Copied!'; + copyStatus.textContent = 'Citation copied to clipboard.'; + } else { + const range = document.createRange(); + range.selectNodeContents(document.querySelector('#bibtex')); + const selection = window.getSelection(); + selection.removeAllRanges(); + selection.addRange(range); + copyStatus.textContent = 'Copy unavailable. Text selected; press Ctrl+C or Cmd+C.'; + } + copyTimeout = setTimeout(() => { + copyButton.querySelector('span').textContent = 'Copy citation'; + copyStatus.textContent = ''; + }, 5000); +}); + +if ('IntersectionObserver' in window) { + const revealObserver = new IntersectionObserver((entries, observer) => { + entries.forEach((entry) => { + if (entry.isIntersecting) { + entry.target.classList.add('visible'); + observer.unobserve(entry.target); + } + }); + }, { threshold: 0.07 }); + document.querySelectorAll('.reveal').forEach((element) => { + element.classList.add('ready'); + revealObserver.observe(element); + }); + + const sectionObserver = new IntersectionObserver((entries) => { + for (const entry of entries) { + if (!entry.isIntersecting) continue; + navigation.querySelectorAll('a').forEach((link) => { + if (link.hash === `#${entry.target.id}`) link.setAttribute('aria-current', 'location'); + else link.removeAttribute('aria-current'); + }); + } + }, { rootMargin: '-15% 0px -65% 0px', threshold: 0 }); + document.querySelectorAll('#overview, #method, #framework, #results, #citation').forEach((section) => sectionObserver.observe(section)); +} diff --git a/website/src/results-visual.css b/website/src/results-visual.css new file mode 100644 index 00000000..1c3a1b18 --- /dev/null +++ b/website/src/results-visual.css @@ -0,0 +1,106 @@ +/* Signed differences share one unbroken, zero-centered percentage-point axis. */ +.results-explorer { + --gain-positive: #8c569b; + --gain-negative: #f7b06f; + --gain-negative-ink: #9a5425; + --gain-neutral: #817388; +} + +.gain-chart-intro { + display: flex; + justify-content: space-between; + align-items: flex-start; + gap: 24px; + padding-top: 11px; + margin-top: 24px; +} + +.gain-chart-intro .eyebrow { color: var(--accent-text); font-size: 9px; } +.gain-chart-intro h3 { margin-top: 7px; font-size: 20px; line-height: 1.35; letter-spacing: -.035em; } +.gain-chart-intro > p { max-width: 345px; font-size: 10px; line-height: 1.7; color: var(--muted); } + +.gain-direction-legend { + display: flex; + flex-wrap: wrap; + gap: 8px 22px; + margin-block: 17px 15px; + font-family: var(--mono); + font-size: 9px; + color: var(--muted); +} + +.gain-direction-legend > span { display: inline-flex; align-items: center; gap: 7px; } +.gain-direction-legend i { display: inline-block; width: 18px; height: 7px; border-radius: 2px; } +.gain-direction-legend .grpo-bar { background: var(--gain-negative); } +.gain-direction-legend .drmas-bar { background: var(--gain-positive); } + +.results-table { table-layout: fixed; } +.results-table th:first-child, .results-table td:first-child { width: 18%; } +.results-table .bar-column { display: table-cell; width: 44%; padding-inline: 18px; } +.results-table thead th { vertical-align: bottom; } +.results-table .gain-cell { color: var(--gain-positive); font-size: 13px; font-weight: 600; letter-spacing: -.035em; } +.results-table .gain-cell.negative { color: var(--gain-negative-ink); } +.results-table .gain-cell.neutral { color: var(--gain-neutral); } +.results-table .gain-cell::after { content: ' pp'; font-size: 8px; font-weight: 400; letter-spacing: 0; } +.gain-column-title { display: block; text-align: center; color: var(--ink); font-size: 10px; } +.gain-column-title > span { color: var(--muted); } + +.gain-axis { display: block; position: relative; height: 24px; margin-top: 10px; font-family: var(--mono); font-size: 9px; color: #706278; } +.gain-axis-tick { position: absolute; top: 0; transform: translateX(-50%); font-weight: 400; } +.gain-axis-tick::after { position: absolute; content: ''; width: 1px; height: 5px; background: #cfc2d4; top: 16px; left: 50%; } +.gain-axis-tick:first-child { transform: none; } +.gain-axis-tick:first-child::after { left: 0; } +.gain-axis-tick:last-child { transform: translateX(-100%); } +.gain-axis-tick:last-child::after { left: 100%; } +.gain-axis-tick[data-value='0'] { color: var(--ink); font-weight: 600; } + +.gain-track { + position: relative; + height: 28px; + width: 100%; + overflow: hidden; + border-radius: 3px; + background: linear-gradient(90deg, #fbf1e8 50%, #f0e8f4 50%); +} + +.gain-track::before { + content: ''; + position: absolute; + inset: 0; + background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), #cbbbd04f calc(25% - 1px), #cbbbd04f 25%); +} + +.gain-zero { position: absolute; inset-block: 0; left: 50%; width: 1px; background: #a895b1; } +.gain-bar { position: absolute; top: 50%; left: var(--gain-start); width: var(--gain-width); height: 12px; transform: translateY(-50%); background: var(--gain-positive); border-radius: 2px; } +.gain-marker { position: absolute; top: 50%; left: var(--gain-end); width: 3px; height: 17px; transform: translate(-50%, -50%); background: var(--gain-positive); border-radius: 1px; } +.gain-track[data-direction='negative'] .gain-bar { background: var(--gain-negative); } +.gain-track[data-direction='negative'] .gain-marker { background: var(--gain-negative-ink); } +.gain-track[data-direction='neutral'] .gain-bar { display: none; } +.gain-track[data-direction='neutral'] .gain-marker { width: 7px; height: 7px; border: 2px solid #fdfcfe; border-radius: 50%; background: var(--gain-neutral); } +.results-table .average-row .gain-track { background: linear-gradient(90deg, #f7e9dc 50%, #e7d8ee 50%); } + +@media (max-width: 720px) { + .gain-chart-intro { flex-direction: column; gap: 9px; margin-top: 21px; } + .gain-chart-intro h3 { font-size: 19px; } + .gain-chart-intro > p { max-width: none; } + .gain-direction-legend { column-gap: 16px; font-size: 8px; } + .results-table, .results-table caption, .results-table thead, .results-table tbody { display: block; width: 100%; } + .results-table thead tr { display: block; } + .results-table thead th:not(.bar-column) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } + .results-table thead .bar-column { display: block; width: 100%; padding: 5px 0 1px; border-bottom: 1px solid #ddd0e5; } + .gain-column-title { font-size: 10px; } + .gain-axis { margin-top: 9px; } + .results-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: 'benchmark benchmark gain' 'grpo drmas gain' 'plot plot plot'; gap: 7px 10px; padding-block: 14px; border-bottom: 1px solid #e5dbea; } + .results-table tbody th, .results-table tbody td { border: 0; padding: 0; width: auto; min-width: 0; text-align: left; } + .results-table tbody th:first-child { grid-area: benchmark; width: auto; font-size: 12px; font-weight: 600; } + .results-table tbody .bar-column { grid-area: plot; display: block; width: 100%; padding: 3px 0 0; } + .results-table .grpo-cell { grid-area: grpo; font-size: 11px; } + .results-table .drmas-cell { grid-area: drmas; font-size: 11px; } + .results-table .grpo-cell::before, .results-table .drmas-cell::before { content: attr(data-label) ' '; display: block; font-family: var(--mono); font-size: 8px; font-weight: 400; color: var(--muted); margin-bottom: 2px; } + .results-table .gain-cell { grid-area: gain; align-self: center; text-align: right; font-size: 17px; } + .results-table .gain-cell::after { display: block; font-size: 9px; margin-top: 1px; } + .results-table .average-row { border-radius: 4px; background: #eef0f2; margin-top: 8px; } + .results-table .average-row th { padding-left: 0; } + .results-table .average-row:last-child { border-bottom: 0; } + .gain-track { height: 26px; } +} diff --git a/website/src/results-visual.js b/website/src/results-visual.js new file mode 100644 index 00000000..9cb45c9c --- /dev/null +++ b/website/src/results-visual.js @@ -0,0 +1,41 @@ +function requireFinite(value, name) { + if (!Number.isFinite(value)) throw new TypeError(`${name} must be a finite number`); +} + +export function getGainScale(gains) { + if (!Array.isArray(gains)) throw new TypeError('gains must be an array'); + let maximum = 0; + for (const gain of gains) { + requireFinite(gain, 'gain'); + maximum = Math.max(maximum, Math.abs(gain)); + } + + // Round the shared, symmetric extent outwards, never crop an observed gain. + const extent = Math.max(1, maximum); + const step = 10 ** Math.floor(Math.log10(extent)) / 2; + const limit = Math.ceil(extent / step) * step; + if (!Number.isFinite(limit)) throw new RangeError('gains exceed a finite chart scale'); + + return { limit, ticks: [-limit, -limit / 2, 0, limit / 2, limit] }; +} + +export function getGainGeometry(gain, limit) { + requireFinite(gain, 'gain'); + requireFinite(limit, 'limit'); + if (limit <= 0) throw new RangeError('limit must be greater than zero'); + if (Math.abs(gain) > limit) throw new RangeError('gain must fit within the chart scale'); + + const end = 50 + gain / limit * 50; + return { + start: Math.min(50, end), + width: Math.abs(gain) / limit * 50, + end, + direction: gain > 0 ? 'positive' : gain < 0 ? 'negative' : 'neutral', + }; +} + +export function formatGainTick(value) { + requireFinite(value, 'tick'); + const rounded = Number(value.toFixed(2)); + return `${rounded > 0 ? '+' : ''}${rounded}`; +} diff --git a/website/src/results.js b/website/src/results.js new file mode 100644 index 00000000..e77fb047 --- /dev/null +++ b/website/src/results.js @@ -0,0 +1,93 @@ +// Tables 1 and 2 of Dr__MAS_final.pdf. Each pair is [avg@16, pass@16]. +// The last row is the paper's reported average, not a recomputed rounded mean. +export const experiments = { + math: { + label: 'Math reasoning', + table: 1, + page: 7, + defaultModel: '8b', + benchmarks: ["AIME '24", "AIME '25", "AMC '23", 'MATH500', 'Minerva', 'Olympiad', 'Average'], + models: { + '8b': { + label: 'Qwen3-8B', + shared: { + grpo: [[42.7, 66.7], [31.4, 53.3], [87.3, 95.0], [89.6, 96.2], [37.5, 50.0], [58.2, 71.4], [57.8, 72.1]], + drmas: [[54.8, 80.0], [39.4, 70.0], [88.9, 97.5], [91.3, 96.0], [39.9, 49.6], [59.3, 72.4], [62.3, 77.6]], + }, + separate: { + grpo: [[42.9, 70.0], [31.8, 53.3], [86.1, 95.0], [90.5, 96.6], [39.2, 50.7], [58.2, 67.6], [58.1, 72.2]], + drmas: [[44.6, 73.3], [41.5, 56.7], [87.5, 95.0], [90.7, 96.2], [40.9, 54.0], [59.0, 70.2], [60.7, 74.2]], + }, + }, + '4b': { + label: 'Qwen3-4B', + shared: { + grpo: [[39.3, 64.0], [31.4, 53.3], [85.6, 95.0], [89.5, 96.2], [37.5, 50.0], [57.6, 65.6], [56.8, 70.7]], + drmas: [[39.3, 63.3], [38.1, 63.3], [87.3, 95.0], [90.5, 96.0], [40.9, 53.3], [58.2, 68.6], [59.0, 73.2]], + }, + separate: { + grpo: [[42.7, 73.3], [35.6, 63.3], [83.5, 95.0], [89.6, 95.0], [37.5, 50.7], [56.3, 68.9], [57.5, 74.4]], + drmas: [[46.9, 80.0], [38.1, 66.7], [89.5, 97.5], [92.4, 97.0], [39.0, 51.5], [60.9, 73.6], [61.1, 77.7]], + }, + }, + }, + }, + search: { + label: 'Multi-turn search', + table: 2, + page: 8, + defaultModel: '7b', + benchmarks: ['NQ', 'TriviaQA', 'PopQA', 'HotpotQA', '2Wiki', 'MuSiQue', 'Bamboogle', 'Average'], + models: { + '7b': { + label: 'Qwen2.5-7B', + shared: { + grpo: [[45.2, 60.0], [63.9, 70.9], [43.9, 55.0], [40.3, 55.0], [41.6, 67.8], [15.2, 31.7], [40.1, 58.4], [41.5, 57.0]], + drmas: [[47.4, 60.7], [63.1, 71.2], [45.9, 57.3], [42.5, 56.0], [42.0, 67.1], [16.7, 32.1], [40.1, 59.2], [42.5, 57.7]], + }, + separate: { + grpo: [[27.1, 39.0], [53.1, 64.4], [20.7, 27.9], [24.4, 36.2], [30.3, 51.2], [8.3, 18.1], [31.9, 46.4], [28.0, 40.5]], + drmas: [[47.7, 59.5], [63.4, 72.7], [46.7, 57.8], [44.0, 57.5], [45.4, 68.1], [19.4, 34.9], [39.8, 57.6], [43.8, 58.3]], + }, + }, + '3b': { + label: 'Qwen2.5-3B', + shared: { + grpo: [[41.0, 59.0], [57.9, 68.4], [43.2, 58.0], [32.5, 48.0], [33.7, 64.0], [9.1, 26.5], [26.4, 46.4], [34.8, 52.9]], + drmas: [[43.8, 58.5], [61.7, 70.1], [45.0, 57.6], [33.3, 51.2], [34.1, 64.0], [10.2, 25.8], [28.6, 49.6], [36.7, 53.8]], + }, + separate: { + grpo: [[43.8, 54.5], [60.6, 70.8], [45.6, 54.5], [32.5, 45.2], [29.2, 48.9], [8.6, 19.2], [21.0, 33.6], [34.5, 46.7]], + drmas: [[44.6, 58.1], [61.1, 71.7], [46.5, 57.4], [35.3, 51.1], [34.9, 60.2], [10.4, 26.1], [25.4, 46.4], [36.9, 53.0]], + }, + }, + }, + }, +}; + +export function getResults({ task, model, setting, metric }) { + const experiment = experiments[task]; + const modelData = experiment?.models[model]; + const data = modelData?.[setting]; + if (!data || !['avg', 'pass'].includes(metric)) { + throw new RangeError('Unknown experiment configuration'); + } + const column = metric === 'avg' ? 0 : 1; + const rows = experiment.benchmarks.map((benchmark, index) => ({ + benchmark, + grpo: data.grpo[index][column], + drmas: data.drmas[index][column], + gain: Number((data.drmas[index][column] - data.grpo[index][column]).toFixed(1)), + })); + return { + rows, + average: rows.at(-1), + description: `${experiment.label} with ${modelData.label}, ${setting === 'shared' ? 'shared' : 'separate'} weights, ${metric}@16`, + table: experiment.table, + page: experiment.page, + }; +} + +export function formatGain(gain) { + return `${gain > 0 ? '+' : ''}${gain.toFixed(1)}`; +} diff --git a/website/src/styles.css b/website/src/styles.css new file mode 100644 index 00000000..e26d8152 --- /dev/null +++ b/website/src/styles.css @@ -0,0 +1,573 @@ +@import "katex/dist/katex.min.css"; +@import "./framework.css"; +@import "./theory.css"; + +@font-face { + font-family: 'Space Grotesk'; + src: url('/fonts/space-grotesk-latin.woff2') format('woff2'); + font-style: normal; + font-weight: 400 700; + font-display: swap; +} +@font-face { + font-family: 'DM Sans'; + src: url('/fonts/dm-sans-latin.woff2') format('woff2'); + font-style: normal; + font-weight: 400 700; + font-display: swap; +} +@font-face { + font-family: 'IBM Plex Mono'; + src: url('/fonts/ibm-plex-mono-latin.woff2') format('woff2'); + font-style: normal; + font-weight: 400; + font-display: swap; +} + +:root { + --paper: #fdfcfe; + --white: #fff; + --ink: #27232c; + --muted: #746c79; + /* Exact Dr. MAS purple from Figure 3; GRPO uses its original #f7b06f. */ + --accent: #8c569b; + --accent-strong: #724181; + --accent-wash: #f0e8f3; + --line: #e3dfe6; + --accent-text: #8c569b; + --display: 'Space Grotesk', sans-serif; + --body: 'DM Sans', sans-serif; + --mono: 'IBM Plex Mono', monospace; +} + +* { box-sizing: border-box; } +html { scroll-behavior: smooth; scroll-padding-top: 110px; } +body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; } +body.dialog-open { overflow: hidden; } +[hidden] { display: none !important; } +button, input, select { font: inherit; } +button, a, select { -webkit-tap-highlight-color: transparent; } +button { cursor: pointer; } +a { color: inherit; text-decoration: none; } +button { color: inherit; } +button:disabled { cursor: default; } +button, select, summary, a { touch-action: manipulation; } +:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; } +::selection { background: #eadcf0; color: #653974; } +h1, h2, h3, p, figure { margin: 0; } +h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; } +img { display: block; max-width: 100%; height: auto; } +strong { font-weight: 650; } +sub { font-size: .58em; } +sup { font-size: .55em; } +.container { width: min(1120px, calc(100% - 96px)); margin-inline: auto; } +.section { padding-block: 104px; } +.eyebrow { font-family: var(--mono); text-transform: uppercase; font-size: 11px; font-weight: 400; line-height: 1.6; letter-spacing: .09em; } +.muted { color: var(--muted); } +.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; } +.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; } +.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; } +.skip-link { position: fixed; left: 20px; top: -80px; padding: 12px 20px; z-index: 100; background: var(--accent); color: white; } +.skip-link:focus { top: 15px; } +.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; font-size: 14px; } +.text-link .icon { width: 17px; height: 17px; transition: transform .2s; } +.text-link:hover { color: var(--accent); } +.text-link:hover .icon { transform: translateX(3px); } + +/* A quiet, persistent index for the paper. */ +.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: #faf9fbed; backdrop-filter: blur(16px); } +.nav-wrap { display: flex; justify-content: space-between; align-items: center; height: 78px; } +.wordmark { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.9px; white-space: nowrap; } +.wordmark-dot { color: var(--accent); } +.brand-mark { width: 25px; height: 25px; margin-right: 10px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; } +.brand-mark i { background: var(--accent); border-radius: 2px; } +.brand-mark i:last-child { border-radius: 50%; background: #f7b06f; } +.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 13px; color: #655d6b; } +.site-header nav > a { position: relative; padding-block: 9px; } +.site-header nav > a:hover, .site-header nav > a[aria-current] { color: var(--accent); } +.site-header nav > a[aria-current]::after { content: ''; position: absolute; height: 3px; width: 16px; bottom: 0; left: calc(50% - 8px); border-radius: 2px; background: var(--accent); } +.site-header nav .nav-code { padding: 8px 16px; border: 1px solid #d6ccdc; border-radius: 6px; display: inline-flex; align-items: center; gap: 12px; color: var(--ink); margin-left: 8px; } +.nav-code .icon { width: 15px; height: 15px; } +.github-stars { display: inline-flex; align-items: center; gap: 5px; border-left: 1px solid #d6ccdc; padding-left: 10px; font: 11px var(--mono); font-variant-numeric: tabular-nums; } +.github-stars .icon { width: 13px; height: 13px; color: #b47b44; } +.menu-toggle { display: none; } + +/* The paper, rather than a decorative diagram, anchors the opening. */ +.hero { position: relative; padding-top: 48px; isolation: isolate; } +.hero-grid { position: absolute; inset: 0 0 15%; z-index: -1; background-image: radial-gradient(#9b83a832 .7px, transparent .7px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #0004, transparent 80%); } +.hero::before { content: ''; position: absolute; z-index: -1; width: 900px; max-width: 100%; height: 550px; top: 0; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 0, #ebdfef9c, transparent 70%); pointer-events: none; } +.hero-content { text-align: center; } +.hero-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; } +.venue-badge { display: inline-flex; align-items: center; color: var(--accent-strong); border: 1px solid #cdb9d6; background: #f3edf6; padding: 5px 10px; font: 14px var(--mono); border-radius: 4px; letter-spacing: .035em; } +.hero-eyebrow { display: inline-flex; gap: 10px; align-items: center; color: #7d6686; font-size: 10px; letter-spacing: .11em; } +.hero h1 { margin-top: 18px; } +.hero-name { display: block; font-size: clamp(48px, 5vw, 64px); font-weight: 600; letter-spacing: -.055em; line-height: 1.1; color: var(--accent); } +.hero-title { display: block; font-size: clamp(26px, 3.2vw, 42px); letter-spacing: -.04em; line-height: 1.22; margin-top: 12px; font-weight: 500; } +.hero-description { color: var(--muted); font-size: 15px; margin-top: 18px; } +.authors { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 23px; margin-top: 23px; font-size: 15px; font-weight: 500; } +.authors a { text-decoration-color: var(--line); text-decoration-line: underline; text-underline-offset: 4px; } +.authors a:hover { color: var(--accent); text-decoration-color: var(--accent); } +.authors sup { font-size: 10px; padding-left: 2px; } +.affiliation { font-size: 13px; color: var(--muted); margin-top: 8px; } +.hero-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; } +.resource-links { display: flex; align-items: center; justify-content: center; gap: 19px; margin-top: 15px; color: var(--muted); font-size: 11px; } +.resource-links a:hover { color: var(--accent); } +.resource-links span { color: #cab9d2; } +.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; min-height: 47px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 550; transition: background .2s, transform .2s, border-color .2s; } +.button:hover { transform: translateY(-2px); } +.button-primary { color: white; background: var(--accent); box-shadow: 0 3px 5px #8c569b10; } +.button-primary:hover { background: var(--accent-strong); } +.button-secondary { background: #fff9; border-color: #d6ccdc; } +.button-secondary:hover { border-color: var(--ink); background: white; } +.button-quiet { color: #746879; padding-inline: 13px; } +.button-quiet:hover { background: #eee6f2; } +.button .icon { width: 17px; height: 17px; } +.button-arrow { margin-left: 13px; } +.paper-overview { max-width: 1020px; margin: 44px auto 0; padding: 24px 18px 20px; border-block: 1px solid var(--line); text-align: left; background: white; } +.overview-labels { display: grid; grid-template-columns: 73% 27%; align-items: center; margin: 0 8px 18px; font-size: 11px; color: var(--muted); letter-spacing: .02em; } +.overview-labels b { color: var(--accent); font: 10px var(--mono); margin-right: 10px; } +.paper-overview .figure-zoom { border-radius: 0; } +.paper-overview figcaption { font-size: 12px; margin-top: 18px; color: var(--muted); line-height: 1.8; } +.paper-overview figcaption > span { color: var(--accent); font: 10px var(--mono); margin-right: 12px; } + +.highlights { padding-top: 52px; display: grid; grid-template-columns: repeat(2, 1fr); text-align: center; } +.highlight { padding: 6px 20px; } +.highlight + .highlight { border-left: 1px solid var(--line); } +.metric-value { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 500; font-size: 47px; line-height: 1.2; letter-spacing: -.06em; color: var(--accent); } +.metric-value > span { font-size: 28px; margin-left: 3px; } +.metric-down { height: 27px; width: 27px; fill: none; stroke: currentColor; stroke-width: 1.4; margin-left: 5px; } +.highlight h2 { font-size: 14px; letter-spacing: -.015em; margin-top: 11px; } +.highlight p { font-size: 11px; color: var(--muted); margin-top: 5px; } +.highlights-note { font-size: 10px; max-width: 780px; margin: 26px auto 0; grid-column: 1 / -1; color: var(--muted); } +.highlights-note a { text-decoration: underline; text-underline-offset: 3px; } +.section-heading { margin-bottom: 38px; } +.section-kicker { display: block; color: var(--accent); margin-bottom: 19px; } +.section-heading h2, .citation-intro h2 { font-size: clamp(30px, 3.1vw, 39px); letter-spacing: -.04em; line-height: 1.18; } +.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; } +.split-heading > p { color: var(--muted); font-size: 14px; padding-bottom: 4px; line-height: 1.75; } +.overview-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 85px; } +.abstract > .eyebrow { font-size: 10px; } +.abstract p { font-size: 15px; color: #6b626f; line-height: 1.9; margin-top: 16px; } +.abstract strong { color: var(--ink); font-weight: 550; } +.abstract-more { margin-top: 20px; } +summary { cursor: pointer; } +.abstract-more summary { display: flex; align-items: center; gap: 14px; list-style: none; color: var(--accent); font-size: 12px; font-weight: 550; width: fit-content; } +.abstract-more summary::-webkit-details-marker { display: none; } +.abstract-more summary span { transition: transform .2s; font-size: 19px; } +.abstract-more[open] summary span { transform: rotate(45deg); } +.contributions { padding-top: 1px; } +.contributions article { display: flex; align-items: flex-start; gap: 19px; padding: 22px 0; border-bottom: 1px solid var(--line); } +.contributions article:first-child { padding-top: 0; } +.contributions article:last-child { border-bottom: 0; } +.contribution-number { font-family: var(--mono); color: var(--accent); font-size: 11px; line-height: 1.8; } +.contributions h3 { font-size: 17px; letter-spacing: -.04em; margin-bottom: 10px; } +.contributions p { color: var(--muted); font-size: 13px; line-height: 1.75; } + +.method-section { background: #f8f7f9; border-block: 1px solid var(--line); } +.normalization-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } +.normalization-card { min-width: 0; border: 1px solid var(--line); border-top: 3px solid; border-radius: 3px; padding: 28px 30px; } +.global-card { background: #fffdfb; border-top-color: #f7b06f; } +.agent-card { background: #fcf9fd; border-top-color: var(--accent); } +.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; } +.method-name { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -.04em; } +.global-card .method-name { color: #b5743e; } +.agent-card .method-name { color: var(--accent); } +.tag { font-size: 11px; color: var(--muted); } +.normalization-card h3 { font-size: 16px; letter-spacing: -.02em; line-height: 1.5; margin-top: 12px; font-weight: 400; color: var(--muted); } +.math-block { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: 8px; } +.math-block .katex-display { margin: .4em 0; } +.advantage-math { font-size: 23px; margin: 23px 0; min-height: 86px; display: grid; align-items: center; } +.normalization-card > p { font-size: 14px; color: var(--muted); line-height: 1.85; } +.normalization-outcome { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 23px; font-size: 11px; color: var(--muted); } +.outcome-dot { width: 6px; height: 6px; border-radius: 50%; background: #f7b06f; flex: 0 0 auto; } +.agent-card .outcome-dot { background: var(--accent); } +.statistics-panel { padding: 32px 8px 24px; } +.statistics-intro { text-align: center; } +.statistics-intro h3 { font-size: 19px; letter-spacing: -.03em; } +.statistics-intro p { margin-top: 9px; color: var(--muted); font-size: 13px; } +.statistics-equations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 17px auto; max-width: 920px; font-size: 17px; } +.statistics-equations > div + div { border-left: 1px solid var(--line); } +.method-footnote { max-width: 860px; margin: 15px auto 0; color: var(--muted); font-size: 11px; line-height: 1.8; text-align: center; } +.method-footnote a { color: var(--accent); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; } +.objective-panel { border-block: 1px solid var(--line); margin-top: 2px; } +.objective-panel summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 8px; list-style: none; gap: 24px; font-size: 14px; } +.objective-panel summary::-webkit-details-marker { display: none; } +.objective-panel summary .eyebrow { display: block; margin-bottom: 6px; color: var(--accent); font-size: 9px; } +.objective-plus { font-size: 24px; color: var(--accent); transition: transform .2s; } +.objective-panel[open] .objective-plus { transform: rotate(45deg); } +.objective-content { padding: 0 8px 25px; } +.objective-content > p { color: var(--muted); font-size: 13px; line-height: 1.85; } +.math-scroll { max-width: 100%; overflow: auto; margin: 22px 0; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 3px; } +.objective-math { width: max-content; max-width: none; min-width: 100%; font-size: 16px; overflow: visible; } +.objective-content .objective-note { font-size: 11px; } +.objective-note [data-math] { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: 5px; vertical-align: middle; line-height: 1.8; } +.objective-scroll-hint { display: none; } +.stability-panel { margin-top: 48px; padding: 26px; border: 1px solid var(--line); border-radius: 3px; background: white; } + +.stability-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 24px; } +.stability-heading .eyebrow { color: #85718e; font-size: 9px; } +.stability-heading h3 { font-size: 23px; letter-spacing: -.04em; margin-top: 8px; } +.figure-tag { font: 9px var(--mono); color: #817088; padding: 6px 9px; background: #f0ebf3; border-radius: 4px; } +.figure-zoom { display: block; position: relative; width: 100%; padding: 0; border: 0; background: white; border-radius: 5px; overflow: hidden; cursor: zoom-in; } +.figure-zoom img { width: 100%; } +.zoom-hint { position: absolute; right: 9px; bottom: 9px; display: flex; gap: 6px; align-items: center; padding: 6px 9px; background: #fdfafded; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 5px #00000008; color: #705777; font: 9px var(--body); opacity: 0; transition: opacity .2s; } +.zoom-hint .icon { width: 12px; height: 12px; } +.figure-zoom:hover .zoom-hint, .figure-zoom:focus-visible .zoom-hint { opacity: 1; } +figcaption { font-size: 10px; color: var(--muted); margin-top: 14px; line-height: 1.7; } +.framework-figure { padding: 27px 30px 20px; background: white; border: 1px solid var(--line); border-radius: 9px; } +.framework-figure figcaption { display: flex; gap: 25px; border-top: 1px solid #eee9f1; padding-top: 15px; margin-top: 20px; } +.framework-figure figcaption > span { color: #4e3c56; white-space: nowrap; } +.framework-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; margin-top: 37px; } +.feature-index { color: var(--accent-text); font-family: var(--mono); font-size: 10px; } +.framework-features h3 { font-size: 17px; letter-spacing: -.035em; margin-top: 14px; } +.framework-features p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 10px; max-width: 290px; } + +/* The chart and its numeric table share one source of truth. */ +.results-section { background: #f1edf4; border-block: 1px solid #e8e0ed; } +.results-explorer { border: 1px solid #dfd4e5; background: #fdfcfe; border-radius: 10px; padding: 28px; } +.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); } +.task-switch { display: flex; align-items: center; gap: 4px; padding: 4px; background: #eee7f2; border: 1px solid #e6ddec; border-radius: 6px; } +.task-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; background: transparent; color: #83708d; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 500; } +.task-switch button .icon { height: 16px; width: 16px; } +.task-switch button[aria-pressed='true'] { background: #fff; color: var(--accent); box-shadow: 0 2px 6px #39234b0b; border-color: #ddd0e5; } +.table-source { font-size: 11px; color: var(--muted); gap: 5px; } +.table-source .icon { width: 14px; height: 14px; } +.results-controls { display: flex; gap: 35px; padding-top: 24px; } +.results-controls .eyebrow { display: block; font-size: 9px; color: var(--muted); margin-bottom: 7px; } +.model-control select { color: var(--ink); border: 1px solid #dfd2e7; background: #fff; padding: 8px 32px 8px 10px; border-radius: 4px; min-width: 168px; font-size: 12px; min-height: 38px; cursor: pointer; } +.segmented { display: inline-flex; align-items: center; border: 1px solid #dfd2e7; border-radius: 4px; padding: 3px; gap: 3px; min-height: 38px; } +.segmented button { border: none; border-radius: 3px; background: transparent; font-size: 11px; padding: 5px 12px; color: #806c89; } +.segmented button[aria-pressed='true'] { background: #e8dbef; color: #6b447b; } +.metric-control { margin-left: auto; } +.result-summary { display: flex; align-items: center; gap: 28px; margin-block: 26px 16px; background: #f0e8f4; padding: 22px 25px; border-radius: 6px; } +.result-summary .eyebrow { font-size: 9px; color: #84708e; } +.result-summary strong { display: block; font-family: var(--display); font-size: 38px; font-weight: 500; line-height: 1.15; letter-spacing: -.07em; margin-top: 5px; color: #b87846; } +.result-summary strong > span { font-size: 19px; padding-left: 3px; } +.result-summary .drmas-summary strong { color: var(--accent); } +.result-summary .drmas-summary .eyebrow { color: var(--accent); } +.summary-arrow { color: #c9b5d3; padding-top: 18px; } +.summary-arrow .icon { width: 28px; height: 28px; stroke-width: 1; } +.summary-gain { margin-left: auto; text-align: right; } +.summary-gain > span { display: inline-block; background: #e4d4eb; color: #7c468e; padding: 5px 12px; border-radius: 4px; font-family: var(--mono); font-size: 14px; } +.summary-gain p { font-size: 10px; margin-top: 8px; color: #8f7b99; } +.table-wrap { overflow-x: auto; } +.results-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; } +.results-table caption { caption-side: top; text-align: left; font-family: var(--mono); font-size: 9px; color: var(--muted); padding: 4px 0 13px; } +.results-table th, .results-table td { padding: 12px 11px; border-bottom: 1px solid #ece5f0; text-align: right; white-space: nowrap; } +.results-table th:first-child, .results-table td:first-child { text-align: left; padding-left: 0; width: 18%; } +.results-table thead th { font-weight: 500; font-size: 10px; color: #82708b; } +.results-table tbody th { font-weight: 500; } +.results-table .bar-column { width: 43%; padding-inline: 30px; } +.chart-legend { display: flex; gap: 17px; font-size: 9px; color: #8a7992; } +.chart-legend > span { display: flex; align-items: center; gap: 5px; } +.chart-legend i { height: 6px; width: 6px; border-radius: 1px; } +.legend-grpo { background: #f7b06f; } +.legend-drmas { background: var(--accent); } +.bar-pair { width: 100%; display: flex; flex-direction: column; gap: 4px; } +.bar { height: 5px; border-radius: 1px; transition: width .45s ease; } +.grpo-bar { background: #f7b06f; } +.drmas-bar { background: var(--accent); } +.drmas-cell { color: var(--accent); font-weight: 600; background: #eef0f2; } +.gain-cell { color: var(--accent-text); font-family: var(--mono); font-size: 10px; } +.gain-cell.negative { color: #ad6e3a; } +.gain-cell.neutral { color: var(--muted); } +.average-row { background: #eef0f2; } +.results-table .average-row th { padding-left: 11px; } +.results-table .average-row td, .results-table .average-row th { font-weight: 600; border-bottom: 0; } +.results-notes { margin-top: 18px; font-size: 10px; line-height: 1.8; color: #817388; } +.results-notes > p { max-width: 790px; } +.results-notes details { margin-top: 11px; } +.results-notes summary { width: fit-content; font-size: 11px; color: #7d558c; } +.results-notes details p { margin-top: 8px; max-width: 800px; } +.efficiency-callout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; margin-top: 64px; } +.efficiency-copy > .eyebrow { font-size: 10px; color: var(--accent-text); } +.efficiency-copy h3 { font-size: 30px; letter-spacing: -.05em; margin-top: 14px; } +.efficiency-copy p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 17px; max-width: 435px; } +.efficiency-copy .text-link { margin-top: 17px; font-size: 11px; } +.efficiency-metrics { align-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } +.efficiency-metrics > div { display: flex; flex-direction: column; } +.efficiency-metrics > div + div { padding-left: 22px; border-left: 1px solid #ded1e5; } +.efficiency-number { font-family: var(--display); font-size: 48px; color: var(--accent-text); letter-spacing: -.07em; line-height: 1.2; } +.efficiency-number small { font-size: 23px; padding-left: 2px; } +.efficiency-metrics > div > span:nth-child(2) { font-size: 12px; font-weight: 500; margin-top: 10px; } +.efficiency-metrics > div p { font-family: var(--mono); font-size: 10px; color: #8c7496; margin-top: 7px; } +.efficiency-note { grid-column: 1 / -1; font-size: 9px; line-height: 1.9; color: #87738f; margin-top: 5px; } +.limitations { border-top: 1px solid #dfd4e5; margin-top: 52px; padding-top: 20px; font-size: 10px; line-height: 1.8; color: #83718c; } +.no-script-message { padding: 30px; border: 1px solid var(--line); } +.no-script-message a { text-decoration: underline; } + +.citation-section { display: grid; grid-template-columns: .6fr 1fr; gap: 70px; } +.citation-intro p { color: var(--muted); font-size: 13px; max-width: 245px; line-height: 1.8; margin-top: 19px; } +.citation-intro .text-link { margin-top: 22px; font-size: 12px; color: var(--accent); } +.citation-block { min-width: 0; align-self: center; background: #f0ebf3; border: 1px solid #e3d9e9; border-radius: 7px; position: relative; } +.citation-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid #e3d9e9; } +.citation-toolbar .eyebrow { color: #87718f; font-size: 10px; } +.copy-button { display: flex; align-items: center; gap: 6px; border: 1px solid #ddcee5; background: #fdfbfe; padding: 6px 10px; font-size: 10px; border-radius: 4px; min-height: 32px; } +.copy-button:hover { border-color: #b594c4; } +.copy-button .icon { width: 12px; height: 12px; } +.citation-block pre { margin: 0; padding: 23px 20px 27px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.9 var(--mono); color: #6e527b; } +.copy-status { position: absolute; font-size: 10px; color: var(--accent-text); right: 0; bottom: -27px; } +.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 32px 40px; border-top: 1px solid var(--line); } +.site-footer .wordmark { font-size: 20px; } +.site-footer .brand-mark { width: 22px; height: 22px; } +.site-footer p { text-align: center; font-size: 11px; color: #87778f; line-height: 1.9; } +.site-footer p span { font-size: 10px; color: #94889b; } +.site-footer .text-link { font-size: 11px; } +.figure-dialog { width: min(1400px, calc(100% - 40px)); max-height: 90dvh; margin: auto; padding: 25px; background: #fcfafd; border: 1px solid #e2d5e9; border-radius: 10px; color: var(--ink); } +.figure-dialog::backdrop { background: #21162ec9; backdrop-filter: blur(6px); } +.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; } +.dialog-close { display: grid; place-items: center; background: #ecdef2; border: 0; border-radius: 50%; width: 38px; height: 38px; } +.dialog-image-wrap { overflow: auto; background: white; border-radius: 5px; } +.dialog-image-wrap img { width: 100%; } +.figure-dialog > p { font-size: 12px; margin-top: 15px; color: var(--muted); } +.figure-dialog > .text-link { font-size: 11px; margin-top: 12px; } + +.hero-eyebrow, .hero h1, .hero-description, .authors, .affiliation, .hero-actions, .paper-overview { animation: enter .65s both; } +.hero h1 { animation-delay: .06s; } +.hero-description { animation-delay: .12s; } +.authors, .affiliation { animation-delay: .18s; } +.hero-actions { animation-delay: .24s; } +.reveal.ready { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; } +.reveal.visible { opacity: 1; transform: translateY(0); } +@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } + +@media (min-width: 1600px) { + .container { width: 1200px; } + .hero { padding-top: 60px; } + .hero-title { font-size: 44px; } +} +@media (max-width: 1000px) { + .container { width: calc(100% - 64px); } + .section { padding-block: 78px; } + .site-header nav { gap: 22px; } + .hero { padding-top: 54px; } + .hero-name { font-size: 60px; } + .hero-title { font-size: 35px; } + .hero-description { font-size: 14px; } + .overview-grid { gap: 45px; grid-template-columns: 1.25fr 1fr; } + .efficiency-callout { gap: 40px; } + .citation-section { gap: 40px; grid-template-columns: .55fr 1fr; } + .citation-block pre { font-size: 10px; } +} +@media (max-width: 760px) { + .container { width: calc(100% - 40px); } + .nav-wrap { height: 67px; } + .wordmark { font-size: 21px; } + .site-header nav { gap: 19px; font-size: 12px; } + .site-header nav .nav-code { display: none; } + .hero { padding-top: 45px; } + .hero-name { font-size: 55px; } + .hero-title { font-size: 31px; } + .hero-description { max-width: 500px; margin-inline: auto; } + .authors { gap: 7px 17px; font-size: 13px; } + .section { padding-block: 67px; } + .metric-value { font-size: 37px; } + .metric-value > span { font-size: 23px; } + .metric-down { height: 21px; width: 21px; } + .highlight { padding-inline: 15px; } + .highlight h2 { font-size: 12px; } + .highlight p { font-size: 9px; } + .highlights-note { font-size: 9px; max-width: 520px; } + .split-heading { gap: 25px; } + .split-heading > p { font-size: 12px; } + .overview-grid { grid-template-columns: 1fr; gap: 35px; } + .contributions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } + .contributions article, .contributions article:first-child { padding: 19px 0 0; border-bottom: 0; border-top: 1px solid var(--line); display: block; } + .contributions h3 { margin-top: 10px; font-size: 16px; } + .contributions p { font-size: 11px; } + .stability-panel { padding: 22px; } + .stability-heading h3 { font-size: 21px; } + .figure-tag { font-size: 8px; } + .framework-figure { padding: 20px; } + .framework-figure figcaption { flex-direction: column; gap: 3px; } + .framework-features { gap: 25px; } + .framework-features h3 { font-size: 15px; } + .framework-features p { font-size: 11px; } + .results-explorer { padding: 22px; } + .table-source { font-size: 10px; } + .task-switch button { font-size: 11px; padding: 9px 11px; } + .results-controls { gap: 20px; } + .model-control select { min-width: 132px; font-size: 11px; } + .segmented button { padding: 5px 9px; font-size: 10px; } + .result-summary { padding: 19px; } + .results-table .bar-column { padding-inline: 15px; width: 32%; } + .results-table th, .results-table td { padding-inline: 8px; } + .efficiency-callout { grid-template-columns: 1fr; gap: 35px; margin-top: 45px; } + .efficiency-metrics { max-width: 470px; } + .citation-section { grid-template-columns: 1fr; gap: 30px; } + .citation-intro h2 br { display: none; } + .citation-intro p { max-width: 450px; margin-top: 13px; } + .citation-intro .text-link { margin-top: 12px; } + .citation-block pre { font-size: 12px; } +} +@media (max-width: 540px) { + html { scroll-padding-top: 87px; } + .container { width: calc(100% - 36px); } + .site-header nav { position: absolute; top: 67px; left: 0; right: 0; padding: 12px 25px 24px; background: var(--paper); box-shadow: 0 12px 20px #3a254b0b; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: stretch; gap: 1px; font-size: 14px; } + .js .site-header nav { display: none; } + html:not(.js) .site-header { margin-bottom: 335px; } + .js .site-header nav.open { display: flex; } + .site-header nav .nav-code { display: flex; align-self: flex-start; margin: 10px 0 0; } + .site-header nav > a { padding-block: 10px; } + .site-header nav > a[aria-current]::after { display: none; } + .js .menu-toggle { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 5px; background: transparent; } + .menu-toggle span { width: 17px; height: 1px; background: var(--ink); transition: transform .2s; } + .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); } + .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); } + .hero { padding-top: 36px; } + .hero-eyebrow { font-size: 8px; gap: 8px; letter-spacing: .04em; } + .hero h1 { margin-top: 18px; } + .hero-name { font-size: 50px; } + .hero-title { font-size: clamp(25px, 6.65vw, 32px); margin-top: 14px; line-height: 1.26; max-width: 385px; margin-inline: auto; } + .desktop-break { display: none; } + .hero-description { font-size: 13px; line-height: 1.8; margin-top: 16px; max-width: 300px; } + .authors { max-width: 340px; margin: 20px auto 0; gap: 7px 15px; font-size: 12px; } + .affiliation { font-size: 11px; margin-top: 10px; } + .resource-links { flex-wrap: wrap; column-gap: 12px; font-size: 10px; } + .hero-actions { gap: 9px; flex-wrap: wrap; margin-top: 22px; } + .button { min-height: 43px; padding: 10px 14px; font-size: 11px; } + .button .icon { width: 15px; height: 15px; } + .button-arrow { margin-left: 8px; } + .button-quiet { padding: 10px 9px; gap: 6px; } + .highlights { padding-top: 30px; grid-template-columns: 1fr; text-align: left; } + .highlight { position: relative; padding: 22px 0 22px 44%; } + .highlight + .highlight { border-left: 0; border-top: 1px solid var(--line); } + .metric-value { position: absolute; left: 3px; top: 20px; font-size: 35px; } + .metric-value > span { font-size: 21px; } + .highlight h2 { font-size: 12px; margin-top: 0; } + .highlight p { font-size: 9px; } + .highlights-note { margin-top: 14px; font-size: 8px; line-height: 1.8; } + .section { padding-block: 56px; } + .section-heading { margin-bottom: 28px; } + .section-heading h2, .citation-intro h2 { font-size: 30px; } + .section-kicker { font-size: 9px; margin-bottom: 16px; } + .split-heading { flex-direction: column; align-items: flex-start; gap: 17px; } + .split-heading > p { font-size: 12px; } + .abstract p { font-size: 13px; line-height: 1.85; } + .contributions { display: block; } + .contributions article, .contributions article:first-child { display: flex; padding: 20px 0; gap: 15px; } + .contributions article:last-child { padding-bottom: 0; } + .contributions h3 { margin-top: 0; margin-bottom: 8px; font-size: 17px; } + .contributions p { font-size: 12px; } + .stability-panel { padding: 18px; margin-top: 35px; } + .stability-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 19px; } + .stability-heading h3 { font-size: 23px; } + .zoom-hint { opacity: 1; position: static; width: fit-content; margin: 8px 0 0 auto; background: #faf5fc; font-size: 8px; box-shadow: none; } + .figure-zoom { overflow: visible; } + figcaption { font-size: 9px; line-height: 1.8; } + .framework-figure { padding: 17px; } + .framework-features { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; } + .framework-features article { position: relative; padding-left: 44px; } + .feature-index { position: absolute; left: 0; top: 1px; } + .framework-features h3 { margin-top: 0; font-size: 17px; } + .framework-features p { font-size: 12px; margin-top: 7px; } + .results-explorer { padding: 17px; } + .results-toolbar { flex-direction: column; align-items: stretch; padding-bottom: 17px; gap: 10px; } + .task-switch { justify-content: center; } + .task-switch button { flex: 1; font-size: 10px; padding: 9px 5px; gap: 6px; } + .task-switch button .icon { width: 14px; height: 14px; } + .table-source { align-self: flex-end; } + .results-controls { gap: 16px 18px; flex-wrap: wrap; padding-top: 19px; } + .model-control { width: 100%; } + .model-control select { width: 100%; min-height: 41px; font-size: 12px; } + .metric-control { margin-left: auto; } + .segmented { min-height: 39px; } + .segmented button { padding: 6px 9px; min-height: 31px; } + .results-controls .eyebrow { font-size: 8px; } + .result-summary { padding: 17px 14px; gap: 20px; flex-wrap: wrap; } + .result-summary .eyebrow { font-size: 8px; } + .result-summary strong { font-size: 35px; } + .summary-arrow .icon { width: 22px; } + .summary-gain { margin-left: 0; border-top: 1px solid #e2d3eb; padding-top: 12px; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; } + .summary-gain > span { font-size: 11px; padding: 4px 8px; white-space: nowrap; } + .summary-gain p { font-size: 8px; margin-top: 0; } + .results-table { font-size: 10px; } + .results-table .bar-column { display: none; } + .results-table th, .results-table td { padding: 12px 7px; } + .results-table th:last-child, .results-table td:last-child { padding-right: 0; } + .results-table th:first-child, .results-table td:first-child { width: 36%; } + .results-table thead th { font-size: 9px; } + .results-table caption { font-size: 8px; white-space: normal; padding-bottom: 10px; } + .gain-cell { font-size: 9px; } + .results-notes { font-size: 9px; } + .results-notes summary { font-size: 10px; } + .efficiency-copy h3 { font-size: 29px; } + .efficiency-number { font-size: 45px; } + .efficiency-metrics { gap: 18px; } + .efficiency-metrics > div + div { padding-left: 18px; } + .efficiency-metrics > div > span:nth-child(2) { font-size: 11px; } + .limitations { font-size: 9px; margin-top: 30px; } + .citation-section { gap: 28px; } + .citation-block pre { font-size: 9px; padding: 18px 15px 22px; } + .citation-toolbar { padding: 11px 15px; } + .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 22px; padding-block: 26px 31px; } + .site-footer .wordmark { font-size: 20px; } + .site-footer p { grid-row: 2; grid-column: 1 / -1; text-align: left; font-size: 10px; } + .site-footer .text-link { grid-column: 2; grid-row: 1; } + .figure-dialog { width: calc(100% - 24px); padding: 17px; } + .dialog-image-wrap img { min-width: 850px; } + .figure-dialog > p { font-size: 10px; } +} + +@media (max-width: 1000px) { + .normalization-card { padding: 24px; } + .advantage-math { font-size: 21px; } + .normalization-outcome { font-size: 10px; } + .statistics-equations { font-size: 16px; } +} +@media (max-width: 760px) { + .paper-overview { padding-inline: 0; } + .normalization-comparison { gap: 18px; } + .normalization-card { padding: 22px 18px; } + .normalization-card h3 { min-height: 44px; } + .normalization-card > p { font-size: 13px; } + .advantage-math { font-size: 19px; } + .card-topline { align-items: flex-start; flex-direction: column; gap: 5px; } + .normalization-outcome { align-items: flex-start; font-size: 10px; line-height: 1.7; } + .outcome-dot { margin-top: 5px; } + .statistics-equations { font-size: 14px; gap: 18px; } + .objective-content .objective-scroll-hint { display: block; font-size: 10px; margin: -12px 0 20px; } +} +@media (max-width: 540px) { + .paper-overview { margin-top: 30px; padding-block: 18px; } + .overview-labels { grid-template-columns: 1fr 1fr; font-size: 9px; gap: 15px; margin-inline: 0; } + .overview-labels b { font-size: 8px; margin-right: 5px; } + .paper-overview figcaption { font-size: 11px; } + .normalization-comparison { grid-template-columns: 1fr; gap: 20px; } + .normalization-card { padding: 23px; } + .card-topline { align-items: center; flex-direction: row; } + .method-name { font-size: 23px; } + .normalization-card h3 { min-height: auto; font-size: 14px; } + .advantage-math { font-size: 22px; margin: 20px 0; } + .normalization-outcome { font-size: 11px; } + .statistics-panel { padding-inline: 0; } + .statistics-intro h3 { font-size: 19px; } + .statistics-intro p { font-size: 12px; } + .statistics-equations { grid-template-columns: 1fr; font-size: 16px; gap: 12px; margin-block: 20px; } + .statistics-equations > div + div { border-left: 0; } + .method-footnote { font-size: 11px; text-align: left; } + .objective-panel summary { padding-inline: 0; font-size: 13px; } + .objective-content { padding-inline: 0; } + .objective-content > p { font-size: 12px; } + .objective-math { font-size: 15px; } +} + +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + *, *::before, *::after { animation: none !important; transition: none !important; } + .reveal.ready { opacity: 1; transform: none; } +} +@media print { + body { background: white; color: black; } + .container { width: 100%; } + .site-header, .hero-actions, .copy-button, .zoom-hint, .menu-toggle, .figure-dialog, .skip-link { display: none !important; } + .section { padding-block: 30px; } + .hero { padding-top: 0; } + .hero-name { font-size: 60px; } + .hero-title { font-size: 28px; } + .reveal.ready { opacity: 1; transform: none; } + .method-section { color: black; background: white; } + .normalization-card, figure, .citation-block { break-inside: avoid; } + .method-section p, .method-section .section-kicker { color: #444; } + .results-controls, .results-toolbar { display: none; } +} diff --git a/website/src/theory.css b/website/src/theory.css new file mode 100644 index 00000000..e90980ff --- /dev/null +++ b/website/src/theory.css @@ -0,0 +1,238 @@ +/* Paper identities get their own full-width, unbroken equation rows. */ +.theory-panel { border: 1px solid var(--line); padding: 28px 30px; background: white; border-radius: 4px; margin-bottom: 34px; } +.theory-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; } +.theory-heading .eyebrow { color: var(--accent); font-size: 10px; } +.theory-heading h3 { font-size: 22px; letter-spacing: -.035em; line-height: 1.35; margin-top: 9px; max-width: 610px; } +.theory-heading .text-link { font-size: 11px; white-space: nowrap; padding-top: 3px; } +.theory-panel > p { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 850px; } +.theory-definitions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-block: 18px; padding: 10px 18px; background: #faf8fc; border-radius: 4px; } +.theory-definitions > div { min-width: 0; font-size: 16px; } +.theory-panel .theory-notation { font-size: 11px; margin-top: 6px; max-width: none; } +.theory-lemma { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; } +.theory-lemma .eyebrow, .theory-proposition .eyebrow { color: var(--accent); font-size: 10px; } +.theory-lemma h4, .theory-proposition h4 { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.4; margin: 8px 0; letter-spacing: -.025em; } +.theory-lemma p, .theory-proposition p { font-size: 12px; color: var(--muted); line-height: 1.85; max-width: 850px; } +.paper-equation { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c6b2cf transparent; } +.paper-equation .katex-display { width: max-content; min-width: 100%; margin-inline: 0; } +.theory-lemma > .paper-equation { padding: 22px 20px; margin-top: 20px; background: linear-gradient(100deg, #faf8fc, #f3edf7); border: 1px solid #e5dbea; border-radius: 4px; font-size: 18px; } +.theory-proposition { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); } +.theory-proposition > .paper-equation { font-size: 17px; margin-block: 18px; padding: 14px 18px; background: #faf8fc; } +.theory-growth { padding-block: 10px; } +.theory-growth .paper-equation { font-size: 16px; padding: 16px 18px; margin-block: 10px; } +.proof-sketch { border-top: 1px solid var(--line); margin-top: 22px; } +.proof-sketch summary { padding-top: 15px; font-size: 12px; display: flex; align-items: center; justify-content: space-between; list-style: none; } +.proof-sketch summary::-webkit-details-marker { display: none; } +.proof-sketch summary > span { color: var(--accent); font-size: 20px; } +.proof-sketch[open] summary > span { transform: rotate(45deg); } +.proof-setup { color: var(--muted); font-size: 12px; line-height: 1.85; margin-top: 18px; } +.proof-steps { list-style: decimal-leading-zero; padding-left: 26px; margin: 22px 0; } +.proof-steps li { padding-left: 12px; margin-top: 21px; } +.proof-steps li::marker { color: var(--accent); font: 12px var(--mono); } +.proof-steps h4 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 15px; } +.proof-steps p, .theory-caveat { color: var(--muted); font-size: 12px; line-height: 1.85; margin-top: 7px; } +.proof-steps .paper-equation { font-size: 15px; background: #faf8fc; padding: 16px; margin-top: 12px; } +.theory-caveat { border-left: 2px solid #d8b9e3; padding-left: 14px; } + +/* One parameter rail, one measurement, one response curve. */ +.gm-demo { --gm-orange: #b47743; --gm-tint: #fff4e9; --gm-active: var(--gm-orange); background: white; border: 1px solid #d9cbe1; border-radius: 8px; scroll-margin-top: 0; box-shadow: 0 10px 35px #4c265105; } +.gm-demo[data-remedy='true'] { --gm-active: var(--accent-strong); --gm-tint: #f2eaf7; } +.gm-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 27px 30px 25px; } +.gm-heading .eyebrow { color: var(--accent); font-size: 10px; } +.gm-heading h3 { font-size: 32px; line-height: 1.2; letter-spacing: -.045em; margin-top: 8px; } +.gm-intro { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 10px; max-width: 630px; } +.gm-sources { display: flex; flex-direction: column; gap: 7px; flex: 0 0 auto; font: 10px var(--mono); color: var(--accent-strong); } +.gm-sources a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #d5c1df; } +.gm-sources a:hover { text-decoration-color: currentColor; } +.gm-workspace { display: grid; grid-template-columns: 288px minmax(0, 1fr); border-block: 1px solid var(--line); } +.gm-parameters { min-width: 0; padding: 25px; background: linear-gradient(155deg, #faf8fc, #f5f0f8); border-right: 1px solid var(--line); } +.gm-rail-label { font-size: 9px; color: var(--muted); } +.gm-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 15px 0 23px; } +.gm-presets button { color: #786681; border: 1px solid #dfd3e5; background: #fff9; padding: 7px 8px; border-radius: 4px; font-size: 10px; min-height: 34px; } +.gm-presets button:hover { border-color: #b491c2; } +.gm-presets button[aria-pressed='true'] { color: var(--accent-strong); border-color: #b58bc6; background: #ede2f3; } +.gm-controls { display: grid; gap: 22px; } +.gm-controls fieldset { min-width: 0; border: 0; padding: 0; margin: 0; } +.gm-controls legend { padding: 0 0 11px; font: 500 12px var(--display); } +.gm-key { display: inline-block; width: 6px; height: 6px; border-radius: 2px; margin-right: 6px; vertical-align: middle; } +.gm-key-global { background: #f7b06f; } +.gm-key-agent { background: #8c569b; } +.gm-controls label { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 5px; } +.gm-controls label > span { display: inline-flex; align-items: baseline; gap: 5px; } +.gm-controls output { font: 11px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; } +.gm-controls input { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; margin: 4px 0 7px; --range-fill: 50%; } +.gm-control-global input { --range-color: #cf8c52; } +.gm-control-agent input { --range-color: #8c569b; } +.gm-controls input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--range-color) var(--range-fill), #e3dbe8 var(--range-fill)); } +.gm-controls input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6px; border: 2px solid white; border-radius: 50%; background: var(--range-color); box-shadow: 0 0 0 1px var(--range-color); } +.gm-controls input::-moz-range-track { height: 3px; border-radius: 3px; background: #e3dbe8; } +.gm-controls input::-moz-range-progress { height: 3px; background: var(--range-color); } +.gm-controls input::-moz-range-thumb { width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: var(--range-color); box-shadow: 0 0 0 1px var(--range-color); } +.gm-remedy-box { border-top: 1px solid #ddd0e5; padding-top: 19px; margin-top: 20px; } +.gm-remedy-box > .eyebrow { font-size: 9px; color: var(--accent); } +.gm-remedy-box .math-block { font-size: 15px; padding-block: 1px; margin: 6px 0 12px; } +.gm-remedy-box p { color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 10px; } +#apply-remedy { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 13px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: white; font-size: 12px; min-height: 43px; } +#apply-remedy::after { content: '\2192'; font-size: 17px; line-height: 1; } +#apply-remedy:hover { background: var(--accent-strong); } +#apply-remedy[aria-pressed='true'] { background: white; color: var(--accent-strong); border-color: #b694c5; } +#apply-remedy[aria-pressed='true']::after { content: '\21B6'; } +.gm-observation { min-width: 0; padding: 26px 30px 24px; } +.gm-result-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; } +.gm-result-heading > .eyebrow { font-size: 9px; color: var(--muted); } +.gm-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--gm-active); padding: 4px 8px; background: var(--gm-tint); border-radius: 3px; } +.gm-mode::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; } +.gm-reading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 23px 0 25px; border-bottom: 1px solid #eee8f1; } +.gm-number { display: flex; align-items: baseline; gap: 4px; color: var(--gm-active); font: 500 clamp(56px, 5.5vw, 76px)/1.04 var(--display); letter-spacing: -.075em; font-variant-numeric: tabular-nums; } +.gm-times { font-size: .43em; font-weight: 400; margin-left: 3px; } +.gm-reading-main > p { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: baseline; margin-top: 10px; line-height: 1.7; } +.gm-reading-main > p > strong { color: var(--gm-active); font: 12px var(--mono); } +.gm-reading-main > p > span { font-size: 10px; color: var(--muted); } +.gm-measure { min-width: 0; border-left: 1px solid #eee8f1; padding-left: 23px; } +.gm-measure > .eyebrow { color: var(--muted); font-size: 8px; letter-spacing: .065em; } +.gm-measure .math-block { font-size: 16px; padding-block: 2px; margin-block: 5px; } +.gm-measure .katex-display > .katex { text-align: left; } +.gm-measure > p { font-size: 10px; color: var(--muted); } +.gm-response-figure { margin-top: 21px; } +.gm-chart-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; } +.gm-chart-heading h4 { margin: 0; font: 500 13px var(--display); letter-spacing: -.015em; } +.gm-chart-heading > span { color: var(--muted); font: 8px var(--mono); } +.gm-response-figure svg { display: block; width: 100%; height: auto; } +.gm-grid { stroke: #eee8f1; stroke-width: 1; } +.gm-axis-label { fill: #87788e; font: 10px var(--mono); } +.gm-axis-title { font-size: 11px; } +.gm-curve-global { stroke: #e2a063; stroke-width: 2.8; fill: none; } +.gm-curve-agent { stroke: #8c569b; stroke-width: 2; fill: none; stroke-dasharray: 6 5; } +.gm-current-guide { stroke: #c6b6cf; stroke-dasharray: 3 4; } +.gm-current-point { stroke: white; stroke-width: 2; } +.gm-current-point[data-mode='global'] { fill: #b47743; } +.gm-current-point[data-mode='agent'] { fill: #8c569b; } +.gm-current-label { font: 12px var(--mono); fill: var(--ink); } +.gm-response-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--muted); font-size: 10px; margin-top: 7px; } +.gm-response-figure figcaption > span { display: inline-flex; align-items: center; gap: 6px; } +.gm-line-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid #e2a063; } +.gm-line-agent { border-top: 2px dashed #8c569b; } +.gm-dot-key { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #807185; } +.gm-sweep-note { color: var(--muted); font-size: 10px; line-height: 1.85; margin-top: 12px; } +.gm-breakdown { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 34px; align-items: center; padding: 22px 25px; border-bottom: 1px solid var(--line); background: #fcfafd; } +.gm-breakdown-heading > .eyebrow { font-size: 9px; color: var(--accent); } +.gm-breakdown-heading > p { font-size: 12px; margin-top: 6px; } +.gm-factor-state { display: inline-block; font: 9px var(--mono); color: var(--muted); margin-top: 7px; } +.gm-calculation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: center; } +.gm-calculation > div { min-width: 0; text-align: center; } +.gm-term-formula, .gm-total-label { display: block; font-size: 14px; min-height: 39px; } +.gm-total-label { padding-top: 7px; font: 11px var(--mono); color: var(--accent); } +.gm-calculation strong { display: block; font: 500 27px/1.2 var(--display); letter-spacing: -.04em; margin-top: 6px; font-variant-numeric: tabular-nums; } +.gm-total strong { color: var(--accent); } +.gm-total small { font-size: 16px; margin-left: 2px; } +.gm-term-label { display: block; font-size: 9px; line-height: 1.5; color: var(--muted); margin-top: 5px; } +.gm-operator { font: 300 22px var(--display); color: #bca4c7; padding-bottom: 10px; } +.gm-assumptions { padding: 19px 25px 22px; } +.gm-assumptions > .eyebrow { color: var(--muted); font-size: 8px; } +.gm-assumption-content { display: grid; grid-template-columns: auto 1fr; gap: 25px; align-items: center; margin-top: 6px; } +.gm-assumption-content .math-block { font-size: 13px; padding: 2px 0; min-width: 0; } +.gm-assumption-content p, .gm-caveat { color: var(--muted); font-size: 10px; line-height: 1.85; } +.gm-caveat { margin-top: 7px; } +.gm-noscript { padding: 18px; border: 1px solid var(--line); font-size: 13px; } + +.remedy-intro { text-align: center; max-width: 100%; margin: 48px auto 30px; } +.remedy-intro > .eyebrow { color: var(--accent); font-size: 10px; } +.remedy-intro h3 { font-size: 30px; line-height: 1.17; letter-spacing: -.035em; margin-top: 12px; } +.remedy-intro > p { font-size: 13px; color: var(--muted); line-height: 1.85; margin: 14px auto 0; max-width: 850px; } +.remedy-intro > .paper-equation { font-size: 17px; margin-top: 15px; padding: 18px; border-block: 1px solid var(--line); } +.remedy-intro > .remedy-note { font-size: 11px; margin-top: 8px; } +.appendix-evidence { border-top: 1px solid var(--line); margin-top: 22px; } +.appendix-evidence h4 { font-family: var(--display); font-size: 16px; font-weight: 500; line-height: 1.5; margin: 21px 0 10px; color: var(--accent-strong); } +.appendix-evidence > p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 15px; } + +@media (max-width: 1000px) { + .theory-heading { flex-direction: column; gap: 12px; } + .theory-lemma > .paper-equation { font-size: 16px; } + .gm-workspace { grid-template-columns: 248px minmax(0, 1fr); } + .gm-parameters { padding: 22px; } + .gm-observation { padding: 23px; } + .gm-reading { gap: 15px; } + .gm-number { font-size: 57px; } + .gm-measure { padding-left: 15px; } + .gm-measure .math-block { font-size: 14px; } + .gm-breakdown { grid-template-columns: 204px minmax(0, 1fr); gap: 22px; } + .gm-calculation { gap: 12px; } +} +@media (max-width: 850px) { + .gm-workspace { grid-template-columns: 1fr; } + .gm-parameters { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 26px; border-right: 0; border-bottom: 1px solid var(--line); } + .gm-rail-label, .gm-presets { grid-column: 1 / -1; } + .gm-presets { display: flex; flex-wrap: wrap; margin-bottom: 20px; } + .gm-presets button { padding-inline: 12px; } + .gm-controls { grid-template-columns: 1fr 1fr; gap: 20px; } + .gm-remedy-box { border-top: 0; border-left: 1px solid #ddd0e5; margin: 0; padding: 0 0 0 24px; align-self: center; } + .gm-breakdown { grid-template-columns: 1fr 2fr; } + .gm-assumption-content { grid-template-columns: 1fr; gap: 5px; } +} +@media (max-width: 600px) { + .theory-panel { padding: 22px 17px; } + .theory-heading h3 { font-size: 20px; } + .theory-heading .eyebrow { font-size: 9px; } + .theory-definitions { grid-template-columns: 1fr; gap: 2px; padding: 8px 12px; } + .theory-definitions > div { font-size: 14px; } + .theory-lemma h4, .theory-proposition h4 { font-size: 18px; } + .theory-panel .theory-notation { font-size: 10px; } + .theory-lemma > .paper-equation, .theory-proposition > .paper-equation { font-size: 15px; padding: 16px 12px; } + .theory-growth .paper-equation { font-size: 14px; padding-inline: 10px; } + .proof-steps { padding-left: 19px; } + .proof-steps li { padding-left: 4px; } + .proof-steps .paper-equation { font-size: 14px; padding-inline: 12px; } + .theory-caveat { font-size: 11px; } + .gm-heading { display: block; padding: 23px 20px; } + .gm-heading h3 { font-size: 29px; } + .gm-heading .eyebrow { font-size: 9px; } + .gm-sources { flex-direction: row; gap: 18px; margin-top: 15px; } + .gm-parameters { display: block; padding: 22px 20px; } + .gm-presets { display: grid; grid-template-columns: 1fr 1fr; } + .gm-presets button { font-size: 10px; padding-inline: 6px; } + .gm-controls { gap: 20px; } + .gm-controls legend { font-size: 11px; min-height: 27px; } + .gm-controls label { font-size: 10px; } + .gm-controls output { font-size: 10px; } + .gm-remedy-box { margin-top: 20px; padding: 17px 0 0; border-left: 0; border-top: 1px solid #ddd0e5; } + .gm-remedy-box .math-block { margin: 4px 0 10px; } + .gm-remedy-box p { text-align: center; } + .gm-observation { padding: 22px 18px; } + .gm-reading { grid-template-columns: 1fr; gap: 20px; padding-block: 24px; } + .gm-number { font-size: 62px; } + .gm-reading-main > p { gap: 5px 10px; } + .gm-measure { border-left: 0; border-top: 1px solid #eee8f1; padding: 16px 0 0; } + .gm-measure .math-block { font-size: 16px; } + .gm-chart-heading { flex-direction: column; gap: 6px; align-items: flex-start; } + .gm-chart-heading h4 { font-size: 13px; } + .gm-response-figure figcaption { gap: 9px 14px; font-size: 9px; } + .gm-breakdown { grid-template-columns: 1fr; padding: 20px 18px; gap: 18px; } + .gm-breakdown-heading { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 5px 15px; } + .gm-breakdown-heading > .eyebrow { grid-column: 1 / -1; } + .gm-breakdown-heading > p, .gm-factor-state { margin-top: 0; } + .gm-calculation { gap: 8px; } + .gm-calculation strong { font-size: 24px; } + .gm-term-formula { font-size: 13px; } + .gm-term-label { font-size: 9px; } + .gm-assumptions { padding: 17px 18px 20px; } + .gm-assumption-content .math-block { font-size: 12px; } + .remedy-intro { margin-top: 38px; } + .remedy-intro h3 { font-size: 28px; } + .remedy-intro > .paper-equation { font-size: 15px; padding-inline: 10px; } +} +@media (max-width: 360px) { + .gm-controls { gap: 14px; } + .gm-controls label > span { gap: 3px; } + .gm-number { font-size: 56px; } + .gm-calculation { gap: 6px; } + .gm-calculation strong { font-size: 19px; } + .gm-total small { font-size: 13px; } + .gm-term-formula { font-size: 12px; } + .gm-term-label { font-size: 8px; } +} +@media (forced-colors: active) { + .gm-controls input { --range-color: Highlight; } + .gm-controls input::-webkit-slider-runnable-track { background: Canvas; border: 1px solid ButtonText; } + .gm-controls input::-webkit-slider-thumb { background: Highlight; border-color: ButtonText; } + .gm-controls input::-moz-range-track { background: Canvas; border: 1px solid ButtonText; } + .gm-controls input::-moz-range-thumb { background: Highlight; border-color: ButtonText; } +} diff --git a/website/vite.config.js b/website/vite.config.js new file mode 100644 index 00000000..aea0b771 --- /dev/null +++ b/website/vite.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from 'vite'; +import { renderMath } from './scripts/render-math.mjs'; + +export default defineConfig({ + base: './', + plugins: [{ + name: 'prerender-paper-math', + transformIndexHtml: { order: 'pre', handler: renderMath }, + }], +});