game_client_logic_deb 1.8.451 → 1.8.453
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 +92 -92
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +823 -783
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1919 -1919
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-ai_module.js +684 -688
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-core.js +1846 -1855
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18659 -18669
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +733 -634
- package/Logic_Debertz-game_client.js +5167 -5186
- package/Logic_Debertz-game_client.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +5748 -4875
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +3276 -3224
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +1689 -428
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2253 -2252
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +1626 -1626
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +457 -395
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +6692 -3988
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +2628 -894
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +14 -14
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http-cio.js +2278 -0
- package/ktor-ktor-http-cio.js.map +1 -0
- package/ktor-ktor-http.js +1274 -1134
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +2599 -5515
- 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 +331 -337
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +142 -152
- package/ktor-ktor-serialization.js.map +1 -1
- package/{ktor-ktor-client-js.js → ktor-ktor-sse.js} +2 -2
- package/ktor-ktor-sse.js.map +1 -0
- package/ktor-ktor-utils.js +1711 -1144
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +123 -136
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +2 -4
- package/random-library-crypto-rand.js +15 -15
- package/random-library-crypto-rand.js.map +1 -1
- package/random-library-secure-random.js +10 -10
- package/random-library-secure-random.js.map +1 -1
- package/raspberry-cardgame-lib-core.js +372 -373
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +120 -121
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +1109 -1134
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +38 -38
- package/uuid.js.map +1 -1
- /package/{ktor-ktor-client-js.js.map → kotlinx-serialization-kotlinx-serialization-json-io.js.map} +0 -0
|
@@ -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-
|
|
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-http.js', './ktor-ktor-utils.js', './kotlinx-coroutines-core.js', './uuid.js', './ktor-ktor-client-logging.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-client-content-negotiation.js', './random-library-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-
|
|
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-http.js'), require('./ktor-ktor-utils.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('./random-library-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'.");
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
if (typeof globalThis['ktor-ktor-client-core'] === 'undefined') {
|
|
17
17
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
18
18
|
}
|
|
19
|
-
if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
|
|
20
|
-
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
21
|
-
}
|
|
22
19
|
if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
|
|
23
20
|
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
21
|
}
|
|
22
|
+
if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
24
|
+
}
|
|
25
25
|
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
26
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'.");
|
|
27
27
|
}
|
|
@@ -43,119 +43,118 @@
|
|
|
43
43
|
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
44
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'.");
|
|
45
45
|
}
|
|
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-
|
|
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-http'], globalThis['ktor-ktor-utils'], globalThis['kotlinx-coroutines-core'], uuid, globalThis['ktor-ktor-client-logging'], globalThis['ktor-ktor-serialization-kotlinx-json'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['random-library-secure-random'], globalThis['raspberry-cardgame-lib-logger']);
|
|
47
47
|
}
|
|
48
|
-
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core,
|
|
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_http, kotlin_io_ktor_ktor_utils, 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) {
|
|
49
49
|
'use strict';
|
|
50
50
|
//region block: imports
|
|
51
51
|
var imul = Math.imul;
|
|
52
52
|
var clz32 = Math.clz32;
|
|
53
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
54
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
55
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
53
|
+
var protoOf = kotlin_kotlin.$_$.wd;
|
|
54
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.wc;
|
|
55
|
+
var RuntimeException = kotlin_kotlin.$_$.hi;
|
|
56
56
|
var VOID = kotlin_kotlin.$_$.b;
|
|
57
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
58
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
59
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
60
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
var fromInt = kotlin_kotlin.$_$.gb;
|
|
57
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.b2;
|
|
58
|
+
var captureStack = kotlin_kotlin.$_$.fc;
|
|
59
|
+
var initMetadataForClass = kotlin_kotlin.$_$.vc;
|
|
60
|
+
var getStringHashCode = kotlin_kotlin.$_$.tc;
|
|
61
|
+
var toString = kotlin_kotlin.$_$.zd;
|
|
62
|
+
var hashCode = kotlin_kotlin.$_$.uc;
|
|
63
|
+
var equals = kotlin_kotlin.$_$.oc;
|
|
64
|
+
var listOf = kotlin_kotlin.$_$.j8;
|
|
65
|
+
var plus = kotlin_kotlin.$_$.w8;
|
|
66
|
+
var emptyList = kotlin_kotlin.$_$.g7;
|
|
67
|
+
var defineProp = kotlin_kotlin.$_$.nc;
|
|
68
|
+
var fromInt = kotlin_kotlin.$_$.ob;
|
|
70
69
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
70
|
+
var THROW_CCE = kotlin_kotlin.$_$.ii;
|
|
71
71
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
72
72
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
73
73
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
|
|
74
74
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
75
75
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
76
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
76
|
+
var initMetadataForObject = kotlin_kotlin.$_$.bd;
|
|
77
77
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
78
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
79
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
80
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
78
|
+
var Unit_instance = kotlin_kotlin.$_$.h5;
|
|
79
|
+
var objectCreate = kotlin_kotlin.$_$.vd;
|
|
80
|
+
var toString_0 = kotlin_kotlin.$_$.mj;
|
|
81
81
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
82
82
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
83
83
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
84
84
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
|
|
85
|
-
var lazy = kotlin_kotlin.$_$.
|
|
85
|
+
var lazy = kotlin_kotlin.$_$.fj;
|
|
86
86
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
87
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
88
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
89
|
-
var getValue = kotlin_kotlin.$_$.
|
|
87
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.qc;
|
|
88
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.zc;
|
|
89
|
+
var getValue = kotlin_kotlin.$_$.u7;
|
|
90
90
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
91
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
92
|
-
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
97
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
98
|
-
var createKType = kotlin_kotlin.$_$.
|
|
99
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
100
|
-
var
|
|
101
|
-
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.
|
|
91
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ya;
|
|
92
|
+
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
93
|
+
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.h;
|
|
94
|
+
var url = kotlin_io_ktor_ktor_client_core.$_$.u;
|
|
95
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
96
|
+
var getKClass = kotlin_kotlin.$_$.qe;
|
|
97
|
+
var arrayOf = kotlin_kotlin.$_$.wi;
|
|
98
|
+
var createKType = kotlin_kotlin.$_$.oe;
|
|
99
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.me;
|
|
100
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
101
|
+
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
102
102
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
|
|
103
|
+
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.x;
|
|
104
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ia;
|
|
106
105
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
107
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
108
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
109
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
110
|
-
var Companion_getInstance_0 = kotlin_kotlin.$_$.
|
|
111
|
-
var Long = kotlin_kotlin.$_$.
|
|
106
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.xc;
|
|
107
|
+
var KtMap = kotlin_kotlin.$_$.s5;
|
|
108
|
+
var isInterface = kotlin_kotlin.$_$.kd;
|
|
109
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.x4;
|
|
110
|
+
var Long = kotlin_kotlin.$_$.ci;
|
|
112
111
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.c;
|
|
113
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
114
|
-
var Duration = kotlin_kotlin.$_$.
|
|
115
|
-
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.
|
|
116
|
-
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.
|
|
117
|
-
var System_instance = kotlin_kotlin.$_$.
|
|
118
|
-
var Duration__times_impl_sfuzvp = kotlin_kotlin.$_$.
|
|
119
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
120
|
-
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
112
|
+
var toDuration = kotlin_kotlin.$_$.mh;
|
|
113
|
+
var Duration = kotlin_kotlin.$_$.jh;
|
|
114
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.m2;
|
|
115
|
+
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.h2;
|
|
116
|
+
var System_instance = kotlin_kotlin.$_$.w4;
|
|
117
|
+
var Duration__times_impl_sfuzvp = kotlin_kotlin.$_$.k2;
|
|
118
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
119
|
+
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
121
120
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
122
|
-
var Result = kotlin_kotlin.$_$.
|
|
123
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
124
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
125
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
126
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
127
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
128
|
-
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.
|
|
129
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
130
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
131
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
121
|
+
var Result = kotlin_kotlin.$_$.gi;
|
|
122
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h1;
|
|
123
|
+
var Companion_instance = kotlin_kotlin.$_$.c5;
|
|
124
|
+
var createFailure = kotlin_kotlin.$_$.zi;
|
|
125
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.v2;
|
|
126
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ad;
|
|
127
|
+
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.g2;
|
|
128
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
129
|
+
var firstOrNull = kotlin_kotlin.$_$.m7;
|
|
130
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
132
131
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
133
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
134
|
-
var toMap = kotlin_kotlin.$_$.
|
|
135
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
136
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
137
|
-
var header = kotlin_io_ktor_ktor_client_core.$_$.
|
|
132
|
+
var toMutableMap = kotlin_kotlin.$_$.y9;
|
|
133
|
+
var toMap = kotlin_kotlin.$_$.v9;
|
|
134
|
+
var emptyMap = kotlin_kotlin.$_$.h7;
|
|
135
|
+
var get_lastIndex = kotlin_kotlin.$_$.c8;
|
|
136
|
+
var header = kotlin_io_ktor_ktor_client_core.$_$.t;
|
|
138
137
|
var Companion_instance_0 = kotlin_io_ktor_ktor_client_logging.$_$.d;
|
|
139
|
-
var get_DEFAULT = kotlin_io_ktor_ktor_client_logging.$_$.
|
|
138
|
+
var get_DEFAULT = kotlin_io_ktor_ktor_client_logging.$_$.e;
|
|
140
139
|
var json = kotlin_io_ktor_ktor_serialization_kotlinx_json.$_$.a;
|
|
141
|
-
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.
|
|
142
|
-
var
|
|
143
|
-
var
|
|
140
|
+
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
141
|
+
var get_Logging = kotlin_io_ktor_ktor_client_logging.$_$.f;
|
|
142
|
+
var get_ContentNegotiation = kotlin_io_ktor_ktor_client_content_negotiation.$_$.a;
|
|
144
143
|
var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
145
144
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
146
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
145
|
+
var equalsLong = kotlin_kotlin.$_$.nb;
|
|
147
146
|
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
148
147
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
149
148
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
150
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
151
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
152
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
153
|
-
var take = kotlin_kotlin.$_$.
|
|
154
|
-
var drop = kotlin_kotlin.$_$.
|
|
155
|
-
var reverse = kotlin_kotlin.$_$.
|
|
156
|
-
var
|
|
149
|
+
var Default_getInstance = kotlin_kotlin.$_$.t4;
|
|
150
|
+
var toMutableList = kotlin_kotlin.$_$.x9;
|
|
151
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
152
|
+
var take = kotlin_kotlin.$_$.n9;
|
|
153
|
+
var drop = kotlin_kotlin.$_$.f7;
|
|
154
|
+
var reverse = kotlin_kotlin.$_$.d9;
|
|
155
|
+
var get_HttpTimeout = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
157
156
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
158
|
-
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.
|
|
157
|
+
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
159
158
|
//endregion
|
|
160
159
|
//region block: pre-declaration
|
|
161
160
|
initMetadataForCompanion(Companion);
|
|
@@ -176,7 +175,7 @@
|
|
|
176
175
|
initMetadataForClass(ErrorDto, 'ErrorDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
|
|
177
176
|
initMetadataForCompanion(Companion_2, VOID, [SerializerFactory]);
|
|
178
177
|
initMetadataForClass($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
179
|
-
initMetadataForClass(RandomRequestDto, 'RandomRequestDto', VOID, VOID, VOID, VOID, VOID, {0:
|
|
178
|
+
initMetadataForClass(RandomRequestDto, 'RandomRequestDto', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_4});
|
|
180
179
|
initMetadataForCompanion(Companion_3);
|
|
181
180
|
initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
182
181
|
initMetadataForClass(RandomIntegerSequencesParamsDto, 'RandomIntegerSequencesParamsDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
@@ -185,7 +184,7 @@
|
|
|
185
184
|
initMetadataForClass(CardDecksUserDataDto, 'CardDecksUserDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
|
|
186
185
|
initMetadataForCompanion(Companion_5, VOID, [SerializerFactory]);
|
|
187
186
|
initMetadataForClass($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
188
|
-
initMetadataForClass(RandomResponseDto, 'RandomResponseDto', VOID, VOID, VOID, VOID, VOID, {0:
|
|
187
|
+
initMetadataForClass(RandomResponseDto, 'RandomResponseDto', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_7});
|
|
189
188
|
initMetadataForCompanion(Companion_6);
|
|
190
189
|
initMetadataForObject($serializer_5, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
191
190
|
initMetadataForClass(IntegerSequencesResultDto, 'IntegerSequencesResultDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
|
|
@@ -204,7 +203,7 @@
|
|
|
204
203
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
205
204
|
signed = signed === VOID ? false : signed;
|
|
206
205
|
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
207
|
-
return $super === VOID ? this.
|
|
206
|
+
return $super === VOID ? this.i5y(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.i5y.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
208
207
|
}
|
|
209
208
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
210
209
|
initMetadataForCompanion(Companion_9);
|
|
@@ -219,7 +218,7 @@
|
|
|
219
218
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
220
219
|
function nextInt$default(from, until, $super) {
|
|
221
220
|
from = from === VOID ? 0 : from;
|
|
222
|
-
return $super === VOID ? this.
|
|
221
|
+
return $super === VOID ? this.rh(from, until) : $super.rh.call(this, from, until);
|
|
223
222
|
}
|
|
224
223
|
function shuffle(list) {
|
|
225
224
|
var inductionVariable = get_lastIndex(list);
|
|
@@ -227,8 +226,8 @@
|
|
|
227
226
|
do {
|
|
228
227
|
var i = inductionVariable;
|
|
229
228
|
inductionVariable = inductionVariable + -1 | 0;
|
|
230
|
-
var j = this.
|
|
231
|
-
list.
|
|
229
|
+
var j = this.rh(0, i + 1 | 0);
|
|
230
|
+
list.g3(j, list.g3(i, list.h1(j)));
|
|
232
231
|
}
|
|
233
232
|
while (1 <= inductionVariable);
|
|
234
233
|
return list;
|
|
@@ -238,10 +237,10 @@
|
|
|
238
237
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
239
238
|
//endregion
|
|
240
239
|
function Companion() {
|
|
241
|
-
this.
|
|
240
|
+
this.u5t_1 = 100001;
|
|
242
241
|
}
|
|
243
242
|
var Companion_instance_1;
|
|
244
|
-
function
|
|
243
|
+
function Companion_getInstance_1() {
|
|
245
244
|
return Companion_instance_1;
|
|
246
245
|
}
|
|
247
246
|
function RandomException(code, message, cause) {
|
|
@@ -249,31 +248,31 @@
|
|
|
249
248
|
cause = cause === VOID ? null : cause;
|
|
250
249
|
RuntimeException_init_$Init$(message, cause, this);
|
|
251
250
|
captureStack(this, RandomException);
|
|
252
|
-
this.
|
|
251
|
+
this.v5t_1 = code;
|
|
253
252
|
}
|
|
254
253
|
function CardDecksRequestUserData(id, count) {
|
|
255
254
|
this.id = id;
|
|
256
255
|
this.count = count;
|
|
257
256
|
}
|
|
258
|
-
protoOf(CardDecksRequestUserData).
|
|
257
|
+
protoOf(CardDecksRequestUserData).w5t = function () {
|
|
259
258
|
return this.id;
|
|
260
259
|
};
|
|
261
|
-
protoOf(CardDecksRequestUserData).
|
|
260
|
+
protoOf(CardDecksRequestUserData).x5t = function () {
|
|
262
261
|
return this.count;
|
|
263
262
|
};
|
|
264
|
-
protoOf(CardDecksRequestUserData).
|
|
263
|
+
protoOf(CardDecksRequestUserData).kf = function () {
|
|
265
264
|
return this.id;
|
|
266
265
|
};
|
|
267
|
-
protoOf(CardDecksRequestUserData).
|
|
266
|
+
protoOf(CardDecksRequestUserData).lf = function () {
|
|
268
267
|
return this.count;
|
|
269
268
|
};
|
|
270
|
-
protoOf(CardDecksRequestUserData).
|
|
269
|
+
protoOf(CardDecksRequestUserData).y5t = function (id, count) {
|
|
271
270
|
return new CardDecksRequestUserData(id, count);
|
|
272
271
|
};
|
|
273
272
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
274
273
|
id = id === VOID ? this.id : id;
|
|
275
274
|
count = count === VOID ? this.count : count;
|
|
276
|
-
return $super === VOID ? this.
|
|
275
|
+
return $super === VOID ? this.y5t(id, count) : $super.y5t.call(this, id, count);
|
|
277
276
|
};
|
|
278
277
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
279
278
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -288,10 +287,9 @@
|
|
|
288
287
|
return true;
|
|
289
288
|
if (!(other instanceof CardDecksRequestUserData))
|
|
290
289
|
return false;
|
|
291
|
-
|
|
292
|
-
if (!(this.id === tmp0_other_with_cast.id))
|
|
290
|
+
if (!(this.id === other.id))
|
|
293
291
|
return false;
|
|
294
|
-
if (!(this.count ===
|
|
292
|
+
if (!(this.count === other.count))
|
|
295
293
|
return false;
|
|
296
294
|
return true;
|
|
297
295
|
};
|
|
@@ -299,25 +297,25 @@
|
|
|
299
297
|
this.players = players;
|
|
300
298
|
this.gameId = gameId;
|
|
301
299
|
}
|
|
302
|
-
protoOf(CardDeckRequestUserData).
|
|
300
|
+
protoOf(CardDeckRequestUserData).z5t = function () {
|
|
303
301
|
return this.players;
|
|
304
302
|
};
|
|
305
|
-
protoOf(CardDeckRequestUserData).
|
|
303
|
+
protoOf(CardDeckRequestUserData).a5u = function () {
|
|
306
304
|
return this.gameId;
|
|
307
305
|
};
|
|
308
|
-
protoOf(CardDeckRequestUserData).
|
|
306
|
+
protoOf(CardDeckRequestUserData).kf = function () {
|
|
309
307
|
return this.players;
|
|
310
308
|
};
|
|
311
|
-
protoOf(CardDeckRequestUserData).
|
|
309
|
+
protoOf(CardDeckRequestUserData).lf = function () {
|
|
312
310
|
return this.gameId;
|
|
313
311
|
};
|
|
314
|
-
protoOf(CardDeckRequestUserData).
|
|
312
|
+
protoOf(CardDeckRequestUserData).b5u = function (players, gameId) {
|
|
315
313
|
return new CardDeckRequestUserData(players, gameId);
|
|
316
314
|
};
|
|
317
315
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
318
316
|
players = players === VOID ? this.players : players;
|
|
319
317
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
320
|
-
return $super === VOID ? this.
|
|
318
|
+
return $super === VOID ? this.b5u(players, gameId) : $super.b5u.call(this, players, gameId);
|
|
321
319
|
};
|
|
322
320
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
323
321
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -332,10 +330,9 @@
|
|
|
332
330
|
return true;
|
|
333
331
|
if (!(other instanceof CardDeckRequestUserData))
|
|
334
332
|
return false;
|
|
335
|
-
|
|
336
|
-
if (!equals(this.players, tmp0_other_with_cast.players))
|
|
333
|
+
if (!equals(this.players, other.players))
|
|
337
334
|
return false;
|
|
338
|
-
if (!(this.gameId ===
|
|
335
|
+
if (!(this.gameId === other.gameId))
|
|
339
336
|
return false;
|
|
340
337
|
return true;
|
|
341
338
|
};
|
|
@@ -343,25 +340,25 @@
|
|
|
343
340
|
this.id = id;
|
|
344
341
|
this.name = name;
|
|
345
342
|
}
|
|
346
|
-
protoOf(UserInfoData).
|
|
343
|
+
protoOf(UserInfoData).w5t = function () {
|
|
347
344
|
return this.id;
|
|
348
345
|
};
|
|
349
|
-
protoOf(UserInfoData).
|
|
346
|
+
protoOf(UserInfoData).m = function () {
|
|
350
347
|
return this.name;
|
|
351
348
|
};
|
|
352
|
-
protoOf(UserInfoData).
|
|
349
|
+
protoOf(UserInfoData).kf = function () {
|
|
353
350
|
return this.id;
|
|
354
351
|
};
|
|
355
|
-
protoOf(UserInfoData).
|
|
352
|
+
protoOf(UserInfoData).lf = function () {
|
|
356
353
|
return this.name;
|
|
357
354
|
};
|
|
358
|
-
protoOf(UserInfoData).
|
|
355
|
+
protoOf(UserInfoData).c5u = function (id, name) {
|
|
359
356
|
return new UserInfoData(id, name);
|
|
360
357
|
};
|
|
361
358
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
362
359
|
id = id === VOID ? this.id : id;
|
|
363
360
|
name = name === VOID ? this.name : name;
|
|
364
|
-
return $super === VOID ? this.
|
|
361
|
+
return $super === VOID ? this.c5u(id, name) : $super.c5u.call(this, id, name);
|
|
365
362
|
};
|
|
366
363
|
protoOf(UserInfoData).toString = function () {
|
|
367
364
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -376,27 +373,26 @@
|
|
|
376
373
|
return true;
|
|
377
374
|
if (!(other instanceof UserInfoData))
|
|
378
375
|
return false;
|
|
379
|
-
|
|
380
|
-
if (!(this.id === tmp0_other_with_cast.id))
|
|
376
|
+
if (!(this.id === other.id))
|
|
381
377
|
return false;
|
|
382
|
-
if (!(this.name ===
|
|
378
|
+
if (!(this.name === other.name))
|
|
383
379
|
return false;
|
|
384
380
|
return true;
|
|
385
381
|
};
|
|
386
382
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
383
|
+
this.d5u_1 = cardDecks;
|
|
384
|
+
this.e5u_1 = responseText;
|
|
385
|
+
this.f5u_1 = id;
|
|
386
|
+
this.g5u_1 = signature;
|
|
391
387
|
}
|
|
392
388
|
protoOf(CardDeckResult).toString = function () {
|
|
393
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
389
|
+
return 'CardDeckResult(cardDecks=' + toString(this.d5u_1) + ', responseText=' + this.e5u_1 + ', id=' + this.f5u_1 + ', signature=' + this.g5u_1 + ')';
|
|
394
390
|
};
|
|
395
391
|
protoOf(CardDeckResult).hashCode = function () {
|
|
396
|
-
var result = hashCode(this.
|
|
397
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
398
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
399
|
-
result = imul(result, 31) + (this.
|
|
392
|
+
var result = hashCode(this.d5u_1);
|
|
393
|
+
result = imul(result, 31) + getStringHashCode(this.e5u_1) | 0;
|
|
394
|
+
result = imul(result, 31) + getStringHashCode(this.f5u_1) | 0;
|
|
395
|
+
result = imul(result, 31) + (this.g5u_1 == null ? 0 : getStringHashCode(this.g5u_1)) | 0;
|
|
400
396
|
return result;
|
|
401
397
|
};
|
|
402
398
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -404,14 +400,13 @@
|
|
|
404
400
|
return true;
|
|
405
401
|
if (!(other instanceof CardDeckResult))
|
|
406
402
|
return false;
|
|
407
|
-
|
|
408
|
-
if (!equals(this.f53_1, tmp0_other_with_cast.f53_1))
|
|
403
|
+
if (!equals(this.d5u_1, other.d5u_1))
|
|
409
404
|
return false;
|
|
410
|
-
if (!(this.
|
|
405
|
+
if (!(this.e5u_1 === other.e5u_1))
|
|
411
406
|
return false;
|
|
412
|
-
if (!(this.
|
|
407
|
+
if (!(this.f5u_1 === other.f5u_1))
|
|
413
408
|
return false;
|
|
414
|
-
if (!(this.
|
|
409
|
+
if (!(this.g5u_1 == other.g5u_1))
|
|
415
410
|
return false;
|
|
416
411
|
return true;
|
|
417
412
|
};
|
|
@@ -424,7 +419,7 @@
|
|
|
424
419
|
return gameCardDecksRecord.copy(VOID, VOID, VOID, plus(gameCardDecksRecord.rounds, newCardDeckData));
|
|
425
420
|
};
|
|
426
421
|
var Companion_instance_2;
|
|
427
|
-
function
|
|
422
|
+
function Companion_getInstance_2() {
|
|
428
423
|
return Companion_instance_2;
|
|
429
424
|
}
|
|
430
425
|
function GameCardDecksRecord(poolId, signature, userData, rounds) {
|
|
@@ -434,31 +429,31 @@
|
|
|
434
429
|
this.userData = userData;
|
|
435
430
|
this.rounds = rounds;
|
|
436
431
|
}
|
|
437
|
-
protoOf(GameCardDecksRecord).
|
|
432
|
+
protoOf(GameCardDecksRecord).h5u = function () {
|
|
438
433
|
return this.poolId;
|
|
439
434
|
};
|
|
440
|
-
protoOf(GameCardDecksRecord).
|
|
435
|
+
protoOf(GameCardDecksRecord).i5u = function () {
|
|
441
436
|
return this.signature;
|
|
442
437
|
};
|
|
443
|
-
protoOf(GameCardDecksRecord).
|
|
438
|
+
protoOf(GameCardDecksRecord).j5u = function () {
|
|
444
439
|
return this.userData;
|
|
445
440
|
};
|
|
446
|
-
protoOf(GameCardDecksRecord).
|
|
441
|
+
protoOf(GameCardDecksRecord).k5u = function () {
|
|
447
442
|
return this.rounds;
|
|
448
443
|
};
|
|
449
|
-
protoOf(GameCardDecksRecord).
|
|
444
|
+
protoOf(GameCardDecksRecord).kf = function () {
|
|
450
445
|
return this.poolId;
|
|
451
446
|
};
|
|
452
|
-
protoOf(GameCardDecksRecord).
|
|
447
|
+
protoOf(GameCardDecksRecord).lf = function () {
|
|
453
448
|
return this.signature;
|
|
454
449
|
};
|
|
455
|
-
protoOf(GameCardDecksRecord).
|
|
450
|
+
protoOf(GameCardDecksRecord).om = function () {
|
|
456
451
|
return this.userData;
|
|
457
452
|
};
|
|
458
|
-
protoOf(GameCardDecksRecord).
|
|
453
|
+
protoOf(GameCardDecksRecord).l5u = function () {
|
|
459
454
|
return this.rounds;
|
|
460
455
|
};
|
|
461
|
-
protoOf(GameCardDecksRecord).
|
|
456
|
+
protoOf(GameCardDecksRecord).m5u = function (poolId, signature, userData, rounds) {
|
|
462
457
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
463
458
|
};
|
|
464
459
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -466,7 +461,7 @@
|
|
|
466
461
|
signature = signature === VOID ? this.signature : signature;
|
|
467
462
|
userData = userData === VOID ? this.userData : userData;
|
|
468
463
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
469
|
-
return $super === VOID ? this.
|
|
464
|
+
return $super === VOID ? this.m5u(poolId, signature, userData, rounds) : $super.m5u.call(this, poolId, signature, userData, rounds);
|
|
470
465
|
};
|
|
471
466
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
472
467
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -483,14 +478,13 @@
|
|
|
483
478
|
return true;
|
|
484
479
|
if (!(other instanceof GameCardDecksRecord))
|
|
485
480
|
return false;
|
|
486
|
-
|
|
487
|
-
if (!(this.poolId === tmp0_other_with_cast.poolId))
|
|
481
|
+
if (!(this.poolId === other.poolId))
|
|
488
482
|
return false;
|
|
489
|
-
if (!(this.signature ==
|
|
483
|
+
if (!(this.signature == other.signature))
|
|
490
484
|
return false;
|
|
491
|
-
if (!this.userData.equals(
|
|
485
|
+
if (!this.userData.equals(other.userData))
|
|
492
486
|
return false;
|
|
493
|
-
if (!equals(this.rounds,
|
|
487
|
+
if (!equals(this.rounds, other.rounds))
|
|
494
488
|
return false;
|
|
495
489
|
return true;
|
|
496
490
|
};
|
|
@@ -498,25 +492,25 @@
|
|
|
498
492
|
this.cardDeckIndex = cardDeckIndex;
|
|
499
493
|
this.cards = cards;
|
|
500
494
|
}
|
|
501
|
-
protoOf(GameCardDeckData).
|
|
495
|
+
protoOf(GameCardDeckData).n5u = function () {
|
|
502
496
|
return this.cardDeckIndex;
|
|
503
497
|
};
|
|
504
|
-
protoOf(GameCardDeckData).
|
|
498
|
+
protoOf(GameCardDeckData).o5u = function () {
|
|
505
499
|
return this.cards;
|
|
506
500
|
};
|
|
507
|
-
protoOf(GameCardDeckData).
|
|
501
|
+
protoOf(GameCardDeckData).kf = function () {
|
|
508
502
|
return this.cardDeckIndex;
|
|
509
503
|
};
|
|
510
|
-
protoOf(GameCardDeckData).
|
|
504
|
+
protoOf(GameCardDeckData).lf = function () {
|
|
511
505
|
return this.cards;
|
|
512
506
|
};
|
|
513
|
-
protoOf(GameCardDeckData).
|
|
507
|
+
protoOf(GameCardDeckData).p5u = function (cardDeckIndex, cards) {
|
|
514
508
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
515
509
|
};
|
|
516
510
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
517
511
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
518
512
|
cards = cards === VOID ? this.cards : cards;
|
|
519
|
-
return $super === VOID ? this.
|
|
513
|
+
return $super === VOID ? this.p5u(cardDeckIndex, cards) : $super.p5u.call(this, cardDeckIndex, cards);
|
|
520
514
|
};
|
|
521
515
|
protoOf(GameCardDeckData).toString = function () {
|
|
522
516
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -531,10 +525,9 @@
|
|
|
531
525
|
return true;
|
|
532
526
|
if (!(other instanceof GameCardDeckData))
|
|
533
527
|
return false;
|
|
534
|
-
|
|
535
|
-
if (!(this.cardDeckIndex === tmp0_other_with_cast.cardDeckIndex))
|
|
528
|
+
if (!(this.cardDeckIndex === other.cardDeckIndex))
|
|
536
529
|
return false;
|
|
537
|
-
if (!equals(this.cards,
|
|
530
|
+
if (!equals(this.cards, other.cards))
|
|
538
531
|
return false;
|
|
539
532
|
return true;
|
|
540
533
|
};
|
|
@@ -543,25 +536,25 @@
|
|
|
543
536
|
this.baseUrl = baseUrl;
|
|
544
537
|
this.timeoutMillis = timeoutMillis;
|
|
545
538
|
}
|
|
546
|
-
protoOf(HttpConfig).
|
|
539
|
+
protoOf(HttpConfig).q5u = function () {
|
|
547
540
|
return this.baseUrl;
|
|
548
541
|
};
|
|
549
|
-
protoOf(HttpConfig).
|
|
542
|
+
protoOf(HttpConfig).r5u = function () {
|
|
550
543
|
return this.timeoutMillis;
|
|
551
544
|
};
|
|
552
|
-
protoOf(HttpConfig).
|
|
545
|
+
protoOf(HttpConfig).kf = function () {
|
|
553
546
|
return this.baseUrl;
|
|
554
547
|
};
|
|
555
|
-
protoOf(HttpConfig).
|
|
548
|
+
protoOf(HttpConfig).lf = function () {
|
|
556
549
|
return this.timeoutMillis;
|
|
557
550
|
};
|
|
558
|
-
protoOf(HttpConfig).
|
|
551
|
+
protoOf(HttpConfig).y5t = function (baseUrl, timeoutMillis) {
|
|
559
552
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
560
553
|
};
|
|
561
554
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
562
555
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
563
556
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
564
|
-
return $super === VOID ? this.
|
|
557
|
+
return $super === VOID ? this.y5t(baseUrl, timeoutMillis) : $super.y5t.call(this, baseUrl, timeoutMillis);
|
|
565
558
|
};
|
|
566
559
|
protoOf(HttpConfig).toString = function () {
|
|
567
560
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -576,10 +569,9 @@
|
|
|
576
569
|
return true;
|
|
577
570
|
if (!(other instanceof HttpConfig))
|
|
578
571
|
return false;
|
|
579
|
-
|
|
580
|
-
if (!(this.baseUrl === tmp0_other_with_cast.baseUrl))
|
|
572
|
+
if (!(this.baseUrl === other.baseUrl))
|
|
581
573
|
return false;
|
|
582
|
-
if (!(this.timeoutMillis ===
|
|
574
|
+
if (!(this.timeoutMillis === other.timeoutMillis))
|
|
583
575
|
return false;
|
|
584
576
|
return true;
|
|
585
577
|
};
|
|
@@ -596,31 +588,31 @@
|
|
|
596
588
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
597
589
|
this.httpConfig = httpConfig;
|
|
598
590
|
}
|
|
599
|
-
protoOf(RandomOrgConfig).
|
|
591
|
+
protoOf(RandomOrgConfig).s5u = function () {
|
|
600
592
|
return this.apiKey;
|
|
601
593
|
};
|
|
602
|
-
protoOf(RandomOrgConfig).
|
|
594
|
+
protoOf(RandomOrgConfig).t5u = function () {
|
|
603
595
|
return this.poolSize;
|
|
604
596
|
};
|
|
605
|
-
protoOf(RandomOrgConfig).
|
|
597
|
+
protoOf(RandomOrgConfig).u5u = function () {
|
|
606
598
|
return this.thresholdForUsedPool;
|
|
607
599
|
};
|
|
608
|
-
protoOf(RandomOrgConfig).
|
|
600
|
+
protoOf(RandomOrgConfig).v5u = function () {
|
|
609
601
|
return this.httpConfig;
|
|
610
602
|
};
|
|
611
|
-
protoOf(RandomOrgConfig).
|
|
603
|
+
protoOf(RandomOrgConfig).kf = function () {
|
|
612
604
|
return this.apiKey;
|
|
613
605
|
};
|
|
614
|
-
protoOf(RandomOrgConfig).
|
|
606
|
+
protoOf(RandomOrgConfig).lf = function () {
|
|
615
607
|
return this.poolSize;
|
|
616
608
|
};
|
|
617
|
-
protoOf(RandomOrgConfig).
|
|
609
|
+
protoOf(RandomOrgConfig).om = function () {
|
|
618
610
|
return this.thresholdForUsedPool;
|
|
619
611
|
};
|
|
620
|
-
protoOf(RandomOrgConfig).
|
|
612
|
+
protoOf(RandomOrgConfig).l5u = function () {
|
|
621
613
|
return this.httpConfig;
|
|
622
614
|
};
|
|
623
|
-
protoOf(RandomOrgConfig).
|
|
615
|
+
protoOf(RandomOrgConfig).w5u = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
624
616
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
625
617
|
};
|
|
626
618
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -628,7 +620,7 @@
|
|
|
628
620
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
629
621
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
630
622
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
631
|
-
return $super === VOID ? this.
|
|
623
|
+
return $super === VOID ? this.w5u(apiKey, poolSize, thresholdForUsedPool, httpConfig) : $super.w5u.call(this, apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
632
624
|
};
|
|
633
625
|
protoOf(RandomOrgConfig).toString = function () {
|
|
634
626
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -645,79 +637,78 @@
|
|
|
645
637
|
return true;
|
|
646
638
|
if (!(other instanceof RandomOrgConfig))
|
|
647
639
|
return false;
|
|
648
|
-
|
|
649
|
-
if (!(this.apiKey === tmp0_other_with_cast.apiKey))
|
|
640
|
+
if (!(this.apiKey === other.apiKey))
|
|
650
641
|
return false;
|
|
651
|
-
if (!(this.poolSize ===
|
|
642
|
+
if (!(this.poolSize === other.poolSize))
|
|
652
643
|
return false;
|
|
653
|
-
if (!(this.thresholdForUsedPool ===
|
|
644
|
+
if (!(this.thresholdForUsedPool === other.thresholdForUsedPool))
|
|
654
645
|
return false;
|
|
655
|
-
if (!this.httpConfig.equals(
|
|
646
|
+
if (!this.httpConfig.equals(other.httpConfig))
|
|
656
647
|
return false;
|
|
657
648
|
return true;
|
|
658
649
|
};
|
|
659
650
|
function Companion_1() {
|
|
660
651
|
}
|
|
661
652
|
var Companion_instance_3;
|
|
662
|
-
function
|
|
653
|
+
function Companion_getInstance_3() {
|
|
663
654
|
return Companion_instance_3;
|
|
664
655
|
}
|
|
665
656
|
function $serializer() {
|
|
666
657
|
$serializer_instance = this;
|
|
667
658
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
668
|
-
tmp0_serialDesc.
|
|
669
|
-
tmp0_serialDesc.
|
|
670
|
-
this.
|
|
671
|
-
}
|
|
672
|
-
protoOf($serializer).
|
|
673
|
-
var tmp0_desc = this.
|
|
674
|
-
var tmp1_output = encoder.
|
|
675
|
-
tmp1_output.
|
|
676
|
-
tmp1_output.
|
|
677
|
-
tmp1_output.
|
|
678
|
-
};
|
|
679
|
-
protoOf($serializer).
|
|
680
|
-
return this.
|
|
681
|
-
};
|
|
682
|
-
protoOf($serializer).
|
|
683
|
-
var tmp0_desc = this.
|
|
659
|
+
tmp0_serialDesc.xz('jsonrpc', false);
|
|
660
|
+
tmp0_serialDesc.xz('error', false);
|
|
661
|
+
this.x5u_1 = tmp0_serialDesc;
|
|
662
|
+
}
|
|
663
|
+
protoOf($serializer).y5u = function (encoder, value) {
|
|
664
|
+
var tmp0_desc = this.x5u_1;
|
|
665
|
+
var tmp1_output = encoder.fs(tmp0_desc);
|
|
666
|
+
tmp1_output.ut(tmp0_desc, 0, value.z5u_1);
|
|
667
|
+
tmp1_output.yt(tmp0_desc, 1, $serializer_getInstance_0(), value.a5v_1);
|
|
668
|
+
tmp1_output.gs(tmp0_desc);
|
|
669
|
+
};
|
|
670
|
+
protoOf($serializer).to = function (encoder, value) {
|
|
671
|
+
return this.y5u(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
672
|
+
};
|
|
673
|
+
protoOf($serializer).uo = function (decoder) {
|
|
674
|
+
var tmp0_desc = this.x5u_1;
|
|
684
675
|
var tmp1_flag = true;
|
|
685
676
|
var tmp2_index = 0;
|
|
686
677
|
var tmp3_bitMask0 = 0;
|
|
687
678
|
var tmp4_local0 = null;
|
|
688
679
|
var tmp5_local1 = null;
|
|
689
|
-
var tmp6_input = decoder.
|
|
690
|
-
if (tmp6_input.
|
|
691
|
-
tmp4_local0 = tmp6_input.
|
|
680
|
+
var tmp6_input = decoder.fs(tmp0_desc);
|
|
681
|
+
if (tmp6_input.vs()) {
|
|
682
|
+
tmp4_local0 = tmp6_input.ps(tmp0_desc, 0);
|
|
692
683
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
693
|
-
tmp5_local1 = tmp6_input.
|
|
684
|
+
tmp5_local1 = tmp6_input.ts(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
694
685
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
695
686
|
} else
|
|
696
687
|
while (tmp1_flag) {
|
|
697
|
-
tmp2_index = tmp6_input.
|
|
688
|
+
tmp2_index = tmp6_input.ws(tmp0_desc);
|
|
698
689
|
switch (tmp2_index) {
|
|
699
690
|
case -1:
|
|
700
691
|
tmp1_flag = false;
|
|
701
692
|
break;
|
|
702
693
|
case 0:
|
|
703
|
-
tmp4_local0 = tmp6_input.
|
|
694
|
+
tmp4_local0 = tmp6_input.ps(tmp0_desc, 0);
|
|
704
695
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
705
696
|
break;
|
|
706
697
|
case 1:
|
|
707
|
-
tmp5_local1 = tmp6_input.
|
|
698
|
+
tmp5_local1 = tmp6_input.ts(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
708
699
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
709
700
|
break;
|
|
710
701
|
default:
|
|
711
702
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
712
703
|
}
|
|
713
704
|
}
|
|
714
|
-
tmp6_input.
|
|
705
|
+
tmp6_input.gs(tmp0_desc);
|
|
715
706
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
716
707
|
};
|
|
717
|
-
protoOf($serializer).
|
|
718
|
-
return this.
|
|
708
|
+
protoOf($serializer).so = function () {
|
|
709
|
+
return this.x5u_1;
|
|
719
710
|
};
|
|
720
|
-
protoOf($serializer).
|
|
711
|
+
protoOf($serializer).m10 = function () {
|
|
721
712
|
// Inline function 'kotlin.arrayOf' call
|
|
722
713
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
723
714
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -731,25 +722,25 @@
|
|
|
731
722
|
}
|
|
732
723
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
733
724
|
if (!(3 === (3 & seen0))) {
|
|
734
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
725
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().x5u_1);
|
|
735
726
|
}
|
|
736
|
-
$this.
|
|
737
|
-
$this.
|
|
727
|
+
$this.z5u_1 = jsonrpc;
|
|
728
|
+
$this.a5v_1 = error;
|
|
738
729
|
return $this;
|
|
739
730
|
}
|
|
740
731
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
741
732
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
742
733
|
}
|
|
743
734
|
function ErrorResponseDto(jsonrpc, error) {
|
|
744
|
-
this.
|
|
745
|
-
this.
|
|
735
|
+
this.z5u_1 = jsonrpc;
|
|
736
|
+
this.a5v_1 = error;
|
|
746
737
|
}
|
|
747
738
|
protoOf(ErrorResponseDto).toString = function () {
|
|
748
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
739
|
+
return 'ErrorResponseDto(jsonrpc=' + this.z5u_1 + ', error=' + toString_0(this.a5v_1) + ')';
|
|
749
740
|
};
|
|
750
741
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
751
|
-
var result = getStringHashCode(this.
|
|
752
|
-
result = imul(result, 31) + (this.
|
|
742
|
+
var result = getStringHashCode(this.z5u_1);
|
|
743
|
+
result = imul(result, 31) + (this.a5v_1 == null ? 0 : this.a5v_1.hashCode()) | 0;
|
|
753
744
|
return result;
|
|
754
745
|
};
|
|
755
746
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -757,69 +748,68 @@
|
|
|
757
748
|
return true;
|
|
758
749
|
if (!(other instanceof ErrorResponseDto))
|
|
759
750
|
return false;
|
|
760
|
-
|
|
761
|
-
if (!(this.b54_1 === tmp0_other_with_cast.b54_1))
|
|
751
|
+
if (!(this.z5u_1 === other.z5u_1))
|
|
762
752
|
return false;
|
|
763
|
-
if (!equals(this.
|
|
753
|
+
if (!equals(this.a5v_1, other.a5v_1))
|
|
764
754
|
return false;
|
|
765
755
|
return true;
|
|
766
756
|
};
|
|
767
757
|
function $serializer_0() {
|
|
768
758
|
$serializer_instance_0 = this;
|
|
769
759
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
770
|
-
tmp0_serialDesc.
|
|
771
|
-
tmp0_serialDesc.
|
|
772
|
-
this.
|
|
773
|
-
}
|
|
774
|
-
protoOf($serializer_0).
|
|
775
|
-
var tmp0_desc = this.
|
|
776
|
-
var tmp1_output = encoder.
|
|
777
|
-
tmp1_output.
|
|
778
|
-
tmp1_output.
|
|
779
|
-
tmp1_output.
|
|
780
|
-
};
|
|
781
|
-
protoOf($serializer_0).
|
|
782
|
-
return this.
|
|
783
|
-
};
|
|
784
|
-
protoOf($serializer_0).
|
|
785
|
-
var tmp0_desc = this.
|
|
760
|
+
tmp0_serialDesc.xz('code', false);
|
|
761
|
+
tmp0_serialDesc.xz('message', false);
|
|
762
|
+
this.b5v_1 = tmp0_serialDesc;
|
|
763
|
+
}
|
|
764
|
+
protoOf($serializer_0).c5v = function (encoder, value) {
|
|
765
|
+
var tmp0_desc = this.b5v_1;
|
|
766
|
+
var tmp1_output = encoder.fs(tmp0_desc);
|
|
767
|
+
tmp1_output.yt(tmp0_desc, 0, IntSerializer_getInstance(), value.d5v_1);
|
|
768
|
+
tmp1_output.yt(tmp0_desc, 1, StringSerializer_getInstance(), value.e5v_1);
|
|
769
|
+
tmp1_output.gs(tmp0_desc);
|
|
770
|
+
};
|
|
771
|
+
protoOf($serializer_0).to = function (encoder, value) {
|
|
772
|
+
return this.c5v(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
773
|
+
};
|
|
774
|
+
protoOf($serializer_0).uo = function (decoder) {
|
|
775
|
+
var tmp0_desc = this.b5v_1;
|
|
786
776
|
var tmp1_flag = true;
|
|
787
777
|
var tmp2_index = 0;
|
|
788
778
|
var tmp3_bitMask0 = 0;
|
|
789
779
|
var tmp4_local0 = null;
|
|
790
780
|
var tmp5_local1 = null;
|
|
791
|
-
var tmp6_input = decoder.
|
|
792
|
-
if (tmp6_input.
|
|
793
|
-
tmp4_local0 = tmp6_input.
|
|
781
|
+
var tmp6_input = decoder.fs(tmp0_desc);
|
|
782
|
+
if (tmp6_input.vs()) {
|
|
783
|
+
tmp4_local0 = tmp6_input.ts(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
794
784
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
795
|
-
tmp5_local1 = tmp6_input.
|
|
785
|
+
tmp5_local1 = tmp6_input.ts(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
796
786
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
797
787
|
} else
|
|
798
788
|
while (tmp1_flag) {
|
|
799
|
-
tmp2_index = tmp6_input.
|
|
789
|
+
tmp2_index = tmp6_input.ws(tmp0_desc);
|
|
800
790
|
switch (tmp2_index) {
|
|
801
791
|
case -1:
|
|
802
792
|
tmp1_flag = false;
|
|
803
793
|
break;
|
|
804
794
|
case 0:
|
|
805
|
-
tmp4_local0 = tmp6_input.
|
|
795
|
+
tmp4_local0 = tmp6_input.ts(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
806
796
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
807
797
|
break;
|
|
808
798
|
case 1:
|
|
809
|
-
tmp5_local1 = tmp6_input.
|
|
799
|
+
tmp5_local1 = tmp6_input.ts(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
810
800
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
811
801
|
break;
|
|
812
802
|
default:
|
|
813
803
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
814
804
|
}
|
|
815
805
|
}
|
|
816
|
-
tmp6_input.
|
|
806
|
+
tmp6_input.gs(tmp0_desc);
|
|
817
807
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
818
808
|
};
|
|
819
|
-
protoOf($serializer_0).
|
|
820
|
-
return this.
|
|
809
|
+
protoOf($serializer_0).so = function () {
|
|
810
|
+
return this.b5v_1;
|
|
821
811
|
};
|
|
822
|
-
protoOf($serializer_0).
|
|
812
|
+
protoOf($serializer_0).m10 = function () {
|
|
823
813
|
// Inline function 'kotlin.arrayOf' call
|
|
824
814
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
825
815
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -833,10 +823,10 @@
|
|
|
833
823
|
}
|
|
834
824
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
835
825
|
if (!(3 === (3 & seen0))) {
|
|
836
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
826
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().b5v_1);
|
|
837
827
|
}
|
|
838
|
-
$this.
|
|
839
|
-
$this.
|
|
828
|
+
$this.d5v_1 = code;
|
|
829
|
+
$this.e5v_1 = message;
|
|
840
830
|
return $this;
|
|
841
831
|
}
|
|
842
832
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -845,11 +835,11 @@
|
|
|
845
835
|
function ErrorDto() {
|
|
846
836
|
}
|
|
847
837
|
protoOf(ErrorDto).toString = function () {
|
|
848
|
-
return 'ErrorDto(code=' + this.
|
|
838
|
+
return 'ErrorDto(code=' + this.d5v_1 + ', message=' + this.e5v_1 + ')';
|
|
849
839
|
};
|
|
850
840
|
protoOf(ErrorDto).hashCode = function () {
|
|
851
|
-
var result = this.
|
|
852
|
-
result = imul(result, 31) + (this.
|
|
841
|
+
var result = this.d5v_1 == null ? 0 : this.d5v_1;
|
|
842
|
+
result = imul(result, 31) + (this.e5v_1 == null ? 0 : getStringHashCode(this.e5v_1)) | 0;
|
|
853
843
|
return result;
|
|
854
844
|
};
|
|
855
845
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -857,16 +847,15 @@
|
|
|
857
847
|
return true;
|
|
858
848
|
if (!(other instanceof ErrorDto))
|
|
859
849
|
return false;
|
|
860
|
-
|
|
861
|
-
if (!(this.f54_1 == tmp0_other_with_cast.f54_1))
|
|
850
|
+
if (!(this.d5v_1 == other.d5v_1))
|
|
862
851
|
return false;
|
|
863
|
-
if (!(this.
|
|
852
|
+
if (!(this.e5v_1 == other.e5v_1))
|
|
864
853
|
return false;
|
|
865
854
|
return true;
|
|
866
855
|
};
|
|
867
856
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
868
857
|
$serializer_1.call($this);
|
|
869
|
-
$this.
|
|
858
|
+
$this.g5v_1 = typeSerial0;
|
|
870
859
|
return $this;
|
|
871
860
|
}
|
|
872
861
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -875,46 +864,46 @@
|
|
|
875
864
|
function Companion_2() {
|
|
876
865
|
Companion_instance_4 = this;
|
|
877
866
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
878
|
-
tmp0_serialDesc.
|
|
879
|
-
tmp0_serialDesc.
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
tmp0_serialDesc.
|
|
882
|
-
this.
|
|
867
|
+
tmp0_serialDesc.xz('jsonrpc', false);
|
|
868
|
+
tmp0_serialDesc.xz('method', false);
|
|
869
|
+
tmp0_serialDesc.xz('params', false);
|
|
870
|
+
tmp0_serialDesc.xz('id', false);
|
|
871
|
+
this.h5v_1 = tmp0_serialDesc;
|
|
883
872
|
}
|
|
884
|
-
protoOf(Companion_2).
|
|
873
|
+
protoOf(Companion_2).i5v = function (typeSerial0) {
|
|
885
874
|
return $serializer_init_$Create$(typeSerial0);
|
|
886
875
|
};
|
|
887
|
-
protoOf(Companion_2).
|
|
888
|
-
return this.
|
|
876
|
+
protoOf(Companion_2).x10 = function (typeParamsSerializers) {
|
|
877
|
+
return this.i5v(typeParamsSerializers[0]);
|
|
889
878
|
};
|
|
890
879
|
var Companion_instance_4;
|
|
891
|
-
function
|
|
880
|
+
function Companion_getInstance_4() {
|
|
892
881
|
if (Companion_instance_4 == null)
|
|
893
882
|
new Companion_2();
|
|
894
883
|
return Companion_instance_4;
|
|
895
884
|
}
|
|
896
885
|
function $serializer_1() {
|
|
897
886
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
898
|
-
tmp0_serialDesc.
|
|
899
|
-
tmp0_serialDesc.
|
|
900
|
-
tmp0_serialDesc.
|
|
901
|
-
tmp0_serialDesc.
|
|
902
|
-
this.
|
|
903
|
-
}
|
|
904
|
-
protoOf($serializer_1).
|
|
905
|
-
var tmp0_desc = this.
|
|
906
|
-
var tmp1_output = encoder.
|
|
907
|
-
tmp1_output.
|
|
908
|
-
tmp1_output.
|
|
909
|
-
tmp1_output.
|
|
910
|
-
tmp1_output.
|
|
911
|
-
tmp1_output.
|
|
912
|
-
};
|
|
913
|
-
protoOf($serializer_1).
|
|
914
|
-
return this.
|
|
915
|
-
};
|
|
916
|
-
protoOf($serializer_1).
|
|
917
|
-
var tmp0_desc = this.
|
|
887
|
+
tmp0_serialDesc.xz('jsonrpc', false);
|
|
888
|
+
tmp0_serialDesc.xz('method', false);
|
|
889
|
+
tmp0_serialDesc.xz('params', false);
|
|
890
|
+
tmp0_serialDesc.xz('id', false);
|
|
891
|
+
this.f5v_1 = tmp0_serialDesc;
|
|
892
|
+
}
|
|
893
|
+
protoOf($serializer_1).j5v = function (encoder, value) {
|
|
894
|
+
var tmp0_desc = this.f5v_1;
|
|
895
|
+
var tmp1_output = encoder.fs(tmp0_desc);
|
|
896
|
+
tmp1_output.ut(tmp0_desc, 0, value.k5v_1);
|
|
897
|
+
tmp1_output.ut(tmp0_desc, 1, value.l5v_1);
|
|
898
|
+
tmp1_output.wt(tmp0_desc, 2, this.g5v_1, value.m5v_1);
|
|
899
|
+
tmp1_output.ut(tmp0_desc, 3, value.n5v_1);
|
|
900
|
+
tmp1_output.gs(tmp0_desc);
|
|
901
|
+
};
|
|
902
|
+
protoOf($serializer_1).to = function (encoder, value) {
|
|
903
|
+
return this.j5v(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
904
|
+
};
|
|
905
|
+
protoOf($serializer_1).uo = function (decoder) {
|
|
906
|
+
var tmp0_desc = this.f5v_1;
|
|
918
907
|
var tmp1_flag = true;
|
|
919
908
|
var tmp2_index = 0;
|
|
920
909
|
var tmp3_bitMask0 = 0;
|
|
@@ -922,89 +911,89 @@
|
|
|
922
911
|
var tmp5_local1 = null;
|
|
923
912
|
var tmp6_local2 = null;
|
|
924
913
|
var tmp7_local3 = null;
|
|
925
|
-
var tmp8_input = decoder.
|
|
926
|
-
if (tmp8_input.
|
|
927
|
-
tmp4_local0 = tmp8_input.
|
|
914
|
+
var tmp8_input = decoder.fs(tmp0_desc);
|
|
915
|
+
if (tmp8_input.vs()) {
|
|
916
|
+
tmp4_local0 = tmp8_input.ps(tmp0_desc, 0);
|
|
928
917
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
929
|
-
tmp5_local1 = tmp8_input.
|
|
918
|
+
tmp5_local1 = tmp8_input.ps(tmp0_desc, 1);
|
|
930
919
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
931
|
-
tmp6_local2 = tmp8_input.
|
|
920
|
+
tmp6_local2 = tmp8_input.rs(tmp0_desc, 2, this.g5v_1, tmp6_local2);
|
|
932
921
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
933
|
-
tmp7_local3 = tmp8_input.
|
|
922
|
+
tmp7_local3 = tmp8_input.ps(tmp0_desc, 3);
|
|
934
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
935
924
|
} else
|
|
936
925
|
while (tmp1_flag) {
|
|
937
|
-
tmp2_index = tmp8_input.
|
|
926
|
+
tmp2_index = tmp8_input.ws(tmp0_desc);
|
|
938
927
|
switch (tmp2_index) {
|
|
939
928
|
case -1:
|
|
940
929
|
tmp1_flag = false;
|
|
941
930
|
break;
|
|
942
931
|
case 0:
|
|
943
|
-
tmp4_local0 = tmp8_input.
|
|
932
|
+
tmp4_local0 = tmp8_input.ps(tmp0_desc, 0);
|
|
944
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
945
934
|
break;
|
|
946
935
|
case 1:
|
|
947
|
-
tmp5_local1 = tmp8_input.
|
|
936
|
+
tmp5_local1 = tmp8_input.ps(tmp0_desc, 1);
|
|
948
937
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
949
938
|
break;
|
|
950
939
|
case 2:
|
|
951
|
-
tmp6_local2 = tmp8_input.
|
|
940
|
+
tmp6_local2 = tmp8_input.rs(tmp0_desc, 2, this.g5v_1, tmp6_local2);
|
|
952
941
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
953
942
|
break;
|
|
954
943
|
case 3:
|
|
955
|
-
tmp7_local3 = tmp8_input.
|
|
944
|
+
tmp7_local3 = tmp8_input.ps(tmp0_desc, 3);
|
|
956
945
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
957
946
|
break;
|
|
958
947
|
default:
|
|
959
948
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
960
949
|
}
|
|
961
950
|
}
|
|
962
|
-
tmp8_input.
|
|
951
|
+
tmp8_input.gs(tmp0_desc);
|
|
963
952
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
964
953
|
};
|
|
965
|
-
protoOf($serializer_1).
|
|
966
|
-
return this.
|
|
954
|
+
protoOf($serializer_1).so = function () {
|
|
955
|
+
return this.f5v_1;
|
|
967
956
|
};
|
|
968
|
-
protoOf($serializer_1).
|
|
957
|
+
protoOf($serializer_1).m10 = function () {
|
|
969
958
|
// Inline function 'kotlin.arrayOf' call
|
|
970
959
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
971
960
|
// Inline function 'kotlin.js.asDynamic' call
|
|
972
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
961
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.g5v_1, StringSerializer_getInstance()];
|
|
973
962
|
};
|
|
974
|
-
protoOf($serializer_1).
|
|
963
|
+
protoOf($serializer_1).n10 = function () {
|
|
975
964
|
// Inline function 'kotlin.arrayOf' call
|
|
976
965
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
977
966
|
// Inline function 'kotlin.js.asDynamic' call
|
|
978
|
-
return [this.
|
|
967
|
+
return [this.g5v_1];
|
|
979
968
|
};
|
|
980
969
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
981
970
|
if (!(15 === (15 & seen0))) {
|
|
982
|
-
throwMissingFieldException(seen0, 15,
|
|
971
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_4().h5v_1);
|
|
983
972
|
}
|
|
984
|
-
$this.
|
|
985
|
-
$this.
|
|
986
|
-
$this.
|
|
987
|
-
$this.
|
|
973
|
+
$this.k5v_1 = jsonrpc;
|
|
974
|
+
$this.l5v_1 = method;
|
|
975
|
+
$this.m5v_1 = params;
|
|
976
|
+
$this.n5v_1 = id;
|
|
988
977
|
return $this;
|
|
989
978
|
}
|
|
990
979
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
991
980
|
return RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, objectCreate(protoOf(RandomRequestDto)));
|
|
992
981
|
}
|
|
993
982
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
994
|
-
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
983
|
+
Companion_getInstance_4();
|
|
984
|
+
this.k5v_1 = jsonrpc;
|
|
985
|
+
this.l5v_1 = method;
|
|
986
|
+
this.m5v_1 = params;
|
|
987
|
+
this.n5v_1 = id;
|
|
999
988
|
}
|
|
1000
989
|
protoOf(RandomRequestDto).toString = function () {
|
|
1001
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
990
|
+
return 'RandomRequestDto(jsonrpc=' + this.k5v_1 + ', method=' + this.l5v_1 + ', params=' + toString(this.m5v_1) + ', id=' + this.n5v_1 + ')';
|
|
1002
991
|
};
|
|
1003
992
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1004
|
-
var result = getStringHashCode(this.
|
|
1005
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1006
|
-
result = imul(result, 31) + hashCode(this.
|
|
1007
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
993
|
+
var result = getStringHashCode(this.k5v_1);
|
|
994
|
+
result = imul(result, 31) + getStringHashCode(this.l5v_1) | 0;
|
|
995
|
+
result = imul(result, 31) + hashCode(this.m5v_1) | 0;
|
|
996
|
+
result = imul(result, 31) + getStringHashCode(this.n5v_1) | 0;
|
|
1008
997
|
return result;
|
|
1009
998
|
};
|
|
1010
999
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1012,14 +1001,13 @@
|
|
|
1012
1001
|
return true;
|
|
1013
1002
|
if (!(other instanceof RandomRequestDto))
|
|
1014
1003
|
return false;
|
|
1015
|
-
|
|
1016
|
-
if (!(this.m54_1 === tmp0_other_with_cast.m54_1))
|
|
1004
|
+
if (!(this.k5v_1 === other.k5v_1))
|
|
1017
1005
|
return false;
|
|
1018
|
-
if (!(this.
|
|
1006
|
+
if (!(this.l5v_1 === other.l5v_1))
|
|
1019
1007
|
return false;
|
|
1020
|
-
if (!equals(this.
|
|
1008
|
+
if (!equals(this.m5v_1, other.m5v_1))
|
|
1021
1009
|
return false;
|
|
1022
|
-
if (!(this.
|
|
1010
|
+
if (!(this.n5v_1 === other.n5v_1))
|
|
1023
1011
|
return false;
|
|
1024
1012
|
return true;
|
|
1025
1013
|
};
|
|
@@ -1033,10 +1021,10 @@
|
|
|
1033
1021
|
// Inline function 'kotlin.arrayOf' call
|
|
1034
1022
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1035
1023
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1036
|
-
tmp.
|
|
1024
|
+
tmp.o5v_1 = [null, null, lazy(tmp_0, RandomParamsDto$RandomIntegerSequencesParamsDto$Companion$$childSerializers$_anonymous__1scx7a), null, null, null, null, null];
|
|
1037
1025
|
}
|
|
1038
1026
|
var Companion_instance_5;
|
|
1039
|
-
function
|
|
1027
|
+
function Companion_getInstance_5() {
|
|
1040
1028
|
if (Companion_instance_5 == null)
|
|
1041
1029
|
new Companion_3();
|
|
1042
1030
|
return Companion_instance_5;
|
|
@@ -1044,35 +1032,35 @@
|
|
|
1044
1032
|
function $serializer_2() {
|
|
1045
1033
|
$serializer_instance_1 = this;
|
|
1046
1034
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1047
|
-
tmp0_serialDesc.
|
|
1048
|
-
tmp0_serialDesc.
|
|
1049
|
-
tmp0_serialDesc.
|
|
1050
|
-
tmp0_serialDesc.
|
|
1051
|
-
tmp0_serialDesc.
|
|
1052
|
-
tmp0_serialDesc.
|
|
1053
|
-
tmp0_serialDesc.
|
|
1054
|
-
tmp0_serialDesc.
|
|
1055
|
-
this.
|
|
1056
|
-
}
|
|
1057
|
-
protoOf($serializer_2).
|
|
1058
|
-
var tmp0_desc = this.
|
|
1059
|
-
var tmp1_output = encoder.
|
|
1060
|
-
var tmp2_cached =
|
|
1061
|
-
tmp1_output.
|
|
1062
|
-
tmp1_output.
|
|
1063
|
-
tmp1_output.
|
|
1064
|
-
tmp1_output.
|
|
1065
|
-
tmp1_output.
|
|
1066
|
-
tmp1_output.
|
|
1067
|
-
tmp1_output.
|
|
1068
|
-
tmp1_output.
|
|
1069
|
-
tmp1_output.
|
|
1070
|
-
};
|
|
1071
|
-
protoOf($serializer_2).
|
|
1072
|
-
return this.
|
|
1073
|
-
};
|
|
1074
|
-
protoOf($serializer_2).
|
|
1075
|
-
var tmp0_desc = this.
|
|
1035
|
+
tmp0_serialDesc.xz('apiKey', false);
|
|
1036
|
+
tmp0_serialDesc.xz('n', false);
|
|
1037
|
+
tmp0_serialDesc.xz('length', false);
|
|
1038
|
+
tmp0_serialDesc.xz('min', false);
|
|
1039
|
+
tmp0_serialDesc.xz('max', false);
|
|
1040
|
+
tmp0_serialDesc.xz('replacement', false);
|
|
1041
|
+
tmp0_serialDesc.xz('ticketId', false);
|
|
1042
|
+
tmp0_serialDesc.xz('userData', false);
|
|
1043
|
+
this.p5v_1 = tmp0_serialDesc;
|
|
1044
|
+
}
|
|
1045
|
+
protoOf($serializer_2).q5v = function (encoder, value) {
|
|
1046
|
+
var tmp0_desc = this.p5v_1;
|
|
1047
|
+
var tmp1_output = encoder.fs(tmp0_desc);
|
|
1048
|
+
var tmp2_cached = Companion_getInstance_5().o5v_1;
|
|
1049
|
+
tmp1_output.ut(tmp0_desc, 0, value.r5v_1);
|
|
1050
|
+
tmp1_output.pt(tmp0_desc, 1, value.s5v_1);
|
|
1051
|
+
tmp1_output.wt(tmp0_desc, 2, tmp2_cached[2].o1(), value.t5v_1);
|
|
1052
|
+
tmp1_output.pt(tmp0_desc, 3, value.u5v_1);
|
|
1053
|
+
tmp1_output.pt(tmp0_desc, 4, value.v5v_1);
|
|
1054
|
+
tmp1_output.mt(tmp0_desc, 5, value.w5v_1);
|
|
1055
|
+
tmp1_output.yt(tmp0_desc, 6, StringSerializer_getInstance(), value.x5v_1);
|
|
1056
|
+
tmp1_output.yt(tmp0_desc, 7, $serializer_getInstance_2(), value.y5v_1);
|
|
1057
|
+
tmp1_output.gs(tmp0_desc);
|
|
1058
|
+
};
|
|
1059
|
+
protoOf($serializer_2).to = function (encoder, value) {
|
|
1060
|
+
return this.q5v(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1061
|
+
};
|
|
1062
|
+
protoOf($serializer_2).uo = function (decoder) {
|
|
1063
|
+
var tmp0_desc = this.p5v_1;
|
|
1076
1064
|
var tmp1_flag = true;
|
|
1077
1065
|
var tmp2_index = 0;
|
|
1078
1066
|
var tmp3_bitMask0 = 0;
|
|
@@ -1084,80 +1072,80 @@
|
|
|
1084
1072
|
var tmp9_local5 = false;
|
|
1085
1073
|
var tmp10_local6 = null;
|
|
1086
1074
|
var tmp11_local7 = null;
|
|
1087
|
-
var tmp12_input = decoder.
|
|
1088
|
-
var tmp13_cached =
|
|
1089
|
-
if (tmp12_input.
|
|
1090
|
-
tmp4_local0 = tmp12_input.
|
|
1075
|
+
var tmp12_input = decoder.fs(tmp0_desc);
|
|
1076
|
+
var tmp13_cached = Companion_getInstance_5().o5v_1;
|
|
1077
|
+
if (tmp12_input.vs()) {
|
|
1078
|
+
tmp4_local0 = tmp12_input.ps(tmp0_desc, 0);
|
|
1091
1079
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1092
|
-
tmp5_local1 = tmp12_input.
|
|
1080
|
+
tmp5_local1 = tmp12_input.ks(tmp0_desc, 1);
|
|
1093
1081
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1094
|
-
tmp6_local2 = tmp12_input.
|
|
1082
|
+
tmp6_local2 = tmp12_input.rs(tmp0_desc, 2, tmp13_cached[2].o1(), tmp6_local2);
|
|
1095
1083
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1096
|
-
tmp7_local3 = tmp12_input.
|
|
1084
|
+
tmp7_local3 = tmp12_input.ks(tmp0_desc, 3);
|
|
1097
1085
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1098
|
-
tmp8_local4 = tmp12_input.
|
|
1086
|
+
tmp8_local4 = tmp12_input.ks(tmp0_desc, 4);
|
|
1099
1087
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1100
|
-
tmp9_local5 = tmp12_input.
|
|
1088
|
+
tmp9_local5 = tmp12_input.hs(tmp0_desc, 5);
|
|
1101
1089
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1102
|
-
tmp10_local6 = tmp12_input.
|
|
1090
|
+
tmp10_local6 = tmp12_input.ts(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1103
1091
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1104
|
-
tmp11_local7 = tmp12_input.
|
|
1092
|
+
tmp11_local7 = tmp12_input.ts(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1105
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1106
1094
|
} else
|
|
1107
1095
|
while (tmp1_flag) {
|
|
1108
|
-
tmp2_index = tmp12_input.
|
|
1096
|
+
tmp2_index = tmp12_input.ws(tmp0_desc);
|
|
1109
1097
|
switch (tmp2_index) {
|
|
1110
1098
|
case -1:
|
|
1111
1099
|
tmp1_flag = false;
|
|
1112
1100
|
break;
|
|
1113
1101
|
case 0:
|
|
1114
|
-
tmp4_local0 = tmp12_input.
|
|
1102
|
+
tmp4_local0 = tmp12_input.ps(tmp0_desc, 0);
|
|
1115
1103
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1116
1104
|
break;
|
|
1117
1105
|
case 1:
|
|
1118
|
-
tmp5_local1 = tmp12_input.
|
|
1106
|
+
tmp5_local1 = tmp12_input.ks(tmp0_desc, 1);
|
|
1119
1107
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1120
1108
|
break;
|
|
1121
1109
|
case 2:
|
|
1122
|
-
tmp6_local2 = tmp12_input.
|
|
1110
|
+
tmp6_local2 = tmp12_input.rs(tmp0_desc, 2, tmp13_cached[2].o1(), tmp6_local2);
|
|
1123
1111
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1124
1112
|
break;
|
|
1125
1113
|
case 3:
|
|
1126
|
-
tmp7_local3 = tmp12_input.
|
|
1114
|
+
tmp7_local3 = tmp12_input.ks(tmp0_desc, 3);
|
|
1127
1115
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1128
1116
|
break;
|
|
1129
1117
|
case 4:
|
|
1130
|
-
tmp8_local4 = tmp12_input.
|
|
1118
|
+
tmp8_local4 = tmp12_input.ks(tmp0_desc, 4);
|
|
1131
1119
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1132
1120
|
break;
|
|
1133
1121
|
case 5:
|
|
1134
|
-
tmp9_local5 = tmp12_input.
|
|
1122
|
+
tmp9_local5 = tmp12_input.hs(tmp0_desc, 5);
|
|
1135
1123
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1136
1124
|
break;
|
|
1137
1125
|
case 6:
|
|
1138
|
-
tmp10_local6 = tmp12_input.
|
|
1126
|
+
tmp10_local6 = tmp12_input.ts(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1139
1127
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1140
1128
|
break;
|
|
1141
1129
|
case 7:
|
|
1142
|
-
tmp11_local7 = tmp12_input.
|
|
1130
|
+
tmp11_local7 = tmp12_input.ts(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1143
1131
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1144
1132
|
break;
|
|
1145
1133
|
default:
|
|
1146
1134
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1147
1135
|
}
|
|
1148
1136
|
}
|
|
1149
|
-
tmp12_input.
|
|
1137
|
+
tmp12_input.gs(tmp0_desc);
|
|
1150
1138
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1151
1139
|
};
|
|
1152
|
-
protoOf($serializer_2).
|
|
1153
|
-
return this.
|
|
1140
|
+
protoOf($serializer_2).so = function () {
|
|
1141
|
+
return this.p5v_1;
|
|
1154
1142
|
};
|
|
1155
|
-
protoOf($serializer_2).
|
|
1156
|
-
var tmp0_cached =
|
|
1143
|
+
protoOf($serializer_2).m10 = function () {
|
|
1144
|
+
var tmp0_cached = Companion_getInstance_5().o5v_1;
|
|
1157
1145
|
// Inline function 'kotlin.arrayOf' call
|
|
1158
1146
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1159
1147
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1160
|
-
return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2].
|
|
1148
|
+
return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2].o1(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2())];
|
|
1161
1149
|
};
|
|
1162
1150
|
var $serializer_instance_1;
|
|
1163
1151
|
function $serializer_getInstance_1() {
|
|
@@ -1167,44 +1155,44 @@
|
|
|
1167
1155
|
}
|
|
1168
1156
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1169
1157
|
if (!(255 === (255 & seen0))) {
|
|
1170
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1158
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().p5v_1);
|
|
1171
1159
|
}
|
|
1172
|
-
$this.
|
|
1173
|
-
$this.
|
|
1174
|
-
$this.
|
|
1175
|
-
$this.
|
|
1176
|
-
$this.
|
|
1177
|
-
$this.
|
|
1178
|
-
$this.
|
|
1179
|
-
$this.
|
|
1160
|
+
$this.r5v_1 = apiKey;
|
|
1161
|
+
$this.s5v_1 = n;
|
|
1162
|
+
$this.t5v_1 = length;
|
|
1163
|
+
$this.u5v_1 = min;
|
|
1164
|
+
$this.v5v_1 = max;
|
|
1165
|
+
$this.w5v_1 = replacement;
|
|
1166
|
+
$this.x5v_1 = ticketId;
|
|
1167
|
+
$this.y5v_1 = userData;
|
|
1180
1168
|
return $this;
|
|
1181
1169
|
}
|
|
1182
1170
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
1183
1171
|
return RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, objectCreate(protoOf(RandomIntegerSequencesParamsDto)));
|
|
1184
1172
|
}
|
|
1185
1173
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1186
|
-
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1174
|
+
Companion_getInstance_5();
|
|
1175
|
+
this.r5v_1 = apiKey;
|
|
1176
|
+
this.s5v_1 = n;
|
|
1177
|
+
this.t5v_1 = length;
|
|
1178
|
+
this.u5v_1 = min;
|
|
1179
|
+
this.v5v_1 = max;
|
|
1180
|
+
this.w5v_1 = replacement;
|
|
1181
|
+
this.x5v_1 = ticketId;
|
|
1182
|
+
this.y5v_1 = userData;
|
|
1195
1183
|
}
|
|
1196
1184
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1197
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1185
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.r5v_1 + ', n=' + this.s5v_1 + ', length=' + toString(this.t5v_1) + ', min=' + this.u5v_1 + ', max=' + this.v5v_1 + ', replacement=' + this.w5v_1 + ', ticketId=' + this.x5v_1 + ', userData=' + toString_0(this.y5v_1) + ')';
|
|
1198
1186
|
};
|
|
1199
1187
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1200
|
-
var result = getStringHashCode(this.
|
|
1201
|
-
result = imul(result, 31) + this.
|
|
1202
|
-
result = imul(result, 31) + hashCode(this.
|
|
1203
|
-
result = imul(result, 31) + this.
|
|
1204
|
-
result = imul(result, 31) + this.
|
|
1205
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1206
|
-
result = imul(result, 31) + (this.
|
|
1207
|
-
result = imul(result, 31) + (this.
|
|
1188
|
+
var result = getStringHashCode(this.r5v_1);
|
|
1189
|
+
result = imul(result, 31) + this.s5v_1 | 0;
|
|
1190
|
+
result = imul(result, 31) + hashCode(this.t5v_1) | 0;
|
|
1191
|
+
result = imul(result, 31) + this.u5v_1 | 0;
|
|
1192
|
+
result = imul(result, 31) + this.v5v_1 | 0;
|
|
1193
|
+
result = imul(result, 31) + getBooleanHashCode(this.w5v_1) | 0;
|
|
1194
|
+
result = imul(result, 31) + (this.x5v_1 == null ? 0 : getStringHashCode(this.x5v_1)) | 0;
|
|
1195
|
+
result = imul(result, 31) + (this.y5v_1 == null ? 0 : this.y5v_1.hashCode()) | 0;
|
|
1208
1196
|
return result;
|
|
1209
1197
|
};
|
|
1210
1198
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1212,87 +1200,86 @@
|
|
|
1212
1200
|
return true;
|
|
1213
1201
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1214
1202
|
return false;
|
|
1215
|
-
|
|
1216
|
-
if (!(this.t54_1 === tmp0_other_with_cast.t54_1))
|
|
1203
|
+
if (!(this.r5v_1 === other.r5v_1))
|
|
1217
1204
|
return false;
|
|
1218
|
-
if (!(this.
|
|
1205
|
+
if (!(this.s5v_1 === other.s5v_1))
|
|
1219
1206
|
return false;
|
|
1220
|
-
if (!equals(this.
|
|
1207
|
+
if (!equals(this.t5v_1, other.t5v_1))
|
|
1221
1208
|
return false;
|
|
1222
|
-
if (!(this.
|
|
1209
|
+
if (!(this.u5v_1 === other.u5v_1))
|
|
1223
1210
|
return false;
|
|
1224
|
-
if (!(this.
|
|
1211
|
+
if (!(this.v5v_1 === other.v5v_1))
|
|
1225
1212
|
return false;
|
|
1226
|
-
if (!(this.
|
|
1213
|
+
if (!(this.w5v_1 === other.w5v_1))
|
|
1227
1214
|
return false;
|
|
1228
|
-
if (!(this.
|
|
1215
|
+
if (!(this.x5v_1 == other.x5v_1))
|
|
1229
1216
|
return false;
|
|
1230
|
-
if (!equals(this.
|
|
1217
|
+
if (!equals(this.y5v_1, other.y5v_1))
|
|
1231
1218
|
return false;
|
|
1232
1219
|
return true;
|
|
1233
1220
|
};
|
|
1234
1221
|
function Companion_4() {
|
|
1235
1222
|
}
|
|
1236
1223
|
var Companion_instance_6;
|
|
1237
|
-
function
|
|
1224
|
+
function Companion_getInstance_6() {
|
|
1238
1225
|
return Companion_instance_6;
|
|
1239
1226
|
}
|
|
1240
1227
|
function $serializer_3() {
|
|
1241
1228
|
$serializer_instance_2 = this;
|
|
1242
1229
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1243
|
-
tmp0_serialDesc.
|
|
1244
|
-
tmp0_serialDesc.
|
|
1245
|
-
this.
|
|
1246
|
-
}
|
|
1247
|
-
protoOf($serializer_3).
|
|
1248
|
-
var tmp0_desc = this.
|
|
1249
|
-
var tmp1_output = encoder.
|
|
1250
|
-
tmp1_output.
|
|
1251
|
-
tmp1_output.
|
|
1252
|
-
tmp1_output.
|
|
1253
|
-
};
|
|
1254
|
-
protoOf($serializer_3).
|
|
1255
|
-
return this.
|
|
1256
|
-
};
|
|
1257
|
-
protoOf($serializer_3).
|
|
1258
|
-
var tmp0_desc = this.
|
|
1230
|
+
tmp0_serialDesc.xz('id', false);
|
|
1231
|
+
tmp0_serialDesc.xz('count', false);
|
|
1232
|
+
this.z5v_1 = tmp0_serialDesc;
|
|
1233
|
+
}
|
|
1234
|
+
protoOf($serializer_3).a5w = function (encoder, value) {
|
|
1235
|
+
var tmp0_desc = this.z5v_1;
|
|
1236
|
+
var tmp1_output = encoder.fs(tmp0_desc);
|
|
1237
|
+
tmp1_output.ut(tmp0_desc, 0, value.b5w_1);
|
|
1238
|
+
tmp1_output.pt(tmp0_desc, 1, value.c5w_1);
|
|
1239
|
+
tmp1_output.gs(tmp0_desc);
|
|
1240
|
+
};
|
|
1241
|
+
protoOf($serializer_3).to = function (encoder, value) {
|
|
1242
|
+
return this.a5w(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1243
|
+
};
|
|
1244
|
+
protoOf($serializer_3).uo = function (decoder) {
|
|
1245
|
+
var tmp0_desc = this.z5v_1;
|
|
1259
1246
|
var tmp1_flag = true;
|
|
1260
1247
|
var tmp2_index = 0;
|
|
1261
1248
|
var tmp3_bitMask0 = 0;
|
|
1262
1249
|
var tmp4_local0 = null;
|
|
1263
1250
|
var tmp5_local1 = 0;
|
|
1264
|
-
var tmp6_input = decoder.
|
|
1265
|
-
if (tmp6_input.
|
|
1266
|
-
tmp4_local0 = tmp6_input.
|
|
1251
|
+
var tmp6_input = decoder.fs(tmp0_desc);
|
|
1252
|
+
if (tmp6_input.vs()) {
|
|
1253
|
+
tmp4_local0 = tmp6_input.ps(tmp0_desc, 0);
|
|
1267
1254
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1268
|
-
tmp5_local1 = tmp6_input.
|
|
1255
|
+
tmp5_local1 = tmp6_input.ks(tmp0_desc, 1);
|
|
1269
1256
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1270
1257
|
} else
|
|
1271
1258
|
while (tmp1_flag) {
|
|
1272
|
-
tmp2_index = tmp6_input.
|
|
1259
|
+
tmp2_index = tmp6_input.ws(tmp0_desc);
|
|
1273
1260
|
switch (tmp2_index) {
|
|
1274
1261
|
case -1:
|
|
1275
1262
|
tmp1_flag = false;
|
|
1276
1263
|
break;
|
|
1277
1264
|
case 0:
|
|
1278
|
-
tmp4_local0 = tmp6_input.
|
|
1265
|
+
tmp4_local0 = tmp6_input.ps(tmp0_desc, 0);
|
|
1279
1266
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1280
1267
|
break;
|
|
1281
1268
|
case 1:
|
|
1282
|
-
tmp5_local1 = tmp6_input.
|
|
1269
|
+
tmp5_local1 = tmp6_input.ks(tmp0_desc, 1);
|
|
1283
1270
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1284
1271
|
break;
|
|
1285
1272
|
default:
|
|
1286
1273
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1287
1274
|
}
|
|
1288
1275
|
}
|
|
1289
|
-
tmp6_input.
|
|
1276
|
+
tmp6_input.gs(tmp0_desc);
|
|
1290
1277
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1291
1278
|
};
|
|
1292
|
-
protoOf($serializer_3).
|
|
1293
|
-
return this.
|
|
1279
|
+
protoOf($serializer_3).so = function () {
|
|
1280
|
+
return this.z5v_1;
|
|
1294
1281
|
};
|
|
1295
|
-
protoOf($serializer_3).
|
|
1282
|
+
protoOf($serializer_3).m10 = function () {
|
|
1296
1283
|
// Inline function 'kotlin.arrayOf' call
|
|
1297
1284
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1298
1285
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1306,25 +1293,25 @@
|
|
|
1306
1293
|
}
|
|
1307
1294
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1308
1295
|
if (!(3 === (3 & seen0))) {
|
|
1309
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1296
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().z5v_1);
|
|
1310
1297
|
}
|
|
1311
|
-
$this.
|
|
1312
|
-
$this.
|
|
1298
|
+
$this.b5w_1 = id;
|
|
1299
|
+
$this.c5w_1 = count;
|
|
1313
1300
|
return $this;
|
|
1314
1301
|
}
|
|
1315
1302
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1316
1303
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1317
1304
|
}
|
|
1318
1305
|
function CardDecksUserDataDto(id, count) {
|
|
1319
|
-
this.
|
|
1320
|
-
this.
|
|
1306
|
+
this.b5w_1 = id;
|
|
1307
|
+
this.c5w_1 = count;
|
|
1321
1308
|
}
|
|
1322
1309
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1323
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1310
|
+
return 'CardDecksUserDataDto(id=' + this.b5w_1 + ', count=' + this.c5w_1 + ')';
|
|
1324
1311
|
};
|
|
1325
1312
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1326
|
-
var result = getStringHashCode(this.
|
|
1327
|
-
result = imul(result, 31) + this.
|
|
1313
|
+
var result = getStringHashCode(this.b5w_1);
|
|
1314
|
+
result = imul(result, 31) + this.c5w_1 | 0;
|
|
1328
1315
|
return result;
|
|
1329
1316
|
};
|
|
1330
1317
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1332,16 +1319,15 @@
|
|
|
1332
1319
|
return true;
|
|
1333
1320
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1334
1321
|
return false;
|
|
1335
|
-
|
|
1336
|
-
if (!(this.d55_1 === tmp0_other_with_cast.d55_1))
|
|
1322
|
+
if (!(this.b5w_1 === other.b5w_1))
|
|
1337
1323
|
return false;
|
|
1338
|
-
if (!(this.
|
|
1324
|
+
if (!(this.c5w_1 === other.c5w_1))
|
|
1339
1325
|
return false;
|
|
1340
1326
|
return true;
|
|
1341
1327
|
};
|
|
1342
1328
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1343
1329
|
$serializer_4.call($this);
|
|
1344
|
-
$this.
|
|
1330
|
+
$this.e5w_1 = typeSerial0;
|
|
1345
1331
|
return $this;
|
|
1346
1332
|
}
|
|
1347
1333
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1350,123 +1336,123 @@
|
|
|
1350
1336
|
function Companion_5() {
|
|
1351
1337
|
Companion_instance_7 = this;
|
|
1352
1338
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1353
|
-
tmp0_serialDesc.
|
|
1354
|
-
tmp0_serialDesc.
|
|
1355
|
-
tmp0_serialDesc.
|
|
1356
|
-
this.
|
|
1339
|
+
tmp0_serialDesc.xz('jsonrpc', false);
|
|
1340
|
+
tmp0_serialDesc.xz('result', false);
|
|
1341
|
+
tmp0_serialDesc.xz('id', false);
|
|
1342
|
+
this.f5w_1 = tmp0_serialDesc;
|
|
1357
1343
|
}
|
|
1358
|
-
protoOf(Companion_5).
|
|
1344
|
+
protoOf(Companion_5).i5v = function (typeSerial0) {
|
|
1359
1345
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1360
1346
|
};
|
|
1361
|
-
protoOf(Companion_5).
|
|
1362
|
-
return this.
|
|
1347
|
+
protoOf(Companion_5).x10 = function (typeParamsSerializers) {
|
|
1348
|
+
return this.i5v(typeParamsSerializers[0]);
|
|
1363
1349
|
};
|
|
1364
1350
|
var Companion_instance_7;
|
|
1365
|
-
function
|
|
1351
|
+
function Companion_getInstance_7() {
|
|
1366
1352
|
if (Companion_instance_7 == null)
|
|
1367
1353
|
new Companion_5();
|
|
1368
1354
|
return Companion_instance_7;
|
|
1369
1355
|
}
|
|
1370
1356
|
function $serializer_4() {
|
|
1371
1357
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1372
|
-
tmp0_serialDesc.
|
|
1373
|
-
tmp0_serialDesc.
|
|
1374
|
-
tmp0_serialDesc.
|
|
1375
|
-
this.
|
|
1376
|
-
}
|
|
1377
|
-
protoOf($serializer_4).
|
|
1378
|
-
var tmp0_desc = this.
|
|
1379
|
-
var tmp1_output = encoder.
|
|
1380
|
-
tmp1_output.
|
|
1381
|
-
tmp1_output.
|
|
1382
|
-
tmp1_output.
|
|
1383
|
-
tmp1_output.
|
|
1384
|
-
};
|
|
1385
|
-
protoOf($serializer_4).
|
|
1386
|
-
return this.
|
|
1387
|
-
};
|
|
1388
|
-
protoOf($serializer_4).
|
|
1389
|
-
var tmp0_desc = this.
|
|
1358
|
+
tmp0_serialDesc.xz('jsonrpc', false);
|
|
1359
|
+
tmp0_serialDesc.xz('result', false);
|
|
1360
|
+
tmp0_serialDesc.xz('id', false);
|
|
1361
|
+
this.d5w_1 = tmp0_serialDesc;
|
|
1362
|
+
}
|
|
1363
|
+
protoOf($serializer_4).g5w = function (encoder, value) {
|
|
1364
|
+
var tmp0_desc = this.d5w_1;
|
|
1365
|
+
var tmp1_output = encoder.fs(tmp0_desc);
|
|
1366
|
+
tmp1_output.ut(tmp0_desc, 0, value.h5w_1);
|
|
1367
|
+
tmp1_output.wt(tmp0_desc, 1, this.e5w_1, value.i5w_1);
|
|
1368
|
+
tmp1_output.ut(tmp0_desc, 2, value.j5w_1);
|
|
1369
|
+
tmp1_output.gs(tmp0_desc);
|
|
1370
|
+
};
|
|
1371
|
+
protoOf($serializer_4).to = function (encoder, value) {
|
|
1372
|
+
return this.g5w(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1373
|
+
};
|
|
1374
|
+
protoOf($serializer_4).uo = function (decoder) {
|
|
1375
|
+
var tmp0_desc = this.d5w_1;
|
|
1390
1376
|
var tmp1_flag = true;
|
|
1391
1377
|
var tmp2_index = 0;
|
|
1392
1378
|
var tmp3_bitMask0 = 0;
|
|
1393
1379
|
var tmp4_local0 = null;
|
|
1394
1380
|
var tmp5_local1 = null;
|
|
1395
1381
|
var tmp6_local2 = null;
|
|
1396
|
-
var tmp7_input = decoder.
|
|
1397
|
-
if (tmp7_input.
|
|
1398
|
-
tmp4_local0 = tmp7_input.
|
|
1382
|
+
var tmp7_input = decoder.fs(tmp0_desc);
|
|
1383
|
+
if (tmp7_input.vs()) {
|
|
1384
|
+
tmp4_local0 = tmp7_input.ps(tmp0_desc, 0);
|
|
1399
1385
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1400
|
-
tmp5_local1 = tmp7_input.
|
|
1386
|
+
tmp5_local1 = tmp7_input.rs(tmp0_desc, 1, this.e5w_1, tmp5_local1);
|
|
1401
1387
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1402
|
-
tmp6_local2 = tmp7_input.
|
|
1388
|
+
tmp6_local2 = tmp7_input.ps(tmp0_desc, 2);
|
|
1403
1389
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1404
1390
|
} else
|
|
1405
1391
|
while (tmp1_flag) {
|
|
1406
|
-
tmp2_index = tmp7_input.
|
|
1392
|
+
tmp2_index = tmp7_input.ws(tmp0_desc);
|
|
1407
1393
|
switch (tmp2_index) {
|
|
1408
1394
|
case -1:
|
|
1409
1395
|
tmp1_flag = false;
|
|
1410
1396
|
break;
|
|
1411
1397
|
case 0:
|
|
1412
|
-
tmp4_local0 = tmp7_input.
|
|
1398
|
+
tmp4_local0 = tmp7_input.ps(tmp0_desc, 0);
|
|
1413
1399
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1414
1400
|
break;
|
|
1415
1401
|
case 1:
|
|
1416
|
-
tmp5_local1 = tmp7_input.
|
|
1402
|
+
tmp5_local1 = tmp7_input.rs(tmp0_desc, 1, this.e5w_1, tmp5_local1);
|
|
1417
1403
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1418
1404
|
break;
|
|
1419
1405
|
case 2:
|
|
1420
|
-
tmp6_local2 = tmp7_input.
|
|
1406
|
+
tmp6_local2 = tmp7_input.ps(tmp0_desc, 2);
|
|
1421
1407
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1422
1408
|
break;
|
|
1423
1409
|
default:
|
|
1424
1410
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1425
1411
|
}
|
|
1426
1412
|
}
|
|
1427
|
-
tmp7_input.
|
|
1413
|
+
tmp7_input.gs(tmp0_desc);
|
|
1428
1414
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1429
1415
|
};
|
|
1430
|
-
protoOf($serializer_4).
|
|
1431
|
-
return this.
|
|
1416
|
+
protoOf($serializer_4).so = function () {
|
|
1417
|
+
return this.d5w_1;
|
|
1432
1418
|
};
|
|
1433
|
-
protoOf($serializer_4).
|
|
1419
|
+
protoOf($serializer_4).m10 = function () {
|
|
1434
1420
|
// Inline function 'kotlin.arrayOf' call
|
|
1435
1421
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1436
1422
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1437
|
-
return [StringSerializer_getInstance(), this.
|
|
1423
|
+
return [StringSerializer_getInstance(), this.e5w_1, StringSerializer_getInstance()];
|
|
1438
1424
|
};
|
|
1439
|
-
protoOf($serializer_4).
|
|
1425
|
+
protoOf($serializer_4).n10 = function () {
|
|
1440
1426
|
// Inline function 'kotlin.arrayOf' call
|
|
1441
1427
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1442
1428
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1443
|
-
return [this.
|
|
1429
|
+
return [this.e5w_1];
|
|
1444
1430
|
};
|
|
1445
1431
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1446
1432
|
if (!(7 === (7 & seen0))) {
|
|
1447
|
-
throwMissingFieldException(seen0, 7,
|
|
1433
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_7().f5w_1);
|
|
1448
1434
|
}
|
|
1449
|
-
$this.
|
|
1450
|
-
$this.
|
|
1451
|
-
$this.
|
|
1435
|
+
$this.h5w_1 = jsonrpc;
|
|
1436
|
+
$this.i5w_1 = result;
|
|
1437
|
+
$this.j5w_1 = id;
|
|
1452
1438
|
return $this;
|
|
1453
1439
|
}
|
|
1454
1440
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
1455
1441
|
return RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, objectCreate(protoOf(RandomResponseDto)));
|
|
1456
1442
|
}
|
|
1457
1443
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1458
|
-
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1444
|
+
Companion_getInstance_7();
|
|
1445
|
+
this.h5w_1 = jsonrpc;
|
|
1446
|
+
this.i5w_1 = result;
|
|
1447
|
+
this.j5w_1 = id;
|
|
1462
1448
|
}
|
|
1463
1449
|
protoOf(RandomResponseDto).toString = function () {
|
|
1464
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1450
|
+
return 'RandomResponseDto(jsonrpc=' + this.h5w_1 + ', result=' + toString(this.i5w_1) + ', id=' + this.j5w_1 + ')';
|
|
1465
1451
|
};
|
|
1466
1452
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1467
|
-
var result = getStringHashCode(this.
|
|
1468
|
-
result = imul(result, 31) + hashCode(this.
|
|
1469
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1453
|
+
var result = getStringHashCode(this.h5w_1);
|
|
1454
|
+
result = imul(result, 31) + hashCode(this.i5w_1) | 0;
|
|
1455
|
+
result = imul(result, 31) + getStringHashCode(this.j5w_1) | 0;
|
|
1470
1456
|
return result;
|
|
1471
1457
|
};
|
|
1472
1458
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1474,48 +1460,47 @@
|
|
|
1474
1460
|
return true;
|
|
1475
1461
|
if (!(other instanceof RandomResponseDto))
|
|
1476
1462
|
return false;
|
|
1477
|
-
|
|
1478
|
-
if (!(this.j55_1 === tmp0_other_with_cast.j55_1))
|
|
1463
|
+
if (!(this.h5w_1 === other.h5w_1))
|
|
1479
1464
|
return false;
|
|
1480
|
-
if (!equals(this.
|
|
1465
|
+
if (!equals(this.i5w_1, other.i5w_1))
|
|
1481
1466
|
return false;
|
|
1482
|
-
if (!(this.
|
|
1467
|
+
if (!(this.j5w_1 === other.j5w_1))
|
|
1483
1468
|
return false;
|
|
1484
1469
|
return true;
|
|
1485
1470
|
};
|
|
1486
1471
|
function Companion_6() {
|
|
1487
1472
|
}
|
|
1488
1473
|
var Companion_instance_8;
|
|
1489
|
-
function
|
|
1474
|
+
function Companion_getInstance_8() {
|
|
1490
1475
|
return Companion_instance_8;
|
|
1491
1476
|
}
|
|
1492
1477
|
function $serializer_5() {
|
|
1493
1478
|
$serializer_instance_3 = this;
|
|
1494
1479
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1495
|
-
tmp0_serialDesc.
|
|
1496
|
-
tmp0_serialDesc.
|
|
1497
|
-
tmp0_serialDesc.
|
|
1498
|
-
tmp0_serialDesc.
|
|
1499
|
-
tmp0_serialDesc.
|
|
1500
|
-
tmp0_serialDesc.
|
|
1501
|
-
this.
|
|
1502
|
-
}
|
|
1503
|
-
protoOf($serializer_5).
|
|
1504
|
-
var tmp0_desc = this.
|
|
1505
|
-
var tmp1_output = encoder.
|
|
1506
|
-
tmp1_output.
|
|
1507
|
-
tmp1_output.
|
|
1508
|
-
tmp1_output.
|
|
1509
|
-
tmp1_output.
|
|
1510
|
-
tmp1_output.
|
|
1511
|
-
tmp1_output.
|
|
1512
|
-
tmp1_output.
|
|
1513
|
-
};
|
|
1514
|
-
protoOf($serializer_5).
|
|
1515
|
-
return this.
|
|
1516
|
-
};
|
|
1517
|
-
protoOf($serializer_5).
|
|
1518
|
-
var tmp0_desc = this.
|
|
1480
|
+
tmp0_serialDesc.xz('random', false);
|
|
1481
|
+
tmp0_serialDesc.xz('signature', false);
|
|
1482
|
+
tmp0_serialDesc.xz('bitsUsed', false);
|
|
1483
|
+
tmp0_serialDesc.xz('bitsLeft', false);
|
|
1484
|
+
tmp0_serialDesc.xz('requestsLeft', false);
|
|
1485
|
+
tmp0_serialDesc.xz('advisoryDelay', false);
|
|
1486
|
+
this.k5w_1 = tmp0_serialDesc;
|
|
1487
|
+
}
|
|
1488
|
+
protoOf($serializer_5).l5w = function (encoder, value) {
|
|
1489
|
+
var tmp0_desc = this.k5w_1;
|
|
1490
|
+
var tmp1_output = encoder.fs(tmp0_desc);
|
|
1491
|
+
tmp1_output.wt(tmp0_desc, 0, $serializer_getInstance_4(), value.m5w_1);
|
|
1492
|
+
tmp1_output.yt(tmp0_desc, 1, StringSerializer_getInstance(), value.n5w_1);
|
|
1493
|
+
tmp1_output.yt(tmp0_desc, 2, IntSerializer_getInstance(), value.o5w_1);
|
|
1494
|
+
tmp1_output.yt(tmp0_desc, 3, IntSerializer_getInstance(), value.p5w_1);
|
|
1495
|
+
tmp1_output.yt(tmp0_desc, 4, IntSerializer_getInstance(), value.q5w_1);
|
|
1496
|
+
tmp1_output.yt(tmp0_desc, 5, IntSerializer_getInstance(), value.r5w_1);
|
|
1497
|
+
tmp1_output.gs(tmp0_desc);
|
|
1498
|
+
};
|
|
1499
|
+
protoOf($serializer_5).to = function (encoder, value) {
|
|
1500
|
+
return this.l5w(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1501
|
+
};
|
|
1502
|
+
protoOf($serializer_5).uo = function (decoder) {
|
|
1503
|
+
var tmp0_desc = this.k5w_1;
|
|
1519
1504
|
var tmp1_flag = true;
|
|
1520
1505
|
var tmp2_index = 0;
|
|
1521
1506
|
var tmp3_bitMask0 = 0;
|
|
@@ -1525,62 +1510,62 @@
|
|
|
1525
1510
|
var tmp7_local3 = null;
|
|
1526
1511
|
var tmp8_local4 = null;
|
|
1527
1512
|
var tmp9_local5 = null;
|
|
1528
|
-
var tmp10_input = decoder.
|
|
1529
|
-
if (tmp10_input.
|
|
1530
|
-
tmp4_local0 = tmp10_input.
|
|
1513
|
+
var tmp10_input = decoder.fs(tmp0_desc);
|
|
1514
|
+
if (tmp10_input.vs()) {
|
|
1515
|
+
tmp4_local0 = tmp10_input.rs(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1531
1516
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1532
|
-
tmp5_local1 = tmp10_input.
|
|
1517
|
+
tmp5_local1 = tmp10_input.ts(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1533
1518
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1534
|
-
tmp6_local2 = tmp10_input.
|
|
1519
|
+
tmp6_local2 = tmp10_input.ts(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1535
1520
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1536
|
-
tmp7_local3 = tmp10_input.
|
|
1521
|
+
tmp7_local3 = tmp10_input.ts(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1537
1522
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1538
|
-
tmp8_local4 = tmp10_input.
|
|
1523
|
+
tmp8_local4 = tmp10_input.ts(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1539
1524
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1540
|
-
tmp9_local5 = tmp10_input.
|
|
1525
|
+
tmp9_local5 = tmp10_input.ts(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1541
1526
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1542
1527
|
} else
|
|
1543
1528
|
while (tmp1_flag) {
|
|
1544
|
-
tmp2_index = tmp10_input.
|
|
1529
|
+
tmp2_index = tmp10_input.ws(tmp0_desc);
|
|
1545
1530
|
switch (tmp2_index) {
|
|
1546
1531
|
case -1:
|
|
1547
1532
|
tmp1_flag = false;
|
|
1548
1533
|
break;
|
|
1549
1534
|
case 0:
|
|
1550
|
-
tmp4_local0 = tmp10_input.
|
|
1535
|
+
tmp4_local0 = tmp10_input.rs(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1551
1536
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1552
1537
|
break;
|
|
1553
1538
|
case 1:
|
|
1554
|
-
tmp5_local1 = tmp10_input.
|
|
1539
|
+
tmp5_local1 = tmp10_input.ts(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1555
1540
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1556
1541
|
break;
|
|
1557
1542
|
case 2:
|
|
1558
|
-
tmp6_local2 = tmp10_input.
|
|
1543
|
+
tmp6_local2 = tmp10_input.ts(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1559
1544
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1560
1545
|
break;
|
|
1561
1546
|
case 3:
|
|
1562
|
-
tmp7_local3 = tmp10_input.
|
|
1547
|
+
tmp7_local3 = tmp10_input.ts(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1563
1548
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1564
1549
|
break;
|
|
1565
1550
|
case 4:
|
|
1566
|
-
tmp8_local4 = tmp10_input.
|
|
1551
|
+
tmp8_local4 = tmp10_input.ts(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1567
1552
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1568
1553
|
break;
|
|
1569
1554
|
case 5:
|
|
1570
|
-
tmp9_local5 = tmp10_input.
|
|
1555
|
+
tmp9_local5 = tmp10_input.ts(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1571
1556
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1572
1557
|
break;
|
|
1573
1558
|
default:
|
|
1574
1559
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1575
1560
|
}
|
|
1576
1561
|
}
|
|
1577
|
-
tmp10_input.
|
|
1562
|
+
tmp10_input.gs(tmp0_desc);
|
|
1578
1563
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1579
1564
|
};
|
|
1580
|
-
protoOf($serializer_5).
|
|
1581
|
-
return this.
|
|
1565
|
+
protoOf($serializer_5).so = function () {
|
|
1566
|
+
return this.k5w_1;
|
|
1582
1567
|
};
|
|
1583
|
-
protoOf($serializer_5).
|
|
1568
|
+
protoOf($serializer_5).m10 = function () {
|
|
1584
1569
|
// Inline function 'kotlin.arrayOf' call
|
|
1585
1570
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1586
1571
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1594,37 +1579,37 @@
|
|
|
1594
1579
|
}
|
|
1595
1580
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1596
1581
|
if (!(63 === (63 & seen0))) {
|
|
1597
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1582
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().k5w_1);
|
|
1598
1583
|
}
|
|
1599
|
-
$this.
|
|
1600
|
-
$this.
|
|
1601
|
-
$this.
|
|
1602
|
-
$this.
|
|
1603
|
-
$this.
|
|
1604
|
-
$this.
|
|
1584
|
+
$this.m5w_1 = random;
|
|
1585
|
+
$this.n5w_1 = signature;
|
|
1586
|
+
$this.o5w_1 = bitsUsed;
|
|
1587
|
+
$this.p5w_1 = bitsLeft;
|
|
1588
|
+
$this.q5w_1 = requestsLeft;
|
|
1589
|
+
$this.r5w_1 = advisoryDelay;
|
|
1605
1590
|
return $this;
|
|
1606
1591
|
}
|
|
1607
1592
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1608
1593
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1609
1594
|
}
|
|
1610
1595
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1596
|
+
this.m5w_1 = random;
|
|
1597
|
+
this.n5w_1 = signature;
|
|
1598
|
+
this.o5w_1 = bitsUsed;
|
|
1599
|
+
this.p5w_1 = bitsLeft;
|
|
1600
|
+
this.q5w_1 = requestsLeft;
|
|
1601
|
+
this.r5w_1 = advisoryDelay;
|
|
1617
1602
|
}
|
|
1618
1603
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1619
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1604
|
+
return 'IntegerSequencesResultDto(random=' + this.m5w_1.toString() + ', signature=' + this.n5w_1 + ', bitsUsed=' + this.o5w_1 + ', bitsLeft=' + this.p5w_1 + ', requestsLeft=' + this.q5w_1 + ', advisoryDelay=' + this.r5w_1 + ')';
|
|
1620
1605
|
};
|
|
1621
1606
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1622
|
-
var result = this.
|
|
1623
|
-
result = imul(result, 31) + (this.
|
|
1624
|
-
result = imul(result, 31) + (this.
|
|
1625
|
-
result = imul(result, 31) + (this.
|
|
1626
|
-
result = imul(result, 31) + (this.
|
|
1627
|
-
result = imul(result, 31) + (this.
|
|
1607
|
+
var result = this.m5w_1.hashCode();
|
|
1608
|
+
result = imul(result, 31) + (this.n5w_1 == null ? 0 : getStringHashCode(this.n5w_1)) | 0;
|
|
1609
|
+
result = imul(result, 31) + (this.o5w_1 == null ? 0 : this.o5w_1) | 0;
|
|
1610
|
+
result = imul(result, 31) + (this.p5w_1 == null ? 0 : this.p5w_1) | 0;
|
|
1611
|
+
result = imul(result, 31) + (this.q5w_1 == null ? 0 : this.q5w_1) | 0;
|
|
1612
|
+
result = imul(result, 31) + (this.r5w_1 == null ? 0 : this.r5w_1) | 0;
|
|
1628
1613
|
return result;
|
|
1629
1614
|
};
|
|
1630
1615
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1632,18 +1617,17 @@
|
|
|
1632
1617
|
return true;
|
|
1633
1618
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1634
1619
|
return false;
|
|
1635
|
-
|
|
1636
|
-
if (!this.o55_1.equals(tmp0_other_with_cast.o55_1))
|
|
1620
|
+
if (!this.m5w_1.equals(other.m5w_1))
|
|
1637
1621
|
return false;
|
|
1638
|
-
if (!(this.
|
|
1622
|
+
if (!(this.n5w_1 == other.n5w_1))
|
|
1639
1623
|
return false;
|
|
1640
|
-
if (!(this.
|
|
1624
|
+
if (!(this.o5w_1 == other.o5w_1))
|
|
1641
1625
|
return false;
|
|
1642
|
-
if (!(this.
|
|
1626
|
+
if (!(this.p5w_1 == other.p5w_1))
|
|
1643
1627
|
return false;
|
|
1644
|
-
if (!(this.
|
|
1628
|
+
if (!(this.q5w_1 == other.q5w_1))
|
|
1645
1629
|
return false;
|
|
1646
|
-
if (!(this.
|
|
1630
|
+
if (!(this.r5w_1 == other.r5w_1))
|
|
1647
1631
|
return false;
|
|
1648
1632
|
return true;
|
|
1649
1633
|
};
|
|
@@ -1657,10 +1641,10 @@
|
|
|
1657
1641
|
// Inline function 'kotlin.arrayOf' call
|
|
1658
1642
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1659
1643
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1660
|
-
tmp.
|
|
1644
|
+
tmp.s5w_1 = [lazy(tmp_0, RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez), null, null];
|
|
1661
1645
|
}
|
|
1662
1646
|
var Companion_instance_9;
|
|
1663
|
-
function
|
|
1647
|
+
function Companion_getInstance_9() {
|
|
1664
1648
|
if (Companion_instance_9 == null)
|
|
1665
1649
|
new Companion_7();
|
|
1666
1650
|
return Companion_instance_9;
|
|
@@ -1668,74 +1652,74 @@
|
|
|
1668
1652
|
function $serializer_6() {
|
|
1669
1653
|
$serializer_instance_4 = this;
|
|
1670
1654
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1671
|
-
tmp0_serialDesc.
|
|
1672
|
-
tmp0_serialDesc.
|
|
1673
|
-
tmp0_serialDesc.
|
|
1674
|
-
this.
|
|
1675
|
-
}
|
|
1676
|
-
protoOf($serializer_6).
|
|
1677
|
-
var tmp0_desc = this.
|
|
1678
|
-
var tmp1_output = encoder.
|
|
1679
|
-
var tmp2_cached =
|
|
1680
|
-
tmp1_output.
|
|
1681
|
-
tmp1_output.
|
|
1682
|
-
tmp1_output.
|
|
1683
|
-
tmp1_output.
|
|
1684
|
-
};
|
|
1685
|
-
protoOf($serializer_6).
|
|
1686
|
-
return this.
|
|
1687
|
-
};
|
|
1688
|
-
protoOf($serializer_6).
|
|
1689
|
-
var tmp0_desc = this.
|
|
1655
|
+
tmp0_serialDesc.xz('data', false);
|
|
1656
|
+
tmp0_serialDesc.xz('completionTime', false);
|
|
1657
|
+
tmp0_serialDesc.xz('ticketId', false);
|
|
1658
|
+
this.t5w_1 = tmp0_serialDesc;
|
|
1659
|
+
}
|
|
1660
|
+
protoOf($serializer_6).u5w = function (encoder, value) {
|
|
1661
|
+
var tmp0_desc = this.t5w_1;
|
|
1662
|
+
var tmp1_output = encoder.fs(tmp0_desc);
|
|
1663
|
+
var tmp2_cached = Companion_getInstance_9().s5w_1;
|
|
1664
|
+
tmp1_output.wt(tmp0_desc, 0, tmp2_cached[0].o1(), value.v5w_1);
|
|
1665
|
+
tmp1_output.ut(tmp0_desc, 1, value.w5w_1);
|
|
1666
|
+
tmp1_output.yt(tmp0_desc, 2, StringSerializer_getInstance(), value.x5w_1);
|
|
1667
|
+
tmp1_output.gs(tmp0_desc);
|
|
1668
|
+
};
|
|
1669
|
+
protoOf($serializer_6).to = function (encoder, value) {
|
|
1670
|
+
return this.u5w(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1671
|
+
};
|
|
1672
|
+
protoOf($serializer_6).uo = function (decoder) {
|
|
1673
|
+
var tmp0_desc = this.t5w_1;
|
|
1690
1674
|
var tmp1_flag = true;
|
|
1691
1675
|
var tmp2_index = 0;
|
|
1692
1676
|
var tmp3_bitMask0 = 0;
|
|
1693
1677
|
var tmp4_local0 = null;
|
|
1694
1678
|
var tmp5_local1 = null;
|
|
1695
1679
|
var tmp6_local2 = null;
|
|
1696
|
-
var tmp7_input = decoder.
|
|
1697
|
-
var tmp8_cached =
|
|
1698
|
-
if (tmp7_input.
|
|
1699
|
-
tmp4_local0 = tmp7_input.
|
|
1680
|
+
var tmp7_input = decoder.fs(tmp0_desc);
|
|
1681
|
+
var tmp8_cached = Companion_getInstance_9().s5w_1;
|
|
1682
|
+
if (tmp7_input.vs()) {
|
|
1683
|
+
tmp4_local0 = tmp7_input.rs(tmp0_desc, 0, tmp8_cached[0].o1(), tmp4_local0);
|
|
1700
1684
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1701
|
-
tmp5_local1 = tmp7_input.
|
|
1685
|
+
tmp5_local1 = tmp7_input.ps(tmp0_desc, 1);
|
|
1702
1686
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1703
|
-
tmp6_local2 = tmp7_input.
|
|
1687
|
+
tmp6_local2 = tmp7_input.ts(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1704
1688
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1705
1689
|
} else
|
|
1706
1690
|
while (tmp1_flag) {
|
|
1707
|
-
tmp2_index = tmp7_input.
|
|
1691
|
+
tmp2_index = tmp7_input.ws(tmp0_desc);
|
|
1708
1692
|
switch (tmp2_index) {
|
|
1709
1693
|
case -1:
|
|
1710
1694
|
tmp1_flag = false;
|
|
1711
1695
|
break;
|
|
1712
1696
|
case 0:
|
|
1713
|
-
tmp4_local0 = tmp7_input.
|
|
1697
|
+
tmp4_local0 = tmp7_input.rs(tmp0_desc, 0, tmp8_cached[0].o1(), tmp4_local0);
|
|
1714
1698
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1715
1699
|
break;
|
|
1716
1700
|
case 1:
|
|
1717
|
-
tmp5_local1 = tmp7_input.
|
|
1701
|
+
tmp5_local1 = tmp7_input.ps(tmp0_desc, 1);
|
|
1718
1702
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1719
1703
|
break;
|
|
1720
1704
|
case 2:
|
|
1721
|
-
tmp6_local2 = tmp7_input.
|
|
1705
|
+
tmp6_local2 = tmp7_input.ts(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1722
1706
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1723
1707
|
break;
|
|
1724
1708
|
default:
|
|
1725
1709
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1726
1710
|
}
|
|
1727
1711
|
}
|
|
1728
|
-
tmp7_input.
|
|
1712
|
+
tmp7_input.gs(tmp0_desc);
|
|
1729
1713
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1730
1714
|
};
|
|
1731
|
-
protoOf($serializer_6).
|
|
1732
|
-
return this.
|
|
1715
|
+
protoOf($serializer_6).so = function () {
|
|
1716
|
+
return this.t5w_1;
|
|
1733
1717
|
};
|
|
1734
|
-
protoOf($serializer_6).
|
|
1718
|
+
protoOf($serializer_6).m10 = function () {
|
|
1735
1719
|
// Inline function 'kotlin.arrayOf' call
|
|
1736
1720
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1737
1721
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1738
|
-
return [
|
|
1722
|
+
return [Companion_getInstance_9().s5w_1[0].o1(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1739
1723
|
};
|
|
1740
1724
|
var $serializer_instance_4;
|
|
1741
1725
|
function $serializer_getInstance_4() {
|
|
@@ -1745,11 +1729,11 @@
|
|
|
1745
1729
|
}
|
|
1746
1730
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1747
1731
|
if (!(7 === (7 & seen0))) {
|
|
1748
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1732
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().t5w_1);
|
|
1749
1733
|
}
|
|
1750
|
-
$this.
|
|
1751
|
-
$this.
|
|
1752
|
-
$this.
|
|
1734
|
+
$this.v5w_1 = data;
|
|
1735
|
+
$this.w5w_1 = completionTime;
|
|
1736
|
+
$this.x5w_1 = ticketId;
|
|
1753
1737
|
return $this;
|
|
1754
1738
|
}
|
|
1755
1739
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1758,12 +1742,12 @@
|
|
|
1758
1742
|
function IntegerSequencesDataDto() {
|
|
1759
1743
|
}
|
|
1760
1744
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1761
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1745
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.v5w_1) + ', completionTime=' + this.w5w_1 + ', ticketId=' + this.x5w_1 + ')';
|
|
1762
1746
|
};
|
|
1763
1747
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1764
|
-
var result = hashCode(this.
|
|
1765
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1766
|
-
result = imul(result, 31) + (this.
|
|
1748
|
+
var result = hashCode(this.v5w_1);
|
|
1749
|
+
result = imul(result, 31) + getStringHashCode(this.w5w_1) | 0;
|
|
1750
|
+
result = imul(result, 31) + (this.x5w_1 == null ? 0 : getStringHashCode(this.x5w_1)) | 0;
|
|
1767
1751
|
return result;
|
|
1768
1752
|
};
|
|
1769
1753
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1771,12 +1755,11 @@
|
|
|
1771
1755
|
return true;
|
|
1772
1756
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1773
1757
|
return false;
|
|
1774
|
-
|
|
1775
|
-
if (!equals(this.x55_1, tmp0_other_with_cast.x55_1))
|
|
1758
|
+
if (!equals(this.v5w_1, other.v5w_1))
|
|
1776
1759
|
return false;
|
|
1777
|
-
if (!(this.
|
|
1760
|
+
if (!(this.w5w_1 === other.w5w_1))
|
|
1778
1761
|
return false;
|
|
1779
|
-
if (!(this.
|
|
1762
|
+
if (!(this.x5w_1 == other.x5w_1))
|
|
1780
1763
|
return false;
|
|
1781
1764
|
return true;
|
|
1782
1765
|
};
|
|
@@ -1787,167 +1770,164 @@
|
|
|
1787
1770
|
}
|
|
1788
1771
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1789
1772
|
var tmp = new $throwIfErrorCOROUTINE$($this, bodyAsJson, response, $completion);
|
|
1790
|
-
tmp.
|
|
1791
|
-
tmp.
|
|
1792
|
-
return tmp.
|
|
1773
|
+
tmp.g9_1 = Unit_instance;
|
|
1774
|
+
tmp.h9_1 = null;
|
|
1775
|
+
return tmp.m9();
|
|
1793
1776
|
}
|
|
1794
1777
|
function extractRandomResult($this, bodyAsJson) {
|
|
1795
1778
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1796
1779
|
}
|
|
1797
1780
|
function Companion_8() {
|
|
1798
|
-
this.
|
|
1781
|
+
this.k5x_1 = 52;
|
|
1799
1782
|
}
|
|
1800
1783
|
var Companion_instance_10;
|
|
1801
|
-
function
|
|
1784
|
+
function Companion_getInstance_10() {
|
|
1802
1785
|
return Companion_instance_10;
|
|
1803
1786
|
}
|
|
1804
1787
|
function $getRandomCardDecksCOROUTINE$(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1805
1788
|
CoroutineImpl.call(this, resultContinuation);
|
|
1806
|
-
this.
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
1810
|
-
this.
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1813
|
-
}
|
|
1814
|
-
protoOf($getRandomCardDecksCOROUTINE$).
|
|
1815
|
-
var suspendResult = this.
|
|
1789
|
+
this.t5x_1 = _this__u8e3s4;
|
|
1790
|
+
this.u5x_1 = min;
|
|
1791
|
+
this.v5x_1 = max;
|
|
1792
|
+
this.w5x_1 = decksCount;
|
|
1793
|
+
this.x5x_1 = cardsCount;
|
|
1794
|
+
this.y5x_1 = userData;
|
|
1795
|
+
this.z5x_1 = signed;
|
|
1796
|
+
}
|
|
1797
|
+
protoOf($getRandomCardDecksCOROUTINE$).m9 = function () {
|
|
1798
|
+
var suspendResult = this.g9_1;
|
|
1816
1799
|
$sm: do
|
|
1817
1800
|
try {
|
|
1818
|
-
var tmp = this.
|
|
1801
|
+
var tmp = this.e9_1;
|
|
1819
1802
|
switch (tmp) {
|
|
1820
1803
|
case 0:
|
|
1821
|
-
this.
|
|
1822
|
-
this.
|
|
1823
|
-
var
|
|
1824
|
-
var
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
var
|
|
1828
|
-
var
|
|
1829
|
-
var
|
|
1804
|
+
this.f9_1 = 6;
|
|
1805
|
+
this.f9_1 = 5;
|
|
1806
|
+
var this_0 = this.t5x_1.c5y_1;
|
|
1807
|
+
var builder = new HttpRequestBuilder();
|
|
1808
|
+
builder.w3z_1 = Companion_getInstance().l3i_1;
|
|
1809
|
+
url(builder, '/json-rpc/4/invoke');
|
|
1810
|
+
var tmp3_id = this.y5x_1.id;
|
|
1811
|
+
var tmp4_method = this.z5x_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1812
|
+
var tmp0_apiKey = this.t5x_1.d5y_1;
|
|
1813
|
+
var size = this.w5x_1;
|
|
1830
1814
|
var list = ArrayList_init_$Create$(size);
|
|
1831
1815
|
var inductionVariable = 0;
|
|
1832
1816
|
if (inductionVariable < size)
|
|
1833
1817
|
do {
|
|
1834
1818
|
var index = inductionVariable;
|
|
1835
1819
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1836
|
-
list.
|
|
1820
|
+
list.e1(this.x5x_1);
|
|
1837
1821
|
}
|
|
1838
1822
|
while (inductionVariable < size);
|
|
1839
|
-
var tmp2_userData = this.
|
|
1840
|
-
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.
|
|
1823
|
+
var tmp2_userData = this.z5x_1 ? mapToDto(this.y5x_1) : null;
|
|
1824
|
+
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.w5x_1, list, this.u5x_1, this.v5x_1, false, null, tmp2_userData);
|
|
1841
1825
|
var body = new RandomRequestDto('2.0', tmp4_method, tmp5_params, tmp3_id);
|
|
1842
1826
|
if (body == null) {
|
|
1843
|
-
|
|
1844
|
-
var tmp_0 =
|
|
1845
|
-
var tmp_1
|
|
1846
|
-
var tmp_2;
|
|
1827
|
+
builder.y3z_1 = NullBody_instance;
|
|
1828
|
+
var tmp_0 = getKClass(RandomRequestDto);
|
|
1829
|
+
var tmp_1;
|
|
1847
1830
|
try {
|
|
1848
|
-
|
|
1831
|
+
tmp_1 = createKType(getKClass(RandomRequestDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(RandomIntegerSequencesParamsDto), arrayOf([]), false))]), false);
|
|
1849
1832
|
} catch ($p) {
|
|
1850
|
-
var
|
|
1833
|
+
var tmp_2;
|
|
1851
1834
|
if ($p instanceof Error) {
|
|
1852
|
-
var
|
|
1853
|
-
|
|
1835
|
+
var _unused_var__etf5q3 = $p;
|
|
1836
|
+
tmp_2 = null;
|
|
1854
1837
|
} else {
|
|
1855
1838
|
throw $p;
|
|
1856
1839
|
}
|
|
1857
|
-
|
|
1840
|
+
tmp_1 = tmp_2;
|
|
1858
1841
|
}
|
|
1859
|
-
|
|
1842
|
+
builder.o45(new TypeInfo(tmp_0, tmp_1));
|
|
1860
1843
|
} else {
|
|
1861
1844
|
if (body instanceof OutgoingContent) {
|
|
1862
|
-
|
|
1863
|
-
|
|
1845
|
+
builder.y3z_1 = body;
|
|
1846
|
+
builder.o45(null);
|
|
1864
1847
|
} else {
|
|
1865
|
-
|
|
1866
|
-
var
|
|
1867
|
-
var
|
|
1868
|
-
var tmp_6;
|
|
1848
|
+
builder.y3z_1 = body;
|
|
1849
|
+
var tmp_3 = getKClass(RandomRequestDto);
|
|
1850
|
+
var tmp_4;
|
|
1869
1851
|
try {
|
|
1870
|
-
|
|
1852
|
+
tmp_4 = createKType(getKClass(RandomRequestDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(RandomIntegerSequencesParamsDto), arrayOf([]), false))]), false);
|
|
1871
1853
|
} catch ($p) {
|
|
1872
|
-
var
|
|
1854
|
+
var tmp_5;
|
|
1873
1855
|
if ($p instanceof Error) {
|
|
1874
|
-
var
|
|
1875
|
-
|
|
1856
|
+
var _unused_var__etf5q3_0 = $p;
|
|
1857
|
+
tmp_5 = null;
|
|
1876
1858
|
} else {
|
|
1877
1859
|
throw $p;
|
|
1878
1860
|
}
|
|
1879
|
-
|
|
1861
|
+
tmp_4 = tmp_5;
|
|
1880
1862
|
}
|
|
1881
|
-
|
|
1863
|
+
builder.o45(new TypeInfo(tmp_3, tmp_4));
|
|
1882
1864
|
}
|
|
1883
1865
|
}
|
|
1884
1866
|
|
|
1885
|
-
|
|
1886
|
-
this.
|
|
1887
|
-
suspendResult = (new HttpStatement(
|
|
1867
|
+
builder.w3z_1 = Companion_getInstance().l3i_1;
|
|
1868
|
+
this.e9_1 = 1;
|
|
1869
|
+
suspendResult = (new HttpStatement(builder, this_0)).h51(this);
|
|
1888
1870
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1889
1871
|
return suspendResult;
|
|
1890
1872
|
}
|
|
1891
1873
|
|
|
1892
1874
|
continue $sm;
|
|
1893
1875
|
case 1:
|
|
1894
|
-
this.
|
|
1895
|
-
var this_1 = this.
|
|
1896
|
-
this.
|
|
1897
|
-
var
|
|
1898
|
-
var
|
|
1899
|
-
var
|
|
1900
|
-
var tmp_11;
|
|
1876
|
+
this.b5y_1 = suspendResult;
|
|
1877
|
+
var this_1 = this.b5y_1;
|
|
1878
|
+
this.e9_1 = 2;
|
|
1879
|
+
var tmp_6 = this_1.k41();
|
|
1880
|
+
var tmp_7 = getKClass(JsonObject);
|
|
1881
|
+
var tmp_8;
|
|
1901
1882
|
try {
|
|
1902
|
-
|
|
1883
|
+
tmp_8 = createKType(getKClass(JsonObject), arrayOf([]), false);
|
|
1903
1884
|
} catch ($p) {
|
|
1904
|
-
var
|
|
1885
|
+
var tmp_9;
|
|
1905
1886
|
if ($p instanceof Error) {
|
|
1906
|
-
var
|
|
1907
|
-
|
|
1887
|
+
var _unused_var__etf5q3_1 = $p;
|
|
1888
|
+
tmp_9 = null;
|
|
1908
1889
|
} else {
|
|
1909
1890
|
throw $p;
|
|
1910
1891
|
}
|
|
1911
|
-
|
|
1892
|
+
tmp_8 = tmp_9;
|
|
1912
1893
|
}
|
|
1913
1894
|
|
|
1914
|
-
suspendResult =
|
|
1895
|
+
suspendResult = tmp_6.h41(new TypeInfo(tmp_7, tmp_8), this);
|
|
1915
1896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1916
1897
|
return suspendResult;
|
|
1917
1898
|
}
|
|
1918
1899
|
|
|
1919
1900
|
continue $sm;
|
|
1920
1901
|
case 2:
|
|
1921
|
-
var
|
|
1922
|
-
|
|
1923
|
-
this.
|
|
1924
|
-
suspendResult = throwIfError(this.
|
|
1902
|
+
var tmp_10 = this;
|
|
1903
|
+
tmp_10.a5y_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1904
|
+
this.e9_1 = 3;
|
|
1905
|
+
suspendResult = throwIfError(this.t5x_1, this.a5y_1, this.b5y_1, this);
|
|
1925
1906
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1926
1907
|
return suspendResult;
|
|
1927
1908
|
}
|
|
1928
1909
|
|
|
1929
1910
|
continue $sm;
|
|
1930
1911
|
case 3:
|
|
1931
|
-
var this_2 = this.
|
|
1932
|
-
this.
|
|
1933
|
-
var
|
|
1934
|
-
var
|
|
1935
|
-
var
|
|
1936
|
-
var tmp_17;
|
|
1912
|
+
var this_2 = this.b5y_1;
|
|
1913
|
+
this.e9_1 = 4;
|
|
1914
|
+
var tmp_11 = this_2.k41();
|
|
1915
|
+
var tmp_12 = getKClass(RandomResponseDto);
|
|
1916
|
+
var tmp_13;
|
|
1937
1917
|
try {
|
|
1938
|
-
|
|
1918
|
+
tmp_13 = createKType(getKClass(RandomResponseDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(IntegerSequencesResultDto), arrayOf([]), false))]), false);
|
|
1939
1919
|
} catch ($p) {
|
|
1940
|
-
var
|
|
1920
|
+
var tmp_14;
|
|
1941
1921
|
if ($p instanceof Error) {
|
|
1942
|
-
var
|
|
1943
|
-
|
|
1922
|
+
var _unused_var__etf5q3_2 = $p;
|
|
1923
|
+
tmp_14 = null;
|
|
1944
1924
|
} else {
|
|
1945
1925
|
throw $p;
|
|
1946
1926
|
}
|
|
1947
|
-
|
|
1927
|
+
tmp_13 = tmp_14;
|
|
1948
1928
|
}
|
|
1949
1929
|
|
|
1950
|
-
suspendResult =
|
|
1930
|
+
suspendResult = tmp_11.h41(new TypeInfo(tmp_12, tmp_13), this);
|
|
1951
1931
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1952
1932
|
return suspendResult;
|
|
1953
1933
|
}
|
|
@@ -1955,80 +1935,79 @@
|
|
|
1955
1935
|
continue $sm;
|
|
1956
1936
|
case 4:
|
|
1957
1937
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1958
|
-
var randomJson = extractRandomResult(this.
|
|
1959
|
-
var tmp0_cardDecks = responseDto.
|
|
1960
|
-
var tmp1_signature = responseDto.
|
|
1961
|
-
var tmp2_id = responseDto.
|
|
1938
|
+
var randomJson = extractRandomResult(this.t5x_1, this.a5y_1);
|
|
1939
|
+
var tmp0_cardDecks = responseDto.i5w_1.m5w_1.v5w_1;
|
|
1940
|
+
var tmp1_signature = responseDto.i5w_1.n5w_1;
|
|
1941
|
+
var tmp2_id = responseDto.j5w_1;
|
|
1962
1942
|
return new CardDeckResult(tmp0_cardDecks, randomJson, tmp2_id, tmp1_signature);
|
|
1963
1943
|
case 5:
|
|
1964
|
-
this.
|
|
1965
|
-
var
|
|
1966
|
-
if (
|
|
1967
|
-
var error = this.
|
|
1944
|
+
this.f9_1 = 6;
|
|
1945
|
+
var tmp_15 = this.h9_1;
|
|
1946
|
+
if (tmp_15 instanceof Error) {
|
|
1947
|
+
var error = this.h9_1;
|
|
1968
1948
|
if (error instanceof RandomException)
|
|
1969
1949
|
throw error;
|
|
1970
1950
|
else {
|
|
1971
1951
|
throw new RandomException(100001, '[getRandomCardDeck] error, message = ' + error.message, error);
|
|
1972
1952
|
}
|
|
1973
1953
|
} else {
|
|
1974
|
-
throw this.
|
|
1954
|
+
throw this.h9_1;
|
|
1975
1955
|
}
|
|
1976
1956
|
|
|
1977
1957
|
case 6:
|
|
1978
|
-
throw this.
|
|
1958
|
+
throw this.h9_1;
|
|
1979
1959
|
}
|
|
1980
1960
|
} catch ($p) {
|
|
1981
1961
|
var e = $p;
|
|
1982
|
-
if (this.
|
|
1962
|
+
if (this.f9_1 === 6) {
|
|
1983
1963
|
throw e;
|
|
1984
1964
|
} else {
|
|
1985
|
-
this.
|
|
1986
|
-
this.
|
|
1965
|
+
this.e9_1 = this.f9_1;
|
|
1966
|
+
this.h9_1 = e;
|
|
1987
1967
|
}
|
|
1988
1968
|
}
|
|
1989
1969
|
while (true);
|
|
1990
1970
|
};
|
|
1991
1971
|
function $throwIfErrorCOROUTINE$(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1992
1972
|
CoroutineImpl.call(this, resultContinuation);
|
|
1993
|
-
this.
|
|
1994
|
-
this.
|
|
1995
|
-
this.
|
|
1973
|
+
this.h5x_1 = _this__u8e3s4;
|
|
1974
|
+
this.i5x_1 = bodyAsJson;
|
|
1975
|
+
this.j5x_1 = response;
|
|
1996
1976
|
}
|
|
1997
|
-
protoOf($throwIfErrorCOROUTINE$).
|
|
1998
|
-
var suspendResult = this.
|
|
1977
|
+
protoOf($throwIfErrorCOROUTINE$).m9 = function () {
|
|
1978
|
+
var suspendResult = this.g9_1;
|
|
1999
1979
|
$sm: do
|
|
2000
1980
|
try {
|
|
2001
|
-
var tmp = this.
|
|
1981
|
+
var tmp = this.e9_1;
|
|
2002
1982
|
switch (tmp) {
|
|
2003
1983
|
case 0:
|
|
2004
|
-
this.
|
|
2005
|
-
var this_0 = this.
|
|
2006
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2007
|
-
var this_1 = this.
|
|
2008
|
-
this.
|
|
2009
|
-
var tmp_0 = this_1.
|
|
2010
|
-
var tmp_1 =
|
|
2011
|
-
var tmp_2
|
|
2012
|
-
var tmp_3;
|
|
1984
|
+
this.f9_1 = 3;
|
|
1985
|
+
var this_0 = this.i5x_1;
|
|
1986
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).u2('error')) {
|
|
1987
|
+
var this_1 = this.j5x_1;
|
|
1988
|
+
this.e9_1 = 2;
|
|
1989
|
+
var tmp_0 = this_1.k41();
|
|
1990
|
+
var tmp_1 = getKClass(ErrorResponseDto);
|
|
1991
|
+
var tmp_2;
|
|
2013
1992
|
try {
|
|
2014
|
-
|
|
1993
|
+
tmp_2 = createKType(getKClass(ErrorResponseDto), arrayOf([]), false);
|
|
2015
1994
|
} catch ($p) {
|
|
2016
|
-
var
|
|
1995
|
+
var tmp_3;
|
|
2017
1996
|
if ($p instanceof Error) {
|
|
2018
|
-
var
|
|
2019
|
-
|
|
1997
|
+
var _unused_var__etf5q3 = $p;
|
|
1998
|
+
tmp_3 = null;
|
|
2020
1999
|
} else {
|
|
2021
2000
|
throw $p;
|
|
2022
2001
|
}
|
|
2023
|
-
|
|
2002
|
+
tmp_2 = tmp_3;
|
|
2024
2003
|
}
|
|
2025
|
-
suspendResult = tmp_0.
|
|
2004
|
+
suspendResult = tmp_0.h41(new TypeInfo(tmp_1, tmp_2), this);
|
|
2026
2005
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2027
2006
|
return suspendResult;
|
|
2028
2007
|
}
|
|
2029
2008
|
continue $sm;
|
|
2030
2009
|
} else {
|
|
2031
|
-
this.
|
|
2010
|
+
this.e9_1 = 1;
|
|
2032
2011
|
continue $sm;
|
|
2033
2012
|
}
|
|
2034
2013
|
|
|
@@ -2036,33 +2015,33 @@
|
|
|
2036
2015
|
return Unit_instance;
|
|
2037
2016
|
case 2:
|
|
2038
2017
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2039
|
-
var tmp0_safe_receiver = errorResponseDto.
|
|
2040
|
-
var
|
|
2041
|
-
var tmp1_safe_receiver = errorResponseDto.
|
|
2042
|
-
throw new RandomException(
|
|
2018
|
+
var tmp0_safe_receiver = errorResponseDto.a5v_1;
|
|
2019
|
+
var tmp_4 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d5v_1;
|
|
2020
|
+
var tmp1_safe_receiver = errorResponseDto.a5v_1;
|
|
2021
|
+
throw new RandomException(tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e5v_1);
|
|
2043
2022
|
case 3:
|
|
2044
|
-
throw this.
|
|
2023
|
+
throw this.h9_1;
|
|
2045
2024
|
}
|
|
2046
2025
|
} catch ($p) {
|
|
2047
2026
|
var e = $p;
|
|
2048
|
-
if (this.
|
|
2027
|
+
if (this.f9_1 === 3) {
|
|
2049
2028
|
throw e;
|
|
2050
2029
|
} else {
|
|
2051
|
-
this.
|
|
2052
|
-
this.
|
|
2030
|
+
this.e9_1 = this.f9_1;
|
|
2031
|
+
this.h9_1 = e;
|
|
2053
2032
|
}
|
|
2054
2033
|
}
|
|
2055
2034
|
while (true);
|
|
2056
2035
|
};
|
|
2057
2036
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2058
|
-
this.
|
|
2059
|
-
this.
|
|
2037
|
+
this.c5y_1 = client;
|
|
2038
|
+
this.d5y_1 = apiKey;
|
|
2060
2039
|
}
|
|
2061
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2040
|
+
protoOf(RandomOrgApiServiceImpl).y5w = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2062
2041
|
var tmp = new $getRandomCardDecksCOROUTINE$(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2063
|
-
tmp.
|
|
2064
|
-
tmp.
|
|
2065
|
-
return tmp.
|
|
2042
|
+
tmp.g9_1 = Unit_instance;
|
|
2043
|
+
tmp.h9_1 = null;
|
|
2044
|
+
return tmp.m9();
|
|
2066
2045
|
};
|
|
2067
2046
|
function PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2068
2047
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
@@ -2083,31 +2062,31 @@
|
|
|
2083
2062
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2084
2063
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2085
2064
|
}
|
|
2086
|
-
protoOf(PoolParams).
|
|
2065
|
+
protoOf(PoolParams).t5u = function () {
|
|
2087
2066
|
return this.poolSize;
|
|
2088
2067
|
};
|
|
2089
|
-
protoOf(PoolParams).
|
|
2068
|
+
protoOf(PoolParams).u5u = function () {
|
|
2090
2069
|
return this.thresholdForUsedPool;
|
|
2091
2070
|
};
|
|
2092
|
-
protoOf(PoolParams).
|
|
2071
|
+
protoOf(PoolParams).e5y = function () {
|
|
2093
2072
|
return this.failedRequestAttempts;
|
|
2094
2073
|
};
|
|
2095
|
-
protoOf(PoolParams).
|
|
2074
|
+
protoOf(PoolParams).f5y = function () {
|
|
2096
2075
|
return this.failedAttemptCooldown;
|
|
2097
2076
|
};
|
|
2098
|
-
protoOf(PoolParams).
|
|
2077
|
+
protoOf(PoolParams).kf = function () {
|
|
2099
2078
|
return this.poolSize;
|
|
2100
2079
|
};
|
|
2101
|
-
protoOf(PoolParams).
|
|
2080
|
+
protoOf(PoolParams).lf = function () {
|
|
2102
2081
|
return this.thresholdForUsedPool;
|
|
2103
2082
|
};
|
|
2104
|
-
protoOf(PoolParams).
|
|
2083
|
+
protoOf(PoolParams).om = function () {
|
|
2105
2084
|
return this.failedRequestAttempts;
|
|
2106
2085
|
};
|
|
2107
|
-
protoOf(PoolParams).
|
|
2086
|
+
protoOf(PoolParams).g5y = function () {
|
|
2108
2087
|
return this.failedAttemptCooldown;
|
|
2109
2088
|
};
|
|
2110
|
-
protoOf(PoolParams).
|
|
2089
|
+
protoOf(PoolParams).h5y = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2111
2090
|
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2112
2091
|
};
|
|
2113
2092
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2115,7 +2094,7 @@
|
|
|
2115
2094
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2116
2095
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2117
2096
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2118
|
-
return $super === VOID ? this.
|
|
2097
|
+
return $super === VOID ? this.h5y(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) : $super.h5y.call(this, poolSize, thresholdForUsedPool, failedRequestAttempts, new Duration(failedAttemptCooldown));
|
|
2119
2098
|
};
|
|
2120
2099
|
protoOf(PoolParams).toString = function () {
|
|
2121
2100
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2132,25 +2111,24 @@
|
|
|
2132
2111
|
return true;
|
|
2133
2112
|
if (!(other instanceof PoolParams))
|
|
2134
2113
|
return false;
|
|
2135
|
-
|
|
2136
|
-
if (!(this.poolSize === tmp0_other_with_cast.poolSize))
|
|
2114
|
+
if (!(this.poolSize === other.poolSize))
|
|
2137
2115
|
return false;
|
|
2138
|
-
if (!(this.thresholdForUsedPool ===
|
|
2116
|
+
if (!(this.thresholdForUsedPool === other.thresholdForUsedPool))
|
|
2139
2117
|
return false;
|
|
2140
|
-
if (!(this.failedRequestAttempts ===
|
|
2118
|
+
if (!(this.failedRequestAttempts === other.failedRequestAttempts))
|
|
2141
2119
|
return false;
|
|
2142
|
-
if (!equals(this.failedAttemptCooldown,
|
|
2120
|
+
if (!equals(this.failedAttemptCooldown, other.failedAttemptCooldown))
|
|
2143
2121
|
return false;
|
|
2144
2122
|
return true;
|
|
2145
2123
|
};
|
|
2146
2124
|
function RandomPoolProvider() {
|
|
2147
2125
|
}
|
|
2148
2126
|
function getExceptionIfCooldown($this) {
|
|
2149
|
-
var currentTime = System_instance.
|
|
2150
|
-
if (!($this.
|
|
2151
|
-
var timeToWait = Duration__times_impl_sfuzvp($this.
|
|
2127
|
+
var currentTime = System_instance.ik();
|
|
2128
|
+
if (!($this.t5y_1 == null) && $this.u5y_1 >= $this.l5y_1.failedRequestAttempts) {
|
|
2129
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.l5y_1.failedAttemptCooldown, $this.u5y_1);
|
|
2152
2130
|
// Inline function 'kotlin.requireNotNull' call
|
|
2153
|
-
var tmp0 = $this.
|
|
2131
|
+
var tmp0 = $this.t5y_1;
|
|
2154
2132
|
var tmp$ret$1;
|
|
2155
2133
|
$l$block: {
|
|
2156
2134
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -2162,22 +2140,22 @@
|
|
|
2162
2140
|
break $l$block;
|
|
2163
2141
|
}
|
|
2164
2142
|
}
|
|
2165
|
-
var allowedRequestTime = tmp$ret$1.
|
|
2166
|
-
if (allowedRequestTime.
|
|
2167
|
-
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.
|
|
2143
|
+
var allowedRequestTime = tmp$ret$1.gl(timeToWait);
|
|
2144
|
+
if (allowedRequestTime.jl(currentTime) > 0) {
|
|
2145
|
+
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.t5y_1) + ', ') + ('currentTime = ' + currentTime.toString() + ', ') + ('failedRequestCount = ' + $this.u5y_1));
|
|
2168
2146
|
return exception;
|
|
2169
2147
|
} else {
|
|
2170
|
-
$this.
|
|
2148
|
+
$this.t5y_1 = null;
|
|
2171
2149
|
}
|
|
2172
2150
|
}
|
|
2173
2151
|
return null;
|
|
2174
2152
|
}
|
|
2175
2153
|
function mapToRandomExceptionIfError($this, error) {
|
|
2176
|
-
$this.
|
|
2177
|
-
$this.
|
|
2178
|
-
var timeToWait = Duration__times_impl_sfuzvp($this.
|
|
2154
|
+
$this.t5y_1 = System_instance.ik();
|
|
2155
|
+
$this.u5y_1 = $this.u5y_1 + 1 | 0;
|
|
2156
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.l5y_1.failedAttemptCooldown, $this.u5y_1);
|
|
2179
2157
|
// Inline function 'kotlin.requireNotNull' call
|
|
2180
|
-
var tmp0 = $this.
|
|
2158
|
+
var tmp0 = $this.t5y_1;
|
|
2181
2159
|
var tmp$ret$1;
|
|
2182
2160
|
$l$block: {
|
|
2183
2161
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -2189,19 +2167,19 @@
|
|
|
2189
2167
|
break $l$block;
|
|
2190
2168
|
}
|
|
2191
2169
|
}
|
|
2192
|
-
var allowedRequestTime = tmp$ret$1.
|
|
2193
|
-
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.
|
|
2194
|
-
$this.
|
|
2170
|
+
var allowedRequestTime = tmp$ret$1.gl(timeToWait);
|
|
2171
|
+
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.t5y_1) + ', ') + ('currentTime = ' + System_instance.ik().toString() + ', ') + ('failedRequestCount = ' + $this.u5y_1), error);
|
|
2172
|
+
$this.n5y_1.w('RandomPoolProvider', VOID, randomException);
|
|
2195
2173
|
return randomException;
|
|
2196
2174
|
}
|
|
2197
2175
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2198
2176
|
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2199
|
-
tmp.
|
|
2200
|
-
tmp.
|
|
2201
|
-
return tmp.
|
|
2177
|
+
tmp.g9_1 = Unit_instance;
|
|
2178
|
+
tmp.h9_1 = null;
|
|
2179
|
+
return tmp.m9();
|
|
2202
2180
|
}
|
|
2203
2181
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2204
|
-
var existingCardDeck = $this.
|
|
2182
|
+
var existingCardDeck = $this.s5y_1.w2(userData.gameId);
|
|
2205
2183
|
var tmp;
|
|
2206
2184
|
if (!(existingCardDeck == null)) {
|
|
2207
2185
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2212,92 +2190,91 @@
|
|
|
2212
2190
|
}
|
|
2213
2191
|
function getPreparedOrRequestPool($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2214
2192
|
var tmp = new $getPreparedOrRequestPoolCOROUTINE$($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2215
|
-
tmp.
|
|
2216
|
-
tmp.
|
|
2217
|
-
return tmp.
|
|
2193
|
+
tmp.g9_1 = Unit_instance;
|
|
2194
|
+
tmp.h9_1 = null;
|
|
2195
|
+
return tmp.m9();
|
|
2218
2196
|
}
|
|
2219
2197
|
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2220
|
-
return withContext($this.
|
|
2198
|
+
return withContext($this.o5y_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2221
2199
|
}
|
|
2222
2200
|
function Companion_9() {
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2201
|
+
this.b60_1 = 100;
|
|
2202
|
+
this.c60_1 = 3;
|
|
2203
|
+
this.d60_1 = 3000;
|
|
2204
|
+
this.e60_1 = 10000;
|
|
2227
2205
|
}
|
|
2228
2206
|
var Companion_instance_11;
|
|
2229
|
-
function
|
|
2207
|
+
function Companion_getInstance_11() {
|
|
2230
2208
|
return Companion_instance_11;
|
|
2231
2209
|
}
|
|
2232
2210
|
function RandomPoolProviderImpl$_init_$lambda_f6qzy3() {
|
|
2233
2211
|
return uuid4().toString();
|
|
2234
2212
|
}
|
|
2235
2213
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2236
|
-
this.
|
|
2237
|
-
this.
|
|
2238
|
-
this.
|
|
2239
|
-
this.
|
|
2240
|
-
this.
|
|
2241
|
-
this.
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2214
|
+
this.n60_1 = this$0;
|
|
2215
|
+
this.o60_1 = $minRoundsCountInPool;
|
|
2216
|
+
this.p60_1 = $userData;
|
|
2217
|
+
this.q60_1 = $min;
|
|
2218
|
+
this.r60_1 = $max;
|
|
2219
|
+
this.s60_1 = $cardsCount;
|
|
2220
|
+
this.t60_1 = $signed;
|
|
2221
|
+
this.u60_1 = $requestDurationWarnMillis;
|
|
2244
2222
|
CoroutineImpl.call(this, resultContinuation);
|
|
2245
2223
|
}
|
|
2246
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2247
|
-
var tmp = this.
|
|
2248
|
-
tmp.
|
|
2249
|
-
tmp.
|
|
2250
|
-
var tmp_0 = tmp.
|
|
2224
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).a61 = function ($this$withContext, $completion) {
|
|
2225
|
+
var tmp = this.o2f($this$withContext, $completion);
|
|
2226
|
+
tmp.g9_1 = Unit_instance;
|
|
2227
|
+
tmp.h9_1 = null;
|
|
2228
|
+
var tmp_0 = tmp.m9();
|
|
2251
2229
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2252
2230
|
return tmp_0;
|
|
2253
2231
|
return tmp_0;
|
|
2254
2232
|
};
|
|
2255
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2256
|
-
return this.
|
|
2233
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).y9 = function (p1, $completion) {
|
|
2234
|
+
return this.a61((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2257
2235
|
};
|
|
2258
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2259
|
-
var suspendResult = this.
|
|
2236
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).m9 = function () {
|
|
2237
|
+
var suspendResult = this.g9_1;
|
|
2260
2238
|
$sm: do
|
|
2261
2239
|
try {
|
|
2262
|
-
var tmp = this.
|
|
2240
|
+
var tmp = this.e9_1;
|
|
2263
2241
|
switch (tmp) {
|
|
2264
2242
|
case 0:
|
|
2265
|
-
this.
|
|
2266
|
-
this.
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
this.
|
|
2270
|
-
suspendResult = this.z59_1.a2l(this.y59_1, this);
|
|
2243
|
+
this.f9_1 = 10;
|
|
2244
|
+
this.x60_1 = this.n60_1.q5y_1;
|
|
2245
|
+
this.w60_1 = null;
|
|
2246
|
+
this.e9_1 = 1;
|
|
2247
|
+
suspendResult = this.x60_1.c2n(this.w60_1, this);
|
|
2271
2248
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2272
2249
|
return suspendResult;
|
|
2273
2250
|
}
|
|
2274
2251
|
|
|
2275
2252
|
continue $sm;
|
|
2276
2253
|
case 1:
|
|
2277
|
-
this.
|
|
2278
|
-
this.
|
|
2254
|
+
this.y60_1 = Unit_instance;
|
|
2255
|
+
this.e9_1 = 2;
|
|
2279
2256
|
continue $sm;
|
|
2280
2257
|
case 2:
|
|
2281
|
-
this.
|
|
2282
|
-
this.
|
|
2283
|
-
this.
|
|
2258
|
+
this.f9_1 = 9;
|
|
2259
|
+
this.z60_1 = Unit_instance;
|
|
2260
|
+
this.e9_1 = 3;
|
|
2284
2261
|
continue $sm;
|
|
2285
2262
|
case 3:
|
|
2286
|
-
var randomException = getExceptionIfCooldown(this.
|
|
2263
|
+
var randomException = getExceptionIfCooldown(this.n60_1);
|
|
2287
2264
|
if (!(randomException == null)) {
|
|
2288
|
-
var
|
|
2289
|
-
|
|
2290
|
-
this.
|
|
2265
|
+
var tmp_0 = this;
|
|
2266
|
+
tmp_0.z60_1 = new Result(_Result___init__impl__xyqfz8(createFailure(randomException)));
|
|
2267
|
+
this.e9_1 = 7;
|
|
2291
2268
|
continue $sm;
|
|
2292
2269
|
} else {
|
|
2293
|
-
this.
|
|
2270
|
+
this.e9_1 = 4;
|
|
2294
2271
|
continue $sm;
|
|
2295
2272
|
}
|
|
2296
2273
|
|
|
2297
2274
|
case 4:
|
|
2298
|
-
this.
|
|
2299
|
-
this.
|
|
2300
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2275
|
+
this.f9_1 = 6;
|
|
2276
|
+
this.e9_1 = 5;
|
|
2277
|
+
suspendResult = getOrLoadGameCardDeckData(this.n60_1, this.o60_1, this.p60_1, this.q60_1, this.r60_1, this.s60_1, this.t60_1, this.u60_1, this);
|
|
2301
2278
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2302
2279
|
return suspendResult;
|
|
2303
2280
|
}
|
|
@@ -2305,95 +2282,95 @@
|
|
|
2305
2282
|
continue $sm;
|
|
2306
2283
|
case 5:
|
|
2307
2284
|
var cardDeckData = suspendResult;
|
|
2308
|
-
var
|
|
2309
|
-
|
|
2310
|
-
this.
|
|
2285
|
+
var tmp_1 = this;
|
|
2286
|
+
tmp_1.z60_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2287
|
+
this.e9_1 = 7;
|
|
2311
2288
|
continue $sm;
|
|
2312
2289
|
case 6:
|
|
2313
|
-
this.
|
|
2314
|
-
var
|
|
2315
|
-
if (
|
|
2316
|
-
var error = this.
|
|
2317
|
-
var
|
|
2318
|
-
var exception = mapToRandomExceptionIfError(this.
|
|
2319
|
-
|
|
2320
|
-
this.
|
|
2290
|
+
this.f9_1 = 9;
|
|
2291
|
+
var tmp_2 = this.h9_1;
|
|
2292
|
+
if (tmp_2 instanceof Error) {
|
|
2293
|
+
var error = this.h9_1;
|
|
2294
|
+
var tmp_3 = this;
|
|
2295
|
+
var exception = mapToRandomExceptionIfError(this.n60_1, error);
|
|
2296
|
+
tmp_3.z60_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2297
|
+
this.e9_1 = 7;
|
|
2321
2298
|
continue $sm;
|
|
2322
2299
|
} else {
|
|
2323
|
-
throw this.
|
|
2300
|
+
throw this.h9_1;
|
|
2324
2301
|
}
|
|
2325
2302
|
|
|
2326
2303
|
case 7:
|
|
2327
|
-
this.
|
|
2328
|
-
this.
|
|
2329
|
-
this.
|
|
2304
|
+
this.y60_1 = this.z60_1;
|
|
2305
|
+
this.f9_1 = 10;
|
|
2306
|
+
this.e9_1 = 8;
|
|
2330
2307
|
continue $sm;
|
|
2331
2308
|
case 8:
|
|
2332
|
-
var
|
|
2333
|
-
this.
|
|
2334
|
-
this.
|
|
2335
|
-
return
|
|
2309
|
+
var tmp_4 = this.y60_1;
|
|
2310
|
+
this.f9_1 = 10;
|
|
2311
|
+
this.x60_1.o2m(this.w60_1);
|
|
2312
|
+
return tmp_4;
|
|
2336
2313
|
case 9:
|
|
2337
|
-
this.
|
|
2338
|
-
var t = this.
|
|
2339
|
-
this.
|
|
2314
|
+
this.f9_1 = 10;
|
|
2315
|
+
var t = this.h9_1;
|
|
2316
|
+
this.x60_1.o2m(this.w60_1);
|
|
2340
2317
|
throw t;
|
|
2341
2318
|
case 10:
|
|
2342
|
-
throw this.
|
|
2319
|
+
throw this.h9_1;
|
|
2343
2320
|
}
|
|
2344
2321
|
} catch ($p) {
|
|
2345
2322
|
var e = $p;
|
|
2346
|
-
if (this.
|
|
2323
|
+
if (this.f9_1 === 10) {
|
|
2347
2324
|
throw e;
|
|
2348
2325
|
} else {
|
|
2349
|
-
this.
|
|
2350
|
-
this.
|
|
2326
|
+
this.e9_1 = this.f9_1;
|
|
2327
|
+
this.h9_1 = e;
|
|
2351
2328
|
}
|
|
2352
2329
|
}
|
|
2353
2330
|
while (true);
|
|
2354
2331
|
};
|
|
2355
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2356
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2357
|
-
i.
|
|
2332
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).o2f = function ($this$withContext, completion) {
|
|
2333
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.n60_1, this.o60_1, this.p60_1, this.q60_1, this.r60_1, this.s60_1, this.t60_1, this.u60_1, completion);
|
|
2334
|
+
i.v60_1 = $this$withContext;
|
|
2358
2335
|
return i;
|
|
2359
2336
|
};
|
|
2360
2337
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2361
2338
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2362
2339
|
var l = function ($this$withContext, $completion) {
|
|
2363
|
-
return i.
|
|
2340
|
+
return i.a61($this$withContext, $completion);
|
|
2364
2341
|
};
|
|
2365
2342
|
l.$arity = 1;
|
|
2366
2343
|
return l;
|
|
2367
2344
|
}
|
|
2368
2345
|
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2369
|
-
this.
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2372
|
-
this.
|
|
2373
|
-
this.
|
|
2374
|
-
this.
|
|
2346
|
+
this.j61_1 = this$0;
|
|
2347
|
+
this.k61_1 = $min;
|
|
2348
|
+
this.l61_1 = $max;
|
|
2349
|
+
this.m61_1 = $cardsCount;
|
|
2350
|
+
this.n61_1 = $signed;
|
|
2351
|
+
this.o61_1 = $requestDurationWarnMillis;
|
|
2375
2352
|
CoroutineImpl.call(this, resultContinuation);
|
|
2376
2353
|
}
|
|
2377
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2378
|
-
var tmp = this.
|
|
2379
|
-
tmp.
|
|
2380
|
-
tmp.
|
|
2381
|
-
return tmp.
|
|
2354
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).r61 = function ($this$withContext, $completion) {
|
|
2355
|
+
var tmp = this.o2f($this$withContext, $completion);
|
|
2356
|
+
tmp.g9_1 = Unit_instance;
|
|
2357
|
+
tmp.h9_1 = null;
|
|
2358
|
+
return tmp.m9();
|
|
2382
2359
|
};
|
|
2383
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2384
|
-
return this.
|
|
2360
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).y9 = function (p1, $completion) {
|
|
2361
|
+
return this.r61((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2385
2362
|
};
|
|
2386
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2387
|
-
var suspendResult = this.
|
|
2363
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).m9 = function () {
|
|
2364
|
+
var suspendResult = this.g9_1;
|
|
2388
2365
|
$sm: do
|
|
2389
2366
|
try {
|
|
2390
|
-
var tmp = this.
|
|
2367
|
+
var tmp = this.e9_1;
|
|
2391
2368
|
switch (tmp) {
|
|
2392
2369
|
case 0:
|
|
2393
|
-
this.
|
|
2394
|
-
this.
|
|
2395
|
-
this.
|
|
2396
|
-
suspendResult = this.
|
|
2370
|
+
this.f9_1 = 2;
|
|
2371
|
+
this.q61_1 = System_instance.ik();
|
|
2372
|
+
this.e9_1 = 1;
|
|
2373
|
+
suspendResult = this.j61_1.m5y_1.y5w(this.k61_1, this.l61_1, this.j61_1.l5y_1.poolSize, this.m61_1, new CardDecksRequestUserData(this.j61_1.p5y_1(), this.j61_1.l5y_1.poolSize), this.n61_1, this);
|
|
2397
2374
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2398
2375
|
return suspendResult;
|
|
2399
2376
|
}
|
|
@@ -2401,67 +2378,67 @@
|
|
|
2401
2378
|
continue $sm;
|
|
2402
2379
|
case 1:
|
|
2403
2380
|
var result = suspendResult;
|
|
2404
|
-
var requestEndTime = System_instance.
|
|
2405
|
-
var requestDuration = requestEndTime.
|
|
2381
|
+
var requestEndTime = System_instance.ik();
|
|
2382
|
+
var requestDuration = requestEndTime.il(this.q61_1);
|
|
2406
2383
|
Companion_getInstance_0();
|
|
2407
|
-
var this_0 = this.
|
|
2384
|
+
var this_0 = this.o61_1;
|
|
2408
2385
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2409
2386
|
var tmp_0 = 'actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ';
|
|
2410
2387
|
Companion_getInstance_0();
|
|
2411
|
-
var this_1 = this.
|
|
2412
|
-
this.
|
|
2388
|
+
var this_1 = this.o61_1;
|
|
2389
|
+
this.j61_1.n5y_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2413
2390
|
}
|
|
2414
2391
|
|
|
2415
2392
|
return new RandomPoolValue(result);
|
|
2416
2393
|
case 2:
|
|
2417
|
-
throw this.
|
|
2394
|
+
throw this.h9_1;
|
|
2418
2395
|
}
|
|
2419
2396
|
} catch ($p) {
|
|
2420
2397
|
var e = $p;
|
|
2421
|
-
if (this.
|
|
2398
|
+
if (this.f9_1 === 2) {
|
|
2422
2399
|
throw e;
|
|
2423
2400
|
} else {
|
|
2424
|
-
this.
|
|
2425
|
-
this.
|
|
2401
|
+
this.e9_1 = this.f9_1;
|
|
2402
|
+
this.h9_1 = e;
|
|
2426
2403
|
}
|
|
2427
2404
|
}
|
|
2428
2405
|
while (true);
|
|
2429
2406
|
};
|
|
2430
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2431
|
-
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.
|
|
2432
|
-
i.
|
|
2407
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).o2f = function ($this$withContext, completion) {
|
|
2408
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.j61_1, this.k61_1, this.l61_1, this.m61_1, this.n61_1, this.o61_1, completion);
|
|
2409
|
+
i.p61_1 = $this$withContext;
|
|
2433
2410
|
return i;
|
|
2434
2411
|
};
|
|
2435
2412
|
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2436
2413
|
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2437
2414
|
var l = function ($this$withContext, $completion) {
|
|
2438
|
-
return i.
|
|
2415
|
+
return i.r61($this$withContext, $completion);
|
|
2439
2416
|
};
|
|
2440
2417
|
l.$arity = 1;
|
|
2441
2418
|
return l;
|
|
2442
2419
|
}
|
|
2443
2420
|
function $getOrLoadGameCardDeckDataCOROUTINE$(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2444
2421
|
CoroutineImpl.call(this, resultContinuation);
|
|
2445
|
-
this.
|
|
2446
|
-
this.
|
|
2447
|
-
this.
|
|
2448
|
-
this.
|
|
2449
|
-
this.
|
|
2450
|
-
this.
|
|
2451
|
-
this.
|
|
2452
|
-
this.
|
|
2453
|
-
}
|
|
2454
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).
|
|
2455
|
-
var suspendResult = this.
|
|
2422
|
+
this.d5z_1 = _this__u8e3s4;
|
|
2423
|
+
this.e5z_1 = minRoundsCountInPool;
|
|
2424
|
+
this.f5z_1 = userData;
|
|
2425
|
+
this.g5z_1 = min;
|
|
2426
|
+
this.h5z_1 = max;
|
|
2427
|
+
this.i5z_1 = cardsCount;
|
|
2428
|
+
this.j5z_1 = signed;
|
|
2429
|
+
this.k5z_1 = requestDurationWarnMillis;
|
|
2430
|
+
}
|
|
2431
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).m9 = function () {
|
|
2432
|
+
var suspendResult = this.g9_1;
|
|
2456
2433
|
$sm: do
|
|
2457
2434
|
try {
|
|
2458
|
-
var tmp = this.
|
|
2435
|
+
var tmp = this.e9_1;
|
|
2459
2436
|
switch (tmp) {
|
|
2460
2437
|
case 0:
|
|
2461
|
-
this.
|
|
2462
|
-
var tmp0_gameId = this.
|
|
2463
|
-
this.
|
|
2464
|
-
suspendResult = getPreparedOrRequestPool(this.
|
|
2438
|
+
this.f9_1 = 2;
|
|
2439
|
+
var tmp0_gameId = this.f5z_1.gameId;
|
|
2440
|
+
this.e9_1 = 1;
|
|
2441
|
+
suspendResult = getPreparedOrRequestPool(this.d5z_1, tmp0_gameId, this.g5z_1, this.h5z_1, this.e5z_1, this.i5z_1, this.j5z_1, this.k5z_1, this);
|
|
2465
2442
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2466
2443
|
return suspendResult;
|
|
2467
2444
|
}
|
|
@@ -2469,84 +2446,84 @@
|
|
|
2469
2446
|
continue $sm;
|
|
2470
2447
|
case 1:
|
|
2471
2448
|
var randomPoolValue = suspendResult;
|
|
2472
|
-
var tmp0 = this.
|
|
2473
|
-
var key = randomPoolValue.
|
|
2474
|
-
tmp0.
|
|
2475
|
-
var cardDeckData = randomPoolValue.
|
|
2476
|
-
var tmp1_poolId = randomPoolValue.
|
|
2477
|
-
var tmp2_signature = randomPoolValue.
|
|
2478
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2479
|
-
var tmp0_0 = this.
|
|
2480
|
-
var key_0 = this.
|
|
2481
|
-
tmp0_0.
|
|
2449
|
+
var tmp0 = this.d5z_1.r5y_1;
|
|
2450
|
+
var key = randomPoolValue.s61_1.f5u_1;
|
|
2451
|
+
tmp0.z2(key, randomPoolValue);
|
|
2452
|
+
var cardDeckData = randomPoolValue.w61(this.f5z_1.gameId);
|
|
2453
|
+
var tmp1_poolId = randomPoolValue.s61_1.f5u_1;
|
|
2454
|
+
var tmp2_signature = randomPoolValue.s61_1.g5u_1;
|
|
2455
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.d5z_1, tmp1_poolId, tmp2_signature, cardDeckData, this.f5z_1);
|
|
2456
|
+
var tmp0_0 = this.d5z_1.s5y_1;
|
|
2457
|
+
var key_0 = this.f5z_1.gameId;
|
|
2458
|
+
tmp0_0.z2(key_0, cardDecksRecord);
|
|
2482
2459
|
return cardDeckData;
|
|
2483
2460
|
case 2:
|
|
2484
|
-
throw this.
|
|
2461
|
+
throw this.h9_1;
|
|
2485
2462
|
}
|
|
2486
2463
|
} catch ($p) {
|
|
2487
2464
|
var e = $p;
|
|
2488
|
-
if (this.
|
|
2465
|
+
if (this.f9_1 === 2) {
|
|
2489
2466
|
throw e;
|
|
2490
2467
|
} else {
|
|
2491
|
-
this.
|
|
2492
|
-
this.
|
|
2468
|
+
this.e9_1 = this.f9_1;
|
|
2469
|
+
this.h9_1 = e;
|
|
2493
2470
|
}
|
|
2494
2471
|
}
|
|
2495
2472
|
while (true);
|
|
2496
2473
|
};
|
|
2497
2474
|
function $getPreparedOrRequestPoolCOROUTINE$(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2498
2475
|
CoroutineImpl.call(this, resultContinuation);
|
|
2499
|
-
this.
|
|
2500
|
-
this.
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2506
|
-
this.
|
|
2507
|
-
}
|
|
2508
|
-
protoOf($getPreparedOrRequestPoolCOROUTINE$).
|
|
2509
|
-
var suspendResult = this.
|
|
2476
|
+
this.t5z_1 = _this__u8e3s4;
|
|
2477
|
+
this.u5z_1 = gameId;
|
|
2478
|
+
this.v5z_1 = min;
|
|
2479
|
+
this.w5z_1 = max;
|
|
2480
|
+
this.x5z_1 = minRoundsCount;
|
|
2481
|
+
this.y5z_1 = cardsCount;
|
|
2482
|
+
this.z5z_1 = signed;
|
|
2483
|
+
this.a60_1 = requestDurationWarnMillis;
|
|
2484
|
+
}
|
|
2485
|
+
protoOf($getPreparedOrRequestPoolCOROUTINE$).m9 = function () {
|
|
2486
|
+
var suspendResult = this.g9_1;
|
|
2510
2487
|
$sm: do
|
|
2511
2488
|
try {
|
|
2512
|
-
var tmp = this.
|
|
2489
|
+
var tmp = this.e9_1;
|
|
2513
2490
|
switch (tmp) {
|
|
2514
2491
|
case 0:
|
|
2515
|
-
this.
|
|
2516
|
-
var tmp0 = this.
|
|
2492
|
+
this.f9_1 = 2;
|
|
2493
|
+
var tmp0 = this.t5z_1.r5y_1;
|
|
2517
2494
|
var destination = LinkedHashMap_init_$Create$();
|
|
2518
|
-
var _iterator__ex2g4s = tmp0.
|
|
2519
|
-
while (_iterator__ex2g4s.
|
|
2520
|
-
var element = _iterator__ex2g4s.
|
|
2521
|
-
var tmp0_0 = element.
|
|
2522
|
-
var key = this.
|
|
2523
|
-
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).
|
|
2524
|
-
destination.
|
|
2495
|
+
var _iterator__ex2g4s = tmp0.m1().t();
|
|
2496
|
+
while (_iterator__ex2g4s.u()) {
|
|
2497
|
+
var element = _iterator__ex2g4s.v();
|
|
2498
|
+
var tmp0_0 = element.o1().t61_1;
|
|
2499
|
+
var key = this.u5z_1;
|
|
2500
|
+
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).u2(key)) {
|
|
2501
|
+
destination.z2(element.n1(), element.o1());
|
|
2525
2502
|
}
|
|
2526
2503
|
}
|
|
2527
2504
|
|
|
2528
|
-
var usedResultEntry = firstOrNull(destination.
|
|
2505
|
+
var usedResultEntry = firstOrNull(destination.m1());
|
|
2529
2506
|
if (!(usedResultEntry == null)) {
|
|
2530
|
-
return usedResultEntry.
|
|
2507
|
+
return usedResultEntry.o1().x61(this.u5z_1);
|
|
2531
2508
|
}
|
|
2532
2509
|
|
|
2533
|
-
var tmp0_1 = this.
|
|
2510
|
+
var tmp0_1 = this.t5z_1.r5y_1;
|
|
2534
2511
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2535
|
-
var _iterator__ex2g4s_0 = tmp0_1.
|
|
2536
|
-
while (_iterator__ex2g4s_0.
|
|
2537
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
2538
|
-
if (element_0.
|
|
2539
|
-
destination_0.
|
|
2512
|
+
var _iterator__ex2g4s_0 = tmp0_1.m1().t();
|
|
2513
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2514
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2515
|
+
if (element_0.o1().y61(this.x5z_1)) {
|
|
2516
|
+
destination_0.z2(element_0.n1(), element_0.o1());
|
|
2540
2517
|
}
|
|
2541
2518
|
}
|
|
2542
2519
|
|
|
2543
|
-
var availableResultEntry = firstOrNull(destination_0.
|
|
2520
|
+
var availableResultEntry = firstOrNull(destination_0.m1());
|
|
2544
2521
|
if (!(availableResultEntry == null)) {
|
|
2545
|
-
return availableResultEntry.
|
|
2522
|
+
return availableResultEntry.o1().z61(this.u5z_1, this.x5z_1, this.t5z_1.l5y_1.thresholdForUsedPool);
|
|
2546
2523
|
}
|
|
2547
2524
|
|
|
2548
|
-
this.
|
|
2549
|
-
suspendResult = requestNewPool(this.
|
|
2525
|
+
this.e9_1 = 1;
|
|
2526
|
+
suspendResult = requestNewPool(this.t5z_1, this.v5z_1, this.w5z_1, this.y5z_1, this.z5z_1, this.a60_1, this);
|
|
2550
2527
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2551
2528
|
return suspendResult;
|
|
2552
2529
|
}
|
|
@@ -2554,23 +2531,23 @@
|
|
|
2554
2531
|
continue $sm;
|
|
2555
2532
|
case 1:
|
|
2556
2533
|
var cardDecks = suspendResult;
|
|
2557
|
-
return cardDecks.
|
|
2534
|
+
return cardDecks.z61(this.u5z_1, this.x5z_1, this.t5z_1.l5y_1.thresholdForUsedPool);
|
|
2558
2535
|
case 2:
|
|
2559
|
-
throw this.
|
|
2536
|
+
throw this.h9_1;
|
|
2560
2537
|
}
|
|
2561
2538
|
} catch ($p) {
|
|
2562
2539
|
var e = $p;
|
|
2563
|
-
if (this.
|
|
2540
|
+
if (this.f9_1 === 2) {
|
|
2564
2541
|
throw e;
|
|
2565
2542
|
} else {
|
|
2566
|
-
this.
|
|
2567
|
-
this.
|
|
2543
|
+
this.e9_1 = this.f9_1;
|
|
2544
|
+
this.h9_1 = e;
|
|
2568
2545
|
}
|
|
2569
2546
|
}
|
|
2570
2547
|
while (true);
|
|
2571
2548
|
};
|
|
2572
2549
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2573
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2550
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().d23_1 : dispatcher;
|
|
2574
2551
|
var tmp;
|
|
2575
2552
|
if (idsProvider === VOID) {
|
|
2576
2553
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2578,131 +2555,131 @@
|
|
|
2578
2555
|
tmp = idsProvider;
|
|
2579
2556
|
}
|
|
2580
2557
|
idsProvider = tmp;
|
|
2581
|
-
this.
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2584
|
-
this.
|
|
2585
|
-
this.
|
|
2586
|
-
this.
|
|
2558
|
+
this.l5y_1 = params;
|
|
2559
|
+
this.m5y_1 = randomOrgApiService;
|
|
2560
|
+
this.n5y_1 = logger;
|
|
2561
|
+
this.o5y_1 = dispatcher;
|
|
2562
|
+
this.p5y_1 = idsProvider;
|
|
2563
|
+
this.q5y_1 = Mutex();
|
|
2587
2564
|
var tmp_0 = this;
|
|
2588
2565
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2589
|
-
tmp_0.
|
|
2566
|
+
tmp_0.r5y_1 = LinkedHashMap_init_$Create$();
|
|
2590
2567
|
var tmp_1 = this;
|
|
2591
2568
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2592
|
-
tmp_1.
|
|
2593
|
-
this.
|
|
2594
|
-
this.
|
|
2569
|
+
tmp_1.s5y_1 = LinkedHashMap_init_$Create$();
|
|
2570
|
+
this.t5y_1 = null;
|
|
2571
|
+
this.u5y_1 = 0;
|
|
2595
2572
|
}
|
|
2596
|
-
protoOf(RandomPoolProviderImpl).
|
|
2597
|
-
var tmp = withContext(this.
|
|
2573
|
+
protoOf(RandomPoolProviderImpl).i5y = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2574
|
+
var tmp = withContext(this.o5y_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2598
2575
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2599
2576
|
return tmp;
|
|
2600
2577
|
return tmp;
|
|
2601
2578
|
};
|
|
2602
|
-
protoOf(RandomPoolProviderImpl).
|
|
2603
|
-
return this.
|
|
2579
|
+
protoOf(RandomPoolProviderImpl).a62 = function (gameId) {
|
|
2580
|
+
return this.s5y_1.w2(gameId);
|
|
2604
2581
|
};
|
|
2605
2582
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2606
|
-
return this.
|
|
2583
|
+
return this.a62(gameId);
|
|
2607
2584
|
};
|
|
2608
|
-
protoOf(RandomPoolProviderImpl).
|
|
2609
|
-
return this.
|
|
2585
|
+
protoOf(RandomPoolProviderImpl).b62 = function (id) {
|
|
2586
|
+
return this.r5y_1.w2(id);
|
|
2610
2587
|
};
|
|
2611
2588
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2612
|
-
return this.
|
|
2589
|
+
return this.b62(id);
|
|
2613
2590
|
};
|
|
2614
|
-
protoOf(RandomPoolProviderImpl).
|
|
2615
|
-
return this.
|
|
2591
|
+
protoOf(RandomPoolProviderImpl).c62 = function () {
|
|
2592
|
+
return this.r5y_1.g1();
|
|
2616
2593
|
};
|
|
2617
2594
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2618
|
-
return this.
|
|
2595
|
+
return this.c62();
|
|
2619
2596
|
};
|
|
2620
|
-
protoOf(RandomPoolProviderImpl).
|
|
2621
|
-
var gameCardDecksRecord = this.
|
|
2597
|
+
protoOf(RandomPoolProviderImpl).k5y = function (gameId) {
|
|
2598
|
+
var gameCardDecksRecord = this.s5y_1.w2(gameId);
|
|
2622
2599
|
if (!(gameCardDecksRecord == null)) {
|
|
2623
|
-
var randomPoolValue = this.
|
|
2600
|
+
var randomPoolValue = this.r5y_1.w2(gameCardDecksRecord.poolId);
|
|
2624
2601
|
if (!(randomPoolValue == null)) {
|
|
2625
2602
|
// Inline function 'kotlin.apply' call
|
|
2626
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2627
|
-
this_0.
|
|
2628
|
-
var newPoolValue = randomPoolValue.
|
|
2629
|
-
if (newPoolValue.
|
|
2630
|
-
this.
|
|
2603
|
+
var this_0 = toMutableMap(randomPoolValue.t61_1);
|
|
2604
|
+
this_0.a3(gameId);
|
|
2605
|
+
var newPoolValue = randomPoolValue.d62(VOID, toMap(this_0));
|
|
2606
|
+
if (newPoolValue.t61_1.r()) {
|
|
2607
|
+
this.r5y_1.a3(gameCardDecksRecord.poolId);
|
|
2631
2608
|
} else {
|
|
2632
|
-
var tmp0 = this.
|
|
2609
|
+
var tmp0 = this.r5y_1;
|
|
2633
2610
|
// Inline function 'kotlin.collections.set' call
|
|
2634
2611
|
var key = gameCardDecksRecord.poolId;
|
|
2635
|
-
tmp0.
|
|
2612
|
+
tmp0.z2(key, newPoolValue);
|
|
2636
2613
|
}
|
|
2637
2614
|
}
|
|
2638
2615
|
}
|
|
2639
|
-
this.
|
|
2616
|
+
this.s5y_1.a3(gameId);
|
|
2640
2617
|
};
|
|
2641
2618
|
function _get_cardDecksCount__ihvb5i($this) {
|
|
2642
|
-
return $this.
|
|
2619
|
+
return $this.s61_1.d5u_1.g1();
|
|
2643
2620
|
}
|
|
2644
2621
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2645
2622
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2646
2623
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2647
2624
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2648
|
-
this.
|
|
2649
|
-
this.
|
|
2650
|
-
this.
|
|
2651
|
-
this.
|
|
2625
|
+
this.s61_1 = randomResult;
|
|
2626
|
+
this.t61_1 = usedByGames;
|
|
2627
|
+
this.u61_1 = reservedCardDecks;
|
|
2628
|
+
this.v61_1 = isUsed;
|
|
2652
2629
|
}
|
|
2653
|
-
protoOf(RandomPoolValue).
|
|
2654
|
-
if (this.
|
|
2630
|
+
protoOf(RandomPoolValue).y61 = function (minRoundsCount) {
|
|
2631
|
+
if (this.v61_1) {
|
|
2655
2632
|
return false;
|
|
2656
2633
|
}
|
|
2657
|
-
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.
|
|
2634
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.u61_1 | 0;
|
|
2658
2635
|
return availableCount >= minRoundsCount;
|
|
2659
2636
|
};
|
|
2660
|
-
protoOf(RandomPoolValue).
|
|
2661
|
-
var previousReservedCardDeckIndex = this.
|
|
2637
|
+
protoOf(RandomPoolValue).z61 = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2638
|
+
var previousReservedCardDeckIndex = this.u61_1;
|
|
2662
2639
|
// Inline function 'kotlin.apply' call
|
|
2663
|
-
var this_0 = toMutableMap(this.
|
|
2664
|
-
this_0.
|
|
2640
|
+
var this_0 = toMutableMap(this.t61_1);
|
|
2641
|
+
this_0.z2(gameId, previousReservedCardDeckIndex);
|
|
2665
2642
|
var newNewUsedBy = toMap(this_0);
|
|
2666
2643
|
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2667
|
-
return this.
|
|
2644
|
+
return this.d62(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2668
2645
|
};
|
|
2669
|
-
protoOf(RandomPoolValue).
|
|
2670
|
-
var currentCardDeckIndex = getValue(this.
|
|
2646
|
+
protoOf(RandomPoolValue).x61 = function (gameId) {
|
|
2647
|
+
var currentCardDeckIndex = getValue(this.t61_1, gameId);
|
|
2671
2648
|
var tmp;
|
|
2672
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2649
|
+
if (currentCardDeckIndex === get_lastIndex(this.s61_1.d5u_1)) {
|
|
2673
2650
|
tmp = 0;
|
|
2674
2651
|
} else {
|
|
2675
2652
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2676
2653
|
}
|
|
2677
2654
|
var newCardDeckIndex = tmp;
|
|
2678
2655
|
// Inline function 'kotlin.apply' call
|
|
2679
|
-
var this_0 = toMutableMap(this.
|
|
2680
|
-
this_0.
|
|
2656
|
+
var this_0 = toMutableMap(this.t61_1);
|
|
2657
|
+
this_0.z2(gameId, newCardDeckIndex);
|
|
2681
2658
|
var newNewUsedBy = toMap(this_0);
|
|
2682
|
-
return this.
|
|
2659
|
+
return this.d62(VOID, newNewUsedBy);
|
|
2683
2660
|
};
|
|
2684
|
-
protoOf(RandomPoolValue).
|
|
2685
|
-
var index = getValue(this.
|
|
2686
|
-
return new GameCardDeckData(index, this.
|
|
2661
|
+
protoOf(RandomPoolValue).w61 = function (gameId) {
|
|
2662
|
+
var index = getValue(this.t61_1, gameId);
|
|
2663
|
+
return new GameCardDeckData(index, this.s61_1.d5u_1.h1(index));
|
|
2687
2664
|
};
|
|
2688
|
-
protoOf(RandomPoolValue).
|
|
2665
|
+
protoOf(RandomPoolValue).e62 = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2689
2666
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2690
2667
|
};
|
|
2691
|
-
protoOf(RandomPoolValue).
|
|
2692
|
-
randomResult = randomResult === VOID ? this.
|
|
2693
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2694
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2695
|
-
isUsed = isUsed === VOID ? this.
|
|
2696
|
-
return $super === VOID ? this.
|
|
2668
|
+
protoOf(RandomPoolValue).d62 = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2669
|
+
randomResult = randomResult === VOID ? this.s61_1 : randomResult;
|
|
2670
|
+
usedByGames = usedByGames === VOID ? this.t61_1 : usedByGames;
|
|
2671
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.u61_1 : reservedCardDecks;
|
|
2672
|
+
isUsed = isUsed === VOID ? this.v61_1 : isUsed;
|
|
2673
|
+
return $super === VOID ? this.e62(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.e62.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2697
2674
|
};
|
|
2698
2675
|
protoOf(RandomPoolValue).toString = function () {
|
|
2699
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2676
|
+
return 'RandomPoolValue(randomResult=' + this.s61_1.toString() + ', usedByGames=' + toString(this.t61_1) + ', reservedCardDecks=' + this.u61_1 + ', isUsed=' + this.v61_1 + ')';
|
|
2700
2677
|
};
|
|
2701
2678
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2702
|
-
var result = this.
|
|
2703
|
-
result = imul(result, 31) + hashCode(this.
|
|
2704
|
-
result = imul(result, 31) + this.
|
|
2705
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2679
|
+
var result = this.s61_1.hashCode();
|
|
2680
|
+
result = imul(result, 31) + hashCode(this.t61_1) | 0;
|
|
2681
|
+
result = imul(result, 31) + this.u61_1 | 0;
|
|
2682
|
+
result = imul(result, 31) + getBooleanHashCode(this.v61_1) | 0;
|
|
2706
2683
|
return result;
|
|
2707
2684
|
};
|
|
2708
2685
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2710,35 +2687,34 @@
|
|
|
2710
2687
|
return true;
|
|
2711
2688
|
if (!(other instanceof RandomPoolValue))
|
|
2712
2689
|
return false;
|
|
2713
|
-
|
|
2714
|
-
if (!this.u5a_1.equals(tmp0_other_with_cast.u5a_1))
|
|
2690
|
+
if (!this.s61_1.equals(other.s61_1))
|
|
2715
2691
|
return false;
|
|
2716
|
-
if (!equals(this.
|
|
2692
|
+
if (!equals(this.t61_1, other.t61_1))
|
|
2717
2693
|
return false;
|
|
2718
|
-
if (!(this.
|
|
2694
|
+
if (!(this.u61_1 === other.u61_1))
|
|
2719
2695
|
return false;
|
|
2720
|
-
if (!(this.
|
|
2696
|
+
if (!(this.v61_1 === other.v61_1))
|
|
2721
2697
|
return false;
|
|
2722
2698
|
return true;
|
|
2723
2699
|
};
|
|
2724
2700
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2725
2701
|
return function ($this$defaultRequest) {
|
|
2726
2702
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2727
|
-
$this$defaultRequest.
|
|
2703
|
+
$this$defaultRequest.r49($url);
|
|
2728
2704
|
return Unit_instance;
|
|
2729
2705
|
};
|
|
2730
2706
|
}
|
|
2731
2707
|
function ApiCommonConfigs$setupLogging$2$1($externalLogger) {
|
|
2732
|
-
this.
|
|
2708
|
+
this.f62_1 = $externalLogger;
|
|
2733
2709
|
}
|
|
2734
|
-
protoOf(ApiCommonConfigs$setupLogging$2$1).
|
|
2735
|
-
this.
|
|
2710
|
+
protoOf(ApiCommonConfigs$setupLogging$2$1).w57 = function (message) {
|
|
2711
|
+
this.f62_1(message);
|
|
2736
2712
|
};
|
|
2737
2713
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2738
2714
|
return function ($this$install) {
|
|
2739
|
-
$this$install.
|
|
2740
|
-
$this$install.
|
|
2741
|
-
$this$install.
|
|
2715
|
+
$this$install.n59(get_DEFAULT(Companion_instance_0));
|
|
2716
|
+
$this$install.m59_1 = $config.i62_1;
|
|
2717
|
+
$this$install.n59(new ApiCommonConfigs$setupLogging$2$1($externalLogger));
|
|
2742
2718
|
return Unit_instance;
|
|
2743
2719
|
};
|
|
2744
2720
|
}
|
|
@@ -2750,32 +2726,32 @@
|
|
|
2750
2726
|
}
|
|
2751
2727
|
function ApiCommonConfigs() {
|
|
2752
2728
|
}
|
|
2753
|
-
protoOf(ApiCommonConfigs).
|
|
2754
|
-
_this__u8e3s4.
|
|
2755
|
-
this.
|
|
2756
|
-
this.
|
|
2757
|
-
this.
|
|
2729
|
+
protoOf(ApiCommonConfigs).k62 = function (_this__u8e3s4, config, externalLogger) {
|
|
2730
|
+
_this__u8e3s4.o40_1 = true;
|
|
2731
|
+
this.l62(_this__u8e3s4, config.g62_1);
|
|
2732
|
+
this.m62(_this__u8e3s4, config.j62_1);
|
|
2733
|
+
this.n62(_this__u8e3s4, config, externalLogger);
|
|
2758
2734
|
};
|
|
2759
|
-
protoOf(ApiCommonConfigs).
|
|
2735
|
+
protoOf(ApiCommonConfigs).l62 = function (_this__u8e3s4, url) {
|
|
2760
2736
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2761
2737
|
};
|
|
2762
|
-
protoOf(ApiCommonConfigs).
|
|
2763
|
-
var tmp =
|
|
2764
|
-
_this__u8e3s4.
|
|
2738
|
+
protoOf(ApiCommonConfigs).n62 = function (_this__u8e3s4, config, externalLogger) {
|
|
2739
|
+
var tmp = get_Logging();
|
|
2740
|
+
_this__u8e3s4.c41(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2765
2741
|
};
|
|
2766
|
-
protoOf(ApiCommonConfigs).
|
|
2767
|
-
var tmp =
|
|
2768
|
-
_this__u8e3s4.
|
|
2742
|
+
protoOf(ApiCommonConfigs).m62 = function (_this__u8e3s4, json) {
|
|
2743
|
+
var tmp = get_ContentNegotiation();
|
|
2744
|
+
_this__u8e3s4.c41(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2769
2745
|
};
|
|
2770
2746
|
var ApiCommonConfigs_instance;
|
|
2771
2747
|
function ApiCommonConfigs_getInstance() {
|
|
2772
2748
|
return ApiCommonConfigs_instance;
|
|
2773
2749
|
}
|
|
2774
2750
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2775
|
-
$this$Json.
|
|
2776
|
-
$this$Json.
|
|
2777
|
-
$this$Json.
|
|
2778
|
-
$this$Json.
|
|
2751
|
+
$this$Json.y1a_1 = true;
|
|
2752
|
+
$this$Json.x1a_1 = true;
|
|
2753
|
+
$this$Json.w1a_1 = true;
|
|
2754
|
+
$this$Json.v1a_1 = false;
|
|
2779
2755
|
return Unit_instance;
|
|
2780
2756
|
}
|
|
2781
2757
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2788,19 +2764,19 @@
|
|
|
2788
2764
|
tmp = json;
|
|
2789
2765
|
}
|
|
2790
2766
|
json = tmp;
|
|
2791
|
-
this.
|
|
2792
|
-
this.
|
|
2793
|
-
this.
|
|
2794
|
-
this.
|
|
2767
|
+
this.g62_1 = baseUrl;
|
|
2768
|
+
this.h62_1 = timeoutMillis;
|
|
2769
|
+
this.i62_1 = loggingLevel;
|
|
2770
|
+
this.j62_1 = json;
|
|
2795
2771
|
}
|
|
2796
2772
|
protoOf(HttpParams).toString = function () {
|
|
2797
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2773
|
+
return 'HttpParams(baseUrl=' + this.g62_1 + ', timeoutMillis=' + this.h62_1.toString() + ', loggingLevel=' + this.i62_1.toString() + ', json=' + toString(this.j62_1) + ')';
|
|
2798
2774
|
};
|
|
2799
2775
|
protoOf(HttpParams).hashCode = function () {
|
|
2800
|
-
var result = getStringHashCode(this.
|
|
2801
|
-
result = imul(result, 31) + this.
|
|
2802
|
-
result = imul(result, 31) + this.
|
|
2803
|
-
result = imul(result, 31) + hashCode(this.
|
|
2776
|
+
var result = getStringHashCode(this.g62_1);
|
|
2777
|
+
result = imul(result, 31) + this.h62_1.hashCode() | 0;
|
|
2778
|
+
result = imul(result, 31) + this.i62_1.hashCode() | 0;
|
|
2779
|
+
result = imul(result, 31) + hashCode(this.j62_1) | 0;
|
|
2804
2780
|
return result;
|
|
2805
2781
|
};
|
|
2806
2782
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2808,14 +2784,13 @@
|
|
|
2808
2784
|
return true;
|
|
2809
2785
|
if (!(other instanceof HttpParams))
|
|
2810
2786
|
return false;
|
|
2811
|
-
|
|
2812
|
-
if (!(this.i5b_1 === tmp0_other_with_cast.i5b_1))
|
|
2787
|
+
if (!(this.g62_1 === other.g62_1))
|
|
2813
2788
|
return false;
|
|
2814
|
-
if (!equalsLong(this.
|
|
2789
|
+
if (!equalsLong(this.h62_1, other.h62_1))
|
|
2815
2790
|
return false;
|
|
2816
|
-
if (!this.
|
|
2791
|
+
if (!this.i62_1.equals(other.i62_1))
|
|
2817
2792
|
return false;
|
|
2818
|
-
if (!equals(this.
|
|
2793
|
+
if (!equals(this.j62_1, other.j62_1))
|
|
2819
2794
|
return false;
|
|
2820
2795
|
return true;
|
|
2821
2796
|
};
|
|
@@ -2841,12 +2816,12 @@
|
|
|
2841
2816
|
}
|
|
2842
2817
|
function nextBytesCopyTo($this, bytes) {
|
|
2843
2818
|
try {
|
|
2844
|
-
$this.
|
|
2819
|
+
$this.r62_1.n5m(bytes);
|
|
2845
2820
|
} catch ($p) {
|
|
2846
2821
|
if ($p instanceof SecRandomCopyException) {
|
|
2847
2822
|
var error = $p;
|
|
2848
|
-
$this.
|
|
2849
|
-
$this.
|
|
2823
|
+
$this.q62_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2824
|
+
$this.s62_1.vh(bytes);
|
|
2850
2825
|
return Unit_instance;
|
|
2851
2826
|
} else {
|
|
2852
2827
|
throw $p;
|
|
@@ -2870,11 +2845,11 @@
|
|
|
2870
2845
|
}
|
|
2871
2846
|
function SecureRandom_0(logger) {
|
|
2872
2847
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2873
|
-
this.
|
|
2874
|
-
this.
|
|
2875
|
-
this.
|
|
2848
|
+
this.q62_1 = logger;
|
|
2849
|
+
this.r62_1 = new SecureRandom();
|
|
2850
|
+
this.s62_1 = Default_getInstance();
|
|
2876
2851
|
}
|
|
2877
|
-
protoOf(SecureRandom_0).
|
|
2852
|
+
protoOf(SecureRandom_0).rh = function (from, until) {
|
|
2878
2853
|
checkRangeBounds(this, from, until);
|
|
2879
2854
|
var n = until - from | 0;
|
|
2880
2855
|
if (n > 0 || n === -2147483648) {
|
|
@@ -2901,7 +2876,7 @@
|
|
|
2901
2876
|
}
|
|
2902
2877
|
}
|
|
2903
2878
|
};
|
|
2904
|
-
protoOf(SecureRandom_0).
|
|
2879
|
+
protoOf(SecureRandom_0).uh = function () {
|
|
2905
2880
|
return !(nextBits(this, 1) === 0);
|
|
2906
2881
|
};
|
|
2907
2882
|
function overhand(_this__u8e3s4, iterations, random) {
|
|
@@ -2910,31 +2885,31 @@
|
|
|
2910
2885
|
var pile = toMutableList(deck);
|
|
2911
2886
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2912
2887
|
var pile2 = ArrayList_init_$Create$_0();
|
|
2913
|
-
var twentypc = deck.
|
|
2888
|
+
var twentypc = deck.g1() / 5 | 0;
|
|
2914
2889
|
// Inline function 'kotlin.repeat' call
|
|
2915
2890
|
var inductionVariable = 0;
|
|
2916
2891
|
if (inductionVariable < iterations)
|
|
2917
2892
|
do {
|
|
2918
2893
|
var index = inductionVariable;
|
|
2919
2894
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2920
|
-
while (pile.
|
|
2921
|
-
var tmp0 = pile.
|
|
2895
|
+
while (pile.g1() > 0) {
|
|
2896
|
+
var tmp0 = pile.g1();
|
|
2922
2897
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2923
|
-
var b = 1 + random.
|
|
2898
|
+
var b = 1 + random.o62(VOID, twentypc) | 0;
|
|
2924
2899
|
var cards = Math.min(tmp0, b);
|
|
2925
|
-
pile2.
|
|
2900
|
+
pile2.e3(0, take(pile, cards));
|
|
2926
2901
|
// Inline function 'kotlin.repeat' call
|
|
2927
2902
|
var inductionVariable_0 = 0;
|
|
2928
2903
|
if (inductionVariable_0 < cards)
|
|
2929
2904
|
do {
|
|
2930
2905
|
var index_0 = inductionVariable_0;
|
|
2931
2906
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2932
|
-
pile.
|
|
2907
|
+
pile.i3(0);
|
|
2933
2908
|
}
|
|
2934
2909
|
while (inductionVariable_0 < cards);
|
|
2935
2910
|
}
|
|
2936
|
-
pile.
|
|
2937
|
-
pile2.
|
|
2911
|
+
pile.i1(pile2);
|
|
2912
|
+
pile2.c3();
|
|
2938
2913
|
}
|
|
2939
2914
|
while (inductionVariable < iterations);
|
|
2940
2915
|
return pile;
|
|
@@ -2949,26 +2924,26 @@
|
|
|
2949
2924
|
do {
|
|
2950
2925
|
var index = inductionVariable;
|
|
2951
2926
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2952
|
-
var mid = deck.
|
|
2927
|
+
var mid = deck.g1() / 2 | 0;
|
|
2953
2928
|
var tenpc = mid / 10 | 0;
|
|
2954
|
-
var cut = (mid - tenpc | 0) + random.
|
|
2929
|
+
var cut = (mid - tenpc | 0) + random.o62(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
2955
2930
|
var deck1 = toMutableList(take(pile, cut));
|
|
2956
2931
|
var deck2 = toMutableList(drop(pile, cut));
|
|
2957
|
-
pile.
|
|
2958
|
-
var fromTop = random.
|
|
2959
|
-
while (deck1.
|
|
2932
|
+
pile.c3();
|
|
2933
|
+
var fromTop = random.uh();
|
|
2934
|
+
while (deck1.g1() > 0 && deck2.g1() > 0) {
|
|
2960
2935
|
if (fromTop) {
|
|
2961
|
-
pile.
|
|
2962
|
-
pile.
|
|
2936
|
+
pile.e1(deck1.i3(0));
|
|
2937
|
+
pile.e1(deck2.i3(0));
|
|
2963
2938
|
} else {
|
|
2964
|
-
pile.
|
|
2965
|
-
pile.
|
|
2939
|
+
pile.e1(deck1.i3(get_lastIndex(deck1)));
|
|
2940
|
+
pile.e1(deck2.i3(get_lastIndex(deck2)));
|
|
2966
2941
|
}
|
|
2967
2942
|
}
|
|
2968
|
-
if (deck1.
|
|
2969
|
-
pile.
|
|
2970
|
-
} else if (deck2.
|
|
2971
|
-
pile.
|
|
2943
|
+
if (deck1.g1() > 0) {
|
|
2944
|
+
pile.i1(deck1);
|
|
2945
|
+
} else if (deck2.g1() > 0) {
|
|
2946
|
+
pile.i1(deck2);
|
|
2972
2947
|
}
|
|
2973
2948
|
reverse(pile);
|
|
2974
2949
|
}
|
|
@@ -2977,22 +2952,22 @@
|
|
|
2977
2952
|
}
|
|
2978
2953
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2979
2954
|
return function ($this$install) {
|
|
2980
|
-
$this$install.
|
|
2981
|
-
$this$install.
|
|
2955
|
+
$this$install.j4q($config.h62_1);
|
|
2956
|
+
$this$install.h4q($config.h62_1);
|
|
2982
2957
|
return Unit_instance;
|
|
2983
2958
|
};
|
|
2984
2959
|
}
|
|
2985
2960
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
2986
2961
|
return function ($this$HttpClient) {
|
|
2987
|
-
var tmp =
|
|
2988
|
-
$this$HttpClient.
|
|
2989
|
-
ApiCommonConfigs_instance.
|
|
2962
|
+
var tmp = get_HttpTimeout();
|
|
2963
|
+
$this$HttpClient.c41(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
2964
|
+
ApiCommonConfigs_instance.k62($this$HttpClient, $config, $externalLogger);
|
|
2990
2965
|
return Unit_instance;
|
|
2991
2966
|
};
|
|
2992
2967
|
}
|
|
2993
2968
|
function HttpFactory() {
|
|
2994
2969
|
}
|
|
2995
|
-
protoOf(HttpFactory).
|
|
2970
|
+
protoOf(HttpFactory).t62 = function (config, externalLogger) {
|
|
2996
2971
|
var tmp = Js_instance;
|
|
2997
2972
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
2998
2973
|
};
|
|
@@ -3001,15 +2976,15 @@
|
|
|
3001
2976
|
return HttpFactory_instance;
|
|
3002
2977
|
}
|
|
3003
2978
|
//region block: post-declaration
|
|
3004
|
-
protoOf($serializer).
|
|
3005
|
-
protoOf($serializer_0).
|
|
3006
|
-
protoOf($serializer_2).
|
|
3007
|
-
protoOf($serializer_3).
|
|
3008
|
-
protoOf($serializer_5).
|
|
3009
|
-
protoOf($serializer_6).
|
|
3010
|
-
protoOf(RandomPoolProviderImpl).
|
|
3011
|
-
protoOf(SecureRandom_0).
|
|
3012
|
-
protoOf(SecureRandom_0).
|
|
2979
|
+
protoOf($serializer).n10 = typeParametersSerializers;
|
|
2980
|
+
protoOf($serializer_0).n10 = typeParametersSerializers;
|
|
2981
|
+
protoOf($serializer_2).n10 = typeParametersSerializers;
|
|
2982
|
+
protoOf($serializer_3).n10 = typeParametersSerializers;
|
|
2983
|
+
protoOf($serializer_5).n10 = typeParametersSerializers;
|
|
2984
|
+
protoOf($serializer_6).n10 = typeParametersSerializers;
|
|
2985
|
+
protoOf(RandomPoolProviderImpl).j5y = getCardDeck$default;
|
|
2986
|
+
protoOf(SecureRandom_0).o62 = nextInt$default;
|
|
2987
|
+
protoOf(SecureRandom_0).p62 = shuffle;
|
|
3013
2988
|
//endregion
|
|
3014
2989
|
//region block: init
|
|
3015
2990
|
Companion_instance_1 = new Companion();
|
|
@@ -3040,7 +3015,7 @@
|
|
|
3040
3015
|
var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
|
|
3041
3016
|
var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
|
|
3042
3017
|
$games$raspberry$card_game$random$data$models.GameCardDecksRecord = GameCardDecksRecord;
|
|
3043
|
-
defineProp($games$raspberry$card_game$random$data$models.GameCardDecksRecord, 'Companion',
|
|
3018
|
+
defineProp($games$raspberry$card_game$random$data$models.GameCardDecksRecord, 'Companion', Companion_getInstance_2, VOID, true);
|
|
3044
3019
|
$games$raspberry$card_game$random$data$models.GameCardDeckData = GameCardDeckData;
|
|
3045
3020
|
var $games = _.games || (_.games = {});
|
|
3046
3021
|
var $games$raspberry = $games.raspberry || ($games.raspberry = {});
|