narrat 2.15.0 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/common-config.d.ts +1 -0
- package/dist/config/config-input.d.ts +1 -0
- package/dist/narrat.es.js +85 -80
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +34 -34
- package/dist/narrat.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/narrat.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var n9 = Object.defineProperty;
|
|
2
2
|
var r9 = (t, e, n) => e in t ? n9(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Zr = (t, e, n) => (r9(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { ref as Un, reactive as xu, readonly as lc, defineComponent as
|
|
4
|
+
import { ref as Un, reactive as xu, readonly as lc, defineComponent as $n, openBlock as Ae, createBlock as cn, Transition as yf, withCtx as lr, createElementVNode as Pe, normalizeClass as fr, createElementBlock as Ge, createCommentVNode as fn, renderSlot as Yc, createTextVNode as Rl, effectScope as FA, markRaw as Ya, getCurrentInstance as i9, inject as o9, toRaw as gv, watch as ep, isRef as bf, isReactive as Jy, toRef as Sm, nextTick as vk, computed as nt, unref as vt, getCurrentScope as a9, onScopeDispose as s9, toRefs as mk, resolveComponent as ki, withDirectives as wf, vModelText as yv, Fragment as Kn, renderList as ir, normalizeStyle as rr, toDisplayString as Pt, createStaticVNode as u9, TransitionGroup as Xc, onMounted as gs, createVNode as qr, onUnmounted as bv, Teleport as Qy, resolveDynamicComponent as qA, resolveDirective as l9, useSlots as c9, normalizeProps as f9, mergeProps as d9, createApp as h9 } from "vue";
|
|
5
5
|
var Za = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function p9(t) {
|
|
7
7
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -546,7 +546,7 @@ function Yy(t) {
|
|
|
546
546
|
let n = Math.floor(e / 3600), r = Math.floor((e - n * 3600) / 60), i = e - n * 3600 - r * 60;
|
|
547
547
|
return n < 10 && (n = "0" + n), r < 10 && (r = "0" + r), i < 10 && (i = "0" + i), n + ":" + r + ":" + i;
|
|
548
548
|
}
|
|
549
|
-
const V9 =
|
|
549
|
+
const V9 = $n({
|
|
550
550
|
props: {
|
|
551
551
|
containerCssClass: [String, Object],
|
|
552
552
|
cantClose: {
|
|
@@ -38796,7 +38796,7 @@ const tv = "###_--_~=:;_JUMP", gw = "###_--_~=:;_RETURN", Tte = "###_--_~=:;_OK"
|
|
|
38796
38796
|
function Ate(t) {
|
|
38797
38797
|
return t === tv || t === gw || t === Tte || t === nv;
|
|
38798
38798
|
}
|
|
38799
|
-
const Ete = "2.
|
|
38799
|
+
const Ete = "2.16.0", Mte = new Date("2023-06-17T14:00:24.783Z"), Pte = 400, Py = 20;
|
|
38800
38800
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
38801
38801
|
function LL(t) {
|
|
38802
38802
|
return typeof t > "u" || t === null;
|
|
@@ -40493,10 +40493,10 @@ const Eo = oi("screenObjects", {
|
|
|
40493
40493
|
};
|
|
40494
40494
|
} else
|
|
40495
40495
|
i = t.onClick;
|
|
40496
|
-
i.method = (n = (e = i.method) != null ? e : t.clickMethod) != null ? n : "jump", i.args = (r = i.args) != null ? r : [], i.method === "run" ?
|
|
40496
|
+
i.method = (n = (e = i.method) != null ? e : t.clickMethod) != null ? n : "jump", i.args = (r = i.args) != null ? r : [], i.method === "run" ? Cn().runThenGoBackToPreviousDialog(
|
|
40497
40497
|
i.label,
|
|
40498
40498
|
...i.args
|
|
40499
|
-
) : i.method === "jump" ?
|
|
40499
|
+
) : i.method === "jump" ? Cn().jumpToLabel(i.label, ...i.args) : Gt(`Unknown sprite click method ${t.clickMethod}`);
|
|
40500
40500
|
}
|
|
40501
40501
|
},
|
|
40502
40502
|
generateSaveData() {
|
|
@@ -40528,7 +40528,7 @@ const Eo = oi("screenObjects", {
|
|
|
40528
40528
|
return t;
|
|
40529
40529
|
}
|
|
40530
40530
|
}
|
|
40531
|
-
}),
|
|
40531
|
+
}), Cn = oi("vm", {
|
|
40532
40532
|
state: () => ({
|
|
40533
40533
|
stack: [],
|
|
40534
40534
|
data: {},
|
|
@@ -40851,7 +40851,7 @@ class pie {
|
|
|
40851
40851
|
const wn = new pie();
|
|
40852
40852
|
async function TD(t, e) {
|
|
40853
40853
|
var r;
|
|
40854
|
-
const n =
|
|
40854
|
+
const n = Cn();
|
|
40855
40855
|
try {
|
|
40856
40856
|
return await hm(t, e);
|
|
40857
40857
|
} catch (i) {
|
|
@@ -40912,7 +40912,7 @@ async function hm(t, e) {
|
|
|
40912
40912
|
}
|
|
40913
40913
|
async function mie(t) {
|
|
40914
40914
|
Uu("onPlayerAnswered");
|
|
40915
|
-
const e =
|
|
40915
|
+
const e = Cn(), n = e.popAnswerQueue(), r = e.currentLine;
|
|
40916
40916
|
try {
|
|
40917
40917
|
if (n) {
|
|
40918
40918
|
const i = wn.commands[n.commandType];
|
|
@@ -41624,7 +41624,7 @@ const Xt = oi("main", {
|
|
|
41624
41624
|
async setup() {
|
|
41625
41625
|
var n;
|
|
41626
41626
|
const e = pt().scripts;
|
|
41627
|
-
li().setMasterVolume((n = ns().options.volume) != null ? n : 1), await
|
|
41627
|
+
li().setMasterVolume((n = ns().options.volume) != null ? n : 1), await Cn().loadScripts(e), To().setup();
|
|
41628
41628
|
for (const [, r] of wn.customStores())
|
|
41629
41629
|
if (r.setup) {
|
|
41630
41630
|
const i = r.setup();
|
|
@@ -41663,7 +41663,7 @@ const Xt = oi("main", {
|
|
|
41663
41663
|
ri().onScriptEnd(), this.inScript = !1;
|
|
41664
41664
|
},
|
|
41665
41665
|
startMachine() {
|
|
41666
|
-
li().stopAll(), Uu("onPressStart"),
|
|
41666
|
+
li().stopAll(), Uu("onPressStart"), Cn().start(), this.ready = !0, this.startPlaying(), wn.callHook("onGameStart"), this.setFlowState("playing");
|
|
41667
41667
|
},
|
|
41668
41668
|
setSaveSlot(t) {
|
|
41669
41669
|
this.saveSlot = t, lte(t);
|
|
@@ -41673,21 +41673,25 @@ const Xt = oi("main", {
|
|
|
41673
41673
|
const e = My();
|
|
41674
41674
|
e && (t = e.id);
|
|
41675
41675
|
}
|
|
41676
|
-
this.setSaveSlot(t), this.loadGlobalData(), this.startMachine(),
|
|
41676
|
+
this.setSaveSlot(t), this.loadGlobalData(), this.startMachine(), Cn().runGame();
|
|
41677
41677
|
},
|
|
41678
41678
|
async loadGame(t, e) {
|
|
41679
41679
|
if (pt().saves.mode === "manual") {
|
|
41680
41680
|
const n = My();
|
|
41681
41681
|
n && (e = n.id);
|
|
41682
41682
|
}
|
|
41683
|
-
this.setSaveSlot(e), this.startMachine(), t.saveData
|
|
41683
|
+
if (this.setSaveSlot(e), this.startMachine(), t.saveData) {
|
|
41684
|
+
this.setLoadedData(t.saveData), li().reloadAudio(t.saveData.audio);
|
|
41685
|
+
const n = Cn(), r = pt().saves.runOnReload;
|
|
41686
|
+
typeof r == "string" && await Cn().runLabelFunction(r), n.jumpToLabel(t.saveData.vm.lastLabel);
|
|
41687
|
+
}
|
|
41684
41688
|
},
|
|
41685
41689
|
manualSave({
|
|
41686
41690
|
saveName: t,
|
|
41687
41691
|
withPrompt: e
|
|
41688
41692
|
}) {
|
|
41689
41693
|
return new Promise((n) => {
|
|
41690
|
-
|
|
41694
|
+
Cn().hasJumped ? this.saving = {
|
|
41691
41695
|
name: t,
|
|
41692
41696
|
withPrompt: e,
|
|
41693
41697
|
resolver: n
|
|
@@ -41695,7 +41699,7 @@ const Xt = oi("main", {
|
|
|
41695
41699
|
});
|
|
41696
41700
|
},
|
|
41697
41701
|
resetGlobalSave() {
|
|
41698
|
-
|
|
41702
|
+
Cn().globalData = {}, as().globalSave.data = {}, this.autoSaveGame({});
|
|
41699
41703
|
},
|
|
41700
41704
|
finishManualSave(t, e) {
|
|
41701
41705
|
var n, r;
|
|
@@ -41769,7 +41773,7 @@ const Xt = oi("main", {
|
|
|
41769
41773
|
this.playing = !0, this.playTime.start = Date.now();
|
|
41770
41774
|
},
|
|
41771
41775
|
reset() {
|
|
41772
|
-
this.ready = !1, this.errors = [], this.paused = !1,
|
|
41776
|
+
this.ready = !1, this.errors = [], this.paused = !1, Cn().reset(), li().reset(), this.resetAllStores(), this.playing = !1, this.ready = !0, wn.plugins.forEach((t) => {
|
|
41773
41777
|
t.reset && t.reset();
|
|
41774
41778
|
});
|
|
41775
41779
|
},
|
|
@@ -41793,7 +41797,7 @@ const Xt = oi("main", {
|
|
|
41793
41797
|
autoSaveGame({ slotId: t, name: e }) {
|
|
41794
41798
|
const n = t != null ? t : this.saveSlot, r = df(n), i = pte();
|
|
41795
41799
|
r && r.saveData ? i.name = r.saveData.metadata.name : i.name = e != null ? e : "Auto Save", pt().saves.mode === "manual" && (i.name = "Auto Save");
|
|
41796
|
-
const o = Ta(), a = Ir(), s = Zn(), u =
|
|
41800
|
+
const o = Ta(), a = Ir(), s = Zn(), u = Cn(), l = Xt(), f = ss(), c = li(), d = ri(), h = u.generateSaveData(), p = Du(), v = {
|
|
41797
41801
|
version: pw,
|
|
41798
41802
|
screen: o.generateSaveData(),
|
|
41799
41803
|
skills: a.generateSaveData(),
|
|
@@ -41826,7 +41830,7 @@ const Xt = oi("main", {
|
|
|
41826
41830
|
Du().loadSaveData(t.achievements);
|
|
41827
41831
|
},
|
|
41828
41832
|
setLoadedData(t) {
|
|
41829
|
-
const e = Ta(), n = Ir(), r = Zn(), i =
|
|
41833
|
+
const e = Ta(), n = Ir(), r = Zn(), i = Cn(), o = Xt(), a = ss(), s = li(), u = ri();
|
|
41830
41834
|
this.loadGlobalData(), Eo().loadSaveData(t.screenObjects), e.loadSaveData(t.screen), n.loadSaveData(t.skills), r.loadSaveData(t.dialog), i.loadSaveData(t.vm, as().globalSave), o.loadSaveData(t.main), a.loadSaveData(t.hud), s.loadSaveData(t.audio), u.loadSaveData(t.inventory), Vi().loadSaveData(t.quests), wn.plugins.forEach((l) => {
|
|
41831
41835
|
l.load && t[l.pluginId] && l.load(t[l.pluginId]);
|
|
41832
41836
|
}), wn.customStores().forEach(([l, f]) => {
|
|
@@ -41839,7 +41843,7 @@ const Xt = oi("main", {
|
|
|
41839
41843
|
screens: Ta(),
|
|
41840
41844
|
skills: Ir(),
|
|
41841
41845
|
dialog: Zn(),
|
|
41842
|
-
vm:
|
|
41846
|
+
vm: Cn(),
|
|
41843
41847
|
hud: ss(),
|
|
41844
41848
|
audio: li(),
|
|
41845
41849
|
rendering: Io(),
|
|
@@ -42541,7 +42545,8 @@ const eoe = U.Type.Object({
|
|
|
42541
42545
|
showScriptFinishedMessage: U.Type.Optional(U.Type.Boolean())
|
|
42542
42546
|
}), poe = U.Type.Object({
|
|
42543
42547
|
mode: U.Type.String(),
|
|
42544
|
-
slots: U.Type.Number()
|
|
42548
|
+
slots: U.Type.Number(),
|
|
42549
|
+
runOnReload: U.Type.Optional(U.Type.String())
|
|
42545
42550
|
}), oR = U.Type.Array(U.Type.String()), voe = [], moe = U.Type.Object({
|
|
42546
42551
|
baseAssetsPath: U.Type.Optional(U.Type.String()),
|
|
42547
42552
|
baseDataPath: U.Type.Optional(U.Type.String()),
|
|
@@ -47357,7 +47362,7 @@ function QR(t, e, n) {
|
|
|
47357
47362
|
r[i] = n + o;
|
|
47358
47363
|
}
|
|
47359
47364
|
function uc() {
|
|
47360
|
-
const t =
|
|
47365
|
+
const t = Cn(), e = Ir(), n = Ta(), r = ri(), i = Cn().scope, o = {
|
|
47361
47366
|
data: t.data,
|
|
47362
47367
|
global: t.globalData,
|
|
47363
47368
|
skills: e.skills,
|
|
@@ -47372,11 +47377,11 @@ function uc() {
|
|
|
47372
47377
|
};
|
|
47373
47378
|
return new Proxy(o, {
|
|
47374
47379
|
get: (s, u, l) => {
|
|
47375
|
-
const f =
|
|
47380
|
+
const f = Cn().scope, c = Cn().data;
|
|
47376
47381
|
return typeof f[u] < "u" ? f[u] : typeof c[u] < "u" ? c[u] : Reflect.get(s, u, l);
|
|
47377
47382
|
},
|
|
47378
47383
|
set: (s, u, l, f) => {
|
|
47379
|
-
const c =
|
|
47384
|
+
const c = Cn().scope, d = Cn().data;
|
|
47380
47385
|
if (typeof c[u] < "u")
|
|
47381
47386
|
c[u] = l;
|
|
47382
47387
|
else {
|
|
@@ -47505,7 +47510,7 @@ const Ir = oi("skills", {
|
|
|
47505
47510
|
}
|
|
47506
47511
|
});
|
|
47507
47512
|
let BA;
|
|
47508
|
-
const hle =
|
|
47513
|
+
const hle = $n({
|
|
47509
47514
|
components: {
|
|
47510
47515
|
Modal: cc
|
|
47511
47516
|
},
|
|
@@ -47526,7 +47531,7 @@ const hle = Cn({
|
|
|
47526
47531
|
window.addEventListener("keydown", (t) => {
|
|
47527
47532
|
if (this.jumping || (t.key === "d" && this.toggle(), t.key === "j" && this.jump()), t.key === "ArrowDown" && (t.preventDefault(), this.matches.length > this.matchCursor + 1 ? this.matchCursor += 1 : this.matchCursor = 0), t.key === "ArrowUp" && (t.preventDefault(), this.matchCursor > 0 ? this.matchCursor -= 1 : this.matchCursor = this.matches.length - 1), t.key === "Escape" && this.finishJumping(), this.jumping && t.key === "Enter" && this.matchCursor < this.matches.length) {
|
|
47528
47533
|
const e = this.matches[this.matchCursor];
|
|
47529
|
-
|
|
47534
|
+
Cn().jumpToLabel(e), this.finishJumping();
|
|
47530
47535
|
}
|
|
47531
47536
|
});
|
|
47532
47537
|
},
|
|
@@ -47536,7 +47541,7 @@ const hle = Cn({
|
|
|
47536
47541
|
},
|
|
47537
47542
|
labelSelected(t) {
|
|
47538
47543
|
const e = t.target.value;
|
|
47539
|
-
|
|
47544
|
+
Cn().jumpToLabel(e), this.close();
|
|
47540
47545
|
},
|
|
47541
47546
|
close() {
|
|
47542
47547
|
this.showDebug = !1, this.endDebug();
|
|
@@ -47546,7 +47551,7 @@ const hle = Cn({
|
|
|
47546
47551
|
},
|
|
47547
47552
|
open() {
|
|
47548
47553
|
this.showDebug = !0, this.startDebug();
|
|
47549
|
-
const t =
|
|
47554
|
+
const t = Cn(), e = Xt(), n = Vi(), r = ri(), i = Ir();
|
|
47550
47555
|
this.$nextTick(() => {
|
|
47551
47556
|
new qT({
|
|
47552
47557
|
target: this.$refs.variablesViewer,
|
|
@@ -47654,7 +47659,7 @@ const hle = Cn({
|
|
|
47654
47659
|
}
|
|
47655
47660
|
},
|
|
47656
47661
|
computed: {
|
|
47657
|
-
...Ys(
|
|
47662
|
+
...Ys(Cn, ["data"]),
|
|
47658
47663
|
...Ys(Xt, ["playTime", "errors", "playing", "flowState"]),
|
|
47659
47664
|
labels() {
|
|
47660
47665
|
const t = this.script;
|
|
@@ -47809,7 +47814,7 @@ function Rle(t, e, n, r, i, o) {
|
|
|
47809
47814
|
}, 8, ["onClose"])) : fn("", !0)
|
|
47810
47815
|
]);
|
|
47811
47816
|
}
|
|
47812
|
-
const zle = /* @__PURE__ */ yo(hle, [["render", Rle]]), Ble = ["src"], Fle = ["innerHTML"], qle = ["innerHTML"], Vle = /* @__PURE__ */
|
|
47817
|
+
const zle = /* @__PURE__ */ yo(hle, [["render", Rle]]), Ble = ["src"], Fle = ["innerHTML"], qle = ["innerHTML"], Vle = /* @__PURE__ */ $n({
|
|
47813
47818
|
__name: "notification-toast",
|
|
47814
47819
|
setup(t) {
|
|
47815
47820
|
const e = fo(), n = nt(() => e.notifications), r = (i) => {
|
|
@@ -47887,7 +47892,7 @@ function YR(t, e = 50, n = {}) {
|
|
|
47887
47892
|
const Hle = { class: "save-slot flex flex-row" }, Ule = { class: "used-save-slot flex flex-row justify-between items-center grow" }, Wle = { class: "flex flex-col save-slot-number-container" }, Kle = { class: "save-slot-number" }, Gle = { class: "flex flex-col justify-center save-info" }, Jle = {
|
|
47888
47893
|
key: 1,
|
|
47889
47894
|
class: "save-name"
|
|
47890
|
-
}, Qle = { class: "flex flex-col" }, Yle = { key: 0 }, Xle = { key: 1 }, Zle = { key: 2 }, ece = { class: "flex flex-row" }, tce = ["onClick"], zg = /* @__PURE__ */
|
|
47895
|
+
}, Qle = { class: "flex flex-col" }, Yle = { key: 0 }, Xle = { key: 1 }, Zle = { key: 2 }, ece = { class: "flex flex-row" }, tce = ["onClick"], zg = /* @__PURE__ */ $n({
|
|
47891
47896
|
__name: "save-slot-ui",
|
|
47892
47897
|
props: {
|
|
47893
47898
|
saveSlot: {
|
|
@@ -47971,7 +47976,7 @@ const Hle = { class: "save-slot flex flex-row" }, Ule = { class: "used-save-slot
|
|
|
47971
47976
|
]));
|
|
47972
47977
|
}
|
|
47973
47978
|
});
|
|
47974
|
-
const nce = /* @__PURE__ */ Pe("h3", { class: "title" }, "Confirmation", -1), rce = { class: "flex justify-center" }, mv = /* @__PURE__ */
|
|
47979
|
+
const nce = /* @__PURE__ */ Pe("h3", { class: "title" }, "Confirmation", -1), rce = { class: "flex justify-center" }, mv = /* @__PURE__ */ $n({
|
|
47975
47980
|
__name: "yes-no",
|
|
47976
47981
|
props: {
|
|
47977
47982
|
prompt: {
|
|
@@ -48020,7 +48025,7 @@ const nce = /* @__PURE__ */ Pe("h3", { class: "title" }, "Confirmation", -1), rc
|
|
|
48020
48025
|
const ice = { class: "title" }, oce = { key: 0 }, ace = { class: "saves-section" }, sce = /* @__PURE__ */ Pe("h3", { class: "saves-section-title" }, "Auto save", -1), uce = { class: "saves-section" }, lce = /* @__PURE__ */ Pe("h3", { class: "saves-section-title" }, "Manual Saves", -1), cce = {
|
|
48021
48026
|
key: 1,
|
|
48022
48027
|
class: "saves-section"
|
|
48023
|
-
}, fce = /* @__PURE__ */ Pe("h3", { class: "saves-section-title" }, "Save Slots", -1), dce = { class: "saves-container flex flex-col" }, XR = /* @__PURE__ */
|
|
48028
|
+
}, fce = /* @__PURE__ */ Pe("h3", { class: "saves-section-title" }, "Save Slots", -1), dce = { class: "saves-container flex flex-col" }, XR = /* @__PURE__ */ $n({
|
|
48024
48029
|
__name: "save-slots",
|
|
48025
48030
|
props: {
|
|
48026
48031
|
mode: {
|
|
@@ -48209,7 +48214,7 @@ const da = new hce(), ZR = oi("startMenu", {
|
|
|
48209
48214
|
}), pce = { id: "game-menu" }, vce = {
|
|
48210
48215
|
id: "game-header",
|
|
48211
48216
|
class: "flex flex-col justify-between items-center"
|
|
48212
|
-
}, mce = { id: "game-title-container" }, gce = { id: "game-title-text" }, yce = { class: "flex flex-col start-menu-buttons-container" }, bce = ["onClick"], wce = { class: "title" }, kce = /* @__PURE__ */
|
|
48217
|
+
}, mce = { id: "game-title-container" }, gce = { id: "game-title-text" }, yce = { class: "flex flex-col start-menu-buttons-container" }, bce = ["onClick"], wce = { class: "title" }, kce = /* @__PURE__ */ $n({
|
|
48213
48218
|
__name: "StartMenu",
|
|
48214
48219
|
setup(t) {
|
|
48215
48220
|
const e = Un(!1), n = Un(!1), r = Un(null), i = Un(null), o = Un(!1), a = Un(!1), s = Un(null), u = ZR(), l = Un(!1), f = nt(() => u.buttons);
|
|
@@ -48339,7 +48344,7 @@ const da = new hce(), ZR = oi("startMenu", {
|
|
|
48339
48344
|
]));
|
|
48340
48345
|
}
|
|
48341
48346
|
});
|
|
48342
|
-
const _ce = { class: "title" }, xce = /* @__PURE__ */
|
|
48347
|
+
const _ce = { class: "title" }, xce = /* @__PURE__ */ $n({
|
|
48343
48348
|
__name: "alert-modal",
|
|
48344
48349
|
props: {
|
|
48345
48350
|
title: {
|
|
@@ -48384,7 +48389,7 @@ function Ch(t) {
|
|
|
48384
48389
|
var e;
|
|
48385
48390
|
return t ? ((e = pk(t)) == null ? void 0 : e.style) || {} : {};
|
|
48386
48391
|
}
|
|
48387
|
-
const Sce =
|
|
48392
|
+
const Sce = $n({
|
|
48388
48393
|
props: {
|
|
48389
48394
|
pictureUrl: String
|
|
48390
48395
|
},
|
|
@@ -48431,7 +48436,7 @@ function $ce(t, e, n, r, i, o) {
|
|
|
48431
48436
|
}, null, 8, Cce)
|
|
48432
48437
|
], 4);
|
|
48433
48438
|
}
|
|
48434
|
-
const Oce = /* @__PURE__ */ yo(Sce, [["render", $ce]]), Tce =
|
|
48439
|
+
const Oce = /* @__PURE__ */ yo(Sce, [["render", $ce]]), Tce = $n({
|
|
48435
48440
|
data() {
|
|
48436
48441
|
return {
|
|
48437
48442
|
playerText: "",
|
|
@@ -48717,14 +48722,14 @@ function zce(t, e, n, r, i, o) {
|
|
|
48717
48722
|
])
|
|
48718
48723
|
], 6);
|
|
48719
48724
|
}
|
|
48720
|
-
const Bce = /* @__PURE__ */ yo(Tce, [["render", zce]]), Fce = /* @__PURE__ */ Pe("div", { class: "anchor" }, null, -1), qce = /* @__PURE__ */
|
|
48725
|
+
const Bce = /* @__PURE__ */ yo(Tce, [["render", zce]]), Fce = /* @__PURE__ */ Pe("div", { class: "anchor" }, null, -1), qce = /* @__PURE__ */ $n({
|
|
48721
48726
|
__name: "game-dialog",
|
|
48722
48727
|
props: {
|
|
48723
48728
|
layoutMode: String,
|
|
48724
48729
|
inGame: Boolean
|
|
48725
48730
|
},
|
|
48726
48731
|
setup(t) {
|
|
48727
|
-
const e = t, n = Un(Xt().inScript), r = Un(null), i = Io(), o =
|
|
48732
|
+
const e = t, n = Un(Xt().inScript), r = Un(null), i = Io(), o = Cn(), a = nt(() => o.stack), s = Zn(), u = nt(() => s.dialog), l = Un(null), f = Un(null), c = Un(null), d = nt(() => {
|
|
48728
48733
|
let j = "0px";
|
|
48729
48734
|
const S = pt().layout.dialogBottomPadding;
|
|
48730
48735
|
return typeof S == "number" ? j = `${S}px` : typeof S == "string" && (j = S), {
|
|
@@ -48858,7 +48863,7 @@ const Bce = /* @__PURE__ */ yo(Tce, [["render", zce]]), Fce = /* @__PURE__ */ Pe
|
|
|
48858
48863
|
], 64));
|
|
48859
48864
|
}
|
|
48860
48865
|
});
|
|
48861
|
-
const Vce = ["id"], Hce = ["src"], Uce = { class: "tab-title" }, Wce = /* @__PURE__ */
|
|
48866
|
+
const Vce = ["id"], Hce = ["src"], Uce = { class: "tab-title" }, Wce = /* @__PURE__ */ $n({
|
|
48862
48867
|
__name: "tab-selector",
|
|
48863
48868
|
props: {
|
|
48864
48869
|
tab: null,
|
|
@@ -48899,7 +48904,7 @@ const Kce = { class: "tabs-controller" }, Gce = {
|
|
|
48899
48904
|
/* @__PURE__ */ Pe("p", null, "No tab selected")
|
|
48900
48905
|
], -1), Xce = [
|
|
48901
48906
|
Yce
|
|
48902
|
-
], Zce = /* @__PURE__ */
|
|
48907
|
+
], Zce = /* @__PURE__ */ $n({
|
|
48903
48908
|
__name: "TabsController",
|
|
48904
48909
|
props: {
|
|
48905
48910
|
tabs: null,
|
|
@@ -48933,7 +48938,7 @@ const Kce = { class: "tabs-controller" }, Gce = {
|
|
|
48933
48938
|
]));
|
|
48934
48939
|
}
|
|
48935
48940
|
});
|
|
48936
|
-
const efe = { class: "menu-container" }, tfe = ["onClick", "id"], nfe = { class: "title" }, rfe = /* @__PURE__ */
|
|
48941
|
+
const efe = { class: "menu-container" }, tfe = ["onClick", "id"], nfe = { class: "title" }, rfe = /* @__PURE__ */ $n({
|
|
48937
48942
|
__name: "menu-buttons",
|
|
48938
48943
|
setup(t) {
|
|
48939
48944
|
const e = To(), n = Un(null);
|
|
@@ -49002,7 +49007,7 @@ const efe = { class: "menu-container" }, tfe = ["onClick", "id"], nfe = { class:
|
|
|
49002
49007
|
]));
|
|
49003
49008
|
}
|
|
49004
49009
|
});
|
|
49005
|
-
const ife = ["id"], ofe = ["innerHTML"], afe = /* @__PURE__ */
|
|
49010
|
+
const ife = ["id"], ofe = ["innerHTML"], afe = /* @__PURE__ */ $n({
|
|
49006
49011
|
__name: "screen-object",
|
|
49007
49012
|
props: {
|
|
49008
49013
|
screenObject: null,
|
|
@@ -49055,7 +49060,7 @@ const ife = ["id"], ofe = ["innerHTML"], afe = /* @__PURE__ */ Cn({
|
|
|
49055
49060
|
};
|
|
49056
49061
|
}
|
|
49057
49062
|
});
|
|
49058
|
-
const sfe = ["id"], ufe = ["id", "onClick", "innerHTML"], Bg = /* @__PURE__ */
|
|
49063
|
+
const sfe = ["id"], ufe = ["id", "onClick", "innerHTML"], Bg = /* @__PURE__ */ $n({
|
|
49059
49064
|
__name: "screen-layer",
|
|
49060
49065
|
props: {
|
|
49061
49066
|
layer: String,
|
|
@@ -49066,7 +49071,7 @@ const sfe = ["id"], ufe = ["id", "onClick", "innerHTML"], Bg = /* @__PURE__ */ C
|
|
|
49066
49071
|
}
|
|
49067
49072
|
},
|
|
49068
49073
|
setup(t) {
|
|
49069
|
-
const e = t, n =
|
|
49074
|
+
const e = t, n = Cn(), r = Xt(), i = Ta(), o = Eo();
|
|
49070
49075
|
nt(() => o.tree.filter((k) => k.layer === e.layerIndex));
|
|
49071
49076
|
const a = nt(() => pt().layout.backgrounds.width), s = nt(() => pt().layout.backgrounds.height), u = nt(() => e.layer), l = nt(() => i.buttons), f = nt(() => {
|
|
49072
49077
|
const k = dk().screens[u.value];
|
|
@@ -49148,7 +49153,7 @@ const sfe = ["id"], ufe = ["id", "onClick", "innerHTML"], Bg = /* @__PURE__ */ C
|
|
|
49148
49153
|
], 12, sfe)) : fn("", !0);
|
|
49149
49154
|
}
|
|
49150
49155
|
});
|
|
49151
|
-
const lfe = /* @__PURE__ */
|
|
49156
|
+
const lfe = /* @__PURE__ */ $n({
|
|
49152
49157
|
__name: "NarratTransition",
|
|
49153
49158
|
props: {
|
|
49154
49159
|
name: {
|
|
@@ -49199,7 +49204,7 @@ const lfe = /* @__PURE__ */ Cn({
|
|
|
49199
49204
|
], 64));
|
|
49200
49205
|
}
|
|
49201
49206
|
});
|
|
49202
|
-
const cfe = /* @__PURE__ */
|
|
49207
|
+
const cfe = /* @__PURE__ */ $n({
|
|
49203
49208
|
__name: "screens",
|
|
49204
49209
|
setup(t) {
|
|
49205
49210
|
const e = Io(), n = Xt(), r = Ta(), i = nt(() => r.nonEmptyLayers), o = nt(() => e.layoutMode), a = nt(() => pt().layout.backgrounds.width), s = nt(() => pt().layout.backgrounds.height), u = nt(() => n.isInGame);
|
|
@@ -49255,7 +49260,7 @@ const cfe = /* @__PURE__ */ Cn({
|
|
|
49255
49260
|
], 4)) : fn("", !0);
|
|
49256
49261
|
}
|
|
49257
49262
|
});
|
|
49258
|
-
const ffe =
|
|
49263
|
+
const ffe = $n({
|
|
49259
49264
|
data() {
|
|
49260
49265
|
return {};
|
|
49261
49266
|
},
|
|
@@ -49305,7 +49310,7 @@ function pfe(t, e, n, r, i, o) {
|
|
|
49305
49310
|
const vfe = /* @__PURE__ */ yo(ffe, [["render", pfe]]), mfe = {
|
|
49306
49311
|
key: 0,
|
|
49307
49312
|
class: "auto-play-feedback-container"
|
|
49308
|
-
}, gfe = /* @__PURE__ */
|
|
49313
|
+
}, gfe = /* @__PURE__ */ $n({
|
|
49309
49314
|
__name: "AutoPlayFeedback",
|
|
49310
49315
|
setup(t) {
|
|
49311
49316
|
const e = Zn(), n = nt(() => e.playMode === "auto"), r = nt(() => e.playMode === "skip"), i = nt(() => n.value ? "auto-play-feedback-auto" : r.value ? "auto-play-feedback-skip" : {}), o = nt(() => n.value ? "Auto Play" : r.value ? "Skip" : "");
|
|
@@ -49316,7 +49321,7 @@ const vfe = /* @__PURE__ */ yo(ffe, [["render", pfe]]), mfe = {
|
|
|
49316
49321
|
])) : fn("", !0);
|
|
49317
49322
|
}
|
|
49318
49323
|
});
|
|
49319
|
-
const yfe = /* @__PURE__ */
|
|
49324
|
+
const yfe = /* @__PURE__ */ $n({
|
|
49320
49325
|
__name: "in-game",
|
|
49321
49326
|
setup(t) {
|
|
49322
49327
|
const e = Xt(), n = Io(), r = nt(() => n.layoutMode), i = nt(() => e.saving), o = Un(null), a = Zn(), s = Un(null), u = nt(
|
|
@@ -49373,7 +49378,7 @@ const yfe = /* @__PURE__ */ Cn({
|
|
|
49373
49378
|
], 4));
|
|
49374
49379
|
}
|
|
49375
49380
|
});
|
|
49376
|
-
const bfe =
|
|
49381
|
+
const bfe = $n({
|
|
49377
49382
|
props: {
|
|
49378
49383
|
percentage: Number,
|
|
49379
49384
|
step: String
|
|
@@ -49402,7 +49407,7 @@ function _fe(t, e, n, r, i, o) {
|
|
|
49402
49407
|
const xfe = /* @__PURE__ */ yo(bfe, [["render", _fe]]), jfe = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IlJhdCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDU5NS4zIDU5NS4zIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OTUuMyA1OTUuMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNFMjNCMzM7fQo8L3N0eWxlPgo8cGF0aCBpZD0iUmF0X1NoYXBlIiBjbGFzcz0ic3QwIiBkPSJNNTU2LjksODIuNWMtMTAuOC0yNC4zLTQ3LTU3LjEtNzEuMy02NS42Yy0yNC4zLTguNC02NC4xLTAuMy04OC43LDIyLjMKCWMtMjAsMTguNC0yNiwyOC4yLTI5LjEsMzdjLTIuMSw1LjktNC44LDEzLjUtNiwyMC45djBjLTAuNSw0LjEtNC41LDctOC42LDYuMWMtMTAuNC0yLjMtMjkuNS02LTQ0LjQtNi4zCgljLTEzLjctMC4yLTMwLjEsMy4yLTQwLjQsNS43Yy00LjUsMS4xLTguOC0yLjItOC44LTYuOGMtMC4xLTUuMy0xLjEtMTIuMy00LjgtMTkuNmMtOC41LTE2LjktMTkuNi0zMi42LTU3LjgtNDcuNAoJYy0zMS45LTEyLjQtNzUuMS05LjctMTAwLjgsMS44Yy0yOC4xLDEyLjYtNDIuNCwzNy45LTU0LDYxLjhjLTE0LjQsMjkuOC0xNC45LDgzLjYtNi40LDEwNGMxMi44LDMwLjcsMzUuOCw0Ny4yLDUyLjYsNTMKCWMxMS4zLDMuOCwyOC4yLDMuNywzOC4yLDMuM2M0LjItMC4yLDcuNywzLjMsNy41LDcuNWMtMC43LDEzLjYtMC45LDQxLjUsNyw2MS40YzcuNywxOS40LDI5LjcsNjIuMyw1MC43LDEwMS4yCgljMCwwLjEtMTQuNiwyLjktMzEuNCw2LjhjLTIzLjksNS41LTUyLjYsMTIuNy01NC4zLDEzLjdjLTMuNSwyLjEtMywxMC0yLjcsMTJjMC41LDMuNCw1LjMsOC4xLDYuOSw4LjNjMy45LDAuMywzMS4zLTcuNiw1NS43LTE0LjYKCWMxOC41LTUuMywzNC45LTkuMywzNS41LTguMmM1LjEsOS4zLDEwLDE4LDE0LjQsMjUuOGM1LjIsOS4xLDEwLjcsMTYuNCwxNC4xLDIzLjZjMS4xLDIuMy0xNi42LDUuOC0zMi41LDE0LjcKCWMtMTYuNCw5LjEtMjkuNywyMS0zMi4zLDI0Yy0xLjgsMi4xLTMsNi0xLjIsMTAuN2MxLjEsMi45LDEwLDUuNywxMi40LDUuMWM2LjgtMS43LDE2LjUtMTIuNSwzMy4xLTIxLjEKCWMxNi4zLTguNSwzMi45LTE0LjksMzMuOC0xMy42YzkuNywxNC4zLDE2LjksMjEuNiwyMi42LDMxLjJjOS44LDE2LjUsMjcuMyw0NS45LDQ2LjYsMzkuNWM2LjQtMi4xLDMxLjEtMzMuNiw1My4zLTY4LjYKCWMxLjMtMi4xLDE2LjEsMTEuMywzMC40LDIzLjJjMTMuOCwxMS40LDIyLjcsMjAuNiwyNy4xLDIxLjRjNS40LDEsMTQuMi03LjcsMTQuMS0xNC43Yy0wLjEtMi43LTE0LjMtMTMuOC0yOS4xLTI2LjIKCWMtMTQuNS0xMi4xLTMwLjEtMjIuOC0yOS4yLTI0LjNjNy42LTEyLDE0LjUtMjMuNywyMC4xLTMzLjljNC4zLTcuOCw4LjktMTYsMTMtMjQuN2MwLjYtMS4yLDE1LjksMywzMS40LDcuMWMxNS4zLDQsMjYuNywxMCwzMSw4CgljNi45LTMsMTEuNi0xMy44LDkuNC0xOC4zYy0xLjEtMi4zLTE3LTcuMy0zMy4yLTEyYy0xNC4yLTQuMS0yOC02LjUtMjcuNy03LjNjMTUuNS0zNCwyOC44LTY0LjgsMjcuNi02OS42CgljLTEuNy03LjEsMi42LTExLjksNy0zNi41YzMuMi0xOC4xLDQuNy00MC45LDUuMi01MS43YzAuMi0zLjUsMi44LTYuMyw2LjMtNi43YzMuMS0wLjMsNi45LTAuOSwxMC41LTEuOWM3LjgtMiwxOC42LTcuOCwzNi40LTIwLjYKCWMxNy45LTEyLjgsMzguNy00OS42LDQ0LjQtNjcuOFM1NjcuNiwxMDYuOCw1NTYuOSw4Mi41eiBNMjY1LjEsMzM2LjJjLTguMSw0LTEzLDctMjYuNCw5LjZjLTYuOSwxLjQtMjkuNC0wLjItNDAuNy00LjYKCWMtMTAuNS00LjEtMTkuOS03LjYtMzAtMTUuNHMtMTUuNy0xMy4yLTE1LjctMTUuM2MwLTQuNCw2LTkuNCwxMS05LjRjNS4xLDAsMTQuNSw5LjIsMjkuNywxNi42YzE0LjMsNywxNy45LDYuMSwyNS40LDcuMwoJYzIuOSwwLjUsNy43LDAuNiwxMC43LDAuNGMxNC4xLTEuMywyMS40LTUuOSwyNS4zLTguOGM0LTMsMTMuNy0xMi45LDE3LjItMTIuNWM4LDEsMTguOSwzLjQsMTguOSw3LjEKCUMyOTAuNCwzMTksMjczLjIsMzMyLjEsMjY1LjEsMzM2LjJ6IE0zMjAuOSw1MjEuNGMtNC4zLDMuNy0xNy43LDEzLjUtMjMuMywxMy41Yy0yLjgsMC03LjQtOC4yLTExLjUtMTYuOAoJYy00LjEtOC41LTkuMS0yMS4xLTkuMS0zMS42YzAtNC42LDYtNy40LDEzLjQtOS4yYzcuMi0xLjcsMjcuMy0xLjgsMjkuOS0xLjFjNi44LDEuNywxMi45LDIuMiwxMi43LDYuNGMtMC40LDEyLjctNywxOC45LTguMywyNC4zCglDMzIzLjQsNTEyLjMsMzIzLjQsNTE5LjIsMzIwLjksNTIxLjR6IE00MzEuMSwzMjAuM2MtOS4yLDcuNC0xMC42LDguMS0yNC45LDEzLjdjLTExLjMsNC40LTI4LjYsNS44LTQxLjYsMy42CgljLTEyLjItMi4xLTIyLjMtNC42LTI5LjUtMTAuMWMtOS43LTcuMy0xNi40LTE1LjEtMTYuNC0xOS44YzAtMy43LDYuNC00LjMsMTQuNS00LjljMy41LTAuMyw5LjMsNS45LDEzLjIsOS4yCgljOC4xLDYuOCwxNC44LDgsMjguOCw5LjljMi45LDAuNCw3LjgsMC40LDEwLjcsMC4xYzcuNS0wLjksMTItMC40LDI1LjgtOC4yYzIwLTExLjIsMTcuOC0xNC40LDI1LjEtMTIuNmMyLjIsMC42LDUuOCwxLjIsNS42LDUuNgoJQzQ0Mi40LDMwOSw0NDAuNSwzMTIuNyw0MzEuMSwzMjAuM3oiLz4KPC9zdmc+Cg==", Sfe = {
|
|
49403
49408
|
id: "engine-splash-screen",
|
|
49404
49409
|
class: "flex justify-center items-center"
|
|
49405
|
-
}, Cfe = { id: "engine-splash-title" }, $fe = ["src"], Ofe = /* @__PURE__ */
|
|
49410
|
+
}, Cfe = { id: "engine-splash-title" }, $fe = ["src"], Ofe = /* @__PURE__ */ $n({
|
|
49406
49411
|
__name: "engine-splash",
|
|
49407
49412
|
emits: ["finished"],
|
|
49408
49413
|
setup(t, { emit: e }) {
|
|
@@ -49467,7 +49472,7 @@ const Tfe = {
|
|
|
49467
49472
|
}, Efe = {
|
|
49468
49473
|
class: "title",
|
|
49469
49474
|
id: "game-splash-title"
|
|
49470
|
-
}, Mfe = /* @__PURE__ */
|
|
49475
|
+
}, Mfe = /* @__PURE__ */ $n({
|
|
49471
49476
|
__name: "game-splash",
|
|
49472
49477
|
setup(t) {
|
|
49473
49478
|
const e = Xt(), n = nt(
|
|
@@ -49498,7 +49503,7 @@ const Tfe = {
|
|
|
49498
49503
|
const Pfe = {
|
|
49499
49504
|
key: 0,
|
|
49500
49505
|
class: "floating-tooltip-title"
|
|
49501
|
-
}, Ife = /* @__PURE__ */ Pe("hr", null, null, -1), Nfe = { class: "floating-tooltip-text" }, Lfe = /* @__PURE__ */
|
|
49506
|
+
}, Ife = /* @__PURE__ */ Pe("hr", null, null, -1), Nfe = { class: "floating-tooltip-text" }, Lfe = /* @__PURE__ */ $n({
|
|
49502
49507
|
__name: "floating-tooltip",
|
|
49503
49508
|
props: {
|
|
49504
49509
|
title: null,
|
|
@@ -49538,7 +49543,7 @@ const Pfe = {
|
|
|
49538
49543
|
}));
|
|
49539
49544
|
}
|
|
49540
49545
|
});
|
|
49541
|
-
const Dfe = { class: "tooltips-ui" }, Rfe = /* @__PURE__ */
|
|
49546
|
+
const Dfe = { class: "tooltips-ui" }, Rfe = /* @__PURE__ */ $n({
|
|
49542
49547
|
__name: "tooltips-ui",
|
|
49543
49548
|
setup(t) {
|
|
49544
49549
|
const e = vw().tooltip, n = nt(() => {
|
|
@@ -49552,9 +49557,9 @@ const Dfe = { class: "tooltips-ui" }, Rfe = /* @__PURE__ */ Cn({
|
|
|
49552
49557
|
vt(e) ? (Ae(), cn(Lfe, f9(d9({ key: 0 }, vt(n))), null, 16)) : fn("", !0)
|
|
49553
49558
|
]));
|
|
49554
49559
|
}
|
|
49555
|
-
}), zfe =
|
|
49560
|
+
}), zfe = $n({
|
|
49556
49561
|
setup() {
|
|
49557
|
-
const t = Zn(), e =
|
|
49562
|
+
const t = Zn(), e = Cn(), n = Xt();
|
|
49558
49563
|
return {
|
|
49559
49564
|
dialog: nt(() => t.dialog),
|
|
49560
49565
|
stack: nt(() => e.stack),
|
|
@@ -49611,7 +49616,7 @@ const Dfe = { class: "tooltips-ui" }, Rfe = /* @__PURE__ */ Cn({
|
|
|
49611
49616
|
"gameScaleRatio",
|
|
49612
49617
|
"actualGameHeight"
|
|
49613
49618
|
]),
|
|
49614
|
-
...Ys(
|
|
49619
|
+
...Ys(Cn, ["currentLine"]),
|
|
49615
49620
|
appStyle() {
|
|
49616
49621
|
return {
|
|
49617
49622
|
transform: `scale(${this.gameScaleRatio}, ${this.gameScaleRatio})`,
|
|
@@ -49696,7 +49701,7 @@ class Qe {
|
|
|
49696
49701
|
async run(e, n) {
|
|
49697
49702
|
let r = await this.runner(e, n);
|
|
49698
49703
|
return this.returnAfterPlayerAnswer && (r = await new Promise((i, o) => {
|
|
49699
|
-
|
|
49704
|
+
Cn().waitForPlayerAnswer(e), e.finishCommand = i;
|
|
49700
49705
|
})), r;
|
|
49701
49706
|
}
|
|
49702
49707
|
async processPlayerAnswer(e, n) {
|
|
@@ -49918,7 +49923,7 @@ const Vfe = new Qe(
|
|
|
49918
49923
|
argTypes: "any",
|
|
49919
49924
|
runner: async (t) => {
|
|
49920
49925
|
(t.args.length < 1 || typeof t.args[0] != "string") && Lt(t, "requires a label argument");
|
|
49921
|
-
const e = t.args[0], n =
|
|
49926
|
+
const e = t.args[0], n = Cn(), r = {
|
|
49922
49927
|
branchData: wn.script[e],
|
|
49923
49928
|
label: e,
|
|
49924
49929
|
args: t.args.splice(1),
|
|
@@ -49936,7 +49941,7 @@ const Vfe = new Qe(
|
|
|
49936
49941
|
runner: async (t) => {
|
|
49937
49942
|
(t.args.length < 1 || typeof t.args[0] != "string") && Lt(t, "run command needs a label to argument run");
|
|
49938
49943
|
const e = t.args[0];
|
|
49939
|
-
return await
|
|
49944
|
+
return await Cn().runLabelFunction(e, ...t.args.slice(1));
|
|
49940
49945
|
}
|
|
49941
49946
|
}), rde = Qe.FromOptions({
|
|
49942
49947
|
keyword: "var",
|
|
@@ -49946,14 +49951,14 @@ const Vfe = new Qe(
|
|
|
49946
49951
|
],
|
|
49947
49952
|
runner: async (t) => {
|
|
49948
49953
|
const { name: e, value: n } = t.options;
|
|
49949
|
-
|
|
49954
|
+
Cn().addScopedVariable(e, n);
|
|
49950
49955
|
}
|
|
49951
49956
|
}), ide = Qe.FromOptions({
|
|
49952
49957
|
keyword: "return",
|
|
49953
49958
|
argTypes: [{ name: "value", type: "any" }],
|
|
49954
49959
|
runner: async (t) => {
|
|
49955
49960
|
const { value: e } = t.options;
|
|
49956
|
-
return
|
|
49961
|
+
return Cn().setReturnValue(e), gw;
|
|
49957
49962
|
}
|
|
49958
49963
|
}), ode = Qe.FromOptions({
|
|
49959
49964
|
keyword: "log",
|
|
@@ -50369,7 +50374,7 @@ const gde = new Qe(
|
|
|
50369
50374
|
const o = i.condition, a = await hm(o);
|
|
50370
50375
|
e.push(a);
|
|
50371
50376
|
}
|
|
50372
|
-
const n = $te(t, e), r =
|
|
50377
|
+
const n = $te(t, e), r = Cn();
|
|
50373
50378
|
if (n) {
|
|
50374
50379
|
const i = {
|
|
50375
50380
|
branchData: {
|
|
@@ -50630,7 +50635,7 @@ const che = (t, e) => {
|
|
|
50630
50635
|
runner: uhe,
|
|
50631
50636
|
parser: che
|
|
50632
50637
|
}), dhe = async (t, e) => {
|
|
50633
|
-
const n = e, r =
|
|
50638
|
+
const n = e, r = Cn(), { choices: i } = t.staticOptions, o = i[n], a = t.options.choiceResults[n];
|
|
50634
50639
|
let s = a.text, u;
|
|
50635
50640
|
if (a.skillCheck ? (s = null, ML(a.skillCheck.options).succeeded ? u = o.skillBranches.success : u = o.skillBranches.failure) : u = o.branch, s) {
|
|
50636
50641
|
const l = {
|
|
@@ -51034,7 +51039,7 @@ const vhe = Qe.FromOptions({
|
|
|
51034
51039
|
const { array: e, predicateLabel: n } = t.options;
|
|
51035
51040
|
Array.isArray(e) || Lt(t, "requires an array argument");
|
|
51036
51041
|
for (const [r, i] of e.entries())
|
|
51037
|
-
if (await
|
|
51042
|
+
if (await Cn().runLabelFunction(
|
|
51038
51043
|
n,
|
|
51039
51044
|
i,
|
|
51040
51045
|
...t.args.slice(2)
|
|
@@ -51102,7 +51107,7 @@ const Uhe = Qe.FromOptions({
|
|
|
51102
51107
|
function tpe(t) {
|
|
51103
51108
|
t.addCommand(fhe), t.addCommand(phe), t.addCommand(Ude), t.addCommand(Xfe), t.addCommand(Zfe), t.addCommand(ede), t.addCommand(Hde), t.addCommand(Fde), t.addCommand(qde), t.addCommand(Vde), t.addCommand(pde), t.addCommand(dde), t.addCommand(hde), t.addCommand(vde), t.addCommand(kde), t.addCommand(bde), t.addCommand(wde), t.addCommand(Ahe), t.addCommand(Ehe), t.addCommand(Mhe), t.addCommand(Bde), t.addCommand(Wde), t.addCommand(Kde), t.addCommand(Gde), t.addCommand(Jde), t.addCommand(Qde), t.addCommand(Yde), t.addCommand(Xde), t.addCommand(Zde), t.addCommand(ehe), t.addCommand(the), t.addCommand(nhe), t.addCommand(rhe), t.addCommand(ahe), t.addCommand(she), t.addCommand(ihe), t.addCommand(ohe), t.addCommand(yde), t.addCommand(gde), t.addCommand(Sde), t.addCommand(_de), t.addCommand(xde), t.addCommand(tde), t.addCommand(nde), t.addCommand(rde), t.addCommand(ide), t.addCommand(ode), t.addCommand(ade), t.addCommand(sde), t.addCommand(lde), t.addCommand(ude), t.addCommand(cde), t.addCommand(Mde), t.addCommand(Pde), t.addCommand(Ide), t.addCommand(Nde), t.addCommand(Rde), t.addCommand(zde), t.addCommand(Lde), t.addCommand(Dde), t.addCommand(Cde), t.addCommand($de), t.addCommand(Ade), t.addCommand(Ede), t.addCommand(Ode), t.addCommand(Tde), t.addCommand(Vfe), t.addCommand(Hfe), t.addCommand(Ufe), t.addCommand(Gfe), t.addCommand(Yfe), t.addCommand(Jfe), t.addCommand(Qfe), t.addCommand(Wfe), t.addCommand(Kfe), t.addCommand(e9), t.addCommand(vhe), t.addCommand(mhe), t.addCommand(ghe), t.addCommand(yhe), t.addCommand(bhe), t.addCommand(whe), t.addCommand(khe), t.addCommand(_he), t.addCommand(xhe), t.addCommand(jhe), t.addCommand(She), t.addCommand($he), t.addCommand(Che), t.addCommand(Ohe), t.addCommand(The), t.addCommand(Phe), t.addCommand(Ihe), t.addCommand(Nhe), t.addCommand(Lhe), t.addCommand(Dhe), t.addCommand(Rhe), t.addCommand(zhe), t.addCommand(Bhe), t.addCommand(Fhe), t.addCommand(qhe), t.addCommand(Vhe), t.addCommand(Uhe), t.addCommand(Whe), t.addCommand(Khe), t.addCommand(Ghe), t.addCommand(Jhe), t.addCommand(Qhe), t.addCommand(Yhe), t.addCommand(Xhe), t.addCommand(Zhe), t.addCommand(epe);
|
|
51104
51109
|
}
|
|
51105
|
-
const npe =
|
|
51110
|
+
const npe = $n({
|
|
51106
51111
|
data() {
|
|
51107
51112
|
return {
|
|
51108
51113
|
muted: !1,
|
|
@@ -51164,7 +51169,7 @@ function spe(t, e, n, r, i, o) {
|
|
|
51164
51169
|
]))), 128))
|
|
51165
51170
|
]);
|
|
51166
51171
|
}
|
|
51167
|
-
const upe = /* @__PURE__ */ yo(npe, [["render", spe]]), lpe =
|
|
51172
|
+
const upe = /* @__PURE__ */ yo(npe, [["render", spe]]), lpe = $n({
|
|
51168
51173
|
components: {
|
|
51169
51174
|
VolumeControls: upe
|
|
51170
51175
|
},
|
|
@@ -51208,7 +51213,7 @@ function fpe(t, e, n, r, i, o) {
|
|
|
51208
51213
|
}, "Exit")
|
|
51209
51214
|
]);
|
|
51210
51215
|
}
|
|
51211
|
-
const dpe = /* @__PURE__ */ yo(lpe, [["render", fpe]]), hpe = { class: "inventory-section-items" }, ppe = ["onClick"], vpe = { class: "item-title" }, mpe = { class: "item-amount" }, gpe = /* @__PURE__ */
|
|
51216
|
+
const dpe = /* @__PURE__ */ yo(lpe, [["render", fpe]]), hpe = { class: "inventory-section-items" }, ppe = ["onClick"], vpe = { class: "item-title" }, mpe = { class: "item-amount" }, gpe = /* @__PURE__ */ $n({
|
|
51212
51217
|
__name: "inventory-section",
|
|
51213
51218
|
props: {
|
|
51214
51219
|
items: null,
|
|
@@ -51243,7 +51248,7 @@ const dpe = /* @__PURE__ */ yo(lpe, [["render", fpe]]), hpe = { class: "inventor
|
|
|
51243
51248
|
], 2));
|
|
51244
51249
|
}
|
|
51245
51250
|
});
|
|
51246
|
-
const ype = { class: "flex flex-row item-description-container" }, bpe = { class: "flex item-left" }, wpe = { class: "flex item-right" }, kpe = /* @__PURE__ */ Pe("hr", { class: "hr-solid" }, null, -1), _pe = /* @__PURE__ */
|
|
51251
|
+
const ype = { class: "flex flex-row item-description-container" }, bpe = { class: "flex item-left" }, wpe = { class: "flex item-right" }, kpe = /* @__PURE__ */ Pe("hr", { class: "hr-solid" }, null, -1), _pe = /* @__PURE__ */ $n({
|
|
51247
51252
|
__name: "item-details",
|
|
51248
51253
|
props: {
|
|
51249
51254
|
item: null
|
|
@@ -51279,7 +51284,7 @@ const ype = { class: "flex flex-row item-description-container" }, bpe = { class
|
|
|
51279
51284
|
]));
|
|
51280
51285
|
}
|
|
51281
51286
|
});
|
|
51282
|
-
const xpe =
|
|
51287
|
+
const xpe = $n({
|
|
51283
51288
|
setup() {
|
|
51284
51289
|
const t = ri(), e = Zn(), n = nt(() => t.items), r = nt(() => e.currentDialog.choices);
|
|
51285
51290
|
return { items: n, currentlyChoosing: r };
|
|
@@ -51305,7 +51310,7 @@ const xpe = Cn({
|
|
|
51305
51310
|
useItem() {
|
|
51306
51311
|
if (this.chosenItem && this.canUseChosenItem && this.chosenItemConf) {
|
|
51307
51312
|
const t = this.chosenItemConf.onUse;
|
|
51308
|
-
this.close(), Uu("onItemUsed"), t.action === "jump" ?
|
|
51313
|
+
this.close(), Uu("onItemUsed"), t.action === "jump" ? Cn().jumpToLabel(t.label) : t.action === "run" ? Cn().runThenGoBackToPreviousDialog(t.label, !0) : Gt(`Unknown action ${t.action}`);
|
|
51309
51314
|
}
|
|
51310
51315
|
}
|
|
51311
51316
|
},
|
|
@@ -51363,7 +51368,7 @@ function Ope(t, e, n, r, i, o) {
|
|
|
51363
51368
|
onClose: t.closeItem
|
|
51364
51369
|
}, null, 8, ["item", "onUse", "onClose"])) : (Ae(), Ge("div", Spe, $pe));
|
|
51365
51370
|
}
|
|
51366
|
-
const Tpe = /* @__PURE__ */ yo(xpe, [["render", Ope]]), Ape = ["id"], Epe = { class: "obtained-status" }, Mpe = { class: "achievement-title" }, Ppe = { class: "achievement-description" }, Ipe = /* @__PURE__ */
|
|
51371
|
+
const Tpe = /* @__PURE__ */ yo(xpe, [["render", Ope]]), Ape = ["id"], Epe = { class: "obtained-status" }, Mpe = { class: "achievement-title" }, Ppe = { class: "achievement-description" }, Ipe = /* @__PURE__ */ $n({
|
|
51367
51372
|
__name: "achievement-tile",
|
|
51368
51373
|
props: {
|
|
51369
51374
|
achievement: null
|
|
@@ -51395,7 +51400,7 @@ const Tpe = /* @__PURE__ */ yo(xpe, [["render", Ope]]), Ape = ["id"], Epe = { cl
|
|
|
51395
51400
|
], 8, Ape));
|
|
51396
51401
|
}
|
|
51397
51402
|
});
|
|
51398
|
-
const Npe = { class: "achievements-section-achievements" }, Lpe = /* @__PURE__ */
|
|
51403
|
+
const Npe = { class: "achievements-section-achievements" }, Lpe = /* @__PURE__ */ $n({
|
|
51399
51404
|
__name: "achievements-section",
|
|
51400
51405
|
props: {
|
|
51401
51406
|
achievements: null,
|
|
@@ -51417,7 +51422,7 @@ const Npe = { class: "achievements-section-achievements" }, Lpe = /* @__PURE__ *
|
|
|
51417
51422
|
], 2));
|
|
51418
51423
|
}
|
|
51419
51424
|
});
|
|
51420
|
-
const Dpe =
|
|
51425
|
+
const Dpe = $n({
|
|
51421
51426
|
setup() {
|
|
51422
51427
|
const t = Du(), e = Zn(), n = nt(() => t.achievements), r = nt(() => e.currentDialog.choices);
|
|
51423
51428
|
return { achievements: n, currentlyChoosing: r };
|
|
@@ -51493,7 +51498,7 @@ function qpe(t, e, n, r, i, o) {
|
|
|
51493
51498
|
const Vpe = /* @__PURE__ */ yo(Dpe, [["render", qpe]]), Hpe = { class: "quest-display" }, Upe = { class: "quest-title" }, Wpe = { class: "quest-description" }, Kpe = {
|
|
51494
51499
|
key: 0,
|
|
51495
51500
|
class: "quest-objectives-container list-disc"
|
|
51496
|
-
}, Gpe = /* @__PURE__ */
|
|
51501
|
+
}, Gpe = /* @__PURE__ */ $n({
|
|
51497
51502
|
__name: "QuestDetails",
|
|
51498
51503
|
props: {
|
|
51499
51504
|
quest: null
|
|
@@ -51543,7 +51548,7 @@ const Vpe = /* @__PURE__ */ yo(Dpe, [["render", qpe]]), Hpe = { class: "quest-di
|
|
|
51543
51548
|
]));
|
|
51544
51549
|
}
|
|
51545
51550
|
});
|
|
51546
|
-
const Jpe = { class: "quest-list-title" }, Qpe = /* @__PURE__ */
|
|
51551
|
+
const Jpe = { class: "quest-list-title" }, Qpe = /* @__PURE__ */ $n({
|
|
51547
51552
|
__name: "QuestDisplay",
|
|
51548
51553
|
props: {
|
|
51549
51554
|
quest: null
|
|
@@ -51560,7 +51565,7 @@ const Jpe = { class: "quest-list-title" }, Qpe = /* @__PURE__ */ Cn({
|
|
|
51560
51565
|
], 2));
|
|
51561
51566
|
}
|
|
51562
51567
|
});
|
|
51563
|
-
const Ype = { key: 0 }, Xpe = { key: 0 }, Zpe = { key: 1 }, eve = /* @__PURE__ */
|
|
51568
|
+
const Ype = { key: 0 }, Xpe = { key: 0 }, Zpe = { key: 1 }, eve = /* @__PURE__ */ $n({
|
|
51564
51569
|
__name: "quests-list-section",
|
|
51565
51570
|
props: {
|
|
51566
51571
|
quests: null,
|
|
@@ -51612,7 +51617,7 @@ const Ype = { key: 0 }, Xpe = { key: 0 }, Zpe = { key: 1 }, eve = /* @__PURE__ *
|
|
|
51612
51617
|
], 2));
|
|
51613
51618
|
}
|
|
51614
51619
|
});
|
|
51615
|
-
const tve =
|
|
51620
|
+
const tve = $n({
|
|
51616
51621
|
setup() {
|
|
51617
51622
|
const t = Vi(), e = nt(() => t.quests), n = Un(null);
|
|
51618
51623
|
return { quests: e, selectedQuest: n };
|
|
@@ -51675,7 +51680,7 @@ function ive(t, e, n, r, i, o) {
|
|
|
51675
51680
|
])
|
|
51676
51681
|
], 2);
|
|
51677
51682
|
}
|
|
51678
|
-
const ove = /* @__PURE__ */ yo(tve, [["render", ive]]), ave =
|
|
51683
|
+
const ove = /* @__PURE__ */ yo(tve, [["render", ive]]), ave = $n({
|
|
51679
51684
|
setup() {
|
|
51680
51685
|
const t = Ir();
|
|
51681
51686
|
return { skills: nt(() => t.skills) };
|
|
@@ -52045,7 +52050,7 @@ async function Ave(t) {
|
|
|
52045
52050
|
app: Qa,
|
|
52046
52051
|
vm: wn,
|
|
52047
52052
|
jump: (o) => {
|
|
52048
|
-
|
|
52053
|
+
Cn().jumpToLabel(o);
|
|
52049
52054
|
},
|
|
52050
52055
|
getSave: () => as()
|
|
52051
52056
|
};
|
|
@@ -52151,7 +52156,7 @@ export {
|
|
|
52151
52156
|
Ta as useScreens,
|
|
52152
52157
|
Ir as useSkills,
|
|
52153
52158
|
vw as useTooltips,
|
|
52154
|
-
|
|
52159
|
+
Cn as useVM,
|
|
52155
52160
|
rc as warning
|
|
52156
52161
|
};
|
|
52157
52162
|
//# sourceMappingURL=narrat.es.js.map
|