client_plugin_logic_deb 1.8.468 → 1.8.469
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 +73 -73
- package/Kosi-Kodein-kodein-di.js +608 -608
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1620 -1620
- package/Logic_Debertz-ai_module.js +583 -583
- package/Logic_Debertz-bot_engine.js +3274 -0
- package/Logic_Debertz-bot_engine.js.map +1 -0
- package/Logic_Debertz-client_plugin.d.ts +4 -2
- package/Logic_Debertz-client_plugin.js +5221 -5038
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2129 -2129
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18320 -18143
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +12500 -12443
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +2118 -2059
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +2514 -2329
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +3367 -3367
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +46 -46
- package/kotlinx-io-kotlinx-io-core.js +576 -576
- package/kotlinx-serialization-kotlinx-serialization-core.js +1857 -1857
- package/kotlinx-serialization-kotlinx-serialization-json.js +1447 -1447
- package/ktor-ktor-client-content-negotiation.js +210 -210
- package/ktor-ktor-client-core.js +3042 -3042
- package/ktor-ktor-client-logging.js +1120 -1120
- package/ktor-ktor-events.js +11 -11
- package/ktor-ktor-http-cio.js +522 -522
- package/ktor-ktor-http.js +733 -733
- package/ktor-ktor-io.js +1101 -1101
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +246 -246
- package/ktor-ktor-serialization.js +119 -119
- package/ktor-ktor-utils.js +834 -834
- package/ktor-ktor-websockets.js +50 -50
- package/package.json +1 -1
- package/random-library-crypto-rand.js +12 -12
- package/random-library-secure-random.js +7 -7
- package/raspberry-cardgame-lib-core.js +256 -256
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +997 -997
- package/uuid.js +27 -27
package/ktor-ktor-http-cio.js
CHANGED
|
@@ -28,108 +28,108 @@
|
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
30
|
var imul = Math.imul;
|
|
31
|
-
var Long = kotlin_kotlin.$_$.
|
|
31
|
+
var Long = kotlin_kotlin.$_$.wi;
|
|
32
32
|
var VOID = kotlin_kotlin.$_$.b;
|
|
33
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
33
|
+
var protoOf = kotlin_kotlin.$_$.ne;
|
|
34
34
|
var MultiPartData = kotlin_io_ktor_ktor_http.$_$.l;
|
|
35
35
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
36
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
36
|
+
var initMetadataForClass = kotlin_kotlin.$_$.md;
|
|
37
37
|
var Unit_instance = kotlin_kotlin.$_$.k5;
|
|
38
|
-
var toString = kotlin_kotlin.$_$.
|
|
38
|
+
var toString = kotlin_kotlin.$_$.qe;
|
|
39
39
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
40
|
-
var abs = kotlin_kotlin.$_$.
|
|
40
|
+
var abs = kotlin_kotlin.$_$.re;
|
|
41
41
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
42
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
43
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
44
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
45
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
46
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
42
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ob;
|
|
43
|
+
var THROW_CCE = kotlin_kotlin.$_$.cj;
|
|
44
|
+
var SequenceScope = kotlin_kotlin.$_$.rf;
|
|
45
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ya;
|
|
46
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.rd;
|
|
47
47
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
48
|
-
var sequence = kotlin_kotlin.$_$.
|
|
48
|
+
var sequence = kotlin_kotlin.$_$.xf;
|
|
49
49
|
var DefaultPool = kotlin_io_ktor_ktor_io.$_$.g1;
|
|
50
|
-
var fill = kotlin_kotlin.$_$.
|
|
51
|
-
var isIntArray = kotlin_kotlin.$_$.
|
|
50
|
+
var fill = kotlin_kotlin.$_$.r7;
|
|
51
|
+
var isIntArray = kotlin_kotlin.$_$.ae;
|
|
52
52
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q2;
|
|
53
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
54
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
55
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
56
|
-
var Char = kotlin_kotlin.$_$.
|
|
53
|
+
var endsWith = kotlin_kotlin.$_$.gg;
|
|
54
|
+
var charSequenceLength = kotlin_kotlin.$_$.ad;
|
|
55
|
+
var charSequenceGet = kotlin_kotlin.$_$.zc;
|
|
56
|
+
var Char = kotlin_kotlin.$_$.mi;
|
|
57
57
|
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.r2;
|
|
58
|
-
var contains = kotlin_kotlin.$_$.
|
|
59
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
58
|
+
var contains = kotlin_kotlin.$_$.cg;
|
|
59
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.bd;
|
|
60
60
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.w2;
|
|
61
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
61
|
+
var IllegalStateException = kotlin_kotlin.$_$.vi;
|
|
62
62
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.r1;
|
|
63
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
63
|
+
var captureStack = kotlin_kotlin.$_$.vc;
|
|
64
64
|
var readUTF8LineTo = kotlin_io_ktor_ktor_io.$_$.h;
|
|
65
65
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
66
66
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
67
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
68
|
-
var setOf = kotlin_kotlin.$_$.
|
|
67
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.od;
|
|
68
|
+
var setOf = kotlin_kotlin.$_$.s9;
|
|
69
69
|
var Companion_getInstance = kotlin_io_ktor_ktor_io.$_$.q;
|
|
70
70
|
var LineEndingMode__plus_impl_ttpz2j = kotlin_io_ktor_ktor_io.$_$.n;
|
|
71
|
-
var listOf = kotlin_kotlin.$_$.
|
|
71
|
+
var listOf = kotlin_kotlin.$_$.v8;
|
|
72
72
|
var MultiPart_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
|
|
73
73
|
var ByteString_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.a;
|
|
74
74
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
75
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
76
|
-
var toByte = kotlin_kotlin.$_$.
|
|
77
|
-
var copyOfRange = kotlin_kotlin.$_$.
|
|
75
|
+
var toString_0 = kotlin_kotlin.$_$.uh;
|
|
76
|
+
var toByte = kotlin_kotlin.$_$.oe;
|
|
77
|
+
var copyOfRange = kotlin_kotlin.$_$.z6;
|
|
78
78
|
var produce = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
79
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
79
|
+
var startsWith = kotlin_kotlin.$_$.gh;
|
|
80
80
|
var readUntil = kotlin_io_ktor_ktor_io.$_$.i;
|
|
81
81
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
82
82
|
var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p;
|
|
83
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
83
|
+
var isInterface = kotlin_kotlin.$_$.be;
|
|
84
84
|
var counted = kotlin_io_ktor_ktor_io.$_$.o1;
|
|
85
85
|
var writer = kotlin_io_ktor_ktor_io.$_$.s1;
|
|
86
86
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.f;
|
|
87
87
|
var get_remaining = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
88
|
-
var compare = kotlin_kotlin.$_$.
|
|
88
|
+
var compare = kotlin_kotlin.$_$.yb;
|
|
89
89
|
var skipIfFound = kotlin_io_ktor_ktor_io.$_$.j;
|
|
90
90
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
91
91
|
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1;
|
|
92
92
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
93
93
|
var close = kotlin_io_ktor_ktor_io.$_$.n1;
|
|
94
|
-
var subtract = kotlin_kotlin.$_$.
|
|
95
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
94
|
+
var subtract = kotlin_kotlin.$_$.pc;
|
|
95
|
+
var convertToInt = kotlin_kotlin.$_$.ac;
|
|
96
96
|
var readPacket = kotlin_io_ktor_ktor_io.$_$.e;
|
|
97
97
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
98
98
|
var copyTo = kotlin_io_ktor_ktor_io.$_$.a;
|
|
99
|
-
var add = kotlin_kotlin.$_$.
|
|
100
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
99
|
+
var add = kotlin_kotlin.$_$.ub;
|
|
100
|
+
var fromInt = kotlin_kotlin.$_$.ec;
|
|
101
101
|
var toByteArray = kotlin_io_ktor_ktor_io.$_$.c1;
|
|
102
102
|
var ByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.c;
|
|
103
103
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
104
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
104
|
+
var compareTo = kotlin_kotlin.$_$.cd;
|
|
105
105
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.y1;
|
|
106
106
|
var Collection = kotlin_kotlin.$_$.m5;
|
|
107
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
108
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
109
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
107
|
+
var emptyList = kotlin_kotlin.$_$.o7;
|
|
108
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.nd;
|
|
109
|
+
var ensureNotNull = kotlin_kotlin.$_$.uj;
|
|
110
110
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.b1;
|
|
111
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
112
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
113
|
-
var CharSequence = kotlin_kotlin.$_$.
|
|
111
|
+
var isCharSequence = kotlin_kotlin.$_$.xd;
|
|
112
|
+
var getStringHashCode = kotlin_kotlin.$_$.kd;
|
|
113
|
+
var CharSequence = kotlin_kotlin.$_$.li;
|
|
114
114
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
115
115
|
var NoPoolImpl = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
116
|
-
var charArray = kotlin_kotlin.$_$.
|
|
117
|
-
var shiftLeft = kotlin_kotlin.$_$.
|
|
116
|
+
var charArray = kotlin_kotlin.$_$.xc;
|
|
117
|
+
var shiftLeft = kotlin_kotlin.$_$.mc;
|
|
118
118
|
var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.z1;
|
|
119
119
|
var toString_1 = kotlin_kotlin.$_$.x2;
|
|
120
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
120
|
+
var charCodeAt = kotlin_kotlin.$_$.yc;
|
|
121
121
|
var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.h;
|
|
122
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
122
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.ie;
|
|
123
123
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.o6;
|
|
124
124
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
125
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
126
|
-
var toLongArray = kotlin_kotlin.$_$.
|
|
125
|
+
var numberToLong = kotlin_kotlin.$_$.lc;
|
|
126
|
+
var toLongArray = kotlin_kotlin.$_$.ja;
|
|
127
127
|
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.u2;
|
|
128
128
|
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.t2;
|
|
129
|
-
var toByteArray_0 = kotlin_kotlin.$_$.
|
|
129
|
+
var toByteArray_0 = kotlin_kotlin.$_$.da;
|
|
130
130
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
131
131
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
132
|
-
var isWhitespace = kotlin_kotlin.$_$.
|
|
132
|
+
var isWhitespace = kotlin_kotlin.$_$.qg;
|
|
133
133
|
//endregion
|
|
134
134
|
//region block: pre-declaration
|
|
135
135
|
initMetadataForClass(CIOMultipartDataBase, 'CIOMultipartDataBase', VOID, VOID, [MultiPartData, CoroutineScope], [0, 1]);
|
|
@@ -161,12 +161,12 @@
|
|
|
161
161
|
//endregion
|
|
162
162
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
163
163
|
formFieldLimit = formFieldLimit === VOID ? new Long(65536, 0) : formFieldLimit;
|
|
164
|
-
this.
|
|
165
|
-
this.
|
|
166
|
-
this.
|
|
164
|
+
this.g3t_1 = coroutineContext;
|
|
165
|
+
this.h3t_1 = null;
|
|
166
|
+
this.i3t_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
167
167
|
}
|
|
168
|
-
protoOf(CIOMultipartDataBase).
|
|
169
|
-
return this.
|
|
168
|
+
protoOf(CIOMultipartDataBase).k1m = function () {
|
|
169
|
+
return this.g3t_1;
|
|
170
170
|
};
|
|
171
171
|
function get_IntArrayPool() {
|
|
172
172
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
@@ -179,103 +179,103 @@
|
|
|
179
179
|
}
|
|
180
180
|
var HeadersDataPool;
|
|
181
181
|
function thresholdReached($this) {
|
|
182
|
-
return $this.
|
|
182
|
+
return $this.k3t_1 >= $this.l3t_1 * 0.75;
|
|
183
183
|
}
|
|
184
184
|
function resize($this) {
|
|
185
|
-
var prevSize = $this.
|
|
186
|
-
var prevData = $this.
|
|
187
|
-
$this.
|
|
188
|
-
$this.
|
|
185
|
+
var prevSize = $this.k3t_1;
|
|
186
|
+
var prevData = $this.m3t_1;
|
|
187
|
+
$this.k3t_1 = 0;
|
|
188
|
+
$this.l3t_1 = imul($this.l3t_1, 2) | 128;
|
|
189
189
|
var tmp = $this;
|
|
190
190
|
// Inline function 'kotlin.apply' call
|
|
191
|
-
var this_0 = get_HeadersDataPool().
|
|
192
|
-
this_0.
|
|
193
|
-
tmp.
|
|
194
|
-
var _iterator__ex2g4s = prevData.
|
|
191
|
+
var this_0 = get_HeadersDataPool().b37();
|
|
192
|
+
this_0.p3t(imul(prevData.o3t(), 2) | 1);
|
|
193
|
+
tmp.m3t_1 = this_0;
|
|
194
|
+
var _iterator__ex2g4s = prevData.q3t().t();
|
|
195
195
|
while (_iterator__ex2g4s.u()) {
|
|
196
196
|
var headerOffset = _iterator__ex2g4s.v();
|
|
197
|
-
$this.
|
|
197
|
+
$this.s3t(prevData.r3t(headerOffset + 1 | 0), prevData.r3t(headerOffset + 2 | 0), prevData.r3t(headerOffset + 3 | 0), prevData.r3t(headerOffset + 4 | 0));
|
|
198
198
|
}
|
|
199
|
-
get_HeadersDataPool().
|
|
199
|
+
get_HeadersDataPool().c37(prevData);
|
|
200
200
|
// Inline function 'kotlin.require' call
|
|
201
201
|
// Inline function 'kotlin.require' call
|
|
202
|
-
if (!(prevSize === $this.
|
|
202
|
+
if (!(prevSize === $this.k3t_1)) {
|
|
203
203
|
var message = 'Failed requirement.';
|
|
204
204
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
function headerHasName($this, name, headerOffset) {
|
|
208
|
-
var nameStartIndex = $this.
|
|
209
|
-
var nameEndIndex = $this.
|
|
210
|
-
return equalsLowerCase($this.
|
|
208
|
+
var nameStartIndex = $this.m3t_1.r3t(headerOffset + 1 | 0);
|
|
209
|
+
var nameEndIndex = $this.m3t_1.r3t(headerOffset + 2 | 0);
|
|
210
|
+
return equalsLowerCase($this.j3t_1, nameStartIndex, nameEndIndex, name);
|
|
211
211
|
}
|
|
212
212
|
function HttpHeadersMap(builder) {
|
|
213
|
-
this.
|
|
214
|
-
this.j3t_1 = 0;
|
|
213
|
+
this.j3t_1 = builder;
|
|
215
214
|
this.k3t_1 = 0;
|
|
216
|
-
this.l3t_1 =
|
|
215
|
+
this.l3t_1 = 0;
|
|
216
|
+
this.m3t_1 = get_HeadersDataPool().b37();
|
|
217
217
|
}
|
|
218
|
-
protoOf(HttpHeadersMap).
|
|
219
|
-
if (this.
|
|
218
|
+
protoOf(HttpHeadersMap).j3a = function (name) {
|
|
219
|
+
if (this.k3t_1 === 0)
|
|
220
220
|
return null;
|
|
221
221
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
222
222
|
var this_0 = hashCodeLowerCase(name);
|
|
223
223
|
var hash = abs(this_0);
|
|
224
|
-
var headerIndex = hash % this.
|
|
225
|
-
while (!(this.
|
|
224
|
+
var headerIndex = hash % this.l3t_1 | 0;
|
|
225
|
+
while (!(this.m3t_1.r3t(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
226
226
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
227
|
-
return this.
|
|
227
|
+
return this.t3t(imul(headerIndex, 6));
|
|
228
228
|
}
|
|
229
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
229
|
+
headerIndex = (headerIndex + 1 | 0) % this.l3t_1 | 0;
|
|
230
230
|
}
|
|
231
231
|
return null;
|
|
232
232
|
};
|
|
233
|
-
protoOf(HttpHeadersMap).
|
|
234
|
-
return this.
|
|
233
|
+
protoOf(HttpHeadersMap).u3t = function () {
|
|
234
|
+
return this.m3t_1.q3t();
|
|
235
235
|
};
|
|
236
|
-
protoOf(HttpHeadersMap).
|
|
236
|
+
protoOf(HttpHeadersMap).s3t = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
237
237
|
if (thresholdReached(this)) {
|
|
238
238
|
resize(this);
|
|
239
239
|
}
|
|
240
240
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
241
|
-
var this_0 = hashCodeLowerCase(this.
|
|
241
|
+
var this_0 = hashCodeLowerCase(this.j3t_1, nameStartIndex, nameEndIndex);
|
|
242
242
|
var hash = abs(this_0);
|
|
243
|
-
var name = this.
|
|
244
|
-
var headerIndex = hash % this.
|
|
243
|
+
var name = this.j3t_1.c(nameStartIndex, nameEndIndex);
|
|
244
|
+
var headerIndex = hash % this.l3t_1 | 0;
|
|
245
245
|
var sameNameHeaderIndex = -1;
|
|
246
|
-
while (!(this.
|
|
246
|
+
while (!(this.m3t_1.r3t(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
247
247
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
248
248
|
sameNameHeaderIndex = headerIndex;
|
|
249
249
|
}
|
|
250
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
250
|
+
headerIndex = (headerIndex + 1 | 0) % this.l3t_1 | 0;
|
|
251
251
|
}
|
|
252
252
|
var headerOffset = imul(headerIndex, 6);
|
|
253
|
-
this.
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
256
|
-
this.
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
253
|
+
this.m3t_1.c3u(headerOffset + 0 | 0, hash);
|
|
254
|
+
this.m3t_1.c3u(headerOffset + 1 | 0, nameStartIndex);
|
|
255
|
+
this.m3t_1.c3u(headerOffset + 2 | 0, nameEndIndex);
|
|
256
|
+
this.m3t_1.c3u(headerOffset + 3 | 0, valueStartIndex);
|
|
257
|
+
this.m3t_1.c3u(headerOffset + 4 | 0, valueEndIndex);
|
|
258
|
+
this.m3t_1.c3u(headerOffset + 5 | 0, -1);
|
|
259
259
|
if (!(sameNameHeaderIndex === -1)) {
|
|
260
|
-
this.
|
|
260
|
+
this.m3t_1.c3u(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
261
261
|
}
|
|
262
|
-
this.
|
|
262
|
+
this.k3t_1 = this.k3t_1 + 1 | 0;
|
|
263
263
|
};
|
|
264
|
-
protoOf(HttpHeadersMap).
|
|
265
|
-
var nameStartIndex = this.
|
|
266
|
-
var nameEndIndex = this.
|
|
267
|
-
return this.
|
|
264
|
+
protoOf(HttpHeadersMap).d3u = function (headerOffset) {
|
|
265
|
+
var nameStartIndex = this.m3t_1.r3t(headerOffset + 1 | 0);
|
|
266
|
+
var nameEndIndex = this.m3t_1.r3t(headerOffset + 2 | 0);
|
|
267
|
+
return this.j3t_1.c(nameStartIndex, nameEndIndex);
|
|
268
268
|
};
|
|
269
|
-
protoOf(HttpHeadersMap).
|
|
270
|
-
var valueStartIndex = this.
|
|
271
|
-
var valueEndIndex = this.
|
|
272
|
-
return this.
|
|
269
|
+
protoOf(HttpHeadersMap).t3t = function (headerOffset) {
|
|
270
|
+
var valueStartIndex = this.m3t_1.r3t(headerOffset + 3 | 0);
|
|
271
|
+
var valueEndIndex = this.m3t_1.r3t(headerOffset + 4 | 0);
|
|
272
|
+
return this.j3t_1.c(valueStartIndex, valueEndIndex);
|
|
273
273
|
};
|
|
274
|
-
protoOf(HttpHeadersMap).
|
|
275
|
-
this.j3t_1 = 0;
|
|
274
|
+
protoOf(HttpHeadersMap).u2r = function () {
|
|
276
275
|
this.k3t_1 = 0;
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
this.l3t_1 = 0;
|
|
277
|
+
get_HeadersDataPool().c37(this.m3t_1);
|
|
278
|
+
this.m3t_1 = get_HeadersDataPool().b37();
|
|
279
279
|
};
|
|
280
280
|
protoOf(HttpHeadersMap).toString = function () {
|
|
281
281
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -285,94 +285,94 @@
|
|
|
285
285
|
return this_0.toString();
|
|
286
286
|
};
|
|
287
287
|
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
288
|
-
this.
|
|
288
|
+
this.m3u_1 = this$0;
|
|
289
289
|
CoroutineImpl.call(this, resultContinuation);
|
|
290
290
|
}
|
|
291
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
292
|
-
var tmp = this.
|
|
293
|
-
tmp.
|
|
294
|
-
tmp.
|
|
295
|
-
return tmp.
|
|
291
|
+
protoOf(HeadersData$headersStarts$slambda).s3u = function ($this$sequence, $completion) {
|
|
292
|
+
var tmp = this.t3u($this$sequence, $completion);
|
|
293
|
+
tmp.k9_1 = Unit_instance;
|
|
294
|
+
tmp.l9_1 = null;
|
|
295
|
+
return tmp.q9();
|
|
296
296
|
};
|
|
297
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
298
|
-
return this.
|
|
297
|
+
protoOf(HeadersData$headersStarts$slambda).ca = function (p1, $completion) {
|
|
298
|
+
return this.s3u(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
299
299
|
};
|
|
300
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
301
|
-
var suspendResult = this.
|
|
300
|
+
protoOf(HeadersData$headersStarts$slambda).q9 = function () {
|
|
301
|
+
var suspendResult = this.k9_1;
|
|
302
302
|
$sm: do
|
|
303
303
|
try {
|
|
304
|
-
var tmp = this.
|
|
304
|
+
var tmp = this.i9_1;
|
|
305
305
|
switch (tmp) {
|
|
306
306
|
case 0:
|
|
307
|
-
this.
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
307
|
+
this.j9_1 = 7;
|
|
308
|
+
this.o3u_1 = 0;
|
|
309
|
+
this.r3u_1 = this.m3u_1.n3t_1.t();
|
|
310
|
+
this.i9_1 = 1;
|
|
311
311
|
continue $sm;
|
|
312
312
|
case 1:
|
|
313
|
-
if (!this.
|
|
314
|
-
this.
|
|
313
|
+
if (!this.r3u_1.u()) {
|
|
314
|
+
this.i9_1 = 6;
|
|
315
315
|
continue $sm;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
318
|
+
this.q3u_1 = this.r3u_1.v();
|
|
319
|
+
this.p3u_1 = 0;
|
|
320
|
+
this.i9_1 = 2;
|
|
321
321
|
continue $sm;
|
|
322
322
|
case 2:
|
|
323
|
-
if (!(this.
|
|
324
|
-
this.
|
|
323
|
+
if (!(this.p3u_1 < this.q3u_1.length)) {
|
|
324
|
+
this.i9_1 = 5;
|
|
325
325
|
continue $sm;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
if (!(this.
|
|
329
|
-
this.
|
|
330
|
-
suspendResult = this.
|
|
328
|
+
if (!(this.m3u_1.r3t(this.o3u_1 + 0 | 0) === -1)) {
|
|
329
|
+
this.i9_1 = 3;
|
|
330
|
+
suspendResult = this.n3u_1.dg(this.o3u_1, this);
|
|
331
331
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
332
332
|
return suspendResult;
|
|
333
333
|
}
|
|
334
334
|
continue $sm;
|
|
335
335
|
} else {
|
|
336
|
-
this.
|
|
336
|
+
this.i9_1 = 4;
|
|
337
337
|
continue $sm;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
case 3:
|
|
341
|
-
this.
|
|
341
|
+
this.i9_1 = 4;
|
|
342
342
|
continue $sm;
|
|
343
343
|
case 4:
|
|
344
|
+
this.p3u_1 = this.p3u_1 + 6 | 0;
|
|
344
345
|
this.o3u_1 = this.o3u_1 + 6 | 0;
|
|
345
|
-
this.
|
|
346
|
-
this.e9_1 = 2;
|
|
346
|
+
this.i9_1 = 2;
|
|
347
347
|
continue $sm;
|
|
348
348
|
case 5:
|
|
349
|
-
this.
|
|
349
|
+
this.i9_1 = 1;
|
|
350
350
|
continue $sm;
|
|
351
351
|
case 6:
|
|
352
352
|
return Unit_instance;
|
|
353
353
|
case 7:
|
|
354
|
-
throw this.
|
|
354
|
+
throw this.l9_1;
|
|
355
355
|
}
|
|
356
356
|
} catch ($p) {
|
|
357
357
|
var e = $p;
|
|
358
|
-
if (this.
|
|
358
|
+
if (this.j9_1 === 7) {
|
|
359
359
|
throw e;
|
|
360
360
|
} else {
|
|
361
|
-
this.
|
|
362
|
-
this.
|
|
361
|
+
this.i9_1 = this.j9_1;
|
|
362
|
+
this.l9_1 = e;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
while (true);
|
|
366
366
|
};
|
|
367
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
368
|
-
var i = new HeadersData$headersStarts$slambda(this.
|
|
369
|
-
i.
|
|
367
|
+
protoOf(HeadersData$headersStarts$slambda).t3u = function ($this$sequence, completion) {
|
|
368
|
+
var i = new HeadersData$headersStarts$slambda(this.m3u_1, completion);
|
|
369
|
+
i.n3u_1 = $this$sequence;
|
|
370
370
|
return i;
|
|
371
371
|
};
|
|
372
372
|
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
373
373
|
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
374
374
|
var l = function ($this$sequence, $completion) {
|
|
375
|
-
return i.
|
|
375
|
+
return i.s3u($this$sequence, $completion);
|
|
376
376
|
};
|
|
377
377
|
l.$arity = 1;
|
|
378
378
|
return l;
|
|
@@ -380,55 +380,55 @@
|
|
|
380
380
|
function HeadersData() {
|
|
381
381
|
var tmp = this;
|
|
382
382
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
383
|
-
tmp.
|
|
383
|
+
tmp.n3t_1 = ArrayList_init_$Create$();
|
|
384
384
|
}
|
|
385
|
-
protoOf(HeadersData).
|
|
386
|
-
return this.
|
|
385
|
+
protoOf(HeadersData).o3t = function () {
|
|
386
|
+
return this.n3t_1.g1();
|
|
387
387
|
};
|
|
388
|
-
protoOf(HeadersData).
|
|
388
|
+
protoOf(HeadersData).p3t = function (subArraysCount) {
|
|
389
389
|
// Inline function 'kotlin.repeat' call
|
|
390
390
|
var inductionVariable = 0;
|
|
391
391
|
if (inductionVariable < subArraysCount)
|
|
392
392
|
do {
|
|
393
393
|
var index = inductionVariable;
|
|
394
394
|
inductionVariable = inductionVariable + 1 | 0;
|
|
395
|
-
this.
|
|
395
|
+
this.n3t_1.e1(get_IntArrayPool().b37());
|
|
396
396
|
}
|
|
397
397
|
while (inductionVariable < subArraysCount);
|
|
398
398
|
};
|
|
399
|
-
protoOf(HeadersData).
|
|
400
|
-
return this.
|
|
399
|
+
protoOf(HeadersData).r3t = function (index) {
|
|
400
|
+
return this.n3t_1.h1(index / 768 | 0)[index % 768 | 0];
|
|
401
401
|
};
|
|
402
|
-
protoOf(HeadersData).
|
|
403
|
-
this.
|
|
402
|
+
protoOf(HeadersData).c3u = function (index, value) {
|
|
403
|
+
this.n3t_1.h1(index / 768 | 0)[index % 768 | 0] = value;
|
|
404
404
|
};
|
|
405
|
-
protoOf(HeadersData).
|
|
405
|
+
protoOf(HeadersData).q3t = function () {
|
|
406
406
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
407
407
|
};
|
|
408
|
-
protoOf(HeadersData).
|
|
409
|
-
var _iterator__ex2g4s = this.
|
|
408
|
+
protoOf(HeadersData).u2r = function () {
|
|
409
|
+
var _iterator__ex2g4s = this.n3t_1.t();
|
|
410
410
|
while (_iterator__ex2g4s.u()) {
|
|
411
411
|
var array = _iterator__ex2g4s.v();
|
|
412
|
-
get_IntArrayPool().
|
|
412
|
+
get_IntArrayPool().c37(array);
|
|
413
413
|
}
|
|
414
|
-
this.
|
|
414
|
+
this.n3t_1.b3();
|
|
415
415
|
};
|
|
416
416
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
417
417
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
418
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
418
|
+
var _iterator__ex2g4s = _this__u8e3s4.u3t().t();
|
|
419
419
|
while (_iterator__ex2g4s.u()) {
|
|
420
420
|
var offset = _iterator__ex2g4s.v();
|
|
421
421
|
out.f1(indent);
|
|
422
|
-
out.f1(_this__u8e3s4.
|
|
422
|
+
out.f1(_this__u8e3s4.d3u(offset));
|
|
423
423
|
out.f1(' => ');
|
|
424
|
-
out.f1(_this__u8e3s4.
|
|
424
|
+
out.f1(_this__u8e3s4.t3t(offset));
|
|
425
425
|
out.f1('\n');
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
function IntArrayPool$1() {
|
|
429
429
|
DefaultPool.call(this, 1000);
|
|
430
430
|
}
|
|
431
|
-
protoOf(IntArrayPool$1).
|
|
431
|
+
protoOf(IntArrayPool$1).u36 = function () {
|
|
432
432
|
var tmp = 0;
|
|
433
433
|
var tmp_0 = new Int32Array(768);
|
|
434
434
|
while (tmp < 768) {
|
|
@@ -437,25 +437,25 @@
|
|
|
437
437
|
}
|
|
438
438
|
return tmp_0;
|
|
439
439
|
};
|
|
440
|
-
protoOf(IntArrayPool$1).
|
|
440
|
+
protoOf(IntArrayPool$1).x3u = function (instance) {
|
|
441
441
|
fill(instance, -1);
|
|
442
|
-
return protoOf(DefaultPool).
|
|
442
|
+
return protoOf(DefaultPool).z36.call(this, instance);
|
|
443
443
|
};
|
|
444
|
-
protoOf(IntArrayPool$1).
|
|
445
|
-
return this.
|
|
444
|
+
protoOf(IntArrayPool$1).z36 = function (instance) {
|
|
445
|
+
return this.x3u(isIntArray(instance) ? instance : THROW_CCE());
|
|
446
446
|
};
|
|
447
447
|
function HeadersDataPool$1() {
|
|
448
448
|
DefaultPool.call(this, 1000);
|
|
449
449
|
}
|
|
450
|
-
protoOf(HeadersDataPool$1).
|
|
450
|
+
protoOf(HeadersDataPool$1).u36 = function () {
|
|
451
451
|
return new HeadersData();
|
|
452
452
|
};
|
|
453
|
-
protoOf(HeadersDataPool$1).
|
|
454
|
-
instance.
|
|
455
|
-
return protoOf(DefaultPool).
|
|
453
|
+
protoOf(HeadersDataPool$1).b3v = function (instance) {
|
|
454
|
+
instance.u2r();
|
|
455
|
+
return protoOf(DefaultPool).z36.call(this, instance);
|
|
456
456
|
};
|
|
457
|
-
protoOf(HeadersDataPool$1).
|
|
458
|
-
return this.
|
|
457
|
+
protoOf(HeadersDataPool$1).z36 = function (instance) {
|
|
458
|
+
return this.b3v(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
459
459
|
};
|
|
460
460
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
461
461
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -479,22 +479,22 @@
|
|
|
479
479
|
function parseHeaders(input, builder, range, $completion) {
|
|
480
480
|
range = range === VOID ? new MutableRange(0, 0) : range;
|
|
481
481
|
var tmp = new $parseHeadersCOROUTINE$(input, builder, range, $completion);
|
|
482
|
-
tmp.
|
|
483
|
-
tmp.
|
|
484
|
-
return tmp.
|
|
482
|
+
tmp.k9_1 = Unit_instance;
|
|
483
|
+
tmp.l9_1 = null;
|
|
484
|
+
return tmp.q9();
|
|
485
485
|
}
|
|
486
486
|
function parseHeaderName(text, range) {
|
|
487
487
|
_init_properties_HttpParser_kt__gbdom1();
|
|
488
|
-
var index = range.
|
|
489
|
-
var end = range.
|
|
488
|
+
var index = range.p3v_1;
|
|
489
|
+
var end = range.q3v_1;
|
|
490
490
|
while (index < end) {
|
|
491
491
|
var ch = text.b(index);
|
|
492
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
493
|
-
range.
|
|
492
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.p3v_1)) {
|
|
493
|
+
range.p3v_1 = index + 1 | 0;
|
|
494
494
|
return index;
|
|
495
495
|
}
|
|
496
496
|
if (isDelimiter(ch)) {
|
|
497
|
-
parseHeaderNameFailed(text, index, range.
|
|
497
|
+
parseHeaderNameFailed(text, index, range.p3v_1, ch);
|
|
498
498
|
}
|
|
499
499
|
index = index + 1 | 0;
|
|
500
500
|
}
|
|
@@ -502,12 +502,12 @@
|
|
|
502
502
|
}
|
|
503
503
|
function parseHeaderValue(text, range) {
|
|
504
504
|
_init_properties_HttpParser_kt__gbdom1();
|
|
505
|
-
var start = range.
|
|
506
|
-
var end = range.
|
|
505
|
+
var start = range.p3v_1;
|
|
506
|
+
var end = range.q3v_1;
|
|
507
507
|
var index = start;
|
|
508
508
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
509
509
|
if (index >= end) {
|
|
510
|
-
range.
|
|
510
|
+
range.p3v_1 = end;
|
|
511
511
|
return Unit_instance;
|
|
512
512
|
}
|
|
513
513
|
var valueStart = index;
|
|
@@ -521,8 +521,8 @@
|
|
|
521
521
|
valueLastIndex = index;
|
|
522
522
|
index = index + 1 | 0;
|
|
523
523
|
}
|
|
524
|
-
range.
|
|
525
|
-
range.
|
|
524
|
+
range.p3v_1 = valueStart;
|
|
525
|
+
range.q3v_1 = valueLastIndex + 1 | 0;
|
|
526
526
|
}
|
|
527
527
|
function validateHostHeader(host) {
|
|
528
528
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -563,9 +563,9 @@
|
|
|
563
563
|
}
|
|
564
564
|
function noColonFound(text, range) {
|
|
565
565
|
_init_properties_HttpParser_kt__gbdom1();
|
|
566
|
-
var tmp2 = range.
|
|
566
|
+
var tmp2 = range.p3v_1;
|
|
567
567
|
// Inline function 'kotlin.text.substring' call
|
|
568
|
-
var endIndex = range.
|
|
568
|
+
var endIndex = range.q3v_1;
|
|
569
569
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
570
570
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
571
571
|
}
|
|
@@ -581,30 +581,30 @@
|
|
|
581
581
|
}
|
|
582
582
|
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
583
583
|
CoroutineImpl.call(this, resultContinuation);
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
584
|
+
this.k3v_1 = input;
|
|
585
|
+
this.l3v_1 = builder;
|
|
586
|
+
this.m3v_1 = range;
|
|
587
587
|
}
|
|
588
|
-
protoOf($parseHeadersCOROUTINE$).
|
|
589
|
-
var suspendResult = this.
|
|
588
|
+
protoOf($parseHeadersCOROUTINE$).q9 = function () {
|
|
589
|
+
var suspendResult = this.k9_1;
|
|
590
590
|
$sm: do
|
|
591
591
|
try {
|
|
592
|
-
var tmp = this.
|
|
592
|
+
var tmp = this.i9_1;
|
|
593
593
|
switch (tmp) {
|
|
594
594
|
case 0:
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
595
|
+
this.j9_1 = 7;
|
|
596
|
+
this.n3v_1 = new HttpHeadersMap(this.l3v_1);
|
|
597
|
+
this.j9_1 = 6;
|
|
598
|
+
this.i9_1 = 1;
|
|
599
599
|
continue $sm;
|
|
600
600
|
case 1:
|
|
601
601
|
if (!true) {
|
|
602
|
-
this.
|
|
602
|
+
this.i9_1 = 5;
|
|
603
603
|
continue $sm;
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
this.
|
|
607
|
-
suspendResult = readUTF8LineTo(this.
|
|
606
|
+
this.i9_1 = 2;
|
|
607
|
+
suspendResult = readUTF8LineTo(this.k3v_1, this.l3v_1, 8192, get_httpLineEndings(), this);
|
|
608
608
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
609
609
|
return suspendResult;
|
|
610
610
|
}
|
|
@@ -612,68 +612,68 @@
|
|
|
612
612
|
continue $sm;
|
|
613
613
|
case 2:
|
|
614
614
|
if (!suspendResult) {
|
|
615
|
-
this.
|
|
615
|
+
this.n3v_1.u2r();
|
|
616
616
|
return null;
|
|
617
617
|
} else {
|
|
618
|
-
this.
|
|
618
|
+
this.i9_1 = 3;
|
|
619
619
|
continue $sm;
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
case 3:
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
if (this.
|
|
626
|
-
this.
|
|
623
|
+
this.m3v_1.q3v_1 = this.l3v_1.b3u_1;
|
|
624
|
+
this.o3v_1 = this.m3v_1.q3v_1 - this.m3v_1.p3v_1 | 0;
|
|
625
|
+
if (this.o3v_1 === 0) {
|
|
626
|
+
this.i9_1 = 5;
|
|
627
627
|
continue $sm;
|
|
628
628
|
} else {
|
|
629
|
-
this.
|
|
629
|
+
this.i9_1 = 4;
|
|
630
630
|
continue $sm;
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
case 4:
|
|
634
|
-
if (this.
|
|
634
|
+
if (this.o3v_1 >= 8192) {
|
|
635
635
|
var message = 'Header line length limit exceeded';
|
|
636
636
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
-
var nameStart = this.
|
|
640
|
-
var nameEnd = parseHeaderName(this.
|
|
641
|
-
var headerEnd = this.
|
|
642
|
-
parseHeaderValue(this.
|
|
643
|
-
var valueStart = this.
|
|
644
|
-
var valueEnd = this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
639
|
+
var nameStart = this.m3v_1.p3v_1;
|
|
640
|
+
var nameEnd = parseHeaderName(this.l3v_1, this.m3v_1);
|
|
641
|
+
var headerEnd = this.m3v_1.q3v_1;
|
|
642
|
+
parseHeaderValue(this.l3v_1, this.m3v_1);
|
|
643
|
+
var valueStart = this.m3v_1.p3v_1;
|
|
644
|
+
var valueEnd = this.m3v_1.q3v_1;
|
|
645
|
+
this.m3v_1.p3v_1 = headerEnd;
|
|
646
|
+
this.n3v_1.s3t(nameStart, nameEnd, valueStart, valueEnd);
|
|
647
|
+
this.i9_1 = 1;
|
|
648
648
|
continue $sm;
|
|
649
649
|
case 5:
|
|
650
|
-
var host = this.
|
|
650
|
+
var host = this.n3v_1.j3a(HttpHeaders_getInstance().y3j_1);
|
|
651
651
|
if (!(host == null)) {
|
|
652
652
|
validateHostHeader(host);
|
|
653
653
|
}
|
|
654
654
|
|
|
655
|
-
return this.
|
|
655
|
+
return this.n3v_1;
|
|
656
656
|
case 6:
|
|
657
|
-
this.
|
|
658
|
-
var tmp_0 = this.
|
|
657
|
+
this.j9_1 = 7;
|
|
658
|
+
var tmp_0 = this.l9_1;
|
|
659
659
|
if (tmp_0 instanceof Error) {
|
|
660
|
-
var t = this.
|
|
661
|
-
this.
|
|
660
|
+
var t = this.l9_1;
|
|
661
|
+
this.n3v_1.u2r();
|
|
662
662
|
throw t;
|
|
663
663
|
} else {
|
|
664
|
-
throw this.
|
|
664
|
+
throw this.l9_1;
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
case 7:
|
|
668
|
-
throw this.
|
|
668
|
+
throw this.l9_1;
|
|
669
669
|
}
|
|
670
670
|
} catch ($p) {
|
|
671
671
|
var e = $p;
|
|
672
|
-
if (this.
|
|
672
|
+
if (this.j9_1 === 7) {
|
|
673
673
|
throw e;
|
|
674
674
|
} else {
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
675
|
+
this.i9_1 = this.j9_1;
|
|
676
|
+
this.l9_1 = e;
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
while (true);
|
|
@@ -683,8 +683,8 @@
|
|
|
683
683
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
684
684
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
685
685
|
hostForbiddenSymbols = setOf([new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(64))]);
|
|
686
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().
|
|
687
|
-
versions = Companion_instance.
|
|
686
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().b32_1, Companion_getInstance().a32_1);
|
|
687
|
+
versions = Companion_instance.r3v(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
function get_CrLf() {
|
|
@@ -699,23 +699,23 @@
|
|
|
699
699
|
var PrefixString;
|
|
700
700
|
function Preamble(body) {
|
|
701
701
|
MultipartEvent.call(this);
|
|
702
|
-
this.
|
|
702
|
+
this.s3v_1 = body;
|
|
703
703
|
}
|
|
704
704
|
function MultipartPart(headers, body) {
|
|
705
705
|
MultipartEvent.call(this);
|
|
706
|
-
this.
|
|
707
|
-
this.
|
|
706
|
+
this.t3v_1 = headers;
|
|
707
|
+
this.u3v_1 = body;
|
|
708
708
|
}
|
|
709
709
|
function Epilogue(body) {
|
|
710
710
|
MultipartEvent.call(this);
|
|
711
|
-
this.
|
|
711
|
+
this.v3v_1 = body;
|
|
712
712
|
}
|
|
713
713
|
function MultipartEvent() {
|
|
714
714
|
}
|
|
715
715
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
716
716
|
maxPartSize = maxPartSize === VOID ? new Long(-1, 2147483647) : maxPartSize;
|
|
717
717
|
_init_properties_Multipart_kt__ato98a();
|
|
718
|
-
if (!MultiPart_getInstance().
|
|
718
|
+
if (!MultiPart_getInstance().p3h(contentType)) {
|
|
719
719
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
720
720
|
}
|
|
721
721
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -863,21 +863,21 @@
|
|
|
863
863
|
}
|
|
864
864
|
function parsePartHeadersImpl(input, $completion) {
|
|
865
865
|
var tmp = new $parsePartHeadersImplCOROUTINE$(input, $completion);
|
|
866
|
-
tmp.
|
|
867
|
-
tmp.
|
|
868
|
-
return tmp.
|
|
866
|
+
tmp.k9_1 = Unit_instance;
|
|
867
|
+
tmp.l9_1 = null;
|
|
868
|
+
return tmp.q9();
|
|
869
869
|
}
|
|
870
870
|
function parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $completion) {
|
|
871
871
|
var tmp = new $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, $completion);
|
|
872
|
-
tmp.
|
|
873
|
-
tmp.
|
|
874
|
-
return tmp.
|
|
872
|
+
tmp.k9_1 = Unit_instance;
|
|
873
|
+
tmp.l9_1 = null;
|
|
874
|
+
return tmp.q9();
|
|
875
875
|
}
|
|
876
876
|
function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
|
|
877
877
|
var tmp = new $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, $completion);
|
|
878
|
-
tmp.
|
|
879
|
-
tmp.
|
|
880
|
-
return tmp.
|
|
878
|
+
tmp.k9_1 = Unit_instance;
|
|
879
|
+
tmp.l9_1 = null;
|
|
880
|
+
return tmp.q9();
|
|
881
881
|
}
|
|
882
882
|
function throwLimitExceeded(actual, limit) {
|
|
883
883
|
_init_properties_Multipart_kt__ato98a();
|
|
@@ -892,37 +892,37 @@
|
|
|
892
892
|
boundaryBytes[_unary__edvuaz] = value;
|
|
893
893
|
}
|
|
894
894
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
895
|
-
this.
|
|
896
|
-
this.
|
|
895
|
+
this.p3x_1 = $firstBoundary;
|
|
896
|
+
this.q3x_1 = $countedInput;
|
|
897
897
|
CoroutineImpl.call(this, resultContinuation);
|
|
898
898
|
}
|
|
899
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
900
|
-
var tmp = this.
|
|
901
|
-
tmp.
|
|
902
|
-
tmp.
|
|
903
|
-
return tmp.
|
|
899
|
+
protoOf(parseMultipart$slambda$slambda).s3x = function ($this$writer, $completion) {
|
|
900
|
+
var tmp = this.t3x($this$writer, $completion);
|
|
901
|
+
tmp.k9_1 = Unit_instance;
|
|
902
|
+
tmp.l9_1 = null;
|
|
903
|
+
return tmp.q9();
|
|
904
904
|
};
|
|
905
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
906
|
-
return this.
|
|
905
|
+
protoOf(parseMultipart$slambda$slambda).ca = function (p1, $completion) {
|
|
906
|
+
return this.s3x(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
907
907
|
};
|
|
908
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
909
|
-
var suspendResult = this.
|
|
908
|
+
protoOf(parseMultipart$slambda$slambda).q9 = function () {
|
|
909
|
+
var suspendResult = this.k9_1;
|
|
910
910
|
$sm: do
|
|
911
911
|
try {
|
|
912
|
-
var tmp = this.
|
|
912
|
+
var tmp = this.i9_1;
|
|
913
913
|
switch (tmp) {
|
|
914
914
|
case 0:
|
|
915
|
-
this.
|
|
916
|
-
this.
|
|
917
|
-
suspendResult = parsePreambleImpl(this.
|
|
915
|
+
this.j9_1 = 3;
|
|
916
|
+
this.i9_1 = 1;
|
|
917
|
+
suspendResult = parsePreambleImpl(this.p3x_1, this.q3x_1, this.r3x_1.n34_1, new Long(8193, 0), this);
|
|
918
918
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
919
919
|
return suspendResult;
|
|
920
920
|
}
|
|
921
921
|
|
|
922
922
|
continue $sm;
|
|
923
923
|
case 1:
|
|
924
|
-
this.
|
|
925
|
-
suspendResult = this.
|
|
924
|
+
this.i9_1 = 2;
|
|
925
|
+
suspendResult = this.r3x_1.n34_1.u2w(this);
|
|
926
926
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
927
927
|
return suspendResult;
|
|
928
928
|
}
|
|
@@ -931,61 +931,61 @@
|
|
|
931
931
|
case 2:
|
|
932
932
|
return Unit_instance;
|
|
933
933
|
case 3:
|
|
934
|
-
throw this.
|
|
934
|
+
throw this.l9_1;
|
|
935
935
|
}
|
|
936
936
|
} catch ($p) {
|
|
937
937
|
var e = $p;
|
|
938
|
-
if (this.
|
|
938
|
+
if (this.j9_1 === 3) {
|
|
939
939
|
throw e;
|
|
940
940
|
} else {
|
|
941
|
-
this.
|
|
942
|
-
this.
|
|
941
|
+
this.i9_1 = this.j9_1;
|
|
942
|
+
this.l9_1 = e;
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
while (true);
|
|
946
946
|
};
|
|
947
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
948
|
-
var i = new parseMultipart$slambda$slambda(this.
|
|
949
|
-
i.
|
|
947
|
+
protoOf(parseMultipart$slambda$slambda).t3x = function ($this$writer, completion) {
|
|
948
|
+
var i = new parseMultipart$slambda$slambda(this.p3x_1, this.q3x_1, completion);
|
|
949
|
+
i.r3x_1 = $this$writer;
|
|
950
950
|
return i;
|
|
951
951
|
};
|
|
952
952
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
953
953
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
954
954
|
var l = function ($this$writer, $completion) {
|
|
955
|
-
return i.
|
|
955
|
+
return i.s3x($this$writer, $completion);
|
|
956
956
|
};
|
|
957
957
|
l.$arity = 1;
|
|
958
958
|
return l;
|
|
959
959
|
}
|
|
960
960
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
961
|
+
this.c3y_1 = $input;
|
|
962
|
+
this.d3y_1 = $boundaryPrefixed;
|
|
963
|
+
this.e3y_1 = $maxPartSize;
|
|
964
|
+
this.f3y_1 = $totalLength;
|
|
965
965
|
CoroutineImpl.call(this, resultContinuation);
|
|
966
966
|
}
|
|
967
|
-
protoOf(parseMultipart$slambda).
|
|
968
|
-
var tmp = this.
|
|
969
|
-
tmp.
|
|
970
|
-
tmp.
|
|
971
|
-
return tmp.
|
|
967
|
+
protoOf(parseMultipart$slambda).o3y = function ($this$produce, $completion) {
|
|
968
|
+
var tmp = this.p3y($this$produce, $completion);
|
|
969
|
+
tmp.k9_1 = Unit_instance;
|
|
970
|
+
tmp.l9_1 = null;
|
|
971
|
+
return tmp.q9();
|
|
972
972
|
};
|
|
973
|
-
protoOf(parseMultipart$slambda).
|
|
974
|
-
return this.
|
|
973
|
+
protoOf(parseMultipart$slambda).ca = function (p1, $completion) {
|
|
974
|
+
return this.o3y((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
975
975
|
};
|
|
976
|
-
protoOf(parseMultipart$slambda).
|
|
977
|
-
var suspendResult = this.
|
|
976
|
+
protoOf(parseMultipart$slambda).q9 = function () {
|
|
977
|
+
var suspendResult = this.k9_1;
|
|
978
978
|
$sm: do
|
|
979
979
|
try {
|
|
980
|
-
var tmp = this.
|
|
980
|
+
var tmp = this.i9_1;
|
|
981
981
|
switch (tmp) {
|
|
982
982
|
case 0:
|
|
983
|
-
this.
|
|
984
|
-
this.
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
988
|
-
suspendResult = readRemaining(writer(this.
|
|
983
|
+
this.j9_1 = 25;
|
|
984
|
+
this.h3y_1 = counted(this.c3y_1);
|
|
985
|
+
this.i3y_1 = this.h3y_1.i36();
|
|
986
|
+
this.m3y_1 = this.d3y_1.h1i(get_PrefixString().g1());
|
|
987
|
+
this.i9_1 = 1;
|
|
988
|
+
suspendResult = readRemaining(writer(this.g3y_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.m3y_1, this.h3y_1, null)).l34_1, this);
|
|
989
989
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
990
990
|
return suspendResult;
|
|
991
991
|
}
|
|
@@ -994,57 +994,57 @@
|
|
|
994
994
|
case 1:
|
|
995
995
|
var preambleData = suspendResult;
|
|
996
996
|
if (compare(get_remaining(preambleData), new Long(0, 0)) > 0) {
|
|
997
|
-
this.
|
|
998
|
-
suspendResult = this.
|
|
997
|
+
this.i9_1 = 2;
|
|
998
|
+
suspendResult = this.g3y_1.y23(new Preamble(preambleData), this);
|
|
999
999
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1000
1000
|
return suspendResult;
|
|
1001
1001
|
}
|
|
1002
1002
|
continue $sm;
|
|
1003
1003
|
} else {
|
|
1004
|
-
this.
|
|
1004
|
+
this.i9_1 = 3;
|
|
1005
1005
|
continue $sm;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
case 2:
|
|
1009
|
-
this.
|
|
1009
|
+
this.i9_1 = 3;
|
|
1010
1010
|
continue $sm;
|
|
1011
1011
|
case 3:
|
|
1012
|
-
this.
|
|
1012
|
+
this.i9_1 = 4;
|
|
1013
1013
|
continue $sm;
|
|
1014
1014
|
case 4:
|
|
1015
|
-
if (!this.
|
|
1016
|
-
this.
|
|
1017
|
-
suspendResult = skipIfFound(this.
|
|
1015
|
+
if (!this.h3y_1.r2w()) {
|
|
1016
|
+
this.i9_1 = 5;
|
|
1017
|
+
suspendResult = skipIfFound(this.h3y_1, get_PrefixString(), this);
|
|
1018
1018
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1019
1019
|
return suspendResult;
|
|
1020
1020
|
}
|
|
1021
1021
|
continue $sm;
|
|
1022
1022
|
} else {
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1023
|
+
this.n3y_1 = false;
|
|
1024
|
+
this.i9_1 = 6;
|
|
1025
1025
|
continue $sm;
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
1028
|
case 5:
|
|
1029
|
-
this.
|
|
1030
|
-
this.
|
|
1029
|
+
this.n3y_1 = !suspendResult;
|
|
1030
|
+
this.i9_1 = 6;
|
|
1031
1031
|
continue $sm;
|
|
1032
1032
|
case 6:
|
|
1033
|
-
if (!this.
|
|
1034
|
-
this.
|
|
1033
|
+
if (!this.n3y_1) {
|
|
1034
|
+
this.i9_1 = 15;
|
|
1035
1035
|
continue $sm;
|
|
1036
1036
|
}
|
|
1037
1037
|
|
|
1038
|
-
this.
|
|
1039
|
-
suspendResult = skipIfFound(this.
|
|
1038
|
+
this.i9_1 = 7;
|
|
1039
|
+
suspendResult = skipIfFound(this.h3y_1, get_CrLf(), this);
|
|
1040
1040
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1041
1041
|
return suspendResult;
|
|
1042
1042
|
}
|
|
1043
1043
|
|
|
1044
1044
|
continue $sm;
|
|
1045
1045
|
case 7:
|
|
1046
|
-
this.
|
|
1047
|
-
suspendResult = skipIfFound(this.
|
|
1046
|
+
this.i9_1 = 8;
|
|
1047
|
+
suspendResult = skipIfFound(this.h3y_1, this.m3y_1, this);
|
|
1048
1048
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1049
1049
|
return suspendResult;
|
|
1050
1050
|
}
|
|
@@ -1052,112 +1052,112 @@
|
|
|
1052
1052
|
continue $sm;
|
|
1053
1053
|
case 8:
|
|
1054
1054
|
if (suspendResult) {
|
|
1055
|
-
this.
|
|
1055
|
+
this.i9_1 = 4;
|
|
1056
1056
|
continue $sm;
|
|
1057
1057
|
} else {
|
|
1058
|
-
this.
|
|
1058
|
+
this.i9_1 = 9;
|
|
1059
1059
|
continue $sm;
|
|
1060
1060
|
}
|
|
1061
1061
|
|
|
1062
1062
|
case 9:
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
var part = new MultipartPart(this.
|
|
1066
|
-
this.
|
|
1067
|
-
suspendResult = this.
|
|
1063
|
+
this.j3y_1 = new ByteChannel();
|
|
1064
|
+
this.l3y_1 = CompletableDeferred();
|
|
1065
|
+
var part = new MultipartPart(this.l3y_1, this.j3y_1);
|
|
1066
|
+
this.i9_1 = 10;
|
|
1067
|
+
suspendResult = this.g3y_1.y23(part, this);
|
|
1068
1068
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1069
1069
|
return suspendResult;
|
|
1070
1070
|
}
|
|
1071
1071
|
|
|
1072
1072
|
continue $sm;
|
|
1073
1073
|
case 10:
|
|
1074
|
-
this.
|
|
1075
|
-
this.
|
|
1076
|
-
this.
|
|
1077
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1074
|
+
this.k3y_1 = null;
|
|
1075
|
+
this.j9_1 = 14;
|
|
1076
|
+
this.i9_1 = 11;
|
|
1077
|
+
suspendResult = parsePartHeadersImpl(this.h3y_1, this);
|
|
1078
1078
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1079
1079
|
return suspendResult;
|
|
1080
1080
|
}
|
|
1081
1081
|
|
|
1082
1082
|
continue $sm;
|
|
1083
1083
|
case 11:
|
|
1084
|
-
this.
|
|
1085
|
-
if (!this.
|
|
1086
|
-
this.
|
|
1084
|
+
this.k3y_1 = suspendResult;
|
|
1085
|
+
if (!this.l3y_1.p1u(this.k3y_1)) {
|
|
1086
|
+
this.k3y_1.u2r();
|
|
1087
1087
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
-
this.
|
|
1091
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1090
|
+
this.i9_1 = 12;
|
|
1091
|
+
suspendResult = parsePartBodyImpl(this.d3y_1, this.h3y_1, this.j3y_1, this.k3y_1, this.e3y_1, this);
|
|
1092
1092
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1093
1093
|
return suspendResult;
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
1096
|
continue $sm;
|
|
1097
1097
|
case 12:
|
|
1098
|
-
this.
|
|
1099
|
-
this.
|
|
1100
|
-
this.
|
|
1098
|
+
this.j3y_1.r4();
|
|
1099
|
+
this.j9_1 = 25;
|
|
1100
|
+
this.i9_1 = 13;
|
|
1101
1101
|
continue $sm;
|
|
1102
1102
|
case 13:
|
|
1103
|
-
this.
|
|
1104
|
-
this.
|
|
1103
|
+
this.j9_1 = 25;
|
|
1104
|
+
this.i9_1 = 4;
|
|
1105
1105
|
continue $sm;
|
|
1106
1106
|
case 14:
|
|
1107
|
-
this.
|
|
1108
|
-
var tmp_0 = this.
|
|
1107
|
+
this.j9_1 = 25;
|
|
1108
|
+
var tmp_0 = this.l9_1;
|
|
1109
1109
|
if (tmp_0 instanceof Error) {
|
|
1110
|
-
var cause = this.
|
|
1111
|
-
if (this.
|
|
1112
|
-
var tmp0_safe_receiver = this.
|
|
1110
|
+
var cause = this.l9_1;
|
|
1111
|
+
if (this.l3y_1.q1u(cause)) {
|
|
1112
|
+
var tmp0_safe_receiver = this.k3y_1;
|
|
1113
1113
|
if (tmp0_safe_receiver == null)
|
|
1114
1114
|
null;
|
|
1115
1115
|
else {
|
|
1116
|
-
tmp0_safe_receiver.
|
|
1116
|
+
tmp0_safe_receiver.u2r();
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
close(this.
|
|
1119
|
+
close(this.j3y_1, cause);
|
|
1120
1120
|
throw cause;
|
|
1121
1121
|
} else {
|
|
1122
|
-
throw this.
|
|
1122
|
+
throw this.l9_1;
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
1125
|
case 15:
|
|
1126
|
-
this.
|
|
1127
|
-
suspendResult = skipIfFound(this.
|
|
1126
|
+
this.i9_1 = 16;
|
|
1127
|
+
suspendResult = skipIfFound(this.h3y_1, get_CrLf(), this);
|
|
1128
1128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1129
1129
|
return suspendResult;
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
1132
|
continue $sm;
|
|
1133
1133
|
case 16:
|
|
1134
|
-
this.
|
|
1135
|
-
suspendResult = skipIfFound(this.
|
|
1134
|
+
this.i9_1 = 17;
|
|
1135
|
+
suspendResult = skipIfFound(this.h3y_1, get_CrLf(), this);
|
|
1136
1136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1137
1137
|
return suspendResult;
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
1140
|
continue $sm;
|
|
1141
1141
|
case 17:
|
|
1142
|
-
if (!(this.
|
|
1143
|
-
var consumedExceptEpilogue = subtract(this.
|
|
1144
|
-
var size = subtract(this.
|
|
1142
|
+
if (!(this.f3y_1 == null)) {
|
|
1143
|
+
var consumedExceptEpilogue = subtract(this.h3y_1.i36(), this.i3y_1);
|
|
1144
|
+
var size = subtract(this.f3y_1, consumedExceptEpilogue);
|
|
1145
1145
|
if (compare(size, new Long(2147483647, 0)) > 0)
|
|
1146
1146
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
1147
1147
|
if (compare(size, new Long(0, 0)) > 0) {
|
|
1148
|
-
this.
|
|
1149
|
-
suspendResult = readPacket(this.
|
|
1148
|
+
this.i9_1 = 21;
|
|
1149
|
+
suspendResult = readPacket(this.h3y_1, convertToInt(size), this);
|
|
1150
1150
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1151
1151
|
return suspendResult;
|
|
1152
1152
|
}
|
|
1153
1153
|
continue $sm;
|
|
1154
1154
|
} else {
|
|
1155
|
-
this.
|
|
1155
|
+
this.i9_1 = 23;
|
|
1156
1156
|
continue $sm;
|
|
1157
1157
|
}
|
|
1158
1158
|
} else {
|
|
1159
|
-
this.
|
|
1160
|
-
suspendResult = readRemaining(this.
|
|
1159
|
+
this.i9_1 = 18;
|
|
1160
|
+
suspendResult = readRemaining(this.h3y_1, this);
|
|
1161
1161
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1162
1162
|
return suspendResult;
|
|
1163
1163
|
}
|
|
@@ -1166,85 +1166,85 @@
|
|
|
1166
1166
|
|
|
1167
1167
|
case 18:
|
|
1168
1168
|
var epilogueContent = suspendResult;
|
|
1169
|
-
if (!epilogueContent.
|
|
1170
|
-
this.
|
|
1171
|
-
suspendResult = this.
|
|
1169
|
+
if (!epilogueContent.p1i()) {
|
|
1170
|
+
this.i9_1 = 19;
|
|
1171
|
+
suspendResult = this.g3y_1.y23(new Epilogue(epilogueContent), this);
|
|
1172
1172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1173
1173
|
return suspendResult;
|
|
1174
1174
|
}
|
|
1175
1175
|
continue $sm;
|
|
1176
1176
|
} else {
|
|
1177
|
-
this.
|
|
1177
|
+
this.i9_1 = 20;
|
|
1178
1178
|
continue $sm;
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
1181
|
case 19:
|
|
1182
|
-
this.
|
|
1182
|
+
this.i9_1 = 20;
|
|
1183
1183
|
continue $sm;
|
|
1184
1184
|
case 20:
|
|
1185
|
-
this.
|
|
1185
|
+
this.i9_1 = 24;
|
|
1186
1186
|
continue $sm;
|
|
1187
1187
|
case 21:
|
|
1188
1188
|
var ARGUMENT = suspendResult;
|
|
1189
1189
|
var ARGUMENT_0 = new Epilogue(ARGUMENT);
|
|
1190
|
-
this.
|
|
1191
|
-
suspendResult = this.
|
|
1190
|
+
this.i9_1 = 22;
|
|
1191
|
+
suspendResult = this.g3y_1.y23(ARGUMENT_0, this);
|
|
1192
1192
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1193
1193
|
return suspendResult;
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
1196
|
continue $sm;
|
|
1197
1197
|
case 22:
|
|
1198
|
-
this.
|
|
1198
|
+
this.i9_1 = 23;
|
|
1199
1199
|
continue $sm;
|
|
1200
1200
|
case 23:
|
|
1201
|
-
this.
|
|
1201
|
+
this.i9_1 = 24;
|
|
1202
1202
|
continue $sm;
|
|
1203
1203
|
case 24:
|
|
1204
1204
|
return Unit_instance;
|
|
1205
1205
|
case 25:
|
|
1206
|
-
throw this.
|
|
1206
|
+
throw this.l9_1;
|
|
1207
1207
|
}
|
|
1208
1208
|
} catch ($p) {
|
|
1209
1209
|
var e = $p;
|
|
1210
|
-
if (this.
|
|
1210
|
+
if (this.j9_1 === 25) {
|
|
1211
1211
|
throw e;
|
|
1212
1212
|
} else {
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1213
|
+
this.i9_1 = this.j9_1;
|
|
1214
|
+
this.l9_1 = e;
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
while (true);
|
|
1218
1218
|
};
|
|
1219
|
-
protoOf(parseMultipart$slambda).
|
|
1220
|
-
var i = new parseMultipart$slambda(this.
|
|
1221
|
-
i.
|
|
1219
|
+
protoOf(parseMultipart$slambda).p3y = function ($this$produce, completion) {
|
|
1220
|
+
var i = new parseMultipart$slambda(this.c3y_1, this.d3y_1, this.e3y_1, this.f3y_1, completion);
|
|
1221
|
+
i.g3y_1 = $this$produce;
|
|
1222
1222
|
return i;
|
|
1223
1223
|
};
|
|
1224
1224
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1225
1225
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1226
1226
|
var l = function ($this$produce, $completion) {
|
|
1227
|
-
return i.
|
|
1227
|
+
return i.o3y($this$produce, $completion);
|
|
1228
1228
|
};
|
|
1229
1229
|
l.$arity = 1;
|
|
1230
1230
|
return l;
|
|
1231
1231
|
}
|
|
1232
1232
|
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1233
1233
|
CoroutineImpl.call(this, resultContinuation);
|
|
1234
|
-
this.
|
|
1234
|
+
this.e3w_1 = input;
|
|
1235
1235
|
}
|
|
1236
|
-
protoOf($parsePartHeadersImplCOROUTINE$).
|
|
1237
|
-
var suspendResult = this.
|
|
1236
|
+
protoOf($parsePartHeadersImplCOROUTINE$).q9 = function () {
|
|
1237
|
+
var suspendResult = this.k9_1;
|
|
1238
1238
|
$sm: do
|
|
1239
1239
|
try {
|
|
1240
|
-
var tmp = this.
|
|
1240
|
+
var tmp = this.i9_1;
|
|
1241
1241
|
switch (tmp) {
|
|
1242
1242
|
case 0:
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1246
|
-
this.
|
|
1247
|
-
suspendResult = parseHeaders(this.
|
|
1243
|
+
this.j9_1 = 3;
|
|
1244
|
+
this.f3w_1 = new CharArrayBuilder();
|
|
1245
|
+
this.j9_1 = 2;
|
|
1246
|
+
this.i9_1 = 1;
|
|
1247
|
+
suspendResult = parseHeaders(this.e3w_1, this.f3w_1, VOID, this);
|
|
1248
1248
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1249
1249
|
return suspendResult;
|
|
1250
1250
|
}
|
|
@@ -1261,75 +1261,75 @@
|
|
|
1261
1261
|
|
|
1262
1262
|
return tmp_0;
|
|
1263
1263
|
case 2:
|
|
1264
|
-
this.
|
|
1265
|
-
var tmp_1 = this.
|
|
1264
|
+
this.j9_1 = 3;
|
|
1265
|
+
var tmp_1 = this.l9_1;
|
|
1266
1266
|
if (tmp_1 instanceof Error) {
|
|
1267
|
-
var t = this.
|
|
1268
|
-
this.
|
|
1267
|
+
var t = this.l9_1;
|
|
1268
|
+
this.f3w_1.u2r();
|
|
1269
1269
|
throw t;
|
|
1270
1270
|
} else {
|
|
1271
|
-
throw this.
|
|
1271
|
+
throw this.l9_1;
|
|
1272
1272
|
}
|
|
1273
1273
|
|
|
1274
1274
|
case 3:
|
|
1275
|
-
throw this.
|
|
1275
|
+
throw this.l9_1;
|
|
1276
1276
|
}
|
|
1277
1277
|
} catch ($p) {
|
|
1278
1278
|
var e = $p;
|
|
1279
|
-
if (this.
|
|
1279
|
+
if (this.j9_1 === 3) {
|
|
1280
1280
|
throw e;
|
|
1281
1281
|
} else {
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1282
|
+
this.i9_1 = this.j9_1;
|
|
1283
|
+
this.l9_1 = e;
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
1286
|
while (true);
|
|
1287
1287
|
};
|
|
1288
1288
|
function $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1289
1289
|
CoroutineImpl.call(this, resultContinuation);
|
|
1290
|
-
this.
|
|
1291
|
-
this.
|
|
1292
|
-
this.
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1295
|
-
}
|
|
1296
|
-
protoOf($parsePartBodyImplCOROUTINE$).
|
|
1297
|
-
var suspendResult = this.
|
|
1290
|
+
this.o3w_1 = boundaryPrefixed;
|
|
1291
|
+
this.p3w_1 = input;
|
|
1292
|
+
this.q3w_1 = output;
|
|
1293
|
+
this.r3w_1 = headers;
|
|
1294
|
+
this.s3w_1 = limit;
|
|
1295
|
+
}
|
|
1296
|
+
protoOf($parsePartBodyImplCOROUTINE$).q9 = function () {
|
|
1297
|
+
var suspendResult = this.k9_1;
|
|
1298
1298
|
$sm: do
|
|
1299
1299
|
try {
|
|
1300
|
-
var tmp = this.
|
|
1300
|
+
var tmp = this.i9_1;
|
|
1301
1301
|
switch (tmp) {
|
|
1302
1302
|
case 0:
|
|
1303
|
-
this.
|
|
1304
|
-
var tmp0_safe_receiver = this.
|
|
1303
|
+
this.j9_1 = 6;
|
|
1304
|
+
var tmp0_safe_receiver = this.r3w_1.j3a('Content-Length');
|
|
1305
1305
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1306
1306
|
if (contentLength == null) {
|
|
1307
|
-
this.
|
|
1308
|
-
suspendResult = readUntil(this.
|
|
1307
|
+
this.i9_1 = 3;
|
|
1308
|
+
suspendResult = readUntil(this.p3w_1, this.o3w_1, this.q3w_1, this.s3w_1, true, this);
|
|
1309
1309
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1310
1310
|
return suspendResult;
|
|
1311
1311
|
}
|
|
1312
1312
|
continue $sm;
|
|
1313
1313
|
} else {
|
|
1314
|
-
var containsUpper = this.
|
|
1314
|
+
var containsUpper = this.s3w_1;
|
|
1315
1315
|
if (compare(new Long(0, 0), contentLength) <= 0 ? compare(contentLength, containsUpper) <= 0 : false) {
|
|
1316
|
-
this.
|
|
1317
|
-
suspendResult = copyTo(this.
|
|
1316
|
+
this.i9_1 = 1;
|
|
1317
|
+
suspendResult = copyTo(this.p3w_1, this.q3w_1, contentLength, this);
|
|
1318
1318
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1319
1319
|
return suspendResult;
|
|
1320
1320
|
}
|
|
1321
1321
|
continue $sm;
|
|
1322
1322
|
} else {
|
|
1323
1323
|
var tmp_0 = this;
|
|
1324
|
-
throwLimitExceeded(contentLength, this.
|
|
1324
|
+
throwLimitExceeded(contentLength, this.s3w_1);
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
1328
|
break;
|
|
1329
1329
|
case 1:
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1332
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1330
|
+
this.v3w_1 = suspendResult;
|
|
1331
|
+
this.i9_1 = 2;
|
|
1332
|
+
suspendResult = skipIfFoundReadCount(this.p3w_1, this.o3w_1, this);
|
|
1333
1333
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1334
1334
|
return suspendResult;
|
|
1335
1335
|
}
|
|
@@ -1337,53 +1337,53 @@
|
|
|
1337
1337
|
continue $sm;
|
|
1338
1338
|
case 2:
|
|
1339
1339
|
var ARGUMENT = suspendResult;
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1340
|
+
this.u3w_1 = add(this.v3w_1, ARGUMENT);
|
|
1341
|
+
this.i9_1 = 4;
|
|
1342
1342
|
continue $sm;
|
|
1343
1343
|
case 3:
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1344
|
+
this.u3w_1 = suspendResult;
|
|
1345
|
+
this.i9_1 = 4;
|
|
1346
1346
|
continue $sm;
|
|
1347
1347
|
case 4:
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
suspendResult = this.
|
|
1348
|
+
this.t3w_1 = this.u3w_1;
|
|
1349
|
+
this.i9_1 = 5;
|
|
1350
|
+
suspendResult = this.q3w_1.i2w(this);
|
|
1351
1351
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1352
1352
|
return suspendResult;
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
1355
|
continue $sm;
|
|
1356
1356
|
case 5:
|
|
1357
|
-
return this.
|
|
1357
|
+
return this.t3w_1;
|
|
1358
1358
|
case 6:
|
|
1359
|
-
throw this.
|
|
1359
|
+
throw this.l9_1;
|
|
1360
1360
|
}
|
|
1361
1361
|
} catch ($p) {
|
|
1362
1362
|
var e = $p;
|
|
1363
|
-
if (this.
|
|
1363
|
+
if (this.j9_1 === 6) {
|
|
1364
1364
|
throw e;
|
|
1365
1365
|
} else {
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1366
|
+
this.i9_1 = this.j9_1;
|
|
1367
|
+
this.l9_1 = e;
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
while (true);
|
|
1371
1371
|
};
|
|
1372
1372
|
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1373
1373
|
CoroutineImpl.call(this, resultContinuation);
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1374
|
+
this.e3x_1 = _this__u8e3s4;
|
|
1375
|
+
this.f3x_1 = prefix;
|
|
1376
1376
|
}
|
|
1377
|
-
protoOf($skipIfFoundReadCountCOROUTINE$).
|
|
1378
|
-
var suspendResult = this.
|
|
1377
|
+
protoOf($skipIfFoundReadCountCOROUTINE$).q9 = function () {
|
|
1378
|
+
var suspendResult = this.k9_1;
|
|
1379
1379
|
$sm: do
|
|
1380
1380
|
try {
|
|
1381
|
-
var tmp = this.
|
|
1381
|
+
var tmp = this.i9_1;
|
|
1382
1382
|
switch (tmp) {
|
|
1383
1383
|
case 0:
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
suspendResult = skipIfFound(this.
|
|
1384
|
+
this.j9_1 = 3;
|
|
1385
|
+
this.i9_1 = 1;
|
|
1386
|
+
suspendResult = skipIfFound(this.e3x_1, this.f3x_1, this);
|
|
1387
1387
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1388
1388
|
return suspendResult;
|
|
1389
1389
|
}
|
|
@@ -1392,28 +1392,28 @@
|
|
|
1392
1392
|
case 1:
|
|
1393
1393
|
if (suspendResult) {
|
|
1394
1394
|
var tmp_0 = this;
|
|
1395
|
-
tmp_0.
|
|
1396
|
-
this.
|
|
1395
|
+
tmp_0.g3x_1 = fromInt(this.f3x_1.g1());
|
|
1396
|
+
this.i9_1 = 2;
|
|
1397
1397
|
continue $sm;
|
|
1398
1398
|
} else {
|
|
1399
1399
|
var tmp_1 = this;
|
|
1400
|
-
tmp_1.
|
|
1401
|
-
this.
|
|
1400
|
+
tmp_1.g3x_1 = new Long(0, 0);
|
|
1401
|
+
this.i9_1 = 2;
|
|
1402
1402
|
continue $sm;
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
case 2:
|
|
1406
|
-
return this.
|
|
1406
|
+
return this.g3x_1;
|
|
1407
1407
|
case 3:
|
|
1408
|
-
throw this.
|
|
1408
|
+
throw this.l9_1;
|
|
1409
1409
|
}
|
|
1410
1410
|
} catch ($p) {
|
|
1411
1411
|
var e = $p;
|
|
1412
|
-
if (this.
|
|
1412
|
+
if (this.j9_1 === 3) {
|
|
1413
1413
|
throw e;
|
|
1414
1414
|
} else {
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1415
|
+
this.i9_1 = this.j9_1;
|
|
1416
|
+
this.l9_1 = e;
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
1419
|
while (true);
|
|
@@ -1470,7 +1470,7 @@
|
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
1472
|
build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
|
|
1473
|
-
children.
|
|
1473
|
+
children.b6();
|
|
1474
1474
|
// Inline function 'kotlin.collections.filter' call
|
|
1475
1475
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1476
1476
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -1491,16 +1491,16 @@
|
|
|
1491
1491
|
return new Char(charSequenceGet(s, idx));
|
|
1492
1492
|
}
|
|
1493
1493
|
function Node(ch, exact, children) {
|
|
1494
|
-
this.
|
|
1495
|
-
this.
|
|
1496
|
-
this.
|
|
1494
|
+
this.q3y_1 = ch;
|
|
1495
|
+
this.r3y_1 = exact;
|
|
1496
|
+
this.s3y_1 = children;
|
|
1497
1497
|
var tmp = this;
|
|
1498
1498
|
var tmp_0 = 0;
|
|
1499
1499
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1500
1500
|
var tmp_1 = Array(256);
|
|
1501
1501
|
while (tmp_0 < 256) {
|
|
1502
1502
|
var tmp_2 = tmp_0;
|
|
1503
|
-
var tmp0 = this.
|
|
1503
|
+
var tmp0 = this.s3y_1;
|
|
1504
1504
|
var tmp$ret$3;
|
|
1505
1505
|
$l$block_0: {
|
|
1506
1506
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -1510,7 +1510,7 @@
|
|
|
1510
1510
|
while (_iterator__ex2g4s.u()) {
|
|
1511
1511
|
var element = _iterator__ex2g4s.v();
|
|
1512
1512
|
// Inline function 'kotlin.code' call
|
|
1513
|
-
var this_0 = element.
|
|
1513
|
+
var this_0 = element.q3y_1;
|
|
1514
1514
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1515
1515
|
if (found) {
|
|
1516
1516
|
tmp$ret$3 = null;
|
|
@@ -1529,15 +1529,15 @@
|
|
|
1529
1529
|
tmp_1[tmp_2] = tmp$ret$3;
|
|
1530
1530
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1531
1531
|
}
|
|
1532
|
-
tmp.
|
|
1532
|
+
tmp.t3y_1 = tmp_1;
|
|
1533
1533
|
}
|
|
1534
1534
|
function Companion() {
|
|
1535
1535
|
}
|
|
1536
|
-
protoOf(Companion).
|
|
1536
|
+
protoOf(Companion).r3v = function (from) {
|
|
1537
1537
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1538
|
-
return this.
|
|
1538
|
+
return this.u3y(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1539
1539
|
};
|
|
1540
|
-
protoOf(Companion).
|
|
1540
|
+
protoOf(Companion).u3y = function (from, length, charAt) {
|
|
1541
1541
|
var tmp$ret$0;
|
|
1542
1542
|
$l$block_0: {
|
|
1543
1543
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1606,7 +1606,7 @@
|
|
|
1606
1606
|
throw IllegalArgumentException_init_$Create$('There should be no empty entries');
|
|
1607
1607
|
var root = ArrayList_init_$Create$();
|
|
1608
1608
|
build(this, root, from, maxLen, 0, length, charAt);
|
|
1609
|
-
root.
|
|
1609
|
+
root.b6();
|
|
1610
1610
|
return new AsciiCharTree(new Node(_Char___init__impl__6a9atx(0), emptyList(), root));
|
|
1611
1611
|
};
|
|
1612
1612
|
var Companion_instance;
|
|
@@ -1614,10 +1614,10 @@
|
|
|
1614
1614
|
return Companion_instance;
|
|
1615
1615
|
}
|
|
1616
1616
|
function AsciiCharTree(root) {
|
|
1617
|
-
this.
|
|
1617
|
+
this.v3y_1 = root;
|
|
1618
1618
|
}
|
|
1619
1619
|
function getImpl($this, index) {
|
|
1620
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1620
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.x3t_1).length | 0];
|
|
1621
1621
|
}
|
|
1622
1622
|
function copy($this, startIndex, endIndex) {
|
|
1623
1623
|
if (startIndex === endIndex)
|
|
@@ -1646,27 +1646,27 @@
|
|
|
1646
1646
|
return builder;
|
|
1647
1647
|
}
|
|
1648
1648
|
function SubSequenceImpl($outer, start, end) {
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1649
|
+
this.z3y_1 = $outer;
|
|
1650
|
+
this.w3y_1 = start;
|
|
1651
|
+
this.x3y_1 = end;
|
|
1652
|
+
this.y3y_1 = null;
|
|
1653
1653
|
}
|
|
1654
1654
|
protoOf(SubSequenceImpl).a = function () {
|
|
1655
|
-
return this.
|
|
1655
|
+
return this.x3y_1 - this.w3y_1 | 0;
|
|
1656
1656
|
};
|
|
1657
1657
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1658
|
-
var withOffset = index + this.
|
|
1658
|
+
var withOffset = index + this.w3y_1 | 0;
|
|
1659
1659
|
// Inline function 'kotlin.require' call
|
|
1660
1660
|
if (!(index >= 0)) {
|
|
1661
1661
|
var message = 'index is negative: ' + index;
|
|
1662
1662
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1663
1663
|
}
|
|
1664
1664
|
// Inline function 'kotlin.require' call
|
|
1665
|
-
if (!(withOffset < this.
|
|
1665
|
+
if (!(withOffset < this.x3y_1)) {
|
|
1666
1666
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
1667
1667
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1668
1668
|
}
|
|
1669
|
-
return getImpl(this.
|
|
1669
|
+
return getImpl(this.z3y_1, withOffset);
|
|
1670
1670
|
};
|
|
1671
1671
|
protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
1672
1672
|
// Inline function 'kotlin.require' call
|
|
@@ -1680,21 +1680,21 @@
|
|
|
1680
1680
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1681
1681
|
}
|
|
1682
1682
|
// Inline function 'kotlin.require' call
|
|
1683
|
-
if (!(endIndex <= (this.
|
|
1683
|
+
if (!(endIndex <= (this.x3y_1 - this.w3y_1 | 0))) {
|
|
1684
1684
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
1685
1685
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1686
1686
|
}
|
|
1687
1687
|
if (startIndex === endIndex)
|
|
1688
1688
|
return '';
|
|
1689
|
-
return new SubSequenceImpl(this.
|
|
1689
|
+
return new SubSequenceImpl(this.z3y_1, this.w3y_1 + startIndex | 0, this.w3y_1 + endIndex | 0);
|
|
1690
1690
|
};
|
|
1691
1691
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1692
|
-
var tmp0_elvis_lhs = this.
|
|
1692
|
+
var tmp0_elvis_lhs = this.y3y_1;
|
|
1693
1693
|
var tmp;
|
|
1694
1694
|
if (tmp0_elvis_lhs == null) {
|
|
1695
1695
|
// Inline function 'kotlin.also' call
|
|
1696
|
-
var this_0 = toString(copy(this.
|
|
1697
|
-
this.
|
|
1696
|
+
var this_0 = toString(copy(this.z3y_1, this.w3y_1, this.x3y_1));
|
|
1697
|
+
this.y3y_1 = this_0;
|
|
1698
1698
|
tmp = this_0;
|
|
1699
1699
|
} else {
|
|
1700
1700
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1706,20 +1706,20 @@
|
|
|
1706
1706
|
return false;
|
|
1707
1707
|
if (!(charSequenceLength(other) === this.a()))
|
|
1708
1708
|
return false;
|
|
1709
|
-
return rangeEqualsImpl(this.
|
|
1709
|
+
return rangeEqualsImpl(this.z3y_1, this.w3y_1, other, 0, this.a());
|
|
1710
1710
|
};
|
|
1711
1711
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1712
|
-
var tmp0_safe_receiver = this.
|
|
1712
|
+
var tmp0_safe_receiver = this.y3y_1;
|
|
1713
1713
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1714
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
1714
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.z3y_1, this.w3y_1, this.x3y_1) : tmp1_elvis_lhs;
|
|
1715
1715
|
};
|
|
1716
1716
|
function bufferForIndex($this, index) {
|
|
1717
|
-
var list = $this.
|
|
1717
|
+
var list = $this.w3t_1;
|
|
1718
1718
|
if (list == null) {
|
|
1719
1719
|
if (index >= 2048) {
|
|
1720
1720
|
throwSingleBuffer($this, index);
|
|
1721
1721
|
}
|
|
1722
|
-
var tmp0_elvis_lhs = $this.
|
|
1722
|
+
var tmp0_elvis_lhs = $this.x3t_1;
|
|
1723
1723
|
var tmp;
|
|
1724
1724
|
if (tmp0_elvis_lhs == null) {
|
|
1725
1725
|
throwSingleBuffer($this, index);
|
|
@@ -1728,29 +1728,29 @@
|
|
|
1728
1728
|
}
|
|
1729
1729
|
return tmp;
|
|
1730
1730
|
}
|
|
1731
|
-
return list.h1(index / ensureNotNull($this.
|
|
1731
|
+
return list.h1(index / ensureNotNull($this.x3t_1).length | 0);
|
|
1732
1732
|
}
|
|
1733
1733
|
function throwSingleBuffer($this, index) {
|
|
1734
|
-
if ($this.
|
|
1734
|
+
if ($this.z3t_1)
|
|
1735
1735
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1736
1736
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1737
1737
|
}
|
|
1738
1738
|
function nonFullBuffer($this) {
|
|
1739
|
-
return $this.
|
|
1739
|
+
return $this.a3u_1 === 0 ? appendNewArray($this) : ensureNotNull($this.x3t_1);
|
|
1740
1740
|
}
|
|
1741
1741
|
function appendNewArray($this) {
|
|
1742
|
-
var newBuffer = $this.
|
|
1743
|
-
var existing = $this.
|
|
1744
|
-
$this.
|
|
1745
|
-
$this.
|
|
1746
|
-
$this.
|
|
1742
|
+
var newBuffer = $this.v3t_1.b37();
|
|
1743
|
+
var existing = $this.x3t_1;
|
|
1744
|
+
$this.x3t_1 = newBuffer;
|
|
1745
|
+
$this.a3u_1 = newBuffer.length;
|
|
1746
|
+
$this.z3t_1 = false;
|
|
1747
1747
|
if (!(existing == null)) {
|
|
1748
|
-
var tmp0_elvis_lhs = $this.
|
|
1748
|
+
var tmp0_elvis_lhs = $this.w3t_1;
|
|
1749
1749
|
var tmp;
|
|
1750
1750
|
if (tmp0_elvis_lhs == null) {
|
|
1751
1751
|
// Inline function 'kotlin.also' call
|
|
1752
1752
|
var this_0 = ArrayList_init_$Create$();
|
|
1753
|
-
$this.
|
|
1753
|
+
$this.w3t_1 = this_0;
|
|
1754
1754
|
this_0.e1(existing);
|
|
1755
1755
|
tmp = this_0;
|
|
1756
1756
|
} else {
|
|
@@ -1789,20 +1789,20 @@
|
|
|
1789
1789
|
return hc;
|
|
1790
1790
|
}
|
|
1791
1791
|
function currentPosition($this) {
|
|
1792
|
-
return ensureNotNull($this.
|
|
1792
|
+
return ensureNotNull($this.x3t_1).length - $this.a3u_1 | 0;
|
|
1793
1793
|
}
|
|
1794
1794
|
function CharArrayBuilder(pool) {
|
|
1795
1795
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1796
|
-
this.
|
|
1797
|
-
this.v3t_1 = null;
|
|
1796
|
+
this.v3t_1 = pool;
|
|
1798
1797
|
this.w3t_1 = null;
|
|
1799
1798
|
this.x3t_1 = null;
|
|
1800
|
-
this.y3t_1 =
|
|
1801
|
-
this.z3t_1 =
|
|
1799
|
+
this.y3t_1 = null;
|
|
1800
|
+
this.z3t_1 = false;
|
|
1802
1801
|
this.a3u_1 = 0;
|
|
1802
|
+
this.b3u_1 = 0;
|
|
1803
1803
|
}
|
|
1804
1804
|
protoOf(CharArrayBuilder).a = function () {
|
|
1805
|
-
return this.
|
|
1805
|
+
return this.b3u_1;
|
|
1806
1806
|
};
|
|
1807
1807
|
protoOf(CharArrayBuilder).b = function (index) {
|
|
1808
1808
|
// Inline function 'kotlin.require' call
|
|
@@ -1811,8 +1811,8 @@
|
|
|
1811
1811
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1812
1812
|
}
|
|
1813
1813
|
// Inline function 'kotlin.require' call
|
|
1814
|
-
if (!(index < this.
|
|
1815
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1814
|
+
if (!(index < this.b3u_1)) {
|
|
1815
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.b3u_1 + ')';
|
|
1816
1816
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1817
1817
|
}
|
|
1818
1818
|
return getImpl(this, index);
|
|
@@ -1829,19 +1829,19 @@
|
|
|
1829
1829
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1830
1830
|
}
|
|
1831
1831
|
// Inline function 'kotlin.require' call
|
|
1832
|
-
if (!(endIndex <= this.
|
|
1833
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1832
|
+
if (!(endIndex <= this.b3u_1)) {
|
|
1833
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.b3u_1 + ')';
|
|
1834
1834
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1835
1835
|
}
|
|
1836
1836
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1837
1837
|
};
|
|
1838
1838
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1839
|
-
var tmp0_elvis_lhs = this.
|
|
1839
|
+
var tmp0_elvis_lhs = this.y3t_1;
|
|
1840
1840
|
var tmp;
|
|
1841
1841
|
if (tmp0_elvis_lhs == null) {
|
|
1842
1842
|
// Inline function 'kotlin.also' call
|
|
1843
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1844
|
-
this.
|
|
1843
|
+
var this_0 = toString(copy(this, 0, this.b3u_1));
|
|
1844
|
+
this.y3t_1 = this_0;
|
|
1845
1845
|
tmp = this_0;
|
|
1846
1846
|
} else {
|
|
1847
1847
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1851,32 +1851,32 @@
|
|
|
1851
1851
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1852
1852
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1853
1853
|
return false;
|
|
1854
|
-
if (!(this.
|
|
1854
|
+
if (!(this.b3u_1 === charSequenceLength(other)))
|
|
1855
1855
|
return false;
|
|
1856
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1856
|
+
return rangeEqualsImpl(this, 0, other, 0, this.b3u_1);
|
|
1857
1857
|
};
|
|
1858
1858
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1859
|
-
var tmp0_safe_receiver = this.
|
|
1859
|
+
var tmp0_safe_receiver = this.y3t_1;
|
|
1860
1860
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1861
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1861
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.b3u_1) : tmp1_elvis_lhs;
|
|
1862
1862
|
};
|
|
1863
1863
|
protoOf(CharArrayBuilder).s = function (value) {
|
|
1864
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1865
|
-
this.
|
|
1866
|
-
this.
|
|
1867
|
-
this.
|
|
1864
|
+
nonFullBuffer(this)[ensureNotNull(this.x3t_1).length - this.a3u_1 | 0] = value;
|
|
1865
|
+
this.y3t_1 = null;
|
|
1866
|
+
this.a3u_1 = this.a3u_1 - 1 | 0;
|
|
1867
|
+
this.b3u_1 = this.b3u_1 + 1 | 0;
|
|
1868
1868
|
return this;
|
|
1869
1869
|
};
|
|
1870
|
-
protoOf(CharArrayBuilder).
|
|
1870
|
+
protoOf(CharArrayBuilder).sc = function (value, startIndex, endIndex) {
|
|
1871
1871
|
if (value == null)
|
|
1872
1872
|
return this;
|
|
1873
1873
|
var current = startIndex;
|
|
1874
1874
|
while (current < endIndex) {
|
|
1875
1875
|
var buffer = nonFullBuffer(this);
|
|
1876
|
-
var offset = buffer.length - this.
|
|
1876
|
+
var offset = buffer.length - this.a3u_1 | 0;
|
|
1877
1877
|
var tmp0 = endIndex - current | 0;
|
|
1878
1878
|
// Inline function 'kotlin.math.min' call
|
|
1879
|
-
var b = this.
|
|
1879
|
+
var b = this.a3u_1;
|
|
1880
1880
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1881
1881
|
var inductionVariable = 0;
|
|
1882
1882
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1887,45 +1887,45 @@
|
|
|
1887
1887
|
}
|
|
1888
1888
|
while (inductionVariable < bytesToCopy);
|
|
1889
1889
|
current = current + bytesToCopy | 0;
|
|
1890
|
-
this.
|
|
1890
|
+
this.a3u_1 = this.a3u_1 - bytesToCopy | 0;
|
|
1891
1891
|
}
|
|
1892
|
-
this.
|
|
1893
|
-
this.
|
|
1892
|
+
this.y3t_1 = null;
|
|
1893
|
+
this.b3u_1 = this.b3u_1 + (endIndex - startIndex | 0) | 0;
|
|
1894
1894
|
return this;
|
|
1895
1895
|
};
|
|
1896
1896
|
protoOf(CharArrayBuilder).f1 = function (value) {
|
|
1897
1897
|
if (value == null)
|
|
1898
1898
|
return this;
|
|
1899
|
-
return this.
|
|
1899
|
+
return this.sc(value, 0, charSequenceLength(value));
|
|
1900
1900
|
};
|
|
1901
|
-
protoOf(CharArrayBuilder).
|
|
1902
|
-
var list = this.
|
|
1901
|
+
protoOf(CharArrayBuilder).u2r = function () {
|
|
1902
|
+
var list = this.w3t_1;
|
|
1903
1903
|
if (!(list == null)) {
|
|
1904
|
-
this.
|
|
1904
|
+
this.x3t_1 = null;
|
|
1905
1905
|
var inductionVariable = 0;
|
|
1906
1906
|
var last = list.g1();
|
|
1907
1907
|
if (inductionVariable < last)
|
|
1908
1908
|
do {
|
|
1909
1909
|
var i = inductionVariable;
|
|
1910
1910
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1911
|
-
this.
|
|
1911
|
+
this.v3t_1.c37(list.h1(i));
|
|
1912
1912
|
}
|
|
1913
1913
|
while (inductionVariable < last);
|
|
1914
1914
|
} else {
|
|
1915
|
-
var tmp0_safe_receiver = this.
|
|
1915
|
+
var tmp0_safe_receiver = this.x3t_1;
|
|
1916
1916
|
if (tmp0_safe_receiver == null)
|
|
1917
1917
|
null;
|
|
1918
1918
|
else {
|
|
1919
1919
|
// Inline function 'kotlin.let' call
|
|
1920
|
-
this.
|
|
1920
|
+
this.v3t_1.c37(tmp0_safe_receiver);
|
|
1921
1921
|
}
|
|
1922
|
-
this.
|
|
1922
|
+
this.x3t_1 = null;
|
|
1923
1923
|
}
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1926
|
-
this.
|
|
1924
|
+
this.z3t_1 = true;
|
|
1925
|
+
this.w3t_1 = null;
|
|
1926
|
+
this.y3t_1 = null;
|
|
1927
|
+
this.b3u_1 = 0;
|
|
1927
1928
|
this.a3u_1 = 0;
|
|
1928
|
-
this.z3t_1 = 0;
|
|
1929
1929
|
};
|
|
1930
1930
|
function get_CharArrayPool() {
|
|
1931
1931
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -1935,13 +1935,13 @@
|
|
|
1935
1935
|
function CharArrayPool$1() {
|
|
1936
1936
|
NoPoolImpl.call(this);
|
|
1937
1937
|
}
|
|
1938
|
-
protoOf(CharArrayPool$1).
|
|
1938
|
+
protoOf(CharArrayPool$1).b37 = function () {
|
|
1939
1939
|
return charArray(2048);
|
|
1940
1940
|
};
|
|
1941
1941
|
function CharArrayPool$2() {
|
|
1942
1942
|
DefaultPool.call(this, 4096);
|
|
1943
1943
|
}
|
|
1944
|
-
protoOf(CharArrayPool$2).
|
|
1944
|
+
protoOf(CharArrayPool$2).u36 = function () {
|
|
1945
1945
|
return charArray(2048);
|
|
1946
1946
|
};
|
|
1947
1947
|
var properties_initialized_CharArrayPool_kt_aq0u0f;
|
|
@@ -2132,20 +2132,20 @@
|
|
|
2132
2132
|
}
|
|
2133
2133
|
function DefaultHttpMethods$lambda(it) {
|
|
2134
2134
|
_init_properties_Chars_kt__d3i39x();
|
|
2135
|
-
return it.
|
|
2135
|
+
return it.i3n_1.length;
|
|
2136
2136
|
}
|
|
2137
2137
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
2138
2138
|
_init_properties_Chars_kt__d3i39x();
|
|
2139
|
-
return new Char(charCodeAt(m.
|
|
2139
|
+
return new Char(charCodeAt(m.i3n_1, idx));
|
|
2140
2140
|
}
|
|
2141
2141
|
var properties_initialized_Chars_kt_phjfhp;
|
|
2142
2142
|
function _init_properties_Chars_kt__d3i39x() {
|
|
2143
2143
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
2144
2144
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
2145
2145
|
var tmp = Companion_instance;
|
|
2146
|
-
var tmp_0 = Companion_getInstance_0().
|
|
2146
|
+
var tmp_0 = Companion_getInstance_0().h3n_1;
|
|
2147
2147
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2148
|
-
DefaultHttpMethods = tmp.
|
|
2148
|
+
DefaultHttpMethods = tmp.u3y(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
2149
2149
|
// Inline function 'kotlin.collections.map' call
|
|
2150
2150
|
var this_0 = numberRangeToNumber(0, 255);
|
|
2151
2151
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2246,11 +2246,11 @@
|
|
|
2246
2246
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
2247
2247
|
}
|
|
2248
2248
|
function MutableRange(start, end) {
|
|
2249
|
-
this.
|
|
2250
|
-
this.
|
|
2249
|
+
this.p3v_1 = start;
|
|
2250
|
+
this.q3v_1 = end;
|
|
2251
2251
|
}
|
|
2252
2252
|
protoOf(MutableRange).toString = function () {
|
|
2253
|
-
return 'MutableRange(start=' + this.
|
|
2253
|
+
return 'MutableRange(start=' + this.p3v_1 + ', end=' + this.q3v_1 + ')';
|
|
2254
2254
|
};
|
|
2255
2255
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2256
2256
|
var index = start;
|