client_plugin_logic_deb 1.8.430 → 1.8.432
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 +58 -58
- package/Kosi-Kodein-kodein-di.js +523 -523
- package/Kotlin-DateTime-library-kotlinx-datetime.js +151 -151
- package/Logic_Debertz-ai_module.js +235 -235
- package/Logic_Debertz-client_plugin.d.ts +5 -0
- package/Logic_Debertz-client_plugin.js +3090 -3090
- package/Logic_Debertz-core.js +682 -682
- package/Logic_Debertz-engine.js +14223 -14151
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +8869 -8869
- package/Logic_Debertz-game_server.js +1175 -1174
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +552 -546
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2488 -2488
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +314 -314
- package/kotlinx-serialization-kotlinx-serialization-core.js +1739 -1739
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1316 -1316
- package/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1442 -1442
- package/ktor-ktor-client-logging.js +265 -265
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +590 -590
- package/ktor-ktor-io.js +1241 -1241
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +132 -132
- package/ktor-ktor-serialization.js +61 -61
- package/ktor-ktor-utils.js +483 -483
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/random-library-crypto-rand.js +1 -1
- package/random-library-secure-random.js +2 -2
- package/raspberry-cardgame-lib-core.js +7 -7
- package/raspberry-cardgame-lib-logger.js +90 -90
- package/raspberry-cardgame-lib-random.js +794 -794
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +12 -12
|
@@ -107,32 +107,32 @@
|
|
|
107
107
|
}
|
|
108
108
|
var DefaultCommonIgnoredTypes;
|
|
109
109
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
110
|
+
this.s5c_1 = converter;
|
|
111
|
+
this.t5c_1 = contentTypeToSend;
|
|
112
|
+
this.u5c_1 = contentTypeMatcher;
|
|
113
113
|
}
|
|
114
114
|
function defaultMatcher($this, pattern) {
|
|
115
115
|
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
116
116
|
}
|
|
117
117
|
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
118
|
-
this.
|
|
118
|
+
this.v5c_1 = $pattern;
|
|
119
119
|
}
|
|
120
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
121
|
-
return contentType.
|
|
120
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).w5c = function (contentType) {
|
|
121
|
+
return contentType.o3i(this.v5c_1);
|
|
122
122
|
};
|
|
123
123
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
124
|
-
this.
|
|
124
|
+
this.f5d_1 = $plugin;
|
|
125
125
|
CoroutineImpl.call(this, resultContinuation);
|
|
126
126
|
}
|
|
127
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
128
|
-
var tmp = this.
|
|
127
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).l3u = function ($this$intercept, it, $completion) {
|
|
128
|
+
var tmp = this.m3u($this$intercept, it, $completion);
|
|
129
129
|
tmp.u8_1 = Unit_instance;
|
|
130
130
|
tmp.v8_1 = null;
|
|
131
131
|
return tmp.a9();
|
|
132
132
|
};
|
|
133
133
|
protoOf(ContentNegotiation$Plugin$install$slambda).j9 = function (p1, p2, $completion) {
|
|
134
134
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
135
|
-
return this.
|
|
135
|
+
return this.l3u(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
136
136
|
};
|
|
137
137
|
protoOf(ContentNegotiation$Plugin$install$slambda).a9 = function () {
|
|
138
138
|
var suspendResult = this.u8_1;
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
case 0:
|
|
144
144
|
this.t8_1 = 3;
|
|
145
145
|
this.s8_1 = 1;
|
|
146
|
-
suspendResult = this.
|
|
146
|
+
suspendResult = this.f5d_1.k5d(this.g5d_1.u3f_1, this.g5d_1.x3e(), this);
|
|
147
147
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
148
148
|
return suspendResult;
|
|
149
149
|
}
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
|
|
161
161
|
var result = tmp_0;
|
|
162
162
|
this.s8_1 = 2;
|
|
163
|
-
suspendResult = this.
|
|
163
|
+
suspendResult = this.g5d_1.y3e(result, this);
|
|
164
164
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
165
165
|
return suspendResult;
|
|
166
166
|
}
|
|
@@ -182,33 +182,33 @@
|
|
|
182
182
|
}
|
|
183
183
|
while (true);
|
|
184
184
|
};
|
|
185
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
186
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
187
|
-
i.
|
|
188
|
-
i.
|
|
185
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).m3u = function ($this$intercept, it, completion) {
|
|
186
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.f5d_1, completion);
|
|
187
|
+
i.g5d_1 = $this$intercept;
|
|
188
|
+
i.h5d_1 = it;
|
|
189
189
|
return i;
|
|
190
190
|
};
|
|
191
191
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
192
192
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
193
193
|
var l = function ($this$intercept, it, $completion) {
|
|
194
|
-
return i.
|
|
194
|
+
return i.l3u($this$intercept, it, $completion);
|
|
195
195
|
};
|
|
196
196
|
l.$arity = 2;
|
|
197
197
|
return l;
|
|
198
198
|
}
|
|
199
199
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
200
|
-
this.
|
|
200
|
+
this.t5d_1 = $plugin;
|
|
201
201
|
CoroutineImpl.call(this, resultContinuation);
|
|
202
202
|
}
|
|
203
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
204
|
-
var tmp = this.
|
|
203
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).f3v = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
204
|
+
var tmp = this.g3v($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
205
205
|
tmp.u8_1 = Unit_instance;
|
|
206
206
|
tmp.v8_1 = null;
|
|
207
207
|
return tmp.a9();
|
|
208
208
|
};
|
|
209
209
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).j9 = function (p1, p2, $completion) {
|
|
210
210
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
211
|
-
return this.
|
|
211
|
+
return this.f3v(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
212
212
|
};
|
|
213
213
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).a9 = function () {
|
|
214
214
|
var suspendResult = this.u8_1;
|
|
@@ -218,22 +218,22 @@
|
|
|
218
218
|
switch (tmp) {
|
|
219
219
|
case 0:
|
|
220
220
|
this.t8_1 = 3;
|
|
221
|
-
this.
|
|
222
|
-
var body = this.
|
|
223
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
221
|
+
this.w5d_1 = this.v5d_1.oe();
|
|
222
|
+
var body = this.v5d_1.pe();
|
|
223
|
+
var tmp0_elvis_lhs = contentType(this.u5d_1.u3f_1.s3u());
|
|
224
224
|
var tmp_0;
|
|
225
225
|
if (tmp0_elvis_lhs == null) {
|
|
226
|
-
this.
|
|
227
|
-
get_LOGGER().
|
|
226
|
+
this.u5d_1;
|
|
227
|
+
get_LOGGER().q3g('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
228
228
|
return Unit_instance;
|
|
229
229
|
} else {
|
|
230
230
|
tmp_0 = tmp0_elvis_lhs;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
var contentType_0 = tmp_0;
|
|
234
|
-
var charset = suitableCharset(this.
|
|
234
|
+
var charset = suitableCharset(this.u5d_1.u3f_1.y3x().w3m());
|
|
235
235
|
this.s8_1 = 1;
|
|
236
|
-
suspendResult = this.
|
|
236
|
+
suspendResult = this.t5d_1.x5d(this.u5d_1.u3f_1.y3x().b3y(), this.w5d_1, body, contentType_0, charset, this);
|
|
237
237
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
238
238
|
return suspendResult;
|
|
239
239
|
}
|
|
@@ -249,9 +249,9 @@
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
var deserializedBody = tmp_1;
|
|
252
|
-
var result = new HttpResponseContainer(this.
|
|
252
|
+
var result = new HttpResponseContainer(this.w5d_1, deserializedBody);
|
|
253
253
|
this.s8_1 = 2;
|
|
254
|
-
suspendResult = this.
|
|
254
|
+
suspendResult = this.u5d_1.y3e(result, this);
|
|
255
255
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
256
256
|
return suspendResult;
|
|
257
257
|
}
|
|
@@ -273,61 +273,61 @@
|
|
|
273
273
|
}
|
|
274
274
|
while (true);
|
|
275
275
|
};
|
|
276
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
277
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
278
|
-
i.
|
|
279
|
-
i.
|
|
276
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).g3v = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
277
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.t5d_1, completion);
|
|
278
|
+
i.u5d_1 = $this$intercept;
|
|
279
|
+
i.v5d_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
280
280
|
return i;
|
|
281
281
|
};
|
|
282
282
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
283
283
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
284
284
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
285
|
-
return i.
|
|
285
|
+
return i.f3v($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
286
286
|
};
|
|
287
287
|
l.$arity = 2;
|
|
288
288
|
return l;
|
|
289
289
|
}
|
|
290
290
|
function Config() {
|
|
291
|
-
this.
|
|
291
|
+
this.y5d_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
292
292
|
var tmp = this;
|
|
293
293
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
294
|
-
tmp.
|
|
294
|
+
tmp.z5d_1 = ArrayList_init_$Create$();
|
|
295
295
|
}
|
|
296
|
-
protoOf(Config).
|
|
297
|
-
var matcher = contentType.equals(Application_getInstance().
|
|
298
|
-
this.
|
|
296
|
+
protoOf(Config).n5a = function (contentType, converter, configuration) {
|
|
297
|
+
var matcher = contentType.equals(Application_getInstance().h3h_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
298
|
+
this.a5e(contentType, converter, matcher, configuration);
|
|
299
299
|
};
|
|
300
|
-
protoOf(Config).
|
|
300
|
+
protoOf(Config).a5e = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
301
301
|
// Inline function 'kotlin.apply' call
|
|
302
302
|
configuration(converter);
|
|
303
303
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
304
|
-
this.
|
|
304
|
+
this.z5d_1.j(registration);
|
|
305
305
|
};
|
|
306
306
|
function Plugin() {
|
|
307
307
|
Plugin_instance = this;
|
|
308
|
-
this.
|
|
308
|
+
this.b5e_1 = new AttributeKey('ContentNegotiation');
|
|
309
309
|
}
|
|
310
310
|
protoOf(Plugin).w = function () {
|
|
311
|
-
return this.
|
|
311
|
+
return this.b5e_1;
|
|
312
312
|
};
|
|
313
|
-
protoOf(Plugin).
|
|
313
|
+
protoOf(Plugin).c5e = function (block) {
|
|
314
314
|
// Inline function 'kotlin.apply' call
|
|
315
315
|
var this_0 = new Config();
|
|
316
316
|
block(this_0);
|
|
317
317
|
var config = this_0;
|
|
318
|
-
return new ContentNegotiation(config.
|
|
318
|
+
return new ContentNegotiation(config.z5d_1, config.y5d_1);
|
|
319
319
|
};
|
|
320
|
-
protoOf(Plugin).
|
|
321
|
-
return this.
|
|
320
|
+
protoOf(Plugin).w3w = function (block) {
|
|
321
|
+
return this.c5e(block);
|
|
322
322
|
};
|
|
323
|
-
protoOf(Plugin).
|
|
324
|
-
var tmp = Phases_getInstance().
|
|
325
|
-
scope.
|
|
326
|
-
var tmp_0 = Phases_getInstance_0().
|
|
327
|
-
scope.
|
|
323
|
+
protoOf(Plugin).d5e = function (plugin, scope) {
|
|
324
|
+
var tmp = Phases_getInstance().h42_1;
|
|
325
|
+
scope.s3t_1.y3f(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
326
|
+
var tmp_0 = Phases_getInstance_0().r3w_1;
|
|
327
|
+
scope.t3t_1.y3f(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
328
328
|
};
|
|
329
|
-
protoOf(Plugin).
|
|
330
|
-
return this.
|
|
329
|
+
protoOf(Plugin).x3w = function (plugin, scope) {
|
|
330
|
+
return this.d5e(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
331
331
|
};
|
|
332
332
|
var Plugin_instance;
|
|
333
333
|
function Plugin_getInstance() {
|
|
@@ -336,13 +336,13 @@
|
|
|
336
336
|
return Plugin_instance;
|
|
337
337
|
}
|
|
338
338
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
339
|
-
return toString(it.
|
|
339
|
+
return toString(it.s5c_1);
|
|
340
340
|
}
|
|
341
341
|
function $convertRequestCOROUTINE$(_this__u8e3s4, request, body, resultContinuation) {
|
|
342
342
|
CoroutineImpl.call(this, resultContinuation);
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
343
|
+
this.m5e_1 = _this__u8e3s4;
|
|
344
|
+
this.n5e_1 = request;
|
|
345
|
+
this.o5e_1 = body;
|
|
346
346
|
}
|
|
347
347
|
protoOf($convertRequestCOROUTINE$).a9 = function () {
|
|
348
348
|
var suspendResult = this.u8_1;
|
|
@@ -352,25 +352,25 @@
|
|
|
352
352
|
switch (tmp) {
|
|
353
353
|
case 0:
|
|
354
354
|
this.t8_1 = 7;
|
|
355
|
-
var _iterator__ex2g4s = this.
|
|
355
|
+
var _iterator__ex2g4s = this.m5e_1.i5d_1.l();
|
|
356
356
|
while (_iterator__ex2g4s.m()) {
|
|
357
357
|
var element = _iterator__ex2g4s.n();
|
|
358
358
|
l$ret$1: do {
|
|
359
|
-
get_LOGGER().
|
|
360
|
-
if (this.
|
|
359
|
+
get_LOGGER().q3g('Adding Accept=' + element.t5c_1.k3i_1 + ' header for ' + this.n5e_1.r3v_1.toString());
|
|
360
|
+
if (this.n5e_1.t3v_1.x3c(HttpHeaders_getInstance().s3i_1, element.t5c_1.toString())) {
|
|
361
361
|
break l$ret$1;
|
|
362
362
|
}
|
|
363
|
-
accept(this.
|
|
363
|
+
accept(this.n5e_1, element.t5c_1);
|
|
364
364
|
}
|
|
365
365
|
while (false);
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
var tmp_0;
|
|
369
|
-
var tmp_1 = this.
|
|
369
|
+
var tmp_1 = this.o5e_1;
|
|
370
370
|
if (tmp_1 instanceof OutgoingContent) {
|
|
371
371
|
tmp_0 = true;
|
|
372
372
|
} else {
|
|
373
|
-
var tmp0 = this.
|
|
373
|
+
var tmp0 = this.m5e_1.j5d_1;
|
|
374
374
|
var tmp$ret$2;
|
|
375
375
|
l$ret$3: do {
|
|
376
376
|
var tmp_2;
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
var _iterator__ex2g4s_0 = tmp0.l();
|
|
387
387
|
while (_iterator__ex2g4s_0.m()) {
|
|
388
388
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
389
|
-
if (element_0.fa(this.
|
|
389
|
+
if (element_0.fa(this.o5e_1)) {
|
|
390
390
|
tmp$ret$2 = true;
|
|
391
391
|
break l$ret$3;
|
|
392
392
|
}
|
|
@@ -398,36 +398,36 @@
|
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
if (tmp_0) {
|
|
401
|
-
get_LOGGER().
|
|
401
|
+
get_LOGGER().q3g('Body type ' + toString(getKClassFromExpression(this.o5e_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.n5e_1.r3v_1.toString() + '.'));
|
|
402
402
|
return null;
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
var tmp_3 = this;
|
|
406
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
406
|
+
var tmp0_elvis_lhs = contentType_0(this.n5e_1);
|
|
407
407
|
var tmp_4;
|
|
408
408
|
if (tmp0_elvis_lhs == null) {
|
|
409
|
-
this.
|
|
410
|
-
get_LOGGER().
|
|
409
|
+
this.m5e_1;
|
|
410
|
+
get_LOGGER().q3g("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.n5e_1.r3v_1.toString() + '.');
|
|
411
411
|
return null;
|
|
412
412
|
} else {
|
|
413
413
|
tmp_4 = tmp0_elvis_lhs;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
tmp_3.
|
|
417
|
-
var tmp_5 = this.
|
|
416
|
+
tmp_3.q5e_1 = tmp_4;
|
|
417
|
+
var tmp_5 = this.o5e_1;
|
|
418
418
|
if (tmp_5 instanceof Unit) {
|
|
419
|
-
get_LOGGER().
|
|
420
|
-
this.
|
|
419
|
+
get_LOGGER().q3g('Sending empty body for ' + this.n5e_1.r3v_1.toString());
|
|
420
|
+
this.n5e_1.t3v_1.e3d(HttpHeaders_getInstance().k3j_1);
|
|
421
421
|
return EmptyContent_getInstance();
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
var tmp_6 = this;
|
|
425
|
-
var tmp0_0 = this.
|
|
425
|
+
var tmp0_0 = this.m5e_1.i5d_1;
|
|
426
426
|
var destination = ArrayList_init_$Create$();
|
|
427
427
|
var _iterator__ex2g4s_1 = tmp0_0.l();
|
|
428
428
|
while (_iterator__ex2g4s_1.m()) {
|
|
429
429
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
430
|
-
if (element_1.
|
|
430
|
+
if (element_1.u5c_1.w5c(this.q5e_1)) {
|
|
431
431
|
destination.j(element_1);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
@@ -442,41 +442,41 @@
|
|
|
442
442
|
var tmp1_elvis_lhs = tmp_7;
|
|
443
443
|
var tmp_8;
|
|
444
444
|
if (tmp1_elvis_lhs == null) {
|
|
445
|
-
this.
|
|
446
|
-
get_LOGGER().
|
|
445
|
+
this.m5e_1;
|
|
446
|
+
get_LOGGER().q3g('None of the registered converters match request Content-Type=' + this.q5e_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.n5e_1.r3v_1.toString() + '.'));
|
|
447
447
|
return null;
|
|
448
448
|
} else {
|
|
449
449
|
tmp_8 = tmp1_elvis_lhs;
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
tmp_6.
|
|
453
|
-
if (this.
|
|
454
|
-
get_LOGGER().
|
|
452
|
+
tmp_6.p5e_1 = tmp_8;
|
|
453
|
+
if (this.n5e_1.h4i() == null) {
|
|
454
|
+
get_LOGGER().q3g('Request has unknown body type. Skipping ContentNegotiation for ' + this.n5e_1.r3v_1.toString() + '.');
|
|
455
455
|
return null;
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
this.
|
|
458
|
+
this.n5e_1.t3v_1.e3d(HttpHeaders_getInstance().k3j_1);
|
|
459
459
|
var tmp_9 = this;
|
|
460
|
-
tmp_9.
|
|
460
|
+
tmp_9.u5e_1 = this.p5e_1;
|
|
461
461
|
this.s8_1 = 1;
|
|
462
462
|
continue $sm;
|
|
463
463
|
case 1:
|
|
464
|
-
this.
|
|
464
|
+
this.t5e_1 = this.u5e_1.l();
|
|
465
465
|
this.s8_1 = 2;
|
|
466
466
|
continue $sm;
|
|
467
467
|
case 2:
|
|
468
|
-
if (!this.
|
|
468
|
+
if (!this.t5e_1.m()) {
|
|
469
469
|
this.s8_1 = 5;
|
|
470
470
|
continue $sm;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
var element_2 = this.
|
|
474
|
-
this.
|
|
473
|
+
var element_2 = this.t5e_1.n();
|
|
474
|
+
this.s5e_1 = element_2;
|
|
475
475
|
this.s8_1 = 3;
|
|
476
|
-
var tmp0_elvis_lhs_0 = charset(this.
|
|
477
|
-
var tmp_10 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().
|
|
478
|
-
var tmp_11 = ensureNotNull(this.
|
|
479
|
-
var this_0 = this.
|
|
476
|
+
var tmp0_elvis_lhs_0 = charset(this.q5e_1);
|
|
477
|
+
var tmp_10 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().z34_1 : tmp0_elvis_lhs_0;
|
|
478
|
+
var tmp_11 = ensureNotNull(this.n5e_1.h4i());
|
|
479
|
+
var this_0 = this.o5e_1;
|
|
480
480
|
var tmp_12;
|
|
481
481
|
if (!equals(this_0, NullBody_instance)) {
|
|
482
482
|
tmp_12 = this_0;
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
tmp_12 = null;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
suspendResult = this.
|
|
487
|
+
suspendResult = this.s5e_1.s5c_1.q5a(this.q5e_1, tmp_10, tmp_11, tmp_12, this);
|
|
488
488
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
489
489
|
return suspendResult;
|
|
490
490
|
}
|
|
@@ -493,12 +493,12 @@
|
|
|
493
493
|
case 3:
|
|
494
494
|
var result = suspendResult;
|
|
495
495
|
if (!(result == null)) {
|
|
496
|
-
get_LOGGER().
|
|
496
|
+
get_LOGGER().q3g('Converted request body using ' + toString(this.s5e_1.s5c_1) + ' for ' + this.n5e_1.r3v_1.toString());
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
var result_0 = result;
|
|
500
500
|
if (!(result_0 == null)) {
|
|
501
|
-
this.
|
|
501
|
+
this.r5e_1 = result_0;
|
|
502
502
|
this.s8_1 = 6;
|
|
503
503
|
continue $sm;
|
|
504
504
|
} else {
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
this.s8_1 = 2;
|
|
511
511
|
continue $sm;
|
|
512
512
|
case 5:
|
|
513
|
-
this.
|
|
513
|
+
this.r5e_1 = null;
|
|
514
514
|
if (false) {
|
|
515
515
|
this.s8_1 = 1;
|
|
516
516
|
continue $sm;
|
|
@@ -519,11 +519,11 @@
|
|
|
519
519
|
this.s8_1 = 6;
|
|
520
520
|
continue $sm;
|
|
521
521
|
case 6:
|
|
522
|
-
var tmp2_elvis_lhs = this.
|
|
522
|
+
var tmp2_elvis_lhs = this.r5e_1;
|
|
523
523
|
var tmp_13;
|
|
524
524
|
if (tmp2_elvis_lhs == null) {
|
|
525
|
-
var tmp_14 = "Can't convert " + toString(this.
|
|
526
|
-
throw new ContentConverterException(tmp_14 + joinToString(this.
|
|
525
|
+
var tmp_14 = "Can't convert " + toString(this.o5e_1) + ' with contentType ' + this.q5e_1.toString() + ' using converters ';
|
|
526
|
+
throw new ContentConverterException(tmp_14 + joinToString(this.p5e_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
527
527
|
} else {
|
|
528
528
|
tmp_13 = tmp2_elvis_lhs;
|
|
529
529
|
}
|
|
@@ -546,12 +546,12 @@
|
|
|
546
546
|
};
|
|
547
547
|
function $convertResponseCOROUTINE$(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
548
548
|
CoroutineImpl.call(this, resultContinuation);
|
|
549
|
-
this.
|
|
550
|
-
this.
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
549
|
+
this.d5f_1 = _this__u8e3s4;
|
|
550
|
+
this.e5f_1 = requestUrl;
|
|
551
|
+
this.f5f_1 = info;
|
|
552
|
+
this.g5f_1 = body;
|
|
553
|
+
this.h5f_1 = responseContentType;
|
|
554
|
+
this.i5f_1 = charset;
|
|
555
555
|
}
|
|
556
556
|
protoOf($convertResponseCOROUTINE$).a9 = function () {
|
|
557
557
|
var suspendResult = this.u8_1;
|
|
@@ -561,23 +561,23 @@
|
|
|
561
561
|
switch (tmp) {
|
|
562
562
|
case 0:
|
|
563
563
|
this.t8_1 = 2;
|
|
564
|
-
var tmp_0 = this.
|
|
564
|
+
var tmp_0 = this.g5f_1;
|
|
565
565
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
566
|
-
get_LOGGER().
|
|
566
|
+
get_LOGGER().q3g('Response body is already transformed. Skipping ContentNegotiation for ' + this.e5f_1.toString() + '.');
|
|
567
567
|
return null;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
if (this.
|
|
571
|
-
get_LOGGER().
|
|
570
|
+
if (this.d5f_1.j5d_1.u1(this.f5f_1.l3g_1)) {
|
|
571
|
+
get_LOGGER().q3g('Response body type ' + toString(this.f5f_1.l3g_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.e5f_1.toString() + '.'));
|
|
572
572
|
return null;
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
var tmp0 = this.
|
|
575
|
+
var tmp0 = this.d5f_1.i5d_1;
|
|
576
576
|
var destination = ArrayList_init_$Create$();
|
|
577
577
|
var _iterator__ex2g4s = tmp0.l();
|
|
578
578
|
while (_iterator__ex2g4s.m()) {
|
|
579
579
|
var element = _iterator__ex2g4s.n();
|
|
580
|
-
if (element.
|
|
580
|
+
if (element.u5c_1.w5c(this.h5f_1)) {
|
|
581
581
|
destination.j(element);
|
|
582
582
|
}
|
|
583
583
|
}
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
var _iterator__ex2g4s_0 = destination.l();
|
|
587
587
|
while (_iterator__ex2g4s_0.m()) {
|
|
588
588
|
var item = _iterator__ex2g4s_0.n();
|
|
589
|
-
destination_0.j(item.
|
|
589
|
+
destination_0.j(item.s5c_1);
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
var tmp_1;
|
|
@@ -599,8 +599,8 @@
|
|
|
599
599
|
var tmp0_elvis_lhs = tmp_1;
|
|
600
600
|
var tmp_2;
|
|
601
601
|
if (tmp0_elvis_lhs == null) {
|
|
602
|
-
this.
|
|
603
|
-
get_LOGGER().
|
|
602
|
+
this.d5f_1;
|
|
603
|
+
get_LOGGER().q3g('None of the registered converters match response with Content-Type=' + this.h5f_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.e5f_1.toString() + '.'));
|
|
604
604
|
return null;
|
|
605
605
|
} else {
|
|
606
606
|
tmp_2 = tmp0_elvis_lhs;
|
|
@@ -608,7 +608,7 @@
|
|
|
608
608
|
|
|
609
609
|
var suitableConverters = tmp_2;
|
|
610
610
|
this.s8_1 = 1;
|
|
611
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
611
|
+
suspendResult = deserialize(suitableConverters, this.g5f_1, this.f5f_1, this.i5f_1, this);
|
|
612
612
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
613
613
|
return suspendResult;
|
|
614
614
|
}
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
case 1:
|
|
618
618
|
var result = suspendResult;
|
|
619
619
|
if (!isInterface(result, ByteReadChannel)) {
|
|
620
|
-
get_LOGGER().
|
|
620
|
+
get_LOGGER().q3g('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.e5f_1.toString() + '.');
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
return result;
|
|
@@ -637,16 +637,16 @@
|
|
|
637
637
|
};
|
|
638
638
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
639
639
|
Plugin_getInstance();
|
|
640
|
-
this.
|
|
641
|
-
this.
|
|
640
|
+
this.i5d_1 = registrations;
|
|
641
|
+
this.j5d_1 = ignoredTypes;
|
|
642
642
|
}
|
|
643
|
-
protoOf(ContentNegotiation).
|
|
643
|
+
protoOf(ContentNegotiation).k5d = function (request, body, $completion) {
|
|
644
644
|
var tmp = new $convertRequestCOROUTINE$(this, request, body, $completion);
|
|
645
645
|
tmp.u8_1 = Unit_instance;
|
|
646
646
|
tmp.v8_1 = null;
|
|
647
647
|
return tmp.a9();
|
|
648
648
|
};
|
|
649
|
-
protoOf(ContentNegotiation).
|
|
649
|
+
protoOf(ContentNegotiation).x5d = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
650
650
|
var tmp = new $convertResponseCOROUTINE$(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
651
651
|
tmp.u8_1 = Unit_instance;
|
|
652
652
|
tmp.v8_1 = null;
|
|
@@ -666,11 +666,11 @@
|
|
|
666
666
|
}
|
|
667
667
|
function JsonContentTypeMatcher() {
|
|
668
668
|
}
|
|
669
|
-
protoOf(JsonContentTypeMatcher).
|
|
670
|
-
if (contentType.
|
|
669
|
+
protoOf(JsonContentTypeMatcher).w5c = function (contentType) {
|
|
670
|
+
if (contentType.o3i(Application_getInstance().h3h_1)) {
|
|
671
671
|
return true;
|
|
672
672
|
}
|
|
673
|
-
var value = contentType.
|
|
673
|
+
var value = contentType.n3i().toString();
|
|
674
674
|
return startsWith(value, 'application/') && endsWith(value, '+json');
|
|
675
675
|
};
|
|
676
676
|
var JsonContentTypeMatcher_instance;
|
|
@@ -691,7 +691,7 @@
|
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
693
|
//region block: post-declaration
|
|
694
|
-
protoOf(Config).
|
|
694
|
+
protoOf(Config).o5a = register$default;
|
|
695
695
|
//endregion
|
|
696
696
|
//region block: init
|
|
697
697
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|