dsh-xiaomi-tts 4.2.2 → 4.2.3

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 (52) hide show
  1. package/README.md +6 -2
  2. package/assets/ui/provider-doubao-logo.png +0 -0
  3. package/assets/ui/provider-mimo-logo.png +0 -0
  4. package/assets/ui/qq-group.webp +0 -0
  5. package/lib/client/announcements/dsh-pet.d.ts.map +1 -1
  6. package/lib/client/announcements/host-source.d.ts.map +1 -1
  7. package/lib/client/history/audio-history-page.d.ts.map +1 -1
  8. package/lib/client/index.d.ts.map +1 -1
  9. package/lib/client/localization.d.ts +90 -79
  10. package/lib/client/localization.d.ts.map +1 -1
  11. package/lib/client/settings/announcement-settings.d.ts +14 -14
  12. package/lib/client/settings/announcement-settings.d.ts.map +1 -1
  13. package/lib/client/settings/api-key-module.d.ts +1 -3
  14. package/lib/client/settings/api-key-module.d.ts.map +1 -1
  15. package/lib/client/settings/api-key-state.d.ts +2 -2
  16. package/lib/client/settings/api-key-state.d.ts.map +1 -1
  17. package/lib/client/settings/card.d.ts.map +1 -1
  18. package/lib/client/settings/collapsible-module.d.ts +2 -1
  19. package/lib/client/settings/collapsible-module.d.ts.map +1 -1
  20. package/lib/client/settings/details-module.d.ts.map +1 -1
  21. package/lib/client/settings/module-shell.d.ts +2 -1
  22. package/lib/client/settings/module-shell.d.ts.map +1 -1
  23. package/lib/client/settings/plugin-links.d.ts +9 -0
  24. package/lib/client/settings/plugin-links.d.ts.map +1 -0
  25. package/lib/client/settings/preview-module.d.ts.map +1 -1
  26. package/lib/client/settings/save-settings.d.ts.map +1 -1
  27. package/lib/client/settings/sound-effects-module.d.ts.map +1 -1
  28. package/lib/client/settings/types.d.ts +3 -1
  29. package/lib/client/settings/types.d.ts.map +1 -1
  30. package/lib/client/settings/update-status.d.ts +6 -0
  31. package/lib/client/settings/update-status.d.ts.map +1 -0
  32. package/lib/client/settings/voice-reading-links.d.ts +16 -0
  33. package/lib/client/settings/voice-reading-links.d.ts.map +1 -0
  34. package/lib/client/settings/voice-reading-options.d.ts +3 -0
  35. package/lib/client/settings/voice-reading-options.d.ts.map +1 -1
  36. package/lib/client/settings/voice-reading-provider.d.ts +12 -0
  37. package/lib/client/settings/voice-reading-provider.d.ts.map +1 -0
  38. package/lib/client/settings/voice-reading-section.d.ts +1 -0
  39. package/lib/client/settings/voice-reading-section.d.ts.map +1 -1
  40. package/lib/client/settings/voice-reading-warning.d.ts +12 -0
  41. package/lib/client/settings/voice-reading-warning.d.ts.map +1 -0
  42. package/lib/client/sound-effects/index.d.ts.map +1 -1
  43. package/lib/client.js +1001 -408
  44. package/lib/constants.d.ts +10 -1
  45. package/lib/constants.d.ts.map +1 -1
  46. package/lib/index.d.ts.map +1 -1
  47. package/lib/index.js +15 -2
  48. package/lib/pcm-stream.js +1 -1
  49. package/lib/{shared-CYv3_bwU.js → shared-CRBu_ymc.js} +1 -1
  50. package/lib/shared.js +3 -3
  51. package/lib/{utils-nJe4yaJV.js → utils-CxcKs8ke.js} +12 -3
  52. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -59,10 +59,19 @@ const TTS_PROVIDER_CHARACTER_ASSET_ROUTES = {
59
59
  xiaomi: "/plugins/xiaomi-mimo-tts/provider-mimo.webp",
60
60
  doubao: "/plugins/xiaomi-mimo-tts/provider-doubao.webp"
61
61
  };
62
+ /** Provider brand marks used by the Voice reading selector. */
63
+ const TTS_PROVIDER_LOGO_ASSET_ROUTES = {
64
+ xiaomi: "/plugins/xiaomi-mimo-tts/provider-mimo-logo.png",
65
+ doubao: "/plugins/xiaomi-mimo-tts/provider-doubao-logo.png"
66
+ };
62
67
  /** Same-origin route used by the Web client to load the API-key whale mascot sheet. */
63
68
  const TTS_API_KEY_WHALE_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/api-key-whale.webp";
64
69
  /** Same-origin illustration for an empty audio history. */
65
70
  const TTS_HISTORY_EMPTY_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/history-empty-whale.webp";
71
+ /** Same-origin QR code for the plugin's QQ discussion group. */
72
+ const TTS_QQ_GROUP_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/qq-group.webp";
73
+ /** Public QQ discussion group the plugin links to. */
74
+ const TTS_QQ_GROUP_NUMBER = "1104616387";
66
75
  /** Same-origin prefix used by the Web client to load switch feedback sounds. */
67
76
  const TTS_TOGGLE_AUDIO_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/audio";
68
77
  /** Bundled switch feedback sounds grouped by the state they announce. */
@@ -274,7 +283,7 @@ function getSoundEffectsModeFlags(mode) {
274
283
  }
275
284
  const DEFAULT_SOUND_SETTINGS = {
276
285
  soundEnabled: false,
277
- soundVolume: .35,
286
+ soundVolume: .7,
278
287
  soundPack: "zen",
279
288
  taskSounds: false,
280
289
  clickSounds: false
@@ -407,6 +416,7 @@ function normalizeVoiceRate(value) {
407
416
 
408
417
  //#endregion
409
418
  //#region src/types/providers.ts
419
+ const TTS_PROVIDERS = ["xiaomi", "doubao"];
410
420
  const DOUBAO_TTS_MODELS = ["seed-tts-2.0", "seed-icl-2.0"];
411
421
  function ttsSelection(settings) {
412
422
  return settings.provider === "doubao" ? {
@@ -1045,6 +1055,20 @@ function IconBase(props) {
1045
1055
 
1046
1056
  //#endregion
1047
1057
  //#region node_modules/.pnpm/react-icons@5.7.0_react@19.3.0/node_modules/react-icons/ri/index.mjs
1058
+ function RiKey2Line(props) {
1059
+ return GenIcon({
1060
+ "tag": "svg",
1061
+ "attr": {
1062
+ "viewBox": "0 0 24 24",
1063
+ "fill": "currentColor"
1064
+ },
1065
+ "child": [{
1066
+ "tag": "path",
1067
+ "attr": { "d": "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" },
1068
+ "child": []
1069
+ }]
1070
+ })(props);
1071
+ }
1048
1072
  function RiVoiceAiFill(props) {
1049
1073
  return GenIcon({
1050
1074
  "tag": "svg",
@@ -1059,6 +1083,76 @@ function RiVoiceAiFill(props) {
1059
1083
  }]
1060
1084
  })(props);
1061
1085
  }
1086
+ function RiRadio2Line(props) {
1087
+ return GenIcon({
1088
+ "tag": "svg",
1089
+ "attr": {
1090
+ "viewBox": "0 0 24 24",
1091
+ "fill": "currentColor"
1092
+ },
1093
+ "child": [{
1094
+ "tag": "path",
1095
+ "attr": { "d": "M6 3V1H8V3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H6ZM4 5V19H20V5H4ZM9 15C7.34315 15 6 13.6569 6 12C6 10.3431 7.34315 9 9 9C10.6569 9 12 10.3431 12 12C12 13.6569 10.6569 15 9 15ZM14 9H18V11H14V9ZM14 13H18V15H14V13Z" },
1096
+ "child": []
1097
+ }]
1098
+ })(props);
1099
+ }
1100
+ function RiEqualizerLine(props) {
1101
+ return GenIcon({
1102
+ "tag": "svg",
1103
+ "attr": {
1104
+ "viewBox": "0 0 24 24",
1105
+ "fill": "currentColor"
1106
+ },
1107
+ "child": [{
1108
+ "tag": "path",
1109
+ "attr": { "d": "M6.17071 18C6.58254 16.8348 7.69378 16 9 16C10.3062 16 11.4175 16.8348 11.8293 18H22V20H11.8293C11.4175 21.1652 10.3062 22 9 22C7.69378 22 6.58254 21.1652 6.17071 20H2V18H6.17071ZM12.1707 11C12.5825 9.83481 13.6938 9 15 9C16.3062 9 17.4175 9.83481 17.8293 11H22V13H17.8293C17.4175 14.1652 16.3062 15 15 15C13.6938 15 12.5825 14.1652 12.1707 13H2V11H12.1707ZM6.17071 4C6.58254 2.83481 7.69378 2 9 2C10.3062 2 11.4175 2.83481 11.8293 4H22V6H11.8293C11.4175 7.16519 10.3062 8 9 8C7.69378 8 6.58254 7.16519 6.17071 6H2V4H6.17071ZM9 6C9.55228 6 10 5.55228 10 5C10 4.44772 9.55228 4 9 4C8.44772 4 8 4.44772 8 5C8 5.55228 8.44772 6 9 6ZM15 13C15.5523 13 16 12.5523 16 12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12C14 12.5523 14.4477 13 15 13ZM9 20C9.55228 20 10 19.5523 10 19C10 18.4477 9.55228 18 9 18C8.44772 18 8 18.4477 8 19C8 19.5523 8.44772 20 9 20Z" },
1110
+ "child": []
1111
+ }]
1112
+ })(props);
1113
+ }
1114
+ function RiDiscLine(props) {
1115
+ return GenIcon({
1116
+ "tag": "svg",
1117
+ "attr": {
1118
+ "viewBox": "0 0 24 24",
1119
+ "fill": "currentColor"
1120
+ },
1121
+ "child": [{
1122
+ "tag": "path",
1123
+ "attr": { "d": "M15 4.58152V12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C12.3506 9 12.6872 9.06016 13 9.17071V2.04938C18.0533 2.5511 22 6.81465 22 12C22 17.5229 17.5228 22 12 22C6.47715 22 2 17.5229 2 12C2 6.81465 5.94668 2.5511 11 2.04938V4.0619C7.05369 4.55399 4 7.92038 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 8.64262 17.9318 5.76829 15 4.58152Z" },
1124
+ "child": []
1125
+ }]
1126
+ })(props);
1127
+ }
1128
+ function RiSwitchFill(props) {
1129
+ return GenIcon({
1130
+ "tag": "svg",
1131
+ "attr": {
1132
+ "viewBox": "0 0 24 24",
1133
+ "fill": "currentColor"
1134
+ },
1135
+ "child": [{
1136
+ "tag": "path",
1137
+ "attr": { "d": "M13.62 21C13.5351 21 13.4786 20.9434 13.4927 20.8727V3.12726C13.4927 3.0707 13.5351 3.01414 13.6058 3.01414H16.3914C18.9366 3.01414 21.001 5.07855 21.001 7.62372V16.3904C21.001 18.9356 18.9366 21 16.3914 21H13.62ZM17.0418 11.0738C16.0379 11.0738 15.2178 11.894 15.2178 12.8979C15.2178 13.9018 16.0379 14.7219 17.0418 14.7219C18.0458 14.7219 18.8659 13.9018 18.8659 12.8979C18.8659 11.894 18.0458 11.0738 17.0418 11.0738ZM5.80066 8.40141C5.80066 7.46819 6.56421 6.70463 7.49744 6.70463C8.43067 6.70463 9.19422 7.46819 9.19422 8.40141C9.19422 9.33464 8.43067 10.0982 7.49744 10.0982C6.56421 10.0982 5.80066 9.33464 5.80066 8.40141ZM11.5414 3C11.6263 3 11.6828 3.05656 11.6687 3.12726V20.8586C11.6687 20.9293 11.6121 20.9859 11.5414 20.9859H7.61056C5.06539 20.9859 3.00098 18.9214 3.00098 16.3763V7.60958C3.00098 5.06441 5.06539 3 7.61056 3H11.5414ZM10.2264 19.5436V4.44226H7.61056C6.76217 4.44226 5.97034 4.78162 5.37647 5.37549C4.76846 5.96936 4.44324 6.76119 4.44324 7.60958V16.3763C4.44324 17.2247 4.78259 18.0165 5.37647 18.6104C5.97034 19.2184 6.76217 19.5436 7.61056 19.5436H10.2264Z" },
1138
+ "child": []
1139
+ }]
1140
+ })(props);
1141
+ }
1142
+ function RiArrowLeftSLine(props) {
1143
+ return GenIcon({
1144
+ "tag": "svg",
1145
+ "attr": {
1146
+ "viewBox": "0 0 24 24",
1147
+ "fill": "currentColor"
1148
+ },
1149
+ "child": [{
1150
+ "tag": "path",
1151
+ "attr": { "d": "M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z" },
1152
+ "child": []
1153
+ }]
1154
+ })(props);
1155
+ }
1062
1156
 
1063
1157
  //#endregion
1064
1158
  //#region src/client/settings/scope.ts
@@ -11590,9 +11684,9 @@ function SessionPlaybackObserver({ sessionId, useSession, useChat, playback, liv
11590
11684
  const NS = "xiaomi-mimo-tts";
11591
11685
  const zh = {
11592
11686
  "settings.announcementsApprovals": "审批提醒",
11593
- "settings.announcementsApprovalsHint": "提醒当前会话中新增的待审批操作,默认关闭;处理或撤回后停止。",
11687
+ "settings.announcementsApprovalsHint": "提醒当前会话的待审批操作;处理或撤回后停止",
11594
11688
  "settings.announcementsJobs": "后台任务结果",
11595
- "settings.announcementsJobsHint": "播报当前会话中观察到的后台任务结束、失败或取消,默认关闭;需 DSH 提供任务服务。",
11689
+ "settings.announcementsJobsHint": "播报当前会话中已观察到的任务结果;需启用任务服务",
11596
11690
  "announcements.approval": "有一项操作等待你确认。",
11597
11691
  "announcements.job": "后台任务",
11598
11692
  "announcements.jobCompleted": "已结束。",
@@ -11601,13 +11695,15 @@ const zh = {
11601
11695
  "settings.soundEffectsScope": "音效范围",
11602
11696
  "settings.announcementsWhale": "dsh-whale-musume",
11603
11697
  "settings.announcementsQuestions": "提问卡片标题",
11604
- "settings.announcementsPetHint": "播报桌宠的碎碎念、聊天回复和投喂文字。",
11605
- "settings.announcementsWhaleHint": "接收鲸鱼娘通过语音接口发起的播报,默认开启。",
11606
- "settings.announcementsQuestionsHint": "跟随自动播报,只读当前题目的标题;翻题或关闭卡片时停止。",
11698
+ "settings.announcementsPetHint": "播报桌宠闲聊、回复和投喂文字",
11699
+ "settings.announcementsWhaleHint": "接收鲸鱼娘的语音播报",
11700
+ "settings.announcementsQuestionsHint": "随自动播报朗读当前题目;翻题或关闭时停止",
11607
11701
  "settings.announcementsNone": "未启用来源",
11608
11702
  "settings.announcementsTitle": "播报来源",
11703
+ "settings.announcementsPlugins": "插件联动",
11704
+ "settings.announcementsPluginsHint": "需安装并启用对应插件",
11609
11705
  "settings.announcementsPet": "dsh-pet",
11610
- "settings.announcementsHint": "需开启语音并保持 DSH 网页打开;收集到的文字在语音忙碌时跳过,不补播。",
11706
+ "settings.announcementsHint": "需开启语音并保持网页打开;忙碌时跳过,不补播",
11611
11707
  "settings.provider": "语音服务商",
11612
11708
  "settings.providerXiaomi": "小米 MiMo",
11613
11709
  "settings.providerDoubao": "豆包语音",
@@ -11616,10 +11712,10 @@ const zh = {
11616
11712
  "settings.doubaoCloneModel": "声音复刻(seed-icl-2.0)",
11617
11713
  "settings.speechInstruction": "语音指令",
11618
11714
  "settings.speechInstructionPresets": "语音指令预设",
11619
- "settings.speechInstructionPlaceholder": "例如:语气带一点害羞,又藏着温柔的期待。",
11620
- "settings.speechInstructionHint": "可描述情绪、语气或表达风格;留空使用默认表达。实际效果随音色而异。",
11715
+ "settings.speechInstructionPlaceholder": "例如:温柔、轻快、像讲故事一样",
11716
+ "settings.speechInstructionHint": "描述情绪、语气或风格;留空使用默认表达",
11621
11717
  "settings.speechInstructionInfo": "语音指令效果说明",
11622
- "settings.speechInstructionLimitations": "小米与豆包标准合成共用这套预设,各自保存指令。\n效果取决于模型、音色和文本;方言、哭腔、悄悄话等不保证准确呈现,两家效果可能不同。\n浏览器本地语音不支持这些指令;豆包复刻模式暂不支持。建议先试听。",
11718
+ "settings.speechInstructionLimitations": "小米与豆包标准合成分别保存指令;效果随模型、音色和文本而异,建议先试听。\n本地语音和豆包复刻暂不支持",
11623
11719
  "settings.speechInstructionNatural": "自然表达",
11624
11720
  "settings.speechInstructionGentle": "温柔",
11625
11721
  "settings.speechInstructionGentlePrompt": "用温柔、亲切自然的语气说话。",
@@ -11659,7 +11755,7 @@ const zh = {
11659
11755
  "settings.speechInstructionSichuanPrompt": "用自然的四川话口音说这段话,保持日常聊天的感觉。",
11660
11756
  "settings.speechInstructionBeijing": "北京话",
11661
11757
  "settings.speechInstructionBeijingPrompt": "用自然的北京话口音说这段话,带一点儿化音,像日常闲聊。",
11662
- "settings.doubaoKeyConfigured": "豆包 API Key 已配置;试听可确认权限与音色是否可用。",
11758
+ "settings.doubaoKeyConfigured": "密钥已保存,请试听确认权限与音色",
11663
11759
  "settings.doubaoCustomVoice": "自定义音色 ID",
11664
11760
  "settings.doubaoCustomVoiceHint": "填写其他标准音色的 ID",
11665
11761
  "settings.doubaoVoiceSceneGeneral": "日常陪伴",
@@ -11672,26 +11768,27 @@ const zh = {
11672
11768
  "settings.doubaoClonedVoiceLabel": "复刻音色",
11673
11769
  "settings.doubaoStandardVoiceHistory": "标准音色 ID 历史",
11674
11770
  "settings.doubaoClonedVoiceHistory": "复刻音色 ID 历史",
11675
- "settings.doubaoCloneHint": "填写豆包控制台中已创建的复刻音色 ID。",
11771
+ "settings.doubaoCloneHint": "填写豆包控制台创建的音色 ID",
11676
11772
  "settings.doubaoVoiceLibrary": "打开音色库",
11677
11773
  "settings.doubaoCreateVoice": "创建一个音色",
11678
- "settings.doubaoVoiceRequired": "请填写所选豆包模型的音色 ID。",
11679
- "settings.doubaoStreamingHint": "同一条回复持续追加文本,边生成边播放。",
11774
+ "settings.doubaoVoiceRequired": "请填写所选豆包模型的音色 ID",
11775
+ "settings.doubaoStreamingHint": "边生成边播放",
11680
11776
  "settings.previewLoadingDoubao": "正在连接豆包语音…",
11681
- "settings.previewPlayingDoubao": "豆包语音播放中,再点停止",
11682
- "settings.previewCompletedDoubao": "豆包试听完成。",
11683
- "settings.previewSaveKeyFirst": "请先保存 API Key,再试听。",
11684
- "settings.previewErrorVoiceUnavailable": "音色不可用,请检查音色 ID、模型及音色授权。",
11685
- "settings.previewErrorResourceUnavailable": "当前 Key 未开通所选豆包模型资源。",
11686
- "settings.previewErrorBufferLimit": "音频缓存已达上限,播放已停止。",
11777
+ "settings.previewPlayingDoubao": "豆包播放中,点击停止",
11778
+ "settings.previewCompletedDoubao": "豆包试听完成",
11779
+ "settings.previewSaveKeyFirst": "请先保存 API Key,再试听",
11780
+ "settings.previewErrorVoiceUnavailable": "音色不可用,请检查音色 ID、模型及音色授权",
11781
+ "settings.previewErrorResourceUnavailable": "当前 Key 未开通所选豆包模型资源",
11782
+ "settings.previewErrorBufferLimit": "音频缓存已达上限,播放已停止",
11687
11783
  "error.voiceUnavailable": "音色不可用,请检查模型、音色 ID 及权限。",
11688
11784
  "error.resourceUnavailable": "当前 Key 未开通所选模型资源。",
11689
11785
  "error.apiKeyRejected": "语音 API Key 鉴权失败,请检查设置。",
11690
11786
  "error.rateLimited": "语音服务限流,请稍后重试。",
11691
11787
  "error.timeout": "语音合成超时,请重试。",
11692
11788
  "error.bufferLimit": "音频缓存已达上限,播放已停止。",
11693
- "history.title": "音频历史",
11789
+ "history.title": "音频",
11694
11790
  "history.back": "返回",
11791
+ "history.backToSettings": "返回设置页",
11695
11792
  "history.search": "搜索音频摘要",
11696
11793
  "history.source": "来源",
11697
11794
  "history.all": "全部",
@@ -11700,11 +11797,11 @@ const zh = {
11700
11797
  "history.expand": "展开或收起摘要",
11701
11798
  "history.noResults": "没有匹配的音频。",
11702
11799
  "history.resetFilters": "重置查找条件",
11703
- "history.savedHere": "本浏览器保存",
11800
+ "history.savedHere": "已保存",
11704
11801
  "history.temporary": "仅本次打开有效",
11705
11802
  "history.clearConfirm": "清空全部音频历史?不受查找条件影响,且无法撤销。",
11706
11803
  "history.confirmDelete": "确认删除",
11707
- "history.confirmClear": "确认清空全部",
11804
+ "history.confirmClear": "确认",
11708
11805
  "history.cancel": "取消",
11709
11806
  "history.actionFailed": "操作未完成,请重试。",
11710
11807
  "history.player": "历史音频播放器",
@@ -11721,7 +11818,7 @@ const zh = {
11721
11818
  "history.error.blocked": "浏览器阻止了播放,请点击重试播放。",
11722
11819
  "history.error.decode": "浏览器无法解码这条音频,可重试或下载文件。",
11723
11820
  "history.error.failed": "音频播放失败,请重试或下载文件。",
11724
- "history.hint": "保留最近 100 条 / 100 MB,超出后自动清理。按生成批次列出;",
11821
+ "history.hint": "最多 100 条 / 100 MB",
11725
11822
  "history.empty": "还没有生成的音频。朗读或试听后会自动保存在这里。",
11726
11823
  "history.loading": "正在读取音频历史…",
11727
11824
  "history.memory": "浏览器存储不可用或已满;当前列表仅在本次打开期间保留,建议及时下载。",
@@ -11729,7 +11826,7 @@ const zh = {
11729
11826
  "history.listen": "重听音频",
11730
11827
  "history.download": "下载",
11731
11828
  "history.delete": "删除",
11732
- "history.clear": "清空历史",
11829
+ "history.clear": "清空",
11733
11830
  "history.conversation": "对话朗读",
11734
11831
  "history.preview": "设置试听",
11735
11832
  "history.service": "服务播放",
@@ -11750,7 +11847,7 @@ const zh = {
11750
11847
  "error.localAudioDevice": "音频设备异常,请检查系统声音设置。",
11751
11848
  "error.localSynthesis": "语音合成失败。",
11752
11849
  "settings.title": "语音朗读 (Xiaomi MiMo)",
11753
- "settings.description": "在对话中使用 Xiaomi MiMo TTS 生成并播放语音。",
11850
+ "settings.description": "使用小米 MiMo 或豆包朗读对话",
11754
11851
  "settings.minimalMode": "极简模式",
11755
11852
  "settings.minimalModeOn": "已开启",
11756
11853
  "settings.minimalModeOff": "已关闭",
@@ -11759,18 +11856,16 @@ const zh = {
11759
11856
  "settings.enabled": "语音播报",
11760
11857
  "settings.enabledOnLabel": "开麦啦",
11761
11858
  "settings.enabledOffLabel": "休息一会儿",
11762
- "settings.enabledHint": "关闭后会隐藏语音设置并停止自动播报。",
11859
+ "settings.enabledHint": "关闭后隐藏语音设置并停止自动播报",
11763
11860
  "settings.apiKey": "API Key",
11764
- "settings.apiKeyStatus": "只有输入新值并保存时才会替换现有密钥。",
11765
- "settings.apiKeyLoading": "正在读取 Host 中的密钥…",
11766
- "settings.apiKeyMissing": "尚未保存当前服务商的 API Key。请先填写并保存,再进行试听。",
11767
- "settings.apiKeyRecognized": "已保存 MiMo API Key,格式已识别;可通过播报台确认实际连接。",
11768
- "settings.apiKeyUnsupported": "密钥格式未识别,请检查是否以 sk- 或 tp- 开头。",
11769
- "settings.apiKeyUnsupportedSaved": "已保存密钥的格式未识别;请填写新密钥或清除已保存的密钥。",
11770
- "settings.apiKeyUnavailable": "暂时无法读取 Host 密钥状态,请检查连接后重试。",
11771
- "settings.apiKeyPendingSave": "新密钥待保存;保存后才会用于试听。",
11772
- "settings.apiKeyPendingClear": "保存后将清除已保存的密钥;如有基础配置,将恢复继承。",
11773
- "settings.apiKeyClear": "清除",
11861
+ "settings.apiKeyStatus": "输入并保存新密钥后才会替换",
11862
+ "settings.apiKeyLoading": "正在读取密钥…",
11863
+ "settings.apiKeyMissing": "请填写并保存当前服务商的 API Key",
11864
+ "settings.apiKeyRecognized": "密钥格式有效,请试听确认连接",
11865
+ "settings.apiKeyUnsupported": "密钥须以 sk- 或 tp- 开头",
11866
+ "settings.apiKeyUnsupportedSaved": "已存密钥格式不受支持,请更换",
11867
+ "settings.apiKeyUnavailable": "无法读取密钥状态,请检查连接",
11868
+ "settings.apiKeyPendingSave": "保存后可用新密钥试听",
11774
11869
  "settings.getApiKey": "获取 API Key",
11775
11870
  "settings.apiKeyIdleCopy1": "我可以睁眼了吗?",
11776
11871
  "settings.apiKeyIdleCopy2": "密钥藏好了吗?",
@@ -11783,39 +11878,47 @@ const zh = {
11783
11878
  "settings.autoPlay": "自动播报",
11784
11879
  "settings.autoPlayOnLabel": "主动念给你听",
11785
11880
  "settings.autoPlayOffLabel": "等你叫我再念",
11786
- "settings.autoPlayHint": "浏览器可能会拒绝自动播放。",
11881
+ "settings.autoPlayHint": "浏览器可能阻止自动播放",
11787
11882
  "settings.voiceReadingNav": "语音朗读",
11788
11883
  "settings.voiceReadingTitle": "语音朗读",
11789
- "settings.voiceReadingIntro": "选择朗读音色,并控制自动播报与界面音效。修改会立即写入当前插件的语音设置",
11884
+ "settings.voiceReadingSource": "GitHub 源码",
11885
+ "settings.voiceReadingQq": "QQ 交流群",
11886
+ "settings.voiceReadingQqCodeAlt": "QQ 交流群二维码",
11887
+ "settings.voiceReadingQqClose": "关闭二维码",
11888
+ "settings.voiceReadingPluginSettings": "插件设置",
11889
+ "settings.voiceReadingWarningDisabled": "语音未开启,请在{settings}开启",
11890
+ "settings.voiceReadingWarningApiKeyMissing": "缺少 API Key,请在{settings}填写",
11891
+ "settings.voiceReadingWarningApiKeyInvalid": "API Key 格式不受支持,请检查{settings}",
11892
+ "settings.voiceReadingWarningApiKeyUnavailable": "无法检查 API Key,请检查连接",
11893
+ "settings.voiceReadingWarningVoiceRequired": "未选音色,请选择或在{settings}填写",
11894
+ "settings.voiceReadingDismissWarning": "关闭提醒",
11895
+ "settings.voiceReadingIntro": "修改即时生效,更多选项见",
11790
11896
  "settings.voiceReadingVoice": "朗读音色",
11791
11897
  "settings.voiceReadingHintXiaomi": "小米 MiMo 内置音色",
11792
- "settings.voiceReadingHintVoiceDesign": "声音设计模型按描述生成音色,选择预设会同时更新音色描述",
11898
+ "settings.voiceReadingHintVoiceDesign": "按描述生成音色,选择预设可更新描述",
11793
11899
  "settings.voiceReadingHintDoubaoStandard": "豆包标准合成音色",
11794
- "settings.voiceReadingHintDoubaoCloned": "豆包声音复刻使用音色 ID,可选用过的 ID",
11900
+ "settings.voiceReadingHintDoubaoCloned": "选择用过的复刻音色 ID",
11795
11901
  "settings.voiceReadingCustomVoice": "自定义(当前)",
11796
11902
  "settings.voiceReadingVolume": "朗读音量",
11797
- "settings.voiceReadingVolumeHint": "朗读声音的大小,与调音台中的语音音量是同一项设置",
11798
11903
  "settings.voiceReadingRate": "朗读语速",
11799
- "settings.voiceReadingRateHint": "1.0× 为原速;豆包在合成时应用,小米与本地语音在播放时应用",
11800
11904
  "settings.voiceReadingAutoPlay": "自动播报",
11801
- "settings.voiceReadingAutoPlayHint": "收到新的回复会自动朗读",
11802
11905
  "settings.voiceReadingSound": "音效",
11803
- "settings.voiceReadingSoundHint": "播放点击与任务完成音效",
11804
- "settings.voiceReadingReadOnly": "当前部署的设置为只读,无法保存",
11805
- "settings.voiceReadingUnavailable": "当前部署未提供语音设置",
11906
+ "settings.voiceReadingSoundHint": "播放点击与任务音效",
11907
+ "settings.voiceReadingReadOnly": "设置只读,无法修改",
11908
+ "settings.voiceReadingUnavailable": "语音设置不可用",
11806
11909
  "settings.voiceReadingSaveFailed": "保存失败,请重试",
11807
11910
  "settings.detailedVoiceConfig": "调音台",
11808
11911
  "settings.voiceVolume": "语音音量",
11809
11912
  "settings.voiceRate": "播放语速",
11810
- "settings.voiceRateHint": "支持 0.5×–2.0×,1.0× 为原速。\n豆包:合成时应用语速,下次合成生效。\n小米与本地语音:播放时调速;小米流式播放会同时改变音调。",
11913
+ "settings.voiceRateHint": "0.5×–2.0×,1.0× 为原速。\n豆包下次合成生效;小米和本地语音播放时生效,小米流式播放会改变音调",
11811
11914
  "settings.voiceRateInfo": "播放语速说明",
11812
11915
  "settings.readScope": "朗读范围",
11813
11916
  "settings.readScopeSmart": "智能模式",
11814
11917
  "settings.readScopeFull": "全文模式",
11815
11918
  "settings.readScopeFirstSegment": "首段模式",
11816
- "settings.readScopeSmartHint": "自动播报短回复全文;长回复朗读开头两段,未读内容较多时随机补一句收尾语。手动朗读全文。",
11817
- "settings.readScopeFullHint": "自动播报和手动朗读都播放全文。",
11818
- "settings.readScopeFirstSegmentHint": "保守朗读,自动播报和手动朗读都只播放首段。",
11919
+ "settings.readScopeSmartHint": "自动:短文全文、长文前两段,可附收尾语;手动全文",
11920
+ "settings.readScopeFullHint": "自动与手动均朗读全文",
11921
+ "settings.readScopeFirstSegmentHint": "自动与手动均只读首段",
11819
11922
  "settings.summaryPresetModel": "预置音色",
11820
11923
  "settings.summaryVoiceDesignModel": "自定义音色",
11821
11924
  "settings.localSpeechAutoSummary": "云端优先",
@@ -11830,36 +11933,36 @@ const zh = {
11830
11933
  "settings.localSpeechAuto": "云端优先",
11831
11934
  "settings.localSpeechFirst": "本地优先",
11832
11935
  "settings.localSpeechDisabled": "关闭本地语音",
11833
- "settings.localSpeechAutoHint": "优先使用所选云端音色,失败时使用本地语音。",
11834
- "settings.localSpeechFirstHint": "优先使用浏览器本地语音朗读,失败时尝试所选云端音色。",
11835
- "settings.localSpeechDisabledHint": "仅使用所选云端音色,失败时不会切换到本地语音。",
11836
- "settings.localSpeechUnavailableHint": "当前浏览器没有可用的本地音色,仅可使用云端优先。",
11936
+ "settings.localSpeechAutoHint": "云端优先,播放前失败则转本地语音",
11937
+ "settings.localSpeechFirstHint": "本地优先,失败则转云端语音",
11938
+ "settings.localSpeechDisabledHint": "仅用云端语音,不回退本地",
11939
+ "settings.localSpeechUnavailableHint": "无可用本地音色,仅支持云端优先",
11837
11940
  "settings.localVoice": "本地音色",
11838
11941
  "settings.localVoiceLoading": "正在读取浏览器音色…",
11839
11942
  "settings.localVoiceUnavailable": "没有可用的浏览器音色",
11840
11943
  "settings.localVoiceOffline": "离线",
11841
11944
  "settings.localVoiceOnline": "在线",
11842
- "settings.modelAutoPlayHintPreset": "预置音色自动使用低延迟流式播放。",
11843
- "settings.modelAutoPlayHintVoiceDesign": "自定义音色仅支持在回复完成后自动播放。",
11945
+ "settings.modelAutoPlayHintPreset": "预置音色支持流式播放",
11946
+ "settings.modelAutoPlayHintVoiceDesign": "回复完成后自动播放",
11844
11947
  "settings.voice": "内置音色",
11845
11948
  "settings.format": "音频格式",
11846
11949
  "settings.formatPcm": "PCM(流式播放)",
11847
11950
  "settings.formatMp3": "MP3(完整音频)",
11848
11951
  "settings.formatWav": "WAV(完整音频)",
11849
- "settings.formatPcmHint": "边生成边播放,首个音频分片前失败时自动回退 MP3。",
11850
- "settings.formatMp3Hint": "完整生成后播放,文件更小。",
11851
- "settings.formatWavHint": "完整生成后播放,保留无损音频但文件更大。",
11952
+ "settings.formatPcmHint": "边生成边播放;首片音频前失败则转 MP3",
11953
+ "settings.formatMp3Hint": "生成完成后播放,文件较小",
11954
+ "settings.formatWavHint": "生成完成后播放,无损但文件较大",
11852
11955
  "settings.voiceDesignPrompt": "音色设计",
11853
11956
  "settings.customVoiceOption": "自定义",
11854
11957
  "settings.customVoiceSummary": "手动编写音色描述",
11855
- "settings.voiceDesignPromptHint": "按“年龄段 + 性别、声音质感、语速节奏、情绪底色”描述声音本身;不写场景或动作。",
11958
+ "settings.voiceDesignPromptHint": "描述年龄、性别、音质、节奏和情绪,不写场景或动作",
11856
11959
  "settings.voiceDesignPlaybackMode": "朗读方式",
11857
11960
  "settings.voiceDesignPlaybackComplete": "完整朗读",
11858
11961
  "settings.voiceDesignPlaybackSegmented": "分片朗读",
11859
11962
  "settings.voiceDesignPlaybackFirstSegment": "朗读首段",
11860
- "settings.voiceDesignPlaybackCompleteHint": "整篇生成后播放,语调连续性更好。长文本会出现模型幻觉。",
11861
- "settings.voiceDesignPlaybackSegmentedHint": "适合长文本,分段生成、更快播放。但会重新推导音色细节,语调连续性略差。",
11862
- "settings.voiceDesignPlaybackFirstSegmentHint": "只生成并朗读首个分片,启动更快、消耗更低,适合快速试听或只听开头。",
11963
+ "settings.voiceDesignPlaybackCompleteHint": "整篇生成后播放,语调连贯;长文可能失真",
11964
+ "settings.voiceDesignPlaybackSegmentedHint": "分段生成,适合长文;起播快,语调可能变化",
11965
+ "settings.voiceDesignPlaybackFirstSegmentHint": "只读首个分片,起播快、消耗低",
11863
11966
  "settings.previewTitle": "播报台",
11864
11967
  "settings.previewText": "试听文本",
11865
11968
  "settings.previewDefaultText": "你好呀,很高兴陪你一起探索声音的世界!这个声音听起来怎么样?",
@@ -11867,25 +11970,27 @@ const zh = {
11867
11970
  "settings.previewDefaultTextInspiration": "走得慢一点也没关系。种子不会因为春天迟到,就放弃开花;你也不必因为一次跌倒,就怀疑远方。",
11868
11971
  "settings.previewDefaultTextReflection": "我们无法留住每一阵风,却可以决定扬起哪一面帆。答案未必在远方,也可能藏在此刻认真生活的你心里。",
11869
11972
  "settings.previewDefaultTextHumor": "闹钟响了,我和被窝开了个紧急会议。被窝提议再睡五分钟,我全票通过。结果一睁眼,会议已经开了一个小时。",
11870
- "settings.previewPlaceholder": "输入一段想试听的文字",
11973
+ "settings.previewPlaceholder": "输入试听文字",
11871
11974
  "settings.previewPlay": "播放试听",
11975
+ "settings.previewListen": "试听",
11976
+ "settings.previewStopShort": "停止",
11872
11977
  "settings.previewStop": "停止试听",
11873
- "settings.previewHint": "保存所选服务商的密钥后即可试听",
11978
+ "settings.previewHint": "云端试听需先保存密钥",
11874
11979
  "settings.previewLoading": "准备中…",
11875
- "settings.previewPlaying": "播放中,再点停止",
11980
+ "settings.previewPlaying": "播放中,点击停止",
11876
11981
  "settings.previewLoadingMimo": "正在连接 MiMo…",
11877
- "settings.previewLoadingLocal": "正在准备浏览器本地语音…",
11878
- "settings.previewPlayingMimo": "MiMo 语音播放中,再点停止",
11879
- "settings.previewPlayingLocal": "浏览器本地语音播放中,再点停止",
11982
+ "settings.previewLoadingLocal": "正在准备本地语音…",
11983
+ "settings.previewPlayingMimo": "MiMo 播放中,点击停止",
11984
+ "settings.previewPlayingLocal": "本地语音播放中,点击停止",
11880
11985
  "settings.previewCompletedMimo": "MiMo 试听完成",
11881
11986
  "settings.previewCompletedLocal": "本地语音试听完成",
11882
- "settings.previewErrorApiKeyMissing": "尚未保存当前服务商的 API Key;请先保存,或启用本地语音。",
11883
- "settings.previewErrorApiKeyRejected": "语音服务拒绝了当前密钥,请检查或更换 API Key。",
11884
- "settings.previewErrorRateLimited": "语音请求过于频繁,请稍后再试。",
11885
- "settings.previewErrorTimeout": "语音服务响应超时,请检查网络后重试。",
11886
- "settings.previewErrorLocalUnavailable": "当前浏览器没有可用的本地音色。",
11887
- "settings.previewErrorAutoplay": "浏览器阻止了播放,请再次点击试听。",
11888
- "settings.previewFailed": "试听失败,请检查设置和网络。",
11987
+ "settings.previewErrorApiKeyMissing": "请先保存 API Key,或启用本地语音",
11988
+ "settings.previewErrorApiKeyRejected": "密钥被拒绝,请检查或更换 API Key",
11989
+ "settings.previewErrorRateLimited": "请求过于频繁,请稍后重试",
11990
+ "settings.previewErrorTimeout": "请求超时,请检查网络后重试",
11991
+ "settings.previewErrorLocalUnavailable": "无可用本地音色",
11992
+ "settings.previewErrorAutoplay": "播放被阻止,请再次点击试听",
11993
+ "settings.previewFailed": "试听失败,请检查设置和网络",
11889
11994
  "settings.save": "保存",
11890
11995
  "settings.saving": "保存中…",
11891
11996
  "settings.saved": "已保存",
@@ -11893,10 +11998,10 @@ const zh = {
11893
11998
  "settings.overridden": "已覆盖",
11894
11999
  "settings.reset": "恢复默认",
11895
12000
  "settings.discard": "放弃修改",
11896
- "settings.failed": "保存失败,请重试。",
12001
+ "settings.failed": "保存失败,请重试",
11897
12002
  "settings.source": "赏个Star",
11898
12003
  "settings.updateAvailable": "新版已发布",
11899
- "settings.readOnly": "当前 DSH 设置为只读。",
12004
+ "settings.readOnly": "当前 DSH 设置为只读",
11900
12005
  "settings.secretPlaceholder": "输入当前服务商的新 API Key",
11901
12006
  "settings.expand": "展开设置",
11902
12007
  "settings.collapse": "收起设置",
@@ -11932,14 +12037,14 @@ const zh = {
11932
12037
  "settings.soundEffectsPreview.delete": "删除",
11933
12038
  "settings.soundEffectsPreview.stop": "停止",
11934
12039
  "settings.soundEffectsPreview.queued": "排队",
11935
- "settings.soundEffectsDescription": "为DSH接入uisfx语义化UI音效。在DSH中探索更多音效...",
12040
+ "settings.soundEffectsDescription": "点击操作与任务状态音效",
11936
12041
  "settings.soundEffectsSupported": "🔔 开始 完成 成功 失败 提醒 点击 选择 开启 关闭 发送 打开 关闭面板 删除 停止 排队"
11937
12042
  };
11938
12043
  const en = {
11939
12044
  "settings.announcementsApprovals": "Approval reminders",
11940
- "settings.announcementsApprovalsHint": "Announce new approval requests in the current conversation. Off by default; stops when answered or withdrawn.",
12045
+ "settings.announcementsApprovalsHint": "Announce pending approvals in this conversation; stop when resolved or withdrawn",
11941
12046
  "settings.announcementsJobs": "Background job results",
11942
- "settings.announcementsJobsHint": "Announce observed background jobs finishing, failing or being cancelled in the current conversation. Off by default; requires the DSH jobs service.",
12047
+ "settings.announcementsJobsHint": "Announce results of observed jobs in this conversation; requires the jobs service",
11943
12048
  "announcements.approval": "An operation is waiting for your approval.",
11944
12049
  "announcements.job": "Background job",
11945
12050
  "announcements.jobCompleted": "Finished.",
@@ -11948,13 +12053,15 @@ const en = {
11948
12053
  "settings.soundEffectsScope": "Sound scope",
11949
12054
  "settings.announcementsWhale": "dsh-whale-musume",
11950
12055
  "settings.announcementsQuestions": "Question card titles",
11951
- "settings.announcementsPetHint": "Read pet musings, chat replies and broadcast text.",
11952
- "settings.announcementsWhaleHint": "Accept speech requested by Whale Musume through the speech API. Enabled by default.",
11953
- "settings.announcementsQuestionsHint": "Follows autoplay and reads only the current question title. Stops when the question changes or the card closes.",
12056
+ "settings.announcementsPetHint": "Read pet chatter, replies and feeding messages",
12057
+ "settings.announcementsWhaleHint": "Allow speech requests from Whale Girl",
12058
+ "settings.announcementsQuestionsHint": "Read the current question title with autoplay; stop on navigation or close",
11954
12059
  "settings.announcementsNone": "No sources enabled",
11955
12060
  "settings.announcementsTitle": "Announcement sources",
12061
+ "settings.announcementsPlugins": "Plugin integrations",
12062
+ "settings.announcementsPluginsHint": "Requires the corresponding plugin to be installed and enabled",
11956
12063
  "settings.announcementsPet": "dsh-pet",
11957
- "settings.announcementsHint": "Enable speech and keep DSH Web open. Collected messages received while speech is busy are skipped without replay.",
12064
+ "settings.announcementsHint": "Keep speech enabled and DSH Web open. Messages received while busy are skipped",
11958
12065
  "settings.provider": "Speech provider",
11959
12066
  "settings.providerXiaomi": "Xiaomi MiMo",
11960
12067
  "settings.providerDoubao": "Doubao Voice",
@@ -11963,10 +12070,10 @@ const en = {
11963
12070
  "settings.doubaoCloneModel": "Voice cloning (seed-icl-2.0)",
11964
12071
  "settings.speechInstruction": "Speech instruction",
11965
12072
  "settings.speechInstructionPresets": "Speech instruction presets",
11966
- "settings.speechInstructionPlaceholder": "For example: sound a little shy, with gentle anticipation.",
11967
- "settings.speechInstructionHint": "Describe emotion, tone or delivery; leave blank for the default. Results vary by voice.",
12073
+ "settings.speechInstructionPlaceholder": "Example: gentle, cheerful, or storytelling",
12074
+ "settings.speechInstructionHint": "Describe emotion, tone or style; leave blank for default delivery",
11968
12075
  "settings.speechInstructionInfo": "Speech instruction limitations",
11969
- "settings.speechInstructionLimitations": "Xiaomi and Doubao standard TTS share these presets and save instructions separately.\nResults depend on the model, voice and text. Dialects, tears and whispers may not be reproduced accurately, and results can differ between providers.\nBrowser speech does not support these instructions; Doubao cloning is not supported here. Preview first.",
12076
+ "settings.speechInstructionLimitations": "Xiaomi and Doubao Standard save instructions separately. Results vary by model, voice and text; preview first.\nBrowser speech and Doubao cloning do not support instructions",
11970
12077
  "settings.speechInstructionNatural": "Natural",
11971
12078
  "settings.speechInstructionGentle": "Gentle",
11972
12079
  "settings.speechInstructionGentlePrompt": "Speak in a gentle, warm and natural tone.",
@@ -12006,7 +12113,7 @@ const en = {
12006
12113
  "settings.speechInstructionSichuanPrompt": "Read this text in a natural Sichuan Chinese accent, like an everyday conversation.",
12007
12114
  "settings.speechInstructionBeijing": "Beijing dialect",
12008
12115
  "settings.speechInstructionBeijingPrompt": "Read this text in a natural Beijing Chinese accent with a little erhua, like casual conversation.",
12009
- "settings.doubaoKeyConfigured": "Doubao API key configured. Preview to check model and voice access.",
12116
+ "settings.doubaoKeyConfigured": "Key saved. Preview to check permissions and voice availability",
12010
12117
  "settings.doubaoCustomVoice": "Custom voice ID",
12011
12118
  "settings.doubaoCustomVoiceHint": "Enter another standard voice ID",
12012
12119
  "settings.doubaoVoiceSceneGeneral": "Everyday conversation",
@@ -12019,26 +12126,27 @@ const en = {
12019
12126
  "settings.doubaoClonedVoiceLabel": "Cloned voice",
12020
12127
  "settings.doubaoStandardVoiceHistory": "Standard voice ID history",
12021
12128
  "settings.doubaoClonedVoiceHistory": "Cloned voice ID history",
12022
- "settings.doubaoCloneHint": "Enter an existing cloned voice ID from the Doubao console.",
12129
+ "settings.doubaoCloneHint": "Enter a cloned voice ID from the Doubao console",
12023
12130
  "settings.doubaoVoiceLibrary": "Open voice library",
12024
12131
  "settings.doubaoCreateVoice": "Create a voice",
12025
- "settings.doubaoVoiceRequired": "Enter a voice ID for the selected Doubao model.",
12026
- "settings.doubaoStreamingHint": "Text is appended to one session while audio plays during generation.",
12132
+ "settings.doubaoVoiceRequired": "Enter a voice ID for the selected Doubao model",
12133
+ "settings.doubaoStreamingHint": "Play as the reply is generated",
12027
12134
  "settings.previewLoadingDoubao": "Connecting to Doubao…",
12028
- "settings.previewPlayingDoubao": "Doubao is playing. Tap again to stop.",
12029
- "settings.previewCompletedDoubao": "Doubao preview completed.",
12030
- "settings.previewSaveKeyFirst": "Save the API key before previewing.",
12031
- "settings.previewErrorVoiceUnavailable": "Voice unavailable. Check its ID, model and access permissions.",
12032
- "settings.previewErrorResourceUnavailable": "This key does not have access to the selected Doubao resource.",
12033
- "settings.previewErrorBufferLimit": "Audio buffer limit reached. Playback stopped.",
12135
+ "settings.previewPlayingDoubao": "Doubao playing; click to stop",
12136
+ "settings.previewCompletedDoubao": "Doubao preview completed",
12137
+ "settings.previewSaveKeyFirst": "Save the API key before previewing",
12138
+ "settings.previewErrorVoiceUnavailable": "Voice unavailable. Check its ID, model and access permissions",
12139
+ "settings.previewErrorResourceUnavailable": "This key does not have access to the selected Doubao resource",
12140
+ "settings.previewErrorBufferLimit": "Audio buffer limit reached. Playback stopped",
12034
12141
  "error.voiceUnavailable": "Voice unavailable. Check the model, voice ID and access.",
12035
12142
  "error.resourceUnavailable": "This key cannot access the selected model resource.",
12036
12143
  "error.apiKeyRejected": "Speech API key rejected. Check settings.",
12037
12144
  "error.rateLimited": "Speech service rate limit reached. Try again later.",
12038
12145
  "error.timeout": "Speech synthesis timed out. Try again.",
12039
12146
  "error.bufferLimit": "Audio buffer limit reached. Playback stopped.",
12040
- "history.title": "Audio history",
12147
+ "history.title": "Audio",
12041
12148
  "history.back": "Back",
12149
+ "history.backToSettings": "Back to settings",
12042
12150
  "history.search": "Search audio summaries",
12043
12151
  "history.source": "Source",
12044
12152
  "history.all": "All",
@@ -12047,11 +12155,11 @@ const en = {
12047
12155
  "history.expand": "Expand or collapse summary",
12048
12156
  "history.noResults": "No matching audio.",
12049
12157
  "history.resetFilters": "Reset filters",
12050
- "history.savedHere": "Saved in this browser",
12158
+ "history.savedHere": "Saved",
12051
12159
  "history.temporary": "Available for this visit only",
12052
12160
  "history.clearConfirm": "Clear all audio history? Includes filtered-out entries and cannot be undone.",
12053
12161
  "history.confirmDelete": "Confirm delete",
12054
- "history.confirmClear": "Confirm clear all",
12162
+ "history.confirmClear": "Confirm",
12055
12163
  "history.cancel": "Cancel",
12056
12164
  "history.actionFailed": "The action could not be completed. Please try again.",
12057
12165
  "history.player": "History audio player",
@@ -12068,7 +12176,7 @@ const en = {
12068
12176
  "history.error.blocked": "The browser blocked playback. Select Retry playback.",
12069
12177
  "history.error.decode": "The browser cannot decode this audio. Retry or download the file.",
12070
12178
  "history.error.failed": "Audio playback failed. Retry or download the file.",
12071
- "history.hint": "Keeps the latest 100 entries / 100 MB and removes oldest entries when full. Streaming and segmented audio are listed per generated batch; browser speech has no downloadable file.",
12179
+ "history.hint": "Up to 100 entries / 100 MB",
12072
12180
  "history.empty": "No generated audio yet. Read-aloud and previews are saved here automatically.",
12073
12181
  "history.loading": "Loading audio history…",
12074
12182
  "history.memory": "Browser storage is unavailable or full. This list lasts only for this visit; download audio to keep it.",
@@ -12076,7 +12184,7 @@ const en = {
12076
12184
  "history.listen": "Listen again",
12077
12185
  "history.download": "Download",
12078
12186
  "history.delete": "Delete",
12079
- "history.clear": "Clear history",
12187
+ "history.clear": "Clear",
12080
12188
  "history.conversation": "Conversation",
12081
12189
  "history.preview": "Settings preview",
12082
12190
  "history.service": "Service playback",
@@ -12097,7 +12205,7 @@ const en = {
12097
12205
  "error.localAudioDevice": "The local audio device reported an error. Check your system sound settings.",
12098
12206
  "error.localSynthesis": "Local speech synthesis failed. Please try again.",
12099
12207
  "settings.title": "Text To Speech (Xiaomi MiMo)",
12100
- "settings.description": "Generate and play Xiaomi MiMo TTS audio from assistant message actions.",
12208
+ "settings.description": "Read conversations with Xiaomi MiMo or Doubao",
12101
12209
  "settings.minimalMode": "Minimal mode",
12102
12210
  "settings.minimalModeOn": "On",
12103
12211
  "settings.minimalModeOff": "Off",
@@ -12106,18 +12214,16 @@ const en = {
12106
12214
  "settings.enabled": "Voice playback",
12107
12215
  "settings.enabledOnLabel": "Whale maid is on air",
12108
12216
  "settings.enabledOffLabel": "Whale maid is resting",
12109
- "settings.enabledHint": "Disabling it hides voice settings and turns off automatic playback.",
12217
+ "settings.enabledHint": "Turning this off hides speech settings and stops autoplay",
12110
12218
  "settings.apiKey": "API Key",
12111
- "settings.apiKeyStatus": "An existing key changes only when you save a new value.",
12112
- "settings.apiKeyLoading": "Reading the saved key status from the Host…",
12113
- "settings.apiKeyMissing": "No key is saved for this provider. Enter and save one before previewing speech.",
12114
- "settings.apiKeyRecognized": "A MiMo API key is saved and its format is recognized. Use Broadcast Desk to confirm the connection.",
12115
- "settings.apiKeyUnsupported": "The key format is not recognized. Check that it starts with sk- or tp-.",
12116
- "settings.apiKeyUnsupportedSaved": "The saved key format is not recognized. Enter a replacement or clear the saved key.",
12117
- "settings.apiKeyUnavailable": "The Host key status is temporarily unavailable. Check the connection and try again.",
12118
- "settings.apiKeyPendingSave": "This key is waiting to be saved. Previews will use it only after saving.",
12119
- "settings.apiKeyPendingClear": "Saving will clear the saved key. A base key will be inherited if one is configured.",
12120
- "settings.apiKeyClear": "Clear",
12219
+ "settings.apiKeyStatus": "The saved key is replaced only after saving a new one",
12220
+ "settings.apiKeyLoading": "Loading key…",
12221
+ "settings.apiKeyMissing": "Enter and save an API key for this provider",
12222
+ "settings.apiKeyRecognized": "Key format recognized. Preview to check the connection",
12223
+ "settings.apiKeyUnsupported": "The key must start with sk- or tp-",
12224
+ "settings.apiKeyUnsupportedSaved": "Saved key format unsupported. Replace it",
12225
+ "settings.apiKeyUnavailable": "Cannot check the key. Check your connection",
12226
+ "settings.apiKeyPendingSave": "Save to preview with the new key",
12121
12227
  "settings.getApiKey": "Get API Key",
12122
12228
  "settings.apiKeyIdleCopy1": "Can I look now?",
12123
12229
  "settings.apiKeyIdleCopy2": "Is the key safely tucked away?",
@@ -12130,39 +12236,47 @@ const en = {
12130
12236
  "settings.autoPlay": "Automatic playback",
12131
12237
  "settings.autoPlayOnLabel": "I'll read it to you",
12132
12238
  "settings.autoPlayOffLabel": "Call me when you need me",
12133
- "settings.autoPlayHint": "The browser may reject automatic playback.",
12239
+ "settings.autoPlayHint": "Your browser may block autoplay",
12134
12240
  "settings.voiceReadingNav": "Voice reading",
12135
12241
  "settings.voiceReadingTitle": "Voice reading",
12136
- "settings.voiceReadingIntro": "Pick the reading voice and control automatic playback and interface sounds. Changes are written to this plugin's speech settings immediately.",
12242
+ "settings.voiceReadingSource": "Source on GitHub",
12243
+ "settings.voiceReadingQq": "QQ group",
12244
+ "settings.voiceReadingQqCodeAlt": "QQ group QR code",
12245
+ "settings.voiceReadingQqClose": "Close QR code",
12246
+ "settings.voiceReadingPluginSettings": "Plugin settings",
12247
+ "settings.voiceReadingWarningDisabled": "Speech is off. Enable it in {settings}",
12248
+ "settings.voiceReadingWarningApiKeyMissing": "API key missing. Add one in {settings}",
12249
+ "settings.voiceReadingWarningApiKeyInvalid": "Unsupported API key format. Check {settings}",
12250
+ "settings.voiceReadingWarningApiKeyUnavailable": "Cannot check the API key. Check your connection",
12251
+ "settings.voiceReadingWarningVoiceRequired": "No voice selected. Choose one or enter it in {settings}",
12252
+ "settings.voiceReadingDismissWarning": "Dismiss warning",
12253
+ "settings.voiceReadingIntro": "Changes apply immediately. More options in",
12137
12254
  "settings.voiceReadingVoice": "Reading voice",
12138
- "settings.voiceReadingHintXiaomi": "Built-in Xiaomi MiMo voices.",
12139
- "settings.voiceReadingHintVoiceDesign": "Voice design generates a voice from a description; picking a preset also updates the description.",
12140
- "settings.voiceReadingHintDoubaoStandard": "Doubao standard synthesis voices.",
12141
- "settings.voiceReadingHintDoubaoCloned": "Doubao voice cloning uses a voice ID; pick an ID you have used before.",
12255
+ "settings.voiceReadingHintXiaomi": "Built-in Xiaomi MiMo voices",
12256
+ "settings.voiceReadingHintVoiceDesign": "Generate a voice from a description, or choose a preset",
12257
+ "settings.voiceReadingHintDoubaoStandard": "Doubao standard synthesis voices",
12258
+ "settings.voiceReadingHintDoubaoCloned": "Choose a previously used cloned voice ID",
12142
12259
  "settings.voiceReadingCustomVoice": "Custom (current)",
12143
12260
  "settings.voiceReadingVolume": "Reading volume",
12144
- "settings.voiceReadingVolumeHint": "How loud the reading plays; same setting as Voice volume in the mixing console.",
12145
12261
  "settings.voiceReadingRate": "Reading speed",
12146
- "settings.voiceReadingRateHint": "1.0× is the original speed. Doubao applies it during synthesis; Xiaomi and browser speech apply it during playback.",
12147
12262
  "settings.voiceReadingAutoPlay": "Automatic playback",
12148
- "settings.voiceReadingAutoPlayHint": "New replies are read aloud automatically; turning this on also enables voice reading.",
12149
12263
  "settings.voiceReadingSound": "Sound effects",
12150
- "settings.voiceReadingSoundHint": "Play click and task-completion sounds.",
12151
- "settings.voiceReadingReadOnly": "Settings are read-only in this deployment and cannot be saved.",
12152
- "settings.voiceReadingUnavailable": "This deployment does not provide voice settings.",
12153
- "settings.voiceReadingSaveFailed": "Could not save. Please try again.",
12264
+ "settings.voiceReadingSoundHint": "Play click and task sounds",
12265
+ "settings.voiceReadingReadOnly": "Settings are read-only",
12266
+ "settings.voiceReadingUnavailable": "Speech settings are unavailable",
12267
+ "settings.voiceReadingSaveFailed": "Could not save. Please try again",
12154
12268
  "settings.detailedVoiceConfig": "Mixing Console",
12155
12269
  "settings.voiceVolume": "Voice volume",
12156
12270
  "settings.voiceRate": "Playback speed",
12157
- "settings.voiceRateHint": "Range: 0.5×–2.0×; 1.0× is the original speed.\nDoubao: applied during synthesis, starting with the next synthesis.\nXiaomi and browser speech: adjusted during playback. Xiaomi streaming also changes pitch.",
12271
+ "settings.voiceRateHint": "0.5×–2.0×; 1.0× is the original speed.\nDoubao applies changes at the next synthesis; Xiaomi and browser speech during playback. Xiaomi streaming also changes pitch",
12158
12272
  "settings.voiceRateInfo": "Playback speed information",
12159
12273
  "settings.readScope": "Read-aloud range",
12160
12274
  "settings.readScopeSmart": "Smart mode",
12161
12275
  "settings.readScopeFull": "Full mode",
12162
12276
  "settings.readScopeFirstSegment": "First-segment mode",
12163
- "settings.readScopeSmartHint": "Automatic playback reads short replies in full. For long replies, it reads the opening two segments and may add a brief closing cue when substantial content remains. Manual playback reads the full reply.",
12164
- "settings.readScopeFullHint": "Both automatic and manual playback read the full reply.",
12165
- "settings.readScopeFirstSegmentHint": "Both automatic and manual playback read only the opening segment.",
12277
+ "settings.readScopeSmartHint": "Auto: full short replies, first two segments of long replies, with an optional closing cue. Manual: full reply",
12278
+ "settings.readScopeFullHint": "Read the full reply, automatically or manually",
12279
+ "settings.readScopeFirstSegmentHint": "Read only the first segment, automatically or manually",
12166
12280
  "settings.summaryPresetModel": "Preset model",
12167
12281
  "settings.summaryVoiceDesignModel": "Custom voicedesign",
12168
12282
  "settings.localSpeechAutoSummary": "Cloud first",
@@ -12177,36 +12291,36 @@ const en = {
12177
12291
  "settings.localSpeechAuto": "Cloud first",
12178
12292
  "settings.localSpeechFirst": "Local first",
12179
12293
  "settings.localSpeechDisabled": "Disable local speech",
12180
- "settings.localSpeechAutoHint": "Uses the selected cloud voice first and falls back to local speech before playback starts.",
12181
- "settings.localSpeechFirstHint": "Uses browser-local speech first and tries the selected cloud voice if it fails.",
12182
- "settings.localSpeechDisabledHint": "Uses only the selected cloud voice and never falls back to local speech.",
12183
- "settings.localSpeechUnavailableHint": "No browser voices are available, so only cloud-first speech can be used.",
12294
+ "settings.localSpeechAutoHint": "Cloud first; fall back to browser speech if it fails before playback",
12295
+ "settings.localSpeechFirstHint": "Browser speech first; fall back to the cloud if it fails",
12296
+ "settings.localSpeechDisabledHint": "Cloud speech only, with no browser fallback",
12297
+ "settings.localSpeechUnavailableHint": "No browser voices available; use cloud first",
12184
12298
  "settings.localVoice": "Browser voice",
12185
12299
  "settings.localVoiceLoading": "Loading browser voices…",
12186
12300
  "settings.localVoiceUnavailable": "No browser voices available",
12187
12301
  "settings.localVoiceOffline": "Offline",
12188
12302
  "settings.localVoiceOnline": "Online",
12189
- "settings.modelAutoPlayHintPreset": "Preset voices use low-latency streaming automatically.",
12190
- "settings.modelAutoPlayHintVoiceDesign": "Custom voice design supports automatic playback only after the reply is complete.",
12303
+ "settings.modelAutoPlayHintPreset": "Preset voices support streaming",
12304
+ "settings.modelAutoPlayHintVoiceDesign": "Play automatically after the reply is complete",
12191
12305
  "settings.voice": "Built-in voice",
12192
12306
  "settings.format": "Audio format",
12193
12307
  "settings.formatPcm": "PCM (streaming)",
12194
12308
  "settings.formatMp3": "MP3 (complete audio)",
12195
12309
  "settings.formatWav": "WAV (complete audio)",
12196
- "settings.formatPcmHint": "Plays chunks as they arrive for a shorter wait; supports pause and resume. Falls back to MP3 if streaming fails before the first audio chunk.",
12197
- "settings.formatMp3Hint": "Plays after the complete file is generated. Smaller file size; supports pause and resume.",
12198
- "settings.formatWavHint": "Plays after the complete lossless file is generated. Larger file size; supports pause and resume.",
12310
+ "settings.formatPcmHint": "Stream audio as it arrives; fall back to MP3 if it fails before the first chunk",
12311
+ "settings.formatMp3Hint": "Play after generation; smaller files",
12312
+ "settings.formatWavHint": "Play after generation; lossless, larger files",
12199
12313
  "settings.voiceDesignPrompt": "Voice design",
12200
12314
  "settings.customVoiceOption": "Custom",
12201
12315
  "settings.customVoiceSummary": "Write a custom voice description",
12202
- "settings.voiceDesignPromptHint": "Describe the voice itself with age/gender, texture, pace, and emotional baseline; avoid scenes or actions.",
12316
+ "settings.voiceDesignPromptHint": "Describe age, gender, tone, pace and emotion; omit scenes and actions",
12203
12317
  "settings.voiceDesignPlaybackMode": "Read-aloud mode",
12204
12318
  "settings.voiceDesignPlaybackComplete": "Complete",
12205
12319
  "settings.voiceDesignPlaybackSegmented": "Segmented",
12206
12320
  "settings.voiceDesignPlaybackFirstSegment": "First segment",
12207
- "settings.voiceDesignPlaybackCompleteHint": "Generates the entire reply before playback for better continuity.",
12208
- "settings.voiceDesignPlaybackSegmentedHint": "Generates and plays semantic segments in order; better for long text and faster start.",
12209
- "settings.voiceDesignPlaybackFirstSegmentHint": "Generates and plays only the first segment for a faster start and lower usage.",
12321
+ "settings.voiceDesignPlaybackCompleteHint": "Generate the full reply for consistent delivery; long text may cause artifacts",
12322
+ "settings.voiceDesignPlaybackSegmentedHint": "Generate in segments for faster starts on long text; delivery may vary",
12323
+ "settings.voiceDesignPlaybackFirstSegmentHint": "Read only the first segment for a faster start and lower usage",
12210
12324
  "settings.previewTitle": "Broadcast Desk",
12211
12325
  "settings.previewText": "Preview text",
12212
12326
  "settings.previewDefaultText": "Hi! I'm Whale Maid. It's lovely to explore the world of voices with you!",
@@ -12214,25 +12328,27 @@ const en = {
12214
12328
  "settings.previewDefaultTextInspiration": "Go at your own pace. A seed still blooms after a late spring. One stumble need not end your journey.",
12215
12329
  "settings.previewDefaultTextReflection": "We cannot keep every breeze, but we can choose our sail. Perhaps the answer is in how we live today.",
12216
12330
  "settings.previewDefaultTextHumor": "My alarm rang. I voted for five more minutes in bed. An hour later, the motion was still in effect.",
12217
- "settings.previewPlaceholder": "Enter some text to preview",
12331
+ "settings.previewPlaceholder": "Enter preview text",
12218
12332
  "settings.previewPlay": "Play preview",
12333
+ "settings.previewListen": "Preview",
12334
+ "settings.previewStopShort": "Stop",
12219
12335
  "settings.previewStop": "Stop preview",
12220
- "settings.previewHint": "Save a provider key to preview speech; browser speech may be used when no key is configured",
12336
+ "settings.previewHint": "Save a key for cloud previews",
12221
12337
  "settings.previewLoading": "Getting ready…",
12222
- "settings.previewPlaying": "Playing—tap again to stop",
12338
+ "settings.previewPlaying": "Playing; click to stop",
12223
12339
  "settings.previewLoadingMimo": "Connecting to MiMo…",
12224
- "settings.previewLoadingLocal": "Preparing browser-local speech…",
12225
- "settings.previewPlayingMimo": "MiMo speech is playing—tap again to stop",
12226
- "settings.previewPlayingLocal": "Browser-local speech is playing—tap again to stop",
12340
+ "settings.previewLoadingLocal": "Preparing browser speech…",
12341
+ "settings.previewPlayingMimo": "MiMo playing; click to stop",
12342
+ "settings.previewPlayingLocal": "Browser speech playing; click to stop",
12227
12343
  "settings.previewCompletedMimo": "MiMo preview complete",
12228
12344
  "settings.previewCompletedLocal": "Local-speech preview complete",
12229
- "settings.previewErrorApiKeyMissing": "No API key is saved for this provider. Save one first, or enable local speech.",
12230
- "settings.previewErrorApiKeyRejected": "The speech provider rejected this key. Check or replace the API key.",
12231
- "settings.previewErrorRateLimited": "The speech service rate limit was reached. Try again shortly.",
12232
- "settings.previewErrorTimeout": "Speech synthesis timed out. Check the network and try again.",
12233
- "settings.previewErrorLocalUnavailable": "This browser has no available local voice.",
12234
- "settings.previewErrorAutoplay": "The browser blocked playback. Tap preview again.",
12235
- "settings.previewFailed": "Preview failed. Check the settings and network.",
12345
+ "settings.previewErrorApiKeyMissing": "Save an API key or enable browser speech",
12346
+ "settings.previewErrorApiKeyRejected": "Key rejected. Check or replace it",
12347
+ "settings.previewErrorRateLimited": "Too many requests. Try again shortly",
12348
+ "settings.previewErrorTimeout": "Request timed out. Check your connection and retry",
12349
+ "settings.previewErrorLocalUnavailable": "No browser voices available",
12350
+ "settings.previewErrorAutoplay": "Playback blocked. Click preview again",
12351
+ "settings.previewFailed": "Preview failed. Check settings and connection",
12236
12352
  "settings.save": "Save",
12237
12353
  "settings.saving": "Saving…",
12238
12354
  "settings.saved": "Saved",
@@ -12240,10 +12356,10 @@ const en = {
12240
12356
  "settings.overridden": "Overridden",
12241
12357
  "settings.reset": "Restore default",
12242
12358
  "settings.discard": "Discard changes",
12243
- "settings.failed": "Save failed. Try again.",
12359
+ "settings.failed": "Save failed. Try again",
12244
12360
  "settings.source": "View source",
12245
12361
  "settings.updateAvailable": "New release",
12246
- "settings.readOnly": "DSH settings are read-only.",
12362
+ "settings.readOnly": "DSH settings are read-only",
12247
12363
  "settings.secretPlaceholder": "Enter a new key for this provider",
12248
12364
  "settings.expand": "Expand settings",
12249
12365
  "settings.collapse": "Collapse settings",
@@ -12279,7 +12395,7 @@ const en = {
12279
12395
  "settings.soundEffectsPreview.delete": "Preview delete",
12280
12396
  "settings.soundEffectsPreview.stop": "Preview stop",
12281
12397
  "settings.soundEffectsPreview.queued": "Preview queued",
12282
- "settings.soundEffectsDescription": "Bringing semantic UISFX interface sounds to DSH. Explore more sounds in DSH...",
12398
+ "settings.soundEffectsDescription": "Sounds for clicks and task events",
12283
12399
  "settings.soundEffectsSupported": "Supported sounds: Start, Complete, Success, Error, Notification, Press, Select, Toggle On, Toggle Off, Send, Open, Close, Delete, Stop, Queued"
12284
12400
  };
12285
12401
 
@@ -14207,6 +14323,17 @@ var XiaomiMimoTtsPcmService = class extends __deepseek_ai_cordis.Service {
14207
14323
 
14208
14324
  //#endregion
14209
14325
  //#region node_modules/.pnpm/react-icons@5.7.0_react@19.3.0/node_modules/react-icons/ai/index.mjs
14326
+ function AiFillSetting(props) {
14327
+ return GenIcon({
14328
+ "tag": "svg",
14329
+ "attr": { "viewBox": "0 0 1024 1024" },
14330
+ "child": [{
14331
+ "tag": "path",
14332
+ "attr": { "d": "M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1a110.96 110.96 0 0 0-79.1-32.8zm412.3 235.5l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a442.5 442.5 0 0 0-79.6-137.7l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52-9.4-106.8-9.4-158.8 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.3a353.44 353.44 0 0 0-98.9 57.3l-81.8-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a445.93 445.93 0 0 0-79.6 137.7l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3a32.05 32.05 0 0 0 25.8 25.7l2.7.5a448.27 448.27 0 0 0 158.8 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c4.3-12.4.6-26.3-9.5-35zm-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z" },
14333
+ "child": []
14334
+ }]
14335
+ })(props);
14336
+ }
14210
14337
  function AiFillGithub(props) {
14211
14338
  return GenIcon({
14212
14339
  "tag": "svg",
@@ -14218,6 +14345,17 @@ function AiFillGithub(props) {
14218
14345
  }]
14219
14346
  })(props);
14220
14347
  }
14348
+ function AiOutlineQq(props) {
14349
+ return GenIcon({
14350
+ "tag": "svg",
14351
+ "attr": { "viewBox": "0 0 1024 1024" },
14352
+ "child": [{
14353
+ "tag": "path",
14354
+ "attr": { "d": "M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z" },
14355
+ "child": []
14356
+ }]
14357
+ })(props);
14358
+ }
14221
14359
  function AiOutlineGift(props) {
14222
14360
  return GenIcon({
14223
14361
  "tag": "svg",
@@ -14230,6 +14368,24 @@ function AiOutlineGift(props) {
14230
14368
  })(props);
14231
14369
  }
14232
14370
 
14371
+ //#endregion
14372
+ //#region node_modules/.pnpm/react-icons@5.7.0_react@19.3.0/node_modules/react-icons/go/index.mjs
14373
+ function GoHistory(props) {
14374
+ return GenIcon({
14375
+ "tag": "svg",
14376
+ "attr": { "viewBox": "0 0 24 24" },
14377
+ "child": [{
14378
+ "tag": "path",
14379
+ "attr": { "d": "M11.998 2.5A9.503 9.503 0 0 0 3.378 8H5.75a.75.75 0 0 1 0 1.5H2a1 1 0 0 1-1-1V4.75a.75.75 0 0 1 1.5 0v1.697A10.997 10.997 0 0 1 11.998 1C18.074 1 23 5.925 23 12s-4.926 11-11.002 11C6.014 23 1.146 18.223 1 12.275a.75.75 0 0 1 1.5-.037 9.5 9.5 0 0 0 9.498 9.262c5.248 0 9.502-4.253 9.502-9.5s-4.254-9.5-9.502-9.5Z" },
14380
+ "child": []
14381
+ }, {
14382
+ "tag": "path",
14383
+ "attr": { "d": "M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z" },
14384
+ "child": []
14385
+ }]
14386
+ })(props);
14387
+ }
14388
+
14233
14389
  //#endregion
14234
14390
  //#region src/client/settings/save-settings.ts
14235
14391
  const EDITABLE_SETTING_FIELDS = [
@@ -14272,8 +14428,7 @@ async function saveSettingsDraft(scope, draft, changes, keys) {
14272
14428
  const write = (field, value) => {
14273
14429
  const change = changes[field];
14274
14430
  if (!change) return;
14275
- if (change.kind === "set" && (field === "apiKey" || field === "doubaoApiKey") && !String(value).trim()) return;
14276
- if (change.kind === "set" && field !== "apiKey" && field !== "doubaoApiKey" && (field === "announcementSources" ? JSON.stringify(acceptedValues.announcementSources) === JSON.stringify(value) : Object.is(acceptedValues[field], value))) return;
14431
+ if (change.kind === "set" && (field === "announcementSources" ? JSON.stringify(acceptedValues.announcementSources) === JSON.stringify(value) : Object.is(acceptedValues[field], value))) return;
14277
14432
  if (change.kind === "clear" && !overridden(field)) return;
14278
14433
  ops.push(change.kind === "clear" ? {
14279
14434
  op: "unset",
@@ -14285,8 +14440,11 @@ async function saveSettingsDraft(scope, draft, changes, keys) {
14285
14440
  });
14286
14441
  };
14287
14442
  for (const field of EDITABLE_SETTING_FIELDS) if (field !== "provider") write(field, draft[field]);
14288
- write("apiKey", keys.xiaomi.trim());
14289
- write("doubaoApiKey", keys.doubao.trim());
14443
+ for (const [provider, field] of [["xiaomi", "apiKey"], ["doubao", "doubaoApiKey"]]) if (changes[field]?.kind === "set" && keys[provider].trim()) ops.push({
14444
+ op: "set",
14445
+ path: [field],
14446
+ value: keys[provider].trim()
14447
+ });
14290
14448
  write("provider", draft.provider);
14291
14449
  if (ops.length && !await scope.mutate(ops)) throw new Error("Host rejected a settings update");
14292
14450
  }
@@ -14676,6 +14834,46 @@ var PreviewPlayer = class {
14676
14834
  }
14677
14835
  };
14678
14836
 
14837
+ //#endregion
14838
+ //#region src/client/settings/plugin-links.ts
14839
+ /**
14840
+ * Public destinations the plugin's settings surfaces link to.
14841
+ *
14842
+ * The plugin settings footer and the Voice reading page header both point at
14843
+ * the project, so the URLs live here instead of being repeated per surface.
14844
+ */
14845
+ const SOURCE_URL = "https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts";
14846
+ const RELEASES_URL = `${SOURCE_URL}/releases`;
14847
+
14848
+ //#endregion
14849
+ //#region src/client/settings/update-status.ts
14850
+ /**
14851
+ * Latest published version when the Host reports a newer release, else null.
14852
+ * Kept as a hook so the version check stays out of the settings component body.
14853
+ */
14854
+ function useAvailableUpdate() {
14855
+ const [latestVersion, setLatestVersion] = (0, react.useState)(null);
14856
+ (0, react.useEffect)(() => {
14857
+ let active = true;
14858
+ fetch(hostRoute(TTS_UPDATE_ROUTE), {
14859
+ cache: "no-store",
14860
+ headers: { accept: "application/json" }
14861
+ }).then(async (response) => {
14862
+ if (!response.ok) throw new Error("version-check-failed");
14863
+ return await response.json();
14864
+ }).then((result) => {
14865
+ if (!active) return;
14866
+ setLatestVersion(result.updateAvailable === true && typeof result.latestVersion === "string" ? result.latestVersion : null);
14867
+ }).catch(() => {
14868
+ if (active) setLatestVersion(null);
14869
+ });
14870
+ return () => {
14871
+ active = false;
14872
+ };
14873
+ }, []);
14874
+ return latestVersion;
14875
+ }
14876
+
14679
14877
  //#endregion
14680
14878
  //#region src/client/sound-effects/toggle-sound-player.ts
14681
14879
  const TOGGLE_SOUND_DEBOUNCE_MS = 200;
@@ -14818,7 +15016,15 @@ function SettingFieldHeading({ label, suffix, overriddenLabel, resetLabel, overr
14818
15016
  //#endregion
14819
15017
  //#region src/client/settings/module-shell.tsx
14820
15018
  /** Shared DOM frame for settings cards. Content modules only own their body. */
14821
- function ModuleShell({ className, title, summary, action, children, collapsible = false, open = false, onToggle, toggleClassName = "", headingClassName = "", ariaLabel, toggleId, controlsId }) {
15019
+ function ModuleShell({ className, title, summary, interactiveSummary = false, action, children, collapsible = false, open = false, onToggle, toggleClassName = "", headingClassName = "", ariaLabel, toggleId, controlsId }) {
15020
+ const toggleProps = {
15021
+ type: "button",
15022
+ id: toggleId,
15023
+ "aria-controls": controlsId,
15024
+ "aria-expanded": open,
15025
+ "aria-label": ariaLabel ?? (typeof title === "string" ? title : void 0),
15026
+ onClick: onToggle
15027
+ };
14822
15028
  const heading = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
14823
15029
  className: `xmimo-ui-module-head xmimo-ui-module-heading ${headingClassName}`.trim(),
14824
15030
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: title }), summary]
@@ -14827,16 +15033,24 @@ function ModuleShell({ className, title, summary, action, children, collapsible
14827
15033
  className: `xmimo-ui-module ${className}`.trim(),
14828
15034
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
14829
15035
  className: "xmimo-ui-module-header",
14830
- children: [collapsible ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
15036
+ children: [collapsible && interactiveSummary ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
15037
+ className: `xmimo-ui-module-toggle ${toggleClassName}`.trim(),
15038
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15039
+ className: `xmimo-ui-module-head xmimo-ui-module-heading ${headingClassName}`.trim(),
15040
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
15041
+ className: "xmimo-ui-accordion-heading",
15042
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
15043
+ ...toggleProps,
15044
+ className: "xmimo-ui-module-title-toggle",
15045
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: title })
15046
+ })
15047
+ }), summary]
15048
+ })
15049
+ }) : collapsible ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
14831
15050
  className: "xmimo-ui-accordion-heading",
14832
15051
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
14833
- type: "button",
14834
- id: toggleId,
14835
- "aria-controls": controlsId,
15052
+ ...toggleProps,
14836
15053
  className: `xmimo-ui-module-toggle ${toggleClassName}`.trim(),
14837
- "aria-expanded": open,
14838
- "aria-label": ariaLabel ?? (typeof title === "string" ? title : void 0),
14839
- onClick: onToggle,
14840
15054
  children: heading
14841
15055
  })
14842
15056
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -14873,7 +15087,7 @@ function randomCopyKey(keys, current) {
14873
15087
  while (next === current) next = keys[Math.floor(Math.random() * keys.length)];
14874
15088
  return next;
14875
15089
  }
14876
- function ApiKeyModule({ t, provider, value, message, invalid, clearable, writable, minimal, onChange, onClear }) {
15090
+ function ApiKeyModule({ t, provider, value, message, invalid, writable, minimal, onChange }) {
14877
15091
  const [bubbleKey, setBubbleKey] = (0, react.useState)(() => randomCopyKey(API_KEY_IDLE_COPY_KEYS));
14878
15092
  const inputId = (0, react.useId)();
14879
15093
  const messageId = (0, react.useId)();
@@ -14881,31 +15095,26 @@ function ApiKeyModule({ t, provider, value, message, invalid, clearable, writabl
14881
15095
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModuleShell, {
14882
15096
  className: "xmimo-tts-settings-module xmimo-tts-api-key xmimo-ui-module-padded",
14883
15097
  title: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingFieldHeading, {
14884
- label: provider === "doubao" ? t("settings.providerDoubao") : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
14885
- className: "xmimo-tts-api-key-logo",
14886
- role: "img",
14887
- "aria-label": t("settings.apiKey"),
14888
- style: { "--xmimo-tts-api-key-logo-image": `url(${hostRoute(TTS_MIMO_LOGO_ASSET_ROUTE)})` }
15098
+ label: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
15099
+ className: "xmimo-ui-module-title",
15100
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiKey2Line, {
15101
+ size: 14,
15102
+ "aria-hidden": "true",
15103
+ focusable: "false"
15104
+ }), provider === "doubao" ? t("settings.providerDoubao") : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
15105
+ className: "xmimo-tts-api-key-logo",
15106
+ role: "img",
15107
+ "aria-label": t("settings.apiKey"),
15108
+ style: { "--xmimo-tts-api-key-logo-image": `url(${hostRoute(TTS_MIMO_LOGO_ASSET_ROUTE)})` }
15109
+ })]
14889
15110
  }),
14890
- suffix: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
15111
+ suffix: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
14891
15112
  className: "xmimo-tts-api-key-link",
14892
15113
  href: keyUrl,
14893
15114
  target: "_blank",
14894
15115
  rel: "noopener noreferrer",
14895
15116
  children: t("settings.getApiKey")
14896
- }), clearable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
14897
- type: "button",
14898
- variant: "ghost",
14899
- size: "sm",
14900
- className: "xmimo-tts-reset",
14901
- disabled: !writable,
14902
- onClick: (event) => {
14903
- event.preventDefault();
14904
- event.stopPropagation();
14905
- onClear();
14906
- },
14907
- children: t("settings.apiKeyClear")
14908
- }) : null] }),
15117
+ }),
14909
15118
  disabled: !writable,
14910
15119
  resettable: false
14911
15120
  }),
@@ -14913,8 +15122,12 @@ function ApiKeyModule({ t, provider, value, message, invalid, clearable, writabl
14913
15122
  className: "xmimo-tts-api-key-decoration",
14914
15123
  "aria-hidden": "true"
14915
15124
  }),
14916
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15125
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("form", {
14917
15126
  className: "xmimo-tts-api-key-content",
15127
+ onSubmit: (event) => {
15128
+ event.preventDefault();
15129
+ event.stopPropagation();
15130
+ },
14918
15131
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
14919
15132
  className: "xmimo-tts-api-key-input",
14920
15133
  children: [
@@ -14971,7 +15184,6 @@ function ApiKeyModule({ t, provider, value, message, invalid, clearable, writabl
14971
15184
  //#region src/client/settings/api-key-state.ts
14972
15185
  /** Resolve the user-facing API-key state without exposing the saved secret to the browser. */
14973
15186
  function resolveApiKeyViewState(draft, draftRecognized, savedStatus, change) {
14974
- if (change === "clear") return "pending-clear";
14975
15187
  if (change === "set" && draft.trim().length > 0) return draftRecognized ? "pending-save" : "pending-invalid";
14976
15188
  return savedStatus;
14977
15189
  }
@@ -16039,13 +16251,14 @@ function useAccordionViewport(open, onToggle) {
16039
16251
 
16040
16252
  //#endregion
16041
16253
  //#region src/client/settings/collapsible-module.tsx
16042
- function CollapsibleModule({ className, title, summary, open, onToggle, ariaLabel, children }) {
16254
+ function CollapsibleModule({ className, title, summary, interactiveSummary = false, open, onToggle, ariaLabel, children }) {
16043
16255
  const id$2 = (0, react.useId)();
16044
16256
  const { panel, toggle } = useAccordionViewport(open, onToggle);
16045
16257
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModuleShell, {
16046
16258
  className: `xmimo-ui-accordion ${className}`,
16047
16259
  title,
16048
16260
  summary,
16261
+ interactiveSummary,
16049
16262
  collapsible: true,
16050
16263
  open,
16051
16264
  onToggle: toggle,
@@ -16126,7 +16339,15 @@ function DetailsModule({ t, provider, doubaoModel, doubaoVoice, doubaoClonedVoic
16126
16339
  const instructionField = provider === "doubao" ? "doubaoInstruction" : "instruction";
16127
16340
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleModule, {
16128
16341
  className: "xmimo-tts-settings-module xmimo-tts-details xmimo-ui-module",
16129
- title: t("settings.detailedVoiceConfig"),
16342
+ title: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16343
+ className: "xmimo-ui-module-title",
16344
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiEqualizerLine, {
16345
+ size: 14,
16346
+ "aria-hidden": "true",
16347
+ focusable: "false"
16348
+ }), t("settings.detailedVoiceConfig")]
16349
+ }),
16350
+ ariaLabel: t("settings.detailedVoiceConfig"),
16130
16351
  summary: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16131
16352
  className: "xmimo-tts-details-summary xmimo-ui-summary",
16132
16353
  children: [
@@ -16449,19 +16670,7 @@ function DetailsModule({ t, provider, doubaoModel, doubaoVoice, doubaoClonedVoic
16449
16670
 
16450
16671
  //#endregion
16451
16672
  //#region src/client/settings/announcement-settings.tsx
16452
- const ANNOUNCEMENT_SOURCE_OPTIONS = [
16453
- {
16454
- id: "dsh-pet",
16455
- label: "settings.announcementsPet",
16456
- hint: "settings.announcementsPetHint",
16457
- href: "https://github.com/PC2005-cloud/dsh-pet"
16458
- },
16459
- {
16460
- id: "dsh-whale-musume",
16461
- label: "settings.announcementsWhale",
16462
- hint: "settings.announcementsWhaleHint",
16463
- href: "https://github.com/Sutera-Diffusus/dsh-whale-musume"
16464
- },
16673
+ const HOST_SOURCE_OPTIONS = [
16465
16674
  {
16466
16675
  id: "question-titles",
16467
16676
  label: "settings.announcementsQuestions",
@@ -16481,22 +16690,44 @@ const ANNOUNCEMENT_SOURCE_OPTIONS = [
16481
16690
  href: null
16482
16691
  }
16483
16692
  ];
16693
+ const PLUGIN_SOURCE_OPTIONS = [{
16694
+ id: "dsh-pet",
16695
+ label: "settings.announcementsPet",
16696
+ hint: "settings.announcementsPetHint",
16697
+ href: "https://github.com/PC2005-cloud/dsh-pet"
16698
+ }, {
16699
+ id: "dsh-whale-musume",
16700
+ label: "settings.announcementsWhale",
16701
+ hint: "settings.announcementsWhaleHint",
16702
+ href: "https://github.com/Sutera-Diffusus/dsh-whale-musume"
16703
+ }];
16704
+ const ANNOUNCEMENT_SOURCE_OPTIONS = [...HOST_SOURCE_OPTIONS, ...PLUGIN_SOURCE_OPTIONS];
16705
+ const SOURCE_GROUPS = [{
16706
+ label: "settings.announcementsTitle",
16707
+ hint: "settings.announcementsHint",
16708
+ options: HOST_SOURCE_OPTIONS
16709
+ }, {
16710
+ label: "settings.announcementsPlugins",
16711
+ hint: "settings.announcementsPluginsHint",
16712
+ options: PLUGIN_SOURCE_OPTIONS
16713
+ }];
16484
16714
  function AnnouncementSettings({ t, sources, writable, overridden, onChange, onReset }) {
16485
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
16715
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: SOURCE_GROUPS.map((group, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
16486
16716
  className: "xmimo-tts-format",
16717
+ "aria-label": t(group.label),
16487
16718
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingFieldHeading, {
16488
- label: t("settings.announcementsTitle"),
16719
+ label: t(group.label),
16489
16720
  suffix: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldInfo, {
16490
- label: t("settings.announcementsTitle"),
16491
- text: t("settings.announcementsHint")
16721
+ label: t(group.label),
16722
+ text: t(group.hint)
16492
16723
  }),
16493
16724
  overriddenLabel: t("settings.overridden"),
16494
16725
  resetLabel: t("settings.reset"),
16495
- overridden,
16726
+ overridden: index === 0 && overridden,
16496
16727
  resettable: true,
16497
16728
  disabled: !writable,
16498
16729
  onReset
16499
- }), ANNOUNCEMENT_SOURCE_OPTIONS.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16730
+ }), group.options.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16500
16731
  className: "xmimo-tts-announcement-source",
16501
16732
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [option.href ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
16502
16733
  href: option.href,
@@ -16510,7 +16741,7 @@ function AnnouncementSettings({ t, sources, writable, overridden, onChange, onRe
16510
16741
  onChange: (checked) => onChange(ANNOUNCEMENT_SOURCES.filter((id$2) => id$2 === option.id ? checked : sources.includes(id$2)))
16511
16742
  })]
16512
16743
  }, option.id))]
16513
- });
16744
+ }, group.label)) });
16514
16745
  }
16515
16746
 
16516
16747
  //#endregion
@@ -16552,13 +16783,39 @@ function PreviewModule({ t, enabled, status, source, error, text, onToggle, onTe
16552
16783
  const messageKey = status === "error" ? error === "save-key-first" ? "settings.previewSaveKeyFirst" : error === "voice-required" ? "settings.doubaoVoiceRequired" : error === "voice-unavailable" ? "settings.previewErrorVoiceUnavailable" : error === "resource-unavailable" ? "settings.previewErrorResourceUnavailable" : error === "stream-buffer-limit" ? "settings.previewErrorBufferLimit" : error === "api-key-not-configured" ? "settings.previewErrorApiKeyMissing" : error === "api-key-rejected" ? "settings.previewErrorApiKeyRejected" : error === "rate-limited" ? "settings.previewErrorRateLimited" : error === "timeout" ? "settings.previewErrorTimeout" : error === "local-voice-unavailable" ? "settings.previewErrorLocalUnavailable" : error === "autoplay-blocked" ? "settings.previewErrorAutoplay" : "settings.previewFailed" : status === "loading" ? source === "doubao" ? "settings.previewLoadingDoubao" : source === "local" ? "settings.previewLoadingLocal" : "settings.previewLoadingMimo" : status === "playing" ? source === "doubao" ? "settings.previewPlayingDoubao" : source === "local" ? "settings.previewPlayingLocal" : "settings.previewPlayingMimo" : source === "doubao" ? "settings.previewCompletedDoubao" : source === "local" ? "settings.previewCompletedLocal" : source === "mimo" ? "settings.previewCompletedMimo" : "settings.previewHint";
16553
16784
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleModule, {
16554
16785
  className: "xmimo-tts-settings-module xmimo-tts-broadcast",
16555
- title: t("settings.previewTitle"),
16786
+ title: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16787
+ className: "xmimo-ui-module-title",
16788
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiRadio2Line, {
16789
+ size: 14,
16790
+ "aria-hidden": "true",
16791
+ focusable: "false"
16792
+ }), t("settings.previewTitle")]
16793
+ }),
16794
+ ariaLabel: t("settings.previewTitle"),
16556
16795
  open,
16557
16796
  onToggle: onToggleOpen,
16558
- summary: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16797
+ interactiveSummary: true,
16798
+ summary: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16559
16799
  className: "xmimo-ui-summary",
16560
- children: [ANNOUNCEMENT_SOURCE_OPTIONS.filter((option) => settings.sources.includes(option.id)).map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(option.label) }, option.id)), settings.sources.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.announcementsNone") }) : null]
16561
- }),
16800
+ children: [
16801
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
16802
+ type: "button",
16803
+ className: "xmimo-tts-preview-tag",
16804
+ title: t(busy ? "settings.previewStop" : "settings.previewPlay"),
16805
+ "aria-label": t(busy ? "settings.previewStop" : "settings.previewPlay"),
16806
+ "aria-pressed": busy,
16807
+ disabled: !enabled || !busy && text.trim().length === 0,
16808
+ onClick: onToggle,
16809
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlaybackIcon, { state: busy ? "stop" : "play" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(busy ? "settings.previewStopShort" : "settings.previewListen") })]
16810
+ }),
16811
+ ANNOUNCEMENT_SOURCE_OPTIONS.filter((option) => settings.sources.includes(option.id)).map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(option.label) }, option.id)),
16812
+ settings.sources.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.announcementsNone") }) : null
16813
+ ]
16814
+ }), !open && status === "error" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", {
16815
+ className: "xmimo-tts-preview-summary-status xmimo-tts-failed",
16816
+ role: "status",
16817
+ children: t(messageKey)
16818
+ }) : null] }),
16562
16819
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16563
16820
  className: "xmimo-tts-broadcast-body",
16564
16821
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -17310,7 +17567,15 @@ function SoundEffectsPanel({ t, controller, enabled, volume, pack, taskSounds, c
17310
17567
  const previewLabel = (cue) => t(`settings.soundEffectsPreview.${cue}`);
17311
17568
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleModule, {
17312
17569
  className: "xmimo-tts-settings-module xmimo-tts-sound-effects xmimo-ui-module",
17313
- title: t("settings.soundEffectsTitle"),
17570
+ title: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
17571
+ className: "xmimo-ui-module-title",
17572
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiDiscLine, {
17573
+ size: 14,
17574
+ "aria-hidden": "true",
17575
+ focusable: "false"
17576
+ }), t("settings.soundEffectsTitle")]
17577
+ }),
17578
+ ariaLabel: t("settings.soundEffectsTitle"),
17314
17579
  summary: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
17315
17580
  className: "xmimo-tts-sound-summary xmimo-ui-summary",
17316
17581
  children: [
@@ -17390,22 +17655,10 @@ function SoundEffectsPanel({ t, controller, enabled, volume, pack, taskSounds, c
17390
17655
  onKeyDown: (event) => {
17391
17656
  handlePackKeyDown(event, index);
17392
17657
  },
17393
- children: [
17394
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SoundPackIcon, { pack: option }),
17395
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17396
- className: "xmimo-tts-sound-pack-name",
17397
- children: option
17398
- }),
17399
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
17400
- className: "xmimo-tts-sound-pack-wave",
17401
- "aria-hidden": "true",
17402
- children: [
17403
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {}),
17404
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {}),
17405
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {})
17406
- ]
17407
- })
17408
- ]
17658
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SoundPackIcon, { pack: option }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17659
+ className: "xmimo-tts-sound-pack-name",
17660
+ children: option
17661
+ })]
17409
17662
  }, option))
17410
17663
  })]
17411
17664
  }),
@@ -17953,14 +18206,25 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
17953
18206
  children: [
17954
18207
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
17955
18208
  className: "xmimo-tts-history-header",
17956
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h2", { children: [
17957
- t("history.title"),
17958
- " ",
17959
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18209
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h2", {
18210
+ "aria-label": t("history.title"),
18211
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
18212
+ ref: backRef,
18213
+ type: "button",
18214
+ className: "xmimo-tts-history-title-back",
18215
+ "aria-label": t("history.backToSettings"),
18216
+ title: t("history.backToSettings"),
18217
+ onClick: onBack,
18218
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiArrowLeftSLine, {
18219
+ size: 18,
18220
+ "aria-hidden": "true",
18221
+ focusable: "false"
18222
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("history.title") })]
18223
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17960
18224
  className: "xmimo-tts-history-count",
17961
18225
  children: view.entries.length
17962
- })
17963
- ] }), hasEntries ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18226
+ })]
18227
+ }), hasEntries ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17964
18228
  className: "xmimo-tts-history-toolbar",
17965
18229
  children: [
17966
18230
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Input, {
@@ -18194,7 +18458,6 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
18194
18458
  historyFileSize(view.entries.reduce((sum, entry) => sum + entry.blob.size, 0))
18195
18459
  ] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("history.hint") })]
18196
18460
  }) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18197
- ref: backRef,
18198
18461
  type: "button",
18199
18462
  variant: "outline",
18200
18463
  size: "sm",
@@ -18209,7 +18472,6 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
18209
18472
 
18210
18473
  //#endregion
18211
18474
  //#region src/client/settings/card.tsx
18212
- const RELEASES_URL = "https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts/releases";
18213
18475
  const PREVIEW_TEXT_KEYS = [
18214
18476
  "settings.previewDefaultText",
18215
18477
  "settings.previewDefaultTextPoetry",
@@ -18232,11 +18494,18 @@ function HistoryLink({ history, t, onOpen, buttonRef }) {
18232
18494
  variant: "toolbar",
18233
18495
  size: "sm",
18234
18496
  onClick: onOpen,
18235
- children: [
18236
- t("history.title"),
18237
- " · ",
18238
- view.entries.length
18239
- ]
18497
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(GoHistory, {
18498
+ size: 14,
18499
+ "aria-hidden": "true",
18500
+ focusable: "false"
18501
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
18502
+ className: "xmimo-tts-action-label",
18503
+ children: [
18504
+ t("history.title"),
18505
+ " · ",
18506
+ view.entries.length
18507
+ ]
18508
+ })]
18240
18509
  });
18241
18510
  }
18242
18511
  function SettingsCard(props) {
@@ -18314,7 +18583,7 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18314
18583
  toggleSoundPlayer
18315
18584
  ]);
18316
18585
  const [apiKeyStatus, setApiKeyStatus] = (0, react.useState)("loading");
18317
- const [latestVersion, setLatestVersion] = (0, react.useState)(null);
18586
+ const latestVersion = useAvailableUpdate();
18318
18587
  const [minimalMode, setMinimalMode] = (0, react.useState)(readMinimalMode);
18319
18588
  const [historyOpen, setHistoryOpen] = (0, react.useState)(false);
18320
18589
  const historyLinkRef = (0, react.useRef)(null);
@@ -18363,13 +18632,12 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18363
18632
  if (change.kind === "clear") return hasOverride(field);
18364
18633
  return field === "announcementSources" ? JSON.stringify(draft[field]) !== JSON.stringify(acceptedValue(field)) : !Object.is(draft[field], acceptedValue(field));
18365
18634
  };
18366
- const apiKeyDirty = ["apiKey", "doubaoApiKey"].some((field) => changes[field]?.kind === "clear" ? hasOverride(field) : changes[field]?.kind === "set" && apiKeys[field === "apiKey" ? "xiaomi" : "doubao"].trim().length > 0);
18635
+ const apiKeyDirty = ["apiKey", "doubaoApiKey"].some((field) => changes[field]?.kind === "set" && apiKeys[field === "apiKey" ? "xiaomi" : "doubao"].trim().length > 0);
18367
18636
  const dirty = EDITABLE_SETTING_FIELDS.some(fieldDirty) || apiKeyDirty;
18368
18637
  const validationError = validateSettingsDraft(draft);
18369
18638
  const apiKeyViewState = resolveApiKeyViewState(apiKey, isSupportedTtsApiKey(apiKey, provider), apiKeyStatus, changes[apiKeyField]?.kind);
18370
- const apiKeyMessage = t(apiKeyViewState === "loading" ? "settings.apiKeyLoading" : apiKeyViewState === "missing" ? "settings.apiKeyMissing" : apiKeyViewState === "recognized" ? provider === "doubao" ? "settings.doubaoKeyConfigured" : "settings.apiKeyRecognized" : apiKeyViewState === "unrecognized" ? "settings.apiKeyUnsupportedSaved" : apiKeyViewState === "unavailable" ? "settings.apiKeyUnavailable" : apiKeyViewState === "pending-save" ? "settings.apiKeyPendingSave" : apiKeyViewState === "pending-clear" ? "settings.apiKeyPendingClear" : "settings.apiKeyUnsupported");
18639
+ const apiKeyMessage = t(apiKeyViewState === "loading" ? "settings.apiKeyLoading" : apiKeyViewState === "missing" ? "settings.apiKeyMissing" : apiKeyViewState === "recognized" ? provider === "doubao" ? "settings.doubaoKeyConfigured" : "settings.apiKeyRecognized" : apiKeyViewState === "unrecognized" ? "settings.apiKeyUnsupportedSaved" : apiKeyViewState === "unavailable" ? "settings.apiKeyUnavailable" : apiKeyViewState === "pending-save" ? "settings.apiKeyPendingSave" : "settings.apiKeyUnsupported");
18371
18640
  const apiKeyInvalid = apiKeyViewState === "pending-invalid" || apiKeyViewState === "unrecognized";
18372
- const apiKeyClearable = hasOverride(apiKeyField) && changes[apiKeyField]?.kind !== "clear";
18373
18641
  (0, react.useEffect)(() => {
18374
18642
  if (snapshot.status === "unavailable") return;
18375
18643
  let active = true;
@@ -18391,24 +18659,6 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18391
18659
  snapshot.status,
18392
18660
  value
18393
18661
  ]);
18394
- (0, react.useEffect)(() => {
18395
- let active = true;
18396
- fetch(hostRoute(TTS_UPDATE_ROUTE), {
18397
- cache: "no-store",
18398
- headers: { accept: "application/json" }
18399
- }).then(async (response) => {
18400
- if (!response.ok) throw new Error("version-check-failed");
18401
- return await response.json();
18402
- }).then((result) => {
18403
- if (!active) return;
18404
- setLatestVersion(result.updateAvailable === true && typeof result.latestVersion === "string" ? result.latestVersion : null);
18405
- }).catch(() => {
18406
- if (active) setLatestVersion(null);
18407
- });
18408
- return () => {
18409
- active = false;
18410
- };
18411
- }, []);
18412
18662
  (0, react.useEffect)(() => {
18413
18663
  if (dirty) return;
18414
18664
  const next = resolveTtsSettings(value);
@@ -18473,16 +18723,20 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18473
18723
  historyWasOpen.current = historyOpen;
18474
18724
  }, [historyOpen]);
18475
18725
  if (snapshot.status === "unavailable") return null;
18476
- const markChange = (field, kind = "set") => {
18726
+ const markChange = (field) => {
18477
18727
  setChanges((current) => ({
18478
18728
  ...current,
18479
- [field]: { kind }
18729
+ [field]: { kind: "set" }
18480
18730
  }));
18481
18731
  setState("idle");
18482
18732
  };
18483
18733
  const resetField = (field) => {
18484
18734
  previewPlayer.stop();
18485
- markChange(field, "clear");
18735
+ setChanges((current) => ({
18736
+ ...current,
18737
+ [field]: { kind: "clear" }
18738
+ }));
18739
+ setState("idle");
18486
18740
  if (field === "provider") setProvider(base.provider);
18487
18741
  if (field === "doubaoModel") setDoubaoModel(base.doubaoModel);
18488
18742
  if (field === "doubaoVoice") setDoubaoVoice(base.doubaoVoice);
@@ -18507,10 +18761,6 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18507
18761
  if (field === "taskSounds") setTaskSounds(base.taskSounds);
18508
18762
  if (field === "clickSounds") setClickSounds(base.clickSounds);
18509
18763
  };
18510
- const clearApiKey = () => {
18511
- setApiKey("");
18512
- markChange(apiKeyField, "clear");
18513
- };
18514
18764
  const discard = () => {
18515
18765
  const next = resolveTtsSettings(scope.getSnapshot().value);
18516
18766
  setProvider(next.provider);
@@ -18719,14 +18969,12 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18719
18969
  value: apiKey,
18720
18970
  message: apiKeyMessage,
18721
18971
  invalid: apiKeyInvalid,
18722
- clearable: apiKeyClearable,
18723
18972
  writable: snapshot.writable,
18724
18973
  minimal: minimalMode,
18725
18974
  onChange: (next) => {
18726
18975
  setApiKey(next);
18727
18976
  markChange(apiKeyField);
18728
- },
18729
- onClear: clearApiKey
18977
+ }
18730
18978
  }),
18731
18979
  enabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DetailsModule, {
18732
18980
  t,
@@ -18868,89 +19116,113 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18868
19116
  markChange("announcementSources");
18869
19117
  }
18870
19118
  }) : null,
18871
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18872
- className: "xmimo-tts-card-actions",
18873
- children: [
18874
- latestVersion !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
18875
- className: "xmimo-tts-update",
18876
- href: RELEASES_URL,
18877
- target: "_blank",
18878
- rel: "noopener noreferrer",
18879
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiOutlineGift, {
18880
- size: 14,
18881
- "aria-hidden": "true",
18882
- focusable: "false"
18883
- }), t("settings.updateAvailable")]
18884
- }) : null,
18885
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18886
- className: "xmimo-tts-card-action-links",
18887
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
18888
- className: "xmimo-tts-star",
18889
- href: "https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts",
18890
- target: "_blank",
18891
- rel: "noopener noreferrer",
18892
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiFillGithub, {
18893
- size: 14,
18894
- "aria-hidden": "true",
18895
- focusable: "false"
18896
- }), t("settings.source")]
18897
- }), history ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HistoryLink, {
18898
- history,
18899
- t,
18900
- buttonRef: historyLinkRef,
18901
- onOpen: () => {
18902
- previewPlayer.stop();
18903
- toggleSoundPlayer.dispose();
18904
- setHistoryOpen(true);
18905
- }
18906
- }) : null]
18907
- }),
18908
- !snapshot.writable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.readOnly") }) : null,
18909
- state === "saved" && !dirty ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18910
- role: "status",
18911
- children: t("settings.saved")
18912
- }) : null,
18913
- validationError !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18914
- role: "alert",
18915
- className: "xmimo-tts-failed",
18916
- children: t("settings.doubaoVoiceRequired")
18917
- }) : null,
18918
- state === "failed" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18919
- className: "xmimo-tts-failed",
18920
- role: "status",
18921
- children: t("settings.failed")
18922
- }) : null,
18923
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18924
- type: "button",
18925
- variant: "toolbar",
18926
- size: "sm",
18927
- className: "xmimo-tts-mode-toggle",
18928
- "aria-pressed": minimalMode,
18929
- "aria-label": `${t("settings.minimalMode")}: ${t(minimalMode ? "settings.minimalModeOn" : "settings.minimalModeOff")}`,
18930
- onClick: toggleMinimalMode,
18931
- children: t(minimalMode ? "settings.defaultModeShort" : "settings.minimalModeShort")
18932
- }),
18933
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18934
- type: "button",
18935
- variant: "outline",
18936
- size: "sm",
18937
- className: "xmimo-tts-discard",
18938
- disabled: !snapshot.writable || !dirty || state === "saving",
18939
- onClick: discard,
18940
- children: t("settings.discard")
18941
- }),
18942
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18943
- type: "button",
18944
- variant: "primary",
18945
- size: "sm",
18946
- className: "xmimo-tts-save",
18947
- disabled: !snapshot.writable || !dirty || state === "saving" || validationError !== null,
18948
- onClick: () => {
18949
- save();
18950
- },
18951
- children: state === "saving" ? t("settings.saving") : t("settings.save")
18952
- })
18953
- ]
19119
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19120
+ className: "xmimo-tts-card-footer",
19121
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19122
+ className: "xmimo-tts-card-actions",
19123
+ children: [
19124
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19125
+ className: "xmimo-tts-card-action-links",
19126
+ children: [
19127
+ latestVersion !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
19128
+ className: "xmimo-tts-update",
19129
+ href: RELEASES_URL,
19130
+ target: "_blank",
19131
+ rel: "noopener noreferrer",
19132
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiOutlineGift, {
19133
+ size: 14,
19134
+ "aria-hidden": "true",
19135
+ focusable: "false"
19136
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19137
+ className: "xmimo-tts-action-label",
19138
+ children: t("settings.updateAvailable")
19139
+ })]
19140
+ }) : null,
19141
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
19142
+ className: "xmimo-tts-star",
19143
+ href: SOURCE_URL,
19144
+ target: "_blank",
19145
+ rel: "noopener noreferrer",
19146
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiFillGithub, {
19147
+ size: 14,
19148
+ "aria-hidden": "true",
19149
+ focusable: "false"
19150
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19151
+ className: "xmimo-tts-action-label",
19152
+ children: t("settings.source")
19153
+ })]
19154
+ }),
19155
+ history ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HistoryLink, {
19156
+ history,
19157
+ t,
19158
+ buttonRef: historyLinkRef,
19159
+ onOpen: () => {
19160
+ previewPlayer.stop();
19161
+ toggleSoundPlayer.dispose();
19162
+ setHistoryOpen(true);
19163
+ }
19164
+ }) : null,
19165
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__deepseek_ai_dsh_client_ui_primitives.Button, {
19166
+ type: "button",
19167
+ variant: "toolbar",
19168
+ size: "sm",
19169
+ className: "xmimo-tts-mode-toggle",
19170
+ "aria-pressed": minimalMode,
19171
+ "aria-label": `${t("settings.minimalMode")}: ${t(minimalMode ? "settings.minimalModeOn" : "settings.minimalModeOff")}`,
19172
+ onClick: toggleMinimalMode,
19173
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiSwitchFill, {
19174
+ size: 14,
19175
+ "aria-hidden": "true",
19176
+ focusable: "false"
19177
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19178
+ className: "xmimo-tts-action-label",
19179
+ children: t(minimalMode ? "settings.defaultModeShort" : "settings.minimalModeShort")
19180
+ })]
19181
+ })
19182
+ ]
19183
+ }),
19184
+ !snapshot.writable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.readOnly") }) : null,
19185
+ validationError !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19186
+ role: "alert",
19187
+ className: "xmimo-tts-failed",
19188
+ children: t("settings.doubaoVoiceRequired")
19189
+ }) : null,
19190
+ state === "failed" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19191
+ className: "xmimo-tts-failed",
19192
+ role: "status",
19193
+ children: t("settings.failed")
19194
+ }) : null,
19195
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19196
+ className: "xmimo-tts-card-action-buttons",
19197
+ children: [
19198
+ state === "saved" && !dirty ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19199
+ role: "status",
19200
+ children: t("settings.saved")
19201
+ }) : null,
19202
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
19203
+ type: "button",
19204
+ variant: "outline",
19205
+ size: "sm",
19206
+ className: "xmimo-tts-discard",
19207
+ disabled: !snapshot.writable || !dirty || state === "saving",
19208
+ onClick: discard,
19209
+ children: t("settings.discard")
19210
+ }),
19211
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
19212
+ type: "button",
19213
+ variant: "primary",
19214
+ size: "sm",
19215
+ className: "xmimo-tts-save",
19216
+ disabled: !snapshot.writable || !dirty || state === "saving" || validationError !== null,
19217
+ onClick: () => {
19218
+ save();
19219
+ },
19220
+ children: state === "saving" ? t("settings.saving") : t("settings.save")
19221
+ })
19222
+ ]
19223
+ })
19224
+ ]
19225
+ })
18954
19226
  })
18955
19227
  ]
18956
19228
  })
@@ -19029,8 +19301,168 @@ function installVoiceReadingNavIcon() {
19029
19301
  };
19030
19302
  }
19031
19303
 
19304
+ //#endregion
19305
+ //#region src/client/settings/voice-reading-links.tsx
19306
+ /**
19307
+ * Title-row shortcuts: source, the QQ discussion group, and plugin settings.
19308
+ *
19309
+ * All three are 32px icon-only targets that name themselves through a tooltip
19310
+ * and an aria-label, and each glyph stays in the neutral secondary label color
19311
+ * so the brand accent remains reserved for primary actions.
19312
+ */
19313
+ function VoiceReadingHeaderActions({ t, openPluginSettings }) {
19314
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19315
+ className: "xmimo-voice-reading-actions",
19316
+ children: [
19317
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Tooltip, {
19318
+ label: t("settings.voiceReadingSource"),
19319
+ side: "bottom",
19320
+ align: "end",
19321
+ portal: true,
19322
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
19323
+ className: "xmimo-voice-reading-action",
19324
+ href: SOURCE_URL,
19325
+ target: "_blank",
19326
+ rel: "noopener noreferrer",
19327
+ "aria-label": t("settings.voiceReadingSource"),
19328
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiFillGithub, {
19329
+ size: 16,
19330
+ "aria-hidden": "true",
19331
+ focusable: "false"
19332
+ })
19333
+ })
19334
+ }),
19335
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(QqGroupAction, { t }),
19336
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Tooltip, {
19337
+ label: t("settings.voiceReadingPluginSettings"),
19338
+ side: "bottom",
19339
+ align: "end",
19340
+ portal: true,
19341
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19342
+ type: "button",
19343
+ className: "xmimo-voice-reading-action",
19344
+ "aria-label": t("settings.voiceReadingPluginSettings"),
19345
+ onClick: openPluginSettings,
19346
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiFillSetting, {
19347
+ size: 16,
19348
+ "aria-hidden": "true",
19349
+ focusable: "false"
19350
+ })
19351
+ })
19352
+ })
19353
+ ]
19354
+ });
19355
+ }
19356
+ /**
19357
+ * QQ group entry. Activating it opens the QR capsule directly: no protocol
19358
+ * handler attempt, no waiting on QQ, just the invite that works everywhere —
19359
+ * phone scan, or the group number typed into QQ by hand.
19360
+ */
19361
+ function QqGroupAction({ t }) {
19362
+ const [open, setOpen] = (0, react.useState)(false);
19363
+ const wrapperRef = (0, react.useRef)(null);
19364
+ const triggerRef = (0, react.useRef)(null);
19365
+ const closeRef = (0, react.useRef)(null);
19366
+ const panelId = (0, react.useId)();
19367
+ const close = () => {
19368
+ setOpen(false);
19369
+ };
19370
+ (0, react.useEffect)(() => {
19371
+ if (!open) return;
19372
+ closeRef.current?.focus({ preventScroll: true });
19373
+ const onPointerDown = (event) => {
19374
+ if (wrapperRef.current?.contains(event.target)) return;
19375
+ close();
19376
+ };
19377
+ const onKeyDown = (event) => {
19378
+ if (event.key !== "Escape") return;
19379
+ event.stopPropagation();
19380
+ close();
19381
+ triggerRef.current?.focus({ preventScroll: true });
19382
+ };
19383
+ document.addEventListener("pointerdown", onPointerDown, true);
19384
+ document.addEventListener("keydown", onKeyDown, true);
19385
+ return () => {
19386
+ document.removeEventListener("pointerdown", onPointerDown, true);
19387
+ document.removeEventListener("keydown", onKeyDown, true);
19388
+ };
19389
+ }, [open]);
19390
+ const label = t("settings.voiceReadingQq");
19391
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
19392
+ className: "xmimo-voice-reading-qq",
19393
+ ref: wrapperRef,
19394
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Tooltip, {
19395
+ label,
19396
+ side: "bottom",
19397
+ align: "end",
19398
+ portal: true,
19399
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19400
+ ref: triggerRef,
19401
+ type: "button",
19402
+ className: "xmimo-voice-reading-action",
19403
+ "aria-label": label,
19404
+ "aria-haspopup": "dialog",
19405
+ "aria-expanded": open,
19406
+ "aria-controls": open ? panelId : void 0,
19407
+ onClick: () => {
19408
+ setOpen((current) => !current);
19409
+ },
19410
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiOutlineQq, {
19411
+ size: 16,
19412
+ "aria-hidden": "true",
19413
+ focusable: "false"
19414
+ })
19415
+ })
19416
+ }), open ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19417
+ className: "xmimo-voice-reading-qq-panel",
19418
+ id: panelId,
19419
+ role: "dialog",
19420
+ "aria-label": label,
19421
+ children: [
19422
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19423
+ ref: closeRef,
19424
+ type: "button",
19425
+ className: "xmimo-voice-reading-qq-close",
19426
+ "aria-label": t("settings.voiceReadingQqClose"),
19427
+ onClick: () => {
19428
+ close();
19429
+ triggerRef.current?.focus({ preventScroll: true });
19430
+ },
19431
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { "aria-hidden": "true" })
19432
+ }),
19433
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
19434
+ className: "xmimo-voice-reading-qq-code",
19435
+ src: hostRoute(TTS_QQ_GROUP_ASSET_ROUTE),
19436
+ width: 190,
19437
+ height: 190,
19438
+ alt: t("settings.voiceReadingQqCodeAlt")
19439
+ }),
19440
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19441
+ className: "xmimo-voice-reading-qq-meta",
19442
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19443
+ className: "xmimo-voice-reading-qq-group",
19444
+ children: label
19445
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", {
19446
+ className: "xmimo-voice-reading-qq-number",
19447
+ children: TTS_QQ_GROUP_NUMBER
19448
+ })]
19449
+ })
19450
+ ]
19451
+ }) : null]
19452
+ });
19453
+ }
19454
+
19032
19455
  //#endregion
19033
19456
  //#region src/client/settings/voice-reading-options.ts
19457
+ /** Report the first incomplete setting, including cloud credentials when local speech works. */
19458
+ function voiceReadingWarningKey(settings, apiKeyStatus) {
19459
+ if (!settings.enabled) return "settings.voiceReadingWarningDisabled";
19460
+ if (apiKeyStatus === "missing") return "settings.voiceReadingWarningApiKeyMissing";
19461
+ if (apiKeyStatus === "unrecognized") return "settings.voiceReadingWarningApiKeyInvalid";
19462
+ if (apiKeyStatus === "unavailable") return "settings.voiceReadingWarningApiKeyUnavailable";
19463
+ if (!ttsSelection(settings).voice.trim()) return "settings.voiceReadingWarningVoiceRequired";
19464
+ return null;
19465
+ }
19034
19466
  const DOUBAO_CLONED_MODEL = "seed-icl-2.0";
19035
19467
  const XIAOMI_VOICE_DESIGN_MODEL = "mimo-v2.5-tts-voicedesign";
19036
19468
  function uniqueVoiceIds(ids) {
@@ -19204,14 +19636,135 @@ function soundWriteOps(next, current) {
19204
19636
  return ops;
19205
19637
  }
19206
19638
 
19639
+ //#endregion
19640
+ //#region src/client/settings/voice-reading-warning.tsx
19641
+ function VoiceReadingWarning({ settings, revision, t, openPluginSettings }) {
19642
+ const { provider } = settings;
19643
+ const [result, setResult] = (0, react.useState)(null);
19644
+ const [generation, setGeneration] = (0, react.useState)(0);
19645
+ (0, react.useEffect)(() => onTtsCredentialsSaved(() => {
19646
+ setGeneration((value) => value + 1);
19647
+ }), []);
19648
+ (0, react.useEffect)(() => {
19649
+ let active = true;
19650
+ const controller = new AbortController();
19651
+ fetch(`${hostRoute(TTS_API_KEY_STATUS_ROUTE)}?provider=${provider}`, {
19652
+ headers: { accept: "application/json" },
19653
+ signal: controller.signal
19654
+ }).then(async (response) => {
19655
+ if (!response.ok) throw new Error("api-key-status-failed");
19656
+ const status = await response.json();
19657
+ if (active) setResult({
19658
+ provider,
19659
+ status: status.configured !== true ? "missing" : status.supported === true ? "recognized" : "unrecognized"
19660
+ });
19661
+ }).catch(() => {
19662
+ if (active) setResult({
19663
+ provider,
19664
+ status: "unavailable"
19665
+ });
19666
+ });
19667
+ return () => {
19668
+ active = false;
19669
+ controller.abort();
19670
+ };
19671
+ }, [
19672
+ provider,
19673
+ revision,
19674
+ generation
19675
+ ]);
19676
+ const warning$1 = voiceReadingWarningKey(settings, result?.provider === provider ? result.status : "loading");
19677
+ return warning$1 === null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WarningBar, {
19678
+ message: t(warning$1),
19679
+ dismissLabel: t("settings.voiceReadingDismissWarning"),
19680
+ settingsLabel: t("settings.voiceReadingPluginSettings"),
19681
+ openPluginSettings
19682
+ }, `${provider}:${warning$1}`);
19683
+ }
19684
+ function WarningBar({ message, dismissLabel, settingsLabel, openPluginSettings }) {
19685
+ const [dismissed, setDismissed] = (0, react.useState)(false);
19686
+ if (dismissed) return null;
19687
+ const [before, after] = message.split("{settings}");
19688
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19689
+ className: "xmimo-voice-reading-warning",
19690
+ role: "status",
19691
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
19692
+ className: "xmimo-voice-reading-warning-message",
19693
+ title: message.replace("{settings}", settingsLabel),
19694
+ children: [before, after === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19695
+ type: "button",
19696
+ className: "xmimo-voice-reading-link",
19697
+ onClick: openPluginSettings,
19698
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19699
+ className: "xmimo-voice-reading-link-label",
19700
+ children: settingsLabel
19701
+ })
19702
+ }), after] })]
19703
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19704
+ type: "button",
19705
+ className: "xmimo-voice-reading-warning-close",
19706
+ "aria-label": dismissLabel,
19707
+ title: dismissLabel,
19708
+ onClick: () => {
19709
+ setDismissed(true);
19710
+ },
19711
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { "aria-hidden": "true" })
19712
+ })]
19713
+ });
19714
+ }
19715
+
19716
+ //#endregion
19717
+ //#region src/client/settings/voice-reading-provider.tsx
19718
+ const PROVIDER_NAMES = {
19719
+ xiaomi: "Xiaomi-MiMo",
19720
+ doubao: "Doubao-Seed"
19721
+ };
19722
+ function VoiceReadingProvider({ value, disabled, t, onChange }) {
19723
+ const name = (0, react.useId)();
19724
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("fieldset", {
19725
+ className: "xmimo-voice-reading-provider",
19726
+ disabled,
19727
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("legend", {
19728
+ className: "xmimo-voice-reading-row-title",
19729
+ children: t("settings.provider")
19730
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19731
+ className: "xmimo-voice-reading-provider-options",
19732
+ children: TTS_PROVIDERS.map((provider) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
19733
+ className: "xmimo-voice-reading-provider-option",
19734
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
19735
+ type: "radio",
19736
+ name,
19737
+ value: provider,
19738
+ checked: value === provider,
19739
+ onChange: () => {
19740
+ onChange(provider);
19741
+ }
19742
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
19743
+ className: "xmimo-voice-reading-provider-face",
19744
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
19745
+ src: hostRoute(TTS_PROVIDER_LOGO_ASSET_ROUTES[provider]),
19746
+ width: 32,
19747
+ height: 32,
19748
+ alt: ""
19749
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: PROVIDER_NAMES[provider] })]
19750
+ })]
19751
+ }, provider))
19752
+ })]
19753
+ });
19754
+ }
19755
+
19207
19756
  //#endregion
19208
19757
  //#region src/client/settings/voice-reading-section.tsx
19209
19758
  function VoiceReadingSection(props) {
19210
- const { scope, t } = props;
19211
- if (scope === void 0 || t === void 0) return null;
19759
+ const { scope, t, openPluginSettings } = props;
19760
+ if (scope === void 0 || t === void 0 || openPluginSettings === void 0) return null;
19212
19761
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingPage, {
19213
19762
  scope,
19214
- t
19763
+ t,
19764
+ openPluginSettings: () => {
19765
+ props.close();
19766
+ openPluginSettings();
19767
+ }
19215
19768
  });
19216
19769
  }
19217
19770
  /**
@@ -19261,7 +19814,7 @@ function VoiceReadingSelect({ label, value, fallbackLabel, options, disabled, on
19261
19814
  listClassName: "xmimo-voice-reading-menu"
19262
19815
  });
19263
19816
  }
19264
- function VoiceReadingPage({ scope, t }) {
19817
+ function VoiceReadingPage({ scope, t, openPluginSettings }) {
19265
19818
  const snapshot = useSettingsSnapshot(scope);
19266
19819
  const [clonedHistory] = (0, react.useState)(() => readVoiceIdHistory("cloned"));
19267
19820
  const [busy, setBusy] = (0, react.useState)(false);
@@ -19300,15 +19853,51 @@ function VoiceReadingPage({ scope, t }) {
19300
19853
  }));
19301
19854
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19302
19855
  className: "xmimo-voice-reading",
19856
+ style: { "--xmimo-voice-reading-background": `url(${hostRoute(TTS_HISTORY_EMPTY_ASSET_ROUTE)})` },
19303
19857
  children: [
19304
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
19305
- className: "xmimo-voice-reading-title",
19306
- children: t("settings.voiceReadingTitle")
19858
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19859
+ className: "xmimo-voice-reading-header",
19860
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
19861
+ className: "xmimo-voice-reading-title",
19862
+ children: t("settings.voiceReadingTitle")
19863
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingHeaderActions, {
19864
+ t,
19865
+ openPluginSettings
19866
+ })]
19307
19867
  }),
19308
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
19868
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
19309
19869
  className: "xmimo-voice-reading-intro",
19310
- children: t("settings.voiceReadingIntro")
19870
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.voiceReadingIntro") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
19871
+ type: "button",
19872
+ className: "xmimo-voice-reading-link",
19873
+ onClick: openPluginSettings,
19874
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19875
+ className: "xmimo-voice-reading-link-label",
19876
+ children: t("settings.voiceReadingPluginSettings")
19877
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19878
+ "aria-hidden": "true",
19879
+ children: "↗"
19880
+ })]
19881
+ })]
19311
19882
  }),
19883
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingProvider, {
19884
+ value: settings.provider,
19885
+ disabled,
19886
+ t,
19887
+ onChange: (provider) => {
19888
+ write([{
19889
+ op: "set",
19890
+ path: ["provider"],
19891
+ value: provider
19892
+ }]);
19893
+ }
19894
+ }),
19895
+ ready ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingWarning, {
19896
+ settings,
19897
+ revision: snapshot.revision,
19898
+ t,
19899
+ openPluginSettings
19900
+ }) : null,
19312
19901
  ready && !snapshot.writable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
19313
19902
  className: "xmimo-voice-reading-notice",
19314
19903
  role: "status",
@@ -19340,15 +19929,12 @@ function VoiceReadingPage({ scope, t }) {
19340
19929
  }),
19341
19930
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19342
19931
  className: "xmimo-voice-reading-row",
19343
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19932
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19344
19933
  className: "xmimo-voice-reading-copy",
19345
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19934
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19346
19935
  className: "xmimo-voice-reading-row-title",
19347
19936
  children: t("settings.voiceReadingVolume")
19348
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19349
- className: "xmimo-voice-reading-row-hint",
19350
- children: t("settings.voiceReadingVolumeHint")
19351
- })]
19937
+ })
19352
19938
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingSelect, {
19353
19939
  label: t("settings.voiceReadingVolume"),
19354
19940
  value: String(settings.voiceVolume),
@@ -19365,15 +19951,12 @@ function VoiceReadingPage({ scope, t }) {
19365
19951
  }),
19366
19952
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19367
19953
  className: "xmimo-voice-reading-row",
19368
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19954
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19369
19955
  className: "xmimo-voice-reading-copy",
19370
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19956
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19371
19957
  className: "xmimo-voice-reading-row-title",
19372
19958
  children: t("settings.voiceReadingRate")
19373
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19374
- className: "xmimo-voice-reading-row-hint",
19375
- children: t("settings.voiceReadingRateHint")
19376
- })]
19959
+ })
19377
19960
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingSelect, {
19378
19961
  label: t("settings.voiceReadingRate"),
19379
19962
  value: String(settings.voiceRate),
@@ -19411,15 +19994,12 @@ function VoiceReadingPage({ scope, t }) {
19411
19994
  }),
19412
19995
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19413
19996
  className: "xmimo-voice-reading-row",
19414
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19997
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19415
19998
  className: "xmimo-voice-reading-copy",
19416
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19999
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19417
20000
  className: "xmimo-voice-reading-row-title",
19418
20001
  children: t("settings.voiceReadingAutoPlay")
19419
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19420
- className: "xmimo-voice-reading-row-hint",
19421
- children: t("settings.voiceReadingAutoPlayHint")
19422
- })]
20002
+ })
19423
20003
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Switch, {
19424
20004
  checked: settings.autoPlay,
19425
20005
  disabled,
@@ -20770,8 +21350,8 @@ const VALID_CUES = new Set([
20770
21350
  function createSoundEffectsController(canPlay = () => true) {
20771
21351
  let settings = {
20772
21352
  enabled: true,
20773
- volume: .35,
20774
- pack: "zen",
21353
+ volume: DEFAULT_SOUND_SETTINGS.soundVolume,
21354
+ pack: DEFAULT_SOUND_SETTINGS.soundPack,
20775
21355
  taskSounds: true,
20776
21356
  clickSounds: true
20777
21357
  };
@@ -20936,7 +21516,7 @@ var voice_default = "/*\n * Voice pickers: custom voice trigger, builtin voice g
20936
21516
 
20937
21517
  //#endregion
20938
21518
  //#region src/client/style/card-actions.css?raw
20939
- var card_actions_default = "/*\n * Settings card action bar: update, star, discard, and save.\n */\n\n.xmimo-tts-card-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: 10px;\n font-size: 12px;\n color: var(--xmimo-ui-text-subtle)\n}\n\n.xmimo-tts-card-action-links {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px;\n margin-inline-end: auto\n}\n\n.xmimo-tts-card-actions :is(button, a),\n.xmimo-ui-scope .xmimo-tts-action-button {\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n gap: 4px;\n min-height: 30px;\n height: auto;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: 8px;\n padding: 5px 10px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n cursor: pointer;\n font: inherit;\n font-weight: 500;\n line-height: 18px;\n text-decoration: none;\n white-space: nowrap;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease\n}\n\n.xmimo-tts-card-actions :is(button, a):where(:hover, :focus-visible):not(:disabled),\n.xmimo-ui-scope .xmimo-tts-action-button:where(:hover, :focus-visible):not(:disabled) {\n border-color: var(--xmimo-ui-brand);\n background: var(--xmimo-ui-hover);\n text-decoration: none\n}\n\n.xmimo-tts-card-actions :is(button, a):focus-visible,\n.xmimo-ui-scope .xmimo-tts-action-button:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions > button:disabled,\n.xmimo-ui-scope .xmimo-tts-action-button:disabled {\n border-color: var(--xmimo-ui-border);\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-control-surface);\n cursor: not-allowed;\n opacity: 1\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save {\n border-color: var(--xmimo-ui-brand);\n color: var(--dsw-alias-label-primary-foreground, #fff);\n background: var(--dsw-alias-button-primary-fill, var(--xmimo-ui-brand));\n font-weight: 600\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:is(:hover, :focus-visible):not(:disabled) {\n background: var(--dsw-alias-button-primary-hover, color-mix(in srgb, var(--xmimo-ui-brand) 85%, var(--xmimo-ui-text)))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:disabled {\n border-color: color-mix(in srgb, var(--xmimo-ui-brand) 25%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-text-muted);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 12%, var(--xmimo-ui-surface))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-update {\n color: var(--xmimo-ui-brand)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star) {\n position: relative;\n isolation: isolate;\n overflow: hidden;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star {\n border: 1px solid color-mix(in srgb, var(--xmimo-ui-brand) 30%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-brand);\n background: transparent;\n font-weight: 600\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star)::before {\n position: absolute;\n z-index: -1;\n inset: 0;\n background: linear-gradient(110deg, transparent 15%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 35%, color-mix(in srgb, var(--xmimo-ui-brand) 28%, transparent) 50%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 65%, transparent 85%);\n content: '';\n pointer-events: none;\n opacity: 0;\n transform: translateX(-110%)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible) {\n border-color: var(--xmimo-ui-brand);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 6%, transparent);\n box-shadow: 0 3px 10px color-mix(in srgb, var(--xmimo-ui-brand) 16%, transparent);\n text-decoration: none;\n transform: translateY(-1px)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible)::before {\n opacity: 1;\n animation: xmimo-tts-star-shine 1s ease-in-out infinite\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):active {\n box-shadow: none;\n transform: translateY(0)\n}\n\n@keyframes xmimo-tts-star-shine {\n 0% { transform: translateX(-110%) }\n 65%, 100% { transform: translateX(110%) }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-card-actions > :is(button, a),\n .xmimo-ui-scope .xmimo-tts-action-button {\n min-height: 44px\n }\n}\n";
21519
+ var card_actions_default = "/*\n * Settings card action bar: update, star, discard, and save.\n */\n\n.xmimo-tts-card-footer {\n min-width: 0;\n container: xmimo-actions / inline-size\n}\n\n.xmimo-tts-card-actions {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px;\n font-size: 12px;\n color: var(--xmimo-ui-text-subtle)\n}\n\n.xmimo-tts-card-action-links {\n display: flex;\n min-width: 0;\n flex-wrap: wrap;\n align-items: center;\n gap: inherit\n}\n\n/* Reserve one column for both actions, even inside a narrow host panel. */\n.xmimo-tts-card-action-buttons {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n gap: inherit\n}\n\n.xmimo-tts-card-actions > span {\n grid-column: 1 / -1;\n order: -1;\n text-align: end\n}\n\n.xmimo-tts-card-actions :is(button, a),\n.xmimo-ui-scope .xmimo-tts-action-button {\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n gap: 4px;\n min-height: 30px;\n height: auto;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: 8px;\n padding: 5px 10px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n cursor: pointer;\n font: inherit;\n font-weight: 500;\n line-height: 18px;\n text-decoration: none;\n white-space: nowrap;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease\n}\n\n.xmimo-tts-card-actions :is(button, a):where(:hover, :focus-visible):not(:disabled),\n.xmimo-ui-scope .xmimo-tts-action-button:where(:hover, :focus-visible):not(:disabled) {\n border-color: var(--xmimo-ui-brand);\n background: var(--xmimo-ui-hover);\n text-decoration: none\n}\n\n.xmimo-tts-card-actions :is(button, a):focus-visible,\n.xmimo-ui-scope .xmimo-tts-action-button:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions button:disabled,\n.xmimo-ui-scope .xmimo-tts-action-button:disabled {\n border-color: var(--xmimo-ui-border);\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-control-surface);\n cursor: not-allowed;\n opacity: 1\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save {\n border-color: var(--xmimo-ui-brand);\n color: var(--dsw-alias-label-primary-foreground, #fff);\n background: var(--dsw-alias-button-primary-fill, var(--xmimo-ui-brand));\n font-weight: 600\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:is(:hover, :focus-visible):not(:disabled) {\n background: var(--dsw-alias-button-primary-hover, color-mix(in srgb, var(--xmimo-ui-brand) 85%, var(--xmimo-ui-text)))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:disabled {\n border-color: color-mix(in srgb, var(--xmimo-ui-brand) 25%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-text-muted);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 12%, var(--xmimo-ui-surface))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-update {\n color: var(--xmimo-ui-brand)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star) {\n position: relative;\n isolation: isolate;\n overflow: hidden;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star {\n border: 1px solid color-mix(in srgb, var(--xmimo-ui-brand) 30%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-brand);\n background: transparent;\n font-weight: 600\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star)::before {\n position: absolute;\n z-index: -1;\n inset: 0;\n background: linear-gradient(110deg, transparent 15%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 35%, color-mix(in srgb, var(--xmimo-ui-brand) 28%, transparent) 50%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 65%, transparent 85%);\n content: '';\n pointer-events: none;\n opacity: 0;\n transform: translateX(-110%)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible) {\n border-color: var(--xmimo-ui-brand);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 6%, transparent);\n box-shadow: 0 3px 10px color-mix(in srgb, var(--xmimo-ui-brand) 16%, transparent);\n text-decoration: none;\n transform: translateY(-1px)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible)::before {\n opacity: 1;\n animation: xmimo-tts-star-shine 1s ease-in-out infinite\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):active {\n box-shadow: none;\n transform: translateY(0)\n}\n\n@keyframes xmimo-tts-star-shine {\n 0% { transform: translateX(-110%) }\n 65%, 100% { transform: translateX(110%) }\n}\n\n@container xmimo-actions (max-width: 520px) {\n .xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star, .xmimo-tts-history-link, .xmimo-tts-mode-toggle) {\n position: relative;\n padding-inline: 8px\n }\n\n .xmimo-tts-card-actions .xmimo-tts-action-label {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0\n }\n}\n\n@container xmimo-actions (max-width: 360px) {\n .xmimo-tts-card-actions {\n gap: 6px\n }\n\n .xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star, .xmimo-tts-history-link, .xmimo-tts-mode-toggle) {\n padding-inline: 6px\n }\n}\n\n@media (pointer: coarse) {\n .xmimo-ui-scope .xmimo-tts-action-button {\n min-height: 44px\n }\n}\n";
20940
21520
 
20941
21521
  //#endregion
20942
21522
  //#region src/client/style/character.css?raw
@@ -20948,7 +21528,7 @@ var details_default = "/*\n * Voice-design details module: collapsible header, s
20948
21528
 
20949
21529
  //#endregion
20950
21530
  //#region src/client/style/preview.css?raw
20951
- var preview_default = "/* Broadcast Desk shares the collapsible frame with the mixer and sounds. */\n.xmimo-tts-broadcast[data-dsh-dream-skin-composer=\"1\"] {\n background: var(--xmimo-ui-surface) !important;\n outline: none !important;\n}\n.my-plugin-card[data-dsh-dream-skin-composer=\"1\"]::before,\n.my-plugin-card[data-dsh-dream-skin-composer=\"1\"]::after {\n content: none !important;\n background: none !important;\n backdrop-filter: none !important;\n -webkit-backdrop-filter: none !important;\n box-shadow: none !important;\n}\n.xmimo-tts-broadcast + .xmimo-tts-card-actions { border-top: 0; }\n.xmimo-tts-broadcast { padding: 0 !important; }\n\n\n.xmimo-tts-broadcast-body {\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 18px;\n padding: 0 var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n.xmimo-tts-preview-input { display: flex; align-items: center; gap: 8px; margin-top: 8px; }\n.xmimo-tts-preview-input > textarea {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n flex: 1;\n resize: vertical;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 8px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n font: inherit;\n}\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 32px;\n height: 32px;\n min-width: 32px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n color: var(--dsw-alias-label-primary-foreground, var(--xmimo-ui-surface));\n background: var(--xmimo-ui-brand);\n}\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle:hover:not(:disabled) { background: color-mix(in srgb, var(--xmimo-ui-brand) 88%, var(--xmimo-ui-text)); }\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-preview-status, .xmimo-tts-announcement-source small { color: var(--xmimo-ui-text-muted); }\n.xmimo-tts-announcement-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--xmimo-ui-border-soft); }\n.xmimo-tts-announcement-source > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }\n.xmimo-tts-announcement-source a { align-self: flex-start; color: var(--xmimo-ui-brand); }\n.xmimo-tts-announcement-source > button { flex-shrink: 0; }\n.xmimo-tts-preview-input > textarea:focus-visible { outline: var(--xmimo-ui-focus); }\n";
21531
+ var preview_default = "/* Broadcast Desk shares the collapsible frame with the mixer and sounds. */\n.xmimo-tts-broadcast[data-dsh-dream-skin-composer=\"1\"] {\n background: var(--xmimo-ui-surface) !important;\n outline: none !important;\n}\n.my-plugin-card[data-dsh-dream-skin-composer=\"1\"]::before,\n.my-plugin-card[data-dsh-dream-skin-composer=\"1\"]::after {\n content: none !important;\n background: none !important;\n backdrop-filter: none !important;\n -webkit-backdrop-filter: none !important;\n box-shadow: none !important;\n}\n.xmimo-tts-broadcast + .xmimo-tts-card-actions { border-top: 0; }\n.xmimo-tts-broadcast { padding: 0 !important; }\n\n.xmimo-tts-broadcast .xmimo-tts-preview-tag {\n position: relative;\n z-index: 1;\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 3px;\n border: 0;\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--xmimo-ui-brand);\n background: var(--xmimo-ui-chip-surface);\n font: inherit;\n font-size: 11px;\n font-weight: 600;\n line-height: 16px;\n white-space: nowrap;\n cursor: pointer;\n}\n.xmimo-tts-preview-tag svg { width: 12px; height: 12px; }\n.xmimo-tts-preview-tag:hover:not(:disabled) { background: var(--xmimo-ui-hover); }\n.xmimo-tts-preview-tag:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-preview-tag:disabled { color: var(--xmimo-ui-text-muted); cursor: not-allowed; opacity: .5; }\n.xmimo-tts-preview-summary-status { font-size: 12px; font-weight: 400; line-height: 18px; }\n\n\n.xmimo-tts-broadcast-body {\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 18px;\n padding: 0 var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n.xmimo-tts-preview-input { display: flex; align-items: center; gap: 8px; margin-top: 8px; }\n.xmimo-tts-preview-input > textarea {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n flex: 1;\n resize: vertical;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 8px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n font: inherit;\n}\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 32px;\n height: 32px;\n min-width: 32px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n color: var(--dsw-alias-label-primary-foreground, var(--xmimo-ui-surface));\n background: var(--xmimo-ui-brand);\n}\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle:hover:not(:disabled) { background: color-mix(in srgb, var(--xmimo-ui-brand) 88%, var(--xmimo-ui-text)); }\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-preview-status, .xmimo-tts-announcement-source small { color: var(--xmimo-ui-text-muted); }\n.xmimo-tts-announcement-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--xmimo-ui-border-soft); }\n.xmimo-tts-announcement-source > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }\n.xmimo-tts-announcement-source a { align-self: flex-start; color: var(--xmimo-ui-brand); }\n.xmimo-tts-announcement-source > button { flex-shrink: 0; }\n.xmimo-tts-preview-input > textarea:focus-visible { outline: var(--xmimo-ui-focus); }\n";
20952
21532
 
20953
21533
  //#endregion
20954
21534
  //#region src/client/style/sections.css?raw
@@ -20956,7 +21536,7 @@ var sections_default = "/*\n * Settings modules: shared module surface plus the
20956
21536
 
20957
21537
  //#endregion
20958
21538
  //#region src/client/style/sound.css?raw
20959
- var sound_default = "/*\n * Sound effects module: toggle header, pack grid, cue previews, collapse.\n */\n.xmimo-tts-sound-effects {\n overflow: visible;\n padding: 0 !important\n}\n\n.xmimo-tts-sound-summary {\n height: 30px;\n}\n\n.xmimo-tts-sound-body {\n box-sizing: border-box;\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 12px;\n padding: 0 16px 16px\n}\n\n.xmimo-tts-sound-pack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-pack-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));\n gap: 5px\n}\n\n.xmimo-tts-sound-pack-option {\n --xmimo-sound-pack-accent: var(--dsw-alias-brand-primary, #4f6ef7);\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n min-height: 52px;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 26%, var(--dsw-alias-border-l2, #d7dbe2));\n border-radius: 14px;\n padding: 8px 30px 8px 10px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background:\n radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 20%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 13%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font: inherit;\n font-size: 11px;\n text-align: left;\n cursor: pointer;\n transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-option::after {\n position: absolute;\n top: 50%;\n right: 8px;\n display: grid;\n width: 16px;\n height: 16px;\n place-items: center;\n border-radius: 999px;\n color: var(--xmimo-sound-pack-accent);\n background: color-mix(in srgb, var(--xmimo-sound-pack-accent) 14%, transparent);\n content: \"\";\n font-size: 10px;\n font-weight: 700;\n opacity: 0;\n transform: translateY(-50%) scale(.72);\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-icon {\n display: block;\n width: 20px;\n height: 20px;\n flex: none;\n margin-right: 7px;\n color: var(--xmimo-sound-pack-accent);\n}\n\n.xmimo-tts-sound-pack-name {\n min-width: 0;\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-pack-wave {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n margin-left: 7px;\n opacity: .6;\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-wave i {\n display: block;\n width: 2px;\n height: 8px;\n border-radius: 999px;\n background: var(--xmimo-sound-pack-accent);\n transition: height 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-wave i:nth-child(2) {\n height: 13px\n}\n\n.xmimo-tts-sound-pack-wave i:nth-child(3) {\n height: 10px\n}\n\n.xmimo-tts-sound-pack-option:hover:not(:disabled) {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--dsw-alias-label-primary, #1f2328);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(15, 23, 42, .10)\n}\n\n.xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: scale(.97)\n}\n\n.xmimo-tts-sound-pack-option-selected {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--xmimo-sound-pack-accent);\n background:\n radial-gradient(circle at 88% 11%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 22%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font-weight: 650;\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--xmimo-sound-pack-accent) 16%, transparent)\n}\n\n.xmimo-tts-sound-pack-option-selected::after {\n content: \"✓\";\n opacity: 1;\n transform: translateY(-50%) scale(1)\n}\n\n.xmimo-tts-sound-pack-option-selected .xmimo-tts-sound-pack-wave {\n opacity: .3;\n transform: scale(.82)\n}\n\n.xmimo-tts-sound-pack-option-pending {\n cursor: progress\n}\n\n.xmimo-tts-sound-pack-option-pending::after {\n border: 2px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent);\n border-top-color: var(--xmimo-sound-pack-accent);\n background: transparent;\n content: \"\";\n opacity: 1;\n transform: translateY(-50%);\n animation: xmimo-tts-sound-pack-spin 700ms linear infinite\n}\n\n@keyframes xmimo-tts-sound-pack-spin {\n to { transform: translateY(-50%) rotate(360deg) }\n}\n\n.xmimo-tts-sound-pack-option:focus-visible,\n.xmimo-tts-sound-previews button:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 1px\n}\n\n.xmimo-tts-sound-pack-option:disabled {\n cursor: not-allowed;\n opacity: .5\n}\n\n.xmimo-tts-sound-preview-section {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-previews {\n display: grid;\n min-width: 0;\n grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));\n gap: 5px;\n overflow-x: auto;\n overscroll-behavior-x: contain;\n padding: 2px 1px 4px\n}\n\n.xmimo-tts-sound-previews button {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n align-items: center;\n flex-direction: column;\n gap: 5px;\n border: 1px solid transparent;\n border-radius: 10px;\n padding: 10px 5px 8px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: transparent;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease\n}\n\n.xmimo-tts-sound-previews button>svg {\n flex-shrink: 0;\n transition: transform 160ms ease\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled) {\n border-color: var(--dsw-alias-border-l2, #d7dbe2);\n background: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n transform: translateY(-2px)\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled)>svg {\n transform: scale(1.1)\n}\n\n.xmimo-tts-sound-previews button:active:not(:disabled) {\n transform: translateY(0) scale(0.98)\n}\n\n.xmimo-tts-sound-previews button:disabled {\n cursor: not-allowed;\n filter: grayscale(.55);\n opacity: .42\n}\n\n.xmimo-tts-sound-previews button>span:last-child {\n overflow: hidden;\n width: 100%;\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-description {\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n font-size: 12px;\n line-height: 18px\n}\n\n.xmimo-tts-sound-supported {\n text-align: center;\n display: inline-block;\n max-width: 100%;\n box-sizing: border-box;\n margin-top: 3px;\n padding: 5px;\n border: 1px solid color-mix(in srgb, var(--dsw-alias-border-l2, #d7dbe2) 70%, transparent);\n border-radius: 999px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n background: color-mix(in srgb, var(--dsw-alias-bg-layer-2, #f7f8fa) 72%, transparent);\n font-size: 12px;\n line-height: 14px;\n overflow-wrap: anywhere\n}\n";
21539
+ var sound_default = "/*\n * Sound effects module: toggle header, pack grid, cue previews, collapse.\n */\n.xmimo-tts-sound-effects {\n overflow: visible;\n padding: 0 !important\n}\n\n.xmimo-tts-sound-summary {\n height: 30px;\n}\n\n.xmimo-tts-sound-body {\n box-sizing: border-box;\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 12px;\n padding: 0 16px 16px\n}\n\n.xmimo-tts-sound-pack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-pack-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));\n gap: 5px\n}\n\n.xmimo-tts-sound-pack-option {\n --xmimo-sound-pack-accent: var(--dsw-alias-brand-primary, #4f6ef7);\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n min-height: 52px;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 26%, var(--dsw-alias-border-l2, #d7dbe2));\n border-radius: 14px;\n padding: 8px 30px 8px 10px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background:\n radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 20%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 13%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font: inherit;\n font-size: 11px;\n text-align: left;\n cursor: pointer;\n transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-option::after {\n position: absolute;\n top: 50%;\n right: 8px;\n display: grid;\n width: 16px;\n height: 16px;\n place-items: center;\n border-radius: 999px;\n color: var(--xmimo-sound-pack-accent);\n background: color-mix(in srgb, var(--xmimo-sound-pack-accent) 14%, transparent);\n content: \"\";\n font-size: 10px;\n font-weight: 700;\n opacity: 0;\n transform: translateY(-50%) scale(.72);\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-icon {\n display: block;\n width: 20px;\n height: 20px;\n flex: none;\n margin-right: 7px;\n color: var(--xmimo-sound-pack-accent);\n}\n\n.xmimo-tts-sound-pack-name {\n min-width: 0;\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-pack-option:hover:not(:disabled) {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--dsw-alias-label-primary, #1f2328);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(15, 23, 42, .10)\n}\n\n.xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: scale(.97)\n}\n\n.xmimo-tts-sound-pack-option-selected {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--xmimo-sound-pack-accent);\n background:\n radial-gradient(circle at 88% 11%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 22%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font-weight: 650;\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--xmimo-sound-pack-accent) 16%, transparent)\n}\n\n.xmimo-tts-sound-pack-option-selected::after {\n content: \"✓\";\n opacity: 1;\n transform: translateY(-50%) scale(1)\n}\n\n.xmimo-tts-sound-pack-option-pending {\n cursor: progress\n}\n\n.xmimo-tts-sound-pack-option-pending::after {\n border: 2px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent);\n border-top-color: var(--xmimo-sound-pack-accent);\n background: transparent;\n content: \"\";\n opacity: 1;\n transform: translateY(-50%);\n animation: xmimo-tts-sound-pack-spin 700ms linear infinite\n}\n\n@keyframes xmimo-tts-sound-pack-spin {\n to { transform: translateY(-50%) rotate(360deg) }\n}\n\n.xmimo-tts-sound-pack-option:focus-visible,\n.xmimo-tts-sound-previews button:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 1px\n}\n\n.xmimo-tts-sound-pack-option:disabled {\n cursor: not-allowed;\n opacity: .5\n}\n\n.xmimo-tts-sound-preview-section {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-previews {\n display: grid;\n min-width: 0;\n grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));\n gap: 5px;\n overflow-x: auto;\n overscroll-behavior-x: contain;\n padding: 2px 1px 4px\n}\n\n.xmimo-tts-sound-previews button {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n align-items: center;\n flex-direction: column;\n gap: 5px;\n border: 1px solid transparent;\n border-radius: 10px;\n padding: 10px 5px 8px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: transparent;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease\n}\n\n.xmimo-tts-sound-previews button>svg {\n flex-shrink: 0;\n transition: transform 160ms ease\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled) {\n border-color: var(--dsw-alias-border-l2, #d7dbe2);\n background: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n transform: translateY(-2px)\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled)>svg {\n transform: scale(1.1)\n}\n\n.xmimo-tts-sound-previews button:active:not(:disabled) {\n transform: translateY(0) scale(0.98)\n}\n\n.xmimo-tts-sound-previews button:disabled {\n cursor: not-allowed;\n filter: grayscale(.55);\n opacity: .42\n}\n\n.xmimo-tts-sound-previews button>span:last-child {\n overflow: hidden;\n width: 100%;\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-description {\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n font-size: 12px;\n line-height: 18px\n}\n\n.xmimo-tts-sound-supported {\n text-align: center;\n display: inline-block;\n max-width: 100%;\n box-sizing: border-box;\n margin-top: 3px;\n padding: 5px;\n border: 1px solid color-mix(in srgb, var(--dsw-alias-border-l2, #d7dbe2) 70%, transparent);\n border-radius: 999px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n background: color-mix(in srgb, var(--dsw-alias-bg-layer-2, #f7f8fa) 72%, transparent);\n font-size: 12px;\n line-height: 14px;\n overflow-wrap: anywhere\n}\n";
20960
21540
 
20961
21541
  //#endregion
20962
21542
  //#region src/client/style/volume.css?raw
@@ -20964,7 +21544,7 @@ var volume_default = "/*\n * Volume controls: sound volume rows and the energy s
20964
21544
 
20965
21545
  //#endregion
20966
21546
  //#region src/client/style/voice-reading.css?raw
20967
- var voice_reading_default = "/**\n * Voice reading settings section — standalone page registered through the host\n * `settings.section` slot. All selectors are prefixed `xmimo-voice-reading`;\n * tokens mirror the host settings chrome with literal fallbacks.\n */\n\n.xmimo-voice-reading {\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-title {\n margin: 0;\n font-size: 18px;\n line-height: 26px;\n font-weight: 600;\n}\n\n.xmimo-voice-reading-intro {\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-notice {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-failure {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-state-error-primary, #c23f4a);\n}\n\n/**\n * Row stack. The page already sits inside the Host's settings panel, so the\n * card carries no border, radius, or padding of its own: the rows alone draw\n * the Host's hairline separators (same as the Host settings sections).\n */\n.xmimo-voice-reading-card {\n border: 0;\n border-radius: 0;\n padding: 0;\n}\n\n.xmimo-voice-reading-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2, #d7dbe2);\n}\n\n.xmimo-voice-reading-row:last-child {\n border-bottom: 0;\n}\n\n.xmimo-voice-reading-copy {\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.xmimo-voice-reading-row-title {\n font-size: 14px;\n line-height: 20px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-row-hint {\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n}\n\n/**\n * Keep the Host's viewport margins below the 300px cap; Menu handles inner\n * scrolling. Repeat the class to override the Host rule in either CSS order.\n */\n.xmimo-voice-reading-menu.xmimo-voice-reading-menu {\n max-height: min(300px, calc(100vh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px))));\n}\n\n/**\n * Capsule selector pill — mirrors the Host settings rows (harness source:\n * packages/client/ui-chat/src/client/settings/PreferenceRow.module.css .selector\n * and packages/client/locale/src/client/LanguageRow.module.css .selector): a\n * borderless 36px pill on the module surface whose chevron sits 12px from the\n * label. The dropdown itself is the Host primitive `Menu`, so the list already\n * matches every other Host menu; only the trigger is ours to style.\n */\n.xmimo-voice-reading-selector {\n display: inline-flex;\n align-items: center;\n gap: 12px;\n flex: none;\n max-width: 260px;\n height: 36px;\n padding: 0 14px;\n border: none;\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-bg-module-platform, #eef0f3);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-primary, #1f2328);\n cursor: pointer;\n}\n\n.xmimo-voice-reading-selector:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n}\n\n.xmimo-voice-reading-selector:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n.xmimo-voice-reading-selector:disabled {\n color: var(--dsw-alias-label-tertiary, #66707d);\n cursor: default;\n}\n\n.xmimo-voice-reading-selector-label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-voice-reading-chevron {\n flex: none;\n}\n\n@media (max-width: 460px) {\n .xmimo-voice-reading-row {\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n }\n\n .xmimo-voice-reading-selector {\n align-self: flex-start;\n max-width: 100%;\n }\n}\n\n/**\n * Settings nav glyph: the plugin's own voice icon, RiVoiceAiFill from\n * `react-icons/ri`. The host shell hardcodes the nav glyph per section id and\n * the `settings.section` registration has no icon field (0.2.1-rc.2), so a\n * third-party section always paints the settings gear. settings/nav-icon.ts\n * marks only our own nav cell; these rules paint the plugin icon over that cell\n * (masked so it follows the host's currentColor) while every other entry keeps\n * its host glyph. test/voice-reading-nav-icon.test.mjs pins the path data below\n * to the RiVoiceAiFill source shipped by react-icons.\n */\n[data-xmimo-voice-reading-nav] > svg {\n display: none;\n}\n\n[data-xmimo-voice-reading-nav]::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: currentColor;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-mask-size: 16px 16px;\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 16px 16px;\n}\n";
21547
+ var voice_reading_default = "/**\n * Voice reading settings section — standalone page registered through the host\n * `settings.section` slot. All selectors are prefixed `xmimo-voice-reading`;\n * tokens mirror the host settings chrome with literal fallbacks.\n */\n\n.xmimo-voice-reading {\n position: relative;\n isolation: isolate;\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading::after {\n content: '';\n position: absolute;\n z-index: -1;\n top: 50%;\n left: 50%;\n width: min(220px, 60%);\n height: 220px;\n transform: translate(-50%, -50%);\n background: var(--xmimo-voice-reading-background) center / contain no-repeat;\n filter: blur(2px);\n opacity: 0.2;\n pointer-events: none;\n}\n\n/**\n * Title row. The heading takes the free space; the 32px shortcut sits on its\n * right, vertically centered on the 26px title line so the 18px label and the\n * 16px glyph share one optical row.\n */\n.xmimo-voice-reading-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.xmimo-voice-reading-title {\n margin: 0;\n min-width: 0;\n font-size: 18px;\n line-height: 26px;\n font-weight: 600;\n}\n\n.xmimo-voice-reading-actions {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n}\n\n/** Anchor the QQ capsule to its trigger without adding layout to the row. */\n.xmimo-voice-reading-qq {\n position: relative;\n display: inline-flex;\n flex: none;\n}\n\n/**\n * Icon-only shortcut. A real anchor or button so keyboard and open-in-new-tab\n * semantics stay native; the 32px box is the click target, the 16px glyph the\n * visual. The glyph stays in the neutral secondary label color — the accent is\n * reserved for primary actions, and hover only deepens the neutral plus the\n * module hover surface.\n */\n.xmimo-voice-reading-action {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 32px;\n height: 32px;\n padding: 0;\n border: 0;\n border-radius: var(--dsw-radius-sm, 8px);\n background: transparent;\n cursor: pointer;\n}\n\n/**\n * Keep these shortcuts neutral even when a skin forces an accent on links\n * with !important. Scope the override to the shortcuts and their SVGs so\n * ordinary text links can still use the skin's accent.\n */\n.xmimo-voice-reading-actions .xmimo-voice-reading-action {\n color: var(--dsw-alias-label-secondary, #5f6875) !important;\n}\n\n.xmimo-voice-reading-actions .xmimo-voice-reading-action:hover {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n color: var(--dsw-alias-label-primary, #1f2328) !important;\n}\n\n.xmimo-voice-reading-actions .xmimo-voice-reading-action > svg {\n color: inherit !important;\n}\n\n.xmimo-voice-reading-action:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n/**\n * QQ invite capsule. Clicking the icon opens this floating surface with the\n * QR code and group number, keeping it out of the settings rows. It\n * anchors to the right edge of the trigger so it never runs past the panel.\n */\n.xmimo-voice-reading-qq-panel {\n position: absolute;\n z-index: 30;\n top: calc(100% + 8px);\n right: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n box-sizing: border-box;\n width: 222px;\n padding: 12px;\n border: 1px solid var(--dsw-alias-border-l2, #d7dbe2);\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-bg-layer-1, #fff);\n box-shadow: 0 6px 20px rgb(0 0 0 / 14%);\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-qq-close {\n position: absolute;\n top: 4px;\n right: 4px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: 6px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary, #66707d);\n cursor: pointer;\n}\n\n.xmimo-voice-reading-qq-close:hover {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-qq-close:focus-visible,\n.xmimo-voice-reading-qq-panel:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n/** The shipped asset already carries its quiet zone and 22px rounded corners. */\n.xmimo-voice-reading-qq-code {\n display: block;\n width: 190px;\n height: 190px;\n margin-top: 8px;\n border-radius: var(--dsw-radius-md, 12px);\n}\n\n.xmimo-voice-reading-qq-meta {\n display: flex;\n align-items: baseline;\n gap: 6px;\n margin-top: 8px;\n font-size: 12px;\n line-height: 18px;\n}\n\n.xmimo-voice-reading-qq-group {\n color: var(--dsw-alias-label-primary, #1f2328);\n font-weight: 600;\n}\n\n.xmimo-voice-reading-qq-number {\n color: var(--dsw-alias-label-secondary, #5f6875);\n font-family: inherit;\n font-variant-numeric: tabular-nums;\n}\n\n.xmimo-voice-reading-intro {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px 8px;\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-notice {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-link {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex: none;\n padding: 0;\n border: 0;\n border-radius: 2px;\n background: transparent;\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.xmimo-voice-reading-link-label {\n text-decoration: underline;\n text-decoration-thickness: 1px;\n text-underline-offset: 3px;\n}\n\n.xmimo-voice-reading-link:hover .xmimo-voice-reading-link-label {\n text-decoration-thickness: 2px;\n}\n\n.xmimo-voice-reading-link:focus-visible {\n outline: 2px solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary, #4f6ef7));\n outline-offset: 2px;\n}\n\n.xmimo-voice-reading-warning {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n min-height: 36px;\n padding: 4px 8px 4px 12px;\n border: 1px solid color-mix(in srgb, var(--dsw-alias-state-warning-primary, #c58a00) 40%, transparent);\n border-radius: var(--dsw-radius-sm, 8px);\n background: color-mix(in srgb, var(--dsw-alias-state-warning-primary, #c58a00) 12%, var(--dsw-alias-bg-layer-1, #fff));\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 12px;\n line-height: 20px;\n}\n\n.xmimo-voice-reading-warning-message {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-voice-reading-warning-close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--dsw-radius-sm, 8px);\n background: transparent;\n color: inherit;\n cursor: pointer;\n}\n\n.xmimo-voice-reading-warning-close:hover {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n}\n\n.xmimo-voice-reading-warning-close:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n.xmimo-voice-reading-failure {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-state-error-primary, #c23f4a);\n}\n\n/**\n * Row stack. The page already sits inside the Host's settings panel, so the\n * card carries no border, radius, or padding of its own: the rows alone draw\n * the Host's hairline separators (same as the Host settings sections).\n */\n.xmimo-voice-reading-card {\n border: 0;\n border-radius: 0;\n padding: 0;\n}\n\n.xmimo-voice-reading-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2, #d7dbe2);\n}\n\n.xmimo-voice-reading-row:last-child {\n border-bottom: 0;\n}\n\n.xmimo-voice-reading-provider {\n min-width: 0;\n margin: 4px 0 0;\n border: 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2, #d7dbe2);\n padding: 0 0 16px;\n}\n\n.xmimo-voice-reading-provider legend {\n padding: 0;\n}\n\n.xmimo-voice-reading-provider-options {\n display: grid;\n margin-top: 12px;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 8px;\n}\n\n.xmimo-voice-reading-provider-option {\n position: relative;\n min-width: 0;\n cursor: pointer;\n}\n\n.xmimo-voice-reading-provider-option input {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: 0;\n opacity: 0;\n}\n\n.xmimo-voice-reading-provider-face {\n display: flex;\n box-sizing: border-box;\n min-height: 64px;\n align-items: center;\n justify-content: center;\n gap: 10px;\n border: 1px solid var(--dsw-alias-border-l2, #d7dbe2);\n border-radius: var(--dsw-radius-md, 12px);\n padding: 12px;\n color: var(--dsw-alias-label-primary, #1f2328);\n background: var(--dsw-alias-bg-module-platform, #eef0f3);\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.xmimo-voice-reading-provider-face img {\n flex: none;\n width: 32px;\n height: 32px;\n object-fit: contain;\n}\n\n.xmimo-voice-reading-provider-option input:checked + .xmimo-voice-reading-provider-face {\n border-color: var(--dsw-alias-brand-primary, #4f6ef7);\n}\n\n.xmimo-voice-reading-provider-option:hover input:not(:disabled) + .xmimo-voice-reading-provider-face {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n}\n\n.xmimo-voice-reading-provider-option input:focus-visible + .xmimo-voice-reading-provider-face {\n outline: 2px solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary, #4f6ef7));\n outline-offset: 2px;\n}\n\n.xmimo-voice-reading-provider-option:has(input:disabled) {\n cursor: default;\n}\n\n.xmimo-voice-reading-provider-option input:disabled + .xmimo-voice-reading-provider-face {\n opacity: 0.5;\n}\n\n@media (max-width: 460px) {\n .xmimo-voice-reading-provider-face {\n gap: 6px;\n padding: 10px 6px;\n font-size: 13px;\n }\n\n .xmimo-voice-reading-provider-face img {\n width: 26px;\n height: 26px;\n }\n}\n\n.xmimo-voice-reading-copy {\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.xmimo-voice-reading-row-title {\n font-size: 14px;\n line-height: 20px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-row-hint {\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n}\n\n/**\n * Keep the Host's viewport margins below the 300px cap; Menu handles inner\n * scrolling. Repeat the class to override the Host rule in either CSS order.\n */\n.xmimo-voice-reading-menu.xmimo-voice-reading-menu {\n max-height: min(300px, calc(100vh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px))));\n}\n\n/**\n * Capsule selector pill — mirrors the Host settings rows (harness source:\n * packages/client/ui-chat/src/client/settings/PreferenceRow.module.css .selector\n * and packages/client/locale/src/client/LanguageRow.module.css .selector): a\n * borderless 36px pill on the module surface whose chevron sits 12px from the\n * label. The dropdown itself is the Host primitive `Menu`, so the list already\n * matches every other Host menu; only the trigger is ours to style.\n */\n.xmimo-voice-reading-selector {\n display: inline-flex;\n align-items: center;\n gap: 12px;\n flex: none;\n max-width: 260px;\n height: 36px;\n padding: 0 14px;\n border: none;\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-bg-module-platform, #eef0f3);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-primary, #1f2328);\n cursor: pointer;\n}\n\n.xmimo-voice-reading-selector:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n}\n\n.xmimo-voice-reading-selector:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n.xmimo-voice-reading-selector:disabled {\n color: var(--dsw-alias-label-tertiary, #66707d);\n cursor: default;\n}\n\n.xmimo-voice-reading-selector-label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-voice-reading-chevron {\n flex: none;\n}\n\n@media (max-width: 375px) {\n .xmimo-voice-reading-row {\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n }\n\n .xmimo-voice-reading-selector {\n align-self: flex-start;\n max-width: 100%;\n }\n\n /**\n * On narrow screens the capsule would start past the left edge when anchored\n * to the trigger's right edge; pin it to the page instead.\n */\n .xmimo-voice-reading-qq-panel {\n position: fixed;\n top: auto;\n right: 12px;\n left: 12px;\n bottom: 12px;\n width: auto;\n max-width: 320px;\n margin-inline: auto;\n }\n}\n\n/**\n * Settings nav glyph: the plugin's own voice icon, RiVoiceAiFill from\n * `react-icons/ri`. The host shell hardcodes the nav glyph per section id and\n * the `settings.section` registration has no icon field (0.2.1-rc.2), so a\n * third-party section always paints the settings gear. settings/nav-icon.ts\n * marks only our own nav cell; these rules paint the plugin icon over that cell\n * (masked so it follows the host's currentColor) while every other entry keeps\n * its host glyph. test/voice-reading-nav-icon.test.mjs pins the path data below\n * to the RiVoiceAiFill source shipped by react-icons.\n */\n[data-xmimo-voice-reading-nav] > svg {\n display: none;\n}\n\n[data-xmimo-voice-reading-nav]::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: currentColor;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-mask-size: 16px 16px;\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 16px 16px;\n}\n";
20968
21548
 
20969
21549
  //#endregion
20970
21550
  //#region src/client/style/responsive.css?raw
@@ -20976,15 +21556,15 @@ var motion_default = "/*\n * Reduced-motion overrides (@media prefers-reduced-mo
20976
21556
 
20977
21557
  //#endregion
20978
21558
  //#region src/client/style/global.css?raw
20979
- var global_default = "/*\n * Project-wide UI system for the Xiaomi MiMo settings card.\n * Start here when adjusting layout or visual rhythm. Component-specific artwork,\n * animations, and picker styles live in the sibling *.css modules; shared dimensions\n * and module structure belong here so every settings module stays visually consistent.\n */\n\n/* ---------- Design tokens ---------- */\n.xmimo-ui-scope {\n --xmimo-ui-space-1: 4px;\n --xmimo-ui-space-2: 6px;\n --xmimo-ui-space-3: 8px;\n --xmimo-ui-space-4: 10px;\n --xmimo-ui-space-5: 12px;\n\n --xmimo-ui-module-gap: var(--xmimo-ui-space-3);\n --xmimo-ui-module-padding: var(--xmimo-ui-space-4);\n --xmimo-ui-module-radius: 12px;\n --xmimo-ui-control-radius: 9px;\n --xmimo-ui-control-height: 34px;\n --xmimo-ui-summary-height: 34px;\n --xmimo-ui-mascot-size: 56px;\n\n --xmimo-ui-text: var(--dsw-alias-label-primary, #1f2328);\n --xmimo-ui-text-muted: var(--dsw-alias-label-secondary, #5f6875);\n --xmimo-ui-text-subtle: var(--dsw-alias-label-tertiary, #8b93a1);\n --xmimo-ui-brand: var(--dsw-alias-brand-primary, #4f6ef7);\n --xmimo-ui-border: var(--dsw-alias-border-l2, #d7dbe2);\n --xmimo-ui-border-soft: var(--dsw-alias-border-l2, #e5e7eb);\n --xmimo-ui-surface: var(--dsw-alias-bg-layer-1, #fff);\n --xmimo-ui-control-surface: var(--dsw-alias-bg-layer-2, #f3f4f6);\n --xmimo-ui-chip-surface: var(--dsw-alias-bg-module-platform, #eef0f3);\n --xmimo-ui-hover: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n --xmimo-ui-focus: 2px solid var(--xmimo-ui-brand);\n}\n\n/* ---------- Layout primitives ---------- */\n.xmimo-ui-stack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: var(--xmimo-ui-module-gap);\n}\n\n.xmimo-ui-grid {\n display: grid;\n min-width: 0;\n}\n\n.xmimo-ui-row {\n display: flex;\n min-width: 0;\n gap: var(--xmimo-ui-module-gap);\n}\n\n/* The stack owns vertical rhythm; modules no longer negotiate margins. */\n.xmimo-ui-stack > * {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n/* ---------- Shared settings module ---------- */\n.xmimo-ui-module {\n box-sizing: border-box;\n position: relative;\n min-width: 0;\n overflow: visible;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n}\n\n.xmimo-ui-module-padded {\n padding: var(--xmimo-ui-module-padding) !important;\n}\n\n.xmimo-ui-module-header {\n position: relative;\n min-width: 0;\n}\n\n.xmimo-ui-module-decoration {\n position: static;\n}\n\n.xmimo-ui-module-toggle-static {\n padding: 0 !important;\n cursor: default;\n}\n\n.xmimo-ui-module-toggle-static:hover {\n background: transparent !important;\n}\n\n\n.xmimo-ui-module-heading,\n.xmimo-ui-module-heading > strong,\n.xmimo-ui-module > .xmimo-tts-field-heading .xmimo-tts-field-label > span:first-child {\n color: var(--xmimo-ui-text);\n font-size: 14px;\n font-weight: 650;\n line-height: 20px;\n}\n\n/* ---------- Collapsible module header ---------- */\n.xmimo-ui-module-toggle {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-height: 0;\n align-items: flex-start;\n border: 0;\n border-radius: calc(var(--xmimo-ui-module-radius) - 1px);\n padding: var(--xmimo-ui-module-padding);\n color: var(--xmimo-ui-text);\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.xmimo-ui-module-toggle:hover {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-ui-module-toggle:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: -2px;\n}\n\n.xmimo-ui-module-head {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--xmimo-ui-space-1);\n}\n\n.xmimo-ui-summary {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: var(--xmimo-ui-summary-height);\n align-items: center;\n gap: 6px;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 6px 6px 6px var(--xmimo-ui-space-2);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-summary > span {\n overflow: hidden;\n min-width: 0;\n max-width: 150px;\n flex: 0 1 auto;\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-chip-surface);\n font-size: 11px;\n font-weight: 500;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-ui-module-body {\n box-sizing: border-box;\n min-width: 0;\n}\n\n/* ---------- Shared fields and controls ---------- */\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select,\n.xmimo-ui-module textarea {\n border-color: var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select {\n min-height: var(--xmimo-ui-control-height);\n}\n\n.xmimo-ui-module input:focus-visible,\n.xmimo-ui-module select:focus-visible,\n.xmimo-ui-module textarea:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 1px;\n}\n/* ---------- Module-specific placement using shared dimensions ---------- */\n.xmimo-ui-module .xmimo-tts-api-key-whale {\n width: var(--xmimo-ui-mascot-size);\n height: var(--xmimo-ui-mascot-size);\n}\n\n.xmimo-ui-module .xmimo-tts-details-body > * {\n padding-right: var(--xmimo-ui-module-padding);\n padding-left: var(--xmimo-ui-module-padding);\n}\n\n.xmimo-ui-module .xmimo-tts-sound-body {\n gap: var(--xmimo-ui-space-3);\n padding: 6px var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n@media (max-width: 480px) {\n .xmimo-ui-scope {\n --xmimo-ui-module-padding: 12px;\n --xmimo-ui-mascot-size: 52px;\n }\n\n .xmimo-ui-summary > span {\n max-width: 100px;\n padding-right: 6px;\n padding-left: 6px;\n }\n}\n";
21559
+ var global_default = "/*\n * Project-wide UI system for the Xiaomi MiMo settings card.\n * Start here when adjusting layout or visual rhythm. Component-specific artwork,\n * animations, and picker styles live in the sibling *.css modules; shared dimensions\n * and module structure belong here so every settings module stays visually consistent.\n */\n\n/* ---------- Design tokens ---------- */\n.xmimo-ui-scope {\n --xmimo-ui-space-1: 4px;\n --xmimo-ui-space-2: 6px;\n --xmimo-ui-space-3: 8px;\n --xmimo-ui-space-4: 10px;\n --xmimo-ui-space-5: 12px;\n\n --xmimo-ui-module-gap: var(--xmimo-ui-space-3);\n --xmimo-ui-module-padding: var(--xmimo-ui-space-4);\n --xmimo-ui-module-radius: 12px;\n --xmimo-ui-control-radius: 9px;\n --xmimo-ui-control-height: 34px;\n --xmimo-ui-summary-height: 34px;\n --xmimo-ui-mascot-size: 56px;\n\n --xmimo-ui-text: var(--dsw-alias-label-primary, #1f2328);\n --xmimo-ui-text-muted: var(--dsw-alias-label-secondary, #5f6875);\n --xmimo-ui-text-subtle: var(--dsw-alias-label-tertiary, #8b93a1);\n --xmimo-ui-brand: var(--dsw-alias-brand-primary, #4f6ef7);\n --xmimo-ui-border: var(--dsw-alias-border-l2, #d7dbe2);\n --xmimo-ui-border-soft: var(--dsw-alias-border-l2, #e5e7eb);\n --xmimo-ui-surface: var(--dsw-alias-bg-layer-1, #fff);\n --xmimo-ui-control-surface: var(--dsw-alias-bg-layer-2, #f3f4f6);\n --xmimo-ui-chip-surface: var(--dsw-alias-bg-module-platform, #eef0f3);\n --xmimo-ui-hover: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n --xmimo-ui-focus: 2px solid var(--xmimo-ui-brand);\n}\n\n/* ---------- Layout primitives ---------- */\n.xmimo-ui-stack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: var(--xmimo-ui-module-gap);\n}\n\n.xmimo-ui-grid {\n display: grid;\n min-width: 0;\n}\n\n.xmimo-ui-row {\n display: flex;\n min-width: 0;\n gap: var(--xmimo-ui-module-gap);\n}\n\n/* The stack owns vertical rhythm; modules no longer negotiate margins. */\n.xmimo-ui-stack > * {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n/* ---------- Shared settings module ---------- */\n.xmimo-ui-module {\n box-sizing: border-box;\n position: relative;\n min-width: 0;\n overflow: visible;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n}\n\n.xmimo-ui-module-padded {\n padding: var(--xmimo-ui-module-padding) !important;\n}\n\n.xmimo-ui-module-header {\n position: relative;\n min-width: 0;\n}\n\n.xmimo-ui-module-decoration {\n position: static;\n}\n\n.xmimo-ui-module-toggle-static {\n padding: 0 !important;\n cursor: default;\n}\n\n.xmimo-ui-module-toggle-static:hover {\n background: transparent !important;\n}\n\n\n.xmimo-ui-module-heading,\n.xmimo-ui-module-heading > strong,\n.xmimo-ui-module-heading .xmimo-ui-module-title-toggle,\n.xmimo-ui-module-heading .xmimo-ui-module-title-toggle > strong,\n.xmimo-ui-module > .xmimo-tts-field-heading .xmimo-tts-field-label > span:first-child {\n color: var(--xmimo-ui-text);\n font-size: 14px;\n font-weight: 650;\n line-height: 20px;\n}\n\n/* ---------- Collapsible module header ---------- */\n.xmimo-ui-module-title {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n vertical-align: middle;\n}\n\n.xmimo-ui-module-title > svg {\n flex: none;\n width: 14px;\n height: 14px;\n color: var(--xmimo-ui-brand);\n}\n\n.xmimo-ui-module-toggle {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-height: 0;\n align-items: flex-start;\n border: 0;\n border-radius: calc(var(--xmimo-ui-module-radius) - 1px);\n padding: var(--xmimo-ui-module-padding);\n color: var(--xmimo-ui-text);\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.xmimo-ui-module-toggle:hover {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-ui-module-toggle:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: -2px;\n}\n\n/* Interactive summaries sit beside a trigger whose hit area fills the header. */\n.xmimo-ui-module-title-toggle {\n border: 0;\n padding: 0;\n color: inherit;\n background: transparent;\n font: inherit;\n text-align: inherit;\n cursor: pointer;\n}\n\n.xmimo-ui-module-title-toggle::after {\n position: absolute;\n inset: 0;\n border-radius: calc(var(--xmimo-ui-module-radius) - 1px);\n content: '';\n}\n\n.xmimo-ui-module-title-toggle:focus-visible {\n outline: none;\n}\n\n.xmimo-ui-module-title-toggle:focus-visible::after {\n outline: var(--xmimo-ui-focus);\n outline-offset: -2px;\n}\n\n.xmimo-ui-module-head {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--xmimo-ui-space-1);\n}\n\n.xmimo-ui-summary {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: var(--xmimo-ui-summary-height);\n align-items: center;\n gap: 6px;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 6px 6px 6px var(--xmimo-ui-space-2);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-summary > span {\n overflow: hidden;\n min-width: 0;\n max-width: 150px;\n flex: 0 1 auto;\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-chip-surface);\n font-size: 11px;\n font-weight: 500;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-ui-module-body {\n box-sizing: border-box;\n min-width: 0;\n}\n\n/* ---------- Shared fields and controls ---------- */\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select,\n.xmimo-ui-module textarea {\n border-color: var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select {\n min-height: var(--xmimo-ui-control-height);\n}\n\n.xmimo-ui-module input:focus-visible,\n.xmimo-ui-module select:focus-visible,\n.xmimo-ui-module textarea:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 1px;\n}\n/* ---------- Module-specific placement using shared dimensions ---------- */\n.xmimo-ui-module .xmimo-tts-api-key-whale {\n width: var(--xmimo-ui-mascot-size);\n height: var(--xmimo-ui-mascot-size);\n}\n\n.xmimo-ui-module .xmimo-tts-details-body > * {\n padding-right: var(--xmimo-ui-module-padding);\n padding-left: var(--xmimo-ui-module-padding);\n}\n\n.xmimo-ui-module .xmimo-tts-sound-body {\n gap: var(--xmimo-ui-space-3);\n padding: 6px var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n@media (max-width: 480px) {\n .xmimo-ui-scope {\n --xmimo-ui-module-padding: 12px;\n --xmimo-ui-mascot-size: 52px;\n }\n\n .xmimo-ui-summary > span {\n max-width: 100px;\n padding-right: 6px;\n padding-left: 6px;\n }\n}\n";
20980
21560
 
20981
21561
  //#endregion
20982
21562
  //#region src/client/style/minimal.css?raw
20983
- var minimal_default = ".xmimo-tts-switch-module-minimal {\n padding: var(--xmimo-ui-space-3);\n}\n\n.xmimo-tts-card-minimal {\n --xmimo-ui-module-gap: 5px;\n --xmimo-ui-module-padding: 8px;\n --xmimo-ui-control-height: 30px;\n --xmimo-ui-mascot-size: 0px;\n border: 1px solid var(--xmimo-ui-border);\n background: var(--xmimo-ui-surface, #fff);\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module {\n background: transparent;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-ui-module\n input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]) {\n border-radius: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key .xmimo-tts-field-heading {\n padding-right: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal {\n height: 24px;\n flex: 1 1 auto;\n overflow: visible;\n border-radius: 0;\n background: transparent;\n --energy-color: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n position: absolute;\n top: 50%;\n left: 0;\n display: block;\n height: 4px;\n border-radius: 999px;\n content: \"\";\n pointer-events: none;\n transform: translateY(-50%);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before {\n right: 0;\n background: var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n width: var(--volume);\n background: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-fill,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-dots {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input[type=\"range\"] {\n z-index: 1;\n height: 32px;\n top: -4px;\n padding: 0;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-energy-minimal\n input::-webkit-slider-runnable-track,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-track {\n height: 24px;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-webkit-slider-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--xmimo-ui-brand) 55%, transparent);\n outline-offset: 2px;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n min-height: var(--xmimo-ui-control-height);\n align-items: center;\n justify-content: center;\n gap: 6px;\n padding: 0 8px;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n cursor: pointer;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:hover:not(:disabled):not(:has([disabled])) {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:focus-visible, :has(>button:focus-visible)) {\n outline: var(--xmimo-ui-focus);\n outline-offset: 2px;\n}\n\n.xmimo-tts-minimal-toggle>button:focus-visible {\n outline: none;\n}\n\n.xmimo-tts-minimal-toggle-label {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-minimal-toggle>button {\n flex: none;\n}\n\n.xmimo-tts-provider-button>span {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-provider-button>svg {\n flex: none;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:disabled, :has([disabled])) {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-field-badges {\n display: none !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-volume {\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n.xmimo-tts-card-minimal .xmimo-tts-sound-volume {\n width: 50%;\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input {\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n border-radius: 0;\n padding-right: 0;\n padding-left: 0;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:hover:not(:disabled) {\n border-bottom-color: var(--xmimo-ui-text-subtle);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:focus-visible {\n border-bottom-color: var(--xmimo-ui-brand);\n outline: none;\n box-shadow: 0 1px 0 var(--xmimo-ui-brand);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-text-caret {\n flex: none;\n color: var(--xmimo-ui-text-muted);\n font-size: 18px;\n line-height: 1;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n column-gap: 12px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body > :nth-child(n + 3) {\n grid-column: 1 / -1;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-details-body\n > :not(.xmimo-tts-volume):not(.xmimo-tts-doubao-voice):not(.xmimo-tts-speech-instruction)\n > .xmimo-tts-field-heading {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-menu,\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-menu {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n background: none;\n box-shadow: none;\n gap: 6px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option {\n min-width: 0;\n min-height: 42px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy {\n align-items: baseline;\n flex-direction: row;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > strong,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > strong {\n min-width: 0;\n flex: 0 1 auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > small,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > small {\n min-width: 0;\n flex: 1 1 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option-custom {\n grid-column: auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n clip-path: inset(50%);\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-api-key-input:focus-within\n + .xmimo-tts-api-key-message {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-message.xmimo-tts-api-key-warning {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-stack {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input > textarea {\n min-width: 0;\n flex: 1 1 auto;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-body {\n gap: 8px;\n padding: 6px 10px 10px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-grid {\n grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));\n gap: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option {\n min-height: 34px;\n border-radius: 9px;\n padding: 5px 20px 5px 7px;\n font-size: 11px;\n line-height: 16px;\n transition:\n border-color 140ms ease,\n background 140ms ease;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::before {\n content: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::after {\n right: 5px;\n width: 13px;\n height: 13px;\n font-size: 9px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:hover:not(:disabled),\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option-selected {\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-wave {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-icon {\n width: 16px;\n height: 16px;\n margin-right: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-previews button {\n min-height: 28px;\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module-padded {\n padding: 8px !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-summary {\n min-height: 28px;\n gap: 4px;\n padding-block: 3px;\n border-radius: 0;\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-grid > * {\n padding-block: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-card-actions {\n flex-wrap: wrap;\n gap: 6px;\n padding: 0 var(--xmimo-ui-space-3) var(--xmimo-ui-space-3);\n}\n\n@media (max-width: 520px) {\n .xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 5px;\n }\n\n .xmimo-tts-card-minimal .xmimo-tts-character-copy strong {\n font-size: 12px;\n }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n min-height: 44px;\n }\n}\n";
21563
+ var minimal_default = ".xmimo-tts-switch-module-minimal {\n padding: var(--xmimo-ui-space-3) 0 0;\n}\n\n.xmimo-tts-card-minimal {\n --xmimo-ui-module-gap: 5px;\n --xmimo-ui-module-padding: 8px;\n --xmimo-ui-control-height: 30px;\n --xmimo-ui-mascot-size: 0px;\n border: 1px solid var(--xmimo-ui-border);\n background: var(--xmimo-ui-surface, #fff);\n padding: 0 var(--xmimo-ui-space-3);\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module {\n background: transparent;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-ui-module\n input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]) {\n border-radius: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key .xmimo-tts-field-heading {\n padding-right: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal {\n height: 24px;\n flex: 1 1 auto;\n overflow: visible;\n border-radius: 0;\n background: transparent;\n --energy-color: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n position: absolute;\n top: 50%;\n left: 0;\n display: block;\n height: 4px;\n border-radius: 999px;\n content: \"\";\n pointer-events: none;\n transform: translateY(-50%);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before {\n right: 0;\n background: var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n width: var(--volume);\n background: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-fill,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-dots {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input[type=\"range\"] {\n z-index: 1;\n height: 32px;\n top: -4px;\n padding: 0;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-energy-minimal\n input::-webkit-slider-runnable-track,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-track {\n height: 24px;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-webkit-slider-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--xmimo-ui-brand) 55%, transparent);\n outline-offset: 2px;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n min-height: var(--xmimo-ui-control-height);\n align-items: center;\n justify-content: space-between;\n gap: 6px;\n padding: 0 8px;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n cursor: pointer;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:hover:not(:disabled):not(:has([disabled])) {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:focus-visible, :has(>button:focus-visible)) {\n outline: var(--xmimo-ui-focus);\n outline-offset: 2px;\n}\n\n.xmimo-tts-minimal-toggle>button:focus-visible {\n outline: none;\n}\n\n.xmimo-tts-minimal-toggle-label {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-minimal-toggle>button {\n flex: none;\n}\n\n.xmimo-tts-provider-button>span {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-provider-button>svg {\n flex: none;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:disabled, :has([disabled])) {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-field-badges {\n display: none !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-volume {\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n.xmimo-tts-card-minimal .xmimo-tts-sound-volume {\n width: 50%;\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input {\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n border-radius: 0;\n padding-right: 0;\n padding-left: 0;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:hover:not(:disabled) {\n border-bottom-color: var(--xmimo-ui-text-subtle);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:focus-visible {\n border-bottom-color: var(--xmimo-ui-brand);\n outline: none;\n box-shadow: 0 1px 0 var(--xmimo-ui-brand);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-text-caret {\n flex: none;\n color: var(--xmimo-ui-text-muted);\n font-size: 18px;\n line-height: 1;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n column-gap: 12px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body > :nth-child(n + 3) {\n grid-column: 1 / -1;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-details-body\n > :not(.xmimo-tts-volume):not(.xmimo-tts-doubao-voice):not(.xmimo-tts-speech-instruction)\n > .xmimo-tts-field-heading {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-menu,\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-menu {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n background: none;\n box-shadow: none;\n gap: 6px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option {\n min-width: 0;\n min-height: 42px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy {\n align-items: baseline;\n flex-direction: row;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > strong,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > strong {\n min-width: 0;\n flex: 0 1 auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > small,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > small {\n min-width: 0;\n flex: 1 1 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option-custom {\n grid-column: auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n clip-path: inset(50%);\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-api-key-input:focus-within\n + .xmimo-tts-api-key-message {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-message.xmimo-tts-api-key-warning {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-stack {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input > textarea {\n min-width: 0;\n flex: 1 1 auto;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-body {\n gap: 8px;\n padding: 6px 10px 10px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-grid {\n grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));\n gap: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option {\n min-height: 34px;\n border-radius: 9px;\n padding: 5px 20px 5px 7px;\n font-size: 11px;\n line-height: 16px;\n transition:\n border-color 140ms ease,\n background 140ms ease;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::before {\n content: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::after {\n right: 5px;\n width: 13px;\n height: 13px;\n font-size: 9px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:hover:not(:disabled),\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option-selected {\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-icon {\n width: 16px;\n height: 16px;\n margin-right: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-previews button {\n min-height: 28px;\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module-padded {\n padding: 8px !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-summary {\n min-height: 28px;\n gap: 4px;\n padding-block: 3px;\n border-radius: 0;\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-grid > * {\n padding-block: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-card-actions {\n gap: 6px;\n padding: 0 0 var(--xmimo-ui-space-3);\n}\n\n@media (max-width: 520px) {\n .xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 5px;\n }\n\n .xmimo-tts-card-minimal .xmimo-tts-character-copy strong {\n font-size: 12px;\n }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n min-height: 44px;\n }\n}\n";
20984
21564
 
20985
21565
  //#endregion
20986
21566
  //#region src/client/style/history.css?raw
20987
- var history_default = "/* History is a standalone compact page, independent of the settings appearance. */\n.xmimo-tts-history-page {\n display: flex;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n max-height: min(80dvh, 760px);\n flex-direction: column;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n padding: 12px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n font-size: 14px;\n line-height: 1.5;\n}\n\n.xmimo-tts-history-header,\n.xmimo-tts-history-toolbar,\n.xmimo-tts-history-storage,\n.xmimo-tts-history-actions,\n.xmimo-tts-history-player-controls { display: flex; min-width: 0; align-items: center; gap: 8px; }\n.xmimo-tts-history-header { flex: none; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--xmimo-ui-border); }\n.xmimo-tts-history-header h2 { flex: none; margin: 0; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 6px; }\n.xmimo-tts-history-count { font-size: 12px; font-weight: 400; color: var(--xmimo-ui-text-muted); flex: none; }\n.xmimo-tts-history-toolbar { flex: 0 1 460px; flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }\n.xmimo-tts-history-search { flex: 1 1 180px; min-width: 0; }\n.xmimo-tts-history-search input { width: 100%; min-width: 0; }\n.xmimo-tts-history-source { display: flex; align-items: center; gap: 6px; font-size: 12px; }\n.xmimo-tts-history-source select { min-width: 0; max-width: 170px; min-height: 32px; border: 1px solid var(--xmimo-ui-border); border-radius: var(--xmimo-ui-control-radius); padding: 4px 8px; color: var(--xmimo-ui-text); background: var(--xmimo-ui-control-surface); font: inherit; }\n.xmimo-tts-history-footer { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; border-top: 1px solid var(--xmimo-ui-border); padding-top: 10px; }\n.xmimo-tts-history-storage { flex: 1; min-width: 0; color: var(--xmimo-ui-text-muted); font-size: 12px; }\n.xmimo-tts-history-storage > span:first-child { margin-inline-end: 10px; font-weight: 500; }\n.xmimo-tts-history-warning { flex: none; margin: 0 0 8px; color: var(--xmimo-ui-text); background: var(--xmimo-ui-control-surface); border-inline-start: 3px solid var(--xmimo-ui-brand); padding: 6px 8px; font-size: 12px; }\n.xmimo-tts-history-results { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }\n.xmimo-tts-history-list { list-style: none; margin: 0; padding: 0; }\n.xmimo-tts-history-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid var(--xmimo-ui-border-soft); padding: 5px; }\n.xmimo-tts-history-row-selected { background: var(--xmimo-ui-control-surface); border-inline-start: 2px solid var(--xmimo-ui-brand); padding-inline-start: 2px; }\n.xmimo-tts-history-copy { min-width: 0; }\n.xmimo-tts-history-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; border: 0; padding: 0; overflow: hidden; overflow-wrap: anywhere; text-align: start; color: var(--xmimo-ui-text); background: transparent; font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer; }\n.xmimo-tts-history-text-expanded { display: block; }\n.xmimo-tts-history-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--xmimo-ui-text-muted); font-size: 12px; line-height: 1.6; margin: 4px 0 0; }\n.xmimo-tts-history-page .xmimo-tts-history-confirm-delete { color: var(--dsw-alias-state-error-primary, #dc2626); background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #dc2626) 10%, transparent); }\n.xmimo-tts-history-page .xmimo-tts-history-confirm-delete:hover:not(:disabled) { background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #dc2626) 18%, transparent); }\n.xmimo-tts-history-empty { padding: 28px 12px; color: var(--xmimo-ui-text-muted); text-align: center; }\n.xmimo-tts-history-empty-whale { display: block; width: 144px; height: 144px; max-width: 100%; object-fit: contain; margin: 0 auto 12px; }\n.xmimo-tts-history-empty p { margin: 0; }\n.xmimo-tts-history-player { display: flex; flex-direction: column; min-width: 0; margin-top: 4px; gap: 4px; }\n.xmimo-tts-history-page .xmimo-tts-history-player-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: 32px; height: 32px; min-width: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); color: var(--dsw-alias-label-primary-foreground, var(--xmimo-ui-surface)); }\n.xmimo-tts-history-page .xmimo-tts-history-player-toggle:hover:not(:disabled) { background: color-mix(in srgb, var(--xmimo-ui-brand) 88%, var(--xmimo-ui-text)); }\n.xmimo-tts-history-player-controls { gap: 6px; flex: none; width: 100%; }\n.xmimo-tts-history-player-controls input[type='range'] { appearance: none; -webkit-appearance: none; flex: 1 1 auto; min-width: 30px; width: 100%; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }\n.xmimo-tts-history-player-controls input[type='range']::-webkit-slider-runnable-track { height: 3px; border-radius: 8px; background: linear-gradient(to right, var(--xmimo-ui-brand) 0% var(--xmimo-history-progress), var(--xmimo-ui-border) var(--xmimo-history-progress) 100%); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-track { height: 3px; border-radius: 8px; background: var(--xmimo-ui-border); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-progress { height: 3px; border-radius: 8px; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']:disabled { opacity: 0.5; cursor: default; }\n.xmimo-tts-history-time { flex: none; white-space: nowrap; color: var(--xmimo-ui-text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }\n.xmimo-tts-history-player-error { display: block; margin: 0; font-size: 11px; }\n.xmimo-tts-history-player-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n.xmimo-tts-history-page button { min-height: 32px; }\n.xmimo-tts-history-page button:focus-visible,\n.xmimo-tts-history-page select:focus-visible,\n.xmimo-tts-history-page input:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-history-text:hover { color: var(--xmimo-ui-brand); }\n.xmimo-tts-history-link { color: var(--xmimo-ui-text); }\n\n.xmimo-tts-history-page .xmimo-tts-history-search:focus-within,\n.xmimo-tts-history-page .xmimo-tts-history-search input:focus {\n border-color: var(--dsw-alias-border-l4, var(--xmimo-ui-border));\n outline: none;\n box-shadow: none;\n}\n";
21567
+ var history_default = "/* History is a standalone compact page, independent of the settings appearance. */\n.xmimo-tts-history-page {\n container: xmimo-audio-history / inline-size;\n display: flex;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n max-height: min(80dvh, 760px);\n flex-direction: column;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n padding: 12px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n font-size: 14px;\n line-height: 1.5;\n}\n\n.xmimo-tts-history-header,\n.xmimo-tts-history-toolbar,\n.xmimo-tts-history-storage,\n.xmimo-tts-history-actions,\n.xmimo-tts-history-player-controls { display: flex; min-width: 0; align-items: center; gap: 8px; }\n.xmimo-tts-history-header { flex: none; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--xmimo-ui-border); }\n.xmimo-tts-history-header h2 { flex: none; margin: 0; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 6px; }\n.xmimo-tts-history-header .xmimo-tts-history-title-back { display: inline-flex; flex: none; align-items: center; gap: 4px; border: 0; border-radius: 6px; padding: 0 4px 0 0; color: var(--xmimo-ui-brand); background: transparent; font: inherit; cursor: pointer; }\n.xmimo-tts-history-title-back > svg { flex: none; }\n.xmimo-tts-history-title-back:hover { background: var(--xmimo-ui-hover); }\n.xmimo-tts-history-count { font-size: 12px; font-weight: 400; color: var(--xmimo-ui-text-muted); flex: none; }\n.xmimo-tts-history-toolbar { flex: 0 1 460px; flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }\n.xmimo-tts-history-search { flex: 1 1 150px; min-width: 150px; }\n.xmimo-tts-history-search input { width: 100%; min-width: 0; }\n.xmimo-tts-history-source { display: flex; align-items: center; gap: 6px; font-size: 12px; }\n.xmimo-tts-history-source select { min-width: 0; max-width: 170px; min-height: 32px; border: 1px solid var(--xmimo-ui-border); border-radius: var(--xmimo-ui-control-radius); padding: 4px 8px; color: var(--xmimo-ui-text); background: var(--xmimo-ui-control-surface); font: inherit; }\n.xmimo-tts-history-footer { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; border-top: 1px solid var(--xmimo-ui-border); padding-top: 10px; }\n.xmimo-tts-history-storage { flex: 1; min-width: 0; flex-wrap: wrap; color: var(--xmimo-ui-text-muted); font-size: 12px; }\n.xmimo-tts-history-storage > span:first-child { margin-inline-end: 10px; font-weight: 500; }\n.xmimo-tts-history-warning { flex: none; margin: 0 0 8px; color: var(--xmimo-ui-text); background: var(--xmimo-ui-control-surface); border-inline-start: 3px solid var(--xmimo-ui-brand); padding: 6px 8px; font-size: 12px; }\n.xmimo-tts-history-results { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }\n.xmimo-tts-history-list { list-style: none; margin: 0; padding: 0; }\n.xmimo-tts-history-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid var(--xmimo-ui-border-soft); padding: 5px; }\n.xmimo-tts-history-row-selected { background: var(--xmimo-ui-control-surface); border-inline-start: 2px solid var(--xmimo-ui-brand); padding-inline-start: 2px; }\n.xmimo-tts-history-copy { min-width: 0; }\n.xmimo-tts-history-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; border: 0; padding: 0; overflow: hidden; overflow-wrap: anywhere; text-align: start; color: var(--xmimo-ui-text); background: transparent; font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer; }\n.xmimo-tts-history-text-expanded { display: block; }\n.xmimo-tts-history-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--xmimo-ui-text-muted); font-size: 12px; line-height: 1.6; margin: 4px 0 0; }\n.xmimo-tts-history-page .xmimo-tts-history-confirm-delete { color: var(--dsw-alias-state-error-primary, #dc2626); background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #dc2626) 10%, transparent); }\n.xmimo-tts-history-page .xmimo-tts-history-confirm-delete:hover:not(:disabled) { background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #dc2626) 18%, transparent); }\n.xmimo-tts-history-empty { padding: 28px 12px; color: var(--xmimo-ui-text-muted); text-align: center; }\n.xmimo-tts-history-empty-whale { display: block; width: 144px; height: 144px; max-width: 100%; object-fit: contain; margin: 0 auto 12px; }\n.xmimo-tts-history-empty p { margin: 0; }\n.xmimo-tts-history-player { display: flex; flex-direction: column; min-width: 0; margin-top: 4px; gap: 4px; }\n.xmimo-tts-history-page .xmimo-tts-history-player-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: 32px; height: 32px; min-width: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); color: var(--dsw-alias-label-primary-foreground, var(--xmimo-ui-surface)); }\n.xmimo-tts-history-page .xmimo-tts-history-player-toggle:hover:not(:disabled) { background: color-mix(in srgb, var(--xmimo-ui-brand) 88%, var(--xmimo-ui-text)); }\n.xmimo-tts-history-player-controls { gap: 6px; flex: none; width: 100%; }\n.xmimo-tts-history-player-controls input[type='range'] { appearance: none; -webkit-appearance: none; flex: 1 1 auto; min-width: 30px; width: 100%; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }\n.xmimo-tts-history-player-controls input[type='range']::-webkit-slider-runnable-track { height: 3px; border-radius: 8px; background: linear-gradient(to right, var(--xmimo-ui-brand) 0% var(--xmimo-history-progress), var(--xmimo-ui-border) var(--xmimo-history-progress) 100%); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-track { height: 3px; border-radius: 8px; background: var(--xmimo-ui-border); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-progress { height: 3px; border-radius: 8px; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']:disabled { opacity: 0.5; cursor: default; }\n.xmimo-tts-history-time { flex: none; white-space: nowrap; color: var(--xmimo-ui-text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }\n.xmimo-tts-history-player-error { display: block; margin: 0; font-size: 11px; }\n.xmimo-tts-history-player-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n.xmimo-tts-history-page button { min-height: 32px; }\n.xmimo-tts-history-page button:focus-visible,\n.xmimo-tts-history-page select:focus-visible,\n.xmimo-tts-history-page input:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-history-text:hover { color: var(--xmimo-ui-brand); }\n.xmimo-tts-history-link { color: var(--xmimo-ui-text); }\n\n.xmimo-tts-history-page .xmimo-tts-history-search:focus-within,\n.xmimo-tts-history-page .xmimo-tts-history-search input:focus {\n border-color: var(--dsw-alias-border-l4, var(--xmimo-ui-border));\n outline: none;\n box-shadow: none;\n}\n\n@container xmimo-audio-history (max-width: 520px) {\n .xmimo-tts-history-toolbar { flex-basis: 100%; }\n .xmimo-tts-history-toolbar > button,\n .xmimo-tts-history-source { flex: none; }\n .xmimo-tts-history-page button,\n .xmimo-tts-history-page .xmimo-tts-history-back,\n .xmimo-tts-history-source select,\n .xmimo-tts-history-search input { min-height: 44px; }\n .xmimo-tts-history-search input { font-size: 16px; }\n .xmimo-tts-history-page .xmimo-tts-history-row { grid-template-columns: 44px minmax(0, 1fr); align-items: start; padding-block: 10px; }\n .xmimo-tts-history-page .xmimo-tts-history-player-toggle { width: 44px; height: 44px; min-width: 44px; }\n .xmimo-tts-history-actions { grid-column: 2; justify-content: flex-end; flex-wrap: wrap; }\n .xmimo-tts-history-player-controls { flex-wrap: wrap; }\n .xmimo-tts-history-player-controls input[type='range'] { min-height: 44px; }\n .xmimo-tts-history-footer { align-items: flex-end; flex-wrap: wrap; }\n .xmimo-tts-history-storage { flex-basis: 150px; flex-direction: column; align-items: flex-start; gap: 4px; overflow-wrap: anywhere; }\n .xmimo-tts-history-storage > span:first-child { margin-inline-end: 0; }\n}\n";
20988
21568
 
20989
21569
  //#endregion
20990
21570
  //#region src/client/style/index.ts
@@ -21329,12 +21909,18 @@ function delay(ms, signal) {
21329
21909
  signal.addEventListener("abort", done, { once: true });
21330
21910
  });
21331
21911
  }
21912
+ var PetHttpError = class extends Error {
21913
+ constructor(status) {
21914
+ super(`dsh-pet: HTTP ${status}`);
21915
+ this.status = status;
21916
+ }
21917
+ };
21332
21918
  async function readJson(path, signal) {
21333
21919
  const response = await fetch(hostRoute(path), {
21334
21920
  cache: "no-store",
21335
21921
  signal: AbortSignal.any([signal, AbortSignal.timeout(15e3)])
21336
21922
  });
21337
- if (!response.ok) throw new Error(`dsh-pet: HTTP ${response.status}`);
21923
+ if (!response.ok) throw new PetHttpError(response.status);
21338
21924
  return response.json();
21339
21925
  }
21340
21926
  var DshPetCollector = class {
@@ -21370,8 +21956,9 @@ var DshPetCollector = class {
21370
21956
  });
21371
21957
  }
21372
21958
  if (state.counter === void 0) await delay(1e3, signal);
21373
- } catch {
21959
+ } catch (error) {
21374
21960
  if (signal.aborted) return;
21961
+ if (error instanceof PetHttpError && error.status === 404) return;
21375
21962
  previous = null;
21376
21963
  seen.clear();
21377
21964
  visible = null;
@@ -21573,10 +22160,14 @@ function hostCollector(ctx, id$2, service, observe) {
21573
22160
  };
21574
22161
  }, `xiaomi-mimo-tts: ${id$2}`);
21575
22162
  });
21576
- await new Promise((resolve) => {
22163
+ await new Promise((resolve, reject) => {
21577
22164
  const stop = () => {
21578
22165
  options.signal.removeEventListener("abort", stop);
21579
- fiber.dispose().then(resolve);
22166
+ try {
22167
+ Promise.resolve(fiber.dispose()).then(resolve, reject);
22168
+ } catch (error) {
22169
+ reject(error);
22170
+ }
21580
22171
  };
21581
22172
  options.signal.addEventListener("abort", stop, { once: true });
21582
22173
  if (options.signal.aborted) stop();
@@ -21691,6 +22282,7 @@ const inject = [
21691
22282
  "locale",
21692
22283
  "remote",
21693
22284
  "configForms",
22285
+ "pluginNavigation",
21694
22286
  "sessions"
21695
22287
  ];
21696
22288
  function formatStartupError(error) {
@@ -21936,7 +22528,8 @@ function apply(ctx) {
21936
22528
  label: () => t("settings.voiceReadingNav"),
21937
22529
  inject: () => ({
21938
22530
  scope,
21939
- t
22531
+ t,
22532
+ openPluginSettings: () => ctx.pluginNavigation.openBundle("dsh-xiaomi-tts")
21940
22533
  })
21941
22534
  }, VoiceReadingSection));
21942
22535
  }