raspberry_games_engine_helpers 1.8.248 → 1.8.250
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 +76 -76
- package/Kosi-Kodein-kodein-di.js +550 -550
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1452 -1452
- package/Logic_Debertz-core.js +944 -902
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.d.ts +62 -22
- package/Logic_Debertz-engine.js +10114 -8843
- package/Logic_Debertz-engine.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +865 -699
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +15 -15
- package/kotlinx-serialization-kotlinx-serialization-core.js +1938 -1938
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1420 -1420
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +50 -50
- package/raspberry-cardgame-lib-logger.js +30 -30
- package/raspberry-cardgame-lib-random.js +61 -61
package/package.json
CHANGED
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
21
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
22
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
23
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.p9;
|
|
20
|
+
var initMetadataForObject = kotlin_kotlin.$_$.x8;
|
|
21
|
+
var defineProp = kotlin_kotlin.$_$.k8;
|
|
22
|
+
var THROW_CCE = kotlin_kotlin.$_$.ic;
|
|
23
|
+
var Comparator = kotlin_kotlin.$_$.yb;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.f;
|
|
25
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
26
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
27
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
25
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dd;
|
|
26
|
+
var Unit_instance = kotlin_kotlin.$_$.k4;
|
|
27
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.t8;
|
|
28
28
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
29
|
-
var Enum = kotlin_kotlin.$_$.
|
|
30
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
29
|
+
var Enum = kotlin_kotlin.$_$.bc;
|
|
30
|
+
var initMetadataForClass = kotlin_kotlin.$_$.s8;
|
|
31
31
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
32
32
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.j;
|
|
33
|
-
var lazy = kotlin_kotlin.$_$.
|
|
33
|
+
var lazy = kotlin_kotlin.$_$.bd;
|
|
34
34
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
35
35
|
//endregion
|
|
36
36
|
//region block: pre-declaration
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
function CoreConfig() {
|
|
47
47
|
this.version = '0.0.37';
|
|
48
48
|
}
|
|
49
|
-
protoOf(CoreConfig).
|
|
49
|
+
protoOf(CoreConfig).e25 = function () {
|
|
50
50
|
return this.version;
|
|
51
51
|
};
|
|
52
52
|
var CoreConfig_instance;
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
}
|
|
56
56
|
function CardIndexComparator() {
|
|
57
57
|
}
|
|
58
|
-
protoOf(CardIndexComparator).
|
|
59
|
-
return a.
|
|
58
|
+
protoOf(CardIndexComparator).f25 = function (a, b) {
|
|
59
|
+
return a.g25_1 - b.g25_1 | 0;
|
|
60
60
|
};
|
|
61
61
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
62
62
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
63
|
-
return this.
|
|
63
|
+
return this.f25(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
64
64
|
};
|
|
65
65
|
var CardIndexComparator_instance;
|
|
66
66
|
function CardIndexComparator_getInstance() {
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
}
|
|
154
154
|
function Companion() {
|
|
155
155
|
}
|
|
156
|
-
protoOf(Companion).
|
|
156
|
+
protoOf(Companion).h25 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
|
|
157
157
|
var tmp;
|
|
158
158
|
if (previousStubCardWithMaxIndex == null) {
|
|
159
159
|
tmp = null;
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
// Inline function 'kotlin.contracts.contract' call
|
|
163
163
|
var tmp_0;
|
|
164
164
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
|
|
165
|
-
if (previousStubCardWithMaxIndex.
|
|
165
|
+
if (previousStubCardWithMaxIndex.i25()) {
|
|
166
166
|
tmp_0 = previousStubCardWithMaxIndex;
|
|
167
167
|
} else {
|
|
168
168
|
tmp_0 = null;
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
tmp = tmp_0;
|
|
171
171
|
}
|
|
172
172
|
var tmp3_safe_receiver = tmp;
|
|
173
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
174
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.
|
|
173
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.g25_1;
|
|
174
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.n25(tmp4_safe_receiver, playerIndex, reverse);
|
|
175
175
|
var tmp_1;
|
|
176
176
|
if (tmp5_safe_receiver == null) {
|
|
177
177
|
tmp_1 = null;
|
|
@@ -192,10 +192,10 @@
|
|
|
192
192
|
var index = tmp_2;
|
|
193
193
|
return new GameCard(index);
|
|
194
194
|
};
|
|
195
|
-
protoOf(Companion).
|
|
195
|
+
protoOf(Companion).o25 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
|
|
196
196
|
previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
|
|
197
197
|
reverse = reverse === VOID ? false : reverse;
|
|
198
|
-
return $super === VOID ? this.
|
|
198
|
+
return $super === VOID ? this.h25(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.h25.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
|
|
199
199
|
};
|
|
200
200
|
var Companion_instance;
|
|
201
201
|
function Companion_getInstance() {
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
return tmp;
|
|
250
250
|
}
|
|
251
251
|
function _get_isShirt__vd98rp($this) {
|
|
252
|
-
return $this.
|
|
252
|
+
return $this.g25_1 === 52;
|
|
253
253
|
}
|
|
254
254
|
function CardName(name, ordinal) {
|
|
255
255
|
Enum.call(this, name, ordinal);
|
|
@@ -258,12 +258,12 @@
|
|
|
258
258
|
return getShortName(this);
|
|
259
259
|
};
|
|
260
260
|
function Companion_0() {
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
264
|
-
this.
|
|
261
|
+
this.j25_1 = -1;
|
|
262
|
+
this.k25_1 = 13;
|
|
263
|
+
this.l25_1 = 52;
|
|
264
|
+
this.m25_1 = 53;
|
|
265
265
|
}
|
|
266
|
-
protoOf(Companion_0).
|
|
266
|
+
protoOf(Companion_0).n25 = function (_this__u8e3s4, playerIndex, reverse) {
|
|
267
267
|
var tmp;
|
|
268
268
|
if (reverse) {
|
|
269
269
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -333,56 +333,56 @@
|
|
|
333
333
|
return CardName_STUB_instance;
|
|
334
334
|
}
|
|
335
335
|
function GameCard(index) {
|
|
336
|
-
this.
|
|
336
|
+
this.g25_1 = index;
|
|
337
337
|
}
|
|
338
|
-
protoOf(GameCard).
|
|
338
|
+
protoOf(GameCard).p25 = function () {
|
|
339
339
|
var tmp;
|
|
340
|
-
var containsArg = this.
|
|
340
|
+
var containsArg = this.g25_1;
|
|
341
341
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
342
342
|
tmp = Suit_DIAMOND_getInstance();
|
|
343
343
|
} else {
|
|
344
|
-
if (this.
|
|
344
|
+
if (this.g25_1 <= 26) {
|
|
345
345
|
tmp = Suit_SPADE_getInstance();
|
|
346
346
|
} else {
|
|
347
|
-
if (this.
|
|
347
|
+
if (this.g25_1 <= 39) {
|
|
348
348
|
tmp = Suit_HEART_getInstance();
|
|
349
349
|
} else {
|
|
350
|
-
if (this.
|
|
350
|
+
if (this.g25_1 <= 52) {
|
|
351
351
|
tmp = Suit_CLUB_getInstance();
|
|
352
352
|
} else {
|
|
353
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
353
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.g25_1);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
return tmp;
|
|
359
359
|
};
|
|
360
|
-
protoOf(GameCard).
|
|
360
|
+
protoOf(GameCard).q25 = function () {
|
|
361
361
|
var tmp;
|
|
362
|
-
if (this.
|
|
362
|
+
if (this.i25()) {
|
|
363
363
|
tmp = -1;
|
|
364
364
|
} else {
|
|
365
|
-
tmp = this.
|
|
365
|
+
tmp = this.g25_1 - imul(13, getIndex(this.p25())) | 0;
|
|
366
366
|
}
|
|
367
367
|
return tmp;
|
|
368
368
|
};
|
|
369
369
|
protoOf(GameCard).k2 = function () {
|
|
370
|
-
return this.
|
|
370
|
+
return this.i25() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.q25());
|
|
371
371
|
};
|
|
372
|
-
protoOf(GameCard).
|
|
373
|
-
return this.
|
|
372
|
+
protoOf(GameCard).i25 = function () {
|
|
373
|
+
return this.g25_1 >= 53;
|
|
374
374
|
};
|
|
375
375
|
protoOf(GameCard).toString = function () {
|
|
376
376
|
if (_get_isShirt__vd98rp(this)) {
|
|
377
377
|
return 'GameCard(SHIRT)';
|
|
378
378
|
}
|
|
379
|
-
if (this.
|
|
380
|
-
return 'GameCard(STUB, ' + this.
|
|
379
|
+
if (this.i25()) {
|
|
380
|
+
return 'GameCard(STUB, ' + this.g25_1 + ')';
|
|
381
381
|
}
|
|
382
|
-
return 'GameCard(' + this.
|
|
382
|
+
return 'GameCard(' + this.p25().toString() + this.k2().toString() + ', ' + this.g25_1 + ')';
|
|
383
383
|
};
|
|
384
384
|
protoOf(GameCard).hashCode = function () {
|
|
385
|
-
return this.
|
|
385
|
+
return this.g25_1;
|
|
386
386
|
};
|
|
387
387
|
protoOf(GameCard).equals = function (other) {
|
|
388
388
|
if (this === other)
|
|
@@ -390,12 +390,12 @@
|
|
|
390
390
|
if (!(other instanceof GameCard))
|
|
391
391
|
return false;
|
|
392
392
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
393
|
-
if (!(this.
|
|
393
|
+
if (!(this.g25_1 === tmp0_other_with_cast.g25_1))
|
|
394
394
|
return false;
|
|
395
395
|
return true;
|
|
396
396
|
};
|
|
397
397
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
398
|
-
return $this.
|
|
398
|
+
return $this.r25_1.a2();
|
|
399
399
|
}
|
|
400
400
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
401
401
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -432,13 +432,13 @@
|
|
|
432
432
|
Companion_instance_1 = this;
|
|
433
433
|
var tmp = this;
|
|
434
434
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
435
|
-
tmp.
|
|
435
|
+
tmp.r25_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
436
436
|
}
|
|
437
|
-
protoOf(Companion_1).
|
|
437
|
+
protoOf(Companion_1).o17 = function () {
|
|
438
438
|
return _get_$cachedSerializer__te6jhj(this);
|
|
439
439
|
};
|
|
440
|
-
protoOf(Companion_1).
|
|
441
|
-
return this.
|
|
440
|
+
protoOf(Companion_1).xv = function (typeParamsSerializers) {
|
|
441
|
+
return this.o17();
|
|
442
442
|
};
|
|
443
443
|
var Companion_instance_1;
|
|
444
444
|
function Companion_getInstance_1() {
|
|
@@ -12,49 +12,49 @@
|
|
|
12
12
|
}(function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
16
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.p9;
|
|
16
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.v8;
|
|
17
17
|
var VOID = kotlin_kotlin.$_$.f;
|
|
18
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
19
|
-
var Enum = kotlin_kotlin.$_$.
|
|
20
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
21
|
-
var printStackTrace = kotlin_kotlin.$_$.
|
|
22
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
23
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
24
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
18
|
+
var Unit_instance = kotlin_kotlin.$_$.k4;
|
|
19
|
+
var Enum = kotlin_kotlin.$_$.bc;
|
|
20
|
+
var initMetadataForClass = kotlin_kotlin.$_$.s8;
|
|
21
|
+
var printStackTrace = kotlin_kotlin.$_$.fd;
|
|
22
|
+
var initMetadataForObject = kotlin_kotlin.$_$.x8;
|
|
23
|
+
var isBlank = kotlin_kotlin.$_$.ra;
|
|
24
|
+
var stackTraceToString = kotlin_kotlin.$_$.gd;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.hd;
|
|
26
26
|
//endregion
|
|
27
27
|
//region block: pre-declaration
|
|
28
28
|
function d(tag, message, payload, $super) {
|
|
29
29
|
tag = tag === VOID ? null : tag;
|
|
30
30
|
payload = payload === VOID ? null : payload;
|
|
31
|
-
return this.
|
|
31
|
+
return this.jj(tag, message, payload);
|
|
32
32
|
}
|
|
33
33
|
function e(tag, message, exception, payload, $super) {
|
|
34
34
|
tag = tag === VOID ? null : tag;
|
|
35
35
|
message = message === VOID ? null : message;
|
|
36
36
|
exception = exception === VOID ? null : exception;
|
|
37
37
|
payload = payload === VOID ? null : payload;
|
|
38
|
-
return this.
|
|
38
|
+
return this.kj(tag, message, exception, payload);
|
|
39
39
|
}
|
|
40
40
|
function w(tag, message, exception, payload, $super) {
|
|
41
41
|
tag = tag === VOID ? null : tag;
|
|
42
42
|
message = message === VOID ? null : message;
|
|
43
43
|
exception = exception === VOID ? null : exception;
|
|
44
44
|
payload = payload === VOID ? null : payload;
|
|
45
|
-
return this.
|
|
45
|
+
return this.lj(tag, message, exception, payload);
|
|
46
46
|
}
|
|
47
47
|
function v(tag, message, exception, payload, $super) {
|
|
48
48
|
tag = tag === VOID ? null : tag;
|
|
49
49
|
message = message === VOID ? null : message;
|
|
50
50
|
exception = exception === VOID ? null : exception;
|
|
51
51
|
payload = payload === VOID ? null : payload;
|
|
52
|
-
return this.
|
|
52
|
+
return this.mj(tag, message, exception, payload);
|
|
53
53
|
}
|
|
54
54
|
function i(tag, message, payload, $super) {
|
|
55
55
|
tag = tag === VOID ? null : tag;
|
|
56
56
|
payload = payload === VOID ? null : payload;
|
|
57
|
-
return this.
|
|
57
|
+
return this.nj(tag, message, payload);
|
|
58
58
|
}
|
|
59
59
|
initMetadataForInterface(LoggerOutput, 'LoggerOutput');
|
|
60
60
|
initMetadataForInterface(RaspberryLogger, 'RaspberryLogger', VOID, VOID, [LoggerOutput]);
|
|
@@ -84,17 +84,17 @@
|
|
|
84
84
|
Category_NONE_instance = new Category('NONE', 1, true);
|
|
85
85
|
}
|
|
86
86
|
function generateTag($this, tag) {
|
|
87
|
-
return !($this.
|
|
87
|
+
return !($this.qj_1 == null) && !(tag == null) ? '' + $this.qj_1 + ':' + tag : tag;
|
|
88
88
|
}
|
|
89
89
|
function Category(name, ordinal, isEnabled) {
|
|
90
90
|
Enum.call(this, name, ordinal);
|
|
91
|
-
this.
|
|
91
|
+
this.tj_1 = isEnabled;
|
|
92
92
|
}
|
|
93
93
|
function Logger$loggerSource$1() {
|
|
94
|
-
this.
|
|
94
|
+
this.uj_1 = new PlatformLogger();
|
|
95
95
|
}
|
|
96
|
-
protoOf(Logger$loggerSource$1).
|
|
97
|
-
this.
|
|
96
|
+
protoOf(Logger$loggerSource$1).vj = function (tag, msg, exception) {
|
|
97
|
+
this.uj_1.vj(tag, msg, exception);
|
|
98
98
|
};
|
|
99
99
|
function Category_NONE_getInstance() {
|
|
100
100
|
Category_initEntries();
|
|
@@ -103,31 +103,31 @@
|
|
|
103
103
|
function Logger() {
|
|
104
104
|
Logger_instance = this;
|
|
105
105
|
var tmp = this;
|
|
106
|
-
tmp.
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
106
|
+
tmp.oj_1 = new Logger$loggerSource$1();
|
|
107
|
+
this.pj_1 = true;
|
|
108
|
+
this.qj_1 = null;
|
|
109
109
|
}
|
|
110
|
-
protoOf(Logger).
|
|
111
|
-
if (this.
|
|
110
|
+
protoOf(Logger).wj = function (tag, message, exception, category) {
|
|
111
|
+
if (this.pj_1 && category.tj_1) {
|
|
112
112
|
if (exception == null)
|
|
113
113
|
null;
|
|
114
114
|
else {
|
|
115
115
|
printStackTrace(exception);
|
|
116
116
|
}
|
|
117
|
-
this.
|
|
117
|
+
this.oj_1.vj(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
protoOf(Logger).
|
|
120
|
+
protoOf(Logger).xj = function (tag, message, exception, category, $super) {
|
|
121
121
|
tag = tag === VOID ? null : tag;
|
|
122
122
|
message = message === VOID ? null : message;
|
|
123
123
|
exception = exception === VOID ? null : exception;
|
|
124
124
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
125
125
|
var tmp;
|
|
126
126
|
if ($super === VOID) {
|
|
127
|
-
this.
|
|
127
|
+
this.wj(tag, message, exception, category);
|
|
128
128
|
tmp = Unit_instance;
|
|
129
129
|
} else {
|
|
130
|
-
tmp = $super.
|
|
130
|
+
tmp = $super.wj.call(this, tag, message, exception, category);
|
|
131
131
|
}
|
|
132
132
|
return tmp;
|
|
133
133
|
};
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
}
|
|
161
161
|
function PlatformLogger() {
|
|
162
162
|
}
|
|
163
|
-
protoOf(PlatformLogger).
|
|
163
|
+
protoOf(PlatformLogger).vj = function (tag, msg, exception) {
|
|
164
164
|
if (!(exception == null)) {
|
|
165
165
|
console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString(exception));
|
|
166
166
|
} else {
|