game_client_logic_deb 1.8.147 → 1.8.185

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 (61) hide show
  1. package/Kosi-Kaverit-kaverit.js +80 -80
  2. package/Kosi-Kodein-kodein-di.js +651 -651
  3. package/Kosi-Kodein-kodein-di.js.map +1 -1
  4. package/Kotlin-DateTime-library-kotlinx-datetime.js +5674 -321
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  6. package/Logic_Debertz-core.js +2007 -1712
  7. package/Logic_Debertz-core.js.map +1 -1
  8. package/Logic_Debertz-engine.js +19790 -15503
  9. package/Logic_Debertz-engine.js.map +1 -1
  10. package/Logic_Debertz-game_client.d.ts +383 -93
  11. package/Logic_Debertz-game_client.js +5036 -4822
  12. package/Logic_Debertz-game_client.js.map +1 -1
  13. package/kotlin-kotlin-stdlib.js +4016 -2922
  14. package/kotlin-kotlin-stdlib.js.map +1 -1
  15. package/kotlinx-atomicfu.js +35 -35
  16. package/kotlinx-atomicfu.js.map +1 -1
  17. package/kotlinx-coroutines-core.js +3755 -2723
  18. package/kotlinx-coroutines-core.js.map +1 -1
  19. package/kotlinx-io-kotlinx-io-core.js +302 -302
  20. package/kotlinx-io-kotlinx-io-core.js.map +1 -1
  21. package/kotlinx-serialization-kotlinx-serialization-core.js +2161 -2132
  22. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  23. package/kotlinx-serialization-kotlinx-serialization-json.js +1529 -1515
  24. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  25. package/ktor-ktor-client-content-negotiation.js +713 -0
  26. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  27. package/ktor-ktor-client-core.js +7207 -0
  28. package/ktor-ktor-client-core.js.map +1 -0
  29. package/ktor-ktor-client-js.js +15 -0
  30. package/ktor-ktor-client-js.js.map +1 -0
  31. package/ktor-ktor-client-logging.js +1506 -0
  32. package/ktor-ktor-client-logging.js.map +1 -0
  33. package/ktor-ktor-events.js +97 -0
  34. package/ktor-ktor-events.js.map +1 -0
  35. package/ktor-ktor-http.js +3263 -0
  36. package/ktor-ktor-http.js.map +1 -0
  37. package/ktor-ktor-io.js +6469 -0
  38. package/ktor-ktor-io.js.map +1 -0
  39. package/ktor-ktor-serialization-kotlinx-json.js +67 -0
  40. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  41. package/ktor-ktor-serialization-kotlinx.js +847 -0
  42. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  43. package/ktor-ktor-serialization.js +369 -0
  44. package/ktor-ktor-serialization.js.map +1 -0
  45. package/ktor-ktor-utils.js +2659 -0
  46. package/ktor-ktor-utils.js.map +1 -0
  47. package/ktor-ktor-websocket-serialization.js +15 -0
  48. package/ktor-ktor-websocket-serialization.js.map +1 -0
  49. package/ktor-ktor-websockets.js +466 -0
  50. package/ktor-ktor-websockets.js.map +1 -0
  51. package/package.json +5 -2
  52. package/raspberry-cardgame-lib-core.js +742 -560
  53. package/raspberry-cardgame-lib-core.js.map +1 -1
  54. package/raspberry-cardgame-lib-logger.js +408 -0
  55. package/raspberry-cardgame-lib-logger.js.map +1 -0
  56. package/raspberry-cardgame-lib-random.js +2756 -0
  57. package/raspberry-cardgame-lib-random.js.map +1 -0
  58. package/secure-random-secure-random.js +163 -5
  59. package/secure-random-secure-random.js.map +1 -1
  60. package/uuid.js +36 -36
  61. package/uuid.js.map +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js'], factory);
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);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'));
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'));
6
6
  else {
7
7
  if (typeof this['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'.");
@@ -10,56 +10,81 @@
10
10
  if (typeof this['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
- 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']);
13
+ if (typeof this['raspberry-cardgame-lib-random'] === 'undefined') {
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
+ }
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']);
14
23
  }
15
- }(globalThis, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) {
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) {
16
25
  'use strict';
17
26
  //region block: imports
18
27
  var imul = Math.imul;
19
- var protoOf = kotlin_kotlin.$_$.hb;
20
- var initMetadataForObject = kotlin_kotlin.$_$.pa;
21
- var defineProp = kotlin_kotlin.$_$.ca;
22
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
23
- var Unit_instance = kotlin_kotlin.$_$.a5;
24
- var THROW_CCE = kotlin_kotlin.$_$.fe;
25
- var Comparator = kotlin_kotlin.$_$.rd;
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;
26
35
  var VOID = kotlin_kotlin.$_$.f;
27
- var take = kotlin_kotlin.$_$.m8;
28
- var toList = kotlin_kotlin.$_$.p8;
29
- var takeLast = kotlin_kotlin.$_$.l8;
30
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.cf;
31
- var initMetadataForCompanion = kotlin_kotlin.$_$.la;
32
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.q1;
33
- var Enum = kotlin_kotlin.$_$.ud;
34
- var initMetadataForClass = kotlin_kotlin.$_$.ka;
35
- var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
36
- var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.j;
37
- var lazy = kotlin_kotlin.$_$.af;
38
- var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
39
- var enumEntries = kotlin_kotlin.$_$.r9;
40
- var initMetadataForInterface = kotlin_kotlin.$_$.na;
41
- var first = kotlin_kotlin.$_$.x6;
42
- var sorted = kotlin_kotlin.$_$.j8;
43
- var asReversed = kotlin_kotlin.$_$.u5;
44
- var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.v1;
45
- var sortedWith = kotlin_kotlin.$_$.i8;
46
- var lastOrNull = kotlin_kotlin.$_$.l7;
47
- var toMutableList = kotlin_kotlin.$_$.s8;
48
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
49
- var collectionSizeOrDefault = kotlin_kotlin.$_$.y5;
50
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
51
- var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.t1;
52
- var compareTo = kotlin_kotlin.$_$.ba;
53
- var toString = kotlin_kotlin.$_$.lb;
54
- var dropLast = kotlin_kotlin.$_$.p6;
55
- var plus = kotlin_kotlin.$_$.a8;
56
- var minus = kotlin_kotlin.$_$.v7;
57
- var plus_0 = kotlin_kotlin.$_$.b8;
58
- var mutableListOf = kotlin_kotlin.$_$.w7;
59
- var printStackTrace = kotlin_kotlin.$_$.ef;
60
- var isBlank = kotlin_kotlin.$_$.lc;
61
- var stackTraceToString = kotlin_kotlin.$_$.ff;
62
- var toString_0 = kotlin_kotlin.$_$.hf;
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;
41
+ 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;
46
+ 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;
53
+ 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;
74
+ 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;
79
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
80
+ var sortedWith = kotlin_kotlin.$_$.g9;
81
+ 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;
63
88
  //endregion
64
89
  //region block: pre-declaration
65
90
  initMetadataForObject(CoreConfig, 'CoreConfig');
@@ -70,74 +95,48 @@
70
95
  initMetadataForCompanion(Companion_0);
71
96
  initMetadataForClass(GameCard, 'GameCard');
72
97
  initMetadataForCompanion(Companion_1, VOID, [SerializerFactory]);
73
- initMetadataForClass(Suit, 'Suit', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_1});
98
+ initMetadataForClass(Suit, 'Suit', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_2});
99
+ 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
+ }
74
107
  function standardShuffledCards$default(cards, times, $super) {
75
108
  times = times === VOID ? 3 : times;
76
- return $super === VOID ? this.s2m(cards, times) : $super.s2m.call(this, cards, times);
109
+ return $super === VOID ? this.z60(cards, times) : $super.z60.call(this, cards, times);
77
110
  }
78
- initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider');
111
+ initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [6]);
112
+ initMetadataForCompanion(Companion_2);
113
+ initMetadataForLambda(CardsDealerProviderImpl$getRandomOrgCards$slambda, CoroutineImpl, VOID, [1]);
114
+ initMetadataForCoroutine($createNewShuffledCardDeckCOROUTINE$0, CoroutineImpl);
115
+ initMetadataForCoroutine($getRandomOrgCardsCOROUTINE$1, CoroutineImpl);
116
+ initMetadataForClass(CardsDealerProviderImpl, 'CardsDealerProviderImpl', VOID, VOID, [CardsDealerProvider], [6]);
117
+ initMetadataForCompanion(Companion_3);
118
+ initMetadataForClass(FakeCardsDealerProvider, 'FakeCardsDealerProvider', FakeCardsDealerProvider, VOID, [CardsDealerProvider], [6]);
79
119
  function findCardsInRowCombinations$default(cards, supportedCombinations, checkFromIndex, includeCardNames, suit, $super) {
80
120
  checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
81
121
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
82
122
  suit = suit === VOID ? null : suit;
83
- return $super === VOID ? this.u2m(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.u2m.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
123
+ return $super === VOID ? this.p63(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.p63.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
84
124
  }
85
125
  function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
86
126
  cardsCount = cardsCount === VOID ? 4 : cardsCount;
87
127
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
88
- return $super === VOID ? this.w2m(cards, cardsCount, includeCardNames) : $super.w2m.call(this, cards, cardsCount, includeCardNames);
128
+ return $super === VOID ? this.r63(cards, cardsCount, includeCardNames) : $super.r63.call(this, cards, cardsCount, includeCardNames);
89
129
  }
90
130
  initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
131
+ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator]);
91
132
  initMetadataForClass(CombinationsCheckerProviderImpl, 'CombinationsCheckerProviderImpl', CombinationsCheckerProviderImpl, VOID, [CombinationsCheckerProvider]);
92
133
  initMetadataForInterface(DealerReducer, 'DealerReducer');
93
134
  initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
94
- initMetadataForCompanion(Companion_2);
95
- function d(tag, message, payload, $super) {
96
- tag = tag === VOID ? null : tag;
97
- payload = payload === VOID ? null : payload;
98
- return this.h2n(tag, message, payload);
99
- }
100
- function e(tag, message, exception, payload, $super) {
101
- tag = tag === VOID ? null : tag;
102
- message = message === VOID ? null : message;
103
- exception = exception === VOID ? null : exception;
104
- payload = payload === VOID ? null : payload;
105
- return this.i2n(tag, message, exception, payload);
106
- }
107
- function w(tag, message, exception, payload, $super) {
108
- tag = tag === VOID ? null : tag;
109
- message = message === VOID ? null : message;
110
- exception = exception === VOID ? null : exception;
111
- payload = payload === VOID ? null : payload;
112
- return this.j2n(tag, message, exception, payload);
113
- }
114
- function v(tag, message, exception, payload, $super) {
115
- tag = tag === VOID ? null : tag;
116
- message = message === VOID ? null : message;
117
- exception = exception === VOID ? null : exception;
118
- payload = payload === VOID ? null : payload;
119
- return this.k2n(tag, message, exception, payload);
120
- }
121
- function i(tag, message, payload, $super) {
122
- tag = tag === VOID ? null : tag;
123
- payload = payload === VOID ? null : payload;
124
- return this.l2n(tag, message, payload);
125
- }
126
- initMetadataForInterface(LoggerOutput, 'LoggerOutput');
127
- initMetadataForInterface(RaspberryLogger, 'RaspberryLogger', VOID, VOID, [LoggerOutput]);
128
- initMetadataForClass(CombinedRaspberryLogger, 'CombinedRaspberryLogger', VOID, VOID, [RaspberryLogger]);
129
- initMetadataForInterface(LoggerEnabledTrigger, 'LoggerEnabledTrigger', VOID, VOID, [RaspberryLogger]);
130
- initMetadataForInterface(LoggerPayload, 'LoggerPayload');
131
- initMetadataForClass(PlatformRaspberryLogger, 'PlatformRaspberryLogger', PlatformRaspberryLogger, VOID, [RaspberryLogger, LoggerEnabledTrigger]);
132
- initMetadataForClass(Category, 'Category', VOID, Enum);
133
- initMetadataForClass(Logger$loggerSource$1);
134
- initMetadataForObject(Logger, 'Logger');
135
- initMetadataForClass(PlatformLogger, 'PlatformLogger', PlatformLogger);
136
135
  //endregion
137
136
  function CoreConfig() {
138
- this.version = '0.0.22';
137
+ this.version = '0.0.33';
139
138
  }
140
- protoOf(CoreConfig).a2m = function () {
139
+ protoOf(CoreConfig).t2w = function () {
141
140
  return this.version;
142
141
  };
143
142
  var CoreConfig_instance;
@@ -160,12 +159,12 @@
160
159
  }
161
160
  function CardNumberComparator() {
162
161
  }
163
- protoOf(CardNumberComparator).b2m = function (a, b) {
164
- return b.d2m() - a.d2m() | 0;
162
+ protoOf(CardNumberComparator).e60 = function (a, b) {
163
+ return b.g60() - a.g60() | 0;
165
164
  };
166
165
  protoOf(CardNumberComparator).compare = function (a, b) {
167
166
  var tmp = a instanceof GameCard ? a : THROW_CCE();
168
- return this.b2m(tmp, b instanceof GameCard ? b : THROW_CCE());
167
+ return this.e60(tmp, b instanceof GameCard ? b : THROW_CCE());
169
168
  };
170
169
  var CardNumberComparator_instance;
171
170
  function CardNumberComparator_getInstance() {
@@ -173,12 +172,12 @@
173
172
  }
174
173
  function CardIndexComparator() {
175
174
  }
176
- protoOf(CardIndexComparator).b2m = function (a, b) {
177
- return a.c2m_1 - b.c2m_1 | 0;
175
+ protoOf(CardIndexComparator).e60 = function (a, b) {
176
+ return a.f60_1 - b.f60_1 | 0;
178
177
  };
179
178
  protoOf(CardIndexComparator).compare = function (a, b) {
180
179
  var tmp = a instanceof GameCard ? a : THROW_CCE();
181
- return this.b2m(tmp, b instanceof GameCard ? b : THROW_CCE());
180
+ return this.e60(tmp, b instanceof GameCard ? b : THROW_CCE());
182
181
  };
183
182
  var CardIndexComparator_instance;
184
183
  function CardIndexComparator_getInstance() {
@@ -189,12 +188,12 @@
189
188
  }
190
189
  function distributeCardsBottom(_this__u8e3s4, count) {
191
190
  var cardsToDeal = toList(take(_this__u8e3s4, count));
192
- _this__u8e3s4.x1(cardsToDeal);
191
+ _this__u8e3s4.z1(cardsToDeal);
193
192
  return cardsToDeal;
194
193
  }
195
194
  function distributeCardsTop(_this__u8e3s4, count) {
196
195
  var cardsToDeal = toList(takeLast(_this__u8e3s4, count));
197
- _this__u8e3s4.x1(cardsToDeal);
196
+ _this__u8e3s4.z1(cardsToDeal);
198
197
  return cardsToDeal;
199
198
  }
200
199
  function byCardNamePredicate$lambda($types) {
@@ -209,7 +208,7 @@
209
208
  var element = indexedObject[inductionVariable];
210
209
  inductionVariable = inductionVariable + 1 | 0;
211
210
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.byCardNamePredicate.<anonymous>.<anonymous>' call
212
- if (p1.o2().equals(element)) {
211
+ if (p1.p2().equals(element)) {
213
212
  tmp$ret$1 = true;
214
213
  break $l$block;
215
214
  }
@@ -235,7 +234,7 @@
235
234
  var CardName_STUB_instance;
236
235
  function getShortName($this) {
237
236
  var tmp;
238
- switch ($this.n2_1) {
237
+ switch ($this.o2_1) {
239
238
  case 0:
240
239
  tmp = 'A';
241
240
  break;
@@ -306,10 +305,16 @@
306
305
  }
307
306
  function Companion() {
308
307
  }
309
- protoOf(Companion).e2m = function (suit, cardNumber) {
308
+ protoOf(Companion).h60 = function (suit, number) {
309
+ return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
310
+ };
311
+ protoOf(Companion).i60 = function (suit, cardNumber) {
310
312
  return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
311
313
  };
312
- protoOf(Companion).f2m = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
314
+ protoOf(Companion).j60 = function (index) {
315
+ return new GameCard(index);
316
+ };
317
+ protoOf(Companion).k60 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
313
318
  var tmp;
314
319
  if (previousStubCardWithMaxIndex == null) {
315
320
  tmp = null;
@@ -318,27 +323,27 @@
318
323
  // Inline function 'kotlin.contracts.contract' call
319
324
  var tmp_0;
320
325
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
321
- if (previousStubCardWithMaxIndex.g2m()) {
326
+ if (previousStubCardWithMaxIndex.l60()) {
322
327
  tmp_0 = previousStubCardWithMaxIndex;
323
328
  } else {
324
329
  tmp_0 = null;
325
330
  }
326
331
  tmp = tmp_0;
327
332
  }
328
- var tmp1_safe_receiver = tmp;
329
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c2m_1;
330
- var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.l2m(tmp2_safe_receiver, playerIndex, reverse);
333
+ 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);
331
336
  var tmp_1;
332
- if (tmp3_safe_receiver == null) {
337
+ if (tmp5_safe_receiver == null) {
333
338
  tmp_1 = null;
334
339
  } else {
335
340
  // Inline function 'kotlin.let' call
336
341
  // Inline function 'kotlin.contracts.contract' call
337
342
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
338
- tmp_1 = tmp3_safe_receiver + 1 | 0;
343
+ tmp_1 = tmp5_safe_receiver + 1 | 0;
339
344
  }
340
- var tmp4_elvis_lhs = tmp_1;
341
- var previousGameCardIndex = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
345
+ var tmp0_elvis_lhs = tmp_1;
346
+ var previousGameCardIndex = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
342
347
  var tmp_2;
343
348
  if (reverse) {
344
349
  tmp_2 = ((53 + imul(playerIndex, 14) | 0) - position | 0) - previousGameCardIndex | 0;
@@ -348,13 +353,13 @@
348
353
  var index = tmp_2;
349
354
  return new GameCard(index);
350
355
  };
351
- protoOf(Companion).m2m = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
356
+ protoOf(Companion).r60 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
352
357
  previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
353
358
  reverse = reverse === VOID ? false : reverse;
354
- return $super === VOID ? this.f2m(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.f2m.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
359
+ return $super === VOID ? this.k60(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.k60.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
355
360
  };
356
361
  var Companion_instance;
357
- function Companion_getInstance() {
362
+ function Companion_getInstance_0() {
358
363
  return Companion_instance;
359
364
  }
360
365
  function getNumber($this, cardNumber, suit) {
@@ -362,7 +367,7 @@
362
367
  }
363
368
  function getCardNumber($this, number) {
364
369
  var tmp;
365
- switch (number.n2_1) {
370
+ switch (number.o2_1) {
366
371
  case 12:
367
372
  tmp = 0;
368
373
  break;
@@ -455,7 +460,7 @@
455
460
  return tmp;
456
461
  }
457
462
  function _get_isShirt__vd98rp($this) {
458
- return $this.c2m_1 === 52;
463
+ return $this.f60_1 === 52;
459
464
  }
460
465
  function CardName(name, ordinal) {
461
466
  Enum.call(this, name, ordinal);
@@ -464,12 +469,12 @@
464
469
  return getShortName(this);
465
470
  };
466
471
  function Companion_0() {
467
- this.h2m_1 = -1;
468
- this.i2m_1 = 13;
469
- this.j2m_1 = 52;
470
- this.k2m_1 = 53;
472
+ this.m60_1 = -1;
473
+ this.n60_1 = 13;
474
+ this.o60_1 = 52;
475
+ this.p60_1 = 53;
471
476
  }
472
- protoOf(Companion_0).l2m = function (_this__u8e3s4, playerIndex, reverse) {
477
+ protoOf(Companion_0).q60 = function (_this__u8e3s4, playerIndex, reverse) {
473
478
  var tmp;
474
479
  if (reverse) {
475
480
  tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
@@ -479,7 +484,7 @@
479
484
  return tmp;
480
485
  };
481
486
  var Companion_instance_0;
482
- function Companion_getInstance_0() {
487
+ function Companion_getInstance_1() {
483
488
  return Companion_instance_0;
484
489
  }
485
490
  function CardName_ACE_getInstance() {
@@ -539,59 +544,59 @@
539
544
  return CardName_STUB_instance;
540
545
  }
541
546
  function GameCard(index) {
542
- this.c2m_1 = index;
547
+ this.f60_1 = index;
543
548
  }
544
- protoOf(GameCard).n2m = function () {
549
+ protoOf(GameCard).s60 = function () {
545
550
  var tmp;
546
- var containsArg = this.c2m_1;
551
+ var containsArg = this.f60_1;
547
552
  if (0 <= containsArg ? containsArg <= 13 : false) {
548
553
  tmp = Suit_DIAMOND_getInstance();
549
554
  } else {
550
- if (this.c2m_1 <= 26) {
555
+ if (this.f60_1 <= 26) {
551
556
  tmp = Suit_SPADE_getInstance();
552
557
  } else {
553
- if (this.c2m_1 <= 39) {
558
+ if (this.f60_1 <= 39) {
554
559
  tmp = Suit_HEART_getInstance();
555
560
  } else {
556
- if (this.c2m_1 <= 52) {
561
+ if (this.f60_1 <= 52) {
557
562
  tmp = Suit_CLUB_getInstance();
558
563
  } else {
559
- throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.c2m_1);
564
+ throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.f60_1);
560
565
  }
561
566
  }
562
567
  }
563
568
  }
564
569
  return tmp;
565
570
  };
566
- protoOf(GameCard).d2m = function () {
571
+ protoOf(GameCard).g60 = function () {
567
572
  var tmp;
568
- if (this.g2m()) {
573
+ if (this.l60()) {
569
574
  tmp = -1;
570
575
  } else {
571
- tmp = this.c2m_1 - imul(13, getIndex(this.n2m())) | 0;
576
+ tmp = this.f60_1 - imul(13, getIndex(this.s60())) | 0;
572
577
  }
573
578
  return tmp;
574
579
  };
575
- protoOf(GameCard).o2 = function () {
576
- return this.g2m() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.d2m());
580
+ protoOf(GameCard).p2 = function () {
581
+ return this.l60() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.g60());
577
582
  };
578
- protoOf(GameCard).o2m = function () {
579
- return !_get_isShirt__vd98rp(this) && !this.g2m();
583
+ protoOf(GameCard).t60 = function () {
584
+ return !_get_isShirt__vd98rp(this) && !this.l60();
580
585
  };
581
- protoOf(GameCard).g2m = function () {
582
- return this.c2m_1 >= 53;
586
+ protoOf(GameCard).l60 = function () {
587
+ return this.f60_1 >= 53;
583
588
  };
584
589
  protoOf(GameCard).toString = function () {
585
590
  if (_get_isShirt__vd98rp(this)) {
586
591
  return 'GameCard(SHIRT)';
587
592
  }
588
- if (this.g2m()) {
589
- return 'GameCard(STUB, ' + this.c2m_1 + ')';
593
+ if (this.l60()) {
594
+ return 'GameCard(STUB, ' + this.f60_1 + ')';
590
595
  }
591
- return 'GameCard(' + this.n2m().toString() + this.o2().toString() + ', ' + this.c2m_1 + ')';
596
+ return 'GameCard(' + this.s60().toString() + this.p2().toString() + ', ' + this.f60_1 + ')';
592
597
  };
593
598
  protoOf(GameCard).hashCode = function () {
594
- return this.c2m_1;
599
+ return this.f60_1;
595
600
  };
596
601
  protoOf(GameCard).equals = function (other) {
597
602
  if (this === other)
@@ -599,12 +604,12 @@
599
604
  if (!(other instanceof GameCard))
600
605
  return false;
601
606
  var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
602
- if (!(this.c2m_1 === tmp0_other_with_cast.c2m_1))
607
+ if (!(this.f60_1 === tmp0_other_with_cast.f60_1))
603
608
  return false;
604
609
  return true;
605
610
  };
606
611
  function _get_$cachedSerializer__te6jhj($this) {
607
- return $this.p2m_1.e2();
612
+ return $this.u60_1.u();
608
613
  }
609
614
  function Suit$Companion$_anonymous__cbm2iq() {
610
615
  return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
@@ -615,7 +620,7 @@
615
620
  var Suit_CLUB_instance;
616
621
  function getSuitEmoji($this) {
617
622
  var tmp;
618
- switch ($this.n2_1) {
623
+ switch ($this.o2_1) {
619
624
  case 0:
620
625
  tmp = '\u2666\uFE0F';
621
626
  break;
@@ -634,33 +639,33 @@
634
639
  }
635
640
  return tmp;
636
641
  }
642
+ function values() {
643
+ return [Suit_DIAMOND_getInstance(), Suit_SPADE_getInstance(), Suit_HEART_getInstance(), Suit_CLUB_getInstance()];
644
+ }
645
+ function get_entries() {
646
+ if ($ENTRIES == null)
647
+ $ENTRIES = enumEntries(values());
648
+ return $ENTRIES;
649
+ }
637
650
  function Companion_1() {
638
651
  Companion_instance_1 = this;
639
652
  var tmp = this;
640
653
  var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
641
- tmp.p2m_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
654
+ tmp.u60_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
642
655
  }
643
- protoOf(Companion_1).o22 = function () {
656
+ protoOf(Companion_1).t4t = function () {
644
657
  return _get_$cachedSerializer__te6jhj(this);
645
658
  };
646
- protoOf(Companion_1).e1r = function (typeParamsSerializers) {
647
- return this.o22();
659
+ protoOf(Companion_1).w4d = function (typeParamsSerializers) {
660
+ return this.t4t();
648
661
  };
649
662
  var Companion_instance_1;
650
- function Companion_getInstance_1() {
663
+ function Companion_getInstance_2() {
651
664
  Suit_initEntries();
652
665
  if (Companion_instance_1 == null)
653
666
  new Companion_1();
654
667
  return Companion_instance_1;
655
668
  }
656
- function values() {
657
- return [Suit_DIAMOND_getInstance(), Suit_SPADE_getInstance(), Suit_HEART_getInstance(), Suit_CLUB_getInstance()];
658
- }
659
- function get_entries() {
660
- if ($ENTRIES == null)
661
- $ENTRIES = enumEntries(values());
662
- return $ENTRIES;
663
- }
664
669
  var Suit_entriesInitialized;
665
670
  function Suit_initEntries() {
666
671
  if (Suit_entriesInitialized)
@@ -670,7 +675,7 @@
670
675
  Suit_SPADE_instance = new Suit('SPADE', 1);
671
676
  Suit_HEART_instance = new Suit('HEART', 2);
672
677
  Suit_CLUB_instance = new Suit('CLUB', 3);
673
- Companion_getInstance_1();
678
+ Companion_getInstance_2();
674
679
  }
675
680
  var $ENTRIES;
676
681
  function Suit(name, ordinal) {
@@ -697,7 +702,7 @@
697
702
  }
698
703
  function getIndex(_this__u8e3s4) {
699
704
  var tmp;
700
- switch (_this__u8e3s4.n2_1) {
705
+ switch (_this__u8e3s4.o2_1) {
701
706
  case 0:
702
707
  tmp = 0;
703
708
  break;
@@ -716,13 +721,484 @@
716
721
  }
717
722
  return tmp;
718
723
  }
724
+ var CardsRandomProvider_CUSTOM_instance;
725
+ var CardsRandomProvider_RANDOM_ORG_instance;
726
+ var CardsRandomProvider_RANDOM_ORG_SIGNED_instance;
727
+ var CardsRandomProvider_entriesInitialized;
728
+ function CardsRandomProvider_initEntries() {
729
+ if (CardsRandomProvider_entriesInitialized)
730
+ return Unit_instance;
731
+ CardsRandomProvider_entriesInitialized = true;
732
+ CardsRandomProvider_CUSTOM_instance = new CardsRandomProvider('CUSTOM', 0);
733
+ CardsRandomProvider_RANDOM_ORG_instance = new CardsRandomProvider('RANDOM_ORG', 1);
734
+ CardsRandomProvider_RANDOM_ORG_SIGNED_instance = new CardsRandomProvider('RANDOM_ORG_SIGNED', 2);
735
+ }
736
+ function CardsRandomProvider(name, ordinal) {
737
+ Enum.call(this, name, ordinal);
738
+ }
739
+ function CardsRandomProvider_CUSTOM_getInstance() {
740
+ CardsRandomProvider_initEntries();
741
+ return CardsRandomProvider_CUSTOM_instance;
742
+ }
743
+ function CardsRandomProvider_RANDOM_ORG_getInstance() {
744
+ CardsRandomProvider_initEntries();
745
+ return CardsRandomProvider_RANDOM_ORG_instance;
746
+ }
747
+ function CardsRandomProvider_RANDOM_ORG_SIGNED_getInstance() {
748
+ CardsRandomProvider_initEntries();
749
+ return CardsRandomProvider_RANDOM_ORG_SIGNED_instance;
750
+ }
719
751
  function CardsDealerProvider() {
720
752
  }
753
+ function getCardsRange($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
754
+ return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
755
+ }
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();
761
+ }
762
+ function normalizeCards($this, cards, leftCardIndexForEachSuit) {
763
+ var oneSuitCount = cards.m() / get_entries().m() | 0;
764
+ // Inline function 'kotlin.collections.map' call
765
+ // Inline function 'kotlin.collections.mapTo' call
766
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(cards, 10));
767
+ var tmp0_iterator = cards.j();
768
+ while (tmp0_iterator.k()) {
769
+ var item = tmp0_iterator.l();
770
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.normalizeCards.<anonymous>' call
771
+ var previousSuitNumber = item / oneSuitCount | 0;
772
+ var cardIndexShift = imul(leftCardIndexForEachSuit, previousSuitNumber + 1 | 0);
773
+ var newIndex = item + cardIndexShift | 0;
774
+ destination.e(newIndex);
775
+ }
776
+ var newIndexes = destination;
777
+ return newIndexes;
778
+ }
779
+ function Companion_2() {
780
+ }
781
+ protoOf(Companion_2).u61 = function (randomPoolProvider, logger) {
782
+ var tmp16_random = new SecureRandom(logger);
783
+ return new CardsDealerProviderImpl(tmp16_random, randomPoolProvider, logger);
784
+ };
785
+ var Companion_instance_2;
786
+ function Companion_getInstance_3() {
787
+ return Companion_instance_2;
788
+ }
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) {
865
+ 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;
876
+ $sm: do
877
+ try {
878
+ var tmp = this.d9_1;
879
+ switch (tmp) {
880
+ 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) {
885
+ 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;
889
+ continue $sm;
890
+ } 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);
894
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
895
+ return suspendResult;
896
+ }
897
+ continue $sm;
898
+ } 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);
902
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
903
+ return suspendResult;
904
+ }
905
+ continue $sm;
906
+ } else {
907
+ var tmp_1 = this;
908
+ noWhenBranchMatchedException();
909
+ }
910
+ }
911
+ }
912
+
913
+ break;
914
+ case 1:
915
+ this.k63_1 = suspendResult;
916
+ this.d9_1 = 3;
917
+ continue $sm;
918
+ case 2:
919
+ this.k63_1 = suspendResult;
920
+ this.d9_1 = 3;
921
+ continue $sm;
922
+ case 3:
923
+ return this.k63_1;
924
+ case 4:
925
+ throw this.g9_1;
926
+ }
927
+ } catch ($p) {
928
+ var e = $p;
929
+ if (this.e9_1 === 4) {
930
+ throw e;
931
+ } else {
932
+ this.d9_1 = this.e9_1;
933
+ this.g9_1 = e;
934
+ }
935
+ }
936
+ while (true);
937
+ };
938
+ function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, timeoutMillis, signed, resultContinuation) {
939
+ 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;
950
+ $sm: do
951
+ try {
952
+ var tmp = this.d9_1;
953
+ switch (tmp) {
954
+ case 0:
955
+ this.e9_1 = 8;
956
+ var tmp_0 = this;
957
+ var sum = 0;
958
+ var tmp0_iterator = get_entries().j();
959
+ while (tmp0_iterator.k()) {
960
+ var element = tmp0_iterator.l();
961
+ var tmp_1 = sum;
962
+ sum = tmp_1 + count(getCardsRange(this.j61_1, this.k61_1, this.l61_1)) | 0;
963
+ }
964
+
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);
993
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
994
+ return suspendResult;
995
+ }
996
+
997
+ 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;
1010
+ continue $sm;
1011
+ } 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;
1021
+ }
1022
+
1023
+ continue $sm;
1024
+ case 6:
1025
+ return suspendResult;
1026
+ case 7:
1027
+ return suspendResult;
1028
+ case 8:
1029
+ throw this.g9_1;
1030
+ }
1031
+ } catch ($p) {
1032
+ var e = $p;
1033
+ if (this.e9_1 === 8) {
1034
+ throw e;
1035
+ } else {
1036
+ this.d9_1 = this.e9_1;
1037
+ this.g9_1 = e;
1038
+ }
1039
+ }
1040
+ while (true);
1041
+ };
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) {
1063
+ // Inline function 'kotlin.collections.flatMap' call
1064
+ // Inline function 'kotlin.collections.flatMapTo' call
1065
+ var this_0 = get_entries();
1066
+ var destination = ArrayList_init_$Create$();
1067
+ var tmp0_iterator = this_0.j();
1068
+ while (tmp0_iterator.k()) {
1069
+ var element = tmp0_iterator.l();
1070
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>' call
1071
+ // Inline function 'kotlin.collections.map' call
1072
+ var this_1 = getCardsRange(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit);
1073
+ // Inline function 'kotlin.collections.mapTo' call
1074
+ 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
+ }
1082
+ var list = destination_0;
1083
+ addAll(destination, list);
1084
+ }
1085
+ return destination;
1086
+ };
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();
1092
+ };
1093
+ protoOf(CardsDealerProviderImpl).y60 = function (count, cards) {
1094
+ // Inline function 'kotlin.apply' call
1095
+ // Inline function 'kotlin.collections.mutableListOf' call
1096
+ var this_0 = ArrayList_init_$Create$();
1097
+ // Inline function 'kotlin.contracts.contract' call
1098
+ $l$block: {
1099
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>' call
1100
+ var _iterator__ex2g4s = cards.j();
1101
+ $l$loop_0: while (_iterator__ex2g4s.k()) {
1102
+ var card = _iterator__ex2g4s.l();
1103
+ if (this_0.m() === count) {
1104
+ break $l$block;
1105
+ }
1106
+ var hasSimilarCard = this_0.s1(card);
1107
+ if (hasSimilarCard) {
1108
+ continue $l$loop_0;
1109
+ }
1110
+ var tmp$ret$2;
1111
+ $l$block_1: {
1112
+ // Inline function 'kotlin.collections.any' call
1113
+ var tmp;
1114
+ if (isInterface(this_0, Collection)) {
1115
+ tmp = this_0.p();
1116
+ } else {
1117
+ tmp = false;
1118
+ }
1119
+ if (tmp) {
1120
+ tmp$ret$2 = false;
1121
+ break $l$block_1;
1122
+ }
1123
+ var tmp0_iterator = this_0.j();
1124
+ while (tmp0_iterator.k()) {
1125
+ var element = tmp0_iterator.l();
1126
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
1127
+ if (element.g60() === card.g60()) {
1128
+ tmp$ret$2 = true;
1129
+ break $l$block_1;
1130
+ }
1131
+ }
1132
+ tmp$ret$2 = false;
1133
+ }
1134
+ if (tmp$ret$2) {
1135
+ continue $l$loop_0;
1136
+ }
1137
+ this_0.e(card);
1138
+ }
1139
+ }
1140
+ return this_0;
1141
+ };
1142
+ protoOf(CardsDealerProviderImpl).z60 = function (cards, times) {
1143
+ // Inline function 'kotlin.let' call
1144
+ // Inline function 'kotlin.contracts.contract' call
1145
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
1146
+ var shuffled = toMutableList(cards);
1147
+ var inductionVariable = 0;
1148
+ if (inductionVariable < times)
1149
+ do {
1150
+ var i = inductionVariable;
1151
+ inductionVariable = inductionVariable + 1 | 0;
1152
+ shuffled = this.m62_1.v5q(shuffled);
1153
+ }
1154
+ while (inductionVariable < times);
1155
+ return shuffled;
1156
+ };
1157
+ function Companion_3() {
1158
+ }
1159
+ protoOf(Companion_3).l63 = function () {
1160
+ // Inline function 'kotlin.apply' call
1161
+ // Inline function 'kotlin.collections.mutableListOf' call
1162
+ var this_0 = ArrayList_init_$Create$();
1163
+ // Inline function 'kotlin.contracts.contract' call
1164
+ // 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())]));
1170
+ return this_0;
1171
+ };
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())]);
1174
+ };
1175
+ var Companion_instance_3;
1176
+ function Companion_getInstance_4() {
1177
+ return Companion_instance_3;
1178
+ }
1179
+ 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;
1184
+ }
1185
+ protoOf(FakeCardsDealerProvider).v60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1186
+ return this.n63_1;
1187
+ };
1188
+ protoOf(FakeCardsDealerProvider).w60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion) {
1189
+ return this.n63_1;
1190
+ };
1191
+ protoOf(FakeCardsDealerProvider).y60 = function (count, cards) {
1192
+ return this.o63_1;
1193
+ };
1194
+ protoOf(FakeCardsDealerProvider).z60 = function (cards, times) {
1195
+ return cards;
1196
+ };
721
1197
  function CombinationsCheckerProvider() {
722
1198
  }
723
1199
  function createCombination($this, cards, supportedCombinations) {
724
1200
  var size = cards.m();
725
- if (supportedCombinations.q1(size)) {
1201
+ if (supportedCombinations.s1(size)) {
726
1202
  return cards;
727
1203
  }
728
1204
  var fromLongestCombinations = asReversed(sorted(supportedCombinations));
@@ -743,18 +1219,39 @@
743
1219
  var longestCombinationSupport = tmp$ret$1;
744
1220
  return takeLast(cards, longestCombinationSupport);
745
1221
  }
1222
+ function sam$kotlin_Comparator$0(function_0) {
1223
+ this.u63_1 = function_0;
1224
+ }
1225
+ protoOf(sam$kotlin_Comparator$0).jc = function (a, b) {
1226
+ return this.u63_1(a, b);
1227
+ };
1228
+ protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
1229
+ return this.jc(a, b);
1230
+ };
1231
+ function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
1232
+ // Inline function 'kotlin.comparisons.compareValuesBy' call
1233
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
1234
+ var tmp = first_0(a).f60_1;
1235
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
1236
+ var tmp$ret$1 = first_0(b).f60_1;
1237
+ return compareValues(tmp, tmp$ret$1);
1238
+ }
746
1239
  function CombinationsCheckerProviderImpl() {
747
1240
  }
748
- protoOf(CombinationsCheckerProviderImpl).u2m = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
1241
+ protoOf(CombinationsCheckerProviderImpl).p63 = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
749
1242
  // Inline function 'kotlin.collections.filter' call
1243
+ // Inline function 'kotlin.apply' call
1244
+ var this_0 = toMutableList(cards);
1245
+ // Inline function 'kotlin.contracts.contract' call
1246
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
1247
+ sortWith(this_0, CardIndexComparator_instance);
750
1248
  // Inline function 'kotlin.collections.filterTo' call
751
- var this_0 = sortedWith(cards, CardIndexComparator_instance);
752
1249
  var destination = ArrayList_init_$Create$();
753
1250
  var tmp0_iterator = this_0.j();
754
1251
  while (tmp0_iterator.k()) {
755
1252
  var element = tmp0_iterator.l();
756
1253
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
757
- if (element.o2m()) {
1254
+ if (element.t60()) {
758
1255
  destination.e(element);
759
1256
  }
760
1257
  }
@@ -771,16 +1268,16 @@
771
1268
  inductionVariable = inductionVariable + 1 | 0;
772
1269
  var previousCard = lastOrNull(combinationCards);
773
1270
  var currentCard = sortedByIndexCards.o(i);
774
- var isNextInRow = !(previousCard == null) && currentCard.c2m_1 === (previousCard.c2m_1 + 1 | 0) && currentCard.n2m().equals(previousCard.n2m());
775
- var passedCardNamesCheck = includeCardNames == null || includeCardNames.q1(currentCard.o2());
776
- var passedSuitCheck = suit == null || currentCard.n2m().equals(suit);
1271
+ var isNextInRow = !(previousCard == null) && currentCard.f60_1 === (previousCard.f60_1 + 1 | 0) && currentCard.s60().equals(previousCard.s60());
1272
+ var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.p2());
1273
+ var passedSuitCheck = suit == null || currentCard.s60().equals(suit);
777
1274
  if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
778
1275
  combinationCards.e(currentCard);
779
1276
  } else {
780
1277
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
781
- combinations.n(this.y2m(toMutableList(combinationCards), supportedCombinations));
1278
+ combinations.n(this.t63(toMutableList(combinationCards), supportedCombinations));
782
1279
  }
783
- combinationCards.z1();
1280
+ combinationCards.a2();
784
1281
  if (passedSuitCheck && passedCardNamesCheck) {
785
1282
  combinationCards.e(currentCard);
786
1283
  }
@@ -788,21 +1285,25 @@
788
1285
  }
789
1286
  while (inductionVariable <= last);
790
1287
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
791
- combinations.n(this.y2m(toMutableList(combinationCards), supportedCombinations));
1288
+ combinations.n(this.t63(toMutableList(combinationCards), supportedCombinations));
792
1289
  }
793
1290
  return combinations;
794
1291
  };
795
- protoOf(CombinationsCheckerProviderImpl).w2m = function (cards, cardsCount, includeCardNames) {
1292
+ protoOf(CombinationsCheckerProviderImpl).r63 = function (cards, cardsCount, includeCardNames) {
796
1293
  // Inline function 'kotlin.collections.filter' call
797
1294
  // Inline function 'kotlin.collections.filter' call
1295
+ // Inline function 'kotlin.apply' call
1296
+ var this_0 = toMutableList(cards);
1297
+ // Inline function 'kotlin.contracts.contract' call
1298
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
1299
+ sortWith(this_0, CardIndexComparator_instance);
798
1300
  // Inline function 'kotlin.collections.filterTo' call
799
- var this_0 = sortedWith(cards, CardNumberComparator_instance);
800
1301
  var destination = ArrayList_init_$Create$();
801
1302
  var tmp0_iterator = this_0.j();
802
1303
  while (tmp0_iterator.k()) {
803
1304
  var element = tmp0_iterator.l();
804
1305
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
805
- if (element.o2m()) {
1306
+ if (element.t60()) {
806
1307
  destination.e(element);
807
1308
  }
808
1309
  }
@@ -812,7 +1313,7 @@
812
1313
  while (tmp0_iterator_0.k()) {
813
1314
  var element_0 = tmp0_iterator_0.l();
814
1315
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
815
- if (includeCardNames == null || includeCardNames.q1(element_0.o2())) {
1316
+ if (includeCardNames == null || includeCardNames.s1(element_0.p2())) {
816
1317
  destination_0.e(element_0);
817
1318
  }
818
1319
  }
@@ -825,7 +1326,7 @@
825
1326
  while (tmp0_iterator_1.k()) {
826
1327
  var element_1 = tmp0_iterator_1.l();
827
1328
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
828
- var key = element_1.d2m();
1329
+ var key = element_1.g60();
829
1330
  // Inline function 'kotlin.collections.getOrPut' call
830
1331
  var value = destination_1.h2(key);
831
1332
  var tmp;
@@ -847,8 +1348,8 @@
847
1348
  while (tmp0_iterator_2.k()) {
848
1349
  var element_2 = tmp0_iterator_2.l();
849
1350
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
850
- if (element_2.e2().m() >= cardsCount) {
851
- destination_2.k2(element_2.d2(), element_2.e2());
1351
+ if (element_2.u().m() >= cardsCount) {
1352
+ destination_2.k2(element_2.t(), element_2.u());
852
1353
  }
853
1354
  }
854
1355
  var combinations = destination_2.j2();
@@ -859,12 +1360,12 @@
859
1360
  while (tmp0_iterator_3.k()) {
860
1361
  var item = tmp0_iterator_3.l();
861
1362
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
862
- var tmp$ret$15 = sortedWith(item, CardIndexComparator_instance);
863
- destination_3.e(tmp$ret$15);
1363
+ var tmp$ret$16 = sortedWith(item, CardIndexComparator_instance);
1364
+ destination_3.e(tmp$ret$16);
864
1365
  }
865
1366
  return destination_3;
866
1367
  };
867
- protoOf(CombinationsCheckerProviderImpl).y2m = function (cards, supportedCombinations) {
1368
+ protoOf(CombinationsCheckerProviderImpl).t63 = function (cards, supportedCombinations) {
868
1369
  // Inline function 'kotlin.collections.minOf' call
869
1370
  var iterator = supportedCombinations.j();
870
1371
  if (!iterator.k())
@@ -879,44 +1380,43 @@
879
1380
  }
880
1381
  }
881
1382
  var shortestCombinationSupport = minValue;
882
- var cardsToCheck = cards;
1383
+ var cardsToCheck = toMutableList(cards);
883
1384
  // Inline function 'kotlin.collections.mutableListOf' call
884
1385
  var combinations = ArrayList_init_$Create$();
885
1386
  while (cardsToCheck.m() >= shortestCombinationSupport) {
886
1387
  var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
887
- combinations.e(combinationCards);
888
- // Inline function 'kotlin.apply' call
889
- var this_0 = toMutableList(cardsToCheck);
890
- // Inline function 'kotlin.contracts.contract' call
891
- // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
892
- this_0.x1(combinationCards);
893
- cardsToCheck = this_0;
1388
+ combinations.e(toList(combinationCards));
1389
+ cardsToCheck.z1(combinationCards);
894
1390
  }
895
- return combinations;
1391
+ // Inline function 'kotlin.collections.sortedBy' call
1392
+ // Inline function 'kotlin.comparisons.compareBy' call
1393
+ var tmp = CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda;
1394
+ var tmp$ret$4 = new sam$kotlin_Comparator$0(tmp);
1395
+ return sortedWith(combinations, tmp$ret$4);
896
1396
  };
897
1397
  function DealerReducerImpl(logger, enableLogs) {
898
- this.z2m_1 = logger;
899
- this.a2n_1 = enableLogs;
1398
+ this.v63_1 = logger;
1399
+ this.w63_1 = enableLogs;
900
1400
  }
901
- protoOf(DealerReducerImpl).b2n = function (cards, cardsToRemove) {
1401
+ protoOf(DealerReducerImpl).x63 = function (cards, cardsToRemove) {
902
1402
  var list = cards;
903
- var tmp0_iterator = cardsToRemove.j();
904
- while (tmp0_iterator.k()) {
905
- var gameCard = tmp0_iterator.l();
906
- list = this.c2n(list, gameCard);
1403
+ var _iterator__ex2g4s = cardsToRemove.j();
1404
+ while (_iterator__ex2g4s.k()) {
1405
+ var gameCard = _iterator__ex2g4s.l();
1406
+ list = this.y63(list, gameCard);
907
1407
  }
908
1408
  return list;
909
1409
  };
910
- protoOf(DealerReducerImpl).c2n = function (cards, cardToRemove) {
1410
+ protoOf(DealerReducerImpl).y63 = function (cards, cardToRemove) {
911
1411
  var tmp;
912
- if (!cardToRemove.g2m() && cards.q1(cardToRemove)) {
913
- if (this.a2n_1) {
914
- this.z2m_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
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));
915
1415
  }
916
1416
  tmp = minus(cards, cardToRemove);
917
1417
  } else {
918
- if (this.a2n_1) {
919
- this.z2m_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1418
+ if (this.w63_1) {
1419
+ this.v63_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
920
1420
  }
921
1421
  // Inline function 'kotlin.collections.filterNot' call
922
1422
  // Inline function 'kotlin.collections.filterNotTo' call
@@ -925,7 +1425,7 @@
925
1425
  while (tmp0_iterator.k()) {
926
1426
  var element = tmp0_iterator.l();
927
1427
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
928
- if (!element.g2m()) {
1428
+ if (!element.l60()) {
929
1429
  destination.e(element);
930
1430
  }
931
1431
  }
@@ -937,322 +1437,36 @@
937
1437
  while (tmp0_iterator_0.k()) {
938
1438
  var element_0 = tmp0_iterator_0.l();
939
1439
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
940
- if (element_0.g2m()) {
1440
+ if (element_0.l60()) {
941
1441
  destination_0.e(element_0);
942
1442
  }
943
1443
  }
944
1444
  var stubCards = destination_0;
945
1445
  if (stubCards.p()) {
946
- this.z2m_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
1446
+ this.v63_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
947
1447
  }
948
1448
  tmp = plus(notStubCards, dropLast(stubCards, 1));
949
1449
  }
950
1450
  return tmp;
951
1451
  };
952
- protoOf(DealerReducerImpl).d2n = function (cards, cardToAdd) {
953
- if (this.a2n_1) {
954
- this.z2m_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
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));
955
1455
  }
956
- if (cards.q1(cardToAdd)) {
957
- this.z2m_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
1456
+ if (cards.s1(cardToAdd)) {
1457
+ this.v63_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
958
1458
  }
959
1459
  return plus_0(cards, cardToAdd);
960
1460
  };
961
1461
  function DealerReducer() {
962
1462
  }
963
- function Companion_2() {
964
- }
965
- protoOf(Companion_2).e2n = function () {
966
- return new CombinedRaspberryLogger(mutableListOf([new PlatformRaspberryLogger()]));
967
- };
968
- protoOf(Companion_2).k1o = function () {
969
- // Inline function 'kotlin.collections.mutableListOf' call
970
- var tmp$ret$0 = ArrayList_init_$Create$();
971
- return new CombinedRaspberryLogger(tmp$ret$0);
972
- };
973
- var Companion_instance_2;
974
- function Companion_getInstance_2() {
975
- return Companion_instance_2;
976
- }
977
- function CombinedRaspberryLogger(logOutputs) {
978
- this.f2n_1 = logOutputs;
979
- }
980
- protoOf(CombinedRaspberryLogger).g2n = function (output) {
981
- this.f2n_1.e(output);
982
- };
983
- protoOf(CombinedRaspberryLogger).h2n = function (tag, message, payload) {
984
- // Inline function 'kotlin.collections.forEach' call
985
- var tmp0_iterator = this.f2n_1.j();
986
- while (tmp0_iterator.k()) {
987
- var element = tmp0_iterator.l();
988
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.d.<anonymous>' call
989
- element.d(tag, message, payload);
990
- }
991
- };
992
- protoOf(CombinedRaspberryLogger).i2n = function (tag, message, exception, payload) {
993
- // Inline function 'kotlin.collections.forEach' call
994
- var tmp0_iterator = this.f2n_1.j();
995
- while (tmp0_iterator.k()) {
996
- var element = tmp0_iterator.l();
997
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.e.<anonymous>' call
998
- element.e(tag, message, exception, payload);
999
- }
1000
- };
1001
- protoOf(CombinedRaspberryLogger).j2n = function (tag, message, exception, payload) {
1002
- // Inline function 'kotlin.collections.forEach' call
1003
- var tmp0_iterator = this.f2n_1.j();
1004
- while (tmp0_iterator.k()) {
1005
- var element = tmp0_iterator.l();
1006
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.w.<anonymous>' call
1007
- element.w(tag, message, exception, payload);
1008
- }
1009
- };
1010
- protoOf(CombinedRaspberryLogger).k2n = function (tag, message, exception, payload) {
1011
- // Inline function 'kotlin.collections.forEach' call
1012
- var tmp0_iterator = this.f2n_1.j();
1013
- while (tmp0_iterator.k()) {
1014
- var element = tmp0_iterator.l();
1015
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.v.<anonymous>' call
1016
- element.v(tag, message, exception, payload);
1017
- }
1018
- };
1019
- protoOf(CombinedRaspberryLogger).l2n = function (tag, message, payload) {
1020
- // Inline function 'kotlin.collections.forEach' call
1021
- var tmp0_iterator = this.f2n_1.j();
1022
- while (tmp0_iterator.k()) {
1023
- var element = tmp0_iterator.l();
1024
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.i.<anonymous>' call
1025
- element.i(tag, message, payload);
1026
- }
1027
- };
1028
- function LoggerEnabledTrigger() {
1029
- }
1030
- function LoggerPayload() {
1031
- }
1032
- function PlatformRaspberryLogger(enabled) {
1033
- enabled = enabled === VOID ? true : enabled;
1034
- this.o2n_1 = enabled;
1035
- }
1036
- protoOf(PlatformRaspberryLogger).m2n = function (_set____db54di) {
1037
- this.o2n_1 = _set____db54di;
1038
- };
1039
- protoOf(PlatformRaspberryLogger).n2n = function () {
1040
- return this.o2n_1;
1041
- };
1042
- protoOf(PlatformRaspberryLogger).h2n = function (tag, message, payload) {
1043
- if (!this.o2n_1)
1044
- return Unit_instance;
1045
- Logger_getInstance().s2n(tag, message);
1046
- };
1047
- protoOf(PlatformRaspberryLogger).i2n = function (tag, message, exception, payload) {
1048
- if (!this.o2n_1)
1049
- return Unit_instance;
1050
- Logger_getInstance().t2n(tag, message, exception);
1051
- };
1052
- protoOf(PlatformRaspberryLogger).j2n = function (tag, message, exception, payload) {
1053
- if (!this.o2n_1)
1054
- return Unit_instance;
1055
- Logger_getInstance().u2n(tag, message, exception);
1056
- };
1057
- protoOf(PlatformRaspberryLogger).k2n = function (tag, message, exception, payload) {
1058
- if (!this.o2n_1)
1059
- return Unit_instance;
1060
- Logger_getInstance().v2n(tag, message, exception);
1061
- };
1062
- protoOf(PlatformRaspberryLogger).l2n = function (tag, message, payload) {
1063
- if (!this.o2n_1)
1064
- return Unit_instance;
1065
- Logger_getInstance().v2n(tag, message);
1066
- };
1067
- function RaspberryLogger() {
1068
- }
1069
- function LoggerOutput() {
1070
- }
1071
- var Category_LIFECYCLE_instance;
1072
- var Category_NONE_instance;
1073
- var Category_entriesInitialized;
1074
- function Category_initEntries() {
1075
- if (Category_entriesInitialized)
1076
- return Unit_instance;
1077
- Category_entriesInitialized = true;
1078
- Category_LIFECYCLE_instance = new Category('LIFECYCLE', 0, true);
1079
- Category_NONE_instance = new Category('NONE', 1, true);
1080
- }
1081
- function generateTag($this, tag) {
1082
- return !($this.r2n_1 == null) && !(tag == null) ? '' + $this.r2n_1 + ':' + tag : tag;
1083
- }
1084
- function Category(name, ordinal, isEnabled) {
1085
- Enum.call(this, name, ordinal);
1086
- this.y2n_1 = isEnabled;
1087
- }
1088
- function Logger$loggerSource$1() {
1089
- this.z2n_1 = new PlatformLogger();
1090
- }
1091
- protoOf(Logger$loggerSource$1).a2o = function (tag, msg) {
1092
- this.z2n_1.a2o(tag, msg);
1093
- };
1094
- protoOf(Logger$loggerSource$1).b2o = function (tag, msg, exception) {
1095
- this.z2n_1.b2o(tag, msg, exception);
1096
- };
1097
- protoOf(Logger$loggerSource$1).c2o = function (tag, msg, exception) {
1098
- this.z2n_1.c2o(tag, msg, exception);
1099
- };
1100
- protoOf(Logger$loggerSource$1).d2o = function (tag, msg, exception) {
1101
- this.z2n_1.d2o(tag, msg, exception);
1102
- };
1103
- function Category_NONE_getInstance() {
1104
- Category_initEntries();
1105
- return Category_NONE_instance;
1106
- }
1107
- function Logger() {
1108
- Logger_instance = this;
1109
- var tmp = this;
1110
- tmp.p2n_1 = new Logger$loggerSource$1();
1111
- this.q2n_1 = true;
1112
- this.r2n_1 = null;
1113
- }
1114
- protoOf(Logger).s2n = function (tag, message) {
1115
- this.e2o(tag, message, Category_NONE_getInstance());
1116
- };
1117
- protoOf(Logger).f2o = function (tag, message, exception, category) {
1118
- if (this.q2n_1 && category.y2n_1) {
1119
- if (exception == null)
1120
- null;
1121
- else {
1122
- printStackTrace(exception);
1123
- }
1124
- this.p2n_1.c2o(generateTag(this, tag), generateMsg(message, exception), exception);
1125
- }
1126
- };
1127
- protoOf(Logger).u2n = function (tag, message, exception, category, $super) {
1128
- tag = tag === VOID ? null : tag;
1129
- message = message === VOID ? null : message;
1130
- exception = exception === VOID ? null : exception;
1131
- category = category === VOID ? Category_NONE_getInstance() : category;
1132
- var tmp;
1133
- if ($super === VOID) {
1134
- this.f2o(tag, message, exception, category);
1135
- tmp = Unit_instance;
1136
- } else {
1137
- tmp = $super.f2o.call(this, tag, message, exception, category);
1138
- }
1139
- return tmp;
1140
- };
1141
- protoOf(Logger).e2o = function (tag, message, category) {
1142
- if (this.q2n_1 && category.y2n_1) {
1143
- this.p2n_1.a2o(generateTag(this, tag), message);
1144
- }
1145
- };
1146
- protoOf(Logger).g2o = function (tag, message, exception, category) {
1147
- if (this.q2n_1 && category.y2n_1) {
1148
- this.p2n_1.d2o(generateTag(this, tag), generateMsg(message, exception), exception);
1149
- }
1150
- };
1151
- protoOf(Logger).v2n = function (tag, message, exception, category, $super) {
1152
- tag = tag === VOID ? null : tag;
1153
- message = message === VOID ? null : message;
1154
- exception = exception === VOID ? null : exception;
1155
- category = category === VOID ? Category_NONE_getInstance() : category;
1156
- var tmp;
1157
- if ($super === VOID) {
1158
- this.g2o(tag, message, exception, category);
1159
- tmp = Unit_instance;
1160
- } else {
1161
- tmp = $super.g2o.call(this, tag, message, exception, category);
1162
- }
1163
- return tmp;
1164
- };
1165
- protoOf(Logger).h2o = function (tag, message, exception, category) {
1166
- if (this.q2n_1 && category.y2n_1) {
1167
- if (exception == null)
1168
- null;
1169
- else {
1170
- printStackTrace(exception);
1171
- }
1172
- this.p2n_1.b2o(generateTag(this, tag), generateMsg(message, exception), exception);
1173
- }
1174
- };
1175
- protoOf(Logger).t2n = function (tag, message, exception, category, $super) {
1176
- tag = tag === VOID ? null : tag;
1177
- message = message === VOID ? null : message;
1178
- exception = exception === VOID ? null : exception;
1179
- category = category === VOID ? Category_NONE_getInstance() : category;
1180
- var tmp;
1181
- if ($super === VOID) {
1182
- this.h2o(tag, message, exception, category);
1183
- tmp = Unit_instance;
1184
- } else {
1185
- tmp = $super.h2o.call(this, tag, message, exception, category);
1186
- }
1187
- return tmp;
1188
- };
1189
- var Logger_instance;
1190
- function Logger_getInstance() {
1191
- if (Logger_instance == null)
1192
- new Logger();
1193
- return Logger_instance;
1194
- }
1195
- function generateMsg(msg, exception) {
1196
- var logMessage = '';
1197
- // Inline function 'kotlin.text.isNullOrBlank' call
1198
- // Inline function 'kotlin.contracts.contract' call
1199
- if (!(msg == null || isBlank(msg))) {
1200
- logMessage = logMessage + msg;
1201
- }
1202
- if (!(exception == null)) {
1203
- var tmp = logMessage;
1204
- // Inline function 'kotlin.text.orEmpty' call
1205
- var tmp0_elvis_lhs = exception.message;
1206
- logMessage = tmp + (' Exception: ' + (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + ', stackTrace: ' + stackTraceToString(exception));
1207
- }
1208
- if (isBlank(logMessage)) {
1209
- logMessage = 'Unknown error';
1210
- }
1211
- return logMessage;
1212
- }
1213
- function getLogTag(tag) {
1214
- return !(tag == null) ? '[' + tag + ']' : '';
1215
- }
1216
- function PlatformLogger() {
1217
- }
1218
- protoOf(PlatformLogger).a2o = function (tag, msg) {
1219
- console.log('D:' + getLogTag(tag) + ': ' + msg);
1220
- };
1221
- protoOf(PlatformLogger).b2o = function (tag, msg, exception) {
1222
- if (!(exception == null)) {
1223
- console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString_0(exception));
1224
- } else {
1225
- console.error(getLogTag(tag) + ': ' + msg);
1226
- }
1227
- };
1228
- protoOf(PlatformLogger).c2o = function (tag, msg, exception) {
1229
- var tmp = console;
1230
- var tmp_0 = getLogTag(tag);
1231
- tmp.warn(tmp_0 + ': ' + msg + ' ' + toString(exception == null ? '' : exception));
1232
- };
1233
- protoOf(PlatformLogger).d2o = function (tag, msg, exception) {
1234
- var tmp = console;
1235
- var tmp_0 = getLogTag(tag);
1236
- tmp.log('V:' + tmp_0 + ': ' + msg + ' ' + toString(exception == null ? '' : exception));
1237
- };
1238
1463
  //region block: post-declaration
1239
- protoOf(CombinationsCheckerProviderImpl).v2m = findCardsInRowCombinations$default;
1240
- protoOf(CombinationsCheckerProviderImpl).x2m = findSameCardsNumberCombinations$default;
1241
- protoOf(CombinedRaspberryLogger).d = d;
1242
- protoOf(CombinedRaspberryLogger).e = e;
1243
- protoOf(CombinedRaspberryLogger).w = w;
1244
- protoOf(CombinedRaspberryLogger).v = v;
1245
- protoOf(CombinedRaspberryLogger).i = i;
1246
- protoOf(PlatformRaspberryLogger).d = d;
1247
- protoOf(PlatformRaspberryLogger).e = e;
1248
- protoOf(PlatformRaspberryLogger).w = w;
1249
- protoOf(PlatformRaspberryLogger).v = v;
1250
- protoOf(PlatformRaspberryLogger).i = i;
1251
- defineProp(protoOf(PlatformRaspberryLogger), 'enabled', function () {
1252
- return this.n2n();
1253
- }, function (value) {
1254
- this.m2n(value);
1255
- });
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;
1256
1470
  //endregion
1257
1471
  //region block: init
1258
1472
  CoreConfig_instance = new CoreConfig();
@@ -1261,6 +1475,7 @@
1261
1475
  Companion_instance = new Companion();
1262
1476
  Companion_instance_0 = new Companion_0();
1263
1477
  Companion_instance_2 = new Companion_2();
1478
+ Companion_instance_3 = new Companion_3();
1264
1479
  //endregion
1265
1480
  //region block: exports
1266
1481
  function $jsExportAll$(_) {
@@ -1269,31 +1484,6 @@
1269
1484
  var $io$raspberryapps$cardgame = $io$raspberryapps.cardgame || ($io$raspberryapps.cardgame = {});
1270
1485
  var $io$raspberryapps$cardgame$core = $io$raspberryapps$cardgame.core || ($io$raspberryapps$cardgame.core = {});
1271
1486
  defineProp($io$raspberryapps$cardgame$core, 'CoreConfig', CoreConfig_getInstance);
1272
- var $io = _.io || (_.io = {});
1273
- var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
1274
- var $io$raspberryapps$card_game = $io$raspberryapps.card_game || ($io$raspberryapps.card_game = {});
1275
- var $io$raspberryapps$card_game$core = $io$raspberryapps$card_game.core || ($io$raspberryapps$card_game.core = {});
1276
- var $io$raspberryapps$card_game$core$utils = $io$raspberryapps$card_game$core.utils || ($io$raspberryapps$card_game$core.utils = {});
1277
- var $io$raspberryapps$card_game$core$utils$logger = $io$raspberryapps$card_game$core$utils.logger || ($io$raspberryapps$card_game$core$utils.logger = {});
1278
- var $io = _.io || (_.io = {});
1279
- var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
1280
- var $io$raspberryapps$card_game = $io$raspberryapps.card_game || ($io$raspberryapps.card_game = {});
1281
- var $io$raspberryapps$card_game$core = $io$raspberryapps$card_game.core || ($io$raspberryapps$card_game.core = {});
1282
- var $io$raspberryapps$card_game$core$utils = $io$raspberryapps$card_game$core.utils || ($io$raspberryapps$card_game$core.utils = {});
1283
- var $io$raspberryapps$card_game$core$utils$logger = $io$raspberryapps$card_game$core$utils.logger || ($io$raspberryapps$card_game$core$utils.logger = {});
1284
- var $io = _.io || (_.io = {});
1285
- var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
1286
- var $io$raspberryapps$card_game = $io$raspberryapps.card_game || ($io$raspberryapps.card_game = {});
1287
- var $io$raspberryapps$card_game$core = $io$raspberryapps$card_game.core || ($io$raspberryapps$card_game.core = {});
1288
- var $io$raspberryapps$card_game$core$utils = $io$raspberryapps$card_game$core.utils || ($io$raspberryapps$card_game$core.utils = {});
1289
- var $io$raspberryapps$card_game$core$utils$logger = $io$raspberryapps$card_game$core$utils.logger || ($io$raspberryapps$card_game$core$utils.logger = {});
1290
- var $io = _.io || (_.io = {});
1291
- var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
1292
- var $io$raspberryapps$card_game = $io$raspberryapps.card_game || ($io$raspberryapps.card_game = {});
1293
- var $io$raspberryapps$card_game$core = $io$raspberryapps$card_game.core || ($io$raspberryapps$card_game.core = {});
1294
- var $io$raspberryapps$card_game$core$utils = $io$raspberryapps$card_game$core.utils || ($io$raspberryapps$card_game$core.utils = {});
1295
- var $io$raspberryapps$card_game$core$utils$logger = $io$raspberryapps$card_game$core$utils.logger || ($io$raspberryapps$card_game$core$utils.logger = {});
1296
- var $io$raspberryapps$card_game$core$utils$logger$output = $io$raspberryapps$card_game$core$utils$logger.output || ($io$raspberryapps$card_game$core$utils$logger.output = {});
1297
1487
  }
1298
1488
  $jsExportAll$(_);
1299
1489
  _.$jsExportAll$ = $jsExportAll$;
@@ -1306,34 +1496,26 @@
1306
1496
  _.$_$.f = CardName_NINE_getInstance;
1307
1497
  _.$_$.g = CardName_SEVEN_getInstance;
1308
1498
  _.$_$.h = CardName_TEN_getInstance;
1309
- _.$_$.i = d;
1310
- _.$_$.j = e;
1311
- _.$_$.k = i;
1312
- _.$_$.l = v;
1313
- _.$_$.m = w;
1314
- _.$_$.n = CardIndexComparator_instance;
1315
- _.$_$.o = CardNumberComparator_instance;
1316
- _.$_$.p = Companion_instance;
1317
- _.$_$.q = Companion_getInstance_1;
1318
- _.$_$.r = Logger_getInstance;
1319
- _.$_$.s = Companion_instance_2;
1320
- _.$_$.t = GameCard;
1321
- _.$_$.u = get_entries;
1322
- _.$_$.v = values;
1323
- _.$_$.w = distributeCardsBottom;
1324
- _.$_$.x = distributeCardsTop;
1325
- _.$_$.y = filterByCardName;
1326
- _.$_$.z = CardsDealerProvider;
1327
- _.$_$.a1 = CombinationsCheckerProviderImpl;
1328
- _.$_$.b1 = CombinationsCheckerProvider;
1329
- _.$_$.c1 = DealerReducerImpl;
1330
- _.$_$.d1 = DealerReducer;
1331
- _.$_$.e1 = LoggerOutput;
1332
- _.$_$.f1 = generateMsg;
1333
- _.$_$.g1 = CombinedRaspberryLogger;
1334
- _.$_$.h1 = LoggerEnabledTrigger;
1335
- _.$_$.i1 = LoggerPayload;
1336
- _.$_$.j1 = RaspberryLogger;
1499
+ _.$_$.i = CardsRandomProvider_CUSTOM_getInstance;
1500
+ _.$_$.j = CardsRandomProvider_RANDOM_ORG_SIGNED_getInstance;
1501
+ _.$_$.k = CardsRandomProvider_RANDOM_ORG_getInstance;
1502
+ _.$_$.l = CardIndexComparator_instance;
1503
+ _.$_$.m = CardNumberComparator_instance;
1504
+ _.$_$.n = Companion_instance;
1505
+ _.$_$.o = Companion_getInstance_2;
1506
+ _.$_$.p = Companion_instance_2;
1507
+ _.$_$.q = GameCard;
1508
+ _.$_$.r = get_entries;
1509
+ _.$_$.s = values;
1510
+ _.$_$.t = distributeCardsBottom;
1511
+ _.$_$.u = distributeCardsTop;
1512
+ _.$_$.v = filterByCardName;
1513
+ _.$_$.w = CardsDealerProvider;
1514
+ _.$_$.x = FakeCardsDealerProvider;
1515
+ _.$_$.y = CombinationsCheckerProviderImpl;
1516
+ _.$_$.z = CombinationsCheckerProvider;
1517
+ _.$_$.a1 = DealerReducerImpl;
1518
+ _.$_$.b1 = DealerReducer;
1337
1519
  //endregion
1338
1520
  return _;
1339
1521
  }));