@icure/cardinal-sdk 2.0.0-PREVIEW-10 → 2.0.0-PREVIEW-13
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/Kermit-kermit-core.mjs +42 -42
- package/Kermit-kermit.mjs +8 -8
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +3919 -3777
- package/KotlinBigInteger-bignum.mjs +1434 -1470
- package/api/AnonymousHealthcarePartyApi.d.mts +2 -2
- package/cardinal-sdk-ts.d.mts +338 -100
- package/cardinal-sdk-ts.mjs +56590 -56248
- package/cardinal-sdk.mjs +126945 -106218
- package/kerberus.mjs +381 -381
- package/kotlin-kotlin-stdlib.mjs +3412 -2764
- package/kotlinx-atomicfu.mjs +14 -14
- package/kotlinx-coroutines-core.mjs +2690 -2687
- package/kotlinx-io-kotlinx-io-bytestring.mjs +47 -47
- package/kotlinx-io-kotlinx-io-core.mjs +539 -539
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2149 -2111
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +2047 -2029
- package/kryptom-lib.mjs +2065 -2081
- package/ktor-ktor-client-content-negotiation.mjs +217 -217
- package/ktor-ktor-client-core.mjs +2997 -2993
- package/ktor-ktor-events.mjs +8 -8
- package/ktor-ktor-http-cio.mjs +538 -537
- package/ktor-ktor-http.mjs +799 -927
- package/ktor-ktor-io.mjs +1079 -1079
- package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
- package/ktor-ktor-serialization-kotlinx.mjs +270 -270
- package/ktor-ktor-serialization.mjs +129 -129
- package/ktor-ktor-utils.mjs +614 -600
- package/ktor-ktor-websockets.mjs +751 -750
- package/model.d.mts +0 -1
- package/model.mjs +0 -1
- package/package.json +2 -3
- package/ktor-ktor-client-ktor-client-core.mjs +0 -8986
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.mjs +0 -756
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-websockets.mjs +0 -2
- package/ktor-ktor-http-ktor-http-cio.mjs +0 -1996
- package/ktor-ktor-shared-ktor-events.mjs +0 -79
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.mjs +0 -44
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.mjs +0 -857
- package/ktor-ktor-shared-ktor-serialization.mjs +0 -371
- package/ktor-ktor-shared-ktor-sse.mjs +0 -2
- package/ktor-ktor-shared-ktor-websocket-serialization.mjs +0 -2
- package/ktor-ktor-shared-ktor-websockets.mjs +0 -2334
- package/model/UserAndHealthcareParty.d.mts +0 -7
- package/model/UserAndHealthcareParty.mjs +0 -6
|
@@ -1,756 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
protoOf180f3jzyo7rfj as protoOf,
|
|
3
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
4
|
-
plus1ogy4liedzq5j as plus,
|
|
5
|
-
toMutableSetjdpdbr9jsqq8 as toMutableSet,
|
|
6
|
-
ArrayList_init_$Create$2qnngtk1et9r9 as ArrayList_init_$Create$,
|
|
7
|
-
Unit_instance104q5opgivhr8 as Unit_instance,
|
|
8
|
-
VOID7hggqo3abtya as VOID,
|
|
9
|
-
Exceptiondt2hlxn7j7vw as Exception,
|
|
10
|
-
Exception_init_$Init$32vb8wlewqrmh as Exception_init_$Init$,
|
|
11
|
-
captureStack1fzi4aczwc4hg as captureStack,
|
|
12
|
-
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
13
|
-
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
14
|
-
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
15
|
-
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
16
|
-
isInterface3d6p8outrmvmk as isInterface,
|
|
17
|
-
toString1pkumu07cwy4m as toString,
|
|
18
|
-
Collection1k04j3hzsbod0 as Collection,
|
|
19
|
-
emptyList1g2z5xcrvp2zy as emptyList,
|
|
20
|
-
getKClassFromExpression3vpejubogshaw as getKClassFromExpression,
|
|
21
|
-
Unitkvevlwgzwiuc as Unit,
|
|
22
|
-
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
23
|
-
equals2au1ep9vhcato as equals,
|
|
24
|
-
joinToString1cxrrlmo0chqs as joinToString,
|
|
25
|
-
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
26
|
-
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
27
|
-
ArrayList_init_$Create$1s1wkrw82c0iw as ArrayList_init_$Create$_0,
|
|
28
|
-
PrimitiveClasses_getInstance28ukyr6i8fs0q as PrimitiveClasses_getInstance,
|
|
29
|
-
getKClass1s3j9wy1cofik as getKClass,
|
|
30
|
-
setOf45ia9pnfhe90 as setOf,
|
|
31
|
-
KtList3hktaavzmj137 as KtList,
|
|
32
|
-
arrayOf1akklvh2at202 as arrayOf,
|
|
33
|
-
createKType1lgox3mzhchp5 as createKType,
|
|
34
|
-
createInvariantKTypeProjection3sfd0u0y62ozd as createInvariantKTypeProjection,
|
|
35
|
-
endsWith3cq61xxngobwh as endsWith,
|
|
36
|
-
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
37
|
-
LinkedHashSet_init_$Create$3qv13l7kzf0ni as LinkedHashSet_init_$Create$,
|
|
38
|
-
} from './kotlin-kotlin-stdlib.mjs';
|
|
39
|
-
import {
|
|
40
|
-
Application_getInstance1d4ly18wdhadx as Application_getInstance,
|
|
41
|
-
contentType317fn4f991q9a as contentType,
|
|
42
|
-
HttpHeaders_getInstancekqele34vb34f as HttpHeaders_getInstance,
|
|
43
|
-
Companion_getInstance2t5xhismubxj4 as Companion_getInstance,
|
|
44
|
-
OutgoingContent3t2ohmyam9o76 as OutgoingContent,
|
|
45
|
-
contentType2zzm38yxo3syt as contentType_0,
|
|
46
|
-
charset1dribv3ku48b1 as charset,
|
|
47
|
-
NullBody_instance9oj4j8z4op1j as NullBody_instance,
|
|
48
|
-
HttpStatusCode3o1wkms10pg4k as HttpStatusCode,
|
|
49
|
-
ContentType1svlpabm9v7iz as ContentType,
|
|
50
|
-
} from './ktor-ktor-http.mjs';
|
|
51
|
-
import {
|
|
52
|
-
register$default2n93tkqtk1ptz as register$default,
|
|
53
|
-
Configuration20xgygxdzhlk5 as Configuration,
|
|
54
|
-
suitableCharset1jgdcpdzbzgzn as suitableCharset,
|
|
55
|
-
deserialize17rec5pkkk30w as deserialize,
|
|
56
|
-
} from './ktor-ktor-shared-ktor-serialization.mjs';
|
|
57
|
-
import {
|
|
58
|
-
Charsets_getInstancemd62gu5po4os as Charsets_getInstance,
|
|
59
|
-
ByteReadChannel2wzou76jce72d as ByteReadChannel,
|
|
60
|
-
} from './ktor-ktor-io.mjs';
|
|
61
|
-
import {
|
|
62
|
-
TransformRequestBodyContext3ll40opqaho0d as TransformRequestBodyContext,
|
|
63
|
-
HttpRequestBuilder15f2nnx9sjuv1 as HttpRequestBuilder,
|
|
64
|
-
TransformResponseBodyContext1axf7xx6ifwbj as TransformResponseBodyContext,
|
|
65
|
-
HttpResponse1532ob1hsse1y as HttpResponse,
|
|
66
|
-
get_request3dwcif5y0fvf1 as get_request,
|
|
67
|
-
accept2gi3b7wj4jds9 as accept,
|
|
68
|
-
EmptyContent_getInstance14idgfcuyuug as EmptyContent_getInstance,
|
|
69
|
-
createClientPluginjwpvufjows5r as createClientPlugin,
|
|
70
|
-
} from './ktor-ktor-client-ktor-client-core.mjs';
|
|
71
|
-
import {
|
|
72
|
-
TypeInfo2nbxsuf4v8os2 as TypeInfo,
|
|
73
|
-
KtorSimpleLogger1xdphsp5l4e48 as KtorSimpleLogger,
|
|
74
|
-
AttributeKey3aq8ytwgx54f7 as AttributeKey,
|
|
75
|
-
} from './ktor-ktor-utils.mjs';
|
|
76
|
-
//region block: imports
|
|
77
|
-
//endregion
|
|
78
|
-
//region block: pre-declaration
|
|
79
|
-
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
80
|
-
initMetadataForClass(ContentNegotiationConfig$defaultMatcher$1);
|
|
81
|
-
initMetadataForClass(ContentNegotiationConfig, 'ContentNegotiationConfig', ContentNegotiationConfig, VOID, [Configuration]);
|
|
82
|
-
initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
|
|
83
|
-
initMetadataForLambda(ContentNegotiation$lambda$slambda, CoroutineImpl, VOID, [4]);
|
|
84
|
-
initMetadataForLambda(ContentNegotiation$lambda$slambda_1, CoroutineImpl, VOID, [4]);
|
|
85
|
-
initMetadataForCoroutine($invoke$convertRequestCOROUTINE$0, CoroutineImpl);
|
|
86
|
-
initMetadataForCoroutine($invoke$convertResponseCOROUTINE$1, CoroutineImpl);
|
|
87
|
-
initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
|
|
88
|
-
//endregion
|
|
89
|
-
function get_LOGGER() {
|
|
90
|
-
_init_properties_ContentNegotiation_kt__o183go();
|
|
91
|
-
return LOGGER;
|
|
92
|
-
}
|
|
93
|
-
var LOGGER;
|
|
94
|
-
function get_DefaultCommonIgnoredTypes() {
|
|
95
|
-
_init_properties_ContentNegotiation_kt__o183go();
|
|
96
|
-
return DefaultCommonIgnoredTypes;
|
|
97
|
-
}
|
|
98
|
-
var DefaultCommonIgnoredTypes;
|
|
99
|
-
function get_ExcludedContentTypes() {
|
|
100
|
-
_init_properties_ContentNegotiation_kt__o183go();
|
|
101
|
-
return ExcludedContentTypes;
|
|
102
|
-
}
|
|
103
|
-
var ExcludedContentTypes;
|
|
104
|
-
function get_ContentNegotiation() {
|
|
105
|
-
_init_properties_ContentNegotiation_kt__o183go();
|
|
106
|
-
return ContentNegotiation;
|
|
107
|
-
}
|
|
108
|
-
var ContentNegotiation;
|
|
109
|
-
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
110
|
-
this.l4w_1 = converter;
|
|
111
|
-
this.m4w_1 = contentTypeToSend;
|
|
112
|
-
this.n4w_1 = contentTypeMatcher;
|
|
113
|
-
}
|
|
114
|
-
function defaultMatcher($this, pattern) {
|
|
115
|
-
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
116
|
-
}
|
|
117
|
-
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
118
|
-
this.o4w_1 = $pattern;
|
|
119
|
-
}
|
|
120
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).p4w = function (contentType) {
|
|
121
|
-
return contentType.z2v(this.o4w_1);
|
|
122
|
-
};
|
|
123
|
-
function ContentNegotiationConfig() {
|
|
124
|
-
this.q4w_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
125
|
-
var tmp = this;
|
|
126
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
127
|
-
tmp.r4w_1 = ArrayList_init_$Create$();
|
|
128
|
-
this.s4w_1 = null;
|
|
129
|
-
}
|
|
130
|
-
protoOf(ContentNegotiationConfig).i3l = function (contentType, converter, configuration) {
|
|
131
|
-
var matcher = contentType.z2v(Application_getInstance().f2u_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
132
|
-
this.t4w(contentType, converter, matcher, configuration);
|
|
133
|
-
};
|
|
134
|
-
protoOf(ContentNegotiationConfig).t4w = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
135
|
-
// Inline function 'kotlin.apply' call
|
|
136
|
-
configuration(converter);
|
|
137
|
-
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
138
|
-
this.r4w_1.k(registration);
|
|
139
|
-
};
|
|
140
|
-
function ContentConverterException(message) {
|
|
141
|
-
Exception_init_$Init$(message, this);
|
|
142
|
-
captureStack(this, ContentConverterException);
|
|
143
|
-
}
|
|
144
|
-
function ContentNegotiationConfig$_init_$ref_1ne3ob() {
|
|
145
|
-
var l = function () {
|
|
146
|
-
return new ContentNegotiationConfig();
|
|
147
|
-
};
|
|
148
|
-
l.callableName = '<init>';
|
|
149
|
-
return l;
|
|
150
|
-
}
|
|
151
|
-
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
152
|
-
_init_properties_ContentNegotiation_kt__o183go();
|
|
153
|
-
var registrations = $this$createClientPlugin.b3y_1.r4w_1;
|
|
154
|
-
var ignoredTypes = $this$createClientPlugin.b3y_1.q4w_1;
|
|
155
|
-
$this$createClientPlugin.v4f(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
156
|
-
$this$createClientPlugin.r48(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
157
|
-
return Unit_instance;
|
|
158
|
-
}
|
|
159
|
-
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
160
|
-
var tmp = new $invoke$convertRequestCOROUTINE$0(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
161
|
-
tmp.m9_1 = Unit_instance;
|
|
162
|
-
tmp.n9_1 = null;
|
|
163
|
-
return tmp.s9();
|
|
164
|
-
}
|
|
165
|
-
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
166
|
-
charset = charset === VOID ? Charsets_getInstance().p20_1 : charset;
|
|
167
|
-
var tmp = new $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
168
|
-
tmp.m9_1 = Unit_instance;
|
|
169
|
-
tmp.n9_1 = null;
|
|
170
|
-
return tmp.s9();
|
|
171
|
-
}
|
|
172
|
-
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
173
|
-
this.r4y_1 = $registrations;
|
|
174
|
-
this.s4y_1 = $this_createClientPlugin;
|
|
175
|
-
this.t4y_1 = $ignoredTypes;
|
|
176
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
177
|
-
}
|
|
178
|
-
protoOf(ContentNegotiation$lambda$slambda).y4y = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
179
|
-
var tmp = this.z4y($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
180
|
-
tmp.m9_1 = Unit_instance;
|
|
181
|
-
tmp.n9_1 = null;
|
|
182
|
-
return tmp.s9();
|
|
183
|
-
};
|
|
184
|
-
protoOf(ContentNegotiation$lambda$slambda).w49 = function (p1, p2, p3, p4, $completion) {
|
|
185
|
-
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
186
|
-
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
187
|
-
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
188
|
-
return this.y4y(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
189
|
-
};
|
|
190
|
-
protoOf(ContentNegotiation$lambda$slambda).s9 = function () {
|
|
191
|
-
var suspendResult = this.m9_1;
|
|
192
|
-
$sm: do
|
|
193
|
-
try {
|
|
194
|
-
var tmp = this.k9_1;
|
|
195
|
-
switch (tmp) {
|
|
196
|
-
case 0:
|
|
197
|
-
this.l9_1 = 2;
|
|
198
|
-
this.k9_1 = 1;
|
|
199
|
-
suspendResult = invoke$convertRequest(this.r4y_1, this.s4y_1, this.t4y_1, this.v4y_1, this.w4y_1, this);
|
|
200
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
201
|
-
return suspendResult;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
continue $sm;
|
|
205
|
-
case 1:
|
|
206
|
-
return suspendResult;
|
|
207
|
-
case 2:
|
|
208
|
-
throw this.n9_1;
|
|
209
|
-
}
|
|
210
|
-
} catch ($p) {
|
|
211
|
-
var e = $p;
|
|
212
|
-
if (this.l9_1 === 2) {
|
|
213
|
-
throw e;
|
|
214
|
-
} else {
|
|
215
|
-
this.k9_1 = this.l9_1;
|
|
216
|
-
this.n9_1 = e;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
while (true);
|
|
220
|
-
};
|
|
221
|
-
protoOf(ContentNegotiation$lambda$slambda).z4y = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
222
|
-
var i = new ContentNegotiation$lambda$slambda(this.r4y_1, this.s4y_1, this.t4y_1, completion);
|
|
223
|
-
i.u4y_1 = $this$transformRequestBody;
|
|
224
|
-
i.v4y_1 = request;
|
|
225
|
-
i.w4y_1 = body;
|
|
226
|
-
i.x4y_1 = _unused_var__etf5q3;
|
|
227
|
-
return i;
|
|
228
|
-
};
|
|
229
|
-
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
230
|
-
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
231
|
-
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
232
|
-
return i.y4y($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
233
|
-
};
|
|
234
|
-
l.$arity = 4;
|
|
235
|
-
return l;
|
|
236
|
-
}
|
|
237
|
-
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
238
|
-
this.i4z_1 = $ignoredTypes;
|
|
239
|
-
this.j4z_1 = $registrations;
|
|
240
|
-
this.k4z_1 = $this_createClientPlugin;
|
|
241
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
242
|
-
}
|
|
243
|
-
protoOf(ContentNegotiation$lambda$slambda_1).u49 = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
244
|
-
var tmp = this.v49($this$transformResponseBody, response, body, info, $completion);
|
|
245
|
-
tmp.m9_1 = Unit_instance;
|
|
246
|
-
tmp.n9_1 = null;
|
|
247
|
-
return tmp.s9();
|
|
248
|
-
};
|
|
249
|
-
protoOf(ContentNegotiation$lambda$slambda_1).w49 = function (p1, p2, p3, p4, $completion) {
|
|
250
|
-
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
251
|
-
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
252
|
-
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
253
|
-
return this.u49(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
254
|
-
};
|
|
255
|
-
protoOf(ContentNegotiation$lambda$slambda_1).s9 = function () {
|
|
256
|
-
var suspendResult = this.m9_1;
|
|
257
|
-
$sm: do
|
|
258
|
-
try {
|
|
259
|
-
var tmp = this.k9_1;
|
|
260
|
-
switch (tmp) {
|
|
261
|
-
case 0:
|
|
262
|
-
this.l9_1 = 2;
|
|
263
|
-
var tmp_0 = this;
|
|
264
|
-
var tmp0_elvis_lhs = contentType(this.m4z_1);
|
|
265
|
-
var tmp_1;
|
|
266
|
-
if (tmp0_elvis_lhs == null) {
|
|
267
|
-
return null;
|
|
268
|
-
} else {
|
|
269
|
-
tmp_1 = tmp0_elvis_lhs;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
tmp_0.p4z_1 = tmp_1;
|
|
273
|
-
this.q4z_1 = suitableCharset(get_request(this.m4z_1).i30());
|
|
274
|
-
this.k9_1 = 1;
|
|
275
|
-
suspendResult = invoke$convertResponse(this.i4z_1, this.j4z_1, this.k4z_1, get_request(this.m4z_1).c3s(), this.o4z_1, this.n4z_1, this.p4z_1, this.q4z_1, this);
|
|
276
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
277
|
-
return suspendResult;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
continue $sm;
|
|
281
|
-
case 1:
|
|
282
|
-
return suspendResult;
|
|
283
|
-
case 2:
|
|
284
|
-
throw this.n9_1;
|
|
285
|
-
}
|
|
286
|
-
} catch ($p) {
|
|
287
|
-
var e = $p;
|
|
288
|
-
if (this.l9_1 === 2) {
|
|
289
|
-
throw e;
|
|
290
|
-
} else {
|
|
291
|
-
this.k9_1 = this.l9_1;
|
|
292
|
-
this.n9_1 = e;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
while (true);
|
|
296
|
-
};
|
|
297
|
-
protoOf(ContentNegotiation$lambda$slambda_1).v49 = function ($this$transformResponseBody, response, body, info, completion) {
|
|
298
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.i4z_1, this.j4z_1, this.k4z_1, completion);
|
|
299
|
-
i.l4z_1 = $this$transformResponseBody;
|
|
300
|
-
i.m4z_1 = response;
|
|
301
|
-
i.n4z_1 = body;
|
|
302
|
-
i.o4z_1 = info;
|
|
303
|
-
return i;
|
|
304
|
-
};
|
|
305
|
-
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
306
|
-
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
307
|
-
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
308
|
-
return i.u49($this$transformResponseBody, response, body, info, $completion);
|
|
309
|
-
};
|
|
310
|
-
l.$arity = 4;
|
|
311
|
-
return l;
|
|
312
|
-
}
|
|
313
|
-
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
314
|
-
_init_properties_ContentNegotiation_kt__o183go();
|
|
315
|
-
return toString(it.l4w_1);
|
|
316
|
-
}
|
|
317
|
-
function $invoke$convertRequestCOROUTINE$0(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
318
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
319
|
-
this.c4x_1 = registrations;
|
|
320
|
-
this.d4x_1 = $this_createClientPlugin;
|
|
321
|
-
this.e4x_1 = ignoredTypes;
|
|
322
|
-
this.f4x_1 = request;
|
|
323
|
-
this.g4x_1 = body;
|
|
324
|
-
}
|
|
325
|
-
protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
326
|
-
var suspendResult = this.m9_1;
|
|
327
|
-
$sm: do
|
|
328
|
-
try {
|
|
329
|
-
var tmp = this.k9_1;
|
|
330
|
-
switch (tmp) {
|
|
331
|
-
case 0:
|
|
332
|
-
this.l9_1 = 7;
|
|
333
|
-
var tmp_0 = this;
|
|
334
|
-
var tmp_1;
|
|
335
|
-
if (this.f4x_1.v3p_1.w2n(get_ExcludedContentTypes())) {
|
|
336
|
-
var excluded = this.f4x_1.v3p_1.u2n(get_ExcludedContentTypes());
|
|
337
|
-
var tmp0 = this.c4x_1;
|
|
338
|
-
var destination = ArrayList_init_$Create$();
|
|
339
|
-
var _iterator__ex2g4s = tmp0.q();
|
|
340
|
-
while (_iterator__ex2g4s.r()) {
|
|
341
|
-
var element = _iterator__ex2g4s.s();
|
|
342
|
-
var tmp$ret$0;
|
|
343
|
-
l$ret$1: do {
|
|
344
|
-
var tmp_2;
|
|
345
|
-
if (isInterface(excluded, Collection)) {
|
|
346
|
-
tmp_2 = excluded.h();
|
|
347
|
-
} else {
|
|
348
|
-
tmp_2 = false;
|
|
349
|
-
}
|
|
350
|
-
if (tmp_2) {
|
|
351
|
-
tmp$ret$0 = true;
|
|
352
|
-
break l$ret$1;
|
|
353
|
-
}
|
|
354
|
-
var _iterator__ex2g4s_0 = excluded.q();
|
|
355
|
-
while (_iterator__ex2g4s_0.r()) {
|
|
356
|
-
var element_0 = _iterator__ex2g4s_0.s();
|
|
357
|
-
if (element.m4w_1.z2v(element_0)) {
|
|
358
|
-
tmp$ret$0 = false;
|
|
359
|
-
break l$ret$1;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
tmp$ret$0 = true;
|
|
363
|
-
}
|
|
364
|
-
while (false);
|
|
365
|
-
if (tmp$ret$0) {
|
|
366
|
-
destination.k(element);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
tmp_1 = destination;
|
|
370
|
-
} else {
|
|
371
|
-
tmp_1 = this.c4x_1;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
tmp_0.h4x_1 = tmp_1;
|
|
375
|
-
var tmp_3 = this;
|
|
376
|
-
var tmp0_elvis_lhs = this.f4x_1.s3p_1.l2p(HttpHeaders_getInstance().f2w_1);
|
|
377
|
-
tmp_3.i4x_1 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
378
|
-
var _iterator__ex2g4s_1 = this.h4x_1.q();
|
|
379
|
-
while (_iterator__ex2g4s_1.r()) {
|
|
380
|
-
var element_1 = _iterator__ex2g4s_1.s();
|
|
381
|
-
var tmp0_0 = this.i4x_1;
|
|
382
|
-
var tmp$ret$2;
|
|
383
|
-
l$ret$3: do {
|
|
384
|
-
var tmp_4;
|
|
385
|
-
if (isInterface(tmp0_0, Collection)) {
|
|
386
|
-
tmp_4 = tmp0_0.h();
|
|
387
|
-
} else {
|
|
388
|
-
tmp_4 = false;
|
|
389
|
-
}
|
|
390
|
-
if (tmp_4) {
|
|
391
|
-
tmp$ret$2 = true;
|
|
392
|
-
break l$ret$3;
|
|
393
|
-
}
|
|
394
|
-
var _iterator__ex2g4s_2 = tmp0_0.q();
|
|
395
|
-
while (_iterator__ex2g4s_2.r()) {
|
|
396
|
-
var element_2 = _iterator__ex2g4s_2.s();
|
|
397
|
-
if (Companion_getInstance().hn(element_2).z2v(element_1.m4w_1)) {
|
|
398
|
-
tmp$ret$2 = false;
|
|
399
|
-
break l$ret$3;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
tmp$ret$2 = true;
|
|
403
|
-
}
|
|
404
|
-
while (false);
|
|
405
|
-
if (tmp$ret$2) {
|
|
406
|
-
var qValue = this.d4x_1.b3y_1.s4w_1;
|
|
407
|
-
var contentTypeToSend = qValue == null ? element_1.m4w_1 : element_1.m4w_1.x2v('q', qValue.toString());
|
|
408
|
-
get_LOGGER().r2t('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.f4x_1.q3p_1.toString());
|
|
409
|
-
accept(this.f4x_1, contentTypeToSend);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
var tmp_5;
|
|
414
|
-
var tmp_6 = this.g4x_1;
|
|
415
|
-
if (tmp_6 instanceof OutgoingContent) {
|
|
416
|
-
tmp_5 = true;
|
|
417
|
-
} else {
|
|
418
|
-
var tmp5 = this.e4x_1;
|
|
419
|
-
var tmp$ret$4;
|
|
420
|
-
l$ret$5: do {
|
|
421
|
-
var tmp_7;
|
|
422
|
-
if (isInterface(tmp5, Collection)) {
|
|
423
|
-
tmp_7 = tmp5.h();
|
|
424
|
-
} else {
|
|
425
|
-
tmp_7 = false;
|
|
426
|
-
}
|
|
427
|
-
if (tmp_7) {
|
|
428
|
-
tmp$ret$4 = false;
|
|
429
|
-
break l$ret$5;
|
|
430
|
-
}
|
|
431
|
-
var _iterator__ex2g4s_3 = tmp5.q();
|
|
432
|
-
while (_iterator__ex2g4s_3.r()) {
|
|
433
|
-
var element_3 = _iterator__ex2g4s_3.s();
|
|
434
|
-
if (element_3.tb(this.g4x_1)) {
|
|
435
|
-
tmp$ret$4 = true;
|
|
436
|
-
break l$ret$5;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
tmp$ret$4 = false;
|
|
440
|
-
}
|
|
441
|
-
while (false);
|
|
442
|
-
tmp_5 = tmp$ret$4;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
if (tmp_5) {
|
|
446
|
-
get_LOGGER().r2t('Body type ' + toString(getKClassFromExpression(this.g4x_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.f4x_1.q3p_1.toString() + '.'));
|
|
447
|
-
return null;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
var tmp_8 = this;
|
|
451
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.f4x_1);
|
|
452
|
-
var tmp_9;
|
|
453
|
-
if (tmp0_elvis_lhs_0 == null) {
|
|
454
|
-
this.d4x_1;
|
|
455
|
-
get_LOGGER().r2t("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.f4x_1.q3p_1.toString() + '.');
|
|
456
|
-
return null;
|
|
457
|
-
} else {
|
|
458
|
-
tmp_9 = tmp0_elvis_lhs_0;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
tmp_8.j4x_1 = tmp_9;
|
|
462
|
-
var tmp_10 = this.g4x_1;
|
|
463
|
-
if (tmp_10 instanceof Unit) {
|
|
464
|
-
get_LOGGER().r2t('Sending empty body for ' + this.f4x_1.q3p_1.toString());
|
|
465
|
-
this.f4x_1.s3p_1.x2p(HttpHeaders_getInstance().x2w_1);
|
|
466
|
-
return EmptyContent_getInstance();
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
var tmp_11 = this;
|
|
470
|
-
var tmp0_1 = this.c4x_1;
|
|
471
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
472
|
-
var _iterator__ex2g4s_4 = tmp0_1.q();
|
|
473
|
-
while (_iterator__ex2g4s_4.r()) {
|
|
474
|
-
var element_4 = _iterator__ex2g4s_4.s();
|
|
475
|
-
if (element_4.n4w_1.p4w(this.j4x_1)) {
|
|
476
|
-
destination_0.k(element_4);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
var tmp_12;
|
|
481
|
-
if (!destination_0.h()) {
|
|
482
|
-
tmp_12 = destination_0;
|
|
483
|
-
} else {
|
|
484
|
-
tmp_12 = null;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
var tmp1_elvis_lhs = tmp_12;
|
|
488
|
-
var tmp_13;
|
|
489
|
-
if (tmp1_elvis_lhs == null) {
|
|
490
|
-
this.d4x_1;
|
|
491
|
-
get_LOGGER().r2t('None of the registered converters match request Content-Type=' + this.j4x_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.f4x_1.q3p_1.toString() + '.'));
|
|
492
|
-
return null;
|
|
493
|
-
} else {
|
|
494
|
-
tmp_13 = tmp1_elvis_lhs;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
tmp_11.k4x_1 = tmp_13;
|
|
498
|
-
if (this.f4x_1.s4h() == null) {
|
|
499
|
-
get_LOGGER().r2t('Request has unknown body type. Skipping ContentNegotiation for ' + this.f4x_1.q3p_1.toString() + '.');
|
|
500
|
-
return null;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
this.f4x_1.s3p_1.x2p(HttpHeaders_getInstance().x2w_1);
|
|
504
|
-
var tmp_14 = this;
|
|
505
|
-
tmp_14.l4x_1 = this.k4x_1;
|
|
506
|
-
this.k9_1 = 1;
|
|
507
|
-
continue $sm;
|
|
508
|
-
case 1:
|
|
509
|
-
this.n4x_1 = this.l4x_1;
|
|
510
|
-
this.o4x_1 = this.n4x_1.q();
|
|
511
|
-
this.k9_1 = 2;
|
|
512
|
-
continue $sm;
|
|
513
|
-
case 2:
|
|
514
|
-
if (!this.o4x_1.r()) {
|
|
515
|
-
this.k9_1 = 5;
|
|
516
|
-
continue $sm;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
this.p4x_1 = this.o4x_1.s();
|
|
520
|
-
var tmp_15 = this;
|
|
521
|
-
tmp_15.q4x_1 = this.p4x_1;
|
|
522
|
-
this.r4x_1 = this.q4x_1;
|
|
523
|
-
this.k9_1 = 3;
|
|
524
|
-
var tmp0_elvis_lhs_1 = charset(this.j4x_1);
|
|
525
|
-
var tmp_16 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().p20_1 : tmp0_elvis_lhs_1;
|
|
526
|
-
var tmp_17 = ensureNotNull(this.f4x_1.s4h());
|
|
527
|
-
var this_0 = this.g4x_1;
|
|
528
|
-
var tmp_18;
|
|
529
|
-
if (!equals(this_0, NullBody_instance)) {
|
|
530
|
-
tmp_18 = this_0;
|
|
531
|
-
} else {
|
|
532
|
-
tmp_18 = null;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
suspendResult = this.r4x_1.l4w_1.r4z(this.j4x_1, tmp_16, tmp_17, tmp_18, this);
|
|
536
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
537
|
-
return suspendResult;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
continue $sm;
|
|
541
|
-
case 3:
|
|
542
|
-
var result = suspendResult;
|
|
543
|
-
if (!(result == null)) {
|
|
544
|
-
get_LOGGER().r2t('Converted request body using ' + toString(this.r4x_1.l4w_1) + ' for ' + this.f4x_1.q3p_1.toString());
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
var result_0 = result;
|
|
548
|
-
if (!(result_0 == null)) {
|
|
549
|
-
this.m4x_1 = result_0;
|
|
550
|
-
this.k9_1 = 6;
|
|
551
|
-
continue $sm;
|
|
552
|
-
} else {
|
|
553
|
-
this.k9_1 = 4;
|
|
554
|
-
continue $sm;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
case 4:
|
|
558
|
-
this.k9_1 = 2;
|
|
559
|
-
continue $sm;
|
|
560
|
-
case 5:
|
|
561
|
-
this.m4x_1 = null;
|
|
562
|
-
if (false) {
|
|
563
|
-
this.k9_1 = 1;
|
|
564
|
-
continue $sm;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
this.k9_1 = 6;
|
|
568
|
-
continue $sm;
|
|
569
|
-
case 6:
|
|
570
|
-
var tmp2_elvis_lhs = this.m4x_1;
|
|
571
|
-
var tmp_19;
|
|
572
|
-
if (tmp2_elvis_lhs == null) {
|
|
573
|
-
var tmp_20 = "Can't convert " + toString(this.g4x_1) + ' with contentType ' + this.j4x_1.toString() + ' using converters ';
|
|
574
|
-
throw new ContentConverterException(tmp_20 + joinToString(this.k4x_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
575
|
-
} else {
|
|
576
|
-
tmp_19 = tmp2_elvis_lhs;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
var serializedContent = tmp_19;
|
|
580
|
-
return serializedContent;
|
|
581
|
-
case 7:
|
|
582
|
-
throw this.n9_1;
|
|
583
|
-
}
|
|
584
|
-
} catch ($p) {
|
|
585
|
-
var e = $p;
|
|
586
|
-
if (this.l9_1 === 7) {
|
|
587
|
-
throw e;
|
|
588
|
-
} else {
|
|
589
|
-
this.k9_1 = this.l9_1;
|
|
590
|
-
this.n9_1 = e;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
while (true);
|
|
594
|
-
};
|
|
595
|
-
function $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
596
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
597
|
-
this.a4y_1 = ignoredTypes;
|
|
598
|
-
this.b4y_1 = registrations;
|
|
599
|
-
this.c4y_1 = $this_createClientPlugin;
|
|
600
|
-
this.d4y_1 = requestUrl;
|
|
601
|
-
this.e4y_1 = info;
|
|
602
|
-
this.f4y_1 = body;
|
|
603
|
-
this.g4y_1 = responseContentType;
|
|
604
|
-
this.h4y_1 = charset;
|
|
605
|
-
}
|
|
606
|
-
protoOf($invoke$convertResponseCOROUTINE$1).s9 = function () {
|
|
607
|
-
var suspendResult = this.m9_1;
|
|
608
|
-
$sm: do
|
|
609
|
-
try {
|
|
610
|
-
var tmp = this.k9_1;
|
|
611
|
-
switch (tmp) {
|
|
612
|
-
case 0:
|
|
613
|
-
this.l9_1 = 2;
|
|
614
|
-
var tmp_0 = this.f4y_1;
|
|
615
|
-
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
616
|
-
get_LOGGER().r2t('Response body is already transformed. Skipping ContentNegotiation for ' + this.d4y_1.toString() + '.');
|
|
617
|
-
return null;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
if (this.a4y_1.x(this.e4y_1.n2t_1)) {
|
|
621
|
-
get_LOGGER().r2t('Response body type ' + toString(this.e4y_1.n2t_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.d4y_1.toString() + '.'));
|
|
622
|
-
return null;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
var tmp_1 = this;
|
|
626
|
-
var tmp0 = this.b4y_1;
|
|
627
|
-
var destination = ArrayList_init_$Create$();
|
|
628
|
-
var _iterator__ex2g4s = tmp0.q();
|
|
629
|
-
while (_iterator__ex2g4s.r()) {
|
|
630
|
-
var element = _iterator__ex2g4s.s();
|
|
631
|
-
if (element.n4w_1.p4w(this.g4y_1)) {
|
|
632
|
-
destination.k(element);
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
637
|
-
var _iterator__ex2g4s_0 = destination.q();
|
|
638
|
-
while (_iterator__ex2g4s_0.r()) {
|
|
639
|
-
var item = _iterator__ex2g4s_0.s();
|
|
640
|
-
destination_0.k(item.l4w_1);
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
var tmp_2;
|
|
644
|
-
if (!destination_0.h()) {
|
|
645
|
-
tmp_2 = destination_0;
|
|
646
|
-
} else {
|
|
647
|
-
tmp_2 = null;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
var tmp0_elvis_lhs = tmp_2;
|
|
651
|
-
var tmp_3;
|
|
652
|
-
if (tmp0_elvis_lhs == null) {
|
|
653
|
-
this.c4y_1;
|
|
654
|
-
get_LOGGER().r2t('None of the registered converters match response with Content-Type=' + this.g4y_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.d4y_1.toString() + '.'));
|
|
655
|
-
return null;
|
|
656
|
-
} else {
|
|
657
|
-
tmp_3 = tmp0_elvis_lhs;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
tmp_1.i4y_1 = tmp_3;
|
|
661
|
-
this.k9_1 = 1;
|
|
662
|
-
suspendResult = deserialize(this.i4y_1, this.f4y_1, this.e4y_1, this.h4y_1, this);
|
|
663
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
|
-
return suspendResult;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
continue $sm;
|
|
668
|
-
case 1:
|
|
669
|
-
var result = suspendResult;
|
|
670
|
-
if (!isInterface(result, ByteReadChannel)) {
|
|
671
|
-
get_LOGGER().r2t('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.d4y_1.toString() + '.');
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
return result;
|
|
675
|
-
case 2:
|
|
676
|
-
throw this.n9_1;
|
|
677
|
-
}
|
|
678
|
-
} catch ($p) {
|
|
679
|
-
var e = $p;
|
|
680
|
-
if (this.l9_1 === 2) {
|
|
681
|
-
throw e;
|
|
682
|
-
} else {
|
|
683
|
-
this.k9_1 = this.l9_1;
|
|
684
|
-
this.n9_1 = e;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
while (true);
|
|
688
|
-
};
|
|
689
|
-
var properties_initialized_ContentNegotiation_kt_1ayduy;
|
|
690
|
-
function _init_properties_ContentNegotiation_kt__o183go() {
|
|
691
|
-
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
692
|
-
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
693
|
-
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
694
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().cd(), PrimitiveClasses_getInstance().yc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
695
|
-
// Inline function 'io.ktor.util.AttributeKey' call
|
|
696
|
-
var name = 'ExcludedContentTypesAttr';
|
|
697
|
-
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
698
|
-
var tmp = getKClass(KtList);
|
|
699
|
-
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
700
|
-
var tmp_0;
|
|
701
|
-
try {
|
|
702
|
-
tmp_0 = createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ContentType), arrayOf([]), false))]), false);
|
|
703
|
-
} catch ($p) {
|
|
704
|
-
var tmp_1;
|
|
705
|
-
if ($p instanceof Error) {
|
|
706
|
-
var _unused_var__etf5q3 = $p;
|
|
707
|
-
tmp_1 = null;
|
|
708
|
-
} else {
|
|
709
|
-
throw $p;
|
|
710
|
-
}
|
|
711
|
-
tmp_0 = tmp_1;
|
|
712
|
-
}
|
|
713
|
-
var tmp$ret$0 = tmp_0;
|
|
714
|
-
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
715
|
-
ExcludedContentTypes = new AttributeKey(name, tmp$ret$1);
|
|
716
|
-
var tmp_2 = ContentNegotiationConfig$_init_$ref_1ne3ob();
|
|
717
|
-
ContentNegotiation = createClientPlugin('ContentNegotiation', tmp_2, ContentNegotiation$lambda);
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
function JsonContentTypeMatcher() {
|
|
721
|
-
}
|
|
722
|
-
protoOf(JsonContentTypeMatcher).p4w = function (contentType) {
|
|
723
|
-
if (contentType.z2v(Application_getInstance().f2u_1)) {
|
|
724
|
-
return true;
|
|
725
|
-
}
|
|
726
|
-
var value = contentType.y2v().toString();
|
|
727
|
-
return Application_getInstance().z2u(value) && endsWith(value, '+json', true);
|
|
728
|
-
};
|
|
729
|
-
var JsonContentTypeMatcher_instance;
|
|
730
|
-
function JsonContentTypeMatcher_getInstance() {
|
|
731
|
-
return JsonContentTypeMatcher_instance;
|
|
732
|
-
}
|
|
733
|
-
function get_DefaultIgnoredTypes() {
|
|
734
|
-
_init_properties_DefaultIgnoredTypesJs_kt__rjtdk1();
|
|
735
|
-
return DefaultIgnoredTypes;
|
|
736
|
-
}
|
|
737
|
-
var DefaultIgnoredTypes;
|
|
738
|
-
var properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt;
|
|
739
|
-
function _init_properties_DefaultIgnoredTypesJs_kt__rjtdk1() {
|
|
740
|
-
if (!properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt) {
|
|
741
|
-
properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt = true;
|
|
742
|
-
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
743
|
-
DefaultIgnoredTypes = LinkedHashSet_init_$Create$();
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
//region block: post-declaration
|
|
747
|
-
protoOf(ContentNegotiationConfig).j3l = register$default;
|
|
748
|
-
//endregion
|
|
749
|
-
//region block: init
|
|
750
|
-
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|
|
751
|
-
//endregion
|
|
752
|
-
//region block: exports
|
|
753
|
-
export {
|
|
754
|
-
get_ContentNegotiation as get_ContentNegotiationcp59ye9rorjc,
|
|
755
|
-
};
|
|
756
|
-
//endregion
|