@dmarket/p2p-tracker-core 0.1.0-SNAPSHOT.99 → 1.0.1-beta
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/VERSION +14 -0
- package/dmarket-p2p-tracker-core-domain.mjs +11510 -4975
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3168 -2664
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2758 -2428
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +44 -44
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +517 -497
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1791 -1790
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1586 -1564
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3047 -3048
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +491 -491
- package/ktor-ktor-http.mjs +666 -646
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1145 -1059
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +794 -786
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +855 -799
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.d.mts +110 -40
- package/p2p-tracker-core.mjs +28378 -11117
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +2 -4
- package/pkg/README.md +92 -0
- package/pkg/client_wasm.d.ts +312 -0
- package/pkg/client_wasm.js +1187 -0
- package/pkg/client_wasm_bg.wasm +0 -0
- package/pkg/client_wasm_bg.wasm.d.ts +32 -0
- package/pkg/package.json +19 -0
- package/pkg/snippets/web-spawn-05868593a72e2d44/js/spawn.js +73 -0
- package/pkg/spawn.js +73 -0
- package/transport/README.md +172 -0
- package/transport/dist/channel.d.ts +48 -0
- package/transport/dist/channel.d.ts.map +1 -0
- package/transport/dist/channel.js +150 -0
- package/transport/dist/channel.js.map +1 -0
- package/transport/dist/index.d.ts +8 -0
- package/transport/dist/index.d.ts.map +1 -0
- package/transport/dist/index.js +18 -0
- package/transport/dist/index.js.map +1 -0
- package/transport/dist/prover.d.ts +103 -0
- package/transport/dist/prover.d.ts.map +1 -0
- package/transport/dist/prover.js +139 -0
- package/transport/dist/prover.js.map +1 -0
- package/transport/dist/transport.d.ts +31 -0
- package/transport/dist/transport.d.ts.map +1 -0
- package/transport/dist/transport.js +75 -0
- package/transport/dist/transport.js.map +1 -0
- package/transport/dist/types.d.ts +162 -0
- package/transport/dist/types.d.ts.map +1 -0
- package/transport/dist/types.js +21 -0
- package/transport/dist/types.js.map +1 -0
- package/transport/dist/wasm-compat.d.ts +2 -0
- package/transport/dist/wasm-compat.d.ts.map +1 -0
- package/transport/dist/wasm-compat.js +15 -0
- package/transport/dist/wasm-compat.js.map +1 -0
- package/transport/package.json +28 -0
package/ktor-ktor-io.mjs
CHANGED
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
listOf1jh22dvmctj1r as listOf,
|
|
55
55
|
StringBuilder_init_$Create$3q4yitjcnfjo as StringBuilder_init_$Create$,
|
|
56
56
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
57
|
-
|
|
57
|
+
encodeToByteArray1onwao0uakjfh as encodeToByteArray,
|
|
58
58
|
AutoCloseable1l5p57f9lp7kv as AutoCloseable,
|
|
59
59
|
_Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
|
|
60
60
|
replaceqbix900hl8kl as replace_0,
|
|
@@ -87,7 +87,8 @@ import {
|
|
|
87
87
|
EOFException_init_$Create$28fkhq0q0kobq as EOFException_init_$Create$,
|
|
88
88
|
readString3v6duspiz33tv as readString,
|
|
89
89
|
readByteString2hnsbql6t4ads as readByteString,
|
|
90
|
-
|
|
90
|
+
readStringo8i62qxt5m4m as readString_0,
|
|
91
|
+
readString2nvggcfaijfhd as readString_1,
|
|
91
92
|
IOException1wyutdmfe71nu as IOException,
|
|
92
93
|
IOException_init_$Init$1v5tzhogkz08y as IOException_init_$Init$,
|
|
93
94
|
IOException_init_$Create$1n9wqi59tj1t7 as IOException_init_$Create$_0,
|
|
@@ -105,10 +106,10 @@ initMetadataForCompanion(Companion);
|
|
|
105
106
|
initMetadataForObject(Empty, 'Empty');
|
|
106
107
|
initMetadataForClass(Closed, 'Closed');
|
|
107
108
|
function resume() {
|
|
108
|
-
return this.
|
|
109
|
+
return this.r3i().g9(Companion_getInstance().o3i_1);
|
|
109
110
|
}
|
|
110
111
|
function resume_0(throwable) {
|
|
111
|
-
var tmp = this.
|
|
112
|
+
var tmp = this.r3i();
|
|
112
113
|
var tmp_0;
|
|
113
114
|
if (throwable == null) {
|
|
114
115
|
tmp_0 = null;
|
|
@@ -119,7 +120,7 @@ function resume_0(throwable) {
|
|
|
119
120
|
tmp_0 = new Result(tmp$ret$0);
|
|
120
121
|
}
|
|
121
122
|
var tmp1_elvis_lhs = tmp_0;
|
|
122
|
-
return tmp.
|
|
123
|
+
return tmp.g9(tmp1_elvis_lhs == null ? Companion_getInstance().o3i_1 : tmp1_elvis_lhs.do_1);
|
|
123
124
|
}
|
|
124
125
|
initMetadataForInterface(Task, 'Task');
|
|
125
126
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -130,7 +131,7 @@ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
|
130
131
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
131
132
|
function awaitContent$default(min, $completion, $super) {
|
|
132
133
|
min = min === VOID ? 1 : min;
|
|
133
|
-
return $super === VOID ? this.
|
|
134
|
+
return $super === VOID ? this.y3k(min, $completion) : $super.y3k.call(this, min, $completion);
|
|
134
135
|
}
|
|
135
136
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
136
137
|
function get_autoFlush() {
|
|
@@ -176,7 +177,7 @@ initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID,
|
|
|
176
177
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
177
178
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
178
179
|
function close() {
|
|
179
|
-
this.
|
|
180
|
+
this.u1p();
|
|
180
181
|
}
|
|
181
182
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
182
183
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -195,10 +196,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
|
195
196
|
//endregion
|
|
196
197
|
function Companion() {
|
|
197
198
|
Companion_instance_0 = this;
|
|
198
|
-
this.
|
|
199
|
+
this.n3i_1 = new Closed(null);
|
|
199
200
|
var tmp = this;
|
|
200
201
|
// Inline function 'kotlin.Companion.success' call
|
|
201
|
-
tmp.
|
|
202
|
+
tmp.o3i_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
202
203
|
}
|
|
203
204
|
var Companion_instance_0;
|
|
204
205
|
function Companion_getInstance() {
|
|
@@ -226,109 +227,109 @@ function Empty_getInstance() {
|
|
|
226
227
|
return Empty_instance;
|
|
227
228
|
}
|
|
228
229
|
function Closed(cause) {
|
|
229
|
-
this.
|
|
230
|
+
this.p3i_1 = cause;
|
|
230
231
|
}
|
|
231
232
|
protoOf(Closed).toString = function () {
|
|
232
|
-
return 'Closed(cause=' + toString(this.
|
|
233
|
+
return 'Closed(cause=' + toString(this.p3i_1) + ')';
|
|
233
234
|
};
|
|
234
235
|
protoOf(Closed).hashCode = function () {
|
|
235
|
-
return this.
|
|
236
|
+
return this.p3i_1 == null ? 0 : hashCode(this.p3i_1);
|
|
236
237
|
};
|
|
237
238
|
protoOf(Closed).equals = function (other) {
|
|
238
239
|
if (this === other)
|
|
239
240
|
return true;
|
|
240
241
|
if (!(other instanceof Closed))
|
|
241
242
|
return false;
|
|
242
|
-
if (!equals(this.
|
|
243
|
+
if (!equals(this.p3i_1, other.p3i_1))
|
|
243
244
|
return false;
|
|
244
245
|
return true;
|
|
245
246
|
};
|
|
246
247
|
function Task() {
|
|
247
248
|
}
|
|
248
249
|
function Read(continuation) {
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
250
|
+
this.v3i_1 = continuation;
|
|
251
|
+
this.w3i_1 = null;
|
|
251
252
|
if (get_DEVELOPMENT_MODE()) {
|
|
252
253
|
var tmp = this;
|
|
253
254
|
// Inline function 'kotlin.also' call
|
|
254
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
255
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.v3i_1), 16));
|
|
255
256
|
stackTraceToString(this_0);
|
|
256
|
-
tmp.
|
|
257
|
+
tmp.w3i_1 = this_0;
|
|
257
258
|
}
|
|
258
259
|
}
|
|
259
|
-
protoOf(Read).
|
|
260
|
-
return this.
|
|
260
|
+
protoOf(Read).r3i = function () {
|
|
261
|
+
return this.v3i_1;
|
|
261
262
|
};
|
|
262
|
-
protoOf(Read).
|
|
263
|
-
return this.
|
|
263
|
+
protoOf(Read).q3i = function () {
|
|
264
|
+
return this.w3i_1;
|
|
264
265
|
};
|
|
265
|
-
protoOf(Read).
|
|
266
|
+
protoOf(Read).s3i = function () {
|
|
266
267
|
return 'read';
|
|
267
268
|
};
|
|
268
269
|
function Write(continuation) {
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
270
|
+
this.x3i_1 = continuation;
|
|
271
|
+
this.y3i_1 = null;
|
|
271
272
|
if (get_DEVELOPMENT_MODE()) {
|
|
272
273
|
var tmp = this;
|
|
273
274
|
// Inline function 'kotlin.also' call
|
|
274
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
275
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.x3i_1), 16));
|
|
275
276
|
stackTraceToString(this_0);
|
|
276
|
-
tmp.
|
|
277
|
+
tmp.y3i_1 = this_0;
|
|
277
278
|
}
|
|
278
279
|
}
|
|
279
|
-
protoOf(Write).
|
|
280
|
-
return this.
|
|
280
|
+
protoOf(Write).r3i = function () {
|
|
281
|
+
return this.x3i_1;
|
|
281
282
|
};
|
|
282
|
-
protoOf(Write).
|
|
283
|
-
return this.
|
|
283
|
+
protoOf(Write).q3i = function () {
|
|
284
|
+
return this.y3i_1;
|
|
284
285
|
};
|
|
285
|
-
protoOf(Write).
|
|
286
|
+
protoOf(Write).s3i = function () {
|
|
286
287
|
return 'write';
|
|
287
288
|
};
|
|
288
289
|
function moveFlushToReadBuffer($this) {
|
|
289
290
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
290
|
-
$this.
|
|
291
|
-
$this.
|
|
292
|
-
$this.
|
|
291
|
+
$this.c3j_1;
|
|
292
|
+
$this.a3j_1.s3g($this.e3j_1);
|
|
293
|
+
$this.b3j_1 = 0;
|
|
293
294
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
294
|
-
var current = $this.
|
|
295
|
+
var current = $this.d3j_1.kotlinx$atomicfu$value;
|
|
295
296
|
var tmp;
|
|
296
297
|
if (current instanceof Write) {
|
|
297
|
-
tmp = $this.
|
|
298
|
+
tmp = $this.d3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
298
299
|
} else {
|
|
299
300
|
tmp = false;
|
|
300
301
|
}
|
|
301
302
|
if (tmp) {
|
|
302
|
-
current.
|
|
303
|
+
current.t3i();
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
306
|
function closeSlot($this, cause) {
|
|
306
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
307
|
-
var continuation = $this.
|
|
307
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().n3i_1;
|
|
308
|
+
var continuation = $this.d3j_1.atomicfu$getAndSet(closeContinuation);
|
|
308
309
|
if (isInterface(continuation, Task)) {
|
|
309
|
-
continuation.
|
|
310
|
+
continuation.u3i(cause);
|
|
310
311
|
}
|
|
311
|
-
var tmp0_safe_receiver = $this.
|
|
312
|
+
var tmp0_safe_receiver = $this.h3j_1.atomicfu$getAndSet(null);
|
|
312
313
|
if (tmp0_safe_receiver == null)
|
|
313
314
|
null;
|
|
314
315
|
else
|
|
315
316
|
tmp0_safe_receiver(cause);
|
|
316
317
|
}
|
|
317
318
|
function sam$kotlinx_coroutines_DisposableHandle$0(function_0) {
|
|
318
|
-
this.
|
|
319
|
+
this.i3j_1 = function_0;
|
|
319
320
|
}
|
|
320
|
-
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).
|
|
321
|
-
return this.
|
|
321
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).u1p = function () {
|
|
322
|
+
return this.i3j_1();
|
|
322
323
|
};
|
|
323
|
-
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).
|
|
324
|
-
return this.
|
|
324
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).m3 = function () {
|
|
325
|
+
return this.i3j_1;
|
|
325
326
|
};
|
|
326
327
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
327
328
|
var tmp;
|
|
328
329
|
if (!(other == null) ? isInterface(other, DisposableHandle) : false) {
|
|
329
330
|
var tmp_0;
|
|
330
331
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
331
|
-
tmp_0 = equals(this.
|
|
332
|
+
tmp_0 = equals(this.m3(), other.m3());
|
|
332
333
|
} else {
|
|
333
334
|
tmp_0 = false;
|
|
334
335
|
}
|
|
@@ -339,7 +340,7 @@ protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
|
339
340
|
return tmp;
|
|
340
341
|
};
|
|
341
342
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).hashCode = function () {
|
|
342
|
-
return hashCode(this.
|
|
343
|
+
return hashCode(this.m3());
|
|
343
344
|
};
|
|
344
345
|
function ByteChannel$invokeOnClose$lambda() {
|
|
345
346
|
return Unit_instance;
|
|
@@ -349,56 +350,56 @@ function ByteChannel$invokeOnClose$lambda_0() {
|
|
|
349
350
|
}
|
|
350
351
|
function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
|
|
351
352
|
return function () {
|
|
352
|
-
this$0.
|
|
353
|
+
this$0.h3j_1.atomicfu$compareAndSet($handler, null);
|
|
353
354
|
return Unit_instance;
|
|
354
355
|
};
|
|
355
356
|
}
|
|
356
357
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
357
358
|
CoroutineImpl.call(this, resultContinuation);
|
|
358
|
-
this.
|
|
359
|
-
this.
|
|
359
|
+
this.r3j_1 = _this__u8e3s4;
|
|
360
|
+
this.s3j_1 = min;
|
|
360
361
|
}
|
|
361
|
-
protoOf($awaitContentCOROUTINE$).
|
|
362
|
-
var suspendResult = this.
|
|
362
|
+
protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
363
|
+
var suspendResult = this.x8_1;
|
|
363
364
|
$sm: do
|
|
364
365
|
try {
|
|
365
|
-
var tmp = this.
|
|
366
|
+
var tmp = this.v8_1;
|
|
366
367
|
switch (tmp) {
|
|
367
368
|
case 0:
|
|
368
|
-
this.
|
|
369
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
370
|
-
if (compare(this.
|
|
369
|
+
this.w8_1 = 4;
|
|
370
|
+
rethrowCloseCauseIfNeeded_0(this.r3j_1);
|
|
371
|
+
if (compare(this.r3j_1.e3j_1.e1(), fromInt(this.s3j_1)) >= 0)
|
|
371
372
|
return true;
|
|
372
|
-
this.
|
|
373
|
-
this.
|
|
373
|
+
this.t3j_1 = this.r3j_1;
|
|
374
|
+
this.v8_1 = 1;
|
|
374
375
|
continue $sm;
|
|
375
376
|
case 1:
|
|
376
|
-
if (!(compare(add(numberToLong(this.
|
|
377
|
-
this.
|
|
377
|
+
if (!(compare(add(numberToLong(this.r3j_1.b3j_1), this.r3j_1.e3j_1.e1()), fromInt(this.s3j_1)) < 0 && this.r3j_1.g3j_1.kotlinx$atomicfu$value == null)) {
|
|
378
|
+
this.v8_1 = 3;
|
|
378
379
|
continue $sm;
|
|
379
380
|
}
|
|
380
381
|
|
|
381
|
-
this.
|
|
382
|
+
this.v8_1 = 2;
|
|
382
383
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
383
|
-
cancellable.
|
|
384
|
-
var tmp0 = this.
|
|
384
|
+
cancellable.x1q();
|
|
385
|
+
var tmp0 = this.t3j_1;
|
|
385
386
|
var tmp2 = new Read(cancellable);
|
|
386
387
|
l$ret$1: do {
|
|
387
|
-
var previous = tmp0.
|
|
388
|
+
var previous = tmp0.d3j_1.kotlinx$atomicfu$value;
|
|
388
389
|
if (!(previous instanceof Closed)) {
|
|
389
|
-
if (!tmp0.
|
|
390
|
-
tmp2.
|
|
390
|
+
if (!tmp0.d3j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
391
|
+
tmp2.t3i();
|
|
391
392
|
break l$ret$1;
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
if (previous instanceof Read) {
|
|
395
|
-
previous.
|
|
396
|
+
previous.u3i(new ConcurrentIOException(tmp2.s3i(), previous.q3i()));
|
|
396
397
|
} else {
|
|
397
398
|
if (isInterface(previous, Task)) {
|
|
398
|
-
previous.
|
|
399
|
+
previous.t3i();
|
|
399
400
|
} else {
|
|
400
401
|
if (previous instanceof Closed) {
|
|
401
|
-
tmp2.
|
|
402
|
+
tmp2.u3i(previous.p3i_1);
|
|
402
403
|
break l$ret$1;
|
|
403
404
|
} else {
|
|
404
405
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -407,95 +408,95 @@ protoOf($awaitContentCOROUTINE$).v8 = function () {
|
|
|
407
408
|
}
|
|
408
409
|
}
|
|
409
410
|
}
|
|
410
|
-
if (!(compare(add(numberToLong(this.
|
|
411
|
-
var current = tmp0.
|
|
411
|
+
if (!(compare(add(numberToLong(this.r3j_1.b3j_1), this.r3j_1.e3j_1.e1()), fromInt(this.s3j_1)) < 0 && this.r3j_1.g3j_1.kotlinx$atomicfu$value == null)) {
|
|
412
|
+
var current = tmp0.d3j_1.kotlinx$atomicfu$value;
|
|
412
413
|
var tmp_0;
|
|
413
414
|
if (current instanceof Read) {
|
|
414
|
-
tmp_0 = tmp0.
|
|
415
|
+
tmp_0 = tmp0.d3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
415
416
|
} else {
|
|
416
417
|
tmp_0 = false;
|
|
417
418
|
}
|
|
418
419
|
if (tmp_0) {
|
|
419
|
-
current.
|
|
420
|
+
current.t3i();
|
|
420
421
|
}
|
|
421
422
|
}
|
|
422
423
|
}
|
|
423
424
|
while (false);
|
|
424
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
425
|
+
suspendResult = returnIfSuspended(cancellable.y1q(), this);
|
|
425
426
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
426
427
|
return suspendResult;
|
|
427
428
|
}
|
|
428
429
|
|
|
429
430
|
continue $sm;
|
|
430
431
|
case 2:
|
|
431
|
-
this.
|
|
432
|
+
this.v8_1 = 1;
|
|
432
433
|
continue $sm;
|
|
433
434
|
case 3:
|
|
434
|
-
if (compare(this.
|
|
435
|
-
moveFlushToReadBuffer(this.
|
|
435
|
+
if (compare(this.r3j_1.e3j_1.e1(), new Long(1048576, 0)) < 0) {
|
|
436
|
+
moveFlushToReadBuffer(this.r3j_1);
|
|
436
437
|
}
|
|
437
438
|
|
|
438
|
-
return compare(this.
|
|
439
|
+
return compare(this.r3j_1.e3j_1.e1(), fromInt(this.s3j_1)) >= 0;
|
|
439
440
|
case 4:
|
|
440
|
-
throw this.
|
|
441
|
+
throw this.y8_1;
|
|
441
442
|
}
|
|
442
443
|
} catch ($p) {
|
|
443
444
|
var e = $p;
|
|
444
|
-
if (this.
|
|
445
|
+
if (this.w8_1 === 4) {
|
|
445
446
|
throw e;
|
|
446
447
|
} else {
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
448
|
+
this.v8_1 = this.w8_1;
|
|
449
|
+
this.y8_1 = e;
|
|
449
450
|
}
|
|
450
451
|
}
|
|
451
452
|
while (true);
|
|
452
453
|
};
|
|
453
454
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
454
455
|
CoroutineImpl.call(this, resultContinuation);
|
|
455
|
-
this.
|
|
456
|
+
this.c3k_1 = _this__u8e3s4;
|
|
456
457
|
}
|
|
457
|
-
protoOf($flushCOROUTINE$).
|
|
458
|
-
var suspendResult = this.
|
|
458
|
+
protoOf($flushCOROUTINE$).d9 = function () {
|
|
459
|
+
var suspendResult = this.x8_1;
|
|
459
460
|
$sm: do
|
|
460
461
|
try {
|
|
461
|
-
var tmp = this.
|
|
462
|
+
var tmp = this.v8_1;
|
|
462
463
|
switch (tmp) {
|
|
463
464
|
case 0:
|
|
464
|
-
this.
|
|
465
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
466
|
-
this.
|
|
467
|
-
if (this.
|
|
465
|
+
this.w8_1 = 4;
|
|
466
|
+
rethrowCloseCauseIfNeeded_0(this.c3k_1);
|
|
467
|
+
this.c3k_1.e3k();
|
|
468
|
+
if (this.c3k_1.f3k())
|
|
468
469
|
return Unit_instance;
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
470
|
+
this.d3k_1 = this.c3k_1;
|
|
471
|
+
this.v8_1 = 1;
|
|
471
472
|
continue $sm;
|
|
472
473
|
case 1:
|
|
473
|
-
if (!(!this.
|
|
474
|
-
this.
|
|
474
|
+
if (!(!this.c3k_1.f3k() && this.c3k_1.g3j_1.kotlinx$atomicfu$value == null)) {
|
|
475
|
+
this.v8_1 = 3;
|
|
475
476
|
continue $sm;
|
|
476
477
|
}
|
|
477
478
|
|
|
478
|
-
this.
|
|
479
|
+
this.v8_1 = 2;
|
|
479
480
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
480
|
-
cancellable.
|
|
481
|
-
var tmp0 = this.
|
|
481
|
+
cancellable.x1q();
|
|
482
|
+
var tmp0 = this.d3k_1;
|
|
482
483
|
var tmp2 = new Write(cancellable);
|
|
483
484
|
l$ret$1: do {
|
|
484
|
-
var previous = tmp0.
|
|
485
|
+
var previous = tmp0.d3j_1.kotlinx$atomicfu$value;
|
|
485
486
|
if (!(previous instanceof Closed)) {
|
|
486
|
-
if (!tmp0.
|
|
487
|
-
tmp2.
|
|
487
|
+
if (!tmp0.d3j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
488
|
+
tmp2.t3i();
|
|
488
489
|
break l$ret$1;
|
|
489
490
|
}
|
|
490
491
|
}
|
|
491
492
|
if (previous instanceof Write) {
|
|
492
|
-
previous.
|
|
493
|
+
previous.u3i(new ConcurrentIOException(tmp2.s3i(), previous.q3i()));
|
|
493
494
|
} else {
|
|
494
495
|
if (isInterface(previous, Task)) {
|
|
495
|
-
previous.
|
|
496
|
+
previous.t3i();
|
|
496
497
|
} else {
|
|
497
498
|
if (previous instanceof Closed) {
|
|
498
|
-
tmp2.
|
|
499
|
+
tmp2.u3i(previous.p3i_1);
|
|
499
500
|
break l$ret$1;
|
|
500
501
|
} else {
|
|
501
502
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -504,62 +505,62 @@ protoOf($flushCOROUTINE$).v8 = function () {
|
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
507
|
}
|
|
507
|
-
if (!(!this.
|
|
508
|
-
var current = tmp0.
|
|
508
|
+
if (!(!this.c3k_1.f3k() && this.c3k_1.g3j_1.kotlinx$atomicfu$value == null)) {
|
|
509
|
+
var current = tmp0.d3j_1.kotlinx$atomicfu$value;
|
|
509
510
|
var tmp_0;
|
|
510
511
|
if (current instanceof Write) {
|
|
511
|
-
tmp_0 = tmp0.
|
|
512
|
+
tmp_0 = tmp0.d3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
512
513
|
} else {
|
|
513
514
|
tmp_0 = false;
|
|
514
515
|
}
|
|
515
516
|
if (tmp_0) {
|
|
516
|
-
current.
|
|
517
|
+
current.t3i();
|
|
517
518
|
}
|
|
518
519
|
}
|
|
519
520
|
}
|
|
520
521
|
while (false);
|
|
521
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
522
|
+
suspendResult = returnIfSuspended(cancellable.y1q(), this);
|
|
522
523
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
524
|
return suspendResult;
|
|
524
525
|
}
|
|
525
526
|
|
|
526
527
|
continue $sm;
|
|
527
528
|
case 2:
|
|
528
|
-
this.
|
|
529
|
+
this.v8_1 = 1;
|
|
529
530
|
continue $sm;
|
|
530
531
|
case 3:
|
|
531
532
|
return Unit_instance;
|
|
532
533
|
case 4:
|
|
533
|
-
throw this.
|
|
534
|
+
throw this.y8_1;
|
|
534
535
|
}
|
|
535
536
|
} catch ($p) {
|
|
536
537
|
var e = $p;
|
|
537
|
-
if (this.
|
|
538
|
+
if (this.w8_1 === 4) {
|
|
538
539
|
throw e;
|
|
539
540
|
} else {
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
541
|
+
this.v8_1 = this.w8_1;
|
|
542
|
+
this.y8_1 = e;
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
545
|
while (true);
|
|
545
546
|
};
|
|
546
547
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
547
548
|
CoroutineImpl.call(this, resultContinuation);
|
|
548
|
-
this.
|
|
549
|
+
this.o3k_1 = _this__u8e3s4;
|
|
549
550
|
}
|
|
550
|
-
protoOf($flushAndCloseCOROUTINE$).
|
|
551
|
-
var suspendResult = this.
|
|
551
|
+
protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
552
|
+
var suspendResult = this.x8_1;
|
|
552
553
|
$sm: do
|
|
553
554
|
try {
|
|
554
|
-
var tmp = this.
|
|
555
|
+
var tmp = this.v8_1;
|
|
555
556
|
switch (tmp) {
|
|
556
557
|
case 0:
|
|
557
|
-
this.
|
|
558
|
-
var this_0 = this.
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
562
|
-
suspendResult = this_0.
|
|
558
|
+
this.w8_1 = 4;
|
|
559
|
+
var this_0 = this.o3k_1;
|
|
560
|
+
this.w8_1 = 2;
|
|
561
|
+
this.q3k_1 = Companion_instance;
|
|
562
|
+
this.v8_1 = 1;
|
|
563
|
+
suspendResult = this_0.r3k(this);
|
|
563
564
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
564
565
|
return suspendResult;
|
|
565
566
|
}
|
|
@@ -567,64 +568,64 @@ protoOf($flushAndCloseCOROUTINE$).v8 = function () {
|
|
|
567
568
|
continue $sm;
|
|
568
569
|
case 1:
|
|
569
570
|
var tmp_0 = this;
|
|
570
|
-
this.
|
|
571
|
-
tmp_0.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
571
|
+
this.q3k_1;
|
|
572
|
+
tmp_0.p3k_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
573
|
+
this.w8_1 = 4;
|
|
574
|
+
this.v8_1 = 3;
|
|
574
575
|
continue $sm;
|
|
575
576
|
case 2:
|
|
576
|
-
this.
|
|
577
|
-
var tmp_1 = this.
|
|
577
|
+
this.w8_1 = 4;
|
|
578
|
+
var tmp_1 = this.y8_1;
|
|
578
579
|
if (tmp_1 instanceof Error) {
|
|
579
|
-
var e = this.
|
|
580
|
+
var e = this.y8_1;
|
|
580
581
|
var tmp_2 = this;
|
|
581
|
-
tmp_2.
|
|
582
|
-
this.
|
|
582
|
+
tmp_2.p3k_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
583
|
+
this.v8_1 = 3;
|
|
583
584
|
continue $sm;
|
|
584
585
|
} else {
|
|
585
|
-
throw this.
|
|
586
|
+
throw this.y8_1;
|
|
586
587
|
}
|
|
587
588
|
|
|
588
589
|
case 3:
|
|
589
|
-
this.
|
|
590
|
-
if (!this.
|
|
590
|
+
this.w8_1 = 4;
|
|
591
|
+
if (!this.o3k_1.g3j_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
591
592
|
return Unit_instance;
|
|
592
|
-
closeSlot(this.
|
|
593
|
+
closeSlot(this.o3k_1, null);
|
|
593
594
|
return Unit_instance;
|
|
594
595
|
case 4:
|
|
595
|
-
throw this.
|
|
596
|
+
throw this.y8_1;
|
|
596
597
|
}
|
|
597
598
|
} catch ($p) {
|
|
598
599
|
var e_0 = $p;
|
|
599
|
-
if (this.
|
|
600
|
+
if (this.w8_1 === 4) {
|
|
600
601
|
throw e_0;
|
|
601
602
|
} else {
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
603
|
+
this.v8_1 = this.w8_1;
|
|
604
|
+
this.y8_1 = e_0;
|
|
604
605
|
}
|
|
605
606
|
}
|
|
606
607
|
while (true);
|
|
607
608
|
};
|
|
608
609
|
function ByteChannel(autoFlush) {
|
|
609
610
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
}
|
|
620
|
-
protoOf(ByteChannel).
|
|
621
|
-
return this.
|
|
622
|
-
};
|
|
623
|
-
protoOf(ByteChannel).
|
|
624
|
-
return this.
|
|
625
|
-
};
|
|
626
|
-
protoOf(ByteChannel).
|
|
627
|
-
var tmp0_safe_receiver = this.
|
|
611
|
+
this.z3i_1 = autoFlush;
|
|
612
|
+
this.a3j_1 = new Buffer();
|
|
613
|
+
this.b3j_1 = 0;
|
|
614
|
+
this.c3j_1 = new Object();
|
|
615
|
+
this.d3j_1 = atomic$ref$1(Empty_instance);
|
|
616
|
+
this.e3j_1 = new Buffer();
|
|
617
|
+
this.f3j_1 = new Buffer();
|
|
618
|
+
this.g3j_1 = atomic$ref$1(null);
|
|
619
|
+
this.h3j_1 = atomic$ref$1(null);
|
|
620
|
+
}
|
|
621
|
+
protoOf(ByteChannel).s3k = function () {
|
|
622
|
+
return this.z3i_1;
|
|
623
|
+
};
|
|
624
|
+
protoOf(ByteChannel).f3k = function () {
|
|
625
|
+
return this.b3j_1 < 1048576;
|
|
626
|
+
};
|
|
627
|
+
protoOf(ByteChannel).t3k = function () {
|
|
628
|
+
var tmp0_safe_receiver = this.g3j_1.kotlinx$atomicfu$value;
|
|
628
629
|
if (tmp0_safe_receiver == null)
|
|
629
630
|
null;
|
|
630
631
|
else {
|
|
@@ -636,7 +637,7 @@ protoOf(ByteChannel).h33 = function () {
|
|
|
636
637
|
tmp = null;
|
|
637
638
|
} else {
|
|
638
639
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
639
|
-
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
640
|
+
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).o1v();
|
|
640
641
|
} else {
|
|
641
642
|
if (tmp0_subject instanceof CancellationException) {
|
|
642
643
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -655,14 +656,14 @@ protoOf(ByteChannel).h33 = function () {
|
|
|
655
656
|
throw tmp0_safe_receiver_0;
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
|
-
if (this.
|
|
659
|
+
if (this.e3j_1.p3f()) {
|
|
659
660
|
moveFlushToReadBuffer(this);
|
|
660
661
|
}
|
|
661
|
-
return this.
|
|
662
|
+
return this.e3j_1;
|
|
662
663
|
};
|
|
663
|
-
protoOf(ByteChannel).
|
|
664
|
-
if (this.
|
|
665
|
-
var tmp0_safe_receiver = this.
|
|
664
|
+
protoOf(ByteChannel).u3k = function () {
|
|
665
|
+
if (this.v3k()) {
|
|
666
|
+
var tmp0_safe_receiver = this.g3j_1.kotlinx$atomicfu$value;
|
|
666
667
|
var tmp;
|
|
667
668
|
if (tmp0_safe_receiver == null) {
|
|
668
669
|
tmp = null;
|
|
@@ -675,7 +676,7 @@ protoOf(ByteChannel).i33 = function () {
|
|
|
675
676
|
tmp_0 = null;
|
|
676
677
|
} else {
|
|
677
678
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
678
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
679
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).o1v();
|
|
679
680
|
} else {
|
|
680
681
|
if (tmp0_subject instanceof CancellationException) {
|
|
681
682
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -698,10 +699,10 @@ protoOf(ByteChannel).i33 = function () {
|
|
|
698
699
|
if (tmp == null)
|
|
699
700
|
throw new ClosedWriteChannelException();
|
|
700
701
|
}
|
|
701
|
-
return this.
|
|
702
|
+
return this.f3j_1;
|
|
702
703
|
};
|
|
703
|
-
protoOf(ByteChannel).
|
|
704
|
-
var tmp0_safe_receiver = this.
|
|
704
|
+
protoOf(ByteChannel).w3k = function () {
|
|
705
|
+
var tmp0_safe_receiver = this.g3j_1.kotlinx$atomicfu$value;
|
|
705
706
|
var tmp;
|
|
706
707
|
if (tmp0_safe_receiver == null) {
|
|
707
708
|
tmp = null;
|
|
@@ -713,7 +714,7 @@ protoOf(ByteChannel).k33 = function () {
|
|
|
713
714
|
tmp_0 = null;
|
|
714
715
|
} else {
|
|
715
716
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
716
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
717
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).o1v();
|
|
717
718
|
} else {
|
|
718
719
|
if (tmp0_subject instanceof CancellationException) {
|
|
719
720
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -727,61 +728,61 @@ protoOf(ByteChannel).k33 = function () {
|
|
|
727
728
|
}
|
|
728
729
|
return tmp;
|
|
729
730
|
};
|
|
730
|
-
protoOf(ByteChannel).
|
|
731
|
-
return !(this.
|
|
731
|
+
protoOf(ByteChannel).v3k = function () {
|
|
732
|
+
return !(this.g3j_1.kotlinx$atomicfu$value == null);
|
|
732
733
|
};
|
|
733
|
-
protoOf(ByteChannel).
|
|
734
|
-
return !(this.
|
|
734
|
+
protoOf(ByteChannel).x3k = function () {
|
|
735
|
+
return !(this.w3k() == null) || (this.v3k() && this.b3j_1 === 0 && this.e3j_1.p3f());
|
|
735
736
|
};
|
|
736
|
-
protoOf(ByteChannel).
|
|
737
|
+
protoOf(ByteChannel).y3k = function (min, $completion) {
|
|
737
738
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
738
|
-
tmp.
|
|
739
|
-
tmp.
|
|
740
|
-
return tmp.
|
|
739
|
+
tmp.x8_1 = Unit_instance;
|
|
740
|
+
tmp.y8_1 = null;
|
|
741
|
+
return tmp.d9();
|
|
741
742
|
};
|
|
742
|
-
protoOf(ByteChannel).
|
|
743
|
+
protoOf(ByteChannel).r3k = function ($completion) {
|
|
743
744
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
744
|
-
tmp.
|
|
745
|
-
tmp.
|
|
746
|
-
return tmp.
|
|
745
|
+
tmp.x8_1 = Unit_instance;
|
|
746
|
+
tmp.y8_1 = null;
|
|
747
|
+
return tmp.d9();
|
|
747
748
|
};
|
|
748
|
-
protoOf(ByteChannel).
|
|
749
|
-
if (this.
|
|
749
|
+
protoOf(ByteChannel).e3k = function () {
|
|
750
|
+
if (this.f3j_1.p3f())
|
|
750
751
|
return Unit_instance;
|
|
751
752
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
752
|
-
this.
|
|
753
|
-
var count = convertToInt(this.
|
|
754
|
-
this.
|
|
755
|
-
this.
|
|
753
|
+
this.c3j_1;
|
|
754
|
+
var count = convertToInt(this.f3j_1.e1());
|
|
755
|
+
this.a3j_1.h3h(this.f3j_1);
|
|
756
|
+
this.b3j_1 = this.b3j_1 + count | 0;
|
|
756
757
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
757
|
-
var current = this.
|
|
758
|
+
var current = this.d3j_1.kotlinx$atomicfu$value;
|
|
758
759
|
var tmp;
|
|
759
760
|
if (current instanceof Read) {
|
|
760
|
-
tmp = this.
|
|
761
|
+
tmp = this.d3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
761
762
|
} else {
|
|
762
763
|
tmp = false;
|
|
763
764
|
}
|
|
764
765
|
if (tmp) {
|
|
765
|
-
current.
|
|
766
|
+
current.t3i();
|
|
766
767
|
}
|
|
767
768
|
};
|
|
768
|
-
protoOf(ByteChannel).
|
|
769
|
-
this.
|
|
770
|
-
if (!this.
|
|
769
|
+
protoOf(ByteChannel).d4 = function () {
|
|
770
|
+
this.e3k();
|
|
771
|
+
if (!this.g3j_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
771
772
|
return Unit_instance;
|
|
772
773
|
closeSlot(this, null);
|
|
773
774
|
};
|
|
774
|
-
protoOf(ByteChannel).
|
|
775
|
+
protoOf(ByteChannel).a3l = function ($completion) {
|
|
775
776
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
776
|
-
tmp.
|
|
777
|
-
tmp.
|
|
778
|
-
return tmp.
|
|
777
|
+
tmp.x8_1 = Unit_instance;
|
|
778
|
+
tmp.y8_1 = null;
|
|
779
|
+
return tmp.d9();
|
|
779
780
|
};
|
|
780
|
-
protoOf(ByteChannel).
|
|
781
|
-
if (!(this.
|
|
781
|
+
protoOf(ByteChannel).b3l = function (cause) {
|
|
782
|
+
if (!(this.g3j_1.kotlinx$atomicfu$value == null))
|
|
782
783
|
return Unit_instance;
|
|
783
784
|
var closedToken = new CloseToken(cause);
|
|
784
|
-
this.
|
|
785
|
+
this.g3j_1.atomicfu$compareAndSet(null, closedToken);
|
|
785
786
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
786
787
|
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
787
788
|
var tmp;
|
|
@@ -789,7 +790,7 @@ protoOf(ByteChannel).p33 = function (cause) {
|
|
|
789
790
|
tmp = null;
|
|
790
791
|
} else {
|
|
791
792
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
792
|
-
tmp = access$_get_origin__hdh1qz(closedToken).
|
|
793
|
+
tmp = access$_get_origin__hdh1qz(closedToken).o1v();
|
|
793
794
|
} else {
|
|
794
795
|
if (tmp0_subject instanceof CancellationException) {
|
|
795
796
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(closedToken).message, access$_get_origin__hdh1qz(closedToken));
|
|
@@ -802,8 +803,8 @@ protoOf(ByteChannel).p33 = function (cause) {
|
|
|
802
803
|
var wrappedCause = tmp;
|
|
803
804
|
closeSlot(this, wrappedCause);
|
|
804
805
|
};
|
|
805
|
-
protoOf(ByteChannel).
|
|
806
|
-
var existingCause = this.
|
|
806
|
+
protoOf(ByteChannel).c3l = function (handler) {
|
|
807
|
+
var existingCause = this.g3j_1.kotlinx$atomicfu$value;
|
|
807
808
|
if (!(existingCause == null)) {
|
|
808
809
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
809
810
|
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
@@ -812,7 +813,7 @@ protoOf(ByteChannel).q33 = function (handler) {
|
|
|
812
813
|
tmp = null;
|
|
813
814
|
} else {
|
|
814
815
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
815
|
-
tmp = access$_get_origin__hdh1qz(existingCause).
|
|
816
|
+
tmp = access$_get_origin__hdh1qz(existingCause).o1v();
|
|
816
817
|
} else {
|
|
817
818
|
if (tmp0_subject instanceof CancellationException) {
|
|
818
819
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(existingCause).message, access$_get_origin__hdh1qz(existingCause));
|
|
@@ -826,13 +827,13 @@ protoOf(ByteChannel).q33 = function (handler) {
|
|
|
826
827
|
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
827
828
|
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
828
829
|
}
|
|
829
|
-
if (!this.
|
|
830
|
+
if (!this.h3j_1.atomicfu$compareAndSet(null, handler)) {
|
|
830
831
|
// Inline function 'kotlin.error' call
|
|
831
832
|
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
832
833
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
833
834
|
}
|
|
834
|
-
var cause = this.
|
|
835
|
-
if (!(cause == null) && this.
|
|
835
|
+
var cause = this.g3j_1.kotlinx$atomicfu$value;
|
|
836
|
+
if (!(cause == null) && this.h3j_1.atomicfu$compareAndSet(handler, null)) {
|
|
836
837
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
837
838
|
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
838
839
|
var tmp_1;
|
|
@@ -840,7 +841,7 @@ protoOf(ByteChannel).q33 = function (handler) {
|
|
|
840
841
|
tmp_1 = null;
|
|
841
842
|
} else {
|
|
842
843
|
if (isInterface(tmp0_subject_0, CopyableThrowable)) {
|
|
843
|
-
tmp_1 = access$_get_origin__hdh1qz(cause).
|
|
844
|
+
tmp_1 = access$_get_origin__hdh1qz(cause).o1v();
|
|
844
845
|
} else {
|
|
845
846
|
if (tmp0_subject_0 instanceof CancellationException) {
|
|
846
847
|
tmp_1 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(cause).message, access$_get_origin__hdh1qz(cause));
|
|
@@ -870,7 +871,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
870
871
|
length = length === VOID ? content.length : length;
|
|
871
872
|
// Inline function 'kotlin.also' call
|
|
872
873
|
var this_0 = new Buffer();
|
|
873
|
-
this_0.
|
|
874
|
+
this_0.y3g(content, offset, offset + length | 0);
|
|
874
875
|
var source = this_0;
|
|
875
876
|
return ByteReadChannel_0(source);
|
|
876
877
|
}
|
|
@@ -878,18 +879,18 @@ function ByteReadChannel_0(source) {
|
|
|
878
879
|
return new SourceByteReadChannel(source);
|
|
879
880
|
}
|
|
880
881
|
function buildPartialMatchTable($this) {
|
|
881
|
-
var table = new Int32Array($this.
|
|
882
|
+
var table = new Int32Array($this.e3l_1.e1());
|
|
882
883
|
var j = 0;
|
|
883
884
|
var inductionVariable = 1;
|
|
884
|
-
var last = $this.
|
|
885
|
+
var last = $this.e3l_1.e1();
|
|
885
886
|
if (inductionVariable < last)
|
|
886
887
|
do {
|
|
887
888
|
var i = inductionVariable;
|
|
888
889
|
inductionVariable = inductionVariable + 1 | 0;
|
|
889
|
-
while (j > 0 && !($this.
|
|
890
|
+
while (j > 0 && !($this.e3l_1.f1(i) === $this.e3l_1.f1(j))) {
|
|
890
891
|
j = table[j - 1 | 0];
|
|
891
892
|
}
|
|
892
|
-
if ($this.
|
|
893
|
+
if ($this.e3l_1.f1(i) === $this.e3l_1.f1(j)) {
|
|
893
894
|
j = j + 1 | 0;
|
|
894
895
|
}
|
|
895
896
|
table[i] = j;
|
|
@@ -899,19 +900,19 @@ function buildPartialMatchTable($this) {
|
|
|
899
900
|
}
|
|
900
901
|
function advanceToNextPotentialMatch($this, $completion) {
|
|
901
902
|
var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
|
|
902
|
-
tmp.
|
|
903
|
-
tmp.
|
|
904
|
-
return tmp.
|
|
903
|
+
tmp.x8_1 = Unit_instance;
|
|
904
|
+
tmp.y8_1 = null;
|
|
905
|
+
return tmp.d9();
|
|
905
906
|
}
|
|
906
907
|
function checkFullMatch($this, $completion) {
|
|
907
908
|
var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
|
|
908
|
-
tmp.
|
|
909
|
-
tmp.
|
|
910
|
-
return tmp.
|
|
909
|
+
tmp.x8_1 = Unit_instance;
|
|
910
|
+
tmp.y8_1 = null;
|
|
911
|
+
return tmp.d9();
|
|
911
912
|
}
|
|
912
913
|
function checkBounds($this, extra) {
|
|
913
|
-
if (compare(add($this.
|
|
914
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
914
|
+
if (compare(add($this.k3l_1, extra), $this.g3l_1) > 0) {
|
|
915
|
+
throw IOException_init_$Create$('Limit of ' + $this.g3l_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.e3l_1) + '"'));
|
|
915
916
|
}
|
|
916
917
|
}
|
|
917
918
|
function toSingleLineString($this, $receiver) {
|
|
@@ -919,28 +920,28 @@ function toSingleLineString($this, $receiver) {
|
|
|
919
920
|
}
|
|
920
921
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
921
922
|
CoroutineImpl.call(this, resultContinuation);
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
923
|
+
this.p3m_1 = _this__u8e3s4;
|
|
924
|
+
this.q3m_1 = ignoreMissing;
|
|
924
925
|
}
|
|
925
|
-
protoOf($findNextCOROUTINE$).
|
|
926
|
-
var suspendResult = this.
|
|
926
|
+
protoOf($findNextCOROUTINE$).d9 = function () {
|
|
927
|
+
var suspendResult = this.x8_1;
|
|
927
928
|
$sm: do
|
|
928
929
|
try {
|
|
929
|
-
var tmp = this.
|
|
930
|
+
var tmp = this.v8_1;
|
|
930
931
|
switch (tmp) {
|
|
931
932
|
case 0:
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
934
|
-
this.
|
|
933
|
+
this.w8_1 = 9;
|
|
934
|
+
this.p3m_1.k3l_1 = new Long(0, 0);
|
|
935
|
+
this.v8_1 = 1;
|
|
935
936
|
continue $sm;
|
|
936
937
|
case 1:
|
|
937
|
-
if (!this.
|
|
938
|
-
this.
|
|
939
|
-
this.
|
|
938
|
+
if (!this.p3m_1.h3l_1.p3f()) {
|
|
939
|
+
this.r3m_1 = true;
|
|
940
|
+
this.v8_1 = 3;
|
|
940
941
|
continue $sm;
|
|
941
942
|
} else {
|
|
942
|
-
this.
|
|
943
|
-
suspendResult = this.
|
|
943
|
+
this.v8_1 = 2;
|
|
944
|
+
suspendResult = this.p3m_1.d3l_1.z3k(VOID, this);
|
|
944
945
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
945
946
|
return suspendResult;
|
|
946
947
|
}
|
|
@@ -948,25 +949,25 @@ protoOf($findNextCOROUTINE$).v8 = function () {
|
|
|
948
949
|
}
|
|
949
950
|
|
|
950
951
|
case 2:
|
|
951
|
-
this.
|
|
952
|
-
this.
|
|
952
|
+
this.r3m_1 = suspendResult;
|
|
953
|
+
this.v8_1 = 3;
|
|
953
954
|
continue $sm;
|
|
954
955
|
case 3:
|
|
955
|
-
if (!this.
|
|
956
|
-
this.
|
|
956
|
+
if (!this.r3m_1) {
|
|
957
|
+
this.v8_1 = 7;
|
|
957
958
|
continue $sm;
|
|
958
959
|
}
|
|
959
960
|
|
|
960
|
-
this.
|
|
961
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
961
|
+
this.v8_1 = 4;
|
|
962
|
+
suspendResult = advanceToNextPotentialMatch(this.p3m_1, this);
|
|
962
963
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
963
964
|
return suspendResult;
|
|
964
965
|
}
|
|
965
966
|
|
|
966
967
|
continue $sm;
|
|
967
968
|
case 4:
|
|
968
|
-
this.
|
|
969
|
-
suspendResult = checkFullMatch(this.
|
|
969
|
+
this.v8_1 = 5;
|
|
970
|
+
suspendResult = checkFullMatch(this.p3m_1, this);
|
|
970
971
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
971
972
|
return suspendResult;
|
|
972
973
|
}
|
|
@@ -974,66 +975,66 @@ protoOf($findNextCOROUTINE$).v8 = function () {
|
|
|
974
975
|
continue $sm;
|
|
975
976
|
case 5:
|
|
976
977
|
if (suspendResult) {
|
|
977
|
-
return this.
|
|
978
|
+
return this.p3m_1.k3l_1;
|
|
978
979
|
} else {
|
|
979
|
-
this.
|
|
980
|
+
this.v8_1 = 6;
|
|
980
981
|
continue $sm;
|
|
981
982
|
}
|
|
982
983
|
|
|
983
984
|
case 6:
|
|
984
|
-
this.
|
|
985
|
+
this.v8_1 = 1;
|
|
985
986
|
continue $sm;
|
|
986
987
|
case 7:
|
|
987
|
-
if (!this.
|
|
988
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
988
|
+
if (!this.q3m_1) {
|
|
989
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.p3m_1, this.p3m_1.e3l_1) + '" but encountered end of input');
|
|
989
990
|
}
|
|
990
991
|
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
suspendResult = this.
|
|
992
|
+
this.p3m_1.k3l_1 = add(this.p3m_1.k3l_1, this.p3m_1.j3l_1.s3g(this.p3m_1.f3l_1.u3k()));
|
|
993
|
+
this.v8_1 = 8;
|
|
994
|
+
suspendResult = this.p3m_1.f3l_1.r3k(this);
|
|
994
995
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
995
996
|
return suspendResult;
|
|
996
997
|
}
|
|
997
998
|
|
|
998
999
|
continue $sm;
|
|
999
1000
|
case 8:
|
|
1000
|
-
return this.
|
|
1001
|
+
return this.p3m_1.k3l_1;
|
|
1001
1002
|
case 9:
|
|
1002
|
-
throw this.
|
|
1003
|
+
throw this.y8_1;
|
|
1003
1004
|
}
|
|
1004
1005
|
} catch ($p) {
|
|
1005
1006
|
var e = $p;
|
|
1006
|
-
if (this.
|
|
1007
|
+
if (this.w8_1 === 9) {
|
|
1007
1008
|
throw e;
|
|
1008
1009
|
} else {
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1010
|
+
this.v8_1 = this.w8_1;
|
|
1011
|
+
this.y8_1 = e;
|
|
1011
1012
|
}
|
|
1012
1013
|
}
|
|
1013
1014
|
while (true);
|
|
1014
1015
|
};
|
|
1015
1016
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1016
1017
|
CoroutineImpl.call(this, resultContinuation);
|
|
1017
|
-
this.
|
|
1018
|
+
this.u3l_1 = _this__u8e3s4;
|
|
1018
1019
|
}
|
|
1019
|
-
protoOf($advanceToNextPotentialMatchCOROUTINE$).
|
|
1020
|
-
var suspendResult = this.
|
|
1020
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$).d9 = function () {
|
|
1021
|
+
var suspendResult = this.x8_1;
|
|
1021
1022
|
$sm: do
|
|
1022
1023
|
try {
|
|
1023
|
-
var tmp = this.
|
|
1024
|
+
var tmp = this.v8_1;
|
|
1024
1025
|
switch (tmp) {
|
|
1025
1026
|
case 0:
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1027
|
+
this.w8_1 = 8;
|
|
1028
|
+
this.v8_1 = 1;
|
|
1028
1029
|
continue $sm;
|
|
1029
1030
|
case 1:
|
|
1030
|
-
if (!this.
|
|
1031
|
-
this.
|
|
1032
|
-
this.
|
|
1031
|
+
if (!this.u3l_1.h3l_1.p3f()) {
|
|
1032
|
+
this.v3l_1 = true;
|
|
1033
|
+
this.v8_1 = 3;
|
|
1033
1034
|
continue $sm;
|
|
1034
1035
|
} else {
|
|
1035
|
-
this.
|
|
1036
|
-
suspendResult = this.
|
|
1036
|
+
this.v8_1 = 2;
|
|
1037
|
+
suspendResult = this.u3l_1.d3l_1.z3k(VOID, this);
|
|
1037
1038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1038
1039
|
return suspendResult;
|
|
1039
1040
|
}
|
|
@@ -1041,34 +1042,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).v8 = function () {
|
|
|
1041
1042
|
}
|
|
1042
1043
|
|
|
1043
1044
|
case 2:
|
|
1044
|
-
this.
|
|
1045
|
-
this.
|
|
1045
|
+
this.v3l_1 = suspendResult;
|
|
1046
|
+
this.v8_1 = 3;
|
|
1046
1047
|
continue $sm;
|
|
1047
1048
|
case 3:
|
|
1048
|
-
if (!this.
|
|
1049
|
-
this.
|
|
1049
|
+
if (!this.v3l_1) {
|
|
1050
|
+
this.v8_1 = 7;
|
|
1050
1051
|
continue $sm;
|
|
1051
1052
|
}
|
|
1052
1053
|
|
|
1053
|
-
var nextMatch = indexOf(this.
|
|
1054
|
+
var nextMatch = indexOf(this.u3l_1.h3l_1, this.u3l_1.e3l_1.f1(0));
|
|
1054
1055
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
1055
|
-
var tmp_0 = this.
|
|
1056
|
-
checkBounds(this.
|
|
1057
|
-
this.
|
|
1058
|
-
this.
|
|
1059
|
-
suspendResult = flushIfNeeded(this.
|
|
1056
|
+
var tmp_0 = this.u3l_1.h3l_1;
|
|
1057
|
+
checkBounds(this.u3l_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).e1());
|
|
1058
|
+
this.u3l_1.k3l_1 = add(this.u3l_1.k3l_1, this.u3l_1.h3l_1.s3g(this.u3l_1.f3l_1.u3k()));
|
|
1059
|
+
this.v8_1 = 5;
|
|
1060
|
+
suspendResult = flushIfNeeded(this.u3l_1.f3l_1, this);
|
|
1060
1061
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1061
1062
|
return suspendResult;
|
|
1062
1063
|
}
|
|
1063
1064
|
continue $sm;
|
|
1064
1065
|
} else {
|
|
1065
|
-
checkBounds(this.
|
|
1066
|
-
var tmp_1 = this.
|
|
1067
|
-
var tmp_2 = this.
|
|
1068
|
-
var tmp_3 = this.
|
|
1069
|
-
tmp_1.
|
|
1070
|
-
this.
|
|
1071
|
-
suspendResult = flushIfNeeded(this.
|
|
1066
|
+
checkBounds(this.u3l_1, nextMatch);
|
|
1067
|
+
var tmp_1 = this.u3l_1;
|
|
1068
|
+
var tmp_2 = this.u3l_1.k3l_1;
|
|
1069
|
+
var tmp_3 = this.u3l_1.f3l_1.u3k();
|
|
1070
|
+
tmp_1.k3l_1 = add(tmp_2, this.u3l_1.h3l_1.p3g(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1071
|
+
this.v8_1 = 4;
|
|
1072
|
+
suspendResult = flushIfNeeded(this.u3l_1.f3l_1, this);
|
|
1072
1073
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1073
1074
|
return suspendResult;
|
|
1074
1075
|
}
|
|
@@ -1078,49 +1079,49 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).v8 = function () {
|
|
|
1078
1079
|
case 4:
|
|
1079
1080
|
return Unit_instance;
|
|
1080
1081
|
case 5:
|
|
1081
|
-
this.
|
|
1082
|
+
this.v8_1 = 6;
|
|
1082
1083
|
continue $sm;
|
|
1083
1084
|
case 6:
|
|
1084
|
-
this.
|
|
1085
|
+
this.v8_1 = 1;
|
|
1085
1086
|
continue $sm;
|
|
1086
1087
|
case 7:
|
|
1087
1088
|
return Unit_instance;
|
|
1088
1089
|
case 8:
|
|
1089
|
-
throw this.
|
|
1090
|
+
throw this.y8_1;
|
|
1090
1091
|
}
|
|
1091
1092
|
} catch ($p) {
|
|
1092
1093
|
var e = $p;
|
|
1093
|
-
if (this.
|
|
1094
|
+
if (this.w8_1 === 8) {
|
|
1094
1095
|
throw e;
|
|
1095
1096
|
} else {
|
|
1096
|
-
this.
|
|
1097
|
-
this.
|
|
1097
|
+
this.v8_1 = this.w8_1;
|
|
1098
|
+
this.y8_1 = e;
|
|
1098
1099
|
}
|
|
1099
1100
|
}
|
|
1100
1101
|
while (true);
|
|
1101
1102
|
};
|
|
1102
1103
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1103
1104
|
CoroutineImpl.call(this, resultContinuation);
|
|
1104
|
-
this.
|
|
1105
|
+
this.e3m_1 = _this__u8e3s4;
|
|
1105
1106
|
}
|
|
1106
|
-
protoOf($checkFullMatchCOROUTINE$).
|
|
1107
|
-
var suspendResult = this.
|
|
1107
|
+
protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
1108
|
+
var suspendResult = this.x8_1;
|
|
1108
1109
|
$sm: do
|
|
1109
1110
|
try {
|
|
1110
|
-
var tmp = this.
|
|
1111
|
+
var tmp = this.v8_1;
|
|
1111
1112
|
switch (tmp) {
|
|
1112
1113
|
case 0:
|
|
1113
|
-
this.
|
|
1114
|
-
this.
|
|
1114
|
+
this.w8_1 = 8;
|
|
1115
|
+
this.v8_1 = 1;
|
|
1115
1116
|
continue $sm;
|
|
1116
1117
|
case 1:
|
|
1117
|
-
if (!this.
|
|
1118
|
-
this.
|
|
1119
|
-
this.
|
|
1118
|
+
if (!this.e3m_1.h3l_1.p3f()) {
|
|
1119
|
+
this.g3m_1 = true;
|
|
1120
|
+
this.v8_1 = 3;
|
|
1120
1121
|
continue $sm;
|
|
1121
1122
|
} else {
|
|
1122
|
-
this.
|
|
1123
|
-
suspendResult = this.
|
|
1123
|
+
this.v8_1 = 2;
|
|
1124
|
+
suspendResult = this.e3m_1.d3l_1.z3k(VOID, this);
|
|
1124
1125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1125
1126
|
return suspendResult;
|
|
1126
1127
|
}
|
|
@@ -1128,139 +1129,139 @@ protoOf($checkFullMatchCOROUTINE$).v8 = function () {
|
|
|
1128
1129
|
}
|
|
1129
1130
|
|
|
1130
1131
|
case 2:
|
|
1131
|
-
this.
|
|
1132
|
-
this.
|
|
1132
|
+
this.g3m_1 = suspendResult;
|
|
1133
|
+
this.v8_1 = 3;
|
|
1133
1134
|
continue $sm;
|
|
1134
1135
|
case 3:
|
|
1135
|
-
if (!this.
|
|
1136
|
-
this.
|
|
1136
|
+
if (!this.g3m_1) {
|
|
1137
|
+
this.v8_1 = 7;
|
|
1137
1138
|
continue $sm;
|
|
1138
1139
|
}
|
|
1139
1140
|
|
|
1140
|
-
this.
|
|
1141
|
-
if (this.
|
|
1142
|
-
var oldMatchIndex = this.
|
|
1143
|
-
while (this.
|
|
1144
|
-
this.
|
|
1141
|
+
this.f3m_1 = this.e3m_1.h3l_1.s3f();
|
|
1142
|
+
if (this.e3m_1.l3l_1 > 0 && !(this.f3m_1 === this.e3m_1.e3l_1.f1(this.e3m_1.l3l_1))) {
|
|
1143
|
+
var oldMatchIndex = this.e3m_1.l3l_1;
|
|
1144
|
+
while (this.e3m_1.l3l_1 > 0 && !(this.f3m_1 === this.e3m_1.e3l_1.f1(this.e3m_1.l3l_1))) {
|
|
1145
|
+
this.e3m_1.l3l_1 = this.e3m_1.i3l_1[this.e3m_1.l3l_1 - 1 | 0];
|
|
1145
1146
|
}
|
|
1146
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
1147
|
-
checkBounds(this.
|
|
1148
|
-
var tmp_0 = this.
|
|
1149
|
-
var tmp_1 = this.
|
|
1150
|
-
var tmp_2 = this.
|
|
1151
|
-
tmp_0.
|
|
1152
|
-
if (this.
|
|
1153
|
-
this.
|
|
1154
|
-
suspendResult = writeByte(this.
|
|
1147
|
+
var retained = fromInt(oldMatchIndex - this.e3m_1.l3l_1 | 0);
|
|
1148
|
+
checkBounds(this.e3m_1, retained);
|
|
1149
|
+
var tmp_0 = this.e3m_1;
|
|
1150
|
+
var tmp_1 = this.e3m_1.k3l_1;
|
|
1151
|
+
var tmp_2 = this.e3m_1.f3l_1.u3k();
|
|
1152
|
+
tmp_0.k3l_1 = add(tmp_1, this.e3m_1.j3l_1.p3g(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1153
|
+
if (this.e3m_1.l3l_1 === 0 && !(this.f3m_1 === this.e3m_1.e3l_1.f1(this.e3m_1.l3l_1))) {
|
|
1154
|
+
this.v8_1 = 6;
|
|
1155
|
+
suspendResult = writeByte(this.e3m_1.f3l_1, this.f3m_1, this);
|
|
1155
1156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1156
1157
|
return suspendResult;
|
|
1157
1158
|
}
|
|
1158
1159
|
continue $sm;
|
|
1159
1160
|
} else {
|
|
1160
|
-
this.
|
|
1161
|
+
this.v8_1 = 4;
|
|
1161
1162
|
continue $sm;
|
|
1162
1163
|
}
|
|
1163
1164
|
} else {
|
|
1164
|
-
this.
|
|
1165
|
+
this.v8_1 = 5;
|
|
1165
1166
|
continue $sm;
|
|
1166
1167
|
}
|
|
1167
1168
|
|
|
1168
1169
|
case 4:
|
|
1169
|
-
this.
|
|
1170
|
+
this.v8_1 = 5;
|
|
1170
1171
|
continue $sm;
|
|
1171
1172
|
case 5:
|
|
1172
|
-
this.
|
|
1173
|
-
if (this.
|
|
1173
|
+
this.e3m_1.l3l_1 = this.e3m_1.l3l_1 + 1 | 0;
|
|
1174
|
+
if (this.e3m_1.l3l_1 === this.e3m_1.e3l_1.e1()) {
|
|
1174
1175
|
return true;
|
|
1175
1176
|
}
|
|
1176
1177
|
|
|
1177
|
-
this.
|
|
1178
|
-
this.
|
|
1178
|
+
this.e3m_1.j3l_1.i3h(this.f3m_1);
|
|
1179
|
+
this.v8_1 = 1;
|
|
1179
1180
|
continue $sm;
|
|
1180
1181
|
case 6:
|
|
1181
|
-
var _unary__edvuaz = this.
|
|
1182
|
-
this.
|
|
1182
|
+
var _unary__edvuaz = this.e3m_1.k3l_1;
|
|
1183
|
+
this.e3m_1.k3l_1 = add(_unary__edvuaz, get_ONE());
|
|
1183
1184
|
return false;
|
|
1184
1185
|
case 7:
|
|
1185
1186
|
return false;
|
|
1186
1187
|
case 8:
|
|
1187
|
-
throw this.
|
|
1188
|
+
throw this.y8_1;
|
|
1188
1189
|
}
|
|
1189
1190
|
} catch ($p) {
|
|
1190
1191
|
var e = $p;
|
|
1191
|
-
if (this.
|
|
1192
|
+
if (this.w8_1 === 8) {
|
|
1192
1193
|
throw e;
|
|
1193
1194
|
} else {
|
|
1194
|
-
this.
|
|
1195
|
-
this.
|
|
1195
|
+
this.v8_1 = this.w8_1;
|
|
1196
|
+
this.y8_1 = e;
|
|
1196
1197
|
}
|
|
1197
1198
|
}
|
|
1198
1199
|
while (true);
|
|
1199
1200
|
};
|
|
1200
1201
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1201
1202
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1202
|
-
this.
|
|
1203
|
-
this.
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1203
|
+
this.d3l_1 = channel;
|
|
1204
|
+
this.e3l_1 = matchString;
|
|
1205
|
+
this.f3l_1 = writeChannel;
|
|
1206
|
+
this.g3l_1 = limit;
|
|
1206
1207
|
// Inline function 'kotlin.require' call
|
|
1207
|
-
if (!(this.
|
|
1208
|
+
if (!(this.e3l_1.e1() > 0)) {
|
|
1208
1209
|
var message = 'Empty match string not permitted for scanning';
|
|
1209
1210
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1210
1211
|
}
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1212
|
+
this.h3l_1 = this.d3l_1.t3k();
|
|
1213
|
+
this.i3l_1 = buildPartialMatchTable(this);
|
|
1214
|
+
this.j3l_1 = new Buffer();
|
|
1215
|
+
this.k3l_1 = new Long(0, 0);
|
|
1216
|
+
this.l3l_1 = 0;
|
|
1216
1217
|
}
|
|
1217
|
-
protoOf(ByteChannelScanner).
|
|
1218
|
+
protoOf(ByteChannelScanner).s3m = function (ignoreMissing, $completion) {
|
|
1218
1219
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1219
|
-
tmp.
|
|
1220
|
-
tmp.
|
|
1221
|
-
return tmp.
|
|
1220
|
+
tmp.x8_1 = Unit_instance;
|
|
1221
|
+
tmp.y8_1 = null;
|
|
1222
|
+
return tmp.d9();
|
|
1222
1223
|
};
|
|
1223
1224
|
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1224
|
-
var tmp = writerJob.
|
|
1225
|
+
var tmp = writerJob.t3m_1;
|
|
1225
1226
|
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1226
1227
|
if (tmp0_safe_receiver == null)
|
|
1227
1228
|
null;
|
|
1228
1229
|
else {
|
|
1229
|
-
tmp0_safe_receiver.
|
|
1230
|
+
tmp0_safe_receiver.c3l(attachWriterJob$lambda(_this__u8e3s4));
|
|
1230
1231
|
}
|
|
1231
1232
|
}
|
|
1232
1233
|
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1233
1234
|
return function (cause) {
|
|
1234
1235
|
var tmp;
|
|
1235
1236
|
if (!(cause == null)) {
|
|
1236
|
-
$this_attachWriterJob.
|
|
1237
|
+
$this_attachWriterJob.b3l(cause);
|
|
1237
1238
|
tmp = Unit_instance;
|
|
1238
1239
|
}
|
|
1239
1240
|
return Unit_instance;
|
|
1240
1241
|
};
|
|
1241
1242
|
}
|
|
1242
1243
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1244
|
+
this.v3m_1 = null;
|
|
1245
|
+
this.w3m_1 = new Buffer();
|
|
1245
1246
|
}
|
|
1246
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1247
|
-
return this.
|
|
1247
|
+
protoOf(ByteReadChannel$Companion$Empty$1).w3k = function () {
|
|
1248
|
+
return this.v3m_1;
|
|
1248
1249
|
};
|
|
1249
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1250
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x3k = function () {
|
|
1250
1251
|
return true;
|
|
1251
1252
|
};
|
|
1252
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1253
|
-
return this.
|
|
1253
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t3k = function () {
|
|
1254
|
+
return this.w3m_1;
|
|
1254
1255
|
};
|
|
1255
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1256
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y3k = function (min, $completion) {
|
|
1256
1257
|
return false;
|
|
1257
1258
|
};
|
|
1258
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1259
|
+
protoOf(ByteReadChannel$Companion$Empty$1).b3l = function (cause) {
|
|
1259
1260
|
};
|
|
1260
1261
|
function Companion_0() {
|
|
1261
1262
|
Companion_instance_1 = this;
|
|
1262
1263
|
var tmp = this;
|
|
1263
|
-
tmp.
|
|
1264
|
+
tmp.x3m_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1264
1265
|
}
|
|
1265
1266
|
var Companion_instance_1;
|
|
1266
1267
|
function Companion_getInstance_0() {
|
|
@@ -1271,43 +1272,43 @@ function Companion_getInstance_0() {
|
|
|
1271
1272
|
function ByteReadChannel_1() {
|
|
1272
1273
|
}
|
|
1273
1274
|
function cancel_0(_this__u8e3s4) {
|
|
1274
|
-
_this__u8e3s4.
|
|
1275
|
+
_this__u8e3s4.b3l(IOException_init_$Create$('Channel was cancelled'));
|
|
1275
1276
|
}
|
|
1276
1277
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1277
1278
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
1278
|
-
tmp.
|
|
1279
|
-
tmp.
|
|
1280
|
-
return tmp.
|
|
1279
|
+
tmp.x8_1 = Unit_instance;
|
|
1280
|
+
tmp.y8_1 = null;
|
|
1281
|
+
return tmp.d9();
|
|
1281
1282
|
}
|
|
1282
1283
|
function discard(_this__u8e3s4, max, $completion) {
|
|
1283
1284
|
max = max === VOID ? new Long(-1, 2147483647) : max;
|
|
1284
1285
|
var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
|
|
1285
|
-
tmp.
|
|
1286
|
-
tmp.
|
|
1287
|
-
return tmp.
|
|
1286
|
+
tmp.x8_1 = Unit_instance;
|
|
1287
|
+
tmp.y8_1 = null;
|
|
1288
|
+
return tmp.d9();
|
|
1288
1289
|
}
|
|
1289
1290
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1290
1291
|
offset = offset === VOID ? 0 : offset;
|
|
1291
1292
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1292
1293
|
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1293
|
-
tmp.
|
|
1294
|
-
tmp.
|
|
1295
|
-
return tmp.
|
|
1294
|
+
tmp.x8_1 = Unit_instance;
|
|
1295
|
+
tmp.y8_1 = null;
|
|
1296
|
+
return tmp.d9();
|
|
1296
1297
|
}
|
|
1297
1298
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
1298
1299
|
var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
|
|
1299
|
-
tmp.
|
|
1300
|
-
tmp.
|
|
1301
|
-
return tmp.
|
|
1300
|
+
tmp.x8_1 = Unit_instance;
|
|
1301
|
+
tmp.y8_1 = null;
|
|
1302
|
+
return tmp.d9();
|
|
1302
1303
|
}
|
|
1303
1304
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
1304
1305
|
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
|
|
1305
|
-
tmp.
|
|
1306
|
-
tmp.
|
|
1307
|
-
return tmp.
|
|
1306
|
+
tmp.x8_1 = Unit_instance;
|
|
1307
|
+
tmp.y8_1 = null;
|
|
1308
|
+
return tmp.d9();
|
|
1308
1309
|
}
|
|
1309
1310
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1310
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1311
|
+
var tmp0_safe_receiver = _this__u8e3s4.w3k();
|
|
1311
1312
|
if (tmp0_safe_receiver == null)
|
|
1312
1313
|
null;
|
|
1313
1314
|
else {
|
|
@@ -1317,20 +1318,20 @@ function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
|
1317
1318
|
}
|
|
1318
1319
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1319
1320
|
var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
|
|
1320
|
-
tmp.
|
|
1321
|
-
tmp.
|
|
1322
|
-
return tmp.
|
|
1321
|
+
tmp.x8_1 = Unit_instance;
|
|
1322
|
+
tmp.y8_1 = null;
|
|
1323
|
+
return tmp.d9();
|
|
1323
1324
|
}
|
|
1324
1325
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
1325
1326
|
var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
|
|
1326
|
-
tmp.
|
|
1327
|
-
tmp.
|
|
1328
|
-
return tmp.
|
|
1327
|
+
tmp.x8_1 = Unit_instance;
|
|
1328
|
+
tmp.y8_1 = null;
|
|
1329
|
+
return tmp.d9();
|
|
1329
1330
|
}
|
|
1330
1331
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1331
1332
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1332
1333
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1333
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1334
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).s3m(ignoreMissing, $completion);
|
|
1334
1335
|
}
|
|
1335
1336
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1336
1337
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
@@ -1343,7 +1344,7 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1343
1344
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1344
1345
|
}
|
|
1345
1346
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1346
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1347
|
+
var tmp0_safe_receiver = _this__u8e3s4.w3k();
|
|
1347
1348
|
if (tmp0_safe_receiver == null)
|
|
1348
1349
|
null;
|
|
1349
1350
|
else {
|
|
@@ -1352,34 +1353,34 @@ function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
|
1352
1353
|
}
|
|
1353
1354
|
}
|
|
1354
1355
|
function get_availableForRead(_this__u8e3s4) {
|
|
1355
|
-
return convertToInt(_this__u8e3s4.
|
|
1356
|
+
return convertToInt(_this__u8e3s4.t3k().o3f().e1());
|
|
1356
1357
|
}
|
|
1357
1358
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1358
1359
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1359
|
-
tmp.
|
|
1360
|
-
tmp.
|
|
1361
|
-
return tmp.
|
|
1360
|
+
tmp.x8_1 = Unit_instance;
|
|
1361
|
+
tmp.y8_1 = null;
|
|
1362
|
+
return tmp.d9();
|
|
1362
1363
|
}
|
|
1363
1364
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1364
1365
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
1365
|
-
tmp.
|
|
1366
|
-
tmp.
|
|
1367
|
-
return tmp.
|
|
1366
|
+
tmp.x8_1 = Unit_instance;
|
|
1367
|
+
tmp.y8_1 = null;
|
|
1368
|
+
return tmp.d9();
|
|
1368
1369
|
}
|
|
1369
1370
|
function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
|
|
1370
1371
|
var tmp = new $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion);
|
|
1371
|
-
tmp.
|
|
1372
|
-
tmp.
|
|
1373
|
-
return tmp.
|
|
1372
|
+
tmp.x8_1 = Unit_instance;
|
|
1373
|
+
tmp.y8_1 = null;
|
|
1374
|
+
return tmp.d9();
|
|
1374
1375
|
}
|
|
1375
1376
|
function throwEndOfStreamException(consumed) {
|
|
1376
|
-
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + '
|
|
1377
|
+
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' bytes');
|
|
1377
1378
|
}
|
|
1378
1379
|
function throwTooLongLineException(limit) {
|
|
1379
|
-
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + '
|
|
1380
|
+
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' bytes');
|
|
1380
1381
|
}
|
|
1381
1382
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1382
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1383
|
+
var tmp0_safe_receiver = _this__u8e3s4.w3k();
|
|
1383
1384
|
if (tmp0_safe_receiver == null)
|
|
1384
1385
|
null;
|
|
1385
1386
|
else {
|
|
@@ -1387,14 +1388,23 @@ function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
|
1387
1388
|
throw tmp0_safe_receiver;
|
|
1388
1389
|
}
|
|
1389
1390
|
}
|
|
1390
|
-
function internalReadLineTo$
|
|
1391
|
+
function internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count) {
|
|
1391
1392
|
if (compare(count, new Long(0, 0)) > 0) {
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1393
|
+
if (outBuffer._v == null) {
|
|
1394
|
+
outBuffer._v = new Buffer();
|
|
1395
|
+
}
|
|
1396
|
+
outBuffer._v.c3h(readBuffer, count);
|
|
1397
|
+
consumed._v = add(consumed._v, count);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
function internalReadLineTo$appendOrBuffer(outBuffer, $out, readBuffer, consumed, count) {
|
|
1401
|
+
if (outBuffer._v == null) {
|
|
1402
|
+
if (compare(count, new Long(0, 0)) > 0) {
|
|
1403
|
+
$out.c1(readString(readBuffer, count));
|
|
1404
|
+
consumed._v = add(consumed._v, count);
|
|
1405
|
+
}
|
|
1406
|
+
} else {
|
|
1407
|
+
internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count);
|
|
1398
1408
|
}
|
|
1399
1409
|
}
|
|
1400
1410
|
function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfIndex, limitLeft) {
|
|
@@ -1418,184 +1428,184 @@ function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfI
|
|
|
1418
1428
|
}
|
|
1419
1429
|
function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
|
|
1420
1430
|
var tmp = new $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion);
|
|
1421
|
-
tmp.
|
|
1422
|
-
tmp.
|
|
1423
|
-
return tmp.
|
|
1431
|
+
tmp.x8_1 = Unit_instance;
|
|
1432
|
+
tmp.y8_1 = null;
|
|
1433
|
+
return tmp.d9();
|
|
1424
1434
|
}
|
|
1425
1435
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1426
1436
|
CoroutineImpl.call(this, resultContinuation);
|
|
1427
|
-
this.
|
|
1437
|
+
this.g3n_1 = _this__u8e3s4;
|
|
1428
1438
|
}
|
|
1429
|
-
protoOf($readRemainingCOROUTINE$).
|
|
1430
|
-
var suspendResult = this.
|
|
1439
|
+
protoOf($readRemainingCOROUTINE$).d9 = function () {
|
|
1440
|
+
var suspendResult = this.x8_1;
|
|
1431
1441
|
$sm: do
|
|
1432
1442
|
try {
|
|
1433
|
-
var tmp = this.
|
|
1443
|
+
var tmp = this.v8_1;
|
|
1434
1444
|
switch (tmp) {
|
|
1435
1445
|
case 0:
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1446
|
+
this.w8_1 = 4;
|
|
1447
|
+
this.h3n_1 = BytePacketBuilder();
|
|
1448
|
+
this.v8_1 = 1;
|
|
1439
1449
|
continue $sm;
|
|
1440
1450
|
case 1:
|
|
1441
|
-
if (!!this.
|
|
1442
|
-
this.
|
|
1451
|
+
if (!!this.g3n_1.x3k()) {
|
|
1452
|
+
this.v8_1 = 3;
|
|
1443
1453
|
continue $sm;
|
|
1444
1454
|
}
|
|
1445
1455
|
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1448
|
-
suspendResult = this.
|
|
1456
|
+
this.h3n_1.h3h(this.g3n_1.t3k());
|
|
1457
|
+
this.v8_1 = 2;
|
|
1458
|
+
suspendResult = this.g3n_1.z3k(VOID, this);
|
|
1449
1459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1450
1460
|
return suspendResult;
|
|
1451
1461
|
}
|
|
1452
1462
|
|
|
1453
1463
|
continue $sm;
|
|
1454
1464
|
case 2:
|
|
1455
|
-
this.
|
|
1465
|
+
this.v8_1 = 1;
|
|
1456
1466
|
continue $sm;
|
|
1457
1467
|
case 3:
|
|
1458
|
-
rethrowCloseCauseIfNeeded(this.
|
|
1459
|
-
return this.
|
|
1468
|
+
rethrowCloseCauseIfNeeded(this.g3n_1);
|
|
1469
|
+
return this.h3n_1.o3f();
|
|
1460
1470
|
case 4:
|
|
1461
|
-
throw this.
|
|
1471
|
+
throw this.y8_1;
|
|
1462
1472
|
}
|
|
1463
1473
|
} catch ($p) {
|
|
1464
1474
|
var e = $p;
|
|
1465
|
-
if (this.
|
|
1475
|
+
if (this.w8_1 === 4) {
|
|
1466
1476
|
throw e;
|
|
1467
1477
|
} else {
|
|
1468
|
-
this.
|
|
1469
|
-
this.
|
|
1478
|
+
this.v8_1 = this.w8_1;
|
|
1479
|
+
this.y8_1 = e;
|
|
1470
1480
|
}
|
|
1471
1481
|
}
|
|
1472
1482
|
while (true);
|
|
1473
1483
|
};
|
|
1474
1484
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1475
1485
|
CoroutineImpl.call(this, resultContinuation);
|
|
1476
|
-
this.
|
|
1477
|
-
this.
|
|
1486
|
+
this.q3n_1 = _this__u8e3s4;
|
|
1487
|
+
this.r3n_1 = max;
|
|
1478
1488
|
}
|
|
1479
|
-
protoOf($discardCOROUTINE$).
|
|
1480
|
-
var suspendResult = this.
|
|
1489
|
+
protoOf($discardCOROUTINE$).d9 = function () {
|
|
1490
|
+
var suspendResult = this.x8_1;
|
|
1481
1491
|
$sm: do
|
|
1482
1492
|
try {
|
|
1483
|
-
var tmp = this.
|
|
1493
|
+
var tmp = this.v8_1;
|
|
1484
1494
|
switch (tmp) {
|
|
1485
1495
|
case 0:
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1496
|
+
this.w8_1 = 5;
|
|
1497
|
+
this.s3n_1 = this.r3n_1;
|
|
1498
|
+
this.v8_1 = 1;
|
|
1489
1499
|
continue $sm;
|
|
1490
1500
|
case 1:
|
|
1491
|
-
if (!(compare(this.
|
|
1492
|
-
this.
|
|
1501
|
+
if (!(compare(this.s3n_1, new Long(0, 0)) > 0 && !this.q3n_1.x3k())) {
|
|
1502
|
+
this.v8_1 = 4;
|
|
1493
1503
|
continue $sm;
|
|
1494
1504
|
}
|
|
1495
1505
|
|
|
1496
|
-
if (get_availableForRead(this.
|
|
1497
|
-
this.
|
|
1498
|
-
suspendResult = this.
|
|
1506
|
+
if (get_availableForRead(this.q3n_1) === 0) {
|
|
1507
|
+
this.v8_1 = 2;
|
|
1508
|
+
suspendResult = this.q3n_1.z3k(VOID, this);
|
|
1499
1509
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1500
1510
|
return suspendResult;
|
|
1501
1511
|
}
|
|
1502
1512
|
continue $sm;
|
|
1503
1513
|
} else {
|
|
1504
|
-
this.
|
|
1514
|
+
this.v8_1 = 3;
|
|
1505
1515
|
continue $sm;
|
|
1506
1516
|
}
|
|
1507
1517
|
|
|
1508
1518
|
case 2:
|
|
1509
|
-
this.
|
|
1519
|
+
this.v8_1 = 3;
|
|
1510
1520
|
continue $sm;
|
|
1511
1521
|
case 3:
|
|
1512
|
-
var tmp0 = this.
|
|
1513
|
-
var b = get_remaining(this.
|
|
1522
|
+
var tmp0 = this.s3n_1;
|
|
1523
|
+
var b = get_remaining(this.q3n_1.t3k());
|
|
1514
1524
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1515
|
-
discard_0(this.
|
|
1516
|
-
this.
|
|
1517
|
-
this.
|
|
1525
|
+
discard_0(this.q3n_1.t3k(), count);
|
|
1526
|
+
this.s3n_1 = subtract(this.s3n_1, count);
|
|
1527
|
+
this.v8_1 = 1;
|
|
1518
1528
|
continue $sm;
|
|
1519
1529
|
case 4:
|
|
1520
|
-
return subtract(this.
|
|
1530
|
+
return subtract(this.r3n_1, this.s3n_1);
|
|
1521
1531
|
case 5:
|
|
1522
|
-
throw this.
|
|
1532
|
+
throw this.y8_1;
|
|
1523
1533
|
}
|
|
1524
1534
|
} catch ($p) {
|
|
1525
1535
|
var e = $p;
|
|
1526
|
-
if (this.
|
|
1536
|
+
if (this.w8_1 === 5) {
|
|
1527
1537
|
throw e;
|
|
1528
1538
|
} else {
|
|
1529
|
-
this.
|
|
1530
|
-
this.
|
|
1539
|
+
this.v8_1 = this.w8_1;
|
|
1540
|
+
this.y8_1 = e;
|
|
1531
1541
|
}
|
|
1532
1542
|
}
|
|
1533
1543
|
while (true);
|
|
1534
1544
|
};
|
|
1535
1545
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1536
1546
|
CoroutineImpl.call(this, resultContinuation);
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1539
|
-
this.
|
|
1540
|
-
this.
|
|
1547
|
+
this.b3o_1 = _this__u8e3s4;
|
|
1548
|
+
this.c3o_1 = buffer;
|
|
1549
|
+
this.d3o_1 = offset;
|
|
1550
|
+
this.e3o_1 = length;
|
|
1541
1551
|
}
|
|
1542
|
-
protoOf($readAvailableCOROUTINE$).
|
|
1543
|
-
var suspendResult = this.
|
|
1552
|
+
protoOf($readAvailableCOROUTINE$).d9 = function () {
|
|
1553
|
+
var suspendResult = this.x8_1;
|
|
1544
1554
|
$sm: do
|
|
1545
1555
|
try {
|
|
1546
|
-
var tmp = this.
|
|
1556
|
+
var tmp = this.v8_1;
|
|
1547
1557
|
switch (tmp) {
|
|
1548
1558
|
case 0:
|
|
1549
|
-
this.
|
|
1550
|
-
if (this.
|
|
1559
|
+
this.w8_1 = 3;
|
|
1560
|
+
if (this.b3o_1.x3k())
|
|
1551
1561
|
return -1;
|
|
1552
|
-
if (this.
|
|
1553
|
-
this.
|
|
1554
|
-
suspendResult = this.
|
|
1562
|
+
if (this.b3o_1.t3k().p3f()) {
|
|
1563
|
+
this.v8_1 = 1;
|
|
1564
|
+
suspendResult = this.b3o_1.z3k(VOID, this);
|
|
1555
1565
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1556
1566
|
return suspendResult;
|
|
1557
1567
|
}
|
|
1558
1568
|
continue $sm;
|
|
1559
1569
|
} else {
|
|
1560
|
-
this.
|
|
1570
|
+
this.v8_1 = 2;
|
|
1561
1571
|
continue $sm;
|
|
1562
1572
|
}
|
|
1563
1573
|
|
|
1564
1574
|
case 1:
|
|
1565
|
-
this.
|
|
1575
|
+
this.v8_1 = 2;
|
|
1566
1576
|
continue $sm;
|
|
1567
1577
|
case 2:
|
|
1568
|
-
if (this.
|
|
1578
|
+
if (this.b3o_1.x3k())
|
|
1569
1579
|
return -1;
|
|
1570
|
-
return readAvailable_0(this.
|
|
1580
|
+
return readAvailable_0(this.b3o_1.t3k(), this.c3o_1, this.d3o_1, this.e3o_1);
|
|
1571
1581
|
case 3:
|
|
1572
|
-
throw this.
|
|
1582
|
+
throw this.y8_1;
|
|
1573
1583
|
}
|
|
1574
1584
|
} catch ($p) {
|
|
1575
1585
|
var e = $p;
|
|
1576
|
-
if (this.
|
|
1586
|
+
if (this.w8_1 === 3) {
|
|
1577
1587
|
throw e;
|
|
1578
1588
|
} else {
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1589
|
+
this.v8_1 = this.w8_1;
|
|
1590
|
+
this.y8_1 = e;
|
|
1581
1591
|
}
|
|
1582
1592
|
}
|
|
1583
1593
|
while (true);
|
|
1584
1594
|
};
|
|
1585
1595
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1586
1596
|
CoroutineImpl.call(this, resultContinuation);
|
|
1587
|
-
this.
|
|
1597
|
+
this.n3o_1 = _this__u8e3s4;
|
|
1588
1598
|
}
|
|
1589
|
-
protoOf($toByteArrayCOROUTINE$).
|
|
1590
|
-
var suspendResult = this.
|
|
1599
|
+
protoOf($toByteArrayCOROUTINE$).d9 = function () {
|
|
1600
|
+
var suspendResult = this.x8_1;
|
|
1591
1601
|
$sm: do
|
|
1592
1602
|
try {
|
|
1593
|
-
var tmp = this.
|
|
1603
|
+
var tmp = this.v8_1;
|
|
1594
1604
|
switch (tmp) {
|
|
1595
1605
|
case 0:
|
|
1596
|
-
this.
|
|
1597
|
-
this.
|
|
1598
|
-
suspendResult = readBuffer(this.
|
|
1606
|
+
this.w8_1 = 2;
|
|
1607
|
+
this.v8_1 = 1;
|
|
1608
|
+
suspendResult = readBuffer(this.n3o_1, this);
|
|
1599
1609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1600
1610
|
return suspendResult;
|
|
1601
1611
|
}
|
|
@@ -1605,146 +1615,146 @@ protoOf($toByteArrayCOROUTINE$).v8 = function () {
|
|
|
1605
1615
|
var ARGUMENT = suspendResult;
|
|
1606
1616
|
return readBytes(ARGUMENT);
|
|
1607
1617
|
case 2:
|
|
1608
|
-
throw this.
|
|
1618
|
+
throw this.y8_1;
|
|
1609
1619
|
}
|
|
1610
1620
|
} catch ($p) {
|
|
1611
1621
|
var e = $p;
|
|
1612
|
-
if (this.
|
|
1622
|
+
if (this.w8_1 === 2) {
|
|
1613
1623
|
throw e;
|
|
1614
1624
|
} else {
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1625
|
+
this.v8_1 = this.w8_1;
|
|
1626
|
+
this.y8_1 = e;
|
|
1617
1627
|
}
|
|
1618
1628
|
}
|
|
1619
1629
|
while (true);
|
|
1620
1630
|
};
|
|
1621
1631
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1622
1632
|
CoroutineImpl.call(this, resultContinuation);
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1633
|
+
this.w3o_1 = _this__u8e3s4;
|
|
1634
|
+
this.x3o_1 = channel;
|
|
1635
|
+
this.y3o_1 = limit;
|
|
1626
1636
|
}
|
|
1627
|
-
protoOf($copyToCOROUTINE$).
|
|
1628
|
-
var suspendResult = this.
|
|
1637
|
+
protoOf($copyToCOROUTINE$).d9 = function () {
|
|
1638
|
+
var suspendResult = this.x8_1;
|
|
1629
1639
|
$sm: do
|
|
1630
1640
|
try {
|
|
1631
|
-
var tmp = this.
|
|
1641
|
+
var tmp = this.v8_1;
|
|
1632
1642
|
switch (tmp) {
|
|
1633
1643
|
case 0:
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1644
|
+
this.w8_1 = 12;
|
|
1645
|
+
this.z3o_1 = this.y3o_1;
|
|
1646
|
+
this.v8_1 = 1;
|
|
1637
1647
|
continue $sm;
|
|
1638
1648
|
case 1:
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1649
|
+
this.w8_1 = 8;
|
|
1650
|
+
this.w8_1 = 7;
|
|
1651
|
+
this.v8_1 = 2;
|
|
1642
1652
|
continue $sm;
|
|
1643
1653
|
case 2:
|
|
1644
|
-
if (!(!this.
|
|
1645
|
-
this.
|
|
1654
|
+
if (!(!this.w3o_1.x3k() && compare(this.z3o_1, new Long(0, 0)) > 0)) {
|
|
1655
|
+
this.v8_1 = 6;
|
|
1646
1656
|
continue $sm;
|
|
1647
1657
|
}
|
|
1648
1658
|
|
|
1649
|
-
if (this.
|
|
1650
|
-
this.
|
|
1651
|
-
suspendResult = this.
|
|
1659
|
+
if (this.w3o_1.t3k().p3f()) {
|
|
1660
|
+
this.v8_1 = 3;
|
|
1661
|
+
suspendResult = this.w3o_1.z3k(VOID, this);
|
|
1652
1662
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1653
1663
|
return suspendResult;
|
|
1654
1664
|
}
|
|
1655
1665
|
continue $sm;
|
|
1656
1666
|
} else {
|
|
1657
|
-
this.
|
|
1667
|
+
this.v8_1 = 4;
|
|
1658
1668
|
continue $sm;
|
|
1659
1669
|
}
|
|
1660
1670
|
|
|
1661
1671
|
case 3:
|
|
1662
|
-
this.
|
|
1672
|
+
this.v8_1 = 4;
|
|
1663
1673
|
continue $sm;
|
|
1664
1674
|
case 4:
|
|
1665
|
-
var tmp0 = this.
|
|
1666
|
-
var b = get_remaining(this.
|
|
1675
|
+
var tmp0 = this.z3o_1;
|
|
1676
|
+
var b = get_remaining(this.w3o_1.t3k());
|
|
1667
1677
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
suspendResult = this.
|
|
1678
|
+
this.w3o_1.t3k().r3g(this.x3o_1.u3k(), count);
|
|
1679
|
+
this.z3o_1 = subtract(this.z3o_1, count);
|
|
1680
|
+
this.v8_1 = 5;
|
|
1681
|
+
suspendResult = this.x3o_1.r3k(this);
|
|
1672
1682
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1673
1683
|
return suspendResult;
|
|
1674
1684
|
}
|
|
1675
1685
|
|
|
1676
1686
|
continue $sm;
|
|
1677
1687
|
case 5:
|
|
1678
|
-
this.
|
|
1688
|
+
this.v8_1 = 2;
|
|
1679
1689
|
continue $sm;
|
|
1680
1690
|
case 6:
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1691
|
+
this.w8_1 = 12;
|
|
1692
|
+
this.v8_1 = 10;
|
|
1683
1693
|
continue $sm;
|
|
1684
1694
|
case 7:
|
|
1685
|
-
this.
|
|
1686
|
-
var tmp_0 = this.
|
|
1695
|
+
this.w8_1 = 8;
|
|
1696
|
+
var tmp_0 = this.y8_1;
|
|
1687
1697
|
if (tmp_0 instanceof Error) {
|
|
1688
|
-
var cause = this.
|
|
1689
|
-
this.
|
|
1690
|
-
close_0(this.
|
|
1698
|
+
var cause = this.y8_1;
|
|
1699
|
+
this.w3o_1.b3l(cause);
|
|
1700
|
+
close_0(this.x3o_1, cause);
|
|
1691
1701
|
throw cause;
|
|
1692
1702
|
} else {
|
|
1693
|
-
throw this.
|
|
1703
|
+
throw this.y8_1;
|
|
1694
1704
|
}
|
|
1695
1705
|
|
|
1696
1706
|
case 8:
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1700
|
-
suspendResult = this.
|
|
1707
|
+
this.w8_1 = 12;
|
|
1708
|
+
this.a3p_1 = this.y8_1;
|
|
1709
|
+
this.v8_1 = 9;
|
|
1710
|
+
suspendResult = this.x3o_1.r3k(this);
|
|
1701
1711
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1702
1712
|
return suspendResult;
|
|
1703
1713
|
}
|
|
1704
1714
|
|
|
1705
1715
|
continue $sm;
|
|
1706
1716
|
case 9:
|
|
1707
|
-
throw this.
|
|
1717
|
+
throw this.a3p_1;
|
|
1708
1718
|
case 10:
|
|
1709
|
-
this.
|
|
1710
|
-
this.
|
|
1711
|
-
suspendResult = this.
|
|
1719
|
+
this.w8_1 = 12;
|
|
1720
|
+
this.v8_1 = 11;
|
|
1721
|
+
suspendResult = this.x3o_1.r3k(this);
|
|
1712
1722
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1713
1723
|
return suspendResult;
|
|
1714
1724
|
}
|
|
1715
1725
|
|
|
1716
1726
|
continue $sm;
|
|
1717
1727
|
case 11:
|
|
1718
|
-
return subtract(this.
|
|
1728
|
+
return subtract(this.y3o_1, this.z3o_1);
|
|
1719
1729
|
case 12:
|
|
1720
|
-
throw this.
|
|
1730
|
+
throw this.y8_1;
|
|
1721
1731
|
}
|
|
1722
1732
|
} catch ($p) {
|
|
1723
1733
|
var e = $p;
|
|
1724
|
-
if (this.
|
|
1734
|
+
if (this.w8_1 === 12) {
|
|
1725
1735
|
throw e;
|
|
1726
1736
|
} else {
|
|
1727
|
-
this.
|
|
1728
|
-
this.
|
|
1737
|
+
this.v8_1 = this.w8_1;
|
|
1738
|
+
this.y8_1 = e;
|
|
1729
1739
|
}
|
|
1730
1740
|
}
|
|
1731
1741
|
while (true);
|
|
1732
1742
|
};
|
|
1733
1743
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1734
1744
|
CoroutineImpl.call(this, resultContinuation);
|
|
1735
|
-
this.
|
|
1736
|
-
this.
|
|
1745
|
+
this.j3p_1 = _this__u8e3s4;
|
|
1746
|
+
this.k3p_1 = byteString;
|
|
1737
1747
|
}
|
|
1738
|
-
protoOf($skipIfFoundCOROUTINE$).
|
|
1739
|
-
var suspendResult = this.
|
|
1748
|
+
protoOf($skipIfFoundCOROUTINE$).d9 = function () {
|
|
1749
|
+
var suspendResult = this.x8_1;
|
|
1740
1750
|
$sm: do
|
|
1741
1751
|
try {
|
|
1742
|
-
var tmp = this.
|
|
1752
|
+
var tmp = this.v8_1;
|
|
1743
1753
|
switch (tmp) {
|
|
1744
1754
|
case 0:
|
|
1745
|
-
this.
|
|
1746
|
-
this.
|
|
1747
|
-
suspendResult = peek(this.
|
|
1755
|
+
this.w8_1 = 4;
|
|
1756
|
+
this.v8_1 = 1;
|
|
1757
|
+
suspendResult = peek(this.j3p_1, this.k3p_1.e1(), this);
|
|
1748
1758
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1749
1759
|
return suspendResult;
|
|
1750
1760
|
}
|
|
@@ -1752,15 +1762,15 @@ protoOf($skipIfFoundCOROUTINE$).v8 = function () {
|
|
|
1752
1762
|
continue $sm;
|
|
1753
1763
|
case 1:
|
|
1754
1764
|
var ARGUMENT = suspendResult;
|
|
1755
|
-
if (equals(ARGUMENT, this.
|
|
1756
|
-
this.
|
|
1757
|
-
suspendResult = discard(this.
|
|
1765
|
+
if (equals(ARGUMENT, this.k3p_1)) {
|
|
1766
|
+
this.v8_1 = 3;
|
|
1767
|
+
suspendResult = discard(this.j3p_1, fromInt(this.k3p_1.e1()), this);
|
|
1758
1768
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1759
1769
|
return suspendResult;
|
|
1760
1770
|
}
|
|
1761
1771
|
continue $sm;
|
|
1762
1772
|
} else {
|
|
1763
|
-
this.
|
|
1773
|
+
this.v8_1 = 2;
|
|
1764
1774
|
continue $sm;
|
|
1765
1775
|
}
|
|
1766
1776
|
|
|
@@ -1769,166 +1779,166 @@ protoOf($skipIfFoundCOROUTINE$).v8 = function () {
|
|
|
1769
1779
|
case 3:
|
|
1770
1780
|
return true;
|
|
1771
1781
|
case 4:
|
|
1772
|
-
throw this.
|
|
1782
|
+
throw this.y8_1;
|
|
1773
1783
|
}
|
|
1774
1784
|
} catch ($p) {
|
|
1775
1785
|
var e = $p;
|
|
1776
|
-
if (this.
|
|
1786
|
+
if (this.w8_1 === 4) {
|
|
1777
1787
|
throw e;
|
|
1778
1788
|
} else {
|
|
1779
|
-
this.
|
|
1780
|
-
this.
|
|
1789
|
+
this.v8_1 = this.w8_1;
|
|
1790
|
+
this.y8_1 = e;
|
|
1781
1791
|
}
|
|
1782
1792
|
}
|
|
1783
1793
|
while (true);
|
|
1784
1794
|
};
|
|
1785
1795
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1786
1796
|
CoroutineImpl.call(this, resultContinuation);
|
|
1787
|
-
this.
|
|
1788
|
-
this.
|
|
1797
|
+
this.t3p_1 = _this__u8e3s4;
|
|
1798
|
+
this.u3p_1 = packet;
|
|
1789
1799
|
}
|
|
1790
|
-
protoOf($readPacketCOROUTINE$).
|
|
1791
|
-
var suspendResult = this.
|
|
1800
|
+
protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
1801
|
+
var suspendResult = this.x8_1;
|
|
1792
1802
|
$sm: do
|
|
1793
1803
|
try {
|
|
1794
|
-
var tmp = this.
|
|
1804
|
+
var tmp = this.v8_1;
|
|
1795
1805
|
switch (tmp) {
|
|
1796
1806
|
case 0:
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1799
|
-
this.
|
|
1807
|
+
this.w8_1 = 6;
|
|
1808
|
+
this.v3p_1 = new Buffer();
|
|
1809
|
+
this.v8_1 = 1;
|
|
1800
1810
|
continue $sm;
|
|
1801
1811
|
case 1:
|
|
1802
|
-
if (!(compare(this.
|
|
1803
|
-
this.
|
|
1812
|
+
if (!(compare(this.v3p_1.e1(), fromInt(this.u3p_1)) < 0)) {
|
|
1813
|
+
this.v8_1 = 5;
|
|
1804
1814
|
continue $sm;
|
|
1805
1815
|
}
|
|
1806
1816
|
|
|
1807
|
-
if (this.
|
|
1808
|
-
this.
|
|
1809
|
-
suspendResult = this.
|
|
1817
|
+
if (this.t3p_1.t3k().p3f()) {
|
|
1818
|
+
this.v8_1 = 2;
|
|
1819
|
+
suspendResult = this.t3p_1.z3k(VOID, this);
|
|
1810
1820
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1811
1821
|
return suspendResult;
|
|
1812
1822
|
}
|
|
1813
1823
|
continue $sm;
|
|
1814
1824
|
} else {
|
|
1815
|
-
this.
|
|
1825
|
+
this.v8_1 = 3;
|
|
1816
1826
|
continue $sm;
|
|
1817
1827
|
}
|
|
1818
1828
|
|
|
1819
1829
|
case 2:
|
|
1820
|
-
this.
|
|
1830
|
+
this.v8_1 = 3;
|
|
1821
1831
|
continue $sm;
|
|
1822
1832
|
case 3:
|
|
1823
|
-
if (this.
|
|
1824
|
-
this.
|
|
1833
|
+
if (this.t3p_1.x3k()) {
|
|
1834
|
+
this.v8_1 = 5;
|
|
1825
1835
|
continue $sm;
|
|
1826
1836
|
} else {
|
|
1827
|
-
this.
|
|
1837
|
+
this.v8_1 = 4;
|
|
1828
1838
|
continue $sm;
|
|
1829
1839
|
}
|
|
1830
1840
|
|
|
1831
1841
|
case 4:
|
|
1832
|
-
if (compare(get_remaining(this.
|
|
1833
|
-
this.
|
|
1842
|
+
if (compare(get_remaining(this.t3p_1.t3k()), subtract(numberToLong(this.u3p_1), this.v3p_1.e1())) > 0) {
|
|
1843
|
+
this.t3p_1.t3k().r3g(this.v3p_1, subtract(numberToLong(this.u3p_1), this.v3p_1.e1()));
|
|
1834
1844
|
} else {
|
|
1835
|
-
this.
|
|
1845
|
+
this.t3p_1.t3k().s3g(this.v3p_1);
|
|
1836
1846
|
}
|
|
1837
1847
|
|
|
1838
|
-
this.
|
|
1848
|
+
this.v8_1 = 1;
|
|
1839
1849
|
continue $sm;
|
|
1840
1850
|
case 5:
|
|
1841
|
-
if (compare(this.
|
|
1842
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1851
|
+
if (compare(this.v3p_1.e1(), fromInt(this.u3p_1)) < 0) {
|
|
1852
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.u3p_1 + ' bytes but only ' + this.v3p_1.e1().toString() + ' available');
|
|
1843
1853
|
}
|
|
1844
1854
|
|
|
1845
|
-
return this.
|
|
1855
|
+
return this.v3p_1;
|
|
1846
1856
|
case 6:
|
|
1847
|
-
throw this.
|
|
1857
|
+
throw this.y8_1;
|
|
1848
1858
|
}
|
|
1849
1859
|
} catch ($p) {
|
|
1850
1860
|
var e = $p;
|
|
1851
|
-
if (this.
|
|
1861
|
+
if (this.w8_1 === 6) {
|
|
1852
1862
|
throw e;
|
|
1853
1863
|
} else {
|
|
1854
|
-
this.
|
|
1855
|
-
this.
|
|
1864
|
+
this.v8_1 = this.w8_1;
|
|
1865
|
+
this.y8_1 = e;
|
|
1856
1866
|
}
|
|
1857
1867
|
}
|
|
1858
1868
|
while (true);
|
|
1859
1869
|
};
|
|
1860
1870
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1861
1871
|
CoroutineImpl.call(this, resultContinuation);
|
|
1862
|
-
this.
|
|
1872
|
+
this.e3q_1 = _this__u8e3s4;
|
|
1863
1873
|
}
|
|
1864
|
-
protoOf($readBufferCOROUTINE$).
|
|
1865
|
-
var suspendResult = this.
|
|
1874
|
+
protoOf($readBufferCOROUTINE$).d9 = function () {
|
|
1875
|
+
var suspendResult = this.x8_1;
|
|
1866
1876
|
$sm: do
|
|
1867
1877
|
try {
|
|
1868
|
-
var tmp = this.
|
|
1878
|
+
var tmp = this.v8_1;
|
|
1869
1879
|
switch (tmp) {
|
|
1870
1880
|
case 0:
|
|
1871
|
-
this.
|
|
1872
|
-
this.
|
|
1873
|
-
this.
|
|
1881
|
+
this.w8_1 = 4;
|
|
1882
|
+
this.f3q_1 = new Buffer();
|
|
1883
|
+
this.v8_1 = 1;
|
|
1874
1884
|
continue $sm;
|
|
1875
1885
|
case 1:
|
|
1876
|
-
if (!!this.
|
|
1877
|
-
this.
|
|
1886
|
+
if (!!this.e3q_1.x3k()) {
|
|
1887
|
+
this.v8_1 = 3;
|
|
1878
1888
|
continue $sm;
|
|
1879
1889
|
}
|
|
1880
1890
|
|
|
1881
|
-
this.
|
|
1882
|
-
this.
|
|
1883
|
-
suspendResult = this.
|
|
1891
|
+
this.f3q_1.h3h(this.e3q_1.t3k());
|
|
1892
|
+
this.v8_1 = 2;
|
|
1893
|
+
suspendResult = this.e3q_1.z3k(VOID, this);
|
|
1884
1894
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1885
1895
|
return suspendResult;
|
|
1886
1896
|
}
|
|
1887
1897
|
|
|
1888
1898
|
continue $sm;
|
|
1889
1899
|
case 2:
|
|
1890
|
-
this.
|
|
1900
|
+
this.v8_1 = 1;
|
|
1891
1901
|
continue $sm;
|
|
1892
1902
|
case 3:
|
|
1893
|
-
var tmp0_safe_receiver = this.
|
|
1903
|
+
var tmp0_safe_receiver = this.e3q_1.w3k();
|
|
1894
1904
|
if (tmp0_safe_receiver == null)
|
|
1895
1905
|
null;
|
|
1896
1906
|
else {
|
|
1897
1907
|
throw tmp0_safe_receiver;
|
|
1898
1908
|
}
|
|
1899
1909
|
|
|
1900
|
-
return this.
|
|
1910
|
+
return this.f3q_1;
|
|
1901
1911
|
case 4:
|
|
1902
|
-
throw this.
|
|
1912
|
+
throw this.y8_1;
|
|
1903
1913
|
}
|
|
1904
1914
|
} catch ($p) {
|
|
1905
1915
|
var e = $p;
|
|
1906
|
-
if (this.
|
|
1916
|
+
if (this.w8_1 === 4) {
|
|
1907
1917
|
throw e;
|
|
1908
1918
|
} else {
|
|
1909
|
-
this.
|
|
1910
|
-
this.
|
|
1919
|
+
this.v8_1 = this.w8_1;
|
|
1920
|
+
this.y8_1 = e;
|
|
1911
1921
|
}
|
|
1912
1922
|
}
|
|
1913
1923
|
while (true);
|
|
1914
1924
|
};
|
|
1915
1925
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1916
1926
|
CoroutineImpl.call(this, resultContinuation);
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1927
|
+
this.o3q_1 = _this__u8e3s4;
|
|
1928
|
+
this.p3q_1 = count;
|
|
1919
1929
|
}
|
|
1920
|
-
protoOf($peekCOROUTINE$).
|
|
1921
|
-
var suspendResult = this.
|
|
1930
|
+
protoOf($peekCOROUTINE$).d9 = function () {
|
|
1931
|
+
var suspendResult = this.x8_1;
|
|
1922
1932
|
$sm: do
|
|
1923
1933
|
try {
|
|
1924
|
-
var tmp = this.
|
|
1934
|
+
var tmp = this.v8_1;
|
|
1925
1935
|
switch (tmp) {
|
|
1926
1936
|
case 0:
|
|
1927
|
-
this.
|
|
1928
|
-
if (this.
|
|
1937
|
+
this.w8_1 = 3;
|
|
1938
|
+
if (this.o3q_1.x3k())
|
|
1929
1939
|
return null;
|
|
1930
|
-
this.
|
|
1931
|
-
suspendResult = this.
|
|
1940
|
+
this.v8_1 = 1;
|
|
1941
|
+
suspendResult = this.o3q_1.y3k(this.p3q_1, this);
|
|
1932
1942
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1933
1943
|
return suspendResult;
|
|
1934
1944
|
}
|
|
@@ -1938,272 +1948,348 @@ protoOf($peekCOROUTINE$).v8 = function () {
|
|
|
1938
1948
|
if (!suspendResult) {
|
|
1939
1949
|
return null;
|
|
1940
1950
|
} else {
|
|
1941
|
-
this.
|
|
1951
|
+
this.v8_1 = 2;
|
|
1942
1952
|
continue $sm;
|
|
1943
1953
|
}
|
|
1944
1954
|
|
|
1945
1955
|
case 2:
|
|
1946
|
-
return readByteString(this.
|
|
1956
|
+
return readByteString(this.o3q_1.t3k().t3g(), this.p3q_1);
|
|
1947
1957
|
case 3:
|
|
1948
|
-
throw this.
|
|
1958
|
+
throw this.y8_1;
|
|
1949
1959
|
}
|
|
1950
1960
|
} catch ($p) {
|
|
1951
1961
|
var e = $p;
|
|
1952
|
-
if (this.
|
|
1962
|
+
if (this.w8_1 === 3) {
|
|
1953
1963
|
throw e;
|
|
1954
1964
|
} else {
|
|
1955
|
-
this.
|
|
1956
|
-
this.
|
|
1965
|
+
this.v8_1 = this.w8_1;
|
|
1966
|
+
this.y8_1 = e;
|
|
1957
1967
|
}
|
|
1958
1968
|
}
|
|
1959
1969
|
while (true);
|
|
1960
1970
|
};
|
|
1961
1971
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1962
1972
|
CoroutineImpl.call(this, resultContinuation);
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1967
|
-
this.
|
|
1968
|
-
}
|
|
1969
|
-
protoOf($internalReadLineToCOROUTINE$).
|
|
1970
|
-
var suspendResult = this.
|
|
1973
|
+
this.y3q_1 = _this__u8e3s4;
|
|
1974
|
+
this.z3q_1 = out;
|
|
1975
|
+
this.a3r_1 = limit;
|
|
1976
|
+
this.b3r_1 = lenientLineEnding;
|
|
1977
|
+
this.c3r_1 = throwOnIncompleteLine;
|
|
1978
|
+
}
|
|
1979
|
+
protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
1980
|
+
var suspendResult = this.x8_1;
|
|
1971
1981
|
$sm: do
|
|
1972
1982
|
try {
|
|
1973
|
-
var tmp = this.
|
|
1983
|
+
var tmp = this.v8_1;
|
|
1974
1984
|
switch (tmp) {
|
|
1975
1985
|
case 0:
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1978
|
-
if (this.
|
|
1979
|
-
this.
|
|
1980
|
-
suspendResult = this.
|
|
1986
|
+
this.w8_1 = 27;
|
|
1987
|
+
this.g3r_1 = this.y3q_1.t3k();
|
|
1988
|
+
if (this.g3r_1.p3f()) {
|
|
1989
|
+
this.v8_1 = 1;
|
|
1990
|
+
suspendResult = this.y3q_1.z3k(VOID, this);
|
|
1981
1991
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1982
1992
|
return suspendResult;
|
|
1983
1993
|
}
|
|
1984
1994
|
continue $sm;
|
|
1985
1995
|
} else {
|
|
1986
|
-
this.
|
|
1996
|
+
this.v8_1 = 2;
|
|
1987
1997
|
continue $sm;
|
|
1988
1998
|
}
|
|
1989
1999
|
|
|
1990
2000
|
case 1:
|
|
1991
|
-
this.
|
|
2001
|
+
this.v8_1 = 2;
|
|
1992
2002
|
continue $sm;
|
|
1993
2003
|
case 2:
|
|
1994
|
-
if (this.
|
|
2004
|
+
if (this.y3q_1.x3k())
|
|
1995
2005
|
return new Long(-1, -1);
|
|
1996
|
-
this.
|
|
1997
|
-
this.
|
|
2006
|
+
this.f3r_1 = {_v: new Long(0, 0)};
|
|
2007
|
+
this.d3r_1 = {_v: null};
|
|
2008
|
+
this.v8_1 = 3;
|
|
1998
2009
|
continue $sm;
|
|
1999
2010
|
case 3:
|
|
2000
|
-
|
|
2001
|
-
|
|
2011
|
+
this.v8_1 = 4;
|
|
2012
|
+
continue $sm;
|
|
2013
|
+
case 4:
|
|
2014
|
+
this.w8_1 = 24;
|
|
2015
|
+
this.v8_1 = 5;
|
|
2016
|
+
continue $sm;
|
|
2017
|
+
case 5:
|
|
2018
|
+
if (!(compare(this.f3r_1._v, this.a3r_1) < 0 && !this.y3q_1.x3k())) {
|
|
2019
|
+
this.v8_1 = 15;
|
|
2002
2020
|
continue $sm;
|
|
2003
2021
|
}
|
|
2004
2022
|
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
2023
|
+
this.j3r_1 = subtract(this.a3r_1, this.f3r_1._v);
|
|
2024
|
+
this.k3r_1 = indexOf(this.g3r_1, 10, VOID, this.j3r_1);
|
|
2025
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.g3r_1, this.b3r_1, this.k3r_1, this.j3r_1);
|
|
2008
2026
|
if (compare(crIndex, new Long(0, 0)) >= 0) {
|
|
2009
|
-
internalReadLineTo$
|
|
2010
|
-
discard_0(this.
|
|
2011
|
-
|
|
2027
|
+
internalReadLineTo$appendOrBuffer(this.d3r_1, this.z3q_1, this.g3r_1, this.f3r_1, crIndex);
|
|
2028
|
+
discard_0(this.g3r_1, new Long(1, 0));
|
|
2029
|
+
this.e3r_1 = this.f3r_1._v;
|
|
2030
|
+
this.w8_1 = 27;
|
|
2031
|
+
this.v8_1 = 25;
|
|
2032
|
+
continue $sm;
|
|
2033
|
+
} else {
|
|
2034
|
+
this.v8_1 = 6;
|
|
2035
|
+
continue $sm;
|
|
2012
2036
|
}
|
|
2013
2037
|
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2038
|
+
case 6:
|
|
2039
|
+
if (equalsLong(this.k3r_1, new Long(0, 0))) {
|
|
2040
|
+
discard_0(this.g3r_1, new Long(1, 0));
|
|
2041
|
+
this.e3r_1 = this.f3r_1._v;
|
|
2042
|
+
this.w8_1 = 27;
|
|
2043
|
+
this.v8_1 = 25;
|
|
2044
|
+
continue $sm;
|
|
2045
|
+
} else {
|
|
2046
|
+
this.v8_1 = 7;
|
|
2047
|
+
continue $sm;
|
|
2017
2048
|
}
|
|
2018
2049
|
|
|
2019
|
-
|
|
2050
|
+
case 7:
|
|
2051
|
+
if (compare(this.k3r_1, new Long(0, 0)) > 0) {
|
|
2020
2052
|
var tmp_0;
|
|
2021
|
-
var tmp_1 = this.
|
|
2022
|
-
|
|
2053
|
+
var tmp_1 = this.g3r_1.o3f();
|
|
2054
|
+
var this_0 = this.k3r_1;
|
|
2055
|
+
if (tmp_1.k3g(subtract(this_0, fromInt(1))) === 13) {
|
|
2023
2056
|
tmp_0 = new Long(1, 0);
|
|
2024
2057
|
} else {
|
|
2025
2058
|
tmp_0 = new Long(0, 0);
|
|
2026
2059
|
}
|
|
2027
2060
|
var isCrlf = tmp_0;
|
|
2028
|
-
internalReadLineTo$
|
|
2029
|
-
discard_0(this.
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2061
|
+
internalReadLineTo$appendOrBuffer(this.d3r_1, this.z3q_1, this.g3r_1, this.f3r_1, subtract(this.k3r_1, isCrlf));
|
|
2062
|
+
discard_0(this.g3r_1, add(numberToLong(1), isCrlf));
|
|
2063
|
+
this.e3r_1 = this.f3r_1._v;
|
|
2064
|
+
this.w8_1 = 27;
|
|
2065
|
+
this.v8_1 = 25;
|
|
2066
|
+
continue $sm;
|
|
2067
|
+
} else {
|
|
2068
|
+
this.v8_1 = 8;
|
|
2069
|
+
continue $sm;
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
case 8:
|
|
2073
|
+
var tmp0 = this.j3r_1;
|
|
2074
|
+
var b = get_remaining(this.g3r_1);
|
|
2075
|
+
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2076
|
+
var tmp_2 = this.g3r_1.o3f();
|
|
2077
|
+
if (tmp_2.k3g(subtract(count, fromInt(1))) === 13) {
|
|
2078
|
+
internalReadLineTo$appendOrBuffer(this.d3r_1, this.z3q_1, this.g3r_1, this.f3r_1, subtract(count, fromInt(1)));
|
|
2079
|
+
this.v8_1 = 9;
|
|
2080
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.g3r_1, this.y3q_1, this.b3r_1, this);
|
|
2040
2081
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2041
2082
|
return suspendResult;
|
|
2042
2083
|
}
|
|
2043
2084
|
continue $sm;
|
|
2044
2085
|
} else {
|
|
2045
|
-
internalReadLineTo$
|
|
2046
|
-
this.
|
|
2086
|
+
internalReadLineTo$bufferBytes(this.d3r_1, this.g3r_1, this.f3r_1, count);
|
|
2087
|
+
this.v8_1 = 11;
|
|
2047
2088
|
continue $sm;
|
|
2048
2089
|
}
|
|
2049
2090
|
|
|
2050
|
-
case
|
|
2091
|
+
case 9:
|
|
2051
2092
|
if (suspendResult) {
|
|
2052
|
-
|
|
2093
|
+
this.e3r_1 = this.f3r_1._v;
|
|
2094
|
+
this.w8_1 = 27;
|
|
2095
|
+
this.v8_1 = 25;
|
|
2096
|
+
continue $sm;
|
|
2053
2097
|
} else {
|
|
2054
|
-
this.
|
|
2098
|
+
internalReadLineTo$bufferBytes(this.d3r_1, this.g3r_1, this.f3r_1, new Long(1, 0));
|
|
2099
|
+
this.v8_1 = 10;
|
|
2055
2100
|
continue $sm;
|
|
2056
2101
|
}
|
|
2057
2102
|
|
|
2058
|
-
case
|
|
2059
|
-
|
|
2060
|
-
this.n8_1 = 6;
|
|
2103
|
+
case 10:
|
|
2104
|
+
this.v8_1 = 11;
|
|
2061
2105
|
continue $sm;
|
|
2062
|
-
case
|
|
2063
|
-
if (compare(this.
|
|
2064
|
-
this.
|
|
2065
|
-
suspendResult = this.
|
|
2106
|
+
case 11:
|
|
2107
|
+
if (compare(this.f3r_1._v, this.a3r_1) < 0 && equalsLong(get_remaining(this.g3r_1), new Long(0, 0))) {
|
|
2108
|
+
this.v8_1 = 12;
|
|
2109
|
+
suspendResult = this.y3q_1.z3k(VOID, this);
|
|
2066
2110
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2067
2111
|
return suspendResult;
|
|
2068
2112
|
}
|
|
2069
2113
|
continue $sm;
|
|
2070
2114
|
} else {
|
|
2071
|
-
this.
|
|
2072
|
-
this.
|
|
2115
|
+
this.i3r_1 = false;
|
|
2116
|
+
this.v8_1 = 13;
|
|
2073
2117
|
continue $sm;
|
|
2074
2118
|
}
|
|
2075
2119
|
|
|
2076
|
-
case
|
|
2077
|
-
this.
|
|
2078
|
-
this.
|
|
2120
|
+
case 12:
|
|
2121
|
+
this.i3r_1 = !suspendResult;
|
|
2122
|
+
this.v8_1 = 13;
|
|
2079
2123
|
continue $sm;
|
|
2080
|
-
case
|
|
2081
|
-
if (this.
|
|
2082
|
-
this.
|
|
2124
|
+
case 13:
|
|
2125
|
+
if (this.i3r_1) {
|
|
2126
|
+
this.v8_1 = 15;
|
|
2083
2127
|
continue $sm;
|
|
2084
2128
|
} else {
|
|
2085
|
-
this.
|
|
2129
|
+
this.v8_1 = 14;
|
|
2086
2130
|
continue $sm;
|
|
2087
2131
|
}
|
|
2088
2132
|
|
|
2089
|
-
case
|
|
2090
|
-
this.
|
|
2133
|
+
case 14:
|
|
2134
|
+
this.v8_1 = 5;
|
|
2091
2135
|
continue $sm;
|
|
2092
|
-
case
|
|
2093
|
-
if (equalsLong(this.
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2136
|
+
case 15:
|
|
2137
|
+
if (equalsLong(this.f3r_1._v, new Long(0, 0)) && this.y3q_1.x3k()) {
|
|
2138
|
+
this.e3r_1 = new Long(-1, -1);
|
|
2139
|
+
this.w8_1 = 27;
|
|
2140
|
+
this.v8_1 = 25;
|
|
2141
|
+
continue $sm;
|
|
2142
|
+
} else {
|
|
2143
|
+
this.v8_1 = 16;
|
|
2144
|
+
continue $sm;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
case 16:
|
|
2148
|
+
if (!(compare(this.f3r_1._v, this.a3r_1) <= 0)) {
|
|
2149
|
+
var message = 'Consumed bytes exceed the limit: ' + this.f3r_1._v.toString() + ' > ' + this.a3r_1.toString() + ". It's an implementation bug, please report it.";
|
|
2097
2150
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2098
2151
|
}
|
|
2099
2152
|
|
|
2100
|
-
if (equalsLong(this.
|
|
2101
|
-
if (equalsLong(this.
|
|
2153
|
+
if (equalsLong(this.f3r_1._v, this.a3r_1)) {
|
|
2154
|
+
if (equalsLong(this.a3r_1, new Long(-1, 2147483647)))
|
|
2102
2155
|
throw new TooLongLineException('Max line length exceeded');
|
|
2103
|
-
if (equalsLong(get_remaining(this.
|
|
2104
|
-
this.
|
|
2105
|
-
suspendResult = this.
|
|
2156
|
+
if (equalsLong(get_remaining(this.g3r_1), new Long(0, 0))) {
|
|
2157
|
+
this.v8_1 = 18;
|
|
2158
|
+
suspendResult = this.y3q_1.z3k(VOID, this);
|
|
2106
2159
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2107
2160
|
return suspendResult;
|
|
2108
2161
|
}
|
|
2109
2162
|
continue $sm;
|
|
2110
2163
|
} else {
|
|
2111
|
-
this.
|
|
2112
|
-
this.
|
|
2164
|
+
this.h3r_1 = false;
|
|
2165
|
+
this.v8_1 = 19;
|
|
2113
2166
|
continue $sm;
|
|
2114
2167
|
}
|
|
2115
2168
|
} else {
|
|
2116
|
-
this.
|
|
2169
|
+
this.v8_1 = 17;
|
|
2117
2170
|
continue $sm;
|
|
2118
2171
|
}
|
|
2119
2172
|
|
|
2120
|
-
case
|
|
2121
|
-
if (this.
|
|
2122
|
-
throwEndOfStreamException(this.
|
|
2173
|
+
case 17:
|
|
2174
|
+
if (this.c3r_1) {
|
|
2175
|
+
throwEndOfStreamException(this.f3r_1._v);
|
|
2123
2176
|
}
|
|
2124
2177
|
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
this.
|
|
2128
|
-
|
|
2178
|
+
this.e3r_1 = this.f3r_1._v;
|
|
2179
|
+
this.w8_1 = 27;
|
|
2180
|
+
this.v8_1 = 25;
|
|
2181
|
+
var tmp_3 = this;
|
|
2129
2182
|
continue $sm;
|
|
2130
|
-
case
|
|
2131
|
-
|
|
2132
|
-
|
|
2183
|
+
case 18:
|
|
2184
|
+
this.h3r_1 = !suspendResult;
|
|
2185
|
+
this.v8_1 = 19;
|
|
2186
|
+
continue $sm;
|
|
2187
|
+
case 19:
|
|
2188
|
+
if (this.h3r_1) {
|
|
2189
|
+
throwEndOfStreamException(this.f3r_1._v);
|
|
2133
2190
|
} else {
|
|
2134
|
-
this.
|
|
2191
|
+
this.v8_1 = 20;
|
|
2135
2192
|
continue $sm;
|
|
2136
2193
|
}
|
|
2137
2194
|
|
|
2138
2195
|
break;
|
|
2139
|
-
case
|
|
2140
|
-
var tmp0_subject = this.
|
|
2196
|
+
case 20:
|
|
2197
|
+
var tmp0_subject = this.g3r_1.o3f().k3g(new Long(0, 0));
|
|
2141
2198
|
if (tmp0_subject === 10) {
|
|
2142
|
-
discard_0(this.
|
|
2143
|
-
|
|
2199
|
+
discard_0(this.g3r_1, new Long(1, 0));
|
|
2200
|
+
this.e3r_1 = this.f3r_1._v;
|
|
2201
|
+
this.w8_1 = 27;
|
|
2202
|
+
this.v8_1 = 25;
|
|
2203
|
+
continue $sm;
|
|
2144
2204
|
} else {
|
|
2145
2205
|
if (tmp0_subject === 13) {
|
|
2146
|
-
this.
|
|
2147
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2206
|
+
this.v8_1 = 21;
|
|
2207
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.g3r_1, this.y3q_1, this.b3r_1, this);
|
|
2148
2208
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2149
2209
|
return suspendResult;
|
|
2150
2210
|
}
|
|
2151
2211
|
continue $sm;
|
|
2152
2212
|
} else {
|
|
2153
|
-
this.
|
|
2213
|
+
this.v8_1 = 23;
|
|
2154
2214
|
continue $sm;
|
|
2155
2215
|
}
|
|
2156
2216
|
}
|
|
2157
2217
|
|
|
2158
|
-
case
|
|
2218
|
+
case 21:
|
|
2159
2219
|
if (suspendResult) {
|
|
2160
|
-
|
|
2220
|
+
this.e3r_1 = this.f3r_1._v;
|
|
2221
|
+
this.w8_1 = 27;
|
|
2222
|
+
this.v8_1 = 25;
|
|
2223
|
+
continue $sm;
|
|
2161
2224
|
} else {
|
|
2162
|
-
this.
|
|
2225
|
+
this.v8_1 = 22;
|
|
2163
2226
|
continue $sm;
|
|
2164
2227
|
}
|
|
2165
2228
|
|
|
2166
|
-
case
|
|
2167
|
-
this.
|
|
2229
|
+
case 22:
|
|
2230
|
+
this.v8_1 = 23;
|
|
2168
2231
|
continue $sm;
|
|
2169
|
-
case
|
|
2170
|
-
throwTooLongLineException(this.
|
|
2232
|
+
case 23:
|
|
2233
|
+
throwTooLongLineException(this.a3r_1);
|
|
2171
2234
|
break;
|
|
2172
|
-
case
|
|
2173
|
-
|
|
2235
|
+
case 24:
|
|
2236
|
+
this.w8_1 = 27;
|
|
2237
|
+
var t = this.y8_1;
|
|
2238
|
+
if (!(this.d3r_1._v == null)) {
|
|
2239
|
+
this.z3q_1.c1(readString_0(this.d3r_1._v));
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
throw t;
|
|
2243
|
+
case 25:
|
|
2244
|
+
var tmp_4 = this.e3r_1;
|
|
2245
|
+
this.w8_1 = 27;
|
|
2246
|
+
if (!(this.d3r_1._v == null)) {
|
|
2247
|
+
this.z3q_1.c1(readString_0(this.d3r_1._v));
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2250
|
+
return tmp_4;
|
|
2251
|
+
case 26:
|
|
2252
|
+
this.w8_1 = 27;
|
|
2253
|
+
if (!(this.d3r_1._v == null)) {
|
|
2254
|
+
this.z3q_1.c1(readString_0(this.d3r_1._v));
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
return Unit_instance;
|
|
2258
|
+
case 27:
|
|
2259
|
+
throw this.y8_1;
|
|
2174
2260
|
}
|
|
2175
2261
|
} catch ($p) {
|
|
2176
2262
|
var e = $p;
|
|
2177
|
-
if (this.
|
|
2263
|
+
if (this.w8_1 === 27) {
|
|
2178
2264
|
throw e;
|
|
2179
2265
|
} else {
|
|
2180
|
-
this.
|
|
2181
|
-
this.
|
|
2266
|
+
this.v8_1 = this.w8_1;
|
|
2267
|
+
this.y8_1 = e;
|
|
2182
2268
|
}
|
|
2183
2269
|
}
|
|
2184
2270
|
while (true);
|
|
2185
2271
|
};
|
|
2186
2272
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2187
2273
|
CoroutineImpl.call(this, resultContinuation);
|
|
2188
|
-
this.
|
|
2189
|
-
this.
|
|
2190
|
-
this.
|
|
2274
|
+
this.t3r_1 = _this__u8e3s4;
|
|
2275
|
+
this.u3r_1 = $this_internalReadLineTo;
|
|
2276
|
+
this.v3r_1 = $lenientLineEnding;
|
|
2191
2277
|
}
|
|
2192
|
-
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).
|
|
2193
|
-
var suspendResult = this.
|
|
2278
|
+
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).d9 = function () {
|
|
2279
|
+
var suspendResult = this.x8_1;
|
|
2194
2280
|
$sm: do
|
|
2195
2281
|
try {
|
|
2196
|
-
var tmp = this.
|
|
2282
|
+
var tmp = this.v8_1;
|
|
2197
2283
|
switch (tmp) {
|
|
2198
2284
|
case 0:
|
|
2199
|
-
this.
|
|
2200
|
-
if (compare(get_remaining(this.
|
|
2201
|
-
this.
|
|
2202
|
-
this.
|
|
2285
|
+
this.w8_1 = 5;
|
|
2286
|
+
if (compare(get_remaining(this.t3r_1), new Long(2, 0)) >= 0) {
|
|
2287
|
+
this.x3r_1 = true;
|
|
2288
|
+
this.v8_1 = 2;
|
|
2203
2289
|
continue $sm;
|
|
2204
2290
|
} else {
|
|
2205
|
-
this.
|
|
2206
|
-
suspendResult = this.
|
|
2291
|
+
this.v8_1 = 1;
|
|
2292
|
+
suspendResult = this.u3r_1.y3k(2, this);
|
|
2207
2293
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2208
2294
|
return suspendResult;
|
|
2209
2295
|
}
|
|
@@ -2211,46 +2297,46 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).v8 = function () {
|
|
|
2211
2297
|
}
|
|
2212
2298
|
|
|
2213
2299
|
case 1:
|
|
2214
|
-
this.
|
|
2215
|
-
this.
|
|
2300
|
+
this.x3r_1 = suspendResult;
|
|
2301
|
+
this.v8_1 = 2;
|
|
2216
2302
|
continue $sm;
|
|
2217
2303
|
case 2:
|
|
2218
|
-
if (this.
|
|
2219
|
-
this.
|
|
2220
|
-
this.
|
|
2304
|
+
if (this.x3r_1) {
|
|
2305
|
+
this.w3r_1 = this.t3r_1.o3f().k3g(new Long(1, 0)) === 10;
|
|
2306
|
+
this.v8_1 = 3;
|
|
2221
2307
|
continue $sm;
|
|
2222
2308
|
} else {
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2309
|
+
this.w3r_1 = false;
|
|
2310
|
+
this.v8_1 = 3;
|
|
2225
2311
|
continue $sm;
|
|
2226
2312
|
}
|
|
2227
2313
|
|
|
2228
2314
|
case 3:
|
|
2229
|
-
if (this.
|
|
2230
|
-
discard_0(this.
|
|
2315
|
+
if (this.w3r_1) {
|
|
2316
|
+
discard_0(this.t3r_1, new Long(2, 0));
|
|
2231
2317
|
return true;
|
|
2232
2318
|
} else {
|
|
2233
|
-
this.
|
|
2319
|
+
this.v8_1 = 4;
|
|
2234
2320
|
continue $sm;
|
|
2235
2321
|
}
|
|
2236
2322
|
|
|
2237
2323
|
case 4:
|
|
2238
|
-
if (this.
|
|
2239
|
-
discard_0(this.
|
|
2324
|
+
if (this.v3r_1) {
|
|
2325
|
+
discard_0(this.t3r_1, new Long(1, 0));
|
|
2240
2326
|
return true;
|
|
2241
2327
|
}
|
|
2242
2328
|
|
|
2243
2329
|
return false;
|
|
2244
2330
|
case 5:
|
|
2245
|
-
throw this.
|
|
2331
|
+
throw this.y8_1;
|
|
2246
2332
|
}
|
|
2247
2333
|
} catch ($p) {
|
|
2248
2334
|
var e = $p;
|
|
2249
|
-
if (this.
|
|
2335
|
+
if (this.w8_1 === 5) {
|
|
2250
2336
|
throw e;
|
|
2251
2337
|
} else {
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2338
|
+
this.v8_1 = this.w8_1;
|
|
2339
|
+
this.y8_1 = e;
|
|
2254
2340
|
}
|
|
2255
2341
|
}
|
|
2256
2342
|
while (true);
|
|
@@ -2259,50 +2345,50 @@ function ByteWriteChannel() {
|
|
|
2259
2345
|
}
|
|
2260
2346
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2261
2347
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2262
|
-
tmp.
|
|
2263
|
-
tmp.
|
|
2264
|
-
return tmp.
|
|
2348
|
+
tmp.x8_1 = Unit_instance;
|
|
2349
|
+
tmp.y8_1 = null;
|
|
2350
|
+
return tmp.d9();
|
|
2265
2351
|
}
|
|
2266
2352
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2267
2353
|
CoroutineImpl.call(this, resultContinuation);
|
|
2268
|
-
this.
|
|
2354
|
+
this.g3s_1 = _this__u8e3s4;
|
|
2269
2355
|
}
|
|
2270
|
-
protoOf($flushIfNeededCOROUTINE$).
|
|
2271
|
-
var suspendResult = this.
|
|
2356
|
+
protoOf($flushIfNeededCOROUTINE$).d9 = function () {
|
|
2357
|
+
var suspendResult = this.x8_1;
|
|
2272
2358
|
$sm: do
|
|
2273
2359
|
try {
|
|
2274
|
-
var tmp = this.
|
|
2360
|
+
var tmp = this.v8_1;
|
|
2275
2361
|
switch (tmp) {
|
|
2276
2362
|
case 0:
|
|
2277
|
-
this.
|
|
2278
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2279
|
-
if (this.
|
|
2280
|
-
this.
|
|
2281
|
-
suspendResult = this.
|
|
2363
|
+
this.w8_1 = 3;
|
|
2364
|
+
rethrowCloseCauseIfNeeded_1(this.g3s_1);
|
|
2365
|
+
if (this.g3s_1.s3k() || get_size(this.g3s_1.u3k()) >= 1048576) {
|
|
2366
|
+
this.v8_1 = 1;
|
|
2367
|
+
suspendResult = this.g3s_1.r3k(this);
|
|
2282
2368
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2283
2369
|
return suspendResult;
|
|
2284
2370
|
}
|
|
2285
2371
|
continue $sm;
|
|
2286
2372
|
} else {
|
|
2287
|
-
this.
|
|
2373
|
+
this.v8_1 = 2;
|
|
2288
2374
|
continue $sm;
|
|
2289
2375
|
}
|
|
2290
2376
|
|
|
2291
2377
|
case 1:
|
|
2292
|
-
this.
|
|
2378
|
+
this.v8_1 = 2;
|
|
2293
2379
|
continue $sm;
|
|
2294
2380
|
case 2:
|
|
2295
2381
|
return Unit_instance;
|
|
2296
2382
|
case 3:
|
|
2297
|
-
throw this.
|
|
2383
|
+
throw this.y8_1;
|
|
2298
2384
|
}
|
|
2299
2385
|
} catch ($p) {
|
|
2300
2386
|
var e = $p;
|
|
2301
|
-
if (this.
|
|
2387
|
+
if (this.w8_1 === 3) {
|
|
2302
2388
|
throw e;
|
|
2303
2389
|
} else {
|
|
2304
|
-
this.
|
|
2305
|
-
this.
|
|
2390
|
+
this.v8_1 = this.w8_1;
|
|
2391
|
+
this.y8_1 = e;
|
|
2306
2392
|
}
|
|
2307
2393
|
}
|
|
2308
2394
|
while (true);
|
|
@@ -2310,7 +2396,7 @@ protoOf($flushIfNeededCOROUTINE$).v8 = function () {
|
|
|
2310
2396
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2311
2397
|
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2312
2398
|
return constructCallableReference(function ($completion) {
|
|
2313
|
-
return i.
|
|
2399
|
+
return i.l3s($completion);
|
|
2314
2400
|
}, 0, 1, 17, 'flushAndClose', [p0]);
|
|
2315
2401
|
}
|
|
2316
2402
|
function get_NO_CALLBACK() {
|
|
@@ -2319,11 +2405,11 @@ function get_NO_CALLBACK() {
|
|
|
2319
2405
|
}
|
|
2320
2406
|
var NO_CALLBACK;
|
|
2321
2407
|
function WriterJob(channel, job) {
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2408
|
+
this.t3m_1 = channel;
|
|
2409
|
+
this.u3m_1 = job;
|
|
2324
2410
|
}
|
|
2325
|
-
protoOf(WriterJob).
|
|
2326
|
-
return this.
|
|
2411
|
+
protoOf(WriterJob).i1q = function () {
|
|
2412
|
+
return this.u3m_1;
|
|
2327
2413
|
};
|
|
2328
2414
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2329
2415
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2332,16 +2418,16 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2332
2418
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2333
2419
|
}
|
|
2334
2420
|
function WriterScope(channel, coroutineContext) {
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2421
|
+
this.m3s_1 = channel;
|
|
2422
|
+
this.n3s_1 = coroutineContext;
|
|
2337
2423
|
}
|
|
2338
|
-
protoOf(WriterScope).
|
|
2339
|
-
return this.
|
|
2424
|
+
protoOf(WriterScope).w1m = function () {
|
|
2425
|
+
return this.n3s_1;
|
|
2340
2426
|
};
|
|
2341
2427
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2342
2428
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2343
2429
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2344
|
-
_this__u8e3s4.
|
|
2430
|
+
_this__u8e3s4.u3k().y3g(value, startIndex, endIndex);
|
|
2345
2431
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2346
2432
|
}
|
|
2347
2433
|
function close_0(_this__u8e3s4, cause) {
|
|
@@ -2349,19 +2435,19 @@ function close_0(_this__u8e3s4, cause) {
|
|
|
2349
2435
|
if (cause == null) {
|
|
2350
2436
|
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2351
2437
|
} else {
|
|
2352
|
-
_this__u8e3s4.
|
|
2438
|
+
_this__u8e3s4.b3l(cause);
|
|
2353
2439
|
}
|
|
2354
2440
|
}
|
|
2355
2441
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2356
2442
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2357
|
-
return _this__u8e3s4.
|
|
2443
|
+
return _this__u8e3s4.i1q().z1n(block);
|
|
2358
2444
|
}
|
|
2359
2445
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
2360
2446
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
2361
2447
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2362
2448
|
// Inline function 'kotlin.apply' call
|
|
2363
2449
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2364
|
-
this_0.
|
|
2450
|
+
this_0.z1n(writer$lambda(channel));
|
|
2365
2451
|
var job = this_0;
|
|
2366
2452
|
return new WriterJob(channel, job);
|
|
2367
2453
|
}
|
|
@@ -2370,107 +2456,107 @@ function fireAndForget(_this__u8e3s4) {
|
|
|
2370
2456
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2371
2457
|
}
|
|
2372
2458
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2373
|
-
_this__u8e3s4.
|
|
2459
|
+
_this__u8e3s4.u3k().i3h(value);
|
|
2374
2460
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2375
2461
|
}
|
|
2376
2462
|
function NO_CALLBACK$1() {
|
|
2377
|
-
this.
|
|
2463
|
+
this.o3s_1 = EmptyCoroutineContext_getInstance();
|
|
2378
2464
|
}
|
|
2379
|
-
protoOf(NO_CALLBACK$1).
|
|
2380
|
-
return this.
|
|
2465
|
+
protoOf(NO_CALLBACK$1).b9 = function () {
|
|
2466
|
+
return this.o3s_1;
|
|
2381
2467
|
};
|
|
2382
|
-
protoOf(NO_CALLBACK$1).
|
|
2468
|
+
protoOf(NO_CALLBACK$1).c9 = function (result) {
|
|
2383
2469
|
return Unit_instance;
|
|
2384
2470
|
};
|
|
2385
|
-
protoOf(NO_CALLBACK$1).
|
|
2386
|
-
return this.
|
|
2471
|
+
protoOf(NO_CALLBACK$1).g9 = function (result) {
|
|
2472
|
+
return this.c9(result);
|
|
2387
2473
|
};
|
|
2388
2474
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2389
2475
|
KFunctionImpl.call(this, 1, 1, 17);
|
|
2390
|
-
this.
|
|
2476
|
+
this.k3s_1 = p0;
|
|
2391
2477
|
}
|
|
2392
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).
|
|
2393
|
-
return this.
|
|
2478
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).l3s = function ($completion) {
|
|
2479
|
+
return this.k3s_1.a3l($completion);
|
|
2394
2480
|
};
|
|
2395
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).
|
|
2396
|
-
return this.
|
|
2481
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).p9 = function ($completion) {
|
|
2482
|
+
return this.l3s($completion);
|
|
2397
2483
|
};
|
|
2398
2484
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2399
|
-
this.
|
|
2400
|
-
this.
|
|
2485
|
+
this.x3s_1 = $block;
|
|
2486
|
+
this.y3s_1 = $channel;
|
|
2401
2487
|
CoroutineImpl.call(this, resultContinuation);
|
|
2402
2488
|
}
|
|
2403
|
-
protoOf(writer$slambda).
|
|
2404
|
-
var tmp = this.
|
|
2405
|
-
tmp.
|
|
2406
|
-
tmp.
|
|
2407
|
-
return tmp.
|
|
2489
|
+
protoOf(writer$slambda).g3t = function ($this$launch, $completion) {
|
|
2490
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
2491
|
+
tmp.x8_1 = Unit_instance;
|
|
2492
|
+
tmp.y8_1 = null;
|
|
2493
|
+
return tmp.d9();
|
|
2408
2494
|
};
|
|
2409
|
-
protoOf(writer$slambda).
|
|
2410
|
-
return this.
|
|
2495
|
+
protoOf(writer$slambda).q9 = function (p1, $completion) {
|
|
2496
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2411
2497
|
};
|
|
2412
|
-
protoOf(writer$slambda).
|
|
2413
|
-
var suspendResult = this.
|
|
2498
|
+
protoOf(writer$slambda).d9 = function () {
|
|
2499
|
+
var suspendResult = this.x8_1;
|
|
2414
2500
|
$sm: do
|
|
2415
2501
|
try {
|
|
2416
|
-
var tmp = this.
|
|
2502
|
+
var tmp = this.v8_1;
|
|
2417
2503
|
switch (tmp) {
|
|
2418
2504
|
case 0:
|
|
2419
|
-
this.
|
|
2420
|
-
this.
|
|
2421
|
-
this.
|
|
2505
|
+
this.w8_1 = 14;
|
|
2506
|
+
this.c3t_1 = Job(get_job(this.z3s_1.w1m()));
|
|
2507
|
+
this.v8_1 = 1;
|
|
2422
2508
|
continue $sm;
|
|
2423
2509
|
case 1:
|
|
2424
|
-
this.
|
|
2425
|
-
this.
|
|
2426
|
-
this.
|
|
2427
|
-
suspendResult = this.
|
|
2510
|
+
this.w8_1 = 4;
|
|
2511
|
+
this.w8_1 = 3;
|
|
2512
|
+
this.v8_1 = 2;
|
|
2513
|
+
suspendResult = this.x3s_1(new WriterScope(this.y3s_1, this.z3s_1.w1m().wh(this.c3t_1)), this);
|
|
2428
2514
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2429
2515
|
return suspendResult;
|
|
2430
2516
|
}
|
|
2431
2517
|
|
|
2432
2518
|
continue $sm;
|
|
2433
2519
|
case 2:
|
|
2434
|
-
this.
|
|
2520
|
+
this.c3t_1.f1v();
|
|
2435
2521
|
var tmp_0;
|
|
2436
|
-
if (get_job(this.
|
|
2437
|
-
this.
|
|
2522
|
+
if (get_job(this.z3s_1.w1m()).t1n()) {
|
|
2523
|
+
this.y3s_1.b3l(get_job(this.z3s_1.w1m()).w1n());
|
|
2438
2524
|
tmp_0 = Unit_instance;
|
|
2439
2525
|
}
|
|
2440
2526
|
|
|
2441
|
-
this.
|
|
2442
|
-
this.
|
|
2527
|
+
this.w8_1 = 14;
|
|
2528
|
+
this.v8_1 = 9;
|
|
2443
2529
|
continue $sm;
|
|
2444
2530
|
case 3:
|
|
2445
|
-
this.
|
|
2446
|
-
var tmp_1 = this.
|
|
2531
|
+
this.w8_1 = 4;
|
|
2532
|
+
var tmp_1 = this.y8_1;
|
|
2447
2533
|
if (tmp_1 instanceof Error) {
|
|
2448
|
-
var cause = this.
|
|
2449
|
-
cancel(this.
|
|
2450
|
-
this.
|
|
2451
|
-
this.
|
|
2452
|
-
this.
|
|
2534
|
+
var cause = this.y8_1;
|
|
2535
|
+
cancel(this.c3t_1, 'Exception thrown while writing to channel', cause);
|
|
2536
|
+
this.y3s_1.b3l(cause);
|
|
2537
|
+
this.w8_1 = 14;
|
|
2538
|
+
this.v8_1 = 9;
|
|
2453
2539
|
continue $sm;
|
|
2454
2540
|
} else {
|
|
2455
|
-
throw this.
|
|
2541
|
+
throw this.y8_1;
|
|
2456
2542
|
}
|
|
2457
2543
|
|
|
2458
2544
|
case 4:
|
|
2459
|
-
this.
|
|
2460
|
-
this.
|
|
2461
|
-
this.
|
|
2462
|
-
suspendResult = this.
|
|
2545
|
+
this.w8_1 = 14;
|
|
2546
|
+
this.d3t_1 = this.y8_1;
|
|
2547
|
+
this.v8_1 = 5;
|
|
2548
|
+
suspendResult = this.c3t_1.d1o(this);
|
|
2463
2549
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2464
2550
|
return suspendResult;
|
|
2465
2551
|
}
|
|
2466
2552
|
|
|
2467
2553
|
continue $sm;
|
|
2468
2554
|
case 5:
|
|
2469
|
-
this.
|
|
2470
|
-
this.
|
|
2471
|
-
this.
|
|
2472
|
-
this.
|
|
2473
|
-
suspendResult = this.
|
|
2555
|
+
this.z3s_1;
|
|
2556
|
+
this.w8_1 = 7;
|
|
2557
|
+
this.f3t_1 = Companion_instance;
|
|
2558
|
+
this.v8_1 = 6;
|
|
2559
|
+
suspendResult = this.y3s_1.a3l(this);
|
|
2474
2560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2475
2561
|
return suspendResult;
|
|
2476
2562
|
}
|
|
@@ -2478,42 +2564,42 @@ protoOf(writer$slambda).v8 = function () {
|
|
|
2478
2564
|
continue $sm;
|
|
2479
2565
|
case 6:
|
|
2480
2566
|
var tmp_2 = this;
|
|
2481
|
-
this.
|
|
2482
|
-
tmp_2.
|
|
2483
|
-
this.
|
|
2484
|
-
this.
|
|
2567
|
+
this.f3t_1;
|
|
2568
|
+
tmp_2.e3t_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2569
|
+
this.w8_1 = 14;
|
|
2570
|
+
this.v8_1 = 8;
|
|
2485
2571
|
continue $sm;
|
|
2486
2572
|
case 7:
|
|
2487
|
-
this.
|
|
2488
|
-
var tmp_3 = this.
|
|
2573
|
+
this.w8_1 = 14;
|
|
2574
|
+
var tmp_3 = this.y8_1;
|
|
2489
2575
|
if (tmp_3 instanceof Error) {
|
|
2490
|
-
var e = this.
|
|
2576
|
+
var e = this.y8_1;
|
|
2491
2577
|
var tmp_4 = this;
|
|
2492
|
-
tmp_4.
|
|
2493
|
-
this.
|
|
2578
|
+
tmp_4.e3t_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2579
|
+
this.v8_1 = 8;
|
|
2494
2580
|
continue $sm;
|
|
2495
2581
|
} else {
|
|
2496
|
-
throw this.
|
|
2582
|
+
throw this.y8_1;
|
|
2497
2583
|
}
|
|
2498
2584
|
|
|
2499
2585
|
case 8:
|
|
2500
|
-
this.
|
|
2501
|
-
throw this.
|
|
2586
|
+
this.w8_1 = 14;
|
|
2587
|
+
throw this.d3t_1;
|
|
2502
2588
|
case 9:
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
suspendResult = this.
|
|
2589
|
+
this.w8_1 = 14;
|
|
2590
|
+
this.v8_1 = 10;
|
|
2591
|
+
suspendResult = this.c3t_1.d1o(this);
|
|
2506
2592
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2507
2593
|
return suspendResult;
|
|
2508
2594
|
}
|
|
2509
2595
|
|
|
2510
2596
|
continue $sm;
|
|
2511
2597
|
case 10:
|
|
2512
|
-
this.
|
|
2513
|
-
this.
|
|
2514
|
-
this.
|
|
2515
|
-
this.
|
|
2516
|
-
suspendResult = this.
|
|
2598
|
+
this.z3s_1;
|
|
2599
|
+
this.w8_1 = 12;
|
|
2600
|
+
this.b3t_1 = Companion_instance;
|
|
2601
|
+
this.v8_1 = 11;
|
|
2602
|
+
suspendResult = this.y3s_1.a3l(this);
|
|
2517
2603
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2518
2604
|
return suspendResult;
|
|
2519
2605
|
}
|
|
@@ -2521,57 +2607,57 @@ protoOf(writer$slambda).v8 = function () {
|
|
|
2521
2607
|
continue $sm;
|
|
2522
2608
|
case 11:
|
|
2523
2609
|
var tmp_5 = this;
|
|
2524
|
-
this.
|
|
2525
|
-
tmp_5.
|
|
2526
|
-
this.
|
|
2527
|
-
this.
|
|
2610
|
+
this.b3t_1;
|
|
2611
|
+
tmp_5.a3t_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2612
|
+
this.w8_1 = 14;
|
|
2613
|
+
this.v8_1 = 13;
|
|
2528
2614
|
continue $sm;
|
|
2529
2615
|
case 12:
|
|
2530
|
-
this.
|
|
2531
|
-
var tmp_6 = this.
|
|
2616
|
+
this.w8_1 = 14;
|
|
2617
|
+
var tmp_6 = this.y8_1;
|
|
2532
2618
|
if (tmp_6 instanceof Error) {
|
|
2533
|
-
var e_0 = this.
|
|
2619
|
+
var e_0 = this.y8_1;
|
|
2534
2620
|
var tmp_7 = this;
|
|
2535
|
-
tmp_7.
|
|
2536
|
-
this.
|
|
2621
|
+
tmp_7.a3t_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2622
|
+
this.v8_1 = 13;
|
|
2537
2623
|
continue $sm;
|
|
2538
2624
|
} else {
|
|
2539
|
-
throw this.
|
|
2625
|
+
throw this.y8_1;
|
|
2540
2626
|
}
|
|
2541
2627
|
|
|
2542
2628
|
case 13:
|
|
2543
|
-
this.
|
|
2629
|
+
this.w8_1 = 14;
|
|
2544
2630
|
return Unit_instance;
|
|
2545
2631
|
case 14:
|
|
2546
|
-
throw this.
|
|
2632
|
+
throw this.y8_1;
|
|
2547
2633
|
}
|
|
2548
2634
|
} catch ($p) {
|
|
2549
2635
|
var e_1 = $p;
|
|
2550
|
-
if (this.
|
|
2636
|
+
if (this.w8_1 === 14) {
|
|
2551
2637
|
throw e_1;
|
|
2552
2638
|
} else {
|
|
2553
|
-
this.
|
|
2554
|
-
this.
|
|
2639
|
+
this.v8_1 = this.w8_1;
|
|
2640
|
+
this.y8_1 = e_1;
|
|
2555
2641
|
}
|
|
2556
2642
|
}
|
|
2557
2643
|
while (true);
|
|
2558
2644
|
};
|
|
2559
|
-
protoOf(writer$slambda).
|
|
2560
|
-
var i = new writer$slambda(this.
|
|
2561
|
-
i.
|
|
2645
|
+
protoOf(writer$slambda).h3t = function ($this$launch, completion) {
|
|
2646
|
+
var i = new writer$slambda(this.x3s_1, this.y3s_1, completion);
|
|
2647
|
+
i.z3s_1 = $this$launch;
|
|
2562
2648
|
return i;
|
|
2563
2649
|
};
|
|
2564
2650
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2565
2651
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2566
2652
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2567
|
-
return i.
|
|
2653
|
+
return i.g3t($this$launch, $completion);
|
|
2568
2654
|
}, 1);
|
|
2569
2655
|
}
|
|
2570
2656
|
function writer$lambda($channel) {
|
|
2571
2657
|
return function (it) {
|
|
2572
2658
|
var tmp;
|
|
2573
|
-
if (!(it == null) && !$channel.
|
|
2574
|
-
$channel.
|
|
2659
|
+
if (!(it == null) && !$channel.v3k()) {
|
|
2660
|
+
$channel.b3l(it);
|
|
2575
2661
|
tmp = Unit_instance;
|
|
2576
2662
|
}
|
|
2577
2663
|
return Unit_instance;
|
|
@@ -2596,10 +2682,10 @@ function Companion_getInstance_1() {
|
|
|
2596
2682
|
return Companion_instance_2;
|
|
2597
2683
|
}
|
|
2598
2684
|
function access$_get_origin__hdh1qz($this) {
|
|
2599
|
-
return $this.
|
|
2685
|
+
return $this.i3t_1;
|
|
2600
2686
|
}
|
|
2601
2687
|
function CloseToken(origin) {
|
|
2602
|
-
this.
|
|
2688
|
+
this.i3t_1 = origin;
|
|
2603
2689
|
}
|
|
2604
2690
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2605
2691
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
@@ -2610,32 +2696,32 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2610
2696
|
}
|
|
2611
2697
|
function transferFromDelegate($this) {
|
|
2612
2698
|
updateConsumed($this);
|
|
2613
|
-
var appended = $this.
|
|
2614
|
-
$this.
|
|
2699
|
+
var appended = $this.k3t_1.h3h($this.j3t_1.t3k());
|
|
2700
|
+
$this.l3t_1 = add($this.l3t_1, appended);
|
|
2615
2701
|
}
|
|
2616
2702
|
function updateConsumed($this) {
|
|
2617
|
-
$this.
|
|
2618
|
-
$this.
|
|
2703
|
+
$this.m3t_1 = add($this.m3t_1, subtract($this.l3t_1, $this.k3t_1.e1()));
|
|
2704
|
+
$this.l3t_1 = $this.k3t_1.e1();
|
|
2619
2705
|
}
|
|
2620
2706
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2621
2707
|
CoroutineImpl.call(this, resultContinuation);
|
|
2622
|
-
this.
|
|
2623
|
-
this.
|
|
2708
|
+
this.v3t_1 = _this__u8e3s4;
|
|
2709
|
+
this.w3t_1 = min;
|
|
2624
2710
|
}
|
|
2625
|
-
protoOf($awaitContentCOROUTINE$_0).
|
|
2626
|
-
var suspendResult = this.
|
|
2711
|
+
protoOf($awaitContentCOROUTINE$_0).d9 = function () {
|
|
2712
|
+
var suspendResult = this.x8_1;
|
|
2627
2713
|
$sm: do
|
|
2628
2714
|
try {
|
|
2629
|
-
var tmp = this.
|
|
2715
|
+
var tmp = this.v8_1;
|
|
2630
2716
|
switch (tmp) {
|
|
2631
2717
|
case 0:
|
|
2632
|
-
this.
|
|
2633
|
-
if (compare(this.
|
|
2718
|
+
this.w8_1 = 3;
|
|
2719
|
+
if (compare(this.v3t_1.t3k().e1(), fromInt(this.w3t_1)) >= 0) {
|
|
2634
2720
|
return true;
|
|
2635
2721
|
}
|
|
2636
2722
|
|
|
2637
|
-
this.
|
|
2638
|
-
suspendResult = this.
|
|
2723
|
+
this.v8_1 = 1;
|
|
2724
|
+
suspendResult = this.v3t_1.j3t_1.y3k(this.w3t_1, this);
|
|
2639
2725
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2640
2726
|
return suspendResult;
|
|
2641
2727
|
}
|
|
@@ -2643,64 +2729,64 @@ protoOf($awaitContentCOROUTINE$_0).v8 = function () {
|
|
|
2643
2729
|
continue $sm;
|
|
2644
2730
|
case 1:
|
|
2645
2731
|
if (suspendResult) {
|
|
2646
|
-
transferFromDelegate(this.
|
|
2732
|
+
transferFromDelegate(this.v3t_1);
|
|
2647
2733
|
return true;
|
|
2648
2734
|
} else {
|
|
2649
|
-
this.
|
|
2735
|
+
this.v8_1 = 2;
|
|
2650
2736
|
continue $sm;
|
|
2651
2737
|
}
|
|
2652
2738
|
|
|
2653
2739
|
case 2:
|
|
2654
2740
|
return false;
|
|
2655
2741
|
case 3:
|
|
2656
|
-
throw this.
|
|
2742
|
+
throw this.y8_1;
|
|
2657
2743
|
}
|
|
2658
2744
|
} catch ($p) {
|
|
2659
2745
|
var e = $p;
|
|
2660
|
-
if (this.
|
|
2746
|
+
if (this.w8_1 === 3) {
|
|
2661
2747
|
throw e;
|
|
2662
2748
|
} else {
|
|
2663
|
-
this.
|
|
2664
|
-
this.
|
|
2749
|
+
this.v8_1 = this.w8_1;
|
|
2750
|
+
this.y8_1 = e;
|
|
2665
2751
|
}
|
|
2666
2752
|
}
|
|
2667
2753
|
while (true);
|
|
2668
2754
|
};
|
|
2669
2755
|
function CountedByteReadChannel(delegate) {
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2672
|
-
this.
|
|
2673
|
-
this.
|
|
2756
|
+
this.j3t_1 = delegate;
|
|
2757
|
+
this.k3t_1 = new Buffer();
|
|
2758
|
+
this.l3t_1 = new Long(0, 0);
|
|
2759
|
+
this.m3t_1 = new Long(0, 0);
|
|
2674
2760
|
}
|
|
2675
|
-
protoOf(CountedByteReadChannel).
|
|
2761
|
+
protoOf(CountedByteReadChannel).x3t = function () {
|
|
2676
2762
|
updateConsumed(this);
|
|
2677
|
-
return this.
|
|
2763
|
+
return this.m3t_1;
|
|
2678
2764
|
};
|
|
2679
|
-
protoOf(CountedByteReadChannel).
|
|
2680
|
-
return this.
|
|
2765
|
+
protoOf(CountedByteReadChannel).w3k = function () {
|
|
2766
|
+
return this.j3t_1.w3k();
|
|
2681
2767
|
};
|
|
2682
|
-
protoOf(CountedByteReadChannel).
|
|
2683
|
-
return this.
|
|
2768
|
+
protoOf(CountedByteReadChannel).x3k = function () {
|
|
2769
|
+
return this.k3t_1.p3f() && this.j3t_1.x3k();
|
|
2684
2770
|
};
|
|
2685
|
-
protoOf(CountedByteReadChannel).
|
|
2771
|
+
protoOf(CountedByteReadChannel).t3k = function () {
|
|
2686
2772
|
transferFromDelegate(this);
|
|
2687
|
-
return this.
|
|
2773
|
+
return this.k3t_1;
|
|
2688
2774
|
};
|
|
2689
|
-
protoOf(CountedByteReadChannel).
|
|
2775
|
+
protoOf(CountedByteReadChannel).y3k = function (min, $completion) {
|
|
2690
2776
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2691
|
-
tmp.
|
|
2692
|
-
tmp.
|
|
2693
|
-
return tmp.
|
|
2777
|
+
tmp.x8_1 = Unit_instance;
|
|
2778
|
+
tmp.y8_1 = null;
|
|
2779
|
+
return tmp.d9();
|
|
2694
2780
|
};
|
|
2695
|
-
protoOf(CountedByteReadChannel).
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2781
|
+
protoOf(CountedByteReadChannel).b3l = function (cause) {
|
|
2782
|
+
this.j3t_1.b3l(cause);
|
|
2783
|
+
this.k3t_1.d4();
|
|
2698
2784
|
};
|
|
2699
2785
|
function counted(_this__u8e3s4) {
|
|
2700
2786
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
2701
2787
|
}
|
|
2702
2788
|
function readText(_this__u8e3s4) {
|
|
2703
|
-
return
|
|
2789
|
+
return readString_1(_this__u8e3s4);
|
|
2704
2790
|
}
|
|
2705
2791
|
function ClosedByteChannelException(cause) {
|
|
2706
2792
|
cause = cause === VOID ? null : cause;
|
|
@@ -2752,21 +2838,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2752
2838
|
}
|
|
2753
2839
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2754
2840
|
var tmp;
|
|
2755
|
-
if ($this === Companion_getInstance_2().
|
|
2841
|
+
if ($this === Companion_getInstance_2().y3t_1) {
|
|
2756
2842
|
tmp = 'CR';
|
|
2757
|
-
} else if ($this === Companion_getInstance_2().
|
|
2843
|
+
} else if ($this === Companion_getInstance_2().z3t_1) {
|
|
2758
2844
|
tmp = 'LF';
|
|
2759
|
-
} else if ($this === Companion_getInstance_2().
|
|
2845
|
+
} else if ($this === Companion_getInstance_2().a3u_1) {
|
|
2760
2846
|
tmp = 'CRLF';
|
|
2761
2847
|
} else {
|
|
2762
2848
|
// Inline function 'kotlin.collections.filter' call
|
|
2763
|
-
var tmp0 = Companion_getInstance_2().
|
|
2849
|
+
var tmp0 = Companion_getInstance_2().c3u_1;
|
|
2764
2850
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2765
2851
|
var destination = ArrayList_init_$Create$();
|
|
2766
2852
|
var _iterator__ex2g4s = tmp0.t();
|
|
2767
2853
|
while (_iterator__ex2g4s.u()) {
|
|
2768
2854
|
var element = _iterator__ex2g4s.v();
|
|
2769
|
-
var it = element.
|
|
2855
|
+
var it = element.d3u_1;
|
|
2770
2856
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2771
2857
|
destination.b1(element);
|
|
2772
2858
|
}
|
|
@@ -2777,11 +2863,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2777
2863
|
}
|
|
2778
2864
|
function Companion_2() {
|
|
2779
2865
|
Companion_instance_3 = this;
|
|
2780
|
-
this.
|
|
2781
|
-
this.
|
|
2782
|
-
this.
|
|
2783
|
-
this.
|
|
2784
|
-
this.
|
|
2866
|
+
this.y3t_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2867
|
+
this.z3t_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2868
|
+
this.a3u_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2869
|
+
this.b3u_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2870
|
+
this.c3u_1 = listOf([new LineEndingMode(this.y3t_1), new LineEndingMode(this.z3t_1), new LineEndingMode(this.a3u_1)]);
|
|
2785
2871
|
}
|
|
2786
2872
|
var Companion_instance_3;
|
|
2787
2873
|
function Companion_getInstance_2() {
|
|
@@ -2795,29 +2881,29 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2795
2881
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2796
2882
|
if (!(other instanceof LineEndingMode))
|
|
2797
2883
|
return false;
|
|
2798
|
-
if (!($this === other.
|
|
2884
|
+
if (!($this === other.d3u_1))
|
|
2799
2885
|
return false;
|
|
2800
2886
|
return true;
|
|
2801
2887
|
}
|
|
2802
2888
|
function LineEndingMode(mode) {
|
|
2803
2889
|
Companion_getInstance_2();
|
|
2804
|
-
this.
|
|
2890
|
+
this.d3u_1 = mode;
|
|
2805
2891
|
}
|
|
2806
2892
|
protoOf(LineEndingMode).toString = function () {
|
|
2807
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2893
|
+
return LineEndingMode__toString_impl_j4h76r(this.d3u_1);
|
|
2808
2894
|
};
|
|
2809
2895
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2810
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2896
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.d3u_1);
|
|
2811
2897
|
};
|
|
2812
2898
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2813
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2899
|
+
return LineEndingMode__equals_impl_qyr4nk(this.d3u_1, other);
|
|
2814
2900
|
};
|
|
2815
2901
|
function SourceByteReadChannel(source) {
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2902
|
+
this.e3u_1 = source;
|
|
2903
|
+
this.f3u_1 = null;
|
|
2818
2904
|
}
|
|
2819
|
-
protoOf(SourceByteReadChannel).
|
|
2820
|
-
var tmp0_safe_receiver = this.
|
|
2905
|
+
protoOf(SourceByteReadChannel).w3k = function () {
|
|
2906
|
+
var tmp0_safe_receiver = this.f3u_1;
|
|
2821
2907
|
var tmp;
|
|
2822
2908
|
if (tmp0_safe_receiver == null) {
|
|
2823
2909
|
tmp = null;
|
|
@@ -2829,7 +2915,7 @@ protoOf(SourceByteReadChannel).k33 = function () {
|
|
|
2829
2915
|
tmp_0 = null;
|
|
2830
2916
|
} else {
|
|
2831
2917
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2832
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
2918
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).o1v();
|
|
2833
2919
|
} else {
|
|
2834
2920
|
if (tmp0_subject instanceof CancellationException) {
|
|
2835
2921
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -2843,42 +2929,42 @@ protoOf(SourceByteReadChannel).k33 = function () {
|
|
|
2843
2929
|
}
|
|
2844
2930
|
return tmp;
|
|
2845
2931
|
};
|
|
2846
|
-
protoOf(SourceByteReadChannel).
|
|
2847
|
-
return this.
|
|
2932
|
+
protoOf(SourceByteReadChannel).x3k = function () {
|
|
2933
|
+
return this.e3u_1.p3f();
|
|
2848
2934
|
};
|
|
2849
|
-
protoOf(SourceByteReadChannel).
|
|
2850
|
-
var tmp0_safe_receiver = this.
|
|
2935
|
+
protoOf(SourceByteReadChannel).t3k = function () {
|
|
2936
|
+
var tmp0_safe_receiver = this.w3k();
|
|
2851
2937
|
if (tmp0_safe_receiver == null)
|
|
2852
2938
|
null;
|
|
2853
2939
|
else {
|
|
2854
2940
|
// Inline function 'kotlin.let' call
|
|
2855
2941
|
throw tmp0_safe_receiver;
|
|
2856
2942
|
}
|
|
2857
|
-
return this.
|
|
2943
|
+
return this.e3u_1.o3f();
|
|
2858
2944
|
};
|
|
2859
|
-
protoOf(SourceByteReadChannel).
|
|
2860
|
-
var tmp0_safe_receiver = this.
|
|
2945
|
+
protoOf(SourceByteReadChannel).y3k = function (min, $completion) {
|
|
2946
|
+
var tmp0_safe_receiver = this.w3k();
|
|
2861
2947
|
if (tmp0_safe_receiver == null)
|
|
2862
2948
|
null;
|
|
2863
2949
|
else {
|
|
2864
2950
|
// Inline function 'kotlin.let' call
|
|
2865
2951
|
throw tmp0_safe_receiver;
|
|
2866
2952
|
}
|
|
2867
|
-
return this.
|
|
2953
|
+
return this.e3u_1.r3f(fromInt(min));
|
|
2868
2954
|
};
|
|
2869
|
-
protoOf(SourceByteReadChannel).
|
|
2870
|
-
if (!(this.
|
|
2955
|
+
protoOf(SourceByteReadChannel).b3l = function (cause) {
|
|
2956
|
+
if (!(this.f3u_1 == null))
|
|
2871
2957
|
return Unit_instance;
|
|
2872
|
-
this.
|
|
2958
|
+
this.e3u_1.d4();
|
|
2873
2959
|
var tmp = this;
|
|
2874
2960
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2875
|
-
tmp.
|
|
2961
|
+
tmp.f3u_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2876
2962
|
};
|
|
2877
2963
|
function decode(_this__u8e3s4, input, max) {
|
|
2878
2964
|
max = max === VOID ? 2147483647 : max;
|
|
2879
2965
|
var tmp0 = fromInt(max);
|
|
2880
2966
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2881
|
-
var b = input.
|
|
2967
|
+
var b = input.o3f().e1();
|
|
2882
2968
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2883
2969
|
// Inline function 'kotlin.text.buildString' call
|
|
2884
2970
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2915,44 +3001,44 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
2915
3001
|
}
|
|
2916
3002
|
}
|
|
2917
3003
|
function canRead(_this__u8e3s4) {
|
|
2918
|
-
return !_this__u8e3s4.
|
|
3004
|
+
return !_this__u8e3s4.p3f();
|
|
2919
3005
|
}
|
|
2920
3006
|
function readBytes(_this__u8e3s4, count) {
|
|
2921
|
-
count = count === VOID ? convertToInt(_this__u8e3s4.
|
|
3007
|
+
count = count === VOID ? convertToInt(_this__u8e3s4.e1()) : count;
|
|
2922
3008
|
return readByteArray(_this__u8e3s4, count);
|
|
2923
3009
|
}
|
|
2924
3010
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2925
3011
|
offset = offset === VOID ? 0 : offset;
|
|
2926
3012
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2927
|
-
_this__u8e3s4.
|
|
3013
|
+
_this__u8e3s4.y3g(buffer, offset, offset + length | 0);
|
|
2928
3014
|
}
|
|
2929
3015
|
function BytePacketBuilder() {
|
|
2930
3016
|
return new Buffer();
|
|
2931
3017
|
}
|
|
2932
3018
|
function build(_this__u8e3s4) {
|
|
2933
|
-
return _this__u8e3s4.
|
|
3019
|
+
return _this__u8e3s4.o3f();
|
|
2934
3020
|
}
|
|
2935
3021
|
function get_size(_this__u8e3s4) {
|
|
2936
|
-
return convertToInt(_this__u8e3s4.
|
|
3022
|
+
return convertToInt(_this__u8e3s4.o3f().e1());
|
|
2937
3023
|
}
|
|
2938
3024
|
var ByteReadPacketEmpty;
|
|
2939
3025
|
function get_remaining(_this__u8e3s4) {
|
|
2940
3026
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2941
|
-
return _this__u8e3s4.
|
|
3027
|
+
return _this__u8e3s4.o3f().e1();
|
|
2942
3028
|
}
|
|
2943
3029
|
function takeWhile(_this__u8e3s4, block) {
|
|
2944
3030
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2945
|
-
while (!_this__u8e3s4.
|
|
3031
|
+
while (!_this__u8e3s4.p3f() && block(_this__u8e3s4.o3f())) {
|
|
2946
3032
|
}
|
|
2947
3033
|
}
|
|
2948
3034
|
function discard_0(_this__u8e3s4, count) {
|
|
2949
3035
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2950
3036
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2951
|
-
_this__u8e3s4.
|
|
3037
|
+
_this__u8e3s4.r3f(count);
|
|
2952
3038
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2953
3039
|
var b = get_remaining(_this__u8e3s4);
|
|
2954
3040
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
2955
|
-
_this__u8e3s4.
|
|
3041
|
+
_this__u8e3s4.o3f().m3g(countToDiscard);
|
|
2956
3042
|
return countToDiscard;
|
|
2957
3043
|
}
|
|
2958
3044
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2965,37 +3051,23 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
2965
3051
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2966
3052
|
offset = offset === VOID ? 0 : offset;
|
|
2967
3053
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2968
|
-
var result = _this__u8e3s4.
|
|
3054
|
+
var result = _this__u8e3s4.n3g(buffer, offset, offset + length | 0);
|
|
2969
3055
|
return result === -1 ? 0 : result;
|
|
2970
3056
|
}
|
|
2971
|
-
function readText_0(_this__u8e3s4, charset, max) {
|
|
2972
|
-
charset = charset === VOID ? Charsets_getInstance().q3c_1 : charset;
|
|
2973
|
-
max = max === VOID ? 2147483647 : max;
|
|
2974
|
-
if (charset.equals(Charsets_getInstance().q3c_1)) {
|
|
2975
|
-
if (max === 2147483647)
|
|
2976
|
-
return readString_0(_this__u8e3s4);
|
|
2977
|
-
var tmp0 = _this__u8e3s4.d2y().d1();
|
|
2978
|
-
// Inline function 'kotlin.math.min' call
|
|
2979
|
-
var b = fromInt(max);
|
|
2980
|
-
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2981
|
-
return readString(_this__u8e3s4, count);
|
|
2982
|
-
}
|
|
2983
|
-
return decode(charset.t3c(), _this__u8e3s4, max);
|
|
2984
|
-
}
|
|
2985
3057
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2986
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2987
|
-
if (charset.equals(Charsets_getInstance().
|
|
2988
|
-
return encodeToByteArray(_this__u8e3s4
|
|
2989
|
-
return encodeToByteArray_0(charset.
|
|
3058
|
+
charset = charset === VOID ? Charsets_getInstance().g3u_1 : charset;
|
|
3059
|
+
if (charset.equals(Charsets_getInstance().g3u_1))
|
|
3060
|
+
return encodeToByteArray(_this__u8e3s4);
|
|
3061
|
+
return encodeToByteArray_0(charset.j3u(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2990
3062
|
}
|
|
2991
3063
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2992
3064
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2993
3065
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2994
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2995
|
-
if (charset === Charsets_getInstance().
|
|
3066
|
+
charset = charset === VOID ? Charsets_getInstance().g3u_1 : charset;
|
|
3067
|
+
if (charset === Charsets_getInstance().g3u_1) {
|
|
2996
3068
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2997
3069
|
}
|
|
2998
|
-
encodeToImpl(charset.
|
|
3070
|
+
encodeToImpl(charset.j3u(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2999
3071
|
}
|
|
3000
3072
|
function get_ByteArrayPool() {
|
|
3001
3073
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3005,7 +3077,7 @@ var ByteArrayPool;
|
|
|
3005
3077
|
function ByteArrayPool$1() {
|
|
3006
3078
|
DefaultPool.call(this, 128);
|
|
3007
3079
|
}
|
|
3008
|
-
protoOf(ByteArrayPool$1).
|
|
3080
|
+
protoOf(ByteArrayPool$1).n3u = function () {
|
|
3009
3081
|
return new Int8Array(4096);
|
|
3010
3082
|
};
|
|
3011
3083
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3019,21 +3091,21 @@ function ObjectPool() {
|
|
|
3019
3091
|
}
|
|
3020
3092
|
function NoPoolImpl() {
|
|
3021
3093
|
}
|
|
3022
|
-
protoOf(NoPoolImpl).
|
|
3094
|
+
protoOf(NoPoolImpl).v3u = function (instance) {
|
|
3023
3095
|
return Unit_instance;
|
|
3024
3096
|
};
|
|
3025
|
-
protoOf(NoPoolImpl).
|
|
3097
|
+
protoOf(NoPoolImpl).u1p = function () {
|
|
3026
3098
|
return Unit_instance;
|
|
3027
3099
|
};
|
|
3028
3100
|
function Companion_3() {
|
|
3029
3101
|
}
|
|
3030
|
-
protoOf(Companion_3).
|
|
3102
|
+
protoOf(Companion_3).w3u = function (name) {
|
|
3031
3103
|
switch (name) {
|
|
3032
3104
|
case 'UTF-8':
|
|
3033
3105
|
case 'utf-8':
|
|
3034
3106
|
case 'UTF8':
|
|
3035
3107
|
case 'utf8':
|
|
3036
|
-
return Charsets_getInstance().
|
|
3108
|
+
return Charsets_getInstance().g3u_1;
|
|
3037
3109
|
}
|
|
3038
3110
|
var tmp;
|
|
3039
3111
|
var tmp_0;
|
|
@@ -3064,7 +3136,7 @@ protoOf(Companion_3).h3d = function (name) {
|
|
|
3064
3136
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3065
3137
|
}
|
|
3066
3138
|
if (tmp) {
|
|
3067
|
-
return Charsets_getInstance().
|
|
3139
|
+
return Charsets_getInstance().h3u_1;
|
|
3068
3140
|
}
|
|
3069
3141
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3070
3142
|
};
|
|
@@ -3073,7 +3145,7 @@ function Companion_getInstance_3() {
|
|
|
3073
3145
|
return Companion_instance_4;
|
|
3074
3146
|
}
|
|
3075
3147
|
function Charset(_name) {
|
|
3076
|
-
this.
|
|
3148
|
+
this.i3u_1 = _name;
|
|
3077
3149
|
}
|
|
3078
3150
|
protoOf(Charset).equals = function (other) {
|
|
3079
3151
|
if (this === other)
|
|
@@ -3082,18 +3154,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3082
3154
|
return false;
|
|
3083
3155
|
if (!(other instanceof Charset))
|
|
3084
3156
|
THROW_CCE();
|
|
3085
|
-
return this.
|
|
3157
|
+
return this.i3u_1 === other.i3u_1;
|
|
3086
3158
|
};
|
|
3087
3159
|
protoOf(Charset).hashCode = function () {
|
|
3088
|
-
return getStringHashCode(this.
|
|
3160
|
+
return getStringHashCode(this.i3u_1);
|
|
3089
3161
|
};
|
|
3090
3162
|
protoOf(Charset).toString = function () {
|
|
3091
|
-
return this.
|
|
3163
|
+
return this.i3u_1;
|
|
3092
3164
|
};
|
|
3093
3165
|
function Charsets() {
|
|
3094
3166
|
Charsets_instance = this;
|
|
3095
|
-
this.
|
|
3096
|
-
this.
|
|
3167
|
+
this.g3u_1 = new CharsetImpl('UTF-8');
|
|
3168
|
+
this.h3u_1 = new CharsetImpl('ISO-8859-1');
|
|
3097
3169
|
}
|
|
3098
3170
|
var Charsets_instance;
|
|
3099
3171
|
function Charsets_getInstance() {
|
|
@@ -3102,24 +3174,24 @@ function Charsets_getInstance() {
|
|
|
3102
3174
|
return Charsets_instance;
|
|
3103
3175
|
}
|
|
3104
3176
|
function get_name(_this__u8e3s4) {
|
|
3105
|
-
return _this__u8e3s4.
|
|
3177
|
+
return _this__u8e3s4.i3u_1;
|
|
3106
3178
|
}
|
|
3107
3179
|
function MalformedInputException(message) {
|
|
3108
3180
|
IOException_init_$Init$_0(message, this);
|
|
3109
3181
|
captureStack(this, MalformedInputException);
|
|
3110
3182
|
}
|
|
3111
3183
|
function CharsetDecoder(_charset) {
|
|
3112
|
-
this.
|
|
3184
|
+
this.y3u_1 = _charset;
|
|
3113
3185
|
}
|
|
3114
3186
|
function forName(_this__u8e3s4, name) {
|
|
3115
|
-
return Companion_instance_4.
|
|
3187
|
+
return Companion_instance_4.w3u(name);
|
|
3116
3188
|
}
|
|
3117
3189
|
function CharsetEncoder(_charset) {
|
|
3118
|
-
this.
|
|
3190
|
+
this.z3u_1 = _charset;
|
|
3119
3191
|
}
|
|
3120
3192
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3121
3193
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3122
|
-
var tmp0 = input.
|
|
3194
|
+
var tmp0 = input.o3f().e1();
|
|
3123
3195
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3124
3196
|
var b = fromInt(max);
|
|
3125
3197
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3129,7 +3201,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3129
3201
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3130
3202
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3131
3203
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3132
|
-
tmp = decoder.
|
|
3204
|
+
tmp = decoder.a3v(array);
|
|
3133
3205
|
} catch ($p) {
|
|
3134
3206
|
var tmp_0;
|
|
3135
3207
|
if ($p instanceof Error) {
|
|
@@ -3151,11 +3223,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3151
3223
|
var message = 'Failed requirement.';
|
|
3152
3224
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3153
3225
|
}
|
|
3154
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3226
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().h3u_1)) {
|
|
3155
3227
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3156
3228
|
}
|
|
3157
3229
|
// Inline function 'kotlin.require' call
|
|
3158
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3230
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().g3u_1)) {
|
|
3159
3231
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3160
3232
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3161
3233
|
}
|
|
@@ -3165,7 +3237,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3165
3237
|
var result = encoder.encode(tmp$ret$5);
|
|
3166
3238
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3167
3239
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3168
|
-
dst.
|
|
3240
|
+
dst.b3h(result);
|
|
3169
3241
|
return result.length;
|
|
3170
3242
|
}
|
|
3171
3243
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3176,17 +3248,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3176
3248
|
function CharsetImpl(name) {
|
|
3177
3249
|
Charset.call(this, name);
|
|
3178
3250
|
}
|
|
3179
|
-
protoOf(CharsetImpl).
|
|
3251
|
+
protoOf(CharsetImpl).j3u = function () {
|
|
3180
3252
|
return new CharsetEncoderImpl(this);
|
|
3181
3253
|
};
|
|
3182
|
-
protoOf(CharsetImpl).
|
|
3254
|
+
protoOf(CharsetImpl).x3u = function () {
|
|
3183
3255
|
return new CharsetDecoderImpl(this);
|
|
3184
3256
|
};
|
|
3185
3257
|
function get_charset(_this__u8e3s4) {
|
|
3186
|
-
return _this__u8e3s4.
|
|
3258
|
+
return _this__u8e3s4.y3u_1;
|
|
3187
3259
|
}
|
|
3188
3260
|
function get_charset_0(_this__u8e3s4) {
|
|
3189
|
-
return _this__u8e3s4.
|
|
3261
|
+
return _this__u8e3s4.z3u_1;
|
|
3190
3262
|
}
|
|
3191
3263
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3192
3264
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3205,39 +3277,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3205
3277
|
}
|
|
3206
3278
|
function CharsetEncoderImpl(charset) {
|
|
3207
3279
|
CharsetEncoder.call(this, charset);
|
|
3208
|
-
this.
|
|
3280
|
+
this.d3v_1 = charset;
|
|
3209
3281
|
}
|
|
3210
3282
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3211
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3283
|
+
return 'CharsetEncoderImpl(charset=' + this.d3v_1.toString() + ')';
|
|
3212
3284
|
};
|
|
3213
3285
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3214
|
-
return this.
|
|
3286
|
+
return this.d3v_1.hashCode();
|
|
3215
3287
|
};
|
|
3216
3288
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3217
3289
|
if (this === other)
|
|
3218
3290
|
return true;
|
|
3219
3291
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3220
3292
|
return false;
|
|
3221
|
-
if (!this.
|
|
3293
|
+
if (!this.d3v_1.equals(other.d3v_1))
|
|
3222
3294
|
return false;
|
|
3223
3295
|
return true;
|
|
3224
3296
|
};
|
|
3225
3297
|
function CharsetDecoderImpl(charset) {
|
|
3226
3298
|
CharsetDecoder.call(this, charset);
|
|
3227
|
-
this.
|
|
3299
|
+
this.f3v_1 = charset;
|
|
3228
3300
|
}
|
|
3229
3301
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3230
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3302
|
+
return 'CharsetDecoderImpl(charset=' + this.f3v_1.toString() + ')';
|
|
3231
3303
|
};
|
|
3232
3304
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3233
|
-
return this.
|
|
3305
|
+
return this.f3v_1.hashCode();
|
|
3234
3306
|
};
|
|
3235
3307
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3236
3308
|
if (this === other)
|
|
3237
3309
|
return true;
|
|
3238
3310
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3239
3311
|
return false;
|
|
3240
|
-
if (!this.
|
|
3312
|
+
if (!this.f3v_1.equals(other.f3v_1))
|
|
3241
3313
|
return false;
|
|
3242
3314
|
return true;
|
|
3243
3315
|
};
|
|
@@ -3271,10 +3343,10 @@ function textDecoderOptions(fatal) {
|
|
|
3271
3343
|
return this_0;
|
|
3272
3344
|
}
|
|
3273
3345
|
function toKtor$1($this_toKtor) {
|
|
3274
|
-
this.
|
|
3346
|
+
this.g3v_1 = $this_toKtor;
|
|
3275
3347
|
}
|
|
3276
|
-
protoOf(toKtor$1).
|
|
3277
|
-
return this.
|
|
3348
|
+
protoOf(toKtor$1).a3v = function (buffer) {
|
|
3349
|
+
return this.g3v_1.decode(buffer);
|
|
3278
3350
|
};
|
|
3279
3351
|
function get_ENCODING_ALIASES() {
|
|
3280
3352
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3287,18 +3359,18 @@ function get_REPLACEMENT() {
|
|
|
3287
3359
|
}
|
|
3288
3360
|
var REPLACEMENT;
|
|
3289
3361
|
function TextDecoderFallback(encoding, fatal) {
|
|
3290
|
-
this.
|
|
3362
|
+
this.h3v_1 = fatal;
|
|
3291
3363
|
// Inline function 'kotlin.text.trim' call
|
|
3292
3364
|
// Inline function 'kotlin.text.lowercase' call
|
|
3293
3365
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3294
3366
|
var requestedEncoding = toString_1(trim(isCharSequence(encoding) ? encoding : THROW_CCE())).toLowerCase();
|
|
3295
3367
|
// Inline function 'kotlin.check' call
|
|
3296
|
-
if (!get_ENCODING_ALIASES().
|
|
3368
|
+
if (!get_ENCODING_ALIASES().d1(requestedEncoding)) {
|
|
3297
3369
|
var message = encoding + ' is not supported.';
|
|
3298
3370
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3299
3371
|
}
|
|
3300
3372
|
}
|
|
3301
|
-
protoOf(TextDecoderFallback).
|
|
3373
|
+
protoOf(TextDecoderFallback).a3v = function (buffer) {
|
|
3302
3374
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3303
3375
|
var builder = new Buffer();
|
|
3304
3376
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3314,7 +3386,7 @@ protoOf(TextDecoderFallback).k3d = function (buffer) {
|
|
|
3314
3386
|
var point = toCodePoint(byte);
|
|
3315
3387
|
if (point < 0) {
|
|
3316
3388
|
// Inline function 'kotlin.check' call
|
|
3317
|
-
if (!!this.
|
|
3389
|
+
if (!!this.h3v_1) {
|
|
3318
3390
|
var message = 'Invalid character: ' + point;
|
|
3319
3391
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3320
3392
|
}
|
|
@@ -3322,9 +3394,9 @@ protoOf(TextDecoderFallback).k3d = function (buffer) {
|
|
|
3322
3394
|
continue $l$loop;
|
|
3323
3395
|
}
|
|
3324
3396
|
if (point > 255) {
|
|
3325
|
-
builder.
|
|
3397
|
+
builder.i3h(toByte(point >> 8));
|
|
3326
3398
|
}
|
|
3327
|
-
builder.
|
|
3399
|
+
builder.i3h(toByte(point & 255));
|
|
3328
3400
|
}
|
|
3329
3401
|
while (inductionVariable < last);
|
|
3330
3402
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3350,11 +3422,25 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
|
3350
3422
|
REPLACEMENT = new Int8Array([-17, -65, -67]);
|
|
3351
3423
|
}
|
|
3352
3424
|
}
|
|
3425
|
+
function readText_0(_this__u8e3s4, charset, max) {
|
|
3426
|
+
charset = charset === VOID ? Charsets_getInstance().g3u_1 : charset;
|
|
3427
|
+
max = max === VOID ? 2147483647 : max;
|
|
3428
|
+
if (charset.equals(Charsets_getInstance().g3u_1)) {
|
|
3429
|
+
if (max === 2147483647)
|
|
3430
|
+
return readString_1(_this__u8e3s4);
|
|
3431
|
+
var tmp0 = _this__u8e3s4.o3f().e1();
|
|
3432
|
+
// Inline function 'kotlin.math.min' call
|
|
3433
|
+
var b = fromInt(max);
|
|
3434
|
+
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
3435
|
+
return readString(_this__u8e3s4, count);
|
|
3436
|
+
}
|
|
3437
|
+
return decode(charset.x3u(), _this__u8e3s4, max);
|
|
3438
|
+
}
|
|
3353
3439
|
function get_DEVELOPMENT_MODE() {
|
|
3354
3440
|
return false;
|
|
3355
3441
|
}
|
|
3356
3442
|
function ioDispatcher() {
|
|
3357
|
-
return Dispatchers_getInstance().
|
|
3443
|
+
return Dispatchers_getInstance().c1z_1;
|
|
3358
3444
|
}
|
|
3359
3445
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3360
3446
|
if (fromIndex >= toIndex)
|
|
@@ -3370,7 +3456,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3370
3456
|
if (character > 255) {
|
|
3371
3457
|
failedToMapError(character);
|
|
3372
3458
|
}
|
|
3373
|
-
dst.
|
|
3459
|
+
dst.i3h(toByte(character));
|
|
3374
3460
|
}
|
|
3375
3461
|
while (inductionVariable < toIndex);
|
|
3376
3462
|
return toIndex - fromIndex | 0;
|
|
@@ -3392,66 +3478,66 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3392
3478
|
}
|
|
3393
3479
|
}
|
|
3394
3480
|
function DefaultPool(capacity) {
|
|
3395
|
-
this.
|
|
3481
|
+
this.o3u_1 = capacity;
|
|
3396
3482
|
var tmp = this;
|
|
3397
3483
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3398
|
-
var size = this.
|
|
3399
|
-
tmp.
|
|
3400
|
-
this.
|
|
3484
|
+
var size = this.o3u_1;
|
|
3485
|
+
tmp.p3u_1 = Array(size);
|
|
3486
|
+
this.q3u_1 = 0;
|
|
3401
3487
|
}
|
|
3402
|
-
protoOf(DefaultPool).
|
|
3488
|
+
protoOf(DefaultPool).r3u = function (instance) {
|
|
3403
3489
|
};
|
|
3404
|
-
protoOf(DefaultPool).
|
|
3490
|
+
protoOf(DefaultPool).s3u = function (instance) {
|
|
3405
3491
|
return instance;
|
|
3406
3492
|
};
|
|
3407
|
-
protoOf(DefaultPool).
|
|
3493
|
+
protoOf(DefaultPool).t3u = function (instance) {
|
|
3408
3494
|
};
|
|
3409
|
-
protoOf(DefaultPool).
|
|
3410
|
-
if (this.
|
|
3411
|
-
return this.
|
|
3412
|
-
this.
|
|
3413
|
-
var idx = this.
|
|
3414
|
-
var tmp = this.
|
|
3495
|
+
protoOf(DefaultPool).u3u = function () {
|
|
3496
|
+
if (this.q3u_1 === 0)
|
|
3497
|
+
return this.n3u();
|
|
3498
|
+
this.q3u_1 = this.q3u_1 - 1 | 0;
|
|
3499
|
+
var idx = this.q3u_1;
|
|
3500
|
+
var tmp = this.p3u_1[idx];
|
|
3415
3501
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3416
|
-
this.
|
|
3417
|
-
return this.
|
|
3502
|
+
this.p3u_1[idx] = null;
|
|
3503
|
+
return this.s3u(instance);
|
|
3418
3504
|
};
|
|
3419
|
-
protoOf(DefaultPool).
|
|
3420
|
-
this.
|
|
3421
|
-
if (this.
|
|
3422
|
-
this.
|
|
3505
|
+
protoOf(DefaultPool).v3u = function (instance) {
|
|
3506
|
+
this.t3u(instance);
|
|
3507
|
+
if (this.q3u_1 === this.o3u_1) {
|
|
3508
|
+
this.r3u(instance);
|
|
3423
3509
|
} else {
|
|
3424
|
-
var _unary__edvuaz = this.
|
|
3425
|
-
this.
|
|
3426
|
-
this.
|
|
3510
|
+
var _unary__edvuaz = this.q3u_1;
|
|
3511
|
+
this.q3u_1 = _unary__edvuaz + 1 | 0;
|
|
3512
|
+
this.p3u_1[_unary__edvuaz] = instance;
|
|
3427
3513
|
}
|
|
3428
3514
|
};
|
|
3429
|
-
protoOf(DefaultPool).
|
|
3515
|
+
protoOf(DefaultPool).u1p = function () {
|
|
3430
3516
|
var inductionVariable = 0;
|
|
3431
|
-
var last = this.
|
|
3517
|
+
var last = this.q3u_1;
|
|
3432
3518
|
if (inductionVariable < last)
|
|
3433
3519
|
do {
|
|
3434
3520
|
var i = inductionVariable;
|
|
3435
3521
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3436
|
-
var tmp = this.
|
|
3522
|
+
var tmp = this.p3u_1[i];
|
|
3437
3523
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3438
|
-
this.
|
|
3439
|
-
this.
|
|
3524
|
+
this.p3u_1[i] = null;
|
|
3525
|
+
this.r3u(instance);
|
|
3440
3526
|
}
|
|
3441
3527
|
while (inductionVariable < last);
|
|
3442
|
-
this.
|
|
3528
|
+
this.q3u_1 = 0;
|
|
3443
3529
|
};
|
|
3444
3530
|
//region block: post-declaration
|
|
3445
|
-
protoOf(Read).
|
|
3446
|
-
protoOf(Read).
|
|
3447
|
-
protoOf(Write).
|
|
3448
|
-
protoOf(Write).
|
|
3449
|
-
protoOf(ByteChannel).
|
|
3450
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3451
|
-
protoOf(CountedByteReadChannel).
|
|
3452
|
-
protoOf(SourceByteReadChannel).
|
|
3453
|
-
protoOf(DefaultPool).
|
|
3454
|
-
protoOf(NoPoolImpl).
|
|
3531
|
+
protoOf(Read).t3i = resume;
|
|
3532
|
+
protoOf(Read).u3i = resume_0;
|
|
3533
|
+
protoOf(Write).t3i = resume;
|
|
3534
|
+
protoOf(Write).u3i = resume_0;
|
|
3535
|
+
protoOf(ByteChannel).z3k = awaitContent$default;
|
|
3536
|
+
protoOf(ByteReadChannel$Companion$Empty$1).z3k = awaitContent$default;
|
|
3537
|
+
protoOf(CountedByteReadChannel).z3k = awaitContent$default;
|
|
3538
|
+
protoOf(SourceByteReadChannel).z3k = awaitContent$default;
|
|
3539
|
+
protoOf(DefaultPool).d4 = close;
|
|
3540
|
+
protoOf(NoPoolImpl).d4 = close;
|
|
3455
3541
|
//endregion
|
|
3456
3542
|
//region block: init
|
|
3457
3543
|
Empty_instance = new Empty();
|