dsh-crate 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/assets/logo.svg +11 -33
  2. package/client/client.js +2271 -561
  3. package/lib/body-progress.js +4 -3
  4. package/lib/changelog.js +15 -2
  5. package/lib/discovery-cache.js +210 -0
  6. package/lib/discovery-compatibility.js +135 -90
  7. package/lib/drain.js +28 -9
  8. package/lib/dsh-cli.js +36 -6
  9. package/lib/github-install-target.js +53 -0
  10. package/lib/hot.js +400 -33
  11. package/lib/index.js +23 -9
  12. package/lib/install.js +37 -0
  13. package/lib/patch.js +123 -73
  14. package/lib/pending-rows.js +3 -4
  15. package/lib/pnpm-compat.js +234 -2
  16. package/lib/proc-text.js +16 -1
  17. package/lib/profile.js +17 -1
  18. package/lib/recovery.js +2 -1
  19. package/lib/registry.js +24 -16
  20. package/lib/release-candidates.js +4 -0
  21. package/lib/release-updates.js +9 -2
  22. package/lib/routes.js +459 -134
  23. package/lib/themes.js +42 -9
  24. package/lib/types/body-progress.d.ts +2 -1
  25. package/lib/types/changelog.d.ts +10 -1
  26. package/lib/types/discovery-cache.d.ts +38 -0
  27. package/lib/types/discovery-compatibility.d.ts +24 -14
  28. package/lib/types/dsh-cli.d.ts +19 -2
  29. package/lib/types/github-install-target.d.ts +11 -0
  30. package/lib/types/hot.d.ts +91 -7
  31. package/lib/types/index.d.ts +17 -0
  32. package/lib/types/install.d.ts +19 -0
  33. package/lib/types/patch.d.ts +6 -2
  34. package/lib/types/profile.d.ts +4 -1
  35. package/lib/types/registry.d.ts +9 -8
  36. package/lib/types/release-candidates.d.ts +2 -0
  37. package/lib/types/routes.d.ts +2 -2
  38. package/lib/types/themes.d.ts +7 -1
  39. package/lib/types/update-notification-settings.d.ts +5 -0
  40. package/lib/types/update-notifications.d.ts +51 -0
  41. package/lib/types/updates.d.ts +5 -1
  42. package/lib/update-notification-settings.js +6 -0
  43. package/lib/update-notifications.js +166 -0
  44. package/lib/updates.js +41 -11
  45. package/lib/verify.js +24 -2
  46. package/package.json +1 -1
package/client/client.js CHANGED
@@ -200,6 +200,23 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
200
200
  const zh = {
201
201
  nav: "插件箱子",
202
202
  setCardDesc: "查看插件箱子版本与设置。",
203
+ updateChecksTitle: "更新检查",
204
+ updateChecksAutomatic: "自动检查更新",
205
+ updateChecksNow: "立即检查",
206
+ updateChecksLegacyHint: "只提醒,不自动安装。",
207
+ updateChecksInterval: "检查周期",
208
+ updateChecksEveryHours: "每 {0} 小时",
209
+ updateChecksEveryDays: "每 {0} 天",
210
+ updateChecksHint: "默认关闭。开启后按所选周期检查。只提醒,不自动安装。",
211
+ updateChecksPending: "尚未检查",
212
+ updateChecksChecking: "正在检查…",
213
+ updateChecksFound: "发现 {0} 个可用更新",
214
+ updateChecksNone: "暂无更新提醒",
215
+ updateChecksFailed: "检查暂未完成",
216
+ updateChecksFailedHint: "部分信息暂时无法获取,保留上次结果。请稍后重试。",
217
+ updateChecksLastSuccess: "最近完整检查:{0}",
218
+ updateChecksOpenHost: "到插件页查看",
219
+ updateNotificationsAnnouncement: "有 {count} 个插件可更新。打开插件箱子查看。",
203
220
  setSelfUpToDate: "已是最新版本",
204
221
  setSelfUpdateReady: "有新版本",
205
222
  setSelfUpdateHint: "更新会下载新版本,重启后生效。",
@@ -359,7 +376,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
359
376
  clearFilters: "清除筛选",
360
377
  installedEmpty: "尚未安装社区插件,可前往「发现」页浏览",
361
378
  marketGoneTitle: "插件箱子已停止运行",
362
- marketGoneBody: "DSH 重新加载插件时把市场一起卸载了。重启 DSH 即可恢复;刚才的操作可能已经完成。",
379
+ marketGoneBody: "DSH 重新加载插件时把市场一起卸载了。会自动重连;一直连不上,请完全退出 DSH 再打开。刚才的操作可能已经完成。",
363
380
  marketGoneRecord: "市场被 DSH 卸载了,这次操作没有等到结果。市场恢复后,到「已安装」里确认。",
364
381
  marketGoneReconnecting: "正在重新连接…",
365
382
  marketGoneReconnect: "重新连接",
@@ -432,6 +449,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
432
449
  hostUpdateHint: "本市场由桌面端安装和更新,新版本请在桌面端更新",
433
450
  notesLink: "更新内容",
434
451
  notesRelease: "版本说明",
452
+ notesBeyondTarget: "下面是 {0} 的说明,这个版本还不能装。现在更新到的是 {1}。",
435
453
  notesCommits: "提交记录",
436
454
  notesCommitsRecent: "最近提交(无法对应你当前安装的版本,仅供参考)",
437
455
  notesNpm: "版本发布时间",
@@ -458,7 +476,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
458
476
  renameContinue: "迁移并更新",
459
477
  restoreOnline: "换用线上版本",
460
478
  restoreHint: "将卸载本地版本并安装线上版本,之后照常检查更新。此操作无法撤销。",
461
- hostIncompatibleTitle: "这个新版本要求更新的 DSH",
479
+ hostIncompatibleTitle: "这个插件版本与当前 DSH 不兼容",
462
480
  hostIncompatibleBody: "{plugin} 声明需要 DSH {requirement},而你现在运行的是 {host}。装上去很可能用不了,只能手动装回旧版。\n已停止,插件仍是原来的版本。\n如果你确定这个版本号不准(例如桌面端自带的 DSH 不报告版本),仍可继续更新。",
463
481
  hostIncompatibleUnknown: "未知版本",
464
482
  hostIncompatibleSearching: "正在查找还兼容当前 DSH 的版本…",
@@ -574,8 +592,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
574
592
  hostCompatible: "兼容当前 DSH {0}",
575
593
  hostDetecting: "正在识别宿主版本…",
576
594
  hostUnknown: "宿主版本未知",
577
- hostFilterLoading: "正在检查宿主要求 {0}/{1};未声明或无法确认的插件仍会显示",
578
- hostFilterActive: "已隐藏 {1} 个与 DSH {0} 不兼容的插件;未声明版本的仍在列表里",
595
+ hostFilterLoading: "正在检查宿主要求(本页 {0}/{1})。要求未知的插件仍会显示。",
596
+ hostFilterActive: "本页已隐藏 {1} 个与 DSH {0} 不兼容的插件。要求未知的插件仍会显示。",
597
+ hostFilterEmpty: "本页插件均与当前 DSH 不兼容。",
598
+ hostFilterIncomplete: "本页已隐藏 {1} 个与 DSH {0} 不兼容的插件。另有 {2} 个暂时无法确认,仍会显示。",
579
599
  hostRequirement: "DSH {0}",
580
600
  hostRequirementLoading: "正在读取宿主要求…",
581
601
  hostRequirementUndeclared: "未声明宿主要求",
@@ -614,6 +634,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
614
634
  perPage: "每页",
615
635
  marketUpdate: "更新插件箱子",
616
636
  updateAll: "全部更新",
637
+ updateCheckFailed: "暂时无法检查更新",
638
+ updateCheckRetry: "重试检查更新",
617
639
  heldReleaseNotice: "已安装,但不是最新版:这个 profile 的 minimumReleaseAge 挡住了 {0},安装的是 {1}。",
618
640
  versionUnverifiedNote: "已安装,但版本没能确认:registry 两次都查不到,这次装的是 {0}。插件页会显示实际版本,可以在那里核对。",
619
641
  versionUnverifiedNoteUnknown: "已安装,但版本没能确认:registry 两次都查不到。插件页会显示实际版本,可以在那里核对。",
@@ -739,6 +761,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
739
761
  actWhy: "为什么未生效?",
740
762
  tabList: "列表",
741
763
  tabGroups: "分组",
764
+ installedSort: "排序",
765
+ installedSortLabel: "已安装列表排序",
766
+ installedSortDefault: "默认(运行中优先)",
767
+ installedSortName: "名称",
768
+ installedSortNewest: "安装时间:新→旧",
769
+ installedSortOldest: "安装时间:旧→新",
770
+ installedAtLabel: "安装于",
771
+ updatedAtLabel: "最近更新",
772
+ installedAtUnknown: "市场没有记录安装时间(不是通过市场安装的)",
742
773
  repoLink: "在 GitHub 上查看仓库",
743
774
  viewSourceRepo: "查看仓库↗",
744
775
  disabledState: "已停用",
@@ -773,6 +804,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
773
804
  groupConfirmDelete: "删除分组?",
774
805
  groupExpand: "展开 {0}",
775
806
  groupFold: "收起 {0}",
807
+ groupCollapseAll: "全部收起",
808
+ groupExpandAll: "全部展开",
776
809
  groupThemeTaken: "已有主题",
777
810
  groupSearchEmpty: "没有匹配的插件",
778
811
  groupStateInert: "未生效",
@@ -995,6 +1028,23 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
995
1028
  const en = {
996
1029
  nav: "Plugin Crate",
997
1030
  setCardDesc: "View the Plugin Crate version and settings.",
1031
+ updateChecksTitle: "Update checks",
1032
+ updateChecksAutomatic: "Check for updates automatically",
1033
+ updateChecksNow: "Check now",
1034
+ updateChecksLegacyHint: "Updates are never installed automatically.",
1035
+ updateChecksInterval: "Check interval",
1036
+ updateChecksEveryHours: "Every {0} hours",
1037
+ updateChecksEveryDays: "Every {0} days",
1038
+ updateChecksHint: "Off by default. When enabled, checks at the selected interval while running. Updates are never installed automatically.",
1039
+ updateChecksPending: "Not checked yet",
1040
+ updateChecksChecking: "Checking…",
1041
+ updateChecksFound: "{0} updates available",
1042
+ updateChecksNone: "No pending update reminders",
1043
+ updateChecksFailed: "Check incomplete",
1044
+ updateChecksFailedHint: "Some information is unavailable. Previous results are kept; try again later.",
1045
+ updateChecksLastSuccess: "Last complete check: {0}",
1046
+ updateChecksOpenHost: "View in Plugins",
1047
+ updateNotificationsAnnouncement: "{count} plugin updates available. Open Plugin Crate to review.",
998
1048
  setSelfUpToDate: "Up to date",
999
1049
  setSelfUpdateReady: "New version available:",
1000
1050
  setSelfUpdateHint: "Updating downloads the new version; it takes effect after a restart.",
@@ -1153,7 +1203,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1153
1203
  clearFilters: "Clear filters",
1154
1204
  installedEmpty: "No community plugins yet — browse the Discover tab",
1155
1205
  marketGoneTitle: "The plugin market stopped running",
1156
- marketGoneBody: "DSH unloaded the market while reloading plugins. Restart DSH to bring it back. The last operation may already have finished.",
1206
+ marketGoneBody: "DSH unloaded the market while reloading plugins. It reconnects on its own. If it stays gone, quit DSH completely and open it again. The last operation may already have finished.",
1157
1207
  marketGoneRecord: "DSH unloaded the market, so this operation got no result. Once the market is back, check Installed.",
1158
1208
  marketGoneReconnecting: "Reconnecting…",
1159
1209
  marketGoneReconnect: "Reconnect",
@@ -1226,6 +1276,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1226
1276
  hostUpdateHint: "Installed and updated by the desktop app; update it there.",
1227
1277
  notesLink: "What changed",
1228
1278
  notesRelease: "Release notes",
1279
+ notesBeyondTarget: "These are the notes for {0}, which cannot be installed yet. Update installs {1}.",
1229
1280
  notesCommits: "Commits",
1230
1281
  notesCommitsRecent: "Recent commits (do not match your installed version — for reference only)",
1231
1282
  notesNpm: "Version publish times",
@@ -1252,7 +1303,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1252
1303
  renameContinue: "Migrate and update",
1253
1304
  restoreOnline: "Use online version",
1254
1305
  restoreHint: "This uninstalls the local version and installs the online version. Update checks continue as usual. This cannot be undone.",
1255
- hostIncompatibleTitle: "This release needs a newer DSH",
1306
+ hostIncompatibleTitle: "This plugin release is incompatible with your DSH",
1256
1307
  hostIncompatibleBody: "{plugin} declares that it needs DSH {requirement}, and you are running {host}. Installing it would most likely break the plugin, leaving a manual downgrade as the only way back.\nNothing was changed — the plugin is still on its current version.\nIf you know the version number is wrong (a bundled DSH that does not report one, for example), you can update anyway.",
1257
1308
  hostIncompatibleUnknown: "an unknown version",
1258
1309
  hostIncompatibleSearching: "Looking for a version that still supports this DSH…",
@@ -1368,8 +1419,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1368
1419
  hostCompatible: "Compatible with current DSH {0}",
1369
1420
  hostDetecting: "Detecting host version…",
1370
1421
  hostUnknown: "Host version unknown",
1371
- hostFilterLoading: "Checking host requirements {0}/{1}; undeclared or unavailable plugins remain visible",
1372
- hostFilterActive: "Hid {1} plugins incompatible with DSH {0}; those declaring no version stay listed",
1422
+ hostFilterLoading: "Checking host requirements on this page ({0}/{1}). Plugins with unknown requirements stay visible.",
1423
+ hostFilterActive: "Hid {1} plugins on this page that are incompatible with DSH {0}. Plugins with unknown requirements stay visible.",
1424
+ hostFilterEmpty: "All plugins on this page are incompatible with the current DSH.",
1425
+ hostFilterIncomplete: "Hid {1} plugins on this page that are incompatible with DSH {0}. {2} could not be checked and are still shown.",
1373
1426
  hostRequirement: "DSH {0}",
1374
1427
  hostRequirementLoading: "Reading host requirement…",
1375
1428
  hostRequirementUndeclared: "Host requirement undeclared",
@@ -1408,6 +1461,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1408
1461
  perPage: "Per page",
1409
1462
  marketUpdate: "Update the plugin market",
1410
1463
  updateAll: "Update all",
1464
+ updateCheckFailed: "Could not check for updates",
1465
+ updateCheckRetry: "Retry update check",
1411
1466
  heldReleaseNotice: "Installed, but not the newest: this profile's minimumReleaseAge held {0} back, so {1} was installed.",
1412
1467
  versionUnverifiedNote: "Installed, but the version could not be confirmed: both registry lookups failed, so {0} is what pnpm chose. The plugin page shows the version actually on disk.",
1413
1468
  versionUnverifiedNoteUnknown: "Installed, but the version could not be confirmed: both registry lookups failed. The plugin page shows the version actually on disk.",
@@ -1533,6 +1588,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1533
1588
  actWhy: "Why is it not active?",
1534
1589
  tabList: "List",
1535
1590
  tabGroups: "Groups",
1591
+ installedSort: "Sort",
1592
+ installedSortLabel: "Installed order",
1593
+ installedSortDefault: "Default (running first)",
1594
+ installedSortName: "Name",
1595
+ installedSortNewest: "Install time: newest",
1596
+ installedSortOldest: "Install time: oldest",
1597
+ installedAtLabel: "Installed",
1598
+ updatedAtLabel: "Last updated",
1599
+ installedAtUnknown: "The market did not record an install time (installed another way)",
1536
1600
  repoLink: "View the repository on GitHub",
1537
1601
  viewSourceRepo: "View the repository↗",
1538
1602
  disabledState: "Disabled",
@@ -1567,6 +1631,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1567
1631
  groupConfirmDelete: "Delete group?",
1568
1632
  groupExpand: "Expand {0}",
1569
1633
  groupFold: "Collapse {0}",
1634
+ groupCollapseAll: "Collapse all",
1635
+ groupExpandAll: "Expand all",
1570
1636
  groupThemeTaken: "Already has a theme",
1571
1637
  groupSearchEmpty: "No matching plugins",
1572
1638
  groupStateInert: "Not active",
@@ -1789,6 +1855,23 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1789
1855
  const ja = {
1790
1856
  nav: "プラグインボックス",
1791
1857
  setCardDesc: "プラグインボックスのバージョンと設定を確認します。",
1858
+ updateChecksTitle: "更新の確認",
1859
+ updateChecksAutomatic: "更新を自動で確認",
1860
+ updateChecksNow: "今すぐ確認",
1861
+ updateChecksLegacyHint: "自動でインストールはしません。",
1862
+ updateChecksInterval: "確認の間隔",
1863
+ updateChecksEveryHours: "{0} 時間ごと",
1864
+ updateChecksEveryDays: "{0} 日ごと",
1865
+ updateChecksHint: "初期設定はオフです。オンにすると選択した間隔で確認します。自動でインストールはしません。",
1866
+ updateChecksPending: "未確認",
1867
+ updateChecksChecking: "確認中…",
1868
+ updateChecksFound: "{0} 件の更新があります",
1869
+ updateChecksNone: "通知する更新はありません",
1870
+ updateChecksFailed: "確認が完了していません",
1871
+ updateChecksFailedHint: "一部の情報を取得できないため、前回の結果を保持しています。後でもう一度お試しください。",
1872
+ updateChecksLastSuccess: "前回の確認完了:{0}",
1873
+ updateChecksOpenHost: "プラグイン画面で確認",
1874
+ updateNotificationsAnnouncement: "{count} 件のプラグイン更新があります。プラグインボックスで確認してください。",
1792
1875
  setSelfUpToDate: "最新バージョンです",
1793
1876
  setSelfUpdateReady: "新しいバージョンがあります",
1794
1877
  setSelfUpdateHint: "更新すると新しいバージョンをダウンロードし、再起動後に有効になります。",
@@ -1947,7 +2030,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1947
2030
  clearFilters: "絞り込みをクリア",
1948
2031
  installedEmpty: "コミュニティプラグインはまだインストールされていません。「見つける」ページで探せます",
1949
2032
  marketGoneTitle: "プラグインボックスが停止しました",
1950
- marketGoneBody: "DSH がプラグインを再読み込みした際に、マーケットも一緒にアンロードされました。DSH を再起動すれば復旧します。直前の操作は完了している可能性があります。",
2033
+ marketGoneBody: "DSH がプラグインを再読み込みした際に、マーケットも一緒にアンロードされました。自動で再接続します。戻らない場合は DSH を完全に終了してから開き直してください。直前の操作は完了している可能性があります。",
1951
2034
  marketGoneRecord: "マーケットが DSH からアンロードされたため、この操作の結果は届きませんでした。マーケットが戻ったら、「インストール済み」で確認してください。",
1952
2035
  marketGoneReconnecting: "再接続しています…",
1953
2036
  marketGoneReconnect: "再接続",
@@ -2020,6 +2103,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2020
2103
  hostUpdateHint: "このマーケットはデスクトップアプリがインストールと更新を行います。新しいバージョンへの更新はデスクトップアプリで行ってください",
2021
2104
  notesLink: "変更内容",
2022
2105
  notesRelease: "リリースノート",
2106
+ notesBeyondTarget: "以下は {0} の説明です。このバージョンはまだ入れられません。今回の更新で入るのは {1} です。",
2023
2107
  notesCommits: "コミット履歴",
2024
2108
  notesCommitsRecent: "最近のコミット(現在のインストール済みバージョンには対応しません。参考情報です)",
2025
2109
  notesNpm: "バージョンの公開日時",
@@ -2046,7 +2130,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2046
2130
  renameContinue: "移行して更新",
2047
2131
  restoreOnline: "オンライン版に切り替える",
2048
2132
  restoreHint: "ローカル版をアンインストールしてオンライン版をインストールします。その後も通常どおり更新を確認します。この操作は取り消せません。",
2049
- hostIncompatibleTitle: "この新しいバージョンには、より新しい DSH が必要です",
2133
+ hostIncompatibleTitle: "このプラグインのバージョンは現在の DSH に対応していません",
2050
2134
  hostIncompatibleBody: "{plugin} は DSH {requirement} が必要だと宣言していますが、現在動作しているのは {host} です。インストールしてもほぼ確実に使えなくなり、手動で古い版に戻すしかなくなります。\n何も変更されていません。プラグインは現在のバージョンのままです。\nバージョン番号が正しくないと分かっている場合(バージョンを報告しない同梱の DSH など)は、そのまま更新できます。",
2051
2135
  hostIncompatibleUnknown: "不明なバージョン",
2052
2136
  hostIncompatibleSearching: "現在の DSH と互換性のあるバージョンを探しています…",
@@ -2162,8 +2246,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2162
2246
  hostCompatible: "現在の DSH {0} と互換性あり",
2163
2247
  hostDetecting: "ホストのバージョンを識別中…",
2164
2248
  hostUnknown: "ホストのバージョンは不明です",
2165
- hostFilterLoading: "ホストの要件を確認中 {0}/{1}。宣言していない、または確認できないプラグインも引き続き表示されます",
2166
- hostFilterActive: "DSH {0} と互換性のないプラグイン {1} 件を隠しました。バージョンを宣言していないものは一覧に残っています",
2249
+ hostFilterLoading: "このページのホスト要件を確認中 {0}/{1}。要件が不明なプラグインも表示されます。",
2250
+ hostFilterActive: "このページで DSH {0} と互換性のないプラグインを {1} 件非表示にしました。要件が不明なプラグインも表示されます。",
2251
+ hostFilterEmpty: "このページのプラグインはすべて現在の DSH と互換性がありません。",
2252
+ hostFilterIncomplete: "このページで DSH {0} と互換性のないプラグインを {1} 件非表示にしました。確認できなかった {2} 件は表示されたままです。",
2167
2253
  hostRequirement: "DSH {0}",
2168
2254
  hostRequirementLoading: "ホストの要件を読み取り中…",
2169
2255
  hostRequirementUndeclared: "ホストの要件は宣言されていません",
@@ -2201,6 +2287,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2201
2287
  perPage: "1 ページあたり",
2202
2288
  marketUpdate: "プラグインボックスを更新",
2203
2289
  updateAll: "すべて更新",
2290
+ updateCheckFailed: "更新を確認できませんでした",
2291
+ updateCheckRetry: "更新確認を再試行",
2204
2292
  heldReleaseNotice: "インストールしましたが、最新版ではありません。この profile の minimumReleaseAge が {0} を保留したため、{1} がインストールされました。",
2205
2293
  versionUnverifiedNote: "インストールしましたが、バージョンを確認できませんでした。レジストリの照会が 2 回とも失敗したため、pnpm が選んだ {0} が入っています。実際のバージョンはプラグイン画面で確認できます。",
2206
2294
  versionUnverifiedNoteUnknown: "インストールしましたが、バージョンを確認できませんでした。レジストリの照会が 2 回とも失敗しました。実際のバージョンはプラグイン画面で確認できます。",
@@ -2326,6 +2414,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2326
2414
  actWhy: "なぜ有効にならないのですか?",
2327
2415
  tabList: "一覧",
2328
2416
  tabGroups: "グループ",
2417
+ installedSort: "並び替え",
2418
+ installedSortLabel: "インストール済みの並び順",
2419
+ installedSortDefault: "既定(稼働中を優先)",
2420
+ installedSortName: "名前",
2421
+ installedSortNewest: "インストール日時:新しい順",
2422
+ installedSortOldest: "インストール日時:古い順",
2423
+ installedAtLabel: "インストール",
2424
+ updatedAtLabel: "最終更新",
2425
+ installedAtUnknown: "この市場はインストール日時を記録していません(別の方法でインストールされました)",
2329
2426
  repoLink: "GitHub でリポジトリを見る",
2330
2427
  viewSourceRepo: "リポジトリを見る↗",
2331
2428
  disabledState: "無効",
@@ -2360,6 +2457,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2360
2457
  groupConfirmDelete: "グループを削除しますか?",
2361
2458
  groupExpand: "{0} を展開",
2362
2459
  groupFold: "{0} を折りたたむ",
2460
+ groupCollapseAll: "すべて折りたたむ",
2461
+ groupExpandAll: "すべて展開",
2363
2462
  groupThemeTaken: "テーマはすでにあります",
2364
2463
  groupSearchEmpty: "一致するプラグインはありません",
2365
2464
  groupStateInert: "未有効",
@@ -2755,6 +2854,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2755
2854
  if (!/^[A-Za-z0-9_./-]+$/.test(subpath)) return false;
2756
2855
  return !subpath.split("/").some((seg) => seg === "" || seg === "." || seg === "..");
2757
2856
  }
2857
+ /** Registry tarball names must be plain npm package names, nothing fancier. */
2858
+ const NPM_NAME_RE = /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/;
2758
2859
  /**
2759
2860
  * Parse a registry source url: a github repo, optionally with a
2760
2861
  * `/tree/<branch>/<subpath>` suffix (how the curated list links monorepo
@@ -2810,7 +2911,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2810
2911
  }
2811
2912
  /** Keep GitHub packages in one repository distinct, independently of their display names. */
2812
2913
  function hostCompatibilityKey(plugin) {
2813
- if (typeof plugin.npm === "string" && plugin.npm !== "") return plugin.npm;
2914
+ if (typeof plugin.npm === "string" && plugin.npm !== "") return NPM_NAME_RE.test(plugin.npm) ? plugin.npm : null;
2814
2915
  return parseSourceUrl(plugin.url) === null ? null : plugin.url;
2815
2916
  }
2816
2917
  /**
@@ -2922,7 +3023,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2922
3023
  }
2923
3024
  function readSession(key) {
2924
3025
  try {
2925
- return JSON.parse(sessionStorage.getItem(key) || "null");
3026
+ return JSON.parse(window.sessionStorage.getItem(key) || "null");
2926
3027
  } catch {
2927
3028
  return null;
2928
3029
  }
@@ -3057,8 +3158,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3057
3158
  const categories = pluginCategories(plugin);
3058
3159
  if (options.category !== "all" && !categories.includes(options.category)) return [];
3059
3160
  if (options.sinceDays !== void 0 && !withinDays(plugin.added, options.sinceDays)) return [];
3060
- const compatibilityKey = hostCompatibilityKey(plugin);
3061
- if (options.compatibleWithHost === true && compatibilityKey !== null && options.hostCompatibility?.[compatibilityKey]?.status === "incompatible") return [];
3161
+ const compatibilityKey = options.compatibleWithHost === true ? hostCompatibilityKey(plugin) : null;
3162
+ if (compatibilityKey !== null && options.hostCompatibility?.[compatibilityKey]?.status === "incompatible") return [];
3062
3163
  const relevance = query === "" ? 0 : pluginRelevance(plugin, query, tokens, options.lang, options.categories);
3063
3164
  return relevance === 0 && query !== "" ? [] : [{
3064
3165
  plugin,
@@ -3232,12 +3333,35 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3232
3333
  function repoRoots(ids) {
3233
3334
  return new Set([...ids].map((id) => id.split("#path:/")[0]));
3234
3335
  }
3235
- function sameSourceConflict(plugin, spec, repoIdentities = []) {
3236
- const entry = repoRoots(entryRepoIds(plugin));
3336
+ /**
3337
+ * An entry's repository roots, per entry object. A pure function of an object
3338
+ * that outlives every call, like `entryIdCache` above, and asked about every
3339
+ * entry on every pass of the installed matching (#1097).
3340
+ */
3341
+ const entryRootCache = /* @__PURE__ */ new WeakMap();
3342
+ function entryRoots(plugin) {
3343
+ const cached = entryRootCache.get(plugin);
3344
+ if (cached !== void 0) return cached;
3345
+ const roots = repoRoots(entryRepoIds(plugin));
3346
+ entryRootCache.set(plugin, roots);
3347
+ return roots;
3348
+ }
3349
+ /**
3350
+ * `sameSourceConflict` for ONE dependency against many entries: the
3351
+ * dependency's half is built once, not once per entry (#1097).
3352
+ */
3353
+ function sourceConflictWith(spec, repoIdentities = []) {
3237
3354
  const dep = repoRoots(depRepoIds(spec, repoIdentities));
3238
- if (entry.size === 0 || dep.size === 0) return false;
3239
- for (const id of dep) if (entry.has(id)) return false;
3240
- return true;
3355
+ if (dep.size === 0) return () => false;
3356
+ return (plugin) => {
3357
+ const entry = entryRoots(plugin);
3358
+ if (entry.size === 0) return false;
3359
+ for (const id of dep) if (entry.has(id)) return false;
3360
+ return true;
3361
+ };
3362
+ }
3363
+ function sameSourceConflict(plugin, spec, repoIdentities = []) {
3364
+ return sourceConflictWith(spec, repoIdentities)(plugin);
3241
3365
  }
3242
3366
  function repoHintMatches(plugin, hints) {
3243
3367
  const entry = entryRepoIds(plugin);
@@ -3298,8 +3422,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3298
3422
  continue;
3299
3423
  }
3300
3424
  if (depRepoIds(specStr, repos).size === 0 && plugins !== void 0 && looseMatchCount(plugins, name) > 1 && !repoHintMatches(plugin, repoHints[name] ?? [])) continue;
3301
- if (sameSourceConflict(plugin, specStr, repos)) continue;
3302
- for (const id of depIdentities(name, specStr, repos)) if (ids.has(id)) return name;
3425
+ let meets = false;
3426
+ for (const id of depIdentities(name, specStr, repos)) if (ids.has(id)) {
3427
+ meets = true;
3428
+ break;
3429
+ }
3430
+ if (!meets || sameSourceConflict(plugin, specStr, repos)) continue;
3431
+ return name;
3303
3432
  }
3304
3433
  return null;
3305
3434
  }
@@ -3309,10 +3438,23 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3309
3438
  if (plugins.find((plugin) => repoHintMatches(plugin, repoHints) && looseMatches(plugin, name)) === void 0) return void 0;
3310
3439
  }
3311
3440
  const ids = depIdentities(name, String(spec), repoIdentities);
3441
+ const conflicts = sourceConflictWith(String(spec), repoIdentities);
3442
+ const subpaths = new Set([...ids].filter((id) => id.includes("#path:/")));
3443
+ if (subpaths.size > 0) {
3444
+ const exact = plugins.find((plugin) => {
3445
+ if (conflicts(plugin)) return false;
3446
+ for (const id of entryIdentities(plugin)) if (subpaths.has(id)) return true;
3447
+ return false;
3448
+ });
3449
+ if (exact !== void 0) return exact;
3450
+ }
3312
3451
  return plugins.find((plugin) => {
3313
- if (sameSourceConflict(plugin, String(spec), repoIdentities)) return false;
3314
- for (const id of entryIdentities(plugin)) if (ids.has(id)) return true;
3315
- return false;
3452
+ let meets = false;
3453
+ for (const id of entryIdentities(plugin)) if (ids.has(id)) {
3454
+ meets = true;
3455
+ break;
3456
+ }
3457
+ return meets && !conflicts(plugin);
3316
3458
  });
3317
3459
  }
3318
3460
  function isInstalled(plugin, installed, repoIdentities = {}, plugins, repoHints = {}) {
@@ -3893,6 +4035,43 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3893
4035
  if (/^(?:link|file):/i.test(spec)) return findCatalogEntryForLocal(plugins, name, repoIdentities, repoHints) ?? void 0;
3894
4036
  return entryForDep(plugins, name, spec, repoIdentities, repoHints);
3895
4037
  }
4038
+ /** The date a row shows, in the reader's own timezone; null when unknown. */
4039
+ function installedDateText(stamp) {
4040
+ if (stamp === void 0) return null;
4041
+ const at = new Date(stamp);
4042
+ if (Number.isNaN(at.getTime())) return null;
4043
+ const pad = (value) => String(value).padStart(2, "0");
4044
+ return `${String(at.getFullYear())}-${pad(at.getMonth() + 1)}-${pad(at.getDate())}`;
4045
+ }
4046
+ function installedAtMs(stamp) {
4047
+ if (stamp === void 0) return null;
4048
+ const at = Date.parse(stamp);
4049
+ return Number.isFinite(at) ? at : null;
4050
+ }
4051
+ /**
4052
+ * Order two installed rows by the chosen field.
4053
+ *
4054
+ * `default` answers 0 on purpose: the list already has an order that means
4055
+ * something (a plugin that is off sinks below every one that is on, #745),
4056
+ * and the caller applies that first. This only decides what happens INSIDE
4057
+ * those groups.
4058
+ *
4059
+ * A row with no install time goes last in BOTH directions. "Sort by install
4060
+ * time" cannot place something whose time nobody recorded, and flipping the
4061
+ * arrow must not lift a guess above a fact — the whole point of showing `—`
4062
+ * is that the market says when it does not know.
4063
+ */
4064
+ function compareInstalledRows(sort, a, b) {
4065
+ if (sort === "default") return 0;
4066
+ if (sort === "name") return a.name.localeCompare(b.name);
4067
+ const left = installedAtMs(a.installedAt);
4068
+ const right = installedAtMs(b.installedAt);
4069
+ if (left === null && right === null) return a.name.localeCompare(b.name);
4070
+ if (left === null) return 1;
4071
+ if (right === null) return -1;
4072
+ if (left === right) return a.name.localeCompare(b.name);
4073
+ return sort === "newest" ? right - left : left - right;
4074
+ }
3896
4075
  //#endregion
3897
4076
  //#region src/client/InstallToast.tsx
3898
4077
  /**
@@ -3903,13 +4082,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3903
4082
  function InstallToast(props) {
3904
4083
  const t = props.t;
3905
4084
  const [mode] = (0, react.useState)(() => {
3906
- const value = sessionStorage.getItem("dshm-toast-mode");
3907
- sessionStorage.removeItem("dshm-toast-mode");
4085
+ const value = window.sessionStorage.getItem("dshm-toast-mode");
4086
+ window.sessionStorage.removeItem("dshm-toast-mode");
3908
4087
  return value;
3909
4088
  });
3910
4089
  const [names, setNames] = (0, react.useState)(() => {
3911
4090
  const value = readSession("dshm-toast");
3912
- sessionStorage.removeItem("dshm-toast");
4091
+ window.sessionStorage.removeItem("dshm-toast");
3913
4092
  return Array.isArray(value) ? value : [];
3914
4093
  });
3915
4094
  if (names.length === 0) return null;
@@ -4055,7 +4234,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4055
4234
  const HostCheckbox = optionalComponent("Checkbox");
4056
4235
  //#endregion
4057
4236
  //#region \0dsh-css:src/client/Market.module.css.mjs
4058
- const css = ".nUhMVa_root{min-width:0;height:100%;color:var(--dsw-alias-label-primary,#1f2328);flex-direction:column;display:flex;position:relative;container-type:inline-size}.nUhMVa_head{flex-direction:column;gap:8px;padding:0 4px 4px;display:flex}.nUhMVa_headTop{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 16px;min-width:0;display:flex}.nUhMVa_headTop>.nUhMVa_titleRow>.nUhMVa_sub{max-width:100%}.nUhMVa_title{white-space:nowrap;color:var(--dsw-alias-label-primary,#1f2328);margin:0;font-size:15px;font-weight:600;line-height:22px}.nUhMVa_sub{min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);flex:auto;margin:0;font-size:12px;line-height:18px}.nUhMVa_sidebarTip{color:var(--dsw-alias-label-secondary,#5c6570);flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;font-size:12px;line-height:18px;display:flex}.nUhMVa_submitLink{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;font-size:12px;line-height:18px;text-decoration:none}.nUhMVa_submitLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_tabs{flex-wrap:wrap;align-items:center;gap:4px;padding:0 0 2px;display:flex;position:relative}.nUhMVa_tab{height:32px;font:inherit;color:var(--dsw-alias-label-secondary,#5c6570);border-radius:var(--dsw-radius-sm,#8px);cursor:pointer;white-space:nowrap;background:0 0;border:none;align-items:center;padding:0 10px;font-size:13px;line-height:20px;transition:background-color .12s,color .12s;display:inline-flex;position:relative}.nUhMVa_tab:hover:not(.nUhMVa_on){background:var(--dsw-alias-interactive-bg-hover,#2631480f);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_tab.nUhMVa_on{color:var(--dsw-alias-label-primary,#1f2328);font-weight:600}.nUhMVa_tab.nUhMVa_on:after{content:\"\";background:var(--dsw-alias-label-primary,#1f2328);border-radius:1px;height:2px;position:absolute;bottom:3px;left:10px;right:10px}.nUhMVa_subTabs{flex-wrap:wrap;align-items:center;gap:4px;margin:0 0 2px;display:flex}.nUhMVa_banner{background:var(--dsw-alias-bg-layer-2,#fdf3e3);border:1px solid var(--dsw-alias-border-l2,#f3e3c3);border-radius:8px;align-items:center;gap:8px;margin:0;padding:8px 12px;font-size:12px;display:flex}.nUhMVa_bannerIcon{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0}.nUhMVa_bannerHint{color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:help;display:inline-flex}.nUhMVa_body{overflow-anchor:none;flex:1;padding:8px 4px 64px;scroll-padding-bottom:64px;overflow-x:hidden;overflow-y:auto}.nUhMVa_stickyHead{z-index:5;background:var(--dsw-alias-bg-base,#fff);position:sticky;top:-1px}.nUhMVa_stickyHead:before{content:\"\";background:inherit;pointer-events:none;height:14px;position:absolute;bottom:100%;left:0;right:0}.nUhMVa_cats{margin:0 -4px 2px;padding:0 4px 4px}.nUhMVa_catsRow{align-items:flex-start;gap:6px;display:flex;position:relative}.nUhMVa_star{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;flex:none;font-size:11px;line-height:18px}.nUhMVa_top{z-index:20;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:var(--dsw-shadow-lv1,0 4px 12px #1f232814);border-radius:99px;display:inline-flex;position:absolute;bottom:18px;right:18px}.nUhMVa_topBtn{border-radius:99px;width:38px;height:38px;padding:0}.nUhMVa_tag{border:.5px solid var(--dsw-alias-border-l3,#d9dde3);color:var(--dsw-alias-label-secondary,#5c6570);white-space:nowrap;border-radius:999px;flex-shrink:0;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.nUhMVa_hostRequirement{border:.5px solid var(--dsw-alias-border-l3,#d9dde3);color:var(--dsw-alias-label-secondary,#5c6570);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;min-width:0;max-width:18em;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;overflow:hidden}.nUhMVa_hostRequirementBad{border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-state-error-primary,#dc2626);background:#dc262614}.nUhMVa_hostFilterNote{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:6px;font-size:12px;line-height:18px}.nUhMVa_okState{color:var(--dsw-alias-state-success-primary,#16a34a);white-space:nowrap;font-size:12px;font-weight:600}.nUhMVa_catsWrap{flex-wrap:wrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex}.nUhMVa_catsCollapsed{max-height:62px;overflow:hidden}.nUhMVa_catsToggle.nUhMVa_catsToggle{height:26px;min-height:26px;color:var(--dsw-alias-label-secondary,#5c6570);flex:none;padding:0 6px}.nUhMVa_shots{-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:8px;margin:6px 0 8px;padding:2px 0 6px;display:flex;overflow-x:auto}.nUhMVa_shot{object-fit:cover;border-radius:var(--dsw-radius-lg,16px);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);cursor:pointer;flex:none;width:220px;height:150px}.nUhMVa_cardShots{-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:6px;margin:0 0 6px;padding:0 0 2px;display:flex;overflow-x:auto}.nUhMVa_cardShot{object-fit:contain;border-radius:var(--dsw-radius-lg,16px);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);cursor:pointer;flex:none;width:132px;height:88px;display:block}.nUhMVa_lightbox{z-index:10000;cursor:zoom-out;background:#000000d9;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.nUhMVa_lightboxImg{object-fit:contain;cursor:default;border-radius:4px;max-width:90vw;max-height:85vh}.nUhMVa_lightboxClose{color:#fff;cursor:pointer;background:#ffffff1f;border:none;border-radius:99px;place-items:center;width:36px;height:36px;font-size:22px;line-height:1;display:grid;position:absolute;top:16px;right:16px}.nUhMVa_lightboxClose:hover{background:#ffffff38}.nUhMVa_lightboxNav{color:#fff;cursor:pointer;background:#ffffff1f;border:none;border-radius:99px;place-items:center;width:44px;height:44px;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.nUhMVa_lightboxNav:hover{background:#ffffff38}.nUhMVa_lightboxPrev{left:16px}.nUhMVa_lightboxNext{right:16px}.nUhMVa_lightboxDots{gap:8px;display:flex;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.nUhMVa_lightboxDot{cursor:pointer;background:#fff6;border-radius:99px;width:7px;height:7px}.nUhMVa_lightboxDotOn{background:#fff}.nUhMVa_cmd{background:var(--dsw-alias-bg-layer-2,#f3f4f6);font-size:11px;line-height:18px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);word-break:break-all;border-radius:6px;margin:8px 0 0;padding:8px 10px}.nUhMVa_warnLine{color:var(--dsw-alias-state-warn-primary,#b45309);flex-wrap:wrap;align-items:center;gap:4px;margin:0;font-size:12px;font-weight:600;line-height:18px;display:flex}.nUhMVa_modalNote{color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:center;gap:4px;margin:12px 0 0;font-size:12px;line-height:18px;display:flex}.nUhMVa_confirmBody{flex-direction:column;gap:12px;display:flex}.nUhMVa_confirmModal{width:min(560px,92vw);max-width:min(560px,92vw);max-height:100%}.nUhMVa_confirmContent{flex:auto;min-height:0;overflow:hidden}.nUhMVa_confirmContent>:first-child{flex-shrink:0}.nUhMVa_confirmContent>:last-child{overscroll-behavior:contain;flex:auto;min-height:0;margin-top:0;overflow-y:auto}.nUhMVa_confirmModal>:last-child{flex-shrink:0}.nUhMVa_confirmBody .nUhMVa_byline{flex-wrap:nowrap;margin-top:0}.nUhMVa_confirmBody .nUhMVa_owner{min-width:0}.nUhMVa_confirmBody .nUhMVa_shots{margin:0;padding:0}.nUhMVa_confirmBody .nUhMVa_modalNote{margin:0}.nUhMVa_confirmTags{flex-wrap:wrap;gap:6px;display:flex}.nUhMVa_confirmDesc{color:var(--dsw-alias-label-primary,#1f2328);white-space:pre-wrap;margin:0;font-size:13px;line-height:20px}.nUhMVa_confirmFold{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;padding-top:12px;display:flex}.nUhMVa_confirmPanel{--fold-bg:#f7f8fa;--fold-border:#e7e8ea;--fold-ink:#1c1d1f;--fold-on-ink:#fff;background:var(--fold-bg);border:1px solid var(--fold-border);border-radius:8px}body[data-ds-dark-theme] .nUhMVa_confirmPanel{--fold-bg:var(--dsw-alias-bg-layer-3,#353638);--fold-border:var(--dsw-alias-border-l2,#ffffff1f);--fold-ink:var(--dsw-alias-label-primary,#f9fafb);--fold-on-ink:var(--dsw-alias-bg-layer-2,#2c2c2e)}.nUhMVa_confirmPanelRow{box-sizing:border-box;width:100%;min-height:40px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:0 12px;display:flex}.nUhMVa_confirmPanelRow:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4176e6);outline-offset:-2px}.nUhMVa_confirmPanelIcon{color:var(--fold-ink);flex:none;display:inline-flex}.nUhMVa_confirmTerminalIcon{color:var(--fold-ink);flex:none;display:block}.nUhMVa_confirmTerminalPrompt{stroke:var(--fold-on-ink);fill:none}.nUhMVa_confirmTerminalDot{fill:var(--fold-on-ink)}.nUhMVa_confirmPanelTitle{min-width:0;color:var(--fold-ink);flex:1 0 auto;font-size:13px;line-height:20px}.nUhMVa_confirmPanelRowStatic{cursor:default}.nUhMVa_confirmPanel[data-state=unchecked]{background:color-mix(in srgb, var(--fold-bg) 35%, transparent);border-style:dashed}.nUhMVa_confirmPanelMeta{min-width:0;color:var(--dsw-alias-label-secondary,#6b7280);text-align:right;flex:0 auto;font-size:12px;line-height:20px}.nUhMVa_confirmPanelChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex:none}.nUhMVa_confirmPanelBody{flex-direction:column;gap:10px;padding:0 12px 10px 16px;display:flex}.nUhMVa_confirmCmd{align-items:center;gap:8px;display:flex}.nUhMVa_confirmPanel .nUhMVa_cmd{background:0 0;border-radius:0;flex:1;min-width:0;margin:0;padding:0;line-height:24px}.nUhMVa_confirmCopied{color:var(--dsw-alias-state-success-primary,#22c55e);white-space:nowrap;flex:none;font-size:12px;line-height:24px}.nUhMVa_confirmCopy{width:24px;height:24px;color:var(--fold-ink,#1c1d1f);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.nUhMVa_confirmCopy:hover{background:color-mix(in srgb, var(--fold-ink,#1c1d1f) 8%, transparent)}.nUhMVa_confirmCopy:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4176e6);outline-offset:1px}.nUhMVa_confirmPanel .nUhMVa_caps{gap:6px;padding:0}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capChip{background:var(--fold-on-ink,#fff);border:1px solid var(--fold-border,#e7e8ea);color:var(--fold-ink,#1c1d1f);border-radius:999px;padding:2px 8px;font-size:12px;line-height:18px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capChip.nUhMVa_capChipUncommon{background:var(--fold-ink,#1c1d1f);border-color:var(--fold-ink,#1c1d1f);color:var(--fold-on-ink,#fff);font-weight:600}.nUhMVa_capGroups{grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px 12px;display:grid}.nUhMVa_capGroupLabel{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;font-size:12px;line-height:22px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capMuted{border-color:var(--fold-border,#e7e8ea);color:var(--dsw-alias-label-secondary,#6b7280);padding:2px 8px;font-size:12px;line-height:18px}.nUhMVa_capAhead{flex-direction:column;gap:6px;display:flex}.nUhMVa_capAheadLabel{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_capAheadRow{color:var(--dsw-alias-label-primary,#1f2328);align-items:flex-start;gap:8px;margin:0;font-size:13px;line-height:20px;display:flex}.nUhMVa_capAheadIcon{color:var(--dsw-alias-label-primary,#1f2328);flex:none;margin-top:2px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capAddress{color:var(--fold-ink,#1c1d1f);flex-basis:100%;margin:0 0 2px;font-size:13px;line-height:20px}.nUhMVa_capNote,.nUhMVa_confirmPanel .nUhMVa_capCaveat{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_installCaution{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#b45309) 12%, transparent);border-radius:8px;padding:12px 13px}.nUhMVa_installCautionLabel{color:var(--dsw-alias-label-secondary,#6b7280);margin:0 0 8px;font-size:12px;line-height:18px}.nUhMVa_installCautionHead{color:var(--dsw-alias-label-primary,#1f2328);align-items:center;gap:6px;margin:0;font-size:13px;font-weight:600;line-height:20px;display:flex}.nUhMVa_installCautionMark{flex:none;display:block}.nUhMVa_installCautionBody{color:var(--dsw-alias-label-primary,#1f2328);margin:6px 0 0;font-size:13px;line-height:20px}.nUhMVa_installCautionFoot{color:var(--dsw-alias-label-primary,#1f2328);align-items:baseline;gap:12px;margin:0;font-size:13px;line-height:20px;display:flex}.nUhMVa_installCautionLink{white-space:nowrap;color:var(--dsw-alias-link,#3b82f6);flex:none;margin-left:auto;font-size:13px;font-weight:600;line-height:20px;text-decoration:none}.nUhMVa_installCautionLink:hover{text-decoration:underline}.nUhMVa_confirmFineprint{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;display:grid}.nUhMVa_recentBlock{margin:2px 0 4px;padding:0 0 8px}.nUhMVa_recentRow{-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--dsw-alias-border-l3,#d9dde3) transparent;align-items:stretch;gap:8px;margin-bottom:0;padding-bottom:4px;display:flex;overflow-x:auto}.nUhMVa_recentRow::-webkit-scrollbar{height:6px}.nUhMVa_recentRow::-webkit-scrollbar-thumb{background:var(--dsw-alias-border-l3,#d9dde3);border-radius:99px}.nUhMVa_recentRow::-webkit-scrollbar-track{background:0 0}.nUhMVa_recentRow>*{box-sizing:border-box;flex:none;width:min(320px,30.7692% - 7.38462px);min-width:220px}.nUhMVa_recentRow.nUhMVa_recentCollapsed{visibility:hidden;max-height:0;margin-bottom:0;padding-bottom:0;overflow:hidden}.nUhMVa_recentTile{box-sizing:border-box;background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-direction:column;justify-content:space-between;gap:4px;height:80px;padding:8px 12px;transition:background-image .16s cubic-bezier(.16,1,.3,1);display:flex;overflow:hidden}.nUhMVa_recentTile .nUhMVa_installBtn.nUhMVa_installBtn{height:24px;min-height:24px;padding:0 8px}.nUhMVa_recentAv.nUhMVa_recentAv{flex-shrink:0;width:24px;height:24px;font-size:11px}.nUhMVa_recentTitle{align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_recentTitle>:last-child{flex-shrink:0}.nUhMVa_recentName{flex:1;min-width:0}.nUhMVa_recentTitle .nUhMVa_nm{font-size:14px;line-height:20px}.nUhMVa_recentBottom{align-items:flex-end;gap:8px;min-width:0;display:flex}.nUhMVa_recentBottom>:last-child{flex-shrink:0;margin-left:auto}.nUhMVa_recentBottom>:not(:last-child){flex:1;min-width:0}.nUhMVa_recentDesc{color:var(--dsw-alias-label-tertiary,#8b93a1);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:16px;display:-webkit-box;overflow:hidden}.nUhMVa_recentBottom .nUhMVa_cardMore{padding:0}.nUhMVa_recentHead{justify-content:space-between;align-items:center;gap:8px;margin:10px 0 8px;padding:0 4px;display:flex}.nUhMVa_recentHead .nUhMVa_favoritesSectionHead{margin:0;padding:0;font-weight:600}.nUhMVa_recentToggle{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin:0;padding:0;display:inline-flex}.nUhMVa_recentToggle:hover{color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_recentHide.nUhMVa_recentHide{height:26px;min-height:26px;color:var(--dsw-alias-label-secondary,#6b7280);padding:0 6px}.nUhMVa_recentShow{font:inherit;color:var(--dsw-alias-label-secondary,#8b93a1);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin:0 0 8px;padding:0 4px;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_recentShow:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_masonry{align-items:flex-start;gap:10px;display:flex}.nUhMVa_masonryCol{flex-direction:column;flex:1;gap:10px;min-width:0;display:flex}.nUhMVa_masonry>.nUhMVa_masonryCol>*{align-self:stretch;min-width:0}@media (max-width:680px){.nUhMVa_masonry{flex-direction:column}.nUhMVa_masonryCol{width:100%}.nUhMVa_grid{grid-template-columns:minmax(0,1fr)}}.nUhMVa_swatches{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;gap:0;height:34px;display:flex;overflow:hidden}.nUhMVa_themesGrid{margin-bottom:12px}.nUhMVa_swatches i{flex:1}.nUhMVa_themeToolbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 4px 12px;display:grid}.nUhMVa_themeSearch{box-sizing:border-box;width:100%;min-width:0}.nUhMVa_themeToolbarActions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.nUhMVa_themeFullscreenBtn.nUhMVa_themeFullscreenBtn{width:28px;min-width:28px;padding:0}.nUhMVa_themeResultBar{min-height:24px;color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:center;padding:0 4px 8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_favoritesSectionHead{color:var(--dsw-alias-label-primary,#1f2328);margin:16px 0 8px;padding:0 4px;font-size:14px;font-weight:500;line-height:22px}.nUhMVa_favoritesSectionHead:first-of-type{margin-top:0}.nUhMVa_brokenPluginNotice{flex-direction:column;gap:8px;margin:0 0 8px;display:flex}.nUhMVa_brokenPluginItem{border:1px solid var(--dsw-alias-state-warn-tertiary,#b4530933);background:var(--dsw-alias-state-warn-tertiary,#b453090f);color:var(--dsw-alias-state-warn-primary,#b45309);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_brokenPluginText{flex-direction:column;gap:2px;min-width:0;display:flex}.nUhMVa_favoritesStaleBar{border:1px solid var(--dsw-alias-state-warn-tertiary,#b4530933);background:var(--dsw-alias-state-warn-tertiary,#b453090f);color:var(--dsw-alias-state-warn-primary,#b45309);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_favoritesStaleOnly{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.nUhMVa_themeGallery{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px;display:grid}.nUhMVa_themeCard{border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);background:var(--dsw-alias-bg-layer-1,#fff);flex-direction:column;min-width:0;transition:border-color .16s cubic-bezier(.16,1,.3,1),box-shadow .16s cubic-bezier(.16,1,.3,1),transform .16s cubic-bezier(.16,1,.3,1);display:flex;overflow:hidden}.nUhMVa_themeCard:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4);box-shadow:var(--dsw-shadow-lv1,0 4px 12px #1f232814);transform:translateY(-1px)}.nUhMVa_themeCover{aspect-ratio:16/10;border:0;border-bottom:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);width:100%;color:var(--dsw-alias-label-secondary,#6b7280);cursor:zoom-in;border-radius:0;padding:0;display:block;position:relative;overflow:hidden}.nUhMVa_themeCover img{object-fit:contain;background:var(--dsw-alias-bg-layer-2,#f3f4f6);width:100%;height:100%;transition:transform .18s cubic-bezier(.16,1,.3,1);display:block}.nUhMVa_themeCover:hover img{transform:scale(1.012)}.nUhMVa_themeCover:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4f6ef7);outline-offset:-3px}.nUhMVa_themeCoverEmpty{cursor:default;color:var(--dsw-alias-label-tertiary,#8b93a1);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border-radius:var(--dsw-radius-lg,16px) 0 0 0;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_themePreviewAction,.nUhMVa_themePreviewCount{color:#fff;background:#14181fc7;border:1px solid #ffffff57;border-radius:4px;align-items:center;height:24px;padding:0 8px;font-size:11px;line-height:16px;display:inline-flex;position:absolute;bottom:8px}.nUhMVa_themePreviewAction{gap:4px;right:8px}.nUhMVa_themePreviewCount{left:8px}.nUhMVa_themeCardBody{flex-direction:column;flex:1;gap:8px;padding:14px;display:flex}.nUhMVa_themeCardHead{align-items:flex-start;gap:8px;min-width:0;display:flex}.nUhMVa_themeIdentity{flex:1;min-width:0}.nUhMVa_themeStatus,.nUhMVa_themeStatusMuted{white-space:nowrap;border-radius:4px;flex:none;align-items:center;min-height:22px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_themeStatus{background:var(--dsw-alias-state-success-tertiary,#16a34a1a);color:var(--dsw-alias-state-success-primary,#15803d)}.nUhMVa_themeStatusMuted{background:var(--dsw-alias-bg-layer-2,#f3f4f6);color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_themeDescription{min-height:36px;color:var(--dsw-alias-label-tertiary,#8b93a1);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.nUhMVa_themeCardFooter{justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:4px;display:flex}.nUhMVa_themeLifecycle{min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:18px;overflow:hidden}.nUhMVa_themeActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto;display:flex}@container (width<=900px){.nUhMVa_themeGallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width<=680px){.nUhMVa_themeGallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width<=460px){.nUhMVa_themeGallery{grid-template-columns:minmax(0,1fr)}}.nUhMVa_exportLogBtn{white-space:nowrap;flex-shrink:0}@container (width<=560px){.nUhMVa_headTop{flex-direction:column;align-items:stretch}.nUhMVa_headTop>.nUhMVa_titleRow{margin-left:0}}@container (width<=420px){.nUhMVa_exportLogBtn{align-self:center}.nUhMVa_themeToolbar{grid-template-columns:minmax(0,1fr)}.nUhMVa_themeCardHead{flex-wrap:wrap}.nUhMVa_themeStatus,.nUhMVa_themeStatusMuted{order:3}}@container (width<=280px){.nUhMVa_themeCardFooter{flex-direction:column;align-items:flex-start}.nUhMVa_themeActions{justify-content:flex-start;width:100%;margin-left:0}}@media (max-width:560px){[role=dialog]:has([data-dsh-crate-root])>nav{display:none}[role=dialog]:has([data-dsh-crate-root])>div{flex:100%;width:100%;min-width:0}}.nUhMVa_panelHost{box-sizing:border-box;height:100%;min-height:0;padding:calc(28px + var(--dsh-frame-top-clearance,0px)) 0 0;flex-direction:column;display:flex}.nUhMVa_panelHost>.nUhMVa_root{flex:1;width:100%;min-width:0;min-height:0;container-type:normal}.nUhMVa_panelHost .nUhMVa_head,.nUhMVa_panelHost .nUhMVa_body{padding-left:max(max(16px,min(4vw,48px)),50% - 480px);padding-right:max(max(16px,min(4vw,48px)),50% - 480px);container-type:inline-size}[data-dsh-crate-plugins-tab=true]{--dshm-host-sticky-top:0px;--dshm-plugins-head-height:0px}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]){--dshm-empty-view-height:100vh;height:auto}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body{min-height:calc(100vh - var(--dshm-host-sticky-top,0px) - var(--dshm-plugins-head-height,0px));flex-direction:column;flex:none;display:flex;overflow:visible}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body>.nUhMVa_empty{box-sizing:border-box;width:100%;max-width:none;max-height:var(--dshm-empty-view-height,100vh);flex-direction:column;flex:auto;justify-content:center;align-items:center;margin:0;padding:32px;display:flex}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_top{position:fixed}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_stickyHead{display:contents}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_head{z-index:6;top:var(--dshm-host-sticky-top,0px);background:var(--dsw-alias-bg-base,#fff);margin:0 -4px;padding:4px 4px 6px;position:sticky}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_cats{z-index:5;top:calc(var(--dshm-host-sticky-top,0px) + var(--dshm-plugins-head-height,0px));background:var(--dsw-alias-bg-base,#fff);position:sticky}[role=dialog]:has([data-dsh-crate-fullscreen=true]){border-radius:0;width:100vw;max-width:none;height:100vh;max-height:none;position:fixed;top:0;bottom:0;left:0;right:0}[data-dsh-crate-plugins-tab=true][data-dsh-crate-fullscreen=true]{z-index:60;background:var(--dsw-alias-bg-layer-1,#fff);position:fixed;top:0;bottom:0;left:0;right:0;height:100vh!important}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]){--dshm-head-h:0px;height:auto}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body{flex:none;overflow:visible}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_head{z-index:6;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-base,#fff));position:sticky;top:0}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_stickyHead{top:calc(var(--dshm-head-h,0px) + 8px);background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-base,#fff))}@media (prefers-reduced-motion:reduce){.nUhMVa_themeCard,.nUhMVa_themeCover img{transition:none}.nUhMVa_themeCard:hover{transform:none}}.nUhMVa_card{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;align-self:start;gap:10px;min-width:0;padding:12px 14px;transition:background-image .16s cubic-bezier(.16,1,.3,1);display:flex}@media (hover:hover){.nUhMVa_card:hover,.nUhMVa_recentTile:hover{background-image:linear-gradient(var(--dsw-alias-interactive-bg-hover,#2631480f),var(--dsw-alias-interactive-bg-hover,#2631480f))}.nUhMVa_installBtn:hover:not(:disabled){background:var(--dsw-alias-button-primary-fill,#0f1115);color:var(--dsw-alias-label-primary-foreground,#fff);border-color:#0000}}.nUhMVa_row1{align-items:flex-start;gap:10px;min-width:0;display:flex}.nUhMVa_cardAction{flex-shrink:0;align-items:center;display:inline-flex}.nUhMVa_installBtn.nUhMVa_installBtn{min-width:64px}.nUhMVa_av{width:16px;height:16px;color:var(--dsw-alias-label-primary,#1f2328);object-fit:cover;background:var(--dsw-alias-bg-layer-2,#f3f4f6);border-radius:50%;flex-shrink:0;place-items:center;font-size:9px;font-weight:700;display:grid}.nUhMVa_nm{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:20px;overflow:hidden}.nUhMVa_nmLink{color:inherit;text-decoration:none;display:block}.nUhMVa_nmLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_repoMark{color:var(--dsw-alias-label-secondary,#6b7280);vertical-align:-1px;flex-shrink:0;margin-left:5px;display:inline-block}.nUhMVa_nmLink:hover .nUhMVa_repoMark{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_byline{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-top:2px;display:flex}.nUhMVa_meta{color:var(--dsw-alias-label-secondary,#9ca3af);margin-top:2px;font-size:11px}.nUhMVa_metaInline{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px}.nUhMVa_owner{color:var(--dsw-alias-label-secondary,#5c6570);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:44px;font-size:11px;line-height:18px;overflow:hidden}.nUhMVa_desc{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:0;font-size:12px;line-height:18px}.nUhMVa_descClamp{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.nUhMVa_descClamp3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.nUhMVa_descToggle{width:20px;height:16px;color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;margin-top:2px;padding:0;display:flex}.nUhMVa_descToggle:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_foot{flex-wrap:nowrap;align-items:flex-end;gap:8px;display:flex}.nUhMVa_foot .nUhMVa_metaInline,.nUhMVa_foot .nUhMVa_src{white-space:nowrap}.nUhMVa_footTags{flex-wrap:wrap;flex:1 1 0;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_grow{flex:1}.nUhMVa_titleRow{flex-wrap:wrap;align-items:center;gap:8px 10px;display:flex}.nUhMVa_titleActions{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;align-items:center;gap:4px 10px;min-width:0;margin-left:auto;display:flex}.nUhMVa_titleActions:empty{display:none}.nUhMVa_titleActions>*{white-space:nowrap;flex-shrink:0}.nUhMVa_version{color:var(--dsw-alias-label-tertiary,#8b93a1);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px;line-height:20px}.nUhMVa_repoLink{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;font-size:12px;line-height:20px;text-decoration:none}.nUhMVa_repoLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_noteRow{flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex}.nUhMVa_desc.nUhMVa_noteRow,.nUhMVa_desc.nUhMVa_noteRow+.nUhMVa_noteRow,.nUhMVa_noteEdit+.nUhMVa_noteRow{margin-top:6px}.nUhMVa_noteMine{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_noteToggle{font:inherit;color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:pointer;white-space:nowrap;background:0 0;border:none;flex-shrink:0;padding:0;font-size:11px;line-height:16px}.nUhMVa_noteToggle:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_noteEdit{flex-direction:column;gap:6px;min-width:0;margin-top:6px;display:flex}.nUhMVa_noteInput{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:flex}.nUhMVa_noteInput input{box-sizing:border-box;flex:auto;width:100%;min-width:0}.nUhMVa_noteEditBar{justify-content:flex-end;align-items:center;gap:6px;display:flex}.nUhMVa_noteCount{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-tertiary,#8b93a1);margin-right:auto;font-size:11px;line-height:16px}.nUhMVa_descTight{min-height:0}.nUhMVa_src{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px;text-decoration:none}.nUhMVa_src:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_dot{vertical-align:2px;margin-left:5px}.nUhMVa_act{flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:11px;display:flex}.nUhMVa_actLive{color:var(--dsw-alias-state-success-primary,#16a34a);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actWarn{color:var(--dsw-alias-state-warn-primary,#b45309);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actBroken{color:var(--dsw-alias-state-error-primary,#dc2626);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actWhy{color:var(--dsw-alias-label-secondary,#6b7280);margin-top:2px}.nUhMVa_loading{color:var(--dsw-alias-label-secondary,#9ca3af);flex-direction:column;align-items:center;gap:12px;padding:48px;font-size:13px;display:flex}.nUhMVa_spin{color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;animation:.8s linear infinite nUhMVa_sp;display:inline-flex}.nUhMVa_logoMark{color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;display:inline-flex}.nUhMVa_logoCell,.nUhMVa_logoPlug,.nUhMVa_logoPlugAmbient{--dshm-cycle:2.8s}.nUhMVa_logoMark .nUhMVa_logoCell,.nUhMVa_logoMark .nUhMVa_logoPlug{--dshm-cycle:2s}.nUhMVa_logoCell{--dshm-wave:0;animation:nUhMVa_dshmMarkWave var(--dshm-cycle) cubic-bezier(.4,0,.2,1) infinite;animation-delay:calc(var(--dshm-wave) * .11s)}.nUhMVa_logoPlug,.nUhMVa_logoPlugAmbient{transform-box:fill-box;transform-origin:50%;animation:nUhMVa_dshmMarkPlug var(--dshm-cycle) cubic-bezier(.4,0,.2,1) infinite}@keyframes nUhMVa_dshmMarkWave{0%,to{opacity:1}6%{opacity:.5}16%{opacity:1}}@keyframes nUhMVa_dshmMarkPlug{0%,8%{transform:translate(1.35px,-1.35px)rotate(9deg)}22%{transform:translate(-.11px,.11px)rotate(0)}30%,62%{transform:translate(0)rotate(0)}76%,to{transform:translate(1.35px,-1.35px)rotate(9deg)}}@media (prefers-reduced-motion:reduce){.nUhMVa_logoCell,.nUhMVa_logoPlugAmbient{animation:none}.nUhMVa_logoPlug,.nUhMVa_spin{animation:1.5s ease-in-out infinite nUhMVa_dshmPlugFade}}@keyframes nUhMVa_dshmPlugFade{0%,to{opacity:1}50%{opacity:.35}}@keyframes nUhMVa_sp{to{transform:rotate(360deg)}}.nUhMVa_progress{background:var(--dsw-alias-bg-layer-2,#f3f4f6);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:8px;flex-wrap:wrap;align-items:center;gap:9px;margin:0;padding:8px 12px;font-size:12px;display:flex}.nUhMVa_bar{background:var(--dsw-alias-border-l1,#e5e7eb);border-radius:99px;width:100%;height:4px;overflow:hidden}.nUhMVa_barFill{background:var(--dsw-alias-brand-primary,#4f6ef7);border-radius:99px;height:100%;transition:width .6s}.nUhMVa_barWave{width:30%;animation:1.2s ease-in-out infinite nUhMVa_dshmSlide}@keyframes nUhMVa_dshmSlide{0%{margin-left:-30%}to{margin-left:100%}}.nUhMVa_irow .nUhMVa_progress{margin-top:8px}.nUhMVa_progress code{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.nUhMVa_empty{color:var(--dsw-alias-label-secondary,#5c6570);text-align:center;max-width:520px;margin:0 auto;padding:56px 32px 40px;font-size:13px;line-height:20px}.nUhMVa_err{color:var(--dsw-alias-state-error-primary,#dc2626);white-space:pre-wrap;word-break:break-all;margin:8px 0;font-size:12px}.nUhMVa_cardBlocked{border-color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_conflictHead{align-items:flex-start;gap:8px;display:flex}.nUhMVa_conflictIcon{color:var(--dsw-alias-state-error-primary,#dc2626);flex-shrink:0;margin-top:1px}.nUhMVa_conflictTitle{color:var(--dsw-alias-state-error-primary,#dc2626);font-size:13px;font-weight:600;line-height:18px}.nUhMVa_conflictBody{margin:0;font-size:12px;line-height:19px}.nUhMVa_roster{background:var(--dsw-alias-border-l2,#e5e7eb);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;gap:1px;display:flex;overflow:hidden}.nUhMVa_rosterRow{background:var(--dsw-alias-bg-layer-1,#fff);align-items:center;gap:8px;padding:7px 10px;display:flex}.nUhMVa_rosterMain{flex-direction:column;min-width:0;display:flex}.nUhMVa_rosterName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;font-weight:600;overflow:hidden}.nUhMVa_rosterAuthor{color:var(--dsw-alias-label-secondary,#9ca3af);text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;overflow:hidden}.nUhMVa_rosterTag{border-radius:4px;flex-shrink:0;margin-left:auto;padding:1px 6px;font-size:10.5px;font-weight:600}.nUhMVa_rosterTagKeep{color:var(--dsw-alias-state-success-primary,#16a34a);background:#16a34a1f}.nUhMVa_rosterTagDrop{color:var(--dsw-alias-state-error-primary,#dc2626);background:#dc26261f}.nUhMVa_rosterRowOut .nUhMVa_rosterName{text-decoration:line-through}.nUhMVa_rosterRowOut{opacity:.62}.nUhMVa_rosterSplit{background:var(--dsw-alias-border-l2,#e5e7eb);height:1px}.nUhMVa_reassure{color:var(--dsw-alias-label-secondary,#6b7280);align-items:center;gap:5px;margin:0;font-size:11.5px;line-height:17px;display:flex}.nUhMVa_reassureOk{color:var(--dsw-alias-state-success-primary,#16a34a);flex-shrink:0}.nUhMVa_conflictWhy{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:17px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;margin-top:2px}.nUhMVa_conflictWhyText{margin-top:5px;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif}.nUhMVa_choices{flex-direction:column;gap:7px;display:flex}.nUhMVa_choice{text-align:left;font:inherit;cursor:pointer;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:9px;align-items:flex-start;gap:9px;padding:9px 11px;display:flex}.nUhMVa_choice:has(input:disabled){cursor:default;opacity:.6}.nUhMVa_choiceOn{border-color:var(--dsw-alias-brand-primary,#4f6ef7);background:var(--dsw-alias-bg-layer-2,#f5f7ff)}.nUhMVa_choiceRadio{width:13px;height:13px;accent-color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;margin:2px 0 0}.nUhMVa_choiceMain{flex-direction:column;gap:3px;min-width:0;display:flex}.nUhMVa_choiceTitle{font-size:12px;font-weight:600;line-height:17px}.nUhMVa_choiceNote{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:16px}.nUhMVa_choiceSafe{color:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_stateTag{white-space:nowrap;background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-height:20px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:5px;flex-shrink:0;align-items:center;gap:5px;padding:1px 7px;font-size:11px;line-height:16px;display:inline-flex}.nUhMVa_stateTag[data-on=true]{color:var(--dsw-alias-state-success-primary,#16a34a);background:color-mix(in srgb, var(--dsw-alias-state-success-primary,#16a34a) 10%, transparent)}.nUhMVa_stateDot{background:var(--dsw-alias-label-tertiary,#8b93a1);border-radius:999px;flex:none;width:6px;height:6px}.nUhMVa_stateDot[data-on=true]{background:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_metaTag{text-overflow:ellipsis;white-space:nowrap;background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-width:0;max-width:100%;min-height:20px;color:var(--dsw-alias-label-tertiary,#8b93a1);border-radius:5px;flex-shrink:1;padding:1px 7px;font-size:11px;line-height:18px;display:inline-block;overflow:hidden}.nUhMVa_metaTagOk{color:var(--dsw-alias-state-success-primary,#16a34a);background:color-mix(in srgb, var(--dsw-alias-state-success-primary,#16a34a) 10%, transparent)}.nUhMVa_irow{transition:background-image .16s cubic-bezier(.16,1,.3,1)}.nUhMVa_irow:hover{background-image:linear-gradient(var(--dsw-alias-interactive-bg-hover,#2631480f),var(--dsw-alias-interactive-bg-hover,#2631480f))}.nUhMVa_irowHead{align-items:flex-start;gap:8px;min-width:0;display:flex}.nUhMVa_irowHead .nUhMVa_irowName{flex:1 1 0;min-width:0}.nUhMVa_irowMenu{flex-shrink:0;margin-top:-4px;margin-left:auto;margin-right:-6px}.nUhMVa_irowMeta{color:var(--dsw-alias-label-secondary,#6b7280);margin-top:2px;font-size:12px;line-height:18px}.nUhMVa_irowPath{align-items:center;gap:6px;min-width:0;margin-top:6px;display:flex}.nUhMVa_irowPath .nUhMVa_spec{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nUhMVa_irowPathIcon,.nUhMVa_irowStatusIcon{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;display:inline-flex}.nUhMVa_irowPathCopy{flex-shrink:0;align-items:center;gap:4px;margin-left:auto;display:inline-flex}.nUhMVa_irowPath .nUhMVa_confirmCopy{width:20px;height:20px;color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_irowPath .nUhMVa_confirmCopy:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_irowPath .nUhMVa_confirmCopied{color:var(--dsw-alias-label-secondary,#6b7280);order:1;font-size:11px}.nUhMVa_irowDesc{flex:100%;min-width:0}.nUhMVa_irowStatus{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-top:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_irowStatus+.nUhMVa_irowStatus{margin-top:4px}.nUhMVa_irowStatusPart{align-items:baseline;gap:6px;display:inline-flex}.nUhMVa_irowStatus .nUhMVa_notesLink{margin:0;display:inline}.nUhMVa_irowStatus .nUhMVa_metaInline{font-size:12px}.nUhMVa_irowStatusAction{margin-left:auto;display:inline-flex}.nUhMVa_irowStatusAction .nUhMVa_noteToggle{color:var(--dsw-alias-label-secondary,#6b7280);font-size:12px;line-height:18px}.nUhMVa_irowStatusAction .nUhMVa_noteToggle:hover{color:var(--dsw-alias-label-primary,#1f2328);text-decoration:none}.nUhMVa_descMore{cursor:pointer;font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);background:0 0;border:none;align-items:center;gap:2px;margin-top:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_descMore:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_noteAdd{cursor:pointer;font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;background:0 0;border:none;align-items:center;gap:6px;margin-top:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_noteAdd:hover,.nUhMVa_irowStatusFact{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_irowStatusSep{color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_nameLink{color:inherit;text-decoration:none}.nUhMVa_irowName{text-overflow:clip;flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex;overflow:visible}.nUhMVa_irowNameText{overflow-wrap:anywhere;white-space:normal;min-width:0}.nUhMVa_irowName>.nUhMVa_owner{flex:none}.nUhMVa_nameLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_opWrap{flex-shrink:0;margin-bottom:6px;display:inline-flex}.nUhMVa_opEntry{font:inherit;cursor:pointer;white-space:nowrap;height:28px;color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-1,#fff);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:8px;align-items:center;gap:5px;padding:0 7px 0 10px;font-size:12px;transition:background-color .12s,color .12s,border-color .12s;display:inline-flex;position:relative}.nUhMVa_opEntryQuiet{background:var(--dsw-alias-bg-module-platform,#f4f5f7);color:var(--dsw-alias-label-secondary,#5c6570)}.nUhMVa_opEntry:hover{color:var(--dsw-alias-label-primary,#1f2328);border-color:var(--dsw-alias-border-l2,#e5e7eb);background:var(--dsw-alias-bg-module-platform,#f4f5f7)}.nUhMVa_opChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;transition:transform .14s cubic-bezier(.16,1,.3,1);display:inline-flex}.nUhMVa_opChevronOpen{transform:rotate(180deg)}.nUhMVa_opEntryAlert{border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_opDot{background:var(--dsw-alias-state-error-primary,#dc2626);border-radius:99px;width:8px;height:8px;position:absolute;top:-3px;right:-3px}.nUhMVa_opPanel{z-index:40;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:12px;width:460px;max-width:100%;max-height:70vh;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto;box-shadow:0 20px 52px #00000047}.nUhMVa_opHead{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:center;gap:8px;padding:9px 14px;display:flex}.nUhMVa_opPanelTitle{font-size:12.5px;font-weight:600}.nUhMVa_opCloseBtn.nUhMVa_opCloseBtn{min-width:0;color:var(--dsw-alias-label-secondary,#6b7280);padding:0 6px}.nUhMVa_opAggregate{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);background:var(--dsw-alias-bg-layer-2,#f7f8fa);padding:9px 14px}.nUhMVa_opAggregateTop{font-variant-numeric:tabular-nums;font-size:12px;font-weight:600}.nUhMVa_opAggregateHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:4px;font-size:10.5px}.nUhMVa_opRow{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:flex-start;gap:9px;padding:9px 14px;display:flex}.nUhMVa_opRow:last-child{border-bottom:none}.nUhMVa_opRowAlert{background:#dc26260f}.nUhMVa_opIcon{flex-shrink:0;place-items:center;width:14px;margin-top:1px;display:grid}.nUhMVa_opQueuedIcon{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:12px}.nUhMVa_opMain{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.nUhMVa_opTop{align-items:baseline;gap:6px;min-width:0;display:flex}.nUhMVa_opVerb{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;font-size:12px}.nUhMVa_opName{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;overflow:hidden}.nUhMVa_opStatus{color:var(--dsw-alias-label-tertiary,#8b93a1);overflow-wrap:anywhere;font-size:10.5px;line-height:16px}.nUhMVa_opStatusBad{color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_opAgents{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:2px 0 0;font-size:10.5px;line-height:16px}.nUhMVa_opAgentsSummary{cursor:pointer;color:var(--dsw-alias-label-secondary,#5c6570);font-size:10.5px;line-height:16px;list-style:none}.nUhMVa_opAgentsSummary::-webkit-details-marker{display:none}.nUhMVa_opAgentsSummary:before{content:\"▸\";width:10px;transition:transform .12s cubic-bezier(.16,1,.3,1);display:inline-block}.nUhMVa_opAgents[open]>.nUhMVa_opAgentsSummary:before{transform:rotate(90deg)}.nUhMVa_opAgentsList{flex-direction:column;gap:1px;margin:2px 0 0;padding:0 0 0 12px;list-style:none;display:flex}.nUhMVa_opAgentsId{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;line-height:15px;overflow:hidden}.nUhMVa_opActions{flex-shrink:0;align-items:center;gap:6px;margin-top:1px;display:flex}.nUhMVa_opDecision{border-top:1px dashed var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;margin-top:8px;padding-top:8px;display:flex}.nUhMVa_opDecisionFoot{align-items:center;gap:8px;display:flex}.nUhMVa_conflictDetailsToggle{font:inherit;cursor:pointer;color:var(--dsw-alias-label-tertiary,#8b93a1);background:0 0;border:none;align-items:center;gap:4px;padding:2px 0;font-size:11px;display:inline-flex}.nUhMVa_conflictDetailsToggle:hover{color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_opEmpty{text-align:center;color:var(--dsw-alias-label-secondary,#6b7280);padding:30px 14px;font-size:12px}.nUhMVa_opEmptyHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:4px;font-size:11px}.nUhMVa_cardBlockedMark{font:inherit;cursor:pointer;color:var(--dsw-alias-state-error-primary,#dc2626);border:1px solid var(--dsw-alias-state-error-primary,#dc2626);background:#dc262614;border-radius:7px;align-items:center;gap:5px;padding:4px 9px;font-size:11px;display:inline-flex}.nUhMVa_dangerBtn.nUhMVa_dangerBtn{color:var(--dsw-alias-state-error-primary,#dc2626);border-color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_dangerBtn.nUhMVa_dangerBtn:hover:not(:disabled){background:var(--dsw-alias-state-error-primary,#dc2626);color:#fff}.nUhMVa_dangerArmed.nUhMVa_dangerArmed{background:var(--dsw-alias-state-error-primary,#dc2626);border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-label-primary-foreground,#fff)}.nUhMVa_retryBtn{margin-top:4px}.nUhMVa_irow{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;gap:10px;min-width:0;padding:12px 14px;display:flex}.nUhMVa_irowActions{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_irowTrailing{flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:8px;min-width:0;display:inline-flex}.nUhMVa_irowTrailing .nUhMVa_metaTag{flex-shrink:1;min-width:0}.nUhMVa_irowMissing{filter:grayscale();opacity:.5}.nUhMVa_irow>.nUhMVa_src,.nUhMVa_irow>.nUhMVa_owner,.nUhMVa_irow button{white-space:nowrap;flex-shrink:0}.nUhMVa_tabSearchRow{align-items:center;gap:8px;padding:0 4px 10px;display:flex}.nUhMVa_tabSearch{flex:1;min-width:0}.nUhMVa_caps{flex-wrap:wrap;align-items:center;gap:4px;min-width:0;padding:0 2px 6px;font-size:11px;line-height:1.5;display:flex}.nUhMVa_capsTitle{color:var(--dsw-alias-label-secondary,#8b949e);cursor:help}.nUhMVa_capChip{border:1px solid var(--dsw-alias-border-l2,#30363d);color:var(--dsw-alias-label-primary,#c9d1d9);white-space:nowrap;border-radius:999px;padding:0 6px}.nUhMVa_capMuted{border:1px dashed var(--dsw-alias-border-l2,#30363d);color:var(--dsw-alias-label-secondary,#8b949e);white-space:nowrap;border-radius:999px;padding:0 6px}.nUhMVa_capCaveat{color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:baseline;gap:12px;margin:6px 0 0;font-size:11px;line-height:16px;display:flex}.nUhMVa_capCaveatNote{min-width:0}.nUhMVa_capCaveatAt{white-space:nowrap;flex:none;margin-left:auto}.nUhMVa_searchField{box-sizing:border-box;min-width:0;position:relative}.nUhMVa_searchInput.nUhMVa_searchInput{box-sizing:border-box;width:100%;min-width:0;padding-right:34px}.nUhMVa_searchClear{width:24px;height:24px;color:var(--dsw-alias-label-secondary,#59636e);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;padding:0;font-size:20px;line-height:1;display:flex;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.nUhMVa_searchClear:hover{background:var(--dsw-alias-bg-layer-2,#f3f4f6);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_searchClear:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4f6ef7);outline-offset:1px}.nUhMVa_spec{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;min-width:0}.nUhMVa_specTag{white-space:nowrap;border-radius:4px;flex-shrink:0;align-items:center;height:16px;padding:0 5px;font-size:10px;font-weight:600;display:inline-flex}.nUhMVa_specTagGit{color:var(--dsw-alias-state-business-primary,#0b7285);background:#12a3c41f}.nUhMVa_specTagFile{color:var(--dsw-alias-state-warn-primary,#b07d1b);background:#f0b42924}.nUhMVa_backupCheckList .nUhMVa_grow{white-space:nowrap;text-overflow:ellipsis;flex:70%;min-width:0;overflow:hidden}.nUhMVa_backupCheckList .nUhMVa_spec{text-align:right;white-space:nowrap;text-overflow:ellipsis;flex:0 30%;max-width:30%;overflow:hidden}.nUhMVa_staleAction{word-break:normal;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.nUhMVa_pct{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;font-size:11px;font-weight:600}.nUhMVa_pager{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;margin:16px 0 4px;display:flex}.nUhMVa_loadMore{justify-content:center;margin:16px 0 4px;display:flex}.nUhMVa_pagerPages{flex-wrap:nowrap;flex:1;justify-content:center;align-items:center;gap:4px;min-width:0;display:flex}.nUhMVa_pagerMeta{flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:6px;display:flex}.nUhMVa_pagerPages button,.nUhMVa_pagerMeta button{min-width:0;padding:0 8px}.nUhMVa_pageEllipsis{color:var(--dsw-alias-label-secondary,#9ca3af);padding:0 1px;font-size:12px}.nUhMVa_pageInfo{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;font-size:12px}@container (width<=544px){.nUhMVa_pager{flex-wrap:wrap;justify-content:center;gap:8px}.nUhMVa_pagerPages{flex-basis:100%}}.nUhMVa_depBadge{border:1px solid var(--dsw-alias-state-warn-primary,#b45309);color:var(--dsw-alias-state-warn-primary,#b45309);white-space:nowrap;border-radius:4px;flex-shrink:0;margin-left:6px;padding:1px 6px;font-size:11px;font-weight:600;line-height:16px}.nUhMVa_deprecate{color:var(--dsw-alias-state-warn-primary,#b45309);background:var(--dsw-alias-bg-layer-2,#fdf3e3);border:1px solid var(--dsw-alias-border-l2,#f3e3c3);border-radius:8px;margin:0;padding:8px 10px;font-size:12px;line-height:18px}.nUhMVa_deprecate a{color:var(--dsw-alias-state-warn-primary,#b45309);text-decoration:underline}.nUhMVa_deprecate .nUhMVa_src{margin-left:8px}.nUhMVa_depLine{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nUhMVa_switch{border:1px solid var(--dsw-alias-border-l2,#d9dde3);background:var(--dsw-alias-bg-layer-2,#e5e7eb);cursor:pointer;border-radius:99px;flex-shrink:0;width:38px;height:22px;padding:0;transition:background .15s,border-color .15s;position:relative}.nUhMVa_switchOn{background:var(--dsw-alias-state-success-primary,#16a34a);border-color:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_switchMixed{background:var(--dsw-alias-state-warn-primary,#b45309);border-color:var(--dsw-alias-state-warn-primary,#b45309)}.nUhMVa_switchKnob{background:#fff;border-radius:99px;width:16px;height:16px;transition:left .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.nUhMVa_switchOn .nUhMVa_switchKnob,.nUhMVa_switchMixed .nUhMVa_switchKnob{left:18px}.nUhMVa_switch:disabled{opacity:.5;cursor:default}.nUhMVa_viewBar{border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border:none;align-items:center;gap:2px;width:fit-content;margin-bottom:12px;padding:3px;display:flex}.nUhMVa_viewBtn{font:inherit;color:var(--dsw-alias-label-secondary,#5c6570);border-radius:var(--dsw-radius-sm,8px);cursor:pointer;white-space:nowrap;background:0 0;border:none;height:26px;padding:0 10px;font-size:12px;line-height:18px;transition:background-color .12s,color .12s}.nUhMVa_viewBtn:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_viewOn{background:var(--dsw-alias-bg-layer-3,#fff);color:var(--dsw-alias-label-primary,#1f2328);box-shadow:0 0 0 .5px var(--dsw-alias-border-l3,#0000001f);font-weight:600}.nUhMVa_groupRow{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);margin-bottom:10px;padding:12px 14px}.nUhMVa_groupHead{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.nUhMVa_groupCollapse{width:22px;height:22px;color:var(--dsw-alias-label-secondary,#6b7280);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.nUhMVa_groupCollapse:hover{background:var(--dsw-alias-bg-layer-2,#eef0f4);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_groupTitle{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.nUhMVa_groupTitle .nUhMVa_groupHint{margin-top:0}.nUhMVa_groupName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:20px;overflow:hidden}.nUhMVa_groupMeta{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:16px}.nUhMVa_groupActions{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:6px;margin-left:auto;display:flex}.nUhMVa_groupMembers{flex-direction:column;gap:6px;margin-top:10px;display:flex}.nUhMVa_groupMember{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;align-items:center;gap:8px;min-width:0;padding:6px 8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_groupMember .nUhMVa_nm{flex:1;min-width:0;font-size:12px}.nUhMVa_memberName{flex:auto;align-items:center;gap:6px;min-width:0;display:flex}.nUhMVa_memberName .nUhMVa_nm{flex:0 auto;min-width:0}.nUhMVa_memberNameWithDesc{flex:0 auto;max-width:42%}.nUhMVa_memberKind{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;flex:none;font-size:11px;line-height:16px}.nUhMVa_themeSlot{box-shadow:inset 0 -1px 0 var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px 8px 0 0;margin-bottom:4px}.nUhMVa_groupMember>.nUhMVa_switch,.nUhMVa_groupMember>button{flex-shrink:0}.nUhMVa_groupMemberAction{flex:none;margin-left:auto}.nUhMVa_groupMemberAction button{white-space:nowrap}.nUhMVa_groupAddPanel{border-top:1px dashed var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:6px;margin-top:10px;padding-top:10px;display:flex}.nUhMVa_groupAddModalBody{flex-direction:column;gap:10px;min-width:0;display:flex}.nUhMVa_groupAddFilters{flex-wrap:wrap;gap:6px;display:flex}.nUhMVa_groupAddModalList{flex-direction:column;gap:6px;max-height:min(50vh,360px);padding-right:2px;display:flex;overflow-y:auto}.nUhMVa_groupAddModalHint{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_groupAddPick{background:var(--dsw-alias-bg-layer-2,#f7f8fa);cursor:pointer;border-radius:8px;align-items:center;gap:8px;min-width:0;padding:8px 10px;display:flex}.nUhMVa_groupAddPick:hover{background:var(--dsw-alias-bg-layer-2,#eef0f4)}.nUhMVa_groupAddPick input{flex-shrink:0;margin:0}.nUhMVa_groupAddPick .nUhMVa_nm{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:12px;overflow:hidden}.nUhMVa_groupAddFooterMeta{color:var(--dsw-alias-label-secondary,#6b7280);align-self:center;margin-right:auto;font-size:12px;line-height:18px}.nUhMVa_groupOrgHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:4px 0 0;font-size:11px;line-height:16px}.nUhMVa_groupRenameField{flex-direction:column;gap:6px;min-width:min(100%,320px);display:flex}.nUhMVa_groupRenameField label{color:var(--dsw-alias-label-secondary,#6b7280);font-size:12px;line-height:18px}.nUhMVa_groupRenameField .nUhMVa_inlineInput{width:100%}.nUhMVa_groupCreate{align-items:center;gap:8px;margin-bottom:10px;display:flex}.nUhMVa_groupCreateInline{flex-shrink:0;align-items:center;gap:8px;display:flex}.nUhMVa_groupCreateInline .nUhMVa_inlineInput{flex:none;width:160px}.nUhMVa_inlineInput{flex:1;min-width:120px}.nUhMVa_ungroupedRow{flex-wrap:nowrap}.nUhMVa_ungroupedRow>.nUhMVa_nm{flex:0 auto;max-width:42%;font-size:12px;line-height:18px}.nUhMVa_ungroupedState{flex:0 auto;align-items:center;min-width:0;max-width:46%;margin:0;display:inline-flex}.nUhMVa_ungroupedState>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nUhMVa_ungroupedDesc{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);flex:1 1 0;font-size:12px;line-height:18px;overflow:hidden}.nUhMVa_ungroupedDesc.nUhMVa_noteMine{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_groupHint{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px}.nUhMVa_sect{color:var(--dsw-alias-label-secondary,#6b7280);margin:14px 2px 8px;font-size:12px;font-weight:600}.nUhMVa_sectAction{color:var(--dsw-alias-label-secondary,#6b7280);align-items:center;gap:8px;margin:14px 2px 8px;font-size:12px;font-weight:600;display:flex}.nUhMVa_backupGrid{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}.nUhMVa_backupCard{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;gap:10px;padding:16px;display:flex}.nUhMVa_backupCard h3{margin:0;font-size:14px}.nUhMVa_backupCard p{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_backupActions{flex-wrap:wrap;gap:8px;display:flex;position:relative}.nUhMVa_hiddenFile{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.nUhMVa_backupInput{box-sizing:border-box;width:100%}.nUhMVa_backupCheck{cursor:pointer;align-items:center;gap:6px;font-size:12px;display:flex}.nUhMVa_backupWarn{margin:0;font-size:12px;line-height:18px;color:var(--dsw-alias-state-warn-primary,#b45309)!important}.nUhMVa_backupMessage{color:var(--dsw-alias-label-secondary,#6b7280);grid-column:1/-1;font-size:12px}.nUhMVa_backupCheckList{flex-direction:column;gap:6px;max-height:260px;margin:10px 0 4px;padding-right:4px;display:flex;overflow-y:auto}.nUhMVa_backupCheckList .nUhMVa_backupCheck{justify-content:space-between;gap:8px}.nUhMVa_diagPage{flex-direction:column;gap:12px;height:100%;min-height:0;display:flex;overflow-y:auto}.nUhMVa_panelHost .nUhMVa_diagPage{height:auto;overflow:visible}.nUhMVa_diagSummary{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;font-size:12px;display:flex}.nUhMVa_diagSummaryItem{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.nUhMVa_diagSummaryMeta{color:var(--dsw-alias-label-tertiary,#9ca3af);font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);text-overflow:ellipsis;white-space:nowrap;max-width:320px;font-size:11px;overflow:hidden}.nUhMVa_diagSection{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.nUhMVa_diagSection h3{color:var(--dsw-alias-label-primary,#1f2328);margin:0;font-size:13px;font-weight:600}.nUhMVa_diagCount{color:var(--dsw-alias-label-tertiary,#9ca3af);font-size:11px;font-weight:400}.nUhMVa_diagEmpty{color:var(--dsw-alias-label-secondary,#9ca3af);padding:8px 0;font-size:12px}.nUhMVa_diagBundle{border-top:1px solid var(--dsw-alias-border-l2,#f0f1f3);flex-direction:column;gap:6px;padding-top:8px;display:flex}.nUhMVa_diagBundle:first-of-type{border-top:none;padding-top:0}.nUhMVa_diagRow{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;font-size:12px;line-height:18px;display:flex}.nUhMVa_diagMeta{align-items:baseline;gap:8px;min-width:0;font-size:12px;display:flex}.nUhMVa_diagKey{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;min-width:64px;font-size:11px}.nUhMVa_diagVal{color:var(--dsw-alias-label-primary,#1f2328);font-size:12px;font-weight:500;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;min-width:0}.nUhMVa_diagIndex{background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-width:18px;height:18px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagArrow{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;font-size:12px}.nUhMVa_diagBadgeOfficial{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4f6ef7));height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeCommunity{background:var(--dsw-alias-bg-layer-2,#f3f4f6);height:18px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;display:inline-flex}.nUhMVa_diagBadgeShadow{background:var(--dsw-alias-state-error-primary,#dc2626);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeWarn{background:var(--dsw-alias-state-warn-primary,#b45309);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeInfo{background:var(--dsw-alias-bg-layer-2,#f3f4f6);height:18px;color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;display:inline-flex}.nUhMVa_diagList{flex-direction:column;gap:6px;display:flex}.nUhMVa_sectionOverview{color:var(--dsw-alias-label-tertiary,#8b93a1);text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding:2px 0 6px;font-size:12px;line-height:18px;overflow:hidden}.nUhMVa_diagAlert{color:var(--dsw-alias-state-warn-primary,#b45309)}.nUhMVa_ovRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:6px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_ovArrow{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;font-size:12px}.nUhMVa_ovByTag{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4f6ef7));height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);text-overflow:ellipsis;white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;max-width:260px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex;overflow:hidden}.nUhMVa_ovFrom{color:var(--dsw-alias-label-secondary,#6b7280);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;overflow:hidden}.nUhMVa_orphRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:6px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_orphBadge{background:var(--dsw-alias-state-warn-primary,#b45309);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_dragHandle{width:20px;height:20px;color:var(--dsw-alias-label-tertiary,#9ca3af);cursor:grab;-webkit-user-select:none;user-select:none;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;line-height:20px;display:inline-flex}.nUhMVa_dragOver{outline:2px dashed var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px;background:var(--dsw-alias-bg-layer-2,#f0f2f8);border-radius:8px}.nUhMVa_dragging{opacity:.45;background:var(--dsw-alias-bg-layer-2,#f3f4f6)}.nUhMVa_collapseHead{font:inherit;color:var(--dsw-alias-label-primary,#1f2328);cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:8px;width:100%;padding:0;font-size:13px;font-weight:600;display:flex}.nUhMVa_collapseIcon{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;display:inline-flex}.nUhMVa_collapseTitle{flex:0 auto;min-width:0}.nUhMVa_collapseHead .nUhMVa_diagCount{flex-shrink:0}.nUhMVa_collapseBody{border-top:1px solid var(--dsw-alias-border-l2,#f0f1f3);overflow-wrap:anywhere;flex-direction:column;gap:10px;min-width:0;margin-top:8px;padding-top:10px;display:flex}.nUhMVa_orderPanel{flex-direction:column;gap:10px;min-width:0;display:flex}.nUhMVa_panelNote{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_panelActions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nUhMVa_presetList{flex-direction:column;gap:6px;min-width:0;display:flex}.nUhMVa_presetRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-direction:column;align-items:stretch;gap:6px;min-width:0;max-width:100%;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_presetName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.nUhMVa_snapList{flex-direction:column;gap:6px;min-width:0;display:flex}.nUhMVa_snapRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px;font-size:12px;line-height:18px;display:flex}.nUhMVa_snapMeta{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_snapConfirmText{color:var(--dsw-alias-state-warn-primary,#b45309);margin:0;font-size:12px;line-height:18px}.nUhMVa_confirmRow{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.nUhMVa_fixFallback{flex-direction:column;gap:6px;margin:8px 0;display:flex}.nUhMVa_fixFallbackText,.nUhMVa_envEditor{box-sizing:border-box;width:100%;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-2,#f3f4f6);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);resize:vertical;white-space:pre-wrap;word-break:break-all;border-radius:6px;padding:8px 10px;font-size:11px;line-height:16px}.nUhMVa_setCard{border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));background:var(--dsw-alias-bg-layer-3,#fff);border-radius:var(--dsw-radius-lg,16px);list-style:none;transition:border-color .16s,background .16s}.nUhMVa_setCard:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.nUhMVa_setCardOpen{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.nUhMVa_setHeader{-webkit-appearance:none;appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--dsw-radius-lg,16px);background:0 0;border:0;align-items:center;gap:12px;padding:14px 16px;display:flex}.nUhMVa_setHeader:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.nUhMVa_setHeadText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.nUhMVa_setName{color:var(--dsw-alias-label-primary,#1f2328);font-size:15px;font-weight:600;line-height:1.4}.nUhMVa_setDesc{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:13px;line-height:1.5}.nUhMVa_setChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex:none;transition:transform .16s;display:inline-flex}.nUhMVa_setChevronOpen{transform:rotate(180deg)}.nUhMVa_setBody{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);margin:0 16px;padding-bottom:8px}.nUhMVa_setRow{align-items:center;gap:12px;padding:12px 0;display:flex}.nUhMVa_setRow+.nUhMVa_setRow{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.nUhMVa_setLabelBox{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.nUhMVa_setLabel{font-size:13px;line-height:20px}.nUhMVa_setHint{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:12px;line-height:18px}.nUhMVa_setAdvanced{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.nUhMVa_setAdvancedHead{-webkit-appearance:none;appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:12px 0;display:flex}.nUhMVa_setAdvancedHead:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.nUhMVa_setAdvancedBody{padding-bottom:4px}.nUhMVa_setConfirm{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;padding:12px 0 4px;display:flex}.nUhMVa_setCheck{cursor:pointer;align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_setActions{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);justify-content:flex-end;align-items:center;gap:8px;padding:12px 0 4px;display:flex}.nUhMVa_setInlineActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.nUhMVa_setProxyEditor{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-wrap:wrap;align-items:flex-end;gap:10px;padding:12px 0;display:flex}.nUhMVa_setProxyLabel{min-width:180px;color:var(--dsw-alias-label-secondary,#6b7280);flex-direction:column;flex:1;gap:5px;font-size:12px;line-height:18px;display:flex}.nUhMVa_setProxyInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2,#d1d5db);background:var(--dsw-alias-bg-layer-3,#fff);width:100%;min-width:0;color:var(--dsw-alias-label-primary,#1f2328);font:inherit;border-radius:7px;padding:6px 8px;font-size:12px;line-height:18px}.nUhMVa_setProxyInput:focus{border-color:var(--dsw-alias-brand-primary,#4f6ef7);outline:2px solid color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 18%,transparent)}.nUhMVa_setDanger{color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_setSeg{border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border:none;flex-shrink:0;gap:2px;padding:3px;display:inline-flex}.nUhMVa_setSegBtn{font:inherit;border-radius:var(--dsw-radius-sm,8px);height:26px;color:var(--dsw-alias-label-secondary,#5c6570);cursor:pointer;background:0 0;border:none;padding:0 10px;font-size:12px;line-height:18px}.nUhMVa_setSegBtn:disabled{cursor:default;opacity:.5}.nUhMVa_setSegOn{background:var(--dsw-alias-bg-layer-3,#fff);color:var(--dsw-alias-label-primary,#1f2328);box-shadow:0 0 0 .5px var(--dsw-alias-border-l3,#0000001f);font-weight:600}.nUhMVa_setBetaTag{background:var(--dsw-alias-bg-module-platform,#eef0f4);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;margin-left:6px;padding:0 6px;font-size:11px;font-weight:600;line-height:17px}.nUhMVa_commentsLink{cursor:pointer;white-space:nowrap;color:var(--dsw-alias-label-tertiary,#8b93a1);background:0 0;border:0;padding:0;font-size:12px;line-height:18px}.nUhMVa_commentsLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_footActions{flex-shrink:0;align-items:center;gap:8px;display:inline-flex}.nUhMVa_favoriteBtn{cursor:pointer;color:var(--dsw-alias-label-secondary,#9ca3af);background:0 0;border:0;align-items:center;padding:0;display:inline-flex}.nUhMVa_favoriteMark{transform-box:fill-box;transform-origin:50% 0;display:block}.nUhMVa_favoriteBtn:hover,.nUhMVa_favoriteOn{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_cardMore{cursor:pointer;font:inherit;letter-spacing:1px;color:var(--dsw-alias-label-secondary,#9ca3af);background:0 0;border:0;padding:0 2px;font-size:14px;line-height:16px}.nUhMVa_cardMore:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_blockedTabHint{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0 0 12px;font-size:12px;line-height:18px}.nUhMVa_blockedMissing{flex-direction:column;gap:4px;margin-top:8px;display:flex}.nUhMVa_blockedBarRow{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_blockedBarName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;line-height:20px;overflow:hidden}.nUhMVa_blockedBarUndo{cursor:pointer;font:inherit;color:var(--dsw-alias-brand-primary,#4f6ef7);background:0 0;border:0;padding:0;font-size:12px;line-height:18px}.nUhMVa_commentsNote{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0 0 8px;font-size:11px;line-height:16px}.nUhMVa_commentsGithubPrompt{border:1px solid color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 24%,transparent);background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 6%,transparent);border-radius:8px;margin:0 0 10px;padding:10px}.nUhMVa_commentsGithubHint{color:var(--dsw-alias-label-primary,#1f2328);margin:0 0 8px;font-size:12px;line-height:17px}.nUhMVa_commentsGithubAction{box-sizing:border-box;border:1px solid var(--dsw-alias-brand-primary,#4f6ef7);min-height:28px;color:var(--dsw-alias-brand-primary,#4f6ef7);border-radius:6px;justify-content:center;align-items:center;padding:5px 10px;font-size:12px;font-weight:600;line-height:16px;text-decoration:none;display:inline-flex}.nUhMVa_commentsGithubAction:hover{background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 9%,transparent)}.nUhMVa_commentsStatus{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0;font-size:12px}.nUhMVa_commentsStatus:empty{display:none}.nUhMVa_commentsError{color:var(--dsw-alias-label-primary,#1f2328);margin:0 0 8px;font-size:12px}.nUhMVa_commentsFail{flex-direction:column;align-items:flex-start;gap:8px;padding:12px 0;display:flex}.nUhMVa_commentsMount{width:100%;min-height:240px;max-height:56vh;overflow:auto}.nUhMVa_commentsMount iframe{width:100%}.nUhMVa_notesLink{font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);cursor:pointer;text-align:left;background:0 0;border:none;margin:2px 0 0;padding:0;font-size:12px;line-height:18px;display:block}.nUhMVa_notesLink:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_notesModalWide{width:min(640px,92vw);max-width:min(640px,92vw)}.nUhMVa_notesBody{overscroll-behavior:contain;flex-direction:column;flex:0 auto;gap:10px;min-width:0;max-height:min(60vh,520px);padding:0 2px 8px 0;display:flex;overflow-y:auto}.nUhMVa_notesRange{align-items:center;gap:8px;margin-bottom:4px;font-size:12px;line-height:18px;display:flex}.nUhMVa_notesArrow{color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_notesMeta{letter-spacing:.02em;text-transform:uppercase;color:var(--dsw-alias-label-secondary,#6b7280);flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:4px;font-size:12px;line-height:18px;display:flex}.nUhMVa_notesBody>.nUhMVa_notesMeta:first-child{margin-top:0}.nUhMVa_notesPre{white-space:pre-wrap;word-break:break-word;background:var(--dsw-alias-bg-layer-2,#eef0f4);border-radius:8px;max-height:40vh;margin:0;padding:10px 12px;font-size:13px;line-height:20px;overflow:auto}.nUhMVa_notesRendered{flex-direction:column;gap:8px;min-width:0;display:flex}.nUhMVa_notesImg{border-radius:6px;max-width:100%;height:auto;margin:4px 0;display:block}.nUhMVa_notesH{margin-top:4px;font-size:13px;font-weight:650;line-height:20px}.nUhMVa_notesP{font-size:13px;line-height:20px}.nUhMVa_notesQuote{border-left:3px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f7f8fa);color:var(--dsw-alias-label-primary,#1f2328);border-radius:0 6px 6px 0;margin:0;padding:8px 10px;font-size:13px;line-height:20px}.nUhMVa_notesFence{background:var(--dsw-alias-bg-layer-2,#eef0f4);font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);white-space:pre;border-radius:8px;margin:0;padding:10px 12px;font-size:12px;line-height:18px;overflow-x:auto}.nUhMVa_notesFence code{font:inherit;background:0 0;padding:0}.nUhMVa_notesBullets{flex-direction:column;gap:4px;margin:0;padding-left:18px;font-size:13px;line-height:20px;display:flex}.nUhMVa_notesA{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:none}.nUhMVa_notesA:hover{text-decoration:underline}.nUhMVa_notesCode{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);background:var(--dsw-alias-bg-layer-2,#eef0f4);border-radius:5px;padding:1px 5px;font-size:12px}.nUhMVa_notesList{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.nUhMVa_notesRow{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:baseline;gap:12px;padding:6px 0;display:flex}.nUhMVa_notesRow:last-child{border-bottom:none}.nUhMVa_notesDate{color:var(--dsw-alias-label-tertiary,#8b93a1);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px}.nUhMVa_notesMsg{word-break:break-word;word-break:break-word;-webkit-line-clamp:3;-webkit-box-orient:vertical;min-width:0;font-size:13px;line-height:20px;display:-webkit-box;overflow:hidden}.nUhMVa_notesSha{color:var(--dsw-alias-label-secondary,#6b7280);font-variant-numeric:tabular-nums;flex-shrink:0;margin-left:auto;font-size:12px;text-decoration:none}.nUhMVa_recoverySummary{color:var(--dsw-alias-state-error-primary,#dc2626);word-break:break-word;align-items:flex-start;gap:8px;margin-bottom:8px;font-size:12px;display:flex}.nUhMVa_recoveryHint{color:var(--dsw-alias-label-secondary,#6b7280);margin:8px 0;font-size:12px}.nUhMVa_recoveryList{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;max-height:320px;display:flex;overflow-x:hidden;overflow-y:auto}.nUhMVa_recoveryRow{border-top:1px solid var(--dsw-alias-border-l2,#eef0f4);align-items:flex-start;gap:8px;padding:6px 10px;font-size:12px;display:flex}.nUhMVa_recoveryRow:first-child{border-top:none}.nUhMVa_recoveryBlamed{box-shadow:inset 3px 0 0 var(--dsw-alias-state-error-primary,#dc2626);background:#dc262612}.nUhMVa_recoveryMuted{opacity:.6}.nUhMVa_recoveryName{word-break:break-word;flex-direction:column;gap:2px;min-width:0;display:flex}.nUhMVa_recoveryReason{color:var(--dsw-alias-state-error-primary,#dc2626);word-break:break-word;font-size:11px}.nUhMVa_recoveryNote{color:var(--dsw-alias-label-tertiary,#8b93a1);word-break:break-word;margin-top:8px;font-size:11px}.nUhMVa_recoveryBadge{background:var(--dsw-alias-bg-layer-2,#eef0f4);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:5px;margin-left:6px;padding:0 5px;font-size:10px}.nUhMVa_recoveryLog{color:var(--dsw-alias-label-secondary,#6b7280);margin:4px 0 8px;font-size:11px}.nUhMVa_recoveryLog pre{white-space:pre-wrap;word-break:break-word;max-height:180px;margin:6px 0 0;overflow:auto}.nUhMVa_notesSha:hover{color:var(--dsw-alias-label-primary,#1f2328);text-decoration:underline}.nUhMVa_notesVer{color:inherit;font-weight:600;text-decoration:none}.nUhMVa_notesVer:hover{text-decoration:underline}.nUhMVa_notesSourceLink{color:var(--dsw-alias-brand-primary,#4f6ef7);white-space:nowrap;text-decoration:none}.nUhMVa_notesSourceLink:hover{text-decoration:underline}.nUhMVa_migrationSources{flex-direction:column;gap:8px;margin-top:4px;display:flex}.nUhMVa_migrationSource{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.nUhMVa_migrationSource code{font-size:12px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere}.nUhMVa_migrationLabel{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px}.nUhMVa_migrationArrow{text-align:center;color:var(--dsw-alias-label-secondary,#9ca3af)}.nUhMVa_migrationWarning{color:var(--dsw-alias-state-warn-primary,#b45309);align-items:flex-start;gap:6px;margin:12px 0 0;font-size:12px;line-height:18px;display:flex}.nUhMVa_migrationNote{color:var(--dsw-alias-label-secondary,#6b7280);margin:12px 0 0;font-size:12px;line-height:18px}.nUhMVa_sourceRepo{color:var(--dsw-alias-label-secondary,#5c6570);align-self:flex-end;align-items:center;gap:2px;font-size:13px;line-height:20px;text-decoration:none;display:inline-flex}.nUhMVa_sourceRepo:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_sourceRepo:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px;border-radius:4px}";
4237
+ const css = ".nUhMVa_root{min-width:0;height:100%;color:var(--dsw-alias-label-primary,#1f2328);flex-direction:column;display:flex;position:relative;container-type:inline-size}.nUhMVa_head{flex-direction:column;gap:8px;padding:0 4px 4px;display:flex}.nUhMVa_headTop{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 16px;min-width:0;display:flex}.nUhMVa_headTop>.nUhMVa_titleRow>.nUhMVa_sub{max-width:100%}.nUhMVa_title{white-space:nowrap;color:var(--dsw-alias-label-primary,#1f2328);margin:0;font-size:15px;font-weight:600;line-height:22px}.nUhMVa_sub{min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);flex:auto;margin:0;font-size:12px;line-height:18px}.nUhMVa_sidebarTip{color:var(--dsw-alias-label-secondary,#5c6570);flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;font-size:12px;line-height:18px;display:flex}.nUhMVa_updateCheckNotice{color:var(--dsw-alias-label-secondary,#5c6570);flex-wrap:wrap;align-items:center;gap:0 6px;font-size:12px;line-height:18px;display:flex}.nUhMVa_submitLink{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;font-size:12px;line-height:18px;text-decoration:none}.nUhMVa_submitLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_tabs{flex-wrap:wrap;align-items:center;gap:4px;padding:0 0 2px;display:flex;position:relative}.nUhMVa_tab{height:32px;font:inherit;color:var(--dsw-alias-label-secondary,#5c6570);border-radius:var(--dsw-radius-sm,#8px);cursor:pointer;white-space:nowrap;background:0 0;border:none;align-items:center;padding:0 10px;font-size:13px;line-height:20px;transition:background-color .12s,color .12s;display:inline-flex;position:relative}.nUhMVa_tab:hover:not(.nUhMVa_on){background:var(--dsw-alias-interactive-bg-hover,#2631480f);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_tab.nUhMVa_on{color:var(--dsw-alias-label-primary,#1f2328);font-weight:600}.nUhMVa_tab.nUhMVa_on:after{content:\"\";background:var(--dsw-alias-label-primary,#1f2328);border-radius:1px;height:2px;position:absolute;bottom:3px;left:10px;right:10px}.nUhMVa_subTabs{flex-wrap:wrap;align-items:center;gap:4px;margin:0 0 2px;display:flex}.nUhMVa_banner{background:var(--dsw-alias-bg-layer-2,#fdf3e3);border:1px solid var(--dsw-alias-border-l2,#f3e3c3);border-radius:8px;align-items:center;gap:8px;margin:0;padding:8px 12px;font-size:12px;display:flex}.nUhMVa_bannerIcon{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0}.nUhMVa_bannerHint{color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:help;display:inline-flex}.nUhMVa_body{overflow-anchor:none;flex:1;padding:8px 4px 64px;scroll-padding-bottom:64px;overflow-x:hidden;overflow-y:auto}.nUhMVa_stickyHead{z-index:5;background:var(--dsw-alias-bg-base,#fff);position:sticky;top:-1px}.nUhMVa_stickyHead:before{content:\"\";background:inherit;pointer-events:none;height:14px;position:absolute;bottom:100%;left:0;right:0}.nUhMVa_cats{margin:0 -4px 2px;padding:0 4px 4px}.nUhMVa_catsRow{align-items:flex-start;gap:6px;display:flex;position:relative}.nUhMVa_star{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;flex:none;font-size:11px;line-height:18px}.nUhMVa_top{z-index:20;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:var(--dsw-shadow-lv1,0 4px 12px #1f232814);border-radius:99px;display:inline-flex;position:absolute;bottom:18px;right:18px}.nUhMVa_topBtn{border-radius:99px;width:38px;height:38px;padding:0}.nUhMVa_tag{border:.5px solid var(--dsw-alias-border-l3,#d9dde3);color:var(--dsw-alias-label-secondary,#5c6570);white-space:nowrap;border-radius:999px;flex-shrink:0;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.nUhMVa_hostRequirement{border:.5px solid var(--dsw-alias-border-l3,#d9dde3);color:var(--dsw-alias-label-secondary,#5c6570);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;min-width:0;max-width:18em;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;overflow:hidden}.nUhMVa_hostRequirementBad{border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-state-error-primary,#dc2626);background:#dc262614}.nUhMVa_hostFilterNote{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:6px;font-size:12px;line-height:18px}.nUhMVa_okState{color:var(--dsw-alias-state-success-primary,#16a34a);white-space:nowrap;font-size:12px;font-weight:600}.nUhMVa_catsWrap{flex-wrap:wrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex}.nUhMVa_catsCollapsed{max-height:62px;overflow:hidden}.nUhMVa_catsToggle.nUhMVa_catsToggle{height:26px;min-height:26px;color:var(--dsw-alias-label-secondary,#5c6570);flex:none;padding:0 6px}.nUhMVa_shots{-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:8px;margin:6px 0 8px;padding:2px 0 6px;display:flex;overflow-x:auto}.nUhMVa_shot{object-fit:cover;border-radius:var(--dsw-radius-lg,16px);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);cursor:pointer;flex:none;width:220px;height:150px}.nUhMVa_cardShots{-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:6px;margin:0 0 6px;padding:0 0 2px;display:flex;overflow-x:auto}.nUhMVa_cardShot{object-fit:contain;border-radius:var(--dsw-radius-lg,16px);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);cursor:pointer;flex:none;width:132px;height:88px;display:block}.nUhMVa_lightbox{z-index:10000;cursor:zoom-out;background:#000000d9;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.nUhMVa_lightboxImg{object-fit:contain;cursor:default;border-radius:4px;max-width:90vw;max-height:85vh}.nUhMVa_lightboxClose{color:#fff;cursor:pointer;background:#ffffff1f;border:none;border-radius:99px;place-items:center;width:36px;height:36px;font-size:22px;line-height:1;display:grid;position:absolute;top:16px;right:16px}.nUhMVa_lightboxClose:hover{background:#ffffff38}.nUhMVa_lightboxNav{color:#fff;cursor:pointer;background:#ffffff1f;border:none;border-radius:99px;place-items:center;width:44px;height:44px;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.nUhMVa_lightboxNav:hover{background:#ffffff38}.nUhMVa_lightboxPrev{left:16px}.nUhMVa_lightboxNext{right:16px}.nUhMVa_lightboxDots{gap:8px;display:flex;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.nUhMVa_lightboxDot{cursor:pointer;background:#fff6;border-radius:99px;width:7px;height:7px}.nUhMVa_lightboxDotOn{background:#fff}.nUhMVa_cmd{background:var(--dsw-alias-bg-layer-2,#f3f4f6);font-size:11px;line-height:18px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);word-break:break-all;border-radius:6px;margin:8px 0 0;padding:8px 10px}.nUhMVa_warnLine{color:var(--dsw-alias-state-warn-primary,#b45309);flex-wrap:wrap;align-items:center;gap:4px;margin:0;font-size:12px;font-weight:600;line-height:18px;display:flex}.nUhMVa_modalNote{color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:center;gap:4px;margin:12px 0 0;font-size:12px;line-height:18px;display:flex}.nUhMVa_confirmBody{flex-direction:column;gap:12px;display:flex}.nUhMVa_confirmModal{width:min(560px,92vw);max-width:min(560px,92vw);max-height:100%}.nUhMVa_confirmContent{flex:auto;min-height:0;overflow:hidden}.nUhMVa_confirmContent>:first-child{flex-shrink:0}.nUhMVa_confirmContent>:last-child{overscroll-behavior:contain;flex:auto;min-height:0;margin-top:0;overflow-y:auto}.nUhMVa_confirmModal>:last-child{flex-shrink:0}.nUhMVa_confirmBody .nUhMVa_byline{flex-wrap:nowrap;margin-top:0}.nUhMVa_confirmBody .nUhMVa_owner{min-width:0}.nUhMVa_confirmBody .nUhMVa_shots{margin:0;padding:0}.nUhMVa_confirmBody .nUhMVa_modalNote{margin:0}.nUhMVa_confirmTags{flex-wrap:wrap;gap:6px;display:flex}.nUhMVa_confirmDesc{color:var(--dsw-alias-label-primary,#1f2328);white-space:pre-wrap;margin:0;font-size:13px;line-height:20px}.nUhMVa_confirmFold{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;padding-top:12px;display:flex}.nUhMVa_confirmPanel{--fold-bg:#f7f8fa;--fold-border:#e7e8ea;--fold-ink:#1c1d1f;--fold-on-ink:#fff;background:var(--fold-bg);border:1px solid var(--fold-border);border-radius:8px}body[data-ds-dark-theme] .nUhMVa_confirmPanel{--fold-bg:var(--dsw-alias-bg-layer-3,#353638);--fold-border:var(--dsw-alias-border-l2,#ffffff1f);--fold-ink:var(--dsw-alias-label-primary,#f9fafb);--fold-on-ink:var(--dsw-alias-bg-layer-2,#2c2c2e)}.nUhMVa_confirmPanelRow{box-sizing:border-box;width:100%;min-height:40px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:0 12px;display:flex}.nUhMVa_confirmPanelRow:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4176e6);outline-offset:-2px}.nUhMVa_confirmPanelIcon{color:var(--fold-ink);flex:none;display:inline-flex}.nUhMVa_confirmTerminalIcon{color:var(--fold-ink);flex:none;display:block}.nUhMVa_confirmTerminalPrompt{stroke:var(--fold-on-ink);fill:none}.nUhMVa_confirmTerminalDot{fill:var(--fold-on-ink)}.nUhMVa_confirmPanelTitle{min-width:0;color:var(--fold-ink);flex:1 0 auto;font-size:13px;line-height:20px}.nUhMVa_confirmPanelRowStatic{cursor:default}.nUhMVa_confirmPanel[data-state=unchecked]{background:color-mix(in srgb, var(--fold-bg) 35%, transparent);border-style:dashed}.nUhMVa_confirmPanelMeta{min-width:0;color:var(--dsw-alias-label-secondary,#6b7280);text-align:right;flex:0 auto;font-size:12px;line-height:20px}.nUhMVa_confirmPanelChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex:none}.nUhMVa_confirmPanelBody{flex-direction:column;gap:10px;padding:0 12px 10px 16px;display:flex}.nUhMVa_confirmCmd{align-items:center;gap:8px;display:flex}.nUhMVa_confirmPanel .nUhMVa_cmd{background:0 0;border-radius:0;flex:1;min-width:0;margin:0;padding:0;line-height:24px}.nUhMVa_confirmCopied{color:var(--dsw-alias-state-success-primary,#22c55e);white-space:nowrap;flex:none;font-size:12px;line-height:24px}.nUhMVa_confirmCopy{width:24px;height:24px;color:var(--fold-ink,#1c1d1f);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.nUhMVa_confirmCopy:hover{background:color-mix(in srgb, var(--fold-ink,#1c1d1f) 8%, transparent)}.nUhMVa_confirmCopy:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4176e6);outline-offset:1px}.nUhMVa_confirmPanel .nUhMVa_caps{gap:6px;padding:0}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capChip{background:var(--fold-on-ink,#fff);border:1px solid var(--fold-border,#e7e8ea);color:var(--fold-ink,#1c1d1f);border-radius:999px;padding:2px 8px;font-size:12px;line-height:18px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capChip.nUhMVa_capChipUncommon{background:var(--fold-ink,#1c1d1f);border-color:var(--fold-ink,#1c1d1f);color:var(--fold-on-ink,#fff);font-weight:600}.nUhMVa_capGroups{grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px 12px;display:grid}.nUhMVa_capGroupLabel{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;font-size:12px;line-height:22px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capMuted{border-color:var(--fold-border,#e7e8ea);color:var(--dsw-alias-label-secondary,#6b7280);padding:2px 8px;font-size:12px;line-height:18px}.nUhMVa_capAhead{flex-direction:column;gap:6px;display:flex}.nUhMVa_capAheadLabel{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_capAheadRow{color:var(--dsw-alias-label-primary,#1f2328);align-items:flex-start;gap:8px;margin:0;font-size:13px;line-height:20px;display:flex}.nUhMVa_capAheadIcon{color:var(--dsw-alias-label-primary,#1f2328);flex:none;margin-top:2px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capAddress{color:var(--fold-ink,#1c1d1f);flex-basis:100%;margin:0 0 2px;font-size:13px;line-height:20px}.nUhMVa_capNote,.nUhMVa_confirmPanel .nUhMVa_capCaveat{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_installCaution{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#b45309) 12%, transparent);border-radius:8px;padding:12px 13px}.nUhMVa_installCautionLabel{color:var(--dsw-alias-label-secondary,#6b7280);margin:0 0 8px;font-size:12px;line-height:18px}.nUhMVa_installCautionHead{color:var(--dsw-alias-label-primary,#1f2328);align-items:center;gap:6px;margin:0;font-size:13px;font-weight:600;line-height:20px;display:flex}.nUhMVa_installCautionMark{flex:none;display:block}.nUhMVa_installCautionBody{color:var(--dsw-alias-label-primary,#1f2328);margin:6px 0 0;font-size:13px;line-height:20px}.nUhMVa_installCautionFoot{color:var(--dsw-alias-label-primary,#1f2328);align-items:baseline;gap:12px;margin:0;font-size:13px;line-height:20px;display:flex}.nUhMVa_installCautionLink{white-space:nowrap;color:var(--dsw-alias-link,#3b82f6);flex:none;margin-left:auto;font-size:13px;font-weight:600;line-height:20px;text-decoration:none}.nUhMVa_installCautionLink:hover{text-decoration:underline}.nUhMVa_confirmFineprint{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;display:grid}.nUhMVa_recentBlock{margin:2px 0 4px;padding:0 0 8px}.nUhMVa_recentRow{-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--dsw-alias-border-l3,#d9dde3) transparent;align-items:stretch;gap:8px;margin-bottom:0;padding-bottom:4px;display:flex;overflow-x:auto}.nUhMVa_recentRow::-webkit-scrollbar{height:6px}.nUhMVa_recentRow::-webkit-scrollbar-thumb{background:var(--dsw-alias-border-l3,#d9dde3);border-radius:99px}.nUhMVa_recentRow::-webkit-scrollbar-track{background:0 0}.nUhMVa_recentRow>*{box-sizing:border-box;flex:none;width:min(320px,30.7692% - 7.38462px);min-width:220px}.nUhMVa_recentRow.nUhMVa_recentCollapsed{visibility:hidden;max-height:0;margin-bottom:0;padding-bottom:0;overflow:hidden}.nUhMVa_recentTile{box-sizing:border-box;background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-direction:column;justify-content:space-between;gap:4px;height:80px;padding:8px 12px;transition:background-image .16s cubic-bezier(.16,1,.3,1);display:flex;overflow:hidden}.nUhMVa_recentTile .nUhMVa_installBtn.nUhMVa_installBtn{height:24px;min-height:24px;padding:0 8px}.nUhMVa_recentAv.nUhMVa_recentAv{flex-shrink:0;width:24px;height:24px;font-size:11px}.nUhMVa_recentTitle{align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_recentTitle>:last-child{flex-shrink:0}.nUhMVa_recentName{flex:1;min-width:0}.nUhMVa_recentTitle .nUhMVa_nm{font-size:14px;line-height:20px}.nUhMVa_recentBottom{align-items:flex-end;gap:8px;min-width:0;display:flex}.nUhMVa_recentBottom>:last-child{flex-shrink:0;margin-left:auto}.nUhMVa_recentBottom>:not(:last-child){flex:1;min-width:0}.nUhMVa_recentDesc{color:var(--dsw-alias-label-tertiary,#8b93a1);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:16px;display:-webkit-box;overflow:hidden}.nUhMVa_recentBottom .nUhMVa_cardMore{padding:0}.nUhMVa_recentHead{justify-content:space-between;align-items:center;gap:8px;margin:10px 0 8px;padding:0 4px;display:flex}.nUhMVa_recentHead .nUhMVa_favoritesSectionHead{margin:0;padding:0;font-weight:600}.nUhMVa_recentToggle{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin:0;padding:0;display:inline-flex}.nUhMVa_recentToggle:hover{color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_recentHide.nUhMVa_recentHide{height:26px;min-height:26px;color:var(--dsw-alias-label-secondary,#6b7280);padding:0 6px}.nUhMVa_recentShow{font:inherit;color:var(--dsw-alias-label-secondary,#8b93a1);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin:0 0 8px;padding:0 4px;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_recentShow:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_masonry{align-items:flex-start;gap:10px;display:flex}.nUhMVa_masonryCol{flex-direction:column;flex:1;gap:10px;min-width:0;display:flex}.nUhMVa_masonry>.nUhMVa_masonryCol>*{align-self:stretch;min-width:0}@media (max-width:680px){.nUhMVa_masonry{flex-direction:column}.nUhMVa_masonryCol{width:100%}.nUhMVa_grid{grid-template-columns:minmax(0,1fr)}}.nUhMVa_swatches{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;gap:0;height:34px;display:flex;overflow:hidden}.nUhMVa_themesGrid{margin-bottom:12px}.nUhMVa_swatches i{flex:1}.nUhMVa_themeToolbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 4px 12px;display:grid}.nUhMVa_themeSearch{box-sizing:border-box;width:100%;min-width:0}.nUhMVa_themeToolbarActions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.nUhMVa_themeFullscreenBtn.nUhMVa_themeFullscreenBtn{width:28px;min-width:28px;padding:0}.nUhMVa_themeResultBar{min-height:24px;color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:center;padding:0 4px 8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_favoritesSectionHead{color:var(--dsw-alias-label-primary,#1f2328);margin:16px 0 8px;padding:0 4px;font-size:14px;font-weight:500;line-height:22px}.nUhMVa_favoritesSectionHead:first-of-type{margin-top:0}.nUhMVa_brokenPluginNotice{flex-direction:column;gap:8px;margin:0 0 8px;display:flex}.nUhMVa_brokenPluginItem{border:1px solid var(--dsw-alias-state-warn-tertiary,#b4530933);background:var(--dsw-alias-state-warn-tertiary,#b453090f);color:var(--dsw-alias-state-warn-primary,#b45309);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_brokenPluginText{flex-direction:column;gap:2px;min-width:0;display:flex}.nUhMVa_favoritesStaleBar{border:1px solid var(--dsw-alias-state-warn-tertiary,#b4530933);background:var(--dsw-alias-state-warn-tertiary,#b453090f);color:var(--dsw-alias-state-warn-primary,#b45309);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_favoritesStaleOnly{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.nUhMVa_themeGallery{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px;display:grid}.nUhMVa_themeCard{border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);background:var(--dsw-alias-bg-layer-1,#fff);flex-direction:column;min-width:0;transition:border-color .16s cubic-bezier(.16,1,.3,1),box-shadow .16s cubic-bezier(.16,1,.3,1),transform .16s cubic-bezier(.16,1,.3,1);display:flex;overflow:hidden}.nUhMVa_themeCard:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4);box-shadow:var(--dsw-shadow-lv1,0 4px 12px #1f232814);transform:translateY(-1px)}.nUhMVa_themeCover{aspect-ratio:16/10;border:0;border-bottom:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);width:100%;color:var(--dsw-alias-label-secondary,#6b7280);cursor:zoom-in;border-radius:0;padding:0;display:block;position:relative;overflow:hidden}.nUhMVa_themeCover img{object-fit:contain;background:var(--dsw-alias-bg-layer-2,#f3f4f6);width:100%;height:100%;transition:transform .18s cubic-bezier(.16,1,.3,1);display:block}.nUhMVa_themeCover:hover img{transform:scale(1.012)}.nUhMVa_themeCover:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4f6ef7);outline-offset:-3px}.nUhMVa_themeCoverEmpty{cursor:default;color:var(--dsw-alias-label-tertiary,#8b93a1);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border-radius:var(--dsw-radius-lg,16px) 0 0 0;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_themePreviewAction,.nUhMVa_themePreviewCount{color:#fff;background:#14181fc7;border:1px solid #ffffff57;border-radius:4px;align-items:center;height:24px;padding:0 8px;font-size:11px;line-height:16px;display:inline-flex;position:absolute;bottom:8px}.nUhMVa_themePreviewAction{gap:4px;right:8px}.nUhMVa_themePreviewCount{left:8px}.nUhMVa_themeCardBody{flex-direction:column;flex:1;gap:8px;padding:14px;display:flex}.nUhMVa_themeCardHead{align-items:flex-start;gap:8px;min-width:0;display:flex}.nUhMVa_themeIdentity{flex:1;min-width:0}.nUhMVa_themeStatus,.nUhMVa_themeStatusMuted{white-space:nowrap;border-radius:4px;flex:none;align-items:center;min-height:22px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_themeStatus{background:var(--dsw-alias-state-success-tertiary,#16a34a1a);color:var(--dsw-alias-state-success-primary,#15803d)}.nUhMVa_themeStatusMuted{background:var(--dsw-alias-bg-layer-2,#f3f4f6);color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_themeDescription{min-height:36px;color:var(--dsw-alias-label-tertiary,#8b93a1);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.nUhMVa_themeCardFooter{justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:4px;display:flex}.nUhMVa_themeLifecycle{min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:18px;overflow:hidden}.nUhMVa_themeActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto;display:flex}@container (width<=900px){.nUhMVa_themeGallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width<=680px){.nUhMVa_themeGallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width<=460px){.nUhMVa_themeGallery{grid-template-columns:minmax(0,1fr)}}.nUhMVa_exportLogBtn{white-space:nowrap;flex-shrink:0}@container (width<=560px){.nUhMVa_headTop{flex-direction:column;align-items:stretch}.nUhMVa_headTop>.nUhMVa_titleRow{margin-left:0}}@container (width<=420px){.nUhMVa_exportLogBtn{align-self:center}.nUhMVa_themeToolbar{grid-template-columns:minmax(0,1fr)}.nUhMVa_themeCardHead{flex-wrap:wrap}.nUhMVa_themeStatus,.nUhMVa_themeStatusMuted{order:3}}@container (width<=280px){.nUhMVa_themeCardFooter{flex-direction:column;align-items:flex-start}.nUhMVa_themeActions{justify-content:flex-start;width:100%;margin-left:0}}@media (max-width:560px){[role=dialog]:has([data-dsh-crate-root])>nav{display:none}[role=dialog]:has([data-dsh-crate-root])>div{flex:100%;width:100%;min-width:0}}.nUhMVa_panelHost{box-sizing:border-box;height:100%;min-height:0;padding:calc(28px + var(--dsh-frame-top-clearance,0px)) 0 0;flex-direction:column;display:flex}.nUhMVa_panelHost>.nUhMVa_root{flex:1;width:100%;min-width:0;min-height:0;container-type:normal}.nUhMVa_panelHost .nUhMVa_head,.nUhMVa_panelHost .nUhMVa_body{padding-left:max(max(16px,min(4vw,48px)),50% - 480px);padding-right:max(max(16px,min(4vw,48px)),50% - 480px);container-type:inline-size}[data-dsh-crate-plugins-tab=true]{--dshm-host-sticky-top:0px;--dshm-plugins-head-height:0px}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]){--dshm-empty-view-height:100vh;height:auto}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body{min-height:calc(100vh - var(--dshm-host-sticky-top,0px) - var(--dshm-plugins-head-height,0px));flex-direction:column;flex:none;display:flex;overflow:visible}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body>.nUhMVa_empty{box-sizing:border-box;width:100%;max-width:none;max-height:var(--dshm-empty-view-height,100vh);flex-direction:column;flex:auto;justify-content:center;align-items:center;margin:0;padding:32px;display:flex}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_top{position:fixed}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_stickyHead{display:contents}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_head{z-index:6;top:var(--dshm-host-sticky-top,0px);background:var(--dsw-alias-bg-base,#fff);margin:0 -4px;padding:4px 4px 6px;position:sticky}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_cats{z-index:5;top:calc(var(--dshm-host-sticky-top,0px) + var(--dshm-plugins-head-height,0px));background:var(--dsw-alias-bg-base,#fff);position:sticky}[role=dialog]:has([data-dsh-crate-fullscreen=true]){border-radius:0;width:100vw;max-width:none;height:100vh;max-height:none;position:fixed;top:0;bottom:0;left:0;right:0}[data-dsh-crate-plugins-tab=true][data-dsh-crate-fullscreen=true]{z-index:60;background:var(--dsw-alias-bg-layer-1,#fff);position:fixed;top:0;bottom:0;left:0;right:0;height:100vh!important}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]){--dshm-head-h:0px;height:auto}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body{flex:none;overflow:visible}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_head{z-index:6;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-base,#fff));position:sticky;top:0}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_stickyHead{top:calc(var(--dshm-head-h,0px) + 8px);background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-base,#fff))}@media (prefers-reduced-motion:reduce){.nUhMVa_themeCard,.nUhMVa_themeCover img{transition:none}.nUhMVa_themeCard:hover{transform:none}}.nUhMVa_card{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;align-self:start;gap:10px;min-width:0;padding:12px 14px;transition:background-image .16s cubic-bezier(.16,1,.3,1);display:flex}@media (hover:hover){.nUhMVa_card:hover,.nUhMVa_recentTile:hover{background-image:linear-gradient(var(--dsw-alias-interactive-bg-hover,#2631480f),var(--dsw-alias-interactive-bg-hover,#2631480f))}.nUhMVa_installBtn:hover:not(:disabled){background:var(--dsw-alias-button-primary-fill,#0f1115);color:var(--dsw-alias-label-primary-foreground,#fff);border-color:#0000}}.nUhMVa_row1{align-items:flex-start;gap:10px;min-width:0;display:flex}.nUhMVa_cardAction{flex-shrink:0;align-items:center;display:inline-flex}.nUhMVa_installBtn.nUhMVa_installBtn{min-width:64px}.nUhMVa_av{width:16px;height:16px;color:var(--dsw-alias-label-primary,#1f2328);object-fit:cover;background:var(--dsw-alias-bg-layer-2,#f3f4f6);border-radius:50%;flex-shrink:0;place-items:center;font-size:9px;font-weight:700;display:grid}.nUhMVa_nm{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:20px;overflow:hidden}.nUhMVa_nmLink{color:inherit;text-decoration:none;display:block}.nUhMVa_nmLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_repoMark{color:var(--dsw-alias-label-secondary,#6b7280);vertical-align:-1px;flex-shrink:0;margin-left:5px;display:inline-block}.nUhMVa_nmLink:hover .nUhMVa_repoMark{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_byline{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-top:2px;display:flex}.nUhMVa_meta{color:var(--dsw-alias-label-secondary,#9ca3af);margin-top:2px;font-size:11px}.nUhMVa_metaInline{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px}.nUhMVa_owner{color:var(--dsw-alias-label-secondary,#5c6570);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:44px;font-size:11px;line-height:18px;overflow:hidden}.nUhMVa_desc{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:0;font-size:12px;line-height:18px}.nUhMVa_descClamp{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.nUhMVa_descClamp3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.nUhMVa_descToggle{width:20px;height:16px;color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;margin-top:2px;padding:0;display:flex}.nUhMVa_descToggle:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_foot{flex-wrap:nowrap;align-items:flex-end;gap:8px;display:flex}.nUhMVa_foot .nUhMVa_metaInline,.nUhMVa_foot .nUhMVa_src{white-space:nowrap}.nUhMVa_footTags{flex-wrap:wrap;flex:1 1 0;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_grow{flex:1}.nUhMVa_titleRow{flex-wrap:wrap;align-items:center;gap:8px 10px;display:flex}.nUhMVa_titleActions{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;align-items:center;gap:4px 10px;min-width:0;margin-left:auto;display:flex}.nUhMVa_titleActions:empty{display:none}.nUhMVa_titleActions>*{white-space:nowrap;flex-shrink:0}.nUhMVa_version{color:var(--dsw-alias-label-tertiary,#8b93a1);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px;line-height:20px}.nUhMVa_repoLink{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;font-size:12px;line-height:20px;text-decoration:none}.nUhMVa_repoLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_noteRow{flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex}.nUhMVa_desc.nUhMVa_noteRow,.nUhMVa_desc.nUhMVa_noteRow+.nUhMVa_noteRow,.nUhMVa_noteEdit+.nUhMVa_noteRow{margin-top:6px}.nUhMVa_noteMine{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_noteToggle{font:inherit;color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:pointer;white-space:nowrap;background:0 0;border:none;flex-shrink:0;padding:0;font-size:11px;line-height:16px}.nUhMVa_noteToggle:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_noteEdit{flex-direction:column;gap:6px;min-width:0;margin-top:6px;display:flex}.nUhMVa_noteInput{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:flex}.nUhMVa_noteInput input{box-sizing:border-box;flex:auto;width:100%;min-width:0}.nUhMVa_noteEditBar{justify-content:flex-end;align-items:center;gap:6px;display:flex}.nUhMVa_noteCount{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-tertiary,#8b93a1);margin-right:auto;font-size:11px;line-height:16px}.nUhMVa_descTight{min-height:0}.nUhMVa_src{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px;text-decoration:none}.nUhMVa_src:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_dot{vertical-align:2px;margin-left:5px}.nUhMVa_act{flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:11px;display:flex}.nUhMVa_actLive{color:var(--dsw-alias-state-success-primary,#16a34a);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actWarn{color:var(--dsw-alias-state-warn-primary,#b45309);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actBroken{color:var(--dsw-alias-state-error-primary,#dc2626);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actWhy{color:var(--dsw-alias-label-secondary,#6b7280);margin-top:2px}.nUhMVa_loading{color:var(--dsw-alias-label-secondary,#9ca3af);flex-direction:column;align-items:center;gap:12px;padding:48px;font-size:13px;display:flex}.nUhMVa_spin{color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;animation:.8s linear infinite nUhMVa_sp;display:inline-flex}.nUhMVa_logoMark{color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;display:inline-flex}.nUhMVa_logoSweep{animation:3s linear infinite nUhMVa_dshmCrateSweep}@keyframes nUhMVa_dshmCrateSweep{0%{transform:translate(-13px)}30%,to{transform:translate(18px)}}@media (prefers-reduced-motion:reduce){.nUhMVa_logoSweep{display:none}.nUhMVa_spin{animation:1.5s ease-in-out infinite nUhMVa_dshmPlugFade}}@keyframes nUhMVa_dshmPlugFade{0%,to{opacity:1}50%{opacity:.35}}@keyframes nUhMVa_sp{to{transform:rotate(360deg)}}.nUhMVa_progress{background:var(--dsw-alias-bg-layer-2,#f3f4f6);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:8px;flex-wrap:wrap;align-items:center;gap:9px;margin:0;padding:8px 12px;font-size:12px;display:flex}.nUhMVa_bar{background:var(--dsw-alias-border-l1,#e5e7eb);border-radius:99px;width:100%;height:4px;overflow:hidden}.nUhMVa_barFill{background:var(--dsw-alias-brand-primary,#4f6ef7);border-radius:99px;height:100%;transition:width .6s}.nUhMVa_barWave{width:30%;animation:1.2s ease-in-out infinite nUhMVa_dshmSlide}@keyframes nUhMVa_dshmSlide{0%{margin-left:-30%}to{margin-left:100%}}.nUhMVa_irow .nUhMVa_progress{margin-top:8px}.nUhMVa_progress code{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.nUhMVa_empty{color:var(--dsw-alias-label-secondary,#5c6570);text-align:center;max-width:520px;margin:0 auto;padding:56px 32px 40px;font-size:13px;line-height:20px}.nUhMVa_err{color:var(--dsw-alias-state-error-primary,#dc2626);white-space:pre-wrap;word-break:break-all;margin:8px 0;font-size:12px}.nUhMVa_cardBlocked{border-color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_conflictHead{align-items:flex-start;gap:8px;display:flex}.nUhMVa_conflictIcon{color:var(--dsw-alias-state-error-primary,#dc2626);flex-shrink:0;margin-top:1px}.nUhMVa_conflictTitle{color:var(--dsw-alias-state-error-primary,#dc2626);font-size:13px;font-weight:600;line-height:18px}.nUhMVa_conflictBody{margin:0;font-size:12px;line-height:19px}.nUhMVa_roster{background:var(--dsw-alias-border-l2,#e5e7eb);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;gap:1px;display:flex;overflow:hidden}.nUhMVa_rosterRow{background:var(--dsw-alias-bg-layer-1,#fff);align-items:center;gap:8px;padding:7px 10px;display:flex}.nUhMVa_rosterMain{flex-direction:column;min-width:0;display:flex}.nUhMVa_rosterName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;font-weight:600;overflow:hidden}.nUhMVa_rosterAuthor{color:var(--dsw-alias-label-secondary,#9ca3af);text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;overflow:hidden}.nUhMVa_rosterTag{border-radius:4px;flex-shrink:0;margin-left:auto;padding:1px 6px;font-size:10.5px;font-weight:600}.nUhMVa_rosterTagKeep{color:var(--dsw-alias-state-success-primary,#16a34a);background:#16a34a1f}.nUhMVa_rosterTagDrop{color:var(--dsw-alias-state-error-primary,#dc2626);background:#dc26261f}.nUhMVa_rosterRowOut .nUhMVa_rosterName{text-decoration:line-through}.nUhMVa_rosterRowOut{opacity:.62}.nUhMVa_rosterSplit{background:var(--dsw-alias-border-l2,#e5e7eb);height:1px}.nUhMVa_reassure{color:var(--dsw-alias-label-secondary,#6b7280);align-items:center;gap:5px;margin:0;font-size:11.5px;line-height:17px;display:flex}.nUhMVa_reassureOk{color:var(--dsw-alias-state-success-primary,#16a34a);flex-shrink:0}.nUhMVa_conflictWhy{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:17px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;margin-top:2px}.nUhMVa_conflictWhyText{margin-top:5px;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif}.nUhMVa_choices{flex-direction:column;gap:7px;display:flex}.nUhMVa_choice{text-align:left;font:inherit;cursor:pointer;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:9px;align-items:flex-start;gap:9px;padding:9px 11px;display:flex}.nUhMVa_choice:has(input:disabled){cursor:default;opacity:.6}.nUhMVa_choiceOn{border-color:var(--dsw-alias-brand-primary,#4f6ef7);background:var(--dsw-alias-bg-layer-2,#f5f7ff)}.nUhMVa_choiceRadio{width:13px;height:13px;accent-color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;margin:2px 0 0}.nUhMVa_choiceMain{flex-direction:column;gap:3px;min-width:0;display:flex}.nUhMVa_choiceTitle{font-size:12px;font-weight:600;line-height:17px}.nUhMVa_choiceNote{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:16px}.nUhMVa_choiceSafe{color:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_stateTag{white-space:nowrap;background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-height:20px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:5px;flex-shrink:0;align-items:center;gap:5px;padding:1px 7px;font-size:11px;line-height:16px;display:inline-flex}.nUhMVa_stateTag[data-on=true]{color:var(--dsw-alias-state-success-primary,#16a34a);background:color-mix(in srgb, var(--dsw-alias-state-success-primary,#16a34a) 10%, transparent)}.nUhMVa_stateDot{background:var(--dsw-alias-label-tertiary,#8b93a1);border-radius:999px;flex:none;width:6px;height:6px}.nUhMVa_stateDot[data-on=true]{background:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_metaTag{text-overflow:ellipsis;white-space:nowrap;background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-width:0;max-width:100%;min-height:20px;color:var(--dsw-alias-label-tertiary,#8b93a1);border-radius:5px;flex-shrink:1;padding:1px 7px;font-size:11px;line-height:18px;display:inline-block;overflow:hidden}.nUhMVa_metaTagOk{color:var(--dsw-alias-state-success-primary,#16a34a);background:color-mix(in srgb, var(--dsw-alias-state-success-primary,#16a34a) 10%, transparent)}.nUhMVa_irow{transition:background-image .16s cubic-bezier(.16,1,.3,1)}.nUhMVa_irow:hover{background-image:linear-gradient(var(--dsw-alias-interactive-bg-hover,#2631480f),var(--dsw-alias-interactive-bg-hover,#2631480f))}.nUhMVa_irowHead{align-items:flex-start;gap:8px;min-width:0;display:flex}.nUhMVa_irowHead .nUhMVa_irowName{flex:1 1 0;min-width:0}.nUhMVa_irowMenu{flex-shrink:0;margin-top:-4px;margin-left:auto;margin-right:-6px}.nUhMVa_irowMeta{color:var(--dsw-alias-label-secondary,#6b7280);margin-top:2px;font-size:12px;line-height:18px}.nUhMVa_irowPath{align-items:center;gap:6px;min-width:0;margin-top:6px;display:flex}.nUhMVa_irowPath .nUhMVa_spec{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nUhMVa_irowPathIcon,.nUhMVa_irowStatusIcon{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;display:inline-flex}.nUhMVa_irowPathCopy{flex-shrink:0;align-items:center;gap:4px;margin-left:auto;display:inline-flex}.nUhMVa_irowPath .nUhMVa_confirmCopy{width:20px;height:20px;color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_irowPath .nUhMVa_confirmCopy:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_irowPath .nUhMVa_confirmCopied{color:var(--dsw-alias-label-secondary,#6b7280);order:1;font-size:11px}.nUhMVa_irowDesc{flex:100%;min-width:0}.nUhMVa_irowStatus{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-top:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_irowStatus+.nUhMVa_irowStatus{margin-top:4px}.nUhMVa_irowStatusPart{align-items:baseline;gap:6px;display:inline-flex}.nUhMVa_irowStatus .nUhMVa_notesLink{margin:0;display:inline}.nUhMVa_irowStatus .nUhMVa_metaInline{font-size:12px}.nUhMVa_irowStatusAction{margin-left:auto;display:inline-flex}.nUhMVa_irowStatusAction .nUhMVa_noteToggle{color:var(--dsw-alias-label-secondary,#6b7280);font-size:12px;line-height:18px}.nUhMVa_irowStatusAction .nUhMVa_noteToggle:hover{color:var(--dsw-alias-label-primary,#1f2328);text-decoration:none}.nUhMVa_descMore{cursor:pointer;font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);background:0 0;border:none;align-items:center;gap:2px;margin-top:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_descMore:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_noteAdd{cursor:pointer;font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;background:0 0;border:none;align-items:center;gap:6px;margin-top:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_noteAdd:hover,.nUhMVa_irowStatusFact{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_irowStatusSep{color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_nameLink{color:inherit;text-decoration:none}.nUhMVa_irowName{text-overflow:clip;flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex;overflow:visible}.nUhMVa_irowNameText{overflow-wrap:anywhere;white-space:normal;min-width:0}.nUhMVa_irowName>.nUhMVa_owner{flex:none}.nUhMVa_nameLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_opWrap{flex-shrink:0;margin-bottom:6px;display:inline-flex}.nUhMVa_opEntry{font:inherit;cursor:pointer;white-space:nowrap;height:28px;color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-1,#fff);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:8px;align-items:center;gap:5px;padding:0 7px 0 10px;font-size:12px;transition:background-color .12s,color .12s,border-color .12s;display:inline-flex;position:relative}.nUhMVa_opEntryQuiet{background:var(--dsw-alias-bg-module-platform,#f4f5f7);color:var(--dsw-alias-label-secondary,#5c6570)}.nUhMVa_opEntry:hover{color:var(--dsw-alias-label-primary,#1f2328);border-color:var(--dsw-alias-border-l2,#e5e7eb);background:var(--dsw-alias-bg-module-platform,#f4f5f7)}.nUhMVa_opChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;transition:transform .14s cubic-bezier(.16,1,.3,1);display:inline-flex}.nUhMVa_opChevronOpen{transform:rotate(180deg)}.nUhMVa_opEntryAlert{border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_opDot{background:var(--dsw-alias-state-error-primary,#dc2626);border-radius:99px;width:8px;height:8px;position:absolute;top:-3px;right:-3px}.nUhMVa_opPanel{z-index:40;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:12px;width:460px;max-width:100%;max-height:70vh;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto;box-shadow:0 20px 52px #00000047}.nUhMVa_opHead{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:center;gap:8px;padding:9px 14px;display:flex}.nUhMVa_opPanelTitle{font-size:12.5px;font-weight:600}.nUhMVa_opCloseBtn.nUhMVa_opCloseBtn{min-width:0;color:var(--dsw-alias-label-secondary,#6b7280);padding:0 6px}.nUhMVa_opAggregate{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);background:var(--dsw-alias-bg-layer-2,#f7f8fa);padding:9px 14px}.nUhMVa_opAggregateTop{font-variant-numeric:tabular-nums;font-size:12px;font-weight:600}.nUhMVa_opAggregateHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:4px;font-size:10.5px}.nUhMVa_opRow{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:flex-start;gap:9px;padding:9px 14px;display:flex}.nUhMVa_opRow:last-child{border-bottom:none}.nUhMVa_opRowAlert{background:#dc26260f}.nUhMVa_opIcon{flex-shrink:0;place-items:center;width:14px;margin-top:1px;display:grid}.nUhMVa_opQueuedIcon{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:12px}.nUhMVa_opMain{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.nUhMVa_opTop{align-items:baseline;gap:6px;min-width:0;display:flex}.nUhMVa_opVerb{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;font-size:12px}.nUhMVa_opName{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;overflow:hidden}.nUhMVa_opStatus{color:var(--dsw-alias-label-tertiary,#8b93a1);overflow-wrap:anywhere;font-size:10.5px;line-height:16px}.nUhMVa_opStatusBad{color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_opAgents{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:2px 0 0;font-size:10.5px;line-height:16px}.nUhMVa_opAgentsSummary{cursor:pointer;color:var(--dsw-alias-label-secondary,#5c6570);font-size:10.5px;line-height:16px;list-style:none}.nUhMVa_opAgentsSummary::-webkit-details-marker{display:none}.nUhMVa_opAgentsSummary:before{content:\"▸\";width:10px;transition:transform .12s cubic-bezier(.16,1,.3,1);display:inline-block}.nUhMVa_opAgents[open]>.nUhMVa_opAgentsSummary:before{transform:rotate(90deg)}.nUhMVa_opAgentsList{flex-direction:column;gap:1px;margin:2px 0 0;padding:0 0 0 12px;list-style:none;display:flex}.nUhMVa_opAgentsId{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;line-height:15px;overflow:hidden}.nUhMVa_opActions{flex-shrink:0;align-items:center;gap:6px;margin-top:1px;display:flex}.nUhMVa_opDecision{border-top:1px dashed var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;margin-top:8px;padding-top:8px;display:flex}.nUhMVa_opDecisionFoot{align-items:center;gap:8px;display:flex}.nUhMVa_conflictDetailsToggle{font:inherit;cursor:pointer;color:var(--dsw-alias-label-tertiary,#8b93a1);background:0 0;border:none;align-items:center;gap:4px;padding:2px 0;font-size:11px;display:inline-flex}.nUhMVa_conflictDetailsToggle:hover{color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_opEmpty{text-align:center;color:var(--dsw-alias-label-secondary,#6b7280);padding:30px 14px;font-size:12px}.nUhMVa_opEmptyHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:4px;font-size:11px}.nUhMVa_cardBlockedMark{font:inherit;cursor:pointer;color:var(--dsw-alias-state-error-primary,#dc2626);border:1px solid var(--dsw-alias-state-error-primary,#dc2626);background:#dc262614;border-radius:7px;align-items:center;gap:5px;padding:4px 9px;font-size:11px;display:inline-flex}.nUhMVa_dangerBtn.nUhMVa_dangerBtn{color:var(--dsw-alias-state-error-primary,#dc2626);border-color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_dangerBtn.nUhMVa_dangerBtn:hover:not(:disabled){background:var(--dsw-alias-state-error-primary,#dc2626);color:#fff}.nUhMVa_dangerArmed.nUhMVa_dangerArmed{background:var(--dsw-alias-state-error-primary,#dc2626);border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-label-primary-foreground,#fff)}.nUhMVa_retryBtn{margin-top:4px}.nUhMVa_irow{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;gap:10px;min-width:0;padding:12px 14px;display:flex}.nUhMVa_irowActions{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_irowTrailing{flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:8px;min-width:0;display:inline-flex}.nUhMVa_irowTrailing .nUhMVa_metaTag{flex-shrink:1;min-width:0}.nUhMVa_irowMissing{filter:grayscale();opacity:.5}.nUhMVa_irow>.nUhMVa_src,.nUhMVa_irow>.nUhMVa_owner,.nUhMVa_irow button{white-space:nowrap;flex-shrink:0}.nUhMVa_tabSearchRow{align-items:center;gap:8px;padding:0 4px 10px;display:flex}.nUhMVa_tabSearch{flex:1;min-width:0}.nUhMVa_groupBulkActions{flex-wrap:wrap;align-items:center;gap:8px;padding:0 4px 10px;display:flex}.nUhMVa_caps{flex-wrap:wrap;align-items:center;gap:4px;min-width:0;padding:0 2px 6px;font-size:11px;line-height:1.5;display:flex}.nUhMVa_capsTitle{color:var(--dsw-alias-label-secondary,#8b949e);cursor:help}.nUhMVa_capChip{border:1px solid var(--dsw-alias-border-l2,#30363d);color:var(--dsw-alias-label-primary,#c9d1d9);white-space:nowrap;border-radius:999px;padding:0 6px}.nUhMVa_capMuted{border:1px dashed var(--dsw-alias-border-l2,#30363d);color:var(--dsw-alias-label-secondary,#8b949e);white-space:nowrap;border-radius:999px;padding:0 6px}.nUhMVa_capCaveat{color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:baseline;gap:12px;margin:6px 0 0;font-size:11px;line-height:16px;display:flex}.nUhMVa_capCaveatNote{min-width:0}.nUhMVa_capCaveatAt{white-space:nowrap;flex:none;margin-left:auto}.nUhMVa_searchField{box-sizing:border-box;min-width:0;position:relative}.nUhMVa_searchInput.nUhMVa_searchInput{box-sizing:border-box;width:100%;min-width:0;padding-right:34px}.nUhMVa_searchClear{width:24px;height:24px;color:var(--dsw-alias-label-secondary,#59636e);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;padding:0;font-size:20px;line-height:1;display:flex;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.nUhMVa_searchClear:hover{background:var(--dsw-alias-bg-layer-2,#f3f4f6);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_searchClear:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4f6ef7);outline-offset:1px}.nUhMVa_spec{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;min-width:0}.nUhMVa_specTag{white-space:nowrap;border-radius:4px;flex-shrink:0;align-items:center;height:16px;padding:0 5px;font-size:10px;font-weight:600;display:inline-flex}.nUhMVa_specTagGit{color:var(--dsw-alias-state-business-primary,#0b7285);background:#12a3c41f}.nUhMVa_specTagFile{color:var(--dsw-alias-state-warn-primary,#b07d1b);background:#f0b42924}.nUhMVa_backupCheckList .nUhMVa_grow{white-space:nowrap;text-overflow:ellipsis;flex:70%;min-width:0;overflow:hidden}.nUhMVa_backupCheckList .nUhMVa_spec{text-align:right;white-space:nowrap;text-overflow:ellipsis;flex:0 30%;max-width:30%;overflow:hidden}.nUhMVa_staleAction{word-break:normal;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.nUhMVa_pct{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;font-size:11px;font-weight:600}.nUhMVa_pager{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;margin:16px 0 4px;display:flex}.nUhMVa_loadMore{justify-content:center;margin:16px 0 4px;display:flex}.nUhMVa_pagerPages{flex-wrap:nowrap;flex:1;justify-content:center;align-items:center;gap:4px;min-width:0;display:flex}.nUhMVa_pagerMeta{flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:6px;display:flex}.nUhMVa_pagerPages button,.nUhMVa_pagerMeta button{min-width:0;padding:0 8px}.nUhMVa_pageEllipsis{color:var(--dsw-alias-label-secondary,#9ca3af);padding:0 1px;font-size:12px}.nUhMVa_pageInfo{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;font-size:12px}@container (width<=544px){.nUhMVa_pager{flex-wrap:wrap;justify-content:center;gap:8px}.nUhMVa_pagerPages{flex-basis:100%}}.nUhMVa_depBadge{border:1px solid var(--dsw-alias-state-warn-primary,#b45309);color:var(--dsw-alias-state-warn-primary,#b45309);white-space:nowrap;border-radius:4px;flex-shrink:0;margin-left:6px;padding:1px 6px;font-size:11px;font-weight:600;line-height:16px}.nUhMVa_deprecate{color:var(--dsw-alias-state-warn-primary,#b45309);background:var(--dsw-alias-bg-layer-2,#fdf3e3);border:1px solid var(--dsw-alias-border-l2,#f3e3c3);border-radius:8px;margin:0;padding:8px 10px;font-size:12px;line-height:18px}.nUhMVa_deprecate a{color:var(--dsw-alias-state-warn-primary,#b45309);text-decoration:underline}.nUhMVa_deprecate .nUhMVa_src{margin-left:8px}.nUhMVa_depLine{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nUhMVa_switch{border:1px solid var(--dsw-alias-border-l2,#d9dde3);background:var(--dsw-alias-bg-layer-2,#e5e7eb);cursor:pointer;border-radius:99px;flex-shrink:0;width:38px;height:22px;padding:0;transition:background .15s,border-color .15s;position:relative}.nUhMVa_switchOn{background:var(--dsw-alias-state-success-primary,#16a34a);border-color:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_switchMixed{background:var(--dsw-alias-state-warn-primary,#b45309);border-color:var(--dsw-alias-state-warn-primary,#b45309)}.nUhMVa_switchKnob{background:#fff;border-radius:99px;width:16px;height:16px;transition:left .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.nUhMVa_switchOn .nUhMVa_switchKnob,.nUhMVa_switchMixed .nUhMVa_switchKnob{left:18px}.nUhMVa_switch:disabled{opacity:.5;cursor:default}.nUhMVa_viewBar{border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border:none;align-items:center;gap:2px;width:fit-content;margin-bottom:12px;padding:3px;display:flex}.nUhMVa_viewBtn{font:inherit;color:var(--dsw-alias-label-secondary,#5c6570);border-radius:var(--dsw-radius-sm,8px);cursor:pointer;white-space:nowrap;background:0 0;border:none;height:26px;padding:0 10px;font-size:12px;line-height:18px;transition:background-color .12s,color .12s}.nUhMVa_viewBtn:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_viewOn{background:var(--dsw-alias-bg-layer-3,#fff);color:var(--dsw-alias-label-primary,#1f2328);box-shadow:0 0 0 .5px var(--dsw-alias-border-l3,#0000001f);font-weight:600}.nUhMVa_groupRow{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);margin-bottom:10px;padding:12px 14px}.nUhMVa_groupHead{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.nUhMVa_groupCollapse{width:22px;height:22px;color:var(--dsw-alias-label-secondary,#6b7280);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.nUhMVa_groupCollapse:hover{background:var(--dsw-alias-bg-layer-2,#eef0f4);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_groupTitle{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.nUhMVa_groupTitle .nUhMVa_groupHint{margin-top:0}.nUhMVa_groupName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:20px;overflow:hidden}.nUhMVa_groupMeta{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:16px}.nUhMVa_groupActions{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:6px;margin-left:auto;display:flex}.nUhMVa_groupMembers{flex-direction:column;gap:6px;margin-top:10px;display:flex}.nUhMVa_groupMember{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;align-items:center;gap:8px;min-width:0;padding:6px 8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_groupMember .nUhMVa_nm{flex:1;min-width:0;font-size:12px}.nUhMVa_memberName{flex:auto;align-items:center;gap:6px;min-width:0;display:flex}.nUhMVa_memberName .nUhMVa_nm{flex:0 auto;min-width:0}.nUhMVa_memberNameWithDesc{flex:0 auto;max-width:42%}.nUhMVa_memberKind{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;flex:none;font-size:11px;line-height:16px}.nUhMVa_themeSlot{box-shadow:inset 0 -1px 0 var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px 8px 0 0;margin-bottom:4px}.nUhMVa_groupMember>.nUhMVa_switch,.nUhMVa_groupMember>button{flex-shrink:0}.nUhMVa_groupMemberAction{flex:none;margin-left:auto}.nUhMVa_groupMemberAction button{white-space:nowrap}.nUhMVa_groupAddPanel{border-top:1px dashed var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:6px;margin-top:10px;padding-top:10px;display:flex}.nUhMVa_groupAddModalBody{flex-direction:column;gap:10px;min-width:0;display:flex}.nUhMVa_groupAddFilters{flex-wrap:wrap;gap:6px;display:flex}.nUhMVa_groupAddModalList{flex-direction:column;gap:6px;max-height:min(50vh,360px);padding-right:2px;display:flex;overflow-y:auto}.nUhMVa_groupAddModalHint{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_groupAddPick{background:var(--dsw-alias-bg-layer-2,#f7f8fa);cursor:pointer;border-radius:8px;align-items:center;gap:8px;min-width:0;padding:8px 10px;display:flex}.nUhMVa_groupAddPick:hover{background:var(--dsw-alias-bg-layer-2,#eef0f4)}.nUhMVa_groupAddPick input{flex-shrink:0;margin:0}.nUhMVa_groupAddPick .nUhMVa_nm{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:12px;overflow:hidden}.nUhMVa_groupAddFooterMeta{color:var(--dsw-alias-label-secondary,#6b7280);align-self:center;margin-right:auto;font-size:12px;line-height:18px}.nUhMVa_groupOrgHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:4px 0 0;font-size:11px;line-height:16px}.nUhMVa_groupRenameField{flex-direction:column;gap:6px;min-width:min(100%,320px);display:flex}.nUhMVa_groupRenameField label{color:var(--dsw-alias-label-secondary,#6b7280);font-size:12px;line-height:18px}.nUhMVa_groupRenameField .nUhMVa_inlineInput{width:100%}.nUhMVa_groupCreate{align-items:center;gap:8px;margin-bottom:10px;display:flex}.nUhMVa_groupCreateInline{flex-shrink:0;align-items:center;gap:8px;display:flex}.nUhMVa_groupCreateInline .nUhMVa_inlineInput{flex:none;width:160px}.nUhMVa_inlineInput{flex:1;min-width:120px}.nUhMVa_ungroupedRow{flex-wrap:nowrap}.nUhMVa_ungroupedRow>.nUhMVa_nm{flex:0 auto;max-width:42%;font-size:12px;line-height:18px}.nUhMVa_ungroupedState{flex:0 auto;align-items:center;min-width:0;max-width:46%;margin:0;display:inline-flex}.nUhMVa_ungroupedState>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nUhMVa_ungroupedDesc{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);flex:1 1 0;font-size:12px;line-height:18px;overflow:hidden}.nUhMVa_ungroupedDesc.nUhMVa_noteMine{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_groupHint{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px}.nUhMVa_sect{color:var(--dsw-alias-label-secondary,#6b7280);margin:14px 2px 8px;font-size:12px;font-weight:600}.nUhMVa_sectAction{color:var(--dsw-alias-label-secondary,#6b7280);align-items:center;gap:8px;margin:14px 2px 8px;font-size:12px;font-weight:600;display:flex}.nUhMVa_backupGrid{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}.nUhMVa_backupCard{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;gap:10px;padding:16px;display:flex}.nUhMVa_backupCard h3{margin:0;font-size:14px}.nUhMVa_backupCard p{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_backupActions{flex-wrap:wrap;gap:8px;display:flex;position:relative}.nUhMVa_hiddenFile{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.nUhMVa_backupInput{box-sizing:border-box;width:100%}.nUhMVa_backupCheck{cursor:pointer;align-items:center;gap:6px;font-size:12px;display:flex}.nUhMVa_backupWarn{margin:0;font-size:12px;line-height:18px;color:var(--dsw-alias-state-warn-primary,#b45309)!important}.nUhMVa_backupMessage{color:var(--dsw-alias-label-secondary,#6b7280);grid-column:1/-1;font-size:12px}.nUhMVa_backupCheckList{flex-direction:column;gap:6px;max-height:260px;margin:10px 0 4px;padding-right:4px;display:flex;overflow-y:auto}.nUhMVa_backupCheckList .nUhMVa_backupCheck{justify-content:space-between;gap:8px}.nUhMVa_diagPage{flex-direction:column;gap:12px;height:100%;min-height:0;display:flex;overflow-y:auto}.nUhMVa_panelHost .nUhMVa_diagPage{height:auto;overflow:visible}.nUhMVa_diagSummary{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;font-size:12px;display:flex}.nUhMVa_diagSummaryItem{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.nUhMVa_diagSummaryMeta{color:var(--dsw-alias-label-tertiary,#9ca3af);font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);text-overflow:ellipsis;white-space:nowrap;max-width:320px;font-size:11px;overflow:hidden}.nUhMVa_diagSection{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.nUhMVa_diagSection h3{color:var(--dsw-alias-label-primary,#1f2328);margin:0;font-size:13px;font-weight:600}.nUhMVa_diagCount{color:var(--dsw-alias-label-tertiary,#9ca3af);font-size:11px;font-weight:400}.nUhMVa_diagEmpty{color:var(--dsw-alias-label-secondary,#9ca3af);padding:8px 0;font-size:12px}.nUhMVa_diagBundle{border-top:1px solid var(--dsw-alias-border-l2,#f0f1f3);flex-direction:column;gap:6px;padding-top:8px;display:flex}.nUhMVa_diagBundle:first-of-type{border-top:none;padding-top:0}.nUhMVa_diagRow{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;font-size:12px;line-height:18px;display:flex}.nUhMVa_diagMeta{align-items:baseline;gap:8px;min-width:0;font-size:12px;display:flex}.nUhMVa_diagKey{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;min-width:64px;font-size:11px}.nUhMVa_diagVal{color:var(--dsw-alias-label-primary,#1f2328);font-size:12px;font-weight:500;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;min-width:0}.nUhMVa_diagIndex{background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-width:18px;height:18px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagArrow{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;font-size:12px}.nUhMVa_diagBadgeOfficial{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4f6ef7));height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeCommunity{background:var(--dsw-alias-bg-layer-2,#f3f4f6);height:18px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;display:inline-flex}.nUhMVa_diagBadgeShadow{background:var(--dsw-alias-state-error-primary,#dc2626);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeWarn{background:var(--dsw-alias-state-warn-primary,#b45309);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeInfo{background:var(--dsw-alias-bg-layer-2,#f3f4f6);height:18px;color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;display:inline-flex}.nUhMVa_diagList{flex-direction:column;gap:6px;display:flex}.nUhMVa_sectionOverview{color:var(--dsw-alias-label-tertiary,#8b93a1);text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding:2px 0 6px;font-size:12px;line-height:18px;overflow:hidden}.nUhMVa_diagAlert{color:var(--dsw-alias-state-warn-primary,#b45309)}.nUhMVa_ovRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:6px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_ovArrow{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;font-size:12px}.nUhMVa_ovByTag{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4f6ef7));height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);text-overflow:ellipsis;white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;max-width:260px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex;overflow:hidden}.nUhMVa_ovFrom{color:var(--dsw-alias-label-secondary,#6b7280);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;overflow:hidden}.nUhMVa_orphRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:6px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_orphBadge{background:var(--dsw-alias-state-warn-primary,#b45309);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_dragHandle{width:20px;height:20px;color:var(--dsw-alias-label-tertiary,#9ca3af);cursor:grab;-webkit-user-select:none;user-select:none;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;line-height:20px;display:inline-flex}.nUhMVa_dragOver{outline:2px dashed var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px;background:var(--dsw-alias-bg-layer-2,#f0f2f8);border-radius:8px}.nUhMVa_dragging{opacity:.45;background:var(--dsw-alias-bg-layer-2,#f3f4f6)}.nUhMVa_collapseHead{font:inherit;color:var(--dsw-alias-label-primary,#1f2328);cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:8px;width:100%;padding:0;font-size:13px;font-weight:600;display:flex}.nUhMVa_collapseIcon{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;display:inline-flex}.nUhMVa_collapseTitle{flex:0 auto;min-width:0}.nUhMVa_collapseHead .nUhMVa_diagCount{flex-shrink:0}.nUhMVa_collapseBody{border-top:1px solid var(--dsw-alias-border-l2,#f0f1f3);overflow-wrap:anywhere;flex-direction:column;gap:10px;min-width:0;margin-top:8px;padding-top:10px;display:flex}.nUhMVa_orderPanel{flex-direction:column;gap:10px;min-width:0;display:flex}.nUhMVa_panelNote{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_panelActions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nUhMVa_presetList{flex-direction:column;gap:6px;min-width:0;display:flex}.nUhMVa_presetRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-direction:column;align-items:stretch;gap:6px;min-width:0;max-width:100%;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_presetName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.nUhMVa_snapList{flex-direction:column;gap:6px;min-width:0;display:flex}.nUhMVa_snapRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px;font-size:12px;line-height:18px;display:flex}.nUhMVa_snapMeta{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_snapConfirmText{color:var(--dsw-alias-state-warn-primary,#b45309);margin:0;font-size:12px;line-height:18px}.nUhMVa_confirmRow{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.nUhMVa_fixFallback{flex-direction:column;gap:6px;margin:8px 0;display:flex}.nUhMVa_fixFallbackText,.nUhMVa_envEditor{box-sizing:border-box;width:100%;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-2,#f3f4f6);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);resize:vertical;white-space:pre-wrap;word-break:break-all;border-radius:6px;padding:8px 10px;font-size:11px;line-height:16px}.nUhMVa_setCard{border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));background:var(--dsw-alias-bg-layer-3,#fff);border-radius:var(--dsw-radius-lg,16px);list-style:none;transition:border-color .16s,background .16s}.nUhMVa_setCard:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.nUhMVa_setCardOpen{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.nUhMVa_setHeader{-webkit-appearance:none;appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--dsw-radius-lg,16px);background:0 0;border:0;align-items:center;gap:12px;padding:14px 16px;display:flex}.nUhMVa_setHeader:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.nUhMVa_setHeadText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.nUhMVa_setName{color:var(--dsw-alias-label-primary,#1f2328);font-size:15px;font-weight:600;line-height:1.4}.nUhMVa_setDesc{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:13px;line-height:1.5}.nUhMVa_setChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex:none;transition:transform .16s;display:inline-flex}.nUhMVa_setChevronOpen{transform:rotate(180deg)}.nUhMVa_setBody{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);margin:0 16px;padding-bottom:8px}.nUhMVa_setRow{align-items:center;gap:12px;padding:12px 0;display:flex}.nUhMVa_setRow+.nUhMVa_setRow{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.nUhMVa_setLabelBox{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.nUhMVa_setLabel{font-size:13px;line-height:20px}.nUhMVa_setHint{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:12px;line-height:18px}.nUhMVa_setAdvanced{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.nUhMVa_setAdvancedHead{-webkit-appearance:none;appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:12px 0;display:flex}.nUhMVa_setAdvancedHead:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.nUhMVa_setAdvancedBody{padding-bottom:4px}.nUhMVa_setConfirm{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;padding:12px 0 4px;display:flex}.nUhMVa_setCheck{cursor:pointer;align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_setActions{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);justify-content:flex-end;align-items:center;gap:8px;padding:12px 0 4px;display:flex}.nUhMVa_setInlineActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.nUhMVa_setProxyEditor{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-wrap:wrap;align-items:flex-end;gap:10px;padding:12px 0;display:flex}.nUhMVa_setProxyLabel{min-width:180px;color:var(--dsw-alias-label-secondary,#6b7280);flex-direction:column;flex:1;gap:5px;font-size:12px;line-height:18px;display:flex}.nUhMVa_setProxyInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2,#d1d5db);background:var(--dsw-alias-bg-layer-3,#fff);width:100%;min-width:0;color:var(--dsw-alias-label-primary,#1f2328);font:inherit;border-radius:7px;padding:6px 8px;font-size:12px;line-height:18px}.nUhMVa_setProxyInput:focus{border-color:var(--dsw-alias-brand-primary,#4f6ef7);outline:2px solid color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 18%,transparent)}.nUhMVa_setDanger{color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_setSeg{border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border:none;flex-shrink:0;gap:2px;padding:3px;display:inline-flex}.nUhMVa_setSegBtn{font:inherit;border-radius:var(--dsw-radius-sm,8px);height:26px;color:var(--dsw-alias-label-secondary,#5c6570);cursor:pointer;background:0 0;border:none;padding:0 10px;font-size:12px;line-height:18px}.nUhMVa_setSegBtn:disabled{cursor:default;opacity:.5}.nUhMVa_setSegOn{background:var(--dsw-alias-bg-layer-3,#fff);color:var(--dsw-alias-label-primary,#1f2328);box-shadow:0 0 0 .5px var(--dsw-alias-border-l3,#0000001f);font-weight:600}.nUhMVa_setBetaTag{background:var(--dsw-alias-bg-module-platform,#eef0f4);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;margin-left:6px;padding:0 6px;font-size:11px;font-weight:600;line-height:17px}.nUhMVa_commentsLink{cursor:pointer;white-space:nowrap;color:var(--dsw-alias-label-tertiary,#8b93a1);background:0 0;border:0;padding:0;font-size:12px;line-height:18px}.nUhMVa_commentsLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_footActions{flex-shrink:0;align-items:center;gap:8px;display:inline-flex}.nUhMVa_favoriteBtn{cursor:pointer;color:var(--dsw-alias-label-secondary,#9ca3af);background:0 0;border:0;align-items:center;padding:0;display:inline-flex}.nUhMVa_favoriteMark{transform-box:fill-box;transform-origin:50% 0;display:block}.nUhMVa_favoriteBtn:hover,.nUhMVa_favoriteOn{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_cardMore{cursor:pointer;font:inherit;letter-spacing:1px;color:var(--dsw-alias-label-secondary,#9ca3af);background:0 0;border:0;padding:0 2px;font-size:14px;line-height:16px}.nUhMVa_cardMore:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_blockedTabHint{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0 0 12px;font-size:12px;line-height:18px}.nUhMVa_blockedMissing{flex-direction:column;gap:4px;margin-top:8px;display:flex}.nUhMVa_blockedBarRow{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_blockedBarName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;line-height:20px;overflow:hidden}.nUhMVa_blockedBarUndo{cursor:pointer;font:inherit;color:var(--dsw-alias-brand-primary,#4f6ef7);background:0 0;border:0;padding:0;font-size:12px;line-height:18px}.nUhMVa_commentsNote{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0 0 8px;font-size:11px;line-height:16px}.nUhMVa_commentsGithubPrompt{border:1px solid color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 24%,transparent);background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 6%,transparent);border-radius:8px;margin:0 0 10px;padding:10px}.nUhMVa_commentsGithubHint{color:var(--dsw-alias-label-primary,#1f2328);margin:0 0 8px;font-size:12px;line-height:17px}.nUhMVa_commentsGithubAction{box-sizing:border-box;border:1px solid var(--dsw-alias-brand-primary,#4f6ef7);min-height:28px;color:var(--dsw-alias-brand-primary,#4f6ef7);border-radius:6px;justify-content:center;align-items:center;padding:5px 10px;font-size:12px;font-weight:600;line-height:16px;text-decoration:none;display:inline-flex}.nUhMVa_commentsGithubAction:hover{background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 9%,transparent)}.nUhMVa_commentsStatus{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0;font-size:12px}.nUhMVa_commentsStatus:empty{display:none}.nUhMVa_commentsError{color:var(--dsw-alias-label-primary,#1f2328);margin:0 0 8px;font-size:12px}.nUhMVa_commentsFail{flex-direction:column;align-items:flex-start;gap:8px;padding:12px 0;display:flex}.nUhMVa_commentsMount{width:100%;min-height:240px;max-height:56vh;overflow:auto}.nUhMVa_commentsMount iframe{width:100%}.nUhMVa_notesLink{font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);cursor:pointer;text-align:left;background:0 0;border:none;margin:2px 0 0;padding:0;font-size:12px;line-height:18px;display:block}.nUhMVa_notesLink:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_notesModalWide{width:min(640px,92vw);max-width:min(640px,92vw)}.nUhMVa_notesBody{overscroll-behavior:contain;flex-direction:column;flex:0 auto;gap:10px;min-width:0;max-height:min(60vh,520px);padding:0 2px 8px 0;display:flex;overflow-y:auto}.nUhMVa_notesRange{align-items:center;gap:8px;margin-bottom:4px;font-size:12px;line-height:18px;display:flex}.nUhMVa_notesArrow{color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_notesMeta{letter-spacing:.02em;text-transform:uppercase;color:var(--dsw-alias-label-secondary,#6b7280);flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:4px;font-size:12px;line-height:18px;display:flex}.nUhMVa_notesBody>.nUhMVa_notesMeta:first-child{margin-top:0}.nUhMVa_notesPre{white-space:pre-wrap;word-break:break-word;background:var(--dsw-alias-bg-layer-2,#eef0f4);border-radius:8px;max-height:40vh;margin:0;padding:10px 12px;font-size:13px;line-height:20px;overflow:auto}.nUhMVa_notesRendered{flex-direction:column;gap:8px;min-width:0;display:flex}.nUhMVa_notesImg{border-radius:6px;max-width:100%;height:auto;margin:4px 0;display:block}.nUhMVa_notesH{margin-top:4px;font-size:13px;font-weight:650;line-height:20px}.nUhMVa_notesP{font-size:13px;line-height:20px}.nUhMVa_notesQuote{border-left:3px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f7f8fa);color:var(--dsw-alias-label-primary,#1f2328);border-radius:0 6px 6px 0;margin:0;padding:8px 10px;font-size:13px;line-height:20px}.nUhMVa_notesFence{background:var(--dsw-alias-bg-layer-2,#eef0f4);font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);white-space:pre;border-radius:8px;margin:0;padding:10px 12px;font-size:12px;line-height:18px;overflow-x:auto}.nUhMVa_notesFence code{font:inherit;background:0 0;padding:0}.nUhMVa_notesBullets{flex-direction:column;gap:4px;margin:0;padding-left:18px;font-size:13px;line-height:20px;display:flex}.nUhMVa_notesA{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:none}.nUhMVa_notesA:hover{text-decoration:underline}.nUhMVa_notesCode{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);background:var(--dsw-alias-bg-layer-2,#eef0f4);border-radius:5px;padding:1px 5px;font-size:12px}.nUhMVa_notesList{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.nUhMVa_notesRow{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:baseline;gap:12px;padding:6px 0;display:flex}.nUhMVa_notesRow:last-child{border-bottom:none}.nUhMVa_notesDate{color:var(--dsw-alias-label-tertiary,#8b93a1);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px}.nUhMVa_notesMsg{word-break:break-word;word-break:break-word;-webkit-line-clamp:3;-webkit-box-orient:vertical;min-width:0;font-size:13px;line-height:20px;display:-webkit-box;overflow:hidden}.nUhMVa_notesSha{color:var(--dsw-alias-label-secondary,#6b7280);font-variant-numeric:tabular-nums;flex-shrink:0;margin-left:auto;font-size:12px;text-decoration:none}.nUhMVa_recoverySummary{color:var(--dsw-alias-state-error-primary,#dc2626);word-break:break-word;align-items:flex-start;gap:8px;margin-bottom:8px;font-size:12px;display:flex}.nUhMVa_recoveryHint{color:var(--dsw-alias-label-secondary,#6b7280);margin:8px 0;font-size:12px}.nUhMVa_recoveryList{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;max-height:320px;display:flex;overflow-x:hidden;overflow-y:auto}.nUhMVa_recoveryRow{border-top:1px solid var(--dsw-alias-border-l2,#eef0f4);align-items:flex-start;gap:8px;padding:6px 10px;font-size:12px;display:flex}.nUhMVa_recoveryRow:first-child{border-top:none}.nUhMVa_recoveryBlamed{box-shadow:inset 3px 0 0 var(--dsw-alias-state-error-primary,#dc2626);background:#dc262612}.nUhMVa_recoveryMuted{opacity:.6}.nUhMVa_recoveryName{word-break:break-word;flex-direction:column;gap:2px;min-width:0;display:flex}.nUhMVa_recoveryReason{color:var(--dsw-alias-state-error-primary,#dc2626);word-break:break-word;font-size:11px}.nUhMVa_recoveryNote{color:var(--dsw-alias-label-tertiary,#8b93a1);word-break:break-word;margin-top:8px;font-size:11px}.nUhMVa_recoveryBadge{background:var(--dsw-alias-bg-layer-2,#eef0f4);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:5px;margin-left:6px;padding:0 5px;font-size:10px}.nUhMVa_recoveryLog{color:var(--dsw-alias-label-secondary,#6b7280);margin:4px 0 8px;font-size:11px}.nUhMVa_recoveryLog pre{white-space:pre-wrap;word-break:break-word;max-height:180px;margin:6px 0 0;overflow:auto}.nUhMVa_notesSha:hover{color:var(--dsw-alias-label-primary,#1f2328);text-decoration:underline}.nUhMVa_notesVer{color:inherit;font-weight:600;text-decoration:none}.nUhMVa_notesVer:hover{text-decoration:underline}.nUhMVa_notesSourceLink{color:var(--dsw-alias-brand-primary,#4f6ef7);white-space:nowrap;text-decoration:none}.nUhMVa_notesSourceLink:hover{text-decoration:underline}.nUhMVa_migrationSources{flex-direction:column;gap:8px;margin-top:4px;display:flex}.nUhMVa_migrationSource{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.nUhMVa_migrationSource code{font-size:12px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere}.nUhMVa_migrationLabel{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px}.nUhMVa_migrationArrow{text-align:center;color:var(--dsw-alias-label-secondary,#9ca3af)}.nUhMVa_migrationWarning{color:var(--dsw-alias-state-warn-primary,#b45309);align-items:flex-start;gap:6px;margin:12px 0 0;font-size:12px;line-height:18px;display:flex}.nUhMVa_migrationNote{color:var(--dsw-alias-label-secondary,#6b7280);margin:12px 0 0;font-size:12px;line-height:18px}.nUhMVa_sourceRepo{color:var(--dsw-alias-label-secondary,#5c6570);align-self:flex-end;align-items:center;gap:2px;font-size:13px;line-height:20px;text-decoration:none;display:inline-flex}.nUhMVa_sourceRepo:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_sourceRepo:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px;border-radius:4px}.nUhMVa_updateChecks{margin:12px 0;font-size:13px}.nUhMVa_updateChecks summary{cursor:pointer}.nUhMVa_updateChecksSummary{opacity:.7;margin-left:8px}.nUhMVa_updateChecksControls{flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;display:flex}.nUhMVa_updateChecksToggle{align-items:center;gap:8px;display:inline-flex}.nUhMVa_updateChecksHint{opacity:.7;margin:8px 0}.nUhMVa_updateChecksList{margin:12px 0;padding:0;list-style:none}.nUhMVa_updateChecksList li{flex-wrap:wrap;align-items:center;gap:12px;padding:8px 0;display:flex}.nUhMVa_updateChecksPackage{overflow-wrap:anywhere;flex-direction:column;flex:1;min-width:0;display:flex}.nUhMVa_updateChecksPackage>span{opacity:.7;font-size:12px}.nUhMVa_updateChecksInterval{align-items:center;gap:8px;display:inline-flex}.nUhMVa_updateChecksInterval select{color:inherit;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);font:inherit;border-radius:6px;padding:4px 8px}";
4059
4238
  const tagId = "dsh-crate/Market.module.css";
4060
4239
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
4061
4240
  const tag = document.createElement("style");
@@ -4210,8 +4389,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4210
4389
  "dragging": "nUhMVa_dragging",
4211
4390
  "dragHandle": "nUhMVa_dragHandle",
4212
4391
  "dragOver": "nUhMVa_dragOver",
4213
- "dshmMarkPlug": "nUhMVa_dshmMarkPlug",
4214
- "dshmMarkWave": "nUhMVa_dshmMarkWave",
4392
+ "dshmCrateSweep": "nUhMVa_dshmCrateSweep",
4215
4393
  "dshmPlugFade": "nUhMVa_dshmPlugFade",
4216
4394
  "dshmSlide": "nUhMVa_dshmSlide",
4217
4395
  "empty": "nUhMVa_empty",
@@ -4238,6 +4416,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4238
4416
  "groupAddModalList": "nUhMVa_groupAddModalList",
4239
4417
  "groupAddPanel": "nUhMVa_groupAddPanel",
4240
4418
  "groupAddPick": "nUhMVa_groupAddPick",
4419
+ "groupBulkActions": "nUhMVa_groupBulkActions",
4241
4420
  "groupCollapse": "nUhMVa_groupCollapse",
4242
4421
  "groupCreate": "nUhMVa_groupCreate",
4243
4422
  "groupCreateInline": "nUhMVa_groupCreateInline",
@@ -4298,10 +4477,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4298
4477
  "lightboxPrev": "nUhMVa_lightboxPrev",
4299
4478
  "loading": "nUhMVa_loading",
4300
4479
  "loadMore": "nUhMVa_loadMore",
4301
- "logoCell": "nUhMVa_logoCell",
4302
4480
  "logoMark": "nUhMVa_logoMark",
4303
- "logoPlug": "nUhMVa_logoPlug",
4304
- "logoPlugAmbient": "nUhMVa_logoPlugAmbient",
4481
+ "logoSweep": "nUhMVa_logoSweep",
4305
4482
  "masonry": "nUhMVa_masonry",
4306
4483
  "masonryCol": "nUhMVa_masonryCol",
4307
4484
  "memberKind": "nUhMVa_memberKind",
@@ -4546,6 +4723,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4546
4723
  "ungroupedDesc": "nUhMVa_ungroupedDesc",
4547
4724
  "ungroupedRow": "nUhMVa_ungroupedRow",
4548
4725
  "ungroupedState": "nUhMVa_ungroupedState",
4726
+ "updateCheckNotice": "nUhMVa_updateCheckNotice",
4727
+ "updateChecks": "nUhMVa_updateChecks",
4728
+ "updateChecksControls": "nUhMVa_updateChecksControls",
4729
+ "updateChecksHint": "nUhMVa_updateChecksHint",
4730
+ "updateChecksInterval": "nUhMVa_updateChecksInterval",
4731
+ "updateChecksList": "nUhMVa_updateChecksList",
4732
+ "updateChecksPackage": "nUhMVa_updateChecksPackage",
4733
+ "updateChecksSummary": "nUhMVa_updateChecksSummary",
4734
+ "updateChecksToggle": "nUhMVa_updateChecksToggle",
4549
4735
  "version": "nUhMVa_version",
4550
4736
  "viewBar": "nUhMVa_viewBar",
4551
4737
  "viewBtn": "nUhMVa_viewBtn",
@@ -4555,56 +4741,22 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4555
4741
  //#endregion
4556
4742
  //#region src/client/market-mark.ts
4557
4743
  /**
4558
- * 品牌标记的几何定义,与 `assets/logo.svg` 的四格设计一致。
4559
- *
4560
- * 两个消费方共用同一份坐标,避免走样:
4561
- *
4562
- * - `MarketLogo`(MarketSection.tsx)渲染成普通 React SVG,颜色取 `currentColor`,
4563
- * 动画版本再叠加波浪与飞块;
4564
- * - `settings-nav-icon.ts` 序列化成 CSS mask,供设置导航图标使用(mask 不能取
4565
- * `currentColor`,所以需要独立的静态标记)。
4566
- *
4567
- * 标记是 2×2 四格:左上、左下、右下三格常驻,右上是待飞入的第四格。
4568
- */
4569
- /** 单格边长与圆角。 */
4570
- const MARK_BLOCK_SIZE = 4.95;
4571
- const MARK_BLOCK_RADIUS = .7875;
4572
- /**
4573
- * 常驻的三个格子,按行优先排列。右上角留空,等第四块飞入。
4574
- *
4575
- * `wave` 是 2×2 网格里的对角线序号(行 + 列)。动画按它错开,让明暗沿对角线
4576
- * 划过;空位是 `wave` 1,飞块的时序也按它对齐(见 `dshmMarkPlug`)。
4744
+ * 描边宽度。坐标都落在 0.5 的偏移上,1.25 在 16px 下是一条实心线加一点边缘过渡;
4745
+ * 放大到 18–26px 时仍保持同样的视觉重量。
4577
4746
  */
4578
- const MARK_GRID_BLOCKS = [
4579
- {
4580
- x: 2.6,
4581
- y: 2.6,
4582
- wave: 0
4583
- },
4584
- {
4585
- x: 2.6,
4586
- y: 8.45,
4587
- wave: 1
4588
- },
4589
- {
4590
- x: 8.45,
4591
- y: 8.45,
4592
- wave: 2
4593
- }
4594
- ];
4747
+ const MARK_STROKE_WIDTH = 1.25;
4748
+ /** 外框:0.5 偏移,15 边长。 */
4749
+ const MARK_FRAME = {
4750
+ x: .5,
4751
+ y: .5,
4752
+ width: 15,
4753
+ height: 15
4754
+ };
4595
4755
  /**
4596
- * 第四块:静止时落在右上角,与 `assets/logo.svg` 的落位帧一致;
4597
- * 飞入前的位移由 CSS 动画负责,所以静态标记(导航 mask、非动画渲染)
4598
- * 就是完整的 2×2 四格。
4756
+ * 箱体其余线条:上横档、右竖档、下横档、左竖档,以及两块竖板。
4757
+ * 合并成一条路径,React 与 mask 序列化共用同一个字符串。
4599
4758
  */
4600
- const MARK_PLUG_BLOCK = {
4601
- x: 8.45,
4602
- y: 2.6,
4603
- degrees: 0,
4604
- /** 旋转原点:飞块自身中心。 */
4605
- originX: 10.925,
4606
- originY: 5.075
4607
- };
4759
+ const MARK_PATH_D = "M0.5 3.5H12.5M12.5 0.5V12.5M3.5 12.5H15.5M3.5 3.5V15.5M6.5 3.5V12.5M9.5 3.5V12.5";
4608
4760
  //#endregion
4609
4761
  //#region src/client/comments.ts
4610
4762
  /**
@@ -4878,6 +5030,434 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4878
5030
  });
4879
5031
  }
4880
5032
  //#endregion
5033
+ //#region src/release-candidates.ts
5034
+ function semver(value) {
5035
+ if (typeof value !== "string") return null;
5036
+ const matched = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/.exec(value);
5037
+ if (!matched) return null;
5038
+ const prerelease = matched[4]?.split(".") ?? [];
5039
+ if (prerelease.some((part) => /^\d+$/.test(part) && part.length > 1 && part.startsWith("0"))) return null;
5040
+ return {
5041
+ core: [
5042
+ BigInt(matched[1]),
5043
+ BigInt(matched[2]),
5044
+ BigInt(matched[3])
5045
+ ],
5046
+ prerelease
5047
+ };
5048
+ }
5049
+ /** Accept a bounded exact npm release version, including prereleases. */
5050
+ function isExactReleaseVersion(value) {
5051
+ return typeof value === "string" && value.length <= 256 && value === value.trim() && semver(value) !== null;
5052
+ }
5053
+ //#endregion
5054
+ //#region src/client/discovery-scan.ts
5055
+ const BATCH_SIZE = 64;
5056
+ const BATCH_BYTES = 32640;
5057
+ const UNAVAILABLE_RETRY_MS = 3e5;
5058
+ const REQUEST_RETRY_MS = 3e4;
5059
+ const MUTABLE_SOURCE_TTL_MS = 864e5;
5060
+ const REVISION = /^[a-f0-9]{64}$/;
5061
+ const HOST_FILTER_KEY = "dshm-host-filter";
5062
+ const unavailable = {
5063
+ status: "unknown",
5064
+ basis: "unavailable",
5065
+ requirement: null,
5066
+ declarations: []
5067
+ };
5068
+ function initialPreference() {
5069
+ try {
5070
+ return window.localStorage.getItem(HOST_FILTER_KEY) !== "all";
5071
+ } catch {
5072
+ return true;
5073
+ }
5074
+ }
5075
+ function describeEntry(plugin) {
5076
+ const key = hostCompatibilityKey(plugin);
5077
+ if (key === null) return null;
5078
+ const version = typeof plugin.version === "string" ? plugin.version.trim() : "";
5079
+ if (!key.startsWith("https://")) {
5080
+ const npmVersion = isExactReleaseVersion(version) ? version : void 0;
5081
+ return {
5082
+ key,
5083
+ fingerprint: npmVersion ?? "",
5084
+ npmVersion,
5085
+ expires: npmVersion === void 0,
5086
+ bytes: entryBytes(key, npmVersion)
5087
+ };
5088
+ }
5089
+ const revision = plugin.compatibilityRevision;
5090
+ const githubRevision = typeof revision === "string" && REVISION.test(revision) ? revision : void 0;
5091
+ return {
5092
+ key,
5093
+ fingerprint: githubRevision ?? JSON.stringify([plugin.tarball ?? null, version]),
5094
+ githubRevision,
5095
+ expires: true,
5096
+ bytes: entryBytes(key, githubRevision)
5097
+ };
5098
+ }
5099
+ const encoder = new TextEncoder();
5100
+ function entryBytes(key, hint) {
5101
+ const keyBytes = encoder.encode(JSON.stringify(key)).byteLength;
5102
+ return keyBytes + 1 + (hint === void 0 ? 0 : keyBytes + encoder.encode(JSON.stringify(hint)).byteLength + 2);
5103
+ }
5104
+ function requestBody(entries) {
5105
+ const packages = entries.filter((entry) => !entry.key.startsWith("https://")).map((entry) => entry.key);
5106
+ const github = entries.filter((entry) => entry.key.startsWith("https://")).map((entry) => entry.key);
5107
+ const versions = entries.filter((entry) => entry.npmVersion !== void 0).map((entry) => [entry.key, entry.npmVersion]);
5108
+ const revisions = entries.filter((entry) => entry.githubRevision !== void 0).map((entry) => [entry.key, entry.githubRevision]);
5109
+ return {
5110
+ packages,
5111
+ ...github.length > 0 ? { entries: github } : {},
5112
+ ...versions.length > 0 ? { versions: Object.fromEntries(versions) } : {},
5113
+ ...revisions.length > 0 ? { githubRevisions: Object.fromEntries(revisions) } : {}
5114
+ };
5115
+ }
5116
+ function readVerdict(value) {
5117
+ if (value == null || ![
5118
+ "compatible",
5119
+ "incompatible",
5120
+ "unknown"
5121
+ ].includes(value.status) || ![
5122
+ "manifest",
5123
+ "undeclared",
5124
+ "unavailable"
5125
+ ].includes(value.basis) || value.requirement !== null && typeof value.requirement !== "string" || !Array.isArray(value.declarations)) return unavailable;
5126
+ return value.basis === "unavailable" ? {
5127
+ ...unavailable,
5128
+ ...value.catalogChanged === true ? { catalogChanged: true } : {},
5129
+ ...typeof value.retryAfterMs === "number" && Number.isFinite(value.retryAfterMs) && value.retryAfterMs >= 0 ? { retryAfterMs: value.retryAfterMs } : {}
5130
+ } : value;
5131
+ }
5132
+ /** Shares on-demand badge lookups across the three market surfaces. */
5133
+ var DiscoveryScan = class {
5134
+ onCatalogGenerationChange;
5135
+ snapshot;
5136
+ listeners = /* @__PURE__ */ new Set();
5137
+ entries = /* @__PURE__ */ new Map();
5138
+ results = /* @__PURE__ */ new Map();
5139
+ demand = /* @__PURE__ */ new Map();
5140
+ pending;
5141
+ hostVersion;
5142
+ catalog = null;
5143
+ boot;
5144
+ enabled;
5145
+ context = 0;
5146
+ catalogRequest = 0;
5147
+ resumeRequest;
5148
+ catalogRefreshUsed = false;
5149
+ active = false;
5150
+ gone = false;
5151
+ timer;
5152
+ verdictsChanged = false;
5153
+ constructor(onCatalogGenerationChange) {
5154
+ this.onCatalogGenerationChange = onCatalogGenerationChange;
5155
+ }
5156
+ getSnapshot = () => {
5157
+ return this.snapshot ??= {
5158
+ enabled: this.enabled ??= initialPreference(),
5159
+ catalog: null,
5160
+ gone: false,
5161
+ hostVersion: void 0,
5162
+ verdicts: Object.create(null)
5163
+ };
5164
+ };
5165
+ subscribe = (listener) => {
5166
+ this.listeners.add(listener);
5167
+ return () => {
5168
+ this.listeners.delete(listener);
5169
+ };
5170
+ };
5171
+ reset() {
5172
+ clearTimeout(this.timer);
5173
+ this.timer = void 0;
5174
+ this.active = false;
5175
+ this.gone = false;
5176
+ this.context += 1;
5177
+ this.hostVersion = void 0;
5178
+ this.catalog = null;
5179
+ this.catalogRequest += 1;
5180
+ this.resumeRequest = void 0;
5181
+ this.boot = void 0;
5182
+ this.enabled = void 0;
5183
+ this.entries.clear();
5184
+ this.results.clear();
5185
+ this.demand.clear();
5186
+ this.catalogRefreshUsed = false;
5187
+ this.pending = void 0;
5188
+ this.verdictsChanged = false;
5189
+ this.snapshot = void 0;
5190
+ }
5191
+ setEnabled(enabled) {
5192
+ if (this.getSnapshot().enabled === enabled) return;
5193
+ try {
5194
+ window.localStorage.setItem(HOST_FILTER_KEY, enabled ? "compatible" : "all");
5195
+ } catch {}
5196
+ this.enabled = enabled;
5197
+ this.catalogRefreshUsed = false;
5198
+ if (enabled) {
5199
+ const keys = this.visibleKeys();
5200
+ this.allowRetry(keys);
5201
+ if (keys.some((key) => this.results.get(key)?.verdict.catalogChanged === true)) this.refreshCatalog();
5202
+ }
5203
+ this.update();
5204
+ }
5205
+ async loadCatalog() {
5206
+ const request = ++this.catalogRequest;
5207
+ const response = await fetch(api("/dsh-crate/registry"), { cache: "no-store" });
5208
+ if (request !== this.catalogRequest) return "superseded";
5209
+ if (response.status === 404) {
5210
+ this.setUnavailable();
5211
+ return "gone";
5212
+ }
5213
+ const body = await response.json().catch(() => ({}));
5214
+ if (request !== this.catalogRequest) return "superseded";
5215
+ if (!response.ok) throw new Error(typeof body.error === "string" ? body.error : `HTTP ${response.status}`);
5216
+ if (body.registry === void 0) throw new Error("the catalog response carried no data");
5217
+ const host = body.hostVersion;
5218
+ this.setCatalog(body.registry, typeof host === "string" || host === null ? host : void 0);
5219
+ return "loaded";
5220
+ }
5221
+ setCatalog(catalog, hostVersion) {
5222
+ if (catalog.updated !== this.catalog?.updated) this.onCatalogGenerationChange();
5223
+ this.catalog = catalog;
5224
+ this.active = true;
5225
+ this.gone = false;
5226
+ const next = /* @__PURE__ */ new Map();
5227
+ for (const plugin of catalog.plugins) {
5228
+ const described = describeEntry(plugin);
5229
+ if (described === null || next.has(described.key)) continue;
5230
+ const previous = this.entries.get(described.key);
5231
+ next.set(described.key, previous?.fingerprint === described.fingerprint ? previous : described);
5232
+ }
5233
+ this.entries = next;
5234
+ if (hostVersion !== void 0 && hostVersion !== this.hostVersion) {
5235
+ this.hostVersion = hostVersion;
5236
+ this.invalidate();
5237
+ }
5238
+ for (const [key, result] of this.results) {
5239
+ if (next.get(key) === result.entry) continue;
5240
+ this.results.delete(key);
5241
+ this.verdictsChanged = true;
5242
+ }
5243
+ this.markOversizedEntries();
5244
+ this.update();
5245
+ }
5246
+ setBoot(boot) {
5247
+ const previous = this.boot;
5248
+ this.boot = boot;
5249
+ if (previous === void 0 || previous === boot) return;
5250
+ this.invalidate();
5251
+ this.markOversizedEntries();
5252
+ this.catalogRefreshUsed = false;
5253
+ this.update();
5254
+ }
5255
+ setUnavailable() {
5256
+ if (this.gone) return;
5257
+ this.active = false;
5258
+ this.gone = true;
5259
+ this.catalogRefreshUsed = false;
5260
+ this.catalogRequest += 1;
5261
+ this.invalidate();
5262
+ this.update();
5263
+ }
5264
+ resume() {
5265
+ if (this.resumeRequest?.id === this.catalogRequest) return this.resumeRequest.result;
5266
+ const result = this.loadCatalog().finally(() => {
5267
+ if (this.resumeRequest?.result === result) this.resumeRequest = void 0;
5268
+ });
5269
+ this.resumeRequest = {
5270
+ id: this.catalogRequest,
5271
+ result
5272
+ };
5273
+ return result;
5274
+ }
5275
+ setDemand(owner, catalog, keys) {
5276
+ if (catalog !== this.catalog) return;
5277
+ const before = this.demand.get(owner)?.keys ?? [];
5278
+ if (catalog === null || keys.length === 0) this.demand.delete(owner);
5279
+ else this.demand.set(owner, {
5280
+ catalog,
5281
+ keys
5282
+ });
5283
+ const arrived = keys.filter((key) => !before.includes(key));
5284
+ this.allowRetry(arrived);
5285
+ if (arrived.some((key) => this.results.get(key)?.verdict.catalogChanged === true)) this.refreshCatalog();
5286
+ this.update();
5287
+ }
5288
+ removeDemand(owner) {
5289
+ this.demand.delete(owner);
5290
+ this.scheduleRetry();
5291
+ }
5292
+ allowRetry(keys) {
5293
+ for (const key of keys) {
5294
+ const result = this.results.get(key);
5295
+ if (result !== void 0 && Number.isFinite(result.retryAt)) result.automaticRetryUsed = false;
5296
+ }
5297
+ }
5298
+ invalidate() {
5299
+ this.context += 1;
5300
+ this.pending = void 0;
5301
+ this.results.clear();
5302
+ this.verdictsChanged = true;
5303
+ }
5304
+ markOversizedEntries() {
5305
+ for (const entry of this.entries.values()) {
5306
+ if (entry.bytes <= BATCH_BYTES) continue;
5307
+ this.results.set(entry.key, {
5308
+ entry,
5309
+ verdict: unavailable,
5310
+ retryAt: Infinity,
5311
+ expiresAt: Infinity,
5312
+ automaticRetryUsed: true
5313
+ });
5314
+ this.verdictsChanged = true;
5315
+ }
5316
+ }
5317
+ visibleKeys() {
5318
+ const keys = /* @__PURE__ */ new Set();
5319
+ for (const demand of this.demand.values()) {
5320
+ if (demand.catalog !== this.catalog) continue;
5321
+ for (const key of demand.keys) keys.add(key);
5322
+ }
5323
+ return [...keys];
5324
+ }
5325
+ update() {
5326
+ const previous = this.getSnapshot();
5327
+ const enabled = this.enabled ?? previous.enabled;
5328
+ const now = Date.now();
5329
+ for (const [key, result] of this.results) {
5330
+ if (result.expiresAt > now) continue;
5331
+ this.results.delete(key);
5332
+ this.verdictsChanged = true;
5333
+ }
5334
+ this.pump();
5335
+ let verdicts = previous.verdicts;
5336
+ if (this.verdictsChanged) {
5337
+ verdicts = Object.create(null);
5338
+ for (const [key, result] of this.results) verdicts[key] = result.verdict;
5339
+ this.verdictsChanged = false;
5340
+ }
5341
+ if (previous.enabled === enabled && previous.catalog === this.catalog && previous.gone === this.gone && previous.hostVersion === this.hostVersion && previous.verdicts === verdicts) return;
5342
+ this.snapshot = {
5343
+ enabled,
5344
+ catalog: this.catalog,
5345
+ gone: this.gone,
5346
+ hostVersion: this.hostVersion,
5347
+ verdicts
5348
+ };
5349
+ for (const listener of this.listeners) listener();
5350
+ }
5351
+ pump() {
5352
+ if (!this.active || this.pending !== void 0) {
5353
+ this.scheduleRetry();
5354
+ return;
5355
+ }
5356
+ const now = Date.now();
5357
+ const entries = this.visibleKeys().flatMap((key) => {
5358
+ const entry = this.entries.get(key);
5359
+ return entry === void 0 ? [] : [entry];
5360
+ });
5361
+ const fresh = this.visibleBatch(entries.filter((entry) => {
5362
+ const result = this.results.get(entry.key);
5363
+ return result === void 0 || result.expiresAt <= now;
5364
+ }));
5365
+ if (fresh.length > 0) this.dispatch(fresh, false);
5366
+ else if (this.enabled ?? this.getSnapshot().enabled) {
5367
+ const retry = this.visibleBatch(entries.filter((entry) => {
5368
+ const result = this.results.get(entry.key);
5369
+ return result !== void 0 && result.retryAt <= now && !result.automaticRetryUsed;
5370
+ }));
5371
+ if (retry.length > 0) this.dispatch(retry, true);
5372
+ }
5373
+ this.scheduleRetry();
5374
+ }
5375
+ visibleBatch(entries) {
5376
+ let bytes = 0;
5377
+ let end = 0;
5378
+ for (const entry of entries) {
5379
+ bytes += entry.bytes;
5380
+ if (bytes > BATCH_BYTES || end >= BATCH_SIZE) break;
5381
+ end += 1;
5382
+ }
5383
+ return entries.slice(0, end);
5384
+ }
5385
+ scheduleRetry() {
5386
+ clearTimeout(this.timer);
5387
+ this.timer = void 0;
5388
+ if (!this.active || !(this.enabled ?? this.getSnapshot().enabled) || this.pending !== void 0) return;
5389
+ let next = Infinity;
5390
+ for (const key of this.visibleKeys()) {
5391
+ const result = this.results.get(key);
5392
+ if (result === void 0 || result.automaticRetryUsed) continue;
5393
+ next = Math.min(next, result.retryAt);
5394
+ }
5395
+ if (Number.isFinite(next)) this.timer = setTimeout(() => this.pump(), Math.max(0, next - Date.now()));
5396
+ }
5397
+ dispatch(entries, retry) {
5398
+ const batch = {
5399
+ entries,
5400
+ retry,
5401
+ context: this.context
5402
+ };
5403
+ this.pending = batch;
5404
+ this.request(batch);
5405
+ }
5406
+ async request(batch) {
5407
+ let responseBody;
5408
+ let requestFailed = false;
5409
+ try {
5410
+ const response = await fetch(api("/dsh-crate/discovery-compatibility"), {
5411
+ method: "POST",
5412
+ headers: { "content-type": "application/json" },
5413
+ body: JSON.stringify(requestBody(batch.entries))
5414
+ });
5415
+ if (response.status === 404 && batch.context === this.context) this.setUnavailable();
5416
+ if (!response.ok) throw new Error(`HTTP ${response.status}`);
5417
+ responseBody = await response.json();
5418
+ if (responseBody?.plugins === null || typeof responseBody?.plugins !== "object" || Array.isArray(responseBody.plugins)) throw new Error("Invalid compatibility response");
5419
+ } catch {
5420
+ requestFailed = true;
5421
+ }
5422
+ if (this.pending === batch) this.pending = void 0;
5423
+ if (batch.context !== this.context) {
5424
+ this.update();
5425
+ return;
5426
+ }
5427
+ const responseHost = responseBody?.hostVersion;
5428
+ if ((typeof responseHost === "string" || responseHost === null) && responseHost !== this.hostVersion) {
5429
+ if (this.hostVersion === void 0) this.hostVersion = responseHost;
5430
+ else {
5431
+ if (this.visibleKeys().length > 0) this.refreshCatalog();
5432
+ requestFailed = true;
5433
+ }
5434
+ }
5435
+ const now = Date.now();
5436
+ let catalogChanged = false;
5437
+ for (const entry of batch.entries) {
5438
+ if (this.entries.get(entry.key) !== entry) continue;
5439
+ const verdict = readVerdict(requestFailed ? void 0 : responseBody?.plugins?.[entry.key]);
5440
+ if (verdict.catalogChanged === true) catalogChanged = true;
5441
+ const retryAt = verdict.basis !== "unavailable" || verdict.catalogChanged === true ? Infinity : now + (verdict.retryAfterMs ?? (requestFailed ? REQUEST_RETRY_MS : UNAVAILABLE_RETRY_MS));
5442
+ this.results.set(entry.key, {
5443
+ entry,
5444
+ verdict,
5445
+ retryAt,
5446
+ automaticRetryUsed: batch.retry,
5447
+ expiresAt: verdict.basis !== "unavailable" && entry.expires ? now + MUTABLE_SOURCE_TTL_MS : Infinity
5448
+ });
5449
+ this.verdictsChanged = true;
5450
+ }
5451
+ if (catalogChanged && this.visibleKeys().some((key) => this.results.get(key)?.verdict.catalogChanged === true)) this.refreshCatalog();
5452
+ this.update();
5453
+ }
5454
+ refreshCatalog() {
5455
+ if (!this.active || this.catalogRefreshUsed) return;
5456
+ this.catalogRefreshUsed = true;
5457
+ this.loadCatalog().catch(() => {});
5458
+ }
5459
+ };
5460
+ //#endregion
4881
5461
  //#region src/client/download-stats.ts
4882
5462
  const validCount = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
4883
5463
  /** Keep the established npm window first; the two sources are never added together. */
@@ -5869,13 +6449,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
5869
6449
  const [dismissed, setDismissed] = (0, react.useState)(false);
5870
6450
  (0, react.useEffect)(() => {
5871
6451
  try {
5872
- setDismissed(sessionStorage.getItem("dshm-host-recovery-dismissed") === String(bootId ?? ""));
6452
+ setDismissed(window.sessionStorage.getItem("dshm-host-recovery-dismissed") === String(bootId ?? ""));
5873
6453
  } catch {}
5874
6454
  }, [bootId]);
5875
6455
  const dismiss = (0, react.useCallback)(() => {
5876
6456
  setDismissed(true);
5877
6457
  try {
5878
- sessionStorage.setItem("dshm-host-recovery-dismissed", String(bootId ?? ""));
6458
+ window.sessionStorage.setItem("dshm-host-recovery-dismissed", String(bootId ?? ""));
5879
6459
  } catch {}
5880
6460
  }, [bootId]);
5881
6461
  (0, react.useEffect)(() => {
@@ -5963,6 +6543,550 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
5963
6543
  });
5964
6544
  }
5965
6545
  //#endregion
6546
+ //#region src/update-notification-settings.ts
6547
+ /** Persisted choices shared by the profile monitor and its settings UI. */
6548
+ const UPDATE_CHECK_INTERVAL_HOURS = [
6549
+ 6,
6550
+ 12,
6551
+ 72,
6552
+ 168
6553
+ ];
6554
+ function isUpdateCheckIntervalHours(value) {
6555
+ return typeof value === "number" && UPDATE_CHECK_INTERVAL_HOURS.includes(value);
6556
+ }
6557
+ //#endregion
6558
+ //#region src/client/update-notifications.ts
6559
+ /** One local snapshot shared by the market page, settings and sidebar. */
6560
+ const IGNORED_UPDATES_SESSION_KEY$1 = "dshm-updates-ignored";
6561
+ const RESTART_SESSION_KEY = "dshm-restart";
6562
+ const SEEN_UPDATES_KEY_PREFIX = "dshm-updates-seen:";
6563
+ const POLL_MS = 3e4;
6564
+ const initialState = () => ({
6565
+ enabled: false,
6566
+ intervalHours: 6,
6567
+ checking: false,
6568
+ checkedAt: null,
6569
+ lastSuccessAt: null,
6570
+ nextCheckAt: null,
6571
+ stale: false,
6572
+ error: null,
6573
+ updates: {},
6574
+ boot: "",
6575
+ updateExempt: [],
6576
+ disabled: [],
6577
+ blocked: [],
6578
+ loaded: false,
6579
+ readFailed: false
6580
+ });
6581
+ function readIgnoredUpdates(boot, clearStale) {
6582
+ if (boot === "") return [];
6583
+ const saved = readSession(IGNORED_UPDATES_SESSION_KEY$1);
6584
+ if (saved === null || typeof saved !== "object" || Array.isArray(saved) || saved.boot !== boot || !Array.isArray(saved.names) || !saved.names.every((name) => typeof name === "string" && name !== "")) {
6585
+ if (clearStale) try {
6586
+ window.sessionStorage.removeItem(IGNORED_UPDATES_SESSION_KEY$1);
6587
+ } catch {}
6588
+ return [];
6589
+ }
6590
+ return [...new Set(saved.names)];
6591
+ }
6592
+ /** Called after the host reports its current boot; retire old dismissals then. */
6593
+ function ignoredUpdatesForBoot(boot) {
6594
+ return readIgnoredUpdates(boot, true);
6595
+ }
6596
+ /** The attention count excludes dismissed, disabled and already-completed updates. */
6597
+ function notificationNames(snapshot) {
6598
+ const restart = readSession(RESTART_SESSION_KEY);
6599
+ const updated = restart?.boot === snapshot.boot && Array.isArray(restart.updated) ? restart.updated.filter((name) => typeof name === "string") : [];
6600
+ const quiet = /* @__PURE__ */ new Set([
6601
+ ...snapshot.updateExempt,
6602
+ ...snapshot.disabled,
6603
+ ...snapshot.blocked,
6604
+ ...readIgnoredUpdates(snapshot.boot, false),
6605
+ ...updated
6606
+ ]);
6607
+ return Object.entries(snapshot.updates).filter(([name, status]) => !quiet.has(name) && status.notAPlugin !== true && (status.updateAvailable === true || status.kind === "generation" && status.latest != null)).map(([name]) => name).sort();
6608
+ }
6609
+ const seenInMemory = /* @__PURE__ */ new Map();
6610
+ const unpersistedSeen = /* @__PURE__ */ new Set();
6611
+ function seenScope(snapshot) {
6612
+ const persistent = typeof snapshot.profileKey === "string" && snapshot.profileKey !== "";
6613
+ if (!persistent && snapshot.boot === "") return null;
6614
+ return {
6615
+ key: SEEN_UPDATES_KEY_PREFIX + JSON.stringify([
6616
+ api("/dsh-crate/update-notifications"),
6617
+ persistent ? "profile" : "boot",
6618
+ persistent ? snapshot.profileKey : snapshot.boot
6619
+ ]),
6620
+ persistent
6621
+ };
6622
+ }
6623
+ function seenStorage(scope) {
6624
+ return scope.persistent ? localStorage : sessionStorage;
6625
+ }
6626
+ function readSeen(scope) {
6627
+ if (unpersistedSeen.has(scope.key)) return seenInMemory.get(scope.key) ?? /* @__PURE__ */ new Set();
6628
+ try {
6629
+ const raw = seenStorage(scope).getItem(scope.key);
6630
+ if (raw === null) {
6631
+ seenInMemory.delete(scope.key);
6632
+ return /* @__PURE__ */ new Set();
6633
+ }
6634
+ const saved = JSON.parse(raw);
6635
+ if (!isRecord(saved) || saved.version !== 1 || !Array.isArray(saved.fingerprints) || !saved.fingerprints.every((value) => typeof value === "string" && value !== "")) {
6636
+ seenInMemory.delete(scope.key);
6637
+ return /* @__PURE__ */ new Set();
6638
+ }
6639
+ const fingerprints = new Set(saved.fingerprints);
6640
+ seenInMemory.set(scope.key, fingerprints);
6641
+ return fingerprints;
6642
+ } catch (error) {
6643
+ if (error instanceof SyntaxError) {
6644
+ seenInMemory.delete(scope.key);
6645
+ return /* @__PURE__ */ new Set();
6646
+ }
6647
+ return seenInMemory.get(scope.key) ?? /* @__PURE__ */ new Set();
6648
+ }
6649
+ }
6650
+ function updateFingerprint(snapshot, name) {
6651
+ const status = snapshot.updates[name];
6652
+ const migration = status.sourceMigration;
6653
+ return JSON.stringify([
6654
+ name,
6655
+ status.kind ?? null,
6656
+ status.current ?? null,
6657
+ status.version ?? null,
6658
+ status.eligibleVersion ?? status.latest ?? null,
6659
+ status.restoreRequired === true,
6660
+ migration?.kind === "git-to-npm" ? [
6661
+ migration.kind,
6662
+ migration.repo,
6663
+ migration.target
6664
+ ] : migration?.kind === "npm-rename" ? [
6665
+ migration.kind,
6666
+ migration.from,
6667
+ migration.target
6668
+ ] : null
6669
+ ]);
6670
+ }
6671
+ /** Sidebar attention is unread state; the pending update list stays intact. */
6672
+ function unseenNotificationNames(snapshot) {
6673
+ const names = notificationNames(snapshot);
6674
+ const scope = seenScope(snapshot);
6675
+ if (scope === null) return names;
6676
+ const seen = readSeen(scope);
6677
+ return names.filter((name) => !seen.has(updateFingerprint(snapshot, name)));
6678
+ }
6679
+ /** Returns true only when the visit acknowledged at least one new update. */
6680
+ function acknowledgeSnapshot(snapshot) {
6681
+ const scope = seenScope(snapshot);
6682
+ if (scope === null) return false;
6683
+ const saved = readSeen(scope);
6684
+ const seen = new Set(saved);
6685
+ for (const name of notificationNames(snapshot)) seen.add(updateFingerprint(snapshot, name));
6686
+ if (seen.size === saved.size) return false;
6687
+ seenInMemory.set(scope.key, seen);
6688
+ try {
6689
+ seenStorage(scope).setItem(scope.key, JSON.stringify({
6690
+ version: 1,
6691
+ fingerprints: [...seen]
6692
+ }));
6693
+ unpersistedSeen.delete(scope.key);
6694
+ } catch {
6695
+ unpersistedSeen.add(scope.key);
6696
+ }
6697
+ return true;
6698
+ }
6699
+ function isRecord(value) {
6700
+ return value !== null && typeof value === "object" && !Array.isArray(value);
6701
+ }
6702
+ function isUpdateStatus$1(value) {
6703
+ return isRecord(value) && [
6704
+ "updateAvailable",
6705
+ "notAPlugin",
6706
+ "restoreRequired"
6707
+ ].every((key) => value[key] === void 0 || typeof value[key] === "boolean") && [
6708
+ "current",
6709
+ "latest",
6710
+ "version"
6711
+ ].every((key) => value[key] === void 0 || value[key] === null || typeof value[key] === "string") && ["kind", "eligibleVersion"].every((key) => value[key] === void 0 || typeof value[key] === "string") && (value.checkError === void 0 || value.checkError === "unavailable") && (value.checkFailed === void 0 || value.checkFailed === true);
6712
+ }
6713
+ /** Reject a malformed local response instead of replacing a useful cached result. */
6714
+ function readSnapshot(value) {
6715
+ if (!isRecord(value) || typeof value.enabled !== "boolean" || value.intervalHours !== void 0 && !isUpdateCheckIntervalHours(value.intervalHours) || typeof value.checking !== "boolean" || value.profileKey !== void 0 && (typeof value.profileKey !== "string" || value.profileKey === "") || typeof value.stale !== "boolean" || typeof value.boot !== "string" || !(value.error === null || typeof value.error === "string") || ![
6716
+ "checkedAt",
6717
+ "lastSuccessAt",
6718
+ "nextCheckAt"
6719
+ ].every((key) => value[key] === null || typeof value[key] === "number" && Number.isFinite(value[key])) || ![
6720
+ "updateExempt",
6721
+ "disabled",
6722
+ "blocked"
6723
+ ].every((key) => Array.isArray(value[key]) && value[key].every((name) => typeof name === "string")) || !isRecord(value.updates) || !Object.values(value.updates).every(isUpdateStatus$1)) throw new Error("The update notification response was incomplete. Try checking again.");
6724
+ return {
6725
+ ...value,
6726
+ intervalHours: value.intervalHours ?? null
6727
+ };
6728
+ }
6729
+ /** The injectable transport keeps request ordering and teardown independently testable. */
6730
+ function createUpdateNotificationsStore(request = (...args) => fetch(...args)) {
6731
+ let state = initialState();
6732
+ const listeners = /* @__PURE__ */ new Set();
6733
+ let owners = 0;
6734
+ let timer;
6735
+ let read;
6736
+ let command;
6737
+ let afterChange;
6738
+ let changeRevision = 0;
6739
+ let lifecycle = 0;
6740
+ let requestSequence = 0;
6741
+ const controllers = /* @__PURE__ */ new Set();
6742
+ const publish = (next) => {
6743
+ state = next;
6744
+ for (const listener of [...listeners]) listener();
6745
+ };
6746
+ const run = async (body) => {
6747
+ const generation = lifecycle;
6748
+ const sequence = ++requestSequence;
6749
+ const controller = new AbortController();
6750
+ controllers.add(controller);
6751
+ try {
6752
+ const response = await request(api("/dsh-crate/update-notifications"), {
6753
+ cache: "no-store",
6754
+ signal: controller.signal,
6755
+ ...body === void 0 ? {} : {
6756
+ method: "POST",
6757
+ headers: { "content-type": "application/json" },
6758
+ body: JSON.stringify(body)
6759
+ }
6760
+ });
6761
+ if (!response.ok) throw new Error(`Update check unavailable (${response.status}). Try again.`);
6762
+ const next = readSnapshot(await response.json());
6763
+ if (generation === lifecycle && sequence === requestSequence) publish({
6764
+ ...next,
6765
+ loaded: true,
6766
+ readFailed: false
6767
+ });
6768
+ } catch (error) {
6769
+ if (generation !== lifecycle || controller.signal.aborted) return state;
6770
+ if (sequence === requestSequence) publish({
6771
+ ...state,
6772
+ readFailed: true,
6773
+ stale: true,
6774
+ error: error instanceof Error ? error.message : String(error)
6775
+ });
6776
+ if (body !== void 0) throw error;
6777
+ } finally {
6778
+ controllers.delete(controller);
6779
+ }
6780
+ return state;
6781
+ };
6782
+ const refresh = () => {
6783
+ if (command !== void 0) return command.catch(() => state);
6784
+ if (read === void 0) {
6785
+ const pending = run();
6786
+ read = pending;
6787
+ pending.finally(() => {
6788
+ if (read === pending) read = void 0;
6789
+ });
6790
+ }
6791
+ return read;
6792
+ };
6793
+ const mutate = (body) => {
6794
+ const previous = command;
6795
+ const generation = lifecycle;
6796
+ const pending = (previous === void 0 ? Promise.resolve() : previous.catch(() => state)).then(() => generation === lifecycle ? run(body) : state);
6797
+ command = pending;
6798
+ pending.then(() => {
6799
+ if (command === pending) command = void 0;
6800
+ }, () => {
6801
+ if (command === pending) command = void 0;
6802
+ });
6803
+ return pending;
6804
+ };
6805
+ const refreshAfterChange = () => {
6806
+ changeRevision += 1;
6807
+ if (afterChange !== void 0) return afterChange;
6808
+ const generation = lifecycle;
6809
+ const pending = Promise.resolve().then(async () => {
6810
+ while (generation === lifecycle) {
6811
+ await (command ?? read)?.catch(() => state);
6812
+ if (generation !== lifecycle) return state;
6813
+ const revision = changeRevision;
6814
+ await refresh();
6815
+ if (revision === changeRevision) return state;
6816
+ }
6817
+ return state;
6818
+ });
6819
+ afterChange = pending;
6820
+ pending.finally(() => {
6821
+ if (afterChange === pending) afterChange = void 0;
6822
+ });
6823
+ return pending;
6824
+ };
6825
+ const preferencesChanged = () => {
6826
+ publish({ ...state });
6827
+ };
6828
+ const storageChanged = (event) => {
6829
+ if (event.key === null) {
6830
+ seenInMemory.clear();
6831
+ unpersistedSeen.clear();
6832
+ } else if (event.key.startsWith(SEEN_UPDATES_KEY_PREFIX)) {
6833
+ seenInMemory.delete(event.key);
6834
+ unpersistedSeen.delete(event.key);
6835
+ }
6836
+ if (event.key === null || event.key === IGNORED_UPDATES_SESSION_KEY$1 || event.key === RESTART_SESSION_KEY || event.key.startsWith(SEEN_UPDATES_KEY_PREFIX)) preferencesChanged();
6837
+ };
6838
+ return {
6839
+ getSnapshot: () => state,
6840
+ subscribe: (listener) => {
6841
+ listeners.add(listener);
6842
+ return () => {
6843
+ listeners.delete(listener);
6844
+ };
6845
+ },
6846
+ start: () => {
6847
+ owners += 1;
6848
+ if (owners === 1) {
6849
+ refresh();
6850
+ timer = setInterval(() => {
6851
+ refresh();
6852
+ }, POLL_MS);
6853
+ if (typeof window !== "undefined") window.addEventListener("storage", storageChanged);
6854
+ }
6855
+ let released = false;
6856
+ return () => {
6857
+ if (released) return;
6858
+ released = true;
6859
+ owners -= 1;
6860
+ if (owners !== 0) return;
6861
+ if (timer !== void 0) clearInterval(timer);
6862
+ timer = void 0;
6863
+ if (typeof window !== "undefined") window.removeEventListener("storage", storageChanged);
6864
+ lifecycle += 1;
6865
+ requestSequence += 1;
6866
+ for (const controller of controllers) controller.abort();
6867
+ controllers.clear();
6868
+ read = void 0;
6869
+ command = void 0;
6870
+ afterChange = void 0;
6871
+ publish(initialState());
6872
+ };
6873
+ },
6874
+ refresh,
6875
+ refreshAfterChange,
6876
+ check: () => mutate({ check: true }),
6877
+ setEnabled: (enabled) => mutate({ enabled }),
6878
+ setIntervalHours: (intervalHours) => state.intervalHours === null ? Promise.reject(/* @__PURE__ */ new Error("This server does not support changing the check interval. Restart Harness to use this setting.")) : mutate({ intervalHours }),
6879
+ acknowledge: (snapshot = state) => {
6880
+ if (acknowledgeSnapshot(snapshot)) preferencesChanged();
6881
+ },
6882
+ preferencesChanged
6883
+ };
6884
+ }
6885
+ const updateNotifications = createUpdateNotificationsStore();
6886
+ const getUpdateNotificationsSnapshot = updateNotifications.getSnapshot;
6887
+ const subscribeUpdateNotifications = updateNotifications.subscribe;
6888
+ const refreshUpdateNotifications = updateNotifications.refresh;
6889
+ const refreshUpdateNotificationsAfterChange = updateNotifications.refreshAfterChange;
6890
+ const checkUpdateNotifications = updateNotifications.check;
6891
+ const setUpdateNotificationsEnabled = updateNotifications.setEnabled;
6892
+ const setUpdateNotificationsIntervalHours = updateNotifications.setIntervalHours;
6893
+ const notifyUpdatePreferencesChanged = updateNotifications.preferencesChanged;
6894
+ const acknowledgeUpdateNotifications = updateNotifications.acknowledge;
6895
+ function useUpdateNotifications() {
6896
+ return (0, react.useSyncExternalStore)(subscribeUpdateNotifications, getUpdateNotificationsSnapshot, getUpdateNotificationsSnapshot);
6897
+ }
6898
+ //#endregion
6899
+ //#region src/client/UpdateNotificationsPanel.tsx
6900
+ /** The same snapshot that drives the sidebar; actions keep their existing owner. */
6901
+ function UpdateNotificationsPanel({ snapshot, t, busy, onCheck, onEnabled, onIntervalHours, onUpdate, onOpenHost }) {
6902
+ const [pending, setPending] = (0, react.useState)(false);
6903
+ const [failed, setFailed] = (0, react.useState)(false);
6904
+ const run = async (action) => {
6905
+ setPending(true);
6906
+ setFailed(false);
6907
+ try {
6908
+ await action();
6909
+ } catch {
6910
+ setFailed(true);
6911
+ } finally {
6912
+ setPending(false);
6913
+ }
6914
+ };
6915
+ const entries = notificationNames(snapshot).map((name) => [name, snapshot.updates[name]]);
6916
+ const state = failed || snapshot.stale ? t("updateChecksFailed") : snapshot.checking || pending ? t("updateChecksChecking") : snapshot.checkedAt === null ? t("updateChecksPending") : entries.length > 0 ? t("updateChecksFound").replace("{0}", String(entries.length)) : t("updateChecksNone");
6917
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
6918
+ className: Market_module_css_default.updateChecks,
6919
+ "data-dsh-crate-update-checks": true,
6920
+ children: [
6921
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [
6922
+ t("updateChecksTitle"),
6923
+ " ",
6924
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
6925
+ className: Market_module_css_default.updateChecksSummary,
6926
+ children: state
6927
+ })
6928
+ ] }),
6929
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6930
+ className: Market_module_css_default.updateChecksControls,
6931
+ children: [
6932
+ HostSwitch !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
6933
+ className: Market_module_css_default.updateChecksToggle,
6934
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(HostSwitch, {
6935
+ checked: snapshot.enabled,
6936
+ disabled: pending,
6937
+ label: t("updateChecksAutomatic"),
6938
+ onChange: (next) => {
6939
+ run(() => onEnabled(next));
6940
+ }
6941
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("updateChecksAutomatic") })]
6942
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [
6943
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
6944
+ type: "checkbox",
6945
+ checked: snapshot.enabled,
6946
+ disabled: pending,
6947
+ onChange: (event) => {
6948
+ const next = event.target.checked;
6949
+ run(() => onEnabled(next));
6950
+ }
6951
+ }),
6952
+ " ",
6953
+ t("updateChecksAutomatic")
6954
+ ] }),
6955
+ snapshot.intervalHours !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
6956
+ className: Market_module_css_default.updateChecksInterval,
6957
+ children: [t("updateChecksInterval"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
6958
+ "aria-label": t("updateChecksInterval"),
6959
+ value: snapshot.intervalHours,
6960
+ disabled: pending,
6961
+ onChange: (event) => {
6962
+ const next = Number(event.target.value);
6963
+ if (isUpdateCheckIntervalHours(next)) run(() => onIntervalHours(next));
6964
+ },
6965
+ children: UPDATE_CHECK_INTERVAL_HOURS.map((hours) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
6966
+ value: hours,
6967
+ children: t(hours < 24 ? "updateChecksEveryHours" : "updateChecksEveryDays").replace("{0}", String(hours < 24 ? hours : hours / 24))
6968
+ }, hours))
6969
+ })]
6970
+ }),
6971
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
6972
+ variant: "ghost",
6973
+ size: "sm",
6974
+ disabled: pending || snapshot.checking,
6975
+ onClick: () => {
6976
+ run(onCheck);
6977
+ },
6978
+ children: t("updateChecksNow")
6979
+ })
6980
+ ]
6981
+ }),
6982
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6983
+ className: Market_module_css_default.updateChecksHint,
6984
+ children: t(snapshot.intervalHours === null ? "updateChecksLegacyHint" : "updateChecksHint")
6985
+ }),
6986
+ (snapshot.stale || failed) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6987
+ role: "status",
6988
+ className: Market_module_css_default.updateChecksHint,
6989
+ children: t("updateChecksFailedHint")
6990
+ }),
6991
+ snapshot.lastSuccessAt !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6992
+ className: Market_module_css_default.updateChecksHint,
6993
+ children: t("updateChecksLastSuccess").replace("{0}", new Date(snapshot.lastSuccessAt).toLocaleString())
6994
+ }),
6995
+ entries.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
6996
+ className: Market_module_css_default.updateChecksList,
6997
+ children: entries.map(([name, status]) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6998
+ className: Market_module_css_default.updateChecksPackage,
6999
+ children: [
7000
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("b", { children: name }),
7001
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
7002
+ status.version ?? status.current ?? "—",
7003
+ " → ",
7004
+ status.eligibleVersion ?? status.latest
7005
+ ] }),
7006
+ status.kind === "generation" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("hostUpdateHint") })
7007
+ ]
7008
+ }), status.kind === "generation" ? onOpenHost !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
7009
+ variant: "ghost",
7010
+ size: "sm",
7011
+ onClick: () => onOpenHost(name),
7012
+ children: t("updateChecksOpenHost")
7013
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
7014
+ variant: "ghost",
7015
+ size: "sm",
7016
+ disabled: busy || snapshot.disabled.includes(name),
7017
+ onClick: () => onUpdate(name),
7018
+ children: t(status.restoreRequired ? "restoreOnline" : "update")
7019
+ })] }, name))
7020
+ })
7021
+ ]
7022
+ });
7023
+ }
7024
+ //#endregion
7025
+ //#region src/client/dismissed-host.ts
7026
+ /**
7027
+ * The host rows the user already cleared (#1184).
7028
+ *
7029
+ * Every finished row in the operations panel is a projection of the host's
7030
+ * own `/dsh-crate/status` answer, not a record this page owns: "clear
7031
+ * settled" and "dismiss" can only stop THIS page from drawing it. Before
7032
+ * #1184 that decision lived in a `useRef`, so the next mount — a reload, or
7033
+ * leaving the market and coming back — started with an empty set and the host
7034
+ * quietly put the same rows back on screen. The user had cleared them; the
7035
+ * page had simply forgotten.
7036
+ *
7037
+ * So the set is written down, next to the market's other page-local
7038
+ * bookkeeping (`dshm-drain-v1`, `dshm-settled-v1`). It is not market state:
7039
+ * nothing survives a profile reset here, and a different browser profile
7040
+ * clearing its own rows must not hide them in this one.
7041
+ *
7042
+ * The ids are the host's `operationId`s, which is also why the list can be
7043
+ * capped without losing anything current: an id is only ever asked about
7044
+ * while the host still reports that operation.
7045
+ */
7046
+ /** Where the cleared host rows are kept. */
7047
+ const DISMISSED_HOST_STORAGE_KEY = "dshm-dismissed-host-v1";
7048
+ /** Oldest first, newest last: the order that makes a cap drop the oldest. */
7049
+ function read() {
7050
+ try {
7051
+ const raw = window.localStorage.getItem(DISMISSED_HOST_STORAGE_KEY);
7052
+ if (raw === null) return [];
7053
+ const parsed = JSON.parse(raw);
7054
+ if (!Array.isArray(parsed)) return [];
7055
+ const out = [];
7056
+ for (const item of parsed) {
7057
+ if (typeof item !== "string" || item === "" || out.includes(item)) continue;
7058
+ out.push(item);
7059
+ }
7060
+ return out.slice(-100);
7061
+ } catch {
7062
+ return [];
7063
+ }
7064
+ }
7065
+ function write(ids) {
7066
+ try {
7067
+ window.localStorage.setItem(DISMISSED_HOST_STORAGE_KEY, JSON.stringify(ids.slice(-100)));
7068
+ } catch {}
7069
+ }
7070
+ let cache = null;
7071
+ /**
7072
+ * The ids to keep off screen, read once per page. The component holds this
7073
+ * set for the lifetime of the mount and asks it on every status poll, so the
7074
+ * parse happens once instead of once per render.
7075
+ */
7076
+ function dismissedHostIdSet() {
7077
+ cache ??= new Set(read());
7078
+ return cache;
7079
+ }
7080
+ /** The user cleared this host row: it must stay cleared across a reload. */
7081
+ function rememberDismissedHostId(id) {
7082
+ if (id === "") return;
7083
+ const ids = [...dismissedHostIdSet()];
7084
+ if (ids.includes(id)) return;
7085
+ ids.push(id);
7086
+ cache = new Set(ids.slice(-100));
7087
+ write([...cache]);
7088
+ }
7089
+ //#endregion
5966
7090
  //#region src/client/preset-panel.tsx
5967
7091
  /**
5968
7092
  * Diagnostics sub-panel — issue #98 phase 3 (plugin presets).
@@ -7804,7 +8928,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7804
8928
  /**
7805
8929
  * The Market settings section: Discover / Favorites / Themes / Installed tabs over the
7806
8930
  * /dsh-crate/* host routes, with install/update/uninstall flows and the
7807
- * pending-restart bookkeeping in sessionStorage.
8931
+ * pending-restart bookkeeping in window.sessionStorage.
7808
8932
  */
7809
8933
  function isHostDependencyFinding(value) {
7810
8934
  if (value === null || typeof value !== "object") return false;
@@ -7817,29 +8941,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7817
8941
  /** How long the page keeps asking for a market DSH unloaded, and how long one ask may take (#1151). */
7818
8942
  const RECONNECT_BUDGET_MS = 9e4;
7819
8943
  const RECONNECT_REQUEST_MS = 4e3;
8944
+ const UPDATE_CHECK_REQUEST_MS = 3e4;
7820
8945
  const IGNORED_UPDATES_SESSION_KEY = "dshm-updates-ignored";
7821
- const UNAVAILABLE_HOST_COMPATIBILITY = {
7822
- status: "unknown",
7823
- basis: "unavailable",
7824
- requirement: null,
7825
- declarations: []
7826
- };
7827
- /**
7828
- * Read the update reminders dismissed for this host process. The boot id is
7829
- * part of the value rather than the key so sessionStorage never accumulates
7830
- * one orphaned entry per process. Invalid and stale records fail open: an
7831
- * update reminder is safer than silently hiding one we cannot account for.
7832
- */
7833
- function ignoredUpdatesForBoot(boot) {
7834
- const saved = readSession(IGNORED_UPDATES_SESSION_KEY);
7835
- if (!(saved !== null && typeof saved === "object" && !Array.isArray(saved) && saved.boot === boot && Array.isArray(saved.names) && saved.names.every((name) => typeof name === "string" && name !== ""))) {
7836
- try {
7837
- sessionStorage.removeItem(IGNORED_UPDATES_SESSION_KEY);
7838
- } catch {}
7839
- return [];
7840
- }
7841
- return [...new Set(saved.names)];
7842
- }
7843
8946
  function HostDependencyDiagnostics({ findings, t }) {
7844
8947
  if (findings.length === 0) return null;
7845
8948
  const preview = findings.slice(0, HOST_DEPENDENCY_PREVIEW_LIMIT);
@@ -7924,6 +9027,16 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7924
9027
  if (phase === "linking") return t("phaseLinking");
7925
9028
  return t("phaseBuilding");
7926
9029
  }
9030
+ /** Reset before effects can use the new query with the previous page or limit. */
9031
+ function useResettableCount(initial, deps) {
9032
+ const [count, setCount] = (0, react.useState)(initial);
9033
+ const [previousDeps, setPreviousDeps] = (0, react.useState)(deps);
9034
+ if (deps.length !== previousDeps.length || deps.some((value, index) => !Object.is(value, previousDeps[index]))) {
9035
+ setPreviousDeps(deps);
9036
+ setCount(initial);
9037
+ }
9038
+ return [count, setCount];
9039
+ }
7927
9040
  /**
7928
9041
  * Page/page-size state shared by every paged list in this file (Discover,
7929
9042
  * Themes) — each caller owns its OWN instance (their filters are
@@ -7933,11 +9046,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7933
9046
  * the shared body on any page move) are one implementation, not two.
7934
9047
  */
7935
9048
  function usePagination(count, resetDeps, scrollToTop) {
7936
- const [page, setPage] = (0, react.useState)(1);
9049
+ const [page, setPage] = useResettableCount(1, resetDeps);
7937
9050
  const [pageSize, setPageSize] = (0, react.useState)(DEFAULT_PAGE_SIZE);
7938
- (0, react.useEffect)(() => {
7939
- setPage(1);
7940
- }, resetDeps);
7941
9051
  const totalPages = Math.max(1, Math.ceil(count / pageSize));
7942
9052
  const currentPage = Math.min(page, totalPages);
7943
9053
  const goToPage = (next) => {
@@ -7966,10 +9076,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7966
9076
  * starts over, the same moment `usePagination` returns to page 1.
7967
9077
  */
7968
9078
  function useShownCount(count, resetDeps, chunk) {
7969
- const [limit, setLimit] = (0, react.useState)(chunk);
7970
- (0, react.useEffect)(() => {
7971
- setLimit(chunk);
7972
- }, resetDeps);
9079
+ const [limit, setLimit] = useResettableCount(chunk, resetDeps);
7973
9080
  const shown = Math.min(count, limit);
7974
9081
  return {
7975
9082
  shown,
@@ -8086,11 +9193,61 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
8086
9193
  items
8087
9194
  });
8088
9195
  }
9196
+ /**
9197
+ * The installed list's own order (#1142).
9198
+ *
9199
+ * Deliberately NOT the market's `FilterMenu`: that one sorts by downloads,
9200
+ * stars or the catalog's collection date, and an installed package has none
9201
+ * of the three. Same primitive, four options, one value — the list's order
9202
+ * is a single choice, not a field plus a direction.
9203
+ */
9204
+ function InstalledSortMenu({ value, onChange, t }) {
9205
+ const [open, setOpen] = (0, react.useState)(false);
9206
+ const items = (0, react.useMemo)(() => [
9207
+ {
9208
+ type: "label",
9209
+ id: "is-label",
9210
+ text: t("installedSortLabel")
9211
+ },
9212
+ {
9213
+ id: "installed:default",
9214
+ label: t("installedSortDefault")
9215
+ },
9216
+ {
9217
+ id: "installed:name",
9218
+ label: t("installedSortName")
9219
+ },
9220
+ {
9221
+ id: "installed:newest",
9222
+ label: t("installedSortNewest")
9223
+ },
9224
+ {
9225
+ id: "installed:oldest",
9226
+ label: t("installedSortOldest")
9227
+ }
9228
+ ], [t]);
9229
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
9230
+ open,
9231
+ onClose: () => setOpen(false),
9232
+ selectedIds: ["installed:" + value],
9233
+ onSelect: (id) => onChange(id.slice(10)),
9234
+ align: "end",
9235
+ portal: true,
9236
+ anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
9237
+ variant: "outline",
9238
+ size: "sm",
9239
+ icon: open ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronUpOutline14, { size: 14 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronDownOutline14, { size: 14 }),
9240
+ onClick: () => setOpen((openNow) => !openNow),
9241
+ children: t("installedSort")
9242
+ }),
9243
+ items
9244
+ });
9245
+ }
8089
9246
  /** Keep an empty search actionable without changing the user's sort or block list. */
8090
- function EmptyResults({ blocked, onClear, t }) {
9247
+ function EmptyResults({ message, onClear, t }) {
8091
9248
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8092
9249
  className: Market_module_css_default.empty,
8093
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: t(blocked ? "blockedFilteredEmpty" : "empty") }), onClear && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
9250
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: t(message) }), onClear && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
8094
9251
  variant: "outline",
8095
9252
  size: "sm",
8096
9253
  className: Market_module_css_default.retryBtn,
@@ -8574,6 +9731,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
8574
9731
  measuredThemePreviewTasks.clear();
8575
9732
  measuredThemePreviewResults.clear();
8576
9733
  }
9734
+ const discoveryScan = new DiscoveryScan(() => {
9735
+ resetScreenshotsCache();
9736
+ resetThemePreviewCache();
9737
+ });
8577
9738
  /** README fetch + geometry probes, shared across search/page remounts. */
8578
9739
  function measuredThemePreview(plugin) {
8579
9740
  const cached = measuredThemePreviewTasks.get(plugin.url);
@@ -9002,8 +10163,18 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9002
10163
  * diagonal and the block rides in behind that wave. They share `--dshm-cycle`
9003
10164
  * so the block cannot arrive after the wave it is supposed to follow.
9004
10165
  */
9005
- function MarketLogo({ size = 16, style, animated = false, ambient = false }) {
9006
- const moving = animated || ambient;
10166
+ function MarketLogo({ size = 16, style, animated = false, ambient = false, inset = 0 }) {
10167
+ const sweeping = animated || ambient;
10168
+ const uid = (0, react.useId)().replace(/:/gu, "");
10169
+ const maskId = `dshm-crate-mask-${uid}`;
10170
+ const sweepId = `dshm-crate-sweep-${uid}`;
10171
+ const glyphTransform = inset > 0 ? `translate(8 8) scale(${(16 - inset * 2) / 15}) translate(-8 -8)` : void 0;
10172
+ const glyph = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
10173
+ x: MARK_FRAME.x,
10174
+ y: MARK_FRAME.y,
10175
+ width: MARK_FRAME.width,
10176
+ height: MARK_FRAME.height
10177
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: MARK_PATH_D })] });
9007
10178
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
9008
10179
  width: size,
9009
10180
  height: size,
@@ -9013,26 +10184,106 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9013
10184
  "aria-hidden": "true",
9014
10185
  style,
9015
10186
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("g", {
9016
- fill: "currentColor",
9017
- children: MARK_GRID_BLOCKS.map((block) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
9018
- className: moving ? Market_module_css_default.logoCell : void 0,
9019
- style: moving ? { "--dshm-wave": block.wave } : void 0,
9020
- x: block.x,
9021
- y: block.y,
9022
- width: MARK_BLOCK_SIZE,
9023
- height: MARK_BLOCK_SIZE,
9024
- rx: MARK_BLOCK_RADIUS
9025
- }, `${block.x},${block.y}`))
9026
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
9027
- className: animated ? Market_module_css_default.logoPlug : ambient ? Market_module_css_default.logoPlugAmbient : void 0,
9028
- x: MARK_PLUG_BLOCK.x,
9029
- y: MARK_PLUG_BLOCK.y,
9030
- width: MARK_BLOCK_SIZE,
9031
- height: MARK_BLOCK_SIZE,
9032
- rx: MARK_BLOCK_RADIUS,
9033
- fill: "currentColor",
9034
- transform: `rotate(${MARK_PLUG_BLOCK.degrees} ${MARK_PLUG_BLOCK.originX} ${MARK_PLUG_BLOCK.originY})`
9035
- })]
10187
+ fill: "none",
10188
+ stroke: "currentColor",
10189
+ strokeWidth: MARK_STROKE_WIDTH,
10190
+ strokeLinecap: "butt",
10191
+ strokeLinejoin: "miter",
10192
+ transform: glyphTransform,
10193
+ children: glyph
10194
+ }), sweeping && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("defs", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("mask", {
10195
+ id: maskId,
10196
+ maskUnits: "userSpaceOnUse",
10197
+ x: "0",
10198
+ y: "0",
10199
+ width: 16,
10200
+ height: 16,
10201
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("g", {
10202
+ fill: "none",
10203
+ stroke: "#fff",
10204
+ strokeWidth: 1.25,
10205
+ strokeLinecap: "butt",
10206
+ strokeLinejoin: "miter",
10207
+ transform: glyphTransform,
10208
+ children: glyph
10209
+ })
10210
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
10211
+ id: sweepId,
10212
+ x1: "0",
10213
+ y1: "0",
10214
+ x2: "1",
10215
+ y2: "0",
10216
+ children: [
10217
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10218
+ offset: "0",
10219
+ stopColor: "#fff",
10220
+ stopOpacity: "0"
10221
+ }),
10222
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10223
+ offset: "0.1",
10224
+ stopColor: "#fff",
10225
+ stopOpacity: "0.003"
10226
+ }),
10227
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10228
+ offset: "0.2",
10229
+ stopColor: "#fff",
10230
+ stopOpacity: "0.036"
10231
+ }),
10232
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10233
+ offset: "0.3",
10234
+ stopColor: "#fff",
10235
+ stopOpacity: "0.216"
10236
+ }),
10237
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10238
+ offset: "0.4",
10239
+ stopColor: "#fff",
10240
+ stopOpacity: "0.63"
10241
+ }),
10242
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10243
+ offset: "0.5",
10244
+ stopColor: "#fff",
10245
+ stopOpacity: "0.9"
10246
+ }),
10247
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10248
+ offset: "0.6",
10249
+ stopColor: "#fff",
10250
+ stopOpacity: "0.63"
10251
+ }),
10252
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10253
+ offset: "0.7",
10254
+ stopColor: "#fff",
10255
+ stopOpacity: "0.216"
10256
+ }),
10257
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10258
+ offset: "0.8",
10259
+ stopColor: "#fff",
10260
+ stopOpacity: "0.036"
10261
+ }),
10262
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10263
+ offset: "0.9",
10264
+ stopColor: "#fff",
10265
+ stopOpacity: "0.003"
10266
+ }),
10267
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
10268
+ offset: "1",
10269
+ stopColor: "#fff",
10270
+ stopOpacity: "0"
10271
+ })
10272
+ ]
10273
+ })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("g", {
10274
+ mask: `url(#${maskId})`,
10275
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("g", {
10276
+ className: Market_module_css_default.logoSweep,
10277
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
10278
+ x: "0",
10279
+ y: "-8",
10280
+ width: "11",
10281
+ height: "32",
10282
+ fill: `url(#${sweepId})`,
10283
+ transform: "rotate(25 8 8)"
10284
+ })
10285
+ })
10286
+ })] })]
9036
10287
  });
9037
10288
  }
9038
10289
  /**
@@ -9561,19 +10812,54 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9561
10812
  * the Installed tab's red dot / 「更新」buttons flash off then on, and the
9562
10813
  * two entries disagree until both refetches finish.
9563
10814
  */
9564
- let cachedRegistry = null;
9565
10815
  let cachedInstalled = null;
10816
+ let cachedLocalDescriptions = {};
9566
10817
  let cachedRepoIdentities = null;
9567
10818
  let cachedRepoHints = null;
9568
- let cachedHostCompatibility = {};
9569
- let cachedHostVersion = void 0;
9570
- /** Names with an in-flight discovery-compatibility request (module-wide). */
9571
- const hostCompatibilityInFlight = /* @__PURE__ */ new Set();
9572
- /** Subscribers for useSyncExternalStore — every mounted MarketSection. */
9573
- const hostCompatibilityListeners = /* @__PURE__ */ new Set();
9574
- let cachedUpdates = {};
9575
- /** False until /dsh-crate/updates has answered at least once this process. */
9576
- let cachedUpdatesReady = false;
10819
+ const emptyUpdateCheck = {
10820
+ updates: {},
10821
+ installed: {},
10822
+ ready: false,
10823
+ failed: /* @__PURE__ */ new Set()
10824
+ };
10825
+ let updateCheckSnapshot = emptyUpdateCheck;
10826
+ let updateCheckBoot = null;
10827
+ let updateCheckRequest = 0;
10828
+ let updateCheckCommitted = 0;
10829
+ let installedCheckCommitted = 0;
10830
+ const updateCheckListeners = /* @__PURE__ */ new Set();
10831
+ /** A manual check on either surface fences older background samples on both. */
10832
+ const pendingUpdateNotificationReads = /* @__PURE__ */ new Set();
10833
+ function getUpdateCheckSnapshot() {
10834
+ return updateCheckSnapshot;
10835
+ }
10836
+ function subscribeUpdateCheck(listener) {
10837
+ updateCheckListeners.add(listener);
10838
+ return () => {
10839
+ updateCheckListeners.delete(listener);
10840
+ };
10841
+ }
10842
+ function publishUpdateCheck(snapshot) {
10843
+ updateCheckSnapshot = snapshot;
10844
+ for (const listener of updateCheckListeners) listener();
10845
+ }
10846
+ function releaseUpdateNotificationRead(request) {
10847
+ if (pendingUpdateNotificationReads.delete(request)) publishUpdateCheck({ ...updateCheckSnapshot });
10848
+ }
10849
+ function resetUpdateCheck(boot) {
10850
+ pendingUpdateNotificationReads.clear();
10851
+ updateCheckBoot = boot;
10852
+ updateCheckCommitted = ++updateCheckRequest;
10853
+ installedCheckCommitted = updateCheckRequest;
10854
+ publishUpdateCheck(emptyUpdateCheck);
10855
+ }
10856
+ function observeUpdateCheckBoot(boot, previous) {
10857
+ if (previous !== updateCheckBoot) return false;
10858
+ if (updateCheckBoot === null) updateCheckBoot = boot;
10859
+ if (updateCheckBoot === boot) return false;
10860
+ resetUpdateCheck(boot);
10861
+ return true;
10862
+ }
9577
10863
  let cachedInstalledReady = false;
9578
10864
  let cachedSkins = [];
9579
10865
  let cachedDisabledNames = [];
@@ -9594,33 +10880,6 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9594
10880
  });
9595
10881
  };
9596
10882
  }
9597
- /** Any cached answer counts — including unavailable. Re-querying every
9598
- * remount used to re-POST thousands of names; a host-version change (below)
9599
- * is what drops the map for a fresh scan. */
9600
- function hostCompatibilitySettled(name) {
9601
- return cachedHostCompatibility[name] !== void 0;
9602
- }
9603
- function clearHostCompatibilityCache() {
9604
- cachedHostCompatibility = {};
9605
- hostCompatibilityInFlight.clear();
9606
- for (const listener of hostCompatibilityListeners) listener();
9607
- }
9608
- function subscribeHostCompatibility(onStoreChange) {
9609
- hostCompatibilityListeners.add(onStoreChange);
9610
- return () => {
9611
- hostCompatibilityListeners.delete(onStoreChange);
9612
- };
9613
- }
9614
- /** Merge into the module cache and notify every mounted MarketSection — a
9615
- * sidebar/settings switch used to drop in-flight setStates and leave the
9616
- * note frozen at 「正在检查 665/2455」. */
9617
- function commitHostCompatibility(accepted) {
9618
- cachedHostCompatibility = {
9619
- ...cachedHostCompatibility,
9620
- ...accepted
9621
- };
9622
- for (const listener of hostCompatibilityListeners) listener();
9623
- }
9624
10883
  /** Discover grid page-size choices — the catalog grows daily, so cap each page. */
9625
10884
  const PAGE_SIZES = [
9626
10885
  24,
@@ -9631,7 +10890,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9631
10890
  const WEBDAV_STORAGE_KEY = "dshm-webdav";
9632
10891
  function savedWebdav() {
9633
10892
  try {
9634
- const value = JSON.parse(localStorage.getItem(WEBDAV_STORAGE_KEY) ?? "{}");
10893
+ const value = JSON.parse(window.localStorage.getItem(WEBDAV_STORAGE_KEY) ?? "{}");
9635
10894
  return {
9636
10895
  url: typeof value.url === "string" ? value.url : "",
9637
10896
  username: typeof value.username === "string" ? value.username : "",
@@ -9679,10 +10938,59 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9679
10938
  for (const [name, spec] of Object.entries(value)) if (typeof spec === "string") installed[name] = spec;
9680
10939
  return installed;
9681
10940
  }
10941
+ /** Optional /installed metadata: older hosts omit it, malformed values are not text. */
10942
+ function localDescriptionsFromUnknown(value) {
10943
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return {};
10944
+ const descriptions = {};
10945
+ for (const [name, description] of Object.entries(value)) if (typeof description === "string" && description.trim() !== "") descriptions[name] = description.trim();
10946
+ return descriptions;
10947
+ }
9682
10948
  /** A `{name: {...}}` map, or anything else — for untyped server fields. */
9683
10949
  function isRecordOfRecords(value) {
9684
10950
  return value !== null && typeof value === "object" && !Array.isArray(value);
9685
10951
  }
10952
+ function isInstalledSnapshot(value) {
10953
+ return isRecordOfRecords(value) && Object.values(value).every((spec) => typeof spec === "string");
10954
+ }
10955
+ function isUpdateStatus(value) {
10956
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
10957
+ const status = value;
10958
+ return typeof status.updateAvailable === "boolean" && (status.checkFailed === void 0 || status.checkFailed === true) && (status.checkError === void 0 || status.checkError === "unavailable") && (status.kind === void 0 || typeof status.kind === "string") && (status.version === void 0 || status.version === null || typeof status.version === "string") && (status.latest === void 0 || status.latest === null || typeof status.latest === "string") && (status.current === void 0 || status.current === null || typeof status.current === "string");
10959
+ }
10960
+ function readUpdateStatuses(body) {
10961
+ const updates = body?.updates;
10962
+ if (!isRecordOfRecords(updates) || !Object.values(updates).every(isUpdateStatus)) throw new Error("Invalid update list");
10963
+ return updates;
10964
+ }
10965
+ function applyUpdateCheck(request, received, installed) {
10966
+ if (request < updateCheckCommitted) return;
10967
+ updateCheckCommitted = request;
10968
+ const previous = updateCheckSnapshot;
10969
+ const hasSameSpec = (name) => installed?.[name] !== void 0 && installed[name] === previous.installed[name];
10970
+ if (received === null) {
10971
+ const updates = installed === null ? previous.updates : Object.fromEntries(Object.entries(previous.updates).filter(([name]) => hasSameSpec(name)));
10972
+ publishUpdateCheck({
10973
+ ...previous,
10974
+ updates,
10975
+ installed: installed ?? previous.installed,
10976
+ failed: null
10977
+ });
10978
+ return;
10979
+ }
10980
+ const failed = /* @__PURE__ */ new Set();
10981
+ publishUpdateCheck({
10982
+ updates: Object.fromEntries(Object.entries(received).map(([name, status]) => {
10983
+ if (status.checkFailed !== true && status.checkError !== "unavailable") return [name, status];
10984
+ failed.add(name);
10985
+ const confirmed = previous.updates[name];
10986
+ if (hasSameSpec(name) && confirmed?.checkFailed !== true && confirmed?.checkError !== "unavailable" && typeof status.version === "string" && status.version === confirmed?.version && status.kind === confirmed.kind) return [name, confirmed];
10987
+ return [name, status];
10988
+ })),
10989
+ installed: installed ?? {},
10990
+ ready: installed !== null,
10991
+ failed
10992
+ });
10993
+ }
9686
10994
  function sameInstalledMap(left, right) {
9687
10995
  const names = Object.keys(left);
9688
10996
  return names.length === Object.keys(right).length && names.every((name) => left[name] === right[name]);
@@ -9839,21 +11147,6 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9839
11147
  return list.filter((record) => record.id === keepId || record.id !== `host-${operationId}` && record.hostOperationId !== operationId);
9840
11148
  }
9841
11149
  /**
9842
- * Whether the "compatible with this host" filter starts on, and remembers the
9843
- * answer once the user disagrees with the default (#872).
9844
- *
9845
- * Storage may be unavailable (private mode, a locked-down webview); the
9846
- * default is what matters, so a failure to read it is not a failure.
9847
- */
9848
- const HOST_FILTER_KEY = "dshm-host-filter";
9849
- function readHostFilterPreference() {
9850
- try {
9851
- return localStorage.getItem(HOST_FILTER_KEY) !== "all";
9852
- } catch {
9853
- return true;
9854
- }
9855
- }
9856
- /**
9857
11150
  * 最近收录 display preferences: collapsed / hidden (#940).
9858
11151
  *
9859
11152
  * The block only appears on the discover tab with an empty search and both
@@ -9862,7 +11155,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9862
11155
  * are display preferences, not profile settings: since 0.1.7 the settings
9863
11156
  * surface is deliberately just `allowRestart`.
9864
11157
  *
9865
- * Same read discipline as HOST_FILTER_KEY above: an unavailable store falls
11158
+ * When localStorage is unavailable, the preference falls
9866
11159
  * back to the default, and the default is "expanded and shown".
9867
11160
  */
9868
11161
  const RECENT_COLLAPSED_KEY = "dshm-recent-collapsed";
@@ -9872,28 +11165,28 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9872
11165
  const RECENT_STRIP_LIMIT = 8;
9873
11166
  function readRecentFlag(key) {
9874
11167
  try {
9875
- return localStorage.getItem(key) === "1";
11168
+ return window.localStorage.getItem(key) === "1";
9876
11169
  } catch {
9877
11170
  return false;
9878
11171
  }
9879
11172
  }
9880
11173
  function writeRecentFlag(key, next) {
9881
11174
  try {
9882
- localStorage.setItem(key, next ? "1" : "0");
11175
+ window.localStorage.setItem(key, next ? "1" : "0");
9883
11176
  } catch {}
9884
11177
  }
9885
11178
  /** "不再提示" on the settings-page sidebar tip. A missing store means show it. */
9886
11179
  const SIDEBAR_TIP_KEY = "dshm-sidebar-tip-dismissed";
9887
11180
  function readSidebarTipDismissed() {
9888
11181
  try {
9889
- return localStorage.getItem(SIDEBAR_TIP_KEY) === "1";
11182
+ return window.localStorage.getItem(SIDEBAR_TIP_KEY) === "1";
9890
11183
  } catch {
9891
11184
  return false;
9892
11185
  }
9893
11186
  }
9894
11187
  function writeSidebarTipDismissed() {
9895
11188
  try {
9896
- localStorage.setItem(SIDEBAR_TIP_KEY, "1");
11189
+ window.localStorage.setItem(SIDEBAR_TIP_KEY, "1");
9897
11190
  } catch {}
9898
11191
  }
9899
11192
  /**
@@ -10033,6 +11326,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10033
11326
  const lang = String(localeSnap.active).toLowerCase().startsWith("zh") ? "zh" : "en";
10034
11327
  const surface = props.surface ?? "settings";
10035
11328
  const sidebar = props.sidebar;
11329
+ const notificationSnapshot = useUpdateNotifications();
11330
+ const latestNotification = (0, react.useRef)(notificationSnapshot);
11331
+ latestNotification.current = notificationSnapshot;
10036
11332
  const hostNavigation = props.hostNavigation;
10037
11333
  const openInHost = (0, react.useSyncExternalStore)((cb) => hostNavigation?.subscribe(cb) ?? (() => {}), () => hostNavigation?.get());
10038
11334
  const [sidebarSnap, setSidebarSnap] = (0, react.useState)(() => ({
@@ -10067,7 +11363,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10067
11363
  });
10068
11364
  }, [sidebar]);
10069
11365
  const themeSnap = (0, react.useSyncExternalStore)(props.themeStore.subscribe, props.themeStore.getSnapshot);
10070
- const [data, setData] = (0, react.useState)(cachedRegistry);
11366
+ const compatibility = (0, react.useSyncExternalStore)(discoveryScan.subscribe, discoveryScan.getSnapshot);
11367
+ const { catalog: data, enabled: compatibleWithHost, hostVersion, verdicts: hostCompatibility } = compatibility;
10071
11368
  const [loadError, setLoadError] = (0, react.useState)(null);
10072
11369
  /**
10073
11370
  * The host answered 404 on one of the market's own routes (#962).
@@ -10082,10 +11379,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10082
11379
  const [reconnecting, setReconnecting] = (0, react.useState)(true);
10083
11380
  const [reconnectRound, setReconnectRound] = (0, react.useState)(0);
10084
11381
  const [installed, setInstalledState] = (0, react.useState)(cachedInstalled ?? {});
10085
- const setInstalled = (0, react.useCallback)((value) => {
10086
- cachedInstalled = value;
10087
- setInstalledState(value);
10088
- }, []);
11382
+ const [localDescriptions, setLocalDescriptionsState] = (0, react.useState)(() => cachedLocalDescriptions);
11383
+ const setLocalDescriptions = (0, react.useCallback)(cacheState((value) => {
11384
+ cachedLocalDescriptions = value;
11385
+ }, setLocalDescriptionsState), []);
10089
11386
  const [repoIdentities, setRepoIdentitiesState] = (0, react.useState)(cachedRepoIdentities ?? {});
10090
11387
  const setRepoIdentities = (0, react.useCallback)((value) => {
10091
11388
  cachedRepoIdentities = value;
@@ -10105,8 +11402,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10105
11402
  cachedSkins = value;
10106
11403
  }, setSkinsState), []);
10107
11404
  const [tab, setTab] = (0, react.useState)(() => {
10108
- const saved = sessionStorage.getItem("dshm-tab");
10109
- if (saved !== null) sessionStorage.removeItem("dshm-tab");
11405
+ const saved = window.sessionStorage.getItem("dshm-tab");
11406
+ if (saved !== null) window.sessionStorage.removeItem("dshm-tab");
10110
11407
  return saved || "discover";
10111
11408
  });
10112
11409
  const [q, setQ] = (0, react.useState)("");
@@ -10156,20 +11453,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10156
11453
  * Persisted in localStorage so a refresh keeps the queue; only `queued`
10157
11454
  * records persist — `running` recovery stays on the dshm-pending paths.
10158
11455
  */
10159
- const [updates, setUpdatesState] = (0, react.useState)(() => cachedUpdates);
10160
- const setUpdates = (0, react.useCallback)(cacheState((value) => {
10161
- cachedUpdates = value;
10162
- }, setUpdatesState), []);
11456
+ const updateCheck = (0, react.useSyncExternalStore)(subscribeUpdateCheck, getUpdateCheckSnapshot);
11457
+ const { updates } = updateCheck;
10163
11458
  const queueRestoredRef = (0, react.useRef)(false);
10164
- const [queueSnapshotReady, setQueueSnapshotReady] = (0, react.useState)({
10165
- installed: cachedInstalledReady,
10166
- updates: cachedUpdatesReady
10167
- });
11459
+ const [installedReady, setInstalledReady] = (0, react.useState)(cachedInstalledReady);
10168
11460
  (0, react.useEffect)(() => {
10169
11461
  if (queueRestoredRef.current) return;
10170
11462
  let saved = null;
10171
11463
  try {
10172
- saved = JSON.parse(localStorage.getItem("dshm-queue-v1") ?? "null");
11464
+ saved = JSON.parse(window.localStorage.getItem("dshm-queue-v1") ?? "null");
10173
11465
  } catch {
10174
11466
  saved = null;
10175
11467
  }
@@ -10178,11 +11470,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10178
11470
  return;
10179
11471
  }
10180
11472
  if (data === null) return;
10181
- if (saved.some((row) => row?.kind === "update" || row?.kind === "uninstall") && !queueSnapshotReady.installed) return;
10182
- if (saved.some((row) => row?.kind === "update") && !queueSnapshotReady.updates) return;
11473
+ if (saved.some((row) => row?.kind === "update" || row?.kind === "uninstall") && !installedReady) return;
11474
+ if (saved.some((row) => row?.kind === "update" && (!updateCheck.ready || updateCheck.failed === null || updateCheck.failed.has(row.name)))) return;
10183
11475
  queueRestoredRef.current = true;
10184
11476
  try {
10185
- localStorage.removeItem("dshm-queue-v1");
11477
+ window.localStorage.removeItem("dshm-queue-v1");
10186
11478
  } catch {}
10187
11479
  /**
10188
11480
  * A queued row may only run while the world it was queued in still holds.
@@ -10278,8 +11570,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10278
11570
  data,
10279
11571
  t,
10280
11572
  lang,
10281
- queueSnapshotReady,
11573
+ installedReady,
10282
11574
  installed,
11575
+ updateCheck,
10283
11576
  updates
10284
11577
  ]);
10285
11578
  (0, react.useEffect)(() => {
@@ -10291,8 +11584,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10291
11584
  ...record.url === void 0 ? {} : { url: record.url },
10292
11585
  ...record.updateOptions === void 0 ? {} : { updateOptions: record.updateOptions }
10293
11586
  }));
10294
- if (queued.length === 0) localStorage.removeItem("dshm-queue-v1");
10295
- else localStorage.setItem("dshm-queue-v1", JSON.stringify(queued));
11587
+ if (queued.length === 0) window.localStorage.removeItem("dshm-queue-v1");
11588
+ else window.localStorage.setItem("dshm-queue-v1", JSON.stringify(queued));
10296
11589
  } catch {}
10297
11590
  }, [records]);
10298
11591
  /**
@@ -10317,7 +11610,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10317
11610
  settledRestoredRef.current = true;
10318
11611
  let saved = null;
10319
11612
  try {
10320
- saved = localStorage.getItem(SETTLED_STORAGE_KEY);
11613
+ saved = window.localStorage.getItem(SETTLED_STORAGE_KEY);
10321
11614
  } catch {
10322
11615
  saved = null;
10323
11616
  }
@@ -10342,8 +11635,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10342
11635
  }
10343
11636
  try {
10344
11637
  const settled = serializeSettled(records);
10345
- if (settled.length === 0) localStorage.removeItem(SETTLED_STORAGE_KEY);
10346
- else localStorage.setItem(SETTLED_STORAGE_KEY, JSON.stringify(settled));
11638
+ if (settled.length === 0) window.localStorage.removeItem(SETTLED_STORAGE_KEY);
11639
+ else window.localStorage.setItem(SETTLED_STORAGE_KEY, JSON.stringify(settled));
10347
11640
  } catch {}
10348
11641
  }, [records]);
10349
11642
  /** Raised by the card marker, so "查看详情" lands on the record itself. */
@@ -10439,6 +11732,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10439
11732
  * shows these plugins and their update actions; only proactive prompts use
10440
11733
  * this set. */
10441
11734
  const [ignoredUpdateNames, setIgnoredUpdateNames] = (0, react.useState)([]);
11735
+ (0, react.useEffect)(() => {
11736
+ notifyUpdatePreferencesChanged();
11737
+ }, [ignoredUpdateNames]);
10442
11738
  const [updatingName, setUpdatingName] = (0, react.useState)(null);
10443
11739
  /** Update-notes dialog (#294): which row opened it, and what it resolved to. */
10444
11740
  const [notesFor, setNotesFor] = (0, react.useState)(null);
@@ -10527,6 +11823,21 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10527
11823
  }, setDisabledNamesState), []);
10528
11824
  /** The user's own note per plugin (#347): package name → text. */
10529
11825
  const [notes, setNotes] = (0, react.useState)({});
11826
+ /**
11827
+ * When this market installed/updated each package (#1142). Only packages
11828
+ * the market itself installed have an entry: the CLI and the host's own
11829
+ * plugins page leave nothing on disk that says when, and the row shows
11830
+ * `—` rather than guessing from a directory mtime pnpm rewrites.
11831
+ */
11832
+ const [installTimes, setInstallTimes] = (0, react.useState)({});
11833
+ /**
11834
+ * How the installed list is ordered (#1142). Its own value, NOT the
11835
+ * market's `SortField`: that one is downloads/stars/added, and none of the
11836
+ * three exist for an installed package — `added` is the catalog's
11837
+ * collection date, which is a different question from when the user
11838
+ * installed it.
11839
+ */
11840
+ const [installedSort, setInstalledSort] = (0, react.useState)("default");
10530
11841
  /** Catalog URLs bookmarked for later install (#414). */
10531
11842
  const [favoriteUrls, setFavoriteUrlsState] = (0, react.useState)(() => cachedFavoriteUrls);
10532
11843
  const setFavoriteUrls = (0, react.useCallback)(cacheState((value) => {
@@ -10538,6 +11849,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10538
11849
  cachedBlockedNames = value;
10539
11850
  }, setBlockedNamesState), []);
10540
11851
  const [updateExemptNames, setUpdateExemptNames] = (0, react.useState)([]);
11852
+ (0, react.useEffect)(() => {
11853
+ refreshUpdateNotificationsAfterChange();
11854
+ }, [
11855
+ updateExemptNames,
11856
+ disabledNames,
11857
+ blockedNames
11858
+ ]);
10541
11859
  /** Rows the user asked to show the AUTHOR's description on, despite a note. */
10542
11860
  const [showTheirs, setShowTheirs] = (0, react.useState)([]);
10543
11861
  /** The row whose note is being edited, and the text in the box. */
@@ -10597,7 +11915,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10597
11915
  * "npm latest" beside a number that is not npm's latest is a bug report
10598
11916
  * waiting to be filed. Null until the catalog answers.
10599
11917
  */
10600
- const [catalogUpdated, setCatalogUpdated] = (0, react.useState)(null);
11918
+ const catalogUpdated = data?.updated?.trim() || null;
10601
11919
  const catalogVersionTip = (0, react.useMemo)(() => catalogUpdated === null ? t("catalogVersionUndated") : t("catalogVersionDated").replace("{0}", catalogUpdated), [catalogUpdated, t]);
10602
11920
  /** Non-live activation results from the last operation, shown as a banner. */
10603
11921
  const [activationWarnings, setActivationWarnings] = (0, react.useState)([]);
@@ -10695,7 +12013,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10695
12013
  /** Gist id — persisted across reloads (non-sensitive: the Gist itself is private). */
10696
12014
  const [gistId, setGistId] = (0, react.useState)(() => {
10697
12015
  try {
10698
- return localStorage.getItem("dshm-gist-id") ?? "";
12016
+ return window.localStorage.getItem("dshm-gist-id") ?? "";
10699
12017
  } catch {
10700
12018
  return "";
10701
12019
  }
@@ -10703,7 +12021,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10703
12021
  /** Export mode: 'update' PATCHes the Gist in the field, 'create' makes a new one. */
10704
12022
  const [gistMode, setGistMode] = (0, react.useState)(() => {
10705
12023
  try {
10706
- return localStorage.getItem("dshm-gist-id") ? "update" : "create";
12024
+ return window.localStorage.getItem("dshm-gist-id") ? "update" : "create";
10707
12025
  } catch {
10708
12026
  return "create";
10709
12027
  }
@@ -10735,26 +12053,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10735
12053
  const [sortField, setSortField] = (0, react.useState)("downloads");
10736
12054
  const [sortDir, setSortDir] = (0, react.useState)("desc");
10737
12055
  const [timeRange, setTimeRange] = (0, react.useState)("all");
10738
- /** Undefined while the first catalog response is pending; null means the host cannot be located. */
10739
- const [hostVersion, setHostVersionState] = (0, react.useState)(() => cachedHostVersion);
10740
- const setHostVersion = (0, react.useCallback)((value) => {
10741
- if (typeof cachedHostVersion === "string" && typeof value === "string" && value !== cachedHostVersion) clearHostCompatibilityCache();
10742
- cachedHostVersion = value;
10743
- setHostVersionState(value);
10744
- }, []);
10745
- /** v1 is deliberately opt-in: undeclared/unknown entries stay visible even when enabled. */
10746
- const [compatibleWithHost, setCompatibleWithHostState] = (0, react.useState)(readHostFilterPreference);
10747
12056
  const setCompatibleWithHost = (0, react.useCallback)((next) => {
10748
- setCompatibleWithHostState(next);
10749
- try {
10750
- localStorage.setItem(HOST_FILTER_KEY, next ? "compatible" : "all");
10751
- } catch {}
12057
+ discoveryScan.setEnabled(next);
10752
12058
  }, []);
10753
12059
  /** The profile this page is running in, for the manual command's own
10754
12060
  * `--profile` token (#872). The catalog's is always `web`. */
10755
12061
  const [profileName, setProfileName] = (0, react.useState)(null);
10756
- const hostCompatibility = (0, react.useSyncExternalStore)(subscribeHostCompatibility, () => cachedHostCompatibility, () => cachedHostCompatibility);
10757
- const [hostCompatibilityPending, setHostCompatibilityPending] = (0, react.useState)(0);
12062
+ const compatibilityDemandOwner = (0, react.useRef)({});
10758
12063
  const [catsOpen, setCatsOpen] = (0, react.useState)(false);
10759
12064
  /** Themes tab: independent from Discover's sort/time state above — a
10760
12065
  * search or sort choice in one tab has no business resetting the other. */
@@ -10804,18 +12109,81 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10804
12109
  });
10805
12110
  /** True while the drain is executing one queued request (no parallel starts). */
10806
12111
  const drainingRef = (0, react.useRef)(false);
10807
- const refreshInstalled = (0, react.useCallback)((force) => {
10808
- fetch(api("/dsh-crate/installed"), { cache: "no-store" }).then((res) => res.json()).then((body) => {
10809
- setInstalled(body.installed || {});
12112
+ const mounted = (0, react.useRef)(false);
12113
+ const refreshRequest = (0, react.useRef)(0);
12114
+ const refreshInFlight = (0, react.useRef)(false);
12115
+ const bridgedNotification = (0, react.useRef)(null);
12116
+ const notificationReads = (0, react.useRef)(/* @__PURE__ */ new Set());
12117
+ const [checkingUpdates, setCheckingUpdates] = (0, react.useState)(false);
12118
+ (0, react.useEffect)(() => {
12119
+ mounted.current = true;
12120
+ return () => {
12121
+ mounted.current = false;
12122
+ refreshRequest.current = 0;
12123
+ refreshInFlight.current = false;
12124
+ for (const request of notificationReads.current) releaseUpdateNotificationRead(request);
12125
+ notificationReads.current.clear();
12126
+ };
12127
+ }, []);
12128
+ const refreshInstalled = (0, react.useCallback)((force, notification) => {
12129
+ if (!mounted.current) return;
12130
+ const request = ++updateCheckRequest;
12131
+ const boot = updateCheckBoot;
12132
+ refreshRequest.current = request;
12133
+ refreshInFlight.current = true;
12134
+ if (notification === void 0) {
12135
+ bridgedNotification.current = latestNotification.current;
12136
+ notificationReads.current.add(request);
12137
+ pendingUpdateNotificationReads.add(request);
12138
+ }
12139
+ const ownsRefresh = () => mounted.current && refreshRequest.current === request;
12140
+ const isCurrent = () => ownsRefresh() && (boot === null || boot === updateCheckBoot) && (notification === void 0 || updateCheckBoot === null || notification.boot === updateCheckBoot);
12141
+ setCheckingUpdates(true);
12142
+ const requestOptions = {
12143
+ cache: "no-store",
12144
+ signal: AbortSignal.timeout(UPDATE_CHECK_REQUEST_MS)
12145
+ };
12146
+ const installRead = fetch(api("/dsh-crate/installed"), requestOptions).then((res) => {
12147
+ if (!res.ok) throw new Error(`HTTP ${String(res.status)}`);
12148
+ return res.json();
12149
+ }).then((body) => {
12150
+ if (!isCurrent() || !isInstalledSnapshot(body?.installed)) return null;
12151
+ const installed = body.installed;
12152
+ if (request >= installedCheckCommitted) {
12153
+ cachedInstalled = installed;
12154
+ installedCheckCommitted = request;
12155
+ }
12156
+ setInstalledState(installed);
12157
+ if (notification !== void 0) {
12158
+ cachedInstalledReady = true;
12159
+ setInstalledReady(true);
12160
+ return installed;
12161
+ }
12162
+ setLocalDescriptions(localDescriptionsFromUnknown(body.descriptions));
10810
12163
  setRepoIdentities(installedRepoIdentities(body.repoIdentities));
10811
12164
  setRepoHints(installedRepoHints(body.repoHints));
10812
- setInstalledFiles(Array.isArray(body.present) ? body.present : Object.keys(body.installed || {}));
12165
+ setInstalledFiles(Array.isArray(body.present) ? body.present : Object.keys(installed));
10813
12166
  setSkins(body.live || []);
10814
12167
  if (Array.isArray(body.disabled)) {
10815
12168
  setDisabledNames(body.disabled);
10816
12169
  if (loadedDisabled.current === null) loadedDisabled.current = new Set(body.disabled);
10817
12170
  }
10818
12171
  if (body.notes !== null && typeof body.notes === "object" && !Array.isArray(body.notes)) setNotes(body.notes);
12172
+ if (body.installTimes !== null && typeof body.installTimes === "object" && !Array.isArray(body.installTimes)) {
12173
+ const stamps = {};
12174
+ for (const [name, raw] of Object.entries(body.installTimes)) {
12175
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) continue;
12176
+ const record = raw;
12177
+ const installedAt = typeof record.installedAt === "string" ? record.installedAt : void 0;
12178
+ const updatedAt = typeof record.updatedAt === "string" ? record.updatedAt : void 0;
12179
+ if (installedAt === void 0 && updatedAt === void 0) continue;
12180
+ stamps[name] = {
12181
+ ...installedAt === void 0 ? {} : { installedAt },
12182
+ ...updatedAt === void 0 ? {} : { updatedAt }
12183
+ };
12184
+ }
12185
+ setInstallTimes(stamps);
12186
+ }
10819
12187
  if (Array.isArray(body.patchDisabled)) setPatchDisabledNames(body.patchDisabled);
10820
12188
  if (typeof body.profile === "string") setProfileName(body.profile);
10821
12189
  if (Array.isArray(body.unbundled)) setUnbundledNames(body.unbundled);
@@ -10832,19 +12200,49 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10832
12200
  installedReadGen.current += 1;
10833
12201
  setHostDependencyFindings(findings);
10834
12202
  cachedInstalledReady = true;
10835
- setQueueSnapshotReady((ready) => ({
10836
- ...ready,
10837
- installed: true
10838
- }));
10839
- }).catch(() => {});
10840
- fetch(api("/dsh-crate/updates") + (force === true ? "?force=1" : ""), { cache: "no-store" }).then((res) => res.json()).then((body) => {
10841
- setUpdates(body.updates || {});
10842
- cachedUpdatesReady = true;
10843
- setQueueSnapshotReady((ready) => ({
10844
- ...ready,
10845
- updates: true
10846
- }));
10847
- }).catch(() => {});
12203
+ setInstalledReady(true);
12204
+ return installed;
12205
+ }).catch(() => null);
12206
+ const updateRead = notification !== void 0 ? Promise.resolve(notification.updates) : fetch(api("/dsh-crate/updates") + (force === true ? "?force=1" : ""), requestOptions).then((res) => {
12207
+ if (!res.ok) throw new Error(`HTTP ${String(res.status)}`);
12208
+ return res.json();
12209
+ }).then(readUpdateStatuses).catch(() => {
12210
+ if (isCurrent()) applyUpdateCheck(request, null, null);
12211
+ if (ownsRefresh()) {
12212
+ refreshInFlight.current = false;
12213
+ setCheckingUpdates(false);
12214
+ }
12215
+ return null;
12216
+ });
12217
+ Promise.all([updateRead, installRead]).then(([received, installed]) => {
12218
+ if (isCurrent()) {
12219
+ if (notification?.checkedAt === null && request >= updateCheckCommitted) {
12220
+ updateCheckCommitted = request;
12221
+ publishUpdateCheck({
12222
+ ...emptyUpdateCheck,
12223
+ installed: installed ?? {}
12224
+ });
12225
+ } else {
12226
+ applyUpdateCheck(request, received, installed);
12227
+ if (notification?.error != null && request === updateCheckCommitted && updateCheckSnapshot.failed?.size === 0) publishUpdateCheck({
12228
+ ...updateCheckSnapshot,
12229
+ failed: null
12230
+ });
12231
+ }
12232
+ }
12233
+ if (notification === void 0) {
12234
+ const release = () => {
12235
+ notificationReads.current.delete(request);
12236
+ releaseUpdateNotificationRead(request);
12237
+ };
12238
+ if (ownsRefresh()) refreshUpdateNotificationsAfterChange().finally(release);
12239
+ else release();
12240
+ }
12241
+ if (ownsRefresh()) {
12242
+ refreshInFlight.current = false;
12243
+ setCheckingUpdates(false);
12244
+ }
12245
+ });
10848
12246
  }, [
10849
12247
  setActivations,
10850
12248
  setBlockedNames,
@@ -10852,8 +12250,20 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10852
12250
  setFavoriteUrls,
10853
12251
  setInstalledBundles,
10854
12252
  setInstalledFiles,
10855
- setSkins,
10856
- setUpdates
12253
+ setLocalDescriptions,
12254
+ setSkins
12255
+ ]);
12256
+ (0, react.useEffect)(() => {
12257
+ if (!notificationSnapshot.loaded || notificationSnapshot.readFailed || notificationSnapshot.checking || refreshInFlight.current || pendingUpdateNotificationReads.size > 0 || updateCheckBoot !== null && notificationSnapshot.boot !== updateCheckBoot) return;
12258
+ const previous = bridgedNotification.current;
12259
+ if (previous?.updates === notificationSnapshot.updates && previous.checkedAt === notificationSnapshot.checkedAt && previous.error === notificationSnapshot.error && previous.boot === notificationSnapshot.boot) return;
12260
+ bridgedNotification.current = notificationSnapshot;
12261
+ refreshInstalled(void 0, notificationSnapshot);
12262
+ }, [
12263
+ notificationSnapshot,
12264
+ checkingUpdates,
12265
+ updateCheck,
12266
+ refreshInstalled
10857
12267
  ]);
10858
12268
  /**
10859
12269
  * Host-owned deferred operations (#411).
@@ -10866,23 +12276,29 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10866
12276
  */
10867
12277
  const settledHostRef = (0, react.useRef)(/* @__PURE__ */ new Set());
10868
12278
  const knownHostIdsRef = (0, react.useRef)(/* @__PURE__ */ new Set());
10869
- /** Host operations the user cleared; a status poll must not add them back. */
10870
- const dismissedHostRef = (0, react.useRef)(/* @__PURE__ */ new Set());
12279
+ /**
12280
+ * Host operations the user cleared; a status poll must not add them back —
12281
+ * and neither must a reload. The set is read from storage and written back
12282
+ * per id, because these rows belong to the host: clearing one only ever
12283
+ * hides it here, so a set that lived only in memory brought the row back on
12284
+ * the next mount (#1184).
12285
+ */
12286
+ const dismissedHostRef = (0, react.useRef)(dismissedHostIdSet());
10871
12287
  const drainMarkerRestoredRef = (0, react.useRef)(false);
10872
12288
  const clearDrainMarker = (0, react.useCallback)((operationId) => {
10873
12289
  try {
10874
- const raw = localStorage.getItem("dshm-drain-v1");
12290
+ const raw = window.localStorage.getItem("dshm-drain-v1");
10875
12291
  if (raw === null) return;
10876
12292
  const parsed = JSON.parse(raw);
10877
12293
  if (!Array.isArray(parsed)) return;
10878
12294
  const kept = parsed.filter((entry) => entry?.id !== operationId);
10879
- if (kept.length === 0) localStorage.removeItem("dshm-drain-v1");
10880
- else localStorage.setItem("dshm-drain-v1", JSON.stringify(kept));
12295
+ if (kept.length === 0) window.localStorage.removeItem("dshm-drain-v1");
12296
+ else window.localStorage.setItem("dshm-drain-v1", JSON.stringify(kept));
10881
12297
  } catch {}
10882
12298
  }, []);
10883
12299
  const rememberDrainMarker = (0, react.useCallback)((operation) => {
10884
12300
  try {
10885
- const raw = localStorage.getItem("dshm-drain-v1");
12301
+ const raw = window.localStorage.getItem("dshm-drain-v1");
10886
12302
  const parsed = raw === null ? [] : JSON.parse(raw);
10887
12303
  const list = Array.isArray(parsed) ? parsed : [];
10888
12304
  if (list.some((entry) => entry?.id === operation.operationId)) return;
@@ -10892,7 +12308,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10892
12308
  name: operation.name,
10893
12309
  ...operation.url === void 0 ? {} : { url: operation.url }
10894
12310
  });
10895
- localStorage.setItem("dshm-drain-v1", JSON.stringify(list));
12311
+ window.localStorage.setItem("dshm-drain-v1", JSON.stringify(list));
10896
12312
  } catch {}
10897
12313
  }, []);
10898
12314
  /** Mark operations this page started in an earlier boot as cancelled by restart. */
@@ -10903,7 +12319,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10903
12319
  drainMarkerRestoredRef.current = true;
10904
12320
  let saved = null;
10905
12321
  try {
10906
- saved = JSON.parse(localStorage.getItem("dshm-drain-v1") ?? "null");
12322
+ saved = JSON.parse(window.localStorage.getItem("dshm-drain-v1") ?? "null");
10907
12323
  } catch {
10908
12324
  saved = null;
10909
12325
  }
@@ -10936,8 +12352,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10936
12352
  setOperationsOpen(true);
10937
12353
  }
10938
12354
  try {
10939
- if (current.length > 0) localStorage.setItem("dshm-drain-v1", JSON.stringify(current));
10940
- else localStorage.removeItem("dshm-drain-v1");
12355
+ if (current.length > 0) window.localStorage.setItem("dshm-drain-v1", JSON.stringify(current));
12356
+ else window.localStorage.removeItem("dshm-drain-v1");
10941
12357
  } catch {}
10942
12358
  }, [t]);
10943
12359
  /** Project Host-owned operations into the Tasks panel. */
@@ -11109,6 +12525,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11109
12525
  * with the user left to guess whether the plugin landed.
11110
12526
  */
11111
12527
  const noteMarketGone = (0, react.useCallback)(() => {
12528
+ discoveryScan.setUnavailable();
12529
+ refreshRequest.current = 0;
12530
+ setCheckingUpdates(false);
11112
12531
  setMarketGone(true);
11113
12532
  setBusyUrl(null);
11114
12533
  setUpdatingName(null);
@@ -11119,10 +12538,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11119
12538
  reason: t("marketGoneRecord")
11120
12539
  } : record));
11121
12540
  try {
11122
- sessionStorage.removeItem("dshm-pending");
11123
- sessionStorage.removeItem("dshm-updating");
12541
+ window.sessionStorage.removeItem("dshm-pending");
12542
+ window.sessionStorage.removeItem("dshm-updating");
11124
12543
  } catch {}
11125
12544
  }, [t]);
12545
+ (0, react.useEffect)(() => {
12546
+ if (compatibility.gone) noteMarketGone();
12547
+ }, [compatibility.gone, noteMarketGone]);
11126
12548
  /**
11127
12549
  * The status payload, or `null` when the route answered 404 (#962). Every
11128
12550
  * poll that reads this stops on the null: the market is no longer mounted,
@@ -11137,25 +12559,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11137
12559
  }, [noteMarketGone]);
11138
12560
  const loadCatalog = (0, react.useCallback)(() => {
11139
12561
  setLoadError(null);
11140
- return fetch(api("/dsh-crate/registry"), { cache: "no-store" }).then(async (res) => {
11141
- const body = await res.json().catch(() => ({}));
11142
- if (res.status === 404) {
12562
+ return discoveryScan.resume().then((outcome) => {
12563
+ if (outcome === "gone") {
11143
12564
  noteMarketGone();
11144
12565
  throw new Error(t("marketGoneTitle"));
11145
12566
  }
11146
- if (!res.ok) throw new Error(typeof body.error === "string" ? body.error : `HTTP ${String(res.status)}`);
11147
- return body;
11148
- }).then((body) => {
11149
- if (body.registry === void 0) throw new Error("the catalog response carried no data");
11150
- if (body.registry.updated !== cachedRegistry?.updated) {
11151
- resetScreenshotsCache();
11152
- resetThemePreviewCache();
11153
- }
11154
- cachedRegistry = body.registry;
11155
- setData(body.registry);
11156
- const catalogDate = body.registry.updated;
11157
- setCatalogUpdated(typeof catalogDate === "string" && catalogDate.trim() !== "" ? catalogDate : null);
11158
- setHostVersion(typeof body.hostVersion === "string" ? body.hostVersion : null);
11159
12567
  setLoadError(null);
11160
12568
  }).catch((error) => {
11161
12569
  setLoadError(error instanceof Error ? error.message : String(error));
@@ -11180,6 +12588,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11180
12588
  let inFlight;
11181
12589
  let stopped = false;
11182
12590
  const attempt = async () => {
12591
+ const boot = updateCheckBoot;
11183
12592
  inFlight = new AbortController();
11184
12593
  const cutoff = setTimeout(() => inFlight?.abort(), RECONNECT_REQUEST_MS);
11185
12594
  try {
@@ -11189,6 +12598,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11189
12598
  });
11190
12599
  const status = res.ok ? await res.json() : null;
11191
12600
  if (!stopped && status !== null && typeof status === "object" && typeof status.boot === "string") {
12601
+ discoveryScan.setBoot(status.boot);
12602
+ observeUpdateCheckBoot(status.boot, boot);
11192
12603
  setMarketGone(false);
11193
12604
  loadCatalog();
11194
12605
  refreshInstalled();
@@ -11215,62 +12626,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11215
12626
  clearTimeout(timer);
11216
12627
  inFlight?.abort();
11217
12628
  };
11218
- }, [
11219
- marketGone,
11220
- reconnectRound,
11221
- loadCatalog,
11222
- refreshInstalled
11223
- ]);
11224
- const loadHostCompatibility = (0, react.useCallback)(async (names) => {
11225
- const unique = [...new Set(names)].filter((name) => {
11226
- if (name === "" || hostCompatibilitySettled(name) || hostCompatibilityInFlight.has(name)) return false;
11227
- hostCompatibilityInFlight.add(name);
11228
- return true;
11229
- });
11230
- if (unique.length === 0) return;
11231
- setHostCompatibilityPending((count) => count + unique.length);
11232
- for (let offset = 0; offset < unique.length; offset += 64) {
11233
- const chunk = unique.slice(offset, offset + 64);
11234
- try {
11235
- const response = await fetch(api("/dsh-crate/discovery-compatibility"), {
11236
- method: "POST",
11237
- headers: { "content-type": "application/json" },
11238
- body: JSON.stringify({
11239
- packages: chunk.filter((key) => !key.startsWith("https://")),
11240
- ...chunk.some((key) => key.startsWith("https://")) ? { entries: chunk.filter((key) => key.startsWith("https://")) } : {}
11241
- })
11242
- });
11243
- const body = await response.json();
11244
- if (!response.ok || body.plugins === null || typeof body.plugins !== "object") throw new Error(`HTTP ${String(response.status)}`);
11245
- if (typeof body.hostVersion === "string" || body.hostVersion === null) setHostVersion(body.hostVersion);
11246
- const accepted = {};
11247
- for (const name of chunk) {
11248
- const item = body.plugins[name];
11249
- if (item === null || item === void 0 || ![
11250
- "compatible",
11251
- "incompatible",
11252
- "unknown"
11253
- ].includes(item.status) || ![
11254
- "manifest",
11255
- "undeclared",
11256
- "unavailable"
11257
- ].includes(item.basis) || item.requirement !== null && typeof item.requirement !== "string" || !Array.isArray(item.declarations)) {
11258
- accepted[name] = UNAVAILABLE_HOST_COMPATIBILITY;
11259
- continue;
11260
- }
11261
- accepted[name] = item;
11262
- }
11263
- commitHostCompatibility(accepted);
11264
- } catch {
11265
- commitHostCompatibility(Object.fromEntries(chunk.map((name) => [name, UNAVAILABLE_HOST_COMPATIBILITY])));
11266
- } finally {
11267
- for (const name of chunk) hostCompatibilityInFlight.delete(name);
11268
- setHostCompatibilityPending((count) => Math.max(0, count - chunk.length));
11269
- }
11270
- }
11271
- }, [setHostVersion]);
12629
+ }, [
12630
+ marketGone,
12631
+ reconnectRound,
12632
+ loadCatalog,
12633
+ refreshInstalled
12634
+ ]);
11272
12635
  (0, react.useEffect)(() => {
11273
12636
  loadCatalog();
12637
+ const boot = updateCheckBoot;
11274
12638
  fetch(api("/dsh-crate/status"), { cache: "no-store" }).then(readMarketStatus).then((status) => {
11275
12639
  if (status === null) return;
11276
12640
  statusRef.current = {
@@ -11284,10 +12648,12 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11284
12648
  setEnvReady(status.pnpm !== false);
11285
12649
  applyGithubRouting(status);
11286
12650
  if (typeof status.boot === "string") {
12651
+ discoveryScan.setBoot(status.boot);
12652
+ if (mounted.current && observeUpdateCheckBoot(status.boot, boot)) refreshInstalled();
11287
12653
  setBootId(status.boot);
11288
12654
  setIgnoredUpdateNames(ignoredUpdatesForBoot(status.boot));
11289
12655
  try {
11290
- setRestartNoticeDismissed(sessionStorage.getItem("dshm-restart-dismissed") === status.boot);
12656
+ setRestartNoticeDismissed(window.sessionStorage.getItem("dshm-restart-dismissed") === status.boot);
11291
12657
  } catch {}
11292
12658
  }
11293
12659
  setRestartEnabled(status.restart === true);
@@ -11297,6 +12663,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11297
12663
  if (typeof status.version === "string" && status.version !== "") setVersion(status.version);
11298
12664
  }).catch(() => {});
11299
12665
  refreshInstalled();
12666
+ refreshUpdateNotifications();
11300
12667
  }, [
11301
12668
  applyDrainStatus,
11302
12669
  refreshInstalled,
@@ -11309,7 +12676,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11309
12676
  const saved = readSession("dshm-restart");
11310
12677
  if (saved === null) return;
11311
12678
  if (saved.boot !== bootId) {
11312
- sessionStorage.removeItem("dshm-restart");
12679
+ window.sessionStorage.removeItem("dshm-restart");
11313
12680
  return;
11314
12681
  }
11315
12682
  if (Array.isArray(saved.doneUrls) && saved.doneUrls.length > 0) setDoneUrls(saved.doneUrls);
@@ -11321,10 +12688,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11321
12688
  (0, react.useEffect)(() => {
11322
12689
  if (bootId === null) return;
11323
12690
  if (doneUrls.length === 0 && updatedNames.length === 0 && restartNames.length === 0 && removedCount === 0 && toggleRestart === 0) {
11324
- sessionStorage.removeItem("dshm-restart");
12691
+ window.sessionStorage.removeItem("dshm-restart");
12692
+ notifyUpdatePreferencesChanged();
11325
12693
  return;
11326
12694
  }
11327
- sessionStorage.setItem("dshm-restart", JSON.stringify({
12695
+ window.sessionStorage.setItem("dshm-restart", JSON.stringify({
11328
12696
  boot: bootId,
11329
12697
  doneUrls,
11330
12698
  updated: updatedNames,
@@ -11332,6 +12700,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11332
12700
  removed: removedCount,
11333
12701
  toggled: toggleRestart
11334
12702
  }));
12703
+ notifyUpdatePreferencesChanged();
11335
12704
  }, [
11336
12705
  bootId,
11337
12706
  doneUrls,
@@ -11393,7 +12762,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11393
12762
  }));
11394
12763
  }, [data]);
11395
12764
  (0, react.useEffect)(() => {
11396
- if (busyUrl === null && updatingName === null) {
12765
+ if (busyUrl === null && updatingName === null && removingName === null) {
11397
12766
  setHostBusy(false);
11398
12767
  statusRef.current = {
11399
12768
  ...statusRef.current,
@@ -11452,7 +12821,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11452
12821
  const url = busyUrl;
11453
12822
  if (data !== null && data.plugins.some((p) => p.url === url && isInstalled(p, statusInstalled, repoIdentities, data.plugins, repoHints))) {
11454
12823
  idleStrikes.current = 0;
11455
- sessionStorage.removeItem("dshm-pending");
12824
+ window.sessionStorage.removeItem("dshm-pending");
11456
12825
  const recovered = recoveredInstall.current;
11457
12826
  if (recovered !== null) {
11458
12827
  setRecords((list) => drop(list, recovered.id));
@@ -11467,7 +12836,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11467
12836
  setBusyUrl(null);
11468
12837
  } else if (++idleStrikes.current >= 2) {
11469
12838
  idleStrikes.current = 0;
11470
- sessionStorage.removeItem("dshm-pending");
12839
+ window.sessionStorage.removeItem("dshm-pending");
11471
12840
  const recovered = recoveredInstall.current;
11472
12841
  if (recovered !== null) {
11473
12842
  setRecords((list) => drop(list, recovered.id));
@@ -11485,7 +12854,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11485
12854
  if (updatingName !== null && status.busy !== true) {
11486
12855
  if (++updateIdleStrikes.current >= 2) {
11487
12856
  updateIdleStrikes.current = 0;
11488
- sessionStorage.removeItem("dshm-updating");
12857
+ window.sessionStorage.removeItem("dshm-updating");
11489
12858
  const recoveredId = recoveredUpdateRecordId.current;
11490
12859
  if (recoveredId !== null) {
11491
12860
  setRecords((list) => drop(list, recoveredId));
@@ -11503,6 +12872,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11503
12872
  applyDrainStatus,
11504
12873
  busyUrl,
11505
12874
  updatingName,
12875
+ removingName,
11506
12876
  data,
11507
12877
  installed,
11508
12878
  repoIdentities,
@@ -11576,6 +12946,32 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11576
12946
  qInstalled,
11577
12947
  installedView
11578
12948
  ]);
12949
+ (0, react.useLayoutEffect)(() => {
12950
+ const root = rootRef.current;
12951
+ if (surface !== "settings" || root === null || themesFullscreen) {
12952
+ root?.style.removeProperty("--dshm-head-h");
12953
+ return;
12954
+ }
12955
+ const head = headRef.current;
12956
+ if (head === null) return void 0;
12957
+ const apply = () => {
12958
+ root.style.setProperty("--dshm-head-h", `${String(Math.round(head.getBoundingClientRect().height))}px`);
12959
+ };
12960
+ apply();
12961
+ if (typeof ResizeObserver === "undefined") {
12962
+ window.addEventListener("resize", apply);
12963
+ return () => {
12964
+ window.removeEventListener("resize", apply);
12965
+ root.style.removeProperty("--dshm-head-h");
12966
+ };
12967
+ }
12968
+ const observer = new ResizeObserver(apply);
12969
+ observer.observe(head);
12970
+ return () => {
12971
+ observer.disconnect();
12972
+ root.style.removeProperty("--dshm-head-h");
12973
+ };
12974
+ }, [surface, themesFullscreen]);
11579
12975
  (0, react.useEffect)(() => {
11580
12976
  if (surface !== "plugins" || themesFullscreen) return void 0;
11581
12977
  const host = listScroller(surface, rootRef.current, null, false);
@@ -11661,32 +13057,6 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11661
13057
  clearPinVars();
11662
13058
  };
11663
13059
  }, [surface, themesFullscreen]);
11664
- (0, react.useLayoutEffect)(() => {
11665
- const root = rootRef.current;
11666
- if (surface !== "settings" || root === null || themesFullscreen) {
11667
- root?.style.removeProperty("--dshm-head-h");
11668
- return;
11669
- }
11670
- const head = headRef.current;
11671
- if (head === null) return void 0;
11672
- const apply = () => {
11673
- root.style.setProperty("--dshm-head-h", `${String(Math.round(head.getBoundingClientRect().height))}px`);
11674
- };
11675
- apply();
11676
- if (typeof ResizeObserver === "undefined") {
11677
- window.addEventListener("resize", apply);
11678
- return () => {
11679
- window.removeEventListener("resize", apply);
11680
- root.style.removeProperty("--dshm-head-h");
11681
- };
11682
- }
11683
- const observer = new ResizeObserver(apply);
11684
- observer.observe(head);
11685
- return () => {
11686
- observer.disconnect();
11687
- root.style.removeProperty("--dshm-head-h");
11688
- };
11689
- }, [surface, themesFullscreen]);
11690
13060
  const pluginsAll = (0, react.useMemo)(() => {
11691
13061
  if (data === null) return [];
11692
13062
  const query = {
@@ -11710,7 +13080,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11710
13080
  sortDir,
11711
13081
  timeRange
11712
13082
  ]);
11713
- const pluginBlocked = (plugin) => blockAliases(plugin, matchInstalledName(plugin, installed, repoIdentities, data?.plugins, repoHints)).some((name) => blockedNameSet.has(name));
13083
+ const pluginBlocked = (plugin) => blockedNameSet.size > 0 && blockAliases(plugin, matchInstalledName(plugin, installed, repoIdentities, data?.plugins, repoHints)).some((name) => blockedNameSet.has(name));
11714
13084
  const installedBlocked = (0, react.useMemo)(() => {
11715
13085
  const compute = (name) => {
11716
13086
  if (blockedNameSet.has(name)) return true;
@@ -11744,35 +13114,12 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11744
13114
  data,
11745
13115
  repoHints
11746
13116
  ]);
11747
- const { plugins, hostHiddenCount } = (0, react.useMemo)(() => {
11748
- if (!compatibleWithHost) return {
11749
- plugins: pluginsUnblocked,
11750
- hostHiddenCount: 0
11751
- };
11752
- const compatible = (plugin) => {
11753
- const key = hostCompatibilityKey(plugin);
11754
- return key === null || hostCompatibility[key]?.status !== "incompatible";
11755
- };
11756
- let hidden = 0;
11757
- for (const plugin of pluginsAll) if (!compatible(plugin)) hidden += 1;
11758
- return {
11759
- plugins: pluginsUnblocked.filter(compatible),
11760
- hostHiddenCount: hidden
11761
- };
11762
- }, [
11763
- pluginsAll,
11764
- pluginsUnblocked,
11765
- compatibleWithHost,
11766
- hostCompatibility
11767
- ]);
11768
13117
  const recentlyAdded = (0, react.useMemo)(() => data === null || tab !== "discover" || q.trim() !== "" || cat !== "all" || timeRange !== "all" || sortField !== "downloads" || sortDir !== "desc" ? [] : visiblePlugins(data.plugins, {
11769
13118
  category: "all",
11770
13119
  query: "",
11771
13120
  lang,
11772
13121
  sort: "downloads-desc",
11773
- sinceDays: 7,
11774
- hostCompatibility,
11775
- compatibleWithHost
13122
+ sinceDays: 7
11776
13123
  }).filter((plugin) => !pluginBlocked(plugin)), [
11777
13124
  data,
11778
13125
  tab,
@@ -11782,14 +13129,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11782
13129
  sortField,
11783
13130
  sortDir,
11784
13131
  lang,
11785
- hostCompatibility,
11786
- compatibleWithHost,
11787
13132
  blockedNameSet,
11788
13133
  installed,
11789
13134
  repoIdentities,
11790
13135
  repoHints
11791
13136
  ]);
11792
- const hasRecent = recentlyAdded.length > 0;
11793
13137
  const [recentCollapsed, setRecentCollapsed] = (0, react.useState)(() => readRecentFlag(RECENT_COLLAPSED_KEY));
11794
13138
  const [recentHidden, setRecentHidden] = (0, react.useState)(() => readRecentFlag(RECENT_HIDDEN_KEY));
11795
13139
  const toggleRecentCollapsed = (0, react.useCallback)(() => {
@@ -11807,43 +13151,31 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11807
13151
  setRecentCollapsed(false);
11808
13152
  writeRecentFlag(RECENT_COLLAPSED_KEY, false);
11809
13153
  }, []);
11810
- const recentPlugins = recentlyAdded.slice(0, RECENT_STRIP_LIMIT);
11811
- const { currentPage, totalPages, pageSize, goToPage, changePageSize } = usePagination(plugins.length, [
11812
- q,
11813
- cat,
11814
- sortField,
11815
- sortDir,
11816
- timeRange,
11817
- compatibleWithHost
11818
- ], scrollToTop);
11819
- const discoverMore = useShownCount(plugins.length, [
13154
+ const discoverResetDeps = [
11820
13155
  q,
11821
13156
  cat,
11822
13157
  sortField,
11823
13158
  sortDir,
11824
- timeRange,
11825
- compatibleWithHost
11826
- ], DEFAULT_PAGE_SIZE);
11827
- const pagePlugins = surface === "plugins" ? plugins.slice(0, discoverMore.shown) : plugins.slice((currentPage - 1) * pageSize, currentPage * pageSize);
11828
- const pageHostPackages = [...new Set([...pagePlugins, ...recentPlugins].flatMap((plugin) => hostCompatibilityKey(plugin) === null ? [] : [hostCompatibilityKey(plugin)]))];
11829
- const allHostPackages = (0, react.useMemo)(() => [...new Set((data?.plugins ?? []).flatMap((plugin) => hostCompatibilityKey(plugin) === null ? [] : [hostCompatibilityKey(plugin)]))], [data]);
11830
- const pageHostPackagesKey = pageHostPackages.join("\0");
11831
- const allHostPackagesKey = allHostPackages.join("\0");
11832
- (0, react.useEffect)(() => {
11833
- if (tab === "discover") loadHostCompatibility(pageHostPackages);
11834
- }, [
11835
- tab,
11836
- pageHostPackagesKey,
11837
- loadHostCompatibility
11838
- ]);
11839
- (0, react.useEffect)(() => {
11840
- if (compatibleWithHost) loadHostCompatibility(allHostPackages);
11841
- }, [
11842
- compatibleWithHost,
11843
- allHostPackagesKey,
11844
- loadHostCompatibility
11845
- ]);
11846
- const loadedHostPackages = allHostPackages.reduce((count, name) => count + (hostCompatibility[name] === void 0 ? 0 : 1), 0);
13159
+ timeRange
13160
+ ];
13161
+ const { currentPage, totalPages, pageSize, goToPage, changePageSize } = usePagination(pluginsUnblocked.length, discoverResetDeps, scrollToTop);
13162
+ const discoverMore = useShownCount(pluginsUnblocked.length, discoverResetDeps, DEFAULT_PAGE_SIZE);
13163
+ const basePage = surface === "plugins" ? pluginsUnblocked.slice(0, discoverMore.shown) : pluginsUnblocked.slice((currentPage - 1) * pageSize, currentPage * pageSize);
13164
+ const baseRecent = recentlyAdded.slice(0, RECENT_STRIP_LIMIT);
13165
+ const hostVerdict = (plugin) => {
13166
+ const key = hostCompatibilityKey(plugin);
13167
+ return key === null ? void 0 : hostCompatibility[key];
13168
+ };
13169
+ const compatible = (plugin) => !compatibleWithHost || hostVerdict(plugin)?.status !== "incompatible";
13170
+ const pagePlugins = basePage.filter(compatible);
13171
+ const recentPlugins = baseRecent.filter(compatible);
13172
+ const hasRecent = recentPlugins.length > 0;
13173
+ const discoverCandidates = [.../* @__PURE__ */ new Set([...basePage, ...!recentHidden && !recentCollapsed ? baseRecent : []])];
13174
+ const pageHostPackages = [...new Set(discoverCandidates.map(hostCompatibilityKey).filter((key) => key !== null))];
13175
+ const pageVerdicts = discoverCandidates.map(hostVerdict);
13176
+ const loadedHostPackages = pageHostPackages.filter((key) => hostCompatibility[key] !== void 0).length;
13177
+ const hostHiddenCount = pageVerdicts.filter((verdict) => verdict?.status === "incompatible").length;
13178
+ const hostUnavailableCount = pageVerdicts.filter((verdict) => verdict?.basis === "unavailable").length;
11847
13179
  const themePluginsAll = (0, react.useMemo)(() => data === null ? [] : visiblePlugins(data.plugins, {
11848
13180
  category: "theme",
11849
13181
  query: qThemes,
@@ -11927,15 +13259,16 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11927
13259
  const favoriteThemeMore = useShownCount(favoriteThemes.length, favResetDeps, DEFAULT_PAGE_SIZE);
11928
13260
  const favoritePagePlugins = surface === "plugins" ? favoritePlugins.slice(0, favoritePluginMore.shown) : favoritePlugins.slice((favoritePluginPagination.currentPage - 1) * favoritePluginPagination.pageSize, favoritePluginPagination.currentPage * favoritePluginPagination.pageSize);
11929
13261
  const favoritePageThemes = surface === "plugins" ? favoriteThemes.slice(0, favoriteThemeMore.shown) : favoriteThemes.slice((favoriteThemePagination.currentPage - 1) * favoriteThemePagination.pageSize, favoriteThemePagination.currentPage * favoriteThemePagination.pageSize);
11930
- const favoritePageHostPackages = [...new Set(favoritePagePlugins.flatMap((plugin) => hostCompatibilityKey(plugin) === null ? [] : [hostCompatibilityKey(plugin)]))];
11931
- const favoritePageHostPackagesKey = favoritePageHostPackages.join("\0");
13262
+ const compatibilityKeys = (marketGone ? [] : tab === "discover" ? pageHostPackages : tab === "favorites" ? favoritePagePlugins.map(hostCompatibilityKey).filter((key) => key !== null) : []).join("\0");
11932
13263
  (0, react.useEffect)(() => {
11933
- if (tab === "favorites") loadHostCompatibility(favoritePageHostPackages);
11934
- }, [
11935
- tab,
11936
- favoritePageHostPackagesKey,
11937
- loadHostCompatibility
11938
- ]);
13264
+ discoveryScan.setDemand(compatibilityDemandOwner.current, data, compatibilityKeys === "" ? [] : compatibilityKeys.split("\0"));
13265
+ }, [data, compatibilityKeys]);
13266
+ (0, react.useEffect)(() => {
13267
+ const owner = compatibilityDemandOwner.current;
13268
+ return () => {
13269
+ discoveryScan.removeDemand(owner);
13270
+ };
13271
+ }, []);
11939
13272
  const favoriteStale = (0, react.useMemo)(() => data === null ? [] : staleFavoriteUrls(favoriteUrls, data.plugins), [data, favoriteUrls]);
11940
13273
  const favoritesAllStale = favoriteUrls.length > 0 && favoriteStale.length === favoriteUrls.length && qFavorites.trim() === "";
11941
13274
  /** Tab badge counts catalog-visible bookmarks once the registry is loaded. */
@@ -12006,7 +13339,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12006
13339
  url: plugin.url,
12007
13340
  state: "running"
12008
13341
  }));
12009
- sessionStorage.setItem("dshm-pending", JSON.stringify({
13342
+ window.sessionStorage.setItem("dshm-pending", JSON.stringify({
12010
13343
  url: plugin.url,
12011
13344
  name: plugin.name
12012
13345
  }));
@@ -12024,7 +13357,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12024
13357
  body
12025
13358
  }))).then(({ status, body }) => {
12026
13359
  setBusyUrl(null);
12027
- sessionStorage.removeItem("dshm-pending");
13360
+ window.sessionStorage.removeItem("dshm-pending");
12028
13361
  if (status === 202 && typeof body.operationId === "string") {
12029
13362
  const operation = body.operation;
12030
13363
  setRecords((list) => patch(withoutHostProjection(list, body.operationId, recordId), recordId, {
@@ -12046,8 +13379,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12046
13379
  return;
12047
13380
  }
12048
13381
  if (status === 200 && body.ok && body.hot && pluginCategories(plugin).includes("theme")) {
12049
- sessionStorage.setItem("dshm-toast", JSON.stringify([plugin.name]));
12050
- sessionStorage.setItem("dshm-tab", "themes");
13382
+ window.sessionStorage.setItem("dshm-toast", JSON.stringify([plugin.name]));
13383
+ window.sessionStorage.setItem("dshm-tab", "themes");
12051
13384
  location.reload();
12052
13385
  return;
12053
13386
  }
@@ -12421,7 +13754,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12421
13754
  setMigrationConfirm(null);
12422
13755
  setUpdatingName(name);
12423
13756
  updateIdleStrikes.current = 0;
12424
- sessionStorage.setItem("dshm-updating", JSON.stringify({ name }));
13757
+ window.sessionStorage.setItem("dshm-updating", JSON.stringify({ name }));
12425
13758
  const updateRecordId = nextRecordId();
12426
13759
  setRecords((list) => enqueue(list, {
12427
13760
  id: updateRecordId,
@@ -12446,7 +13779,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12446
13779
  status: res.status,
12447
13780
  body
12448
13781
  }))).then(({ status, body }) => {
12449
- sessionStorage.removeItem("dshm-updating");
13782
+ window.sessionStorage.removeItem("dshm-updating");
12450
13783
  setUpdatingName(null);
12451
13784
  if (status === 202 && typeof body.operationId === "string") {
12452
13785
  const operation = body.operation;
@@ -12705,16 +14038,17 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12705
14038
  exists while a user is actually looking at one plugin's notes, and
12706
14039
  closing the dialog abandons the render — the server side caches the
12707
14040
  payload, so reopening is cheap. */
12708
- const openNotes = (0, react.useCallback)((name, current, latest, repoUrl) => {
14041
+ const openNotes = (0, react.useCallback)((name, current, latest, target, repoUrl) => {
12709
14042
  setNotesFor({
12710
14043
  name,
12711
14044
  current,
12712
14045
  latest,
14046
+ target,
12713
14047
  repoUrl
12714
14048
  });
12715
14049
  setUpdateNotes(null);
12716
14050
  setNotesState("loading");
12717
- fetch(`${api("/dsh-crate/changelog")}?name=${encodeURIComponent(name)}`).then((res) => res.json()).then((body) => {
14051
+ fetch(`${api("/dsh-crate/changelog")}?name=${encodeURIComponent(name)}${target !== null ? `&target=${encodeURIComponent(target)}` : ""}`).then((res) => res.json()).then((body) => {
12718
14052
  setUpdateNotes(body);
12719
14053
  setNotesState("ready");
12720
14054
  }).catch(() => setNotesState("fail"));
@@ -12730,9 +14064,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12730
14064
  body
12731
14065
  }))).then(({ status, body }) => {
12732
14066
  if (status === 200 && body.ok) {
12733
- sessionStorage.setItem("dshm-toast", JSON.stringify([name]));
12734
- sessionStorage.setItem("dshm-toast-mode", "theme");
12735
- sessionStorage.setItem("dshm-tab", "themes");
14067
+ window.sessionStorage.setItem("dshm-toast", JSON.stringify([name]));
14068
+ window.sessionStorage.setItem("dshm-toast-mode", "theme");
14069
+ window.sessionStorage.setItem("dshm-tab", "themes");
12736
14070
  location.reload();
12737
14071
  } else setInstallError(String(body.error || "failed"));
12738
14072
  }).catch((error) => setInstallError(String(error)));
@@ -13323,9 +14657,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13323
14657
  });
13324
14658
  refreshInstalled();
13325
14659
  if (reload) {
13326
- sessionStorage.removeItem("dshm-toast");
13327
- sessionStorage.removeItem("dshm-toast-mode");
13328
- sessionStorage.setItem("dshm-tab", "themes");
14660
+ window.sessionStorage.removeItem("dshm-toast");
14661
+ window.sessionStorage.removeItem("dshm-toast-mode");
14662
+ window.sessionStorage.setItem("dshm-tab", "themes");
13329
14663
  location.reload();
13330
14664
  }
13331
14665
  } else {
@@ -13520,7 +14854,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13520
14854
  setIgnoredUpdateNames((current) => {
13521
14855
  const next = [.../* @__PURE__ */ new Set([...current, ...names])];
13522
14856
  try {
13523
- sessionStorage.setItem(IGNORED_UPDATES_SESSION_KEY, JSON.stringify({
14857
+ window.sessionStorage.setItem(IGNORED_UPDATES_SESSION_KEY, JSON.stringify({
13524
14858
  boot: bootId,
13525
14859
  names: next
13526
14860
  }));
@@ -13533,7 +14867,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13533
14867
  setIgnoredUpdateNames((current) => {
13534
14868
  const next = current.filter((n) => n !== name);
13535
14869
  try {
13536
- sessionStorage.setItem(IGNORED_UPDATES_SESSION_KEY, JSON.stringify({
14870
+ window.sessionStorage.setItem(IGNORED_UPDATES_SESSION_KEY, JSON.stringify({
13537
14871
  boot: bootId,
13538
14872
  names: next
13539
14873
  }));
@@ -13628,7 +14962,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13628
14962
  if (action === "restore") previewBackup(body.backup);
13629
14963
  if (action === "backup") {
13630
14964
  try {
13631
- localStorage.setItem("dshm-webdav-last", String(Date.now()));
14965
+ window.localStorage.setItem("dshm-webdav-last", String(Date.now()));
13632
14966
  } catch {}
13633
14967
  setBackupMessage(t("backupDone"));
13634
14968
  }
@@ -13722,7 +15056,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13722
15056
  setGistId(ref.gistId);
13723
15057
  setGistMode("update");
13724
15058
  try {
13725
- localStorage.setItem("dshm-gist-id", ref.gistId);
15059
+ window.localStorage.setItem("dshm-gist-id", ref.gistId);
13726
15060
  } catch {}
13727
15061
  }
13728
15062
  setGistMessage(t("gistExportDone"));
@@ -13773,7 +15107,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13773
15107
  }, [runWebdav]);
13774
15108
  (0, react.useEffect)(() => {
13775
15109
  try {
13776
- localStorage.setItem(WEBDAV_STORAGE_KEY, JSON.stringify({
15110
+ window.localStorage.setItem(WEBDAV_STORAGE_KEY, JSON.stringify({
13777
15111
  url: webdavUrl,
13778
15112
  username: webdavUser,
13779
15113
  auto: autoBackup
@@ -13788,7 +15122,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13788
15122
  if (!autoBackup) return;
13789
15123
  let last = 0;
13790
15124
  try {
13791
- last = Number(localStorage.getItem("dshm-webdav-last")) || 0;
15125
+ last = Number(window.localStorage.getItem("dshm-webdav-last")) || 0;
13792
15126
  } catch {}
13793
15127
  if (Date.now() - last >= 864e5) runWebdavRef.current("backup");
13794
15128
  }, [autoBackup]);
@@ -13837,7 +15171,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13837
15171
  const bOn = effectiveDisabledSet.has(nameB) ? 0 : 1;
13838
15172
  if (aOn !== bOn) return bOn - aOn;
13839
15173
  const aUp = isPluginUpdatable(nameA, String(specA), updates[nameA], updatedNames, quietUpdateSet) ? 1 : 0;
13840
- return (isPluginUpdatable(nameB, String(specB), updates[nameB], updatedNames, quietUpdateSet) ? 1 : 0) - aUp;
15174
+ const bUp = isPluginUpdatable(nameB, String(specB), updates[nameB], updatedNames, quietUpdateSet) ? 1 : 0;
15175
+ if (aUp !== bUp) return bUp - aUp;
15176
+ return compareInstalledRows(installedSort, {
15177
+ name: nameA,
15178
+ installedAt: installTimes[nameA]?.installedAt
15179
+ }, {
15180
+ name: nameB,
15181
+ installedAt: installTimes[nameB]?.installedAt
15182
+ });
13841
15183
  });
13842
15184
  }, [
13843
15185
  isInstalledListActive,
@@ -13845,7 +15187,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13845
15187
  selfName,
13846
15188
  updatesLoaded,
13847
15189
  effectiveDisabledSet,
13848
- dependencyOnlyNames
15190
+ dependencyOnlyNames,
15191
+ installedSort,
15192
+ installTimes
13849
15193
  ]);
13850
15194
  const missingRestoreCount = Object.keys(pendingDependencies).filter((name) => !installedFiles.includes(name)).length;
13851
15195
  const hasUpdates = reminderUpdatableNames.length > 0;
@@ -13890,15 +15234,25 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13890
15234
  }]
13891
15235
  });
13892
15236
  };
15237
+ /** Catalog copy wins; an installed package can still explain itself when
15238
+ * it has no usable catalog description (#1147). Shared by all installed views. */
15239
+ const authoredDescription = (name, entry) => {
15240
+ for (const description of [
15241
+ entry?.description?.[lang],
15242
+ entry?.description?.en,
15243
+ localDescriptions[name]
15244
+ ]) if (typeof description === "string" && description.trim() !== "") return description.trim();
15245
+ return "";
15246
+ };
13893
15247
  /**
13894
15248
  * What the group view says about an installed plugin beyond its name: the
13895
- * user's own note, else the catalog's description (#1006). One place, so a
13896
- * plugin reads the same whether it sits in a group or in "Ungrouped".
15249
+ * user's own note, else the author's description (#1006, #1147). One place,
15250
+ * so a plugin reads the same in a group or in "Ungrouped".
13897
15251
  */
13898
15252
  const installedBlurb = (name) => {
13899
15253
  const entry = data === null ? void 0 : catalogEntryForInstalled(data.plugins, name, String(installed[name]), repoIdentities[name], repoHints[name]);
13900
15254
  const note = notes[name];
13901
- const authored = entry?.description && (entry.description[lang] || entry.description.en) || "";
15255
+ const authored = authoredDescription(name, entry);
13902
15256
  return {
13903
15257
  entry,
13904
15258
  note,
@@ -14873,6 +16227,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
14873
16227
  onClick: doExportLog,
14874
16228
  children: exportState === "busy" ? t("exportingLog") : t("exportLog")
14875
16229
  });
16230
+ const updateCheckFailed = updateCheck.failed === null || updateCheck.failed.size > 0;
14876
16231
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
14877
16232
  ref: rootRef,
14878
16233
  className: `${Market_module_css_default.root} notranslate`,
@@ -14893,9 +16248,12 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
14893
16248
  className: Market_module_css_default.titleRow,
14894
16249
  children: [
14895
16250
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MarketLogo, {
14896
- size: 18,
16251
+ size: 15,
14897
16252
  ambient: true,
14898
- style: { flexShrink: 0 }
16253
+ style: {
16254
+ flexShrink: 0,
16255
+ transform: "translateX(2px)"
16256
+ }
14899
16257
  }),
14900
16258
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
14901
16259
  className: Market_module_css_default.title,
@@ -14911,7 +16269,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
14911
16269
  children: [
14912
16270
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
14913
16271
  className: Market_module_css_default.repoLink,
14914
- href: "https://github.com/crate/dsh-crate",
16272
+ href: "https://github.com/dsh-crate/dsh-crate",
14915
16273
  target: "_blank",
14916
16274
  rel: "noreferrer",
14917
16275
  title: "dsh-crate · GitHub",
@@ -15013,12 +16371,18 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15013
16371
  replacing,
15014
16372
  envReady,
15015
16373
  onClearSettled: () => {
15016
- for (const record of recordsRef.current) if (record.hostOperationId !== void 0 && (record.state === "done" || record.state === "warned" || record.state === "failed")) dismissedHostRef.current.add(record.hostOperationId);
16374
+ for (const record of recordsRef.current) if (record.hostOperationId !== void 0 && (record.state === "done" || record.state === "warned" || record.state === "failed")) {
16375
+ dismissedHostRef.current.add(record.hostOperationId);
16376
+ rememberDismissedHostId(record.hostOperationId);
16377
+ }
15017
16378
  setRecords((list) => clearSettled(list));
15018
16379
  },
15019
16380
  onCancel: (record) => doCancel(record),
15020
16381
  onDismiss: (record) => {
15021
- if (record.hostOperationId !== void 0) dismissedHostRef.current.add(record.hostOperationId);
16382
+ if (record.hostOperationId !== void 0) {
16383
+ dismissedHostRef.current.add(record.hostOperationId);
16384
+ rememberDismissedHostId(record.hostOperationId);
16385
+ }
15022
16386
  setRecords((list) => drop(list, record.id));
15023
16387
  },
15024
16388
  onRefresh: () => location.reload(),
@@ -15043,6 +16407,20 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15043
16407
  })
15044
16408
  ]
15045
16409
  }),
16410
+ !marketGone && updateCheckFailed && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16411
+ className: Market_module_css_default.updateCheckNotice,
16412
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
16413
+ role: "status",
16414
+ children: t("updateCheckFailed")
16415
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
16416
+ variant: "ghost",
16417
+ size: "sm",
16418
+ "aria-label": t("updateCheckRetry"),
16419
+ disabled: checkingUpdates,
16420
+ onClick: () => refreshInstalled(true),
16421
+ children: t("loadRetry")
16422
+ })]
16423
+ }),
15046
16424
  (tab === "backup" || tab === "diagnostics") && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15047
16425
  className: Market_module_css_default.subTabs,
15048
16426
  children: [
@@ -15139,8 +16517,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15139
16517
  variant: "primary",
15140
16518
  size: "sm",
15141
16519
  onClick: () => {
15142
- if (hotNames.length > 0) sessionStorage.setItem("dshm-toast", JSON.stringify(hotNames));
15143
- sessionStorage.setItem("dshm-tab", "installed");
16520
+ if (hotNames.length > 0) window.sessionStorage.setItem("dshm-toast", JSON.stringify(hotNames));
16521
+ window.sessionStorage.setItem("dshm-tab", "installed");
15144
16522
  location.reload();
15145
16523
  },
15146
16524
  children: t("refresh")
@@ -15188,7 +16566,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15188
16566
  onClick: () => {
15189
16567
  setRestartNoticeDismissed(true);
15190
16568
  try {
15191
- sessionStorage.setItem("dshm-restart-dismissed", String(bootId ?? ""));
16569
+ window.sessionStorage.setItem("dshm-restart-dismissed", String(bootId ?? ""));
15192
16570
  } catch {}
15193
16571
  },
15194
16572
  children: t("dismiss")
@@ -15227,6 +16605,19 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15227
16605
  children: configNamespaceIssues.map((finding) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: t("configNamespaceNotice").replace("{0}", finding.name).replace("{1}", finding.namespaces.join("、")).replace("{2}", finding.ownEntryIds.join("、") || "—") }, finding.name))
15228
16606
  })]
15229
16607
  }),
16608
+ tab === "installed" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UpdateNotificationsPanel, {
16609
+ snapshot: notificationSnapshot,
16610
+ t,
16611
+ busy: updatingName !== null || busyUrl !== null || removingName !== null,
16612
+ onCheck: checkUpdateNotifications,
16613
+ onEnabled: setUpdateNotificationsEnabled,
16614
+ onIntervalHours: setUpdateNotificationsIntervalHours,
16615
+ onUpdate: (name) => {
16616
+ if (updates[name]?.restoreRequired === true) askRestore(name);
16617
+ else doUpdate(name);
16618
+ },
16619
+ onOpenHost: openInHost === void 0 ? void 0 : (name) => openInHost.openBundle(name)
16620
+ }),
15230
16621
  tab === "installed" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HostDependencyDiagnostics, {
15231
16622
  findings: hostDependencyFindings,
15232
16623
  t
@@ -15722,9 +17113,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15722
17113
  setCatsOpen(next);
15723
17114
  }
15724
17115
  })]
15725
- }), compatibleWithHost && typeof hostVersion === "string" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
17116
+ }), compatibleWithHost && typeof hostVersion === "string" && pageHostPackages.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
15726
17117
  className: Market_module_css_default.hostFilterNote,
15727
- children: hostCompatibilityPending > 0 || loadedHostPackages < allHostPackages.length ? t("hostFilterLoading").replace("{0}", String(loadedHostPackages)).replace("{1}", String(allHostPackages.length)) : t("hostFilterActive").replace("{0}", hostVersion).replace("{1}", String(hostHiddenCount))
17118
+ children: loadedHostPackages < pageHostPackages.length ? t("hostFilterLoading").replace("{0}", String(loadedHostPackages)).replace("{1}", String(pageHostPackages.length)) : t(hostUnavailableCount > 0 ? "hostFilterIncomplete" : "hostFilterActive").replace("{0}", hostVersion).replace("{1}", String(hostHiddenCount)).replace("{2}", String(hostUnavailableCount))
15728
17119
  })]
15729
17120
  })]
15730
17121
  }),
@@ -15762,8 +17153,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15762
17153
  children: recentPlugins.map((plugin) => recentTile(plugin))
15763
17154
  })]
15764
17155
  })),
15765
- plugins.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyResults, {
15766
- blocked: pluginsAll.length > hostHiddenCount,
17156
+ pagePlugins.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyResults, {
17157
+ message: basePage.length > 0 ? "hostFilterEmpty" : pluginsAll.length > 0 ? "blockedFilteredEmpty" : "empty",
15767
17158
  t,
15768
17159
  onClear: data.plugins.length > 0 && (q !== "" || cat !== "all" || timeRange !== "all" || compatibleWithHost) ? () => {
15769
17160
  setQ("");
@@ -15773,10 +17164,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15773
17164
  setCompatibleWithHost(false);
15774
17165
  bodyRef.current?.querySelector("input")?.focus();
15775
17166
  } : void 0
15776
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Masonry, {
17167
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Masonry, {
15777
17168
  items: pagePlugins,
15778
17169
  render: (plugin) => pluginCard(plugin)
15779
- }), surface === "plugins" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadMore, {
17170
+ }),
17171
+ pluginsUnblocked.length > 0 && (surface === "plugins" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadMore, {
15780
17172
  more: discoverMore.more,
15781
17173
  onLoad: discoverMore.loadMore,
15782
17174
  t
@@ -15787,7 +17179,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15787
17179
  onGoToPage: goToPage,
15788
17180
  onChangePageSize: changePageSize,
15789
17181
  t
15790
- })] })
17182
+ }))
15791
17183
  ] }) : tab === "favorites" ? data === null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15792
17184
  className: Market_module_css_default.loading,
15793
17185
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -15949,7 +17341,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15949
17341
  className: Market_module_css_default.empty,
15950
17342
  children: t("themeEmpty")
15951
17343
  }) : themePlugins$1.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyResults, {
15952
- blocked: themePluginsAll.length > 0,
17344
+ message: themePluginsAll.length > 0 ? "blockedFilteredEmpty" : "empty",
15953
17345
  t,
15954
17346
  onClear: qThemes !== "" || themeTimeRange !== "all" ? () => {
15955
17347
  setQThemes("");
@@ -16033,53 +17425,77 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16033
17425
  }),
16034
17426
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16035
17427
  className: Market_module_css_default.tabSearchRow,
16036
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchInput, {
16037
- resetToken: installedSearchReset,
16038
- className: Market_module_css_default.tabSearch,
16039
- placeholder: t("searchPh"),
16040
- value: qInstalled,
16041
- onCommit: setQInstalled,
16042
- t
16043
- }, "installed"), installedView === "groups" && (creatingGroup ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16044
- className: Market_module_css_default.groupCreateInline,
16045
- onBlur: (event) => {
16046
- const next = event.relatedTarget;
16047
- if (next instanceof Node && event.currentTarget.contains(next)) return;
16048
- cancelCreateGroup();
16049
- },
16050
- children: [
16051
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
16052
- className: Market_module_css_default.inlineInput,
16053
- placeholder: t("groupNamePh"),
16054
- value: newGroupName,
16055
- onChange: (e) => setNewGroupName(e.target.value),
16056
- onKeyDown: (e) => {
16057
- if (e.key === "Enter") doCreateGroup();
16058
- if (e.key === "Escape") cancelCreateGroup();
16059
- },
16060
- autoFocus: true
16061
- }),
16062
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
16063
- variant: "primary",
16064
- size: "sm",
16065
- onClick: doCreateGroup,
16066
- children: t("groupCreate")
16067
- }),
16068
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
16069
- variant: "ghost",
16070
- size: "sm",
16071
- onClick: cancelCreateGroup,
16072
- children: t("cancel")
16073
- })
16074
- ]
16075
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
16076
- variant: "outline",
16077
- size: "sm",
16078
- onClick: () => setCreatingGroup(true),
16079
- children: t("groupNew")
16080
- }))]
17428
+ children: [
17429
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchInput, {
17430
+ resetToken: installedSearchReset,
17431
+ className: Market_module_css_default.tabSearch,
17432
+ placeholder: t("searchPh"),
17433
+ value: qInstalled,
17434
+ onCommit: setQInstalled,
17435
+ t
17436
+ }, "installed"),
17437
+ installedView === "list" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InstalledSortMenu, {
17438
+ value: installedSort,
17439
+ onChange: setInstalledSort,
17440
+ t
17441
+ }),
17442
+ installedView === "groups" && (creatingGroup ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17443
+ className: Market_module_css_default.groupCreateInline,
17444
+ onBlur: (event) => {
17445
+ const next = event.relatedTarget;
17446
+ if (next instanceof Node && event.currentTarget.contains(next)) return;
17447
+ cancelCreateGroup();
17448
+ },
17449
+ children: [
17450
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
17451
+ className: Market_module_css_default.inlineInput,
17452
+ placeholder: t("groupNamePh"),
17453
+ value: newGroupName,
17454
+ onChange: (e) => setNewGroupName(e.target.value),
17455
+ onKeyDown: (e) => {
17456
+ if (e.key === "Enter") doCreateGroup();
17457
+ if (e.key === "Escape") cancelCreateGroup();
17458
+ },
17459
+ autoFocus: true
17460
+ }),
17461
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
17462
+ variant: "primary",
17463
+ size: "sm",
17464
+ onClick: doCreateGroup,
17465
+ children: t("groupCreate")
17466
+ }),
17467
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
17468
+ variant: "ghost",
17469
+ size: "sm",
17470
+ onClick: cancelCreateGroup,
17471
+ children: t("cancel")
17472
+ })
17473
+ ]
17474
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
17475
+ variant: "outline",
17476
+ size: "sm",
17477
+ onClick: () => setCreatingGroup(true),
17478
+ children: t("groupNew")
17479
+ }))
17480
+ ]
16081
17481
  }),
16082
17482
  installedView === "groups" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
17483
+ groupOrder.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17484
+ className: Market_module_css_default.groupBulkActions,
17485
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
17486
+ variant: "ghost",
17487
+ size: "sm",
17488
+ disabled: groupQuery !== "" || groupOrder.every((gid) => collapsedGroups.has(gid)),
17489
+ onClick: () => setCollapsedGroups(new Set(groupOrder)),
17490
+ children: t("groupCollapseAll")
17491
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
17492
+ variant: "ghost",
17493
+ size: "sm",
17494
+ disabled: groupQuery !== "" || !groupOrder.some((gid) => collapsedGroups.has(gid)),
17495
+ onClick: () => setCollapsedGroups(/* @__PURE__ */ new Set()),
17496
+ children: t("groupExpandAll")
17497
+ })]
17498
+ }),
16083
17499
  groupQuery === "" && groupOrder.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
16084
17500
  className: Market_module_css_default.empty,
16085
17501
  children: t("noGroups")
@@ -16384,6 +17800,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16384
17800
  const act = activations[name];
16385
17801
  const meta = act !== void 0 ? activationMeta(act.state, t, act.dependencyOf, act.loadedByProfile, act.library) : null;
16386
17802
  const version = status && status.version ? "v" + status.version : "";
17803
+ const stamp = installTimes[name];
17804
+ const installedOn = installedDateText(stamp?.installedAt);
17805
+ const updatedOn = installedDateText(stamp?.updatedAt);
17806
+ const installedWhenTitle = [installedOn === null ? t("installedAtUnknown") : `${t("installedAtLabel")} ${installedOn}`, updatedOn === null ? "" : `${t("updatedAtLabel")} ${updatedOn}`].filter(Boolean).join(" · ");
16387
17807
  const specText = String(spec);
16388
17808
  const specRedundant = version !== "" && /^[\^~]?\d/.test(specText);
16389
17809
  const localPath = localPathOf(specText);
@@ -16420,9 +17840,14 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16420
17840
  children: renderInstalledBlockMenu(name)
16421
17841
  })]
16422
17842
  }),
16423
- (version !== "" || localDev) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
17843
+ (version !== "" || localDev || installedOn !== null) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
16424
17844
  className: Market_module_css_default.irowMeta,
16425
- children: [version, localDev ? t("linkedDev") : ""].filter(Boolean).join(" · ")
17845
+ title: installedWhenTitle,
17846
+ children: [
17847
+ version,
17848
+ localDev ? t("linkedDev") : "",
17849
+ installedOn === null ? "" : `${t("installedAtLabel")} ${installedOn}`
17850
+ ].filter(Boolean).join(" · ")
16426
17851
  }),
16427
17852
  specRedundant ? null : localPath !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16428
17853
  className: Market_module_css_default.irowPath,
@@ -16499,7 +17924,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16499
17924
  })]
16500
17925
  }) : (() => {
16501
17926
  const note = notes[name];
16502
- const authored = entry?.description && (entry.description[lang] || entry.description.en) || "";
17927
+ const authored = authoredDescription(name, entry);
16503
17928
  const theirs = showTheirs.includes(name);
16504
17929
  const shown = note !== void 0 && !theirs ? note : authored;
16505
17930
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -16554,7 +17979,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16554
17979
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
16555
17980
  type: "button",
16556
17981
  className: Market_module_css_default.notesLink,
16557
- onClick: () => openNotes(name, status?.current ?? null, status?.latest ?? null, repoUrl),
17982
+ onClick: () => openNotes(name, status?.current ?? null, status?.latest ?? null, status?.eligibleVersion ?? null, repoUrl),
16558
17983
  children: `${t("notesLink")} ›`
16559
17984
  })]
16560
17985
  }),
@@ -16782,7 +18207,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16782
18207
  disabled: updatingName !== null || removingName !== null || busyUrl !== null,
16783
18208
  onClick: () => doUpdate(name, false, false, status.newerPrerelease),
16784
18209
  children: t("install")
16785
- })] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18210
+ })] }) : updateCheck.failed === null || updateCheck.failed.has(name) ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
16786
18211
  className: Market_module_css_default.metaTag,
16787
18212
  title: t("upToDate"),
16788
18213
  children: t("upToDate")
@@ -17352,7 +18777,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
17352
18777
  }),
17353
18778
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17354
18779
  className: Market_module_css_default.spec,
17355
- children: notesFor.latest !== null && notesFor.latest.length === 40 ? notesFor.latest.slice(0, 7) : notesFor.latest
18780
+ children: (() => {
18781
+ const end = notesFor.target ?? notesFor.latest;
18782
+ return end !== null && end.length === 40 ? end.slice(0, 7) : end;
18783
+ })()
17356
18784
  })
17357
18785
  ]
17358
18786
  }),
@@ -17366,17 +18794,58 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
17366
18794
  }),
17367
18795
  notesState === "ready" && updateNotes !== null && (updateNotes.kind === "release" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17368
18796
  className: Market_module_css_default.notesBody,
17369
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17370
- className: Market_module_css_default.notesMeta,
17371
- children: [
17372
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("notesRelease") }),
17373
- updateNotes.release.tag !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: " " + updateNotes.release.tag }),
17374
- updateNotes.release.publishedAt !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: " · " + updateNotes.release.publishedAt.slice(0, 10) })
17375
- ]
17376
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
17377
- className: Market_module_css_default.notesRendered,
17378
- children: renderMarkdown(updateNotes.release.body || t("notesNone"))
17379
- })]
18797
+ children: [
18798
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18799
+ className: Market_module_css_default.notesMeta,
18800
+ children: [
18801
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("notesRelease") }),
18802
+ updateNotes.release.tag !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: " " + updateNotes.release.tag }),
18803
+ updateNotes.release.publishedAt !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: " · " + updateNotes.release.publishedAt.slice(0, 10) })
18804
+ ]
18805
+ }),
18806
+ updateNotes.beyondTarget !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18807
+ className: Market_module_css_default.notesMeta,
18808
+ children: t("notesBeyondTarget").replace("{0}", updateNotes.release.tag ?? "").replace("{1}", updateNotes.beyondTarget)
18809
+ }),
18810
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18811
+ className: Market_module_css_default.notesRendered,
18812
+ children: renderMarkdown(updateNotes.release.body || t("notesNone"))
18813
+ }),
18814
+ updateNotes.commits !== void 0 && updateNotes.commits.items.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
18815
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18816
+ className: Market_module_css_default.notesMeta,
18817
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("notesCommits") })
18818
+ }),
18819
+ !updateNotes.commits.found && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18820
+ className: Market_module_css_default.notesMeta,
18821
+ children: t("notesCommitsRecent")
18822
+ }),
18823
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
18824
+ className: Market_module_css_default.notesList,
18825
+ children: updateNotes.commits.items.map((c) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
18826
+ className: Market_module_css_default.notesRow,
18827
+ children: [
18828
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18829
+ className: Market_module_css_default.notesDate,
18830
+ children: c.date !== null ? c.date.slice(0, 10) : ""
18831
+ }),
18832
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18833
+ className: Market_module_css_default.notesMsg,
18834
+ children: mdInline(c.message)
18835
+ }),
18836
+ notesFor.repoUrl !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
18837
+ className: Market_module_css_default.notesSha,
18838
+ href: notesFor.repoUrl + "/commit/" + c.sha,
18839
+ target: "_blank",
18840
+ rel: "noreferrer",
18841
+ title: c.message,
18842
+ children: c.sha.slice(0, 7)
18843
+ })
18844
+ ]
18845
+ }, c.sha))
18846
+ })
18847
+ ] })
18848
+ ]
17380
18849
  }) : updateNotes.kind === "commits" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17381
18850
  className: Market_module_css_default.notesBody,
17382
18851
  children: [
@@ -17990,6 +19459,12 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
17990
19459
  }, [entries]);
17991
19460
  const [status, setStatus] = (0, react.useState)(null);
17992
19461
  const [update, setUpdate] = (0, react.useState)(null);
19462
+ const notificationSnapshot = useUpdateNotifications();
19463
+ (0, react.useEffect)(() => {
19464
+ if (!notificationSnapshot.loaded) return;
19465
+ const own = notificationSnapshot.updates["dsh-crate"];
19466
+ setUpdate(own === void 0 ? null : readUpdate(own));
19467
+ }, [notificationSnapshot.updates, notificationSnapshot.loaded]);
17993
19468
  const [phase, setPhase] = (0, react.useState)("idle");
17994
19469
  const [restoreConfirming, setRestoreConfirming] = (0, react.useState)(false);
17995
19470
  const [purge, setPurge] = (0, react.useState)(false);
@@ -18037,6 +19512,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18037
19512
  const body = await (await fetch(api("/dsh-crate/updates"), { cache: "no-store" })).json();
18038
19513
  const own = body.updates?.["dsh-crate"] ?? body.updates?.["dsh-crate"];
18039
19514
  if (live && own !== void 0) setUpdate(readUpdate(own));
19515
+ refreshUpdateNotifications();
18040
19516
  } catch {}
18041
19517
  })();
18042
19518
  return () => {
@@ -18107,6 +19583,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18107
19583
  t
18108
19584
  ]);
18109
19585
  const busy = phase === "working";
19586
+ const checkIncomplete = notificationSnapshot.loaded && notificationSnapshot.stale;
18110
19587
  const version = status?.version ?? null;
18111
19588
  const prerelease = version !== null && version.includes("-");
18112
19589
  /** Re-ask what this channel offers; the previous answer was for another one. */
@@ -18114,6 +19591,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18114
19591
  const body = await (await fetch(api("/dsh-crate/updates") + "?force=1", { cache: "no-store" })).json();
18115
19592
  const own = body.updates?.["dsh-crate"] ?? body.updates?.["dsh-crate"];
18116
19593
  setUpdate(own === void 0 ? null : readUpdate(own));
19594
+ refreshUpdateNotifications();
18117
19595
  }, []);
18118
19596
  /**
18119
19597
  * Select a channel — and show the one the SERVER accepted.
@@ -18316,7 +19794,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18316
19794
  id: advancedId,
18317
19795
  className: Market_module_css_default.setAdvancedBody
18318
19796
  }, entryRows.map((node, index) => (0, react.createElement)(react.Fragment, { key: index }, node))) : null) : null;
18319
- const body = phase === "removed" ? row(t("setSelfRemoved"), t("setSelfRemovedHint"), null) : (0, react.createElement)(react.Fragment, null, advanced, row(t("setIndexSource"), t("setIndexSourceHint"), null), status?.selfManaged === true ? row((update?.updateAvailable === true || update?.hostManaged === true) && update.latest !== null ? `${t("setSelfUpdateReady")} ${update.latest}` : update?.channelSwitch != null ? `${t("setChannelSwitch")} ${update.channelSwitch}` : t("setSelfUpToDate"), phase === "updated" ? t("setSelfUpdatedHint") : update?.channelSwitch != null ? t("setChannelSwitchHint") : update?.updateAvailable === true ? t("setSelfUpdateHint") : update?.hostManaged === true && update.latest !== null ? t("setSelfHostManagedHint") : t("setSelfUpToDateHint"), phase === "updated" ? null : update?.updateAvailable === true ? (0, react.createElement)(_deepseek_ai_dsh_client_ui_primitives.Button, {
19797
+ const body = phase === "removed" ? row(t("setSelfRemoved"), t("setSelfRemovedHint"), null) : (0, react.createElement)(react.Fragment, null, advanced, row(t("setIndexSource"), t("setIndexSourceHint"), null), status?.selfManaged === true ? row((update?.updateAvailable === true || update?.hostManaged === true) && update.latest !== null ? `${t("setSelfUpdateReady")} ${update.latest}` : update?.channelSwitch != null ? `${t("setChannelSwitch")} ${update.channelSwitch}` : checkIncomplete ? t("updateChecksFailed") : update === null ? t("updateChecksPending") : t("setSelfUpToDate"), phase === "updated" ? t("setSelfUpdatedHint") : update?.channelSwitch != null ? t("setChannelSwitchHint") : update?.updateAvailable === true ? t("setSelfUpdateHint") : update?.hostManaged === true && update.latest !== null ? t("setSelfHostManagedHint") : checkIncomplete ? t("updateChecksFailedHint") : t("setSelfUpToDateHint"), phase === "updated" ? null : update?.updateAvailable === true ? (0, react.createElement)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18320
19798
  variant: "primary",
18321
19799
  size: "sm",
18322
19800
  disabled: busy,
@@ -18503,7 +19981,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18503
19981
  //#endregion
18504
19982
  //#region src/client/settings-nav-icon.ts
18505
19983
  /**
18506
- * The market's block mark in the settings navigation.
19984
+ * The market's crate mark in the settings navigation.
18507
19985
  *
18508
19986
  * Hosts before dsh 0.2.2 pick nav glyphs from a closed list of section ids
18509
19987
  * (`models`, `agent-presets`, `plugins`) and fall back to the gear for every
@@ -18543,14 +20021,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18543
20021
  * The mark as standalone SVG for a CSS `mask-image`.
18544
20022
  *
18545
20023
  * Painted pure black on purpose: a mask reads alpha only, and the visible
18546
- * colour comes from the element's `background-color: currentColor`. The
18547
- * plug block carries its tilt without the animated variant's transform
18548
- * classes — a mask cannot animate through CSS-module classes.
20024
+ * colour comes from the element's `background-color: currentColor`. 菜单里的
20025
+ * 图标保持静态——扫光只属于内容页标题与加载态(见 `MarketLogo`)。
18549
20026
  */
18550
20027
  function marketMaskSvg() {
18551
- const blocks = MARK_GRID_BLOCKS.map((block) => `<rect x="${block.x}" y="${block.y}" width="${MARK_BLOCK_SIZE}" height="${MARK_BLOCK_SIZE}" rx="${MARK_BLOCK_RADIUS}"/>`).join("");
18552
- const plug = MARK_PLUG_BLOCK;
18553
- return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="#000"><g>${blocks}</g><rect x="${plug.x}" y="${plug.y}" width="${MARK_BLOCK_SIZE}" height="${MARK_BLOCK_SIZE}" rx="${MARK_BLOCK_RADIUS}" transform="rotate(${plug.degrees} ${plug.originX} ${plug.originY})"/></svg>`;
20028
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><g fill="none" stroke="#000" stroke-width="${MARK_STROKE_WIDTH}" stroke-linecap="butt" stroke-linejoin="miter"><rect x="${MARK_FRAME.x}" y="${MARK_FRAME.y}" width="${MARK_FRAME.width}" height="${MARK_FRAME.height}"/><path d="${MARK_PATH_D}"/></g></svg>`;
18554
20029
  }
18555
20030
  /** The mask URL for the mark (encoded at runtime, never hand-escaped). */
18556
20031
  function marketMaskUrl(svg = marketMaskSvg()) {
@@ -18576,8 +20051,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18576
20051
  `[${NAV_ICON_MARKER}]::before {`,
18577
20052
  ` content: '';`,
18578
20053
  ` flex: none;`,
18579
- ` width: 16px;`,
18580
- ` height: 16px;`,
20054
+ ` width: 14px;`,
20055
+ ` height: 14px;`,
18581
20056
  ` background-color: currentColor;`,
18582
20057
  ` -webkit-mask-image: url("${maskUrl}");`,
18583
20058
  ` mask-image: url("${maskUrl}");`,
@@ -18585,8 +20060,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18585
20060
  ` mask-repeat: no-repeat;`,
18586
20061
  ` -webkit-mask-position: center;`,
18587
20062
  ` mask-position: center;`,
18588
- ` -webkit-mask-size: 16px 16px;`,
18589
- ` mask-size: 16px 16px;`,
20063
+ ` -webkit-mask-size: 14px 14px;`,
20064
+ ` mask-size: 14px 14px;`,
18590
20065
  `}`
18591
20066
  ].join("\n");
18592
20067
  }
@@ -18778,6 +20253,233 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18778
20253
  };
18779
20254
  }
18780
20255
  //#endregion
20256
+ //#region src/client/PluginsUpdateIndicator.tsx
20257
+ /** Decorate the host's existing Plugins icon without replacing its button or page. */
20258
+ const DOT_STYLE = {
20259
+ position: "absolute",
20260
+ right: -2,
20261
+ top: -2,
20262
+ width: 6,
20263
+ height: 6,
20264
+ borderRadius: "50%",
20265
+ background: "var(--dsw-alias-state-error-primary, #e5484d)",
20266
+ boxShadow: "0 0 0 1.5px var(--dsw-alias-bg-base, #fff)",
20267
+ pointerEvents: "none"
20268
+ };
20269
+ const ANNOUNCEMENT_STYLE = {
20270
+ position: "absolute",
20271
+ width: 1,
20272
+ height: 1,
20273
+ padding: 0,
20274
+ margin: -1,
20275
+ overflow: "hidden",
20276
+ clipPath: "inset(50%)",
20277
+ whiteSpace: "nowrap",
20278
+ border: 0
20279
+ };
20280
+ /** The host may mount more than one responsive sidebar; any active copy is a visit. */
20281
+ function createIconActivity() {
20282
+ const instances = /* @__PURE__ */ new Map();
20283
+ const listeners = /* @__PURE__ */ new Set();
20284
+ let current;
20285
+ const publish = () => {
20286
+ const values = [...instances.values()];
20287
+ const next = values.includes(true) ? true : values.includes(false) ? false : void 0;
20288
+ if (next === current) return;
20289
+ current = next;
20290
+ for (const listener of listeners) listener();
20291
+ };
20292
+ return {
20293
+ getSnapshot: () => current,
20294
+ subscribe: (listener) => {
20295
+ listeners.add(listener);
20296
+ return () => {
20297
+ listeners.delete(listener);
20298
+ };
20299
+ },
20300
+ track: (active) => {
20301
+ const key = Symbol();
20302
+ instances.set(key, active);
20303
+ publish();
20304
+ return () => {
20305
+ instances.delete(key);
20306
+ publish();
20307
+ };
20308
+ }
20309
+ };
20310
+ }
20311
+ function PluginsUpdateIcon({ original: Original, owner, activity }) {
20312
+ const snapshot = useUpdateNotifications();
20313
+ (0, react.useLayoutEffect)(() => activity.track(owner.active), [activity, owner.active]);
20314
+ (0, react.useLayoutEffect)(() => {
20315
+ if (owner.active === true) acknowledgeUpdateNotifications(snapshot);
20316
+ }, [owner.active, snapshot]);
20317
+ const count = owner.active === false ? unseenNotificationNames(snapshot).length : 0;
20318
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
20319
+ "data-dsh-crate-plugins-indicator": "",
20320
+ style: {
20321
+ position: "relative",
20322
+ display: "inline-flex",
20323
+ lineHeight: 0
20324
+ },
20325
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Original, { ...owner }), count > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
20326
+ "data-dsh-crate-update-dot": "",
20327
+ "data-update-count": count,
20328
+ "aria-hidden": "true",
20329
+ style: DOT_STYLE
20330
+ }) : null]
20331
+ });
20332
+ }
20333
+ function UpdateAnnouncement({ t, locale, activity }) {
20334
+ (0, react.useSyncExternalStore)((listener) => locale.subscribe(listener), () => locale.getSnapshot().active, () => locale.getSnapshot().active);
20335
+ const active = (0, react.useSyncExternalStore)(activity.subscribe, activity.getSnapshot, activity.getSnapshot);
20336
+ const snapshot = useUpdateNotifications();
20337
+ const count = active === false ? unseenNotificationNames(snapshot).length : 0;
20338
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
20339
+ role: "status",
20340
+ "aria-live": "polite",
20341
+ "aria-atomic": "true",
20342
+ "data-dsh-crate-update-announcement": "",
20343
+ style: ANNOUNCEMENT_STYLE,
20344
+ children: count > 0 ? t("updateNotificationsAnnouncement").replace("{count}", String(count)) : ""
20345
+ });
20346
+ }
20347
+ /** Newer slot registries explicitly expose shadowing winners; older hosts keep their icon. */
20348
+ function supportsDecoration(slots) {
20349
+ if (slots === null || typeof slots !== "object") return false;
20350
+ return [
20351
+ "inject",
20352
+ "register",
20353
+ "entries",
20354
+ "entriesOfSlot",
20355
+ "subscribe"
20356
+ ].every((name) => typeof slots[name] === "function");
20357
+ }
20358
+ /**
20359
+ * Only a presentation-only native icon is wrapped. Its own injected business
20360
+ * face, store or child slots are never called or copied into another entry.
20361
+ */
20362
+ function canWrap(entry) {
20363
+ return isIconComponent(entry.component) && entry.inject === void 0 && entry.store === void 0 && (entry.children === void 0 || Object.keys(entry.children).length === 0);
20364
+ }
20365
+ function installPluginsUpdateIndicator(host, t, locale) {
20366
+ if (!supportsDecoration(host.slots)) return () => {};
20367
+ const slots = host.slots;
20368
+ let disposed = false;
20369
+ let stopIcon;
20370
+ let stopAnnouncement;
20371
+ const controllers = [];
20372
+ const activity = createIconActivity();
20373
+ const quietly = (stop) => {
20374
+ try {
20375
+ stop?.();
20376
+ } catch {}
20377
+ };
20378
+ const dispose = () => {
20379
+ if (disposed) return;
20380
+ disposed = true;
20381
+ quietly(stopIcon);
20382
+ quietly(stopAnnouncement);
20383
+ for (const stop of controllers.splice(0).reverse()) quietly(stop);
20384
+ };
20385
+ const install = (slot, callback) => {
20386
+ if (disposed) return;
20387
+ const off = slots.inject(slot, () => {
20388
+ if (disposed) return () => {};
20389
+ try {
20390
+ return callback();
20391
+ } catch {
20392
+ dispose();
20393
+ return () => {};
20394
+ }
20395
+ });
20396
+ if (typeof off === "function") {
20397
+ if (disposed) quietly(off);
20398
+ else controllers.push(off);
20399
+ }
20400
+ };
20401
+ try {
20402
+ install("sidebar.panellist", () => {
20403
+ let original;
20404
+ let Decoration;
20405
+ let stopDecoration;
20406
+ let closed = false;
20407
+ let reconciling = false;
20408
+ let changedWhileReconciling = false;
20409
+ const remove = () => {
20410
+ const stop = stopDecoration;
20411
+ stopDecoration = void 0;
20412
+ Decoration = void 0;
20413
+ original = void 0;
20414
+ quietly(stop);
20415
+ };
20416
+ const reconcile = () => {
20417
+ if (closed || disposed) return;
20418
+ if (reconciling) {
20419
+ changedWhileReconciling = true;
20420
+ return;
20421
+ }
20422
+ reconciling = true;
20423
+ try {
20424
+ const entries = slots.entries("sidebar.panellist").filter((entry) => entry.options.id === "plugins" && entry.component !== Decoration);
20425
+ const next = entries.length === 1 && (entries[0].options.priority ?? 0) === 0 && canWrap(entries[0]) ? entries[0] : void 0;
20426
+ if (next === original) return;
20427
+ remove();
20428
+ if (next === void 0) return;
20429
+ if (slots.entriesOfSlot("sidebar.panellist").find((entry) => entry.options.id === "plugins") !== next) return;
20430
+ const Original = next.component;
20431
+ Decoration = (owner) => (0, react.createElement)(PluginsUpdateIcon, {
20432
+ original: Original,
20433
+ owner,
20434
+ activity
20435
+ });
20436
+ const off = slots.register({
20437
+ name: "sidebar.panellist",
20438
+ id: "plugins",
20439
+ priority: -1,
20440
+ ...next.options.order === void 0 ? {} : { order: next.options.order },
20441
+ ...next.options.label === void 0 ? {} : { label: next.options.label },
20442
+ ...next.locale === void 0 ? {} : { locale: next.locale }
20443
+ }, Decoration);
20444
+ original = next;
20445
+ stopDecoration = typeof off === "function" ? off : void 0;
20446
+ } catch {
20447
+ dispose();
20448
+ } finally {
20449
+ reconciling = false;
20450
+ if (changedWhileReconciling) {
20451
+ changedWhileReconciling = false;
20452
+ queueMicrotask(reconcile);
20453
+ }
20454
+ }
20455
+ };
20456
+ const unsubscribe = slots.subscribe("sidebar.panellist", reconcile);
20457
+ stopIcon = () => {
20458
+ closed = true;
20459
+ quietly(unsubscribe);
20460
+ remove();
20461
+ };
20462
+ reconcile();
20463
+ return stopIcon;
20464
+ });
20465
+ install("shell.overlay", () => {
20466
+ const off = slots.register({
20467
+ name: "shell.overlay",
20468
+ id: "dsh-crate-update-announcement"
20469
+ }, () => (0, react.createElement)(UpdateAnnouncement, {
20470
+ t,
20471
+ locale,
20472
+ activity
20473
+ }));
20474
+ stopAnnouncement = typeof off === "function" ? off : () => {};
20475
+ return stopAnnouncement;
20476
+ });
20477
+ } catch {
20478
+ dispose();
20479
+ }
20480
+ return dispose;
20481
+ }
20482
+ //#endregion
18781
20483
  //#region src/client/index.ts
18782
20484
  /**
18783
20485
  * dsh-crate client: registers a "Market" settings section rendering the
@@ -18844,6 +20546,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18844
20546
  ja
18845
20547
  }), "dsh-crate: dictionaries");
18846
20548
  const t = ctx.locale.bind(NS);
20549
+ ctx.effect(() => updateNotifications.start(), "dsh-crate: update snapshots");
20550
+ ctx.effect(() => installPluginsUpdateIndicator(ctx, t, ctx.locale), "dsh-crate: Plugins update indicator");
18847
20551
  let stopNavStandIn;
18848
20552
  let hostPaintsNavIcon = false;
18849
20553
  ctx.slots.inject("settings.section.icon", () => {
@@ -18853,7 +20557,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18853
20557
  const off = ctx.slots.register({
18854
20558
  name: "settings.section.icon",
18855
20559
  id: "market"
18856
- }, (owner = {}) => (0, react.createElement)(MarketLogo, { size: owner.size ?? 16 }));
20560
+ }, () => (0, react.createElement)(MarketLogo, {
20561
+ size: 16,
20562
+ inset: 1.4375
20563
+ }));
18857
20564
  return typeof off === "function" ? off : () => {};
18858
20565
  });
18859
20566
  if (!hostPaintsNavIcon) stopNavStandIn = installSettingsNavIcon(ctx, () => t("nav"));
@@ -18941,7 +20648,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18941
20648
  order: 1,
18942
20649
  label: () => t("nav"),
18943
20650
  locale: NS
18944
- }, ((owner = {}) => (0, react.createElement)(MarketLogo, { size: owner.size ?? 16 })));
20651
+ }, (() => (0, react.createElement)(MarketLogo, {
20652
+ size: 16,
20653
+ inset: 1.4375
20654
+ })));
18945
20655
  return () => {
18946
20656
  if (layout?.panelInfo.getSnapshot().activePanelId === "dsh-crate") layout.selectPanel(null);
18947
20657
  if (typeof offRow === "function") offRow();