game_client_logic_deb 1.8.342 → 1.8.346
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 +105 -117
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +935 -945
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +4622 -3643
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1828 -1855
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18031 -18544
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +897 -163
- package/Logic_Debertz-game_client.js +5656 -5286
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4830 -4534
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -26
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3162 -3345
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +459 -523
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2372 -2414
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1963 -1977
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +194 -194
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +1902 -1937
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-js.js.map +1 -1
- package/ktor-ktor-client-logging.js +393 -399
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +12 -15
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +964 -1154
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1715 -1825
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +238 -243
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +100 -96
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +655 -689
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websocket-serialization.js.map +1 -1
- package/ktor-ktor-websockets.js +71 -77
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -2
- package/raspberry-cardgame-lib-core.js +331 -365
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +148 -119
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +922 -989
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +36 -35
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +35 -39
- package/uuid.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +0 -15
- package/kotlin-kotlinx-atomicfu-runtime.js.map +0 -1
|
@@ -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', './
|
|
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-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('./
|
|
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-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,9 +22,6 @@
|
|
|
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
|
-
}
|
|
28
25
|
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
29
26
|
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'.");
|
|
30
27
|
}
|
|
@@ -46,56 +43,56 @@
|
|
|
46
43
|
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
47
44
|
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
45
|
}
|
|
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['
|
|
46
|
+
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-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
47
|
}
|
|
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,
|
|
48
|
+
}(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, 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
49
|
'use strict';
|
|
53
50
|
//region block: imports
|
|
54
51
|
var imul = Math.imul;
|
|
55
52
|
var clz32 = Math.clz32;
|
|
56
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
58
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
53
|
+
var protoOf = kotlin_kotlin.$_$.oc;
|
|
54
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ob;
|
|
55
|
+
var RuntimeException = kotlin_kotlin.$_$.ng;
|
|
59
56
|
var VOID = kotlin_kotlin.$_$.f;
|
|
60
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
73
|
-
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
74
|
-
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
75
|
-
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
76
|
-
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
77
|
-
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
78
|
-
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
79
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
80
|
-
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
81
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
82
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
83
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
84
|
-
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
85
|
-
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
86
|
-
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
87
|
-
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
88
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
89
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
90
|
-
var getValue = kotlin_kotlin.$_$.
|
|
57
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.d2;
|
|
58
|
+
var captureStack = kotlin_kotlin.$_$.xa;
|
|
59
|
+
var initMetadataForClass = kotlin_kotlin.$_$.nb;
|
|
60
|
+
var getStringHashCode = kotlin_kotlin.$_$.lb;
|
|
61
|
+
var THROW_CCE = kotlin_kotlin.$_$.og;
|
|
62
|
+
var toString = kotlin_kotlin.$_$.tc;
|
|
63
|
+
var hashCode = kotlin_kotlin.$_$.mb;
|
|
64
|
+
var equals = kotlin_kotlin.$_$.gb;
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.h8;
|
|
66
|
+
var plus = kotlin_kotlin.$_$.s8;
|
|
67
|
+
var emptyList = kotlin_kotlin.$_$.f7;
|
|
68
|
+
var defineProp = kotlin_kotlin.$_$.fb;
|
|
69
|
+
var toLong = kotlin_kotlin.$_$.rc;
|
|
70
|
+
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
71
|
+
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
72
|
+
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
73
|
+
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
|
|
74
|
+
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
75
|
+
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
76
|
+
var initMetadataForObject = kotlin_kotlin.$_$.sb;
|
|
77
|
+
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
78
|
+
var Unit_instance = kotlin_kotlin.$_$.h5;
|
|
79
|
+
var objectCreate = kotlin_kotlin.$_$.nc;
|
|
80
|
+
var toString_0 = kotlin_kotlin.$_$.sh;
|
|
81
|
+
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
82
|
+
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
83
|
+
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
84
|
+
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
85
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.ib;
|
|
86
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.qb;
|
|
87
|
+
var getValue = kotlin_kotlin.$_$.s7;
|
|
91
88
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
92
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
89
|
+
var CoroutineImpl = kotlin_kotlin.$_$.pa;
|
|
93
90
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
94
91
|
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
95
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
92
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
96
93
|
var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
97
94
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
98
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
95
|
+
var arrayOf = kotlin_kotlin.$_$.ch;
|
|
99
96
|
var createKType = kotlin_kotlin.$_$.b;
|
|
100
97
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
101
98
|
var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
@@ -103,35 +100,33 @@
|
|
|
103
100
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
104
101
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
105
102
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
106
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
103
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.aa;
|
|
107
104
|
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.$_$.
|
|
105
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.pb;
|
|
106
|
+
var KtMap = kotlin_kotlin.$_$.s5;
|
|
107
|
+
var isInterface = kotlin_kotlin.$_$.bc;
|
|
108
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.x4;
|
|
109
|
+
var Long = kotlin_kotlin.$_$.ig;
|
|
113
110
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
114
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
-
var
|
|
121
|
-
var
|
|
122
|
-
var
|
|
123
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
111
|
+
var toDuration = kotlin_kotlin.$_$.uf;
|
|
112
|
+
var Duration = kotlin_kotlin.$_$.rf;
|
|
113
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.m2;
|
|
114
|
+
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.i2;
|
|
115
|
+
var emptyMap = kotlin_kotlin.$_$.g7;
|
|
116
|
+
var toMutableMap = kotlin_kotlin.$_$.q9;
|
|
117
|
+
var toMap = kotlin_kotlin.$_$.n9;
|
|
118
|
+
var get_lastIndex = kotlin_kotlin.$_$.a8;
|
|
119
|
+
var throwLinkageError = kotlin_kotlin.$_$.pc;
|
|
124
120
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
125
121
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
126
|
-
var Result = kotlin_kotlin.$_$.
|
|
122
|
+
var Result = kotlin_kotlin.$_$.mg;
|
|
127
123
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
128
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
129
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
130
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
131
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
132
|
-
var
|
|
133
|
-
var
|
|
134
|
-
var firstOrNull = kotlin_kotlin.$_$.t7;
|
|
124
|
+
var Companion_instance = kotlin_kotlin.$_$.c5;
|
|
125
|
+
var createFailure = kotlin_kotlin.$_$.eh;
|
|
126
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.v2;
|
|
127
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.rb;
|
|
128
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
129
|
+
var firstOrNull = kotlin_kotlin.$_$.k7;
|
|
135
130
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
136
131
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
137
132
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
@@ -144,14 +139,15 @@
|
|
|
144
139
|
var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
145
140
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
146
141
|
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
142
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
147
143
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
148
144
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
149
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
150
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
151
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
152
|
-
var take = kotlin_kotlin.$_$.
|
|
153
|
-
var drop = kotlin_kotlin.$_$.
|
|
154
|
-
var reverse = kotlin_kotlin.$_$.
|
|
145
|
+
var Default_getInstance = kotlin_kotlin.$_$.t4;
|
|
146
|
+
var toMutableList = kotlin_kotlin.$_$.p9;
|
|
147
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
148
|
+
var take = kotlin_kotlin.$_$.h9;
|
|
149
|
+
var drop = kotlin_kotlin.$_$.e7;
|
|
150
|
+
var reverse = kotlin_kotlin.$_$.x8;
|
|
155
151
|
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
156
152
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
157
153
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
@@ -193,8 +189,8 @@
|
|
|
193
189
|
initMetadataForClass(IntegerSequencesDataDto, 'IntegerSequencesDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_4});
|
|
194
190
|
initMetadataForInterface(RandomOrgApiService, 'RandomOrgApiService', VOID, VOID, VOID, [5, 6]);
|
|
195
191
|
initMetadataForCompanion(Companion_8);
|
|
196
|
-
initMetadataForCoroutine($getRandomCardDecksCOROUTINE
|
|
197
|
-
initMetadataForCoroutine($throwIfErrorCOROUTINE
|
|
192
|
+
initMetadataForCoroutine($getRandomCardDecksCOROUTINE$, CoroutineImpl);
|
|
193
|
+
initMetadataForCoroutine($throwIfErrorCOROUTINE$, CoroutineImpl);
|
|
198
194
|
initMetadataForClass(RandomOrgApiServiceImpl, 'RandomOrgApiServiceImpl', VOID, VOID, [RandomOrgApiService], [5, 6, 2]);
|
|
199
195
|
initMetadataForClass(PoolParams, 'PoolParams', PoolParams);
|
|
200
196
|
function getCardDeck$default(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion, $super) {
|
|
@@ -203,22 +199,22 @@
|
|
|
203
199
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
204
200
|
signed = signed === VOID ? false : signed;
|
|
205
201
|
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
206
|
-
return $super === VOID ? this.
|
|
202
|
+
return $super === VOID ? this.w5u(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.w5u.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
207
203
|
}
|
|
208
204
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
209
205
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
210
206
|
initMetadataForCompanion(Companion_9);
|
|
211
207
|
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda, CoroutineImpl, VOID, [1]);
|
|
212
208
|
initMetadataForLambda(RandomPoolProviderImpl$requestNewPool$slambda, CoroutineImpl, VOID, [1]);
|
|
213
|
-
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE
|
|
214
|
-
initMetadataForCoroutine($getPreparedOrRequestPoolCOROUTINE
|
|
209
|
+
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE$, CoroutineImpl);
|
|
210
|
+
initMetadataForCoroutine($getPreparedOrRequestPoolCOROUTINE$, CoroutineImpl);
|
|
215
211
|
initMetadataForClass(RandomPoolProviderImpl, 'RandomPoolProviderImpl', VOID, VOID, [RandomPoolProvider], [7, 5]);
|
|
216
|
-
initMetadataForClass(ApiCommonConfigs$setupLogging$
|
|
212
|
+
initMetadataForClass(ApiCommonConfigs$setupLogging$2$1);
|
|
217
213
|
initMetadataForObject(ApiCommonConfigs, 'ApiCommonConfigs');
|
|
218
214
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
219
215
|
function nextInt$default(from, until, $super) {
|
|
220
216
|
from = from === VOID ? 0 : from;
|
|
221
|
-
return $super === VOID ? this.
|
|
217
|
+
return $super === VOID ? this.gh(from, until) : $super.gh.call(this, from, until);
|
|
222
218
|
}
|
|
223
219
|
function shuffle(list) {
|
|
224
220
|
var inductionVariable = get_lastIndex(list);
|
|
@@ -226,8 +222,8 @@
|
|
|
226
222
|
do {
|
|
227
223
|
var i = inductionVariable;
|
|
228
224
|
inductionVariable = inductionVariable + -1 | 0;
|
|
229
|
-
var j = this.
|
|
230
|
-
list.
|
|
225
|
+
var j = this.gh(0, i + 1 | 0);
|
|
226
|
+
list.c2(j, list.c2(i, list.o(j)));
|
|
231
227
|
}
|
|
232
228
|
while (1 <= inductionVariable);
|
|
233
229
|
return list;
|
|
@@ -237,7 +233,7 @@
|
|
|
237
233
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
238
234
|
//endregion
|
|
239
235
|
function Companion() {
|
|
240
|
-
this.
|
|
236
|
+
this.t5p_1 = 100001;
|
|
241
237
|
}
|
|
242
238
|
var Companion_instance_1;
|
|
243
239
|
function Companion_getInstance_2() {
|
|
@@ -248,31 +244,31 @@
|
|
|
248
244
|
cause = cause === VOID ? null : cause;
|
|
249
245
|
RuntimeException_init_$Init$(message, cause, this);
|
|
250
246
|
captureStack(this, RandomException);
|
|
251
|
-
this.
|
|
247
|
+
this.u5p_1 = code;
|
|
252
248
|
}
|
|
253
249
|
function CardDecksRequestUserData(id, count) {
|
|
254
250
|
this.id = id;
|
|
255
251
|
this.count = count;
|
|
256
252
|
}
|
|
257
|
-
protoOf(CardDecksRequestUserData).
|
|
253
|
+
protoOf(CardDecksRequestUserData).t5n = function () {
|
|
258
254
|
return this.id;
|
|
259
255
|
};
|
|
260
|
-
protoOf(CardDecksRequestUserData).
|
|
256
|
+
protoOf(CardDecksRequestUserData).v5p = function () {
|
|
261
257
|
return this.count;
|
|
262
258
|
};
|
|
263
|
-
protoOf(CardDecksRequestUserData).
|
|
259
|
+
protoOf(CardDecksRequestUserData).gf = function () {
|
|
264
260
|
return this.id;
|
|
265
261
|
};
|
|
266
|
-
protoOf(CardDecksRequestUserData).
|
|
262
|
+
protoOf(CardDecksRequestUserData).hf = function () {
|
|
267
263
|
return this.count;
|
|
268
264
|
};
|
|
269
|
-
protoOf(CardDecksRequestUserData).
|
|
265
|
+
protoOf(CardDecksRequestUserData).w5p = function (id, count) {
|
|
270
266
|
return new CardDecksRequestUserData(id, count);
|
|
271
267
|
};
|
|
272
268
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
273
269
|
id = id === VOID ? this.id : id;
|
|
274
270
|
count = count === VOID ? this.count : count;
|
|
275
|
-
return this.
|
|
271
|
+
return $super === VOID ? this.w5p(id, count) : $super.w5p.call(this, id, count);
|
|
276
272
|
};
|
|
277
273
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
278
274
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -298,25 +294,25 @@
|
|
|
298
294
|
this.players = players;
|
|
299
295
|
this.gameId = gameId;
|
|
300
296
|
}
|
|
301
|
-
protoOf(CardDeckRequestUserData).
|
|
297
|
+
protoOf(CardDeckRequestUserData).x5p = function () {
|
|
302
298
|
return this.players;
|
|
303
299
|
};
|
|
304
|
-
protoOf(CardDeckRequestUserData).
|
|
300
|
+
protoOf(CardDeckRequestUserData).y5p = function () {
|
|
305
301
|
return this.gameId;
|
|
306
302
|
};
|
|
307
|
-
protoOf(CardDeckRequestUserData).
|
|
303
|
+
protoOf(CardDeckRequestUserData).gf = function () {
|
|
308
304
|
return this.players;
|
|
309
305
|
};
|
|
310
|
-
protoOf(CardDeckRequestUserData).
|
|
306
|
+
protoOf(CardDeckRequestUserData).hf = function () {
|
|
311
307
|
return this.gameId;
|
|
312
308
|
};
|
|
313
|
-
protoOf(CardDeckRequestUserData).
|
|
309
|
+
protoOf(CardDeckRequestUserData).z5p = function (players, gameId) {
|
|
314
310
|
return new CardDeckRequestUserData(players, gameId);
|
|
315
311
|
};
|
|
316
312
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
317
313
|
players = players === VOID ? this.players : players;
|
|
318
314
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
319
|
-
return this.
|
|
315
|
+
return $super === VOID ? this.z5p(players, gameId) : $super.z5p.call(this, players, gameId);
|
|
320
316
|
};
|
|
321
317
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
322
318
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -342,25 +338,25 @@
|
|
|
342
338
|
this.id = id;
|
|
343
339
|
this.name = name;
|
|
344
340
|
}
|
|
345
|
-
protoOf(UserInfoData).
|
|
341
|
+
protoOf(UserInfoData).t5n = function () {
|
|
346
342
|
return this.id;
|
|
347
343
|
};
|
|
348
|
-
protoOf(UserInfoData).
|
|
344
|
+
protoOf(UserInfoData).p2 = function () {
|
|
349
345
|
return this.name;
|
|
350
346
|
};
|
|
351
|
-
protoOf(UserInfoData).
|
|
347
|
+
protoOf(UserInfoData).gf = function () {
|
|
352
348
|
return this.id;
|
|
353
349
|
};
|
|
354
|
-
protoOf(UserInfoData).
|
|
350
|
+
protoOf(UserInfoData).hf = function () {
|
|
355
351
|
return this.name;
|
|
356
352
|
};
|
|
357
|
-
protoOf(UserInfoData).
|
|
353
|
+
protoOf(UserInfoData).a5q = function (id, name) {
|
|
358
354
|
return new UserInfoData(id, name);
|
|
359
355
|
};
|
|
360
356
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
361
357
|
id = id === VOID ? this.id : id;
|
|
362
358
|
name = name === VOID ? this.name : name;
|
|
363
|
-
return this.
|
|
359
|
+
return $super === VOID ? this.a5q(id, name) : $super.a5q.call(this, id, name);
|
|
364
360
|
};
|
|
365
361
|
protoOf(UserInfoData).toString = function () {
|
|
366
362
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -383,19 +379,19 @@
|
|
|
383
379
|
return true;
|
|
384
380
|
};
|
|
385
381
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
382
|
+
this.b5q_1 = cardDecks;
|
|
383
|
+
this.c5q_1 = responseText;
|
|
384
|
+
this.d5q_1 = id;
|
|
385
|
+
this.e5q_1 = signature;
|
|
390
386
|
}
|
|
391
387
|
protoOf(CardDeckResult).toString = function () {
|
|
392
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
388
|
+
return 'CardDeckResult(cardDecks=' + toString(this.b5q_1) + ', responseText=' + this.c5q_1 + ', id=' + this.d5q_1 + ', signature=' + this.e5q_1 + ')';
|
|
393
389
|
};
|
|
394
390
|
protoOf(CardDeckResult).hashCode = function () {
|
|
395
|
-
var result = hashCode(this.
|
|
396
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
397
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
398
|
-
result = imul(result, 31) + (this.
|
|
391
|
+
var result = hashCode(this.b5q_1);
|
|
392
|
+
result = imul(result, 31) + getStringHashCode(this.c5q_1) | 0;
|
|
393
|
+
result = imul(result, 31) + getStringHashCode(this.d5q_1) | 0;
|
|
394
|
+
result = imul(result, 31) + (this.e5q_1 == null ? 0 : getStringHashCode(this.e5q_1)) | 0;
|
|
399
395
|
return result;
|
|
400
396
|
};
|
|
401
397
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -404,13 +400,13 @@
|
|
|
404
400
|
if (!(other instanceof CardDeckResult))
|
|
405
401
|
return false;
|
|
406
402
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
407
|
-
if (!equals(this.
|
|
403
|
+
if (!equals(this.b5q_1, tmp0_other_with_cast.b5q_1))
|
|
408
404
|
return false;
|
|
409
|
-
if (!(this.
|
|
405
|
+
if (!(this.c5q_1 === tmp0_other_with_cast.c5q_1))
|
|
410
406
|
return false;
|
|
411
|
-
if (!(this.
|
|
407
|
+
if (!(this.d5q_1 === tmp0_other_with_cast.d5q_1))
|
|
412
408
|
return false;
|
|
413
|
-
if (!(this.
|
|
409
|
+
if (!(this.e5q_1 == tmp0_other_with_cast.e5q_1))
|
|
414
410
|
return false;
|
|
415
411
|
return true;
|
|
416
412
|
};
|
|
@@ -433,31 +429,31 @@
|
|
|
433
429
|
this.userData = userData;
|
|
434
430
|
this.rounds = rounds;
|
|
435
431
|
}
|
|
436
|
-
protoOf(GameCardDecksRecord).
|
|
432
|
+
protoOf(GameCardDecksRecord).f5q = function () {
|
|
437
433
|
return this.poolId;
|
|
438
434
|
};
|
|
439
|
-
protoOf(GameCardDecksRecord).
|
|
435
|
+
protoOf(GameCardDecksRecord).g5q = function () {
|
|
440
436
|
return this.signature;
|
|
441
437
|
};
|
|
442
|
-
protoOf(GameCardDecksRecord).
|
|
438
|
+
protoOf(GameCardDecksRecord).h5q = function () {
|
|
443
439
|
return this.userData;
|
|
444
440
|
};
|
|
445
|
-
protoOf(GameCardDecksRecord).
|
|
441
|
+
protoOf(GameCardDecksRecord).i5q = function () {
|
|
446
442
|
return this.rounds;
|
|
447
443
|
};
|
|
448
|
-
protoOf(GameCardDecksRecord).
|
|
444
|
+
protoOf(GameCardDecksRecord).gf = function () {
|
|
449
445
|
return this.poolId;
|
|
450
446
|
};
|
|
451
|
-
protoOf(GameCardDecksRecord).
|
|
447
|
+
protoOf(GameCardDecksRecord).hf = function () {
|
|
452
448
|
return this.signature;
|
|
453
449
|
};
|
|
454
|
-
protoOf(GameCardDecksRecord).
|
|
450
|
+
protoOf(GameCardDecksRecord).gm = function () {
|
|
455
451
|
return this.userData;
|
|
456
452
|
};
|
|
457
|
-
protoOf(GameCardDecksRecord).
|
|
453
|
+
protoOf(GameCardDecksRecord).j5q = function () {
|
|
458
454
|
return this.rounds;
|
|
459
455
|
};
|
|
460
|
-
protoOf(GameCardDecksRecord).
|
|
456
|
+
protoOf(GameCardDecksRecord).k5q = function (poolId, signature, userData, rounds) {
|
|
461
457
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
462
458
|
};
|
|
463
459
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -465,7 +461,7 @@
|
|
|
465
461
|
signature = signature === VOID ? this.signature : signature;
|
|
466
462
|
userData = userData === VOID ? this.userData : userData;
|
|
467
463
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
468
|
-
return this.
|
|
464
|
+
return $super === VOID ? this.k5q(poolId, signature, userData, rounds) : $super.k5q.call(this, poolId, signature, userData, rounds);
|
|
469
465
|
};
|
|
470
466
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
471
467
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -497,25 +493,25 @@
|
|
|
497
493
|
this.cardDeckIndex = cardDeckIndex;
|
|
498
494
|
this.cards = cards;
|
|
499
495
|
}
|
|
500
|
-
protoOf(GameCardDeckData).
|
|
496
|
+
protoOf(GameCardDeckData).l5q = function () {
|
|
501
497
|
return this.cardDeckIndex;
|
|
502
498
|
};
|
|
503
|
-
protoOf(GameCardDeckData).
|
|
499
|
+
protoOf(GameCardDeckData).m5q = function () {
|
|
504
500
|
return this.cards;
|
|
505
501
|
};
|
|
506
|
-
protoOf(GameCardDeckData).
|
|
502
|
+
protoOf(GameCardDeckData).gf = function () {
|
|
507
503
|
return this.cardDeckIndex;
|
|
508
504
|
};
|
|
509
|
-
protoOf(GameCardDeckData).
|
|
505
|
+
protoOf(GameCardDeckData).hf = function () {
|
|
510
506
|
return this.cards;
|
|
511
507
|
};
|
|
512
|
-
protoOf(GameCardDeckData).
|
|
508
|
+
protoOf(GameCardDeckData).n5q = function (cardDeckIndex, cards) {
|
|
513
509
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
514
510
|
};
|
|
515
511
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
516
512
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
517
513
|
cards = cards === VOID ? this.cards : cards;
|
|
518
|
-
return this.
|
|
514
|
+
return $super === VOID ? this.n5q(cardDeckIndex, cards) : $super.n5q.call(this, cardDeckIndex, cards);
|
|
519
515
|
};
|
|
520
516
|
protoOf(GameCardDeckData).toString = function () {
|
|
521
517
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -542,25 +538,25 @@
|
|
|
542
538
|
this.baseUrl = baseUrl;
|
|
543
539
|
this.timeoutMillis = timeoutMillis;
|
|
544
540
|
}
|
|
545
|
-
protoOf(HttpConfig).
|
|
541
|
+
protoOf(HttpConfig).o5q = function () {
|
|
546
542
|
return this.baseUrl;
|
|
547
543
|
};
|
|
548
|
-
protoOf(HttpConfig).
|
|
544
|
+
protoOf(HttpConfig).p5q = function () {
|
|
549
545
|
return this.timeoutMillis;
|
|
550
546
|
};
|
|
551
|
-
protoOf(HttpConfig).
|
|
547
|
+
protoOf(HttpConfig).gf = function () {
|
|
552
548
|
return this.baseUrl;
|
|
553
549
|
};
|
|
554
|
-
protoOf(HttpConfig).
|
|
550
|
+
protoOf(HttpConfig).hf = function () {
|
|
555
551
|
return this.timeoutMillis;
|
|
556
552
|
};
|
|
557
|
-
protoOf(HttpConfig).
|
|
553
|
+
protoOf(HttpConfig).w5p = function (baseUrl, timeoutMillis) {
|
|
558
554
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
559
555
|
};
|
|
560
556
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
561
557
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
562
558
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
563
|
-
return this.
|
|
559
|
+
return $super === VOID ? this.w5p(baseUrl, timeoutMillis) : $super.w5p.call(this, baseUrl, timeoutMillis);
|
|
564
560
|
};
|
|
565
561
|
protoOf(HttpConfig).toString = function () {
|
|
566
562
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -595,31 +591,31 @@
|
|
|
595
591
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
596
592
|
this.httpConfig = httpConfig;
|
|
597
593
|
}
|
|
598
|
-
protoOf(RandomOrgConfig).
|
|
594
|
+
protoOf(RandomOrgConfig).q5q = function () {
|
|
599
595
|
return this.apiKey;
|
|
600
596
|
};
|
|
601
|
-
protoOf(RandomOrgConfig).
|
|
597
|
+
protoOf(RandomOrgConfig).r5q = function () {
|
|
602
598
|
return this.poolSize;
|
|
603
599
|
};
|
|
604
|
-
protoOf(RandomOrgConfig).
|
|
600
|
+
protoOf(RandomOrgConfig).s5q = function () {
|
|
605
601
|
return this.thresholdForUsedPool;
|
|
606
602
|
};
|
|
607
|
-
protoOf(RandomOrgConfig).
|
|
603
|
+
protoOf(RandomOrgConfig).t5q = function () {
|
|
608
604
|
return this.httpConfig;
|
|
609
605
|
};
|
|
610
|
-
protoOf(RandomOrgConfig).
|
|
606
|
+
protoOf(RandomOrgConfig).gf = function () {
|
|
611
607
|
return this.apiKey;
|
|
612
608
|
};
|
|
613
|
-
protoOf(RandomOrgConfig).
|
|
609
|
+
protoOf(RandomOrgConfig).hf = function () {
|
|
614
610
|
return this.poolSize;
|
|
615
611
|
};
|
|
616
|
-
protoOf(RandomOrgConfig).
|
|
612
|
+
protoOf(RandomOrgConfig).gm = function () {
|
|
617
613
|
return this.thresholdForUsedPool;
|
|
618
614
|
};
|
|
619
|
-
protoOf(RandomOrgConfig).
|
|
615
|
+
protoOf(RandomOrgConfig).j5q = function () {
|
|
620
616
|
return this.httpConfig;
|
|
621
617
|
};
|
|
622
|
-
protoOf(RandomOrgConfig).
|
|
618
|
+
protoOf(RandomOrgConfig).u5q = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
623
619
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
624
620
|
};
|
|
625
621
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -627,7 +623,7 @@
|
|
|
627
623
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
628
624
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
629
625
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
630
|
-
return this.
|
|
626
|
+
return $super === VOID ? this.u5q(apiKey, poolSize, thresholdForUsedPool, httpConfig) : $super.u5q.call(this, apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
631
627
|
};
|
|
632
628
|
protoOf(RandomOrgConfig).toString = function () {
|
|
633
629
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -664,59 +660,59 @@
|
|
|
664
660
|
function $serializer() {
|
|
665
661
|
$serializer_instance = this;
|
|
666
662
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
667
|
-
tmp0_serialDesc.
|
|
668
|
-
tmp0_serialDesc.
|
|
669
|
-
this.
|
|
670
|
-
}
|
|
671
|
-
protoOf($serializer).
|
|
672
|
-
var tmp0_desc = this.
|
|
673
|
-
var tmp1_output = encoder.
|
|
674
|
-
tmp1_output.
|
|
675
|
-
tmp1_output.
|
|
676
|
-
tmp1_output.
|
|
677
|
-
};
|
|
678
|
-
protoOf($serializer).
|
|
679
|
-
return this.
|
|
680
|
-
};
|
|
681
|
-
protoOf($serializer).
|
|
682
|
-
var tmp0_desc = this.
|
|
663
|
+
tmp0_serialDesc.e4i('jsonrpc', false);
|
|
664
|
+
tmp0_serialDesc.e4i('error', false);
|
|
665
|
+
this.v5q_1 = tmp0_serialDesc;
|
|
666
|
+
}
|
|
667
|
+
protoOf($serializer).w5q = function (encoder, value) {
|
|
668
|
+
var tmp0_desc = this.v5q_1;
|
|
669
|
+
var tmp1_output = encoder.n4a(tmp0_desc);
|
|
670
|
+
tmp1_output.c4c(tmp0_desc, 0, value.x5q_1);
|
|
671
|
+
tmp1_output.g4c(tmp0_desc, 1, $serializer_getInstance_0(), value.y5q_1);
|
|
672
|
+
tmp1_output.o4a(tmp0_desc);
|
|
673
|
+
};
|
|
674
|
+
protoOf($serializer).b47 = function (encoder, value) {
|
|
675
|
+
return this.w5q(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
676
|
+
};
|
|
677
|
+
protoOf($serializer).c47 = function (decoder) {
|
|
678
|
+
var tmp0_desc = this.v5q_1;
|
|
683
679
|
var tmp1_flag = true;
|
|
684
680
|
var tmp2_index = 0;
|
|
685
681
|
var tmp3_bitMask0 = 0;
|
|
686
682
|
var tmp4_local0 = null;
|
|
687
683
|
var tmp5_local1 = null;
|
|
688
|
-
var tmp6_input = decoder.
|
|
689
|
-
if (tmp6_input.
|
|
690
|
-
tmp4_local0 = tmp6_input.
|
|
684
|
+
var tmp6_input = decoder.n4a(tmp0_desc);
|
|
685
|
+
if (tmp6_input.d4b()) {
|
|
686
|
+
tmp4_local0 = tmp6_input.x4a(tmp0_desc, 0);
|
|
691
687
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
692
|
-
tmp5_local1 = tmp6_input.
|
|
688
|
+
tmp5_local1 = tmp6_input.b4b(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
693
689
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
694
690
|
} else
|
|
695
691
|
while (tmp1_flag) {
|
|
696
|
-
tmp2_index = tmp6_input.
|
|
692
|
+
tmp2_index = tmp6_input.e4b(tmp0_desc);
|
|
697
693
|
switch (tmp2_index) {
|
|
698
694
|
case -1:
|
|
699
695
|
tmp1_flag = false;
|
|
700
696
|
break;
|
|
701
697
|
case 0:
|
|
702
|
-
tmp4_local0 = tmp6_input.
|
|
698
|
+
tmp4_local0 = tmp6_input.x4a(tmp0_desc, 0);
|
|
703
699
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
704
700
|
break;
|
|
705
701
|
case 1:
|
|
706
|
-
tmp5_local1 = tmp6_input.
|
|
702
|
+
tmp5_local1 = tmp6_input.b4b(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
707
703
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
708
704
|
break;
|
|
709
705
|
default:
|
|
710
706
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
711
707
|
}
|
|
712
708
|
}
|
|
713
|
-
tmp6_input.
|
|
709
|
+
tmp6_input.o4a(tmp0_desc);
|
|
714
710
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
715
711
|
};
|
|
716
|
-
protoOf($serializer).
|
|
717
|
-
return this.
|
|
712
|
+
protoOf($serializer).a47 = function () {
|
|
713
|
+
return this.v5q_1;
|
|
718
714
|
};
|
|
719
|
-
protoOf($serializer).
|
|
715
|
+
protoOf($serializer).t4i = function () {
|
|
720
716
|
// Inline function 'kotlin.arrayOf' call
|
|
721
717
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
722
718
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -730,25 +726,25 @@
|
|
|
730
726
|
}
|
|
731
727
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
732
728
|
if (!(3 === (3 & seen0))) {
|
|
733
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
729
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().v5q_1);
|
|
734
730
|
}
|
|
735
|
-
$this.
|
|
736
|
-
$this.
|
|
731
|
+
$this.x5q_1 = jsonrpc;
|
|
732
|
+
$this.y5q_1 = error;
|
|
737
733
|
return $this;
|
|
738
734
|
}
|
|
739
735
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
740
736
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
741
737
|
}
|
|
742
738
|
function ErrorResponseDto(jsonrpc, error) {
|
|
743
|
-
this.
|
|
744
|
-
this.
|
|
739
|
+
this.x5q_1 = jsonrpc;
|
|
740
|
+
this.y5q_1 = error;
|
|
745
741
|
}
|
|
746
742
|
protoOf(ErrorResponseDto).toString = function () {
|
|
747
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
743
|
+
return 'ErrorResponseDto(jsonrpc=' + this.x5q_1 + ', error=' + toString_0(this.y5q_1) + ')';
|
|
748
744
|
};
|
|
749
745
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
750
|
-
var result = getStringHashCode(this.
|
|
751
|
-
result = imul(result, 31) + (this.
|
|
746
|
+
var result = getStringHashCode(this.x5q_1);
|
|
747
|
+
result = imul(result, 31) + (this.y5q_1 == null ? 0 : this.y5q_1.hashCode()) | 0;
|
|
752
748
|
return result;
|
|
753
749
|
};
|
|
754
750
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -757,68 +753,68 @@
|
|
|
757
753
|
if (!(other instanceof ErrorResponseDto))
|
|
758
754
|
return false;
|
|
759
755
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
760
|
-
if (!(this.
|
|
756
|
+
if (!(this.x5q_1 === tmp0_other_with_cast.x5q_1))
|
|
761
757
|
return false;
|
|
762
|
-
if (!equals(this.
|
|
758
|
+
if (!equals(this.y5q_1, tmp0_other_with_cast.y5q_1))
|
|
763
759
|
return false;
|
|
764
760
|
return true;
|
|
765
761
|
};
|
|
766
762
|
function $serializer_0() {
|
|
767
763
|
$serializer_instance_0 = this;
|
|
768
764
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
769
|
-
tmp0_serialDesc.
|
|
770
|
-
tmp0_serialDesc.
|
|
771
|
-
this.
|
|
772
|
-
}
|
|
773
|
-
protoOf($serializer_0).
|
|
774
|
-
var tmp0_desc = this.
|
|
775
|
-
var tmp1_output = encoder.
|
|
776
|
-
tmp1_output.
|
|
777
|
-
tmp1_output.
|
|
778
|
-
tmp1_output.
|
|
779
|
-
};
|
|
780
|
-
protoOf($serializer_0).
|
|
781
|
-
return this.
|
|
782
|
-
};
|
|
783
|
-
protoOf($serializer_0).
|
|
784
|
-
var tmp0_desc = this.
|
|
765
|
+
tmp0_serialDesc.e4i('code', false);
|
|
766
|
+
tmp0_serialDesc.e4i('message', false);
|
|
767
|
+
this.z5q_1 = tmp0_serialDesc;
|
|
768
|
+
}
|
|
769
|
+
protoOf($serializer_0).a5r = function (encoder, value) {
|
|
770
|
+
var tmp0_desc = this.z5q_1;
|
|
771
|
+
var tmp1_output = encoder.n4a(tmp0_desc);
|
|
772
|
+
tmp1_output.g4c(tmp0_desc, 0, IntSerializer_getInstance(), value.b5r_1);
|
|
773
|
+
tmp1_output.g4c(tmp0_desc, 1, StringSerializer_getInstance(), value.c5r_1);
|
|
774
|
+
tmp1_output.o4a(tmp0_desc);
|
|
775
|
+
};
|
|
776
|
+
protoOf($serializer_0).b47 = function (encoder, value) {
|
|
777
|
+
return this.a5r(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
778
|
+
};
|
|
779
|
+
protoOf($serializer_0).c47 = function (decoder) {
|
|
780
|
+
var tmp0_desc = this.z5q_1;
|
|
785
781
|
var tmp1_flag = true;
|
|
786
782
|
var tmp2_index = 0;
|
|
787
783
|
var tmp3_bitMask0 = 0;
|
|
788
784
|
var tmp4_local0 = null;
|
|
789
785
|
var tmp5_local1 = null;
|
|
790
|
-
var tmp6_input = decoder.
|
|
791
|
-
if (tmp6_input.
|
|
792
|
-
tmp4_local0 = tmp6_input.
|
|
786
|
+
var tmp6_input = decoder.n4a(tmp0_desc);
|
|
787
|
+
if (tmp6_input.d4b()) {
|
|
788
|
+
tmp4_local0 = tmp6_input.b4b(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
793
789
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
794
|
-
tmp5_local1 = tmp6_input.
|
|
790
|
+
tmp5_local1 = tmp6_input.b4b(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
795
791
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
796
792
|
} else
|
|
797
793
|
while (tmp1_flag) {
|
|
798
|
-
tmp2_index = tmp6_input.
|
|
794
|
+
tmp2_index = tmp6_input.e4b(tmp0_desc);
|
|
799
795
|
switch (tmp2_index) {
|
|
800
796
|
case -1:
|
|
801
797
|
tmp1_flag = false;
|
|
802
798
|
break;
|
|
803
799
|
case 0:
|
|
804
|
-
tmp4_local0 = tmp6_input.
|
|
800
|
+
tmp4_local0 = tmp6_input.b4b(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
805
801
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
806
802
|
break;
|
|
807
803
|
case 1:
|
|
808
|
-
tmp5_local1 = tmp6_input.
|
|
804
|
+
tmp5_local1 = tmp6_input.b4b(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
809
805
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
810
806
|
break;
|
|
811
807
|
default:
|
|
812
808
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
813
809
|
}
|
|
814
810
|
}
|
|
815
|
-
tmp6_input.
|
|
811
|
+
tmp6_input.o4a(tmp0_desc);
|
|
816
812
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
817
813
|
};
|
|
818
|
-
protoOf($serializer_0).
|
|
819
|
-
return this.
|
|
814
|
+
protoOf($serializer_0).a47 = function () {
|
|
815
|
+
return this.z5q_1;
|
|
820
816
|
};
|
|
821
|
-
protoOf($serializer_0).
|
|
817
|
+
protoOf($serializer_0).t4i = function () {
|
|
822
818
|
// Inline function 'kotlin.arrayOf' call
|
|
823
819
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
824
820
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -832,10 +828,10 @@
|
|
|
832
828
|
}
|
|
833
829
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
834
830
|
if (!(3 === (3 & seen0))) {
|
|
835
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
831
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().z5q_1);
|
|
836
832
|
}
|
|
837
|
-
$this.
|
|
838
|
-
$this.
|
|
833
|
+
$this.b5r_1 = code;
|
|
834
|
+
$this.c5r_1 = message;
|
|
839
835
|
return $this;
|
|
840
836
|
}
|
|
841
837
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -844,11 +840,11 @@
|
|
|
844
840
|
function ErrorDto() {
|
|
845
841
|
}
|
|
846
842
|
protoOf(ErrorDto).toString = function () {
|
|
847
|
-
return 'ErrorDto(code=' + this.
|
|
843
|
+
return 'ErrorDto(code=' + this.b5r_1 + ', message=' + this.c5r_1 + ')';
|
|
848
844
|
};
|
|
849
845
|
protoOf(ErrorDto).hashCode = function () {
|
|
850
|
-
var result = this.
|
|
851
|
-
result = imul(result, 31) + (this.
|
|
846
|
+
var result = this.b5r_1 == null ? 0 : this.b5r_1;
|
|
847
|
+
result = imul(result, 31) + (this.c5r_1 == null ? 0 : getStringHashCode(this.c5r_1)) | 0;
|
|
852
848
|
return result;
|
|
853
849
|
};
|
|
854
850
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -857,15 +853,15 @@
|
|
|
857
853
|
if (!(other instanceof ErrorDto))
|
|
858
854
|
return false;
|
|
859
855
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
860
|
-
if (!(this.
|
|
856
|
+
if (!(this.b5r_1 == tmp0_other_with_cast.b5r_1))
|
|
861
857
|
return false;
|
|
862
|
-
if (!(this.
|
|
858
|
+
if (!(this.c5r_1 == tmp0_other_with_cast.c5r_1))
|
|
863
859
|
return false;
|
|
864
860
|
return true;
|
|
865
861
|
};
|
|
866
862
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
867
863
|
$serializer_1.call($this);
|
|
868
|
-
$this.
|
|
864
|
+
$this.e5r_1 = typeSerial0;
|
|
869
865
|
return $this;
|
|
870
866
|
}
|
|
871
867
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -874,17 +870,17 @@
|
|
|
874
870
|
function Companion_2() {
|
|
875
871
|
Companion_instance_4 = this;
|
|
876
872
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
877
|
-
tmp0_serialDesc.
|
|
878
|
-
tmp0_serialDesc.
|
|
879
|
-
tmp0_serialDesc.
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
this.
|
|
873
|
+
tmp0_serialDesc.e4i('jsonrpc', false);
|
|
874
|
+
tmp0_serialDesc.e4i('method', false);
|
|
875
|
+
tmp0_serialDesc.e4i('params', false);
|
|
876
|
+
tmp0_serialDesc.e4i('id', false);
|
|
877
|
+
this.f5r_1 = tmp0_serialDesc;
|
|
882
878
|
}
|
|
883
|
-
protoOf(Companion_2).
|
|
879
|
+
protoOf(Companion_2).g5r = function (typeSerial0) {
|
|
884
880
|
return $serializer_init_$Create$(typeSerial0);
|
|
885
881
|
};
|
|
886
|
-
protoOf(Companion_2).
|
|
887
|
-
return this.
|
|
882
|
+
protoOf(Companion_2).e4j = function (typeParamsSerializers) {
|
|
883
|
+
return this.g5r(typeParamsSerializers[0]);
|
|
888
884
|
};
|
|
889
885
|
var Companion_instance_4;
|
|
890
886
|
function Companion_getInstance_5() {
|
|
@@ -894,26 +890,26 @@
|
|
|
894
890
|
}
|
|
895
891
|
function $serializer_1() {
|
|
896
892
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
897
|
-
tmp0_serialDesc.
|
|
898
|
-
tmp0_serialDesc.
|
|
899
|
-
tmp0_serialDesc.
|
|
900
|
-
tmp0_serialDesc.
|
|
901
|
-
this.
|
|
902
|
-
}
|
|
903
|
-
protoOf($serializer_1).
|
|
904
|
-
var tmp0_desc = this.
|
|
905
|
-
var tmp1_output = encoder.
|
|
906
|
-
tmp1_output.
|
|
907
|
-
tmp1_output.
|
|
908
|
-
tmp1_output.
|
|
909
|
-
tmp1_output.
|
|
910
|
-
tmp1_output.
|
|
911
|
-
};
|
|
912
|
-
protoOf($serializer_1).
|
|
913
|
-
return this.
|
|
914
|
-
};
|
|
915
|
-
protoOf($serializer_1).
|
|
916
|
-
var tmp0_desc = this.
|
|
893
|
+
tmp0_serialDesc.e4i('jsonrpc', false);
|
|
894
|
+
tmp0_serialDesc.e4i('method', false);
|
|
895
|
+
tmp0_serialDesc.e4i('params', false);
|
|
896
|
+
tmp0_serialDesc.e4i('id', false);
|
|
897
|
+
this.d5r_1 = tmp0_serialDesc;
|
|
898
|
+
}
|
|
899
|
+
protoOf($serializer_1).h5r = function (encoder, value) {
|
|
900
|
+
var tmp0_desc = this.d5r_1;
|
|
901
|
+
var tmp1_output = encoder.n4a(tmp0_desc);
|
|
902
|
+
tmp1_output.c4c(tmp0_desc, 0, value.i5r_1);
|
|
903
|
+
tmp1_output.c4c(tmp0_desc, 1, value.j5r_1);
|
|
904
|
+
tmp1_output.e4c(tmp0_desc, 2, this.e5r_1, value.k5r_1);
|
|
905
|
+
tmp1_output.c4c(tmp0_desc, 3, value.l5r_1);
|
|
906
|
+
tmp1_output.o4a(tmp0_desc);
|
|
907
|
+
};
|
|
908
|
+
protoOf($serializer_1).b47 = function (encoder, value) {
|
|
909
|
+
return this.h5r(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
910
|
+
};
|
|
911
|
+
protoOf($serializer_1).c47 = function (decoder) {
|
|
912
|
+
var tmp0_desc = this.d5r_1;
|
|
917
913
|
var tmp1_flag = true;
|
|
918
914
|
var tmp2_index = 0;
|
|
919
915
|
var tmp3_bitMask0 = 0;
|
|
@@ -921,69 +917,69 @@
|
|
|
921
917
|
var tmp5_local1 = null;
|
|
922
918
|
var tmp6_local2 = null;
|
|
923
919
|
var tmp7_local3 = null;
|
|
924
|
-
var tmp8_input = decoder.
|
|
925
|
-
if (tmp8_input.
|
|
926
|
-
tmp4_local0 = tmp8_input.
|
|
920
|
+
var tmp8_input = decoder.n4a(tmp0_desc);
|
|
921
|
+
if (tmp8_input.d4b()) {
|
|
922
|
+
tmp4_local0 = tmp8_input.x4a(tmp0_desc, 0);
|
|
927
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
928
|
-
tmp5_local1 = tmp8_input.
|
|
924
|
+
tmp5_local1 = tmp8_input.x4a(tmp0_desc, 1);
|
|
929
925
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
930
|
-
tmp6_local2 = tmp8_input.
|
|
926
|
+
tmp6_local2 = tmp8_input.z4a(tmp0_desc, 2, this.e5r_1, tmp6_local2);
|
|
931
927
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
932
|
-
tmp7_local3 = tmp8_input.
|
|
928
|
+
tmp7_local3 = tmp8_input.x4a(tmp0_desc, 3);
|
|
933
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
934
930
|
} else
|
|
935
931
|
while (tmp1_flag) {
|
|
936
|
-
tmp2_index = tmp8_input.
|
|
932
|
+
tmp2_index = tmp8_input.e4b(tmp0_desc);
|
|
937
933
|
switch (tmp2_index) {
|
|
938
934
|
case -1:
|
|
939
935
|
tmp1_flag = false;
|
|
940
936
|
break;
|
|
941
937
|
case 0:
|
|
942
|
-
tmp4_local0 = tmp8_input.
|
|
938
|
+
tmp4_local0 = tmp8_input.x4a(tmp0_desc, 0);
|
|
943
939
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
944
940
|
break;
|
|
945
941
|
case 1:
|
|
946
|
-
tmp5_local1 = tmp8_input.
|
|
942
|
+
tmp5_local1 = tmp8_input.x4a(tmp0_desc, 1);
|
|
947
943
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
948
944
|
break;
|
|
949
945
|
case 2:
|
|
950
|
-
tmp6_local2 = tmp8_input.
|
|
946
|
+
tmp6_local2 = tmp8_input.z4a(tmp0_desc, 2, this.e5r_1, tmp6_local2);
|
|
951
947
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
952
948
|
break;
|
|
953
949
|
case 3:
|
|
954
|
-
tmp7_local3 = tmp8_input.
|
|
950
|
+
tmp7_local3 = tmp8_input.x4a(tmp0_desc, 3);
|
|
955
951
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
956
952
|
break;
|
|
957
953
|
default:
|
|
958
954
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
959
955
|
}
|
|
960
956
|
}
|
|
961
|
-
tmp8_input.
|
|
957
|
+
tmp8_input.o4a(tmp0_desc);
|
|
962
958
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
963
959
|
};
|
|
964
|
-
protoOf($serializer_1).
|
|
965
|
-
return this.
|
|
960
|
+
protoOf($serializer_1).a47 = function () {
|
|
961
|
+
return this.d5r_1;
|
|
966
962
|
};
|
|
967
|
-
protoOf($serializer_1).
|
|
963
|
+
protoOf($serializer_1).t4i = function () {
|
|
968
964
|
// Inline function 'kotlin.arrayOf' call
|
|
969
965
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
970
966
|
// Inline function 'kotlin.js.asDynamic' call
|
|
971
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
967
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.e5r_1, StringSerializer_getInstance()];
|
|
972
968
|
};
|
|
973
|
-
protoOf($serializer_1).
|
|
969
|
+
protoOf($serializer_1).u4i = function () {
|
|
974
970
|
// Inline function 'kotlin.arrayOf' call
|
|
975
971
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
976
972
|
// Inline function 'kotlin.js.asDynamic' call
|
|
977
|
-
return [this.
|
|
973
|
+
return [this.e5r_1];
|
|
978
974
|
};
|
|
979
975
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
980
976
|
if (!(15 === (15 & seen0))) {
|
|
981
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
977
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().f5r_1);
|
|
982
978
|
}
|
|
983
|
-
$this.
|
|
984
|
-
$this.
|
|
985
|
-
$this.
|
|
986
|
-
$this.
|
|
979
|
+
$this.i5r_1 = jsonrpc;
|
|
980
|
+
$this.j5r_1 = method;
|
|
981
|
+
$this.k5r_1 = params;
|
|
982
|
+
$this.l5r_1 = id;
|
|
987
983
|
return $this;
|
|
988
984
|
}
|
|
989
985
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -991,19 +987,19 @@
|
|
|
991
987
|
}
|
|
992
988
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
993
989
|
Companion_getInstance_5();
|
|
994
|
-
this.
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
990
|
+
this.i5r_1 = jsonrpc;
|
|
991
|
+
this.j5r_1 = method;
|
|
992
|
+
this.k5r_1 = params;
|
|
993
|
+
this.l5r_1 = id;
|
|
998
994
|
}
|
|
999
995
|
protoOf(RandomRequestDto).toString = function () {
|
|
1000
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
996
|
+
return 'RandomRequestDto(jsonrpc=' + this.i5r_1 + ', method=' + this.j5r_1 + ', params=' + toString(this.k5r_1) + ', id=' + this.l5r_1 + ')';
|
|
1001
997
|
};
|
|
1002
998
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1003
|
-
var result = getStringHashCode(this.
|
|
1004
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1005
|
-
result = imul(result, 31) + hashCode(this.
|
|
1006
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
999
|
+
var result = getStringHashCode(this.i5r_1);
|
|
1000
|
+
result = imul(result, 31) + getStringHashCode(this.j5r_1) | 0;
|
|
1001
|
+
result = imul(result, 31) + hashCode(this.k5r_1) | 0;
|
|
1002
|
+
result = imul(result, 31) + getStringHashCode(this.l5r_1) | 0;
|
|
1007
1003
|
return result;
|
|
1008
1004
|
};
|
|
1009
1005
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1012,13 +1008,13 @@
|
|
|
1012
1008
|
if (!(other instanceof RandomRequestDto))
|
|
1013
1009
|
return false;
|
|
1014
1010
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1015
|
-
if (!(this.
|
|
1011
|
+
if (!(this.i5r_1 === tmp0_other_with_cast.i5r_1))
|
|
1016
1012
|
return false;
|
|
1017
|
-
if (!(this.
|
|
1013
|
+
if (!(this.j5r_1 === tmp0_other_with_cast.j5r_1))
|
|
1018
1014
|
return false;
|
|
1019
|
-
if (!equals(this.
|
|
1015
|
+
if (!equals(this.k5r_1, tmp0_other_with_cast.k5r_1))
|
|
1020
1016
|
return false;
|
|
1021
|
-
if (!(this.
|
|
1017
|
+
if (!(this.l5r_1 === tmp0_other_with_cast.l5r_1))
|
|
1022
1018
|
return false;
|
|
1023
1019
|
return true;
|
|
1024
1020
|
};
|
|
@@ -1028,7 +1024,7 @@
|
|
|
1028
1024
|
// Inline function 'kotlin.arrayOf' call
|
|
1029
1025
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1030
1026
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1031
|
-
tmp.
|
|
1027
|
+
tmp.m5r_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1032
1028
|
}
|
|
1033
1029
|
var Companion_instance_5;
|
|
1034
1030
|
function Companion_getInstance_6() {
|
|
@@ -1039,35 +1035,35 @@
|
|
|
1039
1035
|
function $serializer_2() {
|
|
1040
1036
|
$serializer_instance_1 = this;
|
|
1041
1037
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1042
|
-
tmp0_serialDesc.
|
|
1043
|
-
tmp0_serialDesc.
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
tmp0_serialDesc.
|
|
1046
|
-
tmp0_serialDesc.
|
|
1047
|
-
tmp0_serialDesc.
|
|
1048
|
-
tmp0_serialDesc.
|
|
1049
|
-
tmp0_serialDesc.
|
|
1050
|
-
this.
|
|
1051
|
-
}
|
|
1052
|
-
protoOf($serializer_2).
|
|
1053
|
-
var tmp0_desc = this.
|
|
1054
|
-
var tmp1_output = encoder.
|
|
1055
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
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
|
-
tmp1_output.
|
|
1065
|
-
};
|
|
1066
|
-
protoOf($serializer_2).
|
|
1067
|
-
return this.
|
|
1068
|
-
};
|
|
1069
|
-
protoOf($serializer_2).
|
|
1070
|
-
var tmp0_desc = this.
|
|
1038
|
+
tmp0_serialDesc.e4i('apiKey', false);
|
|
1039
|
+
tmp0_serialDesc.e4i('n', false);
|
|
1040
|
+
tmp0_serialDesc.e4i('length', false);
|
|
1041
|
+
tmp0_serialDesc.e4i('min', false);
|
|
1042
|
+
tmp0_serialDesc.e4i('max', false);
|
|
1043
|
+
tmp0_serialDesc.e4i('replacement', false);
|
|
1044
|
+
tmp0_serialDesc.e4i('ticketId', false);
|
|
1045
|
+
tmp0_serialDesc.e4i('userData', false);
|
|
1046
|
+
this.n5r_1 = tmp0_serialDesc;
|
|
1047
|
+
}
|
|
1048
|
+
protoOf($serializer_2).o5r = function (encoder, value) {
|
|
1049
|
+
var tmp0_desc = this.n5r_1;
|
|
1050
|
+
var tmp1_output = encoder.n4a(tmp0_desc);
|
|
1051
|
+
var tmp2_cached = Companion_getInstance_6().m5r_1;
|
|
1052
|
+
tmp1_output.c4c(tmp0_desc, 0, value.p5r_1);
|
|
1053
|
+
tmp1_output.x4b(tmp0_desc, 1, value.q5r_1);
|
|
1054
|
+
tmp1_output.e4c(tmp0_desc, 2, tmp2_cached[2], value.r5r_1);
|
|
1055
|
+
tmp1_output.x4b(tmp0_desc, 3, value.s5r_1);
|
|
1056
|
+
tmp1_output.x4b(tmp0_desc, 4, value.t5r_1);
|
|
1057
|
+
tmp1_output.u4b(tmp0_desc, 5, value.u5r_1);
|
|
1058
|
+
tmp1_output.g4c(tmp0_desc, 6, StringSerializer_getInstance(), value.v5r_1);
|
|
1059
|
+
tmp1_output.g4c(tmp0_desc, 7, $serializer_getInstance_2(), value.w5r_1);
|
|
1060
|
+
tmp1_output.o4a(tmp0_desc);
|
|
1061
|
+
};
|
|
1062
|
+
protoOf($serializer_2).b47 = function (encoder, value) {
|
|
1063
|
+
return this.o5r(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1064
|
+
};
|
|
1065
|
+
protoOf($serializer_2).c47 = function (decoder) {
|
|
1066
|
+
var tmp0_desc = this.n5r_1;
|
|
1071
1067
|
var tmp1_flag = true;
|
|
1072
1068
|
var tmp2_index = 0;
|
|
1073
1069
|
var tmp3_bitMask0 = 0;
|
|
@@ -1079,76 +1075,76 @@
|
|
|
1079
1075
|
var tmp9_local5 = false;
|
|
1080
1076
|
var tmp10_local6 = null;
|
|
1081
1077
|
var tmp11_local7 = null;
|
|
1082
|
-
var tmp12_input = decoder.
|
|
1083
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1084
|
-
if (tmp12_input.
|
|
1085
|
-
tmp4_local0 = tmp12_input.
|
|
1078
|
+
var tmp12_input = decoder.n4a(tmp0_desc);
|
|
1079
|
+
var tmp13_cached = Companion_getInstance_6().m5r_1;
|
|
1080
|
+
if (tmp12_input.d4b()) {
|
|
1081
|
+
tmp4_local0 = tmp12_input.x4a(tmp0_desc, 0);
|
|
1086
1082
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1087
|
-
tmp5_local1 = tmp12_input.
|
|
1083
|
+
tmp5_local1 = tmp12_input.s4a(tmp0_desc, 1);
|
|
1088
1084
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1089
|
-
tmp6_local2 = tmp12_input.
|
|
1085
|
+
tmp6_local2 = tmp12_input.z4a(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1090
1086
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1091
|
-
tmp7_local3 = tmp12_input.
|
|
1087
|
+
tmp7_local3 = tmp12_input.s4a(tmp0_desc, 3);
|
|
1092
1088
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1093
|
-
tmp8_local4 = tmp12_input.
|
|
1089
|
+
tmp8_local4 = tmp12_input.s4a(tmp0_desc, 4);
|
|
1094
1090
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1095
|
-
tmp9_local5 = tmp12_input.
|
|
1091
|
+
tmp9_local5 = tmp12_input.p4a(tmp0_desc, 5);
|
|
1096
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1097
|
-
tmp10_local6 = tmp12_input.
|
|
1093
|
+
tmp10_local6 = tmp12_input.b4b(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1098
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1099
|
-
tmp11_local7 = tmp12_input.
|
|
1095
|
+
tmp11_local7 = tmp12_input.b4b(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1100
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1101
1097
|
} else
|
|
1102
1098
|
while (tmp1_flag) {
|
|
1103
|
-
tmp2_index = tmp12_input.
|
|
1099
|
+
tmp2_index = tmp12_input.e4b(tmp0_desc);
|
|
1104
1100
|
switch (tmp2_index) {
|
|
1105
1101
|
case -1:
|
|
1106
1102
|
tmp1_flag = false;
|
|
1107
1103
|
break;
|
|
1108
1104
|
case 0:
|
|
1109
|
-
tmp4_local0 = tmp12_input.
|
|
1105
|
+
tmp4_local0 = tmp12_input.x4a(tmp0_desc, 0);
|
|
1110
1106
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1111
1107
|
break;
|
|
1112
1108
|
case 1:
|
|
1113
|
-
tmp5_local1 = tmp12_input.
|
|
1109
|
+
tmp5_local1 = tmp12_input.s4a(tmp0_desc, 1);
|
|
1114
1110
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1115
1111
|
break;
|
|
1116
1112
|
case 2:
|
|
1117
|
-
tmp6_local2 = tmp12_input.
|
|
1113
|
+
tmp6_local2 = tmp12_input.z4a(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1118
1114
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1119
1115
|
break;
|
|
1120
1116
|
case 3:
|
|
1121
|
-
tmp7_local3 = tmp12_input.
|
|
1117
|
+
tmp7_local3 = tmp12_input.s4a(tmp0_desc, 3);
|
|
1122
1118
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1123
1119
|
break;
|
|
1124
1120
|
case 4:
|
|
1125
|
-
tmp8_local4 = tmp12_input.
|
|
1121
|
+
tmp8_local4 = tmp12_input.s4a(tmp0_desc, 4);
|
|
1126
1122
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1127
1123
|
break;
|
|
1128
1124
|
case 5:
|
|
1129
|
-
tmp9_local5 = tmp12_input.
|
|
1125
|
+
tmp9_local5 = tmp12_input.p4a(tmp0_desc, 5);
|
|
1130
1126
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1131
1127
|
break;
|
|
1132
1128
|
case 6:
|
|
1133
|
-
tmp10_local6 = tmp12_input.
|
|
1129
|
+
tmp10_local6 = tmp12_input.b4b(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1134
1130
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1135
1131
|
break;
|
|
1136
1132
|
case 7:
|
|
1137
|
-
tmp11_local7 = tmp12_input.
|
|
1133
|
+
tmp11_local7 = tmp12_input.b4b(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1138
1134
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1139
1135
|
break;
|
|
1140
1136
|
default:
|
|
1141
1137
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1142
1138
|
}
|
|
1143
1139
|
}
|
|
1144
|
-
tmp12_input.
|
|
1140
|
+
tmp12_input.o4a(tmp0_desc);
|
|
1145
1141
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1146
1142
|
};
|
|
1147
|
-
protoOf($serializer_2).
|
|
1148
|
-
return this.
|
|
1143
|
+
protoOf($serializer_2).a47 = function () {
|
|
1144
|
+
return this.n5r_1;
|
|
1149
1145
|
};
|
|
1150
|
-
protoOf($serializer_2).
|
|
1151
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1146
|
+
protoOf($serializer_2).t4i = function () {
|
|
1147
|
+
var tmp0_cached = Companion_getInstance_6().m5r_1;
|
|
1152
1148
|
// Inline function 'kotlin.arrayOf' call
|
|
1153
1149
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1154
1150
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1162,16 +1158,16 @@
|
|
|
1162
1158
|
}
|
|
1163
1159
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1164
1160
|
if (!(255 === (255 & seen0))) {
|
|
1165
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1161
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().n5r_1);
|
|
1166
1162
|
}
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1170
|
-
$this.
|
|
1171
|
-
$this.
|
|
1172
|
-
$this.
|
|
1173
|
-
$this.
|
|
1174
|
-
$this.
|
|
1163
|
+
$this.p5r_1 = apiKey;
|
|
1164
|
+
$this.q5r_1 = n;
|
|
1165
|
+
$this.r5r_1 = length;
|
|
1166
|
+
$this.s5r_1 = min;
|
|
1167
|
+
$this.t5r_1 = max;
|
|
1168
|
+
$this.u5r_1 = replacement;
|
|
1169
|
+
$this.v5r_1 = ticketId;
|
|
1170
|
+
$this.w5r_1 = userData;
|
|
1175
1171
|
return $this;
|
|
1176
1172
|
}
|
|
1177
1173
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1179,27 +1175,27 @@
|
|
|
1179
1175
|
}
|
|
1180
1176
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1181
1177
|
Companion_getInstance_6();
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1178
|
+
this.p5r_1 = apiKey;
|
|
1179
|
+
this.q5r_1 = n;
|
|
1180
|
+
this.r5r_1 = length;
|
|
1181
|
+
this.s5r_1 = min;
|
|
1182
|
+
this.t5r_1 = max;
|
|
1183
|
+
this.u5r_1 = replacement;
|
|
1184
|
+
this.v5r_1 = ticketId;
|
|
1185
|
+
this.w5r_1 = userData;
|
|
1190
1186
|
}
|
|
1191
1187
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1192
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1188
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.p5r_1 + ', n=' + this.q5r_1 + ', length=' + toString(this.r5r_1) + ', min=' + this.s5r_1 + ', max=' + this.t5r_1 + ', replacement=' + this.u5r_1 + ', ticketId=' + this.v5r_1 + ', userData=' + toString_0(this.w5r_1) + ')';
|
|
1193
1189
|
};
|
|
1194
1190
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1195
|
-
var result = getStringHashCode(this.
|
|
1196
|
-
result = imul(result, 31) + this.
|
|
1197
|
-
result = imul(result, 31) + hashCode(this.
|
|
1198
|
-
result = imul(result, 31) + this.
|
|
1199
|
-
result = imul(result, 31) + this.
|
|
1200
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1201
|
-
result = imul(result, 31) + (this.
|
|
1202
|
-
result = imul(result, 31) + (this.
|
|
1191
|
+
var result = getStringHashCode(this.p5r_1);
|
|
1192
|
+
result = imul(result, 31) + this.q5r_1 | 0;
|
|
1193
|
+
result = imul(result, 31) + hashCode(this.r5r_1) | 0;
|
|
1194
|
+
result = imul(result, 31) + this.s5r_1 | 0;
|
|
1195
|
+
result = imul(result, 31) + this.t5r_1 | 0;
|
|
1196
|
+
result = imul(result, 31) + getBooleanHashCode(this.u5r_1) | 0;
|
|
1197
|
+
result = imul(result, 31) + (this.v5r_1 == null ? 0 : getStringHashCode(this.v5r_1)) | 0;
|
|
1198
|
+
result = imul(result, 31) + (this.w5r_1 == null ? 0 : this.w5r_1.hashCode()) | 0;
|
|
1203
1199
|
return result;
|
|
1204
1200
|
};
|
|
1205
1201
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1208,21 +1204,21 @@
|
|
|
1208
1204
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1209
1205
|
return false;
|
|
1210
1206
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1211
|
-
if (!(this.
|
|
1207
|
+
if (!(this.p5r_1 === tmp0_other_with_cast.p5r_1))
|
|
1212
1208
|
return false;
|
|
1213
|
-
if (!(this.
|
|
1209
|
+
if (!(this.q5r_1 === tmp0_other_with_cast.q5r_1))
|
|
1214
1210
|
return false;
|
|
1215
|
-
if (!equals(this.
|
|
1211
|
+
if (!equals(this.r5r_1, tmp0_other_with_cast.r5r_1))
|
|
1216
1212
|
return false;
|
|
1217
|
-
if (!(this.
|
|
1213
|
+
if (!(this.s5r_1 === tmp0_other_with_cast.s5r_1))
|
|
1218
1214
|
return false;
|
|
1219
|
-
if (!(this.
|
|
1215
|
+
if (!(this.t5r_1 === tmp0_other_with_cast.t5r_1))
|
|
1220
1216
|
return false;
|
|
1221
|
-
if (!(this.
|
|
1217
|
+
if (!(this.u5r_1 === tmp0_other_with_cast.u5r_1))
|
|
1222
1218
|
return false;
|
|
1223
|
-
if (!(this.
|
|
1219
|
+
if (!(this.v5r_1 == tmp0_other_with_cast.v5r_1))
|
|
1224
1220
|
return false;
|
|
1225
|
-
if (!equals(this.
|
|
1221
|
+
if (!equals(this.w5r_1, tmp0_other_with_cast.w5r_1))
|
|
1226
1222
|
return false;
|
|
1227
1223
|
return true;
|
|
1228
1224
|
};
|
|
@@ -1235,59 +1231,59 @@
|
|
|
1235
1231
|
function $serializer_3() {
|
|
1236
1232
|
$serializer_instance_2 = this;
|
|
1237
1233
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1238
|
-
tmp0_serialDesc.
|
|
1239
|
-
tmp0_serialDesc.
|
|
1240
|
-
this.
|
|
1241
|
-
}
|
|
1242
|
-
protoOf($serializer_3).
|
|
1243
|
-
var tmp0_desc = this.
|
|
1244
|
-
var tmp1_output = encoder.
|
|
1245
|
-
tmp1_output.
|
|
1246
|
-
tmp1_output.
|
|
1247
|
-
tmp1_output.
|
|
1248
|
-
};
|
|
1249
|
-
protoOf($serializer_3).
|
|
1250
|
-
return this.
|
|
1251
|
-
};
|
|
1252
|
-
protoOf($serializer_3).
|
|
1253
|
-
var tmp0_desc = this.
|
|
1234
|
+
tmp0_serialDesc.e4i('id', false);
|
|
1235
|
+
tmp0_serialDesc.e4i('count', false);
|
|
1236
|
+
this.x5r_1 = tmp0_serialDesc;
|
|
1237
|
+
}
|
|
1238
|
+
protoOf($serializer_3).y5r = function (encoder, value) {
|
|
1239
|
+
var tmp0_desc = this.x5r_1;
|
|
1240
|
+
var tmp1_output = encoder.n4a(tmp0_desc);
|
|
1241
|
+
tmp1_output.c4c(tmp0_desc, 0, value.z5r_1);
|
|
1242
|
+
tmp1_output.x4b(tmp0_desc, 1, value.a5s_1);
|
|
1243
|
+
tmp1_output.o4a(tmp0_desc);
|
|
1244
|
+
};
|
|
1245
|
+
protoOf($serializer_3).b47 = function (encoder, value) {
|
|
1246
|
+
return this.y5r(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1247
|
+
};
|
|
1248
|
+
protoOf($serializer_3).c47 = function (decoder) {
|
|
1249
|
+
var tmp0_desc = this.x5r_1;
|
|
1254
1250
|
var tmp1_flag = true;
|
|
1255
1251
|
var tmp2_index = 0;
|
|
1256
1252
|
var tmp3_bitMask0 = 0;
|
|
1257
1253
|
var tmp4_local0 = null;
|
|
1258
1254
|
var tmp5_local1 = 0;
|
|
1259
|
-
var tmp6_input = decoder.
|
|
1260
|
-
if (tmp6_input.
|
|
1261
|
-
tmp4_local0 = tmp6_input.
|
|
1255
|
+
var tmp6_input = decoder.n4a(tmp0_desc);
|
|
1256
|
+
if (tmp6_input.d4b()) {
|
|
1257
|
+
tmp4_local0 = tmp6_input.x4a(tmp0_desc, 0);
|
|
1262
1258
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1263
|
-
tmp5_local1 = tmp6_input.
|
|
1259
|
+
tmp5_local1 = tmp6_input.s4a(tmp0_desc, 1);
|
|
1264
1260
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1265
1261
|
} else
|
|
1266
1262
|
while (tmp1_flag) {
|
|
1267
|
-
tmp2_index = tmp6_input.
|
|
1263
|
+
tmp2_index = tmp6_input.e4b(tmp0_desc);
|
|
1268
1264
|
switch (tmp2_index) {
|
|
1269
1265
|
case -1:
|
|
1270
1266
|
tmp1_flag = false;
|
|
1271
1267
|
break;
|
|
1272
1268
|
case 0:
|
|
1273
|
-
tmp4_local0 = tmp6_input.
|
|
1269
|
+
tmp4_local0 = tmp6_input.x4a(tmp0_desc, 0);
|
|
1274
1270
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1275
1271
|
break;
|
|
1276
1272
|
case 1:
|
|
1277
|
-
tmp5_local1 = tmp6_input.
|
|
1273
|
+
tmp5_local1 = tmp6_input.s4a(tmp0_desc, 1);
|
|
1278
1274
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1279
1275
|
break;
|
|
1280
1276
|
default:
|
|
1281
1277
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1282
1278
|
}
|
|
1283
1279
|
}
|
|
1284
|
-
tmp6_input.
|
|
1280
|
+
tmp6_input.o4a(tmp0_desc);
|
|
1285
1281
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1286
1282
|
};
|
|
1287
|
-
protoOf($serializer_3).
|
|
1288
|
-
return this.
|
|
1283
|
+
protoOf($serializer_3).a47 = function () {
|
|
1284
|
+
return this.x5r_1;
|
|
1289
1285
|
};
|
|
1290
|
-
protoOf($serializer_3).
|
|
1286
|
+
protoOf($serializer_3).t4i = function () {
|
|
1291
1287
|
// Inline function 'kotlin.arrayOf' call
|
|
1292
1288
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1293
1289
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1301,25 +1297,25 @@
|
|
|
1301
1297
|
}
|
|
1302
1298
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1303
1299
|
if (!(3 === (3 & seen0))) {
|
|
1304
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1300
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().x5r_1);
|
|
1305
1301
|
}
|
|
1306
|
-
$this.
|
|
1307
|
-
$this.
|
|
1302
|
+
$this.z5r_1 = id;
|
|
1303
|
+
$this.a5s_1 = count;
|
|
1308
1304
|
return $this;
|
|
1309
1305
|
}
|
|
1310
1306
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1311
1307
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1312
1308
|
}
|
|
1313
1309
|
function CardDecksUserDataDto(id, count) {
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1310
|
+
this.z5r_1 = id;
|
|
1311
|
+
this.a5s_1 = count;
|
|
1316
1312
|
}
|
|
1317
1313
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1318
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1314
|
+
return 'CardDecksUserDataDto(id=' + this.z5r_1 + ', count=' + this.a5s_1 + ')';
|
|
1319
1315
|
};
|
|
1320
1316
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1321
|
-
var result = getStringHashCode(this.
|
|
1322
|
-
result = imul(result, 31) + this.
|
|
1317
|
+
var result = getStringHashCode(this.z5r_1);
|
|
1318
|
+
result = imul(result, 31) + this.a5s_1 | 0;
|
|
1323
1319
|
return result;
|
|
1324
1320
|
};
|
|
1325
1321
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1328,15 +1324,15 @@
|
|
|
1328
1324
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1329
1325
|
return false;
|
|
1330
1326
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1331
|
-
if (!(this.
|
|
1327
|
+
if (!(this.z5r_1 === tmp0_other_with_cast.z5r_1))
|
|
1332
1328
|
return false;
|
|
1333
|
-
if (!(this.
|
|
1329
|
+
if (!(this.a5s_1 === tmp0_other_with_cast.a5s_1))
|
|
1334
1330
|
return false;
|
|
1335
1331
|
return true;
|
|
1336
1332
|
};
|
|
1337
1333
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1338
1334
|
$serializer_4.call($this);
|
|
1339
|
-
$this.
|
|
1335
|
+
$this.c5s_1 = typeSerial0;
|
|
1340
1336
|
return $this;
|
|
1341
1337
|
}
|
|
1342
1338
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1345,16 +1341,16 @@
|
|
|
1345
1341
|
function Companion_5() {
|
|
1346
1342
|
Companion_instance_7 = this;
|
|
1347
1343
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1348
|
-
tmp0_serialDesc.
|
|
1349
|
-
tmp0_serialDesc.
|
|
1350
|
-
tmp0_serialDesc.
|
|
1351
|
-
this.
|
|
1344
|
+
tmp0_serialDesc.e4i('jsonrpc', false);
|
|
1345
|
+
tmp0_serialDesc.e4i('result', false);
|
|
1346
|
+
tmp0_serialDesc.e4i('id', false);
|
|
1347
|
+
this.d5s_1 = tmp0_serialDesc;
|
|
1352
1348
|
}
|
|
1353
|
-
protoOf(Companion_5).
|
|
1349
|
+
protoOf(Companion_5).g5r = function (typeSerial0) {
|
|
1354
1350
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1355
1351
|
};
|
|
1356
|
-
protoOf(Companion_5).
|
|
1357
|
-
return this.
|
|
1352
|
+
protoOf(Companion_5).e4j = function (typeParamsSerializers) {
|
|
1353
|
+
return this.g5r(typeParamsSerializers[0]);
|
|
1358
1354
|
};
|
|
1359
1355
|
var Companion_instance_7;
|
|
1360
1356
|
function Companion_getInstance_8() {
|
|
@@ -1364,86 +1360,86 @@
|
|
|
1364
1360
|
}
|
|
1365
1361
|
function $serializer_4() {
|
|
1366
1362
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1367
|
-
tmp0_serialDesc.
|
|
1368
|
-
tmp0_serialDesc.
|
|
1369
|
-
tmp0_serialDesc.
|
|
1370
|
-
this.
|
|
1371
|
-
}
|
|
1372
|
-
protoOf($serializer_4).
|
|
1373
|
-
var tmp0_desc = this.
|
|
1374
|
-
var tmp1_output = encoder.
|
|
1375
|
-
tmp1_output.
|
|
1376
|
-
tmp1_output.
|
|
1377
|
-
tmp1_output.
|
|
1378
|
-
tmp1_output.
|
|
1379
|
-
};
|
|
1380
|
-
protoOf($serializer_4).
|
|
1381
|
-
return this.
|
|
1382
|
-
};
|
|
1383
|
-
protoOf($serializer_4).
|
|
1384
|
-
var tmp0_desc = this.
|
|
1363
|
+
tmp0_serialDesc.e4i('jsonrpc', false);
|
|
1364
|
+
tmp0_serialDesc.e4i('result', false);
|
|
1365
|
+
tmp0_serialDesc.e4i('id', false);
|
|
1366
|
+
this.b5s_1 = tmp0_serialDesc;
|
|
1367
|
+
}
|
|
1368
|
+
protoOf($serializer_4).e5s = function (encoder, value) {
|
|
1369
|
+
var tmp0_desc = this.b5s_1;
|
|
1370
|
+
var tmp1_output = encoder.n4a(tmp0_desc);
|
|
1371
|
+
tmp1_output.c4c(tmp0_desc, 0, value.f5s_1);
|
|
1372
|
+
tmp1_output.e4c(tmp0_desc, 1, this.c5s_1, value.g5s_1);
|
|
1373
|
+
tmp1_output.c4c(tmp0_desc, 2, value.h5s_1);
|
|
1374
|
+
tmp1_output.o4a(tmp0_desc);
|
|
1375
|
+
};
|
|
1376
|
+
protoOf($serializer_4).b47 = function (encoder, value) {
|
|
1377
|
+
return this.e5s(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1378
|
+
};
|
|
1379
|
+
protoOf($serializer_4).c47 = function (decoder) {
|
|
1380
|
+
var tmp0_desc = this.b5s_1;
|
|
1385
1381
|
var tmp1_flag = true;
|
|
1386
1382
|
var tmp2_index = 0;
|
|
1387
1383
|
var tmp3_bitMask0 = 0;
|
|
1388
1384
|
var tmp4_local0 = null;
|
|
1389
1385
|
var tmp5_local1 = null;
|
|
1390
1386
|
var tmp6_local2 = null;
|
|
1391
|
-
var tmp7_input = decoder.
|
|
1392
|
-
if (tmp7_input.
|
|
1393
|
-
tmp4_local0 = tmp7_input.
|
|
1387
|
+
var tmp7_input = decoder.n4a(tmp0_desc);
|
|
1388
|
+
if (tmp7_input.d4b()) {
|
|
1389
|
+
tmp4_local0 = tmp7_input.x4a(tmp0_desc, 0);
|
|
1394
1390
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1395
|
-
tmp5_local1 = tmp7_input.
|
|
1391
|
+
tmp5_local1 = tmp7_input.z4a(tmp0_desc, 1, this.c5s_1, tmp5_local1);
|
|
1396
1392
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1397
|
-
tmp6_local2 = tmp7_input.
|
|
1393
|
+
tmp6_local2 = tmp7_input.x4a(tmp0_desc, 2);
|
|
1398
1394
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1399
1395
|
} else
|
|
1400
1396
|
while (tmp1_flag) {
|
|
1401
|
-
tmp2_index = tmp7_input.
|
|
1397
|
+
tmp2_index = tmp7_input.e4b(tmp0_desc);
|
|
1402
1398
|
switch (tmp2_index) {
|
|
1403
1399
|
case -1:
|
|
1404
1400
|
tmp1_flag = false;
|
|
1405
1401
|
break;
|
|
1406
1402
|
case 0:
|
|
1407
|
-
tmp4_local0 = tmp7_input.
|
|
1403
|
+
tmp4_local0 = tmp7_input.x4a(tmp0_desc, 0);
|
|
1408
1404
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1409
1405
|
break;
|
|
1410
1406
|
case 1:
|
|
1411
|
-
tmp5_local1 = tmp7_input.
|
|
1407
|
+
tmp5_local1 = tmp7_input.z4a(tmp0_desc, 1, this.c5s_1, tmp5_local1);
|
|
1412
1408
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1413
1409
|
break;
|
|
1414
1410
|
case 2:
|
|
1415
|
-
tmp6_local2 = tmp7_input.
|
|
1411
|
+
tmp6_local2 = tmp7_input.x4a(tmp0_desc, 2);
|
|
1416
1412
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1417
1413
|
break;
|
|
1418
1414
|
default:
|
|
1419
1415
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1420
1416
|
}
|
|
1421
1417
|
}
|
|
1422
|
-
tmp7_input.
|
|
1418
|
+
tmp7_input.o4a(tmp0_desc);
|
|
1423
1419
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1424
1420
|
};
|
|
1425
|
-
protoOf($serializer_4).
|
|
1426
|
-
return this.
|
|
1421
|
+
protoOf($serializer_4).a47 = function () {
|
|
1422
|
+
return this.b5s_1;
|
|
1427
1423
|
};
|
|
1428
|
-
protoOf($serializer_4).
|
|
1424
|
+
protoOf($serializer_4).t4i = function () {
|
|
1429
1425
|
// Inline function 'kotlin.arrayOf' call
|
|
1430
1426
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1431
1427
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1432
|
-
return [StringSerializer_getInstance(), this.
|
|
1428
|
+
return [StringSerializer_getInstance(), this.c5s_1, StringSerializer_getInstance()];
|
|
1433
1429
|
};
|
|
1434
|
-
protoOf($serializer_4).
|
|
1430
|
+
protoOf($serializer_4).u4i = function () {
|
|
1435
1431
|
// Inline function 'kotlin.arrayOf' call
|
|
1436
1432
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1437
1433
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1438
|
-
return [this.
|
|
1434
|
+
return [this.c5s_1];
|
|
1439
1435
|
};
|
|
1440
1436
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1441
1437
|
if (!(7 === (7 & seen0))) {
|
|
1442
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1438
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().d5s_1);
|
|
1443
1439
|
}
|
|
1444
|
-
$this.
|
|
1445
|
-
$this.
|
|
1446
|
-
$this.
|
|
1440
|
+
$this.f5s_1 = jsonrpc;
|
|
1441
|
+
$this.g5s_1 = result;
|
|
1442
|
+
$this.h5s_1 = id;
|
|
1447
1443
|
return $this;
|
|
1448
1444
|
}
|
|
1449
1445
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1451,17 +1447,17 @@
|
|
|
1451
1447
|
}
|
|
1452
1448
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1453
1449
|
Companion_getInstance_8();
|
|
1454
|
-
this.
|
|
1455
|
-
this.
|
|
1456
|
-
this.
|
|
1450
|
+
this.f5s_1 = jsonrpc;
|
|
1451
|
+
this.g5s_1 = result;
|
|
1452
|
+
this.h5s_1 = id;
|
|
1457
1453
|
}
|
|
1458
1454
|
protoOf(RandomResponseDto).toString = function () {
|
|
1459
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1455
|
+
return 'RandomResponseDto(jsonrpc=' + this.f5s_1 + ', result=' + toString(this.g5s_1) + ', id=' + this.h5s_1 + ')';
|
|
1460
1456
|
};
|
|
1461
1457
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1462
|
-
var result = getStringHashCode(this.
|
|
1463
|
-
result = imul(result, 31) + hashCode(this.
|
|
1464
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1458
|
+
var result = getStringHashCode(this.f5s_1);
|
|
1459
|
+
result = imul(result, 31) + hashCode(this.g5s_1) | 0;
|
|
1460
|
+
result = imul(result, 31) + getStringHashCode(this.h5s_1) | 0;
|
|
1465
1461
|
return result;
|
|
1466
1462
|
};
|
|
1467
1463
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1470,11 +1466,11 @@
|
|
|
1470
1466
|
if (!(other instanceof RandomResponseDto))
|
|
1471
1467
|
return false;
|
|
1472
1468
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1473
|
-
if (!(this.
|
|
1469
|
+
if (!(this.f5s_1 === tmp0_other_with_cast.f5s_1))
|
|
1474
1470
|
return false;
|
|
1475
|
-
if (!equals(this.
|
|
1471
|
+
if (!equals(this.g5s_1, tmp0_other_with_cast.g5s_1))
|
|
1476
1472
|
return false;
|
|
1477
|
-
if (!(this.
|
|
1473
|
+
if (!(this.h5s_1 === tmp0_other_with_cast.h5s_1))
|
|
1478
1474
|
return false;
|
|
1479
1475
|
return true;
|
|
1480
1476
|
};
|
|
@@ -1487,30 +1483,30 @@
|
|
|
1487
1483
|
function $serializer_5() {
|
|
1488
1484
|
$serializer_instance_3 = this;
|
|
1489
1485
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1490
|
-
tmp0_serialDesc.
|
|
1491
|
-
tmp0_serialDesc.
|
|
1492
|
-
tmp0_serialDesc.
|
|
1493
|
-
tmp0_serialDesc.
|
|
1494
|
-
tmp0_serialDesc.
|
|
1495
|
-
tmp0_serialDesc.
|
|
1496
|
-
this.
|
|
1497
|
-
}
|
|
1498
|
-
protoOf($serializer_5).
|
|
1499
|
-
var tmp0_desc = this.
|
|
1500
|
-
var tmp1_output = encoder.
|
|
1501
|
-
tmp1_output.
|
|
1502
|
-
tmp1_output.
|
|
1503
|
-
tmp1_output.
|
|
1504
|
-
tmp1_output.
|
|
1505
|
-
tmp1_output.
|
|
1506
|
-
tmp1_output.
|
|
1507
|
-
tmp1_output.
|
|
1508
|
-
};
|
|
1509
|
-
protoOf($serializer_5).
|
|
1510
|
-
return this.
|
|
1511
|
-
};
|
|
1512
|
-
protoOf($serializer_5).
|
|
1513
|
-
var tmp0_desc = this.
|
|
1486
|
+
tmp0_serialDesc.e4i('random', false);
|
|
1487
|
+
tmp0_serialDesc.e4i('signature', false);
|
|
1488
|
+
tmp0_serialDesc.e4i('bitsUsed', false);
|
|
1489
|
+
tmp0_serialDesc.e4i('bitsLeft', false);
|
|
1490
|
+
tmp0_serialDesc.e4i('requestsLeft', false);
|
|
1491
|
+
tmp0_serialDesc.e4i('advisoryDelay', false);
|
|
1492
|
+
this.i5s_1 = tmp0_serialDesc;
|
|
1493
|
+
}
|
|
1494
|
+
protoOf($serializer_5).j5s = function (encoder, value) {
|
|
1495
|
+
var tmp0_desc = this.i5s_1;
|
|
1496
|
+
var tmp1_output = encoder.n4a(tmp0_desc);
|
|
1497
|
+
tmp1_output.e4c(tmp0_desc, 0, $serializer_getInstance_4(), value.k5s_1);
|
|
1498
|
+
tmp1_output.g4c(tmp0_desc, 1, StringSerializer_getInstance(), value.l5s_1);
|
|
1499
|
+
tmp1_output.g4c(tmp0_desc, 2, IntSerializer_getInstance(), value.m5s_1);
|
|
1500
|
+
tmp1_output.g4c(tmp0_desc, 3, IntSerializer_getInstance(), value.n5s_1);
|
|
1501
|
+
tmp1_output.g4c(tmp0_desc, 4, IntSerializer_getInstance(), value.o5s_1);
|
|
1502
|
+
tmp1_output.g4c(tmp0_desc, 5, IntSerializer_getInstance(), value.p5s_1);
|
|
1503
|
+
tmp1_output.o4a(tmp0_desc);
|
|
1504
|
+
};
|
|
1505
|
+
protoOf($serializer_5).b47 = function (encoder, value) {
|
|
1506
|
+
return this.j5s(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1507
|
+
};
|
|
1508
|
+
protoOf($serializer_5).c47 = function (decoder) {
|
|
1509
|
+
var tmp0_desc = this.i5s_1;
|
|
1514
1510
|
var tmp1_flag = true;
|
|
1515
1511
|
var tmp2_index = 0;
|
|
1516
1512
|
var tmp3_bitMask0 = 0;
|
|
@@ -1520,62 +1516,62 @@
|
|
|
1520
1516
|
var tmp7_local3 = null;
|
|
1521
1517
|
var tmp8_local4 = null;
|
|
1522
1518
|
var tmp9_local5 = null;
|
|
1523
|
-
var tmp10_input = decoder.
|
|
1524
|
-
if (tmp10_input.
|
|
1525
|
-
tmp4_local0 = tmp10_input.
|
|
1519
|
+
var tmp10_input = decoder.n4a(tmp0_desc);
|
|
1520
|
+
if (tmp10_input.d4b()) {
|
|
1521
|
+
tmp4_local0 = tmp10_input.z4a(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1526
1522
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1527
|
-
tmp5_local1 = tmp10_input.
|
|
1523
|
+
tmp5_local1 = tmp10_input.b4b(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1528
1524
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1529
|
-
tmp6_local2 = tmp10_input.
|
|
1525
|
+
tmp6_local2 = tmp10_input.b4b(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1530
1526
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1531
|
-
tmp7_local3 = tmp10_input.
|
|
1527
|
+
tmp7_local3 = tmp10_input.b4b(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1532
1528
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1533
|
-
tmp8_local4 = tmp10_input.
|
|
1529
|
+
tmp8_local4 = tmp10_input.b4b(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1534
1530
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1535
|
-
tmp9_local5 = tmp10_input.
|
|
1531
|
+
tmp9_local5 = tmp10_input.b4b(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1536
1532
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1537
1533
|
} else
|
|
1538
1534
|
while (tmp1_flag) {
|
|
1539
|
-
tmp2_index = tmp10_input.
|
|
1535
|
+
tmp2_index = tmp10_input.e4b(tmp0_desc);
|
|
1540
1536
|
switch (tmp2_index) {
|
|
1541
1537
|
case -1:
|
|
1542
1538
|
tmp1_flag = false;
|
|
1543
1539
|
break;
|
|
1544
1540
|
case 0:
|
|
1545
|
-
tmp4_local0 = tmp10_input.
|
|
1541
|
+
tmp4_local0 = tmp10_input.z4a(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1546
1542
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1547
1543
|
break;
|
|
1548
1544
|
case 1:
|
|
1549
|
-
tmp5_local1 = tmp10_input.
|
|
1545
|
+
tmp5_local1 = tmp10_input.b4b(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1550
1546
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1551
1547
|
break;
|
|
1552
1548
|
case 2:
|
|
1553
|
-
tmp6_local2 = tmp10_input.
|
|
1549
|
+
tmp6_local2 = tmp10_input.b4b(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1554
1550
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1555
1551
|
break;
|
|
1556
1552
|
case 3:
|
|
1557
|
-
tmp7_local3 = tmp10_input.
|
|
1553
|
+
tmp7_local3 = tmp10_input.b4b(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1558
1554
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1559
1555
|
break;
|
|
1560
1556
|
case 4:
|
|
1561
|
-
tmp8_local4 = tmp10_input.
|
|
1557
|
+
tmp8_local4 = tmp10_input.b4b(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1562
1558
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1563
1559
|
break;
|
|
1564
1560
|
case 5:
|
|
1565
|
-
tmp9_local5 = tmp10_input.
|
|
1561
|
+
tmp9_local5 = tmp10_input.b4b(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1566
1562
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1567
1563
|
break;
|
|
1568
1564
|
default:
|
|
1569
1565
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1570
1566
|
}
|
|
1571
1567
|
}
|
|
1572
|
-
tmp10_input.
|
|
1568
|
+
tmp10_input.o4a(tmp0_desc);
|
|
1573
1569
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1574
1570
|
};
|
|
1575
|
-
protoOf($serializer_5).
|
|
1576
|
-
return this.
|
|
1571
|
+
protoOf($serializer_5).a47 = function () {
|
|
1572
|
+
return this.i5s_1;
|
|
1577
1573
|
};
|
|
1578
|
-
protoOf($serializer_5).
|
|
1574
|
+
protoOf($serializer_5).t4i = function () {
|
|
1579
1575
|
// Inline function 'kotlin.arrayOf' call
|
|
1580
1576
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1581
1577
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1589,37 +1585,37 @@
|
|
|
1589
1585
|
}
|
|
1590
1586
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1591
1587
|
if (!(63 === (63 & seen0))) {
|
|
1592
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1588
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().i5s_1);
|
|
1593
1589
|
}
|
|
1594
|
-
$this.
|
|
1595
|
-
$this.
|
|
1596
|
-
$this.
|
|
1597
|
-
$this.
|
|
1598
|
-
$this.
|
|
1599
|
-
$this.
|
|
1590
|
+
$this.k5s_1 = random;
|
|
1591
|
+
$this.l5s_1 = signature;
|
|
1592
|
+
$this.m5s_1 = bitsUsed;
|
|
1593
|
+
$this.n5s_1 = bitsLeft;
|
|
1594
|
+
$this.o5s_1 = requestsLeft;
|
|
1595
|
+
$this.p5s_1 = advisoryDelay;
|
|
1600
1596
|
return $this;
|
|
1601
1597
|
}
|
|
1602
1598
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1603
1599
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1604
1600
|
}
|
|
1605
1601
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1602
|
+
this.k5s_1 = random;
|
|
1603
|
+
this.l5s_1 = signature;
|
|
1604
|
+
this.m5s_1 = bitsUsed;
|
|
1605
|
+
this.n5s_1 = bitsLeft;
|
|
1606
|
+
this.o5s_1 = requestsLeft;
|
|
1607
|
+
this.p5s_1 = advisoryDelay;
|
|
1612
1608
|
}
|
|
1613
1609
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1614
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1610
|
+
return 'IntegerSequencesResultDto(random=' + this.k5s_1.toString() + ', signature=' + this.l5s_1 + ', bitsUsed=' + this.m5s_1 + ', bitsLeft=' + this.n5s_1 + ', requestsLeft=' + this.o5s_1 + ', advisoryDelay=' + this.p5s_1 + ')';
|
|
1615
1611
|
};
|
|
1616
1612
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1617
|
-
var result = 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.
|
|
1622
|
-
result = imul(result, 31) + (this.
|
|
1613
|
+
var result = this.k5s_1.hashCode();
|
|
1614
|
+
result = imul(result, 31) + (this.l5s_1 == null ? 0 : getStringHashCode(this.l5s_1)) | 0;
|
|
1615
|
+
result = imul(result, 31) + (this.m5s_1 == null ? 0 : this.m5s_1) | 0;
|
|
1616
|
+
result = imul(result, 31) + (this.n5s_1 == null ? 0 : this.n5s_1) | 0;
|
|
1617
|
+
result = imul(result, 31) + (this.o5s_1 == null ? 0 : this.o5s_1) | 0;
|
|
1618
|
+
result = imul(result, 31) + (this.p5s_1 == null ? 0 : this.p5s_1) | 0;
|
|
1623
1619
|
return result;
|
|
1624
1620
|
};
|
|
1625
1621
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1628,17 +1624,17 @@
|
|
|
1628
1624
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1629
1625
|
return false;
|
|
1630
1626
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1631
|
-
if (!this.
|
|
1627
|
+
if (!this.k5s_1.equals(tmp0_other_with_cast.k5s_1))
|
|
1632
1628
|
return false;
|
|
1633
|
-
if (!(this.
|
|
1629
|
+
if (!(this.l5s_1 == tmp0_other_with_cast.l5s_1))
|
|
1634
1630
|
return false;
|
|
1635
|
-
if (!(this.
|
|
1631
|
+
if (!(this.m5s_1 == tmp0_other_with_cast.m5s_1))
|
|
1636
1632
|
return false;
|
|
1637
|
-
if (!(this.
|
|
1633
|
+
if (!(this.n5s_1 == tmp0_other_with_cast.n5s_1))
|
|
1638
1634
|
return false;
|
|
1639
|
-
if (!(this.
|
|
1635
|
+
if (!(this.o5s_1 == tmp0_other_with_cast.o5s_1))
|
|
1640
1636
|
return false;
|
|
1641
|
-
if (!(this.
|
|
1637
|
+
if (!(this.p5s_1 == tmp0_other_with_cast.p5s_1))
|
|
1642
1638
|
return false;
|
|
1643
1639
|
return true;
|
|
1644
1640
|
};
|
|
@@ -1648,7 +1644,7 @@
|
|
|
1648
1644
|
// Inline function 'kotlin.arrayOf' call
|
|
1649
1645
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1650
1646
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1651
|
-
tmp.
|
|
1647
|
+
tmp.q5s_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1652
1648
|
}
|
|
1653
1649
|
var Companion_instance_9;
|
|
1654
1650
|
function Companion_getInstance_10() {
|
|
@@ -1659,74 +1655,74 @@
|
|
|
1659
1655
|
function $serializer_6() {
|
|
1660
1656
|
$serializer_instance_4 = this;
|
|
1661
1657
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1662
|
-
tmp0_serialDesc.
|
|
1663
|
-
tmp0_serialDesc.
|
|
1664
|
-
tmp0_serialDesc.
|
|
1665
|
-
this.
|
|
1666
|
-
}
|
|
1667
|
-
protoOf($serializer_6).
|
|
1668
|
-
var tmp0_desc = this.
|
|
1669
|
-
var tmp1_output = encoder.
|
|
1670
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1671
|
-
tmp1_output.
|
|
1672
|
-
tmp1_output.
|
|
1673
|
-
tmp1_output.
|
|
1674
|
-
tmp1_output.
|
|
1675
|
-
};
|
|
1676
|
-
protoOf($serializer_6).
|
|
1677
|
-
return this.
|
|
1678
|
-
};
|
|
1679
|
-
protoOf($serializer_6).
|
|
1680
|
-
var tmp0_desc = this.
|
|
1658
|
+
tmp0_serialDesc.e4i('data', false);
|
|
1659
|
+
tmp0_serialDesc.e4i('completionTime', false);
|
|
1660
|
+
tmp0_serialDesc.e4i('ticketId', false);
|
|
1661
|
+
this.r5s_1 = tmp0_serialDesc;
|
|
1662
|
+
}
|
|
1663
|
+
protoOf($serializer_6).s5s = function (encoder, value) {
|
|
1664
|
+
var tmp0_desc = this.r5s_1;
|
|
1665
|
+
var tmp1_output = encoder.n4a(tmp0_desc);
|
|
1666
|
+
var tmp2_cached = Companion_getInstance_10().q5s_1;
|
|
1667
|
+
tmp1_output.e4c(tmp0_desc, 0, tmp2_cached[0], value.t5s_1);
|
|
1668
|
+
tmp1_output.c4c(tmp0_desc, 1, value.u5s_1);
|
|
1669
|
+
tmp1_output.g4c(tmp0_desc, 2, StringSerializer_getInstance(), value.v5s_1);
|
|
1670
|
+
tmp1_output.o4a(tmp0_desc);
|
|
1671
|
+
};
|
|
1672
|
+
protoOf($serializer_6).b47 = function (encoder, value) {
|
|
1673
|
+
return this.s5s(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1674
|
+
};
|
|
1675
|
+
protoOf($serializer_6).c47 = function (decoder) {
|
|
1676
|
+
var tmp0_desc = this.r5s_1;
|
|
1681
1677
|
var tmp1_flag = true;
|
|
1682
1678
|
var tmp2_index = 0;
|
|
1683
1679
|
var tmp3_bitMask0 = 0;
|
|
1684
1680
|
var tmp4_local0 = null;
|
|
1685
1681
|
var tmp5_local1 = null;
|
|
1686
1682
|
var tmp6_local2 = null;
|
|
1687
|
-
var tmp7_input = decoder.
|
|
1688
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1689
|
-
if (tmp7_input.
|
|
1690
|
-
tmp4_local0 = tmp7_input.
|
|
1683
|
+
var tmp7_input = decoder.n4a(tmp0_desc);
|
|
1684
|
+
var tmp8_cached = Companion_getInstance_10().q5s_1;
|
|
1685
|
+
if (tmp7_input.d4b()) {
|
|
1686
|
+
tmp4_local0 = tmp7_input.z4a(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1691
1687
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1692
|
-
tmp5_local1 = tmp7_input.
|
|
1688
|
+
tmp5_local1 = tmp7_input.x4a(tmp0_desc, 1);
|
|
1693
1689
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1694
|
-
tmp6_local2 = tmp7_input.
|
|
1690
|
+
tmp6_local2 = tmp7_input.b4b(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1695
1691
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1696
1692
|
} else
|
|
1697
1693
|
while (tmp1_flag) {
|
|
1698
|
-
tmp2_index = tmp7_input.
|
|
1694
|
+
tmp2_index = tmp7_input.e4b(tmp0_desc);
|
|
1699
1695
|
switch (tmp2_index) {
|
|
1700
1696
|
case -1:
|
|
1701
1697
|
tmp1_flag = false;
|
|
1702
1698
|
break;
|
|
1703
1699
|
case 0:
|
|
1704
|
-
tmp4_local0 = tmp7_input.
|
|
1700
|
+
tmp4_local0 = tmp7_input.z4a(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1705
1701
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1706
1702
|
break;
|
|
1707
1703
|
case 1:
|
|
1708
|
-
tmp5_local1 = tmp7_input.
|
|
1704
|
+
tmp5_local1 = tmp7_input.x4a(tmp0_desc, 1);
|
|
1709
1705
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1710
1706
|
break;
|
|
1711
1707
|
case 2:
|
|
1712
|
-
tmp6_local2 = tmp7_input.
|
|
1708
|
+
tmp6_local2 = tmp7_input.b4b(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1713
1709
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1714
1710
|
break;
|
|
1715
1711
|
default:
|
|
1716
1712
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1717
1713
|
}
|
|
1718
1714
|
}
|
|
1719
|
-
tmp7_input.
|
|
1715
|
+
tmp7_input.o4a(tmp0_desc);
|
|
1720
1716
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1721
1717
|
};
|
|
1722
|
-
protoOf($serializer_6).
|
|
1723
|
-
return this.
|
|
1718
|
+
protoOf($serializer_6).a47 = function () {
|
|
1719
|
+
return this.r5s_1;
|
|
1724
1720
|
};
|
|
1725
|
-
protoOf($serializer_6).
|
|
1721
|
+
protoOf($serializer_6).t4i = function () {
|
|
1726
1722
|
// Inline function 'kotlin.arrayOf' call
|
|
1727
1723
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1728
1724
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1729
|
-
return [Companion_getInstance_10().
|
|
1725
|
+
return [Companion_getInstance_10().q5s_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1730
1726
|
};
|
|
1731
1727
|
var $serializer_instance_4;
|
|
1732
1728
|
function $serializer_getInstance_4() {
|
|
@@ -1736,11 +1732,11 @@
|
|
|
1736
1732
|
}
|
|
1737
1733
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1738
1734
|
if (!(7 === (7 & seen0))) {
|
|
1739
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1735
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().r5s_1);
|
|
1740
1736
|
}
|
|
1741
|
-
$this.
|
|
1742
|
-
$this.
|
|
1743
|
-
$this.
|
|
1737
|
+
$this.t5s_1 = data;
|
|
1738
|
+
$this.u5s_1 = completionTime;
|
|
1739
|
+
$this.v5s_1 = ticketId;
|
|
1744
1740
|
return $this;
|
|
1745
1741
|
}
|
|
1746
1742
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1749,12 +1745,12 @@
|
|
|
1749
1745
|
function IntegerSequencesDataDto() {
|
|
1750
1746
|
}
|
|
1751
1747
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1752
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1748
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.t5s_1) + ', completionTime=' + this.u5s_1 + ', ticketId=' + this.v5s_1 + ')';
|
|
1753
1749
|
};
|
|
1754
1750
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1755
|
-
var result = hashCode(this.
|
|
1756
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1757
|
-
result = imul(result, 31) + (this.
|
|
1751
|
+
var result = hashCode(this.t5s_1);
|
|
1752
|
+
result = imul(result, 31) + getStringHashCode(this.u5s_1) | 0;
|
|
1753
|
+
result = imul(result, 31) + (this.v5s_1 == null ? 0 : getStringHashCode(this.v5s_1)) | 0;
|
|
1758
1754
|
return result;
|
|
1759
1755
|
};
|
|
1760
1756
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1763,11 +1759,11 @@
|
|
|
1763
1759
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1764
1760
|
return false;
|
|
1765
1761
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1766
|
-
if (!equals(this.
|
|
1762
|
+
if (!equals(this.t5s_1, tmp0_other_with_cast.t5s_1))
|
|
1767
1763
|
return false;
|
|
1768
|
-
if (!(this.
|
|
1764
|
+
if (!(this.u5s_1 === tmp0_other_with_cast.u5s_1))
|
|
1769
1765
|
return false;
|
|
1770
|
-
if (!(this.
|
|
1766
|
+
if (!(this.v5s_1 == tmp0_other_with_cast.v5s_1))
|
|
1771
1767
|
return false;
|
|
1772
1768
|
return true;
|
|
1773
1769
|
};
|
|
@@ -1777,7 +1773,7 @@
|
|
|
1777
1773
|
function RandomOrgApiService() {
|
|
1778
1774
|
}
|
|
1779
1775
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1780
|
-
var tmp = new $throwIfErrorCOROUTINE$
|
|
1776
|
+
var tmp = new $throwIfErrorCOROUTINE$($this, bodyAsJson, response, $completion);
|
|
1781
1777
|
tmp.l9_1 = Unit_instance;
|
|
1782
1778
|
tmp.m9_1 = null;
|
|
1783
1779
|
return tmp.r9();
|
|
@@ -1786,23 +1782,23 @@
|
|
|
1786
1782
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1787
1783
|
}
|
|
1788
1784
|
function Companion_8() {
|
|
1789
|
-
this.
|
|
1785
|
+
this.k5t_1 = 52;
|
|
1790
1786
|
}
|
|
1791
1787
|
var Companion_instance_10;
|
|
1792
1788
|
function Companion_getInstance_11() {
|
|
1793
1789
|
return Companion_instance_10;
|
|
1794
1790
|
}
|
|
1795
|
-
function $getRandomCardDecksCOROUTINE$
|
|
1791
|
+
function $getRandomCardDecksCOROUTINE$(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1796
1792
|
CoroutineImpl.call(this, resultContinuation);
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1799
|
-
this.
|
|
1800
|
-
this.
|
|
1801
|
-
this.
|
|
1802
|
-
this.
|
|
1803
|
-
this.
|
|
1804
|
-
}
|
|
1805
|
-
protoOf($getRandomCardDecksCOROUTINE$
|
|
1793
|
+
this.t5t_1 = _this__u8e3s4;
|
|
1794
|
+
this.u5t_1 = min;
|
|
1795
|
+
this.v5t_1 = max;
|
|
1796
|
+
this.w5t_1 = decksCount;
|
|
1797
|
+
this.x5t_1 = cardsCount;
|
|
1798
|
+
this.y5t_1 = userData;
|
|
1799
|
+
this.z5t_1 = signed;
|
|
1800
|
+
}
|
|
1801
|
+
protoOf($getRandomCardDecksCOROUTINE$).r9 = function () {
|
|
1806
1802
|
var suspendResult = this.l9_1;
|
|
1807
1803
|
$sm: do
|
|
1808
1804
|
try {
|
|
@@ -1812,30 +1808,31 @@
|
|
|
1812
1808
|
this.k9_1 = 6;
|
|
1813
1809
|
this.k9_1 = 5;
|
|
1814
1810
|
var tmp_0 = this;
|
|
1815
|
-
tmp_0.
|
|
1811
|
+
tmp_0.a5u_1 = this.t5t_1.q5u_1;
|
|
1812
|
+
this.b5u_1 = this.a5u_1;
|
|
1816
1813
|
var tmp_1 = this;
|
|
1817
|
-
tmp_1.
|
|
1814
|
+
tmp_1.c5u_1 = this.b5u_1;
|
|
1818
1815
|
var tmp_2 = this;
|
|
1819
1816
|
var this_0 = new HttpRequestBuilder();
|
|
1820
1817
|
url(this_0, '/json-rpc/4/invoke');
|
|
1821
|
-
var tmp11_id = this.
|
|
1822
|
-
var tmp12_method = this.
|
|
1823
|
-
var tmp8_apiKey = this.
|
|
1824
|
-
var size = this.
|
|
1818
|
+
var tmp11_id = this.y5t_1.id;
|
|
1819
|
+
var tmp12_method = this.z5t_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1820
|
+
var tmp8_apiKey = this.t5t_1.r5u_1;
|
|
1821
|
+
var size = this.w5t_1;
|
|
1825
1822
|
var list = ArrayList_init_$Create$(size);
|
|
1826
1823
|
var inductionVariable = 0;
|
|
1827
1824
|
if (inductionVariable < size)
|
|
1828
1825
|
do {
|
|
1829
1826
|
var index = inductionVariable;
|
|
1830
1827
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1831
|
-
list.e(this.
|
|
1828
|
+
list.e(this.x5t_1);
|
|
1832
1829
|
}
|
|
1833
1830
|
while (inductionVariable < size);
|
|
1834
|
-
var tmp10_userData = this.
|
|
1835
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1831
|
+
var tmp10_userData = this.z5t_1 ? mapToDto(this.y5t_1) : null;
|
|
1832
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.w5t_1, list, this.u5t_1, this.v5t_1, false, null, tmp10_userData);
|
|
1836
1833
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1837
1834
|
if (body == null) {
|
|
1838
|
-
this_0.
|
|
1835
|
+
this_0.h2x_1 = NullBody_instance;
|
|
1839
1836
|
var tmp_3 = JsType_instance;
|
|
1840
1837
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1841
1838
|
var tmp_5;
|
|
@@ -1851,13 +1848,13 @@
|
|
|
1851
1848
|
}
|
|
1852
1849
|
tmp_5 = tmp_6;
|
|
1853
1850
|
}
|
|
1854
|
-
this_0.
|
|
1851
|
+
this_0.d33(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1855
1852
|
} else {
|
|
1856
1853
|
if (body instanceof OutgoingContent) {
|
|
1857
|
-
this_0.
|
|
1858
|
-
this_0.
|
|
1854
|
+
this_0.h2x_1 = body;
|
|
1855
|
+
this_0.d33(null);
|
|
1859
1856
|
} else {
|
|
1860
|
-
this_0.
|
|
1857
|
+
this_0.h2x_1 = body;
|
|
1861
1858
|
var tmp_7 = JsType_instance;
|
|
1862
1859
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1863
1860
|
var tmp_9;
|
|
@@ -1873,29 +1870,34 @@
|
|
|
1873
1870
|
}
|
|
1874
1871
|
tmp_9 = tmp_10;
|
|
1875
1872
|
}
|
|
1876
|
-
this_0.
|
|
1873
|
+
this_0.d33(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1877
1874
|
}
|
|
1878
1875
|
}
|
|
1879
1876
|
|
|
1880
|
-
tmp_2.
|
|
1881
|
-
this.
|
|
1877
|
+
tmp_2.d5u_1 = this_0;
|
|
1878
|
+
this.e5u_1 = this.c5u_1;
|
|
1879
|
+
this.f5u_1 = this.d5u_1;
|
|
1880
|
+
this.f5u_1.f2x_1 = Companion_getInstance().r2l_1;
|
|
1882
1881
|
var tmp_11 = this;
|
|
1883
|
-
tmp_11.
|
|
1882
|
+
tmp_11.g5u_1 = this.e5u_1;
|
|
1884
1883
|
var tmp_12 = this;
|
|
1885
|
-
tmp_12.
|
|
1884
|
+
tmp_12.h5u_1 = this.f5u_1;
|
|
1885
|
+
this.i5u_1 = this.g5u_1;
|
|
1886
|
+
this.j5u_1 = this.h5u_1;
|
|
1886
1887
|
this.j9_1 = 1;
|
|
1887
|
-
suspendResult = (new HttpStatement(this.
|
|
1888
|
+
suspendResult = (new HttpStatement(this.j5u_1, this.i5u_1)).z3q(this);
|
|
1888
1889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1889
1890
|
return suspendResult;
|
|
1890
1891
|
}
|
|
1891
1892
|
|
|
1892
1893
|
continue $sm;
|
|
1893
1894
|
case 1:
|
|
1894
|
-
this.
|
|
1895
|
+
this.k5u_1 = suspendResult;
|
|
1895
1896
|
var tmp_13 = this;
|
|
1896
|
-
tmp_13.
|
|
1897
|
+
tmp_13.l5u_1 = this.k5u_1;
|
|
1898
|
+
this.m5u_1 = this.l5u_1;
|
|
1897
1899
|
this.j9_1 = 2;
|
|
1898
|
-
var tmp_14 = this.
|
|
1900
|
+
var tmp_14 = this.m5u_1.m30();
|
|
1899
1901
|
var tmp_15 = JsType_instance;
|
|
1900
1902
|
var tmp_16 = getKClass(JsonObject);
|
|
1901
1903
|
var tmp_17;
|
|
@@ -1912,7 +1914,7 @@
|
|
|
1912
1914
|
tmp_17 = tmp_18;
|
|
1913
1915
|
}
|
|
1914
1916
|
|
|
1915
|
-
suspendResult = tmp_14.
|
|
1917
|
+
suspendResult = tmp_14.q2z(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1916
1918
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1917
1919
|
return suspendResult;
|
|
1918
1920
|
}
|
|
@@ -1920,9 +1922,9 @@
|
|
|
1920
1922
|
continue $sm;
|
|
1921
1923
|
case 2:
|
|
1922
1924
|
var tmp_19 = this;
|
|
1923
|
-
tmp_19.
|
|
1925
|
+
tmp_19.n5u_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1924
1926
|
this.j9_1 = 3;
|
|
1925
|
-
suspendResult = throwIfError(this.
|
|
1927
|
+
suspendResult = throwIfError(this.t5t_1, this.n5u_1, this.k5u_1, this);
|
|
1926
1928
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1927
1929
|
return suspendResult;
|
|
1928
1930
|
}
|
|
@@ -1930,9 +1932,10 @@
|
|
|
1930
1932
|
continue $sm;
|
|
1931
1933
|
case 3:
|
|
1932
1934
|
var tmp_20 = this;
|
|
1933
|
-
tmp_20.
|
|
1935
|
+
tmp_20.o5u_1 = this.k5u_1;
|
|
1936
|
+
this.p5u_1 = this.o5u_1;
|
|
1934
1937
|
this.j9_1 = 4;
|
|
1935
|
-
var tmp_21 = this.
|
|
1938
|
+
var tmp_21 = this.p5u_1.m30();
|
|
1936
1939
|
var tmp_22 = JsType_instance;
|
|
1937
1940
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1938
1941
|
var tmp_24;
|
|
@@ -1949,7 +1952,7 @@
|
|
|
1949
1952
|
tmp_24 = tmp_25;
|
|
1950
1953
|
}
|
|
1951
1954
|
|
|
1952
|
-
suspendResult = tmp_21.
|
|
1955
|
+
suspendResult = tmp_21.q2z(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1953
1956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1954
1957
|
return suspendResult;
|
|
1955
1958
|
}
|
|
@@ -1957,10 +1960,10 @@
|
|
|
1957
1960
|
continue $sm;
|
|
1958
1961
|
case 4:
|
|
1959
1962
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1960
|
-
var randomJson = extractRandomResult(this.
|
|
1961
|
-
var tmp14_cardDecks = responseDto.
|
|
1962
|
-
var tmp15_signature = responseDto.
|
|
1963
|
-
var tmp16_id = responseDto.
|
|
1963
|
+
var randomJson = extractRandomResult(this.t5t_1, this.n5u_1);
|
|
1964
|
+
var tmp14_cardDecks = responseDto.g5s_1.k5s_1.t5s_1;
|
|
1965
|
+
var tmp15_signature = responseDto.g5s_1.l5s_1;
|
|
1966
|
+
var tmp16_id = responseDto.h5s_1;
|
|
1964
1967
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1965
1968
|
case 5:
|
|
1966
1969
|
this.k9_1 = 6;
|
|
@@ -1990,13 +1993,13 @@
|
|
|
1990
1993
|
}
|
|
1991
1994
|
while (true);
|
|
1992
1995
|
};
|
|
1993
|
-
function $throwIfErrorCOROUTINE$
|
|
1996
|
+
function $throwIfErrorCOROUTINE$(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1994
1997
|
CoroutineImpl.call(this, resultContinuation);
|
|
1995
|
-
this.
|
|
1996
|
-
this.
|
|
1997
|
-
this.
|
|
1998
|
+
this.f5t_1 = _this__u8e3s4;
|
|
1999
|
+
this.g5t_1 = bodyAsJson;
|
|
2000
|
+
this.h5t_1 = response;
|
|
1998
2001
|
}
|
|
1999
|
-
protoOf($throwIfErrorCOROUTINE$
|
|
2002
|
+
protoOf($throwIfErrorCOROUTINE$).r9 = function () {
|
|
2000
2003
|
var suspendResult = this.l9_1;
|
|
2001
2004
|
$sm: do
|
|
2002
2005
|
try {
|
|
@@ -2004,12 +2007,13 @@
|
|
|
2004
2007
|
switch (tmp) {
|
|
2005
2008
|
case 0:
|
|
2006
2009
|
this.k9_1 = 3;
|
|
2007
|
-
var this_0 = this.
|
|
2008
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2010
|
+
var this_0 = this.g5t_1;
|
|
2011
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2('error')) {
|
|
2009
2012
|
var tmp_0 = this;
|
|
2010
|
-
tmp_0.
|
|
2013
|
+
tmp_0.i5t_1 = this.h5t_1;
|
|
2014
|
+
this.j5t_1 = this.i5t_1;
|
|
2011
2015
|
this.j9_1 = 2;
|
|
2012
|
-
var tmp_1 = this.
|
|
2016
|
+
var tmp_1 = this.j5t_1.m30();
|
|
2013
2017
|
var tmp_2 = JsType_instance;
|
|
2014
2018
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2015
2019
|
var tmp_4;
|
|
@@ -2025,7 +2029,7 @@
|
|
|
2025
2029
|
}
|
|
2026
2030
|
tmp_4 = tmp_5;
|
|
2027
2031
|
}
|
|
2028
|
-
suspendResult = tmp_1.
|
|
2032
|
+
suspendResult = tmp_1.q2z(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2029
2033
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2030
2034
|
return suspendResult;
|
|
2031
2035
|
}
|
|
@@ -2039,10 +2043,10 @@
|
|
|
2039
2043
|
return Unit_instance;
|
|
2040
2044
|
case 2:
|
|
2041
2045
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2042
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2043
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2044
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2045
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2046
|
+
var tmp18_safe_receiver = errorResponseDto.y5q_1;
|
|
2047
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.b5r_1;
|
|
2048
|
+
var tmp19_safe_receiver = errorResponseDto.y5q_1;
|
|
2049
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.c5r_1);
|
|
2046
2050
|
case 3:
|
|
2047
2051
|
throw this.m9_1;
|
|
2048
2052
|
}
|
|
@@ -2058,11 +2062,11 @@
|
|
|
2058
2062
|
while (true);
|
|
2059
2063
|
};
|
|
2060
2064
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2061
|
-
this.
|
|
2062
|
-
this.
|
|
2065
|
+
this.q5u_1 = client;
|
|
2066
|
+
this.r5u_1 = apiKey;
|
|
2063
2067
|
}
|
|
2064
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2065
|
-
var tmp = new $getRandomCardDecksCOROUTINE$
|
|
2068
|
+
protoOf(RandomOrgApiServiceImpl).w5s = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2069
|
+
var tmp = new $getRandomCardDecksCOROUTINE$(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2066
2070
|
tmp.l9_1 = Unit_instance;
|
|
2067
2071
|
tmp.m9_1 = null;
|
|
2068
2072
|
return tmp.r9();
|
|
@@ -2073,8 +2077,8 @@
|
|
|
2073
2077
|
failedRequestAttempts = failedRequestAttempts === VOID ? 1 : failedRequestAttempts;
|
|
2074
2078
|
var tmp;
|
|
2075
2079
|
if (failedAttemptCooldown === VOID) {
|
|
2076
|
-
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
2077
2080
|
Companion_getInstance_0();
|
|
2081
|
+
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
2078
2082
|
var this_0 = new Long(30000, 0);
|
|
2079
2083
|
tmp = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
2080
2084
|
} else {
|
|
@@ -2086,31 +2090,31 @@
|
|
|
2086
2090
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2087
2091
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2088
2092
|
}
|
|
2089
|
-
protoOf(PoolParams).
|
|
2093
|
+
protoOf(PoolParams).r5q = function () {
|
|
2090
2094
|
return this.poolSize;
|
|
2091
2095
|
};
|
|
2092
|
-
protoOf(PoolParams).
|
|
2096
|
+
protoOf(PoolParams).s5q = function () {
|
|
2093
2097
|
return this.thresholdForUsedPool;
|
|
2094
2098
|
};
|
|
2095
|
-
protoOf(PoolParams).
|
|
2099
|
+
protoOf(PoolParams).s5u = function () {
|
|
2096
2100
|
return this.failedRequestAttempts;
|
|
2097
2101
|
};
|
|
2098
|
-
protoOf(PoolParams).
|
|
2102
|
+
protoOf(PoolParams).t5u = function () {
|
|
2099
2103
|
return this.failedAttemptCooldown;
|
|
2100
2104
|
};
|
|
2101
|
-
protoOf(PoolParams).
|
|
2105
|
+
protoOf(PoolParams).gf = function () {
|
|
2102
2106
|
return this.poolSize;
|
|
2103
2107
|
};
|
|
2104
|
-
protoOf(PoolParams).
|
|
2108
|
+
protoOf(PoolParams).hf = function () {
|
|
2105
2109
|
return this.thresholdForUsedPool;
|
|
2106
2110
|
};
|
|
2107
|
-
protoOf(PoolParams).
|
|
2111
|
+
protoOf(PoolParams).gm = function () {
|
|
2108
2112
|
return this.failedRequestAttempts;
|
|
2109
2113
|
};
|
|
2110
|
-
protoOf(PoolParams).
|
|
2114
|
+
protoOf(PoolParams).u5u = function () {
|
|
2111
2115
|
return this.failedAttemptCooldown;
|
|
2112
2116
|
};
|
|
2113
|
-
protoOf(PoolParams).
|
|
2117
|
+
protoOf(PoolParams).v5u = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2114
2118
|
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2115
2119
|
};
|
|
2116
2120
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2118,7 +2122,7 @@
|
|
|
2118
2122
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2119
2123
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2120
2124
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2121
|
-
return this.
|
|
2125
|
+
return $super === VOID ? this.v5u(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) : $super.v5u.call(this, poolSize, thresholdForUsedPool, failedRequestAttempts, new Duration(failedAttemptCooldown));
|
|
2122
2126
|
};
|
|
2123
2127
|
protoOf(PoolParams).toString = function () {
|
|
2124
2128
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2149,74 +2153,70 @@
|
|
|
2149
2153
|
function RandomPoolProvider() {
|
|
2150
2154
|
}
|
|
2151
2155
|
function _get_cardDecksCount__ihvb5i($this) {
|
|
2152
|
-
return $this.
|
|
2156
|
+
return $this.z5u_1.b5q_1.m();
|
|
2153
2157
|
}
|
|
2154
2158
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2155
2159
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2156
2160
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2157
2161
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2158
|
-
this.
|
|
2159
|
-
this.
|
|
2160
|
-
this.
|
|
2161
|
-
this.
|
|
2162
|
+
this.z5u_1 = randomResult;
|
|
2163
|
+
this.a5v_1 = usedByGames;
|
|
2164
|
+
this.b5v_1 = reservedCardDecks;
|
|
2165
|
+
this.c5v_1 = isUsed;
|
|
2162
2166
|
}
|
|
2163
|
-
protoOf(RandomPoolValue).
|
|
2164
|
-
if (this.
|
|
2167
|
+
protoOf(RandomPoolValue).d5v = function (minRoundsCount) {
|
|
2168
|
+
if (this.c5v_1) {
|
|
2165
2169
|
return false;
|
|
2166
2170
|
}
|
|
2167
|
-
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.
|
|
2171
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.b5v_1 | 0;
|
|
2168
2172
|
return availableCount >= minRoundsCount;
|
|
2169
2173
|
};
|
|
2170
|
-
protoOf(RandomPoolValue).
|
|
2171
|
-
var previousReservedCardDeckIndex = this.
|
|
2174
|
+
protoOf(RandomPoolValue).e5v = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2175
|
+
var previousReservedCardDeckIndex = this.b5v_1;
|
|
2172
2176
|
// Inline function 'kotlin.apply' call
|
|
2173
|
-
var this_0 = toMutableMap(this.
|
|
2174
|
-
|
|
2175
|
-
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2176
|
-
this_0.n2(gameId, previousReservedCardDeckIndex);
|
|
2177
|
+
var this_0 = toMutableMap(this.a5v_1);
|
|
2178
|
+
this_0.k2(gameId, previousReservedCardDeckIndex);
|
|
2177
2179
|
var newNewUsedBy = toMap(this_0);
|
|
2178
2180
|
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2179
|
-
return this.
|
|
2181
|
+
return this.f5v(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2180
2182
|
};
|
|
2181
|
-
protoOf(RandomPoolValue).
|
|
2182
|
-
var currentCardDeckIndex = getValue(this.
|
|
2183
|
+
protoOf(RandomPoolValue).g5v = function (gameId) {
|
|
2184
|
+
var currentCardDeckIndex = getValue(this.a5v_1, gameId);
|
|
2183
2185
|
var tmp;
|
|
2184
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2186
|
+
if (currentCardDeckIndex === get_lastIndex(this.z5u_1.b5q_1)) {
|
|
2185
2187
|
tmp = 0;
|
|
2186
2188
|
} else {
|
|
2187
2189
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2188
2190
|
}
|
|
2189
2191
|
var newCardDeckIndex = tmp;
|
|
2190
2192
|
// Inline function 'kotlin.apply' call
|
|
2191
|
-
var this_0 = toMutableMap(this.
|
|
2192
|
-
|
|
2193
|
-
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2194
|
-
this_0.n2(gameId, newCardDeckIndex);
|
|
2193
|
+
var this_0 = toMutableMap(this.a5v_1);
|
|
2194
|
+
this_0.k2(gameId, newCardDeckIndex);
|
|
2195
2195
|
var newNewUsedBy = toMap(this_0);
|
|
2196
|
-
return this.
|
|
2196
|
+
return this.f5v(VOID, newNewUsedBy);
|
|
2197
2197
|
};
|
|
2198
|
-
protoOf(RandomPoolValue).
|
|
2199
|
-
var index = getValue(this.
|
|
2200
|
-
return new GameCardDeckData(index, this.
|
|
2198
|
+
protoOf(RandomPoolValue).h5v = function (gameId) {
|
|
2199
|
+
var index = getValue(this.a5v_1, gameId);
|
|
2200
|
+
return new GameCardDeckData(index, this.z5u_1.b5q_1.o(index));
|
|
2201
2201
|
};
|
|
2202
|
-
protoOf(RandomPoolValue).
|
|
2202
|
+
protoOf(RandomPoolValue).i5v = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2203
2203
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2204
2204
|
};
|
|
2205
|
-
protoOf(RandomPoolValue).
|
|
2206
|
-
randomResult = randomResult === VOID ? this.
|
|
2207
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2208
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2209
|
-
isUsed = isUsed === VOID ? this.
|
|
2210
|
-
return $super === VOID ? this.
|
|
2205
|
+
protoOf(RandomPoolValue).f5v = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2206
|
+
randomResult = randomResult === VOID ? this.z5u_1 : randomResult;
|
|
2207
|
+
usedByGames = usedByGames === VOID ? this.a5v_1 : usedByGames;
|
|
2208
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.b5v_1 : reservedCardDecks;
|
|
2209
|
+
isUsed = isUsed === VOID ? this.c5v_1 : isUsed;
|
|
2210
|
+
return $super === VOID ? this.i5v(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.i5v.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2211
2211
|
};
|
|
2212
2212
|
protoOf(RandomPoolValue).toString = function () {
|
|
2213
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2213
|
+
return 'RandomPoolValue(randomResult=' + this.z5u_1.toString() + ', usedByGames=' + toString(this.a5v_1) + ', reservedCardDecks=' + this.b5v_1 + ', isUsed=' + this.c5v_1 + ')';
|
|
2214
2214
|
};
|
|
2215
2215
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2216
|
-
var result = this.
|
|
2217
|
-
result = imul(result, 31) + hashCode(this.
|
|
2218
|
-
result = imul(result, 31) + this.
|
|
2219
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2216
|
+
var result = this.z5u_1.hashCode();
|
|
2217
|
+
result = imul(result, 31) + hashCode(this.a5v_1) | 0;
|
|
2218
|
+
result = imul(result, 31) + this.b5v_1 | 0;
|
|
2219
|
+
result = imul(result, 31) + getBooleanHashCode(this.c5v_1) | 0;
|
|
2220
2220
|
return result;
|
|
2221
2221
|
};
|
|
2222
2222
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2225,79 +2225,32 @@
|
|
|
2225
2225
|
if (!(other instanceof RandomPoolValue))
|
|
2226
2226
|
return false;
|
|
2227
2227
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2228
|
-
if (!this.
|
|
2228
|
+
if (!this.z5u_1.equals(tmp0_other_with_cast.z5u_1))
|
|
2229
2229
|
return false;
|
|
2230
|
-
if (!equals(this.
|
|
2230
|
+
if (!equals(this.a5v_1, tmp0_other_with_cast.a5v_1))
|
|
2231
2231
|
return false;
|
|
2232
|
-
if (!(this.
|
|
2232
|
+
if (!(this.b5v_1 === tmp0_other_with_cast.b5v_1))
|
|
2233
2233
|
return false;
|
|
2234
|
-
if (!(this.
|
|
2234
|
+
if (!(this.c5v_1 === tmp0_other_with_cast.c5v_1))
|
|
2235
2235
|
return false;
|
|
2236
2236
|
return true;
|
|
2237
2237
|
};
|
|
2238
2238
|
function getExceptionIfCooldown($this) {
|
|
2239
|
-
var currentTime
|
|
2240
|
-
|
|
2241
|
-
|
|
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;
|
|
2239
|
+
var currentTime;
|
|
2240
|
+
var tmp;
|
|
2241
|
+
throwLinkageError("Property accessor 'latestFailedAttemptTime.<get-latestFailedAttemptTime>' can not be called: Property accessor uses unlinked class symbol 'kotlinx.datetime/Instant|null[0]'");
|
|
2267
2242
|
}
|
|
2268
2243
|
function mapToRandomExceptionIfError($this, error) {
|
|
2269
|
-
|
|
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;
|
|
2244
|
+
throwLinkageError("Can not get instance of singleton 'System': No class found for symbol 'kotlinx.datetime/Clock.System|null[0]'");
|
|
2292
2245
|
}
|
|
2293
2246
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2294
|
-
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$
|
|
2247
|
+
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2295
2248
|
tmp.l9_1 = Unit_instance;
|
|
2296
2249
|
tmp.m9_1 = null;
|
|
2297
2250
|
return tmp.r9();
|
|
2298
2251
|
}
|
|
2299
2252
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2300
|
-
var existingCardDeck = $this.
|
|
2253
|
+
var existingCardDeck = $this.h5w_1.h2(userData.gameId);
|
|
2301
2254
|
var tmp;
|
|
2302
2255
|
if (!(existingCardDeck == null)) {
|
|
2303
2256
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2307,19 +2260,19 @@
|
|
|
2307
2260
|
return tmp;
|
|
2308
2261
|
}
|
|
2309
2262
|
function getPreparedOrRequestPool($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2310
|
-
var tmp = new $getPreparedOrRequestPoolCOROUTINE$
|
|
2263
|
+
var tmp = new $getPreparedOrRequestPoolCOROUTINE$($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2311
2264
|
tmp.l9_1 = Unit_instance;
|
|
2312
2265
|
tmp.m9_1 = null;
|
|
2313
2266
|
return tmp.r9();
|
|
2314
2267
|
}
|
|
2315
2268
|
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2316
|
-
return withContext($this.
|
|
2269
|
+
return withContext($this.d5w_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2317
2270
|
}
|
|
2318
2271
|
function Companion_9() {
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2272
|
+
this.b5x_1 = 100;
|
|
2273
|
+
this.c5x_1 = 3;
|
|
2274
|
+
this.d5x_1 = 3000;
|
|
2275
|
+
this.e5x_1 = 10000;
|
|
2323
2276
|
}
|
|
2324
2277
|
var Companion_instance_11;
|
|
2325
2278
|
function Companion_getInstance_12() {
|
|
@@ -2329,18 +2282,18 @@
|
|
|
2329
2282
|
return uuid4().toString();
|
|
2330
2283
|
}
|
|
2331
2284
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2332
|
-
this.
|
|
2333
|
-
this.
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2338
|
-
this.
|
|
2339
|
-
this.
|
|
2285
|
+
this.n5x_1 = this$0;
|
|
2286
|
+
this.o5x_1 = $minRoundsCountInPool;
|
|
2287
|
+
this.p5x_1 = $userData;
|
|
2288
|
+
this.q5x_1 = $min;
|
|
2289
|
+
this.r5x_1 = $max;
|
|
2290
|
+
this.s5x_1 = $cardsCount;
|
|
2291
|
+
this.t5x_1 = $signed;
|
|
2292
|
+
this.u5x_1 = $requestDurationWarnMillis;
|
|
2340
2293
|
CoroutineImpl.call(this, resultContinuation);
|
|
2341
2294
|
}
|
|
2342
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2343
|
-
var tmp = this.
|
|
2295
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).c5y = function ($this$withContext, $completion) {
|
|
2296
|
+
var tmp = this.p1f($this$withContext, $completion);
|
|
2344
2297
|
tmp.l9_1 = Unit_instance;
|
|
2345
2298
|
tmp.m9_1 = null;
|
|
2346
2299
|
var tmp_0 = tmp.r9();
|
|
@@ -2348,8 +2301,8 @@
|
|
|
2348
2301
|
return tmp_0;
|
|
2349
2302
|
return tmp_0;
|
|
2350
2303
|
};
|
|
2351
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2352
|
-
return this.
|
|
2304
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).z9 = function (p1, $completion) {
|
|
2305
|
+
return this.c5y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2353
2306
|
};
|
|
2354
2307
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).r9 = function () {
|
|
2355
2308
|
var suspendResult = this.l9_1;
|
|
@@ -2360,31 +2313,32 @@
|
|
|
2360
2313
|
case 0:
|
|
2361
2314
|
this.k9_1 = 10;
|
|
2362
2315
|
var tmp_0 = this;
|
|
2363
|
-
tmp_0.
|
|
2316
|
+
tmp_0.w5x_1 = this.n5x_1.f5w_1;
|
|
2317
|
+
this.x5x_1 = this.w5x_1;
|
|
2364
2318
|
var tmp_1 = this;
|
|
2365
|
-
tmp_1.
|
|
2319
|
+
tmp_1.y5x_1 = null;
|
|
2366
2320
|
this.j9_1 = 1;
|
|
2367
|
-
suspendResult = this.
|
|
2321
|
+
suspendResult = this.x5x_1.r1n(this.y5x_1, this);
|
|
2368
2322
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2369
2323
|
return suspendResult;
|
|
2370
2324
|
}
|
|
2371
2325
|
|
|
2372
2326
|
continue $sm;
|
|
2373
2327
|
case 1:
|
|
2374
|
-
this.
|
|
2328
|
+
this.z5x_1 = Unit_instance;
|
|
2375
2329
|
this.j9_1 = 2;
|
|
2376
2330
|
continue $sm;
|
|
2377
2331
|
case 2:
|
|
2378
2332
|
this.k9_1 = 9;
|
|
2379
|
-
this.
|
|
2333
|
+
this.a5y_1 = Unit_instance;
|
|
2380
2334
|
this.j9_1 = 3;
|
|
2381
2335
|
continue $sm;
|
|
2382
2336
|
case 3:
|
|
2383
|
-
this.
|
|
2384
|
-
if (!(this.
|
|
2337
|
+
this.b5y_1 = getExceptionIfCooldown(this.n5x_1);
|
|
2338
|
+
if (!(this.b5y_1 == null)) {
|
|
2385
2339
|
var tmp_2 = this;
|
|
2386
|
-
var exception = this.
|
|
2387
|
-
tmp_2.
|
|
2340
|
+
var exception = this.b5y_1;
|
|
2341
|
+
tmp_2.a5y_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2388
2342
|
this.j9_1 = 7;
|
|
2389
2343
|
continue $sm;
|
|
2390
2344
|
} else {
|
|
@@ -2395,7 +2349,7 @@
|
|
|
2395
2349
|
case 4:
|
|
2396
2350
|
this.k9_1 = 6;
|
|
2397
2351
|
this.j9_1 = 5;
|
|
2398
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2352
|
+
suspendResult = getOrLoadGameCardDeckData(this.n5x_1, this.o5x_1, this.p5x_1, this.q5x_1, this.r5x_1, this.s5x_1, this.t5x_1, this.u5x_1, this);
|
|
2399
2353
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2400
2354
|
return suspendResult;
|
|
2401
2355
|
}
|
|
@@ -2404,7 +2358,7 @@
|
|
|
2404
2358
|
case 5:
|
|
2405
2359
|
var cardDeckData = suspendResult;
|
|
2406
2360
|
var tmp_3 = this;
|
|
2407
|
-
tmp_3.
|
|
2361
|
+
tmp_3.a5y_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2408
2362
|
this.j9_1 = 7;
|
|
2409
2363
|
continue $sm;
|
|
2410
2364
|
case 6:
|
|
@@ -2413,8 +2367,8 @@
|
|
|
2413
2367
|
if (tmp_4 instanceof Error) {
|
|
2414
2368
|
var error = this.m9_1;
|
|
2415
2369
|
var tmp_5 = this;
|
|
2416
|
-
var exception_0 = mapToRandomExceptionIfError(this.
|
|
2417
|
-
tmp_5.
|
|
2370
|
+
var exception_0 = mapToRandomExceptionIfError(this.n5x_1, error);
|
|
2371
|
+
tmp_5.a5y_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2418
2372
|
this.j9_1 = 7;
|
|
2419
2373
|
continue $sm;
|
|
2420
2374
|
} else {
|
|
@@ -2422,19 +2376,19 @@
|
|
|
2422
2376
|
}
|
|
2423
2377
|
|
|
2424
2378
|
case 7:
|
|
2425
|
-
this.
|
|
2379
|
+
this.z5x_1 = this.a5y_1;
|
|
2426
2380
|
this.k9_1 = 10;
|
|
2427
2381
|
this.j9_1 = 8;
|
|
2428
2382
|
continue $sm;
|
|
2429
2383
|
case 8:
|
|
2430
|
-
var tmp_6 = this.
|
|
2384
|
+
var tmp_6 = this.z5x_1;
|
|
2431
2385
|
this.k9_1 = 10;
|
|
2432
|
-
this.
|
|
2386
|
+
this.x5x_1.c1n(this.y5x_1);
|
|
2433
2387
|
return tmp_6;
|
|
2434
2388
|
case 9:
|
|
2435
2389
|
this.k9_1 = 10;
|
|
2436
2390
|
var t = this.m9_1;
|
|
2437
|
-
this.
|
|
2391
|
+
this.x5x_1.c1n(this.y5x_1);
|
|
2438
2392
|
throw t;
|
|
2439
2393
|
case 10:
|
|
2440
2394
|
throw this.m9_1;
|
|
@@ -2450,36 +2404,36 @@
|
|
|
2450
2404
|
}
|
|
2451
2405
|
while (true);
|
|
2452
2406
|
};
|
|
2453
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2454
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2455
|
-
i.
|
|
2407
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).p1f = function ($this$withContext, completion) {
|
|
2408
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.n5x_1, this.o5x_1, this.p5x_1, this.q5x_1, this.r5x_1, this.s5x_1, this.t5x_1, this.u5x_1, completion);
|
|
2409
|
+
i.v5x_1 = $this$withContext;
|
|
2456
2410
|
return i;
|
|
2457
2411
|
};
|
|
2458
2412
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2459
2413
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2460
2414
|
var l = function ($this$withContext, $completion) {
|
|
2461
|
-
return i.
|
|
2415
|
+
return i.c5y($this$withContext, $completion);
|
|
2462
2416
|
};
|
|
2463
2417
|
l.$arity = 1;
|
|
2464
2418
|
return l;
|
|
2465
2419
|
}
|
|
2466
2420
|
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2467
|
-
this.
|
|
2468
|
-
this.
|
|
2469
|
-
this.
|
|
2470
|
-
this.
|
|
2471
|
-
this.
|
|
2472
|
-
this.
|
|
2421
|
+
this.l5y_1 = this$0;
|
|
2422
|
+
this.m5y_1 = $min;
|
|
2423
|
+
this.n5y_1 = $max;
|
|
2424
|
+
this.o5y_1 = $cardsCount;
|
|
2425
|
+
this.p5y_1 = $signed;
|
|
2426
|
+
this.q5y_1 = $requestDurationWarnMillis;
|
|
2473
2427
|
CoroutineImpl.call(this, resultContinuation);
|
|
2474
2428
|
}
|
|
2475
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2476
|
-
var tmp = this.
|
|
2429
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).s5y = function ($this$withContext, $completion) {
|
|
2430
|
+
var tmp = this.p1f($this$withContext, $completion);
|
|
2477
2431
|
tmp.l9_1 = Unit_instance;
|
|
2478
2432
|
tmp.m9_1 = null;
|
|
2479
2433
|
return tmp.r9();
|
|
2480
2434
|
};
|
|
2481
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2482
|
-
return this.
|
|
2435
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).z9 = function (p1, $completion) {
|
|
2436
|
+
return this.s5y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2483
2437
|
};
|
|
2484
2438
|
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).r9 = function () {
|
|
2485
2439
|
var suspendResult = this.l9_1;
|
|
@@ -2489,9 +2443,8 @@
|
|
|
2489
2443
|
switch (tmp) {
|
|
2490
2444
|
case 0:
|
|
2491
2445
|
this.k9_1 = 2;
|
|
2492
|
-
this.y5t_1 = System_instance.w54();
|
|
2493
2446
|
this.j9_1 = 1;
|
|
2494
|
-
suspendResult = this.
|
|
2447
|
+
suspendResult = this.l5y_1.b5w_1.w5s(this.m5y_1, this.n5y_1, this.l5y_1.a5w_1.poolSize, this.o5y_1, new CardDecksRequestUserData(this.l5y_1.e5w_1(), this.l5y_1.a5w_1.poolSize), this.p5y_1, this);
|
|
2495
2448
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2496
2449
|
return suspendResult;
|
|
2497
2450
|
}
|
|
@@ -2499,18 +2452,9 @@
|
|
|
2499
2452
|
continue $sm;
|
|
2500
2453
|
case 1:
|
|
2501
2454
|
var result = suspendResult;
|
|
2502
|
-
var requestEndTime
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
var this_0 = this.w5t_1;
|
|
2506
|
-
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2507
|
-
var tmp_0 = 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ');
|
|
2508
|
-
Companion_getInstance_0();
|
|
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()))));
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
return new RandomPoolValue(result);
|
|
2455
|
+
var requestEndTime;
|
|
2456
|
+
throwLinkageError("Can not read value from variable 'requestEndTime': Variable uses unlinked class symbol 'kotlinx.datetime/Instant|null[0]'");
|
|
2457
|
+
break;
|
|
2514
2458
|
case 2:
|
|
2515
2459
|
throw this.m9_1;
|
|
2516
2460
|
}
|
|
@@ -2525,31 +2469,31 @@
|
|
|
2525
2469
|
}
|
|
2526
2470
|
while (true);
|
|
2527
2471
|
};
|
|
2528
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2529
|
-
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.
|
|
2530
|
-
i.
|
|
2472
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).p1f = function ($this$withContext, completion) {
|
|
2473
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.l5y_1, this.m5y_1, this.n5y_1, this.o5y_1, this.p5y_1, this.q5y_1, completion);
|
|
2474
|
+
i.r5y_1 = $this$withContext;
|
|
2531
2475
|
return i;
|
|
2532
2476
|
};
|
|
2533
2477
|
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2534
2478
|
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2535
2479
|
var l = function ($this$withContext, $completion) {
|
|
2536
|
-
return i.
|
|
2480
|
+
return i.s5y($this$withContext, $completion);
|
|
2537
2481
|
};
|
|
2538
2482
|
l.$arity = 1;
|
|
2539
2483
|
return l;
|
|
2540
2484
|
}
|
|
2541
|
-
function $getOrLoadGameCardDeckDataCOROUTINE$
|
|
2485
|
+
function $getOrLoadGameCardDeckDataCOROUTINE$(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2542
2486
|
CoroutineImpl.call(this, resultContinuation);
|
|
2543
|
-
this.
|
|
2544
|
-
this.
|
|
2545
|
-
this.
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2548
|
-
this.
|
|
2549
|
-
this.
|
|
2550
|
-
this.
|
|
2551
|
-
}
|
|
2552
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$
|
|
2487
|
+
this.r5v_1 = _this__u8e3s4;
|
|
2488
|
+
this.s5v_1 = minRoundsCountInPool;
|
|
2489
|
+
this.t5v_1 = userData;
|
|
2490
|
+
this.u5v_1 = min;
|
|
2491
|
+
this.v5v_1 = max;
|
|
2492
|
+
this.w5v_1 = cardsCount;
|
|
2493
|
+
this.x5v_1 = signed;
|
|
2494
|
+
this.y5v_1 = requestDurationWarnMillis;
|
|
2495
|
+
}
|
|
2496
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).r9 = function () {
|
|
2553
2497
|
var suspendResult = this.l9_1;
|
|
2554
2498
|
$sm: do
|
|
2555
2499
|
try {
|
|
@@ -2557,9 +2501,9 @@
|
|
|
2557
2501
|
switch (tmp) {
|
|
2558
2502
|
case 0:
|
|
2559
2503
|
this.k9_1 = 2;
|
|
2560
|
-
this.
|
|
2504
|
+
this.z5v_1 = this.t5v_1.gameId;
|
|
2561
2505
|
this.j9_1 = 1;
|
|
2562
|
-
suspendResult = getPreparedOrRequestPool(this.
|
|
2506
|
+
suspendResult = getPreparedOrRequestPool(this.r5v_1, this.z5v_1, this.u5v_1, this.v5v_1, this.s5v_1, this.w5v_1, this.x5v_1, this.y5v_1, this);
|
|
2563
2507
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2564
2508
|
return suspendResult;
|
|
2565
2509
|
}
|
|
@@ -2567,16 +2511,16 @@
|
|
|
2567
2511
|
continue $sm;
|
|
2568
2512
|
case 1:
|
|
2569
2513
|
var randomPoolValue = suspendResult;
|
|
2570
|
-
var
|
|
2571
|
-
var key = randomPoolValue.
|
|
2572
|
-
|
|
2573
|
-
var cardDeckData = randomPoolValue.
|
|
2574
|
-
var tmp21_poolId = randomPoolValue.
|
|
2575
|
-
var tmp22_signature = randomPoolValue.
|
|
2576
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2577
|
-
var
|
|
2578
|
-
var key_0 = this.
|
|
2579
|
-
|
|
2514
|
+
var tmp0 = this.r5v_1.g5w_1;
|
|
2515
|
+
var key = randomPoolValue.z5u_1.d5q_1;
|
|
2516
|
+
tmp0.k2(key, randomPoolValue);
|
|
2517
|
+
var cardDeckData = randomPoolValue.h5v(this.t5v_1.gameId);
|
|
2518
|
+
var tmp21_poolId = randomPoolValue.z5u_1.d5q_1;
|
|
2519
|
+
var tmp22_signature = randomPoolValue.z5u_1.e5q_1;
|
|
2520
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.r5v_1, tmp21_poolId, tmp22_signature, cardDeckData, this.t5v_1);
|
|
2521
|
+
var tmp0_0 = this.r5v_1.h5w_1;
|
|
2522
|
+
var key_0 = this.t5v_1.gameId;
|
|
2523
|
+
tmp0_0.k2(key_0, cardDecksRecord);
|
|
2580
2524
|
return cardDeckData;
|
|
2581
2525
|
case 2:
|
|
2582
2526
|
throw this.m9_1;
|
|
@@ -2592,18 +2536,18 @@
|
|
|
2592
2536
|
}
|
|
2593
2537
|
while (true);
|
|
2594
2538
|
};
|
|
2595
|
-
function $getPreparedOrRequestPoolCOROUTINE$
|
|
2539
|
+
function $getPreparedOrRequestPoolCOROUTINE$(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2596
2540
|
CoroutineImpl.call(this, resultContinuation);
|
|
2597
|
-
this.
|
|
2598
|
-
this.
|
|
2599
|
-
this.
|
|
2600
|
-
this.
|
|
2601
|
-
this.
|
|
2602
|
-
this.
|
|
2603
|
-
this.
|
|
2604
|
-
this.
|
|
2605
|
-
}
|
|
2606
|
-
protoOf($getPreparedOrRequestPoolCOROUTINE$
|
|
2541
|
+
this.r5w_1 = _this__u8e3s4;
|
|
2542
|
+
this.s5w_1 = gameId;
|
|
2543
|
+
this.t5w_1 = min;
|
|
2544
|
+
this.u5w_1 = max;
|
|
2545
|
+
this.v5w_1 = minRoundsCount;
|
|
2546
|
+
this.w5w_1 = cardsCount;
|
|
2547
|
+
this.x5w_1 = signed;
|
|
2548
|
+
this.y5w_1 = requestDurationWarnMillis;
|
|
2549
|
+
}
|
|
2550
|
+
protoOf($getPreparedOrRequestPoolCOROUTINE$).r9 = function () {
|
|
2607
2551
|
var suspendResult = this.l9_1;
|
|
2608
2552
|
$sm: do
|
|
2609
2553
|
try {
|
|
@@ -2612,41 +2556,41 @@
|
|
|
2612
2556
|
case 0:
|
|
2613
2557
|
this.k9_1 = 2;
|
|
2614
2558
|
var tmp_0 = this;
|
|
2615
|
-
var
|
|
2559
|
+
var tmp0 = this.r5w_1.g5w_1;
|
|
2616
2560
|
var destination = LinkedHashMap_init_$Create$();
|
|
2617
|
-
var
|
|
2618
|
-
while (
|
|
2619
|
-
var element =
|
|
2620
|
-
var
|
|
2621
|
-
var key = this.
|
|
2622
|
-
if ((isInterface(
|
|
2623
|
-
destination.
|
|
2561
|
+
var _iterator__ex2g4s = tmp0.s().j();
|
|
2562
|
+
while (_iterator__ex2g4s.k()) {
|
|
2563
|
+
var element = _iterator__ex2g4s.l();
|
|
2564
|
+
var tmp0_0 = element.u().a5v_1;
|
|
2565
|
+
var key = this.s5w_1;
|
|
2566
|
+
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).f2(key)) {
|
|
2567
|
+
destination.k2(element.t(), element.u());
|
|
2624
2568
|
}
|
|
2625
2569
|
}
|
|
2626
2570
|
|
|
2627
|
-
tmp_0.
|
|
2628
|
-
if (!(this.
|
|
2629
|
-
return this.
|
|
2571
|
+
tmp_0.z5w_1 = firstOrNull(destination.s());
|
|
2572
|
+
if (!(this.z5w_1 == null)) {
|
|
2573
|
+
return this.z5w_1.u().g5v(this.s5w_1);
|
|
2630
2574
|
}
|
|
2631
2575
|
|
|
2632
2576
|
var tmp_1 = this;
|
|
2633
|
-
var
|
|
2577
|
+
var tmp0_1 = this.r5w_1.g5w_1;
|
|
2634
2578
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2635
|
-
var
|
|
2636
|
-
while (
|
|
2637
|
-
var element_0 =
|
|
2638
|
-
if (element_0.u().
|
|
2639
|
-
destination_0.
|
|
2579
|
+
var _iterator__ex2g4s_0 = tmp0_1.s().j();
|
|
2580
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
2581
|
+
var element_0 = _iterator__ex2g4s_0.l();
|
|
2582
|
+
if (element_0.u().d5v(this.v5w_1)) {
|
|
2583
|
+
destination_0.k2(element_0.t(), element_0.u());
|
|
2640
2584
|
}
|
|
2641
2585
|
}
|
|
2642
2586
|
|
|
2643
|
-
tmp_1.
|
|
2644
|
-
if (!(this.
|
|
2645
|
-
return this.
|
|
2587
|
+
tmp_1.a5x_1 = firstOrNull(destination_0.s());
|
|
2588
|
+
if (!(this.a5x_1 == null)) {
|
|
2589
|
+
return this.a5x_1.u().e5v(this.s5w_1, this.v5w_1, this.r5w_1.a5w_1.thresholdForUsedPool);
|
|
2646
2590
|
}
|
|
2647
2591
|
|
|
2648
2592
|
this.j9_1 = 1;
|
|
2649
|
-
suspendResult = requestNewPool(this.
|
|
2593
|
+
suspendResult = requestNewPool(this.r5w_1, this.t5w_1, this.u5w_1, this.w5w_1, this.x5w_1, this.y5w_1, this);
|
|
2650
2594
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2651
2595
|
return suspendResult;
|
|
2652
2596
|
}
|
|
@@ -2654,7 +2598,7 @@
|
|
|
2654
2598
|
continue $sm;
|
|
2655
2599
|
case 1:
|
|
2656
2600
|
var cardDecks = suspendResult;
|
|
2657
|
-
return cardDecks.
|
|
2601
|
+
return cardDecks.e5v(this.s5w_1, this.v5w_1, this.r5w_1.a5w_1.thresholdForUsedPool);
|
|
2658
2602
|
case 2:
|
|
2659
2603
|
throw this.m9_1;
|
|
2660
2604
|
}
|
|
@@ -2670,7 +2614,7 @@
|
|
|
2670
2614
|
while (true);
|
|
2671
2615
|
};
|
|
2672
2616
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2673
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2617
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().b12_1 : dispatcher;
|
|
2674
2618
|
var tmp;
|
|
2675
2619
|
if (idsProvider === VOID) {
|
|
2676
2620
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2678,86 +2622,83 @@
|
|
|
2678
2622
|
tmp = idsProvider;
|
|
2679
2623
|
}
|
|
2680
2624
|
idsProvider = tmp;
|
|
2681
|
-
this.
|
|
2682
|
-
this.
|
|
2683
|
-
this.
|
|
2684
|
-
this.
|
|
2685
|
-
this.
|
|
2686
|
-
this.
|
|
2625
|
+
this.a5w_1 = params;
|
|
2626
|
+
this.b5w_1 = randomOrgApiService;
|
|
2627
|
+
this.c5w_1 = logger;
|
|
2628
|
+
this.d5w_1 = dispatcher;
|
|
2629
|
+
this.e5w_1 = idsProvider;
|
|
2630
|
+
this.f5w_1 = Mutex();
|
|
2687
2631
|
var tmp_0 = this;
|
|
2688
2632
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2689
|
-
tmp_0.
|
|
2633
|
+
tmp_0.g5w_1 = LinkedHashMap_init_$Create$();
|
|
2690
2634
|
var tmp_1 = this;
|
|
2691
2635
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2692
|
-
tmp_1.
|
|
2693
|
-
this.
|
|
2694
|
-
this.y5q_1 = 0;
|
|
2636
|
+
tmp_1.h5w_1 = LinkedHashMap_init_$Create$();
|
|
2637
|
+
this.i5w_1 = 0;
|
|
2695
2638
|
}
|
|
2696
|
-
protoOf(RandomPoolProviderImpl).
|
|
2697
|
-
var tmp = withContext(this.
|
|
2639
|
+
protoOf(RandomPoolProviderImpl).w5u = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2640
|
+
var tmp = withContext(this.d5w_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2698
2641
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2699
2642
|
return tmp;
|
|
2700
2643
|
return tmp;
|
|
2701
2644
|
};
|
|
2702
|
-
protoOf(RandomPoolProviderImpl).
|
|
2703
|
-
return this.
|
|
2645
|
+
protoOf(RandomPoolProviderImpl).t5y = function (gameId) {
|
|
2646
|
+
return this.h5w_1.h2(gameId);
|
|
2704
2647
|
};
|
|
2705
2648
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2706
|
-
return this.
|
|
2649
|
+
return this.t5y(gameId);
|
|
2707
2650
|
};
|
|
2708
|
-
protoOf(RandomPoolProviderImpl).
|
|
2709
|
-
return this.
|
|
2651
|
+
protoOf(RandomPoolProviderImpl).u5y = function (id) {
|
|
2652
|
+
return this.g5w_1.h2(id);
|
|
2710
2653
|
};
|
|
2711
2654
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2712
|
-
return this.
|
|
2655
|
+
return this.u5y(id);
|
|
2713
2656
|
};
|
|
2714
|
-
protoOf(RandomPoolProviderImpl).
|
|
2715
|
-
return this.
|
|
2657
|
+
protoOf(RandomPoolProviderImpl).v5y = function () {
|
|
2658
|
+
return this.g5w_1.m();
|
|
2716
2659
|
};
|
|
2717
2660
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2718
|
-
return this.
|
|
2661
|
+
return this.v5y();
|
|
2719
2662
|
};
|
|
2720
|
-
protoOf(RandomPoolProviderImpl).
|
|
2721
|
-
var gameCardDecksRecord = this.
|
|
2663
|
+
protoOf(RandomPoolProviderImpl).y5u = function (gameId) {
|
|
2664
|
+
var gameCardDecksRecord = this.h5w_1.h2(gameId);
|
|
2722
2665
|
if (!(gameCardDecksRecord == null)) {
|
|
2723
|
-
var randomPoolValue = this.
|
|
2666
|
+
var randomPoolValue = this.g5w_1.h2(gameCardDecksRecord.poolId);
|
|
2724
2667
|
if (!(randomPoolValue == null)) {
|
|
2725
2668
|
// Inline function 'kotlin.apply' call
|
|
2726
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
if (newPoolValue.g5q_1.p()) {
|
|
2732
|
-
this.v5q_1.o2(gameCardDecksRecord.poolId);
|
|
2669
|
+
var this_0 = toMutableMap(randomPoolValue.a5v_1);
|
|
2670
|
+
this_0.l2(gameId);
|
|
2671
|
+
var newPoolValue = randomPoolValue.f5v(VOID, toMap(this_0));
|
|
2672
|
+
if (newPoolValue.a5v_1.p()) {
|
|
2673
|
+
this.g5w_1.l2(gameCardDecksRecord.poolId);
|
|
2733
2674
|
} else {
|
|
2675
|
+
var tmp0 = this.g5w_1;
|
|
2734
2676
|
// Inline function 'kotlin.collections.set' call
|
|
2735
|
-
var this_1 = this.v5q_1;
|
|
2736
2677
|
var key = gameCardDecksRecord.poolId;
|
|
2737
|
-
|
|
2678
|
+
tmp0.k2(key, newPoolValue);
|
|
2738
2679
|
}
|
|
2739
2680
|
}
|
|
2740
2681
|
}
|
|
2741
|
-
this.
|
|
2682
|
+
this.h5w_1.l2(gameId);
|
|
2742
2683
|
};
|
|
2743
2684
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2744
2685
|
return function ($this$defaultRequest) {
|
|
2745
2686
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2746
|
-
$this$defaultRequest.
|
|
2687
|
+
$this$defaultRequest.e36($url);
|
|
2747
2688
|
return Unit_instance;
|
|
2748
2689
|
};
|
|
2749
2690
|
}
|
|
2750
|
-
function ApiCommonConfigs$setupLogging$
|
|
2751
|
-
this.
|
|
2691
|
+
function ApiCommonConfigs$setupLogging$2$1($externalLogger) {
|
|
2692
|
+
this.w5y_1 = $externalLogger;
|
|
2752
2693
|
}
|
|
2753
|
-
protoOf(ApiCommonConfigs$setupLogging$
|
|
2754
|
-
this.
|
|
2694
|
+
protoOf(ApiCommonConfigs$setupLogging$2$1).f3x = function (message) {
|
|
2695
|
+
this.w5y_1(message);
|
|
2755
2696
|
};
|
|
2756
2697
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2757
2698
|
return function ($this$install) {
|
|
2758
|
-
$this$install.
|
|
2759
|
-
$this$install.
|
|
2760
|
-
$this$install.
|
|
2699
|
+
$this$install.v3y(get_DEFAULT(Companion_instance_0));
|
|
2700
|
+
$this$install.u3y_1 = $config.z5y_1;
|
|
2701
|
+
$this$install.v3y(new ApiCommonConfigs$setupLogging$2$1($externalLogger));
|
|
2761
2702
|
return Unit_instance;
|
|
2762
2703
|
};
|
|
2763
2704
|
}
|
|
@@ -2769,32 +2710,32 @@
|
|
|
2769
2710
|
}
|
|
2770
2711
|
function ApiCommonConfigs() {
|
|
2771
2712
|
}
|
|
2772
|
-
protoOf(ApiCommonConfigs).
|
|
2773
|
-
_this__u8e3s4.
|
|
2774
|
-
this.
|
|
2775
|
-
this.
|
|
2776
|
-
this.
|
|
2713
|
+
protoOf(ApiCommonConfigs).b5z = function (_this__u8e3s4, config, externalLogger) {
|
|
2714
|
+
_this__u8e3s4.q2x_1 = true;
|
|
2715
|
+
this.c5z(_this__u8e3s4, config.x5y_1);
|
|
2716
|
+
this.d5z(_this__u8e3s4, config.a5z_1);
|
|
2717
|
+
this.e5z(_this__u8e3s4, config, externalLogger);
|
|
2777
2718
|
};
|
|
2778
|
-
protoOf(ApiCommonConfigs).
|
|
2719
|
+
protoOf(ApiCommonConfigs).c5z = function (_this__u8e3s4, url) {
|
|
2779
2720
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2780
2721
|
};
|
|
2781
|
-
protoOf(ApiCommonConfigs).
|
|
2722
|
+
protoOf(ApiCommonConfigs).e5z = function (_this__u8e3s4, config, externalLogger) {
|
|
2782
2723
|
var tmp = Companion_getInstance_1();
|
|
2783
|
-
_this__u8e3s4.
|
|
2724
|
+
_this__u8e3s4.l2y(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2784
2725
|
};
|
|
2785
|
-
protoOf(ApiCommonConfigs).
|
|
2726
|
+
protoOf(ApiCommonConfigs).d5z = function (_this__u8e3s4, json) {
|
|
2786
2727
|
var tmp = Plugin_getInstance();
|
|
2787
|
-
_this__u8e3s4.
|
|
2728
|
+
_this__u8e3s4.l2y(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2788
2729
|
};
|
|
2789
2730
|
var ApiCommonConfigs_instance;
|
|
2790
2731
|
function ApiCommonConfigs_getInstance() {
|
|
2791
2732
|
return ApiCommonConfigs_instance;
|
|
2792
2733
|
}
|
|
2793
2734
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2794
|
-
$this$Json.
|
|
2795
|
-
$this$Json.
|
|
2796
|
-
$this$Json.
|
|
2797
|
-
$this$Json.
|
|
2735
|
+
$this$Json.e4y_1 = true;
|
|
2736
|
+
$this$Json.d4y_1 = true;
|
|
2737
|
+
$this$Json.c4y_1 = true;
|
|
2738
|
+
$this$Json.b4y_1 = false;
|
|
2798
2739
|
return Unit_instance;
|
|
2799
2740
|
}
|
|
2800
2741
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2807,19 +2748,19 @@
|
|
|
2807
2748
|
tmp = json;
|
|
2808
2749
|
}
|
|
2809
2750
|
json = tmp;
|
|
2810
|
-
this.
|
|
2811
|
-
this.
|
|
2812
|
-
this.
|
|
2813
|
-
this.
|
|
2751
|
+
this.x5y_1 = baseUrl;
|
|
2752
|
+
this.y5y_1 = timeoutMillis;
|
|
2753
|
+
this.z5y_1 = loggingLevel;
|
|
2754
|
+
this.a5z_1 = json;
|
|
2814
2755
|
}
|
|
2815
2756
|
protoOf(HttpParams).toString = function () {
|
|
2816
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2757
|
+
return 'HttpParams(baseUrl=' + this.x5y_1 + ', timeoutMillis=' + this.y5y_1.toString() + ', loggingLevel=' + this.z5y_1.toString() + ', json=' + toString(this.a5z_1) + ')';
|
|
2817
2758
|
};
|
|
2818
2759
|
protoOf(HttpParams).hashCode = function () {
|
|
2819
|
-
var result = getStringHashCode(this.
|
|
2820
|
-
result = imul(result, 31) + this.
|
|
2821
|
-
result = imul(result, 31) + this.
|
|
2822
|
-
result = imul(result, 31) + hashCode(this.
|
|
2760
|
+
var result = getStringHashCode(this.x5y_1);
|
|
2761
|
+
result = imul(result, 31) + this.y5y_1.hashCode() | 0;
|
|
2762
|
+
result = imul(result, 31) + this.z5y_1.hashCode() | 0;
|
|
2763
|
+
result = imul(result, 31) + hashCode(this.a5z_1) | 0;
|
|
2823
2764
|
return result;
|
|
2824
2765
|
};
|
|
2825
2766
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2828,13 +2769,13 @@
|
|
|
2828
2769
|
if (!(other instanceof HttpParams))
|
|
2829
2770
|
return false;
|
|
2830
2771
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2831
|
-
if (!(this.
|
|
2772
|
+
if (!(this.x5y_1 === tmp0_other_with_cast.x5y_1))
|
|
2832
2773
|
return false;
|
|
2833
|
-
if (!this.
|
|
2774
|
+
if (!this.y5y_1.equals(tmp0_other_with_cast.y5y_1))
|
|
2834
2775
|
return false;
|
|
2835
|
-
if (!this.
|
|
2776
|
+
if (!this.z5y_1.equals(tmp0_other_with_cast.z5y_1))
|
|
2836
2777
|
return false;
|
|
2837
|
-
if (!equals(this.
|
|
2778
|
+
if (!equals(this.a5z_1, tmp0_other_with_cast.a5z_1))
|
|
2838
2779
|
return false;
|
|
2839
2780
|
return true;
|
|
2840
2781
|
};
|
|
@@ -2860,12 +2801,12 @@
|
|
|
2860
2801
|
}
|
|
2861
2802
|
function nextBytesCopyTo($this, bytes) {
|
|
2862
2803
|
try {
|
|
2863
|
-
$this.
|
|
2804
|
+
$this.j5z_1.p5p(bytes);
|
|
2864
2805
|
} catch ($p) {
|
|
2865
2806
|
if ($p instanceof SecRandomCopyException) {
|
|
2866
2807
|
var error = $p;
|
|
2867
|
-
$this.
|
|
2868
|
-
$this.
|
|
2808
|
+
$this.i5z_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2809
|
+
$this.k5z_1.jh(bytes);
|
|
2869
2810
|
return Unit_instance;
|
|
2870
2811
|
} else {
|
|
2871
2812
|
throw $p;
|
|
@@ -2877,25 +2818,23 @@
|
|
|
2877
2818
|
return 31 - clz32(value) | 0;
|
|
2878
2819
|
}
|
|
2879
2820
|
function checkRangeBounds($this, from, until) {
|
|
2880
|
-
// Inline function 'kotlin.
|
|
2881
|
-
var tmp;
|
|
2821
|
+
// Inline function 'kotlin.require' call
|
|
2882
2822
|
if (!(until > from)) {
|
|
2883
|
-
// Inline function 'games.raspberry.card_game.random.utils.random.SecureRandom.checkRangeBounds.<anonymous>' call
|
|
2884
2823
|
var message = boundsErrorMessage($this, from, until);
|
|
2885
2824
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2886
2825
|
}
|
|
2887
|
-
return
|
|
2826
|
+
return Unit_instance;
|
|
2888
2827
|
}
|
|
2889
2828
|
function boundsErrorMessage($this, from, until) {
|
|
2890
2829
|
return 'Random range is empty: [' + toString(from) + ', ' + toString(until) + ').';
|
|
2891
2830
|
}
|
|
2892
2831
|
function SecureRandom_0(logger) {
|
|
2893
2832
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2894
|
-
this.
|
|
2895
|
-
this.
|
|
2896
|
-
this.
|
|
2833
|
+
this.i5z_1 = logger;
|
|
2834
|
+
this.j5z_1 = new SecureRandom();
|
|
2835
|
+
this.k5z_1 = Default_getInstance();
|
|
2897
2836
|
}
|
|
2898
|
-
protoOf(SecureRandom_0).
|
|
2837
|
+
protoOf(SecureRandom_0).gh = function (from, until) {
|
|
2899
2838
|
checkRangeBounds(this, from, until);
|
|
2900
2839
|
var n = until - from | 0;
|
|
2901
2840
|
if (n > 0 || n === -2147483648) {
|
|
@@ -2922,7 +2861,7 @@
|
|
|
2922
2861
|
}
|
|
2923
2862
|
}
|
|
2924
2863
|
};
|
|
2925
|
-
protoOf(SecureRandom_0).
|
|
2864
|
+
protoOf(SecureRandom_0).g5z = function () {
|
|
2926
2865
|
return !(nextBits(this, 1) === 0);
|
|
2927
2866
|
};
|
|
2928
2867
|
function overhand(_this__u8e3s4, iterations, random) {
|
|
@@ -2933,33 +2872,29 @@
|
|
|
2933
2872
|
var pile2 = ArrayList_init_$Create$_0();
|
|
2934
2873
|
var twentypc = deck.m() / 5 | 0;
|
|
2935
2874
|
// Inline function 'kotlin.repeat' call
|
|
2936
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2937
2875
|
var inductionVariable = 0;
|
|
2938
2876
|
if (inductionVariable < iterations)
|
|
2939
2877
|
do {
|
|
2940
2878
|
var index = inductionVariable;
|
|
2941
2879
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2942
|
-
// Inline function 'games.raspberry.card_game.random.utils.random.overhand.<anonymous>' call
|
|
2943
2880
|
while (pile.m() > 0) {
|
|
2881
|
+
var tmp0 = pile.m();
|
|
2944
2882
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2945
|
-
var
|
|
2946
|
-
var
|
|
2947
|
-
|
|
2948
|
-
pile2.e2(0, take(pile, cards));
|
|
2883
|
+
var b = 1 + random.f5z(VOID, twentypc) | 0;
|
|
2884
|
+
var cards = Math.min(tmp0, b);
|
|
2885
|
+
pile2.b2(0, take(pile, cards));
|
|
2949
2886
|
// Inline function 'kotlin.repeat' call
|
|
2950
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2951
2887
|
var inductionVariable_0 = 0;
|
|
2952
2888
|
if (inductionVariable_0 < cards)
|
|
2953
2889
|
do {
|
|
2954
2890
|
var index_0 = inductionVariable_0;
|
|
2955
2891
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2956
|
-
|
|
2957
|
-
pile.h2(0);
|
|
2892
|
+
pile.e2(0);
|
|
2958
2893
|
}
|
|
2959
2894
|
while (inductionVariable_0 < cards);
|
|
2960
2895
|
}
|
|
2961
2896
|
pile.n(pile2);
|
|
2962
|
-
pile2.
|
|
2897
|
+
pile2.a2();
|
|
2963
2898
|
}
|
|
2964
2899
|
while (inductionVariable < iterations);
|
|
2965
2900
|
return pile;
|
|
@@ -2969,27 +2904,25 @@
|
|
|
2969
2904
|
var deck = _this__u8e3s4;
|
|
2970
2905
|
var pile = toMutableList(deck);
|
|
2971
2906
|
// Inline function 'kotlin.repeat' call
|
|
2972
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2973
2907
|
var inductionVariable = 0;
|
|
2974
2908
|
if (inductionVariable < iterations)
|
|
2975
2909
|
do {
|
|
2976
2910
|
var index = inductionVariable;
|
|
2977
2911
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2978
|
-
// Inline function 'games.raspberry.card_game.random.utils.random.riffle.<anonymous>' call
|
|
2979
2912
|
var mid = deck.m() / 2 | 0;
|
|
2980
2913
|
var tenpc = mid / 10 | 0;
|
|
2981
|
-
var cut = (mid - tenpc | 0) + random.
|
|
2914
|
+
var cut = (mid - tenpc | 0) + random.f5z(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
2982
2915
|
var deck1 = toMutableList(take(pile, cut));
|
|
2983
2916
|
var deck2 = toMutableList(drop(pile, cut));
|
|
2984
|
-
pile.
|
|
2985
|
-
var fromTop = random.
|
|
2917
|
+
pile.a2();
|
|
2918
|
+
var fromTop = random.g5z();
|
|
2986
2919
|
while (deck1.m() > 0 && deck2.m() > 0) {
|
|
2987
2920
|
if (fromTop) {
|
|
2988
|
-
pile.e(deck1.
|
|
2989
|
-
pile.e(deck2.
|
|
2921
|
+
pile.e(deck1.e2(0));
|
|
2922
|
+
pile.e(deck2.e2(0));
|
|
2990
2923
|
} else {
|
|
2991
|
-
pile.e(deck1.
|
|
2992
|
-
pile.e(deck2.
|
|
2924
|
+
pile.e(deck1.e2(get_lastIndex(deck1)));
|
|
2925
|
+
pile.e(deck2.e2(get_lastIndex(deck2)));
|
|
2993
2926
|
}
|
|
2994
2927
|
}
|
|
2995
2928
|
if (deck1.m() > 0) {
|
|
@@ -3004,22 +2937,22 @@
|
|
|
3004
2937
|
}
|
|
3005
2938
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
3006
2939
|
return function ($this$install) {
|
|
3007
|
-
$this$install.
|
|
3008
|
-
$this$install.
|
|
2940
|
+
$this$install.h3i($config.y5y_1);
|
|
2941
|
+
$this$install.f3i($config.y5y_1);
|
|
3009
2942
|
return Unit_instance;
|
|
3010
2943
|
};
|
|
3011
2944
|
}
|
|
3012
2945
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
3013
2946
|
return function ($this$HttpClient) {
|
|
3014
2947
|
var tmp = Plugin_getInstance_0();
|
|
3015
|
-
$this$HttpClient.
|
|
3016
|
-
ApiCommonConfigs_instance.
|
|
2948
|
+
$this$HttpClient.l2y(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
2949
|
+
ApiCommonConfigs_instance.b5z($this$HttpClient, $config, $externalLogger);
|
|
3017
2950
|
return Unit_instance;
|
|
3018
2951
|
};
|
|
3019
2952
|
}
|
|
3020
2953
|
function HttpFactory() {
|
|
3021
2954
|
}
|
|
3022
|
-
protoOf(HttpFactory).
|
|
2955
|
+
protoOf(HttpFactory).l5z = function (config, externalLogger) {
|
|
3023
2956
|
var tmp = Js_instance;
|
|
3024
2957
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
3025
2958
|
};
|
|
@@ -3028,15 +2961,15 @@
|
|
|
3028
2961
|
return HttpFactory_instance;
|
|
3029
2962
|
}
|
|
3030
2963
|
//region block: post-declaration
|
|
3031
|
-
protoOf($serializer).
|
|
3032
|
-
protoOf($serializer_0).
|
|
3033
|
-
protoOf($serializer_2).
|
|
3034
|
-
protoOf($serializer_3).
|
|
3035
|
-
protoOf($serializer_5).
|
|
3036
|
-
protoOf($serializer_6).
|
|
3037
|
-
protoOf(RandomPoolProviderImpl).
|
|
3038
|
-
protoOf(SecureRandom_0).
|
|
3039
|
-
protoOf(SecureRandom_0).
|
|
2964
|
+
protoOf($serializer).u4i = typeParametersSerializers;
|
|
2965
|
+
protoOf($serializer_0).u4i = typeParametersSerializers;
|
|
2966
|
+
protoOf($serializer_2).u4i = typeParametersSerializers;
|
|
2967
|
+
protoOf($serializer_3).u4i = typeParametersSerializers;
|
|
2968
|
+
protoOf($serializer_5).u4i = typeParametersSerializers;
|
|
2969
|
+
protoOf($serializer_6).u4i = typeParametersSerializers;
|
|
2970
|
+
protoOf(RandomPoolProviderImpl).x5u = getCardDeck$default;
|
|
2971
|
+
protoOf(SecureRandom_0).f5z = nextInt$default;
|
|
2972
|
+
protoOf(SecureRandom_0).h5z = shuffle;
|
|
3040
2973
|
//endregion
|
|
3041
2974
|
//region block: init
|
|
3042
2975
|
Companion_instance_1 = new Companion();
|