game_client_logic_deb 1.8.185 → 1.8.225

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.
Files changed (60) hide show
  1. package/Kosi-Kaverit-kaverit.js +82 -82
  2. package/Kosi-Kaverit-kaverit.js.map +1 -1
  3. package/Kosi-Kodein-kodein-di.js +648 -648
  4. package/Kosi-Kodein-kodein-di.js.map +1 -1
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js +1591 -1536
  6. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  7. package/Logic_Debertz-core.js +1821 -1632
  8. package/Logic_Debertz-core.js.map +1 -1
  9. package/Logic_Debertz-engine.js +17764 -15850
  10. package/Logic_Debertz-engine.js.map +1 -1
  11. package/Logic_Debertz-game_client.d.ts +80 -26
  12. package/Logic_Debertz-game_client.js +5672 -5188
  13. package/Logic_Debertz-game_client.js.map +1 -1
  14. package/kotlin-kotlin-stdlib.js +3448 -2616
  15. package/kotlin-kotlin-stdlib.js.map +1 -1
  16. package/kotlin-kotlinx-atomicfu-runtime.js +3 -3
  17. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +3 -3
  18. package/kotlinx-atomicfu.js +66 -66
  19. package/kotlinx-atomicfu.js.map +1 -1
  20. package/kotlinx-coroutines-core.js +3845 -3802
  21. package/kotlinx-coroutines-core.js.map +1 -1
  22. package/kotlinx-io-kotlinx-io-bytestring.js +3 -3
  23. package/kotlinx-io-kotlinx-io-core.js +278 -278
  24. package/kotlinx-io-kotlinx-io-core.js.map +1 -1
  25. package/kotlinx-serialization-kotlinx-serialization-core.js +2333 -2246
  26. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  27. package/kotlinx-serialization-kotlinx-serialization-json.js +2086 -1742
  28. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  29. package/ktor-ktor-client-content-negotiation.js +228 -228
  30. package/ktor-ktor-client-core.js +2551 -2523
  31. package/ktor-ktor-client-core.js.map +1 -1
  32. package/ktor-ktor-client-js.js +3 -3
  33. package/ktor-ktor-client-logging.js +580 -556
  34. package/ktor-ktor-client-logging.js.map +1 -1
  35. package/ktor-ktor-events.js +17 -17
  36. package/ktor-ktor-http.js +766 -744
  37. package/ktor-ktor-http.js.map +1 -1
  38. package/ktor-ktor-io.js +1639 -1642
  39. package/ktor-ktor-io.js.map +1 -1
  40. package/ktor-ktor-serialization-kotlinx-json.js +15 -15
  41. package/ktor-ktor-serialization-kotlinx.js +325 -280
  42. package/ktor-ktor-serialization-kotlinx.js.map +1 -1
  43. package/ktor-ktor-serialization.js +155 -130
  44. package/ktor-ktor-serialization.js.map +1 -1
  45. package/ktor-ktor-utils.js +718 -718
  46. package/ktor-ktor-utils.js.map +1 -1
  47. package/ktor-ktor-websocket-serialization.js +3 -3
  48. package/ktor-ktor-websockets.js +64 -64
  49. package/ktor-ktor-websockets.js.map +1 -1
  50. package/package.json +1 -1
  51. package/raspberry-cardgame-lib-core.js +344 -437
  52. package/raspberry-cardgame-lib-core.js.map +1 -1
  53. package/raspberry-cardgame-lib-logger.js +116 -101
  54. package/raspberry-cardgame-lib-logger.js.map +1 -1
  55. package/raspberry-cardgame-lib-random.js +1300 -990
  56. package/raspberry-cardgame-lib-random.js.map +1 -1
  57. package/secure-random-secure-random.js +22 -22
  58. package/secure-random-secure-random.js.map +1 -1
  59. package/uuid.js +33 -33
  60. package/uuid.js.map +1 -1
@@ -1,148 +1,147 @@
1
- (function (root, factory) {
1
+ (function (factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './raspberry-cardgame-lib-random.js', './kotlinx-coroutines-core.js', './Kotlin-DateTime-library-kotlinx-datetime.js'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './raspberry-cardgame-lib-random.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./raspberry-cardgame-lib-random.js'), require('./kotlinx-coroutines-core.js'), require('./Kotlin-DateTime-library-kotlinx-datetime.js'));
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./raspberry-cardgame-lib-random.js'));
6
6
  else {
7
- if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
8
  throw new Error("Error loading module 'raspberry-cardgame-lib-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'raspberry-cardgame-lib-core'.");
9
9
  }
10
- if (typeof this['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
10
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
11
11
  throw new Error("Error loading module 'raspberry-cardgame-lib-core'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'raspberry-cardgame-lib-core'.");
12
12
  }
13
- if (typeof this['raspberry-cardgame-lib-random'] === 'undefined') {
13
+ if (typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined') {
14
14
  throw new Error("Error loading module 'raspberry-cardgame-lib-core'. Its dependency 'raspberry-cardgame-lib-random' was not found. Please, check whether 'raspberry-cardgame-lib-random' is loaded prior to 'raspberry-cardgame-lib-core'.");
15
15
  }
16
- if (typeof this['kotlinx-coroutines-core'] === 'undefined') {
17
- throw new Error("Error loading module 'raspberry-cardgame-lib-core'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'raspberry-cardgame-lib-core'.");
18
- }
19
- if (typeof this['Kotlin-DateTime-library-kotlinx-datetime'] === 'undefined') {
20
- throw new Error("Error loading module 'raspberry-cardgame-lib-core'. Its dependency 'Kotlin-DateTime-library-kotlinx-datetime' was not found. Please, check whether 'Kotlin-DateTime-library-kotlinx-datetime' is loaded prior to 'raspberry-cardgame-lib-core'.");
21
- }
22
- root['raspberry-cardgame-lib-core'] = factory(typeof this['raspberry-cardgame-lib-core'] === 'undefined' ? {} : this['raspberry-cardgame-lib-core'], this['kotlin-kotlin-stdlib'], this['kotlinx-serialization-kotlinx-serialization-core'], this['raspberry-cardgame-lib-random'], this['kotlinx-coroutines-core'], this['Kotlin-DateTime-library-kotlinx-datetime']);
16
+ globalThis['raspberry-cardgame-lib-core'] = factory(typeof globalThis['raspberry-cardgame-lib-core'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['raspberry-cardgame-lib-random']);
23
17
  }
24
- }(globalThis, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_raspberryapps_cardgame_random, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_datetime) {
18
+ }(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_raspberryapps_cardgame_random) {
25
19
  'use strict';
26
20
  //region block: imports
27
21
  var imul = Math.imul;
28
- var protoOf = kotlin_kotlin.$_$.oc;
29
- var initMetadataForObject = kotlin_kotlin.$_$.sb;
30
- var defineProp = kotlin_kotlin.$_$.eb;
31
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
32
- var Unit_instance = kotlin_kotlin.$_$.l5;
33
- var THROW_CCE = kotlin_kotlin.$_$.og;
34
- var Comparator = kotlin_kotlin.$_$.ag;
22
+ var protoOf = kotlin_kotlin.$_$.sc;
23
+ var initMetadataForObject = kotlin_kotlin.$_$.wb;
24
+ var defineProp = kotlin_kotlin.$_$.ib;
25
+ var THROW_CCE = kotlin_kotlin.$_$.tg;
26
+ var Comparator = kotlin_kotlin.$_$.fg;
35
27
  var VOID = kotlin_kotlin.$_$.f;
36
- var take = kotlin_kotlin.$_$.k9;
37
- var toList = kotlin_kotlin.$_$.o9;
38
- var takeLast = kotlin_kotlin.$_$.j9;
39
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.mh;
40
- var initMetadataForCompanion = kotlin_kotlin.$_$.ob;
28
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
29
+ var Unit_instance = kotlin_kotlin.$_$.n5;
30
+ var take = kotlin_kotlin.$_$.m9;
31
+ var toList = kotlin_kotlin.$_$.q9;
32
+ var takeLast = kotlin_kotlin.$_$.l9;
33
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.rh;
34
+ var initMetadataForCompanion = kotlin_kotlin.$_$.sb;
41
35
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.v1;
42
- var Enum = kotlin_kotlin.$_$.dg;
43
- var initMetadataForClass = kotlin_kotlin.$_$.nb;
44
- var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
45
- var enumEntries = kotlin_kotlin.$_$.sa;
36
+ var Enum = kotlin_kotlin.$_$.ig;
37
+ var initMetadataForClass = kotlin_kotlin.$_$.rb;
38
+ var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
39
+ var enumEntries = kotlin_kotlin.$_$.va;
46
40
  var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.k;
47
- var lazy = kotlin_kotlin.$_$.kh;
48
- var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
49
- var Long = kotlin_kotlin.$_$.ig;
50
- var initMetadataForInterface = kotlin_kotlin.$_$.qb;
51
- var until = kotlin_kotlin.$_$.ed;
52
- var collectionSizeOrDefault = kotlin_kotlin.$_$.o6;
41
+ var lazy = kotlin_kotlin.$_$.ph;
42
+ var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
43
+ var initMetadataForInterface = kotlin_kotlin.$_$.ub;
44
+ var until = kotlin_kotlin.$_$.id;
45
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.q6;
53
46
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
54
- var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.i;
55
- var CoroutineImpl = kotlin_kotlin.$_$.qa;
56
- var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
57
- var isInterface = kotlin_kotlin.$_$.bc;
58
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
59
- var initMetadataForLambda = kotlin_kotlin.$_$.rb;
60
- var initMetadataForCoroutine = kotlin_kotlin.$_$.pb;
61
- var count = kotlin_kotlin.$_$.f7;
62
- var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
63
- var withTimeout = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
64
- var Companion_getInstance = kotlin_kotlin.$_$.d5;
65
- var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
66
- var toDuration = kotlin_kotlin.$_$.vf;
67
- var addAll = kotlin_kotlin.$_$.c6;
68
- var Collection = kotlin_kotlin.$_$.n5;
69
- var toMutableList = kotlin_kotlin.$_$.s9;
70
- var listOf = kotlin_kotlin.$_$.m8;
71
- var first = kotlin_kotlin.$_$.r7;
72
- var sorted = kotlin_kotlin.$_$.h9;
73
- var asReversed = kotlin_kotlin.$_$.g6;
47
+ var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
48
+ var CoroutineImpl = kotlin_kotlin.$_$.ta;
49
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ea;
50
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.tb;
51
+ var count = kotlin_kotlin.$_$.h7;
52
+ var Result = kotlin_kotlin.$_$.rg;
53
+ var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.e3;
54
+ var throwOnFailure = kotlin_kotlin.$_$.vh;
55
+ var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.h3;
56
+ var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.g3;
57
+ var addAll = kotlin_kotlin.$_$.e6;
58
+ var Collection = kotlin_kotlin.$_$.p5;
59
+ var isInterface = kotlin_kotlin.$_$.fc;
60
+ var toMutableList = kotlin_kotlin.$_$.u9;
61
+ var listOf = kotlin_kotlin.$_$.o8;
62
+ var first = kotlin_kotlin.$_$.t7;
63
+ var sorted = kotlin_kotlin.$_$.j9;
64
+ var asReversed = kotlin_kotlin.$_$.i6;
74
65
  var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.c2;
75
- var first_0 = kotlin_kotlin.$_$.q7;
76
- var compareValues = kotlin_kotlin.$_$.aa;
77
- var sortWith = kotlin_kotlin.$_$.f9;
78
- var lastOrNull = kotlin_kotlin.$_$.g8;
66
+ var equals = kotlin_kotlin.$_$.jb;
67
+ var FunctionAdapter = kotlin_kotlin.$_$.xa;
68
+ var hashCode = kotlin_kotlin.$_$.qb;
69
+ var first_0 = kotlin_kotlin.$_$.s7;
70
+ var compareValues = kotlin_kotlin.$_$.ca;
71
+ var sortWith = kotlin_kotlin.$_$.h9;
72
+ var lastOrNull = kotlin_kotlin.$_$.i8;
79
73
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
80
- var sortedWith = kotlin_kotlin.$_$.g9;
74
+ var sortedWith = kotlin_kotlin.$_$.i9;
81
75
  var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.a2;
82
- var compareTo = kotlin_kotlin.$_$.db;
83
- var toString = kotlin_kotlin.$_$.sc;
84
- var dropLast = kotlin_kotlin.$_$.h7;
85
- var plus = kotlin_kotlin.$_$.v8;
86
- var minus = kotlin_kotlin.$_$.q8;
87
- var plus_0 = kotlin_kotlin.$_$.w8;
76
+ var compareTo = kotlin_kotlin.$_$.hb;
77
+ var toString = kotlin_kotlin.$_$.wc;
78
+ var dropLast = kotlin_kotlin.$_$.j7;
79
+ var plus = kotlin_kotlin.$_$.x8;
80
+ var minus = kotlin_kotlin.$_$.s8;
81
+ var plus_0 = kotlin_kotlin.$_$.y8;
88
82
  //endregion
89
83
  //region block: pre-declaration
90
84
  initMetadataForObject(CoreConfig, 'CoreConfig');
91
- initMetadataForObject(CardNumberComparator, 'CardNumberComparator', VOID, VOID, [Comparator]);
92
85
  initMetadataForObject(CardIndexComparator, 'CardIndexComparator', VOID, VOID, [Comparator]);
86
+ initMetadataForObject(CardNumberComparator, 'CardNumberComparator', VOID, VOID, [Comparator]);
93
87
  initMetadataForCompanion(Companion);
94
88
  initMetadataForClass(CardName, 'CardName', VOID, Enum);
95
89
  initMetadataForCompanion(Companion_0);
96
90
  initMetadataForClass(GameCard, 'GameCard');
97
91
  initMetadataForCompanion(Companion_1, VOID, [SerializerFactory]);
98
- initMetadataForClass(Suit, 'Suit', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_2});
92
+ initMetadataForClass(Suit, 'Suit', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_1});
99
93
  initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
100
- function createNewShuffledCardDeck$default(leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion, $super) {
101
- leftCardIndexForEachSuit = leftCardIndexForEachSuit === VOID ? 0 : leftCardIndexForEachSuit;
102
- rightCardIndexForEachSuit = rightCardIndexForEachSuit === VOID ? 0 : rightCardIndexForEachSuit;
103
- timeoutMillis = timeoutMillis === VOID ? new Long(5000, 0) : timeoutMillis;
104
- provider = provider === VOID ? CardsRandomProvider_CUSTOM_getInstance() : provider;
105
- return $super === VOID ? this.w60(leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion) : $super.w60.call(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion);
106
- }
107
94
  function standardShuffledCards$default(cards, times, $super) {
108
95
  times = times === VOID ? 3 : times;
109
- return $super === VOID ? this.z60(cards, times) : $super.z60.call(this, cards, times);
96
+ return $super === VOID ? this.f65(cards, times) : $super.f65.call(this, cards, times);
110
97
  }
111
- initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [6]);
98
+ initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
112
99
  initMetadataForCompanion(Companion_2);
113
- initMetadataForLambda(CardsDealerProviderImpl$getRandomOrgCards$slambda, CoroutineImpl, VOID, [1]);
114
100
  initMetadataForCoroutine($createNewShuffledCardDeckCOROUTINE$0, CoroutineImpl);
115
101
  initMetadataForCoroutine($getRandomOrgCardsCOROUTINE$1, CoroutineImpl);
116
- initMetadataForClass(CardsDealerProviderImpl, 'CardsDealerProviderImpl', VOID, VOID, [CardsDealerProvider], [6]);
102
+ initMetadataForClass(CardsDealerProviderImpl, 'CardsDealerProviderImpl', VOID, VOID, [CardsDealerProvider], [5]);
117
103
  initMetadataForCompanion(Companion_3);
118
- initMetadataForClass(FakeCardsDealerProvider, 'FakeCardsDealerProvider', FakeCardsDealerProvider, VOID, [CardsDealerProvider], [6]);
104
+ initMetadataForClass(FakeCardsDealerProvider, 'FakeCardsDealerProvider', FakeCardsDealerProvider, VOID, [CardsDealerProvider], [5]);
119
105
  function findCardsInRowCombinations$default(cards, supportedCombinations, checkFromIndex, includeCardNames, suit, $super) {
120
106
  checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
121
107
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
122
108
  suit = suit === VOID ? null : suit;
123
- return $super === VOID ? this.p63(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.p63.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
109
+ return $super === VOID ? this.b67(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.b67.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
124
110
  }
125
111
  function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
126
112
  cardsCount = cardsCount === VOID ? 4 : cardsCount;
127
113
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
128
- return $super === VOID ? this.r63(cards, cardsCount, includeCardNames) : $super.r63.call(this, cards, cardsCount, includeCardNames);
114
+ return $super === VOID ? this.d67(cards, cardsCount, includeCardNames) : $super.d67.call(this, cards, cardsCount, includeCardNames);
129
115
  }
130
116
  initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
131
- initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator]);
117
+ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
132
118
  initMetadataForClass(CombinationsCheckerProviderImpl, 'CombinationsCheckerProviderImpl', CombinationsCheckerProviderImpl, VOID, [CombinationsCheckerProvider]);
133
119
  initMetadataForInterface(DealerReducer, 'DealerReducer');
134
120
  initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
135
121
  //endregion
136
122
  function CoreConfig() {
137
- this.version = '0.0.33';
123
+ this.version = '0.0.36';
138
124
  }
139
- protoOf(CoreConfig).t2w = function () {
125
+ protoOf(CoreConfig).n2y = function () {
140
126
  return this.version;
141
127
  };
142
128
  var CoreConfig_instance;
143
129
  function CoreConfig_getInstance() {
144
130
  return CoreConfig_instance;
145
131
  }
132
+ function CardIndexComparator() {
133
+ }
134
+ protoOf(CardIndexComparator).l64 = function (a, b) {
135
+ return a.m64_1 - b.m64_1 | 0;
136
+ };
137
+ protoOf(CardIndexComparator).compare = function (a, b) {
138
+ var tmp = a instanceof GameCard ? a : THROW_CCE();
139
+ return this.l64(tmp, b instanceof GameCard ? b : THROW_CCE());
140
+ };
141
+ var CardIndexComparator_instance;
142
+ function CardIndexComparator_getInstance() {
143
+ return CardIndexComparator_instance;
144
+ }
146
145
  function filterByCardName(_this__u8e3s4, name) {
147
146
  // Inline function 'kotlin.collections.filter' call
148
147
  var predicate = byCardNamePredicate(name.slice());
@@ -159,33 +158,17 @@
159
158
  }
160
159
  function CardNumberComparator() {
161
160
  }
162
- protoOf(CardNumberComparator).e60 = function (a, b) {
163
- return b.g60() - a.g60() | 0;
161
+ protoOf(CardNumberComparator).l64 = function (a, b) {
162
+ return b.n64() - a.n64() | 0;
164
163
  };
165
164
  protoOf(CardNumberComparator).compare = function (a, b) {
166
165
  var tmp = a instanceof GameCard ? a : THROW_CCE();
167
- return this.e60(tmp, b instanceof GameCard ? b : THROW_CCE());
166
+ return this.l64(tmp, b instanceof GameCard ? b : THROW_CCE());
168
167
  };
169
168
  var CardNumberComparator_instance;
170
169
  function CardNumberComparator_getInstance() {
171
170
  return CardNumberComparator_instance;
172
171
  }
173
- function CardIndexComparator() {
174
- }
175
- protoOf(CardIndexComparator).e60 = function (a, b) {
176
- return a.f60_1 - b.f60_1 | 0;
177
- };
178
- protoOf(CardIndexComparator).compare = function (a, b) {
179
- var tmp = a instanceof GameCard ? a : THROW_CCE();
180
- return this.e60(tmp, b instanceof GameCard ? b : THROW_CCE());
181
- };
182
- var CardIndexComparator_instance;
183
- function CardIndexComparator_getInstance() {
184
- return CardIndexComparator_instance;
185
- }
186
- function byCardNamePredicate(types) {
187
- return byCardNamePredicate$lambda(types);
188
- }
189
172
  function distributeCardsBottom(_this__u8e3s4, count) {
190
173
  var cardsToDeal = toList(take(_this__u8e3s4, count));
191
174
  _this__u8e3s4.z1(cardsToDeal);
@@ -196,6 +179,9 @@
196
179
  _this__u8e3s4.z1(cardsToDeal);
197
180
  return cardsToDeal;
198
181
  }
182
+ function byCardNamePredicate(types) {
183
+ return byCardNamePredicate$lambda(types);
184
+ }
199
185
  function byCardNamePredicate$lambda($types) {
200
186
  return function (p1) {
201
187
  var tmp$ret$1;
@@ -305,16 +291,16 @@
305
291
  }
306
292
  function Companion() {
307
293
  }
308
- protoOf(Companion).h60 = function (suit, number) {
294
+ protoOf(Companion).o64 = function (suit, number) {
309
295
  return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
310
296
  };
311
- protoOf(Companion).i60 = function (suit, cardNumber) {
297
+ protoOf(Companion).p64 = function (suit, cardNumber) {
312
298
  return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
313
299
  };
314
- protoOf(Companion).j60 = function (index) {
300
+ protoOf(Companion).q64 = function (index) {
315
301
  return new GameCard(index);
316
302
  };
317
- protoOf(Companion).k60 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
303
+ protoOf(Companion).r64 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
318
304
  var tmp;
319
305
  if (previousStubCardWithMaxIndex == null) {
320
306
  tmp = null;
@@ -323,7 +309,7 @@
323
309
  // Inline function 'kotlin.contracts.contract' call
324
310
  var tmp_0;
325
311
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
326
- if (previousStubCardWithMaxIndex.l60()) {
312
+ if (previousStubCardWithMaxIndex.s64()) {
327
313
  tmp_0 = previousStubCardWithMaxIndex;
328
314
  } else {
329
315
  tmp_0 = null;
@@ -331,8 +317,8 @@
331
317
  tmp = tmp_0;
332
318
  }
333
319
  var tmp3_safe_receiver = tmp;
334
- var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.f60_1;
335
- var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.q60(tmp4_safe_receiver, playerIndex, reverse);
320
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m64_1;
321
+ var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.x64(tmp4_safe_receiver, playerIndex, reverse);
336
322
  var tmp_1;
337
323
  if (tmp5_safe_receiver == null) {
338
324
  tmp_1 = null;
@@ -353,13 +339,13 @@
353
339
  var index = tmp_2;
354
340
  return new GameCard(index);
355
341
  };
356
- protoOf(Companion).r60 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
342
+ protoOf(Companion).y64 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
357
343
  previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
358
344
  reverse = reverse === VOID ? false : reverse;
359
- return $super === VOID ? this.k60(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.k60.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
345
+ return $super === VOID ? this.r64(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.r64.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
360
346
  };
361
347
  var Companion_instance;
362
- function Companion_getInstance_0() {
348
+ function Companion_getInstance() {
363
349
  return Companion_instance;
364
350
  }
365
351
  function getNumber($this, cardNumber, suit) {
@@ -460,7 +446,7 @@
460
446
  return tmp;
461
447
  }
462
448
  function _get_isShirt__vd98rp($this) {
463
- return $this.f60_1 === 52;
449
+ return $this.m64_1 === 52;
464
450
  }
465
451
  function CardName(name, ordinal) {
466
452
  Enum.call(this, name, ordinal);
@@ -469,12 +455,12 @@
469
455
  return getShortName(this);
470
456
  };
471
457
  function Companion_0() {
472
- this.m60_1 = -1;
473
- this.n60_1 = 13;
474
- this.o60_1 = 52;
475
- this.p60_1 = 53;
458
+ this.t64_1 = -1;
459
+ this.u64_1 = 13;
460
+ this.v64_1 = 52;
461
+ this.w64_1 = 53;
476
462
  }
477
- protoOf(Companion_0).q60 = function (_this__u8e3s4, playerIndex, reverse) {
463
+ protoOf(Companion_0).x64 = function (_this__u8e3s4, playerIndex, reverse) {
478
464
  var tmp;
479
465
  if (reverse) {
480
466
  tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
@@ -484,7 +470,7 @@
484
470
  return tmp;
485
471
  };
486
472
  var Companion_instance_0;
487
- function Companion_getInstance_1() {
473
+ function Companion_getInstance_0() {
488
474
  return Companion_instance_0;
489
475
  }
490
476
  function CardName_ACE_getInstance() {
@@ -544,59 +530,59 @@
544
530
  return CardName_STUB_instance;
545
531
  }
546
532
  function GameCard(index) {
547
- this.f60_1 = index;
533
+ this.m64_1 = index;
548
534
  }
549
- protoOf(GameCard).s60 = function () {
535
+ protoOf(GameCard).z64 = function () {
550
536
  var tmp;
551
- var containsArg = this.f60_1;
537
+ var containsArg = this.m64_1;
552
538
  if (0 <= containsArg ? containsArg <= 13 : false) {
553
539
  tmp = Suit_DIAMOND_getInstance();
554
540
  } else {
555
- if (this.f60_1 <= 26) {
541
+ if (this.m64_1 <= 26) {
556
542
  tmp = Suit_SPADE_getInstance();
557
543
  } else {
558
- if (this.f60_1 <= 39) {
544
+ if (this.m64_1 <= 39) {
559
545
  tmp = Suit_HEART_getInstance();
560
546
  } else {
561
- if (this.f60_1 <= 52) {
547
+ if (this.m64_1 <= 52) {
562
548
  tmp = Suit_CLUB_getInstance();
563
549
  } else {
564
- throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.f60_1);
550
+ throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.m64_1);
565
551
  }
566
552
  }
567
553
  }
568
554
  }
569
555
  return tmp;
570
556
  };
571
- protoOf(GameCard).g60 = function () {
557
+ protoOf(GameCard).n64 = function () {
572
558
  var tmp;
573
- if (this.l60()) {
559
+ if (this.s64()) {
574
560
  tmp = -1;
575
561
  } else {
576
- tmp = this.f60_1 - imul(13, getIndex(this.s60())) | 0;
562
+ tmp = this.m64_1 - imul(13, getIndex(this.z64())) | 0;
577
563
  }
578
564
  return tmp;
579
565
  };
580
566
  protoOf(GameCard).p2 = function () {
581
- return this.l60() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.g60());
567
+ return this.s64() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.n64());
582
568
  };
583
- protoOf(GameCard).t60 = function () {
584
- return !_get_isShirt__vd98rp(this) && !this.l60();
569
+ protoOf(GameCard).a65 = function () {
570
+ return !_get_isShirt__vd98rp(this) && !this.s64();
585
571
  };
586
- protoOf(GameCard).l60 = function () {
587
- return this.f60_1 >= 53;
572
+ protoOf(GameCard).s64 = function () {
573
+ return this.m64_1 >= 53;
588
574
  };
589
575
  protoOf(GameCard).toString = function () {
590
576
  if (_get_isShirt__vd98rp(this)) {
591
577
  return 'GameCard(SHIRT)';
592
578
  }
593
- if (this.l60()) {
594
- return 'GameCard(STUB, ' + this.f60_1 + ')';
579
+ if (this.s64()) {
580
+ return 'GameCard(STUB, ' + this.m64_1 + ')';
595
581
  }
596
- return 'GameCard(' + this.s60().toString() + this.p2().toString() + ', ' + this.f60_1 + ')';
582
+ return 'GameCard(' + this.z64().toString() + this.p2().toString() + ', ' + this.m64_1 + ')';
597
583
  };
598
584
  protoOf(GameCard).hashCode = function () {
599
- return this.f60_1;
585
+ return this.m64_1;
600
586
  };
601
587
  protoOf(GameCard).equals = function (other) {
602
588
  if (this === other)
@@ -604,12 +590,12 @@
604
590
  if (!(other instanceof GameCard))
605
591
  return false;
606
592
  var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
607
- if (!(this.f60_1 === tmp0_other_with_cast.f60_1))
593
+ if (!(this.m64_1 === tmp0_other_with_cast.m64_1))
608
594
  return false;
609
595
  return true;
610
596
  };
611
597
  function _get_$cachedSerializer__te6jhj($this) {
612
- return $this.u60_1.u();
598
+ return $this.b65_1.u();
613
599
  }
614
600
  function Suit$Companion$_anonymous__cbm2iq() {
615
601
  return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
@@ -651,16 +637,16 @@
651
637
  Companion_instance_1 = this;
652
638
  var tmp = this;
653
639
  var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
654
- tmp.u60_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
640
+ tmp.b65_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
655
641
  }
656
- protoOf(Companion_1).t4t = function () {
642
+ protoOf(Companion_1).w4v = function () {
657
643
  return _get_$cachedSerializer__te6jhj(this);
658
644
  };
659
- protoOf(Companion_1).w4d = function (typeParamsSerializers) {
660
- return this.t4t();
645
+ protoOf(Companion_1).t4f = function (typeParamsSerializers) {
646
+ return this.w4v();
661
647
  };
662
648
  var Companion_instance_1;
663
- function Companion_getInstance_2() {
649
+ function Companion_getInstance_1() {
664
650
  Suit_initEntries();
665
651
  if (Companion_instance_1 == null)
666
652
  new Companion_1();
@@ -675,7 +661,7 @@
675
661
  Suit_SPADE_instance = new Suit('SPADE', 1);
676
662
  Suit_HEART_instance = new Suit('HEART', 2);
677
663
  Suit_CLUB_instance = new Suit('CLUB', 3);
678
- Companion_getInstance_2();
664
+ Companion_getInstance_1();
679
665
  }
680
666
  var $ENTRIES;
681
667
  function Suit(name, ordinal) {
@@ -753,11 +739,11 @@
753
739
  function getCardsRange($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
754
740
  return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
755
741
  }
756
- function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, timeoutMillis, signed, $completion) {
757
- var tmp = new $getRandomOrgCardsCOROUTINE$1($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, timeoutMillis, signed, $completion);
758
- tmp.f9_1 = Unit_instance;
759
- tmp.g9_1 = null;
760
- return tmp.l9();
742
+ function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
743
+ var tmp = new $getRandomOrgCardsCOROUTINE$1($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
744
+ tmp.j9_1 = Unit_instance;
745
+ tmp.k9_1 = null;
746
+ return tmp.p9();
761
747
  }
762
748
  function normalizeCards($this, cards, leftCardIndexForEachSuit) {
763
749
  var oneSuitCount = cards.m() / get_entries().m() | 0;
@@ -778,127 +764,51 @@
778
764
  }
779
765
  function Companion_2() {
780
766
  }
781
- protoOf(Companion_2).u61 = function (randomPoolProvider, logger) {
782
- var tmp16_random = new SecureRandom(logger);
783
- return new CardsDealerProviderImpl(tmp16_random, randomPoolProvider, logger);
767
+ protoOf(Companion_2).c66 = function (randomPoolProvider, logger) {
768
+ var tmp17_random = new SecureRandom(logger);
769
+ return new CardsDealerProviderImpl(tmp17_random, randomPoolProvider, logger);
784
770
  };
785
771
  var Companion_instance_2;
786
- function Companion_getInstance_3() {
772
+ function Companion_getInstance_2() {
787
773
  return Companion_instance_2;
788
774
  }
789
- function CardsDealerProviderImpl$getRandomOrgCards$slambda(this$0, $cardsCount, $approximateRoundsCount, $userData, $leftCardIndexForEachSuit, resultContinuation) {
790
- this.d62_1 = this$0;
791
- this.e62_1 = $cardsCount;
792
- this.f62_1 = $approximateRoundsCount;
793
- this.g62_1 = $userData;
794
- this.h62_1 = $leftCardIndexForEachSuit;
795
- CoroutineImpl.call(this, resultContinuation);
796
- }
797
- protoOf(CardsDealerProviderImpl$getRandomOrgCards$slambda).l62 = function ($this$withTimeout, $completion) {
798
- var tmp = this.b1c($this$withTimeout, $completion);
799
- tmp.f9_1 = Unit_instance;
800
- tmp.g9_1 = null;
801
- return tmp.l9();
802
- };
803
- protoOf(CardsDealerProviderImpl$getRandomOrgCards$slambda).ga = function (p1, $completion) {
804
- return this.l62((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
805
- };
806
- protoOf(CardsDealerProviderImpl$getRandomOrgCards$slambda).l9 = function () {
807
- var suspendResult = this.f9_1;
808
- $sm: do
809
- try {
810
- var tmp = this.d9_1;
811
- switch (tmp) {
812
- case 0:
813
- this.e9_1 = 2;
814
- this.j62_1 = this.d62_1.n62_1;
815
- this.k62_1 = this.e62_1 - 1 | 0;
816
- this.d9_1 = 1;
817
- suspendResult = this.j62_1.k5n(this.f62_1, this.g62_1, 0, this.k62_1, this.e62_1, VOID, this);
818
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
819
- return suspendResult;
820
- }
821
-
822
- continue $sm;
823
- case 1:
824
- var cardDeck = suspendResult;
825
- this.d62_1.r62_1 = null;
826
- this.d62_1.s62_1 = 0;
827
- var tmp14_cards = cardDeck.cards;
828
- var this_0 = normalizeCards(this.d62_1, tmp14_cards, this.h62_1);
829
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
830
- var tmp0_iterator = this_0.j();
831
- while (tmp0_iterator.k()) {
832
- var item = tmp0_iterator.l();
833
- destination.e(Companion_instance.j60(item));
834
- }
835
-
836
- return destination;
837
- case 2:
838
- throw this.g9_1;
839
- }
840
- } catch ($p) {
841
- var e = $p;
842
- if (this.e9_1 === 2) {
843
- throw e;
844
- } else {
845
- this.d9_1 = this.e9_1;
846
- this.g9_1 = e;
847
- }
848
- }
849
- while (true);
850
- };
851
- protoOf(CardsDealerProviderImpl$getRandomOrgCards$slambda).b1c = function ($this$withTimeout, completion) {
852
- var i = new CardsDealerProviderImpl$getRandomOrgCards$slambda(this.d62_1, this.e62_1, this.f62_1, this.g62_1, this.h62_1, completion);
853
- i.i62_1 = $this$withTimeout;
854
- return i;
855
- };
856
- function CardsDealerProviderImpl$getRandomOrgCards$slambda_0(this$0, $cardsCount, $approximateRoundsCount, $userData, $leftCardIndexForEachSuit, resultContinuation) {
857
- var i = new CardsDealerProviderImpl$getRandomOrgCards$slambda(this$0, $cardsCount, $approximateRoundsCount, $userData, $leftCardIndexForEachSuit, resultContinuation);
858
- var l = function ($this$withTimeout, $completion) {
859
- return i.l62($this$withTimeout, $completion);
860
- };
861
- l.$arity = 1;
862
- return l;
863
- }
864
- function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, resultContinuation) {
775
+ function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
865
776
  CoroutineImpl.call(this, resultContinuation);
866
- this.b63_1 = _this__u8e3s4;
867
- this.c63_1 = leftCardIndexForEachSuit;
868
- this.d63_1 = rightCardIndexForEachSuit;
869
- this.e63_1 = approximateRoundCountForGame;
870
- this.f63_1 = userData;
871
- this.g63_1 = timeoutMillis;
872
- this.h63_1 = provider;
873
- }
874
- protoOf($createNewShuffledCardDeckCOROUTINE$0).l9 = function () {
875
- var suspendResult = this.f9_1;
777
+ this.l66_1 = _this__u8e3s4;
778
+ this.m66_1 = leftCardIndexForEachSuit;
779
+ this.n66_1 = rightCardIndexForEachSuit;
780
+ this.o66_1 = approximateRoundCountForGame;
781
+ this.p66_1 = userData;
782
+ this.q66_1 = provider;
783
+ }
784
+ protoOf($createNewShuffledCardDeckCOROUTINE$0).p9 = function () {
785
+ var suspendResult = this.j9_1;
876
786
  $sm: do
877
787
  try {
878
- var tmp = this.d9_1;
788
+ var tmp = this.h9_1;
879
789
  switch (tmp) {
880
790
  case 0:
881
- this.e9_1 = 4;
882
- this.i63_1 = this.h63_1;
883
- this.j63_1 = this.i63_1.o2_1;
884
- if (this.j63_1 === 0) {
791
+ this.i9_1 = 4;
792
+ this.r66_1 = this.q66_1;
793
+ this.s66_1 = this.r66_1.o2_1;
794
+ if (this.s66_1 === 0) {
885
795
  var tmp_0 = this;
886
- var it = this.b63_1.v60(this.c63_1, this.d63_1);
887
- tmp_0.k63_1 = this.b63_1.a61(it);
888
- this.d9_1 = 3;
796
+ var it = this.l66_1.c65(this.m66_1, this.n66_1);
797
+ tmp_0.t66_1 = this.l66_1.g65(it);
798
+ this.h9_1 = 3;
889
799
  continue $sm;
890
800
  } else {
891
- if (this.j63_1 === 1) {
892
- this.d9_1 = 2;
893
- suspendResult = getRandomOrgCards(this.b63_1, this.c63_1, this.d63_1, this.e63_1, this.f63_1, this.g63_1, false, this);
801
+ if (this.s66_1 === 1) {
802
+ this.h9_1 = 2;
803
+ suspendResult = getRandomOrgCards(this.l66_1, this.m66_1, this.n66_1, this.o66_1, this.p66_1, false, this);
894
804
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
895
805
  return suspendResult;
896
806
  }
897
807
  continue $sm;
898
808
  } else {
899
- if (this.j63_1 === 2) {
900
- this.d9_1 = 1;
901
- suspendResult = getRandomOrgCards(this.b63_1, this.c63_1, this.d63_1, this.e63_1, this.f63_1, this.g63_1, true, this);
809
+ if (this.s66_1 === 2) {
810
+ this.h9_1 = 1;
811
+ suspendResult = getRandomOrgCards(this.l66_1, this.m66_1, this.n66_1, this.o66_1, this.p66_1, true, this);
902
812
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
903
813
  return suspendResult;
904
814
  }
@@ -912,154 +822,127 @@
912
822
 
913
823
  break;
914
824
  case 1:
915
- this.k63_1 = suspendResult;
916
- this.d9_1 = 3;
825
+ this.t66_1 = suspendResult;
826
+ this.h9_1 = 3;
917
827
  continue $sm;
918
828
  case 2:
919
- this.k63_1 = suspendResult;
920
- this.d9_1 = 3;
829
+ this.t66_1 = suspendResult;
830
+ this.h9_1 = 3;
921
831
  continue $sm;
922
832
  case 3:
923
- return this.k63_1;
833
+ return this.t66_1;
924
834
  case 4:
925
- throw this.g9_1;
835
+ throw this.k9_1;
926
836
  }
927
837
  } catch ($p) {
928
838
  var e = $p;
929
- if (this.e9_1 === 4) {
839
+ if (this.i9_1 === 4) {
930
840
  throw e;
931
841
  } else {
932
- this.d9_1 = this.e9_1;
933
- this.g9_1 = e;
842
+ this.h9_1 = this.i9_1;
843
+ this.k9_1 = e;
934
844
  }
935
845
  }
936
846
  while (true);
937
847
  };
938
- function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, timeoutMillis, signed, resultContinuation) {
848
+ function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
939
849
  CoroutineImpl.call(this, resultContinuation);
940
- this.j61_1 = _this__u8e3s4;
941
- this.k61_1 = leftCardIndexForEachSuit;
942
- this.l61_1 = rightCardIndexForEachSuit;
943
- this.m61_1 = approximateRoundsCount;
944
- this.n61_1 = userData;
945
- this.o61_1 = timeoutMillis;
946
- this.p61_1 = signed;
947
- }
948
- protoOf($getRandomOrgCardsCOROUTINE$1).l9 = function () {
949
- var suspendResult = this.f9_1;
850
+ this.p65_1 = _this__u8e3s4;
851
+ this.q65_1 = leftCardIndexForEachSuit;
852
+ this.r65_1 = rightCardIndexForEachSuit;
853
+ this.s65_1 = approximateRoundsCount;
854
+ this.t65_1 = userData;
855
+ this.u65_1 = signed;
856
+ }
857
+ protoOf($getRandomOrgCardsCOROUTINE$1).p9 = function () {
858
+ var suspendResult = this.j9_1;
950
859
  $sm: do
951
860
  try {
952
- var tmp = this.d9_1;
861
+ var tmp = this.h9_1;
953
862
  switch (tmp) {
954
863
  case 0:
955
- this.e9_1 = 8;
864
+ this.i9_1 = 5;
956
865
  var tmp_0 = this;
957
866
  var sum = 0;
958
867
  var tmp0_iterator = get_entries().j();
959
868
  while (tmp0_iterator.k()) {
960
869
  var element = tmp0_iterator.l();
961
870
  var tmp_1 = sum;
962
- sum = tmp_1 + count(getCardsRange(this.j61_1, this.k61_1, this.l61_1)) | 0;
871
+ sum = tmp_1 + count(getCardsRange(this.p65_1, this.q65_1, this.r65_1)) | 0;
963
872
  }
964
873
 
965
- tmp_0.q61_1 = sum;
966
- this.r61_1 = this.j61_1.r62_1;
967
- if (!(this.r61_1 == null) && this.j61_1.s62_1 >= this.j61_1.p62_1) {
968
- this.s61_1 = this.r61_1.w5h(this.j61_1.q62_1);
969
- if (this.s61_1.a5i(System_instance.i52()) > 0) {
970
- this.j61_1.o62_1.v('CardsDealerProvider', 'createNewShuffledCardDeck cooldown ends in ' + this.s61_1.toString());
971
- this.d9_1 = 7;
972
- suspendResult = this.j61_1.x60(this.k61_1, this.l61_1, this.m61_1, this.n61_1, VOID, CardsRandomProvider_CUSTOM_getInstance(), this);
973
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
974
- return suspendResult;
975
- }
976
- continue $sm;
977
- } else {
978
- this.d9_1 = 1;
979
- continue $sm;
980
- }
981
- } else {
982
- this.d9_1 = 2;
983
- continue $sm;
984
- }
985
-
986
- case 1:
987
- this.d9_1 = 2;
988
- continue $sm;
989
- case 2:
990
- this.e9_1 = 4;
991
- this.d9_1 = 3;
992
- suspendResult = withTimeout(this.o61_1, CardsDealerProviderImpl$getRandomOrgCards$slambda_0(this.j61_1, this.q61_1, this.m61_1, this.n61_1, this.k61_1, null), this);
874
+ tmp_0.v65_1 = sum;
875
+ this.w65_1 = this.p65_1.v66_1;
876
+ this.x65_1 = this.v65_1 - 1 | 0;
877
+ this.h9_1 = 1;
878
+ suspendResult = this.w65_1.c5q(this.s65_1, this.t65_1, 0, this.x65_1, this.v65_1, this.u65_1, VOID, this);
993
879
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
994
880
  return suspendResult;
995
881
  }
996
882
 
883
+ this.h9_1 = 2;
997
884
  continue $sm;
998
- case 3:
999
- return suspendResult;
1000
- case 4:
1001
- this.e9_1 = 8;
1002
- var tmp_2 = this.g9_1;
1003
- if (tmp_2 instanceof Error) {
1004
- this.t61_1 = this.g9_1;
1005
- this.j61_1.r62_1 = System_instance.i52();
1006
- var _unary__edvuaz = this.j61_1.s62_1;
1007
- this.j61_1.s62_1 = _unary__edvuaz + 1 | 0;
1008
- this.j61_1.o62_1.w('CardsDealerProvider', 'createNewShuffledCardDeck error', this.t61_1);
1009
- this.d9_1 = 5;
885
+ case 1:
886
+ this.y65_1 = suspendResult.ek_1;
887
+ suspendResult = new Result(this.y65_1);
888
+ this.h9_1 = 2;
889
+ continue $sm;
890
+ case 2:
891
+ this.z65_1 = suspendResult.ek_1;
892
+ if (_Result___get_isSuccess__impl__sndoy8(this.z65_1)) {
893
+ var tmp_2 = this;
894
+ var this_0 = this.z65_1;
895
+ throwOnFailure(this_0);
896
+ var tmp_3 = _Result___get_value__impl__bjfvqg(this_0);
897
+ var tmp14_cards = ((tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE()).cards;
898
+ var this_1 = normalizeCards(this.p65_1, tmp14_cards, this.q65_1);
899
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
900
+ var tmp0_iterator_0 = this_1.j();
901
+ while (tmp0_iterator_0.k()) {
902
+ var item = tmp0_iterator_0.l();
903
+ destination.e(Companion_instance.q64(item));
904
+ }
905
+ tmp_2.a66_1 = destination;
906
+ this.h9_1 = 4;
1010
907
  continue $sm;
1011
908
  } else {
1012
- throw this.g9_1;
1013
- }
1014
-
1015
- case 5:
1016
- this.e9_1 = 8;
1017
- this.d9_1 = 6;
1018
- suspendResult = this.j61_1.x60(this.k61_1, this.l61_1, this.m61_1, this.n61_1, VOID, CardsRandomProvider_CUSTOM_getInstance(), this);
1019
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1020
- return suspendResult;
909
+ this.b66_1 = Result__exceptionOrNull_impl_p6xea9(this.z65_1);
910
+ var tmp15_safe_receiver = this.b66_1;
911
+ this.p65_1.w66_1.w('CardsDealerProvider', 'createNewShuffledCardDeck error message = ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.b66_1);
912
+ this.h9_1 = 3;
913
+ suspendResult = this.p65_1.d65(this.q65_1, this.r65_1, this.s65_1, this.t65_1, CardsRandomProvider_CUSTOM_getInstance(), this);
914
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
915
+ return suspendResult;
916
+ }
917
+ continue $sm;
1021
918
  }
1022
919
 
920
+ case 3:
921
+ this.a66_1 = suspendResult;
922
+ this.h9_1 = 4;
1023
923
  continue $sm;
1024
- case 6:
1025
- return suspendResult;
1026
- case 7:
1027
- return suspendResult;
1028
- case 8:
1029
- throw this.g9_1;
924
+ case 4:
925
+ return this.a66_1;
926
+ case 5:
927
+ throw this.k9_1;
1030
928
  }
1031
929
  } catch ($p) {
1032
930
  var e = $p;
1033
- if (this.e9_1 === 8) {
931
+ if (this.i9_1 === 5) {
1034
932
  throw e;
1035
933
  } else {
1036
- this.d9_1 = this.e9_1;
1037
- this.g9_1 = e;
934
+ this.h9_1 = this.i9_1;
935
+ this.k9_1 = e;
1038
936
  }
1039
937
  }
1040
938
  while (true);
1041
939
  };
1042
- function CardsDealerProviderImpl(random, randomPoolProvider, logger, failedRequestAttempts, failedAttemptCooldown) {
1043
- failedRequestAttempts = failedRequestAttempts === VOID ? 3 : failedRequestAttempts;
1044
- var tmp;
1045
- if (failedAttemptCooldown === VOID) {
1046
- // Inline function 'kotlin.time.Companion.milliseconds' call
1047
- Companion_getInstance();
1048
- var this_0 = new Long(60000, 0);
1049
- tmp = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
1050
- } else {
1051
- tmp = failedAttemptCooldown;
1052
- }
1053
- failedAttemptCooldown = tmp;
1054
- this.m62_1 = random;
1055
- this.n62_1 = randomPoolProvider;
1056
- this.o62_1 = logger;
1057
- this.p62_1 = failedRequestAttempts;
1058
- this.q62_1 = failedAttemptCooldown;
1059
- this.r62_1 = null;
1060
- this.s62_1 = 0;
1061
- }
1062
- protoOf(CardsDealerProviderImpl).v60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
940
+ function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
941
+ this.u66_1 = random;
942
+ this.v66_1 = randomPoolProvider;
943
+ this.w66_1 = logger;
944
+ }
945
+ protoOf(CardsDealerProviderImpl).c65 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1063
946
  // Inline function 'kotlin.collections.flatMap' call
1064
947
  // Inline function 'kotlin.collections.flatMapTo' call
1065
948
  var this_0 = get_entries();
@@ -1072,25 +955,30 @@
1072
955
  var this_1 = getCardsRange(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit);
1073
956
  // Inline function 'kotlin.collections.mapTo' call
1074
957
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1075
- var tmp0_iterator_0 = this_1.j();
1076
- while (tmp0_iterator_0.k()) {
1077
- var item = tmp0_iterator_0.l();
1078
- // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
1079
- var tmp$ret$0 = Companion_instance.h60(element, item);
1080
- destination_0.e(tmp$ret$0);
1081
- }
958
+ var inductionVariable = this_1.a1_1;
959
+ var last = this_1.b1_1;
960
+ if (inductionVariable <= last)
961
+ do {
962
+ var item = inductionVariable;
963
+ inductionVariable = inductionVariable + 1 | 0;
964
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
965
+ var it = item;
966
+ var tmp$ret$0 = Companion_instance.o64(element, it);
967
+ destination_0.e(tmp$ret$0);
968
+ }
969
+ while (!(item === last));
1082
970
  var list = destination_0;
1083
971
  addAll(destination, list);
1084
972
  }
1085
973
  return destination;
1086
974
  };
1087
- protoOf(CardsDealerProviderImpl).w60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion) {
1088
- var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion);
1089
- tmp.f9_1 = Unit_instance;
1090
- tmp.g9_1 = null;
1091
- return tmp.l9();
975
+ protoOf(CardsDealerProviderImpl).d65 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
976
+ var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
977
+ tmp.j9_1 = Unit_instance;
978
+ tmp.k9_1 = null;
979
+ return tmp.p9();
1092
980
  };
1093
- protoOf(CardsDealerProviderImpl).y60 = function (count, cards) {
981
+ protoOf(CardsDealerProviderImpl).e65 = function (count, cards) {
1094
982
  // Inline function 'kotlin.apply' call
1095
983
  // Inline function 'kotlin.collections.mutableListOf' call
1096
984
  var this_0 = ArrayList_init_$Create$();
@@ -1124,7 +1012,7 @@
1124
1012
  while (tmp0_iterator.k()) {
1125
1013
  var element = tmp0_iterator.l();
1126
1014
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
1127
- if (element.g60() === card.g60()) {
1015
+ if (element.n64() === card.n64()) {
1128
1016
  tmp$ret$2 = true;
1129
1017
  break $l$block_1;
1130
1018
  }
@@ -1139,7 +1027,7 @@
1139
1027
  }
1140
1028
  return this_0;
1141
1029
  };
1142
- protoOf(CardsDealerProviderImpl).z60 = function (cards, times) {
1030
+ protoOf(CardsDealerProviderImpl).f65 = function (cards, times) {
1143
1031
  // Inline function 'kotlin.let' call
1144
1032
  // Inline function 'kotlin.contracts.contract' call
1145
1033
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
@@ -1149,49 +1037,49 @@
1149
1037
  do {
1150
1038
  var i = inductionVariable;
1151
1039
  inductionVariable = inductionVariable + 1 | 0;
1152
- shuffled = this.m62_1.v5q(shuffled);
1040
+ shuffled = this.u66_1.c5v(shuffled);
1153
1041
  }
1154
1042
  while (inductionVariable < times);
1155
1043
  return shuffled;
1156
1044
  };
1157
1045
  function Companion_3() {
1158
1046
  }
1159
- protoOf(Companion_3).l63 = function () {
1047
+ protoOf(Companion_3).x66 = function () {
1160
1048
  // Inline function 'kotlin.apply' call
1161
1049
  // Inline function 'kotlin.collections.mutableListOf' call
1162
1050
  var this_0 = ArrayList_init_$Create$();
1163
1051
  // Inline function 'kotlin.contracts.contract' call
1164
1052
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.Companion.getCards.<anonymous>' call
1165
- this_0.n(listOf([Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
1166
- this_0.n(listOf([Companion_instance.i60(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
1167
- this_0.n(listOf([Companion_instance.i60(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
1168
- this_0.n(listOf([Companion_instance.i60(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
1169
- this_0.n(listOf([Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
1053
+ this_0.n(listOf([Companion_instance.p64(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.p64(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.p64(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.p64(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.p64(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.p64(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
1054
+ this_0.n(listOf([Companion_instance.p64(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.p64(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.p64(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.p64(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.p64(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.p64(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
1055
+ this_0.n(listOf([Companion_instance.p64(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.p64(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.p64(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.p64(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.p64(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.p64(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
1056
+ this_0.n(listOf([Companion_instance.p64(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.p64(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.p64(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.p64(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.p64(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.p64(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
1057
+ this_0.n(listOf([Companion_instance.p64(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.p64(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.p64(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.p64(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.p64(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.p64(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.p64(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.p64(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
1170
1058
  return this_0;
1171
1059
  };
1172
- protoOf(Companion_3).m63 = function () {
1173
- return listOf([Companion_instance.i60(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
1060
+ protoOf(Companion_3).y66 = function () {
1061
+ return listOf([Companion_instance.p64(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.p64(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.p64(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.p64(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
1174
1062
  };
1175
1063
  var Companion_instance_3;
1176
- function Companion_getInstance_4() {
1064
+ function Companion_getInstance_3() {
1177
1065
  return Companion_instance_3;
1178
1066
  }
1179
1067
  function FakeCardsDealerProvider(cards, cardsForLot) {
1180
- cards = cards === VOID ? Companion_instance_3.l63() : cards;
1181
- cardsForLot = cardsForLot === VOID ? Companion_instance_3.m63() : cardsForLot;
1182
- this.n63_1 = cards;
1183
- this.o63_1 = cardsForLot;
1068
+ cards = cards === VOID ? Companion_instance_3.x66() : cards;
1069
+ cardsForLot = cardsForLot === VOID ? Companion_instance_3.y66() : cardsForLot;
1070
+ this.z66_1 = cards;
1071
+ this.a67_1 = cardsForLot;
1184
1072
  }
1185
- protoOf(FakeCardsDealerProvider).v60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1186
- return this.n63_1;
1073
+ protoOf(FakeCardsDealerProvider).c65 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1074
+ return this.z66_1;
1187
1075
  };
1188
- protoOf(FakeCardsDealerProvider).w60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion) {
1189
- return this.n63_1;
1076
+ protoOf(FakeCardsDealerProvider).d65 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
1077
+ return this.z66_1;
1190
1078
  };
1191
- protoOf(FakeCardsDealerProvider).y60 = function (count, cards) {
1192
- return this.o63_1;
1079
+ protoOf(FakeCardsDealerProvider).e65 = function (count, cards) {
1080
+ return this.a67_1;
1193
1081
  };
1194
- protoOf(FakeCardsDealerProvider).z60 = function (cards, times) {
1082
+ protoOf(FakeCardsDealerProvider).f65 = function (cards, times) {
1195
1083
  return cards;
1196
1084
  };
1197
1085
  function CombinationsCheckerProvider() {
@@ -1220,25 +1108,46 @@
1220
1108
  return takeLast(cards, longestCombinationSupport);
1221
1109
  }
1222
1110
  function sam$kotlin_Comparator$0(function_0) {
1223
- this.u63_1 = function_0;
1111
+ this.g67_1 = function_0;
1224
1112
  }
1225
- protoOf(sam$kotlin_Comparator$0).jc = function (a, b) {
1226
- return this.u63_1(a, b);
1113
+ protoOf(sam$kotlin_Comparator$0).pc = function (a, b) {
1114
+ return this.g67_1(a, b);
1227
1115
  };
1228
1116
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
1229
- return this.jc(a, b);
1117
+ return this.pc(a, b);
1118
+ };
1119
+ protoOf(sam$kotlin_Comparator$0).p3 = function () {
1120
+ return this.g67_1;
1121
+ };
1122
+ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
1123
+ var tmp;
1124
+ if (!(other == null) ? isInterface(other, Comparator) : false) {
1125
+ var tmp_0;
1126
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
1127
+ tmp_0 = equals(this.p3(), other.p3());
1128
+ } else {
1129
+ tmp_0 = false;
1130
+ }
1131
+ tmp = tmp_0;
1132
+ } else {
1133
+ tmp = false;
1134
+ }
1135
+ return tmp;
1136
+ };
1137
+ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
1138
+ return hashCode(this.p3());
1230
1139
  };
1231
1140
  function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
1232
1141
  // Inline function 'kotlin.comparisons.compareValuesBy' call
1233
1142
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
1234
- var tmp = first_0(a).f60_1;
1143
+ var tmp = first_0(a).m64_1;
1235
1144
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
1236
- var tmp$ret$1 = first_0(b).f60_1;
1145
+ var tmp$ret$1 = first_0(b).m64_1;
1237
1146
  return compareValues(tmp, tmp$ret$1);
1238
1147
  }
1239
1148
  function CombinationsCheckerProviderImpl() {
1240
1149
  }
1241
- protoOf(CombinationsCheckerProviderImpl).p63 = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
1150
+ protoOf(CombinationsCheckerProviderImpl).b67 = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
1242
1151
  // Inline function 'kotlin.collections.filter' call
1243
1152
  // Inline function 'kotlin.apply' call
1244
1153
  var this_0 = toMutableList(cards);
@@ -1251,7 +1160,7 @@
1251
1160
  while (tmp0_iterator.k()) {
1252
1161
  var element = tmp0_iterator.l();
1253
1162
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
1254
- if (element.t60()) {
1163
+ if (element.a65()) {
1255
1164
  destination.e(element);
1256
1165
  }
1257
1166
  }
@@ -1268,14 +1177,14 @@
1268
1177
  inductionVariable = inductionVariable + 1 | 0;
1269
1178
  var previousCard = lastOrNull(combinationCards);
1270
1179
  var currentCard = sortedByIndexCards.o(i);
1271
- var isNextInRow = !(previousCard == null) && currentCard.f60_1 === (previousCard.f60_1 + 1 | 0) && currentCard.s60().equals(previousCard.s60());
1180
+ var isNextInRow = !(previousCard == null) && currentCard.m64_1 === (previousCard.m64_1 + 1 | 0) && currentCard.z64().equals(previousCard.z64());
1272
1181
  var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.p2());
1273
- var passedSuitCheck = suit == null || currentCard.s60().equals(suit);
1182
+ var passedSuitCheck = suit == null || currentCard.z64().equals(suit);
1274
1183
  if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
1275
1184
  combinationCards.e(currentCard);
1276
1185
  } else {
1277
1186
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
1278
- combinations.n(this.t63(toMutableList(combinationCards), supportedCombinations));
1187
+ combinations.n(this.f67(toMutableList(combinationCards), supportedCombinations));
1279
1188
  }
1280
1189
  combinationCards.a2();
1281
1190
  if (passedSuitCheck && passedCardNamesCheck) {
@@ -1285,11 +1194,11 @@
1285
1194
  }
1286
1195
  while (inductionVariable <= last);
1287
1196
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
1288
- combinations.n(this.t63(toMutableList(combinationCards), supportedCombinations));
1197
+ combinations.n(this.f67(toMutableList(combinationCards), supportedCombinations));
1289
1198
  }
1290
1199
  return combinations;
1291
1200
  };
1292
- protoOf(CombinationsCheckerProviderImpl).r63 = function (cards, cardsCount, includeCardNames) {
1201
+ protoOf(CombinationsCheckerProviderImpl).d67 = function (cards, cardsCount, includeCardNames) {
1293
1202
  // Inline function 'kotlin.collections.filter' call
1294
1203
  // Inline function 'kotlin.collections.filter' call
1295
1204
  // Inline function 'kotlin.apply' call
@@ -1303,7 +1212,7 @@
1303
1212
  while (tmp0_iterator.k()) {
1304
1213
  var element = tmp0_iterator.l();
1305
1214
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
1306
- if (element.t60()) {
1215
+ if (element.a65()) {
1307
1216
  destination.e(element);
1308
1217
  }
1309
1218
  }
@@ -1326,7 +1235,7 @@
1326
1235
  while (tmp0_iterator_1.k()) {
1327
1236
  var element_1 = tmp0_iterator_1.l();
1328
1237
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
1329
- var key = element_1.g60();
1238
+ var key = element_1.n64();
1330
1239
  // Inline function 'kotlin.collections.getOrPut' call
1331
1240
  var value = destination_1.h2(key);
1332
1241
  var tmp;
@@ -1365,7 +1274,7 @@
1365
1274
  }
1366
1275
  return destination_3;
1367
1276
  };
1368
- protoOf(CombinationsCheckerProviderImpl).t63 = function (cards, supportedCombinations) {
1277
+ protoOf(CombinationsCheckerProviderImpl).f67 = function (cards, supportedCombinations) {
1369
1278
  // Inline function 'kotlin.collections.minOf' call
1370
1279
  var iterator = supportedCombinations.j();
1371
1280
  if (!iterator.k())
@@ -1395,28 +1304,28 @@
1395
1304
  return sortedWith(combinations, tmp$ret$4);
1396
1305
  };
1397
1306
  function DealerReducerImpl(logger, enableLogs) {
1398
- this.v63_1 = logger;
1399
- this.w63_1 = enableLogs;
1307
+ this.h67_1 = logger;
1308
+ this.i67_1 = enableLogs;
1400
1309
  }
1401
- protoOf(DealerReducerImpl).x63 = function (cards, cardsToRemove) {
1310
+ protoOf(DealerReducerImpl).j67 = function (cards, cardsToRemove) {
1402
1311
  var list = cards;
1403
1312
  var _iterator__ex2g4s = cardsToRemove.j();
1404
1313
  while (_iterator__ex2g4s.k()) {
1405
1314
  var gameCard = _iterator__ex2g4s.l();
1406
- list = this.y63(list, gameCard);
1315
+ list = this.k67(list, gameCard);
1407
1316
  }
1408
1317
  return list;
1409
1318
  };
1410
- protoOf(DealerReducerImpl).y63 = function (cards, cardToRemove) {
1319
+ protoOf(DealerReducerImpl).k67 = function (cards, cardToRemove) {
1411
1320
  var tmp;
1412
- if (!cardToRemove.l60() && cards.s1(cardToRemove)) {
1413
- if (this.w63_1) {
1414
- this.v63_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1321
+ if (!cardToRemove.s64() && cards.s1(cardToRemove)) {
1322
+ if (this.i67_1) {
1323
+ this.h67_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1415
1324
  }
1416
1325
  tmp = minus(cards, cardToRemove);
1417
1326
  } else {
1418
- if (this.w63_1) {
1419
- this.v63_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1327
+ if (this.i67_1) {
1328
+ this.h67_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1420
1329
  }
1421
1330
  // Inline function 'kotlin.collections.filterNot' call
1422
1331
  // Inline function 'kotlin.collections.filterNotTo' call
@@ -1425,7 +1334,7 @@
1425
1334
  while (tmp0_iterator.k()) {
1426
1335
  var element = tmp0_iterator.l();
1427
1336
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
1428
- if (!element.l60()) {
1337
+ if (!element.s64()) {
1429
1338
  destination.e(element);
1430
1339
  }
1431
1340
  }
@@ -1437,41 +1346,39 @@
1437
1346
  while (tmp0_iterator_0.k()) {
1438
1347
  var element_0 = tmp0_iterator_0.l();
1439
1348
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
1440
- if (element_0.l60()) {
1349
+ if (element_0.s64()) {
1441
1350
  destination_0.e(element_0);
1442
1351
  }
1443
1352
  }
1444
1353
  var stubCards = destination_0;
1445
1354
  if (stubCards.p()) {
1446
- this.v63_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
1355
+ this.h67_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
1447
1356
  }
1448
1357
  tmp = plus(notStubCards, dropLast(stubCards, 1));
1449
1358
  }
1450
1359
  return tmp;
1451
1360
  };
1452
- protoOf(DealerReducerImpl).z63 = function (cards, cardToAdd) {
1453
- if (this.w63_1) {
1454
- this.v63_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
1361
+ protoOf(DealerReducerImpl).l67 = function (cards, cardToAdd) {
1362
+ if (this.i67_1) {
1363
+ this.h67_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
1455
1364
  }
1456
1365
  if (cards.s1(cardToAdd)) {
1457
- this.v63_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
1366
+ this.h67_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
1458
1367
  }
1459
1368
  return plus_0(cards, cardToAdd);
1460
1369
  };
1461
1370
  function DealerReducer() {
1462
1371
  }
1463
1372
  //region block: post-declaration
1464
- protoOf(CardsDealerProviderImpl).x60 = createNewShuffledCardDeck$default;
1465
- protoOf(CardsDealerProviderImpl).a61 = standardShuffledCards$default;
1466
- protoOf(FakeCardsDealerProvider).x60 = createNewShuffledCardDeck$default;
1467
- protoOf(FakeCardsDealerProvider).a61 = standardShuffledCards$default;
1468
- protoOf(CombinationsCheckerProviderImpl).q63 = findCardsInRowCombinations$default;
1469
- protoOf(CombinationsCheckerProviderImpl).s63 = findSameCardsNumberCombinations$default;
1373
+ protoOf(CardsDealerProviderImpl).g65 = standardShuffledCards$default;
1374
+ protoOf(FakeCardsDealerProvider).g65 = standardShuffledCards$default;
1375
+ protoOf(CombinationsCheckerProviderImpl).c67 = findCardsInRowCombinations$default;
1376
+ protoOf(CombinationsCheckerProviderImpl).e67 = findSameCardsNumberCombinations$default;
1470
1377
  //endregion
1471
1378
  //region block: init
1472
1379
  CoreConfig_instance = new CoreConfig();
1473
- CardNumberComparator_instance = new CardNumberComparator();
1474
1380
  CardIndexComparator_instance = new CardIndexComparator();
1381
+ CardNumberComparator_instance = new CardNumberComparator();
1475
1382
  Companion_instance = new Companion();
1476
1383
  Companion_instance_0 = new Companion_0();
1477
1384
  Companion_instance_2 = new Companion_2();
@@ -1502,7 +1409,7 @@
1502
1409
  _.$_$.l = CardIndexComparator_instance;
1503
1410
  _.$_$.m = CardNumberComparator_instance;
1504
1411
  _.$_$.n = Companion_instance;
1505
- _.$_$.o = Companion_getInstance_2;
1412
+ _.$_$.o = Companion_getInstance_1;
1506
1413
  _.$_$.p = Companion_instance_2;
1507
1414
  _.$_$.q = GameCard;
1508
1415
  _.$_$.r = get_entries;