raspberry_games_server_game_logic 1.8.281 → 1.8.283

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.
@@ -378,6 +378,9 @@
378
378
  var mapOfObject = kotlin_io_raspberryapps_game_engine_core.$_$.y2;
379
379
  var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.c;
380
380
  var generateMsg = kotlin_io_raspberryapps_cardgame_logger.$_$.b;
381
+ var mutableListOf = kotlin_kotlin.$_$.v8;
382
+ var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
383
+ var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
381
384
  var Companion_instance_3 = kotlin_org_kodein_di_kodein_di.$_$.b;
382
385
  //endregion
383
386
  //region block: pre-declaration
@@ -1340,7 +1343,7 @@
1340
1343
  return this.s9i(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
1341
1344
  }
1342
1345
  initMetadataForInterface(GameHelper, 'GameHelper');
1343
- initMetadataForClass(GameHelperImpl, 'GameHelperImpl', GameHelperImpl, VOID, [GameHelper]);
1346
+ initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
1344
1347
  function createBotUser(playerId, existingNicknames, $super) {
1345
1348
  var tmp;
1346
1349
  if (existingNicknames === VOID) {
@@ -1350,7 +1353,7 @@
1350
1353
  tmp = existingNicknames;
1351
1354
  }
1352
1355
  existingNicknames = tmp;
1353
- return this.t9i(playerId, existingNicknames);
1356
+ return this.u9i(playerId, existingNicknames);
1354
1357
  }
1355
1358
  initMetadataForInterface(GameResources, 'GameResources');
1356
1359
  initMetadataForCompanion(Companion_183);
@@ -1823,9 +1826,10 @@
1823
1826
  var tmp0_safe_receiver = transition instanceof RevengeRoomTransition ? transition : null;
1824
1827
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.originalRoomMode;
1825
1828
  var originalRoomMode = tmp1_elvis_lhs == null ? newRoomMode : tmp1_elvis_lhs;
1826
- var updateRating = fromRound == null && !isPrivate && newRoomMode.hasRatingSupport && originalRoomMode.hasRatingSupport;
1827
- var tmp2_verboseGameHistory = !isProduction;
1828
- return new EngineLogicConfig(false, isProduction, tmp2_verboseGameHistory, VOID, updateRating, validateFromClientActionTags, false, playerTimeoutFactorToFinishStep, openRoomIfFinished);
1829
+ var isNotAFirstRound = (fromRound == null ? 0 : fromRound) > 0;
1830
+ var updateRating = isNotAFirstRound && !isPrivate && newRoomMode.hasRatingSupport && originalRoomMode.hasRatingSupport;
1831
+ var tmp3_verboseGameHistory = !isProduction;
1832
+ return new EngineLogicConfig(false, isProduction, tmp3_verboseGameHistory, VOID, updateRating, validateFromClientActionTags, false, playerTimeoutFactorToFinishStep, openRoomIfFinished);
1829
1833
  };
1830
1834
  protoOf(Companion_2).getServerEngineMode = function (roomMode, isPrivate, transition, fromRound, isProduction, validateFromClientActionTags, openRoomIfFinished, playerTimeoutFactorToFinishStep, $super) {
1831
1835
  validateFromClientActionTags = validateFromClientActionTags === VOID ? true : validateFromClientActionTags;
@@ -58361,7 +58365,8 @@
58361
58365
  $this.mapRules(rules);
58362
58366
  }
58363
58367
  }
58364
- function GameHelperImpl() {
58368
+ function GameHelperImpl(logger) {
58369
+ this.t9i_1 = logger;
58365
58370
  }
58366
58371
  protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
58367
58372
  var state = store.state;
@@ -58597,7 +58602,9 @@
58597
58602
  };
58598
58603
  protoOf(GameHelperImpl).s9i = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
58599
58604
  var roomMode = mapToRoomMode(mode);
58600
- var options = Companion_instance_172.getServerOptions(isEnableChat, isBotsEnabled, (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen);
58605
+ var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
58606
+ this.t9i_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
58607
+ var options = Companion_instance_172.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
58601
58608
  var playersMode = this.mapPlayers(players);
58602
58609
  var pointsMode = this.mapPoints(points);
58603
58610
  var tmp;
@@ -58801,40 +58808,40 @@
58801
58808
  function getRandomAvatarData_0($this) {
58802
58809
  var avatarSetNumber = Default_getInstance().og(values_18().length);
58803
58810
  var avatarSet = values_18()[avatarSetNumber];
58804
- return new AvatarData(Default_getInstance().og(avatarSet.w9i()), avatarSet);
58811
+ return new AvatarData(Default_getInstance().og(avatarSet.x9i()), avatarSet);
58805
58812
  }
58806
58813
  function getAvatarUrlByIndex($this, data) {
58807
58814
  return mapToPattern($this, data);
58808
58815
  }
58809
58816
  function getNicknameByIndex($this, data) {
58810
- return data.y9i_1.z9i(data.x9i_1);
58817
+ return data.z9i_1.a9j(data.y9i_1);
58811
58818
  }
58812
58819
  function mapToPattern($this, data) {
58813
- return 'debertz://raspberry.games/' + data.y9i_1.n2_1 + '/' + data.x9i_1;
58820
+ return 'debertz://raspberry.games/' + data.z9i_1.n2_1 + '/' + data.y9i_1;
58814
58821
  }
58815
58822
  function Companion_183() {
58816
58823
  Companion_instance_188 = this;
58817
- this.a9j_1 = 'debertz://raspberry.games';
58824
+ this.b9j_1 = 'debertz://raspberry.games';
58818
58825
  var tmp = this;
58819
58826
  // Inline function 'kotlin.arrayOf' call
58820
58827
  // Inline function 'kotlin.js.unsafeCast' call
58821
58828
  // Inline function 'kotlin.js.asDynamic' call
58822
- tmp.b9j_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
58829
+ tmp.c9j_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
58823
58830
  var tmp_0 = this;
58824
58831
  // Inline function 'kotlin.arrayOf' call
58825
58832
  // Inline function 'kotlin.js.unsafeCast' call
58826
58833
  // Inline function 'kotlin.js.asDynamic' call
58827
- tmp_0.c9j_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
58834
+ tmp_0.d9j_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
58828
58835
  var tmp_1 = this;
58829
58836
  // Inline function 'kotlin.arrayOf' call
58830
58837
  // Inline function 'kotlin.js.unsafeCast' call
58831
58838
  // Inline function 'kotlin.js.asDynamic' call
58832
- tmp_1.d9j_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
58839
+ tmp_1.e9j_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
58833
58840
  var tmp_2 = this;
58834
58841
  // Inline function 'kotlin.arrayOf' call
58835
58842
  // Inline function 'kotlin.js.unsafeCast' call
58836
58843
  // Inline function 'kotlin.js.asDynamic' call
58837
- tmp_2.e9j_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
58844
+ tmp_2.f9j_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
58838
58845
  }
58839
58846
  var Companion_instance_188;
58840
58847
  function Companion_getInstance_190() {
@@ -58845,14 +58852,14 @@
58845
58852
  function AvatarSet(name, ordinal) {
58846
58853
  Enum.call(this, name, ordinal);
58847
58854
  }
58848
- protoOf(AvatarSet).w9i = function () {
58855
+ protoOf(AvatarSet).x9i = function () {
58849
58856
  var tmp;
58850
58857
  switch (this.n2_1) {
58851
58858
  case 0:
58852
- tmp = Companion_getInstance_190().c9j_1.length;
58859
+ tmp = Companion_getInstance_190().d9j_1.length;
58853
58860
  break;
58854
58861
  case 1:
58855
- tmp = Companion_getInstance_190().e9j_1.length;
58862
+ tmp = Companion_getInstance_190().f9j_1.length;
58856
58863
  break;
58857
58864
  default:
58858
58865
  noWhenBranchMatchedException();
@@ -58860,14 +58867,14 @@
58860
58867
  }
58861
58868
  return tmp;
58862
58869
  };
58863
- protoOf(AvatarSet).z9i = function (index) {
58870
+ protoOf(AvatarSet).a9j = function (index) {
58864
58871
  var tmp;
58865
58872
  switch (this.n2_1) {
58866
58873
  case 0:
58867
- tmp = Companion_getInstance_190().c9j_1[index];
58874
+ tmp = Companion_getInstance_190().d9j_1[index];
58868
58875
  break;
58869
58876
  case 1:
58870
- tmp = Companion_getInstance_190().e9j_1[index];
58877
+ tmp = Companion_getInstance_190().f9j_1[index];
58871
58878
  break;
58872
58879
  default:
58873
58880
  noWhenBranchMatchedException();
@@ -58876,8 +58883,8 @@
58876
58883
  return tmp;
58877
58884
  };
58878
58885
  function AvatarData(index, avatarSet) {
58879
- this.x9i_1 = index;
58880
- this.y9i_1 = avatarSet;
58886
+ this.y9i_1 = index;
58887
+ this.z9i_1 = avatarSet;
58881
58888
  }
58882
58889
  function AvatarSet_ORIGIN_getInstance() {
58883
58890
  AvatarSet_initEntries();
@@ -58890,7 +58897,7 @@
58890
58897
  function GameResourcesImpl() {
58891
58898
  Companion_getInstance_190();
58892
58899
  }
58893
- protoOf(GameResourcesImpl).t9i = function (playerId, existingNicknames) {
58900
+ protoOf(GameResourcesImpl).u9i = function (playerId, existingNicknames) {
58894
58901
  return createUser(this, playerId, existingNicknames);
58895
58902
  };
58896
58903
  protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
@@ -58932,46 +58939,46 @@
58932
58939
  }
58933
58940
  var WARN;
58934
58941
  function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
58935
- this.f9j_1 = loggerCallback;
58942
+ this.g9j_1 = loggerCallback;
58936
58943
  }
58937
58944
  protoOf(LoggerCallbacksWrapperLoggerOutput).tm = function (tag, message, payload) {
58938
- this.f9j_1('debug', tag, message, null, payload);
58945
+ this.g9j_1('debug', tag, message, null, payload);
58939
58946
  };
58940
58947
  protoOf(LoggerCallbacksWrapperLoggerOutput).um = function (tag, message, exception, payload) {
58941
- this.f9j_1('error', tag, generateMsg(message, exception), exception, payload);
58948
+ this.g9j_1('error', tag, generateMsg(message, exception), exception, payload);
58942
58949
  };
58943
58950
  protoOf(LoggerCallbacksWrapperLoggerOutput).xm = function (tag, message, payload) {
58944
- this.f9j_1('debug', tag, message, null, payload);
58951
+ this.g9j_1('debug', tag, message, null, payload);
58945
58952
  };
58946
58953
  protoOf(LoggerCallbacksWrapperLoggerOutput).wm = function (tag, message, exception, payload) {
58947
- this.f9j_1('debug', tag, generateMsg(message, exception), exception, payload);
58954
+ this.g9j_1('debug', tag, generateMsg(message, exception), exception, payload);
58948
58955
  };
58949
58956
  protoOf(LoggerCallbacksWrapperLoggerOutput).vm = function (tag, message, exception, payload) {
58950
- this.f9j_1('warn', tag, generateMsg(message, exception), exception, payload);
58957
+ this.g9j_1('warn', tag, generateMsg(message, exception), exception, payload);
58951
58958
  };
58952
58959
  function ParserHelper() {
58953
58960
  }
58954
58961
  function ParserHelperImpl(json, encoderDecoderProvider) {
58955
- this.g9j_1 = json;
58956
- this.h9j_1 = encoderDecoderProvider;
58962
+ this.h9j_1 = json;
58963
+ this.i9j_1 = encoderDecoderProvider;
58957
58964
  }
58958
58965
  protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
58959
- return this.h9j_1.t8r(mapToDto_21(action));
58966
+ return this.i9j_1.t8r(mapToDto_21(action));
58960
58967
  };
58961
58968
  protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
58962
- return mapFromDto_17(this.h9j_1.w8r(json), fromPlayerId);
58969
+ return mapFromDto_17(this.i9j_1.w8r(json), fromPlayerId);
58963
58970
  };
58964
58971
  protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
58965
- return this.h9j_1.u8r(mapToDto_92(action));
58972
+ return this.i9j_1.u8r(mapToDto_92(action));
58966
58973
  };
58967
58974
  protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
58968
58975
  // Inline function 'kotlin.collections.toTypedArray' call
58969
- var this_0 = mapFromClientDtoListWithPayload(this.h9j_1.x8r(json), playerId, engine);
58976
+ var this_0 = mapFromClientDtoListWithPayload(this.i9j_1.x8r(json), playerId, engine);
58970
58977
  return copyToArray(this_0);
58971
58978
  };
58972
58979
  protoOf(ParserHelperImpl).encodeGameRound = function (round) {
58973
58980
  // Inline function 'kotlinx.serialization.encodeToString' call
58974
- var this_0 = this.g9j_1;
58981
+ var this_0 = this.h9j_1;
58975
58982
  var value = mapToDto_32(round);
58976
58983
  // Inline function 'kotlinx.serialization.serializer' call
58977
58984
  var this_1 = this_0.y45();
@@ -58982,7 +58989,7 @@
58982
58989
  };
58983
58990
  protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
58984
58991
  // Inline function 'kotlinx.serialization.encodeToString' call
58985
- var this_0 = this.g9j_1;
58992
+ var this_0 = this.h9j_1;
58986
58993
  // Inline function 'kotlin.collections.map' call
58987
58994
  var this_1 = round.items;
58988
58995
  // Inline function 'kotlin.collections.mapTo' call
@@ -59005,7 +59012,7 @@
59005
59012
  };
59006
59013
  protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
59007
59014
  // Inline function 'kotlinx.serialization.encodeToString' call
59008
- var this_0 = this.g9j_1;
59015
+ var this_0 = this.h9j_1;
59009
59016
  var value = mapToDto_34(metadata);
59010
59017
  // Inline function 'kotlinx.serialization.serializer' call
59011
59018
  var this_1 = this_0.y45();
@@ -59016,7 +59023,7 @@
59016
59023
  };
59017
59024
  protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
59018
59025
  // Inline function 'kotlinx.serialization.encodeToString' call
59019
- var this_0 = this.g9j_1;
59026
+ var this_0 = this.h9j_1;
59020
59027
  var value = mapToDto_79(config);
59021
59028
  // Inline function 'kotlinx.serialization.serializer' call
59022
59029
  var this_1 = this_0.y45();
@@ -59027,7 +59034,7 @@
59027
59034
  };
59028
59035
  protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
59029
59036
  // Inline function 'kotlinx.serialization.encodeToString' call
59030
- var this_0 = this.g9j_1;
59037
+ var this_0 = this.h9j_1;
59031
59038
  var value = mapToDto_113(transition);
59032
59039
  // Inline function 'kotlinx.serialization.serializer' call
59033
59040
  var this_1 = this_0.y45();
@@ -59038,7 +59045,7 @@
59038
59045
  };
59039
59046
  protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
59040
59047
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
59041
- var this_0 = this.g9j_1;
59048
+ var this_0 = this.h9j_1;
59042
59049
  // Inline function 'kotlinx.serialization.serializer' call
59043
59050
  var this_1 = this_0.y45();
59044
59051
  // Inline function 'kotlinx.serialization.internal.cast' call
@@ -59049,7 +59056,7 @@
59049
59056
  };
59050
59057
  protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
59051
59058
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
59052
- var this_0 = this.g9j_1;
59059
+ var this_0 = this.h9j_1;
59053
59060
  // Inline function 'kotlinx.serialization.serializer' call
59054
59061
  var this_1 = this_0.y45();
59055
59062
  // Inline function 'kotlinx.serialization.internal.cast' call
@@ -59060,7 +59067,7 @@
59060
59067
  };
59061
59068
  protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
59062
59069
  // Inline function 'kotlinx.serialization.encodeToString' call
59063
- var this_0 = this.g9j_1;
59070
+ var this_0 = this.h9j_1;
59064
59071
  var value = mapToDto_144(table);
59065
59072
  // Inline function 'kotlinx.serialization.serializer' call
59066
59073
  var this_1 = this_0.y45();
@@ -59070,11 +59077,11 @@
59070
59077
  return this_0.w45(tmp$ret$1, value);
59071
59078
  };
59072
59079
  protoOf(ParserHelperImpl).decodeTableLite = function (json) {
59073
- return mapFromDto_83(this.h9j_1.v8r(json));
59080
+ return mapFromDto_83(this.i9j_1.v8r(json));
59074
59081
  };
59075
59082
  protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
59076
59083
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
59077
- var this_0 = this.g9j_1;
59084
+ var this_0 = this.h9j_1;
59078
59085
  // Inline function 'kotlinx.serialization.serializer' call
59079
59086
  var this_1 = this_0.y45();
59080
59087
  // Inline function 'kotlinx.serialization.internal.cast' call
@@ -59087,16 +59094,16 @@
59087
59094
  function RatingHelper() {
59088
59095
  }
59089
59096
  function RatingHelperImpl(userRatingInteractor) {
59090
- this.i9j_1 = userRatingInteractor;
59097
+ this.j9j_1 = userRatingInteractor;
59091
59098
  }
59092
59099
  protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
59093
- return this.i9j_1.t8y(league, rating);
59100
+ return this.j9j_1.t8y(league, rating);
59094
59101
  };
59095
59102
  protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
59096
- return this.i9j_1.v8y(rating);
59103
+ return this.j9j_1.v8y(rating);
59097
59104
  };
59098
59105
  protoOf(RatingHelperImpl).getLeaguesConfig = function () {
59099
- return this.i9j_1.u8y();
59106
+ return this.j9j_1.u8y();
59100
59107
  };
59101
59108
  function engineHelpersModule() {
59102
59109
  return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
@@ -59189,80 +59196,133 @@
59189
59196
  return new RatingHelperImpl(tmp$ret$1);
59190
59197
  }
59191
59198
  function engineHelpersModule$lambda$lambda_1($this$singleton) {
59192
- return new GameHelperImpl();
59199
+ // Inline function 'org.kodein.di.instance' call
59200
+ var tmp = $this$singleton.l5z();
59201
+ // Inline function 'org.kodein.type.generic' call
59202
+ var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
59203
+ var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
59204
+ var tmp$ret$1 = tmp.k5z(tmp$ret$0, null);
59205
+ return new GameHelperImpl(tmp$ret$1);
59193
59206
  }
59194
59207
  function engineHelpersModule$lambda$lambda_2($this$singleton) {
59195
59208
  return new GameResourcesImpl();
59196
59209
  }
59210
+ function _get_logger__rkp4sl_3($this) {
59211
+ // Inline function 'kotlin.getValue' call
59212
+ var this_0 = $this.l9j_1;
59213
+ logger$factory_7();
59214
+ return this_0.u();
59215
+ }
59197
59216
  function _get_di__ndbzja($this) {
59198
59217
  // Inline function 'kotlin.getValue' call
59199
- var this_0 = $this.j9j_1;
59218
+ var this_0 = $this.m9j_1;
59200
59219
  di$factory();
59201
59220
  return this_0.u();
59202
59221
  }
59203
- function EngineHelpersFactory$di$delegate$lambda() {
59204
- var tmp = Companion_instance_3;
59205
- return tmp.h5y(VOID, EngineHelpersFactory$di$delegate$lambda$lambda);
59222
+ function EngineHelpersFactory$logger$delegate$lambda(this$0) {
59223
+ return function () {
59224
+ var tmp;
59225
+ if (this$0.k9j_1 == null) {
59226
+ tmp = null;
59227
+ } else {
59228
+ // Inline function 'kotlin.let' call
59229
+ // Inline function 'kotlin.contracts.contract' call
59230
+ // Inline function 'di.EngineHelpersFactory.logger$delegate.<anonymous>.<anonymous>' call
59231
+ tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.k9j_1)]));
59232
+ }
59233
+ var tmp1_elvis_lhs = tmp;
59234
+ return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
59235
+ };
59206
59236
  }
59207
- function EngineHelpersFactory$di$delegate$lambda$lambda($this$DI) {
59208
- $this$DI.a5y(jsonModule());
59209
- $this$DI.a5y(get_ratingModule());
59210
- $this$DI.a5y(engineHelpersModule());
59211
- return Unit_instance;
59237
+ function EngineHelpersFactory$di$delegate$lambda$lambda$lambda(this$0) {
59238
+ return function ($this$provider) {
59239
+ return _get_logger__rkp4sl_3(this$0);
59240
+ };
59212
59241
  }
59213
- function EngineHelpersFactory() {
59242
+ function EngineHelpersFactory$di$delegate$lambda$lambda(this$0) {
59243
+ return function ($this$DI) {
59244
+ // Inline function 'org.kodein.di.bind' call
59245
+ // Inline function 'org.kodein.type.generic' call
59246
+ var tmp = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
59247
+ var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
59248
+ var tmp_0 = $this$DI.y5x(tmp$ret$0, null, null);
59249
+ // Inline function 'org.kodein.di.provider' call
59250
+ var creator = EngineHelpersFactory$di$delegate$lambda$lambda$lambda(this$0);
59251
+ var tmp_1 = $this$DI.b5y();
59252
+ // Inline function 'org.kodein.type.generic' call
59253
+ var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
59254
+ var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
59255
+ var tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, creator);
59256
+ tmp_0.w61(tmp$ret$3);
59257
+ $this$DI.a5y(jsonModule());
59258
+ $this$DI.a5y(get_ratingModule());
59259
+ $this$DI.a5y(engineHelpersModule());
59260
+ return Unit_instance;
59261
+ };
59262
+ }
59263
+ function EngineHelpersFactory$di$delegate$lambda(this$0) {
59264
+ return function () {
59265
+ var tmp = Companion_instance_3;
59266
+ return tmp.h5y(VOID, EngineHelpersFactory$di$delegate$lambda$lambda(this$0));
59267
+ };
59268
+ }
59269
+ function EngineHelpersFactory(loggerCallback) {
59270
+ loggerCallback = loggerCallback === VOID ? null : loggerCallback;
59271
+ this.k9j_1 = loggerCallback;
59214
59272
  var tmp = this;
59215
- tmp.j9j_1 = lazy(EngineHelpersFactory$di$delegate$lambda);
59273
+ tmp.l9j_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
59216
59274
  var tmp_0 = this;
59275
+ tmp_0.m9j_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
59276
+ var tmp_1 = this;
59217
59277
  // Inline function 'org.kodein.di.instance' call
59218
59278
  var this_0 = _get_di__ndbzja(this);
59219
59279
  // Inline function 'org.kodein.type.generic' call
59220
- var tmp_1 = typeToken(createKType(getKClass(RatingHelper), arrayOf([]), false));
59221
- var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
59222
- tmp_0.k9j_1 = Instance(this_0, tmp$ret$0, null).t63(this, ratingHelper$factory());
59223
- var tmp_2 = this;
59280
+ var tmp_2 = typeToken(createKType(getKClass(RatingHelper), arrayOf([]), false));
59281
+ var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
59282
+ tmp_1.n9j_1 = Instance(this_0, tmp$ret$0, null).t63(this, ratingHelper$factory());
59283
+ var tmp_3 = this;
59224
59284
  // Inline function 'org.kodein.di.instance' call
59225
59285
  var this_1 = _get_di__ndbzja(this);
59226
59286
  // Inline function 'org.kodein.type.generic' call
59227
- var tmp_3 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
59228
- var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
59229
- tmp_2.l9j_1 = Instance(this_1, tmp$ret$2, null).t63(this, parserHelper$factory());
59230
- var tmp_4 = this;
59287
+ var tmp_4 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
59288
+ var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
59289
+ tmp_3.o9j_1 = Instance(this_1, tmp$ret$2, null).t63(this, parserHelper$factory());
59290
+ var tmp_5 = this;
59231
59291
  // Inline function 'org.kodein.di.instance' call
59232
59292
  var this_2 = _get_di__ndbzja(this);
59233
59293
  // Inline function 'org.kodein.type.generic' call
59234
- var tmp_5 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
59235
- var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
59236
- tmp_4.m9j_1 = Instance(this_2, tmp$ret$4, null).t63(this, gameHelper$factory());
59237
- var tmp_6 = this;
59294
+ var tmp_6 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
59295
+ var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
59296
+ tmp_5.p9j_1 = Instance(this_2, tmp$ret$4, null).t63(this, gameHelper$factory());
59297
+ var tmp_7 = this;
59238
59298
  // Inline function 'org.kodein.di.instance' call
59239
59299
  var this_3 = _get_di__ndbzja(this);
59240
59300
  // Inline function 'org.kodein.type.generic' call
59241
- var tmp_7 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
59242
- var tmp$ret$6 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
59243
- tmp_6.n9j_1 = Instance(this_3, tmp$ret$6, null).t63(this, gameResources$factory());
59301
+ var tmp_8 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
59302
+ var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
59303
+ tmp_7.q9j_1 = Instance(this_3, tmp$ret$6, null).t63(this, gameResources$factory());
59244
59304
  }
59245
- protoOf(EngineHelpersFactory).o9j = function () {
59305
+ protoOf(EngineHelpersFactory).r9j = function () {
59246
59306
  // Inline function 'kotlin.getValue' call
59247
- var this_0 = this.k9j_1;
59307
+ var this_0 = this.n9j_1;
59248
59308
  ratingHelper$factory_0();
59249
59309
  return this_0.u();
59250
59310
  };
59251
- protoOf(EngineHelpersFactory).p9j = function () {
59311
+ protoOf(EngineHelpersFactory).s9j = function () {
59252
59312
  // Inline function 'kotlin.getValue' call
59253
- var this_0 = this.l9j_1;
59313
+ var this_0 = this.o9j_1;
59254
59314
  parserHelper$factory_0();
59255
59315
  return this_0.u();
59256
59316
  };
59257
- protoOf(EngineHelpersFactory).q9j = function () {
59317
+ protoOf(EngineHelpersFactory).t9j = function () {
59258
59318
  // Inline function 'kotlin.getValue' call
59259
- var this_0 = this.m9j_1;
59319
+ var this_0 = this.p9j_1;
59260
59320
  gameHelper$factory_0();
59261
59321
  return this_0.u();
59262
59322
  };
59263
- protoOf(EngineHelpersFactory).r9j = function () {
59323
+ protoOf(EngineHelpersFactory).u9j = function () {
59264
59324
  // Inline function 'kotlin.getValue' call
59265
- var this_0 = this.n9j_1;
59325
+ var this_0 = this.q9j_1;
59266
59326
  gameResources$factory_0();
59267
59327
  return this_0.u();
59268
59328
  };
@@ -59286,6 +59346,11 @@
59286
59346
  return receiver.gameResources;
59287
59347
  }, null);
59288
59348
  }
59349
+ function logger$factory_7() {
59350
+ return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
59351
+ return _get_logger__rkp4sl_3(receiver);
59352
+ }, null);
59353
+ }
59289
59354
  function di$factory() {
59290
59355
  return getPropertyCallableRef('di', 1, KProperty1, function (receiver) {
59291
59356
  return _get_di__ndbzja(receiver);
@@ -59898,10 +59963,10 @@
59898
59963
  protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
59899
59964
  protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
59900
59965
  protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
59901
- defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).o9j);
59902
- defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).p9j);
59903
- defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).q9j);
59904
- defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).r9j);
59966
+ defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).r9j);
59967
+ defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).s9j);
59968
+ defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).t9j);
59969
+ defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).u9j);
59905
59970
  //endregion
59906
59971
  //region block: init
59907
59972
  Companion_instance_5 = new Companion_0();