client_plugin_logic_deb 1.8.450 → 1.8.453
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 +94 -94
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +828 -788
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1927 -1927
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-ai_module.js +684 -688
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +784 -698
- package/Logic_Debertz-client_plugin.js +5091 -5091
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2256 -2270
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +21274 -21284
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +13527 -13574
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +2260 -2273
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +5716 -4843
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +3652 -3603
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +1699 -438
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2256 -2255
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +1630 -1630
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +457 -395
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +6643 -3939
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +2627 -893
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +14 -14
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http-cio.js +2278 -0
- package/ktor-ktor-http-cio.js.map +1 -0
- package/ktor-ktor-http.js +1268 -1128
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +2624 -5540
- 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 +333 -339
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +143 -153
- package/ktor-ktor-serialization.js.map +1 -1
- package/{ktor-ktor-client-js.js → ktor-ktor-sse.js} +2 -2
- package/ktor-ktor-sse.js.map +1 -0
- package/ktor-ktor-utils.js +1711 -1144
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +123 -136
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +2 -4
- package/random-library-crypto-rand.js +15 -15
- package/random-library-crypto-rand.js.map +1 -1
- package/random-library-secure-random.js +10 -10
- package/random-library-secure-random.js.map +1 -1
- package/raspberry-cardgame-lib-core.js +376 -377
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +120 -121
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +1181 -1207
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +38 -38
- package/uuid.js.map +1 -1
- /package/{ktor-ktor-client-js.js.map → kotlinx-serialization-kotlinx-serialization-json-io.js.map} +0 -0
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-http.js', './ktor-ktor-serialization.js', './ktor-ktor-io.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-serialization.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
|
|
11
|
-
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
12
|
-
}
|
|
13
|
-
if (typeof globalThis['ktor-ktor-client-core'] === 'undefined') {
|
|
14
|
-
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
15
|
-
}
|
|
16
10
|
if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
|
|
17
11
|
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
18
12
|
}
|
|
@@ -22,78 +16,92 @@
|
|
|
22
16
|
if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
|
|
23
17
|
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
24
18
|
}
|
|
25
|
-
|
|
19
|
+
if (typeof globalThis['ktor-ktor-client-core'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
24
|
+
}
|
|
25
|
+
globalThis['ktor-ktor-client-content-negotiation'] = factory(typeof globalThis['ktor-ktor-client-content-negotiation'] === 'undefined' ? {} : globalThis['ktor-ktor-client-content-negotiation'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-http'], globalThis['ktor-ktor-serialization'], globalThis['ktor-ktor-io'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils']);
|
|
26
26
|
}
|
|
27
|
-
}(function (_, kotlin_kotlin,
|
|
27
|
+
}(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) {
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
36
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ha;
|
|
37
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.uc;
|
|
38
|
-
var VOID = kotlin_kotlin.$_$.b;
|
|
39
|
-
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
40
|
-
var contentType = kotlin_io_ktor_ktor_http.$_$.f1;
|
|
41
|
-
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
42
|
-
var plus = kotlin_kotlin.$_$.t8;
|
|
43
|
-
var toMutableSet = kotlin_kotlin.$_$.y9;
|
|
44
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.be;
|
|
31
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ad;
|
|
32
|
+
var plus = kotlin_kotlin.$_$.x8;
|
|
33
|
+
var toMutableSet = kotlin_kotlin.$_$.ea;
|
|
34
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
45
35
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
46
36
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
37
|
+
var Unit_instance = kotlin_kotlin.$_$.i5;
|
|
47
38
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
39
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
40
|
+
var Exception = kotlin_kotlin.$_$.ei;
|
|
41
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.g1;
|
|
42
|
+
var captureStack = kotlin_kotlin.$_$.kc;
|
|
43
|
+
var toString = kotlin_kotlin.$_$.ee;
|
|
44
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
45
|
+
var CoroutineImpl = kotlin_kotlin.$_$.db;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.ni;
|
|
47
|
+
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
48
|
+
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
49
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
50
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.na;
|
|
51
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.fd;
|
|
52
|
+
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
53
|
+
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.w;
|
|
54
|
+
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
55
|
+
var isInterface = kotlin_kotlin.$_$.pd;
|
|
56
|
+
var contentType = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
57
|
+
var get_request = kotlin_io_ktor_ktor_client_core.$_$.y;
|
|
58
|
+
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.e;
|
|
59
|
+
var Collection = kotlin_kotlin.$_$.k5;
|
|
60
|
+
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
61
|
+
var emptyList = kotlin_kotlin.$_$.i7;
|
|
62
|
+
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
63
|
+
var accept = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
64
|
+
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
65
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.ue;
|
|
66
|
+
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.j1;
|
|
67
|
+
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
68
|
+
var Unit = kotlin_kotlin.$_$.yi;
|
|
69
|
+
var charset = kotlin_io_ktor_ktor_http.$_$.h1;
|
|
70
|
+
var ensureNotNull = kotlin_kotlin.$_$.fj;
|
|
66
71
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
67
|
-
var equals = kotlin_kotlin.$_$.
|
|
68
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
69
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
72
|
+
var equals = kotlin_kotlin.$_$.tc;
|
|
73
|
+
var joinToString = kotlin_kotlin.$_$.c8;
|
|
74
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.cd;
|
|
75
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.m6;
|
|
76
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
73
77
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
var
|
|
84
|
-
var
|
|
78
|
+
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
|
|
79
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.v4;
|
|
80
|
+
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.y;
|
|
81
|
+
var getKClass = kotlin_kotlin.$_$.ve;
|
|
82
|
+
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
83
|
+
var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
84
|
+
var setOf = kotlin_kotlin.$_$.j9;
|
|
85
|
+
var KtList = kotlin_kotlin.$_$.r5;
|
|
86
|
+
var ContentType = kotlin_io_ktor_ktor_http.$_$.w;
|
|
87
|
+
var arrayOf = kotlin_kotlin.$_$.bj;
|
|
88
|
+
var createKType = kotlin_kotlin.$_$.te;
|
|
89
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.re;
|
|
90
|
+
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
91
|
+
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
92
|
+
var endsWith = kotlin_kotlin.$_$.tf;
|
|
93
|
+
var initMetadataForObject = kotlin_kotlin.$_$.gd;
|
|
94
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
85
95
|
//endregion
|
|
86
96
|
//region block: pre-declaration
|
|
87
97
|
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
88
|
-
initMetadataForClass(
|
|
89
|
-
|
|
90
|
-
initMetadataForLambda(ContentNegotiation$Plugin$install$slambda_1, CoroutineImpl, VOID, [2]);
|
|
91
|
-
initMetadataForClass(Config, 'Config', Config, VOID, [Configuration]);
|
|
92
|
-
initMetadataForObject(Plugin, 'Plugin', VOID, VOID, [HttpClientPlugin]);
|
|
93
|
-
initMetadataForCoroutine($convertRequestCOROUTINE$, CoroutineImpl);
|
|
94
|
-
initMetadataForCoroutine($convertResponseCOROUTINE$, CoroutineImpl);
|
|
95
|
-
initMetadataForClass(ContentNegotiation, 'ContentNegotiation', VOID, VOID, VOID, [2, 5]);
|
|
98
|
+
initMetadataForClass(ContentNegotiationConfig$defaultMatcher$1);
|
|
99
|
+
initMetadataForClass(ContentNegotiationConfig, 'ContentNegotiationConfig', ContentNegotiationConfig, VOID, [Configuration]);
|
|
96
100
|
initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
|
|
101
|
+
initMetadataForLambda(ContentNegotiation$lambda$slambda, CoroutineImpl, VOID, [4]);
|
|
102
|
+
initMetadataForLambda(ContentNegotiation$lambda$slambda_1, CoroutineImpl, VOID, [4]);
|
|
103
|
+
initMetadataForCoroutine($invoke$convertRequestCOROUTINE$, CoroutineImpl);
|
|
104
|
+
initMetadataForCoroutine($invoke$convertResponseCOROUTINE$, CoroutineImpl);
|
|
97
105
|
initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
|
|
98
106
|
//endregion
|
|
99
107
|
function get_LOGGER() {
|
|
@@ -106,385 +114,435 @@
|
|
|
106
114
|
return DefaultCommonIgnoredTypes;
|
|
107
115
|
}
|
|
108
116
|
var DefaultCommonIgnoredTypes;
|
|
117
|
+
function get_ExcludedContentTypes() {
|
|
118
|
+
_init_properties_ContentNegotiation_kt__o183go();
|
|
119
|
+
return ExcludedContentTypes;
|
|
120
|
+
}
|
|
121
|
+
var ExcludedContentTypes;
|
|
122
|
+
function get_ContentNegotiation() {
|
|
123
|
+
_init_properties_ContentNegotiation_kt__o183go();
|
|
124
|
+
return ContentNegotiation;
|
|
125
|
+
}
|
|
126
|
+
var ContentNegotiation;
|
|
109
127
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
128
|
+
this.p63_1 = converter;
|
|
129
|
+
this.q63_1 = contentTypeToSend;
|
|
130
|
+
this.r63_1 = contentTypeMatcher;
|
|
113
131
|
}
|
|
114
132
|
function defaultMatcher($this, pattern) {
|
|
115
|
-
return new
|
|
133
|
+
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
116
134
|
}
|
|
117
|
-
function
|
|
118
|
-
this.
|
|
135
|
+
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
136
|
+
this.s63_1 = $pattern;
|
|
137
|
+
}
|
|
138
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).t63 = function (contentType) {
|
|
139
|
+
return contentType.o3i(this.s63_1);
|
|
140
|
+
};
|
|
141
|
+
function ContentNegotiationConfig() {
|
|
142
|
+
this.u63_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
143
|
+
var tmp = this;
|
|
144
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
145
|
+
tmp.v63_1 = ArrayList_init_$Create$();
|
|
146
|
+
this.w63_1 = null;
|
|
119
147
|
}
|
|
120
|
-
protoOf(
|
|
121
|
-
|
|
148
|
+
protoOf(ContentNegotiationConfig).l40 = function (contentType, converter, configuration) {
|
|
149
|
+
var matcher = contentType.o3i(Application_getInstance().u3g_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
150
|
+
this.x63(contentType, converter, matcher, configuration);
|
|
122
151
|
};
|
|
123
|
-
function
|
|
124
|
-
|
|
152
|
+
protoOf(ContentNegotiationConfig).x63 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
153
|
+
// Inline function 'kotlin.apply' call
|
|
154
|
+
configuration(converter);
|
|
155
|
+
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
156
|
+
this.v63_1.e1(registration);
|
|
157
|
+
};
|
|
158
|
+
function ContentConverterException(message) {
|
|
159
|
+
Exception_init_$Init$(message, this);
|
|
160
|
+
captureStack(this, ContentConverterException);
|
|
161
|
+
}
|
|
162
|
+
function ContentNegotiationConfig$_init_$ref_1ne3ob() {
|
|
163
|
+
var l = function () {
|
|
164
|
+
return new ContentNegotiationConfig();
|
|
165
|
+
};
|
|
166
|
+
l.callableName = '<init>';
|
|
167
|
+
return l;
|
|
168
|
+
}
|
|
169
|
+
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
170
|
+
_init_properties_ContentNegotiation_kt__o183go();
|
|
171
|
+
var registrations = $this$createClientPlugin.l4c_1.v63_1;
|
|
172
|
+
var ignoredTypes = $this$createClientPlugin.l4c_1.u63_1;
|
|
173
|
+
$this$createClientPlugin.r4w(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
174
|
+
$this$createClientPlugin.q4l(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
175
|
+
return Unit_instance;
|
|
176
|
+
}
|
|
177
|
+
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
178
|
+
_init_properties_ContentNegotiation_kt__o183go();
|
|
179
|
+
return toString(it.p63_1);
|
|
180
|
+
}
|
|
181
|
+
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
182
|
+
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
183
|
+
tmp.g9_1 = Unit_instance;
|
|
184
|
+
tmp.h9_1 = null;
|
|
185
|
+
return tmp.m9();
|
|
186
|
+
}
|
|
187
|
+
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
188
|
+
charset = charset === VOID ? Charsets_getInstance().l36_1 : charset;
|
|
189
|
+
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
190
|
+
tmp.g9_1 = Unit_instance;
|
|
191
|
+
tmp.h9_1 = null;
|
|
192
|
+
return tmp.m9();
|
|
193
|
+
}
|
|
194
|
+
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
195
|
+
this.p65_1 = $registrations;
|
|
196
|
+
this.q65_1 = $this_createClientPlugin;
|
|
197
|
+
this.r65_1 = $ignoredTypes;
|
|
125
198
|
CoroutineImpl.call(this, resultContinuation);
|
|
126
199
|
}
|
|
127
|
-
protoOf(ContentNegotiation$
|
|
128
|
-
var tmp = this.
|
|
129
|
-
tmp.
|
|
130
|
-
tmp.
|
|
131
|
-
return tmp.
|
|
200
|
+
protoOf(ContentNegotiation$lambda$slambda).w65 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
201
|
+
var tmp = this.x65($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
202
|
+
tmp.g9_1 = Unit_instance;
|
|
203
|
+
tmp.h9_1 = null;
|
|
204
|
+
return tmp.m9();
|
|
132
205
|
};
|
|
133
|
-
protoOf(ContentNegotiation$
|
|
134
|
-
var tmp = p1 instanceof
|
|
135
|
-
|
|
206
|
+
protoOf(ContentNegotiation$lambda$slambda).v4m = function (p1, p2, p3, p4, $completion) {
|
|
207
|
+
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
208
|
+
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
209
|
+
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
210
|
+
return this.w65(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
136
211
|
};
|
|
137
|
-
protoOf(ContentNegotiation$
|
|
138
|
-
var suspendResult = this.
|
|
212
|
+
protoOf(ContentNegotiation$lambda$slambda).m9 = function () {
|
|
213
|
+
var suspendResult = this.g9_1;
|
|
139
214
|
$sm: do
|
|
140
215
|
try {
|
|
141
|
-
var tmp = this.
|
|
216
|
+
var tmp = this.e9_1;
|
|
142
217
|
switch (tmp) {
|
|
143
218
|
case 0:
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
146
|
-
suspendResult = this.
|
|
219
|
+
this.f9_1 = 2;
|
|
220
|
+
this.e9_1 = 1;
|
|
221
|
+
suspendResult = invoke$convertRequest(this.p65_1, this.q65_1, this.r65_1, this.t65_1, this.u65_1, this);
|
|
147
222
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
148
223
|
return suspendResult;
|
|
149
224
|
}
|
|
150
225
|
|
|
151
226
|
continue $sm;
|
|
152
227
|
case 1:
|
|
153
|
-
|
|
154
|
-
var tmp_0;
|
|
155
|
-
if (tmp0_elvis_lhs == null) {
|
|
156
|
-
return Unit_instance;
|
|
157
|
-
} else {
|
|
158
|
-
tmp_0 = tmp0_elvis_lhs;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
var result = tmp_0;
|
|
162
|
-
this.s8_1 = 2;
|
|
163
|
-
suspendResult = this.g5d_1.y3e(result, this);
|
|
164
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
165
|
-
return suspendResult;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
continue $sm;
|
|
228
|
+
return suspendResult;
|
|
169
229
|
case 2:
|
|
170
|
-
|
|
171
|
-
case 3:
|
|
172
|
-
throw this.v8_1;
|
|
230
|
+
throw this.h9_1;
|
|
173
231
|
}
|
|
174
232
|
} catch ($p) {
|
|
175
233
|
var e = $p;
|
|
176
|
-
if (this.
|
|
234
|
+
if (this.f9_1 === 2) {
|
|
177
235
|
throw e;
|
|
178
236
|
} else {
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
237
|
+
this.e9_1 = this.f9_1;
|
|
238
|
+
this.h9_1 = e;
|
|
181
239
|
}
|
|
182
240
|
}
|
|
183
241
|
while (true);
|
|
184
242
|
};
|
|
185
|
-
protoOf(ContentNegotiation$
|
|
186
|
-
var i = new ContentNegotiation$
|
|
187
|
-
i.
|
|
188
|
-
i.
|
|
243
|
+
protoOf(ContentNegotiation$lambda$slambda).x65 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
244
|
+
var i = new ContentNegotiation$lambda$slambda(this.p65_1, this.q65_1, this.r65_1, completion);
|
|
245
|
+
i.s65_1 = $this$transformRequestBody;
|
|
246
|
+
i.t65_1 = request;
|
|
247
|
+
i.u65_1 = body;
|
|
248
|
+
i.v65_1 = _unused_var__etf5q3;
|
|
189
249
|
return i;
|
|
190
250
|
};
|
|
191
|
-
function ContentNegotiation$
|
|
192
|
-
var i = new ContentNegotiation$
|
|
193
|
-
var l = function ($this$
|
|
194
|
-
return i.
|
|
251
|
+
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
252
|
+
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
253
|
+
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
254
|
+
return i.w65($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
195
255
|
};
|
|
196
|
-
l.$arity =
|
|
256
|
+
l.$arity = 4;
|
|
197
257
|
return l;
|
|
198
258
|
}
|
|
199
|
-
function ContentNegotiation$
|
|
200
|
-
this.
|
|
259
|
+
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
260
|
+
this.g66_1 = $ignoredTypes;
|
|
261
|
+
this.h66_1 = $registrations;
|
|
262
|
+
this.i66_1 = $this_createClientPlugin;
|
|
201
263
|
CoroutineImpl.call(this, resultContinuation);
|
|
202
264
|
}
|
|
203
|
-
protoOf(ContentNegotiation$
|
|
204
|
-
var tmp = this.
|
|
205
|
-
tmp.
|
|
206
|
-
tmp.
|
|
207
|
-
return tmp.
|
|
265
|
+
protoOf(ContentNegotiation$lambda$slambda_1).t4m = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
266
|
+
var tmp = this.u4m($this$transformResponseBody, response, body, info, $completion);
|
|
267
|
+
tmp.g9_1 = Unit_instance;
|
|
268
|
+
tmp.h9_1 = null;
|
|
269
|
+
return tmp.m9();
|
|
208
270
|
};
|
|
209
|
-
protoOf(ContentNegotiation$
|
|
210
|
-
var tmp = p1 instanceof
|
|
211
|
-
|
|
271
|
+
protoOf(ContentNegotiation$lambda$slambda_1).v4m = function (p1, p2, p3, p4, $completion) {
|
|
272
|
+
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
273
|
+
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
274
|
+
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
275
|
+
return this.t4m(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
212
276
|
};
|
|
213
|
-
protoOf(ContentNegotiation$
|
|
214
|
-
var suspendResult = this.
|
|
277
|
+
protoOf(ContentNegotiation$lambda$slambda_1).m9 = function () {
|
|
278
|
+
var suspendResult = this.g9_1;
|
|
215
279
|
$sm: do
|
|
216
280
|
try {
|
|
217
|
-
var tmp = this.
|
|
281
|
+
var tmp = this.e9_1;
|
|
218
282
|
switch (tmp) {
|
|
219
283
|
case 0:
|
|
220
|
-
this.
|
|
221
|
-
|
|
222
|
-
var body = this.v5d_1.pe();
|
|
223
|
-
var tmp0_elvis_lhs = contentType(this.u5d_1.u3f_1.s3u());
|
|
284
|
+
this.f9_1 = 2;
|
|
285
|
+
var tmp0_elvis_lhs = contentType(this.k66_1);
|
|
224
286
|
var tmp_0;
|
|
225
287
|
if (tmp0_elvis_lhs == null) {
|
|
226
|
-
|
|
227
|
-
get_LOGGER().q3g('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
228
|
-
return Unit_instance;
|
|
288
|
+
return null;
|
|
229
289
|
} else {
|
|
230
290
|
tmp_0 = tmp0_elvis_lhs;
|
|
231
291
|
}
|
|
232
292
|
|
|
233
293
|
var contentType_0 = tmp_0;
|
|
234
|
-
var charset = suitableCharset(this.
|
|
235
|
-
this.
|
|
236
|
-
suspendResult = this.
|
|
294
|
+
var charset = suitableCharset(get_request(this.k66_1).y3m());
|
|
295
|
+
this.e9_1 = 1;
|
|
296
|
+
suspendResult = invoke$convertResponse(this.g66_1, this.h66_1, this.i66_1, get_request(this.k66_1).z45(), this.m66_1, this.l66_1, contentType_0, charset, this);
|
|
237
297
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
238
298
|
return suspendResult;
|
|
239
299
|
}
|
|
240
300
|
|
|
241
301
|
continue $sm;
|
|
242
302
|
case 1:
|
|
243
|
-
|
|
244
|
-
var tmp_1;
|
|
245
|
-
if (tmp1_elvis_lhs == null) {
|
|
246
|
-
return Unit_instance;
|
|
247
|
-
} else {
|
|
248
|
-
tmp_1 = tmp1_elvis_lhs;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
var deserializedBody = tmp_1;
|
|
252
|
-
var result = new HttpResponseContainer(this.w5d_1, deserializedBody);
|
|
253
|
-
this.s8_1 = 2;
|
|
254
|
-
suspendResult = this.u5d_1.y3e(result, this);
|
|
255
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
256
|
-
return suspendResult;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
continue $sm;
|
|
303
|
+
return suspendResult;
|
|
260
304
|
case 2:
|
|
261
|
-
|
|
262
|
-
case 3:
|
|
263
|
-
throw this.v8_1;
|
|
305
|
+
throw this.h9_1;
|
|
264
306
|
}
|
|
265
307
|
} catch ($p) {
|
|
266
308
|
var e = $p;
|
|
267
|
-
if (this.
|
|
309
|
+
if (this.f9_1 === 2) {
|
|
268
310
|
throw e;
|
|
269
311
|
} else {
|
|
270
|
-
this.
|
|
271
|
-
this.
|
|
312
|
+
this.e9_1 = this.f9_1;
|
|
313
|
+
this.h9_1 = e;
|
|
272
314
|
}
|
|
273
315
|
}
|
|
274
316
|
while (true);
|
|
275
317
|
};
|
|
276
|
-
protoOf(ContentNegotiation$
|
|
277
|
-
var i = new ContentNegotiation$
|
|
278
|
-
i.
|
|
279
|
-
i.
|
|
318
|
+
protoOf(ContentNegotiation$lambda$slambda_1).u4m = function ($this$transformResponseBody, response, body, info, completion) {
|
|
319
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.g66_1, this.h66_1, this.i66_1, completion);
|
|
320
|
+
i.j66_1 = $this$transformResponseBody;
|
|
321
|
+
i.k66_1 = response;
|
|
322
|
+
i.l66_1 = body;
|
|
323
|
+
i.m66_1 = info;
|
|
280
324
|
return i;
|
|
281
325
|
};
|
|
282
|
-
function ContentNegotiation$
|
|
283
|
-
var i = new ContentNegotiation$
|
|
284
|
-
var l = function ($this$
|
|
285
|
-
return i.
|
|
326
|
+
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
327
|
+
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
328
|
+
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
329
|
+
return i.t4m($this$transformResponseBody, response, body, info, $completion);
|
|
286
330
|
};
|
|
287
|
-
l.$arity =
|
|
331
|
+
l.$arity = 4;
|
|
288
332
|
return l;
|
|
289
333
|
}
|
|
290
|
-
function
|
|
291
|
-
this.y5d_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
292
|
-
var tmp = this;
|
|
293
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
294
|
-
tmp.z5d_1 = ArrayList_init_$Create$();
|
|
295
|
-
}
|
|
296
|
-
protoOf(Config).n5a = function (contentType, converter, configuration) {
|
|
297
|
-
var matcher = contentType.equals(Application_getInstance().h3h_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
298
|
-
this.a5e(contentType, converter, matcher, configuration);
|
|
299
|
-
};
|
|
300
|
-
protoOf(Config).a5e = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
301
|
-
// Inline function 'kotlin.apply' call
|
|
302
|
-
configuration(converter);
|
|
303
|
-
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
304
|
-
this.z5d_1.j(registration);
|
|
305
|
-
};
|
|
306
|
-
function Plugin() {
|
|
307
|
-
Plugin_instance = this;
|
|
308
|
-
this.b5e_1 = new AttributeKey('ContentNegotiation');
|
|
309
|
-
}
|
|
310
|
-
protoOf(Plugin).w = function () {
|
|
311
|
-
return this.b5e_1;
|
|
312
|
-
};
|
|
313
|
-
protoOf(Plugin).c5e = function (block) {
|
|
314
|
-
// Inline function 'kotlin.apply' call
|
|
315
|
-
var this_0 = new Config();
|
|
316
|
-
block(this_0);
|
|
317
|
-
var config = this_0;
|
|
318
|
-
return new ContentNegotiation(config.z5d_1, config.y5d_1);
|
|
319
|
-
};
|
|
320
|
-
protoOf(Plugin).w3w = function (block) {
|
|
321
|
-
return this.c5e(block);
|
|
322
|
-
};
|
|
323
|
-
protoOf(Plugin).d5e = function (plugin, scope) {
|
|
324
|
-
var tmp = Phases_getInstance().h42_1;
|
|
325
|
-
scope.s3t_1.y3f(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
326
|
-
var tmp_0 = Phases_getInstance_0().r3w_1;
|
|
327
|
-
scope.t3t_1.y3f(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
328
|
-
};
|
|
329
|
-
protoOf(Plugin).x3w = function (plugin, scope) {
|
|
330
|
-
return this.d5e(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
331
|
-
};
|
|
332
|
-
var Plugin_instance;
|
|
333
|
-
function Plugin_getInstance() {
|
|
334
|
-
if (Plugin_instance == null)
|
|
335
|
-
new Plugin();
|
|
336
|
-
return Plugin_instance;
|
|
337
|
-
}
|
|
338
|
-
function ContentNegotiation$convertRequest$lambda(it) {
|
|
339
|
-
return toString(it.s5c_1);
|
|
340
|
-
}
|
|
341
|
-
function $convertRequestCOROUTINE$(_this__u8e3s4, request, body, resultContinuation) {
|
|
334
|
+
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
342
335
|
CoroutineImpl.call(this, resultContinuation);
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
336
|
+
this.g64_1 = registrations;
|
|
337
|
+
this.h64_1 = $this_createClientPlugin;
|
|
338
|
+
this.i64_1 = ignoredTypes;
|
|
339
|
+
this.j64_1 = request;
|
|
340
|
+
this.k64_1 = body;
|
|
346
341
|
}
|
|
347
|
-
protoOf($convertRequestCOROUTINE$).
|
|
348
|
-
var suspendResult = this.
|
|
342
|
+
protoOf($invoke$convertRequestCOROUTINE$).m9 = function () {
|
|
343
|
+
var suspendResult = this.g9_1;
|
|
349
344
|
$sm: do
|
|
350
345
|
try {
|
|
351
|
-
var tmp = this.
|
|
346
|
+
var tmp = this.e9_1;
|
|
352
347
|
switch (tmp) {
|
|
353
348
|
case 0:
|
|
354
|
-
this.
|
|
355
|
-
var
|
|
356
|
-
|
|
357
|
-
var
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
349
|
+
this.f9_1 = 7;
|
|
350
|
+
var tmp_0;
|
|
351
|
+
if (this.j64_1.n44_1.s37(get_ExcludedContentTypes())) {
|
|
352
|
+
var excluded = this.j64_1.n44_1.q37(get_ExcludedContentTypes());
|
|
353
|
+
var tmp0 = this.g64_1;
|
|
354
|
+
var destination = ArrayList_init_$Create$();
|
|
355
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
356
|
+
while (_iterator__ex2g4s.u()) {
|
|
357
|
+
var element = _iterator__ex2g4s.v();
|
|
358
|
+
var tmp$ret$0;
|
|
359
|
+
l$ret$1: do {
|
|
360
|
+
var tmp_1;
|
|
361
|
+
if (isInterface(excluded, Collection)) {
|
|
362
|
+
tmp_1 = excluded.r();
|
|
363
|
+
} else {
|
|
364
|
+
tmp_1 = false;
|
|
365
|
+
}
|
|
366
|
+
if (tmp_1) {
|
|
367
|
+
tmp$ret$0 = true;
|
|
368
|
+
break l$ret$1;
|
|
369
|
+
}
|
|
370
|
+
var _iterator__ex2g4s_0 = excluded.t();
|
|
371
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
372
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
373
|
+
if (element.q63_1.o3i(element_0)) {
|
|
374
|
+
tmp$ret$0 = false;
|
|
375
|
+
break l$ret$1;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
tmp$ret$0 = true;
|
|
379
|
+
}
|
|
380
|
+
while (false);
|
|
381
|
+
if (tmp$ret$0) {
|
|
382
|
+
destination.e1(element);
|
|
362
383
|
}
|
|
363
|
-
accept(this.n5e_1, element.t5c_1);
|
|
364
384
|
}
|
|
365
|
-
|
|
385
|
+
tmp_0 = destination;
|
|
386
|
+
} else {
|
|
387
|
+
tmp_0 = this.g64_1;
|
|
366
388
|
}
|
|
367
389
|
|
|
368
|
-
var tmp_0;
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
var
|
|
390
|
+
var requestRegistrations = tmp_0;
|
|
391
|
+
var tmp0_elvis_lhs = this.j64_1.k44_1.x3b(HttpHeaders_getInstance().t3i_1);
|
|
392
|
+
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
393
|
+
var _iterator__ex2g4s_1 = requestRegistrations.t();
|
|
394
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
395
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
374
396
|
var tmp$ret$2;
|
|
375
397
|
l$ret$3: do {
|
|
376
398
|
var tmp_2;
|
|
377
|
-
if (isInterface(
|
|
378
|
-
tmp_2 =
|
|
399
|
+
if (isInterface(acceptHeaders, Collection)) {
|
|
400
|
+
tmp_2 = acceptHeaders.r();
|
|
379
401
|
} else {
|
|
380
402
|
tmp_2 = false;
|
|
381
403
|
}
|
|
382
404
|
if (tmp_2) {
|
|
383
|
-
tmp$ret$2 =
|
|
405
|
+
tmp$ret$2 = true;
|
|
384
406
|
break l$ret$3;
|
|
385
407
|
}
|
|
386
|
-
var
|
|
387
|
-
while (
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
390
|
-
tmp$ret$2 =
|
|
408
|
+
var _iterator__ex2g4s_2 = acceptHeaders.t();
|
|
409
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
410
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
411
|
+
if (Companion_getInstance().rm(element_2).o3i(element_1.q63_1)) {
|
|
412
|
+
tmp$ret$2 = false;
|
|
391
413
|
break l$ret$3;
|
|
392
414
|
}
|
|
393
415
|
}
|
|
394
|
-
tmp$ret$2 =
|
|
416
|
+
tmp$ret$2 = true;
|
|
395
417
|
}
|
|
396
418
|
while (false);
|
|
397
|
-
|
|
419
|
+
if (tmp$ret$2) {
|
|
420
|
+
var qValue = this.h64_1.l4c_1.w63_1;
|
|
421
|
+
var contentTypeToSend = qValue == null ? element_1.q63_1 : element_1.q63_1.m3i('q', qValue.toString());
|
|
422
|
+
get_LOGGER().c3g('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.j64_1.i44_1.toString());
|
|
423
|
+
accept(this.j64_1, contentTypeToSend);
|
|
424
|
+
}
|
|
398
425
|
}
|
|
399
426
|
|
|
400
|
-
|
|
401
|
-
|
|
427
|
+
var tmp_3;
|
|
428
|
+
var tmp_4 = this.k64_1;
|
|
429
|
+
if (tmp_4 instanceof OutgoingContent) {
|
|
430
|
+
tmp_3 = true;
|
|
431
|
+
} else {
|
|
432
|
+
var tmp0_0 = this.i64_1;
|
|
433
|
+
var tmp$ret$4;
|
|
434
|
+
l$ret$5: do {
|
|
435
|
+
var tmp_5;
|
|
436
|
+
if (isInterface(tmp0_0, Collection)) {
|
|
437
|
+
tmp_5 = tmp0_0.r();
|
|
438
|
+
} else {
|
|
439
|
+
tmp_5 = false;
|
|
440
|
+
}
|
|
441
|
+
if (tmp_5) {
|
|
442
|
+
tmp$ret$4 = false;
|
|
443
|
+
break l$ret$5;
|
|
444
|
+
}
|
|
445
|
+
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
446
|
+
while (_iterator__ex2g4s_3.u()) {
|
|
447
|
+
var element_3 = _iterator__ex2g4s_3.v();
|
|
448
|
+
if (element_3.fb(this.k64_1)) {
|
|
449
|
+
tmp$ret$4 = true;
|
|
450
|
+
break l$ret$5;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
tmp$ret$4 = false;
|
|
454
|
+
}
|
|
455
|
+
while (false);
|
|
456
|
+
tmp_3 = tmp$ret$4;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
if (tmp_3) {
|
|
460
|
+
get_LOGGER().c3g('Body type ' + toString(getKClassFromExpression(this.k64_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.j64_1.i44_1.toString() + '.'));
|
|
402
461
|
return null;
|
|
403
462
|
}
|
|
404
463
|
|
|
405
|
-
var
|
|
406
|
-
var
|
|
407
|
-
var
|
|
408
|
-
if (
|
|
409
|
-
this.
|
|
410
|
-
get_LOGGER().
|
|
464
|
+
var tmp_6 = this;
|
|
465
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.j64_1);
|
|
466
|
+
var tmp_7;
|
|
467
|
+
if (tmp0_elvis_lhs_0 == null) {
|
|
468
|
+
this.h64_1;
|
|
469
|
+
get_LOGGER().c3g("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.j64_1.i44_1.toString() + '.');
|
|
411
470
|
return null;
|
|
412
471
|
} else {
|
|
413
|
-
|
|
472
|
+
tmp_7 = tmp0_elvis_lhs_0;
|
|
414
473
|
}
|
|
415
474
|
|
|
416
|
-
|
|
417
|
-
var
|
|
418
|
-
if (
|
|
419
|
-
get_LOGGER().
|
|
420
|
-
this.
|
|
475
|
+
tmp_6.m64_1 = tmp_7;
|
|
476
|
+
var tmp_8 = this.k64_1;
|
|
477
|
+
if (tmp_8 instanceof Unit) {
|
|
478
|
+
get_LOGGER().c3g('Sending empty body for ' + this.j64_1.i44_1.toString());
|
|
479
|
+
this.j64_1.k44_1.e3c(HttpHeaders_getInstance().l3j_1);
|
|
421
480
|
return EmptyContent_getInstance();
|
|
422
481
|
}
|
|
423
482
|
|
|
424
|
-
var
|
|
425
|
-
var
|
|
426
|
-
var
|
|
427
|
-
var
|
|
428
|
-
while (
|
|
429
|
-
var
|
|
430
|
-
if (
|
|
431
|
-
|
|
483
|
+
var tmp_9 = this;
|
|
484
|
+
var tmp0_1 = this.g64_1;
|
|
485
|
+
var destination_0 = ArrayList_init_$Create$();
|
|
486
|
+
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
487
|
+
while (_iterator__ex2g4s_4.u()) {
|
|
488
|
+
var element_4 = _iterator__ex2g4s_4.v();
|
|
489
|
+
if (element_4.r63_1.t63(this.m64_1)) {
|
|
490
|
+
destination_0.e1(element_4);
|
|
432
491
|
}
|
|
433
492
|
}
|
|
434
493
|
|
|
435
|
-
var
|
|
436
|
-
if (!
|
|
437
|
-
|
|
494
|
+
var tmp_10;
|
|
495
|
+
if (!destination_0.r()) {
|
|
496
|
+
tmp_10 = destination_0;
|
|
438
497
|
} else {
|
|
439
|
-
|
|
498
|
+
tmp_10 = null;
|
|
440
499
|
}
|
|
441
500
|
|
|
442
|
-
var tmp1_elvis_lhs =
|
|
443
|
-
var
|
|
501
|
+
var tmp1_elvis_lhs = tmp_10;
|
|
502
|
+
var tmp_11;
|
|
444
503
|
if (tmp1_elvis_lhs == null) {
|
|
445
|
-
this.
|
|
446
|
-
get_LOGGER().
|
|
504
|
+
this.h64_1;
|
|
505
|
+
get_LOGGER().c3g('None of the registered converters match request Content-Type=' + this.m64_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.j64_1.i44_1.toString() + '.'));
|
|
447
506
|
return null;
|
|
448
507
|
} else {
|
|
449
|
-
|
|
508
|
+
tmp_11 = tmp1_elvis_lhs;
|
|
450
509
|
}
|
|
451
510
|
|
|
452
|
-
|
|
453
|
-
if (this.
|
|
454
|
-
get_LOGGER().
|
|
511
|
+
tmp_9.l64_1 = tmp_11;
|
|
512
|
+
if (this.j64_1.z4y() == null) {
|
|
513
|
+
get_LOGGER().c3g('Request has unknown body type. Skipping ContentNegotiation for ' + this.j64_1.i44_1.toString() + '.');
|
|
455
514
|
return null;
|
|
456
515
|
}
|
|
457
516
|
|
|
458
|
-
this.
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
this.s8_1 = 1;
|
|
517
|
+
this.j64_1.k44_1.e3c(HttpHeaders_getInstance().l3j_1);
|
|
518
|
+
this.q64_1 = this.l64_1;
|
|
519
|
+
this.e9_1 = 1;
|
|
462
520
|
continue $sm;
|
|
463
521
|
case 1:
|
|
464
|
-
this.
|
|
465
|
-
this.
|
|
522
|
+
this.p64_1 = this.q64_1.t();
|
|
523
|
+
this.e9_1 = 2;
|
|
466
524
|
continue $sm;
|
|
467
525
|
case 2:
|
|
468
|
-
if (!this.
|
|
469
|
-
this.
|
|
526
|
+
if (!this.p64_1.u()) {
|
|
527
|
+
this.e9_1 = 5;
|
|
470
528
|
continue $sm;
|
|
471
529
|
}
|
|
472
530
|
|
|
473
|
-
var
|
|
474
|
-
this.
|
|
475
|
-
this.
|
|
476
|
-
var
|
|
477
|
-
var
|
|
478
|
-
var
|
|
479
|
-
var this_0 = this.
|
|
480
|
-
var
|
|
531
|
+
var element_5 = this.p64_1.v();
|
|
532
|
+
this.o64_1 = element_5;
|
|
533
|
+
this.e9_1 = 3;
|
|
534
|
+
var tmp0_elvis_lhs_1 = charset(this.m64_1);
|
|
535
|
+
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().l36_1 : tmp0_elvis_lhs_1;
|
|
536
|
+
var tmp_13 = ensureNotNull(this.j64_1.z4y());
|
|
537
|
+
var this_0 = this.k64_1;
|
|
538
|
+
var tmp_14;
|
|
481
539
|
if (!equals(this_0, NullBody_instance)) {
|
|
482
|
-
|
|
540
|
+
tmp_14 = this_0;
|
|
483
541
|
} else {
|
|
484
|
-
|
|
542
|
+
tmp_14 = null;
|
|
485
543
|
}
|
|
486
544
|
|
|
487
|
-
suspendResult = this.
|
|
545
|
+
suspendResult = this.o64_1.p63_1.n66(this.m64_1, tmp_12, tmp_13, tmp_14, this);
|
|
488
546
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
489
547
|
return suspendResult;
|
|
490
548
|
}
|
|
@@ -493,104 +551,106 @@
|
|
|
493
551
|
case 3:
|
|
494
552
|
var result = suspendResult;
|
|
495
553
|
if (!(result == null)) {
|
|
496
|
-
get_LOGGER().
|
|
554
|
+
get_LOGGER().c3g('Converted request body using ' + toString(this.o64_1.p63_1) + ' for ' + this.j64_1.i44_1.toString());
|
|
497
555
|
}
|
|
498
556
|
|
|
499
557
|
var result_0 = result;
|
|
500
558
|
if (!(result_0 == null)) {
|
|
501
|
-
this.
|
|
502
|
-
this.
|
|
559
|
+
this.n64_1 = result_0;
|
|
560
|
+
this.e9_1 = 6;
|
|
503
561
|
continue $sm;
|
|
504
562
|
} else {
|
|
505
|
-
this.
|
|
563
|
+
this.e9_1 = 4;
|
|
506
564
|
continue $sm;
|
|
507
565
|
}
|
|
508
566
|
|
|
509
567
|
case 4:
|
|
510
|
-
this.
|
|
568
|
+
this.e9_1 = 2;
|
|
511
569
|
continue $sm;
|
|
512
570
|
case 5:
|
|
513
|
-
this.
|
|
571
|
+
this.n64_1 = null;
|
|
514
572
|
if (false) {
|
|
515
|
-
this.
|
|
573
|
+
this.e9_1 = 1;
|
|
516
574
|
continue $sm;
|
|
517
575
|
}
|
|
518
576
|
|
|
519
|
-
this.
|
|
577
|
+
this.e9_1 = 6;
|
|
520
578
|
continue $sm;
|
|
521
579
|
case 6:
|
|
522
|
-
var tmp2_elvis_lhs = this.
|
|
523
|
-
var
|
|
580
|
+
var tmp2_elvis_lhs = this.n64_1;
|
|
581
|
+
var tmp_15;
|
|
524
582
|
if (tmp2_elvis_lhs == null) {
|
|
525
|
-
var
|
|
526
|
-
throw new ContentConverterException(
|
|
583
|
+
var tmp_16 = "Can't convert " + toString(this.k64_1) + ' with contentType ' + this.m64_1.toString() + ' using converters ';
|
|
584
|
+
throw new ContentConverterException(tmp_16 + joinToString(this.l64_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
527
585
|
} else {
|
|
528
|
-
|
|
586
|
+
tmp_15 = tmp2_elvis_lhs;
|
|
529
587
|
}
|
|
530
588
|
|
|
531
|
-
var serializedContent =
|
|
589
|
+
var serializedContent = tmp_15;
|
|
532
590
|
return serializedContent;
|
|
533
591
|
case 7:
|
|
534
|
-
throw this.
|
|
592
|
+
throw this.h9_1;
|
|
535
593
|
}
|
|
536
594
|
} catch ($p) {
|
|
537
595
|
var e = $p;
|
|
538
|
-
if (this.
|
|
596
|
+
if (this.f9_1 === 7) {
|
|
539
597
|
throw e;
|
|
540
598
|
} else {
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
599
|
+
this.e9_1 = this.f9_1;
|
|
600
|
+
this.h9_1 = e;
|
|
543
601
|
}
|
|
544
602
|
}
|
|
545
603
|
while (true);
|
|
546
604
|
};
|
|
547
|
-
function $convertResponseCOROUTINE$(
|
|
605
|
+
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
548
606
|
CoroutineImpl.call(this, resultContinuation);
|
|
549
|
-
this.
|
|
550
|
-
this.
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
607
|
+
this.z64_1 = ignoredTypes;
|
|
608
|
+
this.a65_1 = registrations;
|
|
609
|
+
this.b65_1 = $this_createClientPlugin;
|
|
610
|
+
this.c65_1 = requestUrl;
|
|
611
|
+
this.d65_1 = info;
|
|
612
|
+
this.e65_1 = body;
|
|
613
|
+
this.f65_1 = responseContentType;
|
|
614
|
+
this.g65_1 = charset;
|
|
555
615
|
}
|
|
556
|
-
protoOf($convertResponseCOROUTINE$).
|
|
557
|
-
var suspendResult = this.
|
|
616
|
+
protoOf($invoke$convertResponseCOROUTINE$).m9 = function () {
|
|
617
|
+
var suspendResult = this.g9_1;
|
|
558
618
|
$sm: do
|
|
559
619
|
try {
|
|
560
|
-
var tmp = this.
|
|
620
|
+
var tmp = this.e9_1;
|
|
561
621
|
switch (tmp) {
|
|
562
622
|
case 0:
|
|
563
|
-
this.
|
|
564
|
-
var tmp_0 = this.
|
|
623
|
+
this.f9_1 = 2;
|
|
624
|
+
var tmp_0 = this.e65_1;
|
|
565
625
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
566
|
-
get_LOGGER().
|
|
626
|
+
get_LOGGER().c3g('Response body is already transformed. Skipping ContentNegotiation for ' + this.c65_1.toString() + '.');
|
|
567
627
|
return null;
|
|
568
628
|
}
|
|
569
629
|
|
|
570
|
-
if (this.
|
|
571
|
-
get_LOGGER().
|
|
630
|
+
if (this.z64_1.m2(this.d65_1.t3f_1)) {
|
|
631
|
+
get_LOGGER().c3g('Response body type ' + toString(this.d65_1.t3f_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.c65_1.toString() + '.'));
|
|
572
632
|
return null;
|
|
573
633
|
}
|
|
574
634
|
|
|
575
|
-
var tmp0 = this.
|
|
635
|
+
var tmp0 = this.a65_1;
|
|
576
636
|
var destination = ArrayList_init_$Create$();
|
|
577
|
-
var _iterator__ex2g4s = tmp0.
|
|
578
|
-
while (_iterator__ex2g4s.
|
|
579
|
-
var element = _iterator__ex2g4s.
|
|
580
|
-
if (element.
|
|
581
|
-
destination.
|
|
637
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
638
|
+
while (_iterator__ex2g4s.u()) {
|
|
639
|
+
var element = _iterator__ex2g4s.v();
|
|
640
|
+
if (element.r63_1.t63(this.f65_1)) {
|
|
641
|
+
destination.e1(element);
|
|
582
642
|
}
|
|
583
643
|
}
|
|
584
644
|
|
|
585
645
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
586
|
-
var _iterator__ex2g4s_0 = destination.
|
|
587
|
-
while (_iterator__ex2g4s_0.
|
|
588
|
-
var item = _iterator__ex2g4s_0.
|
|
589
|
-
destination_0.
|
|
646
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
647
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
648
|
+
var item = _iterator__ex2g4s_0.v();
|
|
649
|
+
destination_0.e1(item.p63_1);
|
|
590
650
|
}
|
|
591
651
|
|
|
592
652
|
var tmp_1;
|
|
593
|
-
if (!destination_0.
|
|
653
|
+
if (!destination_0.r()) {
|
|
594
654
|
tmp_1 = destination_0;
|
|
595
655
|
} else {
|
|
596
656
|
tmp_1 = null;
|
|
@@ -599,16 +659,16 @@
|
|
|
599
659
|
var tmp0_elvis_lhs = tmp_1;
|
|
600
660
|
var tmp_2;
|
|
601
661
|
if (tmp0_elvis_lhs == null) {
|
|
602
|
-
this.
|
|
603
|
-
get_LOGGER().
|
|
662
|
+
this.b65_1;
|
|
663
|
+
get_LOGGER().c3g('None of the registered converters match response with Content-Type=' + this.f65_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.c65_1.toString() + '.'));
|
|
604
664
|
return null;
|
|
605
665
|
} else {
|
|
606
666
|
tmp_2 = tmp0_elvis_lhs;
|
|
607
667
|
}
|
|
608
668
|
|
|
609
669
|
var suitableConverters = tmp_2;
|
|
610
|
-
this.
|
|
611
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
670
|
+
this.e9_1 = 1;
|
|
671
|
+
suspendResult = deserialize(suitableConverters, this.e65_1, this.d65_1, this.g65_1, this);
|
|
612
672
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
613
673
|
return suspendResult;
|
|
614
674
|
}
|
|
@@ -617,61 +677,63 @@
|
|
|
617
677
|
case 1:
|
|
618
678
|
var result = suspendResult;
|
|
619
679
|
if (!isInterface(result, ByteReadChannel)) {
|
|
620
|
-
get_LOGGER().
|
|
680
|
+
get_LOGGER().c3g('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.c65_1.toString() + '.');
|
|
621
681
|
}
|
|
622
682
|
|
|
623
683
|
return result;
|
|
624
684
|
case 2:
|
|
625
|
-
throw this.
|
|
685
|
+
throw this.h9_1;
|
|
626
686
|
}
|
|
627
687
|
} catch ($p) {
|
|
628
688
|
var e = $p;
|
|
629
|
-
if (this.
|
|
689
|
+
if (this.f9_1 === 2) {
|
|
630
690
|
throw e;
|
|
631
691
|
} else {
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
692
|
+
this.e9_1 = this.f9_1;
|
|
693
|
+
this.h9_1 = e;
|
|
634
694
|
}
|
|
635
695
|
}
|
|
636
696
|
while (true);
|
|
637
697
|
};
|
|
638
|
-
function ContentNegotiation(registrations, ignoredTypes) {
|
|
639
|
-
Plugin_getInstance();
|
|
640
|
-
this.i5d_1 = registrations;
|
|
641
|
-
this.j5d_1 = ignoredTypes;
|
|
642
|
-
}
|
|
643
|
-
protoOf(ContentNegotiation).k5d = function (request, body, $completion) {
|
|
644
|
-
var tmp = new $convertRequestCOROUTINE$(this, request, body, $completion);
|
|
645
|
-
tmp.u8_1 = Unit_instance;
|
|
646
|
-
tmp.v8_1 = null;
|
|
647
|
-
return tmp.a9();
|
|
648
|
-
};
|
|
649
|
-
protoOf(ContentNegotiation).x5d = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
650
|
-
var tmp = new $convertResponseCOROUTINE$(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
651
|
-
tmp.u8_1 = Unit_instance;
|
|
652
|
-
tmp.v8_1 = null;
|
|
653
|
-
return tmp.a9();
|
|
654
|
-
};
|
|
655
|
-
function ContentConverterException(message) {
|
|
656
|
-
Exception_init_$Init$(message, this);
|
|
657
|
-
captureStack(this, ContentConverterException);
|
|
658
|
-
}
|
|
659
698
|
var properties_initialized_ContentNegotiation_kt_1ayduy;
|
|
660
699
|
function _init_properties_ContentNegotiation_kt__o183go() {
|
|
661
700
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
662
701
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
663
702
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
664
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
703
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().jc(), PrimitiveClasses_getInstance().fc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
|
|
704
|
+
// Inline function 'io.ktor.util.AttributeKey' call
|
|
705
|
+
var name = 'ExcludedContentTypesAttr';
|
|
706
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
707
|
+
var tmp = getKClass(KtList);
|
|
708
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
709
|
+
var tmp_0;
|
|
710
|
+
try {
|
|
711
|
+
tmp_0 = createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ContentType), arrayOf([]), false))]), false);
|
|
712
|
+
} catch ($p) {
|
|
713
|
+
var tmp_1;
|
|
714
|
+
if ($p instanceof Error) {
|
|
715
|
+
var _unused_var__etf5q3 = $p;
|
|
716
|
+
tmp_1 = null;
|
|
717
|
+
} else {
|
|
718
|
+
throw $p;
|
|
719
|
+
}
|
|
720
|
+
tmp_0 = tmp_1;
|
|
721
|
+
}
|
|
722
|
+
var tmp$ret$0 = tmp_0;
|
|
723
|
+
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
724
|
+
ExcludedContentTypes = new AttributeKey(name, tmp$ret$1);
|
|
725
|
+
var tmp_2 = ContentNegotiationConfig$_init_$ref_1ne3ob();
|
|
726
|
+
ContentNegotiation = createClientPlugin('ContentNegotiation', tmp_2, ContentNegotiation$lambda);
|
|
665
727
|
}
|
|
666
728
|
}
|
|
667
729
|
function JsonContentTypeMatcher() {
|
|
668
730
|
}
|
|
669
|
-
protoOf(JsonContentTypeMatcher).
|
|
670
|
-
if (contentType.o3i(Application_getInstance().
|
|
731
|
+
protoOf(JsonContentTypeMatcher).t63 = function (contentType) {
|
|
732
|
+
if (contentType.o3i(Application_getInstance().u3g_1)) {
|
|
671
733
|
return true;
|
|
672
734
|
}
|
|
673
735
|
var value = contentType.n3i().toString();
|
|
674
|
-
return
|
|
736
|
+
return Application_getInstance().o3h(value) && endsWith(value, '+json', true);
|
|
675
737
|
};
|
|
676
738
|
var JsonContentTypeMatcher_instance;
|
|
677
739
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -691,14 +753,14 @@
|
|
|
691
753
|
}
|
|
692
754
|
}
|
|
693
755
|
//region block: post-declaration
|
|
694
|
-
protoOf(
|
|
756
|
+
protoOf(ContentNegotiationConfig).m40 = register$default;
|
|
695
757
|
//endregion
|
|
696
758
|
//region block: init
|
|
697
759
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|
|
698
760
|
//endregion
|
|
699
761
|
//region block: exports
|
|
700
762
|
_.$_$ = _.$_$ || {};
|
|
701
|
-
_.$_$.a =
|
|
763
|
+
_.$_$.a = get_ContentNegotiation;
|
|
702
764
|
//endregion
|
|
703
765
|
return _;
|
|
704
766
|
}));
|