@dsh-agentic-roleplay/core 0.12.3 → 0.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/lib/{authoring-tools-hacA5fG-.js → authoring-tools-B_qYKK8c.js} +244 -27
  2. package/lib/authoring.js +175 -9
  3. package/lib/client.js +841 -482
  4. package/lib/client.js.map +1 -1
  5. package/lib/doctor.js +1 -1
  6. package/lib/{gallery-BNg0rPTp.js → gallery-Bu6eZMKk.js} +2 -2
  7. package/lib/{generator-9-5at9cZ.js → generator-CTWQWbSW.js} +2 -2
  8. package/lib/{hooks-DlrFO4aQ.js → hooks-YXQZ9G2d.js} +2 -2
  9. package/lib/images.js +4 -4
  10. package/lib/index.js +34 -25
  11. package/lib/{library-DTxakw0z.js → library-BmlHNCah.js} +2 -2
  12. package/lib/{lorebook-author-tools-dupq-kb_.js → lorebook-author-tools-C3rRpMt7.js} +6 -6
  13. package/lib/lorebook-authoring.js +5 -5
  14. package/lib/orchestration.js +8 -8
  15. package/lib/{pack-jail-Bq0fzKi4.js → pack-jail-VbcXiukr.js} +10 -9
  16. package/lib/{packs-D-7EU3yU.js → packs-CzVh2ZNe.js} +2 -2
  17. package/lib/{presenter-agent-vFOxIuWv.js → presenter-agent-CF3fneuJ.js} +4 -4
  18. package/lib/{preset-RHcOG55T.js → preset-C595KRUM.js} +3 -3
  19. package/lib/{preset-author-tools-Dwxnpv6V.js → preset-author-tools-CF_JKKTE.js} +6 -6
  20. package/lib/preset-authoring.js +5 -5
  21. package/lib/{reflection-DibpEUQK.js → reflection-ByIQSOKC.js} +6 -6
  22. package/lib/{serial-CDGoXYh-.js → serial-ULGUKWsu.js} +129 -30
  23. package/lib/{text-Dfv8S8eq.js → text-hiKTooVb.js} +3 -1
  24. package/lib/{turn-guard-DDxikrq7.js → turn-guard-DXMeAJdv.js} +2 -2
  25. package/package.json +2 -2
  26. package/prompts/en/import/opening.md +17 -0
  27. package/prompts/en/roleplay/decide-opening.md +1 -0
  28. package/prompts/en/world/procedure.md +1 -1
  29. package/prompts/zh/import/opening.md +17 -0
  30. package/prompts/zh/roleplay/decide-opening.md +1 -0
  31. package/prompts/zh/world/procedure.md +1 -1
package/lib/client.js CHANGED
@@ -416,8 +416,8 @@ window.__ModuleLoader__.load({
416
416
  }
417
417
  tag$52.textContent = css$52;
418
418
  var PageTabs_module_css_default = {
419
- "tabs": "rp_LrKukW_tabs",
420
- "tab": "rp_LrKukW_tab"
419
+ "tab": "rp_LrKukW_tab",
420
+ "tabs": "rp_LrKukW_tabs"
421
421
  };
422
422
  // src/client/widgets/page-tabs/PageTabs.tsx
423
423
  /** Underlined text tabs; arrow keys, Home and End move between them. */
@@ -518,7 +518,7 @@ window.__ModuleLoader__.load({
518
518
  });
519
519
  }
520
520
  // src/client/panel/locales.ts
521
- const dictionaries$27 = {
521
+ const dictionaries$28 = {
522
522
  en: {
523
523
  label: "Role Play",
524
524
  heading: "DSH Agentic Role Play",
@@ -674,7 +674,7 @@ window.__ModuleLoader__.load({
674
674
  /** Adds the Role Play entry to the sidebar and the main panel it opens. */
675
675
  function registerPanel(ctx) {
676
676
  const t = ctx.locale.bind(NAMESPACE$17);
677
- ctx.effect(() => ctx.locale.register(NAMESPACE$17, dictionaries$27), "roleplay: panel dictionaries");
677
+ ctx.effect(() => ctx.locale.register(NAMESPACE$17, dictionaries$28), "roleplay: panel dictionaries");
678
678
  const pages = createPagesSource(ctx);
679
679
  ctx.effect(() => pages.start(), "roleplay: page list");
680
680
  const handle = createPanelStore();
@@ -902,14 +902,14 @@ window.__ModuleLoader__.load({
902
902
  }
903
903
  tag$50.textContent = css$50;
904
904
  var Button_module_css_default = {
905
+ "rpPrimary": "rp_wwotfa_rpPrimary",
905
906
  "rpButton": "rp_wwotfa_rpButton",
907
+ "rpIcon": "rp_wwotfa_rpIcon",
908
+ "rpSm": "rp_wwotfa_rpSm",
906
909
  "rpToolbar": "rp_wwotfa_rpToolbar",
907
910
  "rpOutline": "rp_wwotfa_rpOutline",
908
911
  "rpGhost": "rp_wwotfa_rpGhost",
909
- "rpPrimary": "rp_wwotfa_rpPrimary",
910
- "rpMd": "rp_wwotfa_rpMd",
911
- "rpSm": "rp_wwotfa_rpSm",
912
- "rpIcon": "rp_wwotfa_rpIcon"
912
+ "rpMd": "rp_wwotfa_rpMd"
913
913
  };
914
914
  // src/client/ui/Button.tsx
915
915
  /** Render a button; native button attributes pass through, and `icon` is a leading 16px node. */
@@ -1177,8 +1177,8 @@ window.__ModuleLoader__.load({
1177
1177
  tag$46.textContent = css$46;
1178
1178
  var Input_module_css_default = {
1179
1179
  "rpInput": "rp_QU88dW_rpInput",
1180
- "rpInputWrap": "rp_QU88dW_rpInputWrap",
1181
- "rpInputIcon": "rp_QU88dW_rpInputIcon"
1180
+ "rpInputIcon": "rp_QU88dW_rpInputIcon",
1181
+ "rpInputWrap": "rp_QU88dW_rpInputWrap"
1182
1182
  };
1183
1183
  // src/client/ui/Input.tsx
1184
1184
  /** Render a text input with an optional leading icon; input attributes pass through. */
@@ -1207,8 +1207,8 @@ window.__ModuleLoader__.load({
1207
1207
  }
1208
1208
  tag$45.textContent = css$45;
1209
1209
  var LanguageSelect_module_css_default = {
1210
- "compact": "rp_uOuCXG_compact",
1211
- "select": "rp_uOuCXG_select"
1210
+ "select": "rp_uOuCXG_select",
1211
+ "compact": "rp_uOuCXG_compact"
1212
1212
  };
1213
1213
  // src/client/widgets/language-select/LanguageSelect.tsx
1214
1214
  /** The languages offered for the prompts of an import or an assistant; the interface's own language is added when it is none of them. */
@@ -1269,34 +1269,34 @@ window.__ModuleLoader__.load({
1269
1269
  }
1270
1270
  tag$44.textContent = css$44;
1271
1271
  var ImportCard_module_css_default = {
1272
- "page": "rp_5cvtma_page",
1272
+ "space": "rp_5cvtma_space",
1273
+ "field": "rp_5cvtma_field",
1274
+ "preview": "rp_5cvtma_preview",
1275
+ "title": "rp_5cvtma_title",
1276
+ "entryTitle": "rp_5cvtma_entryTitle",
1273
1277
  "section": "rp_5cvtma_section",
1278
+ "body": "rp_5cvtma_body",
1279
+ "picture": "rp_5cvtma_picture",
1280
+ "label": "rp_5cvtma_label",
1281
+ "tags": "rp_5cvtma_tags",
1282
+ "fieldHead": "rp_5cvtma_fieldHead",
1274
1283
  "error": "rp_5cvtma_error",
1275
- "about": "rp_5cvtma_about",
1276
- "entry": "rp_5cvtma_entry",
1277
1284
  "entryOff": "rp_5cvtma_entryOff",
1278
- "title": "rp_5cvtma_title",
1279
- "picture": "rp_5cvtma_picture",
1280
- "top": "rp_5cvtma_top",
1281
- "choice": "rp_5cvtma_choice",
1282
- "noPicture": "rp_5cvtma_noPicture",
1283
- "text": "rp_5cvtma_text",
1284
1285
  "fieldTitle": "rp_5cvtma_fieldTitle",
1285
- "tags": "rp_5cvtma_tags",
1286
- "space": "rp_5cvtma_space",
1287
- "header": "rp_5cvtma_header",
1286
+ "choiceText": "rp_5cvtma_choiceText",
1287
+ "noPicture": "rp_5cvtma_noPicture",
1288
+ "top": "rp_5cvtma_top",
1288
1289
  "note": "rp_5cvtma_note",
1289
- "body": "rp_5cvtma_body",
1290
+ "heading": "rp_5cvtma_heading",
1291
+ "entry": "rp_5cvtma_entry",
1290
1292
  "row": "rp_5cvtma_row",
1291
- "field": "rp_5cvtma_field",
1292
- "fieldMeta": "rp_5cvtma_fieldMeta",
1293
- "choiceText": "rp_5cvtma_choiceText",
1294
- "fieldHead": "rp_5cvtma_fieldHead",
1295
1293
  "entryHead": "rp_5cvtma_entryHead",
1296
- "label": "rp_5cvtma_label",
1297
- "preview": "rp_5cvtma_preview",
1298
- "heading": "rp_5cvtma_heading",
1299
- "entryTitle": "rp_5cvtma_entryTitle"
1294
+ "page": "rp_5cvtma_page",
1295
+ "fieldMeta": "rp_5cvtma_fieldMeta",
1296
+ "text": "rp_5cvtma_text",
1297
+ "header": "rp_5cvtma_header",
1298
+ "about": "rp_5cvtma_about",
1299
+ "choice": "rp_5cvtma_choice"
1300
1300
  };
1301
1301
  // src/client/widgets/import-card/ImportCard.tsx
1302
1302
  const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
@@ -1804,17 +1804,17 @@ window.__ModuleLoader__.load({
1804
1804
  }
1805
1805
  tag$43.textContent = css$43;
1806
1806
  var Modal_module_css_default = {
1807
- "description": "rp_46MuuW_description",
1808
- "mask": "rp_46MuuW_mask",
1809
- "header": "rp_46MuuW_header",
1810
- "root": "rp_46MuuW_root",
1811
- "title": "rp_46MuuW_title",
1812
1807
  "body": "rp_46MuuW_body",
1813
- "rpModalEnter": "rp_46MuuW_rpModalEnter",
1808
+ "content": "rp_46MuuW_content",
1814
1809
  "dialog": "rp_46MuuW_dialog",
1810
+ "header": "rp_46MuuW_header",
1811
+ "title": "rp_46MuuW_title",
1812
+ "close": "rp_46MuuW_close",
1815
1813
  "footer": "rp_46MuuW_footer",
1816
- "content": "rp_46MuuW_content",
1817
- "close": "rp_46MuuW_close"
1814
+ "rpModalEnter": "rp_46MuuW_rpModalEnter",
1815
+ "root": "rp_46MuuW_root",
1816
+ "mask": "rp_46MuuW_mask",
1817
+ "description": "rp_46MuuW_description"
1818
1818
  };
1819
1819
  // src/client/ui/Modal.tsx
1820
1820
  const FOCUSABLE = "button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex=\"0\"]";
@@ -1951,38 +1951,38 @@ window.__ModuleLoader__.load({
1951
1951
  }
1952
1952
  tag$42.textContent = css$42;
1953
1953
  var CataloguePage_module_css_default = {
1954
- "detail": "rp_qK1u-G_detail",
1955
- "notice": "rp_qK1u-G_notice",
1956
- "changes": "rp_qK1u-G_changes",
1957
- "placeholder": "rp_qK1u-G_placeholder",
1954
+ "updates": "rp_qK1u-G_updates",
1955
+ "page": "rp_qK1u-G_page",
1956
+ "more": "rp_qK1u-G_more",
1957
+ "meta": "rp_qK1u-G_meta",
1958
+ "tags": "rp_qK1u-G_tags",
1959
+ "kind": "rp_qK1u-G_kind",
1960
+ "body": "rp_qK1u-G_body",
1961
+ "viewport": "rp_qK1u-G_viewport",
1962
+ "field": "rp_qK1u-G_field",
1963
+ "card": "rp_qK1u-G_card",
1964
+ "grid": "rp_qK1u-G_grid",
1965
+ "image": "rp_qK1u-G_image",
1966
+ "toolbar": "rp_qK1u-G_toolbar",
1958
1967
  "form": "rp_qK1u-G_form",
1968
+ "cover": "rp_qK1u-G_cover",
1969
+ "placeholder": "rp_qK1u-G_placeholder",
1970
+ "changes": "rp_qK1u-G_changes",
1971
+ "detail": "rp_qK1u-G_detail",
1959
1972
  "select": "rp_qK1u-G_select",
1960
1973
  "message": "rp_qK1u-G_message",
1961
- "toolbar": "rp_qK1u-G_toolbar",
1974
+ "notice": "rp_qK1u-G_notice",
1962
1975
  "description": "rp_qK1u-G_description",
1963
- "cover": "rp_qK1u-G_cover",
1964
- "label": "rp_qK1u-G_label",
1965
- "grid": "rp_qK1u-G_grid",
1966
- "kinds": "rp_qK1u-G_kinds",
1967
- "more": "rp_qK1u-G_more",
1968
- "actions": "rp_qK1u-G_actions",
1969
- "update": "rp_qK1u-G_update",
1976
+ "name": "rp_qK1u-G_name",
1977
+ "spacer": "rp_qK1u-G_spacer",
1970
1978
  "warning": "rp_qK1u-G_warning",
1971
- "meta": "rp_qK1u-G_meta",
1972
- "viewport": "rp_qK1u-G_viewport",
1973
- "body": "rp_qK1u-G_body",
1974
1979
  "search": "rp_qK1u-G_search",
1975
- "field": "rp_qK1u-G_field",
1976
- "image": "rp_qK1u-G_image",
1977
1980
  "status": "rp_qK1u-G_status",
1978
- "updates": "rp_qK1u-G_updates",
1979
- "page": "rp_qK1u-G_page",
1980
- "card": "rp_qK1u-G_card",
1981
- "kind": "rp_qK1u-G_kind",
1982
- "name": "rp_qK1u-G_name",
1983
- "success": "rp_qK1u-G_success",
1984
- "tags": "rp_qK1u-G_tags",
1985
- "spacer": "rp_qK1u-G_spacer"
1981
+ "update": "rp_qK1u-G_update",
1982
+ "kinds": "rp_qK1u-G_kinds",
1983
+ "label": "rp_qK1u-G_label",
1984
+ "actions": "rp_qK1u-G_actions",
1985
+ "success": "rp_qK1u-G_success"
1986
1986
  };
1987
1987
  // src/client/pages/catalogue/ImportUrlDialog.tsx
1988
1988
  /** Installs a world from the address of its archive, or opens the resource a page address of a configured catalogue names; an address on a configured catalogue's site is asked for with that catalogue's key. */
@@ -2186,19 +2186,19 @@ window.__ModuleLoader__.load({
2186
2186
  }
2187
2187
  tag$41.textContent = css$41;
2188
2188
  var ImportSelection_module_css_default = {
2189
- "meta": "rp_Jx0l4q_meta",
2190
- "sampling": "rp_Jx0l4q_sampling",
2191
- "note": "rp_Jx0l4q_note",
2192
- "error": "rp_Jx0l4q_error",
2193
2189
  "extra": "rp_Jx0l4q_extra",
2190
+ "row": "rp_Jx0l4q_row",
2194
2191
  "count": "rp_Jx0l4q_count",
2192
+ "list": "rp_Jx0l4q_list",
2193
+ "full": "rp_Jx0l4q_full",
2195
2194
  "text": "rp_Jx0l4q_text",
2196
- "help": "rp_Jx0l4q_help",
2197
2195
  "bar": "rp_Jx0l4q_bar",
2196
+ "note": "rp_Jx0l4q_note",
2197
+ "sampling": "rp_Jx0l4q_sampling",
2198
+ "error": "rp_Jx0l4q_error",
2198
2199
  "body": "rp_Jx0l4q_body",
2199
- "row": "rp_Jx0l4q_row",
2200
- "full": "rp_Jx0l4q_full",
2201
- "list": "rp_Jx0l4q_list"
2200
+ "help": "rp_Jx0l4q_help",
2201
+ "meta": "rp_Jx0l4q_meta"
2202
2202
  };
2203
2203
  // src/client/widgets/import-selection/ImportSelection.tsx
2204
2204
  const messageOf$14 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -3224,7 +3224,7 @@ window.__ModuleLoader__.load({
3224
3224
  return Object.fromEntries(Object.keys(dictionaries).map((locale) => [locale, Object.fromEntries(Object.entries(dictionaries[locale]).map(([key, value]) => [`${prefix}${key}`, value]))]));
3225
3225
  }
3226
3226
  // src/client/widgets/import-card/locales.ts
3227
- const dictionaries$26 = {
3227
+ const dictionaries$27 = {
3228
3228
  en: {
3229
3229
  ic_promptLanguage: "Language of the prompts",
3230
3230
  ic_promptLanguageHelp: "The language the import assistant works in and writes the world's prompts in. It starts as your interface language. English and Chinese have prompts of their own; any other language uses the English ones and asks the models to write in it.",
@@ -3254,7 +3254,7 @@ window.__ModuleLoader__.load({
3254
3254
  ic_fieldInstructions: "Instructions to the AI",
3255
3255
  ic_notCarried: "Only guidance on style and behaviour is imported (as the world's prose prompts); rules for running the chat are not.",
3256
3256
  ic_opening: "Opening",
3257
- ic_openingHelp: "The new world starts with one opening. Choose which of the card's greetings it is.",
3257
+ ic_openingHelp: "Every greeting of the card is imported. The one you choose becomes the world's opening; the others become alternate openings the player can pick when starting a story. Choose “No opening” to import none of them.",
3258
3258
  ic_openingFirst: "First message",
3259
3259
  ic_openingAlternate: "Alternate greeting {number}",
3260
3260
  ic_openingNone: "No opening",
@@ -3307,7 +3307,7 @@ window.__ModuleLoader__.load({
3307
3307
  ic_fieldInstructions: "给 AI 的指令",
3308
3308
  ic_notCarried: "只导入关于文风和角色表现的指导(作为世界的文笔提示);运行聊天的规则不会导入。",
3309
3309
  ic_opening: "开场白",
3310
- ic_openingHelp: "新世界只有一个开场白。请选择使用角色卡中的哪一条问候语。",
3310
+ ic_openingHelp: "角色卡的所有问候语都会导入。你选择的这一条成为世界的开场白,其余的成为备选开场,玩家开始故事时可以选用。选择“不要开场白”则一条都不导入。",
3311
3311
  ic_openingFirst: "第一条消息",
3312
3312
  ic_openingAlternate: "备选问候语 {number}",
3313
3313
  ic_openingNone: "不要开场白",
@@ -3360,7 +3360,7 @@ window.__ModuleLoader__.load({
3360
3360
  ic_fieldInstructions: "AI への指示",
3361
3361
  ic_notCarried: "文体と振る舞いの指針だけを、ワールドの文章プロンプトとして読み込みます。チャット運用のルールは読み込みません。",
3362
3362
  ic_opening: "オープニング",
3363
- ic_openingHelp: "新しいワールドにはオープニングが一つあります。カードのどの挨拶を使うか選んでください。",
3363
+ ic_openingHelp: "カードのすべての挨拶を読み込みます。選んだものがワールドのオープニングになり、ほかは代わりのオープニングとして、ストーリー開始時にプレイヤーが選べます。「オープニングなし」を選ぶと、どれも読み込みません。",
3364
3364
  ic_openingFirst: "最初のメッセージ",
3365
3365
  ic_openingAlternate: "別の挨拶 {number}",
3366
3366
  ic_openingNone: "オープニングなし",
@@ -3413,7 +3413,7 @@ window.__ModuleLoader__.load({
3413
3413
  ic_fieldInstructions: "Instrucciones para la IA",
3414
3414
  ic_notCarried: "Solo se importan las indicaciones de estilo y comportamiento, como prompts de prosa del mundo. No se importan reglas para gestionar el chat.",
3415
3415
  ic_opening: "Inicio",
3416
- ic_openingHelp: "El mundo nuevo comienza con un solo texto de apertura. Elige uno de los saludos de la tarjeta.",
3416
+ ic_openingHelp: "Se importan todos los saludos de la tarjeta. El que elijas será la apertura del mundo; los demás serán aperturas alternativas que el jugador puede elegir al empezar una historia. Elige «Sin apertura» para no importar ninguno.",
3417
3417
  ic_openingFirst: "Primer mensaje",
3418
3418
  ic_openingAlternate: "Saludo alternativo {number}",
3419
3419
  ic_openingNone: "Sin apertura",
@@ -3466,7 +3466,7 @@ window.__ModuleLoader__.load({
3466
3466
  ic_fieldInstructions: "Instructions à l’IA",
3467
3467
  ic_notCarried: "Seules les indications de style et de comportement sont importées, comme prompts de prose du monde. Les règles de gestion de la discussion ne le sont pas.",
3468
3468
  ic_opening: "Ouverture",
3469
- ic_openingHelp: "Le nouveau monde commence par une seule ouverture. Choisissez l’un des messages d’accueil de la carte.",
3469
+ ic_openingHelp: "Tous les messages d’accueil de la carte sont importés. Celui que vous choisissez devient l’ouverture du monde ; les autres deviennent des ouvertures alternatives que le joueur peut choisir au début d’une histoire. Choisissez « Aucune ouverture » pour n’en importer aucun.",
3470
3470
  ic_openingFirst: "Premier message",
3471
3471
  ic_openingAlternate: "Autre message d’accueil {number}",
3472
3472
  ic_openingNone: "Aucune ouverture",
@@ -3519,7 +3519,7 @@ window.__ModuleLoader__.load({
3519
3519
  ic_fieldInstructions: "Anweisungen an die KI",
3520
3520
  ic_notCarried: "Nur Hinweise zu Stil und Verhalten werden als Prosaprompts der Welt importiert. Regeln für den Betrieb des Chats werden nicht übernommen.",
3521
3521
  ic_opening: "Auftakt",
3522
- ic_openingHelp: "Die neue Welt beginnt mit einem Auftakt. Wähle eine Begrüßung der Karte aus.",
3522
+ ic_openingHelp: "Alle Begrüßungen der Karte werden importiert. Die gewählte wird zum Auftakt der Welt; die übrigen werden zu alternativen Einstiegen, die der Spieler beim Start einer Geschichte wählen kann. Wähle „Kein Auftakt“, um keine zu importieren.",
3523
3523
  ic_openingFirst: "Erste Nachricht",
3524
3524
  ic_openingAlternate: "Alternative Begrüßung {number}",
3525
3525
  ic_openingNone: "Kein Auftakt",
@@ -3572,7 +3572,7 @@ window.__ModuleLoader__.load({
3572
3572
  ic_fieldInstructions: "Инструкции для ИИ",
3573
3573
  ic_notCarried: "Импортируются только указания по стилю и поведению — как прозаические промпты мира. Правила ведения чата не переносятся.",
3574
3574
  ic_opening: "Вступление",
3575
- ic_openingHelp: "В новом мире будет одно вступление. Выберите одно из приветствий карточки.",
3575
+ ic_openingHelp: "Импортируются все приветствия карточки. Выбранное становится вступлением мира, остальные — альтернативными вступлениями, которые игрок может выбрать при начале истории. Выберите «Без вступления», чтобы не импортировать ни одно.",
3576
3576
  ic_openingFirst: "Первое сообщение",
3577
3577
  ic_openingAlternate: "Другое приветствие {number}",
3578
3578
  ic_openingNone: "Без вступления",
@@ -3625,7 +3625,7 @@ window.__ModuleLoader__.load({
3625
3625
  ic_fieldInstructions: "Instruções para a IA",
3626
3626
  ic_notCarried: "Só são importadas as orientações de estilo e comportamento, como prompts de prosa do mundo. As regras de funcionamento da conversa não são importadas.",
3627
3627
  ic_opening: "Abertura",
3628
- ic_openingHelp: "O novo mundo começa com uma só abertura. Escolha uma das saudações do cartão.",
3628
+ ic_openingHelp: "Todas as saudações do cartão são importadas. A que você escolher será a abertura do mundo; as outras viram aberturas alternativas que o jogador pode escolher ao iniciar uma história. Escolha «Sem abertura» para não importar nenhuma.",
3629
3629
  ic_openingFirst: "Primeira mensagem",
3630
3630
  ic_openingAlternate: "Saudação alternativa {number}",
3631
3631
  ic_openingNone: "Sem abertura",
@@ -3651,7 +3651,7 @@ window.__ModuleLoader__.load({
3651
3651
  }
3652
3652
  };
3653
3653
  // src/client/widgets/import-selection/locales.ts
3654
- const dictionaries$25 = {
3654
+ const dictionaries$26 = {
3655
3655
  en: {
3656
3656
  is_title_preset: "Choose what to import from {name}",
3657
3657
  is_title_lorebook: "Choose what to import from {name}",
@@ -3997,7 +3997,7 @@ window.__ModuleLoader__.load({
3997
3997
  is_failed: "Não foi possível importar: {message}"
3998
3998
  }
3999
3999
  };
4000
- const dictionaries$24 = withDictionaries(withDictionaries({
4000
+ const dictionaries$25 = withDictionaries(withDictionaries({
4001
4001
  en: {
4002
4002
  nav: "Catalogue",
4003
4003
  loading: "Loading worlds…",
@@ -4766,13 +4766,13 @@ window.__ModuleLoader__.load({
4766
4766
  convertNotStarted: "O mundo «{name}» foi criado, mas a conversão não começou: {failure}. Abra a conversa de criação e envie manualmente a mensagem de importação.",
4767
4767
  openChat: "Abrir a conversa"
4768
4768
  }
4769
- }, dictionaries$25), dictionaries$26);
4769
+ }, dictionaries$26), dictionaries$27);
4770
4770
  // src/client/pages/catalogue/index.ts
4771
4771
  const NAMESPACE$16 = "roleplay.catalogue";
4772
4772
  /** Adds the Catalogue page to the Role Play panel: worlds of the catalogues set up in the settings. */
4773
4773
  function registerCataloguePage(ctx) {
4774
4774
  const t = ctx.locale.bind(NAMESPACE$16);
4775
- ctx.effect(() => ctx.locale.register(NAMESPACE$16, dictionaries$24), "roleplay: catalogue dictionaries");
4775
+ ctx.effect(() => ctx.locale.register(NAMESPACE$16, dictionaries$25), "roleplay: catalogue dictionaries");
4776
4776
  const catalogue = new CatalogueController(createChatOpener(ctx));
4777
4777
  ctx.effect(() => () => {
4778
4778
  catalogue.dispose();
@@ -5315,46 +5315,46 @@ window.__ModuleLoader__.load({
5315
5315
  }
5316
5316
  tag$40.textContent = css$40;
5317
5317
  var CharactersPanel_module_css_default = {
5318
+ "meta": "rp_5ZMIxq_meta",
5319
+ "grid": "rp_5ZMIxq_grid",
5320
+ "empty": "rp_5ZMIxq_empty",
5321
+ "itemActions": "rp_5ZMIxq_itemActions",
5322
+ "nameInput": "rp_5ZMIxq_nameInput",
5323
+ "portraitBox": "rp_5ZMIxq_portraitBox",
5324
+ "placeholder": "rp_5ZMIxq_placeholder",
5325
+ "wide": "rp_5ZMIxq_wide",
5318
5326
  "portraitAction": "rp_5ZMIxq_portraitAction",
5319
- "select": "rp_5ZMIxq_select",
5320
- "area": "rp_5ZMIxq_area",
5321
- "sectionTitle": "rp_5ZMIxq_sectionTitle",
5322
- "questionTitle": "rp_5ZMIxq_questionTitle",
5323
- "field": "rp_5ZMIxq_field",
5324
- "tabOn": "rp_5ZMIxq_tabOn",
5325
- "tabs": "rp_5ZMIxq_tabs",
5326
5327
  "barText": "rp_5ZMIxq_barText",
5327
5328
  "row": "rp_5ZMIxq_row",
5328
- "panel": "rp_5ZMIxq_panel",
5329
- "placeholder": "rp_5ZMIxq_placeholder",
5330
- "nameInput": "rp_5ZMIxq_nameInput",
5331
- "itemActions": "rp_5ZMIxq_itemActions",
5332
- "empty": "rp_5ZMIxq_empty",
5333
- "optionFields": "rp_5ZMIxq_optionFields",
5334
- "missing": "rp_5ZMIxq_missing",
5335
- "questionActions": "rp_5ZMIxq_questionActions",
5336
5329
  "label": "rp_5ZMIxq_label",
5337
- "meta": "rp_5ZMIxq_meta",
5338
- "section": "rp_5ZMIxq_section",
5339
- "help": "rp_5ZMIxq_help",
5340
- "goal": "rp_5ZMIxq_goal",
5341
- "tab": "rp_5ZMIxq_tab",
5342
- "portraitHint": "rp_5ZMIxq_portraitHint",
5330
+ "error": "rp_5ZMIxq_error",
5343
5331
  "body": "rp_5ZMIxq_body",
5344
- "wide": "rp_5ZMIxq_wide",
5345
- "portraitError": "rp_5ZMIxq_portraitError",
5332
+ "area": "rp_5ZMIxq_area",
5333
+ "goal": "rp_5ZMIxq_goal",
5346
5334
  "portrait": "rp_5ZMIxq_portrait",
5347
- "question": "rp_5ZMIxq_question",
5348
- "optionTitle": "rp_5ZMIxq_optionTitle",
5349
- "grid": "rp_5ZMIxq_grid",
5350
- "error": "rp_5ZMIxq_error",
5351
- "portraitBox": "rp_5ZMIxq_portraitBox",
5335
+ "portraitHint": "rp_5ZMIxq_portraitHint",
5336
+ "sheet": "rp_5ZMIxq_sheet",
5337
+ "help": "rp_5ZMIxq_help",
5338
+ "head": "rp_5ZMIxq_head",
5339
+ "field": "rp_5ZMIxq_field",
5340
+ "tab": "rp_5ZMIxq_tab",
5352
5341
  "tabsSpace": "rp_5ZMIxq_tabsSpace",
5353
- "initial": "rp_5ZMIxq_initial",
5342
+ "question": "rp_5ZMIxq_question",
5343
+ "select": "rp_5ZMIxq_select",
5344
+ "section": "rp_5ZMIxq_section",
5345
+ "tabOn": "rp_5ZMIxq_tabOn",
5346
+ "sectionTitle": "rp_5ZMIxq_sectionTitle",
5354
5347
  "bar": "rp_5ZMIxq_bar",
5355
- "head": "rp_5ZMIxq_head",
5356
- "voiceInline": "rp_5ZMIxq_voiceInline",
5357
- "sheet": "rp_5ZMIxq_sheet"
5348
+ "missing": "rp_5ZMIxq_missing",
5349
+ "optionFields": "rp_5ZMIxq_optionFields",
5350
+ "panel": "rp_5ZMIxq_panel",
5351
+ "portraitError": "rp_5ZMIxq_portraitError",
5352
+ "questionTitle": "rp_5ZMIxq_questionTitle",
5353
+ "initial": "rp_5ZMIxq_initial",
5354
+ "tabs": "rp_5ZMIxq_tabs",
5355
+ "optionTitle": "rp_5ZMIxq_optionTitle",
5356
+ "questionActions": "rp_5ZMIxq_questionActions",
5357
+ "voiceInline": "rp_5ZMIxq_voiceInline"
5358
5358
  };
5359
5359
  // src/client/world-editor/EditorTabs.tsx
5360
5360
  /** Adds expected arrow, Home and End navigation to an existing editor tab strip. */
@@ -7073,39 +7073,39 @@ window.__ModuleLoader__.load({
7073
7073
  }
7074
7074
  tag$39.textContent = css$39;
7075
7075
  var RelationsPanel_module_css_default = {
7076
- "metrics": "rp_7pEHTW_metrics",
7077
- "notice": "rp_7pEHTW_notice",
7078
- "entities": "rp_7pEHTW_entities",
7079
- "space": "rp_7pEHTW_space",
7080
- "edgeKind": "rp_7pEHTW_edgeKind",
7081
- "filterOn": "rp_7pEHTW_filterOn",
7082
- "toolbar": "rp_7pEHTW_toolbar",
7083
- "graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
7084
- "node_character": "rp_7pEHTW_node_character",
7085
- "error": "rp_7pEHTW_error",
7086
- "workspace": "rp_7pEHTW_workspace",
7076
+ "node_item": "rp_7pEHTW_node_item",
7077
+ "edgeTitle": "rp_7pEHTW_edgeTitle",
7078
+ "head": "rp_7pEHTW_head",
7087
7079
  "wide": "rp_7pEHTW_wide",
7080
+ "workspace": "rp_7pEHTW_workspace",
7088
7081
  "graphInspector": "rp_7pEHTW_graphInspector",
7082
+ "graphEdge": "rp_7pEHTW_graphEdge",
7083
+ "graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
7084
+ "notice": "rp_7pEHTW_notice",
7085
+ "edgeOn": "rp_7pEHTW_edgeOn",
7086
+ "entities": "rp_7pEHTW_entities",
7087
+ "form": "rp_7pEHTW_form",
7089
7088
  "edge": "rp_7pEHTW_edge",
7090
- "graph": "rp_7pEHTW_graph",
7091
- "head": "rp_7pEHTW_head",
7092
7089
  "perspective": "rp_7pEHTW_perspective",
7093
- "node_faction": "rp_7pEHTW_node_faction",
7094
7090
  "list": "rp_7pEHTW_list",
7095
- "graphEdge": "rp_7pEHTW_graphEdge",
7096
- "edgeTitle": "rp_7pEHTW_edgeTitle",
7097
- "form": "rp_7pEHTW_form",
7098
- "check": "rp_7pEHTW_check",
7099
- "node_item": "rp_7pEHTW_node_item",
7091
+ "metrics": "rp_7pEHTW_metrics",
7100
7092
  "filter": "rp_7pEHTW_filter",
7101
- "status": "rp_7pEHTW_status",
7102
- "inspector": "rp_7pEHTW_inspector",
7103
- "panel": "rp_7pEHTW_panel",
7104
- "node_location": "rp_7pEHTW_node_location",
7093
+ "space": "rp_7pEHTW_space",
7094
+ "graph": "rp_7pEHTW_graph",
7105
7095
  "empty": "rp_7pEHTW_empty",
7096
+ "inspector": "rp_7pEHTW_inspector",
7097
+ "error": "rp_7pEHTW_error",
7106
7098
  "actions": "rp_7pEHTW_actions",
7107
- "edgeOn": "rp_7pEHTW_edgeOn",
7108
- "node": "rp_7pEHTW_node"
7099
+ "status": "rp_7pEHTW_status",
7100
+ "node_character": "rp_7pEHTW_node_character",
7101
+ "edgeKind": "rp_7pEHTW_edgeKind",
7102
+ "node_location": "rp_7pEHTW_node_location",
7103
+ "node": "rp_7pEHTW_node",
7104
+ "node_faction": "rp_7pEHTW_node_faction",
7105
+ "check": "rp_7pEHTW_check",
7106
+ "panel": "rp_7pEHTW_panel",
7107
+ "toolbar": "rp_7pEHTW_toolbar",
7108
+ "filterOn": "rp_7pEHTW_filterOn"
7109
7109
  };
7110
7110
  // src/client/world-editor/RelationsPanel.tsx
7111
7111
  const title = (relation) => `${relation.from.name} → ${relation.to.name}`;
@@ -8474,12 +8474,12 @@ window.__ModuleLoader__.load({
8474
8474
  }
8475
8475
  tag$38.textContent = css$38;
8476
8476
  var PackFrame_module_css_default = {
8477
- "hud": "rp_h_sbFq_hud",
8478
- "frame": "rp_h_sbFq_frame",
8479
- "problems": "rp_h_sbFq_problems",
8480
- "tab": "rp_h_sbFq_tab",
8477
+ "fill": "rp_h_sbFq_fill",
8481
8478
  "message": "rp_h_sbFq_message",
8482
- "fill": "rp_h_sbFq_fill"
8479
+ "tab": "rp_h_sbFq_tab",
8480
+ "problems": "rp_h_sbFq_problems",
8481
+ "frame": "rp_h_sbFq_frame",
8482
+ "hud": "rp_h_sbFq_hud"
8483
8483
  };
8484
8484
  // src/client/widgets/pack-frame/theme.ts
8485
8485
  /** The colours of DSH a surface is given, so that it looks right in light and dark. */
@@ -8710,17 +8710,18 @@ window.__ModuleLoader__.load({
8710
8710
  const saveVariables = async (world, variables, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/variables?${query(world)}`, init("PUT", signal, { variables })));
8711
8711
  const loadWorldPacks = async (world, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/interface?${query(world)}`, init("GET", signal)));
8712
8712
  const loadPackPreview = async (world, pack, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/interface/preview?${query(world)}&pack=${encodeURIComponent(pack)}`, init("GET", signal)));
8713
- /** The playable characters of an authored world, for choosing whom an opening is for. */
8714
- async function loadPlayable(worldId, signal) {
8713
+ /** The characters of an authored world, for choosing who speaks a line of an opening and whom an alternate opening is for. */
8714
+ async function loadCast(worldId, signal) {
8715
8715
  const response = await fetch(`${API_PREFIX}/worlds/characters?id=${encodeURIComponent(worldId)}`, {
8716
8716
  credentials: "same-origin",
8717
8717
  signal
8718
8718
  });
8719
8719
  if (!response.ok) throw new Error(`${response.status} ${response.statusText}`.trim());
8720
8720
  const { characters } = await response.json();
8721
- return characters.filter((character) => character.role === "playable").map(({ id, name }) => ({
8721
+ return characters.map(({ id, name, role }) => ({
8722
8722
  id,
8723
- name
8723
+ name,
8724
+ playable: role === "playable"
8724
8725
  }));
8725
8726
  }
8726
8727
  const packQuery = (world, pack, path) => `${query(world)}&pack=${encodeURIComponent(pack)}${path === void 0 ? "" : `&path=${encodeURIComponent(path)}`}`;
@@ -8740,13 +8741,13 @@ window.__ModuleLoader__.load({
8740
8741
  }
8741
8742
  tag$37.textContent = css$37;
8742
8743
  var PacksPanel_module_css_default = {
8743
- "note": "rp_FLaP7q_note",
8744
8744
  "group": "rp_FLaP7q_group",
8745
- "log": "rp_FLaP7q_log",
8746
8745
  "stage": "rp_FLaP7q_stage",
8747
- "controls": "rp_FLaP7q_controls",
8748
8746
  "stageTall": "rp_FLaP7q_stageTall",
8749
- "files": "rp_FLaP7q_files"
8747
+ "log": "rp_FLaP7q_log",
8748
+ "note": "rp_FLaP7q_note",
8749
+ "files": "rp_FLaP7q_files",
8750
+ "controls": "rp_FLaP7q_controls"
8750
8751
  };
8751
8752
  // src/client/world-editor/PacksPanel.tsx
8752
8753
  const WIDTHS = {
@@ -9638,6 +9639,187 @@ window.__ModuleLoader__.load({
9638
9639
  ]
9639
9640
  });
9640
9641
  }
9642
+ // src/shared/opening.ts
9643
+ /** Whether any part is spoken by a character: an opening with none is only narration, which a plain text says as well. */
9644
+ const hasSpeech = (parts) => parts.some((part) => part.type === "utterance");
9645
+ // src/client/world-editor/OpeningEditor.tsx
9646
+ const words$1 = (parts) => parts.map((part) => part.text).join("\n\n");
9647
+ /** An opening, as plain narration or as ordered parts of narration and spoken lines; the person chooses the form and nothing is converted behind their back. */
9648
+ function OpeningEditor({ t, value, characters, rows = 6, onChange }) {
9649
+ const parts = value.parts;
9650
+ if (parts === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9651
+ className: CharactersPanel_module_css_default.wide,
9652
+ children: [
9653
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
9654
+ className: CharactersPanel_module_css_default.area,
9655
+ rows,
9656
+ value: value.text,
9657
+ onChange: (event) => {
9658
+ onChange({ text: event.target.value });
9659
+ }
9660
+ }),
9661
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9662
+ className: CharactersPanel_module_css_default.help,
9663
+ children: t("op_plainHelp")
9664
+ }),
9665
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9666
+ variant: "ghost",
9667
+ size: "sm",
9668
+ onClick: () => {
9669
+ onChange({
9670
+ text: value.text,
9671
+ parts: value.text.trim() === "" ? [] : [{
9672
+ type: "narration",
9673
+ text: value.text.trim()
9674
+ }]
9675
+ });
9676
+ },
9677
+ children: t("op_toParts")
9678
+ })
9679
+ ]
9680
+ });
9681
+ const set = (next) => {
9682
+ onChange({
9683
+ text: words$1(next),
9684
+ parts: next
9685
+ });
9686
+ };
9687
+ const change = (at, part) => {
9688
+ set(parts.map((entry, index) => index === at ? part : entry));
9689
+ };
9690
+ const move = (at, by) => {
9691
+ const next = [...parts];
9692
+ const [taken] = next.splice(at, 1);
9693
+ next.splice(at + by, 0, taken);
9694
+ set(next);
9695
+ };
9696
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9697
+ className: CharactersPanel_module_css_default.wide,
9698
+ "data-testid": "roleplay-opening-parts",
9699
+ children: [
9700
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9701
+ className: CharactersPanel_module_css_default.help,
9702
+ children: t("op_partsHelp")
9703
+ }),
9704
+ parts.map((part, at) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9705
+ className: CharactersPanel_module_css_default.grid,
9706
+ children: [
9707
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9708
+ className: CharactersPanel_module_css_default.field,
9709
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9710
+ className: CharactersPanel_module_css_default.label,
9711
+ children: t("op_speaker")
9712
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
9713
+ className: CharactersPanel_module_css_default.select,
9714
+ value: part.type === "narration" ? "" : part.character,
9715
+ onChange: (event) => {
9716
+ change(at, event.target.value === "" ? {
9717
+ type: "narration",
9718
+ text: part.text
9719
+ } : {
9720
+ type: "utterance",
9721
+ character: event.target.value,
9722
+ text: part.text
9723
+ });
9724
+ },
9725
+ children: [
9726
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
9727
+ value: "",
9728
+ children: t("op_narration")
9729
+ }),
9730
+ characters.map((character) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
9731
+ value: character.id,
9732
+ children: character.name
9733
+ }, character.id)),
9734
+ part.type === "utterance" && !characters.some((character) => character.id === part.character) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
9735
+ value: part.character,
9736
+ children: part.character
9737
+ })
9738
+ ]
9739
+ })]
9740
+ }),
9741
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9742
+ className: `${CharactersPanel_module_css_default.field} ${CharactersPanel_module_css_default.wide}`,
9743
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9744
+ className: CharactersPanel_module_css_default.label,
9745
+ children: t("op_text")
9746
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
9747
+ className: CharactersPanel_module_css_default.area,
9748
+ rows: 3,
9749
+ value: part.text,
9750
+ onChange: (event) => {
9751
+ change(at, {
9752
+ ...part,
9753
+ text: event.target.value
9754
+ });
9755
+ }
9756
+ })]
9757
+ }),
9758
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9759
+ variant: "ghost",
9760
+ size: "sm",
9761
+ disabled: at === 0,
9762
+ onClick: () => {
9763
+ move(at, -1);
9764
+ },
9765
+ children: t("op_up")
9766
+ }),
9767
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9768
+ variant: "ghost",
9769
+ size: "sm",
9770
+ disabled: at === parts.length - 1,
9771
+ onClick: () => {
9772
+ move(at, 1);
9773
+ },
9774
+ children: t("op_down")
9775
+ }),
9776
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9777
+ variant: "ghost",
9778
+ size: "sm",
9779
+ onClick: () => {
9780
+ set(parts.filter((_, index) => index !== at));
9781
+ },
9782
+ children: t("op_remove")
9783
+ })
9784
+ ]
9785
+ }, at)),
9786
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9787
+ variant: "ghost",
9788
+ size: "sm",
9789
+ onClick: () => {
9790
+ set([...parts, {
9791
+ type: "narration",
9792
+ text: ""
9793
+ }]);
9794
+ },
9795
+ children: t("op_addNarration")
9796
+ }),
9797
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9798
+ variant: "ghost",
9799
+ size: "sm",
9800
+ disabled: characters.length === 0,
9801
+ onClick: () => {
9802
+ set([...parts, {
9803
+ type: "utterance",
9804
+ character: characters[0].id,
9805
+ text: ""
9806
+ }]);
9807
+ },
9808
+ children: t("op_addSpeech")
9809
+ }),
9810
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9811
+ variant: "ghost",
9812
+ size: "sm",
9813
+ disabled: hasSpeech(parts),
9814
+ title: hasSpeech(parts) ? t("op_toPlainBlocked") : void 0,
9815
+ onClick: () => {
9816
+ onChange({ text: words$1(parts) });
9817
+ },
9818
+ children: t("op_toPlain")
9819
+ })
9820
+ ]
9821
+ });
9822
+ }
9641
9823
  // src/client/lorebooks-api.ts
9642
9824
  async function reply$5(response) {
9643
9825
  if (!response.ok) {
@@ -9841,12 +10023,12 @@ window.__ModuleLoader__.load({
9841
10023
  }
9842
10024
  tag$36.textContent = css$36;
9843
10025
  var SamplingFields_module_css_default = {
9844
- "label": "rp_9vxYSG_label",
9845
10026
  "root": "rp_9vxYSG_root",
10027
+ "label": "rp_9vxYSG_label",
9846
10028
  "field": "rp_9vxYSG_field",
10029
+ "grid": "rp_9vxYSG_grid",
9847
10030
  "input": "rp_9vxYSG_input",
9848
- "help": "rp_9vxYSG_help",
9849
- "grid": "rp_9vxYSG_grid"
10031
+ "help": "rp_9vxYSG_help"
9850
10032
  };
9851
10033
  // src/client/widgets/sampling-fields/SamplingFields.tsx
9852
10034
  const samplingTexts = (sampling) => Object.fromEntries(SAMPLING_KEYS.map((key) => [key, sampling[key]?.toString() ?? ""]));
@@ -10235,6 +10417,7 @@ window.__ModuleLoader__.load({
10235
10417
  tags: info.tags.join(", "),
10236
10418
  rules: info.rules.join("\n"),
10237
10419
  opening: info.opening,
10420
+ ...info.openingParts === void 0 ? {} : { openingParts: info.openingParts },
10238
10421
  authorName: info.authorName,
10239
10422
  authorUrl: info.authorUrl,
10240
10423
  timeZone: info.timeZone,
@@ -10256,7 +10439,6 @@ window.__ModuleLoader__.load({
10256
10439
  for (const key of [
10257
10440
  "name",
10258
10441
  "description",
10259
- "opening",
10260
10442
  "authorName",
10261
10443
  "authorUrl",
10262
10444
  "timeZone",
@@ -10265,6 +10447,9 @@ window.__ModuleLoader__.load({
10265
10447
  "language",
10266
10448
  "preset"
10267
10449
  ]) if (draft[key].trim() !== saved[key].trim()) edit[key] = draft[key];
10450
+ if (draft.openingParts !== void 0) {
10451
+ if (JSON.stringify(draft.openingParts) !== JSON.stringify(saved.openingParts)) edit["openingParts"] = draft.openingParts;
10452
+ } else if (saved.openingParts !== void 0 || draft.opening.trim() !== saved.opening.trim()) edit["opening"] = draft.opening;
10268
10453
  if (draft.autonomy !== saved.autonomy) edit["autonomy"] = draft.autonomy;
10269
10454
  if (JSON.stringify(draft.lorebooks) !== JSON.stringify(saved.lorebooks)) edit["lorebooks"] = draft.lorebooks;
10270
10455
  if (JSON.stringify(samplingOfTexts(draft.sampling)) !== JSON.stringify(samplingOfTexts(saved.sampling))) edit["sampling"] = samplingOfTexts(draft.sampling);
@@ -10272,9 +10457,9 @@ window.__ModuleLoader__.load({
10272
10457
  if (JSON.stringify(lines(draft.rules)) !== JSON.stringify(lines(saved.rules))) edit["rules"] = lines(draft.rules);
10273
10458
  const cleaned = (list) => list.map((entry) => ({
10274
10459
  title: entry.title.trim(),
10275
- text: entry.text.trim(),
10460
+ ...entry.parts === void 0 ? { text: entry.text.trim() } : { parts: entry.parts },
10276
10461
  ...(entry.character ?? "") === "" ? {} : { character: entry.character }
10277
- })).filter((entry) => entry.text !== "");
10462
+ })).filter((entry) => "text" in entry ? entry.text !== "" : entry.parts.some((part) => part.text.trim() !== ""));
10278
10463
  if (JSON.stringify(cleaned(draft.alternates)) !== JSON.stringify(cleaned(saved.alternates))) edit["alternateOpenings"] = cleaned(draft.alternates);
10279
10464
  if (JSON.stringify(questionsOfDraft(draft.questions)) !== JSON.stringify(questionsOfDraft(saved.questions))) edit["startQuestions"] = questionsOfDraft(draft.questions);
10280
10465
  return edit;
@@ -10286,6 +10471,7 @@ window.__ModuleLoader__.load({
10286
10471
  const [draft, setDraft] = (0, react.useState)();
10287
10472
  const [status, setStatus] = (0, react.useState)({ state: "idle" });
10288
10473
  const [playable, setPlayable] = (0, react.useState)([]);
10474
+ const [cast, setCast] = (0, react.useState)([]);
10289
10475
  const [presets, setPresets] = (0, react.useState)([]);
10290
10476
  const [books, setBooks] = (0, react.useState)([]);
10291
10477
  (0, react.useEffect)(() => {
@@ -10298,7 +10484,16 @@ window.__ModuleLoader__.load({
10298
10484
  }, []);
10299
10485
  (0, react.useEffect)(() => {
10300
10486
  const abort = new AbortController();
10301
- loadPlayable(worldId, abort.signal).then(setPlayable, () => void 0);
10487
+ loadCast(worldId, abort.signal).then((people) => {
10488
+ setCast(people.map(({ id, name }) => ({
10489
+ id,
10490
+ name
10491
+ })));
10492
+ setPlayable(people.filter((person) => person.playable).map(({ id, name }) => ({
10493
+ id,
10494
+ name
10495
+ })));
10496
+ }, () => void 0);
10302
10497
  return () => {
10303
10498
  abort.abort();
10304
10499
  };
@@ -10440,9 +10635,36 @@ window.__ModuleLoader__.load({
10440
10635
  field("tags", "infoTags", "infoTagsHelp"),
10441
10636
  field("description", "description", void 0, { rows: 5 }),
10442
10637
  field("rules", "infoRules", "infoRulesHelp", { rows: 5 }),
10443
- field("opening", "infoOpening", info.openingParts ? "infoOpeningParts" : "infoOpeningHelp", {
10444
- rows: 8,
10445
- disabled: info.openingParts
10638
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10639
+ className: `${CharactersPanel_module_css_default.field} ${CharactersPanel_module_css_default.wide}`,
10640
+ children: [
10641
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10642
+ className: CharactersPanel_module_css_default.label,
10643
+ children: t("infoOpening")
10644
+ }),
10645
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OpeningEditor, {
10646
+ t,
10647
+ characters: cast,
10648
+ rows: 8,
10649
+ value: {
10650
+ text: draft.opening,
10651
+ ...draft.openingParts === void 0 ? {} : { parts: draft.openingParts }
10652
+ },
10653
+ onChange: (value) => {
10654
+ const { openingParts: _dropped, ...rest } = draft;
10655
+ setDraft({
10656
+ ...rest,
10657
+ opening: value.text,
10658
+ ...value.parts === void 0 ? {} : { openingParts: value.parts }
10659
+ });
10660
+ setStatus({ state: "idle" });
10661
+ }
10662
+ }),
10663
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10664
+ className: CharactersPanel_module_css_default.help,
10665
+ children: t("infoOpeningHelp")
10666
+ })
10667
+ ]
10446
10668
  })
10447
10669
  ]
10448
10670
  })
@@ -10478,19 +10700,25 @@ window.__ModuleLoader__.load({
10478
10700
  }
10479
10701
  })]
10480
10702
  }),
10481
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
10703
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10482
10704
  className: `${CharactersPanel_module_css_default.field} ${CharactersPanel_module_css_default.wide}`,
10483
10705
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10484
10706
  className: CharactersPanel_module_css_default.label,
10485
10707
  children: t("infoAlternateText")
10486
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
10487
- className: CharactersPanel_module_css_default.area,
10708
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OpeningEditor, {
10709
+ t,
10710
+ characters: cast,
10488
10711
  rows: 5,
10489
- value: entry.text,
10490
- onChange: (event) => {
10712
+ value: {
10713
+ text: entry.text,
10714
+ ...entry.parts === void 0 ? {} : { parts: entry.parts }
10715
+ },
10716
+ onChange: (value) => {
10491
10717
  setAlternates(draft.alternates.map((item, at) => at === index ? {
10492
- ...item,
10493
- text: event.target.value
10718
+ title: item.title,
10719
+ text: value.text,
10720
+ ...value.parts === void 0 ? {} : { parts: value.parts },
10721
+ ...item.character === void 0 ? {} : { character: item.character }
10494
10722
  } : item));
10495
10723
  }
10496
10724
  })]
@@ -11652,16 +11880,16 @@ window.__ModuleLoader__.load({
11652
11880
  }
11653
11881
  tag$35.textContent = css$35;
11654
11882
  var ToolSwitches_module_css_default = {
11883
+ "help": "rp_CjoFLq_help",
11655
11884
  "agent": "rp_CjoFLq_agent",
11656
- "root": "rp_CjoFLq_root",
11657
11885
  "toolText": "rp_CjoFLq_toolText",
11658
- "title": "rp_CjoFLq_title",
11659
11886
  "error": "rp_CjoFLq_error",
11660
- "hint": "rp_CjoFLq_hint",
11887
+ "root": "rp_CjoFLq_root",
11888
+ "title": "rp_CjoFLq_title",
11889
+ "agentName": "rp_CjoFLq_agentName",
11661
11890
  "default": "rp_CjoFLq_default",
11662
11891
  "tool": "rp_CjoFLq_tool",
11663
- "agentName": "rp_CjoFLq_agentName",
11664
- "help": "rp_CjoFLq_help",
11892
+ "hint": "rp_CjoFLq_hint",
11665
11893
  "external": "rp_CjoFLq_external"
11666
11894
  };
11667
11895
  // src/client/widgets/tool-switches/ToolSwitches.tsx
@@ -12751,8 +12979,8 @@ window.__ModuleLoader__.load({
12751
12979
  }
12752
12980
  tag$34.textContent = css$34;
12753
12981
  var ImageLightbox_module_css_default = {
12754
- "image": "rp_O6oWuW_image",
12755
12982
  "root": "rp_O6oWuW_root",
12983
+ "image": "rp_O6oWuW_image",
12756
12984
  "close": "rp_O6oWuW_close"
12757
12985
  };
12758
12986
  // src/client/ui/ImageLightbox.tsx
@@ -12934,35 +13162,35 @@ window.__ModuleLoader__.load({
12934
13162
  }
12935
13163
  tag$33.textContent = css$33;
12936
13164
  var GalleryView_module_css_default = {
12937
- "message": "rp_9pSHmG_message",
12938
- "editLabel": "rp_9pSHmG_editLabel",
12939
- "error": "rp_9pSHmG_error",
12940
- "count": "rp_9pSHmG_count",
12941
- "statusError": "rp_9pSHmG_statusError",
12942
- "open": "rp_9pSHmG_open",
12943
- "editArea": "rp_9pSHmG_editArea",
12944
- "caption": "rp_9pSHmG_caption",
12945
- "toolbar": "rp_9pSHmG_toolbar",
12946
- "thumb": "rp_9pSHmG_thumb",
12947
- "facts": "rp_9pSHmG_facts",
12948
- "pre": "rp_9pSHmG_pre",
12949
- "tags": "rp_9pSHmG_tags",
13165
+ "page": "rp_9pSHmG_page",
13166
+ "cell": "rp_9pSHmG_cell",
13167
+ "grid": "rp_9pSHmG_grid",
13168
+ "detail": "rp_9pSHmG_detail",
12950
13169
  "note": "rp_9pSHmG_note",
13170
+ "editField": "rp_9pSHmG_editField",
12951
13171
  "reusable": "rp_9pSHmG_reusable",
12952
- "editButton": "rp_9pSHmG_editButton",
12953
- "edit": "rp_9pSHmG_edit",
12954
- "grid": "rp_9pSHmG_grid",
12955
13172
  "image": "rp_9pSHmG_image",
13173
+ "open": "rp_9pSHmG_open",
12956
13174
  "editHelp": "rp_9pSHmG_editHelp",
12957
- "editField": "rp_9pSHmG_editField",
12958
- "cell": "rp_9pSHmG_cell",
12959
- "detail": "rp_9pSHmG_detail",
12960
- "page": "rp_9pSHmG_page",
12961
- "large": "rp_9pSHmG_large",
13175
+ "pre": "rp_9pSHmG_pre",
13176
+ "thumb": "rp_9pSHmG_thumb",
13177
+ "count": "rp_9pSHmG_count",
13178
+ "toolbar": "rp_9pSHmG_toolbar",
13179
+ "statusError": "rp_9pSHmG_statusError",
13180
+ "editButton": "rp_9pSHmG_editButton",
13181
+ "editInput": "rp_9pSHmG_editInput",
12962
13182
  "actions": "rp_9pSHmG_actions",
12963
13183
  "select": "rp_9pSHmG_select",
12964
- "editInput": "rp_9pSHmG_editInput",
12965
- "status": "rp_9pSHmG_status"
13184
+ "status": "rp_9pSHmG_status",
13185
+ "editArea": "rp_9pSHmG_editArea",
13186
+ "error": "rp_9pSHmG_error",
13187
+ "caption": "rp_9pSHmG_caption",
13188
+ "message": "rp_9pSHmG_message",
13189
+ "tags": "rp_9pSHmG_tags",
13190
+ "editLabel": "rp_9pSHmG_editLabel",
13191
+ "large": "rp_9pSHmG_large",
13192
+ "facts": "rp_9pSHmG_facts",
13193
+ "edit": "rp_9pSHmG_edit"
12966
13194
  };
12967
13195
  // src/client/widgets/gallery-view/GalleryView.tsx
12968
13196
  /** How often the list is read again while pictures are waiting to be described. */
@@ -13305,12 +13533,12 @@ window.__ModuleLoader__.load({
13305
13533
  }
13306
13534
  tag$32.textContent = css$32;
13307
13535
  var WorldEditor_module_css_default = {
13536
+ "drawer": "rp__swA3a_drawer",
13308
13537
  "drawerItemOn": "rp__swA3a_drawerItemOn",
13309
- "view": "rp__swA3a_view",
13310
- "content": "rp__swA3a_content",
13311
13538
  "warning": "rp__swA3a_warning",
13312
- "drawer": "rp__swA3a_drawer",
13313
13539
  "drawerItem": "rp__swA3a_drawerItem",
13540
+ "view": "rp__swA3a_view",
13541
+ "content": "rp__swA3a_content",
13314
13542
  "message": "rp__swA3a_message"
13315
13543
  };
13316
13544
  // src/client/world-editor/WorldEditor.tsx
@@ -13722,27 +13950,27 @@ window.__ModuleLoader__.load({
13722
13950
  }
13723
13951
  tag$31.textContent = css$31;
13724
13952
  var AvatarsPage_module_css_default = {
13725
- "editHeader": "rp_pQOzEG_editHeader",
13726
- "text": "rp_pQOzEG_text",
13727
- "actions": "rp_pQOzEG_actions",
13728
- "viewport": "rp_pQOzEG_viewport",
13729
- "page": "rp_pQOzEG_page",
13730
- "summary": "rp_pQOzEG_summary",
13953
+ "card": "rp_pQOzEG_card",
13954
+ "toolbar": "rp_pQOzEG_toolbar",
13731
13955
  "portrait": "rp_pQOzEG_portrait",
13956
+ "page": "rp_pQOzEG_page",
13957
+ "viewport": "rp_pQOzEG_viewport",
13732
13958
  "placeholder": "rp_pQOzEG_placeholder",
13733
- "error": "rp_pQOzEG_error",
13959
+ "actions": "rp_pQOzEG_actions",
13960
+ "summary": "rp_pQOzEG_summary",
13961
+ "editHeader": "rp_pQOzEG_editHeader",
13962
+ "grid": "rp_pQOzEG_grid",
13734
13963
  "editTitle": "rp_pQOzEG_editTitle",
13735
13964
  "editBody": "rp_pQOzEG_editBody",
13736
- "message": "rp_pQOzEG_message",
13965
+ "error": "rp_pQOzEG_error",
13737
13966
  "form": "rp_pQOzEG_form",
13738
- "grid": "rp_pQOzEG_grid",
13739
13967
  "label": "rp_pQOzEG_label",
13740
- "card": "rp_pQOzEG_card",
13741
- "count": "rp_pQOzEG_count",
13742
- "toolbar": "rp_pQOzEG_toolbar",
13743
- "name": "rp_pQOzEG_name",
13968
+ "open": "rp_pQOzEG_open",
13744
13969
  "field": "rp_pQOzEG_field",
13745
- "open": "rp_pQOzEG_open"
13970
+ "name": "rp_pQOzEG_name",
13971
+ "text": "rp_pQOzEG_text",
13972
+ "count": "rp_pQOzEG_count",
13973
+ "message": "rp_pQOzEG_message"
13746
13974
  };
13747
13975
  // src/client/pages/avatars/AvatarsPage.tsx
13748
13976
  const hueOf$2 = (name) => Array.from(name).reduce((hash, char) => (hash * 31 + char.charCodeAt(0)) % 360, 0);
@@ -14010,7 +14238,7 @@ window.__ModuleLoader__.load({
14010
14238
  });
14011
14239
  }
14012
14240
  // src/client/widgets/sampling-fields/locales.ts
14013
- const dictionaries$23 = {
14241
+ const dictionaries$24 = {
14014
14242
  en: {
14015
14243
  sf_master: "Narrator temperature (0 to 2)",
14016
14244
  sf_characters: "Characters temperature (0 to 2)",
@@ -14101,7 +14329,7 @@ window.__ModuleLoader__.load({
14101
14329
  }
14102
14330
  };
14103
14331
  // src/client/widgets/tool-switches/locales.ts
14104
- const dictionaries$22 = {
14332
+ const dictionaries$23 = {
14105
14333
  en: {
14106
14334
  sw_title: "Tools",
14107
14335
  sw_help: "Which optional tools each kind of agent may use. A choice applies to every agent of that kind, not to one character. Tools this version does not know are left as they are and not shown.",
@@ -14408,7 +14636,7 @@ window.__ModuleLoader__.load({
14408
14636
  }
14409
14637
  };
14410
14638
  // src/client/widgets/gallery-view/locales.ts
14411
- const dictionaries$21 = {
14639
+ const dictionaries$22 = {
14412
14640
  en: {
14413
14641
  tab: "Gallery",
14414
14642
  notRoleplay: "This chat is not a roleplay session, so it has no gallery.",
@@ -14731,7 +14959,7 @@ window.__ModuleLoader__.load({
14731
14959
  }
14732
14960
  };
14733
14961
  // src/client/world-editor/dice-locales.ts
14734
- const dictionaries$20 = {
14962
+ const dictionaries$21 = {
14735
14963
  en: {
14736
14964
  help: "How uncertain attempts are settled. The game master rolls one of these checks and is told which band the roll fell in, so no number is ever made up. Each check says when it is used, the dice it rolls and what each result means; the bands together should cover every value the dice can give.",
14737
14965
  none: "This world has no checks. Its game master can still roll plain dice for things that have none.",
@@ -15022,7 +15250,7 @@ window.__ModuleLoader__.load({
15022
15250
  }
15023
15251
  };
15024
15252
  // src/client/world-editor/packs-locales.ts
15025
- const dictionaries$19 = {
15253
+ const dictionaries$20 = {
15026
15254
  en: {
15027
15255
  newPack: "New pack",
15028
15256
  newPackId: "Pack name (letters, digits, - and _)",
@@ -15456,6 +15684,145 @@ window.__ModuleLoader__.load({
15456
15684
  noSurfaces: "O pacote não tem superfícies para pré-visualizar."
15457
15685
  }
15458
15686
  };
15687
+ // src/client/world-editor/opening-locales.ts
15688
+ const dictionaries$19 = {
15689
+ en: {
15690
+ plainHelp: "Plain text is narration only. Split it into parts to give lines to characters.",
15691
+ partsHelp: "Parts are read in order: narration, and lines a character speaks.",
15692
+ toParts: "Split into parts",
15693
+ toPlain: "Make plain text",
15694
+ toPlainBlocked: "Remove the lines spoken by characters first",
15695
+ addNarration: "Add narration",
15696
+ addSpeech: "Add a spoken line",
15697
+ remove: "Remove",
15698
+ up: "Move up",
15699
+ down: "Move down",
15700
+ narration: "Narration",
15701
+ speech: "Spoken line",
15702
+ speaker: "Who speaks",
15703
+ noSpeaker: "Choose a character",
15704
+ text: "Text"
15705
+ },
15706
+ zh: {
15707
+ plainHelp: "纯文本只是叙述。拆分成多个部分后,才能给角色安排台词。",
15708
+ partsHelp: "各部分按顺序阅读:叙述,以及角色说的话。",
15709
+ toParts: "拆分成多个部分",
15710
+ toPlain: "改为纯文本",
15711
+ toPlainBlocked: "请先移除角色的台词",
15712
+ addNarration: "添加叙述",
15713
+ addSpeech: "添加台词",
15714
+ remove: "移除",
15715
+ up: "上移",
15716
+ down: "下移",
15717
+ narration: "叙述",
15718
+ speech: "台词",
15719
+ speaker: "说话者",
15720
+ noSpeaker: "选择角色",
15721
+ text: "内容"
15722
+ },
15723
+ ja: {
15724
+ plainHelp: "プレーンテキストはナレーションのみです。キャラクターのセリフを入れるにはパートに分けます。",
15725
+ partsHelp: "パートは順に読まれます:ナレーションと、キャラクターのセリフ。",
15726
+ toParts: "パートに分ける",
15727
+ toPlain: "プレーンテキストにする",
15728
+ toPlainBlocked: "先にキャラクターのセリフを削除してください",
15729
+ addNarration: "ナレーションを追加",
15730
+ addSpeech: "セリフを追加",
15731
+ remove: "削除",
15732
+ up: "上へ",
15733
+ down: "下へ",
15734
+ narration: "ナレーション",
15735
+ speech: "セリフ",
15736
+ speaker: "話し手",
15737
+ noSpeaker: "キャラクターを選択",
15738
+ text: "本文"
15739
+ },
15740
+ es: {
15741
+ plainHelp: "El texto sin formato es solo narración. Divídelo en partes para dar líneas a los personajes.",
15742
+ partsHelp: "Las partes se leen en orden: narración y líneas que dice un personaje.",
15743
+ toParts: "Dividir en partes",
15744
+ toPlain: "Convertir en texto sin formato",
15745
+ toPlainBlocked: "Quita primero las líneas dichas por personajes",
15746
+ addNarration: "Añadir narración",
15747
+ addSpeech: "Añadir una línea hablada",
15748
+ remove: "Quitar",
15749
+ up: "Subir",
15750
+ down: "Bajar",
15751
+ narration: "Narración",
15752
+ speech: "Línea hablada",
15753
+ speaker: "Quién habla",
15754
+ noSpeaker: "Elige un personaje",
15755
+ text: "Texto"
15756
+ },
15757
+ fr: {
15758
+ plainHelp: "Le texte simple n’est que de la narration. Découpez-le en parties pour donner des répliques aux personnages.",
15759
+ partsHelp: "Les parties se lisent dans l’ordre : narration et répliques d’un personnage.",
15760
+ toParts: "Découper en parties",
15761
+ toPlain: "Convertir en texte simple",
15762
+ toPlainBlocked: "Retirez d’abord les répliques des personnages",
15763
+ addNarration: "Ajouter de la narration",
15764
+ addSpeech: "Ajouter une réplique",
15765
+ remove: "Retirer",
15766
+ up: "Monter",
15767
+ down: "Descendre",
15768
+ narration: "Narration",
15769
+ speech: "Réplique",
15770
+ speaker: "Qui parle",
15771
+ noSpeaker: "Choisir un personnage",
15772
+ text: "Texte"
15773
+ },
15774
+ de: {
15775
+ plainHelp: "Reiner Text ist nur Erzählung. Teile ihn in Abschnitte, um Figuren Zeilen zu geben.",
15776
+ partsHelp: "Abschnitte werden der Reihe nach gelesen: Erzählung und Zeilen, die eine Figur spricht.",
15777
+ toParts: "In Abschnitte teilen",
15778
+ toPlain: "In reinen Text umwandeln",
15779
+ toPlainBlocked: "Entferne zuerst die gesprochenen Zeilen der Figuren",
15780
+ addNarration: "Erzählung hinzufügen",
15781
+ addSpeech: "Gesprochene Zeile hinzufügen",
15782
+ remove: "Entfernen",
15783
+ up: "Nach oben",
15784
+ down: "Nach unten",
15785
+ narration: "Erzählung",
15786
+ speech: "Gesprochene Zeile",
15787
+ speaker: "Wer spricht",
15788
+ noSpeaker: "Figur wählen",
15789
+ text: "Text"
15790
+ },
15791
+ ru: {
15792
+ plainHelp: "Простой текст — это только повествование. Разбейте его на части, чтобы дать персонажам реплики.",
15793
+ partsHelp: "Части читаются по порядку: повествование и реплики персонажей.",
15794
+ toParts: "Разбить на части",
15795
+ toPlain: "Сделать простым текстом",
15796
+ toPlainBlocked: "Сначала удалите реплики персонажей",
15797
+ addNarration: "Добавить повествование",
15798
+ addSpeech: "Добавить реплику",
15799
+ remove: "Удалить",
15800
+ up: "Вверх",
15801
+ down: "Вниз",
15802
+ narration: "Повествование",
15803
+ speech: "Реплика",
15804
+ speaker: "Кто говорит",
15805
+ noSpeaker: "Выберите персонажа",
15806
+ text: "Текст"
15807
+ },
15808
+ pt: {
15809
+ plainHelp: "Texto simples é só narração. Divida em partes para dar falas aos personagens.",
15810
+ partsHelp: "As partes são lidas em ordem: narração e falas de um personagem.",
15811
+ toParts: "Dividir em partes",
15812
+ toPlain: "Converter em texto simples",
15813
+ toPlainBlocked: "Remova primeiro as falas dos personagens",
15814
+ addNarration: "Adicionar narração",
15815
+ addSpeech: "Adicionar uma fala",
15816
+ remove: "Remover",
15817
+ up: "Subir",
15818
+ down: "Descer",
15819
+ narration: "Narração",
15820
+ speech: "Fala",
15821
+ speaker: "Quem fala",
15822
+ noSpeaker: "Escolha um personagem",
15823
+ text: "Texto"
15824
+ }
15825
+ };
15459
15826
  // src/client/world-editor/questions-locales.ts
15460
15827
  const dictionaries$18 = {
15461
15828
  en: {
@@ -16147,7 +16514,6 @@ window.__ModuleLoader__.load({
16147
16514
  infoRulesHelp: "One short rule per line, for example \"There is no magic\". The game master checks what the player does against them.",
16148
16515
  infoOpening: "Opening message",
16149
16516
  infoOpeningHelp: "What the story begins with, before the player says anything. Leave empty for none.",
16150
- infoOpeningParts: "This opening has lines spoken by characters, so it cannot be edited here as plain text. Change it in the file, or ask the authoring assistant.",
16151
16517
  sectionDice: "Dice",
16152
16518
  sectionCommands: "Commands",
16153
16519
  commandsHelp: "Words the player may type after a slash to do something this world has set up for it. A command raises a flag that the world's triggers can wait on (the condition is the variable command_<word>), and the game master is told what the player meant by it. The words /ooc, /ask, /roll, /wait and /dream belong to the game itself.",
@@ -16226,7 +16592,7 @@ window.__ModuleLoader__.load({
16226
16592
  infoAlternateFor: "For",
16227
16593
  infoAlternateAny: "Any character",
16228
16594
  infoAlternates: "Other openings",
16229
- infoAlternatesHelp: "Other ways the story can begin. The player picks one when starting a session; each is one narration, shown instead of the opening message.",
16595
+ infoAlternatesHelp: "Other ways the story can begin. The player picks one when starting a session; each is shown instead of the opening message, as plain narration or as parts.",
16230
16596
  infoAlternateTitle: "Title",
16231
16597
  infoAlternateText: "Narration",
16232
16598
  infoAlternateAdd: "Add an opening",
@@ -16459,7 +16825,6 @@ window.__ModuleLoader__.load({
16459
16825
  infoRulesHelp: "每行一条简短规则,例如“这里没有魔法”。主持人会据此检查玩家的行动。",
16460
16826
  infoOpening: "开场白",
16461
16827
  infoOpeningHelp: "玩家开口之前故事的开头。留空表示没有。",
16462
- infoOpeningParts: "这段开场白含有角色说的话,因此不能在这里按纯文本编辑。请在文件中修改,或请创作助手处理。",
16463
16828
  sectionDice: "骰子",
16464
16829
  sectionCommands: "指令",
16465
16830
  commandsHelp: "玩家可以在斜杠后输入的词,用来做这个世界为它准备好的事。指令会举起一个标志,世界的触发器可以等待它(条件是变量 command_<词>),主持人也会被告知玩家的意图。/ooc、/ask、/roll、/wait 和 /dream 属于游戏本身。",
@@ -16538,7 +16903,7 @@ window.__ModuleLoader__.load({
16538
16903
  infoAlternateFor: "适用于",
16539
16904
  infoAlternateAny: "任何角色",
16540
16905
  infoAlternates: "其他开场",
16541
- infoAlternatesHelp: "故事的其他开始方式。玩家开始会话时选择其一;每个都是一段叙述,会代替开场白显示。",
16906
+ infoAlternatesHelp: "故事的其他开始方式。玩家开始会话时选择其一;每个都会代替开场白显示,可以是纯叙述,也可以由多个部分组成。",
16542
16907
  infoAlternateTitle: "标题",
16543
16908
  infoAlternateText: "叙述",
16544
16909
  infoAlternateAdd: "添加开场",
@@ -16761,7 +17126,7 @@ window.__ModuleLoader__.load({
16761
17126
  relationCreate: "创建"
16762
17127
  }
16763
17128
  };
16764
- const dictionaries$16 = withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries({
17129
+ const dictionaries$16 = withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries({
16765
17130
  ...base$2,
16766
17131
  ja: {
16767
17132
  ...base$2.en,
@@ -17039,7 +17404,6 @@ window.__ModuleLoader__.load({
17039
17404
  infoTagsHelp: "カンマで区切ります。プレイするワールドを選ぶ手がかりになります。",
17040
17405
  infoRulesHelp: "1行に短いルールを1つ入力します(例:「魔法は存在しない」)。ゲームマスターはプレイヤーの行動をこのルールと照らし合わせます。",
17041
17406
  infoOpeningHelp: "プレイヤーが何かを言う前に表示される、物語の冒頭です。不要なら空欄にします。",
17042
- infoOpeningParts: "この冒頭にはキャラクターの台詞が含まれるため、ここではプレーンテキストとして編集できません。ファイルを編集するか、作成アシスタントに依頼してください。",
17043
17407
  commandsHelp: "プレイヤーがスラッシュに続けて入力できる、このワールド独自のコマンドです。コマンドはトリガーが待機できるフラグ(変数 command_<word>)を立て、その意図をゲームマスターに伝えます。/ooc、/ask、/roll、/wait、/dream はゲーム標準のコマンドです。",
17044
17408
  commandDescriptionHelp: "ゲームマスターに伝わる説明で、プレイヤー向けのヘルプにも表示されます。",
17045
17409
  calendarHelp: "季節は半球に従います。祝日は日付(09-21)、期間(12-20..01-05)、月内の曜日(nth:fri:last)、月、季節で指定します。日課、トリガー、モデルに示す時刻では holiday:<id> で参照できます。",
@@ -17352,7 +17716,6 @@ window.__ModuleLoader__.load({
17352
17716
  infoTagsHelp: "Sepáralas con comas. Ayudan a decidir si se quiere jugar este mundo.",
17353
17717
  infoRulesHelp: "Escribe una regla breve por línea, por ejemplo: «No existe la magia». El director de juego las usa para comprobar las acciones del jugador.",
17354
17718
  infoOpeningHelp: "El comienzo de la historia, antes de que el jugador diga nada. Déjalo vacío si no hace falta.",
17355
- infoOpeningParts: "Este comienzo contiene intervenciones de personajes y no se puede editar aquí como texto sin formato. Modifícalo en el archivo o pídeselo al asistente de creación.",
17356
17719
  commandsHelp: "Palabras que el jugador puede escribir tras una barra para usar funciones propias del mundo. El comando activa un indicador que pueden esperar los disparadores (la variable command_<word>) y comunica la intención al director de juego. /ooc, /ask, /roll, /wait y /dream pertenecen al juego.",
17357
17720
  commandDescriptionHelp: "Se comunica al director de juego y aparece como ayuda del comando para el jugador.",
17358
17721
  calendarHelp: "Las estaciones dependen del hemisferio. Las festividades se definen con una fecha (09-21), un intervalo (12-20..01-05), un día de la semana del mes (nth:fri:last), un mes o una estación. Las rutinas, los disparadores y la hora mostrada a los modelos pueden referirse a ellas como holiday:<id>.",
@@ -17665,7 +18028,6 @@ window.__ModuleLoader__.load({
17665
18028
  infoTagsHelp: "Séparez-les par des virgules. Elles aident à décider si ce monde donne envie d’être joué.",
17666
18029
  infoRulesHelp: "Saisissez une règle courte par ligne, par exemple « La magie n’existe pas ». Le maître de jeu y confronte les actions du joueur.",
17667
18030
  infoOpeningHelp: "Le début de l’histoire, avant que le joueur ne dise quoi que ce soit. Laissez vide si vous n’en voulez pas.",
17668
- infoOpeningParts: "Cette ouverture comporte des répliques de personnages et ne peut donc pas être modifiée ici comme du texte simple. Modifiez le fichier ou demandez à l’assistant de création.",
17669
18031
  commandsHelp: "Mots que le joueur peut saisir après une barre oblique pour utiliser une fonction propre à ce monde. Une commande active un indicateur attendu par les déclencheurs (la variable command_<word>) et transmet l’intention au maître de jeu. /ooc, /ask, /roll, /wait et /dream appartiennent au jeu.",
17670
18032
  commandDescriptionHelp: "Transmis au maître de jeu et affiché au joueur comme aide de la commande.",
17671
18033
  calendarHelp: "Les saisons dépendent de l’hémisphère. Une fête se définit par une date (09-21), une période (12-20..01-05), un jour de semaine du mois (nth:fri:last), un mois ou une saison. Les routines, les déclencheurs et l’heure donnée aux modèles peuvent la désigner par holiday:<id>.",
@@ -17978,7 +18340,6 @@ window.__ModuleLoader__.load({
17978
18340
  infoTagsHelp: "Durch Kommas trennen. Sie helfen bei der Entscheidung, ob man diese Welt spielen möchte.",
17979
18341
  infoRulesHelp: "Eine kurze Regel pro Zeile, zum Beispiel „Es gibt keine Magie“. Die Spielleitung prüft die Handlungen des Spielers anhand dieser Regeln.",
17980
18342
  infoOpeningHelp: "Der Anfang der Geschichte, bevor der Spieler etwas sagt. Leer lassen, wenn keiner gewünscht ist.",
17981
- infoOpeningParts: "Dieser Einstieg enthält gesprochene Zeilen von Charakteren und kann hier nicht als einfacher Text bearbeitet werden. Ändere die Datei oder bitte den Erstellungsassistenten darum.",
17982
18343
  commandsHelp: "Wörter, die der Spieler nach einem Schrägstrich eingeben kann, um eine Funktion dieser Welt auszulösen. Ein Befehl setzt einen Schalter, auf den Auslöser warten können (die Variable command_<word>), und teilt der Spielleitung die Absicht mit. /ooc, /ask, /roll, /wait und /dream gehören zum Spiel.",
17983
18344
  commandDescriptionHelp: "Wird der Spielleitung übermittelt und dem Spieler als Hilfe zum Befehl angezeigt.",
17984
18345
  calendarHelp: "Die Jahreszeiten richten sich nach der Halbkugel. Feiertage werden als Datum (09-21), Zeitraum (12-20..01-05), Wochentag im Monat (nth:fri:last), Monat oder Jahreszeit angegeben. Routinen, Auslöser und die Modellzeit können sie mit holiday:<id> benennen.",
@@ -18291,7 +18652,6 @@ window.__ModuleLoader__.load({
18291
18652
  infoTagsHelp: "Разделяйте метки запятыми. Они помогают понять, хочется ли играть в этом мире.",
18292
18653
  infoRulesHelp: "По одному короткому правилу в строке, например «Магии не существует». Ведущий сверяет с ними действия игрока.",
18293
18654
  infoOpeningHelp: "Начало истории до того, как игрок что-либо скажет. Оставьте поле пустым, если вступление не нужно.",
18294
- infoOpeningParts: "В этом вступлении есть реплики персонажей, поэтому его нельзя редактировать здесь как обычный текст. Измените файл или попросите помощника по созданию.",
18295
18655
  commandsHelp: "Слова, которые игрок вводит после косой черты, чтобы использовать возможности этого мира. Команда поднимает флаг, которого могут ждать триггеры (переменная command_<word>), и сообщает ведущему намерение игрока. /ooc, /ask, /roll, /wait и /dream относятся к самой игре.",
18296
18656
  commandDescriptionHelp: "Передаётся ведущему и показывается игроку в справке по команде.",
18297
18657
  calendarHelp: "Сезоны зависят от полушария. Праздник задаётся датой (09-21), периодом (12-20..01-05), днём недели в месяце (nth:fri:last), месяцем или сезоном. Распорядки, триггеры и время для моделей могут ссылаться на него как holiday:<id>.",
@@ -18604,7 +18964,6 @@ window.__ModuleLoader__.load({
18604
18964
  infoTagsHelp: "Separe-as por vírgulas. Ajudam a decidir se este mundo é interessante para jogar.",
18605
18965
  infoRulesHelp: "Introduza uma regra curta por linha, por exemplo «Não existe magia». O mestre de jogo compara as ações do jogador com estas regras.",
18606
18966
  infoOpeningHelp: "O início da história, antes de o jogador dizer alguma coisa. Deixe em branco se não for necessário.",
18607
- infoOpeningParts: "Esta abertura contém falas de personagens e não pode ser editada aqui como texto simples. Altere o ficheiro ou peça ao assistente de criação.",
18608
18967
  commandsHelp: "Palavras que o jogador pode escrever depois de uma barra para usar funções próprias deste mundo. O comando ativa um sinalizador que os acionadores podem aguardar (a variável command_<word>) e comunica a intenção ao mestre de jogo. /ooc, /ask, /roll, /wait e /dream pertencem ao próprio jogo.",
18609
18968
  commandDescriptionHelp: "É comunicado ao mestre de jogo e mostrado ao jogador como ajuda do comando.",
18610
18969
  calendarHelp: "As estações dependem do hemisfério. Um feriado é definido por uma data (09-21), um período (12-20..01-05), um dia da semana no mês (nth:fri:last), um mês ou uma estação. Rotinas, acionadores e o tempo mostrado aos modelos podem referi-lo como holiday:<id>.",
@@ -18641,7 +19000,7 @@ window.__ModuleLoader__.load({
18641
19000
  wearableAt: "Usável em: {slot}",
18642
19001
  ownedBy: "Pertence a {owner}"
18643
19002
  }
18644
- }, prefixed(dictionaries$21, "gallery_")), prefixed(dictionaries$17, "trig_")), prefixed(dictionaries$19, "pk_")), prefixed(dictionaries$18, "sq_")), dictionaries$22), prefixed(dictionaries$20, "dice_")), dictionaries$23);
19003
+ }, prefixed(dictionaries$22, "gallery_")), prefixed(dictionaries$17, "trig_")), prefixed(dictionaries$20, "pk_")), prefixed(dictionaries$18, "sq_")), dictionaries$23), prefixed(dictionaries$21, "dice_")), dictionaries$24), prefixed(dictionaries$19, "op_"));
18645
19004
  const dictionaries$15 = withDictionaries({
18646
19005
  en: {
18647
19006
  nav: "Avatars",
@@ -18883,37 +19242,37 @@ window.__ModuleLoader__.load({
18883
19242
  }
18884
19243
  tag$30.textContent = css$30;
18885
19244
  var LorebooksPage_module_css_default = {
18886
- "input": "rp_VV-Eha_input",
18887
- "count": "rp_VV-Eha_count",
18888
19245
  "editBody": "rp_VV-Eha_editBody",
19246
+ "field": "rp_VV-Eha_field",
19247
+ "head": "rp_VV-Eha_head",
19248
+ "page": "rp_VV-Eha_page",
19249
+ "sectionTitle": "rp_VV-Eha_sectionTitle",
19250
+ "message": "rp_VV-Eha_message",
19251
+ "actions": "rp_VV-Eha_actions",
19252
+ "input": "rp_VV-Eha_input",
19253
+ "title": "rp_VV-Eha_title",
18889
19254
  "cardActions": "rp_VV-Eha_cardActions",
19255
+ "count": "rp_VV-Eha_count",
18890
19256
  "select": "rp_VV-Eha_select",
18891
19257
  "description": "rp_VV-Eha_description",
18892
- "title": "rp_VV-Eha_title",
18893
- "editTitle": "rp_VV-Eha_editTitle",
18894
- "form": "rp_VV-Eha_form",
19258
+ "card": "rp_VV-Eha_card",
19259
+ "grid": "rp_VV-Eha_grid",
18895
19260
  "toolbar": "rp_VV-Eha_toolbar",
19261
+ "warning": "rp_VV-Eha_warning",
18896
19262
  "label": "rp_VV-Eha_label",
18897
19263
  "area": "rp_VV-Eha_area",
18898
- "help": "rp_VV-Eha_help",
18899
- "ok": "rp_VV-Eha_ok",
19264
+ "error": "rp_VV-Eha_error",
19265
+ "editTitle": "rp_VV-Eha_editTitle",
18900
19266
  "section": "rp_VV-Eha_section",
18901
- "page": "rp_VV-Eha_page",
18902
- "head": "rp_VV-Eha_head",
18903
19267
  "row": "rp_VV-Eha_row",
18904
- "card": "rp_VV-Eha_card",
19268
+ "form": "rp_VV-Eha_form",
19269
+ "help": "rp_VV-Eha_help",
19270
+ "name": "rp_VV-Eha_name",
18905
19271
  "editHeader": "rp_VV-Eha_editHeader",
18906
- "grid": "rp_VV-Eha_grid",
18907
- "warning": "rp_VV-Eha_warning",
18908
- "entryArea": "rp_VV-Eha_entryArea",
18909
19272
  "meta": "rp_VV-Eha_meta",
18910
- "error": "rp_VV-Eha_error",
18911
- "sectionTitle": "rp_VV-Eha_sectionTitle",
18912
- "actions": "rp_VV-Eha_actions",
18913
- "viewport": "rp_VV-Eha_viewport",
18914
- "name": "rp_VV-Eha_name",
18915
- "message": "rp_VV-Eha_message",
18916
- "field": "rp_VV-Eha_field"
19273
+ "entryArea": "rp_VV-Eha_entryArea",
19274
+ "ok": "rp_VV-Eha_ok",
19275
+ "viewport": "rp_VV-Eha_viewport"
18917
19276
  };
18918
19277
  // src/client/pages/lorebooks/LorebookEditor.tsx
18919
19278
  const messageOf$9 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -20294,7 +20653,7 @@ window.__ModuleLoader__.load({
20294
20653
  kind_legend: "Lenda",
20295
20654
  kind_other: "Outro"
20296
20655
  }
20297
- }, dictionaries$25);
20656
+ }, dictionaries$26);
20298
20657
  // src/client/pages/lorebooks/lorebooks-controller.ts
20299
20658
  const messageOf$7 = (error) => error instanceof Error ? error.message : String(error);
20300
20659
  /** Reads the lorebook library from the host and makes, removes and opens its lorebooks. */
@@ -20415,35 +20774,35 @@ window.__ModuleLoader__.load({
20415
20774
  }
20416
20775
  tag$29.textContent = css$29;
20417
20776
  var PresetsPage_module_css_default = {
20777
+ "viewport": "rp_ZK89ba_viewport",
20418
20778
  "actions": "rp_ZK89ba_actions",
20419
- "editTitle": "rp_ZK89ba_editTitle",
20420
- "message": "rp_ZK89ba_message",
20421
- "editHeader": "rp_ZK89ba_editHeader",
20779
+ "editBody": "rp_ZK89ba_editBody",
20780
+ "card": "rp_ZK89ba_card",
20781
+ "description": "rp_ZK89ba_description",
20782
+ "cardActions": "rp_ZK89ba_cardActions",
20783
+ "error": "rp_ZK89ba_error",
20422
20784
  "ok": "rp_ZK89ba_ok",
20423
- "section": "rp_ZK89ba_section",
20424
20785
  "head": "rp_ZK89ba_head",
20425
- "card": "rp_ZK89ba_card",
20426
- "title": "rp_ZK89ba_title",
20427
20786
  "field": "rp_ZK89ba_field",
20428
- "editBody": "rp_ZK89ba_editBody",
20429
- "row": "rp_ZK89ba_row",
20430
- "label": "rp_ZK89ba_label",
20431
- "viewport": "rp_ZK89ba_viewport",
20787
+ "editTitle": "rp_ZK89ba_editTitle",
20432
20788
  "toolbar": "rp_ZK89ba_toolbar",
20433
- "error": "rp_ZK89ba_error",
20789
+ "section": "rp_ZK89ba_section",
20790
+ "area": "rp_ZK89ba_area",
20434
20791
  "grid": "rp_ZK89ba_grid",
20435
- "cardActions": "rp_ZK89ba_cardActions",
20436
- "name": "rp_ZK89ba_name",
20437
20792
  "meta": "rp_ZK89ba_meta",
20793
+ "editHeader": "rp_ZK89ba_editHeader",
20794
+ "warning": "rp_ZK89ba_warning",
20795
+ "title": "rp_ZK89ba_title",
20796
+ "page": "rp_ZK89ba_page",
20438
20797
  "help": "rp_ZK89ba_help",
20798
+ "label": "rp_ZK89ba_label",
20799
+ "message": "rp_ZK89ba_message",
20439
20800
  "count": "rp_ZK89ba_count",
20440
- "form": "rp_ZK89ba_form",
20441
- "page": "rp_ZK89ba_page",
20442
- "description": "rp_ZK89ba_description",
20443
- "input": "rp_ZK89ba_input",
20444
- "warning": "rp_ZK89ba_warning",
20801
+ "name": "rp_ZK89ba_name",
20445
20802
  "sectionTitle": "rp_ZK89ba_sectionTitle",
20446
- "area": "rp_ZK89ba_area"
20803
+ "row": "rp_ZK89ba_row",
20804
+ "form": "rp_ZK89ba_form",
20805
+ "input": "rp_ZK89ba_input"
20447
20806
  };
20448
20807
  // src/client/pages/presets/PresetEditor.tsx
20449
20808
  const messageOf$6 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -21763,7 +22122,7 @@ window.__ModuleLoader__.load({
21763
22122
  "prompt_roleplay/style": "Estilo narrativo",
21764
22123
  "prompt_roleplay/character-style": "Estilo das personagens"
21765
22124
  }
21766
- }, dictionaries$23), dictionaries$25);
22125
+ }, dictionaries$24), dictionaries$26);
21767
22126
  // src/client/pages/presets/presets-controller.ts
21768
22127
  const messageOf$4 = (error) => error instanceof Error ? error.message : String(error);
21769
22128
  /** Reads the preset library from the host and makes, removes and opens its presets. */
@@ -21932,34 +22291,34 @@ window.__ModuleLoader__.load({
21932
22291
  }
21933
22292
  tag$28.textContent = css$28;
21934
22293
  var PromptsPage_module_css_default = {
21935
- "row": "rp_DLg_5G_row",
21936
- "shipped": "rp_DLg_5G_shipped",
21937
- "sign": "rp_DLg_5G_sign",
21938
- "message": "rp_DLg_5G_message",
21939
- "editHeader": "rp_DLg_5G_editHeader",
21940
22294
  "editBody": "rp_DLg_5G_editBody",
21941
- "label": "rp_DLg_5G_label",
21942
- "check": "rp_DLg_5G_check",
21943
- "group": "rp_DLg_5G_group",
21944
- "page": "rp_DLg_5G_page",
21945
- "warning": "rp_DLg_5G_warning",
21946
- "pane": "rp_DLg_5G_pane",
22295
+ "rowName": "rp_DLg_5G_rowName",
21947
22296
  "list": "rp_DLg_5G_list",
21948
- "actions": "rp_DLg_5G_actions",
21949
- "error": "rp_DLg_5G_error",
22297
+ "page": "rp_DLg_5G_page",
22298
+ "sign": "rp_DLg_5G_sign",
22299
+ "editHeader": "rp_DLg_5G_editHeader",
22300
+ "area": "rp_DLg_5G_area",
21950
22301
  "toolbar": "rp_DLg_5G_toolbar",
21951
- "help": "rp_DLg_5G_help",
21952
- "editTitle": "rp_DLg_5G_editTitle",
21953
22302
  "panes": "rp_DLg_5G_panes",
21954
- "line": "rp_DLg_5G_line",
22303
+ "shipped": "rp_DLg_5G_shipped",
22304
+ "label": "rp_DLg_5G_label",
22305
+ "row": "rp_DLg_5G_row",
21955
22306
  "viewport": "rp_DLg_5G_viewport",
21956
- "area": "rp_DLg_5G_area",
22307
+ "line": "rp_DLg_5G_line",
22308
+ "help": "rp_DLg_5G_help",
22309
+ "message": "rp_DLg_5G_message",
22310
+ "warning": "rp_DLg_5G_warning",
22311
+ "ok": "rp_DLg_5G_ok",
21957
22312
  "missing": "rp_DLg_5G_missing",
21958
- "count": "rp_DLg_5G_count",
21959
- "rowName": "rp_DLg_5G_rowName",
21960
- "spacer": "rp_DLg_5G_spacer",
21961
22313
  "rowLanguage": "rp_DLg_5G_rowLanguage",
21962
- "ok": "rp_DLg_5G_ok"
22314
+ "error": "rp_DLg_5G_error",
22315
+ "spacer": "rp_DLg_5G_spacer",
22316
+ "actions": "rp_DLg_5G_actions",
22317
+ "check": "rp_DLg_5G_check",
22318
+ "editTitle": "rp_DLg_5G_editTitle",
22319
+ "pane": "rp_DLg_5G_pane",
22320
+ "count": "rp_DLg_5G_count",
22321
+ "group": "rp_DLg_5G_group"
21963
22322
  };
21964
22323
  // src/client/pages/prompts/PromptEditor.tsx
21965
22324
  const messageOf$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -22819,11 +23178,11 @@ window.__ModuleLoader__.load({
22819
23178
  }
22820
23179
  tag$25.textContent = css$25;
22821
23180
  var DeleteSessionDialog_module_css_default = {
22822
- "error": "rp_FifHrW_error",
23181
+ "warning": "rp_FifHrW_warning",
23182
+ "body": "rp_FifHrW_body",
22823
23183
  "choice": "rp_FifHrW_choice",
22824
23184
  "question": "rp_FifHrW_question",
22825
- "warning": "rp_FifHrW_warning",
22826
- "body": "rp_FifHrW_body"
23185
+ "error": "rp_FifHrW_error"
22827
23186
  };
22828
23187
  // src/client/pages/sessions/DeleteSessionDialog.tsx
22829
23188
  /** Asks for confirmation before a session and everything saved with it is removed. */
@@ -23347,28 +23706,28 @@ window.__ModuleLoader__.load({
23347
23706
  }
23348
23707
  tag$24.textContent = css$24;
23349
23708
  var SessionsPage_module_css_default = {
23350
- "count": "rp_24z4eW_count",
23351
- "notice": "rp_24z4eW_notice",
23352
- "nameColumn": "rp_24z4eW_nameColumn",
23353
- "secondary": "rp_24z4eW_secondary",
23354
- "message": "rp_24z4eW_message",
23355
- "fits": "rp_24z4eW_fits",
23356
- "badge": "rp_24z4eW_badge",
23357
- "turnsColumn": "rp_24z4eW_turnsColumn",
23358
- "table": "rp_24z4eW_table",
23359
23709
  "page": "rp_24z4eW_page",
23710
+ "viewport": "rp_24z4eW_viewport",
23711
+ "number": "rp_24z4eW_number",
23712
+ "count": "rp_24z4eW_count",
23360
23713
  "toolbar": "rp_24z4eW_toolbar",
23361
23714
  "worldColumn": "rp_24z4eW_worldColumn",
23362
- "spin": "rp_24z4eW_spin",
23363
- "spinning": "rp_24z4eW_spinning",
23364
23715
  "name": "rp_24z4eW_name",
23365
- "viewport": "rp_24z4eW_viewport",
23366
- "number": "rp_24z4eW_number",
23367
- "scrolls": "rp_24z4eW_scrolls",
23716
+ "message": "rp_24z4eW_message",
23368
23717
  "archived": "rp_24z4eW_archived",
23718
+ "badge": "rp_24z4eW_badge",
23719
+ "secondary": "rp_24z4eW_secondary",
23369
23720
  "timeColumn": "rp_24z4eW_timeColumn",
23721
+ "spinning": "rp_24z4eW_spinning",
23722
+ "spin": "rp_24z4eW_spin",
23723
+ "notice": "rp_24z4eW_notice",
23724
+ "table": "rp_24z4eW_table",
23725
+ "fits": "rp_24z4eW_fits",
23726
+ "actionsColumn": "rp_24z4eW_actionsColumn",
23727
+ "scrolls": "rp_24z4eW_scrolls",
23370
23728
  "actions": "rp_24z4eW_actions",
23371
- "actionsColumn": "rp_24z4eW_actionsColumn"
23729
+ "turnsColumn": "rp_24z4eW_turnsColumn",
23730
+ "nameColumn": "rp_24z4eW_nameColumn"
23372
23731
  };
23373
23732
  // src/client/pages/sessions/SessionsPage.tsx
23374
23733
  /** The sessions as a table, one page at a time, the most recently played first. */
@@ -24107,28 +24466,28 @@ window.__ModuleLoader__.load({
24107
24466
  }
24108
24467
  tag$23.textContent = css$23;
24109
24468
  var SyncPage_module_css_default = {
24110
- "problem": "rp_Gk-byG_problem",
24111
- "stateColumn": "rp_Gk-byG_stateColumn",
24112
- "detailsColumn": "rp_Gk-byG_detailsColumn",
24469
+ "kindColumn": "rp_Gk-byG_kindColumn",
24113
24470
  "message": "rp_Gk-byG_message",
24114
- "actionHeading": "rp_Gk-byG_actionHeading",
24471
+ "actions": "rp_Gk-byG_actions",
24472
+ "actionsColumn": "rp_Gk-byG_actionsColumn",
24473
+ "syncedColumn": "rp_Gk-byG_syncedColumn",
24474
+ "page": "rp_Gk-byG_page",
24475
+ "detailsColumn": "rp_Gk-byG_detailsColumn",
24115
24476
  "unitColumn": "rp_Gk-byG_unitColumn",
24477
+ "failed": "rp_Gk-byG_failed",
24478
+ "unit": "rp_Gk-byG_unit",
24479
+ "detail": "rp_Gk-byG_detail",
24116
24480
  "toolbar": "rp_Gk-byG_toolbar",
24117
24481
  "error": "rp_Gk-byG_error",
24118
- "actionsColumn": "rp_Gk-byG_actionsColumn",
24119
24482
  "viewport": "rp_Gk-byG_viewport",
24120
- "conflict": "rp_Gk-byG_conflict",
24121
- "kindColumn": "rp_Gk-byG_kindColumn",
24122
- "actions": "rp_Gk-byG_actions",
24123
- "caption": "rp_Gk-byG_caption",
24124
- "table": "rp_Gk-byG_table",
24125
- "failed": "rp_Gk-byG_failed",
24126
- "detail": "rp_Gk-byG_detail",
24483
+ "actionHeading": "rp_Gk-byG_actionHeading",
24127
24484
  "choices": "rp_Gk-byG_choices",
24128
- "syncedColumn": "rp_Gk-byG_syncedColumn",
24129
- "unit": "rp_Gk-byG_unit",
24130
- "page": "rp_Gk-byG_page",
24485
+ "table": "rp_Gk-byG_table",
24131
24486
  "confirmation": "rp_Gk-byG_confirmation",
24487
+ "caption": "rp_Gk-byG_caption",
24488
+ "problem": "rp_Gk-byG_problem",
24489
+ "stateColumn": "rp_Gk-byG_stateColumn",
24490
+ "conflict": "rp_Gk-byG_conflict",
24132
24491
  "meta": "rp_Gk-byG_meta"
24133
24492
  };
24134
24493
  // src/client/pages/sync/SyncPage.tsx
@@ -24954,14 +25313,14 @@ window.__ModuleLoader__.load({
24954
25313
  }
24955
25314
  tag$22.textContent = css$22;
24956
25315
  var Toast_module_css_default = {
24957
- "fading": "rp_jnVj9q_fading",
24958
- "text": "rp_jnVj9q_text",
24959
25316
  "action": "rp_jnVj9q_action",
24960
- "banner": "rp_jnVj9q_banner",
24961
25317
  "prefix": "rp_jnVj9q_prefix",
24962
- "actionButton": "rp_jnVj9q_actionButton",
25318
+ "banner": "rp_jnVj9q_banner",
24963
25319
  "success": "rp_jnVj9q_success",
24964
- "rpToastEnter": "rp_jnVj9q_rpToastEnter"
25320
+ "text": "rp_jnVj9q_text",
25321
+ "fading": "rp_jnVj9q_fading",
25322
+ "rpToastEnter": "rp_jnVj9q_rpToastEnter",
25323
+ "actionButton": "rp_jnVj9q_actionButton"
24965
25324
  };
24966
25325
  // src/client/ui/Toast.tsx
24967
25326
  const FADE_MS = 200;
@@ -25031,15 +25390,15 @@ window.__ModuleLoader__.load({
25031
25390
  tag$21.textContent = css$21;
25032
25391
  var WorldCard_module_css_default = {
25033
25392
  "play": "rp_Bvxx5q_play",
25034
- "placeholder": "rp_Bvxx5q_placeholder",
25035
25393
  "card": "rp_Bvxx5q_card",
25036
- "info": "rp_Bvxx5q_info",
25037
- "openButton": "rp_Bvxx5q_openButton",
25038
- "tags": "rp_Bvxx5q_tags",
25039
25394
  "tag": "rp_Bvxx5q_tag",
25040
- "image": "rp_Bvxx5q_image",
25395
+ "name": "rp_Bvxx5q_name",
25396
+ "tags": "rp_Bvxx5q_tags",
25397
+ "openButton": "rp_Bvxx5q_openButton",
25041
25398
  "cover": "rp_Bvxx5q_cover",
25042
- "name": "rp_Bvxx5q_name"
25399
+ "info": "rp_Bvxx5q_info",
25400
+ "image": "rp_Bvxx5q_image",
25401
+ "placeholder": "rp_Bvxx5q_placeholder"
25043
25402
  };
25044
25403
  // src/client/widgets/world-card/WorldCard.tsx
25045
25404
  /** Stable hue per name, so a world without a cover keeps the same colour. */
@@ -25136,10 +25495,10 @@ window.__ModuleLoader__.load({
25136
25495
  }
25137
25496
  tag$20.textContent = css$20;
25138
25497
  var AvatarChoices_module_css_default = {
25498
+ "option": "rp_YCstOG_option",
25139
25499
  "text": "rp_YCstOG_text",
25140
25500
  "name": "rp_YCstOG_name",
25141
- "summary": "rp_YCstOG_summary",
25142
- "option": "rp_YCstOG_option"
25501
+ "summary": "rp_YCstOG_summary"
25143
25502
  };
25144
25503
  // src/client/widgets/avatar-choices/AvatarChoices.tsx
25145
25504
  /** A list of avatars to tick: the ones brought into a world or a session. */
@@ -25177,18 +25536,18 @@ window.__ModuleLoader__.load({
25177
25536
  }
25178
25537
  tag$19.textContent = css$19;
25179
25538
  var StartSessionDialog_module_css_default = {
25539
+ "label": "rp_AnbLKG_label",
25180
25540
  "form": "rp_AnbLKG_form",
25181
- "advanced": "rp_AnbLKG_advanced",
25182
- "optionSummary": "rp_AnbLKG_optionSummary",
25541
+ "option": "rp_AnbLKG_option",
25542
+ "optionName": "rp_AnbLKG_optionName",
25183
25543
  "field": "rp_AnbLKG_field",
25184
- "optionText": "rp_AnbLKG_optionText",
25185
- "advancedToggle": "rp_AnbLKG_advancedToggle",
25186
25544
  "error": "rp_AnbLKG_error",
25187
- "label": "rp_AnbLKG_label",
25188
- "option": "rp_AnbLKG_option",
25189
25545
  "message": "rp_AnbLKG_message",
25546
+ "advanced": "rp_AnbLKG_advanced",
25547
+ "advancedToggle": "rp_AnbLKG_advancedToggle",
25190
25548
  "advancedBody": "rp_AnbLKG_advancedBody",
25191
- "optionName": "rp_AnbLKG_optionName"
25549
+ "optionSummary": "rp_AnbLKG_optionSummary",
25550
+ "optionText": "rp_AnbLKG_optionText"
25192
25551
  };
25193
25552
  // src/client/pages/worlds/AddAvatarsDialog.tsx
25194
25553
  /** Asks which avatars become characters of a world's own files. */
@@ -26568,9 +26927,9 @@ window.__ModuleLoader__.load({
26568
26927
  }
26569
26928
  tag$18.textContent = css$18;
26570
26929
  var SegmentedControl_module_css_default = {
26571
- "rpControl": "rp_wN4Tqa_rpControl",
26930
+ "rpIndicator": "rp_wN4Tqa_rpIndicator",
26572
26931
  "rpTab": "rp_wN4Tqa_rpTab",
26573
- "rpIndicator": "rp_wN4Tqa_rpIndicator"
26932
+ "rpControl": "rp_wN4Tqa_rpControl"
26574
26933
  };
26575
26934
  // src/client/ui/walk.ts
26576
26935
  /** Whether a key moves the selection inside a tablist. */
@@ -26663,12 +27022,12 @@ window.__ModuleLoader__.load({
26663
27022
  }
26664
27023
  tag$17.textContent = css$17;
26665
27024
  var SettingsFields_module_css_default = {
26666
- "label": "rp_Rhi3yq_label",
27025
+ "group": "rp_Rhi3yq_group",
26667
27026
  "field": "rp_Rhi3yq_field",
26668
27027
  "row": "rp_Rhi3yq_row",
26669
- "help": "rp_Rhi3yq_help",
26670
- "group": "rp_Rhi3yq_group",
26671
27028
  "area": "rp_Rhi3yq_area",
27029
+ "label": "rp_Rhi3yq_label",
27030
+ "help": "rp_Rhi3yq_help",
26672
27031
  "groupTitle": "rp_Rhi3yq_groupTitle",
26673
27032
  "error": "rp_Rhi3yq_error"
26674
27033
  };
@@ -26976,10 +27335,10 @@ window.__ModuleLoader__.load({
26976
27335
  }
26977
27336
  tag$16.textContent = css$16;
26978
27337
  var TranslateBanner_module_css_default = {
26979
- "text": "rp_Lx8vJa_text",
26980
- "bannerActions": "rp_Lx8vJa_bannerActions",
26981
27338
  "banner": "rp_Lx8vJa_banner",
26982
- "error": "rp_Lx8vJa_error"
27339
+ "bannerActions": "rp_Lx8vJa_bannerActions",
27340
+ "error": "rp_Lx8vJa_error",
27341
+ "text": "rp_Lx8vJa_text"
26983
27342
  };
26984
27343
  // src/client/pages/worlds/TranslateBanner.tsx
26985
27344
  /** A language by name in the person's own language; the two the plugin has texts for use them, any other is named by the browser. */
@@ -27614,26 +27973,26 @@ window.__ModuleLoader__.load({
27614
27973
  }
27615
27974
  tag$15.textContent = css$15;
27616
27975
  var WorldsPage_module_css_default = {
27617
- "viewport": "rp_FHUyRq_viewport",
27618
- "page": "rp_FHUyRq_page",
27619
- "spin": "rp_FHUyRq_spin",
27620
- "editHeader": "rp_FHUyRq_editHeader",
27976
+ "editTitle": "rp_FHUyRq_editTitle",
27977
+ "editActions": "rp_FHUyRq_editActions",
27621
27978
  "starter": "rp_FHUyRq_starter",
27622
- "scrolls": "rp_FHUyRq_scrolls",
27623
- "toolbarActions": "rp_FHUyRq_toolbarActions",
27624
- "starters": "rp_FHUyRq_starters",
27625
- "cell": "rp_FHUyRq_cell",
27979
+ "toolbar": "rp_FHUyRq_toolbar",
27626
27980
  "editBody": "rp_FHUyRq_editBody",
27627
- "message": "rp_FHUyRq_message",
27628
- "info": "rp_FHUyRq_info",
27981
+ "grid": "rp_FHUyRq_grid",
27629
27982
  "spinning": "rp_FHUyRq_spinning",
27630
27983
  "fits": "rp_FHUyRq_fits",
27631
- "toolbar": "rp_FHUyRq_toolbar",
27632
- "notice": "rp_FHUyRq_notice",
27984
+ "message": "rp_FHUyRq_message",
27985
+ "editHeader": "rp_FHUyRq_editHeader",
27986
+ "toolbarActions": "rp_FHUyRq_toolbarActions",
27633
27987
  "count": "rp_FHUyRq_count",
27634
- "grid": "rp_FHUyRq_grid",
27635
- "editTitle": "rp_FHUyRq_editTitle",
27636
- "editActions": "rp_FHUyRq_editActions"
27988
+ "info": "rp_FHUyRq_info",
27989
+ "cell": "rp_FHUyRq_cell",
27990
+ "page": "rp_FHUyRq_page",
27991
+ "viewport": "rp_FHUyRq_viewport",
27992
+ "scrolls": "rp_FHUyRq_scrolls",
27993
+ "starters": "rp_FHUyRq_starters",
27994
+ "spin": "rp_FHUyRq_spin",
27995
+ "notice": "rp_FHUyRq_notice"
27637
27996
  };
27638
27997
  // src/client/pages/worlds/StarterWorlds.tsx
27639
27998
  /** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
@@ -31928,7 +32287,7 @@ window.__ModuleLoader__.load({
31928
32287
  startAvatars: "Levar avatares",
31929
32288
  startAvatarsHelp: "Selecione os avatares que pretende levar para esta sessão como personagens; também pode interpretá-los. O mundo não é alterado."
31930
32289
  }
31931
- }, dictionaries$9), dictionaries$16), dictionaries$25), dictionaries$26);
32290
+ }, dictionaries$9), dictionaries$16), dictionaries$26), dictionaries$27);
31932
32291
  // src/client/pages/worlds/worlds-controller.ts
31933
32292
  async function request$1(path, init, signal) {
31934
32293
  const response = await fetch(`${API_PREFIX}${path}`, {
@@ -32299,9 +32658,9 @@ window.__ModuleLoader__.load({
32299
32658
  tag$14.textContent = css$14;
32300
32659
  var BranchDialog_module_css_default = {
32301
32660
  "error": "rp_Dy1TaW_error",
32302
- "field": "rp_Dy1TaW_field",
32661
+ "form": "rp_Dy1TaW_form",
32303
32662
  "label": "rp_Dy1TaW_label",
32304
- "form": "rp_Dy1TaW_form"
32663
+ "field": "rp_Dy1TaW_field"
32305
32664
  };
32306
32665
  // src/client/branch/BranchDialog.tsx
32307
32666
  /** Asks for the name of a session that was just branched off another. */
@@ -32479,12 +32838,12 @@ window.__ModuleLoader__.load({
32479
32838
  }
32480
32839
  tag$13.textContent = css$13;
32481
32840
  var SidebarGuideEntry_module_css_default = {
32482
- "entry": "rp_Okaj1q_entry",
32483
- "icon": "rp_Okaj1q_icon",
32484
32841
  "description": "rp_Okaj1q_description",
32485
32842
  "title": "rp_Okaj1q_title",
32486
- "text": "rp_Okaj1q_text",
32487
- "main": "rp_Okaj1q_main"
32843
+ "entry": "rp_Okaj1q_entry",
32844
+ "main": "rp_Okaj1q_main",
32845
+ "icon": "rp_Okaj1q_icon",
32846
+ "text": "rp_Okaj1q_text"
32488
32847
  };
32489
32848
  // src/client/widgets/sidebar-guide/SidebarGuideEntry.tsx
32490
32849
  /** A card of the right sidebar's new-tab guide, drawn like DSH's own entries. */
@@ -32531,8 +32890,8 @@ window.__ModuleLoader__.load({
32531
32890
  }
32532
32891
  tag$12.textContent = css$12;
32533
32892
  var GalleryTab_module_css_default = {
32534
- "page": "rp_W688Pa_page",
32535
32893
  "bar": "rp_W688Pa_bar",
32894
+ "page": "rp_W688Pa_page",
32536
32895
  "message": "rp_W688Pa_message"
32537
32896
  };
32538
32897
  // src/client/gallery/GalleryTab.tsx
@@ -32587,7 +32946,7 @@ window.__ModuleLoader__.load({
32587
32946
  /** The gallery: a page of the right sidebar, so the pictures can be browsed while the story is read. */
32588
32947
  function registerGallery(ctx) {
32589
32948
  const t = ctx.locale.bind(NAMESPACE$7);
32590
- ctx.effect(() => ctx.locale.register(NAMESPACE$7, dictionaries$21), "roleplay: gallery dictionaries");
32949
+ ctx.effect(() => ctx.locale.register(NAMESPACE$7, dictionaries$22), "roleplay: gallery dictionaries");
32591
32950
  ctx.inject(["sidebarRight", "sidebarRightTabs"], (right) => {
32592
32951
  right.effect(() => right.sidebarRightTabs.register({
32593
32952
  id: GALLERY_ID,
@@ -32950,17 +33309,17 @@ window.__ModuleLoader__.load({
32950
33309
  }
32951
33310
  tag$11.textContent = css$11;
32952
33311
  var SidebarPage_module_css_default = {
32953
- "title": "rp_Ptco8a_title",
33312
+ "message": "rp_Ptco8a_message",
32954
33313
  "name": "rp_Ptco8a_name",
32955
- "page": "rp_Ptco8a_page",
32956
- "bar": "rp_Ptco8a_bar",
32957
33314
  "entry": "rp_Ptco8a_entry",
32958
- "main": "rp_Ptco8a_main",
32959
- "icon": "rp_Ptco8a_icon",
32960
33315
  "text": "rp_Ptco8a_text",
33316
+ "title": "rp_Ptco8a_title",
33317
+ "bar": "rp_Ptco8a_bar",
33318
+ "page": "rp_Ptco8a_page",
32961
33319
  "description": "rp_Ptco8a_description",
32962
- "message": "rp_Ptco8a_message",
32963
- "content": "rp_Ptco8a_content"
33320
+ "content": "rp_Ptco8a_content",
33321
+ "main": "rp_Ptco8a_main",
33322
+ "icon": "rp_Ptco8a_icon"
32964
33323
  };
32965
33324
  // src/client/interface/SidebarPage.tsx
32966
33325
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -33589,24 +33948,24 @@ window.__ModuleLoader__.load({
33589
33948
  }
33590
33949
  tag$10.textContent = css$10;
33591
33950
  var RecallTab_module_css_default = {
33592
- "field": "rp_jl9CIq_field",
33593
- "error": "rp_jl9CIq_error",
33594
- "heading": "rp_jl9CIq_heading",
33595
- "label": "rp_jl9CIq_label",
33596
- "hint": "rp_jl9CIq_hint",
33597
- "note": "rp_jl9CIq_note",
33598
33951
  "body": "rp_jl9CIq_body",
33952
+ "place": "rp_jl9CIq_place",
33953
+ "label": "rp_jl9CIq_label",
33954
+ "meta": "rp_jl9CIq_meta",
33955
+ "heading": "rp_jl9CIq_heading",
33956
+ "error": "rp_jl9CIq_error",
33957
+ "form": "rp_jl9CIq_form",
33958
+ "list": "rp_jl9CIq_list",
33959
+ "person": "rp_jl9CIq_person",
33960
+ "page": "rp_jl9CIq_page",
33599
33961
  "item": "rp_jl9CIq_item",
33600
33962
  "actions": "rp_jl9CIq_actions",
33963
+ "hint": "rp_jl9CIq_hint",
33601
33964
  "name": "rp_jl9CIq_name",
33602
- "person": "rp_jl9CIq_person",
33603
33965
  "bar": "rp_jl9CIq_bar",
33604
- "page": "rp_jl9CIq_page",
33605
- "list": "rp_jl9CIq_list",
33606
- "area": "rp_jl9CIq_area",
33607
- "place": "rp_jl9CIq_place",
33608
- "meta": "rp_jl9CIq_meta",
33609
- "form": "rp_jl9CIq_form"
33966
+ "note": "rp_jl9CIq_note",
33967
+ "field": "rp_jl9CIq_field",
33968
+ "area": "rp_jl9CIq_area"
33610
33969
  };
33611
33970
  // src/client/recall/RecallTab.tsx
33612
33971
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -34463,10 +34822,10 @@ window.__ModuleLoader__.load({
34463
34822
  tag$9.textContent = css$9;
34464
34823
  var ReferenceTab_module_css_default = {
34465
34824
  "bar": "rp_7BGO2a_bar",
34466
- "page": "rp_7BGO2a_page",
34467
34825
  "nav": "rp_7BGO2a_nav",
34826
+ "message": "rp_7BGO2a_message",
34468
34827
  "body": "rp_7BGO2a_body",
34469
- "message": "rp_7BGO2a_message"
34828
+ "page": "rp_7BGO2a_page"
34470
34829
  };
34471
34830
  // src/client/reference/ReferenceTab.tsx
34472
34831
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -34586,28 +34945,28 @@ window.__ModuleLoader__.load({
34586
34945
  }
34587
34946
  tag$8.textContent = css$8;
34588
34947
  var Page_module_css_default = {
34589
- "title": "rp_bG1sCa_title",
34590
- "way": "rp_bG1sCa_way",
34591
- "closedWay": "rp_bG1sCa_closedWay",
34948
+ "notes": "rp_bG1sCa_notes",
34949
+ "map": "rp_bG1sCa_map",
34592
34950
  "sub": "rp_bG1sCa_sub",
34593
- "opened": "rp_bG1sCa_opened",
34594
34951
  "message": "rp_bG1sCa_message",
34595
- "entry": "rp_bG1sCa_entry",
34596
- "here": "rp_bG1sCa_here",
34597
- "meta": "rp_bG1sCa_meta",
34598
34952
  "name": "rp_bG1sCa_name",
34599
- "text": "rp_bG1sCa_text",
34600
- "list": "rp_bG1sCa_list",
34953
+ "closedWay": "rp_bG1sCa_closedWay",
34601
34954
  "place": "rp_bG1sCa_place",
34602
- "link": "rp_bG1sCa_link",
34603
34955
  "placeName": "rp_bG1sCa_placeName",
34604
- "head": "rp_bG1sCa_head",
34956
+ "way": "rp_bG1sCa_way",
34957
+ "journal": "rp_bG1sCa_journal",
34605
34958
  "block": "rp_bG1sCa_block",
34606
34959
  "tag": "rp_bG1sCa_tag",
34607
- "journal": "rp_bG1sCa_journal",
34608
- "map": "rp_bG1sCa_map",
34609
- "notes": "rp_bG1sCa_notes",
34610
- "heading": "rp_bG1sCa_heading"
34960
+ "link": "rp_bG1sCa_link",
34961
+ "list": "rp_bG1sCa_list",
34962
+ "here": "rp_bG1sCa_here",
34963
+ "entry": "rp_bG1sCa_entry",
34964
+ "meta": "rp_bG1sCa_meta",
34965
+ "opened": "rp_bG1sCa_opened",
34966
+ "head": "rp_bG1sCa_head",
34967
+ "text": "rp_bG1sCa_text",
34968
+ "heading": "rp_bG1sCa_heading",
34969
+ "title": "rp_bG1sCa_title"
34611
34970
  };
34612
34971
  // src/client/reference/sections/Journal.tsx
34613
34972
  /** How long typing pauses before the notes are saved. */
@@ -35704,27 +36063,27 @@ window.__ModuleLoader__.load({
35704
36063
  tag$7.textContent = css$7;
35705
36064
  var ChatSettingsView_module_css_default = {
35706
36065
  "message": "rp_wLpbxW_message",
35707
- "table": "rp_wLpbxW_table",
35708
- "select": "rp_wLpbxW_select",
35709
- "activity": "rp_wLpbxW_activity",
35710
- "tableViewport": "rp_wLpbxW_tableViewport",
35711
- "help": "rp_wLpbxW_help",
36066
+ "description": "rp_wLpbxW_description",
35712
36067
  "list": "rp_wLpbxW_list",
35713
- "row": "rp_wLpbxW_row",
36068
+ "help": "rp_wLpbxW_help",
36069
+ "tableViewport": "rp_wLpbxW_tableViewport",
36070
+ "label": "rp_wLpbxW_label",
36071
+ "view": "rp_wLpbxW_view",
36072
+ "run": "rp_wLpbxW_run",
35714
36073
  "pre": "rp_wLpbxW_pre",
35715
- "link": "rp_wLpbxW_link",
35716
36074
  "error": "rp_wLpbxW_error",
35717
- "run": "rp_wLpbxW_run",
35718
- "reasons": "rp_wLpbxW_reasons",
35719
- "activityBody": "rp_wLpbxW_activityBody",
35720
- "notice": "rp_wLpbxW_notice",
35721
36075
  "saved": "rp_wLpbxW_saved",
35722
- "title": "rp_wLpbxW_title",
36076
+ "activityBody": "rp_wLpbxW_activityBody",
35723
36077
  "field": "rp_wLpbxW_field",
35724
- "label": "rp_wLpbxW_label",
35725
36078
  "actions": "rp_wLpbxW_actions",
35726
- "description": "rp_wLpbxW_description",
35727
- "view": "rp_wLpbxW_view"
36079
+ "activity": "rp_wLpbxW_activity",
36080
+ "title": "rp_wLpbxW_title",
36081
+ "notice": "rp_wLpbxW_notice",
36082
+ "table": "rp_wLpbxW_table",
36083
+ "reasons": "rp_wLpbxW_reasons",
36084
+ "row": "rp_wLpbxW_row",
36085
+ "select": "rp_wLpbxW_select",
36086
+ "link": "rp_wLpbxW_link"
35728
36087
  };
35729
36088
  // src/client/chat-settings/settings-api.ts
35730
36089
  /** The chat is not a roleplay session, so it has no settings. */
@@ -40100,7 +40459,7 @@ window.__ModuleLoader__.load({
40100
40459
  saved: "Guardado.",
40101
40460
  saveFailed: "Não foi possível guardar os ajustes: {message}"
40102
40461
  }
40103
- }, dictionaries$9), dictionaries$22), dictionaries$3);
40462
+ }, dictionaries$9), dictionaries$23), dictionaries$3);
40104
40463
  // src/client/chat-settings/index.ts
40105
40464
  const NAMESPACE$2 = "roleplay.chatSettings";
40106
40465
  const VIEW_ID = "roleplay-settings";
@@ -40141,11 +40500,11 @@ window.__ModuleLoader__.load({
40141
40500
  }
40142
40501
  tag$6.textContent = css$6;
40143
40502
  var SettingsForm_module_css_default = {
40503
+ "form": "rp_eL0Ehq_form",
40144
40504
  "failed": "rp_eL0Ehq_failed",
40505
+ "save": "rp_eL0Ehq_save",
40145
40506
  "unavailable": "rp_eL0Ehq_unavailable",
40146
- "form": "rp_eL0Ehq_form",
40147
40507
  "footer": "rp_eL0Ehq_footer",
40148
- "save": "rp_eL0Ehq_save",
40149
40508
  "readOnly": "rp_eL0Ehq_readOnly"
40150
40509
  };
40151
40510
  // src/client/ui/SettingsForm.tsx
@@ -40203,17 +40562,17 @@ window.__ModuleLoader__.load({
40203
40562
  }
40204
40563
  tag$5.textContent = css$5;
40205
40564
  var SettingsValueField_module_css_default = {
40206
- "invalid": "rp_AFBKEG_invalid",
40207
40565
  "head": "rp_AFBKEG_head",
40208
- "hint": "rp_AFBKEG_hint",
40566
+ "label": "rp_AFBKEG_label",
40567
+ "reset": "rp_AFBKEG_reset",
40568
+ "helpButton": "rp_AFBKEG_helpButton",
40209
40569
  "input": "rp_AFBKEG_input",
40210
- "labelGroup": "rp_AFBKEG_labelGroup",
40211
40570
  "help": "rp_AFBKEG_help",
40212
- "label": "rp_AFBKEG_label",
40571
+ "hint": "rp_AFBKEG_hint",
40213
40572
  "badges": "rp_AFBKEG_badges",
40214
- "reset": "rp_AFBKEG_reset",
40215
40573
  "field": "rp_AFBKEG_field",
40216
- "helpButton": "rp_AFBKEG_helpButton"
40574
+ "labelGroup": "rp_AFBKEG_labelGroup",
40575
+ "invalid": "rp_AFBKEG_invalid"
40217
40576
  };
40218
40577
  // src/client/ui/SettingsValueField.tsx
40219
40578
  /**
@@ -40299,13 +40658,13 @@ window.__ModuleLoader__.load({
40299
40658
  }
40300
40659
  tag$4.textContent = css$4;
40301
40660
  var CatalogueSettings_module_css_default = {
40661
+ "row": "rp_KPhXDa_row",
40662
+ "keyHint": "rp_KPhXDa_keyHint",
40302
40663
  "problem": "rp_KPhXDa_problem",
40303
- "field": "rp_KPhXDa_field",
40304
40664
  "title": "rp_KPhXDa_title",
40305
- "keyArea": "rp_KPhXDa_keyArea",
40306
- "keyHint": "rp_KPhXDa_keyHint",
40307
- "row": "rp_KPhXDa_row",
40665
+ "field": "rp_KPhXDa_field",
40308
40666
  "label": "rp_KPhXDa_label",
40667
+ "keyArea": "rp_KPhXDa_keyArea",
40309
40668
  "actions": "rp_KPhXDa_actions",
40310
40669
  "section": "rp_KPhXDa_section",
40311
40670
  "hint": "rp_KPhXDa_hint"
@@ -40549,17 +40908,17 @@ window.__ModuleLoader__.load({
40549
40908
  tag$3.textContent = css$3;
40550
40909
  var AssistantSettings_module_css_default = {
40551
40910
  "head": "rp_ZwzM4q_head",
40552
- "invalid": "rp_ZwzM4q_invalid",
40553
40911
  "fieldHint": "rp_ZwzM4q_fieldHint",
40554
- "title": "rp_ZwzM4q_title",
40912
+ "invalid": "rp_ZwzM4q_invalid",
40555
40913
  "fields": "rp_ZwzM4q_fields",
40556
- "field": "rp_ZwzM4q_field",
40557
- "section": "rp_ZwzM4q_section",
40558
40914
  "reset": "rp_ZwzM4q_reset",
40559
- "label": "rp_ZwzM4q_label",
40560
- "badges": "rp_ZwzM4q_badges",
40915
+ "select": "rp_ZwzM4q_select",
40916
+ "section": "rp_ZwzM4q_section",
40561
40917
  "hint": "rp_ZwzM4q_hint",
40562
- "select": "rp_ZwzM4q_select"
40918
+ "field": "rp_ZwzM4q_field",
40919
+ "badges": "rp_ZwzM4q_badges",
40920
+ "label": "rp_ZwzM4q_label",
40921
+ "title": "rp_ZwzM4q_title"
40563
40922
  };
40564
40923
  // src/client/settings/AssistantSettings.tsx
40565
40924
  function ChoiceField({ t, spec, state, disabled, onEdit, onReset }) {
@@ -42995,28 +43354,28 @@ window.__ModuleLoader__.load({
42995
43354
  }
42996
43355
  tag$2.textContent = css$2;
42997
43356
  var NarrationView_module_css_default = {
42998
- "imageStatus": "rp_NFPimG_imageStatus",
42999
- "name": "rp_NFPimG_name",
43000
- "narration": "rp_NFPimG_narration",
43001
- "preview": "rp_NFPimG_preview",
43002
- "oocRefused": "rp_NFPimG_oocRefused",
43003
- "imageButton": "rp_NFPimG_imageButton",
43004
- "imageError": "rp_NFPimG_imageError",
43005
- "images": "rp_NFPimG_images",
43006
- "note": "rp_NFPimG_note",
43007
43357
  "oocNote": "rp_NFPimG_oocNote",
43358
+ "words": "rp_NFPimG_words",
43359
+ "images": "rp_NFPimG_images",
43360
+ "name": "rp_NFPimG_name",
43361
+ "line": "rp_NFPimG_line",
43008
43362
  "sceneImage": "rp_NFPimG_sceneImage",
43009
- "dice": "rp_NFPimG_dice",
43010
- "diceSummary": "rp_NFPimG_diceSummary",
43011
- "oocLabel": "rp_NFPimG_oocLabel",
43363
+ "preview": "rp_NFPimG_preview",
43012
43364
  "output": "rp_NFPimG_output",
43013
- "speech": "rp_NFPimG_speech",
43014
- "words": "rp_NFPimG_words",
43015
43365
  "playAll": "rp_NFPimG_playAll",
43366
+ "speech": "rp_NFPimG_speech",
43367
+ "diceSummary": "rp_NFPimG_diceSummary",
43368
+ "dice": "rp_NFPimG_dice",
43369
+ "oocLabel": "rp_NFPimG_oocLabel",
43370
+ "diceList": "rp_NFPimG_diceList",
43371
+ "note": "rp_NFPimG_note",
43016
43372
  "playLine": "rp_NFPimG_playLine",
43373
+ "narration": "rp_NFPimG_narration",
43374
+ "oocRefused": "rp_NFPimG_oocRefused",
43375
+ "imageError": "rp_NFPimG_imageError",
43376
+ "imageStatus": "rp_NFPimG_imageStatus",
43017
43377
  "avatar": "rp_NFPimG_avatar",
43018
- "line": "rp_NFPimG_line",
43019
- "diceList": "rp_NFPimG_diceList"
43378
+ "imageButton": "rp_NFPimG_imageButton"
43020
43379
  };
43021
43380
  // src/client/transcript/PreviewNode.tsx
43022
43381
  /**
@@ -43280,11 +43639,11 @@ window.__ModuleLoader__.load({
43280
43639
  }
43281
43640
  tag$1.textContent = css$1;
43282
43641
  var SuggestionsDock_module_css_default = {
43642
+ "chip": "rp_rWH4DG_chip",
43643
+ "dock": "rp_rWH4DG_dock",
43283
43644
  "label": "rp_rWH4DG_label",
43284
43645
  "card": "rp_rWH4DG_card",
43285
- "dock": "rp_rWH4DG_dock",
43286
- "lines": "rp_rWH4DG_lines",
43287
- "chip": "rp_rWH4DG_chip"
43646
+ "lines": "rp_rWH4DG_lines"
43288
43647
  };
43289
43648
  // src/client/transcript/SuggestionsDock.tsx
43290
43649
  /** The suggestions are made after the output is shown, so they are asked for until they are there. */
@@ -43444,16 +43803,16 @@ window.__ModuleLoader__.load({
43444
43803
  }
43445
43804
  tag.textContent = css;
43446
43805
  var TurnsDock_module_css_default = {
43447
- "comparison": "rp_f4YLlq_comparison",
43448
- "error": "rp_f4YLlq_error",
43449
43806
  "comparisonHead": "rp_f4YLlq_comparisonHead",
43450
- "button": "rp_f4YLlq_button",
43451
- "dock": "rp_f4YLlq_dock",
43452
- "comparisonLine": "rp_f4YLlq_comparisonLine",
43453
43807
  "select": "rp_f4YLlq_select",
43808
+ "comparisonLine": "rp_f4YLlq_comparisonLine",
43454
43809
  "group": "rp_f4YLlq_group",
43455
- "count": "rp_f4YLlq_count",
43456
- "comparisonSubject": "rp_f4YLlq_comparisonSubject"
43810
+ "comparisonSubject": "rp_f4YLlq_comparisonSubject",
43811
+ "button": "rp_f4YLlq_button",
43812
+ "comparison": "rp_f4YLlq_comparison",
43813
+ "dock": "rp_f4YLlq_dock",
43814
+ "error": "rp_f4YLlq_error",
43815
+ "count": "rp_f4YLlq_count"
43457
43816
  };
43458
43817
  // src/client/transcript/withdrawn.ts
43459
43818
  /** The rows of the transcript that belong to turns the story is not at, by the key DSH gives each row. */