dsh-audiogen 0.2.0 → 0.3.0

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.
package/lib/client.js CHANGED
@@ -93,7 +93,8 @@ window.__ModuleLoader__.load({
93
93
  "mode.tts": "文本转语音",
94
94
  "mode.music": "音乐生成",
95
95
  "mode.sfx": "音效生成",
96
- "prompt.placeholder": "输入要朗读的文本,或描述想生成的音乐 / 音效…",
96
+ "mode.voiceDesign": "音色设计",
97
+ "prompt.placeholder": "输入文本、音乐/音效描述,或音色设计描述…",
97
98
  "prompt.required": "请输入文本或提示词",
98
99
  "model.label": "模型 / 音色",
99
100
  "voice.label": "音色",
@@ -156,7 +157,8 @@ window.__ModuleLoader__.load({
156
157
  "mode.tts": "Text to speech",
157
158
  "mode.music": "Music",
158
159
  "mode.sfx": "Sound effects",
159
- "prompt.placeholder": "Text to speak, or a description of the music / sound effect…",
160
+ "mode.voiceDesign": "Voice design",
161
+ "prompt.placeholder": "Text to speak, or a music/SFX/voice-design description…",
160
162
  "prompt.required": "Prompt or text is required",
161
163
  "model.label": "Model / voice",
162
164
  "voice.label": "Voice",
@@ -472,38 +474,40 @@ window.__ModuleLoader__.load({
472
474
  document.head.appendChild(tag);
473
475
  }
474
476
  var audio_panel_module_css_default = {
475
- "historyItem": "Oo1fpq_historyItem",
476
- "form": "Oo1fpq_form",
477
477
  "label": "Oo1fpq_label",
478
- "textarea": "Oo1fpq_textarea",
479
- "header": "Oo1fpq_header",
480
- "empty": "Oo1fpq_empty",
481
- "audio": "Oo1fpq_audio",
482
- "result": "Oo1fpq_result",
483
478
  "input": "Oo1fpq_input",
484
479
  "panel": "Oo1fpq_panel",
485
- "modeButton": "Oo1fpq_modeButton",
486
- "hint": "Oo1fpq_hint",
487
- "audioList": "Oo1fpq_audioList",
488
- "history": "Oo1fpq_history",
489
480
  "historyTitle": "Oo1fpq_historyTitle",
490
- "title": "Oo1fpq_title",
491
- "select": "Oo1fpq_select",
492
- "error": "Oo1fpq_error",
481
+ "historyMeta": "Oo1fpq_historyMeta",
493
482
  "historyEmpty": "Oo1fpq_historyEmpty",
494
- "audioCard": "Oo1fpq_audioCard",
483
+ "generate": "Oo1fpq_generate",
484
+ "audioList": "Oo1fpq_audioList",
485
+ "hint": "Oo1fpq_hint",
486
+ "error": "Oo1fpq_error",
487
+ "download": "Oo1fpq_download",
488
+ "result": "Oo1fpq_result",
495
489
  "layout": "Oo1fpq_layout",
490
+ "history": "Oo1fpq_history",
491
+ "historyItem": "Oo1fpq_historyItem",
496
492
  "modeRow": "Oo1fpq_modeRow",
497
- "historyMeta": "Oo1fpq_historyMeta",
498
- "generate": "Oo1fpq_generate",
493
+ "modeButton": "Oo1fpq_modeButton",
499
494
  "historyAudio": "Oo1fpq_historyAudio",
500
- "download": "Oo1fpq_download",
501
- "historyPrompt": "Oo1fpq_historyPrompt"
495
+ "header": "Oo1fpq_header",
496
+ "textarea": "Oo1fpq_textarea",
497
+ "form": "Oo1fpq_form",
498
+ "title": "Oo1fpq_title",
499
+ "audioCard": "Oo1fpq_audioCard",
500
+ "empty": "Oo1fpq_empty",
501
+ "audio": "Oo1fpq_audio",
502
+ "historyPrompt": "Oo1fpq_historyPrompt",
503
+ "select": "Oo1fpq_select"
502
504
  };
503
505
  //#endregion
504
506
  //#region src/client/AudioGenPanel.tsx
505
507
  /**
506
508
  * The AI 音频 panel: a compact audio-generation studio.
509
+ * TTS / music / SFX / voice design are separated; each mode only lists
510
+ * compatible models and shows its own parameters.
507
511
  */
508
512
  function useConfig(scope) {
509
513
  const [value, setValue] = (0, react.useState)(scope.getSnapshot().value);
@@ -543,10 +547,11 @@ window.__ModuleLoader__.load({
543
547
  const channels = config?.channels ?? [];
544
548
  const connected = enabled && channels.some((channel) => {
545
549
  const keyHeld = scope.getSecretSetSnapshot(`channelSecrets.${channel.id}`);
546
- return channel.apiUrl.trim() !== "" && keyHeld && channel.models.length > 0;
550
+ return channel.apiUrl.trim() !== "" && keyHeld && (channel.models.length > 0 || channel.preset === "minimax");
547
551
  });
548
552
  const [mode, setMode] = (0, react.useState)("tts");
549
553
  const [prompt, setPrompt] = (0, react.useState)("");
554
+ const [previewText, setPreviewText] = (0, react.useState)("");
550
555
  const [model, setModel] = (0, react.useState)("");
551
556
  const [voice, setVoice] = (0, react.useState)("");
552
557
  const [speed, setSpeed] = (0, react.useState)("");
@@ -556,7 +561,10 @@ window.__ModuleLoader__.load({
556
561
  const [error, setError] = (0, react.useState)(null);
557
562
  const [outputs, setOutputs] = (0, react.useState)([]);
558
563
  const { entries, reload, clear } = useHistory();
559
- const visibleModels = (0, react.useMemo)(() => modelOptions.models.filter((entry) => entry.category === void 0 || entry.category === "tts" && mode === "tts" || entry.category === mode).map((entry) => entry.alias), [modelOptions.models, mode]);
564
+ const visibleModels = (0, react.useMemo)(() => {
565
+ if (mode === "voice_design") return [];
566
+ return modelOptions.models.filter((entry) => entry.category === void 0 || entry.category === "tts" && mode === "tts" || entry.category === mode).map((entry) => entry.alias);
567
+ }, [modelOptions.models, mode]);
560
568
  (0, react.useEffect)(() => {
561
569
  if (visibleModels.length > 0 && !visibleModels.includes(model)) setModel(visibleModels[0]);
562
570
  }, [visibleModels, model]);
@@ -572,6 +580,7 @@ window.__ModuleLoader__.load({
572
580
  mode,
573
581
  model: (model || visibleModels[0]) ?? "",
574
582
  prompt: prompt.trim(),
583
+ ...previewText.trim() !== "" ? { previewText: previewText.trim() } : {},
575
584
  ...voice.trim() !== "" ? { voice: voice.trim() } : {},
576
585
  ...speed.trim() !== "" ? { speed: Number(speed) } : {},
577
586
  ...duration.trim() !== "" ? { duration: Number(duration) } : {},
@@ -592,8 +601,10 @@ window.__ModuleLoader__.load({
592
601
  const modeLabel = (0, react.useMemo)(() => {
593
602
  if (mode === "tts") return tt("mode.tts");
594
603
  if (mode === "music") return tt("mode.music");
595
- return tt("mode.sfx");
604
+ if (mode === "sfx") return tt("mode.sfx");
605
+ return tt("mode.voiceDesign");
596
606
  }, [mode]);
607
+ const needModel = mode !== "voice_design";
597
608
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
598
609
  className: audio_panel_module_css_default.panel,
599
610
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
@@ -616,25 +627,35 @@ window.__ModuleLoader__.load({
616
627
  children: [
617
628
  "tts",
618
629
  "music",
619
- "sfx"
630
+ "sfx",
631
+ "voice_design"
620
632
  ].map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
621
633
  type: "button",
622
634
  className: audio_panel_module_css_default.modeButton,
623
635
  "data-active": mode === item ? "true" : "false",
624
636
  onClick: () => setMode(item),
625
- children: item === "tts" ? tt("mode.tts") : item === "music" ? tt("mode.music") : tt("mode.sfx")
637
+ children: item === "tts" ? tt("mode.tts") : item === "music" ? tt("mode.music") : item === "sfx" ? tt("mode.sfx") : tt("mode.voiceDesign")
626
638
  }, item))
627
639
  }),
628
640
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
629
641
  className: audio_panel_module_css_default.label,
630
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: mode === "tts" ? "文本" : "提示词" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
642
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: mode === "voice_design" ? "音色描述" : mode === "tts" ? "文本" : "提示词" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
631
643
  className: audio_panel_module_css_default.textarea,
632
644
  value: prompt,
633
645
  onChange: (event) => setPrompt(event.target.value),
634
646
  placeholder: tt("prompt.placeholder")
635
647
  })]
636
648
  }),
637
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
649
+ mode === "voice_design" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
650
+ className: audio_panel_module_css_default.label,
651
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: "试听文本" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
652
+ className: audio_panel_module_css_default.input,
653
+ value: previewText,
654
+ onChange: (event) => setPreviewText(event.target.value),
655
+ placeholder: "你好,这是新设计的音色试听。"
656
+ })]
657
+ }) : null,
658
+ needModel ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
638
659
  className: audio_panel_module_css_default.label,
639
660
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: tt("model.label") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
640
661
  className: audio_panel_module_css_default.select,
@@ -648,7 +669,7 @@ window.__ModuleLoader__.load({
648
669
  children: item
649
670
  }, item))]
650
671
  })]
651
- }),
672
+ }) : null,
652
673
  mode === "tts" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
653
674
  className: audio_panel_module_css_default.label,
654
675
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: tt("voice.label") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
@@ -658,7 +679,7 @@ window.__ModuleLoader__.load({
658
679
  placeholder: "alloy / 自定义音色"
659
680
  })]
660
681
  }) : null,
661
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
682
+ mode === "tts" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
662
683
  className: audio_panel_module_css_default.label,
663
684
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: tt("speed.label") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
664
685
  className: audio_panel_module_css_default.input,
@@ -670,8 +691,8 @@ window.__ModuleLoader__.load({
670
691
  onChange: (event) => setSpeed(event.target.value),
671
692
  placeholder: "1.0"
672
693
  })]
673
- }),
674
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
694
+ }) : null,
695
+ mode === "music" || mode === "sfx" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
675
696
  className: audio_panel_module_css_default.label,
676
697
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: tt("duration.label") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
677
698
  className: audio_panel_module_css_default.input,
@@ -683,8 +704,8 @@ window.__ModuleLoader__.load({
683
704
  onChange: (event) => setDuration(event.target.value),
684
705
  placeholder: "30"
685
706
  })]
686
- }),
687
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
707
+ }) : null,
708
+ needModel ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
688
709
  className: audio_panel_module_css_default.label,
689
710
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: tt("format.label") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
690
711
  className: audio_panel_module_css_default.select,
@@ -713,7 +734,7 @@ window.__ModuleLoader__.load({
713
734
  })
714
735
  ]
715
736
  })]
716
- }),
737
+ }) : null,
717
738
  !connected && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
718
739
  className: audio_panel_module_css_default.hint,
719
740
  children: tt("config.missing")
@@ -721,7 +742,7 @@ window.__ModuleLoader__.load({
721
742
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
722
743
  type: "button",
723
744
  className: audio_panel_module_css_default.generate,
724
- disabled: loading || !connected || visibleModels.length === 0,
745
+ disabled: loading || !connected || needModel && visibleModels.length === 0,
725
746
  onClick: () => void submit(),
726
747
  children: loading ? tt("generating") : tt("generate")
727
748
  })
@@ -742,17 +763,24 @@ window.__ModuleLoader__.load({
742
763
  className: audio_panel_module_css_default.audioList,
743
764
  children: outputs.map((audio, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
744
765
  className: audio_panel_module_css_default.audioCard,
745
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("audio", {
746
- className: audio_panel_module_css_default.audio,
747
- controls: true,
748
- preload: "metadata",
749
- src: dataUrlOf(audio)
750
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
751
- className: audio_panel_module_css_default.download,
752
- href: dataUrlOf(audio),
753
- download: `generated-${index + 1}.${audio.mime.split("/")[1]?.replace("mpeg", "mp3") ?? "mp3"}`,
754
- children: "下载"
755
- })]
766
+ children: [
767
+ audio.voiceId !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
768
+ className: audio_panel_module_css_default.hint,
769
+ children: ["新音色 ID:", audio.voiceId]
770
+ }) : null,
771
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("audio", {
772
+ className: audio_panel_module_css_default.audio,
773
+ controls: true,
774
+ preload: "metadata",
775
+ src: dataUrlOf(audio)
776
+ }),
777
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
778
+ className: audio_panel_module_css_default.download,
779
+ href: dataUrlOf(audio),
780
+ download: `generated-${index + 1}.${audio.mime.split("/")[1]?.replace("mpeg", "mp3") ?? "mp3"}`,
781
+ children: "下载"
782
+ })
783
+ ]
756
784
  }, audio.id))
757
785
  })] })]
758
786
  }),
@@ -819,167 +847,167 @@ window.__ModuleLoader__.load({
819
847
  document.head.appendChild(tag);
820
848
  }
821
849
  var panel_module_css_default = {
822
- "optionGrid": "rwa6qG_optionGrid",
823
- "lightboxCopy": "rwa6qG_lightboxCopy",
824
- "galleryBulkButton": "rwa6qG_galleryBulkButton",
825
- "canvas": "rwa6qG_canvas",
826
- "historyClear": "rwa6qG_historyClear",
827
- "gallerySort": "rwa6qG_gallerySort",
828
- "lightboxActions": "rwa6qG_lightboxActions",
829
- "promptCount": "rwa6qG_promptCount",
830
- "reference": "rwa6qG_reference",
831
- "galleryWorkspace": "rwa6qG_galleryWorkspace",
832
- "galleryTagFilterList": "rwa6qG_galleryTagFilterList",
833
- "gallerySearch": "rwa6qG_gallerySearch",
834
- "zoomHint": "rwa6qG_zoomHint",
835
- "paramGroup": "rwa6qG_paramGroup",
836
- "modelWrap": "rwa6qG_modelWrap",
837
- "comparisonFullscreen": "rwa6qG_comparisonFullscreen",
850
+ "referenceActions": "rwa6qG_referenceActions",
851
+ "taskRows": "rwa6qG_taskRows",
852
+ "canvasError": "rwa6qG_canvasError",
853
+ "galleryRatioList": "rwa6qG_galleryRatioList",
854
+ "historyTitle": "rwa6qG_historyTitle",
838
855
  "studio": "rwa6qG_studio",
839
- "lightboxClose": "rwa6qG_lightboxClose",
840
- "lightboxCaptionRow": "rwa6qG_lightboxCaptionRow",
841
- "historyInfo": "rwa6qG_historyInfo",
842
- "generateInner": "rwa6qG_generateInner",
843
- "bigSpinner": "rwa6qG_bigSpinner",
844
- "galleryTagEditor": "rwa6qG_galleryTagEditor",
845
- "hiddenFile": "rwa6qG_hiddenFile",
856
+ "taskRow": "rwa6qG_taskRow",
846
857
  "templatesButton": "rwa6qG_templatesButton",
847
- "lightboxZoomLevel": "rwa6qG_lightboxZoomLevel",
848
- "canvasBody": "rwa6qG_canvasBody",
849
- "lightboxStage": "rwa6qG_lightboxStage",
850
- "download": "rwa6qG_download",
851
- "galleryCardFooter": "rwa6qG_galleryCardFooter",
852
- "canvasError": "rwa6qG_canvasError",
853
- "lightboxMeta": "rwa6qG_lightboxMeta",
854
- "image": "rwa6qG_image",
855
- "historyList": "rwa6qG_historyList",
858
+ "gallerySearch": "rwa6qG_gallerySearch",
859
+ "taskTray": "rwa6qG_taskTray",
860
+ "updateActions": "rwa6qG_updateActions",
861
+ "paramHint": "rwa6qG_paramHint",
862
+ "connectionDot": "rwa6qG_connectionDot",
863
+ "panelHeading": "rwa6qG_panelHeading",
864
+ "historyClear": "rwa6qG_historyClear",
865
+ "panelHeader": "rwa6qG_panelHeader",
866
+ "modePill": "rwa6qG_modePill",
867
+ "historyInfo": "rwa6qG_historyInfo",
868
+ "canvasState": "rwa6qG_canvasState",
869
+ "canvasStateTitle": "rwa6qG_canvasStateTitle",
870
+ "card": "rwa6qG_card",
871
+ "dshImageGenToastIn": "rwa6qG_dshImageGenToastIn",
872
+ "configGuideBody": "rwa6qG_configGuideBody",
856
873
  "modelMenuItem": "rwa6qG_modelMenuItem",
857
- "optionPill": "rwa6qG_optionPill",
858
- "canvasMeta": "rwa6qG_canvasMeta",
859
- "galleryFilter": "rwa6qG_galleryFilter",
860
- "lightboxFigure": "rwa6qG_lightboxFigure",
861
- "compareToggle": "rwa6qG_compareToggle",
862
- "entry": "rwa6qG_entry",
863
- "paramLabel": "rwa6qG_paramLabel",
864
- "galleryClear": "rwa6qG_galleryClear",
865
- "historyMeta": "rwa6qG_historyMeta",
866
- "taskPrompt": "rwa6qG_taskPrompt",
867
- "modeRow": "rwa6qG_modeRow",
868
- "githubLink": "rwa6qG_githubLink",
869
- "lightboxCaption": "rwa6qG_lightboxCaption",
870
- "galleryFilterNote": "rwa6qG_galleryFilterNote",
871
- "galleryViewToggle": "rwa6qG_galleryViewToggle",
874
+ "galleryRatio": "rwa6qG_galleryRatio",
875
+ "galleryTagFilterList": "rwa6qG_galleryTagFilterList",
872
876
  "comparisonImageButton": "rwa6qG_comparisonImageButton",
873
- "taskTrayCount": "rwa6qG_taskTrayCount",
874
- "taskStatus": "rwa6qG_taskStatus",
875
- "view": "rwa6qG_view",
876
- "lightboxTools": "rwa6qG_lightboxTools",
877
- "comparisonBoard": "rwa6qG_comparisonBoard",
877
+ "comparisonFullscreenGrid": "rwa6qG_comparisonFullscreenGrid",
878
+ "promptFooter": "rwa6qG_promptFooter",
879
+ "galleryFilter": "rwa6qG_galleryFilter",
878
880
  "gallerySelect": "rwa6qG_gallerySelect",
879
- "canvasEmptyIcon": "rwa6qG_canvasEmptyIcon",
881
+ "galleryMasonry": "rwa6qG_galleryMasonry",
882
+ "historyFilters": "rwa6qG_historyFilters",
883
+ "history": "rwa6qG_history",
884
+ "uploadIcon": "rwa6qG_uploadIcon",
885
+ "historyAction": "rwa6qG_historyAction",
886
+ "lightboxCopy": "rwa6qG_lightboxCopy",
887
+ "comparisonBoard": "rwa6qG_comparisonBoard",
888
+ "historyEmpty": "rwa6qG_historyEmpty",
889
+ "galleryTagFilter": "rwa6qG_galleryTagFilter",
890
+ "image": "rwa6qG_image",
891
+ "canvasStateHint": "rwa6qG_canvasStateHint",
880
892
  "galleryAdd": "rwa6qG_galleryAdd",
881
- "modelSelect": "rwa6qG_modelSelect",
882
- "uploadHint": "rwa6qG_uploadHint",
883
- "galleryFilterCount": "rwa6qG_galleryFilterCount",
884
- "updateActions": "rwa6qG_updateActions",
885
893
  "config": "rwa6qG_config",
886
- "lightboxDownload": "rwa6qG_lightboxDownload",
887
- "lightboxNav": "rwa6qG_lightboxNav",
888
- "historyEmpty": "rwa6qG_historyEmpty",
889
- "galleryToolbar": "rwa6qG_galleryToolbar",
890
- "galleryHeading": "rwa6qG_galleryHeading",
891
- "comparisonFullscreenGrid": "rwa6qG_comparisonFullscreenGrid",
892
- "taskTrayChevron": "rwa6qG_taskTrayChevron",
893
- "galleryTagEdit": "rwa6qG_galleryTagEdit",
894
- "updateRelease": "rwa6qG_updateRelease",
895
- "updateText": "rwa6qG_updateText",
896
- "historyThumbPlaceholder": "rwa6qG_historyThumbPlaceholder",
897
- "panel": "rwa6qG_panel",
898
- "imageCard": "rwa6qG_imageCard",
899
- "galleryBadge": "rwa6qG_galleryBadge",
900
- "paramHint": "rwa6qG_paramHint",
901
- "configScroll": "rwa6qG_configScroll",
902
- "modePill": "rwa6qG_modePill",
903
- "historyFilters": "rwa6qG_historyFilters",
894
+ "lightboxActions": "rwa6qG_lightboxActions",
895
+ "galleryTags": "rwa6qG_galleryTags",
896
+ "generateButton": "rwa6qG_generateButton",
904
897
  "panelTitle": "rwa6qG_panelTitle",
898
+ "historyThumbPlaceholder": "rwa6qG_historyThumbPlaceholder",
899
+ "historyMain": "rwa6qG_historyMain",
900
+ "canvasMeta": "rwa6qG_canvasMeta",
901
+ "download": "rwa6qG_download",
902
+ "prompt": "rwa6qG_prompt",
905
903
  "entryLabel": "rwa6qG_entryLabel",
906
- "footer": "rwa6qG_footer",
907
- "imageCaption": "rwa6qG_imageCaption",
908
- "panelHeading": "rwa6qG_panelHeading",
909
- "compareModelChoices": "rwa6qG_compareModelChoices",
904
+ "galleryToast": "rwa6qG_galleryToast",
905
+ "optionPill": "rwa6qG_optionPill",
906
+ "lightboxScaleFrame": "rwa6qG_lightboxScaleFrame",
907
+ "galleryHeading": "rwa6qG_galleryHeading",
910
908
  "compareControl": "rwa6qG_compareControl",
911
- "historySearch": "rwa6qG_historySearch",
912
- "galleryCard": "rwa6qG_galleryCard",
913
- "uploadBox": "rwa6qG_uploadBox",
914
- "galleryAvatar": "rwa6qG_galleryAvatar",
915
- "taskTray": "rwa6qG_taskTray",
916
- "historyItem": "rwa6qG_historyItem",
917
- "promptFooter": "rwa6qG_promptFooter",
918
- "canvasStateTitle": "rwa6qG_canvasStateTitle",
919
- "lightboxTool": "rwa6qG_lightboxTool",
920
- "galleryFilterDivider": "rwa6qG_galleryFilterDivider",
921
- "historyActions": "rwa6qG_historyActions",
922
- "modelMenuList": "rwa6qG_modelMenuList",
923
- "historyPrompt": "rwa6qG_historyPrompt",
924
- "taskRows": "rwa6qG_taskRows",
925
- "configGuideBody": "rwa6qG_configGuideBody",
909
+ "imageCaption": "rwa6qG_imageCaption",
910
+ "promptCount": "rwa6qG_promptCount",
911
+ "lightboxStage": "rwa6qG_lightboxStage",
912
+ "updateRelease": "rwa6qG_updateRelease",
913
+ "lightboxDownload": "rwa6qG_lightboxDownload",
914
+ "gallerySelectMode": "rwa6qG_gallerySelectMode",
915
+ "compareToggle": "rwa6qG_compareToggle",
926
916
  "grid": "rwa6qG_grid",
927
- "modelLabel": "rwa6qG_modelLabel",
928
- "uploadIcon": "rwa6qG_uploadIcon",
929
- "galleryToast": "rwa6qG_galleryToast",
917
+ "zoomHint": "rwa6qG_zoomHint",
918
+ "modelSelect": "rwa6qG_modelSelect",
919
+ "modelMenu": "rwa6qG_modelMenu",
920
+ "lightboxFigure": "rwa6qG_lightboxFigure",
921
+ "lightboxTools": "rwa6qG_lightboxTools",
922
+ "compareModelChoices": "rwa6qG_compareModelChoices",
923
+ "gallerySelectionClear": "rwa6qG_gallerySelectionClear",
924
+ "lightboxMeta": "rwa6qG_lightboxMeta",
925
+ "taskPrompt": "rwa6qG_taskPrompt",
926
+ "modelWrap": "rwa6qG_modelWrap",
930
927
  "updateBanner": "rwa6qG_updateBanner",
931
- "lightboxIndex": "rwa6qG_lightboxIndex",
928
+ "configGuide": "rwa6qG_configGuide",
929
+ "modelLabel": "rwa6qG_modelLabel",
930
+ "historyMeta": "rwa6qG_historyMeta",
931
+ "galleryBulkButton": "rwa6qG_galleryBulkButton",
932
+ "generateInner": "rwa6qG_generateInner",
933
+ "lightboxImage": "rwa6qG_lightboxImage",
934
+ "lightboxClose": "rwa6qG_lightboxClose",
935
+ "entryIcon": "rwa6qG_entryIcon",
936
+ "historyHeader": "rwa6qG_historyHeader",
937
+ "view": "rwa6qG_view",
938
+ "galleryWorkspace": "rwa6qG_galleryWorkspace",
939
+ "galleryAvatar": "rwa6qG_galleryAvatar",
940
+ "taskTrayChevron": "rwa6qG_taskTrayChevron",
941
+ "canvas": "rwa6qG_canvas",
932
942
  "lightboxEdit": "rwa6qG_lightboxEdit",
933
- "lightboxScaleFrame": "rwa6qG_lightboxScaleFrame",
934
- "enhanceButton": "rwa6qG_enhanceButton",
935
- "galleryFilterHeading": "rwa6qG_galleryFilterHeading",
936
- "referenceImage": "rwa6qG_referenceImage",
937
- "galleryRatio": "rwa6qG_galleryRatio",
943
+ "taskTrayCount": "rwa6qG_taskTrayCount",
944
+ "taskTrayToggle": "rwa6qG_taskTrayToggle",
945
+ "galleryCardInfo": "rwa6qG_galleryCardInfo",
946
+ "imageCard": "rwa6qG_imageCard",
938
947
  "galleryCount": "rwa6qG_galleryCount",
939
- "galleryTags": "rwa6qG_galleryTags",
940
- "optionRow": "rwa6qG_optionRow",
948
+ "galleryTagEdit": "rwa6qG_galleryTagEdit",
949
+ "historySearch": "rwa6qG_historySearch",
950
+ "historyActions": "rwa6qG_historyActions",
951
+ "lightboxZoomLevel": "rwa6qG_lightboxZoomLevel",
952
+ "reference": "rwa6qG_reference",
953
+ "historyPrompt": "rwa6qG_historyPrompt",
954
+ "galleryFilterNote": "rwa6qG_galleryFilterNote",
941
955
  "taskTrayHeader": "rwa6qG_taskTrayHeader",
942
- "galleryRemove": "rwa6qG_galleryRemove",
943
- "generateButton": "rwa6qG_generateButton",
944
- "historyTitle": "rwa6qG_historyTitle",
945
- "historyThumb": "rwa6qG_historyThumb",
946
- "gallerySelectionBar": "rwa6qG_gallerySelectionBar",
947
- "spinner": "rwa6qG_spinner",
948
- "historyHeader": "rwa6qG_historyHeader",
949
- "modelMenu": "rwa6qG_modelMenu",
950
- "history": "rwa6qG_history",
951
- "canvasHistoryTag": "rwa6qG_canvasHistoryTag",
952
- "galleryCardInfo": "rwa6qG_galleryCardInfo",
953
- "historyAction": "rwa6qG_historyAction",
954
- "galleryImageButton": "rwa6qG_galleryImageButton",
955
- "taskTrayToggle": "rwa6qG_taskTrayToggle",
956
- "prompt": "rwa6qG_prompt",
957
- "comparisonGrid": "rwa6qG_comparisonGrid",
958
- "canvasState": "rwa6qG_canvasState",
959
- "galleryToolbarActions": "rwa6qG_galleryToolbarActions",
960
- "connectionStatus": "rwa6qG_connectionStatus",
961
- "entryIcon": "rwa6qG_entryIcon",
962
956
  "galleryImage": "rwa6qG_galleryImage",
963
- "taskRow": "rwa6qG_taskRow",
964
- "lightboxImage": "rwa6qG_lightboxImage",
965
- "galleryRatioList": "rwa6qG_galleryRatioList",
966
- "gallerySelectionClear": "rwa6qG_gallerySelectionClear",
967
- "historyMain": "rwa6qG_historyMain",
968
- "card": "rwa6qG_card",
957
+ "comparisonFullscreen": "rwa6qG_comparisonFullscreen",
958
+ "galleryClear": "rwa6qG_galleryClear",
959
+ "footer": "rwa6qG_footer",
960
+ "canvasHistoryTag": "rwa6qG_canvasHistoryTag",
961
+ "uploadBox": "rwa6qG_uploadBox",
962
+ "hiddenFile": "rwa6qG_hiddenFile",
969
963
  "dshImageGenSpin": "rwa6qG_dshImageGenSpin",
970
- "dshImageGenToastIn": "rwa6qG_dshImageGenToastIn",
971
- "galleryTagFilter": "rwa6qG_galleryTagFilter",
972
- "galleryMasonry": "rwa6qG_galleryMasonry",
964
+ "optionRow": "rwa6qG_optionRow",
965
+ "comparisonGrid": "rwa6qG_comparisonGrid",
966
+ "galleryRemove": "rwa6qG_galleryRemove",
967
+ "panel": "rwa6qG_panel",
968
+ "updateText": "rwa6qG_updateText",
969
+ "lightboxNav": "rwa6qG_lightboxNav",
970
+ "galleryFilterHeading": "rwa6qG_galleryFilterHeading",
971
+ "paramLabel": "rwa6qG_paramLabel",
973
972
  "taskTrayClose": "rwa6qG_taskTrayClose",
974
- "configGuide": "rwa6qG_configGuide",
975
- "galleryFilters": "rwa6qG_galleryFilters",
976
- "gallerySelectMode": "rwa6qG_gallerySelectMode",
977
- "canvasStateHint": "rwa6qG_canvasStateHint",
973
+ "gallerySort": "rwa6qG_gallerySort",
974
+ "galleryTagEditor": "rwa6qG_galleryTagEditor",
975
+ "lightboxCaptionRow": "rwa6qG_lightboxCaptionRow",
976
+ "historyList": "rwa6qG_historyList",
978
977
  "galleryTagInput": "rwa6qG_galleryTagInput",
978
+ "lightboxIndex": "rwa6qG_lightboxIndex",
979
+ "galleryFilterCount": "rwa6qG_galleryFilterCount",
980
+ "galleryFilterDivider": "rwa6qG_galleryFilterDivider",
981
+ "enhanceButton": "rwa6qG_enhanceButton",
982
+ "historyItem": "rwa6qG_historyItem",
983
+ "uploadHint": "rwa6qG_uploadHint",
984
+ "connectionStatus": "rwa6qG_connectionStatus",
985
+ "modeRow": "rwa6qG_modeRow",
986
+ "modelMenuList": "rwa6qG_modelMenuList",
987
+ "spinner": "rwa6qG_spinner",
979
988
  "lightbox": "rwa6qG_lightbox",
980
- "connectionDot": "rwa6qG_connectionDot",
981
- "panelHeader": "rwa6qG_panelHeader",
982
- "referenceActions": "rwa6qG_referenceActions"
989
+ "githubLink": "rwa6qG_githubLink",
990
+ "lightboxTool": "rwa6qG_lightboxTool",
991
+ "historyThumb": "rwa6qG_historyThumb",
992
+ "canvasEmptyIcon": "rwa6qG_canvasEmptyIcon",
993
+ "lightboxCaption": "rwa6qG_lightboxCaption",
994
+ "bigSpinner": "rwa6qG_bigSpinner",
995
+ "optionGrid": "rwa6qG_optionGrid",
996
+ "taskStatus": "rwa6qG_taskStatus",
997
+ "configScroll": "rwa6qG_configScroll",
998
+ "gallerySelectionBar": "rwa6qG_gallerySelectionBar",
999
+ "galleryImageButton": "rwa6qG_galleryImageButton",
1000
+ "galleryCard": "rwa6qG_galleryCard",
1001
+ "referenceImage": "rwa6qG_referenceImage",
1002
+ "entry": "rwa6qG_entry",
1003
+ "galleryFilters": "rwa6qG_galleryFilters",
1004
+ "galleryToolbarActions": "rwa6qG_galleryToolbarActions",
1005
+ "canvasBody": "rwa6qG_canvasBody",
1006
+ "galleryBadge": "rwa6qG_galleryBadge",
1007
+ "paramGroup": "rwa6qG_paramGroup",
1008
+ "galleryCardFooter": "rwa6qG_galleryCardFooter",
1009
+ "galleryToolbar": "rwa6qG_galleryToolbar",
1010
+ "galleryViewToggle": "rwa6qG_galleryViewToggle"
983
1011
  };
984
1012
  //#endregion
985
1013
  //#region src/client/mount.tsx
@@ -1636,97 +1664,97 @@ window.__ModuleLoader__.load({
1636
1664
  document.head.appendChild(tag);
1637
1665
  }
1638
1666
  var settings_card_module_css_default = {
1639
- "modelFetch": "zmjoSq_modelFetch",
1640
- "channelHost": "zmjoSq_channelHost",
1641
- "channelEmpty": "zmjoSq_channelEmpty",
1642
- "notExposed": "zmjoSq_notExposed",
1643
- "modelChip": "zmjoSq_modelChip",
1644
- "editorClose": "zmjoSq_editorClose",
1645
- "versionValue": "zmjoSq_versionValue",
1646
- "editorTools": "zmjoSq_editorTools",
1647
- "inlineDisclosure": "zmjoSq_inlineDisclosure",
1667
+ "label": "zmjoSq_label",
1668
+ "optionalContent": "zmjoSq_optionalContent",
1648
1669
  "channelAdd": "zmjoSq_channelAdd",
1649
- "modelRow": "zmjoSq_modelRow",
1650
- "channelAddRow": "zmjoSq_channelAddRow",
1651
- "presetRow": "zmjoSq_presetRow",
1652
- "editorDivider": "zmjoSq_editorDivider",
1653
- "presetInline": "zmjoSq_presetInline",
1654
- "sectionTitle": "zmjoSq_sectionTitle",
1670
+ "modelRowRemove": "zmjoSq_modelRowRemove",
1671
+ "description": "zmjoSq_description",
1655
1672
  "head": "zmjoSq_head",
1656
- "presetList": "zmjoSq_presetList",
1657
- "presetName": "zmjoSq_presetName",
1658
- "pending": "zmjoSq_pending",
1659
- "body": "zmjoSq_body",
1660
- "manualModelRow": "zmjoSq_manualModelRow",
1661
- "modelChoices": "zmjoSq_modelChoices",
1662
- "footer": "zmjoSq_footer",
1663
- "inputInvalid": "zmjoSq_inputInvalid",
1664
- "readOnly": "zmjoSq_readOnly",
1665
- "textarea": "zmjoSq_textarea",
1666
- "header": "zmjoSq_header",
1673
+ "modelCandidateList": "zmjoSq_modelCandidateList",
1667
1674
  "presetHint": "zmjoSq_presetHint",
1668
- "versionRow": "zmjoSq_versionRow",
1669
- "editorField": "zmjoSq_editorField",
1670
- "presetInlineHeader": "zmjoSq_presetInlineHeader",
1671
- "chevron": "zmjoSq_chevron",
1675
+ "select": "zmjoSq_select",
1676
+ "notExposed": "zmjoSq_notExposed",
1677
+ "sectionHint": "zmjoSq_sectionHint",
1672
1678
  "editorFooter": "zmjoSq_editorFooter",
1673
- "channelList": "zmjoSq_channelList",
1674
- "badge": "zmjoSq_badge",
1675
- "failed": "zmjoSq_failed",
1679
+ "modelRowBadges": "zmjoSq_modelRowBadges",
1680
+ "modelFetchRow": "zmjoSq_modelFetchRow",
1681
+ "editorPanel": "zmjoSq_editorPanel",
1682
+ "disclosure": "zmjoSq_disclosure",
1683
+ "sectionHeader": "zmjoSq_sectionHeader",
1676
1684
  "save": "zmjoSq_save",
1677
- "channelAction": "zmjoSq_channelAction",
1678
- "channelRow": "zmjoSq_channelRow",
1679
- "input": "zmjoSq_input",
1680
- "card": "zmjoSq_card",
1681
- "discard": "zmjoSq_discard",
1685
+ "channelSection": "zmjoSq_channelSection",
1686
+ "manualModelRow": "zmjoSq_manualModelRow",
1687
+ "modelSection": "zmjoSq_modelSection",
1688
+ "field": "zmjoSq_field",
1689
+ "deleteConfirmText": "zmjoSq_deleteConfirmText",
1690
+ "modelSummary": "zmjoSq_modelSummary",
1691
+ "channelAddRow": "zmjoSq_channelAddRow",
1682
1692
  "channelMeta": "zmjoSq_channelMeta",
1683
- "textareaInvalid": "zmjoSq_textareaInvalid",
1693
+ "editorTools": "zmjoSq_editorTools",
1684
1694
  "hint": "zmjoSq_hint",
1685
- "editorHeader": "zmjoSq_editorHeader",
1686
- "modelSection": "zmjoSq_modelSection",
1687
- "description": "zmjoSq_description",
1688
- "detectOk": "zmjoSq_detectOk",
1689
- "select": "zmjoSq_select",
1690
- "sectionHeader": "zmjoSq_sectionHeader",
1691
- "sectionDivider": "zmjoSq_sectionDivider",
1695
+ "editorClose": "zmjoSq_editorClose",
1696
+ "modelFetch": "zmjoSq_modelFetch",
1697
+ "sectionTitle": "zmjoSq_sectionTitle",
1698
+ "channelEmpty": "zmjoSq_channelEmpty",
1699
+ "readOnly": "zmjoSq_readOnly",
1700
+ "channelAction": "zmjoSq_channelAction",
1701
+ "failed": "zmjoSq_failed",
1702
+ "channelControls": "zmjoSq_channelControls",
1703
+ "presetRow": "zmjoSq_presetRow",
1704
+ "headText": "zmjoSq_headText",
1705
+ "versionRow": "zmjoSq_versionRow",
1706
+ "modelCandidate": "zmjoSq_modelCandidate",
1692
1707
  "channelDotReady": "zmjoSq_channelDotReady",
1693
- "channelName": "zmjoSq_channelName",
1694
- "editorSectionHeader": "zmjoSq_editorSectionHeader",
1695
- "editorBackdrop": "zmjoSq_editorBackdrop",
1696
- "modelCandidateLabel": "zmjoSq_modelCandidateLabel",
1697
- "disclosure": "zmjoSq_disclosure",
1708
+ "channelDotWarn": "zmjoSq_channelDotWarn",
1709
+ "footer": "zmjoSq_footer",
1710
+ "channelHost": "zmjoSq_channelHost",
1711
+ "channelRow": "zmjoSq_channelRow",
1698
1712
  "channelMain": "zmjoSq_channelMain",
1699
- "modelSummary": "zmjoSq_modelSummary",
1700
- "modelRowRemove": "zmjoSq_modelRowRemove",
1701
- "channelDanger": "zmjoSq_channelDanger",
1702
- "deleteConfirmText": "zmjoSq_deleteConfirmText",
1703
- "editorPanel": "zmjoSq_editorPanel",
1704
- "modelCandidate": "zmjoSq_modelCandidate",
1705
- "spacer": "zmjoSq_spacer",
1713
+ "editorField": "zmjoSq_editorField",
1714
+ "modelRows": "zmjoSq_modelRows",
1715
+ "presetMeta": "zmjoSq_presetMeta",
1716
+ "reset": "zmjoSq_reset",
1706
1717
  "name": "zmjoSq_name",
1707
- "modelRowInputs": "zmjoSq_modelRowInputs",
1718
+ "versionValue": "zmjoSq_versionValue",
1708
1719
  "badges": "zmjoSq_badges",
1709
- "headText": "zmjoSq_headText",
1710
- "modelRowBadges": "zmjoSq_modelRowBadges",
1720
+ "badge": "zmjoSq_badge",
1721
+ "channelName": "zmjoSq_channelName",
1722
+ "editorSectionHeader": "zmjoSq_editorSectionHeader",
1723
+ "presetName": "zmjoSq_presetName",
1724
+ "pending": "zmjoSq_pending",
1725
+ "invalid": "zmjoSq_invalid",
1726
+ "modelChip": "zmjoSq_modelChip",
1727
+ "header": "zmjoSq_header",
1728
+ "modelRow": "zmjoSq_modelRow",
1729
+ "channelList": "zmjoSq_channelList",
1730
+ "inputInvalid": "zmjoSq_inputInvalid",
1711
1731
  "versionLabel": "zmjoSq_versionLabel",
1712
- "optionalContent": "zmjoSq_optionalContent",
1713
- "modelArrow": "zmjoSq_modelArrow",
1714
- "channelDotWarn": "zmjoSq_channelDotWarn",
1715
- "presetMeta": "zmjoSq_presetMeta",
1716
- "reset": "zmjoSq_reset",
1732
+ "editorBackdrop": "zmjoSq_editorBackdrop",
1733
+ "chevron": "zmjoSq_chevron",
1734
+ "card": "zmjoSq_card",
1717
1735
  "chevronOpen": "zmjoSq_chevronOpen",
1718
- "label": "zmjoSq_label",
1719
- "field": "zmjoSq_field",
1720
- "modelFetchRow": "zmjoSq_modelFetchRow",
1721
- "modelCandidateList": "zmjoSq_modelCandidateList",
1722
- "sectionHint": "zmjoSq_sectionHint",
1736
+ "editorHeader": "zmjoSq_editorHeader",
1737
+ "modelCandidateLabel": "zmjoSq_modelCandidateLabel",
1738
+ "sectionDivider": "zmjoSq_sectionDivider",
1723
1739
  "addModel": "zmjoSq_addModel",
1724
- "modelBadge": "zmjoSq_modelBadge",
1725
1740
  "channelBadge": "zmjoSq_channelBadge",
1726
- "modelRows": "zmjoSq_modelRows",
1727
- "channelControls": "zmjoSq_channelControls",
1728
- "channelSection": "zmjoSq_channelSection",
1729
- "invalid": "zmjoSq_invalid"
1741
+ "editorDivider": "zmjoSq_editorDivider",
1742
+ "input": "zmjoSq_input",
1743
+ "modelArrow": "zmjoSq_modelArrow",
1744
+ "textarea": "zmjoSq_textarea",
1745
+ "presetInlineHeader": "zmjoSq_presetInlineHeader",
1746
+ "modelRowInputs": "zmjoSq_modelRowInputs",
1747
+ "presetInline": "zmjoSq_presetInline",
1748
+ "presetList": "zmjoSq_presetList",
1749
+ "discard": "zmjoSq_discard",
1750
+ "channelDanger": "zmjoSq_channelDanger",
1751
+ "spacer": "zmjoSq_spacer",
1752
+ "textareaInvalid": "zmjoSq_textareaInvalid",
1753
+ "inlineDisclosure": "zmjoSq_inlineDisclosure",
1754
+ "body": "zmjoSq_body",
1755
+ "modelChoices": "zmjoSq_modelChoices",
1756
+ "modelBadge": "zmjoSq_modelBadge",
1757
+ "detectOk": "zmjoSq_detectOk"
1730
1758
  };
1731
1759
  //#endregion
1732
1760
  //#region src/client/SettingsCard.tsx
@@ -2316,17 +2344,17 @@ window.__ModuleLoader__.load({
2316
2344
  document.head.appendChild(tag);
2317
2345
  }
2318
2346
  var audio_toolview_module_css_default = {
2319
- "empty": "_7K1QKa_empty",
2320
- "root": "_7K1QKa_root",
2321
2347
  "message": "_7K1QKa_message",
2322
- "audio": "_7K1QKa_audio",
2323
2348
  "audios": "_7K1QKa_audios",
2324
- "status": "_7K1QKa_status",
2325
- "audioRow": "_7K1QKa_audioRow",
2326
2349
  "download": "_7K1QKa_download",
2327
2350
  "icon": "_7K1QKa_icon",
2351
+ "error": "_7K1QKa_error",
2352
+ "status": "_7K1QKa_status",
2328
2353
  "header": "_7K1QKa_header",
2329
- "error": "_7K1QKa_error"
2354
+ "audioRow": "_7K1QKa_audioRow",
2355
+ "empty": "_7K1QKa_empty",
2356
+ "root": "_7K1QKa_root",
2357
+ "audio": "_7K1QKa_audio"
2330
2358
  };
2331
2359
  //#endregion
2332
2360
  //#region src/client/audio-toolview.tsx