game_client_logic_deb 1.8.305 → 1.8.314
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.
- package/Kosi-Kaverit-kaverit.js +78 -78
- package/Kosi-Kodein-kodein-di.js +647 -647
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1508 -1508
- package/Logic_Debertz-core.js +2240 -2211
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +15420 -15313
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +22 -15
- package/Logic_Debertz-game_client.js +5382 -4785
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2877 -2635
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-coroutines-core.js +2851 -2851
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +362 -362
- package/kotlinx-serialization-kotlinx-serialization-core.js +2038 -2038
- package/kotlinx-serialization-kotlinx-serialization-json.js +1569 -1569
- package/ktor-ktor-client-content-negotiation.js +219 -219
- package/ktor-ktor-client-core.js +2528 -2528
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +762 -762
- package/ktor-ktor-io.js +1659 -1659
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +271 -271
- package/ktor-ktor-serialization.js +130 -130
- package/ktor-ktor-utils.js +741 -741
- package/ktor-ktor-websockets.js +60 -60
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +339 -316
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +1042 -1017
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +18 -18
- package/uuid.js +33 -33
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './kotlinx-
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './Kotlin-DateTime-library-kotlinx-datetime.js', './kotlinx-coroutines-core.js', './uuid.js', './ktor-ktor-client-logging.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-client-content-negotiation.js', './secure-random-secure-random.js', './raspberry-cardgame-lib-logger.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('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./kotlinx-
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./Kotlin-DateTime-library-kotlinx-datetime.js'), require('./kotlinx-coroutines-core.js'), require('./uuid.js'), require('./ktor-ktor-client-logging.js'), require('./ktor-ktor-serialization-kotlinx-json.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./secure-random-secure-random.js'), require('./raspberry-cardgame-lib-logger.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
|
|
23
23
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
24
24
|
}
|
|
25
|
+
if (typeof globalThis['Kotlin-DateTime-library-kotlinx-datetime'] === 'undefined') {
|
|
26
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. 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-random'.");
|
|
27
|
+
}
|
|
25
28
|
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
26
29
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
27
30
|
}
|
|
28
31
|
if (typeof uuid === 'undefined') {
|
|
29
32
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'uuid' was not found. Please, check whether 'uuid' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
30
33
|
}
|
|
31
|
-
if (typeof globalThis['Kotlin-DateTime-library-kotlinx-datetime'] === 'undefined') {
|
|
32
|
-
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. 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-random'.");
|
|
33
|
-
}
|
|
34
34
|
if (typeof globalThis['ktor-ktor-client-logging'] === 'undefined') {
|
|
35
35
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-logging' was not found. Please, check whether 'ktor-ktor-client-logging' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
36
36
|
}
|
|
@@ -46,56 +46,56 @@
|
|
|
46
46
|
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
47
47
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'raspberry-cardgame-lib-logger' was not found. Please, check whether 'raspberry-cardgame-lib-logger' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
48
48
|
}
|
|
49
|
-
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['kotlinx-
|
|
49
|
+
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['Kotlin-DateTime-library-kotlinx-datetime'], globalThis['kotlinx-coroutines-core'], uuid, globalThis['ktor-ktor-client-logging'], globalThis['ktor-ktor-serialization-kotlinx-json'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['secure-random-secure-random'], globalThis['raspberry-cardgame-lib-logger']);
|
|
50
50
|
}
|
|
51
|
-
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid,
|
|
51
|
+
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_datetime, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid, kotlin_io_ktor_ktor_client_logging, kotlin_io_ktor_ktor_serialization_kotlinx_json, kotlin_io_ktor_ktor_client_content_negotiation, kotlin_org_kotlincrypto_secure_random, kotlin_io_raspberryapps_cardgame_logger) {
|
|
52
52
|
'use strict';
|
|
53
53
|
//region block: imports
|
|
54
54
|
var imul = Math.imul;
|
|
55
55
|
var clz32 = Math.clz32;
|
|
56
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
58
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
56
|
+
var protoOf = kotlin_kotlin.$_$.wc;
|
|
57
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.wb;
|
|
58
|
+
var RuntimeException = kotlin_kotlin.$_$.tg;
|
|
59
59
|
var VOID = kotlin_kotlin.$_$.f;
|
|
60
60
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.i2;
|
|
61
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
62
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
63
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
64
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
65
|
-
var toString = kotlin_kotlin.$_$.
|
|
66
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
67
|
-
var equals = kotlin_kotlin.$_$.
|
|
68
|
-
var listOf = kotlin_kotlin.$_$.
|
|
69
|
-
var plus = kotlin_kotlin.$_$.
|
|
70
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
71
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
72
|
-
var toLong = kotlin_kotlin.$_$.
|
|
61
|
+
var captureStack = kotlin_kotlin.$_$.fb;
|
|
62
|
+
var initMetadataForClass = kotlin_kotlin.$_$.vb;
|
|
63
|
+
var getStringHashCode = kotlin_kotlin.$_$.tb;
|
|
64
|
+
var THROW_CCE = kotlin_kotlin.$_$.ug;
|
|
65
|
+
var toString = kotlin_kotlin.$_$.ad;
|
|
66
|
+
var hashCode = kotlin_kotlin.$_$.ub;
|
|
67
|
+
var equals = kotlin_kotlin.$_$.nb;
|
|
68
|
+
var listOf = kotlin_kotlin.$_$.q8;
|
|
69
|
+
var plus = kotlin_kotlin.$_$.b9;
|
|
70
|
+
var emptyList = kotlin_kotlin.$_$.o7;
|
|
71
|
+
var defineProp = kotlin_kotlin.$_$.mb;
|
|
72
|
+
var toLong = kotlin_kotlin.$_$.yc;
|
|
73
73
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
74
74
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
75
75
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
76
76
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
77
77
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
|
|
78
78
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
79
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
79
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ac;
|
|
80
80
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
81
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
82
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
83
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
81
|
+
var Unit_instance = kotlin_kotlin.$_$.q5;
|
|
82
|
+
var objectCreate = kotlin_kotlin.$_$.vc;
|
|
83
|
+
var toString_0 = kotlin_kotlin.$_$.yh;
|
|
84
84
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
85
85
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
86
86
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
87
87
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
88
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
89
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
90
|
-
var getValue = kotlin_kotlin.$_$.
|
|
88
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.qb;
|
|
89
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.yb;
|
|
90
|
+
var getValue = kotlin_kotlin.$_$.b8;
|
|
91
91
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
92
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
92
|
+
var CoroutineImpl = kotlin_kotlin.$_$.xa;
|
|
93
93
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
94
94
|
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
95
95
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
96
96
|
var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
97
97
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
98
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
98
|
+
var arrayOf = kotlin_kotlin.$_$.ih;
|
|
99
99
|
var createKType = kotlin_kotlin.$_$.b;
|
|
100
100
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
101
101
|
var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
@@ -103,34 +103,35 @@
|
|
|
103
103
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
104
104
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
105
105
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
106
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
106
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ia;
|
|
107
107
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
108
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
109
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
110
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
111
|
-
var Companion_getInstance_0 = kotlin_kotlin.$_$.
|
|
112
|
-
var Long = kotlin_kotlin.$_$.
|
|
108
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.xb;
|
|
109
|
+
var KtMap = kotlin_kotlin.$_$.b6;
|
|
110
|
+
var isInterface = kotlin_kotlin.$_$.jc;
|
|
111
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.h5;
|
|
112
|
+
var Long = kotlin_kotlin.$_$.og;
|
|
113
113
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
114
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
115
|
-
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.
|
|
114
|
+
var toDuration = kotlin_kotlin.$_$.ag;
|
|
115
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.w2;
|
|
116
116
|
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.o2;
|
|
117
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
118
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
119
|
-
var toMap = kotlin_kotlin.$_$.
|
|
120
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
117
|
+
var emptyMap = kotlin_kotlin.$_$.p7;
|
|
118
|
+
var toMutableMap = kotlin_kotlin.$_$.z9;
|
|
119
|
+
var toMap = kotlin_kotlin.$_$.w9;
|
|
120
|
+
var get_lastIndex = kotlin_kotlin.$_$.j8;
|
|
121
|
+
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
122
|
+
var Duration__times_impl_sfuzvp = kotlin_kotlin.$_$.u2;
|
|
123
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
121
124
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
122
125
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
123
|
-
var Result = kotlin_kotlin.$_$.
|
|
126
|
+
var Result = kotlin_kotlin.$_$.sg;
|
|
124
127
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
125
|
-
var
|
|
126
|
-
var
|
|
127
|
-
var
|
|
128
|
-
var
|
|
129
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
130
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.yb;
|
|
128
|
+
var Companion_instance = kotlin_kotlin.$_$.l5;
|
|
129
|
+
var createFailure = kotlin_kotlin.$_$.kh;
|
|
130
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.g3;
|
|
131
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.zb;
|
|
131
132
|
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.n2;
|
|
132
133
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
133
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
134
|
+
var firstOrNull = kotlin_kotlin.$_$.t7;
|
|
134
135
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
135
136
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
136
137
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
@@ -145,12 +146,12 @@
|
|
|
145
146
|
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
146
147
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
147
148
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
148
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
149
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
149
|
+
var Default_getInstance = kotlin_kotlin.$_$.e5;
|
|
150
|
+
var toMutableList = kotlin_kotlin.$_$.y9;
|
|
150
151
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n;
|
|
151
|
-
var take = kotlin_kotlin.$_$.
|
|
152
|
-
var drop = kotlin_kotlin.$_$.
|
|
153
|
-
var reverse = kotlin_kotlin.$_$.
|
|
152
|
+
var take = kotlin_kotlin.$_$.q9;
|
|
153
|
+
var drop = kotlin_kotlin.$_$.n7;
|
|
154
|
+
var reverse = kotlin_kotlin.$_$.g9;
|
|
154
155
|
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
155
156
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
156
157
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
@@ -202,22 +203,22 @@
|
|
|
202
203
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
203
204
|
signed = signed === VOID ? false : signed;
|
|
204
205
|
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
205
|
-
return $super === VOID ? this.
|
|
206
|
+
return $super === VOID ? this.c5q(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.c5q.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
206
207
|
}
|
|
207
208
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
208
209
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
209
210
|
initMetadataForCompanion(Companion_9);
|
|
210
211
|
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda, CoroutineImpl, VOID, [1]);
|
|
211
212
|
initMetadataForLambda(RandomPoolProviderImpl$requestNewPool$slambda, CoroutineImpl, VOID, [1]);
|
|
212
|
-
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE$
|
|
213
|
-
initMetadataForCoroutine($getPreparedOrRequestPoolCOROUTINE$
|
|
213
|
+
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE$3, CoroutineImpl);
|
|
214
|
+
initMetadataForCoroutine($getPreparedOrRequestPoolCOROUTINE$4, CoroutineImpl);
|
|
214
215
|
initMetadataForClass(RandomPoolProviderImpl, 'RandomPoolProviderImpl', VOID, VOID, [RandomPoolProvider], [7, 5]);
|
|
215
216
|
initMetadataForClass(ApiCommonConfigs$setupLogging$1$1);
|
|
216
217
|
initMetadataForObject(ApiCommonConfigs, 'ApiCommonConfigs');
|
|
217
218
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
218
219
|
function nextInt$default(from, until, $super) {
|
|
219
220
|
from = from === VOID ? 0 : from;
|
|
220
|
-
return $super === VOID ? this.
|
|
221
|
+
return $super === VOID ? this.vg(from, until) : $super.vg.call(this, from, until);
|
|
221
222
|
}
|
|
222
223
|
function shuffle(list) {
|
|
223
224
|
var inductionVariable = get_lastIndex(list);
|
|
@@ -225,8 +226,8 @@
|
|
|
225
226
|
do {
|
|
226
227
|
var i = inductionVariable;
|
|
227
228
|
inductionVariable = inductionVariable + -1 | 0;
|
|
228
|
-
var j = this.
|
|
229
|
-
list.
|
|
229
|
+
var j = this.vg(0, i + 1 | 0);
|
|
230
|
+
list.f2(j, list.f2(i, list.o(j)));
|
|
230
231
|
}
|
|
231
232
|
while (1 <= inductionVariable);
|
|
232
233
|
return list;
|
|
@@ -236,7 +237,7 @@
|
|
|
236
237
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
237
238
|
//endregion
|
|
238
239
|
function Companion() {
|
|
239
|
-
this.
|
|
240
|
+
this.h5l_1 = 100001;
|
|
240
241
|
}
|
|
241
242
|
var Companion_instance_1;
|
|
242
243
|
function Companion_getInstance_2() {
|
|
@@ -247,31 +248,31 @@
|
|
|
247
248
|
cause = cause === VOID ? null : cause;
|
|
248
249
|
RuntimeException_init_$Init$(message, cause, this);
|
|
249
250
|
captureStack(this, RandomException);
|
|
250
|
-
this.
|
|
251
|
+
this.i5l_1 = code;
|
|
251
252
|
}
|
|
252
253
|
function CardDecksRequestUserData(id, count) {
|
|
253
254
|
this.id = id;
|
|
254
255
|
this.count = count;
|
|
255
256
|
}
|
|
256
|
-
protoOf(CardDecksRequestUserData).
|
|
257
|
+
protoOf(CardDecksRequestUserData).c5k = function () {
|
|
257
258
|
return this.id;
|
|
258
259
|
};
|
|
259
|
-
protoOf(CardDecksRequestUserData).
|
|
260
|
+
protoOf(CardDecksRequestUserData).j5l = function () {
|
|
260
261
|
return this.count;
|
|
261
262
|
};
|
|
262
|
-
protoOf(CardDecksRequestUserData).
|
|
263
|
+
protoOf(CardDecksRequestUserData).ue = function () {
|
|
263
264
|
return this.id;
|
|
264
265
|
};
|
|
265
|
-
protoOf(CardDecksRequestUserData).
|
|
266
|
+
protoOf(CardDecksRequestUserData).ve = function () {
|
|
266
267
|
return this.count;
|
|
267
268
|
};
|
|
268
|
-
protoOf(CardDecksRequestUserData).
|
|
269
|
+
protoOf(CardDecksRequestUserData).k5l = function (id, count) {
|
|
269
270
|
return new CardDecksRequestUserData(id, count);
|
|
270
271
|
};
|
|
271
272
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
272
273
|
id = id === VOID ? this.id : id;
|
|
273
274
|
count = count === VOID ? this.count : count;
|
|
274
|
-
return this.
|
|
275
|
+
return this.k5l(id, count);
|
|
275
276
|
};
|
|
276
277
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
277
278
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -297,25 +298,25 @@
|
|
|
297
298
|
this.players = players;
|
|
298
299
|
this.gameId = gameId;
|
|
299
300
|
}
|
|
300
|
-
protoOf(CardDeckRequestUserData).
|
|
301
|
+
protoOf(CardDeckRequestUserData).l5l = function () {
|
|
301
302
|
return this.players;
|
|
302
303
|
};
|
|
303
|
-
protoOf(CardDeckRequestUserData).
|
|
304
|
+
protoOf(CardDeckRequestUserData).m5l = function () {
|
|
304
305
|
return this.gameId;
|
|
305
306
|
};
|
|
306
|
-
protoOf(CardDeckRequestUserData).
|
|
307
|
+
protoOf(CardDeckRequestUserData).ue = function () {
|
|
307
308
|
return this.players;
|
|
308
309
|
};
|
|
309
|
-
protoOf(CardDeckRequestUserData).
|
|
310
|
+
protoOf(CardDeckRequestUserData).ve = function () {
|
|
310
311
|
return this.gameId;
|
|
311
312
|
};
|
|
312
|
-
protoOf(CardDeckRequestUserData).
|
|
313
|
+
protoOf(CardDeckRequestUserData).n5l = function (players, gameId) {
|
|
313
314
|
return new CardDeckRequestUserData(players, gameId);
|
|
314
315
|
};
|
|
315
316
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
316
317
|
players = players === VOID ? this.players : players;
|
|
317
318
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
318
|
-
return this.
|
|
319
|
+
return this.n5l(players, gameId);
|
|
319
320
|
};
|
|
320
321
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
321
322
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -341,25 +342,25 @@
|
|
|
341
342
|
this.id = id;
|
|
342
343
|
this.name = name;
|
|
343
344
|
}
|
|
344
|
-
protoOf(UserInfoData).
|
|
345
|
+
protoOf(UserInfoData).c5k = function () {
|
|
345
346
|
return this.id;
|
|
346
347
|
};
|
|
347
|
-
protoOf(UserInfoData).
|
|
348
|
+
protoOf(UserInfoData).s2 = function () {
|
|
348
349
|
return this.name;
|
|
349
350
|
};
|
|
350
|
-
protoOf(UserInfoData).
|
|
351
|
+
protoOf(UserInfoData).ue = function () {
|
|
351
352
|
return this.id;
|
|
352
353
|
};
|
|
353
|
-
protoOf(UserInfoData).
|
|
354
|
+
protoOf(UserInfoData).ve = function () {
|
|
354
355
|
return this.name;
|
|
355
356
|
};
|
|
356
|
-
protoOf(UserInfoData).
|
|
357
|
+
protoOf(UserInfoData).o5l = function (id, name) {
|
|
357
358
|
return new UserInfoData(id, name);
|
|
358
359
|
};
|
|
359
360
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
360
361
|
id = id === VOID ? this.id : id;
|
|
361
362
|
name = name === VOID ? this.name : name;
|
|
362
|
-
return this.
|
|
363
|
+
return this.o5l(id, name);
|
|
363
364
|
};
|
|
364
365
|
protoOf(UserInfoData).toString = function () {
|
|
365
366
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -382,19 +383,19 @@
|
|
|
382
383
|
return true;
|
|
383
384
|
};
|
|
384
385
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
385
|
-
this.
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
386
|
+
this.p5l_1 = cardDecks;
|
|
387
|
+
this.q5l_1 = responseText;
|
|
388
|
+
this.r5l_1 = id;
|
|
389
|
+
this.s5l_1 = signature;
|
|
389
390
|
}
|
|
390
391
|
protoOf(CardDeckResult).toString = function () {
|
|
391
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
392
|
+
return 'CardDeckResult(cardDecks=' + toString(this.p5l_1) + ', responseText=' + this.q5l_1 + ', id=' + this.r5l_1 + ', signature=' + this.s5l_1 + ')';
|
|
392
393
|
};
|
|
393
394
|
protoOf(CardDeckResult).hashCode = function () {
|
|
394
|
-
var result = hashCode(this.
|
|
395
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
396
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
397
|
-
result = imul(result, 31) + (this.
|
|
395
|
+
var result = hashCode(this.p5l_1);
|
|
396
|
+
result = imul(result, 31) + getStringHashCode(this.q5l_1) | 0;
|
|
397
|
+
result = imul(result, 31) + getStringHashCode(this.r5l_1) | 0;
|
|
398
|
+
result = imul(result, 31) + (this.s5l_1 == null ? 0 : getStringHashCode(this.s5l_1)) | 0;
|
|
398
399
|
return result;
|
|
399
400
|
};
|
|
400
401
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -403,13 +404,13 @@
|
|
|
403
404
|
if (!(other instanceof CardDeckResult))
|
|
404
405
|
return false;
|
|
405
406
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
406
|
-
if (!equals(this.
|
|
407
|
+
if (!equals(this.p5l_1, tmp0_other_with_cast.p5l_1))
|
|
407
408
|
return false;
|
|
408
|
-
if (!(this.
|
|
409
|
+
if (!(this.q5l_1 === tmp0_other_with_cast.q5l_1))
|
|
409
410
|
return false;
|
|
410
|
-
if (!(this.
|
|
411
|
+
if (!(this.r5l_1 === tmp0_other_with_cast.r5l_1))
|
|
411
412
|
return false;
|
|
412
|
-
if (!(this.
|
|
413
|
+
if (!(this.s5l_1 == tmp0_other_with_cast.s5l_1))
|
|
413
414
|
return false;
|
|
414
415
|
return true;
|
|
415
416
|
};
|
|
@@ -432,31 +433,31 @@
|
|
|
432
433
|
this.userData = userData;
|
|
433
434
|
this.rounds = rounds;
|
|
434
435
|
}
|
|
435
|
-
protoOf(GameCardDecksRecord).
|
|
436
|
+
protoOf(GameCardDecksRecord).t5l = function () {
|
|
436
437
|
return this.poolId;
|
|
437
438
|
};
|
|
438
|
-
protoOf(GameCardDecksRecord).
|
|
439
|
+
protoOf(GameCardDecksRecord).u5l = function () {
|
|
439
440
|
return this.signature;
|
|
440
441
|
};
|
|
441
|
-
protoOf(GameCardDecksRecord).
|
|
442
|
+
protoOf(GameCardDecksRecord).v5l = function () {
|
|
442
443
|
return this.userData;
|
|
443
444
|
};
|
|
444
|
-
protoOf(GameCardDecksRecord).
|
|
445
|
+
protoOf(GameCardDecksRecord).w5l = function () {
|
|
445
446
|
return this.rounds;
|
|
446
447
|
};
|
|
447
|
-
protoOf(GameCardDecksRecord).
|
|
448
|
+
protoOf(GameCardDecksRecord).ue = function () {
|
|
448
449
|
return this.poolId;
|
|
449
450
|
};
|
|
450
|
-
protoOf(GameCardDecksRecord).
|
|
451
|
+
protoOf(GameCardDecksRecord).ve = function () {
|
|
451
452
|
return this.signature;
|
|
452
453
|
};
|
|
453
|
-
protoOf(GameCardDecksRecord).
|
|
454
|
+
protoOf(GameCardDecksRecord).wk = function () {
|
|
454
455
|
return this.userData;
|
|
455
456
|
};
|
|
456
|
-
protoOf(GameCardDecksRecord).
|
|
457
|
+
protoOf(GameCardDecksRecord).x5l = function () {
|
|
457
458
|
return this.rounds;
|
|
458
459
|
};
|
|
459
|
-
protoOf(GameCardDecksRecord).
|
|
460
|
+
protoOf(GameCardDecksRecord).y5l = function (poolId, signature, userData, rounds) {
|
|
460
461
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
461
462
|
};
|
|
462
463
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -464,7 +465,7 @@
|
|
|
464
465
|
signature = signature === VOID ? this.signature : signature;
|
|
465
466
|
userData = userData === VOID ? this.userData : userData;
|
|
466
467
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
467
|
-
return this.
|
|
468
|
+
return this.y5l(poolId, signature, userData, rounds);
|
|
468
469
|
};
|
|
469
470
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
470
471
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -496,25 +497,25 @@
|
|
|
496
497
|
this.cardDeckIndex = cardDeckIndex;
|
|
497
498
|
this.cards = cards;
|
|
498
499
|
}
|
|
499
|
-
protoOf(GameCardDeckData).
|
|
500
|
+
protoOf(GameCardDeckData).z5l = function () {
|
|
500
501
|
return this.cardDeckIndex;
|
|
501
502
|
};
|
|
502
|
-
protoOf(GameCardDeckData).
|
|
503
|
+
protoOf(GameCardDeckData).a5m = function () {
|
|
503
504
|
return this.cards;
|
|
504
505
|
};
|
|
505
|
-
protoOf(GameCardDeckData).
|
|
506
|
+
protoOf(GameCardDeckData).ue = function () {
|
|
506
507
|
return this.cardDeckIndex;
|
|
507
508
|
};
|
|
508
|
-
protoOf(GameCardDeckData).
|
|
509
|
+
protoOf(GameCardDeckData).ve = function () {
|
|
509
510
|
return this.cards;
|
|
510
511
|
};
|
|
511
|
-
protoOf(GameCardDeckData).
|
|
512
|
+
protoOf(GameCardDeckData).b5m = function (cardDeckIndex, cards) {
|
|
512
513
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
513
514
|
};
|
|
514
515
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
515
516
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
516
517
|
cards = cards === VOID ? this.cards : cards;
|
|
517
|
-
return this.
|
|
518
|
+
return this.b5m(cardDeckIndex, cards);
|
|
518
519
|
};
|
|
519
520
|
protoOf(GameCardDeckData).toString = function () {
|
|
520
521
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -541,25 +542,25 @@
|
|
|
541
542
|
this.baseUrl = baseUrl;
|
|
542
543
|
this.timeoutMillis = timeoutMillis;
|
|
543
544
|
}
|
|
544
|
-
protoOf(HttpConfig).
|
|
545
|
+
protoOf(HttpConfig).c5m = function () {
|
|
545
546
|
return this.baseUrl;
|
|
546
547
|
};
|
|
547
|
-
protoOf(HttpConfig).
|
|
548
|
+
protoOf(HttpConfig).d5m = function () {
|
|
548
549
|
return this.timeoutMillis;
|
|
549
550
|
};
|
|
550
|
-
protoOf(HttpConfig).
|
|
551
|
+
protoOf(HttpConfig).ue = function () {
|
|
551
552
|
return this.baseUrl;
|
|
552
553
|
};
|
|
553
|
-
protoOf(HttpConfig).
|
|
554
|
+
protoOf(HttpConfig).ve = function () {
|
|
554
555
|
return this.timeoutMillis;
|
|
555
556
|
};
|
|
556
|
-
protoOf(HttpConfig).
|
|
557
|
+
protoOf(HttpConfig).k5l = function (baseUrl, timeoutMillis) {
|
|
557
558
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
558
559
|
};
|
|
559
560
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
560
561
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
561
562
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
562
|
-
return this.
|
|
563
|
+
return this.k5l(baseUrl, timeoutMillis);
|
|
563
564
|
};
|
|
564
565
|
protoOf(HttpConfig).toString = function () {
|
|
565
566
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -594,31 +595,31 @@
|
|
|
594
595
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
595
596
|
this.httpConfig = httpConfig;
|
|
596
597
|
}
|
|
597
|
-
protoOf(RandomOrgConfig).
|
|
598
|
+
protoOf(RandomOrgConfig).e5m = function () {
|
|
598
599
|
return this.apiKey;
|
|
599
600
|
};
|
|
600
|
-
protoOf(RandomOrgConfig).
|
|
601
|
+
protoOf(RandomOrgConfig).f5m = function () {
|
|
601
602
|
return this.poolSize;
|
|
602
603
|
};
|
|
603
|
-
protoOf(RandomOrgConfig).
|
|
604
|
+
protoOf(RandomOrgConfig).g5m = function () {
|
|
604
605
|
return this.thresholdForUsedPool;
|
|
605
606
|
};
|
|
606
|
-
protoOf(RandomOrgConfig).
|
|
607
|
+
protoOf(RandomOrgConfig).h5m = function () {
|
|
607
608
|
return this.httpConfig;
|
|
608
609
|
};
|
|
609
|
-
protoOf(RandomOrgConfig).
|
|
610
|
+
protoOf(RandomOrgConfig).ue = function () {
|
|
610
611
|
return this.apiKey;
|
|
611
612
|
};
|
|
612
|
-
protoOf(RandomOrgConfig).
|
|
613
|
+
protoOf(RandomOrgConfig).ve = function () {
|
|
613
614
|
return this.poolSize;
|
|
614
615
|
};
|
|
615
|
-
protoOf(RandomOrgConfig).
|
|
616
|
+
protoOf(RandomOrgConfig).wk = function () {
|
|
616
617
|
return this.thresholdForUsedPool;
|
|
617
618
|
};
|
|
618
|
-
protoOf(RandomOrgConfig).
|
|
619
|
+
protoOf(RandomOrgConfig).x5l = function () {
|
|
619
620
|
return this.httpConfig;
|
|
620
621
|
};
|
|
621
|
-
protoOf(RandomOrgConfig).
|
|
622
|
+
protoOf(RandomOrgConfig).i5m = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
622
623
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
623
624
|
};
|
|
624
625
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -626,7 +627,7 @@
|
|
|
626
627
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
627
628
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
628
629
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
629
|
-
return this.
|
|
630
|
+
return this.i5m(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
630
631
|
};
|
|
631
632
|
protoOf(RandomOrgConfig).toString = function () {
|
|
632
633
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -663,59 +664,59 @@
|
|
|
663
664
|
function $serializer() {
|
|
664
665
|
$serializer_instance = this;
|
|
665
666
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
666
|
-
tmp0_serialDesc.
|
|
667
|
-
tmp0_serialDesc.
|
|
668
|
-
this.
|
|
669
|
-
}
|
|
670
|
-
protoOf($serializer).
|
|
671
|
-
var tmp0_desc = this.
|
|
672
|
-
var tmp1_output = encoder.
|
|
673
|
-
tmp1_output.
|
|
674
|
-
tmp1_output.
|
|
675
|
-
tmp1_output.
|
|
676
|
-
};
|
|
677
|
-
protoOf($serializer).
|
|
678
|
-
return this.
|
|
679
|
-
};
|
|
680
|
-
protoOf($serializer).
|
|
681
|
-
var tmp0_desc = this.
|
|
667
|
+
tmp0_serialDesc.u4e('jsonrpc', false);
|
|
668
|
+
tmp0_serialDesc.u4e('error', false);
|
|
669
|
+
this.j5m_1 = tmp0_serialDesc;
|
|
670
|
+
}
|
|
671
|
+
protoOf($serializer).k5m = function (encoder, value) {
|
|
672
|
+
var tmp0_desc = this.j5m_1;
|
|
673
|
+
var tmp1_output = encoder.g47(tmp0_desc);
|
|
674
|
+
tmp1_output.u48(tmp0_desc, 0, value.l5m_1);
|
|
675
|
+
tmp1_output.y48(tmp0_desc, 1, $serializer_getInstance_0(), value.m5m_1);
|
|
676
|
+
tmp1_output.h47(tmp0_desc);
|
|
677
|
+
};
|
|
678
|
+
protoOf($serializer).t43 = function (encoder, value) {
|
|
679
|
+
return this.k5m(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
680
|
+
};
|
|
681
|
+
protoOf($serializer).u43 = function (decoder) {
|
|
682
|
+
var tmp0_desc = this.j5m_1;
|
|
682
683
|
var tmp1_flag = true;
|
|
683
684
|
var tmp2_index = 0;
|
|
684
685
|
var tmp3_bitMask0 = 0;
|
|
685
686
|
var tmp4_local0 = null;
|
|
686
687
|
var tmp5_local1 = null;
|
|
687
|
-
var tmp6_input = decoder.
|
|
688
|
-
if (tmp6_input.
|
|
689
|
-
tmp4_local0 = tmp6_input.
|
|
688
|
+
var tmp6_input = decoder.g47(tmp0_desc);
|
|
689
|
+
if (tmp6_input.v47()) {
|
|
690
|
+
tmp4_local0 = tmp6_input.q47(tmp0_desc, 0);
|
|
690
691
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
691
|
-
tmp5_local1 = tmp6_input.
|
|
692
|
+
tmp5_local1 = tmp6_input.u47(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
692
693
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
693
694
|
} else
|
|
694
695
|
while (tmp1_flag) {
|
|
695
|
-
tmp2_index = tmp6_input.
|
|
696
|
+
tmp2_index = tmp6_input.w47(tmp0_desc);
|
|
696
697
|
switch (tmp2_index) {
|
|
697
698
|
case -1:
|
|
698
699
|
tmp1_flag = false;
|
|
699
700
|
break;
|
|
700
701
|
case 0:
|
|
701
|
-
tmp4_local0 = tmp6_input.
|
|
702
|
+
tmp4_local0 = tmp6_input.q47(tmp0_desc, 0);
|
|
702
703
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
703
704
|
break;
|
|
704
705
|
case 1:
|
|
705
|
-
tmp5_local1 = tmp6_input.
|
|
706
|
+
tmp5_local1 = tmp6_input.u47(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
706
707
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
707
708
|
break;
|
|
708
709
|
default:
|
|
709
710
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
710
711
|
}
|
|
711
712
|
}
|
|
712
|
-
tmp6_input.
|
|
713
|
+
tmp6_input.h47(tmp0_desc);
|
|
713
714
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
714
715
|
};
|
|
715
|
-
protoOf($serializer).
|
|
716
|
-
return this.
|
|
716
|
+
protoOf($serializer).s43 = function () {
|
|
717
|
+
return this.j5m_1;
|
|
717
718
|
};
|
|
718
|
-
protoOf($serializer).
|
|
719
|
+
protoOf($serializer).j4f = function () {
|
|
719
720
|
// Inline function 'kotlin.arrayOf' call
|
|
720
721
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
721
722
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -729,25 +730,25 @@
|
|
|
729
730
|
}
|
|
730
731
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
731
732
|
if (!(3 === (3 & seen0))) {
|
|
732
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
733
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().j5m_1);
|
|
733
734
|
}
|
|
734
|
-
$this.
|
|
735
|
-
$this.
|
|
735
|
+
$this.l5m_1 = jsonrpc;
|
|
736
|
+
$this.m5m_1 = error;
|
|
736
737
|
return $this;
|
|
737
738
|
}
|
|
738
739
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
739
740
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
740
741
|
}
|
|
741
742
|
function ErrorResponseDto(jsonrpc, error) {
|
|
742
|
-
this.
|
|
743
|
-
this.
|
|
743
|
+
this.l5m_1 = jsonrpc;
|
|
744
|
+
this.m5m_1 = error;
|
|
744
745
|
}
|
|
745
746
|
protoOf(ErrorResponseDto).toString = function () {
|
|
746
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
747
|
+
return 'ErrorResponseDto(jsonrpc=' + this.l5m_1 + ', error=' + toString_0(this.m5m_1) + ')';
|
|
747
748
|
};
|
|
748
749
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
749
|
-
var result = getStringHashCode(this.
|
|
750
|
-
result = imul(result, 31) + (this.
|
|
750
|
+
var result = getStringHashCode(this.l5m_1);
|
|
751
|
+
result = imul(result, 31) + (this.m5m_1 == null ? 0 : this.m5m_1.hashCode()) | 0;
|
|
751
752
|
return result;
|
|
752
753
|
};
|
|
753
754
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -756,68 +757,68 @@
|
|
|
756
757
|
if (!(other instanceof ErrorResponseDto))
|
|
757
758
|
return false;
|
|
758
759
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
759
|
-
if (!(this.
|
|
760
|
+
if (!(this.l5m_1 === tmp0_other_with_cast.l5m_1))
|
|
760
761
|
return false;
|
|
761
|
-
if (!equals(this.
|
|
762
|
+
if (!equals(this.m5m_1, tmp0_other_with_cast.m5m_1))
|
|
762
763
|
return false;
|
|
763
764
|
return true;
|
|
764
765
|
};
|
|
765
766
|
function $serializer_0() {
|
|
766
767
|
$serializer_instance_0 = this;
|
|
767
768
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
768
|
-
tmp0_serialDesc.
|
|
769
|
-
tmp0_serialDesc.
|
|
770
|
-
this.
|
|
771
|
-
}
|
|
772
|
-
protoOf($serializer_0).
|
|
773
|
-
var tmp0_desc = this.
|
|
774
|
-
var tmp1_output = encoder.
|
|
775
|
-
tmp1_output.
|
|
776
|
-
tmp1_output.
|
|
777
|
-
tmp1_output.
|
|
778
|
-
};
|
|
779
|
-
protoOf($serializer_0).
|
|
780
|
-
return this.
|
|
781
|
-
};
|
|
782
|
-
protoOf($serializer_0).
|
|
783
|
-
var tmp0_desc = this.
|
|
769
|
+
tmp0_serialDesc.u4e('code', false);
|
|
770
|
+
tmp0_serialDesc.u4e('message', false);
|
|
771
|
+
this.n5m_1 = tmp0_serialDesc;
|
|
772
|
+
}
|
|
773
|
+
protoOf($serializer_0).o5m = function (encoder, value) {
|
|
774
|
+
var tmp0_desc = this.n5m_1;
|
|
775
|
+
var tmp1_output = encoder.g47(tmp0_desc);
|
|
776
|
+
tmp1_output.y48(tmp0_desc, 0, IntSerializer_getInstance(), value.p5m_1);
|
|
777
|
+
tmp1_output.y48(tmp0_desc, 1, StringSerializer_getInstance(), value.q5m_1);
|
|
778
|
+
tmp1_output.h47(tmp0_desc);
|
|
779
|
+
};
|
|
780
|
+
protoOf($serializer_0).t43 = function (encoder, value) {
|
|
781
|
+
return this.o5m(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
782
|
+
};
|
|
783
|
+
protoOf($serializer_0).u43 = function (decoder) {
|
|
784
|
+
var tmp0_desc = this.n5m_1;
|
|
784
785
|
var tmp1_flag = true;
|
|
785
786
|
var tmp2_index = 0;
|
|
786
787
|
var tmp3_bitMask0 = 0;
|
|
787
788
|
var tmp4_local0 = null;
|
|
788
789
|
var tmp5_local1 = null;
|
|
789
|
-
var tmp6_input = decoder.
|
|
790
|
-
if (tmp6_input.
|
|
791
|
-
tmp4_local0 = tmp6_input.
|
|
790
|
+
var tmp6_input = decoder.g47(tmp0_desc);
|
|
791
|
+
if (tmp6_input.v47()) {
|
|
792
|
+
tmp4_local0 = tmp6_input.u47(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
792
793
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
793
|
-
tmp5_local1 = tmp6_input.
|
|
794
|
+
tmp5_local1 = tmp6_input.u47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
794
795
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
795
796
|
} else
|
|
796
797
|
while (tmp1_flag) {
|
|
797
|
-
tmp2_index = tmp6_input.
|
|
798
|
+
tmp2_index = tmp6_input.w47(tmp0_desc);
|
|
798
799
|
switch (tmp2_index) {
|
|
799
800
|
case -1:
|
|
800
801
|
tmp1_flag = false;
|
|
801
802
|
break;
|
|
802
803
|
case 0:
|
|
803
|
-
tmp4_local0 = tmp6_input.
|
|
804
|
+
tmp4_local0 = tmp6_input.u47(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
804
805
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
805
806
|
break;
|
|
806
807
|
case 1:
|
|
807
|
-
tmp5_local1 = tmp6_input.
|
|
808
|
+
tmp5_local1 = tmp6_input.u47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
808
809
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
809
810
|
break;
|
|
810
811
|
default:
|
|
811
812
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
812
813
|
}
|
|
813
814
|
}
|
|
814
|
-
tmp6_input.
|
|
815
|
+
tmp6_input.h47(tmp0_desc);
|
|
815
816
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
816
817
|
};
|
|
817
|
-
protoOf($serializer_0).
|
|
818
|
-
return this.
|
|
818
|
+
protoOf($serializer_0).s43 = function () {
|
|
819
|
+
return this.n5m_1;
|
|
819
820
|
};
|
|
820
|
-
protoOf($serializer_0).
|
|
821
|
+
protoOf($serializer_0).j4f = function () {
|
|
821
822
|
// Inline function 'kotlin.arrayOf' call
|
|
822
823
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
823
824
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -831,10 +832,10 @@
|
|
|
831
832
|
}
|
|
832
833
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
833
834
|
if (!(3 === (3 & seen0))) {
|
|
834
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
835
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().n5m_1);
|
|
835
836
|
}
|
|
836
|
-
$this.
|
|
837
|
-
$this.
|
|
837
|
+
$this.p5m_1 = code;
|
|
838
|
+
$this.q5m_1 = message;
|
|
838
839
|
return $this;
|
|
839
840
|
}
|
|
840
841
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -843,11 +844,11 @@
|
|
|
843
844
|
function ErrorDto() {
|
|
844
845
|
}
|
|
845
846
|
protoOf(ErrorDto).toString = function () {
|
|
846
|
-
return 'ErrorDto(code=' + this.
|
|
847
|
+
return 'ErrorDto(code=' + this.p5m_1 + ', message=' + this.q5m_1 + ')';
|
|
847
848
|
};
|
|
848
849
|
protoOf(ErrorDto).hashCode = function () {
|
|
849
|
-
var result = this.
|
|
850
|
-
result = imul(result, 31) + (this.
|
|
850
|
+
var result = this.p5m_1 == null ? 0 : this.p5m_1;
|
|
851
|
+
result = imul(result, 31) + (this.q5m_1 == null ? 0 : getStringHashCode(this.q5m_1)) | 0;
|
|
851
852
|
return result;
|
|
852
853
|
};
|
|
853
854
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -856,15 +857,15 @@
|
|
|
856
857
|
if (!(other instanceof ErrorDto))
|
|
857
858
|
return false;
|
|
858
859
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
859
|
-
if (!(this.
|
|
860
|
+
if (!(this.p5m_1 == tmp0_other_with_cast.p5m_1))
|
|
860
861
|
return false;
|
|
861
|
-
if (!(this.
|
|
862
|
+
if (!(this.q5m_1 == tmp0_other_with_cast.q5m_1))
|
|
862
863
|
return false;
|
|
863
864
|
return true;
|
|
864
865
|
};
|
|
865
866
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
866
867
|
$serializer_1.call($this);
|
|
867
|
-
$this.
|
|
868
|
+
$this.s5m_1 = typeSerial0;
|
|
868
869
|
return $this;
|
|
869
870
|
}
|
|
870
871
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -873,17 +874,17 @@
|
|
|
873
874
|
function Companion_2() {
|
|
874
875
|
Companion_instance_4 = this;
|
|
875
876
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
876
|
-
tmp0_serialDesc.
|
|
877
|
-
tmp0_serialDesc.
|
|
878
|
-
tmp0_serialDesc.
|
|
879
|
-
tmp0_serialDesc.
|
|
880
|
-
this.
|
|
877
|
+
tmp0_serialDesc.u4e('jsonrpc', false);
|
|
878
|
+
tmp0_serialDesc.u4e('method', false);
|
|
879
|
+
tmp0_serialDesc.u4e('params', false);
|
|
880
|
+
tmp0_serialDesc.u4e('id', false);
|
|
881
|
+
this.t5m_1 = tmp0_serialDesc;
|
|
881
882
|
}
|
|
882
|
-
protoOf(Companion_2).
|
|
883
|
+
protoOf(Companion_2).u5m = function (typeSerial0) {
|
|
883
884
|
return $serializer_init_$Create$(typeSerial0);
|
|
884
885
|
};
|
|
885
|
-
protoOf(Companion_2).
|
|
886
|
-
return this.
|
|
886
|
+
protoOf(Companion_2).u4f = function (typeParamsSerializers) {
|
|
887
|
+
return this.u5m(typeParamsSerializers[0]);
|
|
887
888
|
};
|
|
888
889
|
var Companion_instance_4;
|
|
889
890
|
function Companion_getInstance_5() {
|
|
@@ -893,26 +894,26 @@
|
|
|
893
894
|
}
|
|
894
895
|
function $serializer_1() {
|
|
895
896
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
896
|
-
tmp0_serialDesc.
|
|
897
|
-
tmp0_serialDesc.
|
|
898
|
-
tmp0_serialDesc.
|
|
899
|
-
tmp0_serialDesc.
|
|
900
|
-
this.
|
|
901
|
-
}
|
|
902
|
-
protoOf($serializer_1).
|
|
903
|
-
var tmp0_desc = this.
|
|
904
|
-
var tmp1_output = encoder.
|
|
905
|
-
tmp1_output.
|
|
906
|
-
tmp1_output.
|
|
907
|
-
tmp1_output.
|
|
908
|
-
tmp1_output.
|
|
909
|
-
tmp1_output.
|
|
910
|
-
};
|
|
911
|
-
protoOf($serializer_1).
|
|
912
|
-
return this.
|
|
913
|
-
};
|
|
914
|
-
protoOf($serializer_1).
|
|
915
|
-
var tmp0_desc = this.
|
|
897
|
+
tmp0_serialDesc.u4e('jsonrpc', false);
|
|
898
|
+
tmp0_serialDesc.u4e('method', false);
|
|
899
|
+
tmp0_serialDesc.u4e('params', false);
|
|
900
|
+
tmp0_serialDesc.u4e('id', false);
|
|
901
|
+
this.r5m_1 = tmp0_serialDesc;
|
|
902
|
+
}
|
|
903
|
+
protoOf($serializer_1).v5m = function (encoder, value) {
|
|
904
|
+
var tmp0_desc = this.r5m_1;
|
|
905
|
+
var tmp1_output = encoder.g47(tmp0_desc);
|
|
906
|
+
tmp1_output.u48(tmp0_desc, 0, value.w5m_1);
|
|
907
|
+
tmp1_output.u48(tmp0_desc, 1, value.x5m_1);
|
|
908
|
+
tmp1_output.w48(tmp0_desc, 2, this.s5m_1, value.y5m_1);
|
|
909
|
+
tmp1_output.u48(tmp0_desc, 3, value.z5m_1);
|
|
910
|
+
tmp1_output.h47(tmp0_desc);
|
|
911
|
+
};
|
|
912
|
+
protoOf($serializer_1).t43 = function (encoder, value) {
|
|
913
|
+
return this.v5m(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
914
|
+
};
|
|
915
|
+
protoOf($serializer_1).u43 = function (decoder) {
|
|
916
|
+
var tmp0_desc = this.r5m_1;
|
|
916
917
|
var tmp1_flag = true;
|
|
917
918
|
var tmp2_index = 0;
|
|
918
919
|
var tmp3_bitMask0 = 0;
|
|
@@ -920,69 +921,69 @@
|
|
|
920
921
|
var tmp5_local1 = null;
|
|
921
922
|
var tmp6_local2 = null;
|
|
922
923
|
var tmp7_local3 = null;
|
|
923
|
-
var tmp8_input = decoder.
|
|
924
|
-
if (tmp8_input.
|
|
925
|
-
tmp4_local0 = tmp8_input.
|
|
924
|
+
var tmp8_input = decoder.g47(tmp0_desc);
|
|
925
|
+
if (tmp8_input.v47()) {
|
|
926
|
+
tmp4_local0 = tmp8_input.q47(tmp0_desc, 0);
|
|
926
927
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
927
|
-
tmp5_local1 = tmp8_input.
|
|
928
|
+
tmp5_local1 = tmp8_input.q47(tmp0_desc, 1);
|
|
928
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
929
|
-
tmp6_local2 = tmp8_input.
|
|
930
|
+
tmp6_local2 = tmp8_input.s47(tmp0_desc, 2, this.s5m_1, tmp6_local2);
|
|
930
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
931
|
-
tmp7_local3 = tmp8_input.
|
|
932
|
+
tmp7_local3 = tmp8_input.q47(tmp0_desc, 3);
|
|
932
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
933
934
|
} else
|
|
934
935
|
while (tmp1_flag) {
|
|
935
|
-
tmp2_index = tmp8_input.
|
|
936
|
+
tmp2_index = tmp8_input.w47(tmp0_desc);
|
|
936
937
|
switch (tmp2_index) {
|
|
937
938
|
case -1:
|
|
938
939
|
tmp1_flag = false;
|
|
939
940
|
break;
|
|
940
941
|
case 0:
|
|
941
|
-
tmp4_local0 = tmp8_input.
|
|
942
|
+
tmp4_local0 = tmp8_input.q47(tmp0_desc, 0);
|
|
942
943
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
943
944
|
break;
|
|
944
945
|
case 1:
|
|
945
|
-
tmp5_local1 = tmp8_input.
|
|
946
|
+
tmp5_local1 = tmp8_input.q47(tmp0_desc, 1);
|
|
946
947
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
947
948
|
break;
|
|
948
949
|
case 2:
|
|
949
|
-
tmp6_local2 = tmp8_input.
|
|
950
|
+
tmp6_local2 = tmp8_input.s47(tmp0_desc, 2, this.s5m_1, tmp6_local2);
|
|
950
951
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
951
952
|
break;
|
|
952
953
|
case 3:
|
|
953
|
-
tmp7_local3 = tmp8_input.
|
|
954
|
+
tmp7_local3 = tmp8_input.q47(tmp0_desc, 3);
|
|
954
955
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
955
956
|
break;
|
|
956
957
|
default:
|
|
957
958
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
958
959
|
}
|
|
959
960
|
}
|
|
960
|
-
tmp8_input.
|
|
961
|
+
tmp8_input.h47(tmp0_desc);
|
|
961
962
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
962
963
|
};
|
|
963
|
-
protoOf($serializer_1).
|
|
964
|
-
return this.
|
|
964
|
+
protoOf($serializer_1).s43 = function () {
|
|
965
|
+
return this.r5m_1;
|
|
965
966
|
};
|
|
966
|
-
protoOf($serializer_1).
|
|
967
|
+
protoOf($serializer_1).j4f = function () {
|
|
967
968
|
// Inline function 'kotlin.arrayOf' call
|
|
968
969
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
969
970
|
// Inline function 'kotlin.js.asDynamic' call
|
|
970
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
971
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.s5m_1, StringSerializer_getInstance()];
|
|
971
972
|
};
|
|
972
|
-
protoOf($serializer_1).
|
|
973
|
+
protoOf($serializer_1).k4f = function () {
|
|
973
974
|
// Inline function 'kotlin.arrayOf' call
|
|
974
975
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
975
976
|
// Inline function 'kotlin.js.asDynamic' call
|
|
976
|
-
return [this.
|
|
977
|
+
return [this.s5m_1];
|
|
977
978
|
};
|
|
978
979
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
979
980
|
if (!(15 === (15 & seen0))) {
|
|
980
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
981
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().t5m_1);
|
|
981
982
|
}
|
|
982
|
-
$this.
|
|
983
|
-
$this.
|
|
984
|
-
$this.
|
|
985
|
-
$this.
|
|
983
|
+
$this.w5m_1 = jsonrpc;
|
|
984
|
+
$this.x5m_1 = method;
|
|
985
|
+
$this.y5m_1 = params;
|
|
986
|
+
$this.z5m_1 = id;
|
|
986
987
|
return $this;
|
|
987
988
|
}
|
|
988
989
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -990,19 +991,19 @@
|
|
|
990
991
|
}
|
|
991
992
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
992
993
|
Companion_getInstance_5();
|
|
993
|
-
this.
|
|
994
|
-
this.
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
994
|
+
this.w5m_1 = jsonrpc;
|
|
995
|
+
this.x5m_1 = method;
|
|
996
|
+
this.y5m_1 = params;
|
|
997
|
+
this.z5m_1 = id;
|
|
997
998
|
}
|
|
998
999
|
protoOf(RandomRequestDto).toString = function () {
|
|
999
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
1000
|
+
return 'RandomRequestDto(jsonrpc=' + this.w5m_1 + ', method=' + this.x5m_1 + ', params=' + toString(this.y5m_1) + ', id=' + this.z5m_1 + ')';
|
|
1000
1001
|
};
|
|
1001
1002
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1002
|
-
var result = getStringHashCode(this.
|
|
1003
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1004
|
-
result = imul(result, 31) + hashCode(this.
|
|
1005
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1003
|
+
var result = getStringHashCode(this.w5m_1);
|
|
1004
|
+
result = imul(result, 31) + getStringHashCode(this.x5m_1) | 0;
|
|
1005
|
+
result = imul(result, 31) + hashCode(this.y5m_1) | 0;
|
|
1006
|
+
result = imul(result, 31) + getStringHashCode(this.z5m_1) | 0;
|
|
1006
1007
|
return result;
|
|
1007
1008
|
};
|
|
1008
1009
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1011,13 +1012,13 @@
|
|
|
1011
1012
|
if (!(other instanceof RandomRequestDto))
|
|
1012
1013
|
return false;
|
|
1013
1014
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1014
|
-
if (!(this.
|
|
1015
|
+
if (!(this.w5m_1 === tmp0_other_with_cast.w5m_1))
|
|
1015
1016
|
return false;
|
|
1016
|
-
if (!(this.
|
|
1017
|
+
if (!(this.x5m_1 === tmp0_other_with_cast.x5m_1))
|
|
1017
1018
|
return false;
|
|
1018
|
-
if (!equals(this.
|
|
1019
|
+
if (!equals(this.y5m_1, tmp0_other_with_cast.y5m_1))
|
|
1019
1020
|
return false;
|
|
1020
|
-
if (!(this.
|
|
1021
|
+
if (!(this.z5m_1 === tmp0_other_with_cast.z5m_1))
|
|
1021
1022
|
return false;
|
|
1022
1023
|
return true;
|
|
1023
1024
|
};
|
|
@@ -1027,7 +1028,7 @@
|
|
|
1027
1028
|
// Inline function 'kotlin.arrayOf' call
|
|
1028
1029
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1029
1030
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1030
|
-
tmp.
|
|
1031
|
+
tmp.a5n_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1031
1032
|
}
|
|
1032
1033
|
var Companion_instance_5;
|
|
1033
1034
|
function Companion_getInstance_6() {
|
|
@@ -1038,35 +1039,35 @@
|
|
|
1038
1039
|
function $serializer_2() {
|
|
1039
1040
|
$serializer_instance_1 = this;
|
|
1040
1041
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1041
|
-
tmp0_serialDesc.
|
|
1042
|
-
tmp0_serialDesc.
|
|
1043
|
-
tmp0_serialDesc.
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
tmp0_serialDesc.
|
|
1046
|
-
tmp0_serialDesc.
|
|
1047
|
-
tmp0_serialDesc.
|
|
1048
|
-
tmp0_serialDesc.
|
|
1049
|
-
this.
|
|
1042
|
+
tmp0_serialDesc.u4e('apiKey', false);
|
|
1043
|
+
tmp0_serialDesc.u4e('n', false);
|
|
1044
|
+
tmp0_serialDesc.u4e('length', false);
|
|
1045
|
+
tmp0_serialDesc.u4e('min', false);
|
|
1046
|
+
tmp0_serialDesc.u4e('max', false);
|
|
1047
|
+
tmp0_serialDesc.u4e('replacement', false);
|
|
1048
|
+
tmp0_serialDesc.u4e('ticketId', false);
|
|
1049
|
+
tmp0_serialDesc.u4e('userData', false);
|
|
1050
|
+
this.b5n_1 = tmp0_serialDesc;
|
|
1050
1051
|
}
|
|
1051
|
-
protoOf($serializer_2).
|
|
1052
|
-
var tmp0_desc = this.
|
|
1053
|
-
var tmp1_output = encoder.
|
|
1054
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1055
|
-
tmp1_output.
|
|
1056
|
-
tmp1_output.
|
|
1057
|
-
tmp1_output.
|
|
1058
|
-
tmp1_output.
|
|
1059
|
-
tmp1_output.
|
|
1060
|
-
tmp1_output.
|
|
1061
|
-
tmp1_output.
|
|
1062
|
-
tmp1_output.
|
|
1063
|
-
tmp1_output.
|
|
1064
|
-
};
|
|
1065
|
-
protoOf($serializer_2).
|
|
1066
|
-
return this.
|
|
1067
|
-
};
|
|
1068
|
-
protoOf($serializer_2).
|
|
1069
|
-
var tmp0_desc = this.
|
|
1052
|
+
protoOf($serializer_2).c5n = function (encoder, value) {
|
|
1053
|
+
var tmp0_desc = this.b5n_1;
|
|
1054
|
+
var tmp1_output = encoder.g47(tmp0_desc);
|
|
1055
|
+
var tmp2_cached = Companion_getInstance_6().a5n_1;
|
|
1056
|
+
tmp1_output.u48(tmp0_desc, 0, value.d5n_1);
|
|
1057
|
+
tmp1_output.p48(tmp0_desc, 1, value.e5n_1);
|
|
1058
|
+
tmp1_output.w48(tmp0_desc, 2, tmp2_cached[2], value.f5n_1);
|
|
1059
|
+
tmp1_output.p48(tmp0_desc, 3, value.g5n_1);
|
|
1060
|
+
tmp1_output.p48(tmp0_desc, 4, value.h5n_1);
|
|
1061
|
+
tmp1_output.m48(tmp0_desc, 5, value.i5n_1);
|
|
1062
|
+
tmp1_output.y48(tmp0_desc, 6, StringSerializer_getInstance(), value.j5n_1);
|
|
1063
|
+
tmp1_output.y48(tmp0_desc, 7, $serializer_getInstance_2(), value.k5n_1);
|
|
1064
|
+
tmp1_output.h47(tmp0_desc);
|
|
1065
|
+
};
|
|
1066
|
+
protoOf($serializer_2).t43 = function (encoder, value) {
|
|
1067
|
+
return this.c5n(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1068
|
+
};
|
|
1069
|
+
protoOf($serializer_2).u43 = function (decoder) {
|
|
1070
|
+
var tmp0_desc = this.b5n_1;
|
|
1070
1071
|
var tmp1_flag = true;
|
|
1071
1072
|
var tmp2_index = 0;
|
|
1072
1073
|
var tmp3_bitMask0 = 0;
|
|
@@ -1078,76 +1079,76 @@
|
|
|
1078
1079
|
var tmp9_local5 = false;
|
|
1079
1080
|
var tmp10_local6 = null;
|
|
1080
1081
|
var tmp11_local7 = null;
|
|
1081
|
-
var tmp12_input = decoder.
|
|
1082
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1083
|
-
if (tmp12_input.
|
|
1084
|
-
tmp4_local0 = tmp12_input.
|
|
1082
|
+
var tmp12_input = decoder.g47(tmp0_desc);
|
|
1083
|
+
var tmp13_cached = Companion_getInstance_6().a5n_1;
|
|
1084
|
+
if (tmp12_input.v47()) {
|
|
1085
|
+
tmp4_local0 = tmp12_input.q47(tmp0_desc, 0);
|
|
1085
1086
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1086
|
-
tmp5_local1 = tmp12_input.
|
|
1087
|
+
tmp5_local1 = tmp12_input.l47(tmp0_desc, 1);
|
|
1087
1088
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1088
|
-
tmp6_local2 = tmp12_input.
|
|
1089
|
+
tmp6_local2 = tmp12_input.s47(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1089
1090
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1090
|
-
tmp7_local3 = tmp12_input.
|
|
1091
|
+
tmp7_local3 = tmp12_input.l47(tmp0_desc, 3);
|
|
1091
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1092
|
-
tmp8_local4 = tmp12_input.
|
|
1093
|
+
tmp8_local4 = tmp12_input.l47(tmp0_desc, 4);
|
|
1093
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1094
|
-
tmp9_local5 = tmp12_input.
|
|
1095
|
+
tmp9_local5 = tmp12_input.i47(tmp0_desc, 5);
|
|
1095
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1096
|
-
tmp10_local6 = tmp12_input.
|
|
1097
|
+
tmp10_local6 = tmp12_input.u47(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1097
1098
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1098
|
-
tmp11_local7 = tmp12_input.
|
|
1099
|
+
tmp11_local7 = tmp12_input.u47(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1099
1100
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1100
1101
|
} else
|
|
1101
1102
|
while (tmp1_flag) {
|
|
1102
|
-
tmp2_index = tmp12_input.
|
|
1103
|
+
tmp2_index = tmp12_input.w47(tmp0_desc);
|
|
1103
1104
|
switch (tmp2_index) {
|
|
1104
1105
|
case -1:
|
|
1105
1106
|
tmp1_flag = false;
|
|
1106
1107
|
break;
|
|
1107
1108
|
case 0:
|
|
1108
|
-
tmp4_local0 = tmp12_input.
|
|
1109
|
+
tmp4_local0 = tmp12_input.q47(tmp0_desc, 0);
|
|
1109
1110
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1110
1111
|
break;
|
|
1111
1112
|
case 1:
|
|
1112
|
-
tmp5_local1 = tmp12_input.
|
|
1113
|
+
tmp5_local1 = tmp12_input.l47(tmp0_desc, 1);
|
|
1113
1114
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1114
1115
|
break;
|
|
1115
1116
|
case 2:
|
|
1116
|
-
tmp6_local2 = tmp12_input.
|
|
1117
|
+
tmp6_local2 = tmp12_input.s47(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1117
1118
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1118
1119
|
break;
|
|
1119
1120
|
case 3:
|
|
1120
|
-
tmp7_local3 = tmp12_input.
|
|
1121
|
+
tmp7_local3 = tmp12_input.l47(tmp0_desc, 3);
|
|
1121
1122
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1122
1123
|
break;
|
|
1123
1124
|
case 4:
|
|
1124
|
-
tmp8_local4 = tmp12_input.
|
|
1125
|
+
tmp8_local4 = tmp12_input.l47(tmp0_desc, 4);
|
|
1125
1126
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1126
1127
|
break;
|
|
1127
1128
|
case 5:
|
|
1128
|
-
tmp9_local5 = tmp12_input.
|
|
1129
|
+
tmp9_local5 = tmp12_input.i47(tmp0_desc, 5);
|
|
1129
1130
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1130
1131
|
break;
|
|
1131
1132
|
case 6:
|
|
1132
|
-
tmp10_local6 = tmp12_input.
|
|
1133
|
+
tmp10_local6 = tmp12_input.u47(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1133
1134
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1134
1135
|
break;
|
|
1135
1136
|
case 7:
|
|
1136
|
-
tmp11_local7 = tmp12_input.
|
|
1137
|
+
tmp11_local7 = tmp12_input.u47(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1137
1138
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1138
1139
|
break;
|
|
1139
1140
|
default:
|
|
1140
1141
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1141
1142
|
}
|
|
1142
1143
|
}
|
|
1143
|
-
tmp12_input.
|
|
1144
|
+
tmp12_input.h47(tmp0_desc);
|
|
1144
1145
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1145
1146
|
};
|
|
1146
|
-
protoOf($serializer_2).
|
|
1147
|
-
return this.
|
|
1147
|
+
protoOf($serializer_2).s43 = function () {
|
|
1148
|
+
return this.b5n_1;
|
|
1148
1149
|
};
|
|
1149
|
-
protoOf($serializer_2).
|
|
1150
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1150
|
+
protoOf($serializer_2).j4f = function () {
|
|
1151
|
+
var tmp0_cached = Companion_getInstance_6().a5n_1;
|
|
1151
1152
|
// Inline function 'kotlin.arrayOf' call
|
|
1152
1153
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1153
1154
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1161,16 +1162,16 @@
|
|
|
1161
1162
|
}
|
|
1162
1163
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1163
1164
|
if (!(255 === (255 & seen0))) {
|
|
1164
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1165
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().b5n_1);
|
|
1165
1166
|
}
|
|
1166
|
-
$this.
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1170
|
-
$this.
|
|
1171
|
-
$this.
|
|
1172
|
-
$this.
|
|
1173
|
-
$this.
|
|
1167
|
+
$this.d5n_1 = apiKey;
|
|
1168
|
+
$this.e5n_1 = n;
|
|
1169
|
+
$this.f5n_1 = length;
|
|
1170
|
+
$this.g5n_1 = min;
|
|
1171
|
+
$this.h5n_1 = max;
|
|
1172
|
+
$this.i5n_1 = replacement;
|
|
1173
|
+
$this.j5n_1 = ticketId;
|
|
1174
|
+
$this.k5n_1 = userData;
|
|
1174
1175
|
return $this;
|
|
1175
1176
|
}
|
|
1176
1177
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1178,27 +1179,27 @@
|
|
|
1178
1179
|
}
|
|
1179
1180
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1180
1181
|
Companion_getInstance_6();
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1182
|
+
this.d5n_1 = apiKey;
|
|
1183
|
+
this.e5n_1 = n;
|
|
1184
|
+
this.f5n_1 = length;
|
|
1185
|
+
this.g5n_1 = min;
|
|
1186
|
+
this.h5n_1 = max;
|
|
1187
|
+
this.i5n_1 = replacement;
|
|
1188
|
+
this.j5n_1 = ticketId;
|
|
1189
|
+
this.k5n_1 = userData;
|
|
1189
1190
|
}
|
|
1190
1191
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1191
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1192
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.d5n_1 + ', n=' + this.e5n_1 + ', length=' + toString(this.f5n_1) + ', min=' + this.g5n_1 + ', max=' + this.h5n_1 + ', replacement=' + this.i5n_1 + ', ticketId=' + this.j5n_1 + ', userData=' + toString_0(this.k5n_1) + ')';
|
|
1192
1193
|
};
|
|
1193
1194
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1194
|
-
var result = getStringHashCode(this.
|
|
1195
|
-
result = imul(result, 31) + this.
|
|
1196
|
-
result = imul(result, 31) + hashCode(this.
|
|
1197
|
-
result = imul(result, 31) + this.
|
|
1198
|
-
result = imul(result, 31) + this.
|
|
1199
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1200
|
-
result = imul(result, 31) + (this.
|
|
1201
|
-
result = imul(result, 31) + (this.
|
|
1195
|
+
var result = getStringHashCode(this.d5n_1);
|
|
1196
|
+
result = imul(result, 31) + this.e5n_1 | 0;
|
|
1197
|
+
result = imul(result, 31) + hashCode(this.f5n_1) | 0;
|
|
1198
|
+
result = imul(result, 31) + this.g5n_1 | 0;
|
|
1199
|
+
result = imul(result, 31) + this.h5n_1 | 0;
|
|
1200
|
+
result = imul(result, 31) + getBooleanHashCode(this.i5n_1) | 0;
|
|
1201
|
+
result = imul(result, 31) + (this.j5n_1 == null ? 0 : getStringHashCode(this.j5n_1)) | 0;
|
|
1202
|
+
result = imul(result, 31) + (this.k5n_1 == null ? 0 : this.k5n_1.hashCode()) | 0;
|
|
1202
1203
|
return result;
|
|
1203
1204
|
};
|
|
1204
1205
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1207,21 +1208,21 @@
|
|
|
1207
1208
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1208
1209
|
return false;
|
|
1209
1210
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1210
|
-
if (!(this.
|
|
1211
|
+
if (!(this.d5n_1 === tmp0_other_with_cast.d5n_1))
|
|
1211
1212
|
return false;
|
|
1212
|
-
if (!(this.
|
|
1213
|
+
if (!(this.e5n_1 === tmp0_other_with_cast.e5n_1))
|
|
1213
1214
|
return false;
|
|
1214
|
-
if (!equals(this.
|
|
1215
|
+
if (!equals(this.f5n_1, tmp0_other_with_cast.f5n_1))
|
|
1215
1216
|
return false;
|
|
1216
|
-
if (!(this.
|
|
1217
|
+
if (!(this.g5n_1 === tmp0_other_with_cast.g5n_1))
|
|
1217
1218
|
return false;
|
|
1218
|
-
if (!(this.
|
|
1219
|
+
if (!(this.h5n_1 === tmp0_other_with_cast.h5n_1))
|
|
1219
1220
|
return false;
|
|
1220
|
-
if (!(this.
|
|
1221
|
+
if (!(this.i5n_1 === tmp0_other_with_cast.i5n_1))
|
|
1221
1222
|
return false;
|
|
1222
|
-
if (!(this.
|
|
1223
|
+
if (!(this.j5n_1 == tmp0_other_with_cast.j5n_1))
|
|
1223
1224
|
return false;
|
|
1224
|
-
if (!equals(this.
|
|
1225
|
+
if (!equals(this.k5n_1, tmp0_other_with_cast.k5n_1))
|
|
1225
1226
|
return false;
|
|
1226
1227
|
return true;
|
|
1227
1228
|
};
|
|
@@ -1234,59 +1235,59 @@
|
|
|
1234
1235
|
function $serializer_3() {
|
|
1235
1236
|
$serializer_instance_2 = this;
|
|
1236
1237
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1237
|
-
tmp0_serialDesc.
|
|
1238
|
-
tmp0_serialDesc.
|
|
1239
|
-
this.
|
|
1240
|
-
}
|
|
1241
|
-
protoOf($serializer_3).
|
|
1242
|
-
var tmp0_desc = this.
|
|
1243
|
-
var tmp1_output = encoder.
|
|
1244
|
-
tmp1_output.
|
|
1245
|
-
tmp1_output.
|
|
1246
|
-
tmp1_output.
|
|
1247
|
-
};
|
|
1248
|
-
protoOf($serializer_3).
|
|
1249
|
-
return this.
|
|
1250
|
-
};
|
|
1251
|
-
protoOf($serializer_3).
|
|
1252
|
-
var tmp0_desc = this.
|
|
1238
|
+
tmp0_serialDesc.u4e('id', false);
|
|
1239
|
+
tmp0_serialDesc.u4e('count', false);
|
|
1240
|
+
this.l5n_1 = tmp0_serialDesc;
|
|
1241
|
+
}
|
|
1242
|
+
protoOf($serializer_3).m5n = function (encoder, value) {
|
|
1243
|
+
var tmp0_desc = this.l5n_1;
|
|
1244
|
+
var tmp1_output = encoder.g47(tmp0_desc);
|
|
1245
|
+
tmp1_output.u48(tmp0_desc, 0, value.n5n_1);
|
|
1246
|
+
tmp1_output.p48(tmp0_desc, 1, value.o5n_1);
|
|
1247
|
+
tmp1_output.h47(tmp0_desc);
|
|
1248
|
+
};
|
|
1249
|
+
protoOf($serializer_3).t43 = function (encoder, value) {
|
|
1250
|
+
return this.m5n(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1251
|
+
};
|
|
1252
|
+
protoOf($serializer_3).u43 = function (decoder) {
|
|
1253
|
+
var tmp0_desc = this.l5n_1;
|
|
1253
1254
|
var tmp1_flag = true;
|
|
1254
1255
|
var tmp2_index = 0;
|
|
1255
1256
|
var tmp3_bitMask0 = 0;
|
|
1256
1257
|
var tmp4_local0 = null;
|
|
1257
1258
|
var tmp5_local1 = 0;
|
|
1258
|
-
var tmp6_input = decoder.
|
|
1259
|
-
if (tmp6_input.
|
|
1260
|
-
tmp4_local0 = tmp6_input.
|
|
1259
|
+
var tmp6_input = decoder.g47(tmp0_desc);
|
|
1260
|
+
if (tmp6_input.v47()) {
|
|
1261
|
+
tmp4_local0 = tmp6_input.q47(tmp0_desc, 0);
|
|
1261
1262
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1262
|
-
tmp5_local1 = tmp6_input.
|
|
1263
|
+
tmp5_local1 = tmp6_input.l47(tmp0_desc, 1);
|
|
1263
1264
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1264
1265
|
} else
|
|
1265
1266
|
while (tmp1_flag) {
|
|
1266
|
-
tmp2_index = tmp6_input.
|
|
1267
|
+
tmp2_index = tmp6_input.w47(tmp0_desc);
|
|
1267
1268
|
switch (tmp2_index) {
|
|
1268
1269
|
case -1:
|
|
1269
1270
|
tmp1_flag = false;
|
|
1270
1271
|
break;
|
|
1271
1272
|
case 0:
|
|
1272
|
-
tmp4_local0 = tmp6_input.
|
|
1273
|
+
tmp4_local0 = tmp6_input.q47(tmp0_desc, 0);
|
|
1273
1274
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1274
1275
|
break;
|
|
1275
1276
|
case 1:
|
|
1276
|
-
tmp5_local1 = tmp6_input.
|
|
1277
|
+
tmp5_local1 = tmp6_input.l47(tmp0_desc, 1);
|
|
1277
1278
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1278
1279
|
break;
|
|
1279
1280
|
default:
|
|
1280
1281
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1281
1282
|
}
|
|
1282
1283
|
}
|
|
1283
|
-
tmp6_input.
|
|
1284
|
+
tmp6_input.h47(tmp0_desc);
|
|
1284
1285
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1285
1286
|
};
|
|
1286
|
-
protoOf($serializer_3).
|
|
1287
|
-
return this.
|
|
1287
|
+
protoOf($serializer_3).s43 = function () {
|
|
1288
|
+
return this.l5n_1;
|
|
1288
1289
|
};
|
|
1289
|
-
protoOf($serializer_3).
|
|
1290
|
+
protoOf($serializer_3).j4f = function () {
|
|
1290
1291
|
// Inline function 'kotlin.arrayOf' call
|
|
1291
1292
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1292
1293
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1300,25 +1301,25 @@
|
|
|
1300
1301
|
}
|
|
1301
1302
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1302
1303
|
if (!(3 === (3 & seen0))) {
|
|
1303
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1304
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().l5n_1);
|
|
1304
1305
|
}
|
|
1305
|
-
$this.
|
|
1306
|
-
$this.
|
|
1306
|
+
$this.n5n_1 = id;
|
|
1307
|
+
$this.o5n_1 = count;
|
|
1307
1308
|
return $this;
|
|
1308
1309
|
}
|
|
1309
1310
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1310
1311
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1311
1312
|
}
|
|
1312
1313
|
function CardDecksUserDataDto(id, count) {
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1314
|
+
this.n5n_1 = id;
|
|
1315
|
+
this.o5n_1 = count;
|
|
1315
1316
|
}
|
|
1316
1317
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1317
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1318
|
+
return 'CardDecksUserDataDto(id=' + this.n5n_1 + ', count=' + this.o5n_1 + ')';
|
|
1318
1319
|
};
|
|
1319
1320
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1320
|
-
var result = getStringHashCode(this.
|
|
1321
|
-
result = imul(result, 31) + this.
|
|
1321
|
+
var result = getStringHashCode(this.n5n_1);
|
|
1322
|
+
result = imul(result, 31) + this.o5n_1 | 0;
|
|
1322
1323
|
return result;
|
|
1323
1324
|
};
|
|
1324
1325
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1327,15 +1328,15 @@
|
|
|
1327
1328
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1328
1329
|
return false;
|
|
1329
1330
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1330
|
-
if (!(this.
|
|
1331
|
+
if (!(this.n5n_1 === tmp0_other_with_cast.n5n_1))
|
|
1331
1332
|
return false;
|
|
1332
|
-
if (!(this.
|
|
1333
|
+
if (!(this.o5n_1 === tmp0_other_with_cast.o5n_1))
|
|
1333
1334
|
return false;
|
|
1334
1335
|
return true;
|
|
1335
1336
|
};
|
|
1336
1337
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1337
1338
|
$serializer_4.call($this);
|
|
1338
|
-
$this.
|
|
1339
|
+
$this.q5n_1 = typeSerial0;
|
|
1339
1340
|
return $this;
|
|
1340
1341
|
}
|
|
1341
1342
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1344,16 +1345,16 @@
|
|
|
1344
1345
|
function Companion_5() {
|
|
1345
1346
|
Companion_instance_7 = this;
|
|
1346
1347
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1347
|
-
tmp0_serialDesc.
|
|
1348
|
-
tmp0_serialDesc.
|
|
1349
|
-
tmp0_serialDesc.
|
|
1350
|
-
this.
|
|
1348
|
+
tmp0_serialDesc.u4e('jsonrpc', false);
|
|
1349
|
+
tmp0_serialDesc.u4e('result', false);
|
|
1350
|
+
tmp0_serialDesc.u4e('id', false);
|
|
1351
|
+
this.r5n_1 = tmp0_serialDesc;
|
|
1351
1352
|
}
|
|
1352
|
-
protoOf(Companion_5).
|
|
1353
|
+
protoOf(Companion_5).u5m = function (typeSerial0) {
|
|
1353
1354
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1354
1355
|
};
|
|
1355
|
-
protoOf(Companion_5).
|
|
1356
|
-
return this.
|
|
1356
|
+
protoOf(Companion_5).u4f = function (typeParamsSerializers) {
|
|
1357
|
+
return this.u5m(typeParamsSerializers[0]);
|
|
1357
1358
|
};
|
|
1358
1359
|
var Companion_instance_7;
|
|
1359
1360
|
function Companion_getInstance_8() {
|
|
@@ -1363,86 +1364,86 @@
|
|
|
1363
1364
|
}
|
|
1364
1365
|
function $serializer_4() {
|
|
1365
1366
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1366
|
-
tmp0_serialDesc.
|
|
1367
|
-
tmp0_serialDesc.
|
|
1368
|
-
tmp0_serialDesc.
|
|
1369
|
-
this.
|
|
1370
|
-
}
|
|
1371
|
-
protoOf($serializer_4).
|
|
1372
|
-
var tmp0_desc = this.
|
|
1373
|
-
var tmp1_output = encoder.
|
|
1374
|
-
tmp1_output.
|
|
1375
|
-
tmp1_output.
|
|
1376
|
-
tmp1_output.
|
|
1377
|
-
tmp1_output.
|
|
1378
|
-
};
|
|
1379
|
-
protoOf($serializer_4).
|
|
1380
|
-
return this.
|
|
1381
|
-
};
|
|
1382
|
-
protoOf($serializer_4).
|
|
1383
|
-
var tmp0_desc = this.
|
|
1367
|
+
tmp0_serialDesc.u4e('jsonrpc', false);
|
|
1368
|
+
tmp0_serialDesc.u4e('result', false);
|
|
1369
|
+
tmp0_serialDesc.u4e('id', false);
|
|
1370
|
+
this.p5n_1 = tmp0_serialDesc;
|
|
1371
|
+
}
|
|
1372
|
+
protoOf($serializer_4).s5n = function (encoder, value) {
|
|
1373
|
+
var tmp0_desc = this.p5n_1;
|
|
1374
|
+
var tmp1_output = encoder.g47(tmp0_desc);
|
|
1375
|
+
tmp1_output.u48(tmp0_desc, 0, value.t5n_1);
|
|
1376
|
+
tmp1_output.w48(tmp0_desc, 1, this.q5n_1, value.u5n_1);
|
|
1377
|
+
tmp1_output.u48(tmp0_desc, 2, value.v5n_1);
|
|
1378
|
+
tmp1_output.h47(tmp0_desc);
|
|
1379
|
+
};
|
|
1380
|
+
protoOf($serializer_4).t43 = function (encoder, value) {
|
|
1381
|
+
return this.s5n(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1382
|
+
};
|
|
1383
|
+
protoOf($serializer_4).u43 = function (decoder) {
|
|
1384
|
+
var tmp0_desc = this.p5n_1;
|
|
1384
1385
|
var tmp1_flag = true;
|
|
1385
1386
|
var tmp2_index = 0;
|
|
1386
1387
|
var tmp3_bitMask0 = 0;
|
|
1387
1388
|
var tmp4_local0 = null;
|
|
1388
1389
|
var tmp5_local1 = null;
|
|
1389
1390
|
var tmp6_local2 = null;
|
|
1390
|
-
var tmp7_input = decoder.
|
|
1391
|
-
if (tmp7_input.
|
|
1392
|
-
tmp4_local0 = tmp7_input.
|
|
1391
|
+
var tmp7_input = decoder.g47(tmp0_desc);
|
|
1392
|
+
if (tmp7_input.v47()) {
|
|
1393
|
+
tmp4_local0 = tmp7_input.q47(tmp0_desc, 0);
|
|
1393
1394
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1394
|
-
tmp5_local1 = tmp7_input.
|
|
1395
|
+
tmp5_local1 = tmp7_input.s47(tmp0_desc, 1, this.q5n_1, tmp5_local1);
|
|
1395
1396
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1396
|
-
tmp6_local2 = tmp7_input.
|
|
1397
|
+
tmp6_local2 = tmp7_input.q47(tmp0_desc, 2);
|
|
1397
1398
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1398
1399
|
} else
|
|
1399
1400
|
while (tmp1_flag) {
|
|
1400
|
-
tmp2_index = tmp7_input.
|
|
1401
|
+
tmp2_index = tmp7_input.w47(tmp0_desc);
|
|
1401
1402
|
switch (tmp2_index) {
|
|
1402
1403
|
case -1:
|
|
1403
1404
|
tmp1_flag = false;
|
|
1404
1405
|
break;
|
|
1405
1406
|
case 0:
|
|
1406
|
-
tmp4_local0 = tmp7_input.
|
|
1407
|
+
tmp4_local0 = tmp7_input.q47(tmp0_desc, 0);
|
|
1407
1408
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1408
1409
|
break;
|
|
1409
1410
|
case 1:
|
|
1410
|
-
tmp5_local1 = tmp7_input.
|
|
1411
|
+
tmp5_local1 = tmp7_input.s47(tmp0_desc, 1, this.q5n_1, tmp5_local1);
|
|
1411
1412
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1412
1413
|
break;
|
|
1413
1414
|
case 2:
|
|
1414
|
-
tmp6_local2 = tmp7_input.
|
|
1415
|
+
tmp6_local2 = tmp7_input.q47(tmp0_desc, 2);
|
|
1415
1416
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1416
1417
|
break;
|
|
1417
1418
|
default:
|
|
1418
1419
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1419
1420
|
}
|
|
1420
1421
|
}
|
|
1421
|
-
tmp7_input.
|
|
1422
|
+
tmp7_input.h47(tmp0_desc);
|
|
1422
1423
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1423
1424
|
};
|
|
1424
|
-
protoOf($serializer_4).
|
|
1425
|
-
return this.
|
|
1425
|
+
protoOf($serializer_4).s43 = function () {
|
|
1426
|
+
return this.p5n_1;
|
|
1426
1427
|
};
|
|
1427
|
-
protoOf($serializer_4).
|
|
1428
|
+
protoOf($serializer_4).j4f = function () {
|
|
1428
1429
|
// Inline function 'kotlin.arrayOf' call
|
|
1429
1430
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1430
1431
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1431
|
-
return [StringSerializer_getInstance(), this.
|
|
1432
|
+
return [StringSerializer_getInstance(), this.q5n_1, StringSerializer_getInstance()];
|
|
1432
1433
|
};
|
|
1433
|
-
protoOf($serializer_4).
|
|
1434
|
+
protoOf($serializer_4).k4f = function () {
|
|
1434
1435
|
// Inline function 'kotlin.arrayOf' call
|
|
1435
1436
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1436
1437
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1437
|
-
return [this.
|
|
1438
|
+
return [this.q5n_1];
|
|
1438
1439
|
};
|
|
1439
1440
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1440
1441
|
if (!(7 === (7 & seen0))) {
|
|
1441
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1442
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().r5n_1);
|
|
1442
1443
|
}
|
|
1443
|
-
$this.
|
|
1444
|
-
$this.
|
|
1445
|
-
$this.
|
|
1444
|
+
$this.t5n_1 = jsonrpc;
|
|
1445
|
+
$this.u5n_1 = result;
|
|
1446
|
+
$this.v5n_1 = id;
|
|
1446
1447
|
return $this;
|
|
1447
1448
|
}
|
|
1448
1449
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1450,17 +1451,17 @@
|
|
|
1450
1451
|
}
|
|
1451
1452
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1452
1453
|
Companion_getInstance_8();
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1455
|
-
this.
|
|
1454
|
+
this.t5n_1 = jsonrpc;
|
|
1455
|
+
this.u5n_1 = result;
|
|
1456
|
+
this.v5n_1 = id;
|
|
1456
1457
|
}
|
|
1457
1458
|
protoOf(RandomResponseDto).toString = function () {
|
|
1458
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1459
|
+
return 'RandomResponseDto(jsonrpc=' + this.t5n_1 + ', result=' + toString(this.u5n_1) + ', id=' + this.v5n_1 + ')';
|
|
1459
1460
|
};
|
|
1460
1461
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1461
|
-
var result = getStringHashCode(this.
|
|
1462
|
-
result = imul(result, 31) + hashCode(this.
|
|
1463
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1462
|
+
var result = getStringHashCode(this.t5n_1);
|
|
1463
|
+
result = imul(result, 31) + hashCode(this.u5n_1) | 0;
|
|
1464
|
+
result = imul(result, 31) + getStringHashCode(this.v5n_1) | 0;
|
|
1464
1465
|
return result;
|
|
1465
1466
|
};
|
|
1466
1467
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1469,11 +1470,11 @@
|
|
|
1469
1470
|
if (!(other instanceof RandomResponseDto))
|
|
1470
1471
|
return false;
|
|
1471
1472
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1472
|
-
if (!(this.
|
|
1473
|
+
if (!(this.t5n_1 === tmp0_other_with_cast.t5n_1))
|
|
1473
1474
|
return false;
|
|
1474
|
-
if (!equals(this.
|
|
1475
|
+
if (!equals(this.u5n_1, tmp0_other_with_cast.u5n_1))
|
|
1475
1476
|
return false;
|
|
1476
|
-
if (!(this.
|
|
1477
|
+
if (!(this.v5n_1 === tmp0_other_with_cast.v5n_1))
|
|
1477
1478
|
return false;
|
|
1478
1479
|
return true;
|
|
1479
1480
|
};
|
|
@@ -1486,30 +1487,30 @@
|
|
|
1486
1487
|
function $serializer_5() {
|
|
1487
1488
|
$serializer_instance_3 = this;
|
|
1488
1489
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1489
|
-
tmp0_serialDesc.
|
|
1490
|
-
tmp0_serialDesc.
|
|
1491
|
-
tmp0_serialDesc.
|
|
1492
|
-
tmp0_serialDesc.
|
|
1493
|
-
tmp0_serialDesc.
|
|
1494
|
-
tmp0_serialDesc.
|
|
1495
|
-
this.
|
|
1496
|
-
}
|
|
1497
|
-
protoOf($serializer_5).
|
|
1498
|
-
var tmp0_desc = this.
|
|
1499
|
-
var tmp1_output = encoder.
|
|
1500
|
-
tmp1_output.
|
|
1501
|
-
tmp1_output.
|
|
1502
|
-
tmp1_output.
|
|
1503
|
-
tmp1_output.
|
|
1504
|
-
tmp1_output.
|
|
1505
|
-
tmp1_output.
|
|
1506
|
-
tmp1_output.
|
|
1507
|
-
};
|
|
1508
|
-
protoOf($serializer_5).
|
|
1509
|
-
return this.
|
|
1510
|
-
};
|
|
1511
|
-
protoOf($serializer_5).
|
|
1512
|
-
var tmp0_desc = this.
|
|
1490
|
+
tmp0_serialDesc.u4e('random', false);
|
|
1491
|
+
tmp0_serialDesc.u4e('signature', false);
|
|
1492
|
+
tmp0_serialDesc.u4e('bitsUsed', false);
|
|
1493
|
+
tmp0_serialDesc.u4e('bitsLeft', false);
|
|
1494
|
+
tmp0_serialDesc.u4e('requestsLeft', false);
|
|
1495
|
+
tmp0_serialDesc.u4e('advisoryDelay', false);
|
|
1496
|
+
this.w5n_1 = tmp0_serialDesc;
|
|
1497
|
+
}
|
|
1498
|
+
protoOf($serializer_5).x5n = function (encoder, value) {
|
|
1499
|
+
var tmp0_desc = this.w5n_1;
|
|
1500
|
+
var tmp1_output = encoder.g47(tmp0_desc);
|
|
1501
|
+
tmp1_output.w48(tmp0_desc, 0, $serializer_getInstance_4(), value.y5n_1);
|
|
1502
|
+
tmp1_output.y48(tmp0_desc, 1, StringSerializer_getInstance(), value.z5n_1);
|
|
1503
|
+
tmp1_output.y48(tmp0_desc, 2, IntSerializer_getInstance(), value.a5o_1);
|
|
1504
|
+
tmp1_output.y48(tmp0_desc, 3, IntSerializer_getInstance(), value.b5o_1);
|
|
1505
|
+
tmp1_output.y48(tmp0_desc, 4, IntSerializer_getInstance(), value.c5o_1);
|
|
1506
|
+
tmp1_output.y48(tmp0_desc, 5, IntSerializer_getInstance(), value.d5o_1);
|
|
1507
|
+
tmp1_output.h47(tmp0_desc);
|
|
1508
|
+
};
|
|
1509
|
+
protoOf($serializer_5).t43 = function (encoder, value) {
|
|
1510
|
+
return this.x5n(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1511
|
+
};
|
|
1512
|
+
protoOf($serializer_5).u43 = function (decoder) {
|
|
1513
|
+
var tmp0_desc = this.w5n_1;
|
|
1513
1514
|
var tmp1_flag = true;
|
|
1514
1515
|
var tmp2_index = 0;
|
|
1515
1516
|
var tmp3_bitMask0 = 0;
|
|
@@ -1519,62 +1520,62 @@
|
|
|
1519
1520
|
var tmp7_local3 = null;
|
|
1520
1521
|
var tmp8_local4 = null;
|
|
1521
1522
|
var tmp9_local5 = null;
|
|
1522
|
-
var tmp10_input = decoder.
|
|
1523
|
-
if (tmp10_input.
|
|
1524
|
-
tmp4_local0 = tmp10_input.
|
|
1523
|
+
var tmp10_input = decoder.g47(tmp0_desc);
|
|
1524
|
+
if (tmp10_input.v47()) {
|
|
1525
|
+
tmp4_local0 = tmp10_input.s47(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1525
1526
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1526
|
-
tmp5_local1 = tmp10_input.
|
|
1527
|
+
tmp5_local1 = tmp10_input.u47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1527
1528
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1528
|
-
tmp6_local2 = tmp10_input.
|
|
1529
|
+
tmp6_local2 = tmp10_input.u47(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1529
1530
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1530
|
-
tmp7_local3 = tmp10_input.
|
|
1531
|
+
tmp7_local3 = tmp10_input.u47(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1531
1532
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1532
|
-
tmp8_local4 = tmp10_input.
|
|
1533
|
+
tmp8_local4 = tmp10_input.u47(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1533
1534
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1534
|
-
tmp9_local5 = tmp10_input.
|
|
1535
|
+
tmp9_local5 = tmp10_input.u47(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1535
1536
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1536
1537
|
} else
|
|
1537
1538
|
while (tmp1_flag) {
|
|
1538
|
-
tmp2_index = tmp10_input.
|
|
1539
|
+
tmp2_index = tmp10_input.w47(tmp0_desc);
|
|
1539
1540
|
switch (tmp2_index) {
|
|
1540
1541
|
case -1:
|
|
1541
1542
|
tmp1_flag = false;
|
|
1542
1543
|
break;
|
|
1543
1544
|
case 0:
|
|
1544
|
-
tmp4_local0 = tmp10_input.
|
|
1545
|
+
tmp4_local0 = tmp10_input.s47(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1545
1546
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1546
1547
|
break;
|
|
1547
1548
|
case 1:
|
|
1548
|
-
tmp5_local1 = tmp10_input.
|
|
1549
|
+
tmp5_local1 = tmp10_input.u47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1549
1550
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1550
1551
|
break;
|
|
1551
1552
|
case 2:
|
|
1552
|
-
tmp6_local2 = tmp10_input.
|
|
1553
|
+
tmp6_local2 = tmp10_input.u47(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1553
1554
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1554
1555
|
break;
|
|
1555
1556
|
case 3:
|
|
1556
|
-
tmp7_local3 = tmp10_input.
|
|
1557
|
+
tmp7_local3 = tmp10_input.u47(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1557
1558
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1558
1559
|
break;
|
|
1559
1560
|
case 4:
|
|
1560
|
-
tmp8_local4 = tmp10_input.
|
|
1561
|
+
tmp8_local4 = tmp10_input.u47(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1561
1562
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1562
1563
|
break;
|
|
1563
1564
|
case 5:
|
|
1564
|
-
tmp9_local5 = tmp10_input.
|
|
1565
|
+
tmp9_local5 = tmp10_input.u47(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1565
1566
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1566
1567
|
break;
|
|
1567
1568
|
default:
|
|
1568
1569
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1569
1570
|
}
|
|
1570
1571
|
}
|
|
1571
|
-
tmp10_input.
|
|
1572
|
+
tmp10_input.h47(tmp0_desc);
|
|
1572
1573
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1573
1574
|
};
|
|
1574
|
-
protoOf($serializer_5).
|
|
1575
|
-
return this.
|
|
1575
|
+
protoOf($serializer_5).s43 = function () {
|
|
1576
|
+
return this.w5n_1;
|
|
1576
1577
|
};
|
|
1577
|
-
protoOf($serializer_5).
|
|
1578
|
+
protoOf($serializer_5).j4f = function () {
|
|
1578
1579
|
// Inline function 'kotlin.arrayOf' call
|
|
1579
1580
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1580
1581
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1588,37 +1589,37 @@
|
|
|
1588
1589
|
}
|
|
1589
1590
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1590
1591
|
if (!(63 === (63 & seen0))) {
|
|
1591
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1592
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().w5n_1);
|
|
1592
1593
|
}
|
|
1593
|
-
$this.
|
|
1594
|
-
$this.
|
|
1595
|
-
$this.
|
|
1596
|
-
$this.
|
|
1597
|
-
$this.
|
|
1598
|
-
$this.
|
|
1594
|
+
$this.y5n_1 = random;
|
|
1595
|
+
$this.z5n_1 = signature;
|
|
1596
|
+
$this.a5o_1 = bitsUsed;
|
|
1597
|
+
$this.b5o_1 = bitsLeft;
|
|
1598
|
+
$this.c5o_1 = requestsLeft;
|
|
1599
|
+
$this.d5o_1 = advisoryDelay;
|
|
1599
1600
|
return $this;
|
|
1600
1601
|
}
|
|
1601
1602
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1602
1603
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1603
1604
|
}
|
|
1604
1605
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1606
|
+
this.y5n_1 = random;
|
|
1607
|
+
this.z5n_1 = signature;
|
|
1608
|
+
this.a5o_1 = bitsUsed;
|
|
1609
|
+
this.b5o_1 = bitsLeft;
|
|
1610
|
+
this.c5o_1 = requestsLeft;
|
|
1611
|
+
this.d5o_1 = advisoryDelay;
|
|
1611
1612
|
}
|
|
1612
1613
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1613
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1614
|
+
return 'IntegerSequencesResultDto(random=' + this.y5n_1.toString() + ', signature=' + this.z5n_1 + ', bitsUsed=' + this.a5o_1 + ', bitsLeft=' + this.b5o_1 + ', requestsLeft=' + this.c5o_1 + ', advisoryDelay=' + this.d5o_1 + ')';
|
|
1614
1615
|
};
|
|
1615
1616
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1616
|
-
var result = this.
|
|
1617
|
-
result = imul(result, 31) + (this.
|
|
1618
|
-
result = imul(result, 31) + (this.
|
|
1619
|
-
result = imul(result, 31) + (this.
|
|
1620
|
-
result = imul(result, 31) + (this.
|
|
1621
|
-
result = imul(result, 31) + (this.
|
|
1617
|
+
var result = this.y5n_1.hashCode();
|
|
1618
|
+
result = imul(result, 31) + (this.z5n_1 == null ? 0 : getStringHashCode(this.z5n_1)) | 0;
|
|
1619
|
+
result = imul(result, 31) + (this.a5o_1 == null ? 0 : this.a5o_1) | 0;
|
|
1620
|
+
result = imul(result, 31) + (this.b5o_1 == null ? 0 : this.b5o_1) | 0;
|
|
1621
|
+
result = imul(result, 31) + (this.c5o_1 == null ? 0 : this.c5o_1) | 0;
|
|
1622
|
+
result = imul(result, 31) + (this.d5o_1 == null ? 0 : this.d5o_1) | 0;
|
|
1622
1623
|
return result;
|
|
1623
1624
|
};
|
|
1624
1625
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1627,17 +1628,17 @@
|
|
|
1627
1628
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1628
1629
|
return false;
|
|
1629
1630
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1630
|
-
if (!this.
|
|
1631
|
+
if (!this.y5n_1.equals(tmp0_other_with_cast.y5n_1))
|
|
1631
1632
|
return false;
|
|
1632
|
-
if (!(this.
|
|
1633
|
+
if (!(this.z5n_1 == tmp0_other_with_cast.z5n_1))
|
|
1633
1634
|
return false;
|
|
1634
|
-
if (!(this.
|
|
1635
|
+
if (!(this.a5o_1 == tmp0_other_with_cast.a5o_1))
|
|
1635
1636
|
return false;
|
|
1636
|
-
if (!(this.
|
|
1637
|
+
if (!(this.b5o_1 == tmp0_other_with_cast.b5o_1))
|
|
1637
1638
|
return false;
|
|
1638
|
-
if (!(this.
|
|
1639
|
+
if (!(this.c5o_1 == tmp0_other_with_cast.c5o_1))
|
|
1639
1640
|
return false;
|
|
1640
|
-
if (!(this.
|
|
1641
|
+
if (!(this.d5o_1 == tmp0_other_with_cast.d5o_1))
|
|
1641
1642
|
return false;
|
|
1642
1643
|
return true;
|
|
1643
1644
|
};
|
|
@@ -1647,7 +1648,7 @@
|
|
|
1647
1648
|
// Inline function 'kotlin.arrayOf' call
|
|
1648
1649
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1649
1650
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1650
|
-
tmp.
|
|
1651
|
+
tmp.e5o_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1651
1652
|
}
|
|
1652
1653
|
var Companion_instance_9;
|
|
1653
1654
|
function Companion_getInstance_10() {
|
|
@@ -1658,74 +1659,74 @@
|
|
|
1658
1659
|
function $serializer_6() {
|
|
1659
1660
|
$serializer_instance_4 = this;
|
|
1660
1661
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1661
|
-
tmp0_serialDesc.
|
|
1662
|
-
tmp0_serialDesc.
|
|
1663
|
-
tmp0_serialDesc.
|
|
1664
|
-
this.
|
|
1665
|
-
}
|
|
1666
|
-
protoOf($serializer_6).
|
|
1667
|
-
var tmp0_desc = this.
|
|
1668
|
-
var tmp1_output = encoder.
|
|
1669
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1670
|
-
tmp1_output.
|
|
1671
|
-
tmp1_output.
|
|
1672
|
-
tmp1_output.
|
|
1673
|
-
tmp1_output.
|
|
1674
|
-
};
|
|
1675
|
-
protoOf($serializer_6).
|
|
1676
|
-
return this.
|
|
1677
|
-
};
|
|
1678
|
-
protoOf($serializer_6).
|
|
1679
|
-
var tmp0_desc = this.
|
|
1662
|
+
tmp0_serialDesc.u4e('data', false);
|
|
1663
|
+
tmp0_serialDesc.u4e('completionTime', false);
|
|
1664
|
+
tmp0_serialDesc.u4e('ticketId', false);
|
|
1665
|
+
this.f5o_1 = tmp0_serialDesc;
|
|
1666
|
+
}
|
|
1667
|
+
protoOf($serializer_6).g5o = function (encoder, value) {
|
|
1668
|
+
var tmp0_desc = this.f5o_1;
|
|
1669
|
+
var tmp1_output = encoder.g47(tmp0_desc);
|
|
1670
|
+
var tmp2_cached = Companion_getInstance_10().e5o_1;
|
|
1671
|
+
tmp1_output.w48(tmp0_desc, 0, tmp2_cached[0], value.h5o_1);
|
|
1672
|
+
tmp1_output.u48(tmp0_desc, 1, value.i5o_1);
|
|
1673
|
+
tmp1_output.y48(tmp0_desc, 2, StringSerializer_getInstance(), value.j5o_1);
|
|
1674
|
+
tmp1_output.h47(tmp0_desc);
|
|
1675
|
+
};
|
|
1676
|
+
protoOf($serializer_6).t43 = function (encoder, value) {
|
|
1677
|
+
return this.g5o(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1678
|
+
};
|
|
1679
|
+
protoOf($serializer_6).u43 = function (decoder) {
|
|
1680
|
+
var tmp0_desc = this.f5o_1;
|
|
1680
1681
|
var tmp1_flag = true;
|
|
1681
1682
|
var tmp2_index = 0;
|
|
1682
1683
|
var tmp3_bitMask0 = 0;
|
|
1683
1684
|
var tmp4_local0 = null;
|
|
1684
1685
|
var tmp5_local1 = null;
|
|
1685
1686
|
var tmp6_local2 = null;
|
|
1686
|
-
var tmp7_input = decoder.
|
|
1687
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1688
|
-
if (tmp7_input.
|
|
1689
|
-
tmp4_local0 = tmp7_input.
|
|
1687
|
+
var tmp7_input = decoder.g47(tmp0_desc);
|
|
1688
|
+
var tmp8_cached = Companion_getInstance_10().e5o_1;
|
|
1689
|
+
if (tmp7_input.v47()) {
|
|
1690
|
+
tmp4_local0 = tmp7_input.s47(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1690
1691
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1691
|
-
tmp5_local1 = tmp7_input.
|
|
1692
|
+
tmp5_local1 = tmp7_input.q47(tmp0_desc, 1);
|
|
1692
1693
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1693
|
-
tmp6_local2 = tmp7_input.
|
|
1694
|
+
tmp6_local2 = tmp7_input.u47(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1694
1695
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1695
1696
|
} else
|
|
1696
1697
|
while (tmp1_flag) {
|
|
1697
|
-
tmp2_index = tmp7_input.
|
|
1698
|
+
tmp2_index = tmp7_input.w47(tmp0_desc);
|
|
1698
1699
|
switch (tmp2_index) {
|
|
1699
1700
|
case -1:
|
|
1700
1701
|
tmp1_flag = false;
|
|
1701
1702
|
break;
|
|
1702
1703
|
case 0:
|
|
1703
|
-
tmp4_local0 = tmp7_input.
|
|
1704
|
+
tmp4_local0 = tmp7_input.s47(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1704
1705
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1705
1706
|
break;
|
|
1706
1707
|
case 1:
|
|
1707
|
-
tmp5_local1 = tmp7_input.
|
|
1708
|
+
tmp5_local1 = tmp7_input.q47(tmp0_desc, 1);
|
|
1708
1709
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1709
1710
|
break;
|
|
1710
1711
|
case 2:
|
|
1711
|
-
tmp6_local2 = tmp7_input.
|
|
1712
|
+
tmp6_local2 = tmp7_input.u47(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1712
1713
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1713
1714
|
break;
|
|
1714
1715
|
default:
|
|
1715
1716
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1716
1717
|
}
|
|
1717
1718
|
}
|
|
1718
|
-
tmp7_input.
|
|
1719
|
+
tmp7_input.h47(tmp0_desc);
|
|
1719
1720
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1720
1721
|
};
|
|
1721
|
-
protoOf($serializer_6).
|
|
1722
|
-
return this.
|
|
1722
|
+
protoOf($serializer_6).s43 = function () {
|
|
1723
|
+
return this.f5o_1;
|
|
1723
1724
|
};
|
|
1724
|
-
protoOf($serializer_6).
|
|
1725
|
+
protoOf($serializer_6).j4f = function () {
|
|
1725
1726
|
// Inline function 'kotlin.arrayOf' call
|
|
1726
1727
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1727
1728
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1728
|
-
return [Companion_getInstance_10().
|
|
1729
|
+
return [Companion_getInstance_10().e5o_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1729
1730
|
};
|
|
1730
1731
|
var $serializer_instance_4;
|
|
1731
1732
|
function $serializer_getInstance_4() {
|
|
@@ -1735,11 +1736,11 @@
|
|
|
1735
1736
|
}
|
|
1736
1737
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1737
1738
|
if (!(7 === (7 & seen0))) {
|
|
1738
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1739
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().f5o_1);
|
|
1739
1740
|
}
|
|
1740
|
-
$this.
|
|
1741
|
-
$this.
|
|
1742
|
-
$this.
|
|
1741
|
+
$this.h5o_1 = data;
|
|
1742
|
+
$this.i5o_1 = completionTime;
|
|
1743
|
+
$this.j5o_1 = ticketId;
|
|
1743
1744
|
return $this;
|
|
1744
1745
|
}
|
|
1745
1746
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1748,12 +1749,12 @@
|
|
|
1748
1749
|
function IntegerSequencesDataDto() {
|
|
1749
1750
|
}
|
|
1750
1751
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1751
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1752
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.h5o_1) + ', completionTime=' + this.i5o_1 + ', ticketId=' + this.j5o_1 + ')';
|
|
1752
1753
|
};
|
|
1753
1754
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1754
|
-
var result = hashCode(this.
|
|
1755
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1756
|
-
result = imul(result, 31) + (this.
|
|
1755
|
+
var result = hashCode(this.h5o_1);
|
|
1756
|
+
result = imul(result, 31) + getStringHashCode(this.i5o_1) | 0;
|
|
1757
|
+
result = imul(result, 31) + (this.j5o_1 == null ? 0 : getStringHashCode(this.j5o_1)) | 0;
|
|
1757
1758
|
return result;
|
|
1758
1759
|
};
|
|
1759
1760
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1762,11 +1763,11 @@
|
|
|
1762
1763
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1763
1764
|
return false;
|
|
1764
1765
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1765
|
-
if (!equals(this.
|
|
1766
|
+
if (!equals(this.h5o_1, tmp0_other_with_cast.h5o_1))
|
|
1766
1767
|
return false;
|
|
1767
|
-
if (!(this.
|
|
1768
|
+
if (!(this.i5o_1 === tmp0_other_with_cast.i5o_1))
|
|
1768
1769
|
return false;
|
|
1769
|
-
if (!(this.
|
|
1770
|
+
if (!(this.j5o_1 == tmp0_other_with_cast.j5o_1))
|
|
1770
1771
|
return false;
|
|
1771
1772
|
return true;
|
|
1772
1773
|
};
|
|
@@ -1777,15 +1778,15 @@
|
|
|
1777
1778
|
}
|
|
1778
1779
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1779
1780
|
var tmp = new $throwIfErrorCOROUTINE$2($this, bodyAsJson, response, $completion);
|
|
1780
|
-
tmp.
|
|
1781
|
-
tmp.
|
|
1782
|
-
return tmp.
|
|
1781
|
+
tmp.l9_1 = Unit_instance;
|
|
1782
|
+
tmp.m9_1 = null;
|
|
1783
|
+
return tmp.r9();
|
|
1783
1784
|
}
|
|
1784
1785
|
function extractRandomResult($this, bodyAsJson) {
|
|
1785
1786
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1786
1787
|
}
|
|
1787
1788
|
function Companion_8() {
|
|
1788
|
-
this.
|
|
1789
|
+
this.x5o_1 = 52;
|
|
1789
1790
|
}
|
|
1790
1791
|
var Companion_instance_10;
|
|
1791
1792
|
function Companion_getInstance_11() {
|
|
@@ -1793,48 +1794,48 @@
|
|
|
1793
1794
|
}
|
|
1794
1795
|
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1795
1796
|
CoroutineImpl.call(this, resultContinuation);
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1799
|
-
this.
|
|
1800
|
-
this.
|
|
1801
|
-
this.
|
|
1802
|
-
this.
|
|
1803
|
-
}
|
|
1804
|
-
protoOf($getRandomCardDecksCOROUTINE$1).
|
|
1805
|
-
var suspendResult = this.
|
|
1797
|
+
this.g5p_1 = _this__u8e3s4;
|
|
1798
|
+
this.h5p_1 = min;
|
|
1799
|
+
this.i5p_1 = max;
|
|
1800
|
+
this.j5p_1 = decksCount;
|
|
1801
|
+
this.k5p_1 = cardsCount;
|
|
1802
|
+
this.l5p_1 = userData;
|
|
1803
|
+
this.m5p_1 = signed;
|
|
1804
|
+
}
|
|
1805
|
+
protoOf($getRandomCardDecksCOROUTINE$1).r9 = function () {
|
|
1806
|
+
var suspendResult = this.l9_1;
|
|
1806
1807
|
$sm: do
|
|
1807
1808
|
try {
|
|
1808
|
-
var tmp = this.
|
|
1809
|
+
var tmp = this.j9_1;
|
|
1809
1810
|
switch (tmp) {
|
|
1810
1811
|
case 0:
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1812
|
+
this.k9_1 = 6;
|
|
1813
|
+
this.k9_1 = 5;
|
|
1813
1814
|
var tmp_0 = this;
|
|
1814
|
-
tmp_0.
|
|
1815
|
+
tmp_0.n5p_1 = this.g5p_1.w5p_1;
|
|
1815
1816
|
var tmp_1 = this;
|
|
1816
|
-
tmp_1.
|
|
1817
|
+
tmp_1.o5p_1 = this.n5p_1;
|
|
1817
1818
|
var tmp_2 = this;
|
|
1818
1819
|
var this_0 = new HttpRequestBuilder();
|
|
1819
1820
|
url(this_0, '/json-rpc/4/invoke');
|
|
1820
|
-
var tmp11_id = this.
|
|
1821
|
-
var tmp12_method = this.
|
|
1822
|
-
var tmp8_apiKey = this.
|
|
1823
|
-
var size = this.
|
|
1821
|
+
var tmp11_id = this.l5p_1.id;
|
|
1822
|
+
var tmp12_method = this.m5p_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1823
|
+
var tmp8_apiKey = this.g5p_1.x5p_1;
|
|
1824
|
+
var size = this.j5p_1;
|
|
1824
1825
|
var list = ArrayList_init_$Create$(size);
|
|
1825
1826
|
var inductionVariable = 0;
|
|
1826
1827
|
if (inductionVariable < size)
|
|
1827
1828
|
do {
|
|
1828
1829
|
var index = inductionVariable;
|
|
1829
1830
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1830
|
-
list.e(this.
|
|
1831
|
+
list.e(this.k5p_1);
|
|
1831
1832
|
}
|
|
1832
1833
|
while (inductionVariable < size);
|
|
1833
|
-
var tmp10_userData = this.
|
|
1834
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1834
|
+
var tmp10_userData = this.m5p_1 ? mapToDto(this.l5p_1) : null;
|
|
1835
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.j5p_1, list, this.h5p_1, this.i5p_1, false, null, tmp10_userData);
|
|
1835
1836
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1836
1837
|
if (body == null) {
|
|
1837
|
-
this_0.
|
|
1838
|
+
this_0.y2u_1 = NullBody_instance;
|
|
1838
1839
|
var tmp_3 = JsType_instance;
|
|
1839
1840
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1840
1841
|
var tmp_5;
|
|
@@ -1850,13 +1851,13 @@
|
|
|
1850
1851
|
}
|
|
1851
1852
|
tmp_5 = tmp_6;
|
|
1852
1853
|
}
|
|
1853
|
-
this_0.
|
|
1854
|
+
this_0.u30(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1854
1855
|
} else {
|
|
1855
1856
|
if (body instanceof OutgoingContent) {
|
|
1856
|
-
this_0.
|
|
1857
|
-
this_0.
|
|
1857
|
+
this_0.y2u_1 = body;
|
|
1858
|
+
this_0.u30(null);
|
|
1858
1859
|
} else {
|
|
1859
|
-
this_0.
|
|
1860
|
+
this_0.y2u_1 = body;
|
|
1860
1861
|
var tmp_7 = JsType_instance;
|
|
1861
1862
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1862
1863
|
var tmp_9;
|
|
@@ -1872,29 +1873,29 @@
|
|
|
1872
1873
|
}
|
|
1873
1874
|
tmp_9 = tmp_10;
|
|
1874
1875
|
}
|
|
1875
|
-
this_0.
|
|
1876
|
+
this_0.u30(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1876
1877
|
}
|
|
1877
1878
|
}
|
|
1878
1879
|
|
|
1879
|
-
tmp_2.
|
|
1880
|
-
this.
|
|
1880
|
+
tmp_2.p5p_1 = this_0;
|
|
1881
|
+
this.p5p_1.w2u_1 = Companion_getInstance().m2j_1;
|
|
1881
1882
|
var tmp_11 = this;
|
|
1882
|
-
tmp_11.
|
|
1883
|
+
tmp_11.q5p_1 = this.o5p_1;
|
|
1883
1884
|
var tmp_12 = this;
|
|
1884
|
-
tmp_12.
|
|
1885
|
-
this.
|
|
1886
|
-
suspendResult = (new HttpStatement(this.
|
|
1885
|
+
tmp_12.r5p_1 = this.p5p_1;
|
|
1886
|
+
this.j9_1 = 1;
|
|
1887
|
+
suspendResult = (new HttpStatement(this.r5p_1, this.q5p_1)).e3o(this);
|
|
1887
1888
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1888
1889
|
return suspendResult;
|
|
1889
1890
|
}
|
|
1890
1891
|
|
|
1891
1892
|
continue $sm;
|
|
1892
1893
|
case 1:
|
|
1893
|
-
this.
|
|
1894
|
+
this.s5p_1 = suspendResult;
|
|
1894
1895
|
var tmp_13 = this;
|
|
1895
|
-
tmp_13.
|
|
1896
|
-
this.
|
|
1897
|
-
var tmp_14 = this.
|
|
1896
|
+
tmp_13.t5p_1 = this.s5p_1;
|
|
1897
|
+
this.j9_1 = 2;
|
|
1898
|
+
var tmp_14 = this.t5p_1.d2y();
|
|
1898
1899
|
var tmp_15 = JsType_instance;
|
|
1899
1900
|
var tmp_16 = getKClass(JsonObject);
|
|
1900
1901
|
var tmp_17;
|
|
@@ -1911,7 +1912,7 @@
|
|
|
1911
1912
|
tmp_17 = tmp_18;
|
|
1912
1913
|
}
|
|
1913
1914
|
|
|
1914
|
-
suspendResult = tmp_14.
|
|
1915
|
+
suspendResult = tmp_14.h2x(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1915
1916
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1916
1917
|
return suspendResult;
|
|
1917
1918
|
}
|
|
@@ -1919,9 +1920,9 @@
|
|
|
1919
1920
|
continue $sm;
|
|
1920
1921
|
case 2:
|
|
1921
1922
|
var tmp_19 = this;
|
|
1922
|
-
tmp_19.
|
|
1923
|
-
this.
|
|
1924
|
-
suspendResult = throwIfError(this.
|
|
1923
|
+
tmp_19.u5p_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1924
|
+
this.j9_1 = 3;
|
|
1925
|
+
suspendResult = throwIfError(this.g5p_1, this.u5p_1, this.s5p_1, this);
|
|
1925
1926
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1926
1927
|
return suspendResult;
|
|
1927
1928
|
}
|
|
@@ -1929,9 +1930,9 @@
|
|
|
1929
1930
|
continue $sm;
|
|
1930
1931
|
case 3:
|
|
1931
1932
|
var tmp_20 = this;
|
|
1932
|
-
tmp_20.
|
|
1933
|
-
this.
|
|
1934
|
-
var tmp_21 = this.
|
|
1933
|
+
tmp_20.v5p_1 = this.s5p_1;
|
|
1934
|
+
this.j9_1 = 4;
|
|
1935
|
+
var tmp_21 = this.v5p_1.d2y();
|
|
1935
1936
|
var tmp_22 = JsType_instance;
|
|
1936
1937
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1937
1938
|
var tmp_24;
|
|
@@ -1948,7 +1949,7 @@
|
|
|
1948
1949
|
tmp_24 = tmp_25;
|
|
1949
1950
|
}
|
|
1950
1951
|
|
|
1951
|
-
suspendResult = tmp_21.
|
|
1952
|
+
suspendResult = tmp_21.h2x(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1952
1953
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1953
1954
|
return suspendResult;
|
|
1954
1955
|
}
|
|
@@ -1956,59 +1957,59 @@
|
|
|
1956
1957
|
continue $sm;
|
|
1957
1958
|
case 4:
|
|
1958
1959
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1959
|
-
var randomJson = extractRandomResult(this.
|
|
1960
|
-
var tmp14_cardDecks = responseDto.
|
|
1961
|
-
var tmp15_signature = responseDto.
|
|
1962
|
-
var tmp16_id = responseDto.
|
|
1960
|
+
var randomJson = extractRandomResult(this.g5p_1, this.u5p_1);
|
|
1961
|
+
var tmp14_cardDecks = responseDto.u5n_1.y5n_1.h5o_1;
|
|
1962
|
+
var tmp15_signature = responseDto.u5n_1.z5n_1;
|
|
1963
|
+
var tmp16_id = responseDto.v5n_1;
|
|
1963
1964
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1964
1965
|
case 5:
|
|
1965
|
-
this.
|
|
1966
|
-
var tmp_26 = this.
|
|
1966
|
+
this.k9_1 = 6;
|
|
1967
|
+
var tmp_26 = this.m9_1;
|
|
1967
1968
|
if (tmp_26 instanceof Error) {
|
|
1968
|
-
var error = this.
|
|
1969
|
+
var error = this.m9_1;
|
|
1969
1970
|
if (error instanceof RandomException)
|
|
1970
1971
|
throw error;
|
|
1971
1972
|
else {
|
|
1972
1973
|
throw new RandomException(100001, '[getRandomCardDeck] error, message = ' + error.message, error);
|
|
1973
1974
|
}
|
|
1974
1975
|
} else {
|
|
1975
|
-
throw this.
|
|
1976
|
+
throw this.m9_1;
|
|
1976
1977
|
}
|
|
1977
1978
|
|
|
1978
1979
|
case 6:
|
|
1979
|
-
throw this.
|
|
1980
|
+
throw this.m9_1;
|
|
1980
1981
|
}
|
|
1981
1982
|
} catch ($p) {
|
|
1982
1983
|
var e = $p;
|
|
1983
|
-
if (this.
|
|
1984
|
+
if (this.k9_1 === 6) {
|
|
1984
1985
|
throw e;
|
|
1985
1986
|
} else {
|
|
1986
|
-
this.
|
|
1987
|
-
this.
|
|
1987
|
+
this.j9_1 = this.k9_1;
|
|
1988
|
+
this.m9_1 = e;
|
|
1988
1989
|
}
|
|
1989
1990
|
}
|
|
1990
1991
|
while (true);
|
|
1991
1992
|
};
|
|
1992
1993
|
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1993
1994
|
CoroutineImpl.call(this, resultContinuation);
|
|
1994
|
-
this.
|
|
1995
|
-
this.
|
|
1996
|
-
this.
|
|
1995
|
+
this.t5o_1 = _this__u8e3s4;
|
|
1996
|
+
this.u5o_1 = bodyAsJson;
|
|
1997
|
+
this.v5o_1 = response;
|
|
1997
1998
|
}
|
|
1998
|
-
protoOf($throwIfErrorCOROUTINE$2).
|
|
1999
|
-
var suspendResult = this.
|
|
1999
|
+
protoOf($throwIfErrorCOROUTINE$2).r9 = function () {
|
|
2000
|
+
var suspendResult = this.l9_1;
|
|
2000
2001
|
$sm: do
|
|
2001
2002
|
try {
|
|
2002
|
-
var tmp = this.
|
|
2003
|
+
var tmp = this.j9_1;
|
|
2003
2004
|
switch (tmp) {
|
|
2004
2005
|
case 0:
|
|
2005
|
-
this.
|
|
2006
|
-
var this_0 = this.
|
|
2007
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2006
|
+
this.k9_1 = 3;
|
|
2007
|
+
var this_0 = this.u5o_1;
|
|
2008
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).i2('error')) {
|
|
2008
2009
|
var tmp_0 = this;
|
|
2009
|
-
tmp_0.
|
|
2010
|
-
this.
|
|
2011
|
-
var tmp_1 = this.
|
|
2010
|
+
tmp_0.w5o_1 = this.v5o_1;
|
|
2011
|
+
this.j9_1 = 2;
|
|
2012
|
+
var tmp_1 = this.w5o_1.d2y();
|
|
2012
2013
|
var tmp_2 = JsType_instance;
|
|
2013
2014
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2014
2015
|
var tmp_4;
|
|
@@ -2024,13 +2025,13 @@
|
|
|
2024
2025
|
}
|
|
2025
2026
|
tmp_4 = tmp_5;
|
|
2026
2027
|
}
|
|
2027
|
-
suspendResult = tmp_1.
|
|
2028
|
+
suspendResult = tmp_1.h2x(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2028
2029
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2029
2030
|
return suspendResult;
|
|
2030
2031
|
}
|
|
2031
2032
|
continue $sm;
|
|
2032
2033
|
} else {
|
|
2033
|
-
this.
|
|
2034
|
+
this.j9_1 = 1;
|
|
2034
2035
|
continue $sm;
|
|
2035
2036
|
}
|
|
2036
2037
|
|
|
@@ -2038,43 +2039,43 @@
|
|
|
2038
2039
|
return Unit_instance;
|
|
2039
2040
|
case 2:
|
|
2040
2041
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2041
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2042
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2043
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2044
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2042
|
+
var tmp18_safe_receiver = errorResponseDto.m5m_1;
|
|
2043
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.p5m_1;
|
|
2044
|
+
var tmp19_safe_receiver = errorResponseDto.m5m_1;
|
|
2045
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.q5m_1);
|
|
2045
2046
|
case 3:
|
|
2046
|
-
throw this.
|
|
2047
|
+
throw this.m9_1;
|
|
2047
2048
|
}
|
|
2048
2049
|
} catch ($p) {
|
|
2049
2050
|
var e = $p;
|
|
2050
|
-
if (this.
|
|
2051
|
+
if (this.k9_1 === 3) {
|
|
2051
2052
|
throw e;
|
|
2052
2053
|
} else {
|
|
2053
|
-
this.
|
|
2054
|
-
this.
|
|
2054
|
+
this.j9_1 = this.k9_1;
|
|
2055
|
+
this.m9_1 = e;
|
|
2055
2056
|
}
|
|
2056
2057
|
}
|
|
2057
2058
|
while (true);
|
|
2058
2059
|
};
|
|
2059
2060
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2060
|
-
this.
|
|
2061
|
-
this.
|
|
2061
|
+
this.w5p_1 = client;
|
|
2062
|
+
this.x5p_1 = apiKey;
|
|
2062
2063
|
}
|
|
2063
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2064
|
+
protoOf(RandomOrgApiServiceImpl).k5o = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2064
2065
|
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2065
|
-
tmp.
|
|
2066
|
-
tmp.
|
|
2067
|
-
return tmp.
|
|
2066
|
+
tmp.l9_1 = Unit_instance;
|
|
2067
|
+
tmp.m9_1 = null;
|
|
2068
|
+
return tmp.r9();
|
|
2068
2069
|
};
|
|
2069
2070
|
function PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2070
2071
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
2071
2072
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? 3 : thresholdForUsedPool;
|
|
2072
|
-
failedRequestAttempts = failedRequestAttempts === VOID ?
|
|
2073
|
+
failedRequestAttempts = failedRequestAttempts === VOID ? 1 : failedRequestAttempts;
|
|
2073
2074
|
var tmp;
|
|
2074
2075
|
if (failedAttemptCooldown === VOID) {
|
|
2075
2076
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
2076
2077
|
Companion_getInstance_0();
|
|
2077
|
-
var this_0 = new Long(
|
|
2078
|
+
var this_0 = new Long(30000, 0);
|
|
2078
2079
|
tmp = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
2079
2080
|
} else {
|
|
2080
2081
|
tmp = failedAttemptCooldown;
|
|
@@ -2085,31 +2086,31 @@
|
|
|
2085
2086
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2086
2087
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2087
2088
|
}
|
|
2088
|
-
protoOf(PoolParams).
|
|
2089
|
+
protoOf(PoolParams).f5m = function () {
|
|
2089
2090
|
return this.poolSize;
|
|
2090
2091
|
};
|
|
2091
|
-
protoOf(PoolParams).
|
|
2092
|
+
protoOf(PoolParams).g5m = function () {
|
|
2092
2093
|
return this.thresholdForUsedPool;
|
|
2093
2094
|
};
|
|
2094
|
-
protoOf(PoolParams).
|
|
2095
|
+
protoOf(PoolParams).y5p = function () {
|
|
2095
2096
|
return this.failedRequestAttempts;
|
|
2096
2097
|
};
|
|
2097
|
-
protoOf(PoolParams).
|
|
2098
|
+
protoOf(PoolParams).z5p = function () {
|
|
2098
2099
|
return this.failedAttemptCooldown;
|
|
2099
2100
|
};
|
|
2100
|
-
protoOf(PoolParams).
|
|
2101
|
+
protoOf(PoolParams).ue = function () {
|
|
2101
2102
|
return this.poolSize;
|
|
2102
2103
|
};
|
|
2103
|
-
protoOf(PoolParams).
|
|
2104
|
+
protoOf(PoolParams).ve = function () {
|
|
2104
2105
|
return this.thresholdForUsedPool;
|
|
2105
2106
|
};
|
|
2106
|
-
protoOf(PoolParams).
|
|
2107
|
+
protoOf(PoolParams).wk = function () {
|
|
2107
2108
|
return this.failedRequestAttempts;
|
|
2108
2109
|
};
|
|
2109
|
-
protoOf(PoolParams).
|
|
2110
|
+
protoOf(PoolParams).a5q = function () {
|
|
2110
2111
|
return this.failedAttemptCooldown;
|
|
2111
2112
|
};
|
|
2112
|
-
protoOf(PoolParams).
|
|
2113
|
+
protoOf(PoolParams).b5q = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2113
2114
|
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2114
2115
|
};
|
|
2115
2116
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2117,7 +2118,7 @@
|
|
|
2117
2118
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2118
2119
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2119
2120
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2120
|
-
return this.
|
|
2121
|
+
return this.b5q(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2121
2122
|
};
|
|
2122
2123
|
protoOf(PoolParams).toString = function () {
|
|
2123
2124
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2148,74 +2149,74 @@
|
|
|
2148
2149
|
function RandomPoolProvider() {
|
|
2149
2150
|
}
|
|
2150
2151
|
function _get_cardDecksCount__ihvb5i($this) {
|
|
2151
|
-
return $this.
|
|
2152
|
+
return $this.f5q_1.p5l_1.m();
|
|
2152
2153
|
}
|
|
2153
2154
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2154
2155
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2155
2156
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2156
2157
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2157
|
-
this.
|
|
2158
|
-
this.
|
|
2159
|
-
this.
|
|
2160
|
-
this.
|
|
2158
|
+
this.f5q_1 = randomResult;
|
|
2159
|
+
this.g5q_1 = usedByGames;
|
|
2160
|
+
this.h5q_1 = reservedCardDecks;
|
|
2161
|
+
this.i5q_1 = isUsed;
|
|
2161
2162
|
}
|
|
2162
|
-
protoOf(RandomPoolValue).
|
|
2163
|
-
if (this.
|
|
2163
|
+
protoOf(RandomPoolValue).j5q = function (minRoundsCount) {
|
|
2164
|
+
if (this.i5q_1) {
|
|
2164
2165
|
return false;
|
|
2165
2166
|
}
|
|
2166
|
-
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.
|
|
2167
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.h5q_1 | 0;
|
|
2167
2168
|
return availableCount >= minRoundsCount;
|
|
2168
2169
|
};
|
|
2169
|
-
protoOf(RandomPoolValue).
|
|
2170
|
-
var previousReservedCardDeckIndex = this.
|
|
2170
|
+
protoOf(RandomPoolValue).k5q = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2171
|
+
var previousReservedCardDeckIndex = this.h5q_1;
|
|
2171
2172
|
// Inline function 'kotlin.apply' call
|
|
2172
|
-
var this_0 = toMutableMap(this.
|
|
2173
|
+
var this_0 = toMutableMap(this.g5q_1);
|
|
2173
2174
|
// Inline function 'kotlin.contracts.contract' call
|
|
2174
2175
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2175
|
-
this_0.
|
|
2176
|
+
this_0.n2(gameId, previousReservedCardDeckIndex);
|
|
2176
2177
|
var newNewUsedBy = toMap(this_0);
|
|
2177
2178
|
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2178
|
-
return this.
|
|
2179
|
+
return this.l5q(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2179
2180
|
};
|
|
2180
|
-
protoOf(RandomPoolValue).
|
|
2181
|
-
var currentCardDeckIndex = getValue(this.
|
|
2181
|
+
protoOf(RandomPoolValue).m5q = function (gameId) {
|
|
2182
|
+
var currentCardDeckIndex = getValue(this.g5q_1, gameId);
|
|
2182
2183
|
var tmp;
|
|
2183
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2184
|
+
if (currentCardDeckIndex === get_lastIndex(this.f5q_1.p5l_1)) {
|
|
2184
2185
|
tmp = 0;
|
|
2185
2186
|
} else {
|
|
2186
2187
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2187
2188
|
}
|
|
2188
2189
|
var newCardDeckIndex = tmp;
|
|
2189
2190
|
// Inline function 'kotlin.apply' call
|
|
2190
|
-
var this_0 = toMutableMap(this.
|
|
2191
|
+
var this_0 = toMutableMap(this.g5q_1);
|
|
2191
2192
|
// Inline function 'kotlin.contracts.contract' call
|
|
2192
2193
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2193
|
-
this_0.
|
|
2194
|
+
this_0.n2(gameId, newCardDeckIndex);
|
|
2194
2195
|
var newNewUsedBy = toMap(this_0);
|
|
2195
|
-
return this.
|
|
2196
|
+
return this.l5q(VOID, newNewUsedBy);
|
|
2196
2197
|
};
|
|
2197
|
-
protoOf(RandomPoolValue).
|
|
2198
|
-
var index = getValue(this.
|
|
2199
|
-
return new GameCardDeckData(index, this.
|
|
2198
|
+
protoOf(RandomPoolValue).n5q = function (gameId) {
|
|
2199
|
+
var index = getValue(this.g5q_1, gameId);
|
|
2200
|
+
return new GameCardDeckData(index, this.f5q_1.p5l_1.o(index));
|
|
2200
2201
|
};
|
|
2201
|
-
protoOf(RandomPoolValue).
|
|
2202
|
+
protoOf(RandomPoolValue).o5q = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2202
2203
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2203
2204
|
};
|
|
2204
|
-
protoOf(RandomPoolValue).
|
|
2205
|
-
randomResult = randomResult === VOID ? this.
|
|
2206
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2207
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2208
|
-
isUsed = isUsed === VOID ? this.
|
|
2209
|
-
return $super === VOID ? this.
|
|
2205
|
+
protoOf(RandomPoolValue).l5q = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2206
|
+
randomResult = randomResult === VOID ? this.f5q_1 : randomResult;
|
|
2207
|
+
usedByGames = usedByGames === VOID ? this.g5q_1 : usedByGames;
|
|
2208
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.h5q_1 : reservedCardDecks;
|
|
2209
|
+
isUsed = isUsed === VOID ? this.i5q_1 : isUsed;
|
|
2210
|
+
return $super === VOID ? this.o5q(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.o5q.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2210
2211
|
};
|
|
2211
2212
|
protoOf(RandomPoolValue).toString = function () {
|
|
2212
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2213
|
+
return 'RandomPoolValue(randomResult=' + this.f5q_1.toString() + ', usedByGames=' + toString(this.g5q_1) + ', reservedCardDecks=' + this.h5q_1 + ', isUsed=' + this.i5q_1 + ')';
|
|
2213
2214
|
};
|
|
2214
2215
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2215
|
-
var result = this.
|
|
2216
|
-
result = imul(result, 31) + hashCode(this.
|
|
2217
|
-
result = imul(result, 31) + this.
|
|
2218
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2216
|
+
var result = this.f5q_1.hashCode();
|
|
2217
|
+
result = imul(result, 31) + hashCode(this.g5q_1) | 0;
|
|
2218
|
+
result = imul(result, 31) + this.h5q_1 | 0;
|
|
2219
|
+
result = imul(result, 31) + getBooleanHashCode(this.i5q_1) | 0;
|
|
2219
2220
|
return result;
|
|
2220
2221
|
};
|
|
2221
2222
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2224,24 +2225,79 @@
|
|
|
2224
2225
|
if (!(other instanceof RandomPoolValue))
|
|
2225
2226
|
return false;
|
|
2226
2227
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2227
|
-
if (!this.
|
|
2228
|
+
if (!this.f5q_1.equals(tmp0_other_with_cast.f5q_1))
|
|
2228
2229
|
return false;
|
|
2229
|
-
if (!equals(this.
|
|
2230
|
+
if (!equals(this.g5q_1, tmp0_other_with_cast.g5q_1))
|
|
2230
2231
|
return false;
|
|
2231
|
-
if (!(this.
|
|
2232
|
+
if (!(this.h5q_1 === tmp0_other_with_cast.h5q_1))
|
|
2232
2233
|
return false;
|
|
2233
|
-
if (!(this.
|
|
2234
|
+
if (!(this.i5q_1 === tmp0_other_with_cast.i5q_1))
|
|
2234
2235
|
return false;
|
|
2235
2236
|
return true;
|
|
2236
2237
|
};
|
|
2238
|
+
function getExceptionIfCooldown($this) {
|
|
2239
|
+
var currentTime = System_instance.w54();
|
|
2240
|
+
if (!($this.x5q_1 == null) && $this.y5q_1 >= $this.p5q_1.failedRequestAttempts) {
|
|
2241
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.p5q_1.failedAttemptCooldown, $this.y5q_1);
|
|
2242
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2243
|
+
var value = $this.x5q_1;
|
|
2244
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2245
|
+
var tmp$ret$1;
|
|
2246
|
+
$l$block: {
|
|
2247
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2248
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2249
|
+
if (value == null) {
|
|
2250
|
+
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
2251
|
+
var message = 'Required value was null.';
|
|
2252
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2253
|
+
} else {
|
|
2254
|
+
tmp$ret$1 = value;
|
|
2255
|
+
break $l$block;
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
var allowedRequestTime = tmp$ret$1.k5k(timeToWait);
|
|
2259
|
+
if (allowedRequestTime.o5k(currentTime) > 0) {
|
|
2260
|
+
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.x5q_1) + ', ') + ('currentTime = ' + currentTime.toString() + ', ') + ('failedRequestCount = ' + $this.y5q_1));
|
|
2261
|
+
return exception;
|
|
2262
|
+
} else {
|
|
2263
|
+
$this.x5q_1 = null;
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
return null;
|
|
2267
|
+
}
|
|
2268
|
+
function mapToRandomExceptionIfError($this, error) {
|
|
2269
|
+
$this.x5q_1 = System_instance.w54();
|
|
2270
|
+
$this.y5q_1 = $this.y5q_1 + 1 | 0;
|
|
2271
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.p5q_1.failedAttemptCooldown, $this.y5q_1);
|
|
2272
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2273
|
+
var value = $this.x5q_1;
|
|
2274
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2275
|
+
var tmp$ret$1;
|
|
2276
|
+
$l$block: {
|
|
2277
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2278
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2279
|
+
if (value == null) {
|
|
2280
|
+
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
2281
|
+
var message = 'Required value was null.';
|
|
2282
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2283
|
+
} else {
|
|
2284
|
+
tmp$ret$1 = value;
|
|
2285
|
+
break $l$block;
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
var allowedRequestTime = tmp$ret$1.k5k(timeToWait);
|
|
2289
|
+
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.x5q_1) + ', ') + ('currentTime = ' + System_instance.w54().toString() + ', ') + ('failedRequestCount = ' + $this.y5q_1), error);
|
|
2290
|
+
$this.r5q_1.w('RandomPoolProvider', VOID, randomException);
|
|
2291
|
+
return randomException;
|
|
2292
|
+
}
|
|
2237
2293
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2238
|
-
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$
|
|
2239
|
-
tmp.
|
|
2240
|
-
tmp.
|
|
2241
|
-
return tmp.
|
|
2294
|
+
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$3($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2295
|
+
tmp.l9_1 = Unit_instance;
|
|
2296
|
+
tmp.m9_1 = null;
|
|
2297
|
+
return tmp.r9();
|
|
2242
2298
|
}
|
|
2243
2299
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2244
|
-
var existingCardDeck = $this.
|
|
2300
|
+
var existingCardDeck = $this.w5q_1.k2(userData.gameId);
|
|
2245
2301
|
var tmp;
|
|
2246
2302
|
if (!(existingCardDeck == null)) {
|
|
2247
2303
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2251,19 +2307,19 @@
|
|
|
2251
2307
|
return tmp;
|
|
2252
2308
|
}
|
|
2253
2309
|
function getPreparedOrRequestPool($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2254
|
-
var tmp = new $getPreparedOrRequestPoolCOROUTINE$
|
|
2255
|
-
tmp.
|
|
2256
|
-
tmp.
|
|
2257
|
-
return tmp.
|
|
2310
|
+
var tmp = new $getPreparedOrRequestPoolCOROUTINE$4($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2311
|
+
tmp.l9_1 = Unit_instance;
|
|
2312
|
+
tmp.m9_1 = null;
|
|
2313
|
+
return tmp.r9();
|
|
2258
2314
|
}
|
|
2259
2315
|
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2260
|
-
return withContext($this.
|
|
2316
|
+
return withContext($this.s5q_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2261
2317
|
}
|
|
2262
2318
|
function Companion_9() {
|
|
2263
|
-
this.
|
|
2264
|
-
this.
|
|
2265
|
-
this.
|
|
2266
|
-
this.
|
|
2319
|
+
this.i5s_1 = 100;
|
|
2320
|
+
this.j5s_1 = 3;
|
|
2321
|
+
this.k5s_1 = 3000;
|
|
2322
|
+
this.l5s_1 = 10000;
|
|
2267
2323
|
}
|
|
2268
2324
|
var Companion_instance_11;
|
|
2269
2325
|
function Companion_getInstance_12() {
|
|
@@ -2273,199 +2329,169 @@
|
|
|
2273
2329
|
return uuid4().toString();
|
|
2274
2330
|
}
|
|
2275
2331
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2276
|
-
this.
|
|
2277
|
-
this.
|
|
2278
|
-
this.
|
|
2279
|
-
this.
|
|
2280
|
-
this.
|
|
2281
|
-
this.
|
|
2282
|
-
this.
|
|
2283
|
-
this.
|
|
2332
|
+
this.u5s_1 = this$0;
|
|
2333
|
+
this.v5s_1 = $minRoundsCountInPool;
|
|
2334
|
+
this.w5s_1 = $userData;
|
|
2335
|
+
this.x5s_1 = $min;
|
|
2336
|
+
this.y5s_1 = $max;
|
|
2337
|
+
this.z5s_1 = $cardsCount;
|
|
2338
|
+
this.a5t_1 = $signed;
|
|
2339
|
+
this.b5t_1 = $requestDurationWarnMillis;
|
|
2284
2340
|
CoroutineImpl.call(this, resultContinuation);
|
|
2285
2341
|
}
|
|
2286
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2287
|
-
var tmp = this.
|
|
2288
|
-
tmp.
|
|
2289
|
-
tmp.
|
|
2290
|
-
var tmp_0 = tmp.
|
|
2342
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).i5t = function ($this$withContext, $completion) {
|
|
2343
|
+
var tmp = this.s1d($this$withContext, $completion);
|
|
2344
|
+
tmp.l9_1 = Unit_instance;
|
|
2345
|
+
tmp.m9_1 = null;
|
|
2346
|
+
var tmp_0 = tmp.r9();
|
|
2291
2347
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2292
2348
|
return tmp_0;
|
|
2293
2349
|
return tmp_0;
|
|
2294
2350
|
};
|
|
2295
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2296
|
-
return this.
|
|
2351
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).ba = function (p1, $completion) {
|
|
2352
|
+
return this.i5t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2297
2353
|
};
|
|
2298
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2299
|
-
var suspendResult = this.
|
|
2354
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).r9 = function () {
|
|
2355
|
+
var suspendResult = this.l9_1;
|
|
2300
2356
|
$sm: do
|
|
2301
2357
|
try {
|
|
2302
|
-
var tmp = this.
|
|
2358
|
+
var tmp = this.j9_1;
|
|
2303
2359
|
switch (tmp) {
|
|
2304
2360
|
case 0:
|
|
2305
|
-
this.
|
|
2361
|
+
this.k9_1 = 10;
|
|
2306
2362
|
var tmp_0 = this;
|
|
2307
|
-
tmp_0.
|
|
2363
|
+
tmp_0.d5t_1 = this.u5s_1.u5q_1;
|
|
2308
2364
|
var tmp_1 = this;
|
|
2309
|
-
tmp_1.
|
|
2310
|
-
this.
|
|
2311
|
-
suspendResult = this.
|
|
2365
|
+
tmp_1.e5t_1 = null;
|
|
2366
|
+
this.j9_1 = 1;
|
|
2367
|
+
suspendResult = this.d5t_1.o1l(this.e5t_1, this);
|
|
2312
2368
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2313
2369
|
return suspendResult;
|
|
2314
2370
|
}
|
|
2315
2371
|
|
|
2316
2372
|
continue $sm;
|
|
2317
2373
|
case 1:
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2374
|
+
this.f5t_1 = Unit_instance;
|
|
2375
|
+
this.j9_1 = 2;
|
|
2320
2376
|
continue $sm;
|
|
2321
2377
|
case 2:
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2378
|
+
this.k9_1 = 9;
|
|
2379
|
+
this.g5t_1 = Unit_instance;
|
|
2380
|
+
this.j9_1 = 3;
|
|
2325
2381
|
continue $sm;
|
|
2326
2382
|
case 3:
|
|
2327
|
-
this.
|
|
2328
|
-
this.
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
var exception = this.w5s_1;
|
|
2335
|
-
tmp_2.s5s_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2336
|
-
this.f9_1 = 8;
|
|
2337
|
-
continue $sm;
|
|
2338
|
-
} else {
|
|
2339
|
-
this.g5s_1.a5r_1 = null;
|
|
2340
|
-
this.g5s_1.b5r_1 = 0;
|
|
2341
|
-
this.f9_1 = 4;
|
|
2342
|
-
continue $sm;
|
|
2343
|
-
}
|
|
2383
|
+
this.h5t_1 = getExceptionIfCooldown(this.u5s_1);
|
|
2384
|
+
if (!(this.h5t_1 == null)) {
|
|
2385
|
+
var tmp_2 = this;
|
|
2386
|
+
var exception = this.h5t_1;
|
|
2387
|
+
tmp_2.g5t_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2388
|
+
this.j9_1 = 7;
|
|
2389
|
+
continue $sm;
|
|
2344
2390
|
} else {
|
|
2345
|
-
this.
|
|
2391
|
+
this.j9_1 = 4;
|
|
2346
2392
|
continue $sm;
|
|
2347
2393
|
}
|
|
2348
2394
|
|
|
2349
2395
|
case 4:
|
|
2350
|
-
this.
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
this.g9_1 = 7;
|
|
2354
|
-
this.f9_1 = 6;
|
|
2355
|
-
suspendResult = getOrLoadGameCardDeckData(this.g5s_1, this.h5s_1, this.i5s_1, this.j5s_1, this.k5s_1, this.l5s_1, this.m5s_1, this.n5s_1, this);
|
|
2396
|
+
this.k9_1 = 6;
|
|
2397
|
+
this.j9_1 = 5;
|
|
2398
|
+
suspendResult = getOrLoadGameCardDeckData(this.u5s_1, this.v5s_1, this.w5s_1, this.x5s_1, this.y5s_1, this.z5s_1, this.a5t_1, this.b5t_1, this);
|
|
2356
2399
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2357
2400
|
return suspendResult;
|
|
2358
2401
|
}
|
|
2359
2402
|
|
|
2360
2403
|
continue $sm;
|
|
2361
|
-
case
|
|
2404
|
+
case 5:
|
|
2362
2405
|
var cardDeckData = suspendResult;
|
|
2363
2406
|
var tmp_3 = this;
|
|
2364
|
-
tmp_3.
|
|
2365
|
-
this.
|
|
2407
|
+
tmp_3.g5t_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2408
|
+
this.j9_1 = 7;
|
|
2366
2409
|
continue $sm;
|
|
2367
|
-
case
|
|
2368
|
-
this.
|
|
2369
|
-
var tmp_4 = this.
|
|
2410
|
+
case 6:
|
|
2411
|
+
this.k9_1 = 9;
|
|
2412
|
+
var tmp_4 = this.m9_1;
|
|
2370
2413
|
if (tmp_4 instanceof Error) {
|
|
2371
|
-
var error = this.
|
|
2372
|
-
|
|
2373
|
-
var
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
var value = this.g5s_1.a5r_1;
|
|
2377
|
-
var tmp$ret$2 = Unit_instance;
|
|
2378
|
-
l$ret$3: do {
|
|
2379
|
-
if (value == null) {
|
|
2380
|
-
var message = 'Required value was null.';
|
|
2381
|
-
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2382
|
-
} else {
|
|
2383
|
-
tmp$ret$2 = value;
|
|
2384
|
-
break l$ret$3;
|
|
2385
|
-
}
|
|
2386
|
-
}
|
|
2387
|
-
while (false);
|
|
2388
|
-
var exception_0 = new RandomException(VOID, tmp_5 + ('cooldown ends in ' + tmp$ret$2.w5j(this.g5s_1.s5q_1.failedAttemptCooldown).toString() + ', ') + ('failedAttemptTime = ' + toString_0(this.t5s_1) + ', ') + ('currentTime = ' + this.u5s_1.toString()), error);
|
|
2389
|
-
this.g5s_1.u5q_1.w('RandomPoolProvider', VOID, exception_0);
|
|
2390
|
-
var tmp_6 = this;
|
|
2391
|
-
tmp_6.s5s_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2392
|
-
this.f9_1 = 8;
|
|
2414
|
+
var error = this.m9_1;
|
|
2415
|
+
var tmp_5 = this;
|
|
2416
|
+
var exception_0 = mapToRandomExceptionIfError(this.u5s_1, error);
|
|
2417
|
+
tmp_5.g5t_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2418
|
+
this.j9_1 = 7;
|
|
2393
2419
|
continue $sm;
|
|
2394
2420
|
} else {
|
|
2395
|
-
throw this.
|
|
2421
|
+
throw this.m9_1;
|
|
2396
2422
|
}
|
|
2397
2423
|
|
|
2398
|
-
case
|
|
2399
|
-
this.
|
|
2400
|
-
this.
|
|
2401
|
-
this.
|
|
2424
|
+
case 7:
|
|
2425
|
+
this.f5t_1 = this.g5t_1;
|
|
2426
|
+
this.k9_1 = 10;
|
|
2427
|
+
this.j9_1 = 8;
|
|
2402
2428
|
continue $sm;
|
|
2429
|
+
case 8:
|
|
2430
|
+
var tmp_6 = this.f5t_1;
|
|
2431
|
+
this.k9_1 = 10;
|
|
2432
|
+
this.d5t_1.z1k(this.e5t_1);
|
|
2433
|
+
return tmp_6;
|
|
2403
2434
|
case 9:
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
this.
|
|
2407
|
-
return tmp_7;
|
|
2408
|
-
case 10:
|
|
2409
|
-
this.g9_1 = 11;
|
|
2410
|
-
var t = this.i9_1;
|
|
2411
|
-
this.p5s_1.l1k(this.q5s_1);
|
|
2435
|
+
this.k9_1 = 10;
|
|
2436
|
+
var t = this.m9_1;
|
|
2437
|
+
this.d5t_1.z1k(this.e5t_1);
|
|
2412
2438
|
throw t;
|
|
2413
|
-
case
|
|
2414
|
-
throw this.
|
|
2439
|
+
case 10:
|
|
2440
|
+
throw this.m9_1;
|
|
2415
2441
|
}
|
|
2416
2442
|
} catch ($p) {
|
|
2417
2443
|
var e = $p;
|
|
2418
|
-
if (this.
|
|
2444
|
+
if (this.k9_1 === 10) {
|
|
2419
2445
|
throw e;
|
|
2420
2446
|
} else {
|
|
2421
|
-
this.
|
|
2422
|
-
this.
|
|
2447
|
+
this.j9_1 = this.k9_1;
|
|
2448
|
+
this.m9_1 = e;
|
|
2423
2449
|
}
|
|
2424
2450
|
}
|
|
2425
2451
|
while (true);
|
|
2426
2452
|
};
|
|
2427
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2428
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2429
|
-
i.
|
|
2453
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).s1d = function ($this$withContext, completion) {
|
|
2454
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.u5s_1, this.v5s_1, this.w5s_1, this.x5s_1, this.y5s_1, this.z5s_1, this.a5t_1, this.b5t_1, completion);
|
|
2455
|
+
i.c5t_1 = $this$withContext;
|
|
2430
2456
|
return i;
|
|
2431
2457
|
};
|
|
2432
2458
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2433
2459
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2434
2460
|
var l = function ($this$withContext, $completion) {
|
|
2435
|
-
return i.
|
|
2461
|
+
return i.i5t($this$withContext, $completion);
|
|
2436
2462
|
};
|
|
2437
2463
|
l.$arity = 1;
|
|
2438
2464
|
return l;
|
|
2439
2465
|
}
|
|
2440
2466
|
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2441
|
-
this.
|
|
2442
|
-
this.
|
|
2443
|
-
this.
|
|
2444
|
-
this.
|
|
2445
|
-
this.
|
|
2446
|
-
this.
|
|
2467
|
+
this.r5t_1 = this$0;
|
|
2468
|
+
this.s5t_1 = $min;
|
|
2469
|
+
this.t5t_1 = $max;
|
|
2470
|
+
this.u5t_1 = $cardsCount;
|
|
2471
|
+
this.v5t_1 = $signed;
|
|
2472
|
+
this.w5t_1 = $requestDurationWarnMillis;
|
|
2447
2473
|
CoroutineImpl.call(this, resultContinuation);
|
|
2448
2474
|
}
|
|
2449
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2450
|
-
var tmp = this.
|
|
2451
|
-
tmp.
|
|
2452
|
-
tmp.
|
|
2453
|
-
return tmp.
|
|
2475
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).z5t = function ($this$withContext, $completion) {
|
|
2476
|
+
var tmp = this.s1d($this$withContext, $completion);
|
|
2477
|
+
tmp.l9_1 = Unit_instance;
|
|
2478
|
+
tmp.m9_1 = null;
|
|
2479
|
+
return tmp.r9();
|
|
2454
2480
|
};
|
|
2455
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2456
|
-
return this.
|
|
2481
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).ba = function (p1, $completion) {
|
|
2482
|
+
return this.z5t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2457
2483
|
};
|
|
2458
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2459
|
-
var suspendResult = this.
|
|
2484
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).r9 = function () {
|
|
2485
|
+
var suspendResult = this.l9_1;
|
|
2460
2486
|
$sm: do
|
|
2461
2487
|
try {
|
|
2462
|
-
var tmp = this.
|
|
2488
|
+
var tmp = this.j9_1;
|
|
2463
2489
|
switch (tmp) {
|
|
2464
2490
|
case 0:
|
|
2465
|
-
this.
|
|
2466
|
-
this.
|
|
2467
|
-
this.
|
|
2468
|
-
suspendResult = this.
|
|
2491
|
+
this.k9_1 = 2;
|
|
2492
|
+
this.y5t_1 = System_instance.w54();
|
|
2493
|
+
this.j9_1 = 1;
|
|
2494
|
+
suspendResult = this.r5t_1.q5q_1.k5o(this.s5t_1, this.t5t_1, this.r5t_1.p5q_1.poolSize, this.u5t_1, new CardDecksRequestUserData(this.r5t_1.t5q_1(), this.r5t_1.p5q_1.poolSize), this.v5t_1, this);
|
|
2469
2495
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2470
2496
|
return suspendResult;
|
|
2471
2497
|
}
|
|
@@ -2473,68 +2499,67 @@
|
|
|
2473
2499
|
continue $sm;
|
|
2474
2500
|
case 1:
|
|
2475
2501
|
var result = suspendResult;
|
|
2476
|
-
var requestEndTime = System_instance.
|
|
2477
|
-
var requestDuration = requestEndTime.
|
|
2502
|
+
var requestEndTime = System_instance.w54();
|
|
2503
|
+
var requestDuration = requestEndTime.n5k(this.y5t_1);
|
|
2478
2504
|
Companion_getInstance_0();
|
|
2479
|
-
var this_0 = this.
|
|
2505
|
+
var this_0 = this.w5t_1;
|
|
2480
2506
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2481
2507
|
var tmp_0 = 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ');
|
|
2482
2508
|
Companion_getInstance_0();
|
|
2483
|
-
var this_1 = this.
|
|
2484
|
-
this.
|
|
2509
|
+
var this_1 = this.w5t_1;
|
|
2510
|
+
this.r5t_1.r5q_1.w('RandomPoolProvider', tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2485
2511
|
}
|
|
2486
2512
|
|
|
2487
|
-
|
|
2488
|
-
return newCardDecksValue;
|
|
2513
|
+
return new RandomPoolValue(result);
|
|
2489
2514
|
case 2:
|
|
2490
|
-
throw this.
|
|
2515
|
+
throw this.m9_1;
|
|
2491
2516
|
}
|
|
2492
2517
|
} catch ($p) {
|
|
2493
2518
|
var e = $p;
|
|
2494
|
-
if (this.
|
|
2519
|
+
if (this.k9_1 === 2) {
|
|
2495
2520
|
throw e;
|
|
2496
2521
|
} else {
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2522
|
+
this.j9_1 = this.k9_1;
|
|
2523
|
+
this.m9_1 = e;
|
|
2499
2524
|
}
|
|
2500
2525
|
}
|
|
2501
2526
|
while (true);
|
|
2502
2527
|
};
|
|
2503
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2504
|
-
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.
|
|
2505
|
-
i.
|
|
2528
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).s1d = function ($this$withContext, completion) {
|
|
2529
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.r5t_1, this.s5t_1, this.t5t_1, this.u5t_1, this.v5t_1, this.w5t_1, completion);
|
|
2530
|
+
i.x5t_1 = $this$withContext;
|
|
2506
2531
|
return i;
|
|
2507
2532
|
};
|
|
2508
2533
|
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2509
2534
|
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2510
2535
|
var l = function ($this$withContext, $completion) {
|
|
2511
|
-
return i.
|
|
2536
|
+
return i.z5t($this$withContext, $completion);
|
|
2512
2537
|
};
|
|
2513
2538
|
l.$arity = 1;
|
|
2514
2539
|
return l;
|
|
2515
2540
|
}
|
|
2516
|
-
function $getOrLoadGameCardDeckDataCOROUTINE$
|
|
2541
|
+
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2517
2542
|
CoroutineImpl.call(this, resultContinuation);
|
|
2518
|
-
this.
|
|
2519
|
-
this.
|
|
2520
|
-
this.
|
|
2521
|
-
this.
|
|
2522
|
-
this.
|
|
2523
|
-
this.
|
|
2524
|
-
this.
|
|
2525
|
-
this.
|
|
2526
|
-
}
|
|
2527
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$
|
|
2528
|
-
var suspendResult = this.
|
|
2543
|
+
this.h5r_1 = _this__u8e3s4;
|
|
2544
|
+
this.i5r_1 = minRoundsCountInPool;
|
|
2545
|
+
this.j5r_1 = userData;
|
|
2546
|
+
this.k5r_1 = min;
|
|
2547
|
+
this.l5r_1 = max;
|
|
2548
|
+
this.m5r_1 = cardsCount;
|
|
2549
|
+
this.n5r_1 = signed;
|
|
2550
|
+
this.o5r_1 = requestDurationWarnMillis;
|
|
2551
|
+
}
|
|
2552
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).r9 = function () {
|
|
2553
|
+
var suspendResult = this.l9_1;
|
|
2529
2554
|
$sm: do
|
|
2530
2555
|
try {
|
|
2531
|
-
var tmp = this.
|
|
2556
|
+
var tmp = this.j9_1;
|
|
2532
2557
|
switch (tmp) {
|
|
2533
2558
|
case 0:
|
|
2534
|
-
this.
|
|
2535
|
-
this.
|
|
2536
|
-
this.
|
|
2537
|
-
suspendResult = getPreparedOrRequestPool(this.
|
|
2559
|
+
this.k9_1 = 2;
|
|
2560
|
+
this.p5r_1 = this.j5r_1.gameId;
|
|
2561
|
+
this.j9_1 = 1;
|
|
2562
|
+
suspendResult = getPreparedOrRequestPool(this.h5r_1, this.p5r_1, this.k5r_1, this.l5r_1, this.i5r_1, this.m5r_1, this.n5r_1, this.o5r_1, this);
|
|
2538
2563
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2539
2564
|
return suspendResult;
|
|
2540
2565
|
}
|
|
@@ -2542,86 +2567,86 @@
|
|
|
2542
2567
|
continue $sm;
|
|
2543
2568
|
case 1:
|
|
2544
2569
|
var randomPoolValue = suspendResult;
|
|
2545
|
-
var this_0 = this.
|
|
2546
|
-
var key = randomPoolValue.
|
|
2547
|
-
this_0.
|
|
2548
|
-
var cardDeckData = randomPoolValue.
|
|
2549
|
-
var tmp21_poolId = randomPoolValue.
|
|
2550
|
-
var tmp22_signature = randomPoolValue.
|
|
2551
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2552
|
-
var this_1 = this.
|
|
2553
|
-
var key_0 = this.
|
|
2554
|
-
this_1.
|
|
2570
|
+
var this_0 = this.h5r_1.v5q_1;
|
|
2571
|
+
var key = randomPoolValue.f5q_1.r5l_1;
|
|
2572
|
+
this_0.n2(key, randomPoolValue);
|
|
2573
|
+
var cardDeckData = randomPoolValue.n5q(this.j5r_1.gameId);
|
|
2574
|
+
var tmp21_poolId = randomPoolValue.f5q_1.r5l_1;
|
|
2575
|
+
var tmp22_signature = randomPoolValue.f5q_1.s5l_1;
|
|
2576
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.h5r_1, tmp21_poolId, tmp22_signature, cardDeckData, this.j5r_1);
|
|
2577
|
+
var this_1 = this.h5r_1.w5q_1;
|
|
2578
|
+
var key_0 = this.j5r_1.gameId;
|
|
2579
|
+
this_1.n2(key_0, cardDecksRecord);
|
|
2555
2580
|
return cardDeckData;
|
|
2556
2581
|
case 2:
|
|
2557
|
-
throw this.
|
|
2582
|
+
throw this.m9_1;
|
|
2558
2583
|
}
|
|
2559
2584
|
} catch ($p) {
|
|
2560
2585
|
var e = $p;
|
|
2561
|
-
if (this.
|
|
2586
|
+
if (this.k9_1 === 2) {
|
|
2562
2587
|
throw e;
|
|
2563
2588
|
} else {
|
|
2564
|
-
this.
|
|
2565
|
-
this.
|
|
2589
|
+
this.j9_1 = this.k9_1;
|
|
2590
|
+
this.m9_1 = e;
|
|
2566
2591
|
}
|
|
2567
2592
|
}
|
|
2568
2593
|
while (true);
|
|
2569
2594
|
};
|
|
2570
|
-
function $getPreparedOrRequestPoolCOROUTINE$
|
|
2595
|
+
function $getPreparedOrRequestPoolCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2571
2596
|
CoroutineImpl.call(this, resultContinuation);
|
|
2572
|
-
this.
|
|
2573
|
-
this.
|
|
2574
|
-
this.
|
|
2575
|
-
this.
|
|
2576
|
-
this.
|
|
2577
|
-
this.
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
}
|
|
2581
|
-
protoOf($getPreparedOrRequestPoolCOROUTINE$
|
|
2582
|
-
var suspendResult = this.
|
|
2597
|
+
this.y5r_1 = _this__u8e3s4;
|
|
2598
|
+
this.z5r_1 = gameId;
|
|
2599
|
+
this.a5s_1 = min;
|
|
2600
|
+
this.b5s_1 = max;
|
|
2601
|
+
this.c5s_1 = minRoundsCount;
|
|
2602
|
+
this.d5s_1 = cardsCount;
|
|
2603
|
+
this.e5s_1 = signed;
|
|
2604
|
+
this.f5s_1 = requestDurationWarnMillis;
|
|
2605
|
+
}
|
|
2606
|
+
protoOf($getPreparedOrRequestPoolCOROUTINE$4).r9 = function () {
|
|
2607
|
+
var suspendResult = this.l9_1;
|
|
2583
2608
|
$sm: do
|
|
2584
2609
|
try {
|
|
2585
|
-
var tmp = this.
|
|
2610
|
+
var tmp = this.j9_1;
|
|
2586
2611
|
switch (tmp) {
|
|
2587
2612
|
case 0:
|
|
2588
|
-
this.
|
|
2613
|
+
this.k9_1 = 2;
|
|
2589
2614
|
var tmp_0 = this;
|
|
2590
|
-
var this_0 = this.
|
|
2615
|
+
var this_0 = this.y5r_1.v5q_1;
|
|
2591
2616
|
var destination = LinkedHashMap_init_$Create$();
|
|
2592
2617
|
var tmp0_iterator = this_0.s().j();
|
|
2593
2618
|
while (tmp0_iterator.k()) {
|
|
2594
2619
|
var element = tmp0_iterator.l();
|
|
2595
|
-
var this_1 = element.u().
|
|
2596
|
-
var key = this.
|
|
2597
|
-
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).
|
|
2598
|
-
destination.
|
|
2620
|
+
var this_1 = element.u().g5q_1;
|
|
2621
|
+
var key = this.z5r_1;
|
|
2622
|
+
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).i2(key)) {
|
|
2623
|
+
destination.n2(element.t(), element.u());
|
|
2599
2624
|
}
|
|
2600
2625
|
}
|
|
2601
2626
|
|
|
2602
|
-
tmp_0.
|
|
2603
|
-
if (!(this.
|
|
2604
|
-
return this.
|
|
2627
|
+
tmp_0.g5s_1 = firstOrNull(destination.s());
|
|
2628
|
+
if (!(this.g5s_1 == null)) {
|
|
2629
|
+
return this.g5s_1.u().m5q(this.z5r_1);
|
|
2605
2630
|
}
|
|
2606
2631
|
|
|
2607
2632
|
var tmp_1 = this;
|
|
2608
|
-
var this_2 = this.
|
|
2633
|
+
var this_2 = this.y5r_1.v5q_1;
|
|
2609
2634
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2610
2635
|
var tmp0_iterator_0 = this_2.s().j();
|
|
2611
2636
|
while (tmp0_iterator_0.k()) {
|
|
2612
2637
|
var element_0 = tmp0_iterator_0.l();
|
|
2613
|
-
if (element_0.u().
|
|
2614
|
-
destination_0.
|
|
2638
|
+
if (element_0.u().j5q(this.c5s_1)) {
|
|
2639
|
+
destination_0.n2(element_0.t(), element_0.u());
|
|
2615
2640
|
}
|
|
2616
2641
|
}
|
|
2617
2642
|
|
|
2618
|
-
tmp_1.
|
|
2619
|
-
if (!(this.
|
|
2620
|
-
return this.
|
|
2643
|
+
tmp_1.h5s_1 = firstOrNull(destination_0.s());
|
|
2644
|
+
if (!(this.h5s_1 == null)) {
|
|
2645
|
+
return this.h5s_1.u().k5q(this.z5r_1, this.c5s_1, this.y5r_1.p5q_1.thresholdForUsedPool);
|
|
2621
2646
|
}
|
|
2622
2647
|
|
|
2623
|
-
this.
|
|
2624
|
-
suspendResult = requestNewPool(this.
|
|
2648
|
+
this.j9_1 = 1;
|
|
2649
|
+
suspendResult = requestNewPool(this.y5r_1, this.a5s_1, this.b5s_1, this.d5s_1, this.e5s_1, this.f5s_1, this);
|
|
2625
2650
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2626
2651
|
return suspendResult;
|
|
2627
2652
|
}
|
|
@@ -2629,23 +2654,23 @@
|
|
|
2629
2654
|
continue $sm;
|
|
2630
2655
|
case 1:
|
|
2631
2656
|
var cardDecks = suspendResult;
|
|
2632
|
-
return cardDecks.
|
|
2657
|
+
return cardDecks.k5q(this.z5r_1, this.c5s_1, this.y5r_1.p5q_1.thresholdForUsedPool);
|
|
2633
2658
|
case 2:
|
|
2634
|
-
throw this.
|
|
2659
|
+
throw this.m9_1;
|
|
2635
2660
|
}
|
|
2636
2661
|
} catch ($p) {
|
|
2637
2662
|
var e = $p;
|
|
2638
|
-
if (this.
|
|
2663
|
+
if (this.k9_1 === 2) {
|
|
2639
2664
|
throw e;
|
|
2640
2665
|
} else {
|
|
2641
|
-
this.
|
|
2642
|
-
this.
|
|
2666
|
+
this.j9_1 = this.k9_1;
|
|
2667
|
+
this.m9_1 = e;
|
|
2643
2668
|
}
|
|
2644
2669
|
}
|
|
2645
2670
|
while (true);
|
|
2646
2671
|
};
|
|
2647
2672
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2648
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2673
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().t10_1 : dispatcher;
|
|
2649
2674
|
var tmp;
|
|
2650
2675
|
if (idsProvider === VOID) {
|
|
2651
2676
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2653,86 +2678,86 @@
|
|
|
2653
2678
|
tmp = idsProvider;
|
|
2654
2679
|
}
|
|
2655
2680
|
idsProvider = tmp;
|
|
2656
|
-
this.
|
|
2657
|
-
this.
|
|
2658
|
-
this.
|
|
2659
|
-
this.
|
|
2660
|
-
this.
|
|
2661
|
-
this.
|
|
2681
|
+
this.p5q_1 = params;
|
|
2682
|
+
this.q5q_1 = randomOrgApiService;
|
|
2683
|
+
this.r5q_1 = logger;
|
|
2684
|
+
this.s5q_1 = dispatcher;
|
|
2685
|
+
this.t5q_1 = idsProvider;
|
|
2686
|
+
this.u5q_1 = Mutex();
|
|
2662
2687
|
var tmp_0 = this;
|
|
2663
2688
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2664
|
-
tmp_0.
|
|
2689
|
+
tmp_0.v5q_1 = LinkedHashMap_init_$Create$();
|
|
2665
2690
|
var tmp_1 = this;
|
|
2666
2691
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2667
|
-
tmp_1.
|
|
2668
|
-
this.
|
|
2669
|
-
this.
|
|
2692
|
+
tmp_1.w5q_1 = LinkedHashMap_init_$Create$();
|
|
2693
|
+
this.x5q_1 = null;
|
|
2694
|
+
this.y5q_1 = 0;
|
|
2670
2695
|
}
|
|
2671
|
-
protoOf(RandomPoolProviderImpl).
|
|
2672
|
-
var tmp = withContext(this.
|
|
2696
|
+
protoOf(RandomPoolProviderImpl).c5q = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2697
|
+
var tmp = withContext(this.s5q_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2673
2698
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2674
2699
|
return tmp;
|
|
2675
2700
|
return tmp;
|
|
2676
2701
|
};
|
|
2677
|
-
protoOf(RandomPoolProviderImpl).
|
|
2678
|
-
return this.
|
|
2702
|
+
protoOf(RandomPoolProviderImpl).a5u = function (gameId) {
|
|
2703
|
+
return this.w5q_1.k2(gameId);
|
|
2679
2704
|
};
|
|
2680
2705
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2681
|
-
return this.
|
|
2706
|
+
return this.a5u(gameId);
|
|
2682
2707
|
};
|
|
2683
|
-
protoOf(RandomPoolProviderImpl).
|
|
2684
|
-
return this.
|
|
2708
|
+
protoOf(RandomPoolProviderImpl).b5u = function (id) {
|
|
2709
|
+
return this.v5q_1.k2(id);
|
|
2685
2710
|
};
|
|
2686
2711
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2687
|
-
return this.
|
|
2712
|
+
return this.b5u(id);
|
|
2688
2713
|
};
|
|
2689
|
-
protoOf(RandomPoolProviderImpl).
|
|
2690
|
-
return this.
|
|
2714
|
+
protoOf(RandomPoolProviderImpl).c5u = function () {
|
|
2715
|
+
return this.v5q_1.m();
|
|
2691
2716
|
};
|
|
2692
2717
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2693
|
-
return this.
|
|
2718
|
+
return this.c5u();
|
|
2694
2719
|
};
|
|
2695
|
-
protoOf(RandomPoolProviderImpl).
|
|
2696
|
-
var gameCardDecksRecord = this.
|
|
2720
|
+
protoOf(RandomPoolProviderImpl).e5q = function (gameId) {
|
|
2721
|
+
var gameCardDecksRecord = this.w5q_1.k2(gameId);
|
|
2697
2722
|
if (!(gameCardDecksRecord == null)) {
|
|
2698
|
-
var randomPoolValue = this.
|
|
2723
|
+
var randomPoolValue = this.v5q_1.k2(gameCardDecksRecord.poolId);
|
|
2699
2724
|
if (!(randomPoolValue == null)) {
|
|
2700
2725
|
// Inline function 'kotlin.apply' call
|
|
2701
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2726
|
+
var this_0 = toMutableMap(randomPoolValue.g5q_1);
|
|
2702
2727
|
// Inline function 'kotlin.contracts.contract' call
|
|
2703
2728
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2704
|
-
this_0.
|
|
2705
|
-
var newPoolValue = randomPoolValue.
|
|
2706
|
-
if (newPoolValue.
|
|
2707
|
-
this.
|
|
2729
|
+
this_0.o2(gameId);
|
|
2730
|
+
var newPoolValue = randomPoolValue.l5q(VOID, toMap(this_0));
|
|
2731
|
+
if (newPoolValue.g5q_1.p()) {
|
|
2732
|
+
this.v5q_1.o2(gameCardDecksRecord.poolId);
|
|
2708
2733
|
} else {
|
|
2709
2734
|
// Inline function 'kotlin.collections.set' call
|
|
2710
|
-
var this_1 = this.
|
|
2735
|
+
var this_1 = this.v5q_1;
|
|
2711
2736
|
var key = gameCardDecksRecord.poolId;
|
|
2712
|
-
this_1.
|
|
2737
|
+
this_1.n2(key, newPoolValue);
|
|
2713
2738
|
}
|
|
2714
2739
|
}
|
|
2715
2740
|
}
|
|
2716
|
-
this.
|
|
2741
|
+
this.w5q_1.o2(gameId);
|
|
2717
2742
|
};
|
|
2718
2743
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2719
2744
|
return function ($this$defaultRequest) {
|
|
2720
2745
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2721
|
-
$this$defaultRequest.
|
|
2746
|
+
$this$defaultRequest.v33($url);
|
|
2722
2747
|
return Unit_instance;
|
|
2723
2748
|
};
|
|
2724
2749
|
}
|
|
2725
2750
|
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2726
|
-
this.
|
|
2751
|
+
this.d5u_1 = $externalLogger;
|
|
2727
2752
|
}
|
|
2728
|
-
protoOf(ApiCommonConfigs$setupLogging$1$1).
|
|
2729
|
-
this.
|
|
2753
|
+
protoOf(ApiCommonConfigs$setupLogging$1$1).f3u = function (message) {
|
|
2754
|
+
this.d5u_1(message);
|
|
2730
2755
|
};
|
|
2731
2756
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2732
2757
|
return function ($this$install) {
|
|
2733
|
-
$this$install.
|
|
2734
|
-
$this$install.
|
|
2735
|
-
$this$install.
|
|
2758
|
+
$this$install.v3v(get_DEFAULT(Companion_instance_0));
|
|
2759
|
+
$this$install.u3v_1 = $config.g5u_1;
|
|
2760
|
+
$this$install.v3v(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2736
2761
|
return Unit_instance;
|
|
2737
2762
|
};
|
|
2738
2763
|
}
|
|
@@ -2744,32 +2769,32 @@
|
|
|
2744
2769
|
}
|
|
2745
2770
|
function ApiCommonConfigs() {
|
|
2746
2771
|
}
|
|
2747
|
-
protoOf(ApiCommonConfigs).
|
|
2748
|
-
_this__u8e3s4.
|
|
2749
|
-
this.
|
|
2750
|
-
this.
|
|
2751
|
-
this.
|
|
2772
|
+
protoOf(ApiCommonConfigs).i5u = function (_this__u8e3s4, config, externalLogger) {
|
|
2773
|
+
_this__u8e3s4.h2v_1 = true;
|
|
2774
|
+
this.j5u(_this__u8e3s4, config.e5u_1);
|
|
2775
|
+
this.k5u(_this__u8e3s4, config.h5u_1);
|
|
2776
|
+
this.l5u(_this__u8e3s4, config, externalLogger);
|
|
2752
2777
|
};
|
|
2753
|
-
protoOf(ApiCommonConfigs).
|
|
2778
|
+
protoOf(ApiCommonConfigs).j5u = function (_this__u8e3s4, url) {
|
|
2754
2779
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2755
2780
|
};
|
|
2756
|
-
protoOf(ApiCommonConfigs).
|
|
2781
|
+
protoOf(ApiCommonConfigs).l5u = function (_this__u8e3s4, config, externalLogger) {
|
|
2757
2782
|
var tmp = Companion_getInstance_1();
|
|
2758
|
-
_this__u8e3s4.
|
|
2783
|
+
_this__u8e3s4.c2w(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2759
2784
|
};
|
|
2760
|
-
protoOf(ApiCommonConfigs).
|
|
2785
|
+
protoOf(ApiCommonConfigs).k5u = function (_this__u8e3s4, json) {
|
|
2761
2786
|
var tmp = Plugin_getInstance();
|
|
2762
|
-
_this__u8e3s4.
|
|
2787
|
+
_this__u8e3s4.c2w(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2763
2788
|
};
|
|
2764
2789
|
var ApiCommonConfigs_instance;
|
|
2765
2790
|
function ApiCommonConfigs_getInstance() {
|
|
2766
2791
|
return ApiCommonConfigs_instance;
|
|
2767
2792
|
}
|
|
2768
2793
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2769
|
-
$this$Json.
|
|
2770
|
-
$this$Json.
|
|
2771
|
-
$this$Json.
|
|
2772
|
-
$this$Json.
|
|
2794
|
+
$this$Json.m4u_1 = true;
|
|
2795
|
+
$this$Json.l4u_1 = true;
|
|
2796
|
+
$this$Json.k4u_1 = true;
|
|
2797
|
+
$this$Json.j4u_1 = false;
|
|
2773
2798
|
return Unit_instance;
|
|
2774
2799
|
}
|
|
2775
2800
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2782,19 +2807,19 @@
|
|
|
2782
2807
|
tmp = json;
|
|
2783
2808
|
}
|
|
2784
2809
|
json = tmp;
|
|
2785
|
-
this.
|
|
2786
|
-
this.
|
|
2787
|
-
this.
|
|
2788
|
-
this.
|
|
2810
|
+
this.e5u_1 = baseUrl;
|
|
2811
|
+
this.f5u_1 = timeoutMillis;
|
|
2812
|
+
this.g5u_1 = loggingLevel;
|
|
2813
|
+
this.h5u_1 = json;
|
|
2789
2814
|
}
|
|
2790
2815
|
protoOf(HttpParams).toString = function () {
|
|
2791
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2816
|
+
return 'HttpParams(baseUrl=' + this.e5u_1 + ', timeoutMillis=' + this.f5u_1.toString() + ', loggingLevel=' + this.g5u_1.toString() + ', json=' + toString(this.h5u_1) + ')';
|
|
2792
2817
|
};
|
|
2793
2818
|
protoOf(HttpParams).hashCode = function () {
|
|
2794
|
-
var result = getStringHashCode(this.
|
|
2795
|
-
result = imul(result, 31) + this.
|
|
2796
|
-
result = imul(result, 31) + this.
|
|
2797
|
-
result = imul(result, 31) + hashCode(this.
|
|
2819
|
+
var result = getStringHashCode(this.e5u_1);
|
|
2820
|
+
result = imul(result, 31) + this.f5u_1.hashCode() | 0;
|
|
2821
|
+
result = imul(result, 31) + this.g5u_1.hashCode() | 0;
|
|
2822
|
+
result = imul(result, 31) + hashCode(this.h5u_1) | 0;
|
|
2798
2823
|
return result;
|
|
2799
2824
|
};
|
|
2800
2825
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2803,13 +2828,13 @@
|
|
|
2803
2828
|
if (!(other instanceof HttpParams))
|
|
2804
2829
|
return false;
|
|
2805
2830
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2806
|
-
if (!(this.
|
|
2831
|
+
if (!(this.e5u_1 === tmp0_other_with_cast.e5u_1))
|
|
2807
2832
|
return false;
|
|
2808
|
-
if (!this.
|
|
2833
|
+
if (!this.f5u_1.equals(tmp0_other_with_cast.f5u_1))
|
|
2809
2834
|
return false;
|
|
2810
|
-
if (!this.
|
|
2835
|
+
if (!this.g5u_1.equals(tmp0_other_with_cast.g5u_1))
|
|
2811
2836
|
return false;
|
|
2812
|
-
if (!equals(this.
|
|
2837
|
+
if (!equals(this.h5u_1, tmp0_other_with_cast.h5u_1))
|
|
2813
2838
|
return false;
|
|
2814
2839
|
return true;
|
|
2815
2840
|
};
|
|
@@ -2835,12 +2860,12 @@
|
|
|
2835
2860
|
}
|
|
2836
2861
|
function nextBytesCopyTo($this, bytes) {
|
|
2837
2862
|
try {
|
|
2838
|
-
$this.
|
|
2863
|
+
$this.q5u_1.d5l(bytes);
|
|
2839
2864
|
} catch ($p) {
|
|
2840
2865
|
if ($p instanceof SecRandomCopyException) {
|
|
2841
2866
|
var error = $p;
|
|
2842
|
-
$this.
|
|
2843
|
-
$this.
|
|
2867
|
+
$this.p5u_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2868
|
+
$this.r5u_1.xg(bytes);
|
|
2844
2869
|
return Unit_instance;
|
|
2845
2870
|
} else {
|
|
2846
2871
|
throw $p;
|
|
@@ -2866,11 +2891,11 @@
|
|
|
2866
2891
|
}
|
|
2867
2892
|
function SecureRandom_0(logger) {
|
|
2868
2893
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2869
|
-
this.
|
|
2870
|
-
this.
|
|
2871
|
-
this.
|
|
2894
|
+
this.p5u_1 = logger;
|
|
2895
|
+
this.q5u_1 = new SecureRandom();
|
|
2896
|
+
this.r5u_1 = Default_getInstance();
|
|
2872
2897
|
}
|
|
2873
|
-
protoOf(SecureRandom_0).
|
|
2898
|
+
protoOf(SecureRandom_0).vg = function (from, until) {
|
|
2874
2899
|
checkRangeBounds(this, from, until);
|
|
2875
2900
|
var n = until - from | 0;
|
|
2876
2901
|
if (n > 0 || n === -2147483648) {
|
|
@@ -2897,7 +2922,7 @@
|
|
|
2897
2922
|
}
|
|
2898
2923
|
}
|
|
2899
2924
|
};
|
|
2900
|
-
protoOf(SecureRandom_0).
|
|
2925
|
+
protoOf(SecureRandom_0).n5u = function () {
|
|
2901
2926
|
return !(nextBits(this, 1) === 0);
|
|
2902
2927
|
};
|
|
2903
2928
|
function overhand(_this__u8e3s4, iterations, random) {
|
|
@@ -2918,9 +2943,9 @@
|
|
|
2918
2943
|
while (pile.m() > 0) {
|
|
2919
2944
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2920
2945
|
var a = pile.m();
|
|
2921
|
-
var b = 1 + random.
|
|
2946
|
+
var b = 1 + random.m5u(VOID, twentypc) | 0;
|
|
2922
2947
|
var cards = Math.min(a, b);
|
|
2923
|
-
pile2.
|
|
2948
|
+
pile2.e2(0, take(pile, cards));
|
|
2924
2949
|
// Inline function 'kotlin.repeat' call
|
|
2925
2950
|
// Inline function 'kotlin.contracts.contract' call
|
|
2926
2951
|
var inductionVariable_0 = 0;
|
|
@@ -2929,12 +2954,12 @@
|
|
|
2929
2954
|
var index_0 = inductionVariable_0;
|
|
2930
2955
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2931
2956
|
// Inline function 'games.raspberry.card_game.random.utils.random.overhand.<anonymous>.<anonymous>' call
|
|
2932
|
-
pile.
|
|
2957
|
+
pile.h2(0);
|
|
2933
2958
|
}
|
|
2934
2959
|
while (inductionVariable_0 < cards);
|
|
2935
2960
|
}
|
|
2936
2961
|
pile.n(pile2);
|
|
2937
|
-
pile2.
|
|
2962
|
+
pile2.d2();
|
|
2938
2963
|
}
|
|
2939
2964
|
while (inductionVariable < iterations);
|
|
2940
2965
|
return pile;
|
|
@@ -2953,18 +2978,18 @@
|
|
|
2953
2978
|
// Inline function 'games.raspberry.card_game.random.utils.random.riffle.<anonymous>' call
|
|
2954
2979
|
var mid = deck.m() / 2 | 0;
|
|
2955
2980
|
var tenpc = mid / 10 | 0;
|
|
2956
|
-
var cut = (mid - tenpc | 0) + random.
|
|
2981
|
+
var cut = (mid - tenpc | 0) + random.m5u(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
2957
2982
|
var deck1 = toMutableList(take(pile, cut));
|
|
2958
2983
|
var deck2 = toMutableList(drop(pile, cut));
|
|
2959
|
-
pile.
|
|
2960
|
-
var fromTop = random.
|
|
2984
|
+
pile.d2();
|
|
2985
|
+
var fromTop = random.n5u();
|
|
2961
2986
|
while (deck1.m() > 0 && deck2.m() > 0) {
|
|
2962
2987
|
if (fromTop) {
|
|
2963
|
-
pile.e(deck1.
|
|
2964
|
-
pile.e(deck2.
|
|
2988
|
+
pile.e(deck1.h2(0));
|
|
2989
|
+
pile.e(deck2.h2(0));
|
|
2965
2990
|
} else {
|
|
2966
|
-
pile.e(deck1.
|
|
2967
|
-
pile.e(deck2.
|
|
2991
|
+
pile.e(deck1.h2(get_lastIndex(deck1)));
|
|
2992
|
+
pile.e(deck2.h2(get_lastIndex(deck2)));
|
|
2968
2993
|
}
|
|
2969
2994
|
}
|
|
2970
2995
|
if (deck1.m() > 0) {
|
|
@@ -2979,22 +3004,22 @@
|
|
|
2979
3004
|
}
|
|
2980
3005
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2981
3006
|
return function ($this$install) {
|
|
2982
|
-
$this$install.
|
|
2983
|
-
$this$install.
|
|
3007
|
+
$this$install.t3f($config.f5u_1);
|
|
3008
|
+
$this$install.r3f($config.f5u_1);
|
|
2984
3009
|
return Unit_instance;
|
|
2985
3010
|
};
|
|
2986
3011
|
}
|
|
2987
3012
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
2988
3013
|
return function ($this$HttpClient) {
|
|
2989
3014
|
var tmp = Plugin_getInstance_0();
|
|
2990
|
-
$this$HttpClient.
|
|
2991
|
-
ApiCommonConfigs_instance.
|
|
3015
|
+
$this$HttpClient.c2w(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3016
|
+
ApiCommonConfigs_instance.i5u($this$HttpClient, $config, $externalLogger);
|
|
2992
3017
|
return Unit_instance;
|
|
2993
3018
|
};
|
|
2994
3019
|
}
|
|
2995
3020
|
function HttpFactory() {
|
|
2996
3021
|
}
|
|
2997
|
-
protoOf(HttpFactory).
|
|
3022
|
+
protoOf(HttpFactory).s5u = function (config, externalLogger) {
|
|
2998
3023
|
var tmp = Js_instance;
|
|
2999
3024
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
3000
3025
|
};
|
|
@@ -3003,15 +3028,15 @@
|
|
|
3003
3028
|
return HttpFactory_instance;
|
|
3004
3029
|
}
|
|
3005
3030
|
//region block: post-declaration
|
|
3006
|
-
protoOf($serializer).
|
|
3007
|
-
protoOf($serializer_0).
|
|
3008
|
-
protoOf($serializer_2).
|
|
3009
|
-
protoOf($serializer_3).
|
|
3010
|
-
protoOf($serializer_5).
|
|
3011
|
-
protoOf($serializer_6).
|
|
3012
|
-
protoOf(RandomPoolProviderImpl).
|
|
3013
|
-
protoOf(SecureRandom_0).
|
|
3014
|
-
protoOf(SecureRandom_0).
|
|
3031
|
+
protoOf($serializer).k4f = typeParametersSerializers;
|
|
3032
|
+
protoOf($serializer_0).k4f = typeParametersSerializers;
|
|
3033
|
+
protoOf($serializer_2).k4f = typeParametersSerializers;
|
|
3034
|
+
protoOf($serializer_3).k4f = typeParametersSerializers;
|
|
3035
|
+
protoOf($serializer_5).k4f = typeParametersSerializers;
|
|
3036
|
+
protoOf($serializer_6).k4f = typeParametersSerializers;
|
|
3037
|
+
protoOf(RandomPoolProviderImpl).d5q = getCardDeck$default;
|
|
3038
|
+
protoOf(SecureRandom_0).m5u = nextInt$default;
|
|
3039
|
+
protoOf(SecureRandom_0).o5u = shuffle;
|
|
3015
3040
|
//endregion
|
|
3016
3041
|
//region block: init
|
|
3017
3042
|
Companion_instance_1 = new Companion();
|