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