@doordeck/doordeck-headless-sdk 0.137.0 → 0.139.0
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/kotlin/Kermit-kermit-core.js +61 -61
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +2 -6459
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +57 -57
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +80 -80
- package/kotlin/doordeck-sdk.js +13815 -13617
- package/kotlin/kotlin-kotlin-stdlib.js +3464 -2905
- package/kotlin/kotlinx-atomicfu.js +24 -24
- package/kotlin/kotlinx-coroutines-core.js +2412 -2409
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +54 -54
- package/kotlin/kotlinx-io-kotlinx-io-core.js +568 -568
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2130 -2118
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1675 -1659
- package/kotlin/ktor-ktor-client-auth.js +476 -476
- package/kotlin/ktor-ktor-client-content-negotiation.js +220 -220
- package/kotlin/ktor-ktor-client-core.js +3068 -3086
- package/kotlin/ktor-ktor-client-logging.js +1206 -1206
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +603 -586
- package/kotlin/ktor-ktor-http.js +888 -888
- package/kotlin/ktor-ktor-io.js +1140 -1140
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +287 -287
- package/kotlin/ktor-ktor-serialization.js +130 -130
- package/kotlin/ktor-ktor-utils.js +961 -961
- package/kotlin/ktor-ktor-websockets.js +54 -54
- package/package.json +7 -7
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
5
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
-
var plus = kotlin_kotlin.$_$.
|
|
7
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.ib;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ia;
|
|
6
|
+
var plus = kotlin_kotlin.$_$.s7;
|
|
7
|
+
var toMutableSet = kotlin_kotlin.$_$.n8;
|
|
8
8
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
9
9
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
10
10
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
11
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
+
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
12
12
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
13
13
|
var VOID = kotlin_kotlin.$_$.h;
|
|
14
|
-
var Exception = kotlin_kotlin.$_$.
|
|
15
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
16
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
14
|
+
var Exception = kotlin_kotlin.$_$.ue;
|
|
15
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.n1;
|
|
16
|
+
var captureStack = kotlin_kotlin.$_$.s9;
|
|
17
17
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
18
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
19
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
18
|
+
var CoroutineImpl = kotlin_kotlin.$_$.k9;
|
|
19
|
+
var THROW_CCE = kotlin_kotlin.$_$.cf;
|
|
20
20
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
21
21
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
22
22
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
23
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
24
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
23
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.u8;
|
|
24
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.na;
|
|
25
25
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
26
26
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.g1;
|
|
27
27
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
28
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
28
|
+
var isInterface = kotlin_kotlin.$_$.xa;
|
|
29
29
|
var contentType = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
30
30
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.i1;
|
|
31
31
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
32
|
-
var toString = kotlin_kotlin.$_$.
|
|
33
|
-
var Collection = kotlin_kotlin.$_$.
|
|
32
|
+
var toString = kotlin_kotlin.$_$.mb;
|
|
33
|
+
var Collection = kotlin_kotlin.$_$.h5;
|
|
34
34
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
35
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
35
|
+
var emptyList = kotlin_kotlin.$_$.s6;
|
|
36
36
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
37
37
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
38
38
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
39
39
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
40
40
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
41
41
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
42
|
-
var Unit = kotlin_kotlin.$_$.
|
|
42
|
+
var Unit = kotlin_kotlin.$_$.nf;
|
|
43
43
|
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
44
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
44
|
+
var ensureNotNull = kotlin_kotlin.$_$.uf;
|
|
45
45
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
46
|
-
var equals = kotlin_kotlin.$_$.
|
|
47
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
49
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
46
|
+
var equals = kotlin_kotlin.$_$.ba;
|
|
47
|
+
var joinToString = kotlin_kotlin.$_$.h7;
|
|
48
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ka;
|
|
49
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.z5;
|
|
50
50
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
51
51
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
52
52
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
53
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
53
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.t4;
|
|
54
54
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.a1;
|
|
55
55
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
56
|
-
var setOf = kotlin_kotlin.$_$.
|
|
57
|
-
var KtList = kotlin_kotlin.$_$.
|
|
56
|
+
var setOf = kotlin_kotlin.$_$.a8;
|
|
57
|
+
var KtList = kotlin_kotlin.$_$.m5;
|
|
58
58
|
var ContentType = kotlin_io_ktor_ktor_http.$_$.y;
|
|
59
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
59
|
+
var arrayOf = kotlin_kotlin.$_$.qf;
|
|
60
60
|
var createKType = kotlin_kotlin.$_$.c;
|
|
61
61
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
62
62
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
63
63
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
64
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
65
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
64
|
+
var endsWith = kotlin_kotlin.$_$.mc;
|
|
65
|
+
var initMetadataForObject = kotlin_kotlin.$_$.oa;
|
|
66
66
|
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
67
67
|
//endregion
|
|
68
68
|
//region block: pre-declaration
|
|
@@ -97,35 +97,35 @@
|
|
|
97
97
|
}
|
|
98
98
|
var ContentNegotiation;
|
|
99
99
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
100
|
+
this.m5h_1 = converter;
|
|
101
|
+
this.n5h_1 = contentTypeToSend;
|
|
102
|
+
this.o5h_1 = contentTypeMatcher;
|
|
103
103
|
}
|
|
104
104
|
function defaultMatcher($this, pattern) {
|
|
105
105
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
106
106
|
}
|
|
107
107
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
108
|
-
this.
|
|
108
|
+
this.p5h_1 = $pattern;
|
|
109
109
|
}
|
|
110
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
111
|
-
return contentType.
|
|
110
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).q5h = function (contentType) {
|
|
111
|
+
return contentType.l2w(this.p5h_1);
|
|
112
112
|
};
|
|
113
113
|
function ContentNegotiationConfig() {
|
|
114
|
-
this.
|
|
114
|
+
this.r5h_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
115
115
|
var tmp = this;
|
|
116
116
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
117
|
-
tmp.
|
|
118
|
-
this.
|
|
117
|
+
tmp.s5h_1 = ArrayList_init_$Create$();
|
|
118
|
+
this.t5h_1 = null;
|
|
119
119
|
}
|
|
120
|
-
protoOf(ContentNegotiationConfig).
|
|
121
|
-
var matcher = contentType.
|
|
122
|
-
this.
|
|
120
|
+
protoOf(ContentNegotiationConfig).a3f = function (contentType, converter, configuration) {
|
|
121
|
+
var matcher = contentType.l2w(Application_getInstance().r2u_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
122
|
+
this.u5h(contentType, converter, matcher, configuration);
|
|
123
123
|
};
|
|
124
|
-
protoOf(ContentNegotiationConfig).
|
|
124
|
+
protoOf(ContentNegotiationConfig).u5h = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
125
125
|
// Inline function 'kotlin.apply' call
|
|
126
126
|
configuration(converter);
|
|
127
127
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
128
|
-
this.
|
|
128
|
+
this.s5h_1.k(registration);
|
|
129
129
|
};
|
|
130
130
|
function ContentConverterException(message) {
|
|
131
131
|
Exception_init_$Init$(message, this);
|
|
@@ -140,53 +140,53 @@
|
|
|
140
140
|
}
|
|
141
141
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
142
142
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
143
|
-
var registrations = $this$createClientPlugin.
|
|
144
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
145
|
-
$this$createClientPlugin.
|
|
146
|
-
$this$createClientPlugin.
|
|
143
|
+
var registrations = $this$createClientPlugin.b3s_1.s5h_1;
|
|
144
|
+
var ignoredTypes = $this$createClientPlugin.b3s_1.r5h_1;
|
|
145
|
+
$this$createClientPlugin.f4b(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
146
|
+
$this$createClientPlugin.s42(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
147
147
|
return Unit_instance;
|
|
148
148
|
}
|
|
149
149
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
150
150
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
151
|
-
tmp.
|
|
152
|
-
tmp.
|
|
153
|
-
return tmp.
|
|
151
|
+
tmp.l9_1 = Unit_instance;
|
|
152
|
+
tmp.m9_1 = null;
|
|
153
|
+
return tmp.r9();
|
|
154
154
|
}
|
|
155
155
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
156
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
156
|
+
charset = charset === VOID ? Charsets_getInstance().h1z_1 : charset;
|
|
157
157
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
158
|
-
tmp.
|
|
159
|
-
tmp.
|
|
160
|
-
return tmp.
|
|
158
|
+
tmp.l9_1 = Unit_instance;
|
|
159
|
+
tmp.m9_1 = null;
|
|
160
|
+
return tmp.r9();
|
|
161
161
|
}
|
|
162
162
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
163
|
-
this.
|
|
164
|
-
this.
|
|
165
|
-
this.
|
|
163
|
+
this.s5j_1 = $registrations;
|
|
164
|
+
this.t5j_1 = $this_createClientPlugin;
|
|
165
|
+
this.u5j_1 = $ignoredTypes;
|
|
166
166
|
CoroutineImpl.call(this, resultContinuation);
|
|
167
167
|
}
|
|
168
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
169
|
-
var tmp = this.
|
|
170
|
-
tmp.
|
|
171
|
-
tmp.
|
|
172
|
-
return tmp.
|
|
168
|
+
protoOf(ContentNegotiation$lambda$slambda).z5j = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
169
|
+
var tmp = this.a5k($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
170
|
+
tmp.l9_1 = Unit_instance;
|
|
171
|
+
tmp.m9_1 = null;
|
|
172
|
+
return tmp.r9();
|
|
173
173
|
};
|
|
174
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
174
|
+
protoOf(ContentNegotiation$lambda$slambda).x43 = function (p1, p2, p3, p4, $completion) {
|
|
175
175
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
176
176
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
177
177
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
178
|
-
return this.
|
|
178
|
+
return this.z5j(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
179
179
|
};
|
|
180
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
181
|
-
var suspendResult = this.
|
|
180
|
+
protoOf(ContentNegotiation$lambda$slambda).r9 = function () {
|
|
181
|
+
var suspendResult = this.l9_1;
|
|
182
182
|
$sm: do
|
|
183
183
|
try {
|
|
184
|
-
var tmp = this.
|
|
184
|
+
var tmp = this.j9_1;
|
|
185
185
|
switch (tmp) {
|
|
186
186
|
case 0:
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
189
|
-
suspendResult = invoke$convertRequest(this.
|
|
187
|
+
this.k9_1 = 2;
|
|
188
|
+
this.j9_1 = 1;
|
|
189
|
+
suspendResult = invoke$convertRequest(this.s5j_1, this.t5j_1, this.u5j_1, this.w5j_1, this.x5j_1, this);
|
|
190
190
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
191
191
|
return suspendResult;
|
|
192
192
|
}
|
|
@@ -195,63 +195,63 @@
|
|
|
195
195
|
case 1:
|
|
196
196
|
return suspendResult;
|
|
197
197
|
case 2:
|
|
198
|
-
throw this.
|
|
198
|
+
throw this.m9_1;
|
|
199
199
|
}
|
|
200
200
|
} catch ($p) {
|
|
201
201
|
var e = $p;
|
|
202
|
-
if (this.
|
|
202
|
+
if (this.k9_1 === 2) {
|
|
203
203
|
throw e;
|
|
204
204
|
} else {
|
|
205
|
-
this.
|
|
206
|
-
this.
|
|
205
|
+
this.j9_1 = this.k9_1;
|
|
206
|
+
this.m9_1 = e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
while (true);
|
|
210
210
|
};
|
|
211
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
212
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
213
|
-
i.
|
|
214
|
-
i.
|
|
215
|
-
i.
|
|
216
|
-
i.
|
|
211
|
+
protoOf(ContentNegotiation$lambda$slambda).a5k = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
212
|
+
var i = new ContentNegotiation$lambda$slambda(this.s5j_1, this.t5j_1, this.u5j_1, completion);
|
|
213
|
+
i.v5j_1 = $this$transformRequestBody;
|
|
214
|
+
i.w5j_1 = request;
|
|
215
|
+
i.x5j_1 = body;
|
|
216
|
+
i.y5j_1 = _unused_var__etf5q3;
|
|
217
217
|
return i;
|
|
218
218
|
};
|
|
219
219
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
220
220
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
221
221
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
222
|
-
return i.
|
|
222
|
+
return i.z5j($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
223
223
|
};
|
|
224
224
|
l.$arity = 4;
|
|
225
225
|
return l;
|
|
226
226
|
}
|
|
227
227
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
228
|
+
this.j5k_1 = $ignoredTypes;
|
|
229
|
+
this.k5k_1 = $registrations;
|
|
230
|
+
this.l5k_1 = $this_createClientPlugin;
|
|
231
231
|
CoroutineImpl.call(this, resultContinuation);
|
|
232
232
|
}
|
|
233
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
234
|
-
var tmp = this.
|
|
235
|
-
tmp.
|
|
236
|
-
tmp.
|
|
237
|
-
return tmp.
|
|
233
|
+
protoOf(ContentNegotiation$lambda$slambda_1).v43 = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
234
|
+
var tmp = this.w43($this$transformResponseBody, response, body, info, $completion);
|
|
235
|
+
tmp.l9_1 = Unit_instance;
|
|
236
|
+
tmp.m9_1 = null;
|
|
237
|
+
return tmp.r9();
|
|
238
238
|
};
|
|
239
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
239
|
+
protoOf(ContentNegotiation$lambda$slambda_1).x43 = function (p1, p2, p3, p4, $completion) {
|
|
240
240
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
241
241
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
242
242
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
243
|
-
return this.
|
|
243
|
+
return this.v43(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
244
244
|
};
|
|
245
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
246
|
-
var suspendResult = this.
|
|
245
|
+
protoOf(ContentNegotiation$lambda$slambda_1).r9 = function () {
|
|
246
|
+
var suspendResult = this.l9_1;
|
|
247
247
|
$sm: do
|
|
248
248
|
try {
|
|
249
|
-
var tmp = this.
|
|
249
|
+
var tmp = this.j9_1;
|
|
250
250
|
switch (tmp) {
|
|
251
251
|
case 0:
|
|
252
|
-
this.
|
|
252
|
+
this.k9_1 = 2;
|
|
253
253
|
var tmp_0 = this;
|
|
254
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
254
|
+
var tmp0_elvis_lhs = contentType(this.n5k_1);
|
|
255
255
|
var tmp_1;
|
|
256
256
|
if (tmp0_elvis_lhs == null) {
|
|
257
257
|
return null;
|
|
@@ -259,10 +259,10 @@
|
|
|
259
259
|
tmp_1 = tmp0_elvis_lhs;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
tmp_0.
|
|
263
|
-
this.
|
|
264
|
-
this.
|
|
265
|
-
suspendResult = invoke$convertResponse(this.
|
|
262
|
+
tmp_0.q5k_1 = tmp_1;
|
|
263
|
+
this.r5k_1 = suitableCharset(get_request(this.n5k_1).u30());
|
|
264
|
+
this.j9_1 = 1;
|
|
265
|
+
suspendResult = invoke$convertResponse(this.j5k_1, this.k5k_1, this.l5k_1, get_request(this.n5k_1).d3l(), this.p5k_1, this.o5k_1, this.q5k_1, this.r5k_1, this);
|
|
266
266
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
267
267
|
return suspendResult;
|
|
268
268
|
}
|
|
@@ -271,60 +271,60 @@
|
|
|
271
271
|
case 1:
|
|
272
272
|
return suspendResult;
|
|
273
273
|
case 2:
|
|
274
|
-
throw this.
|
|
274
|
+
throw this.m9_1;
|
|
275
275
|
}
|
|
276
276
|
} catch ($p) {
|
|
277
277
|
var e = $p;
|
|
278
|
-
if (this.
|
|
278
|
+
if (this.k9_1 === 2) {
|
|
279
279
|
throw e;
|
|
280
280
|
} else {
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
281
|
+
this.j9_1 = this.k9_1;
|
|
282
|
+
this.m9_1 = e;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
while (true);
|
|
286
286
|
};
|
|
287
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
288
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
289
|
-
i.
|
|
290
|
-
i.
|
|
291
|
-
i.
|
|
292
|
-
i.
|
|
287
|
+
protoOf(ContentNegotiation$lambda$slambda_1).w43 = function ($this$transformResponseBody, response, body, info, completion) {
|
|
288
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.j5k_1, this.k5k_1, this.l5k_1, completion);
|
|
289
|
+
i.m5k_1 = $this$transformResponseBody;
|
|
290
|
+
i.n5k_1 = response;
|
|
291
|
+
i.o5k_1 = body;
|
|
292
|
+
i.p5k_1 = info;
|
|
293
293
|
return i;
|
|
294
294
|
};
|
|
295
295
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
296
296
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
297
297
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
298
|
-
return i.
|
|
298
|
+
return i.v43($this$transformResponseBody, response, body, info, $completion);
|
|
299
299
|
};
|
|
300
300
|
l.$arity = 4;
|
|
301
301
|
return l;
|
|
302
302
|
}
|
|
303
303
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
304
304
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
305
|
-
return toString(it.
|
|
305
|
+
return toString(it.m5h_1);
|
|
306
306
|
}
|
|
307
307
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
308
308
|
CoroutineImpl.call(this, resultContinuation);
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
309
|
+
this.d5i_1 = registrations;
|
|
310
|
+
this.e5i_1 = $this_createClientPlugin;
|
|
311
|
+
this.f5i_1 = ignoredTypes;
|
|
312
|
+
this.g5i_1 = request;
|
|
313
|
+
this.h5i_1 = body;
|
|
314
314
|
}
|
|
315
|
-
protoOf($invoke$convertRequestCOROUTINE$).
|
|
316
|
-
var suspendResult = this.
|
|
315
|
+
protoOf($invoke$convertRequestCOROUTINE$).r9 = function () {
|
|
316
|
+
var suspendResult = this.l9_1;
|
|
317
317
|
$sm: do
|
|
318
318
|
try {
|
|
319
|
-
var tmp = this.
|
|
319
|
+
var tmp = this.j9_1;
|
|
320
320
|
switch (tmp) {
|
|
321
321
|
case 0:
|
|
322
|
-
this.
|
|
322
|
+
this.k9_1 = 7;
|
|
323
323
|
var tmp_0 = this;
|
|
324
324
|
var tmp_1;
|
|
325
|
-
if (this.
|
|
326
|
-
var excluded = this.
|
|
327
|
-
var tmp0 = this.
|
|
325
|
+
if (this.g5i_1.r3j_1.e2l(get_ExcludedContentTypes())) {
|
|
326
|
+
var excluded = this.g5i_1.r3j_1.c2l(get_ExcludedContentTypes());
|
|
327
|
+
var tmp0 = this.d5i_1;
|
|
328
328
|
var destination = ArrayList_init_$Create$();
|
|
329
329
|
var _iterator__ex2g4s = tmp0.p();
|
|
330
330
|
while (_iterator__ex2g4s.q()) {
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
var _iterator__ex2g4s_0 = excluded.p();
|
|
345
345
|
while (_iterator__ex2g4s_0.q()) {
|
|
346
346
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
347
|
-
if (element.
|
|
347
|
+
if (element.n5h_1.l2w(element_0)) {
|
|
348
348
|
tmp$ret$0 = false;
|
|
349
349
|
break l$ret$1;
|
|
350
350
|
}
|
|
@@ -358,17 +358,17 @@
|
|
|
358
358
|
}
|
|
359
359
|
tmp_1 = destination;
|
|
360
360
|
} else {
|
|
361
|
-
tmp_1 = this.
|
|
361
|
+
tmp_1 = this.d5i_1;
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
tmp_0.
|
|
364
|
+
tmp_0.i5i_1 = tmp_1;
|
|
365
365
|
var tmp_3 = this;
|
|
366
|
-
var tmp0_elvis_lhs = this.
|
|
367
|
-
tmp_3.
|
|
368
|
-
var _iterator__ex2g4s_1 = this.
|
|
366
|
+
var tmp0_elvis_lhs = this.g5i_1.o3j_1.i2p(HttpHeaders_getInstance().r2w_1);
|
|
367
|
+
tmp_3.j5i_1 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
368
|
+
var _iterator__ex2g4s_1 = this.i5i_1.p();
|
|
369
369
|
while (_iterator__ex2g4s_1.q()) {
|
|
370
370
|
var element_1 = _iterator__ex2g4s_1.r();
|
|
371
|
-
var tmp0_0 = this.
|
|
371
|
+
var tmp0_0 = this.j5i_1;
|
|
372
372
|
var tmp$ret$2;
|
|
373
373
|
l$ret$3: do {
|
|
374
374
|
var tmp_4;
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
var _iterator__ex2g4s_2 = tmp0_0.p();
|
|
385
385
|
while (_iterator__ex2g4s_2.q()) {
|
|
386
386
|
var element_2 = _iterator__ex2g4s_2.r();
|
|
387
|
-
if (Companion_getInstance().
|
|
387
|
+
if (Companion_getInstance().ym(element_2).l2w(element_1.n5h_1)) {
|
|
388
388
|
tmp$ret$2 = false;
|
|
389
389
|
break l$ret$3;
|
|
390
390
|
}
|
|
@@ -393,19 +393,19 @@
|
|
|
393
393
|
}
|
|
394
394
|
while (false);
|
|
395
395
|
if (tmp$ret$2) {
|
|
396
|
-
var qValue = this.
|
|
397
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
398
|
-
get_LOGGER().
|
|
399
|
-
accept(this.
|
|
396
|
+
var qValue = this.e5i_1.b3s_1.t5h_1;
|
|
397
|
+
var contentTypeToSend = qValue == null ? element_1.n5h_1 : element_1.n5h_1.j2w('q', qValue.toString());
|
|
398
|
+
get_LOGGER().d2u('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.g5i_1.m3j_1.toString());
|
|
399
|
+
accept(this.g5i_1, contentTypeToSend);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
var tmp_5;
|
|
404
|
-
var tmp_6 = this.
|
|
404
|
+
var tmp_6 = this.h5i_1;
|
|
405
405
|
if (tmp_6 instanceof OutgoingContent) {
|
|
406
406
|
tmp_5 = true;
|
|
407
407
|
} else {
|
|
408
|
-
var tmp0_1 = this.
|
|
408
|
+
var tmp0_1 = this.f5i_1;
|
|
409
409
|
var tmp$ret$4;
|
|
410
410
|
l$ret$5: do {
|
|
411
411
|
var tmp_7;
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
var _iterator__ex2g4s_3 = tmp0_1.p();
|
|
422
422
|
while (_iterator__ex2g4s_3.q()) {
|
|
423
423
|
var element_3 = _iterator__ex2g4s_3.r();
|
|
424
|
-
if (element_3.
|
|
424
|
+
if (element_3.ob(this.h5i_1)) {
|
|
425
425
|
tmp$ret$4 = true;
|
|
426
426
|
break l$ret$5;
|
|
427
427
|
}
|
|
@@ -433,36 +433,36 @@
|
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
if (tmp_5) {
|
|
436
|
-
get_LOGGER().
|
|
436
|
+
get_LOGGER().d2u('Body type ' + toString(getKClassFromExpression(this.h5i_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.g5i_1.m3j_1.toString() + '.'));
|
|
437
437
|
return null;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
var tmp_8 = this;
|
|
441
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
441
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.g5i_1);
|
|
442
442
|
var tmp_9;
|
|
443
443
|
if (tmp0_elvis_lhs_0 == null) {
|
|
444
|
-
this.
|
|
445
|
-
get_LOGGER().
|
|
444
|
+
this.e5i_1;
|
|
445
|
+
get_LOGGER().d2u("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.g5i_1.m3j_1.toString() + '.');
|
|
446
446
|
return null;
|
|
447
447
|
} else {
|
|
448
448
|
tmp_9 = tmp0_elvis_lhs_0;
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
-
tmp_8.
|
|
452
|
-
var tmp_10 = this.
|
|
451
|
+
tmp_8.k5i_1 = tmp_9;
|
|
452
|
+
var tmp_10 = this.h5i_1;
|
|
453
453
|
if (tmp_10 instanceof Unit) {
|
|
454
|
-
get_LOGGER().
|
|
455
|
-
this.
|
|
454
|
+
get_LOGGER().d2u('Sending empty body for ' + this.g5i_1.m3j_1.toString());
|
|
455
|
+
this.g5i_1.o3j_1.w2p(HttpHeaders_getInstance().j2x_1);
|
|
456
456
|
return EmptyContent_getInstance();
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
var tmp_11 = this;
|
|
460
|
-
var tmp0_2 = this.
|
|
460
|
+
var tmp0_2 = this.d5i_1;
|
|
461
461
|
var destination_0 = ArrayList_init_$Create$();
|
|
462
462
|
var _iterator__ex2g4s_4 = tmp0_2.p();
|
|
463
463
|
while (_iterator__ex2g4s_4.q()) {
|
|
464
464
|
var element_4 = _iterator__ex2g4s_4.r();
|
|
465
|
-
if (element_4.
|
|
465
|
+
if (element_4.o5h_1.q5h(this.k5i_1)) {
|
|
466
466
|
destination_0.k(element_4);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
@@ -477,44 +477,44 @@
|
|
|
477
477
|
var tmp1_elvis_lhs = tmp_12;
|
|
478
478
|
var tmp_13;
|
|
479
479
|
if (tmp1_elvis_lhs == null) {
|
|
480
|
-
this.
|
|
481
|
-
get_LOGGER().
|
|
480
|
+
this.e5i_1;
|
|
481
|
+
get_LOGGER().d2u('None of the registered converters match request Content-Type=' + this.k5i_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.g5i_1.m3j_1.toString() + '.'));
|
|
482
482
|
return null;
|
|
483
483
|
} else {
|
|
484
484
|
tmp_13 = tmp1_elvis_lhs;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
tmp_11.
|
|
488
|
-
if (this.
|
|
489
|
-
get_LOGGER().
|
|
487
|
+
tmp_11.l5i_1 = tmp_13;
|
|
488
|
+
if (this.g5i_1.o4d() == null) {
|
|
489
|
+
get_LOGGER().d2u('Request has unknown body type. Skipping ContentNegotiation for ' + this.g5i_1.m3j_1.toString() + '.');
|
|
490
490
|
return null;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
this.
|
|
493
|
+
this.g5i_1.o3j_1.w2p(HttpHeaders_getInstance().j2x_1);
|
|
494
494
|
var tmp_14 = this;
|
|
495
|
-
tmp_14.
|
|
496
|
-
this.
|
|
495
|
+
tmp_14.m5i_1 = this.l5i_1;
|
|
496
|
+
this.j9_1 = 1;
|
|
497
497
|
continue $sm;
|
|
498
498
|
case 1:
|
|
499
|
-
this.
|
|
500
|
-
this.
|
|
501
|
-
this.
|
|
499
|
+
this.o5i_1 = this.m5i_1;
|
|
500
|
+
this.p5i_1 = this.o5i_1.p();
|
|
501
|
+
this.j9_1 = 2;
|
|
502
502
|
continue $sm;
|
|
503
503
|
case 2:
|
|
504
|
-
if (!this.
|
|
505
|
-
this.
|
|
504
|
+
if (!this.p5i_1.q()) {
|
|
505
|
+
this.j9_1 = 5;
|
|
506
506
|
continue $sm;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
this.
|
|
509
|
+
this.q5i_1 = this.p5i_1.r();
|
|
510
510
|
var tmp_15 = this;
|
|
511
|
-
tmp_15.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
514
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
515
|
-
var tmp_16 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
516
|
-
var tmp_17 = ensureNotNull(this.
|
|
517
|
-
var this_0 = this.
|
|
511
|
+
tmp_15.r5i_1 = this.q5i_1;
|
|
512
|
+
this.s5i_1 = this.r5i_1;
|
|
513
|
+
this.j9_1 = 3;
|
|
514
|
+
var tmp0_elvis_lhs_1 = charset(this.k5i_1);
|
|
515
|
+
var tmp_16 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().h1z_1 : tmp0_elvis_lhs_1;
|
|
516
|
+
var tmp_17 = ensureNotNull(this.g5i_1.o4d());
|
|
517
|
+
var this_0 = this.h5i_1;
|
|
518
518
|
var tmp_18;
|
|
519
519
|
if (!equals(this_0, NullBody_instance)) {
|
|
520
520
|
tmp_18 = this_0;
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
tmp_18 = null;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
suspendResult = this.
|
|
525
|
+
suspendResult = this.s5i_1.m5h_1.s5k(this.k5i_1, tmp_16, tmp_17, tmp_18, this);
|
|
526
526
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
527
527
|
return suspendResult;
|
|
528
528
|
}
|
|
@@ -531,37 +531,37 @@
|
|
|
531
531
|
case 3:
|
|
532
532
|
var result = suspendResult;
|
|
533
533
|
if (!(result == null)) {
|
|
534
|
-
get_LOGGER().
|
|
534
|
+
get_LOGGER().d2u('Converted request body using ' + toString(this.s5i_1.m5h_1) + ' for ' + this.g5i_1.m3j_1.toString());
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
var result_0 = result;
|
|
538
538
|
if (!(result_0 == null)) {
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
539
|
+
this.n5i_1 = result_0;
|
|
540
|
+
this.j9_1 = 6;
|
|
541
541
|
continue $sm;
|
|
542
542
|
} else {
|
|
543
|
-
this.
|
|
543
|
+
this.j9_1 = 4;
|
|
544
544
|
continue $sm;
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
case 4:
|
|
548
|
-
this.
|
|
548
|
+
this.j9_1 = 2;
|
|
549
549
|
continue $sm;
|
|
550
550
|
case 5:
|
|
551
|
-
this.
|
|
551
|
+
this.n5i_1 = null;
|
|
552
552
|
if (false) {
|
|
553
|
-
this.
|
|
553
|
+
this.j9_1 = 1;
|
|
554
554
|
continue $sm;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
this.
|
|
557
|
+
this.j9_1 = 6;
|
|
558
558
|
continue $sm;
|
|
559
559
|
case 6:
|
|
560
|
-
var tmp2_elvis_lhs = this.
|
|
560
|
+
var tmp2_elvis_lhs = this.n5i_1;
|
|
561
561
|
var tmp_19;
|
|
562
562
|
if (tmp2_elvis_lhs == null) {
|
|
563
|
-
var tmp_20 = "Can't convert " + toString(this.
|
|
564
|
-
throw new ContentConverterException(tmp_20 + joinToString(this.
|
|
563
|
+
var tmp_20 = "Can't convert " + toString(this.h5i_1) + ' with contentType ' + this.k5i_1.toString() + ' using converters ';
|
|
564
|
+
throw new ContentConverterException(tmp_20 + joinToString(this.l5i_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
565
565
|
} else {
|
|
566
566
|
tmp_19 = tmp2_elvis_lhs;
|
|
567
567
|
}
|
|
@@ -569,56 +569,56 @@
|
|
|
569
569
|
var serializedContent = tmp_19;
|
|
570
570
|
return serializedContent;
|
|
571
571
|
case 7:
|
|
572
|
-
throw this.
|
|
572
|
+
throw this.m9_1;
|
|
573
573
|
}
|
|
574
574
|
} catch ($p) {
|
|
575
575
|
var e = $p;
|
|
576
|
-
if (this.
|
|
576
|
+
if (this.k9_1 === 7) {
|
|
577
577
|
throw e;
|
|
578
578
|
} else {
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
579
|
+
this.j9_1 = this.k9_1;
|
|
580
|
+
this.m9_1 = e;
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
while (true);
|
|
584
584
|
};
|
|
585
585
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
586
586
|
CoroutineImpl.call(this, resultContinuation);
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
587
|
+
this.b5j_1 = ignoredTypes;
|
|
588
|
+
this.c5j_1 = registrations;
|
|
589
|
+
this.d5j_1 = $this_createClientPlugin;
|
|
590
|
+
this.e5j_1 = requestUrl;
|
|
591
|
+
this.f5j_1 = info;
|
|
592
|
+
this.g5j_1 = body;
|
|
593
|
+
this.h5j_1 = responseContentType;
|
|
594
|
+
this.i5j_1 = charset;
|
|
595
595
|
}
|
|
596
|
-
protoOf($invoke$convertResponseCOROUTINE$).
|
|
597
|
-
var suspendResult = this.
|
|
596
|
+
protoOf($invoke$convertResponseCOROUTINE$).r9 = function () {
|
|
597
|
+
var suspendResult = this.l9_1;
|
|
598
598
|
$sm: do
|
|
599
599
|
try {
|
|
600
|
-
var tmp = this.
|
|
600
|
+
var tmp = this.j9_1;
|
|
601
601
|
switch (tmp) {
|
|
602
602
|
case 0:
|
|
603
|
-
this.
|
|
604
|
-
var tmp_0 = this.
|
|
603
|
+
this.k9_1 = 2;
|
|
604
|
+
var tmp_0 = this.g5j_1;
|
|
605
605
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
606
|
-
get_LOGGER().
|
|
606
|
+
get_LOGGER().d2u('Response body is already transformed. Skipping ContentNegotiation for ' + this.e5j_1.toString() + '.');
|
|
607
607
|
return null;
|
|
608
608
|
}
|
|
609
609
|
|
|
610
|
-
if (this.
|
|
611
|
-
get_LOGGER().
|
|
610
|
+
if (this.b5j_1.w1(this.f5j_1.m2t_1)) {
|
|
611
|
+
get_LOGGER().d2u('Response body type ' + toString(this.f5j_1.m2t_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.e5j_1.toString() + '.'));
|
|
612
612
|
return null;
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
var tmp_1 = this;
|
|
616
|
-
var tmp0 = this.
|
|
616
|
+
var tmp0 = this.c5j_1;
|
|
617
617
|
var destination = ArrayList_init_$Create$();
|
|
618
618
|
var _iterator__ex2g4s = tmp0.p();
|
|
619
619
|
while (_iterator__ex2g4s.q()) {
|
|
620
620
|
var element = _iterator__ex2g4s.r();
|
|
621
|
-
if (element.
|
|
621
|
+
if (element.o5h_1.q5h(this.h5j_1)) {
|
|
622
622
|
destination.k(element);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
var _iterator__ex2g4s_0 = destination.p();
|
|
628
628
|
while (_iterator__ex2g4s_0.q()) {
|
|
629
629
|
var item = _iterator__ex2g4s_0.r();
|
|
630
|
-
destination_0.k(item.
|
|
630
|
+
destination_0.k(item.m5h_1);
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
var tmp_2;
|
|
@@ -640,16 +640,16 @@
|
|
|
640
640
|
var tmp0_elvis_lhs = tmp_2;
|
|
641
641
|
var tmp_3;
|
|
642
642
|
if (tmp0_elvis_lhs == null) {
|
|
643
|
-
this.
|
|
644
|
-
get_LOGGER().
|
|
643
|
+
this.d5j_1;
|
|
644
|
+
get_LOGGER().d2u('None of the registered converters match response with Content-Type=' + this.h5j_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.e5j_1.toString() + '.'));
|
|
645
645
|
return null;
|
|
646
646
|
} else {
|
|
647
647
|
tmp_3 = tmp0_elvis_lhs;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
tmp_1.
|
|
651
|
-
this.
|
|
652
|
-
suspendResult = deserialize(this.
|
|
650
|
+
tmp_1.j5j_1 = tmp_3;
|
|
651
|
+
this.j9_1 = 1;
|
|
652
|
+
suspendResult = deserialize(this.j5j_1, this.g5j_1, this.f5j_1, this.i5j_1, this);
|
|
653
653
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
654
654
|
return suspendResult;
|
|
655
655
|
}
|
|
@@ -658,20 +658,20 @@
|
|
|
658
658
|
case 1:
|
|
659
659
|
var result = suspendResult;
|
|
660
660
|
if (!isInterface(result, ByteReadChannel)) {
|
|
661
|
-
get_LOGGER().
|
|
661
|
+
get_LOGGER().d2u('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.e5j_1.toString() + '.');
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
return result;
|
|
665
665
|
case 2:
|
|
666
|
-
throw this.
|
|
666
|
+
throw this.m9_1;
|
|
667
667
|
}
|
|
668
668
|
} catch ($p) {
|
|
669
669
|
var e = $p;
|
|
670
|
-
if (this.
|
|
670
|
+
if (this.k9_1 === 2) {
|
|
671
671
|
throw e;
|
|
672
672
|
} else {
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
673
|
+
this.j9_1 = this.k9_1;
|
|
674
|
+
this.m9_1 = e;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
while (true);
|
|
@@ -681,7 +681,7 @@
|
|
|
681
681
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
682
682
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
683
683
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
684
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
684
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().xc(), PrimitiveClasses_getInstance().tc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
685
685
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
686
686
|
var name = 'ExcludedContentTypesAttr';
|
|
687
687
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -709,12 +709,12 @@
|
|
|
709
709
|
}
|
|
710
710
|
function JsonContentTypeMatcher() {
|
|
711
711
|
}
|
|
712
|
-
protoOf(JsonContentTypeMatcher).
|
|
713
|
-
if (contentType.
|
|
712
|
+
protoOf(JsonContentTypeMatcher).q5h = function (contentType) {
|
|
713
|
+
if (contentType.l2w(Application_getInstance().r2u_1)) {
|
|
714
714
|
return true;
|
|
715
715
|
}
|
|
716
|
-
var value = contentType.
|
|
717
|
-
return Application_getInstance().
|
|
716
|
+
var value = contentType.k2w().toString();
|
|
717
|
+
return Application_getInstance().l2v(value) && endsWith(value, '+json', true);
|
|
718
718
|
};
|
|
719
719
|
var JsonContentTypeMatcher_instance;
|
|
720
720
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
736
|
//region block: post-declaration
|
|
737
|
-
protoOf(ContentNegotiationConfig).
|
|
737
|
+
protoOf(ContentNegotiationConfig).b3f = register$default;
|
|
738
738
|
//endregion
|
|
739
739
|
//region block: init
|
|
740
740
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|