@inkweave/core 1.0.0 → 1.1.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/index.cjs +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +390 -382
- package/dist/index.js.map +1 -1
- package/dist/state/contents.d.ts +4 -0
- package/dist/types.d.ts +3 -0
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -10,14 +10,16 @@ const Ei = (o) => {
|
|
|
10
10
|
}), n;
|
|
11
11
|
}, da = _i((o) => ({
|
|
12
12
|
contents: [],
|
|
13
|
+
refreshKey: 0,
|
|
13
14
|
setContents: (n) => o({ contents: n }),
|
|
14
15
|
add: (n) => {
|
|
15
16
|
o((a) => ({
|
|
16
17
|
contents: [...a.contents, ...n]
|
|
17
18
|
}));
|
|
18
19
|
},
|
|
19
|
-
clear: () => o({ contents: [] })
|
|
20
|
-
|
|
20
|
+
clear: () => o({ contents: [] }),
|
|
21
|
+
refresh: () => o((n) => ({ refreshKey: n.refreshKey + 1 }))
|
|
22
|
+
})), re = Ei(da), fa = "\0ink-divider\0", pa = {
|
|
21
23
|
debug: !1,
|
|
22
24
|
linedelay: 0.05
|
|
23
25
|
};
|
|
@@ -83,7 +85,7 @@ z(It, "_functions", /* @__PURE__ */ new Map()), z(It, "excludeKeys", /* @__PURE_
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
});
|
|
86
|
-
let
|
|
88
|
+
let Bn = It;
|
|
87
89
|
const wi = (o, n) => {
|
|
88
90
|
if (!o)
|
|
89
91
|
return;
|
|
@@ -95,10 +97,10 @@ const wi = (o, n) => {
|
|
|
95
97
|
after: o.slice(a + 1).trim()
|
|
96
98
|
};
|
|
97
99
|
};
|
|
98
|
-
|
|
100
|
+
Bn.add("clear", (o, n) => {
|
|
99
101
|
n.clear();
|
|
100
102
|
});
|
|
101
|
-
|
|
103
|
+
Bn.add("restart", (o, n) => {
|
|
102
104
|
n.restart();
|
|
103
105
|
});
|
|
104
106
|
const dt = class dt {
|
|
@@ -246,10 +248,10 @@ class ya {
|
|
|
246
248
|
});
|
|
247
249
|
}
|
|
248
250
|
get contents() {
|
|
249
|
-
return
|
|
251
|
+
return re.getState().contents;
|
|
250
252
|
}
|
|
251
253
|
set contents(n) {
|
|
252
|
-
|
|
254
|
+
re.getState().setContents(n);
|
|
253
255
|
}
|
|
254
256
|
get choices() {
|
|
255
257
|
return Li.getState().choices;
|
|
@@ -271,18 +273,18 @@ class ya {
|
|
|
271
273
|
for (; this.story.canContinue; ) {
|
|
272
274
|
let f = this.story.Continue() || "";
|
|
273
275
|
this.story.currentTags && (this.story.currentTags.forEach((t) => {
|
|
274
|
-
|
|
276
|
+
Bn.process(this, t), (t === "clear" || t === "restart") && (n.length = 0);
|
|
275
277
|
}), f && this.story.currentTags.length && (f = pi.process(
|
|
276
278
|
f,
|
|
277
279
|
this.story.currentTags
|
|
278
280
|
))), f.trim() && n.push(f);
|
|
279
281
|
}
|
|
280
|
-
|
|
282
|
+
re.getState().add(n);
|
|
281
283
|
const { currentChoices: a, variablesState: e } = this.story;
|
|
282
284
|
Li.getState().setChoices(a), Sa.getState().setGlobalVars(e);
|
|
283
285
|
}
|
|
284
286
|
choose(n) {
|
|
285
|
-
this.story.ChooseChoiceIndex(n),
|
|
287
|
+
this.story.ChooseChoiceIndex(n), re.getState().add([fa]), this.continue();
|
|
286
288
|
}
|
|
287
289
|
clear() {
|
|
288
290
|
this.clears.map((n) => {
|
|
@@ -290,7 +292,7 @@ class ya {
|
|
|
290
292
|
});
|
|
291
293
|
}
|
|
292
294
|
restart() {
|
|
293
|
-
this.story.ResetState(), this.clear(), this.continue();
|
|
295
|
+
this.story.ResetState(), this.clear(), re.getState().refresh(), this.continue();
|
|
294
296
|
}
|
|
295
297
|
useEffect() {
|
|
296
298
|
this.effects.map((n) => {
|
|
@@ -313,41 +315,41 @@ function ba(o) {
|
|
|
313
315
|
}
|
|
314
316
|
});
|
|
315
317
|
}
|
|
316
|
-
var hi = {},
|
|
318
|
+
var hi = {}, se = {}, ji;
|
|
317
319
|
function gi() {
|
|
318
|
-
if (ji) return
|
|
319
|
-
ji = 1, Object.defineProperty(
|
|
320
|
+
if (ji) return se;
|
|
321
|
+
ji = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.CompilerOptions = void 0;
|
|
320
322
|
let o = class {
|
|
321
323
|
constructor(a = null, e = [], f = !1, t = null, p = null) {
|
|
322
324
|
this.sourceFilename = a, this.pluginNames = e, this.countAllVisits = f, this.errorHandler = t, this.fileHandler = p;
|
|
323
325
|
}
|
|
324
326
|
};
|
|
325
|
-
return
|
|
327
|
+
return se.CompilerOptions = o, se;
|
|
326
328
|
}
|
|
327
|
-
var
|
|
329
|
+
var ae = {}, Mi;
|
|
328
330
|
function _a() {
|
|
329
|
-
if (Mi) return
|
|
330
|
-
Mi = 1, Object.defineProperty(
|
|
331
|
+
if (Mi) return ae;
|
|
332
|
+
Mi = 1, Object.defineProperty(ae, "__esModule", { value: !0 }), ae.DebugSourceRange = void 0;
|
|
331
333
|
let o = class {
|
|
332
334
|
constructor(a, e, f) {
|
|
333
335
|
this.length = a, this.debugMetadata = e, this.text = f;
|
|
334
336
|
}
|
|
335
337
|
};
|
|
336
|
-
return
|
|
338
|
+
return ae.DebugSourceRange = o, ae;
|
|
337
339
|
}
|
|
338
|
-
var
|
|
340
|
+
var oe = {}, Bi;
|
|
339
341
|
function Pi() {
|
|
340
|
-
if (Bi) return
|
|
341
|
-
Bi = 1, Object.defineProperty(
|
|
342
|
+
if (Bi) return oe;
|
|
343
|
+
Bi = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.ErrorType = void 0;
|
|
342
344
|
var o;
|
|
343
345
|
return (function(n) {
|
|
344
346
|
n[n.Author = 0] = "Author", n[n.Warning = 1] = "Warning", n[n.Error = 2] = "Error";
|
|
345
|
-
})(o || (
|
|
347
|
+
})(o || (oe.ErrorType = o = {})), oe;
|
|
346
348
|
}
|
|
347
|
-
var
|
|
349
|
+
var le = {}, ue = {}, qi;
|
|
348
350
|
function Ea() {
|
|
349
|
-
if (qi) return
|
|
350
|
-
qi = 1, Object.defineProperty(
|
|
351
|
+
if (qi) return ue;
|
|
352
|
+
qi = 1, Object.defineProperty(ue, "__esModule", { value: !0 }), ue.Argument = void 0;
|
|
351
353
|
let o = class {
|
|
352
354
|
constructor(a = null, e = null, f = null) {
|
|
353
355
|
this.identifier = a, this.isByReference = e, this.isDivertTarget = f;
|
|
@@ -356,9 +358,9 @@ function Ea() {
|
|
|
356
358
|
return "Argument";
|
|
357
359
|
}
|
|
358
360
|
};
|
|
359
|
-
return
|
|
361
|
+
return ue.Argument = o, ue;
|
|
360
362
|
}
|
|
361
|
-
var
|
|
363
|
+
var he = {}, ce = {}, at = {}, Gi;
|
|
362
364
|
function Z() {
|
|
363
365
|
if (Gi) return at;
|
|
364
366
|
Gi = 1, Object.defineProperty(at, "__esModule", { value: !0 }), at.filterUndef = at.isEquatable = at.nullIfUndefined = at.asINamedContentOrNull = at.asBooleanOrThrows = at.asNumberOrThrows = at.asOrThrows = at.asOrNull = void 0;
|
|
@@ -406,8 +408,8 @@ function Z() {
|
|
|
406
408
|
}
|
|
407
409
|
var $i;
|
|
408
410
|
function et() {
|
|
409
|
-
if ($i) return
|
|
410
|
-
$i = 1, Object.defineProperty(
|
|
411
|
+
if ($i) return ce;
|
|
412
|
+
$i = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.ParsedObject = void 0;
|
|
411
413
|
const o = Z();
|
|
412
414
|
class n {
|
|
413
415
|
constructor() {
|
|
@@ -498,12 +500,12 @@ function et() {
|
|
|
498
500
|
}
|
|
499
501
|
}
|
|
500
502
|
}
|
|
501
|
-
return
|
|
503
|
+
return ce.ParsedObject = n, ce;
|
|
502
504
|
}
|
|
503
505
|
var Ui;
|
|
504
506
|
function Oi() {
|
|
505
|
-
if (Ui) return
|
|
506
|
-
Ui = 1, Object.defineProperty(
|
|
507
|
+
if (Ui) return he;
|
|
508
|
+
Ui = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.AuthorWarning = void 0;
|
|
507
509
|
const o = et();
|
|
508
510
|
let n = class extends o.ParsedObject {
|
|
509
511
|
constructor(e) {
|
|
@@ -513,9 +515,9 @@ function Oi() {
|
|
|
513
515
|
return "AuthorWarning";
|
|
514
516
|
}
|
|
515
517
|
};
|
|
516
|
-
return
|
|
518
|
+
return he.AuthorWarning = n, he;
|
|
517
519
|
}
|
|
518
|
-
var
|
|
520
|
+
var de = {}, fe = {}, Kt = {}, tt = {}, pe = {}, Ht = {}, Ki;
|
|
519
521
|
function St() {
|
|
520
522
|
if (Ki) return Ht;
|
|
521
523
|
Ki = 1, Object.defineProperty(Ht, "__esModule", { value: !0 }), Ht.Path = void 0;
|
|
@@ -629,10 +631,10 @@ function St() {
|
|
|
629
631
|
n.Component = a;
|
|
630
632
|
})(o || (Ht.Path = o = {})), Ht;
|
|
631
633
|
}
|
|
632
|
-
var
|
|
634
|
+
var me = {}, Hi;
|
|
633
635
|
function ti() {
|
|
634
|
-
if (Hi) return
|
|
635
|
-
Hi = 1, Object.defineProperty(
|
|
636
|
+
if (Hi) return me;
|
|
637
|
+
Hi = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.Debug = void 0;
|
|
636
638
|
var o;
|
|
637
639
|
return (function(n) {
|
|
638
640
|
function a(f, t, p) {
|
|
@@ -644,7 +646,7 @@ function ti() {
|
|
|
644
646
|
throw typeof t < "u" && console.warn(t), console.trace && console.trace(), new Error("");
|
|
645
647
|
}
|
|
646
648
|
n.Assert = e;
|
|
647
|
-
})(o || (
|
|
649
|
+
})(o || (me.Debug = o = {})), me;
|
|
648
650
|
}
|
|
649
651
|
var jt = {}, Ji;
|
|
650
652
|
function ft() {
|
|
@@ -660,8 +662,8 @@ function ft() {
|
|
|
660
662
|
}
|
|
661
663
|
var zi;
|
|
662
664
|
function yt() {
|
|
663
|
-
if (zi) return
|
|
664
|
-
zi = 1, Object.defineProperty(
|
|
665
|
+
if (zi) return pe;
|
|
666
|
+
zi = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.InkObject = void 0;
|
|
665
667
|
const o = St(), n = ot(), a = ti(), e = Z(), f = ft();
|
|
666
668
|
class t {
|
|
667
669
|
constructor() {
|
|
@@ -763,12 +765,12 @@ function yt() {
|
|
|
763
765
|
return r === this;
|
|
764
766
|
}
|
|
765
767
|
}
|
|
766
|
-
return
|
|
768
|
+
return pe.InkObject = t, pe;
|
|
767
769
|
}
|
|
768
|
-
var Mt = {},
|
|
770
|
+
var Mt = {}, ge = {}, Xi;
|
|
769
771
|
function Yt() {
|
|
770
|
-
if (Xi) return
|
|
771
|
-
Xi = 1, Object.defineProperty(
|
|
772
|
+
if (Xi) return ge;
|
|
773
|
+
Xi = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.StringBuilder = void 0;
|
|
772
774
|
let o = class {
|
|
773
775
|
constructor(a) {
|
|
774
776
|
a = typeof a < "u" ? a.toString() : "", this.string = a;
|
|
@@ -793,7 +795,7 @@ function Yt() {
|
|
|
793
795
|
this.string = "";
|
|
794
796
|
}
|
|
795
797
|
};
|
|
796
|
-
return
|
|
798
|
+
return ge.StringBuilder = o, ge;
|
|
797
799
|
}
|
|
798
800
|
var Yi;
|
|
799
801
|
function vt() {
|
|
@@ -1136,19 +1138,19 @@ function vt() {
|
|
|
1136
1138
|
};
|
|
1137
1139
|
return Mt.InkList = e, Mt;
|
|
1138
1140
|
}
|
|
1139
|
-
var
|
|
1141
|
+
var Ce = {}, Zi;
|
|
1140
1142
|
function ei() {
|
|
1141
|
-
if (Zi) return
|
|
1142
|
-
Zi = 1, Object.defineProperty(
|
|
1143
|
+
if (Zi) return Ce;
|
|
1144
|
+
Zi = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.StoryException = void 0;
|
|
1143
1145
|
let o = class extends Error {
|
|
1144
1146
|
constructor(a) {
|
|
1145
1147
|
super(a), this.useEndLineNumber = !1, this.message = a, this.name = "StoryException";
|
|
1146
1148
|
}
|
|
1147
1149
|
};
|
|
1148
|
-
return
|
|
1150
|
+
return Ce.StoryException = o, Ce;
|
|
1149
1151
|
}
|
|
1150
1152
|
var Nt = {}, Qi;
|
|
1151
|
-
function
|
|
1153
|
+
function qn() {
|
|
1152
1154
|
if (Qi) return Nt;
|
|
1153
1155
|
Qi = 1, Object.defineProperty(Nt, "__esModule", { value: !0 }), Nt.tryParseFloat = Nt.tryParseInt = Nt.tryGetValueFromMap = void 0;
|
|
1154
1156
|
function o(e, f, t) {
|
|
@@ -1173,7 +1175,7 @@ var tr;
|
|
|
1173
1175
|
function it() {
|
|
1174
1176
|
if (tr) return tt;
|
|
1175
1177
|
tr = 1, Object.defineProperty(tt, "__esModule", { value: !0 }), tt.ValueType = tt.ListValue = tt.VariablePointerValue = tt.DivertTargetValue = tt.StringValue = tt.FloatValue = tt.IntValue = tt.BoolValue = tt.Value = tt.AbstractValue = void 0;
|
|
1176
|
-
const o = yt(), n = St(), a = vt(), e = ei(), f = Z(), t =
|
|
1178
|
+
const o = yt(), n = St(), a = vt(), e = ei(), f = Z(), t = qn(), p = ft();
|
|
1177
1179
|
class r extends o.InkObject {
|
|
1178
1180
|
static Create(w, F) {
|
|
1179
1181
|
if (F) {
|
|
@@ -1441,10 +1443,10 @@ function it() {
|
|
|
1441
1443
|
I[I.Bool = -1] = "Bool", I[I.Int = 0] = "Int", I[I.Float = 1] = "Float", I[I.List = 2] = "List", I[I.String = 3] = "String", I[I.DivertTarget = 4] = "DivertTarget", I[I.VariablePointer = 5] = "VariablePointer";
|
|
1442
1444
|
})(O || (tt.ValueType = O = {})), tt;
|
|
1443
1445
|
}
|
|
1444
|
-
var
|
|
1446
|
+
var ve = {}, er;
|
|
1445
1447
|
function wa() {
|
|
1446
|
-
if (er) return
|
|
1447
|
-
er = 1, Object.defineProperty(
|
|
1448
|
+
if (er) return ve;
|
|
1449
|
+
er = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.SearchResult = void 0;
|
|
1448
1450
|
const o = ot();
|
|
1449
1451
|
let n = class ks {
|
|
1450
1452
|
constructor() {
|
|
@@ -1461,13 +1463,13 @@ function wa() {
|
|
|
1461
1463
|
return e.obj = this.obj, e.approximate = this.approximate, e;
|
|
1462
1464
|
}
|
|
1463
1465
|
};
|
|
1464
|
-
return
|
|
1466
|
+
return ve.SearchResult = n, ve;
|
|
1465
1467
|
}
|
|
1466
1468
|
var nr;
|
|
1467
1469
|
function ot() {
|
|
1468
1470
|
if (nr) return Kt;
|
|
1469
1471
|
nr = 1, Object.defineProperty(Kt, "__esModule", { value: !0 }), Kt.Container = void 0;
|
|
1470
|
-
const o = it(), n = ft(), a = Yt(), e = yt(), f = wa(), t = St(), p = ti(), r =
|
|
1472
|
+
const o = it(), n = ft(), a = Yt(), e = yt(), f = wa(), t = St(), p = ti(), r = qn(), y = Z();
|
|
1471
1473
|
let s = class gt extends e.InkObject {
|
|
1472
1474
|
constructor() {
|
|
1473
1475
|
super(...arguments), this.name = null, this._content = [], this.namedContent = /* @__PURE__ */ new Map(), this.visitsShouldBeCounted = !1, this.turnIndexShouldBeCounted = !1, this.countingAtStartOnly = !1, this._pathToFirstLeafContent = null;
|
|
@@ -1729,8 +1731,8 @@ function pt() {
|
|
|
1729
1731
|
}
|
|
1730
1732
|
var rr;
|
|
1731
1733
|
function Ot() {
|
|
1732
|
-
if (rr) return
|
|
1733
|
-
rr = 1, Object.defineProperty(
|
|
1734
|
+
if (rr) return fe;
|
|
1735
|
+
rr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.Expression = void 0;
|
|
1734
1736
|
const o = ot(), n = pt(), a = et();
|
|
1735
1737
|
let e = class extends a.ParsedObject {
|
|
1736
1738
|
constructor() {
|
|
@@ -1753,24 +1755,24 @@ function Ot() {
|
|
|
1753
1755
|
return !1;
|
|
1754
1756
|
}
|
|
1755
1757
|
};
|
|
1756
|
-
return
|
|
1758
|
+
return fe.Expression = e, fe;
|
|
1757
1759
|
}
|
|
1758
|
-
var
|
|
1760
|
+
var Se = {}, ye = {}, sr;
|
|
1759
1761
|
function Zt() {
|
|
1760
|
-
if (sr) return
|
|
1761
|
-
sr = 1, Object.defineProperty(
|
|
1762
|
+
if (sr) return ye;
|
|
1763
|
+
sr = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.Void = void 0;
|
|
1762
1764
|
const o = yt();
|
|
1763
1765
|
let n = class extends o.InkObject {
|
|
1764
1766
|
toString() {
|
|
1765
1767
|
return "Void";
|
|
1766
1768
|
}
|
|
1767
1769
|
};
|
|
1768
|
-
return
|
|
1770
|
+
return ye.Void = n, ye;
|
|
1769
1771
|
}
|
|
1770
1772
|
var ar;
|
|
1771
1773
|
function Ft() {
|
|
1772
|
-
if (ar) return
|
|
1773
|
-
ar = 1, Object.defineProperty(
|
|
1774
|
+
if (ar) return Se;
|
|
1775
|
+
ar = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.NativeFunctionCall = void 0;
|
|
1774
1776
|
const o = it(), n = ei(), a = Zt(), e = vt(), f = yt(), t = Z(), p = ft();
|
|
1775
1777
|
let r = class Ct extends f.InkObject {
|
|
1776
1778
|
static CallWithName(s) {
|
|
@@ -1968,12 +1970,12 @@ function Ft() {
|
|
|
1968
1970
|
return 'Native "' + this.name + '"';
|
|
1969
1971
|
}
|
|
1970
1972
|
};
|
|
1971
|
-
return
|
|
1973
|
+
return Se.NativeFunctionCall = r, r.Add = "+", r.Subtract = "-", r.Divide = "/", r.Multiply = "*", r.Mod = "%", r.Negate = "_", r.Equal = "==", r.Greater = ">", r.Less = "<", r.GreaterThanOrEquals = ">=", r.LessThanOrEquals = "<=", r.NotEquals = "!=", r.Not = "!", r.And = "&&", r.Or = "||", r.Min = "MIN", r.Max = "MAX", r.Pow = "POW", r.Floor = "FLOOR", r.Ceiling = "CEILING", r.Int = "INT", r.Float = "FLOAT", r.Has = "?", r.Hasnt = "!?", r.Intersect = "^", r.ListMin = "LIST_MIN", r.ListMax = "LIST_MAX", r.All = "LIST_ALL", r.Count = "LIST_COUNT", r.ValueOfList = "LIST_VALUE", r.Invert = "LIST_INVERT", r._nativeFunctions = null, Se;
|
|
1972
1974
|
}
|
|
1973
|
-
var
|
|
1975
|
+
var be = {}, _e = {}, or;
|
|
1974
1976
|
function xi() {
|
|
1975
|
-
if (or) return
|
|
1976
|
-
or = 1, Object.defineProperty(
|
|
1977
|
+
if (or) return _e;
|
|
1978
|
+
or = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.NumberExpression = void 0;
|
|
1977
1979
|
const o = Ot(), n = it(), a = Z();
|
|
1978
1980
|
let e = class Ds extends o.Expression {
|
|
1979
1981
|
constructor(t, p) {
|
|
@@ -1992,12 +1994,12 @@ function xi() {
|
|
|
1992
1994
|
return p ? p.subtype == this.subtype && p.value == this.value : !1;
|
|
1993
1995
|
}
|
|
1994
1996
|
};
|
|
1995
|
-
return
|
|
1997
|
+
return _e.NumberExpression = e, _e;
|
|
1996
1998
|
}
|
|
1997
1999
|
var lr;
|
|
1998
2000
|
function Vs() {
|
|
1999
|
-
if (lr) return
|
|
2000
|
-
lr = 1, Object.defineProperty(
|
|
2001
|
+
if (lr) return be;
|
|
2002
|
+
lr = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.UnaryExpression = void 0;
|
|
2001
2003
|
const o = Ot(), n = Ft(), a = xi(), e = Z();
|
|
2002
2004
|
let f = class extends o.Expression {
|
|
2003
2005
|
get nativeNameForOp() {
|
|
@@ -2012,7 +2014,7 @@ function Vs() {
|
|
|
2012
2014
|
return "UnaryExpression";
|
|
2013
2015
|
}
|
|
2014
2016
|
};
|
|
2015
|
-
return
|
|
2017
|
+
return be.UnaryExpression = f, f.WithInner = (t, p) => {
|
|
2016
2018
|
const r = (0, e.asOrNull)(t, a.NumberExpression);
|
|
2017
2019
|
if (r) {
|
|
2018
2020
|
if (p === "-") {
|
|
@@ -2031,12 +2033,12 @@ function Vs() {
|
|
|
2031
2033
|
throw new Error("Unexpected operation or number type");
|
|
2032
2034
|
}
|
|
2033
2035
|
return new f(t, p);
|
|
2034
|
-
},
|
|
2036
|
+
}, be;
|
|
2035
2037
|
}
|
|
2036
2038
|
var ur;
|
|
2037
2039
|
function Ws() {
|
|
2038
|
-
if (ur) return
|
|
2039
|
-
ur = 1, Object.defineProperty(
|
|
2040
|
+
if (ur) return de;
|
|
2041
|
+
ur = 1, Object.defineProperty(de, "__esModule", { value: !0 }), de.BinaryExpression = void 0;
|
|
2040
2042
|
const o = Ot(), n = Ft(), a = Vs(), e = Z();
|
|
2041
2043
|
let f = class extends o.Expression {
|
|
2042
2044
|
constructor(p, r, y) {
|
|
@@ -2054,12 +2056,12 @@ function Ws() {
|
|
|
2054
2056
|
}
|
|
2055
2057
|
}
|
|
2056
2058
|
};
|
|
2057
|
-
return
|
|
2059
|
+
return de.BinaryExpression = f, de;
|
|
2058
2060
|
}
|
|
2059
|
-
var
|
|
2061
|
+
var Ee = {}, we = {}, hr;
|
|
2060
2062
|
function ni() {
|
|
2061
|
-
if (hr) return
|
|
2062
|
-
hr = 1, Object.defineProperty(
|
|
2063
|
+
if (hr) return we;
|
|
2064
|
+
hr = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.CharacterSet = void 0;
|
|
2063
2065
|
let o = class {
|
|
2064
2066
|
constructor(a) {
|
|
2065
2067
|
this.set = /* @__PURE__ */ new Set(), this.Add = (e) => this.set.add(e), this.AddRange = (e, f) => {
|
|
@@ -2077,12 +2079,12 @@ function ni() {
|
|
|
2077
2079
|
}, a && this.AddCharacters(a);
|
|
2078
2080
|
}
|
|
2079
2081
|
};
|
|
2080
|
-
return
|
|
2082
|
+
return we.CharacterSet = o, o.FromRange = (n, a) => new o().AddRange(n, a), we;
|
|
2081
2083
|
}
|
|
2082
2084
|
var cr;
|
|
2083
2085
|
function Pa() {
|
|
2084
|
-
if (cr) return
|
|
2085
|
-
cr = 1, Object.defineProperty(
|
|
2086
|
+
if (cr) return Ee;
|
|
2087
|
+
cr = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.CharacterRange = void 0;
|
|
2086
2088
|
const o = ni();
|
|
2087
2089
|
let n = class {
|
|
2088
2090
|
constructor(e, f, t = []) {
|
|
@@ -2104,12 +2106,12 @@ function Pa() {
|
|
|
2104
2106
|
return this._end;
|
|
2105
2107
|
}
|
|
2106
2108
|
};
|
|
2107
|
-
return
|
|
2109
|
+
return Ee.CharacterRange = n, n.Define = (a, e, f = []) => new n(a, e, f), Ee;
|
|
2108
2110
|
}
|
|
2109
|
-
var
|
|
2111
|
+
var Pe = {}, Oe = {}, dr;
|
|
2110
2112
|
function Ti() {
|
|
2111
|
-
if (dr) return
|
|
2112
|
-
dr = 1, Object.defineProperty(
|
|
2113
|
+
if (dr) return Oe;
|
|
2114
|
+
dr = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.ChoicePoint = void 0;
|
|
2113
2115
|
const o = yt(), n = St(), a = ft();
|
|
2114
2116
|
let e = class extends o.InkObject {
|
|
2115
2117
|
constructor(t = !0) {
|
|
@@ -2145,21 +2147,21 @@ function Ti() {
|
|
|
2145
2147
|
return this.pathOnChoice === null ? (0, a.throwNullException)("ChoicePoint.pathOnChoice") : "Choice: -> " + this.pathOnChoice.toString();
|
|
2146
2148
|
}
|
|
2147
2149
|
};
|
|
2148
|
-
return
|
|
2150
|
+
return Oe.ChoicePoint = e, Oe;
|
|
2149
2151
|
}
|
|
2150
|
-
var
|
|
2152
|
+
var xe = {}, Te = {}, fr;
|
|
2151
2153
|
function Qt() {
|
|
2152
|
-
if (fr) return
|
|
2153
|
-
fr = 1, Object.defineProperty(
|
|
2154
|
+
if (fr) return Te;
|
|
2155
|
+
fr = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.PushPopType = void 0;
|
|
2154
2156
|
var o;
|
|
2155
2157
|
return (function(n) {
|
|
2156
2158
|
n[n.Tunnel = 0] = "Tunnel", n[n.Function = 1] = "Function", n[n.FunctionEvaluationFromGame = 2] = "FunctionEvaluationFromGame";
|
|
2157
|
-
})(o || (
|
|
2159
|
+
})(o || (Te.PushPopType = o = {})), Te;
|
|
2158
2160
|
}
|
|
2159
|
-
var
|
|
2161
|
+
var Ne = {}, pr;
|
|
2160
2162
|
function ii() {
|
|
2161
|
-
if (pr) return
|
|
2162
|
-
pr = 1, Object.defineProperty(
|
|
2163
|
+
if (pr) return Ne;
|
|
2164
|
+
pr = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.Pointer = void 0;
|
|
2163
2165
|
const o = St();
|
|
2164
2166
|
let n = class Xn {
|
|
2165
2167
|
constructor() {
|
|
@@ -2189,12 +2191,12 @@ function ii() {
|
|
|
2189
2191
|
return new Xn(null, -1);
|
|
2190
2192
|
}
|
|
2191
2193
|
};
|
|
2192
|
-
return
|
|
2194
|
+
return Ne.Pointer = n, Ne;
|
|
2193
2195
|
}
|
|
2194
2196
|
var mr;
|
|
2195
2197
|
function Rt() {
|
|
2196
|
-
if (mr) return
|
|
2197
|
-
mr = 1, Object.defineProperty(
|
|
2198
|
+
if (mr) return xe;
|
|
2199
|
+
mr = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.Divert = void 0;
|
|
2198
2200
|
const o = St(), n = Qt(), a = Yt(), e = yt(), f = ii(), t = ot(), p = ft();
|
|
2199
2201
|
class r extends e.InkObject {
|
|
2200
2202
|
get targetPath() {
|
|
@@ -2250,21 +2252,21 @@ function Rt() {
|
|
|
2250
2252
|
}
|
|
2251
2253
|
}
|
|
2252
2254
|
}
|
|
2253
|
-
return
|
|
2255
|
+
return xe.Divert = r, xe;
|
|
2254
2256
|
}
|
|
2255
|
-
var
|
|
2257
|
+
var Ie = {}, gr;
|
|
2256
2258
|
function Wt() {
|
|
2257
|
-
if (gr) return
|
|
2258
|
-
gr = 1, Object.defineProperty(
|
|
2259
|
+
if (gr) return Ie;
|
|
2260
|
+
gr = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.SymbolType = void 0;
|
|
2259
2261
|
var o;
|
|
2260
2262
|
return (function(n) {
|
|
2261
2263
|
n[n.Knot = 0] = "Knot", n[n.List = 1] = "List", n[n.ListItem = 2] = "ListItem", n[n.Var = 3] = "Var", n[n.SubFlowAndWeave = 4] = "SubFlowAndWeave", n[n.Arg = 5] = "Arg", n[n.Temp = 6] = "Temp";
|
|
2262
|
-
})(o || (
|
|
2264
|
+
})(o || (Ie.SymbolType = o = {})), Ie;
|
|
2263
2265
|
}
|
|
2264
|
-
var
|
|
2266
|
+
var Ae = {}, Cr;
|
|
2265
2267
|
function Gt() {
|
|
2266
|
-
if (Cr) return
|
|
2267
|
-
Cr = 1, Object.defineProperty(
|
|
2268
|
+
if (Cr) return Ae;
|
|
2269
|
+
Cr = 1, Object.defineProperty(Ae, "__esModule", { value: !0 }), Ae.VariableAssignment = void 0;
|
|
2268
2270
|
const o = yt();
|
|
2269
2271
|
class n extends o.InkObject {
|
|
2270
2272
|
constructor(e, f) {
|
|
@@ -2274,12 +2276,12 @@ function Gt() {
|
|
|
2274
2276
|
return "VarAssign to " + this.variableName;
|
|
2275
2277
|
}
|
|
2276
2278
|
}
|
|
2277
|
-
return
|
|
2279
|
+
return Ae.VariableAssignment = n, Ae;
|
|
2278
2280
|
}
|
|
2279
2281
|
var vr;
|
|
2280
|
-
function
|
|
2281
|
-
if (vr) return
|
|
2282
|
-
vr = 1, Object.defineProperty(
|
|
2282
|
+
function Gn() {
|
|
2283
|
+
if (vr) return Pe;
|
|
2284
|
+
vr = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.Choice = void 0;
|
|
2283
2285
|
const o = Ti(), n = ot(), a = pt(), e = Rt(), f = it(), t = et(), p = Wt(), r = Gt();
|
|
2284
2286
|
class y extends t.ParsedObject {
|
|
2285
2287
|
get runtimeChoice() {
|
|
@@ -2371,12 +2373,12 @@ function qn() {
|
|
|
2371
2373
|
super.ResolveReferences(c), this.identifier && (((i = this.identifier) === null || i === void 0 ? void 0 : i.name) || "").length > 0 && c.CheckForNamingCollisions(this, this.identifier, p.SymbolType.SubFlowAndWeave);
|
|
2372
2374
|
}
|
|
2373
2375
|
}
|
|
2374
|
-
return
|
|
2376
|
+
return Pe.Choice = y, Pe;
|
|
2375
2377
|
}
|
|
2376
|
-
var
|
|
2378
|
+
var Fe = {}, ci = {}, Re = {}, ke = {}, Sr;
|
|
2377
2379
|
function Oa() {
|
|
2378
|
-
if (Sr) return
|
|
2379
|
-
Sr = 1, Object.defineProperty(
|
|
2380
|
+
if (Sr) return ke;
|
|
2381
|
+
Sr = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.StringParserElement = void 0;
|
|
2380
2382
|
let o = class Ci {
|
|
2381
2383
|
constructor() {
|
|
2382
2384
|
this.characterIndex = 0, this.characterInLineIndex = 0, this.lineIndex = 0, this.reportedErrorInScope = !1, this.uniqueId = 0, this.customFlags = 0, this.CopyFrom = (a) => {
|
|
@@ -2386,12 +2388,12 @@ function Oa() {
|
|
|
2386
2388
|
};
|
|
2387
2389
|
}
|
|
2388
2390
|
};
|
|
2389
|
-
return
|
|
2391
|
+
return ke.StringParserElement = o, o._uniqueIdCounter = 1e3, ke;
|
|
2390
2392
|
}
|
|
2391
2393
|
var yr;
|
|
2392
2394
|
function xa() {
|
|
2393
|
-
if (yr) return
|
|
2394
|
-
yr = 1, Object.defineProperty(
|
|
2395
|
+
if (yr) return Re;
|
|
2396
|
+
yr = 1, Object.defineProperty(Re, "__esModule", { value: !0 }), Re.StringParserState = void 0;
|
|
2395
2397
|
const o = Oa();
|
|
2396
2398
|
let n = class {
|
|
2397
2399
|
get currentElement() {
|
|
@@ -2463,7 +2465,7 @@ function xa() {
|
|
|
2463
2465
|
this._numElements = 1;
|
|
2464
2466
|
}
|
|
2465
2467
|
};
|
|
2466
|
-
return
|
|
2468
|
+
return Re.StringParserState = n, Re;
|
|
2467
2469
|
}
|
|
2468
2470
|
var br;
|
|
2469
2471
|
function Ls() {
|
|
@@ -2688,8 +2690,8 @@ function Ls() {
|
|
|
2688
2690
|
}
|
|
2689
2691
|
var _r;
|
|
2690
2692
|
function Ta() {
|
|
2691
|
-
if (_r) return
|
|
2692
|
-
_r = 1, Object.defineProperty(
|
|
2693
|
+
if (_r) return Fe;
|
|
2694
|
+
_r = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.CommentEliminator = void 0;
|
|
2693
2695
|
const o = ni(), n = Ls();
|
|
2694
2696
|
let a = class extends n.StringParser {
|
|
2695
2697
|
constructor() {
|
|
@@ -2713,12 +2715,12 @@ function Ta() {
|
|
|
2713
2715
|
return f;
|
|
2714
2716
|
}
|
|
2715
2717
|
};
|
|
2716
|
-
return
|
|
2718
|
+
return Fe.CommentEliminator = a, Fe;
|
|
2717
2719
|
}
|
|
2718
|
-
var
|
|
2720
|
+
var De = {}, Er;
|
|
2719
2721
|
function Ni() {
|
|
2720
|
-
if (Er) return
|
|
2721
|
-
Er = 1, Object.defineProperty(
|
|
2722
|
+
if (Er) return De;
|
|
2723
|
+
Er = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.Conditional = void 0;
|
|
2722
2724
|
const o = ot(), n = pt(), a = et();
|
|
2723
2725
|
let e = class extends a.ParsedObject {
|
|
2724
2726
|
constructor(t, p) {
|
|
@@ -2745,12 +2747,12 @@ function Ni() {
|
|
|
2745
2747
|
super.ResolveReferences(t);
|
|
2746
2748
|
}
|
|
2747
2749
|
};
|
|
2748
|
-
return
|
|
2750
|
+
return De.Conditional = e, De;
|
|
2749
2751
|
}
|
|
2750
|
-
var
|
|
2752
|
+
var Ve = {}, We = {}, wr;
|
|
2751
2753
|
function $t() {
|
|
2752
|
-
if (wr) return
|
|
2753
|
-
wr = 1, Object.defineProperty(
|
|
2754
|
+
if (wr) return We;
|
|
2755
|
+
wr = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.Text = void 0;
|
|
2754
2756
|
const o = et(), n = it();
|
|
2755
2757
|
let a = class extends o.ParsedObject {
|
|
2756
2758
|
constructor(f) {
|
|
@@ -2760,12 +2762,12 @@ function $t() {
|
|
|
2760
2762
|
return "Text";
|
|
2761
2763
|
}
|
|
2762
2764
|
};
|
|
2763
|
-
return
|
|
2765
|
+
return We.Text = a, We;
|
|
2764
2766
|
}
|
|
2765
|
-
var
|
|
2767
|
+
var Le = {}, je = {}, Pr;
|
|
2766
2768
|
function Ii() {
|
|
2767
|
-
if (Pr) return
|
|
2768
|
-
Pr = 1, Object.defineProperty(
|
|
2769
|
+
if (Pr) return je;
|
|
2770
|
+
Pr = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.ConstantDeclaration = void 0;
|
|
2769
2771
|
const o = et(), n = Wt();
|
|
2770
2772
|
let a = class extends o.ParsedObject {
|
|
2771
2773
|
get constantName() {
|
|
@@ -2787,21 +2789,21 @@ function Ii() {
|
|
|
2787
2789
|
super.ResolveReferences(f), f.CheckForNamingCollisions(this, this.constantIdentifier, n.SymbolType.Var);
|
|
2788
2790
|
}
|
|
2789
2791
|
};
|
|
2790
|
-
return
|
|
2792
|
+
return je.ConstantDeclaration = a, je;
|
|
2791
2793
|
}
|
|
2792
|
-
var
|
|
2793
|
-
function
|
|
2794
|
-
if (Or) return
|
|
2795
|
-
Or = 1, Object.defineProperty(
|
|
2794
|
+
var Me = {}, Be = {}, qe = {}, Ge = {}, Or;
|
|
2795
|
+
function $n() {
|
|
2796
|
+
if (Or) return Ge;
|
|
2797
|
+
Or = 1, Object.defineProperty(Ge, "__esModule", { value: !0 }), Ge.FlowLevel = void 0;
|
|
2796
2798
|
var o;
|
|
2797
2799
|
return (function(n) {
|
|
2798
2800
|
n[n.Story = 0] = "Story", n[n.Knot = 1] = "Knot", n[n.Stitch = 2] = "Stitch", n[n.WeavePoint = 3] = "WeavePoint";
|
|
2799
|
-
})(o || (
|
|
2801
|
+
})(o || (Ge.FlowLevel = o = {})), Ge;
|
|
2800
2802
|
}
|
|
2801
|
-
var
|
|
2803
|
+
var $e = {}, xr;
|
|
2802
2804
|
function ri() {
|
|
2803
|
-
if (xr) return
|
|
2804
|
-
xr = 1, Object.defineProperty(
|
|
2805
|
+
if (xr) return $e;
|
|
2806
|
+
xr = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.Gather = void 0;
|
|
2805
2807
|
const o = ot(), n = et(), a = Wt();
|
|
2806
2808
|
let e = class extends n.ParsedObject {
|
|
2807
2809
|
get name() {
|
|
@@ -2830,13 +2832,13 @@ function ri() {
|
|
|
2830
2832
|
super.ResolveReferences(t), this.identifier && (this.identifier.name || "").length > 0 && t.CheckForNamingCollisions(this, this.identifier, a.SymbolType.SubFlowAndWeave);
|
|
2831
2833
|
}
|
|
2832
2834
|
};
|
|
2833
|
-
return
|
|
2835
|
+
return $e.Gather = e, $e;
|
|
2834
2836
|
}
|
|
2835
|
-
var
|
|
2837
|
+
var Ue = {}, Tr;
|
|
2836
2838
|
function te() {
|
|
2837
|
-
if (Tr) return
|
|
2838
|
-
Tr = 1, Object.defineProperty(
|
|
2839
|
-
const o = Z(), n = kt(), a =
|
|
2839
|
+
if (Tr) return Ue;
|
|
2840
|
+
Tr = 1, Object.defineProperty(Ue, "__esModule", { value: !0 }), Ue.Path = void 0;
|
|
2841
|
+
const o = Z(), n = kt(), a = $n(), e = ee();
|
|
2840
2842
|
let f = class {
|
|
2841
2843
|
get baseTargetLevel() {
|
|
2842
2844
|
return this.baseLevelIsAmbiguous ? a.FlowLevel.Story : this._baseTargetLevel;
|
|
@@ -2896,12 +2898,12 @@ function te() {
|
|
|
2896
2898
|
return "Path";
|
|
2897
2899
|
}
|
|
2898
2900
|
};
|
|
2899
|
-
return
|
|
2901
|
+
return Ue.Path = f, Ue;
|
|
2900
2902
|
}
|
|
2901
|
-
var
|
|
2903
|
+
var Ke = {}, Nr;
|
|
2902
2904
|
function js() {
|
|
2903
|
-
if (Nr) return
|
|
2904
|
-
Nr = 1, Object.defineProperty(
|
|
2905
|
+
if (Nr) return Ke;
|
|
2906
|
+
Nr = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.ReturnType = void 0;
|
|
2905
2907
|
const o = et(), n = ot(), a = pt(), e = Zt();
|
|
2906
2908
|
let f = class extends o.ParsedObject {
|
|
2907
2909
|
constructor(p = null) {
|
|
@@ -2914,12 +2916,12 @@ function js() {
|
|
|
2914
2916
|
return "ReturnType";
|
|
2915
2917
|
}
|
|
2916
2918
|
};
|
|
2917
|
-
return
|
|
2919
|
+
return Ke.ReturnType = f, Ke;
|
|
2918
2920
|
}
|
|
2919
|
-
var
|
|
2921
|
+
var He = {}, Ir;
|
|
2920
2922
|
function si() {
|
|
2921
|
-
if (Ir) return
|
|
2922
|
-
Ir = 1, Object.defineProperty(
|
|
2923
|
+
if (Ir) return He;
|
|
2924
|
+
Ir = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.ClosestFlowBase = void 0;
|
|
2923
2925
|
function o(n) {
|
|
2924
2926
|
let a = n.parent;
|
|
2925
2927
|
for (; a; ) {
|
|
@@ -2929,12 +2931,12 @@ function si() {
|
|
|
2929
2931
|
}
|
|
2930
2932
|
return null;
|
|
2931
2933
|
}
|
|
2932
|
-
return
|
|
2934
|
+
return He.ClosestFlowBase = o, He;
|
|
2933
2935
|
}
|
|
2934
|
-
var
|
|
2936
|
+
var Je = {}, Ar;
|
|
2935
2937
|
function Ai() {
|
|
2936
|
-
if (Ar) return
|
|
2937
|
-
Ar = 1, Object.defineProperty(
|
|
2938
|
+
if (Ar) return Je;
|
|
2939
|
+
Ar = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.Identifier = void 0;
|
|
2938
2940
|
let o = class Ms {
|
|
2939
2941
|
constructor(a) {
|
|
2940
2942
|
this.debugMetadata = null, this.toString = () => this.name || "undefined identifer", this.name = a;
|
|
@@ -2946,13 +2948,13 @@ function Ai() {
|
|
|
2946
2948
|
return new Ms("DONE");
|
|
2947
2949
|
}
|
|
2948
2950
|
};
|
|
2949
|
-
return
|
|
2951
|
+
return Je.Identifier = o, Je;
|
|
2950
2952
|
}
|
|
2951
2953
|
var Fr;
|
|
2952
2954
|
function kt() {
|
|
2953
|
-
if (Fr) return
|
|
2954
|
-
Fr = 1, Object.defineProperty(
|
|
2955
|
-
const o =
|
|
2955
|
+
if (Fr) return qe;
|
|
2956
|
+
Fr = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.FlowBase = void 0;
|
|
2957
|
+
const o = Gn(), n = Jn(), a = Hn(), e = $n(), f = ri(), t = et(), p = te(), r = js(), y = ot(), s = Rt(), c = Gt(), i = Wt(), l = ee(), S = si(), P = Ai(), N = Z();
|
|
2956
2958
|
let O = class vi extends t.ParsedObject {
|
|
2957
2959
|
get hasParameters() {
|
|
2958
2960
|
return this.args !== null && this.args.length > 0;
|
|
@@ -3101,12 +3103,12 @@ function kt() {
|
|
|
3101
3103
|
}
|
|
3102
3104
|
}
|
|
3103
3105
|
};
|
|
3104
|
-
return
|
|
3106
|
+
return qe.FlowBase = O, qe;
|
|
3105
3107
|
}
|
|
3106
|
-
var
|
|
3108
|
+
var ze = {}, Xe = {}, Ye = {}, Rr;
|
|
3107
3109
|
function Fi() {
|
|
3108
|
-
if (Rr) return
|
|
3109
|
-
Rr = 1, Object.defineProperty(
|
|
3110
|
+
if (Rr) return Ye;
|
|
3111
|
+
Rr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.ContentList = void 0;
|
|
3110
3112
|
const o = ot(), n = et(), a = $t(), e = Z();
|
|
3111
3113
|
let f = class extends n.ParsedObject {
|
|
3112
3114
|
get runtimeContainer() {
|
|
@@ -3137,12 +3139,12 @@ function Fi() {
|
|
|
3137
3139
|
return "ContentList";
|
|
3138
3140
|
}
|
|
3139
3141
|
};
|
|
3140
|
-
return
|
|
3142
|
+
return Ye.ContentList = f, Ye;
|
|
3141
3143
|
}
|
|
3142
|
-
var
|
|
3143
|
-
function
|
|
3144
|
-
if (kr) return
|
|
3145
|
-
kr = 1, Object.defineProperty(
|
|
3144
|
+
var Ze = {}, kr;
|
|
3145
|
+
function Un() {
|
|
3146
|
+
if (kr) return Ze;
|
|
3147
|
+
kr = 1, Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.VariableReference = void 0;
|
|
3146
3148
|
const o = yt(), n = St();
|
|
3147
3149
|
let a = class extends o.InkObject {
|
|
3148
3150
|
get containerForCount() {
|
|
@@ -3161,13 +3163,13 @@ function $n() {
|
|
|
3161
3163
|
return this.name != null ? "var(" + this.name + ")" : "read_count(" + this.pathStringForCount + ")";
|
|
3162
3164
|
}
|
|
3163
3165
|
};
|
|
3164
|
-
return
|
|
3166
|
+
return Ze.VariableReference = a, Ze;
|
|
3165
3167
|
}
|
|
3166
3168
|
var Dr;
|
|
3167
|
-
function
|
|
3168
|
-
if (Dr) return
|
|
3169
|
-
Dr = 1, Object.defineProperty(
|
|
3170
|
-
const o = Fi(), n = Ot(), a = kt(), e = te(), f =
|
|
3169
|
+
function Kn() {
|
|
3170
|
+
if (Dr) return Xe;
|
|
3171
|
+
Dr = 1, Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.VariableReference = void 0;
|
|
3172
|
+
const o = Fi(), n = Ot(), a = kt(), e = te(), f = Un(), t = ee(), p = Ai(), r = Z();
|
|
3171
3173
|
class y extends n.Expression {
|
|
3172
3174
|
// - Normal variables have a single item in their "path"
|
|
3173
3175
|
// - Knot/stitch names for read counts are actual dot-separated paths
|
|
@@ -3227,13 +3229,13 @@ function Un() {
|
|
|
3227
3229
|
c.ResolveVariableWithName(this.name, this).found || this.Error(`Unresolved variable: ${this.name}`, this);
|
|
3228
3230
|
}
|
|
3229
3231
|
}
|
|
3230
|
-
return
|
|
3232
|
+
return Xe.VariableReference = y, Xe;
|
|
3231
3233
|
}
|
|
3232
3234
|
var Vr;
|
|
3233
3235
|
function ai() {
|
|
3234
|
-
if (Vr) return
|
|
3235
|
-
Vr = 1, Object.defineProperty(
|
|
3236
|
-
const o = pt(), n =
|
|
3236
|
+
if (Vr) return ze;
|
|
3237
|
+
Vr = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.FunctionCall = void 0;
|
|
3238
|
+
const o = pt(), n = Jn(), a = Hn(), e = Ot(), f = vt(), t = it(), p = Ft(), r = xi(), y = te(), s = it(), c = Kn(), i = Z();
|
|
3237
3239
|
let l = class Si extends e.Expression {
|
|
3238
3240
|
get proxyDivert() {
|
|
3239
3241
|
return this._proxyDivert;
|
|
@@ -3361,12 +3363,12 @@ function ai() {
|
|
|
3361
3363
|
}
|
|
3362
3364
|
}
|
|
3363
3365
|
};
|
|
3364
|
-
return
|
|
3366
|
+
return ze.FunctionCall = l, l.IsBuiltIn = (S) => p.NativeFunctionCall.CallExistsWithName(S) ? !0 : S === "CHOICE_COUNT" || S === "TURNS_SINCE" || S === "TURNS" || S === "RANDOM" || S === "SEED_RANDOM" || S === "LIST_VALUE" || S === "LIST_RANDOM" || S === "READ_COUNT", ze;
|
|
3365
3367
|
}
|
|
3366
|
-
var
|
|
3368
|
+
var Qe = {}, Wr;
|
|
3367
3369
|
function Bs() {
|
|
3368
|
-
if (Wr) return
|
|
3369
|
-
Wr = 1, Object.defineProperty(
|
|
3370
|
+
if (Wr) return Qe;
|
|
3371
|
+
Wr = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.MultipleConditionExpression = void 0;
|
|
3370
3372
|
const o = Ot(), n = Ft();
|
|
3371
3373
|
let a = class extends o.Expression {
|
|
3372
3374
|
get subExpressions() {
|
|
@@ -3383,13 +3385,13 @@ function Bs() {
|
|
|
3383
3385
|
return "MultipleConditionExpression";
|
|
3384
3386
|
}
|
|
3385
3387
|
};
|
|
3386
|
-
return
|
|
3388
|
+
return Qe.MultipleConditionExpression = a, Qe;
|
|
3387
3389
|
}
|
|
3388
3390
|
var Lr;
|
|
3389
|
-
function
|
|
3390
|
-
if (Lr) return
|
|
3391
|
-
Lr = 1, Object.defineProperty(
|
|
3392
|
-
const o = Ws(), n =
|
|
3391
|
+
function Hn() {
|
|
3392
|
+
if (Lr) return Be;
|
|
3393
|
+
Lr = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.DivertTarget = void 0;
|
|
3394
|
+
const o = Ws(), n = Gn(), a = Ni(), e = Hs(), f = it(), t = Ot(), p = kt(), r = ai(), y = Bs(), s = Kn(), c = Z();
|
|
3393
3395
|
let i = class Yn extends t.Expression {
|
|
3394
3396
|
get runtimeDivert() {
|
|
3395
3397
|
if (!this._runtimeDivert)
|
|
@@ -3455,13 +3457,13 @@ function Kn() {
|
|
|
3455
3457
|
}
|
|
3456
3458
|
}
|
|
3457
3459
|
};
|
|
3458
|
-
return
|
|
3460
|
+
return Be.DivertTarget = i, Be;
|
|
3459
3461
|
}
|
|
3460
3462
|
var jr;
|
|
3461
|
-
function
|
|
3462
|
-
if (jr) return
|
|
3463
|
-
jr = 1, Object.defineProperty(
|
|
3464
|
-
const o = ot(), n = pt(), a = Rt(), e =
|
|
3463
|
+
function Jn() {
|
|
3464
|
+
if (jr) return Me;
|
|
3465
|
+
jr = 1, Object.defineProperty(Me, "__esModule", { value: !0 }), Me.Divert = void 0;
|
|
3466
|
+
const o = ot(), n = pt(), a = Rt(), e = Hn(), f = kt(), t = ai(), p = et(), r = te(), y = St(), s = Qt(), c = it(), i = Kn(), l = si(), S = Z();
|
|
3465
3467
|
let P = class extends p.ParsedObject {
|
|
3466
3468
|
get runtimeDivert() {
|
|
3467
3469
|
if (!this._runtimeDivert)
|
|
@@ -3629,43 +3631,43 @@ function Hn() {
|
|
|
3629
3631
|
this.isFunctionCall ? super.Error(`Function call ${O}`, I, w) : super.Error(`Divert ${O}`, I, w);
|
|
3630
3632
|
}
|
|
3631
3633
|
};
|
|
3632
|
-
return
|
|
3634
|
+
return Me.Divert = P, Me;
|
|
3633
3635
|
}
|
|
3634
|
-
var
|
|
3636
|
+
var tn = {}, Mr;
|
|
3635
3637
|
function Na() {
|
|
3636
|
-
if (Mr) return
|
|
3637
|
-
Mr = 1, Object.defineProperty(
|
|
3638
|
+
if (Mr) return tn;
|
|
3639
|
+
Mr = 1, Object.defineProperty(tn, "__esModule", { value: !0 }), tn.GatherPointToResolve = void 0;
|
|
3638
3640
|
let o = class {
|
|
3639
3641
|
constructor(a, e) {
|
|
3640
3642
|
this.divert = a, this.targetRuntimeObj = e;
|
|
3641
3643
|
}
|
|
3642
3644
|
};
|
|
3643
|
-
return
|
|
3645
|
+
return tn.GatherPointToResolve = o, tn;
|
|
3644
3646
|
}
|
|
3645
|
-
var
|
|
3647
|
+
var en = {}, nn = {}, Br;
|
|
3646
3648
|
function Ia() {
|
|
3647
|
-
if (Br) return
|
|
3648
|
-
Br = 1, Object.defineProperty(
|
|
3649
|
+
if (Br) return nn;
|
|
3650
|
+
Br = 1, Object.defineProperty(nn, "__esModule", { value: !0 }), nn.SequenceDivertToResolve = void 0;
|
|
3649
3651
|
let o = class {
|
|
3650
3652
|
constructor(a, e) {
|
|
3651
3653
|
this.divert = a, this.targetContent = e;
|
|
3652
3654
|
}
|
|
3653
3655
|
};
|
|
3654
|
-
return
|
|
3656
|
+
return nn.SequenceDivertToResolve = o, nn;
|
|
3655
3657
|
}
|
|
3656
|
-
var
|
|
3658
|
+
var rn = {}, qr;
|
|
3657
3659
|
function qs() {
|
|
3658
|
-
if (qr) return
|
|
3659
|
-
qr = 1, Object.defineProperty(
|
|
3660
|
+
if (qr) return rn;
|
|
3661
|
+
qr = 1, Object.defineProperty(rn, "__esModule", { value: !0 }), rn.SequenceType = void 0;
|
|
3660
3662
|
var o;
|
|
3661
3663
|
return (function(n) {
|
|
3662
3664
|
n[n.Stopping = 1] = "Stopping", n[n.Cycle = 2] = "Cycle", n[n.Shuffle = 4] = "Shuffle", n[n.Once = 8] = "Once";
|
|
3663
|
-
})(o || (
|
|
3665
|
+
})(o || (rn.SequenceType = o = {})), rn;
|
|
3664
3666
|
}
|
|
3665
3667
|
var Gr;
|
|
3666
3668
|
function Gs() {
|
|
3667
|
-
if (Gr) return
|
|
3668
|
-
Gr = 1, Object.defineProperty(
|
|
3669
|
+
if (Gr) return en;
|
|
3670
|
+
Gr = 1, Object.defineProperty(en, "__esModule", { value: !0 }), en.Sequence = void 0;
|
|
3669
3671
|
const o = ot(), n = pt(), a = Rt(), e = it(), f = Ft(), t = et(), p = Ia(), r = qs(), y = ee();
|
|
3670
3672
|
let s = class extends t.ParsedObject {
|
|
3671
3673
|
constructor(i, l) {
|
|
@@ -3715,13 +3717,13 @@ function Gs() {
|
|
|
3715
3717
|
l.divert.targetPath = l.targetContent.path;
|
|
3716
3718
|
}
|
|
3717
3719
|
};
|
|
3718
|
-
return
|
|
3720
|
+
return en.Sequence = s, en;
|
|
3719
3721
|
}
|
|
3720
|
-
var
|
|
3722
|
+
var sn = {}, $r;
|
|
3721
3723
|
function $s() {
|
|
3722
|
-
if ($r) return
|
|
3723
|
-
$r = 1, Object.defineProperty(
|
|
3724
|
-
const o = ot(), n = pt(), a = Rt(), e = it(), f = et(), t = Zt(), p = Z(), r =
|
|
3724
|
+
if ($r) return sn;
|
|
3725
|
+
$r = 1, Object.defineProperty(sn, "__esModule", { value: !0 }), sn.TunnelOnwards = void 0;
|
|
3726
|
+
const o = ot(), n = pt(), a = Rt(), e = it(), f = et(), t = Zt(), p = Z(), r = Un();
|
|
3725
3727
|
let y = class extends f.ParsedObject {
|
|
3726
3728
|
constructor() {
|
|
3727
3729
|
super(...arguments), this._overrideDivertTarget = null, this._divertAfter = null, this.GenerateRuntimeObject = () => {
|
|
@@ -3766,12 +3768,12 @@ function $s() {
|
|
|
3766
3768
|
super.ResolveReferences(c), this.divertAfter && this.divertAfter.targetContent && (this._overrideDivertTarget.targetPath = this.divertAfter.targetContent.runtimePath);
|
|
3767
3769
|
}
|
|
3768
3770
|
};
|
|
3769
|
-
return
|
|
3771
|
+
return sn.TunnelOnwards = y, sn;
|
|
3770
3772
|
}
|
|
3771
|
-
var
|
|
3773
|
+
var an = {}, on = {}, ln = {}, Ur;
|
|
3772
3774
|
function Us() {
|
|
3773
|
-
if (Ur) return
|
|
3774
|
-
Ur = 1, Object.defineProperty(
|
|
3775
|
+
if (Ur) return ln;
|
|
3776
|
+
Ur = 1, Object.defineProperty(ln, "__esModule", { value: !0 }), ln.ListDefinition = void 0;
|
|
3775
3777
|
const o = vt();
|
|
3776
3778
|
let n = class {
|
|
3777
3779
|
constructor(e, f) {
|
|
@@ -3815,12 +3817,12 @@ function Us() {
|
|
|
3815
3817
|
return t ? { result: t, exists: !0 } : { result: 0, exists: !1 };
|
|
3816
3818
|
}
|
|
3817
3819
|
};
|
|
3818
|
-
return
|
|
3820
|
+
return ln.ListDefinition = n, ln;
|
|
3819
3821
|
}
|
|
3820
3822
|
var Kr;
|
|
3821
3823
|
function Ri() {
|
|
3822
|
-
if (Kr) return
|
|
3823
|
-
Kr = 1, Object.defineProperty(
|
|
3824
|
+
if (Kr) return on;
|
|
3825
|
+
Kr = 1, Object.defineProperty(on, "__esModule", { value: !0 }), on.ListDefinition = void 0;
|
|
3824
3826
|
const o = vt(), n = vt(), a = Us(), e = it(), f = et(), t = Wt();
|
|
3825
3827
|
class p extends f.ParsedObject {
|
|
3826
3828
|
get typeName() {
|
|
@@ -3860,13 +3862,13 @@ function Ri() {
|
|
|
3860
3862
|
super.ResolveReferences(y), y.CheckForNamingCollisions(this, this.identifier, t.SymbolType.List);
|
|
3861
3863
|
}
|
|
3862
3864
|
}
|
|
3863
|
-
return
|
|
3865
|
+
return on.ListDefinition = p, on;
|
|
3864
3866
|
}
|
|
3865
3867
|
var Hr;
|
|
3866
3868
|
function Ks() {
|
|
3867
|
-
if (Hr) return
|
|
3868
|
-
Hr = 1, Object.defineProperty(
|
|
3869
|
-
const o = ot(), n = si(), a = Ri(), e = et(), f = Wt(), t = Gt(), p =
|
|
3869
|
+
if (Hr) return an;
|
|
3870
|
+
Hr = 1, Object.defineProperty(an, "__esModule", { value: !0 }), an.VariableAssignment = void 0;
|
|
3871
|
+
const o = ot(), n = si(), a = Ri(), e = et(), f = Wt(), t = Gt(), p = Kn(), r = Z();
|
|
3870
3872
|
let y = class extends e.ParsedObject {
|
|
3871
3873
|
get variableName() {
|
|
3872
3874
|
return this.variableIdentifier.name;
|
|
@@ -3897,13 +3899,13 @@ function Ks() {
|
|
|
3897
3899
|
}
|
|
3898
3900
|
}
|
|
3899
3901
|
};
|
|
3900
|
-
return
|
|
3902
|
+
return an.VariableAssignment = y, an;
|
|
3901
3903
|
}
|
|
3902
3904
|
var Jr;
|
|
3903
3905
|
function ee() {
|
|
3904
|
-
if (Jr) return
|
|
3905
|
-
Jr = 1, Object.defineProperty(
|
|
3906
|
-
const o = Oi(), n =
|
|
3906
|
+
if (Jr) return Le;
|
|
3907
|
+
Jr = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.Weave = void 0;
|
|
3908
|
+
const o = Oi(), n = Gn(), a = Ni(), e = Ii(), f = ot(), t = Jn(), p = Rt(), r = Hn(), y = kt(), s = ri(), c = Na(), i = et(), l = Gs(), S = $t(), P = $s(), N = Ks(), O = Z();
|
|
3907
3909
|
let I = class qt extends i.ParsedObject {
|
|
3908
3910
|
// Containers can be chained as multiple gather points
|
|
3909
3911
|
// get created as the same indentation level.
|
|
@@ -4172,12 +4174,12 @@ function ee() {
|
|
|
4172
4174
|
this.CheckForWeavePointNamingCollisions();
|
|
4173
4175
|
}
|
|
4174
4176
|
};
|
|
4175
|
-
return
|
|
4177
|
+
return Le.Weave = I, Le;
|
|
4176
4178
|
}
|
|
4177
4179
|
var zr;
|
|
4178
4180
|
function Hs() {
|
|
4179
|
-
if (zr) return
|
|
4180
|
-
zr = 1, Object.defineProperty(
|
|
4181
|
+
if (zr) return Ve;
|
|
4182
|
+
zr = 1, Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.ConditionalSingleBranch = void 0;
|
|
4181
4183
|
const o = ot(), n = pt(), a = Rt(), e = et(), f = Ft(), t = it(), p = $t(), r = ee(), y = Z();
|
|
4182
4184
|
let s = class extends e.ParsedObject {
|
|
4183
4185
|
// When each branch has its own expression like a switch statement,
|
|
@@ -4217,21 +4219,21 @@ function Hs() {
|
|
|
4217
4219
|
this._conditionalDivert.targetPath = this._contentContainer.path, super.ResolveReferences(i);
|
|
4218
4220
|
}
|
|
4219
4221
|
};
|
|
4220
|
-
return
|
|
4222
|
+
return Ve.ConditionalSingleBranch = s, Ve;
|
|
4221
4223
|
}
|
|
4222
|
-
var
|
|
4224
|
+
var un = {}, Xr;
|
|
4223
4225
|
function Aa() {
|
|
4224
|
-
if (Xr) return
|
|
4225
|
-
Xr = 1, Object.defineProperty(
|
|
4226
|
+
if (Xr) return un;
|
|
4227
|
+
Xr = 1, Object.defineProperty(un, "__esModule", { value: !0 }), un.CustomFlags = void 0;
|
|
4226
4228
|
var o;
|
|
4227
4229
|
return (function(n) {
|
|
4228
4230
|
n[n.ParsingString = 1] = "ParsingString", n[n.TagActive = 2] = "TagActive";
|
|
4229
|
-
})(o || (
|
|
4231
|
+
})(o || (un.CustomFlags = o = {})), un;
|
|
4230
4232
|
}
|
|
4231
|
-
var
|
|
4233
|
+
var hn = {}, Yr;
|
|
4232
4234
|
function Fa() {
|
|
4233
|
-
if (Yr) return
|
|
4234
|
-
Yr = 1, Object.defineProperty(
|
|
4235
|
+
if (Yr) return hn;
|
|
4236
|
+
Yr = 1, Object.defineProperty(hn, "__esModule", { value: !0 }), hn.DebugMetadata = void 0;
|
|
4235
4237
|
let o = class Js {
|
|
4236
4238
|
constructor() {
|
|
4237
4239
|
this.startLineNumber = 0, this.endLineNumber = 0, this.startCharacterNumber = 0, this.endCharacterNumber = 0, this.fileName = null, this.sourceName = null;
|
|
@@ -4244,12 +4246,12 @@ function Fa() {
|
|
|
4244
4246
|
return this.fileName !== null ? `line ${this.startLineNumber} of ${this.fileName}"` : "line " + this.startLineNumber;
|
|
4245
4247
|
}
|
|
4246
4248
|
};
|
|
4247
|
-
return
|
|
4249
|
+
return hn.DebugMetadata = o, hn;
|
|
4248
4250
|
}
|
|
4249
|
-
var
|
|
4251
|
+
var cn = {}, Zr;
|
|
4250
4252
|
function Ra() {
|
|
4251
|
-
if (Zr) return
|
|
4252
|
-
Zr = 1, Object.defineProperty(
|
|
4253
|
+
if (Zr) return cn;
|
|
4254
|
+
Zr = 1, Object.defineProperty(cn, "__esModule", { value: !0 }), cn.ExternalDeclaration = void 0;
|
|
4253
4255
|
const o = et();
|
|
4254
4256
|
let n = class extends o.ParsedObject {
|
|
4255
4257
|
get name() {
|
|
@@ -4267,35 +4269,35 @@ function Ra() {
|
|
|
4267
4269
|
return `EXTERNAL ${(e = this.identifier) === null || e === void 0 ? void 0 : e.name}`;
|
|
4268
4270
|
}
|
|
4269
4271
|
};
|
|
4270
|
-
return
|
|
4272
|
+
return cn.ExternalDeclaration = n, cn;
|
|
4271
4273
|
}
|
|
4272
|
-
var
|
|
4274
|
+
var dn = {}, Qr;
|
|
4273
4275
|
function ka() {
|
|
4274
|
-
if (Qr) return
|
|
4275
|
-
Qr = 1, Object.defineProperty(
|
|
4276
|
+
if (Qr) return dn;
|
|
4277
|
+
Qr = 1, Object.defineProperty(dn, "__esModule", { value: !0 }), dn.FlowDecl = void 0;
|
|
4276
4278
|
let o = class {
|
|
4277
4279
|
constructor(a, e, f) {
|
|
4278
4280
|
this.name = a, this.args = e, this.isFunction = f;
|
|
4279
4281
|
}
|
|
4280
4282
|
};
|
|
4281
|
-
return
|
|
4283
|
+
return dn.FlowDecl = o, dn;
|
|
4282
4284
|
}
|
|
4283
|
-
var
|
|
4285
|
+
var fn = {}, pn = {}, ts;
|
|
4284
4286
|
function zs() {
|
|
4285
|
-
if (ts) return
|
|
4286
|
-
ts = 1, Object.defineProperty(
|
|
4287
|
+
if (ts) return pn;
|
|
4288
|
+
ts = 1, Object.defineProperty(pn, "__esModule", { value: !0 }), pn.Wrap = void 0;
|
|
4287
4289
|
const o = et();
|
|
4288
4290
|
let n = class extends o.ParsedObject {
|
|
4289
4291
|
constructor(e) {
|
|
4290
4292
|
super(), this._objToWrap = e, this.GenerateRuntimeObject = () => this._objToWrap;
|
|
4291
4293
|
}
|
|
4292
4294
|
};
|
|
4293
|
-
return
|
|
4295
|
+
return pn.Wrap = n, pn;
|
|
4294
4296
|
}
|
|
4295
4297
|
var es;
|
|
4296
4298
|
function Da() {
|
|
4297
|
-
if (es) return
|
|
4298
|
-
es = 1, Object.defineProperty(
|
|
4299
|
+
if (es) return fn;
|
|
4300
|
+
es = 1, Object.defineProperty(fn, "__esModule", { value: !0 }), fn.Glue = void 0;
|
|
4299
4301
|
const o = zs();
|
|
4300
4302
|
class n extends o.Wrap {
|
|
4301
4303
|
constructor(e) {
|
|
@@ -4305,25 +4307,25 @@ function Da() {
|
|
|
4305
4307
|
return "Glue";
|
|
4306
4308
|
}
|
|
4307
4309
|
}
|
|
4308
|
-
return
|
|
4310
|
+
return fn.Glue = n, fn;
|
|
4309
4311
|
}
|
|
4310
|
-
var
|
|
4312
|
+
var mn = {}, ns;
|
|
4311
4313
|
function ki() {
|
|
4312
|
-
if (ns) return
|
|
4313
|
-
ns = 1, Object.defineProperty(
|
|
4314
|
+
if (ns) return mn;
|
|
4315
|
+
ns = 1, Object.defineProperty(mn, "__esModule", { value: !0 }), mn.Glue = void 0;
|
|
4314
4316
|
const o = yt();
|
|
4315
4317
|
let n = class extends o.InkObject {
|
|
4316
4318
|
toString() {
|
|
4317
4319
|
return "Glue";
|
|
4318
4320
|
}
|
|
4319
4321
|
};
|
|
4320
|
-
return
|
|
4322
|
+
return mn.Glue = n, mn;
|
|
4321
4323
|
}
|
|
4322
|
-
var
|
|
4324
|
+
var gn = {}, is;
|
|
4323
4325
|
function Va() {
|
|
4324
|
-
if (is) return
|
|
4325
|
-
is = 1, Object.defineProperty(
|
|
4326
|
-
const o = Fi(), n = Ot(), a = kt(), e = Ft(), f = it(), t = Gt(), p =
|
|
4326
|
+
if (is) return gn;
|
|
4327
|
+
is = 1, Object.defineProperty(gn, "__esModule", { value: !0 }), gn.IncDecExpression = void 0;
|
|
4328
|
+
const o = Fi(), n = Ot(), a = kt(), e = Ft(), f = it(), t = Gt(), p = Un(), r = ee();
|
|
4327
4329
|
let y = class extends n.Expression {
|
|
4328
4330
|
constructor(c, i, l) {
|
|
4329
4331
|
super(), this.varIdentifier = c, this._runtimeAssignment = null, this.expression = null, this.GenerateIntoContainer = (S) => {
|
|
@@ -4349,12 +4351,12 @@ function Va() {
|
|
|
4349
4351
|
return this.isInc ? "increment" : "decrement";
|
|
4350
4352
|
}
|
|
4351
4353
|
};
|
|
4352
|
-
return
|
|
4354
|
+
return gn.IncDecExpression = y, gn;
|
|
4353
4355
|
}
|
|
4354
|
-
var
|
|
4356
|
+
var Cn = {}, rs;
|
|
4355
4357
|
function Xs() {
|
|
4356
|
-
if (rs) return
|
|
4357
|
-
rs = 1, Object.defineProperty(
|
|
4358
|
+
if (rs) return Cn;
|
|
4359
|
+
rs = 1, Object.defineProperty(Cn, "__esModule", { value: !0 }), Cn.IncludedFile = void 0;
|
|
4358
4360
|
const o = et();
|
|
4359
4361
|
let n = class extends o.ParsedObject {
|
|
4360
4362
|
constructor(e) {
|
|
@@ -4364,24 +4366,24 @@ function Xs() {
|
|
|
4364
4366
|
return "IncludedFile";
|
|
4365
4367
|
}
|
|
4366
4368
|
};
|
|
4367
|
-
return
|
|
4369
|
+
return Cn.IncludedFile = n, Cn;
|
|
4368
4370
|
}
|
|
4369
|
-
var
|
|
4371
|
+
var vn = {}, ss;
|
|
4370
4372
|
function Wa() {
|
|
4371
|
-
if (ss) return
|
|
4372
|
-
ss = 1, Object.defineProperty(
|
|
4373
|
+
if (ss) return vn;
|
|
4374
|
+
ss = 1, Object.defineProperty(vn, "__esModule", { value: !0 }), vn.InfixOperator = void 0;
|
|
4373
4375
|
let o = class {
|
|
4374
4376
|
constructor(a, e, f) {
|
|
4375
4377
|
this.type = a, this.precedence = e, this.requireWhitespace = f, this.toString = () => this.type;
|
|
4376
4378
|
}
|
|
4377
4379
|
};
|
|
4378
|
-
return
|
|
4380
|
+
return vn.InfixOperator = o, vn;
|
|
4379
4381
|
}
|
|
4380
|
-
var
|
|
4382
|
+
var Sn = {}, as;
|
|
4381
4383
|
function Ys() {
|
|
4382
|
-
if (as) return
|
|
4383
|
-
as = 1, Object.defineProperty(
|
|
4384
|
-
const o = kt(), n =
|
|
4384
|
+
if (as) return Sn;
|
|
4385
|
+
as = 1, Object.defineProperty(Sn, "__esModule", { value: !0 }), Sn.Knot = void 0;
|
|
4386
|
+
const o = kt(), n = $n();
|
|
4385
4387
|
let a = class extends o.FlowBase {
|
|
4386
4388
|
get flowLevel() {
|
|
4387
4389
|
return n.FlowLevel.Knot;
|
|
@@ -4404,12 +4406,12 @@ function Ys() {
|
|
|
4404
4406
|
}
|
|
4405
4407
|
}
|
|
4406
4408
|
};
|
|
4407
|
-
return
|
|
4409
|
+
return Sn.Knot = a, Sn;
|
|
4408
4410
|
}
|
|
4409
|
-
var
|
|
4411
|
+
var yn = {}, os;
|
|
4410
4412
|
function La() {
|
|
4411
|
-
if (os) return
|
|
4412
|
-
os = 1, Object.defineProperty(
|
|
4413
|
+
if (os) return yn;
|
|
4414
|
+
os = 1, Object.defineProperty(yn, "__esModule", { value: !0 }), yn.List = void 0;
|
|
4413
4415
|
const o = Ot(), n = vt(), a = vt(), e = it();
|
|
4414
4416
|
let f = class extends o.Expression {
|
|
4415
4417
|
constructor(p) {
|
|
@@ -4441,12 +4443,12 @@ function La() {
|
|
|
4441
4443
|
return "List";
|
|
4442
4444
|
}
|
|
4443
4445
|
};
|
|
4444
|
-
return
|
|
4446
|
+
return yn.List = f, yn;
|
|
4445
4447
|
}
|
|
4446
|
-
var
|
|
4448
|
+
var bn = {}, ls;
|
|
4447
4449
|
function Zs() {
|
|
4448
|
-
if (ls) return
|
|
4449
|
-
ls = 1, Object.defineProperty(
|
|
4450
|
+
if (ls) return bn;
|
|
4451
|
+
ls = 1, Object.defineProperty(bn, "__esModule", { value: !0 }), bn.ListElementDefinition = void 0;
|
|
4450
4452
|
const o = et(), n = Wt();
|
|
4451
4453
|
let a = class extends o.ParsedObject {
|
|
4452
4454
|
get fullName() {
|
|
@@ -4472,22 +4474,22 @@ function Zs() {
|
|
|
4472
4474
|
super.ResolveReferences(f), f.CheckForNamingCollisions(this, this.indentifier, n.SymbolType.ListItem);
|
|
4473
4475
|
}
|
|
4474
4476
|
};
|
|
4475
|
-
return
|
|
4477
|
+
return bn.ListElementDefinition = a, bn;
|
|
4476
4478
|
}
|
|
4477
|
-
var
|
|
4479
|
+
var _n = {}, us;
|
|
4478
4480
|
function Qs() {
|
|
4479
|
-
if (us) return
|
|
4480
|
-
us = 1, Object.defineProperty(
|
|
4481
|
+
if (us) return _n;
|
|
4482
|
+
us = 1, Object.defineProperty(_n, "__esModule", { value: !0 }), _n.StatementLevel = void 0;
|
|
4481
4483
|
var o;
|
|
4482
4484
|
return (function(n) {
|
|
4483
4485
|
n[n.InnerBlock = 0] = "InnerBlock", n[n.Stitch = 1] = "Stitch", n[n.Knot = 2] = "Knot", n[n.Top = 3] = "Top";
|
|
4484
|
-
})(o || (
|
|
4486
|
+
})(o || (_n.StatementLevel = o = {})), _n;
|
|
4485
4487
|
}
|
|
4486
|
-
var
|
|
4488
|
+
var En = {}, hs;
|
|
4487
4489
|
function ta() {
|
|
4488
|
-
if (hs) return
|
|
4489
|
-
hs = 1, Object.defineProperty(
|
|
4490
|
-
const o = kt(), n =
|
|
4490
|
+
if (hs) return En;
|
|
4491
|
+
hs = 1, Object.defineProperty(En, "__esModule", { value: !0 }), En.Stitch = void 0;
|
|
4492
|
+
const o = kt(), n = $n();
|
|
4491
4493
|
let a = class extends o.FlowBase {
|
|
4492
4494
|
get flowLevel() {
|
|
4493
4495
|
return n.FlowLevel.Stitch;
|
|
@@ -4499,12 +4501,12 @@ function ta() {
|
|
|
4499
4501
|
return "Stitch";
|
|
4500
4502
|
}
|
|
4501
4503
|
};
|
|
4502
|
-
return
|
|
4504
|
+
return En.Stitch = a, En;
|
|
4503
4505
|
}
|
|
4504
|
-
var
|
|
4506
|
+
var wn = {}, di = {}, Pn = {}, On = {}, cs;
|
|
4505
4507
|
function Di() {
|
|
4506
|
-
if (cs) return
|
|
4507
|
-
cs = 1, Object.defineProperty(
|
|
4508
|
+
if (cs) return On;
|
|
4509
|
+
cs = 1, Object.defineProperty(On, "__esModule", { value: !0 }), On.Tag = void 0;
|
|
4508
4510
|
const o = yt();
|
|
4509
4511
|
class n extends o.InkObject {
|
|
4510
4512
|
constructor(e) {
|
|
@@ -4514,12 +4516,12 @@ function Di() {
|
|
|
4514
4516
|
return "# " + this.text;
|
|
4515
4517
|
}
|
|
4516
4518
|
}
|
|
4517
|
-
return
|
|
4519
|
+
return On.Tag = n, On;
|
|
4518
4520
|
}
|
|
4519
|
-
var
|
|
4521
|
+
var xn = {}, ds;
|
|
4520
4522
|
function na() {
|
|
4521
|
-
if (ds) return
|
|
4522
|
-
ds = 1, Object.defineProperty(
|
|
4523
|
+
if (ds) return xn;
|
|
4524
|
+
ds = 1, Object.defineProperty(xn, "__esModule", { value: !0 }), xn.Choice = void 0;
|
|
4523
4525
|
const o = St(), n = ft(), a = yt();
|
|
4524
4526
|
let e = class ea extends a.InkObject {
|
|
4525
4527
|
constructor() {
|
|
@@ -4536,12 +4538,12 @@ function na() {
|
|
|
4536
4538
|
return t.text = this.text, t.sourcePath = this.sourcePath, t.index = this.index, t.targetPath = this.targetPath, t.originalThreadIndex = this.originalThreadIndex, t.isInvisibleDefault = this.isInvisibleDefault, this.threadAtGeneration !== null && (t.threadAtGeneration = this.threadAtGeneration.Copy()), t;
|
|
4537
4539
|
}
|
|
4538
4540
|
};
|
|
4539
|
-
return
|
|
4541
|
+
return xn.Choice = e, xn;
|
|
4540
4542
|
}
|
|
4541
|
-
var
|
|
4543
|
+
var Tn = {}, fs;
|
|
4542
4544
|
function ia() {
|
|
4543
|
-
if (fs) return
|
|
4544
|
-
fs = 1, Object.defineProperty(
|
|
4545
|
+
if (fs) return Tn;
|
|
4546
|
+
fs = 1, Object.defineProperty(Tn, "__esModule", { value: !0 }), Tn.ListDefinitionsOrigin = void 0;
|
|
4545
4547
|
const o = vt(), n = it(), a = ft();
|
|
4546
4548
|
let e = class {
|
|
4547
4549
|
constructor(t) {
|
|
@@ -4575,13 +4577,13 @@ function ia() {
|
|
|
4575
4577
|
return typeof p < "u" ? p : null;
|
|
4576
4578
|
}
|
|
4577
4579
|
};
|
|
4578
|
-
return
|
|
4580
|
+
return Tn.ListDefinitionsOrigin = e, Tn;
|
|
4579
4581
|
}
|
|
4580
4582
|
var ps;
|
|
4581
|
-
function
|
|
4582
|
-
if (ps) return
|
|
4583
|
-
ps = 1, Object.defineProperty(
|
|
4584
|
-
const o = ot(), n = it(), a = ki(), e = pt(), f = Qt(), t = Rt(), p = Ti(), r =
|
|
4583
|
+
function zn() {
|
|
4584
|
+
if (ps) return Pn;
|
|
4585
|
+
ps = 1, Object.defineProperty(Pn, "__esModule", { value: !0 }), Pn.JsonSerialisation = void 0;
|
|
4586
|
+
const o = ot(), n = it(), a = ki(), e = pt(), f = Qt(), t = Rt(), p = Ti(), r = Un(), y = Gt(), s = Ft(), c = Zt(), i = Di(), l = St(), S = na(), P = Us(), N = ia(), O = vt(), I = Z(), w = ft();
|
|
4585
4587
|
let F = class Zn {
|
|
4586
4588
|
static JArrayToRuntimeObjList(m, g = !1) {
|
|
4587
4589
|
let v = m.length;
|
|
@@ -4920,21 +4922,21 @@ function Jn() {
|
|
|
4920
4922
|
return new N.ListDefinitionsOrigin(v);
|
|
4921
4923
|
}
|
|
4922
4924
|
};
|
|
4923
|
-
return
|
|
4925
|
+
return Pn.JsonSerialisation = F, F._controlCommandNames = (() => {
|
|
4924
4926
|
let k = [];
|
|
4925
4927
|
k[e.ControlCommand.CommandType.EvalStart] = "ev", k[e.ControlCommand.CommandType.EvalOutput] = "out", k[e.ControlCommand.CommandType.EvalEnd] = "/ev", k[e.ControlCommand.CommandType.Duplicate] = "du", k[e.ControlCommand.CommandType.PopEvaluatedValue] = "pop", k[e.ControlCommand.CommandType.PopFunction] = "~ret", k[e.ControlCommand.CommandType.PopTunnel] = "->->", k[e.ControlCommand.CommandType.BeginString] = "str", k[e.ControlCommand.CommandType.EndString] = "/str", k[e.ControlCommand.CommandType.NoOp] = "nop", k[e.ControlCommand.CommandType.ChoiceCount] = "choiceCnt", k[e.ControlCommand.CommandType.Turns] = "turn", k[e.ControlCommand.CommandType.TurnsSince] = "turns", k[e.ControlCommand.CommandType.ReadCount] = "readc", k[e.ControlCommand.CommandType.Random] = "rnd", k[e.ControlCommand.CommandType.SeedRandom] = "srnd", k[e.ControlCommand.CommandType.VisitIndex] = "visit", k[e.ControlCommand.CommandType.SequenceShuffleIndex] = "seq", k[e.ControlCommand.CommandType.StartThread] = "thread", k[e.ControlCommand.CommandType.Done] = "done", k[e.ControlCommand.CommandType.End] = "end", k[e.ControlCommand.CommandType.ListFromInt] = "listInt", k[e.ControlCommand.CommandType.ListRange] = "range", k[e.ControlCommand.CommandType.ListRandom] = "lrnd", k[e.ControlCommand.CommandType.BeginTag] = "#", k[e.ControlCommand.CommandType.EndTag] = "/#";
|
|
4926
4928
|
for (let m = 0; m < e.ControlCommand.CommandType.TOTAL_VALUES; ++m)
|
|
4927
4929
|
if (k[m] == null)
|
|
4928
4930
|
throw new Error("Control command not accounted for in serialisation");
|
|
4929
4931
|
return k;
|
|
4930
|
-
})(),
|
|
4932
|
+
})(), Pn;
|
|
4931
4933
|
}
|
|
4932
|
-
var
|
|
4934
|
+
var Nn = {}, zt = {}, ms;
|
|
4933
4935
|
function ra() {
|
|
4934
4936
|
if (ms) return zt;
|
|
4935
4937
|
ms = 1, Object.defineProperty(zt, "__esModule", { value: !0 }), zt.CallStack = void 0;
|
|
4936
|
-
const o = Qt(), n = St(), a = oi(), e =
|
|
4937
|
-
let c = class
|
|
4938
|
+
const o = Qt(), n = St(), a = oi(), e = zn(), f = it(), t = Yt(), p = ii(), r = ti(), y = qn(), s = ft();
|
|
4939
|
+
let c = class Mn {
|
|
4938
4940
|
get elements() {
|
|
4939
4941
|
return this.callStack;
|
|
4940
4942
|
}
|
|
@@ -4970,13 +4972,13 @@ function ra() {
|
|
|
4970
4972
|
}
|
|
4971
4973
|
}
|
|
4972
4974
|
Reset() {
|
|
4973
|
-
this._threads = [], this._threads.push(new
|
|
4975
|
+
this._threads = [], this._threads.push(new Mn.Thread()), this._threads[0].callstack.push(new Mn.Element(o.PushPopType.Tunnel, this._startOfRoot));
|
|
4974
4976
|
}
|
|
4975
4977
|
SetJsonToken(l, S) {
|
|
4976
4978
|
this._threads.length = 0;
|
|
4977
4979
|
let P = l.threads;
|
|
4978
4980
|
for (let N of P) {
|
|
4979
|
-
let O = N, I = new
|
|
4981
|
+
let O = N, I = new Mn.Thread(O, S);
|
|
4980
4982
|
this._threads.push(I);
|
|
4981
4983
|
}
|
|
4982
4984
|
this._threadCounter = parseInt(l.threadCounter), this._startOfRoot = p.Pointer.StartOf(S.rootContentContainer);
|
|
@@ -5010,7 +5012,7 @@ function ra() {
|
|
|
5010
5012
|
return this.currentElement.type == o.PushPopType.FunctionEvaluationFromGame;
|
|
5011
5013
|
}
|
|
5012
5014
|
Push(l, S = 0, P = 0) {
|
|
5013
|
-
let N = new
|
|
5015
|
+
let N = new Mn.Element(l, this.currentElement.currentPointer, !1);
|
|
5014
5016
|
N.evaluationStackHeightWhenPushed = S, N.functionStartInOutputStream = P, this.callStack.push(N);
|
|
5015
5017
|
}
|
|
5016
5018
|
CanPop(l = null) {
|
|
@@ -5133,11 +5135,11 @@ function ra() {
|
|
|
5133
5135
|
i.Thread = S;
|
|
5134
5136
|
})(c || (zt.CallStack = c = {})), zt;
|
|
5135
5137
|
}
|
|
5136
|
-
var
|
|
5138
|
+
var In = {}, gs;
|
|
5137
5139
|
function ja() {
|
|
5138
|
-
if (gs) return
|
|
5139
|
-
gs = 1, Object.defineProperty(
|
|
5140
|
-
const o = it(), n = ei(), a =
|
|
5140
|
+
if (gs) return In;
|
|
5141
|
+
gs = 1, Object.defineProperty(In, "__esModule", { value: !0 }), In.VariablesState = void 0;
|
|
5142
|
+
const o = it(), n = ei(), a = zn(), e = Z(), f = qn(), t = ft();
|
|
5141
5143
|
function p() {
|
|
5142
5144
|
return class {
|
|
5143
5145
|
};
|
|
@@ -5357,12 +5359,12 @@ function ja() {
|
|
|
5357
5359
|
this.variableChangedEventCallbacks.push(s);
|
|
5358
5360
|
}
|
|
5359
5361
|
};
|
|
5360
|
-
return
|
|
5362
|
+
return In.VariablesState = r, r.dontSaveDefaultValues = !0, In;
|
|
5361
5363
|
}
|
|
5362
|
-
var
|
|
5364
|
+
var An = {}, Cs;
|
|
5363
5365
|
function aa() {
|
|
5364
|
-
if (Cs) return
|
|
5365
|
-
Cs = 1, Object.defineProperty(
|
|
5366
|
+
if (Cs) return An;
|
|
5367
|
+
Cs = 1, Object.defineProperty(An, "__esModule", { value: !0 }), An.PRNG = void 0;
|
|
5366
5368
|
let o = class {
|
|
5367
5369
|
constructor(a) {
|
|
5368
5370
|
this.seed = a % 2147483647, this.seed <= 0 && (this.seed += 2147483646);
|
|
@@ -5374,12 +5376,12 @@ function aa() {
|
|
|
5374
5376
|
return (this.next() - 1) / 2147483646;
|
|
5375
5377
|
}
|
|
5376
5378
|
};
|
|
5377
|
-
return
|
|
5379
|
+
return An.PRNG = o, An;
|
|
5378
5380
|
}
|
|
5379
|
-
var
|
|
5381
|
+
var Fn = {}, vs;
|
|
5380
5382
|
function Ma() {
|
|
5381
|
-
if (vs) return
|
|
5382
|
-
vs = 1, Object.defineProperty(
|
|
5383
|
+
if (vs) return Fn;
|
|
5384
|
+
vs = 1, Object.defineProperty(Fn, "__esModule", { value: !0 }), Fn.StatePatch = void 0;
|
|
5383
5385
|
let o = class {
|
|
5384
5386
|
get globals() {
|
|
5385
5387
|
return this._globals;
|
|
@@ -5422,7 +5424,7 @@ function Ma() {
|
|
|
5422
5424
|
return this._turnIndices.has(a) ? { result: this._turnIndices.get(a), exists: !0 } : { result: e, exists: !1 };
|
|
5423
5425
|
}
|
|
5424
5426
|
};
|
|
5425
|
-
return
|
|
5427
|
+
return Fn.StatePatch = o, Fn;
|
|
5426
5428
|
}
|
|
5427
5429
|
var Xt = {}, Ss;
|
|
5428
5430
|
function oa() {
|
|
@@ -5623,11 +5625,11 @@ function oa() {
|
|
|
5623
5625
|
})(e = n.Writer || (n.Writer = {}));
|
|
5624
5626
|
})(o || (Xt.SimpleJson = o = {})), Xt;
|
|
5625
5627
|
}
|
|
5626
|
-
var
|
|
5628
|
+
var Rn = {}, ys;
|
|
5627
5629
|
function Ba() {
|
|
5628
|
-
if (ys) return
|
|
5629
|
-
ys = 1, Object.defineProperty(
|
|
5630
|
-
const o = ra(), n =
|
|
5630
|
+
if (ys) return Rn;
|
|
5631
|
+
ys = 1, Object.defineProperty(Rn, "__esModule", { value: !0 }), Rn.Flow = void 0;
|
|
5632
|
+
const o = ra(), n = zn(), a = ft();
|
|
5631
5633
|
let e = class {
|
|
5632
5634
|
constructor() {
|
|
5633
5635
|
let t = arguments[0], p = arguments[1];
|
|
@@ -5666,13 +5668,13 @@ function Ba() {
|
|
|
5666
5668
|
}
|
|
5667
5669
|
}
|
|
5668
5670
|
};
|
|
5669
|
-
return
|
|
5671
|
+
return Rn.Flow = e, Rn;
|
|
5670
5672
|
}
|
|
5671
5673
|
var bs;
|
|
5672
5674
|
function qa() {
|
|
5673
|
-
if (bs) return
|
|
5674
|
-
bs = 1, Object.defineProperty(
|
|
5675
|
-
const o = ra(), n = ja(), a = it(), e = Qt(), f = Di(), t = ki(), p = St(), r = pt(), y = Yt(), s =
|
|
5675
|
+
if (bs) return Nn;
|
|
5676
|
+
bs = 1, Object.defineProperty(Nn, "__esModule", { value: !0 }), Nn.StoryState = void 0;
|
|
5677
|
+
const o = ra(), n = ja(), a = it(), e = Qt(), f = Di(), t = ki(), p = St(), r = pt(), y = Yt(), s = zn(), c = aa(), i = Zt(), l = ii(), S = qn(), P = Z(), N = ti(), O = ft(), I = oi(), w = Ma(), F = oa(), k = Ba(), m = vt();
|
|
5676
5678
|
let g = class la {
|
|
5677
5679
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5678
5680
|
ToJson(u = !1) {
|
|
@@ -6256,12 +6258,12 @@ function qa() {
|
|
|
6256
6258
|
this._outputStreamTextDirty = !0, this._outputStreamTagsDirty = !0;
|
|
6257
6259
|
}
|
|
6258
6260
|
};
|
|
6259
|
-
return
|
|
6261
|
+
return Nn.StoryState = g, Nn;
|
|
6260
6262
|
}
|
|
6261
|
-
var
|
|
6263
|
+
var kn = {}, _s;
|
|
6262
6264
|
function Ga() {
|
|
6263
|
-
if (_s) return
|
|
6264
|
-
_s = 1, Object.defineProperty(
|
|
6265
|
+
if (_s) return kn;
|
|
6266
|
+
_s = 1, Object.defineProperty(kn, "__esModule", { value: !0 }), kn.Stopwatch = void 0;
|
|
6265
6267
|
class o {
|
|
6266
6268
|
constructor() {
|
|
6267
6269
|
this.startTime = void 0;
|
|
@@ -6276,22 +6278,22 @@ function Ga() {
|
|
|
6276
6278
|
this.startTime = void 0;
|
|
6277
6279
|
}
|
|
6278
6280
|
}
|
|
6279
|
-
return
|
|
6281
|
+
return kn.Stopwatch = o, kn;
|
|
6280
6282
|
}
|
|
6281
|
-
var
|
|
6283
|
+
var Dn = {}, Es;
|
|
6282
6284
|
function $a() {
|
|
6283
|
-
if (Es) return
|
|
6284
|
-
Es = 1, Object.defineProperty(
|
|
6285
|
+
if (Es) return Dn;
|
|
6286
|
+
Es = 1, Object.defineProperty(Dn, "__esModule", { value: !0 }), Dn.ErrorType = void 0;
|
|
6285
6287
|
var o;
|
|
6286
6288
|
return (function(n) {
|
|
6287
6289
|
n[n.Author = 0] = "Author", n[n.Warning = 1] = "Warning", n[n.Error = 2] = "Error";
|
|
6288
|
-
})(o || (
|
|
6290
|
+
})(o || (Dn.ErrorType = o = {})), Dn;
|
|
6289
6291
|
}
|
|
6290
6292
|
var ws;
|
|
6291
6293
|
function oi() {
|
|
6292
6294
|
return ws || (ws = 1, (function(o) {
|
|
6293
6295
|
Object.defineProperty(o, "__esModule", { value: !0 }), o.Story = o.InkList = void 0;
|
|
6294
|
-
const n = ot(), a = yt(), e =
|
|
6296
|
+
const n = ot(), a = yt(), e = zn(), f = qa(), t = pt(), p = Qt(), r = Ti(), y = na(), s = Rt(), c = it(), i = St(), l = Zt(), S = Di(), P = Gt(), N = Un(), O = Ft(), I = ei(), w = aa(), F = Yt(), k = ia(), m = Ga(), g = ii(), v = vt(), u = Z(), h = ft(), b = oa(), R = $a();
|
|
6295
6297
|
var V = vt();
|
|
6296
6298
|
Object.defineProperty(o, "InkList", { enumerable: !0, get: function() {
|
|
6297
6299
|
return V.InkList;
|
|
@@ -7226,9 +7228,9 @@ function oi() {
|
|
|
7226
7228
|
}
|
|
7227
7229
|
var Ps;
|
|
7228
7230
|
function Ua() {
|
|
7229
|
-
if (Ps) return
|
|
7230
|
-
Ps = 1, Object.defineProperty(
|
|
7231
|
-
const o = Oi(), n = Ii(), a = ot(), e = pt(), f = Pi(), t = kt(), p =
|
|
7231
|
+
if (Ps) return wn;
|
|
7232
|
+
Ps = 1, Object.defineProperty(wn, "__esModule", { value: !0 }), wn.Story = void 0;
|
|
7233
|
+
const o = Oi(), n = Ii(), a = ot(), e = pt(), f = Pi(), t = kt(), p = $n(), r = Xs(), y = Ri(), s = Zs(), c = oi(), i = Wt(), l = $t(), S = Gt(), P = Z(), N = si(), O = ai(), I = te();
|
|
7232
7234
|
class w extends t.FlowBase {
|
|
7233
7235
|
get flowLevel() {
|
|
7234
7236
|
return p.FlowLevel.Story;
|
|
@@ -7406,7 +7408,7 @@ function Ua() {
|
|
|
7406
7408
|
k.splice(0, 0, ...m);
|
|
7407
7409
|
}
|
|
7408
7410
|
}
|
|
7409
|
-
return
|
|
7411
|
+
return wn.Story = w, w.IsReservedKeyword = (F) => {
|
|
7410
7412
|
switch (F) {
|
|
7411
7413
|
case "true":
|
|
7412
7414
|
case "false":
|
|
@@ -7421,12 +7423,12 @@ function Ua() {
|
|
|
7421
7423
|
return !0;
|
|
7422
7424
|
}
|
|
7423
7425
|
return !1;
|
|
7424
|
-
},
|
|
7426
|
+
}, wn;
|
|
7425
7427
|
}
|
|
7426
|
-
var
|
|
7428
|
+
var Vn = {}, Os;
|
|
7427
7429
|
function Ka() {
|
|
7428
|
-
if (Os) return
|
|
7429
|
-
Os = 1, Object.defineProperty(
|
|
7430
|
+
if (Os) return Vn;
|
|
7431
|
+
Os = 1, Object.defineProperty(Vn, "__esModule", { value: !0 }), Vn.StringExpression = void 0;
|
|
7430
7432
|
const o = pt(), n = Ot(), a = $t(), e = Z();
|
|
7431
7433
|
let f = class ua extends n.Expression {
|
|
7432
7434
|
get isSingleString() {
|
|
@@ -7457,7 +7459,7 @@ function Ka() {
|
|
|
7457
7459
|
return y === s;
|
|
7458
7460
|
}
|
|
7459
7461
|
};
|
|
7460
|
-
return
|
|
7462
|
+
return Vn.StringExpression = f, Vn;
|
|
7461
7463
|
}
|
|
7462
7464
|
var Bt = {}, xs;
|
|
7463
7465
|
function Ha() {
|
|
@@ -7484,10 +7486,10 @@ function Ha() {
|
|
|
7484
7486
|
}
|
|
7485
7487
|
return Bt.LegacyTag = f, Bt;
|
|
7486
7488
|
}
|
|
7487
|
-
var
|
|
7489
|
+
var Wn = {}, Ts;
|
|
7488
7490
|
function Ja() {
|
|
7489
|
-
if (Ts) return
|
|
7490
|
-
Ts = 1, Object.defineProperty(
|
|
7491
|
+
if (Ts) return Wn;
|
|
7492
|
+
Ts = 1, Object.defineProperty(Wn, "__esModule", { value: !0 }), Wn.DefaultFileHandler = void 0;
|
|
7491
7493
|
let o = class {
|
|
7492
7494
|
constructor(a) {
|
|
7493
7495
|
this.rootPath = a, this.ResolveInkFilename = () => {
|
|
@@ -7497,13 +7499,13 @@ function Ja() {
|
|
|
7497
7499
|
};
|
|
7498
7500
|
}
|
|
7499
7501
|
};
|
|
7500
|
-
return
|
|
7502
|
+
return Wn.DefaultFileHandler = o, Wn;
|
|
7501
7503
|
}
|
|
7502
7504
|
var Ns;
|
|
7503
7505
|
function Is() {
|
|
7504
|
-
if (Ns) return
|
|
7505
|
-
Ns = 1, Object.defineProperty(
|
|
7506
|
-
const o = Ea(), n = Oi(), a = Ws(), e = Pa(), f = ni(), t =
|
|
7506
|
+
if (Ns) return le;
|
|
7507
|
+
Ns = 1, Object.defineProperty(le, "__esModule", { value: !0 }), le.InkParser = void 0;
|
|
7508
|
+
const o = Ea(), n = Oi(), a = Ws(), e = Pa(), f = ni(), t = Gn(), p = Ta(), r = Ni(), y = Hs(), s = Fi(), c = Ii(), i = Aa(), l = Fa(), S = Jn(), P = Hn(), N = Ot(), O = Ra(), I = ka(), w = ai(), F = ri(), k = Da(), m = ki(), g = Va(), v = Xs(), u = Wa(), h = Ys(), b = La(), R = Ri(), V = Zs(), j = Bs(), L = et(), C = te(), E = js(), x = Gs(), A = qs(), W = Qs(), M = ta(), G = Ua(), K = Ka(), Q = Ls(), ut = Ha(), Y = $t(), mt = $s(), rt = Ks(), _t = Kn(), Dt = Vs(), Et = Z(), Vt = Ai(), xt = xi(), Ut = Pi(), li = Ja();
|
|
7507
7509
|
let B = class bi extends Q.StringParser {
|
|
7508
7510
|
/**
|
|
7509
7511
|
* Begin base InkParser section.
|
|
@@ -8414,7 +8416,7 @@ Error:${U}`);
|
|
|
8414
8416
|
))), this.tagActive = !1);
|
|
8415
8417
|
}
|
|
8416
8418
|
};
|
|
8417
|
-
return
|
|
8419
|
+
return le.InkParser = B, B.LatinBasic = e.CharacterRange.Define("A", "z", new f.CharacterSet().AddRange("[", "`")), B.LatinExtendedA = e.CharacterRange.Define(
|
|
8418
8420
|
"Ā",
|
|
8419
8421
|
"ſ"
|
|
8420
8422
|
// no excludes here
|
|
@@ -8434,13 +8436,13 @@ Error:${U}`);
|
|
|
8434
8436
|
B.Korean,
|
|
8435
8437
|
B.Latin1Supplement,
|
|
8436
8438
|
B.Chinese
|
|
8437
|
-
],
|
|
8439
|
+
], le;
|
|
8438
8440
|
}
|
|
8439
|
-
var
|
|
8441
|
+
var Ln = {}, As;
|
|
8440
8442
|
function za() {
|
|
8441
|
-
if (As) return
|
|
8442
|
-
As = 1, Object.defineProperty(
|
|
8443
|
-
const o =
|
|
8443
|
+
if (As) return Ln;
|
|
8444
|
+
As = 1, Object.defineProperty(Ln, "__esModule", { value: !0 }), Ln.GenerateStoryStats = void 0;
|
|
8445
|
+
const o = Gn(), n = Jn(), a = ri(), e = Ys(), f = ta(), t = $t();
|
|
8444
8446
|
function p(r) {
|
|
8445
8447
|
let y = r.FindAll(t.Text)(), s = 0;
|
|
8446
8448
|
for (const N of y) {
|
|
@@ -8461,12 +8463,12 @@ function za() {
|
|
|
8461
8463
|
choices: l.length
|
|
8462
8464
|
};
|
|
8463
8465
|
}
|
|
8464
|
-
return
|
|
8466
|
+
return Ln.GenerateStoryStats = p, Ln;
|
|
8465
8467
|
}
|
|
8466
|
-
var
|
|
8468
|
+
var jn = {}, Fs;
|
|
8467
8469
|
function Xa() {
|
|
8468
|
-
if (Fs) return
|
|
8469
|
-
Fs = 1, Object.defineProperty(
|
|
8470
|
+
if (Fs) return jn;
|
|
8471
|
+
Fs = 1, Object.defineProperty(jn, "__esModule", { value: !0 }), jn.JsonFileHandler = void 0;
|
|
8470
8472
|
let o = class {
|
|
8471
8473
|
constructor(a) {
|
|
8472
8474
|
this.fileHierarchy = a, this.ResolveInkFilename = (e) => {
|
|
@@ -8480,7 +8482,7 @@ function Xa() {
|
|
|
8480
8482
|
};
|
|
8481
8483
|
}
|
|
8482
8484
|
};
|
|
8483
|
-
return
|
|
8485
|
+
return jn.JsonFileHandler = o, jn;
|
|
8484
8486
|
}
|
|
8485
8487
|
var Rs;
|
|
8486
8488
|
function Ya() {
|
|
@@ -8602,8 +8604,14 @@ function sl(o, n) {
|
|
|
8602
8604
|
if (eo(o))
|
|
8603
8605
|
a = new Wi(o);
|
|
8604
8606
|
else {
|
|
8605
|
-
const e = n != null && n.fileHandler ? new to(n.fileHandler) : null,
|
|
8606
|
-
|
|
8607
|
+
const e = (n == null ? void 0 : n.errorHandler) || null, f = n != null && n.fileHandler ? new to(n.fileHandler) : null, t = new Qa.CompilerOptions(
|
|
8608
|
+
null,
|
|
8609
|
+
[],
|
|
8610
|
+
!1,
|
|
8611
|
+
e,
|
|
8612
|
+
f
|
|
8613
|
+
);
|
|
8614
|
+
a = new Za.Compiler(o, t).Compile();
|
|
8607
8615
|
}
|
|
8608
8616
|
else
|
|
8609
8617
|
throw new Error("Invalid source type: expected string or Story");
|
|
@@ -8618,9 +8626,9 @@ export {
|
|
|
8618
8626
|
ya as InkStory,
|
|
8619
8627
|
pi as Parser,
|
|
8620
8628
|
fi as Patches,
|
|
8621
|
-
|
|
8629
|
+
Bn as Tags,
|
|
8622
8630
|
Li as choicesStore,
|
|
8623
|
-
|
|
8631
|
+
re as contentsStore,
|
|
8624
8632
|
sl as createInkStory,
|
|
8625
8633
|
Ei as createSelectors,
|
|
8626
8634
|
Sa as variablesStore
|