game_client_logic_deb 1.8.342 → 1.8.345
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +105 -117
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +935 -945
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +4622 -3643
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1828 -1855
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18031 -18544
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +897 -163
- package/Logic_Debertz-game_client.js +5644 -5279
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4832 -4536
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -26
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3156 -3339
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +459 -523
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2372 -2414
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1963 -1977
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +194 -194
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +1902 -1937
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-js.js.map +1 -1
- package/ktor-ktor-client-logging.js +393 -399
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +12 -15
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +964 -1154
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1715 -1825
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +238 -243
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +100 -96
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +655 -689
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websocket-serialization.js.map +1 -1
- package/ktor-ktor-websockets.js +71 -77
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -2
- package/raspberry-cardgame-lib-core.js +331 -365
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +148 -119
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +922 -989
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +36 -35
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +35 -39
- package/uuid.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +0 -15
- package/kotlin-kotlinx-atomicfu-runtime.js.map +0 -1
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
}(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io) {
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
32
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
33
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
34
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.oc;
|
|
31
|
+
var initMetadataForClass = kotlin_kotlin.$_$.nb;
|
|
32
|
+
var CoroutineImpl = kotlin_kotlin.$_$.pa;
|
|
33
|
+
var Unit_instance = kotlin_kotlin.$_$.h5;
|
|
34
|
+
var THROW_CCE = kotlin_kotlin.$_$.og;
|
|
35
35
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
36
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
36
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.aa;
|
|
37
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.rb;
|
|
38
38
|
var VOID = kotlin_kotlin.$_$.f;
|
|
39
39
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
40
40
|
var contentType = kotlin_io_ktor_ktor_http.$_$.e1;
|
|
41
41
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
42
|
-
var plus = kotlin_kotlin.$_$.
|
|
43
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
44
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
42
|
+
var plus = kotlin_kotlin.$_$.p8;
|
|
43
|
+
var toMutableSet = kotlin_kotlin.$_$.r9;
|
|
44
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
45
45
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
46
46
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
47
47
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
@@ -49,39 +49,39 @@
|
|
|
49
49
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
50
50
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
51
51
|
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
52
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
53
|
-
var toString = kotlin_kotlin.$_$.
|
|
52
|
+
var initMetadataForObject = kotlin_kotlin.$_$.sb;
|
|
53
|
+
var toString = kotlin_kotlin.$_$.tc;
|
|
54
54
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
55
55
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
56
|
-
var Collection = kotlin_kotlin.$_$.
|
|
57
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
56
|
+
var Collection = kotlin_kotlin.$_$.j5;
|
|
57
|
+
var isInterface = kotlin_kotlin.$_$.bc;
|
|
58
58
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
59
59
|
var getKClassFromExpression = kotlin_kotlin.$_$.d;
|
|
60
60
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.d1;
|
|
61
61
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
62
|
-
var Unit = kotlin_kotlin.$_$.
|
|
62
|
+
var Unit = kotlin_kotlin.$_$.zg;
|
|
63
63
|
var charset = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
64
64
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
65
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
65
|
+
var ensureNotNull = kotlin_kotlin.$_$.fh;
|
|
66
66
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
67
|
-
var equals = kotlin_kotlin.$_$.
|
|
68
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
69
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
67
|
+
var equals = kotlin_kotlin.$_$.gb;
|
|
68
|
+
var joinToString = kotlin_kotlin.$_$.x7;
|
|
69
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.pb;
|
|
70
70
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
71
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
72
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
71
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.k6;
|
|
72
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
73
73
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
74
|
-
var Exception = kotlin_kotlin.$_$.
|
|
75
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
76
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
74
|
+
var Exception = kotlin_kotlin.$_$.fg;
|
|
75
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.j1;
|
|
76
|
+
var captureStack = kotlin_kotlin.$_$.xa;
|
|
77
77
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
78
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
78
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.u4;
|
|
79
79
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.s;
|
|
80
80
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
81
|
-
var setOf = kotlin_kotlin.$_$.
|
|
82
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
83
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
84
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
81
|
+
var setOf = kotlin_kotlin.$_$.z8;
|
|
82
|
+
var startsWith = kotlin_kotlin.$_$.ue;
|
|
83
|
+
var endsWith = kotlin_kotlin.$_$.xd;
|
|
84
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
85
85
|
//endregion
|
|
86
86
|
//region block: pre-declaration
|
|
87
87
|
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
initMetadataForLambda(ContentNegotiation$Plugin$install$slambda_1, CoroutineImpl, VOID, [2]);
|
|
91
91
|
initMetadataForClass(Config, 'Config', Config, VOID, [Configuration]);
|
|
92
92
|
initMetadataForObject(Plugin, 'Plugin', VOID, VOID, [HttpClientPlugin]);
|
|
93
|
-
initMetadataForCoroutine($convertRequestCOROUTINE
|
|
94
|
-
initMetadataForCoroutine($convertResponseCOROUTINE
|
|
93
|
+
initMetadataForCoroutine($convertRequestCOROUTINE$, CoroutineImpl);
|
|
94
|
+
initMetadataForCoroutine($convertResponseCOROUTINE$, CoroutineImpl);
|
|
95
95
|
initMetadataForClass(ContentNegotiation, 'ContentNegotiation', VOID, VOID, VOID, [2, 5]);
|
|
96
96
|
initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
|
|
97
97
|
initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
|
|
@@ -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.x43_1 = converter;
|
|
111
|
+
this.y43_1 = contentTypeToSend;
|
|
112
|
+
this.z43_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.a44_1 = $pattern;
|
|
119
119
|
}
|
|
120
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
121
|
-
return contentType.
|
|
120
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).b44 = function (contentType) {
|
|
121
|
+
return contentType.h2h(this.a44_1);
|
|
122
122
|
};
|
|
123
123
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
124
|
-
this.
|
|
124
|
+
this.k44_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).y2v = function ($this$intercept, it, $completion) {
|
|
128
|
+
var tmp = this.z2v($this$intercept, it, $completion);
|
|
129
129
|
tmp.l9_1 = Unit_instance;
|
|
130
130
|
tmp.m9_1 = null;
|
|
131
131
|
return tmp.r9();
|
|
132
132
|
};
|
|
133
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
133
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).aa = function (p1, p2, $completion) {
|
|
134
134
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
135
|
-
return this.
|
|
135
|
+
return this.y2v(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
136
136
|
};
|
|
137
137
|
protoOf(ContentNegotiation$Plugin$install$slambda).r9 = function () {
|
|
138
138
|
var suspendResult = this.l9_1;
|
|
@@ -143,25 +143,25 @@
|
|
|
143
143
|
case 0:
|
|
144
144
|
this.k9_1 = 3;
|
|
145
145
|
this.j9_1 = 1;
|
|
146
|
-
suspendResult = this.
|
|
146
|
+
suspendResult = this.k44_1.r44(this.l44_1.r2e_1, this.l44_1.u2d(), this);
|
|
147
147
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
148
148
|
return suspendResult;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
continue $sm;
|
|
152
152
|
case 1:
|
|
153
|
-
this.
|
|
153
|
+
this.n44_1 = suspendResult;
|
|
154
154
|
var tmp_0 = this;
|
|
155
155
|
var tmp_1;
|
|
156
|
-
if (this.
|
|
156
|
+
if (this.n44_1 == null) {
|
|
157
157
|
return Unit_instance;
|
|
158
158
|
} else {
|
|
159
|
-
tmp_1 = this.
|
|
159
|
+
tmp_1 = this.n44_1;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
tmp_0.
|
|
162
|
+
tmp_0.o44_1 = tmp_1;
|
|
163
163
|
this.j9_1 = 2;
|
|
164
|
-
suspendResult = this.
|
|
164
|
+
suspendResult = this.l44_1.v2d(this.o44_1, this);
|
|
165
165
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
166
166
|
return suspendResult;
|
|
167
167
|
}
|
|
@@ -183,33 +183,33 @@
|
|
|
183
183
|
}
|
|
184
184
|
while (true);
|
|
185
185
|
};
|
|
186
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
187
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
188
|
-
i.
|
|
189
|
-
i.
|
|
186
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).z2v = function ($this$intercept, it, completion) {
|
|
187
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.k44_1, completion);
|
|
188
|
+
i.l44_1 = $this$intercept;
|
|
189
|
+
i.m44_1 = it;
|
|
190
190
|
return i;
|
|
191
191
|
};
|
|
192
192
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
193
193
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
194
194
|
var l = function ($this$intercept, it, $completion) {
|
|
195
|
-
return i.
|
|
195
|
+
return i.y2v($this$intercept, it, $completion);
|
|
196
196
|
};
|
|
197
197
|
l.$arity = 2;
|
|
198
198
|
return l;
|
|
199
199
|
}
|
|
200
200
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
201
|
-
this.
|
|
201
|
+
this.a45_1 = $plugin;
|
|
202
202
|
CoroutineImpl.call(this, resultContinuation);
|
|
203
203
|
}
|
|
204
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
205
|
-
var tmp = this.
|
|
204
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).s2w = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
205
|
+
var tmp = this.t2w($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
206
206
|
tmp.l9_1 = Unit_instance;
|
|
207
207
|
tmp.m9_1 = null;
|
|
208
208
|
return tmp.r9();
|
|
209
209
|
};
|
|
210
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
210
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).aa = function (p1, p2, $completion) {
|
|
211
211
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
212
|
-
return this.
|
|
212
|
+
return this.s2w(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
213
213
|
};
|
|
214
214
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).r9 = function () {
|
|
215
215
|
var suspendResult = this.l9_1;
|
|
@@ -219,42 +219,42 @@
|
|
|
219
219
|
switch (tmp) {
|
|
220
220
|
case 0:
|
|
221
221
|
this.k9_1 = 3;
|
|
222
|
-
this.
|
|
223
|
-
this.
|
|
222
|
+
this.d45_1 = this.c45_1.gf();
|
|
223
|
+
this.e45_1 = this.c45_1.hf();
|
|
224
224
|
var tmp_0 = this;
|
|
225
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
225
|
+
var tmp0_elvis_lhs = contentType(this.b45_1.r2e_1.f2w());
|
|
226
226
|
var tmp_1;
|
|
227
227
|
if (tmp0_elvis_lhs == null) {
|
|
228
|
-
this.
|
|
229
|
-
get_LOGGER().
|
|
228
|
+
this.b45_1;
|
|
229
|
+
get_LOGGER().n2f('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
230
230
|
return Unit_instance;
|
|
231
231
|
} else {
|
|
232
232
|
tmp_1 = tmp0_elvis_lhs;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
tmp_0.
|
|
236
|
-
this.
|
|
235
|
+
tmp_0.f45_1 = tmp_1;
|
|
236
|
+
this.g45_1 = suitableCharset(this.b45_1.r2e_1.o2z().p2l());
|
|
237
237
|
this.j9_1 = 1;
|
|
238
|
-
suspendResult = this.
|
|
238
|
+
suspendResult = this.a45_1.k45(this.b45_1.r2e_1.o2z().r2z(), this.d45_1, this.e45_1, this.f45_1, this.g45_1, this);
|
|
239
239
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
240
240
|
return suspendResult;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
continue $sm;
|
|
244
244
|
case 1:
|
|
245
|
-
this.
|
|
245
|
+
this.h45_1 = suspendResult;
|
|
246
246
|
var tmp_2 = this;
|
|
247
247
|
var tmp_3;
|
|
248
|
-
if (this.
|
|
248
|
+
if (this.h45_1 == null) {
|
|
249
249
|
return Unit_instance;
|
|
250
250
|
} else {
|
|
251
|
-
tmp_3 = this.
|
|
251
|
+
tmp_3 = this.h45_1;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
tmp_2.
|
|
255
|
-
this.
|
|
254
|
+
tmp_2.i45_1 = tmp_3;
|
|
255
|
+
this.j45_1 = new HttpResponseContainer(this.d45_1, this.i45_1);
|
|
256
256
|
this.j9_1 = 2;
|
|
257
|
-
suspendResult = this.
|
|
257
|
+
suspendResult = this.b45_1.v2d(this.j45_1, this);
|
|
258
258
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
259
259
|
return suspendResult;
|
|
260
260
|
}
|
|
@@ -276,63 +276,61 @@
|
|
|
276
276
|
}
|
|
277
277
|
while (true);
|
|
278
278
|
};
|
|
279
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
280
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
281
|
-
i.
|
|
282
|
-
i.
|
|
279
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).t2w = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
280
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.a45_1, completion);
|
|
281
|
+
i.b45_1 = $this$intercept;
|
|
282
|
+
i.c45_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
283
283
|
return i;
|
|
284
284
|
};
|
|
285
285
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
286
286
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
287
287
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
288
|
-
return i.
|
|
288
|
+
return i.s2w($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
289
289
|
};
|
|
290
290
|
l.$arity = 2;
|
|
291
291
|
return l;
|
|
292
292
|
}
|
|
293
293
|
function Config() {
|
|
294
|
-
this.
|
|
294
|
+
this.l45_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
295
295
|
var tmp = this;
|
|
296
296
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
297
|
-
tmp.
|
|
297
|
+
tmp.m45_1 = ArrayList_init_$Create$();
|
|
298
298
|
}
|
|
299
|
-
protoOf(Config).
|
|
300
|
-
var matcher = contentType.equals(Application_getInstance().
|
|
301
|
-
this.
|
|
299
|
+
protoOf(Config).j2s = function (contentType, converter, configuration) {
|
|
300
|
+
var matcher = contentType.equals(Application_getInstance().a2g_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
301
|
+
this.n45(contentType, converter, matcher, configuration);
|
|
302
302
|
};
|
|
303
|
-
protoOf(Config).
|
|
303
|
+
protoOf(Config).n45 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
304
304
|
// Inline function 'kotlin.apply' call
|
|
305
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
306
305
|
configuration(converter);
|
|
307
306
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
308
|
-
this.
|
|
307
|
+
this.m45_1.e(registration);
|
|
309
308
|
};
|
|
310
309
|
function Plugin() {
|
|
311
310
|
Plugin_instance = this;
|
|
312
|
-
this.
|
|
311
|
+
this.o45_1 = new AttributeKey('ContentNegotiation');
|
|
313
312
|
}
|
|
314
313
|
protoOf(Plugin).t = function () {
|
|
315
|
-
return this.
|
|
314
|
+
return this.o45_1;
|
|
316
315
|
};
|
|
317
|
-
protoOf(Plugin).
|
|
316
|
+
protoOf(Plugin).p45 = function (block) {
|
|
318
317
|
// Inline function 'kotlin.apply' call
|
|
319
318
|
var this_0 = new Config();
|
|
320
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
321
319
|
block(this_0);
|
|
322
320
|
var config = this_0;
|
|
323
|
-
return new ContentNegotiation(config.
|
|
321
|
+
return new ContentNegotiation(config.m45_1, config.l45_1);
|
|
324
322
|
};
|
|
325
|
-
protoOf(Plugin).
|
|
326
|
-
return this.
|
|
323
|
+
protoOf(Plugin).j2y = function (block) {
|
|
324
|
+
return this.p45(block);
|
|
327
325
|
};
|
|
328
|
-
protoOf(Plugin).
|
|
329
|
-
var tmp = Phases_getInstance().
|
|
330
|
-
scope.
|
|
331
|
-
var tmp_0 = Phases_getInstance_0().
|
|
332
|
-
scope.
|
|
326
|
+
protoOf(Plugin).q45 = function (plugin, scope) {
|
|
327
|
+
var tmp = Phases_getInstance().d34_1;
|
|
328
|
+
scope.e2v_1.v2e(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
329
|
+
var tmp_0 = Phases_getInstance_0().e2y_1;
|
|
330
|
+
scope.f2v_1.v2e(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
333
331
|
};
|
|
334
|
-
protoOf(Plugin).
|
|
335
|
-
return this.
|
|
332
|
+
protoOf(Plugin).k2y = function (plugin, scope) {
|
|
333
|
+
return this.q45(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
336
334
|
};
|
|
337
335
|
var Plugin_instance;
|
|
338
336
|
function Plugin_getInstance() {
|
|
@@ -341,15 +339,15 @@
|
|
|
341
339
|
return Plugin_instance;
|
|
342
340
|
}
|
|
343
341
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
344
|
-
return toString(it.
|
|
342
|
+
return toString(it.x43_1);
|
|
345
343
|
}
|
|
346
|
-
function $convertRequestCOROUTINE$
|
|
344
|
+
function $convertRequestCOROUTINE$(_this__u8e3s4, request, body, resultContinuation) {
|
|
347
345
|
CoroutineImpl.call(this, resultContinuation);
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
346
|
+
this.z45_1 = _this__u8e3s4;
|
|
347
|
+
this.a46_1 = request;
|
|
348
|
+
this.b46_1 = body;
|
|
351
349
|
}
|
|
352
|
-
protoOf($convertRequestCOROUTINE$
|
|
350
|
+
protoOf($convertRequestCOROUTINE$).r9 = function () {
|
|
353
351
|
var suspendResult = this.l9_1;
|
|
354
352
|
$sm: do
|
|
355
353
|
try {
|
|
@@ -357,30 +355,30 @@
|
|
|
357
355
|
switch (tmp) {
|
|
358
356
|
case 0:
|
|
359
357
|
this.k9_1 = 7;
|
|
360
|
-
var
|
|
361
|
-
while (
|
|
362
|
-
var element =
|
|
358
|
+
var _iterator__ex2g4s = this.z45_1.p44_1.j();
|
|
359
|
+
while (_iterator__ex2g4s.k()) {
|
|
360
|
+
var element = _iterator__ex2g4s.l();
|
|
363
361
|
l$ret$1: do {
|
|
364
|
-
get_LOGGER().
|
|
365
|
-
if (this.
|
|
362
|
+
get_LOGGER().n2f('Adding Accept=' + element.y43_1.d2h_1 + ' header for ' + this.a46_1.e2x_1.toString());
|
|
363
|
+
if (this.a46_1.g2x_1.v2b(HttpHeaders_getInstance().m2h_1, element.y43_1.toString())) {
|
|
366
364
|
break l$ret$1;
|
|
367
365
|
}
|
|
368
|
-
accept(this.
|
|
366
|
+
accept(this.a46_1, element.y43_1);
|
|
369
367
|
}
|
|
370
368
|
while (false);
|
|
371
369
|
}
|
|
372
370
|
|
|
373
371
|
var tmp_0;
|
|
374
|
-
var tmp_1 = this.
|
|
372
|
+
var tmp_1 = this.b46_1;
|
|
375
373
|
if (tmp_1 instanceof OutgoingContent) {
|
|
376
374
|
tmp_0 = true;
|
|
377
375
|
} else {
|
|
376
|
+
var tmp0 = this.z45_1.q44_1;
|
|
378
377
|
var tmp$ret$2;
|
|
379
378
|
l$ret$3: do {
|
|
380
|
-
var this_0 = this.t42_1.k41_1;
|
|
381
379
|
var tmp_2;
|
|
382
|
-
if (isInterface(
|
|
383
|
-
tmp_2 =
|
|
380
|
+
if (isInterface(tmp0, Collection)) {
|
|
381
|
+
tmp_2 = tmp0.p();
|
|
384
382
|
} else {
|
|
385
383
|
tmp_2 = false;
|
|
386
384
|
}
|
|
@@ -388,10 +386,10 @@
|
|
|
388
386
|
tmp$ret$2 = false;
|
|
389
387
|
break l$ret$3;
|
|
390
388
|
}
|
|
391
|
-
var
|
|
392
|
-
while (
|
|
393
|
-
var element_0 =
|
|
394
|
-
if (element_0.
|
|
389
|
+
var _iterator__ex2g4s_0 = tmp0.j();
|
|
390
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
391
|
+
var element_0 = _iterator__ex2g4s_0.l();
|
|
392
|
+
if (element_0.xa(this.b46_1)) {
|
|
395
393
|
tmp$ret$2 = true;
|
|
396
394
|
break l$ret$3;
|
|
397
395
|
}
|
|
@@ -403,36 +401,36 @@
|
|
|
403
401
|
}
|
|
404
402
|
|
|
405
403
|
if (tmp_0) {
|
|
406
|
-
get_LOGGER().
|
|
404
|
+
get_LOGGER().n2f('Body type ' + toString(getKClassFromExpression(this.b46_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.a46_1.e2x_1.toString() + '.'));
|
|
407
405
|
return null;
|
|
408
406
|
}
|
|
409
407
|
|
|
410
408
|
var tmp_3 = this;
|
|
411
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
409
|
+
var tmp0_elvis_lhs = contentType_0(this.a46_1);
|
|
412
410
|
var tmp_4;
|
|
413
411
|
if (tmp0_elvis_lhs == null) {
|
|
414
|
-
this.
|
|
415
|
-
get_LOGGER().
|
|
412
|
+
this.z45_1;
|
|
413
|
+
get_LOGGER().n2f("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.a46_1.e2x_1.toString() + '.');
|
|
416
414
|
return null;
|
|
417
415
|
} else {
|
|
418
416
|
tmp_4 = tmp0_elvis_lhs;
|
|
419
417
|
}
|
|
420
418
|
|
|
421
|
-
tmp_3.
|
|
422
|
-
var tmp_5 = this.
|
|
419
|
+
tmp_3.c46_1 = tmp_4;
|
|
420
|
+
var tmp_5 = this.b46_1;
|
|
423
421
|
if (tmp_5 instanceof Unit) {
|
|
424
|
-
get_LOGGER().
|
|
425
|
-
this.
|
|
422
|
+
get_LOGGER().n2f('Sending empty body for ' + this.a46_1.e2x_1.toString());
|
|
423
|
+
this.a46_1.g2x_1.a2c(HttpHeaders_getInstance().e2i_1);
|
|
426
424
|
return EmptyContent_getInstance();
|
|
427
425
|
}
|
|
428
426
|
|
|
429
427
|
var tmp_6 = this;
|
|
430
|
-
var
|
|
428
|
+
var tmp0_0 = this.z45_1.p44_1;
|
|
431
429
|
var destination = ArrayList_init_$Create$();
|
|
432
|
-
var
|
|
433
|
-
while (
|
|
434
|
-
var element_1 =
|
|
435
|
-
if (element_1.
|
|
430
|
+
var _iterator__ex2g4s_1 = tmp0_0.j();
|
|
431
|
+
while (_iterator__ex2g4s_1.k()) {
|
|
432
|
+
var element_1 = _iterator__ex2g4s_1.l();
|
|
433
|
+
if (element_1.z43_1.b44(this.c46_1)) {
|
|
436
434
|
destination.e(element_1);
|
|
437
435
|
}
|
|
438
436
|
}
|
|
@@ -447,50 +445,52 @@
|
|
|
447
445
|
var tmp1_elvis_lhs = tmp_7;
|
|
448
446
|
var tmp_8;
|
|
449
447
|
if (tmp1_elvis_lhs == null) {
|
|
450
|
-
this.
|
|
451
|
-
get_LOGGER().
|
|
448
|
+
this.z45_1;
|
|
449
|
+
get_LOGGER().n2f('None of the registered converters match request Content-Type=' + this.c46_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.a46_1.e2x_1.toString() + '.'));
|
|
452
450
|
return null;
|
|
453
451
|
} else {
|
|
454
452
|
tmp_8 = tmp1_elvis_lhs;
|
|
455
453
|
}
|
|
456
454
|
|
|
457
|
-
tmp_6.
|
|
458
|
-
if (this.
|
|
459
|
-
get_LOGGER().
|
|
455
|
+
tmp_6.d46_1 = tmp_8;
|
|
456
|
+
if (this.a46_1.q3m() == null) {
|
|
457
|
+
get_LOGGER().n2f('Request has unknown body type. Skipping ContentNegotiation for ' + this.a46_1.e2x_1.toString() + '.');
|
|
460
458
|
return null;
|
|
461
459
|
}
|
|
462
460
|
|
|
463
|
-
this.
|
|
461
|
+
this.a46_1.g2x_1.a2c(HttpHeaders_getInstance().e2i_1);
|
|
462
|
+
var tmp_9 = this;
|
|
463
|
+
tmp_9.e46_1 = this.d46_1;
|
|
464
464
|
this.j9_1 = 1;
|
|
465
465
|
continue $sm;
|
|
466
466
|
case 1:
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
this.a43_1 = this.z42_1.j();
|
|
467
|
+
this.g46_1 = this.e46_1;
|
|
468
|
+
this.h46_1 = this.g46_1.j();
|
|
470
469
|
this.j9_1 = 2;
|
|
471
470
|
continue $sm;
|
|
472
471
|
case 2:
|
|
473
|
-
if (!this.
|
|
472
|
+
if (!this.h46_1.k()) {
|
|
474
473
|
this.j9_1 = 5;
|
|
475
474
|
continue $sm;
|
|
476
475
|
}
|
|
477
476
|
|
|
478
|
-
this.
|
|
477
|
+
this.i46_1 = this.h46_1.l();
|
|
479
478
|
var tmp_10 = this;
|
|
480
|
-
tmp_10.
|
|
479
|
+
tmp_10.j46_1 = this.i46_1;
|
|
480
|
+
this.k46_1 = this.j46_1;
|
|
481
481
|
this.j9_1 = 3;
|
|
482
|
-
var tmp0_elvis_lhs_0 = charset(this.
|
|
483
|
-
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().
|
|
484
|
-
var tmp_12 = ensureNotNull(this.
|
|
485
|
-
var
|
|
482
|
+
var tmp0_elvis_lhs_0 = charset(this.c46_1);
|
|
483
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().p23_1 : tmp0_elvis_lhs_0;
|
|
484
|
+
var tmp_12 = ensureNotNull(this.a46_1.q3m());
|
|
485
|
+
var this_0 = this.b46_1;
|
|
486
486
|
var tmp_13;
|
|
487
|
-
if (!equals(
|
|
488
|
-
tmp_13 =
|
|
487
|
+
if (!equals(this_0, NullBody_instance)) {
|
|
488
|
+
tmp_13 = this_0;
|
|
489
489
|
} else {
|
|
490
490
|
tmp_13 = null;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
suspendResult = this.
|
|
493
|
+
suspendResult = this.k46_1.x43_1.m2s(this.c46_1, tmp_11, tmp_12, tmp_13, this);
|
|
494
494
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
495
495
|
return suspendResult;
|
|
496
496
|
}
|
|
@@ -499,12 +499,12 @@
|
|
|
499
499
|
case 3:
|
|
500
500
|
var result = suspendResult;
|
|
501
501
|
if (!(result == null)) {
|
|
502
|
-
get_LOGGER().
|
|
502
|
+
get_LOGGER().n2f('Converted request body using ' + toString(this.k46_1.x43_1) + ' for ' + this.a46_1.e2x_1.toString());
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
var result_0 = result;
|
|
506
506
|
if (!(result_0 == null)) {
|
|
507
|
-
this.
|
|
507
|
+
this.f46_1 = result_0;
|
|
508
508
|
this.j9_1 = 6;
|
|
509
509
|
continue $sm;
|
|
510
510
|
} else {
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
this.j9_1 = 2;
|
|
517
517
|
continue $sm;
|
|
518
518
|
case 5:
|
|
519
|
-
this.
|
|
519
|
+
this.f46_1 = null;
|
|
520
520
|
if (false) {
|
|
521
521
|
this.j9_1 = 1;
|
|
522
522
|
continue $sm;
|
|
@@ -525,11 +525,11 @@
|
|
|
525
525
|
this.j9_1 = 6;
|
|
526
526
|
continue $sm;
|
|
527
527
|
case 6:
|
|
528
|
-
var tmp2_elvis_lhs = this.
|
|
528
|
+
var tmp2_elvis_lhs = this.f46_1;
|
|
529
529
|
var tmp_14;
|
|
530
530
|
if (tmp2_elvis_lhs == null) {
|
|
531
|
-
var tmp_15 = "Can't convert " + toString(this.
|
|
532
|
-
throw new ContentConverterException(tmp_15 + joinToString(this.
|
|
531
|
+
var tmp_15 = "Can't convert " + toString(this.b46_1) + ' with contentType ' + this.c46_1.toString() + ' using converters ';
|
|
532
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.d46_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
533
533
|
} else {
|
|
534
534
|
tmp_14 = tmp2_elvis_lhs;
|
|
535
535
|
}
|
|
@@ -550,16 +550,16 @@
|
|
|
550
550
|
}
|
|
551
551
|
while (true);
|
|
552
552
|
};
|
|
553
|
-
function $convertResponseCOROUTINE$
|
|
553
|
+
function $convertResponseCOROUTINE$(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
554
554
|
CoroutineImpl.call(this, resultContinuation);
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
555
|
+
this.t46_1 = _this__u8e3s4;
|
|
556
|
+
this.u46_1 = requestUrl;
|
|
557
|
+
this.v46_1 = info;
|
|
558
|
+
this.w46_1 = body;
|
|
559
|
+
this.x46_1 = responseContentType;
|
|
560
|
+
this.y46_1 = charset;
|
|
561
561
|
}
|
|
562
|
-
protoOf($convertResponseCOROUTINE$
|
|
562
|
+
protoOf($convertResponseCOROUTINE$).r9 = function () {
|
|
563
563
|
var suspendResult = this.l9_1;
|
|
564
564
|
$sm: do
|
|
565
565
|
try {
|
|
@@ -567,33 +567,33 @@
|
|
|
567
567
|
switch (tmp) {
|
|
568
568
|
case 0:
|
|
569
569
|
this.k9_1 = 2;
|
|
570
|
-
var tmp_0 = this.
|
|
570
|
+
var tmp_0 = this.w46_1;
|
|
571
571
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
572
|
-
get_LOGGER().
|
|
572
|
+
get_LOGGER().n2f('Response body is already transformed. Skipping ContentNegotiation for ' + this.u46_1.toString() + '.');
|
|
573
573
|
return null;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
if (this.
|
|
577
|
-
get_LOGGER().
|
|
576
|
+
if (this.t46_1.q44_1.s1(this.v46_1.i2f_1)) {
|
|
577
|
+
get_LOGGER().n2f('Response body type ' + toString(this.v46_1.i2f_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.u46_1.toString() + '.'));
|
|
578
578
|
return null;
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
var tmp_1 = this;
|
|
582
|
-
var
|
|
582
|
+
var tmp0 = this.t46_1.p44_1;
|
|
583
583
|
var destination = ArrayList_init_$Create$();
|
|
584
|
-
var
|
|
585
|
-
while (
|
|
586
|
-
var element =
|
|
587
|
-
if (element.
|
|
584
|
+
var _iterator__ex2g4s = tmp0.j();
|
|
585
|
+
while (_iterator__ex2g4s.k()) {
|
|
586
|
+
var element = _iterator__ex2g4s.l();
|
|
587
|
+
if (element.z43_1.b44(this.x46_1)) {
|
|
588
588
|
destination.e(element);
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
593
|
-
var
|
|
594
|
-
while (
|
|
595
|
-
var item =
|
|
596
|
-
destination_0.e(item.
|
|
593
|
+
var _iterator__ex2g4s_0 = destination.j();
|
|
594
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
595
|
+
var item = _iterator__ex2g4s_0.l();
|
|
596
|
+
destination_0.e(item.x43_1);
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
var tmp_2;
|
|
@@ -606,16 +606,16 @@
|
|
|
606
606
|
var tmp0_elvis_lhs = tmp_2;
|
|
607
607
|
var tmp_3;
|
|
608
608
|
if (tmp0_elvis_lhs == null) {
|
|
609
|
-
this.
|
|
610
|
-
get_LOGGER().
|
|
609
|
+
this.t46_1;
|
|
610
|
+
get_LOGGER().n2f('None of the registered converters match response with Content-Type=' + this.x46_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.u46_1.toString() + '.'));
|
|
611
611
|
return null;
|
|
612
612
|
} else {
|
|
613
613
|
tmp_3 = tmp0_elvis_lhs;
|
|
614
614
|
}
|
|
615
615
|
|
|
616
|
-
tmp_1.
|
|
616
|
+
tmp_1.z46_1 = tmp_3;
|
|
617
617
|
this.j9_1 = 1;
|
|
618
|
-
suspendResult = deserialize(this.
|
|
618
|
+
suspendResult = deserialize(this.z46_1, this.w46_1, this.v46_1, this.y46_1, this);
|
|
619
619
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
620
620
|
return suspendResult;
|
|
621
621
|
}
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
case 1:
|
|
625
625
|
var result = suspendResult;
|
|
626
626
|
if (!isInterface(result, ByteReadChannel)) {
|
|
627
|
-
get_LOGGER().
|
|
627
|
+
get_LOGGER().n2f('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.u46_1.toString() + '.');
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
return result;
|
|
@@ -644,17 +644,17 @@
|
|
|
644
644
|
};
|
|
645
645
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
646
646
|
Plugin_getInstance();
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
647
|
+
this.p44_1 = registrations;
|
|
648
|
+
this.q44_1 = ignoredTypes;
|
|
649
649
|
}
|
|
650
|
-
protoOf(ContentNegotiation).
|
|
651
|
-
var tmp = new $convertRequestCOROUTINE$
|
|
650
|
+
protoOf(ContentNegotiation).r44 = function (request, body, $completion) {
|
|
651
|
+
var tmp = new $convertRequestCOROUTINE$(this, request, body, $completion);
|
|
652
652
|
tmp.l9_1 = Unit_instance;
|
|
653
653
|
tmp.m9_1 = null;
|
|
654
654
|
return tmp.r9();
|
|
655
655
|
};
|
|
656
|
-
protoOf(ContentNegotiation).
|
|
657
|
-
var tmp = new $convertResponseCOROUTINE$
|
|
656
|
+
protoOf(ContentNegotiation).k45 = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
657
|
+
var tmp = new $convertResponseCOROUTINE$(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
658
658
|
tmp.l9_1 = Unit_instance;
|
|
659
659
|
tmp.m9_1 = null;
|
|
660
660
|
return tmp.r9();
|
|
@@ -668,16 +668,16 @@
|
|
|
668
668
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
669
669
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
670
670
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
671
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
671
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().bc(), PrimitiveClasses_getInstance().xb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
function JsonContentTypeMatcher() {
|
|
675
675
|
}
|
|
676
|
-
protoOf(JsonContentTypeMatcher).
|
|
677
|
-
if (contentType.
|
|
676
|
+
protoOf(JsonContentTypeMatcher).b44 = function (contentType) {
|
|
677
|
+
if (contentType.h2h(Application_getInstance().a2g_1)) {
|
|
678
678
|
return true;
|
|
679
679
|
}
|
|
680
|
-
var value = contentType.
|
|
680
|
+
var value = contentType.g2h().toString();
|
|
681
681
|
return startsWith(value, 'application/') && endsWith(value, '+json');
|
|
682
682
|
};
|
|
683
683
|
var JsonContentTypeMatcher_instance;
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
//region block: post-declaration
|
|
701
|
-
protoOf(Config).
|
|
701
|
+
protoOf(Config).k2s = register$default;
|
|
702
702
|
//endregion
|
|
703
703
|
//region block: init
|
|
704
704
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|