narrat 3.10.3 → 3.10.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.
package/dist/narrat.es.js CHANGED
@@ -4674,16 +4674,14 @@ const So = "###_--_~=:;_JUMP", ca = "###_--_~=:;_RETURN", jh = "###_--_~=:;_OK",
4674
4674
  function Lh(e) {
4675
4675
  return e === So || e === ca || e === jh || e === wo;
4676
4676
  }
4677
- const Dh = "3.10.3", Rh = /* @__PURE__ */ new Date("2024-04-13T20:14:47.707Z"), Rl = {
4677
+ const Dh = "3.10.4", Rh = /* @__PURE__ */ new Date("2024-04-29T21:05:16.882Z"), Rl = {
4678
4678
  branch: "main",
4679
- commit: "2bd479c6fa6db7285007a6b6b163907862383e7b"
4679
+ commit: "7fa9addf203526814d8bede1e46a30b8af563454"
4680
4680
  }, Mh = tr.WARN, Fh = 400, $o = 20, Ko = "@empty", Ml = {
4681
4681
  background: Ko
4682
4682
  }, Uh = f.Type.Optional(
4683
- f.Type.Object({
4684
- debugMenu: f.Type.Optional(f.Type.String()),
4685
- jumpMenu: f.Type.Optional(f.Type.String())
4686
- })
4683
+ // See inputs-store.ts for possibilities
4684
+ f.Type.Record(f.Type.String(), f.Type.Union([f.Type.String(), f.Type.Boolean()]))
4687
4685
  ), vu = f.Type.Optional(
4688
4686
  f.Type.Object({
4689
4687
  animateText: f.Type.Optional(f.Type.Boolean()),
@@ -7803,6 +7801,13 @@ class m_ extends EventTarget {
7803
7801
  for (const [n, r] of this.gamepad.buttons.entries())
7804
7802
  r.state.pressed, r.previous.pressed;
7805
7803
  }
7804
+ getKeybindKey(n, r) {
7805
+ const i = n.id, s = de().hotkeys[i];
7806
+ return typeof s < "u" ? {
7807
+ ...r,
7808
+ keyboardKey: s
7809
+ } : r;
7810
+ }
7806
7811
  update() {
7807
7812
  this.updateGamepad(), this.debugGamepad();
7808
7813
  for (const n of Object.values(this.gameActions))
@@ -7810,7 +7815,7 @@ class m_ extends EventTarget {
7810
7815
  const r = this.actions[n.id], i = ze(r.state), s = r.state;
7811
7816
  r.previous = i, n.action === "press" && (n.keybinds.some((l) => {
7812
7817
  let u = !1;
7813
- if (typeof l.keyboardKey == "string" && this.getKeyboardState(l.keyboardKey).current === !0 && (u = !0), typeof l.gamepadButton == "number") {
7818
+ if (l = this.getKeybindKey(n, l), typeof l.keyboardKey == "string" && this.getKeyboardState(l.keyboardKey).current === !0 && (u = !0), typeof l.gamepadButton == "number") {
7814
7819
  const c = this.getGamepadState(l.gamepadButton);
7815
7820
  c && c.current.pressed === !0 && (u = !0);
7816
7821
  }
@@ -18346,9 +18351,9 @@ const qC = /* @__PURE__ */ hn(TC, [["render", VC]]), HC = ["src"], KC = ["innerH
18346
18351
  ]));
18347
18352
  }
18348
18353
  }), $s = {};
18349
- async function ek(e) {
18354
+ async function e1(e) {
18350
18355
  fn.log("Loading videos");
18351
- const t = [], n = async (i, s) => await tk(i, s), r = (i, s) => {
18356
+ const t = [], n = async (i, s) => await t1(i, s), r = (i, s) => {
18352
18357
  t.push(n(i, s));
18353
18358
  };
18354
18359
  if (e.preload.video)
@@ -18358,7 +18363,7 @@ async function ek(e) {
18358
18363
  }
18359
18364
  return Promise.all(t);
18360
18365
  }
18361
- async function tk(e, t) {
18366
+ async function t1(e, t) {
18362
18367
  if ($s[e])
18363
18368
  return $s[e];
18364
18369
  const n = new Promise((r, i) => {
@@ -18371,7 +18376,7 @@ async function tk(e, t) {
18371
18376
  });
18372
18377
  return $s[e] = n, n;
18373
18378
  }
18374
- async function nk() {
18379
+ async function n1() {
18375
18380
  const t = tt().scripts;
18376
18381
  Lt().setMasterVolume(rn().options.volume ?? 1), await Ie().loadScripts(t), jt().setup();
18377
18382
  for (const [, n] of Re.customStores())
@@ -18381,17 +18386,17 @@ async function nk() {
18381
18386
  }
18382
18387
  Re.addCustomSettings(), wf();
18383
18388
  }
18384
- async function rk() {
18385
- const e = ke(), t = Jv(tt()), n = ek(tt()), r = ah(rn());
18389
+ async function r1() {
18390
+ const e = ke(), t = Jv(tt()), n = e1(tt()), r = ah(rn());
18386
18391
  if (Re.plugins) {
18387
18392
  const i = [];
18388
18393
  for (const s of Re.plugins)
18389
18394
  s.loadingPromises && i.push(Promise.all(s.loadingPromises));
18390
18395
  i.length > 0 && (e.setLoadingStep("Plugins", 0), await Promise.all(i));
18391
18396
  }
18392
- e.setLoadingStep("Assets", 0.3), await Promise.all([t, n, r]), Re.callHook("onAssetsLoaded"), e.setLoadingStep("Starting", 0.9), await nk(), Re.callHook("onGameSetup"), e.gameLoaded();
18397
+ e.setLoadingStep("Assets", 0.3), await Promise.all([t, n, r]), Re.callHook("onAssetsLoaded"), e.setLoadingStep("Starting", 0.9), await n1(), Re.callHook("onGameSetup"), e.gameLoaded();
18393
18398
  }
18394
- const ik = ["id"], ok = /* @__PURE__ */ $e({
18399
+ const i1 = ["id"], o1 = /* @__PURE__ */ $e({
18395
18400
  __name: "GameScene",
18396
18401
  props: {
18397
18402
  sceneId: {},
@@ -18410,7 +18415,7 @@ const ik = ["id"], ok = /* @__PURE__ */ $e({
18410
18415
  onFinished: i,
18411
18416
  options: s.options
18412
18417
  }, null, 40, ["options"]))
18413
- ], 8, ik));
18418
+ ], 8, i1));
18414
18419
  }
18415
18420
  }), fi = bt("achievements", {
18416
18421
  state: () => ({
@@ -18496,7 +18501,7 @@ const ik = ["id"], ok = /* @__PURE__ */ $e({
18496
18501
  }
18497
18502
  }
18498
18503
  }
18499
- ), sk = {
18504
+ ), s1 = {
18500
18505
  main: {
18501
18506
  store: ke,
18502
18507
  save: "main"
@@ -18590,8 +18595,8 @@ const ik = ["id"], ok = /* @__PURE__ */ $e({
18590
18595
  avoidReset: !0
18591
18596
  }
18592
18597
  };
18593
- Zb(sk);
18594
- const ak = /* @__PURE__ */ $e({
18598
+ Zb(s1);
18599
+ const a1 = /* @__PURE__ */ $e({
18595
18600
  __name: "app",
18596
18601
  props: {
18597
18602
  options: {}
@@ -18609,7 +18614,7 @@ const ak = /* @__PURE__ */ $e({
18609
18614
  gt().refreshScreenSize();
18610
18615
  }
18611
18616
  return ft(async () => {
18612
- Re.callHook("onAppMounted"), await rk(), o.inputsContainer.addEventListener(
18617
+ Re.callHook("onAppMounted"), await r1(), o.inputsContainer.addEventListener(
18613
18618
  "resize",
18614
18619
  Jo(
18615
18620
  () => {
@@ -18635,7 +18640,7 @@ const ak = /* @__PURE__ */ $e({
18635
18640
  }, [
18636
18641
  ct(xi, { name: "screens-fade" }, {
18637
18642
  default: Ze(() => [
18638
- (D(), Ce(ok, {
18643
+ (D(), Ce(o1, {
18639
18644
  key: i.value,
18640
18645
  sceneId: i.value,
18641
18646
  options: it(r).currentOptions
@@ -18656,7 +18661,7 @@ const ak = /* @__PURE__ */ $e({
18656
18661
  ct(ZC)
18657
18662
  ], 64));
18658
18663
  }
18659
- }), lk = new q(
18664
+ }), l1 = new q(
18660
18665
  "add_level",
18661
18666
  [
18662
18667
  {
@@ -18681,7 +18686,7 @@ const ak = /* @__PURE__ */ $e({
18681
18686
  }
18682
18687
  vt().incrementSkill(t, n);
18683
18688
  }
18684
- ), ck = q.FromOptions({
18689
+ ), c1 = q.FromOptions({
18685
18690
  keyword: "set_level",
18686
18691
  argTypes: [
18687
18692
  { name: "skill", type: "string" },
@@ -18700,7 +18705,7 @@ const ak = /* @__PURE__ */ $e({
18700
18705
  }
18701
18706
  vt().setSkillLevel(t, n);
18702
18707
  }
18703
- }), uk = new q(
18708
+ }), u1 = new q(
18704
18709
  "add_xp",
18705
18710
  [
18706
18711
  { name: "xpKey", type: "string" },
@@ -18713,7 +18718,7 @@ const ak = /* @__PURE__ */ $e({
18713
18718
  "add_xp command needs a skill id and a value as parameters"
18714
18719
  ), vt().addXp(t, n);
18715
18720
  }
18716
- ), dk = new q(
18721
+ ), d1 = new q(
18717
18722
  "get_level",
18718
18723
  [
18719
18724
  {
@@ -18730,7 +18735,7 @@ const ak = /* @__PURE__ */ $e({
18730
18735
  const n = vt().getSkill(t);
18731
18736
  return n || ce(e, `Skill ${t} not found`), n.level;
18732
18737
  }
18733
- ), fk = new q(
18738
+ ), f1 = new q(
18734
18739
  "get_xp",
18735
18740
  [
18736
18741
  {
@@ -18744,7 +18749,7 @@ const ak = /* @__PURE__ */ $e({
18744
18749
  const n = vt().getSkillXp(t);
18745
18750
  return n || ce(e, `XP ${t} not found`), n;
18746
18751
  }
18747
- ), pk = new q(
18752
+ ), p1 = new q(
18748
18753
  "roll",
18749
18754
  [
18750
18755
  { name: "id", type: "string" },
@@ -18779,15 +18784,15 @@ const ak = /* @__PURE__ */ $e({
18779
18784
  }
18780
18785
  return fd(n).succeeded;
18781
18786
  }
18782
- ), mk = new q(
18787
+ ), m1 = new q(
18783
18788
  "get_skill_check",
18784
18789
  [{ name: "skillCheckId", type: "string" }],
18785
18790
  async (e) => vt().getSkillCheck(e.options.skillCheckId)
18786
- ), hk = new q(
18791
+ ), h1 = new q(
18787
18792
  "skill_check_result",
18788
18793
  [{ name: "skillCheckId", type: "string" }],
18789
18794
  async (e) => vt().getSkillCheck(e.options.skillCheckId).succeeded
18790
- ), yk = new q(
18795
+ ), y1 = new q(
18791
18796
  "reset_roll",
18792
18797
  [
18793
18798
  {
@@ -18796,7 +18801,7 @@ const ak = /* @__PURE__ */ $e({
18796
18801
  }
18797
18802
  ],
18798
18803
  async (e) => vt().resetSkillCheck(e.options.id)
18799
- ), gk = new q(
18804
+ ), g1 = new q(
18800
18805
  "add_stat",
18801
18806
  [
18802
18807
  { name: "statKey", type: "string" },
@@ -18809,7 +18814,7 @@ const ak = /* @__PURE__ */ $e({
18809
18814
  "add_stat command needs a stat id and a value as parameters"
18810
18815
  ), Xt().addStat(t, n);
18811
18816
  }
18812
- ), vk = new q(
18817
+ ), v1 = new q(
18813
18818
  "set_stat",
18814
18819
  [
18815
18820
  { name: "statKey", type: "string" },
@@ -18822,17 +18827,17 @@ const ak = /* @__PURE__ */ $e({
18822
18827
  "set_stat command needs a stat id and a value as parameters"
18823
18828
  ), Xt().setStat(t, n);
18824
18829
  }
18825
- ), _k = new q("get_stat_value", [{ name: "statKey", type: "string" }], async (e) => {
18830
+ ), _1 = new q("get_stat_value", [{ name: "statKey", type: "string" }], async (e) => {
18826
18831
  const { statKey: t } = e.options;
18827
18832
  return t || ce(
18828
18833
  e,
18829
18834
  "get_stat_value command needs a stat id as parameter"
18830
18835
  ), Xt().getStatValue(t);
18831
- }), bk = new q("show_hud", [], async (e) => {
18836
+ }), b1 = new q("show_hud", [], async (e) => {
18832
18837
  Xt().setVisibility(!0);
18833
- }), Tk = new q("hide_hud", [], async (e) => {
18838
+ }), T1 = new q("hide_hud", [], async (e) => {
18834
18839
  Xt().setVisibility(!1);
18835
- }), Sk = q.FromOptions({
18840
+ }), S1 = q.FromOptions({
18836
18841
  keyword: "jump",
18837
18842
  argTypes: "any",
18838
18843
  runner: async (e) => {
@@ -18849,7 +18854,7 @@ const ak = /* @__PURE__ */ $e({
18849
18854
  }
18850
18855
  return n.jumpTarget = r, So;
18851
18856
  }
18852
- }), wk = q.FromOptions({
18857
+ }), w1 = q.FromOptions({
18853
18858
  keyword: "run",
18854
18859
  argTypes: "any",
18855
18860
  runner: async (e) => {
@@ -18857,7 +18862,7 @@ const ak = /* @__PURE__ */ $e({
18857
18862
  const t = e.args[0];
18858
18863
  return await Ie().runLabelFunction(t, ...e.args.slice(1));
18859
18864
  }
18860
- }), $k = q.FromOptions({
18865
+ }), $1 = q.FromOptions({
18861
18866
  keyword: "var",
18862
18867
  argTypes: [
18863
18868
  { name: "name", type: "string" },
@@ -18867,30 +18872,30 @@ const ak = /* @__PURE__ */ $e({
18867
18872
  const { name: t, value: n } = e.options;
18868
18873
  Ie().addScopedVariable(t, n);
18869
18874
  }
18870
- }), Ck = q.FromOptions({
18875
+ }), C1 = q.FromOptions({
18871
18876
  keyword: "return",
18872
18877
  argTypes: [{ name: "value", type: "any" }],
18873
18878
  runner: async (e) => {
18874
18879
  const { value: t } = e.options;
18875
18880
  return Ie().setReturnValue(t), ca;
18876
18881
  }
18877
- }), kk = q.FromOptions({
18882
+ }), k1 = q.FromOptions({
18878
18883
  keyword: "log",
18879
18884
  argTypes: "any",
18880
18885
  runner: async (e) => {
18881
18886
  g$(e, ...e.args);
18882
18887
  }
18883
- }), Ok = q.FromOptions({
18888
+ }), O1 = q.FromOptions({
18884
18889
  keyword: "menu_return",
18885
18890
  argTypes: [],
18886
18891
  runner: async (e) => (df(), wo)
18887
- }), Ak = q.FromOptions({
18892
+ }), A1 = q.FromOptions({
18888
18893
  keyword: "save",
18889
18894
  argTypes: [{ name: "name", type: "string", optional: !0 }],
18890
18895
  runner: async (e) => {
18891
18896
  await kf({ saveName: e.options.name });
18892
18897
  }
18893
- }), Ek = q.FromOptions({
18898
+ }), E1 = q.FromOptions({
18894
18899
  keyword: "save_prompt",
18895
18900
  argTypes: [{ name: "name", type: "string", optional: !0 }],
18896
18901
  runner: async (e) => {
@@ -18899,13 +18904,13 @@ const ak = /* @__PURE__ */ $e({
18899
18904
  withPrompt: !0
18900
18905
  });
18901
18906
  }
18902
- }), Ik = q.FromOptions({
18907
+ }), I1 = q.FromOptions({
18903
18908
  keyword: "reset_global_save",
18904
18909
  argTypes: [],
18905
18910
  runner: async (e) => {
18906
18911
  await Cf();
18907
18912
  }
18908
- }), Pk = q.FromOptions({
18913
+ }), P1 = q.FromOptions({
18909
18914
  keyword: "new",
18910
18915
  argTypes: [
18911
18916
  { name: "name", type: "string" },
@@ -18918,18 +18923,18 @@ const ak = /* @__PURE__ */ $e({
18918
18923
  if (t === "Object")
18919
18924
  return {};
18920
18925
  }
18921
- }), Nk = [
18926
+ }), N1 = [
18922
18927
  { name: "mode", type: "string" },
18923
18928
  { name: "audio", type: "string" },
18924
18929
  { name: "channel", type: "number", optional: !0 }
18925
- ], xk = new q(
18930
+ ], x1 = new q(
18926
18931
  "play",
18927
- Nk,
18932
+ N1,
18928
18933
  async (e) => {
18929
18934
  const t = Lt(), { mode: n, audio: r, channel: i } = e.options, s = ss(e, n);
18930
18935
  s && t.playChannel(s, r, i ?? 0);
18931
18936
  }
18932
- ), jk = new q(
18937
+ ), j1 = new q(
18933
18938
  "resume",
18934
18939
  [
18935
18940
  { name: "mode", type: "string" },
@@ -18939,7 +18944,7 @@ const ak = /* @__PURE__ */ $e({
18939
18944
  const t = Lt(), { mode: n, channel: r } = e.options, i = ss(e, n);
18940
18945
  i && t.resumeChannel(i, r ?? 0);
18941
18946
  }
18942
- ), Lk = new q(
18947
+ ), L1 = new q(
18943
18948
  "pause",
18944
18949
  [
18945
18950
  { name: "mode", type: "string" },
@@ -18949,7 +18954,7 @@ const ak = /* @__PURE__ */ $e({
18949
18954
  const t = Lt(), { mode: n, channel: r } = e.options, i = ss(e, n);
18950
18955
  i && t.pauseChannel(i, r ?? 0);
18951
18956
  }
18952
- ), Dk = new q(
18957
+ ), D1 = new q(
18953
18958
  "stop",
18954
18959
  [
18955
18960
  { name: "mode", type: "string" },
@@ -18961,12 +18966,12 @@ const ak = /* @__PURE__ */ $e({
18961
18966
  }
18962
18967
  );
18963
18968
  function ss(e, t) {
18964
- return Rk(t) ? t : (ce(e, `${t} is not a valid audio mode.`), !1);
18969
+ return R1(t) ? t : (ce(e, `${t} is not a valid audio mode.`), !1);
18965
18970
  }
18966
- function Rk(e) {
18971
+ function R1(e) {
18967
18972
  return !!du.includes(e);
18968
18973
  }
18969
- const Mk = new q(
18974
+ const M1 = new q(
18970
18975
  "set",
18971
18976
  [
18972
18977
  { name: "key", type: "string" },
@@ -18976,7 +18981,7 @@ const Mk = new q(
18976
18981
  const t = ai();
18977
18982
  Ip(t, `$${e.options.key}`, e.options.value);
18978
18983
  }
18979
- ), Fk = new q(
18984
+ ), F1 = new q(
18980
18985
  "add",
18981
18986
  [
18982
18987
  { name: "key", type: "string" },
@@ -18986,7 +18991,7 @@ const Mk = new q(
18986
18991
  const t = ai();
18987
18992
  Pp(t, `$${e.options.key}`, e.options.value);
18988
18993
  }
18989
- ), Uk = new q(
18994
+ ), U1 = new q(
18990
18995
  "set_screen",
18991
18996
  [
18992
18997
  { name: "screen", type: "string" },
@@ -19014,7 +19019,7 @@ const Mk = new q(
19014
19019
  e.options.layer
19015
19020
  ) : t.setScreen(e.options.screen, e.options.layer ?? 0);
19016
19021
  }
19017
- ), Bk = new q(
19022
+ ), B1 = new q(
19018
19023
  "empty_layer",
19019
19024
  [
19020
19025
  { name: "layer", type: "number" },
@@ -19030,7 +19035,7 @@ const Mk = new q(
19030
19035
  delay: e.options.transitionDelay
19031
19036
  }) : t.emptyLayer(e.options.layer);
19032
19037
  }
19033
- ), Vk = new q(
19038
+ ), V1 = new q(
19034
19039
  "set_button",
19035
19040
  [
19036
19041
  { name: "buttonId", type: "string" },
@@ -19079,7 +19084,7 @@ const bl = [
19079
19084
  type: "boolean",
19080
19085
  optional: !0
19081
19086
  }
19082
- ], qk = Vn.FromOptions({
19087
+ ], q1 = Vn.FromOptions({
19083
19088
  keyword: "talk",
19084
19089
  argTypes: bl,
19085
19090
  runner: async (e, t) => {
@@ -19094,7 +19099,7 @@ const bl = [
19094
19099
  }), n || Vn.ManageAutoAdvance(e);
19095
19100
  },
19096
19101
  returnAfterPlayerAnswer: !0
19097
- }), Hk = Vn.FromOptions({
19102
+ }), H1 = Vn.FromOptions({
19098
19103
  keyword: "think",
19099
19104
  argTypes: bl,
19100
19105
  runner: async (e, t) => {
@@ -19109,7 +19114,7 @@ const bl = [
19109
19114
  }), n || Vn.ManageAutoAdvance(e);
19110
19115
  },
19111
19116
  returnAfterPlayerAnswer: !0
19112
- }), Kk = Vn.FromOptions({
19117
+ }), K1 = Vn.FromOptions({
19113
19118
  keyword: "narrate",
19114
19119
  argTypes: bl.slice(2, 5),
19115
19120
  runner: async (e, t) => {
@@ -19123,7 +19128,7 @@ const bl = [
19123
19128
  }), n || Vn.ManageAutoAdvance(e);
19124
19129
  },
19125
19130
  returnAfterPlayerAnswer: !0
19126
- }), Gk = () => {
19131
+ }), G1 = () => {
19127
19132
  const e = Xi("text", []);
19128
19133
  return (t, n) => {
19129
19134
  const r = e(t, n);
@@ -19131,7 +19136,7 @@ const bl = [
19131
19136
  text: n.code.substring(1, n.code.length - 1)
19132
19137
  }, r;
19133
19138
  };
19134
- }, Wk = q.FromOptions({
19139
+ }, W1 = q.FromOptions({
19135
19140
  keyword: "text",
19136
19141
  argTypes: [],
19137
19142
  runner: async (e, t) => {
@@ -19143,9 +19148,9 @@ const bl = [
19143
19148
  interactive: !0
19144
19149
  });
19145
19150
  },
19146
- parser: Gk(),
19151
+ parser: G1(),
19147
19152
  returnAfterPlayerAnswer: !0
19148
- }), zk = new q(
19153
+ }), z1 = new q(
19149
19154
  "add_item",
19150
19155
  [
19151
19156
  { name: "id", type: "string" },
@@ -19158,7 +19163,7 @@ const bl = [
19158
19163
  amount: n
19159
19164
  });
19160
19165
  }
19161
- ), Qk = new q(
19166
+ ), Q1 = new q(
19162
19167
  "remove_item",
19163
19168
  [
19164
19169
  { name: "id", type: "string" },
@@ -19171,7 +19176,7 @@ const bl = [
19171
19176
  amount: n
19172
19177
  });
19173
19178
  }
19174
- ), Yk = new q(
19179
+ ), Y1 = new q(
19175
19180
  "has_item?",
19176
19181
  [
19177
19182
  { name: "id", type: "string" },
@@ -19181,35 +19186,35 @@ const bl = [
19181
19186
  const { id: t, amount: n } = e.options;
19182
19187
  return Dt().hasItem(t, n);
19183
19188
  }
19184
- ), Jk = new q(
19189
+ ), J1 = new q(
19185
19190
  "item_amount?",
19186
19191
  [{ name: "id", type: "string" }],
19187
19192
  async (e) => {
19188
19193
  const { id: t } = e.options;
19189
19194
  return Dt().getItemAmount(t);
19190
19195
  }
19191
- ), Xk = new q(
19196
+ ), X1 = new q(
19192
19197
  "enable_interaction",
19193
19198
  [{ name: "tag", type: "string" }],
19194
19199
  async (e) => {
19195
19200
  const t = e.options.tag;
19196
19201
  Dt().enableInteraction(t);
19197
19202
  }
19198
- ), Zk = new q(
19203
+ ), Z1 = new q(
19199
19204
  "disable_interaction",
19200
19205
  [{ name: "tag", type: "string" }],
19201
19206
  async (e) => {
19202
19207
  const t = e.options.tag;
19203
19208
  Dt().disableInteraction(t);
19204
19209
  }
19205
- ), e1 = new q(
19210
+ ), ek = new q(
19206
19211
  "start_quest",
19207
19212
  [{ name: "questId", type: "string" }],
19208
19213
  async (e) => {
19209
19214
  const t = e.options.questId;
19210
19215
  Pt().startQuest(t);
19211
19216
  }
19212
- ), t1 = new q(
19217
+ ), tk = new q(
19213
19218
  "start_objective",
19214
19219
  [
19215
19220
  { name: "questId", type: "string" },
@@ -19219,7 +19224,7 @@ const bl = [
19219
19224
  const { questId: t, objectiveId: n } = e.options;
19220
19225
  Pt().startObjective(t, n);
19221
19226
  }
19222
- ), n1 = new q(
19227
+ ), nk = new q(
19223
19228
  "complete_objective",
19224
19229
  [
19225
19230
  { name: "questId", type: "string" },
@@ -19229,7 +19234,7 @@ const bl = [
19229
19234
  const { questId: t, objectiveId: n } = e.options;
19230
19235
  Pt().completeObjective(t, n);
19231
19236
  }
19232
- ), r1 = new q(
19237
+ ), rk = new q(
19233
19238
  "complete_quest",
19234
19239
  [
19235
19240
  { name: "questId", type: "string" },
@@ -19239,19 +19244,19 @@ const bl = [
19239
19244
  const { questId: t, ending: n } = e.options;
19240
19245
  Pt().completeQuest(t, n);
19241
19246
  }
19242
- ), i1 = new q("quest_completed?", [{ name: "questId", type: "string" }], async (e) => {
19247
+ ), ik = new q("quest_completed?", [{ name: "questId", type: "string" }], async (e) => {
19243
19248
  const { questId: t } = e.options;
19244
19249
  return Pt().isQuestCompleted(t);
19245
- }), o1 = new q("quest_succeeded?", [{ name: "questId", type: "string" }], async (e) => {
19250
+ }), ok = new q("quest_succeeded?", [{ name: "questId", type: "string" }], async (e) => {
19246
19251
  const { questId: t } = e.options;
19247
19252
  return Pt().isQuestSucceeded(t);
19248
- }), s1 = new q("quest_failed?", [{ name: "questId", type: "string" }], async (e) => {
19253
+ }), sk = new q("quest_failed?", [{ name: "questId", type: "string" }], async (e) => {
19249
19254
  const { questId: t } = e.options;
19250
19255
  return Pt().isQuestFailed(t);
19251
- }), a1 = new q("quest_ending?", [{ name: "questId", type: "string" }], async (e) => {
19256
+ }), ak = new q("quest_ending?", [{ name: "questId", type: "string" }], async (e) => {
19252
19257
  const { questId: t } = e.options;
19253
19258
  return Pt().getQuestEnding(t);
19254
- }), l1 = new q(
19259
+ }), lk = new q(
19255
19260
  "quest_has_ending?",
19256
19261
  [
19257
19262
  { name: "questId", type: "string" },
@@ -19261,7 +19266,7 @@ const bl = [
19261
19266
  const { questId: t, ending: n } = e.options;
19262
19267
  return Pt().questHasEnding(t, n);
19263
19268
  }
19264
- ), c1 = new q(
19269
+ ), ck = new q(
19265
19270
  "objective_completed?",
19266
19271
  [
19267
19272
  { name: "questId", type: "string" },
@@ -19271,10 +19276,10 @@ const bl = [
19271
19276
  const { questId: t, objectiveId: n } = e.options;
19272
19277
  return Pt().isObjectiveCompleted(t, n);
19273
19278
  }
19274
- ), u1 = new q("quest_started?", [{ name: "questId", type: "string" }], async (e) => {
19279
+ ), uk = new q("quest_started?", [{ name: "questId", type: "string" }], async (e) => {
19275
19280
  const { questId: t } = e.options;
19276
19281
  return Pt().isQuestStarted(t);
19277
- }), d1 = new q(
19282
+ }), dk = new q(
19278
19283
  "objective_started?",
19279
19284
  [
19280
19285
  { name: "questId", type: "string" },
@@ -19284,13 +19289,13 @@ const bl = [
19284
19289
  const { questId: t, objectiveId: n } = e.options;
19285
19290
  return Pt().isObjectiveStarted(t, n);
19286
19291
  }
19287
- ), f1 = q.FromOptions({
19292
+ ), fk = q.FromOptions({
19288
19293
  keyword: "wait",
19289
19294
  argTypes: [{ name: "duration", type: "number" }],
19290
19295
  runner: async (e) => {
19291
19296
  await Kt(e.options.duration);
19292
19297
  }
19293
- }), p1 = new q(
19298
+ }), pk = new q(
19294
19299
  "notify",
19295
19300
  [
19296
19301
  { name: "text", type: "string" },
@@ -19301,25 +19306,25 @@ const bl = [
19301
19306
  const { text: t, icon: n, description: r } = e.options;
19302
19307
  Vt().addNotification(t, r, n);
19303
19308
  }
19304
- ), m1 = new q(
19309
+ ), mk = new q(
19305
19310
  "disable_notifications",
19306
19311
  [],
19307
19312
  async (e) => {
19308
19313
  Vt().disableNotifications();
19309
19314
  }
19310
- ), h1 = new q(
19315
+ ), hk = new q(
19311
19316
  "enable_notifications",
19312
19317
  [],
19313
19318
  async (e) => {
19314
19319
  Vt().enableNotifications();
19315
19320
  }
19316
- ), y1 = new q(
19321
+ ), yk = new q(
19317
19322
  "clear_dialog",
19318
19323
  [],
19319
19324
  async (e) => {
19320
19325
  Ye().clearDialog();
19321
19326
  }
19322
- ), g1 = new q(
19327
+ ), gk = new q(
19323
19328
  "if",
19324
19329
  [{ name: "condition", type: "boolean" }],
19325
19330
  async (e) => {
@@ -19398,7 +19403,7 @@ const bl = [
19398
19403
  newLine: n
19399
19404
  };
19400
19405
  }
19401
- ), v1 = new q(
19406
+ ), vk = new q(
19402
19407
  "==",
19403
19408
  "any",
19404
19409
  async (e) => {
@@ -19412,7 +19417,7 @@ const bl = [
19412
19417
  t = r;
19413
19418
  return n;
19414
19419
  }
19415
- ), _1 = new q(
19420
+ ), _k = new q(
19416
19421
  ">",
19417
19422
  [
19418
19423
  { name: "a", type: "any" },
@@ -19422,7 +19427,7 @@ const bl = [
19422
19427
  const { a: t, b: n } = e.options;
19423
19428
  return t > n;
19424
19429
  }
19425
- ), b1 = new q(
19430
+ ), bk = new q(
19426
19431
  "<",
19427
19432
  [
19428
19433
  { name: "a", type: "any" },
@@ -19432,7 +19437,7 @@ const bl = [
19432
19437
  const { a: t, b: n } = e.options;
19433
19438
  return t < n;
19434
19439
  }
19435
- ), T1 = new q(
19440
+ ), Tk = new q(
19436
19441
  ">=",
19437
19442
  [
19438
19443
  { name: "a", type: "any" },
@@ -19442,7 +19447,7 @@ const bl = [
19442
19447
  const { a: t, b: n } = e.options;
19443
19448
  return t >= n;
19444
19449
  }
19445
- ), S1 = new q(
19450
+ ), Sk = new q(
19446
19451
  "<=",
19447
19452
  [
19448
19453
  { name: "a", type: "any" },
@@ -19452,7 +19457,7 @@ const bl = [
19452
19457
  const { a: t, b: n } = e.options;
19453
19458
  return t <= n;
19454
19459
  }
19455
- ), w1 = new q(
19460
+ ), wk = new q(
19456
19461
  "!=",
19457
19462
  [
19458
19463
  { name: "a", type: "any" },
@@ -19462,25 +19467,25 @@ const bl = [
19462
19467
  const { a: t, b: n } = e.options;
19463
19468
  return t != n;
19464
19469
  }
19465
- ), $1 = new q(
19470
+ ), $k = new q(
19466
19471
  "!",
19467
19472
  [{ name: "a", type: "any" }],
19468
19473
  async (e) => {
19469
19474
  const { a: t } = e.options;
19470
19475
  return !t;
19471
19476
  }
19472
- ), C1 = new q(
19477
+ ), Ck = new q(
19473
19478
  "&&",
19474
19479
  "any",
19475
19480
  async (e) => {
19476
19481
  const t = e.args;
19477
19482
  return e.args.length < 2 && ce(e, "requires at least two arguments"), t.reduce((n, r) => n && r, !0);
19478
19483
  }
19479
- ), k1 = new q(
19484
+ ), kk = new q(
19480
19485
  "||",
19481
19486
  "any",
19482
19487
  async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.reduce((t, n) => t || n, !1))
19483
- ), O1 = new q(
19488
+ ), Ok = new q(
19484
19489
  "?",
19485
19490
  [
19486
19491
  { name: "a", type: "any" },
@@ -19491,27 +19496,27 @@ const bl = [
19491
19496
  const { a: t, b: n, c: r } = e.options;
19492
19497
  return t ? n : r;
19493
19498
  }
19494
- ), A1 = new q(
19499
+ ), Ak = new q(
19495
19500
  "+",
19496
19501
  "any",
19497
19502
  async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.reduce((t, n) => typeof n == "number" ? t + n : (ce(e, "requires all arguments to be numbers"), t), 0))
19498
- ), E1 = new q(
19503
+ ), Ek = new q(
19499
19504
  "-",
19500
19505
  "any",
19501
19506
  async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.slice(1).reduce((t, n) => typeof n == "number" ? t - n : (ce(e, "requires all arguments to be numbers"), t), e.args[0]))
19502
- ), I1 = new q(
19507
+ ), Ik = new q(
19503
19508
  "neg",
19504
19509
  [{ name: "a", type: "number" }],
19505
19510
  async (e) => (e.args.length !== 1 && ce(e, "requires one argument"), -e.options.a)
19506
- ), P1 = new q(
19511
+ ), Pk = new q(
19507
19512
  "abs",
19508
19513
  [{ name: "a", type: "number" }],
19509
19514
  async (e) => (e.args.length !== 1 && ce(e, "requires one argument"), Math.abs(e.options.a))
19510
- ), N1 = new q(
19515
+ ), Nk = new q(
19511
19516
  "*",
19512
19517
  "any",
19513
19518
  async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.reduce((t, n) => typeof n == "number" ? t * n : (ce(e, "requires all arguments to be numbers"), t), 1))
19514
- ), x1 = new q(
19519
+ ), xk = new q(
19515
19520
  "/",
19516
19521
  "any",
19517
19522
  async (e) => {
@@ -19519,7 +19524,7 @@ const bl = [
19519
19524
  const t = e.args[0] / e.args[1];
19520
19525
  return e.args.slice(2).reduce((n, r) => typeof r == "number" ? n / r : (ce(e, "requires all arguments to be numbers"), n), t);
19521
19526
  }
19522
- ), j1 = async (e) => {
19527
+ ), jk = async (e) => {
19523
19528
  const { prompt: t, choices: n } = e.staticOptions, r = [];
19524
19529
  for (const [, o] of n.entries()) {
19525
19530
  const l = await Zo(o.prompt);
@@ -19542,9 +19547,9 @@ const bl = [
19542
19547
  allowed: u
19543
19548
  };
19544
19549
  }).filter((o) => o.choice), s = await Nf(t, i);
19545
- return await M1(e, s);
19550
+ return await Mk(e, s);
19546
19551
  };
19547
- function L1(e, t) {
19552
+ function Lk(e, t) {
19548
19553
  t.branch || e.parserContext.error(
19549
19554
  t.line,
19550
19555
  `Choice option doesn't have any branch to go to (${t.code} - ${t.line})`
@@ -19571,7 +19576,7 @@ function L1(e, t) {
19571
19576
  skillBranches: n
19572
19577
  };
19573
19578
  }
19574
- const D1 = (e, t) => {
19579
+ const Dk = (e, t) => {
19575
19580
  let n = e.currentLine;
19576
19581
  Xi("choice", []);
19577
19582
  const { line: r } = e, i = t.command;
@@ -19584,19 +19589,19 @@ const D1 = (e, t) => {
19584
19589
  const l = r.branch.slice(1).map((u, c) => (u.branch || e.parserContext.error(
19585
19590
  u.line,
19586
19591
  `Choice option doesn't have any branch to go to (${u.code})`
19587
- ), u = F1(e.parserContext, u), L1(e, u)));
19592
+ ), u = Fk(e.parserContext, u), Lk(e, u)));
19588
19593
  return i.staticOptions = {
19589
19594
  prompt: e.processCommandsFunction(e.parserContext, [s], r)[0],
19590
19595
  choices: l
19591
19596
  }, n++, {
19592
19597
  newLine: n
19593
19598
  };
19594
- }, R1 = q.FromOptions({
19599
+ }, Rk = q.FromOptions({
19595
19600
  keyword: "choice",
19596
19601
  argTypes: [],
19597
- runner: j1,
19598
- parser: D1
19599
- }), M1 = async (e, t) => {
19602
+ runner: jk,
19603
+ parser: Dk
19604
+ }), Mk = async (e, t) => {
19600
19605
  const n = t, r = Ie(), { choices: i } = e.staticOptions, s = i[n], o = e.options.choiceResults[n], l = e.staticOptions.prompt;
19601
19606
  _l().trackChoice(l.code, s.prompt.code);
19602
19607
  let u = o.text, c;
@@ -19618,7 +19623,7 @@ const D1 = (e, t) => {
19618
19623
  return await r.addAndRunBlock(m);
19619
19624
  }
19620
19625
  };
19621
- function F1(e, t) {
19626
+ function Fk(e, t) {
19622
19627
  return {
19623
19628
  code: `choicePrompt ${t.code}`,
19624
19629
  indentation: t.indentation,
@@ -19627,29 +19632,29 @@ function F1(e, t) {
19627
19632
  expression: ["choicePrompt", ...t.expression]
19628
19633
  };
19629
19634
  }
19630
- const U1 = new q(
19635
+ const Uk = new q(
19631
19636
  "choicePrompt",
19632
19637
  "any",
19633
19638
  // Will return null if the choice prompt should not be used (failed condition or hidden skillcheck). Otherwise, returns the info needed to display the prompt + later run the skillcheck
19634
19639
  async (e) => {
19635
19640
  const t = e.args;
19636
- return t.length === 1 ? B1(t[0]) : t.length === 2 ? V1(t) : t.length > 2 ? t[0] === "roll" || t[1] === "roll" ? H1(e, t) : q1(e, t) : (ce(e, "Invalid choice prompt line"), {
19641
+ return t.length === 1 ? Bk(t[0]) : t.length === 2 ? Vk(t) : t.length > 2 ? t[0] === "roll" || t[1] === "roll" ? Hk(e, t) : qk(e, t) : (ce(e, "Invalid choice prompt line"), {
19637
19642
  text: t[0]
19638
19643
  });
19639
19644
  }
19640
19645
  );
19641
- function B1(e) {
19646
+ function Bk(e) {
19642
19647
  return {
19643
19648
  text: e
19644
19649
  };
19645
19650
  }
19646
- function V1(e) {
19651
+ function Vk(e) {
19647
19652
  return {
19648
19653
  text: e[1],
19649
19654
  flag: e[0]
19650
19655
  };
19651
19656
  }
19652
- function q1(e, t) {
19657
+ function qk(e, t) {
19653
19658
  const n = t[1] === "if" ? 1 : 2;
19654
19659
  if (t[n] !== "if")
19655
19660
  return ce(e, "Invalid choice prompt line"), {
@@ -19663,7 +19668,7 @@ function q1(e, t) {
19663
19668
  };
19664
19669
  return r && (o.flag = t[0]), o;
19665
19670
  }
19666
- function H1(e, t) {
19671
+ function Hk(e, t) {
19667
19672
  const n = t[0] === "roll" ? 0 : 1, r = n === 1, i = n, s = t[i + 1];
19668
19673
  let o = {}, l = i + 2;
19669
19674
  Op(s) ? o = {
@@ -19720,7 +19725,7 @@ const Bp = q.FromOptions({
19720
19725
  }
19721
19726
  });
19722
19727
  Bp.onPlayerAnswered = async (e, t) => (typeof t != "string" && ce(e, "The player's answer should be a string"), t);
19723
- const K1 = q.FromOptions({
19728
+ const Kk = q.FromOptions({
19724
19729
  keyword: "text_field_prompt",
19725
19730
  argTypes: [{ name: "prompt", type: "string" }],
19726
19731
  runner: async (e) => {
@@ -19732,7 +19737,7 @@ const K1 = q.FromOptions({
19732
19737
  };
19733
19738
  Ye().addDialog(t);
19734
19739
  }
19735
- }), G1 = new q(
19740
+ }), Gk = new q(
19736
19741
  "random",
19737
19742
  [
19738
19743
  { name: "a", type: "number" },
@@ -19745,7 +19750,7 @@ const K1 = q.FromOptions({
19745
19750
  "random command needs two numbers as parameters"
19746
19751
  ), 0) : Math.floor(Math.random() * (n - t + 1)) + t;
19747
19752
  }
19748
- ), W1 = new q(
19753
+ ), Wk = new q(
19749
19754
  "random_float",
19750
19755
  [
19751
19756
  { name: "a", type: "number" },
@@ -19758,7 +19763,7 @@ const K1 = q.FromOptions({
19758
19763
  "random_float command needs two numbers as parameters"
19759
19764
  ), 0) : Math.random() * (n - t) + t;
19760
19765
  }
19761
- ), z1 = new q(
19766
+ ), zk = new q(
19762
19767
  "random_from_args",
19763
19768
  [],
19764
19769
  async (e) => {
@@ -19768,7 +19773,7 @@ const K1 = q.FromOptions({
19768
19773
  "random_from_args command needs at least one argument"
19769
19774
  ), 0) : t[Math.floor(Math.random() * t.length)];
19770
19775
  }
19771
- ), Q1 = new q(
19776
+ ), Qk = new q(
19772
19777
  "random_from_array",
19773
19778
  [{ name: "a", type: "any" }],
19774
19779
  async (e) => {
@@ -19778,18 +19783,18 @@ const K1 = q.FromOptions({
19778
19783
  "random_from_array command needs an array as parameter"
19779
19784
  ), 0);
19780
19785
  }
19781
- ), Y1 = new q(
19786
+ ), Yk = new q(
19782
19787
  "concat",
19783
19788
  "any",
19784
19789
  async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.reduce((t, n) => typeof n == "string" ? `${t}${n}` : (ce(e, "requires all arguments to be strings"), t), ""))
19785
- ), J1 = new q(
19790
+ ), Jk = new q(
19786
19791
  "join",
19787
19792
  "any",
19788
19793
  async (e) => {
19789
19794
  const t = e.args[0];
19790
19795
  return e.args.length < 3 && ce(e, "requires at least 3 arguments"), e.args.slice(1).reduce((n, r) => typeof r == "string" ? `${n}${t}${r}` : (ce(e, "requires all arguments to be strings"), n), "");
19791
19796
  }
19792
- ), X1 = new q(
19797
+ ), Xk = new q(
19793
19798
  "split",
19794
19799
  "any",
19795
19800
  async (e) => {
@@ -19799,7 +19804,7 @@ const K1 = q.FromOptions({
19799
19804
  return n.split(t);
19800
19805
  ce(e, "requires all arguments to be strings");
19801
19806
  }
19802
- ), Z1 = q.FromOptions({
19807
+ ), Zk = q.FromOptions({
19803
19808
  keyword: "str_search",
19804
19809
  argTypes: [
19805
19810
  { name: "str", type: "string" },
@@ -20548,7 +20553,7 @@ const dA = uA("js-commands", Mh), fA = q.FromOptions({
20548
20553
  }
20549
20554
  });
20550
20555
  function mA(e) {
20551
- e.addCommand(R1), e.addCommand(U1), e.addCommand(g1), e.addCommand(gk), e.addCommand(vk), e.addCommand(_k), e.addCommand(bk), e.addCommand(Tk), e.addCommand(y1), e.addCommand(p1), e.addCommand(m1), e.addCommand(h1), e.addCommand(Lk), e.addCommand(xk), e.addCommand(jk), e.addCommand(Dk), e.addCommand(Vk), e.addCommand(Uk), e.addCommand(Bk), e.addCommand(cO), e.addCommand(uO), e.addCommand(dO), e.addCommand(fO), e.addCommand(f1), e.addCommand(v1), e.addCommand(_1), e.addCommand(b1), e.addCommand(T1), e.addCommand(S1), e.addCommand(w1), e.addCommand($1), e.addCommand(C1), e.addCommand(k1), e.addCommand(O1), e.addCommand(A1), e.addCommand(E1), e.addCommand(N1), e.addCommand(x1), e.addCommand(I1), e.addCommand(P1), e.addCommand(Fk), e.addCommand(Mk), e.addCommand(Wk), e.addCommand(qk), e.addCommand(Hk), e.addCommand(Kk), e.addCommand(Sk), e.addCommand(wk), e.addCommand($k), e.addCommand(Ck), e.addCommand(kk), e.addCommand(Ok), e.addCommand(Ak), e.addCommand(Ik), e.addCommand(Ek), e.addCommand(Pk), e.addCommand(e1), e.addCommand(t1), e.addCommand(n1), e.addCommand(r1), e.addCommand(u1), e.addCommand(d1), e.addCommand(i1), e.addCommand(o1), e.addCommand(s1), e.addCommand(a1), e.addCommand(l1), e.addCommand(c1), e.addCommand(zk), e.addCommand(Qk), e.addCommand(Xk), e.addCommand(Zk), e.addCommand(Yk), e.addCommand(Jk), e.addCommand(lk), e.addCommand(ck), e.addCommand(uk), e.addCommand(pk), e.addCommand(yk), e.addCommand(mk), e.addCommand(hk), e.addCommand(dk), e.addCommand(fk), e.addCommand(Bp), e.addCommand(K1), e.addCommand(G1), e.addCommand(W1), e.addCommand(z1), e.addCommand(Q1), e.addCommand(Y1), e.addCommand(J1), e.addCommand(X1), e.addCommand(Z1), e.addCommand(eO), e.addCommand(tO), e.addCommand(nO), e.addCommand(rO), e.addCommand(iO), e.addCommand(sO), e.addCommand(oO), e.addCommand(aO), e.addCommand(lO), e.addCommand(pO), e.addCommand(mO), e.addCommand(hO), e.addCommand(yO), e.addCommand(gO), e.addCommand(vO), e.addCommand(_O), e.addCommand(bO), e.addCommand(TO), e.addCommand(SO), e.addCommand(wO), e.addCommand($O), e.addCommand(CO), e.addCommand(kO), e.addCommand(OO), e.addCommand(AO), e.addCommand(EO), e.addCommand(IO), e.addCommand(PO), e.addCommand(rA), e.addCommand(iA), e.addCommand(nA), e.addCommand(oA), e.addCommand(sA), e.addCommand(aA), e.addCommand(RO), e.addCommand(MO), e.addCommand(FO), e.addCommand(UO), e.addCommand(BO), e.addCommand(VO), e.addCommand(qO), e.addCommand(HO), e.addCommand(KO), e.addCommand(GO), e.addCommand(WO), e.addCommand(zO), e.addCommand(QO), e.addCommand(YO), e.addCommand(JO), e.addCommand(XO), e.addCommand(ZO), e.addCommand(tA), e.addCommand(eA), e.addCommand(v$), e.addCommand(lA), e.addCommand(fA), e.addCommand(pA);
20556
+ e.addCommand(Rk), e.addCommand(Uk), e.addCommand(gk), e.addCommand(g1), e.addCommand(v1), e.addCommand(_1), e.addCommand(b1), e.addCommand(T1), e.addCommand(yk), e.addCommand(pk), e.addCommand(mk), e.addCommand(hk), e.addCommand(L1), e.addCommand(x1), e.addCommand(j1), e.addCommand(D1), e.addCommand(V1), e.addCommand(U1), e.addCommand(B1), e.addCommand(cO), e.addCommand(uO), e.addCommand(dO), e.addCommand(fO), e.addCommand(fk), e.addCommand(vk), e.addCommand(_k), e.addCommand(bk), e.addCommand(Tk), e.addCommand(Sk), e.addCommand(wk), e.addCommand($k), e.addCommand(Ck), e.addCommand(kk), e.addCommand(Ok), e.addCommand(Ak), e.addCommand(Ek), e.addCommand(Nk), e.addCommand(xk), e.addCommand(Ik), e.addCommand(Pk), e.addCommand(F1), e.addCommand(M1), e.addCommand(W1), e.addCommand(q1), e.addCommand(H1), e.addCommand(K1), e.addCommand(S1), e.addCommand(w1), e.addCommand($1), e.addCommand(C1), e.addCommand(k1), e.addCommand(O1), e.addCommand(A1), e.addCommand(I1), e.addCommand(E1), e.addCommand(P1), e.addCommand(ek), e.addCommand(tk), e.addCommand(nk), e.addCommand(rk), e.addCommand(uk), e.addCommand(dk), e.addCommand(ik), e.addCommand(ok), e.addCommand(sk), e.addCommand(ak), e.addCommand(lk), e.addCommand(ck), e.addCommand(z1), e.addCommand(Q1), e.addCommand(X1), e.addCommand(Z1), e.addCommand(Y1), e.addCommand(J1), e.addCommand(l1), e.addCommand(c1), e.addCommand(u1), e.addCommand(p1), e.addCommand(y1), e.addCommand(m1), e.addCommand(h1), e.addCommand(d1), e.addCommand(f1), e.addCommand(Bp), e.addCommand(Kk), e.addCommand(Gk), e.addCommand(Wk), e.addCommand(zk), e.addCommand(Qk), e.addCommand(Yk), e.addCommand(Jk), e.addCommand(Xk), e.addCommand(Zk), e.addCommand(eO), e.addCommand(tO), e.addCommand(nO), e.addCommand(rO), e.addCommand(iO), e.addCommand(sO), e.addCommand(oO), e.addCommand(aO), e.addCommand(lO), e.addCommand(pO), e.addCommand(mO), e.addCommand(hO), e.addCommand(yO), e.addCommand(gO), e.addCommand(vO), e.addCommand(_O), e.addCommand(bO), e.addCommand(TO), e.addCommand(SO), e.addCommand(wO), e.addCommand($O), e.addCommand(CO), e.addCommand(kO), e.addCommand(OO), e.addCommand(AO), e.addCommand(EO), e.addCommand(IO), e.addCommand(PO), e.addCommand(rA), e.addCommand(iA), e.addCommand(nA), e.addCommand(oA), e.addCommand(sA), e.addCommand(aA), e.addCommand(RO), e.addCommand(MO), e.addCommand(FO), e.addCommand(UO), e.addCommand(BO), e.addCommand(VO), e.addCommand(qO), e.addCommand(HO), e.addCommand(KO), e.addCommand(GO), e.addCommand(WO), e.addCommand(zO), e.addCommand(QO), e.addCommand(YO), e.addCommand(JO), e.addCommand(XO), e.addCommand(ZO), e.addCommand(tA), e.addCommand(eA), e.addCommand(v$), e.addCommand(lA), e.addCommand(fA), e.addCommand(pA);
20552
20557
  }
20553
20558
  const hA = $e({
20554
20559
  data() {
@@ -22110,7 +22115,7 @@ Re.callHook("onPageLoaded");
22110
22115
  async function BI(e) {
22111
22116
  Yo.setup(), console.log("Starting narrat...");
22112
22117
  const t = Object.assign(_T(), e), n = Zm();
22113
- bn = um(ak, {
22118
+ bn = um(a1, {
22114
22119
  options: t
22115
22120
  }), bn.use(n), eT(), ke().setOptions(t), nI(bn);
22116
22121
  const r = await C$(t);