raspberry_games_server_game_logic 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.
@@ -324,7 +324,7 @@
324
324
  function addFormatStructureForTime(structure) {
325
325
  this.c5a(structure);
326
326
  }
327
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
327
+ initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
328
328
  function offsetHours$default(padding, $super) {
329
329
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
330
330
  var tmp;
@@ -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, WithDate, WithTime]);
380
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithUtcOffset, WithTime, WithDate]);
381
381
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
382
382
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
383
383
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
@@ -376,7 +376,7 @@
376
376
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
377
377
  //endregion
378
378
  function GameEngineConfig() {
379
- this.version = '1.8.325';
379
+ this.version = '1.8.326';
380
380
  }
381
381
  protoOf(GameEngineConfig).s2z = function () {
382
382
  return this.version;
@@ -55516,7 +55516,7 @@
55516
55516
  }
55517
55517
  function GameHelper() {
55518
55518
  }
55519
- function prepareFilterObjectInternal($this, map) {
55519
+ function prepareLobbyFilterInternal($this, map) {
55520
55520
  var jsObject = {};
55521
55521
  var tmp = map.k2('players');
55522
55522
  var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
@@ -55533,7 +55533,7 @@
55533
55533
  while (inductionVariable < last) {
55534
55534
  var element = tmp0_safe_receiver[inductionVariable];
55535
55535
  inductionVariable = inductionVariable + 1 | 0;
55536
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55536
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55537
55537
  validatePlayers($this, element);
55538
55538
  }
55539
55539
  tmp_0 = tmp0_safe_receiver;
@@ -55546,7 +55546,7 @@
55546
55546
  // Inline function 'kotlin.takeIf' call
55547
55547
  // Inline function 'kotlin.contracts.contract' call
55548
55548
  var tmp_2;
55549
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55549
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55550
55550
  // Inline function 'kotlin.collections.isNotEmpty' call
55551
55551
  // Inline function 'kotlin.collections.isEmpty' call
55552
55552
  if (!(tmp1_safe_receiver.length === 0)) {
@@ -55572,7 +55572,7 @@
55572
55572
  while (inductionVariable_0 < last_0) {
55573
55573
  var element_0 = tmp2_safe_receiver[inductionVariable_0];
55574
55574
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
55575
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55575
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55576
55576
  validatePoints($this, element_0);
55577
55577
  }
55578
55578
  tmp_4 = tmp2_safe_receiver;
@@ -55585,7 +55585,7 @@
55585
55585
  // Inline function 'kotlin.takeIf' call
55586
55586
  // Inline function 'kotlin.contracts.contract' call
55587
55587
  var tmp_6;
55588
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55588
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55589
55589
  // Inline function 'kotlin.collections.isNotEmpty' call
55590
55590
  // Inline function 'kotlin.collections.isEmpty' call
55591
55591
  if (!(tmp3_safe_receiver.length === 0)) {
@@ -55611,7 +55611,7 @@
55611
55611
  while (inductionVariable_1 < last_1) {
55612
55612
  var element_1 = tmp4_safe_receiver[inductionVariable_1];
55613
55613
  inductionVariable_1 = inductionVariable_1 + 1 | 0;
55614
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55614
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55615
55615
  validateTimeoutTime($this, element_1);
55616
55616
  }
55617
55617
  tmp_8 = tmp4_safe_receiver;
@@ -55624,7 +55624,7 @@
55624
55624
  // Inline function 'kotlin.takeIf' call
55625
55625
  // Inline function 'kotlin.contracts.contract' call
55626
55626
  var tmp_10;
55627
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55627
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55628
55628
  // Inline function 'kotlin.collections.isNotEmpty' call
55629
55629
  // Inline function 'kotlin.collections.isEmpty' call
55630
55630
  if (!(tmp5_safe_receiver.length === 0)) {
@@ -55650,7 +55650,7 @@
55650
55650
  while (inductionVariable_2 < last_2) {
55651
55651
  var element_2 = tmp6_safe_receiver[inductionVariable_2];
55652
55652
  inductionVariable_2 = inductionVariable_2 + 1 | 0;
55653
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55653
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55654
55654
  validateLeague($this, element_2);
55655
55655
  }
55656
55656
  tmp_12 = tmp6_safe_receiver;
@@ -55663,7 +55663,7 @@
55663
55663
  // Inline function 'kotlin.takeIf' call
55664
55664
  // Inline function 'kotlin.contracts.contract' call
55665
55665
  var tmp_14;
55666
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55666
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55667
55667
  // Inline function 'kotlin.collections.isNotEmpty' call
55668
55668
  // Inline function 'kotlin.collections.isEmpty' call
55669
55669
  if (!(tmp7_safe_receiver.length === 0)) {
@@ -55689,7 +55689,7 @@
55689
55689
  while (inductionVariable_3 < last_3) {
55690
55690
  var element_3 = tmp8_safe_receiver[inductionVariable_3];
55691
55691
  inductionVariable_3 = inductionVariable_3 + 1 | 0;
55692
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55692
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55693
55693
  validateRulesSetType($this, element_3);
55694
55694
  }
55695
55695
  tmp_16 = tmp8_safe_receiver;
@@ -55702,7 +55702,7 @@
55702
55702
  // Inline function 'kotlin.takeIf' call
55703
55703
  // Inline function 'kotlin.contracts.contract' call
55704
55704
  var tmp_18;
55705
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55705
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55706
55706
  // Inline function 'kotlin.collections.isNotEmpty' call
55707
55707
  // Inline function 'kotlin.collections.isEmpty' call
55708
55708
  if (!(tmp9_safe_receiver.length === 0)) {
@@ -55755,7 +55755,7 @@
55755
55755
  var tmp0_iterator = this_0.j();
55756
55756
  while (tmp0_iterator.k()) {
55757
55757
  var item = tmp0_iterator.l();
55758
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55758
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55759
55759
  var tmp$ret$39 = item.q2_1;
55760
55760
  destination.e(tmp$ret$39);
55761
55761
  }
@@ -55774,7 +55774,7 @@
55774
55774
  var tmp0_iterator_0 = this_1.j();
55775
55775
  while (tmp0_iterator_0.k()) {
55776
55776
  var item_0 = tmp0_iterator_0.l();
55777
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
55777
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
55778
55778
  // Inline function 'kotlin.text.lowercase' call
55779
55779
  // Inline function 'kotlin.js.asDynamic' call
55780
55780
  var tmp$ret$45 = item_0.q2_1.toLowerCase();
@@ -56051,7 +56051,11 @@
56051
56051
  var tmp$ret$0 = item.q2_1;
56052
56052
  destination.e(tmp$ret$0);
56053
56053
  }
56054
- if (!destination.v1(league)) {
56054
+ var tmp = destination;
56055
+ // Inline function 'kotlin.text.uppercase' call
56056
+ // Inline function 'kotlin.js.asDynamic' call
56057
+ var tmp$ret$4 = league.toUpperCase();
56058
+ if (!tmp.v1(tmp$ret$4)) {
56055
56059
  throw IllegalStateException_init_$Create$('Not valid league ' + league);
56056
56060
  }
56057
56061
  }
@@ -56067,7 +56071,11 @@
56067
56071
  var tmp$ret$0 = item.q2_1;
56068
56072
  destination.e(tmp$ret$0);
56069
56073
  }
56070
- if (!destination.v1(rulesSetType)) {
56074
+ var tmp = destination;
56075
+ // Inline function 'kotlin.text.uppercase' call
56076
+ // Inline function 'kotlin.js.asDynamic' call
56077
+ var tmp$ret$4 = rulesSetType.toUpperCase();
56078
+ if (!tmp.v1(tmp$ret$4)) {
56071
56079
  throw IllegalStateException_init_$Create$('Not valid rulesSetType mode ' + rulesSetType);
56072
56080
  }
56073
56081
  }
@@ -56380,7 +56388,7 @@
56380
56388
  protoOf(GameHelperImpl).mapRules = function (rules) {
56381
56389
  return mapRulesObject(this, rules);
56382
56390
  };
56383
- protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
56391
+ protoOf(GameHelperImpl).prepareLobbyConfigWithPagination = function (config) {
56384
56392
  var map = mapOfObject(config);
56385
56393
  var tmp = map.k2('limit');
56386
56394
  var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
@@ -56390,18 +56398,245 @@
56390
56398
  } else {
56391
56399
  // Inline function 'kotlin.also' call
56392
56400
  // Inline function 'kotlin.contracts.contract' call
56393
- // Inline function 'GameHelperImpl.prepareConfigObjectWithPagination.<anonymous>' call
56401
+ // Inline function 'GameHelperImpl.prepareLobbyConfigWithPagination.<anonymous>' call
56394
56402
  validateLimit(this, tmp0_safe_receiver);
56395
56403
  tmp_0 = tmp0_safe_receiver;
56396
56404
  }
56397
56405
  var limit = tmp_0;
56398
- var jsObject = prepareFilterObjectInternal(this, map);
56406
+ var jsObject = prepareLobbyFilterInternal(this, map);
56399
56407
  jsObject['limit'] = limit == null ? 20 : limit;
56400
56408
  return jsObject;
56401
56409
  };
56402
- protoOf(GameHelperImpl).prepareConfigObject = function (config) {
56410
+ protoOf(GameHelperImpl).prepareLobbyConfig = function (config) {
56403
56411
  var map = mapOfObject(config);
56404
- return prepareFilterObjectInternal(this, map);
56412
+ return prepareLobbyFilterInternal(this, map);
56413
+ };
56414
+ protoOf(GameHelperImpl).prepareLeagueConfig = function (config) {
56415
+ var map = mapOfObject(config);
56416
+ var jsObject = {};
56417
+ var tmp = map.k2('players');
56418
+ var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
56419
+ var tmp_0;
56420
+ if (tmp0_safe_receiver == null) {
56421
+ tmp_0 = null;
56422
+ } else {
56423
+ // Inline function 'kotlin.collections.onEach' call
56424
+ // Inline function 'kotlin.apply' call
56425
+ // Inline function 'kotlin.contracts.contract' call
56426
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
56427
+ var inductionVariable = 0;
56428
+ var last = tmp0_safe_receiver.length;
56429
+ while (inductionVariable < last) {
56430
+ var element = tmp0_safe_receiver[inductionVariable];
56431
+ inductionVariable = inductionVariable + 1 | 0;
56432
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56433
+ validatePlayers(this, element);
56434
+ }
56435
+ tmp_0 = tmp0_safe_receiver;
56436
+ }
56437
+ var tmp1_safe_receiver = tmp_0;
56438
+ var tmp_1;
56439
+ if (tmp1_safe_receiver == null) {
56440
+ tmp_1 = null;
56441
+ } else {
56442
+ // Inline function 'kotlin.takeIf' call
56443
+ // Inline function 'kotlin.contracts.contract' call
56444
+ var tmp_2;
56445
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56446
+ // Inline function 'kotlin.collections.isNotEmpty' call
56447
+ // Inline function 'kotlin.collections.isEmpty' call
56448
+ if (!(tmp1_safe_receiver.length === 0)) {
56449
+ tmp_2 = tmp1_safe_receiver;
56450
+ } else {
56451
+ tmp_2 = null;
56452
+ }
56453
+ tmp_1 = tmp_2;
56454
+ }
56455
+ var players = tmp_1;
56456
+ var tmp_3 = map.k2('points');
56457
+ var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
56458
+ var tmp_4;
56459
+ if (tmp2_safe_receiver == null) {
56460
+ tmp_4 = null;
56461
+ } else {
56462
+ // Inline function 'kotlin.collections.onEach' call
56463
+ // Inline function 'kotlin.apply' call
56464
+ // Inline function 'kotlin.contracts.contract' call
56465
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
56466
+ var inductionVariable_0 = 0;
56467
+ var last_0 = tmp2_safe_receiver.length;
56468
+ while (inductionVariable_0 < last_0) {
56469
+ var element_0 = tmp2_safe_receiver[inductionVariable_0];
56470
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
56471
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56472
+ validatePoints(this, element_0);
56473
+ }
56474
+ tmp_4 = tmp2_safe_receiver;
56475
+ }
56476
+ var tmp3_safe_receiver = tmp_4;
56477
+ var tmp_5;
56478
+ if (tmp3_safe_receiver == null) {
56479
+ tmp_5 = null;
56480
+ } else {
56481
+ // Inline function 'kotlin.takeIf' call
56482
+ // Inline function 'kotlin.contracts.contract' call
56483
+ var tmp_6;
56484
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56485
+ // Inline function 'kotlin.collections.isNotEmpty' call
56486
+ // Inline function 'kotlin.collections.isEmpty' call
56487
+ if (!(tmp3_safe_receiver.length === 0)) {
56488
+ tmp_6 = tmp3_safe_receiver;
56489
+ } else {
56490
+ tmp_6 = null;
56491
+ }
56492
+ tmp_5 = tmp_6;
56493
+ }
56494
+ var points = tmp_5;
56495
+ var tmp_7 = map.k2('timeoutTime');
56496
+ var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
56497
+ var tmp_8;
56498
+ if (tmp4_safe_receiver == null) {
56499
+ tmp_8 = null;
56500
+ } else {
56501
+ // Inline function 'kotlin.collections.onEach' call
56502
+ // Inline function 'kotlin.apply' call
56503
+ // Inline function 'kotlin.contracts.contract' call
56504
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
56505
+ var inductionVariable_1 = 0;
56506
+ var last_1 = tmp4_safe_receiver.length;
56507
+ while (inductionVariable_1 < last_1) {
56508
+ var element_1 = tmp4_safe_receiver[inductionVariable_1];
56509
+ inductionVariable_1 = inductionVariable_1 + 1 | 0;
56510
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56511
+ validateTimeoutTime(this, element_1);
56512
+ }
56513
+ tmp_8 = tmp4_safe_receiver;
56514
+ }
56515
+ var tmp5_safe_receiver = tmp_8;
56516
+ var tmp_9;
56517
+ if (tmp5_safe_receiver == null) {
56518
+ tmp_9 = null;
56519
+ } else {
56520
+ // Inline function 'kotlin.takeIf' call
56521
+ // Inline function 'kotlin.contracts.contract' call
56522
+ var tmp_10;
56523
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56524
+ // Inline function 'kotlin.collections.isNotEmpty' call
56525
+ // Inline function 'kotlin.collections.isEmpty' call
56526
+ if (!(tmp5_safe_receiver.length === 0)) {
56527
+ tmp_10 = tmp5_safe_receiver;
56528
+ } else {
56529
+ tmp_10 = null;
56530
+ }
56531
+ tmp_9 = tmp_10;
56532
+ }
56533
+ var timeoutTime = tmp_9;
56534
+ var tmp_11 = map.k2('league');
56535
+ var tmp6_safe_receiver = (!(tmp_11 == null) ? typeof tmp_11 === 'string' : false) ? tmp_11 : null;
56536
+ var tmp_12;
56537
+ if (tmp6_safe_receiver == null) {
56538
+ tmp_12 = null;
56539
+ } else {
56540
+ // Inline function 'kotlin.apply' call
56541
+ // Inline function 'kotlin.contracts.contract' call
56542
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56543
+ validateLeague(this, tmp6_safe_receiver);
56544
+ tmp_12 = tmp6_safe_receiver;
56545
+ }
56546
+ var league = tmp_12;
56547
+ var tmp_13 = map.k2('rulesPreset');
56548
+ var tmp7_safe_receiver = (tmp_13 == null ? true : isArray(tmp_13)) ? tmp_13 : null;
56549
+ var tmp_14;
56550
+ if (tmp7_safe_receiver == null) {
56551
+ tmp_14 = null;
56552
+ } else {
56553
+ // Inline function 'kotlin.collections.onEach' call
56554
+ // Inline function 'kotlin.apply' call
56555
+ // Inline function 'kotlin.contracts.contract' call
56556
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
56557
+ var inductionVariable_2 = 0;
56558
+ var last_2 = tmp7_safe_receiver.length;
56559
+ while (inductionVariable_2 < last_2) {
56560
+ var element_2 = tmp7_safe_receiver[inductionVariable_2];
56561
+ inductionVariable_2 = inductionVariable_2 + 1 | 0;
56562
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56563
+ validateRulesSetType(this, element_2);
56564
+ }
56565
+ tmp_14 = tmp7_safe_receiver;
56566
+ }
56567
+ var tmp8_safe_receiver = tmp_14;
56568
+ var tmp_15;
56569
+ if (tmp8_safe_receiver == null) {
56570
+ tmp_15 = null;
56571
+ } else {
56572
+ // Inline function 'kotlin.takeIf' call
56573
+ // Inline function 'kotlin.contracts.contract' call
56574
+ var tmp_16;
56575
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56576
+ // Inline function 'kotlin.collections.isNotEmpty' call
56577
+ // Inline function 'kotlin.collections.isEmpty' call
56578
+ if (!(tmp8_safe_receiver.length === 0)) {
56579
+ tmp_16 = tmp8_safe_receiver;
56580
+ } else {
56581
+ tmp_16 = null;
56582
+ }
56583
+ tmp_15 = tmp_16;
56584
+ }
56585
+ var rulesPreset = tmp_15;
56586
+ var tmp_17 = map.k2('isChatEnabled');
56587
+ var isChatEnabled = (!(tmp_17 == null) ? typeof tmp_17 === 'boolean' : false) ? tmp_17 : null;
56588
+ var tmp_18;
56589
+ if (players == null) {
56590
+ // Inline function 'kotlin.arrayOf' call
56591
+ // Inline function 'kotlin.js.unsafeCast' call
56592
+ // Inline function 'kotlin.js.asDynamic' call
56593
+ tmp_18 = [2, 3, 4, 5];
56594
+ } else {
56595
+ tmp_18 = players;
56596
+ }
56597
+ jsObject['players'] = tmp_18;
56598
+ var tmp_19;
56599
+ if (points == null) {
56600
+ // Inline function 'kotlin.arrayOf' call
56601
+ // Inline function 'kotlin.js.unsafeCast' call
56602
+ // Inline function 'kotlin.js.asDynamic' call
56603
+ tmp_19 = [301, 501, 1001];
56604
+ } else {
56605
+ tmp_19 = points;
56606
+ }
56607
+ jsObject['points'] = tmp_19;
56608
+ var tmp_20;
56609
+ if (timeoutTime == null) {
56610
+ // Inline function 'kotlin.arrayOf' call
56611
+ // Inline function 'kotlin.js.unsafeCast' call
56612
+ // Inline function 'kotlin.js.asDynamic' call
56613
+ tmp_20 = [15, 30, 45];
56614
+ } else {
56615
+ tmp_20 = timeoutTime;
56616
+ }
56617
+ jsObject['timeoutTime'] = tmp_20;
56618
+ var tmp_21;
56619
+ if (rulesPreset == null) {
56620
+ // Inline function 'kotlin.collections.toTypedArray' call
56621
+ // Inline function 'kotlin.collections.map' call
56622
+ var this_0 = get_entries_3();
56623
+ // Inline function 'kotlin.collections.mapTo' call
56624
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
56625
+ var tmp0_iterator = this_0.j();
56626
+ while (tmp0_iterator.k()) {
56627
+ var item = tmp0_iterator.l();
56628
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
56629
+ var tmp$ret$34 = item.q2_1;
56630
+ destination.e(tmp$ret$34);
56631
+ }
56632
+ tmp_21 = copyToArray(destination);
56633
+ } else {
56634
+ tmp_21 = rulesPreset;
56635
+ }
56636
+ jsObject['rulesPreset'] = tmp_21;
56637
+ jsObject['league'] = league;
56638
+ jsObject['isChatEnabled'] = isChatEnabled;
56639
+ return jsObject;
56405
56640
  };
56406
56641
  protoOf(GameHelperImpl).isValidConfigObject = function (config) {
56407
56642
  var map = mapOfObject(config);
@@ -56472,7 +56707,10 @@
56472
56707
  return tmp;
56473
56708
  };
56474
56709
  protoOf(GameHelperImpl).mapRulesSetType = function (name) {
56475
- return valueOf_6(name);
56710
+ // Inline function 'kotlin.text.uppercase' call
56711
+ // Inline function 'kotlin.js.asDynamic' call
56712
+ var tmp$ret$1 = name.toUpperCase();
56713
+ return valueOf_6(tmp$ret$1);
56476
56714
  };
56477
56715
  protoOf(GameHelperImpl).mapToLeague = function (name) {
56478
56716
  // Inline function 'kotlin.text.uppercase' call