raspberry_games_engine_helpers 1.8.277 → 1.8.289

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main": "Logic_Debertz-engine.js",
3
3
  "types": "Logic_Debertz-engine.d.ts",
4
- "version": "1.8.277",
4
+ "version": "1.8.289",
5
5
  "name": "raspberry_games_engine_helpers",
6
6
  "dependencies": {
7
7
  "@js-joda/core": "3.2.0",
@@ -46,7 +46,7 @@
46
46
  function CoreConfig() {
47
47
  this.version = '0.0.39';
48
48
  }
49
- protoOf(CoreConfig).e25 = function () {
49
+ protoOf(CoreConfig).p25 = 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).f25 = function (a, b) {
59
- return a.g25_1 - b.g25_1 | 0;
58
+ protoOf(CardIndexComparator).q25 = function (a, b) {
59
+ return a.r25_1 - b.r25_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.f25(tmp, b instanceof GameCard ? b : THROW_CCE());
63
+ return this.q25(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).h25 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
156
+ protoOf(Companion).s25 = 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.i25()) {
165
+ if (previousStubCardWithMaxIndex.t25()) {
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.g25_1;
174
- var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.n25(tmp4_safe_receiver, playerIndex, reverse);
173
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r25_1;
174
+ var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.y25(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).o25 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
195
+ protoOf(Companion).z25 = 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.h25(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.h25.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
198
+ return $super === VOID ? this.s25(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.s25.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.g25_1 === 52;
252
+ return $this.r25_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.j25_1 = -1;
262
- this.k25_1 = 13;
263
- this.l25_1 = 52;
264
- this.m25_1 = 53;
261
+ this.u25_1 = -1;
262
+ this.v25_1 = 13;
263
+ this.w25_1 = 52;
264
+ this.x25_1 = 53;
265
265
  }
266
- protoOf(Companion_0).n25 = function (_this__u8e3s4, playerIndex, reverse) {
266
+ protoOf(Companion_0).y25 = 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.g25_1 = index;
336
+ this.r25_1 = index;
337
337
  }
338
- protoOf(GameCard).p25 = function () {
338
+ protoOf(GameCard).a26 = function () {
339
339
  var tmp;
340
- var containsArg = this.g25_1;
340
+ var containsArg = this.r25_1;
341
341
  if (0 <= containsArg ? containsArg <= 13 : false) {
342
342
  tmp = Suit_DIAMOND_getInstance();
343
343
  } else {
344
- if (this.g25_1 <= 26) {
344
+ if (this.r25_1 <= 26) {
345
345
  tmp = Suit_SPADE_getInstance();
346
346
  } else {
347
- if (this.g25_1 <= 39) {
347
+ if (this.r25_1 <= 39) {
348
348
  tmp = Suit_HEART_getInstance();
349
349
  } else {
350
- if (this.g25_1 <= 52) {
350
+ if (this.r25_1 <= 52) {
351
351
  tmp = Suit_CLUB_getInstance();
352
352
  } else {
353
- throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.g25_1);
353
+ throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.r25_1);
354
354
  }
355
355
  }
356
356
  }
357
357
  }
358
358
  return tmp;
359
359
  };
360
- protoOf(GameCard).q25 = function () {
360
+ protoOf(GameCard).b26 = function () {
361
361
  var tmp;
362
- if (this.i25()) {
362
+ if (this.t25()) {
363
363
  tmp = -1;
364
364
  } else {
365
- tmp = this.g25_1 - imul(13, getIndex(this.p25())) | 0;
365
+ tmp = this.r25_1 - imul(13, getIndex(this.a26())) | 0;
366
366
  }
367
367
  return tmp;
368
368
  };
369
369
  protoOf(GameCard).k2 = function () {
370
- return this.i25() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.q25());
370
+ return this.t25() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.b26());
371
371
  };
372
- protoOf(GameCard).i25 = function () {
373
- return this.g25_1 >= 53;
372
+ protoOf(GameCard).t25 = function () {
373
+ return this.r25_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.i25()) {
380
- return 'GameCard(STUB, ' + this.g25_1 + ')';
379
+ if (this.t25()) {
380
+ return 'GameCard(STUB, ' + this.r25_1 + ')';
381
381
  }
382
- return 'GameCard(' + this.p25().toString() + this.k2().toString() + ', ' + this.g25_1 + ')';
382
+ return 'GameCard(' + this.a26().toString() + this.k2().toString() + ', ' + this.r25_1 + ')';
383
383
  };
384
384
  protoOf(GameCard).hashCode = function () {
385
- return this.g25_1;
385
+ return this.r25_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.g25_1 === tmp0_other_with_cast.g25_1))
393
+ if (!(this.r25_1 === tmp0_other_with_cast.r25_1))
394
394
  return false;
395
395
  return true;
396
396
  };
397
397
  function _get_$cachedSerializer__te6jhj($this) {
398
- return $this.r25_1.a2();
398
+ return $this.c26_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.r25_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
435
+ tmp.c26_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
436
436
  }
437
- protoOf(Companion_1).o17 = function () {
437
+ protoOf(Companion_1).z17 = function () {
438
438
  return _get_$cachedSerializer__te6jhj(this);
439
439
  };
440
- protoOf(Companion_1).xv = function (typeParamsSerializers) {
441
- return this.o17();
440
+ protoOf(Companion_1).iw = function (typeParamsSerializers) {
441
+ return this.z17();
442
442
  };
443
443
  var Companion_instance_1;
444
444
  function Companion_getInstance_1() {
@@ -13,62 +13,157 @@
13
13
  'use strict';
14
14
  //region block: imports
15
15
  var protoOf = kotlin_kotlin.$_$.q9;
16
- var initMetadataForInterface = kotlin_kotlin.$_$.w8;
17
- var VOID = kotlin_kotlin.$_$.f;
16
+ var initMetadataForCompanion = kotlin_kotlin.$_$.u8;
18
17
  var Unit_instance = kotlin_kotlin.$_$.k4;
19
- var Enum = kotlin_kotlin.$_$.cc;
20
18
  var initMetadataForClass = kotlin_kotlin.$_$.t8;
19
+ var VOID = kotlin_kotlin.$_$.f;
20
+ var initMetadataForInterface = kotlin_kotlin.$_$.w8;
21
+ var defineProp = kotlin_kotlin.$_$.l8;
22
+ var Enum = kotlin_kotlin.$_$.cc;
21
23
  var printStackTrace = kotlin_kotlin.$_$.gd;
22
24
  var initMetadataForObject = kotlin_kotlin.$_$.y8;
23
25
  var isBlank = kotlin_kotlin.$_$.sa;
24
26
  var stackTraceToString = kotlin_kotlin.$_$.hd;
25
27
  var toString = kotlin_kotlin.$_$.id;
28
+ var toString_0 = kotlin_kotlin.$_$.u9;
26
29
  //endregion
27
30
  //region block: pre-declaration
31
+ initMetadataForCompanion(Companion);
28
32
  function d(tag, message, payload, $super) {
29
33
  tag = tag === VOID ? null : tag;
30
34
  payload = payload === VOID ? null : payload;
31
- return this.jj(tag, message, payload);
35
+ return this.ij(tag, message, payload);
32
36
  }
33
37
  function e(tag, message, exception, payload, $super) {
34
38
  tag = tag === VOID ? null : tag;
35
39
  message = message === VOID ? null : message;
36
40
  exception = exception === VOID ? null : exception;
37
41
  payload = payload === VOID ? null : payload;
38
- return this.kj(tag, message, exception, payload);
42
+ return this.jj(tag, message, exception, payload);
39
43
  }
40
44
  function w(tag, message, exception, payload, $super) {
41
45
  tag = tag === VOID ? null : tag;
42
46
  message = message === VOID ? null : message;
43
47
  exception = exception === VOID ? null : exception;
44
48
  payload = payload === VOID ? null : payload;
45
- return this.lj(tag, message, exception, payload);
49
+ return this.kj(tag, message, exception, payload);
46
50
  }
47
51
  function v(tag, message, exception, payload, $super) {
48
52
  tag = tag === VOID ? null : tag;
49
53
  message = message === VOID ? null : message;
50
54
  exception = exception === VOID ? null : exception;
51
55
  payload = payload === VOID ? null : payload;
52
- return this.mj(tag, message, exception, payload);
56
+ return this.lj(tag, message, exception, payload);
53
57
  }
54
58
  function i(tag, message, payload, $super) {
55
59
  tag = tag === VOID ? null : tag;
56
60
  payload = payload === VOID ? null : payload;
57
- return this.nj(tag, message, payload);
61
+ return this.mj(tag, message, payload);
58
62
  }
59
63
  initMetadataForInterface(LoggerOutput, 'LoggerOutput');
60
64
  initMetadataForInterface(RaspberryLogger, 'RaspberryLogger', VOID, VOID, [LoggerOutput]);
65
+ initMetadataForClass(CombinedRaspberryLogger, 'CombinedRaspberryLogger', VOID, VOID, [RaspberryLogger]);
61
66
  initMetadataForInterface(LoggerEnabledTrigger, 'LoggerEnabledTrigger', VOID, VOID, [RaspberryLogger]);
62
67
  initMetadataForInterface(LoggerPayload, 'LoggerPayload');
68
+ initMetadataForClass(PlatformRaspberryLogger, 'PlatformRaspberryLogger', PlatformRaspberryLogger, VOID, [RaspberryLogger, LoggerEnabledTrigger]);
63
69
  initMetadataForClass(Category, 'Category', VOID, Enum);
64
70
  initMetadataForClass(Logger$loggerSource$1);
65
71
  initMetadataForObject(Logger, 'Logger');
66
72
  initMetadataForClass(PlatformLogger, 'PlatformLogger', PlatformLogger);
67
73
  //endregion
74
+ function Companion() {
75
+ }
76
+ var Companion_instance;
77
+ function Companion_getInstance() {
78
+ return Companion_instance;
79
+ }
80
+ function CombinedRaspberryLogger(logOutputs) {
81
+ this.hj_1 = logOutputs;
82
+ }
83
+ protoOf(CombinedRaspberryLogger).ij = function (tag, message, payload) {
84
+ // Inline function 'kotlin.collections.forEach' call
85
+ var tmp0_iterator = this.hj_1.j();
86
+ while (tmp0_iterator.k()) {
87
+ var element = tmp0_iterator.l();
88
+ // Inline function 'games.raspberry.logger.CombinedRaspberryLogger.d.<anonymous>' call
89
+ element.d(tag, message, payload);
90
+ }
91
+ };
92
+ protoOf(CombinedRaspberryLogger).jj = function (tag, message, exception, payload) {
93
+ // Inline function 'kotlin.collections.forEach' call
94
+ var tmp0_iterator = this.hj_1.j();
95
+ while (tmp0_iterator.k()) {
96
+ var element = tmp0_iterator.l();
97
+ // Inline function 'games.raspberry.logger.CombinedRaspberryLogger.e.<anonymous>' call
98
+ element.e(tag, message, exception, payload);
99
+ }
100
+ };
101
+ protoOf(CombinedRaspberryLogger).kj = function (tag, message, exception, payload) {
102
+ // Inline function 'kotlin.collections.forEach' call
103
+ var tmp0_iterator = this.hj_1.j();
104
+ while (tmp0_iterator.k()) {
105
+ var element = tmp0_iterator.l();
106
+ // Inline function 'games.raspberry.logger.CombinedRaspberryLogger.w.<anonymous>' call
107
+ element.w(tag, message, exception, payload);
108
+ }
109
+ };
110
+ protoOf(CombinedRaspberryLogger).lj = function (tag, message, exception, payload) {
111
+ // Inline function 'kotlin.collections.forEach' call
112
+ var tmp0_iterator = this.hj_1.j();
113
+ while (tmp0_iterator.k()) {
114
+ var element = tmp0_iterator.l();
115
+ // Inline function 'games.raspberry.logger.CombinedRaspberryLogger.v.<anonymous>' call
116
+ element.v(tag, message, exception, payload);
117
+ }
118
+ };
119
+ protoOf(CombinedRaspberryLogger).mj = function (tag, message, payload) {
120
+ // Inline function 'kotlin.collections.forEach' call
121
+ var tmp0_iterator = this.hj_1.j();
122
+ while (tmp0_iterator.k()) {
123
+ var element = tmp0_iterator.l();
124
+ // Inline function 'games.raspberry.logger.CombinedRaspberryLogger.i.<anonymous>' call
125
+ element.i(tag, message, payload);
126
+ }
127
+ };
68
128
  function LoggerEnabledTrigger() {
69
129
  }
70
130
  function LoggerPayload() {
71
131
  }
132
+ function PlatformRaspberryLogger(enabled) {
133
+ enabled = enabled === VOID ? true : enabled;
134
+ this.pj_1 = enabled;
135
+ }
136
+ protoOf(PlatformRaspberryLogger).nj = function (_set____db54di) {
137
+ this.pj_1 = _set____db54di;
138
+ };
139
+ protoOf(PlatformRaspberryLogger).oj = function () {
140
+ return this.pj_1;
141
+ };
142
+ protoOf(PlatformRaspberryLogger).ij = function (tag, message, payload) {
143
+ if (!this.pj_1)
144
+ return Unit_instance;
145
+ Logger_getInstance().tj(tag, message);
146
+ };
147
+ protoOf(PlatformRaspberryLogger).jj = function (tag, message, exception, payload) {
148
+ if (!this.pj_1)
149
+ return Unit_instance;
150
+ Logger_getInstance().uj(tag, message, exception);
151
+ };
152
+ protoOf(PlatformRaspberryLogger).kj = function (tag, message, exception, payload) {
153
+ if (!this.pj_1)
154
+ return Unit_instance;
155
+ Logger_getInstance().vj(tag, message, exception);
156
+ };
157
+ protoOf(PlatformRaspberryLogger).lj = function (tag, message, exception, payload) {
158
+ if (!this.pj_1)
159
+ return Unit_instance;
160
+ Logger_getInstance().wj(tag, message, exception);
161
+ };
162
+ protoOf(PlatformRaspberryLogger).mj = function (tag, message, payload) {
163
+ if (!this.pj_1)
164
+ return Unit_instance;
165
+ Logger_getInstance().wj(tag, message);
166
+ };
72
167
  function RaspberryLogger() {
73
168
  }
74
169
  function LoggerOutput() {
@@ -84,17 +179,26 @@
84
179
  Category_NONE_instance = new Category('NONE', 1, true);
85
180
  }
86
181
  function generateTag($this, tag) {
87
- return !($this.qj_1 == null) && !(tag == null) ? '' + $this.qj_1 + ':' + tag : tag;
182
+ return !($this.sj_1 == null) && !(tag == null) ? '' + $this.sj_1 + ':' + tag : tag;
88
183
  }
89
184
  function Category(name, ordinal, isEnabled) {
90
185
  Enum.call(this, name, ordinal);
91
- this.tj_1 = isEnabled;
186
+ this.zj_1 = isEnabled;
92
187
  }
93
188
  function Logger$loggerSource$1() {
94
- this.uj_1 = new PlatformLogger();
189
+ this.ak_1 = new PlatformLogger();
95
190
  }
96
- protoOf(Logger$loggerSource$1).vj = function (tag, msg, exception) {
97
- this.uj_1.vj(tag, msg, exception);
191
+ protoOf(Logger$loggerSource$1).bk = function (tag, msg) {
192
+ this.ak_1.bk(tag, msg);
193
+ };
194
+ protoOf(Logger$loggerSource$1).ck = function (tag, msg, exception) {
195
+ this.ak_1.ck(tag, msg, exception);
196
+ };
197
+ protoOf(Logger$loggerSource$1).dk = function (tag, msg, exception) {
198
+ this.ak_1.dk(tag, msg, exception);
199
+ };
200
+ protoOf(Logger$loggerSource$1).ek = function (tag, msg, exception) {
201
+ this.ak_1.ek(tag, msg, exception);
98
202
  };
99
203
  function Category_NONE_getInstance() {
100
204
  Category_initEntries();
@@ -103,31 +207,82 @@
103
207
  function Logger() {
104
208
  Logger_instance = this;
105
209
  var tmp = this;
106
- tmp.oj_1 = new Logger$loggerSource$1();
107
- this.pj_1 = true;
108
- this.qj_1 = null;
210
+ tmp.qj_1 = new Logger$loggerSource$1();
211
+ this.rj_1 = true;
212
+ this.sj_1 = null;
109
213
  }
110
- protoOf(Logger).wj = function (tag, message, exception, category) {
111
- if (this.pj_1 && category.tj_1) {
214
+ protoOf(Logger).tj = function (tag, message) {
215
+ this.fk(tag, message, Category_NONE_getInstance());
216
+ };
217
+ protoOf(Logger).gk = function (tag, message, exception, category) {
218
+ if (this.rj_1 && category.zj_1) {
112
219
  if (exception == null)
113
220
  null;
114
221
  else {
115
222
  printStackTrace(exception);
116
223
  }
117
- this.oj_1.vj(generateTag(this, tag), generateMsg(message, exception), exception);
224
+ this.qj_1.dk(generateTag(this, tag), generateMsg(message, exception), exception);
225
+ }
226
+ };
227
+ protoOf(Logger).vj = function (tag, message, exception, category, $super) {
228
+ tag = tag === VOID ? null : tag;
229
+ message = message === VOID ? null : message;
230
+ exception = exception === VOID ? null : exception;
231
+ category = category === VOID ? Category_NONE_getInstance() : category;
232
+ var tmp;
233
+ if ($super === VOID) {
234
+ this.gk(tag, message, exception, category);
235
+ tmp = Unit_instance;
236
+ } else {
237
+ tmp = $super.gk.call(this, tag, message, exception, category);
238
+ }
239
+ return tmp;
240
+ };
241
+ protoOf(Logger).fk = function (tag, message, category) {
242
+ if (this.rj_1 && category.zj_1) {
243
+ this.qj_1.bk(generateTag(this, tag), message);
244
+ }
245
+ };
246
+ protoOf(Logger).hk = function (tag, message, exception, category) {
247
+ if (this.rj_1 && category.zj_1) {
248
+ this.qj_1.ek(generateTag(this, tag), generateMsg(message, exception), exception);
118
249
  }
119
250
  };
120
- protoOf(Logger).xj = function (tag, message, exception, category, $super) {
251
+ protoOf(Logger).wj = function (tag, message, exception, category, $super) {
121
252
  tag = tag === VOID ? null : tag;
122
253
  message = message === VOID ? null : message;
123
254
  exception = exception === VOID ? null : exception;
124
255
  category = category === VOID ? Category_NONE_getInstance() : category;
125
256
  var tmp;
126
257
  if ($super === VOID) {
127
- this.wj(tag, message, exception, category);
258
+ this.hk(tag, message, exception, category);
128
259
  tmp = Unit_instance;
129
260
  } else {
130
- tmp = $super.wj.call(this, tag, message, exception, category);
261
+ tmp = $super.hk.call(this, tag, message, exception, category);
262
+ }
263
+ return tmp;
264
+ };
265
+ protoOf(Logger).ik = function (tag, message, exception, category) {
266
+ if (this.rj_1 && category.zj_1) {
267
+ if (exception == null)
268
+ null;
269
+ else {
270
+ printStackTrace(exception);
271
+ }
272
+ this.qj_1.ck(generateTag(this, tag), generateMsg(message, exception), exception);
273
+ }
274
+ };
275
+ protoOf(Logger).uj = function (tag, message, exception, category, $super) {
276
+ tag = tag === VOID ? null : tag;
277
+ message = message === VOID ? null : message;
278
+ exception = exception === VOID ? null : exception;
279
+ category = category === VOID ? Category_NONE_getInstance() : category;
280
+ var tmp;
281
+ if ($super === VOID) {
282
+ this.ik(tag, message, exception, category);
283
+ tmp = Unit_instance;
284
+ } else {
285
+ tmp = $super.ik.call(this, tag, message, exception, category);
131
286
  }
132
287
  return tmp;
133
288
  };
@@ -160,13 +315,46 @@
160
315
  }
161
316
  function PlatformLogger() {
162
317
  }
163
- protoOf(PlatformLogger).vj = function (tag, msg, exception) {
318
+ protoOf(PlatformLogger).bk = function (tag, msg) {
319
+ console.log('D:' + getLogTag(tag) + ': ' + msg);
320
+ };
321
+ protoOf(PlatformLogger).ck = function (tag, msg, exception) {
164
322
  if (!(exception == null)) {
165
323
  console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString(exception));
166
324
  } else {
167
325
  console.error(getLogTag(tag) + ': ' + msg);
168
326
  }
169
327
  };
328
+ protoOf(PlatformLogger).dk = function (tag, msg, exception) {
329
+ var tmp = console;
330
+ var tmp_0 = getLogTag(tag);
331
+ tmp.warn(tmp_0 + ': ' + msg + ' ' + toString_0(exception == null ? '' : exception));
332
+ };
333
+ protoOf(PlatformLogger).ek = function (tag, msg, exception) {
334
+ var tmp = console;
335
+ var tmp_0 = getLogTag(tag);
336
+ tmp.log('V:' + tmp_0 + ': ' + msg + ' ' + toString_0(exception == null ? '' : exception));
337
+ };
338
+ //region block: post-declaration
339
+ protoOf(CombinedRaspberryLogger).d = d;
340
+ protoOf(CombinedRaspberryLogger).e = e;
341
+ protoOf(CombinedRaspberryLogger).w = w;
342
+ protoOf(CombinedRaspberryLogger).v = v;
343
+ protoOf(CombinedRaspberryLogger).i = i;
344
+ protoOf(PlatformRaspberryLogger).d = d;
345
+ protoOf(PlatformRaspberryLogger).e = e;
346
+ protoOf(PlatformRaspberryLogger).w = w;
347
+ protoOf(PlatformRaspberryLogger).v = v;
348
+ protoOf(PlatformRaspberryLogger).i = i;
349
+ defineProp(protoOf(PlatformRaspberryLogger), 'enabled', function () {
350
+ return this.oj();
351
+ }, function (value) {
352
+ this.nj(value);
353
+ });
354
+ //endregion
355
+ //region block: init
356
+ Companion_instance = new Companion();
357
+ //endregion
170
358
  //region block: exports
171
359
  function $jsExportAll$(_) {
172
360
  var $games = _.games || (_.games = {});
@@ -187,9 +375,18 @@
187
375
  _.$jsExportAll$ = $jsExportAll$;
188
376
  _.$_$ = _.$_$ || {};
189
377
  _.$_$.a = LoggerOutput;
190
- _.$_$.b = LoggerEnabledTrigger;
191
- _.$_$.c = LoggerPayload;
192
- _.$_$.d = Logger_getInstance;
378
+ _.$_$.b = generateMsg;
379
+ _.$_$.c = CombinedRaspberryLogger;
380
+ _.$_$.d = LoggerEnabledTrigger;
381
+ _.$_$.e = LoggerPayload;
382
+ _.$_$.f = PlatformRaspberryLogger;
383
+ _.$_$.g = RaspberryLogger;
384
+ _.$_$.h = d;
385
+ _.$_$.i = e;
386
+ _.$_$.j = i;
387
+ _.$_$.k = v;
388
+ _.$_$.l = w;
389
+ _.$_$.m = Logger_getInstance;
193
390
  //endregion
194
391
  return _;
195
392
  }));
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../raspberry-cardgame-core/logger/src/commonMain/kotlin/games/raspberry/logger/output/LoggerOutput.kt","../../../../../../../../raspberry-cardgame-core/logger/src/commonMain/kotlin/games/raspberry/logger/platform/PlatformLogger.kt","src/kotlin/text/Strings.kt","../../../../../../../../raspberry-cardgame-core/logger/src/jsMain/kotlin/games/raspberry/logger/platform/PlatformLogger.js.kt"],"sourcesContent":[null,null,null,null],"names":["d$default","tag","message","payload","e$default","exception","w$default","v$default","i$default","generateTag","<init>","isEnabled","logError","msg","e","category","generateMsg","logMessage","getLogTag"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;YAMIA,CAAMC,G,EAAqBC,O,EAAiBC,O,QAA5CH,E;yBAAqB,I;iCAAuC,I;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q,QAJJX,E;yBACmB,I;iCACI,I;qCACK,I;;;;;;;;;;G;;;;;;;sBA0BhCY,CAAgBH,G,EAAcR,SAA9BW,EAA6D;A,QACzDC,aAAiB,E;;;IACb,MC7BN,GAkPS,IAAQ,IDrNX,ICqNwB,QAlP9B,GAkP8B,CDrNxB,E,CAAsB;A,MACtB,0BAAc,G;IAClB,C;IACI,mBAAa,IAAb,E,CAAmB;A,gBACnB,U;;UCiOsC,iBA7PnC,SA6PmC,CA5P1C,O;MD2BI,oBAAe,cAAf,ICiOsC,yBAAQ,EAAR,iBDjOtC,IAAyD,gBAAzD,GAAmF,mBAAV,SAAU,CAAnF,C;IACJ,C;IACI,IAAW,QAAX,UAAW,CAAX,C,CAAsB;A,MACtB,aAAa,e;IACjB,C;IACA,OAAO,U;EACX,C;oBAhBAC,CAAcjB,GAAdiB,EAAoC;A,IAChC,OAAW,SAAO,IAAP,IAAc,GAAd,GAAgB,GAAhB,GAAmB,GAAnB,GAA2B,E;EAC1C,C;yBEjH4BR,CAAAA,EAAA;A,EAAA,C;wCAKxBE,CAAoBX,G,EAAcY,G,EAAaR,SAA/CO,EAAsE;A,IAC9D,mBAAa,IAAb,E,CAAmB;A,MACnB,OAAQ,OAAS,UAAU,GAAV,CAAT,GAAwB,IAAxB,GAA2B,GAA3B,GAA8B,eAA9B,YAA4C,SAA5C,E;IACZ,C,MAAO;A,MACH,OAAQ,OAAS,UAAU,GAAV,CAAT,GAAwB,IAAxB,GAA2B,GAA3B,C;IACZ,C;EACJ,C;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"sources":["../../../../../../../../raspberry-cardgame-core/logger/src/commonMain/kotlin/games/raspberry/logger/output/LoggerOutput.kt","../../../../../../../../raspberry-cardgame-core/logger/src/commonMain/kotlin/games/raspberry/logger/CombinedRaspberryLogger.kt","common/src/generated/_Collections.kt","../../../../../../../../raspberry-cardgame-core/logger/src/commonMain/kotlin/games/raspberry/logger/PlatformRaspberryLogger.kt","../../../../../../../../raspberry-cardgame-core/logger/src/commonMain/kotlin/games/raspberry/logger/platform/PlatformLogger.kt","src/kotlin/text/Strings.kt","../../../../../../../../raspberry-cardgame-core/logger/src/jsMain/kotlin/games/raspberry/logger/platform/PlatformLogger.js.kt"],"sourcesContent":[null,null,null,null,null,null,null],"names":["d$default","tag","message","payload","e$default","exception","w$default","v$default","i$default","<init>","logOutputs","d","element","e","w","v","i","enabled","<set-enabled>","<set-?>","<get-enabled>","generateTag","isEnabled","logDebug","msg","logError","logWarning","logVerbose","category","generateMsg","logMessage","getLogTag"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAMIA,CAAMC,G,EAAqBC,O,EAAiBC,O,QAA5CH,E;yBAAqB,I;iCAAuC,I;;G;YAE5DI,CAAMH,G,EAAqBC,O,EAAyBG,S,EAA8BF,O,QAAlFC,E;yBAAqB,I;iCAAyB,I;qCAA8B,I;iCAAsB,I;;G;YAElGE,CAAML,G,EAAqBC,O,EAAyBG,S,EAA8BF,O,QAAlFG,E;yBAAqB,I;iCAAyB,I;qCAA8B,I;iCAAsB,I;;G;YAElGC,CAAMN,G,EAAqBC,O,EAAyBG,S,EAA8BF,O,QAAlFI,E;yBAAqB,I;iCAAyB,I;qCAA8B,I;iCAAsB,I;;G;YAElGC,CAAMP,G,EAAqBC,O,EAAiBC,O,QAA5CK,E;yBAAqB,I;iCAAuC,I;;G;;;;;;;;;;;;oBC4B5DC,CAAAA,EAAA;A,EAAA,C;;;;;kCAtCyBA,CACzBC,UADyBD,EAAA;A,IACzB,sB;EADyB,C;iDAQzBE,CAAeV,G,EAAcC,O,EAAiBC,OAA9CQ,EAA6D;A;QC0zD7C,gBA3zDO,IA2zDP,CA3zDO,IA2zDP,I;WAAA,iB,EAAhB;A,UAAKC,UAAW,iB;;MDlxDgk3D,OAtCrk3D,GAAE,GAAF,EAAO,OAAP,EAAgB,OAAhB,C;ICwzDyB,C;EDtzDpC,C;iDAEAC,CAAeZ,G,EAAcC,O,EAAk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