client_plugin_logic_deb 1.8.325 → 1.8.326

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.
@@ -377,7 +377,7 @@
377
377
  return tmp;
378
378
  }
379
379
  initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
380
- initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithUtcOffset, WithTime, WithDate]);
380
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithTime, WithUtcOffset, WithDate]);
381
381
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
382
382
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
383
383
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
@@ -1963,8 +1963,9 @@ export declare interface GameHelper {
1963
1963
  mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
1964
1964
  mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
1965
1965
  mapRules(rules: any): games.jass.logic.data.models.rules.Rules;
1966
- prepareConfigObjectWithPagination(config: any): any;
1967
- prepareConfigObject(config: any): any;
1966
+ prepareLobbyConfigWithPagination(config: any): any;
1967
+ prepareLobbyConfig(config: any): any;
1968
+ prepareLeagueConfig(config: any): any;
1968
1969
  isValidConfigObject(config: any): boolean;
1969
1970
  getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
1970
1971
  getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
@@ -412,7 +412,7 @@
412
412
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
413
413
  //endregion
414
414
  function GameEngineConfig() {
415
- this.version = '1.8.325';
415
+ this.version = '1.8.326';
416
416
  }
417
417
  protoOf(GameEngineConfig).l33 = function () {
418
418
  return this.version;
@@ -60971,7 +60971,7 @@
60971
60971
  }
60972
60972
  function GameHelper() {
60973
60973
  }
60974
- function prepareFilterObjectInternal($this, map) {
60974
+ function prepareLobbyFilterInternal($this, map) {
60975
60975
  var jsObject = {};
60976
60976
  var tmp = map.k2('players');
60977
60977
  var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
@@ -60988,7 +60988,7 @@
60988
60988
  while (inductionVariable < last) {
60989
60989
  var element = tmp0_safe_receiver[inductionVariable];
60990
60990
  inductionVariable = inductionVariable + 1 | 0;
60991
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
60991
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
60992
60992
  validatePlayers($this, element);
60993
60993
  }
60994
60994
  tmp_0 = tmp0_safe_receiver;
@@ -61001,7 +61001,7 @@
61001
61001
  // Inline function 'kotlin.takeIf' call
61002
61002
  // Inline function 'kotlin.contracts.contract' call
61003
61003
  var tmp_2;
61004
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61004
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61005
61005
  // Inline function 'kotlin.collections.isNotEmpty' call
61006
61006
  // Inline function 'kotlin.collections.isEmpty' call
61007
61007
  if (!(tmp1_safe_receiver.length === 0)) {
@@ -61027,7 +61027,7 @@
61027
61027
  while (inductionVariable_0 < last_0) {
61028
61028
  var element_0 = tmp2_safe_receiver[inductionVariable_0];
61029
61029
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
61030
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61030
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61031
61031
  validatePoints($this, element_0);
61032
61032
  }
61033
61033
  tmp_4 = tmp2_safe_receiver;
@@ -61040,7 +61040,7 @@
61040
61040
  // Inline function 'kotlin.takeIf' call
61041
61041
  // Inline function 'kotlin.contracts.contract' call
61042
61042
  var tmp_6;
61043
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61043
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61044
61044
  // Inline function 'kotlin.collections.isNotEmpty' call
61045
61045
  // Inline function 'kotlin.collections.isEmpty' call
61046
61046
  if (!(tmp3_safe_receiver.length === 0)) {
@@ -61066,7 +61066,7 @@
61066
61066
  while (inductionVariable_1 < last_1) {
61067
61067
  var element_1 = tmp4_safe_receiver[inductionVariable_1];
61068
61068
  inductionVariable_1 = inductionVariable_1 + 1 | 0;
61069
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61069
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61070
61070
  validateTimeoutTime($this, element_1);
61071
61071
  }
61072
61072
  tmp_8 = tmp4_safe_receiver;
@@ -61079,7 +61079,7 @@
61079
61079
  // Inline function 'kotlin.takeIf' call
61080
61080
  // Inline function 'kotlin.contracts.contract' call
61081
61081
  var tmp_10;
61082
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61082
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61083
61083
  // Inline function 'kotlin.collections.isNotEmpty' call
61084
61084
  // Inline function 'kotlin.collections.isEmpty' call
61085
61085
  if (!(tmp5_safe_receiver.length === 0)) {
@@ -61105,7 +61105,7 @@
61105
61105
  while (inductionVariable_2 < last_2) {
61106
61106
  var element_2 = tmp6_safe_receiver[inductionVariable_2];
61107
61107
  inductionVariable_2 = inductionVariable_2 + 1 | 0;
61108
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61108
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61109
61109
  validateLeague($this, element_2);
61110
61110
  }
61111
61111
  tmp_12 = tmp6_safe_receiver;
@@ -61118,7 +61118,7 @@
61118
61118
  // Inline function 'kotlin.takeIf' call
61119
61119
  // Inline function 'kotlin.contracts.contract' call
61120
61120
  var tmp_14;
61121
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61121
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61122
61122
  // Inline function 'kotlin.collections.isNotEmpty' call
61123
61123
  // Inline function 'kotlin.collections.isEmpty' call
61124
61124
  if (!(tmp7_safe_receiver.length === 0)) {
@@ -61144,7 +61144,7 @@
61144
61144
  while (inductionVariable_3 < last_3) {
61145
61145
  var element_3 = tmp8_safe_receiver[inductionVariable_3];
61146
61146
  inductionVariable_3 = inductionVariable_3 + 1 | 0;
61147
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61147
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61148
61148
  validateRulesSetType($this, element_3);
61149
61149
  }
61150
61150
  tmp_16 = tmp8_safe_receiver;
@@ -61157,7 +61157,7 @@
61157
61157
  // Inline function 'kotlin.takeIf' call
61158
61158
  // Inline function 'kotlin.contracts.contract' call
61159
61159
  var tmp_18;
61160
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61160
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61161
61161
  // Inline function 'kotlin.collections.isNotEmpty' call
61162
61162
  // Inline function 'kotlin.collections.isEmpty' call
61163
61163
  if (!(tmp9_safe_receiver.length === 0)) {
@@ -61210,7 +61210,7 @@
61210
61210
  var tmp0_iterator = this_0.j();
61211
61211
  while (tmp0_iterator.k()) {
61212
61212
  var item = tmp0_iterator.l();
61213
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61213
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61214
61214
  var tmp$ret$39 = item.q2_1;
61215
61215
  destination.e(tmp$ret$39);
61216
61216
  }
@@ -61229,7 +61229,7 @@
61229
61229
  var tmp0_iterator_0 = this_1.j();
61230
61230
  while (tmp0_iterator_0.k()) {
61231
61231
  var item_0 = tmp0_iterator_0.l();
61232
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61232
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61233
61233
  // Inline function 'kotlin.text.lowercase' call
61234
61234
  // Inline function 'kotlin.js.asDynamic' call
61235
61235
  var tmp$ret$45 = item_0.q2_1.toLowerCase();
@@ -61506,7 +61506,11 @@
61506
61506
  var tmp$ret$0 = item.q2_1;
61507
61507
  destination.e(tmp$ret$0);
61508
61508
  }
61509
- if (!destination.v1(league)) {
61509
+ var tmp = destination;
61510
+ // Inline function 'kotlin.text.uppercase' call
61511
+ // Inline function 'kotlin.js.asDynamic' call
61512
+ var tmp$ret$4 = league.toUpperCase();
61513
+ if (!tmp.v1(tmp$ret$4)) {
61510
61514
  throw IllegalStateException_init_$Create$('Not valid league ' + league);
61511
61515
  }
61512
61516
  }
@@ -61522,7 +61526,11 @@
61522
61526
  var tmp$ret$0 = item.q2_1;
61523
61527
  destination.e(tmp$ret$0);
61524
61528
  }
61525
- if (!destination.v1(rulesSetType)) {
61529
+ var tmp = destination;
61530
+ // Inline function 'kotlin.text.uppercase' call
61531
+ // Inline function 'kotlin.js.asDynamic' call
61532
+ var tmp$ret$4 = rulesSetType.toUpperCase();
61533
+ if (!tmp.v1(tmp$ret$4)) {
61526
61534
  throw IllegalStateException_init_$Create$('Not valid rulesSetType mode ' + rulesSetType);
61527
61535
  }
61528
61536
  }
@@ -61835,7 +61843,7 @@
61835
61843
  protoOf(GameHelperImpl).mapRules = function (rules) {
61836
61844
  return mapRulesObject(this, rules);
61837
61845
  };
61838
- protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
61846
+ protoOf(GameHelperImpl).prepareLobbyConfigWithPagination = function (config) {
61839
61847
  var map = mapOfObject(config);
61840
61848
  var tmp = map.k2('limit');
61841
61849
  var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
@@ -61845,18 +61853,245 @@
61845
61853
  } else {
61846
61854
  // Inline function 'kotlin.also' call
61847
61855
  // Inline function 'kotlin.contracts.contract' call
61848
- // Inline function 'GameHelperImpl.prepareConfigObjectWithPagination.<anonymous>' call
61856
+ // Inline function 'GameHelperImpl.prepareLobbyConfigWithPagination.<anonymous>' call
61849
61857
  validateLimit(this, tmp0_safe_receiver);
61850
61858
  tmp_0 = tmp0_safe_receiver;
61851
61859
  }
61852
61860
  var limit = tmp_0;
61853
- var jsObject = prepareFilterObjectInternal(this, map);
61861
+ var jsObject = prepareLobbyFilterInternal(this, map);
61854
61862
  jsObject['limit'] = limit == null ? 20 : limit;
61855
61863
  return jsObject;
61856
61864
  };
61857
- protoOf(GameHelperImpl).prepareConfigObject = function (config) {
61865
+ protoOf(GameHelperImpl).prepareLobbyConfig = function (config) {
61858
61866
  var map = mapOfObject(config);
61859
- return prepareFilterObjectInternal(this, map);
61867
+ return prepareLobbyFilterInternal(this, map);
61868
+ };
61869
+ protoOf(GameHelperImpl).prepareLeagueConfig = function (config) {
61870
+ var map = mapOfObject(config);
61871
+ var jsObject = {};
61872
+ var tmp = map.k2('players');
61873
+ var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
61874
+ var tmp_0;
61875
+ if (tmp0_safe_receiver == null) {
61876
+ tmp_0 = null;
61877
+ } else {
61878
+ // Inline function 'kotlin.collections.onEach' call
61879
+ // Inline function 'kotlin.apply' call
61880
+ // Inline function 'kotlin.contracts.contract' call
61881
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61882
+ var inductionVariable = 0;
61883
+ var last = tmp0_safe_receiver.length;
61884
+ while (inductionVariable < last) {
61885
+ var element = tmp0_safe_receiver[inductionVariable];
61886
+ inductionVariable = inductionVariable + 1 | 0;
61887
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61888
+ validatePlayers(this, element);
61889
+ }
61890
+ tmp_0 = tmp0_safe_receiver;
61891
+ }
61892
+ var tmp1_safe_receiver = tmp_0;
61893
+ var tmp_1;
61894
+ if (tmp1_safe_receiver == null) {
61895
+ tmp_1 = null;
61896
+ } else {
61897
+ // Inline function 'kotlin.takeIf' call
61898
+ // Inline function 'kotlin.contracts.contract' call
61899
+ var tmp_2;
61900
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61901
+ // Inline function 'kotlin.collections.isNotEmpty' call
61902
+ // Inline function 'kotlin.collections.isEmpty' call
61903
+ if (!(tmp1_safe_receiver.length === 0)) {
61904
+ tmp_2 = tmp1_safe_receiver;
61905
+ } else {
61906
+ tmp_2 = null;
61907
+ }
61908
+ tmp_1 = tmp_2;
61909
+ }
61910
+ var players = tmp_1;
61911
+ var tmp_3 = map.k2('points');
61912
+ var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
61913
+ var tmp_4;
61914
+ if (tmp2_safe_receiver == null) {
61915
+ tmp_4 = null;
61916
+ } else {
61917
+ // Inline function 'kotlin.collections.onEach' call
61918
+ // Inline function 'kotlin.apply' call
61919
+ // Inline function 'kotlin.contracts.contract' call
61920
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61921
+ var inductionVariable_0 = 0;
61922
+ var last_0 = tmp2_safe_receiver.length;
61923
+ while (inductionVariable_0 < last_0) {
61924
+ var element_0 = tmp2_safe_receiver[inductionVariable_0];
61925
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
61926
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61927
+ validatePoints(this, element_0);
61928
+ }
61929
+ tmp_4 = tmp2_safe_receiver;
61930
+ }
61931
+ var tmp3_safe_receiver = tmp_4;
61932
+ var tmp_5;
61933
+ if (tmp3_safe_receiver == null) {
61934
+ tmp_5 = null;
61935
+ } else {
61936
+ // Inline function 'kotlin.takeIf' call
61937
+ // Inline function 'kotlin.contracts.contract' call
61938
+ var tmp_6;
61939
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61940
+ // Inline function 'kotlin.collections.isNotEmpty' call
61941
+ // Inline function 'kotlin.collections.isEmpty' call
61942
+ if (!(tmp3_safe_receiver.length === 0)) {
61943
+ tmp_6 = tmp3_safe_receiver;
61944
+ } else {
61945
+ tmp_6 = null;
61946
+ }
61947
+ tmp_5 = tmp_6;
61948
+ }
61949
+ var points = tmp_5;
61950
+ var tmp_7 = map.k2('timeoutTime');
61951
+ var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
61952
+ var tmp_8;
61953
+ if (tmp4_safe_receiver == null) {
61954
+ tmp_8 = null;
61955
+ } else {
61956
+ // Inline function 'kotlin.collections.onEach' call
61957
+ // Inline function 'kotlin.apply' call
61958
+ // Inline function 'kotlin.contracts.contract' call
61959
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61960
+ var inductionVariable_1 = 0;
61961
+ var last_1 = tmp4_safe_receiver.length;
61962
+ while (inductionVariable_1 < last_1) {
61963
+ var element_1 = tmp4_safe_receiver[inductionVariable_1];
61964
+ inductionVariable_1 = inductionVariable_1 + 1 | 0;
61965
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61966
+ validateTimeoutTime(this, element_1);
61967
+ }
61968
+ tmp_8 = tmp4_safe_receiver;
61969
+ }
61970
+ var tmp5_safe_receiver = tmp_8;
61971
+ var tmp_9;
61972
+ if (tmp5_safe_receiver == null) {
61973
+ tmp_9 = null;
61974
+ } else {
61975
+ // Inline function 'kotlin.takeIf' call
61976
+ // Inline function 'kotlin.contracts.contract' call
61977
+ var tmp_10;
61978
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61979
+ // Inline function 'kotlin.collections.isNotEmpty' call
61980
+ // Inline function 'kotlin.collections.isEmpty' call
61981
+ if (!(tmp5_safe_receiver.length === 0)) {
61982
+ tmp_10 = tmp5_safe_receiver;
61983
+ } else {
61984
+ tmp_10 = null;
61985
+ }
61986
+ tmp_9 = tmp_10;
61987
+ }
61988
+ var timeoutTime = tmp_9;
61989
+ var tmp_11 = map.k2('league');
61990
+ var tmp6_safe_receiver = (!(tmp_11 == null) ? typeof tmp_11 === 'string' : false) ? tmp_11 : null;
61991
+ var tmp_12;
61992
+ if (tmp6_safe_receiver == null) {
61993
+ tmp_12 = null;
61994
+ } else {
61995
+ // Inline function 'kotlin.apply' call
61996
+ // Inline function 'kotlin.contracts.contract' call
61997
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61998
+ validateLeague(this, tmp6_safe_receiver);
61999
+ tmp_12 = tmp6_safe_receiver;
62000
+ }
62001
+ var league = tmp_12;
62002
+ var tmp_13 = map.k2('rulesPreset');
62003
+ var tmp7_safe_receiver = (tmp_13 == null ? true : isArray(tmp_13)) ? tmp_13 : null;
62004
+ var tmp_14;
62005
+ if (tmp7_safe_receiver == null) {
62006
+ tmp_14 = null;
62007
+ } else {
62008
+ // Inline function 'kotlin.collections.onEach' call
62009
+ // Inline function 'kotlin.apply' call
62010
+ // Inline function 'kotlin.contracts.contract' call
62011
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
62012
+ var inductionVariable_2 = 0;
62013
+ var last_2 = tmp7_safe_receiver.length;
62014
+ while (inductionVariable_2 < last_2) {
62015
+ var element_2 = tmp7_safe_receiver[inductionVariable_2];
62016
+ inductionVariable_2 = inductionVariable_2 + 1 | 0;
62017
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
62018
+ validateRulesSetType(this, element_2);
62019
+ }
62020
+ tmp_14 = tmp7_safe_receiver;
62021
+ }
62022
+ var tmp8_safe_receiver = tmp_14;
62023
+ var tmp_15;
62024
+ if (tmp8_safe_receiver == null) {
62025
+ tmp_15 = null;
62026
+ } else {
62027
+ // Inline function 'kotlin.takeIf' call
62028
+ // Inline function 'kotlin.contracts.contract' call
62029
+ var tmp_16;
62030
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
62031
+ // Inline function 'kotlin.collections.isNotEmpty' call
62032
+ // Inline function 'kotlin.collections.isEmpty' call
62033
+ if (!(tmp8_safe_receiver.length === 0)) {
62034
+ tmp_16 = tmp8_safe_receiver;
62035
+ } else {
62036
+ tmp_16 = null;
62037
+ }
62038
+ tmp_15 = tmp_16;
62039
+ }
62040
+ var rulesPreset = tmp_15;
62041
+ var tmp_17 = map.k2('isChatEnabled');
62042
+ var isChatEnabled = (!(tmp_17 == null) ? typeof tmp_17 === 'boolean' : false) ? tmp_17 : null;
62043
+ var tmp_18;
62044
+ if (players == null) {
62045
+ // Inline function 'kotlin.arrayOf' call
62046
+ // Inline function 'kotlin.js.unsafeCast' call
62047
+ // Inline function 'kotlin.js.asDynamic' call
62048
+ tmp_18 = [2, 3, 4, 5];
62049
+ } else {
62050
+ tmp_18 = players;
62051
+ }
62052
+ jsObject['players'] = tmp_18;
62053
+ var tmp_19;
62054
+ if (points == null) {
62055
+ // Inline function 'kotlin.arrayOf' call
62056
+ // Inline function 'kotlin.js.unsafeCast' call
62057
+ // Inline function 'kotlin.js.asDynamic' call
62058
+ tmp_19 = [301, 501, 1001];
62059
+ } else {
62060
+ tmp_19 = points;
62061
+ }
62062
+ jsObject['points'] = tmp_19;
62063
+ var tmp_20;
62064
+ if (timeoutTime == null) {
62065
+ // Inline function 'kotlin.arrayOf' call
62066
+ // Inline function 'kotlin.js.unsafeCast' call
62067
+ // Inline function 'kotlin.js.asDynamic' call
62068
+ tmp_20 = [15, 30, 45];
62069
+ } else {
62070
+ tmp_20 = timeoutTime;
62071
+ }
62072
+ jsObject['timeoutTime'] = tmp_20;
62073
+ var tmp_21;
62074
+ if (rulesPreset == null) {
62075
+ // Inline function 'kotlin.collections.toTypedArray' call
62076
+ // Inline function 'kotlin.collections.map' call
62077
+ var this_0 = get_entries_3();
62078
+ // Inline function 'kotlin.collections.mapTo' call
62079
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
62080
+ var tmp0_iterator = this_0.j();
62081
+ while (tmp0_iterator.k()) {
62082
+ var item = tmp0_iterator.l();
62083
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
62084
+ var tmp$ret$34 = item.q2_1;
62085
+ destination.e(tmp$ret$34);
62086
+ }
62087
+ tmp_21 = copyToArray(destination);
62088
+ } else {
62089
+ tmp_21 = rulesPreset;
62090
+ }
62091
+ jsObject['rulesPreset'] = tmp_21;
62092
+ jsObject['league'] = league;
62093
+ jsObject['isChatEnabled'] = isChatEnabled;
62094
+ return jsObject;
61860
62095
  };
61861
62096
  protoOf(GameHelperImpl).isValidConfigObject = function (config) {
61862
62097
  var map = mapOfObject(config);
@@ -61927,7 +62162,10 @@
61927
62162
  return tmp;
61928
62163
  };
61929
62164
  protoOf(GameHelperImpl).mapRulesSetType = function (name) {
61930
- return valueOf_6(name);
62165
+ // Inline function 'kotlin.text.uppercase' call
62166
+ // Inline function 'kotlin.js.asDynamic' call
62167
+ var tmp$ret$1 = name.toUpperCase();
62168
+ return valueOf_6(tmp$ret$1);
61931
62169
  };
61932
62170
  protoOf(GameHelperImpl).mapToLeague = function (name) {
61933
62171
  // Inline function 'kotlin.text.uppercase' call