game_client_logic_deb 1.8.104 → 1.8.106
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 +1 -1
- package/Logic_Debertz-engine.js +684 -642
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +1848 -1848
- 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 +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -936,6 +936,8 @@
|
|
|
936
936
|
initMetadataForClass(GameMechanicStoreContract, 'GameMechanicStoreContract', VOID, VOID, [StoreContract]);
|
|
937
937
|
initMetadataForClass(PlayerTurnStoreContract, 'PlayerTurnStoreContract', VOID, VOID, [StoreContract]);
|
|
938
938
|
initMetadataForClass(TimersStoreContract, 'TimersStoreContract', VOID, VOID, [StoreContract]);
|
|
939
|
+
initMetadataForClass(ValidationStoreContract$middlewares$1);
|
|
940
|
+
initMetadataForClass(ValidationStoreContract$middlewares$2);
|
|
939
941
|
initMetadataForClass(ValidationStoreContract, 'ValidationStoreContract', VOID, VOID, [StoreContract]);
|
|
940
942
|
initMetadataForClass(_no_name_provided__qut3iv, VOID, VOID, VOID, [Middleware]);
|
|
941
943
|
initMetadataForInterface(IgnoreLoggerAction, 'IgnoreLoggerAction', VOID, VOID, [Action]);
|
|
@@ -991,7 +993,7 @@
|
|
|
991
993
|
tmp = playerStateReducer;
|
|
992
994
|
}
|
|
993
995
|
playerStateReducer = tmp;
|
|
994
|
-
return $super === VOID ? this.
|
|
996
|
+
return $super === VOID ? this.f4v(tableId, gameId, config, version, users, gameCreatorPlayerId, playerStateReducer) : $super.f4v.call(this, tableId, gameId, config, version, users, gameCreatorPlayerId, playerStateReducer);
|
|
995
997
|
}
|
|
996
998
|
initMetadataForInterface(TableLifecycleReducer, 'TableLifecycleReducer');
|
|
997
999
|
initMetadataForClass(TableLifecycleReducerImpl, 'TableLifecycleReducerImpl', VOID, VOID, [TableLifecycleReducer]);
|
|
@@ -1015,7 +1017,7 @@
|
|
|
1015
1017
|
tmp = types;
|
|
1016
1018
|
}
|
|
1017
1019
|
types = tmp;
|
|
1018
|
-
return $super === VOID ? this.
|
|
1020
|
+
return $super === VOID ? this.h4x(key, types) : $super.h4x.call(this, key, types);
|
|
1019
1021
|
}
|
|
1020
1022
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1021
1023
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', FileLoggerOutputImpl, VOID, [FileLoggerOutput]);
|
|
@@ -10772,8 +10774,7 @@
|
|
|
10772
10774
|
return new PointItemDto(_this__u8e3s4.q3t_1, _this__u8e3s4.r3t_1);
|
|
10773
10775
|
}
|
|
10774
10776
|
function mapToDto_43(_this__u8e3s4) {
|
|
10775
|
-
|
|
10776
|
-
return new RoundDto(_this__u8e3s4.s3t_1, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, _this__u8e3s4.u3t_1);
|
|
10777
|
+
return new RoundDto(_this__u8e3s4.s3t_1, _this__u8e3s4.t3t_1, _this__u8e3s4.u3t_1);
|
|
10777
10778
|
}
|
|
10778
10779
|
function mapFromDto_31(_this__u8e3s4) {
|
|
10779
10780
|
return new Round(_this__u8e3s4.v3t_1, _this__u8e3s4.w3t_1, _this__u8e3s4.x3t_1);
|
|
@@ -19143,7 +19144,7 @@
|
|
|
19143
19144
|
$serializer_instance_71 = this;
|
|
19144
19145
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.debertz.logic.data.models.serializable.table.round.RoundDto', this, 3);
|
|
19145
19146
|
tmp0_serialDesc.e1q('partyNumber', false);
|
|
19146
|
-
tmp0_serialDesc.e1q('numberOfBribe',
|
|
19147
|
+
tmp0_serialDesc.e1q('numberOfBribe', true);
|
|
19147
19148
|
tmp0_serialDesc.e1q('trump', true);
|
|
19148
19149
|
this.v45_1 = tmp0_serialDesc;
|
|
19149
19150
|
}
|
|
@@ -19152,7 +19153,9 @@
|
|
|
19152
19153
|
var tmp1_output = encoder.q1i(tmp0_desc);
|
|
19153
19154
|
var tmp2_cached = Companion_getInstance_105().u45_1;
|
|
19154
19155
|
tmp1_output.a1k(tmp0_desc, 0, value.v3t_1);
|
|
19155
|
-
tmp1_output.
|
|
19156
|
+
if (tmp1_output.n1k(tmp0_desc, 1) ? true : !(value.w3t_1 == null)) {
|
|
19157
|
+
tmp1_output.j1k(tmp0_desc, 1, IntSerializer_getInstance(), value.w3t_1);
|
|
19158
|
+
}
|
|
19156
19159
|
if (tmp1_output.n1k(tmp0_desc, 2) ? true : !(value.x3t_1 == null)) {
|
|
19157
19160
|
tmp1_output.j1k(tmp0_desc, 2, tmp2_cached[2], value.x3t_1);
|
|
19158
19161
|
}
|
|
@@ -19167,14 +19170,14 @@
|
|
|
19167
19170
|
var tmp2_index = 0;
|
|
19168
19171
|
var tmp3_bitMask0 = 0;
|
|
19169
19172
|
var tmp4_local0 = 0;
|
|
19170
|
-
var tmp5_local1 =
|
|
19173
|
+
var tmp5_local1 = null;
|
|
19171
19174
|
var tmp6_local2 = null;
|
|
19172
19175
|
var tmp7_input = decoder.q1i(tmp0_desc);
|
|
19173
19176
|
var tmp8_cached = Companion_getInstance_105().u45_1;
|
|
19174
19177
|
if (tmp7_input.g1j()) {
|
|
19175
19178
|
tmp4_local0 = tmp7_input.v1i(tmp0_desc, 0);
|
|
19176
19179
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
19177
|
-
tmp5_local1 = tmp7_input.
|
|
19180
|
+
tmp5_local1 = tmp7_input.e1j(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
19178
19181
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
19179
19182
|
tmp6_local2 = tmp7_input.e1j(tmp0_desc, 2, tmp8_cached[2], tmp6_local2);
|
|
19180
19183
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
@@ -19190,7 +19193,7 @@
|
|
|
19190
19193
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
19191
19194
|
break;
|
|
19192
19195
|
case 1:
|
|
19193
|
-
tmp5_local1 = tmp7_input.
|
|
19196
|
+
tmp5_local1 = tmp7_input.e1j(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
19194
19197
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
19195
19198
|
break;
|
|
19196
19199
|
case 2:
|
|
@@ -19212,7 +19215,7 @@
|
|
|
19212
19215
|
// Inline function 'kotlin.arrayOf' call
|
|
19213
19216
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
19214
19217
|
// Inline function 'kotlin.js.asDynamic' call
|
|
19215
|
-
return [IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(tmp0_cached[2])];
|
|
19218
|
+
return [IntSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), get_nullable(tmp0_cached[2])];
|
|
19216
19219
|
};
|
|
19217
19220
|
var $serializer_instance_71;
|
|
19218
19221
|
function $serializer_getInstance_73() {
|
|
@@ -19221,11 +19224,14 @@
|
|
|
19221
19224
|
return $serializer_instance_71;
|
|
19222
19225
|
}
|
|
19223
19226
|
function RoundDto_init_$Init$(seen0, roundNumber, numberOfBribe, trump, serializationConstructorMarker, $this) {
|
|
19224
|
-
if (!(
|
|
19225
|
-
throwMissingFieldException(seen0,
|
|
19227
|
+
if (!(1 === (1 & seen0))) {
|
|
19228
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_73().v45_1);
|
|
19226
19229
|
}
|
|
19227
19230
|
$this.v3t_1 = roundNumber;
|
|
19228
|
-
|
|
19231
|
+
if (0 === (seen0 & 2))
|
|
19232
|
+
$this.w3t_1 = null;
|
|
19233
|
+
else
|
|
19234
|
+
$this.w3t_1 = numberOfBribe;
|
|
19229
19235
|
if (0 === (seen0 & 4))
|
|
19230
19236
|
$this.x3t_1 = null;
|
|
19231
19237
|
else
|
|
@@ -19237,6 +19243,7 @@
|
|
|
19237
19243
|
}
|
|
19238
19244
|
function RoundDto(roundNumber, numberOfBribe, trump) {
|
|
19239
19245
|
Companion_getInstance_105();
|
|
19246
|
+
numberOfBribe = numberOfBribe === VOID ? null : numberOfBribe;
|
|
19240
19247
|
trump = trump === VOID ? null : trump;
|
|
19241
19248
|
this.v3t_1 = roundNumber;
|
|
19242
19249
|
this.w3t_1 = numberOfBribe;
|
|
@@ -19247,7 +19254,7 @@
|
|
|
19247
19254
|
};
|
|
19248
19255
|
protoOf(RoundDto).hashCode = function () {
|
|
19249
19256
|
var result = this.v3t_1;
|
|
19250
|
-
result = imul(result, 31) + this.w3t_1 | 0;
|
|
19257
|
+
result = imul(result, 31) + (this.w3t_1 == null ? 0 : this.w3t_1) | 0;
|
|
19251
19258
|
result = imul(result, 31) + (this.x3t_1 == null ? 0 : this.x3t_1.hashCode()) | 0;
|
|
19252
19259
|
return result;
|
|
19253
19260
|
};
|
|
@@ -19259,7 +19266,7 @@
|
|
|
19259
19266
|
var tmp0_other_with_cast = other instanceof RoundDto ? other : THROW_CCE();
|
|
19260
19267
|
if (!(this.v3t_1 === tmp0_other_with_cast.v3t_1))
|
|
19261
19268
|
return false;
|
|
19262
|
-
if (!(this.w3t_1
|
|
19269
|
+
if (!(this.w3t_1 == tmp0_other_with_cast.w3t_1))
|
|
19263
19270
|
return false;
|
|
19264
19271
|
if (!equals(this.x3t_1, tmp0_other_with_cast.x3t_1))
|
|
19265
19272
|
return false;
|
|
@@ -32283,7 +32290,7 @@
|
|
|
32283
32290
|
tmp_5.w4o_1 = Instance(di, tmp$ret$6, null).n2i(this, logger$factory_1());
|
|
32284
32291
|
}
|
|
32285
32292
|
protoOf(PlayerTurnStoreContract).f4o = function () {
|
|
32286
|
-
return listOfNotNull_0([
|
|
32293
|
+
return listOfNotNull_0([resetPlayerTurnWhenAnswerFromActionReducer(_get_playerTurnInteractor__lczh1o_0(this), _get_playerTurnMechanicReducer__y10a87_0(this), _get_logger__rkp4sl_0(this)), _get_logicConfig__52ww9d(this).supportPlayerTurnActions ? setPlayerTurnReducer(_get_playerTurnInteractor__lczh1o_0(this), _get_playerTurnMechanicReducer__y10a87_0(this)) : null]);
|
|
32287
32294
|
};
|
|
32288
32295
|
protoOf(PlayerTurnStoreContract).g4o = function () {
|
|
32289
32296
|
return emptyList();
|
|
@@ -32384,42 +32391,73 @@
|
|
|
32384
32391
|
}
|
|
32385
32392
|
function _get_logger__rkp4sl_1($this) {
|
|
32386
32393
|
// Inline function 'kotlin.getValue' call
|
|
32387
|
-
var this_0 = $this.
|
|
32394
|
+
var this_0 = $this.b4p_1;
|
|
32388
32395
|
logger$factory_4();
|
|
32389
32396
|
return this_0.e2();
|
|
32390
32397
|
}
|
|
32391
32398
|
function _get_engineLogicConfig__l11qpf($this) {
|
|
32392
32399
|
// Inline function 'kotlin.getValue' call
|
|
32393
|
-
var this_0 = $this.
|
|
32400
|
+
var this_0 = $this.c4p_1;
|
|
32394
32401
|
engineLogicConfig$factory_0();
|
|
32395
32402
|
return this_0.e2();
|
|
32396
32403
|
}
|
|
32397
|
-
function ValidationStoreContract(
|
|
32398
|
-
this.
|
|
32404
|
+
function ValidationStoreContract$middlewares$1(this$0) {
|
|
32405
|
+
this.d4p_1 = this$0;
|
|
32406
|
+
}
|
|
32407
|
+
protoOf(ValidationStoreContract$middlewares$1).e4p = function (state, action) {
|
|
32408
|
+
return !(this.d4p_1.a4p_1 === action.playerId);
|
|
32409
|
+
};
|
|
32410
|
+
protoOf(ValidationStoreContract$middlewares$1).f4p = function (state, action) {
|
|
32411
|
+
return this.e4p(state, isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE());
|
|
32412
|
+
};
|
|
32413
|
+
function ValidationStoreContract$middlewares$2(this$0) {
|
|
32414
|
+
this.g4p_1 = this$0;
|
|
32415
|
+
}
|
|
32416
|
+
protoOf(ValidationStoreContract$middlewares$2).h4p = function (state, action) {
|
|
32417
|
+
return this.g4p_1.a4p_1 === getPlayerTurn(action, state.e33().players).playerId;
|
|
32418
|
+
};
|
|
32419
|
+
protoOf(ValidationStoreContract$middlewares$2).f4p = function (state, action) {
|
|
32420
|
+
return this.h4p(state, isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE());
|
|
32421
|
+
};
|
|
32422
|
+
function ValidationStoreContract(di, isServer, currentPlayerId) {
|
|
32423
|
+
this.z4o_1 = isServer;
|
|
32424
|
+
this.a4p_1 = currentPlayerId;
|
|
32399
32425
|
var tmp = this;
|
|
32400
32426
|
// Inline function 'org.kodein.di.instance' call
|
|
32401
32427
|
// Inline function 'org.kodein.type.generic' call
|
|
32402
32428
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
32403
32429
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
32404
|
-
tmp.
|
|
32430
|
+
tmp.b4p_1 = Instance(di, tmp$ret$0, null).n2i(this, logger$factory_3());
|
|
32405
32431
|
var tmp_1 = this;
|
|
32406
32432
|
// Inline function 'org.kodein.di.instance' call
|
|
32407
32433
|
// Inline function 'org.kodein.type.generic' call
|
|
32408
32434
|
var tmp_2 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
32409
32435
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
32410
|
-
tmp_1.
|
|
32436
|
+
tmp_1.c4p_1 = Instance(di, tmp$ret$2, null).n2i(this, engineLogicConfig$factory());
|
|
32411
32437
|
}
|
|
32412
32438
|
protoOf(ValidationStoreContract).f4o = function () {
|
|
32413
32439
|
return emptyList();
|
|
32414
32440
|
};
|
|
32415
32441
|
protoOf(ValidationStoreContract).g4o = function () {
|
|
32416
|
-
var tmp
|
|
32417
|
-
|
|
32418
|
-
|
|
32419
|
-
|
|
32420
|
-
|
|
32421
|
-
|
|
32422
|
-
|
|
32442
|
+
var tmp;
|
|
32443
|
+
if (this.z4o_1) {
|
|
32444
|
+
var tmp688_logger = _get_logger__rkp4sl_1(this);
|
|
32445
|
+
var tmp689_sendErrorToClient = this.z4o_1;
|
|
32446
|
+
var tmp_0 = checkValidTurnWhenAnswerFromClientMiddleware(tmp689_sendErrorToClient, VOID, tmp688_logger);
|
|
32447
|
+
var tmp690_logger = _get_logger__rkp4sl_1(this);
|
|
32448
|
+
var tmp691_sendErrorToClient = this.z4o_1;
|
|
32449
|
+
tmp = listOf([tmp_0, checkValidPlayerConnectionStateMiddleware(tmp691_sendErrorToClient, VOID, tmp690_logger), checkValidNextPlayerTurnMiddleware(VOID, _get_logger__rkp4sl_1(this))]);
|
|
32450
|
+
} else {
|
|
32451
|
+
var tmp692_logger = _get_logger__rkp4sl_1(this);
|
|
32452
|
+
var tmp693_sendErrorToClient = this.z4o_1;
|
|
32453
|
+
var tmp694_enableCheckWhen = listOf_0(new ValidationStoreContract$middlewares$1(this));
|
|
32454
|
+
var tmp_1 = checkValidTurnWhenAnswerFromClientMiddleware(tmp693_sendErrorToClient, tmp694_enableCheckWhen, tmp692_logger);
|
|
32455
|
+
var tmp695_logger = _get_logger__rkp4sl_1(this);
|
|
32456
|
+
var tmp696_sendErrorToClient = this.z4o_1;
|
|
32457
|
+
var tmp697_enableClientTurnCheckWhen = listOf_0(new ValidationStoreContract$middlewares$2(this));
|
|
32458
|
+
tmp = plus(listOf([tmp_1, checkValidTurnWhenAnswerMiddleware(tmp696_sendErrorToClient, tmp697_enableClientTurnCheckWhen, tmp695_logger), checkValidNextPlayerTurnMiddleware(VOID, _get_logger__rkp4sl_1(this))]), listOfNotNull_0([_get_engineLogicConfig__l11qpf(this).validateTestMode ? checkGameTestPointsMiddleware(_get_logger__rkp4sl_1(this)) : null, checkValidSceneMiddleware(_get_logger__rkp4sl_1(this)), checkValidSceneActMiddleware(_get_logger__rkp4sl_1(this)), checkCardDuplicatesForBribesMiddleware(_get_logger__rkp4sl_1(this)), checkCardDuplicatesForScenesMiddleware(_get_logger__rkp4sl_1(this)), checkGameIsNotFinishedMiddleware(_get_logger__rkp4sl_1(this)), checkGameIsFinishedTimerTickMiddleware(_get_logger__rkp4sl_1(this)), checkGameIsFinishedStartTimerMiddleware(), checkGameIsFinishedStopTimerMiddleware()]));
|
|
32459
|
+
}
|
|
32460
|
+
return tmp;
|
|
32423
32461
|
};
|
|
32424
32462
|
function logger$factory_3() {
|
|
32425
32463
|
return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
|
|
@@ -32452,7 +32490,7 @@
|
|
|
32452
32490
|
return new _no_name_provided__qut3iv(gameMechanicLogicInteractor);
|
|
32453
32491
|
}
|
|
32454
32492
|
function _no_name_provided__qut3iv($gameMechanicLogicInteractor) {
|
|
32455
|
-
this.
|
|
32493
|
+
this.i4p_1 = $gameMechanicLogicInteractor;
|
|
32456
32494
|
}
|
|
32457
32495
|
protoOf(_no_name_provided__qut3iv).t2x = function (action) {
|
|
32458
32496
|
return action instanceof FromClientAction;
|
|
@@ -32468,16 +32506,16 @@
|
|
|
32468
32506
|
var table = state.e33();
|
|
32469
32507
|
var tmp;
|
|
32470
32508
|
if (action_0 instanceof MessageFromClientAction) {
|
|
32471
|
-
tmp = listOfNotNull(this.
|
|
32509
|
+
tmp = listOfNotNull(this.i4p_1.v4h(action_0, table.players));
|
|
32472
32510
|
} else {
|
|
32473
32511
|
if (action_0 instanceof PartnerSelectedFromClientAction) {
|
|
32474
|
-
tmp = listOf_0(this.
|
|
32512
|
+
tmp = listOf_0(this.i4p_1.w4h(action_0, table.players));
|
|
32475
32513
|
} else {
|
|
32476
32514
|
if (action_0 instanceof PlayerReadyFromClientAction) {
|
|
32477
|
-
tmp = listOf_0(this.
|
|
32515
|
+
tmp = listOf_0(this.i4p_1.x4h(action_0));
|
|
32478
32516
|
} else {
|
|
32479
32517
|
if (action_0 instanceof SuitChoiceFromClientAction) {
|
|
32480
|
-
var mechanicAction = this.
|
|
32518
|
+
var mechanicAction = this.i4p_1.y4h(action_0, table.players, table.config);
|
|
32481
32519
|
var tmp_0;
|
|
32482
32520
|
if (mechanicAction.k4j_1 == null) {
|
|
32483
32521
|
tmp_0 = null;
|
|
@@ -32490,7 +32528,7 @@
|
|
|
32490
32528
|
tmp = listOfNotNull_0([mechanicAction, tmp_0]);
|
|
32491
32529
|
} else {
|
|
32492
32530
|
if (action_0 instanceof CombinationChoiceFromClientAction) {
|
|
32493
|
-
tmp = listOf_0(this.
|
|
32531
|
+
tmp = listOf_0(this.i4p_1.z4h(action_0, table));
|
|
32494
32532
|
} else {
|
|
32495
32533
|
if (action_0 instanceof CardFromClientAction) {
|
|
32496
32534
|
// Inline function 'kotlin.with' call
|
|
@@ -32499,20 +32537,20 @@
|
|
|
32499
32537
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
32500
32538
|
var actions = ArrayList_init_$Create$();
|
|
32501
32539
|
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action_0.v3q_1, table.cardsOnTable.m(), action_0.w3q_1));
|
|
32502
|
-
var cardMechanicAction = this.
|
|
32540
|
+
var cardMechanicAction = this.i4p_1.a4i(action_0, newCardsOnTheTable, table.players, table.config);
|
|
32503
32541
|
actions.e(cardMechanicAction);
|
|
32504
32542
|
var shouldValidateBribe = newCardsOnTheTable.m() === table.config.playersMode.count;
|
|
32505
32543
|
if (shouldValidateBribe) {
|
|
32506
|
-
var
|
|
32507
|
-
if (
|
|
32544
|
+
var tmp700_safe_receiver = this.i4p_1.b4i(action_0, table.gameInfo.u46_1, newCardsOnTheTable, table.players, table.config);
|
|
32545
|
+
if (tmp700_safe_receiver == null)
|
|
32508
32546
|
null;
|
|
32509
32547
|
else {
|
|
32510
32548
|
// Inline function 'kotlin.apply' call
|
|
32511
32549
|
// Inline function 'kotlin.contracts.contract' call
|
|
32512
32550
|
// Inline function 'com.debertz.logic.redux.middlewares.consumeFromClientActionsMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
32513
|
-
actions.e(
|
|
32551
|
+
actions.e(tmp700_safe_receiver);
|
|
32514
32552
|
}
|
|
32515
|
-
var bribeMechanicAction = this.
|
|
32553
|
+
var bribeMechanicAction = this.i4p_1.c4i(action_0, table.gameInfo.u46_1, newCardsOnTheTable, table.players, table.config);
|
|
32516
32554
|
actions.e(bribeMechanicAction);
|
|
32517
32555
|
}
|
|
32518
32556
|
tmp = actions;
|
|
@@ -32569,8 +32607,8 @@
|
|
|
32569
32607
|
return new _no_name_provided__qut3iv_0(playerAnswerInteractor, botConfig);
|
|
32570
32608
|
}
|
|
32571
32609
|
function _no_name_provided__qut3iv_0($playerAnswerInteractor, $botConfig) {
|
|
32572
|
-
this.
|
|
32573
|
-
this.
|
|
32610
|
+
this.j4p_1 = $playerAnswerInteractor;
|
|
32611
|
+
this.k4p_1 = $botConfig;
|
|
32574
32612
|
}
|
|
32575
32613
|
protoOf(_no_name_provided__qut3iv_0).t2x = function (action) {
|
|
32576
32614
|
return action instanceof AskBotAction;
|
|
@@ -32579,7 +32617,7 @@
|
|
|
32579
32617
|
// Inline function 'com.debertz.logic.redux.middlewares.bot.botLogicMiddleware.<anonymous>' call
|
|
32580
32618
|
var action_0 = action instanceof AskBotAction ? action : THROW_CCE();
|
|
32581
32619
|
var table = store.state.e33();
|
|
32582
|
-
var botAction = this.
|
|
32620
|
+
var botAction = this.j4p_1.c4f(action_0.e4l_1, table, this.k4p_1);
|
|
32583
32621
|
next(action_0);
|
|
32584
32622
|
store.dispatch(botAction);
|
|
32585
32623
|
};
|
|
@@ -32591,7 +32629,7 @@
|
|
|
32591
32629
|
return new _no_name_provided__qut3iv_1(scenePositionProvider);
|
|
32592
32630
|
}
|
|
32593
32631
|
function _no_name_provided__qut3iv_1($scenePositionProvider) {
|
|
32594
|
-
this.
|
|
32632
|
+
this.l4p_1 = $scenePositionProvider;
|
|
32595
32633
|
}
|
|
32596
32634
|
protoOf(_no_name_provided__qut3iv_1).t2x = function (action) {
|
|
32597
32635
|
return action instanceof MechanicAction;
|
|
@@ -32606,13 +32644,13 @@
|
|
|
32606
32644
|
} else {
|
|
32607
32645
|
if (action_0 instanceof SceneMechanicAction) {
|
|
32608
32646
|
var table_0 = store.state.e33();
|
|
32609
|
-
var
|
|
32610
|
-
var
|
|
32611
|
-
var
|
|
32612
|
-
if (
|
|
32647
|
+
var tmp702_subject = action_0.d4j_1;
|
|
32648
|
+
var tmp710_config = table_0.config;
|
|
32649
|
+
var tmp711_isFirstRound = table_0.gameHistory.isFirstRound;
|
|
32650
|
+
if (tmp702_subject === this.l4p_1.i4k(tmp711_isFirstRound, tmp710_config)) {
|
|
32613
32651
|
var tmp = store.dispatch;
|
|
32614
|
-
var
|
|
32615
|
-
var
|
|
32652
|
+
var tmp703_id = table_0.id;
|
|
32653
|
+
var tmp704_gameId = table_0.gameId;
|
|
32616
32654
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
32617
32655
|
// Inline function 'kotlin.collections.map' call
|
|
32618
32656
|
var this_0 = table_0.players;
|
|
@@ -32625,14 +32663,14 @@
|
|
|
32625
32663
|
var tmp$ret$0 = item.playerId;
|
|
32626
32664
|
destination.e(tmp$ret$0);
|
|
32627
32665
|
}
|
|
32628
|
-
var
|
|
32629
|
-
var
|
|
32630
|
-
var
|
|
32631
|
-
var
|
|
32632
|
-
var
|
|
32633
|
-
tmp(new RoundStartedAction(
|
|
32666
|
+
var tmp705_players = copyToArray(destination);
|
|
32667
|
+
var tmp706_isFirstRound = table_0.gameHistory.isFirstRound;
|
|
32668
|
+
var tmp707_roundNumber = table_0.gameInfo.u46_1.s3t_1;
|
|
32669
|
+
var tmp708_gameNumber = table_0.gameInfo.t46_1;
|
|
32670
|
+
var tmp709_gameHistory = table_0.gameHistory;
|
|
32671
|
+
tmp(new RoundStartedAction(tmp703_id, tmp704_gameId, tmp707_roundNumber, tmp705_players, tmp706_isFirstRound, tmp708_gameNumber, tmp709_gameHistory));
|
|
32634
32672
|
} else {
|
|
32635
|
-
if (
|
|
32673
|
+
if (tmp702_subject === this.l4p_1.j4k()) {
|
|
32636
32674
|
var tmp$ret$4;
|
|
32637
32675
|
$l$block: {
|
|
32638
32676
|
// Inline function 'com.debertz.logic.data.models.scenes.requireSceneData' call
|
|
@@ -32698,17 +32736,17 @@
|
|
|
32698
32736
|
}
|
|
32699
32737
|
var isGameFinished = tmp_1;
|
|
32700
32738
|
var tmp_3 = store.dispatch;
|
|
32701
|
-
var
|
|
32702
|
-
var
|
|
32703
|
-
var
|
|
32704
|
-
var
|
|
32705
|
-
var
|
|
32739
|
+
var tmp714_id = table_0.id;
|
|
32740
|
+
var tmp715_gameId = table_0.gameId;
|
|
32741
|
+
var tmp716_roundNumber = table_0.gameInfo.u46_1.s3t_1;
|
|
32742
|
+
var tmp717_earnedBiggestPointPlayerId = sceneData.v3i_1;
|
|
32743
|
+
var tmp718_roundContractState = sceneData.b3j(whoChoseSuitPlayerId);
|
|
32706
32744
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
32707
32745
|
var this_3 = sceneData.a3j(whoChoseSuitPlayerId);
|
|
32708
|
-
var
|
|
32746
|
+
var tmp719_roundCommitted = copyToArray(this_3);
|
|
32709
32747
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
32710
32748
|
var this_4 = sceneData.w3i_1;
|
|
32711
|
-
var
|
|
32749
|
+
var tmp720_roundWinners = copyToArray(this_4);
|
|
32712
32750
|
var tmp_4;
|
|
32713
32751
|
if (gameWinners == null) {
|
|
32714
32752
|
tmp_4 = null;
|
|
@@ -32716,7 +32754,7 @@
|
|
|
32716
32754
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
32717
32755
|
tmp_4 = copyToArray(gameWinners);
|
|
32718
32756
|
}
|
|
32719
|
-
var
|
|
32757
|
+
var tmp721_gameWinners = tmp_4;
|
|
32720
32758
|
var tmp_5;
|
|
32721
32759
|
if (isGameFinished) {
|
|
32722
32760
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -32735,7 +32773,7 @@
|
|
|
32735
32773
|
} else {
|
|
32736
32774
|
tmp_5 = null;
|
|
32737
32775
|
}
|
|
32738
|
-
var
|
|
32776
|
+
var tmp722_playersGameAnalytics = tmp_5;
|
|
32739
32777
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
32740
32778
|
// Inline function 'kotlin.collections.map' call
|
|
32741
32779
|
var this_6 = table_0.players;
|
|
@@ -32748,9 +32786,9 @@
|
|
|
32748
32786
|
var tmp$ret$24 = mapToRoundAnalytics(item_2, table_0.gameDuration);
|
|
32749
32787
|
destination_3.e(tmp$ret$24);
|
|
32750
32788
|
}
|
|
32751
|
-
var
|
|
32752
|
-
var
|
|
32753
|
-
tmp_3(new RoundEndedAction(
|
|
32789
|
+
var tmp723_playersRoundAnalytics = copyToArray(destination_3);
|
|
32790
|
+
var tmp724_gameHistory = table_0.gameHistory;
|
|
32791
|
+
tmp_3(new RoundEndedAction(tmp714_id, tmp715_gameId, tmp716_roundNumber, tmp717_earnedBiggestPointPlayerId, tmp719_roundCommitted, tmp718_roundContractState, tmp720_roundWinners, gameLosers, tmp721_gameWinners, tmp722_playersGameAnalytics, tmp723_playersRoundAnalytics, tmp724_gameHistory));
|
|
32754
32792
|
}
|
|
32755
32793
|
}
|
|
32756
32794
|
}
|
|
@@ -32792,8 +32830,8 @@
|
|
|
32792
32830
|
return true;
|
|
32793
32831
|
}
|
|
32794
32832
|
function _no_name_provided__qut3iv_2($lastCardInteractor, $isEnableForPlayer) {
|
|
32795
|
-
this.
|
|
32796
|
-
this.
|
|
32833
|
+
this.m4p_1 = $lastCardInteractor;
|
|
32834
|
+
this.n4p_1 = $isEnableForPlayer;
|
|
32797
32835
|
}
|
|
32798
32836
|
protoOf(_no_name_provided__qut3iv_2).t2x = function (action) {
|
|
32799
32837
|
return isInterface(action, CardsMechanicAction);
|
|
@@ -32802,8 +32840,8 @@
|
|
|
32802
32840
|
// Inline function 'com.debertz.logic.redux.middlewares.lastbribe.putPlayerLastCardMiddleware.<anonymous>' call
|
|
32803
32841
|
var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
32804
32842
|
next(action_0);
|
|
32805
|
-
var
|
|
32806
|
-
var newAction = getBotActionIfNeeded(action_0,
|
|
32843
|
+
var tmp725_table = store.state.e33();
|
|
32844
|
+
var newAction = getBotActionIfNeeded(action_0, tmp725_table, this.m4p_1, this.n4p_1);
|
|
32807
32845
|
if (newAction == null)
|
|
32808
32846
|
null;
|
|
32809
32847
|
else {
|
|
@@ -32837,8 +32875,8 @@
|
|
|
32837
32875
|
break $l$block;
|
|
32838
32876
|
}
|
|
32839
32877
|
}
|
|
32840
|
-
var
|
|
32841
|
-
tmp = fileLoggerByGameIdMiddleware(currentPlayerId, loggerFactory, asyncProvider,
|
|
32878
|
+
var tmp727_loggerOutput = tmp$ret$1;
|
|
32879
|
+
tmp = fileLoggerByGameIdMiddleware(currentPlayerId, loggerFactory, asyncProvider, tmp727_loggerOutput);
|
|
32842
32880
|
} else {
|
|
32843
32881
|
tmp = null;
|
|
32844
32882
|
}
|
|
@@ -32855,16 +32893,16 @@
|
|
|
32855
32893
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z($loggerFactory, $currentPlayerId, $asyncProvider, $loggerOutput, gameId, roomId) {
|
|
32856
32894
|
var controller = $loggerFactory.h2w(gameId, roomId, $currentPlayerId);
|
|
32857
32895
|
var job = $asyncProvider.c2u(VOID, fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0(controller, $loggerOutput, gameId, null));
|
|
32858
|
-
$loggerOutput.
|
|
32896
|
+
$loggerOutput.o4p(gameId, job, controller);
|
|
32859
32897
|
}
|
|
32860
32898
|
function fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj($loggerOutput, gameId) {
|
|
32861
|
-
$loggerOutput.
|
|
32899
|
+
$loggerOutput.p4p(gameId);
|
|
32862
32900
|
}
|
|
32863
32901
|
function _no_name_provided__qut3iv_3($loggerFactory, $currentPlayerId, $asyncProvider, $loggerOutput) {
|
|
32864
|
-
this.
|
|
32865
|
-
this.
|
|
32866
|
-
this.
|
|
32867
|
-
this.
|
|
32902
|
+
this.q4p_1 = $loggerFactory;
|
|
32903
|
+
this.r4p_1 = $currentPlayerId;
|
|
32904
|
+
this.s4p_1 = $asyncProvider;
|
|
32905
|
+
this.t4p_1 = $loggerOutput;
|
|
32868
32906
|
}
|
|
32869
32907
|
protoOf(_no_name_provided__qut3iv_3).t2x = function (action) {
|
|
32870
32908
|
return action instanceof MechanicAction;
|
|
@@ -32873,21 +32911,21 @@
|
|
|
32873
32911
|
// Inline function 'com.debertz.logic.redux.middlewares.logs.fileLoggerByGameIdMiddleware.<anonymous>' call
|
|
32874
32912
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
32875
32913
|
if (isInterface(action_0, FirstMechanicAction)) {
|
|
32876
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
32914
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.q4p_1, this.r4p_1, this.s4p_1, this.t4p_1, action_0.id, action_0.id);
|
|
32877
32915
|
} else {
|
|
32878
32916
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
32879
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
32880
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
32917
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.t4p_1, action_0.previousGameId);
|
|
32918
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.q4p_1, this.r4p_1, this.s4p_1, this.t4p_1, action_0.gameId, store.state.e33().id);
|
|
32881
32919
|
} else {
|
|
32882
32920
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
32883
|
-
var
|
|
32884
|
-
var
|
|
32885
|
-
if (
|
|
32921
|
+
var tmp729_safe_receiver = store.state.t32_1;
|
|
32922
|
+
var tmp730_safe_receiver = tmp729_safe_receiver == null ? null : tmp729_safe_receiver.gameId;
|
|
32923
|
+
if (tmp730_safe_receiver == null)
|
|
32886
32924
|
null;
|
|
32887
32925
|
else {
|
|
32888
32926
|
// Inline function 'kotlin.let' call
|
|
32889
32927
|
// Inline function 'kotlin.contracts.contract' call
|
|
32890
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
32928
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.t4p_1, tmp730_safe_receiver);
|
|
32891
32929
|
}
|
|
32892
32930
|
}
|
|
32893
32931
|
}
|
|
@@ -32898,8 +32936,8 @@
|
|
|
32898
32936
|
return this.v2z(store, next, action);
|
|
32899
32937
|
};
|
|
32900
32938
|
function clearLogFilesMiddleware$o$handle$slambda($fileSystem, $coreConfig, resultContinuation) {
|
|
32901
|
-
this.
|
|
32902
|
-
this.
|
|
32939
|
+
this.c4q_1 = $fileSystem;
|
|
32940
|
+
this.d4q_1 = $coreConfig;
|
|
32903
32941
|
CoroutineImpl.call(this, resultContinuation);
|
|
32904
32942
|
}
|
|
32905
32943
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).b16 = function ($this$launchDefault, $completion) {
|
|
@@ -32920,7 +32958,7 @@
|
|
|
32920
32958
|
case 0:
|
|
32921
32959
|
this.w8_1 = 2;
|
|
32922
32960
|
this.v8_1 = 1;
|
|
32923
|
-
suspendResult = this.
|
|
32961
|
+
suspendResult = this.c4q_1.d2w(this.d4q_1.requireDirectoryPath, this);
|
|
32924
32962
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
32925
32963
|
return suspendResult;
|
|
32926
32964
|
}
|
|
@@ -32943,8 +32981,8 @@
|
|
|
32943
32981
|
while (true);
|
|
32944
32982
|
};
|
|
32945
32983
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).c16 = function ($this$launchDefault, completion) {
|
|
32946
|
-
var i = new clearLogFilesMiddleware$o$handle$slambda(this.
|
|
32947
|
-
i.
|
|
32984
|
+
var i = new clearLogFilesMiddleware$o$handle$slambda(this.c4q_1, this.d4q_1, completion);
|
|
32985
|
+
i.e4q_1 = $this$launchDefault;
|
|
32948
32986
|
return i;
|
|
32949
32987
|
};
|
|
32950
32988
|
function clearLogFilesMiddleware$o$handle$slambda_0($fileSystem, $coreConfig, resultContinuation) {
|
|
@@ -32956,9 +32994,9 @@
|
|
|
32956
32994
|
return l;
|
|
32957
32995
|
}
|
|
32958
32996
|
function _no_name_provided__qut3iv_4($asyncProvider, $fileSystem, $coreConfig) {
|
|
32959
|
-
this.
|
|
32960
|
-
this.
|
|
32961
|
-
this.
|
|
32997
|
+
this.f4q_1 = $asyncProvider;
|
|
32998
|
+
this.g4q_1 = $fileSystem;
|
|
32999
|
+
this.h4q_1 = $coreConfig;
|
|
32962
33000
|
}
|
|
32963
33001
|
protoOf(_no_name_provided__qut3iv_4).t2x = function (action) {
|
|
32964
33002
|
return action instanceof ClearAction;
|
|
@@ -32966,30 +33004,30 @@
|
|
|
32966
33004
|
protoOf(_no_name_provided__qut3iv_4).v2z = function (store, next, action) {
|
|
32967
33005
|
// Inline function 'com.debertz.logic.redux.middlewares.logs.clearLogFilesMiddleware.<anonymous>' call
|
|
32968
33006
|
var action_0 = action instanceof ClearAction ? action : THROW_CCE();
|
|
32969
|
-
this.
|
|
33007
|
+
this.f4q_1.c2u(VOID, clearLogFilesMiddleware$o$handle$slambda_0(this.g4q_1, this.h4q_1, null));
|
|
32970
33008
|
next(action_0);
|
|
32971
33009
|
};
|
|
32972
33010
|
protoOf(_no_name_provided__qut3iv_4).s2x = function (store, next, action) {
|
|
32973
33011
|
return this.v2z(store, next, action);
|
|
32974
33012
|
};
|
|
32975
33013
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
32976
|
-
this.
|
|
33014
|
+
this.i4q_1 = function_0;
|
|
32977
33015
|
}
|
|
32978
33016
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).e11 = function (value, $completion) {
|
|
32979
|
-
return this.
|
|
33017
|
+
return this.i4q_1(value, $completion);
|
|
32980
33018
|
};
|
|
32981
33019
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
|
|
32982
|
-
this.
|
|
33020
|
+
this.r4q_1 = $controller;
|
|
32983
33021
|
CoroutineImpl.call(this, resultContinuation);
|
|
32984
33022
|
}
|
|
32985
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
32986
|
-
var tmp = this.
|
|
33023
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).t4q = function (it, $completion) {
|
|
33024
|
+
var tmp = this.u4q(it, $completion);
|
|
32987
33025
|
tmp.x8_1 = Unit_instance;
|
|
32988
33026
|
tmp.y8_1 = null;
|
|
32989
33027
|
return tmp.d9();
|
|
32990
33028
|
};
|
|
32991
33029
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).y9 = function (p1, $completion) {
|
|
32992
|
-
return this.
|
|
33030
|
+
return this.t4q(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
|
|
32993
33031
|
};
|
|
32994
33032
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).d9 = function () {
|
|
32995
33033
|
var suspendResult = this.x8_1;
|
|
@@ -33000,7 +33038,7 @@
|
|
|
33000
33038
|
case 0:
|
|
33001
33039
|
this.w8_1 = 2;
|
|
33002
33040
|
this.v8_1 = 1;
|
|
33003
|
-
suspendResult = this.
|
|
33041
|
+
suspendResult = this.r4q_1.f2x(this.s4q_1.toMessageLog(), this);
|
|
33004
33042
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
33005
33043
|
return suspendResult;
|
|
33006
33044
|
}
|
|
@@ -33022,23 +33060,23 @@
|
|
|
33022
33060
|
}
|
|
33023
33061
|
while (true);
|
|
33024
33062
|
};
|
|
33025
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
33026
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.
|
|
33027
|
-
i.
|
|
33063
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).u4q = function (it, completion) {
|
|
33064
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.r4q_1, completion);
|
|
33065
|
+
i.s4q_1 = it;
|
|
33028
33066
|
return i;
|
|
33029
33067
|
};
|
|
33030
33068
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
|
|
33031
33069
|
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
|
|
33032
33070
|
var l = function (it, $completion) {
|
|
33033
|
-
return i.
|
|
33071
|
+
return i.t4q(it, $completion);
|
|
33034
33072
|
};
|
|
33035
33073
|
l.$arity = 1;
|
|
33036
33074
|
return l;
|
|
33037
33075
|
}
|
|
33038
33076
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $gameId, resultContinuation) {
|
|
33039
|
-
this.
|
|
33040
|
-
this.
|
|
33041
|
-
this.
|
|
33077
|
+
this.d4r_1 = $controller;
|
|
33078
|
+
this.e4r_1 = $$loggerOutput;
|
|
33079
|
+
this.f4r_1 = $gameId;
|
|
33042
33080
|
CoroutineImpl.call(this, resultContinuation);
|
|
33043
33081
|
}
|
|
33044
33082
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).b16 = function ($this$launchDefault, $completion) {
|
|
@@ -33059,7 +33097,7 @@
|
|
|
33059
33097
|
case 0:
|
|
33060
33098
|
this.w8_1 = 3;
|
|
33061
33099
|
this.v8_1 = 1;
|
|
33062
|
-
suspendResult = this.
|
|
33100
|
+
suspendResult = this.d4r_1.e2x(this);
|
|
33063
33101
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
33064
33102
|
return suspendResult;
|
|
33065
33103
|
}
|
|
@@ -33067,8 +33105,8 @@
|
|
|
33067
33105
|
continue $sm;
|
|
33068
33106
|
case 1:
|
|
33069
33107
|
this.v8_1 = 2;
|
|
33070
|
-
var tmp_0 = this.
|
|
33071
|
-
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.
|
|
33108
|
+
var tmp_0 = this.e4r_1.h4r(this.f4r_1);
|
|
33109
|
+
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.d4r_1, null);
|
|
33072
33110
|
suspendResult = tmp_0.o10(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
33073
33111
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
33074
33112
|
return suspendResult;
|
|
@@ -33092,8 +33130,8 @@
|
|
|
33092
33130
|
while (true);
|
|
33093
33131
|
};
|
|
33094
33132
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).c16 = function ($this$launchDefault, completion) {
|
|
33095
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.
|
|
33096
|
-
i.
|
|
33133
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.d4r_1, this.e4r_1, this.f4r_1, completion);
|
|
33134
|
+
i.g4r_1 = $this$launchDefault;
|
|
33097
33135
|
return i;
|
|
33098
33136
|
};
|
|
33099
33137
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $gameId, resultContinuation) {
|
|
@@ -33115,8 +33153,8 @@
|
|
|
33115
33153
|
return new _no_name_provided__qut3iv_5(sceneRouter, idsProvider);
|
|
33116
33154
|
}
|
|
33117
33155
|
function _no_name_provided__qut3iv_5($sceneRouter, $idsProvider) {
|
|
33118
|
-
this.
|
|
33119
|
-
this.
|
|
33156
|
+
this.i4r_1 = $sceneRouter;
|
|
33157
|
+
this.j4r_1 = $idsProvider;
|
|
33120
33158
|
}
|
|
33121
33159
|
protoOf(_no_name_provided__qut3iv_5).t2x = function (action) {
|
|
33122
33160
|
return action instanceof MechanicAction;
|
|
@@ -33132,13 +33170,13 @@
|
|
|
33132
33170
|
var state_0 = state;
|
|
33133
33171
|
var tmp;
|
|
33134
33172
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
33135
|
-
tmp = listOf_0(new SceneStartedMechanicAction(this.
|
|
33173
|
+
tmp = listOf_0(new SceneStartedMechanicAction(this.i4r_1.h4k(action_0.g4m_1).u4k_1));
|
|
33136
33174
|
} else {
|
|
33137
33175
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
33138
|
-
tmp = listOf_0(new SceneStartedMechanicAction(this.
|
|
33176
|
+
tmp = listOf_0(new SceneStartedMechanicAction(this.i4r_1.h4k(state_0.e33().config).u4k_1));
|
|
33139
33177
|
} else {
|
|
33140
33178
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
33141
|
-
tmp = listOf_0(new SceneStartedMechanicAction(this.
|
|
33179
|
+
tmp = listOf_0(new SceneStartedMechanicAction(this.i4r_1.i4k(false, state_0.e33().config).u4k_1));
|
|
33142
33180
|
} else {
|
|
33143
33181
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
33144
33182
|
tmp = listOf_0(new SceneEndedMechanicAction(state_0.e33().sceneInfo.c4a_1));
|
|
@@ -33173,7 +33211,7 @@
|
|
|
33173
33211
|
var gameFinished = !(firstOrNull(filterByGameWinner(table.players)) == null);
|
|
33174
33212
|
var tmp_1;
|
|
33175
33213
|
if (gameFinished) {
|
|
33176
|
-
tmp_1 = new StartNewGameMechanicAction(table.gameId, this.
|
|
33214
|
+
tmp_1 = new StartNewGameMechanicAction(table.gameId, this.j4r_1.t2v());
|
|
33177
33215
|
} else {
|
|
33178
33216
|
tmp_1 = new SceneEndedMechanicAction(table.sceneInfo.c4a_1);
|
|
33179
33217
|
}
|
|
@@ -33333,9 +33371,9 @@
|
|
|
33333
33371
|
}
|
|
33334
33372
|
function PlayerTurnTimerTag(playerId, tag, afterReconnection) {
|
|
33335
33373
|
afterReconnection = afterReconnection === VOID ? false : afterReconnection;
|
|
33336
|
-
this.
|
|
33337
|
-
this.
|
|
33338
|
-
this.
|
|
33374
|
+
this.k4r_1 = playerId;
|
|
33375
|
+
this.l4r_1 = tag;
|
|
33376
|
+
this.m4r_1 = afterReconnection;
|
|
33339
33377
|
}
|
|
33340
33378
|
protoOf(PlayerTurnTimerTag).equals = function (other) {
|
|
33341
33379
|
if (this === other)
|
|
@@ -33344,13 +33382,13 @@
|
|
|
33344
33382
|
return false;
|
|
33345
33383
|
if (!(other instanceof PlayerTurnTimerTag))
|
|
33346
33384
|
THROW_CCE();
|
|
33347
|
-
return this.
|
|
33385
|
+
return this.k4r_1 === other.k4r_1;
|
|
33348
33386
|
};
|
|
33349
33387
|
protoOf(PlayerTurnTimerTag).hashCode = function () {
|
|
33350
|
-
return getStringHashCode(this.
|
|
33388
|
+
return getStringHashCode(this.k4r_1);
|
|
33351
33389
|
};
|
|
33352
33390
|
protoOf(PlayerTurnTimerTag).toString = function () {
|
|
33353
|
-
return 'PlayerTurnTimerTag(playerId=' + this.
|
|
33391
|
+
return 'PlayerTurnTimerTag(playerId=' + this.k4r_1 + ', tag=' + this.l4r_1 + ', afterReconnection=' + this.m4r_1 + ')';
|
|
33354
33392
|
};
|
|
33355
33393
|
function getInitialPlayerTurnTimerDelayMillis(player, config, isDelayForBot, random) {
|
|
33356
33394
|
isDelayForBot = isDelayForBot === VOID ? false : isDelayForBot;
|
|
@@ -33358,9 +33396,9 @@
|
|
|
33358
33396
|
var tmp;
|
|
33359
33397
|
var tmp_0;
|
|
33360
33398
|
if (!isDelayForBot) {
|
|
33361
|
-
var
|
|
33362
|
-
var
|
|
33363
|
-
tmp_0 = (
|
|
33399
|
+
var tmp733_safe_receiver = player.w36_1.l2q_1;
|
|
33400
|
+
var tmp734_safe_receiver = tmp733_safe_receiver == null ? null : tmp733_safe_receiver.p2q_1;
|
|
33401
|
+
tmp_0 = (tmp734_safe_receiver == null ? null : tmp734_safe_receiver.isLive) === true;
|
|
33364
33402
|
} else {
|
|
33365
33403
|
tmp_0 = false;
|
|
33366
33404
|
}
|
|
@@ -33392,9 +33430,9 @@
|
|
|
33392
33430
|
return tmp;
|
|
33393
33431
|
}
|
|
33394
33432
|
function _no_name_provided__qut3iv_6($isEnableBotForPlayer, $playerTurnInteractor, $botConfig) {
|
|
33395
|
-
this.
|
|
33396
|
-
this.
|
|
33397
|
-
this.
|
|
33433
|
+
this.n4r_1 = $isEnableBotForPlayer;
|
|
33434
|
+
this.o4r_1 = $playerTurnInteractor;
|
|
33435
|
+
this.p4r_1 = $botConfig;
|
|
33398
33436
|
}
|
|
33399
33437
|
protoOf(_no_name_provided__qut3iv_6).t2x = function (action) {
|
|
33400
33438
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -33412,7 +33450,7 @@
|
|
|
33412
33450
|
while (tmp0_iterator.k()) {
|
|
33413
33451
|
var element = tmp0_iterator.l();
|
|
33414
33452
|
// Inline function 'com.debertz.logic.redux.middlewares.player.playerStartTimerMiddleware.<anonymous>.<anonymous>' call
|
|
33415
|
-
if (this.
|
|
33453
|
+
if (this.n4r_1(element)) {
|
|
33416
33454
|
destination.e(element);
|
|
33417
33455
|
}
|
|
33418
33456
|
}
|
|
@@ -33421,7 +33459,7 @@
|
|
|
33421
33459
|
var element_0 = tmp0_iterator_0.l();
|
|
33422
33460
|
$l$block: {
|
|
33423
33461
|
// Inline function 'com.debertz.logic.redux.middlewares.player.playerStartTimerMiddleware.<anonymous>.<anonymous>' call
|
|
33424
|
-
var tmp0_elvis_lhs = this.
|
|
33462
|
+
var tmp0_elvis_lhs = this.o4r_1.t4i(action_0, table.players, table.gameInfo.u46_1);
|
|
33425
33463
|
var tmp;
|
|
33426
33464
|
if (tmp0_elvis_lhs == null) {
|
|
33427
33465
|
break $l$block;
|
|
@@ -33429,7 +33467,7 @@
|
|
|
33429
33467
|
tmp = tmp0_elvis_lhs;
|
|
33430
33468
|
}
|
|
33431
33469
|
var turnModel = tmp;
|
|
33432
|
-
store.dispatch(new StartTimerAction(new PlayerTurnTimerTag(element_0, turnModel.d39_1), getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, element_0), table.config, this.
|
|
33470
|
+
store.dispatch(new StartTimerAction(new PlayerTurnTimerTag(element_0, turnModel.d39_1), getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, element_0), table.config, this.p4r_1.isDelayForBot, this.p4r_1.simulateBotThinkingDelay ? Default_getInstance() : null), VOID, TimerType_DELAY_getInstance()));
|
|
33433
33471
|
}
|
|
33434
33472
|
}
|
|
33435
33473
|
next(action_0);
|
|
@@ -33438,7 +33476,7 @@
|
|
|
33438
33476
|
return this.v2z(store, next, action);
|
|
33439
33477
|
};
|
|
33440
33478
|
function _no_name_provided__qut3iv_7($isEnableBotForPlayer) {
|
|
33441
|
-
this.
|
|
33479
|
+
this.q4r_1 = $isEnableBotForPlayer;
|
|
33442
33480
|
}
|
|
33443
33481
|
protoOf(_no_name_provided__qut3iv_7).t2x = function (action) {
|
|
33444
33482
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -33446,7 +33484,7 @@
|
|
|
33446
33484
|
protoOf(_no_name_provided__qut3iv_7).v2z = function (store, next, action) {
|
|
33447
33485
|
// Inline function 'com.debertz.logic.redux.middlewares.player.playerStopTimerMiddleware.<anonymous>' call
|
|
33448
33486
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
33449
|
-
if (this.
|
|
33487
|
+
if (this.q4r_1(action_0.playerId)) {
|
|
33450
33488
|
var table = store.state.e33();
|
|
33451
33489
|
var player = getPlayer(table.players, action_0.playerId);
|
|
33452
33490
|
store.dispatch(new StopTimerAction(new PlayerTurnTimerTag(action_0.playerId, player.w36_1.y2r())));
|
|
@@ -33470,7 +33508,7 @@
|
|
|
33470
33508
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
33471
33509
|
var timerTag = action_0.p2x_1;
|
|
33472
33510
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
33473
|
-
var player = getPlayer(store.state.e33().players, timerTag.
|
|
33511
|
+
var player = getPlayer(store.state.e33().players, timerTag.k4r_1);
|
|
33474
33512
|
store.dispatch(new AskBotAction(player.playerId, 'PlayerTurn'));
|
|
33475
33513
|
}
|
|
33476
33514
|
next(action_0);
|
|
@@ -33483,9 +33521,9 @@
|
|
|
33483
33521
|
return new _no_name_provided__qut3iv_9(sceneFactory, router, sceneValidationInteractor);
|
|
33484
33522
|
}
|
|
33485
33523
|
function _no_name_provided__qut3iv_9($sceneFactory, $router, $sceneValidationInteractor) {
|
|
33486
|
-
this.
|
|
33487
|
-
this.
|
|
33488
|
-
this.
|
|
33524
|
+
this.r4r_1 = $sceneFactory;
|
|
33525
|
+
this.s4r_1 = $router;
|
|
33526
|
+
this.t4r_1 = $sceneValidationInteractor;
|
|
33489
33527
|
}
|
|
33490
33528
|
protoOf(_no_name_provided__qut3iv_9).t2x = function (action) {
|
|
33491
33529
|
return action instanceof SceneLifecycleAction;
|
|
@@ -33497,8 +33535,8 @@
|
|
|
33497
33535
|
next(action_0);
|
|
33498
33536
|
var tmp;
|
|
33499
33537
|
if (action_0 instanceof SceneStartedMechanicAction) {
|
|
33500
|
-
var sceneData = this.
|
|
33501
|
-
var navigationActCommand = this.
|
|
33538
|
+
var sceneData = this.r4r_1.d4k(action_0.v4n_1, table);
|
|
33539
|
+
var navigationActCommand = this.s4r_1.q4k(sceneData, table);
|
|
33502
33540
|
var tmp_0;
|
|
33503
33541
|
if (navigationActCommand == null) {
|
|
33504
33542
|
tmp_0 = null;
|
|
@@ -33506,21 +33544,21 @@
|
|
|
33506
33544
|
// Inline function 'kotlin.let' call
|
|
33507
33545
|
// Inline function 'kotlin.contracts.contract' call
|
|
33508
33546
|
// Inline function 'com.debertz.logic.redux.middlewares.slices.sceneLifecycleMiddleware.<anonymous>.<anonymous>' call
|
|
33509
|
-
var
|
|
33510
|
-
var
|
|
33511
|
-
tmp_0 = this.
|
|
33547
|
+
var tmp737_actId = navigationActCommand.w4k_1;
|
|
33548
|
+
var tmp738_payload = navigationActCommand.x4k_1;
|
|
33549
|
+
tmp_0 = this.r4r_1.e4k(tmp737_actId, sceneData, tmp738_payload, table);
|
|
33512
33550
|
}
|
|
33513
33551
|
var actData = tmp_0;
|
|
33514
|
-
this.
|
|
33515
|
-
var
|
|
33516
|
-
var
|
|
33517
|
-
var mechanicAction = new SceneMechanicAction(
|
|
33552
|
+
this.t4r_1.m4k(store.state.x32_1, 'Timers are not empty before scene ' + action_0.v4n_1);
|
|
33553
|
+
var tmp740_sceneId = action_0.v4n_1;
|
|
33554
|
+
var tmp741_actId = actData == null ? null : actData.actId;
|
|
33555
|
+
var mechanicAction = new SceneMechanicAction(tmp740_sceneId, tmp741_actId, sceneData, actData);
|
|
33518
33556
|
tmp = listOfNotNull(mechanicAction);
|
|
33519
33557
|
} else {
|
|
33520
33558
|
if (action_0 instanceof SceneEndedMechanicAction) {
|
|
33521
|
-
var
|
|
33522
|
-
var gameWinnerPlayerId =
|
|
33523
|
-
var nextSceneCommand = this.
|
|
33559
|
+
var tmp742_safe_receiver = firstOrNull(filterByGameWinner(table.players));
|
|
33560
|
+
var gameWinnerPlayerId = tmp742_safe_receiver == null ? null : tmp742_safe_receiver.playerId;
|
|
33561
|
+
var nextSceneCommand = this.s4r_1.r4k(action_0.u4n_1, !(gameWinnerPlayerId == null), table.config);
|
|
33524
33562
|
var tmp_1;
|
|
33525
33563
|
if (nextSceneCommand instanceof MoveSceneNext) {
|
|
33526
33564
|
tmp_1 = listOf_0(new SceneStartedMechanicAction(nextSceneCommand.u4k_1));
|
|
@@ -33530,18 +33568,18 @@
|
|
|
33530
33568
|
tmp = tmp_1;
|
|
33531
33569
|
} else {
|
|
33532
33570
|
if (action_0 instanceof SceneActStartedMechanicAction) {
|
|
33533
|
-
this.
|
|
33571
|
+
this.t4r_1.m4k(store.state.x32_1, 'Timers are not empty before scene act ' + action_0.w4n_1 + ', ' + action_0.x4n_1);
|
|
33534
33572
|
var mechanicAction_0 = new SceneActMechanicAction(action_0.w4n_1, action_0.x4n_1, action_0.y4n_1);
|
|
33535
33573
|
tmp = listOf_0(mechanicAction_0);
|
|
33536
33574
|
} else {
|
|
33537
33575
|
if (action_0 instanceof SceneActEndedMechanicAction) {
|
|
33538
|
-
var navigationCommand = this.
|
|
33576
|
+
var navigationCommand = this.s4r_1.t4k(action_0.z4n_1, table);
|
|
33539
33577
|
var tmp_2;
|
|
33540
33578
|
if (navigationCommand instanceof FinishActNext) {
|
|
33541
33579
|
tmp_2 = listOf_0(new SceneEndedMechanicAction(table.sceneInfo.c4a_1));
|
|
33542
33580
|
} else {
|
|
33543
33581
|
if (navigationCommand instanceof MoveActNext) {
|
|
33544
|
-
var
|
|
33582
|
+
var tmp744_actId = navigationCommand.w4k_1;
|
|
33545
33583
|
var tmp$ret$2;
|
|
33546
33584
|
$l$block: {
|
|
33547
33585
|
// Inline function 'com.debertz.logic.data.models.scenes.requireSceneData' call
|
|
@@ -33552,9 +33590,9 @@
|
|
|
33552
33590
|
}
|
|
33553
33591
|
throw new MechanicException('Required ' + getKClass(SceneData).ba() + ', current scene is ' + toString_0(this_0));
|
|
33554
33592
|
}
|
|
33555
|
-
var
|
|
33556
|
-
var
|
|
33557
|
-
var actData_0 = this.
|
|
33593
|
+
var tmp745_sceneData = tmp$ret$2;
|
|
33594
|
+
var tmp746_payload = navigationCommand.x4k_1;
|
|
33595
|
+
var actData_0 = this.r4r_1.e4k(tmp744_actId, tmp745_sceneData, tmp746_payload, table);
|
|
33558
33596
|
tmp_2 = listOf_0(new SceneActStartedMechanicAction(table.sceneInfo.c4a_1, navigationCommand.w4k_1, actData_0));
|
|
33559
33597
|
} else {
|
|
33560
33598
|
noWhenBranchMatchedException();
|
|
@@ -33611,7 +33649,7 @@
|
|
|
33611
33649
|
return new _no_name_provided__qut3iv_11(logger);
|
|
33612
33650
|
}
|
|
33613
33651
|
function _no_name_provided__qut3iv_11($logger) {
|
|
33614
|
-
this.
|
|
33652
|
+
this.u4r_1 = $logger;
|
|
33615
33653
|
}
|
|
33616
33654
|
protoOf(_no_name_provided__qut3iv_11).t2x = function (action) {
|
|
33617
33655
|
return action instanceof PutCardMechanicAction;
|
|
@@ -33647,7 +33685,7 @@
|
|
|
33647
33685
|
var bribes = destination;
|
|
33648
33686
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
33649
33687
|
if (!bribes.p()) {
|
|
33650
|
-
this.
|
|
33688
|
+
this.u4r_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.o4j_1.toString() + ', bribes = ' + toString(bribes));
|
|
33651
33689
|
}
|
|
33652
33690
|
}
|
|
33653
33691
|
next(action_0);
|
|
@@ -33660,7 +33698,7 @@
|
|
|
33660
33698
|
return new _no_name_provided__qut3iv_12(logger);
|
|
33661
33699
|
}
|
|
33662
33700
|
function _no_name_provided__qut3iv_12($logger) {
|
|
33663
|
-
this.
|
|
33701
|
+
this.v4r_1 = $logger;
|
|
33664
33702
|
}
|
|
33665
33703
|
protoOf(_no_name_provided__qut3iv_12).t2x = function (action) {
|
|
33666
33704
|
return action instanceof SceneMechanicAction;
|
|
@@ -33810,15 +33848,15 @@
|
|
|
33810
33848
|
if (scenePayload instanceof EarnPointsClientScene) {
|
|
33811
33849
|
var playerCards_0 = plus(scenePayload.p3i_1, first(state.e33().players).x36_1);
|
|
33812
33850
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
33813
|
-
var
|
|
33851
|
+
var tmp747_safe_receiver = scenePayload.r3i_1;
|
|
33814
33852
|
var tmp_9;
|
|
33815
|
-
if (
|
|
33853
|
+
if (tmp747_safe_receiver == null) {
|
|
33816
33854
|
tmp_9 = null;
|
|
33817
33855
|
} else {
|
|
33818
33856
|
// Inline function 'kotlin.collections.map' call
|
|
33819
33857
|
// Inline function 'kotlin.collections.mapTo' call
|
|
33820
|
-
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
33821
|
-
var tmp0_iterator_7 =
|
|
33858
|
+
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp747_safe_receiver, 10));
|
|
33859
|
+
var tmp0_iterator_7 = tmp747_safe_receiver.j();
|
|
33822
33860
|
while (tmp0_iterator_7.k()) {
|
|
33823
33861
|
var item_4 = tmp0_iterator_7.l();
|
|
33824
33862
|
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkCardDuplicatesForScenesMiddleware.<anonymous>.<anonymous>' call
|
|
@@ -33829,8 +33867,8 @@
|
|
|
33829
33867
|
}
|
|
33830
33868
|
tmp_9 = destination_7;
|
|
33831
33869
|
}
|
|
33832
|
-
var
|
|
33833
|
-
var tmp0_elvis_lhs_0 =
|
|
33870
|
+
var tmp748_safe_receiver = tmp_9;
|
|
33871
|
+
var tmp0_elvis_lhs_0 = tmp748_safe_receiver == null ? null : flatten(tmp748_safe_receiver);
|
|
33834
33872
|
var combinationsCards = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
33835
33873
|
var tmp$ret$40;
|
|
33836
33874
|
$l$block_0: {
|
|
@@ -33892,7 +33930,7 @@
|
|
|
33892
33930
|
}
|
|
33893
33931
|
var notValidMessage = tmp;
|
|
33894
33932
|
if (!(notValidMessage == null)) {
|
|
33895
|
-
this.
|
|
33933
|
+
this.v4r_1.w('Validation', toString_0(notValidMessage));
|
|
33896
33934
|
}
|
|
33897
33935
|
}
|
|
33898
33936
|
}
|
|
@@ -33957,7 +33995,7 @@
|
|
|
33957
33995
|
};
|
|
33958
33996
|
}
|
|
33959
33997
|
function _no_name_provided__qut3iv_13($logger) {
|
|
33960
|
-
this.
|
|
33998
|
+
this.w4r_1 = $logger;
|
|
33961
33999
|
}
|
|
33962
34000
|
protoOf(_no_name_provided__qut3iv_13).t2x = function (action) {
|
|
33963
34001
|
return action instanceof TimerTickAction;
|
|
@@ -33967,7 +34005,7 @@
|
|
|
33967
34005
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
33968
34006
|
var tmp = action_0.p2x_1;
|
|
33969
34007
|
if (tmp instanceof GameIsNotFinishedTimerTag) {
|
|
33970
|
-
this.
|
|
34008
|
+
this.w4r_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
|
|
33971
34009
|
store.dispatch(new FinishGameMechanicAction(store.state.y4k()));
|
|
33972
34010
|
}
|
|
33973
34011
|
next(action_0);
|
|
@@ -34022,7 +34060,7 @@
|
|
|
34022
34060
|
return new _no_name_provided__qut3iv_16(logger);
|
|
34023
34061
|
}
|
|
34024
34062
|
function _no_name_provided__qut3iv_16($logger) {
|
|
34025
|
-
this.
|
|
34063
|
+
this.x4r_1 = $logger;
|
|
34026
34064
|
}
|
|
34027
34065
|
protoOf(_no_name_provided__qut3iv_16).t2x = function (action) {
|
|
34028
34066
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -34031,44 +34069,44 @@
|
|
|
34031
34069
|
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkGameTestPointsMiddleware.<anonymous>' call
|
|
34032
34070
|
var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
|
|
34033
34071
|
if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
|
|
34034
|
-
this.
|
|
34072
|
+
this.x4r_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
|
|
34035
34073
|
}
|
|
34036
34074
|
next(action_0);
|
|
34037
34075
|
};
|
|
34038
34076
|
protoOf(_no_name_provided__qut3iv_16).s2x = function (store, next, action) {
|
|
34039
34077
|
return this.v2z(store, next, action);
|
|
34040
34078
|
};
|
|
34041
|
-
function
|
|
34042
|
-
|
|
34079
|
+
function checkValidTurnWhenAnswerFromClientMiddleware(sendErrorToClient, enableCheckWhen, logger) {
|
|
34080
|
+
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
34043
34081
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
34044
|
-
return new _no_name_provided__qut3iv_17(
|
|
34082
|
+
return new _no_name_provided__qut3iv_17(enableCheckWhen, sendErrorToClient, logger);
|
|
34045
34083
|
}
|
|
34046
|
-
function checkValidPlayerConnectionStateMiddleware(sendErrorToClient,
|
|
34047
|
-
|
|
34084
|
+
function checkValidPlayerConnectionStateMiddleware(sendErrorToClient, enableCheckWhen, logger) {
|
|
34085
|
+
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
34048
34086
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
34049
|
-
return new _no_name_provided__qut3iv_18(
|
|
34087
|
+
return new _no_name_provided__qut3iv_18(enableCheckWhen, sendErrorToClient, logger);
|
|
34050
34088
|
}
|
|
34051
|
-
function checkValidNextPlayerTurnMiddleware(
|
|
34052
|
-
|
|
34089
|
+
function checkValidNextPlayerTurnMiddleware(enableCheckWhen, logger) {
|
|
34090
|
+
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
34053
34091
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
34054
|
-
return new _no_name_provided__qut3iv_19(
|
|
34092
|
+
return new _no_name_provided__qut3iv_19(enableCheckWhen, logger);
|
|
34055
34093
|
}
|
|
34056
|
-
function
|
|
34057
|
-
|
|
34094
|
+
function checkValidTurnWhenAnswerMiddleware(sendErrorToClient, enableClientTurnCheckWhen, logger) {
|
|
34095
|
+
enableClientTurnCheckWhen = enableClientTurnCheckWhen === VOID ? emptyList() : enableClientTurnCheckWhen;
|
|
34058
34096
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
34059
|
-
return new _no_name_provided__qut3iv_20(
|
|
34097
|
+
return new _no_name_provided__qut3iv_20(enableClientTurnCheckWhen, sendErrorToClient, logger);
|
|
34060
34098
|
}
|
|
34061
|
-
function isEnabledCheck(
|
|
34099
|
+
function isEnabledCheck(enableCheckWhen, state, action) {
|
|
34062
34100
|
var tmp;
|
|
34063
|
-
if (
|
|
34101
|
+
if (enableCheckWhen.p()) {
|
|
34064
34102
|
tmp = true;
|
|
34065
34103
|
} else {
|
|
34066
34104
|
var tmp$ret$0;
|
|
34067
34105
|
$l$block_0: {
|
|
34068
34106
|
// Inline function 'kotlin.collections.all' call
|
|
34069
34107
|
var tmp_0;
|
|
34070
|
-
if (isInterface(
|
|
34071
|
-
tmp_0 =
|
|
34108
|
+
if (isInterface(enableCheckWhen, Collection)) {
|
|
34109
|
+
tmp_0 = enableCheckWhen.p();
|
|
34072
34110
|
} else {
|
|
34073
34111
|
tmp_0 = false;
|
|
34074
34112
|
}
|
|
@@ -34076,12 +34114,11 @@
|
|
|
34076
34114
|
tmp$ret$0 = true;
|
|
34077
34115
|
break $l$block_0;
|
|
34078
34116
|
}
|
|
34079
|
-
var tmp0_iterator =
|
|
34117
|
+
var tmp0_iterator = enableCheckWhen.j();
|
|
34080
34118
|
while (tmp0_iterator.k()) {
|
|
34081
34119
|
var element = tmp0_iterator.l();
|
|
34082
34120
|
// Inline function 'com.debertz.logic.redux.middlewares.validation.isEnabledCheck.<anonymous>' call
|
|
34083
|
-
|
|
34084
|
-
if (!!disabled) {
|
|
34121
|
+
if (!element.f4p(state, action)) {
|
|
34085
34122
|
tmp$ret$0 = false;
|
|
34086
34123
|
break $l$block_0;
|
|
34087
34124
|
}
|
|
@@ -34093,20 +34130,20 @@
|
|
|
34093
34130
|
var checkEnabled = tmp;
|
|
34094
34131
|
return checkEnabled;
|
|
34095
34132
|
}
|
|
34096
|
-
function _no_name_provided__qut3iv_17($
|
|
34097
|
-
this.
|
|
34098
|
-
this.
|
|
34099
|
-
this.
|
|
34133
|
+
function _no_name_provided__qut3iv_17($enableCheckWhen, $sendErrorToClient, $logger) {
|
|
34134
|
+
this.y4r_1 = $enableCheckWhen;
|
|
34135
|
+
this.z4r_1 = $sendErrorToClient;
|
|
34136
|
+
this.a4s_1 = $logger;
|
|
34100
34137
|
}
|
|
34101
34138
|
protoOf(_no_name_provided__qut3iv_17).t2x = function (action) {
|
|
34102
34139
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
34103
34140
|
};
|
|
34104
34141
|
protoOf(_no_name_provided__qut3iv_17).v2z = function (store, next, action) {
|
|
34105
34142
|
$l$block: {
|
|
34106
|
-
// Inline function 'com.debertz.logic.redux.middlewares.validation.
|
|
34143
|
+
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkValidTurnWhenAnswerFromClientMiddleware.<anonymous>' call
|
|
34107
34144
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
34108
34145
|
var state = store.state;
|
|
34109
|
-
if (!isEnabledCheck(this.
|
|
34146
|
+
if (!isEnabledCheck(this.y4r_1, state, action_0)) {
|
|
34110
34147
|
next(action_0);
|
|
34111
34148
|
break $l$block;
|
|
34112
34149
|
}
|
|
@@ -34118,7 +34155,7 @@
|
|
|
34118
34155
|
var tmp0_iterator = players.j();
|
|
34119
34156
|
while (tmp0_iterator.k()) {
|
|
34120
34157
|
var item = tmp0_iterator.l();
|
|
34121
|
-
// Inline function 'com.debertz.logic.redux.middlewares.validation.
|
|
34158
|
+
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkValidTurnWhenAnswerFromClientMiddleware.<anonymous>.<anonymous>' call
|
|
34122
34159
|
var tmp$ret$1 = item.playerId;
|
|
34123
34160
|
destination.e(tmp$ret$1);
|
|
34124
34161
|
}
|
|
@@ -34130,15 +34167,15 @@
|
|
|
34130
34167
|
var tmp0_iterator_0 = players.j();
|
|
34131
34168
|
while (tmp0_iterator_0.k()) {
|
|
34132
34169
|
var item_0 = tmp0_iterator_0.l();
|
|
34133
|
-
// Inline function 'com.debertz.logic.redux.middlewares.validation.
|
|
34170
|
+
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkValidTurnWhenAnswerFromClientMiddleware.<anonymous>.<anonymous>' call
|
|
34134
34171
|
var tmp$ret$4 = to(item_0.playerId, item_0.w36_1.x2r());
|
|
34135
34172
|
destination_0.e(tmp$ret$4);
|
|
34136
34173
|
}
|
|
34137
34174
|
var message = 'Is not player turn:' + ('expected = ' + toString(destination_0) + ', \n') + ('actual = ' + player.playerId);
|
|
34138
|
-
if (this.
|
|
34175
|
+
if (this.z4r_1) {
|
|
34139
34176
|
store.dispatch(new ErrorToClientAction(Companion_instance_121.userFromTable(state.e33(), player.playerId), new ErrorState('Is not player turn: ' + message, VOID, new PlayerLostConnectionReason(player.playerId, player.w36_1.y2r()))));
|
|
34140
34177
|
}
|
|
34141
|
-
this.
|
|
34178
|
+
this.a4s_1.w('Validation', 'checkValidTurnAnswerFromClientMiddleware: ' + message + ', action: ' + toString(action_0));
|
|
34142
34179
|
} else {
|
|
34143
34180
|
next(action_0);
|
|
34144
34181
|
}
|
|
@@ -34147,10 +34184,10 @@
|
|
|
34147
34184
|
protoOf(_no_name_provided__qut3iv_17).s2x = function (store, next, action) {
|
|
34148
34185
|
return this.v2z(store, next, action);
|
|
34149
34186
|
};
|
|
34150
|
-
function _no_name_provided__qut3iv_18($
|
|
34151
|
-
this.
|
|
34152
|
-
this.
|
|
34153
|
-
this.
|
|
34187
|
+
function _no_name_provided__qut3iv_18($enableCheckWhen, $sendErrorToClient, $logger) {
|
|
34188
|
+
this.b4s_1 = $enableCheckWhen;
|
|
34189
|
+
this.c4s_1 = $sendErrorToClient;
|
|
34190
|
+
this.d4s_1 = $logger;
|
|
34154
34191
|
}
|
|
34155
34192
|
protoOf(_no_name_provided__qut3iv_18).t2x = function (action) {
|
|
34156
34193
|
return action instanceof FromClientAction;
|
|
@@ -34160,20 +34197,20 @@
|
|
|
34160
34197
|
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkValidPlayerConnectionStateMiddleware.<anonymous>' call
|
|
34161
34198
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
34162
34199
|
var state = store.state;
|
|
34163
|
-
if (!isEnabledCheck(this.
|
|
34200
|
+
if (!isEnabledCheck(this.b4s_1, state, action_0)) {
|
|
34164
34201
|
next(action_0);
|
|
34165
34202
|
break $l$block;
|
|
34166
34203
|
}
|
|
34167
34204
|
var table = store.state.e33();
|
|
34168
34205
|
var player = getPlayer(table.players, action_0.playerId);
|
|
34169
|
-
var
|
|
34170
|
-
var connectionState =
|
|
34206
|
+
var tmp749_safe_receiver = player.b37_1;
|
|
34207
|
+
var connectionState = tmp749_safe_receiver == null ? null : tmp749_safe_receiver.p2q_1;
|
|
34171
34208
|
if (!(connectionState == null) && !connectionState.isLive) {
|
|
34172
34209
|
var message = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
34173
|
-
if (this.
|
|
34210
|
+
if (this.c4s_1) {
|
|
34174
34211
|
store.dispatch(new ErrorToClientAction(Companion_instance_121.userFromTable(table, player.playerId), new ErrorState(message, VOID, new PlayerLostConnectionReason(player.playerId, player.w36_1.y2r()))));
|
|
34175
34212
|
}
|
|
34176
|
-
this.
|
|
34213
|
+
this.d4s_1.w('Validation', 'checkValidPlayerConnectionStateMiddleware: ' + message + ', action: ' + toString(action_0));
|
|
34177
34214
|
} else {
|
|
34178
34215
|
next(action_0);
|
|
34179
34216
|
}
|
|
@@ -34182,9 +34219,9 @@
|
|
|
34182
34219
|
protoOf(_no_name_provided__qut3iv_18).s2x = function (store, next, action) {
|
|
34183
34220
|
return this.v2z(store, next, action);
|
|
34184
34221
|
};
|
|
34185
|
-
function _no_name_provided__qut3iv_19($
|
|
34186
|
-
this.
|
|
34187
|
-
this.
|
|
34222
|
+
function _no_name_provided__qut3iv_19($enableCheckWhen, $logger) {
|
|
34223
|
+
this.e4s_1 = $enableCheckWhen;
|
|
34224
|
+
this.f4s_1 = $logger;
|
|
34188
34225
|
}
|
|
34189
34226
|
protoOf(_no_name_provided__qut3iv_19).t2x = function (action) {
|
|
34190
34227
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -34194,7 +34231,7 @@
|
|
|
34194
34231
|
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkValidNextPlayerTurnMiddleware.<anonymous>' call
|
|
34195
34232
|
var action_0 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
34196
34233
|
var state = store.state;
|
|
34197
|
-
if (!isEnabledCheck(this.
|
|
34234
|
+
if (!isEnabledCheck(this.e4s_1, state, action_0)) {
|
|
34198
34235
|
next(action_0);
|
|
34199
34236
|
break $l$block;
|
|
34200
34237
|
}
|
|
@@ -34246,7 +34283,7 @@
|
|
|
34246
34283
|
destination_0.e(tmp$ret$6);
|
|
34247
34284
|
}
|
|
34248
34285
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination_0) + ', ') + ('actual = ' + toString(action_0.v4m()));
|
|
34249
|
-
this.
|
|
34286
|
+
this.f4s_1.w('Validation', 'checkValidNextPlayerTurnMiddleware: ' + message + ', action: ' + toString(action_0));
|
|
34250
34287
|
} else {
|
|
34251
34288
|
next(action_0);
|
|
34252
34289
|
}
|
|
@@ -34255,23 +34292,25 @@
|
|
|
34255
34292
|
protoOf(_no_name_provided__qut3iv_19).s2x = function (store, next, action) {
|
|
34256
34293
|
return this.v2z(store, next, action);
|
|
34257
34294
|
};
|
|
34258
|
-
function _no_name_provided__qut3iv_20($
|
|
34259
|
-
this.
|
|
34260
|
-
this.
|
|
34295
|
+
function _no_name_provided__qut3iv_20($enableClientTurnCheckWhen, $sendErrorToClient, $logger) {
|
|
34296
|
+
this.g4s_1 = $enableClientTurnCheckWhen;
|
|
34297
|
+
this.h4s_1 = $sendErrorToClient;
|
|
34298
|
+
this.i4s_1 = $logger;
|
|
34261
34299
|
}
|
|
34262
34300
|
protoOf(_no_name_provided__qut3iv_20).t2x = function (action) {
|
|
34263
34301
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
34264
34302
|
};
|
|
34265
34303
|
protoOf(_no_name_provided__qut3iv_20).v2z = function (store, next, action) {
|
|
34266
34304
|
$l$block: {
|
|
34267
|
-
// Inline function 'com.debertz.logic.redux.middlewares.validation.
|
|
34305
|
+
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkValidTurnWhenAnswerMiddleware.<anonymous>' call
|
|
34268
34306
|
var action_0 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
34269
34307
|
var state = store.state;
|
|
34270
|
-
if (!isEnabledCheck(this.
|
|
34308
|
+
if (!isEnabledCheck(this.g4s_1, state, action_0)) {
|
|
34271
34309
|
next(action_0);
|
|
34272
34310
|
break $l$block;
|
|
34273
34311
|
}
|
|
34274
|
-
var
|
|
34312
|
+
var table = state.e33();
|
|
34313
|
+
var players = filterPlayerTurn(table.players);
|
|
34275
34314
|
var player = getPlayerTurn(action_0, state.e33().players);
|
|
34276
34315
|
// Inline function 'kotlin.collections.map' call
|
|
34277
34316
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -34279,7 +34318,7 @@
|
|
|
34279
34318
|
var tmp0_iterator = players.j();
|
|
34280
34319
|
while (tmp0_iterator.k()) {
|
|
34281
34320
|
var item = tmp0_iterator.l();
|
|
34282
|
-
// Inline function 'com.debertz.logic.redux.middlewares.validation.
|
|
34321
|
+
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkValidTurnWhenAnswerMiddleware.<anonymous>.<anonymous>' call
|
|
34283
34322
|
var tmp$ret$1 = item.playerId;
|
|
34284
34323
|
destination.e(tmp$ret$1);
|
|
34285
34324
|
}
|
|
@@ -34291,12 +34330,15 @@
|
|
|
34291
34330
|
var tmp0_iterator_0 = players.j();
|
|
34292
34331
|
while (tmp0_iterator_0.k()) {
|
|
34293
34332
|
var item_0 = tmp0_iterator_0.l();
|
|
34294
|
-
// Inline function 'com.debertz.logic.redux.middlewares.validation.
|
|
34333
|
+
// Inline function 'com.debertz.logic.redux.middlewares.validation.checkValidTurnWhenAnswerMiddleware.<anonymous>.<anonymous>' call
|
|
34295
34334
|
var tmp$ret$4 = to(item_0.playerId, item_0.w36_1.x2r());
|
|
34296
34335
|
destination_0.e(tmp$ret$4);
|
|
34297
34336
|
}
|
|
34298
34337
|
var message = 'Is not player turn:' + ('expected = ' + toString(destination_0) + ', ') + ('actual = ' + player.playerId);
|
|
34299
|
-
this.
|
|
34338
|
+
if (this.h4s_1) {
|
|
34339
|
+
store.dispatch(new ErrorToClientAction(Companion_instance_121.userFromTable(table, player.playerId), new ErrorState(message, VOID, new PlayerLostConnectionReason(player.playerId, player.w36_1.y2r()))));
|
|
34340
|
+
}
|
|
34341
|
+
this.i4s_1.w('Validation', 'checkValidTurnAnswerMiddleware: ' + message + ', action: ' + toString(action_0));
|
|
34300
34342
|
} else {
|
|
34301
34343
|
next(action_0);
|
|
34302
34344
|
}
|
|
@@ -34314,7 +34356,7 @@
|
|
|
34314
34356
|
return new _no_name_provided__qut3iv_22(logger);
|
|
34315
34357
|
}
|
|
34316
34358
|
function _no_name_provided__qut3iv_21($logger) {
|
|
34317
|
-
this.
|
|
34359
|
+
this.j4s_1 = $logger;
|
|
34318
34360
|
}
|
|
34319
34361
|
protoOf(_no_name_provided__qut3iv_21).t2x = function (action) {
|
|
34320
34362
|
return action instanceof SceneMechanicAction;
|
|
@@ -34326,7 +34368,7 @@
|
|
|
34326
34368
|
if (state.f33()) {
|
|
34327
34369
|
var sceneInfo = state.e33().sceneInfo;
|
|
34328
34370
|
if (!get_isWaitingScene(sceneInfo.c4a_1) && Companion_instance_4.d33(sceneInfo.c4a_1, action_0.d4j_1) && equals(sceneInfo.f4a_1, action_0.sceneData)) {
|
|
34329
|
-
this.
|
|
34371
|
+
this.j4s_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
34330
34372
|
}
|
|
34331
34373
|
}
|
|
34332
34374
|
next(action_0);
|
|
@@ -34335,7 +34377,7 @@
|
|
|
34335
34377
|
return this.v2z(store, next, action);
|
|
34336
34378
|
};
|
|
34337
34379
|
function _no_name_provided__qut3iv_22($logger) {
|
|
34338
|
-
this.
|
|
34380
|
+
this.k4s_1 = $logger;
|
|
34339
34381
|
}
|
|
34340
34382
|
protoOf(_no_name_provided__qut3iv_22).t2x = function (action) {
|
|
34341
34383
|
return action instanceof SceneActMechanicAction;
|
|
@@ -34347,7 +34389,7 @@
|
|
|
34347
34389
|
if (state.f33()) {
|
|
34348
34390
|
var sceneInfo = state.e33().sceneInfo;
|
|
34349
34391
|
if (Companion_instance_4.d33(sceneInfo.c4a_1, action_0.v4i_1) && sceneInfo.e4a_1 === action_0.w4i_1 && equals(sceneInfo.g4a_1, action_0.x4i_1)) {
|
|
34350
|
-
this.
|
|
34392
|
+
this.k4s_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
34351
34393
|
}
|
|
34352
34394
|
}
|
|
34353
34395
|
next(action_0);
|
|
@@ -34364,13 +34406,13 @@
|
|
|
34364
34406
|
protoOf(_no_name_provided__qut3iv_23).t2x = function (action) {
|
|
34365
34407
|
return action instanceof ClearAction;
|
|
34366
34408
|
};
|
|
34367
|
-
protoOf(_no_name_provided__qut3iv_23).
|
|
34409
|
+
protoOf(_no_name_provided__qut3iv_23).l4s = function (state, action) {
|
|
34368
34410
|
// Inline function 'com.debertz.logic.redux.reducers.clearReducer.<anonymous>' call
|
|
34369
34411
|
action instanceof ClearAction || THROW_CCE();
|
|
34370
34412
|
return state.a4l(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
|
|
34371
34413
|
};
|
|
34372
34414
|
protoOf(_no_name_provided__qut3iv_23).w2z = function (state, action) {
|
|
34373
|
-
return this.
|
|
34415
|
+
return this.l4s((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
34374
34416
|
};
|
|
34375
34417
|
function mechanicReducer(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer) {
|
|
34376
34418
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -34379,58 +34421,58 @@
|
|
|
34379
34421
|
function mechanicReducer$_anonymous_$reduce_kmtetj($gameLifecycleReducer, $teamsMechanicReducer, $tradeMechanicReducer, $combinationsMechanicReducer, $earnPointsMechanicReducer, $sceneReducer, $sceneActReducer, $playerTurnMechanicReducer, state, action) {
|
|
34380
34422
|
var tmp;
|
|
34381
34423
|
if (action instanceof StartGameMechanicAction) {
|
|
34382
|
-
tmp = $gameLifecycleReducer.
|
|
34424
|
+
tmp = $gameLifecycleReducer.x4t(state, action);
|
|
34383
34425
|
} else {
|
|
34384
34426
|
if (action instanceof StartNewGameMechanicAction) {
|
|
34385
|
-
tmp = $gameLifecycleReducer.
|
|
34427
|
+
tmp = $gameLifecycleReducer.w4t(state, action);
|
|
34386
34428
|
} else {
|
|
34387
34429
|
if (action instanceof ContinueGameMechanicAction) {
|
|
34388
|
-
tmp = $gameLifecycleReducer.
|
|
34430
|
+
tmp = $gameLifecycleReducer.v4t(state, action);
|
|
34389
34431
|
} else {
|
|
34390
34432
|
if (action instanceof FinishingGameMechanicAction) {
|
|
34391
|
-
tmp = $gameLifecycleReducer.
|
|
34433
|
+
tmp = $gameLifecycleReducer.u4t(state, action);
|
|
34392
34434
|
} else {
|
|
34393
34435
|
if (action instanceof FinishGameMechanicAction) {
|
|
34394
|
-
tmp = $gameLifecycleReducer.
|
|
34436
|
+
tmp = $gameLifecycleReducer.t4t(state, action);
|
|
34395
34437
|
} else {
|
|
34396
34438
|
if (action instanceof RestartGameMechanicAction) {
|
|
34397
|
-
tmp = $gameLifecycleReducer.
|
|
34439
|
+
tmp = $gameLifecycleReducer.s4t(state, action);
|
|
34398
34440
|
} else {
|
|
34399
34441
|
if (action instanceof ErrorAction) {
|
|
34400
|
-
tmp = $gameLifecycleReducer.
|
|
34442
|
+
tmp = $gameLifecycleReducer.r4t(state, action);
|
|
34401
34443
|
} else {
|
|
34402
34444
|
if (action instanceof TeamsDataMechanicAction) {
|
|
34403
|
-
tmp = state.a4l(state.e33().copy(VOID, VOID, VOID, VOID, $teamsMechanicReducer.
|
|
34445
|
+
tmp = state.a4l(state.e33().copy(VOID, VOID, VOID, VOID, $teamsMechanicReducer.q4t(state.e33().players, action)));
|
|
34404
34446
|
} else {
|
|
34405
34447
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
34406
|
-
tmp = $tradeMechanicReducer.
|
|
34448
|
+
tmp = $tradeMechanicReducer.p4t(state, action);
|
|
34407
34449
|
} else {
|
|
34408
34450
|
if (action instanceof TrumpMechanicAction) {
|
|
34409
|
-
tmp = $tradeMechanicReducer.
|
|
34451
|
+
tmp = $tradeMechanicReducer.o4t(state, action);
|
|
34410
34452
|
} else {
|
|
34411
34453
|
if (action instanceof CombinationChoiceMechanicAction) {
|
|
34412
|
-
tmp = $combinationsMechanicReducer.
|
|
34454
|
+
tmp = $combinationsMechanicReducer.l4t(state, action);
|
|
34413
34455
|
} else {
|
|
34414
34456
|
if (action instanceof PutCardMechanicAction) {
|
|
34415
|
-
tmp = $earnPointsMechanicReducer.
|
|
34457
|
+
tmp = $earnPointsMechanicReducer.k4t(state, action);
|
|
34416
34458
|
} else {
|
|
34417
34459
|
if (action instanceof PickUpBribeMechanicAction) {
|
|
34418
|
-
tmp = $earnPointsMechanicReducer.
|
|
34460
|
+
tmp = $earnPointsMechanicReducer.j4t(state, action);
|
|
34419
34461
|
} else {
|
|
34420
34462
|
if (action instanceof WinnerCombinationsMechanicAction) {
|
|
34421
|
-
tmp = $combinationsMechanicReducer.
|
|
34463
|
+
tmp = $combinationsMechanicReducer.c4t(state, action);
|
|
34422
34464
|
} else {
|
|
34423
34465
|
if (action instanceof SceneMechanicAction) {
|
|
34424
|
-
tmp = state.a4l($sceneReducer.
|
|
34466
|
+
tmp = state.a4l($sceneReducer.w4s(state.e33(), action));
|
|
34425
34467
|
} else {
|
|
34426
34468
|
if (action instanceof SceneActMechanicAction) {
|
|
34427
|
-
tmp = state.a4l($sceneActReducer.
|
|
34469
|
+
tmp = state.a4l($sceneActReducer.p4s(state.e33(), action));
|
|
34428
34470
|
} else {
|
|
34429
34471
|
if (action instanceof PlayerReadyMechanicAction) {
|
|
34430
|
-
tmp = state.a4l($playerTurnMechanicReducer.
|
|
34472
|
+
tmp = state.a4l($playerTurnMechanicReducer.o4s(state.e33(), action));
|
|
34431
34473
|
} else {
|
|
34432
34474
|
if (action instanceof PlayerConnectionChangedMechanicAction) {
|
|
34433
|
-
tmp = state.a4l($playerTurnMechanicReducer.
|
|
34475
|
+
tmp = state.a4l($playerTurnMechanicReducer.n4s(state.e33(), action.playerId, action.state, action.reconnectUntilTime));
|
|
34434
34476
|
} else {
|
|
34435
34477
|
if (action instanceof MessageMechanicAction) {
|
|
34436
34478
|
tmp = state;
|
|
@@ -34471,25 +34513,25 @@
|
|
|
34471
34513
|
return tmp;
|
|
34472
34514
|
}
|
|
34473
34515
|
function _no_name_provided__qut3iv_24($gameLifecycleReducer, $teamsMechanicReducer, $tradeMechanicReducer, $combinationsMechanicReducer, $earnPointsMechanicReducer, $sceneReducer, $sceneActReducer, $playerTurnMechanicReducer) {
|
|
34474
|
-
this.
|
|
34475
|
-
this.
|
|
34476
|
-
this.
|
|
34477
|
-
this.
|
|
34478
|
-
this.
|
|
34479
|
-
this.
|
|
34480
|
-
this.
|
|
34481
|
-
this.
|
|
34516
|
+
this.y4t_1 = $gameLifecycleReducer;
|
|
34517
|
+
this.z4t_1 = $teamsMechanicReducer;
|
|
34518
|
+
this.a4u_1 = $tradeMechanicReducer;
|
|
34519
|
+
this.b4u_1 = $combinationsMechanicReducer;
|
|
34520
|
+
this.c4u_1 = $earnPointsMechanicReducer;
|
|
34521
|
+
this.d4u_1 = $sceneReducer;
|
|
34522
|
+
this.e4u_1 = $sceneActReducer;
|
|
34523
|
+
this.f4u_1 = $playerTurnMechanicReducer;
|
|
34482
34524
|
}
|
|
34483
34525
|
protoOf(_no_name_provided__qut3iv_24).t2x = function (action) {
|
|
34484
34526
|
return action instanceof MechanicAction;
|
|
34485
34527
|
};
|
|
34486
|
-
protoOf(_no_name_provided__qut3iv_24).
|
|
34528
|
+
protoOf(_no_name_provided__qut3iv_24).l4s = function (state, action) {
|
|
34487
34529
|
// Inline function 'com.debertz.logic.redux.reducers.mechanicReducer.<anonymous>' call
|
|
34488
34530
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
34489
|
-
return mechanicReducer$_anonymous_$reduce_kmtetj(this.
|
|
34531
|
+
return mechanicReducer$_anonymous_$reduce_kmtetj(this.y4t_1, this.z4t_1, this.a4u_1, this.b4u_1, this.c4u_1, this.d4u_1, this.e4u_1, this.f4u_1, state, action_0);
|
|
34490
34532
|
};
|
|
34491
34533
|
protoOf(_no_name_provided__qut3iv_24).w2z = function (state, action) {
|
|
34492
|
-
return this.
|
|
34534
|
+
return this.l4s((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
34493
34535
|
};
|
|
34494
34536
|
function timerReducer() {
|
|
34495
34537
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -34500,7 +34542,7 @@
|
|
|
34500
34542
|
protoOf(_no_name_provided__qut3iv_25).t2x = function (action) {
|
|
34501
34543
|
return action instanceof TimerAction;
|
|
34502
34544
|
};
|
|
34503
|
-
protoOf(_no_name_provided__qut3iv_25).
|
|
34545
|
+
protoOf(_no_name_provided__qut3iv_25).l4s = function (state, action) {
|
|
34504
34546
|
// Inline function 'com.debertz.logic.redux.reducers.timerReducer.<anonymous>' call
|
|
34505
34547
|
var action_0 = action instanceof TimerAction ? action : THROW_CCE();
|
|
34506
34548
|
var tmp;
|
|
@@ -34526,11 +34568,11 @@
|
|
|
34526
34568
|
return tmp;
|
|
34527
34569
|
};
|
|
34528
34570
|
protoOf(_no_name_provided__qut3iv_25).w2z = function (state, action) {
|
|
34529
|
-
return this.
|
|
34571
|
+
return this.l4s((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
34530
34572
|
};
|
|
34531
34573
|
function SceneActReducer() {
|
|
34532
34574
|
}
|
|
34533
|
-
protoOf(SceneActReducer).
|
|
34575
|
+
protoOf(SceneActReducer).p4s = function (table, action) {
|
|
34534
34576
|
var tmp;
|
|
34535
34577
|
switch (action.v4i_1) {
|
|
34536
34578
|
case 'TRADE':
|
|
@@ -34567,7 +34609,7 @@
|
|
|
34567
34609
|
}
|
|
34568
34610
|
var combinationActData = tmp$ret$0;
|
|
34569
34611
|
var updatedCombinations = combinationActData.e3i_1;
|
|
34570
|
-
var
|
|
34612
|
+
var tmp759_sceneInfo = table.sceneInfo.i4a(VOID, VOID, action.w4i_1, VOID, action.x4i_1);
|
|
34571
34613
|
var tmp;
|
|
34572
34614
|
if (updatedCombinations == null) {
|
|
34573
34615
|
tmp = null;
|
|
@@ -34606,11 +34648,11 @@
|
|
|
34606
34648
|
while (tmp0_iterator_1.k()) {
|
|
34607
34649
|
var item_0 = tmp0_iterator_1.l();
|
|
34608
34650
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.act.playerTurnReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
34609
|
-
var
|
|
34610
|
-
var
|
|
34611
|
-
var
|
|
34612
|
-
var
|
|
34613
|
-
var tmp$ret$3 = mapToDetailedFull(item_0,
|
|
34651
|
+
var tmp755_state = CombinationState_NOT_VERIFIED_getInstance();
|
|
34652
|
+
var tmp756_config = table.config;
|
|
34653
|
+
var tmp757_playerId = item.playerId;
|
|
34654
|
+
var tmp758_players = table.players;
|
|
34655
|
+
var tmp$ret$3 = mapToDetailedFull(item_0, tmp757_playerId, tmp755_state, tmp756_config, tmp758_players, null);
|
|
34614
34656
|
destination_1.e(tmp$ret$3);
|
|
34615
34657
|
}
|
|
34616
34658
|
tmp_0 = item.s37(VOID, VOID, VOID, VOID, VOID, item.a37_1.l3a(VOID, plus(tmp_1, destination_1)));
|
|
@@ -34623,8 +34665,8 @@
|
|
|
34623
34665
|
tmp = destination;
|
|
34624
34666
|
}
|
|
34625
34667
|
var tmp0_elvis_lhs = tmp;
|
|
34626
|
-
var
|
|
34627
|
-
return table.copy(VOID, VOID, VOID, VOID,
|
|
34668
|
+
var tmp760_players = tmp0_elvis_lhs == null ? table.players : tmp0_elvis_lhs;
|
|
34669
|
+
return table.copy(VOID, VOID, VOID, VOID, tmp760_players, tmp759_sceneInfo);
|
|
34628
34670
|
}
|
|
34629
34671
|
function combinationReducer(action, table) {
|
|
34630
34672
|
var tmp$ret$0;
|
|
@@ -34639,7 +34681,7 @@
|
|
|
34639
34681
|
}
|
|
34640
34682
|
var combinationActData = tmp$ret$0;
|
|
34641
34683
|
var player = getPlayer(table.players, combinationActData.c3i());
|
|
34642
|
-
var
|
|
34684
|
+
var tmp765_sceneInfo = table.sceneInfo.i4a(VOID, VOID, action.w4i_1, VOID, action.x4i_1);
|
|
34643
34685
|
// Inline function 'kotlin.collections.filterNot' call
|
|
34644
34686
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
34645
34687
|
var this_1 = player.a37_1.p38_1;
|
|
@@ -34686,49 +34728,49 @@
|
|
|
34686
34728
|
while (tmp0_iterator_1.k()) {
|
|
34687
34729
|
var item = tmp0_iterator_1.l();
|
|
34688
34730
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.act.combinationReducer.<anonymous>' call
|
|
34689
|
-
var
|
|
34690
|
-
var
|
|
34691
|
-
var
|
|
34692
|
-
var
|
|
34693
|
-
var tmp$ret$5 = mapToDetailedFull(item,
|
|
34731
|
+
var tmp761_state = CombinationState_VERIFYING_getInstance();
|
|
34732
|
+
var tmp762_config = table.config;
|
|
34733
|
+
var tmp763_playerId = player.playerId;
|
|
34734
|
+
var tmp764_players = table.players;
|
|
34735
|
+
var tmp$ret$5 = mapToDetailedFull(item, tmp763_playerId, tmp761_state, tmp762_config, tmp764_players, null);
|
|
34694
34736
|
destination_0.e(tmp$ret$5);
|
|
34695
34737
|
}
|
|
34696
|
-
var
|
|
34697
|
-
return table.copy(VOID, VOID, VOID, VOID,
|
|
34738
|
+
var tmp766_players = updateItem(table.players, player.s37(VOID, VOID, VOID, VOID, VOID, player.a37_1.l3a(VOID, plus(tmp_0, destination_0))), get_byIdPlayerPredicate()(player.playerId));
|
|
34739
|
+
return table.copy(VOID, VOID, VOID, VOID, tmp766_players, tmp765_sceneInfo);
|
|
34698
34740
|
}
|
|
34699
34741
|
function MechanicLifecycleReducer() {
|
|
34700
34742
|
}
|
|
34701
34743
|
function BaseMechanicLifecycleReducer(tableLifecycleReducer) {
|
|
34702
|
-
this.
|
|
34744
|
+
this.g4u_1 = tableLifecycleReducer;
|
|
34703
34745
|
}
|
|
34704
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
34705
|
-
var
|
|
34706
|
-
var
|
|
34707
|
-
var
|
|
34708
|
-
return state.a4l(
|
|
34746
|
+
protoOf(BaseMechanicLifecycleReducer).v4t = function (state, action) {
|
|
34747
|
+
var tmp767_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
34748
|
+
var tmp768_tableOrNull = action.p4n_1;
|
|
34749
|
+
var tmp769_payload = action.r4n_1;
|
|
34750
|
+
return state.a4l(tmp768_tableOrNull, tmp769_payload, tmp767_gameLifecycleState, null);
|
|
34709
34751
|
};
|
|
34710
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
34752
|
+
protoOf(BaseMechanicLifecycleReducer).t4t = function (state, action) {
|
|
34711
34753
|
return state.a4l(VOID, VOID, GameLifecycleState_FINISHED_getInstance(), action.r4m_1);
|
|
34712
34754
|
};
|
|
34713
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
34714
|
-
var
|
|
34715
|
-
var
|
|
34716
|
-
var
|
|
34717
|
-
return state.a4l(
|
|
34755
|
+
protoOf(BaseMechanicLifecycleReducer).u4t = function (state, action) {
|
|
34756
|
+
var tmp770_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
34757
|
+
var tmp771_terminationGameReason = action.o4m_1;
|
|
34758
|
+
var tmp772_tableOrNull = this.g4u_1.h4u(state.e33());
|
|
34759
|
+
return state.a4l(tmp772_tableOrNull, VOID, tmp770_gameLifecycleState, tmp771_terminationGameReason);
|
|
34718
34760
|
};
|
|
34719
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
34720
|
-
return state.a4l(this.
|
|
34761
|
+
protoOf(BaseMechanicLifecycleReducer).s4t = function (state, action) {
|
|
34762
|
+
return state.a4l(this.g4u_1.i4u(state.e33()));
|
|
34721
34763
|
};
|
|
34722
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
34764
|
+
protoOf(BaseMechanicLifecycleReducer).r4t = function (state, action) {
|
|
34723
34765
|
return state.a4l(VOID, VOID, GameLifecycleState_FINISHED_getInstance(), action.n4n_1.k3q_1);
|
|
34724
34766
|
};
|
|
34725
34767
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
34726
|
-
this.
|
|
34727
|
-
this.
|
|
34728
|
-
this.
|
|
34729
|
-
this.
|
|
34768
|
+
this.j4u_1 = pointsInteractor;
|
|
34769
|
+
this.k4u_1 = playerHappinessProvider;
|
|
34770
|
+
this.l4u_1 = logger;
|
|
34771
|
+
this.m4u_1 = dealerConfig;
|
|
34730
34772
|
}
|
|
34731
|
-
protoOf(PlayerHandReducer).
|
|
34773
|
+
protoOf(PlayerHandReducer).n4u = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
34732
34774
|
// Inline function 'kotlin.collections.map' call
|
|
34733
34775
|
// Inline function 'kotlin.collections.mapTo' call
|
|
34734
34776
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
@@ -34736,7 +34778,7 @@
|
|
|
34736
34778
|
while (tmp0_iterator.k()) {
|
|
34737
34779
|
var item = tmp0_iterator.l();
|
|
34738
34780
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.PlayerHandReducer.playerHandReducerAddRecord.<anonymous>' call
|
|
34739
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
34781
|
+
var tmp$ret$0 = mapToRecord(item, this.j4u_1.o4h(item));
|
|
34740
34782
|
destination.e(tmp$ret$0);
|
|
34741
34783
|
}
|
|
34742
34784
|
var combinationRecords = destination;
|
|
@@ -34771,7 +34813,7 @@
|
|
|
34771
34813
|
if (hasStubCards) {
|
|
34772
34814
|
return hand.y39(VOID, VOID, plus(hand.w37_1, combinationRecords), plus(hand.x37_1, combinationRecords));
|
|
34773
34815
|
}
|
|
34774
|
-
var tmp_0 = this.
|
|
34816
|
+
var tmp_0 = this.j4u_1.n4h(cards, selectedTrump, this.m4u_1.dealerStrategy);
|
|
34775
34817
|
// Inline function 'kotlin.collections.map' call
|
|
34776
34818
|
// Inline function 'kotlin.collections.mapTo' call
|
|
34777
34819
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -34783,11 +34825,11 @@
|
|
|
34783
34825
|
destination_0.e(tmp$ret$5);
|
|
34784
34826
|
}
|
|
34785
34827
|
var value = tmp_0 + sum(destination_0);
|
|
34786
|
-
var luckyFactor = this.
|
|
34787
|
-
Companion_instance_119.m4h(this.
|
|
34828
|
+
var luckyFactor = this.k4u_1.u4c(value, config.playersMode, this.m4u_1.dealerStrategy);
|
|
34829
|
+
Companion_instance_119.m4h(this.l4u_1, 'equaliseCards: earn points for = ' + playerId + ' ' + ('luckyFactor: ' + luckyFactor + ', ') + ('currentLuckyFactor: ' + hand.k38() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.m() + ', '));
|
|
34788
34830
|
return hand.y39(VOID, plus(hand.v37_1, listOf_0(Companion_instance_11.j39(luckyFactor, value))), plus(hand.w37_1, combinationRecords), plus(hand.x37_1, combinationRecords));
|
|
34789
34831
|
};
|
|
34790
|
-
protoOf(PlayerHandReducer).
|
|
34832
|
+
protoOf(PlayerHandReducer).o4u = function (playerId, hand, updatedCombinations, config) {
|
|
34791
34833
|
// Inline function 'kotlin.collections.map' call
|
|
34792
34834
|
// Inline function 'kotlin.collections.mapTo' call
|
|
34793
34835
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(updatedCombinations, 10));
|
|
@@ -34795,7 +34837,7 @@
|
|
|
34795
34837
|
while (tmp0_iterator.k()) {
|
|
34796
34838
|
var item = tmp0_iterator.l();
|
|
34797
34839
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.PlayerHandReducer.playerHandReducerUpdatedRecord.<anonymous>' call
|
|
34798
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
34840
|
+
var tmp$ret$0 = mapToRecord(item, this.j4u_1.o4h(item));
|
|
34799
34841
|
destination.e(tmp$ret$0);
|
|
34800
34842
|
}
|
|
34801
34843
|
var updatedCombinationRecords = destination;
|
|
@@ -34938,8 +34980,8 @@
|
|
|
34938
34980
|
destination_4.e(tmp$ret$21);
|
|
34939
34981
|
}
|
|
34940
34982
|
var updatedValue = tmp_3 + sum(destination_4);
|
|
34941
|
-
var updatedLuckyFactor = this.
|
|
34942
|
-
Companion_instance_119.m4h(this.
|
|
34983
|
+
var updatedLuckyFactor = this.k4u_1.u4c(updatedValue, config.playersMode, this.m4u_1.dealerStrategy);
|
|
34984
|
+
Companion_instance_119.m4h(this.l4u_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('luckyFactor: ' + updatedLuckyFactor + ', ') + ('currentLuckyFactor: ' + hand.k38() + ', ') + ('value: ' + updatedValue + ', '));
|
|
34943
34985
|
// Inline function 'kotlin.collections.map' call
|
|
34944
34986
|
var this_3 = hand.v37_1;
|
|
34945
34987
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -35033,7 +35075,7 @@
|
|
|
35033
35075
|
protoOf(PlayerSceneReducer).c4k = function (player, cards, whoShuffleCardsPlayerId) {
|
|
35034
35076
|
return player.s37(VOID, VOID, cards, player.y36_1.j3a(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
35035
35077
|
};
|
|
35036
|
-
protoOf(PlayerSceneReducer).
|
|
35078
|
+
protoOf(PlayerSceneReducer).p4u = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
35037
35079
|
// Inline function 'kotlin.collections.map' call
|
|
35038
35080
|
// Inline function 'kotlin.collections.mapTo' call
|
|
35039
35081
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
@@ -35041,14 +35083,14 @@
|
|
|
35041
35083
|
while (tmp0_iterator.k()) {
|
|
35042
35084
|
var item = tmp0_iterator.l();
|
|
35043
35085
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.PlayerSceneReducer.playerEarnPointsSceneReducer.<anonymous>' call
|
|
35044
|
-
var
|
|
35045
|
-
var
|
|
35046
|
-
var tmp$ret$0 = mapToDetailedFull(item,
|
|
35086
|
+
var tmp773_state = CombinationState_NOT_VERIFIED_getInstance();
|
|
35087
|
+
var tmp774_playerId = player.playerId;
|
|
35088
|
+
var tmp$ret$0 = mapToDetailedFull(item, tmp774_playerId, tmp773_state, config, players, null);
|
|
35047
35089
|
destination.e(tmp$ret$0);
|
|
35048
35090
|
}
|
|
35049
35091
|
var detailedCombinations = destination;
|
|
35050
35092
|
var cards = plus(player.x36_1, distributedCards);
|
|
35051
|
-
var hand = this.b4k_1.
|
|
35093
|
+
var hand = this.b4k_1.n4u(player.playerId, player.z36_1, cards, detailedCombinations, selectedTrump, config);
|
|
35052
35094
|
var tmp;
|
|
35053
35095
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
35054
35096
|
if (!combinations.p()) {
|
|
@@ -35092,10 +35134,10 @@
|
|
|
35092
35134
|
} else {
|
|
35093
35135
|
tmp = player.a37_1;
|
|
35094
35136
|
}
|
|
35095
|
-
var
|
|
35096
|
-
return player.s37(VOID, VOID, cards, VOID, hand,
|
|
35137
|
+
var tmp775_points = tmp;
|
|
35138
|
+
return player.s37(VOID, VOID, cards, VOID, hand, tmp775_points);
|
|
35097
35139
|
};
|
|
35098
|
-
protoOf(PlayerSceneReducer).
|
|
35140
|
+
protoOf(PlayerSceneReducer).q4u = function (player, sceneData) {
|
|
35099
35141
|
// Inline function 'kotlin.collections.single' call
|
|
35100
35142
|
var single = null;
|
|
35101
35143
|
var found = false;
|
|
@@ -35114,26 +35156,26 @@
|
|
|
35114
35156
|
throw NoSuchElementException_init_$Create$('Collection contains no element matching the predicate.');
|
|
35115
35157
|
var pointsCell = (single == null ? true : !(single == null)) ? single : THROW_CCE();
|
|
35116
35158
|
var playerPointsCell = getPlayer(pointsCell.w3b_1, player.playerId);
|
|
35117
|
-
var
|
|
35118
|
-
var
|
|
35119
|
-
var
|
|
35120
|
-
var
|
|
35121
|
-
var tmp0_elvis_lhs =
|
|
35122
|
-
var
|
|
35123
|
-
var
|
|
35124
|
-
var tmp =
|
|
35125
|
-
var
|
|
35126
|
-
var
|
|
35159
|
+
var tmp777_$this = player.y36_1;
|
|
35160
|
+
var tmp778_isEarnedBiggestPointInLastGame = sceneData.v3i_1 === player.playerId;
|
|
35161
|
+
var tmp779_isRoundWinner = sceneData.w3i_1.q1(player.playerId);
|
|
35162
|
+
var tmp776_safe_receiver = sceneData.x3i_1;
|
|
35163
|
+
var tmp0_elvis_lhs = tmp776_safe_receiver == null ? null : tmp776_safe_receiver.q1(player.playerId);
|
|
35164
|
+
var tmp780_isGameWinner = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
35165
|
+
var tmp781_failedContractsCount = pointsCell.x3b_1.isFailed ? player.y36_1.l37_1 + 1 | 0 : player.y36_1.l37_1;
|
|
35166
|
+
var tmp = tmp777_$this.j3a(VOID, VOID, tmp780_isGameWinner, VOID, tmp779_isRoundWinner, VOID, tmp778_isEarnedBiggestPointInLastGame, tmp781_failedContractsCount);
|
|
35167
|
+
var tmp782_earnedPoints = playerPointsCell.e3c_1;
|
|
35168
|
+
var tmp783_earnedCards = emptyList();
|
|
35127
35169
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
35128
35170
|
var tmp0_elvis_lhs_0 = playerPointsCell.f3c_1;
|
|
35129
|
-
var
|
|
35130
|
-
return player.s37(VOID, VOID, VOID, tmp, VOID, new PlayerPoints(
|
|
35171
|
+
var tmp784_combinations = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
35172
|
+
return player.s37(VOID, VOID, VOID, tmp, VOID, new PlayerPoints(tmp782_earnedPoints, tmp784_combinations, tmp783_earnedCards));
|
|
35131
35173
|
};
|
|
35132
35174
|
function PlayerTurnMechanicReducer(logger) {
|
|
35133
|
-
this.
|
|
35175
|
+
this.m4s_1 = logger;
|
|
35134
35176
|
}
|
|
35135
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
35136
|
-
this.
|
|
35177
|
+
protoOf(PlayerTurnMechanicReducer).r4u = function (table, model) {
|
|
35178
|
+
this.m4s_1.d('PlayerTurn', 'onPlayerTurn: ' + model.toString());
|
|
35137
35179
|
// Inline function 'com.logic.utils.copy' call
|
|
35138
35180
|
var this_0 = table.players;
|
|
35139
35181
|
// Inline function 'kotlin.apply' call
|
|
@@ -35147,7 +35189,7 @@
|
|
|
35147
35189
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.PlayerTurnMechanicReducer.onPlayerTurn.<anonymous>.<anonymous>' call
|
|
35148
35190
|
var player = getPlayer(table.players, element);
|
|
35149
35191
|
if (!(player.w36_1.k2q_1 == null)) {
|
|
35150
|
-
this.
|
|
35192
|
+
this.m4s_1.w(VOID, 'PlayerTurnMechanicReducer.onPlayerTurn: already ' + ('has a tag: ' + player.w36_1.k2q_1) + (', new tag: ' + model.d39_1));
|
|
35151
35193
|
}
|
|
35152
35194
|
var tmp = Companion_instance_0;
|
|
35153
35195
|
var tmp_0 = System_instance.p2i();
|
|
@@ -35160,19 +35202,19 @@
|
|
|
35160
35202
|
}
|
|
35161
35203
|
return table.copy(VOID, VOID, VOID, VOID, this_1);
|
|
35162
35204
|
};
|
|
35163
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
35205
|
+
protoOf(PlayerTurnMechanicReducer).s4u = function (table, model) {
|
|
35164
35206
|
var player = getPlayer(table.players, model.t2o());
|
|
35165
35207
|
if (player.w36_1.k2q_1 == null) {
|
|
35166
|
-
this.
|
|
35208
|
+
this.m4s_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag' + (', tag: ' + model.d39_1));
|
|
35167
35209
|
}
|
|
35168
|
-
this.
|
|
35210
|
+
this.m4s_1.d('PlayerTurn', 'onResetPlayerTurn: ' + model.toString());
|
|
35169
35211
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.s37(VOID, Companion_instance_0.t2r(player.w36_1)), get_byIdPlayerPredicate()(player.playerId)));
|
|
35170
35212
|
};
|
|
35171
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
35213
|
+
protoOf(PlayerTurnMechanicReducer).o4s = function (table, action) {
|
|
35172
35214
|
var player = getPlayer(table.players, action.t4n_1);
|
|
35173
35215
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.s37(VOID, player.w36_1.u2r(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
35174
35216
|
};
|
|
35175
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
35217
|
+
protoOf(PlayerTurnMechanicReducer).t4u = function (table) {
|
|
35176
35218
|
// Inline function 'kotlin.collections.map' call
|
|
35177
35219
|
var this_0 = table.players;
|
|
35178
35220
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -35186,16 +35228,16 @@
|
|
|
35186
35228
|
}
|
|
35187
35229
|
return table.copy(VOID, VOID, VOID, VOID, destination);
|
|
35188
35230
|
};
|
|
35189
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
35231
|
+
protoOf(PlayerTurnMechanicReducer).n4s = function (table, playerId, newConnectionState, reconnectUntilTime) {
|
|
35190
35232
|
var players = table.players;
|
|
35191
35233
|
var player = getPlayer(players, playerId);
|
|
35192
|
-
this.
|
|
35234
|
+
this.m4s_1.d(VOID, 'PlayerTurnMechanicReducer.onPlayerConnectionChanged: ' + newConnectionState.toString() + ', playerId: ' + playerId + ', state: ' + player.w36_1.toString());
|
|
35193
35235
|
var reconnectUntilTimeInstant = reconnectUntilTime == null ? null : toInstant(reconnectUntilTime);
|
|
35194
35236
|
var tmp;
|
|
35195
35237
|
if (newConnectionState.n2_1 === 0) {
|
|
35196
|
-
var
|
|
35197
|
-
var
|
|
35198
|
-
var
|
|
35238
|
+
var tmp788_$this = player.w36_1;
|
|
35239
|
+
var tmp787_safe_receiver = player.w36_1.l2q_1;
|
|
35240
|
+
var tmp789_connection = tmp787_safe_receiver == null ? null : Companion_instance_1.o2q(tmp787_safe_receiver);
|
|
35199
35241
|
var tmp_0;
|
|
35200
35242
|
if (player.w36_1.m2q()) {
|
|
35201
35243
|
var tmp_1 = System_instance.p2i();
|
|
@@ -35207,13 +35249,13 @@
|
|
|
35207
35249
|
} else {
|
|
35208
35250
|
tmp_0 = player.w36_1.g2q_1;
|
|
35209
35251
|
}
|
|
35210
|
-
var
|
|
35211
|
-
tmp =
|
|
35252
|
+
var tmp790_playerTurnTimeout = tmp_0;
|
|
35253
|
+
tmp = tmp788_$this.u2r(VOID, tmp790_playerTurnTimeout, reconnectUntilTimeInstant, VOID, VOID, VOID, tmp789_connection);
|
|
35212
35254
|
} else {
|
|
35213
|
-
var
|
|
35214
|
-
var
|
|
35215
|
-
var
|
|
35216
|
-
tmp =
|
|
35255
|
+
var tmp792_$this = player.w36_1;
|
|
35256
|
+
var tmp791_safe_receiver = player.w36_1.l2q_1;
|
|
35257
|
+
var tmp793_connection = tmp791_safe_receiver == null ? null : Companion_instance_1.u2q(tmp791_safe_receiver, newConnectionState);
|
|
35258
|
+
tmp = tmp792_$this.u2r(VOID, VOID, reconnectUntilTimeInstant, VOID, VOID, VOID, tmp793_connection);
|
|
35217
35259
|
}
|
|
35218
35260
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.s37(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)));
|
|
35219
35261
|
};
|
|
@@ -35249,16 +35291,16 @@
|
|
|
35249
35291
|
while (tmp0_iterator.k()) {
|
|
35250
35292
|
var item = tmp0_iterator.l();
|
|
35251
35293
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.SceneReducer.onCurrentScene.<anonymous>' call
|
|
35252
|
-
var tmp$ret$1 = $this.
|
|
35294
|
+
var tmp$ret$1 = $this.q4s_1.c4k(item, getValue(scene.d3j_1, item.playerId), scene.g3j_1);
|
|
35253
35295
|
destination.e(tmp$ret$1);
|
|
35254
35296
|
}
|
|
35255
35297
|
|
|
35256
|
-
var
|
|
35257
|
-
var
|
|
35258
|
-
var
|
|
35259
|
-
var
|
|
35260
|
-
var
|
|
35261
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, sceneInfo, VOID, VOID, cardDeck, VOID,
|
|
35298
|
+
var tmp795_$this = $this.t4s_1;
|
|
35299
|
+
var tmp796_gameHistory = table.gameHistory;
|
|
35300
|
+
var tmp797_playersCards = scene.d3j_1;
|
|
35301
|
+
var tmp798_whoShuffleCardsPlayerId = scene.g3j_1;
|
|
35302
|
+
var tmp800_gameHistory = tmp795_$this.v4u(cardDeck, tmp798_whoShuffleCardsPlayerId, tmp797_playersCards, tmp796_gameHistory);
|
|
35303
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, sceneInfo, VOID, VOID, cardDeck, VOID, tmp800_gameHistory);
|
|
35262
35304
|
case 'EARN_POINTS':
|
|
35263
35305
|
var tmp$ret$4;
|
|
35264
35306
|
$l$block_0: {
|
|
@@ -35298,14 +35340,14 @@
|
|
|
35298
35340
|
|
|
35299
35341
|
var it = flatten(destination_0);
|
|
35300
35342
|
var tmp_0;
|
|
35301
|
-
if ($this.
|
|
35302
|
-
tmp_0 = $this.
|
|
35343
|
+
if ($this.v4s_1.s4d(config)) {
|
|
35344
|
+
tmp_0 = $this.u4s_1.z2m(it, cardDeck_0.y46_1);
|
|
35303
35345
|
} else {
|
|
35304
35346
|
tmp_0 = it;
|
|
35305
35347
|
}
|
|
35306
35348
|
|
|
35307
35349
|
var playersCards = tmp_0;
|
|
35308
|
-
var cards = $this.
|
|
35350
|
+
var cards = $this.u4s_1.y2m(cardDeck_0.x46_1, plus(playersCards, listOfNotNull(scene_0.j3j_1)));
|
|
35309
35351
|
var newCardDeck = cardDeck_0.k47(cards, VOID, scene_0.j3j_1);
|
|
35310
35352
|
// Inline function 'kotlin.collections.map' call
|
|
35311
35353
|
|
|
@@ -35316,21 +35358,21 @@
|
|
|
35316
35358
|
while (tmp0_iterator_1.k()) {
|
|
35317
35359
|
var item_1 = tmp0_iterator_1.l();
|
|
35318
35360
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.SceneReducer.onCurrentScene.<anonymous>' call
|
|
35319
|
-
var
|
|
35320
|
-
var
|
|
35321
|
-
var
|
|
35322
|
-
var tmp0_elvis_lhs =
|
|
35323
|
-
var
|
|
35324
|
-
var
|
|
35325
|
-
var tmp$ret$11 =
|
|
35361
|
+
var tmp802_$this = $this.q4s_1;
|
|
35362
|
+
var tmp803_distributedCards = getValue(scene_0.h3j_1, item_1.playerId);
|
|
35363
|
+
var tmp801_safe_receiver = scene_0.i3j_1;
|
|
35364
|
+
var tmp0_elvis_lhs = tmp801_safe_receiver == null ? null : tmp801_safe_receiver.h2(item_1.playerId);
|
|
35365
|
+
var tmp804_combinations = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
35366
|
+
var tmp805_selectedTrump = table.gameInfo.u46_1.y49();
|
|
35367
|
+
var tmp$ret$11 = tmp802_$this.p4u(item_1, tmp803_distributedCards, tmp804_combinations, config, players, tmp805_selectedTrump);
|
|
35326
35368
|
destination_1.e(tmp$ret$11);
|
|
35327
35369
|
}
|
|
35328
35370
|
|
|
35329
|
-
var
|
|
35330
|
-
var
|
|
35331
|
-
var
|
|
35332
|
-
var
|
|
35333
|
-
return table.copy(VOID, VOID, VOID, VOID, destination_1, sceneInfo, VOID, VOID, newCardDeck, VOID,
|
|
35371
|
+
var tmp806_$this = $this.t4s_1;
|
|
35372
|
+
var tmp807_gameHistory = table.gameHistory;
|
|
35373
|
+
var tmp808_playersCards = scene_0.h3j_1;
|
|
35374
|
+
var tmp810_gameHistory = tmp806_$this.w4u(tmp808_playersCards, tmp807_gameHistory);
|
|
35375
|
+
return table.copy(VOID, VOID, VOID, VOID, destination_1, sceneInfo, VOID, VOID, newCardDeck, VOID, tmp810_gameHistory);
|
|
35334
35376
|
case 'CALC_POINTS':
|
|
35335
35377
|
var tmp$ret$14;
|
|
35336
35378
|
$l$block_1: {
|
|
@@ -35353,15 +35395,15 @@
|
|
|
35353
35395
|
while (tmp0_iterator_2.k()) {
|
|
35354
35396
|
var item_2 = tmp0_iterator_2.l();
|
|
35355
35397
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.SceneReducer.onCurrentScene.<anonymous>' call
|
|
35356
|
-
var tmp$ret$15 = $this.
|
|
35398
|
+
var tmp$ret$15 = $this.q4s_1.q4u(item_2, scene_1);
|
|
35357
35399
|
destination_2.e(tmp$ret$15);
|
|
35358
35400
|
}
|
|
35359
35401
|
|
|
35360
|
-
var
|
|
35361
|
-
var
|
|
35362
|
-
var
|
|
35363
|
-
var
|
|
35364
|
-
return table.copy(VOID, VOID, VOID, VOID, destination_2, sceneInfo, VOID, VOID, VOID, VOID,
|
|
35402
|
+
var tmp811_$this = $this.t4s_1;
|
|
35403
|
+
var tmp812_gameHistory = table.gameHistory;
|
|
35404
|
+
var tmp813_points = scene_1.z3i_1;
|
|
35405
|
+
var tmp815_gameHistory = tmp811_$this.x4u(tmp813_points, tmp812_gameHistory);
|
|
35406
|
+
return table.copy(VOID, VOID, VOID, VOID, destination_2, sceneInfo, VOID, VOID, VOID, VOID, tmp815_gameHistory);
|
|
35365
35407
|
default:
|
|
35366
35408
|
throw new MechanicException("Can't support this scene " + action.toString());
|
|
35367
35409
|
}
|
|
@@ -35375,8 +35417,8 @@
|
|
|
35375
35417
|
// Inline function 'kotlin.let' call
|
|
35376
35418
|
// Inline function 'kotlin.contracts.contract' call
|
|
35377
35419
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.SceneReducer.onPreviousScene.<anonymous>' call
|
|
35378
|
-
var tableUpdated = $this.
|
|
35379
|
-
tmp_0 = $this.
|
|
35420
|
+
var tableUpdated = $this.r4s_1.t4u(table);
|
|
35421
|
+
tmp_0 = $this.s4s_1.y4u(tableUpdated);
|
|
35380
35422
|
} else {
|
|
35381
35423
|
tmp_0 = table;
|
|
35382
35424
|
}
|
|
@@ -35387,14 +35429,14 @@
|
|
|
35387
35429
|
return tmp;
|
|
35388
35430
|
}
|
|
35389
35431
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
35390
|
-
this.
|
|
35391
|
-
this.
|
|
35392
|
-
this.
|
|
35393
|
-
this.
|
|
35394
|
-
this.
|
|
35395
|
-
this.
|
|
35396
|
-
}
|
|
35397
|
-
protoOf(SceneReducer).
|
|
35432
|
+
this.q4s_1 = playerSceneReducer;
|
|
35433
|
+
this.r4s_1 = playerTurnMechanicReducer;
|
|
35434
|
+
this.s4s_1 = tableLifecycleReducer;
|
|
35435
|
+
this.t4s_1 = gameHistoryReducer;
|
|
35436
|
+
this.u4s_1 = dealerReducer;
|
|
35437
|
+
this.v4s_1 = gameParamsProvider;
|
|
35438
|
+
}
|
|
35439
|
+
protoOf(SceneReducer).w4s = function (table, action) {
|
|
35398
35440
|
var previousSceneId = table.sceneInfo.c4a_1;
|
|
35399
35441
|
if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.f4a_1, action.sceneData)) {
|
|
35400
35442
|
throw new MechanicException('Payload was set twice');
|
|
@@ -35403,7 +35445,7 @@
|
|
|
35403
35445
|
};
|
|
35404
35446
|
function TeamsMechanicReducer() {
|
|
35405
35447
|
}
|
|
35406
|
-
protoOf(TeamsMechanicReducer).
|
|
35448
|
+
protoOf(TeamsMechanicReducer).q4t = function (players, action) {
|
|
35407
35449
|
// Inline function 'kotlin.collections.map' call
|
|
35408
35450
|
var this_0 = action.e4n_1.a2s_1;
|
|
35409
35451
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -35446,10 +35488,10 @@
|
|
|
35446
35488
|
return destination_1;
|
|
35447
35489
|
};
|
|
35448
35490
|
function TradeMechanicReducer(logger, gameHistoryReducer) {
|
|
35449
|
-
this.
|
|
35450
|
-
this.
|
|
35491
|
+
this.m4t_1 = logger;
|
|
35492
|
+
this.n4t_1 = gameHistoryReducer;
|
|
35451
35493
|
}
|
|
35452
|
-
protoOf(TradeMechanicReducer).
|
|
35494
|
+
protoOf(TradeMechanicReducer).p4t = function (state, action) {
|
|
35453
35495
|
var table = state.e33();
|
|
35454
35496
|
// Inline function 'kotlin.with' call
|
|
35455
35497
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -35460,7 +35502,7 @@
|
|
|
35460
35502
|
var it = player.y36_1.h3a();
|
|
35461
35503
|
var tmp;
|
|
35462
35504
|
if (it == null) {
|
|
35463
|
-
this.
|
|
35505
|
+
this.m4t_1.w(VOID, "Can't support this circle increment");
|
|
35464
35506
|
tmp = player.y36_1.o37_1;
|
|
35465
35507
|
} else {
|
|
35466
35508
|
tmp = it;
|
|
@@ -35482,11 +35524,11 @@
|
|
|
35482
35524
|
var tmp$ret$2 = item.s37(VOID, VOID, VOID, item.y36_1.j3a(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, isPlayerChoseSuit ? newNumberOfCircle : player.y36_1.o37_1, isPlayerChoseSuit, isPlayerChoseSuit));
|
|
35483
35525
|
destination.e(tmp$ret$2);
|
|
35484
35526
|
}
|
|
35485
|
-
tmp_0 = state.a4l(table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, VOID, VOID, VOID, this.
|
|
35527
|
+
tmp_0 = state.a4l(table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, VOID, VOID, VOID, this.n4t_1.z4u(player.playerId, action.k4j_1, newNumberOfCircle, table.gameHistory)));
|
|
35486
35528
|
}
|
|
35487
35529
|
return tmp_0;
|
|
35488
35530
|
};
|
|
35489
|
-
protoOf(TradeMechanicReducer).
|
|
35531
|
+
protoOf(TradeMechanicReducer).o4t = function (state, action) {
|
|
35490
35532
|
var table = state.e33();
|
|
35491
35533
|
// Inline function 'kotlin.collections.map' call
|
|
35492
35534
|
var this_0 = table.players;
|
|
@@ -35521,8 +35563,8 @@
|
|
|
35521
35563
|
while (tmp0_iterator_0.k()) {
|
|
35522
35564
|
var item = tmp0_iterator_0.l();
|
|
35523
35565
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.logic.CombinationsMechanicReducer.rebuildPlayerCombinationsWithNewState.<anonymous>' call
|
|
35524
|
-
var
|
|
35525
|
-
var tmp$ret$2 = mapToDetailedFull(item,
|
|
35566
|
+
var tmp817_playerId = player.playerId;
|
|
35567
|
+
var tmp$ret$2 = mapToDetailedFull(item, tmp817_playerId, state, config, players, null);
|
|
35526
35568
|
destination_0.e(tmp$ret$2);
|
|
35527
35569
|
}
|
|
35528
35570
|
return plus(tmp, destination_0);
|
|
@@ -35568,13 +35610,13 @@
|
|
|
35568
35610
|
};
|
|
35569
35611
|
}
|
|
35570
35612
|
function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
|
|
35571
|
-
this.
|
|
35572
|
-
this.
|
|
35573
|
-
this.
|
|
35574
|
-
this.
|
|
35575
|
-
this.
|
|
35613
|
+
this.x4s_1 = teamsLogicProvider;
|
|
35614
|
+
this.y4s_1 = combinationsInteractor;
|
|
35615
|
+
this.z4s_1 = dealerReducer;
|
|
35616
|
+
this.a4t_1 = playerHandReducer;
|
|
35617
|
+
this.b4t_1 = gameHistoryReducer;
|
|
35576
35618
|
}
|
|
35577
|
-
protoOf(CombinationsMechanicReducer).
|
|
35619
|
+
protoOf(CombinationsMechanicReducer).a4v = function (whoGotBribePlayerId, playerCombinations, players, config) {
|
|
35578
35620
|
var bellaCombination = first(playerCombinations.k48_1);
|
|
35579
35621
|
var player = getPlayer(players, playerCombinations.j48_1);
|
|
35580
35622
|
if (bellaCombination.k3b_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
|
|
@@ -35583,7 +35625,7 @@
|
|
|
35583
35625
|
var tmp;
|
|
35584
35626
|
if (config.rules.protectBella) {
|
|
35585
35627
|
var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
|
|
35586
|
-
var partnerGotBribe = config.playersMode.isTeamGame && this.
|
|
35628
|
+
var partnerGotBribe = config.playersMode.isTeamGame && this.x4s_1.j4c(player.playerId, players).playerId === whoGotBribePlayerId;
|
|
35587
35629
|
var tmp_0;
|
|
35588
35630
|
if (playerWithBellaGotBribe || partnerGotBribe) {
|
|
35589
35631
|
tmp_0 = bellaCombination.t3b(VOID, VOID, CombinationState_ACCEPTED_getInstance());
|
|
@@ -35597,7 +35639,7 @@
|
|
|
35597
35639
|
return tmp;
|
|
35598
35640
|
}
|
|
35599
35641
|
};
|
|
35600
|
-
protoOf(CombinationsMechanicReducer).
|
|
35642
|
+
protoOf(CombinationsMechanicReducer).c4t = function (state, action) {
|
|
35601
35643
|
var table = state.e33();
|
|
35602
35644
|
var players = table.players;
|
|
35603
35645
|
var config = table.config;
|
|
@@ -35629,7 +35671,7 @@
|
|
|
35629
35671
|
// Inline function 'kotlin.collections.associate' call
|
|
35630
35672
|
// Inline function 'kotlin.collections.filterNot' call
|
|
35631
35673
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
35632
|
-
var this_2 = this.
|
|
35674
|
+
var this_2 = this.y4s_1.q4f(players);
|
|
35633
35675
|
var destination_1 = ArrayList_init_$Create$();
|
|
35634
35676
|
var tmp0_iterator_1 = this_2.j();
|
|
35635
35677
|
while (tmp0_iterator_1.k()) {
|
|
@@ -35678,10 +35720,10 @@
|
|
|
35678
35720
|
var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.h2(item_1.playerId);
|
|
35679
35721
|
var tmp$ret$16 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
35680
35722
|
var combinations = plus(tmp_0, tmp$ret$16);
|
|
35681
|
-
var
|
|
35682
|
-
var
|
|
35683
|
-
var
|
|
35684
|
-
var tmp_1 =
|
|
35723
|
+
var tmp818_$this = this.a4t_1;
|
|
35724
|
+
var tmp819_playerId = item_1.playerId;
|
|
35725
|
+
var tmp820_hand = item_1.z36_1;
|
|
35726
|
+
var tmp_1 = tmp818_$this.o4u(tmp819_playerId, tmp820_hand, combinations, config);
|
|
35685
35727
|
// Inline function 'kotlin.collections.filterNot' call
|
|
35686
35728
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
35687
35729
|
var this_4 = item_1.a37_1.p38_1;
|
|
@@ -35725,23 +35767,23 @@
|
|
|
35725
35767
|
var tmp$ret$21 = tmp;
|
|
35726
35768
|
destination_4.e(tmp$ret$21);
|
|
35727
35769
|
}
|
|
35728
|
-
return state.a4l(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, this.
|
|
35770
|
+
return state.a4l(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, this.b4t_1.b4v(action.m4n_1, table.gameHistory)));
|
|
35729
35771
|
};
|
|
35730
|
-
protoOf(CombinationsMechanicReducer).
|
|
35772
|
+
protoOf(CombinationsMechanicReducer).l4t = function (state, action) {
|
|
35731
35773
|
var table = state.e33();
|
|
35732
35774
|
var playerWithCombination = getPlayer(table.players, action.i4n_1);
|
|
35733
|
-
var
|
|
35734
|
-
var
|
|
35735
|
-
var
|
|
35736
|
-
var
|
|
35737
|
-
var newPoints = playerWithCombination.a37_1.l3a(VOID, rebuildPlayerCombinationsWithNewState$default(this,
|
|
35775
|
+
var tmp821_state = action.j4n_1 ? CombinationState_ACCEPTED_getInstance() : CombinationState_NOT_ACCEPTED_getInstance();
|
|
35776
|
+
var tmp822_players = table.players;
|
|
35777
|
+
var tmp823_combinations = action.k4n_1;
|
|
35778
|
+
var tmp824_config = table.config;
|
|
35779
|
+
var newPoints = playerWithCombination.a37_1.l3a(VOID, rebuildPlayerCombinationsWithNewState$default(this, tmp821_state, tmp823_combinations, playerWithCombination, tmp822_players, tmp824_config));
|
|
35738
35780
|
var announcedCombination = getCombination(newPoints.p38_1, single(action.k4n_1).z3h_1);
|
|
35739
35781
|
if (announcedCombination.k3b_1.equals(CombinationState_ACCEPTED_getInstance())) {
|
|
35740
35782
|
switch (announcedCombination.j3b_1.n2_1) {
|
|
35741
35783
|
case 4:
|
|
35742
35784
|
var trumpSevenCard = single(announcedCombination.m47());
|
|
35743
35785
|
var trumpCard = table.requireCardDeck.y46_1;
|
|
35744
|
-
var
|
|
35786
|
+
var tmp827_cardDeck = table.requireCardDeck.k47(VOID, trumpSevenCard);
|
|
35745
35787
|
// Inline function 'kotlin.let' call
|
|
35746
35788
|
|
|
35747
35789
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -35749,13 +35791,13 @@
|
|
|
35749
35791
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.logic.CombinationsMechanicReducer.onCombinationChoice.<anonymous>' call
|
|
35750
35792
|
|
|
35751
35793
|
var cards = playerWithCombination.x36_1;
|
|
35752
|
-
var newCards = this.
|
|
35753
|
-
var
|
|
35754
|
-
var
|
|
35755
|
-
var
|
|
35756
|
-
return state.a4l(table.copy(VOID, VOID, VOID, VOID,
|
|
35794
|
+
var newCards = this.z4s_1.z2m(cards, trumpSevenCard);
|
|
35795
|
+
var tmp826_cards = this.z4s_1.a2n(newCards, trumpCard);
|
|
35796
|
+
var tmp828_players = updateItem(table.players, playerWithCombination.s37(VOID, VOID, tmp826_cards, VOID, VOID, newPoints), get_byIdPlayerPredicate()(playerWithCombination.playerId));
|
|
35797
|
+
var tmp829_gameHistory = this.b4t_1.c4v(playerWithCombination.playerId, listOf_0(announcedCombination.j3b_1), table.gameHistory);
|
|
35798
|
+
return state.a4l(table.copy(VOID, VOID, VOID, VOID, tmp828_players, VOID, VOID, VOID, tmp827_cardDeck, VOID, tmp829_gameHistory));
|
|
35757
35799
|
case 5:
|
|
35758
|
-
return state.a4l(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, playerWithCombination.s37(VOID, VOID, VOID, VOID, VOID, newPoints), get_byIdPlayerPredicate()(playerWithCombination.playerId)), VOID, VOID, VOID, VOID, VOID, this.
|
|
35800
|
+
return state.a4l(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, playerWithCombination.s37(VOID, VOID, VOID, VOID, VOID, newPoints), get_byIdPlayerPredicate()(playerWithCombination.playerId)), VOID, VOID, VOID, VOID, VOID, this.b4t_1.c4v(playerWithCombination.playerId, listOf_0(announcedCombination.j3b_1), table.gameHistory)));
|
|
35759
35801
|
default:
|
|
35760
35802
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
35761
35803
|
}
|
|
@@ -35837,16 +35879,16 @@
|
|
|
35837
35879
|
destination.e(tmp$ret$1);
|
|
35838
35880
|
}
|
|
35839
35881
|
var updatedCombinations = destination;
|
|
35840
|
-
var
|
|
35841
|
-
var
|
|
35842
|
-
var
|
|
35843
|
-
return player.s37(VOID, VOID,
|
|
35882
|
+
var tmp834_cards = $this.g4t_1.z2m(player.x36_1, card);
|
|
35883
|
+
var tmp835_points = player.a37_1.l3a(VOID, updatedCombinations);
|
|
35884
|
+
var tmp836_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.u46_1.y49());
|
|
35885
|
+
return player.s37(VOID, VOID, tmp834_cards, VOID, tmp836_hand, tmp835_points);
|
|
35844
35886
|
}
|
|
35845
35887
|
function updatePlayerWhenPickBribe($this, player, whoGotBribePlayerId, cardsOnTable, combinations) {
|
|
35846
35888
|
var isGotBribe = player.playerId === whoGotBribePlayerId;
|
|
35847
35889
|
var tmp = player.y36_1.j3a(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, isGotBribe);
|
|
35848
|
-
var
|
|
35849
|
-
var
|
|
35890
|
+
var tmp842_$this = player.a37_1;
|
|
35891
|
+
var tmp843_earnedCards = updateWonCards($this, player, isGotBribe, cardsOnTable);
|
|
35850
35892
|
var tmp_0;
|
|
35851
35893
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
35852
35894
|
if (!combinations.p()) {
|
|
@@ -35890,11 +35932,11 @@
|
|
|
35890
35932
|
} else {
|
|
35891
35933
|
tmp_0 = player.a37_1.p38_1;
|
|
35892
35934
|
}
|
|
35893
|
-
var
|
|
35894
|
-
return player.s37(VOID, VOID, VOID, tmp, VOID,
|
|
35935
|
+
var tmp844_combinations = tmp_0;
|
|
35936
|
+
return player.s37(VOID, VOID, VOID, tmp, VOID, tmp842_$this.l3a(VOID, tmp844_combinations, tmp843_earnedCards));
|
|
35895
35937
|
}
|
|
35896
35938
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
|
|
35897
|
-
var bellaCombination = $this.
|
|
35939
|
+
var bellaCombination = $this.f4t_1.p4f(players);
|
|
35898
35940
|
// Inline function 'kotlin.collections.associate' call
|
|
35899
35941
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
|
|
35900
35942
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -35914,7 +35956,7 @@
|
|
|
35914
35956
|
var isGotBribe = player.playerId === whoGotBribePlayerId;
|
|
35915
35957
|
var isGotLastBribe = player.a2q() === 0 && isGotBribe;
|
|
35916
35958
|
var hasBellaCombination = !(bellaCombination == null) && bellaCombination.j48_1 === player.playerId;
|
|
35917
|
-
var tmp = isGotLastBribe ? $this.
|
|
35959
|
+
var tmp = isGotLastBribe ? $this.e4t_1.x3a(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_107.n47(CombinationType_BONUS_LAST_BRIBE_getInstance(), config)) : null;
|
|
35918
35960
|
var tmp_0;
|
|
35919
35961
|
if (hasBellaCombination) {
|
|
35920
35962
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -35933,7 +35975,7 @@
|
|
|
35933
35975
|
}
|
|
35934
35976
|
}
|
|
35935
35977
|
var tmp$ret$2 = tmp$ret$1;
|
|
35936
|
-
tmp_0 = $this.
|
|
35978
|
+
tmp_0 = $this.d4t_1.a4v(whoGotBribePlayerId, tmp$ret$2, players, config);
|
|
35937
35979
|
} else {
|
|
35938
35980
|
tmp_0 = null;
|
|
35939
35981
|
}
|
|
@@ -35996,22 +36038,22 @@
|
|
|
35996
36038
|
return player.z36_1;
|
|
35997
36039
|
}
|
|
35998
36040
|
function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, logger) {
|
|
35999
|
-
this.
|
|
36000
|
-
this.
|
|
36001
|
-
this.
|
|
36002
|
-
this.
|
|
36003
|
-
this.
|
|
36004
|
-
this.
|
|
36005
|
-
}
|
|
36006
|
-
protoOf(EarnPointsMechanicReducer).
|
|
36041
|
+
this.d4t_1 = combinationsMechanicReducer;
|
|
36042
|
+
this.e4t_1 = combinationsFactory;
|
|
36043
|
+
this.f4t_1 = combinationsInteractor;
|
|
36044
|
+
this.g4t_1 = dealerReducer;
|
|
36045
|
+
this.h4t_1 = gameHistoryReducer;
|
|
36046
|
+
this.i4t_1 = logger;
|
|
36047
|
+
}
|
|
36048
|
+
protoOf(EarnPointsMechanicReducer).k4t = function (state, action) {
|
|
36007
36049
|
var table = state.e33();
|
|
36008
36050
|
var player = getPlayer(table.players, action.m4j_1);
|
|
36009
36051
|
var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.m4j_1, table.cardsOnTable.m(), action.o4j_1));
|
|
36010
|
-
var
|
|
36011
|
-
var
|
|
36012
|
-
var
|
|
36052
|
+
var tmp831_$this = state.e33();
|
|
36053
|
+
var tmp832_players = updateItem(table.players, onPutCardForPlayer(this, player, table, action.o4j_1, cardsOnTheTable, action.p4j_1), get_byIdPlayerPredicate()(player.playerId));
|
|
36054
|
+
var tmp830_safe_receiver = action.p4j_1;
|
|
36013
36055
|
var tmp;
|
|
36014
|
-
if (
|
|
36056
|
+
if (tmp830_safe_receiver == null) {
|
|
36015
36057
|
tmp = null;
|
|
36016
36058
|
} else {
|
|
36017
36059
|
// Inline function 'kotlin.let' call
|
|
@@ -36020,21 +36062,21 @@
|
|
|
36020
36062
|
var tmp_0 = player.playerId;
|
|
36021
36063
|
// Inline function 'kotlin.collections.map' call
|
|
36022
36064
|
// Inline function 'kotlin.collections.mapTo' call
|
|
36023
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
36024
|
-
var tmp0_iterator =
|
|
36065
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp830_safe_receiver, 10));
|
|
36066
|
+
var tmp0_iterator = tmp830_safe_receiver.j();
|
|
36025
36067
|
while (tmp0_iterator.k()) {
|
|
36026
36068
|
var item = tmp0_iterator.l();
|
|
36027
36069
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.scenes.logic.EarnPointsMechanicReducer.onPutCard.<anonymous>.<anonymous>' call
|
|
36028
36070
|
var tmp$ret$0 = item.a3i_1;
|
|
36029
36071
|
destination.e(tmp$ret$0);
|
|
36030
36072
|
}
|
|
36031
|
-
tmp = this.
|
|
36073
|
+
tmp = this.h4t_1.c4v(tmp_0, destination, table.gameHistory);
|
|
36032
36074
|
}
|
|
36033
36075
|
var tmp0_elvis_lhs = tmp;
|
|
36034
|
-
var
|
|
36035
|
-
return state.a4l(
|
|
36076
|
+
var tmp833_gameHistory = tmp0_elvis_lhs == null ? table.gameHistory : tmp0_elvis_lhs;
|
|
36077
|
+
return state.a4l(tmp831_$this.copy(VOID, VOID, VOID, VOID, tmp832_players, VOID, cardsOnTheTable, VOID, VOID, VOID, tmp833_gameHistory));
|
|
36036
36078
|
};
|
|
36037
|
-
protoOf(EarnPointsMechanicReducer).
|
|
36079
|
+
protoOf(EarnPointsMechanicReducer).j4t = function (state, action) {
|
|
36038
36080
|
var table = state.e33();
|
|
36039
36081
|
var players = table.players;
|
|
36040
36082
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -36061,12 +36103,12 @@
|
|
|
36061
36103
|
destination_0.e(tmp$ret$3);
|
|
36062
36104
|
}
|
|
36063
36105
|
if (!(toSet(destination_0).m() === 1)) {
|
|
36064
|
-
this.
|
|
36106
|
+
this.i4t_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
|
|
36065
36107
|
}
|
|
36066
36108
|
var playersCombinations = addPlayersCombinationsWhenPickBribe(this, action.q4j_1, players, config);
|
|
36067
36109
|
var bribe = new Bribe(cardsOnTable);
|
|
36068
|
-
var
|
|
36069
|
-
var
|
|
36110
|
+
var tmp837_bribes = plus_0(table.bribes, bribe);
|
|
36111
|
+
var tmp838_cardsOnTable = emptyList();
|
|
36070
36112
|
// Inline function 'kotlin.collections.map' call
|
|
36071
36113
|
// Inline function 'kotlin.collections.mapTo' call
|
|
36072
36114
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
|
|
@@ -36077,14 +36119,14 @@
|
|
|
36077
36119
|
var tmp$ret$6 = updatePlayerWhenPickBribe(this, item_1, action.q4j_1, cardsOnTable, getValue(playersCombinations, item_1.playerId));
|
|
36078
36120
|
destination_1.e(tmp$ret$6);
|
|
36079
36121
|
}
|
|
36080
|
-
var
|
|
36081
|
-
var
|
|
36082
|
-
return state.a4l(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID,
|
|
36122
|
+
var tmp840_gameInfo = table.gameInfo.d47(VOID, VOID, table.gameInfo.u46_1.b4a(VOID, action.r4j_1));
|
|
36123
|
+
var tmp841_gameHistory = this.h4t_1.d4v(action.q4j_1, bribe, action.r4j_1, playersCombinations, table.gameHistory);
|
|
36124
|
+
return state.a4l(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, tmp838_cardsOnTable, tmp837_bribes, VOID, tmp840_gameInfo, tmp841_gameHistory));
|
|
36083
36125
|
};
|
|
36084
36126
|
function GameHistoryReducer(pointsInteractor) {
|
|
36085
|
-
this.
|
|
36127
|
+
this.u4u_1 = pointsInteractor;
|
|
36086
36128
|
}
|
|
36087
|
-
protoOf(GameHistoryReducer).
|
|
36129
|
+
protoOf(GameHistoryReducer).e4v = function (gameHistory) {
|
|
36088
36130
|
var roundNumber = gameHistory.rounds.length;
|
|
36089
36131
|
// Inline function 'kotlin.collections.plus' call
|
|
36090
36132
|
var this_0 = gameHistory.rounds;
|
|
@@ -36096,7 +36138,7 @@
|
|
|
36096
36138
|
var tmp$ret$4 = this_0.concat(tmp$ret$3);
|
|
36097
36139
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
36098
36140
|
};
|
|
36099
|
-
protoOf(GameHistoryReducer).
|
|
36141
|
+
protoOf(GameHistoryReducer).v4u = function (cardDeck, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
36100
36142
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.y46_1, System_instance.p2i());
|
|
36101
36143
|
// Inline function 'kotlin.collections.mapValues' call
|
|
36102
36144
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -36113,10 +36155,10 @@
|
|
|
36113
36155
|
}
|
|
36114
36156
|
return addItemsToCurrentRound(gameHistory, listOf([tmp, new PlayersCardsItem(destination, 0, System_instance.p2i())]));
|
|
36115
36157
|
};
|
|
36116
|
-
protoOf(GameHistoryReducer).
|
|
36158
|
+
protoOf(GameHistoryReducer).z4u = function (playerId, suit, numberOfCircle, gameHistory) {
|
|
36117
36159
|
return addItemsToCurrentRound(gameHistory, listOf_0(new SuitSelectionItem(playerId, suit, numberOfCircle, System_instance.p2i())));
|
|
36118
36160
|
};
|
|
36119
|
-
protoOf(GameHistoryReducer).
|
|
36161
|
+
protoOf(GameHistoryReducer).w4u = function (playersCards, gameHistory) {
|
|
36120
36162
|
// Inline function 'kotlin.collections.mapValues' call
|
|
36121
36163
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
36122
36164
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.m()));
|
|
@@ -36132,10 +36174,10 @@
|
|
|
36132
36174
|
}
|
|
36133
36175
|
return addItemsToCurrentRound(gameHistory, listOf_0(new PlayersCardsItem(destination, 1, System_instance.p2i())));
|
|
36134
36176
|
};
|
|
36135
|
-
protoOf(GameHistoryReducer).
|
|
36177
|
+
protoOf(GameHistoryReducer).c4v = function (playerId, combinations, gameHistory) {
|
|
36136
36178
|
return addItemsToCurrentRound(gameHistory, listOf_0(new CombinationAnnounceItem(playerId, combinations, System_instance.p2i())));
|
|
36137
36179
|
};
|
|
36138
|
-
protoOf(GameHistoryReducer).
|
|
36180
|
+
protoOf(GameHistoryReducer).d4v = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
36139
36181
|
var tmp = listOf_0(new BribeItem(whoGotBribePlayerId, bribe.y3o_1, numberOfBribe, System_instance.p2i()));
|
|
36140
36182
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
36141
36183
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -36180,7 +36222,7 @@
|
|
|
36180
36222
|
}
|
|
36181
36223
|
return addItemsToCurrentRound(gameHistory, plus(tmp, destination));
|
|
36182
36224
|
};
|
|
36183
|
-
protoOf(GameHistoryReducer).
|
|
36225
|
+
protoOf(GameHistoryReducer).b4v = function (winnerCombinations, gameHistory) {
|
|
36184
36226
|
// Inline function 'kotlin.collections.map' call
|
|
36185
36227
|
// Inline function 'kotlin.collections.mapTo' call
|
|
36186
36228
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -36188,18 +36230,18 @@
|
|
|
36188
36230
|
while (tmp0_iterator.k()) {
|
|
36189
36231
|
var item = tmp0_iterator.l();
|
|
36190
36232
|
// Inline function 'com.debertz.logic.redux.reducers.sclices.table.GameHistoryReducer.winnerCombinationHistoryReducer.<anonymous>' call
|
|
36191
|
-
var
|
|
36192
|
-
var
|
|
36193
|
-
var
|
|
36194
|
-
var
|
|
36195
|
-
var tmp$ret$0 = new WinnerCombinationsItem(
|
|
36233
|
+
var tmp846_playerId = item.k3p_1;
|
|
36234
|
+
var tmp847_combinations = item.l3p_1;
|
|
36235
|
+
var tmp848_reason = item.j3p_1;
|
|
36236
|
+
var tmp849_createdAt = System_instance.p2i();
|
|
36237
|
+
var tmp$ret$0 = new WinnerCombinationsItem(tmp846_playerId, tmp848_reason, tmp847_combinations, tmp849_createdAt);
|
|
36196
36238
|
destination.e(tmp$ret$0);
|
|
36197
36239
|
}
|
|
36198
36240
|
return addItemsToCurrentRound(gameHistory, destination);
|
|
36199
36241
|
};
|
|
36200
|
-
protoOf(GameHistoryReducer).
|
|
36242
|
+
protoOf(GameHistoryReducer).x4u = function (points, gameHistory) {
|
|
36201
36243
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
36202
|
-
return gameHistory.copy(VOID, VOID, updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, plus_1(currentRoundHistory.items, listOf_0(new PointsItem(this.
|
|
36244
|
+
return gameHistory.copy(VOID, VOID, updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, plus_1(currentRoundHistory.items, listOf_0(new PointsItem(this.u4u_1.p4i(points), System_instance.p2i()))))));
|
|
36203
36245
|
};
|
|
36204
36246
|
function addItemsToCurrentRound(_this__u8e3s4, items) {
|
|
36205
36247
|
var roundHistory = last_0(_this__u8e3s4.rounds);
|
|
@@ -36230,23 +36272,23 @@
|
|
|
36230
36272
|
tmp = cardDeck;
|
|
36231
36273
|
}
|
|
36232
36274
|
var newCardDeck = tmp;
|
|
36233
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
36275
|
+
return new PreviousRound(bribes, newCardDeck, $this.i4v_1.q4i(players, config));
|
|
36234
36276
|
}
|
|
36235
36277
|
function roundFinishedGameInfoReducer($this, table) {
|
|
36236
36278
|
var gameInfo = table.gameInfo;
|
|
36237
36279
|
var tmp = roundFinishedRoundReducer($this, gameInfo.u46_1);
|
|
36238
36280
|
var tmp_0 = gameInfo.v46_1 + 1 | 0;
|
|
36239
|
-
var
|
|
36240
|
-
var
|
|
36241
|
-
var
|
|
36242
|
-
var
|
|
36243
|
-
return gameInfo.d47(VOID, VOID, tmp, tmp_0, roundFinishedPreviousRound($this,
|
|
36281
|
+
var tmp860_players = table.players;
|
|
36282
|
+
var tmp861_config = table.config;
|
|
36283
|
+
var tmp862_cardDeck = table.requireCardDeck;
|
|
36284
|
+
var tmp863_bribes = table.bribes;
|
|
36285
|
+
return gameInfo.d47(VOID, VOID, tmp, tmp_0, roundFinishedPreviousRound($this, tmp860_players, tmp862_cardDeck, tmp863_bribes, tmp861_config));
|
|
36244
36286
|
}
|
|
36245
36287
|
function gameFinishedGameInfoReducer($this, gameInfo) {
|
|
36246
|
-
var
|
|
36247
|
-
var
|
|
36248
|
-
var
|
|
36249
|
-
return gameInfo.d47(VOID,
|
|
36288
|
+
var tmp864_gameNumber = gameInfo.t46_1 + 1 | 0;
|
|
36289
|
+
var tmp865_roundNumberTotal = gameInfo.v46_1 + 1 | 0;
|
|
36290
|
+
var tmp866_round = gameFinishedRoundReducer($this, gameInfo.u46_1);
|
|
36291
|
+
return gameInfo.d47(VOID, tmp864_gameNumber, tmp866_round, tmp865_roundNumberTotal, null);
|
|
36250
36292
|
}
|
|
36251
36293
|
function roundFinishedRoundReducer($this, round) {
|
|
36252
36294
|
return round.a4a(round.s3t_1 + 1 | 0, null, null);
|
|
@@ -36255,28 +36297,28 @@
|
|
|
36255
36297
|
return round.a4a(0, null, null);
|
|
36256
36298
|
}
|
|
36257
36299
|
function roundFinishedPlayerReducer($this, player) {
|
|
36258
|
-
var
|
|
36259
|
-
var
|
|
36260
|
-
var
|
|
36261
|
-
var
|
|
36262
|
-
var
|
|
36263
|
-
return player.s37(VOID,
|
|
36300
|
+
var tmp867_options = roundFinishedPlayerOptionReducer($this, player.y36_1);
|
|
36301
|
+
var tmp868_points = roundFinishedPlayerReducer_0($this, player.a37_1);
|
|
36302
|
+
var tmp869_state = Companion_instance_0.t2r(player.w36_1);
|
|
36303
|
+
var tmp870_hand = Companion_instance_12.s39(player.z36_1);
|
|
36304
|
+
var tmp871_cards = emptyList();
|
|
36305
|
+
return player.s37(VOID, tmp869_state, tmp871_cards, tmp867_options, tmp870_hand, tmp868_points);
|
|
36264
36306
|
}
|
|
36265
36307
|
function gameFinishedPlayerReducer($this, player) {
|
|
36266
|
-
var
|
|
36267
|
-
var
|
|
36268
|
-
var
|
|
36269
|
-
var
|
|
36270
|
-
var
|
|
36271
|
-
return player.s37(VOID,
|
|
36308
|
+
var tmp872_options = gameFinishedPlayerOptionReducer($this, player.y36_1);
|
|
36309
|
+
var tmp873_points = gameFinishedPlayerReducer_0($this, player.a37_1);
|
|
36310
|
+
var tmp874_state = Companion_instance_0.t2r(player.w36_1);
|
|
36311
|
+
var tmp875_hand = Companion_instance_12.t39(player.z36_1);
|
|
36312
|
+
var tmp876_cards = emptyList();
|
|
36313
|
+
return player.s37(VOID, tmp874_state, tmp876_cards, tmp872_options, tmp875_hand, tmp873_points);
|
|
36272
36314
|
}
|
|
36273
36315
|
function roundFinishedPlayerOptionReducer($this, options) {
|
|
36274
|
-
var
|
|
36275
|
-
return options.j3a(VOID, VOID, false, VOID, VOID, VOID, VOID, VOID, 15, VOID,
|
|
36316
|
+
var tmp877_numberOfCircle = RoundNumber_CIRCLE_NOT_STARTED_getInstance();
|
|
36317
|
+
return options.j3a(VOID, VOID, false, VOID, VOID, VOID, VOID, VOID, 15, VOID, tmp877_numberOfCircle, false);
|
|
36276
36318
|
}
|
|
36277
36319
|
function gameFinishedPlayerOptionReducer($this, options) {
|
|
36278
|
-
var
|
|
36279
|
-
return options.j3a(VOID, VOID, false, false, false, VOID, false, 0, 15, VOID,
|
|
36320
|
+
var tmp879_numberOfCircle = RoundNumber_CIRCLE_NOT_STARTED_getInstance();
|
|
36321
|
+
return options.j3a(VOID, VOID, false, false, false, VOID, false, 0, 15, VOID, tmp879_numberOfCircle, false, false);
|
|
36280
36322
|
}
|
|
36281
36323
|
function roundFinishedPlayerReducer_0($this, points) {
|
|
36282
36324
|
return points.l3a(VOID, filterByCombinationState(points.p38_1, [CombinationState_VERIFYING_getInstance()]), emptyList());
|
|
@@ -36285,10 +36327,10 @@
|
|
|
36285
36327
|
return points.k3a(0, emptyList(), emptyList());
|
|
36286
36328
|
}
|
|
36287
36329
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
36288
|
-
this.
|
|
36289
|
-
this.
|
|
36330
|
+
this.i4v_1 = pointsInteractor;
|
|
36331
|
+
this.j4v_1 = historyReducer;
|
|
36290
36332
|
}
|
|
36291
|
-
protoOf(TableLifecycleReducerImpl).
|
|
36333
|
+
protoOf(TableLifecycleReducerImpl).f4v = function (tableId, gameId, config, version, users, gameCreatorPlayerId, playerStateReducer) {
|
|
36292
36334
|
var tmp = Companion_instance_104;
|
|
36293
36335
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
36294
36336
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -36301,17 +36343,17 @@
|
|
|
36301
36343
|
var tmp1 = index;
|
|
36302
36344
|
index = tmp1 + 1 | 0;
|
|
36303
36345
|
var index_0 = checkIndexOverflow(tmp1);
|
|
36304
|
-
var
|
|
36305
|
-
var
|
|
36346
|
+
var tmp851_state = playerStateReducer(item);
|
|
36347
|
+
var tmp852_isGameCreator = gameCreatorPlayerId === item.q2p_1;
|
|
36306
36348
|
var tmp_0 = Companion_instance_11;
|
|
36307
36349
|
var tmp0_elvis_lhs = item.initialLuckyFactor;
|
|
36308
|
-
var
|
|
36309
|
-
var tmp$ret$0 = Companion_instance_10.u36(item, index_0,
|
|
36350
|
+
var tmp853_hand = new PlayerHand(VOID, listOf_0(tmp_0.j39(tmp0_elvis_lhs == null ? 5.0 : tmp0_elvis_lhs, 0.0)));
|
|
36351
|
+
var tmp$ret$0 = Companion_instance_10.u36(item, index_0, tmp852_isGameCreator, VOID, tmp851_state, tmp853_hand);
|
|
36310
36352
|
destination.e(tmp$ret$0);
|
|
36311
36353
|
}
|
|
36312
36354
|
return tmp.initial(tableId, gameId, version, config, destination);
|
|
36313
36355
|
};
|
|
36314
|
-
protoOf(TableLifecycleReducerImpl).
|
|
36356
|
+
protoOf(TableLifecycleReducerImpl).h4u = function (table) {
|
|
36315
36357
|
// Inline function 'kotlin.collections.map' call
|
|
36316
36358
|
var this_0 = table.players;
|
|
36317
36359
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -36325,8 +36367,8 @@
|
|
|
36325
36367
|
}
|
|
36326
36368
|
return table.copy(VOID, VOID, VOID, VOID, destination);
|
|
36327
36369
|
};
|
|
36328
|
-
protoOf(TableLifecycleReducerImpl).
|
|
36329
|
-
var
|
|
36370
|
+
protoOf(TableLifecycleReducerImpl).i4u = function (table) {
|
|
36371
|
+
var tmp854_sceneInfo = new SceneInfo('WAITING');
|
|
36330
36372
|
// Inline function 'kotlin.collections.map' call
|
|
36331
36373
|
var this_0 = table.players;
|
|
36332
36374
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -36338,13 +36380,13 @@
|
|
|
36338
36380
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
36339
36381
|
destination.e(tmp$ret$0);
|
|
36340
36382
|
}
|
|
36341
|
-
var
|
|
36342
|
-
var
|
|
36343
|
-
var
|
|
36344
|
-
var
|
|
36345
|
-
return table.copy(VOID, VOID, VOID, VOID, destination,
|
|
36383
|
+
var tmp856_cardsOnTable = emptyList();
|
|
36384
|
+
var tmp857_bribes = emptyList();
|
|
36385
|
+
var tmp858_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
36386
|
+
var tmp859_gameHistory = this.j4v_1.e4v(table.gameHistory);
|
|
36387
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, tmp854_sceneInfo, tmp856_cardsOnTable, tmp857_bribes, null, tmp858_gameInfo, tmp859_gameHistory);
|
|
36346
36388
|
};
|
|
36347
|
-
protoOf(TableLifecycleReducerImpl).
|
|
36389
|
+
protoOf(TableLifecycleReducerImpl).y4u = function (table) {
|
|
36348
36390
|
// Inline function 'kotlin.collections.map' call
|
|
36349
36391
|
var this_0 = table.players;
|
|
36350
36392
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -36356,9 +36398,9 @@
|
|
|
36356
36398
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
36357
36399
|
destination.e(tmp$ret$0);
|
|
36358
36400
|
}
|
|
36359
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, emptyList(), emptyList(), null, roundFinishedGameInfoReducer(this, table), this.
|
|
36401
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, emptyList(), emptyList(), null, roundFinishedGameInfoReducer(this, table), this.j4v_1.e4v(table.gameHistory));
|
|
36360
36402
|
};
|
|
36361
|
-
protoOf(TableLifecycleReducerImpl).
|
|
36403
|
+
protoOf(TableLifecycleReducerImpl).h4v = function (table, newGameId) {
|
|
36362
36404
|
// Inline function 'kotlin.collections.map' call
|
|
36363
36405
|
var this_0 = table.players;
|
|
36364
36406
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -36376,10 +36418,10 @@
|
|
|
36376
36418
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
36377
36419
|
return new _no_name_provided__qut3iv_26(playerTurnInteractor, playerTurnMechanicReducer);
|
|
36378
36420
|
}
|
|
36379
|
-
function
|
|
36421
|
+
function resetPlayerTurnWhenAnswerFromActionReducer(playerTurnInteractor, playerTurnMechanicReducer, logger, isEnableForPlayer) {
|
|
36380
36422
|
var tmp;
|
|
36381
36423
|
if (isEnableForPlayer === VOID) {
|
|
36382
|
-
tmp =
|
|
36424
|
+
tmp = resetPlayerTurnWhenAnswerFromActionReducer$lambda;
|
|
36383
36425
|
} else {
|
|
36384
36426
|
tmp = isEnableForPlayer;
|
|
36385
36427
|
}
|
|
@@ -36388,19 +36430,19 @@
|
|
|
36388
36430
|
return new _no_name_provided__qut3iv_27(isEnableForPlayer, playerTurnInteractor, logger, playerTurnMechanicReducer);
|
|
36389
36431
|
}
|
|
36390
36432
|
function _no_name_provided__qut3iv_26($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
36391
|
-
this.
|
|
36392
|
-
this.
|
|
36433
|
+
this.k4v_1 = $playerTurnInteractor;
|
|
36434
|
+
this.l4v_1 = $playerTurnMechanicReducer;
|
|
36393
36435
|
}
|
|
36394
36436
|
protoOf(_no_name_provided__qut3iv_26).t2x = function (action) {
|
|
36395
36437
|
return isInterface(action, NextPlayerTurnAction);
|
|
36396
36438
|
};
|
|
36397
|
-
protoOf(_no_name_provided__qut3iv_26).
|
|
36439
|
+
protoOf(_no_name_provided__qut3iv_26).l4s = function (state, action) {
|
|
36398
36440
|
var tmp$ret$0;
|
|
36399
36441
|
$l$block: {
|
|
36400
36442
|
// Inline function 'com.debertz.logic.redux.reducers.turn.setPlayerTurnReducer.<anonymous>' call
|
|
36401
36443
|
var action_0 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
36402
36444
|
var table = state.e33();
|
|
36403
|
-
var tmp0_elvis_lhs = this.
|
|
36445
|
+
var tmp0_elvis_lhs = this.k4v_1.t4i(action_0, table.players, table.gameInfo.u46_1);
|
|
36404
36446
|
var tmp;
|
|
36405
36447
|
if (tmp0_elvis_lhs == null) {
|
|
36406
36448
|
tmp$ret$0 = state;
|
|
@@ -36409,50 +36451,50 @@
|
|
|
36409
36451
|
tmp = tmp0_elvis_lhs;
|
|
36410
36452
|
}
|
|
36411
36453
|
var turnModel = tmp;
|
|
36412
|
-
tmp$ret$0 = state.a4l(this.
|
|
36454
|
+
tmp$ret$0 = state.a4l(this.l4v_1.r4u(table, turnModel));
|
|
36413
36455
|
}
|
|
36414
36456
|
return tmp$ret$0;
|
|
36415
36457
|
};
|
|
36416
36458
|
protoOf(_no_name_provided__qut3iv_26).w2z = function (state, action) {
|
|
36417
|
-
return this.
|
|
36459
|
+
return this.l4s((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
36418
36460
|
};
|
|
36419
|
-
function
|
|
36461
|
+
function resetPlayerTurnWhenAnswerFromActionReducer$lambda(it) {
|
|
36420
36462
|
return true;
|
|
36421
36463
|
}
|
|
36422
36464
|
function _no_name_provided__qut3iv_27($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
36423
|
-
this.
|
|
36424
|
-
this.
|
|
36425
|
-
this.
|
|
36426
|
-
this.
|
|
36465
|
+
this.m4v_1 = $isEnableForPlayer;
|
|
36466
|
+
this.n4v_1 = $playerTurnInteractor;
|
|
36467
|
+
this.o4v_1 = $logger;
|
|
36468
|
+
this.p4v_1 = $playerTurnMechanicReducer;
|
|
36427
36469
|
}
|
|
36428
36470
|
protoOf(_no_name_provided__qut3iv_27).t2x = function (action) {
|
|
36429
36471
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
36430
36472
|
};
|
|
36431
|
-
protoOf(_no_name_provided__qut3iv_27).
|
|
36473
|
+
protoOf(_no_name_provided__qut3iv_27).l4s = function (state, action) {
|
|
36432
36474
|
var tmp$ret$0;
|
|
36433
36475
|
$l$block: {
|
|
36434
|
-
// Inline function 'com.debertz.logic.redux.reducers.turn.
|
|
36476
|
+
// Inline function 'com.debertz.logic.redux.reducers.turn.resetPlayerTurnWhenAnswerFromActionReducer.<anonymous>' call
|
|
36435
36477
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
36436
36478
|
var table = state.e33();
|
|
36437
36479
|
var player = getPlayer(table.players, action_0.playerId);
|
|
36438
|
-
if (!this.
|
|
36480
|
+
if (!this.m4v_1(player)) {
|
|
36439
36481
|
tmp$ret$0 = state;
|
|
36440
36482
|
break $l$block;
|
|
36441
36483
|
}
|
|
36442
|
-
var turnModel = this.
|
|
36484
|
+
var turnModel = this.n4v_1.u4i(player, action_0);
|
|
36443
36485
|
var tmp;
|
|
36444
36486
|
if (turnModel == null) {
|
|
36445
|
-
this.
|
|
36487
|
+
this.o4v_1.w(VOID, 'TAG is null, action: ' + toString(action_0) + ', playerId: ' + player.playerId);
|
|
36446
36488
|
tmp = state;
|
|
36447
36489
|
} else {
|
|
36448
|
-
tmp = state.a4l(this.
|
|
36490
|
+
tmp = state.a4l(this.p4v_1.s4u(table, turnModel));
|
|
36449
36491
|
}
|
|
36450
36492
|
tmp$ret$0 = tmp;
|
|
36451
36493
|
}
|
|
36452
36494
|
return tmp$ret$0;
|
|
36453
36495
|
};
|
|
36454
36496
|
protoOf(_no_name_provided__qut3iv_27).w2z = function (state, action) {
|
|
36455
|
-
return this.
|
|
36497
|
+
return this.l4s((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
36456
36498
|
};
|
|
36457
36499
|
function get_isCreated_0(_this__u8e3s4) {
|
|
36458
36500
|
return get_isCreated(_this__u8e3s4.v32_1);
|
|
@@ -36462,7 +36504,7 @@
|
|
|
36462
36504
|
}
|
|
36463
36505
|
function Companion_120() {
|
|
36464
36506
|
}
|
|
36465
|
-
protoOf(Companion_120).
|
|
36507
|
+
protoOf(Companion_120).q4v = function (payload) {
|
|
36466
36508
|
var tmp;
|
|
36467
36509
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
36468
36510
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -36475,7 +36517,7 @@
|
|
|
36475
36517
|
while (tmp0_iterator.k()) {
|
|
36476
36518
|
var element = tmp0_iterator.l();
|
|
36477
36519
|
// Inline function 'com.debertz.logic.utils.logger.Companion.mapPayloadToLoggerPayload.<anonymous>' call
|
|
36478
|
-
var result = Companion_instance_124.
|
|
36520
|
+
var result = Companion_instance_124.q4v(element);
|
|
36479
36521
|
if (!(result == null)) {
|
|
36480
36522
|
tmp$ret$1 = result;
|
|
36481
36523
|
break $l$block;
|
|
@@ -36513,21 +36555,21 @@
|
|
|
36513
36555
|
tmp = payloadMapper;
|
|
36514
36556
|
}
|
|
36515
36557
|
payloadMapper = tmp;
|
|
36516
|
-
this.
|
|
36517
|
-
this.
|
|
36558
|
+
this.r4v_1 = logger;
|
|
36559
|
+
this.s4v_1 = payloadMapper;
|
|
36518
36560
|
}
|
|
36519
36561
|
protoOf(CallbackWrapperLoggerOutput).e2n = function (tag, message, payload) {
|
|
36520
|
-
this.
|
|
36562
|
+
this.r4v_1.d(tag, message, this.s4v_1(payload));
|
|
36521
36563
|
};
|
|
36522
36564
|
protoOf(CallbackWrapperLoggerOutput).f2n = function (tag, message, exception, payload) {
|
|
36523
|
-
this.
|
|
36565
|
+
this.r4v_1.e(tag, message, exception, this.s4v_1(payload));
|
|
36524
36566
|
};
|
|
36525
36567
|
protoOf(CallbackWrapperLoggerOutput).g2n = function (tag, message, exception, payload) {
|
|
36526
|
-
this.
|
|
36568
|
+
this.r4v_1.w(tag, message, exception, this.s4v_1(payload));
|
|
36527
36569
|
};
|
|
36528
36570
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
36529
|
-
this.
|
|
36530
|
-
this.
|
|
36571
|
+
this.b4w_1 = $$this$unsafeFlow;
|
|
36572
|
+
this.c4w_1 = $types;
|
|
36531
36573
|
CoroutineImpl.call(this, resultContinuation);
|
|
36532
36574
|
}
|
|
36533
36575
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).k30 = function (value, $completion) {
|
|
@@ -36551,13 +36593,13 @@
|
|
|
36551
36593
|
continue $sm;
|
|
36552
36594
|
case 1:
|
|
36553
36595
|
var tmp_0 = this;
|
|
36554
|
-
tmp_0.
|
|
36596
|
+
tmp_0.f4w_1 = this.b4w_1;
|
|
36555
36597
|
var tmp_1 = this;
|
|
36556
|
-
tmp_1.
|
|
36557
|
-
var it = this.
|
|
36558
|
-
if (contains(this.
|
|
36598
|
+
tmp_1.g4w_1 = this.d4w_1;
|
|
36599
|
+
var it = this.g4w_1;
|
|
36600
|
+
if (contains(this.c4w_1, it.type)) {
|
|
36559
36601
|
this.v8_1 = 3;
|
|
36560
|
-
suspendResult = this.
|
|
36602
|
+
suspendResult = this.f4w_1.e11(this.g4w_1, this);
|
|
36561
36603
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
36562
36604
|
return suspendResult;
|
|
36563
36605
|
}
|
|
@@ -36576,7 +36618,7 @@
|
|
|
36576
36618
|
this.v8_1 = 4;
|
|
36577
36619
|
continue $sm;
|
|
36578
36620
|
case 3:
|
|
36579
|
-
this.
|
|
36621
|
+
this.e4w_1 = suspendResult;
|
|
36580
36622
|
this.v8_1 = 4;
|
|
36581
36623
|
continue $sm;
|
|
36582
36624
|
case 4:
|
|
@@ -36596,8 +36638,8 @@
|
|
|
36596
36638
|
while (true);
|
|
36597
36639
|
};
|
|
36598
36640
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).l30 = function (value, completion) {
|
|
36599
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
36600
|
-
i.
|
|
36641
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.b4w_1, this.c4w_1, completion);
|
|
36642
|
+
i.d4w_1 = value;
|
|
36601
36643
|
return i;
|
|
36602
36644
|
};
|
|
36603
36645
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -36610,8 +36652,8 @@
|
|
|
36610
36652
|
}
|
|
36611
36653
|
function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
|
|
36612
36654
|
CoroutineImpl.call(this, resultContinuation);
|
|
36613
|
-
this.
|
|
36614
|
-
this.
|
|
36655
|
+
this.p4w_1 = _this__u8e3s4;
|
|
36656
|
+
this.q4w_1 = collector;
|
|
36615
36657
|
}
|
|
36616
36658
|
protoOf($collectCOROUTINE$0).d9 = function () {
|
|
36617
36659
|
var suspendResult = this.x8_1;
|
|
@@ -36622,10 +36664,10 @@
|
|
|
36622
36664
|
case 0:
|
|
36623
36665
|
this.w8_1 = 2;
|
|
36624
36666
|
var tmp_0 = this;
|
|
36625
|
-
tmp_0.
|
|
36667
|
+
tmp_0.r4w_1 = this.q4w_1;
|
|
36626
36668
|
this.v8_1 = 1;
|
|
36627
|
-
var tmp_1 = FileLoggerOutputImpl$observe$o$collect$slambda_0(this.
|
|
36628
|
-
suspendResult = this.
|
|
36669
|
+
var tmp_1 = FileLoggerOutputImpl$observe$o$collect$slambda_0(this.r4w_1, this.p4w_1.t4w_1, null);
|
|
36670
|
+
suspendResult = this.p4w_1.s4w_1.o10(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
36629
36671
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
36630
36672
|
return suspendResult;
|
|
36631
36673
|
}
|
|
@@ -36649,9 +36691,9 @@
|
|
|
36649
36691
|
};
|
|
36650
36692
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
36651
36693
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
36652
|
-
$this.
|
|
36694
|
+
$this.w4w_1;
|
|
36653
36695
|
// Inline function 'com.debertz.logic.utils.logger.FileLoggerOutputImpl.log.<anonymous>' call
|
|
36654
|
-
var tmp0_elvis_lhs = $this.
|
|
36696
|
+
var tmp0_elvis_lhs = $this.u4w_1(payload);
|
|
36655
36697
|
var tmp;
|
|
36656
36698
|
if (tmp0_elvis_lhs == null) {
|
|
36657
36699
|
return Unit_instance;
|
|
@@ -36660,7 +36702,7 @@
|
|
|
36660
36702
|
}
|
|
36661
36703
|
var key = tmp;
|
|
36662
36704
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
36663
|
-
var this_0 = $this.
|
|
36705
|
+
var this_0 = $this.x4w_1;
|
|
36664
36706
|
var value = this_0.h2(key);
|
|
36665
36707
|
var tmp_0;
|
|
36666
36708
|
if (value == null) {
|
|
@@ -36672,7 +36714,7 @@
|
|
|
36672
36714
|
tmp_0 = value;
|
|
36673
36715
|
}
|
|
36674
36716
|
var logger = tmp_0;
|
|
36675
|
-
logger.
|
|
36717
|
+
logger.y4w_1.x12(new LoggerOutputDataDto(type, tag, message, stackTrace));
|
|
36676
36718
|
}
|
|
36677
36719
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
36678
36720
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
@@ -36682,35 +36724,35 @@
|
|
|
36682
36724
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
36683
36725
|
controller = controller === VOID ? null : controller;
|
|
36684
36726
|
job = job === VOID ? null : job;
|
|
36685
|
-
this.
|
|
36686
|
-
this.
|
|
36687
|
-
this.
|
|
36688
|
-
}
|
|
36689
|
-
protoOf(LoggerModel).
|
|
36690
|
-
this.
|
|
36691
|
-
var
|
|
36692
|
-
if (
|
|
36727
|
+
this.y4w_1 = flow;
|
|
36728
|
+
this.z4w_1 = controller;
|
|
36729
|
+
this.a4x_1 = job;
|
|
36730
|
+
}
|
|
36731
|
+
protoOf(LoggerModel).b4x = function () {
|
|
36732
|
+
this.y4w_1.b13();
|
|
36733
|
+
var tmp896_safe_receiver = this.a4x_1;
|
|
36734
|
+
if (tmp896_safe_receiver == null)
|
|
36693
36735
|
null;
|
|
36694
36736
|
else {
|
|
36695
|
-
|
|
36737
|
+
tmp896_safe_receiver.tm();
|
|
36696
36738
|
}
|
|
36697
36739
|
};
|
|
36698
|
-
protoOf(LoggerModel).
|
|
36740
|
+
protoOf(LoggerModel).c4x = function (flow, controller, job) {
|
|
36699
36741
|
return new LoggerModel(flow, controller, job);
|
|
36700
36742
|
};
|
|
36701
|
-
protoOf(LoggerModel).
|
|
36702
|
-
flow = flow === VOID ? this.
|
|
36703
|
-
controller = controller === VOID ? this.
|
|
36704
|
-
job = job === VOID ? this.
|
|
36705
|
-
return $super === VOID ? this.
|
|
36743
|
+
protoOf(LoggerModel).d4x = function (flow, controller, job, $super) {
|
|
36744
|
+
flow = flow === VOID ? this.y4w_1 : flow;
|
|
36745
|
+
controller = controller === VOID ? this.z4w_1 : controller;
|
|
36746
|
+
job = job === VOID ? this.a4x_1 : job;
|
|
36747
|
+
return $super === VOID ? this.c4x(flow, controller, job) : $super.c4x.call(this, flow, controller, job);
|
|
36706
36748
|
};
|
|
36707
36749
|
protoOf(LoggerModel).toString = function () {
|
|
36708
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
36750
|
+
return 'LoggerModel(flow=' + toString(this.y4w_1) + ', controller=' + toString_0(this.z4w_1) + ', job=' + toString_0(this.a4x_1) + ')';
|
|
36709
36751
|
};
|
|
36710
36752
|
protoOf(LoggerModel).hashCode = function () {
|
|
36711
|
-
var result = hashCode(this.
|
|
36712
|
-
result = imul(result, 31) + (this.
|
|
36713
|
-
result = imul(result, 31) + (this.
|
|
36753
|
+
var result = hashCode(this.y4w_1);
|
|
36754
|
+
result = imul(result, 31) + (this.z4w_1 == null ? 0 : hashCode(this.z4w_1)) | 0;
|
|
36755
|
+
result = imul(result, 31) + (this.a4x_1 == null ? 0 : hashCode(this.a4x_1)) | 0;
|
|
36714
36756
|
return result;
|
|
36715
36757
|
};
|
|
36716
36758
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -36719,18 +36761,18 @@
|
|
|
36719
36761
|
if (!(other instanceof LoggerModel))
|
|
36720
36762
|
return false;
|
|
36721
36763
|
var tmp0_other_with_cast = other instanceof LoggerModel ? other : THROW_CCE();
|
|
36722
|
-
if (!equals(this.
|
|
36764
|
+
if (!equals(this.y4w_1, tmp0_other_with_cast.y4w_1))
|
|
36723
36765
|
return false;
|
|
36724
|
-
if (!equals(this.
|
|
36766
|
+
if (!equals(this.z4w_1, tmp0_other_with_cast.z4w_1))
|
|
36725
36767
|
return false;
|
|
36726
|
-
if (!equals(this.
|
|
36768
|
+
if (!equals(this.a4x_1, tmp0_other_with_cast.a4x_1))
|
|
36727
36769
|
return false;
|
|
36728
36770
|
return true;
|
|
36729
36771
|
};
|
|
36730
36772
|
function Companion_121() {
|
|
36731
|
-
this.
|
|
36773
|
+
this.e4x_1 = 1000;
|
|
36732
36774
|
}
|
|
36733
|
-
protoOf(Companion_121).
|
|
36775
|
+
protoOf(Companion_121).f4x = function (payload) {
|
|
36734
36776
|
var tmp;
|
|
36735
36777
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
36736
36778
|
tmp = payload.id;
|
|
@@ -36743,7 +36785,7 @@
|
|
|
36743
36785
|
while (tmp0_iterator.k()) {
|
|
36744
36786
|
var element = tmp0_iterator.l();
|
|
36745
36787
|
// Inline function 'com.debertz.logic.utils.logger.Companion.mapPayloadToGameId.<anonymous>' call
|
|
36746
|
-
var result = Companion_instance_125.
|
|
36788
|
+
var result = Companion_instance_125.f4x(element);
|
|
36747
36789
|
if (!(result == null)) {
|
|
36748
36790
|
tmp$ret$1 = result;
|
|
36749
36791
|
break $l$block;
|
|
@@ -36771,17 +36813,17 @@
|
|
|
36771
36813
|
return Companion_instance_125;
|
|
36772
36814
|
}
|
|
36773
36815
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
36774
|
-
this.
|
|
36816
|
+
this.g4x_1 = function_0;
|
|
36775
36817
|
}
|
|
36776
36818
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).e11 = function (value, $completion) {
|
|
36777
|
-
return this.
|
|
36819
|
+
return this.g4x_1(value, $completion);
|
|
36778
36820
|
};
|
|
36779
36821
|
function FileLoggerOutputImpl$_init_$lambda_sdog02(it) {
|
|
36780
36822
|
return null;
|
|
36781
36823
|
}
|
|
36782
36824
|
function _no_name_provided__qut3iv_28($this, $types) {
|
|
36783
|
-
this.
|
|
36784
|
-
this.
|
|
36825
|
+
this.s4w_1 = $this;
|
|
36826
|
+
this.t4w_1 = $types;
|
|
36785
36827
|
}
|
|
36786
36828
|
protoOf(_no_name_provided__qut3iv_28).c1b = function (collector, $completion) {
|
|
36787
36829
|
var tmp = new $collectCOROUTINE$0(this, collector, $completion);
|
|
@@ -36801,27 +36843,27 @@
|
|
|
36801
36843
|
}
|
|
36802
36844
|
payloadMapper = tmp;
|
|
36803
36845
|
enabled = enabled === VOID ? true : enabled;
|
|
36804
|
-
this.
|
|
36805
|
-
this.
|
|
36846
|
+
this.u4w_1 = payloadMapper;
|
|
36847
|
+
this.v4w_1 = enabled;
|
|
36806
36848
|
var tmp_0 = this;
|
|
36807
36849
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
36808
|
-
tmp_0.
|
|
36850
|
+
tmp_0.w4w_1 = get_atomicfu$reentrantLock();
|
|
36809
36851
|
var tmp_1 = this;
|
|
36810
36852
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
36811
|
-
tmp_1.
|
|
36853
|
+
tmp_1.x4w_1 = LinkedHashMap_init_$Create$();
|
|
36812
36854
|
}
|
|
36813
36855
|
protoOf(FileLoggerOutputImpl).h2n = function (_set____db54di) {
|
|
36814
|
-
this.
|
|
36856
|
+
this.v4w_1 = _set____db54di;
|
|
36815
36857
|
};
|
|
36816
36858
|
protoOf(FileLoggerOutputImpl).i2n = function () {
|
|
36817
|
-
return this.
|
|
36859
|
+
return this.v4w_1;
|
|
36818
36860
|
};
|
|
36819
|
-
protoOf(FileLoggerOutputImpl).
|
|
36861
|
+
protoOf(FileLoggerOutputImpl).h4x = function (key, types) {
|
|
36820
36862
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
36821
|
-
this.
|
|
36863
|
+
this.w4w_1;
|
|
36822
36864
|
// Inline function 'com.debertz.logic.utils.logger.FileLoggerOutputImpl.observe.<anonymous>' call
|
|
36823
36865
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
36824
|
-
var this_0 = this.
|
|
36866
|
+
var this_0 = this.x4w_1;
|
|
36825
36867
|
var value = this_0.h2(key);
|
|
36826
36868
|
var tmp;
|
|
36827
36869
|
if (value == null) {
|
|
@@ -36835,27 +36877,27 @@
|
|
|
36835
36877
|
var logger = tmp;
|
|
36836
36878
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
36837
36879
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
36838
|
-
var this_1 = logger.
|
|
36880
|
+
var this_1 = logger.y4w_1;
|
|
36839
36881
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
36840
36882
|
return new _no_name_provided__qut3iv_28(this_1, types);
|
|
36841
36883
|
};
|
|
36842
|
-
protoOf(FileLoggerOutputImpl).
|
|
36884
|
+
protoOf(FileLoggerOutputImpl).p4p = function (key) {
|
|
36843
36885
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
36844
|
-
this.
|
|
36886
|
+
this.w4w_1;
|
|
36845
36887
|
// Inline function 'com.debertz.logic.utils.logger.FileLoggerOutputImpl.destroy.<anonymous>' call
|
|
36846
|
-
var
|
|
36847
|
-
if (
|
|
36888
|
+
var tmp882_safe_receiver = this.x4w_1.h2(key);
|
|
36889
|
+
if (tmp882_safe_receiver == null)
|
|
36848
36890
|
null;
|
|
36849
36891
|
else {
|
|
36850
|
-
|
|
36892
|
+
tmp882_safe_receiver.b4x();
|
|
36851
36893
|
}
|
|
36852
|
-
this.
|
|
36894
|
+
this.x4w_1.l2(key);
|
|
36853
36895
|
};
|
|
36854
|
-
protoOf(FileLoggerOutputImpl).
|
|
36896
|
+
protoOf(FileLoggerOutputImpl).o4p = function (key, job, controller) {
|
|
36855
36897
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
36856
|
-
this.
|
|
36898
|
+
this.w4w_1;
|
|
36857
36899
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
36858
|
-
var this_0 = this.
|
|
36900
|
+
var this_0 = this.x4w_1;
|
|
36859
36901
|
var value = this_0.h2(key);
|
|
36860
36902
|
var tmp;
|
|
36861
36903
|
if (value == null) {
|
|
@@ -36866,39 +36908,39 @@
|
|
|
36866
36908
|
} else {
|
|
36867
36909
|
tmp = value;
|
|
36868
36910
|
}
|
|
36869
|
-
var updatedModel = tmp.
|
|
36870
|
-
this.
|
|
36911
|
+
var updatedModel = tmp.d4x(VOID, controller, job);
|
|
36912
|
+
this.x4w_1.k2(key, updatedModel);
|
|
36871
36913
|
};
|
|
36872
36914
|
protoOf(FileLoggerOutputImpl).e2n = function (tag, message, payload) {
|
|
36873
|
-
if (!this.
|
|
36915
|
+
if (!this.v4w_1)
|
|
36874
36916
|
return Unit_instance;
|
|
36875
|
-
var
|
|
36876
|
-
log$default(this,
|
|
36917
|
+
var tmp883_type = LogType_DEBUG_getInstance();
|
|
36918
|
+
log$default(this, tmp883_type, tag, message, payload);
|
|
36877
36919
|
};
|
|
36878
36920
|
protoOf(FileLoggerOutputImpl).f2n = function (tag, message, exception, payload) {
|
|
36879
|
-
if (!this.
|
|
36921
|
+
if (!this.v4w_1)
|
|
36880
36922
|
return Unit_instance;
|
|
36881
|
-
var
|
|
36923
|
+
var tmp887_type = LogType_ERROR_getInstance();
|
|
36882
36924
|
var tmp;
|
|
36883
36925
|
if (message == null) {
|
|
36884
36926
|
tmp = exception == null ? null : exception.message;
|
|
36885
36927
|
} else {
|
|
36886
36928
|
tmp = message;
|
|
36887
36929
|
}
|
|
36888
|
-
var
|
|
36889
|
-
var
|
|
36890
|
-
var
|
|
36891
|
-
log(this,
|
|
36930
|
+
var tmp888_message = tmp;
|
|
36931
|
+
var tmp886_safe_receiver = exception == null ? null : stackTraceToString(exception);
|
|
36932
|
+
var tmp889_stackTrace = tmp886_safe_receiver == null ? null : take_0(tmp886_safe_receiver, 1000);
|
|
36933
|
+
log(this, tmp887_type, tag, tmp888_message, payload, tmp889_stackTrace);
|
|
36892
36934
|
};
|
|
36893
36935
|
protoOf(FileLoggerOutputImpl).g2n = function (tag, message, exception, payload) {
|
|
36894
|
-
if (!this.
|
|
36936
|
+
if (!this.v4w_1)
|
|
36895
36937
|
return Unit_instance;
|
|
36896
|
-
var
|
|
36938
|
+
var tmp893_type = LogType_WARN_getInstance();
|
|
36897
36939
|
var tmp0_elvis_lhs = exception == null ? null : exception.message;
|
|
36898
|
-
var
|
|
36899
|
-
var
|
|
36900
|
-
var
|
|
36901
|
-
log(this,
|
|
36940
|
+
var tmp894_message = '' + message + ' ' + (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
36941
|
+
var tmp892_safe_receiver = exception == null ? null : stackTraceToString(exception);
|
|
36942
|
+
var tmp895_stackTrace = tmp892_safe_receiver == null ? null : take_0(tmp892_safe_receiver, 1000);
|
|
36943
|
+
log(this, tmp893_type, tag, tmp894_message, payload, tmp895_stackTrace);
|
|
36902
36944
|
};
|
|
36903
36945
|
function FileLoggerOutput() {
|
|
36904
36946
|
}
|
|
@@ -36915,28 +36957,28 @@
|
|
|
36915
36957
|
}
|
|
36916
36958
|
var WARN;
|
|
36917
36959
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
36918
|
-
this.
|
|
36960
|
+
this.i4x_1 = loggerCallback;
|
|
36919
36961
|
}
|
|
36920
36962
|
protoOf(LoggerCallbacksWrapperLoggerOutput).e2n = function (tag, message, payload) {
|
|
36921
|
-
this.
|
|
36963
|
+
this.i4x_1('debug', tag, message, null, payload);
|
|
36922
36964
|
};
|
|
36923
36965
|
protoOf(LoggerCallbacksWrapperLoggerOutput).f2n = function (tag, message, exception, payload) {
|
|
36924
|
-
this.
|
|
36966
|
+
this.i4x_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
36925
36967
|
};
|
|
36926
36968
|
protoOf(LoggerCallbacksWrapperLoggerOutput).g2n = function (tag, message, exception, payload) {
|
|
36927
|
-
this.
|
|
36969
|
+
this.i4x_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
36928
36970
|
};
|
|
36929
36971
|
function ParserHelper() {
|
|
36930
36972
|
}
|
|
36931
36973
|
function _get_encoderDecoderProvider__qqgrji($this) {
|
|
36932
36974
|
// Inline function 'kotlin.getValue' call
|
|
36933
|
-
var this_0 = $this.
|
|
36975
|
+
var this_0 = $this.k4x_1;
|
|
36934
36976
|
encoderDecoderProvider$factory_0();
|
|
36935
36977
|
return this_0.e2();
|
|
36936
36978
|
}
|
|
36937
36979
|
function _get_json__d8whur($this) {
|
|
36938
36980
|
// Inline function 'kotlin.getValue' call
|
|
36939
|
-
var this_0 = $this.
|
|
36981
|
+
var this_0 = $this.l4x_1;
|
|
36940
36982
|
json$factory_0();
|
|
36941
36983
|
return this_0.e2();
|
|
36942
36984
|
}
|
|
@@ -36949,21 +36991,21 @@
|
|
|
36949
36991
|
function ParserHelperImpl(serializersModules) {
|
|
36950
36992
|
var tmp = this;
|
|
36951
36993
|
var tmp_0 = Companion_instance_2;
|
|
36952
|
-
tmp.
|
|
36994
|
+
tmp.j4x_1 = tmp_0.b2d(VOID, ParserHelperImpl$di$lambda(serializersModules));
|
|
36953
36995
|
var tmp_1 = this;
|
|
36954
36996
|
// Inline function 'org.kodein.di.instance' call
|
|
36955
|
-
var this_0 = this.
|
|
36997
|
+
var this_0 = this.j4x_1;
|
|
36956
36998
|
// Inline function 'org.kodein.type.generic' call
|
|
36957
36999
|
var tmp_2 = typeToken(createKType(getKClass(EncoderDecoderProvider), arrayOf([]), false));
|
|
36958
37000
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
36959
|
-
tmp_1.
|
|
37001
|
+
tmp_1.k4x_1 = Instance(this_0, tmp$ret$0, null).n2i(this, encoderDecoderProvider$factory());
|
|
36960
37002
|
var tmp_3 = this;
|
|
36961
37003
|
// Inline function 'org.kodein.di.instance' call
|
|
36962
|
-
var this_1 = this.
|
|
37004
|
+
var this_1 = this.j4x_1;
|
|
36963
37005
|
// Inline function 'org.kodein.type.generic' call
|
|
36964
37006
|
var tmp_4 = typeToken(createKType(getKClass(Json_0), arrayOf([]), false));
|
|
36965
37007
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
36966
|
-
tmp_3.
|
|
37008
|
+
tmp_3.l4x_1 = Instance(this_1, tmp$ret$2, null).n2i(this, json$factory());
|
|
36967
37009
|
}
|
|
36968
37010
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
36969
37011
|
return _get_encoderDecoderProvider__qqgrji(this).h4d(mapToDto_13(action));
|
|
@@ -37446,11 +37488,11 @@
|
|
|
37446
37488
|
});
|
|
37447
37489
|
protoOf(PlayerTurnTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
37448
37490
|
protoOf(GameIsNotFinishedTimerTag).k4k = notValidateTimerReset;
|
|
37449
|
-
protoOf(TableLifecycleReducerImpl).
|
|
37491
|
+
protoOf(TableLifecycleReducerImpl).g4v = startTableReducer$default;
|
|
37450
37492
|
protoOf(CallbackWrapperLoggerOutput).d = d;
|
|
37451
37493
|
protoOf(CallbackWrapperLoggerOutput).e = e;
|
|
37452
37494
|
protoOf(CallbackWrapperLoggerOutput).w = w;
|
|
37453
|
-
protoOf(FileLoggerOutputImpl).
|
|
37495
|
+
protoOf(FileLoggerOutputImpl).h4r = observe$default;
|
|
37454
37496
|
protoOf(FileLoggerOutputImpl).d = d;
|
|
37455
37497
|
protoOf(FileLoggerOutputImpl).e = e;
|
|
37456
37498
|
protoOf(FileLoggerOutputImpl).w = w;
|
|
@@ -37953,7 +37995,7 @@
|
|
|
37953
37995
|
_.$_$.q3 = PlayerTurnMechanicReducer;
|
|
37954
37996
|
_.$_$.r3 = TeamsMechanicReducer;
|
|
37955
37997
|
_.$_$.s3 = TableLifecycleReducer;
|
|
37956
|
-
_.$_$.t3 =
|
|
37998
|
+
_.$_$.t3 = resetPlayerTurnWhenAnswerFromActionReducer;
|
|
37957
37999
|
_.$_$.u3 = setPlayerTurnReducer;
|
|
37958
38000
|
_.$_$.v3 = AppStatePayload;
|
|
37959
38001
|
_.$_$.w3 = AppState;
|