client_plugin_logic_deb 1.8.208 → 1.8.210

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.
@@ -43179,6 +43179,9 @@
43179
43179
  var actualResult = playerScore >= maxScore ? 1.0 : 0.0;
43180
43180
  var scoreDifferenceFactor = getScoreDifferenceFactor(this, actualResult, playerScore, maxScore);
43181
43181
  var newRating = currentRating + kFactor * gameComplexityCoefficient * scoreDifferenceFactor * (actualResult - expectedResult);
43182
+ if (newRating < 0) {
43183
+ return 0.0;
43184
+ }
43182
43185
  return roundToInt(newRating * 100.0) / 100.0;
43183
43186
  };
43184
43187
  protoOf(RatingCalculatorImpl).c8x = function (player, score, opponents, maxScore, gameComplexityCoefficient) {
@@ -49291,13 +49294,41 @@
49291
49294
  return emptyList();
49292
49295
  };
49293
49296
  protoOf(FileLoggerStoreContract).e93 = function () {
49294
- var tmp1179_currentPlayerId = this.f93_1;
49295
- var tmp1180_coreConfig = _get_coreConfig__mqagba(this);
49296
- var tmp1181_asyncProvider = _get_asyncProvider__jbpyhw_0(this);
49297
- var tmp1182_loggerFactory = _get_loggerFactory__q2kddj(this);
49298
- var tmp1183_loggerOutput = _get_fileLoggerOutput__qasyxu(this);
49299
- var tmp1184_fileSystem = _get_fileSystem__siywv4(this);
49300
- return fileLoggerMiddleware(tmp1179_currentPlayerId, tmp1180_coreConfig, tmp1182_loggerFactory, tmp1181_asyncProvider, tmp1184_fileSystem, tmp1183_loggerOutput);
49297
+ var tmp;
49298
+ if (_get_coreConfig__mqagba(this).fileLogsEnabled && !(_get_fileLoggerOutput__qasyxu(this) == null)) {
49299
+ var tmp1179_currentPlayerId = this.f93_1;
49300
+ var tmp1180_asyncProvider = _get_asyncProvider__jbpyhw_0(this);
49301
+ var tmp1181_loggerFactory = _get_loggerFactory__q2kddj(this);
49302
+ var tmp$ret$1;
49303
+ $l$block: {
49304
+ // Inline function 'kotlin.requireNotNull' call
49305
+ var value = _get_fileLoggerOutput__qasyxu(this);
49306
+ // Inline function 'kotlin.contracts.contract' call
49307
+ if (value == null) {
49308
+ // Inline function 'games.jass.logic.redux.contracts.FileLoggerStoreContract.<get-middlewares>.<anonymous>' call
49309
+ var message = "fileLoggerMiddleware: loggerOutput isn't created";
49310
+ throw IllegalArgumentException_init_$Create$(toString(message));
49311
+ } else {
49312
+ tmp$ret$1 = value;
49313
+ break $l$block;
49314
+ }
49315
+ }
49316
+ var tmp1182_loggerOutput = tmp$ret$1;
49317
+ tmp = fileLoggerByGameIdMiddleware(tmp1179_currentPlayerId, tmp1181_loggerFactory, tmp1180_asyncProvider, tmp1182_loggerOutput);
49318
+ } else {
49319
+ tmp = null;
49320
+ }
49321
+ var tmp_0 = tmp;
49322
+ var tmp_1;
49323
+ if (_get_coreConfig__mqagba(this).fileLogsEnabled && _get_coreConfig__mqagba(this).deleteFilesOnClear) {
49324
+ var tmp1183_asyncProvider = _get_asyncProvider__jbpyhw_0(this);
49325
+ var tmp1184_fileSystem = _get_fileSystem__siywv4(this);
49326
+ var tmp1185_coreConfig = _get_coreConfig__mqagba(this);
49327
+ tmp_1 = clearLogFilesMiddleware(tmp1184_fileSystem, tmp1185_coreConfig, tmp1183_asyncProvider);
49328
+ } else {
49329
+ tmp_1 = null;
49330
+ }
49331
+ return listOfNotNull([tmp_0, tmp_1]);
49301
49332
  };
49302
49333
  function coreConfig$factory() {
49303
49334
  return getPropertyCallableRef('coreConfig', 1, KProperty1, function (receiver) {
@@ -49468,15 +49499,15 @@
49468
49499
  };
49469
49500
  protoOf(GameMechanicStoreContract).e93 = function () {
49470
49501
  var tmp = sceneLifecycleMiddleware(_get_sceneFactory__scjsbx(this), _get_sceneRouter__ee4ncs(this), _get_sceneValidationInteractor__iffomr(this), _get_asyncProvider__jbpyhw_1(this));
49471
- var tmp1185_sceneRouter = _get_sceneRouter__ee4ncs(this);
49472
- var tmp1186_idsProvider = _get_idsProvider__fnfajc(this);
49473
- var tmp1187_engineLogicConfig = _get_engineLogicConfig__l11qpf(this);
49474
- var tmp1188_logger = _get_logger__rkp4sl_0(this);
49475
- var tmp1189_playerConnectionInteractor = _get_playerConnectionInteractor__si6cxf(this);
49476
- var tmp_0 = sceneRouterMiddleware(tmp1185_sceneRouter, tmp1186_idsProvider, tmp1189_playerConnectionInteractor, tmp1187_engineLogicConfig, tmp1188_logger);
49477
- var tmp1190_logger = _get_logger__rkp4sl_0(this);
49478
- var tmp1191_gameMechanicLogicInteractor = _get_gameLogicInteractor__895s7o(this);
49479
- return plus(listOfNotNull([tmp, tmp_0, consumeFromClientActionsMiddleware(tmp1191_gameMechanicLogicInteractor, tmp1190_logger)]), this.n93_1.e93());
49502
+ var tmp1186_sceneRouter = _get_sceneRouter__ee4ncs(this);
49503
+ var tmp1187_idsProvider = _get_idsProvider__fnfajc(this);
49504
+ var tmp1188_engineLogicConfig = _get_engineLogicConfig__l11qpf(this);
49505
+ var tmp1189_logger = _get_logger__rkp4sl_0(this);
49506
+ var tmp1190_playerConnectionInteractor = _get_playerConnectionInteractor__si6cxf(this);
49507
+ var tmp_0 = sceneRouterMiddleware(tmp1186_sceneRouter, tmp1187_idsProvider, tmp1190_playerConnectionInteractor, tmp1188_engineLogicConfig, tmp1189_logger);
49508
+ var tmp1191_logger = _get_logger__rkp4sl_0(this);
49509
+ var tmp1192_gameMechanicLogicInteractor = _get_gameLogicInteractor__895s7o(this);
49510
+ return plus(listOfNotNull([tmp, tmp_0, consumeFromClientActionsMiddleware(tmp1192_gameMechanicLogicInteractor, tmp1191_logger)]), this.n93_1.e93());
49480
49511
  };
49481
49512
  function logger$factory_1() {
49482
49513
  return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
@@ -49778,28 +49809,28 @@
49778
49809
  return emptyList();
49779
49810
  };
49780
49811
  protoOf(ValidationStoreContract).e93 = function () {
49781
- var tmp1192_logger = _get_logger__rkp4sl_2(this);
49782
- var tmp1193_sendErrorToClient = this.e94_1;
49783
- var tmp1194_idsProvider = _get_idsProvider__fnfajc_0(this);
49784
- var playerConnectionValidationMiddlewares = new PlayerConnectionValidationMiddlewares(tmp1194_idsProvider, tmp1192_logger, tmp1193_sendErrorToClient);
49785
- var tmp1195_tagProvider = _get_tagProvider__62phve(this);
49786
- var tmp1196_logger = _get_logger__rkp4sl_2(this);
49787
- var tmp1197_engineLogicConfig = _get_engineLogicConfig__l11qpf_0(this);
49788
- var tmp1198_sendErrorToClient = this.e94_1;
49789
- var tmp1199_idsProvider = _get_idsProvider__fnfajc_0(this);
49790
- var playerTurnValidationMiddlewares = new PlayerTurnValidationMiddlewares(tmp1195_tagProvider, tmp1198_sendErrorToClient, tmp1197_engineLogicConfig, tmp1196_logger, tmp1199_idsProvider);
49791
- var tmp1200_logger = _get_logger__rkp4sl_2(this);
49792
- var tmp1201_sendErrorToClient = this.e94_1;
49793
- var tmp1202_idsProvider = _get_idsProvider__fnfajc_0(this);
49794
- var fromClientValidationMiddleware = new FromClientValidationMiddleware(tmp1202_idsProvider, tmp1200_logger, tmp1201_sendErrorToClient);
49812
+ var tmp1193_logger = _get_logger__rkp4sl_2(this);
49813
+ var tmp1194_sendErrorToClient = this.e94_1;
49814
+ var tmp1195_idsProvider = _get_idsProvider__fnfajc_0(this);
49815
+ var playerConnectionValidationMiddlewares = new PlayerConnectionValidationMiddlewares(tmp1195_idsProvider, tmp1193_logger, tmp1194_sendErrorToClient);
49816
+ var tmp1196_tagProvider = _get_tagProvider__62phve(this);
49817
+ var tmp1197_logger = _get_logger__rkp4sl_2(this);
49818
+ var tmp1198_engineLogicConfig = _get_engineLogicConfig__l11qpf_0(this);
49819
+ var tmp1199_sendErrorToClient = this.e94_1;
49820
+ var tmp1200_idsProvider = _get_idsProvider__fnfajc_0(this);
49821
+ var playerTurnValidationMiddlewares = new PlayerTurnValidationMiddlewares(tmp1196_tagProvider, tmp1199_sendErrorToClient, tmp1198_engineLogicConfig, tmp1197_logger, tmp1200_idsProvider);
49822
+ var tmp1201_logger = _get_logger__rkp4sl_2(this);
49823
+ var tmp1202_sendErrorToClient = this.e94_1;
49824
+ var tmp1203_idsProvider = _get_idsProvider__fnfajc_0(this);
49825
+ var fromClientValidationMiddleware = new FromClientValidationMiddleware(tmp1203_idsProvider, tmp1201_logger, tmp1202_sendErrorToClient);
49795
49826
  var toClientValidationMiddleware = new ToClientValidationMiddleware(_get_logger__rkp4sl_2(this));
49796
49827
  var tmp;
49797
49828
  if (this.e94_1) {
49798
49829
  tmp = plus_0(listOf([playerTurnValidationMiddlewares.z94(), playerTurnValidationMiddlewares.s94()]), playerConnectionValidationMiddlewares.d95());
49799
49830
  } else {
49800
- var tmp1203_currentPlayerId = this.g94_1;
49801
- var tmp1204_localGameMechanicActions = this.f94_1;
49802
- tmp = plus(listOfNotNull([playerTurnValidationMiddlewares.q94(listOf_0(new LocalAnswerOnlyCheck(tmp1204_localGameMechanicActions, tmp1203_currentPlayerId))), !this.f94_1 ? playerTurnValidationMiddlewares.r94(listOf_0(new NotCurrentPlayerCheck(this.g94_1))) : null, playerTurnValidationMiddlewares.s94()]), listOfNotNull([_get_engineLogicConfig__l11qpf_0(this).validateTestMode ? checkGameTestPointsMiddleware(_get_logger__rkp4sl_2(this)) : null, fromClientValidationMiddleware.w94(), toClientValidationMiddleware.w94(), checkGameIsNotTerminatedMiddleware(_get_logger__rkp4sl_2(this)), checkValidSceneMiddleware(_get_logger__rkp4sl_2(this)), checkValidSceneActMiddleware(_get_logger__rkp4sl_2(this)), checkCardDuplicatesForBribesMiddleware(_get_logger__rkp4sl_2(this)), checkCardDuplicatesForScenesMiddleware(_get_logger__rkp4sl_2(this)), checkGameIsFinishedTimerTickMiddleware(_get_logger__rkp4sl_2(this)), checkGameIsFinishedStartTimerMiddleware(), checkGameIsFinishedStopTimerMiddleware()]));
49831
+ var tmp1204_currentPlayerId = this.g94_1;
49832
+ var tmp1205_localGameMechanicActions = this.f94_1;
49833
+ tmp = plus(listOfNotNull([playerTurnValidationMiddlewares.q94(listOf_0(new LocalAnswerOnlyCheck(tmp1205_localGameMechanicActions, tmp1204_currentPlayerId))), !this.f94_1 ? playerTurnValidationMiddlewares.r94(listOf_0(new NotCurrentPlayerCheck(this.g94_1))) : null, playerTurnValidationMiddlewares.s94()]), listOfNotNull([_get_engineLogicConfig__l11qpf_0(this).validateTestMode ? checkGameTestPointsMiddleware(_get_logger__rkp4sl_2(this)) : null, fromClientValidationMiddleware.w94(), toClientValidationMiddleware.w94(), checkGameIsNotTerminatedMiddleware(_get_logger__rkp4sl_2(this)), checkValidSceneMiddleware(_get_logger__rkp4sl_2(this)), checkValidSceneActMiddleware(_get_logger__rkp4sl_2(this)), checkCardDuplicatesForBribesMiddleware(_get_logger__rkp4sl_2(this)), checkCardDuplicatesForScenesMiddleware(_get_logger__rkp4sl_2(this)), checkGameIsFinishedTimerTickMiddleware(_get_logger__rkp4sl_2(this)), checkGameIsFinishedStartTimerMiddleware(), checkGameIsFinishedStopTimerMiddleware()]));
49803
49834
  }
49804
49835
  return tmp;
49805
49836
  };
@@ -49947,14 +49978,14 @@
49947
49978
  actions.e(cardMechanicAction);
49948
49979
  var shouldValidateBribe = newCardsOnTheTable.m() === table.config.playersMode.count;
49949
49980
  if (shouldValidateBribe) {
49950
- var tmp1207_safe_receiver = this.m95_1.c8w(action_0, table.gameInfo.round, newCardsOnTheTable, table.players, table.config);
49951
- if (tmp1207_safe_receiver == null)
49981
+ var tmp1208_safe_receiver = this.m95_1.c8w(action_0, table.gameInfo.round, newCardsOnTheTable, table.players, table.config);
49982
+ if (tmp1208_safe_receiver == null)
49952
49983
  null;
49953
49984
  else {
49954
49985
  // Inline function 'kotlin.apply' call
49955
49986
  // Inline function 'kotlin.contracts.contract' call
49956
49987
  // Inline function 'games.jass.logic.redux.middlewares.consumeFromClientActionsMiddleware.<anonymous>.<anonymous>.<anonymous>' call
49957
- actions.e(tmp1207_safe_receiver);
49988
+ actions.e(tmp1208_safe_receiver);
49958
49989
  }
49959
49990
  var bribeMechanicAction = this.m95_1.d8w(action_0, table.gameInfo.round, newCardsOnTheTable, table.players, table.config);
49960
49991
  actions.e(bribeMechanicAction);
@@ -50042,13 +50073,13 @@
50042
50073
  } else {
50043
50074
  if (action_0 instanceof SceneMechanicAction) {
50044
50075
  var table_0 = store.state.s6s();
50045
- var tmp1209_subject = action_0.i80_1;
50046
- var tmp1217_config = table_0.config;
50047
- var tmp1218_isFirstRound = table_0.gameHistory.isFirstRound;
50048
- if (tmp1209_subject === this.p95_1.v8z(tmp1218_isFirstRound, tmp1217_config)) {
50076
+ var tmp1210_subject = action_0.i80_1;
50077
+ var tmp1218_config = table_0.config;
50078
+ var tmp1219_isFirstRound = table_0.gameHistory.isFirstRound;
50079
+ if (tmp1210_subject === this.p95_1.v8z(tmp1219_isFirstRound, tmp1218_config)) {
50049
50080
  var tmp = store.dispatch;
50050
- var tmp1210_id = table_0.id;
50051
- var tmp1211_gameId = table_0.gameId;
50081
+ var tmp1211_id = table_0.id;
50082
+ var tmp1212_gameId = table_0.gameId;
50052
50083
  // Inline function 'kotlin.collections.toTypedArray' call
50053
50084
  // Inline function 'kotlin.collections.map' call
50054
50085
  var this_0 = table_0.players;
@@ -50061,14 +50092,14 @@
50061
50092
  var tmp$ret$0 = item.playerId;
50062
50093
  destination.e(tmp$ret$0);
50063
50094
  }
50064
- var tmp1212_players = copyToArray(destination);
50065
- var tmp1213_isFirstRound = table_0.gameHistory.isFirstRound;
50066
- var tmp1214_roundNumber = table_0.gameInfo.round.roundNumber;
50067
- var tmp1215_gameNumber = table_0.gameInfo.gameNumber;
50068
- var tmp1216_gameHistory = table_0.gameHistory;
50069
- tmp(new RoundStartedAction(tmp1210_id, tmp1211_gameId, tmp1214_roundNumber, tmp1212_players, tmp1213_isFirstRound, tmp1215_gameNumber, tmp1216_gameHistory));
50095
+ var tmp1213_players = copyToArray(destination);
50096
+ var tmp1214_isFirstRound = table_0.gameHistory.isFirstRound;
50097
+ var tmp1215_roundNumber = table_0.gameInfo.round.roundNumber;
50098
+ var tmp1216_gameNumber = table_0.gameInfo.gameNumber;
50099
+ var tmp1217_gameHistory = table_0.gameHistory;
50100
+ tmp(new RoundStartedAction(tmp1211_id, tmp1212_gameId, tmp1215_roundNumber, tmp1213_players, tmp1214_isFirstRound, tmp1216_gameNumber, tmp1217_gameHistory));
50070
50101
  } else {
50071
- if (tmp1209_subject === this.p95_1.w8z()) {
50102
+ if (tmp1210_subject === this.p95_1.w8z()) {
50072
50103
  var tmp$ret$4;
50073
50104
  $l$block: {
50074
50105
  // Inline function 'games.jass.logic.data.models.scenes.requireSceneData' call
@@ -50133,10 +50164,10 @@
50133
50164
  }
50134
50165
  var isGameFinished = tmp_1;
50135
50166
  var tmp_3 = store.dispatch;
50136
- var tmp1224_id = table_0.id;
50137
- var tmp1225_gameId = table_0.gameId;
50138
- var tmp1226_roundNumber = table_0.gameInfo.round.roundNumber;
50139
- var tmp1227_earnedBiggestPointPlayerId = sceneData.d7e_1;
50167
+ var tmp1225_id = table_0.id;
50168
+ var tmp1226_gameId = table_0.gameId;
50169
+ var tmp1227_roundNumber = table_0.gameInfo.round.roundNumber;
50170
+ var tmp1228_earnedBiggestPointPlayerId = sceneData.d7e_1;
50140
50171
  var tmp_4;
50141
50172
  if (gameWinners == null) {
50142
50173
  tmp_4 = null;
@@ -50144,7 +50175,7 @@
50144
50175
  // Inline function 'kotlin.collections.toTypedArray' call
50145
50176
  tmp_4 = copyToArray(gameWinners);
50146
50177
  }
50147
- var tmp1228_gameWinners = tmp_4;
50178
+ var tmp1229_gameWinners = tmp_4;
50148
50179
  var tmp_5;
50149
50180
  if (isGameFinished) {
50150
50181
  // Inline function 'kotlin.collections.toTypedArray' call
@@ -50163,7 +50194,7 @@
50163
50194
  } else {
50164
50195
  tmp_5 = null;
50165
50196
  }
50166
- var tmp1229_playersGameAnalytics = tmp_5;
50197
+ var tmp1230_playersGameAnalytics = tmp_5;
50167
50198
  // Inline function 'kotlin.collections.toTypedArray' call
50168
50199
  // Inline function 'kotlin.collections.map' call
50169
50200
  var this_4 = table_0.players;
@@ -50176,18 +50207,18 @@
50176
50207
  var tmp$ret$22 = mapToRoundAnalytics(item_2, table_0.gameDuration);
50177
50208
  destination_3.e(tmp$ret$22);
50178
50209
  }
50179
- var tmp1230_playersRoundAnalytics = copyToArray(destination_3);
50180
- var tmp1231_gameHistory = table_0.gameHistory;
50181
- var tmp1221_safe_receiver = sceneData.i7e_1;
50182
- var tmp1222_safe_receiver = tmp1221_safe_receiver == null ? null : tmp1221_safe_receiver.s();
50210
+ var tmp1231_playersRoundAnalytics = copyToArray(destination_3);
50211
+ var tmp1232_gameHistory = table_0.gameHistory;
50212
+ var tmp1222_safe_receiver = sceneData.i7e_1;
50213
+ var tmp1223_safe_receiver = tmp1222_safe_receiver == null ? null : tmp1222_safe_receiver.s();
50183
50214
  var tmp_6;
50184
- if (tmp1222_safe_receiver == null) {
50215
+ if (tmp1223_safe_receiver == null) {
50185
50216
  tmp_6 = null;
50186
50217
  } else {
50187
50218
  // Inline function 'kotlin.collections.map' call
50188
50219
  // Inline function 'kotlin.collections.mapTo' call
50189
- var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1222_safe_receiver, 10));
50190
- var tmp0_iterator_4 = tmp1222_safe_receiver.j();
50220
+ var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1223_safe_receiver, 10));
50221
+ var tmp0_iterator_4 = tmp1223_safe_receiver.j();
50191
50222
  while (tmp0_iterator_4.k()) {
50192
50223
  var item_3 = tmp0_iterator_4.l();
50193
50224
  // Inline function 'games.jass.logic.redux.middlewares.game.roundLifecycleMiddleware.<anonymous>.<anonymous>' call
@@ -50200,16 +50231,16 @@
50200
50231
  }
50201
50232
  tmp_6 = destination_4;
50202
50233
  }
50203
- var tmp1223_safe_receiver = tmp_6;
50234
+ var tmp1224_safe_receiver = tmp_6;
50204
50235
  var tmp_7;
50205
- if (tmp1223_safe_receiver == null) {
50236
+ if (tmp1224_safe_receiver == null) {
50206
50237
  tmp_7 = null;
50207
50238
  } else {
50208
50239
  // Inline function 'kotlin.collections.toTypedArray' call
50209
- tmp_7 = copyToArray(tmp1223_safe_receiver);
50240
+ tmp_7 = copyToArray(tmp1224_safe_receiver);
50210
50241
  }
50211
- var tmp1232_achievements = tmp_7;
50212
- tmp_3(new RoundEndedAction(tmp1224_id, tmp1225_gameId, tmp1226_roundNumber, tmp1227_earnedBiggestPointPlayerId, gameLosers, tmp1228_gameWinners, tmp1229_playersGameAnalytics, tmp1230_playersRoundAnalytics, tmp1232_achievements, tmp1231_gameHistory));
50242
+ var tmp1233_achievements = tmp_7;
50243
+ tmp_3(new RoundEndedAction(tmp1225_id, tmp1226_gameId, tmp1227_roundNumber, tmp1228_earnedBiggestPointPlayerId, gameLosers, tmp1229_gameWinners, tmp1230_playersGameAnalytics, tmp1231_playersRoundAnalytics, tmp1233_achievements, tmp1232_gameHistory));
50213
50244
  }
50214
50245
  }
50215
50246
  }
@@ -50261,8 +50292,8 @@
50261
50292
  // Inline function 'games.jass.logic.redux.middlewares.lastbribe.putPlayerLastCardMiddleware.<anonymous>' call
50262
50293
  var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
50263
50294
  next(action_0);
50264
- var tmp1233_table = store.state.s6s();
50265
- var newAction = getBotActionIfNeeded(action_0, tmp1233_table, this.q95_1, this.r95_1);
50295
+ var tmp1234_table = store.state.s6s();
50296
+ var newAction = getBotActionIfNeeded(action_0, tmp1234_table, this.q95_1, this.r95_1);
50266
50297
  if (newAction == null)
50267
50298
  null;
50268
50299
  else {
@@ -50274,35 +50305,6 @@
50274
50305
  protoOf(_no_name_provided__qut3iv_2).s6k = function (store, next, action) {
50275
50306
  return this.k6l(store, next, action);
50276
50307
  };
50277
- function fileLoggerMiddleware(currentPlayerId, coreConfig, loggerFactory, asyncProvider, fileSystem, loggerOutput) {
50278
- if (loggerOutput == null && coreConfig.fileLogsEnabled) {
50279
- Logger_getInstance().wl(VOID, "fileLoggerMiddleware: loggerOutput isn't created");
50280
- return emptyList();
50281
- }
50282
- var tmp;
50283
- if (coreConfig.fileLogsEnabled) {
50284
- // Inline function 'kotlin.requireNotNull' call
50285
- // Inline function 'kotlin.contracts.contract' call
50286
- var tmp$ret$1;
50287
- $l$block: {
50288
- // Inline function 'kotlin.requireNotNull' call
50289
- // Inline function 'kotlin.contracts.contract' call
50290
- if (loggerOutput == null) {
50291
- // Inline function 'kotlin.requireNotNull.<anonymous>' call
50292
- var message = 'Required value was null.';
50293
- throw IllegalArgumentException_init_$Create$(toString(message));
50294
- } else {
50295
- tmp$ret$1 = loggerOutput;
50296
- break $l$block;
50297
- }
50298
- }
50299
- var tmp1235_loggerOutput = tmp$ret$1;
50300
- tmp = fileLoggerByGameIdMiddleware(currentPlayerId, loggerFactory, asyncProvider, tmp1235_loggerOutput);
50301
- } else {
50302
- tmp = null;
50303
- }
50304
- return listOfNotNull([tmp, coreConfig.fileLogsEnabled && coreConfig.deleteFilesOnClear ? clearLogFilesMiddleware(fileSystem, coreConfig, asyncProvider) : null]);
50305
- }
50306
50308
  function fileLoggerByGameIdMiddleware(currentPlayerId, loggerFactory, asyncProvider, loggerOutput) {
50307
50309
  // Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
50308
50310
  return new _no_name_provided__qut3iv_3(loggerFactory, currentPlayerId, asyncProvider, loggerOutput);