diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/.gitignore b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/.gitignore new file mode 100644 index 00000000..02bc48d3 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/.gitignore @@ -0,0 +1,5 @@ +node_modules +dist +dist-ssr +*.local +.DS_Store diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/README.md b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/README.md new file mode 100644 index 00000000..6e5e9a34 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/README.md @@ -0,0 +1,58 @@ +# 在不遗忘中学会学习:最大化迁移、最小化干扰 交互式教程 + +基于论文 *Learning to Learn without Forgetting by Maximizing Transfer and Minimizing Interference*,由 **paper-skill** 生成的完整 React + TypeScript + Vite 网页项目。 + +## 本地运行 + +本项目由 paper-skill 的论文专属章节和交互组件生成。 + +```bash +npm install +npm run dev # 开发预览 http://localhost:5173 +npm run build # 产出 dist/ 静态站点 +npm run preview # 预览构建结果 +``` + +最终提交应保留整个项目目录,不要只复制 `index.html` 或 `dist/`。 + +## PPT 演示模式 + +每章包含多张独立幻灯片,每页固定为 1600×900。顶部翻页,左侧预览选页, +“讲稿”打开演讲者备注,“放映”进入全屏。方向键翻页时不会抢占输入控件。 +手机保持原有排版,支持双指缩放、放大后拖动以及缩放复位。 + +首页的两种方法通过 `useCoverPlayback()` 同步播放同一生活场景,并用一句话引出 +核心方法。正文可以直接点击或拖动画布里的物体,也可以用少量关联滑块组成 +一个完整实验;不同页面应选择主题内不同的生活动作,而不是重复同一动画。 +不同页面按教学问题安排生活场景、交互、论文公式或实验结果;同页并置的画面与 +形式化表示由同一状态驱动,其他依据可放在独立页面或讲稿中。 +不需要为动画添加播放、暂停、单步、重置或标签切换控件。 + +通过 `chapters[].scenes` 指定每页目标、讲稿和专属 `componentId`;正文通过统一组件注册表注册,版面按内容自由设计。 +正文在固定画布内自由构图;生成器应按教学问题安排视觉重点,不能让每页都成为左图右卡。 +新项目不再提供固定的“左图右文”引入页或“三列文字”总结页。结论应融入大幅动画、 +交互结果或充分可读的论文证据图。 +正文使用 `--ppt-body-text`、`--ppt-body-heading`、`--ppt-body-emphasis` 三种字号;删掉重复的小标签,给公式、机制和结果留足可读空间。生活动画用于引入和解释合适的概念,其他页面可以直接操作论文变量、结构或证据。详细出处与类比边界放入讲稿,密集内容拆成新页。 +`outlines.json` 由章节组装器生成。页面截图存入 `public/thumbnails/`; +`?capture=1&slide=页面ID` 可在 1600×900 窗口中单独捕获页面。 + +## 目录结构 + +| 路径 | 说明 | 是否生成器(Agent)修改 | +| ---- | ---- | ---- | +| `src/data/tutorial.ts` | 论文专属内容(章节、模块、公式、B 站、元信息) | ✅ 唯一数据文件 | +| `src/styles/paper.css` | 论文专属 `:root` 配色覆盖 | ✅ 仅此 CSS | +| `src/modules/*.tsx` + `registry.tsx` | 论文专属 Canvas 交互组件 | ✅ 在 registry 注册 | +| `public/images/*` | 论文原图(可选) | ✅ 仅放图 | +| `public/thumbnails/*` | 幻灯片截图 | ✅ 生成后截图 | +| `outlines.json` | 每页目标、交互与讲稿 | 由组装器派生 | +| `src/components/*` | 演示框架与场景展示组件 | ❌ 模板框架默认 | +| `src/lib/*` | 静态工具(canvasKit / B 站) | ❌ 模板框架默认 | +| `src/styles/{tokens,components,presentation}.css` | 设计令牌、组件与演示样式 | ❌ 模板框架默认 | + +## 配色语义(contract.md §5,保持稳定) + +- `--blue` 指导/当前状态,`--green` 成功/本文方法,`--red` 失败/传统方法 +- `--orange` 用户强调,`--purple` 辅助机制 + +切勿把 `--accent` 重新定义成别的语义角色。 diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/index.html b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/index.html new file mode 100644 index 00000000..3a27864b --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/index.html @@ -0,0 +1,13 @@ + + + + + + + 在不遗忘中学会学习:最大化迁移、最小化干扰 · 交互式教程 + + +
+ + + diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/outlines.json b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/outlines.json new file mode 100644 index 00000000..e79ef9e8 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/outlines.json @@ -0,0 +1,135 @@ +{ + "title": "在不遗忘中学会学习:最大化迁移、最小化干扰", + "pages": [ + { + "id": "c1-sequential", + "chapterId": "chap-1", + "title": "任务一个接一个,分数一路下滑", + "goal": "直观看到:顺序学习新任务会让旧任务的表现不断退化。", + "summary": "在线 SGD 逐样本更新,旧任务被覆盖", + "interaction": "拖动「训练进度」滑块,观察各任务的准确率曲线如何变化。", + "next": "用一个统一的指标衡量遗忘", + "snippet": "跑步类比:一个运动员先练短跑再只练耐力,再回到短跑会发现成绩退步。在线学习逐样本做梯度下降,参数不断远离旧任务的最优点,这就是灾难性遗忘。本文 Fig.1 之前大量工作把「旧知识被覆盖」当成核心障碍。" + }, + { + "id": "c1-metrics", + "chapterId": "chap-1", + "title": "遗忘怎么衡量:RA、LA、BTI", + "goal": "理解论文用来比较方法的三个指标,尤其是「越负遗忘越重」的 BTI。", + "summary": "RA=最终保留准确率,BTI=学完到结束的变化", + "interaction": "阅读三个指标的定义与方向,注意 BTI 为负表示遗忘。", + "next": "认识迁移与干扰这对概念", + "snippet": "RA(Retained Accuracy)是 20 个任务学完后对所有任务测的最终准确率,越高越好;LA 是每个任务刚学完立刻测的平均准确率;BTI(Backward Transfer and Interference)是每个任务从「刚学完」到「训练结束」的准确率变化,负数表示遗忘。本文以 RA 为主指标。" + }, + { + "id": "c2-dot", + "chapterId": "chap-2", + "title": "梯度点积决定迁移还是干扰", + "goal": "用公式 1/2 亲身体会:点积为正时学一个帮另一个,为负时学一个害另一个。", + "summary": "∂Lᵢ · ∂Lⱼ 的符号就是迁移/干扰", + "interaction": "拖动两个梯度箭头改变夹角,观察点积符号和「一步 SGD 后样本 j 损失变化」的联动。", + "next": "看权重共享如何放大这两种潜力", + "snippet": "跑步类比:两个训练动作如果发力方向一致(点积为正),练 A 会让 B 更好;如果方向相反(点积为负),练 A 会破坏 B。论文 Eq.1/2 正是用两个样本损失梯度的点积来操作性定义迁移(>0)与干扰(<0)。" + }, + { + "id": "c2-sharing", + "chapterId": "chap-2", + "title": "权重共享越多,迁移与干扰都越强", + "goal": "理解为什么「减少共享」能防遗忘却牺牲了未来的迁移能力。", + "summary": "共享比例决定两种潜力,这是对称视角的关键", + "interaction": "拖动「共享比例」滑块,观察迁移潜力与干扰潜力两条曲线同步上升。", + "next": "看看三种旧方法分别怎么取舍", + "snippet": "跑步类比:一套身体(共享的肌肉与习惯)练不同项目,共用越多,一项训练对另一项的影响(好或坏)越大;完全不共用则两者互不影响。论文 Appendix C 论证:参数子集重叠越多,点积可能非零的范围越大,迁移与干扰的潜力同时上升。" + }, + { + "id": "c3-baselines", + "chapterId": "chap-3", + "title": "EWC、GEM、回放各自怎么取舍", + "goal": "看清三种旧方法都只盯着「向后干扰」,因此都没法兼顾未来的迁移。", + "summary": "EWC 压参数、GEM 投影梯度、回放补旧样本", + "interaction": "点选 EWC / GEM / 经验回放,观察它们对同一个冲突梯度分别做了哪种改造。", + "next": "进入本文的 MER 机制", + "snippet": "EWC 按 Fisher 信息重要度把旧任务重要的参数「钉住」,本质是减少共享;GEM 用一个二次规划把新梯度投影到「不与旧记忆冲突」的方向(Eq.8,g·g_old ≥ 0),是逐样本的临时修正;经验回放靠补旧样本近似平稳分布。三者都只处理向后干扰,没有学到「以后怎么共享参数」,这正是 MER 要补的。" + }, + { + "id": "c4-reservoir", + "chapterId": "chap-4", + "title": "蓄水池采样:有限记忆公平代表过去", + "goal": "理解为什么 MER 用蓄水池采样而不是「只留最近」,从而近似平稳分布。", + "summary": "每个已见样本留在记忆中的概率都是 M/N", + "interaction": "点击「喂入下一个样本」,观察记忆被替换的时机与每个样本的保留概率。", + "next": "看回放里嵌入的 Reptile 元更新", + "snippet": "跑步类比:一本只能记 5 页的训练日志,用「抽签」决定新动作替换哪一页,让很久以前的训练也有机会留在本子里。蓄水池采样(Algorithm R,Vitter 1985)保证任一已见样本留在记忆中的概率等于 M/N,这是 Eq.5 近似平稳分布、以及 Reptile 的随机性假设在在线设定下成立的关键(App. I)。" + }, + { + "id": "c4-reptile", + "chapterId": "chap-4", + "title": "Reptile:走几步再折返的元学习", + "goal": "理解 Reptile 的「先走 k 步、再按总位移折返」如何等价地优化出梯度点积项。", + "summary": "元更新里自然出现 ∑ᵢ<ⱼ ∇Lᵢ·∇Lⱼ 的对齐项", + "interaction": "点击「执行一轮」,看参数在损失地形上走 2 步后,元更新把它折返到哪。", + "next": "把回放和元更新串成 MER", + "snippet": "Reptile 每轮抽 s 个批次、每个批次内走 k 步 SGD,然后 θ ← θ₀ + β(θ_k − θ₀)。Nichol & Schulman 的一阶展开显示,这个元更新近似最小化 ∑ᵢ 2L(Bᵢ) − α∑ᵢ<ⱼ ∇L(Bᵢ)·∇L(Bⱼ)——正是论文想要的「少损失、多对齐」(Eq.6)。" + }, + { + "id": "c4-algorithm", + "chapterId": "chap-4", + "title": "MER 一步:回放、批内、批间三层更新", + "goal": "把算法 1 的每一步走通,看清当前样本与记忆样本如何穿插、γ=1 时等价于一次大 Reptile。", + "summary": "s 个批次 × 每批 k 个样本,批内 β、批间 γ 各一次元更新", + "interaction": "点击「下一步」逐步执行:采样 → 批内逐样本 SGD → 批内元更新 → 批间元更新 → 更新记忆。", + "next": "看看 s 和对齐强度怎么影响正则", + "snippet": "算法 1:每个新样本配 s 个批次,每批 = 当前样本 + k−1 个记忆样本;每批内逐样本做 SGD(学习率 α、批大小 1),批内做一次 Reptile 元更新(β),s 个批次后再做一次批间元更新(γ),最后蓄水池更新记忆。γ=1 时与一次大 Reptile 等价(App. I)。" + }, + { + "id": "c4-alpha", + "chapterId": "chap-4", + "title": "对齐强度 γ 与有效 s:正则的权重", + "goal": "理解为什么把固定记忆拆成逐样本长序列能放大对齐正则的权重。", + "summary": "普通损失权重 ∝ s,对齐正则权重 ∝ s(s−1)/2", + "interaction": "拖动「有效 s」,观察普通损失项与对齐正则项的权重比例变化。", + "next": "用论文的实验数据检验它", + "snippet": "Eq.6 中普通损失项权重正比于 s,对齐正则项(梯度点积和)权重正比于 s(s−1)/2。因此在记忆抽取量固定时,把它拆成更长的逐样本序列(增大 s)能显著提高正则相对权重——论文报告这样做始终优于按批次处理。实验中 γ=1、β<1 以降低跨批次高阶项的扰动(App. I)。" + }, + { + "id": "c5-bench", + "chapterId": "chap-5", + "title": "20 任务基准:MER 全面领先", + "goal": "读懂 Table 1/2:RA 越高越好,且缓冲越小 MER 相对 GEM 的优势越大。", + "summary": "旋转 89.56 vs 87.58;缓冲 200 时领先约 10 个点", + "interaction": "切换 MNIST Rotations / Permutations 与缓冲大小 5120 / 500 / 200,观察柱状图与反馈。", + "next": "看环境更非平稳时会发生什么", + "snippet": "Table 1(20 任务、每任务 1000 样本、记忆 5120):Rotations 上 MER 的 RA=89.56、GEM=87.58、EWC=57.96、Online=53.38;Permutations 上 MER=85.50、GEM=83.02、EWC=62.32、Online=55.42。Table 2:缓冲 200 时 Rotations 上 MER=77.42 对 GEM=67.38,Permutations 上 MER=73.46 对 GEM=55.42。" + }, + { + "id": "c5-stationarity", + "chapterId": "chap-5", + "title": "环境越非平稳,MER 的优势越大", + "goal": "从 Many Permutations、Omniglot 和梯度点积表看到:任务越多、样本越少,MER 越突出。", + "summary": "Omniglot 上 MER 75.23 对 GEM 18.03;点积由负转正", + "interaction": "切换 Many Permutations / Omniglot,并对比 ER 与 MER 的平均梯度点积。", + "next": "回到现实,看它的适用边界", + "snippet": "Table 3:Many Permutations(100 任务×200 样本)RA 为 Online 32.62、EWC 33.46、GEM 56.76、MER 62.52;Omniglot(50 字母表)RA 为 Online 4.36、EWC 4.63、GEM 18.03(记忆 500 时 GEM 无法收敛)、MER 75.23。Table 4 的平均梯度点积:ER 在三基准分别为 −0.569/−1.652/−1.280,MER 为 +0.042/+0.017/+0.131。" + }, + { + "id": "c6-limits", + "chapterId": "chap-6", + "title": "什么时候不该用 MER", + "goal": "形成批判性判断:知道 MER 依赖哪些条件,哪些场景会打折扣。", + "summary": "依赖存样本与任务相似性;超参搜索更大", + "interaction": "点开四张场景卡片,逐条看清它的假设、代价与改进方向。", + "next": "用三句话把方法带走", + "snippet": "① 依赖存储原始样本,隐私/存储受限时不可用(可结合生成式回放或 MoE,作者在 App. B 提到);② 超参搜索空间比基线大(App. M 用换种子/机器验证了定性结论不变);③ 迁移泛化依赖任务间存在相似性,剧烈域漂移下收益有限(Sec 6 Q5);④ 实验集中在小型 MLP/CNN 与简单 RL,未验证大规模模型。这些都是「结论成立的条件」,不应把条件性设计讲成普适结论。" + }, + { + "id": "c6-takeaway", + "chapterId": "chap-6", + "title": "三句话把 MER 带走", + "goal": "把「问题—洞察—方法」压缩成三条可复述的判断,而不是背公式。", + "summary": "遗忘=干扰;用回放+对齐同时顾过去和未来;小记忆也够用", + "interaction": "依次回看三条要点,并对照上一份 EWC 报告的视角差异。", + "next": "", + "snippet": "三条:① 持续学习不是「新旧二选一」,而是迁移(点积>0)与干扰(点积<0)的时间对称权衡;② MER 用经验回放近似平稳分布、用 Reptile 一阶近似最大化点积,学会「何时共享参数」;③ 小记忆(蓄水池采样)就够,越非平稳优势越大。对比 EWC:EWC 是「减少共享、钉住重要参数」,MER 是「学会何时共享」——从保护过去升级为同时经营未来。" + } + ] +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/package-lock.json b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/package-lock.json new file mode 100644 index 00000000..e0197df9 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/package-lock.json @@ -0,0 +1,1864 @@ +{ + "name": "mer-tutorial", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "mer-tutorial", + "version": "1.0.0", + "dependencies": { + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", + "@vitejs/plugin-react": "^4.7.0", + "typescript": "^5.6.3", + "vite": "^6.4.3" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.13", + "resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.29.13.tgz", + "integrity": "sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.13", + "@babel/helper-compilation-targets": "^7.29.13", + "@babel/helper-module-transforms": "^7.29.13", + "@babel/helpers": "^7.29.13", + "@babel/parser": "^7.29.13", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.13", + "@babel/types": "^7.29.11", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.14", + "resolved": "https://registry.npmmirror.com/@babel/generator/-/generator-7.29.14.tgz", + "integrity": "sha512-qSY56jgW5JnSXzuekLVil6zaOQxOCtOHidr65KkaMBw772IuAY28Qx4ZykAcDn8+FRF15qk80XzKwgSc/RYW6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.14", + "@babel/types": "^7.29.14", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.13", + "resolved": "https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.13.tgz", + "integrity": "sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.14", + "resolved": "https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.29.14.tgz", + "integrity": "sha512-2XDvQVd9JESaOgGc4jT2/jquTAO7ppA5noTZQqH+MmZ89yjCzScLwtCPbWtkPZylL+TLWR49IwWmk+QkRR4GsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.14" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.14", + "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.29.14.tgz", + "integrity": "sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.14", + "resolved": "https://registry.npmmirror.com/@babel/helpers/-/helpers-7.29.14.tgz", + "integrity": "sha512-6E3Mi1r0B0umq6vmZa4/78q+64fqO2YY0THUdjDPKUCKhNb0yQy5NQIaPHCSD3ryTgiTss//P4JsWS80AsZ6LQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.14" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.14", + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.29.14.tgz", + "integrity": "sha512-VL220vXuyO2z3rNIQwY7ftj9UwpqOt+33sH+sBWkOekbsSR2g7EEMnOx24ZlCH0xOA3DM/33SifVFGbnJD8r/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.14" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz", + "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz", + "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.14", + "resolved": "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.29.14.tgz", + "integrity": "sha512-RAdQJrBgmIH1FWvN0X+1hoDxzMzlP4cv/1Zi4dn4tG1H0cTb+rw7CzUxQJhp1f4ANd8j5vH3fy8BAWFGkBDEsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.14", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.14", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.14", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.14", + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.29.14.tgz", + "integrity": "sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.14", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz", + "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.27", + "resolved": "https://registry.npmmirror.com/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", + "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.68.4.tgz", + "integrity": "sha512-8AfICPTDNFpsRltDrWzlX3iVEwHubamhXc10bjOJRCl4eZXj+BE25uCVMYzFpbcqfuxSfrt4VkSVL5QqiHoVDQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.68.4.tgz", + "integrity": "sha512-Vs4CxDXeCrCVNZ9jPnicohYT7aX7cxLzjMepkno/7f1zFhC80OUsKHM03BJsusLfYnjKrUe7D8vPvQNdD+rjCg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-x64": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-x64/-/rollup-android-x64-4.68.4.tgz", + "integrity": "sha512-EEytXPqw9k5OIyx1Cou+Xg8XhTwtWW31WIGq1cWTpX05ek6STIprxJ5wY6cOEZAk5sjXM/mE2/JohNhtUiPukg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.68.4.tgz", + "integrity": "sha512-eRYMGvFdL3TKnaXlacxifKMltpLxehT0XghbV5pPfzJUNCc+psia9rg/scZZPfeDK+VKpSZx9VoMz236yeYEaQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.68.4.tgz", + "integrity": "sha512-w+E1P+Ul1PgoAiH22tcONSEyx+3VjUcSIZeqr1QSOSC5vvawduMVtgD1ZtfQsPHkpTN/VJekrgN3JL2+YKhaDQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.68.4.tgz", + "integrity": "sha512-nukgdVNAx7X07qu8nZjJwuCRW/yDjLIio83yXhKUkuUUXTlmEGjVRN+XxrzxnkhiTRfHnqC/OYAga3t7vMQkAw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.68.4.tgz", + "integrity": "sha512-o5vn+twqv2XwxEpseC76YCNXpCXoRlPmr+ZYpSnmlxbFh5kdHysap9V93cS1hzAXtK6xuXa5kdtS+/8rkUfs4Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.68.4.tgz", + "integrity": "sha512-b2w9laiL8oWofYqGF+ABzin9wNMPxzHRD21EIPJ5A0iniq19d3flE4UP7uZKl1gj+d3Kv/bt1htVUSzI0bE1TQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.68.4.tgz", + "integrity": "sha512-Ao858LxFnvGrn4qbin3rr+LmEhOrF9pQKgzEnT14f9KjOpytd5smOuj7OOtkejJ7YVb5cBdPpYdT1zjwNcNq9g==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.68.4.tgz", + "integrity": "sha512-B78SoWLJeAleSOIDFZ+twb+7DoBla0g73LrdkxlkNwicAsrLfHeYX+NcPlOmxZ3Z8vKVvj0J/kmIMzEaqbQNGg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.68.4.tgz", + "integrity": "sha512-IK0JVhVLGer5AlmgU0eMbfuldxO1wNACZBwyq+ot9UW899hhkWPcO3k0eIrNlqmuWrySvMtzr7GK9xkbNekOTQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.68.4.tgz", + "integrity": "sha512-6MoYXMYy+6eqtVesSNehfsS3LY4A0P8MpHfhcnMkVsWVhaLv0vvuCj2EGkanchIoyHxAmxY+aR3ankaTkokC2A==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.68.4.tgz", + "integrity": "sha512-mo+MC3fHiG4EOdtp7uGSvBv/4hKpqxhV16QGpXn2D0mTBBiOW6hGIOXUK7nck8THlURRWjYdtUPvvJfxHKZ/2w==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.68.4.tgz", + "integrity": "sha512-uBRu6ztHsmoW/10bPsOVbhW8ie4Puw6+CQD/XLRGqr3ugv6pRNm3b4vebiwouhCgkjJ/ItJdqHKJ3mVhpr/wQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.68.4.tgz", + "integrity": "sha512-XNY+QlYWmhqzeiMdOKjziVnx6aP5cXSxbk4rDqbb+MH2IcNiIZWX1wPRfAVV6ntiM17XHJJ2WUNcxnglDNH69A==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.68.4.tgz", + "integrity": "sha512-agahuMApMIOQgJMNEaJNtQRD+iUllqAvkF/V7WutWaBLTSeMgFd0urEo6m1scFmG0Cd+2zIPvnu2SWcKeuSB1Q==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.68.4.tgz", + "integrity": "sha512-1N+ysuGmcw/PAC4E5/vpotbjC7zHBMqOMJ+kdjkuvVGbj4Mkzu1/cNI4IMaU27VP6MWded1fQAU9ME2m/JmiUA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.68.4.tgz", + "integrity": "sha512-ZO0fVys5Rtut3W0FcpKl/T/CTuTgaujErjanLJHVSmqhWaXnPr1u1VAinHPb8ash+cHA8yMX4QnRbmXhrrXfAg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.68.4.tgz", + "integrity": "sha512-a4T4Ji3Is/TCh4rUuV6ehDdSMp3hxLH/v7mP4VT0kVB90Hfr9GUHVAiJhiJ3iy+tJ4qpvIG4haP+HpivOyWYpw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.68.4.tgz", + "integrity": "sha512-I4FcDk1+t2w7/JwKakDbhOKvtP07Q8Y/jqaTTdgVklmfqTqmTwtIk254iSP4iCgXgQWThKm8CN67mDzPGDnpqw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.68.4.tgz", + "integrity": "sha512-kpekXvZs3E/21ps5tUiPbQggi4C8bCx4jBl2eAIaVTerC7eDLWJunZ6nRw3/K4r20E5Z5f1bmbrfSS6H8GRv+A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.68.4.tgz", + "integrity": "sha512-mrnM4nr22FidljIL4vGK1htFcxPNCjLK/g2LQvgpBbq8pKL/zHY1czntTDbtYjoaYWVFu+XX0P2r2h/7zwWlIw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.68.4.tgz", + "integrity": "sha512-xKF6HKrBdrb3jpGFlGAGtNF6nMu/TGdnVO38durZTMQUaduIqH/aDIjyi7SXmXNDUXTfTMUEIGVwPQ5FuMhCLQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.68.4.tgz", + "integrity": "sha512-uu45X0jgiXEab6vcoWuPQLqhBPKUCZkXc+gv0oTI78mhn5DnQC2WGvNJ/s6Cnc68PvB/8vAtlE2dIHrpx/wySw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.68.4.tgz", + "integrity": "sha512-+sVn72CSCbAemlPieSHWpBsJR5vkWH/xQM0Px0loHUhscMNl3CuH0UwTHuzCIaamlv+ZTi1V44jEKQ45FUaNwg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.68.4.tgz", + "integrity": "sha512-/eMzhxPPUGd5vjHdaNtvxHbblmoe+DyvPnJkZ4uQrDlVq9PQSd8br4pWwamycwRcLoNEzXwFy2mzcGoZTYqU5A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmmirror.com/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmmirror.com/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmmirror.com/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmmirror.com/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.10", + "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/prop-types": { + "version": "15.7.15", + "resolved": "https://registry.npmmirror.com/@types/prop-types/-/prop-types-15.7.15.tgz", + "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.3.31", + "resolved": "https://registry.npmmirror.com/@types/react/-/react-18.3.31.tgz", + "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.7", + "resolved": "https://registry.npmmirror.com/@types/react-dom/-/react-dom-18.3.7.tgz", + "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^18.0.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.7.0", + "resolved": "https://registry.npmmirror.com/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", + "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.28.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-beta.27", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.17.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.37", + "resolved": "https://registry.npmmirror.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.37.tgz", + "integrity": "sha512-QYph+vfurmaxhNwi9FprfmtkT5cx2Keg8FzZ0vnjO8ukscIybVyZGMFwdllKGlTI6qyU8ck43OM9UXh+IFJihQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/browserslist": { + "version": "4.29.5", + "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.29.5.tgz", + "integrity": "sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.33", + "caniuse-lite": "^1.0.30001819", + "electron-to-chromium": "^1.5.464", + "node-releases": "^2.0.60", + "update-browserslist-db": "^1.3.4" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001826", + "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001826.tgz", + "integrity": "sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.486", + "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.486.tgz", + "integrity": "sha512-rpybw4Ac4ak/An6G1Me2+61xzwobowDGyuJe71QHHOVpkZv4fPVobsLl7WH6zHSKusAMpaHxGKTpOvpy7+r3dQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmmirror.com/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.npmmirror.com/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/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "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/node-releases": { + "version": "2.0.64", + "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.64.tgz", + "integrity": "sha512-zAPCKqMcnqs2nGy6nlkm7JduFseiBJy3EXHGLh+8pFR+TxGCBxxiEN21+UROU5CKwX/f4TlUcYjiM+vs/tsyxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/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.npmmirror.com/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.33", + "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.33.tgz", + "integrity": "sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==", + "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.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmmirror.com/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmmirror.com/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-refresh": { + "version": "0.17.0", + "resolved": "https://registry.npmmirror.com/react-refresh/-/react-refresh-0.17.0.tgz", + "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.68.4", + "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.68.4.tgz", + "integrity": "sha512-5acdO1/M9urvHQuZVkoOt8JWQH6XxCnFnox1qodE39qkXaML67S2E7MhHDgx3pQYycM1A5dRJwahYMDLO9a3Yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.10" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.68.4", + "@rollup/rollup-android-arm64": "4.68.4", + "@rollup/rollup-android-x64": "4.68.4", + "@rollup/rollup-darwin-arm64": "4.68.4", + "@rollup/rollup-darwin-x64": "4.68.4", + "@rollup/rollup-freebsd-arm64": "4.68.4", + "@rollup/rollup-freebsd-x64": "4.68.4", + "@rollup/rollup-linux-arm-gnueabihf": "4.68.4", + "@rollup/rollup-linux-arm-musleabihf": "4.68.4", + "@rollup/rollup-linux-arm64-gnu": "4.68.4", + "@rollup/rollup-linux-arm64-musl": "4.68.4", + "@rollup/rollup-linux-loong64-gnu": "4.68.4", + "@rollup/rollup-linux-loong64-musl": "4.68.4", + "@rollup/rollup-linux-ppc64-gnu": "4.68.4", + "@rollup/rollup-linux-ppc64-musl": "4.68.4", + "@rollup/rollup-linux-riscv64-gnu": "4.68.4", + "@rollup/rollup-linux-riscv64-musl": "4.68.4", + "@rollup/rollup-linux-s390x-gnu": "4.68.4", + "@rollup/rollup-linux-x64-gnu": "4.68.4", + "@rollup/rollup-linux-x64-musl": "4.68.4", + "@rollup/rollup-openbsd-x64": "4.68.4", + "@rollup/rollup-openharmony-arm64": "4.68.4", + "@rollup/rollup-win32-arm64-msvc": "4.68.4", + "@rollup/rollup-win32-ia32-msvc": "4.68.4", + "@rollup/rollup-win32-x64-gnu": "4.68.4", + "@rollup/rollup-win32-x64-msvc": "4.68.4", + "fsevents": "~2.3.2" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmmirror.com/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "6.3.2", + "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmmirror.com/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/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.3.4", + "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", + "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/vite": { + "version": "6.4.6", + "resolved": "https://registry.npmmirror.com/vite/-/vite-6.4.6.tgz", + "integrity": "sha512-RtsraAwEG68idOA6iUOoIpOlcSKROnf815aIq9qHTSrDNpLoBrBa12suyfcEd8qn0xwOVQI1Yhm1GbmTjF600A==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "fdir": "^6.4.4", + "picomatch": "^4.0.2", + "postcss": "^8.5.3", + "rollup": "^4.34.9", + "tinyglobby": "^0.2.13" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "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 + } + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + } + } +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/package.json b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/package.json new file mode 100644 index 00000000..978b5f78 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/package.json @@ -0,0 +1,23 @@ +{ + "name": "mer-tutorial", + "private": true, + "version": "1.0.0", + "type": "module", + "description": "Interactive Simplified-Chinese tutorial for Learning to Learn without Forgetting by Maximizing Transfer and Minimizing Interference — generated by paper-skill (React + TypeScript + Vite).", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview" + }, + "dependencies": { + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", + "@vitejs/plugin-react": "^4.7.0", + "typescript": "^5.6.3", + "vite": "^6.4.3" + } +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/paper.json b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/paper.json new file mode 100644 index 00000000..9c3e55e4 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/paper.json @@ -0,0 +1,25 @@ +{ + "schemaVersion": 1, + "paperName": "learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference", + "title": "Learning to Learn without Forgetting by Maximizing Transfer and Minimizing Interference", + "authors": [], + "year": 2019, + "venue": "ICLR 2019", + "paperUrl": "https://arxiv.org/abs/1810.11910", + "participants": [ + { + "name": "谢国辉", + "github": "handwriter-X" + } + ], + "topics": [ + "持续学习", + "元学习", + "经验回放" + ], + "skillVersion": "1.5.0", + "status": "review", + "entry": "index.html", + "version": "xieguohui1116", + "versionDate": "2026-11-16" +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/public/images/.gitkeep b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/public/images/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/App.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/App.tsx new file mode 100644 index 00000000..bc3f5e02 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/App.tsx @@ -0,0 +1,95 @@ +import React, { useCallback, useEffect, useRef, useState } from 'react'; +import { tutorial } from './data/tutorial'; +import { PresentationCover } from './components/PresentationCover'; +import { ScenePage } from './components/ScenePage'; +import { SlideStage } from './components/SlideStage'; +import { BiliVideos } from './components/BiliVideos'; +import { buildDeck } from './lib/scenes'; +import './styles/presentation.css'; + +const pages = buildDeck(tutorial); +const query = new URLSearchParams(location.search); +const initialIndex = Math.max(0, pages.findIndex(page => page.id === query.get('slide'))); +export default function App() { + const [active, setActive] = useState(initialIndex); + const [directory, setDirectory] = useState(() => innerWidth > 768); + const [compact, setCompact] = useState(() => innerWidth <= 768); + const [notes, setNotes] = useState(false); + const [presenting, setPresenting] = useState(false); + const [notice, setNotice] = useState(''); + const viewport = useRef(null); + const selected = useRef(null); + const page = pages[active]; + useEffect(() => { document.title = `${tutorial.meta.titleZh} · 交互式教程`; }, []); + const goTo = useCallback((index: number) => { + const next = Math.max(0, Math.min(pages.length - 1, index)); + setActive(next); + const url = new URL(location.href); + url.searchParams.set('slide', pages[next].id); + history.replaceState(null, '', url); + if (innerWidth <= 768) setDirectory(false); + }, []); + useEffect(() => { selected.current?.scrollIntoView({ block: 'nearest' }); }, [active, directory]); + useEffect(() => { + const media = matchMedia('(max-width: 768px)'); + const change = () => { setCompact(media.matches); setDirectory(!media.matches); }; + media.addEventListener('change', change); + return () => media.removeEventListener('change', change); + }, []); + useEffect(() => { + const onFullscreen = () => setPresenting(Boolean(document.fullscreenElement)); + const onKey = (event: KeyboardEvent) => { + const target = event.target as HTMLElement; + if (event.key === 'Escape') { setDirectory(innerWidth > 768); setNotes(false); } + if (event.defaultPrevented || event.ctrlKey || event.metaKey || event.altKey || event.shiftKey || + target.closest('input, textarea, select, button, a, [contenteditable], [role=slider], [role=tab], [role=button], [data-slide-keys]')) return; + if (['ArrowRight', 'ArrowDown', 'PageDown', 'ArrowLeft', 'ArrowUp', 'PageUp'].includes(event.key)) { + event.preventDefault(); goTo(active + (['ArrowRight', 'ArrowDown', 'PageDown'].includes(event.key) ? 1 : -1)); + } + }; + document.addEventListener('fullscreenchange', onFullscreen); + window.addEventListener('keydown', onKey); + return () => { document.removeEventListener('fullscreenchange', onFullscreen); window.removeEventListener('keydown', onKey); }; + }, [active, goTo]); + const content = page.special === 'cover' ? : + page.special === 'videos' ? : ; + if (query.get('capture') === '1') return
{content}
; + return
+
+
+ {tutorial.meta.titleZh}
+ +
+
+
+
+ {directory && <>)}} +
+ {content} + {presenting && } + {notice &&

{notice}

} +
+ {notes && } +
+
; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/BiliVideos.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/BiliVideos.tsx new file mode 100644 index 00000000..57d6baa9 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/BiliVideos.tsx @@ -0,0 +1,81 @@ +import React, { useState, useCallback } from 'react'; +import type { BiliDef } from '../types'; +import { useBiliVideos, BiliCard } from '../lib/useBiliVideos'; + +// Optional Bilibili recommendations. Renders whenever >=1 real BVID is passed. +// Cards are ALWAYS shown from the static `it` data (title + optional baked-in cover), +// so a failed runtime metadata fetch can never hide a video. The runtime fetch only +// enriches with live views/duration and can supply a cover when none is baked in. +// UI copy is Simplified Chinese. +export function BiliVideos({ items }: { items: BiliDef[] }) { + const [page, setPage] = useState(0); + const bvids = items.map((i) => i.bvid); + const [data, setData] = useState>({}); + // Track per-card cover load failures so we can fall back to the gradient + // placeholder instead of showing a broken-image icon. + const [imgError, setImgError] = useState>({}); + + const onLoad = useCallback((bvid: string, d: BiliCard | null) => { + setData((prev) => ({ ...prev, [bvid]: d })); + }, []); + useBiliVideos(bvids, onLoad); + + const real = items.filter((i) => i.bvid && i.bvid.startsWith('BV')); + + return ( +
+

延伸学习 · B 站讲解视频

+

推荐几个相关的视频讲解,帮助加深理解。

+
+ {real.slice(page * 4, (page + 1) * 4).map((it) => { + const d = data[it.bvid]; + // Prefer a baked-in static cover, then the live fetch; else none. + const cover = it.cover || d?.cover; + const showCover = !!cover && !imgError[it.bvid]; + return ( + +
+ {showCover ? ( + {it.title} 403). Sending no Referer lets + // the image load on any host. + referrerPolicy="no-referrer" + loading="lazy" + onError={() => + setImgError((prev) => ({ ...prev, [it.bvid]: true })) + } + /> + ) : null} +
▶
+ B 站 + {d?.duration ? {d.duration} : null} +
+ {it.title} + {(it.views || d?.views) ? ( +
+ {it.views || d?.views} +
+ ) : null} +
+ ); + })} +
+ {real.length > 4 && } +
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/CoverPlayback.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/CoverPlayback.tsx new file mode 100644 index 00000000..b79f8bd2 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/CoverPlayback.tsx @@ -0,0 +1,5 @@ +import { createContext, useContext } from 'react'; + +export const CoverPlaybackContext = createContext({ progress: 0, playing: false }); +/** Cover animations must share this clock for a fair, synchronized comparison. */ +export const useCoverPlayback = () => useContext(CoverPlaybackContext); diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/Figure.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/Figure.tsx new file mode 100644 index 00000000..abc57606 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/Figure.tsx @@ -0,0 +1,20 @@ +// Optional paper-figure display. Local public/ images use page-relative URLs, +// e.g. "./images/fig1.png", so they load under a nested deployment path. + +export function Figure({ + src, + alt, + caption, +}: { + src?: string; + alt?: string; + caption?: string; +}) { + if (!src) return null; + return ( +
+ {alt + {caption ?
{caption}
: null} +
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/Formula.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/Formula.tsx new file mode 100644 index 00000000..00df70f3 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/Formula.tsx @@ -0,0 +1,54 @@ +import React, { useMemo } from 'react'; +import { SymbolGlossary } from './SymbolHint'; +import type { FormulaDef } from '../types'; + +// Unicode/HTML formula with hover, focus and touch symbol explanations. + +const escapeHtmlAttr = (s: string) => + s + .replace(/&/g, '&') + .replace(/"/g, '"') + .replace(//g, '>'); + +const escapeRegExp = (s: string) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); + +/** + * Wrap each symbol occurrence in the formula HTML with a clickable span. + * - Split the HTML into tags vs text so we never touch inside tags/attributes. + * - Use one combined regex (longest symbols first) so multi-char symbols win over + * their single-char substrings, and the replacement is a single non-overlapping pass. + */ +function makeClickableFormula(html: string, symbols: { sym: string; desc: string }[]): string { + if (!symbols.length) return html; + const tokens = html.split(/(<[^>]+>|&(?:#\d+|#x[\da-f]+|\w+);)/gi); + const sorted = [...symbols].sort((a, b) => b.sym.length - a.sym.length); + const pattern = sorted.map((s) => escapeRegExp(s.sym)).join('|'); + if (!pattern) return html; + const re = new RegExp(`(${pattern})`, 'g'); + return tokens + .map((tok) => { + if (tok.startsWith('<') || /^&(?:#\d+|#x[\da-f]+|\w+);$/i.test(tok)) return tok; + return tok.replace(re, (m, _capture, offset: number) => { + if ((/^[a-z]/i.test(m) && /[a-z]/i.test(tok[offset - 1] ?? '')) || + (/[a-z]$/i.test(m) && /[a-z]/i.test(tok[offset + m.length] ?? ''))) return m; + const safe = escapeHtmlAttr(m); + const meaning = escapeHtmlAttr(symbols.find(s => s.sym === m)!.desc.replace(/<[^>]*>/g, '')); + return `${m}`; + }); + }) + .join(''); +} + +export function Formula({ formula }: { formula: FormulaDef }) { + const formulaHtml = useMemo( + () => makeClickableFormula(formula.unicode, formula.symbols), + [formula.unicode, formula.symbols] + ); + return
+
+
+ +
+
; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/PresentationCover.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/PresentationCover.tsx new file mode 100644 index 00000000..4a059b17 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/PresentationCover.tsx @@ -0,0 +1,32 @@ +import React from 'react'; +import type { Meta, HeroConfig } from '../types'; +import { Typography } from './Typography'; +import { widgetRegistry } from '../modules/registry'; +import { CoverPlaybackContext } from './CoverPlayback'; +import { useTimeline } from '../lib/useTimeline'; +export function PresentationCover({ meta, hero }: { meta: Meta; hero: HeroConfig }) { + const playback = useTimeline({ autoPlay: true, loop: true, duration: 6000 }); + const panel = (side: 'oldMethod' | 'newMethod') => { + const data = hero[side]; + const Widget = widgetRegistry[data.componentId || '']; + return
+
{data.title || (side === 'oldMethod' ? '原有方法' : '本文方法')} + {data.desc}
+
{Widget ? : + 请配置此方法的教学动画。}
+
; + }; + return
+
115 ? ' is-very-long-title' : meta.titleEn.length > 70 ? ' is-long-title' : ''}`} data-slot="cover-title"> + {meta.venue} + {meta.titleEn} + {meta.coreProblem} +
+ +
{panel('oldMethod')}{panel('newMethod')}
+
+
+ {meta.coreInsight} +
+
; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/ScenePage.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/ScenePage.tsx new file mode 100644 index 00000000..86ef672d --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/ScenePage.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import type { DeckPage } from '../lib/scenes'; +import { widgetRegistry } from '../modules/registry'; +import { Typography } from './Typography'; +export function ScenePage({ page }: { page: DeckPage }) { + const chapter = page.chapter!; + const Widget = widgetRegistry[page.componentId || '']; + return
+
+
{chapter.title}
+
{page.title}
+ {page.goal &&
{page.goal}
} +
+
+ {Widget ? : + 缺少页面组件:{page.componentId}} +
+
; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/SlideStage.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/SlideStage.tsx new file mode 100644 index 00000000..05cb2940 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/SlideStage.tsx @@ -0,0 +1,99 @@ +import React, { useEffect, useLayoutEffect, useRef, useState } from 'react'; + +type Point = { x: number; y: number }; +type View = Point & { zoom: number }; +const initial: View = { zoom: 1, x: 0, y: 0 }; +const interactive = 'button, input, select, textarea, a, [role=slider], [role=button], [contenteditable]'; + +// Slide zoom is independent of browser zoom and never changes the design canvas. +export function SlideStage({ children, fitFactor = 1 }: { children: React.ReactNode; fitFactor?: number }) { + const host = useRef(null); + const [size, setSize] = useState({ width: 0, height: 0 }); + const [view, setView] = useState(initial); + const current = useRef(view); + const pointers = useRef(new Map()); + const panAllowed = useRef(false); + const width = 1600, height = 900; + const fit = Math.min(size.width / width, size.height / height) * fitFactor; + const constrain = (v: View): View => { + const limitX = Math.max(0, (width * fit * v.zoom - size.width) / 2); + const limitY = Math.max(0, (height * fit * v.zoom - size.height) / 2); + return { zoom: v.zoom, x: Math.max(-limitX, Math.min(limitX, v.x)), y: Math.max(-limitY, Math.min(limitY, v.y)) }; + }; + const update = (v: View) => { current.current = constrain(v); setView(current.current); }; + const zoomAt = (factor: number, point: Point, previousPoint = point) => { + const v = current.current; + const zoom = Math.max(1, Math.min(5, v.zoom * factor)); + const ratio = zoom / v.zoom; + update({ zoom, x: point.x - (previousPoint.x - v.x) * ratio, y: point.y - (previousPoint.y - v.y) * ratio }); + }; + const local = (x: number, y: number): Point => { + const rect = host.current!.getBoundingClientRect(); + return { x: x - rect.left - rect.width / 2, y: y - rect.top - rect.height / 2 }; + }; + useLayoutEffect(() => { + const element = host.current; + if (!element) return; + const observer = new ResizeObserver(([entry]) => { + setSize(entry.contentRect); current.current = initial; setView(initial); + pointers.current.clear(); + }); + observer.observe(element); + return () => observer.disconnect(); + }, []); + useEffect(() => { + const element = host.current; + if (!element) return; + const onWheel = (event: WheelEvent) => { + if (!event.ctrlKey && !window.matchMedia('(max-width: 768px)').matches) return; + event.preventDefault(); + zoomAt(Math.exp(-event.deltaY * (event.deltaMode === 1 ? 0.03 : 0.002)), local(event.clientX, event.clientY)); + }; + element.addEventListener('wheel', onWheel, { passive: false }); + return () => element.removeEventListener('wheel', onWheel); + }, [size.width, size.height, fitFactor]); + const onDown = (e: React.PointerEvent) => { + if (e.pointerType === 'mouse' && e.button !== 0) return; + if ((e.target as HTMLElement).closest('.slide-zoom-controls')) return; + pointers.current.set(e.pointerId, local(e.clientX, e.clientY)); + if (pointers.current.size === 1) panAllowed.current = !(e.target as HTMLElement).closest(interactive); + if (pointers.current.size >= 2 || (panAllowed.current && current.current.zoom > 1)) { + for (const id of pointers.current.keys()) e.currentTarget.setPointerCapture(id); + } + }; + const onMove = (e: React.PointerEvent) => { + const previous = pointers.current.get(e.pointerId); + if (!previous) return; + const before = [...pointers.current.values()]; + const point = local(e.clientX, e.clientY); + pointers.current.set(e.pointerId, point); + const after = [...pointers.current.values()]; + if (after.length === 2) { + e.preventDefault(); + const distance = (p: Point[]) => Math.hypot(p[0].x - p[1].x, p[0].y - p[1].y); + const center = (p: Point[]) => ({ x: (p[0].x + p[1].x) / 2, y: (p[0].y + p[1].y) / 2 }); + if (distance(before) > 0) zoomAt(distance(after) / distance(before), center(after), center(before)); + } else if (after.length === 1 && panAllowed.current && current.current.zoom > 1) { + e.preventDefault(); update({ ...current.current, x: current.current.x + point.x - previous.x, y: current.current.y + point.y - previous.y }); + } + }; + const onEnd = (e: React.PointerEvent) => { + pointers.current.delete(e.pointerId); + if (e.currentTarget.hasPointerCapture(e.pointerId)) e.currentTarget.releasePointerCapture(e.pointerId); + }; + return ( +
1 ? 'is-zoomed' : ''}`} ref={host} + onPointerDownCapture={onDown} onPointerMoveCapture={onMove} + onPointerUpCapture={onEnd} onPointerCancelCapture={onEnd} onLostPointerCapture={e => pointers.current.delete(e.pointerId)}> +
+ {children} +
+
+ + + +
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/SymbolHint.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/SymbolHint.tsx new file mode 100644 index 00000000..f5fdb0f7 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/SymbolHint.tsx @@ -0,0 +1,84 @@ +import React, { useEffect, useId, useLayoutEffect, useRef, useState } from 'react'; +import { createPortal } from 'react-dom'; + +/** Delegated hints also work with the HTML symbols in the legacy Formula block. */ +export function SymbolGlossary({ children }: { children: React.ReactNode }) { + const root = useRef(null); + const popup = useRef(null); + const timer = useRef>(); + const [active, setActive] = useState(null); + const [pinned, setPinned] = useState(false); + const [position, setPosition] = useState({ left: 12, top: 12 }); + const id = useId(); + const cancel = () => clearTimeout(timer.current); + const close = () => { cancel(); setActive(null); setPinned(false); }; + const leave = () => { + cancel(); + if (!pinned) timer.current = setTimeout(() => { + if (!root.current?.contains(document.activeElement)) setActive(null); + }, 120); + }; + const trigger = (target: EventTarget | null) => target instanceof Element + ? target.closest('[data-formula-symbol]') : null; + + useLayoutEffect(() => { + if (!active || !popup.current) return; + const r = active.getBoundingClientRect(); + const p = popup.current.getBoundingClientRect(); + setPosition({ + left: Math.max(12, Math.min(r.left + r.width / 2 - p.width / 2, window.innerWidth - p.width - 12)), + top: Math.max(12, Math.min(r.bottom + 10 + p.height > window.innerHeight - 12 + ? r.top - p.height - 10 : r.bottom + 10, window.innerHeight - p.height - 12)), + }); + active.setAttribute('aria-describedby', id); + return () => active.removeAttribute('aria-describedby'); + }, [active, id]); + + useEffect(() => { + if (!active) return; + const outside = (e: PointerEvent) => { + if (!root.current?.contains(e.target as Node) && !popup.current?.contains(e.target as Node)) close(); + }; + const escape = (e: KeyboardEvent) => { if (e.key === 'Escape') close(); }; + document.addEventListener('pointerdown', outside); + document.addEventListener('keydown', escape); + document.addEventListener('fullscreenchange', close); + window.addEventListener('resize', close); + window.addEventListener('scroll', close, true); + return () => { + document.removeEventListener('pointerdown', outside); + document.removeEventListener('keydown', escape); + document.removeEventListener('fullscreenchange', close); + window.removeEventListener('resize', close); + window.removeEventListener('scroll', close, true); + cancel(); + }; + }, [active]); + + return { const el = trigger(e.target); if (el) { cancel(); setActive(el); } }} + onPointerOut={leave} + onFocus={e => { const el = trigger(e.target); if (el) { cancel(); setActive(el); } }} + onBlur={e => { if (!root.current?.contains(e.relatedTarget as Node) && !pinned) close(); }} + onClick={e => { + const el = trigger(e.target); + if (el) { cancel(); if (pinned && active === el) close(); else { setActive(el); setPinned(true); } } + }} + onKeyDown={e => { + if ((e.key === 'Enter' || e.key === ' ') && trigger(e.target)) { + e.preventDefault(); (e.target as HTMLElement).click(); + } + }}> + {children} + {active && createPortal(, document.fullscreenElement ?? document.body)} + ; +} + +/** Use around the actual symbol, including an HTML/MathML expression. Meaning is plain Chinese. */ +export function SymbolHint({ children, meaning }: { children: React.ReactNode; meaning: string }) { + return {children}; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/Typography.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/Typography.tsx new file mode 100644 index 00000000..8c79e96c --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/components/Typography.tsx @@ -0,0 +1,8 @@ +import React from 'react'; +type Variant = 'display' | 'h1' | 'h2' | 'h3' | 'subtitle' | 'body' | 'small'; +export function Typography({ variant = 'body', children, muted = false }: { + variant?: Variant; children: React.ReactNode; muted?: boolean; +}) { + const Tag = variant === 'h1' || variant === 'h2' || variant === 'h3' ? variant : 'p'; + return {children}; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/data/tutorial.ts b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/data/tutorial.ts new file mode 100644 index 00000000..73f86497 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/data/tutorial.ts @@ -0,0 +1,308 @@ +import type { TutorialData } from '../types'; + +export const tutorial: TutorialData = { + "meta": { + "titleEn": "Learning to Learn without Forgetting by Maximizing Transfer and Minimizing Interference", + "titleZh": "在不遗忘中学会学习:最大化迁移、最小化干扰", + "venue": "ICLR 2019 · Meta-Experience Replay (MER)", + "authors": "Matthew Riemer, Ignacio Cases, Robert Ajemian, Miao Liu, Irina Rish, Yuhai Tu, Gerald Tesauro", + "affiliation": "IBM Research · MIT-IBM Watson AI Lab", + "domain": "持续学习 · 元学习 · 优化", + "coreProblem": "神经网络按顺序学习新任务时,为什么会把以前学会的东西忘掉?", + "coreInsight": "把持续学习看成迁移与干扰的时间对称权衡,用经验回放加上元学习强制梯度对齐,让新知识尽量少破坏旧知识。", + "keywords": [ + "持续学习", + "灾难性遗忘", + "经验回放", + "元学习", + "梯度对齐", + "Reptile" + ] + }, + "hero": { + "oldMethod": { + "title": "只学新任务(在线 SGD)", + "desc": "每来一个样本就更新一次参数,旧任务很快被覆盖、遗忘。", + "componentId": "mer-cover" + }, + "newMethod": { + "title": "元经验回放 MER", + "desc": "每次训练都穿插少量旧样本,并做梯度对齐,新旧任务一起保持。", + "componentId": "mer-cover" + } + }, + "chapters": [ + { + "kind": "chapter", + "id": "chap-1", + "title": "01 · 问题:任务一个接一个,网络却在遗忘", + "modules": [ + { + "kind": "module", + "id": "m-seq", + "title": "顺序学习的遗忘过程", + "desc": "拖动训练进度,观察只学新任务的在线学习如何在旧任务上掉分。", + "componentId": "mer-sequential" + } + ], + "scenes": [ + { + "id": "c1-sequential", + "title": "任务一个接一个,分数一路下滑", + "goal": "直观看到:顺序学习新任务会让旧任务的表现不断退化。", + "summary": "在线 SGD 逐样本更新,旧任务被覆盖", + "interaction": "拖动「训练进度」滑块,观察各任务的准确率曲线如何变化。", + "next": "用一个统一的指标衡量遗忘", + "notes": "跑步类比:一个运动员先练短跑再只练耐力,再回到短跑会发现成绩退步。在线学习逐样本做梯度下降,参数不断远离旧任务的最优点,这就是灾难性遗忘。本文 Fig.1 之前大量工作把「旧知识被覆盖」当成核心障碍。", + "componentId": "mer-sequential", + "moduleId": "m-seq" + }, + { + "id": "c1-metrics", + "title": "遗忘怎么衡量:RA、LA、BTI", + "goal": "理解论文用来比较方法的三个指标,尤其是「越负遗忘越重」的 BTI。", + "summary": "RA=最终保留准确率,BTI=学完到结束的变化", + "interaction": "阅读三个指标的定义与方向,注意 BTI 为负表示遗忘。", + "next": "认识迁移与干扰这对概念", + "notes": "RA(Retained Accuracy)是 20 个任务学完后对所有任务测的最终准确率,越高越好;LA 是每个任务刚学完立刻测的平均准确率;BTI(Backward Transfer and Interference)是每个任务从「刚学完」到「训练结束」的准确率变化,负数表示遗忘。本文以 RA 为主指标。", + "componentId": "mer-metrics" + } + ] + }, + { + "kind": "chapter", + "id": "chap-2", + "title": "02 · 洞察:迁移与干扰的时间对称权衡", + "modules": [ + { + "kind": "module", + "id": "m-dot", + "title": "梯度点积:迁移还是干扰", + "desc": "拖动两个梯度箭头,看它们的点积是正是负、一步更新后另一个样本是好是坏。", + "componentId": "mer-dot" + }, + { + "kind": "module", + "id": "m-sharing", + "title": "权重共享的双刃剑", + "desc": "调整两个任务共享参数的比例,观察迁移与干扰的潜力如何同增同减。", + "componentId": "mer-sharing" + } + ], + "scenes": [ + { + "id": "c2-dot", + "title": "梯度点积决定迁移还是干扰", + "goal": "用公式 1/2 亲身体会:点积为正时学一个帮另一个,为负时学一个害另一个。", + "summary": "∂Lᵢ · ∂Lⱼ 的符号就是迁移/干扰", + "interaction": "拖动两个梯度箭头改变夹角,观察点积符号和「一步 SGD 后样本 j 损失变化」的联动。", + "next": "看权重共享如何放大这两种潜力", + "notes": "跑步类比:两个训练动作如果发力方向一致(点积为正),练 A 会让 B 更好;如果方向相反(点积为负),练 A 会破坏 B。论文 Eq.1/2 正是用两个样本损失梯度的点积来操作性定义迁移(>0)与干扰(<0)。", + "componentId": "mer-dot", + "moduleId": "m-dot" + }, + { + "id": "c2-sharing", + "title": "权重共享越多,迁移与干扰都越强", + "goal": "理解为什么「减少共享」能防遗忘却牺牲了未来的迁移能力。", + "summary": "共享比例决定两种潜力,这是对称视角的关键", + "interaction": "拖动「共享比例」滑块,观察迁移潜力与干扰潜力两条曲线同步上升。", + "next": "看看三种旧方法分别怎么取舍", + "notes": "跑步类比:一套身体(共享的肌肉与习惯)练不同项目,共用越多,一项训练对另一项的影响(好或坏)越大;完全不共用则两者互不影响。论文 Appendix C 论证:参数子集重叠越多,点积可能非零的范围越大,迁移与干扰的潜力同时上升。", + "componentId": "mer-sharing", + "moduleId": "m-sharing" + } + ] + }, + { + "kind": "chapter", + "id": "chap-3", + "title": "03 · 旧方法:三种思路都只做了一半", + "modules": [ + { + "kind": "module", + "id": "m-base", + "title": "EWC / GEM / 回放 怎么救", + "desc": "在同一个冲突梯度上切换三种旧方法,看它们各自怎么缓解遗忘、又牺牲了什么。", + "componentId": "mer-baselines" + } + ], + "scenes": [ + { + "id": "c3-baselines", + "title": "EWC、GEM、回放各自怎么取舍", + "goal": "看清三种旧方法都只盯着「向后干扰」,因此都没法兼顾未来的迁移。", + "summary": "EWC 压参数、GEM 投影梯度、回放补旧样本", + "interaction": "点选 EWC / GEM / 经验回放,观察它们对同一个冲突梯度分别做了哪种改造。", + "next": "进入本文的 MER 机制", + "notes": "EWC 按 Fisher 信息重要度把旧任务重要的参数「钉住」,本质是减少共享;GEM 用一个二次规划把新梯度投影到「不与旧记忆冲突」的方向(Eq.8,g·g_old ≥ 0),是逐样本的临时修正;经验回放靠补旧样本近似平稳分布。三者都只处理向后干扰,没有学到「以后怎么共享参数」,这正是 MER 要补的。", + "componentId": "mer-baselines", + "moduleId": "m-base" + } + ] + }, + { + "kind": "chapter", + "id": "chap-4", + "title": "04 · 方法:MER 的三块积木", + "modules": [ + { + "kind": "module", + "id": "m-res", + "title": "蓄水池采样", + "desc": "逐个喂入样本,观察有限记忆如何公平地代表过去所有样本。", + "componentId": "mer-reservoir" + }, + { + "kind": "module", + "id": "m-rep", + "title": "Reptile 元更新", + "desc": "在损失地形上走几步再折返,看元更新如何浮现出梯度点积项。", + "componentId": "mer-reptile" + }, + { + "kind": "module", + "id": "m-alg", + "title": "MER 一步完整流程", + "desc": "逐步执行算法 1,把回放、批内与批间元更新串起来。", + "componentId": "mer-algorithm" + }, + { + "kind": "module", + "id": "m-alpha", + "title": "对齐强度与有效 s", + "desc": "调节 γ、β 与批次拆分,观察对齐正则项的权重如何变化。", + "componentId": "mer-alpha" + } + ], + "scenes": [ + { + "id": "c4-reservoir", + "title": "蓄水池采样:有限记忆公平代表过去", + "goal": "理解为什么 MER 用蓄水池采样而不是「只留最近」,从而近似平稳分布。", + "summary": "每个已见样本留在记忆中的概率都是 M/N", + "interaction": "点击「喂入下一个样本」,观察记忆被替换的时机与每个样本的保留概率。", + "next": "看回放里嵌入的 Reptile 元更新", + "notes": "跑步类比:一本只能记 5 页的训练日志,用「抽签」决定新动作替换哪一页,让很久以前的训练也有机会留在本子里。蓄水池采样(Algorithm R,Vitter 1985)保证任一已见样本留在记忆中的概率等于 M/N,这是 Eq.5 近似平稳分布、以及 Reptile 的随机性假设在在线设定下成立的关键(App. I)。", + "componentId": "mer-reservoir", + "moduleId": "m-res" + }, + { + "id": "c4-reptile", + "title": "Reptile:走几步再折返的元学习", + "goal": "理解 Reptile 的「先走 k 步、再按总位移折返」如何等价地优化出梯度点积项。", + "summary": "元更新里自然出现 ∑ᵢ<ⱼ ∇Lᵢ·∇Lⱼ 的对齐项", + "interaction": "点击「执行一轮」,看参数在损失地形上走 2 步后,元更新把它折返到哪。", + "next": "把回放和元更新串成 MER", + "notes": "Reptile 每轮抽 s 个批次、每个批次内走 k 步 SGD,然后 θ ← θ₀ + β(θ_k − θ₀)。Nichol & Schulman 的一阶展开显示,这个元更新近似最小化 ∑ᵢ 2L(Bᵢ) − α∑ᵢ<ⱼ ∇L(Bᵢ)·∇L(Bⱼ)——正是论文想要的「少损失、多对齐」(Eq.6)。", + "componentId": "mer-reptile", + "moduleId": "m-rep" + }, + { + "id": "c4-algorithm", + "title": "MER 一步:回放、批内、批间三层更新", + "goal": "把算法 1 的每一步走通,看清当前样本与记忆样本如何穿插、γ=1 时等价于一次大 Reptile。", + "summary": "s 个批次 × 每批 k 个样本,批内 β、批间 γ 各一次元更新", + "interaction": "点击「下一步」逐步执行:采样 → 批内逐样本 SGD → 批内元更新 → 批间元更新 → 更新记忆。", + "next": "看看 s 和对齐强度怎么影响正则", + "notes": "算法 1:每个新样本配 s 个批次,每批 = 当前样本 + k−1 个记忆样本;每批内逐样本做 SGD(学习率 α、批大小 1),批内做一次 Reptile 元更新(β),s 个批次后再做一次批间元更新(γ),最后蓄水池更新记忆。γ=1 时与一次大 Reptile 等价(App. I)。", + "componentId": "mer-algorithm", + "moduleId": "m-alg" + }, + { + "id": "c4-alpha", + "title": "对齐强度 γ 与有效 s:正则的权重", + "goal": "理解为什么把固定记忆拆成逐样本长序列能放大对齐正则的权重。", + "summary": "普通损失权重 ∝ s,对齐正则权重 ∝ s(s−1)/2", + "interaction": "拖动「有效 s」,观察普通损失项与对齐正则项的权重比例变化。", + "next": "用论文的实验数据检验它", + "notes": "Eq.6 中普通损失项权重正比于 s,对齐正则项(梯度点积和)权重正比于 s(s−1)/2。因此在记忆抽取量固定时,把它拆成更长的逐样本序列(增大 s)能显著提高正则相对权重——论文报告这样做始终优于按批次处理。实验中 γ=1、β<1 以降低跨批次高阶项的扰动(App. I)。", + "componentId": "mer-alpha", + "moduleId": "m-alpha" + } + ] + }, + { + "kind": "chapter", + "id": "chap-5", + "title": "05 · 证据:它到底有多好", + "modules": [ + { + "kind": "module", + "id": "m-bench", + "title": "20 任务基准", + "desc": "在 MNIST 旋转与置换基准上切换缓冲大小,看 MER 相对 GEM 的领先如何拉开。", + "componentId": "mer-bench" + }, + { + "kind": "module", + "id": "m-stat", + "title": "越非平稳,优势越大", + "desc": "切换 Many Permutations / Omniglot,并对比梯度点积从负转正。", + "componentId": "mer-stationarity" + } + ], + "scenes": [ + { + "id": "c5-bench", + "title": "20 任务基准:MER 全面领先", + "goal": "读懂 Table 1/2:RA 越高越好,且缓冲越小 MER 相对 GEM 的优势越大。", + "summary": "旋转 89.56 vs 87.58;缓冲 200 时领先约 10 个点", + "interaction": "切换 MNIST Rotations / Permutations 与缓冲大小 5120 / 500 / 200,观察柱状图与反馈。", + "next": "看环境更非平稳时会发生什么", + "notes": "Table 1(20 任务、每任务 1000 样本、记忆 5120):Rotations 上 MER 的 RA=89.56、GEM=87.58、EWC=57.96、Online=53.38;Permutations 上 MER=85.50、GEM=83.02、EWC=62.32、Online=55.42。Table 2:缓冲 200 时 Rotations 上 MER=77.42 对 GEM=67.38,Permutations 上 MER=73.46 对 GEM=55.42。", + "componentId": "mer-bench", + "moduleId": "m-bench" + }, + { + "id": "c5-stationarity", + "title": "环境越非平稳,MER 的优势越大", + "goal": "从 Many Permutations、Omniglot 和梯度点积表看到:任务越多、样本越少,MER 越突出。", + "summary": "Omniglot 上 MER 75.23 对 GEM 18.03;点积由负转正", + "interaction": "切换 Many Permutations / Omniglot,并对比 ER 与 MER 的平均梯度点积。", + "next": "回到现实,看它的适用边界", + "notes": "Table 3:Many Permutations(100 任务×200 样本)RA 为 Online 32.62、EWC 33.46、GEM 56.76、MER 62.52;Omniglot(50 字母表)RA 为 Online 4.36、EWC 4.63、GEM 18.03(记忆 500 时 GEM 无法收敛)、MER 75.23。Table 4 的平均梯度点积:ER 在三基准分别为 −0.569/−1.652/−1.280,MER 为 +0.042/+0.017/+0.131。", + "componentId": "mer-stationarity", + "moduleId": "m-stat" + } + ] + }, + { + "kind": "chapter", + "id": "chap-6", + "title": "06 · 边界与总结:什么时候该信它", + "modules": [ + { + "kind": "module", + "id": "m-limits", + "title": "适用边界与改进方向", + "desc": "点开四张卡片,看清 MER 的假设、隐患与可以改进的地方。", + "componentId": "mer-limits" + } + ], + "scenes": [ + { + "id": "c6-limits", + "title": "什么时候不该用 MER", + "goal": "形成批判性判断:知道 MER 依赖哪些条件,哪些场景会打折扣。", + "summary": "依赖存样本与任务相似性;超参搜索更大", + "interaction": "点开四张场景卡片,逐条看清它的假设、代价与改进方向。", + "next": "用三句话把方法带走", + "notes": "① 依赖存储原始样本,隐私/存储受限时不可用(可结合生成式回放或 MoE,作者在 App. B 提到);② 超参搜索空间比基线大(App. M 用换种子/机器验证了定性结论不变);③ 迁移泛化依赖任务间存在相似性,剧烈域漂移下收益有限(Sec 6 Q5);④ 实验集中在小型 MLP/CNN 与简单 RL,未验证大规模模型。这些都是「结论成立的条件」,不应把条件性设计讲成普适结论。", + "componentId": "mer-limits", + "moduleId": "m-limits" + }, + { + "id": "c6-takeaway", + "title": "三句话把 MER 带走", + "goal": "把「问题—洞察—方法」压缩成三条可复述的判断,而不是背公式。", + "summary": "遗忘=干扰;用回放+对齐同时顾过去和未来;小记忆也够用", + "interaction": "依次回看三条要点,并对照上一份 EWC 报告的视角差异。", + "next": "", + "notes": "三条:① 持续学习不是「新旧二选一」,而是迁移(点积>0)与干扰(点积<0)的时间对称权衡;② MER 用经验回放近似平稳分布、用 Reptile 一阶近似最大化点积,学会「何时共享参数」;③ 小记忆(蓄水池采样)就够,越非平稳优势越大。对比 EWC:EWC 是「减少共享、钉住重要参数」,MER 是「学会何时共享」——从保护过去升级为同时经营未来。", + "componentId": "mer-takeaway" + } + ] + } + ] +}; diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/canvasKit.ts b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/canvasKit.ts new file mode 100644 index 00000000..605d893a --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/canvasKit.ts @@ -0,0 +1,100 @@ +// Canvas drawing kit — paper-agnostic helpers. Ported from the legacy utils.js. +// These are static; the generator does NOT edit this file. Paper-specific drawing +// lives in components/modules under src/modules/*. + +export function lerp(a: number, b: number, t: number): number { + return a + (b - a) * t; +} + +export function lerpColor(c1: string, c2: string, t: number): string { + const p = (h: string) => [ + parseInt(h.slice(1, 3), 16), + parseInt(h.slice(3, 5), 16), + parseInt(h.slice(5, 7), 16), + ]; + const [r1, g1, b1] = p(c1); + const [r2, g2, b2] = p(c2); + return `rgb(${Math.round(lerp(r1, r2, t))},${Math.round(lerp(g1, g2, t))},${Math.round( + lerp(b1, b2, t) + )})`; +} + +export function clamp(v: number, min: number, max: number): number { + return Math.max(min, Math.min(max, v)); +} + +export function easeOutCubic(t: number): number { + return 1 - Math.pow(1 - t, 3); +} + +export function easeInOutQuad(t: number): number { + return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2; +} + +export function easeSpring(t: number): number { + return 1 - Math.cos(t * Math.PI * 0.5); +} + +export function easeOutBounce(t: number): number { + const n1 = 7.5625; + const d1 = 2.75; + if (t < 1 / d1) return n1 * t * t; + if (t < 2 / d1) return n1 * (t -= 1.5 / d1) * t + 0.75; + if (t < 2.5 / d1) return n1 * (t -= 2.25 / d1) * t + 0.9375; + return n1 * (t -= 2.625 / d1) * t + 0.984375; +} + +export function dist(x1: number, y1: number, x2: number, y2: number): number { + const dx = x2 - x1; + const dy = y2 - y1; + return Math.sqrt(dx * dx + dy * dy); +} + +export function map( + v: number, + inMin: number, + inMax: number, + outMin: number, + outMax: number +): number { + return ((v - inMin) / (inMax - inMin)) * (outMax - outMin) + outMin; +} + +/** Setup a canvas for HiDPI. Returns the 2D context scaled to CSS pixels. */ +export function setupCanvas(canvas: HTMLCanvasElement, w: number, h: number): CanvasRenderingContext2D { + const dpr = window.devicePixelRatio || 1; + canvas.width = w * dpr; + canvas.height = h * dpr; + canvas.style.width = w + 'px'; + canvas.style.height = h + 'px'; + const ctx = canvas.getContext('2d'); + if (!ctx) throw new Error('2D context unavailable'); + ctx.scale(dpr, dpr); + return ctx; +} + +/** + * Pause rAF when the canvas scrolls off-screen. Returns a stop() to disconnect. + * `startFn` is called when it enters the viewport; `stopFn` when it leaves. + */ +export function observeCanvas( + canvas: HTMLCanvasElement, + startFn: () => void, + stopFn: () => void +): () => void { + if (typeof IntersectionObserver === 'undefined') { + startFn(); + return () => {}; + } + const observer = new IntersectionObserver( + (entries) => { + entries.forEach((entry) => { + if (entry.isIntersecting) startFn(); + else stopFn(); + }); + }, + { threshold: 0.05 } + ); + observer.observe(canvas); + return () => observer.disconnect(); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/scenes.ts b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/scenes.ts new file mode 100644 index 00000000..034812b4 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/scenes.ts @@ -0,0 +1,16 @@ +import type { ChapterDef, SceneDef, TutorialData } from '../types'; +export interface DeckPage extends Omit { + componentId?: string; // Cover and video pages are rendered by dedicated framework components. + chapter?: ChapterDef; + special?: 'cover' | 'videos'; +} +export function buildDeck(data: TutorialData): DeckPage[] { + const pages: DeckPage[] = [{ id: 'cover', title: data.meta.titleZh, goal: data.meta.coreProblem, + summary: data.meta.coreInsight, interaction: '认识问题', next: '', notes: data.meta.coreInsight, special: 'cover' }]; + for (const chapter of data.chapters) { + pages.push(...chapter.scenes.map(scene => ({ ...scene, chapter }))); + } + if (data.bilibili?.some(item => item.bvid)) pages.push({ id: 'videos', title: '延伸阅读与视频', goal: '继续探索', + summary: '将直觉连接到更多解释', interaction: '打开视频', next: '', notes: '', special: 'videos' }); + return pages.map(page => ({ ...page, thumbnail: page.thumbnail || data.thumbnails?.[page.id] })); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/slideAudit.ts b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/slideAudit.ts new file mode 100644 index 00000000..067d15d3 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/slideAudit.ts @@ -0,0 +1,36 @@ +/** Browser-side geometry gate. Run after fonts/images settle and after each interaction. + * This checks rendered geometry; source validation alone cannot certify slide fit. */ +export function auditSlide(): string[] { + const errors: string[] = []; + const stage = document.querySelector('[data-slide-canvas]'); + if (!stage) return ['No slide canvas mounted']; + const bounds = stage.getBoundingClientRect(); + const tolerance = 2; + const outside = (a: DOMRect, b: DOMRect) => a.left < b.left - tolerance || a.top < b.top - tolerance || + a.right > b.right + tolerance || a.bottom > b.bottom + tolerance; + const root = document.documentElement; + if (root.scrollHeight > root.clientHeight + tolerance || root.scrollWidth > root.clientWidth + tolerance) + errors.push('Document scrolls'); + const slots = [...stage.querySelectorAll('[data-slot]')]; + for (const slot of slots) { + const box = slot.getBoundingClientRect(); + if (outside(box, bounds)) errors.push(`${slot.dataset.slot}: outside slide`); + for (const other of slots) { + if (slots.indexOf(other) <= slots.indexOf(slot)) continue; + const b = other.getBoundingClientRect(); + if (Math.min(box.right, b.right) - Math.max(box.left, b.left) > tolerance && + Math.min(box.bottom, b.bottom) - Math.max(box.top, b.top) > tolerance) + errors.push(`${slot.dataset.slot}: overlaps ${other.dataset.slot}`); + } + } + for (const element of stage.querySelectorAll('*')) { + const box = element.getBoundingClientRect(); + if (!box.width || !box.height || getComputedStyle(element).visibility === 'hidden') continue; + const slot = element.closest('[data-slot]'); + const name = slot?.dataset.slot ?? element.className; + if (outside(box, slot?.getBoundingClientRect() ?? bounds)) errors.push(`${name}: descendant outside allocated region`); + if (!element.matches('input, select, textarea') && element.clientWidth && (element.scrollWidth > element.clientWidth + tolerance || + element.scrollHeight > element.clientHeight + tolerance)) errors.push(`${name}: content overflows or is clipped`); + } + return [...new Set(errors)]; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/useBiliVideos.ts b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/useBiliVideos.ts new file mode 100644 index 00000000..c6f52db6 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/useBiliVideos.ts @@ -0,0 +1,101 @@ +import { useEffect } from 'react'; + +// Bilibili metadata loader (optional). Fetches cover/title/ +// duration/views at runtime via JSONP. Degrades gracefully: empty bvid => hide card; +// failed fetch => "视频暂不可用" fallback (never stuck on a loading state). +// UI strings stay in Simplified Chinese (this is webpage output, not a skill doc). + +export interface BiliCard { + bvid: string; + title?: string; + cover?: string; + duration?: string; + views?: string; +} + +function formatViews(n: number): string { + if (n >= 100000000) return (n / 100000000).toFixed(1) + '亿播放'; + if (n >= 10000) return (n / 10000).toFixed(1) + '万播放'; + return n + '播放'; +} + +function formatDuration(s: number): string { + const m = Math.floor(s / 60); + const sec = s % 60; + return m + ':' + (sec < 10 ? '0' : '') + sec; +} + +let jsonpRequestSerial = 0; + +/** + * Fetch metadata for each bvid and call `onLoad(bvid, data)` per card. + * Best-effort: network/Api failures are swallowed and reported as null. + */ +export function useBiliVideos( + bvids: string[], + onLoad: (bvid: string, data: BiliCard | null) => void +) { + const bvidKey = Array.from( + new Set(bvids.filter((bvid) => bvid && bvid.startsWith('BV'))) + ).join('|'); + + useEffect(() => { + let cancelled = false; + const real = bvidKey ? bvidKey.split('|') : []; + if (real.length === 0) return; + + const callbackHost = window as unknown as Record; + const pending: Array<{ callbackName: string; script: HTMLScriptElement }> = []; + + real.forEach((bvid) => { + const callbackName = `__paper_skill_bili_${Date.now()}_${++jsonpRequestSerial}`; + const script = document.createElement('script'); + const dispose = () => { + delete callbackHost[callbackName]; + script.remove(); + }; + + callbackHost[callbackName] = (res: any) => { + if (cancelled) return; + dispose(); + if (!res || res.code !== 0 || !res.data) { + onLoad(bvid, null); + return; + } + const d = res.data; + onLoad(bvid, { + bvid, + title: d.title, + cover: d.pic ? d.pic.replace(/^http:/, 'https:') : undefined, + duration: d.duration ? formatDuration(d.duration) : undefined, + views: d.stat ? formatViews(d.stat.view) : undefined, + }); + }; + script.src = + 'https://api.bilibili.com/x/web-interface/view?bvid=' + + bvid + + '&jsonp=jsonp&callback=' + + callbackName; + script.onerror = () => { + if (cancelled) return; + dispose(); + onLoad(bvid, null); + }; + pending.push({ callbackName, script }); + document.body.appendChild(script); + }); + + return () => { + cancelled = true; + pending.forEach(({ callbackName, script }) => { + // A fetched JSONP script may already be queued for execution. Keep a + // temporary no-op callback so late responses cannot raise ReferenceError. + callbackHost[callbackName] = () => undefined; + script.remove(); + window.setTimeout(() => { + delete callbackHost[callbackName]; + }, 60_000); + }); + }; + }, [bvidKey, onLoad]); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/useTimeline.ts b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/useTimeline.ts new file mode 100644 index 00000000..27560fa6 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/lib/useTimeline.ts @@ -0,0 +1,29 @@ +import { useEffect, useRef, useState } from 'react'; + +/** One clock for all linked views. Widgets render the same logical progress. */ +export function useTimeline({ duration = 5000, loop = false, autoPlay = false } = {}) { + const [progress, setProgress] = useState(0); + const [playing, setPlaying] = useState(() => autoPlay && !matchMedia('(prefers-reduced-motion: reduce)').matches); + const current = useRef(0); + const seek = (value: number) => { current.current = Math.max(0, Math.min(1, value)); setProgress(current.current); }; + useEffect(() => { + const media = matchMedia('(prefers-reduced-motion: reduce)'); + const change = () => { if (media.matches) setPlaying(false); }; + media.addEventListener('change', change); + return () => media.removeEventListener('change', change); + }, []); + useEffect(() => { + if (!playing) return; + let frame = 0, previous = performance.now(); + const tick = (now: number) => { + const next = current.current + Math.min(now - previous, 100) / duration; + previous = now; + if (next >= 1 && !loop) { seek(1); setPlaying(false); return; } + seek(loop ? next % 1 : next); + frame = requestAnimationFrame(tick); + }; + frame = requestAnimationFrame(tick); + return () => cancelAnimationFrame(frame); + }, [playing, duration, loop]); + return { progress, playing }; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/main.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/main.tsx new file mode 100644 index 00000000..e9b5c47d --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/main.tsx @@ -0,0 +1,12 @@ +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import App from './App'; +import './styles/tokens.css'; +import './styles/components.css'; +import './styles/paper.css'; + +ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( + + + +); diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-algorithm.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-algorithm.tsx new file mode 100644 index 00000000..fcb83c64 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-algorithm.tsx @@ -0,0 +1,106 @@ +import React, { useEffect, useRef, useState } from 'react'; +import { setupCanvas } from '../lib/canvasKit'; + +const W = 620; +const H = 560; +const GREEN = '#228d5c'; +const BLUE = '#27446e'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; +const BG = '#f5f8f0'; + +const STEPS = [ + { code: '采样当前样本 (x, y)', desc: '从任务流里拿到新样本。' }, + { code: '抽 s 个批次:每批 = (x,y) + k−1 个记忆样本', desc: '当前样本总在场,其余从记忆里随机抽。' }, + { code: '批内逐样本 SGD(学习率 α,批大小 1)', desc: '每批里每个样本单独做一步梯度下降。' }, + { code: '批内 Reptile 元更新(β)', desc: '批内折返一次,浮现批内的对齐项。' }, + { code: '批间 Reptile 元更新(γ)', desc: 's 个批次之间再折返一次;γ=1 时等价于一次大 Reptile。' }, + { code: '蓄水池采样更新记忆 M', desc: '按 Algorithm R 决定新样本是否进记忆。' }, + { code: '进入下一个样本(循环)', desc: '整个过程对每个到来样本重复。' }, +]; + +export function MerAlgorithm() { + const ref = useRef(null); + const [step, setStep] = useState(0); + + useEffect(() => { + const c = ref.current; + if (!c) return; + const ctx = setupCanvas(c, W, H); + ctx.clearRect(0, 0, W, H); + ctx.fillStyle = BG; + ctx.fillRect(0, 0, W, H); + + // memory buffer + const slotW = 84, slotH = 96, gap = 14, x0 = 40, y0 = 60; + for (let k = 0; k < 5; k++) { + const x = x0 + k * (slotW + gap); + ctx.fillStyle = step >= 1 ? '#fff' : '#f1f4f8'; + ctx.fillRect(x, y0, slotW, slotH); + ctx.strokeStyle = step >= 1 && k < 4 ? BLUE : LINE; + ctx.lineWidth = 2; + ctx.strokeRect(x, y0, slotW, slotH); + ctx.fillStyle = MUTED; + ctx.font = '18px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText(k < 4 ? `旧样本 ${k}` : '空', x + 12, y0 + slotH / 2); + } + // current sample + ctx.fillStyle = step >= 0 ? ORANGE : '#f1f4f8'; + ctx.fillRect(x0, y0 + slotH + 30, slotW + 20, 44); + ctx.fillStyle = INK; + ctx.font = '20px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('当前 (x,y)', x0 + 10, y0 + slotH + 60); + + // alignment arrows + const ax = 320, ay = 400; + ctx.strokeStyle = BLUE; + ctx.lineWidth = 5; + ctx.beginPath(); + ctx.moveTo(ax, ay); + ctx.lineTo(ax + 90, ay - 40); + ctx.stroke(); + ctx.fillStyle = BLUE; + ctx.font = '20px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('记忆梯度', ax + 96, ay - 44); + const ang = step >= 4 ? -20 : step >= 3 ? 25 : 65; // 角度随对齐逐步减小 + const rad = (ang * Math.PI) / 180; + ctx.strokeStyle = ORANGE; + ctx.lineWidth = 5; + ctx.beginPath(); + ctx.moveTo(ax, ay); + ctx.lineTo(ax + 90 * Math.cos(rad), ay - 90 * Math.sin(rad)); + ctx.stroke(); + ctx.fillStyle = ORANGE; + ctx.fillText('新梯度', ax + 90 * Math.cos(rad) + 8, ay - 90 * Math.sin(rad) + 8); + ctx.fillStyle = INK; + ctx.font = '22px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText(step >= 4 ? '对齐后:夹角很小' : '对齐前:夹角较大', ax, ay + 40); + }, [step]); + + return ( +
+
+ {STEPS.map((s, i) => ( +
+ {i + 1}. {s.code} +
+ ))} +
+
+ +
{STEPS[step].desc}
+
+ + +
+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-alpha.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-alpha.tsx new file mode 100644 index 00000000..b7777aaf --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-alpha.tsx @@ -0,0 +1,56 @@ +import React, { useState } from 'react'; + +const GREEN = '#228d5c'; +const BLUE = '#27446e'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; + +export function MerAlpha() { + const [s, setS] = useState(5); + const lossW = s; + const alignW = (s * (s - 1)) / 2; + const maxW = Math.max(lossW, alignW, 1); + + return ( +
+
+
把固定记忆拆成更长序列,放大对齐项
+ +
+ Reptile 目标里,普通损失项权重正比于 s,而对齐正则项(梯度点积和)权重正比于 s(s−1)/2。 +
+
+
+
普通损失权重 ∝ s = {lossW}
+
+
+
+
+
+
对齐正则权重 ∝ s(s−1)/2 = {alignW}
+
+
+
+
+
+
+ 对齐项 / 损失项 ≈ {(alignW / lossW).toFixed(1)}×。s 越大,对齐(防遗忘、促迁移)占的比重越高——所以把记忆拆成逐个样本的长序列,比按批次处理效果更好。 +
+
+
+
两个可调系数
+
+ β:批内元学习率。实验中 β < 1,降低高阶项扰动。

+ γ:批间元学习率。实验中 γ = 1,使 MER 等价于一次大 Reptile。 +
+
+ 来源:论文 Sec 3.2 与 App. I。 +
+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-baselines.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-baselines.tsx new file mode 100644 index 00000000..94cf5c9a --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-baselines.tsx @@ -0,0 +1,139 @@ +import React, { useEffect, useRef, useState } from 'react'; +import { setupCanvas } from '../lib/canvasKit'; + +const W = 800; +const H = 560; +const GREEN = '#228d5c'; +const RED = '#c43f52'; +const BLUE = '#27446e'; +const ORANGE = '#f07e47'; +const PURPLE = '#7c3aed'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; +const BG = '#f5f8f0'; + +type Method = 'ewc' | 'gem' | 'er'; + +const OLD = { x: 0, y: -1 }; // 旧任务梯度:朝上 +const NEW = { x: Math.cos((205 * Math.PI) / 180), y: Math.sin((205 * Math.PI) / 180) }; // 冲突的新梯度 + +function vec(m: Method) { + if (m === 'ewc') return { x: NEW.x, y: 0 }; // 去掉向上的分量 + if (m === 'gem') return { x: NEW.x, y: 0 }; // 投影到 dot=0 + const nx = NEW.x + OLD.x, ny = NEW.y + OLD.y; // 回放:新旧平均 + const n = Math.hypot(nx, ny); + return { x: nx / n, y: ny / n }; +} + +const INFO: Record = { + ewc: { name: 'EWC', color: PURPLE, title: '钉住旧任务重要的参数', desc: '按 Fisher 信息给参数加惩罚,把新梯度里指向旧任务的分量压掉。本质是「减少共享」——只防向后干扰,不留未来迁移。', dot: '0.00' }, + gem: { name: 'GEM', color: BLUE, title: '投影掉冲突分量', desc: '解二次规划,找离原梯度最近、且与旧记忆点积 ≥ 0 的方向(Eq.8)。逐样本临时修正,没学到可泛化的「怎么改」。', dot: '0.00' }, + er: { name: '经验回放', color: GREEN, title: '补旧样本,新旧一起平均', desc: '不改梯度,而是把旧样本穿插进来,等效更新接近新旧梯度平均——已经带出一点迁移,这正是消融里 ER 强于 GEM 的原因。', dot: '0.58' }, +}; + +export function MerBaselines() { + const ref = useRef(null); + const [m, setM] = useState('ewc'); + + useEffect(() => { + const c = ref.current; + if (!c) return; + const ctx = setupCanvas(c, W, H); + ctx.clearRect(0, 0, W, H); + ctx.fillStyle = BG; + ctx.fillRect(0, 0, W, H); + const cx = 300, cy = 290, r = 150; + + ctx.strokeStyle = '#eef2f7'; + ctx.beginPath(); + ctx.arc(cx, cy, r, 0, Math.PI * 2); + ctx.stroke(); + ctx.strokeStyle = LINE; + ctx.beginPath(); + ctx.moveTo(cx - r - 30, cy); + ctx.lineTo(cx + r + 30, cy); + ctx.moveTo(cx, cy - r - 30); + ctx.lineTo(cx, cy + r + 30); + ctx.stroke(); + + const drawArrow = (v: { x: number; y: number }, color: string, label: string, dash: boolean) => { + const px = cx + v.x * r, py = cy + v.y * r; + ctx.strokeStyle = color; + ctx.lineWidth = 5; + ctx.setLineDash(dash ? [10, 8] : []); + ctx.beginPath(); + ctx.moveTo(cx, cy); + ctx.lineTo(px, py); + ctx.stroke(); + ctx.setLineDash([]); + const ang = Math.atan2(v.y, v.x); + ctx.beginPath(); + ctx.moveTo(px, py); + ctx.lineTo(px - 16 * Math.cos(ang - 0.4), py - 16 * Math.sin(ang - 0.4)); + ctx.lineTo(px - 16 * Math.cos(ang + 0.4), py - 16 * Math.sin(ang + 0.4)); + ctx.closePath(); + ctx.fillStyle = color; + ctx.fill(); + ctx.fillStyle = color; + ctx.font = 'bold 20px "Segoe UI", "PingFang SC", sans-serif'; + // 根据角度调整标签位置,避免重叠 + const labelDist = dash ? r + 50 : r + 30; // 虚线箭头标签更远 + const labelOffsetY = dash ? 20 : 8; // 虚线箭头标签往下偏移 + ctx.fillText(label, cx + labelDist * Math.cos(ang) - 16, cy + labelDist * Math.sin(ang) + labelOffsetY); + }; + + drawArrow(OLD, RED, '旧任务 ∂L_old', false); + drawArrow(NEW, ORANGE, '新任务 ∂L_new', true); + + const v = vec(m); + drawArrow(v, INFO[m].color, INFO[m].name, false); + + // padlock for EWC + if (m === 'ewc') { + ctx.fillStyle = PURPLE; + ctx.font = '26px "Segoe UI", sans-serif'; + ctx.fillText('🔒 锁住', cx + r * 0.2, cy - r - 22); + } + if (m === 'gem') { + // right-angle projection marker + ctx.strokeStyle = BLUE; + ctx.lineWidth = 2; + ctx.setLineDash([4, 6]); + ctx.beginPath(); + ctx.moveTo(cx + NEW.x * r, cy + NEW.y * r); + ctx.lineTo(cx + NEW.x * r, cy); + ctx.stroke(); + ctx.setLineDash([]); + } + if (m === 'er') { + ctx.fillStyle = GREEN; + ctx.font = '26px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('旧样本也在场', cx - 90, cy + r + 40); + } + }, [m]); + + const info = INFO[m]; + + return ( +
+ +
+
+ {(Object.keys(INFO) as Method[]).map(k => ( + + ))} +
+
{info.title}
+

{info.desc}

+
+ 改造后与旧任务梯度点积 = {info.dot}:{info.dot === '0.00' ? '不再干扰,但也没有迁移。' : '已经带出迁移。'} +
+
共同局限:三者都只盯着「向后干扰」,没有学会「以后何时共享参数」——这是 MER 要补上的。
+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-bench.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-bench.tsx new file mode 100644 index 00000000..79ef9fd7 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-bench.tsx @@ -0,0 +1,85 @@ +import React, { useState } from 'react'; + +const GREEN = '#228d5c'; +const BLUE = '#27446e'; +const RED = '#c43f52'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; + +const TABLE1: Record = { + Rotations: [ + { name: 'Online', color: RED, rot: 53.38, perm: 55.42 }, + { name: 'Independent', color: MUTED, rot: 60.74, perm: 55.80 }, + { name: 'Task Input', color: MUTED, rot: 79.98, perm: 80.46 }, + { name: 'EWC', color: ORANGE, rot: 57.96, perm: 62.32 }, + { name: 'GEM', color: BLUE, rot: 87.58, perm: 83.02 }, + { name: 'MER', color: GREEN, rot: 89.56, perm: 85.50 }, + ], + Permutations: [ + { name: 'Online', color: RED, rot: 53.38, perm: 55.42 }, + { name: 'Independent', color: MUTED, rot: 60.74, perm: 55.80 }, + { name: 'Task Input', color: MUTED, rot: 79.98, perm: 80.46 }, + { name: 'EWC', color: ORANGE, rot: 57.96, perm: 62.32 }, + { name: 'GEM', color: BLUE, rot: 87.58, perm: 83.02 }, + { name: 'MER', color: GREEN, rot: 89.56, perm: 85.50 }, + ], +}; + +const TABLE2: Record = { + Rotations: [ + { label: 'GEM', color: BLUE, v5120: 87.58, v500: 74.88, v200: 67.38 }, + { label: 'MER', color: GREEN, v5120: 89.56, v500: 82.08, v200: 77.42 }, + ], + Permutations: [ + { label: 'GEM', color: BLUE, v5120: 83.02, v500: 69.26, v200: 55.42 }, + { label: 'MER', color: GREEN, v5120: 85.50, v500: 77.50, v200: 73.46 }, + ], +}; + +export function MerBench() { + const [bench, setBench] = useState<'Rotations' | 'Permutations'>('Rotations'); + const [view, setView] = useState<'all' | 'buffer'>('all'); + + return ( +
+
+ + + + + +
+ +
+ {view === 'all' ? TABLE1[bench].map(m => { + const v = bench === 'Rotations' ? m.rot : m.perm; + return ( +
+
{v.toFixed(2)}
+
+
{m.name}
+
+ ); + }) : TABLE2[bench].flatMap(m => [ + { label: `${m.label} 5120`, color: m.color, v: m.v5120 }, + { label: `${m.label} 500`, color: m.color, v: m.v500 }, + { label: `${m.label} 200`, color: m.color, v: m.v200 }, + ].map(item => ( +
+
{item.v.toFixed(2)}
+
+
{item.label}
+
+ )))} +
+ +

+ {view === 'all' + ? `RA(最终保留准确率,越高越好):${bench === 'Rotations' ? 'MER 89.56 领先 GEM 87.58' : 'MER 85.50 领先 GEM 83.02'};EWC 与 Online 明显落后。来源:论文 Table 1。` + : `缓冲从 5120 缩到 200:${bench === 'Rotations' ? 'MER 只从 89.56 降到 77.42' : 'MER 只从 85.50 降到 73.46'},而 GEM ${bench === 'Rotations' ? '从 87.58 跌到 67.38' : '从 83.02 跌到 55.42'}——缓冲越小,MER 优势越大。来源:论文 Table 2。`} +

+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-cover.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-cover.tsx new file mode 100644 index 00000000..c2e7aa7f --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-cover.tsx @@ -0,0 +1,123 @@ +import React, { useEffect, useRef } from 'react'; +import { setupCanvas } from '../lib/canvasKit'; +import { useCoverPlayback } from '../components/CoverPlayback'; + +const W = 620; +const H = 320; +const BLUE = '#27446e'; +const GREEN = '#228d5c'; +const RED = '#c43f52'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; +const BG = '#f5f8f0'; +const TRACK = '#b8c9a7'; + +function drawRunner(ctx: CanvasRenderingContext2D, x: number, y: number, lean: number, color: string) { + ctx.save(); + ctx.translate(x, y); + ctx.strokeStyle = color; + ctx.lineWidth = 7; + ctx.lineCap = 'round'; + ctx.lineJoin = 'round'; + // head + ctx.beginPath(); + ctx.arc(0, -46, 11, 0, Math.PI * 2); + ctx.fillStyle = color; + ctx.fill(); + // torso (lean forward) + ctx.beginPath(); + ctx.moveTo(0, -35); + ctx.lineTo(lean * 10, -2); + ctx.stroke(); + // arms + ctx.beginPath(); + ctx.moveTo(0, -30); + ctx.lineTo(-14 - lean * 6, -14); + ctx.moveTo(0, -30); + ctx.lineTo(16 - lean * 6, -16); + ctx.stroke(); + // legs + ctx.beginPath(); + ctx.moveTo(lean * 10, -2); + ctx.lineTo(-16, 26); + ctx.moveTo(lean * 10, -2); + ctx.lineTo(18, 26); + ctx.stroke(); + ctx.restore(); +} + +function drawBar(ctx: CanvasRenderingContext2D, label: string, x: number, y: number, w: number, val: number, color: string) { + ctx.fillStyle = MUTED; + ctx.font = '20px "Segoe UI", "PingFang SC", sans-serif'; + ctx.textBaseline = 'alphabetic'; + ctx.fillText(label, x, y - 6); + ctx.fillStyle = LINE; + ctx.fillRect(x, y, w, 16); + ctx.fillStyle = color; + ctx.fillRect(x, y, w * Math.max(0, Math.min(1, val / 100)), 16); + ctx.fillStyle = INK; + ctx.font = 'bold 20px "Segoe UI", sans-serif'; + ctx.fillText(`${Math.round(val)}`, x + w + 12, y + 14); +} + +export function MerCover({ moduleId }: { chapterId: string; moduleId: string }) { + const ref = useRef(null); + const { progress } = useCoverPlayback(); + const isOld = moduleId === 'oldMethod'; + + useEffect(() => { + const c = ref.current; + if (!c) return; + const ctx = setupCanvas(c, W, H); + const t = progress; + ctx.clearRect(0, 0, W, H); + ctx.fillStyle = BG; + ctx.fillRect(0, 0, W, H); + // track + ctx.fillStyle = TRACK; + ctx.fillRect(0, H - 60, W, 60); + ctx.strokeStyle = '#76906a'; + ctx.lineWidth = 2; + for (let i = 0; i < W; i += 44) { + ctx.beginPath(); + ctx.moveTo(i, H - 60); + ctx.lineTo(i - 22, H); + ctx.stroke(); + } + // runner moves left->right + const rx = 70 + t * (W - 140); + const pose = isOld ? (t < 0.5 ? 0.4 : 1.1) : 0.55; + drawRunner(ctx, rx, H - 68, pose, isOld ? RED : GREEN); + // notebook for MER + if (!isOld) { + ctx.fillStyle = '#ffffff'; + ctx.strokeStyle = BLUE; + ctx.lineWidth = 2; + ctx.fillRect(60, 26, 52, 40); + ctx.strokeRect(60, 26, 52, 40); + ctx.beginPath(); + ctx.moveTo(60, 40); + ctx.lineTo(112, 40); + ctx.stroke(); + ctx.fillStyle = BLUE; + ctx.font = '12px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('旧样本', 68, 58); + } + // skill bars + const sprint = isOld ? 88 - 48 * t : 88 - 5 * t; + const endure = 40 + 48 * t; + drawBar(ctx, '短跑', 150, 40, 240, sprint, isOld ? RED : GREEN); + drawBar(ctx, '耐力', 150, 90, 240, endure, GREEN); + // verdict + ctx.fillStyle = isOld ? RED : GREEN; + ctx.font = 'bold 26px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText(isOld ? '旧技能退化' : '新旧技能一起保持', 150, 150); + ctx.fillStyle = MUTED; + ctx.font = '20px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText(isOld ? '只练新任务 → 忘了旧任务' : '穿插旧样本并做梯度对齐', 150, 184); + }, [progress, isOld]); + + return ; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-dot.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-dot.tsx new file mode 100644 index 00000000..00b8d471 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-dot.tsx @@ -0,0 +1,132 @@ +import React, { useEffect, useRef, useState } from 'react'; +import { setupCanvas } from '../lib/canvasKit'; + +const W = 800; +const H = 560; +const GREEN = '#228d5c'; +const RED = '#c43f52'; +const BLUE = '#27446e'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; +const BG = '#f5f8f0'; + +export function MerDot() { + const ref = useRef(null); + const [a1, setA1] = useState(0); + const [a2, setA2] = useState(100); + const drag = useRef(0); + + const cx = 300, cy = 300, r = 150; + + const dot = Math.cos(((a2 - a1) * Math.PI) / 180); + + const pos = (c: HTMLCanvasElement, e: React.PointerEvent) => { + const rect = c.getBoundingClientRect(); + return { x: ((e.clientX - rect.left) * W) / rect.width, y: ((e.clientY - rect.top) * H) / rect.height }; + }; + + useEffect(() => { + const c = ref.current; + if (!c) return; + const ctx = setupCanvas(c, W, H); + ctx.clearRect(0, 0, W, H); + ctx.fillStyle = BG; + ctx.fillRect(0, 0, W, H); + + const tip = (a: number) => ({ x: cx + r * Math.cos((a * Math.PI) / 180), y: cy - r * Math.sin((a * Math.PI) / 180) }); + + // circle grid + ctx.strokeStyle = '#eef2f7'; + for (let i = 1; i <= 3; i++) { + ctx.beginPath(); + ctx.arc(cx, cy, (r / 3) * i, 0, Math.PI * 2); + ctx.stroke(); + } + ctx.strokeStyle = LINE; + ctx.beginPath(); + ctx.moveTo(cx - r - 30, cy); + ctx.lineTo(cx + r + 30, cy); + ctx.moveTo(cx, cy - r - 30); + ctx.lineTo(cx, cy + r + 30); + ctx.stroke(); + + // arrow i (blue) and j (orange) + const drawArrow = (a: number, color: string, label: string) => { + const p = tip(a); + ctx.strokeStyle = color; + ctx.lineWidth = 5; + ctx.beginPath(); + ctx.moveTo(cx, cy); + ctx.lineTo(p.x, p.y); + ctx.stroke(); + // arrowhead + const ang = (a * Math.PI) / 180; + ctx.beginPath(); + ctx.moveTo(p.x, p.y); + ctx.lineTo(p.x - 16 * Math.cos(ang - 0.4), p.y + 16 * Math.sin(ang - 0.4)); + ctx.lineTo(p.x - 16 * Math.cos(ang + 0.4), p.y + 16 * Math.sin(ang + 0.4)); + ctx.closePath(); + ctx.fillStyle = color; + ctx.fill(); + // label at tip + ctx.fillStyle = color; + ctx.font = 'bold 22px "Segoe UI", "PingFang SC", sans-serif'; + const lx = cx + (r + 34) * Math.cos(ang), ly = cy - (r + 34) * Math.sin(ang); + ctx.fillText(label, lx - 16, ly + 8); + }; + drawArrow(a1, BLUE, '∂Lᵢ'); + drawArrow(a2, ORANGE, '∂Lⱼ'); + + // angle arc + ctx.strokeStyle = INK; + ctx.lineWidth = 2; + ctx.beginPath(); + ctx.arc(cx, cy, 44, (-a2 * Math.PI) / 180, (-a1 * Math.PI) / 180, a1 > a2); + ctx.stroke(); + const aMid = ((a1 + a2) / 2 * Math.PI) / 180; + ctx.fillStyle = INK; + ctx.font = '20px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText(`${Math.round(Math.abs(a1 - a2))}°`, cx + 60 * Math.cos(aMid), cy - 60 * Math.sin(aMid)); + }, [a1, a2]); + + const onDown = (e: React.PointerEvent) => { + const c = ref.current!; + const p = pos(c, e); + const tip = (a: number) => ({ x: cx + r * Math.cos((a * Math.PI) / 180), y: cy - r * Math.sin((a * Math.PI) / 180) }); + const d1 = Math.hypot(p.x - tip(a1).x, p.y - tip(a1).y); + const d2 = Math.hypot(p.x - tip(a2).x, p.y - tip(a2).y); + drag.current = d1 < 46 ? 1 : d2 < 46 ? 2 : 0; + if (drag.current) c.setPointerCapture(e.pointerId); + }; + const onMove = (e: React.PointerEvent) => { + if (!drag.current) return; + const c = ref.current!; + const p = pos(c, e); + const ang = Math.round((Math.atan2(cy - p.y, p.x - cx) * 180) / Math.PI); + if (drag.current === 1) setA1(ang); + else setA2(ang); + }; + + const verdict = dot > 0.02 ? '迁移:学 i 会帮到 j' : dot < -0.02 ? '干扰:学 i 会伤害 j' : '接近正交:几乎互不影响'; + + return ( +
+ (drag.current = 0)} style={{ touchAction: 'none', cursor: 'grab' }} /> +
+
拖动两个箭头改变夹角
+
+ ∂Li · ∂Lj = {dot.toFixed(2)} +
+
0 ? GREEN : dot < 0 ? RED : INK }}>{verdict}
+

+ 一步 SGD:θ ← θ − η·∂Li 后,样本 j 的损失近似变化 ΔLⱼ ≈ −η (∂Lᵢ·∂Lⱼ)。点积为正 → Lⱼ 下降(迁移);为负 → Lⱼ 上升(干扰)。 +

+
+ 论文 Eq.1/2 正是用这个点积的符号来操作性定义迁移与干扰——这是全文最重要的出发点。 +
+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-limits.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-limits.tsx new file mode 100644 index 00000000..05fffaa1 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-limits.tsx @@ -0,0 +1,67 @@ +import React, { useState } from 'react'; + +const GREEN = '#228d5c'; +const BLUE = '#27446e'; +const RED = '#c43f52'; +const ORANGE = '#f07e47'; +const PURPLE = '#7c3aed'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; + +const CARDS = [ + { + icon: '📦', + title: '依赖存储原始样本', + color: RED, + body: 'MER 需要保留真实样本才能回放(蓄水池采样 M 个),这在三类场景下不可行:\n\n① 隐私敏感:医疗影像、用户行为、金融交易——GDPR/HIPAA 要求「被遗忘权」,不能无限期留存样本。\n\n② 存储受限:边缘设备(手机、IoT)记忆容量有限;高维数据(视频、点云)存 200 个样本就可能占满存储。\n\n③ 在线流场景:实时推荐系统每秒上万样本,物理上无法全留。\n\n改进方向与权衡:\n• 生成式回放(伪样本):训练一个 GAN/VAE 生成旧任务样本,不存真样本。但生成器本身也会遗忘(mode collapse),且隐私风险未必完全消除(membership inference attack 仍可能重建训练数据)。\n• Mixture-of-Experts 显式拆分:让「何时共享参数」变成架构选择(不同专家处理不同任务子集),而非隐式学习。作者 App. B 提到可结合 MoE,但训练复杂度和路由策略设计是新挑战。\n• 压缩表示:存梯度统计量(均值/协方差)而非原样本——PackNet、CPG 等方法尝试这条路,但对齐项依赖样本级梯度,压缩后可能失效。' + }, + { + icon: '🎛️', + title: '超参搜索空间更大', + color: ORANGE, + body: 'MER 引入 4 个新超参(β, γ, s, k)+ 学习率 α + 缓冲大小 M,相比 GEM(1 个记忆 M)、EWC(1 个惩罚权重 λ)调参代价显著更高。\n\n潜在隐患:\n• 不同数据集最优超参可能差异大:Table 1 的 Rotations 与 Table 3 的 Omniglot 是否用同一组超参?论文只在 App. M 说「换种子/换机器定性结论不变」,但没给各基准的超参搜索日志。\n• 公平比较存疑:如果 MER 搜了 100 组超参、GEM 只搜 10 组,胜出可能是「调参预算」而非「方法本质」。\n\n防御措施(论文已做的):\n• App. M 用不同随机种子 + 不同计算节点重跑实验,验证「MER > GEM」的定性结论稳定。\n• 固定 γ=1、β ∈ [0.1, 0.5] 缩小搜索空间。\n\n仍需留意:\n• 新数据集应报告超参搜索范围和最优值,而非只报最终分数。\n• AutoML(如 Hyperband、贝叶斯优化)下 MER 的样本效率是否仍占优?这是开放问题。' + }, + { + icon: '🔀', + title: '依赖任务间相似性', + color: BLUE, + body: '对齐(让梯度点积为正)的前提是「任务足够相似,未来梯度方向可被元学习泛化」(Sec 6 Q5 原文)。这在两类场景下会失效:\n\n① 剧烈域漂移:从 MNIST 数字突然切到 ImageNet 自然图像,特征空间完全不同,强制对齐可能让两边都学不好(负迁移)。\n\n② 任务对抗:任务 A 要最大化某目标、任务 B 要最小化——梯度天然相反,对齐会互相抵消。例如 GAN 训练(生成器 vs 判别器)或多目标优化(准确率 vs 公平性)的冲突目标。\n\n实验证据的局限:\n• 论文所有基准(MNIST Rotations/Permutations、Omniglot、RL)都是「同域内的相关任务」——旋转角度变、像素置换、不同 Atari 游戏,但都在视觉-控制闭环内。\n• 缺少「跨模态」基准:文本→图像、语音→视频,或「跨领域」:医疗→金融。\n\n可能的改进:\n• 任务相似度预测:训练前先估计任务间梯度相关性,相似度低时降低对齐权重(动态 α 调度)。\n• 分层对齐:底层特征(边缘、纹理)对齐,高层语义(类别、属性)独立——类似迁移学习的 fine-tuning 策略。' + }, + { + icon: '🔬', + title: '只在小型模型上验证', + color: PURPLE, + body: '实验模型规模:两层 MLP(MNIST,~10K 参数)、4 层 CNN(Omniglot,~100K 参数)、小策略网络(RL,~50K 参数)。这与当前实践(Transformer 亿级参数)差距巨大。\n\n未验证的关键问题:\n\n① 计算开销是否可承受?\nMER 每个样本要回放 s×k 个旧样本(论文 s=5, k=10 → 每个新样本计算 50 个旧样本梯度)。对 GPT-3(175B 参数)做一次前向传播已需数秒,50 倍开销几乎不可行。\n• PackNet/LoRA 等参数高效方法能否与 MER 结合?如果只对齐低秩子空间的梯度,对齐项是否仍有效?\n\n② 大模型的遗忘曲线不同:\n• 小模型(10K 参数)灾难性遗忘严重(Table 1 Online 只剩 53%)。\n• 大模型可能自带「隐式正则」(过参数化的平坦最小值),遗忘更缓慢——此时 MER 的增益是否会缩水?Llama-2 的持续预训练实验显示,简单回放(ER)在大模型上已接近无遗忘。\n\n③ 记忆需求的规模效应:\n• 缓冲 M=200 对 MNIST(28×28=784 维)可接受,但对 GPT-3(每个样本几千 token)M=200 可能只覆盖几篇文档,代表性不足。\n• 蓄水池采样保证「每个样本留存概率 = M/N」,但当 N=万亿(LLM 预训练语料)时,M 需要多大才能保证低方差?论文未讨论。\n\n建议后续工作方向:\n• 在中等规模模型(BERT-base 110M、ResNet-50)上重现 MER,观察增益是否保持。\n• 探索「梯度检查点 + 混合精度」降低 MER 回放开销的可行性。\n• 对比 MER 与「Instruction Tuning + Replay」(LLM 常用方案)在多任务泛化上的差异。' + }, +]; + +export function MerLimits() { + const [open, setOpen] = useState(0); + + return ( +
+
+ {CARDS.map((c, i) => ( + + ))} +
+
+
{CARDS[open ?? 0].title}
+

{CARDS[open ?? 0].body}

+
+ 批判性阅读的三个层次:
+ ① 知道方法在哪些条件下成立(上面四张卡片)
+ ② 评估这些条件在你的场景是否满足(隐私?规模?任务分布?)
+ ③ 当条件不满足时,能指出改进方向而非简单否定

+ 这才是「读方法」而不是「背结论」——MER 在小模型、相似任务、可存样本的设定下显著优于 GEM/EWC,但这不意味着它在所有场景都是最优解。 +
+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-metrics.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-metrics.tsx new file mode 100644 index 00000000..75719445 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-metrics.tsx @@ -0,0 +1,35 @@ +import React from 'react'; + +const INK = '#21324a'; +const MUTED = '#68778f'; +const GREEN = '#228d5c'; +const RED = '#c43f52'; +const BLUE = '#27446e'; +const ORANGE = '#f07e47'; + +function Card({ tag, name, formula, def, color }: { tag: string; name: string; formula: string; def: string; color: string }) { + return ( +
+
{name}
+
{formula}
+
{def}
+
{tag}
+
+ ); +} + +export function MerMetrics() { + return ( +
+

+ 论文用三个指标比较方法(本节无交互,留给你对照后面的实验图)。跑步类比:RA 是赛季末对全部项目测的总成绩,LA 是每项刚练完当天的成绩,BTI 是「练完当天 → 赛季末」掉了多少。 +

+
+ + + +
+

注意方向:RA、LA 越高越好;BTI 为负是遗忘、为正才是「后续训练反而帮到了旧任务」。

+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-reptile.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-reptile.tsx new file mode 100644 index 00000000..75e3b4bd --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-reptile.tsx @@ -0,0 +1,106 @@ +import React, { useEffect, useRef, useState } from 'react'; +import { setupCanvas } from '../lib/canvasKit'; + +const W = 800; +const H = 560; +const GREEN = '#228d5c'; +const RED = '#c43f52'; +const BLUE = '#27446e'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; + +const m1 = { x: 190, y: 170 }; +const m2 = { x: 540, y: 380 }; +const th0 = { x: 370, y: 285 }; +const lr = 0.55, beta = 0.8; + +export function MerReptile() { + const ref = useRef(null); + const [step, setStep] = useState(0); + + const th1 = { x: th0.x + lr * (m1.x - th0.x), y: th0.y + lr * (m1.y - th0.y) }; + const th2 = { x: th1.x + lr * (m2.x - th1.x), y: th1.y + lr * (m2.y - th1.y) }; + const thm = { x: th0.x + beta * (th2.x - th0.x), y: th0.y + beta * (th2.y - th0.y) }; + + useEffect(() => { + const c = ref.current; + if (!c) return; + const ctx = setupCanvas(c, W, H); + ctx.clearRect(0, 0, W, H); + // loss landscape: two wells + const g1 = ctx.createRadialGradient(m1.x, m1.y, 10, m1.x, m1.y, 200); + g1.addColorStop(0, '#f3d7dc'); + g1.addColorStop(1, '#f5f8f0'); + ctx.fillStyle = g1; + ctx.fillRect(0, 0, W, H); + const g2 = ctx.createRadialGradient(m2.x, m2.y, 10, m2.x, m2.y, 200); + g2.addColorStop(0, '#fbe7d4'); + g2.addColorStop(1, 'rgba(245,248,240,0)'); + ctx.fillStyle = g2; + ctx.fillRect(0, 0, W, H); + ctx.fillStyle = MUTED; + ctx.font = '22px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('L(B₁) 低点', m1.x - 40, m1.y - 16); + ctx.fillText('L(B₂) 低点', m2.x - 40, m2.y - 16); + ctx.fillStyle = RED; + ctx.beginPath(); + ctx.arc(m1.x, m1.y, 6, 0, Math.PI * 2); + ctx.fill(); + ctx.fillStyle = ORANGE; + ctx.beginPath(); + ctx.arc(m2.x, m2.y, 6, 0, Math.PI * 2); + ctx.fill(); + + const point = (p: { x: number; y: number }, color: string, r: number, label: string) => { + ctx.fillStyle = color; + ctx.beginPath(); + ctx.arc(p.x, p.y, r, 0, Math.PI * 2); + ctx.fill(); + ctx.fillStyle = INK; + ctx.font = 'bold 22px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText(label, p.x + 12, p.y - 10); + }; + const arrow = (a: { x: number; y: number }, b: { x: number; y: number }, color: string) => { + ctx.strokeStyle = color; + ctx.lineWidth = 3; + ctx.beginPath(); + ctx.moveTo(a.x, a.y); + ctx.lineTo(b.x, b.y); + ctx.stroke(); + }; + + point(th0, BLUE, 8, 'θ₀'); + if (step >= 1) { arrow(th0, th1, BLUE); point(th1, BLUE, 7, 'θ₁'); } + if (step >= 2) { arrow(th1, th2, ORANGE); point(th2, ORANGE, 7, 'θ₂'); } + if (step >= 3) { arrow(th0, thm, GREEN); point(thm, GREEN, 9, 'θₘ'); } + }, [step]); + + const stages = [ + '起点 θ₀:本轮从这里开始', + '第 1 步 SGD 朝 L(B₁) 下降', + '第 2 步 SGD 朝 L(B₂) 下降', + `元更新:θₘ = θ₀ + β(θ₂−θ₀),β=${beta},折返一步`, + ]; + + return ( +
+ +
+
Reptile:走几步,再折返
+
+ + +
+
{stages[step]}
+
+ 折返不是回到 θ₀,而是沿「总位移方向」挪一点。一阶展开后,这个更新等价于最小化 + ∑ᵢ 2L(Bᵢ) − α∑i<j ∇L(Bᵢ)·∇L(Bⱼ) + ——前面是普通损失,后面是梯度点积(对齐)项。 +
+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-reservoir.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-reservoir.tsx new file mode 100644 index 00000000..13786b4a --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-reservoir.tsx @@ -0,0 +1,103 @@ +import React, { useEffect, useRef, useState } from 'react'; +import { setupCanvas } from '../lib/canvasKit'; + +const W = 800; +const H = 560; +const GREEN = '#228d5c'; +const RED = '#c43f52'; +const BLUE = '#27446e'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; +const BG = '#f5f8f0'; + +const M = 5; // 记忆容量 + +export function MerReservoir() { + const ref = useRef(null); + const [n, setN] = useState(0); // 已见样本数 + const [buf, setBuf] = useState([]); // 记忆中的样本编号(-1 表示空) + const [lastAction, setLastAction] = useState(''); + + const feed = () => { + const i = n; // 新样本编号 i(0-based) + setN(n + 1); + setBuf(prev => { + const next = [...prev]; + if (prev.length < M) { + next.push(i); + setLastAction(`样本 ${i} 加入记忆(还没满)。`); + } else { + // 蓄水池采样:随机 0..i,若 < M 则替换该位置 + const j = Math.floor(Math.random() * (i + 1)); + if (j < M) { + const replaced = next[j]; + next[j] = i; + setLastAction(`样本 ${i} 抽中位置 ${j},替换了样本 ${replaced}。`); + } else { + setLastAction(`样本 ${i} 抽签未中(j=${j} ≥ M),记忆不变。`); + } + } + return next; + }); + }; + + const reset = () => { setN(0); setBuf([]); setLastAction(''); }; + + useEffect(() => { + const c = ref.current; + if (!c) return; + const ctx = setupCanvas(c, W, H); + ctx.clearRect(0, 0, W, H); + ctx.fillStyle = BG; + ctx.fillRect(0, 0, W, H); + + // memory slots + const slotW = 120, slotH = 150, gap = 20, x0 = 60, y0 = 120; + for (let k = 0; k < M; k++) { + const x = x0 + k * (slotW + gap); + const filled = k < buf.length; + ctx.fillStyle = filled ? '#fff' : '#f1f4f8'; + ctx.fillRect(x, y0, slotW, slotH); + ctx.strokeStyle = filled ? BLUE : LINE; + ctx.lineWidth = filled ? 3 : 1; + ctx.strokeRect(x, y0, slotW, slotH); + ctx.fillStyle = INK; + ctx.font = 'bold 28px "Segoe UI", sans-serif'; + ctx.fillText(filled ? String(buf[k]) : '—', x + slotW / 2 - 18, y0 + slotH / 2 + 10); + ctx.fillStyle = MUTED; + ctx.font = '18px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText(`槽 ${k}`, x + slotW / 2 - 24, y0 + slotH + 26); + } + ctx.fillStyle = MUTED; + ctx.font = '22px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('记忆 M(容量 5)', x0, y0 - 26); + + // retention probability note + const pKeep = n > 0 ? Math.min(1, M / n) : 1; + ctx.fillStyle = INK; + ctx.font = '22px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText(`已见样本 N = ${n};任一旧样本留在记忆中的概率 = M/N = ${pKeep.toFixed(2)}`, x0, y0 + slotH + 70); + }, [buf, n]); + + return ( +
+ +
+
有限记忆,怎么公平代表过去?
+

+ 每来一个新样本,蓄水池采样用「抽签」决定是否替换记忆中的一格。这样不管样本多早出现,留在记忆里的概率都相同(= M/N)。 +

+
+ + +
+
{lastAction || '点击「喂入」开始。'}
+
+ 对比「只留最近」:那会让早期样本被彻底遗忘,经验回放就无法近似平稳分布(Eq.5)。这正是 GEM 在 Omniglot 上崩溃、而 MER 能收敛的一个原因(Sec 4 Q3)。 +
+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-sequential.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-sequential.tsx new file mode 100644 index 00000000..97eff5c0 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-sequential.tsx @@ -0,0 +1,116 @@ +import React, { useEffect, useRef, useState } from 'react'; +import { setupCanvas } from '../lib/canvasKit'; + +const W = 820; +const H = 560; +const GREEN = '#228d5c'; +const RED = '#c43f52'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; +const BG = '#f5f8f0'; + +function onlineAcc(i: number, t: number) { + if (i > t) return 0; + return 88 * Math.exp(-(t - i) * 0.22); +} +function merAcc(i: number, t: number) { + if (i > t) return 0; + return 88 * Math.exp(-(t - i) * 0.03); +} + +export function MerSequential() { + const ref = useRef(null); + const [t, setT] = useState(8); + + useEffect(() => { + const c = ref.current; + if (!c) return; + const ctx = setupCanvas(c, W, H); + ctx.clearRect(0, 0, W, H); + ctx.fillStyle = BG; + ctx.fillRect(0, 0, W, H); + + const padL = 60, padR = 30, padT = 30, padB = 50; + const plotW = W - padL - padR, plotH = H - padT - padB; + const x = (i: number) => padL + (i / 19) * plotW; + const y = (v: number) => padT + (1 - v / 100) * plotH; + + // axes + ctx.strokeStyle = LINE; + ctx.lineWidth = 1; + ctx.beginPath(); + ctx.moveTo(padL, padT); + ctx.lineTo(padL, padT + plotH); + ctx.lineTo(padL + plotW, padT + plotH); + ctx.stroke(); + ctx.fillStyle = MUTED; + ctx.font = '18px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('任务 1', padL - 8, padT + plotH + 26); + ctx.fillText('任务 20', padL + plotW - 60, padT + plotH + 26); + ctx.fillText('准确率 %', 10, padT + plotH / 2); + for (let g = 0; g <= 100; g += 25) { + ctx.fillText(String(g), padL - 34, y(g) + 6); + ctx.strokeStyle = '#eef2f7'; + ctx.beginPath(); + ctx.moveTo(padL, y(g)); + ctx.lineTo(padL + plotW, y(g)); + ctx.stroke(); + ctx.strokeStyle = LINE; + } + + // bars per task for online (red) and mer (green) + const bw = Math.min(24, plotW / 20 / 2); + for (let i = 0; i < 20; i++) { + const o = onlineAcc(i, t); + const m = merAcc(i, t); + if (o > 0) { + ctx.fillStyle = RED; + ctx.fillRect(x(i) - bw - 2, y(o), bw, padT + plotH - y(o)); + } + if (m > 0) { + ctx.fillStyle = GREEN; + ctx.fillRect(x(i) + 2, y(m), bw, padT + plotH - y(m)); + } + } + + // current task marker + ctx.fillStyle = ORANGE; + ctx.beginPath(); + ctx.arc(x(t), padT + plotH + 14, 7, 0, Math.PI * 2); + ctx.fill(); + + // legend + ctx.fillStyle = RED; + ctx.fillRect(padL + 8, padT + 10, 16, 16); + ctx.fillStyle = INK; + ctx.font = '20px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('在线 SGD(只学新任务)', padL + 32, padT + 24); + ctx.fillStyle = GREEN; + ctx.fillRect(padL + 8, padT + 36, 16, 16); + ctx.fillStyle = INK; + ctx.fillText('MER(回放 + 对齐)', padL + 32, padT + 50); + }, [t]); + + const worst = Math.max(0, Math.round(onlineAcc(Math.max(0, t - 8), t))); + const merSame = Math.round(merAcc(Math.max(0, t - 8), t)); + + return ( +
+ +
+
学完第 {t + 1} 个任务后回头看
+

+ 每根柱是「该任务此刻的准确率」。在线学习刚学完一个任务时最高,越往后越被覆盖。 +

+ +
+ 学完第 {t + 1} 个任务时,第 {Math.max(1, t - 7)} 个任务:在线学习只剩约 {worst}%,MER 仍保持约 {merSame}%。 +
+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-sharing.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-sharing.tsx new file mode 100644 index 00000000..0d2a019d --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-sharing.tsx @@ -0,0 +1,122 @@ +import React, { useEffect, useRef, useState } from 'react'; +import { setupCanvas } from '../lib/canvasKit'; + +const W = 800; +const H = 560; +const GREEN = '#228d5c'; +const RED = '#c43f52'; +const BLUE = '#27446e'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; +const BG = '#f5f8f0'; + +export function MerSharing() { + const ref = useRef(null); + const [share, setShare] = useState(0.6); + + useEffect(() => { + const c = ref.current; + if (!c) return; + const ctx = setupCanvas(c, W, H); + ctx.clearRect(0, 0, W, H); + ctx.fillStyle = BG; + ctx.fillRect(0, 0, W, H); + + // two parameter sets as Venn circles + const cx1 = 260, cx2 = 260 + 150 * (1 - share * 0.6), cy = 200, rr = 110; + ctx.globalAlpha = 0.35; + ctx.fillStyle = BLUE; + ctx.beginPath(); + ctx.arc(cx1, cy, rr, 0, Math.PI * 2); + ctx.fill(); + ctx.fillStyle = ORANGE; + ctx.beginPath(); + ctx.arc(cx2, cy, rr, 0, Math.PI * 2); + ctx.fill(); + ctx.globalAlpha = 1; + ctx.strokeStyle = INK; + ctx.lineWidth = 2; + ctx.beginPath(); + ctx.arc(cx1, cy, rr, 0, Math.PI * 2); + ctx.stroke(); + ctx.beginPath(); + ctx.arc(cx2, cy, rr, 0, Math.PI * 2); + ctx.stroke(); + ctx.fillStyle = INK; + ctx.font = 'bold 24px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('任务 1 参数', cx1 - 70, cy - 50); + ctx.fillText('任务 2 参数', cx2 - 70, cy + 60); + // overlap region highlight + const overlap = Math.max(0, rr * 2 - Math.abs(cx2 - cx1)); + ctx.fillStyle = GREEN; + ctx.globalAlpha = 0.3; + if (overlap > 0) { + ctx.beginPath(); + ctx.ellipse((cx1 + cx2) / 2, cy, overlap / 2, rr, 0, 0, Math.PI * 2); + ctx.fill(); + } + ctx.globalAlpha = 1; + ctx.fillStyle = GREEN; + ctx.font = '20px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('共享参数', (cx1 + cx2) / 2 - 44, cy - 10); + + // potential chart (bottom) + const px = 60, pw = W - 120, ph = 130, py = 360; + ctx.strokeStyle = LINE; + ctx.strokeRect(px, py, pw, ph); + ctx.fillStyle = MUTED; + ctx.font = '18px "Segoe UI", "PingFang SC", sans-serif'; + ctx.fillText('潜力', px - 34, py + 20); + ctx.fillText('0', px - 12, py + ph + 24); + ctx.fillText('共享比例 1', px + pw - 80, py + ph + 24); + const y = (v: number) => py + ph - v * ph; + // interference potential (red) and transfer potential (green) both linear in share + ctx.strokeStyle = RED; + ctx.lineWidth = 3; + ctx.beginPath(); + ctx.moveTo(px, y(0)); + ctx.lineTo(px + pw * share, y(share)); + ctx.stroke(); + ctx.strokeStyle = GREEN; + ctx.beginPath(); + ctx.moveTo(px, y(0)); + ctx.lineTo(px + pw * share, y(share)); + ctx.stroke(); + // dot at current share + ctx.fillStyle = RED; + ctx.beginPath(); + ctx.arc(px + pw * share, y(share), 7, 0, Math.PI * 2); + ctx.fill(); + ctx.fillStyle = GREEN; + ctx.beginPath(); + ctx.arc(px + pw * share, y(share) - 6, 7, 0, Math.PI * 2); + ctx.fill(); + }, [share]); + + return ( +
+ +
+
共享越多,两种潜力一起涨
+ +
+
+
迁移潜力 ↑
+
{(share * 100).toFixed(0)}
+
+
+
干扰潜力 ↑
+
{(share * 100).toFixed(0)}
+
+
+

+ 完全共享 → 迁移和干扰都最大;完全不共享 → 两者都为零(点积恒为 0)。所以「减少共享」能防遗忘,却牺牲了未来迁移——这正是旧方法的局限,也是论文主张「学会何时共享」的原因(App. C)。 +

+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-stationarity.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-stationarity.tsx new file mode 100644 index 00000000..7c0d55e5 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-stationarity.tsx @@ -0,0 +1,67 @@ +import React, { useState } from 'react'; + +const GREEN = '#228d5c'; +const BLUE = '#27446e'; +const RED = '#c43f52'; +const ORANGE = '#f07e47'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; + +const DATA = { + many: { title: 'Many Permutations(100 任务 × 200 样本)', bars: [ + { name: 'Online', v: 32.62, c: RED }, { name: 'EWC', v: 33.46, c: ORANGE }, + { name: 'GEM 5120', v: 56.76, c: BLUE }, { name: 'GEM 500', v: 32.14, c: BLUE }, + { name: 'MER 5120', v: 62.52, c: GREEN }, { name: 'MER 500', v: 47.40, c: GREEN }, + ], note: '任务翻 5 倍、每个任务样本只剩 1/5,非平稳性大增:GEM 在记忆 500 时只剩 32.14,MER 仍有 47.40。' }, + omni: { title: 'Omniglot(50 个字母表)', bars: [ + { name: 'Online', v: 4.36, c: RED }, { name: 'EWC', v: 4.63, c: ORANGE }, + { name: 'GEM 5120', v: 18.03, c: BLUE }, { name: 'MER 5120', v: 75.23, c: GREEN }, { name: 'MER 500', v: 32.05, c: GREEN }, + ], note: '最非平稳的基准:MER(75.23)约为 GEM(18.03)的 4 倍;GEM 在记忆 500 时二次规划无法稳定收敛,MER 仍能跑。' }, +}; + +const DOTS = [ + { name: 'Permuted', er: -0.569, mer: 0.042 }, + { name: 'Rotations', er: -1.652, mer: 0.017 }, + { name: 'Many Perm', er: -1.280, mer: 0.131 }, +]; + +export function MerStationarity() { + const [which, setWhich] = useState<'many' | 'omni'>('many'); + const d = DATA[which]; + const max = Math.max(...d.bars.map(b => b.v)); + + return ( +
+
+ + + {d.title} +
+ +
+ {d.bars.map(b => ( +
+
{b.v.toFixed(2)}
+
+
{b.name}
+
+ ))} +
+

{d.note} 来源:论文 Table 3。

+ +
+
平均梯度点积(Table 4)
+ {DOTS.map(dt => ( +
+
{dt.name}
+
+ ER {dt.er.toFixed(3)} → MER {dt.mer.toFixed(3)} +
+
+ ))} +
MER 把新样本与旧样本的梯度点积从「显著为负(干扰)」扭转为「略为正(轻微迁移)」,直接验证了目标 Eq.7。
+
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-takeaway.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-takeaway.tsx new file mode 100644 index 00000000..1f9dd708 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/mer-takeaway.tsx @@ -0,0 +1,39 @@ +import React, { useState } from 'react'; + +const GREEN = '#228d5c'; +const BLUE = '#27446e'; +const RED = '#c43f52'; +const INK = '#21324a'; +const MUTED = '#68778f'; +const LINE = '#d7deea'; + +const BEATS = [ + { color: RED, tag: '问题', title: '遗忘 = 干扰', body: '顺序学习时,新样本的梯度与旧任务点积为负,一步更新就把旧知识冲掉。' }, + { color: BLUE, tag: '洞察', title: '迁移与干扰是时间对称的', body: '点积 >0 迁移、<0 干扰;共享越多两者潜力越大,所以要「学会何时共享」而不是一味减少共享。' }, + { color: GREEN, tag: '方法', title: '回放 + 元学习对齐', body: '蓄水池采样的小记忆近似平稳分布,Reptile 一阶近似最大化点积——小记忆就够,越非平稳越强。' }, +]; + +export function MerTakeaway() { + const [idx, setIdx] = useState(0); + + return ( +
+
+ {BEATS.map((b, i) => ( + + ))} +
+
+
{BEATS[idx].title}
+

{BEATS[idx].body}

+
+
+ 对照上次读的 EWC:EWC 是「减少共享、钉住重要参数」,只护住过去;MER 是「学会何时共享」,把过去和未来一起经营。这是从「防遗忘」到「会迁移」的一步升级。 +
+
+ ); +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/registry.tsx b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/registry.tsx new file mode 100644 index 00000000..ec439cad --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/modules/registry.tsx @@ -0,0 +1,36 @@ +import React from 'react'; +import { MerAlgorithm } from './mer-algorithm'; +import { MerAlpha } from './mer-alpha'; +import { MerBaselines } from './mer-baselines'; +import { MerBench } from './mer-bench'; +import { MerCover } from './mer-cover'; +import { MerDot } from './mer-dot'; +import { MerLimits } from './mer-limits'; +import { MerMetrics } from './mer-metrics'; +import { MerReptile } from './mer-reptile'; +import { MerReservoir } from './mer-reservoir'; +import { MerSequential } from './mer-sequential'; +import { MerSharing } from './mer-sharing'; +import { MerStationarity } from './mer-stationarity'; +import { MerTakeaway } from './mer-takeaway'; + +export interface WidgetProps { + chapterId: string; + moduleId: string; +} + +export const widgetRegistry: Record> = {}; +widgetRegistry['mer-algorithm'] = MerAlgorithm; +widgetRegistry['mer-alpha'] = MerAlpha; +widgetRegistry['mer-baselines'] = MerBaselines; +widgetRegistry['mer-bench'] = MerBench; +widgetRegistry['mer-cover'] = MerCover; +widgetRegistry['mer-dot'] = MerDot; +widgetRegistry['mer-limits'] = MerLimits; +widgetRegistry['mer-metrics'] = MerMetrics; +widgetRegistry['mer-reptile'] = MerReptile; +widgetRegistry['mer-reservoir'] = MerReservoir; +widgetRegistry['mer-sequential'] = MerSequential; +widgetRegistry['mer-sharing'] = MerSharing; +widgetRegistry['mer-stationarity'] = MerStationarity; +widgetRegistry['mer-takeaway'] = MerTakeaway; diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/components.css b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/components.css new file mode 100644 index 00000000..359875a2 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/components.css @@ -0,0 +1,304 @@ +/* Shared UI from the reference template. Import unchanged after tokens.css. */ + +/* ---------- Foundation ---------- */ +* { box-sizing: border-box; margin: 0; padding: 0; } +html { scroll-behavior: smooth; } +body { + min-width: 320px; + font-family: var(--ui-font-sans); + background: + radial-gradient(circle at top left, rgba(39, 68, 110, 0.06), transparent 30%), + linear-gradient(180deg, var(--ui-bg-page-top) 0%, var(--ui-bg-page) 100%); + color: var(--ink); + font-size: var(--ui-type-body-size); + font-weight: var(--ui-type-body-weight); + line-height: var(--ui-type-body-line-height); + -webkit-font-smoothing: antialiased; +} +a { color: var(--blue); text-decoration: none; } +a:hover { text-decoration: underline; } +p { margin: 0.7em 0; } +button, input, select, textarea { font: inherit; } +button { + transition: + transform var(--t-fast) var(--ease-out), + box-shadow var(--t-fast) var(--ease-out), + background-color var(--t-fast) var(--ease-out), + border-color var(--t-fast) var(--ease-out), + color var(--t-fast) var(--ease-out); +} +button { cursor: pointer; } +button:active { transform: translateY(0) scale(0.97); } +button:focus-visible, [tabindex]:focus-visible, +a:focus-visible, input:focus-visible { + outline: 3px solid rgba(39, 68, 110, 0.4); + outline-offset: 3px; + border-radius: inherit; +} + +canvas { + display: block; + max-width: 100%; + margin: 8px auto; + background: var(--paper); + border: 1px solid var(--line); + border-radius: var(--ui-radius-sm); +} + + +/* ---------- Controls ---------- */ +input[type="range"] { + appearance: none; + width: 100%; + height: 6px; + background: linear-gradient(90deg, var(--blue-soft), var(--blue)); + border-radius: var(--ui-radius-pill); + outline: none; + cursor: pointer; +} +input[type="range"]::-webkit-slider-thumb { + appearance: none; + width: 20px; + height: 20px; + background: #fff; + border: 3px solid var(--blue); + border-radius: 50%; + box-shadow: 0 2px 8px rgba(25, 42, 70, 0.2); + transition: transform var(--t-fast) var(--ease-spring); +} +input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); } +input[type="range"]::-moz-range-thumb { + width: 20px; + height: 20px; + background: #fff; + border: 3px solid var(--blue); + border-radius: 50%; + box-shadow: 0 2px 8px rgba(25, 42, 70, 0.2); +} +/* ---------- Formula UI: Unicode/HTML, no external renderer ---------- */ +.formula-explain { + position: relative; + margin: 14px 0; + padding: 20px; + background: linear-gradient(135deg, var(--blue-soft) 0%, var(--green-soft) 100%); + border: 1px solid var(--line); + border-radius: var(--radius-sm); + text-align: center; +} +.fe-formula { + display: inline-block; + margin: 4px 0; + padding: 12px 22px; + background: #fff; + border: 1px solid var(--line); + border-radius: var(--ui-radius-sm); + color: var(--blue); + font-family: "Cambria Math", Georgia, serif; + font-size: var(--ppt-body-emphasis); + font-weight: var(--ui-type-formula-weight); + line-height: var(--ui-type-formula-line-height); + max-width: 100%; + overflow-wrap: anywhere; +} +.formula-symbol { + cursor: help; + border-bottom: 1px dotted currentColor; + border-radius: 3px; + touch-action: manipulation; +} +.formula-symbol:hover, .formula-symbol:focus-visible { + background: var(--blue-soft); + outline: 2px solid var(--blue); + outline-offset: 3px; +} +.formula-symbol-tooltip { + position: fixed; + z-index: 10000; + box-sizing: border-box; + width: max-content; + max-width: min(480px, calc(100vw - 24px)); + padding: 12px 16px; + background: #fff; + color: var(--ink); + border: 1px solid var(--line); + border-radius: var(--radius-sm); + box-shadow: var(--shadow-soft); + font-family: var(--ui-font-body, sans-serif); + font-size: var(--ppt-body-text); + font-weight: 400; + line-height: 1.4; + overflow-wrap: anywhere; + text-align: left; +} +/* ---------- Bilibili recommendations: fixed-slide paged grid ---------- */ +.dl-related-section { + position: absolute; + inset: 42px 64px; + margin: 0; + padding: 24px; + background: var(--paper); + border: 1px solid var(--line); + border-radius: var(--radius); + box-shadow: var(--shadow-soft); +} +.dl-related-section h3 { + margin: 0 0 6px; + color: var(--ink); + font-size: var(--ppt-body-heading); + font-weight: var(--ui-type-h2-weight); + letter-spacing: var(--ui-type-h2-letter-spacing); + line-height: var(--ui-type-h2-line-height); +} +.dl-related-section > p { margin: 0 0 14px; color: var(--ink-2); font-size: var(--ppt-body-text); font-weight: var(--ui-type-body-small-weight); } +.dl-video-strip { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 24px; +} +a.dl-video-card { + display: grid; + position: relative; + gap: 7px; + min-width: 0; + padding: 0; + background: transparent; + border: 0; + border-radius: var(--ui-radius-sm); + color: inherit; + text-decoration: none; +} +.dl-video-link-cover { + display: grid; + position: relative; + overflow: hidden; + place-items: center; + width: 100%; + aspect-ratio: 16 / 9; + background: linear-gradient(135deg, #1f385d 0%, var(--ui-accent) 100%); + border-radius: var(--ui-radius-sm); + box-shadow: 0 8px 18px rgba(33, 50, 74, 0.08); +} +a.dl-video-card:hover .dl-video-link-cover { + transform: translateY(-2px); + box-shadow: 0 12px 24px rgba(18, 31, 48, 0.22); +} +.dl-video-cover-img { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + object-fit: cover; + opacity: 0; + transition: opacity var(--t-med) var(--ease-out); +} +.dl-video-link-cover.is-loaded .dl-video-cover-img { opacity: 1; } +/* Keep the gradient as the backdrop so a failed/unavailable cover still looks clean. */ +.dl-video-link-cover.is-loaded { background: linear-gradient(135deg, #1f385d 0%, var(--ui-accent) 100%); } +.dl-video-play { + display: grid; + position: relative; + z-index: 2; + width: 44px; + height: 44px; + place-items: center; + background: rgba(39, 68, 110, 0.88); + border: 1px solid rgba(255, 255, 255, 0.68); + border-radius: 50%; + box-shadow: 0 6px 16px rgba(18, 31, 48, 0.24); + color: #fff; + font-size: 17px; + line-height: 1; + text-indent: 3px; +} +.dl-video-badge, .dl-video-link-tag { + position: absolute; + left: 8px; + bottom: 8px; + z-index: 3; + padding: 3px 8px; + background: rgba(18, 31, 48, 0.66); + border-radius: 4px; + color: #fff; + font-size: var(--ppt-body-text); + font-weight: var(--ui-type-body-small-weight); + letter-spacing: 0; +} +.dl-video-duration { + position: absolute; + right: 8px; + bottom: 8px; + z-index: 3; + padding: 2px 6px; + background: rgba(18, 31, 48, 0.78); + border-radius: 4px; + color: #fff; + font-family: var(--ui-font-mono); + font-size: var(--ppt-body-text); + font-weight: var(--ui-type-body-small-weight); +} +.dl-video-card strong { + display: -webkit-box; + overflow: hidden; + color: var(--blue); + font-size: var(--ppt-body-text); + font-weight: var(--ui-type-body-small-weight); + line-height: var(--ui-type-body-small-line-height); + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; +} +.dl-video-meta { + display: flex; + align-items: center; + gap: 8px; + color: var(--slate-2); + font-size: var(--ppt-body-text); + font-weight: var(--ui-type-body-small-weight); + line-height: var(--ui-type-body-small-line-height); +} +.dl-video-meta .views::before { content: '▶ '; } +.dl-video-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 28px; font-size: var(--ppt-body-text); } +.dl-video-pagination button { padding: 10px 20px; background: var(--paper); color: var(--blue); border: 1px solid var(--line); border-radius: var(--radius-sm); } +.dl-video-pagination button:disabled { opacity: .4; cursor: default; } + +/* ---------- Responsive behavior ---------- */ +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + *, *::before, *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + } +} + +/* ---------- Optional paper figures (public/images or URL) ---------- */ +.paper-figure { + margin: 14px 0; + text-align: center; +} +.paper-figure img { + max-width: 100%; + border: 1px solid var(--line); + border-radius: var(--ui-radius-sm); + background: #fff; +} +.paper-figure figcaption { + margin-top: 6px; + color: var(--slate); + font-size: var(--ppt-body-text); + font-weight: var(--ui-type-body-small-weight); + line-height: var(--ui-type-body-small-line-height); +} + +html { touch-action: pan-x pan-y pinch-zoom; } +html, body, #root { width: 100%; height: 100%; min-width: 0; overflow: hidden; } +.slide-viewport { flex: 1; min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; } +.slide-content { position: absolute; max-width: none; margin: 0; padding: 0; animation: none; background: var(--paper); overflow: hidden; } +/* Local slide gestures also work in DevTools mobile emulation. */ +.slide-viewport { position: relative; touch-action: none; } +.slide-viewport.is-zoomed { cursor: grab; } +.slide-viewport.is-zoomed:active { cursor: grabbing; } +.slide-zoom-controls { position: absolute; z-index: 10; right: 8px; top: 8px; display: flex; align-items: center; padding: 3px; border: 1px solid #e0e5eb; border-radius: 10px; background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(31,49,73,.04); } +.slide-zoom-controls button { display: grid; place-items: center; height: 30px; min-width: 30px; padding: 0 6px; border: 0; border-radius: 7px; background: transparent; color: #4b607c; font-size: 16px; } +.slide-zoom-controls button:hover:not(:disabled) { background: #edf2f8; } +.slide-zoom-controls button:disabled { opacity: .3; cursor: default; } +.slide-zoom-controls .slide-zoom-reset { font-family: var(--ui-font-mono); font-size: 11px; min-width: 48px; } diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/paper.css b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/paper.css new file mode 100644 index 00000000..a10f0c33 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/paper.css @@ -0,0 +1,11 @@ +/* Paper-specific overrides. This is the ONLY stylesheet the generator edits. + Keep the semantic color roles from tokens.css stable (see contract.md §5): + --blue = guidance/current, --green = success/paper method, --red = failure/old, + --orange = emphasis, --purple = auxiliary. Only append metaphor scene colors + or tune scene backgrounds here. Do NOT rewrite tokens.css / components.css. */ + +:root { + --paper-scene-bg: #f5f8f0; + --paper-track: #b8c9a7; + --paper-track-dark: #76906a; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/presentation.css b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/presentation.css new file mode 100644 index 00000000..ae0c5600 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/presentation.css @@ -0,0 +1,95 @@ +/* Independent implementation of the referenced SceneDeck presentation format. */ +:root { --ppt-body-text: 28px; --ppt-body-heading: 34px; --ppt-body-emphasis: 44px; } +.ppt-app { position: fixed; inset: 0; display: grid; grid-template-rows: 64px minmax(0,1fr); color: #1a2231; background: #eceff5; } +.ppt-app button { cursor: pointer; font: inherit; } +.ppt-app button:focus-visible { outline: 3px solid #2f6bff; outline-offset: 3px; } +.ppt-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; padding: 0 20px; gap: 16px; background: #fff; border-bottom: 1px solid #e4e8f0; font-size: 16px; } +.ppt-toolbar-group,.ppt-pager { display: flex; align-items: center; gap: 12px; min-width: 0; } +.ppt-toolbar button,.ppt-fullscreen-nav button,.ppt-notes button { border: 0; border-radius: 8px; background: transparent; color: #526177; min-width: 38px; min-height: 38px; padding: 4px 10px; } +.ppt-toolbar button:hover,.ppt-fullscreen-nav button:hover { background: #eef3ff; color: #2455d8; } +.ppt-app button:disabled { opacity: .3; cursor: default; } +.ppt-brand { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.ppt-tools { justify-content: flex-end; } +.ppt-toolbar .ppt-present { background: #2f6bff; color: white; padding: 4px 20px; } +.ppt-pager { font-variant-numeric: tabular-nums; gap: 16px; } +.ppt-pager > span { min-width: 72px; text-align: center; } +.ppt-pager > span > span { color: #8791a0; } +.ppt-pager button { font-size: 28px; } +.ppt-workspace { display: flex; min-height: 0; min-width: 0; } +.ppt-directory { width: 258px; flex: none; min-height: 0; background: #f8f9fc; border-right: 1px solid #d3dae6; display: flex; flex-direction: column; } +.ppt-directory-label { flex: none; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: #6a7484; } +.ppt-directory nav { overflow-y: auto; min-height: 0; padding: 0 14px 18px; scrollbar-width: thin; } +.ppt-thumb { display: block; width: 100%; border: 0; padding: 8px; margin: 0 0 12px; border-radius: 10px; background: transparent; text-align: left; } +.ppt-thumb:hover { background: #e9edf5; } +.ppt-thumb.is-active { background: #e8efff; } +.ppt-thumb-preview { display: block; aspect-ratio: 16/9; background: white; border: 1px solid #d3dae6; border-radius: 5px; position: relative; overflow: hidden; box-shadow: 0 2px 5px #1a22310a; } +.ppt-thumb.is-active .ppt-thumb-preview { border-color: #2f6bff; box-shadow: 0 0 0 2px #2f6bff; } +.ppt-thumb-preview img { width: 100%; height: 100%; object-fit: contain; } +.ppt-thumb-number { position: absolute; bottom: 5px; left: 6px; padding: 1px 5px; font-size: 12px; background: #edf1f8; border-radius: 3px; color: #566780; } +.ppt-thumb-title { display: block; margin-top: 8px; color: #3b4a61; font-size: 18px; line-height: 1.4; } +.ppt-thumb-summary { display: flex; flex-direction: column; padding: 10px 12px; gap: 5px; color: #27446e; } +.ppt-thumb-summary strong { font-size: 14px; line-height: 1.35; } +.ppt-thumb-summary > span { font-size: 12px; line-height: 1.35; max-height: 33px; overflow: hidden; color: #68778f; } +.ppt-thumb-summary i { display: block; width: 60%; height: 18px; background: #eef3fb; border-left: 3px solid #f07e47; margin-top: 4px; } +.ppt-stage-area { flex: 1; min-width: 0; min-height: 0; max-width: none; padding: 0; margin: 0; position: relative; display: flex; background: radial-gradient(#b8c4d573 1px,transparent 1px), radial-gradient(ellipse at top,#f8fafd,#e6ebf3); background-size: 24px 24px,100% 100%; } +.ppt-stage-area .slide-content { border-radius: 12px; box-shadow: 0 26px 64px #24365033; background: white; } +.ppt-stage-area.is-presenting { background: #111827; width: 100%; height: 100%; } +.ppt-stage-area.is-presenting .slide-content { border-radius: 0; box-shadow: none; } +.ppt-stage-area .slide-zoom-controls { top: auto; bottom: 16px; right: 18px; } +.ppt-stage-area .slide-zoom-controls .slide-zoom-reset { font-size: 14px; } +.ppt-notes { width: 300px; flex: none; background: white; border-left: 1px solid #e4e8f0; padding: 0 22px 24px; overflow-y: auto; } +.ppt-notes .ppt-directory-label { padding-left: 0; padding-right: 0; } +.ppt-notes h2 { font-size: 20px; line-height: 1.5; margin: 16px 0; } +.ppt-notes p { font-size: 17px; line-height: 1.85; white-space: pre-wrap; } +.ppt-notes-next { color: #68778f; border-top: 1px solid #e4e8f0; padding-top: 20px; } +.ppt-scrim { display: none; } +.ppt-fullscreen-nav { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: #fffffff0; padding: 4px; border-radius: 10px; font-size: 16px; } +.ppt-notice { position: absolute; bottom: 64px; left: 24px; background: white; padding: 12px; font-size: 16px; } +.ppt-page { width: 1600px; height: 900px; position: relative; background: #fff; color: #21324a; } +.ppt-heading { position: absolute; left: 64px; top: 42px; width: 1472px; height: 184px; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: min-content min-content; align-content: start; column-gap: 28px; row-gap: 8px; } +.ppt-heading-chapter { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; white-space: nowrap; } +.ppt-heading-chapter .ppt-type-small { font-size: 28px; line-height: 1.3; } +.ppt-heading-title { grid-column: 1; grid-row: 1; min-width: 0; } +.ppt-heading-goal { grid-column: 1 / -1; grid-row: 2; min-width: 0; } +.ppt-body { position: absolute; left: 64px; top: 246px; width: 1472px; height: 622px; font-size: var(--ppt-body-text); line-height: 1.42; } +.ppt-body .ppt-type-body,.ppt-body .ppt-type-small,.ppt-body .ppt-type-subtitle { font-size: var(--ppt-body-text); } +.ppt-body .ppt-type-h2,.ppt-body .ppt-type-h3 { font-size: var(--ppt-body-heading); } +.ppt-body .ppt-type-display,.ppt-body .ppt-type-h1 { font-size: var(--ppt-body-emphasis); } +.ppt-layout { width: 100%; height: 100%; min-width: 0; min-height: 0; } +.ppt-type { margin: 0; padding: 0; color: inherit; } +.ppt-type-display { font-size: 60px; line-height: 1.25; font-weight: 800; } +.ppt-type-h1 { font-size: 52px; line-height: 1.25; font-weight: 800; } +.ppt-type-h2 { font-size: 40px; line-height: 1.22; font-weight: 800; } +.ppt-type-h3 { font-size: 35px; line-height: 1.35; font-weight: 800; } +.ppt-type-subtitle { font-size: 32px; line-height: 1.6; font-weight: 500; } +.ppt-type-body { font-size: 29px; line-height: 1.7; font-weight: 500; } +.ppt-type-small { font-size: 23px; line-height: 1.7; font-weight: 500; } +.ppt-muted { color: #68778f; } +.ppt-body canvas { max-width: 100%; } +.ppt-capture { width: 1600px; height: 900px; overflow: hidden; background: white; } +.ppt-capture > section { width: 1600px; height: 900px; } +.ppt-cover { width: 1600px; height: 900px; background: white; position: relative; color: #21324a; } +.ppt-cover-top { position: absolute; left: 64px; top: 36px; width: 1472px; height: 190px; display: flex; flex-direction: column; gap: 10px; } +.ppt-cover-top .ppt-type-display { font-size: 52px; } +.ppt-cover-top.is-long-title .ppt-type-display { font-size: 42px; line-height: 1.14; } +.ppt-cover-top.is-very-long-title .ppt-type-display { font-size: 36px; line-height: 1.12; } +.ppt-cover-comparison { position: absolute; left: 64px; top: 232px; width: 1472px; height: 552px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; } +.ppt-cover-panel { padding: 28px; border: 1px solid #e2e8f0; border-radius: 24px; background: #f8fafc; display: grid; grid-template-rows: 100px minmax(0,1fr); gap: 8px; } +.ppt-cover-panel.is-new { background: #f3f9f6; border-color: #cce5d8; } +.ppt-cover-panel.is-old h3 { color: #a83c50; } +.ppt-cover-panel.is-new h3 { color: #228d5c; } +.ppt-cover-panel-heading { display: flex; flex-direction: column; gap: 12px; } +.ppt-cover-animation { min-height: 0; min-width: 0; } +.ppt-cover-animation > * { max-width: 100%; } +.ppt-cover-animation canvas { max-width: 100%; height: auto; } +.ppt-cover-footer { position: absolute; left: 64px; top: 800px; width: 1472px; height: 64px; display: flex; align-items: center; justify-content: space-between; } +@media (max-width: 1100px) { .ppt-notes { position: absolute; right: 0; top: 64px; bottom: 0; z-index: 30; box-shadow: -8px 0 30px #1a223115; } } +@media (max-width: 768px) { + .ppt-toolbar { padding: 0 8px; gap: 4px; grid-template-columns: 42px minmax(0,1fr) auto; } + .ppt-brand { display: none; } + .ppt-pager { justify-content: center; gap: 4px; } + .ppt-tools { gap: 2px; } + .ppt-toolbar .ppt-present { padding: 4px 10px; } + .ppt-directory { position: absolute; top: 64px; bottom: 0; left: 0; z-index: 50; width: min(280px,82vw); box-shadow: 8px 0 30px #1a223122; } + .ppt-scrim { display: block; position: absolute; inset: 64px 0 0; z-index: 40; border: 0; border-radius: 0; background: #1a223144; } +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/tokens.css b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/tokens.css new file mode 100644 index 00000000..e1552c24 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/styles/tokens.css @@ -0,0 +1,118 @@ +/* Visual tokens from the reference template. Import this file unchanged before components.css. */ +:root { + /* Core palette */ + --ui-bg-page: #eef2f7; + --ui-bg-page-top: #f7f9fc; + --ui-bg-card: #ffffff; + --ui-bg-soft: #eef3fb; + --ui-bg-muted: #f6f8fc; + --ui-text-main: #21324a; + --ui-text-muted: #68778f; + --ui-text-light: #8b97ab; + --ui-border: #d7deea; + --ui-border-strong: #9fb0c8; + --ui-accent: #27446e; + --ui-accent-alt: #f07e47; + --ui-success: #228d5c; + --ui-warning: #c07100; + --ui-danger: #c43f52; + + /* Reference-template semantic aliases */ + --bg: var(--ui-bg-page); + --paper: var(--ui-bg-card); + --paper-2: var(--ui-bg-muted); + --ink: var(--ui-text-main); + --ink-2: var(--ui-text-muted); + --slate: var(--ui-text-muted); + --slate-2: var(--ui-text-light); + --line: var(--ui-border); + --line-2: var(--ui-border-strong); + --blue: var(--ui-accent); + --blue-soft: var(--ui-bg-soft); + --green: var(--ui-success); + --green-soft: rgba(34, 141, 92, 0.12); + --orange: var(--ui-accent-alt); + --orange-soft: rgba(240, 126, 71, 0.12); + --purple: #7c3aed; + --purple-soft: #f5f3ff; + --red: var(--ui-danger); + --red-soft: rgba(196, 63, 82, 0.10); + --yellow: var(--ui-warning); + --yellow-soft: rgba(192, 113, 0, 0.14); + --olive: var(--ui-success); + --sky: #4f7fb5; + --rust: var(--ui-accent-alt); + /* --accent aliases the primary blue (guidance/current state). Orange is the + user-emphasis color and is exposed as --orange / --ui-accent-alt. Do not + repurpose --accent for a different semantic role. */ + --accent: var(--ui-accent); + --bad: var(--ui-danger); + + /* Elevation and shape */ + --ui-shadow-soft: 0 12px 34px rgba(25, 42, 70, 0.08); + --ui-shadow-hover: 0 16px 40px rgba(25, 42, 70, 0.12); + --shadow: var(--ui-shadow-soft); + --shadow-soft: 0 4px 14px rgba(25, 42, 70, 0.05); + --shadow-hover: var(--ui-shadow-hover); + --ui-radius-xl: 24px; + --ui-radius-lg: 18px; + --ui-radius-md: 12px; + --ui-radius-sm: 8px; + --ui-radius-pill: 999px; + --radius: var(--ui-radius-lg); + --radius-sm: var(--ui-radius-md); + + /* System typography only: the built webpage does not depend on external fonts. */ + --ui-font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif; + --ui-font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace; + + /* Typography scale tokens (migrated from Shared UIKit Typography spec). + All font-size / font-weight / line-height in components.css must reference + these tokens — no hardcoded px values. */ + --ui-type-display-size: clamp(2.25rem, 4vw, 2.625rem); + --ui-type-display-weight: 800; + --ui-type-display-line-height: 1.08; + --ui-type-display-letter-spacing: -0.03em; + + --ui-type-h1-size: clamp(2rem, 3.5vw, 2.25rem); + --ui-type-h1-weight: 800; + --ui-type-h1-line-height: 1.12; + --ui-type-h1-letter-spacing: -0.02em; + + --ui-type-h2-size: clamp(1.5rem, 3vw, 1.75rem); + --ui-type-h2-weight: 800; + --ui-type-h2-line-height: 1.22; + --ui-type-h2-letter-spacing: -0.01em; + + --ui-type-h3-size: 1.5rem; + --ui-type-h3-weight: 800; + --ui-type-h3-line-height: 1.35; + + --ui-type-subtitle-size: 1.375rem; + --ui-type-subtitle-weight: 500; + --ui-type-subtitle-line-height: 1.6; + + --ui-type-body-size: 1.25rem; + --ui-type-body-weight: 500; + --ui-type-body-line-height: 1.7; + + --ui-type-body-small-size: 1rem; + --ui-type-body-small-weight: 500; + --ui-type-body-small-line-height: 1.7; + + --ui-type-formula-size: var(--ui-type-subtitle-size); + --ui-type-formula-weight: 700; + --ui-type-formula-line-height: 1.35; + + /* Motion */ + --ease-out: cubic-bezier(0.16, 1, 0.3, 1); + --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); + --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); + --t-fast: 160ms; + --t-med: 280ms; + --t-slow: 480ms; +} + +/* Semantic color contract: + error/corruption -> red; repair/correctness -> green; guidance/network -> blue; + emphasis/CTA -> orange; auxiliary concepts -> purple. */ diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/types.ts b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/types.ts new file mode 100644 index 00000000..e3e30260 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/types.ts @@ -0,0 +1,91 @@ +// Data schema for a paper tutorial. The generator fills `src/data/tutorial.ts` +// with a `tutorial` object matching `TutorialData`. The `kind` fields are REQUIRED: +// validate-output.js counts chapters/modules via `kind: "chapter"` / `kind: "module"` +// so do not omit them. + +export interface Meta { + titleEn: string; + titleZh: string; + venue: string; + authors: string; + affiliation: string; + domain: string; + coreProblem: string; + coreInsight: string; + keywords: string[]; +} + +export interface HeroSide { + title?: string; // Source-grounded method/concept name shown above the cover animation. + desc: string; + componentId: string; // Cover animation widget reads useCoverPlayback(). +} + +export interface HeroConfig { + oldMethod: HeroSide; + newMethod: HeroSide; +} + +export interface SymbolDef { + sym: string; + desc: string; +} + +export interface FormulaDef { + lead: string; // plain-language lead-in (Simplified Chinese) + unicode: string; // Unicode/HTML formula, no KaTeX + symbols: SymbolDef[]; +} + +export interface ModuleDef { + kind: 'module'; + id: string; // e.g. "1.1" + title: string; + desc: string; + componentId: string; // MUST match a key in src/modules/registry.tsx +} + +/** One independently composed slide with one learning objective. */ +export interface SceneDef { + id: string; + title: string; + goal: string; + summary: string; + interaction: string; + next: string; + notes: string; + /** Body component receives a fixed 1472 × 622 CSS pixel region. */ + /** Every scene supplies its own paper-specific body widget. */ + componentId: string; + moduleId?: string; + thumbnail?: string; +} + +export interface ChapterDef { + kind: 'chapter'; + id: string; // e.g. "chap-1" + title: string; + modules: ModuleDef[]; // Empty for evidence/boundary-only chapters; method coverage is deck-wide. + scenes: SceneDef[]; +} + +export interface BiliDef { + bvid: string; // "BV..." or "" if unused + title: string; + reason: string; + /** Optional static cover URL (https). Baked in at generation time so the cover + * shows without depending on the runtime Bilibili metadata fetch. */ + cover?: string; + /** Optional static view count string (e.g. "41.5万播放"), baked in at generation + * time so 播放量 shows without depending on the runtime metadata fetch. */ + views?: string; +} + +export interface TutorialData { + /** Optional preview images keyed by scene ID, including cover/videos. */ + thumbnails?: Record; + meta: Meta; + hero: HeroConfig; + chapters: ChapterDef[]; + bilibili?: BiliDef[]; +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/vite-env.d.ts b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/vite-env.d.ts new file mode 100644 index 00000000..11f02fe2 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/tsconfig.json b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/tsconfig.json new file mode 100644 index 00000000..6bfa73af --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "strict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"] +} diff --git a/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/vite.config.ts b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/vite.config.ts new file mode 100644 index 00000000..772032c3 --- /dev/null +++ b/html_output/learning_to_learn_without_forgetting_by_maximizing_transfer_and_minimizing_interference/xieguohui1116/vite.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; + +// paper-skill generated tutorial. No external CDN; everything is bundled locally. +export default defineConfig({ + plugins: [react()], + base: './', + server: { port: 5173, open: false }, + build: { outDir: 'dist', sourcemap: false }, +});