@cruglobal/godtools-shared 0.8.3-SNAPSHOT.1104 → 0.8.3-SNAPSHOT.1110

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.
Files changed (29) hide show
  1. package/88b0986a7186d029-atomicfu-js-ir.js +12 -12
  2. package/KustomExport-lib-coroutines.js +19 -0
  3. package/KustomExport-lib-coroutines.js.map +1 -0
  4. package/KustomExport-lib.js +30 -0
  5. package/KustomExport-lib.js.map +1 -0
  6. package/Napier-napier-js-ir.js +171 -5
  7. package/Napier-napier-js-ir.js.map +1 -1
  8. package/android-gto-support-gto-support-fluidsonic-locale.js +19 -5
  9. package/android-gto-support-gto-support-fluidsonic-locale.js.map +1 -1
  10. package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js +9058 -5
  11. package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js.map +1 -1
  12. package/colormath-root-colormath-js-ir.js +2177 -5
  13. package/colormath-root-colormath-js-ir.js.map +1 -1
  14. package/fluid-locale-js-ir.js +1293 -5
  15. package/fluid-locale-js-ir.js.map +1 -1
  16. package/kotlin-kotlin-stdlib-js-ir.js +6306 -1955
  17. package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  18. package/kotlin-mpp-godtools-tool-parser-common.js +7 -0
  19. package/kotlin-mpp-godtools-tool-parser-common.js.map +1 -1
  20. package/kotlin-mpp-godtools-tool-parser-npm.d.ts +50 -0
  21. package/kotlin-mpp-godtools-tool-parser-parser-expressions.js +1260 -5
  22. package/kotlin-mpp-godtools-tool-parser-parser-expressions.js.map +1 -1
  23. package/kotlin-mpp-godtools-tool-parser-parser.js +9302 -121
  24. package/kotlin-mpp-godtools-tool-parser-parser.js.map +1 -1
  25. package/kotlin-mpp-godtools-tool-parser-state.js +239 -239
  26. package/kotlin-mpp-godtools-tool-parser-state.js.map +1 -1
  27. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +2398 -1943
  28. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
  29. package/package.json +1 -1
@@ -1,13 +1,1268 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './antlr-kotlin-antlr-kotlin-runtime-js-ir.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports);
6
- else
7
- root['kotlin-mpp-godtools-tool-parser-parser-expressions'] = factory(typeof this['kotlin-mpp-godtools-tool-parser-parser-expressions'] === 'undefined' ? {} : this['kotlin-mpp-godtools-tool-parser-parser-expressions']);
8
- }(this, function (_) {
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./antlr-kotlin-antlr-kotlin-runtime-js-ir.js'));
6
+ else {
7
+ if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
8
+ throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-parser-expressions'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'kotlin-mpp-godtools-tool-parser-parser-expressions'.");
9
+ }
10
+ if (typeof this['antlr-kotlin-antlr-kotlin-runtime-js-ir'] === 'undefined') {
11
+ throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-parser-expressions'. Its dependency 'antlr-kotlin-antlr-kotlin-runtime-js-ir' was not found. Please, check whether 'antlr-kotlin-antlr-kotlin-runtime-js-ir' is loaded prior to 'kotlin-mpp-godtools-tool-parser-parser-expressions'.");
12
+ }
13
+ root['kotlin-mpp-godtools-tool-parser-parser-expressions'] = factory(typeof this['kotlin-mpp-godtools-tool-parser-parser-expressions'] === 'undefined' ? {} : this['kotlin-mpp-godtools-tool-parser-parser-expressions'], this['kotlin-kotlin-stdlib-js-ir'], this['antlr-kotlin-antlr-kotlin-runtime-js-ir']);
14
+ }
15
+ }(this, function (_, kotlin_kotlin, kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime) {
9
16
  'use strict';
17
+ //region block: imports
18
+ var Unit_getInstance = kotlin_kotlin.$_$.i2;
19
+ var PredictionContextCache = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.k;
20
+ var listOf = kotlin_kotlin.$_$.r3;
21
+ var copyToArray = kotlin_kotlin.$_$.z2;
22
+ var VocabularyImpl = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.w;
23
+ var fillArrayVal = kotlin_kotlin.$_$.n5;
24
+ var ATNDeserializer = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.h;
25
+ var asCharArray = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.a;
26
+ var ensureNotNull = kotlin_kotlin.$_$.r8;
27
+ var DFA = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.l;
28
+ var protoOf = kotlin_kotlin.$_$.e6;
29
+ var objectMeta = kotlin_kotlin.$_$.d6;
30
+ var VOID = kotlin_kotlin.$_$.a9;
31
+ var setMetadataFor = kotlin_kotlin.$_$.f6;
32
+ var Enum = kotlin_kotlin.$_$.a8;
33
+ var classMeta = kotlin_kotlin.$_$.j5;
34
+ var Lexer = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.q;
35
+ var Lexer_init_$Init$ = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.b;
36
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.c;
37
+ var THROW_CCE = kotlin_kotlin.$_$.l8;
38
+ var isArray = kotlin_kotlin.$_$.t5;
39
+ var LexerATNSimulator = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.i;
40
+ var KProperty1 = kotlin_kotlin.$_$.u6;
41
+ var getPropertyCallableRef = kotlin_kotlin.$_$.p5;
42
+ var interfaceMeta = kotlin_kotlin.$_$.s5;
43
+ var ParserRuleContext_init_$Init$ = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.d;
44
+ var objectCreate = kotlin_kotlin.$_$.c6;
45
+ var ParserRuleContext_init_$Init$_0 = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.c;
46
+ var ParserRuleContext = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.s;
47
+ var isInterface = kotlin_kotlin.$_$.v5;
48
+ var Token = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.v;
49
+ var Long = kotlin_kotlin.$_$.f8;
50
+ var Companion_getInstance = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.e;
51
+ var FailedPredicateException = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.p;
52
+ var RecognitionException = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.u;
53
+ var Parser = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.t;
54
+ var ParserATNSimulator = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.j;
55
+ var NoViableAltException = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.r;
56
+ var isBlank = kotlin_kotlin.$_$.d7;
57
+ var CharStreams_getInstance = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.f;
58
+ var CommonTokenStream = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.o;
59
+ var BailErrorStrategy = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.n;
60
+ var Companion_getInstance_0 = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.g;
61
+ var ParseCancellationException = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.m;
62
+ //endregion
10
63
  //region block: pre-declaration
64
+ setMetadataFor(Companion, 'Companion', objectMeta);
65
+ setMetadataFor(Channels, 'Channels', classMeta, Enum);
66
+ setMetadataFor(Rules, 'Rules', classMeta, Enum);
67
+ setMetadataFor(StateExpressionLexer, 'StateExpressionLexer', classMeta, Lexer);
68
+ setMetadataFor(StateExpressionListener, 'StateExpressionListener', interfaceMeta);
69
+ setMetadataFor(Tokens, 'Tokens', classMeta, Enum);
70
+ setMetadataFor(Rules_0, 'Rules', classMeta, Enum);
71
+ setMetadataFor(Companion_0, 'Companion', objectMeta);
72
+ setMetadataFor(BooleanExprContext, 'BooleanExprContext', classMeta, ParserRuleContext);
73
+ setMetadataFor(IntCmpExprContext, 'IntCmpExprContext', classMeta, BooleanExprContext);
74
+ setMetadataFor(ParExprContext, 'ParExprContext', classMeta, BooleanExprContext);
75
+ setMetadataFor(BooleanAtomContext, 'BooleanAtomContext', classMeta, BooleanExprContext);
76
+ setMetadataFor(EqExprContext, 'EqExprContext', classMeta, BooleanExprContext);
77
+ setMetadataFor(NotExprContext, 'NotExprContext', classMeta, BooleanExprContext);
78
+ setMetadataFor(IsSetFuncContext, 'IsSetFuncContext', classMeta, BooleanExprContext);
79
+ setMetadataFor(OrExprContext, 'OrExprContext', classMeta, BooleanExprContext);
80
+ setMetadataFor(AndExprContext, 'AndExprContext', classMeta, BooleanExprContext);
81
+ setMetadataFor(IntExprContext, 'IntExprContext', classMeta, ParserRuleContext);
82
+ setMetadataFor(IntAtomContext, 'IntAtomContext', classMeta, IntExprContext);
83
+ setMetadataFor(ParIntExprContext, 'ParIntExprContext', classMeta, IntExprContext);
84
+ setMetadataFor(ValuesFuncContext, 'ValuesFuncContext', classMeta, IntExprContext);
85
+ setMetadataFor(StateExpressionParser, 'StateExpressionParser', classMeta, Parser);
86
+ setMetadataFor(Expression, 'Expression', classMeta);
87
+ //endregion
88
+ var Channels_DEFAULT_TOKEN_CHANNEL_instance;
89
+ var Channels_HIDDEN_instance;
90
+ function values() {
91
+ return [Channels_DEFAULT_TOKEN_CHANNEL_getInstance(), Channels_HIDDEN_getInstance()];
92
+ }
93
+ var Channels_entriesInitialized;
94
+ function Channels_initEntries() {
95
+ if (Channels_entriesInitialized)
96
+ return Unit_getInstance();
97
+ Channels_entriesInitialized = true;
98
+ Channels_DEFAULT_TOKEN_CHANNEL_instance = new Channels('DEFAULT_TOKEN_CHANNEL', 0, 0);
99
+ Channels_HIDDEN_instance = new Channels('HIDDEN', 1, 1);
100
+ }
101
+ var Rules_EQ_instance;
102
+ var Rules_NEQ_instance;
103
+ var Rules_AND_instance;
104
+ var Rules_OR_instance;
105
+ var Rules_NOT_instance;
106
+ var Rules_GTE_instance;
107
+ var Rules_GT_instance;
108
+ var Rules_LTE_instance;
109
+ var Rules_LT_instance;
110
+ var Rules_OPAR_instance;
111
+ var Rules_CPAR_instance;
112
+ var Rules_TRUE_instance;
113
+ var Rules_FALSE_instance;
114
+ var Rules_FUNC_ISSET_instance;
115
+ var Rules_FUNC_VALUES_instance;
116
+ var Rules_INT_instance;
117
+ var Rules_STRING_instance;
118
+ var Rules_VAR_instance;
119
+ function values_0() {
120
+ return [Rules_EQ_getInstance(), Rules_NEQ_getInstance(), Rules_AND_getInstance(), Rules_OR_getInstance(), Rules_NOT_getInstance(), Rules_GTE_getInstance(), Rules_GT_getInstance(), Rules_LTE_getInstance(), Rules_LT_getInstance(), Rules_OPAR_getInstance(), Rules_CPAR_getInstance(), Rules_TRUE_getInstance(), Rules_FALSE_getInstance(), Rules_FUNC_ISSET_getInstance(), Rules_FUNC_VALUES_getInstance(), Rules_INT_getInstance(), Rules_STRING_getInstance(), Rules_VAR_getInstance()];
121
+ }
122
+ var Rules_entriesInitialized;
123
+ function Rules_initEntries() {
124
+ if (Rules_entriesInitialized)
125
+ return Unit_getInstance();
126
+ Rules_entriesInitialized = true;
127
+ Rules_EQ_instance = new Rules('EQ', 0);
128
+ Rules_NEQ_instance = new Rules('NEQ', 1);
129
+ Rules_AND_instance = new Rules('AND', 2);
130
+ Rules_OR_instance = new Rules('OR', 3);
131
+ Rules_NOT_instance = new Rules('NOT', 4);
132
+ Rules_GTE_instance = new Rules('GTE', 5);
133
+ Rules_GT_instance = new Rules('GT', 6);
134
+ Rules_LTE_instance = new Rules('LTE', 7);
135
+ Rules_LT_instance = new Rules('LT', 8);
136
+ Rules_OPAR_instance = new Rules('OPAR', 9);
137
+ Rules_CPAR_instance = new Rules('CPAR', 10);
138
+ Rules_TRUE_instance = new Rules('TRUE', 11);
139
+ Rules_FALSE_instance = new Rules('FALSE', 12);
140
+ Rules_FUNC_ISSET_instance = new Rules('FUNC_ISSET', 13);
141
+ Rules_FUNC_VALUES_instance = new Rules('FUNC_VALUES', 14);
142
+ Rules_INT_instance = new Rules('INT', 15);
143
+ Rules_STRING_instance = new Rules('STRING', 16);
144
+ Rules_VAR_instance = new Rules('VAR', 17);
145
+ }
146
+ function Companion() {
147
+ Companion_instance = this;
148
+ this.s25_1 = new PredictionContextCache();
149
+ this.t25_1 = listOf([null, "'=='", "'!='", "'&&'", "'||'", "'!'", "'>='", "'>'", "'<='", "'<'", "'('", "')'", "'true'", "'false'"]);
150
+ this.u25_1 = listOf([null, 'EQ', 'NEQ', 'AND', 'OR', 'NOT', 'GTE', 'GT', 'LTE', 'LT', 'OPAR', 'CPAR', 'TRUE', 'FALSE', 'FUNC_ISSET', 'FUNC_VALUES', 'INT', 'STRING', 'VAR']);
151
+ var tmp = this;
152
+ var tmp$ret$0;
153
+ // Inline function 'kotlin.collections.toTypedArray' call
154
+ var tmp0_toTypedArray = this.t25_1;
155
+ tmp$ret$0 = copyToArray(tmp0_toTypedArray);
156
+ var tmp_0 = tmp$ret$0;
157
+ var tmp$ret$1;
158
+ // Inline function 'kotlin.collections.toTypedArray' call
159
+ var tmp1_toTypedArray = this.u25_1;
160
+ tmp$ret$1 = copyToArray(tmp1_toTypedArray);
161
+ tmp.v25_1 = new VocabularyImpl(tmp_0, tmp$ret$1);
162
+ var tmp_1 = this;
163
+ var tmp_2 = 0;
164
+ var tmp_3 = this.u25_1.i();
165
+ var tmp$ret$2;
166
+ // Inline function 'kotlin.arrayOfNulls' call
167
+ tmp$ret$2 = fillArrayVal(Array(tmp_3), null);
168
+ var tmp_4 = tmp$ret$2;
169
+ while (tmp_2 < tmp_3) {
170
+ var tmp_5 = tmp_2;
171
+ var tmp$ret$3;
172
+ // Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.Companion.tokenNames.<anonymous>' call
173
+ var el = Companion_getInstance_1().v25_1.s1l(tmp_5);
174
+ if (el == null) {
175
+ el = Companion_getInstance_1().v25_1.t1l(tmp_5);
176
+ }
177
+ if (el == null) {
178
+ el = '<INVALID>';
179
+ }
180
+ tmp$ret$3 = el;
181
+ tmp_4[tmp_5] = tmp$ret$3;
182
+ tmp_2 = tmp_2 + 1 | 0;
183
+ }
184
+ tmp_1.w25_1 = tmp_4;
185
+ this.x25_1 = "\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786\u5964\x02\x14}\b\x01\x04\x02\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\x0B\t\x0B\x04\f\t\f\x04\r\t\r\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13\x03\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x04\x03\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\t\x03\n\x03\n\x03\x0B\x03\x0B\x03\f\x03\f\x03\r\x03\r\x03\r\x03\r\x03\r\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x11\x06\x11a\n\x11\r\x11\x0E\x11b\x03\x12\x03\x12\x07\x12g\n\x12\f\x12\x0E\x12j\x0B\x12\x03\x12\x03\x12\x03\x12\x07\x12o\n\x12\f\x12\x0E\x12r\x0B\x12\x03\x12\x05\x12u\n\x12\x03\x13\x03\x13\x07\x13y\n\x13\f\x13\x0E\x13|\x0B\x13\x02\x02\x14\x03\x03\x05\x04\x07\x05\t\x06\x0B\x07\r\b\x0F\t\x11\n\x13\x0B\x15\f\x17\r\x19\x0E\x1B\x0F\x1D\x10\x1F\x11!\x12#\x13%\x14\x03\x02\x07\x03\x022;\x03\x02$$\x03\x02))\x04\x02C\\c|\x06\x022;C\\aac|\x02\x81\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07\x03\x02\x02\x02\x02\t\x03\x02\x02\x02\x02\x0B\x03\x02\x02\x02\x02\r\x03\x02\x02\x02\x02\x0F\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02\x02\x13\x03\x02\x02\x02\x02\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02\x02\x02\x02\x1B\x03\x02\x02\x02\x02\x1D\x03\x02\x02\x02\x02\x1F\x03\x02\x02\x02\x02!\x03\x02\x02\x02\x02#\x03\x02\x02\x02\x02%\x03\x02\x02\x02\x03'\x03\x02\x02\x02\x05*\x03\x02\x02\x02\x07-\x03\x02\x02\x02\t0\x03\x02\x02\x02\x0B3\x03\x02\x02\x02\r5\x03\x02\x02\x02\x0F8\x03\x02\x02\x02\x11:\x03\x02\x02\x02\x13=\x03\x02\x02\x02\x15?\x03\x02\x02\x02\x17A\x03\x02\x02\x02\x19C\x03\x02\x02\x02\x1BH\x03\x02\x02\x02\x1DN\x03\x02\x02\x02\x1FV\x03\x02\x02\x02!`\x03\x02\x02\x02#t\x03\x02\x02\x02%v\x03\x02\x02\x02'(\x07?\x02\x02()\x07?\x02\x02)\x04\x03\x02\x02\x02*+\x07#\x02\x02+,\x07?\x02\x02,\x06\x03\x02\x02\x02-.\x07(\x02\x02./\x07(\x02\x02/\b\x03\x02\x02\x0201\x07~\x02\x0212\x07~\x02\x022\n\x03\x02\x02\x0234\x07#\x02\x024\f\x03\x02\x02\x0256\x07@\x02\x0267\x07?\x02\x027\x0E\x03\x02\x02\x0289\x07@\x02\x029\x10\x03\x02\x02\x02:;\x07>\x02\x02;<\x07?\x02\x02<\x12\x03\x02\x02\x02=>\x07>\x02\x02>\x14\x03\x02\x02\x02?@\x07*\x02\x02@\x16\x03\x02\x02\x02AB\x07+\x02\x02B\x18\x03\x02\x02\x02CD\x07v\x02\x02DE\x07t\x02\x02EF\x07w\x02\x02FG\x07g\x02\x02G\x1A\x03\x02\x02\x02HI\x07h\x02\x02IJ\x07c\x02\x02JK\x07n\x02\x02KL\x07u\x02\x02LM\x07g\x02\x02M\x1C\x03\x02\x02\x02NO\x07k\x02\x02OP\x07u\x02\x02PQ\x07U\x02\x02QR\x07g\x02\x02RS\x07v\x02\x02ST\x03\x02\x02\x02TU\x05\x15\x0B\x02U\x1E\x03\x02\x02\x02VW\x07x\x02\x02WX\x07c\x02\x02XY\x07n\x02\x02YZ\x07w\x02\x02Z[\x07g\x02\x02[\\\x07u\x02\x02\\]\x03\x02\x02\x02]^\x05\x15\x0B\x02^ \x03\x02\x02\x02_a\t\x02\x02\x02`_\x03\x02\x02\x02ab\x03\x02\x02\x02b`\x03\x02\x02\x02bc\x03\x02\x02\x02c\"\x03\x02\x02\x02dh\x07$\x02\x02eg\n\x03\x02\x02fe\x03\x02\x02\x02gj\x03\x02\x02\x02hf\x03\x02\x02\x02hi\x03\x02\x02\x02ik\x03\x02\x02\x02jh\x03\x02\x02\x02ku\x07$\x02\x02lp\x07)\x02\x02mo\n\x04\x02\x02nm\x03\x02\x02\x02or\x03\x02\x02\x02pn\x03\x02\x02\x02pq\x03\x02\x02\x02qs\x03\x02\x02\x02rp\x03\x02\x02\x02su\x07)\x02\x02td\x03\x02\x02\x02tl\x03\x02\x02\x02u$\x03\x02\x02\x02vz\t\x05\x02\x02wy\t\x06\x02\x02xw\x03\x02\x02\x02y|\x03\x02\x02\x02zx\x03\x02\x02\x02z{\x03\x02\x02\x02{&\x03\x02\x02\x02|z\x03\x02\x02\x02\b\x02bhptz\x02";
186
+ this.y25_1 = (new ATNDeserializer()).d1q(asCharArray("\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786\u5964\x02\x14}\b\x01\x04\x02\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\x0B\t\x0B\x04\f\t\f\x04\r\t\r\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13\x03\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x04\x03\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\t\x03\n\x03\n\x03\x0B\x03\x0B\x03\f\x03\f\x03\r\x03\r\x03\r\x03\r\x03\r\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x11\x06\x11a\n\x11\r\x11\x0E\x11b\x03\x12\x03\x12\x07\x12g\n\x12\f\x12\x0E\x12j\x0B\x12\x03\x12\x03\x12\x03\x12\x07\x12o\n\x12\f\x12\x0E\x12r\x0B\x12\x03\x12\x05\x12u\n\x12\x03\x13\x03\x13\x07\x13y\n\x13\f\x13\x0E\x13|\x0B\x13\x02\x02\x14\x03\x03\x05\x04\x07\x05\t\x06\x0B\x07\r\b\x0F\t\x11\n\x13\x0B\x15\f\x17\r\x19\x0E\x1B\x0F\x1D\x10\x1F\x11!\x12#\x13%\x14\x03\x02\x07\x03\x022;\x03\x02$$\x03\x02))\x04\x02C\\c|\x06\x022;C\\aac|\x02\x81\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07\x03\x02\x02\x02\x02\t\x03\x02\x02\x02\x02\x0B\x03\x02\x02\x02\x02\r\x03\x02\x02\x02\x02\x0F\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02\x02\x13\x03\x02\x02\x02\x02\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02\x02\x02\x02\x1B\x03\x02\x02\x02\x02\x1D\x03\x02\x02\x02\x02\x1F\x03\x02\x02\x02\x02!\x03\x02\x02\x02\x02#\x03\x02\x02\x02\x02%\x03\x02\x02\x02\x03'\x03\x02\x02\x02\x05*\x03\x02\x02\x02\x07-\x03\x02\x02\x02\t0\x03\x02\x02\x02\x0B3\x03\x02\x02\x02\r5\x03\x02\x02\x02\x0F8\x03\x02\x02\x02\x11:\x03\x02\x02\x02\x13=\x03\x02\x02\x02\x15?\x03\x02\x02\x02\x17A\x03\x02\x02\x02\x19C\x03\x02\x02\x02\x1BH\x03\x02\x02\x02\x1DN\x03\x02\x02\x02\x1FV\x03\x02\x02\x02!`\x03\x02\x02\x02#t\x03\x02\x02\x02%v\x03\x02\x02\x02'(\x07?\x02\x02()\x07?\x02\x02)\x04\x03\x02\x02\x02*+\x07#\x02\x02+,\x07?\x02\x02,\x06\x03\x02\x02\x02-.\x07(\x02\x02./\x07(\x02\x02/\b\x03\x02\x02\x0201\x07~\x02\x0212\x07~\x02\x022\n\x03\x02\x02\x0234\x07#\x02\x024\f\x03\x02\x02\x0256\x07@\x02\x0267\x07?\x02\x027\x0E\x03\x02\x02\x0289\x07@\x02\x029\x10\x03\x02\x02\x02:;\x07>\x02\x02;<\x07?\x02\x02<\x12\x03\x02\x02\x02=>\x07>\x02\x02>\x14\x03\x02\x02\x02?@\x07*\x02\x02@\x16\x03\x02\x02\x02AB\x07+\x02\x02B\x18\x03\x02\x02\x02CD\x07v\x02\x02DE\x07t\x02\x02EF\x07w\x02\x02FG\x07g\x02\x02G\x1A\x03\x02\x02\x02HI\x07h\x02\x02IJ\x07c\x02\x02JK\x07n\x02\x02KL\x07u\x02\x02LM\x07g\x02\x02M\x1C\x03\x02\x02\x02NO\x07k\x02\x02OP\x07u\x02\x02PQ\x07U\x02\x02QR\x07g\x02\x02RS\x07v\x02\x02ST\x03\x02\x02\x02TU\x05\x15\x0B\x02U\x1E\x03\x02\x02\x02VW\x07x\x02\x02WX\x07c\x02\x02XY\x07n\x02\x02YZ\x07w\x02\x02Z[\x07g\x02\x02[\\\x07u\x02\x02\\]\x03\x02\x02\x02]^\x05\x15\x0B\x02^ \x03\x02\x02\x02_a\t\x02\x02\x02`_\x03\x02\x02\x02ab\x03\x02\x02\x02b`\x03\x02\x02\x02bc\x03\x02\x02\x02c\"\x03\x02\x02\x02dh\x07$\x02\x02eg\n\x03\x02\x02fe\x03\x02\x02\x02gj\x03\x02\x02\x02hf\x03\x02\x02\x02hi\x03\x02\x02\x02ik\x03\x02\x02\x02jh\x03\x02\x02\x02ku\x07$\x02\x02lp\x07)\x02\x02mo\n\x04\x02\x02nm\x03\x02\x02\x02or\x03\x02\x02\x02pn\x03\x02\x02\x02pq\x03\x02\x02\x02qs\x03\x02\x02\x02rp\x03\x02\x02\x02su\x07)\x02\x02td\x03\x02\x02\x02tl\x03\x02\x02\x02u$\x03\x02\x02\x02vz\t\x05\x02\x02wy\t\x06\x02\x02xw\x03\x02\x02\x02y|\x03\x02\x02\x02zx\x03\x02\x02\x02z{\x03\x02\x02\x02{&\x03\x02\x02\x02|z\x03\x02\x02\x02\b\x02bhptz\x02"));
187
+ var tmp_6 = this;
188
+ var tmp_7 = 0;
189
+ var tmp_8 = this.y25_1.v1l();
190
+ var tmp$ret$4;
191
+ // Inline function 'kotlin.arrayOfNulls' call
192
+ tmp$ret$4 = fillArrayVal(Array(tmp_8), null);
193
+ var tmp_9 = tmp$ret$4;
194
+ while (tmp_7 < tmp_8) {
195
+ var tmp_10 = tmp_7;
196
+ var tmp$ret$5;
197
+ // Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.Companion.<anonymous>' call
198
+ tmp$ret$5 = new DFA(ensureNotNull(Companion_getInstance_1().y25_1.j1m(tmp_10)), tmp_10);
199
+ tmp_9[tmp_10] = tmp$ret$5;
200
+ tmp_7 = tmp_7 + 1 | 0;
201
+ }
202
+ tmp_6.r25_1 = tmp_9;
203
+ }
204
+ var Companion_instance;
205
+ function Companion_getInstance_1() {
206
+ if (Companion_instance == null)
207
+ new Companion();
208
+ return Companion_instance;
209
+ }
210
+ function Channels(name, ordinal, id) {
211
+ Enum.call(this, name, ordinal);
212
+ this.b26_1 = id;
213
+ }
214
+ function Rules(name, ordinal) {
215
+ Enum.call(this, name, ordinal);
216
+ }
217
+ function Channels_DEFAULT_TOKEN_CHANNEL_getInstance() {
218
+ Channels_initEntries();
219
+ return Channels_DEFAULT_TOKEN_CHANNEL_instance;
220
+ }
221
+ function Channels_HIDDEN_getInstance() {
222
+ Channels_initEntries();
223
+ return Channels_HIDDEN_instance;
224
+ }
225
+ function Rules_EQ_getInstance() {
226
+ Rules_initEntries();
227
+ return Rules_EQ_instance;
228
+ }
229
+ function Rules_NEQ_getInstance() {
230
+ Rules_initEntries();
231
+ return Rules_NEQ_instance;
232
+ }
233
+ function Rules_AND_getInstance() {
234
+ Rules_initEntries();
235
+ return Rules_AND_instance;
236
+ }
237
+ function Rules_OR_getInstance() {
238
+ Rules_initEntries();
239
+ return Rules_OR_instance;
240
+ }
241
+ function Rules_NOT_getInstance() {
242
+ Rules_initEntries();
243
+ return Rules_NOT_instance;
244
+ }
245
+ function Rules_GTE_getInstance() {
246
+ Rules_initEntries();
247
+ return Rules_GTE_instance;
248
+ }
249
+ function Rules_GT_getInstance() {
250
+ Rules_initEntries();
251
+ return Rules_GT_instance;
252
+ }
253
+ function Rules_LTE_getInstance() {
254
+ Rules_initEntries();
255
+ return Rules_LTE_instance;
256
+ }
257
+ function Rules_LT_getInstance() {
258
+ Rules_initEntries();
259
+ return Rules_LT_instance;
260
+ }
261
+ function Rules_OPAR_getInstance() {
262
+ Rules_initEntries();
263
+ return Rules_OPAR_instance;
264
+ }
265
+ function Rules_CPAR_getInstance() {
266
+ Rules_initEntries();
267
+ return Rules_CPAR_instance;
268
+ }
269
+ function Rules_TRUE_getInstance() {
270
+ Rules_initEntries();
271
+ return Rules_TRUE_instance;
272
+ }
273
+ function Rules_FALSE_getInstance() {
274
+ Rules_initEntries();
275
+ return Rules_FALSE_instance;
276
+ }
277
+ function Rules_FUNC_ISSET_getInstance() {
278
+ Rules_initEntries();
279
+ return Rules_FUNC_ISSET_instance;
280
+ }
281
+ function Rules_FUNC_VALUES_getInstance() {
282
+ Rules_initEntries();
283
+ return Rules_FUNC_VALUES_instance;
284
+ }
285
+ function Rules_INT_getInstance() {
286
+ Rules_initEntries();
287
+ return Rules_INT_instance;
288
+ }
289
+ function Rules_STRING_getInstance() {
290
+ Rules_initEntries();
291
+ return Rules_STRING_instance;
292
+ }
293
+ function Rules_VAR_getInstance() {
294
+ Rules_initEntries();
295
+ return Rules_VAR_instance;
296
+ }
297
+ function StateExpressionLexer(input) {
298
+ Companion_getInstance_1();
299
+ Lexer_init_$Init$(input, this);
300
+ this.s26_1 = input;
301
+ var tmp = this;
302
+ var tmp$ret$2;
303
+ // Inline function 'kotlin.collections.toTypedArray' call
304
+ var tmp$ret$1;
305
+ // Inline function 'kotlin.collections.map' call
306
+ var tmp1_map = values();
307
+ var tmp2_map = name$factory();
308
+ var tmp$ret$0;
309
+ // Inline function 'kotlin.collections.mapTo' call
310
+ var tmp0_mapTo = ArrayList_init_$Create$(tmp1_map.length);
311
+ var indexedObject = tmp1_map;
312
+ var inductionVariable = 0;
313
+ var last = indexedObject.length;
314
+ while (inductionVariable < last) {
315
+ var item = indexedObject[inductionVariable];
316
+ inductionVariable = inductionVariable + 1 | 0;
317
+ tmp0_mapTo.b(tmp2_map(item));
318
+ }
319
+ tmp$ret$0 = tmp0_mapTo;
320
+ tmp$ret$1 = tmp$ret$0;
321
+ var tmp3_toTypedArray = tmp$ret$1;
322
+ tmp$ret$2 = copyToArray(tmp3_toTypedArray);
323
+ tmp.t26_1 = tmp$ret$2;
324
+ var tmp_0 = this;
325
+ var tmp_1 = Companion_getInstance_1().y25_1;
326
+ var tmp_2 = Companion_getInstance_1().r25_1;
327
+ tmp_0.c1d_1 = new LexerATNSimulator(this, tmp_1, isArray(tmp_2) ? tmp_2 : THROW_CCE(), Companion_getInstance_1().s25_1);
328
+ }
329
+ protoOf(StateExpressionLexer).v1f = function () {
330
+ var tmp$ret$3;
331
+ // Inline function 'kotlin.collections.toTypedArray' call
332
+ var tmp$ret$2;
333
+ // Inline function 'kotlin.collections.map' call
334
+ var tmp1_map = values_0();
335
+ var tmp$ret$1;
336
+ // Inline function 'kotlin.collections.mapTo' call
337
+ var tmp0_mapTo = ArrayList_init_$Create$(tmp1_map.length);
338
+ var indexedObject = tmp1_map;
339
+ var inductionVariable = 0;
340
+ var last = indexedObject.length;
341
+ while (inductionVariable < last) {
342
+ var item = indexedObject[inductionVariable];
343
+ inductionVariable = inductionVariable + 1 | 0;
344
+ var tmp$ret$0;
345
+ // Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.StateExpressionLexer.<get-ruleNames>.<anonymous>' call
346
+ tmp$ret$0 = item.c4_1;
347
+ tmp0_mapTo.b(tmp$ret$0);
348
+ }
349
+ tmp$ret$1 = tmp0_mapTo;
350
+ tmp$ret$2 = tmp$ret$1;
351
+ var tmp2_toTypedArray = tmp$ret$2;
352
+ tmp$ret$3 = copyToArray(tmp2_toTypedArray);
353
+ return tmp$ret$3;
354
+ };
355
+ protoOf(StateExpressionLexer).m1e = function () {
356
+ return Companion_getInstance_1().y25_1;
357
+ };
358
+ protoOf(StateExpressionLexer).f1d = function () {
359
+ return Companion_getInstance_1().v25_1;
360
+ };
361
+ function name$factory() {
362
+ return getPropertyCallableRef('name', 1, KProperty1, function (receiver) {
363
+ return receiver.c4_1;
364
+ }, null);
365
+ }
366
+ function StateExpressionListener() {
367
+ }
368
+ var Tokens_EOF_instance;
369
+ var Tokens_EQ_instance;
370
+ var Tokens_NEQ_instance;
371
+ var Tokens_AND_instance;
372
+ var Tokens_OR_instance;
373
+ var Tokens_NOT_instance;
374
+ var Tokens_GTE_instance;
375
+ var Tokens_GT_instance;
376
+ var Tokens_LTE_instance;
377
+ var Tokens_LT_instance;
378
+ var Tokens_OPAR_instance;
379
+ var Tokens_CPAR_instance;
380
+ var Tokens_TRUE_instance;
381
+ var Tokens_FALSE_instance;
382
+ var Tokens_FUNC_ISSET_instance;
383
+ var Tokens_FUNC_VALUES_instance;
384
+ var Tokens_INT_instance;
385
+ var Tokens_STRING_instance;
386
+ var Tokens_VAR_instance;
387
+ var Tokens_entriesInitialized;
388
+ function Tokens_initEntries() {
389
+ if (Tokens_entriesInitialized)
390
+ return Unit_getInstance();
391
+ Tokens_entriesInitialized = true;
392
+ Tokens_EOF_instance = new Tokens('EOF', 0, -1);
393
+ Tokens_EQ_instance = new Tokens('EQ', 1, 1);
394
+ Tokens_NEQ_instance = new Tokens('NEQ', 2, 2);
395
+ Tokens_AND_instance = new Tokens('AND', 3, 3);
396
+ Tokens_OR_instance = new Tokens('OR', 4, 4);
397
+ Tokens_NOT_instance = new Tokens('NOT', 5, 5);
398
+ Tokens_GTE_instance = new Tokens('GTE', 6, 6);
399
+ Tokens_GT_instance = new Tokens('GT', 7, 7);
400
+ Tokens_LTE_instance = new Tokens('LTE', 8, 8);
401
+ Tokens_LT_instance = new Tokens('LT', 9, 9);
402
+ Tokens_OPAR_instance = new Tokens('OPAR', 10, 10);
403
+ Tokens_CPAR_instance = new Tokens('CPAR', 11, 11);
404
+ Tokens_TRUE_instance = new Tokens('TRUE', 12, 12);
405
+ Tokens_FALSE_instance = new Tokens('FALSE', 13, 13);
406
+ Tokens_FUNC_ISSET_instance = new Tokens('FUNC_ISSET', 14, 14);
407
+ Tokens_FUNC_VALUES_instance = new Tokens('FUNC_VALUES', 15, 15);
408
+ Tokens_INT_instance = new Tokens('INT', 16, 16);
409
+ Tokens_STRING_instance = new Tokens('STRING', 17, 17);
410
+ Tokens_VAR_instance = new Tokens('VAR', 18, 18);
411
+ }
412
+ var Rules_RULE_booleanExpr_instance;
413
+ var Rules_RULE_intExpr_instance;
414
+ var Rules_entriesInitialized_0;
415
+ function Rules_initEntries_0() {
416
+ if (Rules_entriesInitialized_0)
417
+ return Unit_getInstance();
418
+ Rules_entriesInitialized_0 = true;
419
+ Rules_RULE_booleanExpr_instance = new Rules_0('RULE_booleanExpr', 0, 0);
420
+ Rules_RULE_intExpr_instance = new Rules_0('RULE_intExpr', 1, 1);
421
+ }
422
+ function BooleanExprContext_init_$Init$(parent, invokingState, $this) {
423
+ ParserRuleContext_init_$Init$(parent, invokingState, $this);
424
+ BooleanExprContext.call($this);
425
+ return $this;
426
+ }
427
+ function BooleanExprContext_init_$Create$(parent, invokingState) {
428
+ return BooleanExprContext_init_$Init$(parent, invokingState, objectCreate(protoOf(BooleanExprContext)));
429
+ }
430
+ function BooleanExprContext_init_$Init$_0($this) {
431
+ ParserRuleContext_init_$Init$_0($this);
432
+ BooleanExprContext.call($this);
433
+ return $this;
434
+ }
435
+ function IntCmpExprContext_init_$Init$(ctx, $this) {
436
+ BooleanExprContext_init_$Init$_0($this);
437
+ IntCmpExprContext.call($this);
438
+ $this.x27(ctx);
439
+ return $this;
440
+ }
441
+ function IntCmpExprContext_init_$Create$(ctx) {
442
+ return IntCmpExprContext_init_$Init$(ctx, objectCreate(protoOf(IntCmpExprContext)));
443
+ }
444
+ function ParExprContext_init_$Init$(ctx, $this) {
445
+ BooleanExprContext_init_$Init$_0($this);
446
+ ParExprContext.call($this);
447
+ $this.x27(ctx);
448
+ return $this;
449
+ }
450
+ function ParExprContext_init_$Create$(ctx) {
451
+ return ParExprContext_init_$Init$(ctx, objectCreate(protoOf(ParExprContext)));
452
+ }
453
+ function BooleanAtomContext_init_$Init$(ctx, $this) {
454
+ BooleanExprContext_init_$Init$_0($this);
455
+ BooleanAtomContext.call($this);
456
+ $this.x27(ctx);
457
+ return $this;
458
+ }
459
+ function BooleanAtomContext_init_$Create$(ctx) {
460
+ return BooleanAtomContext_init_$Init$(ctx, objectCreate(protoOf(BooleanAtomContext)));
461
+ }
462
+ function EqExprContext_init_$Init$(ctx, $this) {
463
+ BooleanExprContext_init_$Init$_0($this);
464
+ EqExprContext.call($this);
465
+ $this.x27(ctx);
466
+ return $this;
467
+ }
468
+ function EqExprContext_init_$Create$(ctx) {
469
+ return EqExprContext_init_$Init$(ctx, objectCreate(protoOf(EqExprContext)));
470
+ }
471
+ function NotExprContext_init_$Init$(ctx, $this) {
472
+ BooleanExprContext_init_$Init$_0($this);
473
+ NotExprContext.call($this);
474
+ $this.x27(ctx);
475
+ return $this;
476
+ }
477
+ function NotExprContext_init_$Create$(ctx) {
478
+ return NotExprContext_init_$Init$(ctx, objectCreate(protoOf(NotExprContext)));
479
+ }
480
+ function IsSetFuncContext_init_$Init$(ctx, $this) {
481
+ BooleanExprContext_init_$Init$_0($this);
482
+ IsSetFuncContext.call($this);
483
+ $this.x27(ctx);
484
+ return $this;
485
+ }
486
+ function IsSetFuncContext_init_$Create$(ctx) {
487
+ return IsSetFuncContext_init_$Init$(ctx, objectCreate(protoOf(IsSetFuncContext)));
488
+ }
489
+ function OrExprContext_init_$Init$(ctx, $this) {
490
+ BooleanExprContext_init_$Init$_0($this);
491
+ OrExprContext.call($this);
492
+ $this.x27(ctx);
493
+ return $this;
494
+ }
495
+ function OrExprContext_init_$Create$(ctx) {
496
+ return OrExprContext_init_$Init$(ctx, objectCreate(protoOf(OrExprContext)));
497
+ }
498
+ function AndExprContext_init_$Init$(ctx, $this) {
499
+ BooleanExprContext_init_$Init$_0($this);
500
+ AndExprContext.call($this);
501
+ $this.x27(ctx);
502
+ return $this;
503
+ }
504
+ function AndExprContext_init_$Create$(ctx) {
505
+ return AndExprContext_init_$Init$(ctx, objectCreate(protoOf(AndExprContext)));
506
+ }
507
+ function IntExprContext_init_$Init$(parent, invokingState, $this) {
508
+ ParserRuleContext_init_$Init$(parent, invokingState, $this);
509
+ IntExprContext.call($this);
510
+ return $this;
511
+ }
512
+ function IntExprContext_init_$Create$(parent, invokingState) {
513
+ return IntExprContext_init_$Init$(parent, invokingState, objectCreate(protoOf(IntExprContext)));
514
+ }
515
+ function IntExprContext_init_$Init$_0($this) {
516
+ ParserRuleContext_init_$Init$_0($this);
517
+ IntExprContext.call($this);
518
+ return $this;
519
+ }
520
+ function IntAtomContext_init_$Init$(ctx, $this) {
521
+ IntExprContext_init_$Init$_0($this);
522
+ IntAtomContext.call($this);
523
+ $this.f28(ctx);
524
+ return $this;
525
+ }
526
+ function IntAtomContext_init_$Create$(ctx) {
527
+ return IntAtomContext_init_$Init$(ctx, objectCreate(protoOf(IntAtomContext)));
528
+ }
529
+ function ParIntExprContext_init_$Init$(ctx, $this) {
530
+ IntExprContext_init_$Init$_0($this);
531
+ ParIntExprContext.call($this);
532
+ $this.f28(ctx);
533
+ return $this;
534
+ }
535
+ function ParIntExprContext_init_$Create$(ctx) {
536
+ return ParIntExprContext_init_$Init$(ctx, objectCreate(protoOf(ParIntExprContext)));
537
+ }
538
+ function ValuesFuncContext_init_$Init$(ctx, $this) {
539
+ IntExprContext_init_$Init$_0($this);
540
+ ValuesFuncContext.call($this);
541
+ $this.f28(ctx);
542
+ return $this;
543
+ }
544
+ function ValuesFuncContext_init_$Create$(ctx) {
545
+ return ValuesFuncContext_init_$Init$(ctx, objectCreate(protoOf(ValuesFuncContext)));
546
+ }
547
+ function Tokens(name, ordinal, id) {
548
+ Enum.call(this, name, ordinal);
549
+ this.i28_1 = id;
550
+ }
551
+ function Rules_0(name, ordinal, id) {
552
+ Enum.call(this, name, ordinal);
553
+ this.l28_1 = id;
554
+ }
555
+ function Companion_0() {
556
+ Companion_instance_0 = this;
557
+ this.n28_1 = new PredictionContextCache();
558
+ var tmp = this;
559
+ var tmp$ret$2;
560
+ // Inline function 'kotlin.arrayOf' call
561
+ var tmp$ret$1;
562
+ // Inline function 'kotlin.js.unsafeCast' call
563
+ var tmp$ret$0;
564
+ // Inline function 'kotlin.js.asDynamic' call
565
+ tmp$ret$0 = ['booleanExpr', 'intExpr'];
566
+ tmp$ret$1 = tmp$ret$0;
567
+ tmp$ret$2 = tmp$ret$1;
568
+ tmp.o28_1 = tmp$ret$2;
569
+ this.p28_1 = listOf([null, "'=='", "'!='", "'&&'", "'||'", "'!'", "'>='", "'>'", "'<='", "'<'", "'('", "')'", "'true'", "'false'"]);
570
+ this.q28_1 = listOf([null, 'EQ', 'NEQ', 'AND', 'OR', 'NOT', 'GTE', 'GT', 'LTE', 'LT', 'OPAR', 'CPAR', 'TRUE', 'FALSE', 'FUNC_ISSET', 'FUNC_VALUES', 'INT', 'STRING', 'VAR']);
571
+ var tmp_0 = this;
572
+ var tmp$ret$3;
573
+ // Inline function 'kotlin.collections.toTypedArray' call
574
+ var tmp0_toTypedArray = this.p28_1;
575
+ tmp$ret$3 = copyToArray(tmp0_toTypedArray);
576
+ var tmp_1 = tmp$ret$3;
577
+ var tmp$ret$4;
578
+ // Inline function 'kotlin.collections.toTypedArray' call
579
+ var tmp1_toTypedArray = this.q28_1;
580
+ tmp$ret$4 = copyToArray(tmp1_toTypedArray);
581
+ tmp_0.r28_1 = new VocabularyImpl(tmp_1, tmp$ret$4);
582
+ var tmp_2 = this;
583
+ var tmp_3 = 0;
584
+ var tmp_4 = this.q28_1.i();
585
+ var tmp$ret$5;
586
+ // Inline function 'kotlin.arrayOfNulls' call
587
+ tmp$ret$5 = fillArrayVal(Array(tmp_4), null);
588
+ var tmp_5 = tmp$ret$5;
589
+ while (tmp_3 < tmp_4) {
590
+ var tmp_6 = tmp_3;
591
+ var tmp$ret$6;
592
+ // Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.Companion.tokenNames.<anonymous>' call
593
+ var el = Companion_getInstance_2().r28_1.s1l(tmp_6);
594
+ if (el == null) {
595
+ el = Companion_getInstance_2().r28_1.t1l(tmp_6);
596
+ }
597
+ if (el == null) {
598
+ el = '<INVALID>';
599
+ }
600
+ tmp$ret$6 = el;
601
+ tmp_5[tmp_6] = tmp$ret$6;
602
+ tmp_3 = tmp_3 + 1 | 0;
603
+ }
604
+ tmp_2.s28_1 = tmp_5;
605
+ this.t28_1 = '\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786\u5964\x03\x140\x04\x02\t\x02\x04\x03\t\x03\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x05\x02\x19\n\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x07\x02!\n\x02\f\x02\x0E\x02$\x0B\x02\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x05\x03.\n\x03\x03\x03\x02\x03\x02\x04\x02\x04\x02\x05\x03\x02\x03\x04\x04\x02\x03\x04\b\x0B\x03\x02\x0E\x0F\x026\x02\x18\x03\x02\x02\x02\x04-\x03\x02\x02\x02\x06\x07\b\x02\x01\x02\x07\b\x07\f\x02\x02\b\t\x05\x02\x02\x02\t\n\x07\r\x02\x02\n\x19\x03\x02\x02\x02\x0B\f\x07\x07\x02\x02\f\x19\x05\x02\x02\t\r\x0E\x07\x10\x02\x02\x0E\x0F\x07\x14\x02\x02\x0F\x19\x07\r\x02\x02\x10\x11\x07\x14\x02\x02\x11\x12\t\x02\x02\x02\x12\x19\x07\x13\x02\x02\x13\x14\x05\x04\x03\x02\x14\x15\t\x03\x02\x02\x15\x16\x05\x04\x03\x02\x16\x19\x03\x02\x02\x02\x17\x19\t\x04\x02\x02\x18\x06\x03\x02\x02\x02\x18\x0B\x03\x02\x02\x02\x18\r\x03\x02\x02\x02\x18\x10\x03\x02\x02\x02\x18\x13\x03\x02\x02\x02\x18\x17\x03\x02\x02\x02\x19"\x03\x02\x02\x02\x1A\x1B\f\b\x02\x02\x1B\x1C\x07\x05\x02\x02\x1C!\x05\x02\x02\t\x1D\x1E\f\x07\x02\x02\x1E\x1F\x07\x06\x02\x02\x1F!\x05\x02\x02\b \x1A\x03\x02\x02\x02 \x1D\x03\x02\x02\x02!$\x03\x02\x02\x02" \x03\x02\x02\x02"#\x03\x02\x02\x02#\x03\x03\x02\x02\x02$"\x03\x02\x02\x02%&\x07\f\x02\x02&\'\x05\x04\x03\x02\'(\x07\r\x02\x02(.\x03\x02\x02\x02)*\x07\x11\x02\x02*+\x07\x14\x02\x02+.\x07\r\x02\x02,.\x07\x12\x02\x02-%\x03\x02\x02\x02-)\x03\x02\x02\x02-,\x03\x02\x02\x02.\x05\x03\x02\x02\x02\x06\x18 "-';
606
+ this.u28_1 = (new ATNDeserializer()).d1q(asCharArray('\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786\u5964\x03\x140\x04\x02\t\x02\x04\x03\t\x03\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x05\x02\x19\n\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x07\x02!\n\x02\f\x02\x0E\x02$\x0B\x02\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x05\x03.\n\x03\x03\x03\x02\x03\x02\x04\x02\x04\x02\x05\x03\x02\x03\x04\x04\x02\x03\x04\b\x0B\x03\x02\x0E\x0F\x026\x02\x18\x03\x02\x02\x02\x04-\x03\x02\x02\x02\x06\x07\b\x02\x01\x02\x07\b\x07\f\x02\x02\b\t\x05\x02\x02\x02\t\n\x07\r\x02\x02\n\x19\x03\x02\x02\x02\x0B\f\x07\x07\x02\x02\f\x19\x05\x02\x02\t\r\x0E\x07\x10\x02\x02\x0E\x0F\x07\x14\x02\x02\x0F\x19\x07\r\x02\x02\x10\x11\x07\x14\x02\x02\x11\x12\t\x02\x02\x02\x12\x19\x07\x13\x02\x02\x13\x14\x05\x04\x03\x02\x14\x15\t\x03\x02\x02\x15\x16\x05\x04\x03\x02\x16\x19\x03\x02\x02\x02\x17\x19\t\x04\x02\x02\x18\x06\x03\x02\x02\x02\x18\x0B\x03\x02\x02\x02\x18\r\x03\x02\x02\x02\x18\x10\x03\x02\x02\x02\x18\x13\x03\x02\x02\x02\x18\x17\x03\x02\x02\x02\x19"\x03\x02\x02\x02\x1A\x1B\f\b\x02\x02\x1B\x1C\x07\x05\x02\x02\x1C!\x05\x02\x02\t\x1D\x1E\f\x07\x02\x02\x1E\x1F\x07\x06\x02\x02\x1F!\x05\x02\x02\b \x1A\x03\x02\x02\x02 \x1D\x03\x02\x02\x02!$\x03\x02\x02\x02" \x03\x02\x02\x02"#\x03\x02\x02\x02#\x03\x03\x02\x02\x02$"\x03\x02\x02\x02%&\x07\f\x02\x02&\'\x05\x04\x03\x02\'(\x07\r\x02\x02(.\x03\x02\x02\x02)*\x07\x11\x02\x02*+\x07\x14\x02\x02+.\x07\r\x02\x02,.\x07\x12\x02\x02-%\x03\x02\x02\x02-)\x03\x02\x02\x02-,\x03\x02\x02\x02.\x05\x03\x02\x02\x02\x06\x18 "-'));
607
+ var tmp_7 = this;
608
+ var tmp_8 = 0;
609
+ var tmp_9 = this.u28_1.v1l();
610
+ var tmp$ret$7;
611
+ // Inline function 'kotlin.arrayOfNulls' call
612
+ tmp$ret$7 = fillArrayVal(Array(tmp_9), null);
613
+ var tmp_10 = tmp$ret$7;
614
+ while (tmp_8 < tmp_9) {
615
+ var tmp_11 = tmp_8;
616
+ var tmp$ret$8;
617
+ // Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.Companion.<anonymous>' call
618
+ tmp$ret$8 = new DFA(ensureNotNull(Companion_getInstance_2().u28_1.j1m(tmp_11)), tmp_11);
619
+ tmp_10[tmp_11] = tmp$ret$8;
620
+ tmp_8 = tmp_8 + 1 | 0;
621
+ }
622
+ tmp_7.m28_1 = tmp_10;
623
+ }
624
+ var Companion_instance_0;
625
+ function Companion_getInstance_2() {
626
+ if (Companion_instance_0 == null)
627
+ new Companion_0();
628
+ return Companion_instance_0;
629
+ }
630
+ protoOf(BooleanExprContext).w1f = function () {
631
+ return Rules_RULE_booleanExpr_getInstance().l28_1;
632
+ };
633
+ protoOf(BooleanExprContext).x27 = function (ctx) {
634
+ protoOf(ParserRuleContext).x1k.call(this, ctx);
635
+ };
636
+ function BooleanExprContext() {
637
+ }
638
+ protoOf(IntCmpExprContext).b1k = function (listener) {
639
+ if (isInterface(listener, StateExpressionListener)) {
640
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).u26(this);
641
+ }
642
+ };
643
+ protoOf(IntCmpExprContext).d1k = function (listener) {
644
+ if (isInterface(listener, StateExpressionListener)) {
645
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).v26(this);
646
+ }
647
+ };
648
+ function IntCmpExprContext() {
649
+ this.c29_1 = null;
650
+ this.d29_1 = null;
651
+ this.e29_1 = null;
652
+ }
653
+ protoOf(ParExprContext).b1k = function (listener) {
654
+ if (isInterface(listener, StateExpressionListener)) {
655
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).w26(this);
656
+ }
657
+ };
658
+ protoOf(ParExprContext).d1k = function (listener) {
659
+ if (isInterface(listener, StateExpressionListener)) {
660
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).x26(this);
661
+ }
662
+ };
663
+ function ParExprContext() {
664
+ this.m29_1 = null;
665
+ }
666
+ protoOf(BooleanAtomContext).b1k = function (listener) {
667
+ if (isInterface(listener, StateExpressionListener)) {
668
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).y26(this);
669
+ }
670
+ };
671
+ protoOf(BooleanAtomContext).d1k = function (listener) {
672
+ if (isInterface(listener, StateExpressionListener)) {
673
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).z26(this);
674
+ }
675
+ };
676
+ function BooleanAtomContext() {
677
+ this.u29_1 = null;
678
+ }
679
+ protoOf(EqExprContext).b1k = function (listener) {
680
+ if (isInterface(listener, StateExpressionListener)) {
681
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).a27(this);
682
+ }
683
+ };
684
+ protoOf(EqExprContext).d1k = function (listener) {
685
+ if (isInterface(listener, StateExpressionListener)) {
686
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).b27(this);
687
+ }
688
+ };
689
+ function EqExprContext() {
690
+ this.c2a_1 = null;
691
+ this.d2a_1 = null;
692
+ this.e2a_1 = null;
693
+ }
694
+ protoOf(NotExprContext).b1k = function (listener) {
695
+ if (isInterface(listener, StateExpressionListener)) {
696
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).c27(this);
697
+ }
698
+ };
699
+ protoOf(NotExprContext).d1k = function (listener) {
700
+ if (isInterface(listener, StateExpressionListener)) {
701
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).d27(this);
702
+ }
703
+ };
704
+ function NotExprContext() {
705
+ this.m2a_1 = null;
706
+ }
707
+ protoOf(IsSetFuncContext).b1k = function (listener) {
708
+ if (isInterface(listener, StateExpressionListener)) {
709
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).e27(this);
710
+ }
711
+ };
712
+ protoOf(IsSetFuncContext).d1k = function (listener) {
713
+ if (isInterface(listener, StateExpressionListener)) {
714
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).f27(this);
715
+ }
716
+ };
717
+ function IsSetFuncContext() {
718
+ this.u2a_1 = null;
719
+ }
720
+ protoOf(OrExprContext).b1k = function (listener) {
721
+ if (isInterface(listener, StateExpressionListener)) {
722
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).g27(this);
723
+ }
724
+ };
725
+ protoOf(OrExprContext).d1k = function (listener) {
726
+ if (isInterface(listener, StateExpressionListener)) {
727
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).h27(this);
728
+ }
729
+ };
730
+ function OrExprContext() {
731
+ this.c2b_1 = null;
732
+ this.d2b_1 = null;
733
+ }
734
+ protoOf(AndExprContext).b1k = function (listener) {
735
+ if (isInterface(listener, StateExpressionListener)) {
736
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).i27(this);
737
+ }
738
+ };
739
+ protoOf(AndExprContext).d1k = function (listener) {
740
+ if (isInterface(listener, StateExpressionListener)) {
741
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).j27(this);
742
+ }
743
+ };
744
+ function AndExprContext() {
745
+ this.l2b_1 = null;
746
+ this.m2b_1 = null;
747
+ }
748
+ function booleanExpr($this, _p) {
749
+ var _parentctx = $this.s18_1;
750
+ var _parentState = $this.d1d_1;
751
+ var _localctx = BooleanExprContext_init_$Create$($this.s18_1, _parentState);
752
+ var _prevctx = _localctx;
753
+ var _startState = 0;
754
+ $this.t1k(_localctx, 0, Rules_RULE_booleanExpr_getInstance().l28_1, _p);
755
+ var _la;
756
+ try {
757
+ var _alt;
758
+ $this.q1k(_localctx, 1);
759
+ {
760
+ $this.d1d_1 = 22;
761
+ $this.p18_1.j19($this);
762
+ var tmp0_subject = ensureNotNull($this.c1d_1).r1y(ensureNotNull($this.q18_1), 0, $this.s18_1);
763
+ switch (tmp0_subject) {
764
+ case 1:
765
+ {
766
+ _localctx = ParExprContext_init_$Create$(_localctx);
767
+ $this.s18_1 = _localctx;
768
+ _prevctx = _localctx;
769
+ $this.d1d_1 = 5;
770
+ var tmp = $this.w1j($this.i2c_1);
771
+ if (isInterface(tmp, Token))
772
+ tmp;
773
+ else
774
+ THROW_CCE();
775
+ $this.d1d_1 = 6;
776
+ (_localctx instanceof ParExprContext ? _localctx : THROW_CCE()).m29_1 = booleanExpr($this, 0);
777
+ $this.d1d_1 = 7;
778
+ var tmp_0 = $this.w1j($this.j2c_1);
779
+ if (isInterface(tmp_0, Token))
780
+ tmp_0;
781
+ else
782
+ THROW_CCE();
783
+ }
784
+
785
+ break;
786
+ case 2:
787
+ {
788
+ _localctx = NotExprContext_init_$Create$(_localctx);
789
+ $this.s18_1 = _localctx;
790
+ _prevctx = _localctx;
791
+ $this.d1d_1 = 9;
792
+ var tmp_1 = $this.w1j($this.d2c_1);
793
+ if (isInterface(tmp_1, Token))
794
+ tmp_1;
795
+ else
796
+ THROW_CCE();
797
+ $this.d1d_1 = 10;
798
+ (_localctx instanceof NotExprContext ? _localctx : THROW_CCE()).m2a_1 = booleanExpr($this, 7);
799
+ }
800
+
801
+ break;
802
+ case 3:
803
+ {
804
+ _localctx = IsSetFuncContext_init_$Create$(_localctx);
805
+ $this.s18_1 = _localctx;
806
+ _prevctx = _localctx;
807
+ $this.d1d_1 = 11;
808
+ var tmp_2 = $this.w1j($this.m2c_1);
809
+ if (isInterface(tmp_2, Token))
810
+ tmp_2;
811
+ else
812
+ THROW_CCE();
813
+ $this.d1d_1 = 12;
814
+ var tmp_3 = _localctx instanceof IsSetFuncContext ? _localctx : THROW_CCE();
815
+ var tmp_4 = $this.w1j($this.q2c_1);
816
+ tmp_3.u2a_1 = isInterface(tmp_4, Token) ? tmp_4 : THROW_CCE();
817
+ $this.d1d_1 = 13;
818
+ var tmp_5 = $this.w1j($this.j2c_1);
819
+ if (isInterface(tmp_5, Token))
820
+ tmp_5;
821
+ else
822
+ THROW_CCE();
823
+ }
824
+
825
+ break;
826
+ case 4:
827
+ {
828
+ _localctx = EqExprContext_init_$Create$(_localctx);
829
+ $this.s18_1 = _localctx;
830
+ _prevctx = _localctx;
831
+ $this.d1d_1 = 14;
832
+ var tmp_6 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
833
+ var tmp_7 = $this.w1j($this.q2c_1);
834
+ tmp_6.c2a_1 = isInterface(tmp_7, Token) ? tmp_7 : THROW_CCE();
835
+ $this.d1d_1 = 15;
836
+ (_localctx instanceof EqExprContext ? _localctx : THROW_CCE()).d2a_1 = ensureNotNull($this.q18_1).j1b(1);
837
+ _la = ensureNotNull($this.q18_1).w1a(1);
838
+ if (!(_la === $this.z2b_1 ? true : _la === $this.a2c_1)) {
839
+ var tmp_8 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
840
+ var tmp_9 = $this.p18_1.i19($this);
841
+ tmp_8.d2a_1 = isInterface(tmp_9, Token) ? tmp_9 : THROW_CCE();
842
+ } else {
843
+ if (ensureNotNull($this.q18_1).w1a(1) === Tokens_EOF_getInstance().i28_1)
844
+ $this.w18_1 = true;
845
+ $this.p18_1.s19($this);
846
+ $this.v1d();
847
+ }
848
+ $this.d1d_1 = 16;
849
+ var tmp_10 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
850
+ var tmp_11 = $this.w1j($this.p2c_1);
851
+ tmp_10.e2a_1 = isInterface(tmp_11, Token) ? tmp_11 : THROW_CCE();
852
+ }
853
+
854
+ break;
855
+ case 5:
856
+ {
857
+ _localctx = IntCmpExprContext_init_$Create$(_localctx);
858
+ $this.s18_1 = _localctx;
859
+ _prevctx = _localctx;
860
+ $this.d1d_1 = 17;
861
+ (_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).c29_1 = $this.r2c();
862
+ $this.d1d_1 = 18;
863
+ (_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).d29_1 = ensureNotNull($this.q18_1).j1b(1);
864
+ _la = ensureNotNull($this.q18_1).w1a(1);
865
+ if (!((_la & -64) === 0 ? !(new Long(1, 0)).td(_la).y5((new Long(1, 0)).td($this.z2b_1).vd((new Long(1, 0)).td($this.a2c_1)).vd((new Long(1, 0)).td($this.e2c_1)).vd((new Long(1, 0)).td($this.f2c_1)).vd((new Long(1, 0)).td($this.g2c_1)).vd((new Long(1, 0)).td($this.h2c_1))).equals(new Long(0, 0)) : false)) {
866
+ var tmp_12 = _localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE();
867
+ var tmp_13 = $this.p18_1.i19($this);
868
+ tmp_12.d29_1 = isInterface(tmp_13, Token) ? tmp_13 : THROW_CCE();
869
+ } else {
870
+ if (ensureNotNull($this.q18_1).w1a(1) === Tokens_EOF_getInstance().i28_1)
871
+ $this.w18_1 = true;
872
+ $this.p18_1.s19($this);
873
+ $this.v1d();
874
+ }
875
+ $this.d1d_1 = 19;
876
+ (_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).e29_1 = $this.r2c();
877
+ }
878
+
879
+ break;
880
+ case 6:
881
+ {
882
+ _localctx = BooleanAtomContext_init_$Create$(_localctx);
883
+ $this.s18_1 = _localctx;
884
+ _prevctx = _localctx;
885
+ $this.d1d_1 = 21;
886
+ (_localctx instanceof BooleanAtomContext ? _localctx : THROW_CCE()).u29_1 = ensureNotNull($this.q18_1).j1b(1);
887
+ _la = ensureNotNull($this.q18_1).w1a(1);
888
+ if (!(_la === $this.k2c_1 ? true : _la === $this.l2c_1)) {
889
+ var tmp_14 = _localctx instanceof BooleanAtomContext ? _localctx : THROW_CCE();
890
+ var tmp_15 = $this.p18_1.i19($this);
891
+ tmp_14.u29_1 = isInterface(tmp_15, Token) ? tmp_15 : THROW_CCE();
892
+ } else {
893
+ if (ensureNotNull($this.q18_1).w1a(1) === Tokens_EOF_getInstance().i28_1)
894
+ $this.w18_1 = true;
895
+ $this.p18_1.s19($this);
896
+ $this.v1d();
897
+ }
898
+ }
899
+
900
+ break;
901
+ }
902
+ ensureNotNull($this.s18_1).c19_1 = ensureNotNull($this.q18_1).j1b(-1);
903
+ $this.d1d_1 = 32;
904
+ $this.p18_1.j19($this);
905
+ _alt = ensureNotNull($this.c1d_1).r1y(ensureNotNull($this.q18_1), 2, $this.s18_1);
906
+ while (!(_alt === 2) ? !(_alt === Companion_getInstance().u1l_1) : false) {
907
+ if (_alt === 1) {
908
+ if (!($this.u18_1 == null)) {
909
+ $this.c1k();
910
+ }
911
+ _prevctx = _localctx;
912
+ {
913
+ $this.d1d_1 = 30;
914
+ $this.p18_1.j19($this);
915
+ var tmp1_subject = ensureNotNull($this.c1d_1).r1y(ensureNotNull($this.q18_1), 1, $this.s18_1);
916
+ if (tmp1_subject === 1) {
917
+ {
918
+ _localctx = AndExprContext_init_$Create$(BooleanExprContext_init_$Create$(_parentctx, _parentState));
919
+ (_localctx instanceof AndExprContext ? _localctx : THROW_CCE()).l2b_1 = _prevctx;
920
+ $this.u1k(_localctx, _startState, Rules_RULE_booleanExpr_getInstance().l28_1);
921
+ $this.d1d_1 = 24;
922
+ if (!$this.g1j(ensureNotNull($this.s18_1), 6))
923
+ throw new FailedPredicateException($this, 'precpred(context!!, 6)');
924
+ $this.d1d_1 = 25;
925
+ var tmp_16 = $this.w1j($this.b2c_1);
926
+ if (isInterface(tmp_16, Token))
927
+ tmp_16;
928
+ else
929
+ THROW_CCE();
930
+ $this.d1d_1 = 26;
931
+ (_localctx instanceof AndExprContext ? _localctx : THROW_CCE()).m2b_1 = booleanExpr($this, 7);
932
+ }
933
+ } else if (tmp1_subject === 2) {
934
+ {
935
+ _localctx = OrExprContext_init_$Create$(BooleanExprContext_init_$Create$(_parentctx, _parentState));
936
+ (_localctx instanceof OrExprContext ? _localctx : THROW_CCE()).c2b_1 = _prevctx;
937
+ $this.u1k(_localctx, _startState, Rules_RULE_booleanExpr_getInstance().l28_1);
938
+ $this.d1d_1 = 27;
939
+ if (!$this.g1j(ensureNotNull($this.s18_1), 5))
940
+ throw new FailedPredicateException($this, 'precpred(context!!, 5)');
941
+ $this.d1d_1 = 28;
942
+ var tmp_17 = $this.w1j($this.c2c_1);
943
+ if (isInterface(tmp_17, Token))
944
+ tmp_17;
945
+ else
946
+ THROW_CCE();
947
+ $this.d1d_1 = 29;
948
+ (_localctx instanceof OrExprContext ? _localctx : THROW_CCE()).d2b_1 = booleanExpr($this, 6);
949
+ }
950
+ }
951
+ }
952
+ }
953
+ $this.d1d_1 = 34;
954
+ $this.p18_1.j19($this);
955
+ _alt = ensureNotNull($this.c1d_1).r1y(ensureNotNull($this.q18_1), 2, $this.s18_1);
956
+ }
957
+ }
958
+ } catch ($p) {
959
+ if ($p instanceof RecognitionException) {
960
+ var re = $p;
961
+ _localctx.d19_1 = re;
962
+ $this.p18_1.t19($this, re);
963
+ $this.p18_1.k18($this, re);
964
+ } else {
965
+ throw $p;
966
+ }
967
+ }
968
+ finally {
969
+ $this.w1k(_parentctx);
970
+ }
971
+ return _localctx;
972
+ }
973
+ protoOf(IntExprContext).w1f = function () {
974
+ return Rules_RULE_intExpr_getInstance().l28_1;
975
+ };
976
+ protoOf(IntExprContext).f28 = function (ctx) {
977
+ protoOf(ParserRuleContext).x1k.call(this, ctx);
978
+ };
979
+ function IntExprContext() {
980
+ }
981
+ protoOf(IntAtomContext).b1k = function (listener) {
982
+ if (isInterface(listener, StateExpressionListener)) {
983
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).o27(this);
984
+ }
985
+ };
986
+ protoOf(IntAtomContext).d1k = function (listener) {
987
+ if (isInterface(listener, StateExpressionListener)) {
988
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).p27(this);
989
+ }
990
+ };
991
+ function IntAtomContext() {
992
+ this.z2c_1 = null;
993
+ }
994
+ protoOf(ParIntExprContext).b1k = function (listener) {
995
+ if (isInterface(listener, StateExpressionListener)) {
996
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).k27(this);
997
+ }
998
+ };
999
+ protoOf(ParIntExprContext).d1k = function (listener) {
1000
+ if (isInterface(listener, StateExpressionListener)) {
1001
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).l27(this);
1002
+ }
1003
+ };
1004
+ function ParIntExprContext() {
1005
+ this.h2d_1 = null;
1006
+ }
1007
+ protoOf(ValuesFuncContext).b1k = function (listener) {
1008
+ if (isInterface(listener, StateExpressionListener)) {
1009
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).m27(this);
1010
+ }
1011
+ };
1012
+ protoOf(ValuesFuncContext).d1k = function (listener) {
1013
+ if (isInterface(listener, StateExpressionListener)) {
1014
+ (isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).n27(this);
1015
+ }
1016
+ };
1017
+ function ValuesFuncContext() {
1018
+ this.p2d_1 = null;
1019
+ }
1020
+ function booleanExpr_sempred($this, _localctx, predIndex) {
1021
+ var tmp0_subject = predIndex;
1022
+ if (tmp0_subject === 0)
1023
+ return $this.g1j(ensureNotNull($this.s18_1), 6);
1024
+ else if (tmp0_subject === 1)
1025
+ return $this.g1j(ensureNotNull($this.s18_1), 5);
1026
+ return true;
1027
+ }
1028
+ function Tokens_EOF_getInstance() {
1029
+ Tokens_initEntries();
1030
+ return Tokens_EOF_instance;
1031
+ }
1032
+ function Tokens_EQ_getInstance() {
1033
+ Tokens_initEntries();
1034
+ return Tokens_EQ_instance;
1035
+ }
1036
+ function Tokens_NEQ_getInstance() {
1037
+ Tokens_initEntries();
1038
+ return Tokens_NEQ_instance;
1039
+ }
1040
+ function Tokens_AND_getInstance() {
1041
+ Tokens_initEntries();
1042
+ return Tokens_AND_instance;
1043
+ }
1044
+ function Tokens_OR_getInstance() {
1045
+ Tokens_initEntries();
1046
+ return Tokens_OR_instance;
1047
+ }
1048
+ function Tokens_NOT_getInstance() {
1049
+ Tokens_initEntries();
1050
+ return Tokens_NOT_instance;
1051
+ }
1052
+ function Tokens_GTE_getInstance() {
1053
+ Tokens_initEntries();
1054
+ return Tokens_GTE_instance;
1055
+ }
1056
+ function Tokens_GT_getInstance() {
1057
+ Tokens_initEntries();
1058
+ return Tokens_GT_instance;
1059
+ }
1060
+ function Tokens_LTE_getInstance() {
1061
+ Tokens_initEntries();
1062
+ return Tokens_LTE_instance;
1063
+ }
1064
+ function Tokens_LT_getInstance() {
1065
+ Tokens_initEntries();
1066
+ return Tokens_LT_instance;
1067
+ }
1068
+ function Tokens_OPAR_getInstance() {
1069
+ Tokens_initEntries();
1070
+ return Tokens_OPAR_instance;
1071
+ }
1072
+ function Tokens_CPAR_getInstance() {
1073
+ Tokens_initEntries();
1074
+ return Tokens_CPAR_instance;
1075
+ }
1076
+ function Tokens_TRUE_getInstance() {
1077
+ Tokens_initEntries();
1078
+ return Tokens_TRUE_instance;
1079
+ }
1080
+ function Tokens_FALSE_getInstance() {
1081
+ Tokens_initEntries();
1082
+ return Tokens_FALSE_instance;
1083
+ }
1084
+ function Tokens_FUNC_ISSET_getInstance() {
1085
+ Tokens_initEntries();
1086
+ return Tokens_FUNC_ISSET_instance;
1087
+ }
1088
+ function Tokens_FUNC_VALUES_getInstance() {
1089
+ Tokens_initEntries();
1090
+ return Tokens_FUNC_VALUES_instance;
1091
+ }
1092
+ function Tokens_INT_getInstance() {
1093
+ Tokens_initEntries();
1094
+ return Tokens_INT_instance;
1095
+ }
1096
+ function Tokens_STRING_getInstance() {
1097
+ Tokens_initEntries();
1098
+ return Tokens_STRING_instance;
1099
+ }
1100
+ function Tokens_VAR_getInstance() {
1101
+ Tokens_initEntries();
1102
+ return Tokens_VAR_instance;
1103
+ }
1104
+ function Rules_RULE_booleanExpr_getInstance() {
1105
+ Rules_initEntries_0();
1106
+ return Rules_RULE_booleanExpr_instance;
1107
+ }
1108
+ function Rules_RULE_intExpr_getInstance() {
1109
+ Rules_initEntries_0();
1110
+ return Rules_RULE_intExpr_instance;
1111
+ }
1112
+ function StateExpressionParser(input) {
1113
+ Companion_getInstance_2();
1114
+ Parser.call(this, input);
1115
+ this.z2b_1 = Tokens_EQ_getInstance().i28_1;
1116
+ this.a2c_1 = Tokens_NEQ_getInstance().i28_1;
1117
+ this.b2c_1 = Tokens_AND_getInstance().i28_1;
1118
+ this.c2c_1 = Tokens_OR_getInstance().i28_1;
1119
+ this.d2c_1 = Tokens_NOT_getInstance().i28_1;
1120
+ this.e2c_1 = Tokens_GTE_getInstance().i28_1;
1121
+ this.f2c_1 = Tokens_GT_getInstance().i28_1;
1122
+ this.g2c_1 = Tokens_LTE_getInstance().i28_1;
1123
+ this.h2c_1 = Tokens_LT_getInstance().i28_1;
1124
+ this.i2c_1 = Tokens_OPAR_getInstance().i28_1;
1125
+ this.j2c_1 = Tokens_CPAR_getInstance().i28_1;
1126
+ this.k2c_1 = Tokens_TRUE_getInstance().i28_1;
1127
+ this.l2c_1 = Tokens_FALSE_getInstance().i28_1;
1128
+ this.m2c_1 = Tokens_FUNC_ISSET_getInstance().i28_1;
1129
+ this.n2c_1 = Tokens_FUNC_VALUES_getInstance().i28_1;
1130
+ this.o2c_1 = Tokens_INT_getInstance().i28_1;
1131
+ this.p2c_1 = Tokens_STRING_getInstance().i28_1;
1132
+ this.q2c_1 = Tokens_VAR_getInstance().i28_1;
1133
+ this.c1d_1 = new ParserATNSimulator(this, Companion_getInstance_2().u28_1, Companion_getInstance_2().m28_1, Companion_getInstance_2().n28_1);
1134
+ }
1135
+ protoOf(StateExpressionParser).v1f = function () {
1136
+ return Companion_getInstance_2().o28_1;
1137
+ };
1138
+ protoOf(StateExpressionParser).m1e = function () {
1139
+ return Companion_getInstance_2().u28_1;
1140
+ };
1141
+ protoOf(StateExpressionParser).f1d = function () {
1142
+ return Companion_getInstance_2().r28_1;
1143
+ };
1144
+ protoOf(StateExpressionParser).q2d = function () {
1145
+ return booleanExpr(this, 0);
1146
+ };
1147
+ protoOf(StateExpressionParser).r2c = function () {
1148
+ var _localctx = IntExprContext_init_$Create$(this.s18_1, this.d1d_1);
1149
+ this.o1k(_localctx, 2, Rules_RULE_intExpr_getInstance().l28_1);
1150
+ try {
1151
+ this.d1d_1 = 43;
1152
+ this.p18_1.j19(this);
1153
+ var tmp0_subject = ensureNotNull(this.q18_1).w1a(1);
1154
+ if (tmp0_subject === this.i2c_1) {
1155
+ _localctx = ParIntExprContext_init_$Create$(_localctx);
1156
+ this.q1k(_localctx, 1);
1157
+ {
1158
+ this.d1d_1 = 35;
1159
+ var tmp = this.w1j(this.i2c_1);
1160
+ if (isInterface(tmp, Token))
1161
+ tmp;
1162
+ else
1163
+ THROW_CCE();
1164
+ this.d1d_1 = 36;
1165
+ (_localctx instanceof ParIntExprContext ? _localctx : THROW_CCE()).h2d_1 = this.r2c();
1166
+ this.d1d_1 = 37;
1167
+ var tmp_0 = this.w1j(this.j2c_1);
1168
+ if (isInterface(tmp_0, Token))
1169
+ tmp_0;
1170
+ else
1171
+ THROW_CCE();
1172
+ }
1173
+ } else if (tmp0_subject === this.n2c_1) {
1174
+ _localctx = ValuesFuncContext_init_$Create$(_localctx);
1175
+ this.q1k(_localctx, 2);
1176
+ {
1177
+ this.d1d_1 = 39;
1178
+ var tmp_1 = this.w1j(this.n2c_1);
1179
+ if (isInterface(tmp_1, Token))
1180
+ tmp_1;
1181
+ else
1182
+ THROW_CCE();
1183
+ this.d1d_1 = 40;
1184
+ var tmp_2 = _localctx instanceof ValuesFuncContext ? _localctx : THROW_CCE();
1185
+ var tmp_3 = this.w1j(this.q2c_1);
1186
+ tmp_2.p2d_1 = isInterface(tmp_3, Token) ? tmp_3 : THROW_CCE();
1187
+ this.d1d_1 = 41;
1188
+ var tmp_4 = this.w1j(this.j2c_1);
1189
+ if (isInterface(tmp_4, Token))
1190
+ tmp_4;
1191
+ else
1192
+ THROW_CCE();
1193
+ }
1194
+ } else if (tmp0_subject === this.o2c_1) {
1195
+ _localctx = IntAtomContext_init_$Create$(_localctx);
1196
+ this.q1k(_localctx, 3);
1197
+ {
1198
+ this.d1d_1 = 42;
1199
+ var tmp_5 = _localctx instanceof IntAtomContext ? _localctx : THROW_CCE();
1200
+ var tmp_6 = this.w1j(this.o2c_1);
1201
+ tmp_5.z2c_1 = isInterface(tmp_6, Token) ? tmp_6 : THROW_CCE();
1202
+ }
1203
+ } else
1204
+ throw new NoViableAltException(this);
1205
+ } catch ($p) {
1206
+ if ($p instanceof RecognitionException) {
1207
+ var re = $p;
1208
+ _localctx.d19_1 = re;
1209
+ this.p18_1.t19(this, re);
1210
+ this.p18_1.k18(this, re);
1211
+ } else {
1212
+ throw $p;
1213
+ }
1214
+ }
1215
+ finally {
1216
+ this.p1k();
1217
+ }
1218
+ return _localctx;
1219
+ };
1220
+ protoOf(StateExpressionParser).f1j = function (_localctx, ruleIndex, predIndex) {
1221
+ var tmp0_subject = ruleIndex;
1222
+ if (tmp0_subject === 0) {
1223
+ return booleanExpr_sempred(this, _localctx instanceof BooleanExprContext ? _localctx : THROW_CCE(), predIndex);
1224
+ }
1225
+ return true;
1226
+ };
1227
+ function Expression(expr) {
1228
+ this.r2d_1 = expr;
1229
+ }
1230
+ protoOf(Expression).s2d = function () {
1231
+ return !(this.r2d_1 == null);
1232
+ };
1233
+ function toExpressionOrNull(_this__u8e3s4) {
1234
+ var tmp;
1235
+ var tmp$ret$0;
1236
+ // Inline function 'kotlin.text.isNullOrBlank' call
1237
+ // Inline function 'kotlin.contracts.contract' call
1238
+ tmp$ret$0 = _this__u8e3s4 == null ? true : isBlank(_this__u8e3s4);
1239
+ if (tmp$ret$0) {
1240
+ tmp = null;
1241
+ } else {
1242
+ var tmp_0;
1243
+ try {
1244
+ var tokens = new CommonTokenStream(new StateExpressionLexer(CharStreams_getInstance().c18(_this__u8e3s4)));
1245
+ var parser = new StateExpressionParser(tokens);
1246
+ parser.p18_1 = new BailErrorStrategy();
1247
+ var expr = parser.q2d();
1248
+ tmp_0 = tokens.j(tokens.o1a()).b1b() === Companion_getInstance_0().f1b_1 ? expr : null;
1249
+ } catch ($p) {
1250
+ var tmp_1;
1251
+ if ($p instanceof ParseCancellationException) {
1252
+ var e = $p;
1253
+ tmp_1 = null;
1254
+ } else {
1255
+ throw $p;
1256
+ }
1257
+ tmp_0 = tmp_1;
1258
+ }
1259
+ tmp = new Expression(tmp_0);
1260
+ }
1261
+ return tmp;
1262
+ }
1263
+ //region block: exports
1264
+ _.$_$ = _.$_$ || {};
1265
+ _.$_$.a = toExpressionOrNull;
11
1266
  //endregion
12
1267
  return _;
13
1268
  }));