Преглед изворни кода

新增 LuatOS 跨平台烧录工具与 Luatools v3 逆向分析文档

- 提供 Electron 与 Tauri 两套界面,均以子进程方式调用纯 Rust 的
  luatos-cli 作为烧录内核,macOS 上无需 Wine 或 Windows 虚拟机
- 内置 luatos-cli 1.11.0 二进制、DMG/NSIS 构建脚本、Gatekeeper
  处理脚本及假固件自检用例,覆盖串口枚举、固件解析与烧录错误路径
- 补充 Luatools v3.4.15 静态逆向分析,梳理各芯片烧录实现依赖与
  跨平台可行性,作为后续协议移植和多端打包的依据
wenhongquan пре 3 недеља
комит
b49db98056
100 измењених фајлова са 14944 додато и 0 уклоњено
  1. 757 0
      Luatools_v3_多端安装与烧录方案.md
  2. 31 0
      README.md
  3. 45 0
      luatools-mac/.github/workflows/build-macos.yml
  4. 21 0
      luatools-mac/LICENSE
  5. 260 0
      luatools-mac/README.md
  6. 24 0
      luatools-mac/THIRD_PARTY_NOTICES.md
  7. 12 0
      luatools-mac/build/entitlements.mac.plist
  8. BIN
      luatools-mac/build/icon.icns
  9. BIN
      luatools-mac/build/icon.ico
  10. BIN
      luatools-mac/build/icon.png
  11. BIN
      luatools-mac/docs/screenshot.png
  12. 297 0
      luatools-mac/electron/cli.js
  13. 418 0
      luatools-mac/electron/main.js
  14. 55 0
      luatools-mac/electron/preload.js
  15. 3617 0
      luatools-mac/package-lock.json
  16. 122 0
      luatools-mac/package.json
  17. 659 0
      luatools-mac/renderer/app.js
  18. 192 0
      luatools-mac/renderer/index.html
  19. 922 0
      luatools-mac/renderer/styles.css
  20. 11 0
      luatools-mac/resources/bin/CHECKSUMS.txt
  21. 21 0
      luatools-mac/resources/bin/LUATOS-CLI-LICENSE.txt
  22. BIN
      luatools-mac/resources/bin/luatos-cli
  23. 11 0
      luatools-mac/resources/win/CHECKSUMS.txt
  24. 21 0
      luatools-mac/resources/win/LUATOS-CLI-LICENSE.txt
  25. BIN
      luatools-mac/resources/win/luatos-cli.exe
  26. 47 0
      luatools-mac/scripts/after-pack.cjs
  27. 43 0
      luatools-mac/scripts/build-mac.sh
  28. 134 0
      luatools-mac/scripts/fetch-cli.mjs
  29. 18 0
      luatools-mac/scripts/fix-macos-gatekeeper.sh
  30. 28 0
      luatools-mac/start-mac.command
  31. 9 0
      luatools-mac/tests/fixtures/README.md
  32. BIN
      luatools-mac/tests/fixtures/air8101-dummy.soc
  33. 7 0
      luatools-tauri/.cargo/config.toml
  34. 99 0
      luatools-tauri/README.md
  35. 248 0
      luatools-tauri/package-lock.json
  36. 20 0
      luatools-tauri/package.json
  37. 55 0
      luatools-tauri/scripts/build-mac.sh
  38. 5186 0
      luatools-tauri/src-tauri/Cargo.lock
  39. 24 0
      luatools-tauri/src-tauri/Cargo.toml
  40. BIN
      luatools-tauri/src-tauri/binaries/luatos-cli-aarch64-apple-darwin
  41. BIN
      luatools-tauri/src-tauri/binaries/luatos-cli-x86_64-apple-darwin
  42. 3 0
      luatools-tauri/src-tauri/build.rs
  43. 7 0
      luatools-tauri/src-tauri/capabilities/default.json
  44. BIN
      luatools-tauri/src-tauri/icons/128x128.png
  45. BIN
      luatools-tauri/src-tauri/icons/128x128@2x.png
  46. BIN
      luatools-tauri/src-tauri/icons/32x32.png
  47. BIN
      luatools-tauri/src-tauri/icons/64x64.png
  48. BIN
      luatools-tauri/src-tauri/icons/Square107x107Logo.png
  49. BIN
      luatools-tauri/src-tauri/icons/Square142x142Logo.png
  50. BIN
      luatools-tauri/src-tauri/icons/Square150x150Logo.png
  51. BIN
      luatools-tauri/src-tauri/icons/Square284x284Logo.png
  52. BIN
      luatools-tauri/src-tauri/icons/Square30x30Logo.png
  53. BIN
      luatools-tauri/src-tauri/icons/Square310x310Logo.png
  54. BIN
      luatools-tauri/src-tauri/icons/Square44x44Logo.png
  55. BIN
      luatools-tauri/src-tauri/icons/Square71x71Logo.png
  56. BIN
      luatools-tauri/src-tauri/icons/Square89x89Logo.png
  57. BIN
      luatools-tauri/src-tauri/icons/StoreLogo.png
  58. 5 0
      luatools-tauri/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml
  59. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png
  60. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png
  61. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png
  62. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png
  63. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png
  64. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png
  65. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png
  66. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png
  67. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png
  68. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png
  69. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png
  70. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png
  71. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png
  72. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png
  73. BIN
      luatools-tauri/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png
  74. 4 0
      luatools-tauri/src-tauri/icons/android/values/ic_launcher_background.xml
  75. BIN
      luatools-tauri/src-tauri/icons/icon.icns
  76. BIN
      luatools-tauri/src-tauri/icons/icon.ico
  77. BIN
      luatools-tauri/src-tauri/icons/icon.png
  78. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-20x20@1x.png
  79. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-20x20@2x-1.png
  80. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-20x20@2x.png
  81. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-20x20@3x.png
  82. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-29x29@1x.png
  83. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-29x29@2x-1.png
  84. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-29x29@2x.png
  85. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-29x29@3x.png
  86. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-40x40@1x.png
  87. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-40x40@2x-1.png
  88. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-40x40@2x.png
  89. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-40x40@3x.png
  90. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-512@2x.png
  91. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-60x60@2x.png
  92. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-60x60@3x.png
  93. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-76x76@1x.png
  94. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-76x76@2x.png
  95. BIN
      luatools-tauri/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png
  96. 647 0
      luatools-tauri/src-tauri/src/lib.rs
  97. 5 0
      luatools-tauri/src-tauri/src/main.rs
  98. 49 0
      luatools-tauri/src-tauri/tauri.conf.json
  99. 151 0
      luatools-tauri/ui/api.js
  100. 659 0
      luatools-tauri/ui/app.js

+ 757 - 0
Luatools_v3_多端安装与烧录方案.md

@@ -0,0 +1,757 @@
+# Luatools v3.4.15 逆向分析与“多端安装 + 可烧录”方案
+
+> 分析对象:`D:\Luatools_v3.exe`  
+> SHA-256:`AF1CD6D1A005F897B6DF9A1F354EA0027B54FD369468BCAD5A9CE408FE6C78DC`  
+> 文件大小:86,833,792 字节(约 82.8 MiB)  
+> 分析日期:2026-11-11  
+> 方法:PE/CArchive 静态拆包 + Python 3.13 字节码结构与常量分析 + 内置 7z 工具包清点 + 公开资料对照。  
+> 说明:下文把“观察到的证据”和“推断/未知”分开写,避免把猜测当成结论。
+
+---
+
+## 0. 一句话结论
+
+**这不是一个可以“换个安装包就多端”的程序。** 它是一个 Windows x64 专用的 **PyInstaller onefile + wxPython** 应用,烧录能力由三层组成:
+
+1. **纯 Python 串口协议**:BK7258/Air8101、CCM4211/Air1601/Air1602 等,最容易跨平台;
+2. **内置 Windows EXE**:EC618/EC7xx 的 `FlashToolCLI.exe`、UIS8910/8850 的 `CmdDloader.exe`/`ResearchDownload.exe`、Air101/105 的 `air101_flash.exe`/`air105_download`;
+3. **闭源 Windows DLL**:ASR1802/1601 的 `aboot.dll`/`WtptpDownLoad.dll`、日志解码 `common_log.dll`。
+
+因此正确的路线不是“把这个 exe 重新打包成 macOS/Linux 版”,而是:
+
+> **把“界面”和“烧录内核”拆开:界面用跨平台 UI(推荐 Tauri),烧录内核优先复用纯 Rust 的 `luatos-cli`(已覆盖 BK7258、XT804、CCM4211、EC718 等),Windows 专用芯片用“兼容包”兜底。**
+
+推荐落地顺序:
+
+- **第 1 步**:Windows 先做 **onedir + MSI/NSIS 安装包**,解决 onefile 启动慢、杀软误报、内嵌 PE 签名、数据目录写权限问题;
+- **第 2 步**:用 `luatos-cli` 做 **跨平台 CLI 内核**,先覆盖纯协议芯片;
+- **第 3 步**:Tauri/egui 做跨平台 UI,打包 MSI/DMG/AppImage/deb;
+- **第 4 步**:浏览器 WebSerial / Android USB Host 作为“零安装”补充;
+- **ASR1802/1601、UIS8850、Air105 等没有开源协议的芯片,先标记“Windows only”**,不要为了“多端”强行用 Wine 上生产。
+
+---
+
+## 1. 目标身份:它到底是什么
+
+### 1.1 观察到的文件事实
+
+| 项目 | 结果 |
+|---|---|
+| 文件类型 | PE32+,x86-64(Machine `0x8664`) |
+| 节区 | 7 个(`.text/.rdata/.data/.pdata/.fptable/.rsrc/.reloc`) |
+| CLR/.NET | 无(CLR 目录为 0) |
+| 数字签名 | **Valid**,签名者 `CN=上海合宙通信科技有限公司`,Certum Code Signing 2021 CA,有效期至 2027-12-06 |
+| 打包方式 | **PyInstaller onefile**(文件尾部有 `MEI\x0c\x0b\x0a\x0b\x0e` CArchive cookie) |
+| Python 版本 | **3.13**(cookie `pyver=313`,`python313.dll`) |
+| 归档条目 | 359 个(343 个 binary、8 个 script、5 个 module、1 个 PYZ) |
+| PYZ 模块数 | **1,847** 个 |
+| GUI 框架 | **wxPython**(`wx/_core`、`wxmsw32u_*.dll`、`wxbase32u_*.dll`) |
+| 版本 | `MAIN_VERSION=3`、`SUB_VERSION=4`、`BUILD_VERSION=15`,即 **3.4.15** |
+| 版本日期 | `2026.10.29`(`define.py` 常量) |
+
+### 1.2 关键判断
+
+- 这不是 Electron,也不是 .NET,更不是简单的 C++ 壳;是 **Python 3.13 + wxPython + asyncio** 的桌面程序。
+- `onefile` 意味着每次启动都要把约 86 MB 内容解压到 `%TEMP%\_MEIxxxx`,这是启动慢、杀软扫描、内嵌 DLL 被拦截的根源。
+- 文件内自带 `dev/repack_onefile_sign.py`、`dev/sign_binaries.py`,说明官方自己也知道 onefile 内嵌 PE 的签名问题,并在发布流程里做了“解包→签名→回包→重签外层”的处理。
+
+---
+
+## 2. 它怎么打包、怎么启动、怎么更新
+
+### 2.1 目录与数据模型(观察)
+
+`my_api._init_app_root()` 的逻辑:
+
+- 冻结(PyInstaller)运行时:`APP_ROOT = Path(sys.executable).resolve().parent`,即 **exe 所在目录**;
+- 非冻结:当前工作目录;
+- `resource_path()` 才使用 `sys._MEIPASS` 读取 onefile 内部资源。
+
+`define.py` 中的路径常量:
+
+```python
+PROJECT_FILE_PATH = "project"
+CONFIG_FILE_PATH  = "config"
+RESOURCE_FILE_PATH = "resource"
+EXE_FILE_PATH     = "exe"
+TEMP_PATH         = "_temp"
+```
+
+结论:**程序把 `_temp`、`log`、`config`、`resource` 等可写数据放在 exe 旁边,而不是 `%APPDATA%`。**  
+这带来一个直接后果:如果安装到 `C:\Program Files\...`,普通用户没有写权限,解压工具和日志都会失败。当前程序实际上是“绿色便携版”模型。
+
+### 2.2 启动时解压 Windows 工具(观察)
+
+`usb_device.py` 中的工具包和密码:
+
+```text
+uis_download.7z   uis_tools.7z   ec_download.7z
+dtools.7z         tools.7z       ffmpeg.7z
+password = "123"
+```
+
+流程:
+
+1. 从 onefile 的 `_MEIPASS/win32/*.7z` 读取压缩包;
+2. 解压到 `APP_ROOT/_temp/tools`(或对应子目录);
+3. `wait_tools_ready()` 等待解压完成;
+4. 后续烧录、FOTA、签名、Lua 编译都从这里调用 EXE/DLL。
+
+`archive.py` 的策略:优先用 `win32/7za.exe`,失败则用 `py7zr`(7z)或标准库 `zipfile`(zip)。
+
+### 2.3 自更新(观察)
+
+`main.py` 启动时检查:
+
+```text
+update.exe
+del.exe
+```
+
+存在则删除,说明这是“下载新版本 → 改名为 update.exe → 退出旧进程 → update.exe 替换主程序”的更新模型。
+
+`net_main.check_upgrade()` / `upgrade_run()` 的逻辑:
+
+- 从 `https://cdn18.air32.cn`、`https://cdn18.luatos.com`、`cdn6.vue2.cn` 等镜像下载更新包;
+- 解压到 `_temp`;
+- 把新的 `Luatools_v3.exe` 复制为 `update.exe`;
+- 把当前 exe 改名为 `del.exe`;
+- 重启后由 `update.exe` 完成替换,`main` 再清理残留。
+
+**这是 Windows 专用的“自替换”更新方式,不能直接用于 macOS/Linux。** macOS 的 `.app` 是目录包,需要整体替换并重新签名;Linux 需要包管理器或 AppImage 原子替换。
+
+### 2.4 发布签名流程(观察,来自内置 dev 脚本)
+
+`dev/sign_binaries.py` 把签名分成三个阶段:
+
+| 阶段 | 对象 | 做法 |
+|---|---|---|
+| A | `win32/*.exe`、`win32/*.dll` | 直接签名 |
+| B | `win32/{dtools,ec_download,tools,uis_download,uis_tools,ffmpeg}.7z` 内的 exe/dll | 解包 → 签名 → 用密码 `123` 重打包 → 往返校验 → 替换 |
+| C | `.venv313/site-packages` 中会被打进 exe 的 pyd/dll/exe | PyInstaller 打包前签名 |
+
+`dev/repack_onefile_sign.py` 则专门处理 **PyInstaller onefile 内嵌的未签名 PE**:
+
+- 解析 CArchive;
+- 把内嵌 PE 写到临时文件逐个签名;
+- 按原压缩方式回包;
+- 清空 PE 头里的旧证书表目录;
+- 重建 onefile;
+- 重签外层 exe。
+
+这解释了为什么当前 exe 的 Authenticode 是有效的,但内部仍有大量第三方 DLL:官方在发布流程里已经处理过一轮。
+
+---
+
+## 3. 烧录能力全图(核心)
+
+### 3.1 代码里的“芯片 → 烧录实现”路由(观察)
+
+`SocDevice.__init__` 构建了 `download_dict`,`full_control_download_dict` 又覆盖了部分芯片:
+
+| 芯片类型常量 | 代表芯片/模组 | `download_dict` 入口 | `full_control` 入口 |
+|---|---|---|---|
+| `AIR101_TYPE` | Air101 | `air101_run` / `air101_make_cmd` | 外部工具 |
+| `AIR103_TYPE` | Air103 | `air101_run` | 外部工具 |
+| `AIR601_TYPE` | Air601 | `air101_run` | 外部工具 |
+| `AIR105_TYPE` | Air105 | `air101_run` | 外部工具 |
+| `AIR6208_TYPE` | Air6208 / XT804 | `air101_run` | 外部工具 |
+| `EC618_TYPE` | Air780E/Air700E 等 | `ec618_run` / `ec618_make_cmd` | `ec618_full_control_run` |
+| `EC7XX_TYPE` | Air8000/Air780EP/EC718 等 | `ec618_run` / `ec7xx_make_cmd` | `ec7xx_full_control_run` |
+| `BK72XX_TYPE` | Air8101 / BK7258 | `bk72xx_run` / `bk72xx_make_cmd` | **纯 Python** `bk72xx_full_control_run` |
+| `AIR1601_TYPE` | Air1601 | `dummy_run` | **纯 Python** `ccm4211_full_control_run` |
+| `AIR1602_TYPE` | Air1602 | `dummy_run` | **纯 Python** `ccm4211_full_control_run` |
+| `CCM4211_TYPE` | CCM4211 | `dummy_run` | **纯 Python** `ccm4211_full_control_run` |
+| `UIS8850_TYPE` | UIS8850 | `dummy_run` | `uis_full_control_run`(外部工具) |
+| `UIS8910_TYPE` | Air724UG/Air795UG | `dummy_run` | `uis_full_control_run`(外部工具) |
+
+> 观察依据:`soc.SocDevice.__init__` 的 `BUILD_MAP 13`、`full_control_download_dict` 的 7 个条目,以及 `usb_device.aio_soc_download` / `aio_uis_download` / `aio_ec_download` 的调用链。
+
+### 3.2 逐芯片的“真实依赖”
+
+#### A. BK7258 / Air8101:纯 Python 为主,最容易跨平台
+
+`bk72xx_isp.py` 的模块 docstring 直接给出了完整协议(代码里还保留了 `exe` 降级路径):
+
+```text
+1. DTR/RTS 5 阶段脉冲 → 进入 ROM Bootloader
+2. LinkCheck 握手 (CMD 0x00, 2ms 窗口, 最多 30 次重试)
+3. 波特率切换 (CMD 0x0F, 115200 → 目标波特率)
+4. 读取 Flash MID (CMD 0x0E)
+5. Flash 去保护 (CMD 0x0C / 0x0D, 清除 BP/CMP 位)
+6. 扇区擦除 (CMD 0x0F, 自适应 4K/64K)
+7. 扇区写入 (CMD 0x07, 4K 为单位, 地址回显校验)
+8. CRC 校验 (CMD 0x10, 可选)
+9. 关闭串口 → 设备自动重启
+```
+
+并且注明了参考实现:
+
+```text
+参考: luatos-cli/crates/luatos-flash/src/bk7258.rs
+协议文档: luatos-cli/docs/air8101-flash-protocol.md
+```
+
+**结论:这一路完全不依赖 Windows,任何能操作串口的平台都能实现。**
+
+#### B. CCM4211 / Air1601 / Air1602:纯 Python
+
+`soc.SocDevice.ccm4211_full_control_run` 直接调用 `ccm4211_isp.Progress`,流程包括:
+
+- RAM run(`ramrun.bin` / 通用 `ccm4211_ramrun_default.bin`);
+- 握手、读 Flash ID;
+- 擦除/下载 bootloader、core、script、fs、字库、TTS 资源;
+- 支持 `soc_kv_clr` / `soc_fs_clr` 清分区;
+- 有真机验证脚本 `dev/air1601_burn_check.py`。
+
+**结论:这一路也是纯 Python + 串口,跨平台可行。**
+
+#### C. XT804 / Air101 / Air103 / Air601 / Air6208:外部 Windows EXE
+
+`soc.py` 里的命令模板(观察):
+
+```text
+"{} -ds {} -ws 115200 -c {} -rs rts -dl {}"
+air101_flash.exe
+"{} air105_download {} {} \"{}\" \"{}\" {} \"{}\" {} \"{}\" {} {} {} {} {} \"{}\""
+"{} air105_download {} {} \"{}\" \"{}\" {} \"{}\" {} \"{}\" {} {} {} {} {}"
+```
+
+以及清理进程:
+
+```text
+taskkill -f -im air101_flash.exe
+taskkill -f -im soc_download.exe
+```
+
+**结论:Air101/103/601/6208/Air105 在 Luatools 里是“调 Windows 工具”,不是自己实现协议。**  
+但公开的 `luatos-cli` 已经支持 XT804(Air6208/Air101/Air103),所以跨平台替代是现成的。
+
+#### D. EC618 / EC7xx:外部 Windows 工具为主
+
+`soc.ec618_make_cmd` / `ec7xx_make_cmd` 的流程:
+
+1. 复制固件为 `luatos.binpkg`;
+2. 用 `fcelf.exe -E -input luatos.binpkg` 解包;
+3. 读取 `mem_map.h` 或 `mem_map.txt`,解析 FS/FDB/plat config 分区;
+4. 用 `FlashToolCLI.exe` 执行:
+
+```text
+FlashToolCLI.exe --cfgfile config_pkg_product_uart.ini ... burnbatch ...
+FlashToolCLI.exe --cfgfile config_pkg_product_usb.ini  ... burnbatch ...
+FlashToolCLI.exe ... flasherase 0x3cc000 0x10000
+FlashToolCLI.exe ... burnbatch --imglist bootloader system cp_system flexfile2
+```
+
+`SocDevice.ec618_full_control_run` 里还有一条 **“快速下载”** 分支:
+
+- 先找 EC618 的 SOC log 口(VID/PID + location `x.2`);
+- 用 `SocCombine.fota()` 生成 `output.sota`;
+- 调 `ec618_burn_fast()`;
+- 失败则回落到标准流程。
+
+这条快速路径的字符串包括:
+
+```text
+下载开始(单脚本免Boot模式)
+FOTA INIT
+FOTA WRITE
+FOTA DONE
+```
+
+**推断:这是“脚本/资源更新”的免 Boot 快速路径,不等于完整的全片烧录。** 全片仍然依赖 `FlashToolCLI.exe`。
+
+**结论:EC618/EC7xx 在 Luatools 里不是纯 Python。** 不过公开的 `luatos-cli` 声称支持 EC618/Air780E 和 EC718/Air8000,可以作为跨平台内核。
+
+#### E. UIS8910 / UIS8850:外部 Windows 工具
+
+`usb_device.aio_uis_download` 的字符串:
+
+```text
+taskkill -f -im CmdDloader.exe
+taskkill -f -im ResearchDownload.exe
+CmdDloader.exe
+ -pac 
+ -port 
+ -c
+```
+
+工具包 `uis_download.7z` 里是完整的 Unisoc ResearchDownload 套件(`ResearchDownload.exe`、`CmdDloader.exe`、`BMAFrame9.dll`、`DLFrame.dll` 等)。
+
+**结论:UIS 系列完全依赖 Windows PE。**  
+公开资料显示 `luatos-cli` 已支持 Air724UG(UIS8910DM/RDA8910),但需要以实际版本验证;UIS8850 暂未看到明确支持。
+
+#### F. ASR1802 / ASR1601:闭源 Windows DLL
+
+`win32` 目录下:
+
+- `aboot.dll`:ASR aboot 下载引擎,字符串包括 `AT+QDOWNLOAD=1`、`AT$MYDOWNLOAD=1`、`AROM-TINY-BOOT2`、fastboot/FIP 等;
+- `WtptpDownLoad.dll`:ASR WTP TP download;
+- `download.exe`:`ASR1802`、`ASR1601`、`aboot_engine_*`、`aboot_download_*`。
+
+**结论:ASR 系列(Air720/Air600 等)是最难跨平台的一块,当前没有看到公开的纯 Python/Rust 实现。**
+
+#### G. MH1903S:代码在,但路由不明确
+
+`mh1903s_isp.py` 实现了 `MH1903S_ISP` 类,常量包括:
+
+```text
+MH1903S_ISP_HANDSHAKE
+MH1903S_ISP_CONNECT
+MH1903S_ISP_ACK / NACK
+MH1903S_ISP_CMD_FW_HEAD / FW_DATA / ERASE_FLASH / SET_RSA
+```
+
+但 `soc.SocDevice` 的 `download_dict` 没有 `MH1903S_TYPE` 分支,`define.py` 也没有对应芯片类型。  
+**判断:这可能是未接线/遗留模块,当前版本不一定能从 UI 触发。** 需要真机验证。
+
+### 3.3 一张表看清“跨平台可行性”
+
+| 芯片/系列 | 代表模组 | 固件格式 | Luatools 当前实现 | 跨平台替代 |
+|---|---|---|---|---|
+| BK7258 | Air8101 | `.soc` | **纯 Python ISP 为主(保留 exe 降级)** | ✅ 直接移植;`luatos-cli` 已支持 |
+| CCM4211 | Air1601/1602/1603/1604 | `.soc`/`.binpkg` | **纯 Python ramrun** | ✅ 直接移植;`luatos-cli` 已支持 |
+| XT804 | Air101/103/6208 | `.soc` | `air101_flash.exe` | ✅ `luatos-cli` 已支持 |
+| Air105 | Air105 | `.soc` | `air105_download`/`soc_download.exe` | ⚠️ 需移植或暂不支持 |
+| EC618 | Air780E/Air700E | `.binpkg`/`.soc` | `fcelf.exe` + `FlashToolCLI.exe`;部分快速路径纯 Python | ⚠️ `luatos-cli` 声称支持 EC618,需验证 |
+| EC718/EC7xx | Air8000/Air780EP | `.soc`/`.binpkg` | `FlashToolCLI.exe` | ✅ `luatos-cli` 已支持 |
+| UIS8910 | Air724UG/Air795UG | `.pac` | `CmdDloader.exe`/`ResearchDownload.exe` | ⚠️ `luatos-cli` 支持 UIS8910DM,需验证 |
+| UIS8850 | 部分 8850 模组 | `.pac` | `CmdDloader.exe` | ❌ 暂未见开源实现 |
+| ASR1802/1601 | Air720/Air600 | `.lod` | `aboot.dll`/`download.exe`/`WtptpDownLoad.dll` | ❌ 暂未见开源实现 |
+| MH1903S | 未确认 | 未确认 | `mh1903s_isp` 纯 Python | ❓ 路由未接线,需验证 |
+
+### 3.4 固件格式
+
+`define.py` 中出现的后缀:
+
+```text
+.blf  .zip  .pac  .lod  .ec  .binpkg  .soc  .bin
+```
+
+- `.soc` / `.binpkg`:LuatOS 统一固件包,通常是 zip 结构,含 `info.json` + 各分区镜像;`soc.SocDevice.prepare()` 会读 `info.json` 的 `chip.type` 来决定路由。
+- `.pac`:Unisoc/展锐格式,`ResearchDownload` 使用。
+- `.lod` / `.ec`:ASR/EC 旧格式。
+- `.bin` / `.zip`:通用镜像或压缩包。
+
+新的跨平台工具应优先把 `.soc`/`.binpkg` 作为第一类公民;`.pac`/`.lod`/`.ec` 作为“兼容格式”,只在对应厂商后端可用时开放。
+
+---
+
+## 4. 为什么不能直接把当前 exe “多端化”
+
+### 4.1 硬阻塞
+
+1. **Windows PE + Windows DLL**  
+   `FlashToolCLI.exe`、`CmdDloader.exe`、`ResearchDownload.exe`、`aboot.dll`、`WtptpDownLoad.dll`、`common_log.dll` 都是 Windows 二进制,macOS/Linux 不能直接加载。
+
+2. **pywin32 / Win32 API**  
+   `my_serial` 使用 Win32 串口事件;`main` 使用 `windll.shcore.SetProcessDpiAwareness`、`user32.SetProcessDPIAware`;`ui_*` 里有 `win32con`、`win32evtlogutil` 等导入。
+
+3. **路径模型**  
+   程序默认把数据写到 exe 旁边;macOS 的 `.app` 是只读签名包,Linux 的 `/usr/bin` 也不可写。必须改成 `platformdirs` 风格的用户数据目录。
+
+4. **更新模型**  
+   `update.exe` / `del.exe` 自替换是 Windows 专属;macOS 需要签名+公证的 `.app` 整体替换,Linux 需要包管理器/AppImage 更新。
+
+5. **onefile 本身**  
+   86 MB 每次启动解压到 `%TEMP%`,启动慢、杀软扫描重、内嵌 DLL 容易被拦截;多端后体积和启动问题会被放大。
+
+### 4.2 软阻塞
+
+- **UI 代码与 Windows 细节耦合**:文件对话框、DPI、COM 口枚举、拖拽、任务栏等;
+- **中文路径/编码**:`fcelf.exe` 输出 ANSI,代码里专门做了 GBK 兼容;
+- **驱动**:Windows 需要 CH340/CH341、Unisoc/EC USB 驱动;Linux 需要 udev 规则;macOS 多数 CDC/CH340 免驱,但旧芯片仍需驱动;
+- **签名**:macOS 需要 Developer ID + 公证;Linux 需要仓库签名/校验;Windows 需要 EV 证书维持 SmartScreen 信誉。
+
+### 4.3 结论
+
+**直接改这个 exe 的成本 > 重做壳 + 复用内核。**  
+尤其是 UI 部分,wxPython 虽然本身跨平台,但这份代码里 Windows 假设太多;把它逐处条件化,工作量并不比重写一个 Tauri UI 小,而且最终还会被 Windows 厂商工具卡住。
+
+---
+
+## 5. 三条多端路线对比
+
+| 维度 | 方案 A:wxPython 多端化 | 方案 B:Tauri + luatos-cli(推荐) | 方案 C:WebSerial/WASM |
+|---|---|---|---|
+| 复用现有 UI | 高(大部分 `ui_*` 可复用) | 低(需重写界面) | 低 |
+| 复用烧录能力 | 只能复用纯 Python 部分 | 高(`luatos-cli` 已覆盖多数芯片) | 中(需 JS/WASM 实现) |
+| Windows 厂商工具 | 继续内置 | Windows 兼容包 | 不支持 |
+| macOS/Linux | 需大量条件化 + 仍缺厂商工具 | 原生支持 | 浏览器支持 |
+| 安装包体积 | 150 MB+ | 15–40 MB | 0(网页) |
+| 启动速度 | 慢(Python + wx) | 快(Rust) | 快 |
+| 签名/公证 | PyInstaller 内嵌 Python 复杂 | 原生二进制简单 | 只需 HTTPS |
+| 移动端 | 基本不可行 | Tauri mobile/Android 可行 | Android Chrome 可行,iOS 不可行 |
+| 开发周期 | 4–8 周(不含协议移植) | 8–12 周(含 UI 重写) | 4–6 周(覆盖有限) |
+| 长期维护 | 中 | 高 | 中 |
+
+### 推荐
+
+- **长期主线:方案 B。**
+- **短期过渡:方案 A 的 Windows 版**(先把 onefile 改 onedir + 安装包 + 签名,不碰 macOS/Linux)。
+- **补充:方案 C** 用于现场/临时烧录,不作为主发行版。
+
+---
+
+## 6. 推荐架构:Tauri + `luatos-cli`
+
+### 6.1 为什么是 `luatos-cli`
+
+公开资料(`wendal/luatos-cli`,MIT,v1.8.0)显示:
+
+- **纯 Rust**,可编译到 Windows/macOS/Linux;
+- 已支持多芯片刷机:**Air8101(BK7258)、Air6208(XT804)、Air101/103、Air1601/1602(CCM4211)、Air8000/Air780E(EC718)、SF32LB58**;
+- 型号文档还列出 **Air724UG(UIS8910DM/RDA8910)**;
+- 提供 `--format json/jsonl`,非常适合 GUI 解析进度;
+- 提供 `flash run --tail-log-secs`,刷完自动抓启动日志;
+- 提供 C ABI 日志库,覆盖 windows-msvc/linux-gnu/darwin x64+arm64;
+- 本 exe 的 `bk72xx_isp.py` 也直接引用了它的 `crates/luatos-flash/src/bk7258.rs` 和协议文档。
+
+> 注意:`luatos-cli` 是外部公开项目,不是本 exe 的一部分;上面的支持矩阵来自其 README/文档,实际能力要以你选用的版本为准。
+
+### 6.2 推荐技术栈
+
+```text
+┌──────────────────────────────────────────────┐
+│  UI: Tauri 2 + React/Svelte/Vue             │
+│  - 端口选择 / 固件选择 / 进度 / 日志 / 设置   │
+│  - 多语言(zh_CN/en-US/ja-JP/fr-FR)         │
+└──────────────────────┬───────────────────────┘
+                       │ invoke / sidecar
+┌──────────────────────▼───────────────────────┐
+│  Rust 后端                                   │
+│  - luatos-cli(sidecar 或 crate 依赖)        │
+│  - serialport / usb 枚举                     │
+│  - .soc/.binpkg 解析                         │
+│  - 更新器(签名 manifest)                    │
+└──────────────────────┬───────────────────────┘
+                       │ USB CDC / 串口
+┌──────────────────────▼───────────────────────┐
+│  设备(BK7258 / CCM4211 / EC7xx / XT804 ...) │
+└──────────────────────────────────────────────┘
+```
+
+### 6.3 目录建议
+
+```text
+luatools-next/
+  apps/
+    desktop/                 # Tauri + 前端
+  crates/
+    luatos-flash/            # 依赖 luatos-cli 的 flash crate,或 vendored
+    device-discovery/        # 串口/USB 枚举、VID/PID 识别
+    firmware/                # .soc/.binpkg/.pac 解析
+    updater/                 # 签名 manifest、增量更新
+  packaging/
+    windows/                 # WiX/NSIS 脚本
+    macos/                   # dmg + notarize 脚本
+    linux/                   # AppImage/deb + udev
+  docs/
+    flash-matrix.md
+```
+
+### 6.4 顺手可以替换掉的 Windows 依赖
+
+- **日志解码**:当前用 `common_log.dll`(`pyCommonlogAnalyze` / `pyCommonlogInit` / `pyEC618RamDumpCRC16`)。`luatos-cli` 提供 `luatos-log-ffi` 的 C ABI(Windows/Linux/macOS x64+arm64),README 明确说与第三方 `pySoclogAnalyze` DLL 签名兼容,可以直接替换,去掉一个 Windows-only DLL。
+- **设备文件协议**:`usercmd.py` 是纯 Python 的“日志口用户指令协议 v2.3”,不依赖 wx / pyserial,负责 open/read/write/stat/lsdir/鉴权。它适合做“脚本/资源更新、免 Boot 传输”,可以独立成跨平台 crate 或库。
+- **7z 解压**:`archive.py` 已经支持 `py7zr` 降级;跨平台版直接用 Rust `sevenz-rust` 或纯 Rust 解压,不再依赖 `7za.exe`。
+
+### 6.5 统一烧录接口(Rust trait 示例)
+
+```rust
+pub struct FlashRequest {
+    pub port: String,
+    pub firmware: PathBuf,
+    pub chip: ChipFamily,
+    pub erase_mode: EraseMode,     // Full / KeepKv / KeepFs / ScriptOnly
+    pub verify: bool,
+    pub baud: Option<u32>,
+}
+
+pub trait FlashBackend {
+    fn probe(&self, port: &str) -> Result<DeviceInfo>;
+    fn flash(&self, req: &FlashRequest, progress: &dyn Fn(Progress)) -> Result<FlashReport>;
+    fn cancel(&self) -> Result<()>;
+}
+```
+
+- `luatos-cli` 后端:调用 sidecar `luatos-cli flash run --soc ... --port ... --format jsonl`;
+- Windows 兼容后端:只在 Windows 上启用,调用 `FlashToolCLI.exe` / `CmdDloader.exe` / `air101_flash.exe`;
+- 纯 Python 后端:如果短期不想引入 Rust,可把 `bk72xx_isp.py`、`ccm4211_isp.py` 作为参考实现移植到 Rust 或保留 Python sidecar。
+
+---
+
+## 7. 分阶段落地计划
+
+### Phase 0:验证与冻结(1–2 周)
+
+目标:确认“哪些芯片能在非 Windows 上烧”,避免做完 UI 才发现内核不支持。
+
+- [ ] 用 `luatos-cli` 在 Windows/macOS/Linux 各跑一遍:`serial list`、`soc info`、`flash run`;
+- [ ] 用真实设备验证:Air8101、Air1601、Air8000/Air780EP、Air724UG(如可用);
+- [ ] 输出《芯片 × OS × 功能》矩阵,标出“官方支持 / 实验 / 不支持”;
+- [ ] 决定 ASR/UIS8850/Air105 是“Windows only”还是“后续移植”。
+
+建议先跑通这几条命令(以你下载到的 `luatos-cli` 版本为准):
+
+```bash
+# 方式一:从 GitHub Releases 下载对应平台二进制
+# 方式二:源码构建
+cargo build --release -p luatos-cli
+
+# 看支持型号和推荐命令
+luatos-cli guide models
+luatos-cli guide model --model air1601
+luatos-cli guide model --model air8101
+
+# 枚举串口、解析固件、烧录、刷后抓日志
+luatos-cli --format json serial list
+luatos-cli --format json soc info firmware.soc
+luatos-cli flash run --soc firmware.soc --port COM10 --format jsonl
+luatos-cli flash run --soc firmware.soc --port COM10 --tail-log-secs 20
+```
+
+**验收**:一张可执行的矩阵 + 每类芯片至少一台真机通过。
+
+### Phase 1:Windows 安装包 + 最小闭环(2–4 周)
+
+目标:先把 Windows 体验做好,不追求多端。
+
+- [ ] 把 PyInstaller `onefile` 改 `onedir`(或直接新壳),资源与数据分离;
+- [ ] 数据目录改为 `%LOCALAPPDATA%\LuatoolsNext`(日志、配置、工具缓存);
+- [ ] NSIS/MSI 安装包:默认 per-user,安装到 `%LOCALAPPDATA%\Programs`;
+- [ ] 所有 exe/dll 签名 + 时间戳;安装包签名;
+- [ ] 驱动检测/安装:CH340/CH341、CP210x、Unisoc/EC USB;
+- [ ] 最小烧录 UI:端口、固件、进度、日志、失败重试;
+- [ ] 自动更新:签名 manifest + 回滚。
+
+**验收**:普通用户双击安装 → 插设备 → 选固件 → 烧录成功 → 可升级。
+
+### Phase 2:macOS/Linux + 纯协议芯片(3–6 周)
+
+目标:多端真正可用。
+
+- [ ] Tauri 打包 `.dmg`(universal2,签名+公证+staple);
+- [ ] AppImage + `.deb`,安装 udev 规则,提示 `dialout` 权限;
+- [ ] 接入 `luatos-cli` 的 BK7258/XT804/CCM4211/EC718 后端;
+- [ ] 端口枚举/热插拔/权限错误提示;
+- [ ] 刷后日志验证(`--tail-log-secs`);
+- [ ] CI 矩阵构建 4 个 target。
+
+**验收**:macOS(Intel/Apple Silicon)和 Ubuntu 各烧录一台 BK7258/CCM4211/EC718 成功。
+
+### Phase 3:兼容与扩展(4–8 周)
+
+- [ ] Windows 兼容包:UIS8910/8850、ASR1802/1601、Air105;
+- [ ] 浏览器 WebSerial(Chrome/Edge/Android)原型;
+- [ ] Android App(USB Host)或 Tauri mobile;
+- [ ] 项目/资源/AI 等非烧录功能逐步补齐;
+- [ ] 远程支持/日志分析。
+
+---
+
+## 8. 安装包工程细节
+
+### 8.0 多端交付物清单
+
+| 平台 | 主安装包 | 备选/便携 | 签名 | 备注 |
+|---|---|---|---|---|
+| Windows 10/11 x64 | `.msi`(企业)/ `.exe` NSIS(普通用户) | portable `.zip` | Authenticode + 时间戳 | 默认 per-user 安装,驱动单独提权 |
+| macOS 12+ | `.dmg`(`.app`) | `.zip` | Developer ID + notarize + staple | Universal 2(x64+arm64) |
+| Linux x64 | `.AppImage` | `.deb` / `.rpm` | 发布校验和/minisign | 需 udev 规则 + `dialout` |
+| Android(可选) | `.apk` | — | APK 签名 | USB Host/OTG,Chrome WebSerial 也可 |
+| Web(可选) | 静态站点 | — | HTTPS + 完整性校验 | Chrome/Edge,iOS 不支持 |
+
+> Windows 兼容包(UIS/ASR/Air105 厂商工具)只放进 Windows 安装包,作为可选组件;macOS/Linux 包不要携带无法运行的 `.exe`/`.dll`,否则既增大体积又误导用户。
+
+### 8.1 Windows
+
+- **格式**:MSI(企业/批量) + NSIS(普通用户,体积小)。
+- **安装位置**:默认 `%LOCALAPPDATA%\Programs\LuatoolsNext`,避免 Program Files 写权限问题;企业版可选 per-machine + `%PROGRAMDATA%` 数据目录。
+- **数据目录**:
+  ```text
+  %LOCALAPPDATA%\LuatoolsNext\
+    config\
+    logs\
+    tools\        # 7z 解压缓存
+    resource\     # 固件/资源
+  ```
+- **驱动**:随包附带 CH340/CH341、CP210x、Unisoc/EC USB 驱动的 INF;用 `pnputil`/DPInst 安装,需要管理员时单独提权。
+- **签名**:主程序、sidecar、卸载器、所有 DLL 全部签名;EV 证书 + RFC3161 时间戳;保持同一证书积累 SmartScreen 信誉。
+- **杀软**:不要再用 onefile 自解压;onedir + 签名 + 稳定哈希能显著降低误报。
+
+### 8.2 macOS
+
+- **架构**:Universal 2(x86_64 + arm64),或分别发 Intel/Apple Silicon 包。
+- **格式**:`.app` + `.dmg`;如需商店再考虑 `.pkg`。
+- **签名**:Developer ID Application + hardened runtime;sidecar/动态库全部签名;
+- **公证**:`notarytool` 提交,`stapler staple` 到 dmg/app;
+- **权限**:串口不需要特殊 entitlement;如果启用 App Sandbox,需要 `com.apple.security.device.serial` / USB 相关 entitlement,建议先不沙盒。
+- **驱动**:CDC ACM 免驱;CH340 旧系统可能需要厂商驱动。
+
+### 8.3 Linux
+
+- **格式**:AppImage(便携) + `.deb`/`.rpm`(桌面集成)。
+- **udev**:安装 `/etc/udev/rules.d/99-luatools.rules`,覆盖 CH340/CH341、CP210x、Unisoc/EC 的 VID/PID;
+- **权限**:把用户加入 `dialout` 组,或使用 `TAG+="uaccess"`;
+- **Flatpak**:不推荐作为首版,沙盒访问串口/USB 需要额外 portal/权限,容易踩坑;
+- **FUSE**:AppImage 需要 libfuse2,或在文档里给 `--appimage-extract-and-run` 方案。
+
+### 8.4 自动更新
+
+- JSON manifest:
+  ```json
+  {
+    "version": "1.2.3",
+    "notes": "...",
+    "platforms": {
+      "windows-x86_64": {"url": "...", "sha256": "...", "signature": "..."},
+      "darwin-aarch64": {"url": "...", "sha256": "...", "signature": "..."},
+      "linux-x86_64": {"url": "...", "sha256": "...", "signature": "..."}
+    }
+  }
+  ```
+- 用 minisign/cosign 对 manifest 签名;客户端内置公钥;
+- 支持 staged rollout、失败回滚、断点续传;
+- macOS 更新必须替换整个 `.app` 并保持签名有效;Windows 用安装器或原子替换目录;Linux 用 AppImage 替换或包管理器。
+
+---
+
+## 9. 烧录功能设计要点
+
+### 9.1 设备发现
+
+- 串口枚举:`serialport`(Rust)或 `pyserial`(Python);
+- 同时显示 VID/PID、描述、COM 号、是否 CH340/CH341;
+- 常见 VID/PID 内置识别表,未知设备允许手动选择;
+- 热插拔监听:Windows `WM_DEVICECHANGE`、Linux udev、macOS IOKit;
+- 多设备同时插入时,必须让用户明确选择,不能“自动选第一个”。
+
+### 9.2 进入 Boot 模式
+
+不同芯片的进入方式不同,UI 要给出分步提示:
+
+| 芯片 | 进入方式 | 备注 |
+|---|---|---|
+| BK7258 | DTR/RTS 5 阶段脉冲 | 代码已实现,可直接复用 |
+| CCM4211 | RAM run + 握手 | 纯串口 |
+| EC618/EC7xx | BOOT 引脚 + 复位/断电 | 工具会提示“按住 BOOT 重启” |
+| UIS8910/8850 | 按键/断电 + USB 枚举 | ResearchDownload 的流程 |
+| ASR1802/1601 | AT 命令/aboot | `AT+QDOWNLOAD=1` / `AT$MYDOWNLOAD=1` |
+| XT804/Air101 | 复位 + 串口同步 | `air101_flash.exe` 处理 |
+
+### 9.3 烧录参数
+
+- 初始波特率:115200(大多数);
+- 高速烧录:921600 / 1.5M / 3M / 6M,按芯片能力选择;
+- 日志波特率:921600 / 2M / 6M;
+- 擦除模式:全片擦除 / 保留 KV / 保留 FS / 仅脚本;
+- 校验:CRC32 / MD5 / SHA256(按芯片支持);
+- 失败重试:端口重开、降低波特率、重新进入 Boot、断电提示;
+- 取消:必须能安全中断,不能把设备留在半擦除状态(至少给出恢复指引)。
+
+### 9.4 固件解析
+
+- `.soc` / `.binpkg`:先读 `info.json`,校验 `chip.type`、版本、分区表、镜像长度;
+- `.pac`:解析 PAC 头/分区(如果只用厂商工具,可只做展示);
+- `.lod` / `.ec`:展示型号/版本,交给对应后端;
+- 烧录前做“固件与设备匹配”检查,避免刷错芯片;
+- 烧录后读回版本/启动日志,做闭环验证。
+
+### 9.5 日志与诊断
+
+- 烧录日志:时间戳、阶段、百分比、速率、错误码;
+- 设备日志:文本日志 + 二进制日志(EC7xx/CCM4211 需要 `--probe`);
+- 失败时自动保存:端口信息、固件哈希、工具版本、最后 200 行日志;
+- 可选“一键诊断”:驱动、端口占用、供电、Boot 电平、固件匹配。
+
+---
+
+## 10. 风险与未知
+
+| 风险 | 影响 | 建议 |
+|---|---|---|
+| `luatos-cli` 对 EC618/UIS8910 的实际支持与 README 不完全一致 | 影响覆盖范围 | Phase 0 真机验证,按版本锁定 |
+| ASR1802/1601、UIS8850 无开源协议 | 无法真正多端 | 标记 Windows only,或长期逆向/授权 |
+| Air105 依赖 `soc_download.exe` | Linux/macOS 不可用 | 评估移植 xmodem/ymodem,或暂不支持 |
+| macOS 公证/签名 | 安装包被 Gatekeeper 拦截 | 提前准备 Developer ID,CI 中做 notarize |
+| Linux udev/权限 | 用户看不到串口 | 安装脚本自动写 udev 规则并提示重登录 |
+| 驱动分发 | Windows 用户装不上 | 安装包内置 INF,检测后引导安装 |
+| 厂商工具授权 | 不能随包分发 | 只对 Windows 兼容包提供,遵守许可 |
+| 反编译/知识产权 | 法律风险 | 用 `luatos-cli`(MIT)和公开协议做 clean-room,不复制闭源代码 |
+| onefile 杀软误报 | 用户不信任 | 改 onedir + 全量签名 + 稳定发布 |
+
+### 明确的未知
+
+- EC618 “快速下载”是否覆盖全片固件,还是只覆盖脚本/资源;需要真机抓包/日志确认。
+- `MH1903S_ISP` 是否在当前 UI 可达;代码存在但路由未接线。
+- `luatos-cli` 对 UIS8850、ASR、Air105 的支持边界;以实际版本为准。
+- macOS/Linux 上厂商 USB 设备(非 CDC)的兼容性;需要逐型号验证。
+
+---
+
+## 11. 证据索引
+
+| 证据 | 位置/内容 |
+|---|---|
+| PE/签名/版本 | `D:\Luatools_v3.exe`;Machine `0x8664`;Authenticode Valid;`define.py` 3.4.15 / 2026.10.29 |
+| PyInstaller 结构 | 文件尾部 `MEI\x0c\x0b\x0a\x0b\x0e`;`pyver=313`;359 条目;PYZ 1,847 模块 |
+| onefile 签名流程 | 内置 `dev/repack_onefile_sign.py`、`dev/sign_binaries.py` |
+| 工具包 | `win32/{uis_download,uis_tools,ec_download,dtools,tools,ffmpeg}.7z`;密码 `123`;解压到 `_temp/tools` |
+| 数据目录 | `my_api._init_app_root()`:`APP_ROOT = exe 目录`;`define.TEMP_PATH = "_temp"` |
+| 自更新 | `main.py` 的 `update.exe`/`del.exe`;`net_main.check_upgrade/upgrade_run` |
+| 烧录路由 | `soc.SocDevice.__init__` 的 `download_dict` / `full_control_download_dict` |
+| BK7258 协议 | `bk72xx_isp.py` docstring:CMD 0x00/0x0F/0x0E/0x0C/0x0D/0x07/0x10 |
+| CCM4211 | `ccm4211_isp.py`;`soc.ccm4211_full_control_run`;`dev/air1601_burn_check.py` |
+| EC618/EC7xx | `soc.ec618_make_cmd`/`ec7xx_make_cmd`;`FlashToolCLI.exe`、`fcelf.exe`、`burnbatch` |
+| UIS | `usb_device.aio_uis_download`;`CmdDloader.exe -pac ... -port ... -c` |
+| ASR | `aboot.dll`、`WtptpDownLoad.dll`、`download.exe` 的 `AT+QDOWNLOAD=1` / `ASR1802` / `ASR1601` |
+| 日志 DLL | `common_log.dll`:`pyCommonlogAnalyze/pyCommonlogInit/pyEC618RamDumpCRC16` |
+| usercmd | `usercmd.py` docstring:日志口用户指令协议 v2.3,文件读写/目录/鉴权 |
+| 跨平台内核参考 | `luatos-cli`(MIT,v1.8.0):BK7258/XT804/CCM4211/EC718/SF32LB58,`--format jsonl`,4 平台 FFI |
+
+---
+
+## 12. 最终建议(按优先级)
+
+1. **不要再往 onefile 上叠功能。** 先把 Windows 版改成 onedir + 安装包 + 全量签名,这是投入产出比最高的一步。
+2. **把烧录内核从 UI 里抽出来。** 定义一个 `FlashBackend` 接口,优先用 `luatos-cli` 作为跨平台实现。
+3. **按芯片分级发布。** 首版跨平台只承诺 BK7258、CCM4211、EC718、XT804;UIS/ASR/Air105 标“Windows 兼容”或“实验”。
+4. **安装包与数据目录分离。** 程序装只读目录,数据写 `%LOCALAPPDATA%` / `~/Library/Application Support` / `~/.local/share`。
+5. **签名和公证从第一天就做。** Windows EV 证书、macOS Developer ID + notarize、Linux 发布校验;不要等发布前再补。
+6. **先做 CLI 闭环,再做 GUI。** `luatos-cli flash run` 能在三端跑通,再包 UI;否则 UI 做得再漂亮也无法烧录。
+7. **保留 Windows 兼容包作为过渡。** 对 ASR/UIS8850 等短时间无法移植的芯片,Windows 版继续用厂商工具;macOS/Linux 明确提示“不支持”,不要用 Wine 伪装成可用。
+
+---
+
+## 13. 已实现的 macOS 工具
+
+按本报告的“方案 B”思路,已经在当前目录做出一个可构建的 macOS 烧录工具:
+
+- 路径:`D:\code\air\luatools-mac`
+- 界面:Electron(深色单页,端口/固件/选项/进度/日志)  
+  说明:当前 Windows 环境没有 Rust 工具链,为了尽快交付可运行版本先用 Electron;
+  烧录内核仍是 `luatos-cli`,后续如需更小体积可平滑换成 Tauri/SwiftUI 壳。
+- 内核:内置 `luatos-cli 1.11.0`(macOS universal,另有 Windows 版用于开发验证)
+- 已支持:BK7258/Air8101、CCM4211/Air1601/Air1602、EC718/Air8000、XT804/Air101/Air103/Air6208、UIS8910/Air724UG、SF32LB58(以 `luatos-cli` 实际版本为准)
+- macOS 构建:`cd luatools-mac && ./scripts/build-mac.sh`(或 `npm run dist:mac`)
+- 开发运行:`npm install && npm start`,或双击 `start-mac.command`
+- 已验证:固件解析、UI 状态、CLI JSONL 进度、错误路径、Windows 打包启动
+- 未在 Mac 上实际签名/公证:需要 Apple Developer ID;工程内已提供 entitlements 和 GitHub Actions 工作流
+
+> 由于本次分析环境是 Windows,macOS 的 `.app`/`.dmg` 不能在本地签名生成;
+> 但在 Mac 上执行 `npm run dist:mac` 即可产出 DMG。
+
+---
+
+## 附:建议的首个 MVP 范围
+
+如果现在就要开工,建议 MVP 只做:
+
+- 平台:Windows 10/11 x64 + macOS 12+ + Ubuntu 22.04;
+- 芯片:BK7258(Air8101)、CCM4211(Air1601/1602)、EC718(Air8000/Air780EPM);
+- 功能:串口列表、固件选择、`flash run`、进度、日志、失败重试、刷后日志验证;
+- 安装:Windows NSIS、macOS DMG(签名+公证)、Linux AppImage/deb;
+- 更新:签名 manifest + 手动检查更新。
+
+这个范围可以在 6–8 周内做出可演示、可现场使用的版本;之后再补 UIS/ASR/Air105 和项目/资源/AI 功能。

+ 31 - 0
README.md

@@ -0,0 +1,31 @@
+# Luatools v3 分析与 macOS 烧录工具
+
+- [Luatools v3.4.15 逆向分析与多端安装/烧录方案](./Luatools_v3_多端安装与烧录方案.md)
+- [macOS 烧录工具(Electron + luatos-cli)](./luatools-mac/README.md)
+- [macOS 烧录工具 Tauri 版(Rust + luatos-cli,arm64)](./luatools-tauri/README.md)
+
+## macOS 快速开始
+
+```bash
+cd luatools-mac
+npm install
+npm start
+```
+
+或在 Mac 上双击 `luatools-mac/start-mac.command`(首次先 `chmod +x`)。
+
+构建 DMG:
+
+```bash
+cd luatools-mac
+./scripts/build-mac.sh
+```
+
+## 已验证
+
+- `luatos-cli 1.11.0` 启动、串口枚举、`.soc` 解析
+- 固件信息展示、Boot 提示、烧录错误路径
+- Windows 打包版启动 + NSIS 安装包生成
+
+macOS 的 `.app`/`.dmg` 需要在 Mac 或 GitHub Actions 的 macOS runner 上构建,
+工程内已提供构建脚本和 workflow。

+ 45 - 0
luatools-mac/.github/workflows/build-macos.yml

@@ -0,0 +1,45 @@
+name: Build macOS
+
+on:
+  workflow_dispatch:
+  push:
+    tags:
+      - 'v*'
+
+jobs:
+  build:
+    runs-on: macos-14
+    timeout-minutes: 30
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Setup Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: 22
+          cache: npm
+
+      - name: Install dependencies
+        run: npm ci
+
+      - name: Fetch luatos-cli (universal)
+        run: npm run fetch:cli
+
+      - name: Build unsigned DMG
+        env:
+          CSC_IDENTITY_AUTO_DISCOVERY: 'false'
+        run: npm run dist:mac
+
+      - name: Upload artifacts
+        uses: actions/upload-artifact@v4
+        with:
+          name: LuatOS-Flasher-macOS
+          path: |
+            dist/*.dmg
+            dist/*.zip
+          if-no-files-found: error
+
+      # For signed + notarized releases, add Developer ID secrets and run
+      # `npm run dist:mac:signed` with CSC_LINK / CSC_KEY_PASSWORD,
+      # then notarize with `xcrun notarytool submit ... --wait`.

+ 21 - 0
luatools-mac/LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 LuatOS Flasher contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 260 - 0
luatools-mac/README.md

@@ -0,0 +1,260 @@
+# LuatOS Flasher(macOS)
+
+一个面向 macOS 的 LuatOS 固件烧录工具。界面是 Electron,烧录内核是纯 Rust 的
+[`luatos-cli`](https://github.com/wendal/luatos-cli)(MIT),所以不需要 Wine,也不需要
+Windows 虚拟机。
+
+![LuatOS Flasher 界面](docs/screenshot.png)
+
+> 当前工程已在 Windows 上用 `luatos-cli` 1.11.0 做过 CLI/解析/错误路径验证;
+> macOS 的 `.app` / `.dmg` 需要在 Mac 上执行一次 `npm run dist:mac` 生成。
+> 未签名的本地构建可以直接运行;对外分发建议做 Developer ID 签名 + 公证。
+
+## 支持芯片
+
+| 型号 | 芯片 | 烧录 |
+|---|---|---|
+| Air8101 | BK7258 / bk72xx | ✅ |
+| Air1601 / Air1602 / Air1603 / Air1604 | CCM4211 | ✅ |
+| Air8000 / Air780E 系列 | EC718 / EC7xx | ✅ |
+| Air6208 / Air101 / Air103 / Air601 | XT804 | ✅ |
+| Air724UG / Air795UG | UIS8910DM / RDA8910 | ✅(以实际固件为准) |
+| SF32LB58 | SF32 | ✅ |
+| Air105 / ASR1802 / ASR1601 / UIS8850 | — | ❌ 当前内核未覆盖 |
+
+具体以 `luatos-cli guide models` 的输出为准;App 内“支持的型号”也会实时读取。
+固件可以从 [LuatOS 文档中心](https://wiki.luatos.com/) 对应模组页面下载 `.soc` 文件。
+
+## 直接运行(开发模式)
+
+要求:macOS 12+,Node.js 20+(Apple Silicon / Intel 均可)。
+
+```bash
+cd luatools-mac
+npm install
+npm start
+```
+
+macOS 上也可以双击 `start-mac.command`(首次需要执行
+`chmod +x start-mac.command`;如果双击没反应,执行 `bash start-mac.command`),
+它会自动安装依赖并启动 App。
+
+首次启动会自动读取 `resources/bin/luatos-cli`(macOS)或
+`resources/win/luatos-cli.exe`(Windows)。如果缺少,执行:
+
+```bash
+npm run fetch:cli
+```
+
+也可以设置环境变量指向已有二进制:
+
+```bash
+LUATOS_CLI=/path/to/luatos-cli npm start
+```
+
+## 已在当前环境验证的内容
+
+- `luatos-cli 1.11.0` 能正常启动、枚举串口、解析 `.soc`
+- 载入测试固件后,界面能显示芯片/版本/文件列表和对应 Boot 提示
+- 烧录错误路径(不存在的串口 `COM99`)能正确显示进度、错误信息和日志
+- Windows 打包版能启动,并从 `resources/bin/luatos-cli.exe` 调用内核
+- Windows NSIS 安装包生成流程已验证(`npm run dist:win`)
+
+> macOS 的 `.app`/`.dmg` 无法在 Windows 上签名和公证,因此需要在 Mac 或
+> GitHub Actions 的 macOS runner 上构建;构建脚本已经准备好。
+
+## 构建 macOS App / DMG
+
+在 Mac 上:
+
+```bash
+cd luatools-mac
+chmod +x scripts/build-mac.sh
+./scripts/build-mac.sh
+```
+
+或者手动:
+
+```bash
+npm ci
+npm run fetch:cli
+npm run dist:mac
+```
+
+产物在 `dist/`:
+
+- `LuatOS Flasher-0.1.0-universal.dmg`
+- `LuatOS Flasher-0.1.0-universal-mac.zip`
+
+`dist:mac` 默认 **不签名**(`CSC_IDENTITY_AUTO_DISCOVERY=false`)。
+如果 macOS 提示“无法验证开发者”:
+
+```bash
+xattr -cr "/Applications/LuatOS Flasher.app"
+# 或者右键 App -> 打开
+```
+
+本地临时签名也可以:
+
+```bash
+chmod +x scripts/fix-macos-gatekeeper.sh
+./scripts/fix-macos-gatekeeper.sh "dist/mac-universal/LuatOS Flasher.app"
+```
+
+该脚本会清理 quarantine 并做 ad-hoc 签名,适合本地自用;对外分发仍应使用 Developer ID。
+
+## Windows 构建(开发/验证)
+
+```bash
+npm run dist:win
+```
+
+产物:`dist/LuatOS Flasher Setup 0.1.0.exe`。
+Windows 包会把 `resources/win/luatos-cli.exe` 放到安装目录的 `resources/bin/`。
+
+## 正式签名 + 公证(可选)
+
+准备 Apple Developer ID Application 证书,然后:
+
+```bash
+export CSC_LINK="/path/to/developer-id.p12"
+export CSC_KEY_PASSWORD="p12-password"
+npm run dist:mac:signed
+
+xcrun notarytool submit "dist/LuatOS Flasher-0.1.0-universal.dmg" \
+  --apple-id "you@example.com" \
+  --team-id "TEAMID" \
+  --password "app-specific-password" \
+  --wait
+
+xcrun stapler staple "dist/LuatOS Flasher-0.1.0-universal.dmg"
+```
+
+App 内置的 `luatos-cli` 会在 `afterPack` 阶段被 `codesign` 签掉;
+如果使用正式证书,请设置 `CSC_NAME` 让 sidecar 使用同一身份。
+
+## 自检(不需要真机)
+
+```bash
+npm run test:smoke        # 解析内置测试固件,检查芯片/版本/文件列表
+npm run test:flash-error  # 用不存在的 COM99 跑完整烧录链路,检查错误处理
+```
+
+> 自检用的是 `tests/fixtures/air8101-dummy.soc` 假固件,只包含 1 KB 占位数据,
+> **不要把它烧录到真实设备**。
+
+## 使用步骤
+
+1. 用支持数据传输的 USB 线连接设备。
+2. 点“刷新”选择串口(macOS 一般是 `/dev/cu.usbmodem*`)。
+3. 拖入或选择 `.soc` 固件。
+4. 选择“全量烧录”或“仅刷脚本区”(后者必须选脚本目录)。
+5. 点“开始烧录”,按日志提示进入 Boot。
+6. 烧录过程中不要断电、拔线。
+
+### 各芯片进入 Boot
+
+- **BK7258 / Air8101**:工具自动用 DTR/RTS 进入 ROM Boot;失败时按住 BOOT 再上电。
+- **CCM4211 / Air1601/1602**:自动握手 + RAM run;确保供电稳定。
+- **EC718 / Air8000**:需要 BOOT;工具会自动尝试,失败时按日志提示断电重启。
+- **XT804 / Air101/103/6208**:复位后自动同步。
+- **UIS8910 / Air724UG**:按日志提示进入 Boot。
+
+## 为什么不是直接改 Luatools
+
+Luatools v3 是 Windows 专用的 PyInstaller onefile + wxPython 程序,烧录链路里混有
+`FlashToolCLI.exe`、`CmdDloader.exe`、`aboot.dll` 等 Windows 二进制。直接把它重打包到
+macOS 不可行。这个项目把“界面”和“烧录”拆开:
+
+```text
+Electron UI  ──IPC──>  Node 主进程  ──spawn──>  luatos-cli (Rust)
+                                                   │
+                                                   └── USB 串口 ──> 设备
+```
+
+因此 macOS 上不需要任何 Windows 组件。需要新增芯片时,优先在 `luatos-cli` 里实现协议,
+App 只负责选择端口、解析固件、显示进度和日志。
+
+## 目录结构
+
+```text
+luatools-mac/
+  electron/
+    main.js        # Electron 主进程 / IPC / 烧录进程管理
+    preload.js     # 安全桥
+    cli.js         # luatos-cli 定位、JSON/JSONL 解析、取消
+  renderer/
+    index.html     # 单页界面
+    styles.css     # 深色主题
+    app.js         # 交互逻辑
+  resources/bin/
+    luatos-cli     # macOS universal(已内置 1.11.0)
+  resources/win/
+    luatos-cli.exe # Windows x64(开发测试用,不打进 macOS 包)
+  scripts/
+    fetch-cli.mjs  # 下载对应平台 luatos-cli
+    after-pack.cjs # 打包后 chmod + codesign sidecar
+    build-mac.sh   # macOS 一键构建
+  build/
+    entitlements.mac.plist
+  .github/workflows/build-macos.yml
+```
+
+## 故障排查
+
+### 看不到串口
+
+- 换一根支持数据传输的 USB 线(很多线只能充电)。
+- macOS 免驱的 CDC 设备通常直接出现;CH340/CP210x 老设备可能需要厂商驱动。
+- 关掉占用串口的其他程序(Luatools、串口助手、Arduino IDE 等)。
+- 在终端确认:`ls /dev/cu.*`。
+
+### 烧录卡在 Connecting
+
+- 按对应芯片的 Boot 提示操作;BK7258 可以按住 BOOT 再上电。
+- 降低波特率(选择“自动”或 921600)。
+- 换 USB 口,避免使用无源 Hub。
+- 看日志最后一行;如果是权限/端口占用,关闭其他串口工具。
+
+### `luatos-cli` 找不到
+
+```bash
+npm run fetch:cli
+# 或
+export LUATOS_CLI=/absolute/path/to/luatos-cli
+npm start
+```
+
+### `npm install` 很慢或失败
+
+国内网络可以换镜像:
+
+```bash
+npm config set registry https://registry.npmmirror.com
+npm install
+```
+
+### 构建时报签名错误
+
+本地构建用:
+
+```bash
+CSC_IDENTITY_AUTO_DISCOVERY=false npm run dist:mac
+```
+
+正式签名再设置 `CSC_LINK` / `CSC_KEY_PASSWORD`。
+
+## 安全与合规
+
+- `luatos-cli` 是 MIT 许可的独立项目;本工程只通过子进程调用它,不复制其源码。
+- 不要用本工具烧录来路不明的固件;烧录前确认芯片型号与固件匹配。
+- 生产环境建议固定 `luatos-cli` 版本,并对下载的二进制做 SHA-256 校验。
+
+## 后续可加
+
+- [ ] 自动检测芯片并推荐固件
+- [ ] 固件库/在线下载(LuatOS CDN)
+- [ ] 日志解码(`luatos-cli log view` / `view-binary`)
+- [ ] 批量烧录/产线模式
+- [ ] Windows/Linux 安装包
+- [ ] 自动更新(签名 manifest)

+ 24 - 0
luatools-mac/THIRD_PARTY_NOTICES.md

@@ -0,0 +1,24 @@
+# Third-party notices
+
+This application bundles or depends on the following projects:
+
+## luatos-cli
+
+- Project: https://github.com/wendal/luatos-cli
+- License: MIT
+- Usage: bundled as `resources/bin/luatos-cli` (macOS universal) and
+  `resources/win/luatos-cli.exe` (Windows), invoked as a subprocess.
+
+## Electron
+
+- Project: https://www.electronjs.org/
+- License: MIT
+- Usage: desktop runtime.
+
+## Electron Builder
+
+- Project: https://www.electron.build/
+- License: MIT
+- Usage: build/packaging tool (development only).
+
+See the upstream repositories for the full license texts.

+ 12 - 0
luatools-mac/build/entitlements.mac.plist

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+  <dict>
+    <key>com.apple.security.cs.allow-jit</key>
+    <true/>
+    <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
+    <true/>
+    <key>com.apple.security.cs.disable-library-validation</key>
+    <true/>
+  </dict>
+</plist>

BIN
luatools-mac/build/icon.icns


BIN
luatools-mac/build/icon.ico


BIN
luatools-mac/build/icon.png


BIN
luatools-mac/docs/screenshot.png


+ 297 - 0
luatools-mac/electron/cli.js

@@ -0,0 +1,297 @@
+'use strict';
+
+const { spawn, execFile, execFileSync } = require('node:child_process');
+const fs = require('node:fs');
+const path = require('node:path');
+
+/**
+ * Locate the bundled luatos-cli binary.
+ *
+ * Priority:
+ *   1. LUATOS_CLI env var (absolute path)
+ *   2. packaged app: Contents/Resources/bin/luatos-cli
+ *   3. dev: <project>/resources/bin/luatos-cli
+ *   4. PATH
+ */
+function resolveCliPath(app) {
+  const exe = process.platform === 'win32' ? 'luatos-cli.exe' : 'luatos-cli';
+  const candidates = [];
+
+  if (process.env.LUATOS_CLI) {
+    candidates.push(process.env.LUATOS_CLI);
+  }
+  if (app && app.isPackaged) {
+    candidates.push(path.join(process.resourcesPath, 'bin', exe));
+    // Windows packages may keep the binary under bin/ as well.
+    candidates.push(path.join(process.resourcesPath, 'bin', 'luatos-cli.exe'));
+  }
+  if (app) {
+    const root = app.getAppPath();
+    candidates.push(path.join(root, 'resources', 'bin', exe));
+    candidates.push(path.join(root, 'resources', 'win', 'luatos-cli.exe'));
+    candidates.push(path.join(root, 'resources', 'bin', 'luatos-cli.exe'));
+  }
+  candidates.push(path.join(__dirname, '..', 'resources', 'bin', exe));
+  candidates.push(path.join(__dirname, '..', 'resources', 'win', 'luatos-cli.exe'));
+
+  for (const candidate of candidates) {
+    try {
+      if (candidate && fs.statSync(candidate).isFile()) {
+        return candidate;
+      }
+    } catch {
+      // ignore
+    }
+  }
+
+  // Fall back to PATH lookup. We cannot resolve it here, but spawning the bare
+  // name lets the OS decide; report it as "found" so the UI can still try.
+  return exe;
+}
+
+const preparedBinaries = new Set();
+
+function ensureExecutable(binPath) {
+  if (process.platform === 'win32') return;
+  try {
+    fs.chmodSync(binPath, 0o755);
+  } catch {
+    // best effort; the app may still run if the mode is already correct
+  }
+
+  if (process.platform !== 'darwin' || preparedBinaries.has(binPath)) return;
+  preparedBinaries.add(binPath);
+
+  // A binary downloaded with a browser can carry the quarantine attribute.
+  // The sidecar is part of the app; clearing it here avoids a confusing
+  // "developer cannot be verified" failure on first flash.
+  try {
+    execFileSync('xattr', ['-d', 'com.apple.quarantine', binPath], { stdio: 'ignore' });
+  } catch {
+    // attribute absent or xattr unavailable
+  }
+
+  // If the release binary is unsigned, ad-hoc sign it so macOS can exec it.
+  try {
+    execFileSync('codesign', ['--verify', binPath], { stdio: 'ignore' });
+  } catch {
+    try {
+      execFileSync('codesign', ['--force', '--sign', '-', binPath], { stdio: 'ignore' });
+    } catch {
+      // last resort: leave as-is
+    }
+  }
+}
+
+function runJson(binPath, args, options = {}) {
+  const timeoutMs = options.timeoutMs ?? 20000;
+  return new Promise((resolve, reject) => {
+    ensureExecutable(binPath);
+    const child = spawn(binPath, args, {
+      cwd: options.cwd,
+      windowsHide: true,
+      env: { ...process.env, NO_COLOR: '1' },
+    });
+
+    let stdout = '';
+    let stderr = '';
+    let settled = false;
+    const timer = setTimeout(() => {
+      if (settled) return;
+      settled = true;
+      try {
+        killProcessTree(child);
+      } catch {
+        // ignore
+      }
+      reject(new Error(`命令超时(${Math.round(timeoutMs / 1000)}s):${args.join(' ')}`));
+    }, timeoutMs);
+
+    child.stdout.setEncoding('utf8');
+    child.stderr.setEncoding('utf8');
+    child.stdout.on('data', (chunk) => {
+      stdout += chunk;
+    });
+    child.stderr.on('data', (chunk) => {
+      stderr += chunk;
+    });
+    child.on('error', (error) => {
+      if (settled) return;
+      settled = true;
+      clearTimeout(timer);
+      reject(new Error(`无法启动 luatos-cli:${error.message}\n路径:${binPath}`));
+    });
+    child.on('close', (code) => {
+      if (settled) return;
+      settled = true;
+      clearTimeout(timer);
+      if (code !== 0) {
+        const detail = (stderr || stdout).trim();
+        reject(new Error(detail || `luatos-cli 退出码 ${code}`));
+        return;
+      }
+      try {
+        resolve(JSON.parse(stdout));
+      } catch (error) {
+        reject(new Error(`无法解析 luatos-cli JSON 输出:${error.message}\n${stdout.slice(0, 800)}`));
+      }
+    });
+  });
+}
+
+function runText(binPath, args, options = {}) {
+  const timeoutMs = options.timeoutMs ?? 10000;
+  return new Promise((resolve, reject) => {
+    ensureExecutable(binPath);
+    const child = spawn(binPath, args, {
+      cwd: options.cwd,
+      windowsHide: true,
+      env: { ...process.env, NO_COLOR: '1' },
+    });
+    let stdout = '';
+    let stderr = '';
+    let settled = false;
+    const timer = setTimeout(() => {
+      if (settled) return;
+      settled = true;
+      killProcessTree(child);
+      reject(new Error(`命令超时:${args.join(' ')}`));
+    }, timeoutMs);
+    child.stdout.setEncoding('utf8');
+    child.stderr.setEncoding('utf8');
+    child.stdout.on('data', (chunk) => { stdout += chunk; });
+    child.stderr.on('data', (chunk) => { stderr += chunk; });
+    child.on('error', (error) => {
+      if (settled) return;
+      settled = true;
+      clearTimeout(timer);
+      reject(new Error(`无法启动 luatos-cli:${error.message}`));
+    });
+    child.on('close', (code) => {
+      if (settled) return;
+      settled = true;
+      clearTimeout(timer);
+      if (code !== 0) {
+        reject(new Error((stderr || stdout).trim() || `luatos-cli 退出码 ${code}`));
+        return;
+      }
+      resolve((stdout || stderr).trim());
+    });
+  });
+}
+
+function runJsonl(binPath, args, handlers = {}, options = {}) {
+  ensureExecutable(binPath);
+
+  return new Promise((resolve, reject) => {
+    const child = spawn(binPath, args, {
+      cwd: options.cwd,
+      windowsHide: true,
+      env: { ...process.env, NO_COLOR: '1' },
+    });
+
+    let stdoutBuffer = '';
+    let stderrBuffer = '';
+    let settled = false;
+
+    child.stdout.setEncoding('utf8');
+    child.stderr.setEncoding('utf8');
+
+    const emitLine = (line, source) => {
+      const trimmed = line.trim();
+      if (!trimmed) return;
+
+      if (source === 'stdout' && trimmed.startsWith('{')) {
+        try {
+          const event = JSON.parse(trimmed);
+          handlers.onEvent?.(event);
+          return;
+        } catch {
+          // Not valid JSON: fall through to a plain log line.
+        }
+      }
+
+      // Non-JSON output is still useful: tool notices, progress bars from
+      // vendor stubs, stdout banners, etc.
+      handlers.onLine?.(trimmed, source);
+    };
+
+    const feed = (chunk, source) => {
+      if (source === 'stdout') {
+        stdoutBuffer += chunk;
+        let index;
+        while ((index = stdoutBuffer.indexOf('\n')) >= 0) {
+          const line = stdoutBuffer.slice(0, index);
+          stdoutBuffer = stdoutBuffer.slice(index + 1);
+          emitLine(line, source);
+        }
+      } else {
+        stderrBuffer += chunk;
+        let index;
+        while ((index = stderrBuffer.indexOf('\n')) >= 0) {
+          const line = stderrBuffer.slice(0, index);
+          stderrBuffer = stderrBuffer.slice(index + 1);
+          emitLine(line, source);
+        }
+      }
+    };
+
+    child.stdout.on('data', (chunk) => feed(chunk, 'stdout'));
+    child.stderr.on('data', (chunk) => feed(chunk, 'stderr'));
+
+    const finish = (code, signal, error) => {
+      if (settled) return;
+      settled = true;
+      if (stdoutBuffer.trim()) emitLine(stdoutBuffer, 'stdout');
+      if (stderrBuffer.trim()) emitLine(stderrBuffer, 'stderr');
+      if (error) {
+        reject(error);
+        return;
+      }
+      handlers.onExit?.({ code, signal });
+      resolve({ code, signal });
+    };
+
+    child.on('error', (error) => {
+      finish(null, null, new Error(`无法启动 luatos-cli:${error.message}\n路径:${binPath}`));
+    });
+
+    child.on('close', (code, signal) => {
+      finish(code, signal, null);
+    });
+
+    if (options.onChild) {
+      options.onChild(child);
+    }
+  });
+}
+
+function killProcessTree(child) {
+  if (!child || child.killed) return;
+  if (process.platform === 'win32') {
+    // `child.kill()` does not reliably kill descendants on Windows.
+    execFile('taskkill', ['/pid', String(child.pid), '/T', '/F'], { windowsHide: true }, () => {});
+    return;
+  }
+  try {
+    child.kill('SIGINT');
+  } catch {
+    // ignore
+  }
+  setTimeout(() => {
+    try {
+      if (!child.killed) child.kill('SIGKILL');
+    } catch {
+      // ignore
+    }
+  }, 2500).unref?.();
+}
+
+module.exports = {
+  resolveCliPath,
+  ensureExecutable,
+  runJson,
+  runText,
+  runJsonl,
+  killProcessTree,
+};

+ 418 - 0
luatools-mac/electron/main.js

@@ -0,0 +1,418 @@
+'use strict';
+
+const { app, BrowserWindow, Menu, dialog, ipcMain, shell } = require('electron');
+const fs = require('node:fs');
+const path = require('node:path');
+
+const {
+  resolveCliPath,
+  runJson,
+  runText,
+  runJsonl,
+  killProcessTree,
+} = require('./cli');
+
+app.setName('LuatOS Flasher');
+
+let mainWindow = null;
+let cliPath = null;
+let currentFlash = null;
+
+function createWindow() {
+  mainWindow = new BrowserWindow({
+    width: 1180,
+    height: 820,
+    minWidth: 940,
+    minHeight: 680,
+    backgroundColor: '#0b1020',
+    title: 'LuatOS Flasher',
+    titleBarStyle: process.platform === 'darwin' ? 'hiddenInset' : 'default',
+    trafficLightPosition: process.platform === 'darwin' ? { x: 16, y: 18 } : undefined,
+    webPreferences: {
+      preload: path.join(__dirname, 'preload.js'),
+      contextIsolation: true,
+      nodeIntegration: false,
+      sandbox: false,
+    },
+  });
+
+  mainWindow.loadFile(path.join(__dirname, '..', 'renderer', 'index.html'));
+
+  mainWindow.webContents.setWindowOpenHandler(({ url }) => {
+    if (/^https?:\/\//i.test(url)) shell.openExternal(url);
+    return { action: 'deny' };
+  });
+  mainWindow.webContents.on('will-navigate', (event, url) => {
+    const current = mainWindow.webContents.getURL();
+    if (url !== current) event.preventDefault();
+  });
+
+  if (process.argv.includes('--dev')) {
+    mainWindow.webContents.openDevTools({ mode: 'detach' });
+  }
+
+  // Dev-only firmware smoke test:
+  //   npx electron . --selftest-soc=fixture.soc
+  const selftestArg = process.argv.find((arg) => arg.startsWith('--selftest-soc='));
+  if (selftestArg) {
+    const socPath = selftestArg.slice('--selftest-soc='.length);
+    mainWindow.webContents.once('did-finish-load', () => {
+      setTimeout(async () => {
+        try {
+          await mainWindow.webContents.executeJavaScript(
+            `loadSoc(${JSON.stringify(socPath)})`,
+          );
+          await new Promise((resolve) => setTimeout(resolve, 2600));
+          const snapshot = await mainWindow.webContents.executeJavaScript(`({
+            fwPath: document.querySelector('#fw-path')?.textContent,
+            fwInfo: document.querySelector('#fw-info')?.innerText,
+            fwError: document.querySelector('#fw-error')?.textContent,
+            bootTip: document.querySelector('#boot-tip')?.innerText,
+            flashDisabled: document.querySelector('#btn-flash')?.disabled,
+            log: document.querySelector('#log')?.innerText.slice(-900)
+          })`);
+          console.log('SELFTEST', JSON.stringify(snapshot, null, 2));
+          const image = await mainWindow.webContents.capturePage();
+          fs.mkdirSync(path.resolve('dist'), { recursive: true });
+          fs.writeFileSync(path.resolve('dist', 'selftest.png'), image.toPNG());
+        } catch (error) {
+          console.error('selftest failed:', error);
+        } finally {
+          app.quit();
+        }
+      }, 1200);
+    });
+  }
+
+  // Dev-only end-to-end flash error-path test:
+  //   npx electron . --selftest-flash-port=COM99 --selftest-flash-soc=fixture.soc
+  const flashPortArg = process.argv.find((arg) => arg.startsWith('--selftest-flash-port='));
+  if (flashPortArg) {
+    const port = flashPortArg.slice('--selftest-flash-port='.length);
+    const socArg = process.argv.find((arg) => arg.startsWith('--selftest-flash-soc='));
+    const socPath = socArg ? socArg.slice('--selftest-flash-soc='.length) : '';
+    mainWindow.webContents.once('did-finish-load', () => {
+      setTimeout(async () => {
+        try {
+          await mainWindow.webContents.executeJavaScript(
+            `(async () => {
+              await loadSoc(${JSON.stringify(socPath)});
+              window.__luatos.state.port = ${JSON.stringify(port)};
+              updateFlashButton();
+              await window.__luatos.startFlash();
+            })()`,
+          );
+          await new Promise((resolve) => setTimeout(resolve, 4500));
+          const snapshot = await mainWindow.webContents.executeJavaScript(`({
+            stage: document.querySelector('#stage')?.textContent,
+            percent: document.querySelector('#percent')?.textContent,
+            message: document.querySelector('#message')?.textContent,
+            log: document.querySelector('#log')?.innerText.slice(-1200),
+            flashing: window.__luatos.state.isFlashing
+          })`);
+          console.log('FLASHTEST', JSON.stringify(snapshot, null, 2));
+        } catch (error) {
+          console.error('flashtest failed:', error);
+        } finally {
+          app.quit();
+        }
+      }, 1200);
+    });
+  }
+
+  // Dev-only visual smoke test:
+  //   npx electron . --screenshot=dist/screenshot.png
+  const screenshotArg = process.argv.find((arg) => arg.startsWith('--screenshot='));
+  if (screenshotArg) {
+    const target = screenshotArg.slice('--screenshot='.length);
+    mainWindow.webContents.once('did-finish-load', () => {
+      setTimeout(async () => {
+        try {
+          const image = await mainWindow.webContents.capturePage();
+          fs.mkdirSync(path.dirname(path.resolve(target)), { recursive: true });
+          fs.writeFileSync(path.resolve(target), image.toPNG());
+          console.log(`screenshot: ${path.resolve(target)}`);
+        } catch (error) {
+          console.error('screenshot failed:', error);
+        } finally {
+          app.quit();
+        }
+      }, 2800);
+    });
+  }
+}
+
+function buildMenu() {
+  const isMac = process.platform === 'darwin';
+  const template = [
+    ...(isMac
+      ? [{
+          label: app.name,
+          submenu: [
+            { role: 'about' },
+            { type: 'separator' },
+            { role: 'services' },
+            { type: 'separator' },
+            { role: 'hide' },
+            { role: 'hideOthers' },
+            { role: 'unhide' },
+            { type: 'separator' },
+            { role: 'quit' },
+          ],
+        }]
+      : []),
+    {
+      label: '文件',
+      submenu: [
+        {
+          label: '打开固件…',
+          accelerator: 'CmdOrCtrl+O',
+          click: () => mainWindow?.webContents.send('menu:open-soc'),
+        },
+        {
+          label: '保存日志…',
+          accelerator: 'CmdOrCtrl+S',
+          click: () => mainWindow?.webContents.send('menu:save-log'),
+        },
+        { type: 'separator' },
+        isMac ? { role: 'close' } : { role: 'quit' },
+      ],
+    },
+    {
+      label: '编辑',
+      submenu: [
+        { role: 'undo' },
+        { role: 'redo' },
+        { type: 'separator' },
+        { role: 'cut' },
+        { role: 'copy' },
+        { role: 'paste' },
+        { role: 'selectAll' },
+      ],
+    },
+    {
+      label: '视图',
+      submenu: [
+        { role: 'reload' },
+        { role: 'forceReload' },
+        ...(process.argv.includes('--dev') ? [{ role: 'toggleDevTools' }] : []),
+        { type: 'separator' },
+        { role: 'resetZoom' },
+        { role: 'zoomIn' },
+        { role: 'zoomOut' },
+        { type: 'separator' },
+        { role: 'togglefullscreen' },
+      ],
+    },
+    {
+      label: '帮助',
+      submenu: [
+        {
+          label: 'LuatOS 文档',
+          click: () => shell.openExternal('https://wiki.luatos.com/'),
+        },
+        {
+          label: 'luatos-cli 项目',
+          click: () => shell.openExternal('https://github.com/wendal/luatos-cli'),
+        },
+      ],
+    },
+  ];
+  Menu.setApplicationMenu(Menu.buildFromTemplate(template));
+}
+
+async function getCliInfo() {
+  cliPath = resolveCliPath(app);
+  try {
+    const versionText = await runText(cliPath, ['--version'], { timeoutMs: 10000 });
+    const version = versionText.replace(/^luatos-cli\s*/i, '').trim();
+    let models = [];
+    try {
+      const guide = await runJson(cliPath, ['--format', 'json', 'guide', 'models'], { timeoutMs: 15000 });
+      models = guide?.data?.models ?? [];
+    } catch {
+      // A missing guide is not fatal: the flash UI can still work.
+    }
+    return { ok: true, path: cliPath, version, models };
+  } catch (error) {
+    return { ok: false, path: cliPath, error: String(error.message || error) };
+  }
+}
+
+function normalizeSocInfo(data) {
+  const romFiles = Array.isArray(data?.rom?.files)
+    ? data.rom.files.map((entry) => entry?.name || entry?.file).filter(Boolean)
+    : [];
+  const files = romFiles.length
+    ? romFiles
+    : [data?.rom?.file, data?.script?.file].filter(Boolean);
+
+  return {
+    chip: data?.chip?.type || 'unknown',
+    version: data?.version ?? null,
+    romFile: data?.rom?.file || null,
+    scriptFile: data?.script?.file || null,
+    files,
+    raw: data,
+  };
+}
+
+async function startFlash(options, sender) {
+  const { socPath, port, mode = 'full', scriptDir, baud, tailLogSecs = 0, rtsReset = false } = options || {};
+
+  if (!socPath || !fs.existsSync(socPath)) {
+    throw new Error('固件文件不存在,请重新选择 .soc 文件');
+  }
+  if (!port) {
+    throw new Error('请选择串口');
+  }
+  if (mode === 'script' && !scriptDir) {
+    throw new Error('“仅刷脚本区”需要选择一个脚本目录');
+  }
+  if (currentFlash) {
+    throw new Error('已有烧录任务正在运行');
+  }
+
+  const args = ['--format', 'jsonl'];
+  args.push('flash');
+  args.push(mode === 'script' ? 'script' : 'run');
+  args.push('--soc', socPath, '--port', port);
+
+  if (scriptDir) args.push('--script', scriptDir);
+  if (baud) args.push('--baud', String(baud));
+  // `flash script` does not expose --tail-log-secs in luatos-cli 1.11.
+  if (mode !== 'script' && tailLogSecs && Number(tailLogSecs) > 0) {
+    args.push('--tail-log-secs', String(Number(tailLogSecs)));
+  }
+  if (rtsReset) args.push('--rts-reset');
+
+  const commandLine = `${path.basename(cliPath)} ${args.join(' ')}`;
+  sender.send('flash:started', { commandLine, port, socPath, mode });
+
+  const childHolder = {};
+  try {
+    const result = await runJsonl(
+      cliPath,
+      args,
+      {
+        onEvent: (event) => sender.send('flash:event', event),
+        onLine: (line, source) => sender.send('flash:line', { line, source }),
+        onExit: ({ code, signal }) => sender.send('flash:exit', { code, signal }),
+      },
+      {
+        onChild: (child) => {
+          childHolder.child = child;
+          currentFlash = child;
+        },
+      },
+    );
+    return { ok: result.code === 0, code: result.code, signal: result.signal };
+  } catch (error) {
+    sender.send('flash:exit', { code: -1, signal: null, error: String(error.message || error) });
+    throw error;
+  } finally {
+    currentFlash = null;
+  }
+}
+
+ipcMain.handle('cli:info', async () => getCliInfo());
+
+ipcMain.handle('serial:list', async () => {
+  cliPath = cliPath || resolveCliPath(app);
+  try {
+    const result = await runJson(cliPath, ['--format', 'json', 'serial', 'list'], { timeoutMs: 12000 });
+    return { ok: true, ports: result?.data ?? [] };
+  } catch (error) {
+    return { ok: false, ports: [], error: String(error.message || error) };
+  }
+});
+
+ipcMain.handle('soc:info', async (_event, socPath) => {
+  cliPath = cliPath || resolveCliPath(app);
+  if (!socPath || !fs.existsSync(socPath)) {
+    return { ok: false, error: '文件不存在' };
+  }
+  try {
+    const result = await runJson(cliPath, ['--format', 'json', 'soc', 'info', socPath], { timeoutMs: 20000 });
+    return { ok: true, info: normalizeSocInfo(result?.data), raw: result?.data };
+  } catch (error) {
+    return { ok: false, error: String(error.message || error) };
+  }
+});
+
+ipcMain.handle('flash:start', async (event, options) => {
+  cliPath = cliPath || resolveCliPath(app);
+  try {
+    return await startFlash(options, event.sender);
+  } catch (error) {
+    return { ok: false, error: String(error.message || error) };
+  }
+});
+
+ipcMain.handle('flash:cancel', async () => {
+  if (!currentFlash) return { ok: false, error: '没有正在运行的烧录任务' };
+  killProcessTree(currentFlash);
+  return { ok: true };
+});
+
+ipcMain.handle('dialog:open-soc', async () => {
+  const result = await dialog.showOpenDialog(mainWindow, {
+    title: '选择 LuatOS 固件',
+    properties: ['openFile'],
+    filters: [
+      { name: 'LuatOS 固件', extensions: ['soc'] },
+      { name: '所有文件', extensions: ['*'] },
+    ],
+  });
+  if (result.canceled || !result.filePaths?.length) return null;
+  return result.filePaths[0];
+});
+
+ipcMain.handle('dialog:open-script-dir', async () => {
+  const result = await dialog.showOpenDialog(mainWindow, {
+    title: '选择脚本目录',
+    properties: ['openDirectory'],
+  });
+  if (result.canceled || !result.filePaths?.length) return null;
+  return result.filePaths[0];
+});
+
+ipcMain.handle('dialog:save-log', async (_event, content) => {
+  const result = await dialog.showSaveDialog(mainWindow, {
+    title: '保存烧录日志',
+    defaultPath: `luatos-flash-${new Date().toISOString().replace(/[:.]/g, '-')}.log`,
+    filters: [{ name: '日志文件', extensions: ['log', 'txt'] }],
+  });
+  if (result.canceled || !result.filePath) return { ok: false };
+  await fs.promises.writeFile(result.filePath, String(content ?? ''), 'utf8');
+  return { ok: true, path: result.filePath };
+});
+
+ipcMain.handle('shell:open-external', async (_event, url) => {
+  if (typeof url === 'string' && /^https?:\/\//i.test(url)) {
+    await shell.openExternal(url);
+  }
+});
+
+app.whenReady().then(() => {
+  cliPath = resolveCliPath(app);
+  app.setAboutPanelOptions({
+    applicationName: 'LuatOS Flasher',
+    applicationVersion: app.getVersion(),
+    credits: 'Flash engine: luatos-cli (MIT)\nUI: Electron',
+  });
+  buildMenu();
+  createWindow();
+
+  app.on('activate', () => {
+    if (BrowserWindow.getAllWindows().length === 0) createWindow();
+  });
+});
+
+app.on('window-all-closed', () => {
+  if (process.platform !== 'darwin') app.quit();
+});
+
+app.on('before-quit', () => {
+  if (currentFlash) killProcessTree(currentFlash);
+});

+ 55 - 0
luatools-mac/electron/preload.js

@@ -0,0 +1,55 @@
+'use strict';
+
+const { contextBridge, ipcRenderer, webUtils } = require('electron');
+
+contextBridge.exposeInMainWorld('api', {
+  getInfo: () => ipcRenderer.invoke('cli:info'),
+  listPorts: () => ipcRenderer.invoke('serial:list'),
+  socInfo: (socPath) => ipcRenderer.invoke('soc:info', socPath),
+  startFlash: (options) => ipcRenderer.invoke('flash:start', options),
+  cancelFlash: () => ipcRenderer.invoke('flash:cancel'),
+  openSocDialog: () => ipcRenderer.invoke('dialog:open-soc'),
+  openScriptDirDialog: () => ipcRenderer.invoke('dialog:open-script-dir'),
+  saveLog: (content) => ipcRenderer.invoke('dialog:save-log', content),
+  openExternal: (url) => ipcRenderer.invoke('shell:open-external', url),
+
+  // Electron 32+ removed File.path; this is the supported replacement.
+  getPathForFile: (file) => {
+    try {
+      return webUtils.getPathForFile(file);
+    } catch {
+      return '';
+    }
+  },
+
+  onFlashEvent: (callback) => {
+    const handler = (_event, payload) => callback(payload);
+    ipcRenderer.on('flash:event', handler);
+    return () => ipcRenderer.removeListener('flash:event', handler);
+  },
+  onFlashLine: (callback) => {
+    const handler = (_event, payload) => callback(payload);
+    ipcRenderer.on('flash:line', handler);
+    return () => ipcRenderer.removeListener('flash:line', handler);
+  },
+  onFlashStarted: (callback) => {
+    const handler = (_event, payload) => callback(payload);
+    ipcRenderer.on('flash:started', handler);
+    return () => ipcRenderer.removeListener('flash:started', handler);
+  },
+  onFlashExit: (callback) => {
+    const handler = (_event, payload) => callback(payload);
+    ipcRenderer.on('flash:exit', handler);
+    return () => ipcRenderer.removeListener('flash:exit', handler);
+  },
+  onMenuOpenSoc: (callback) => {
+    const handler = () => callback();
+    ipcRenderer.on('menu:open-soc', handler);
+    return () => ipcRenderer.removeListener('menu:open-soc', handler);
+  },
+  onMenuSaveLog: (callback) => {
+    const handler = () => callback();
+    ipcRenderer.on('menu:save-log', handler);
+    return () => ipcRenderer.removeListener('menu:save-log', handler);
+  },
+});

+ 3617 - 0
luatools-mac/package-lock.json

@@ -0,0 +1,3617 @@
+{
+  "name": "luatos-flasher",
+  "version": "0.1.0",
+  "lockfileVersion": 3,
+  "requires": true,
+  "packages": {
+    "": {
+      "name": "luatos-flasher",
+      "version": "0.1.0",
+      "license": "MIT",
+      "devDependencies": {
+        "cross-env": "^10.1.0",
+        "electron": "^45.3.0",
+        "electron-builder": "^26.18.0"
+      },
+      "engines": {
+        "node": ">=20"
+      }
+    },
+    "node_modules/@electron-internal/extract-zip": {
+      "version": "1.0.8",
+      "resolved": "https://registry.npmmirror.com/@electron-internal/extract-zip/-/extract-zip-1.0.8.tgz",
+      "integrity": "sha512-8iajeLFbzNwM0m3AsQZSZgYREWglAImyGvvFSWU34FgMW8sHlzdwj9QKvv9dgN7jMP591EFUF/sLOC3Jl9YIjQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=22.12.0"
+      }
+    },
+    "node_modules/@electron/asar": {
+      "version": "3.4.1",
+      "resolved": "https://registry.npmmirror.com/@electron/asar/-/asar-3.4.1.tgz",
+      "integrity": "sha512-i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "commander": "^5.0.0",
+        "glob": "^7.1.6",
+        "minimatch": "^3.0.4"
+      },
+      "bin": {
+        "asar": "bin/asar.js"
+      },
+      "engines": {
+        "node": ">=10.12.0"
+      }
+    },
+    "node_modules/@electron/asar/node_modules/balanced-match": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@electron/asar/node_modules/brace-expansion": {
+      "version": "1.1.21",
+      "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.21.tgz",
+      "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "balanced-match": "^1.0.0",
+        "concat-map": "0.0.1"
+      }
+    },
+    "node_modules/@electron/asar/node_modules/minimatch": {
+      "version": "3.1.5",
+      "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.5.tgz",
+      "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "brace-expansion": "^1.1.7"
+      },
+      "engines": {
+        "node": "*"
+      }
+    },
+    "node_modules/@electron/fuses": {
+      "version": "1.8.0",
+      "resolved": "https://registry.npmmirror.com/@electron/fuses/-/fuses-1.8.0.tgz",
+      "integrity": "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "chalk": "^4.1.1",
+        "fs-extra": "^9.0.1",
+        "minimist": "^1.2.5"
+      },
+      "bin": {
+        "electron-fuses": "dist/bin.js"
+      }
+    },
+    "node_modules/@electron/fuses/node_modules/fs-extra": {
+      "version": "9.1.0",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-9.1.0.tgz",
+      "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "at-least-node": "^1.0.0",
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^6.0.1",
+        "universalify": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@electron/get": {
+      "version": "5.1.0",
+      "resolved": "https://registry.npmmirror.com/@electron/get/-/get-5.1.0.tgz",
+      "integrity": "sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "debug": "^4.1.1",
+        "env-paths": "^3.0.0",
+        "graceful-fs": "^4.2.11",
+        "progress": "^2.0.3",
+        "semver": "^7.6.3",
+        "sumchecker": "^3.0.1"
+      },
+      "engines": {
+        "node": ">=22.12.0"
+      },
+      "optionalDependencies": {
+        "undici": "^7.24.4"
+      }
+    },
+    "node_modules/@electron/notarize": {
+      "version": "2.5.0",
+      "resolved": "https://registry.npmmirror.com/@electron/notarize/-/notarize-2.5.0.tgz",
+      "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "debug": "^4.1.1",
+        "fs-extra": "^9.0.1",
+        "promise-retry": "^2.0.1"
+      },
+      "engines": {
+        "node": ">= 10.0.0"
+      }
+    },
+    "node_modules/@electron/notarize/node_modules/fs-extra": {
+      "version": "9.1.0",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-9.1.0.tgz",
+      "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "at-least-node": "^1.0.0",
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^6.0.1",
+        "universalify": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@electron/osx-sign": {
+      "version": "1.3.3",
+      "resolved": "https://registry.npmmirror.com/@electron/osx-sign/-/osx-sign-1.3.3.tgz",
+      "integrity": "sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==",
+      "dev": true,
+      "license": "BSD-2-Clause",
+      "dependencies": {
+        "compare-version": "^0.1.2",
+        "debug": "^4.3.4",
+        "fs-extra": "^10.0.0",
+        "isbinaryfile": "^4.0.8",
+        "minimist": "^1.2.6",
+        "plist": "^3.0.5"
+      },
+      "bin": {
+        "electron-osx-flat": "bin/electron-osx-flat.js",
+        "electron-osx-sign": "bin/electron-osx-sign.js"
+      },
+      "engines": {
+        "node": ">=12.0.0"
+      }
+    },
+    "node_modules/@electron/osx-sign/node_modules/isbinaryfile": {
+      "version": "4.0.10",
+      "resolved": "https://registry.npmmirror.com/isbinaryfile/-/isbinaryfile-4.0.10.tgz",
+      "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 8.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/gjtorikian/"
+      }
+    },
+    "node_modules/@electron/rebuild": {
+      "version": "4.2.1",
+      "resolved": "https://registry.npmmirror.com/@electron/rebuild/-/rebuild-4.2.1.tgz",
+      "integrity": "sha512-IS4pG3BysRrCLJ8xTAfvg+IQDbiUoAzdJy2SfjcYKnLDy5DpCdjnPdhS5Zf5UMfrkB24xu0KC+TqcOxg+eG+6w==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@malept/cross-spawn-promise": "^2.0.0",
+        "debug": "^4.1.1",
+        "node-abi": "^4.2.0",
+        "node-api-version": "^0.2.1",
+        "node-gyp": "^12.2.0",
+        "read-binary-file-arch": "^1.0.6"
+      },
+      "bin": {
+        "electron-rebuild": "lib/cli.js"
+      },
+      "engines": {
+        "node": ">=22.12.0"
+      }
+    },
+    "node_modules/@electron/universal": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmmirror.com/@electron/universal/-/universal-2.0.3.tgz",
+      "integrity": "sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@electron/asar": "^3.3.1",
+        "@malept/cross-spawn-promise": "^2.0.0",
+        "debug": "^4.3.1",
+        "dir-compare": "^4.2.0",
+        "fs-extra": "^11.1.1",
+        "minimatch": "^9.0.3",
+        "plist": "^3.1.0"
+      },
+      "engines": {
+        "node": ">=16.4"
+      }
+    },
+    "node_modules/@electron/universal/node_modules/balanced-match": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@electron/universal/node_modules/brace-expansion": {
+      "version": "2.1.7",
+      "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.1.7.tgz",
+      "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "balanced-match": "^1.0.0"
+      }
+    },
+    "node_modules/@electron/universal/node_modules/fs-extra": {
+      "version": "11.4.1",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.4.1.tgz",
+      "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^6.0.1",
+        "universalify": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=14.14"
+      }
+    },
+    "node_modules/@electron/universal/node_modules/minimatch": {
+      "version": "9.0.9",
+      "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.9.tgz",
+      "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "brace-expansion": "^2.0.2"
+      },
+      "engines": {
+        "node": ">=16 || 14 >=14.17"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/isaacs"
+      }
+    },
+    "node_modules/@electron/windows-sign": {
+      "version": "1.2.2",
+      "resolved": "https://registry.npmmirror.com/@electron/windows-sign/-/windows-sign-1.2.2.tgz",
+      "integrity": "sha512-dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==",
+      "dev": true,
+      "license": "BSD-2-Clause",
+      "optional": true,
+      "peer": true,
+      "dependencies": {
+        "cross-dirname": "^0.1.0",
+        "debug": "^4.3.4",
+        "fs-extra": "^11.1.1",
+        "minimist": "^1.2.8",
+        "postject": "^1.0.0-alpha.6"
+      },
+      "bin": {
+        "electron-windows-sign": "bin/electron-windows-sign.js"
+      },
+      "engines": {
+        "node": ">=14.14"
+      }
+    },
+    "node_modules/@electron/windows-sign/node_modules/fs-extra": {
+      "version": "11.4.1",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.4.1.tgz",
+      "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "peer": true,
+      "dependencies": {
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^6.0.1",
+        "universalify": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=14.14"
+      }
+    },
+    "node_modules/@epic-web/invariant": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/@epic-web/invariant/-/invariant-1.0.0.tgz",
+      "integrity": "sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@isaacs/fs-minipass": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmmirror.com/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",
+      "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "minipass": "^7.0.4"
+      },
+      "engines": {
+        "node": ">=18.0.0"
+      }
+    },
+    "node_modules/@malept/cross-spawn-promise": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmmirror.com/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz",
+      "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "individual",
+          "url": "https://github.com/sponsors/malept"
+        },
+        {
+          "type": "tidelift",
+          "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund"
+        }
+      ],
+      "license": "Apache-2.0",
+      "dependencies": {
+        "cross-spawn": "^7.0.1"
+      },
+      "engines": {
+        "node": ">= 12.13.0"
+      }
+    },
+    "node_modules/@malept/flatpak-bundler": {
+      "version": "0.4.0",
+      "resolved": "https://registry.npmmirror.com/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz",
+      "integrity": "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "debug": "^4.1.1",
+        "fs-extra": "^9.0.0",
+        "lodash": "^4.17.15",
+        "tmp-promise": "^3.0.2"
+      },
+      "engines": {
+        "node": ">= 10.0.0"
+      }
+    },
+    "node_modules/@malept/flatpak-bundler/node_modules/fs-extra": {
+      "version": "9.1.0",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-9.1.0.tgz",
+      "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "at-least-node": "^1.0.0",
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^6.0.1",
+        "universalify": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@noble/hashes": {
+      "version": "1.8.0",
+      "resolved": "https://registry.npmmirror.com/@noble/hashes/-/hashes-1.8.0.tgz",
+      "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": "^14.21.3 || >=16"
+      },
+      "funding": {
+        "url": "https://paulmillr.com/funding/"
+      }
+    },
+    "node_modules/@peculiar/asn1-schema": {
+      "version": "2.11.1",
+      "resolved": "https://registry.npmmirror.com/@peculiar/asn1-schema/-/asn1-schema-2.11.1.tgz",
+      "integrity": "sha512-jaU9OaCcbZUdyXx9hMETZB9xoNmxTGjOGFqd3cOwKFkpKnyKd9WxF3uqj4PvX4cyOMP9bSdHg5YyML2qtx/d/g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@peculiar/utils": "^2.0.2",
+        "asn1js": "^3.0.10",
+        "tslib": "^2.8.1"
+      },
+      "engines": {
+        "node": ">=14"
+      }
+    },
+    "node_modules/@peculiar/json-schema": {
+      "version": "1.1.12",
+      "resolved": "https://registry.npmmirror.com/@peculiar/json-schema/-/json-schema-1.1.12.tgz",
+      "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "tslib": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=8.0.0"
+      }
+    },
+    "node_modules/@peculiar/utils": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmmirror.com/@peculiar/utils/-/utils-2.0.3.tgz",
+      "integrity": "sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "tslib": "^2.8.1"
+      }
+    },
+    "node_modules/@peculiar/webcrypto": {
+      "version": "1.7.2",
+      "resolved": "https://registry.npmmirror.com/@peculiar/webcrypto/-/webcrypto-1.7.2.tgz",
+      "integrity": "sha512-ktTSACRJ5WdpfjHjFT2EWJQQPacGv1cPCDfEbdmpAHOxdFiYqPe4lfnXGA3D8Dg9/0kHPYSvyRlgujIOVlTdvQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@peculiar/asn1-schema": "^2.7.0",
+        "@peculiar/json-schema": "^1.1.12",
+        "@peculiar/utils": "^2.0.2",
+        "tslib": "^2.8.1",
+        "webcrypto-core": "^1.9.2"
+      },
+      "engines": {
+        "node": ">=14.18.0"
+      }
+    },
+    "node_modules/@sindresorhus/is": {
+      "version": "4.6.0",
+      "resolved": "https://registry.npmmirror.com/@sindresorhus/is/-/is-4.6.0.tgz",
+      "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sindresorhus/is?sponsor=1"
+      }
+    },
+    "node_modules/@szmarczak/http-timer": {
+      "version": "4.0.6",
+      "resolved": "https://registry.npmmirror.com/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",
+      "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "defer-to-connect": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@types/cacheable-request": {
+      "version": "6.0.3",
+      "resolved": "https://registry.npmmirror.com/@types/cacheable-request/-/cacheable-request-6.0.3.tgz",
+      "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@types/http-cache-semantics": "*",
+        "@types/keyv": "^3.1.4",
+        "@types/node": "*",
+        "@types/responselike": "^1.0.0"
+      }
+    },
+    "node_modules/@types/debug": {
+      "version": "4.1.13",
+      "resolved": "https://registry.npmmirror.com/@types/debug/-/debug-4.1.13.tgz",
+      "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@types/ms": "*"
+      }
+    },
+    "node_modules/@types/fs-extra": {
+      "version": "9.0.13",
+      "resolved": "https://registry.npmmirror.com/@types/fs-extra/-/fs-extra-9.0.13.tgz",
+      "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/http-cache-semantics": {
+      "version": "4.2.0",
+      "resolved": "https://registry.npmmirror.com/@types/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz",
+      "integrity": "sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@types/keyv": {
+      "version": "3.1.4",
+      "resolved": "https://registry.npmmirror.com/@types/keyv/-/keyv-3.1.4.tgz",
+      "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/ms": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmmirror.com/@types/ms/-/ms-2.1.0.tgz",
+      "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@types/node": {
+      "version": "24.19.2",
+      "resolved": "https://registry.npmmirror.com/@types/node/-/node-24.19.2.tgz",
+      "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "undici-types": ">=7.24.0 <7.24.7"
+      }
+    },
+    "node_modules/@types/responselike": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmmirror.com/@types/responselike/-/responselike-1.0.3.tgz",
+      "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@xmldom/xmldom": {
+      "version": "0.8.15",
+      "resolved": "https://registry.npmmirror.com/@xmldom/xmldom/-/xmldom-0.8.15.tgz",
+      "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10.0.0"
+      }
+    },
+    "node_modules/abbrev": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmmirror.com/abbrev/-/abbrev-4.0.0.tgz",
+      "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==",
+      "dev": true,
+      "license": "ISC",
+      "engines": {
+        "node": "^20.17.0 || >=22.9.0"
+      }
+    },
+    "node_modules/agent-base": {
+      "version": "7.1.4",
+      "resolved": "https://registry.npmmirror.com/agent-base/-/agent-base-7.1.4.tgz",
+      "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 14"
+      }
+    },
+    "node_modules/ajv": {
+      "version": "8.20.0",
+      "resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.20.0.tgz",
+      "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "fast-deep-equal": "^3.1.3",
+        "fast-uri": "^3.0.1",
+        "json-schema-traverse": "^1.0.0",
+        "require-from-string": "^2.0.2"
+      },
+      "funding": {
+        "type": "github",
+        "url": "https://github.com/sponsors/epoberezkin"
+      }
+    },
+    "node_modules/ansi-regex": {
+      "version": "5.0.1",
+      "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+      "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/ansi-styles": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
+      "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "color-convert": "^2.0.1"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+      }
+    },
+    "node_modules/app-builder-lib": {
+      "version": "26.18.0",
+      "resolved": "https://registry.npmmirror.com/app-builder-lib/-/app-builder-lib-26.18.0.tgz",
+      "integrity": "sha512-lx+KkuCSZHcbECf4R3IAcC9VOFk0+cMUwljO63s5y8yqS1Lw0sRGmjPaWsPwP3zv3ohZYbMhUvjXeiQXXZhJXA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@electron/asar": "3.4.1",
+        "@electron/fuses": "^1.8.0",
+        "@electron/get": "^3.0.0",
+        "@electron/notarize": "2.5.0",
+        "@electron/osx-sign": "1.3.3",
+        "@electron/rebuild": "^4.2.1",
+        "@electron/universal": "2.0.3",
+        "@malept/flatpak-bundler": "^0.4.0",
+        "@noble/hashes": "^1.8.0",
+        "@peculiar/webcrypto": "^1.7.1",
+        "@types/fs-extra": "9.0.13",
+        "ajv": "^8.18.0",
+        "asn1js": "^3.0.10",
+        "async-exit-hook": "^2.0.1",
+        "builder-util": "26.16.0",
+        "builder-util-runtime": "9.7.0",
+        "chromium-pickle-js": "^0.2.0",
+        "ci-info": "4.3.1",
+        "debug": "^4.3.4",
+        "dotenv": "^16.4.5",
+        "dotenv-expand": "^11.0.6",
+        "ejs": "^3.1.8",
+        "electron-publish": "26.18.0",
+        "fs-extra": "^10.1.0",
+        "hosted-git-info": "^4.1.0",
+        "isbinaryfile": "^5.0.0",
+        "jiti": "^2.4.2",
+        "js-yaml": "^4.1.0",
+        "json5": "^2.2.3",
+        "lazy-val": "^1.0.5",
+        "minimatch": "^10.2.5",
+        "pkijs": "^3.4.0",
+        "plist": "3.1.0",
+        "proper-lockfile": "^4.1.2",
+        "resedit": "^1.7.0",
+        "semver": "~7.7.3",
+        "tar": "^7.5.7",
+        "temp-file": "^3.4.0",
+        "tiny-async-pool": "1.3.0",
+        "unzipper": "^0.12.3",
+        "which": "^5.0.0"
+      },
+      "engines": {
+        "node": ">=14.0.0"
+      },
+      "peerDependencies": {
+        "dmg-builder": "26.18.0",
+        "electron-builder-squirrel-windows": "26.18.0"
+      }
+    },
+    "node_modules/app-builder-lib/node_modules/@electron/get": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmmirror.com/@electron/get/-/get-3.1.0.tgz",
+      "integrity": "sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "debug": "^4.1.1",
+        "env-paths": "^2.2.0",
+        "fs-extra": "^8.1.0",
+        "got": "^11.8.5",
+        "progress": "^2.0.3",
+        "semver": "^6.2.0",
+        "sumchecker": "^3.0.1"
+      },
+      "engines": {
+        "node": ">=14"
+      },
+      "optionalDependencies": {
+        "global-agent": "^3.0.0"
+      }
+    },
+    "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/fs-extra": {
+      "version": "8.1.0",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-8.1.0.tgz",
+      "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^4.0.0",
+        "universalify": "^0.1.0"
+      },
+      "engines": {
+        "node": ">=6 <7 || >=8"
+      }
+    },
+    "node_modules/app-builder-lib/node_modules/@electron/get/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/app-builder-lib/node_modules/ci-info": {
+      "version": "4.3.1",
+      "resolved": "https://registry.npmmirror.com/ci-info/-/ci-info-4.3.1.tgz",
+      "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/sibiraj-s"
+        }
+      ],
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/app-builder-lib/node_modules/env-paths": {
+      "version": "2.2.1",
+      "resolved": "https://registry.npmmirror.com/env-paths/-/env-paths-2.2.1.tgz",
+      "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/app-builder-lib/node_modules/isexe": {
+      "version": "3.1.5",
+      "resolved": "https://registry.npmmirror.com/isexe/-/isexe-3.1.5.tgz",
+      "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "engines": {
+        "node": ">=18"
+      }
+    },
+    "node_modules/app-builder-lib/node_modules/jsonfile": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-4.0.0.tgz",
+      "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
+      "dev": true,
+      "license": "MIT",
+      "optionalDependencies": {
+        "graceful-fs": "^4.1.6"
+      }
+    },
+    "node_modules/app-builder-lib/node_modules/semver": {
+      "version": "7.7.4",
+      "resolved": "https://registry.npmmirror.com/semver/-/semver-7.7.4.tgz",
+      "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
+      "dev": true,
+      "license": "ISC",
+      "bin": {
+        "semver": "bin/semver.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/app-builder-lib/node_modules/universalify": {
+      "version": "0.1.2",
+      "resolved": "https://registry.npmmirror.com/universalify/-/universalify-0.1.2.tgz",
+      "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 4.0.0"
+      }
+    },
+    "node_modules/app-builder-lib/node_modules/which": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmmirror.com/which/-/which-5.0.0.tgz",
+      "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "isexe": "^3.1.1"
+      },
+      "bin": {
+        "node-which": "bin/which.js"
+      },
+      "engines": {
+        "node": "^18.17.0 || >=20.5.0"
+      }
+    },
+    "node_modules/argparse": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz",
+      "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+      "dev": true,
+      "license": "Python-2.0"
+    },
+    "node_modules/asn1js": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmmirror.com/asn1js/-/asn1js-3.1.0.tgz",
+      "integrity": "sha512-HWYi1THkOqguCiO+vwj09ZkQFD2kKEsejYHAYCtX0D80WVdoDnvRc9IukXX/jeb0T9NRWJnRtqwdbHltnFjwXA==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "dependencies": {
+        "pvtsutils": "^1.3.6",
+        "pvutils": "^1.2.0",
+        "tslib": "^2.8.1"
+      },
+      "engines": {
+        "node": ">=12.0.0"
+      }
+    },
+    "node_modules/async": {
+      "version": "3.2.6",
+      "resolved": "https://registry.npmmirror.com/async/-/async-3.2.6.tgz",
+      "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/async-exit-hook": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/async-exit-hook/-/async-exit-hook-2.0.1.tgz",
+      "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=0.12.0"
+      }
+    },
+    "node_modules/asynckit": {
+      "version": "0.4.0",
+      "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz",
+      "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/at-least-node": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/at-least-node/-/at-least-node-1.0.0.tgz",
+      "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
+      "dev": true,
+      "license": "ISC",
+      "engines": {
+        "node": ">= 4.0.0"
+      }
+    },
+    "node_modules/aws4": {
+      "version": "1.13.2",
+      "resolved": "https://registry.npmmirror.com/aws4/-/aws4-1.13.2.tgz",
+      "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/balanced-match": {
+      "version": "4.0.4",
+      "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-4.0.4.tgz",
+      "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": "18 || 20 || >=22"
+      }
+    },
+    "node_modules/base64-js": {
+      "version": "1.5.1",
+      "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz",
+      "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/feross"
+        },
+        {
+          "type": "patreon",
+          "url": "https://www.patreon.com/feross"
+        },
+        {
+          "type": "consulting",
+          "url": "https://feross.org/support"
+        }
+      ],
+      "license": "MIT"
+    },
+    "node_modules/bluebird": {
+      "version": "3.7.2",
+      "resolved": "https://registry.npmmirror.com/bluebird/-/bluebird-3.7.2.tgz",
+      "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/boolean": {
+      "version": "3.2.0",
+      "resolved": "https://registry.npmmirror.com/boolean/-/boolean-3.2.0.tgz",
+      "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==",
+      "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",
+      "dev": true,
+      "license": "MIT",
+      "optional": true
+    },
+    "node_modules/brace-expansion": {
+      "version": "5.0.12",
+      "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-5.0.12.tgz",
+      "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "balanced-match": "^4.0.2"
+      },
+      "engines": {
+        "node": "20 || >=22"
+      }
+    },
+    "node_modules/buffer-from": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz",
+      "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/builder-util": {
+      "version": "26.16.0",
+      "resolved": "https://registry.npmmirror.com/builder-util/-/builder-util-26.16.0.tgz",
+      "integrity": "sha512-RLyJhB7Si3YkzKR9ubQslWuXW3Vhs3CGe1i+SeixBZ0qTd1mk3XBmssvY22TlB6CS5blyko8Gu1JzpYk8UkYAg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@types/debug": "^4.1.6",
+        "builder-util-runtime": "9.7.0",
+        "chalk": "^4.1.2",
+        "cross-spawn": "^7.0.6",
+        "debug": "^4.3.4",
+        "fs-extra": "^10.1.0",
+        "http-proxy-agent": "^7.0.0",
+        "https-proxy-agent": "^7.0.0",
+        "js-yaml": "^4.1.0",
+        "sanitize-filename": "^1.6.3",
+        "source-map-support": "^0.5.19",
+        "stat-mode": "^1.0.0",
+        "temp-file": "^3.4.0",
+        "tiny-async-pool": "1.3.0"
+      },
+      "engines": {
+        "node": ">=14.0.0"
+      }
+    },
+    "node_modules/builder-util-runtime": {
+      "version": "9.7.0",
+      "resolved": "https://registry.npmmirror.com/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz",
+      "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "debug": "^4.3.4",
+        "sax": "^1.2.4"
+      },
+      "engines": {
+        "node": ">=12.0.0"
+      }
+    },
+    "node_modules/bytestreamjs": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/bytestreamjs/-/bytestreamjs-2.0.1.tgz",
+      "integrity": "sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/cacheable-lookup": {
+      "version": "5.0.4",
+      "resolved": "https://registry.npmmirror.com/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz",
+      "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10.6.0"
+      }
+    },
+    "node_modules/cacheable-request": {
+      "version": "7.0.4",
+      "resolved": "https://registry.npmmirror.com/cacheable-request/-/cacheable-request-7.0.4.tgz",
+      "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "clone-response": "^1.0.2",
+        "get-stream": "^5.1.0",
+        "http-cache-semantics": "^4.0.0",
+        "keyv": "^4.0.0",
+        "lowercase-keys": "^2.0.0",
+        "normalize-url": "^6.0.1",
+        "responselike": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/call-bind-apply-helpers": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+      "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "es-errors": "^1.3.0",
+        "function-bind": "^1.1.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/chalk": {
+      "version": "4.1.2",
+      "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
+      "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ansi-styles": "^4.1.0",
+        "supports-color": "^7.1.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/chalk?sponsor=1"
+      }
+    },
+    "node_modules/chownr": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmmirror.com/chownr/-/chownr-3.0.0.tgz",
+      "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "engines": {
+        "node": ">=18"
+      }
+    },
+    "node_modules/chromium-pickle-js": {
+      "version": "0.2.0",
+      "resolved": "https://registry.npmmirror.com/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz",
+      "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/ci-info": {
+      "version": "4.5.0",
+      "resolved": "https://registry.npmmirror.com/ci-info/-/ci-info-4.5.0.tgz",
+      "integrity": "sha512-d1uM8k5UZEyPza1n/MG3ko8nKupKN0KJpFsipgPcgaCCvV+IqIfJ+NzTjetlLM+UcXZx3+cLrNr76+eAO7G1Mw==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/sibiraj-s"
+        }
+      ],
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/cliui": {
+      "version": "8.0.1",
+      "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz",
+      "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "string-width": "^4.2.0",
+        "strip-ansi": "^6.0.1",
+        "wrap-ansi": "^7.0.0"
+      },
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/clone-response": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmmirror.com/clone-response/-/clone-response-1.0.3.tgz",
+      "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "mimic-response": "^1.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/color-convert": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
+      "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "color-name": "~1.1.4"
+      },
+      "engines": {
+        "node": ">=7.0.0"
+      }
+    },
+    "node_modules/color-name": {
+      "version": "1.1.4",
+      "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
+      "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/combined-stream": {
+      "version": "1.0.8",
+      "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz",
+      "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "delayed-stream": "~1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/commander": {
+      "version": "5.1.0",
+      "resolved": "https://registry.npmmirror.com/commander/-/commander-5.1.0.tgz",
+      "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 6"
+      }
+    },
+    "node_modules/compare-version": {
+      "version": "0.1.2",
+      "resolved": "https://registry.npmmirror.com/compare-version/-/compare-version-0.1.2.tgz",
+      "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/concat-map": {
+      "version": "0.0.1",
+      "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz",
+      "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/core-util-is": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz",
+      "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/cross-dirname": {
+      "version": "0.1.0",
+      "resolved": "https://registry.npmmirror.com/cross-dirname/-/cross-dirname-0.1.0.tgz",
+      "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "peer": true
+    },
+    "node_modules/cross-env": {
+      "version": "10.1.0",
+      "resolved": "https://registry.npmmirror.com/cross-env/-/cross-env-10.1.0.tgz",
+      "integrity": "sha512-GsYosgnACZTADcmEyJctkJIoqAhHjttw7RsFrVoJNXbsWWqaq6Ym+7kZjq6mS45O0jij6vtiReppKQEtqWy6Dw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@epic-web/invariant": "^1.0.0",
+        "cross-spawn": "^7.0.6"
+      },
+      "bin": {
+        "cross-env": "dist/bin/cross-env.js",
+        "cross-env-shell": "dist/bin/cross-env-shell.js"
+      },
+      "engines": {
+        "node": ">=20"
+      }
+    },
+    "node_modules/cross-spawn": {
+      "version": "7.0.6",
+      "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz",
+      "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "path-key": "^3.1.0",
+        "shebang-command": "^2.0.0",
+        "which": "^2.0.1"
+      },
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "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/decompress-response": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmmirror.com/decompress-response/-/decompress-response-6.0.0.tgz",
+      "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "mimic-response": "^3.1.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/decompress-response/node_modules/mimic-response": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmmirror.com/mimic-response/-/mimic-response-3.1.0.tgz",
+      "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/defer-to-connect": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz",
+      "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/define-data-property": {
+      "version": "1.1.4",
+      "resolved": "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz",
+      "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "dependencies": {
+        "es-define-property": "^1.0.0",
+        "es-errors": "^1.3.0",
+        "gopd": "^1.0.1"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/define-properties": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmmirror.com/define-properties/-/define-properties-1.2.1.tgz",
+      "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "dependencies": {
+        "define-data-property": "^1.0.1",
+        "has-property-descriptors": "^1.0.0",
+        "object-keys": "^1.1.1"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/delayed-stream": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
+      "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=0.4.0"
+      }
+    },
+    "node_modules/detect-node": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmmirror.com/detect-node/-/detect-node-2.1.0.tgz",
+      "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true
+    },
+    "node_modules/dir-compare": {
+      "version": "4.2.0",
+      "resolved": "https://registry.npmmirror.com/dir-compare/-/dir-compare-4.2.0.tgz",
+      "integrity": "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "minimatch": "^3.0.5",
+        "p-limit": "^3.1.0 "
+      }
+    },
+    "node_modules/dir-compare/node_modules/balanced-match": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/dir-compare/node_modules/brace-expansion": {
+      "version": "1.1.21",
+      "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.21.tgz",
+      "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "balanced-match": "^1.0.0",
+        "concat-map": "0.0.1"
+      }
+    },
+    "node_modules/dir-compare/node_modules/minimatch": {
+      "version": "3.1.5",
+      "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.5.tgz",
+      "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "brace-expansion": "^1.1.7"
+      },
+      "engines": {
+        "node": "*"
+      }
+    },
+    "node_modules/dmg-builder": {
+      "version": "26.18.0",
+      "resolved": "https://registry.npmmirror.com/dmg-builder/-/dmg-builder-26.18.0.tgz",
+      "integrity": "sha512-ozCGC54wi2C1RkS2v69y9lQxvoQ1Coh+iT8CmWiyY8y1ZuOKVvuNson2Hd+HEOs9+EZNNsOBbzKgQZ4SNqWd0w==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "app-builder-lib": "26.18.0",
+        "builder-util": "26.16.0",
+        "fs-extra": "^10.1.0",
+        "js-yaml": "^4.1.0"
+      }
+    },
+    "node_modules/dotenv": {
+      "version": "16.6.1",
+      "resolved": "https://registry.npmmirror.com/dotenv/-/dotenv-16.6.1.tgz",
+      "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
+      "dev": true,
+      "license": "BSD-2-Clause",
+      "engines": {
+        "node": ">=12"
+      },
+      "funding": {
+        "url": "https://dotenvx.com"
+      }
+    },
+    "node_modules/dotenv-expand": {
+      "version": "11.0.7",
+      "resolved": "https://registry.npmmirror.com/dotenv-expand/-/dotenv-expand-11.0.7.tgz",
+      "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==",
+      "dev": true,
+      "license": "BSD-2-Clause",
+      "dependencies": {
+        "dotenv": "^16.4.5"
+      },
+      "engines": {
+        "node": ">=12"
+      },
+      "funding": {
+        "url": "https://dotenvx.com"
+      }
+    },
+    "node_modules/dunder-proto": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz",
+      "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "call-bind-apply-helpers": "^1.0.1",
+        "es-errors": "^1.3.0",
+        "gopd": "^1.2.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/duplexer2": {
+      "version": "0.1.4",
+      "resolved": "https://registry.npmmirror.com/duplexer2/-/duplexer2-0.1.4.tgz",
+      "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "dependencies": {
+        "readable-stream": "^2.0.2"
+      }
+    },
+    "node_modules/ejs": {
+      "version": "3.1.10",
+      "resolved": "https://registry.npmmirror.com/ejs/-/ejs-3.1.10.tgz",
+      "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "jake": "^10.8.5"
+      },
+      "bin": {
+        "ejs": "bin/cli.js"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/electron": {
+      "version": "45.3.0",
+      "resolved": "https://registry.npmmirror.com/electron/-/electron-45.3.0.tgz",
+      "integrity": "sha512-JpSzTaZkNaai4B3pUSICIfXiKwl+a7XyvHpWmA3O7SZbWDXNgYSyc7cmhNhlAARMzNAh9nOdZq5DgTZ/T9rlfA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@electron-internal/extract-zip": "^1.0.1",
+        "@electron/get": "^5.0.0",
+        "@types/node": "^24.9.0"
+      },
+      "bin": {
+        "electron": "cli.js",
+        "install-electron": "install.js"
+      },
+      "engines": {
+        "node": ">= 22.12.0"
+      }
+    },
+    "node_modules/electron-builder": {
+      "version": "26.18.0",
+      "resolved": "https://registry.npmmirror.com/electron-builder/-/electron-builder-26.18.0.tgz",
+      "integrity": "sha512-ASgIuQnOq4RuD8jMhS9hI0LS3EMRT1I/M5R6utqifB/BHN80IcCjBdt+DED+NmNPvmBgEtrlExXZitNdA7kXOg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "app-builder-lib": "26.18.0",
+        "builder-util": "26.16.0",
+        "builder-util-runtime": "9.7.0",
+        "chalk": "^4.1.2",
+        "ci-info": "^4.2.0",
+        "dmg-builder": "26.18.0",
+        "fs-extra": "^10.1.0",
+        "lazy-val": "^1.0.5",
+        "simple-update-notifier": "2.0.0",
+        "yargs": "^17.6.2"
+      },
+      "bin": {
+        "electron-builder": "cli.js",
+        "install-app-deps": "install-app-deps.js"
+      },
+      "engines": {
+        "node": ">=14.0.0"
+      }
+    },
+    "node_modules/electron-builder-squirrel-windows": {
+      "version": "26.18.0",
+      "resolved": "https://registry.npmmirror.com/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.18.0.tgz",
+      "integrity": "sha512-a2elgTipboXNIsxqS1HOmHMGp4Pd3LJgIZOdIFTOskBSawvxKyZWYWQ1d7KKA4CtINSchYCYEKzhxRqiKZev9Q==",
+      "dev": true,
+      "license": "MIT",
+      "peer": true,
+      "dependencies": {
+        "app-builder-lib": "26.18.0",
+        "builder-util": "26.16.0",
+        "electron-winstaller": "5.4.0"
+      }
+    },
+    "node_modules/electron-publish": {
+      "version": "26.18.0",
+      "resolved": "https://registry.npmmirror.com/electron-publish/-/electron-publish-26.18.0.tgz",
+      "integrity": "sha512-MagnqaZSALSWjcdKu5HEVhYUZD/2BDL3q7XzrqWwub6gf/UfD3ItMgmthVDv9w5y9E0gH1C3JWqKaXwf6f4ROg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@types/fs-extra": "^9.0.11",
+        "aws4": "^1.13.2",
+        "builder-util": "26.16.0",
+        "builder-util-runtime": "9.7.0",
+        "chalk": "^4.1.2",
+        "form-data": "^4.0.5",
+        "fs-extra": "^10.1.0",
+        "lazy-val": "^1.0.5",
+        "mime": "^2.5.2"
+      }
+    },
+    "node_modules/electron-winstaller": {
+      "version": "5.4.0",
+      "resolved": "https://registry.npmmirror.com/electron-winstaller/-/electron-winstaller-5.4.0.tgz",
+      "integrity": "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==",
+      "dev": true,
+      "hasInstallScript": true,
+      "license": "MIT",
+      "peer": true,
+      "dependencies": {
+        "@electron/asar": "^3.2.1",
+        "debug": "^4.1.1",
+        "fs-extra": "^7.0.1",
+        "lodash": "^4.17.21",
+        "temp": "^0.9.0"
+      },
+      "engines": {
+        "node": ">=8.0.0"
+      },
+      "optionalDependencies": {
+        "@electron/windows-sign": "^1.1.2"
+      }
+    },
+    "node_modules/electron-winstaller/node_modules/fs-extra": {
+      "version": "7.0.1",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-7.0.1.tgz",
+      "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",
+      "dev": true,
+      "license": "MIT",
+      "peer": true,
+      "dependencies": {
+        "graceful-fs": "^4.1.2",
+        "jsonfile": "^4.0.0",
+        "universalify": "^0.1.0"
+      },
+      "engines": {
+        "node": ">=6 <7 || >=8"
+      }
+    },
+    "node_modules/electron-winstaller/node_modules/jsonfile": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-4.0.0.tgz",
+      "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
+      "dev": true,
+      "license": "MIT",
+      "peer": true,
+      "optionalDependencies": {
+        "graceful-fs": "^4.1.6"
+      }
+    },
+    "node_modules/electron-winstaller/node_modules/universalify": {
+      "version": "0.1.2",
+      "resolved": "https://registry.npmmirror.com/universalify/-/universalify-0.1.2.tgz",
+      "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
+      "dev": true,
+      "license": "MIT",
+      "peer": true,
+      "engines": {
+        "node": ">= 4.0.0"
+      }
+    },
+    "node_modules/emoji-regex": {
+      "version": "8.0.0",
+      "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+      "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/end-of-stream": {
+      "version": "1.4.5",
+      "resolved": "https://registry.npmmirror.com/end-of-stream/-/end-of-stream-1.4.5.tgz",
+      "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "once": "^1.4.0"
+      }
+    },
+    "node_modules/env-paths": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmmirror.com/env-paths/-/env-paths-3.0.0.tgz",
+      "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/err-code": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmmirror.com/err-code/-/err-code-2.0.3.tgz",
+      "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/es-define-property": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz",
+      "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/es-errors": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz",
+      "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/es-object-atoms": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
+      "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "es-errors": "^1.3.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/es-set-tostringtag": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmmirror.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+      "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "es-errors": "^1.3.0",
+        "get-intrinsic": "^1.2.6",
+        "has-tostringtag": "^1.0.2",
+        "hasown": "^2.0.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/es6-error": {
+      "version": "4.1.1",
+      "resolved": "https://registry.npmmirror.com/es6-error/-/es6-error-4.1.1.tgz",
+      "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true
+    },
+    "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/escape-string-regexp": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+      "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/exponential-backoff": {
+      "version": "3.1.3",
+      "resolved": "https://registry.npmmirror.com/exponential-backoff/-/exponential-backoff-3.1.3.tgz",
+      "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==",
+      "dev": true,
+      "license": "Apache-2.0"
+    },
+    "node_modules/fast-deep-equal": {
+      "version": "3.1.3",
+      "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+      "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/fast-uri": {
+      "version": "3.1.9",
+      "resolved": "https://registry.npmmirror.com/fast-uri/-/fast-uri-3.1.9.tgz",
+      "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/fastify"
+        },
+        {
+          "type": "opencollective",
+          "url": "https://opencollective.com/fastify"
+        }
+      ],
+      "license": "BSD-3-Clause"
+    },
+    "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/filelist": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmmirror.com/filelist/-/filelist-1.0.6.tgz",
+      "integrity": "sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "minimatch": "^5.0.1"
+      }
+    },
+    "node_modules/filelist/node_modules/balanced-match": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/filelist/node_modules/brace-expansion": {
+      "version": "2.1.7",
+      "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.1.7.tgz",
+      "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "balanced-match": "^1.0.0"
+      }
+    },
+    "node_modules/filelist/node_modules/minimatch": {
+      "version": "5.1.9",
+      "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-5.1.9.tgz",
+      "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "brace-expansion": "^2.0.1"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/form-data": {
+      "version": "4.0.6",
+      "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.6.tgz",
+      "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "asynckit": "^0.4.0",
+        "combined-stream": "^1.0.8",
+        "es-set-tostringtag": "^2.1.0",
+        "hasown": "^2.0.4",
+        "mime-types": "^2.1.35"
+      },
+      "engines": {
+        "node": ">= 6"
+      }
+    },
+    "node_modules/fs-extra": {
+      "version": "10.1.0",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-10.1.0.tgz",
+      "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^6.0.1",
+        "universalify": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/fs.realpath": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz",
+      "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+      "dev": true,
+      "license": "ISC"
+    },
+    "node_modules/function-bind": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz",
+      "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+      "dev": true,
+      "license": "MIT",
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/get-caller-file": {
+      "version": "2.0.5",
+      "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz",
+      "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+      "dev": true,
+      "license": "ISC",
+      "engines": {
+        "node": "6.* || 8.* || >= 10.*"
+      }
+    },
+    "node_modules/get-intrinsic": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+      "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "call-bind-apply-helpers": "^1.0.2",
+        "es-define-property": "^1.0.1",
+        "es-errors": "^1.3.0",
+        "es-object-atoms": "^1.1.1",
+        "function-bind": "^1.1.2",
+        "get-proto": "^1.0.1",
+        "gopd": "^1.2.0",
+        "has-symbols": "^1.1.0",
+        "hasown": "^2.0.2",
+        "math-intrinsics": "^1.1.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/get-proto": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz",
+      "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "dunder-proto": "^1.0.1",
+        "es-object-atoms": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/get-stream": {
+      "version": "5.2.0",
+      "resolved": "https://registry.npmmirror.com/get-stream/-/get-stream-5.2.0.tgz",
+      "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "pump": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/glob": {
+      "version": "7.2.3",
+      "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz",
+      "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+      "deprecated": "Glob versions prior to v9 are no longer supported",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "fs.realpath": "^1.0.0",
+        "inflight": "^1.0.4",
+        "inherits": "2",
+        "minimatch": "^3.1.1",
+        "once": "^1.3.0",
+        "path-is-absolute": "^1.0.0"
+      },
+      "engines": {
+        "node": "*"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/isaacs"
+      }
+    },
+    "node_modules/glob/node_modules/balanced-match": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/glob/node_modules/brace-expansion": {
+      "version": "1.1.21",
+      "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.21.tgz",
+      "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "balanced-match": "^1.0.0",
+        "concat-map": "0.0.1"
+      }
+    },
+    "node_modules/glob/node_modules/minimatch": {
+      "version": "3.1.5",
+      "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.5.tgz",
+      "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "brace-expansion": "^1.1.7"
+      },
+      "engines": {
+        "node": "*"
+      }
+    },
+    "node_modules/global-agent": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmmirror.com/global-agent/-/global-agent-3.0.0.tgz",
+      "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "optional": true,
+      "dependencies": {
+        "boolean": "^3.0.1",
+        "es6-error": "^4.1.1",
+        "matcher": "^3.0.0",
+        "roarr": "^2.15.3",
+        "semver": "^7.3.2",
+        "serialize-error": "^7.0.1"
+      },
+      "engines": {
+        "node": ">=10.0"
+      }
+    },
+    "node_modules/globalthis": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmmirror.com/globalthis/-/globalthis-1.0.4.tgz",
+      "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "dependencies": {
+        "define-properties": "^1.2.1",
+        "gopd": "^1.0.1"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/gopd": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz",
+      "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/got": {
+      "version": "11.8.6",
+      "resolved": "https://registry.npmmirror.com/got/-/got-11.8.6.tgz",
+      "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@sindresorhus/is": "^4.0.0",
+        "@szmarczak/http-timer": "^4.0.5",
+        "@types/cacheable-request": "^6.0.1",
+        "@types/responselike": "^1.0.0",
+        "cacheable-lookup": "^5.0.3",
+        "cacheable-request": "^7.0.2",
+        "decompress-response": "^6.0.0",
+        "http2-wrapper": "^1.0.0-beta.5.2",
+        "lowercase-keys": "^2.0.0",
+        "p-cancelable": "^2.0.0",
+        "responselike": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10.19.0"
+      },
+      "funding": {
+        "url": "https://github.com/sindresorhus/got?sponsor=1"
+      }
+    },
+    "node_modules/graceful-fs": {
+      "version": "4.2.11",
+      "resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.11.tgz",
+      "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+      "dev": true,
+      "license": "ISC"
+    },
+    "node_modules/has-flag": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
+      "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/has-property-descriptors": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
+      "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "dependencies": {
+        "es-define-property": "^1.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/has-symbols": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz",
+      "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/has-tostringtag": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+      "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "has-symbols": "^1.0.3"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/hasown": {
+      "version": "2.0.4",
+      "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.4.tgz",
+      "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "function-bind": "^1.1.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/hosted-git-info": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmmirror.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz",
+      "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "lru-cache": "^6.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/http-cache-semantics": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmmirror.com/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz",
+      "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==",
+      "dev": true,
+      "license": "BSD-2-Clause"
+    },
+    "node_modules/http-proxy-agent": {
+      "version": "7.0.2",
+      "resolved": "https://registry.npmmirror.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
+      "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "agent-base": "^7.1.0",
+        "debug": "^4.3.4"
+      },
+      "engines": {
+        "node": ">= 14"
+      }
+    },
+    "node_modules/http2-wrapper": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmmirror.com/http2-wrapper/-/http2-wrapper-1.0.3.tgz",
+      "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "quick-lru": "^5.1.1",
+        "resolve-alpn": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=10.19.0"
+      }
+    },
+    "node_modules/https-proxy-agent": {
+      "version": "7.0.6",
+      "resolved": "https://registry.npmmirror.com/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
+      "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "agent-base": "^7.1.2",
+        "debug": "4"
+      },
+      "engines": {
+        "node": ">= 14"
+      }
+    },
+    "node_modules/inflight": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz",
+      "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+      "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "once": "^1.3.0",
+        "wrappy": "1"
+      }
+    },
+    "node_modules/inherits": {
+      "version": "2.0.4",
+      "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz",
+      "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+      "dev": true,
+      "license": "ISC"
+    },
+    "node_modules/is-fullwidth-code-point": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+      "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/isarray": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz",
+      "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/isbinaryfile": {
+      "version": "5.0.7",
+      "resolved": "https://registry.npmmirror.com/isbinaryfile/-/isbinaryfile-5.0.7.tgz",
+      "integrity": "sha512-gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 18.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/gjtorikian/"
+      }
+    },
+    "node_modules/isexe": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz",
+      "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+      "dev": true,
+      "license": "ISC"
+    },
+    "node_modules/jake": {
+      "version": "10.9.4",
+      "resolved": "https://registry.npmmirror.com/jake/-/jake-10.9.4.tgz",
+      "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "async": "^3.2.6",
+        "filelist": "^1.0.4",
+        "picocolors": "^1.1.1"
+      },
+      "bin": {
+        "jake": "bin/cli.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/jiti": {
+      "version": "2.7.0",
+      "resolved": "https://registry.npmmirror.com/jiti/-/jiti-2.7.0.tgz",
+      "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
+      "dev": true,
+      "license": "MIT",
+      "bin": {
+        "jiti": "lib/jiti-cli.mjs"
+      }
+    },
+    "node_modules/js-yaml": {
+      "version": "4.3.2",
+      "resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.3.2.tgz",
+      "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/puzrin"
+        },
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/nodeca"
+        }
+      ],
+      "license": "MIT",
+      "dependencies": {
+        "argparse": "^2.0.1"
+      },
+      "bin": {
+        "js-yaml": "bin/js-yaml.js"
+      }
+    },
+    "node_modules/json-buffer": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz",
+      "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/json-schema-traverse": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+      "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/json-stringify-safe": {
+      "version": "5.0.1",
+      "resolved": "https://registry.npmmirror.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+      "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==",
+      "dev": true,
+      "license": "ISC",
+      "optional": true
+    },
+    "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/jsonfile": {
+      "version": "6.2.1",
+      "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-6.2.1.tgz",
+      "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "universalify": "^2.0.0"
+      },
+      "optionalDependencies": {
+        "graceful-fs": "^4.1.6"
+      }
+    },
+    "node_modules/keyv": {
+      "version": "4.5.4",
+      "resolved": "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz",
+      "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "json-buffer": "3.0.1"
+      }
+    },
+    "node_modules/lazy-val": {
+      "version": "1.0.5",
+      "resolved": "https://registry.npmmirror.com/lazy-val/-/lazy-val-1.0.5.tgz",
+      "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/lodash": {
+      "version": "4.18.1",
+      "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.18.1.tgz",
+      "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/lowercase-keys": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmmirror.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz",
+      "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/lru-cache": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz",
+      "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "yallist": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/matcher": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmmirror.com/matcher/-/matcher-3.0.0.tgz",
+      "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "dependencies": {
+        "escape-string-regexp": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/math-intrinsics": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+      "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/mime": {
+      "version": "2.6.0",
+      "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz",
+      "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",
+      "dev": true,
+      "license": "MIT",
+      "bin": {
+        "mime": "cli.js"
+      },
+      "engines": {
+        "node": ">=4.0.0"
+      }
+    },
+    "node_modules/mime-db": {
+      "version": "1.52.0",
+      "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
+      "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/mime-types": {
+      "version": "2.1.35",
+      "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
+      "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "mime-db": "1.52.0"
+      },
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/mimic-response": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmmirror.com/mimic-response/-/mimic-response-1.0.1.tgz",
+      "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/minimatch": {
+      "version": "10.2.6",
+      "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-10.2.6.tgz",
+      "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "dependencies": {
+        "brace-expansion": "^5.0.8"
+      },
+      "engines": {
+        "node": "18 || 20 || >=22"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/isaacs"
+      }
+    },
+    "node_modules/minimist": {
+      "version": "1.2.8",
+      "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz",
+      "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+      "dev": true,
+      "license": "MIT",
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/minipass": {
+      "version": "7.1.3",
+      "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.1.3.tgz",
+      "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "engines": {
+        "node": ">=16 || 14 >=14.17"
+      }
+    },
+    "node_modules/minizlib": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmmirror.com/minizlib/-/minizlib-3.1.0.tgz",
+      "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "minipass": "^7.1.2"
+      },
+      "engines": {
+        "node": ">= 18"
+      }
+    },
+    "node_modules/mkdirp": {
+      "version": "0.5.6",
+      "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-0.5.6.tgz",
+      "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
+      "dev": true,
+      "license": "MIT",
+      "peer": true,
+      "dependencies": {
+        "minimist": "^1.2.6"
+      },
+      "bin": {
+        "mkdirp": "bin/cmd.js"
+      }
+    },
+    "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/node-abi": {
+      "version": "4.40.0",
+      "resolved": "https://registry.npmmirror.com/node-abi/-/node-abi-4.40.0.tgz",
+      "integrity": "sha512-GuvqvtrOk+AC27RidBxBsMzVNkwNl7PjHgc4NXbmdvSVLgIUjpaqcG1FjNRYnt2Yn9Ytq+Ln37XsBaglUcte/w==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "semver": "^7.6.3"
+      },
+      "engines": {
+        "node": ">=22.12.0"
+      }
+    },
+    "node_modules/node-api-version": {
+      "version": "0.2.1",
+      "resolved": "https://registry.npmmirror.com/node-api-version/-/node-api-version-0.2.1.tgz",
+      "integrity": "sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "semver": "^7.3.5"
+      }
+    },
+    "node_modules/node-gyp": {
+      "version": "12.4.0",
+      "resolved": "https://registry.npmmirror.com/node-gyp/-/node-gyp-12.4.0.tgz",
+      "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "env-paths": "^2.2.0",
+        "exponential-backoff": "^3.1.1",
+        "graceful-fs": "^4.2.6",
+        "nopt": "^9.0.0",
+        "proc-log": "^6.0.0",
+        "semver": "^7.3.5",
+        "tar": "^7.5.4",
+        "tinyglobby": "^0.2.12",
+        "undici": "^6.25.0",
+        "which": "^6.0.0"
+      },
+      "bin": {
+        "node-gyp": "bin/node-gyp.js"
+      },
+      "engines": {
+        "node": "^20.17.0 || >=22.9.0"
+      }
+    },
+    "node_modules/node-gyp/node_modules/env-paths": {
+      "version": "2.2.1",
+      "resolved": "https://registry.npmmirror.com/env-paths/-/env-paths-2.2.1.tgz",
+      "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/node-gyp/node_modules/isexe": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmmirror.com/isexe/-/isexe-4.0.0.tgz",
+      "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "engines": {
+        "node": ">=20"
+      }
+    },
+    "node_modules/node-gyp/node_modules/undici": {
+      "version": "6.29.1",
+      "resolved": "https://registry.npmmirror.com/undici/-/undici-6.29.1.tgz",
+      "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=18.17"
+      }
+    },
+    "node_modules/node-gyp/node_modules/which": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmmirror.com/which/-/which-6.0.1.tgz",
+      "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "isexe": "^4.0.0"
+      },
+      "bin": {
+        "node-which": "bin/which.js"
+      },
+      "engines": {
+        "node": "^20.17.0 || >=22.9.0"
+      }
+    },
+    "node_modules/node-int64": {
+      "version": "0.4.0",
+      "resolved": "https://registry.npmmirror.com/node-int64/-/node-int64-0.4.0.tgz",
+      "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/nopt": {
+      "version": "9.0.0",
+      "resolved": "https://registry.npmmirror.com/nopt/-/nopt-9.0.0.tgz",
+      "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "abbrev": "^4.0.0"
+      },
+      "bin": {
+        "nopt": "bin/nopt.js"
+      },
+      "engines": {
+        "node": "^20.17.0 || >=22.9.0"
+      }
+    },
+    "node_modules/normalize-url": {
+      "version": "6.1.0",
+      "resolved": "https://registry.npmmirror.com/normalize-url/-/normalize-url-6.1.0.tgz",
+      "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/object-keys": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz",
+      "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/once": {
+      "version": "1.4.0",
+      "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz",
+      "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "wrappy": "1"
+      }
+    },
+    "node_modules/p-cancelable": {
+      "version": "2.1.1",
+      "resolved": "https://registry.npmmirror.com/p-cancelable/-/p-cancelable-2.1.1.tgz",
+      "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/p-limit": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz",
+      "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "yocto-queue": "^0.1.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/path-is-absolute": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+      "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/path-key": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz",
+      "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/pe-library": {
+      "version": "0.4.1",
+      "resolved": "https://registry.npmmirror.com/pe-library/-/pe-library-0.4.1.tgz",
+      "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=12",
+        "npm": ">=6"
+      },
+      "funding": {
+        "type": "github",
+        "url": "https://github.com/sponsors/jet2jet"
+      }
+    },
+    "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/pkijs": {
+      "version": "3.4.3",
+      "resolved": "https://registry.npmmirror.com/pkijs/-/pkijs-3.4.3.tgz",
+      "integrity": "sha512-V9kOzaItwDgqlryhXysQsAXUEKi5O7kqWUaP3dXI7MLvkPqWWMb4wVb1QAtmEDCKI+XIAINsZoNKMFF7sZb1eg==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "workspaces": [
+        "website"
+      ],
+      "dependencies": {
+        "@noble/hashes": "1.8.0",
+        "asn1js": "^3.0.6",
+        "bytestreamjs": "^2.0.1",
+        "pvtsutils": "^1.3.6",
+        "pvutils": "^1.1.3",
+        "tslib": "^2.8.1"
+      },
+      "engines": {
+        "node": ">=16.0.0"
+      }
+    },
+    "node_modules/plist": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmmirror.com/plist/-/plist-3.1.0.tgz",
+      "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@xmldom/xmldom": "^0.8.8",
+        "base64-js": "^1.5.1",
+        "xmlbuilder": "^15.1.1"
+      },
+      "engines": {
+        "node": ">=10.4.0"
+      }
+    },
+    "node_modules/postject": {
+      "version": "1.0.0-alpha.6",
+      "resolved": "https://registry.npmmirror.com/postject/-/postject-1.0.0-alpha.6.tgz",
+      "integrity": "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "peer": true,
+      "dependencies": {
+        "commander": "^9.4.0"
+      },
+      "bin": {
+        "postject": "dist/cli.js"
+      },
+      "engines": {
+        "node": ">=14.0.0"
+      }
+    },
+    "node_modules/postject/node_modules/commander": {
+      "version": "9.5.0",
+      "resolved": "https://registry.npmmirror.com/commander/-/commander-9.5.0.tgz",
+      "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "peer": true,
+      "engines": {
+        "node": "^12.20.0 || >=14"
+      }
+    },
+    "node_modules/proc-log": {
+      "version": "6.1.0",
+      "resolved": "https://registry.npmmirror.com/proc-log/-/proc-log-6.1.0.tgz",
+      "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==",
+      "dev": true,
+      "license": "ISC",
+      "engines": {
+        "node": "^20.17.0 || >=22.9.0"
+      }
+    },
+    "node_modules/process-nextick-args": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
+      "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/progress": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmmirror.com/progress/-/progress-2.0.3.tgz",
+      "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=0.4.0"
+      }
+    },
+    "node_modules/promise-retry": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/promise-retry/-/promise-retry-2.0.1.tgz",
+      "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "err-code": "^2.0.2",
+        "retry": "^0.12.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/proper-lockfile": {
+      "version": "4.1.2",
+      "resolved": "https://registry.npmmirror.com/proper-lockfile/-/proper-lockfile-4.1.2.tgz",
+      "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "graceful-fs": "^4.2.4",
+        "retry": "^0.12.0",
+        "signal-exit": "^3.0.2"
+      }
+    },
+    "node_modules/pump": {
+      "version": "3.0.4",
+      "resolved": "https://registry.npmmirror.com/pump/-/pump-3.0.4.tgz",
+      "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "end-of-stream": "^1.1.0",
+        "once": "^1.3.1"
+      }
+    },
+    "node_modules/pvtsutils": {
+      "version": "1.3.6",
+      "resolved": "https://registry.npmmirror.com/pvtsutils/-/pvtsutils-1.3.6.tgz",
+      "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "tslib": "^2.8.1"
+      }
+    },
+    "node_modules/pvutils": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmmirror.com/pvutils/-/pvutils-1.2.0.tgz",
+      "integrity": "sha512-BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=16.0.0"
+      }
+    },
+    "node_modules/quick-lru": {
+      "version": "5.1.1",
+      "resolved": "https://registry.npmmirror.com/quick-lru/-/quick-lru-5.1.1.tgz",
+      "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/read-binary-file-arch": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmmirror.com/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz",
+      "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "debug": "^4.3.4"
+      },
+      "bin": {
+        "read-binary-file-arch": "cli.js"
+      }
+    },
+    "node_modules/readable-stream": {
+      "version": "2.3.8",
+      "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz",
+      "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "core-util-is": "~1.0.0",
+        "inherits": "~2.0.3",
+        "isarray": "~1.0.0",
+        "process-nextick-args": "~2.0.0",
+        "safe-buffer": "~5.1.1",
+        "string_decoder": "~1.1.1",
+        "util-deprecate": "~1.0.1"
+      }
+    },
+    "node_modules/require-directory": {
+      "version": "2.1.1",
+      "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz",
+      "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/require-from-string": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmmirror.com/require-from-string/-/require-from-string-2.0.2.tgz",
+      "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/resedit": {
+      "version": "1.7.2",
+      "resolved": "https://registry.npmmirror.com/resedit/-/resedit-1.7.2.tgz",
+      "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "pe-library": "^0.4.1"
+      },
+      "engines": {
+        "node": ">=12",
+        "npm": ">=6"
+      },
+      "funding": {
+        "type": "github",
+        "url": "https://github.com/sponsors/jet2jet"
+      }
+    },
+    "node_modules/resolve-alpn": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmmirror.com/resolve-alpn/-/resolve-alpn-1.2.1.tgz",
+      "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/responselike": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/responselike/-/responselike-2.0.1.tgz",
+      "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "lowercase-keys": "^2.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/retry": {
+      "version": "0.12.0",
+      "resolved": "https://registry.npmmirror.com/retry/-/retry-0.12.0.tgz",
+      "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 4"
+      }
+    },
+    "node_modules/rimraf": {
+      "version": "2.6.3",
+      "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-2.6.3.tgz",
+      "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
+      "deprecated": "Rimraf versions prior to v4 are no longer supported",
+      "dev": true,
+      "license": "ISC",
+      "peer": true,
+      "dependencies": {
+        "glob": "^7.1.3"
+      },
+      "bin": {
+        "rimraf": "bin.js"
+      }
+    },
+    "node_modules/roarr": {
+      "version": "2.15.4",
+      "resolved": "https://registry.npmmirror.com/roarr/-/roarr-2.15.4.tgz",
+      "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "optional": true,
+      "dependencies": {
+        "boolean": "^3.0.1",
+        "detect-node": "^2.0.4",
+        "globalthis": "^1.0.1",
+        "json-stringify-safe": "^5.0.1",
+        "semver-compare": "^1.0.0",
+        "sprintf-js": "^1.1.2"
+      },
+      "engines": {
+        "node": ">=8.0"
+      }
+    },
+    "node_modules/safe-buffer": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
+      "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/sanitize-filename": {
+      "version": "1.6.5",
+      "resolved": "https://registry.npmmirror.com/sanitize-filename/-/sanitize-filename-1.6.5.tgz",
+      "integrity": "sha512-+dVApt46/oAFWRP0KBSnYNLRw1peY7o/b12tmpllPNFpjfwkPuZut1+DiKaD9zYx5r2SHwc+XMLSBaDiyUJw3g==",
+      "dev": true,
+      "license": "WTFPL OR ISC",
+      "dependencies": {
+        "truncate-utf8-bytes": "^1.0.0"
+      }
+    },
+    "node_modules/sax": {
+      "version": "1.6.1",
+      "resolved": "https://registry.npmmirror.com/sax/-/sax-1.6.1.tgz",
+      "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "engines": {
+        "node": ">=11.0.0"
+      }
+    },
+    "node_modules/semver": {
+      "version": "7.8.6",
+      "resolved": "https://registry.npmmirror.com/semver/-/semver-7.8.6.tgz",
+      "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",
+      "dev": true,
+      "license": "ISC",
+      "bin": {
+        "semver": "bin/semver.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/semver-compare": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/semver-compare/-/semver-compare-1.0.0.tgz",
+      "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true
+    },
+    "node_modules/serialize-error": {
+      "version": "7.0.1",
+      "resolved": "https://registry.npmmirror.com/serialize-error/-/serialize-error-7.0.1.tgz",
+      "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "dependencies": {
+        "type-fest": "^0.13.1"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/shebang-command": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz",
+      "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "shebang-regex": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/shebang-regex": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
+      "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/signal-exit": {
+      "version": "3.0.7",
+      "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-3.0.7.tgz",
+      "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+      "dev": true,
+      "license": "ISC"
+    },
+    "node_modules/simple-update-notifier": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmmirror.com/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",
+      "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "semver": "^7.5.3"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/source-map": {
+      "version": "0.6.1",
+      "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz",
+      "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/source-map-support": {
+      "version": "0.5.21",
+      "resolved": "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz",
+      "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "buffer-from": "^1.0.0",
+        "source-map": "^0.6.0"
+      }
+    },
+    "node_modules/sprintf-js": {
+      "version": "1.1.3",
+      "resolved": "https://registry.npmmirror.com/sprintf-js/-/sprintf-js-1.1.3.tgz",
+      "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "optional": true
+    },
+    "node_modules/stat-mode": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/stat-mode/-/stat-mode-1.0.0.tgz",
+      "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 6"
+      }
+    },
+    "node_modules/string_decoder": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz",
+      "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "safe-buffer": "~5.1.0"
+      }
+    },
+    "node_modules/string-width": {
+      "version": "4.2.3",
+      "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
+      "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "emoji-regex": "^8.0.0",
+        "is-fullwidth-code-point": "^3.0.0",
+        "strip-ansi": "^6.0.1"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/strip-ansi": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+      "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ansi-regex": "^5.0.1"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/sumchecker": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmmirror.com/sumchecker/-/sumchecker-3.0.1.tgz",
+      "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "debug": "^4.1.0"
+      },
+      "engines": {
+        "node": ">= 8.0"
+      }
+    },
+    "node_modules/supports-color": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
+      "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "has-flag": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/tar": {
+      "version": "7.5.22",
+      "resolved": "https://registry.npmmirror.com/tar/-/tar-7.5.22.tgz",
+      "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "dependencies": {
+        "@isaacs/fs-minipass": "^4.0.0",
+        "chownr": "^3.0.0",
+        "minipass": "^7.1.2",
+        "minizlib": "^3.1.0",
+        "yallist": "^5.0.0"
+      },
+      "engines": {
+        "node": ">=18"
+      }
+    },
+    "node_modules/tar/node_modules/yallist": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmmirror.com/yallist/-/yallist-5.0.0.tgz",
+      "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "engines": {
+        "node": ">=18"
+      }
+    },
+    "node_modules/temp": {
+      "version": "0.9.4",
+      "resolved": "https://registry.npmmirror.com/temp/-/temp-0.9.4.tgz",
+      "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==",
+      "dev": true,
+      "license": "MIT",
+      "peer": true,
+      "dependencies": {
+        "mkdirp": "^0.5.1",
+        "rimraf": "~2.6.2"
+      },
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/temp-file": {
+      "version": "3.4.0",
+      "resolved": "https://registry.npmmirror.com/temp-file/-/temp-file-3.4.0.tgz",
+      "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "async-exit-hook": "^2.0.1",
+        "fs-extra": "^10.0.0"
+      }
+    },
+    "node_modules/tiny-async-pool": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmmirror.com/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz",
+      "integrity": "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "semver": "^5.5.0"
+      }
+    },
+    "node_modules/tiny-async-pool/node_modules/semver": {
+      "version": "5.7.3",
+      "resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.3.tgz",
+      "integrity": "sha512-kM18BPOqTi0+TB68703/GJRpAML5Me+IDQsR1J26YB3EFKKNEyHIVZuWDX7+WKQB3tHwDwgk24BfhdpWUbytvQ==",
+      "dev": true,
+      "license": "ISC",
+      "bin": {
+        "semver": "bin/semver"
+      }
+    },
+    "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/tmp": {
+      "version": "0.2.7",
+      "resolved": "https://registry.npmmirror.com/tmp/-/tmp-0.2.7.tgz",
+      "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=14.14"
+      }
+    },
+    "node_modules/tmp-promise": {
+      "version": "3.0.3",
+      "resolved": "https://registry.npmmirror.com/tmp-promise/-/tmp-promise-3.0.3.tgz",
+      "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "tmp": "^0.2.0"
+      }
+    },
+    "node_modules/truncate-utf8-bytes": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
+      "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==",
+      "dev": true,
+      "license": "WTFPL",
+      "dependencies": {
+        "utf8-byte-length": "^1.0.1"
+      }
+    },
+    "node_modules/tslib": {
+      "version": "2.9.1",
+      "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.9.1.tgz",
+      "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==",
+      "dev": true,
+      "license": "0BSD"
+    },
+    "node_modules/type-fest": {
+      "version": "0.13.1",
+      "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.13.1.tgz",
+      "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",
+      "dev": true,
+      "license": "(MIT OR CC0-1.0)",
+      "optional": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/undici": {
+      "version": "7.30.2",
+      "resolved": "https://registry.npmmirror.com/undici/-/undici-7.30.2.tgz",
+      "integrity": "sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==",
+      "dev": true,
+      "license": "MIT",
+      "optional": true,
+      "engines": {
+        "node": ">=20.18.1"
+      }
+    },
+    "node_modules/undici-types": {
+      "version": "7.24.6",
+      "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-7.24.6.tgz",
+      "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/universalify": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/universalify/-/universalify-2.0.1.tgz",
+      "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 10.0.0"
+      }
+    },
+    "node_modules/unzipper": {
+      "version": "0.12.5",
+      "resolved": "https://registry.npmmirror.com/unzipper/-/unzipper-0.12.5.tgz",
+      "integrity": "sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "bluebird": "~3.7.2",
+        "duplexer2": "~0.1.4",
+        "fs-extra": "11.3.1",
+        "graceful-fs": "^4.2.2",
+        "node-int64": "^0.4.0"
+      }
+    },
+    "node_modules/unzipper/node_modules/fs-extra": {
+      "version": "11.3.1",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.3.1.tgz",
+      "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^6.0.1",
+        "universalify": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=14.14"
+      }
+    },
+    "node_modules/utf8-byte-length": {
+      "version": "1.0.5",
+      "resolved": "https://registry.npmmirror.com/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz",
+      "integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==",
+      "dev": true,
+      "license": "(WTFPL OR MIT)"
+    },
+    "node_modules/util-deprecate": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz",
+      "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/webcrypto-core": {
+      "version": "1.9.2",
+      "resolved": "https://registry.npmmirror.com/webcrypto-core/-/webcrypto-core-1.9.2.tgz",
+      "integrity": "sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@peculiar/asn1-schema": "^2.7.0",
+        "@peculiar/json-schema": "^1.1.12",
+        "@peculiar/utils": "^2.0.2",
+        "asn1js": "^3.0.10",
+        "tslib": "^2.8.1"
+      }
+    },
+    "node_modules/which": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz",
+      "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "isexe": "^2.0.0"
+      },
+      "bin": {
+        "node-which": "bin/node-which"
+      },
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/wrap-ansi": {
+      "version": "7.0.0",
+      "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+      "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ansi-styles": "^4.0.0",
+        "string-width": "^4.1.0",
+        "strip-ansi": "^6.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+      }
+    },
+    "node_modules/wrappy": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz",
+      "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+      "dev": true,
+      "license": "ISC"
+    },
+    "node_modules/xmlbuilder": {
+      "version": "15.1.1",
+      "resolved": "https://registry.npmmirror.com/xmlbuilder/-/xmlbuilder-15.1.1.tgz",
+      "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=8.0"
+      }
+    },
+    "node_modules/y18n": {
+      "version": "5.0.8",
+      "resolved": "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz",
+      "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+      "dev": true,
+      "license": "ISC",
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/yallist": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz",
+      "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+      "dev": true,
+      "license": "ISC"
+    },
+    "node_modules/yargs": {
+      "version": "17.7.3",
+      "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.3.tgz",
+      "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "cliui": "^8.0.1",
+        "escalade": "^3.1.1",
+        "get-caller-file": "^2.0.5",
+        "require-directory": "^2.1.1",
+        "string-width": "^4.2.3",
+        "y18n": "^5.0.5",
+        "yargs-parser": "^21.1.1"
+      },
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/yargs-parser": {
+      "version": "21.1.1",
+      "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz",
+      "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+      "dev": true,
+      "license": "ISC",
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/yocto-queue": {
+      "version": "0.1.0",
+      "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz",
+      "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    }
+  }
+}

+ 122 - 0
luatools-mac/package.json

@@ -0,0 +1,122 @@
+{
+  "name": "luatos-flasher",
+  "version": "0.1.0",
+  "description": "LuatOS firmware flasher for macOS (also Windows/Linux)",
+  "main": "electron/main.js",
+  "author": "LuatOS Flasher",
+  "license": "MIT",
+  "engines": {
+    "node": ">=20"
+  },
+  "scripts": {
+    "start": "electron .",
+    "dev": "electron . --dev",
+    "test:smoke": "electron . --selftest-soc=tests/fixtures/air8101-dummy.soc",
+    "test:flash-error": "electron . --selftest-flash-port=COM99 --selftest-flash-soc=tests/fixtures/air8101-dummy.soc",
+    "fetch:cli": "node scripts/fetch-cli.mjs",
+    "dist:mac": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac --universal",
+    "dist:mac:signed": "electron-builder --mac --universal",
+    "dist:mac:arm64": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac --arm64",
+    "dist:mac:x64": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac --x64",
+    "dist:win": "electron-builder --win --x64",
+    "dist:linux": "electron-builder --linux --x64"
+  },
+  "devDependencies": {
+    "cross-env": "^10.1.0",
+    "electron": "^45.3.0",
+    "electron-builder": "^26.18.0"
+  },
+  "build": {
+    "appId": "com.luatos.flasher",
+    "productName": "LuatOS Flasher",
+    "asar": true,
+    "files": [
+      "electron/**/*",
+      "renderer/**/*",
+      "package.json",
+      "LICENSE",
+      "THIRD_PARTY_NOTICES.md"
+    ],
+    "directories": {
+      "output": "dist",
+      "buildResources": "build"
+    },
+    "mac": {
+      "category": "public.app-category.developer-tools",
+      "target": [
+        {
+          "target": "dmg",
+          "arch": [
+            "universal"
+          ]
+        },
+        {
+          "target": "zip",
+          "arch": [
+            "universal"
+          ]
+        }
+      ],
+      "icon": "build/icon.icns",
+      "hardenedRuntime": true,
+      "gatekeeperAssess": false,
+      "entitlements": "build/entitlements.mac.plist",
+      "entitlementsInherit": "build/entitlements.mac.plist",
+      "extraResources": [
+        {
+          "from": "resources/bin",
+          "to": "bin",
+          "filter": [
+            "**/*"
+          ]
+        }
+      ]
+    },
+    "dmg": {
+      "title": "LuatOS Flasher ${version}"
+    },
+    "win": {
+      "target": [
+        {
+          "target": "nsis",
+          "arch": [
+            "x64"
+          ]
+        }
+      ],
+      "icon": "build/icon.ico",
+      "extraResources": [
+        {
+          "from": "resources/win",
+          "to": "bin",
+          "filter": [
+            "**/*"
+          ]
+        }
+      ]
+    },
+    "nsis": {
+      "oneClick": false,
+      "allowToChangeInstallationDirectory": true
+    },
+    "linux": {
+      "target": [
+        "AppImage",
+        "deb"
+      ],
+      "category": "Development",
+      "icon": "build/icon.png",
+      "extraResources": [
+        {
+          "from": "resources/bin",
+          "to": "bin",
+          "filter": [
+            "**/*"
+          ]
+        }
+      ]
+    },
+    "afterPack": "scripts/after-pack.cjs"
+  }
+}
+

+ 659 - 0
luatools-mac/renderer/app.js

@@ -0,0 +1,659 @@
+'use strict';
+
+if (/^Mac/i.test(navigator.platform || '')) {
+  document.documentElement.classList.add('mac');
+}
+
+const platformName = /^Mac/i.test(navigator.platform || '')
+  ? 'macOS'
+  : /^Win/i.test(navigator.platform || '')
+    ? 'Windows'
+    : 'Linux';
+document.addEventListener('DOMContentLoaded', () => {
+  const subtitle = document.querySelector('#platform-subtitle');
+  if (subtitle) subtitle.textContent = `${platformName} · USB 串口烧录`;
+});
+
+const $ = (selector) => document.querySelector(selector);
+const $$ = (selector) => Array.from(document.querySelectorAll(selector));
+
+const state = {
+  cliOk: false,
+  ports: [],
+  port: '',
+  socPath: '',
+  socInfo: null,
+  mode: 'full',
+  scriptDir: '',
+  isFlashing: false,
+  finished: false,
+  logLines: [],
+};
+
+const els = {
+  cliStatus: $('#cli-status'),
+  cliPath: $('#cli-path'),
+  cliModal: $('#cli-modal'),
+  cliModalError: $('#cli-modal-error'),
+  portSelect: $('#port-select'),
+  portCount: $('#port-count'),
+  portHint: $('#port-hint'),
+  dropzone: $('#dropzone'),
+  fileInput: $('#file-input'),
+  fwPath: $('#fw-path'),
+  fwInfo: $('#fw-info'),
+  fwError: $('#fw-error'),
+  fwSize: $('#fw-size'),
+  mode: $('#mode'),
+  scriptDir: $('#script-dir'),
+  scriptOptional: $('#script-optional'),
+  baud: $('#baud'),
+  tailLog: $('#tail-log'),
+  rtsReset: $('#rts-reset'),
+  bootTip: $('#boot-tip'),
+  stage: $('#stage'),
+  percent: $('#percent'),
+  bar: $('.bar'),
+  barFill: $('#bar-fill'),
+  message: $('#message'),
+  flash: $('#btn-flash'),
+  flashTop: $('#btn-flash-top'),
+  cancel: $('#btn-cancel'),
+  log: $('#log'),
+  models: $('#models'),
+  modelCount: $('#model-count'),
+  toast: $('#toast'),
+};
+
+const CHIP_LABELS = {
+  bk72xx: 'BK7258 / Air8101',
+  air8101: 'BK7258 / Air8101',
+  air1601: 'CCM4211 / Air1601',
+  air1602: 'CCM4211 / Air1602',
+  ccm4211: 'CCM4211',
+  ec7xx: 'EC718 / Air8000',
+  ec618: 'EC618 / Air780E',
+  air8000: 'EC718 / Air8000',
+  air780epm: 'EC718 / Air780EPM',
+  air780ehm: 'EC718 / Air780EHM',
+  xt804: 'XT804',
+  air6208: 'XT804 / Air6208',
+  air101: 'XT804 / Air101',
+  air103: 'XT804 / Air103',
+  air601: 'XT804 / Air601',
+  air724ug: 'UIS8910 / Air724UG',
+  uis8910: 'UIS8910',
+  rda8910: 'UIS8910 / RDA8910',
+  sf32lb58: 'SF32LB58',
+  sf32lb52: 'SF32LB52',
+};
+
+const BOOT_TIPS = {
+  bk72xx:
+    'BK7258/Air8101 会自动用 DTR/RTS 进入 ROM Boot。若日志停在“Connecting”,按住 BOOT 再上电或复位一次。',
+  air8101:
+    'BK7258/Air8101 会自动用 DTR/RTS 进入 ROM Boot。若日志停在“Connecting”,按住 BOOT 再上电或复位一次。',
+  air1601:
+    'CCM4211 会自动握手并 RAM run。请确保 USB 线可传数据、供电稳定;失败时重新插拔再试。',
+  air1602:
+    'CCM4211 会自动握手并 RAM run。请确保 USB 线可传数据、供电稳定;失败时重新插拔再试。',
+  ccm4211:
+    'CCM4211 会自动握手并 RAM run。请确保 USB 线可传数据、供电稳定;失败时重新插拔再试。',
+  ec7xx:
+    'EC718/Air8000 需要进入 Boot。工具会自动尝试;若 10 秒内没有开始,按日志提示断电/重启。',
+  ec618:
+    'EC618/Air780E 需要进入 Boot。工具会自动尝试;若失败,按住 BOOT 再上电或复位。',
+  air8000:
+    'EC718/Air8000 需要进入 Boot。工具会自动尝试;若 10 秒内没有开始,按日志提示断电/重启。',
+  xt804:
+    'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air6208: 'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air101: 'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air103: 'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air601: 'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air724ug: 'UIS8910 需要进入 Boot。按日志提示操作;必要时断电后重新上电。',
+  uis8910: 'UIS8910 需要进入 Boot。按日志提示操作;必要时断电后重新上电。',
+  rda8910: 'UIS8910 需要进入 Boot。按日志提示操作;必要时断电后重新上电。',
+};
+
+function chipLabel(chip) {
+  if (!chip) return '未知芯片';
+  return CHIP_LABELS[String(chip).toLowerCase()] || chip;
+}
+
+function now() {
+  const d = new Date();
+  return d.toTimeString().slice(0, 8);
+}
+
+function showToast(message, kind = '') {
+  els.toast.textContent = message;
+  els.toast.className = `toast ${kind}`.trim();
+  clearTimeout(showToast._timer);
+  showToast._timer = setTimeout(() => els.toast.classList.add('hidden'), 3600);
+}
+
+function stripAnsi(text) {
+  // eslint-disable-next-line no-control-regex
+  return String(text).replace(/\u001b\[[0-9;]*m/g, '');
+}
+
+function log(text, level = 'info') {
+  if (!text) return;
+  text = stripAnsi(text);
+  const line = `[${now()}] ${text}`;
+  state.logLines.push(line);
+  if (state.logLines.length > 4000) state.logLines.splice(0, state.logLines.length - 4000);
+
+  const span = document.createElement('span');
+  span.className = 'line';
+
+  const time = document.createElement('span');
+  time.className = 't';
+  time.textContent = now();
+
+  const body = document.createElement('span');
+  body.className = level;
+  body.textContent = text;
+
+  span.append(time, body);
+  const atBottom = els.log.scrollHeight - els.log.scrollTop - els.log.clientHeight < 60;
+  els.log.appendChild(span);
+  if (atBottom) els.log.scrollTop = els.log.scrollHeight;
+}
+
+function clearLog() {
+  state.logLines = [];
+  els.log.textContent = '';
+}
+
+function setBar(percent, kind = '') {
+  const value = Math.max(0, Math.min(100, Number(percent) || 0));
+  els.barFill.style.width = `${value}%`;
+  els.bar.setAttribute('aria-valuenow', String(Math.round(value)));
+  els.percent.textContent = `${Math.round(value)}%`;
+  els.barFill.className = kind;
+}
+
+function setStatus(text, kind = '') {
+  els.cliStatus.textContent = text;
+  els.cliStatus.className = `pill ${kind}`.trim();
+}
+
+function setProgress(stage, percent, message) {
+  if (stage) els.stage.textContent = stage;
+  if (typeof percent === 'number' && percent >= 0) setBar(percent);
+  if (message) els.message.textContent = message;
+}
+
+function updateFlashButton() {
+  const needsScript = state.mode === 'script' && !state.scriptDir;
+  const blocked =
+    !state.cliOk ||
+    !state.port ||
+    !state.socPath ||
+    needsScript;
+
+  els.flash.disabled = blocked || state.isFlashing;
+
+  if (state.isFlashing) {
+    els.flashTop.disabled = false;
+    els.flashTop.textContent = '取消烧录';
+    els.flashTop.className = 'danger top-action';
+  } else {
+    els.flashTop.disabled = blocked;
+    els.flashTop.textContent = '开始烧录';
+    els.flashTop.className = 'primary top-action';
+  }
+}
+
+function renderModels(models) {
+  els.models.textContent = '';
+  const list = Array.isArray(models) ? models : [];
+  els.modelCount.textContent = list.length ? `${list.length} 类` : '';
+  if (!list.length) {
+    const p = document.createElement('p');
+    p.className = 'muted';
+    p.textContent = '未能读取型号列表,但烧录功能仍可尝试。';
+    els.models.append(p);
+    return;
+  }
+  for (const item of list) {
+    const box = document.createElement('div');
+    box.className = 'model';
+    const strong = document.createElement('strong');
+    strong.textContent = item.model || 'unknown';
+    const span = document.createElement('span');
+    const aliases = Array.isArray(item.aliases) ? item.aliases.join(' / ') : '';
+    span.textContent = aliases || item.description || '';
+    box.append(strong, span);
+    els.models.append(box);
+  }
+}
+
+function renderPorts() {
+  els.portSelect.textContent = '';
+  if (!state.ports.length) {
+    const option = document.createElement('option');
+    option.value = '';
+    option.textContent = '未发现串口';
+    els.portSelect.append(option);
+    state.port = '';
+    els.portCount.textContent = '0 个';
+    els.portHint.innerHTML =
+      '没有发现串口。请检查 USB 线是否支持数据传输;macOS 通常显示为 <code>/dev/cu.usbmodem*</code>。CH340/CP210x 可能需要安装驱动。';
+  } else {
+    for (const port of state.ports) {
+      const option = document.createElement('option');
+      option.value = port.port_name || '';
+      const bits = [port.port_name];
+      if (port.product) bits.push(port.product);
+      if (port.vid || port.pid) bits.push(`${port.vid || '----'}:${port.pid || '----'}`);
+      option.textContent = bits.join(' · ');
+      els.portSelect.append(option);
+    }
+    state.port = state.ports[0]?.port_name || '';
+    els.portSelect.value = state.port;
+    els.portCount.textContent = `${state.ports.length} 个`;
+    const first = state.ports[0];
+    els.portHint.textContent = first
+      ? `已发现 ${state.ports.length} 个串口,当前选择 ${first.port_name}${first.product ? `(${first.product})` : ''}。`
+      : '';
+  }
+  updateFlashButton();
+}
+
+async function refreshPorts(quiet = false) {
+  const button = $('#btn-refresh-ports');
+  button.disabled = true;
+  if (!quiet) els.portHint.textContent = '正在扫描串口…';
+  try {
+    const result = await window.api.listPorts();
+    if (!result.ok) {
+      state.ports = [];
+      renderPorts();
+      els.portHint.textContent = `扫描串口失败:${result.error}`;
+      log(`扫描串口失败:${result.error}`, 'err');
+      return;
+    }
+    state.ports = result.ports || [];
+    renderPorts();
+    if (!quiet) {
+      log(
+        state.ports.length
+          ? `发现 ${state.ports.length} 个串口:${state.ports.map((p) => p.port_name).join(', ')}`
+          : '没有发现串口',
+        state.ports.length ? 'ok' : 'warn',
+      );
+    }
+  } finally {
+    button.disabled = false;
+  }
+}
+
+function renderFwInfo(info) {
+  els.fwInfo.textContent = '';
+  if (!info) {
+    els.fwInfo.classList.add('hidden');
+    return;
+  }
+  const add = (label, value, kind = '') => {
+    if (value === undefined || value === null || value === '') return;
+    const chip = document.createElement('span');
+    chip.className = `chip ${kind}`.trim();
+    const strong = document.createElement('strong');
+    strong.textContent = `${label}:`;
+    const text = document.createElement('span');
+    text.textContent = String(value);
+    chip.append(strong, text);
+    els.fwInfo.append(chip);
+  };
+
+  add('芯片', chipLabel(info.chip), 'ok');
+  add('版本', info.version);
+  add('ROM', info.romFile);
+  add('脚本', info.scriptFile);
+  add('文件', `${info.files?.length || 0} 个`);
+  els.fwInfo.classList.remove('hidden');
+  els.fwSize.textContent = info.files?.length ? `${info.files.length} 个文件` : '';
+}
+
+function setBootTip(chip) {
+  const key = String(chip || '').toLowerCase();
+  const tip = BOOT_TIPS[key] || '按日志提示进入 Boot。若不确定,先插拔设备并点击“刷新串口”。';
+  els.bootTip.innerHTML = `<strong>进入 Boot:</strong>${tip}`;
+}
+
+async function loadSoc(socPath) {
+  if (!socPath) return;
+  if (!/\.soc$/i.test(socPath)) {
+    showToast('请选择 .soc 固件文件', 'err');
+    return;
+  }
+  state.socPath = socPath;
+  state.socInfo = null;
+  els.fwPath.textContent = socPath;
+  els.fwInfo.classList.add('hidden');
+  els.fwError.classList.add('hidden');
+  els.fwSize.textContent = '';
+  updateFlashButton();
+  log(`读取固件:${socPath}`);
+
+  const result = await window.api.socInfo(socPath);
+  if (!result.ok) {
+    els.fwError.textContent = result.error || '无法解析固件';
+    els.fwError.classList.remove('hidden');
+    log(`固件解析失败:${result.error}`, 'err');
+    showToast('固件解析失败', 'err');
+    state.socPath = '';
+    updateFlashButton();
+    return;
+  }
+
+  state.socInfo = result.info;
+  renderFwInfo(result.info);
+  setBootTip(result.info.chip);
+  log(`固件解析成功:${chipLabel(result.info.chip)}${result.info.version ? `,版本 ${result.info.version}` : ''}`, 'ok');
+  updateFlashButton();
+}
+
+async function refreshCli() {
+  setStatus('正在检测烧录内核…', 'pill-warn');
+  $('#btn-refresh-cli').disabled = true;
+  try {
+    const info = await window.api.getInfo();
+    if (info.ok) {
+      state.cliOk = true;
+      setStatus(`烧录内核 ${info.version || ''}`.trim(), 'pill-ok');
+      els.cliPath.textContent = info.path;
+      els.cliModal.classList.add('hidden');
+      renderModels(info.models);
+      log(`烧录内核已就绪:${info.version || 'luatos-cli'}`, 'ok');
+      if (info.path) log(`内核路径:${info.path}`, 'muted');
+    } else {
+      state.cliOk = false;
+      setStatus('未找到烧录内核', 'pill-bad');
+      els.cliPath.textContent = info.path || '未检测到 luatos-cli';
+      els.cliModalError.textContent = info.error || '';
+      els.cliModal.classList.remove('hidden');
+      log(`未找到烧录内核:${info.error || ''}`, 'err');
+    }
+  } finally {
+    $('#btn-refresh-cli').disabled = false;
+    updateFlashButton();
+  }
+}
+
+function setFlashing(active) {
+  state.isFlashing = active;
+  els.flash.classList.toggle('hidden', active);
+  els.cancel.classList.toggle('hidden', !active);
+  updateFlashButton();
+}
+
+function finishFlash(success, message) {
+  if (state.finished && !state.isFlashing) return;
+  state.finished = true;
+  setFlashing(false);
+  els.stage.textContent = success ? '烧录完成' : '烧录失败';
+  els.message.textContent = message || (success ? '固件已写入设备。' : '请查看日志后重试。');
+  setBar(success ? 100 : Number(els.percent.textContent.replace('%', '')) || 0, success ? 'success' : 'error');
+  log(message || (success ? '烧录完成' : '烧录失败'), success ? 'ok' : 'err');
+  showToast(success ? '烧录完成' : '烧录失败', success ? 'ok' : 'err');
+}
+
+async function startFlash() {
+  if (!state.cliOk) {
+    showToast('没有找到 luatos-cli', 'err');
+    return;
+  }
+  if (!state.socPath) {
+    showToast('请先选择 .soc 固件', 'err');
+    return;
+  }
+  if (!state.port) {
+    showToast('请先选择串口', 'err');
+    return;
+  }
+  if (state.mode === 'script' && !state.scriptDir) {
+    showToast('“仅刷脚本区”需要选择脚本目录', 'err');
+    return;
+  }
+
+  clearLog();
+  state.finished = false;
+  setFlashing(true);
+  setBar(0);
+  els.stage.textContent = '准备中…';
+  els.message.textContent = '正在启动 luatos-cli…';
+  log('开始烧录', 'cmd');
+  log(`固件:${state.socPath}`, 'muted');
+  log(`串口:${state.port} · 模式:${state.mode === 'script' ? '仅脚本区' : '全量'}`, 'muted');
+
+  try {
+    const result = await window.api.startFlash({
+      socPath: state.socPath,
+      port: state.port,
+      mode: state.mode,
+      scriptDir: state.scriptDir || null,
+      baud: els.baud.value || null,
+      tailLogSecs: Number(els.tailLog.value) || 0,
+      rtsReset: els.rtsReset.checked,
+    });
+    if (result && result.ok === false) {
+      finishFlash(false, result.error || '烧录失败');
+    } else if (result && result.ok === true) {
+      finishFlash(true, '烧录完成,设备已重启。');
+    }
+  } catch (error) {
+    finishFlash(false, String(error.message || error));
+  }
+}
+
+async function cancelFlash() {
+  const result = await window.api.cancelFlash();
+  if (result.ok) {
+    log('正在取消烧录…', 'warn');
+  } else {
+    showToast(result.error || '取消失败', 'err');
+  }
+}
+
+function bindEvents() {
+  $('#btn-refresh-cli').addEventListener('click', refreshCli);
+  $('#btn-refresh-ports').addEventListener('click', () => refreshPorts(false));
+  els.portSelect.addEventListener('change', () => {
+    state.port = els.portSelect.value;
+    updateFlashButton();
+  });
+
+  $('#btn-browse').addEventListener('click', async (event) => {
+    event.stopPropagation();
+    const path = await window.api.openSocDialog();
+    if (path) loadSoc(path);
+  });
+  els.dropzone.addEventListener('click', async () => {
+    const path = await window.api.openSocDialog();
+    if (path) loadSoc(path);
+  });
+  els.dropzone.addEventListener('keydown', (event) => {
+    if (event.key === 'Enter' || event.key === ' ') {
+      event.preventDefault();
+      els.dropzone.click();
+    }
+  });
+  els.fileInput.addEventListener('change', () => {
+    const file = els.fileInput.files?.[0];
+    if (!file) return;
+    const path = window.api.getPathForFile(file) || file.path || '';
+    if (path) loadSoc(path);
+  });
+
+  for (const eventName of ['dragenter', 'dragover']) {
+    els.dropzone.addEventListener(eventName, (event) => {
+      event.preventDefault();
+      els.dropzone.classList.add('dragover');
+    });
+  }
+  for (const eventName of ['dragleave', 'dragend']) {
+    els.dropzone.addEventListener(eventName, () => els.dropzone.classList.remove('dragover'));
+  }
+  els.dropzone.addEventListener('drop', (event) => {
+    event.preventDefault();
+    els.dropzone.classList.remove('dragover');
+    const file = event.dataTransfer?.files?.[0];
+    if (!file) return;
+    const path = window.api.getPathForFile(file) || file.path || '';
+    if (path) loadSoc(path);
+    else showToast('无法读取拖入文件路径,请点“选择文件”', 'err');
+  });
+
+  els.mode.addEventListener('click', (event) => {
+    const button = event.target.closest('button[data-mode]');
+    if (!button || state.isFlashing) return;
+    state.mode = button.dataset.mode;
+    $$('#mode button').forEach((item) => {
+      const active = item === button;
+      item.classList.toggle('active', active);
+      item.setAttribute('aria-selected', active ? 'true' : 'false');
+    });
+    els.scriptOptional.textContent = state.mode === 'script' ? '(必选)' : '(可选,覆盖固件内脚本)';
+    els.tailLog.disabled = state.mode === 'script';
+    updateFlashButton();
+  });
+
+  $('#btn-script-dir').addEventListener('click', async () => {
+    const path = await window.api.openScriptDirDialog();
+    if (path) {
+      state.scriptDir = path;
+      els.scriptDir.value = path;
+      updateFlashButton();
+    }
+  });
+
+  els.flash.addEventListener('click', startFlash);
+  els.flashTop.addEventListener('click', () => {
+    if (state.isFlashing) cancelFlash();
+    else startFlash();
+  });
+  els.cancel.addEventListener('click', cancelFlash);
+  $('#btn-clear').addEventListener('click', clearLog);
+  $('#btn-save').addEventListener('click', async () => {
+    if (!state.logLines.length) {
+      showToast('日志为空', 'err');
+      return;
+    }
+    const result = await window.api.saveLog(state.logLines.join('\n'));
+    if (result.ok) showToast(`日志已保存:${result.path}`, 'ok');
+  });
+
+  $('#btn-modal-retry').addEventListener('click', refreshCli);
+  $('#btn-modal-close').addEventListener('click', () => els.cliModal.classList.add('hidden'));
+
+  window.api.onFlashStarted((payload) => {
+    log(`执行:${payload.commandLine}`, 'cmd');
+    setProgress('启动中…', 1, '正在与设备建立连接…');
+  });
+
+  window.api.onFlashEvent((event) => {
+    if (!event || typeof event !== 'object') return;
+    switch (event.type) {
+      case 'progress': {
+        const percent = Number(event.percent);
+        setProgress(event.stage || '', Number.isFinite(percent) ? percent : -1, event.message || '');
+        if (event.message) log(event.message, 'info');
+        if (event.done) {
+          finishFlash(!event.error, event.error ? '设备返回错误' : '烧录完成');
+        }
+        break;
+      }
+      case 'message': {
+        const level = event.level === 'error' ? 'err' : event.level === 'warn' ? 'warn' : 'info';
+        if (event.message) log(event.message, level);
+        break;
+      }
+      case 'error': {
+        if (event.message) log(event.message, 'err');
+        finishFlash(false, event.message || '烧录失败');
+        break;
+      }
+      case 'result': {
+        if (event.status === 'ok') {
+          log('luatos-cli 返回成功', 'ok');
+          finishFlash(true, '烧录完成,设备已重启。');
+        } else {
+          finishFlash(false, event.message || '烧录失败');
+        }
+        break;
+      }
+      case 'log_entry': {
+        const entry = event.entry || {};
+        const text = entry.message || entry.line || JSON.stringify(entry);
+        log(text, entry.level === 'error' ? 'err' : entry.level === 'warn' ? 'warn' : 'info');
+        break;
+      }
+      default:
+        break;
+    }
+  });
+
+  window.api.onFlashLine(({ line, source }) => {
+    if (!line) return;
+    const level = /error|failed|失败|错误/i.test(line) ? 'err' : /warn|警告/i.test(line) ? 'warn' : source === 'stderr' ? 'muted' : 'info';
+    log(line, level);
+  });
+
+  window.api.onFlashExit(({ code, signal, error }) => {
+    if (error) {
+      log(error, 'err');
+      finishFlash(false, error);
+      return;
+    }
+    if (code === 0) {
+      finishFlash(true, '烧录完成,设备已重启。');
+    } else if (signal) {
+      finishFlash(false, `烧录已取消(${signal})`);
+    } else {
+      finishFlash(false, `luatos-cli 退出码 ${code}`);
+    }
+  });
+
+  window.api.onMenuOpenSoc(async () => {
+    const path = await window.api.openSocDialog();
+    if (path) loadSoc(path);
+  });
+  window.api.onMenuSaveLog(async () => {
+    if (!state.logLines.length) return;
+    const result = await window.api.saveLog(state.logLines.join('\n'));
+    if (result.ok) showToast(`日志已保存:${result.path}`, 'ok');
+  });
+
+  document.addEventListener('keydown', (event) => {
+    if (event.key === 'Escape' && !els.cliModal.classList.contains('hidden')) {
+      els.cliModal.classList.add('hidden');
+    }
+  });
+}
+
+async function init() {
+  bindEvents();
+  setBar(0);
+  await refreshCli();
+  await refreshPorts(true);
+  log('LuatOS Flasher 已启动', 'ok');
+  log('提示:先选择 .soc 固件和串口,再点“开始烧录”。', 'muted');
+}
+
+// Exposed for the dev-only Electron smoke tests (see electron/main.js).
+window.__luatos = {
+  state,
+  loadSoc,
+  refreshPorts,
+  updateFlashButton,
+  startFlash,
+};
+
+init().catch((error) => {
+  log(`初始化失败:${error.message || error}`, 'err');
+  setStatus('初始化失败', 'pill-bad');
+});

+ 192 - 0
luatools-mac/renderer/index.html

@@ -0,0 +1,192 @@
+<!doctype html>
+<html lang="zh-CN">
+  <head>
+    <meta charset="utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1" />
+    <meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; img-src 'self' data:;" />
+    <title>LuatOS Flasher</title>
+    <link rel="stylesheet" href="./styles.css" />
+  </head>
+  <body>
+    <div class="app">
+      <header class="titlebar">
+        <div class="brand">
+          <div class="logo" aria-hidden="true">
+            <svg viewBox="0 0 48 48" role="img">
+              <defs>
+                <linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
+                  <stop offset="0" stop-color="#22d3ee" />
+                  <stop offset="1" stop-color="#6366f1" />
+                </linearGradient>
+              </defs>
+              <rect x="7" y="7" width="34" height="34" rx="9" fill="url(#g)" opacity="0.18" />
+              <rect x="12" y="12" width="24" height="24" rx="6" fill="none" stroke="url(#g)" stroke-width="2" />
+              <path d="M25.8 13.5 17.5 26h6.3l-1.6 8.5L30.5 22h-6.3l1.6-8.5Z" fill="#e2e8f0" />
+              <path d="M16 8v4M24 8v4M32 8v4M16 36v4M24 36v4M32 36v4M8 16h4M8 24h4M8 32h4M36 16h4M36 24h4M36 32h4" stroke="#22d3ee" stroke-width="1.6" stroke-linecap="round" opacity="0.8" />
+            </svg>
+          </div>
+          <div class="brand-text">
+            <h1>LuatOS Flasher</h1>
+            <p id="platform-subtitle">macOS · USB 串口烧录</p>
+          </div>
+        </div>
+        <div class="header-actions">
+          <button id="btn-flash-top" class="primary top-action" type="button" disabled>开始烧录</button>
+          <span id="cli-status" class="pill pill-warn">正在检测烧录内核…</span>
+          <button id="btn-refresh-cli" class="ghost small" title="重新检测 luatos-cli">重新检测</button>
+        </div>
+      </header>
+
+      <main class="layout">
+        <section class="column">
+          <section class="card">
+            <div class="card-head">
+              <h2>1 · 选择设备</h2>
+              <span id="port-count" class="muted">—</span>
+            </div>
+            <div class="row">
+              <select id="port-select" class="select" aria-label="串口">
+                <option value="">正在扫描串口…</option>
+              </select>
+              <button id="btn-refresh-ports" class="secondary">刷新</button>
+            </div>
+            <p id="port-hint" class="hint">插上设备后点击刷新。macOS 一般显示为 <code>/dev/cu.usbmodem*</code> 或 <code>/dev/cu.usbserial*</code>。</p>
+          </section>
+
+          <section class="card">
+            <div class="card-head">
+              <h2>2 · 选择固件</h2>
+              <span id="fw-size" class="muted"></span>
+            </div>
+            <div id="dropzone" class="dropzone" tabindex="0" role="button" aria-label="选择或拖入 .soc 固件">
+              <input id="file-input" type="file" accept=".soc" hidden />
+              <div class="drop-icon" aria-hidden="true">⬇</div>
+              <div class="drop-text">
+                <strong>拖入 .soc 固件</strong>
+                <span>或 <button id="btn-browse" class="link" type="button">选择文件</button></span>
+              </div>
+              <p id="fw-path" class="path">未选择固件</p>
+            </div>
+            <div id="fw-info" class="fw-info hidden"></div>
+            <p id="fw-error" class="error hidden"></p>
+          </section>
+
+          <section class="card">
+            <div class="card-head">
+              <h2>3 · 烧录选项</h2>
+              <span class="muted">luatos-cli 1.11+</span>
+            </div>
+            <div id="mode" class="segmented" role="tablist" aria-label="烧录模式">
+              <button type="button" data-mode="full" class="active" role="tab" aria-selected="true">全量烧录</button>
+              <button type="button" data-mode="script" role="tab" aria-selected="false">仅刷脚本区</button>
+            </div>
+
+            <div class="option-grid">
+              <label class="field">
+                <span>脚本目录 <em id="script-optional">(可选,覆盖固件内脚本)</em></span>
+                <div class="input-row">
+                  <input id="script-dir" type="text" readonly placeholder="未选择脚本目录" />
+                  <button id="btn-script-dir" class="secondary small" type="button">选择</button>
+                </div>
+              </label>
+
+              <label class="field">
+                <span>烧录波特率</span>
+                <select id="baud" class="select">
+                  <option value="">自动(推荐)</option>
+                  <option value="921600">921600</option>
+                  <option value="1500000">1500000</option>
+                  <option value="2000000">2000000</option>
+                  <option value="3000000">3000000</option>
+                  <option value="6000000">6000000</option>
+                </select>
+              </label>
+
+              <label class="field">
+                <span>刷后抓日志</span>
+                <select id="tail-log" class="select">
+                  <option value="0">不抓取</option>
+                  <option value="10">10 秒</option>
+                  <option value="20" selected>20 秒</option>
+                  <option value="30">30 秒</option>
+                  <option value="60">60 秒</option>
+                </select>
+              </label>
+
+              <label class="checkbox field-inline">
+                <input id="rts-reset" type="checkbox" />
+                <span>烧录前发送 RTS 复位脉冲</span>
+              </label>
+            </div>
+
+            <div id="boot-tip" class="tip">
+              <strong>进入 Boot:</strong>选择固件后,这里会显示对应芯片的操作提示。
+            </div>
+          </section>
+
+          <details class="card models-card">
+            <summary>支持的型号 <span id="model-count" class="muted"></span></summary>
+            <div id="models" class="models"></div>
+          </details>
+        </section>
+
+        <section class="column">
+          <section class="card action-card">
+            <div class="progress">
+              <div class="progress-head">
+                <span id="stage">等待开始</span>
+                <span id="percent">0%</span>
+              </div>
+              <div class="bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">
+                <div id="bar-fill"></div>
+              </div>
+              <p id="message" class="message">选择设备和固件后开始烧录。</p>
+            </div>
+            <div class="actions">
+              <button id="btn-flash" class="primary" disabled>开始烧录</button>
+              <button id="btn-cancel" class="danger hidden">取消烧录</button>
+            </div>
+            <p class="warning">烧录过程中请勿断电、拔线或关闭窗口。</p>
+          </section>
+
+          <section class="card log-card">
+            <div class="card-head">
+              <h2>烧录日志</h2>
+              <div class="log-actions">
+                <button id="btn-clear" class="ghost small" type="button">清空</button>
+                <button id="btn-save" class="ghost small" type="button">保存</button>
+              </div>
+            </div>
+            <pre id="log" class="log" aria-live="polite"></pre>
+          </section>
+        </section>
+      </main>
+
+      <footer class="footer">
+        <span>内核:<a id="cli-link" href="https://github.com/wendal/luatos-cli" target="_blank" rel="noreferrer">luatos-cli</a> · 固件:LuatOS</span>
+        <span id="cli-path" class="muted">未检测到烧录内核</span>
+      </footer>
+    </div>
+
+    <div id="toast" class="toast hidden" role="status"></div>
+
+    <div id="cli-modal" class="modal hidden" role="dialog" aria-modal="true" aria-labelledby="cli-modal-title">
+      <div class="modal-card">
+        <h2 id="cli-modal-title">没有找到烧录内核</h2>
+        <p>这个 App 需要 <code>luatos-cli</code> 才能烧录。你可以:</p>
+        <ol>
+          <li>在项目目录执行 <code>npm run fetch:cli</code> 自动下载;</li>
+          <li>或设置环境变量 <code>LUATOS_CLI</code> 指向已有的二进制;</li>
+          <li>或把 <code>luatos-cli</code> 放到 <code>resources/bin/</code>。</li>
+        </ol>
+        <p id="cli-modal-error" class="error"></p>
+        <div class="modal-actions">
+          <button id="btn-modal-retry" class="primary" type="button">重新检测</button>
+          <button id="btn-modal-close" class="secondary" type="button">关闭</button>
+        </div>
+      </div>
+    </div>
+
+    <script src="./app.js"></script>
+  </body>
+</html>

+ 922 - 0
luatools-mac/renderer/styles.css

@@ -0,0 +1,922 @@
+:root {
+  color-scheme: dark;
+  --bg: #070b18;
+  --bg-soft: #0b1122;
+  --card: rgba(17, 24, 45, 0.82);
+  --card-solid: #11182d;
+  --border: rgba(148, 163, 184, 0.16);
+  --border-strong: rgba(148, 163, 184, 0.28);
+  --text: #e5eefc;
+  --muted: #8b9bb7;
+  --faint: #61708c;
+  --cyan: #22d3ee;
+  --cyan-strong: #06b6d4;
+  --indigo: #6366f1;
+  --green: #34d399;
+  --red: #fb7185;
+  --amber: #fbbf24;
+  --radius: 14px;
+  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
+  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
+}
+
+* {
+  box-sizing: border-box;
+}
+
+html,
+body {
+  height: 100%;
+  margin: 0;
+}
+
+body {
+  margin: 0;
+  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
+    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
+  color: var(--text);
+  background:
+    radial-gradient(1100px 600px at 10% -10%, rgba(34, 211, 238, 0.14), transparent 55%),
+    radial-gradient(900px 600px at 100% 0%, rgba(99, 102, 241, 0.18), transparent 50%),
+    linear-gradient(180deg, #080d1c 0%, #070b18 55%, #060916 100%);
+  overflow: hidden;
+}
+
+button,
+input,
+select,
+textarea {
+  font: inherit;
+}
+
+code {
+  font-family: var(--mono);
+  font-size: 0.92em;
+  color: #a5f3fc;
+  background: rgba(34, 211, 238, 0.08);
+  border: 1px solid rgba(34, 211, 238, 0.16);
+  padding: 0.08em 0.4em;
+  border-radius: 6px;
+  word-break: break-all;
+}
+
+.app {
+  height: 100vh;
+  display: flex;
+  flex-direction: column;
+}
+
+.titlebar {
+  -webkit-app-region: drag;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  gap: 20px;
+  padding: 14px 22px 12px;
+  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
+  background: linear-gradient(180deg, rgba(11, 17, 34, 0.65), rgba(11, 17, 34, 0.18));
+  backdrop-filter: blur(18px);
+}
+
+/* Leave room for macOS traffic lights when using hiddenInset. */
+html.mac .titlebar {
+  padding-left: 88px;
+}
+
+.brand {
+  display: flex;
+  align-items: center;
+  gap: 14px;
+  min-width: 0;
+}
+
+.logo {
+  width: 46px;
+  height: 46px;
+  flex: 0 0 auto;
+  filter: drop-shadow(0 8px 20px rgba(34, 211, 238, 0.18));
+}
+
+.logo svg {
+  width: 100%;
+  height: 100%;
+  display: block;
+}
+
+.brand-text h1 {
+  margin: 0;
+  font-size: 18px;
+  letter-spacing: 0.2px;
+  font-weight: 650;
+}
+
+.brand-text p {
+  margin: 3px 0 0;
+  color: var(--muted);
+  font-size: 12px;
+  letter-spacing: 0.3px;
+}
+
+.header-actions {
+  -webkit-app-region: no-drag;
+  display: flex;
+  align-items: center;
+  gap: 10px;
+  flex: 0 0 auto;
+}
+
+.pill {
+  display: inline-flex;
+  align-items: center;
+  gap: 8px;
+  height: 30px;
+  padding: 0 12px;
+  border-radius: 999px;
+  font-size: 12px;
+  color: var(--muted);
+  border: 1px solid var(--border);
+  background: rgba(15, 23, 42, 0.7);
+  max-width: 360px;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
+.pill::before {
+  content: "";
+  width: 7px;
+  height: 7px;
+  border-radius: 50%;
+  background: var(--faint);
+  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.08);
+}
+
+.pill-ok {
+  color: #bbf7d0;
+  border-color: rgba(52, 211, 153, 0.28);
+  background: rgba(16, 185, 129, 0.08);
+}
+
+.pill-ok::before {
+  background: var(--green);
+  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
+}
+
+.pill-warn {
+  color: #fde68a;
+  border-color: rgba(251, 191, 36, 0.26);
+  background: rgba(251, 191, 36, 0.07);
+}
+
+.pill-warn::before {
+  background: var(--amber);
+  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
+}
+
+.pill-bad {
+  color: #fecdd3;
+  border-color: rgba(251, 113, 133, 0.28);
+  background: rgba(251, 113, 133, 0.08);
+}
+
+.pill-bad::before {
+  background: var(--red);
+  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12);
+}
+
+.layout {
+  flex: 1;
+  min-height: 0;
+  display: grid;
+  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
+  gap: 14px;
+  padding: 14px 22px 10px;
+  overflow: hidden;
+}
+
+.column {
+  min-width: 0;
+  min-height: 0;
+  display: flex;
+  flex-direction: column;
+  gap: 14px;
+  overflow: auto;
+  padding-right: 2px;
+}
+
+.column::-webkit-scrollbar {
+  width: 10px;
+}
+
+.column::-webkit-scrollbar-thumb {
+  background: rgba(148, 163, 184, 0.18);
+  border-radius: 999px;
+  border: 3px solid transparent;
+  background-clip: content-box;
+}
+
+.card {
+  background: linear-gradient(180deg, rgba(17, 24, 45, 0.88), rgba(13, 19, 36, 0.86));
+  border: 1px solid var(--border);
+  border-radius: var(--radius);
+  box-shadow: var(--shadow);
+  padding: 14px 16px;
+}
+
+.card-head {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  gap: 14px;
+  margin-bottom: 12px;
+}
+
+.card h2 {
+  margin: 0;
+  font-size: 13px;
+  font-weight: 650;
+  letter-spacing: 0.6px;
+  color: #c7d2fe;
+  text-transform: uppercase;
+}
+
+.muted {
+  color: var(--muted);
+  font-size: 12px;
+}
+
+.hint {
+  margin: 10px 0 0;
+  font-size: 12px;
+  line-height: 1.6;
+  color: var(--muted);
+}
+
+.row {
+  display: flex;
+  gap: 10px;
+  align-items: stretch;
+}
+
+.select,
+input[type="text"] {
+  width: 100%;
+  min-width: 0;
+  height: 38px;
+  border-radius: 10px;
+  border: 1px solid var(--border-strong);
+  background: rgba(8, 13, 26, 0.9);
+  color: var(--text);
+  padding: 0 12px;
+  outline: none;
+  transition: border-color 0.15s ease, box-shadow 0.15s ease;
+}
+
+.select:focus,
+input[type="text"]:focus {
+  border-color: rgba(34, 211, 238, 0.6);
+  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
+}
+
+.select option {
+  background: #0d1427;
+  color: var(--text);
+}
+
+button {
+  border: 1px solid transparent;
+  border-radius: 10px;
+  height: 38px;
+  padding: 0 16px;
+  font-size: 13px;
+  font-weight: 600;
+  cursor: pointer;
+  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
+  white-space: nowrap;
+}
+
+button:active {
+  transform: translateY(1px);
+}
+
+button:disabled {
+  cursor: not-allowed;
+  opacity: 0.45;
+}
+
+.primary {
+  color: #052027;
+  background: linear-gradient(135deg, #67e8f9, #22d3ee 55%, #06b6d4);
+  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.18);
+}
+
+.primary:hover:not(:disabled) {
+  background: linear-gradient(135deg, #a5f3fc, #67e8f9 55%, #22d3ee);
+}
+
+.secondary {
+  color: #dbeafe;
+  background: rgba(30, 41, 59, 0.9);
+  border-color: var(--border-strong);
+}
+
+.secondary:hover:not(:disabled) {
+  background: rgba(51, 65, 85, 0.95);
+}
+
+.ghost {
+  color: var(--muted);
+  background: transparent;
+  border-color: transparent;
+}
+
+.ghost:hover:not(:disabled) {
+  color: var(--text);
+  background: rgba(148, 163, 184, 0.08);
+}
+
+.small {
+  height: 30px;
+  padding: 0 10px;
+  font-size: 12px;
+  border-radius: 8px;
+}
+
+.danger {
+  color: #fff1f2;
+  background: linear-gradient(135deg, #fb7185, #e11d48);
+  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.18);
+}
+
+.link {
+  height: auto;
+  padding: 0;
+  border: 0;
+  background: none;
+  color: var(--cyan);
+  font-weight: 600;
+  cursor: pointer;
+  text-decoration: underline;
+  text-underline-offset: 3px;
+}
+
+.link:hover {
+  color: #a5f3fc;
+}
+
+.dropzone {
+  position: relative;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  gap: 6px;
+  min-height: 104px;
+  border: 1px dashed rgba(148, 163, 184, 0.35);
+  border-radius: 12px;
+  background:
+    radial-gradient(300px 120px at 50% 0%, rgba(34, 211, 238, 0.08), transparent 70%),
+    rgba(8, 13, 26, 0.48);
+  cursor: pointer;
+  transition: border-color 0.15s ease, background 0.15s ease;
+  padding: 16px;
+  text-align: center;
+}
+
+.dropzone:hover,
+.dropzone.dragover {
+  border-color: rgba(34, 211, 238, 0.65);
+  background:
+    radial-gradient(340px 150px at 50% 0%, rgba(34, 211, 238, 0.16), transparent 70%),
+    rgba(8, 13, 26, 0.62);
+}
+
+.dropzone:focus-visible {
+  outline: 2px solid rgba(34, 211, 238, 0.55);
+  outline-offset: 2px;
+}
+
+.drop-icon {
+  width: 34px;
+  height: 34px;
+  display: grid;
+  place-items: center;
+  border-radius: 10px;
+  color: var(--cyan);
+  background: rgba(34, 211, 238, 0.1);
+  border: 1px solid rgba(34, 211, 238, 0.22);
+  font-size: 18px;
+}
+
+.drop-text {
+  display: flex;
+  gap: 6px;
+  align-items: baseline;
+  flex-wrap: wrap;
+  justify-content: center;
+  font-size: 13px;
+  color: #dbeafe;
+}
+
+.drop-text span {
+  color: var(--muted);
+}
+
+.path {
+  margin: 2px 0 0;
+  font-family: var(--mono);
+  font-size: 11px;
+  color: var(--faint);
+  max-width: 100%;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
+.fw-info {
+  display: flex;
+  flex-wrap: wrap;
+  gap: 8px;
+  margin-top: 12px;
+}
+
+.chip {
+  display: inline-flex;
+  align-items: center;
+  gap: 6px;
+  height: 26px;
+  padding: 0 9px;
+  border-radius: 8px;
+  font-size: 11.5px;
+  border: 1px solid var(--border);
+  background: rgba(15, 23, 42, 0.72);
+  color: #cbd5e1;
+}
+
+.chip strong {
+  color: var(--cyan);
+  font-weight: 650;
+}
+
+.chip.ok {
+  border-color: rgba(52, 211, 153, 0.25);
+  background: rgba(16, 185, 129, 0.08);
+  color: #bbf7d0;
+}
+
+.chip.warn {
+  border-color: rgba(251, 191, 36, 0.25);
+  background: rgba(251, 191, 36, 0.07);
+  color: #fde68a;
+}
+
+.error {
+  margin: 10px 0 0;
+  color: #fecdd3;
+  font-size: 12px;
+  line-height: 1.5;
+  white-space: pre-wrap;
+  word-break: break-word;
+}
+
+.hidden {
+  display: none !important;
+}
+
+.segmented {
+  display: flex;
+  gap: 4px;
+  padding: 4px;
+  border-radius: 11px;
+  background: rgba(8, 13, 26, 0.7);
+  border: 1px solid var(--border);
+  margin-bottom: 14px;
+}
+
+.segmented button {
+  flex: 1;
+  height: 34px;
+  background: transparent;
+  border: 0;
+  color: var(--muted);
+  border-radius: 8px;
+  font-size: 12.5px;
+}
+
+.segmented button.active {
+  color: #03171c;
+  background: linear-gradient(135deg, #67e8f9, #22d3ee);
+  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.15);
+}
+
+.option-grid {
+  display: grid;
+  grid-template-columns: 1fr 1fr;
+  gap: 10px 12px;
+}
+
+.field {
+  display: flex;
+  flex-direction: column;
+  gap: 6px;
+  min-width: 0;
+}
+
+.field > span {
+  font-size: 11.5px;
+  color: var(--muted);
+  letter-spacing: 0.2px;
+}
+
+.field em {
+  font-style: normal;
+  color: var(--faint);
+}
+
+.input-row {
+  display: flex;
+  gap: 8px;
+}
+
+.input-row input {
+  flex: 1;
+}
+
+.checkbox {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  font-size: 12px;
+  color: var(--muted);
+  cursor: pointer;
+  user-select: none;
+}
+
+.checkbox input {
+  width: 16px;
+  height: 16px;
+  accent-color: var(--cyan);
+}
+
+.field-inline {
+  align-self: end;
+  height: 38px;
+}
+
+.tip {
+  margin-top: 14px;
+  padding: 11px 12px;
+  border-radius: 10px;
+  border: 1px solid rgba(99, 102, 241, 0.22);
+  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.05));
+  font-size: 12px;
+  line-height: 1.55;
+  color: #c7d2fe;
+}
+
+.tip strong {
+  color: #e0e7ff;
+}
+
+.action-card {
+  display: flex;
+  flex-direction: column;
+  gap: 12px;
+}
+
+.top-action {
+  height: 34px;
+  padding: 0 16px;
+  border-radius: 9px;
+  font-size: 12.5px;
+}
+
+.progress-head {
+  display: flex;
+  align-items: baseline;
+  justify-content: space-between;
+  gap: 12px;
+  font-size: 12px;
+}
+
+#stage {
+  color: #dbeafe;
+  font-weight: 600;
+}
+
+#percent {
+  font-family: var(--mono);
+  color: var(--cyan);
+  font-size: 12px;
+}
+
+.bar {
+  height: 9px;
+  border-radius: 999px;
+  background: rgba(8, 13, 26, 0.9);
+  border: 1px solid var(--border);
+  overflow: hidden;
+  margin-top: 9px;
+}
+
+#bar-fill {
+  height: 100%;
+  width: 0%;
+  border-radius: 999px;
+  background: linear-gradient(90deg, #22d3ee, #6366f1);
+  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
+  transition: width 0.25s ease;
+}
+
+#bar-fill.error {
+  background: linear-gradient(90deg, #fb7185, #e11d48);
+  box-shadow: 0 0 18px rgba(251, 113, 133, 0.3);
+}
+
+#bar-fill.success {
+  background: linear-gradient(90deg, #34d399, #10b981);
+  box-shadow: 0 0 18px rgba(52, 211, 153, 0.3);
+}
+
+.message {
+  margin: 9px 0 0;
+  min-height: 18px;
+  font-size: 12px;
+  color: var(--muted);
+  line-height: 1.5;
+}
+
+.actions {
+  display: flex;
+  gap: 10px;
+}
+
+.actions .primary,
+.actions .danger {
+  flex: 1;
+  height: 42px;
+  font-size: 14px;
+}
+
+.warning {
+  margin: 0;
+  text-align: center;
+  font-size: 11px;
+  color: rgba(251, 191, 36, 0.8);
+}
+
+.models-card summary {
+  cursor: pointer;
+  font-size: 12px;
+  color: var(--muted);
+  list-style: none;
+  display: flex;
+  justify-content: space-between;
+  gap: 10px;
+}
+
+.models-card summary::-webkit-details-marker {
+  display: none;
+}
+
+.models-card summary::after {
+  content: "▾";
+  color: var(--faint);
+}
+
+.models-card[open] summary::after {
+  content: "▴";
+}
+
+.models {
+  display: flex;
+  flex-wrap: wrap;
+  gap: 8px;
+  margin-top: 12px;
+}
+
+.model {
+  display: flex;
+  flex-direction: column;
+  gap: 2px;
+  padding: 8px 10px;
+  border-radius: 9px;
+  border: 1px solid var(--border);
+  background: rgba(8, 13, 26, 0.55);
+  min-width: 140px;
+}
+
+.model strong {
+  font-size: 12px;
+  color: #dbeafe;
+  font-weight: 600;
+}
+
+.model span {
+  font-size: 10.5px;
+  color: var(--faint);
+}
+
+.log-card {
+  display: flex;
+  flex-direction: column;
+  flex: 1;
+  min-height: 0;
+  padding-bottom: 10px;
+}
+
+.log-actions {
+  display: flex;
+  gap: 2px;
+}
+
+.log {
+  flex: 1;
+  min-height: 0;
+  margin: 0;
+  padding: 12px;
+  overflow: auto;
+  border-radius: 10px;
+  border: 1px solid rgba(148, 163, 184, 0.1);
+  background: rgba(4, 8, 17, 0.82);
+  font-family: var(--mono);
+  font-size: 11.5px;
+  line-height: 1.6;
+  color: #b6c6e2;
+  white-space: pre-wrap;
+  word-break: break-word;
+}
+
+.log .line {
+  display: block;
+}
+
+.log .t {
+  color: #4b5b76;
+  margin-right: 8px;
+}
+
+.log .info {
+  color: #c7d2fe;
+}
+
+.log .ok {
+  color: #86efac;
+}
+
+.log .warn {
+  color: #fde68a;
+}
+
+.log .err {
+  color: #fecdd3;
+}
+
+.log .cmd {
+  color: #67e8f9;
+}
+
+.log .muted {
+  color: #64748b;
+}
+
+.log::-webkit-scrollbar {
+  width: 10px;
+}
+
+.log::-webkit-scrollbar-thumb {
+  background: rgba(148, 163, 184, 0.18);
+  border-radius: 999px;
+  border: 3px solid transparent;
+  background-clip: content-box;
+}
+
+.footer {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  gap: 18px;
+  padding: 8px 28px 12px;
+  font-size: 11px;
+  color: var(--faint);
+  border-top: 1px solid rgba(148, 163, 184, 0.06);
+}
+
+.footer a {
+  color: #7dd3fc;
+  text-decoration: none;
+}
+
+.footer a:hover {
+  text-decoration: underline;
+}
+
+.toast {
+  position: fixed;
+  left: 50%;
+  bottom: 28px;
+  transform: translateX(-50%);
+  max-width: min(680px, 86vw);
+  padding: 10px 16px;
+  border-radius: 10px;
+  border: 1px solid rgba(148, 163, 184, 0.25);
+  background: rgba(15, 23, 42, 0.96);
+  color: #e2e8f0;
+  font-size: 12.5px;
+  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
+  z-index: 50;
+  animation: toast-in 0.18s ease-out;
+}
+
+.toast.err {
+  border-color: rgba(251, 113, 133, 0.4);
+  color: #ffe4e6;
+}
+
+.toast.ok {
+  border-color: rgba(52, 211, 153, 0.35);
+  color: #dcfce7;
+}
+
+@keyframes toast-in {
+  from {
+    opacity: 0;
+    transform: translate(-50%, 8px);
+  }
+  to {
+    opacity: 1;
+    transform: translate(-50%, 0);
+  }
+}
+
+.modal {
+  position: fixed;
+  inset: 0;
+  z-index: 100;
+  display: grid;
+  place-items: center;
+  padding: 24px;
+  background: rgba(2, 6, 16, 0.72);
+  backdrop-filter: blur(10px);
+}
+
+.modal-card {
+  width: min(560px, 92vw);
+  border-radius: 16px;
+  border: 1px solid var(--border-strong);
+  background: linear-gradient(180deg, #111a30, #0b1122);
+  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
+  padding: 22px 24px;
+}
+
+.modal-card h2 {
+  margin: 0 0 10px;
+  font-size: 17px;
+}
+
+.modal-card p,
+.modal-card li {
+  color: var(--muted);
+  font-size: 12.5px;
+  line-height: 1.7;
+}
+
+.modal-card ol {
+  margin: 8px 0 14px;
+  padding-left: 20px;
+}
+
+.modal-actions {
+  display: flex;
+  justify-content: flex-end;
+  gap: 10px;
+  margin-top: 18px;
+}
+
+@media (max-width: 980px) {
+  .layout {
+    grid-template-columns: 1fr;
+    overflow: auto;
+  }
+
+  .column {
+    overflow: visible;
+  }
+
+  .log-card {
+    min-height: 320px;
+  }
+
+  .titlebar {
+    padding-left: 26px;
+  }
+}
+
+@media (prefers-reduced-motion: reduce) {
+  *,
+  *::before,
+  *::after {
+    animation-duration: 0.01ms !important;
+    transition-duration: 0.01ms !important;
+  }
+}

+ 11 - 0
luatools-mac/resources/bin/CHECKSUMS.txt

@@ -0,0 +1,11 @@
+luatos-cli 1.11.0
+=================
+
+macOS universal (resources/bin/luatos-cli)
+SHA-256: 3AD9097FF54862576F86B3F8AEB865F5022956AC576112533E0FFB78B31756ED
+
+Windows x64 (resources/win/luatos-cli.exe)
+SHA-256: 8FA651974739ACDF62D68DDF8BD973BEE21B575AB4E5B817AE43AB3EE821B887
+
+Source: https://github.com/wendal/luatos-cli/releases/tag/v1.11.0
+License: MIT

+ 21 - 0
luatools-mac/resources/bin/LUATOS-CLI-LICENSE.txt

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Wendal Chen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

BIN
luatools-mac/resources/bin/luatos-cli


+ 11 - 0
luatools-mac/resources/win/CHECKSUMS.txt

@@ -0,0 +1,11 @@
+luatos-cli 1.11.0
+=================
+
+macOS universal (resources/bin/luatos-cli)
+SHA-256: 3AD9097FF54862576F86B3F8AEB865F5022956AC576112533E0FFB78B31756ED
+
+Windows x64 (resources/win/luatos-cli.exe)
+SHA-256: 8FA651974739ACDF62D68DDF8BD973BEE21B575AB4E5B817AE43AB3EE821B887
+
+Source: https://github.com/wendal/luatos-cli/releases/tag/v1.11.0
+License: MIT

+ 21 - 0
luatools-mac/resources/win/LUATOS-CLI-LICENSE.txt

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Wendal Chen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

BIN
luatools-mac/resources/win/luatos-cli.exe


+ 47 - 0
luatools-mac/scripts/after-pack.cjs

@@ -0,0 +1,47 @@
+'use strict';
+
+const { execFileSync } = require('node:child_process');
+const fs = require('node:fs');
+const path = require('node:path');
+
+/**
+ * electron-builder afterPack hook.
+ *
+ * - Ensure the bundled luatos-cli has the executable bit.
+ * - On macOS, ad-hoc sign (or sign with CSC_NAME) the sidecar binary. The app
+ *   bundle itself is handled by electron-builder; if no Developer ID is
+ *   configured, macOS users can still run the app after clearing quarantine.
+ */
+module.exports = async function afterPack(context) {
+  const productName = context.packager?.appInfo?.productFilename || 'LuatOS Flasher';
+  const isMac = process.platform === 'darwin';
+  const appDir = path.join(context.appOutDir, `${productName}.app`);
+  const binDir = isMac
+    ? path.join(appDir, 'Contents', 'Resources', 'bin')
+    : path.join(context.appOutDir, 'resources', 'bin');
+  const cli = path.join(binDir, isMac ? 'luatos-cli' : 'luatos-cli.exe');
+
+  if (!fs.existsSync(cli)) {
+    console.warn(`[afterPack] 未找到 ${cli}`);
+    return;
+  }
+
+  if (!isMac) {
+    console.log(`[afterPack] 已打包烧录内核:${cli}`);
+    return;
+  }
+
+  try {
+    fs.chmodSync(cli, 0o755);
+  } catch (error) {
+    console.warn(`[afterPack] chmod 失败:${error.message}`);
+  }
+
+  const identity = process.env.CSC_NAME || '-';
+  try {
+    execFileSync('codesign', ['--force', '--sign', identity, cli], { stdio: 'inherit' });
+    console.log(`[afterPack] 已签名 ${cli}(identity=${identity})`);
+  } catch (error) {
+    console.warn(`[afterPack] codesign 失败(可忽略,稍后可手动签):${error.message}`);
+  }
+};

+ 43 - 0
luatools-mac/scripts/build-mac.sh

@@ -0,0 +1,43 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+cd "$(dirname "$0")/.."
+
+if [ "$(uname -s)" != "Darwin" ]; then
+  echo "此脚本需要在 macOS 上运行(electron-builder 不支持从 Windows/Linux 构建 macOS 包)。"
+  exit 1
+fi
+
+if ! command -v node >/dev/null 2>&1; then
+  echo "未找到 node。请先安装 Node.js 20+:https://nodejs.org/"
+  exit 1
+fi
+
+if ! command -v npm >/dev/null 2>&1; then
+  echo "未找到 npm。请先安装 Node.js 20+。"
+  exit 1
+fi
+
+echo "==> 安装依赖"
+if [ -f package-lock.json ]; then
+  npm ci
+else
+  npm install
+fi
+
+if [ -f resources/bin/luatos-cli ]; then
+  echo "==> 使用已内置的 luatos-cli(macOS universal)"
+else
+  echo "==> 下载 luatos-cli(macOS universal)"
+  npm run fetch:cli
+fi
+
+echo "==> 构建 .app / .dmg(unsigned)"
+npm run dist:mac
+
+echo
+echo "完成。产物在 dist/ 目录:"
+ls -lh dist/*.dmg dist/*.zip 2>/dev/null || true
+echo
+echo "如果 macOS 提示“无法验证开发者”,可以右键 App -> 打开,或执行:"
+echo '  xattr -cr "/Applications/LuatOS Flasher.app"'

+ 134 - 0
luatools-mac/scripts/fetch-cli.mjs

@@ -0,0 +1,134 @@
+#!/usr/bin/env node
+/**
+ * Download the prebuilt luatos-cli binary for the current platform.
+ *
+ * Usage:
+ *   node scripts/fetch-cli.mjs
+ *   node scripts/fetch-cli.mjs --version v1.11.0
+ *   node scripts/fetch-cli.mjs --platform darwin --arch arm64
+ *
+ * The binary is placed in resources/bin/ and marked executable on Unix.
+ */
+import { createWriteStream } from 'node:fs';
+import fs from 'node:fs/promises';
+import os from 'node:os';
+import path from 'node:path';
+import { pipeline } from 'node:stream/promises';
+import { execFile } from 'node:child_process';
+import { promisify } from 'node:util';
+import { fileURLToPath } from 'node:url';
+
+const execFileAsync = promisify(execFile);
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
+const projectRoot = path.resolve(__dirname, '..');
+
+function parseArgs(argv) {
+  const args = { version: 'v1.11.0', platform: process.platform, arch: process.arch };
+  for (let i = 0; i < argv.length; i += 1) {
+    const arg = argv[i];
+    if (arg === '--version') args.version = argv[++i];
+    else if (arg === '--platform') args.platform = argv[++i];
+    else if (arg === '--arch') args.arch = argv[++i];
+    else if (arg === '--help' || arg === '-h') {
+      console.log('Usage: node scripts/fetch-cli.mjs [--version v1.11.0] [--platform darwin|win32|linux] [--arch arm64|x64]');
+      process.exit(0);
+    }
+  }
+  return args;
+}
+
+function assetFor(platform, arch) {
+  if (platform === 'darwin') {
+    // Universal binary works on both Intel and Apple Silicon.
+    return 'luatos-cli-universal-apple-darwin.tar.gz';
+  }
+  if (platform === 'win32') {
+    const a = arch === 'arm64' ? 'aarch64' : 'x86_64';
+    return `luatos-cli-${a}-pc-windows-msvc.zip`;
+  }
+  if (platform === 'linux') {
+    const a = arch === 'arm64' ? 'aarch64' : 'x86_64';
+    return `luatos-cli-${a}-unknown-linux-gnu.tar.gz`;
+  }
+  throw new Error(`不支持的平台:${platform}(支持 darwin / win32 / linux)`);
+}
+
+async function download(url, destination) {
+  console.log(`下载 ${url}`);
+  try {
+    const response = await fetch(url, { redirect: 'follow' });
+    if (!response.ok || !response.body) {
+      throw new Error(`HTTP ${response.status} ${response.statusText}`);
+    }
+    await pipeline(response.body, createWriteStream(destination));
+    return;
+  } catch (error) {
+    // Some corporate proxies only work through the system curl. Fall back to
+    // curl (macOS/Linux built-in, Windows 10+ ships curl.exe).
+    console.log(`Node fetch 失败(${error.message}),尝试 curl…`);
+    const curl = process.platform === 'win32' ? 'curl.exe' : 'curl';
+    await fs.rm(destination, { force: true }).catch(() => {});
+    await execFileAsync(
+      curl,
+      ['-L', '--fail', '--retry', '2', '--connect-timeout', '20', '-o', destination, url],
+      { windowsHide: true, maxBuffer: 10 * 1024 * 1024 },
+    );
+  }
+}
+
+async function findBinary(root, fileName) {
+  const entries = await fs.readdir(root, { withFileTypes: true });
+  for (const entry of entries) {
+    const full = path.join(root, entry.name);
+    if (entry.isFile() && entry.name === fileName) return full;
+    if (entry.isDirectory()) {
+      const found = await findBinary(full, fileName).catch(() => null);
+      if (found) return found;
+    }
+  }
+  return null;
+}
+
+async function main() {
+  const args = parseArgs(process.argv.slice(2));
+  const asset = assetFor(args.platform, args.arch);
+  const url = `https://github.com/wendal/luatos-cli/releases/download/${args.version}/${asset}`;
+  const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), 'luatos-cli-'));
+  const archive = path.join(tempDir, asset);
+
+  try {
+    await download(url, archive);
+    console.log('解压…');
+    await execFileAsync('tar', ['-xf', archive, '-C', tempDir], { windowsHide: true });
+
+    const binaryName = args.platform === 'win32' ? 'luatos-cli.exe' : 'luatos-cli';
+    const found = await findBinary(tempDir, binaryName);
+    if (!found) throw new Error(`压缩包内没有找到 ${binaryName}`);
+
+    const binDir = path.join(projectRoot, 'resources', args.platform === 'win32' ? 'win' : 'bin');
+    await fs.mkdir(binDir, { recursive: true });
+    const destination = path.join(binDir, binaryName);
+    await fs.copyFile(found, destination);
+    if (args.platform !== 'win32') await fs.chmod(destination, 0o755);
+
+    console.log(`已安装:${destination}`);
+    try {
+      const { stdout } = await execFileAsync(destination, ['--version'], { windowsHide: true });
+      console.log(stdout.trim());
+    } catch (error) {
+      console.warn(`已安装,但 --version 执行失败:${error.message}`);
+      console.warn('macOS 上如果提示“无法验证开发者”,请在 App 内首次运行时允许,或执行:');
+      console.warn(`  xattr -cr "${destination}" && codesign --force --sign - "${destination}"`);
+    }
+  } finally {
+    await fs.rm(tempDir, { recursive: true, force: true }).catch(() => {});
+  }
+}
+
+main().catch((error) => {
+  console.error(`\n获取 luatos-cli 失败:${error.message}`);
+  console.error('\n你可以手动下载:');
+  console.error('  https://github.com/wendal/luatos-cli/releases');
+  console.error('然后把 luatos-cli(macOS)或 luatos-cli.exe(Windows)放到 resources/bin/。');
+  process.exit(1);
+});

+ 18 - 0
luatools-mac/scripts/fix-macos-gatekeeper.sh

@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+APP="${1:-dist/mac-universal/LuatOS Flasher.app}"
+
+if [ ! -d "$APP" ]; then
+  echo "找不到 App:$APP"
+  echo "用法:$0 \"/path/to/LuatOS Flasher.app\""
+  exit 1
+fi
+
+echo "清理 quarantine:$APP"
+xattr -cr "$APP" || true
+
+echo "ad-hoc 签名(本地运行用)"
+codesign --force --deep --sign - "$APP"
+
+echo "完成。现在可以双击打开:$APP"

+ 28 - 0
luatools-mac/start-mac.command

@@ -0,0 +1,28 @@
+#!/bin/bash
+set -euo pipefail
+
+cd "$(dirname "$0")"
+
+if ! command -v node >/dev/null 2>&1; then
+  echo "未找到 Node.js。请先安装 Node.js 20+:https://nodejs.org/"
+  echo
+  read -r -p "按回车退出…" _
+  exit 1
+fi
+
+if [ -d node_modules ] && [ -d node_modules/electron/dist ] && [ ! -d node_modules/electron/dist/Electron.app ]; then
+  echo "检测到非 macOS 的 Electron 依赖,重新安装…"
+  rm -rf node_modules
+fi
+
+if [ ! -d node_modules ]; then
+  echo "首次运行,安装依赖…"
+  npm install
+fi
+
+if [ ! -f resources/bin/luatos-cli ]; then
+  echo "下载 luatos-cli…"
+  npm run fetch:cli
+fi
+
+npm start

+ 9 - 0
luatools-mac/tests/fixtures/README.md

@@ -0,0 +1,9 @@
+# Test fixtures
+
+`air8101-dummy.soc` 是一个 **仅用于解析测试的假固件**:
+
+- 内含 1 KB 的 `luatos.bin` 和 256 B 的 `script.bin`;
+- 只用于 `soc info` / UI 状态 / 错误路径测试;
+- **不要把它烧录到真实设备**,否则会写入无效数据。
+
+真实固件请从 LuatOS 文档中心或对应模组页面下载。

BIN
luatools-mac/tests/fixtures/air8101-dummy.soc


+ 7 - 0
luatools-tauri/.cargo/config.toml

@@ -0,0 +1,7 @@
+# 全局 ~/.cargo/config 把 crates.io 指向了 TUNA 的 git index,首次拉取非常慢。
+# 这里覆盖成 TUNA 的 sparse index(配合代理很快),sparse 比 git index 小几个数量级。
+[source.crates-io]
+replace-with = "tuna-sparse"
+
+[source.tuna-sparse]
+registry = "sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"

+ 99 - 0
luatools-tauri/README.md

@@ -0,0 +1,99 @@
+# LuatOS Flasher(Tauri 版)
+
+同一套界面,后端换成 **Tauri 2 + Rust**,烧录内核仍是 [luatos-cli](https://github.com/wendal/luatos-cli)(MIT),
+通过 sidecar 方式内置,不需要 Wine / Windows 虚拟机。
+
+- 界面:直接复用 `luatools-mac/renderer`(`ui/` 是副本,新增 `ui/api.js` 适配层)
+- 桥接:渲染层仍然只认 `window.api`;`ui/api.js` 把它实现成 Tauri `invoke` + 事件
+- 内核:`src-tauri/binaries/luatos-cli-{aarch64,x86_64}-apple-darwin`,打包时由 Tauri 放进 `Contents/MacOS/`
+- 体积:Electron 版 `.app` 约 498 MB / DMG 223 MB;Tauri 版通常 30 MB 上下(大头是 17 MB 的内核)
+
+## 架构
+
+```text
+ui/app.js ──window.api──> ui/api.js ──invoke/listen──> WKWebView message handler
+                                                        └──> Rust (src-tauri/src/lib.rs)
+                                                               └──spawn──> luatos-cli sidecar
+```
+
+Electron 主进程里的命令在 Rust 侧一一对应:
+
+| 命令 | 作用 |
+|---|---|
+| `cli_info` | `luatos-cli --version` + `guide models` |
+| `serial_list` | `luatos-cli serial list --format json` |
+| `soc_info` | `luatos-cli soc info --format json` |
+| `flash_start` | 组装参数、spawn sidecar、逐行转发 JSONL、结束后返回 |
+| `flash_cancel` | kill 子进程 |
+| `open_soc_dialog` / `open_script_dir_dialog` / `save_log` | 原生对话框 |
+| `open_external` | 打开文档/项目链接 |
+
+## 开发
+
+```bash
+cd luatools-tauri
+npm install
+npm run dev
+```
+
+要求 macOS 12+、Node 20+、Rust 1.77+(`rustup target add aarch64-apple-darwin`)。
+
+如果 crates 下载慢,可以走代理:
+
+```bash
+export http_proxy=http://127.0.0.1:10887
+export https_proxy=http://127.0.0.1:10887
+```
+
+## 打包
+
+```bash
+chmod +x scripts/build-mac.sh
+./scripts/build-mac.sh               # arm64(默认)
+UNIVERSAL=1 ./scripts/build-mac.sh   # 需要 Intel 时再打 universal
+```
+
+产物:
+
+- `src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg`(约 15 MB)
+- `src-tauri/target/aarch64-apple-darwin/release/bundle/macos/LuatOS Flasher.app`(约 30 MB)
+
+默认不签名。首次打开被 Gatekeeper 拦截时:
+
+```bash
+xattr -cr "/Applications/LuatOS Flasher.app"
+# 或右键 App -> 打开
+```
+
+正式分发需要 Developer ID 证书 + 公证(Tauri 会连 sidecar 一起签):
+
+```bash
+export APPLE_SIGNING_IDENTITY="Developer ID Application: ..."
+export APPLE_ID="you@example.com"
+export APPLE_PASSWORD="app-specific-password"
+export APPLE_TEAM_ID="TEAMID"
+npm run build:mac
+```
+
+## 自检(不需要真机)
+
+和 Electron 版参数保持一致:
+
+```bash
+# 解析内置假固件
+"src-tauri/target/aarch64-apple-darwin/release/bundle/macos/LuatOS Flasher.app/Contents/MacOS/LuatOS Flasher" \
+  --selftest-soc="$PWD/../luatools-mac/tests/fixtures/air8101-dummy.soc"
+
+# 用不存在的 COM99 跑完整烧录错误链路
+"..." --selftest-flash-port=COM99 \
+  --selftest-flash-soc="$PWD/../luatools-mac/tests/fixtures/air8101-dummy.soc"
+```
+
+输出 `SELFTEST {...}` 后自动退出。测试固件是 1 KB 占位文件,**不要烧到真机**。
+
+## 与 Electron 版的差异
+
+- 没有 Chromium/Node,渲染引擎是系统 WKWebView;字体、滚动条、毛玻璃效果可能有细微差异。
+- 拖拽拿路径改用 Tauri 原生 `tauri://drag-drop` 事件(`ui/api.js` 已处理)。
+- 调试用 Safari「开发」菜单连接 WKWebView,而不是 Chromium DevTools。
+- 菜单、About 面板由 Rust `tauri::menu` 构建。

+ 248 - 0
luatools-tauri/package-lock.json

@@ -0,0 +1,248 @@
+{
+  "name": "luatos-flasher-tauri",
+  "version": "0.1.0",
+  "lockfileVersion": 3,
+  "requires": true,
+  "packages": {
+    "": {
+      "name": "luatos-flasher-tauri",
+      "version": "0.1.0",
+      "license": "MIT",
+      "devDependencies": {
+        "@tauri-apps/cli": "^2.12.4"
+      }
+    },
+    "node_modules/@tauri-apps/cli": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli/-/cli-2.12.4.tgz",
+      "integrity": "sha512-JI9bHfudSRJikGOrjbXEm6RjzzvmKuLc+JixB1NE8hNzQkNlCCIC3pTES3uypkR9lxHrsbxzcnSwhI2IxBQphw==",
+      "dev": true,
+      "license": "Apache-2.0 OR MIT",
+      "bin": {
+        "tauri": "tauri.js"
+      },
+      "engines": {
+        "node": ">= 10"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/tauri"
+      },
+      "optionalDependencies": {
+        "@tauri-apps/cli-darwin-arm64": "2.12.4",
+        "@tauri-apps/cli-darwin-x64": "2.12.4",
+        "@tauri-apps/cli-linux-arm-gnueabihf": "2.12.4",
+        "@tauri-apps/cli-linux-arm64-gnu": "2.12.4",
+        "@tauri-apps/cli-linux-arm64-musl": "2.12.4",
+        "@tauri-apps/cli-linux-riscv64-gnu": "2.12.4",
+        "@tauri-apps/cli-linux-x64-gnu": "2.12.4",
+        "@tauri-apps/cli-linux-x64-musl": "2.12.4",
+        "@tauri-apps/cli-win32-arm64-msvc": "2.12.4",
+        "@tauri-apps/cli-win32-ia32-msvc": "2.12.4",
+        "@tauri-apps/cli-win32-x64-msvc": "2.12.4"
+      }
+    },
+    "node_modules/@tauri-apps/cli-darwin-arm64": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.12.4.tgz",
+      "integrity": "sha512-OxqKSckIkoJ6vX2AjifIJpTasFC0Hbdoo7gEiCmAjauABO3U8m2MRsLWe+QTiBwDx1mIrvgA+rvI7tvDnbnHVg==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "darwin"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-darwin-x64": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.12.4.tgz",
+      "integrity": "sha512-fz76/77wMMJOaaUN6n3CybRG0P/MTEjjqYk81mGPyhi9m6Ue5T+LWBnJP/AkPooNatBPI2vtulGqomyMJ44lCQ==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "darwin"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.12.4.tgz",
+      "integrity": "sha512-K0w8Bof6Lt8QKLAYhRy0yy36ZH5iA/35VuSOvnxyjvCUZ+A3JKsUTlALviH/sVgAlisaPzzmeJSH8XOn4Q2HBA==",
+      "cpu": [
+        "arm"
+      ],
+      "dev": true,
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-linux-arm64-gnu": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.12.4.tgz",
+      "integrity": "sha512-j5rOnjmRUwWrm1oosf0zBYl4D+fqydgUROFCk0hvKZxvbTT8SOERes0QB7rBV/XWNy+kM6pCKzb3oSm2sRglzg==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "libc": [
+        "glibc"
+      ],
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-linux-arm64-musl": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.12.4.tgz",
+      "integrity": "sha512-aOue3Fy6Jb7+oWcfAVUsVHfeTybSCt2CZoU06aO4jv4d2Ks/KnaTPwMAK3CLEduGOvBLY1lbBBrIyomqLLH5Sg==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "libc": [
+        "musl"
+      ],
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.12.4.tgz",
+      "integrity": "sha512-Fx6GShY/RvST+t6LMlTHAwd66+1tEaAAGrnU7cysVfaiRP1BKng5Vl6rVmO6rSLOA1Sp1dRzNYM4f0OWQGb7qA==",
+      "cpu": [
+        "riscv64"
+      ],
+      "dev": true,
+      "libc": [
+        "glibc"
+      ],
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-linux-x64-gnu": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.12.4.tgz",
+      "integrity": "sha512-tNzZSa79Z1nRpHxEpQ38lsAFpKlFlYvoXzjTV+lRRn/zSf3wrdUC3wnLcq2XEadchPu4ttK0zivhYzr+XGD19Q==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "libc": [
+        "glibc"
+      ],
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-linux-x64-musl": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.12.4.tgz",
+      "integrity": "sha512-jmZ1pr0xEqUhuEusWtt9Yt+GF6lCnGHUmIL+KIknpbjK/XQ2qkhDBhaxK/JMHM2A8dAacVXCxXJk2EXpwhQUfA==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "libc": [
+        "musl"
+      ],
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-win32-arm64-msvc": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.12.4.tgz",
+      "integrity": "sha512-fGo8pgEHZxdSYgZ/J98m1usJ7NHKmKbq7k6uT0x1rpOq6Bg2YVzzpaAblWk710f5LHYBJIL5QIFS5IrD+4gmTg==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "win32"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-win32-ia32-msvc": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.12.4.tgz",
+      "integrity": "sha512-ezl8sQIcjYsye3TUnTH5VcWmWzccZASlQm7hlZt0dYyj1XD0qpVW47u2xYVrIKui0F8uQv/7QGZixdWiClBsbg==",
+      "cpu": [
+        "ia32"
+      ],
+      "dev": true,
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "win32"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/@tauri-apps/cli-win32-x64-msvc": {
+      "version": "2.12.4",
+      "resolved": "https://registry.npmmirror.com/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.12.4.tgz",
+      "integrity": "sha512-DJhDeCqjLDNMWYFy7ZS8cfeAHX2RK0RbQMLiA3bMVVkXRDJ4NBYiHriGqsUhsr9iG41aTb+dJGkFPmPw1gWwVw==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "license": "Apache-2.0 OR MIT",
+      "optional": true,
+      "os": [
+        "win32"
+      ],
+      "engines": {
+        "node": ">= 10"
+      }
+    }
+  }
+}

+ 20 - 0
luatools-tauri/package.json

@@ -0,0 +1,20 @@
+{
+  "name": "luatos-flasher-tauri",
+  "private": true,
+  "version": "0.1.0",
+  "description": "LuatOS firmware flasher (Tauri 2 + luatos-cli sidecar)",
+  "author": "LuatOS Flasher",
+  "license": "MIT",
+  "scripts": {
+    "dev": "tauri dev",
+    "build": "tauri build",
+    "build:mac": "tauri build --target aarch64-apple-darwin",
+    "build:mac:universal": "tauri build --target universal-apple-darwin",
+    "build:mac:arm64": "tauri build --target aarch64-apple-darwin",
+    "build:mac:x64": "tauri build --target x86_64-apple-darwin",
+    "tauri": "tauri"
+  },
+  "devDependencies": {
+    "@tauri-apps/cli": "^2.12.4"
+  }
+}

+ 55 - 0
luatools-tauri/scripts/build-mac.sh

@@ -0,0 +1,55 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+cd "$(dirname "$0")/.."
+
+if [ "$(uname -s)" != "Darwin" ]; then
+  echo "此脚本需要在 macOS 上运行。"
+  exit 1
+fi
+
+for tool in node npm cargo; do
+  if ! command -v "$tool" >/dev/null 2>&1; then
+    echo "缺少 $tool,请先安装 Node.js 20+ 和 Rust (https://rustup.rs)。"
+    exit 1
+  fi
+done
+
+if [ ! -d node_modules ]; then
+  echo "==> 安装前端/CLI 依赖"
+  npm ci
+fi
+
+echo "==> 准备 luatos-cli sidecar(universal)"
+CLI_SRC="../luatools-mac/resources/bin/luatos-cli"
+for triple in aarch64-apple-darwin x86_64-apple-darwin; do
+  target="src-tauri/binaries/luatos-cli-$triple"
+  if [ ! -f "$target" ]; then
+    if [ -f "$CLI_SRC" ]; then
+      cp "$CLI_SRC" "$target"
+      chmod +x "$target"
+    else
+      echo "缺少 $target,请先把 luatos-cli 放到 src-tauri/binaries/。"
+      exit 1
+    fi
+  fi
+done
+
+if [ "${UNIVERSAL:-0}" = "1" ]; then
+  echo "==> 补齐 Rust 双架构 target"
+  rustup target add aarch64-apple-darwin x86_64-apple-darwin >/dev/null 2>&1 || true
+  echo "==> 构建 universal .app / .dmg"
+  npm run build:mac:universal
+  OUT="src-tauri/target/universal-apple-darwin/release/bundle"
+else
+  echo "==> 构建 arm64 .app / .dmg"
+  npm run build:mac
+  OUT="src-tauri/target/aarch64-apple-darwin/release/bundle"
+fi
+
+echo
+echo "完成。产物:"
+ls -lh "$OUT"/dmg/*.dmg "$OUT"/macos/*.app 2>/dev/null || true
+echo
+echo "未签名构建首次运行如被 Gatekeeper 拦截:"
+echo '  xattr -cr "/Applications/LuatOS Flasher.app"'

+ 5186 - 0
luatools-tauri/src-tauri/Cargo.lock

@@ -0,0 +1,5186 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "adler2"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
+
+[[package]]
+name = "aho-corasick"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "alloc-no-stdlib"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a"
+
+[[package]]
+name = "alloc-stdlib"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1"
+dependencies = [
+ "alloc-no-stdlib",
+]
+
+[[package]]
+name = "android_system_properties"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "anyhow"
+version = "1.0.104"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
+
+[[package]]
+name = "async-broadcast"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-channel"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"
+dependencies = [
+ "concurrent-queue",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-executor"
+version = "1.14.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f426a31126c735126297bc5ea7a521263c9faff4f63ca415267ee625651c4f37"
+dependencies = [
+ "async-task",
+ "concurrent-queue",
+ "fastrand",
+ "futures-lite",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "async-io"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
+dependencies = [
+ "autocfg",
+ "cfg-if",
+ "concurrent-queue",
+ "futures-io",
+ "futures-lite",
+ "parking",
+ "polling",
+ "rustix",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-lock"
+version = "3.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0876700b0d007ad25d5508865a4259c3af9af6d296bf663a0d586d0bc3369f6f"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-process"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
+dependencies = [
+ "async-channel",
+ "async-io",
+ "async-lock",
+ "async-signal",
+ "async-task",
+ "blocking",
+ "cfg-if",
+ "event-listener",
+ "futures-lite",
+ "rustix",
+]
+
+[[package]]
+name = "async-recursion"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "async-signal"
+version = "0.2.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"
+dependencies = [
+ "async-io",
+ "async-lock",
+ "atomic-waker",
+ "cfg-if",
+ "futures-core",
+ "futures-io",
+ "rustix",
+ "signal-hook-registry",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-task"
+version = "4.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
+
+[[package]]
+name = "async-trait"
+version = "0.1.92"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "atk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b"
+dependencies = [
+ "atk-sys",
+ "glib",
+ "libc",
+]
+
+[[package]]
+name = "atk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "atomic-waker"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
+
+[[package]]
+name = "autocfg"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
+
+[[package]]
+name = "base64"
+version = "0.21.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
+
+[[package]]
+name = "base64"
+version = "0.23.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
+
+[[package]]
+name = "bit-set"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
+dependencies = [
+ "bit-vec 0.8.0",
+]
+
+[[package]]
+name = "bit-set"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c"
+dependencies = [
+ "bit-vec 0.10.2",
+]
+
+[[package]]
+name = "bit-vec"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
+
+[[package]]
+name = "bit-vec"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72503af1e72be411d74ca45cd6b309878fcb35354e252fc2a3a8bda3a97082a0"
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bitflags"
+version = "2.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "block-buffer"
+version = "0.10.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
+dependencies = [
+ "generic-array",
+]
+
+[[package]]
+name = "block2"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
+dependencies = [
+ "objc2",
+]
+
+[[package]]
+name = "blocking"
+version = "1.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa"
+dependencies = [
+ "async-channel",
+ "async-task",
+ "futures-io",
+ "futures-lite",
+ "piper",
+]
+
+[[package]]
+name = "brotli"
+version = "9.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "627b7cfb0578f0eafce087a90fcd40add1231900b69e4d4de2d456260a4f5d81"
+dependencies = [
+ "alloc-no-stdlib",
+ "alloc-stdlib",
+ "brotli-decompressor",
+]
+
+[[package]]
+name = "brotli-decompressor"
+version = "6.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "75c74c9c51b9140663e196b5fb88bc94c334d7a497c8311cb759d8557874747f"
+dependencies = [
+ "alloc-no-stdlib",
+ "alloc-stdlib",
+]
+
+[[package]]
+name = "bs58"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4"
+dependencies = [
+ "tinyvec",
+]
+
+[[package]]
+name = "bumpalo"
+version = "3.20.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
+
+[[package]]
+name = "bytemuck"
+version = "1.25.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
+
+[[package]]
+name = "byteorder"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+
+[[package]]
+name = "bytes"
+version = "1.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "cairo-rs"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"
+dependencies = [
+ "bitflags 2.13.2",
+ "cairo-sys-rs",
+ "glib",
+ "libc",
+ "once_cell",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "cairo-sys-rs"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51"
+dependencies = [
+ "glib-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "camino"
+version = "1.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bbbad30e4b4c14a39e3cc8aed085a12a327257c316619c93581e017bc52be591"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "cargo-platform"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "cargo_metadata"
+version = "0.19.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"
+dependencies = [
+ "camino",
+ "cargo-platform",
+ "semver",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "cargo_toml"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82f4b26e751e711a5302649417f2da046dce6391b2ea30a4820f37462314f0b9"
+dependencies = [
+ "semver",
+ "serde",
+ "toml 1.2.1+spec-1.1.0",
+]
+
+[[package]]
+name = "cc"
+version = "1.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ff2a8126fff0f8c839080d619675a585e61720bb12d2baceae45769fd66f155"
+dependencies = [
+ "find-msvc-tools",
+ "shlex",
+]
+
+[[package]]
+name = "cesu8"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
+
+[[package]]
+name = "cfb"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a347dcabdae9c31b0825fd6a8bed285ec9c2acb89c47827126d52fa4f59cece3"
+dependencies = [
+ "fnv",
+ "uuid",
+ "web-time",
+]
+
+[[package]]
+name = "cfg-expr"
+version = "0.15.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"
+dependencies = [
+ "smallvec",
+ "target-lexicon",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
+
+[[package]]
+name = "chrono"
+version = "0.4.45"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
+dependencies = [
+ "iana-time-zone",
+ "num-traits",
+ "serde",
+ "windows-link",
+]
+
+[[package]]
+name = "combine"
+version = "4.6.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92"
+dependencies = [
+ "bytes",
+ "memchr",
+]
+
+[[package]]
+name = "concurrent-queue"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "cookie"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87"
+dependencies = [
+ "time",
+ "version_check",
+]
+
+[[package]]
+name = "core-foundation"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
+[[package]]
+name = "core-foundation-sys"
+version = "0.8.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+
+[[package]]
+name = "core-graphics"
+version = "0.25.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"
+dependencies = [
+ "bitflags 2.13.2",
+ "core-foundation",
+ "core-graphics-types",
+ "foreign-types",
+ "libc",
+]
+
+[[package]]
+name = "core-graphics-types"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
+dependencies = [
+ "bitflags 2.13.2",
+ "core-foundation",
+ "libc",
+]
+
+[[package]]
+name = "core_detect"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"
+
+[[package]]
+name = "cpufeatures"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "crc32fast"
+version = "1.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "crossbeam-channel"
+version = "0.5.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-utils"
+version = "0.8.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
+
+[[package]]
+name = "crypto-common"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
+dependencies = [
+ "generic-array",
+ "typenum",
+]
+
+[[package]]
+name = "cssparser"
+version = "0.37.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c9cdaae01d5ed7882b04d795e7f752f46ff52d2fa3b50a20d28c464510bba98"
+dependencies = [
+ "cssparser-macros",
+ "dtoa-short",
+ "itoa",
+ "phf 0.13.1",
+ "smallvec",
+]
+
+[[package]]
+name = "cssparser"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "11119743ad110e8c1bdccd930d7f5c30c99e5fc76a7b63ec9807e84eef0c5f59"
+dependencies = [
+ "cssparser-macros",
+ "dtoa-short",
+ "itoa",
+ "phf 0.14.0",
+ "smallvec",
+]
+
+[[package]]
+name = "cssparser-macros"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"
+dependencies = [
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "ctor"
+version = "1.0.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d"
+
+[[package]]
+name = "darling"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed17f5901b6630b993ca003def43f2f8ef4014fc13b047b57aad617ff32bc2ec"
+dependencies = [
+ "darling_core",
+ "darling_macro",
+]
+
+[[package]]
+name = "darling_core"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6837e2cf7485aaae18f86181d2f0e9a7ed297a025e220aeabf63fdebd3a2ddff"
+dependencies = [
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785"
+dependencies = [
+ "darling_core",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "dbus"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e"
+dependencies = [
+ "libc",
+ "libdbus-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "deranged"
+version = "0.5.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "derive_more"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134"
+dependencies = [
+ "derive_more-impl",
+]
+
+[[package]]
+name = "derive_more-impl"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "rustc_version",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "digest"
+version = "0.10.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
+dependencies = [
+ "block-buffer",
+ "crypto-common",
+]
+
+[[package]]
+name = "dirs"
+version = "7.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f"
+dependencies = [
+ "dirs-sys",
+]
+
+[[package]]
+name = "dirs-sys"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab"
+dependencies = [
+ "libc",
+ "option-ext",
+ "redox_users",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "dispatch2"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "libc",
+ "objc2",
+]
+
+[[package]]
+name = "displaydoc"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "dlopen2"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4"
+dependencies = [
+ "dlopen2_derive",
+ "libc",
+ "once_cell",
+ "winapi",
+]
+
+[[package]]
+name = "dlopen2_derive"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "dom_query"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fac5fca71e65e94cc718a6e2af65d6e0f9c6027751c2aa562fbb5087fda639bc"
+dependencies = [
+ "bit-set 0.8.0",
+ "cssparser 0.37.0",
+ "foldhash",
+ "html5ever 0.39.0",
+ "precomputed-hash",
+ "selectors 0.38.0",
+ "tendril",
+]
+
+[[package]]
+name = "dom_query"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "498c698ac51127148a3984450e51fca7f01805a91d7a1f7a24af0a5f761e3385"
+dependencies = [
+ "bit-set 0.11.1",
+ "cssparser 0.38.0",
+ "foldhash",
+ "html5ever 0.40.1",
+ "precomputed-hash",
+ "selectors 0.41.0",
+ "tendril",
+]
+
+[[package]]
+name = "dpi"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "dtoa"
+version = "1.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590"
+
+[[package]]
+name = "dtoa-short"
+version = "0.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87"
+dependencies = [
+ "dtoa",
+]
+
+[[package]]
+name = "dunce"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
+
+[[package]]
+name = "dyn-clone"
+version = "1.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
+
+[[package]]
+name = "embed-resource"
+version = "3.0.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6168487b5e7eb2673e6efe1200b1848016e436a6ca0b8031bf04bd9d493a249f"
+dependencies = [
+ "cc",
+ "memchr",
+ "rustc_version",
+ "toml 1.2.1+spec-1.1.0",
+ "vswhom",
+ "winreg",
+]
+
+[[package]]
+name = "embed_plist"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
+
+[[package]]
+name = "encoding_rs"
+version = "0.8.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "89253175e704ab869b04f9db224d38630e0211a53841a79181deae0889e169f5"
+dependencies = [
+ "cfg-if",
+ "core_detect",
+ "multiversion_no_op",
+ "rustversion",
+ "scopeguard",
+ "simdutf8",
+]
+
+[[package]]
+name = "endi"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
+
+[[package]]
+name = "enumflags2"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"
+dependencies = [
+ "enumflags2_derive",
+ "serde",
+]
+
+[[package]]
+name = "enumflags2_derive"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "equivalent"
+version = "1.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
+
+[[package]]
+name = "erased-serde"
+version = "0.4.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e59b668157f32d3459d4bd634861a06ffa2503a461ca5f0916b9f0252605e66"
+dependencies = [
+ "serde",
+ "serde_core",
+ "typeid",
+]
+
+[[package]]
+name = "errno"
+version = "0.3.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "event-listener"
+version = "5.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"
+dependencies = [
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "event-listener-strategy"
+version = "0.5.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
+dependencies = [
+ "event-listener",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "fastrand"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
+
+[[package]]
+name = "fdeflate"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
+dependencies = [
+ "simd-adler32",
+]
+
+[[package]]
+name = "field-offset"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f"
+dependencies = [
+ "memoffset",
+ "rustc_version",
+]
+
+[[package]]
+name = "find-msvc-tools"
+version = "0.1.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
+
+[[package]]
+name = "flate2"
+version = "1.1.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4"
+dependencies = [
+ "crc32fast",
+ "miniz_oxide 0.9.1",
+ "zlib-rs",
+]
+
+[[package]]
+name = "fnv"
+version = "1.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+
+[[package]]
+name = "foldhash"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
+
+[[package]]
+name = "foreign-types"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
+dependencies = [
+ "foreign-types-macros",
+ "foreign-types-shared",
+]
+
+[[package]]
+name = "foreign-types-macros"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "foreign-types-shared"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
+
+[[package]]
+name = "form_urlencoded"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
+dependencies = [
+ "percent-encoding",
+]
+
+[[package]]
+name = "futures-channel"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
+dependencies = [
+ "futures-core",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
+
+[[package]]
+name = "futures-executor"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432"
+dependencies = [
+ "futures-core",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-io"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
+
+[[package]]
+name = "futures-lite"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"
+dependencies = [
+ "fastrand",
+ "futures-core",
+ "futures-io",
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "futures-macro"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "futures-sink"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
+
+[[package]]
+name = "futures-task"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
+
+[[package]]
+name = "futures-util"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
+dependencies = [
+ "futures-core",
+ "futures-io",
+ "futures-macro",
+ "futures-sink",
+ "futures-task",
+ "memchr",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "gdk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691"
+dependencies = [
+ "cairo-rs",
+ "gdk-pixbuf",
+ "gdk-sys",
+ "gio",
+ "glib",
+ "libc",
+ "pango",
+]
+
+[[package]]
+name = "gdk-pixbuf"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec"
+dependencies = [
+ "gdk-pixbuf-sys",
+ "gio",
+ "glib",
+ "libc",
+ "once_cell",
+]
+
+[[package]]
+name = "gdk-pixbuf-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7"
+dependencies = [
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "gdk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7"
+dependencies = [
+ "cairo-sys-rs",
+ "gdk-pixbuf-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pango-sys",
+ "pkg-config",
+ "system-deps",
+]
+
+[[package]]
+name = "gdkwayland-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69"
+dependencies = [
+ "gdk-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pkg-config",
+ "system-deps",
+]
+
+[[package]]
+name = "gdkx11"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe"
+dependencies = [
+ "gdk",
+ "gdkx11-sys",
+ "gio",
+ "glib",
+ "libc",
+ "x11",
+]
+
+[[package]]
+name = "gdkx11-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d"
+dependencies = [
+ "gdk-sys",
+ "glib-sys",
+ "libc",
+ "system-deps",
+ "x11",
+]
+
+[[package]]
+name = "generic-array"
+version = "0.14.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
+dependencies = [
+ "typenum",
+ "version_check",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 5.3.0",
+ "wasip2",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 6.0.0",
+]
+
+[[package]]
+name = "gio"
+version = "0.18.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-io",
+ "futures-util",
+ "gio-sys",
+ "glib",
+ "libc",
+ "once_cell",
+ "pin-project-lite",
+ "smallvec",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "gio-sys"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+ "winapi",
+]
+
+[[package]]
+name = "glib"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"
+dependencies = [
+ "bitflags 2.13.2",
+ "futures-channel",
+ "futures-core",
+ "futures-executor",
+ "futures-task",
+ "futures-util",
+ "gio-sys",
+ "glib-macros",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "memchr",
+ "once_cell",
+ "smallvec",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "glib-macros"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc"
+dependencies = [
+ "heck 0.4.1",
+ "proc-macro-crate 2.0.2",
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "glib-sys"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898"
+dependencies = [
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "glob"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
+
+[[package]]
+name = "gobject-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44"
+dependencies = [
+ "glib-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "gtk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a"
+dependencies = [
+ "atk",
+ "cairo-rs",
+ "field-offset",
+ "futures-channel",
+ "gdk",
+ "gdk-pixbuf",
+ "gio",
+ "glib",
+ "gtk-sys",
+ "gtk3-macros",
+ "libc",
+ "pango",
+ "pkg-config",
+]
+
+[[package]]
+name = "gtk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414"
+dependencies = [
+ "atk-sys",
+ "cairo-sys-rs",
+ "gdk-pixbuf-sys",
+ "gdk-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pango-sys",
+ "system-deps",
+]
+
+[[package]]
+name = "gtk3-macros"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d"
+dependencies = [
+ "proc-macro-crate 1.3.1",
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
+
+[[package]]
+name = "hashbrown"
+version = "0.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
+
+[[package]]
+name = "heck"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
+
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
+[[package]]
+name = "hermit-abi"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
+
+[[package]]
+name = "hex"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+
+[[package]]
+name = "html5ever"
+version = "0.39.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8"
+dependencies = [
+ "log",
+ "markup5ever 0.39.0",
+]
+
+[[package]]
+name = "html5ever"
+version = "0.40.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "456a1a377e608e555d22ddab27ac0114bc7a7b4199078108e34c2aeae6c9b130"
+dependencies = [
+ "log",
+ "markup5ever 0.40.0",
+ "memchr",
+]
+
+[[package]]
+name = "http"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
+dependencies = [
+ "bytes",
+ "itoa",
+]
+
+[[package]]
+name = "http-body"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"
+dependencies = [
+ "bytes",
+ "http",
+]
+
+[[package]]
+name = "http-body-util"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "http",
+ "http-body",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "httparse"
+version = "1.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
+
+[[package]]
+name = "hyper"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c"
+dependencies = [
+ "atomic-waker",
+ "bytes",
+ "futures-core",
+ "http",
+ "http-body",
+ "httparse",
+ "itoa",
+ "pin-project-lite",
+ "smallvec",
+ "tokio",
+ "want",
+]
+
+[[package]]
+name = "hyper-util"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff"
+dependencies = [
+ "base64 0.23.1",
+ "bytes",
+ "futures-channel",
+ "futures-util",
+ "http",
+ "http-body",
+ "httparse",
+ "hyper",
+ "ipnet",
+ "libc",
+ "percent-encoding",
+ "pin-project-lite",
+ "socket2",
+ "tokio",
+ "tower-service",
+ "tracing",
+]
+
+[[package]]
+name = "iana-time-zone"
+version = "0.1.65"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
+dependencies = [
+ "android_system_properties",
+ "core-foundation-sys",
+ "iana-time-zone-haiku",
+ "js-sys",
+ "log",
+ "wasm-bindgen",
+ "windows-core",
+]
+
+[[package]]
+name = "iana-time-zone-haiku"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "ico"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d75e94d66081e4d8dcd098bd8dc5254800fea14a26389b298410158d834de167"
+dependencies = [
+ "byteorder",
+ "png",
+]
+
+[[package]]
+name = "icu_collections"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd"
+dependencies = [
+ "displaydoc",
+ "potential_utf",
+ "utf8_iter",
+ "yoke",
+ "zerofrom",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_locale_core"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
+dependencies = [
+ "displaydoc",
+ "litemap",
+ "tinystr",
+ "writeable",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599"
+dependencies = [
+ "icu_collections",
+ "icu_normalizer_data",
+ "icu_properties",
+ "icu_provider",
+ "smallvec",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer_data"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc"
+
+[[package]]
+name = "icu_properties"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f"
+dependencies = [
+ "displaydoc",
+ "icu_collections",
+ "icu_locale_core",
+ "icu_properties_data",
+ "icu_provider",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_properties_data"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf"
+
+[[package]]
+name = "icu_provider"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514"
+dependencies = [
+ "displaydoc",
+ "icu_locale_core",
+ "writeable",
+ "yoke",
+ "zerofrom",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "ident_case"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+
+[[package]]
+name = "idna"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
+dependencies = [
+ "idna_adapter",
+ "smallvec",
+ "utf8_iter",
+]
+
+[[package]]
+name = "idna_adapter"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
+dependencies = [
+ "icu_normalizer",
+ "icu_properties",
+]
+
+[[package]]
+name = "indexmap"
+version = "1.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
+dependencies = [
+ "autocfg",
+ "hashbrown 0.12.3",
+ "serde",
+]
+
+[[package]]
+name = "indexmap"
+version = "2.14.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
+dependencies = [
+ "equivalent",
+ "hashbrown 0.17.1",
+ "serde",
+ "serde_core",
+]
+
+[[package]]
+name = "infer"
+version = "0.22.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f4200d433cbd5178df7797c9c2e75b348b728e39631cf14520d1e2fc424201f4"
+dependencies = [
+ "cfb",
+]
+
+[[package]]
+name = "ipnet"
+version = "2.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0"
+
+[[package]]
+name = "is-docker"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3"
+dependencies = [
+ "once_cell",
+]
+
+[[package]]
+name = "is-wsl"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5"
+dependencies = [
+ "is-docker",
+ "once_cell",
+]
+
+[[package]]
+name = "itoa"
+version = "1.0.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
+
+[[package]]
+name = "javascriptcore-rs"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc"
+dependencies = [
+ "bitflags 1.3.2",
+ "glib",
+ "javascriptcore-rs-sys",
+]
+
+[[package]]
+name = "javascriptcore-rs-sys"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "jiff"
+version = "0.2.42"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fefca06093eeaed707a905795e68206da0edca4edef23d2a3997a3ddbee462aa"
+dependencies = [
+ "jiff-core",
+ "jiff-static",
+ "jiff-tzdb-platform",
+ "log",
+ "portable-atomic",
+ "portable-atomic-util",
+ "serde_core",
+ "windows-link",
+]
+
+[[package]]
+name = "jiff-core"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77a24020db0ee88d1c681d677681bd31f9f4ea189a455425223d52ce4f1508aa"
+dependencies = [
+ "log",
+]
+
+[[package]]
+name = "jiff-static"
+version = "0.2.42"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41d3213549742662eea1a18e6c5af9be5dfbabeb7611ab71356a54928ec398f0"
+dependencies = [
+ "jiff-core",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "jiff-tzdb"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa8377070c6bae868759445e5a77f66d84f0b72f3a054bfb00e6d038b8282da7"
+
+[[package]]
+name = "jiff-tzdb-platform"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8"
+dependencies = [
+ "jiff-tzdb",
+]
+
+[[package]]
+name = "jni"
+version = "0.21.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"
+dependencies = [
+ "cesu8",
+ "cfg-if",
+ "combine",
+ "jni-sys 0.3.1",
+ "log",
+ "thiserror 1.0.69",
+ "walkdir",
+ "windows-sys 0.45.0",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"
+dependencies = [
+ "jni-sys 0.4.1",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
+dependencies = [
+ "jni-sys-macros",
+]
+
+[[package]]
+name = "jni-sys-macros"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
+dependencies = [
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "js-sys"
+version = "0.3.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a"
+dependencies = [
+ "cfg-if",
+ "futures-util",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "json-patch"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72"
+dependencies = [
+ "jsonptr",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "jsonptr"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5a3cc660ba5d72bce0b3bb295bf20847ccbb40fd423f3f05b61273672e561fe"
+dependencies = [
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "keyboard-types"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fbe853b403ae61a04233030ae8a79d94975281ed9770a1f9e246732b534b28d"
+dependencies = [
+ "bitflags 2.13.2",
+ "serde",
+]
+
+[[package]]
+name = "libappindicator"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a"
+dependencies = [
+ "glib",
+ "gtk",
+ "gtk-sys",
+ "libappindicator-sys",
+ "log",
+]
+
+[[package]]
+name = "libappindicator-sys"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf"
+dependencies = [
+ "gtk-sys",
+ "libloading",
+ "once_cell",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.191"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
+
+[[package]]
+name = "libdbus-sys"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043"
+dependencies = [
+ "pkg-config",
+]
+
+[[package]]
+name = "libloading"
+version = "0.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
+dependencies = [
+ "cfg-if",
+ "winapi",
+]
+
+[[package]]
+name = "libredox"
+version = "0.1.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
+
+[[package]]
+name = "litemap"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
+
+[[package]]
+name = "lock_api"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
+
+[[package]]
+name = "luatos-flasher"
+version = "0.1.0"
+dependencies = [
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-build",
+ "tauri-plugin-dialog",
+ "tauri-plugin-opener",
+ "tauri-plugin-shell",
+ "tokio",
+]
+
+[[package]]
+name = "markup5ever"
+version = "0.39.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"
+dependencies = [
+ "log",
+ "tendril",
+ "web_atoms 0.2.6",
+]
+
+[[package]]
+name = "markup5ever"
+version = "0.40.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ab3dc68ac4a0f5719e560136778c1ee716e296030d75dbd4484e37e39e3a842"
+dependencies = [
+ "log",
+ "tendril",
+ "web_atoms 0.3.0",
+]
+
+[[package]]
+name = "memchr"
+version = "2.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
+
+[[package]]
+name = "memoffset"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "mime"
+version = "0.3.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d5848f5a9e8117cf94f2f90faac24a87ff81600ff8628c1e3deaab572e76bfa1"
+
+[[package]]
+name = "miniz_oxide"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "miniz_oxide"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "mio"
+version = "1.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee"
+dependencies = [
+ "libc",
+ "wasi",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "muda"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996"
+dependencies = [
+ "crossbeam-channel",
+ "dpi",
+ "gtk",
+ "keyboard-types",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "once_cell",
+ "png",
+ "serde",
+ "thiserror 2.0.21",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "multiversion_no_op"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d"
+
+[[package]]
+name = "ndk"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
+dependencies = [
+ "bitflags 2.13.2",
+ "jni-sys 0.3.1",
+ "log",
+ "ndk-sys",
+ "num_enum",
+ "raw-window-handle",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "ndk-context"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
+
+[[package]]
+name = "ndk-sys"
+version = "0.6.0+11769913"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"
+dependencies = [
+ "jni-sys 0.3.1",
+]
+
+[[package]]
+name = "new_debug_unreachable"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
+
+[[package]]
+name = "num-conv"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
+
+[[package]]
+name = "num-traits"
+version = "0.2.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "num_enum"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"
+dependencies = [
+ "num_enum_derive",
+ "rustversion",
+]
+
+[[package]]
+name = "num_enum_derive"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "objc2"
+version = "0.6.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8"
+dependencies = [
+ "objc2-encode",
+ "objc2-exception-helper",
+]
+
+[[package]]
+name = "objc2-app-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "objc2-quartz-core",
+]
+
+[[package]]
+name = "objc2-cloud-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
+dependencies = [
+ "bitflags 2.13.2",
+ "dispatch2",
+ "objc2",
+]
+
+[[package]]
+name = "objc2-core-graphics"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
+dependencies = [
+ "bitflags 2.13.2",
+ "dispatch2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-io-surface",
+]
+
+[[package]]
+name = "objc2-core-image"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-location"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-text"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+]
+
+[[package]]
+name = "objc2-encode"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+
+[[package]]
+name = "objc2-exception-helper"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "objc2-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "libc",
+ "objc2",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-io-surface"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "objc2",
+ "objc2-cloud-kit",
+ "objc2-core-data",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-core-image",
+ "objc2-core-location",
+ "objc2-core-text",
+ "objc2-foundation",
+ "objc2-quartz-core",
+ "objc2-user-notifications",
+]
+
+[[package]]
+name = "objc2-user-notifications"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-web-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+
+[[package]]
+name = "open"
+version = "5.4.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d8c8b8e725ad26404d6896eb2f064294a0a7b4f1d9120210d85544684c4ca95"
+dependencies = [
+ "dunce",
+ "is-wsl",
+ "libc",
+]
+
+[[package]]
+name = "option-ext"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
+
+[[package]]
+name = "ordered-stream"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "os_pipe"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "pango"
+version = "0.18.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4"
+dependencies = [
+ "gio",
+ "glib",
+ "libc",
+ "once_cell",
+ "pango-sys",
+]
+
+[[package]]
+name = "pango-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "parking"
+version = "2.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-link",
+]
+
+[[package]]
+name = "percent-encoding"
+version = "2.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
+
+[[package]]
+name = "phf"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
+dependencies = [
+ "phf_macros 0.13.1",
+ "phf_shared 0.13.1",
+ "serde",
+]
+
+[[package]]
+name = "phf"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6"
+dependencies = [
+ "phf_macros 0.14.0",
+ "phf_shared 0.14.0",
+ "serde",
+]
+
+[[package]]
+name = "phf_codegen"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
+dependencies = [
+ "phf_generator 0.13.1",
+ "phf_shared 0.13.1",
+]
+
+[[package]]
+name = "phf_codegen"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41b585a510fb76fdebead6897982ef2a03a21d8e6cbcca904999742a4afc6ffe"
+dependencies = [
+ "phf_generator 0.14.0",
+ "phf_shared 0.14.0",
+]
+
+[[package]]
+name = "phf_generator"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
+dependencies = [
+ "fastrand",
+ "phf_shared 0.13.1",
+]
+
+[[package]]
+name = "phf_generator"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100"
+dependencies = [
+ "fastrand",
+ "phf_shared 0.14.0",
+]
+
+[[package]]
+name = "phf_macros"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
+dependencies = [
+ "phf_generator 0.13.1",
+ "phf_shared 0.13.1",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "phf_macros"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085"
+dependencies = [
+ "phf_generator 0.14.0",
+ "phf_shared 0.14.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
+dependencies = [
+ "siphasher",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89"
+dependencies = [
+ "siphasher",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
+
+[[package]]
+name = "piper"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+dependencies = [
+ "atomic-waker",
+ "fastrand",
+ "futures-io",
+]
+
+[[package]]
+name = "pkg-config"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
+
+[[package]]
+name = "plist"
+version = "1.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "327a4cb2ad49dc48adfdc9da89e22c64d488b508c67a044d71ba729e4521a285"
+dependencies = [
+ "base64 0.23.1",
+ "indexmap 2.14.2",
+ "quick-xml",
+ "serde",
+ "time",
+]
+
+[[package]]
+name = "png"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
+dependencies = [
+ "bitflags 2.13.2",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide 0.8.9",
+]
+
+[[package]]
+name = "polling"
+version = "3.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
+dependencies = [
+ "cfg-if",
+ "concurrent-queue",
+ "hermit-abi",
+ "pin-project-lite",
+ "rustix",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "portable-atomic"
+version = "1.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
+
+[[package]]
+name = "portable-atomic-util"
+version = "0.2.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
+dependencies = [
+ "portable-atomic",
+]
+
+[[package]]
+name = "potential_utf"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
+dependencies = [
+ "zerovec",
+]
+
+[[package]]
+name = "powerfmt"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958"
+
+[[package]]
+name = "precomputed-hash"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
+
+[[package]]
+name = "proc-macro-crate"
+version = "1.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
+dependencies = [
+ "once_cell",
+ "toml_edit 0.19.15",
+]
+
+[[package]]
+name = "proc-macro-crate"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"
+dependencies = [
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
+]
+
+[[package]]
+name = "proc-macro-crate"
+version = "3.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
+dependencies = [
+ "toml_edit 0.25.19+spec-1.1.0",
+]
+
+[[package]]
+name = "proc-macro-error"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
+dependencies = [
+ "proc-macro-error-attr",
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+ "version_check",
+]
+
+[[package]]
+name = "proc-macro-error-attr"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "version_check",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quick-xml"
+version = "0.42.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "r-efi"
+version = "5.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
+
+[[package]]
+name = "r-efi"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
+
+[[package]]
+name = "raw-window-handle"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
+
+[[package]]
+name = "redox_syscall"
+version = "0.5.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
+dependencies = [
+ "bitflags 2.13.2",
+]
+
+[[package]]
+name = "redox_users"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60dc65c0ff1a7ae1294b0c67b9f14baf70b644404010370171787bfac1038fc0"
+dependencies = [
+ "libredox",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "ref-cast"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"
+dependencies = [
+ "ref-cast-impl",
+]
+
+[[package]]
+name = "ref-cast-impl"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "regex"
+version = "1.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-automata",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-automata"
+version = "0.4.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-syntax"
+version = "0.8.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
+
+[[package]]
+name = "reqwest"
+version = "0.13.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029"
+dependencies = [
+ "base64 0.23.1",
+ "bytes",
+ "futures-core",
+ "futures-util",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-util",
+ "js-sys",
+ "log",
+ "percent-encoding",
+ "pin-project-lite",
+ "serde",
+ "serde_json",
+ "sync_wrapper",
+ "tokio",
+ "tokio-util",
+ "tower",
+ "tower-http",
+ "tower-service",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "wasm-streams",
+ "web-sys",
+]
+
+[[package]]
+name = "rfd"
+version = "0.17.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20dafead71c16a34e1ff357ddefc8afc11e7d51d6d2b9fbd07eaa48e3e540220"
+dependencies = [
+ "block2",
+ "dispatch2",
+ "glib-sys",
+ "gobject-sys",
+ "gtk-sys",
+ "js-sys",
+ "libc",
+ "log",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "percent-encoding",
+ "raw-window-handle",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "rustc-hash"
+version = "2.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
+
+[[package]]
+name = "rustc_version"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
+dependencies = [
+ "semver",
+]
+
+[[package]]
+name = "rustix"
+version = "1.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
+dependencies = [
+ "bitflags 2.13.2",
+ "errno",
+ "libc",
+ "linux-raw-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
+
+[[package]]
+name = "same-file"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "schemars"
+version = "0.8.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615"
+dependencies = [
+ "dyn-clone",
+ "indexmap 1.9.3",
+ "schemars_derive",
+ "serde",
+ "serde_json",
+ "url",
+ "uuid",
+]
+
+[[package]]
+name = "schemars"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab508826f74a77ca9d5aba6ff19b522583ee3eaf28a19384ff3d0e5835fadf6e"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars_derive"
+version = "0.8.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde_derive_internals",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "selectors"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"
+dependencies = [
+ "bitflags 2.13.2",
+ "cssparser 0.37.0",
+ "derive_more",
+ "log",
+ "new_debug_unreachable",
+ "phf 0.13.1",
+ "phf_codegen 0.13.1",
+ "precomputed-hash",
+ "rustc-hash",
+ "servo_arc 0.4.3",
+ "smallvec",
+]
+
+[[package]]
+name = "selectors"
+version = "0.41.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8322aebea94a6cc288ff884e8a49bdbceef60206c400c6c46d22e62fc4fd91a6"
+dependencies = [
+ "bitflags 2.13.2",
+ "cssparser 0.38.0",
+ "derive_more",
+ "log",
+ "new_debug_unreachable",
+ "precomputed-hash",
+ "rustc-hash",
+ "servo_arc 0.5.0",
+ "smallvec",
+]
+
+[[package]]
+name = "semver"
+version = "1.0.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
+dependencies = [
+ "serde",
+ "serde_core",
+]
+
+[[package]]
+name = "serde"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
+dependencies = [
+ "serde_core",
+ "serde_derive",
+]
+
+[[package]]
+name = "serde-untagged"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"
+dependencies = [
+ "erased-serde",
+ "serde",
+ "serde_core",
+ "typeid",
+]
+
+[[package]]
+name = "serde_core"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "serde_derive_internals"
+version = "0.29.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "serde_json"
+version = "1.0.154"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
+dependencies = [
+ "itoa",
+ "memchr",
+ "serde",
+ "serde_core",
+ "zmij",
+]
+
+[[package]]
+name = "serde_repr"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "0.6.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "1.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "serde_with"
+version = "3.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f"
+dependencies = [
+ "base64 0.23.1",
+ "bs58",
+ "chrono",
+ "hex",
+ "indexmap 1.9.3",
+ "indexmap 2.14.2",
+ "jiff",
+ "schemars 0.9.0",
+ "schemars 1.2.3",
+ "serde_core",
+ "serde_json",
+ "serde_with_macros",
+ "time",
+]
+
+[[package]]
+name = "serde_with_macros"
+version = "3.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3e17bbc68e28663bbbb90df47e058aa7eda4fb445b89fe70457bb94fbccf6e49"
+dependencies = [
+ "darling",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "serialize-to-javascript"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5"
+dependencies = [
+ "serde",
+ "serde_json",
+ "serialize-to-javascript-impl",
+]
+
+[[package]]
+name = "serialize-to-javascript-impl"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "servo_arc"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"
+dependencies = [
+ "stable_deref_trait",
+]
+
+[[package]]
+name = "servo_arc"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4eceb519ec34d8290aaf6e46f435102f2bfa63f22b05a144fb16ab266d3b198"
+dependencies = [
+ "stable_deref_trait",
+]
+
+[[package]]
+name = "sha2"
+version = "0.10.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
+dependencies = [
+ "cfg-if",
+ "cpufeatures",
+ "digest",
+]
+
+[[package]]
+name = "shared_child"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "607549934f6cc26b89cfecfdc46fa90f1e5d1536a68349b0c3a4f9d1c0d37959"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "shlex"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+dependencies = [
+ "errno",
+ "libc",
+]
+
+[[package]]
+name = "simd-adler32"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
+
+[[package]]
+name = "simdutf8"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
+
+[[package]]
+name = "siphasher"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256"
+
+[[package]]
+name = "slab"
+version = "0.4.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+
+[[package]]
+name = "smallvec"
+version = "1.16.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46"
+
+[[package]]
+name = "socket2"
+version = "0.6.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "softbuffer"
+version = "0.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3"
+dependencies = [
+ "bytemuck",
+ "js-sys",
+ "ndk",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation",
+ "objc2-quartz-core",
+ "raw-window-handle",
+ "redox_syscall",
+ "tracing",
+ "wasm-bindgen",
+ "web-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "soup3"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f"
+dependencies = [
+ "futures-channel",
+ "gio",
+ "glib",
+ "libc",
+ "soup3-sys",
+]
+
+[[package]]
+name = "soup3-sys"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27"
+dependencies = [
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "stable_deref_trait"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+
+[[package]]
+name = "static_vcruntime"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff7589a1859b09232522bb9edf076ca7fcf14ded96685d3fa629db73023ffbb7"
+
+[[package]]
+name = "string_cache"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
+dependencies = [
+ "new_debug_unreachable",
+ "parking_lot",
+ "phf_shared 0.13.1",
+ "precomputed-hash",
+]
+
+[[package]]
+name = "string_cache"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ffa8a5dbe8b3f0bbe29d4c3225daafaeead63afdc1b65fc4c01a1384166038e6"
+dependencies = [
+ "new_debug_unreachable",
+ "parking_lot",
+ "phf_shared 0.14.0",
+ "precomputed-hash",
+]
+
+[[package]]
+name = "string_cache_codegen"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
+dependencies = [
+ "phf_generator 0.13.1",
+ "phf_shared 0.13.1",
+ "proc-macro2",
+ "quote",
+]
+
+[[package]]
+name = "string_cache_codegen"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "928dcdf75e47626b3617a976ec205d9f057584c371c1f23b782129268d0e6edc"
+dependencies = [
+ "phf_generator 0.14.0",
+ "phf_shared 0.14.0",
+ "proc-macro2",
+ "quote",
+]
+
+[[package]]
+name = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "swift-rs"
+version = "1.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cefd87076fd385308ee4aff597256c902f1fbb4d031de1558efc12f8ffefadd9"
+dependencies = [
+ "base64 0.21.7",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "syn"
+version = "1.0.109"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
+dependencies = [
+ "proc-macro2",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "sync_wrapper"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
+dependencies = [
+ "futures-core",
+]
+
+[[package]]
+name = "synstructure"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "system-deps"
+version = "6.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349"
+dependencies = [
+ "cfg-expr",
+ "heck 0.5.0",
+ "pkg-config",
+ "toml 0.8.2",
+ "version-compare",
+]
+
+[[package]]
+name = "tao"
+version = "0.37.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d5777b06fe6435126ae8d816eba269e050e1e10d302cf5461e9c49eccabc3548"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "core-foundation",
+ "core-graphics",
+ "crossbeam-channel",
+ "dbus",
+ "dispatch2",
+ "dlopen2",
+ "dpi",
+ "gdkwayland-sys",
+ "gdkx11-sys",
+ "gtk",
+ "jni",
+ "libc",
+ "log",
+ "ndk",
+ "ndk-context",
+ "ndk-sys",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-foundation",
+ "objc2-ui-kit",
+ "parking_lot",
+ "percent-encoding",
+ "raw-window-handle",
+ "tao-macros",
+ "unicode-segmentation",
+ "url",
+ "windows",
+ "windows-core",
+ "windows-version",
+ "x11-dl",
+]
+
+[[package]]
+name = "tao-macros"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "target-lexicon"
+version = "0.12.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
+
+[[package]]
+name = "tauri"
+version = "2.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fb0244332cfb9cee7e2a568bf5da29a36ed8fdbd717f6f47a66b6b7b358c072"
+dependencies = [
+ "anyhow",
+ "bytes",
+ "cookie",
+ "dirs",
+ "dunce",
+ "embed_plist",
+ "getrandom 0.3.4",
+ "glob",
+ "gtk",
+ "heck 0.5.0",
+ "http",
+ "jni",
+ "libc",
+ "log",
+ "mime",
+ "muda",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-foundation",
+ "objc2-ui-kit",
+ "objc2-web-kit",
+ "percent-encoding",
+ "plist",
+ "raw-window-handle",
+ "reqwest",
+ "serde",
+ "serde_json",
+ "serde_repr",
+ "serialize-to-javascript",
+ "swift-rs",
+ "tauri-build",
+ "tauri-macros",
+ "tauri-runtime",
+ "tauri-runtime-wry",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "tokio",
+ "tray-icon",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "window-vibrancy",
+ "windows",
+]
+
+[[package]]
+name = "tauri-build"
+version = "2.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "adddb0e648752aaac5da9c3c3c6a68e1e87cab55e3b757b18a9441ef8c3ac614"
+dependencies = [
+ "anyhow",
+ "cargo_toml",
+ "dirs",
+ "glob",
+ "heck 0.5.0",
+ "json-patch",
+ "schemars 0.8.22",
+ "semver",
+ "serde",
+ "serde_json",
+ "static_vcruntime",
+ "strsim",
+ "tauri-utils",
+ "tauri-winres",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-codegen"
+version = "2.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fb37631cf71dab5e8ab55e1bdd701e18a52653d90b78e71d0e5598b1e0a61316"
+dependencies = [
+ "base64 0.23.1",
+ "brotli",
+ "ico",
+ "json-patch",
+ "plist",
+ "png",
+ "proc-macro2",
+ "quote",
+ "semver",
+ "serde",
+ "serde_json",
+ "sha2",
+ "syn 2.0.119",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "time",
+ "url",
+ "uuid",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-macros"
+version = "2.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0cc38db58854c10fb5f91a887ed8bf82d3239bb92b5d8db86eda09e96d9963d1"
+dependencies = [
+ "heck 0.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "tauri-codegen",
+ "tauri-utils",
+]
+
+[[package]]
+name = "tauri-plugin"
+version = "2.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67fb21a77e8f94e8beb3325e583102488659365af0a3948b7ea244c5b779c291"
+dependencies = [
+ "anyhow",
+ "glob",
+ "plist",
+ "schemars 0.8.22",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-plugin-dialog"
+version = "2.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce0fb9c2b6d34a9720627ed930ebc8af26f61e648695aecaeb03d5c33c5896f5"
+dependencies = [
+ "log",
+ "raw-window-handle",
+ "rfd",
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-plugin",
+ "tauri-plugin-fs",
+ "thiserror 2.0.21",
+ "url",
+]
+
+[[package]]
+name = "tauri-plugin-fs"
+version = "2.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d58eb1d4984e535f47a642ffec09a2da6f5c18a12b5902d12126cb7626d628b"
+dependencies = [
+ "anyhow",
+ "dunce",
+ "glob",
+ "log",
+ "objc2-foundation",
+ "percent-encoding",
+ "schemars 0.8.22",
+ "serde",
+ "serde_json",
+ "serde_repr",
+ "tauri",
+ "tauri-plugin",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "toml 1.2.1+spec-1.1.0",
+ "url",
+]
+
+[[package]]
+name = "tauri-plugin-opener"
+version = "2.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "54592c6718b42ab198bf11bda6a428a3553ca2f2f8e506df56f6a063ec328331"
+dependencies = [
+ "dunce",
+ "glob",
+ "objc2-app-kit",
+ "objc2-foundation",
+ "open",
+ "schemars 0.8.22",
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-plugin",
+ "thiserror 2.0.21",
+ "url",
+ "windows",
+ "zbus",
+]
+
+[[package]]
+name = "tauri-plugin-shell"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7375b25f72f70f6168f27f1ba3a413e30eaa0a2098cff53a4046ebfe9e2f142d"
+dependencies = [
+ "encoding_rs",
+ "libc",
+ "log",
+ "open",
+ "os_pipe",
+ "regex",
+ "schemars 0.8.22",
+ "serde",
+ "serde_json",
+ "shared_child",
+ "tauri",
+ "tauri-plugin",
+ "thiserror 2.0.21",
+ "tokio",
+ "windows-sys 0.60.2",
+]
+
+[[package]]
+name = "tauri-runtime"
+version = "2.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7c55766d99cea69055904d1735b93c2049302b2e09effd462120deb5581d78e9"
+dependencies = [
+ "cookie",
+ "dpi",
+ "gtk",
+ "http",
+ "jni",
+ "objc2",
+ "objc2-ui-kit",
+ "objc2-web-kit",
+ "raw-window-handle",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "windows",
+]
+
+[[package]]
+name = "tauri-runtime-wry"
+version = "2.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1aa9d8b7a120f879f44fdc1053f7b7dbf416bf0bbc6a72b714dec46b782b52f"
+dependencies = [
+ "gtk",
+ "http",
+ "jni",
+ "log",
+ "objc2",
+ "objc2-app-kit",
+ "percent-encoding",
+ "raw-window-handle",
+ "softbuffer",
+ "tao",
+ "tauri-runtime",
+ "tauri-utils",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "windows",
+ "wry",
+]
+
+[[package]]
+name = "tauri-utils"
+version = "2.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "362ab21cd4cc713f2a02b1a9b5688198b1541cfb6907c4281e9190e0f0ef4aa3"
+dependencies = [
+ "anyhow",
+ "brotli",
+ "cargo_metadata",
+ "ctor",
+ "dom_query 0.28.0",
+ "dunce",
+ "glob",
+ "http",
+ "infer",
+ "json-patch",
+ "log",
+ "memchr",
+ "phf 0.13.1",
+ "plist",
+ "proc-macro2",
+ "quote",
+ "regex",
+ "schemars 0.8.22",
+ "semver",
+ "serde",
+ "serde-untagged",
+ "serde_json",
+ "serde_with",
+ "swift-rs",
+ "thiserror 2.0.21",
+ "toml 1.2.1+spec-1.1.0",
+ "url",
+ "urlpattern",
+ "uuid",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-winres"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c52bb6904475a6ca662f15ef787f18ade61d5740a1ee12c45d3b748efdb6f796"
+dependencies = [
+ "dunce",
+ "embed-resource",
+ "toml 1.2.1+spec-1.1.0",
+]
+
+[[package]]
+name = "tempfile"
+version = "3.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
+dependencies = [
+ "fastrand",
+ "getrandom 0.4.3",
+ "once_cell",
+ "rustix",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "tendril"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08"
+dependencies = [
+ "new_debug_unreachable",
+]
+
+[[package]]
+name = "thiserror"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
+dependencies = [
+ "thiserror-impl 1.0.69",
+]
+
+[[package]]
+name = "thiserror"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
+dependencies = [
+ "thiserror-impl 2.0.21",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "time"
+version = "0.3.55"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
+dependencies = [
+ "deranged",
+ "num-conv",
+ "powerfmt",
+ "serde_core",
+ "time-core",
+ "time-macros",
+]
+
+[[package]]
+name = "time-core"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
+
+[[package]]
+name = "time-macros"
+version = "0.2.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"
+dependencies = [
+ "num-conv",
+ "time-core",
+]
+
+[[package]]
+name = "tinystr"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
+dependencies = [
+ "displaydoc",
+ "zerovec",
+]
+
+[[package]]
+name = "tinyvec"
+version = "1.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
+
+[[package]]
+name = "tokio"
+version = "1.54.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3"
+dependencies = [
+ "bytes",
+ "libc",
+ "mio",
+ "pin-project-lite",
+ "socket2",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "tokio-util"
+version = "0.7.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "futures-sink",
+ "pin-project-lite",
+ "tokio",
+]
+
+[[package]]
+name = "toml"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d"
+dependencies = [
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
+]
+
+[[package]]
+name = "toml"
+version = "1.2.1+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7"
+dependencies = [
+ "indexmap 2.14.2",
+ "serde_core",
+ "serde_spanned 1.1.3",
+ "toml_datetime 1.1.3+spec-1.1.0",
+ "toml_parser",
+ "toml_writer",
+ "winnow 1.0.5",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "1.1.3+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.19.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
+dependencies = [
+ "indexmap 2.14.2",
+ "toml_datetime 0.6.3",
+ "winnow 0.5.40",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"
+dependencies = [
+ "indexmap 2.14.2",
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.3",
+ "winnow 0.5.40",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.25.19+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218"
+dependencies = [
+ "indexmap 2.14.2",
+ "toml_datetime 1.1.3+spec-1.1.0",
+ "toml_parser",
+ "winnow 1.0.5",
+]
+
+[[package]]
+name = "toml_parser"
+version = "1.1.5+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c"
+dependencies = [
+ "winnow 1.0.5",
+]
+
+[[package]]
+name = "toml_writer"
+version = "1.2.0+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a"
+
+[[package]]
+name = "tower"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
+dependencies = [
+ "futures-core",
+ "futures-util",
+ "pin-project-lite",
+ "sync_wrapper",
+ "tokio",
+ "tower-layer",
+ "tower-service",
+]
+
+[[package]]
+name = "tower-http"
+version = "0.6.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
+dependencies = [
+ "bitflags 2.13.2",
+ "bytes",
+ "futures-util",
+ "http",
+ "http-body",
+ "pin-project-lite",
+ "tower",
+ "tower-layer",
+ "tower-service",
+ "url",
+]
+
+[[package]]
+name = "tower-layer"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
+
+[[package]]
+name = "tower-service"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
+
+[[package]]
+name = "tracing"
+version = "0.1.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
+dependencies = [
+ "pin-project-lite",
+ "tracing-attributes",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-attributes"
+version = "0.1.31"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "tracing-core"
+version = "0.1.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
+dependencies = [
+ "once_cell",
+]
+
+[[package]]
+name = "tray-icon"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2b9c52859a94554803ccd4a24b98f74148ebc73b90676d783f3490b1bff9d72"
+dependencies = [
+ "crossbeam-channel",
+ "dirs",
+ "libappindicator",
+ "muda",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation",
+ "once_cell",
+ "png",
+ "serde",
+ "thiserror 2.0.21",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "try-lock"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
+
+[[package]]
+name = "typeid"
+version = "1.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
+
+[[package]]
+name = "typenum"
+version = "1.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
+
+[[package]]
+name = "uds_windows"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
+dependencies = [
+ "memoffset",
+ "tempfile",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
+
+[[package]]
+name = "unicode-segmentation"
+version = "1.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
+
+[[package]]
+name = "url"
+version = "2.5.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
+dependencies = [
+ "form_urlencoded",
+ "idna",
+ "percent-encoding",
+ "serde",
+ "serde_derive",
+]
+
+[[package]]
+name = "urlpattern"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df16f50ef4cc145211879a3867ba757076b25dfee812040dcb0658bd9ae7904b"
+dependencies = [
+ "icu_properties",
+ "regex",
+ "serde",
+ "url",
+]
+
+[[package]]
+name = "utf8_iter"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0"
+dependencies = [
+ "utf_types",
+]
+
+[[package]]
+name = "utf_types"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6"
+
+[[package]]
+name = "uuid"
+version = "1.29.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c"
+dependencies = [
+ "getrandom 0.4.3",
+ "js-sys",
+ "serde_core",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "version-compare"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e"
+
+[[package]]
+name = "version_check"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+
+[[package]]
+name = "vswhom"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"
+dependencies = [
+ "libc",
+ "vswhom-sys",
+]
+
+[[package]]
+name = "vswhom-sys"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"
+dependencies = [
+ "cc",
+ "libc",
+]
+
+[[package]]
+name = "walkdir"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
+dependencies = [
+ "same-file",
+ "winapi-util",
+]
+
+[[package]]
+name = "want"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b"
+dependencies = [
+ "try-lock",
+]
+
+[[package]]
+name = "wasi"
+version = "0.11.1+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
+
+[[package]]
+name = "wasip2"
+version = "1.0.4+wasi-0.2.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
+dependencies = [
+ "wit-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c"
+dependencies = [
+ "cfg-if",
+ "rustversion",
+ "wasm-bindgen-macro",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-futures"
+version = "0.4.80"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501"
+dependencies = [
+ "js-sys",
+ "tokio",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen-macro"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9"
+dependencies = [
+ "quote",
+ "wasm-bindgen-macro-support",
+]
+
+[[package]]
+name = "wasm-bindgen-macro-support"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a"
+dependencies = [
+ "bumpalo",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-shared"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "wasm-streams"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb"
+dependencies = [
+ "futures-util",
+ "js-sys",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+]
+
+[[package]]
+name = "web-sys"
+version = "0.3.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web-time"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web_atoms"
+version = "0.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"
+dependencies = [
+ "phf 0.13.1",
+ "phf_codegen 0.13.1",
+ "string_cache 0.9.0",
+ "string_cache_codegen 0.6.1",
+]
+
+[[package]]
+name = "web_atoms"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7572660c8890448ba236b7376f27e389c6a7e1c70195622faced601f855c0ada"
+dependencies = [
+ "phf 0.14.0",
+ "phf_codegen 0.14.0",
+ "string_cache 0.11.0",
+ "string_cache_codegen 0.11.2",
+]
+
+[[package]]
+name = "webkit2gtk"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793"
+dependencies = [
+ "bitflags 1.3.2",
+ "cairo-rs",
+ "gdk",
+ "gdk-sys",
+ "gio",
+ "gio-sys",
+ "glib",
+ "glib-sys",
+ "gobject-sys",
+ "gtk",
+ "gtk-sys",
+ "javascriptcore-rs",
+ "libc",
+ "once_cell",
+ "soup3",
+ "webkit2gtk-sys",
+]
+
+[[package]]
+name = "webkit2gtk-sys"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5"
+dependencies = [
+ "bitflags 1.3.2",
+ "cairo-sys-rs",
+ "gdk-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "gtk-sys",
+ "javascriptcore-rs-sys",
+ "libc",
+ "pkg-config",
+ "soup3-sys",
+ "system-deps",
+]
+
+[[package]]
+name = "webview2-com"
+version = "0.39.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f89fca7a704cee10dcb3654c1dbb8941d1783132f1917358af75bec37a7d7e6"
+dependencies = [
+ "webview2-com-macros",
+ "webview2-com-sys",
+ "windows",
+ "windows-core",
+]
+
+[[package]]
+name = "webview2-com-macros"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "webview2-com-sys"
+version = "0.39.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3a07132775117d6065853d9d1178157b8c90e228de47129d6bce2c7edebedfb"
+dependencies = [
+ "thiserror 2.0.21",
+ "windows",
+ "windows-core",
+]
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-util"
+version = "0.1.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+
+[[package]]
+name = "window-vibrancy"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "111e51caca442cafd9bab396628ac4d814880eaea4e63dfd76a12e9f342b5580"
+dependencies = [
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "objc2-quartz-core",
+ "raw-window-handle",
+ "windows-sys 0.61.2",
+ "windows-version",
+]
+
+[[package]]
+name = "windows"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"
+dependencies = [
+ "windows-collections",
+ "windows-core",
+ "windows-future",
+ "windows-numerics",
+]
+
+[[package]]
+name = "windows-collections"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"
+dependencies = [
+ "windows-core",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
+dependencies = [
+ "windows-implement",
+ "windows-interface",
+ "windows-link",
+ "windows-result",
+ "windows-strings",
+]
+
+[[package]]
+name = "windows-future"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"
+dependencies = [
+ "windows-core",
+ "windows-link",
+ "windows-threading",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.59.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-numerics"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"
+dependencies = [
+ "windows-core",
+ "windows-link",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.45.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
+dependencies = [
+ "windows-targets 0.42.2",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
+dependencies = [
+ "windows-targets 0.53.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
+dependencies = [
+ "windows_aarch64_gnullvm 0.42.2",
+ "windows_aarch64_msvc 0.42.2",
+ "windows_i686_gnu 0.42.2",
+ "windows_i686_msvc 0.42.2",
+ "windows_x86_64_gnu 0.42.2",
+ "windows_x86_64_gnullvm 0.42.2",
+ "windows_x86_64_msvc 0.42.2",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.53.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
+dependencies = [
+ "windows-link",
+ "windows_aarch64_gnullvm 0.53.1",
+ "windows_aarch64_msvc 0.53.1",
+ "windows_i686_gnu 0.53.1",
+ "windows_i686_gnullvm",
+ "windows_i686_msvc 0.53.1",
+ "windows_x86_64_gnu 0.53.1",
+ "windows_x86_64_gnullvm 0.53.1",
+ "windows_x86_64_msvc 0.53.1",
+]
+
+[[package]]
+name = "windows-threading"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-version"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
+
+[[package]]
+name = "winnow"
+version = "0.5.40"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "winnow"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "winreg"
+version = "0.56.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10"
+dependencies = [
+ "cfg-if",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "wit-bindgen"
+version = "0.57.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
+
+[[package]]
+name = "writeable"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
+
+[[package]]
+name = "wry"
+version = "0.57.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a490119196d02a51d0871df7b9119a1f3e46d75b7e90053a801454d5c6b3491c"
+dependencies = [
+ "base64 0.23.1",
+ "block2",
+ "cookie",
+ "crossbeam-channel",
+ "dirs",
+ "dom_query 0.29.0",
+ "dpi",
+ "dunce",
+ "gdkx11",
+ "gtk",
+ "http",
+ "javascriptcore-rs",
+ "jni",
+ "libc",
+ "ndk",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "objc2-ui-kit",
+ "objc2-web-kit",
+ "percent-encoding",
+ "raw-window-handle",
+ "sha2",
+ "soup3",
+ "tao-macros",
+ "thiserror 2.0.21",
+ "url",
+ "webkit2gtk",
+ "webkit2gtk-sys",
+ "webview2-com",
+ "windows",
+ "windows-core",
+ "windows-version",
+ "x11-dl",
+]
+
+[[package]]
+name = "x11"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e"
+dependencies = [
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "x11-dl"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"
+dependencies = [
+ "libc",
+ "once_cell",
+ "pkg-config",
+]
+
+[[package]]
+name = "yoke"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
+dependencies = [
+ "stable_deref_trait",
+ "yoke-derive",
+ "zerofrom",
+]
+
+[[package]]
+name = "yoke-derive"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "synstructure",
+]
+
+[[package]]
+name = "zbus"
+version = "5.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907"
+dependencies = [
+ "async-broadcast",
+ "async-executor",
+ "async-io",
+ "async-lock",
+ "async-process",
+ "async-recursion",
+ "async-task",
+ "async-trait",
+ "blocking",
+ "enumflags2",
+ "event-listener",
+ "futures-core",
+ "futures-lite",
+ "hex",
+ "libc",
+ "ordered-stream",
+ "rustix",
+ "serde",
+ "serde_repr",
+ "tracing",
+ "uds_windows",
+ "uuid",
+ "windows-sys 0.61.2",
+ "winnow 1.0.5",
+ "zbus_macros",
+ "zbus_names",
+ "zvariant",
+]
+
+[[package]]
+name = "zbus_macros"
+version = "5.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "zbus_names",
+ "zvariant",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zbus_names"
+version = "4.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd"
+dependencies = [
+ "serde",
+ "winnow 1.0.5",
+ "zvariant",
+]
+
+[[package]]
+name = "zcheapstr"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "939f186d9ecebe044315a5cb6d6f78568bbc21152adc954d5a0c2f58bdbc9920"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "zerofrom"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
+dependencies = [
+ "zerofrom-derive",
+]
+
+[[package]]
+name = "zerofrom-derive"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "synstructure",
+]
+
+[[package]]
+name = "zerotrie"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
+dependencies = [
+ "displaydoc",
+ "yoke",
+ "zerofrom",
+]
+
+[[package]]
+name = "zerovec"
+version = "0.11.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
+dependencies = [
+ "yoke",
+ "zerofrom",
+ "zerovec-derive",
+]
+
+[[package]]
+name = "zerovec-derive"
+version = "0.11.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "zlib-rs"
+version = "0.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
+
+[[package]]
+name = "zmij"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
+
+[[package]]
+name = "zvariant"
+version = "5.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80bf6d6cd6a4b601acb64cfb8284cdc643fcfa75ef26ae3c46ec8aa4e8a1fbb7"
+dependencies = [
+ "endi",
+ "enumflags2",
+ "serde",
+ "winnow 1.0.5",
+ "zcheapstr",
+ "zvariant_derive",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_derive"
+version = "5.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef2672456ba1cb54b5eaec136e63135b3c7495fb938e53b28a62e633496d486d"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_utils"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde",
+ "syn 3.0.10",
+ "winnow 1.0.5",
+]

+ 24 - 0
luatools-tauri/src-tauri/Cargo.toml

@@ -0,0 +1,24 @@
+[package]
+name = "luatos-flasher"
+version = "0.1.0"
+description = "LuatOS firmware flasher for macOS"
+authors = ["LuatOS Flasher"]
+edition = "2021"
+rust-version = "1.77.2"
+license = "MIT"
+
+[lib]
+name = "luatos_flasher_lib"
+crate-type = ["staticlib", "cdylib", "rlib"]
+
+[build-dependencies]
+tauri-build = { version = "2", features = [] }
+
+[dependencies]
+tauri = { version = "2", features = [] }
+tauri-plugin-shell = "2"
+tauri-plugin-dialog = "2"
+tauri-plugin-opener = "2"
+serde = { version = "1", features = ["derive"] }
+serde_json = "1"
+tokio = { version = "1", features = ["sync", "time"] }

BIN
luatools-tauri/src-tauri/binaries/luatos-cli-aarch64-apple-darwin


BIN
luatools-tauri/src-tauri/binaries/luatos-cli-x86_64-apple-darwin


+ 3 - 0
luatools-tauri/src-tauri/build.rs

@@ -0,0 +1,3 @@
+fn main() {
+    tauri_build::build()
+}

+ 7 - 0
luatools-tauri/src-tauri/capabilities/default.json

@@ -0,0 +1,7 @@
+{
+  "$schema": "../gen/schemas/desktop-schema.json",
+  "identifier": "default",
+  "description": "Default capability for the main window",
+  "windows": ["main"],
+  "permissions": ["core:default"]
+}

BIN
luatools-tauri/src-tauri/icons/128x128.png


BIN
luatools-tauri/src-tauri/icons/128x128@2x.png


BIN
luatools-tauri/src-tauri/icons/32x32.png


BIN
luatools-tauri/src-tauri/icons/64x64.png


BIN
luatools-tauri/src-tauri/icons/Square107x107Logo.png


BIN
luatools-tauri/src-tauri/icons/Square142x142Logo.png


BIN
luatools-tauri/src-tauri/icons/Square150x150Logo.png


BIN
luatools-tauri/src-tauri/icons/Square284x284Logo.png


BIN
luatools-tauri/src-tauri/icons/Square30x30Logo.png


BIN
luatools-tauri/src-tauri/icons/Square310x310Logo.png


BIN
luatools-tauri/src-tauri/icons/Square44x44Logo.png


BIN
luatools-tauri/src-tauri/icons/Square71x71Logo.png


BIN
luatools-tauri/src-tauri/icons/Square89x89Logo.png


BIN
luatools-tauri/src-tauri/icons/StoreLogo.png


+ 5 - 0
luatools-tauri/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+  <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+  <background android:drawable="@color/ic_launcher_background"/>
+</adaptive-icon>

BIN
luatools-tauri/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png


BIN
luatools-tauri/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png


+ 4 - 0
luatools-tauri/src-tauri/icons/android/values/ic_launcher_background.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+  <color name="ic_launcher_background">#FFFFFF</color>
+</resources>

BIN
luatools-tauri/src-tauri/icons/icon.icns


BIN
luatools-tauri/src-tauri/icons/icon.ico


BIN
luatools-tauri/src-tauri/icons/icon.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-20x20@1x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-20x20@2x-1.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-20x20@2x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-20x20@3x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-29x29@1x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-29x29@2x-1.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-29x29@2x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-29x29@3x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-40x40@1x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-40x40@2x-1.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-40x40@2x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-40x40@3x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-512@2x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-60x60@2x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-60x60@3x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-76x76@1x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-76x76@2x.png


BIN
luatools-tauri/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png


+ 647 - 0
luatools-tauri/src-tauri/src/lib.rs

@@ -0,0 +1,647 @@
+use std::path::{Path, PathBuf};
+use std::sync::Mutex;
+use std::time::Duration;
+
+use serde::{Deserialize, Serialize};
+use serde_json::{json, Value};
+use tauri::menu::{AboutMetadata, MenuBuilder, MenuItemBuilder, PredefinedMenuItem, SubmenuBuilder};
+use tauri::{AppHandle, Emitter, State};
+use tauri_plugin_dialog::DialogExt;
+use tauri_plugin_opener::OpenerExt;
+use tauri_plugin_shell::process::CommandEvent;
+use tauri_plugin_shell::ShellExt;
+
+struct FlashState {
+    child: Mutex<Option<tauri_plugin_shell::process::CommandChild>>,
+}
+
+#[derive(Debug, Deserialize)]
+#[serde(rename_all = "camelCase")]
+struct FlashOptions {
+    soc_path: String,
+    port: String,
+    #[serde(default)]
+    mode: Option<String>,
+    #[serde(default)]
+    script_dir: Option<String>,
+    #[serde(default)]
+    baud: Option<String>,
+    #[serde(default)]
+    tail_log_secs: Option<i64>,
+    #[serde(default)]
+    rts_reset: bool,
+}
+
+#[derive(Debug, Default, Serialize)]
+#[serde(rename_all = "camelCase")]
+struct SelftestConfig {
+    soc: Option<String>,
+    flash_port: Option<String>,
+}
+
+struct Captured {
+    success: bool,
+    code: Option<i32>,
+    stdout: String,
+    stderr: String,
+}
+
+/// Prefer an explicit LUATOS_CLI override, otherwise use the bundled sidecar.
+fn build_command(
+    app: &AppHandle,
+    args: &[String],
+) -> Result<tauri_plugin_shell::process::Command, String> {
+    if let Ok(path) = std::env::var("LUATOS_CLI") {
+        if !path.trim().is_empty() && Path::new(&path).is_file() {
+            return Ok(app.shell().command(path).args(args).env("NO_COLOR", "1"));
+        }
+    }
+
+    let command = app
+        .shell()
+        .sidecar("luatos-cli")
+        .map_err(|error| format!("找不到内置 luatos-cli:{error}"))?;
+    Ok(command.args(args).env("NO_COLOR", "1"))
+}
+
+fn cli_display_path() -> String {
+    if let Ok(path) = std::env::var("LUATOS_CLI") {
+        if !path.trim().is_empty() && Path::new(&path).is_file() {
+            return path;
+        }
+    }
+
+    if let Ok(exe) = std::env::current_exe() {
+        if let Some(dir) = exe.parent() {
+            let candidate = dir.join("luatos-cli");
+            if candidate.is_file() {
+                return candidate.display().to_string();
+            }
+        }
+    }
+
+    if cfg!(debug_assertions) {
+        let dev = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
+            .join("binaries")
+            .join(format!(
+                "luatos-cli-{}-apple-darwin",
+                std::env::consts::ARCH
+            ));
+        if dev.is_file() {
+            return dev.display().to_string();
+        }
+    }
+
+    "luatos-cli(内置 sidecar)".to_string()
+}
+
+async fn run_capture(
+    app: &AppHandle,
+    args: &[&str],
+    timeout: Duration,
+) -> Result<Captured, String> {
+    let owned: Vec<String> = args.iter().map(|arg| (*arg).to_string()).collect();
+    let command = build_command(app, &owned)?;
+
+    let output = tokio::time::timeout(timeout, command.output())
+        .await
+        .map_err(|_| format!("命令超时({}s):{}", timeout.as_secs(), owned.join(" ")))?
+        .map_err(|error| format!("无法启动 luatos-cli:{error}"))?;
+
+    Ok(Captured {
+        success: output.status.success(),
+        code: output.status.code(),
+        stdout: String::from_utf8_lossy(&output.stdout).to_string(),
+        stderr: String::from_utf8_lossy(&output.stderr).to_string(),
+    })
+}
+
+async fn run_json(
+    app: &AppHandle,
+    args: &[&str],
+    timeout: Duration,
+) -> Result<Value, String> {
+    let captured = run_capture(app, args, timeout).await?;
+    if !captured.success {
+        let detail = if captured.stderr.trim().is_empty() {
+            captured.stdout.trim()
+        } else {
+            captured.stderr.trim()
+        };
+        return Err(if detail.is_empty() {
+            format!("luatos-cli 退出码 {:?}", captured.code)
+        } else {
+            detail.to_string()
+        });
+    }
+
+    serde_json::from_str(captured.stdout.trim())
+        .map_err(|error| format!("无法解析 luatos-cli JSON 输出:{error}"))
+}
+
+async fn run_text(
+    app: &AppHandle,
+    args: &[&str],
+    timeout: Duration,
+) -> Result<String, String> {
+    let captured = run_capture(app, args, timeout).await?;
+    if !captured.success {
+        let detail = if captured.stderr.trim().is_empty() {
+            captured.stdout.trim()
+        } else {
+            captured.stderr.trim()
+        };
+        return Err(if detail.is_empty() {
+            format!("luatos-cli 退出码 {:?}", captured.code)
+        } else {
+            detail.to_string()
+        });
+    }
+
+    let text = if captured.stdout.trim().is_empty() {
+        captured.stderr
+    } else {
+        captured.stdout
+    };
+    Ok(text.trim().to_string())
+}
+
+fn normalize_soc(data: &Value) -> Value {
+    let chip = data
+        .pointer("/chip/type")
+        .and_then(Value::as_str)
+        .unwrap_or("unknown");
+    let rom_file = data.pointer("/rom/file").cloned().unwrap_or(Value::Null);
+    let script_file = data
+        .pointer("/script/file")
+        .cloned()
+        .unwrap_or(Value::Null);
+
+    let mut files: Vec<Value> = Vec::new();
+    if let Some(entries) = data.pointer("/rom/files").and_then(Value::as_array) {
+        for entry in entries {
+            if let Some(name) = entry.get("name").or_else(|| entry.get("file")) {
+                if !name.is_null() {
+                    files.push(name.clone());
+                }
+            }
+        }
+    }
+    if files.is_empty() {
+        for file in [&rom_file, &script_file] {
+            if !file.is_null() {
+                files.push(file.clone());
+            }
+        }
+    }
+
+    json!({
+        "chip": chip,
+        "version": data.get("version").cloned().unwrap_or(Value::Null),
+        "romFile": rom_file,
+        "scriptFile": script_file,
+        "files": files,
+        "raw": data,
+    })
+}
+
+fn signal_name(signal: i32) -> String {
+    match signal {
+        2 => "SIGINT".to_string(),
+        9 => "SIGKILL".to_string(),
+        15 => "SIGTERM".to_string(),
+        other => format!("signal {other}"),
+    }
+}
+
+fn emit_chunk(app: &AppHandle, chunk: &str, source: &str) {
+    for line in chunk.lines() {
+        let trimmed = line.trim();
+        if trimmed.is_empty() {
+            continue;
+        }
+
+        if source == "stdout" && trimmed.starts_with('{') {
+            if let Ok(value) = serde_json::from_str::<Value>(trimmed) {
+                let _ = app.emit("flash:event", value);
+                continue;
+            }
+        }
+
+        let _ = app.emit("flash:line", json!({ "line": trimmed, "source": source }));
+    }
+}
+
+#[tauri::command]
+async fn cli_info(app: AppHandle) -> Value {
+    let path = cli_display_path();
+    match run_text(&app, &["--version"], Duration::from_secs(10)).await {
+        Ok(text) => {
+            let version = text.trim().trim_start_matches("luatos-cli").trim().to_string();
+            let models = run_json(
+                &app,
+                &["--format", "json", "guide", "models"],
+                Duration::from_secs(15),
+            )
+            .await
+            .ok()
+            .and_then(|value| value.pointer("/data/models").cloned())
+            .unwrap_or_else(|| json!([]));
+
+            json!({ "ok": true, "path": path, "version": version, "models": models })
+        }
+        Err(error) => json!({ "ok": false, "path": path, "error": error }),
+    }
+}
+
+#[tauri::command]
+async fn serial_list(app: AppHandle) -> Value {
+    match run_json(
+        &app,
+        &["--format", "json", "serial", "list"],
+        Duration::from_secs(12),
+    )
+    .await
+    {
+        Ok(value) => json!({
+            "ok": true,
+            "ports": value.get("data").cloned().unwrap_or_else(|| json!([])),
+        }),
+        Err(error) => json!({ "ok": false, "ports": [], "error": error }),
+    }
+}
+
+#[tauri::command]
+async fn soc_info(app: AppHandle, soc_path: String) -> Value {
+    if soc_path.trim().is_empty() || !Path::new(&soc_path).is_file() {
+        return json!({ "ok": false, "error": "文件不存在" });
+    }
+
+    match run_json(
+        &app,
+        &["--format", "json", "soc", "info", &soc_path],
+        Duration::from_secs(20),
+    )
+    .await
+    {
+        Ok(value) => {
+            let data = value.get("data").cloned().unwrap_or(Value::Null);
+            json!({ "ok": true, "info": normalize_soc(&data), "raw": data })
+        }
+        Err(error) => json!({ "ok": false, "error": error }),
+    }
+}
+
+#[tauri::command]
+async fn flash_start(
+    app: AppHandle,
+    state: State<'_, FlashState>,
+    options: FlashOptions,
+) -> Result<Value, String> {
+    let soc_path = options.soc_path.trim().to_string();
+    if soc_path.is_empty() || !Path::new(&soc_path).is_file() {
+        return Ok(json!({ "ok": false, "error": "固件文件不存在,请重新选择 .soc 文件" }));
+    }
+
+    let port = options.port.trim().to_string();
+    if port.is_empty() {
+        return Ok(json!({ "ok": false, "error": "请选择串口" }));
+    }
+
+    let mode = options.mode.unwrap_or_else(|| "full".to_string());
+    let script_dir = options.script_dir.filter(|dir| !dir.trim().is_empty());
+    if mode == "script" && script_dir.is_none() {
+        return Ok(json!({ "ok": false, "error": "“仅刷脚本区”需要选择一个脚本目录" }));
+    }
+
+    if state.child.lock().unwrap().is_some() {
+        return Ok(json!({ "ok": false, "error": "已有烧录任务正在运行" }));
+    }
+
+    let mut args: Vec<String> = vec![
+        "--format".to_string(),
+        "jsonl".to_string(),
+        "flash".to_string(),
+        if mode == "script" {
+            "script".to_string()
+        } else {
+            "run".to_string()
+        },
+        "--soc".to_string(),
+        soc_path.clone(),
+        "--port".to_string(),
+        port.clone(),
+    ];
+
+    if let Some(dir) = &script_dir {
+        args.push("--script".to_string());
+        args.push(dir.clone());
+    }
+    if let Some(baud) = options.baud.filter(|baud| !baud.trim().is_empty()) {
+        args.push("--baud".to_string());
+        args.push(baud);
+    }
+    if mode != "script" {
+        if let Some(secs) = options.tail_log_secs {
+            if secs > 0 {
+                args.push("--tail-log-secs".to_string());
+                args.push(secs.to_string());
+            }
+        }
+    }
+    if options.rts_reset {
+        args.push("--rts-reset".to_string());
+    }
+
+    let command = build_command(&app, &args)?;
+    eprintln!("[flash] spawn: luatos-cli {}", args.join(" "));
+    let command_line = format!("luatos-cli {}", args.join(" "));
+    let _ = app.emit(
+        "flash:started",
+        json!({
+            "commandLine": command_line,
+            "port": port,
+            "socPath": soc_path,
+            "mode": mode,
+        }),
+    );
+
+    let (mut rx, child) = command
+        .spawn()
+        .map_err(|error| format!("无法启动 luatos-cli:{error}"))?;
+    *state.child.lock().unwrap() = Some(child);
+
+    let mut code: Option<i32> = None;
+    let mut signal: Option<i32> = None;
+    let mut spawn_error: Option<String> = None;
+
+    while let Some(event) = rx.recv().await {
+        match event {
+            CommandEvent::Stdout(bytes) => {
+                emit_chunk(&app, &String::from_utf8_lossy(&bytes), "stdout")
+            }
+            CommandEvent::Stderr(bytes) => {
+                emit_chunk(&app, &String::from_utf8_lossy(&bytes), "stderr")
+            }
+            CommandEvent::Error(error) => spawn_error = Some(error),
+            CommandEvent::Terminated(payload) => {
+                code = payload.code;
+                signal = payload.signal;
+            }
+            _ => {}
+        }
+    }
+
+    *state.child.lock().unwrap() = None;
+    eprintln!("[flash] exit code={code:?} signal={signal:?} error={spawn_error:?}");
+
+    let signal_text = signal.map(signal_name);
+    let _ = app.emit(
+        "flash:exit",
+        json!({
+            "code": code.unwrap_or(-1),
+            "signal": signal_text,
+            "error": spawn_error,
+        }),
+    );
+
+    Ok(json!({
+        "ok": spawn_error.is_none() && code == Some(0),
+        "code": code,
+        "signal": signal_text,
+        "error": spawn_error,
+    }))
+}
+
+#[tauri::command]
+fn flash_cancel(state: State<'_, FlashState>) -> Value {
+    let child = state.child.lock().unwrap().take();
+    match child {
+        Some(child) => match child.kill() {
+            Ok(_) => json!({ "ok": true }),
+            Err(error) => json!({ "ok": false, "error": error.to_string() }),
+        },
+        None => json!({ "ok": false, "error": "没有正在运行的烧录任务" }),
+    }
+}
+
+fn file_path_string(path: tauri_plugin_dialog::FilePath) -> Option<String> {
+    path.into_path()
+        .ok()
+        .map(|path| path.display().to_string())
+}
+
+#[tauri::command]
+async fn open_soc_dialog(app: AppHandle) -> Option<String> {
+    let (tx, rx) = tokio::sync::oneshot::channel();
+    app.dialog()
+        .file()
+        .set_title("选择 LuatOS 固件")
+        .add_filter("LuatOS 固件", &["soc"])
+        .add_filter("所有文件", &["*"])
+        .pick_file(move |path| {
+            let _ = tx.send(path);
+        });
+
+    rx.await.ok().flatten().and_then(file_path_string)
+}
+
+#[tauri::command]
+async fn open_script_dir_dialog(app: AppHandle) -> Option<String> {
+    let (tx, rx) = tokio::sync::oneshot::channel();
+    app.dialog()
+        .file()
+        .set_title("选择脚本目录")
+        .pick_folder(move |path| {
+            let _ = tx.send(path);
+        });
+
+    rx.await.ok().flatten().and_then(file_path_string)
+}
+
+#[tauri::command]
+async fn save_log(app: AppHandle, content: String) -> Value {
+    let name = format!(
+        "luatos-flash-{}.log",
+        std::time::SystemTime::now()
+            .duration_since(std::time::UNIX_EPOCH)
+            .map(|duration| duration.as_secs())
+            .unwrap_or(0)
+    );
+
+    let (tx, rx) = tokio::sync::oneshot::channel();
+    app.dialog()
+        .file()
+        .set_title("保存烧录日志")
+        .set_file_name(&name)
+        .add_filter("日志文件", &["log", "txt"])
+        .save_file(move |path| {
+            let _ = tx.send(path);
+        });
+
+    match rx.await.ok().flatten().and_then(file_path_string) {
+        Some(path) => match std::fs::write(&path, content) {
+            Ok(_) => json!({ "ok": true, "path": path }),
+            Err(error) => json!({ "ok": false, "error": error.to_string() }),
+        },
+        None => json!({ "ok": false }),
+    }
+}
+
+#[tauri::command]
+fn open_external(app: AppHandle, url: String) -> Value {
+    if !(url.starts_with("http://") || url.starts_with("https://")) {
+        return json!({ "ok": false, "error": "只允许打开 http(s) 链接" });
+    }
+
+    match app.opener().open_url(url, None::<&str>) {
+        Ok(_) => json!({ "ok": true }),
+        Err(error) => json!({ "ok": false, "error": error.to_string() }),
+    }
+}
+
+#[tauri::command]
+fn selftest_config() -> SelftestConfig {
+    let mut config = SelftestConfig::default();
+    for arg in std::env::args() {
+        if let Some(value) = arg.strip_prefix("--selftest-soc=") {
+            config.soc = Some(value.to_string());
+        } else if let Some(value) = arg.strip_prefix("--selftest-flash-soc=") {
+            config.soc = Some(value.to_string());
+        } else if let Some(value) = arg.strip_prefix("--selftest-flash-port=") {
+            config.flash_port = Some(value.to_string());
+        }
+    }
+    config
+}
+
+#[tauri::command]
+fn js_log(level: String, message: String) {
+    eprintln!("[js:{level}] {message}");
+}
+
+#[tauri::command]
+fn selftest_report(app: AppHandle, payload: Value) {
+    println!(
+        "SELFTEST {}",
+        serde_json::to_string_pretty(&payload).unwrap_or_else(|_| payload.to_string())
+    );
+    let handle = app.clone();
+    std::thread::spawn(move || {
+        std::thread::sleep(Duration::from_millis(200));
+        handle.exit(0);
+    });
+}
+
+fn build_app_menu(app: &tauri::App) -> tauri::Result<tauri::menu::Menu<tauri::Wry>> {
+    let about = PredefinedMenuItem::about(
+        app,
+        Some("关于 LuatOS Flasher"),
+        Some(AboutMetadata {
+            name: Some("LuatOS Flasher".to_string()),
+            version: Some(env!("CARGO_PKG_VERSION").to_string()),
+            credits: Some("烧录内核:luatos-cli (MIT)\n界面:Tauri + WKWebView".to_string()),
+            ..Default::default()
+        }),
+    )?;
+
+    let app_menu = SubmenuBuilder::new(app, "LuatOS Flasher")
+        .item(&about)
+        .separator()
+        .item(&PredefinedMenuItem::services(app, Some("服务"))?)
+        .separator()
+        .item(&PredefinedMenuItem::hide(app, Some("隐藏 LuatOS Flasher"))?)
+        .item(&PredefinedMenuItem::hide_others(app, Some("隐藏其他"))?)
+        .item(&PredefinedMenuItem::show_all(app, Some("全部显示"))?)
+        .separator()
+        .item(&PredefinedMenuItem::quit(app, Some("退出 LuatOS Flasher"))?)
+        .build()?;
+
+    let open = MenuItemBuilder::with_id("menu:open-soc", "打开固件…")
+        .accelerator("CmdOrCtrl+O")
+        .build(app)?;
+    let save_log = MenuItemBuilder::with_id("menu:save-log", "保存日志…")
+        .accelerator("CmdOrCtrl+S")
+        .build(app)?;
+    let file_menu = SubmenuBuilder::new(app, "文件")
+        .item(&open)
+        .item(&save_log)
+        .separator()
+        .item(&PredefinedMenuItem::close_window(app, Some("关闭窗口"))?)
+        .build()?;
+
+    let edit_menu = SubmenuBuilder::new(app, "编辑")
+        .undo()
+        .redo()
+        .separator()
+        .cut()
+        .copy()
+        .paste()
+        .select_all()
+        .build()?;
+
+    let docs = MenuItemBuilder::with_id("help:docs", "LuatOS 文档").build(app)?;
+    let cli = MenuItemBuilder::with_id("help:cli", "luatos-cli 项目").build(app)?;
+    let help_menu = SubmenuBuilder::new(app, "帮助")
+        .item(&docs)
+        .item(&cli)
+        .build()?;
+
+    MenuBuilder::new(app)
+        .items(&[&app_menu, &file_menu, &edit_menu, &help_menu])
+        .build()
+}
+
+#[cfg_attr(mobile, tauri::mobile_entry_point)]
+pub fn run() {
+    tauri::Builder::default()
+        .plugin(tauri_plugin_shell::init())
+        .plugin(tauri_plugin_dialog::init())
+        .plugin(tauri_plugin_opener::init())
+        .manage(FlashState {
+            child: Mutex::new(None),
+        })
+        .setup(|app| {
+            let menu = build_app_menu(app)?;
+            app.set_menu(menu)?;
+            app.on_menu_event(|app, event| {
+                let id = event.id().0.as_str();
+                match id {
+                    "menu:open-soc" => {
+                        let _ = app.emit("menu", "open-soc");
+                    }
+                    "menu:save-log" => {
+                        let _ = app.emit("menu", "save-log");
+                    }
+                    "help:docs" => {
+                        let _ = app
+                            .opener()
+                            .open_url("https://wiki.luatos.com/", None::<&str>);
+                    }
+                    "help:cli" => {
+                        let _ = app
+                            .opener()
+                            .open_url("https://github.com/wendal/luatos-cli", None::<&str>);
+                    }
+                    _ => {}
+                }
+            });
+            Ok(())
+        })
+        .invoke_handler(tauri::generate_handler![
+            cli_info,
+            serial_list,
+            soc_info,
+            flash_start,
+            flash_cancel,
+            open_soc_dialog,
+            open_script_dir_dialog,
+            save_log,
+            open_external,
+            selftest_config,
+            js_log,
+            selftest_report
+        ])
+        .run(tauri::generate_context!())
+        .expect("error while running LuatOS Flasher");
+}

+ 5 - 0
luatools-tauri/src-tauri/src/main.rs

@@ -0,0 +1,5 @@
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
+
+fn main() {
+    luatos_flasher_lib::run()
+}

+ 49 - 0
luatools-tauri/src-tauri/tauri.conf.json

@@ -0,0 +1,49 @@
+{
+  "$schema": "https://schema.tauri.app/config/2",
+  "productName": "LuatOS Flasher",
+  "version": "0.1.0",
+  "identifier": "com.luatos.flasher",
+  "mainBinaryName": "LuatOS Flasher",
+  "build": {
+    "frontendDist": "../ui"
+  },
+  "app": {
+    "withGlobalTauri": true,
+    "windows": [
+      {
+        "label": "main",
+        "title": "LuatOS Flasher",
+        "width": 1180,
+        "height": 820,
+        "minWidth": 940,
+        "minHeight": 680,
+        "resizable": true,
+        "center": true,
+        "titleBarStyle": "Overlay",
+        "hiddenTitle": true,
+        "dragDropEnabled": true
+      }
+    ],
+    "security": {
+      "csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src ipc: http://ipc.localhost"
+    }
+  },
+  "bundle": {
+    "active": true,
+    "targets": ["app", "dmg"],
+    "category": "DeveloperTool",
+    "shortDescription": "LuatOS 固件烧录工具",
+    "longDescription": "LuatOS firmware flasher for macOS, powered by luatos-cli.",
+    "icon": [
+      "icons/32x32.png",
+      "icons/128x128.png",
+      "icons/128x128@2x.png",
+      "icons/icon.icns",
+      "icons/icon.ico"
+    ],
+    "externalBin": ["binaries/luatos-cli"],
+    "macOS": {
+      "minimumSystemVersion": "12.0"
+    }
+  }
+}

+ 151 - 0
luatools-tauri/ui/api.js

@@ -0,0 +1,151 @@
+'use strict';
+
+/**
+ * Tauri bridge for the existing renderer.
+ *
+ * The renderer only knows `window.api` (Electron used contextBridge). Here the
+ * same shape is implemented on top of Tauri's WKWebView -> Rust IPC. Nothing in
+ * app.js needs to change.
+ */
+(() => {
+  const tauri = window.__TAURI__;
+  if (!tauri) {
+    console.error('Tauri 全局 API 未注入,界面无法工作');
+    return;
+  }
+
+  const invoke = tauri.core.invoke;
+  const listen = tauri.event.listen;
+
+  const subscribers = {
+    flashEvent: new Set(),
+    flashLine: new Set(),
+    flashStarted: new Set(),
+    flashExit: new Set(),
+    menuOpenSoc: new Set(),
+    menuSaveLog: new Set(),
+  };
+
+  function on(kind, callback) {
+    subscribers[kind].add(callback);
+    return () => subscribers[kind].delete(callback);
+  }
+
+  function emit(kind, payload) {
+    for (const callback of subscribers[kind]) {
+      try {
+        callback(payload);
+      } catch (error) {
+        console.error(`[${kind}] 回调失败`, error);
+      }
+    }
+  }
+
+  window.api = {
+    getInfo: () => invoke('cli_info'),
+    listPorts: () => invoke('serial_list'),
+    socInfo: (socPath) => invoke('soc_info', { socPath }),
+    startFlash: (options) => invoke('flash_start', { options }),
+    cancelFlash: () => invoke('flash_cancel'),
+    openSocDialog: () => invoke('open_soc_dialog'),
+    openScriptDirDialog: () => invoke('open_script_dir_dialog'),
+    saveLog: (content) => invoke('save_log', { content }),
+    openExternal: (url) => invoke('open_external', { url }),
+
+    // WKWebView does not expose File.path. Drag & drop is handled below via
+    // Tauri's native drag-drop event, and file picking goes through Rust.
+    getPathForFile: (file) => (file && file.path) || '',
+
+    onFlashEvent: (callback) => on('flashEvent', callback),
+    onFlashLine: (callback) => on('flashLine', callback),
+    onFlashStarted: (callback) => on('flashStarted', callback),
+    onFlashExit: (callback) => on('flashExit', callback),
+    onMenuOpenSoc: (callback) => on('menuOpenSoc', callback),
+    onMenuSaveLog: (callback) => on('menuSaveLog', callback),
+  };
+
+  async function wireEvents() {
+    await listen('flash:event', (event) => emit('flashEvent', event.payload));
+    await listen('flash:line', (event) => emit('flashLine', event.payload));
+    await listen('flash:started', (event) => emit('flashStarted', event.payload));
+    await listen('flash:exit', (event) => emit('flashExit', event.payload));
+    await listen('menu', (event) => {
+      if (event.payload === 'open-soc') emit('menuOpenSoc');
+      else if (event.payload === 'save-log') emit('menuSaveLog');
+    });
+
+    // Tauri intercepts native file drops; the DOM drop event has no paths.
+    await listen('tauri://drag-drop', (event) => {
+      const paths = event?.payload?.paths || [];
+      const soc = paths.find((path) => /\.soc$/i.test(path));
+      if (soc && window.__luatos) window.__luatos.loadSoc(soc);
+    });
+  }
+
+  wireEvents().catch((error) => console.error('事件通道初始化失败', error));
+
+  // Dev-only self test, mirroring the Electron --selftest-* harness.
+  const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
+
+  function reportError(error) {
+    const message = error && error.stack ? error.stack : String(error);
+    invoke('js_log', { level: 'error', message }).catch(() => {});
+  }
+
+  window.addEventListener('error', (event) => reportError(event.error || event.message));
+  window.addEventListener('unhandledrejection', (event) => reportError(event.reason));
+
+  function snapshot(extra) {
+    const state = window.__luatos?.state || {};
+    return {
+      api: typeof window.api?.getInfo === 'function',
+      cliStatus: document.querySelector('#cli-status')?.textContent,
+      fwPath: document.querySelector('#fw-path')?.textContent,
+      fwInfo: document.querySelector('#fw-info')?.innerText,
+      fwError: document.querySelector('#fw-error')?.textContent,
+      bootTip: document.querySelector('#boot-tip')?.innerText,
+      stage: document.querySelector('#stage')?.textContent,
+      percent: document.querySelector('#percent')?.textContent,
+      message: document.querySelector('#message')?.textContent,
+      flashDisabled: document.querySelector('#btn-flash')?.disabled,
+      flashing: state.isFlashing,
+      port: state.port,
+      socPath: state.socPath,
+      cliOk: state.cliOk,
+      log: document.querySelector('#log')?.innerText.slice(-1500),
+      ...extra,
+    };
+  }
+
+  (async () => {
+    let config = null;
+    try {
+      config = await invoke('selftest_config');
+    } catch (error) {
+      reportError(error);
+      return;
+    }
+    if (!config || !config.soc) return;
+
+    try {
+      await wait(600);
+      await window.__luatos.loadSoc(config.soc);
+      await wait(1200);
+
+      let timedOut = false;
+      if (config.flashPort) {
+        window.__luatos.state.port = config.flashPort;
+        window.__luatos.updateFlashButton();
+        const timeout = wait(20000).then(() => {
+          timedOut = true;
+        });
+        await Promise.race([window.__luatos.startFlash(), timeout]);
+        await wait(500);
+      }
+
+      await invoke('selftest_report', { payload: snapshot({ timedOut }) });
+    } catch (error) {
+      await invoke('selftest_report', { payload: snapshot({ error: String(error && error.stack ? error.stack : error) }) }).catch(reportError);
+    }
+  })();
+})();

+ 659 - 0
luatools-tauri/ui/app.js

@@ -0,0 +1,659 @@
+'use strict';
+
+if (/^Mac/i.test(navigator.platform || '')) {
+  document.documentElement.classList.add('mac');
+}
+
+const platformName = /^Mac/i.test(navigator.platform || '')
+  ? 'macOS'
+  : /^Win/i.test(navigator.platform || '')
+    ? 'Windows'
+    : 'Linux';
+document.addEventListener('DOMContentLoaded', () => {
+  const subtitle = document.querySelector('#platform-subtitle');
+  if (subtitle) subtitle.textContent = `${platformName} · USB 串口烧录`;
+});
+
+const $ = (selector) => document.querySelector(selector);
+const $$ = (selector) => Array.from(document.querySelectorAll(selector));
+
+const state = {
+  cliOk: false,
+  ports: [],
+  port: '',
+  socPath: '',
+  socInfo: null,
+  mode: 'full',
+  scriptDir: '',
+  isFlashing: false,
+  finished: false,
+  logLines: [],
+};
+
+const els = {
+  cliStatus: $('#cli-status'),
+  cliPath: $('#cli-path'),
+  cliModal: $('#cli-modal'),
+  cliModalError: $('#cli-modal-error'),
+  portSelect: $('#port-select'),
+  portCount: $('#port-count'),
+  portHint: $('#port-hint'),
+  dropzone: $('#dropzone'),
+  fileInput: $('#file-input'),
+  fwPath: $('#fw-path'),
+  fwInfo: $('#fw-info'),
+  fwError: $('#fw-error'),
+  fwSize: $('#fw-size'),
+  mode: $('#mode'),
+  scriptDir: $('#script-dir'),
+  scriptOptional: $('#script-optional'),
+  baud: $('#baud'),
+  tailLog: $('#tail-log'),
+  rtsReset: $('#rts-reset'),
+  bootTip: $('#boot-tip'),
+  stage: $('#stage'),
+  percent: $('#percent'),
+  bar: $('.bar'),
+  barFill: $('#bar-fill'),
+  message: $('#message'),
+  flash: $('#btn-flash'),
+  flashTop: $('#btn-flash-top'),
+  cancel: $('#btn-cancel'),
+  log: $('#log'),
+  models: $('#models'),
+  modelCount: $('#model-count'),
+  toast: $('#toast'),
+};
+
+const CHIP_LABELS = {
+  bk72xx: 'BK7258 / Air8101',
+  air8101: 'BK7258 / Air8101',
+  air1601: 'CCM4211 / Air1601',
+  air1602: 'CCM4211 / Air1602',
+  ccm4211: 'CCM4211',
+  ec7xx: 'EC718 / Air8000',
+  ec618: 'EC618 / Air780E',
+  air8000: 'EC718 / Air8000',
+  air780epm: 'EC718 / Air780EPM',
+  air780ehm: 'EC718 / Air780EHM',
+  xt804: 'XT804',
+  air6208: 'XT804 / Air6208',
+  air101: 'XT804 / Air101',
+  air103: 'XT804 / Air103',
+  air601: 'XT804 / Air601',
+  air724ug: 'UIS8910 / Air724UG',
+  uis8910: 'UIS8910',
+  rda8910: 'UIS8910 / RDA8910',
+  sf32lb58: 'SF32LB58',
+  sf32lb52: 'SF32LB52',
+};
+
+const BOOT_TIPS = {
+  bk72xx:
+    'BK7258/Air8101 会自动用 DTR/RTS 进入 ROM Boot。若日志停在“Connecting”,按住 BOOT 再上电或复位一次。',
+  air8101:
+    'BK7258/Air8101 会自动用 DTR/RTS 进入 ROM Boot。若日志停在“Connecting”,按住 BOOT 再上电或复位一次。',
+  air1601:
+    'CCM4211 会自动握手并 RAM run。请确保 USB 线可传数据、供电稳定;失败时重新插拔再试。',
+  air1602:
+    'CCM4211 会自动握手并 RAM run。请确保 USB 线可传数据、供电稳定;失败时重新插拔再试。',
+  ccm4211:
+    'CCM4211 会自动握手并 RAM run。请确保 USB 线可传数据、供电稳定;失败时重新插拔再试。',
+  ec7xx:
+    'EC718/Air8000 需要进入 Boot。工具会自动尝试;若 10 秒内没有开始,按日志提示断电/重启。',
+  ec618:
+    'EC618/Air780E 需要进入 Boot。工具会自动尝试;若失败,按住 BOOT 再上电或复位。',
+  air8000:
+    'EC718/Air8000 需要进入 Boot。工具会自动尝试;若 10 秒内没有开始,按日志提示断电/重启。',
+  xt804:
+    'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air6208: 'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air101: 'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air103: 'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air601: 'XT804 系列复位后会自动同步。若失败,拔插 USB 或手动复位后再点开始。',
+  air724ug: 'UIS8910 需要进入 Boot。按日志提示操作;必要时断电后重新上电。',
+  uis8910: 'UIS8910 需要进入 Boot。按日志提示操作;必要时断电后重新上电。',
+  rda8910: 'UIS8910 需要进入 Boot。按日志提示操作;必要时断电后重新上电。',
+};
+
+function chipLabel(chip) {
+  if (!chip) return '未知芯片';
+  return CHIP_LABELS[String(chip).toLowerCase()] || chip;
+}
+
+function now() {
+  const d = new Date();
+  return d.toTimeString().slice(0, 8);
+}
+
+function showToast(message, kind = '') {
+  els.toast.textContent = message;
+  els.toast.className = `toast ${kind}`.trim();
+  clearTimeout(showToast._timer);
+  showToast._timer = setTimeout(() => els.toast.classList.add('hidden'), 3600);
+}
+
+function stripAnsi(text) {
+  // eslint-disable-next-line no-control-regex
+  return String(text).replace(/\u001b\[[0-9;]*m/g, '');
+}
+
+function log(text, level = 'info') {
+  if (!text) return;
+  text = stripAnsi(text);
+  const line = `[${now()}] ${text}`;
+  state.logLines.push(line);
+  if (state.logLines.length > 4000) state.logLines.splice(0, state.logLines.length - 4000);
+
+  const span = document.createElement('span');
+  span.className = 'line';
+
+  const time = document.createElement('span');
+  time.className = 't';
+  time.textContent = now();
+
+  const body = document.createElement('span');
+  body.className = level;
+  body.textContent = text;
+
+  span.append(time, body);
+  const atBottom = els.log.scrollHeight - els.log.scrollTop - els.log.clientHeight < 60;
+  els.log.appendChild(span);
+  if (atBottom) els.log.scrollTop = els.log.scrollHeight;
+}
+
+function clearLog() {
+  state.logLines = [];
+  els.log.textContent = '';
+}
+
+function setBar(percent, kind = '') {
+  const value = Math.max(0, Math.min(100, Number(percent) || 0));
+  els.barFill.style.width = `${value}%`;
+  els.bar.setAttribute('aria-valuenow', String(Math.round(value)));
+  els.percent.textContent = `${Math.round(value)}%`;
+  els.barFill.className = kind;
+}
+
+function setStatus(text, kind = '') {
+  els.cliStatus.textContent = text;
+  els.cliStatus.className = `pill ${kind}`.trim();
+}
+
+function setProgress(stage, percent, message) {
+  if (stage) els.stage.textContent = stage;
+  if (typeof percent === 'number' && percent >= 0) setBar(percent);
+  if (message) els.message.textContent = message;
+}
+
+function updateFlashButton() {
+  const needsScript = state.mode === 'script' && !state.scriptDir;
+  const blocked =
+    !state.cliOk ||
+    !state.port ||
+    !state.socPath ||
+    needsScript;
+
+  els.flash.disabled = blocked || state.isFlashing;
+
+  if (state.isFlashing) {
+    els.flashTop.disabled = false;
+    els.flashTop.textContent = '取消烧录';
+    els.flashTop.className = 'danger top-action';
+  } else {
+    els.flashTop.disabled = blocked;
+    els.flashTop.textContent = '开始烧录';
+    els.flashTop.className = 'primary top-action';
+  }
+}
+
+function renderModels(models) {
+  els.models.textContent = '';
+  const list = Array.isArray(models) ? models : [];
+  els.modelCount.textContent = list.length ? `${list.length} 类` : '';
+  if (!list.length) {
+    const p = document.createElement('p');
+    p.className = 'muted';
+    p.textContent = '未能读取型号列表,但烧录功能仍可尝试。';
+    els.models.append(p);
+    return;
+  }
+  for (const item of list) {
+    const box = document.createElement('div');
+    box.className = 'model';
+    const strong = document.createElement('strong');
+    strong.textContent = item.model || 'unknown';
+    const span = document.createElement('span');
+    const aliases = Array.isArray(item.aliases) ? item.aliases.join(' / ') : '';
+    span.textContent = aliases || item.description || '';
+    box.append(strong, span);
+    els.models.append(box);
+  }
+}
+
+function renderPorts() {
+  els.portSelect.textContent = '';
+  if (!state.ports.length) {
+    const option = document.createElement('option');
+    option.value = '';
+    option.textContent = '未发现串口';
+    els.portSelect.append(option);
+    state.port = '';
+    els.portCount.textContent = '0 个';
+    els.portHint.innerHTML =
+      '没有发现串口。请检查 USB 线是否支持数据传输;macOS 通常显示为 <code>/dev/cu.usbmodem*</code>。CH340/CP210x 可能需要安装驱动。';
+  } else {
+    for (const port of state.ports) {
+      const option = document.createElement('option');
+      option.value = port.port_name || '';
+      const bits = [port.port_name];
+      if (port.product) bits.push(port.product);
+      if (port.vid || port.pid) bits.push(`${port.vid || '----'}:${port.pid || '----'}`);
+      option.textContent = bits.join(' · ');
+      els.portSelect.append(option);
+    }
+    state.port = state.ports[0]?.port_name || '';
+    els.portSelect.value = state.port;
+    els.portCount.textContent = `${state.ports.length} 个`;
+    const first = state.ports[0];
+    els.portHint.textContent = first
+      ? `已发现 ${state.ports.length} 个串口,当前选择 ${first.port_name}${first.product ? `(${first.product})` : ''}。`
+      : '';
+  }
+  updateFlashButton();
+}
+
+async function refreshPorts(quiet = false) {
+  const button = $('#btn-refresh-ports');
+  button.disabled = true;
+  if (!quiet) els.portHint.textContent = '正在扫描串口…';
+  try {
+    const result = await window.api.listPorts();
+    if (!result.ok) {
+      state.ports = [];
+      renderPorts();
+      els.portHint.textContent = `扫描串口失败:${result.error}`;
+      log(`扫描串口失败:${result.error}`, 'err');
+      return;
+    }
+    state.ports = result.ports || [];
+    renderPorts();
+    if (!quiet) {
+      log(
+        state.ports.length
+          ? `发现 ${state.ports.length} 个串口:${state.ports.map((p) => p.port_name).join(', ')}`
+          : '没有发现串口',
+        state.ports.length ? 'ok' : 'warn',
+      );
+    }
+  } finally {
+    button.disabled = false;
+  }
+}
+
+function renderFwInfo(info) {
+  els.fwInfo.textContent = '';
+  if (!info) {
+    els.fwInfo.classList.add('hidden');
+    return;
+  }
+  const add = (label, value, kind = '') => {
+    if (value === undefined || value === null || value === '') return;
+    const chip = document.createElement('span');
+    chip.className = `chip ${kind}`.trim();
+    const strong = document.createElement('strong');
+    strong.textContent = `${label}:`;
+    const text = document.createElement('span');
+    text.textContent = String(value);
+    chip.append(strong, text);
+    els.fwInfo.append(chip);
+  };
+
+  add('芯片', chipLabel(info.chip), 'ok');
+  add('版本', info.version);
+  add('ROM', info.romFile);
+  add('脚本', info.scriptFile);
+  add('文件', `${info.files?.length || 0} 个`);
+  els.fwInfo.classList.remove('hidden');
+  els.fwSize.textContent = info.files?.length ? `${info.files.length} 个文件` : '';
+}
+
+function setBootTip(chip) {
+  const key = String(chip || '').toLowerCase();
+  const tip = BOOT_TIPS[key] || '按日志提示进入 Boot。若不确定,先插拔设备并点击“刷新串口”。';
+  els.bootTip.innerHTML = `<strong>进入 Boot:</strong>${tip}`;
+}
+
+async function loadSoc(socPath) {
+  if (!socPath) return;
+  if (!/\.soc$/i.test(socPath)) {
+    showToast('请选择 .soc 固件文件', 'err');
+    return;
+  }
+  state.socPath = socPath;
+  state.socInfo = null;
+  els.fwPath.textContent = socPath;
+  els.fwInfo.classList.add('hidden');
+  els.fwError.classList.add('hidden');
+  els.fwSize.textContent = '';
+  updateFlashButton();
+  log(`读取固件:${socPath}`);
+
+  const result = await window.api.socInfo(socPath);
+  if (!result.ok) {
+    els.fwError.textContent = result.error || '无法解析固件';
+    els.fwError.classList.remove('hidden');
+    log(`固件解析失败:${result.error}`, 'err');
+    showToast('固件解析失败', 'err');
+    state.socPath = '';
+    updateFlashButton();
+    return;
+  }
+
+  state.socInfo = result.info;
+  renderFwInfo(result.info);
+  setBootTip(result.info.chip);
+  log(`固件解析成功:${chipLabel(result.info.chip)}${result.info.version ? `,版本 ${result.info.version}` : ''}`, 'ok');
+  updateFlashButton();
+}
+
+async function refreshCli() {
+  setStatus('正在检测烧录内核…', 'pill-warn');
+  $('#btn-refresh-cli').disabled = true;
+  try {
+    const info = await window.api.getInfo();
+    if (info.ok) {
+      state.cliOk = true;
+      setStatus(`烧录内核 ${info.version || ''}`.trim(), 'pill-ok');
+      els.cliPath.textContent = info.path;
+      els.cliModal.classList.add('hidden');
+      renderModels(info.models);
+      log(`烧录内核已就绪:${info.version || 'luatos-cli'}`, 'ok');
+      if (info.path) log(`内核路径:${info.path}`, 'muted');
+    } else {
+      state.cliOk = false;
+      setStatus('未找到烧录内核', 'pill-bad');
+      els.cliPath.textContent = info.path || '未检测到 luatos-cli';
+      els.cliModalError.textContent = info.error || '';
+      els.cliModal.classList.remove('hidden');
+      log(`未找到烧录内核:${info.error || ''}`, 'err');
+    }
+  } finally {
+    $('#btn-refresh-cli').disabled = false;
+    updateFlashButton();
+  }
+}
+
+function setFlashing(active) {
+  state.isFlashing = active;
+  els.flash.classList.toggle('hidden', active);
+  els.cancel.classList.toggle('hidden', !active);
+  updateFlashButton();
+}
+
+function finishFlash(success, message) {
+  if (state.finished && !state.isFlashing) return;
+  state.finished = true;
+  setFlashing(false);
+  els.stage.textContent = success ? '烧录完成' : '烧录失败';
+  els.message.textContent = message || (success ? '固件已写入设备。' : '请查看日志后重试。');
+  setBar(success ? 100 : Number(els.percent.textContent.replace('%', '')) || 0, success ? 'success' : 'error');
+  log(message || (success ? '烧录完成' : '烧录失败'), success ? 'ok' : 'err');
+  showToast(success ? '烧录完成' : '烧录失败', success ? 'ok' : 'err');
+}
+
+async function startFlash() {
+  if (!state.cliOk) {
+    showToast('没有找到 luatos-cli', 'err');
+    return;
+  }
+  if (!state.socPath) {
+    showToast('请先选择 .soc 固件', 'err');
+    return;
+  }
+  if (!state.port) {
+    showToast('请先选择串口', 'err');
+    return;
+  }
+  if (state.mode === 'script' && !state.scriptDir) {
+    showToast('“仅刷脚本区”需要选择脚本目录', 'err');
+    return;
+  }
+
+  clearLog();
+  state.finished = false;
+  setFlashing(true);
+  setBar(0);
+  els.stage.textContent = '准备中…';
+  els.message.textContent = '正在启动 luatos-cli…';
+  log('开始烧录', 'cmd');
+  log(`固件:${state.socPath}`, 'muted');
+  log(`串口:${state.port} · 模式:${state.mode === 'script' ? '仅脚本区' : '全量'}`, 'muted');
+
+  try {
+    const result = await window.api.startFlash({
+      socPath: state.socPath,
+      port: state.port,
+      mode: state.mode,
+      scriptDir: state.scriptDir || null,
+      baud: els.baud.value || null,
+      tailLogSecs: Number(els.tailLog.value) || 0,
+      rtsReset: els.rtsReset.checked,
+    });
+    if (result && result.ok === false) {
+      finishFlash(false, result.error || '烧录失败');
+    } else if (result && result.ok === true) {
+      finishFlash(true, '烧录完成,设备已重启。');
+    }
+  } catch (error) {
+    finishFlash(false, String(error.message || error));
+  }
+}
+
+async function cancelFlash() {
+  const result = await window.api.cancelFlash();
+  if (result.ok) {
+    log('正在取消烧录…', 'warn');
+  } else {
+    showToast(result.error || '取消失败', 'err');
+  }
+}
+
+function bindEvents() {
+  $('#btn-refresh-cli').addEventListener('click', refreshCli);
+  $('#btn-refresh-ports').addEventListener('click', () => refreshPorts(false));
+  els.portSelect.addEventListener('change', () => {
+    state.port = els.portSelect.value;
+    updateFlashButton();
+  });
+
+  $('#btn-browse').addEventListener('click', async (event) => {
+    event.stopPropagation();
+    const path = await window.api.openSocDialog();
+    if (path) loadSoc(path);
+  });
+  els.dropzone.addEventListener('click', async () => {
+    const path = await window.api.openSocDialog();
+    if (path) loadSoc(path);
+  });
+  els.dropzone.addEventListener('keydown', (event) => {
+    if (event.key === 'Enter' || event.key === ' ') {
+      event.preventDefault();
+      els.dropzone.click();
+    }
+  });
+  els.fileInput.addEventListener('change', () => {
+    const file = els.fileInput.files?.[0];
+    if (!file) return;
+    const path = window.api.getPathForFile(file) || file.path || '';
+    if (path) loadSoc(path);
+  });
+
+  for (const eventName of ['dragenter', 'dragover']) {
+    els.dropzone.addEventListener(eventName, (event) => {
+      event.preventDefault();
+      els.dropzone.classList.add('dragover');
+    });
+  }
+  for (const eventName of ['dragleave', 'dragend']) {
+    els.dropzone.addEventListener(eventName, () => els.dropzone.classList.remove('dragover'));
+  }
+  els.dropzone.addEventListener('drop', (event) => {
+    event.preventDefault();
+    els.dropzone.classList.remove('dragover');
+    const file = event.dataTransfer?.files?.[0];
+    if (!file) return;
+    const path = window.api.getPathForFile(file) || file.path || '';
+    if (path) loadSoc(path);
+    else showToast('无法读取拖入文件路径,请点“选择文件”', 'err');
+  });
+
+  els.mode.addEventListener('click', (event) => {
+    const button = event.target.closest('button[data-mode]');
+    if (!button || state.isFlashing) return;
+    state.mode = button.dataset.mode;
+    $$('#mode button').forEach((item) => {
+      const active = item === button;
+      item.classList.toggle('active', active);
+      item.setAttribute('aria-selected', active ? 'true' : 'false');
+    });
+    els.scriptOptional.textContent = state.mode === 'script' ? '(必选)' : '(可选,覆盖固件内脚本)';
+    els.tailLog.disabled = state.mode === 'script';
+    updateFlashButton();
+  });
+
+  $('#btn-script-dir').addEventListener('click', async () => {
+    const path = await window.api.openScriptDirDialog();
+    if (path) {
+      state.scriptDir = path;
+      els.scriptDir.value = path;
+      updateFlashButton();
+    }
+  });
+
+  els.flash.addEventListener('click', startFlash);
+  els.flashTop.addEventListener('click', () => {
+    if (state.isFlashing) cancelFlash();
+    else startFlash();
+  });
+  els.cancel.addEventListener('click', cancelFlash);
+  $('#btn-clear').addEventListener('click', clearLog);
+  $('#btn-save').addEventListener('click', async () => {
+    if (!state.logLines.length) {
+      showToast('日志为空', 'err');
+      return;
+    }
+    const result = await window.api.saveLog(state.logLines.join('\n'));
+    if (result.ok) showToast(`日志已保存:${result.path}`, 'ok');
+  });
+
+  $('#btn-modal-retry').addEventListener('click', refreshCli);
+  $('#btn-modal-close').addEventListener('click', () => els.cliModal.classList.add('hidden'));
+
+  window.api.onFlashStarted((payload) => {
+    log(`执行:${payload.commandLine}`, 'cmd');
+    setProgress('启动中…', 1, '正在与设备建立连接…');
+  });
+
+  window.api.onFlashEvent((event) => {
+    if (!event || typeof event !== 'object') return;
+    switch (event.type) {
+      case 'progress': {
+        const percent = Number(event.percent);
+        setProgress(event.stage || '', Number.isFinite(percent) ? percent : -1, event.message || '');
+        if (event.message) log(event.message, 'info');
+        if (event.done) {
+          finishFlash(!event.error, event.error ? '设备返回错误' : '烧录完成');
+        }
+        break;
+      }
+      case 'message': {
+        const level = event.level === 'error' ? 'err' : event.level === 'warn' ? 'warn' : 'info';
+        if (event.message) log(event.message, level);
+        break;
+      }
+      case 'error': {
+        if (event.message) log(event.message, 'err');
+        finishFlash(false, event.message || '烧录失败');
+        break;
+      }
+      case 'result': {
+        if (event.status === 'ok') {
+          log('luatos-cli 返回成功', 'ok');
+          finishFlash(true, '烧录完成,设备已重启。');
+        } else {
+          finishFlash(false, event.message || '烧录失败');
+        }
+        break;
+      }
+      case 'log_entry': {
+        const entry = event.entry || {};
+        const text = entry.message || entry.line || JSON.stringify(entry);
+        log(text, entry.level === 'error' ? 'err' : entry.level === 'warn' ? 'warn' : 'info');
+        break;
+      }
+      default:
+        break;
+    }
+  });
+
+  window.api.onFlashLine(({ line, source }) => {
+    if (!line) return;
+    const level = /error|failed|失败|错误/i.test(line) ? 'err' : /warn|警告/i.test(line) ? 'warn' : source === 'stderr' ? 'muted' : 'info';
+    log(line, level);
+  });
+
+  window.api.onFlashExit(({ code, signal, error }) => {
+    if (error) {
+      log(error, 'err');
+      finishFlash(false, error);
+      return;
+    }
+    if (code === 0) {
+      finishFlash(true, '烧录完成,设备已重启。');
+    } else if (signal) {
+      finishFlash(false, `烧录已取消(${signal})`);
+    } else {
+      finishFlash(false, `luatos-cli 退出码 ${code}`);
+    }
+  });
+
+  window.api.onMenuOpenSoc(async () => {
+    const path = await window.api.openSocDialog();
+    if (path) loadSoc(path);
+  });
+  window.api.onMenuSaveLog(async () => {
+    if (!state.logLines.length) return;
+    const result = await window.api.saveLog(state.logLines.join('\n'));
+    if (result.ok) showToast(`日志已保存:${result.path}`, 'ok');
+  });
+
+  document.addEventListener('keydown', (event) => {
+    if (event.key === 'Escape' && !els.cliModal.classList.contains('hidden')) {
+      els.cliModal.classList.add('hidden');
+    }
+  });
+}
+
+async function init() {
+  bindEvents();
+  setBar(0);
+  await refreshCli();
+  await refreshPorts(true);
+  log('LuatOS Flasher 已启动', 'ok');
+  log('提示:先选择 .soc 固件和串口,再点“开始烧录”。', 'muted');
+}
+
+// Exposed for the dev-only Electron smoke tests (see electron/main.js).
+window.__luatos = {
+  state,
+  loadSoc,
+  refreshPorts,
+  updateFlashButton,
+  startFlash,
+};
+
+init().catch((error) => {
+  log(`初始化失败:${error.message || error}`, 'err');
+  setStatus('初始化失败', 'pill-bad');
+});

Неке датотеке нису приказане због велике количине промена