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