narrat 2.10.7 → 2.11.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/app.vue.d.ts +78 -78
- package/dist/components/MainMenu.vue.d.ts +7 -7
- package/dist/components/SkillsWindow.vue.d.ts +28 -28
- package/dist/components/StartMenu.vue.d.ts +46 -46
- package/dist/components/auto-play/AutoPlayFeedback.vue.d.ts +46 -46
- package/dist/components/debug/debug-menu.vue.d.ts +51 -51
- package/dist/components/dialog-picture.vue.d.ts +11 -11
- package/dist/components/engine-splash/engine-splash.vue.d.ts +54 -54
- package/dist/components/game-dialog.vue.d.ts +65 -65
- package/dist/components/game-splash/game-splash.vue.d.ts +46 -46
- package/dist/components/hud.vue.d.ts +20 -20
- package/dist/components/in-game.vue.d.ts +46 -46
- package/dist/components/inventory/inventory-section.vue.d.ts +61 -61
- package/dist/components/inventory/item-details.vue.d.ts +76 -76
- package/dist/components/inventory-ui.vue.d.ts +39 -39
- package/dist/components/loading-bar.vue.d.ts +10 -10
- package/dist/components/menu-buttons.vue.d.ts +46 -46
- package/dist/components/notification-toast.vue.d.ts +6 -6
- package/dist/components/quests/QuestDetails.vue.d.ts +64 -64
- package/dist/components/quests/QuestDisplay.vue.d.ts +64 -64
- package/dist/components/quests/quests-list-section.vue.d.ts +75 -75
- package/dist/components/quests-ui.vue.d.ts +22 -22
- package/dist/components/save-slots.vue.d.ts +79 -79
- package/dist/components/saves/save-slot-ui.vue.d.ts +108 -108
- package/dist/components/screen-layer.vue.d.ts +76 -76
- package/dist/components/screen-objects/screen-object.vue.d.ts +68 -68
- package/dist/components/screens.vue.d.ts +46 -46
- package/dist/components/tabs/TabsController.vue.d.ts +72 -72
- package/dist/components/tabs/tab-selector.vue.d.ts +82 -82
- package/dist/components/tooltips/tooltips-ui.vue.d.ts +46 -46
- package/dist/components/transitions/NarratTransition.vue.d.ts +97 -97
- package/dist/components/utils/alert-modal.vue.d.ts +82 -82
- package/dist/components/utils/floating-tooltip.vue.d.ts +62 -62
- package/dist/components/utils/modal-window.vue.d.ts +18 -18
- package/dist/components/utils/yes-no.vue.d.ts +106 -106
- package/dist/components/volume-controls.vue.d.ts +18 -18
- package/dist/config/audio-config.d.ts +58 -58
- package/dist/config/buttons-config.d.ts +68 -68
- package/dist/config/characters-config.d.ts +36 -36
- package/dist/config/common-config.d.ts +80 -80
- package/dist/config/config-input.d.ts +231 -231
- package/dist/config/config-output.d.ts +232 -232
- package/dist/config/items-config.d.ts +71 -71
- package/dist/config/layout-config.d.ts +26 -26
- package/dist/config/quests-config.d.ts +48 -48
- package/dist/config/screens-config.d.ts +133 -133
- package/dist/config/skills-config.d.ts +70 -70
- package/dist/config/tooltips-config.d.ts +15 -15
- package/dist/config.d.ts +182 -182
- package/dist/constants.d.ts +12 -12
- package/dist/demo/demo.d.ts +1 -1
- package/dist/dialog-box.vue.d.ts +71 -71
- package/dist/exports/components.d.ts +2 -2
- package/dist/exports/config.d.ts +2 -2
- package/dist/exports/display.d.ts +2 -2
- package/dist/exports/events.d.ts +1 -1
- package/dist/exports/inputs.d.ts +1 -1
- package/dist/exports/others.d.ts +1 -1
- package/dist/exports/plugins.d.ts +67 -67
- package/dist/exports/stores.d.ts +16 -16
- package/dist/exports/utils.d.ts +12 -12
- package/dist/gamepad/gamepad.d.ts +1 -1
- package/dist/hooks/util-hooks.d.ts +1 -1
- package/dist/inputs/Inputs.d.ts +61 -61
- package/dist/lib.d.ts +20 -20
- package/dist/main.d.ts +6 -6
- package/dist/menu-buttons/menu-buttons.d.ts +7 -7
- package/dist/narrat.es.js +820 -808
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +5 -5
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/NarratPlugin.d.ts +12 -12
- package/dist/stores/audio-store.d.ts +56 -56
- package/dist/stores/config-store.d.ts +6 -6
- package/dist/stores/dialog-store.d.ts +35 -35
- package/dist/stores/hud-stats-store.d.ts +21 -20
- package/dist/stores/inputs-store.d.ts +14 -14
- package/dist/stores/inventory-store.d.ts +40 -49
- package/dist/stores/main-store.d.ts +1667 -1637
- package/dist/stores/menu-store.d.ts +45 -45
- package/dist/stores/notification-store.d.ts +15 -15
- package/dist/stores/quest-log.d.ts +38 -37
- package/dist/stores/rendering-store.d.ts +20 -20
- package/dist/stores/screen-objects-store.d.ts +80 -80
- package/dist/stores/screens-store.d.ts +36 -34
- package/dist/stores/skills.d.ts +40 -39
- package/dist/stores/start-menu-store.d.ts +7 -7
- package/dist/stores/tooltip-store.d.ts +18 -18
- package/dist/stores/vm-store.d.ts +181 -181
- package/dist/types/app-types.d.ts +8 -8
- package/dist/types/dialog-box-types.d.ts +11 -11
- package/dist/types/game-save.d.ts +41 -41
- package/dist/types/parser.d.ts +93 -93
- package/dist/types/state.d.ts +3 -3
- package/dist/utils/InputsListener.d.ts +9 -9
- package/dist/utils/Vector2.d.ts +49 -49
- package/dist/utils/ajax.d.ts +2 -2
- package/dist/utils/audio-loader.d.ts +10 -10
- package/dist/utils/characters.d.ts +4 -4
- package/dist/utils/data-helpers.d.ts +35 -35
- package/dist/utils/data-helpers.test.d.ts +1 -1
- package/dist/utils/debounce.d.ts +14 -14
- package/dist/utils/error-handling.d.ts +4 -4
- package/dist/utils/gameloop.d.ts +10 -10
- package/dist/utils/getWindow.d.ts +1 -1
- package/dist/utils/helpers.d.ts +6 -6
- package/dist/utils/images-loader.d.ts +7 -7
- package/dist/utils/logger.d.ts +11 -11
- package/dist/utils/object-iterators.d.ts +9 -9
- package/dist/utils/promises.d.ts +1 -1
- package/dist/utils/randomId.d.ts +1 -1
- package/dist/utils/save-helpers.d.ts +16 -16
- package/dist/utils/skillchecks.d.ts +17 -17
- package/dist/utils/string-helpers.d.ts +5 -5
- package/dist/utils/time-helpers.d.ts +2 -2
- package/dist/utils/tooltip-utils.d.ts +2 -2
- package/dist/utils/transition.d.ts +21 -21
- package/dist/utils/type-utils.d.ts +2 -2
- package/dist/utils/typed-emitter.d.ts +18 -18
- package/dist/utils/viewport-utils.d.ts +3 -3
- package/dist/utils/vue-directives.d.ts +2 -2
- package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
- package/dist/vm/commands/array-commands.d.ts +42 -42
- package/dist/vm/commands/audio-commands.d.ts +15 -15
- package/dist/vm/commands/choice.d.ts +38 -38
- package/dist/vm/commands/clear_dialog.d.ts +2 -2
- package/dist/vm/commands/command-helpers.d.ts +3 -3
- package/dist/vm/commands/command-plugin.d.ts +43 -43
- package/dist/vm/commands/flow-commands.d.ts +27 -27
- package/dist/vm/commands/if.d.ts +10 -10
- package/dist/vm/commands/index.d.ts +2 -2
- package/dist/vm/commands/inventory-commands.d.ts +15 -15
- package/dist/vm/commands/logic-command.d.ts +42 -42
- package/dist/vm/commands/math-commands.d.ts +30 -30
- package/dist/vm/commands/notify.d.ts +6 -6
- package/dist/vm/commands/quest-commands.d.ts +30 -30
- package/dist/vm/commands/random-commands.d.ts +13 -13
- package/dist/vm/commands/screen-commands.d.ts +18 -18
- package/dist/vm/commands/set.d.ts +6 -6
- package/dist/vm/commands/skill-commands.d.ts +39 -39
- package/dist/vm/commands/sprite-commands.d.ts +16 -16
- package/dist/vm/commands/stats-commands.d.ts +12 -12
- package/dist/vm/commands/string-commands.d.ts +9 -9
- package/dist/vm/commands/text-field.d.ts +7 -7
- package/dist/vm/commands/text.d.ts +14 -14
- package/dist/vm/commands/time-commands.d.ts +16 -16
- package/dist/vm/commands/util-commands.d.ts +4 -4
- package/dist/vm/commands/wait.d.ts +4 -4
- package/dist/vm/vm-helpers.d.ts +19 -19
- package/dist/vm/vm-parser.d.ts +19 -19
- package/dist/vm/vm-parser.test.d.ts +1 -1
- package/dist/vm/vm.d.ts +21 -21
- package/package.json +27 -27
- package/LICENSE +0 -21
package/dist/narrat.es.js
CHANGED
|
@@ -38299,13 +38299,13 @@ const dL = ["music", "ambiant", "sound"], qT = cee(dL), wi = hi("audio", {
|
|
|
38299
38299
|
const o = this.getAudioChannel(t, e);
|
|
38300
38300
|
o !== null && o.audio === n && (r.play(i), r.fade(
|
|
38301
38301
|
0,
|
|
38302
|
-
this.modeVolume(t),
|
|
38302
|
+
this.modeVolume(t) * r.volume(),
|
|
38303
38303
|
es().options.musicFadeInTime * 1e3,
|
|
38304
38304
|
i
|
|
38305
38305
|
));
|
|
38306
38306
|
} else if (t === "sound") {
|
|
38307
38307
|
const i = r.play();
|
|
38308
|
-
r.volume(this.modeVolume(t), i), this.setAudioChannel(t, e, {
|
|
38308
|
+
r.volume(this.modeVolume(t) * r.volume(), i), this.setAudioChannel(t, e, {
|
|
38309
38309
|
audio: n,
|
|
38310
38310
|
howlerId: i
|
|
38311
38311
|
});
|
|
@@ -38459,7 +38459,7 @@ const vL = "gameSave", Qp = "###_--_~=:;_JUMP", aw = "###_--_~=:;_RETURN", Uee =
|
|
|
38459
38459
|
function Wee(t) {
|
|
38460
38460
|
return t === Qp || t === aw || t === Uee || t === Yp;
|
|
38461
38461
|
}
|
|
38462
|
-
const Kee = "2.
|
|
38462
|
+
const Kee = "2.11.0", Jee = new Date("2023-04-08T18:21:56.034Z"), Gee = 400, jy = 20, mL = "1.4.0";
|
|
38463
38463
|
let Zr;
|
|
38464
38464
|
function gL() {
|
|
38465
38465
|
if (Zr)
|
|
@@ -40452,7 +40452,7 @@ const Oo = hi("screenObjects", {
|
|
|
40452
40452
|
this.objectsList = this.loadAllObjects(t.objectsList), this.tree = t.tree.map((e) => this.objectsList[e]);
|
|
40453
40453
|
},
|
|
40454
40454
|
reset() {
|
|
40455
|
-
this
|
|
40455
|
+
this.$reset();
|
|
40456
40456
|
},
|
|
40457
40457
|
screenObjectToSave(t) {
|
|
40458
40458
|
return {
|
|
@@ -40483,13 +40483,10 @@ const Oo = hi("screenObjects", {
|
|
|
40483
40483
|
generateSaveData() {
|
|
40484
40484
|
return {
|
|
40485
40485
|
lastLabel: this.lastLabel,
|
|
40486
|
-
data: Fy(this.data, (t) => {
|
|
40487
|
-
|
|
40488
|
-
|
|
40489
|
-
|
|
40490
|
-
id: t.id
|
|
40491
|
-
};
|
|
40492
|
-
})
|
|
40486
|
+
data: Fy(this.data, (t) => sA(t) ? {
|
|
40487
|
+
_entityType: t._entityType,
|
|
40488
|
+
id: t.id
|
|
40489
|
+
} : t)
|
|
40493
40490
|
};
|
|
40494
40491
|
},
|
|
40495
40492
|
loadSaveData(t) {
|
|
@@ -40528,7 +40525,7 @@ const Oo = hi("screenObjects", {
|
|
|
40528
40525
|
i = {
|
|
40529
40526
|
...i,
|
|
40530
40527
|
...Dre(
|
|
40531
|
-
(u, l, f) =>
|
|
40528
|
+
(u, l, f) => gie(u, l, f),
|
|
40532
40529
|
s,
|
|
40533
40530
|
t[a]
|
|
40534
40531
|
)
|
|
@@ -40820,7 +40817,7 @@ async function Yre(t, e) {
|
|
|
40820
40817
|
if (s.search(wL) === 0)
|
|
40821
40818
|
u = Xs(s.substring(3));
|
|
40822
40819
|
else if (jL(s)) {
|
|
40823
|
-
const l = oc(), f =
|
|
40820
|
+
const l = oc(), f = Hue(l, s);
|
|
40824
40821
|
if (f) {
|
|
40825
40822
|
const [c, d] = f;
|
|
40826
40823
|
u = c[d];
|
|
@@ -40941,6 +40938,9 @@ const is = hi("hud", {
|
|
|
40941
40938
|
value: t[e].startingValue
|
|
40942
40939
|
};
|
|
40943
40940
|
},
|
|
40941
|
+
reset(t) {
|
|
40942
|
+
this.$reset(), this.setupHudStats(t);
|
|
40943
|
+
},
|
|
40944
40944
|
setStat(t, e) {
|
|
40945
40945
|
this.hudStats[t].value = e;
|
|
40946
40946
|
},
|
|
@@ -41009,6 +41009,9 @@ const is = hi("hud", {
|
|
|
41009
41009
|
};
|
|
41010
41010
|
});
|
|
41011
41011
|
},
|
|
41012
|
+
reset(t) {
|
|
41013
|
+
this.$reset(), this.setupItems(t);
|
|
41014
|
+
},
|
|
41012
41015
|
hasItem(t, e) {
|
|
41013
41016
|
var n;
|
|
41014
41017
|
return e || (e = 1), ((n = this.items[t]) == null ? void 0 : n.amount) >= e;
|
|
@@ -41110,6 +41113,9 @@ const is = hi("hud", {
|
|
|
41110
41113
|
}
|
|
41111
41114
|
}
|
|
41112
41115
|
},
|
|
41116
|
+
reset(t) {
|
|
41117
|
+
this.$reset(), this.setupQuests(t);
|
|
41118
|
+
},
|
|
41113
41119
|
startQuest(t) {
|
|
41114
41120
|
const e = this.getQuest(t);
|
|
41115
41121
|
e ? (e.state = "unlocked", To().addNotification(
|
|
@@ -41242,15 +41248,15 @@ function lA(t, e, n) {
|
|
|
41242
41248
|
oldScreen: e
|
|
41243
41249
|
};
|
|
41244
41250
|
}
|
|
41245
|
-
const
|
|
41246
|
-
|
|
41247
|
-
|
|
41248
|
-
|
|
41249
|
-
|
|
41250
|
-
|
|
41251
|
-
|
|
41252
|
-
|
|
41253
|
-
|
|
41251
|
+
const pie = () => ({
|
|
41252
|
+
layers: [
|
|
41253
|
+
{
|
|
41254
|
+
screen: "default"
|
|
41255
|
+
}
|
|
41256
|
+
],
|
|
41257
|
+
buttons: {}
|
|
41258
|
+
}), Oa = hi("screens", {
|
|
41259
|
+
state: pie,
|
|
41254
41260
|
actions: {
|
|
41255
41261
|
setScreen(t, e, n) {
|
|
41256
41262
|
return new Promise((r) => {
|
|
@@ -41319,6 +41325,9 @@ const Oa = hi("screens", {
|
|
|
41319
41325
|
});
|
|
41320
41326
|
}
|
|
41321
41327
|
},
|
|
41328
|
+
reset(t) {
|
|
41329
|
+
this.$reset(), this.setButtons(t);
|
|
41330
|
+
},
|
|
41322
41331
|
changeButton(t, e) {
|
|
41323
41332
|
if (!this.buttons[t]) {
|
|
41324
41333
|
Zt(`Tried to change button ${t} but it doesn't exist`);
|
|
@@ -41436,7 +41445,7 @@ const ea = hi("menu", {
|
|
|
41436
41445
|
}
|
|
41437
41446
|
}
|
|
41438
41447
|
});
|
|
41439
|
-
function
|
|
41448
|
+
function vie() {
|
|
41440
41449
|
return {
|
|
41441
41450
|
baseAssetsPath: "",
|
|
41442
41451
|
baseDataPath: "",
|
|
@@ -41445,7 +41454,7 @@ function pie() {
|
|
|
41445
41454
|
debug: !1
|
|
41446
41455
|
};
|
|
41447
41456
|
}
|
|
41448
|
-
class
|
|
41457
|
+
class mie extends gw {
|
|
41449
41458
|
}
|
|
41450
41459
|
const rn = hi("main", {
|
|
41451
41460
|
state: () => ({
|
|
@@ -41474,7 +41483,7 @@ const rn = hi("main", {
|
|
|
41474
41483
|
},
|
|
41475
41484
|
alerts: [],
|
|
41476
41485
|
saving: null,
|
|
41477
|
-
listener: new
|
|
41486
|
+
listener: new mie(),
|
|
41478
41487
|
inScript: !1
|
|
41479
41488
|
}),
|
|
41480
41489
|
actions: {
|
|
@@ -41623,7 +41632,7 @@ const rn = hi("main", {
|
|
|
41623
41632
|
},
|
|
41624
41633
|
resetAllStores() {
|
|
41625
41634
|
const t = Oa(), e = wt();
|
|
41626
|
-
Oo().reset(), t.
|
|
41635
|
+
Oo().reset(), t.reset(e), Dr().reset(ia()), is().setupHudStats(e.hudStats), ti().reset(nk().items), Vi().reset(hm()), Xn().reset(), Jn.customStores().forEach(([a, s]) => {
|
|
41627
41636
|
s.reset && s.reset();
|
|
41628
41637
|
});
|
|
41629
41638
|
},
|
|
@@ -41708,7 +41717,7 @@ const rn = hi("main", {
|
|
|
41708
41717
|
}
|
|
41709
41718
|
}
|
|
41710
41719
|
});
|
|
41711
|
-
function
|
|
41720
|
+
function gie(t, e, n) {
|
|
41712
41721
|
console.error(`Parser error: ${t.fileName}:${t.currentLine}`, n);
|
|
41713
41722
|
const r = `[Parser Error] in <span class="error-filename">${t.fileName}:${e + 1}</span> - <b>${n}</b>`;
|
|
41714
41723
|
Zt(r);
|
|
@@ -41949,25 +41958,25 @@ var X = {};
|
|
|
41949
41958
|
}
|
|
41950
41959
|
t.TypeBuilder = n, t.Type = new n();
|
|
41951
41960
|
})(X);
|
|
41952
|
-
const
|
|
41961
|
+
const yie = X.Type.Object({
|
|
41953
41962
|
src: X.Type.String(),
|
|
41954
41963
|
path: X.Type.Optional(X.Type.String()),
|
|
41955
41964
|
volume: X.Type.Optional(X.Type.Number()),
|
|
41956
41965
|
rate: X.Type.Optional(X.Type.Number()),
|
|
41957
41966
|
html5: X.Type.Optional(X.Type.Boolean())
|
|
41958
|
-
}),
|
|
41967
|
+
}), bie = X.Type.Record(
|
|
41959
41968
|
X.Type.String(),
|
|
41960
|
-
|
|
41961
|
-
),
|
|
41969
|
+
yie
|
|
41970
|
+
), wie = X.Type.Object({
|
|
41962
41971
|
volume: X.Type.Optional(X.Type.Number()),
|
|
41963
41972
|
defaultMusic: X.Type.Optional(X.Type.String()),
|
|
41964
41973
|
musicFadeInTime: X.Type.Optional(X.Type.Number()),
|
|
41965
41974
|
musicFadeOutTime: X.Type.Optional(X.Type.Number()),
|
|
41966
41975
|
musicFadeInDelay: X.Type.Optional(X.Type.Number())
|
|
41967
|
-
}),
|
|
41968
|
-
files:
|
|
41969
|
-
audioTriggers:
|
|
41970
|
-
options:
|
|
41976
|
+
}), kie = X.Type.Record(X.Type.String(), X.Type.String()), _D = X.Type.Object({
|
|
41977
|
+
files: bie,
|
|
41978
|
+
audioTriggers: kie,
|
|
41979
|
+
options: wie
|
|
41971
41980
|
}), xD = {
|
|
41972
41981
|
files: {},
|
|
41973
41982
|
audioTriggers: {},
|
|
@@ -41977,7 +41986,7 @@ const gie = X.Type.Object({
|
|
|
41977
41986
|
musicFadeInDelay: 0.5,
|
|
41978
41987
|
musicFadeOutTime: 0.5
|
|
41979
41988
|
}
|
|
41980
|
-
},
|
|
41989
|
+
}, _ie = X.Type.Object({
|
|
41981
41990
|
name: X.Type.String(),
|
|
41982
41991
|
description: X.Type.String(),
|
|
41983
41992
|
icon: X.Type.String(),
|
|
@@ -41993,7 +42002,7 @@ const gie = X.Type.Object({
|
|
|
41993
42002
|
}), jD = X.Type.Object({
|
|
41994
42003
|
id: X.Type.String(),
|
|
41995
42004
|
title: X.Type.String()
|
|
41996
|
-
}), SD = X.Type.Record(X.Type.String(),
|
|
42005
|
+
}), SD = X.Type.Record(X.Type.String(), _ie);
|
|
41997
42006
|
X.Type.Object({
|
|
41998
42007
|
categories: X.Type.Array(jD),
|
|
41999
42008
|
items: SD
|
|
@@ -42009,20 +42018,20 @@ const CD = X.Type.Object({
|
|
|
42009
42018
|
}
|
|
42010
42019
|
],
|
|
42011
42020
|
items: {}
|
|
42012
|
-
},
|
|
42021
|
+
}, xie = X.Type.Object({
|
|
42013
42022
|
description: X.Type.String(),
|
|
42014
42023
|
hidden: X.Type.Optional(X.Type.Boolean())
|
|
42015
|
-
}),
|
|
42024
|
+
}), jie = X.Type.Object({
|
|
42016
42025
|
title: X.Type.String(),
|
|
42017
42026
|
description: X.Type.String(),
|
|
42018
|
-
objectives: X.Type.Record(X.Type.String(),
|
|
42027
|
+
objectives: X.Type.Record(X.Type.String(), xie),
|
|
42019
42028
|
category: X.Type.Optional(X.Type.String())
|
|
42020
|
-
}),
|
|
42029
|
+
}), Sie = X.Type.Object({
|
|
42021
42030
|
id: X.Type.String(),
|
|
42022
42031
|
title: X.Type.String()
|
|
42023
|
-
}),
|
|
42024
|
-
quests:
|
|
42025
|
-
categories: X.Type.Array(
|
|
42032
|
+
}), Cie = X.Type.Record(X.Type.String(), jie), OD = X.Type.Object({
|
|
42033
|
+
quests: Cie,
|
|
42034
|
+
categories: X.Type.Array(Sie)
|
|
42026
42035
|
}), TD = {
|
|
42027
42036
|
quests: {},
|
|
42028
42037
|
categories: [
|
|
@@ -42052,23 +42061,23 @@ const CD = X.Type.Object({
|
|
|
42052
42061
|
actionType: X.Type.Optional(X.Type.String()),
|
|
42053
42062
|
scriptClickable: X.Type.Optional(X.Type.Boolean()),
|
|
42054
42063
|
tag: X.Type.Optional(X.Type.String())
|
|
42055
|
-
}),
|
|
42056
|
-
buttons:
|
|
42064
|
+
}), $ie = X.Type.Record(X.Type.String(), AD), ED = X.Type.Object({
|
|
42065
|
+
buttons: $ie,
|
|
42057
42066
|
clickableDuringScriptsByDefault: X.Type.Optional(X.Type.Boolean())
|
|
42058
42067
|
}), MD = {
|
|
42059
42068
|
buttons: {},
|
|
42060
42069
|
clickableDuringScriptsByDefault: !1
|
|
42061
|
-
},
|
|
42070
|
+
}, Oie = X.Type.Intersect([
|
|
42062
42071
|
AD,
|
|
42063
42072
|
X.Type.Object({
|
|
42064
42073
|
id: X.Type.String()
|
|
42065
42074
|
})
|
|
42066
|
-
]),
|
|
42075
|
+
]), Tie = X.Type.Object({
|
|
42067
42076
|
background: X.Type.String(),
|
|
42068
42077
|
buttons: X.Type.Optional(
|
|
42069
|
-
X.Type.Array(X.Type.Union([X.Type.String(),
|
|
42078
|
+
X.Type.Array(X.Type.Union([X.Type.String(), Oie]))
|
|
42070
42079
|
)
|
|
42071
|
-
}), PD = X.Type.Record(X.Type.String(),
|
|
42080
|
+
}), PD = X.Type.Record(X.Type.String(), Tie);
|
|
42072
42081
|
X.Type.Object({
|
|
42073
42082
|
screens: PD
|
|
42074
42083
|
});
|
|
@@ -42076,7 +42085,7 @@ const ID = X.Type.Object({
|
|
|
42076
42085
|
screens: X.Type.Optional(PD)
|
|
42077
42086
|
}), ND = {
|
|
42078
42087
|
screens: {}
|
|
42079
|
-
},
|
|
42088
|
+
}, Aie = X.Type.Object({
|
|
42080
42089
|
name: X.Type.String(),
|
|
42081
42090
|
description: X.Type.String(),
|
|
42082
42091
|
startingLevel: X.Type.Number(),
|
|
@@ -42084,7 +42093,7 @@ const ID = X.Type.Object({
|
|
|
42084
42093
|
icon: X.Type.String()
|
|
42085
42094
|
}), LD = X.Type.Record(
|
|
42086
42095
|
X.Type.String(),
|
|
42087
|
-
|
|
42096
|
+
Aie
|
|
42088
42097
|
), DD = X.Type.Object({
|
|
42089
42098
|
xpPerLevel: X.Type.Number(),
|
|
42090
42099
|
notifyLevelUp: X.Type.Boolean()
|
|
@@ -42123,26 +42132,26 @@ const zD = X.Type.Object({
|
|
|
42123
42132
|
xpPerLevel: 10,
|
|
42124
42133
|
notifyLevelUp: !0
|
|
42125
42134
|
}
|
|
42126
|
-
},
|
|
42135
|
+
}, Eie = X.Type.Object({
|
|
42127
42136
|
color: X.Type.Optional(X.Type.String()),
|
|
42128
42137
|
boxCss: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.Any())),
|
|
42129
42138
|
nameCss: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.Any())),
|
|
42130
42139
|
textCss: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.Any()))
|
|
42131
|
-
}),
|
|
42140
|
+
}), Mie = X.Type.Object({
|
|
42132
42141
|
sprites: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.String())),
|
|
42133
42142
|
name: X.Type.String(),
|
|
42134
|
-
style: X.Type.Optional(
|
|
42143
|
+
style: X.Type.Optional(Eie)
|
|
42135
42144
|
}), BD = X.Type.Object({
|
|
42136
42145
|
config: X.Type.Object({
|
|
42137
42146
|
imagesPath: X.Type.String()
|
|
42138
42147
|
}),
|
|
42139
|
-
characters: X.Type.Record(X.Type.String(),
|
|
42148
|
+
characters: X.Type.Record(X.Type.String(), Mie)
|
|
42140
42149
|
}), qD = {
|
|
42141
42150
|
config: {
|
|
42142
42151
|
imagesPath: ""
|
|
42143
42152
|
},
|
|
42144
42153
|
characters: {}
|
|
42145
|
-
},
|
|
42154
|
+
}, Pie = X.Type.Object({
|
|
42146
42155
|
backgrounds: X.Type.Object({
|
|
42147
42156
|
width: X.Type.Number(),
|
|
42148
42157
|
height: X.Type.Number()
|
|
@@ -42170,7 +42179,7 @@ const zD = X.Type.Object({
|
|
|
42170
42179
|
})
|
|
42171
42180
|
)
|
|
42172
42181
|
})
|
|
42173
|
-
}),
|
|
42182
|
+
}), Iie = {
|
|
42174
42183
|
backgrounds: {
|
|
42175
42184
|
width: 880,
|
|
42176
42185
|
height: 720
|
|
@@ -42206,7 +42215,7 @@ const zD = X.Type.Object({
|
|
|
42206
42215
|
baseDataPath: "",
|
|
42207
42216
|
gameTitle: "Narrat Game",
|
|
42208
42217
|
images: {},
|
|
42209
|
-
layout:
|
|
42218
|
+
layout: Iie,
|
|
42210
42219
|
gameFlow: {},
|
|
42211
42220
|
dialogPanel: {
|
|
42212
42221
|
overlayMode: !0,
|
|
@@ -42256,7 +42265,7 @@ const zD = X.Type.Object({
|
|
|
42256
42265
|
this.config = t;
|
|
42257
42266
|
}
|
|
42258
42267
|
}
|
|
42259
|
-
}),
|
|
42268
|
+
}), Nie = X.Type.Optional(
|
|
42260
42269
|
X.Type.Object({
|
|
42261
42270
|
animateText: X.Type.Optional(X.Type.Boolean()),
|
|
42262
42271
|
textSpeed: X.Type.Optional(X.Type.Number()),
|
|
@@ -42267,7 +42276,7 @@ const zD = X.Type.Object({
|
|
|
42267
42276
|
width: X.Type.Optional(X.Type.Number()),
|
|
42268
42277
|
height: X.Type.Optional(X.Type.Number())
|
|
42269
42278
|
})
|
|
42270
|
-
),
|
|
42279
|
+
), Lie = X.Type.Object({
|
|
42271
42280
|
engineSplashScreen: X.Type.Optional(
|
|
42272
42281
|
X.Type.Object({
|
|
42273
42282
|
skip: X.Type.Optional(X.Type.Boolean()),
|
|
@@ -42282,67 +42291,67 @@ const zD = X.Type.Object({
|
|
|
42282
42291
|
startButtonText: X.Type.Optional(X.Type.String())
|
|
42283
42292
|
})
|
|
42284
42293
|
)
|
|
42285
|
-
}),
|
|
42294
|
+
}), Die = X.Type.Object({
|
|
42286
42295
|
timeOnScreen: X.Type.Number(),
|
|
42287
42296
|
alsoPrintInDialogue: X.Type.Optional(X.Type.Boolean())
|
|
42288
|
-
}),
|
|
42297
|
+
}), Rie = X.Type.Object({
|
|
42289
42298
|
name: X.Type.String(),
|
|
42290
42299
|
icon: X.Type.String(),
|
|
42291
42300
|
startingValue: X.Type.Number(),
|
|
42292
42301
|
maxValue: X.Type.Optional(X.Type.Number()),
|
|
42293
42302
|
minValue: X.Type.Optional(X.Type.Number())
|
|
42294
|
-
}),
|
|
42303
|
+
}), zie = X.Type.Record(
|
|
42295
42304
|
X.Type.String(),
|
|
42296
|
-
|
|
42297
|
-
),
|
|
42305
|
+
Rie
|
|
42306
|
+
), Fie = X.Type.Record(
|
|
42298
42307
|
X.Type.String(),
|
|
42299
42308
|
X.Type.Object({
|
|
42300
42309
|
onlyInteractOutsideOfScripts: X.Type.Optional(X.Type.Boolean())
|
|
42301
42310
|
})
|
|
42302
|
-
),
|
|
42311
|
+
), Bie = X.Type.Object({
|
|
42303
42312
|
delay: X.Type.Optional(X.Type.Number()),
|
|
42304
42313
|
duration: X.Type.Optional(X.Type.Number())
|
|
42305
|
-
}),
|
|
42314
|
+
}), qie = X.Type.Record(
|
|
42306
42315
|
X.Type.String(),
|
|
42307
|
-
|
|
42308
|
-
),
|
|
42316
|
+
Bie
|
|
42317
|
+
), Vie = X.Type.Object({
|
|
42309
42318
|
text: X.Type.String()
|
|
42310
|
-
}),
|
|
42319
|
+
}), Hie = X.Type.Record(
|
|
42311
42320
|
X.Type.String(),
|
|
42312
|
-
|
|
42313
|
-
),
|
|
42321
|
+
Vie
|
|
42322
|
+
), Uie = X.Type.Object({
|
|
42314
42323
|
showScriptFinishedMessage: X.Type.Optional(X.Type.Boolean())
|
|
42315
|
-
}),
|
|
42324
|
+
}), Wie = X.Type.Object({
|
|
42316
42325
|
mode: X.Type.String(),
|
|
42317
42326
|
slots: X.Type.Number()
|
|
42318
|
-
}), WD = X.Type.Array(X.Type.String()),
|
|
42327
|
+
}), WD = X.Type.Array(X.Type.String()), Kie = [], Jie = X.Type.Object({
|
|
42319
42328
|
baseAssetsPath: X.Type.Optional(X.Type.String()),
|
|
42320
42329
|
baseDataPath: X.Type.Optional(X.Type.String()),
|
|
42321
42330
|
gameTitle: X.Type.String(),
|
|
42322
42331
|
images: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.String())),
|
|
42323
|
-
layout:
|
|
42332
|
+
layout: Pie,
|
|
42324
42333
|
gameFlow: X.Type.Optional(
|
|
42325
42334
|
X.Type.Object({
|
|
42326
42335
|
labelToJumpOnScriptEnd: X.Type.Optional(X.Type.String())
|
|
42327
42336
|
})
|
|
42328
42337
|
),
|
|
42329
|
-
dialogPanel: X.Type.Optional(
|
|
42330
|
-
splashScreens: X.Type.Optional(
|
|
42338
|
+
dialogPanel: X.Type.Optional(Nie),
|
|
42339
|
+
splashScreens: X.Type.Optional(Lie),
|
|
42331
42340
|
screens: X.Type.Union([X.Type.String(), ID]),
|
|
42332
42341
|
buttons: X.Type.Optional(X.Type.Union([X.Type.String(), ED])),
|
|
42333
42342
|
skills: X.Type.Optional(X.Type.Union([X.Type.String(), zD])),
|
|
42334
42343
|
scripts: X.Type.Union([X.Type.String(), WD]),
|
|
42335
42344
|
audio: X.Type.Union([X.Type.String(), _D]),
|
|
42336
|
-
notifications: X.Type.Optional(
|
|
42345
|
+
notifications: X.Type.Optional(Die),
|
|
42337
42346
|
tooltips: X.Type.Optional(X.Type.Union([X.Type.String(), VD])),
|
|
42338
|
-
hudStats:
|
|
42347
|
+
hudStats: zie,
|
|
42339
42348
|
items: X.Type.Optional(X.Type.Union([X.Type.String(), CD])),
|
|
42340
|
-
interactionTags: X.Type.Optional(
|
|
42349
|
+
interactionTags: X.Type.Optional(Fie),
|
|
42341
42350
|
quests: X.Type.Optional(X.Type.Union([X.Type.String(), OD])),
|
|
42342
|
-
transitions: X.Type.Optional(
|
|
42343
|
-
menuButtons: X.Type.Optional(
|
|
42344
|
-
debugging: X.Type.Optional(
|
|
42345
|
-
saves: X.Type.Optional(
|
|
42351
|
+
transitions: X.Type.Optional(qie),
|
|
42352
|
+
menuButtons: X.Type.Optional(Hie),
|
|
42353
|
+
debugging: X.Type.Optional(Uie),
|
|
42354
|
+
saves: X.Type.Optional(Wie),
|
|
42346
42355
|
characters: X.Type.Union([X.Type.String(), BD])
|
|
42347
42356
|
});
|
|
42348
42357
|
var My = { exports: {} }, KD = {}, ra = {}, nc = {}, jd = {}, Pn = {}, Yf = {};
|
|
@@ -43257,7 +43266,7 @@ var Vn = {};
|
|
|
43257
43266
|
})(Vn);
|
|
43258
43267
|
var Ha = {};
|
|
43259
43268
|
Object.defineProperty(Ha, "__esModule", { value: !0 });
|
|
43260
|
-
const yi = Pn,
|
|
43269
|
+
const yi = Pn, Gie = {
|
|
43261
43270
|
data: new yi.Name("data"),
|
|
43262
43271
|
valCxt: new yi.Name("valCxt"),
|
|
43263
43272
|
instancePath: new yi.Name("instancePath"),
|
|
@@ -43275,7 +43284,7 @@ const yi = Pn, Jie = {
|
|
|
43275
43284
|
jsonLen: new yi.Name("jsonLen"),
|
|
43276
43285
|
jsonPart: new yi.Name("jsonPart")
|
|
43277
43286
|
};
|
|
43278
|
-
Ha.default =
|
|
43287
|
+
Ha.default = Gie;
|
|
43279
43288
|
(function(t) {
|
|
43280
43289
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.extendErrors = t.resetErrorsCount = t.reportExtraError = t.reportError = t.keyword$DataError = t.keywordError = void 0;
|
|
43281
43290
|
const e = Pn, n = Vn, r = Ha;
|
|
@@ -43350,19 +43359,19 @@ Ha.default = Jie;
|
|
|
43350
43359
|
})(jd);
|
|
43351
43360
|
Object.defineProperty(nc, "__esModule", { value: !0 });
|
|
43352
43361
|
nc.boolOrEmptySchema = nc.topBoolOrEmptySchema = void 0;
|
|
43353
|
-
const
|
|
43362
|
+
const Qie = jd, Yie = Pn, Xie = Ha, Zie = {
|
|
43354
43363
|
message: "boolean schema is false"
|
|
43355
43364
|
};
|
|
43356
|
-
function
|
|
43365
|
+
function eoe(t) {
|
|
43357
43366
|
const { gen: e, schema: n, validateName: r } = t;
|
|
43358
|
-
n === !1 ? JD(t, !1) : typeof n == "object" && n.$async === !0 ? e.return(
|
|
43367
|
+
n === !1 ? JD(t, !1) : typeof n == "object" && n.$async === !0 ? e.return(Xie.default.data) : (e.assign((0, Yie._)`${r}.errors`, null), e.return(!0));
|
|
43359
43368
|
}
|
|
43360
|
-
nc.topBoolOrEmptySchema =
|
|
43361
|
-
function
|
|
43369
|
+
nc.topBoolOrEmptySchema = eoe;
|
|
43370
|
+
function toe(t, e) {
|
|
43362
43371
|
const { gen: n, schema: r } = t;
|
|
43363
43372
|
r === !1 ? (n.var(e, !1), JD(t)) : n.var(e, !0);
|
|
43364
43373
|
}
|
|
43365
|
-
nc.boolOrEmptySchema =
|
|
43374
|
+
nc.boolOrEmptySchema = toe;
|
|
43366
43375
|
function JD(t, e) {
|
|
43367
43376
|
const { gen: n, data: r } = t, i = {
|
|
43368
43377
|
gen: n,
|
|
@@ -43374,17 +43383,17 @@ function JD(t, e) {
|
|
|
43374
43383
|
params: {},
|
|
43375
43384
|
it: t
|
|
43376
43385
|
};
|
|
43377
|
-
(0,
|
|
43386
|
+
(0, Qie.reportError)(i, Zie, void 0, e);
|
|
43378
43387
|
}
|
|
43379
43388
|
var Sd = {}, Uu = {};
|
|
43380
43389
|
Object.defineProperty(Uu, "__esModule", { value: !0 });
|
|
43381
43390
|
Uu.getRules = Uu.isJSONType = void 0;
|
|
43382
|
-
const
|
|
43383
|
-
function
|
|
43384
|
-
return typeof t == "string" &&
|
|
43391
|
+
const noe = ["string", "number", "integer", "boolean", "null", "object", "array"], roe = new Set(noe);
|
|
43392
|
+
function ioe(t) {
|
|
43393
|
+
return typeof t == "string" && roe.has(t);
|
|
43385
43394
|
}
|
|
43386
|
-
Uu.isJSONType =
|
|
43387
|
-
function
|
|
43395
|
+
Uu.isJSONType = ioe;
|
|
43396
|
+
function ooe() {
|
|
43388
43397
|
const t = {
|
|
43389
43398
|
number: { type: "number", rules: [] },
|
|
43390
43399
|
string: { type: "string", rules: [] },
|
|
@@ -43399,15 +43408,15 @@ function ioe() {
|
|
|
43399
43408
|
keywords: {}
|
|
43400
43409
|
};
|
|
43401
43410
|
}
|
|
43402
|
-
Uu.getRules =
|
|
43411
|
+
Uu.getRules = ooe;
|
|
43403
43412
|
var ss = {};
|
|
43404
43413
|
Object.defineProperty(ss, "__esModule", { value: !0 });
|
|
43405
43414
|
ss.shouldUseRule = ss.shouldUseGroup = ss.schemaHasRulesForType = void 0;
|
|
43406
|
-
function
|
|
43415
|
+
function aoe({ schema: t, self: e }, n) {
|
|
43407
43416
|
const r = e.RULES.types[n];
|
|
43408
43417
|
return r && r !== !0 && GD(t, r);
|
|
43409
43418
|
}
|
|
43410
|
-
ss.schemaHasRulesForType =
|
|
43419
|
+
ss.schemaHasRulesForType = aoe;
|
|
43411
43420
|
function GD(t, e) {
|
|
43412
43421
|
return e.rules.some((n) => QD(t, n));
|
|
43413
43422
|
}
|
|
@@ -43565,8 +43574,8 @@ ss.shouldUseRule = QD;
|
|
|
43565
43574
|
var sm = {};
|
|
43566
43575
|
Object.defineProperty(sm, "__esModule", { value: !0 });
|
|
43567
43576
|
sm.assignDefaults = void 0;
|
|
43568
|
-
const ul = Pn,
|
|
43569
|
-
function
|
|
43577
|
+
const ul = Pn, soe = Vn;
|
|
43578
|
+
function uoe(t, e) {
|
|
43570
43579
|
const { properties: n, items: r } = t.schema;
|
|
43571
43580
|
if (e === "object" && n)
|
|
43572
43581
|
for (const i in n)
|
|
@@ -43574,14 +43583,14 @@ function soe(t, e) {
|
|
|
43574
43583
|
else
|
|
43575
43584
|
e === "array" && Array.isArray(r) && r.forEach((i, o) => cA(t, o, i.default));
|
|
43576
43585
|
}
|
|
43577
|
-
sm.assignDefaults =
|
|
43586
|
+
sm.assignDefaults = uoe;
|
|
43578
43587
|
function cA(t, e, n) {
|
|
43579
43588
|
const { gen: r, compositeRule: i, data: o, opts: a } = t;
|
|
43580
43589
|
if (n === void 0)
|
|
43581
43590
|
return;
|
|
43582
43591
|
const s = (0, ul._)`${o}${(0, ul.getProperty)(e)}`;
|
|
43583
43592
|
if (i) {
|
|
43584
|
-
(0,
|
|
43593
|
+
(0, soe.checkStrictMode)(t, `default is ignored for: ${s}`);
|
|
43585
43594
|
return;
|
|
43586
43595
|
}
|
|
43587
43596
|
let u = (0, ul._)`${s} === undefined`;
|
|
@@ -43590,22 +43599,22 @@ function cA(t, e, n) {
|
|
|
43590
43599
|
var Ta = {}, An = {};
|
|
43591
43600
|
Object.defineProperty(An, "__esModule", { value: !0 });
|
|
43592
43601
|
An.validateUnion = An.validateArray = An.usePattern = An.callValidateCode = An.schemaProperties = An.allSchemaProperties = An.noPropertyInData = An.propertyInData = An.isOwnProperty = An.hasPropFunc = An.reportMissingProp = An.checkMissingProp = An.checkReportMissingProp = void 0;
|
|
43593
|
-
const br = Pn, yw = Vn, $s = Ha,
|
|
43594
|
-
function
|
|
43602
|
+
const br = Pn, yw = Vn, $s = Ha, loe = Vn;
|
|
43603
|
+
function coe(t, e) {
|
|
43595
43604
|
const { gen: n, data: r, it: i } = t;
|
|
43596
43605
|
n.if(ww(n, r, e, i.opts.ownProperties), () => {
|
|
43597
43606
|
t.setParams({ missingProperty: (0, br._)`${e}` }, !0), t.error();
|
|
43598
43607
|
});
|
|
43599
43608
|
}
|
|
43600
|
-
An.checkReportMissingProp =
|
|
43601
|
-
function
|
|
43609
|
+
An.checkReportMissingProp = coe;
|
|
43610
|
+
function foe({ gen: t, data: e, it: { opts: n } }, r, i) {
|
|
43602
43611
|
return (0, br.or)(...r.map((o) => (0, br.and)(ww(t, e, o, n.ownProperties), (0, br._)`${i} = ${o}`)));
|
|
43603
43612
|
}
|
|
43604
|
-
An.checkMissingProp =
|
|
43605
|
-
function
|
|
43613
|
+
An.checkMissingProp = foe;
|
|
43614
|
+
function doe(t, e) {
|
|
43606
43615
|
t.setParams({ missingProperty: e }, !0), t.error();
|
|
43607
43616
|
}
|
|
43608
|
-
An.reportMissingProp =
|
|
43617
|
+
An.reportMissingProp = doe;
|
|
43609
43618
|
function YD(t) {
|
|
43610
43619
|
return t.scopeValue("func", {
|
|
43611
43620
|
ref: Object.prototype.hasOwnProperty,
|
|
@@ -43617,11 +43626,11 @@ function bw(t, e, n) {
|
|
|
43617
43626
|
return (0, br._)`${YD(t)}.call(${e}, ${n})`;
|
|
43618
43627
|
}
|
|
43619
43628
|
An.isOwnProperty = bw;
|
|
43620
|
-
function
|
|
43629
|
+
function hoe(t, e, n, r) {
|
|
43621
43630
|
const i = (0, br._)`${e}${(0, br.getProperty)(n)} !== undefined`;
|
|
43622
43631
|
return r ? (0, br._)`${i} && ${bw(t, e, n)}` : i;
|
|
43623
43632
|
}
|
|
43624
|
-
An.propertyInData =
|
|
43633
|
+
An.propertyInData = hoe;
|
|
43625
43634
|
function ww(t, e, n, r) {
|
|
43626
43635
|
const i = (0, br._)`${e}${(0, br.getProperty)(n)} === undefined`;
|
|
43627
43636
|
return r ? (0, br.or)(i, (0, br.not)(bw(t, e, n))) : i;
|
|
@@ -43631,11 +43640,11 @@ function XD(t) {
|
|
|
43631
43640
|
return t ? Object.keys(t).filter((e) => e !== "__proto__") : [];
|
|
43632
43641
|
}
|
|
43633
43642
|
An.allSchemaProperties = XD;
|
|
43634
|
-
function
|
|
43643
|
+
function poe(t, e) {
|
|
43635
43644
|
return XD(e).filter((n) => !(0, yw.alwaysValidSchema)(t, e[n]));
|
|
43636
43645
|
}
|
|
43637
|
-
An.schemaProperties =
|
|
43638
|
-
function
|
|
43646
|
+
An.schemaProperties = poe;
|
|
43647
|
+
function voe({ schemaCode: t, data: e, it: { gen: n, topSchemaRef: r, schemaPath: i, errorPath: o }, it: a }, s, u, l) {
|
|
43639
43648
|
const f = l ? (0, br._)`${t}, ${e}, ${r}${i}` : e, c = [
|
|
43640
43649
|
[$s.default.instancePath, (0, br.strConcat)($s.default.instancePath, o)],
|
|
43641
43650
|
[$s.default.parentData, a.parentData],
|
|
@@ -43646,18 +43655,18 @@ function poe({ schemaCode: t, data: e, it: { gen: n, topSchemaRef: r, schemaPath
|
|
|
43646
43655
|
const d = (0, br._)`${f}, ${n.object(...c)}`;
|
|
43647
43656
|
return u !== br.nil ? (0, br._)`${s}.call(${u}, ${d})` : (0, br._)`${s}(${d})`;
|
|
43648
43657
|
}
|
|
43649
|
-
An.callValidateCode =
|
|
43650
|
-
const
|
|
43651
|
-
function
|
|
43658
|
+
An.callValidateCode = voe;
|
|
43659
|
+
const moe = (0, br._)`new RegExp`;
|
|
43660
|
+
function goe({ gen: t, it: { opts: e } }, n) {
|
|
43652
43661
|
const r = e.unicodeRegExp ? "u" : "", { regExp: i } = e.code, o = i(n, r);
|
|
43653
43662
|
return t.scopeValue("pattern", {
|
|
43654
43663
|
key: o.toString(),
|
|
43655
43664
|
ref: o,
|
|
43656
|
-
code: (0, br._)`${i.code === "new RegExp" ?
|
|
43665
|
+
code: (0, br._)`${i.code === "new RegExp" ? moe : (0, loe.useFunc)(t, i)}(${n}, ${r})`
|
|
43657
43666
|
});
|
|
43658
43667
|
}
|
|
43659
|
-
An.usePattern =
|
|
43660
|
-
function
|
|
43668
|
+
An.usePattern = goe;
|
|
43669
|
+
function yoe(t) {
|
|
43661
43670
|
const { gen: e, data: n, keyword: r, it: i } = t, o = e.name("valid");
|
|
43662
43671
|
if (i.allErrors) {
|
|
43663
43672
|
const s = e.let("valid", !0);
|
|
@@ -43675,8 +43684,8 @@ function goe(t) {
|
|
|
43675
43684
|
});
|
|
43676
43685
|
}
|
|
43677
43686
|
}
|
|
43678
|
-
An.validateArray =
|
|
43679
|
-
function
|
|
43687
|
+
An.validateArray = yoe;
|
|
43688
|
+
function boe(t) {
|
|
43680
43689
|
const { gen: e, schema: n, keyword: r, it: i } = t;
|
|
43681
43690
|
if (!Array.isArray(n))
|
|
43682
43691
|
throw new Error("ajv implementation error");
|
|
@@ -43692,11 +43701,11 @@ function yoe(t) {
|
|
|
43692
43701
|
e.assign(a, (0, br._)`${a} || ${s}`), t.mergeValidEvaluated(f, s) || e.if((0, br.not)(a));
|
|
43693
43702
|
})), t.result(a, () => t.reset(), () => t.error(!0));
|
|
43694
43703
|
}
|
|
43695
|
-
An.validateUnion =
|
|
43704
|
+
An.validateUnion = boe;
|
|
43696
43705
|
Object.defineProperty(Ta, "__esModule", { value: !0 });
|
|
43697
43706
|
Ta.validateKeywordUsage = Ta.validSchemaType = Ta.funcKeywordCode = Ta.macroKeywordCode = void 0;
|
|
43698
|
-
const Ii = Pn, bu = Ha,
|
|
43699
|
-
function
|
|
43707
|
+
const Ii = Pn, bu = Ha, woe = An, koe = jd;
|
|
43708
|
+
function _oe(t, e) {
|
|
43700
43709
|
const { gen: n, keyword: r, schema: i, parentSchema: o, it: a } = t, s = e.macro.call(a.self, i, o, a), u = ZD(n, r, s);
|
|
43701
43710
|
a.opts.validateSchema !== !1 && a.self.validateSchema(s, !0);
|
|
43702
43711
|
const l = n.name("valid");
|
|
@@ -43708,11 +43717,11 @@ function koe(t, e) {
|
|
|
43708
43717
|
compositeRule: !0
|
|
43709
43718
|
}, l), t.pass(l, () => t.error(!0));
|
|
43710
43719
|
}
|
|
43711
|
-
Ta.macroKeywordCode =
|
|
43712
|
-
function
|
|
43720
|
+
Ta.macroKeywordCode = _oe;
|
|
43721
|
+
function xoe(t, e) {
|
|
43713
43722
|
var n;
|
|
43714
43723
|
const { gen: r, keyword: i, schema: o, parentSchema: a, $data: s, it: u } = t;
|
|
43715
|
-
|
|
43724
|
+
Soe(u, e);
|
|
43716
43725
|
const l = !s && e.compile ? e.compile.call(u.self, o, a, u) : e.validate, f = ZD(r, i, l), c = r.let("valid");
|
|
43717
43726
|
t.block$data(c, d), t.ok((n = e.valid) !== null && n !== void 0 ? n : c);
|
|
43718
43727
|
function d() {
|
|
@@ -43720,7 +43729,7 @@ function _oe(t, e) {
|
|
|
43720
43729
|
v(), e.modifying && fA(t), g(() => t.error());
|
|
43721
43730
|
else {
|
|
43722
43731
|
const m = e.async ? h() : p();
|
|
43723
|
-
e.modifying && fA(t), g(() =>
|
|
43732
|
+
e.modifying && fA(t), g(() => joe(t, m));
|
|
43724
43733
|
}
|
|
43725
43734
|
}
|
|
43726
43735
|
function h() {
|
|
@@ -43733,25 +43742,25 @@ function _oe(t, e) {
|
|
|
43733
43742
|
}
|
|
43734
43743
|
function v(m = e.async ? (0, Ii._)`await ` : Ii.nil) {
|
|
43735
43744
|
const y = u.opts.passContext ? bu.default.this : bu.default.self, b = !("compile" in e && !s || e.schema === !1);
|
|
43736
|
-
r.assign(c, (0, Ii._)`${m}${(0,
|
|
43745
|
+
r.assign(c, (0, Ii._)`${m}${(0, woe.callValidateCode)(t, f, y, b)}`, e.modifying);
|
|
43737
43746
|
}
|
|
43738
43747
|
function g(m) {
|
|
43739
43748
|
var y;
|
|
43740
43749
|
r.if((0, Ii.not)((y = e.valid) !== null && y !== void 0 ? y : c), m);
|
|
43741
43750
|
}
|
|
43742
43751
|
}
|
|
43743
|
-
Ta.funcKeywordCode =
|
|
43752
|
+
Ta.funcKeywordCode = xoe;
|
|
43744
43753
|
function fA(t) {
|
|
43745
43754
|
const { gen: e, data: n, it: r } = t;
|
|
43746
43755
|
e.if(r.parentData, () => e.assign(n, (0, Ii._)`${r.parentData}[${r.parentDataProperty}]`));
|
|
43747
43756
|
}
|
|
43748
|
-
function
|
|
43757
|
+
function joe(t, e) {
|
|
43749
43758
|
const { gen: n } = t;
|
|
43750
43759
|
n.if((0, Ii._)`Array.isArray(${e})`, () => {
|
|
43751
|
-
n.assign(bu.default.vErrors, (0, Ii._)`${bu.default.vErrors} === null ? ${e} : ${bu.default.vErrors}.concat(${e})`).assign(bu.default.errors, (0, Ii._)`${bu.default.vErrors}.length`), (0,
|
|
43760
|
+
n.assign(bu.default.vErrors, (0, Ii._)`${bu.default.vErrors} === null ? ${e} : ${bu.default.vErrors}.concat(${e})`).assign(bu.default.errors, (0, Ii._)`${bu.default.vErrors}.length`), (0, koe.extendErrors)(t);
|
|
43752
43761
|
}, () => t.error());
|
|
43753
43762
|
}
|
|
43754
|
-
function
|
|
43763
|
+
function Soe({ schemaEnv: t }, e) {
|
|
43755
43764
|
if (e.async && !t.$async)
|
|
43756
43765
|
throw new Error("async keyword in sync schema");
|
|
43757
43766
|
}
|
|
@@ -43760,11 +43769,11 @@ function ZD(t, e, n) {
|
|
|
43760
43769
|
throw new Error(`keyword "${e}" failed to compile`);
|
|
43761
43770
|
return t.scopeValue("keyword", typeof n == "function" ? { ref: n } : { ref: n, code: (0, Ii.stringify)(n) });
|
|
43762
43771
|
}
|
|
43763
|
-
function
|
|
43772
|
+
function Coe(t, e, n = !1) {
|
|
43764
43773
|
return !e.length || e.some((r) => r === "array" ? Array.isArray(t) : r === "object" ? t && typeof t == "object" && !Array.isArray(t) : typeof t == r || n && typeof t > "u");
|
|
43765
43774
|
}
|
|
43766
|
-
Ta.validSchemaType =
|
|
43767
|
-
function
|
|
43775
|
+
Ta.validSchemaType = Coe;
|
|
43776
|
+
function $oe({ schema: t, opts: e, self: n, errSchemaPath: r }, i, o) {
|
|
43768
43777
|
if (Array.isArray(i.keyword) ? !i.keyword.includes(o) : i.keyword !== o)
|
|
43769
43778
|
throw new Error("ajv implementation error");
|
|
43770
43779
|
const a = i.dependencies;
|
|
@@ -43778,12 +43787,12 @@ function Coe({ schema: t, opts: e, self: n, errSchemaPath: r }, i, o) {
|
|
|
43778
43787
|
throw new Error(u);
|
|
43779
43788
|
}
|
|
43780
43789
|
}
|
|
43781
|
-
Ta.validateKeywordUsage =
|
|
43790
|
+
Ta.validateKeywordUsage = $oe;
|
|
43782
43791
|
var Bs = {};
|
|
43783
43792
|
Object.defineProperty(Bs, "__esModule", { value: !0 });
|
|
43784
43793
|
Bs.extendSubschemaMode = Bs.extendSubschemaData = Bs.getSubschema = void 0;
|
|
43785
43794
|
const xa = Pn, eR = Vn;
|
|
43786
|
-
function
|
|
43795
|
+
function Ooe(t, { keyword: e, schemaProp: n, schema: r, schemaPath: i, errSchemaPath: o, topSchemaRef: a }) {
|
|
43787
43796
|
if (e !== void 0 && r !== void 0)
|
|
43788
43797
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
43789
43798
|
if (e !== void 0) {
|
|
@@ -43810,8 +43819,8 @@ function $oe(t, { keyword: e, schemaProp: n, schema: r, schemaPath: i, errSchema
|
|
|
43810
43819
|
}
|
|
43811
43820
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
43812
43821
|
}
|
|
43813
|
-
Bs.getSubschema =
|
|
43814
|
-
function
|
|
43822
|
+
Bs.getSubschema = Ooe;
|
|
43823
|
+
function Toe(t, e, { dataProp: n, dataPropType: r, data: i, dataTypes: o, propertyName: a }) {
|
|
43815
43824
|
if (i !== void 0 && n !== void 0)
|
|
43816
43825
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
43817
43826
|
const { gen: s } = e;
|
|
@@ -43828,11 +43837,11 @@ function Ooe(t, e, { dataProp: n, dataPropType: r, data: i, dataTypes: o, proper
|
|
|
43828
43837
|
t.data = l, t.dataLevel = e.dataLevel + 1, t.dataTypes = [], e.definedProperties = /* @__PURE__ */ new Set(), t.parentData = e.data, t.dataNames = [...e.dataNames, l];
|
|
43829
43838
|
}
|
|
43830
43839
|
}
|
|
43831
|
-
Bs.extendSubschemaData =
|
|
43832
|
-
function
|
|
43840
|
+
Bs.extendSubschemaData = Toe;
|
|
43841
|
+
function Aoe(t, { jtdDiscriminator: e, jtdMetadata: n, compositeRule: r, createErrors: i, allErrors: o }) {
|
|
43833
43842
|
r !== void 0 && (t.compositeRule = r), i !== void 0 && (t.createErrors = i), o !== void 0 && (t.allErrors = o), t.jtdDiscriminator = e, t.jtdMetadata = n;
|
|
43834
43843
|
}
|
|
43835
|
-
Bs.extendSubschemaMode =
|
|
43844
|
+
Bs.extendSubschemaMode = Aoe;
|
|
43836
43845
|
var ui = {}, tR = function t(e, n) {
|
|
43837
43846
|
if (e === n)
|
|
43838
43847
|
return !0;
|
|
@@ -43930,19 +43939,19 @@ function Uh(t, e, n, r, i, o, a, s, u, l) {
|
|
|
43930
43939
|
} else if (f in Ns.propsKeywords) {
|
|
43931
43940
|
if (c && typeof c == "object")
|
|
43932
43941
|
for (var h in c)
|
|
43933
|
-
Uh(t, e, n, c[h], i + "/" + f + "/" +
|
|
43942
|
+
Uh(t, e, n, c[h], i + "/" + f + "/" + Eoe(h), o, i, f, r, h);
|
|
43934
43943
|
} else
|
|
43935
43944
|
(f in Ns.keywords || t.allKeys && !(f in Ns.skipKeywords)) && Uh(t, e, n, c, i + "/" + f, o, i, f, r);
|
|
43936
43945
|
}
|
|
43937
43946
|
n(r, i, o, a, s, u, l);
|
|
43938
43947
|
}
|
|
43939
43948
|
}
|
|
43940
|
-
function
|
|
43949
|
+
function Eoe(t) {
|
|
43941
43950
|
return t.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
43942
43951
|
}
|
|
43943
43952
|
Object.defineProperty(ui, "__esModule", { value: !0 });
|
|
43944
43953
|
ui.getSchemaRefs = ui.resolveUrl = ui.normalizeId = ui._getFullPath = ui.getFullPath = ui.inlineRef = void 0;
|
|
43945
|
-
const
|
|
43954
|
+
const Moe = Vn, Poe = tR, Ioe = nR.exports, Noe = /* @__PURE__ */ new Set([
|
|
43946
43955
|
"type",
|
|
43947
43956
|
"format",
|
|
43948
43957
|
"pattern",
|
|
@@ -43960,11 +43969,11 @@ const Eoe = Vn, Moe = tR, Poe = nR.exports, Ioe = /* @__PURE__ */ new Set([
|
|
|
43960
43969
|
"enum",
|
|
43961
43970
|
"const"
|
|
43962
43971
|
]);
|
|
43963
|
-
function
|
|
43972
|
+
function Loe(t, e = !0) {
|
|
43964
43973
|
return typeof t == "boolean" ? !0 : e === !0 ? !Iy(t) : e ? rR(t) <= e : !1;
|
|
43965
43974
|
}
|
|
43966
|
-
ui.inlineRef =
|
|
43967
|
-
const
|
|
43975
|
+
ui.inlineRef = Loe;
|
|
43976
|
+
const Doe = /* @__PURE__ */ new Set([
|
|
43968
43977
|
"$ref",
|
|
43969
43978
|
"$recursiveRef",
|
|
43970
43979
|
"$recursiveAnchor",
|
|
@@ -43973,7 +43982,7 @@ const Loe = /* @__PURE__ */ new Set([
|
|
|
43973
43982
|
]);
|
|
43974
43983
|
function Iy(t) {
|
|
43975
43984
|
for (const e in t) {
|
|
43976
|
-
if (
|
|
43985
|
+
if (Doe.has(e))
|
|
43977
43986
|
return !0;
|
|
43978
43987
|
const n = t[e];
|
|
43979
43988
|
if (Array.isArray(n) && n.some(Iy) || typeof n == "object" && Iy(n))
|
|
@@ -43986,7 +43995,7 @@ function rR(t) {
|
|
|
43986
43995
|
for (const n in t) {
|
|
43987
43996
|
if (n === "$ref")
|
|
43988
43997
|
return 1 / 0;
|
|
43989
|
-
if (e++, !
|
|
43998
|
+
if (e++, !Noe.has(n) && (typeof t[n] == "object" && (0, Moe.eachItem)(t[n], (r) => e += rR(r)), e === 1 / 0))
|
|
43990
43999
|
return 1 / 0;
|
|
43991
44000
|
}
|
|
43992
44001
|
return e;
|
|
@@ -44001,21 +44010,21 @@ function oR(t, e) {
|
|
|
44001
44010
|
return t.serialize(e).split("#")[0] + "#";
|
|
44002
44011
|
}
|
|
44003
44012
|
ui._getFullPath = oR;
|
|
44004
|
-
const
|
|
44013
|
+
const Roe = /#\/?$/;
|
|
44005
44014
|
function Ll(t) {
|
|
44006
|
-
return t ? t.replace(
|
|
44015
|
+
return t ? t.replace(Roe, "") : "";
|
|
44007
44016
|
}
|
|
44008
44017
|
ui.normalizeId = Ll;
|
|
44009
|
-
function
|
|
44018
|
+
function zoe(t, e, n) {
|
|
44010
44019
|
return n = Ll(n), t.resolve(e, n);
|
|
44011
44020
|
}
|
|
44012
|
-
ui.resolveUrl =
|
|
44013
|
-
const
|
|
44014
|
-
function
|
|
44021
|
+
ui.resolveUrl = zoe;
|
|
44022
|
+
const Foe = /^[a-z_][-a-z0-9._]*$/i;
|
|
44023
|
+
function Boe(t, e) {
|
|
44015
44024
|
if (typeof t == "boolean")
|
|
44016
44025
|
return {};
|
|
44017
44026
|
const { schemaId: n, uriResolver: r } = this.opts, i = Ll(t[n] || e), o = { "": i }, a = iR(r, i, !1), s = {}, u = /* @__PURE__ */ new Set();
|
|
44018
|
-
return
|
|
44027
|
+
return Ioe(t, { allKeys: !0 }, (c, d, h, p) => {
|
|
44019
44028
|
if (p === void 0)
|
|
44020
44029
|
return;
|
|
44021
44030
|
const v = a + d;
|
|
@@ -44031,54 +44040,54 @@ function Foe(t, e) {
|
|
|
44031
44040
|
}
|
|
44032
44041
|
function y(b) {
|
|
44033
44042
|
if (typeof b == "string") {
|
|
44034
|
-
if (!
|
|
44043
|
+
if (!Foe.test(b))
|
|
44035
44044
|
throw new Error(`invalid anchor "${b}"`);
|
|
44036
44045
|
m.call(this, `#${b}`);
|
|
44037
44046
|
}
|
|
44038
44047
|
}
|
|
44039
44048
|
}), s;
|
|
44040
44049
|
function l(c, d, h) {
|
|
44041
|
-
if (d !== void 0 && !
|
|
44050
|
+
if (d !== void 0 && !Poe(c, d))
|
|
44042
44051
|
throw f(h);
|
|
44043
44052
|
}
|
|
44044
44053
|
function f(c) {
|
|
44045
44054
|
return new Error(`reference "${c}" resolves to more than one schema`);
|
|
44046
44055
|
}
|
|
44047
44056
|
}
|
|
44048
|
-
ui.getSchemaRefs =
|
|
44057
|
+
ui.getSchemaRefs = Boe;
|
|
44049
44058
|
Object.defineProperty(ra, "__esModule", { value: !0 });
|
|
44050
44059
|
ra.getData = ra.KeywordCxt = ra.validateFunctionCode = void 0;
|
|
44051
|
-
const aR = nc, dA = Sd, kw = ss, iv = Sd,
|
|
44052
|
-
function
|
|
44060
|
+
const aR = nc, dA = Sd, kw = ss, iv = Sd, qoe = sm, lf = Ta, Cg = Bs, Dt = Pn, ln = Ha, Voe = ui, us = Vn, Lc = jd;
|
|
44061
|
+
function Hoe(t) {
|
|
44053
44062
|
if (lR(t) && (cR(t), uR(t))) {
|
|
44054
|
-
|
|
44063
|
+
Koe(t);
|
|
44055
44064
|
return;
|
|
44056
44065
|
}
|
|
44057
44066
|
sR(t, () => (0, aR.topBoolOrEmptySchema)(t));
|
|
44058
44067
|
}
|
|
44059
|
-
ra.validateFunctionCode =
|
|
44068
|
+
ra.validateFunctionCode = Hoe;
|
|
44060
44069
|
function sR({ gen: t, validateName: e, schema: n, schemaEnv: r, opts: i }, o) {
|
|
44061
44070
|
i.code.es5 ? t.func(e, (0, Dt._)`${ln.default.data}, ${ln.default.valCxt}`, r.$async, () => {
|
|
44062
|
-
t.code((0, Dt._)`"use strict"; ${hA(n, i)}`),
|
|
44063
|
-
}) : t.func(e, (0, Dt._)`${ln.default.data}, ${
|
|
44071
|
+
t.code((0, Dt._)`"use strict"; ${hA(n, i)}`), Woe(t, i), t.code(o);
|
|
44072
|
+
}) : t.func(e, (0, Dt._)`${ln.default.data}, ${Uoe(i)}`, r.$async, () => t.code(hA(n, i)).code(o));
|
|
44064
44073
|
}
|
|
44065
|
-
function
|
|
44074
|
+
function Uoe(t) {
|
|
44066
44075
|
return (0, Dt._)`{${ln.default.instancePath}="", ${ln.default.parentData}, ${ln.default.parentDataProperty}, ${ln.default.rootData}=${ln.default.data}${t.dynamicRef ? (0, Dt._)`, ${ln.default.dynamicAnchors}={}` : Dt.nil}}={}`;
|
|
44067
44076
|
}
|
|
44068
|
-
function
|
|
44077
|
+
function Woe(t, e) {
|
|
44069
44078
|
t.if(ln.default.valCxt, () => {
|
|
44070
44079
|
t.var(ln.default.instancePath, (0, Dt._)`${ln.default.valCxt}.${ln.default.instancePath}`), t.var(ln.default.parentData, (0, Dt._)`${ln.default.valCxt}.${ln.default.parentData}`), t.var(ln.default.parentDataProperty, (0, Dt._)`${ln.default.valCxt}.${ln.default.parentDataProperty}`), t.var(ln.default.rootData, (0, Dt._)`${ln.default.valCxt}.${ln.default.rootData}`), e.dynamicRef && t.var(ln.default.dynamicAnchors, (0, Dt._)`${ln.default.valCxt}.${ln.default.dynamicAnchors}`);
|
|
44071
44080
|
}, () => {
|
|
44072
44081
|
t.var(ln.default.instancePath, (0, Dt._)`""`), t.var(ln.default.parentData, (0, Dt._)`undefined`), t.var(ln.default.parentDataProperty, (0, Dt._)`undefined`), t.var(ln.default.rootData, ln.default.data), e.dynamicRef && t.var(ln.default.dynamicAnchors, (0, Dt._)`{}`);
|
|
44073
44082
|
});
|
|
44074
44083
|
}
|
|
44075
|
-
function
|
|
44084
|
+
function Koe(t) {
|
|
44076
44085
|
const { schema: e, opts: n, gen: r } = t;
|
|
44077
44086
|
sR(t, () => {
|
|
44078
|
-
n.$comment && e.$comment && dR(t),
|
|
44087
|
+
n.$comment && e.$comment && dR(t), Xoe(t), r.let(ln.default.vErrors, null), r.let(ln.default.errors, 0), n.unevaluated && Joe(t), fR(t), tae(t);
|
|
44079
44088
|
});
|
|
44080
44089
|
}
|
|
44081
|
-
function
|
|
44090
|
+
function Joe(t) {
|
|
44082
44091
|
const { gen: e, validateName: n } = t;
|
|
44083
44092
|
t.evaluated = e.const("evaluated", (0, Dt._)`${n}.evaluated`), e.if((0, Dt._)`${t.evaluated}.dynamicProps`, () => e.assign((0, Dt._)`${t.evaluated}.props`, (0, Dt._)`undefined`)), e.if((0, Dt._)`${t.evaluated}.dynamicItems`, () => e.assign((0, Dt._)`${t.evaluated}.items`, (0, Dt._)`undefined`));
|
|
44084
44093
|
}
|
|
@@ -44086,9 +44095,9 @@ function hA(t, e) {
|
|
|
44086
44095
|
const n = typeof t == "object" && t[e.schemaId];
|
|
44087
44096
|
return n && (e.code.source || e.code.process) ? (0, Dt._)`/*# sourceURL=${n} */` : Dt.nil;
|
|
44088
44097
|
}
|
|
44089
|
-
function
|
|
44098
|
+
function Goe(t, e) {
|
|
44090
44099
|
if (lR(t) && (cR(t), uR(t))) {
|
|
44091
|
-
|
|
44100
|
+
Qoe(t, e);
|
|
44092
44101
|
return;
|
|
44093
44102
|
}
|
|
44094
44103
|
(0, aR.boolOrEmptySchema)(t, e);
|
|
@@ -44104,14 +44113,14 @@ function uR({ schema: t, self: e }) {
|
|
|
44104
44113
|
function lR(t) {
|
|
44105
44114
|
return typeof t.schema != "boolean";
|
|
44106
44115
|
}
|
|
44107
|
-
function
|
|
44116
|
+
function Qoe(t, e) {
|
|
44108
44117
|
const { schema: n, gen: r, opts: i } = t;
|
|
44109
|
-
i.$comment && n.$comment && dR(t),
|
|
44118
|
+
i.$comment && n.$comment && dR(t), Zoe(t), eae(t);
|
|
44110
44119
|
const o = r.const("_errs", ln.default.errors);
|
|
44111
44120
|
fR(t, o), r.var(e, (0, Dt._)`${o} === ${ln.default.errors}`);
|
|
44112
44121
|
}
|
|
44113
44122
|
function cR(t) {
|
|
44114
|
-
(0, us.checkUnknownRules)(t),
|
|
44123
|
+
(0, us.checkUnknownRules)(t), Yoe(t);
|
|
44115
44124
|
}
|
|
44116
44125
|
function fR(t, e) {
|
|
44117
44126
|
if (t.opts.jtd)
|
|
@@ -44119,19 +44128,19 @@ function fR(t, e) {
|
|
|
44119
44128
|
const n = (0, dA.getSchemaTypes)(t.schema), r = (0, dA.coerceAndCheckDataType)(t, n);
|
|
44120
44129
|
pA(t, n, !r, e);
|
|
44121
44130
|
}
|
|
44122
|
-
function
|
|
44131
|
+
function Yoe(t) {
|
|
44123
44132
|
const { schema: e, errSchemaPath: n, opts: r, self: i } = t;
|
|
44124
44133
|
e.$ref && r.ignoreKeywordsWithRef && (0, us.schemaHasRulesButRef)(e, i.RULES) && i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
|
|
44125
44134
|
}
|
|
44126
|
-
function
|
|
44135
|
+
function Xoe(t) {
|
|
44127
44136
|
const { schema: e, opts: n } = t;
|
|
44128
44137
|
e.default !== void 0 && n.useDefaults && n.strictSchema && (0, us.checkStrictMode)(t, "default is ignored in the schema root");
|
|
44129
44138
|
}
|
|
44130
|
-
function
|
|
44139
|
+
function Zoe(t) {
|
|
44131
44140
|
const e = t.schema[t.opts.schemaId];
|
|
44132
|
-
e && (t.baseId = (0,
|
|
44141
|
+
e && (t.baseId = (0, Voe.resolveUrl)(t.opts.uriResolver, t.baseId, e));
|
|
44133
44142
|
}
|
|
44134
|
-
function
|
|
44143
|
+
function eae(t) {
|
|
44135
44144
|
if (t.schema.$async && !t.schemaEnv.$async)
|
|
44136
44145
|
throw new Error("async schema in sync schema");
|
|
44137
44146
|
}
|
|
@@ -44144,11 +44153,11 @@ function dR({ gen: t, schemaEnv: e, schema: n, errSchemaPath: r, opts: i }) {
|
|
|
44144
44153
|
t.code((0, Dt._)`${ln.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`);
|
|
44145
44154
|
}
|
|
44146
44155
|
}
|
|
44147
|
-
function
|
|
44156
|
+
function tae(t) {
|
|
44148
44157
|
const { gen: e, schemaEnv: n, validateName: r, ValidationError: i, opts: o } = t;
|
|
44149
|
-
n.$async ? e.if((0, Dt._)`${ln.default.errors} === 0`, () => e.return(ln.default.data), () => e.throw((0, Dt._)`new ${i}(${ln.default.vErrors})`)) : (e.assign((0, Dt._)`${r}.errors`, ln.default.vErrors), o.unevaluated &&
|
|
44158
|
+
n.$async ? e.if((0, Dt._)`${ln.default.errors} === 0`, () => e.return(ln.default.data), () => e.throw((0, Dt._)`new ${i}(${ln.default.vErrors})`)) : (e.assign((0, Dt._)`${r}.errors`, ln.default.vErrors), o.unevaluated && nae(t), e.return((0, Dt._)`${ln.default.errors} === 0`));
|
|
44150
44159
|
}
|
|
44151
|
-
function
|
|
44160
|
+
function nae({ gen: t, evaluated: e, props: n, items: r }) {
|
|
44152
44161
|
n instanceof Dt.Name && t.assign((0, Dt._)`${e}.props`, n), r instanceof Dt.Name && t.assign((0, Dt._)`${e}.items`, r);
|
|
44153
44162
|
}
|
|
44154
44163
|
function pA(t, e, n, r) {
|
|
@@ -44157,7 +44166,7 @@ function pA(t, e, n, r) {
|
|
|
44157
44166
|
i.block(() => pR(t, "$ref", f.all.$ref.definition));
|
|
44158
44167
|
return;
|
|
44159
44168
|
}
|
|
44160
|
-
u.jtd ||
|
|
44169
|
+
u.jtd || rae(t, e), i.block(() => {
|
|
44161
44170
|
for (const d of f.rules)
|
|
44162
44171
|
c(d);
|
|
44163
44172
|
c(f.post);
|
|
@@ -44168,15 +44177,15 @@ function pA(t, e, n, r) {
|
|
|
44168
44177
|
}
|
|
44169
44178
|
function vA(t, e) {
|
|
44170
44179
|
const { gen: n, schema: r, opts: { useDefaults: i } } = t;
|
|
44171
|
-
i && (0,
|
|
44180
|
+
i && (0, qoe.assignDefaults)(t, e.type), n.block(() => {
|
|
44172
44181
|
for (const o of e.rules)
|
|
44173
44182
|
(0, kw.shouldUseRule)(r, o) && pR(t, o.keyword, o.definition, e.type);
|
|
44174
44183
|
});
|
|
44175
44184
|
}
|
|
44176
|
-
function nae(t, e) {
|
|
44177
|
-
t.schemaEnv.meta || !t.opts.strictTypes || (rae(t, e), t.opts.allowUnionTypes || iae(t, e), oae(t, t.dataTypes));
|
|
44178
|
-
}
|
|
44179
44185
|
function rae(t, e) {
|
|
44186
|
+
t.schemaEnv.meta || !t.opts.strictTypes || (iae(t, e), t.opts.allowUnionTypes || oae(t, e), aae(t, t.dataTypes));
|
|
44187
|
+
}
|
|
44188
|
+
function iae(t, e) {
|
|
44180
44189
|
if (!!e.length) {
|
|
44181
44190
|
if (!t.dataTypes.length) {
|
|
44182
44191
|
t.dataTypes = e;
|
|
@@ -44187,20 +44196,20 @@ function rae(t, e) {
|
|
|
44187
44196
|
}), t.dataTypes = t.dataTypes.filter((n) => mA(e, n));
|
|
44188
44197
|
}
|
|
44189
44198
|
}
|
|
44190
|
-
function
|
|
44199
|
+
function oae(t, e) {
|
|
44191
44200
|
e.length > 1 && !(e.length === 2 && e.includes("null")) && _w(t, "use allowUnionTypes to allow union type keyword");
|
|
44192
44201
|
}
|
|
44193
|
-
function
|
|
44202
|
+
function aae(t, e) {
|
|
44194
44203
|
const n = t.self.RULES.all;
|
|
44195
44204
|
for (const r in n) {
|
|
44196
44205
|
const i = n[r];
|
|
44197
44206
|
if (typeof i == "object" && (0, kw.shouldUseRule)(t.schema, i)) {
|
|
44198
44207
|
const { type: o } = i.definition;
|
|
44199
|
-
o.length && !o.some((a) =>
|
|
44208
|
+
o.length && !o.some((a) => sae(e, a)) && _w(t, `missing type "${o.join(",")}" for keyword "${r}"`);
|
|
44200
44209
|
}
|
|
44201
44210
|
}
|
|
44202
44211
|
}
|
|
44203
|
-
function
|
|
44212
|
+
function sae(t, e) {
|
|
44204
44213
|
return t.includes(e) || e === "number" && t.includes("integer");
|
|
44205
44214
|
}
|
|
44206
44215
|
function mA(t, e) {
|
|
@@ -44298,7 +44307,7 @@ class hR {
|
|
|
44298
44307
|
const r = (0, Cg.getSubschema)(this.it, e);
|
|
44299
44308
|
(0, Cg.extendSubschemaData)(r, this.it, e), (0, Cg.extendSubschemaMode)(r, e);
|
|
44300
44309
|
const i = { ...this.it, ...r, items: void 0, props: void 0 };
|
|
44301
|
-
return
|
|
44310
|
+
return Goe(i, n), i;
|
|
44302
44311
|
}
|
|
44303
44312
|
mergeEvaluated(e, n) {
|
|
44304
44313
|
const { it: r, gen: i } = this;
|
|
@@ -44315,17 +44324,17 @@ function pR(t, e, n, r) {
|
|
|
44315
44324
|
const i = new hR(t, n, e);
|
|
44316
44325
|
"code" in n ? n.code(i, r) : i.$data && n.validate ? (0, lf.funcKeywordCode)(i, n) : "macro" in n ? (0, lf.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, lf.funcKeywordCode)(i, n);
|
|
44317
44326
|
}
|
|
44318
|
-
const
|
|
44327
|
+
const uae = /^\/(?:[^~]|~0|~1)*$/, lae = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
44319
44328
|
function vR(t, { dataLevel: e, dataNames: n, dataPathArr: r }) {
|
|
44320
44329
|
let i, o;
|
|
44321
44330
|
if (t === "")
|
|
44322
44331
|
return ln.default.rootData;
|
|
44323
44332
|
if (t[0] === "/") {
|
|
44324
|
-
if (!
|
|
44333
|
+
if (!uae.test(t))
|
|
44325
44334
|
throw new Error(`Invalid JSON-pointer: ${t}`);
|
|
44326
44335
|
i = t, o = ln.default.rootData;
|
|
44327
44336
|
} else {
|
|
44328
|
-
const l =
|
|
44337
|
+
const l = lae.exec(t);
|
|
44329
44338
|
if (!l)
|
|
44330
44339
|
throw new Error(`Invalid JSON-pointer: ${t}`);
|
|
44331
44340
|
const f = +l[1];
|
|
@@ -44351,25 +44360,25 @@ function vR(t, { dataLevel: e, dataNames: n, dataPathArr: r }) {
|
|
|
44351
44360
|
ra.getData = vR;
|
|
44352
44361
|
var um = {};
|
|
44353
44362
|
Object.defineProperty(um, "__esModule", { value: !0 });
|
|
44354
|
-
class
|
|
44363
|
+
class cae extends Error {
|
|
44355
44364
|
constructor(e) {
|
|
44356
44365
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
44357
44366
|
}
|
|
44358
44367
|
}
|
|
44359
|
-
um.default =
|
|
44368
|
+
um.default = cae;
|
|
44360
44369
|
var lm = {};
|
|
44361
44370
|
Object.defineProperty(lm, "__esModule", { value: !0 });
|
|
44362
44371
|
const $g = ui;
|
|
44363
|
-
class
|
|
44372
|
+
class fae extends Error {
|
|
44364
44373
|
constructor(e, n, r, i) {
|
|
44365
44374
|
super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, $g.resolveUrl)(e, n, r), this.missingSchema = (0, $g.normalizeId)((0, $g.getFullPath)(e, this.missingRef));
|
|
44366
44375
|
}
|
|
44367
44376
|
}
|
|
44368
|
-
lm.default =
|
|
44377
|
+
lm.default = fae;
|
|
44369
44378
|
var Yi = {};
|
|
44370
44379
|
Object.defineProperty(Yi, "__esModule", { value: !0 });
|
|
44371
44380
|
Yi.resolveSchema = Yi.getCompilingSchema = Yi.resolveRef = Yi.compileSchema = Yi.SchemaEnv = void 0;
|
|
44372
|
-
const Vo = Pn,
|
|
44381
|
+
const Vo = Pn, dae = um, fu = Ha, Jo = ui, gA = Vn, hae = ra;
|
|
44373
44382
|
class cm {
|
|
44374
44383
|
constructor(e) {
|
|
44375
44384
|
var n;
|
|
@@ -44386,7 +44395,7 @@ function xw(t) {
|
|
|
44386
44395
|
const n = (0, Jo.getFullPath)(this.opts.uriResolver, t.root.baseId), { es5: r, lines: i } = this.opts.code, { ownProperties: o } = this.opts, a = new Vo.CodeGen(this.scope, { es5: r, lines: i, ownProperties: o });
|
|
44387
44396
|
let s;
|
|
44388
44397
|
t.$async && (s = a.scopeValue("Error", {
|
|
44389
|
-
ref:
|
|
44398
|
+
ref: dae.default,
|
|
44390
44399
|
code: (0, Vo._)`require("ajv/dist/runtime/validation_error").default`
|
|
44391
44400
|
}));
|
|
44392
44401
|
const u = a.scopeName("validate");
|
|
@@ -44417,7 +44426,7 @@ function xw(t) {
|
|
|
44417
44426
|
};
|
|
44418
44427
|
let f;
|
|
44419
44428
|
try {
|
|
44420
|
-
this._compilations.add(t), (0,
|
|
44429
|
+
this._compilations.add(t), (0, hae.validateFunctionCode)(l), a.optimize(this.opts.code.optimize);
|
|
44421
44430
|
const c = a.toString();
|
|
44422
44431
|
f = `${a.scopeRefs(fu.default.scope)}return ${c}`, this.opts.code.process && (f = this.opts.code.process(f, t));
|
|
44423
44432
|
const h = new Function(`${fu.default.self}`, `${fu.default.scope}`, f)(this, this.scope.get());
|
|
@@ -44438,34 +44447,34 @@ function xw(t) {
|
|
|
44438
44447
|
}
|
|
44439
44448
|
}
|
|
44440
44449
|
Yi.compileSchema = xw;
|
|
44441
|
-
function
|
|
44450
|
+
function pae(t, e, n) {
|
|
44442
44451
|
var r;
|
|
44443
44452
|
n = (0, Jo.resolveUrl)(this.opts.uriResolver, e, n);
|
|
44444
44453
|
const i = t.refs[n];
|
|
44445
44454
|
if (i)
|
|
44446
44455
|
return i;
|
|
44447
|
-
let o =
|
|
44456
|
+
let o = gae.call(this, t, n);
|
|
44448
44457
|
if (o === void 0) {
|
|
44449
44458
|
const a = (r = t.localRefs) === null || r === void 0 ? void 0 : r[n], { schemaId: s } = this.opts;
|
|
44450
44459
|
a && (o = new cm({ schema: a, schemaId: s, root: t, baseId: e }));
|
|
44451
44460
|
}
|
|
44452
44461
|
if (o !== void 0)
|
|
44453
|
-
return t.refs[n] =
|
|
44462
|
+
return t.refs[n] = vae.call(this, o);
|
|
44454
44463
|
}
|
|
44455
|
-
Yi.resolveRef =
|
|
44456
|
-
function
|
|
44464
|
+
Yi.resolveRef = pae;
|
|
44465
|
+
function vae(t) {
|
|
44457
44466
|
return (0, Jo.inlineRef)(t.schema, this.opts.inlineRefs) ? t.schema : t.validate ? t : xw.call(this, t);
|
|
44458
44467
|
}
|
|
44459
44468
|
function mR(t) {
|
|
44460
44469
|
for (const e of this._compilations)
|
|
44461
|
-
if (
|
|
44470
|
+
if (mae(e, t))
|
|
44462
44471
|
return e;
|
|
44463
44472
|
}
|
|
44464
44473
|
Yi.getCompilingSchema = mR;
|
|
44465
|
-
function
|
|
44474
|
+
function mae(t, e) {
|
|
44466
44475
|
return t.schema === e.schema && t.root === e.root && t.baseId === e.baseId;
|
|
44467
44476
|
}
|
|
44468
|
-
function
|
|
44477
|
+
function gae(t, e) {
|
|
44469
44478
|
let n;
|
|
44470
44479
|
for (; typeof (n = this.refs[e]) == "string"; )
|
|
44471
44480
|
e = n;
|
|
@@ -44490,7 +44499,7 @@ function fm(t, e) {
|
|
|
44490
44499
|
}
|
|
44491
44500
|
}
|
|
44492
44501
|
Yi.resolveSchema = fm;
|
|
44493
|
-
const
|
|
44502
|
+
const yae = /* @__PURE__ */ new Set([
|
|
44494
44503
|
"properties",
|
|
44495
44504
|
"patternProperties",
|
|
44496
44505
|
"enum",
|
|
@@ -44509,7 +44518,7 @@ function Og(t, { baseId: e, schema: n, root: r }) {
|
|
|
44509
44518
|
return;
|
|
44510
44519
|
n = u;
|
|
44511
44520
|
const l = typeof n == "object" && n[this.opts.schemaId];
|
|
44512
|
-
!
|
|
44521
|
+
!yae.has(s) && l && (e = (0, Jo.resolveUrl)(this.opts.uriResolver, e, l));
|
|
44513
44522
|
}
|
|
44514
44523
|
let o;
|
|
44515
44524
|
if (typeof n != "boolean" && n.$ref && !(0, gA.schemaHasRulesButRef)(n, this.RULES)) {
|
|
@@ -44520,9 +44529,9 @@ function Og(t, { baseId: e, schema: n, root: r }) {
|
|
|
44520
44529
|
if (o = o || new cm({ schema: n, schemaId: a, root: r, baseId: e }), o.schema !== o.root.schema)
|
|
44521
44530
|
return o;
|
|
44522
44531
|
}
|
|
44523
|
-
const
|
|
44532
|
+
const bae = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", wae = "Meta-schema for $data reference (JSON AnySchema extension proposal)", kae = "object", _ae = [
|
|
44524
44533
|
"$data"
|
|
44525
|
-
],
|
|
44534
|
+
], xae = {
|
|
44526
44535
|
$data: {
|
|
44527
44536
|
type: "string",
|
|
44528
44537
|
anyOf: [
|
|
@@ -44534,13 +44543,13 @@ const yae = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs
|
|
|
44534
44543
|
}
|
|
44535
44544
|
]
|
|
44536
44545
|
}
|
|
44537
|
-
},
|
|
44538
|
-
$id:
|
|
44539
|
-
description:
|
|
44540
|
-
type:
|
|
44541
|
-
required:
|
|
44542
|
-
properties:
|
|
44543
|
-
additionalProperties:
|
|
44546
|
+
}, jae = !1, Sae = {
|
|
44547
|
+
$id: bae,
|
|
44548
|
+
description: wae,
|
|
44549
|
+
type: kae,
|
|
44550
|
+
required: _ae,
|
|
44551
|
+
properties: xae,
|
|
44552
|
+
additionalProperties: jae
|
|
44544
44553
|
};
|
|
44545
44554
|
var jw = {}, Ny = { exports: {} };
|
|
44546
44555
|
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
@@ -45092,7 +45101,7 @@ jw.default = gR;
|
|
|
45092
45101
|
} }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
|
|
45093
45102
|
return n.CodeGen;
|
|
45094
45103
|
} });
|
|
45095
|
-
const r = um, i = lm, o = Uu, a = Yi, s = Pn, u = ui, l = Sd, f = Vn, c =
|
|
45104
|
+
const r = um, i = lm, o = Uu, a = Yi, s = Pn, u = ui, l = Sd, f = Vn, c = Sae, d = jw, h = (I, N) => new RegExp(I, N);
|
|
45096
45105
|
h.code = "new RegExp";
|
|
45097
45106
|
const p = ["removeAdditional", "useDefaults", "coerceTypes"], v = /* @__PURE__ */ new Set([
|
|
45098
45107
|
"validate",
|
|
@@ -45501,17 +45510,17 @@ jw.default = gR;
|
|
|
45501
45510
|
})(KD);
|
|
45502
45511
|
var Sw = {}, Cw = {}, $w = {};
|
|
45503
45512
|
Object.defineProperty($w, "__esModule", { value: !0 });
|
|
45504
|
-
const
|
|
45513
|
+
const Cae = {
|
|
45505
45514
|
keyword: "id",
|
|
45506
45515
|
code() {
|
|
45507
45516
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
45508
45517
|
}
|
|
45509
45518
|
};
|
|
45510
|
-
$w.default =
|
|
45519
|
+
$w.default = Cae;
|
|
45511
45520
|
var Wu = {};
|
|
45512
45521
|
Object.defineProperty(Wu, "__esModule", { value: !0 });
|
|
45513
45522
|
Wu.callRef = Wu.getValidate = void 0;
|
|
45514
|
-
const
|
|
45523
|
+
const $ae = lm, yA = An, Gi = Pn, ll = Ha, bA = Yi, mh = Vn, Oae = {
|
|
45515
45524
|
keyword: "$ref",
|
|
45516
45525
|
schemaType: "string",
|
|
45517
45526
|
code(t) {
|
|
@@ -45520,7 +45529,7 @@ const Cae = lm, yA = An, Gi = Pn, ll = Ha, bA = Yi, mh = Vn, $ae = {
|
|
|
45520
45529
|
return c();
|
|
45521
45530
|
const f = bA.resolveRef.call(u, l, i, n);
|
|
45522
45531
|
if (f === void 0)
|
|
45523
|
-
throw new
|
|
45532
|
+
throw new $ae.default(r.opts.uriResolver, i, n);
|
|
45524
45533
|
if (f instanceof bA.SchemaEnv)
|
|
45525
45534
|
return d(f);
|
|
45526
45535
|
return h(f);
|
|
@@ -45593,19 +45602,19 @@ function Wh(t, e, n, r) {
|
|
|
45593
45602
|
}
|
|
45594
45603
|
}
|
|
45595
45604
|
Wu.callRef = Wh;
|
|
45596
|
-
Wu.default =
|
|
45605
|
+
Wu.default = Oae;
|
|
45597
45606
|
Object.defineProperty(Cw, "__esModule", { value: !0 });
|
|
45598
|
-
const
|
|
45607
|
+
const Tae = $w, Aae = Wu, Eae = [
|
|
45599
45608
|
"$schema",
|
|
45600
45609
|
"$id",
|
|
45601
45610
|
"$defs",
|
|
45602
45611
|
"$vocabulary",
|
|
45603
45612
|
{ keyword: "$comment" },
|
|
45604
45613
|
"definitions",
|
|
45605
|
-
|
|
45606
|
-
|
|
45614
|
+
Tae.default,
|
|
45615
|
+
Aae.default
|
|
45607
45616
|
];
|
|
45608
|
-
Cw.default =
|
|
45617
|
+
Cw.default = Eae;
|
|
45609
45618
|
var Ow = {}, Tw = {};
|
|
45610
45619
|
Object.defineProperty(Tw, "__esModule", { value: !0 });
|
|
45611
45620
|
const ov = Pn, Os = ov.operators, av = {
|
|
@@ -45613,38 +45622,38 @@ const ov = Pn, Os = ov.operators, av = {
|
|
|
45613
45622
|
minimum: { okStr: ">=", ok: Os.GTE, fail: Os.LT },
|
|
45614
45623
|
exclusiveMaximum: { okStr: "<", ok: Os.LT, fail: Os.GTE },
|
|
45615
45624
|
exclusiveMinimum: { okStr: ">", ok: Os.GT, fail: Os.LTE }
|
|
45616
|
-
},
|
|
45625
|
+
}, Mae = {
|
|
45617
45626
|
message: ({ keyword: t, schemaCode: e }) => (0, ov.str)`must be ${av[t].okStr} ${e}`,
|
|
45618
45627
|
params: ({ keyword: t, schemaCode: e }) => (0, ov._)`{comparison: ${av[t].okStr}, limit: ${e}}`
|
|
45619
|
-
},
|
|
45628
|
+
}, Pae = {
|
|
45620
45629
|
keyword: Object.keys(av),
|
|
45621
45630
|
type: "number",
|
|
45622
45631
|
schemaType: "number",
|
|
45623
45632
|
$data: !0,
|
|
45624
|
-
error:
|
|
45633
|
+
error: Mae,
|
|
45625
45634
|
code(t) {
|
|
45626
45635
|
const { keyword: e, data: n, schemaCode: r } = t;
|
|
45627
45636
|
t.fail$data((0, ov._)`${n} ${av[e].fail} ${r} || isNaN(${n})`);
|
|
45628
45637
|
}
|
|
45629
45638
|
};
|
|
45630
|
-
Tw.default =
|
|
45639
|
+
Tw.default = Pae;
|
|
45631
45640
|
var Aw = {};
|
|
45632
45641
|
Object.defineProperty(Aw, "__esModule", { value: !0 });
|
|
45633
|
-
const cf = Pn,
|
|
45642
|
+
const cf = Pn, Iae = {
|
|
45634
45643
|
message: ({ schemaCode: t }) => (0, cf.str)`must be multiple of ${t}`,
|
|
45635
45644
|
params: ({ schemaCode: t }) => (0, cf._)`{multipleOf: ${t}}`
|
|
45636
|
-
},
|
|
45645
|
+
}, Nae = {
|
|
45637
45646
|
keyword: "multipleOf",
|
|
45638
45647
|
type: "number",
|
|
45639
45648
|
schemaType: "number",
|
|
45640
45649
|
$data: !0,
|
|
45641
|
-
error:
|
|
45650
|
+
error: Iae,
|
|
45642
45651
|
code(t) {
|
|
45643
45652
|
const { gen: e, data: n, schemaCode: r, it: i } = t, o = i.opts.multipleOfPrecision, a = e.let("res"), s = o ? (0, cf._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}` : (0, cf._)`${a} !== parseInt(${a})`;
|
|
45644
45653
|
t.fail$data((0, cf._)`(${r} === 0 || (${a} = ${n}/${r}, ${s}))`);
|
|
45645
45654
|
}
|
|
45646
45655
|
};
|
|
45647
|
-
Aw.default =
|
|
45656
|
+
Aw.default = Nae;
|
|
45648
45657
|
var Ew = {}, Mw = {};
|
|
45649
45658
|
Object.defineProperty(Mw, "__esModule", { value: !0 });
|
|
45650
45659
|
function bR(t) {
|
|
@@ -45657,72 +45666,72 @@ function bR(t) {
|
|
|
45657
45666
|
Mw.default = bR;
|
|
45658
45667
|
bR.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
45659
45668
|
Object.defineProperty(Ew, "__esModule", { value: !0 });
|
|
45660
|
-
const wu = Pn,
|
|
45669
|
+
const wu = Pn, Lae = Vn, Dae = Mw, Rae = {
|
|
45661
45670
|
message({ keyword: t, schemaCode: e }) {
|
|
45662
45671
|
const n = t === "maxLength" ? "more" : "fewer";
|
|
45663
45672
|
return (0, wu.str)`must NOT have ${n} than ${e} characters`;
|
|
45664
45673
|
},
|
|
45665
45674
|
params: ({ schemaCode: t }) => (0, wu._)`{limit: ${t}}`
|
|
45666
|
-
},
|
|
45675
|
+
}, zae = {
|
|
45667
45676
|
keyword: ["maxLength", "minLength"],
|
|
45668
45677
|
type: "string",
|
|
45669
45678
|
schemaType: "number",
|
|
45670
45679
|
$data: !0,
|
|
45671
|
-
error:
|
|
45680
|
+
error: Rae,
|
|
45672
45681
|
code(t) {
|
|
45673
|
-
const { keyword: e, data: n, schemaCode: r, it: i } = t, o = e === "maxLength" ? wu.operators.GT : wu.operators.LT, a = i.opts.unicode === !1 ? (0, wu._)`${n}.length` : (0, wu._)`${(0,
|
|
45682
|
+
const { keyword: e, data: n, schemaCode: r, it: i } = t, o = e === "maxLength" ? wu.operators.GT : wu.operators.LT, a = i.opts.unicode === !1 ? (0, wu._)`${n}.length` : (0, wu._)`${(0, Lae.useFunc)(t.gen, Dae.default)}(${n})`;
|
|
45674
45683
|
t.fail$data((0, wu._)`${a} ${o} ${r}`);
|
|
45675
45684
|
}
|
|
45676
45685
|
};
|
|
45677
|
-
Ew.default =
|
|
45686
|
+
Ew.default = zae;
|
|
45678
45687
|
var Pw = {};
|
|
45679
45688
|
Object.defineProperty(Pw, "__esModule", { value: !0 });
|
|
45680
|
-
const
|
|
45689
|
+
const Fae = An, sv = Pn, Bae = {
|
|
45681
45690
|
message: ({ schemaCode: t }) => (0, sv.str)`must match pattern "${t}"`,
|
|
45682
45691
|
params: ({ schemaCode: t }) => (0, sv._)`{pattern: ${t}}`
|
|
45683
|
-
},
|
|
45692
|
+
}, qae = {
|
|
45684
45693
|
keyword: "pattern",
|
|
45685
45694
|
type: "string",
|
|
45686
45695
|
schemaType: "string",
|
|
45687
45696
|
$data: !0,
|
|
45688
|
-
error:
|
|
45697
|
+
error: Bae,
|
|
45689
45698
|
code(t) {
|
|
45690
|
-
const { data: e, $data: n, schema: r, schemaCode: i, it: o } = t, a = o.opts.unicodeRegExp ? "u" : "", s = n ? (0, sv._)`(new RegExp(${i}, ${a}))` : (0,
|
|
45699
|
+
const { data: e, $data: n, schema: r, schemaCode: i, it: o } = t, a = o.opts.unicodeRegExp ? "u" : "", s = n ? (0, sv._)`(new RegExp(${i}, ${a}))` : (0, Fae.usePattern)(t, r);
|
|
45691
45700
|
t.fail$data((0, sv._)`!${s}.test(${e})`);
|
|
45692
45701
|
}
|
|
45693
45702
|
};
|
|
45694
|
-
Pw.default =
|
|
45703
|
+
Pw.default = qae;
|
|
45695
45704
|
var Iw = {};
|
|
45696
45705
|
Object.defineProperty(Iw, "__esModule", { value: !0 });
|
|
45697
|
-
const ff = Pn,
|
|
45706
|
+
const ff = Pn, Vae = {
|
|
45698
45707
|
message({ keyword: t, schemaCode: e }) {
|
|
45699
45708
|
const n = t === "maxProperties" ? "more" : "fewer";
|
|
45700
45709
|
return (0, ff.str)`must NOT have ${n} than ${e} properties`;
|
|
45701
45710
|
},
|
|
45702
45711
|
params: ({ schemaCode: t }) => (0, ff._)`{limit: ${t}}`
|
|
45703
|
-
},
|
|
45712
|
+
}, Hae = {
|
|
45704
45713
|
keyword: ["maxProperties", "minProperties"],
|
|
45705
45714
|
type: "object",
|
|
45706
45715
|
schemaType: "number",
|
|
45707
45716
|
$data: !0,
|
|
45708
|
-
error:
|
|
45717
|
+
error: Vae,
|
|
45709
45718
|
code(t) {
|
|
45710
45719
|
const { keyword: e, data: n, schemaCode: r } = t, i = e === "maxProperties" ? ff.operators.GT : ff.operators.LT;
|
|
45711
45720
|
t.fail$data((0, ff._)`Object.keys(${n}).length ${i} ${r}`);
|
|
45712
45721
|
}
|
|
45713
45722
|
};
|
|
45714
|
-
Iw.default =
|
|
45723
|
+
Iw.default = Hae;
|
|
45715
45724
|
var Nw = {};
|
|
45716
45725
|
Object.defineProperty(Nw, "__esModule", { value: !0 });
|
|
45717
|
-
const Dc = An, df = Pn,
|
|
45726
|
+
const Dc = An, df = Pn, Uae = Vn, Wae = {
|
|
45718
45727
|
message: ({ params: { missingProperty: t } }) => (0, df.str)`must have required property '${t}'`,
|
|
45719
45728
|
params: ({ params: { missingProperty: t } }) => (0, df._)`{missingProperty: ${t}}`
|
|
45720
|
-
},
|
|
45729
|
+
}, Kae = {
|
|
45721
45730
|
keyword: "required",
|
|
45722
45731
|
type: "object",
|
|
45723
45732
|
schemaType: "array",
|
|
45724
45733
|
$data: !0,
|
|
45725
|
-
error:
|
|
45734
|
+
error: Wae,
|
|
45726
45735
|
code(t) {
|
|
45727
45736
|
const { gen: e, schema: n, schemaCode: r, data: i, $data: o, it: a } = t, { opts: s } = a;
|
|
45728
45737
|
if (!o && n.length === 0)
|
|
@@ -45733,7 +45742,7 @@ const Dc = An, df = Pn, Hae = Vn, Uae = {
|
|
|
45733
45742
|
for (const v of n)
|
|
45734
45743
|
if ((h == null ? void 0 : h[v]) === void 0 && !p.has(v)) {
|
|
45735
45744
|
const g = a.schemaEnv.baseId + a.errSchemaPath, m = `required property "${v}" is not defined at "${g}" (strictRequired)`;
|
|
45736
|
-
(0,
|
|
45745
|
+
(0, Uae.checkStrictMode)(a, m, a.opts.strictRequired);
|
|
45737
45746
|
}
|
|
45738
45747
|
}
|
|
45739
45748
|
function l() {
|
|
@@ -45765,42 +45774,42 @@ const Dc = An, df = Pn, Hae = Vn, Uae = {
|
|
|
45765
45774
|
}
|
|
45766
45775
|
}
|
|
45767
45776
|
};
|
|
45768
|
-
Nw.default =
|
|
45777
|
+
Nw.default = Kae;
|
|
45769
45778
|
var Lw = {};
|
|
45770
45779
|
Object.defineProperty(Lw, "__esModule", { value: !0 });
|
|
45771
|
-
const hf = Pn,
|
|
45780
|
+
const hf = Pn, Jae = {
|
|
45772
45781
|
message({ keyword: t, schemaCode: e }) {
|
|
45773
45782
|
const n = t === "maxItems" ? "more" : "fewer";
|
|
45774
45783
|
return (0, hf.str)`must NOT have ${n} than ${e} items`;
|
|
45775
45784
|
},
|
|
45776
45785
|
params: ({ schemaCode: t }) => (0, hf._)`{limit: ${t}}`
|
|
45777
|
-
},
|
|
45786
|
+
}, Gae = {
|
|
45778
45787
|
keyword: ["maxItems", "minItems"],
|
|
45779
45788
|
type: "array",
|
|
45780
45789
|
schemaType: "number",
|
|
45781
45790
|
$data: !0,
|
|
45782
|
-
error:
|
|
45791
|
+
error: Jae,
|
|
45783
45792
|
code(t) {
|
|
45784
45793
|
const { keyword: e, data: n, schemaCode: r } = t, i = e === "maxItems" ? hf.operators.GT : hf.operators.LT;
|
|
45785
45794
|
t.fail$data((0, hf._)`${n}.length ${i} ${r}`);
|
|
45786
45795
|
}
|
|
45787
45796
|
};
|
|
45788
|
-
Lw.default =
|
|
45797
|
+
Lw.default = Gae;
|
|
45789
45798
|
var Dw = {}, Cd = {};
|
|
45790
45799
|
Object.defineProperty(Cd, "__esModule", { value: !0 });
|
|
45791
45800
|
const wR = tR;
|
|
45792
45801
|
wR.code = 'require("ajv/dist/runtime/equal").default';
|
|
45793
45802
|
Cd.default = wR;
|
|
45794
45803
|
Object.defineProperty(Dw, "__esModule", { value: !0 });
|
|
45795
|
-
const Tg = Sd, ai = Pn,
|
|
45804
|
+
const Tg = Sd, ai = Pn, Qae = Vn, Yae = Cd, Xae = {
|
|
45796
45805
|
message: ({ params: { i: t, j: e } }) => (0, ai.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,
|
|
45797
45806
|
params: ({ params: { i: t, j: e } }) => (0, ai._)`{i: ${t}, j: ${e}}`
|
|
45798
|
-
},
|
|
45807
|
+
}, Zae = {
|
|
45799
45808
|
keyword: "uniqueItems",
|
|
45800
45809
|
type: "array",
|
|
45801
45810
|
schemaType: "boolean",
|
|
45802
45811
|
$data: !0,
|
|
45803
|
-
error:
|
|
45812
|
+
error: Xae,
|
|
45804
45813
|
code(t) {
|
|
45805
45814
|
const { gen: e, data: n, $data: r, schema: i, parentSchema: o, schemaCode: a, it: s } = t;
|
|
45806
45815
|
if (!r && !i)
|
|
@@ -45823,46 +45832,46 @@ const Tg = Sd, ai = Pn, Gae = Vn, Qae = Cd, Yae = {
|
|
|
45823
45832
|
});
|
|
45824
45833
|
}
|
|
45825
45834
|
function h(p, v) {
|
|
45826
|
-
const g = (0,
|
|
45835
|
+
const g = (0, Qae.useFunc)(e, Yae.default), m = e.name("outer");
|
|
45827
45836
|
e.label(m).for((0, ai._)`;${p}--;`, () => e.for((0, ai._)`${v} = ${p}; ${v}--;`, () => e.if((0, ai._)`${g}(${n}[${p}], ${n}[${v}])`, () => {
|
|
45828
45837
|
t.error(), e.assign(u, !1).break(m);
|
|
45829
45838
|
})));
|
|
45830
45839
|
}
|
|
45831
45840
|
}
|
|
45832
45841
|
};
|
|
45833
|
-
Dw.default =
|
|
45842
|
+
Dw.default = Zae;
|
|
45834
45843
|
var Rw = {};
|
|
45835
45844
|
Object.defineProperty(Rw, "__esModule", { value: !0 });
|
|
45836
|
-
const Ly = Pn,
|
|
45845
|
+
const Ly = Pn, ese = Vn, tse = Cd, nse = {
|
|
45837
45846
|
message: "must be equal to constant",
|
|
45838
45847
|
params: ({ schemaCode: t }) => (0, Ly._)`{allowedValue: ${t}}`
|
|
45839
|
-
},
|
|
45848
|
+
}, rse = {
|
|
45840
45849
|
keyword: "const",
|
|
45841
45850
|
$data: !0,
|
|
45842
|
-
error:
|
|
45851
|
+
error: nse,
|
|
45843
45852
|
code(t) {
|
|
45844
45853
|
const { gen: e, data: n, $data: r, schemaCode: i, schema: o } = t;
|
|
45845
|
-
r || o && typeof o == "object" ? t.fail$data((0, Ly._)`!${(0,
|
|
45854
|
+
r || o && typeof o == "object" ? t.fail$data((0, Ly._)`!${(0, ese.useFunc)(e, tse.default)}(${n}, ${i})`) : t.fail((0, Ly._)`${o} !== ${n}`);
|
|
45846
45855
|
}
|
|
45847
45856
|
};
|
|
45848
|
-
Rw.default =
|
|
45857
|
+
Rw.default = rse;
|
|
45849
45858
|
var zw = {};
|
|
45850
45859
|
Object.defineProperty(zw, "__esModule", { value: !0 });
|
|
45851
|
-
const Kc = Pn,
|
|
45860
|
+
const Kc = Pn, ise = Vn, ose = Cd, ase = {
|
|
45852
45861
|
message: "must be equal to one of the allowed values",
|
|
45853
45862
|
params: ({ schemaCode: t }) => (0, Kc._)`{allowedValues: ${t}}`
|
|
45854
|
-
},
|
|
45863
|
+
}, sse = {
|
|
45855
45864
|
keyword: "enum",
|
|
45856
45865
|
schemaType: "array",
|
|
45857
45866
|
$data: !0,
|
|
45858
|
-
error:
|
|
45867
|
+
error: ase,
|
|
45859
45868
|
code(t) {
|
|
45860
45869
|
const { gen: e, data: n, $data: r, schema: i, schemaCode: o, it: a } = t;
|
|
45861
45870
|
if (!r && i.length === 0)
|
|
45862
45871
|
throw new Error("enum must have non-empty array");
|
|
45863
45872
|
const s = i.length >= a.opts.loopEnum;
|
|
45864
45873
|
let u;
|
|
45865
|
-
const l = () => u != null ? u : u = (0,
|
|
45874
|
+
const l = () => u != null ? u : u = (0, ise.useFunc)(e, ose.default);
|
|
45866
45875
|
let f;
|
|
45867
45876
|
if (s || r)
|
|
45868
45877
|
f = e.let("valid"), t.block$data(f, c);
|
|
@@ -45882,10 +45891,9 @@ const Kc = Pn, rse = Vn, ise = Cd, ose = {
|
|
|
45882
45891
|
}
|
|
45883
45892
|
}
|
|
45884
45893
|
};
|
|
45885
|
-
zw.default =
|
|
45894
|
+
zw.default = sse;
|
|
45886
45895
|
Object.defineProperty(Ow, "__esModule", { value: !0 });
|
|
45887
|
-
const
|
|
45888
|
-
sse.default,
|
|
45896
|
+
const use = Tw, lse = Aw, cse = Ew, fse = Pw, dse = Iw, hse = Nw, pse = Lw, vse = Dw, mse = Rw, gse = zw, yse = [
|
|
45889
45897
|
use.default,
|
|
45890
45898
|
lse.default,
|
|
45891
45899
|
cse.default,
|
|
@@ -45893,24 +45901,25 @@ const sse = Tw, use = Aw, lse = Ew, cse = Pw, fse = Iw, dse = Nw, hse = Lw, pse
|
|
|
45893
45901
|
dse.default,
|
|
45894
45902
|
hse.default,
|
|
45895
45903
|
pse.default,
|
|
45904
|
+
vse.default,
|
|
45896
45905
|
{ keyword: "type", schemaType: ["string", "array"] },
|
|
45897
45906
|
{ keyword: "nullable", schemaType: "boolean" },
|
|
45898
|
-
|
|
45899
|
-
|
|
45907
|
+
mse.default,
|
|
45908
|
+
gse.default
|
|
45900
45909
|
];
|
|
45901
|
-
Ow.default =
|
|
45910
|
+
Ow.default = yse;
|
|
45902
45911
|
var Fw = {}, Sc = {};
|
|
45903
45912
|
Object.defineProperty(Sc, "__esModule", { value: !0 });
|
|
45904
45913
|
Sc.validateAdditionalItems = void 0;
|
|
45905
|
-
const ku = Pn, Dy = Vn,
|
|
45914
|
+
const ku = Pn, Dy = Vn, bse = {
|
|
45906
45915
|
message: ({ params: { len: t } }) => (0, ku.str)`must NOT have more than ${t} items`,
|
|
45907
45916
|
params: ({ params: { len: t } }) => (0, ku._)`{limit: ${t}}`
|
|
45908
|
-
},
|
|
45917
|
+
}, wse = {
|
|
45909
45918
|
keyword: "additionalItems",
|
|
45910
45919
|
type: "array",
|
|
45911
45920
|
schemaType: ["boolean", "object"],
|
|
45912
45921
|
before: "uniqueItems",
|
|
45913
|
-
error:
|
|
45922
|
+
error: bse,
|
|
45914
45923
|
code(t) {
|
|
45915
45924
|
const { parentSchema: e, it: n } = t, { items: r } = e;
|
|
45916
45925
|
if (!Array.isArray(r)) {
|
|
@@ -45937,11 +45946,11 @@ function kR(t, e) {
|
|
|
45937
45946
|
}
|
|
45938
45947
|
}
|
|
45939
45948
|
Sc.validateAdditionalItems = kR;
|
|
45940
|
-
Sc.default =
|
|
45949
|
+
Sc.default = wse;
|
|
45941
45950
|
var Bw = {}, Cc = {};
|
|
45942
45951
|
Object.defineProperty(Cc, "__esModule", { value: !0 });
|
|
45943
45952
|
Cc.validateTuple = void 0;
|
|
45944
|
-
const wA = Pn, Kh = Vn,
|
|
45953
|
+
const wA = Pn, Kh = Vn, kse = An, _se = {
|
|
45945
45954
|
keyword: "items",
|
|
45946
45955
|
type: "array",
|
|
45947
45956
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -45950,7 +45959,7 @@ const wA = Pn, Kh = Vn, wse = An, kse = {
|
|
|
45950
45959
|
const { schema: e, it: n } = t;
|
|
45951
45960
|
if (Array.isArray(e))
|
|
45952
45961
|
return _R(t, "additionalItems", e);
|
|
45953
|
-
n.items = !0, !(0, Kh.alwaysValidSchema)(n, e) && t.ok((0,
|
|
45962
|
+
n.items = !0, !(0, Kh.alwaysValidSchema)(n, e) && t.ok((0, kse.validateArray)(t));
|
|
45954
45963
|
}
|
|
45955
45964
|
};
|
|
45956
45965
|
function _R(t, e, n = t.schema) {
|
|
@@ -45973,45 +45982,45 @@ function _R(t, e, n = t.schema) {
|
|
|
45973
45982
|
}
|
|
45974
45983
|
}
|
|
45975
45984
|
Cc.validateTuple = _R;
|
|
45976
|
-
Cc.default =
|
|
45985
|
+
Cc.default = _se;
|
|
45977
45986
|
Object.defineProperty(Bw, "__esModule", { value: !0 });
|
|
45978
|
-
const
|
|
45987
|
+
const xse = Cc, jse = {
|
|
45979
45988
|
keyword: "prefixItems",
|
|
45980
45989
|
type: "array",
|
|
45981
45990
|
schemaType: ["array"],
|
|
45982
45991
|
before: "uniqueItems",
|
|
45983
|
-
code: (t) => (0,
|
|
45992
|
+
code: (t) => (0, xse.validateTuple)(t, "items")
|
|
45984
45993
|
};
|
|
45985
|
-
Bw.default =
|
|
45994
|
+
Bw.default = jse;
|
|
45986
45995
|
var qw = {};
|
|
45987
45996
|
Object.defineProperty(qw, "__esModule", { value: !0 });
|
|
45988
|
-
const kA = Pn,
|
|
45997
|
+
const kA = Pn, Sse = Vn, Cse = An, $se = Sc, Ose = {
|
|
45989
45998
|
message: ({ params: { len: t } }) => (0, kA.str)`must NOT have more than ${t} items`,
|
|
45990
45999
|
params: ({ params: { len: t } }) => (0, kA._)`{limit: ${t}}`
|
|
45991
|
-
},
|
|
46000
|
+
}, Tse = {
|
|
45992
46001
|
keyword: "items",
|
|
45993
46002
|
type: "array",
|
|
45994
46003
|
schemaType: ["object", "boolean"],
|
|
45995
46004
|
before: "uniqueItems",
|
|
45996
|
-
error:
|
|
46005
|
+
error: Ose,
|
|
45997
46006
|
code(t) {
|
|
45998
46007
|
const { schema: e, parentSchema: n, it: r } = t, { prefixItems: i } = n;
|
|
45999
|
-
r.items = !0, !(0,
|
|
46008
|
+
r.items = !0, !(0, Sse.alwaysValidSchema)(r, e) && (i ? (0, $se.validateAdditionalItems)(t, i) : t.ok((0, Cse.validateArray)(t)));
|
|
46000
46009
|
}
|
|
46001
46010
|
};
|
|
46002
|
-
qw.default =
|
|
46011
|
+
qw.default = Tse;
|
|
46003
46012
|
var Vw = {};
|
|
46004
46013
|
Object.defineProperty(Vw, "__esModule", { value: !0 });
|
|
46005
|
-
const _o = Pn, gh = Vn,
|
|
46014
|
+
const _o = Pn, gh = Vn, Ase = {
|
|
46006
46015
|
message: ({ params: { min: t, max: e } }) => e === void 0 ? (0, _o.str)`must contain at least ${t} valid item(s)` : (0, _o.str)`must contain at least ${t} and no more than ${e} valid item(s)`,
|
|
46007
46016
|
params: ({ params: { min: t, max: e } }) => e === void 0 ? (0, _o._)`{minContains: ${t}}` : (0, _o._)`{minContains: ${t}, maxContains: ${e}}`
|
|
46008
|
-
},
|
|
46017
|
+
}, Ese = {
|
|
46009
46018
|
keyword: "contains",
|
|
46010
46019
|
type: "array",
|
|
46011
46020
|
schemaType: ["object", "boolean"],
|
|
46012
46021
|
before: "uniqueItems",
|
|
46013
46022
|
trackErrors: !0,
|
|
46014
|
-
error:
|
|
46023
|
+
error: Ase,
|
|
46015
46024
|
code(t) {
|
|
46016
46025
|
const { gen: e, schema: n, parentSchema: r, data: i, it: o } = t;
|
|
46017
46026
|
let a, s;
|
|
@@ -46053,7 +46062,7 @@ const _o = Pn, gh = Vn, Tse = {
|
|
|
46053
46062
|
}
|
|
46054
46063
|
}
|
|
46055
46064
|
};
|
|
46056
|
-
Vw.default =
|
|
46065
|
+
Vw.default = Ese;
|
|
46057
46066
|
var xR = {};
|
|
46058
46067
|
(function(t) {
|
|
46059
46068
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.validateSchemaDeps = t.validatePropertyDeps = t.error = void 0;
|
|
@@ -46125,17 +46134,17 @@ var xR = {};
|
|
|
46125
46134
|
})(xR);
|
|
46126
46135
|
var Hw = {};
|
|
46127
46136
|
Object.defineProperty(Hw, "__esModule", { value: !0 });
|
|
46128
|
-
const jR = Pn,
|
|
46137
|
+
const jR = Pn, Mse = Vn, Pse = {
|
|
46129
46138
|
message: "property name must be valid",
|
|
46130
46139
|
params: ({ params: t }) => (0, jR._)`{propertyName: ${t.propertyName}}`
|
|
46131
|
-
},
|
|
46140
|
+
}, Ise = {
|
|
46132
46141
|
keyword: "propertyNames",
|
|
46133
46142
|
type: "object",
|
|
46134
46143
|
schemaType: ["object", "boolean"],
|
|
46135
|
-
error:
|
|
46144
|
+
error: Pse,
|
|
46136
46145
|
code(t) {
|
|
46137
46146
|
const { gen: e, schema: n, data: r, it: i } = t;
|
|
46138
|
-
if ((0,
|
|
46147
|
+
if ((0, Mse.alwaysValidSchema)(i, n))
|
|
46139
46148
|
return;
|
|
46140
46149
|
const o = e.name("valid");
|
|
46141
46150
|
e.forIn("key", r, (a) => {
|
|
@@ -46151,19 +46160,19 @@ const jR = Pn, Ese = Vn, Mse = {
|
|
|
46151
46160
|
}), t.ok(o);
|
|
46152
46161
|
}
|
|
46153
46162
|
};
|
|
46154
|
-
Hw.default =
|
|
46163
|
+
Hw.default = Ise;
|
|
46155
46164
|
var dm = {};
|
|
46156
46165
|
Object.defineProperty(dm, "__esModule", { value: !0 });
|
|
46157
|
-
const yh = An, Ho = Pn,
|
|
46166
|
+
const yh = An, Ho = Pn, Nse = Ha, bh = Vn, Lse = {
|
|
46158
46167
|
message: "must NOT have additional properties",
|
|
46159
46168
|
params: ({ params: t }) => (0, Ho._)`{additionalProperty: ${t.additionalProperty}}`
|
|
46160
|
-
},
|
|
46169
|
+
}, Dse = {
|
|
46161
46170
|
keyword: "additionalProperties",
|
|
46162
46171
|
type: ["object"],
|
|
46163
46172
|
schemaType: ["boolean", "object"],
|
|
46164
46173
|
allowUndefined: !0,
|
|
46165
46174
|
trackErrors: !0,
|
|
46166
|
-
error:
|
|
46175
|
+
error: Lse,
|
|
46167
46176
|
code(t) {
|
|
46168
46177
|
const { gen: e, schema: n, parentSchema: r, data: i, errsCount: o, it: a } = t;
|
|
46169
46178
|
if (!o)
|
|
@@ -46172,7 +46181,7 @@ const yh = An, Ho = Pn, Ise = Ha, bh = Vn, Nse = {
|
|
|
46172
46181
|
if (a.props = !0, u.removeAdditional !== "all" && (0, bh.alwaysValidSchema)(a, n))
|
|
46173
46182
|
return;
|
|
46174
46183
|
const l = (0, yh.allSchemaProperties)(r.properties), f = (0, yh.allSchemaProperties)(r.patternProperties);
|
|
46175
|
-
c(), t.ok((0, Ho._)`${o} === ${
|
|
46184
|
+
c(), t.ok((0, Ho._)`${o} === ${Nse.default.errors}`);
|
|
46176
46185
|
function c() {
|
|
46177
46186
|
e.forIn("key", i, (g) => {
|
|
46178
46187
|
!l.length && !f.length ? p(g) : e.if(d(g), () => p(g));
|
|
@@ -46220,16 +46229,16 @@ const yh = An, Ho = Pn, Ise = Ha, bh = Vn, Nse = {
|
|
|
46220
46229
|
}
|
|
46221
46230
|
}
|
|
46222
46231
|
};
|
|
46223
|
-
dm.default =
|
|
46232
|
+
dm.default = Dse;
|
|
46224
46233
|
var Uw = {};
|
|
46225
46234
|
Object.defineProperty(Uw, "__esModule", { value: !0 });
|
|
46226
|
-
const
|
|
46235
|
+
const Rse = ra, _A = An, Ag = Vn, xA = dm, zse = {
|
|
46227
46236
|
keyword: "properties",
|
|
46228
46237
|
type: "object",
|
|
46229
46238
|
schemaType: "object",
|
|
46230
46239
|
code(t) {
|
|
46231
46240
|
const { gen: e, schema: n, parentSchema: r, data: i, it: o } = t;
|
|
46232
|
-
o.opts.removeAdditional === "all" && r.additionalProperties === void 0 && xA.default.code(new
|
|
46241
|
+
o.opts.removeAdditional === "all" && r.additionalProperties === void 0 && xA.default.code(new Rse.KeywordCxt(o, xA.default, "additionalProperties"));
|
|
46233
46242
|
const a = (0, _A.allSchemaProperties)(n);
|
|
46234
46243
|
for (const c of a)
|
|
46235
46244
|
o.definedProperties.add(c);
|
|
@@ -46252,10 +46261,10 @@ const Dse = ra, _A = An, Ag = Vn, xA = dm, Rse = {
|
|
|
46252
46261
|
}
|
|
46253
46262
|
}
|
|
46254
46263
|
};
|
|
46255
|
-
Uw.default =
|
|
46264
|
+
Uw.default = zse;
|
|
46256
46265
|
var Ww = {};
|
|
46257
46266
|
Object.defineProperty(Ww, "__esModule", { value: !0 });
|
|
46258
|
-
const jA = An, wh = Pn, SA = Vn, CA = Vn,
|
|
46267
|
+
const jA = An, wh = Pn, SA = Vn, CA = Vn, Fse = {
|
|
46259
46268
|
keyword: "patternProperties",
|
|
46260
46269
|
type: "object",
|
|
46261
46270
|
schemaType: "object",
|
|
@@ -46290,16 +46299,16 @@ const jA = An, wh = Pn, SA = Vn, CA = Vn, zse = {
|
|
|
46290
46299
|
}
|
|
46291
46300
|
}
|
|
46292
46301
|
};
|
|
46293
|
-
Ww.default =
|
|
46302
|
+
Ww.default = Fse;
|
|
46294
46303
|
var Kw = {};
|
|
46295
46304
|
Object.defineProperty(Kw, "__esModule", { value: !0 });
|
|
46296
|
-
const
|
|
46305
|
+
const Bse = Vn, qse = {
|
|
46297
46306
|
keyword: "not",
|
|
46298
46307
|
schemaType: ["object", "boolean"],
|
|
46299
46308
|
trackErrors: !0,
|
|
46300
46309
|
code(t) {
|
|
46301
46310
|
const { gen: e, schema: n, it: r } = t;
|
|
46302
|
-
if ((0,
|
|
46311
|
+
if ((0, Bse.alwaysValidSchema)(r, n)) {
|
|
46303
46312
|
t.fail();
|
|
46304
46313
|
return;
|
|
46305
46314
|
}
|
|
@@ -46313,27 +46322,27 @@ const Fse = Vn, Bse = {
|
|
|
46313
46322
|
},
|
|
46314
46323
|
error: { message: "must NOT be valid" }
|
|
46315
46324
|
};
|
|
46316
|
-
Kw.default =
|
|
46325
|
+
Kw.default = qse;
|
|
46317
46326
|
var Jw = {};
|
|
46318
46327
|
Object.defineProperty(Jw, "__esModule", { value: !0 });
|
|
46319
|
-
const
|
|
46328
|
+
const Vse = An, Hse = {
|
|
46320
46329
|
keyword: "anyOf",
|
|
46321
46330
|
schemaType: "array",
|
|
46322
46331
|
trackErrors: !0,
|
|
46323
|
-
code:
|
|
46332
|
+
code: Vse.validateUnion,
|
|
46324
46333
|
error: { message: "must match a schema in anyOf" }
|
|
46325
46334
|
};
|
|
46326
|
-
Jw.default =
|
|
46335
|
+
Jw.default = Hse;
|
|
46327
46336
|
var Gw = {};
|
|
46328
46337
|
Object.defineProperty(Gw, "__esModule", { value: !0 });
|
|
46329
|
-
const Jh = Pn,
|
|
46338
|
+
const Jh = Pn, Use = Vn, Wse = {
|
|
46330
46339
|
message: "must match exactly one schema in oneOf",
|
|
46331
46340
|
params: ({ params: t }) => (0, Jh._)`{passingSchemas: ${t.passing}}`
|
|
46332
|
-
},
|
|
46341
|
+
}, Kse = {
|
|
46333
46342
|
keyword: "oneOf",
|
|
46334
46343
|
schemaType: "array",
|
|
46335
46344
|
trackErrors: !0,
|
|
46336
|
-
error:
|
|
46345
|
+
error: Wse,
|
|
46337
46346
|
code(t) {
|
|
46338
46347
|
const { gen: e, schema: n, parentSchema: r, it: i } = t;
|
|
46339
46348
|
if (!Array.isArray(n))
|
|
@@ -46345,7 +46354,7 @@ const Jh = Pn, Hse = Vn, Use = {
|
|
|
46345
46354
|
function l() {
|
|
46346
46355
|
o.forEach((f, c) => {
|
|
46347
46356
|
let d;
|
|
46348
|
-
(0,
|
|
46357
|
+
(0, Use.alwaysValidSchema)(i, f) ? e.var(u, !0) : d = t.subschema({
|
|
46349
46358
|
keyword: "oneOf",
|
|
46350
46359
|
schemaProp: c,
|
|
46351
46360
|
compositeRule: !0
|
|
@@ -46356,10 +46365,10 @@ const Jh = Pn, Hse = Vn, Use = {
|
|
|
46356
46365
|
}
|
|
46357
46366
|
}
|
|
46358
46367
|
};
|
|
46359
|
-
Gw.default =
|
|
46368
|
+
Gw.default = Kse;
|
|
46360
46369
|
var Qw = {};
|
|
46361
46370
|
Object.defineProperty(Qw, "__esModule", { value: !0 });
|
|
46362
|
-
const
|
|
46371
|
+
const Jse = Vn, Gse = {
|
|
46363
46372
|
keyword: "allOf",
|
|
46364
46373
|
schemaType: "array",
|
|
46365
46374
|
code(t) {
|
|
@@ -46368,24 +46377,24 @@ const Kse = Vn, Jse = {
|
|
|
46368
46377
|
throw new Error("ajv implementation error");
|
|
46369
46378
|
const i = e.name("valid");
|
|
46370
46379
|
n.forEach((o, a) => {
|
|
46371
|
-
if ((0,
|
|
46380
|
+
if ((0, Jse.alwaysValidSchema)(r, o))
|
|
46372
46381
|
return;
|
|
46373
46382
|
const s = t.subschema({ keyword: "allOf", schemaProp: a }, i);
|
|
46374
46383
|
t.ok(i), t.mergeEvaluated(s);
|
|
46375
46384
|
});
|
|
46376
46385
|
}
|
|
46377
46386
|
};
|
|
46378
|
-
Qw.default =
|
|
46387
|
+
Qw.default = Gse;
|
|
46379
46388
|
var Yw = {};
|
|
46380
46389
|
Object.defineProperty(Yw, "__esModule", { value: !0 });
|
|
46381
|
-
const uv = Pn, SR = Vn,
|
|
46390
|
+
const uv = Pn, SR = Vn, Qse = {
|
|
46382
46391
|
message: ({ params: t }) => (0, uv.str)`must match "${t.ifClause}" schema`,
|
|
46383
46392
|
params: ({ params: t }) => (0, uv._)`{failingKeyword: ${t.ifClause}}`
|
|
46384
|
-
},
|
|
46393
|
+
}, Yse = {
|
|
46385
46394
|
keyword: "if",
|
|
46386
46395
|
schemaType: ["object", "boolean"],
|
|
46387
46396
|
trackErrors: !0,
|
|
46388
|
-
error:
|
|
46397
|
+
error: Qse,
|
|
46389
46398
|
code(t) {
|
|
46390
46399
|
const { gen: e, parentSchema: n, it: r } = t;
|
|
46391
46400
|
n.then === void 0 && n.else === void 0 && (0, SR.checkStrictMode)(r, '"if" without "then" and "else" is ignored');
|
|
@@ -46420,47 +46429,47 @@ function $A(t, e) {
|
|
|
46420
46429
|
const n = t.schema[e];
|
|
46421
46430
|
return n !== void 0 && !(0, SR.alwaysValidSchema)(t, n);
|
|
46422
46431
|
}
|
|
46423
|
-
Yw.default =
|
|
46432
|
+
Yw.default = Yse;
|
|
46424
46433
|
var Xw = {};
|
|
46425
46434
|
Object.defineProperty(Xw, "__esModule", { value: !0 });
|
|
46426
|
-
const
|
|
46435
|
+
const Xse = Vn, Zse = {
|
|
46427
46436
|
keyword: ["then", "else"],
|
|
46428
46437
|
schemaType: ["object", "boolean"],
|
|
46429
46438
|
code({ keyword: t, parentSchema: e, it: n }) {
|
|
46430
|
-
e.if === void 0 && (0,
|
|
46439
|
+
e.if === void 0 && (0, Xse.checkStrictMode)(n, `"${t}" without "if" is ignored`);
|
|
46431
46440
|
}
|
|
46432
46441
|
};
|
|
46433
|
-
Xw.default =
|
|
46442
|
+
Xw.default = Zse;
|
|
46434
46443
|
Object.defineProperty(Fw, "__esModule", { value: !0 });
|
|
46435
|
-
const
|
|
46436
|
-
function
|
|
46444
|
+
const eue = Sc, tue = Bw, nue = Cc, rue = qw, iue = Vw, oue = xR, aue = Hw, sue = dm, uue = Uw, lue = Ww, cue = Kw, fue = Jw, due = Gw, hue = Qw, pue = Yw, vue = Xw;
|
|
46445
|
+
function mue(t = !1) {
|
|
46437
46446
|
const e = [
|
|
46438
|
-
lue.default,
|
|
46439
46447
|
cue.default,
|
|
46440
46448
|
fue.default,
|
|
46441
46449
|
due.default,
|
|
46442
46450
|
hue.default,
|
|
46443
46451
|
pue.default,
|
|
46444
|
-
|
|
46452
|
+
vue.default,
|
|
46445
46453
|
aue.default,
|
|
46446
|
-
iue.default,
|
|
46447
46454
|
sue.default,
|
|
46448
|
-
|
|
46455
|
+
oue.default,
|
|
46456
|
+
uue.default,
|
|
46457
|
+
lue.default
|
|
46449
46458
|
];
|
|
46450
|
-
return t ? e.push(
|
|
46459
|
+
return t ? e.push(tue.default, rue.default) : e.push(eue.default, nue.default), e.push(iue.default), e;
|
|
46451
46460
|
}
|
|
46452
|
-
Fw.default =
|
|
46461
|
+
Fw.default = mue;
|
|
46453
46462
|
var Zw = {}, ek = {};
|
|
46454
46463
|
Object.defineProperty(ek, "__esModule", { value: !0 });
|
|
46455
|
-
const Lr = Pn,
|
|
46464
|
+
const Lr = Pn, gue = {
|
|
46456
46465
|
message: ({ schemaCode: t }) => (0, Lr.str)`must match format "${t}"`,
|
|
46457
46466
|
params: ({ schemaCode: t }) => (0, Lr._)`{format: ${t}}`
|
|
46458
|
-
},
|
|
46467
|
+
}, yue = {
|
|
46459
46468
|
keyword: "format",
|
|
46460
46469
|
type: ["number", "string"],
|
|
46461
46470
|
schemaType: "string",
|
|
46462
46471
|
$data: !0,
|
|
46463
|
-
error:
|
|
46472
|
+
error: gue,
|
|
46464
46473
|
code(t, e) {
|
|
46465
46474
|
const { gen: n, data: r, $data: i, schema: o, schemaCode: a, it: s } = t, { opts: u, errSchemaPath: l, schemaEnv: f, self: c } = s;
|
|
46466
46475
|
if (!u.validateFormats)
|
|
@@ -46515,10 +46524,10 @@ const Lr = Pn, mue = {
|
|
|
46515
46524
|
}
|
|
46516
46525
|
}
|
|
46517
46526
|
};
|
|
46518
|
-
ek.default =
|
|
46527
|
+
ek.default = yue;
|
|
46519
46528
|
Object.defineProperty(Zw, "__esModule", { value: !0 });
|
|
46520
|
-
const
|
|
46521
|
-
Zw.default =
|
|
46529
|
+
const bue = ek, wue = [bue.default];
|
|
46530
|
+
Zw.default = wue;
|
|
46522
46531
|
var rc = {};
|
|
46523
46532
|
Object.defineProperty(rc, "__esModule", { value: !0 });
|
|
46524
46533
|
rc.contentVocabulary = rc.metadataVocabulary = void 0;
|
|
@@ -46537,15 +46546,15 @@ rc.contentVocabulary = [
|
|
|
46537
46546
|
"contentSchema"
|
|
46538
46547
|
];
|
|
46539
46548
|
Object.defineProperty(Sw, "__esModule", { value: !0 });
|
|
46540
|
-
const
|
|
46541
|
-
wue.default,
|
|
46549
|
+
const kue = Cw, _ue = Ow, xue = Fw, jue = Zw, OA = rc, Sue = [
|
|
46542
46550
|
kue.default,
|
|
46543
|
-
|
|
46544
|
-
xue.default,
|
|
46551
|
+
_ue.default,
|
|
46552
|
+
(0, xue.default)(),
|
|
46553
|
+
jue.default,
|
|
46545
46554
|
OA.metadataVocabulary,
|
|
46546
46555
|
OA.contentVocabulary
|
|
46547
46556
|
];
|
|
46548
|
-
Sw.default =
|
|
46557
|
+
Sw.default = Sue;
|
|
46549
46558
|
var tk = {}, CR = {};
|
|
46550
46559
|
(function(t) {
|
|
46551
46560
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.DiscrError = void 0, function(e) {
|
|
@@ -46553,14 +46562,14 @@ var tk = {}, CR = {};
|
|
|
46553
46562
|
}(t.DiscrError || (t.DiscrError = {}));
|
|
46554
46563
|
})(CR);
|
|
46555
46564
|
Object.defineProperty(tk, "__esModule", { value: !0 });
|
|
46556
|
-
const ml = Pn, Ry = CR, TA = Yi,
|
|
46565
|
+
const ml = Pn, Ry = CR, TA = Yi, Cue = Vn, $ue = {
|
|
46557
46566
|
message: ({ params: { discrError: t, tagName: e } }) => t === Ry.DiscrError.Tag ? `tag "${e}" must be string` : `value of tag "${e}" must be in oneOf`,
|
|
46558
46567
|
params: ({ params: { discrError: t, tag: e, tagName: n } }) => (0, ml._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`
|
|
46559
|
-
},
|
|
46568
|
+
}, Oue = {
|
|
46560
46569
|
keyword: "discriminator",
|
|
46561
46570
|
type: "object",
|
|
46562
46571
|
schemaType: "object",
|
|
46563
|
-
error:
|
|
46572
|
+
error: $ue,
|
|
46564
46573
|
code(t) {
|
|
46565
46574
|
const { gen: e, data: n, schema: r, parentSchema: i, it: o } = t, { oneOf: a } = i;
|
|
46566
46575
|
if (!o.opts.discriminator)
|
|
@@ -46591,7 +46600,7 @@ const ml = Pn, Ry = CR, TA = Yi, Sue = Vn, Cue = {
|
|
|
46591
46600
|
let g = !0;
|
|
46592
46601
|
for (let w = 0; w < a.length; w++) {
|
|
46593
46602
|
let k = a[w];
|
|
46594
|
-
(k == null ? void 0 : k.$ref) && !(0,
|
|
46603
|
+
(k == null ? void 0 : k.$ref) && !(0, Cue.schemaHasRulesButRef)(k, o.self.RULES) && (k = TA.resolveRef.call(o.self, o.schemaEnv.root, o.baseId, k == null ? void 0 : k.$ref), k instanceof TA.SchemaEnv && (k = k.schema));
|
|
46595
46604
|
const j = (h = k == null ? void 0 : k.properties) === null || h === void 0 ? void 0 : h[s];
|
|
46596
46605
|
if (typeof j != "object")
|
|
46597
46606
|
throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);
|
|
@@ -46620,8 +46629,8 @@ const ml = Pn, Ry = CR, TA = Yi, Sue = Vn, Cue = {
|
|
|
46620
46629
|
}
|
|
46621
46630
|
}
|
|
46622
46631
|
};
|
|
46623
|
-
tk.default =
|
|
46624
|
-
const
|
|
46632
|
+
tk.default = Oue;
|
|
46633
|
+
const Tue = "http://json-schema.org/draft-07/schema#", Aue = "http://json-schema.org/draft-07/schema#", Eue = "Core schema meta-schema", Mue = {
|
|
46625
46634
|
schemaArray: {
|
|
46626
46635
|
type: "array",
|
|
46627
46636
|
minItems: 1,
|
|
@@ -46662,10 +46671,10 @@ const Oue = "http://json-schema.org/draft-07/schema#", Tue = "http://json-schema
|
|
|
46662
46671
|
uniqueItems: !0,
|
|
46663
46672
|
default: []
|
|
46664
46673
|
}
|
|
46665
|
-
},
|
|
46674
|
+
}, Pue = [
|
|
46666
46675
|
"object",
|
|
46667
46676
|
"boolean"
|
|
46668
|
-
],
|
|
46677
|
+
], Iue = {
|
|
46669
46678
|
$id: {
|
|
46670
46679
|
type: "string",
|
|
46671
46680
|
format: "uri-reference"
|
|
@@ -46853,18 +46862,18 @@ const Oue = "http://json-schema.org/draft-07/schema#", Tue = "http://json-schema
|
|
|
46853
46862
|
not: {
|
|
46854
46863
|
$ref: "#"
|
|
46855
46864
|
}
|
|
46856
|
-
},
|
|
46857
|
-
$schema:
|
|
46858
|
-
$id:
|
|
46859
|
-
title:
|
|
46860
|
-
definitions:
|
|
46861
|
-
type:
|
|
46862
|
-
properties:
|
|
46865
|
+
}, Nue = {
|
|
46866
|
+
$schema: Tue,
|
|
46867
|
+
$id: Aue,
|
|
46868
|
+
title: Eue,
|
|
46869
|
+
definitions: Mue,
|
|
46870
|
+
type: Pue,
|
|
46871
|
+
properties: Iue,
|
|
46863
46872
|
default: !0
|
|
46864
46873
|
};
|
|
46865
46874
|
(function(t, e) {
|
|
46866
46875
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
46867
|
-
const n = KD, r = Sw, i = tk, o =
|
|
46876
|
+
const n = KD, r = Sw, i = tk, o = Nue, a = ["/properties"], s = "http://json-schema.org/draft-07/schema";
|
|
46868
46877
|
class u extends n.default {
|
|
46869
46878
|
_addVocabularies() {
|
|
46870
46879
|
super._addVocabularies(), r.default.forEach((d) => this.addVocabulary(d)), this.opts.discriminator && this.addKeyword(i.default);
|
|
@@ -46901,17 +46910,17 @@ const Oue = "http://json-schema.org/draft-07/schema#", Tue = "http://json-schema
|
|
|
46901
46910
|
})(My, My.exports);
|
|
46902
46911
|
const $R = /* @__PURE__ */ QR(My.exports);
|
|
46903
46912
|
let Rc;
|
|
46904
|
-
const
|
|
46913
|
+
const Lue = [
|
|
46905
46914
|
["items", CD, $D],
|
|
46906
46915
|
["screens", ID, ND],
|
|
46907
46916
|
["skills", zD, FD],
|
|
46908
46917
|
["buttons", ED, MD],
|
|
46909
|
-
["scripts", WD,
|
|
46918
|
+
["scripts", WD, Kie],
|
|
46910
46919
|
["audio", _D, xD],
|
|
46911
46920
|
["quests", OD, TD],
|
|
46912
46921
|
["tooltips", VD, HD],
|
|
46913
46922
|
["characters", BD, qD]
|
|
46914
|
-
],
|
|
46923
|
+
], Due = [
|
|
46915
46924
|
"baseAssetsPath",
|
|
46916
46925
|
"baseDataPath",
|
|
46917
46926
|
"gameTitle",
|
|
@@ -46928,22 +46937,22 @@ const Nue = [
|
|
|
46928
46937
|
"debugging",
|
|
46929
46938
|
"saves"
|
|
46930
46939
|
];
|
|
46931
|
-
async function
|
|
46940
|
+
async function Rue(t) {
|
|
46932
46941
|
const e = { ...Hu };
|
|
46933
|
-
for (const n of
|
|
46942
|
+
for (const n of Due) {
|
|
46934
46943
|
const r = t[n];
|
|
46935
46944
|
r && (typeof r == "object" && !Array.isArray(r) ? e[n] = {
|
|
46936
46945
|
...e[n],
|
|
46937
46946
|
...r
|
|
46938
46947
|
} : e[n] = r);
|
|
46939
46948
|
}
|
|
46940
|
-
for (const n of
|
|
46949
|
+
for (const n of Lue) {
|
|
46941
46950
|
const r = n[0], i = n[1], o = n[2];
|
|
46942
46951
|
let a = t[r];
|
|
46943
46952
|
if (a && typeof a == "string")
|
|
46944
46953
|
try {
|
|
46945
46954
|
a = await vw(
|
|
46946
|
-
|
|
46955
|
+
Fue(t.baseDataPath, a)
|
|
46947
46956
|
);
|
|
46948
46957
|
const s = new $R({ allErrors: !0 });
|
|
46949
46958
|
if (!s.validate(i, a))
|
|
@@ -46958,11 +46967,11 @@ async function Due(t) {
|
|
|
46958
46967
|
Hh[n] ? Object.assign(Hh[n], Rc.transitions[n]) : Hh[n] = Rc.transitions[n];
|
|
46959
46968
|
return e;
|
|
46960
46969
|
}
|
|
46961
|
-
async function
|
|
46970
|
+
async function zue(t) {
|
|
46962
46971
|
const e = await vw(t.configPath);
|
|
46963
46972
|
t.baseAssetsPath ? e.baseAssetsPath = t.baseAssetsPath : e.baseAssetsPath = e.baseAssetsPath || "", t.baseDataPath ? e.baseDataPath = t.baseDataPath : e.baseDataPath = e.baseDataPath || "";
|
|
46964
46973
|
const n = new $R({ allErrors: !0 });
|
|
46965
|
-
return n.validate(
|
|
46974
|
+
return n.validate(Jie, e) || (Zt("Config file validation failed."), console.log(n.errors), Zt(n.errorsText())), Rue(e);
|
|
46966
46975
|
}
|
|
46967
46976
|
function wt() {
|
|
46968
46977
|
return UD().config;
|
|
@@ -47005,7 +47014,7 @@ function lv(t) {
|
|
|
47005
47014
|
function gs(t) {
|
|
47006
47015
|
return t.startsWith("http") ? t : wt().baseAssetsPath ? `${wt().baseAssetsPath}${t}` : t;
|
|
47007
47016
|
}
|
|
47008
|
-
function
|
|
47017
|
+
function Fue(t, e) {
|
|
47009
47018
|
return `${t}${e}`;
|
|
47010
47019
|
}
|
|
47011
47020
|
function MR(t) {
|
|
@@ -47015,7 +47024,7 @@ function pu(t) {
|
|
|
47015
47024
|
const e = OR().buttons[t];
|
|
47016
47025
|
return e || Zt(`Button config for button ${t} doesn't exist`), e;
|
|
47017
47026
|
}
|
|
47018
|
-
function
|
|
47027
|
+
function Bue(t) {
|
|
47019
47028
|
const e = rk().screens[t];
|
|
47020
47029
|
return e || Zt(`Screen config for screen ${t} doesn't exist`), e;
|
|
47021
47030
|
}
|
|
@@ -47048,11 +47057,11 @@ function PR(t, e, n) {
|
|
|
47048
47057
|
u,
|
|
47049
47058
|
l
|
|
47050
47059
|
);
|
|
47051
|
-
isNaN(Number(f)) || (f = Number(f)), u > 0 && (s = s[a]), [s, a] =
|
|
47060
|
+
isNaN(Number(f)) || (f = Number(f)), u > 0 && (s = s[a]), [s, a] = Vue(s, f);
|
|
47052
47061
|
}
|
|
47053
47062
|
if (o !== -1) {
|
|
47054
47063
|
u = o;
|
|
47055
|
-
const l = n.substring(o + 1), f =
|
|
47064
|
+
const l = n.substring(o + 1), f = que(l) + o, c = n.substring(o + 1, f), [d, h] = PR(
|
|
47056
47065
|
t,
|
|
47057
47066
|
t,
|
|
47058
47067
|
c
|
|
@@ -47068,7 +47077,7 @@ function PR(t, e, n) {
|
|
|
47068
47077
|
}
|
|
47069
47078
|
return [s, a];
|
|
47070
47079
|
}
|
|
47071
|
-
function
|
|
47080
|
+
function que(t) {
|
|
47072
47081
|
let e = !1, n = 0, r, i = 1;
|
|
47073
47082
|
for (; !e; ) {
|
|
47074
47083
|
r = t.substring(n);
|
|
@@ -47077,7 +47086,7 @@ function Bue(t) {
|
|
|
47077
47086
|
}
|
|
47078
47087
|
return n;
|
|
47079
47088
|
}
|
|
47080
|
-
function
|
|
47089
|
+
function Vue(t, e) {
|
|
47081
47090
|
if (typeof e == "number")
|
|
47082
47091
|
return [t, e];
|
|
47083
47092
|
e.startsWith(".") && (e = e.substring(1));
|
|
@@ -47092,7 +47101,7 @@ function que(t, e) {
|
|
|
47092
47101
|
function vm(t, e) {
|
|
47093
47102
|
return PR(t, t, e);
|
|
47094
47103
|
}
|
|
47095
|
-
function
|
|
47104
|
+
function Hue(t, e) {
|
|
47096
47105
|
return vm(t, e);
|
|
47097
47106
|
}
|
|
47098
47107
|
function IR(t, e, n) {
|
|
@@ -47219,6 +47228,9 @@ const Dr = hi("skills", {
|
|
|
47219
47228
|
xp: 0
|
|
47220
47229
|
};
|
|
47221
47230
|
},
|
|
47231
|
+
reset(t) {
|
|
47232
|
+
this.$reset(), this.setupSkills(t);
|
|
47233
|
+
},
|
|
47222
47234
|
getSkill(t) {
|
|
47223
47235
|
return this.skills[t];
|
|
47224
47236
|
},
|
|
@@ -47248,7 +47260,7 @@ const Dr = hi("skills", {
|
|
|
47248
47260
|
}
|
|
47249
47261
|
});
|
|
47250
47262
|
let AA;
|
|
47251
|
-
const
|
|
47263
|
+
const Uue = Nn({
|
|
47252
47264
|
components: {
|
|
47253
47265
|
Modal: uc
|
|
47254
47266
|
},
|
|
@@ -47402,42 +47414,42 @@ const Hue = Nn({
|
|
|
47402
47414
|
}
|
|
47403
47415
|
}
|
|
47404
47416
|
});
|
|
47405
|
-
const
|
|
47417
|
+
const Wue = { class: "debug-menu" }, Kue = {
|
|
47406
47418
|
key: 0,
|
|
47407
47419
|
class: "debug-info"
|
|
47408
|
-
},
|
|
47409
|
-
|
|
47410
|
-
],
|
|
47420
|
+
}, Jue = /* @__PURE__ */ HR("<h3>Debug mode is ON</h3><ul><li><b>j</b>: Quick Label Jump</li><li><b>d</b>: Debug Menu</li><li><b>a</b>: Auto Play</li><li><b>s</b>: Skip</li><li><b>Space</b>: New Game</li><li><b>c</b>: Continue</li><li><b>Escape</b>: Toggle Menu</li></ul>", 2), Gue = [
|
|
47421
|
+
Jue
|
|
47422
|
+
], Que = /* @__PURE__ */ Ie("h3", { class: "title" }, "Jump to label", -1), Yue = {
|
|
47411
47423
|
key: 0,
|
|
47412
47424
|
class: "search-results"
|
|
47413
|
-
},
|
|
47414
|
-
|
|
47415
|
-
],
|
|
47425
|
+
}, Xue = { key: 1 }, Zue = /* @__PURE__ */ Ie("h3", null, "No matches found", -1), ele = [
|
|
47426
|
+
Zue
|
|
47427
|
+
], tle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Error(s)", -1), nle = /* @__PURE__ */ sc(" There are errors in your dialogue scripts. Open the developer console for more details. "), rle = ["innerHTML"], ile = /* @__PURE__ */ Ie("h3", { class: "title" }, "Debug Menu!", -1), ole = { class: "container" }, ale = /* @__PURE__ */ sc(" Hello this is the debug menu. "), sle = /* @__PURE__ */ Ie("option", {
|
|
47416
47428
|
class: "option",
|
|
47417
47429
|
selected: "",
|
|
47418
47430
|
disabled: ""
|
|
47419
|
-
}, "Jump to a label", -1),
|
|
47431
|
+
}, "Jump to a label", -1), ule = ["value"], lle = { class: "grid grid-cols-3 gap-4" }, cle = /* @__PURE__ */ Ie("h2", null, "Variables Editor", -1), fle = { ref: "variablesViewer" }, dle = /* @__PURE__ */ Ie("h2", null, "Skill Checks", -1), hle = { class: "table-auto" }, ple = /* @__PURE__ */ Ie("thead", null, [
|
|
47420
47432
|
/* @__PURE__ */ Ie("tr", null, [
|
|
47421
47433
|
/* @__PURE__ */ Ie("th", null, "Skill Check"),
|
|
47422
47434
|
/* @__PURE__ */ Ie("th", null, "Happened"),
|
|
47423
47435
|
/* @__PURE__ */ Ie("th", null, "Succeeded")
|
|
47424
47436
|
])
|
|
47425
|
-
], -1),
|
|
47426
|
-
function
|
|
47437
|
+
], -1), vle = /* @__PURE__ */ Ie("h2", null, "App State editor (entire app and engine", -1), mle = /* @__PURE__ */ Ie("h3", { style: { color: "pink" } }, " Use for debugging, editing some of those things can cause issues ", -1), gle = { ref: "stateViewer" };
|
|
47438
|
+
function yle(t, e, n, r, i, o) {
|
|
47427
47439
|
const a = Ni("modal");
|
|
47428
|
-
return Ee(), Ye("div",
|
|
47440
|
+
return Ee(), Ye("div", Wue, [
|
|
47429
47441
|
Ie("button", {
|
|
47430
47442
|
onClick: e[0] || (e[0] = (...s) => t.open && t.open(...s)),
|
|
47431
47443
|
class: "button debug-button"
|
|
47432
47444
|
}, "Debug Menu"),
|
|
47433
|
-
!t.playing && t.flowState === "menu" ? (Ee(), Ye("div",
|
|
47445
|
+
!t.playing && t.flowState === "menu" ? (Ee(), Ye("div", Kue, Gue)) : vn("", !0),
|
|
47434
47446
|
t.jumping ? (Ee(), pn(a, {
|
|
47435
47447
|
key: 1,
|
|
47436
47448
|
onClose: t.finishJumping,
|
|
47437
47449
|
containerCssClass: "jump-menu-container"
|
|
47438
47450
|
}, {
|
|
47439
47451
|
header: sr(() => [
|
|
47440
|
-
|
|
47452
|
+
Que
|
|
47441
47453
|
]),
|
|
47442
47454
|
body: sr(() => [
|
|
47443
47455
|
mf(Ie("input", {
|
|
@@ -47449,13 +47461,13 @@ function gle(t, e, n, r, i, o) {
|
|
|
47449
47461
|
}, null, 544), [
|
|
47450
47462
|
[hv, t.searchString]
|
|
47451
47463
|
]),
|
|
47452
|
-
t.matches.length > 0 ? (Ee(), Ye("div",
|
|
47464
|
+
t.matches.length > 0 ? (Ee(), Ye("div", Yue, [
|
|
47453
47465
|
(Ee(!0), Ye(Zn, null, cr(t.matches, (s, u) => (Ee(), Ye("div", {
|
|
47454
47466
|
class: "search-result",
|
|
47455
47467
|
style: lr(t.getMatchResultStyle(u)),
|
|
47456
47468
|
key: u
|
|
47457
47469
|
}, zt(s), 5))), 128))
|
|
47458
|
-
])) : (Ee(), Ye("div",
|
|
47470
|
+
])) : (Ee(), Ye("div", Xue, ele))
|
|
47459
47471
|
]),
|
|
47460
47472
|
_: 1
|
|
47461
47473
|
}, 8, ["onClose"])) : vn("", !0),
|
|
@@ -47465,16 +47477,16 @@ function gle(t, e, n, r, i, o) {
|
|
|
47465
47477
|
containerCssClass: "debug-menu-container"
|
|
47466
47478
|
}, {
|
|
47467
47479
|
header: sr(() => [
|
|
47468
|
-
|
|
47480
|
+
tle
|
|
47469
47481
|
]),
|
|
47470
47482
|
body: sr(() => [
|
|
47471
|
-
|
|
47483
|
+
nle,
|
|
47472
47484
|
Ie("ul", null, [
|
|
47473
47485
|
(Ee(!0), Ye(Zn, null, cr(t.errors, (s, u) => (Ee(), Ye("li", {
|
|
47474
47486
|
key: u,
|
|
47475
47487
|
class: vr(["error-message list-disc", s.type === "error" ? "error" : "warning"]),
|
|
47476
47488
|
innerHTML: s.text
|
|
47477
|
-
}, null, 10,
|
|
47489
|
+
}, null, 10, rle))), 128))
|
|
47478
47490
|
])
|
|
47479
47491
|
]),
|
|
47480
47492
|
_: 1
|
|
@@ -47485,24 +47497,24 @@ function gle(t, e, n, r, i, o) {
|
|
|
47485
47497
|
containerCssClass: "debug-menu-container"
|
|
47486
47498
|
}, {
|
|
47487
47499
|
header: sr(() => [
|
|
47488
|
-
|
|
47500
|
+
ile
|
|
47489
47501
|
]),
|
|
47490
47502
|
body: sr(() => [
|
|
47491
|
-
Ie("div",
|
|
47492
|
-
|
|
47503
|
+
Ie("div", ole, [
|
|
47504
|
+
ale,
|
|
47493
47505
|
Ie("select", {
|
|
47494
47506
|
class: "select",
|
|
47495
47507
|
name: "label-selector",
|
|
47496
47508
|
onChange: e[3] || (e[3] = (s) => t.labelSelected(s))
|
|
47497
47509
|
}, [
|
|
47498
|
-
|
|
47510
|
+
sle,
|
|
47499
47511
|
(Ee(!0), Ye(Zn, null, cr(t.labels, (s) => (Ee(), Ye("option", {
|
|
47500
47512
|
class: "option",
|
|
47501
47513
|
value: s,
|
|
47502
47514
|
key: s
|
|
47503
|
-
}, zt(s), 9,
|
|
47515
|
+
}, zt(s), 9, ule))), 128))
|
|
47504
47516
|
], 32),
|
|
47505
|
-
Ie("div",
|
|
47517
|
+
Ie("div", lle, [
|
|
47506
47518
|
Ie("button", {
|
|
47507
47519
|
onClick: e[4] || (e[4] = (...s) => t.wordCount && t.wordCount(...s)),
|
|
47508
47520
|
class: "button"
|
|
@@ -47513,11 +47525,11 @@ function gle(t, e, n, r, i, o) {
|
|
|
47513
47525
|
}, "Save Game")
|
|
47514
47526
|
]),
|
|
47515
47527
|
Ie("h3", null, "Play time: " + zt(t.getPlayTimeString()), 1),
|
|
47516
|
-
|
|
47517
|
-
Ie("div",
|
|
47518
|
-
|
|
47519
|
-
Ie("table",
|
|
47520
|
-
|
|
47528
|
+
cle,
|
|
47529
|
+
Ie("div", fle, null, 512),
|
|
47530
|
+
dle,
|
|
47531
|
+
Ie("table", hle, [
|
|
47532
|
+
ple,
|
|
47521
47533
|
Ie("tbody", null, [
|
|
47522
47534
|
(Ee(!0), Ye(Zn, null, cr(t.skillChecks, (s, u) => (Ee(), Ye("tr", { key: u }, [
|
|
47523
47535
|
Ie("td", null, zt(u), 1),
|
|
@@ -47526,22 +47538,22 @@ function gle(t, e, n, r, i, o) {
|
|
|
47526
47538
|
]))), 128))
|
|
47527
47539
|
])
|
|
47528
47540
|
]),
|
|
47529
|
-
ple,
|
|
47530
47541
|
vle,
|
|
47531
|
-
|
|
47542
|
+
mle,
|
|
47543
|
+
Ie("div", gle, null, 512)
|
|
47532
47544
|
])
|
|
47533
47545
|
]),
|
|
47534
47546
|
_: 1
|
|
47535
47547
|
}, 8, ["onClose"])) : vn("", !0)
|
|
47536
47548
|
]);
|
|
47537
47549
|
}
|
|
47538
|
-
const
|
|
47550
|
+
const ble = /* @__PURE__ */ go(Uue, [["render", yle]]), wle = Nn({
|
|
47539
47551
|
computed: {
|
|
47540
47552
|
...vs(To, ["notifications"])
|
|
47541
47553
|
}
|
|
47542
47554
|
});
|
|
47543
|
-
const
|
|
47544
|
-
function
|
|
47555
|
+
const kle = ["innerHTML"];
|
|
47556
|
+
function _le(t, e, n, r, i, o) {
|
|
47545
47557
|
return Ee(), pn(Gc, {
|
|
47546
47558
|
name: "notification",
|
|
47547
47559
|
tag: "div",
|
|
@@ -47554,13 +47566,13 @@ function kle(t, e, n, r, i, o) {
|
|
|
47554
47566
|
}, [
|
|
47555
47567
|
Ie("h3", {
|
|
47556
47568
|
innerHTML: a.text
|
|
47557
|
-
}, null, 8,
|
|
47569
|
+
}, null, 8, kle)
|
|
47558
47570
|
]))), 128))
|
|
47559
47571
|
]),
|
|
47560
47572
|
_: 1
|
|
47561
47573
|
});
|
|
47562
47574
|
}
|
|
47563
|
-
const
|
|
47575
|
+
const xle = /* @__PURE__ */ go(wle, [["render", _le]]);
|
|
47564
47576
|
function LR(t, e = 50, n = {}) {
|
|
47565
47577
|
var c, d;
|
|
47566
47578
|
let r;
|
|
@@ -47596,10 +47608,10 @@ function LR(t, e = 50, n = {}) {
|
|
|
47596
47608
|
r !== void 0 && clearTimeout(r), u.forEach(({ reject: p }) => p(h)), u = [];
|
|
47597
47609
|
}, f;
|
|
47598
47610
|
}
|
|
47599
|
-
const
|
|
47611
|
+
const jle = { class: "save-slot flex flex-row" }, Sle = { class: "used-save-slot flex flex-row justify-between items-center grow" }, Cle = { class: "flex flex-col save-slot-number-container" }, $le = { class: "save-slot-number" }, Ole = { class: "flex flex-col justify-center save-info" }, Tle = {
|
|
47600
47612
|
key: 1,
|
|
47601
47613
|
class: "save-name"
|
|
47602
|
-
},
|
|
47614
|
+
}, Ale = { class: "flex flex-col" }, Ele = { key: 0 }, Mle = { key: 1 }, Ple = { key: 2 }, Ile = { class: "flex flex-row" }, Nle = ["onClick"], Eg = /* @__PURE__ */ Nn({
|
|
47603
47615
|
__name: "save-slot-ui",
|
|
47604
47616
|
props: {
|
|
47605
47617
|
saveSlot: {
|
|
@@ -47644,17 +47656,17 @@ const xle = { class: "save-slot flex flex-row" }, jle = { class: "used-save-slot
|
|
|
47644
47656
|
const g = n.saveSlot.slotNumber;
|
|
47645
47657
|
return g === 0 && wt().saves.mode === "manual" ? "AUTO" : (p >= 10 && g < 10 && (v += "0"), p >= 100 && g < 100 && (v += "0"), v + g);
|
|
47646
47658
|
}
|
|
47647
|
-
return (p, v) => (Ee(), Ye("div",
|
|
47648
|
-
Ie("div",
|
|
47649
|
-
Ie("div",
|
|
47650
|
-
Ie("h1",
|
|
47659
|
+
return (p, v) => (Ee(), Ye("div", jle, [
|
|
47660
|
+
Ie("div", Sle, [
|
|
47661
|
+
Ie("div", Cle, [
|
|
47662
|
+
Ie("h1", $le, zt(c()), 1)
|
|
47651
47663
|
]),
|
|
47652
47664
|
bt(s) ? (Ee(), Ye("div", {
|
|
47653
47665
|
key: 0,
|
|
47654
47666
|
class: "save-slot-screenshot",
|
|
47655
47667
|
style: lr(bt(s))
|
|
47656
47668
|
}, null, 4)) : vn("", !0),
|
|
47657
|
-
Ie("div",
|
|
47669
|
+
Ie("div", Ole, [
|
|
47658
47670
|
bt(i) ? mf((Ee(), Ye("input", {
|
|
47659
47671
|
key: 0,
|
|
47660
47672
|
type: "text",
|
|
@@ -47663,27 +47675,27 @@ const xle = { class: "save-slot flex flex-row" }, jle = { class: "used-save-slot
|
|
|
47663
47675
|
onInput: f
|
|
47664
47676
|
}, null, 544)), [
|
|
47665
47677
|
[hv, r.value]
|
|
47666
|
-
]) : (Ee(), Ye("h3",
|
|
47667
|
-
Ie("div",
|
|
47668
|
-
bt(o) ? (Ee(), Ye("p",
|
|
47669
|
-
bt(o) ? (Ee(), Ye("p",
|
|
47670
|
-
bt(a) === "game-slots" ? (Ee(), Ye("p",
|
|
47678
|
+
]) : (Ee(), Ye("h3", Tle, zt(r.value), 1)),
|
|
47679
|
+
Ie("div", Ale, [
|
|
47680
|
+
bt(o) ? (Ee(), Ye("p", Ele, zt(new Date(bt(o).metadata.saveDate).toLocaleString()), 1)) : vn("", !0),
|
|
47681
|
+
bt(o) ? (Ee(), Ye("p", Mle, "Play time: " + zt(l(t.saveSlot)), 1)) : vn("", !0),
|
|
47682
|
+
bt(a) === "game-slots" ? (Ee(), Ye("p", Ple, zt(t.saveSlot.slotType === "auto" ? "Auto Save" : "Manual Save"), 1)) : vn("", !0)
|
|
47671
47683
|
])
|
|
47672
47684
|
]),
|
|
47673
|
-
Ie("div",
|
|
47685
|
+
Ie("div", Ile, [
|
|
47674
47686
|
(Ee(!0), Ye(Zn, null, cr(t.actions, (g, m) => (Ee(), Ye("button", {
|
|
47675
47687
|
class: "button",
|
|
47676
47688
|
onClick: () => u(m),
|
|
47677
47689
|
key: m
|
|
47678
47690
|
}, [
|
|
47679
47691
|
Ie("h3", null, zt(g), 1)
|
|
47680
|
-
], 8,
|
|
47692
|
+
], 8, Nle))), 128))
|
|
47681
47693
|
])
|
|
47682
47694
|
])
|
|
47683
47695
|
]));
|
|
47684
47696
|
}
|
|
47685
47697
|
});
|
|
47686
|
-
const
|
|
47698
|
+
const Lle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Dle = { class: "flex justify-center" }, fv = /* @__PURE__ */ Nn({
|
|
47687
47699
|
__name: "yes-no",
|
|
47688
47700
|
props: {
|
|
47689
47701
|
prompt: {
|
|
@@ -47710,11 +47722,11 @@ const Nle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Ll
|
|
|
47710
47722
|
containerCssClass: "yes-no-modal"
|
|
47711
47723
|
}, {
|
|
47712
47724
|
header: sr(() => [
|
|
47713
|
-
|
|
47725
|
+
Lle
|
|
47714
47726
|
]),
|
|
47715
47727
|
body: sr(() => [
|
|
47716
47728
|
Ie("h3", null, zt(t.prompt), 1),
|
|
47717
|
-
Ie("div",
|
|
47729
|
+
Ie("div", Dle, [
|
|
47718
47730
|
Ie("button", {
|
|
47719
47731
|
class: "button",
|
|
47720
47732
|
onClick: o[0] || (o[0] = () => r(!0))
|
|
@@ -47729,10 +47741,10 @@ const Nle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Ll
|
|
|
47729
47741
|
}));
|
|
47730
47742
|
}
|
|
47731
47743
|
});
|
|
47732
|
-
const
|
|
47744
|
+
const Rle = { class: "title" }, zle = { key: 0 }, Fle = { class: "saves-section" }, Ble = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Auto save", -1), qle = { class: "saves-section" }, Vle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Manual Saves", -1), Hle = {
|
|
47733
47745
|
key: 1,
|
|
47734
47746
|
class: "saves-section"
|
|
47735
|
-
},
|
|
47747
|
+
}, Ule = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Save Slots", -1), Wle = { class: "saves-container flex flex-col" }, DR = /* @__PURE__ */ Nn({
|
|
47736
47748
|
__name: "save-slots",
|
|
47737
47749
|
props: {
|
|
47738
47750
|
mode: {
|
|
@@ -47805,12 +47817,12 @@ const Dle = { class: "title" }, Rle = { key: 0 }, zle = { class: "saves-section"
|
|
|
47805
47817
|
cantClose: !1
|
|
47806
47818
|
}, {
|
|
47807
47819
|
header: sr(() => [
|
|
47808
|
-
Ie("h3",
|
|
47820
|
+
Ie("h3", Rle, zt(t.mode === "load" ? "Choose a save to load" : "Pick a slot to save the game"), 1)
|
|
47809
47821
|
]),
|
|
47810
47822
|
body: sr(() => [
|
|
47811
|
-
bt(s) === "manual" ? (Ee(), Ye("div",
|
|
47812
|
-
Ie("div",
|
|
47813
|
-
|
|
47823
|
+
bt(s) === "manual" ? (Ee(), Ye("div", zle, [
|
|
47824
|
+
Ie("div", Fle, [
|
|
47825
|
+
Ble,
|
|
47814
47826
|
Br(Gc, {
|
|
47815
47827
|
name: "list",
|
|
47816
47828
|
tag: "div"
|
|
@@ -47827,8 +47839,8 @@ const Dle = { class: "title" }, Rle = { key: 0 }, zle = { class: "saves-section"
|
|
|
47827
47839
|
_: 1
|
|
47828
47840
|
})
|
|
47829
47841
|
]),
|
|
47830
|
-
Ie("div",
|
|
47831
|
-
|
|
47842
|
+
Ie("div", qle, [
|
|
47843
|
+
Vle,
|
|
47832
47844
|
Br(Gc, {
|
|
47833
47845
|
name: "list",
|
|
47834
47846
|
tag: "div"
|
|
@@ -47845,9 +47857,9 @@ const Dle = { class: "title" }, Rle = { key: 0 }, zle = { class: "saves-section"
|
|
|
47845
47857
|
_: 1
|
|
47846
47858
|
})
|
|
47847
47859
|
])
|
|
47848
|
-
])) : (Ee(), Ye("div",
|
|
47849
|
-
|
|
47850
|
-
Ie("div",
|
|
47860
|
+
])) : (Ee(), Ye("div", Hle, [
|
|
47861
|
+
Ule,
|
|
47862
|
+
Ie("div", Wle, [
|
|
47851
47863
|
Br(Gc, {
|
|
47852
47864
|
name: "list",
|
|
47853
47865
|
tag: "div"
|
|
@@ -47882,7 +47894,7 @@ const Dle = { class: "title" }, Rle = { key: 0 }, zle = { class: "saves-section"
|
|
|
47882
47894
|
}));
|
|
47883
47895
|
}
|
|
47884
47896
|
});
|
|
47885
|
-
class
|
|
47897
|
+
class Kle extends gw {
|
|
47886
47898
|
setup(e = !1) {
|
|
47887
47899
|
const r = e ? "keydown" : "keyup", i = LR(
|
|
47888
47900
|
(o) => {
|
|
@@ -47901,7 +47913,7 @@ class Wle extends gw {
|
|
|
47901
47913
|
});
|
|
47902
47914
|
}
|
|
47903
47915
|
}
|
|
47904
|
-
const fa = new
|
|
47916
|
+
const fa = new Kle(), RR = hi("startMenu", {
|
|
47905
47917
|
state: () => ({
|
|
47906
47918
|
buttons: []
|
|
47907
47919
|
}),
|
|
@@ -47915,10 +47927,10 @@ const fa = new Wle(), RR = hi("startMenu", {
|
|
|
47915
47927
|
});
|
|
47916
47928
|
}
|
|
47917
47929
|
}
|
|
47918
|
-
}),
|
|
47930
|
+
}), Jle = { id: "game-menu" }, Gle = {
|
|
47919
47931
|
id: "game-header",
|
|
47920
47932
|
class: "flex flex-col justify-between items-center"
|
|
47921
|
-
},
|
|
47933
|
+
}, Qle = { id: "game-title-container" }, Yle = { id: "game-title-text" }, Xle = { class: "flex flex-col start-menu-buttons-container" }, Zle = ["onClick"], ece = { class: "title" }, tce = /* @__PURE__ */ Nn({
|
|
47922
47934
|
__name: "StartMenu",
|
|
47923
47935
|
setup(t) {
|
|
47924
47936
|
const e = Hn(!1), n = Hn(!1), r = Hn(null), i = Hn(null), o = Hn(!1), a = Hn(!1), s = Hn(null), u = RR(), l = Hn(!1), f = ft(() => u.buttons);
|
|
@@ -47985,7 +47997,7 @@ const fa = new Wle(), RR = hi("startMenu", {
|
|
|
47985
47997
|
s.value && fa.off("debouncedKeydown", s.value);
|
|
47986
47998
|
});
|
|
47987
47999
|
const w = ft(() => wt().gameTitle);
|
|
47988
|
-
return (k, j) => (Ee(), Ye("div",
|
|
48000
|
+
return (k, j) => (Ee(), Ye("div", Jle, [
|
|
47989
48001
|
o.value ? (Ee(), pn(DR, {
|
|
47990
48002
|
key: 0,
|
|
47991
48003
|
mode: "load",
|
|
@@ -47998,11 +48010,11 @@ const fa = new Wle(), RR = hi("startMenu", {
|
|
|
47998
48010
|
onConfirm: d,
|
|
47999
48011
|
onRefuse: v
|
|
48000
48012
|
})) : vn("", !0),
|
|
48001
|
-
Ie("div",
|
|
48002
|
-
Ie("div",
|
|
48003
|
-
Ie("h1",
|
|
48013
|
+
Ie("div", Gle, [
|
|
48014
|
+
Ie("div", Qle, [
|
|
48015
|
+
Ie("h1", Yle, zt(bt(w)), 1)
|
|
48004
48016
|
]),
|
|
48005
|
-
Ie("div",
|
|
48017
|
+
Ie("div", Xle, [
|
|
48006
48018
|
r.value ? (Ee(), Ye("button", {
|
|
48007
48019
|
key: 0,
|
|
48008
48020
|
class: "button menu-button main-menu-button large continue-button override",
|
|
@@ -48022,7 +48034,7 @@ const fa = new Wle(), RR = hi("startMenu", {
|
|
|
48022
48034
|
key: S.id,
|
|
48023
48035
|
class: vr(["button menu-button main-menu-button large override", `${S.id}-start-menu-button`]),
|
|
48024
48036
|
onClick: (A) => h(S)
|
|
48025
|
-
}, zt(S.text), 11,
|
|
48037
|
+
}, zt(S.text), 11, Zle))), 128))
|
|
48026
48038
|
])
|
|
48027
48039
|
]),
|
|
48028
48040
|
l.value ? (Ee(), pn(qy, {
|
|
@@ -48034,7 +48046,7 @@ const fa = new Wle(), RR = hi("startMenu", {
|
|
|
48034
48046
|
class: vr(`start-menu-popup-${l.value.id}`)
|
|
48035
48047
|
}, {
|
|
48036
48048
|
header: sr(() => [
|
|
48037
|
-
Ie("h3",
|
|
48049
|
+
Ie("h3", ece, zt(l.value.text), 1)
|
|
48038
48050
|
]),
|
|
48039
48051
|
body: sr(() => [
|
|
48040
48052
|
l.value.popupComponent ? (Ee(), pn(PA(l.value.popupComponent.component), {
|
|
@@ -48048,7 +48060,7 @@ const fa = new Wle(), RR = hi("startMenu", {
|
|
|
48048
48060
|
]));
|
|
48049
48061
|
}
|
|
48050
48062
|
});
|
|
48051
|
-
const
|
|
48063
|
+
const nce = { class: "title" }, rce = /* @__PURE__ */ Nn({
|
|
48052
48064
|
__name: "alert-modal",
|
|
48053
48065
|
props: {
|
|
48054
48066
|
title: {
|
|
@@ -48068,7 +48080,7 @@ const tce = { class: "title" }, nce = /* @__PURE__ */ Nn({
|
|
|
48068
48080
|
header: sr(() => {
|
|
48069
48081
|
var r;
|
|
48070
48082
|
return [
|
|
48071
|
-
Ie("h3",
|
|
48083
|
+
Ie("h3", nce, zt((r = t.title) != null ? r : "Alert"), 1)
|
|
48072
48084
|
];
|
|
48073
48085
|
}),
|
|
48074
48086
|
body: sr(() => [
|
|
@@ -48082,7 +48094,7 @@ function ik(t) {
|
|
|
48082
48094
|
const e = TR().characters[t];
|
|
48083
48095
|
return e || Zt(`Character ${t} not found`), e;
|
|
48084
48096
|
}
|
|
48085
|
-
function
|
|
48097
|
+
function ice(t, e) {
|
|
48086
48098
|
const n = ik(t);
|
|
48087
48099
|
if (!!n && (e || (e = "default"), n.sprites)) {
|
|
48088
48100
|
const r = `${TR().config.imagesPath}${n.sprites[e]}`;
|
|
@@ -48093,7 +48105,7 @@ function kh(t) {
|
|
|
48093
48105
|
var e;
|
|
48094
48106
|
return t ? ((e = ik(t)) == null ? void 0 : e.style) || {} : {};
|
|
48095
48107
|
}
|
|
48096
|
-
const
|
|
48108
|
+
const oce = Nn({
|
|
48097
48109
|
props: {
|
|
48098
48110
|
pictureUrl: String
|
|
48099
48111
|
},
|
|
@@ -48128,8 +48140,8 @@ const ice = Nn({
|
|
|
48128
48140
|
}
|
|
48129
48141
|
}
|
|
48130
48142
|
});
|
|
48131
|
-
const
|
|
48132
|
-
function
|
|
48143
|
+
const ace = ["src"];
|
|
48144
|
+
function sce(t, e, n, r, i, o) {
|
|
48133
48145
|
return Ee(), Ye("div", {
|
|
48134
48146
|
class: "dialog-picture override",
|
|
48135
48147
|
style: lr(t.boxStyle)
|
|
@@ -48137,10 +48149,10 @@ function ace(t, e, n, r, i, o) {
|
|
|
48137
48149
|
Ie("img", {
|
|
48138
48150
|
src: t.getAssetUrl(t.pictureUrl),
|
|
48139
48151
|
class: "picture override"
|
|
48140
|
-
}, null, 8,
|
|
48152
|
+
}, null, 8, ace)
|
|
48141
48153
|
], 4);
|
|
48142
48154
|
}
|
|
48143
|
-
const
|
|
48155
|
+
const uce = /* @__PURE__ */ go(oce, [["render", sce]]), lce = Nn({
|
|
48144
48156
|
data() {
|
|
48145
48157
|
return {
|
|
48146
48158
|
playerText: "",
|
|
@@ -48357,38 +48369,38 @@ const sce = /* @__PURE__ */ go(ice, [["render", ace]]), uce = Nn({
|
|
|
48357
48369
|
}
|
|
48358
48370
|
}
|
|
48359
48371
|
});
|
|
48360
|
-
const
|
|
48372
|
+
const cce = { class: "dialog-content" }, fce = ["innerHTML"], dce = ["innerHTML"], hce = ["innerHTML"], pce = { key: 1 }, vce = {
|
|
48361
48373
|
key: 0,
|
|
48362
48374
|
class: "dialog-choices"
|
|
48363
|
-
},
|
|
48375
|
+
}, mce = ["onClick", "innerHTML"], gce = { key: 1 }, yce = {
|
|
48364
48376
|
key: 2,
|
|
48365
48377
|
class: "buttons-container"
|
|
48366
48378
|
};
|
|
48367
|
-
function
|
|
48379
|
+
function bce(t, e, n, r, i, o) {
|
|
48368
48380
|
const a = UR("visible");
|
|
48369
48381
|
return Ee(), Ye("div", {
|
|
48370
48382
|
class: vr(["dialog-box w-full override", t.dialogBoxClass]),
|
|
48371
48383
|
style: lr(t.dialogBoxStyle)
|
|
48372
48384
|
}, [
|
|
48373
|
-
Ie("div",
|
|
48385
|
+
Ie("div", cce, [
|
|
48374
48386
|
t.options.title ? (Ee(), Ye("span", {
|
|
48375
48387
|
key: 0,
|
|
48376
48388
|
class: "dialog-title override",
|
|
48377
48389
|
style: lr(t.titleStyle),
|
|
48378
48390
|
innerHTML: t.options.title
|
|
48379
|
-
}, null, 12,
|
|
48391
|
+
}, null, 12, fce)) : vn("", !0),
|
|
48380
48392
|
Ie("span", {
|
|
48381
48393
|
class: "dialog-text dialog-separator override",
|
|
48382
48394
|
style: lr(t.textStyle),
|
|
48383
48395
|
innerHTML: t.preText
|
|
48384
|
-
}, null, 12,
|
|
48396
|
+
}, null, 12, dce),
|
|
48385
48397
|
Ie("span", {
|
|
48386
48398
|
class: vr(["dialog-text override", t.options.cssClass]),
|
|
48387
48399
|
style: lr(t.textStyle),
|
|
48388
48400
|
innerHTML: t.text
|
|
48389
|
-
}, null, 14,
|
|
48390
|
-
t.options.old ? vn("", !0) : mf((Ee(), Ye("div",
|
|
48391
|
-
t.choices ? (Ee(), Ye("div",
|
|
48401
|
+
}, null, 14, hce),
|
|
48402
|
+
t.options.old ? vn("", !0) : mf((Ee(), Ye("div", pce, [
|
|
48403
|
+
t.choices ? (Ee(), Ye("div", vce, [
|
|
48392
48404
|
(Ee(!0), Ye(Zn, null, cr(t.choices, (s, u) => (Ee(), Ye("p", {
|
|
48393
48405
|
key: u,
|
|
48394
48406
|
style: lr(t.dialogStyle(s)),
|
|
@@ -48397,8 +48409,8 @@ function yce(t, e, n, r, i, o) {
|
|
|
48397
48409
|
ref_for: !0,
|
|
48398
48410
|
ref: "choices",
|
|
48399
48411
|
innerHTML: `${u + 1}. \u2013\xA0 ${s.choice}`
|
|
48400
|
-
}, null, 14,
|
|
48401
|
-
])) : t.options.textField ? (Ee(), Ye("div",
|
|
48412
|
+
}, null, 14, mce))), 128))
|
|
48413
|
+
])) : t.options.textField ? (Ee(), Ye("div", gce, [
|
|
48402
48414
|
mf(Ie("input", {
|
|
48403
48415
|
type: "text",
|
|
48404
48416
|
class: "label-input input",
|
|
@@ -48413,7 +48425,7 @@ function yce(t, e, n, r, i, o) {
|
|
|
48413
48425
|
class: "button",
|
|
48414
48426
|
id: "player-input-submit"
|
|
48415
48427
|
}, " Submit ")
|
|
48416
|
-
])) : (Ee(), Ye("div",
|
|
48428
|
+
])) : (Ee(), Ye("div", yce, [
|
|
48417
48429
|
Ie("div", {
|
|
48418
48430
|
onClick: e[2] || (e[2] = (s) => t.chooseOption(0)),
|
|
48419
48431
|
ref: "continue",
|
|
@@ -48426,7 +48438,7 @@ function yce(t, e, n, r, i, o) {
|
|
|
48426
48438
|
])
|
|
48427
48439
|
], 6);
|
|
48428
48440
|
}
|
|
48429
|
-
const
|
|
48441
|
+
const wce = /* @__PURE__ */ go(lce, [["render", bce]]), kce = /* @__PURE__ */ Ie("div", { class: "anchor" }, null, -1), _ce = /* @__PURE__ */ Nn({
|
|
48430
48442
|
__name: "game-dialog",
|
|
48431
48443
|
props: {
|
|
48432
48444
|
layoutMode: String,
|
|
@@ -48446,7 +48458,7 @@ const bce = /* @__PURE__ */ go(uce, [["render", yce]]), wce = /* @__PURE__ */ Ie
|
|
|
48446
48458
|
if (h.value) {
|
|
48447
48459
|
const j = h.value.speaker;
|
|
48448
48460
|
let S = h.value.pose;
|
|
48449
|
-
return j ? (S || (S = "idle"),
|
|
48461
|
+
return j ? (S || (S = "idle"), ice(j, S)) : void 0;
|
|
48450
48462
|
}
|
|
48451
48463
|
}), v = ft(() => i.dialogWidth), g = ft(() => rn().inScript);
|
|
48452
48464
|
Gh(g, (j) => {
|
|
@@ -48514,7 +48526,7 @@ const bce = /* @__PURE__ */ go(uce, [["render", yce]]), wce = /* @__PURE__ */ Ie
|
|
|
48514
48526
|
}), (j, S) => (Ee(), Ye(Zn, null, [
|
|
48515
48527
|
Br(pf, { name: "fade" }, {
|
|
48516
48528
|
default: sr(() => [
|
|
48517
|
-
bt(p) && bt(i).showDialog ? (Ee(), pn(
|
|
48529
|
+
bt(p) && bt(i).showDialog ? (Ee(), pn(uce, {
|
|
48518
48530
|
key: 0,
|
|
48519
48531
|
pictureUrl: bt(p)
|
|
48520
48532
|
}, null, 8, ["pictureUrl"])) : vn("", !0)
|
|
@@ -48537,7 +48549,7 @@ const bce = /* @__PURE__ */ go(uce, [["render", yce]]), wce = /* @__PURE__ */ Ie
|
|
|
48537
48549
|
style: lr(bt(d))
|
|
48538
48550
|
}, {
|
|
48539
48551
|
default: sr(() => [
|
|
48540
|
-
(Ee(!0), Ye(Zn, null, cr(bt(u), (A, C) => (Ee(), pn(
|
|
48552
|
+
(Ee(!0), Ye(Zn, null, cr(bt(u), (A, C) => (Ee(), pn(wce, {
|
|
48541
48553
|
ref_for: !0,
|
|
48542
48554
|
ref: (O) => f.value = O,
|
|
48543
48555
|
key: A.id,
|
|
@@ -48559,7 +48571,7 @@ const bce = /* @__PURE__ */ go(uce, [["render", yce]]), wce = /* @__PURE__ */ Ie
|
|
|
48559
48571
|
}, " Skip ")
|
|
48560
48572
|
])
|
|
48561
48573
|
])),
|
|
48562
|
-
|
|
48574
|
+
kce
|
|
48563
48575
|
], 4)) : vn("", !0)
|
|
48564
48576
|
]),
|
|
48565
48577
|
_: 1
|
|
@@ -48567,7 +48579,7 @@ const bce = /* @__PURE__ */ go(uce, [["render", yce]]), wce = /* @__PURE__ */ Ie
|
|
|
48567
48579
|
], 64));
|
|
48568
48580
|
}
|
|
48569
48581
|
});
|
|
48570
|
-
const
|
|
48582
|
+
const xce = ["id"], jce = ["src"], Sce = { class: "tab-title" }, Cce = /* @__PURE__ */ Nn({
|
|
48571
48583
|
__name: "tab-selector",
|
|
48572
48584
|
props: {
|
|
48573
48585
|
tab: null,
|
|
@@ -48592,23 +48604,23 @@ const _ce = ["id"], xce = ["src"], jce = { class: "tab-title" }, Sce = /* @__PUR
|
|
|
48592
48604
|
src: t.tab.icon,
|
|
48593
48605
|
alt: "tab icon",
|
|
48594
48606
|
class: "tab-icon"
|
|
48595
|
-
}, null, 8,
|
|
48596
|
-
Ie("span",
|
|
48607
|
+
}, null, 8, jce)) : vn("", !0),
|
|
48608
|
+
Ie("span", Sce, zt(t.tab.label), 1)
|
|
48597
48609
|
], 2)
|
|
48598
|
-
], 10,
|
|
48610
|
+
], 10, xce));
|
|
48599
48611
|
}
|
|
48600
48612
|
});
|
|
48601
|
-
const
|
|
48613
|
+
const $ce = { class: "tabs-controller" }, Oce = {
|
|
48602
48614
|
key: 0,
|
|
48603
48615
|
class: "tabs-controller__tabs"
|
|
48604
|
-
},
|
|
48616
|
+
}, Tce = {
|
|
48605
48617
|
key: 1,
|
|
48606
48618
|
class: "tab-content"
|
|
48607
|
-
},
|
|
48619
|
+
}, Ace = { key: 2 }, Ece = /* @__PURE__ */ Ie("div", { class: "tab-content__empty" }, [
|
|
48608
48620
|
/* @__PURE__ */ Ie("p", null, "No tab selected")
|
|
48609
|
-
], -1),
|
|
48610
|
-
|
|
48611
|
-
],
|
|
48621
|
+
], -1), Mce = [
|
|
48622
|
+
Ece
|
|
48623
|
+
], Pce = /* @__PURE__ */ Nn({
|
|
48612
48624
|
__name: "TabsController",
|
|
48613
48625
|
props: {
|
|
48614
48626
|
tabs: null,
|
|
@@ -48624,25 +48636,25 @@ const Cce = { class: "tabs-controller" }, $ce = {
|
|
|
48624
48636
|
r.value = n.tabs[u].id, e("tab-change", u);
|
|
48625
48637
|
}
|
|
48626
48638
|
const o = ft(() => n.tabs.find((u) => u.id === r.value));
|
|
48627
|
-
return (u, l) => (Ee(), Ye("div",
|
|
48628
|
-
t.tabs.length > 1 ? (Ee(), Ye("div",
|
|
48629
|
-
(Ee(!0), Ye(Zn, null, cr(t.tabs, (f, c) => (Ee(), pn(
|
|
48639
|
+
return (u, l) => (Ee(), Ye("div", $ce, [
|
|
48640
|
+
t.tabs.length > 1 ? (Ee(), Ye("div", Oce, [
|
|
48641
|
+
(Ee(!0), Ye(Zn, null, cr(t.tabs, (f, c) => (Ee(), pn(Cce, {
|
|
48630
48642
|
key: f.id,
|
|
48631
48643
|
tab: f,
|
|
48632
48644
|
active: f.id === r.value,
|
|
48633
48645
|
onClick: () => i(c)
|
|
48634
48646
|
}, null, 8, ["tab", "active", "onClick"]))), 128))
|
|
48635
48647
|
])) : vn("", !0),
|
|
48636
|
-
bt(o) ? (Ee(), Ye("div",
|
|
48648
|
+
bt(o) ? (Ee(), Ye("div", Tce, [
|
|
48637
48649
|
bt(o) ? (Ee(), pn(PA(bt(o).component), {
|
|
48638
48650
|
key: 0,
|
|
48639
48651
|
onClose: l[0] || (l[0] = (f) => u.$emit("close"))
|
|
48640
48652
|
}, null, 32)) : vn("", !0)
|
|
48641
|
-
])) : (Ee(), Ye("div",
|
|
48653
|
+
])) : (Ee(), Ye("div", Ace, Mce))
|
|
48642
48654
|
]));
|
|
48643
48655
|
}
|
|
48644
48656
|
});
|
|
48645
|
-
const
|
|
48657
|
+
const Ice = { class: "menu-container" }, Nce = ["onClick", "id"], Lce = { class: "title" }, Dce = /* @__PURE__ */ Nn({
|
|
48646
48658
|
__name: "menu-buttons",
|
|
48647
48659
|
setup(t) {
|
|
48648
48660
|
const e = ea(), n = Hn(null);
|
|
@@ -48673,7 +48685,7 @@ const Pce = { class: "menu-container" }, Ice = ["onClick", "id"], Nce = { class:
|
|
|
48673
48685
|
function l() {
|
|
48674
48686
|
return s();
|
|
48675
48687
|
}
|
|
48676
|
-
return (f, c) => (Ee(), Ye("div",
|
|
48688
|
+
return (f, c) => (Ee(), Ye("div", Ice, [
|
|
48677
48689
|
(Ee(!0), Ye(Zn, null, cr(bt(i), (d, h) => {
|
|
48678
48690
|
var p;
|
|
48679
48691
|
return Ee(), Ye("button", {
|
|
@@ -48681,7 +48693,7 @@ const Pce = { class: "menu-container" }, Ice = ["onClick", "id"], Nce = { class:
|
|
|
48681
48693
|
onClick: (v) => r(d.id),
|
|
48682
48694
|
id: (p = d.cssId) != null ? p : `${h}-menu-button`,
|
|
48683
48695
|
class: "button menu-toggle-button"
|
|
48684
|
-
}, zt(d.label), 9,
|
|
48696
|
+
}, zt(d.label), 9, Nce);
|
|
48685
48697
|
}), 128)),
|
|
48686
48698
|
bt(o) ? (Ee(), pn(qy, {
|
|
48687
48699
|
key: 0,
|
|
@@ -48694,11 +48706,11 @@ const Pce = { class: "menu-container" }, Ice = ["onClick", "id"], Nce = { class:
|
|
|
48694
48706
|
header: sr(() => {
|
|
48695
48707
|
var d, h;
|
|
48696
48708
|
return [
|
|
48697
|
-
Ie("h3",
|
|
48709
|
+
Ie("h3", Lce, zt((h = (d = bt(e).tab) == null ? void 0 : d.text) != null ? h : bt(o).label), 1)
|
|
48698
48710
|
];
|
|
48699
48711
|
}),
|
|
48700
48712
|
body: sr(() => [
|
|
48701
|
-
Br(
|
|
48713
|
+
Br(Pce, {
|
|
48702
48714
|
onTabChange: u,
|
|
48703
48715
|
onClose: l,
|
|
48704
48716
|
tabs: bt(a),
|
|
@@ -48711,7 +48723,7 @@ const Pce = { class: "menu-container" }, Ice = ["onClick", "id"], Nce = { class:
|
|
|
48711
48723
|
]));
|
|
48712
48724
|
}
|
|
48713
48725
|
});
|
|
48714
|
-
const
|
|
48726
|
+
const Rce = ["id"], zce = ["innerHTML"], Fce = /* @__PURE__ */ Nn({
|
|
48715
48727
|
__name: "screen-object",
|
|
48716
48728
|
props: {
|
|
48717
48729
|
screenObject: null,
|
|
@@ -48754,17 +48766,17 @@ const Dce = ["id"], Rce = ["innerHTML"], zce = /* @__PURE__ */ Nn({
|
|
|
48754
48766
|
}, [
|
|
48755
48767
|
Ie("span", {
|
|
48756
48768
|
innerHTML: e.screenObject.text ? bt(Xs)(e.screenObject.text) : void 0
|
|
48757
|
-
}, null, 8,
|
|
48769
|
+
}, null, 8, zce),
|
|
48758
48770
|
(Ee(!0), Ye(Zn, null, cr(e.screenObject.children, (u) => (Ee(), pn(s, {
|
|
48759
48771
|
transitioning: t.transitioning,
|
|
48760
48772
|
key: u.id,
|
|
48761
48773
|
screenObject: u
|
|
48762
48774
|
}, null, 8, ["transitioning", "screenObject"]))), 128))
|
|
48763
|
-
], 14,
|
|
48775
|
+
], 14, Rce);
|
|
48764
48776
|
};
|
|
48765
48777
|
}
|
|
48766
48778
|
});
|
|
48767
|
-
const
|
|
48779
|
+
const Bce = ["id"], qce = ["id", "onClick", "innerHTML"], Mg = /* @__PURE__ */ Nn({
|
|
48768
48780
|
__name: "screen-layer",
|
|
48769
48781
|
props: {
|
|
48770
48782
|
layer: String,
|
|
@@ -48845,16 +48857,16 @@ const Fce = ["id"], Bce = ["id", "onClick", "innerHTML"], Mg = /* @__PURE__ */ N
|
|
|
48845
48857
|
onClick: (C) => y(S),
|
|
48846
48858
|
style: lr(m(S)),
|
|
48847
48859
|
innerHTML: b(S)
|
|
48848
|
-
}, null, 14,
|
|
48849
|
-
(Ee(!0), Ye(Zn, null, cr(bt(o).tree, (S) => (Ee(), pn(
|
|
48860
|
+
}, null, 14, qce))), 128)),
|
|
48861
|
+
(Ee(!0), Ye(Zn, null, cr(bt(o).tree, (S) => (Ee(), pn(Fce, {
|
|
48850
48862
|
key: S.id,
|
|
48851
48863
|
screenObject: S,
|
|
48852
48864
|
transitioning: t.transitioning
|
|
48853
48865
|
}, null, 8, ["screenObject", "transitioning"]))), 128))
|
|
48854
|
-
], 12,
|
|
48866
|
+
], 12, Bce)) : vn("", !0);
|
|
48855
48867
|
}
|
|
48856
48868
|
});
|
|
48857
|
-
const
|
|
48869
|
+
const Vce = /* @__PURE__ */ Nn({
|
|
48858
48870
|
__name: "NarratTransition",
|
|
48859
48871
|
props: {
|
|
48860
48872
|
name: {
|
|
@@ -48905,7 +48917,7 @@ const qce = /* @__PURE__ */ Nn({
|
|
|
48905
48917
|
], 64));
|
|
48906
48918
|
}
|
|
48907
48919
|
});
|
|
48908
|
-
const
|
|
48920
|
+
const Hce = /* @__PURE__ */ Nn({
|
|
48909
48921
|
__name: "screens",
|
|
48910
48922
|
setup(t) {
|
|
48911
48923
|
const e = Mo(), n = rn(), r = Oa(), i = ft(() => r.nonEmptyLayers), o = ft(() => e.layoutMode), a = ft(() => wt().layout.backgrounds.width), s = ft(() => wt().layout.backgrounds.height), u = ft(() => n.isInGame);
|
|
@@ -48929,7 +48941,7 @@ const Vce = /* @__PURE__ */ Nn({
|
|
|
48929
48941
|
key: p,
|
|
48930
48942
|
class: "layer-container"
|
|
48931
48943
|
}, [
|
|
48932
|
-
h.transition ? (Ee(), pn(
|
|
48944
|
+
h.transition ? (Ee(), pn(Vce, {
|
|
48933
48945
|
key: 0,
|
|
48934
48946
|
name: h.transition.transition,
|
|
48935
48947
|
duration: h.transition.duration,
|
|
@@ -48959,7 +48971,7 @@ const Vce = /* @__PURE__ */ Nn({
|
|
|
48959
48971
|
], 4)) : vn("", !0);
|
|
48960
48972
|
}
|
|
48961
48973
|
});
|
|
48962
|
-
const
|
|
48974
|
+
const Uce = Nn({
|
|
48963
48975
|
data() {
|
|
48964
48976
|
return {};
|
|
48965
48977
|
},
|
|
@@ -48986,8 +48998,8 @@ const Hce = Nn({
|
|
|
48986
48998
|
}
|
|
48987
48999
|
}
|
|
48988
49000
|
});
|
|
48989
|
-
const
|
|
48990
|
-
function
|
|
49001
|
+
const Wce = ["src"], Kce = { class: "bold hud-text" }, Jce = /* @__PURE__ */ sc(": ");
|
|
49002
|
+
function Gce(t, e, n, r, i, o) {
|
|
48991
49003
|
return Ee(), Ye("div", {
|
|
48992
49004
|
class: "hud",
|
|
48993
49005
|
style: lr(t.hudStyle)
|
|
@@ -48999,28 +49011,28 @@ function Jce(t, e, n, r, i, o) {
|
|
|
48999
49011
|
Ie("img", {
|
|
49000
49012
|
class: "hud-icon",
|
|
49001
49013
|
src: t.getStatImage(s)
|
|
49002
|
-
}, null, 8,
|
|
49003
|
-
Ie("span",
|
|
49004
|
-
|
|
49014
|
+
}, null, 8, Wce),
|
|
49015
|
+
Ie("span", Kce, zt(t.statsConfig[s].name), 1),
|
|
49016
|
+
Jce,
|
|
49005
49017
|
Ie("span", null, zt(Math.floor(a.value * 100) / 100), 1)
|
|
49006
49018
|
]))), 128))
|
|
49007
49019
|
], 4);
|
|
49008
49020
|
}
|
|
49009
|
-
const
|
|
49021
|
+
const Qce = /* @__PURE__ */ go(Uce, [["render", Gce]]), Yce = {
|
|
49010
49022
|
key: 0,
|
|
49011
49023
|
class: "auto-play-feedback-container"
|
|
49012
|
-
},
|
|
49024
|
+
}, Xce = /* @__PURE__ */ Nn({
|
|
49013
49025
|
__name: "AutoPlayFeedback",
|
|
49014
49026
|
setup(t) {
|
|
49015
49027
|
const e = Xn(), n = ft(() => e.playMode === "auto"), r = ft(() => e.playMode === "skip"), i = ft(() => n.value ? "auto-play-feedback-auto" : r.value ? "auto-play-feedback-skip" : {}), o = ft(() => n.value ? "Auto Play" : r.value ? "Skip" : "");
|
|
49016
|
-
return (a, s) => bt(o) ? (Ee(), Ye("div",
|
|
49028
|
+
return (a, s) => bt(o) ? (Ee(), Ye("div", Yce, [
|
|
49017
49029
|
Ie("div", {
|
|
49018
49030
|
class: vr(["auto-play-feedback", bt(i)])
|
|
49019
49031
|
}, zt(bt(o)), 3)
|
|
49020
49032
|
])) : vn("", !0);
|
|
49021
49033
|
}
|
|
49022
49034
|
});
|
|
49023
|
-
const
|
|
49035
|
+
const Zce = /* @__PURE__ */ Nn({
|
|
49024
49036
|
__name: "in-game",
|
|
49025
49037
|
setup(t) {
|
|
49026
49038
|
const e = rn(), n = Mo(), r = ft(() => n.layoutMode), i = ft(() => e.saving), o = Hn(null), a = Xn(), s = Hn(null), u = ft(
|
|
@@ -49054,10 +49066,10 @@ const Xce = /* @__PURE__ */ Nn({
|
|
|
49054
49066
|
class: "game",
|
|
49055
49067
|
style: lr(bt(l))
|
|
49056
49068
|
}, [
|
|
49057
|
-
Br(
|
|
49058
|
-
Br(
|
|
49059
|
-
Br(
|
|
49060
|
-
Br(
|
|
49069
|
+
Br(Qce),
|
|
49070
|
+
Br(Dce, { class: "menu-toggle" }),
|
|
49071
|
+
Br(Hce),
|
|
49072
|
+
Br(_ce, {
|
|
49061
49073
|
inGame: !0,
|
|
49062
49074
|
layoutMode: bt(r)
|
|
49063
49075
|
}, null, 8, ["layoutMode"]),
|
|
@@ -49067,7 +49079,7 @@ const Xce = /* @__PURE__ */ Nn({
|
|
|
49067
49079
|
onChosen: f,
|
|
49068
49080
|
onClose: p[0] || (p[0] = () => f(null))
|
|
49069
49081
|
})) : vn("", !0),
|
|
49070
|
-
Br(
|
|
49082
|
+
Br(Xce),
|
|
49071
49083
|
bt(i) && bt(i).withPrompt && o.value === null ? (Ee(), pn(fv, {
|
|
49072
49084
|
key: 1,
|
|
49073
49085
|
prompt: "Would you like to save the game?",
|
|
@@ -49077,7 +49089,7 @@ const Xce = /* @__PURE__ */ Nn({
|
|
|
49077
49089
|
], 4));
|
|
49078
49090
|
}
|
|
49079
49091
|
});
|
|
49080
|
-
const
|
|
49092
|
+
const efe = Nn({
|
|
49081
49093
|
props: {
|
|
49082
49094
|
percentage: Number,
|
|
49083
49095
|
step: String
|
|
@@ -49091,22 +49103,22 @@ const Zce = Nn({
|
|
|
49091
49103
|
},
|
|
49092
49104
|
computed: {}
|
|
49093
49105
|
});
|
|
49094
|
-
const
|
|
49095
|
-
function
|
|
49096
|
-
return Ee(), Ye("div",
|
|
49106
|
+
const tfe = { id: "loading-bar" }, nfe = { id: "loading-text" };
|
|
49107
|
+
function rfe(t, e, n, r, i, o) {
|
|
49108
|
+
return Ee(), Ye("div", tfe, [
|
|
49097
49109
|
Ie("div", {
|
|
49098
49110
|
id: "inner-loading-bar",
|
|
49099
49111
|
style: lr(t.loadingStyle())
|
|
49100
49112
|
}, null, 4),
|
|
49101
|
-
Ie("div",
|
|
49113
|
+
Ie("div", nfe, [
|
|
49102
49114
|
Ie("h3", null, "Loading " + zt(Math.floor(t.percentage * 100)) + "% - " + zt(t.step), 1)
|
|
49103
49115
|
])
|
|
49104
49116
|
]);
|
|
49105
49117
|
}
|
|
49106
|
-
const
|
|
49118
|
+
const ife = /* @__PURE__ */ go(efe, [["render", rfe]]), ofe = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IlJhdCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDU5NS4zIDU5NS4zIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OTUuMyA1OTUuMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNFMjNCMzM7fQo8L3N0eWxlPgo8cGF0aCBpZD0iUmF0X1NoYXBlIiBjbGFzcz0ic3QwIiBkPSJNNTU2LjksODIuNWMtMTAuOC0yNC4zLTQ3LTU3LjEtNzEuMy02NS42Yy0yNC4zLTguNC02NC4xLTAuMy04OC43LDIyLjMKCWMtMjAsMTguNC0yNiwyOC4yLTI5LjEsMzdjLTIuMSw1LjktNC44LDEzLjUtNiwyMC45djBjLTAuNSw0LjEtNC41LDctOC42LDYuMWMtMTAuNC0yLjMtMjkuNS02LTQ0LjQtNi4zCgljLTEzLjctMC4yLTMwLjEsMy4yLTQwLjQsNS43Yy00LjUsMS4xLTguOC0yLjItOC44LTYuOGMtMC4xLTUuMy0xLjEtMTIuMy00LjgtMTkuNmMtOC41LTE2LjktMTkuNi0zMi42LTU3LjgtNDcuNAoJYy0zMS45LTEyLjQtNzUuMS05LjctMTAwLjgsMS44Yy0yOC4xLDEyLjYtNDIuNCwzNy45LTU0LDYxLjhjLTE0LjQsMjkuOC0xNC45LDgzLjYtNi40LDEwNGMxMi44LDMwLjcsMzUuOCw0Ny4yLDUyLjYsNTMKCWMxMS4zLDMuOCwyOC4yLDMuNywzOC4yLDMuM2M0LjItMC4yLDcuNywzLjMsNy41LDcuNWMtMC43LDEzLjYtMC45LDQxLjUsNyw2MS40YzcuNywxOS40LDI5LjcsNjIuMyw1MC43LDEwMS4yCgljMCwwLjEtMTQuNiwyLjktMzEuNCw2LjhjLTIzLjksNS41LTUyLjYsMTIuNy01NC4zLDEzLjdjLTMuNSwyLjEtMywxMC0yLjcsMTJjMC41LDMuNCw1LjMsOC4xLDYuOSw4LjNjMy45LDAuMywzMS4zLTcuNiw1NS43LTE0LjYKCWMxOC41LTUuMywzNC45LTkuMywzNS41LTguMmM1LjEsOS4zLDEwLDE4LDE0LjQsMjUuOGM1LjIsOS4xLDEwLjcsMTYuNCwxNC4xLDIzLjZjMS4xLDIuMy0xNi42LDUuOC0zMi41LDE0LjcKCWMtMTYuNCw5LjEtMjkuNywyMS0zMi4zLDI0Yy0xLjgsMi4xLTMsNi0xLjIsMTAuN2MxLjEsMi45LDEwLDUuNywxMi40LDUuMWM2LjgtMS43LDE2LjUtMTIuNSwzMy4xLTIxLjEKCWMxNi4zLTguNSwzMi45LTE0LjksMzMuOC0xMy42YzkuNywxNC4zLDE2LjksMjEuNiwyMi42LDMxLjJjOS44LDE2LjUsMjcuMyw0NS45LDQ2LjYsMzkuNWM2LjQtMi4xLDMxLjEtMzMuNiw1My4zLTY4LjYKCWMxLjMtMi4xLDE2LjEsMTEuMywzMC40LDIzLjJjMTMuOCwxMS40LDIyLjcsMjAuNiwyNy4xLDIxLjRjNS40LDEsMTQuMi03LjcsMTQuMS0xNC43Yy0wLjEtMi43LTE0LjMtMTMuOC0yOS4xLTI2LjIKCWMtMTQuNS0xMi4xLTMwLjEtMjIuOC0yOS4yLTI0LjNjNy42LTEyLDE0LjUtMjMuNywyMC4xLTMzLjljNC4zLTcuOCw4LjktMTYsMTMtMjQuN2MwLjYtMS4yLDE1LjksMywzMS40LDcuMWMxNS4zLDQsMjYuNywxMCwzMSw4CgljNi45LTMsMTEuNi0xMy44LDkuNC0xOC4zYy0xLjEtMi4zLTE3LTcuMy0zMy4yLTEyYy0xNC4yLTQuMS0yOC02LjUtMjcuNy03LjNjMTUuNS0zNCwyOC44LTY0LjgsMjcuNi02OS42CgljLTEuNy03LjEsMi42LTExLjksNy0zNi41YzMuMi0xOC4xLDQuNy00MC45LDUuMi01MS43YzAuMi0zLjUsMi44LTYuMyw2LjMtNi43YzMuMS0wLjMsNi45LTAuOSwxMC41LTEuOWM3LjgtMiwxOC42LTcuOCwzNi40LTIwLjYKCWMxNy45LTEyLjgsMzguNy00OS42LDQ0LjQtNjcuOFM1NjcuNiwxMDYuOCw1NTYuOSw4Mi41eiBNMjY1LjEsMzM2LjJjLTguMSw0LTEzLDctMjYuNCw5LjZjLTYuOSwxLjQtMjkuNC0wLjItNDAuNy00LjYKCWMtMTAuNS00LjEtMTkuOS03LjYtMzAtMTUuNHMtMTUuNy0xMy4yLTE1LjctMTUuM2MwLTQuNCw2LTkuNCwxMS05LjRjNS4xLDAsMTQuNSw5LjIsMjkuNywxNi42YzE0LjMsNywxNy45LDYuMSwyNS40LDcuMwoJYzIuOSwwLjUsNy43LDAuNiwxMC43LDAuNGMxNC4xLTEuMywyMS40LTUuOSwyNS4zLTguOGM0LTMsMTMuNy0xMi45LDE3LjItMTIuNWM4LDEsMTguOSwzLjQsMTguOSw3LjEKCUMyOTAuNCwzMTksMjczLjIsMzMyLjEsMjY1LjEsMzM2LjJ6IE0zMjAuOSw1MjEuNGMtNC4zLDMuNy0xNy43LDEzLjUtMjMuMywxMy41Yy0yLjgsMC03LjQtOC4yLTExLjUtMTYuOAoJYy00LjEtOC41LTkuMS0yMS4xLTkuMS0zMS42YzAtNC42LDYtNy40LDEzLjQtOS4yYzcuMi0xLjcsMjcuMy0xLjgsMjkuOS0xLjFjNi44LDEuNywxMi45LDIuMiwxMi43LDYuNGMtMC40LDEyLjctNywxOC45LTguMywyNC4zCglDMzIzLjQsNTEyLjMsMzIzLjQsNTE5LjIsMzIwLjksNTIxLjR6IE00MzEuMSwzMjAuM2MtOS4yLDcuNC0xMC42LDguMS0yNC45LDEzLjdjLTExLjMsNC40LTI4LjYsNS44LTQxLjYsMy42CgljLTEyLjItMi4xLTIyLjMtNC42LTI5LjUtMTAuMWMtOS43LTcuMy0xNi40LTE1LjEtMTYuNC0xOS44YzAtMy43LDYuNC00LjMsMTQuNS00LjljMy41LTAuMyw5LjMsNS45LDEzLjIsOS4yCgljOC4xLDYuOCwxNC44LDgsMjguOCw5LjljMi45LDAuNCw3LjgsMC40LDEwLjcsMC4xYzcuNS0wLjksMTItMC40LDI1LjgtOC4yYzIwLTExLjIsMTcuOC0xNC40LDI1LjEtMTIuNmMyLjIsMC42LDUuOCwxLjIsNS42LDUuNgoJQzQ0Mi40LDMwOSw0NDAuNSwzMTIuNyw0MzEuMSwzMjAuM3oiLz4KPC9zdmc+Cg==", afe = {
|
|
49107
49119
|
id: "engine-splash-screen",
|
|
49108
49120
|
class: "flex justify-center items-center"
|
|
49109
|
-
},
|
|
49121
|
+
}, sfe = { id: "engine-splash-title" }, ufe = ["src"], lfe = /* @__PURE__ */ Nn({
|
|
49110
49122
|
__name: "engine-splash",
|
|
49111
49123
|
emits: ["finished"],
|
|
49112
49124
|
setup(t, { emit: e }) {
|
|
@@ -49123,7 +49135,7 @@ const rfe = /* @__PURE__ */ go(Zce, [["render", nfe]]), ife = "data:image/svg+xm
|
|
|
49123
49135
|
() => typeof a.value.overrideText == "string" ? a.value.overrideText : "Made with narrat engine"
|
|
49124
49136
|
), u = ft(() => {
|
|
49125
49137
|
var d;
|
|
49126
|
-
return (d = a.value.overrideLogo) != null ? d :
|
|
49138
|
+
return (d = a.value.overrideLogo) != null ? d : ofe;
|
|
49127
49139
|
}), l = ft(
|
|
49128
49140
|
() => typeof a.value.fadeDuration == "number" ? a.value.fadeDuration : 2
|
|
49129
49141
|
), f = ft(
|
|
@@ -49141,19 +49153,19 @@ const rfe = /* @__PURE__ */ go(Zce, [["render", nfe]]), ife = "data:image/svg+xm
|
|
|
49141
49153
|
e("finished");
|
|
49142
49154
|
});
|
|
49143
49155
|
}
|
|
49144
|
-
return (d, h) => (Ee(), Ye("div",
|
|
49156
|
+
return (d, h) => (Ee(), Ye("div", afe, [
|
|
49145
49157
|
Ie("div", {
|
|
49146
49158
|
id: "engine-splash-header",
|
|
49147
49159
|
class: vr(["flex justify-center flex-col items-center", bt(i)]),
|
|
49148
49160
|
style: lr(bt(r))
|
|
49149
49161
|
}, [
|
|
49150
|
-
Ie("h1",
|
|
49162
|
+
Ie("h1", sfe, zt(bt(s)), 1),
|
|
49151
49163
|
Ie("img", {
|
|
49152
49164
|
src: bt(u),
|
|
49153
49165
|
alt: "Narrat Logo",
|
|
49154
49166
|
id: "engine-splash-logo"
|
|
49155
|
-
}, null, 8,
|
|
49156
|
-
Br(
|
|
49167
|
+
}, null, 8, ufe),
|
|
49168
|
+
Br(ife, {
|
|
49157
49169
|
percentage: bt(o).loading.percentage,
|
|
49158
49170
|
step: bt(o).loading.step
|
|
49159
49171
|
}, null, 8, ["percentage", "step"])
|
|
@@ -49161,17 +49173,17 @@ const rfe = /* @__PURE__ */ go(Zce, [["render", nfe]]), ife = "data:image/svg+xm
|
|
|
49161
49173
|
]));
|
|
49162
49174
|
}
|
|
49163
49175
|
});
|
|
49164
|
-
const
|
|
49176
|
+
const cfe = {
|
|
49165
49177
|
id: "game-splash-screen",
|
|
49166
49178
|
style: { height: "100%", padding: "20px" },
|
|
49167
49179
|
class: "flex justify-center items-center"
|
|
49168
|
-
},
|
|
49180
|
+
}, ffe = {
|
|
49169
49181
|
id: "game-splash-screen-header flex justify-center flex-col items-center",
|
|
49170
49182
|
class: "flex justify-center flex-col items-center"
|
|
49171
|
-
},
|
|
49183
|
+
}, dfe = {
|
|
49172
49184
|
class: "title",
|
|
49173
49185
|
id: "game-splash-title"
|
|
49174
|
-
},
|
|
49186
|
+
}, hfe = /* @__PURE__ */ Nn({
|
|
49175
49187
|
__name: "game-splash",
|
|
49176
49188
|
setup(t) {
|
|
49177
49189
|
const e = rn(), n = ft(
|
|
@@ -49187,9 +49199,9 @@ const lfe = {
|
|
|
49187
49199
|
}
|
|
49188
49200
|
return ys(() => {
|
|
49189
49201
|
e.options.debug && a();
|
|
49190
|
-
}), (s, u) => (Ee(), Ye("div",
|
|
49191
|
-
Ie("div",
|
|
49192
|
-
Ie("h1",
|
|
49202
|
+
}), (s, u) => (Ee(), Ye("div", cfe, [
|
|
49203
|
+
Ie("div", ffe, [
|
|
49204
|
+
Ie("h1", dfe, zt(bt(o)), 1),
|
|
49193
49205
|
bt(i) ? (Ee(), Ye("button", {
|
|
49194
49206
|
key: 0,
|
|
49195
49207
|
class: "button menu-button main-menu-button large splash-start-button override",
|
|
@@ -49199,10 +49211,10 @@ const lfe = {
|
|
|
49199
49211
|
]));
|
|
49200
49212
|
}
|
|
49201
49213
|
});
|
|
49202
|
-
const
|
|
49214
|
+
const pfe = {
|
|
49203
49215
|
key: 0,
|
|
49204
49216
|
class: "floating-tooltip-title"
|
|
49205
|
-
},
|
|
49217
|
+
}, vfe = /* @__PURE__ */ Ie("hr", null, null, -1), mfe = { class: "floating-tooltip-text" }, gfe = /* @__PURE__ */ Nn({
|
|
49206
49218
|
__name: "floating-tooltip",
|
|
49207
49219
|
props: {
|
|
49208
49220
|
title: null,
|
|
@@ -49229,26 +49241,26 @@ const hfe = {
|
|
|
49229
49241
|
ref_key: "element",
|
|
49230
49242
|
ref: r
|
|
49231
49243
|
}, [
|
|
49232
|
-
t.title ? (Ee(), Ye("div",
|
|
49244
|
+
t.title ? (Ee(), Ye("div", pfe, [
|
|
49233
49245
|
sc(zt(e.title) + " ", 1),
|
|
49234
|
-
|
|
49246
|
+
vfe
|
|
49235
49247
|
])) : vn("", !0),
|
|
49236
|
-
Ie("div",
|
|
49248
|
+
Ie("div", mfe, zt(e.text), 1)
|
|
49237
49249
|
], 4)
|
|
49238
49250
|
]),
|
|
49239
49251
|
_: 1
|
|
49240
49252
|
}));
|
|
49241
49253
|
}
|
|
49242
49254
|
});
|
|
49243
|
-
const
|
|
49255
|
+
const yfe = { class: "tooltips-ui" }, bfe = /* @__PURE__ */ Nn({
|
|
49244
49256
|
__name: "tooltips-ui",
|
|
49245
49257
|
setup(t) {
|
|
49246
49258
|
const e = ft(() => sw().tooltip);
|
|
49247
|
-
return ft(() => pm().options.width), (n, r) => (Ee(), Ye("div",
|
|
49248
|
-
bt(e) ? (Ee(), pn(
|
|
49259
|
+
return ft(() => pm().options.width), (n, r) => (Ee(), Ye("div", yfe, [
|
|
49260
|
+
bt(e) ? (Ee(), pn(gfe, KR(JR({ key: 0 }, bt(e))), null, 16)) : vn("", !0)
|
|
49249
49261
|
]));
|
|
49250
49262
|
}
|
|
49251
|
-
}),
|
|
49263
|
+
}), wfe = Nn({
|
|
49252
49264
|
setup() {
|
|
49253
49265
|
const t = Xn(), e = En(), n = rn();
|
|
49254
49266
|
return {
|
|
@@ -49263,14 +49275,14 @@ const gfe = { class: "tooltips-ui" }, yfe = /* @__PURE__ */ Nn({
|
|
|
49263
49275
|
},
|
|
49264
49276
|
inject: ["mq"],
|
|
49265
49277
|
components: {
|
|
49266
|
-
DebugMenu:
|
|
49267
|
-
NotificationToast:
|
|
49268
|
-
StartMenu:
|
|
49269
|
-
AlertModal:
|
|
49270
|
-
InGame:
|
|
49271
|
-
EngineSplash:
|
|
49272
|
-
GameSplash:
|
|
49273
|
-
TooltipsUi:
|
|
49278
|
+
DebugMenu: ble,
|
|
49279
|
+
NotificationToast: xle,
|
|
49280
|
+
StartMenu: tce,
|
|
49281
|
+
AlertModal: rce,
|
|
49282
|
+
InGame: Zce,
|
|
49283
|
+
EngineSplash: lfe,
|
|
49284
|
+
GameSplash: hfe,
|
|
49285
|
+
TooltipsUi: bfe
|
|
49274
49286
|
},
|
|
49275
49287
|
data() {
|
|
49276
49288
|
return {
|
|
@@ -49334,7 +49346,7 @@ const gfe = { class: "tooltips-ui" }, yfe = /* @__PURE__ */ Nn({
|
|
|
49334
49346
|
}
|
|
49335
49347
|
}
|
|
49336
49348
|
});
|
|
49337
|
-
function
|
|
49349
|
+
function kfe(t, e, n, r, i, o) {
|
|
49338
49350
|
const a = Ni("EngineSplash"), s = Ni("GameSplash"), u = Ni("StartMenu"), l = Ni("InGame"), f = Ni("DebugMenu"), c = Ni("NotificationToast"), d = Ni("AlertModal"), h = Ni("TooltipsUi");
|
|
49339
49351
|
return Ee(), Ye(Zn, null, [
|
|
49340
49352
|
Ie("div", {
|
|
@@ -49370,13 +49382,13 @@ function wfe(t, e, n, r, i, o) {
|
|
|
49370
49382
|
Br(h)
|
|
49371
49383
|
], 64);
|
|
49372
49384
|
}
|
|
49373
|
-
const
|
|
49385
|
+
const _fe = /* @__PURE__ */ go(wfe, [["render", kfe]]);
|
|
49374
49386
|
function Jt(t, e) {
|
|
49375
49387
|
console.error("Runtime error ========================="), console.error(`Command: ${t.commandType}`), console.error("Args: ", t.args), console.error("Options: ", t.options), Zt(`Runtime error at ${t.fileName}:${t.line} (${t.commandType}) ${t.code}. -
|
|
49376
49388
|
<br />
|
|
49377
49389
|
Error: ${e}`), console.error("============================");
|
|
49378
49390
|
}
|
|
49379
|
-
function
|
|
49391
|
+
function xfe(t, ...e) {
|
|
49380
49392
|
console.log(`[${t.fileName}:${t.line}] log: `, ...e);
|
|
49381
49393
|
}
|
|
49382
49394
|
class Qe {
|
|
@@ -49437,7 +49449,7 @@ function mm(t, e) {
|
|
|
49437
49449
|
});
|
|
49438
49450
|
};
|
|
49439
49451
|
}
|
|
49440
|
-
const
|
|
49452
|
+
const jfe = new Qe(
|
|
49441
49453
|
"add_level",
|
|
49442
49454
|
[
|
|
49443
49455
|
{
|
|
@@ -49462,7 +49474,7 @@ const xfe = new Qe(
|
|
|
49462
49474
|
}
|
|
49463
49475
|
Dr().incrementSkill(e, n);
|
|
49464
49476
|
}
|
|
49465
|
-
),
|
|
49477
|
+
), Sfe = Qe.FromOptions({
|
|
49466
49478
|
keyword: "set_level",
|
|
49467
49479
|
argTypes: [
|
|
49468
49480
|
{ name: "skill", type: "string" },
|
|
@@ -49481,7 +49493,7 @@ const xfe = new Qe(
|
|
|
49481
49493
|
}
|
|
49482
49494
|
Dr().setSkillLevel(e, n);
|
|
49483
49495
|
}
|
|
49484
|
-
}),
|
|
49496
|
+
}), Cfe = new Qe(
|
|
49485
49497
|
"add_xp",
|
|
49486
49498
|
[
|
|
49487
49499
|
{ name: "xpKey", type: "string" },
|
|
@@ -49494,7 +49506,7 @@ const xfe = new Qe(
|
|
|
49494
49506
|
"add_xp command needs a skill id and a value as parameters"
|
|
49495
49507
|
), Dr().addXp(e, n);
|
|
49496
49508
|
}
|
|
49497
|
-
),
|
|
49509
|
+
), $fe = new Qe(
|
|
49498
49510
|
"get_level",
|
|
49499
49511
|
[
|
|
49500
49512
|
{
|
|
@@ -49511,7 +49523,7 @@ const xfe = new Qe(
|
|
|
49511
49523
|
const n = Dr().getSkill(e);
|
|
49512
49524
|
return n || Jt(t, `Skill ${e} not found`), n.level;
|
|
49513
49525
|
}
|
|
49514
|
-
),
|
|
49526
|
+
), Ofe = new Qe(
|
|
49515
49527
|
"get_xp",
|
|
49516
49528
|
[
|
|
49517
49529
|
{
|
|
@@ -49525,7 +49537,7 @@ const xfe = new Qe(
|
|
|
49525
49537
|
const n = Dr().getSkillXp(e);
|
|
49526
49538
|
return n || Jt(t, `XP ${e} not found`), n;
|
|
49527
49539
|
}
|
|
49528
|
-
),
|
|
49540
|
+
), Tfe = new Qe(
|
|
49529
49541
|
"roll",
|
|
49530
49542
|
[
|
|
49531
49543
|
{ name: "id", type: "string" },
|
|
@@ -49544,15 +49556,15 @@ const xfe = new Qe(
|
|
|
49544
49556
|
repeatable: a
|
|
49545
49557
|
}).succeeded;
|
|
49546
49558
|
}
|
|
49547
|
-
),
|
|
49559
|
+
), Afe = new Qe(
|
|
49548
49560
|
"get_skill_check",
|
|
49549
49561
|
[{ name: "skillCheckId", type: "string" }],
|
|
49550
49562
|
async (t) => Dr().getSkillCheck(t.options.skillCheckId)
|
|
49551
|
-
),
|
|
49563
|
+
), Efe = new Qe(
|
|
49552
49564
|
"skill_check_result",
|
|
49553
49565
|
[{ name: "skillCheckId", type: "string" }],
|
|
49554
49566
|
async (t) => Dr().getSkillCheck(t.options.skillCheckId).succeeded
|
|
49555
|
-
),
|
|
49567
|
+
), Mfe = new Qe(
|
|
49556
49568
|
"reset_roll",
|
|
49557
49569
|
[
|
|
49558
49570
|
{
|
|
@@ -49561,7 +49573,7 @@ const xfe = new Qe(
|
|
|
49561
49573
|
}
|
|
49562
49574
|
],
|
|
49563
49575
|
async (t) => Dr().resetSkillCheck(t.options.id)
|
|
49564
|
-
),
|
|
49576
|
+
), Pfe = new Qe(
|
|
49565
49577
|
"add_stat",
|
|
49566
49578
|
[
|
|
49567
49579
|
{ name: "statKey", type: "string" },
|
|
@@ -49574,7 +49586,7 @@ const xfe = new Qe(
|
|
|
49574
49586
|
"add_stat command needs a stat id and a value as parameters"
|
|
49575
49587
|
), is().addStat(e, n);
|
|
49576
49588
|
}
|
|
49577
|
-
),
|
|
49589
|
+
), Ife = new Qe(
|
|
49578
49590
|
"set_stat",
|
|
49579
49591
|
[
|
|
49580
49592
|
{ name: "statKey", type: "string" },
|
|
@@ -49587,13 +49599,13 @@ const xfe = new Qe(
|
|
|
49587
49599
|
"set_stat command needs a stat id and a value as parameters"
|
|
49588
49600
|
), is().setStat(e, n);
|
|
49589
49601
|
}
|
|
49590
|
-
),
|
|
49602
|
+
), Nfe = new Qe("get_stat_value", [{ name: "statKey", type: "string" }], async (t) => {
|
|
49591
49603
|
const { statKey: e } = t.options;
|
|
49592
49604
|
return e || Jt(
|
|
49593
49605
|
t,
|
|
49594
49606
|
"get_stat_value command needs a stat id as parameter"
|
|
49595
49607
|
), is().getStatValue(e);
|
|
49596
|
-
}),
|
|
49608
|
+
}), Lfe = Qe.FromOptions({
|
|
49597
49609
|
keyword: "jump",
|
|
49598
49610
|
argTypes: "any",
|
|
49599
49611
|
runner: async (t) => {
|
|
@@ -49610,7 +49622,7 @@ const xfe = new Qe(
|
|
|
49610
49622
|
}
|
|
49611
49623
|
return n.jumpTarget = r, Qp;
|
|
49612
49624
|
}
|
|
49613
|
-
}),
|
|
49625
|
+
}), Dfe = Qe.FromOptions({
|
|
49614
49626
|
keyword: "run",
|
|
49615
49627
|
argTypes: "any",
|
|
49616
49628
|
runner: async (t) => {
|
|
@@ -49618,7 +49630,7 @@ const xfe = new Qe(
|
|
|
49618
49630
|
const e = t.args[0];
|
|
49619
49631
|
return await En().runLabelFunction(e, ...t.args.slice(1));
|
|
49620
49632
|
}
|
|
49621
|
-
}),
|
|
49633
|
+
}), Rfe = Qe.FromOptions({
|
|
49622
49634
|
keyword: "var",
|
|
49623
49635
|
argTypes: [
|
|
49624
49636
|
{ name: "name", type: "string" },
|
|
@@ -49628,30 +49640,30 @@ const xfe = new Qe(
|
|
|
49628
49640
|
const { name: e, value: n } = t.options;
|
|
49629
49641
|
En().addScopedVariable(e, n);
|
|
49630
49642
|
}
|
|
49631
|
-
}),
|
|
49643
|
+
}), zfe = Qe.FromOptions({
|
|
49632
49644
|
keyword: "return",
|
|
49633
49645
|
argTypes: [{ name: "value", type: "any" }],
|
|
49634
49646
|
runner: async (t) => {
|
|
49635
49647
|
const { value: e } = t.options;
|
|
49636
49648
|
return En().setReturnValue(e), aw;
|
|
49637
49649
|
}
|
|
49638
|
-
}),
|
|
49650
|
+
}), Ffe = Qe.FromOptions({
|
|
49639
49651
|
keyword: "log",
|
|
49640
49652
|
argTypes: "any",
|
|
49641
49653
|
runner: async (t) => {
|
|
49642
|
-
|
|
49654
|
+
xfe(t, ...t.args);
|
|
49643
49655
|
}
|
|
49644
|
-
}),
|
|
49656
|
+
}), Bfe = Qe.FromOptions({
|
|
49645
49657
|
keyword: "menu_return",
|
|
49646
49658
|
argTypes: [],
|
|
49647
49659
|
runner: async (t) => (rn().menuReturn(), Yp)
|
|
49648
|
-
}),
|
|
49660
|
+
}), qfe = Qe.FromOptions({
|
|
49649
49661
|
keyword: "save",
|
|
49650
49662
|
argTypes: [{ name: "name", type: "string", optional: !0 }],
|
|
49651
49663
|
runner: async (t) => {
|
|
49652
49664
|
await rn().manualSave({ saveName: t.options.name });
|
|
49653
49665
|
}
|
|
49654
|
-
}),
|
|
49666
|
+
}), Vfe = Qe.FromOptions({
|
|
49655
49667
|
keyword: "save_prompt",
|
|
49656
49668
|
argTypes: [{ name: "name", type: "string", optional: !0 }],
|
|
49657
49669
|
runner: async (t) => {
|
|
@@ -49660,7 +49672,7 @@ const xfe = new Qe(
|
|
|
49660
49672
|
withPrompt: !0
|
|
49661
49673
|
});
|
|
49662
49674
|
}
|
|
49663
|
-
}),
|
|
49675
|
+
}), Hfe = Qe.FromOptions({
|
|
49664
49676
|
keyword: "new",
|
|
49665
49677
|
argTypes: [
|
|
49666
49678
|
{ name: "name", type: "string" },
|
|
@@ -49673,18 +49685,18 @@ const xfe = new Qe(
|
|
|
49673
49685
|
if (e === "Object")
|
|
49674
49686
|
return {};
|
|
49675
49687
|
}
|
|
49676
|
-
}),
|
|
49688
|
+
}), Ufe = [
|
|
49677
49689
|
{ name: "mode", type: "string" },
|
|
49678
49690
|
{ name: "audio", type: "string" },
|
|
49679
49691
|
{ name: "channel", type: "number", optional: !0 }
|
|
49680
|
-
],
|
|
49692
|
+
], Wfe = new Qe(
|
|
49681
49693
|
"play",
|
|
49682
|
-
|
|
49694
|
+
Ufe,
|
|
49683
49695
|
async (t) => {
|
|
49684
49696
|
const e = wi(), { mode: n, audio: r, channel: i } = t.options, o = ok(t, n);
|
|
49685
49697
|
o && e.playChannel(o, r, i != null ? i : 0);
|
|
49686
49698
|
}
|
|
49687
|
-
),
|
|
49699
|
+
), Kfe = new Qe(
|
|
49688
49700
|
"pause",
|
|
49689
49701
|
[
|
|
49690
49702
|
{ name: "mode", type: "string" },
|
|
@@ -49694,7 +49706,7 @@ const xfe = new Qe(
|
|
|
49694
49706
|
const e = wi(), { mode: n, channel: r } = t.options, i = ok(t, n);
|
|
49695
49707
|
i && e.pauseChannel(i, r != null ? r : 0);
|
|
49696
49708
|
}
|
|
49697
|
-
),
|
|
49709
|
+
), Jfe = new Qe(
|
|
49698
49710
|
"stop",
|
|
49699
49711
|
[
|
|
49700
49712
|
{ name: "mode", type: "string" },
|
|
@@ -49706,12 +49718,12 @@ const xfe = new Qe(
|
|
|
49706
49718
|
}
|
|
49707
49719
|
);
|
|
49708
49720
|
function ok(t, e) {
|
|
49709
|
-
return
|
|
49721
|
+
return Gfe(e) ? e : (Jt(t, `${e} is not a valid audio mode.`), !1);
|
|
49710
49722
|
}
|
|
49711
|
-
function
|
|
49723
|
+
function Gfe(t) {
|
|
49712
49724
|
return !!dL.includes(t);
|
|
49713
49725
|
}
|
|
49714
|
-
const
|
|
49726
|
+
const Qfe = new Qe(
|
|
49715
49727
|
"set",
|
|
49716
49728
|
[
|
|
49717
49729
|
{ name: "key", type: "string" },
|
|
@@ -49721,7 +49733,7 @@ const Gfe = new Qe(
|
|
|
49721
49733
|
const e = oc();
|
|
49722
49734
|
IR(e, `$${t.options.key}`, t.options.value);
|
|
49723
49735
|
}
|
|
49724
|
-
),
|
|
49736
|
+
), Yfe = new Qe(
|
|
49725
49737
|
"add",
|
|
49726
49738
|
[
|
|
49727
49739
|
{ name: "key", type: "string" },
|
|
@@ -49731,7 +49743,7 @@ const Gfe = new Qe(
|
|
|
49731
49743
|
const e = oc();
|
|
49732
49744
|
NR(e, `$${t.options.key}`, t.options.value);
|
|
49733
49745
|
}
|
|
49734
|
-
),
|
|
49746
|
+
), Xfe = new Qe(
|
|
49735
49747
|
"set_screen",
|
|
49736
49748
|
[
|
|
49737
49749
|
{ name: "screen", type: "string" },
|
|
@@ -49743,7 +49755,7 @@ const Gfe = new Qe(
|
|
|
49743
49755
|
async (t) => {
|
|
49744
49756
|
var r;
|
|
49745
49757
|
const e = Oa();
|
|
49746
|
-
if (!
|
|
49758
|
+
if (!Bue(t.options.screen)) {
|
|
49747
49759
|
Jt(
|
|
49748
49760
|
t,
|
|
49749
49761
|
`Screen ${t.options.screen} doesn't exist in the config`
|
|
@@ -49760,7 +49772,7 @@ const Gfe = new Qe(
|
|
|
49760
49772
|
t.options.layer
|
|
49761
49773
|
) : e.setScreen(t.options.screen, (r = t.options.layer) != null ? r : 0);
|
|
49762
49774
|
}
|
|
49763
|
-
),
|
|
49775
|
+
), Zfe = new Qe(
|
|
49764
49776
|
"empty_layer",
|
|
49765
49777
|
[
|
|
49766
49778
|
{ name: "layer", type: "number" },
|
|
@@ -49776,7 +49788,7 @@ const Gfe = new Qe(
|
|
|
49776
49788
|
delay: t.options.transitionDelay
|
|
49777
49789
|
}) : e.emptyLayer(t.options.layer);
|
|
49778
49790
|
}
|
|
49779
|
-
),
|
|
49791
|
+
), ede = new Qe(
|
|
49780
49792
|
"set_button",
|
|
49781
49793
|
[
|
|
49782
49794
|
{ name: "buttonId", type: "string" },
|
|
@@ -49793,7 +49805,7 @@ const Gfe = new Qe(
|
|
|
49793
49805
|
}
|
|
49794
49806
|
r.changeButton(e, n);
|
|
49795
49807
|
}
|
|
49796
|
-
),
|
|
49808
|
+
), tde = Qe.FromOptions({
|
|
49797
49809
|
keyword: "talk",
|
|
49798
49810
|
argTypes: [
|
|
49799
49811
|
{
|
|
@@ -49820,7 +49832,7 @@ const Gfe = new Qe(
|
|
|
49820
49832
|
});
|
|
49821
49833
|
},
|
|
49822
49834
|
returnAfterPlayerAnswer: !0
|
|
49823
|
-
}),
|
|
49835
|
+
}), nde = Qe.FromOptions({
|
|
49824
49836
|
keyword: "think",
|
|
49825
49837
|
argTypes: [
|
|
49826
49838
|
{
|
|
@@ -49847,7 +49859,7 @@ const Gfe = new Qe(
|
|
|
49847
49859
|
});
|
|
49848
49860
|
},
|
|
49849
49861
|
returnAfterPlayerAnswer: !0
|
|
49850
|
-
}),
|
|
49862
|
+
}), rde = () => {
|
|
49851
49863
|
const t = mm("text", []);
|
|
49852
49864
|
return (e, n) => {
|
|
49853
49865
|
const r = t(e, n);
|
|
@@ -49855,7 +49867,7 @@ const Gfe = new Qe(
|
|
|
49855
49867
|
text: n.code.substring(1, n.code.length - 1)
|
|
49856
49868
|
}, r;
|
|
49857
49869
|
};
|
|
49858
|
-
},
|
|
49870
|
+
}, ide = Qe.FromOptions({
|
|
49859
49871
|
keyword: "text",
|
|
49860
49872
|
argTypes: [],
|
|
49861
49873
|
runner: async (t, e) => {
|
|
@@ -49867,9 +49879,9 @@ const Gfe = new Qe(
|
|
|
49867
49879
|
interactive: !0
|
|
49868
49880
|
});
|
|
49869
49881
|
},
|
|
49870
|
-
parser:
|
|
49882
|
+
parser: rde(),
|
|
49871
49883
|
returnAfterPlayerAnswer: !0
|
|
49872
|
-
}),
|
|
49884
|
+
}), ode = new Qe(
|
|
49873
49885
|
"add_item",
|
|
49874
49886
|
[
|
|
49875
49887
|
{ name: "id", type: "string" },
|
|
@@ -49882,7 +49894,7 @@ const Gfe = new Qe(
|
|
|
49882
49894
|
amount: n
|
|
49883
49895
|
});
|
|
49884
49896
|
}
|
|
49885
|
-
),
|
|
49897
|
+
), ade = new Qe(
|
|
49886
49898
|
"remove_item",
|
|
49887
49899
|
[
|
|
49888
49900
|
{ name: "id", type: "string" },
|
|
@@ -49895,7 +49907,7 @@ const Gfe = new Qe(
|
|
|
49895
49907
|
amount: n
|
|
49896
49908
|
});
|
|
49897
49909
|
}
|
|
49898
|
-
),
|
|
49910
|
+
), sde = new Qe(
|
|
49899
49911
|
"has_item?",
|
|
49900
49912
|
[
|
|
49901
49913
|
{ name: "id", type: "string" },
|
|
@@ -49905,35 +49917,35 @@ const Gfe = new Qe(
|
|
|
49905
49917
|
const { id: e, amount: n } = t.options;
|
|
49906
49918
|
return ti().hasItem(e, n);
|
|
49907
49919
|
}
|
|
49908
|
-
),
|
|
49920
|
+
), ude = new Qe(
|
|
49909
49921
|
"item_amount?",
|
|
49910
49922
|
[{ name: "id", type: "string" }],
|
|
49911
49923
|
async (t) => {
|
|
49912
49924
|
const { id: e } = t.options;
|
|
49913
49925
|
return ti().getItemAmount(e);
|
|
49914
49926
|
}
|
|
49915
|
-
),
|
|
49927
|
+
), lde = new Qe(
|
|
49916
49928
|
"enable_interaction",
|
|
49917
49929
|
[{ name: "tag", type: "string" }],
|
|
49918
49930
|
async (t) => {
|
|
49919
49931
|
const e = t.options.tag;
|
|
49920
49932
|
ti().enableInteraction(e);
|
|
49921
49933
|
}
|
|
49922
|
-
),
|
|
49934
|
+
), cde = new Qe(
|
|
49923
49935
|
"disable_interaction",
|
|
49924
49936
|
[{ name: "tag", type: "string" }],
|
|
49925
49937
|
async (t) => {
|
|
49926
49938
|
const e = t.options.tag;
|
|
49927
49939
|
ti().disableInteraction(e);
|
|
49928
49940
|
}
|
|
49929
|
-
),
|
|
49941
|
+
), fde = new Qe(
|
|
49930
49942
|
"start_quest",
|
|
49931
49943
|
[{ name: "questId", type: "string" }],
|
|
49932
49944
|
async (t) => {
|
|
49933
49945
|
const e = t.options.questId;
|
|
49934
49946
|
Vi().startQuest(e);
|
|
49935
49947
|
}
|
|
49936
|
-
),
|
|
49948
|
+
), dde = new Qe(
|
|
49937
49949
|
"start_objective",
|
|
49938
49950
|
[
|
|
49939
49951
|
{ name: "questId", type: "string" },
|
|
@@ -49943,7 +49955,7 @@ const Gfe = new Qe(
|
|
|
49943
49955
|
const { questId: e, objectiveId: n } = t.options;
|
|
49944
49956
|
Vi().startObjective(e, n);
|
|
49945
49957
|
}
|
|
49946
|
-
),
|
|
49958
|
+
), hde = new Qe(
|
|
49947
49959
|
"complete_objective",
|
|
49948
49960
|
[
|
|
49949
49961
|
{ name: "questId", type: "string" },
|
|
@@ -49953,7 +49965,7 @@ const Gfe = new Qe(
|
|
|
49953
49965
|
const { questId: e, objectiveId: n } = t.options;
|
|
49954
49966
|
Vi().completeObjective(e, n);
|
|
49955
49967
|
}
|
|
49956
|
-
),
|
|
49968
|
+
), pde = new Qe(
|
|
49957
49969
|
"complete_quest",
|
|
49958
49970
|
[
|
|
49959
49971
|
{ name: "questId", type: "string" },
|
|
@@ -49963,10 +49975,10 @@ const Gfe = new Qe(
|
|
|
49963
49975
|
const { questId: e, ending: n } = t.options;
|
|
49964
49976
|
Vi().completeQuest(e, n);
|
|
49965
49977
|
}
|
|
49966
|
-
),
|
|
49978
|
+
), vde = new Qe("quest_completed?", [{ name: "questId", type: "string" }], async (t) => {
|
|
49967
49979
|
const { questId: e } = t.options;
|
|
49968
49980
|
return Vi().isQuestCompleted(e);
|
|
49969
|
-
}),
|
|
49981
|
+
}), mde = new Qe(
|
|
49970
49982
|
"objective_completed?",
|
|
49971
49983
|
[
|
|
49972
49984
|
{ name: "questId", type: "string" },
|
|
@@ -49976,10 +49988,10 @@ const Gfe = new Qe(
|
|
|
49976
49988
|
const { questId: e, objectiveId: n } = t.options;
|
|
49977
49989
|
return Vi().isObjectiveCompleted(e, n);
|
|
49978
49990
|
}
|
|
49979
|
-
),
|
|
49991
|
+
), gde = new Qe("quest_started?", [{ name: "questId", type: "string" }], async (t) => {
|
|
49980
49992
|
const { questId: e } = t.options;
|
|
49981
49993
|
return Vi().isQuestStarted(e);
|
|
49982
|
-
}),
|
|
49994
|
+
}), yde = new Qe(
|
|
49983
49995
|
"objective_started?",
|
|
49984
49996
|
[
|
|
49985
49997
|
{ name: "questId", type: "string" },
|
|
@@ -49989,38 +50001,38 @@ const Gfe = new Qe(
|
|
|
49989
50001
|
const { questId: e, objectiveId: n } = t.options;
|
|
49990
50002
|
return Vi().isObjectiveStarted(e, n);
|
|
49991
50003
|
}
|
|
49992
|
-
),
|
|
50004
|
+
), bde = Qe.FromOptions({
|
|
49993
50005
|
keyword: "wait",
|
|
49994
50006
|
argTypes: [{ name: "duration", type: "number" }],
|
|
49995
50007
|
runner: async (t) => {
|
|
49996
50008
|
await Zo(t.options.duration);
|
|
49997
50009
|
}
|
|
49998
|
-
}),
|
|
50010
|
+
}), wde = new Qe(
|
|
49999
50011
|
"notify",
|
|
50000
50012
|
[{ name: "text", type: "string" }],
|
|
50001
50013
|
async (t) => {
|
|
50002
50014
|
const { text: e } = t.options;
|
|
50003
50015
|
To().addNotification(e);
|
|
50004
50016
|
}
|
|
50005
|
-
),
|
|
50017
|
+
), kde = new Qe(
|
|
50006
50018
|
"disable_notifications",
|
|
50007
50019
|
[],
|
|
50008
50020
|
async (t) => {
|
|
50009
50021
|
To().disableNotifications();
|
|
50010
50022
|
}
|
|
50011
|
-
),
|
|
50023
|
+
), _de = new Qe(
|
|
50012
50024
|
"enable_notifications",
|
|
50013
50025
|
[],
|
|
50014
50026
|
async (t) => {
|
|
50015
50027
|
To().enableNotifications();
|
|
50016
50028
|
}
|
|
50017
|
-
),
|
|
50029
|
+
), xde = new Qe(
|
|
50018
50030
|
"clear_dialog",
|
|
50019
50031
|
[],
|
|
50020
50032
|
async (t) => {
|
|
50021
50033
|
Xn().clearDialog();
|
|
50022
50034
|
}
|
|
50023
|
-
),
|
|
50035
|
+
), jde = new Qe(
|
|
50024
50036
|
"if",
|
|
50025
50037
|
[{ name: "condition", type: "boolean" }],
|
|
50026
50038
|
async (t) => {
|
|
@@ -50058,7 +50070,7 @@ const Gfe = new Qe(
|
|
|
50058
50070
|
newLine: n
|
|
50059
50071
|
};
|
|
50060
50072
|
}
|
|
50061
|
-
),
|
|
50073
|
+
), Sde = new Qe(
|
|
50062
50074
|
"==",
|
|
50063
50075
|
"any",
|
|
50064
50076
|
async (t) => {
|
|
@@ -50072,7 +50084,7 @@ const Gfe = new Qe(
|
|
|
50072
50084
|
e = r;
|
|
50073
50085
|
return n;
|
|
50074
50086
|
}
|
|
50075
|
-
),
|
|
50087
|
+
), Cde = new Qe(
|
|
50076
50088
|
">",
|
|
50077
50089
|
[
|
|
50078
50090
|
{ name: "a", type: "any" },
|
|
@@ -50082,7 +50094,7 @@ const Gfe = new Qe(
|
|
|
50082
50094
|
const { a: e, b: n } = t.options;
|
|
50083
50095
|
return e > n;
|
|
50084
50096
|
}
|
|
50085
|
-
),
|
|
50097
|
+
), $de = new Qe(
|
|
50086
50098
|
"<",
|
|
50087
50099
|
[
|
|
50088
50100
|
{ name: "a", type: "any" },
|
|
@@ -50092,7 +50104,7 @@ const Gfe = new Qe(
|
|
|
50092
50104
|
const { a: e, b: n } = t.options;
|
|
50093
50105
|
return e < n;
|
|
50094
50106
|
}
|
|
50095
|
-
),
|
|
50107
|
+
), Ode = new Qe(
|
|
50096
50108
|
">=",
|
|
50097
50109
|
[
|
|
50098
50110
|
{ name: "a", type: "any" },
|
|
@@ -50102,7 +50114,7 @@ const Gfe = new Qe(
|
|
|
50102
50114
|
const { a: e, b: n } = t.options;
|
|
50103
50115
|
return e >= n;
|
|
50104
50116
|
}
|
|
50105
|
-
),
|
|
50117
|
+
), Tde = new Qe(
|
|
50106
50118
|
"<=",
|
|
50107
50119
|
[
|
|
50108
50120
|
{ name: "a", type: "any" },
|
|
@@ -50112,7 +50124,7 @@ const Gfe = new Qe(
|
|
|
50112
50124
|
const { a: e, b: n } = t.options;
|
|
50113
50125
|
return e <= n;
|
|
50114
50126
|
}
|
|
50115
|
-
),
|
|
50127
|
+
), Ade = new Qe(
|
|
50116
50128
|
"!=",
|
|
50117
50129
|
[
|
|
50118
50130
|
{ name: "a", type: "any" },
|
|
@@ -50122,25 +50134,25 @@ const Gfe = new Qe(
|
|
|
50122
50134
|
const { a: e, b: n } = t.options;
|
|
50123
50135
|
return e != n;
|
|
50124
50136
|
}
|
|
50125
|
-
),
|
|
50137
|
+
), Ede = new Qe(
|
|
50126
50138
|
"!",
|
|
50127
50139
|
[{ name: "a", type: "any" }],
|
|
50128
50140
|
async (t) => {
|
|
50129
50141
|
const { a: e } = t.options;
|
|
50130
50142
|
return !e;
|
|
50131
50143
|
}
|
|
50132
|
-
),
|
|
50144
|
+
), Mde = new Qe(
|
|
50133
50145
|
"&&",
|
|
50134
50146
|
"any",
|
|
50135
50147
|
async (t) => {
|
|
50136
50148
|
const e = t.args;
|
|
50137
50149
|
return t.args.length < 2 && Jt(t, "requires at least two arguments"), e.reduce((n, r) => n && r, !0);
|
|
50138
50150
|
}
|
|
50139
|
-
),
|
|
50151
|
+
), Pde = new Qe(
|
|
50140
50152
|
"||",
|
|
50141
50153
|
"any",
|
|
50142
50154
|
async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => e || n, !1))
|
|
50143
|
-
),
|
|
50155
|
+
), Ide = new Qe(
|
|
50144
50156
|
"?",
|
|
50145
50157
|
[
|
|
50146
50158
|
{ name: "a", type: "any" },
|
|
@@ -50151,27 +50163,27 @@ const Gfe = new Qe(
|
|
|
50151
50163
|
const { a: e, b: n, c: r } = t.options;
|
|
50152
50164
|
return e ? n : r;
|
|
50153
50165
|
}
|
|
50154
|
-
),
|
|
50166
|
+
), Nde = new Qe(
|
|
50155
50167
|
"+",
|
|
50156
50168
|
"any",
|
|
50157
50169
|
async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => typeof n == "number" ? e + n : (Jt(t, "requires all arguments to be numbers"), e), 0))
|
|
50158
|
-
),
|
|
50170
|
+
), Lde = new Qe(
|
|
50159
50171
|
"-",
|
|
50160
50172
|
"any",
|
|
50161
50173
|
async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.slice(1).reduce((e, n) => typeof n == "number" ? e - n : (Jt(t, "requires all arguments to be numbers"), e), t.args[0]))
|
|
50162
|
-
),
|
|
50174
|
+
), Dde = new Qe(
|
|
50163
50175
|
"neg",
|
|
50164
50176
|
[{ name: "a", type: "number" }],
|
|
50165
50177
|
async (t) => (t.args.length !== 1 && Jt(t, "requires one argument"), -t.options.a)
|
|
50166
|
-
),
|
|
50178
|
+
), Rde = new Qe(
|
|
50167
50179
|
"abs",
|
|
50168
50180
|
[{ name: "a", type: "number" }],
|
|
50169
50181
|
async (t) => (t.args.length !== 1 && Jt(t, "requires one argument"), Math.abs(t.options.a))
|
|
50170
|
-
),
|
|
50182
|
+
), zde = new Qe(
|
|
50171
50183
|
"*",
|
|
50172
50184
|
"any",
|
|
50173
50185
|
async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => typeof n == "number" ? e * n : (Jt(t, "requires all arguments to be numbers"), e), 1))
|
|
50174
|
-
),
|
|
50186
|
+
), Fde = new Qe(
|
|
50175
50187
|
"/",
|
|
50176
50188
|
"any",
|
|
50177
50189
|
async (t) => {
|
|
@@ -50179,7 +50191,7 @@ const Gfe = new Qe(
|
|
|
50179
50191
|
const e = t.args[0] / t.args[1];
|
|
50180
50192
|
return t.args.slice(2).reduce((n, r) => typeof r == "number" ? n / r : (Jt(t, "requires all arguments to be numbers"), n), e);
|
|
50181
50193
|
}
|
|
50182
|
-
),
|
|
50194
|
+
), Bde = async (t) => {
|
|
50183
50195
|
const { prompt: e, choices: n } = t.staticOptions, r = [];
|
|
50184
50196
|
for (const [, a] of n.entries()) {
|
|
50185
50197
|
const s = await mw(a.prompt);
|
|
@@ -50195,9 +50207,9 @@ const Gfe = new Qe(
|
|
|
50195
50207
|
allowed: u
|
|
50196
50208
|
};
|
|
50197
50209
|
}).filter((a) => a.choice), o = await wD(e, i);
|
|
50198
|
-
return await
|
|
50210
|
+
return await Ude(t, o);
|
|
50199
50211
|
};
|
|
50200
|
-
function
|
|
50212
|
+
function qde(t, e) {
|
|
50201
50213
|
e.branch || t.parserContext.error(
|
|
50202
50214
|
e.line,
|
|
50203
50215
|
`Choice option doesn't have any branch to go to (${e.code} - ${e.line})`
|
|
@@ -50224,7 +50236,7 @@ function Bde(t, e) {
|
|
|
50224
50236
|
skillBranches: n
|
|
50225
50237
|
};
|
|
50226
50238
|
}
|
|
50227
|
-
const
|
|
50239
|
+
const Vde = (t, e) => {
|
|
50228
50240
|
let n = t.currentLine;
|
|
50229
50241
|
mm("choice", []);
|
|
50230
50242
|
const { line: r } = t, i = e.command;
|
|
@@ -50237,19 +50249,19 @@ const qde = (t, e) => {
|
|
|
50237
50249
|
const s = r.branch.slice(1).map((u, l) => (u.branch || t.parserContext.error(
|
|
50238
50250
|
u.line,
|
|
50239
50251
|
`Choice option doesn't have any branch to go to (${u.code})`
|
|
50240
|
-
), u =
|
|
50252
|
+
), u = Wde(t.parserContext, u), qde(t, u)));
|
|
50241
50253
|
return i.staticOptions = {
|
|
50242
50254
|
prompt: t.processCommandsFunction(t.parserContext, [o], r)[0],
|
|
50243
50255
|
choices: s
|
|
50244
50256
|
}, n++, {
|
|
50245
50257
|
newLine: n
|
|
50246
50258
|
};
|
|
50247
|
-
},
|
|
50259
|
+
}, Hde = Qe.FromOptions({
|
|
50248
50260
|
keyword: "choice",
|
|
50249
50261
|
argTypes: [],
|
|
50250
|
-
runner:
|
|
50251
|
-
parser:
|
|
50252
|
-
}),
|
|
50262
|
+
runner: Bde,
|
|
50263
|
+
parser: Vde
|
|
50264
|
+
}), Ude = async (t, e) => {
|
|
50253
50265
|
const n = e, r = En(), { choices: i } = t.staticOptions, o = i[n], a = t.options.choiceResults[n];
|
|
50254
50266
|
let s = a.text, u;
|
|
50255
50267
|
if (a.skillCheck ? (s = null, _L({
|
|
@@ -50276,7 +50288,7 @@ const qde = (t, e) => {
|
|
|
50276
50288
|
return await r.addAndRunBlock(l);
|
|
50277
50289
|
}
|
|
50278
50290
|
};
|
|
50279
|
-
function
|
|
50291
|
+
function Wde(t, e) {
|
|
50280
50292
|
return {
|
|
50281
50293
|
code: `choicePrompt ${e.code}`,
|
|
50282
50294
|
indentation: e.indentation,
|
|
@@ -50285,7 +50297,7 @@ function Ude(t, e) {
|
|
|
50285
50297
|
expression: ["choicePrompt", ...e.expression]
|
|
50286
50298
|
};
|
|
50287
50299
|
}
|
|
50288
|
-
const
|
|
50300
|
+
const Kde = new Qe(
|
|
50289
50301
|
"choicePrompt",
|
|
50290
50302
|
"any",
|
|
50291
50303
|
async (t) => {
|
|
@@ -50345,7 +50357,7 @@ const Wde = new Qe(
|
|
|
50345
50357
|
}
|
|
50346
50358
|
});
|
|
50347
50359
|
zR.onPlayerAnswered = async (t, e) => (typeof e != "string" && Jt(t, "The player's answer should be a string"), e);
|
|
50348
|
-
const
|
|
50360
|
+
const Jde = Qe.FromOptions({
|
|
50349
50361
|
keyword: "text_field_prompt",
|
|
50350
50362
|
argTypes: [{ name: "prompt", type: "string" }],
|
|
50351
50363
|
runner: async (t) => {
|
|
@@ -50357,7 +50369,7 @@ const Kde = Qe.FromOptions({
|
|
|
50357
50369
|
};
|
|
50358
50370
|
Xn().addDialog(e);
|
|
50359
50371
|
}
|
|
50360
|
-
}),
|
|
50372
|
+
}), Gde = new Qe(
|
|
50361
50373
|
"random",
|
|
50362
50374
|
[
|
|
50363
50375
|
{ name: "a", type: "number" },
|
|
@@ -50370,7 +50382,7 @@ const Kde = Qe.FromOptions({
|
|
|
50370
50382
|
"random command needs two numbers as parameters"
|
|
50371
50383
|
), 0) : Math.floor(Math.random() * (n - e + 1)) + e;
|
|
50372
50384
|
}
|
|
50373
|
-
),
|
|
50385
|
+
), Qde = new Qe(
|
|
50374
50386
|
"random_float",
|
|
50375
50387
|
[
|
|
50376
50388
|
{ name: "a", type: "number" },
|
|
@@ -50383,7 +50395,7 @@ const Kde = Qe.FromOptions({
|
|
|
50383
50395
|
"random_float command needs two numbers as parameters"
|
|
50384
50396
|
), 0) : Math.random() * (n - e) + e;
|
|
50385
50397
|
}
|
|
50386
|
-
),
|
|
50398
|
+
), Yde = new Qe(
|
|
50387
50399
|
"random_from_args",
|
|
50388
50400
|
[],
|
|
50389
50401
|
async (t) => {
|
|
@@ -50393,7 +50405,7 @@ const Kde = Qe.FromOptions({
|
|
|
50393
50405
|
"random_from_args command needs at least one argument"
|
|
50394
50406
|
), 0) : e[Math.floor(Math.random() * e.length)];
|
|
50395
50407
|
}
|
|
50396
|
-
),
|
|
50408
|
+
), Xde = new Qe(
|
|
50397
50409
|
"random_from_array",
|
|
50398
50410
|
[{ name: "a", type: "any" }],
|
|
50399
50411
|
async (t) => {
|
|
@@ -50403,18 +50415,18 @@ const Kde = Qe.FromOptions({
|
|
|
50403
50415
|
"random_from_array command needs an array as parameter"
|
|
50404
50416
|
), 0);
|
|
50405
50417
|
}
|
|
50406
|
-
),
|
|
50418
|
+
), Zde = new Qe(
|
|
50407
50419
|
"concat",
|
|
50408
50420
|
"any",
|
|
50409
50421
|
async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => typeof n == "string" ? `${e}${n}` : (Jt(t, "requires all arguments to be strings"), e), ""))
|
|
50410
|
-
),
|
|
50422
|
+
), ehe = new Qe(
|
|
50411
50423
|
"join",
|
|
50412
50424
|
"any",
|
|
50413
50425
|
async (t) => {
|
|
50414
50426
|
const e = t.args[0];
|
|
50415
50427
|
return t.args.length < 3 && Jt(t, "requires at least 3 arguments"), t.args.slice(1).reduce((n, r) => typeof r == "string" ? `${n}${e}${r}` : (Jt(t, "requires all arguments to be strings"), n), "");
|
|
50416
50428
|
}
|
|
50417
|
-
),
|
|
50429
|
+
), the = Qe.FromOptions({
|
|
50418
50430
|
keyword: "min",
|
|
50419
50431
|
argTypes: [
|
|
50420
50432
|
{ name: "min", type: "number" },
|
|
@@ -50424,7 +50436,7 @@ const Kde = Qe.FromOptions({
|
|
|
50424
50436
|
const { min: e, value: n } = t.options;
|
|
50425
50437
|
return n < e ? n : e;
|
|
50426
50438
|
}
|
|
50427
|
-
}),
|
|
50439
|
+
}), nhe = Qe.FromOptions({
|
|
50428
50440
|
keyword: "max",
|
|
50429
50441
|
argTypes: [
|
|
50430
50442
|
{ name: "max", type: "number" },
|
|
@@ -50434,7 +50446,7 @@ const Kde = Qe.FromOptions({
|
|
|
50434
50446
|
const { max: e, value: n } = t.options;
|
|
50435
50447
|
return n > e ? n : e;
|
|
50436
50448
|
}
|
|
50437
|
-
}),
|
|
50449
|
+
}), rhe = Qe.FromOptions({
|
|
50438
50450
|
keyword: "clamp",
|
|
50439
50451
|
argTypes: [
|
|
50440
50452
|
{ name: "min", type: "number" },
|
|
@@ -50445,35 +50457,35 @@ const Kde = Qe.FromOptions({
|
|
|
50445
50457
|
const { min: e, max: n, value: r } = t.options;
|
|
50446
50458
|
return r < e ? e : r > n ? n : r;
|
|
50447
50459
|
}
|
|
50448
|
-
}),
|
|
50460
|
+
}), ihe = Qe.FromOptions({
|
|
50449
50461
|
keyword: "floor",
|
|
50450
50462
|
argTypes: [{ name: "value", type: "number" }],
|
|
50451
50463
|
runner: async (t) => {
|
|
50452
50464
|
const { value: e } = t.options;
|
|
50453
50465
|
return Math.floor(e);
|
|
50454
50466
|
}
|
|
50455
|
-
}),
|
|
50467
|
+
}), ohe = Qe.FromOptions({
|
|
50456
50468
|
keyword: "ceil",
|
|
50457
50469
|
argTypes: [{ name: "value", type: "number" }],
|
|
50458
50470
|
runner: async (t) => {
|
|
50459
50471
|
const { value: e } = t.options;
|
|
50460
50472
|
return Math.ceil(e);
|
|
50461
50473
|
}
|
|
50462
|
-
}),
|
|
50474
|
+
}), ahe = Qe.FromOptions({
|
|
50463
50475
|
keyword: "round",
|
|
50464
50476
|
argTypes: [{ name: "value", type: "number" }],
|
|
50465
50477
|
runner: async (t) => {
|
|
50466
50478
|
const { value: e } = t.options;
|
|
50467
50479
|
return Math.round(e);
|
|
50468
50480
|
}
|
|
50469
|
-
}),
|
|
50481
|
+
}), she = Qe.FromOptions({
|
|
50470
50482
|
keyword: "sqrt",
|
|
50471
50483
|
argTypes: [{ name: "value", type: "number" }],
|
|
50472
50484
|
runner: async (t) => {
|
|
50473
50485
|
const { value: e } = t.options;
|
|
50474
50486
|
return Math.sqrt(e);
|
|
50475
50487
|
}
|
|
50476
|
-
}),
|
|
50488
|
+
}), uhe = Qe.FromOptions({
|
|
50477
50489
|
keyword: "^",
|
|
50478
50490
|
argTypes: [
|
|
50479
50491
|
{ name: "base", type: "number" },
|
|
@@ -50483,7 +50495,7 @@ const Kde = Qe.FromOptions({
|
|
|
50483
50495
|
const { base: e, exponent: n } = t.options;
|
|
50484
50496
|
return Math.pow(e, n);
|
|
50485
50497
|
}
|
|
50486
|
-
}),
|
|
50498
|
+
}), lhe = new Qe(
|
|
50487
50499
|
"create_sprite",
|
|
50488
50500
|
[
|
|
50489
50501
|
{ name: "image", type: "string" },
|
|
@@ -50495,7 +50507,7 @@ const Kde = Qe.FromOptions({
|
|
|
50495
50507
|
const e = Oo(), { x: n, y: r, image: i, parent: o } = t.options, a = { x: n, y: r, image: i };
|
|
50496
50508
|
return typeof o == "object" && (a.parent = o), typeof o == "string" && (a.parent = Oo().getObject(o)), e.createSprite(a);
|
|
50497
50509
|
}
|
|
50498
|
-
),
|
|
50510
|
+
), che = new Qe(
|
|
50499
50511
|
"create_object",
|
|
50500
50512
|
[
|
|
50501
50513
|
{ name: "x", type: "number" },
|
|
@@ -50506,7 +50518,7 @@ const Kde = Qe.FromOptions({
|
|
|
50506
50518
|
const e = Oo(), { x: n, y: r, parent: i } = t.options, o = { x: n, y: r };
|
|
50507
50519
|
return typeof i == "object" && (o.parent = i), typeof i == "string" && (o.parent = Oo().getObject(i)), e.createObject(o);
|
|
50508
50520
|
}
|
|
50509
|
-
),
|
|
50521
|
+
), fhe = new Qe("delete_sprite", [{ name: "sprite", type: "any" }], async (t) => Oo().destroyObject(t.options.sprite)), dhe = Qe.FromOptions({
|
|
50510
50522
|
keyword: "shuffle",
|
|
50511
50523
|
argTypes: [{ name: "array", type: "any" }],
|
|
50512
50524
|
runner: async (t) => {
|
|
@@ -50515,9 +50527,9 @@ const Kde = Qe.FromOptions({
|
|
|
50515
50527
|
Jt(t, "requires an array argument");
|
|
50516
50528
|
return;
|
|
50517
50529
|
}
|
|
50518
|
-
return
|
|
50530
|
+
return xhe(e), e;
|
|
50519
50531
|
}
|
|
50520
|
-
}),
|
|
50532
|
+
}), hhe = Qe.FromOptions({
|
|
50521
50533
|
keyword: "push",
|
|
50522
50534
|
argTypes: [
|
|
50523
50535
|
{ name: "array", type: "any" },
|
|
@@ -50531,7 +50543,7 @@ const Kde = Qe.FromOptions({
|
|
|
50531
50543
|
}
|
|
50532
50544
|
return e.push(n), e;
|
|
50533
50545
|
}
|
|
50534
|
-
}),
|
|
50546
|
+
}), phe = Qe.FromOptions({
|
|
50535
50547
|
keyword: "pop",
|
|
50536
50548
|
argTypes: [{ name: "array", type: "any" }],
|
|
50537
50549
|
runner: async (t) => {
|
|
@@ -50542,7 +50554,7 @@ const Kde = Qe.FromOptions({
|
|
|
50542
50554
|
}
|
|
50543
50555
|
return e.pop();
|
|
50544
50556
|
}
|
|
50545
|
-
}),
|
|
50557
|
+
}), vhe = Qe.FromOptions({
|
|
50546
50558
|
keyword: "shift",
|
|
50547
50559
|
argTypes: [{ name: "array", type: "any" }],
|
|
50548
50560
|
runner: async (t) => {
|
|
@@ -50553,7 +50565,7 @@ const Kde = Qe.FromOptions({
|
|
|
50553
50565
|
}
|
|
50554
50566
|
return e.shift();
|
|
50555
50567
|
}
|
|
50556
|
-
}),
|
|
50568
|
+
}), mhe = Qe.FromOptions({
|
|
50557
50569
|
keyword: "array_join",
|
|
50558
50570
|
argTypes: [
|
|
50559
50571
|
{ name: "array", type: "any" },
|
|
@@ -50571,7 +50583,7 @@ const Kde = Qe.FromOptions({
|
|
|
50571
50583
|
}
|
|
50572
50584
|
return e.join(n), e;
|
|
50573
50585
|
}
|
|
50574
|
-
}),
|
|
50586
|
+
}), ghe = Qe.FromOptions({
|
|
50575
50587
|
keyword: "array_concat",
|
|
50576
50588
|
argTypes: [
|
|
50577
50589
|
{ name: "array", type: "any" },
|
|
@@ -50590,7 +50602,7 @@ const Kde = Qe.FromOptions({
|
|
|
50590
50602
|
}
|
|
50591
50603
|
return e.concat(...n.slice(1));
|
|
50592
50604
|
}
|
|
50593
|
-
}),
|
|
50605
|
+
}), yhe = Qe.FromOptions({
|
|
50594
50606
|
keyword: "includes",
|
|
50595
50607
|
argTypes: [
|
|
50596
50608
|
{ name: "array", type: "any" },
|
|
@@ -50600,14 +50612,14 @@ const Kde = Qe.FromOptions({
|
|
|
50600
50612
|
const { array: e, searchElement: n } = t.options;
|
|
50601
50613
|
return Array.isArray(e) || Jt(t, "requires an array argument"), typeof n > "u" && Jt(t, "requires a search element argument"), e.includes(n);
|
|
50602
50614
|
}
|
|
50603
|
-
}),
|
|
50615
|
+
}), bhe = Qe.FromOptions({
|
|
50604
50616
|
keyword: "reverse",
|
|
50605
50617
|
argTypes: [{ name: "array", type: "any" }],
|
|
50606
50618
|
runner: async (t) => {
|
|
50607
50619
|
const { array: e } = t.options;
|
|
50608
50620
|
return Array.isArray(e) || Jt(t, "requires an array argument"), e.reverse(), e;
|
|
50609
50621
|
}
|
|
50610
|
-
}),
|
|
50622
|
+
}), whe = Qe.FromOptions({
|
|
50611
50623
|
keyword: "slice",
|
|
50612
50624
|
argTypes: [
|
|
50613
50625
|
{ name: "array", type: "any" },
|
|
@@ -50621,7 +50633,7 @@ const Kde = Qe.FromOptions({
|
|
|
50621
50633
|
"end index argument must be a number if present"
|
|
50622
50634
|
), e.slice(n, r);
|
|
50623
50635
|
}
|
|
50624
|
-
}),
|
|
50636
|
+
}), khe = Qe.FromOptions({
|
|
50625
50637
|
keyword: "splice",
|
|
50626
50638
|
argTypes: [
|
|
50627
50639
|
{ name: "array", type: "any" },
|
|
@@ -50635,7 +50647,7 @@ const Kde = Qe.FromOptions({
|
|
|
50635
50647
|
"end index argument must be a number if present"
|
|
50636
50648
|
), e.splice(n, r);
|
|
50637
50649
|
}
|
|
50638
|
-
}),
|
|
50650
|
+
}), _he = Qe.FromOptions({
|
|
50639
50651
|
keyword: "array_find_index",
|
|
50640
50652
|
argTypes: [
|
|
50641
50653
|
{ name: "array", type: "any" },
|
|
@@ -50655,52 +50667,52 @@ const Kde = Qe.FromOptions({
|
|
|
50655
50667
|
return -1;
|
|
50656
50668
|
}
|
|
50657
50669
|
});
|
|
50658
|
-
function
|
|
50670
|
+
function xhe(t) {
|
|
50659
50671
|
for (let e = t.length - 1; e > 0; e--) {
|
|
50660
50672
|
const n = Math.floor(Math.random() * (e + 1));
|
|
50661
50673
|
[t[e], t[n]] = [t[n], t[e]];
|
|
50662
50674
|
}
|
|
50663
50675
|
}
|
|
50664
|
-
const
|
|
50676
|
+
const jhe = Qe.FromOptions({
|
|
50665
50677
|
keyword: "load_data",
|
|
50666
50678
|
argTypes: [{ name: "url", type: "string" }],
|
|
50667
50679
|
runner: async (t) => {
|
|
50668
50680
|
const { url: e } = t.options;
|
|
50669
50681
|
return await vw(MR(e));
|
|
50670
50682
|
}
|
|
50671
|
-
}),
|
|
50683
|
+
}), She = Qe.FromOptions({
|
|
50672
50684
|
keyword: "time_now",
|
|
50673
50685
|
argTypes: [],
|
|
50674
50686
|
runner: async (t) => Date.now()
|
|
50675
|
-
}),
|
|
50687
|
+
}), Che = Qe.FromOptions({
|
|
50676
50688
|
keyword: "total_playtime",
|
|
50677
50689
|
argTypes: [],
|
|
50678
50690
|
runner: async (t) => rn().totalPlayTime
|
|
50679
|
-
}),
|
|
50691
|
+
}), $he = Qe.FromOptions({
|
|
50680
50692
|
keyword: "session_playtime",
|
|
50681
50693
|
argTypes: [],
|
|
50682
50694
|
runner: async (t) => rn().sessionPlayTime
|
|
50683
|
-
}),
|
|
50695
|
+
}), Ohe = Qe.FromOptions({
|
|
50684
50696
|
keyword: "to_days",
|
|
50685
50697
|
argTypes: [{ name: "time", type: "number" }],
|
|
50686
50698
|
runner: async (t) => Math.floor(t.options.time / 864e5)
|
|
50687
|
-
}),
|
|
50699
|
+
}), The = Qe.FromOptions({
|
|
50688
50700
|
keyword: "to_hours",
|
|
50689
50701
|
argTypes: [{ name: "time", type: "number" }],
|
|
50690
50702
|
runner: async (t) => Math.floor(t.options.time / 36e5)
|
|
50691
|
-
}),
|
|
50703
|
+
}), Ahe = Qe.FromOptions({
|
|
50692
50704
|
keyword: "to_minutes",
|
|
50693
50705
|
argTypes: [{ name: "time", type: "number" }],
|
|
50694
50706
|
runner: async (t) => Math.floor(t.options.time / 6e4)
|
|
50695
|
-
}),
|
|
50707
|
+
}), Ehe = Qe.FromOptions({
|
|
50696
50708
|
keyword: "to_seconds",
|
|
50697
50709
|
argTypes: [{ name: "time", type: "number" }],
|
|
50698
50710
|
runner: async (t) => Math.floor(t.options.time / 1e3)
|
|
50699
50711
|
});
|
|
50700
|
-
function
|
|
50701
|
-
t.addCommand(
|
|
50712
|
+
function Mhe(t) {
|
|
50713
|
+
t.addCommand(Hde), t.addCommand(Kde), t.addCommand(jde), t.addCommand(Pfe), t.addCommand(Ife), t.addCommand(Nfe), t.addCommand(xde), t.addCommand(wde), t.addCommand(kde), t.addCommand(_de), t.addCommand(Kfe), t.addCommand(Wfe), t.addCommand(Jfe), t.addCommand(ede), t.addCommand(Xfe), t.addCommand(Zfe), t.addCommand(lhe), t.addCommand(che), t.addCommand(fhe), t.addCommand(bde), t.addCommand(Sde), t.addCommand(Cde), t.addCommand($de), t.addCommand(Ode), t.addCommand(Tde), t.addCommand(Ade), t.addCommand(Ede), t.addCommand(Mde), t.addCommand(Pde), t.addCommand(Ide), t.addCommand(Nde), t.addCommand(Lde), t.addCommand(zde), t.addCommand(Fde), t.addCommand(Dde), t.addCommand(Rde), t.addCommand(Yfe), t.addCommand(Qfe), t.addCommand(ide), t.addCommand(tde), t.addCommand(nde), t.addCommand(Lfe), t.addCommand(Dfe), t.addCommand(Rfe), t.addCommand(zfe), t.addCommand(Ffe), t.addCommand(Bfe), t.addCommand(qfe), t.addCommand(Vfe), t.addCommand(Hfe), t.addCommand(fde), t.addCommand(dde), t.addCommand(hde), t.addCommand(pde), t.addCommand(gde), t.addCommand(yde), t.addCommand(vde), t.addCommand(mde), t.addCommand(ode), t.addCommand(ade), t.addCommand(lde), t.addCommand(cde), t.addCommand(sde), t.addCommand(ude), t.addCommand(jfe), t.addCommand(Sfe), t.addCommand(Cfe), t.addCommand(Tfe), t.addCommand(Mfe), t.addCommand(Afe), t.addCommand(Efe), t.addCommand($fe), t.addCommand(Ofe), t.addCommand(zR), t.addCommand(Jde), t.addCommand(Gde), 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(ihe), t.addCommand(ahe), t.addCommand(ohe), t.addCommand(she), t.addCommand(uhe), t.addCommand(dhe), t.addCommand(hhe), t.addCommand(phe), 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(jhe), t.addCommand(She), t.addCommand(Che), t.addCommand($he), t.addCommand(Ohe), t.addCommand(The), t.addCommand(Ahe), t.addCommand(Ehe);
|
|
50702
50714
|
}
|
|
50703
|
-
const
|
|
50715
|
+
const Phe = Nn({
|
|
50704
50716
|
data() {
|
|
50705
50717
|
return {
|
|
50706
50718
|
muted: !1,
|
|
@@ -50732,18 +50744,18 @@ const Mhe = Nn({
|
|
|
50732
50744
|
}
|
|
50733
50745
|
}
|
|
50734
50746
|
});
|
|
50735
|
-
const
|
|
50747
|
+
const Ihe = { class: "volume-controls" }, Nhe = /* @__PURE__ */ Ie("h3", { class: "subtitle" }, "Volume", -1), Lhe = {
|
|
50736
50748
|
for: "volume",
|
|
50737
50749
|
class: "volume-label"
|
|
50738
|
-
},
|
|
50739
|
-
function
|
|
50740
|
-
return Ee(), Ye("div",
|
|
50741
|
-
|
|
50750
|
+
}, Dhe = ["onUpdate:modelValue", "onChange"];
|
|
50751
|
+
function Rhe(t, e, n, r, i, o) {
|
|
50752
|
+
return Ee(), Ye("div", Ihe, [
|
|
50753
|
+
Nhe,
|
|
50742
50754
|
(Ee(!0), Ye(Zn, null, cr(t.volumes, (a, s) => (Ee(), Ye("div", {
|
|
50743
50755
|
class: "volume-control",
|
|
50744
50756
|
key: a.mode
|
|
50745
50757
|
}, [
|
|
50746
|
-
Ie("label",
|
|
50758
|
+
Ie("label", Lhe, zt(t.modeNames[a.mode]), 1),
|
|
50747
50759
|
mf(Ie("input", {
|
|
50748
50760
|
ref_for: !0,
|
|
50749
50761
|
ref: "slider",
|
|
@@ -50756,15 +50768,15 @@ function Dhe(t, e, n, r, i, o) {
|
|
|
50756
50768
|
step: "0.1",
|
|
50757
50769
|
"onUpdate:modelValue": (u) => t.volumes[s].volume = u,
|
|
50758
50770
|
onChange: (u) => t.changeVolume(a.mode, u)
|
|
50759
|
-
}, null, 40,
|
|
50771
|
+
}, null, 40, Dhe), [
|
|
50760
50772
|
[hv, t.volumes[s].volume]
|
|
50761
50773
|
])
|
|
50762
50774
|
]))), 128))
|
|
50763
50775
|
]);
|
|
50764
50776
|
}
|
|
50765
|
-
const
|
|
50777
|
+
const zhe = /* @__PURE__ */ go(Phe, [["render", Rhe]]), Fhe = Nn({
|
|
50766
50778
|
components: {
|
|
50767
|
-
VolumeControls:
|
|
50779
|
+
VolumeControls: zhe
|
|
50768
50780
|
},
|
|
50769
50781
|
data() {
|
|
50770
50782
|
return {};
|
|
@@ -50790,10 +50802,10 @@ const Rhe = /* @__PURE__ */ go(Mhe, [["render", Dhe]]), zhe = Nn({
|
|
|
50790
50802
|
}
|
|
50791
50803
|
}
|
|
50792
50804
|
});
|
|
50793
|
-
const
|
|
50794
|
-
function
|
|
50805
|
+
const Bhe = { class: "menu-content" };
|
|
50806
|
+
function qhe(t, e, n, r, i, o) {
|
|
50795
50807
|
const a = Ni("VolumeControls");
|
|
50796
|
-
return Ee(), Ye("div",
|
|
50808
|
+
return Ee(), Ye("div", Bhe, [
|
|
50797
50809
|
Ie("h3", null, "Play time: " + zt(t.getPlayTimeString()), 1),
|
|
50798
50810
|
Br(a),
|
|
50799
50811
|
Ie("button", {
|
|
@@ -50806,7 +50818,7 @@ function Bhe(t, e, n, r, i, o) {
|
|
|
50806
50818
|
}, "Exit")
|
|
50807
50819
|
]);
|
|
50808
50820
|
}
|
|
50809
|
-
const
|
|
50821
|
+
const Vhe = /* @__PURE__ */ go(Fhe, [["render", qhe]]), Hhe = { class: "inventory-section-items" }, Uhe = ["onClick"], Whe = { class: "item-title" }, Khe = { class: "item-amount" }, Jhe = /* @__PURE__ */ Nn({
|
|
50810
50822
|
__name: "inventory-section",
|
|
50811
50823
|
props: {
|
|
50812
50824
|
items: null,
|
|
@@ -50827,21 +50839,21 @@ const qhe = /* @__PURE__ */ go(zhe, [["render", Bhe]]), Vhe = { class: "inventor
|
|
|
50827
50839
|
class: vr(["inventory-section", `section-${e.id}`])
|
|
50828
50840
|
}, [
|
|
50829
50841
|
Ie("h3", null, zt(t.title), 1),
|
|
50830
|
-
Ie("div",
|
|
50842
|
+
Ie("div", Hhe, [
|
|
50831
50843
|
(Ee(!0), Ye(Zn, null, cr(t.items, (a) => (Ee(), Ye("button", {
|
|
50832
50844
|
onClick: () => i.$emit("chosen", a.id),
|
|
50833
50845
|
class: vr(["item-display", `item-${a.id}`]),
|
|
50834
50846
|
style: lr(n(a.id)),
|
|
50835
50847
|
key: a.id
|
|
50836
50848
|
}, [
|
|
50837
|
-
Ie("h3",
|
|
50838
|
-
Ie("h3",
|
|
50839
|
-
], 14,
|
|
50849
|
+
Ie("h3", Whe, zt(r(a.id)), 1),
|
|
50850
|
+
Ie("h3", Khe, zt(a.amount), 1)
|
|
50851
|
+
], 14, Uhe))), 128))
|
|
50840
50852
|
])
|
|
50841
50853
|
], 2));
|
|
50842
50854
|
}
|
|
50843
50855
|
});
|
|
50844
|
-
const
|
|
50856
|
+
const Ghe = { class: "flex flex-row item-description-container" }, Qhe = { class: "flex item-left" }, Yhe = { class: "flex item-right" }, Xhe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1), Zhe = /* @__PURE__ */ Nn({
|
|
50845
50857
|
__name: "item-details",
|
|
50846
50858
|
props: {
|
|
50847
50859
|
item: null
|
|
@@ -50852,16 +50864,16 @@ const Jhe = { class: "flex flex-row item-description-container" }, Ghe = { class
|
|
|
50852
50864
|
backgroundImage: `url(${gs(r.value.icon)})`
|
|
50853
50865
|
})), o = ft(() => ti().canUseItem(n.item));
|
|
50854
50866
|
return (a, s) => (Ee(), Ye("div", null, [
|
|
50855
|
-
Ie("div",
|
|
50856
|
-
Ie("div",
|
|
50867
|
+
Ie("div", Ghe, [
|
|
50868
|
+
Ie("div", Qhe, [
|
|
50857
50869
|
Ie("div", {
|
|
50858
50870
|
class: "item-display",
|
|
50859
50871
|
style: lr(bt(i))
|
|
50860
50872
|
}, null, 4)
|
|
50861
50873
|
]),
|
|
50862
|
-
Ie("div",
|
|
50874
|
+
Ie("div", Yhe, [
|
|
50863
50875
|
Ie("h2", null, zt(bt(r).name), 1),
|
|
50864
|
-
|
|
50876
|
+
Xhe,
|
|
50865
50877
|
Ie("h3", null, "Amount: " + zt(t.item.amount), 1),
|
|
50866
50878
|
Ie("p", null, zt(bt(r).description), 1),
|
|
50867
50879
|
Ie("button", {
|
|
@@ -50877,7 +50889,7 @@ const Jhe = { class: "flex flex-row item-description-container" }, Ghe = { class
|
|
|
50877
50889
|
]));
|
|
50878
50890
|
}
|
|
50879
50891
|
});
|
|
50880
|
-
const
|
|
50892
|
+
const epe = Nn({
|
|
50881
50893
|
setup() {
|
|
50882
50894
|
const t = ti(), e = Xn(), n = ft(() => t.items), r = ft(() => e.currentDialog.choices);
|
|
50883
50895
|
return { items: n, currentlyChoosing: r };
|
|
@@ -50939,14 +50951,14 @@ const Zhe = Nn({
|
|
|
50939
50951
|
}, e);
|
|
50940
50952
|
}
|
|
50941
50953
|
},
|
|
50942
|
-
components: { InventorySection:
|
|
50954
|
+
components: { InventorySection: Jhe, ItemDetails: Zhe }
|
|
50943
50955
|
});
|
|
50944
|
-
const
|
|
50945
|
-
|
|
50956
|
+
const tpe = { key: 0 }, npe = { key: 2 }, rpe = /* @__PURE__ */ Ie("h2", null, "The inventory is empty!", -1), ipe = [
|
|
50957
|
+
rpe
|
|
50946
50958
|
];
|
|
50947
|
-
function
|
|
50959
|
+
function ope(t, e, n, r, i, o) {
|
|
50948
50960
|
const a = Ni("InventorySection"), s = Ni("ItemDetails");
|
|
50949
|
-
return !t.chosenItem && Object.keys(t.itemsToDisplay).length > 0 ? (Ee(), Ye("div",
|
|
50961
|
+
return !t.chosenItem && Object.keys(t.itemsToDisplay).length > 0 ? (Ee(), Ye("div", tpe, [
|
|
50950
50962
|
(Ee(!0), Ye(Zn, null, cr(t.sections, (u) => (Ee(), pn(a, {
|
|
50951
50963
|
key: u.id,
|
|
50952
50964
|
items: u.items,
|
|
@@ -50959,12 +50971,12 @@ function ipe(t, e, n, r, i, o) {
|
|
|
50959
50971
|
item: t.items[t.chosenId],
|
|
50960
50972
|
onUse: t.useItem,
|
|
50961
50973
|
onClose: t.closeItem
|
|
50962
|
-
}, null, 8, ["item", "onUse", "onClose"])) : (Ee(), Ye("div",
|
|
50974
|
+
}, null, 8, ["item", "onUse", "onClose"])) : (Ee(), Ye("div", npe, ipe));
|
|
50963
50975
|
}
|
|
50964
|
-
const
|
|
50976
|
+
const ape = /* @__PURE__ */ go(epe, [["render", ope]]), spe = { class: "quest-display" }, upe = { class: "quest-title" }, lpe = { class: "quest-description" }, cpe = {
|
|
50965
50977
|
key: 0,
|
|
50966
50978
|
class: "quest-objectives-container list-disc"
|
|
50967
|
-
},
|
|
50979
|
+
}, fpe = /* @__PURE__ */ Nn({
|
|
50968
50980
|
__name: "QuestDetails",
|
|
50969
50981
|
props: {
|
|
50970
50982
|
quest: null
|
|
@@ -50988,17 +51000,17 @@ const ope = /* @__PURE__ */ go(Zhe, [["render", ipe]]), ape = { class: "quest-di
|
|
|
50988
51000
|
}), o = ft(() => e.quest.ending ? e.quest.ending : n.value.description), a = ft(() => Object.values(e.quest.objectives).filter(
|
|
50989
51001
|
(s) => s.state !== "hidden"
|
|
50990
51002
|
));
|
|
50991
|
-
return (s, u) => (Ee(), Ye("div",
|
|
51003
|
+
return (s, u) => (Ee(), Ye("div", spe, [
|
|
50992
51004
|
Ie("div", {
|
|
50993
51005
|
class: vr([
|
|
50994
51006
|
"quest-header",
|
|
50995
51007
|
t.quest.state === "completed" ? "quest-completed" : "quest-in-progress"
|
|
50996
51008
|
])
|
|
50997
51009
|
}, [
|
|
50998
|
-
Ie("h3",
|
|
51010
|
+
Ie("h3", upe, zt(bt(n).title) + " " + zt(bt(i)), 1)
|
|
50999
51011
|
], 2),
|
|
51000
|
-
Ie("p",
|
|
51001
|
-
t.quest.state !== "completed" ? (Ee(), Ye("ul",
|
|
51012
|
+
Ie("p", lpe, zt(bt(o)), 1),
|
|
51013
|
+
t.quest.state !== "completed" ? (Ee(), Ye("ul", cpe, [
|
|
51002
51014
|
(Ee(!0), Ye(Zn, null, cr(bt(a), (l) => (Ee(), Ye("li", {
|
|
51003
51015
|
class: "quest-objective-display",
|
|
51004
51016
|
key: l.id
|
|
@@ -51014,7 +51026,7 @@ const ope = /* @__PURE__ */ go(Zhe, [["render", ipe]]), ape = { class: "quest-di
|
|
|
51014
51026
|
]));
|
|
51015
51027
|
}
|
|
51016
51028
|
});
|
|
51017
|
-
const
|
|
51029
|
+
const dpe = { class: "quest-list-title" }, hpe = /* @__PURE__ */ Nn({
|
|
51018
51030
|
__name: "QuestDisplay",
|
|
51019
51031
|
props: {
|
|
51020
51032
|
quest: null
|
|
@@ -51027,11 +51039,11 @@ const fpe = { class: "quest-list-title" }, dpe = /* @__PURE__ */ Nn({
|
|
|
51027
51039
|
t.quest.state === "completed" ? "quest-list-completed" : "quest-list-in-progress"
|
|
51028
51040
|
])
|
|
51029
51041
|
}, [
|
|
51030
|
-
Ie("p",
|
|
51042
|
+
Ie("p", dpe, zt(bt(n).title), 1)
|
|
51031
51043
|
], 2));
|
|
51032
51044
|
}
|
|
51033
51045
|
});
|
|
51034
|
-
const
|
|
51046
|
+
const ppe = { key: 0 }, vpe = { key: 0 }, mpe = { key: 1 }, gpe = /* @__PURE__ */ Nn({
|
|
51035
51047
|
__name: "quests-list-section",
|
|
51036
51048
|
props: {
|
|
51037
51049
|
quests: null,
|
|
@@ -51061,29 +51073,29 @@ const hpe = { key: 0 }, ppe = { key: 0 }, vpe = { key: 1 }, mpe = /* @__PURE__ *
|
|
|
51061
51073
|
class: vr([`${t.sectionId}-quests-container`, "quests-section"])
|
|
51062
51074
|
}, [
|
|
51063
51075
|
Ie("h3", null, zt(t.title), 1),
|
|
51064
|
-
t.quests.length > 0 ? (Ee(), Ye("div",
|
|
51076
|
+
t.quests.length > 0 ? (Ee(), Ye("div", ppe, [
|
|
51065
51077
|
(Ee(!0), Ye(Zn, null, cr(bt(i), (s) => (Ee(), Ye("div", {
|
|
51066
51078
|
class: vr([`${t.sectionId}-${s.category.id}-category`, "quests-category"]),
|
|
51067
51079
|
key: s.category.id
|
|
51068
51080
|
}, [
|
|
51069
|
-
bt(r).length > 1 ? (Ee(), Ye("h4",
|
|
51081
|
+
bt(r).length > 1 ? (Ee(), Ye("h4", vpe, zt(s.category.title), 1)) : vn("", !0),
|
|
51070
51082
|
Ie("div", {
|
|
51071
51083
|
class: vr(`${t.sectionId}-${s.category.id}-quests`)
|
|
51072
51084
|
}, [
|
|
51073
|
-
(Ee(!0), Ye(Zn, null, cr(s.quests, (u) => (Ee(), pn(
|
|
51085
|
+
(Ee(!0), Ye(Zn, null, cr(s.quests, (u) => (Ee(), pn(hpe, {
|
|
51074
51086
|
key: u.id,
|
|
51075
51087
|
quest: u,
|
|
51076
51088
|
onClick: (l) => o.$emit("quest-selected", u)
|
|
51077
51089
|
}, null, 8, ["quest", "onClick"]))), 128))
|
|
51078
51090
|
], 2)
|
|
51079
51091
|
], 2))), 128))
|
|
51080
|
-
])) : (Ee(), Ye("div",
|
|
51092
|
+
])) : (Ee(), Ye("div", mpe, [
|
|
51081
51093
|
Ie("p", null, zt(t.fallbackText), 1)
|
|
51082
51094
|
]))
|
|
51083
51095
|
], 2));
|
|
51084
51096
|
}
|
|
51085
51097
|
});
|
|
51086
|
-
const
|
|
51098
|
+
const ype = Nn({
|
|
51087
51099
|
setup() {
|
|
51088
51100
|
const t = Vi(), e = ft(() => t.quests), n = Hn(null);
|
|
51089
51101
|
return { quests: e, selectedQuest: n };
|
|
@@ -51114,15 +51126,15 @@ const gpe = Nn({
|
|
|
51114
51126
|
this.selectedQuest = t;
|
|
51115
51127
|
}
|
|
51116
51128
|
},
|
|
51117
|
-
components: { QuestDetails:
|
|
51129
|
+
components: { QuestDetails: fpe, QuestsListSection: gpe }
|
|
51118
51130
|
});
|
|
51119
|
-
const
|
|
51120
|
-
function
|
|
51131
|
+
const bpe = { class: "quests-list-container" }, wpe = { class: "quest-details" };
|
|
51132
|
+
function kpe(t, e, n, r, i, o) {
|
|
51121
51133
|
const a = Ni("QuestsListSection"), s = Ni("QuestDetails");
|
|
51122
51134
|
return Ee(), Ye("div", {
|
|
51123
51135
|
class: vr(["quests-ui", t.questsUiClass])
|
|
51124
51136
|
}, [
|
|
51125
|
-
Ie("div",
|
|
51137
|
+
Ie("div", bpe, [
|
|
51126
51138
|
Br(a, {
|
|
51127
51139
|
quests: t.activeQuests,
|
|
51128
51140
|
sectionId: "active",
|
|
@@ -51138,7 +51150,7 @@ function wpe(t, e, n, r, i, o) {
|
|
|
51138
51150
|
onQuestSelected: t.clickOnQuest
|
|
51139
51151
|
}, null, 8, ["quests", "onQuestSelected"])
|
|
51140
51152
|
]),
|
|
51141
|
-
Ie("div",
|
|
51153
|
+
Ie("div", wpe, [
|
|
51142
51154
|
t.selectedQuest ? (Ee(), pn(s, {
|
|
51143
51155
|
key: 0,
|
|
51144
51156
|
quest: t.selectedQuest
|
|
@@ -51146,7 +51158,7 @@ function wpe(t, e, n, r, i, o) {
|
|
|
51146
51158
|
])
|
|
51147
51159
|
], 2);
|
|
51148
51160
|
}
|
|
51149
|
-
const
|
|
51161
|
+
const _pe = /* @__PURE__ */ go(ype, [["render", kpe]]), xpe = Nn({
|
|
51150
51162
|
setup() {
|
|
51151
51163
|
const t = Dr();
|
|
51152
51164
|
return { skills: ft(() => t.skills) };
|
|
@@ -51194,22 +51206,22 @@ const kpe = /* @__PURE__ */ go(gpe, [["render", wpe]]), _pe = Nn({
|
|
|
51194
51206
|
}
|
|
51195
51207
|
}
|
|
51196
51208
|
});
|
|
51197
|
-
const
|
|
51209
|
+
const jpe = {
|
|
51198
51210
|
key: 0,
|
|
51199
51211
|
class: "skills-container"
|
|
51200
|
-
},
|
|
51201
|
-
function
|
|
51202
|
-
return t.chosenSkill ? typeof t.chosenSkill == "string" ? (Ee(), Ye("div",
|
|
51203
|
-
Ie("div",
|
|
51204
|
-
Ie("div",
|
|
51212
|
+
}, Spe = ["onClick"], Cpe = { class: "skill-title" }, $pe = { class: "skill-xp-container" }, Ope = { class: "skill-xp-text" }, Tpe = { class: "skill-level" }, Ape = { key: 1 }, Epe = { class: "flex flex-row skill-description-container" }, Mpe = { class: "flex skill-left" }, Ppe = { class: "flex skill-right" }, Ipe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1);
|
|
51213
|
+
function Npe(t, e, n, r, i, o) {
|
|
51214
|
+
return t.chosenSkill ? typeof t.chosenSkill == "string" ? (Ee(), Ye("div", Ape, [
|
|
51215
|
+
Ie("div", Epe, [
|
|
51216
|
+
Ie("div", Mpe, [
|
|
51205
51217
|
Ie("div", {
|
|
51206
51218
|
class: "skill-display",
|
|
51207
51219
|
style: lr(t.getSkillStyle(t.chosenSkill))
|
|
51208
51220
|
}, null, 4)
|
|
51209
51221
|
]),
|
|
51210
|
-
Ie("div",
|
|
51222
|
+
Ie("div", Ppe, [
|
|
51211
51223
|
Ie("h2", null, zt(t.getSkillName(t.chosenSkill)), 1),
|
|
51212
|
-
|
|
51224
|
+
Ipe,
|
|
51213
51225
|
Ie("h3", null, "Level: " + zt(t.skills[t.chosenSkill].level), 1),
|
|
51214
51226
|
Ie("p", null, zt(t.skillConf[t.chosenSkill].description), 1)
|
|
51215
51227
|
])
|
|
@@ -51218,28 +51230,28 @@ function Ipe(t, e, n, r, i, o) {
|
|
|
51218
51230
|
class: "button",
|
|
51219
51231
|
onClick: e[0] || (e[0] = (...a) => t.closeSkill && t.closeSkill(...a))
|
|
51220
51232
|
}, zt("<--"))
|
|
51221
|
-
])) : vn("", !0) : (Ee(), Ye("div",
|
|
51233
|
+
])) : vn("", !0) : (Ee(), Ye("div", jpe, [
|
|
51222
51234
|
(Ee(!0), Ye(Zn, null, cr(t.skillsToDisplay, (a) => (Ee(), Ye("button", {
|
|
51223
51235
|
onClick: () => t.clickSkill(a.id),
|
|
51224
51236
|
class: "skill-display",
|
|
51225
51237
|
style: lr(t.getSkillStyle(a.id)),
|
|
51226
51238
|
key: a.id
|
|
51227
51239
|
}, [
|
|
51228
|
-
Ie("h3",
|
|
51229
|
-
Ie("div",
|
|
51240
|
+
Ie("h3", Cpe, zt(t.getSkillName(a.id)), 1),
|
|
51241
|
+
Ie("div", $pe, [
|
|
51230
51242
|
Ie("div", {
|
|
51231
51243
|
class: "skill-xp-bar",
|
|
51232
51244
|
style: lr(t.xpBarWidth(a.xp))
|
|
51233
51245
|
}, null, 4),
|
|
51234
|
-
Ie("h3",
|
|
51246
|
+
Ie("h3", Ope, zt(a.xp) + " / " + zt(t.xpPerLevel) + " XP", 1)
|
|
51235
51247
|
]),
|
|
51236
|
-
Ie("h3",
|
|
51237
|
-
], 12,
|
|
51248
|
+
Ie("h3", Tpe, zt(a.level), 1)
|
|
51249
|
+
], 12, Spe))), 128))
|
|
51238
51250
|
]));
|
|
51239
51251
|
}
|
|
51240
|
-
const
|
|
51241
|
-
function
|
|
51242
|
-
t.component("MainMenu",
|
|
51252
|
+
const Lpe = /* @__PURE__ */ go(xpe, [["render", Npe]]);
|
|
51253
|
+
function Dpe(t) {
|
|
51254
|
+
t.component("MainMenu", Vhe), t.component("InventoryUi", ape), t.component("QuestsUi", _pe), t.component("SkillsWindow", Lpe), ea().menus = {
|
|
51243
51255
|
system: {
|
|
51244
51256
|
label: "System",
|
|
51245
51257
|
cssClass: "system-menu",
|
|
@@ -51285,7 +51297,7 @@ function Lpe(t) {
|
|
|
51285
51297
|
}
|
|
51286
51298
|
};
|
|
51287
51299
|
}
|
|
51288
|
-
function
|
|
51300
|
+
function Rpe(t, e, n) {
|
|
51289
51301
|
const r = window.narrat.app;
|
|
51290
51302
|
for (const i in e.tabs) {
|
|
51291
51303
|
const o = e.tabs[i].component;
|
|
@@ -51293,20 +51305,20 @@ function Dpe(t, e, n) {
|
|
|
51293
51305
|
}
|
|
51294
51306
|
ea().addMenu(t, e);
|
|
51295
51307
|
}
|
|
51296
|
-
function
|
|
51308
|
+
function zpe(t, e, n) {
|
|
51297
51309
|
window.narrat.app.component(e.component, n), ea().addMenuOption(t, e);
|
|
51298
51310
|
}
|
|
51299
|
-
function
|
|
51311
|
+
function Fpe() {
|
|
51300
51312
|
for (const t of Jn.plugins) {
|
|
51301
51313
|
if (t.customMenuButtons)
|
|
51302
51314
|
for (const e of t.customMenuButtons)
|
|
51303
|
-
|
|
51315
|
+
Rpe(e.config.id, e.config, e.components);
|
|
51304
51316
|
if (t.customMenuTabs)
|
|
51305
51317
|
for (const e of t.customMenuTabs)
|
|
51306
|
-
|
|
51318
|
+
zpe(e.config.id, e.config, e.component);
|
|
51307
51319
|
}
|
|
51308
51320
|
}
|
|
51309
|
-
function
|
|
51321
|
+
function Bpe(t) {
|
|
51310
51322
|
t.directive("visible", {
|
|
51311
51323
|
mounted(e, n) {
|
|
51312
51324
|
n.value ? e.style.visibility = "visible" : e.style.visibility = "hidden";
|
|
@@ -51316,7 +51328,7 @@ function Fpe(t) {
|
|
|
51316
51328
|
}
|
|
51317
51329
|
});
|
|
51318
51330
|
}
|
|
51319
|
-
class
|
|
51331
|
+
class qpe extends gw {
|
|
51320
51332
|
setup() {
|
|
51321
51333
|
const e = () => {
|
|
51322
51334
|
this.emit("preUpdate"), this.emit("update"), this.emit("postUpdate"), requestAnimationFrame(e);
|
|
@@ -51324,7 +51336,7 @@ class Bpe extends gw {
|
|
|
51324
51336
|
e();
|
|
51325
51337
|
}
|
|
51326
51338
|
}
|
|
51327
|
-
const FR = new
|
|
51339
|
+
const FR = new qpe();
|
|
51328
51340
|
var Ol;
|
|
51329
51341
|
((t) => {
|
|
51330
51342
|
function e(p, v) {
|
|
@@ -51413,7 +51425,7 @@ var Ol;
|
|
|
51413
51425
|
}
|
|
51414
51426
|
t.dot = h;
|
|
51415
51427
|
})(Ol || (Ol = {}));
|
|
51416
|
-
class
|
|
51428
|
+
class Vpe {
|
|
51417
51429
|
constructor() {
|
|
51418
51430
|
ii(this, "gameActions", {});
|
|
51419
51431
|
ii(this, "keyboardState", {});
|
|
@@ -51487,8 +51499,8 @@ class qpe {
|
|
|
51487
51499
|
});
|
|
51488
51500
|
}
|
|
51489
51501
|
}
|
|
51490
|
-
const
|
|
51491
|
-
state: () => ({ inputs: new
|
|
51502
|
+
const Hpe = hi("inputs", {
|
|
51503
|
+
state: () => ({ inputs: new Vpe() }),
|
|
51492
51504
|
actions: {
|
|
51493
51505
|
setupInputs() {
|
|
51494
51506
|
this.inputs.startListening();
|
|
@@ -51497,14 +51509,14 @@ const Vpe = hi("inputs", {
|
|
|
51497
51509
|
});
|
|
51498
51510
|
let Ja;
|
|
51499
51511
|
Jn.callHook("onPageLoaded");
|
|
51500
|
-
async function
|
|
51512
|
+
async function Kpe(t) {
|
|
51501
51513
|
FR.setup(), console.log("Starting narrat...");
|
|
51502
|
-
const e = Object.assign(
|
|
51503
|
-
Ja = GR(
|
|
51514
|
+
const e = Object.assign(vie(), t), n = Lee();
|
|
51515
|
+
Ja = GR(_fe, {
|
|
51504
51516
|
options: e
|
|
51505
|
-
}),
|
|
51506
|
-
const r = await
|
|
51507
|
-
UD().setConfig(r),
|
|
51517
|
+
}), Bpe(Ja), Ja.use(n);
|
|
51518
|
+
const r = await zue(e);
|
|
51519
|
+
UD().setConfig(r), Hpe().setupInputs(), Jn.pinia = n, rn();
|
|
51508
51520
|
const i = {
|
|
51509
51521
|
app: Ja,
|
|
51510
51522
|
vm: Jn,
|
|
@@ -51512,21 +51524,21 @@ async function Wpe(t) {
|
|
|
51512
51524
|
En().jumpToLabel(o);
|
|
51513
51525
|
}
|
|
51514
51526
|
};
|
|
51515
|
-
return window.narrat = i,
|
|
51527
|
+
return window.narrat = i, Dpe(Ja), Fpe(), RR().addButtonsFromPlugins(), rn().setOptions(e), Ja.use(j9, {
|
|
51516
51528
|
breakpoints: {
|
|
51517
51529
|
s: 0,
|
|
51518
51530
|
m: 800,
|
|
51519
51531
|
l: 1200
|
|
51520
51532
|
}
|
|
51521
|
-
}),
|
|
51533
|
+
}), Mhe(Jn), UA.setupDebugger(e.debug), console.log(
|
|
51522
51534
|
`%c Narrat game engine v${Kee} - Built at ${Jee.toLocaleString()}`,
|
|
51523
51535
|
"background: #222; color: #bada55"
|
|
51524
51536
|
), Jn.callHook("onNarratSetup"), Ja.mount("#game-holder"), Ja;
|
|
51525
51537
|
}
|
|
51526
|
-
function
|
|
51538
|
+
function Jpe(t, e) {
|
|
51527
51539
|
Ja.component(t, e);
|
|
51528
51540
|
}
|
|
51529
|
-
class
|
|
51541
|
+
class Gpe {
|
|
51530
51542
|
constructor() {
|
|
51531
51543
|
ii(this, "pluginId", "narrat-plugin");
|
|
51532
51544
|
}
|
|
@@ -51547,20 +51559,20 @@ class Jpe {
|
|
|
51547
51559
|
onGameDismounted() {
|
|
51548
51560
|
}
|
|
51549
51561
|
}
|
|
51550
|
-
function
|
|
51562
|
+
function Qpe(t) {
|
|
51551
51563
|
Jn.addPlugin(t);
|
|
51552
51564
|
}
|
|
51553
|
-
function
|
|
51565
|
+
function Ype(t) {
|
|
51554
51566
|
Jn.addCommand(t);
|
|
51555
51567
|
}
|
|
51556
51568
|
export {
|
|
51557
51569
|
Qe as CommandPlugin,
|
|
51558
|
-
|
|
51570
|
+
Kle as InputsListener,
|
|
51559
51571
|
HA as LogManager,
|
|
51560
51572
|
uc as ModalWindow,
|
|
51561
|
-
|
|
51573
|
+
Gpe as NarratPlugin,
|
|
51562
51574
|
Ol as Vec2,
|
|
51563
|
-
|
|
51575
|
+
Ype as addCommand,
|
|
51564
51576
|
die as aspectRatioFit,
|
|
51565
51577
|
es as audioConfig,
|
|
51566
51578
|
OR as buttonsConfig,
|
|
@@ -51578,9 +51590,9 @@ export {
|
|
|
51578
51590
|
qs as getItemConfig,
|
|
51579
51591
|
zy as getObjectiveConfig,
|
|
51580
51592
|
ic as getQuestConfig,
|
|
51581
|
-
|
|
51593
|
+
Bue as getScreenConfig,
|
|
51582
51594
|
ER as getSkillConfig,
|
|
51583
|
-
|
|
51595
|
+
Fue as getSplitConfigUrl,
|
|
51584
51596
|
bL as getWindow,
|
|
51585
51597
|
fa as inputEvents,
|
|
51586
51598
|
nk as itemsConfig,
|
|
@@ -51590,19 +51602,19 @@ export {
|
|
|
51590
51602
|
Xs as processText,
|
|
51591
51603
|
hm as questsConfig,
|
|
51592
51604
|
Uf as randomId,
|
|
51593
|
-
|
|
51594
|
-
|
|
51595
|
-
|
|
51605
|
+
Jpe as registerComponent,
|
|
51606
|
+
Rpe as registerMenuButton,
|
|
51607
|
+
Qpe as registerPlugin,
|
|
51596
51608
|
rk as screensConfig,
|
|
51597
51609
|
ia as skillsConfig,
|
|
51598
|
-
|
|
51610
|
+
Kpe as startApp,
|
|
51599
51611
|
Zo as timeout,
|
|
51600
51612
|
pm as tooltipsConfig,
|
|
51601
51613
|
wi as useAudio,
|
|
51602
51614
|
UD as useConfig,
|
|
51603
51615
|
Xn as useDialogStore,
|
|
51604
51616
|
is as useHud,
|
|
51605
|
-
|
|
51617
|
+
Hpe as useInputs,
|
|
51606
51618
|
ti as useInventory,
|
|
51607
51619
|
rn as useMain,
|
|
51608
51620
|
ea as useMenu,
|