@solibo/home-api 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +742 -742
- package/kotlin-kotlin-stdlib.js +3032 -1782
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +14 -14
- package/kotlinx-coroutines-core.js +1893 -1893
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +35 -35
- package/kotlinx-io-kotlinx-io-core.js +457 -457
- package/kotlinx-serialization-kotlinx-serialization-core.js +1798 -1798
- package/kotlinx-serialization-kotlinx-serialization-json.js +1409 -1409
- package/ktor-ktor-client-content-negotiation.js +190 -190
- package/ktor-ktor-client-core.js +2991 -2991
- package/ktor-ktor-events.js +8 -8
- package/ktor-ktor-http-cio.js +497 -497
- package/ktor-ktor-http.js +675 -675
- package/ktor-ktor-io.js +1099 -1104
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +230 -230
- package/ktor-ktor-serialization.js +107 -107
- package/ktor-ktor-utils.js +553 -553
- package/ktor-ktor-websockets.js +757 -757
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.ts +395 -8
- package/solibo-sdk-sdk-home-api.js +74182 -68237
- package/solibo-sdk-sdk-home-api.js.map +1 -1
package/ktor-ktor-http-cio.js
CHANGED
|
@@ -39,25 +39,25 @@
|
|
|
39
39
|
var abs = kotlin_kotlin.$_$.yb;
|
|
40
40
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
41
41
|
var CoroutineImpl = kotlin_kotlin.$_$.g9;
|
|
42
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
42
|
+
var THROW_CCE = kotlin_kotlin.$_$.vf;
|
|
43
43
|
var SequenceScope = kotlin_kotlin.$_$.tc;
|
|
44
44
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.p8;
|
|
45
45
|
var initMetadataForLambda = kotlin_kotlin.$_$.cb;
|
|
46
46
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
47
47
|
var sequence = kotlin_kotlin.$_$.uc;
|
|
48
|
-
var DefaultPool = kotlin_io_ktor_ktor_io.$_$.
|
|
48
|
+
var DefaultPool = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
49
49
|
var fill = kotlin_kotlin.$_$.o6;
|
|
50
50
|
var isIntArray = kotlin_kotlin.$_$.lb;
|
|
51
51
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g2;
|
|
52
52
|
var endsWith = kotlin_kotlin.$_$.cd;
|
|
53
53
|
var charSequenceLength = kotlin_kotlin.$_$.ka;
|
|
54
54
|
var charSequenceGet = kotlin_kotlin.$_$.ja;
|
|
55
|
-
var Char = kotlin_kotlin.$_$.
|
|
55
|
+
var Char = kotlin_kotlin.$_$.hf;
|
|
56
56
|
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.h2;
|
|
57
57
|
var contains = kotlin_kotlin.$_$.yc;
|
|
58
58
|
var charSequenceSubSequence = kotlin_kotlin.$_$.la;
|
|
59
59
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.m2;
|
|
60
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
60
|
+
var IllegalStateException = kotlin_kotlin.$_$.qf;
|
|
61
61
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.q1;
|
|
62
62
|
var captureStack = kotlin_kotlin.$_$.fa;
|
|
63
63
|
var readLineStrictTo = kotlin_io_ktor_ktor_io.$_$.d;
|
|
@@ -70,24 +70,24 @@
|
|
|
70
70
|
var MultiPart_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
|
|
71
71
|
var ByteString_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.a;
|
|
72
72
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
73
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
73
|
+
var toString_0 = kotlin_kotlin.$_$.pe;
|
|
74
74
|
var toByte = kotlin_kotlin.$_$.vb;
|
|
75
75
|
var copyOfRange = kotlin_kotlin.$_$.y5;
|
|
76
76
|
var produce = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
77
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
77
|
+
var startsWith = kotlin_kotlin.$_$.ae;
|
|
78
78
|
var readUntil = kotlin_io_ktor_ktor_io.$_$.g;
|
|
79
|
-
var WriterScope = kotlin_io_ktor_ktor_io.$_$.
|
|
79
|
+
var WriterScope = kotlin_io_ktor_ktor_io.$_$.n1;
|
|
80
80
|
var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
81
81
|
var isInterface = kotlin_kotlin.$_$.mb;
|
|
82
|
-
var counted = kotlin_io_ktor_ktor_io.$_$.
|
|
83
|
-
var writer = kotlin_io_ktor_ktor_io.$_$.
|
|
82
|
+
var counted = kotlin_io_ktor_ktor_io.$_$.q1;
|
|
83
|
+
var writer = kotlin_io_ktor_ktor_io.$_$.u1;
|
|
84
84
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.f;
|
|
85
|
-
var get_remaining = kotlin_io_ktor_ktor_io.$_$.
|
|
85
|
+
var get_remaining = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
86
86
|
var skipIfFound = kotlin_io_ktor_ktor_io.$_$.h;
|
|
87
|
-
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.
|
|
87
|
+
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
88
88
|
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
89
89
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
90
|
-
var close = kotlin_io_ktor_ktor_io.$_$.
|
|
90
|
+
var close = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
91
91
|
var subtract = kotlin_kotlin.$_$.z9;
|
|
92
92
|
var convertToInt = kotlin_kotlin.$_$.n9;
|
|
93
93
|
var readPacket = kotlin_io_ktor_ktor_io.$_$.e;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
var copyTo = kotlin_io_ktor_ktor_io.$_$.a;
|
|
96
96
|
var add = kotlin_kotlin.$_$.l9;
|
|
97
97
|
var fromInt = kotlin_kotlin.$_$.q9;
|
|
98
|
-
var toByteArray = kotlin_io_ktor_ktor_io.$_$.
|
|
98
|
+
var toByteArray = kotlin_io_ktor_ktor_io.$_$.d1;
|
|
99
99
|
var ByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.c;
|
|
100
100
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
101
101
|
var compareTo = kotlin_kotlin.$_$.ma;
|
|
@@ -103,13 +103,13 @@
|
|
|
103
103
|
var Collection = kotlin_kotlin.$_$.a5;
|
|
104
104
|
var emptyList = kotlin_kotlin.$_$.l6;
|
|
105
105
|
var initMetadataForCompanion = kotlin_kotlin.$_$.ya;
|
|
106
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
106
|
+
var ensureNotNull = kotlin_kotlin.$_$.ng;
|
|
107
107
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.b1;
|
|
108
108
|
var isCharSequence = kotlin_kotlin.$_$.ib;
|
|
109
109
|
var getStringHashCode = kotlin_kotlin.$_$.va;
|
|
110
|
-
var CharSequence = kotlin_kotlin.$_$.
|
|
110
|
+
var CharSequence = kotlin_kotlin.$_$.gf;
|
|
111
111
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
112
|
-
var NoPoolImpl = kotlin_io_ktor_ktor_io.$_$.
|
|
112
|
+
var NoPoolImpl = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
113
113
|
var charArray = kotlin_kotlin.$_$.ha;
|
|
114
114
|
var shiftLeft = kotlin_kotlin.$_$.x9;
|
|
115
115
|
var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.y1;
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
var toByteArray_0 = kotlin_kotlin.$_$.z7;
|
|
127
127
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
128
128
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
129
|
-
var isWhitespace = kotlin_kotlin.$_$.
|
|
129
|
+
var isWhitespace = kotlin_kotlin.$_$.md;
|
|
130
130
|
//endregion
|
|
131
131
|
//region block: pre-declaration
|
|
132
132
|
initMetadataForClass(CIOMultipartDataBase, 'CIOMultipartDataBase', VOID, VOID, [MultiPartData, CoroutineScope], [0, 1]);
|
|
@@ -158,12 +158,12 @@
|
|
|
158
158
|
//endregion
|
|
159
159
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
160
160
|
formFieldLimit = formFieldLimit === VOID ? 65536n : formFieldLimit;
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
163
|
-
this.
|
|
161
|
+
this.r2v_1 = coroutineContext;
|
|
162
|
+
this.s2v_1 = null;
|
|
163
|
+
this.t2v_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
164
164
|
}
|
|
165
|
-
protoOf(CIOMultipartDataBase).
|
|
166
|
-
return this.
|
|
165
|
+
protoOf(CIOMultipartDataBase).cs = function () {
|
|
166
|
+
return this.r2v_1;
|
|
167
167
|
};
|
|
168
168
|
function get_IntArrayPool() {
|
|
169
169
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
@@ -176,103 +176,103 @@
|
|
|
176
176
|
}
|
|
177
177
|
var HeadersDataPool;
|
|
178
178
|
function thresholdReached($this) {
|
|
179
|
-
return $this.
|
|
179
|
+
return $this.v2v_1 >= $this.w2v_1 * 0.75;
|
|
180
180
|
}
|
|
181
181
|
function resize($this) {
|
|
182
|
-
var prevSize = $this.
|
|
183
|
-
var prevData = $this.
|
|
184
|
-
$this.
|
|
185
|
-
$this.
|
|
182
|
+
var prevSize = $this.v2v_1;
|
|
183
|
+
var prevData = $this.x2v_1;
|
|
184
|
+
$this.v2v_1 = 0;
|
|
185
|
+
$this.w2v_1 = imul($this.w2v_1, 2) | 128;
|
|
186
186
|
var tmp = $this;
|
|
187
187
|
// Inline function 'kotlin.apply' call
|
|
188
|
-
var this_0 = get_HeadersDataPool().
|
|
189
|
-
this_0.
|
|
190
|
-
tmp.
|
|
191
|
-
var _iterator__ex2g4s = prevData.
|
|
188
|
+
var this_0 = get_HeadersDataPool().l1r();
|
|
189
|
+
this_0.a2w(imul(prevData.z2v(), 2) | 1);
|
|
190
|
+
tmp.x2v_1 = this_0;
|
|
191
|
+
var _iterator__ex2g4s = prevData.b2w().t();
|
|
192
192
|
while (_iterator__ex2g4s.u()) {
|
|
193
193
|
var headerOffset = _iterator__ex2g4s.v();
|
|
194
|
-
$this.
|
|
194
|
+
$this.d2w(prevData.c2w(headerOffset + 1 | 0), prevData.c2w(headerOffset + 2 | 0), prevData.c2w(headerOffset + 3 | 0), prevData.c2w(headerOffset + 4 | 0));
|
|
195
195
|
}
|
|
196
|
-
get_HeadersDataPool().
|
|
196
|
+
get_HeadersDataPool().m1r(prevData);
|
|
197
197
|
// Inline function 'kotlin.require' call
|
|
198
198
|
// Inline function 'kotlin.require' call
|
|
199
|
-
if (!(prevSize === $this.
|
|
199
|
+
if (!(prevSize === $this.v2v_1)) {
|
|
200
200
|
var message = 'Failed requirement.';
|
|
201
201
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
function headerHasName($this, name, headerOffset) {
|
|
205
|
-
var nameStartIndex = $this.
|
|
206
|
-
var nameEndIndex = $this.
|
|
207
|
-
return equalsLowerCase($this.
|
|
205
|
+
var nameStartIndex = $this.x2v_1.c2w(headerOffset + 1 | 0);
|
|
206
|
+
var nameEndIndex = $this.x2v_1.c2w(headerOffset + 2 | 0);
|
|
207
|
+
return equalsLowerCase($this.u2v_1, nameStartIndex, nameEndIndex, name);
|
|
208
208
|
}
|
|
209
209
|
function HttpHeadersMap(builder) {
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
213
|
-
this.
|
|
210
|
+
this.u2v_1 = builder;
|
|
211
|
+
this.v2v_1 = 0;
|
|
212
|
+
this.w2v_1 = 0;
|
|
213
|
+
this.x2v_1 = get_HeadersDataPool().l1r();
|
|
214
214
|
}
|
|
215
|
-
protoOf(HttpHeadersMap).
|
|
216
|
-
if (this.
|
|
215
|
+
protoOf(HttpHeadersMap).f2d = function (name) {
|
|
216
|
+
if (this.v2v_1 === 0)
|
|
217
217
|
return null;
|
|
218
218
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
219
219
|
var this_0 = hashCodeLowerCase(name);
|
|
220
220
|
var hash = abs(this_0);
|
|
221
|
-
var headerIndex = hash % this.
|
|
222
|
-
while (!(this.
|
|
221
|
+
var headerIndex = hash % this.w2v_1 | 0;
|
|
222
|
+
while (!(this.x2v_1.c2w(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
223
223
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
224
|
-
return this.
|
|
224
|
+
return this.e2w(imul(headerIndex, 6));
|
|
225
225
|
}
|
|
226
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
226
|
+
headerIndex = (headerIndex + 1 | 0) % this.w2v_1 | 0;
|
|
227
227
|
}
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
|
-
protoOf(HttpHeadersMap).
|
|
231
|
-
return this.
|
|
230
|
+
protoOf(HttpHeadersMap).f2w = function () {
|
|
231
|
+
return this.x2v_1.b2w();
|
|
232
232
|
};
|
|
233
|
-
protoOf(HttpHeadersMap).
|
|
233
|
+
protoOf(HttpHeadersMap).d2w = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
234
234
|
if (thresholdReached(this)) {
|
|
235
235
|
resize(this);
|
|
236
236
|
}
|
|
237
237
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
238
|
-
var this_0 = hashCodeLowerCase(this.
|
|
238
|
+
var this_0 = hashCodeLowerCase(this.u2v_1, nameStartIndex, nameEndIndex);
|
|
239
239
|
var hash = abs(this_0);
|
|
240
|
-
var name = this.
|
|
241
|
-
var headerIndex = hash % this.
|
|
240
|
+
var name = this.u2v_1.c(nameStartIndex, nameEndIndex);
|
|
241
|
+
var headerIndex = hash % this.w2v_1 | 0;
|
|
242
242
|
var sameNameHeaderIndex = -1;
|
|
243
|
-
while (!(this.
|
|
243
|
+
while (!(this.x2v_1.c2w(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
244
244
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
245
245
|
sameNameHeaderIndex = headerIndex;
|
|
246
246
|
}
|
|
247
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
247
|
+
headerIndex = (headerIndex + 1 | 0) % this.w2v_1 | 0;
|
|
248
248
|
}
|
|
249
249
|
var headerOffset = imul(headerIndex, 6);
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
253
|
-
this.
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
250
|
+
this.x2v_1.n2w(headerOffset + 0 | 0, hash);
|
|
251
|
+
this.x2v_1.n2w(headerOffset + 1 | 0, nameStartIndex);
|
|
252
|
+
this.x2v_1.n2w(headerOffset + 2 | 0, nameEndIndex);
|
|
253
|
+
this.x2v_1.n2w(headerOffset + 3 | 0, valueStartIndex);
|
|
254
|
+
this.x2v_1.n2w(headerOffset + 4 | 0, valueEndIndex);
|
|
255
|
+
this.x2v_1.n2w(headerOffset + 5 | 0, -1);
|
|
256
256
|
if (!(sameNameHeaderIndex === -1)) {
|
|
257
|
-
this.
|
|
257
|
+
this.x2v_1.n2w(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
258
258
|
}
|
|
259
|
-
this.
|
|
259
|
+
this.v2v_1 = this.v2v_1 + 1 | 0;
|
|
260
260
|
};
|
|
261
|
-
protoOf(HttpHeadersMap).
|
|
262
|
-
var nameStartIndex = this.
|
|
263
|
-
var nameEndIndex = this.
|
|
264
|
-
return this.
|
|
261
|
+
protoOf(HttpHeadersMap).o2w = function (headerOffset) {
|
|
262
|
+
var nameStartIndex = this.x2v_1.c2w(headerOffset + 1 | 0);
|
|
263
|
+
var nameEndIndex = this.x2v_1.c2w(headerOffset + 2 | 0);
|
|
264
|
+
return this.u2v_1.c(nameStartIndex, nameEndIndex);
|
|
265
265
|
};
|
|
266
|
-
protoOf(HttpHeadersMap).
|
|
267
|
-
var valueStartIndex = this.
|
|
268
|
-
var valueEndIndex = this.
|
|
269
|
-
return this.
|
|
266
|
+
protoOf(HttpHeadersMap).e2w = function (headerOffset) {
|
|
267
|
+
var valueStartIndex = this.x2v_1.c2w(headerOffset + 3 | 0);
|
|
268
|
+
var valueEndIndex = this.x2v_1.c2w(headerOffset + 4 | 0);
|
|
269
|
+
return this.u2v_1.c(valueStartIndex, valueEndIndex);
|
|
270
270
|
};
|
|
271
|
-
protoOf(HttpHeadersMap).
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
274
|
-
get_HeadersDataPool().
|
|
275
|
-
this.
|
|
271
|
+
protoOf(HttpHeadersMap).p2w = function () {
|
|
272
|
+
this.v2v_1 = 0;
|
|
273
|
+
this.w2v_1 = 0;
|
|
274
|
+
get_HeadersDataPool().m1r(this.x2v_1);
|
|
275
|
+
this.x2v_1 = get_HeadersDataPool().l1r();
|
|
276
276
|
};
|
|
277
277
|
protoOf(HttpHeadersMap).toString = function () {
|
|
278
278
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -282,94 +282,94 @@
|
|
|
282
282
|
return this_0.toString();
|
|
283
283
|
};
|
|
284
284
|
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
285
|
-
this.
|
|
285
|
+
this.y2w_1 = this$0;
|
|
286
286
|
CoroutineImpl.call(this, resultContinuation);
|
|
287
287
|
}
|
|
288
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
289
|
-
var tmp = this.
|
|
290
|
-
tmp.
|
|
291
|
-
tmp.
|
|
292
|
-
return tmp.
|
|
288
|
+
protoOf(HeadersData$headersStarts$slambda).e2x = function ($this$sequence, $completion) {
|
|
289
|
+
var tmp = this.f2x($this$sequence, $completion);
|
|
290
|
+
tmp.l8_1 = Unit_instance;
|
|
291
|
+
tmp.m8_1 = null;
|
|
292
|
+
return tmp.r8();
|
|
293
293
|
};
|
|
294
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
295
|
-
return this.
|
|
294
|
+
protoOf(HeadersData$headersStarts$slambda).d9 = function (p1, $completion) {
|
|
295
|
+
return this.e2x(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
296
296
|
};
|
|
297
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
298
|
-
var suspendResult = this.
|
|
297
|
+
protoOf(HeadersData$headersStarts$slambda).r8 = function () {
|
|
298
|
+
var suspendResult = this.l8_1;
|
|
299
299
|
$sm: do
|
|
300
300
|
try {
|
|
301
|
-
var tmp = this.
|
|
301
|
+
var tmp = this.j8_1;
|
|
302
302
|
switch (tmp) {
|
|
303
303
|
case 0:
|
|
304
|
-
this.
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
307
|
-
this.
|
|
304
|
+
this.k8_1 = 7;
|
|
305
|
+
this.a2x_1 = 0;
|
|
306
|
+
this.d2x_1 = this.y2w_1.y2v_1.t();
|
|
307
|
+
this.j8_1 = 1;
|
|
308
308
|
continue $sm;
|
|
309
309
|
case 1:
|
|
310
|
-
if (!this.
|
|
311
|
-
this.
|
|
310
|
+
if (!this.d2x_1.u()) {
|
|
311
|
+
this.j8_1 = 6;
|
|
312
312
|
continue $sm;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
this.
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
315
|
+
this.c2x_1 = this.d2x_1.v();
|
|
316
|
+
this.b2x_1 = 0;
|
|
317
|
+
this.j8_1 = 2;
|
|
318
318
|
continue $sm;
|
|
319
319
|
case 2:
|
|
320
|
-
if (!(this.
|
|
321
|
-
this.
|
|
320
|
+
if (!(this.b2x_1 < this.c2x_1.length)) {
|
|
321
|
+
this.j8_1 = 5;
|
|
322
322
|
continue $sm;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
if (!(this.
|
|
326
|
-
this.
|
|
327
|
-
suspendResult = this.
|
|
325
|
+
if (!(this.y2w_1.c2w(this.a2x_1 + 0 | 0) === -1)) {
|
|
326
|
+
this.j8_1 = 3;
|
|
327
|
+
suspendResult = this.z2w_1.xe(this.a2x_1, this);
|
|
328
328
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
329
329
|
return suspendResult;
|
|
330
330
|
}
|
|
331
331
|
continue $sm;
|
|
332
332
|
} else {
|
|
333
|
-
this.
|
|
333
|
+
this.j8_1 = 4;
|
|
334
334
|
continue $sm;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
case 3:
|
|
338
|
-
this.
|
|
338
|
+
this.j8_1 = 4;
|
|
339
339
|
continue $sm;
|
|
340
340
|
case 4:
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
341
|
+
this.b2x_1 = this.b2x_1 + 6 | 0;
|
|
342
|
+
this.a2x_1 = this.a2x_1 + 6 | 0;
|
|
343
|
+
this.j8_1 = 2;
|
|
344
344
|
continue $sm;
|
|
345
345
|
case 5:
|
|
346
|
-
this.
|
|
346
|
+
this.j8_1 = 1;
|
|
347
347
|
continue $sm;
|
|
348
348
|
case 6:
|
|
349
349
|
return Unit_instance;
|
|
350
350
|
case 7:
|
|
351
|
-
throw this.
|
|
351
|
+
throw this.m8_1;
|
|
352
352
|
}
|
|
353
353
|
} catch ($p) {
|
|
354
354
|
var e = $p;
|
|
355
|
-
if (this.
|
|
355
|
+
if (this.k8_1 === 7) {
|
|
356
356
|
throw e;
|
|
357
357
|
} else {
|
|
358
|
-
this.
|
|
359
|
-
this.
|
|
358
|
+
this.j8_1 = this.k8_1;
|
|
359
|
+
this.m8_1 = e;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
while (true);
|
|
363
363
|
};
|
|
364
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
365
|
-
var i = new HeadersData$headersStarts$slambda(this.
|
|
366
|
-
i.
|
|
364
|
+
protoOf(HeadersData$headersStarts$slambda).f2x = function ($this$sequence, completion) {
|
|
365
|
+
var i = new HeadersData$headersStarts$slambda(this.y2w_1, completion);
|
|
366
|
+
i.z2w_1 = $this$sequence;
|
|
367
367
|
return i;
|
|
368
368
|
};
|
|
369
369
|
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
370
370
|
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
371
371
|
var l = function ($this$sequence, $completion) {
|
|
372
|
-
return i.
|
|
372
|
+
return i.e2x($this$sequence, $completion);
|
|
373
373
|
};
|
|
374
374
|
l.$arity = 1;
|
|
375
375
|
return l;
|
|
@@ -377,55 +377,55 @@
|
|
|
377
377
|
function HeadersData() {
|
|
378
378
|
var tmp = this;
|
|
379
379
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
380
|
-
tmp.
|
|
380
|
+
tmp.y2v_1 = ArrayList_init_$Create$();
|
|
381
381
|
}
|
|
382
|
-
protoOf(HeadersData).
|
|
383
|
-
return this.
|
|
382
|
+
protoOf(HeadersData).z2v = function () {
|
|
383
|
+
return this.y2v_1.g1();
|
|
384
384
|
};
|
|
385
|
-
protoOf(HeadersData).
|
|
385
|
+
protoOf(HeadersData).a2w = function (subArraysCount) {
|
|
386
386
|
// Inline function 'kotlin.repeat' call
|
|
387
387
|
var inductionVariable = 0;
|
|
388
388
|
if (inductionVariable < subArraysCount)
|
|
389
389
|
do {
|
|
390
390
|
var index = inductionVariable;
|
|
391
391
|
inductionVariable = inductionVariable + 1 | 0;
|
|
392
|
-
this.
|
|
392
|
+
this.y2v_1.e1(get_IntArrayPool().l1r());
|
|
393
393
|
}
|
|
394
394
|
while (inductionVariable < subArraysCount);
|
|
395
395
|
};
|
|
396
|
-
protoOf(HeadersData).
|
|
397
|
-
return this.
|
|
396
|
+
protoOf(HeadersData).c2w = function (index) {
|
|
397
|
+
return this.y2v_1.h1(index / 768 | 0)[index % 768 | 0];
|
|
398
398
|
};
|
|
399
|
-
protoOf(HeadersData).
|
|
400
|
-
this.
|
|
399
|
+
protoOf(HeadersData).n2w = function (index, value) {
|
|
400
|
+
this.y2v_1.h1(index / 768 | 0)[index % 768 | 0] = value;
|
|
401
401
|
};
|
|
402
|
-
protoOf(HeadersData).
|
|
402
|
+
protoOf(HeadersData).b2w = function () {
|
|
403
403
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
404
404
|
};
|
|
405
|
-
protoOf(HeadersData).
|
|
406
|
-
var _iterator__ex2g4s = this.
|
|
405
|
+
protoOf(HeadersData).p2w = function () {
|
|
406
|
+
var _iterator__ex2g4s = this.y2v_1.t();
|
|
407
407
|
while (_iterator__ex2g4s.u()) {
|
|
408
408
|
var array = _iterator__ex2g4s.v();
|
|
409
|
-
get_IntArrayPool().
|
|
409
|
+
get_IntArrayPool().m1r(array);
|
|
410
410
|
}
|
|
411
|
-
this.
|
|
411
|
+
this.y2v_1.n2();
|
|
412
412
|
};
|
|
413
413
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
414
414
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
415
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
415
|
+
var _iterator__ex2g4s = _this__u8e3s4.f2w().t();
|
|
416
416
|
while (_iterator__ex2g4s.u()) {
|
|
417
417
|
var offset = _iterator__ex2g4s.v();
|
|
418
418
|
out.f1(indent);
|
|
419
|
-
out.f1(_this__u8e3s4.
|
|
419
|
+
out.f1(_this__u8e3s4.o2w(offset));
|
|
420
420
|
out.f1(' => ');
|
|
421
|
-
out.f1(_this__u8e3s4.
|
|
421
|
+
out.f1(_this__u8e3s4.e2w(offset));
|
|
422
422
|
out.f1('\n');
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
function IntArrayPool$1() {
|
|
426
426
|
DefaultPool.call(this, 1000);
|
|
427
427
|
}
|
|
428
|
-
protoOf(IntArrayPool$1).
|
|
428
|
+
protoOf(IntArrayPool$1).e1r = function () {
|
|
429
429
|
var tmp = 0;
|
|
430
430
|
var tmp_0 = new Int32Array(768);
|
|
431
431
|
while (tmp < 768) {
|
|
@@ -434,25 +434,25 @@
|
|
|
434
434
|
}
|
|
435
435
|
return tmp_0;
|
|
436
436
|
};
|
|
437
|
-
protoOf(IntArrayPool$1).
|
|
437
|
+
protoOf(IntArrayPool$1).j2x = function (instance) {
|
|
438
438
|
fill(instance, -1);
|
|
439
|
-
return protoOf(DefaultPool).
|
|
439
|
+
return protoOf(DefaultPool).j1r.call(this, instance);
|
|
440
440
|
};
|
|
441
|
-
protoOf(IntArrayPool$1).
|
|
442
|
-
return this.
|
|
441
|
+
protoOf(IntArrayPool$1).j1r = function (instance) {
|
|
442
|
+
return this.j2x(isIntArray(instance) ? instance : THROW_CCE());
|
|
443
443
|
};
|
|
444
444
|
function HeadersDataPool$1() {
|
|
445
445
|
DefaultPool.call(this, 1000);
|
|
446
446
|
}
|
|
447
|
-
protoOf(HeadersDataPool$1).
|
|
447
|
+
protoOf(HeadersDataPool$1).e1r = function () {
|
|
448
448
|
return new HeadersData();
|
|
449
449
|
};
|
|
450
|
-
protoOf(HeadersDataPool$1).
|
|
451
|
-
instance.
|
|
452
|
-
return protoOf(DefaultPool).
|
|
450
|
+
protoOf(HeadersDataPool$1).n2x = function (instance) {
|
|
451
|
+
instance.p2w();
|
|
452
|
+
return protoOf(DefaultPool).j1r.call(this, instance);
|
|
453
453
|
};
|
|
454
|
-
protoOf(HeadersDataPool$1).
|
|
455
|
-
return this.
|
|
454
|
+
protoOf(HeadersDataPool$1).j1r = function (instance) {
|
|
455
|
+
return this.n2x(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
456
456
|
};
|
|
457
457
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
458
458
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -472,22 +472,22 @@
|
|
|
472
472
|
function parseHeaders(input, builder, range, $completion) {
|
|
473
473
|
range = range === VOID ? new MutableRange(0, 0) : range;
|
|
474
474
|
var tmp = new $parseHeadersCOROUTINE$(input, builder, range, $completion);
|
|
475
|
-
tmp.
|
|
476
|
-
tmp.
|
|
477
|
-
return tmp.
|
|
475
|
+
tmp.l8_1 = Unit_instance;
|
|
476
|
+
tmp.m8_1 = null;
|
|
477
|
+
return tmp.r8();
|
|
478
478
|
}
|
|
479
479
|
function parseHeaderName(text, range) {
|
|
480
480
|
_init_properties_HttpParser_kt__gbdom1();
|
|
481
|
-
var index = range.
|
|
482
|
-
var end = range.
|
|
481
|
+
var index = range.b2y_1;
|
|
482
|
+
var end = range.c2y_1;
|
|
483
483
|
while (index < end) {
|
|
484
484
|
var ch = text.b(index);
|
|
485
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
486
|
-
range.
|
|
485
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.b2y_1)) {
|
|
486
|
+
range.b2y_1 = index + 1 | 0;
|
|
487
487
|
return index;
|
|
488
488
|
}
|
|
489
489
|
if (isDelimiter(ch)) {
|
|
490
|
-
parseHeaderNameFailed(text, index, range.
|
|
490
|
+
parseHeaderNameFailed(text, index, range.b2y_1, ch);
|
|
491
491
|
}
|
|
492
492
|
index = index + 1 | 0;
|
|
493
493
|
}
|
|
@@ -495,12 +495,12 @@
|
|
|
495
495
|
}
|
|
496
496
|
function parseHeaderValue(text, range) {
|
|
497
497
|
_init_properties_HttpParser_kt__gbdom1();
|
|
498
|
-
var start = range.
|
|
499
|
-
var end = range.
|
|
498
|
+
var start = range.b2y_1;
|
|
499
|
+
var end = range.c2y_1;
|
|
500
500
|
var index = start;
|
|
501
501
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
502
502
|
if (index >= end) {
|
|
503
|
-
range.
|
|
503
|
+
range.b2y_1 = end;
|
|
504
504
|
return Unit_instance;
|
|
505
505
|
}
|
|
506
506
|
var valueStart = index;
|
|
@@ -514,8 +514,8 @@
|
|
|
514
514
|
valueLastIndex = index;
|
|
515
515
|
index = index + 1 | 0;
|
|
516
516
|
}
|
|
517
|
-
range.
|
|
518
|
-
range.
|
|
517
|
+
range.b2y_1 = valueStart;
|
|
518
|
+
range.c2y_1 = valueLastIndex + 1 | 0;
|
|
519
519
|
}
|
|
520
520
|
function validateHostHeader(host) {
|
|
521
521
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -556,9 +556,9 @@
|
|
|
556
556
|
}
|
|
557
557
|
function noColonFound(text, range) {
|
|
558
558
|
_init_properties_HttpParser_kt__gbdom1();
|
|
559
|
-
var tmp2 = range.
|
|
559
|
+
var tmp2 = range.b2y_1;
|
|
560
560
|
// Inline function 'kotlin.text.substring' call
|
|
561
|
-
var endIndex = range.
|
|
561
|
+
var endIndex = range.c2y_1;
|
|
562
562
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
563
563
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
564
564
|
}
|
|
@@ -574,30 +574,30 @@
|
|
|
574
574
|
}
|
|
575
575
|
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
576
576
|
CoroutineImpl.call(this, resultContinuation);
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
577
|
+
this.w2x_1 = input;
|
|
578
|
+
this.x2x_1 = builder;
|
|
579
|
+
this.y2x_1 = range;
|
|
580
580
|
}
|
|
581
|
-
protoOf($parseHeadersCOROUTINE$).
|
|
582
|
-
var suspendResult = this.
|
|
581
|
+
protoOf($parseHeadersCOROUTINE$).r8 = function () {
|
|
582
|
+
var suspendResult = this.l8_1;
|
|
583
583
|
$sm: do
|
|
584
584
|
try {
|
|
585
|
-
var tmp = this.
|
|
585
|
+
var tmp = this.j8_1;
|
|
586
586
|
switch (tmp) {
|
|
587
587
|
case 0:
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
588
|
+
this.k8_1 = 7;
|
|
589
|
+
this.z2x_1 = new HttpHeadersMap(this.x2x_1);
|
|
590
|
+
this.k8_1 = 6;
|
|
591
|
+
this.j8_1 = 1;
|
|
592
592
|
continue $sm;
|
|
593
593
|
case 1:
|
|
594
594
|
if (!true) {
|
|
595
|
-
this.
|
|
595
|
+
this.j8_1 = 5;
|
|
596
596
|
continue $sm;
|
|
597
597
|
}
|
|
598
598
|
|
|
599
|
-
this.
|
|
600
|
-
suspendResult = readLineStrictTo(this.
|
|
599
|
+
this.j8_1 = 2;
|
|
600
|
+
suspendResult = readLineStrictTo(this.w2x_1, this.x2x_1, 8192n, VOID, this);
|
|
601
601
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
602
602
|
return suspendResult;
|
|
603
603
|
}
|
|
@@ -605,68 +605,68 @@
|
|
|
605
605
|
continue $sm;
|
|
606
606
|
case 2:
|
|
607
607
|
if (suspendResult === -1n) {
|
|
608
|
-
this.
|
|
608
|
+
this.z2x_1.p2w();
|
|
609
609
|
return null;
|
|
610
610
|
} else {
|
|
611
|
-
this.
|
|
611
|
+
this.j8_1 = 3;
|
|
612
612
|
continue $sm;
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
case 3:
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
if (this.
|
|
619
|
-
this.
|
|
616
|
+
this.y2x_1.c2y_1 = this.x2x_1.m2w_1;
|
|
617
|
+
this.a2y_1 = this.y2x_1.c2y_1 - this.y2x_1.b2y_1 | 0;
|
|
618
|
+
if (this.a2y_1 === 0) {
|
|
619
|
+
this.j8_1 = 5;
|
|
620
620
|
continue $sm;
|
|
621
621
|
} else {
|
|
622
|
-
this.
|
|
622
|
+
this.j8_1 = 4;
|
|
623
623
|
continue $sm;
|
|
624
624
|
}
|
|
625
625
|
|
|
626
626
|
case 4:
|
|
627
|
-
if (this.
|
|
627
|
+
if (this.a2y_1 >= 8192) {
|
|
628
628
|
var message = 'Header line length limit exceeded';
|
|
629
629
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
var nameStart = this.
|
|
633
|
-
var nameEnd = parseHeaderName(this.
|
|
634
|
-
var headerEnd = this.
|
|
635
|
-
parseHeaderValue(this.
|
|
636
|
-
var valueStart = this.
|
|
637
|
-
var valueEnd = this.
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
632
|
+
var nameStart = this.y2x_1.b2y_1;
|
|
633
|
+
var nameEnd = parseHeaderName(this.x2x_1, this.y2x_1);
|
|
634
|
+
var headerEnd = this.y2x_1.c2y_1;
|
|
635
|
+
parseHeaderValue(this.x2x_1, this.y2x_1);
|
|
636
|
+
var valueStart = this.y2x_1.b2y_1;
|
|
637
|
+
var valueEnd = this.y2x_1.c2y_1;
|
|
638
|
+
this.y2x_1.b2y_1 = headerEnd;
|
|
639
|
+
this.z2x_1.d2w(nameStart, nameEnd, valueStart, valueEnd);
|
|
640
|
+
this.j8_1 = 1;
|
|
641
641
|
continue $sm;
|
|
642
642
|
case 5:
|
|
643
|
-
var host = this.
|
|
643
|
+
var host = this.z2x_1.f2d('Host');
|
|
644
644
|
if (!(host == null)) {
|
|
645
645
|
validateHostHeader(host);
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
return this.
|
|
648
|
+
return this.z2x_1;
|
|
649
649
|
case 6:
|
|
650
|
-
this.
|
|
651
|
-
var tmp_0 = this.
|
|
650
|
+
this.k8_1 = 7;
|
|
651
|
+
var tmp_0 = this.m8_1;
|
|
652
652
|
if (tmp_0 instanceof Error) {
|
|
653
|
-
var t = this.
|
|
654
|
-
this.
|
|
653
|
+
var t = this.m8_1;
|
|
654
|
+
this.z2x_1.p2w();
|
|
655
655
|
throw t;
|
|
656
656
|
} else {
|
|
657
|
-
throw this.
|
|
657
|
+
throw this.m8_1;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
case 7:
|
|
661
|
-
throw this.
|
|
661
|
+
throw this.m8_1;
|
|
662
662
|
}
|
|
663
663
|
} catch ($p) {
|
|
664
664
|
var e = $p;
|
|
665
|
-
if (this.
|
|
665
|
+
if (this.k8_1 === 7) {
|
|
666
666
|
throw e;
|
|
667
667
|
} else {
|
|
668
|
-
this.
|
|
669
|
-
this.
|
|
668
|
+
this.j8_1 = this.k8_1;
|
|
669
|
+
this.m8_1 = e;
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
while (true);
|
|
@@ -676,8 +676,8 @@
|
|
|
676
676
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
677
677
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
678
678
|
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))]);
|
|
679
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().
|
|
680
|
-
versions = Companion_instance.
|
|
679
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().q1q_1, Companion_getInstance().p1q_1);
|
|
680
|
+
versions = Companion_instance.d2y(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
function get_CrLf() {
|
|
@@ -692,23 +692,23 @@
|
|
|
692
692
|
var PrefixString;
|
|
693
693
|
function Preamble(body) {
|
|
694
694
|
MultipartEvent.call(this);
|
|
695
|
-
this.
|
|
695
|
+
this.e2y_1 = body;
|
|
696
696
|
}
|
|
697
697
|
function MultipartPart(headers, body) {
|
|
698
698
|
MultipartEvent.call(this);
|
|
699
|
-
this.
|
|
700
|
-
this.
|
|
699
|
+
this.f2y_1 = headers;
|
|
700
|
+
this.g2y_1 = body;
|
|
701
701
|
}
|
|
702
702
|
function Epilogue(body) {
|
|
703
703
|
MultipartEvent.call(this);
|
|
704
|
-
this.
|
|
704
|
+
this.h2y_1 = body;
|
|
705
705
|
}
|
|
706
706
|
function MultipartEvent() {
|
|
707
707
|
}
|
|
708
708
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
709
709
|
maxPartSize = maxPartSize === VOID ? 9223372036854775807n : maxPartSize;
|
|
710
710
|
_init_properties_Multipart_kt__ato98a();
|
|
711
|
-
if (!MultiPart_getInstance().
|
|
711
|
+
if (!MultiPart_getInstance().d2k(contentType)) {
|
|
712
712
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
713
713
|
}
|
|
714
714
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -856,21 +856,21 @@
|
|
|
856
856
|
}
|
|
857
857
|
function parsePartHeadersImpl(input, $completion) {
|
|
858
858
|
var tmp = new $parsePartHeadersImplCOROUTINE$(input, $completion);
|
|
859
|
-
tmp.
|
|
860
|
-
tmp.
|
|
861
|
-
return tmp.
|
|
859
|
+
tmp.l8_1 = Unit_instance;
|
|
860
|
+
tmp.m8_1 = null;
|
|
861
|
+
return tmp.r8();
|
|
862
862
|
}
|
|
863
863
|
function parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $completion) {
|
|
864
864
|
var tmp = new $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, $completion);
|
|
865
|
-
tmp.
|
|
866
|
-
tmp.
|
|
867
|
-
return tmp.
|
|
865
|
+
tmp.l8_1 = Unit_instance;
|
|
866
|
+
tmp.m8_1 = null;
|
|
867
|
+
return tmp.r8();
|
|
868
868
|
}
|
|
869
869
|
function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
|
|
870
870
|
var tmp = new $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, $completion);
|
|
871
|
-
tmp.
|
|
872
|
-
tmp.
|
|
873
|
-
return tmp.
|
|
871
|
+
tmp.l8_1 = Unit_instance;
|
|
872
|
+
tmp.m8_1 = null;
|
|
873
|
+
return tmp.r8();
|
|
874
874
|
}
|
|
875
875
|
function throwLimitExceeded(actual, limit) {
|
|
876
876
|
_init_properties_Multipart_kt__ato98a();
|
|
@@ -885,37 +885,37 @@
|
|
|
885
885
|
boundaryBytes[_unary__edvuaz] = value;
|
|
886
886
|
}
|
|
887
887
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
888
|
-
this.
|
|
889
|
-
this.
|
|
888
|
+
this.b30_1 = $firstBoundary;
|
|
889
|
+
this.c30_1 = $countedInput;
|
|
890
890
|
CoroutineImpl.call(this, resultContinuation);
|
|
891
891
|
}
|
|
892
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
893
|
-
var tmp = this.
|
|
894
|
-
tmp.
|
|
895
|
-
tmp.
|
|
896
|
-
return tmp.
|
|
892
|
+
protoOf(parseMultipart$slambda$slambda).e30 = function ($this$writer, $completion) {
|
|
893
|
+
var tmp = this.f30($this$writer, $completion);
|
|
894
|
+
tmp.l8_1 = Unit_instance;
|
|
895
|
+
tmp.m8_1 = null;
|
|
896
|
+
return tmp.r8();
|
|
897
897
|
};
|
|
898
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
899
|
-
return this.
|
|
898
|
+
protoOf(parseMultipart$slambda$slambda).d9 = function (p1, $completion) {
|
|
899
|
+
return this.e30(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
900
900
|
};
|
|
901
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
902
|
-
var suspendResult = this.
|
|
901
|
+
protoOf(parseMultipart$slambda$slambda).r8 = function () {
|
|
902
|
+
var suspendResult = this.l8_1;
|
|
903
903
|
$sm: do
|
|
904
904
|
try {
|
|
905
|
-
var tmp = this.
|
|
905
|
+
var tmp = this.j8_1;
|
|
906
906
|
switch (tmp) {
|
|
907
907
|
case 0:
|
|
908
|
-
this.
|
|
909
|
-
this.
|
|
910
|
-
suspendResult = parsePreambleImpl(this.
|
|
908
|
+
this.k8_1 = 3;
|
|
909
|
+
this.j8_1 = 1;
|
|
910
|
+
suspendResult = parsePreambleImpl(this.b30_1, this.c30_1, this.d30_1.q1o_1, 8193n, this);
|
|
911
911
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
912
912
|
return suspendResult;
|
|
913
913
|
}
|
|
914
914
|
|
|
915
915
|
continue $sm;
|
|
916
916
|
case 1:
|
|
917
|
-
this.
|
|
918
|
-
suspendResult = this.
|
|
917
|
+
this.j8_1 = 2;
|
|
918
|
+
suspendResult = this.d30_1.q1o_1.c1h(this);
|
|
919
919
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
920
920
|
return suspendResult;
|
|
921
921
|
}
|
|
@@ -924,61 +924,61 @@
|
|
|
924
924
|
case 2:
|
|
925
925
|
return Unit_instance;
|
|
926
926
|
case 3:
|
|
927
|
-
throw this.
|
|
927
|
+
throw this.m8_1;
|
|
928
928
|
}
|
|
929
929
|
} catch ($p) {
|
|
930
930
|
var e = $p;
|
|
931
|
-
if (this.
|
|
931
|
+
if (this.k8_1 === 3) {
|
|
932
932
|
throw e;
|
|
933
933
|
} else {
|
|
934
|
-
this.
|
|
935
|
-
this.
|
|
934
|
+
this.j8_1 = this.k8_1;
|
|
935
|
+
this.m8_1 = e;
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
938
|
while (true);
|
|
939
939
|
};
|
|
940
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
941
|
-
var i = new parseMultipart$slambda$slambda(this.
|
|
942
|
-
i.
|
|
940
|
+
protoOf(parseMultipart$slambda$slambda).f30 = function ($this$writer, completion) {
|
|
941
|
+
var i = new parseMultipart$slambda$slambda(this.b30_1, this.c30_1, completion);
|
|
942
|
+
i.d30_1 = $this$writer;
|
|
943
943
|
return i;
|
|
944
944
|
};
|
|
945
945
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
946
946
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
947
947
|
var l = function ($this$writer, $completion) {
|
|
948
|
-
return i.
|
|
948
|
+
return i.e30($this$writer, $completion);
|
|
949
949
|
};
|
|
950
950
|
l.$arity = 1;
|
|
951
951
|
return l;
|
|
952
952
|
}
|
|
953
953
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
954
|
-
this.
|
|
955
|
-
this.
|
|
956
|
-
this.
|
|
957
|
-
this.
|
|
954
|
+
this.o30_1 = $input;
|
|
955
|
+
this.p30_1 = $boundaryPrefixed;
|
|
956
|
+
this.q30_1 = $maxPartSize;
|
|
957
|
+
this.r30_1 = $totalLength;
|
|
958
958
|
CoroutineImpl.call(this, resultContinuation);
|
|
959
959
|
}
|
|
960
|
-
protoOf(parseMultipart$slambda).
|
|
961
|
-
var tmp = this.
|
|
962
|
-
tmp.
|
|
963
|
-
tmp.
|
|
964
|
-
return tmp.
|
|
960
|
+
protoOf(parseMultipart$slambda).a31 = function ($this$produce, $completion) {
|
|
961
|
+
var tmp = this.b31($this$produce, $completion);
|
|
962
|
+
tmp.l8_1 = Unit_instance;
|
|
963
|
+
tmp.m8_1 = null;
|
|
964
|
+
return tmp.r8();
|
|
965
965
|
};
|
|
966
|
-
protoOf(parseMultipart$slambda).
|
|
967
|
-
return this.
|
|
966
|
+
protoOf(parseMultipart$slambda).d9 = function (p1, $completion) {
|
|
967
|
+
return this.a31((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
968
968
|
};
|
|
969
|
-
protoOf(parseMultipart$slambda).
|
|
970
|
-
var suspendResult = this.
|
|
969
|
+
protoOf(parseMultipart$slambda).r8 = function () {
|
|
970
|
+
var suspendResult = this.l8_1;
|
|
971
971
|
$sm: do
|
|
972
972
|
try {
|
|
973
|
-
var tmp = this.
|
|
973
|
+
var tmp = this.j8_1;
|
|
974
974
|
switch (tmp) {
|
|
975
975
|
case 0:
|
|
976
|
-
this.
|
|
977
|
-
this.
|
|
978
|
-
this.
|
|
979
|
-
this.
|
|
980
|
-
this.
|
|
981
|
-
suspendResult = readRemaining(writer(this.
|
|
976
|
+
this.k8_1 = 25;
|
|
977
|
+
this.t30_1 = counted(this.o30_1);
|
|
978
|
+
this.u30_1 = this.t30_1.n1q();
|
|
979
|
+
this.y30_1 = this.p30_1.jo(get_PrefixString().g1());
|
|
980
|
+
this.j8_1 = 1;
|
|
981
|
+
suspendResult = readRemaining(writer(this.s30_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.y30_1, this.t30_1, null)).o1o_1, this);
|
|
982
982
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
983
983
|
return suspendResult;
|
|
984
984
|
}
|
|
@@ -987,57 +987,57 @@
|
|
|
987
987
|
case 1:
|
|
988
988
|
var preambleData = suspendResult;
|
|
989
989
|
if (get_remaining(preambleData) > 0n) {
|
|
990
|
-
this.
|
|
991
|
-
suspendResult = this.
|
|
990
|
+
this.j8_1 = 2;
|
|
991
|
+
suspendResult = this.s30_1.a19(new Preamble(preambleData), this);
|
|
992
992
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
993
993
|
return suspendResult;
|
|
994
994
|
}
|
|
995
995
|
continue $sm;
|
|
996
996
|
} else {
|
|
997
|
-
this.
|
|
997
|
+
this.j8_1 = 3;
|
|
998
998
|
continue $sm;
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
case 2:
|
|
1002
|
-
this.
|
|
1002
|
+
this.j8_1 = 3;
|
|
1003
1003
|
continue $sm;
|
|
1004
1004
|
case 3:
|
|
1005
|
-
this.
|
|
1005
|
+
this.j8_1 = 4;
|
|
1006
1006
|
continue $sm;
|
|
1007
1007
|
case 4:
|
|
1008
|
-
if (!this.
|
|
1009
|
-
this.
|
|
1010
|
-
suspendResult = skipIfFound(this.
|
|
1008
|
+
if (!this.t30_1.z1g()) {
|
|
1009
|
+
this.j8_1 = 5;
|
|
1010
|
+
suspendResult = skipIfFound(this.t30_1, get_PrefixString(), this);
|
|
1011
1011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1012
1012
|
return suspendResult;
|
|
1013
1013
|
}
|
|
1014
1014
|
continue $sm;
|
|
1015
1015
|
} else {
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1016
|
+
this.z30_1 = false;
|
|
1017
|
+
this.j8_1 = 6;
|
|
1018
1018
|
continue $sm;
|
|
1019
1019
|
}
|
|
1020
1020
|
|
|
1021
1021
|
case 5:
|
|
1022
|
-
this.
|
|
1023
|
-
this.
|
|
1022
|
+
this.z30_1 = !suspendResult;
|
|
1023
|
+
this.j8_1 = 6;
|
|
1024
1024
|
continue $sm;
|
|
1025
1025
|
case 6:
|
|
1026
|
-
if (!this.
|
|
1027
|
-
this.
|
|
1026
|
+
if (!this.z30_1) {
|
|
1027
|
+
this.j8_1 = 15;
|
|
1028
1028
|
continue $sm;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
-
this.
|
|
1032
|
-
suspendResult = skipIfFound(this.
|
|
1031
|
+
this.j8_1 = 7;
|
|
1032
|
+
suspendResult = skipIfFound(this.t30_1, get_CrLf(), this);
|
|
1033
1033
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1034
1034
|
return suspendResult;
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
1037
|
continue $sm;
|
|
1038
1038
|
case 7:
|
|
1039
|
-
this.
|
|
1040
|
-
suspendResult = skipIfFound(this.
|
|
1039
|
+
this.j8_1 = 8;
|
|
1040
|
+
suspendResult = skipIfFound(this.t30_1, this.y30_1, this);
|
|
1041
1041
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1042
1042
|
return suspendResult;
|
|
1043
1043
|
}
|
|
@@ -1045,112 +1045,112 @@
|
|
|
1045
1045
|
continue $sm;
|
|
1046
1046
|
case 8:
|
|
1047
1047
|
if (suspendResult) {
|
|
1048
|
-
this.
|
|
1048
|
+
this.j8_1 = 4;
|
|
1049
1049
|
continue $sm;
|
|
1050
1050
|
} else {
|
|
1051
|
-
this.
|
|
1051
|
+
this.j8_1 = 9;
|
|
1052
1052
|
continue $sm;
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
1055
|
case 9:
|
|
1056
|
-
this.
|
|
1057
|
-
this.
|
|
1058
|
-
var part = new MultipartPart(this.
|
|
1059
|
-
this.
|
|
1060
|
-
suspendResult = this.
|
|
1056
|
+
this.v30_1 = new ByteChannel();
|
|
1057
|
+
this.x30_1 = CompletableDeferred();
|
|
1058
|
+
var part = new MultipartPart(this.x30_1, this.v30_1);
|
|
1059
|
+
this.j8_1 = 10;
|
|
1060
|
+
suspendResult = this.s30_1.a19(part, this);
|
|
1061
1061
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1062
1062
|
return suspendResult;
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
continue $sm;
|
|
1066
1066
|
case 10:
|
|
1067
|
-
this.
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1070
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1067
|
+
this.w30_1 = null;
|
|
1068
|
+
this.k8_1 = 14;
|
|
1069
|
+
this.j8_1 = 11;
|
|
1070
|
+
suspendResult = parsePartHeadersImpl(this.t30_1, this);
|
|
1071
1071
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1072
1072
|
return suspendResult;
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
1075
|
continue $sm;
|
|
1076
1076
|
case 11:
|
|
1077
|
-
this.
|
|
1078
|
-
if (!this.
|
|
1079
|
-
this.
|
|
1077
|
+
this.w30_1 = suspendResult;
|
|
1078
|
+
if (!this.x30_1.sy(this.w30_1)) {
|
|
1079
|
+
this.w30_1.p2w();
|
|
1080
1080
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
|
-
this.
|
|
1084
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1083
|
+
this.j8_1 = 12;
|
|
1084
|
+
suspendResult = parsePartBodyImpl(this.p30_1, this.t30_1, this.v30_1, this.w30_1, this.q30_1, this);
|
|
1085
1085
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1086
1086
|
return suspendResult;
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
1089
1089
|
continue $sm;
|
|
1090
1090
|
case 12:
|
|
1091
|
-
this.
|
|
1092
|
-
this.
|
|
1093
|
-
this.
|
|
1091
|
+
this.v30_1.j4();
|
|
1092
|
+
this.k8_1 = 25;
|
|
1093
|
+
this.j8_1 = 13;
|
|
1094
1094
|
continue $sm;
|
|
1095
1095
|
case 13:
|
|
1096
|
-
this.
|
|
1097
|
-
this.
|
|
1096
|
+
this.k8_1 = 25;
|
|
1097
|
+
this.j8_1 = 4;
|
|
1098
1098
|
continue $sm;
|
|
1099
1099
|
case 14:
|
|
1100
|
-
this.
|
|
1101
|
-
var tmp_0 = this.
|
|
1100
|
+
this.k8_1 = 25;
|
|
1101
|
+
var tmp_0 = this.m8_1;
|
|
1102
1102
|
if (tmp_0 instanceof Error) {
|
|
1103
|
-
var cause = this.
|
|
1104
|
-
if (this.
|
|
1105
|
-
var tmp0_safe_receiver = this.
|
|
1103
|
+
var cause = this.m8_1;
|
|
1104
|
+
if (this.x30_1.ty(cause)) {
|
|
1105
|
+
var tmp0_safe_receiver = this.w30_1;
|
|
1106
1106
|
if (tmp0_safe_receiver == null)
|
|
1107
1107
|
null;
|
|
1108
1108
|
else {
|
|
1109
|
-
tmp0_safe_receiver.
|
|
1109
|
+
tmp0_safe_receiver.p2w();
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
close(this.
|
|
1112
|
+
close(this.v30_1, cause);
|
|
1113
1113
|
throw cause;
|
|
1114
1114
|
} else {
|
|
1115
|
-
throw this.
|
|
1115
|
+
throw this.m8_1;
|
|
1116
1116
|
}
|
|
1117
1117
|
|
|
1118
1118
|
case 15:
|
|
1119
|
-
this.
|
|
1120
|
-
suspendResult = skipIfFound(this.
|
|
1119
|
+
this.j8_1 = 16;
|
|
1120
|
+
suspendResult = skipIfFound(this.t30_1, get_CrLf(), this);
|
|
1121
1121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1122
1122
|
return suspendResult;
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
1125
|
continue $sm;
|
|
1126
1126
|
case 16:
|
|
1127
|
-
this.
|
|
1128
|
-
suspendResult = skipIfFound(this.
|
|
1127
|
+
this.j8_1 = 17;
|
|
1128
|
+
suspendResult = skipIfFound(this.t30_1, get_CrLf(), this);
|
|
1129
1129
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1130
1130
|
return suspendResult;
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
1133
1133
|
continue $sm;
|
|
1134
1134
|
case 17:
|
|
1135
|
-
if (!(this.
|
|
1136
|
-
var consumedExceptEpilogue = subtract(this.
|
|
1137
|
-
var size = subtract(this.
|
|
1135
|
+
if (!(this.r30_1 == null)) {
|
|
1136
|
+
var consumedExceptEpilogue = subtract(this.t30_1.n1q(), this.u30_1);
|
|
1137
|
+
var size = subtract(this.r30_1, consumedExceptEpilogue);
|
|
1138
1138
|
if (size > 2147483647n)
|
|
1139
1139
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
1140
1140
|
if (size > 0n) {
|
|
1141
|
-
this.
|
|
1142
|
-
suspendResult = readPacket(this.
|
|
1141
|
+
this.j8_1 = 21;
|
|
1142
|
+
suspendResult = readPacket(this.t30_1, convertToInt(size), this);
|
|
1143
1143
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1144
1144
|
return suspendResult;
|
|
1145
1145
|
}
|
|
1146
1146
|
continue $sm;
|
|
1147
1147
|
} else {
|
|
1148
|
-
this.
|
|
1148
|
+
this.j8_1 = 23;
|
|
1149
1149
|
continue $sm;
|
|
1150
1150
|
}
|
|
1151
1151
|
} else {
|
|
1152
|
-
this.
|
|
1153
|
-
suspendResult = readRemaining(this.
|
|
1152
|
+
this.j8_1 = 18;
|
|
1153
|
+
suspendResult = readRemaining(this.t30_1, this);
|
|
1154
1154
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1155
1155
|
return suspendResult;
|
|
1156
1156
|
}
|
|
@@ -1159,85 +1159,85 @@
|
|
|
1159
1159
|
|
|
1160
1160
|
case 18:
|
|
1161
1161
|
var epilogueContent = suspendResult;
|
|
1162
|
-
if (!epilogueContent.
|
|
1163
|
-
this.
|
|
1164
|
-
suspendResult = this.
|
|
1162
|
+
if (!epilogueContent.ro()) {
|
|
1163
|
+
this.j8_1 = 19;
|
|
1164
|
+
suspendResult = this.s30_1.a19(new Epilogue(epilogueContent), this);
|
|
1165
1165
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1166
1166
|
return suspendResult;
|
|
1167
1167
|
}
|
|
1168
1168
|
continue $sm;
|
|
1169
1169
|
} else {
|
|
1170
|
-
this.
|
|
1170
|
+
this.j8_1 = 20;
|
|
1171
1171
|
continue $sm;
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
1174
|
case 19:
|
|
1175
|
-
this.
|
|
1175
|
+
this.j8_1 = 20;
|
|
1176
1176
|
continue $sm;
|
|
1177
1177
|
case 20:
|
|
1178
|
-
this.
|
|
1178
|
+
this.j8_1 = 24;
|
|
1179
1179
|
continue $sm;
|
|
1180
1180
|
case 21:
|
|
1181
1181
|
var ARGUMENT = suspendResult;
|
|
1182
1182
|
var ARGUMENT_0 = new Epilogue(ARGUMENT);
|
|
1183
|
-
this.
|
|
1184
|
-
suspendResult = this.
|
|
1183
|
+
this.j8_1 = 22;
|
|
1184
|
+
suspendResult = this.s30_1.a19(ARGUMENT_0, this);
|
|
1185
1185
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1186
1186
|
return suspendResult;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
1189
|
continue $sm;
|
|
1190
1190
|
case 22:
|
|
1191
|
-
this.
|
|
1191
|
+
this.j8_1 = 23;
|
|
1192
1192
|
continue $sm;
|
|
1193
1193
|
case 23:
|
|
1194
|
-
this.
|
|
1194
|
+
this.j8_1 = 24;
|
|
1195
1195
|
continue $sm;
|
|
1196
1196
|
case 24:
|
|
1197
1197
|
return Unit_instance;
|
|
1198
1198
|
case 25:
|
|
1199
|
-
throw this.
|
|
1199
|
+
throw this.m8_1;
|
|
1200
1200
|
}
|
|
1201
1201
|
} catch ($p) {
|
|
1202
1202
|
var e = $p;
|
|
1203
|
-
if (this.
|
|
1203
|
+
if (this.k8_1 === 25) {
|
|
1204
1204
|
throw e;
|
|
1205
1205
|
} else {
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1206
|
+
this.j8_1 = this.k8_1;
|
|
1207
|
+
this.m8_1 = e;
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
1210
|
while (true);
|
|
1211
1211
|
};
|
|
1212
|
-
protoOf(parseMultipart$slambda).
|
|
1213
|
-
var i = new parseMultipart$slambda(this.
|
|
1214
|
-
i.
|
|
1212
|
+
protoOf(parseMultipart$slambda).b31 = function ($this$produce, completion) {
|
|
1213
|
+
var i = new parseMultipart$slambda(this.o30_1, this.p30_1, this.q30_1, this.r30_1, completion);
|
|
1214
|
+
i.s30_1 = $this$produce;
|
|
1215
1215
|
return i;
|
|
1216
1216
|
};
|
|
1217
1217
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1218
1218
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1219
1219
|
var l = function ($this$produce, $completion) {
|
|
1220
|
-
return i.
|
|
1220
|
+
return i.a31($this$produce, $completion);
|
|
1221
1221
|
};
|
|
1222
1222
|
l.$arity = 1;
|
|
1223
1223
|
return l;
|
|
1224
1224
|
}
|
|
1225
1225
|
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1226
1226
|
CoroutineImpl.call(this, resultContinuation);
|
|
1227
|
-
this.
|
|
1227
|
+
this.q2y_1 = input;
|
|
1228
1228
|
}
|
|
1229
|
-
protoOf($parsePartHeadersImplCOROUTINE$).
|
|
1230
|
-
var suspendResult = this.
|
|
1229
|
+
protoOf($parsePartHeadersImplCOROUTINE$).r8 = function () {
|
|
1230
|
+
var suspendResult = this.l8_1;
|
|
1231
1231
|
$sm: do
|
|
1232
1232
|
try {
|
|
1233
|
-
var tmp = this.
|
|
1233
|
+
var tmp = this.j8_1;
|
|
1234
1234
|
switch (tmp) {
|
|
1235
1235
|
case 0:
|
|
1236
|
-
this.
|
|
1237
|
-
this.
|
|
1238
|
-
this.
|
|
1239
|
-
this.
|
|
1240
|
-
suspendResult = parseHeaders(this.
|
|
1236
|
+
this.k8_1 = 3;
|
|
1237
|
+
this.r2y_1 = new CharArrayBuilder();
|
|
1238
|
+
this.k8_1 = 2;
|
|
1239
|
+
this.j8_1 = 1;
|
|
1240
|
+
suspendResult = parseHeaders(this.q2y_1, this.r2y_1, VOID, this);
|
|
1241
1241
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1242
1242
|
return suspendResult;
|
|
1243
1243
|
}
|
|
@@ -1254,75 +1254,75 @@
|
|
|
1254
1254
|
|
|
1255
1255
|
return tmp_0;
|
|
1256
1256
|
case 2:
|
|
1257
|
-
this.
|
|
1258
|
-
var tmp_1 = this.
|
|
1257
|
+
this.k8_1 = 3;
|
|
1258
|
+
var tmp_1 = this.m8_1;
|
|
1259
1259
|
if (tmp_1 instanceof Error) {
|
|
1260
|
-
var t = this.
|
|
1261
|
-
this.
|
|
1260
|
+
var t = this.m8_1;
|
|
1261
|
+
this.r2y_1.p2w();
|
|
1262
1262
|
throw t;
|
|
1263
1263
|
} else {
|
|
1264
|
-
throw this.
|
|
1264
|
+
throw this.m8_1;
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
1267
|
case 3:
|
|
1268
|
-
throw this.
|
|
1268
|
+
throw this.m8_1;
|
|
1269
1269
|
}
|
|
1270
1270
|
} catch ($p) {
|
|
1271
1271
|
var e = $p;
|
|
1272
|
-
if (this.
|
|
1272
|
+
if (this.k8_1 === 3) {
|
|
1273
1273
|
throw e;
|
|
1274
1274
|
} else {
|
|
1275
|
-
this.
|
|
1276
|
-
this.
|
|
1275
|
+
this.j8_1 = this.k8_1;
|
|
1276
|
+
this.m8_1 = e;
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
while (true);
|
|
1280
1280
|
};
|
|
1281
1281
|
function $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1282
1282
|
CoroutineImpl.call(this, resultContinuation);
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1288
|
-
}
|
|
1289
|
-
protoOf($parsePartBodyImplCOROUTINE$).
|
|
1290
|
-
var suspendResult = this.
|
|
1283
|
+
this.a2z_1 = boundaryPrefixed;
|
|
1284
|
+
this.b2z_1 = input;
|
|
1285
|
+
this.c2z_1 = output;
|
|
1286
|
+
this.d2z_1 = headers;
|
|
1287
|
+
this.e2z_1 = limit;
|
|
1288
|
+
}
|
|
1289
|
+
protoOf($parsePartBodyImplCOROUTINE$).r8 = function () {
|
|
1290
|
+
var suspendResult = this.l8_1;
|
|
1291
1291
|
$sm: do
|
|
1292
1292
|
try {
|
|
1293
|
-
var tmp = this.
|
|
1293
|
+
var tmp = this.j8_1;
|
|
1294
1294
|
switch (tmp) {
|
|
1295
1295
|
case 0:
|
|
1296
|
-
this.
|
|
1297
|
-
var tmp0_safe_receiver = this.
|
|
1296
|
+
this.k8_1 = 6;
|
|
1297
|
+
var tmp0_safe_receiver = this.d2z_1.f2d('Content-Length');
|
|
1298
1298
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1299
1299
|
if (contentLength == null) {
|
|
1300
|
-
this.
|
|
1301
|
-
suspendResult = readUntil(this.
|
|
1300
|
+
this.j8_1 = 3;
|
|
1301
|
+
suspendResult = readUntil(this.b2z_1, this.a2z_1, this.c2z_1, this.e2z_1, true, this);
|
|
1302
1302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1303
1303
|
return suspendResult;
|
|
1304
1304
|
}
|
|
1305
1305
|
continue $sm;
|
|
1306
1306
|
} else {
|
|
1307
|
-
var containsUpper = this.
|
|
1307
|
+
var containsUpper = this.e2z_1;
|
|
1308
1308
|
if (0n <= contentLength ? contentLength <= containsUpper : false) {
|
|
1309
|
-
this.
|
|
1310
|
-
suspendResult = copyTo(this.
|
|
1309
|
+
this.j8_1 = 1;
|
|
1310
|
+
suspendResult = copyTo(this.b2z_1, this.c2z_1, contentLength, this);
|
|
1311
1311
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1312
1312
|
return suspendResult;
|
|
1313
1313
|
}
|
|
1314
1314
|
continue $sm;
|
|
1315
1315
|
} else {
|
|
1316
1316
|
var tmp_0 = this;
|
|
1317
|
-
throwLimitExceeded(contentLength, this.
|
|
1317
|
+
throwLimitExceeded(contentLength, this.e2z_1);
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
1321
|
break;
|
|
1322
1322
|
case 1:
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1323
|
+
this.h2z_1 = suspendResult;
|
|
1324
|
+
this.j8_1 = 2;
|
|
1325
|
+
suspendResult = skipIfFoundReadCount(this.b2z_1, this.a2z_1, this);
|
|
1326
1326
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1327
1327
|
return suspendResult;
|
|
1328
1328
|
}
|
|
@@ -1330,53 +1330,53 @@
|
|
|
1330
1330
|
continue $sm;
|
|
1331
1331
|
case 2:
|
|
1332
1332
|
var ARGUMENT = suspendResult;
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1333
|
+
this.g2z_1 = add(this.h2z_1, ARGUMENT);
|
|
1334
|
+
this.j8_1 = 4;
|
|
1335
1335
|
continue $sm;
|
|
1336
1336
|
case 3:
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1337
|
+
this.g2z_1 = suspendResult;
|
|
1338
|
+
this.j8_1 = 4;
|
|
1339
1339
|
continue $sm;
|
|
1340
1340
|
case 4:
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
suspendResult = this.
|
|
1341
|
+
this.f2z_1 = this.g2z_1;
|
|
1342
|
+
this.j8_1 = 5;
|
|
1343
|
+
suspendResult = this.c2z_1.q1g(this);
|
|
1344
1344
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1345
1345
|
return suspendResult;
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
1348
|
continue $sm;
|
|
1349
1349
|
case 5:
|
|
1350
|
-
return this.
|
|
1350
|
+
return this.f2z_1;
|
|
1351
1351
|
case 6:
|
|
1352
|
-
throw this.
|
|
1352
|
+
throw this.m8_1;
|
|
1353
1353
|
}
|
|
1354
1354
|
} catch ($p) {
|
|
1355
1355
|
var e = $p;
|
|
1356
|
-
if (this.
|
|
1356
|
+
if (this.k8_1 === 6) {
|
|
1357
1357
|
throw e;
|
|
1358
1358
|
} else {
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1359
|
+
this.j8_1 = this.k8_1;
|
|
1360
|
+
this.m8_1 = e;
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
while (true);
|
|
1364
1364
|
};
|
|
1365
1365
|
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1366
1366
|
CoroutineImpl.call(this, resultContinuation);
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1367
|
+
this.q2z_1 = _this__u8e3s4;
|
|
1368
|
+
this.r2z_1 = prefix;
|
|
1369
1369
|
}
|
|
1370
|
-
protoOf($skipIfFoundReadCountCOROUTINE$).
|
|
1371
|
-
var suspendResult = this.
|
|
1370
|
+
protoOf($skipIfFoundReadCountCOROUTINE$).r8 = function () {
|
|
1371
|
+
var suspendResult = this.l8_1;
|
|
1372
1372
|
$sm: do
|
|
1373
1373
|
try {
|
|
1374
|
-
var tmp = this.
|
|
1374
|
+
var tmp = this.j8_1;
|
|
1375
1375
|
switch (tmp) {
|
|
1376
1376
|
case 0:
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
suspendResult = skipIfFound(this.
|
|
1377
|
+
this.k8_1 = 3;
|
|
1378
|
+
this.j8_1 = 1;
|
|
1379
|
+
suspendResult = skipIfFound(this.q2z_1, this.r2z_1, this);
|
|
1380
1380
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1381
1381
|
return suspendResult;
|
|
1382
1382
|
}
|
|
@@ -1385,28 +1385,28 @@
|
|
|
1385
1385
|
case 1:
|
|
1386
1386
|
if (suspendResult) {
|
|
1387
1387
|
var tmp_0 = this;
|
|
1388
|
-
tmp_0.
|
|
1389
|
-
this.
|
|
1388
|
+
tmp_0.s2z_1 = fromInt(this.r2z_1.g1());
|
|
1389
|
+
this.j8_1 = 2;
|
|
1390
1390
|
continue $sm;
|
|
1391
1391
|
} else {
|
|
1392
1392
|
var tmp_1 = this;
|
|
1393
|
-
tmp_1.
|
|
1394
|
-
this.
|
|
1393
|
+
tmp_1.s2z_1 = 0n;
|
|
1394
|
+
this.j8_1 = 2;
|
|
1395
1395
|
continue $sm;
|
|
1396
1396
|
}
|
|
1397
1397
|
|
|
1398
1398
|
case 2:
|
|
1399
|
-
return this.
|
|
1399
|
+
return this.s2z_1;
|
|
1400
1400
|
case 3:
|
|
1401
|
-
throw this.
|
|
1401
|
+
throw this.m8_1;
|
|
1402
1402
|
}
|
|
1403
1403
|
} catch ($p) {
|
|
1404
1404
|
var e = $p;
|
|
1405
|
-
if (this.
|
|
1405
|
+
if (this.k8_1 === 3) {
|
|
1406
1406
|
throw e;
|
|
1407
1407
|
} else {
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1408
|
+
this.j8_1 = this.k8_1;
|
|
1409
|
+
this.m8_1 = e;
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
1412
|
while (true);
|
|
@@ -1463,7 +1463,7 @@
|
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
1465
|
build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
|
|
1466
|
-
children.
|
|
1466
|
+
children.s5();
|
|
1467
1467
|
// Inline function 'kotlin.collections.filter' call
|
|
1468
1468
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1469
1469
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -1484,16 +1484,16 @@
|
|
|
1484
1484
|
return new Char(charSequenceGet(s, idx));
|
|
1485
1485
|
}
|
|
1486
1486
|
function Node(ch, exact, children) {
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1487
|
+
this.c31_1 = ch;
|
|
1488
|
+
this.d31_1 = exact;
|
|
1489
|
+
this.e31_1 = children;
|
|
1490
1490
|
var tmp = this;
|
|
1491
1491
|
var tmp_0 = 0;
|
|
1492
1492
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1493
1493
|
var tmp_1 = Array(256);
|
|
1494
1494
|
while (tmp_0 < 256) {
|
|
1495
1495
|
var tmp_2 = tmp_0;
|
|
1496
|
-
var tmp0 = this.
|
|
1496
|
+
var tmp0 = this.e31_1;
|
|
1497
1497
|
var tmp$ret$3;
|
|
1498
1498
|
$l$block_0: {
|
|
1499
1499
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -1503,7 +1503,7 @@
|
|
|
1503
1503
|
while (_iterator__ex2g4s.u()) {
|
|
1504
1504
|
var element = _iterator__ex2g4s.v();
|
|
1505
1505
|
// Inline function 'kotlin.code' call
|
|
1506
|
-
var this_0 = element.
|
|
1506
|
+
var this_0 = element.c31_1;
|
|
1507
1507
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1508
1508
|
if (found) {
|
|
1509
1509
|
tmp$ret$3 = null;
|
|
@@ -1522,15 +1522,15 @@
|
|
|
1522
1522
|
tmp_1[tmp_2] = tmp$ret$3;
|
|
1523
1523
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1524
1524
|
}
|
|
1525
|
-
tmp.
|
|
1525
|
+
tmp.f31_1 = tmp_1;
|
|
1526
1526
|
}
|
|
1527
1527
|
function Companion() {
|
|
1528
1528
|
}
|
|
1529
|
-
protoOf(Companion).
|
|
1529
|
+
protoOf(Companion).d2y = function (from) {
|
|
1530
1530
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1531
|
-
return this.
|
|
1531
|
+
return this.g31(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1532
1532
|
};
|
|
1533
|
-
protoOf(Companion).
|
|
1533
|
+
protoOf(Companion).g31 = function (from, length, charAt) {
|
|
1534
1534
|
var tmp$ret$0;
|
|
1535
1535
|
$l$block_0: {
|
|
1536
1536
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1599,7 +1599,7 @@
|
|
|
1599
1599
|
throw IllegalArgumentException_init_$Create$('There should be no empty entries');
|
|
1600
1600
|
var root = ArrayList_init_$Create$();
|
|
1601
1601
|
build(this, root, from, maxLen, 0, length, charAt);
|
|
1602
|
-
root.
|
|
1602
|
+
root.s5();
|
|
1603
1603
|
return new AsciiCharTree(new Node(_Char___init__impl__6a9atx(0), emptyList(), root));
|
|
1604
1604
|
};
|
|
1605
1605
|
var Companion_instance;
|
|
@@ -1607,10 +1607,10 @@
|
|
|
1607
1607
|
return Companion_instance;
|
|
1608
1608
|
}
|
|
1609
1609
|
function AsciiCharTree(root) {
|
|
1610
|
-
this.
|
|
1610
|
+
this.h31_1 = root;
|
|
1611
1611
|
}
|
|
1612
1612
|
function getImpl($this, index) {
|
|
1613
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1613
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.i2w_1).length | 0];
|
|
1614
1614
|
}
|
|
1615
1615
|
function copy($this, startIndex, endIndex) {
|
|
1616
1616
|
if (startIndex === endIndex)
|
|
@@ -1639,27 +1639,27 @@
|
|
|
1639
1639
|
return builder;
|
|
1640
1640
|
}
|
|
1641
1641
|
function SubSequenceImpl($outer, start, end) {
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1642
|
+
this.l31_1 = $outer;
|
|
1643
|
+
this.i31_1 = start;
|
|
1644
|
+
this.j31_1 = end;
|
|
1645
|
+
this.k31_1 = null;
|
|
1646
1646
|
}
|
|
1647
1647
|
protoOf(SubSequenceImpl).a = function () {
|
|
1648
|
-
return this.
|
|
1648
|
+
return this.j31_1 - this.i31_1 | 0;
|
|
1649
1649
|
};
|
|
1650
1650
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1651
|
-
var withOffset = index + this.
|
|
1651
|
+
var withOffset = index + this.i31_1 | 0;
|
|
1652
1652
|
// Inline function 'kotlin.require' call
|
|
1653
1653
|
if (!(index >= 0)) {
|
|
1654
1654
|
var message = 'index is negative: ' + index;
|
|
1655
1655
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1656
1656
|
}
|
|
1657
1657
|
// Inline function 'kotlin.require' call
|
|
1658
|
-
if (!(withOffset < this.
|
|
1658
|
+
if (!(withOffset < this.j31_1)) {
|
|
1659
1659
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
1660
1660
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1661
1661
|
}
|
|
1662
|
-
return getImpl(this.
|
|
1662
|
+
return getImpl(this.l31_1, withOffset);
|
|
1663
1663
|
};
|
|
1664
1664
|
protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
1665
1665
|
// Inline function 'kotlin.require' call
|
|
@@ -1673,21 +1673,21 @@
|
|
|
1673
1673
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1674
1674
|
}
|
|
1675
1675
|
// Inline function 'kotlin.require' call
|
|
1676
|
-
if (!(endIndex <= (this.
|
|
1676
|
+
if (!(endIndex <= (this.j31_1 - this.i31_1 | 0))) {
|
|
1677
1677
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
1678
1678
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1679
1679
|
}
|
|
1680
1680
|
if (startIndex === endIndex)
|
|
1681
1681
|
return '';
|
|
1682
|
-
return new SubSequenceImpl(this.
|
|
1682
|
+
return new SubSequenceImpl(this.l31_1, this.i31_1 + startIndex | 0, this.i31_1 + endIndex | 0);
|
|
1683
1683
|
};
|
|
1684
1684
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1685
|
-
var tmp0_elvis_lhs = this.
|
|
1685
|
+
var tmp0_elvis_lhs = this.k31_1;
|
|
1686
1686
|
var tmp;
|
|
1687
1687
|
if (tmp0_elvis_lhs == null) {
|
|
1688
1688
|
// Inline function 'kotlin.also' call
|
|
1689
|
-
var this_0 = toString(copy(this.
|
|
1690
|
-
this.
|
|
1689
|
+
var this_0 = toString(copy(this.l31_1, this.i31_1, this.j31_1));
|
|
1690
|
+
this.k31_1 = this_0;
|
|
1691
1691
|
tmp = this_0;
|
|
1692
1692
|
} else {
|
|
1693
1693
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1699,20 +1699,20 @@
|
|
|
1699
1699
|
return false;
|
|
1700
1700
|
if (!(charSequenceLength(other) === this.a()))
|
|
1701
1701
|
return false;
|
|
1702
|
-
return rangeEqualsImpl(this.
|
|
1702
|
+
return rangeEqualsImpl(this.l31_1, this.i31_1, other, 0, this.a());
|
|
1703
1703
|
};
|
|
1704
1704
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1705
|
-
var tmp0_safe_receiver = this.
|
|
1705
|
+
var tmp0_safe_receiver = this.k31_1;
|
|
1706
1706
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1707
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
1707
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.l31_1, this.i31_1, this.j31_1) : tmp1_elvis_lhs;
|
|
1708
1708
|
};
|
|
1709
1709
|
function bufferForIndex($this, index) {
|
|
1710
|
-
var list = $this.
|
|
1710
|
+
var list = $this.h2w_1;
|
|
1711
1711
|
if (list == null) {
|
|
1712
1712
|
if (index >= 2048) {
|
|
1713
1713
|
throwSingleBuffer($this, index);
|
|
1714
1714
|
}
|
|
1715
|
-
var tmp0_elvis_lhs = $this.
|
|
1715
|
+
var tmp0_elvis_lhs = $this.i2w_1;
|
|
1716
1716
|
var tmp;
|
|
1717
1717
|
if (tmp0_elvis_lhs == null) {
|
|
1718
1718
|
throwSingleBuffer($this, index);
|
|
@@ -1721,29 +1721,29 @@
|
|
|
1721
1721
|
}
|
|
1722
1722
|
return tmp;
|
|
1723
1723
|
}
|
|
1724
|
-
return list.h1(index / ensureNotNull($this.
|
|
1724
|
+
return list.h1(index / ensureNotNull($this.i2w_1).length | 0);
|
|
1725
1725
|
}
|
|
1726
1726
|
function throwSingleBuffer($this, index) {
|
|
1727
|
-
if ($this.
|
|
1727
|
+
if ($this.k2w_1)
|
|
1728
1728
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1729
1729
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1730
1730
|
}
|
|
1731
1731
|
function nonFullBuffer($this) {
|
|
1732
|
-
return $this.
|
|
1732
|
+
return $this.l2w_1 === 0 ? appendNewArray($this) : ensureNotNull($this.i2w_1);
|
|
1733
1733
|
}
|
|
1734
1734
|
function appendNewArray($this) {
|
|
1735
|
-
var newBuffer = $this.
|
|
1736
|
-
var existing = $this.
|
|
1737
|
-
$this.
|
|
1738
|
-
$this.
|
|
1739
|
-
$this.
|
|
1735
|
+
var newBuffer = $this.g2w_1.l1r();
|
|
1736
|
+
var existing = $this.i2w_1;
|
|
1737
|
+
$this.i2w_1 = newBuffer;
|
|
1738
|
+
$this.l2w_1 = newBuffer.length;
|
|
1739
|
+
$this.k2w_1 = false;
|
|
1740
1740
|
if (!(existing == null)) {
|
|
1741
|
-
var tmp0_elvis_lhs = $this.
|
|
1741
|
+
var tmp0_elvis_lhs = $this.h2w_1;
|
|
1742
1742
|
var tmp;
|
|
1743
1743
|
if (tmp0_elvis_lhs == null) {
|
|
1744
1744
|
// Inline function 'kotlin.also' call
|
|
1745
1745
|
var this_0 = ArrayList_init_$Create$();
|
|
1746
|
-
$this.
|
|
1746
|
+
$this.h2w_1 = this_0;
|
|
1747
1747
|
this_0.e1(existing);
|
|
1748
1748
|
tmp = this_0;
|
|
1749
1749
|
} else {
|
|
@@ -1782,20 +1782,20 @@
|
|
|
1782
1782
|
return hc;
|
|
1783
1783
|
}
|
|
1784
1784
|
function currentPosition($this) {
|
|
1785
|
-
return ensureNotNull($this.
|
|
1785
|
+
return ensureNotNull($this.i2w_1).length - $this.l2w_1 | 0;
|
|
1786
1786
|
}
|
|
1787
1787
|
function CharArrayBuilder(pool) {
|
|
1788
1788
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1789
|
-
this.
|
|
1790
|
-
this.
|
|
1791
|
-
this.
|
|
1792
|
-
this.
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1789
|
+
this.g2w_1 = pool;
|
|
1790
|
+
this.h2w_1 = null;
|
|
1791
|
+
this.i2w_1 = null;
|
|
1792
|
+
this.j2w_1 = null;
|
|
1793
|
+
this.k2w_1 = false;
|
|
1794
|
+
this.l2w_1 = 0;
|
|
1795
|
+
this.m2w_1 = 0;
|
|
1796
1796
|
}
|
|
1797
1797
|
protoOf(CharArrayBuilder).a = function () {
|
|
1798
|
-
return this.
|
|
1798
|
+
return this.m2w_1;
|
|
1799
1799
|
};
|
|
1800
1800
|
protoOf(CharArrayBuilder).b = function (index) {
|
|
1801
1801
|
// Inline function 'kotlin.require' call
|
|
@@ -1804,8 +1804,8 @@
|
|
|
1804
1804
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1805
1805
|
}
|
|
1806
1806
|
// Inline function 'kotlin.require' call
|
|
1807
|
-
if (!(index < this.
|
|
1808
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1807
|
+
if (!(index < this.m2w_1)) {
|
|
1808
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.m2w_1 + ')';
|
|
1809
1809
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1810
1810
|
}
|
|
1811
1811
|
return getImpl(this, index);
|
|
@@ -1822,19 +1822,19 @@
|
|
|
1822
1822
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1823
1823
|
}
|
|
1824
1824
|
// Inline function 'kotlin.require' call
|
|
1825
|
-
if (!(endIndex <= this.
|
|
1826
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1825
|
+
if (!(endIndex <= this.m2w_1)) {
|
|
1826
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.m2w_1 + ')';
|
|
1827
1827
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1828
1828
|
}
|
|
1829
1829
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1830
1830
|
};
|
|
1831
1831
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1832
|
-
var tmp0_elvis_lhs = this.
|
|
1832
|
+
var tmp0_elvis_lhs = this.j2w_1;
|
|
1833
1833
|
var tmp;
|
|
1834
1834
|
if (tmp0_elvis_lhs == null) {
|
|
1835
1835
|
// Inline function 'kotlin.also' call
|
|
1836
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1837
|
-
this.
|
|
1836
|
+
var this_0 = toString(copy(this, 0, this.m2w_1));
|
|
1837
|
+
this.j2w_1 = this_0;
|
|
1838
1838
|
tmp = this_0;
|
|
1839
1839
|
} else {
|
|
1840
1840
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1844,32 +1844,32 @@
|
|
|
1844
1844
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1845
1845
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1846
1846
|
return false;
|
|
1847
|
-
if (!(this.
|
|
1847
|
+
if (!(this.m2w_1 === charSequenceLength(other)))
|
|
1848
1848
|
return false;
|
|
1849
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1849
|
+
return rangeEqualsImpl(this, 0, other, 0, this.m2w_1);
|
|
1850
1850
|
};
|
|
1851
1851
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1852
|
-
var tmp0_safe_receiver = this.
|
|
1852
|
+
var tmp0_safe_receiver = this.j2w_1;
|
|
1853
1853
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1854
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1854
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.m2w_1) : tmp1_elvis_lhs;
|
|
1855
1855
|
};
|
|
1856
1856
|
protoOf(CharArrayBuilder).s = function (value) {
|
|
1857
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1858
|
-
this.
|
|
1859
|
-
this.
|
|
1860
|
-
this.
|
|
1857
|
+
nonFullBuffer(this)[ensureNotNull(this.i2w_1).length - this.l2w_1 | 0] = value;
|
|
1858
|
+
this.j2w_1 = null;
|
|
1859
|
+
this.l2w_1 = this.l2w_1 - 1 | 0;
|
|
1860
|
+
this.m2w_1 = this.m2w_1 + 1 | 0;
|
|
1861
1861
|
return this;
|
|
1862
1862
|
};
|
|
1863
|
-
protoOf(CharArrayBuilder).
|
|
1863
|
+
protoOf(CharArrayBuilder).wb = function (value, startIndex, endIndex) {
|
|
1864
1864
|
if (value == null)
|
|
1865
1865
|
return this;
|
|
1866
1866
|
var current = startIndex;
|
|
1867
1867
|
while (current < endIndex) {
|
|
1868
1868
|
var buffer = nonFullBuffer(this);
|
|
1869
|
-
var offset = buffer.length - this.
|
|
1869
|
+
var offset = buffer.length - this.l2w_1 | 0;
|
|
1870
1870
|
var tmp0 = endIndex - current | 0;
|
|
1871
1871
|
// Inline function 'kotlin.math.min' call
|
|
1872
|
-
var b = this.
|
|
1872
|
+
var b = this.l2w_1;
|
|
1873
1873
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1874
1874
|
var inductionVariable = 0;
|
|
1875
1875
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1880,45 +1880,45 @@
|
|
|
1880
1880
|
}
|
|
1881
1881
|
while (inductionVariable < bytesToCopy);
|
|
1882
1882
|
current = current + bytesToCopy | 0;
|
|
1883
|
-
this.
|
|
1883
|
+
this.l2w_1 = this.l2w_1 - bytesToCopy | 0;
|
|
1884
1884
|
}
|
|
1885
|
-
this.
|
|
1886
|
-
this.
|
|
1885
|
+
this.j2w_1 = null;
|
|
1886
|
+
this.m2w_1 = this.m2w_1 + (endIndex - startIndex | 0) | 0;
|
|
1887
1887
|
return this;
|
|
1888
1888
|
};
|
|
1889
1889
|
protoOf(CharArrayBuilder).f1 = function (value) {
|
|
1890
1890
|
if (value == null)
|
|
1891
1891
|
return this;
|
|
1892
|
-
return this.
|
|
1892
|
+
return this.wb(value, 0, charSequenceLength(value));
|
|
1893
1893
|
};
|
|
1894
|
-
protoOf(CharArrayBuilder).
|
|
1895
|
-
var list = this.
|
|
1894
|
+
protoOf(CharArrayBuilder).p2w = function () {
|
|
1895
|
+
var list = this.h2w_1;
|
|
1896
1896
|
if (!(list == null)) {
|
|
1897
|
-
this.
|
|
1897
|
+
this.i2w_1 = null;
|
|
1898
1898
|
var inductionVariable = 0;
|
|
1899
1899
|
var last = list.g1();
|
|
1900
1900
|
if (inductionVariable < last)
|
|
1901
1901
|
do {
|
|
1902
1902
|
var i = inductionVariable;
|
|
1903
1903
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1904
|
-
this.
|
|
1904
|
+
this.g2w_1.m1r(list.h1(i));
|
|
1905
1905
|
}
|
|
1906
1906
|
while (inductionVariable < last);
|
|
1907
1907
|
} else {
|
|
1908
|
-
var tmp0_safe_receiver = this.
|
|
1908
|
+
var tmp0_safe_receiver = this.i2w_1;
|
|
1909
1909
|
if (tmp0_safe_receiver == null)
|
|
1910
1910
|
null;
|
|
1911
1911
|
else {
|
|
1912
1912
|
// Inline function 'kotlin.let' call
|
|
1913
|
-
this.
|
|
1913
|
+
this.g2w_1.m1r(tmp0_safe_receiver);
|
|
1914
1914
|
}
|
|
1915
|
-
this.
|
|
1915
|
+
this.i2w_1 = null;
|
|
1916
1916
|
}
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1917
|
+
this.k2w_1 = true;
|
|
1918
|
+
this.h2w_1 = null;
|
|
1919
|
+
this.j2w_1 = null;
|
|
1920
|
+
this.m2w_1 = 0;
|
|
1921
|
+
this.l2w_1 = 0;
|
|
1922
1922
|
};
|
|
1923
1923
|
function get_CharArrayPool() {
|
|
1924
1924
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -1928,13 +1928,13 @@
|
|
|
1928
1928
|
function CharArrayPool$1() {
|
|
1929
1929
|
NoPoolImpl.call(this);
|
|
1930
1930
|
}
|
|
1931
|
-
protoOf(CharArrayPool$1).
|
|
1931
|
+
protoOf(CharArrayPool$1).l1r = function () {
|
|
1932
1932
|
return charArray(2048);
|
|
1933
1933
|
};
|
|
1934
1934
|
function CharArrayPool$2() {
|
|
1935
1935
|
DefaultPool.call(this, 4096);
|
|
1936
1936
|
}
|
|
1937
|
-
protoOf(CharArrayPool$2).
|
|
1937
|
+
protoOf(CharArrayPool$2).e1r = function () {
|
|
1938
1938
|
return charArray(2048);
|
|
1939
1939
|
};
|
|
1940
1940
|
var properties_initialized_CharArrayPool_kt_aq0u0f;
|
|
@@ -2125,20 +2125,20 @@
|
|
|
2125
2125
|
}
|
|
2126
2126
|
function DefaultHttpMethods$lambda(it) {
|
|
2127
2127
|
_init_properties_Chars_kt__d3i39x();
|
|
2128
|
-
return it.
|
|
2128
|
+
return it.y2p_1.length;
|
|
2129
2129
|
}
|
|
2130
2130
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
2131
2131
|
_init_properties_Chars_kt__d3i39x();
|
|
2132
|
-
return new Char(charCodeAt(m.
|
|
2132
|
+
return new Char(charCodeAt(m.y2p_1, idx));
|
|
2133
2133
|
}
|
|
2134
2134
|
var properties_initialized_Chars_kt_phjfhp;
|
|
2135
2135
|
function _init_properties_Chars_kt__d3i39x() {
|
|
2136
2136
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
2137
2137
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
2138
2138
|
var tmp = Companion_instance;
|
|
2139
|
-
var tmp_0 = Companion_getInstance_0().
|
|
2139
|
+
var tmp_0 = Companion_getInstance_0().x2p_1;
|
|
2140
2140
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2141
|
-
DefaultHttpMethods = tmp.
|
|
2141
|
+
DefaultHttpMethods = tmp.g31(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
2142
2142
|
// Inline function 'kotlin.collections.map' call
|
|
2143
2143
|
var this_0 = numberRangeToNumber(0, 255);
|
|
2144
2144
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2239,11 +2239,11 @@
|
|
|
2239
2239
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
2240
2240
|
}
|
|
2241
2241
|
function MutableRange(start, end) {
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2242
|
+
this.b2y_1 = start;
|
|
2243
|
+
this.c2y_1 = end;
|
|
2244
2244
|
}
|
|
2245
2245
|
protoOf(MutableRange).toString = function () {
|
|
2246
|
-
return 'MutableRange(start=' + this.
|
|
2246
|
+
return 'MutableRange(start=' + this.b2y_1 + ', end=' + this.c2y_1 + ')';
|
|
2247
2247
|
};
|
|
2248
2248
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2249
2249
|
var index = start;
|