game_client_logic_deb 1.8.323 → 1.8.325
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/Logic_Debertz-core.js +12 -3
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +148 -62
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +12 -5
- package/Logic_Debertz-game_client.js +4 -6
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -308,6 +308,7 @@
|
|
|
308
308
|
var firstOrNull_1 = kotlin_kotlin.$_$.u7;
|
|
309
309
|
var BufferedAction = kotlin_io_raspberryapps_game_engine_core.$_$.a2;
|
|
310
310
|
var IgnoreBufferForAction = kotlin_io_raspberryapps_game_engine_core.$_$.g2;
|
|
311
|
+
var ProcessingReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.w4;
|
|
311
312
|
var ReleaseBufferTriggerAction = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
|
|
312
313
|
var ignoreExpectant = kotlin_io_raspberryapps_game_engine_core.$_$.b2;
|
|
313
314
|
var manualExpectantHandling = kotlin_io_raspberryapps_game_engine_core.$_$.d2;
|
|
@@ -29078,8 +29079,8 @@
|
|
|
29078
29079
|
tmp0_serialDesc.u4e('gameId', false);
|
|
29079
29080
|
tmp0_serialDesc.u4e('createdAt', false);
|
|
29080
29081
|
tmp0_serialDesc.u4e('round', false);
|
|
29081
|
-
tmp0_serialDesc.u4e('gameWinners',
|
|
29082
|
-
tmp0_serialDesc.u4e('metadata',
|
|
29082
|
+
tmp0_serialDesc.u4e('gameWinners', false);
|
|
29083
|
+
tmp0_serialDesc.u4e('metadata', false);
|
|
29083
29084
|
this.z88_1 = tmp0_serialDesc;
|
|
29084
29085
|
}
|
|
29085
29086
|
protoOf($serializer_88).a89 = function (encoder, value) {
|
|
@@ -29089,12 +29090,8 @@
|
|
|
29089
29090
|
tmp1_output.u48(tmp0_desc, 0, value.r7q_1);
|
|
29090
29091
|
tmp1_output.u48(tmp0_desc, 1, value.s7q_1);
|
|
29091
29092
|
tmp1_output.w48(tmp0_desc, 2, $serializer_getInstance_94(), value.t7q_1);
|
|
29092
|
-
|
|
29093
|
-
|
|
29094
|
-
}
|
|
29095
|
-
if (tmp1_output.c49(tmp0_desc, 4) ? true : !(value.v7q_1 == null)) {
|
|
29096
|
-
tmp1_output.y48(tmp0_desc, 4, $serializer_getInstance_92(), value.v7q_1);
|
|
29097
|
-
}
|
|
29093
|
+
tmp1_output.y48(tmp0_desc, 3, tmp2_cached[3], value.u7q_1);
|
|
29094
|
+
tmp1_output.y48(tmp0_desc, 4, $serializer_getInstance_92(), value.v7q_1);
|
|
29098
29095
|
tmp1_output.h47(tmp0_desc);
|
|
29099
29096
|
};
|
|
29100
29097
|
protoOf($serializer_88).t43 = function (encoder, value) {
|
|
@@ -29174,20 +29171,14 @@
|
|
|
29174
29171
|
return $serializer_instance_88;
|
|
29175
29172
|
}
|
|
29176
29173
|
function GameHistoryDto_init_$Init$(seen0, gameId, createdAt, round, gameWinners, metadata, serializationConstructorMarker, $this) {
|
|
29177
|
-
if (!(
|
|
29178
|
-
throwMissingFieldException(seen0,
|
|
29174
|
+
if (!(31 === (31 & seen0))) {
|
|
29175
|
+
throwMissingFieldException(seen0, 31, $serializer_getInstance_91().z88_1);
|
|
29179
29176
|
}
|
|
29180
29177
|
$this.r7q_1 = gameId;
|
|
29181
29178
|
$this.s7q_1 = createdAt;
|
|
29182
29179
|
$this.t7q_1 = round;
|
|
29183
|
-
|
|
29184
|
-
|
|
29185
|
-
else
|
|
29186
|
-
$this.u7q_1 = gameWinners;
|
|
29187
|
-
if (0 === (seen0 & 16))
|
|
29188
|
-
$this.v7q_1 = null;
|
|
29189
|
-
else
|
|
29190
|
-
$this.v7q_1 = metadata;
|
|
29180
|
+
$this.u7q_1 = gameWinners;
|
|
29181
|
+
$this.v7q_1 = metadata;
|
|
29191
29182
|
return $this;
|
|
29192
29183
|
}
|
|
29193
29184
|
function GameHistoryDto_init_$Create$(seen0, gameId, createdAt, round, gameWinners, metadata, serializationConstructorMarker) {
|
|
@@ -29195,8 +29186,6 @@
|
|
|
29195
29186
|
}
|
|
29196
29187
|
function GameHistoryDto(gameId, createdAt, round, gameWinners, metadata) {
|
|
29197
29188
|
Companion_getInstance_130();
|
|
29198
|
-
gameWinners = gameWinners === VOID ? null : gameWinners;
|
|
29199
|
-
metadata = metadata === VOID ? null : metadata;
|
|
29200
29189
|
this.r7q_1 = gameId;
|
|
29201
29190
|
this.s7q_1 = createdAt;
|
|
29202
29191
|
this.t7q_1 = round;
|
|
@@ -43188,7 +43177,7 @@
|
|
|
43188
43177
|
} else {
|
|
43189
43178
|
tmp_1 = null;
|
|
43190
43179
|
}
|
|
43191
|
-
return tmp.
|
|
43180
|
+
return tmp.fromTableWithAnalytics(reason, tmp_0, table, tmp_1);
|
|
43192
43181
|
};
|
|
43193
43182
|
function PlayerTurnInteractor() {
|
|
43194
43183
|
}
|
|
@@ -46459,16 +46448,21 @@
|
|
|
46459
46448
|
var tmp6_isRoundHistorySaved = tmp;
|
|
46460
46449
|
return new FinishingGameMechanicAction(reason, isGameFinished, transition, tmp4_sessionAnalytics, tmp5_gameHistory, tmp6_isRoundHistorySaved);
|
|
46461
46450
|
};
|
|
46462
|
-
protoOf(Companion_162).
|
|
46451
|
+
protoOf(Companion_162).fromTableWithAnalytics = function (reason, isGameFinished, table, transition, $super) {
|
|
46463
46452
|
transition = transition === VOID ? null : transition;
|
|
46464
46453
|
return this.f8w(reason, isGameFinished, table, transition);
|
|
46465
46454
|
};
|
|
46455
|
+
protoOf(Companion_162).fromTable = function (table) {
|
|
46456
|
+
var tmp2_reason = ProcessingReason_getInstance();
|
|
46457
|
+
var tmp1_elvis_lhs = table == null ? null : table.isGameFinished;
|
|
46458
|
+
var tmp3_isGameFinished = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
46459
|
+
return new FinishingGameMechanicAction(tmp2_reason, tmp3_isGameFinished, null, null, null, true);
|
|
46460
|
+
};
|
|
46466
46461
|
var Companion_instance_167;
|
|
46467
46462
|
function Companion_getInstance_169() {
|
|
46468
46463
|
return Companion_instance_167;
|
|
46469
46464
|
}
|
|
46470
46465
|
function FinishingGameMechanicAction(reason, isGameFinished, transition, sessionAnalytics, gameHistory, isRoundHistorySaved, aid) {
|
|
46471
|
-
transition = transition === VOID ? null : transition;
|
|
46472
46466
|
sessionAnalytics = sessionAnalytics === VOID ? null : sessionAnalytics;
|
|
46473
46467
|
gameHistory = gameHistory === VOID ? null : gameHistory;
|
|
46474
46468
|
isRoundHistorySaved = isRoundHistorySaved === VOID ? true : isRoundHistorySaved;
|
|
@@ -54055,7 +54049,7 @@
|
|
|
54055
54049
|
}
|
|
54056
54050
|
function GameHelper() {
|
|
54057
54051
|
}
|
|
54058
|
-
function
|
|
54052
|
+
function prepareFilterObjectInternal($this, map) {
|
|
54059
54053
|
var jsObject = {};
|
|
54060
54054
|
var tmp = map.k2('players');
|
|
54061
54055
|
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
@@ -54072,7 +54066,7 @@
|
|
|
54072
54066
|
while (inductionVariable < last) {
|
|
54073
54067
|
var element = tmp0_safe_receiver[inductionVariable];
|
|
54074
54068
|
inductionVariable = inductionVariable + 1 | 0;
|
|
54075
|
-
// Inline function 'GameHelperImpl.
|
|
54069
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54076
54070
|
validatePlayers($this, element);
|
|
54077
54071
|
}
|
|
54078
54072
|
tmp_0 = tmp0_safe_receiver;
|
|
@@ -54085,7 +54079,7 @@
|
|
|
54085
54079
|
// Inline function 'kotlin.takeIf' call
|
|
54086
54080
|
// Inline function 'kotlin.contracts.contract' call
|
|
54087
54081
|
var tmp_2;
|
|
54088
|
-
// Inline function 'GameHelperImpl.
|
|
54082
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54089
54083
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54090
54084
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
54091
54085
|
if (!(tmp1_safe_receiver.length === 0)) {
|
|
@@ -54111,7 +54105,7 @@
|
|
|
54111
54105
|
while (inductionVariable_0 < last_0) {
|
|
54112
54106
|
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
54113
54107
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
54114
|
-
// Inline function 'GameHelperImpl.
|
|
54108
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54115
54109
|
validatePoints($this, element_0);
|
|
54116
54110
|
}
|
|
54117
54111
|
tmp_4 = tmp2_safe_receiver;
|
|
@@ -54124,7 +54118,7 @@
|
|
|
54124
54118
|
// Inline function 'kotlin.takeIf' call
|
|
54125
54119
|
// Inline function 'kotlin.contracts.contract' call
|
|
54126
54120
|
var tmp_6;
|
|
54127
|
-
// Inline function 'GameHelperImpl.
|
|
54121
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54128
54122
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54129
54123
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
54130
54124
|
if (!(tmp3_safe_receiver.length === 0)) {
|
|
@@ -54150,7 +54144,7 @@
|
|
|
54150
54144
|
while (inductionVariable_1 < last_1) {
|
|
54151
54145
|
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
54152
54146
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
54153
|
-
// Inline function 'GameHelperImpl.
|
|
54147
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54154
54148
|
validateTimeoutTime($this, element_1);
|
|
54155
54149
|
}
|
|
54156
54150
|
tmp_8 = tmp4_safe_receiver;
|
|
@@ -54163,7 +54157,7 @@
|
|
|
54163
54157
|
// Inline function 'kotlin.takeIf' call
|
|
54164
54158
|
// Inline function 'kotlin.contracts.contract' call
|
|
54165
54159
|
var tmp_10;
|
|
54166
|
-
// Inline function 'GameHelperImpl.
|
|
54160
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54167
54161
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54168
54162
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
54169
54163
|
if (!(tmp5_safe_receiver.length === 0)) {
|
|
@@ -54174,7 +54168,7 @@
|
|
|
54174
54168
|
tmp_9 = tmp_10;
|
|
54175
54169
|
}
|
|
54176
54170
|
var timeoutTime = tmp_9;
|
|
54177
|
-
var tmp_11 = map.k2('
|
|
54171
|
+
var tmp_11 = map.k2('leagues');
|
|
54178
54172
|
var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
|
|
54179
54173
|
var tmp_12;
|
|
54180
54174
|
if (tmp6_safe_receiver == null) {
|
|
@@ -54189,8 +54183,8 @@
|
|
|
54189
54183
|
while (inductionVariable_2 < last_2) {
|
|
54190
54184
|
var element_2 = tmp6_safe_receiver[inductionVariable_2];
|
|
54191
54185
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
54192
|
-
// Inline function 'GameHelperImpl.
|
|
54193
|
-
|
|
54186
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54187
|
+
validateLeague($this, element_2);
|
|
54194
54188
|
}
|
|
54195
54189
|
tmp_12 = tmp6_safe_receiver;
|
|
54196
54190
|
}
|
|
@@ -54202,7 +54196,7 @@
|
|
|
54202
54196
|
// Inline function 'kotlin.takeIf' call
|
|
54203
54197
|
// Inline function 'kotlin.contracts.contract' call
|
|
54204
54198
|
var tmp_14;
|
|
54205
|
-
// Inline function 'GameHelperImpl.
|
|
54199
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54206
54200
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54207
54201
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
54208
54202
|
if (!(tmp7_safe_receiver.length === 0)) {
|
|
@@ -54212,40 +54206,79 @@
|
|
|
54212
54206
|
}
|
|
54213
54207
|
tmp_13 = tmp_14;
|
|
54214
54208
|
}
|
|
54215
|
-
var
|
|
54216
|
-
var tmp_15 = map.k2('
|
|
54217
|
-
var
|
|
54209
|
+
var leagues = tmp_13;
|
|
54210
|
+
var tmp_15 = map.k2('rulesPreset');
|
|
54211
|
+
var tmp8_safe_receiver = (tmp_15 == null ? true : isArray(tmp_15)) ? tmp_15 : null;
|
|
54218
54212
|
var tmp_16;
|
|
54213
|
+
if (tmp8_safe_receiver == null) {
|
|
54214
|
+
tmp_16 = null;
|
|
54215
|
+
} else {
|
|
54216
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
54217
|
+
// Inline function 'kotlin.apply' call
|
|
54218
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
54219
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
54220
|
+
var inductionVariable_3 = 0;
|
|
54221
|
+
var last_3 = tmp8_safe_receiver.length;
|
|
54222
|
+
while (inductionVariable_3 < last_3) {
|
|
54223
|
+
var element_3 = tmp8_safe_receiver[inductionVariable_3];
|
|
54224
|
+
inductionVariable_3 = inductionVariable_3 + 1 | 0;
|
|
54225
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54226
|
+
validateRulesSetType($this, element_3);
|
|
54227
|
+
}
|
|
54228
|
+
tmp_16 = tmp8_safe_receiver;
|
|
54229
|
+
}
|
|
54230
|
+
var tmp9_safe_receiver = tmp_16;
|
|
54231
|
+
var tmp_17;
|
|
54232
|
+
if (tmp9_safe_receiver == null) {
|
|
54233
|
+
tmp_17 = null;
|
|
54234
|
+
} else {
|
|
54235
|
+
// Inline function 'kotlin.takeIf' call
|
|
54236
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
54237
|
+
var tmp_18;
|
|
54238
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54239
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54240
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
54241
|
+
if (!(tmp9_safe_receiver.length === 0)) {
|
|
54242
|
+
tmp_18 = tmp9_safe_receiver;
|
|
54243
|
+
} else {
|
|
54244
|
+
tmp_18 = null;
|
|
54245
|
+
}
|
|
54246
|
+
tmp_17 = tmp_18;
|
|
54247
|
+
}
|
|
54248
|
+
var rulesPreset = tmp_17;
|
|
54249
|
+
var tmp_19 = map.k2('isChatEnabled');
|
|
54250
|
+
var isChatEnabled = (!(tmp_19 == null) ? typeof tmp_19 === 'boolean' : false) ? tmp_19 : null;
|
|
54251
|
+
var tmp_20;
|
|
54219
54252
|
if (players == null) {
|
|
54220
54253
|
// Inline function 'kotlin.arrayOf' call
|
|
54221
54254
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
54222
54255
|
// Inline function 'kotlin.js.asDynamic' call
|
|
54223
|
-
|
|
54256
|
+
tmp_20 = [2, 3, 4, 5];
|
|
54224
54257
|
} else {
|
|
54225
|
-
|
|
54258
|
+
tmp_20 = players;
|
|
54226
54259
|
}
|
|
54227
|
-
jsObject['players'] =
|
|
54228
|
-
var
|
|
54260
|
+
jsObject['players'] = tmp_20;
|
|
54261
|
+
var tmp_21;
|
|
54229
54262
|
if (points == null) {
|
|
54230
54263
|
// Inline function 'kotlin.arrayOf' call
|
|
54231
54264
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
54232
54265
|
// Inline function 'kotlin.js.asDynamic' call
|
|
54233
|
-
|
|
54266
|
+
tmp_21 = [301, 501, 1001];
|
|
54234
54267
|
} else {
|
|
54235
|
-
|
|
54268
|
+
tmp_21 = points;
|
|
54236
54269
|
}
|
|
54237
|
-
jsObject['points'] =
|
|
54238
|
-
var
|
|
54270
|
+
jsObject['points'] = tmp_21;
|
|
54271
|
+
var tmp_22;
|
|
54239
54272
|
if (timeoutTime == null) {
|
|
54240
54273
|
// Inline function 'kotlin.arrayOf' call
|
|
54241
54274
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
54242
54275
|
// Inline function 'kotlin.js.asDynamic' call
|
|
54243
|
-
|
|
54276
|
+
tmp_22 = [15, 30, 45];
|
|
54244
54277
|
} else {
|
|
54245
|
-
|
|
54278
|
+
tmp_22 = timeoutTime;
|
|
54246
54279
|
}
|
|
54247
|
-
jsObject['timeoutTime'] =
|
|
54248
|
-
var
|
|
54280
|
+
jsObject['timeoutTime'] = tmp_22;
|
|
54281
|
+
var tmp_23;
|
|
54249
54282
|
if (rulesPreset == null) {
|
|
54250
54283
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
54251
54284
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -54255,23 +54288,47 @@
|
|
|
54255
54288
|
var tmp0_iterator = this_0.j();
|
|
54256
54289
|
while (tmp0_iterator.k()) {
|
|
54257
54290
|
var item = tmp0_iterator.l();
|
|
54258
|
-
// Inline function 'GameHelperImpl.
|
|
54259
|
-
var tmp$ret$
|
|
54260
|
-
destination.e(tmp$ret$
|
|
54291
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54292
|
+
var tmp$ret$39 = item.q2_1;
|
|
54293
|
+
destination.e(tmp$ret$39);
|
|
54294
|
+
}
|
|
54295
|
+
tmp_23 = copyToArray(destination);
|
|
54296
|
+
} else {
|
|
54297
|
+
tmp_23 = rulesPreset;
|
|
54298
|
+
}
|
|
54299
|
+
jsObject['rulesPreset'] = tmp_23;
|
|
54300
|
+
var tmp_24;
|
|
54301
|
+
if (leagues == null) {
|
|
54302
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
54303
|
+
// Inline function 'kotlin.collections.map' call
|
|
54304
|
+
var this_1 = get_entries_0();
|
|
54305
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
54306
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
54307
|
+
var tmp0_iterator_0 = this_1.j();
|
|
54308
|
+
while (tmp0_iterator_0.k()) {
|
|
54309
|
+
var item_0 = tmp0_iterator_0.l();
|
|
54310
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
54311
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
54312
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
54313
|
+
var tmp$ret$45 = item_0.q2_1.toLowerCase();
|
|
54314
|
+
destination_0.e(tmp$ret$45);
|
|
54261
54315
|
}
|
|
54262
|
-
|
|
54316
|
+
tmp_24 = copyToArray(destination_0);
|
|
54263
54317
|
} else {
|
|
54264
|
-
|
|
54318
|
+
tmp_24 = leagues;
|
|
54265
54319
|
}
|
|
54266
|
-
jsObject['
|
|
54320
|
+
jsObject['leagues'] = tmp_24;
|
|
54267
54321
|
jsObject['isChatEnabled'] = isChatEnabled;
|
|
54268
54322
|
return jsObject;
|
|
54269
54323
|
}
|
|
54270
|
-
function isValidConfig($this, players, points, timeoutTime, rulesPreset, rules) {
|
|
54324
|
+
function isValidConfig($this, players, points, timeoutTime, rulesPreset, league, rules) {
|
|
54271
54325
|
validatePoints($this, points);
|
|
54272
54326
|
validatePlayers($this, players);
|
|
54273
54327
|
validateTimeoutTime($this, timeoutTime);
|
|
54274
54328
|
validateRulesSetType($this, rulesPreset);
|
|
54329
|
+
if (!(league == null)) {
|
|
54330
|
+
validateLeague($this, league);
|
|
54331
|
+
}
|
|
54275
54332
|
validateRules($this, rules);
|
|
54276
54333
|
return true;
|
|
54277
54334
|
}
|
|
@@ -54515,6 +54572,22 @@
|
|
|
54515
54572
|
throw IllegalStateException_init_$Create$('Not valid points mode ' + points);
|
|
54516
54573
|
}
|
|
54517
54574
|
}
|
|
54575
|
+
function validateLeague($this, league) {
|
|
54576
|
+
// Inline function 'kotlin.collections.map' call
|
|
54577
|
+
var this_0 = get_entries_0();
|
|
54578
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
54579
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
54580
|
+
var tmp0_iterator = this_0.j();
|
|
54581
|
+
while (tmp0_iterator.k()) {
|
|
54582
|
+
var item = tmp0_iterator.l();
|
|
54583
|
+
// Inline function 'GameHelperImpl.validateLeague.<anonymous>' call
|
|
54584
|
+
var tmp$ret$0 = item.q2_1;
|
|
54585
|
+
destination.e(tmp$ret$0);
|
|
54586
|
+
}
|
|
54587
|
+
if (!destination.v1(league)) {
|
|
54588
|
+
throw IllegalStateException_init_$Create$('Not valid league ' + league);
|
|
54589
|
+
}
|
|
54590
|
+
}
|
|
54518
54591
|
function validateRulesSetType($this, rulesSetType) {
|
|
54519
54592
|
// Inline function 'kotlin.collections.map' call
|
|
54520
54593
|
var this_0 = get_entries_3();
|
|
@@ -54855,13 +54928,13 @@
|
|
|
54855
54928
|
tmp_0 = tmp0_safe_receiver;
|
|
54856
54929
|
}
|
|
54857
54930
|
var limit = tmp_0;
|
|
54858
|
-
var jsObject =
|
|
54931
|
+
var jsObject = prepareFilterObjectInternal(this, map);
|
|
54859
54932
|
jsObject['limit'] = limit == null ? 20 : limit;
|
|
54860
54933
|
return jsObject;
|
|
54861
54934
|
};
|
|
54862
54935
|
protoOf(GameHelperImpl).prepareConfigObject = function (config) {
|
|
54863
54936
|
var map = mapOfObject(config);
|
|
54864
|
-
return
|
|
54937
|
+
return prepareFilterObjectInternal(this, map);
|
|
54865
54938
|
};
|
|
54866
54939
|
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
54867
54940
|
var map = mapOfObject(config);
|
|
@@ -54874,13 +54947,14 @@
|
|
|
54874
54947
|
var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'number' : false) ? tmp_3 : THROW_CCE();
|
|
54875
54948
|
var tmp_5 = getValue(map, 'rulesPreset');
|
|
54876
54949
|
var tmp_6 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : THROW_CCE();
|
|
54877
|
-
var tmp_7;
|
|
54950
|
+
var tmp_7 = map.k2('league');
|
|
54951
|
+
var tmp_8;
|
|
54878
54952
|
if (rules != null && rules != undefined) {
|
|
54879
|
-
|
|
54953
|
+
tmp_8 = mapRulesObject(this, rules);
|
|
54880
54954
|
} else {
|
|
54881
|
-
|
|
54955
|
+
tmp_8 = null;
|
|
54882
54956
|
}
|
|
54883
|
-
return isValidConfig(this, tmp_0, tmp_2, tmp_4, tmp_6, tmp_7);
|
|
54957
|
+
return isValidConfig(this, tmp_0, tmp_2, tmp_4, tmp_6, tmp_7, tmp_8);
|
|
54884
54958
|
};
|
|
54885
54959
|
protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
|
|
54886
54960
|
var tmp;
|
|
@@ -54933,6 +55007,12 @@
|
|
|
54933
55007
|
protoOf(GameHelperImpl).mapRulesSetType = function (name) {
|
|
54934
55008
|
return valueOf_6(name);
|
|
54935
55009
|
};
|
|
55010
|
+
protoOf(GameHelperImpl).mapToLeague = function (name) {
|
|
55011
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
55012
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
55013
|
+
var tmp$ret$1 = name.toUpperCase();
|
|
55014
|
+
return valueOf_0(tmp$ret$1);
|
|
55015
|
+
};
|
|
54936
55016
|
function GameResources() {
|
|
54937
55017
|
}
|
|
54938
55018
|
var AvatarSet_ORIGIN_instance;
|
|
@@ -55281,6 +55361,12 @@
|
|
|
55281
55361
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
55282
55362
|
return this.u9c_1.b8q();
|
|
55283
55363
|
};
|
|
55364
|
+
protoOf(RatingHelperImpl).mapToLeague = function (name) {
|
|
55365
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
55366
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
55367
|
+
var tmp$ret$1 = name.toUpperCase();
|
|
55368
|
+
return valueOf_0(tmp$ret$1);
|
|
55369
|
+
};
|
|
55284
55370
|
function engineHelpersModule() {
|
|
55285
55371
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
55286
55372
|
}
|