@dmarket/p2p-tracker-core 1.0.1-beta → 1.0.3-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dmarket-p2p-tracker-core-domain.mjs +2574 -2485
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +30 -30
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/ktor-ktor-client-core.mjs +1858 -1858
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +313 -313
- package/ktor-ktor-http.mjs +598 -598
- package/ktor-ktor-io.mjs +605 -605
- package/ktor-ktor-utils.mjs +621 -621
- package/ktor-ktor-websockets.mjs +366 -366
- package/p2p-tracker-core.mjs +5985 -5483
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
package/ktor-ktor-io.mjs
CHANGED
|
@@ -106,10 +106,10 @@ initMetadataForCompanion(Companion);
|
|
|
106
106
|
initMetadataForObject(Empty, 'Empty');
|
|
107
107
|
initMetadataForClass(Closed, 'Closed');
|
|
108
108
|
function resume() {
|
|
109
|
-
return this.
|
|
109
|
+
return this.y3i().g9(Companion_getInstance().v3i_1);
|
|
110
110
|
}
|
|
111
111
|
function resume_0(throwable) {
|
|
112
|
-
var tmp = this.
|
|
112
|
+
var tmp = this.y3i();
|
|
113
113
|
var tmp_0;
|
|
114
114
|
if (throwable == null) {
|
|
115
115
|
tmp_0 = null;
|
|
@@ -120,7 +120,7 @@ function resume_0(throwable) {
|
|
|
120
120
|
tmp_0 = new Result(tmp$ret$0);
|
|
121
121
|
}
|
|
122
122
|
var tmp1_elvis_lhs = tmp_0;
|
|
123
|
-
return tmp.g9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
123
|
+
return tmp.g9(tmp1_elvis_lhs == null ? Companion_getInstance().v3i_1 : tmp1_elvis_lhs.do_1);
|
|
124
124
|
}
|
|
125
125
|
initMetadataForInterface(Task, 'Task');
|
|
126
126
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -131,7 +131,7 @@ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
|
131
131
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
132
132
|
function awaitContent$default(min, $completion, $super) {
|
|
133
133
|
min = min === VOID ? 1 : min;
|
|
134
|
-
return $super === VOID ? this.
|
|
134
|
+
return $super === VOID ? this.f3l(min, $completion) : $super.f3l.call(this, min, $completion);
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
137
137
|
function get_autoFlush() {
|
|
@@ -196,10 +196,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
|
196
196
|
//endregion
|
|
197
197
|
function Companion() {
|
|
198
198
|
Companion_instance_0 = this;
|
|
199
|
-
this.
|
|
199
|
+
this.u3i_1 = new Closed(null);
|
|
200
200
|
var tmp = this;
|
|
201
201
|
// Inline function 'kotlin.Companion.success' call
|
|
202
|
-
tmp.
|
|
202
|
+
tmp.v3i_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
203
203
|
}
|
|
204
204
|
var Companion_instance_0;
|
|
205
205
|
function Companion_getInstance() {
|
|
@@ -227,102 +227,102 @@ function Empty_getInstance() {
|
|
|
227
227
|
return Empty_instance;
|
|
228
228
|
}
|
|
229
229
|
function Closed(cause) {
|
|
230
|
-
this.
|
|
230
|
+
this.w3i_1 = cause;
|
|
231
231
|
}
|
|
232
232
|
protoOf(Closed).toString = function () {
|
|
233
|
-
return 'Closed(cause=' + toString(this.
|
|
233
|
+
return 'Closed(cause=' + toString(this.w3i_1) + ')';
|
|
234
234
|
};
|
|
235
235
|
protoOf(Closed).hashCode = function () {
|
|
236
|
-
return this.
|
|
236
|
+
return this.w3i_1 == null ? 0 : hashCode(this.w3i_1);
|
|
237
237
|
};
|
|
238
238
|
protoOf(Closed).equals = function (other) {
|
|
239
239
|
if (this === other)
|
|
240
240
|
return true;
|
|
241
241
|
if (!(other instanceof Closed))
|
|
242
242
|
return false;
|
|
243
|
-
if (!equals(this.
|
|
243
|
+
if (!equals(this.w3i_1, other.w3i_1))
|
|
244
244
|
return false;
|
|
245
245
|
return true;
|
|
246
246
|
};
|
|
247
247
|
function Task() {
|
|
248
248
|
}
|
|
249
249
|
function Read(continuation) {
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
250
|
+
this.c3j_1 = continuation;
|
|
251
|
+
this.d3j_1 = null;
|
|
252
252
|
if (get_DEVELOPMENT_MODE()) {
|
|
253
253
|
var tmp = this;
|
|
254
254
|
// Inline function 'kotlin.also' call
|
|
255
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
255
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.c3j_1), 16));
|
|
256
256
|
stackTraceToString(this_0);
|
|
257
|
-
tmp.
|
|
257
|
+
tmp.d3j_1 = this_0;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
protoOf(Read).
|
|
261
|
-
return this.
|
|
260
|
+
protoOf(Read).y3i = function () {
|
|
261
|
+
return this.c3j_1;
|
|
262
262
|
};
|
|
263
|
-
protoOf(Read).
|
|
264
|
-
return this.
|
|
263
|
+
protoOf(Read).x3i = function () {
|
|
264
|
+
return this.d3j_1;
|
|
265
265
|
};
|
|
266
|
-
protoOf(Read).
|
|
266
|
+
protoOf(Read).z3i = function () {
|
|
267
267
|
return 'read';
|
|
268
268
|
};
|
|
269
269
|
function Write(continuation) {
|
|
270
|
-
this.
|
|
271
|
-
this.
|
|
270
|
+
this.e3j_1 = continuation;
|
|
271
|
+
this.f3j_1 = null;
|
|
272
272
|
if (get_DEVELOPMENT_MODE()) {
|
|
273
273
|
var tmp = this;
|
|
274
274
|
// Inline function 'kotlin.also' call
|
|
275
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
275
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.e3j_1), 16));
|
|
276
276
|
stackTraceToString(this_0);
|
|
277
|
-
tmp.
|
|
277
|
+
tmp.f3j_1 = this_0;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
protoOf(Write).
|
|
281
|
-
return this.
|
|
280
|
+
protoOf(Write).y3i = function () {
|
|
281
|
+
return this.e3j_1;
|
|
282
282
|
};
|
|
283
|
-
protoOf(Write).
|
|
284
|
-
return this.
|
|
283
|
+
protoOf(Write).x3i = function () {
|
|
284
|
+
return this.f3j_1;
|
|
285
285
|
};
|
|
286
|
-
protoOf(Write).
|
|
286
|
+
protoOf(Write).z3i = function () {
|
|
287
287
|
return 'write';
|
|
288
288
|
};
|
|
289
289
|
function moveFlushToReadBuffer($this) {
|
|
290
290
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
291
|
-
$this.
|
|
292
|
-
$this.
|
|
293
|
-
$this.
|
|
291
|
+
$this.j3j_1;
|
|
292
|
+
$this.h3j_1.z3g($this.l3j_1);
|
|
293
|
+
$this.i3j_1 = 0;
|
|
294
294
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
295
|
-
var current = $this.
|
|
295
|
+
var current = $this.k3j_1.kotlinx$atomicfu$value;
|
|
296
296
|
var tmp;
|
|
297
297
|
if (current instanceof Write) {
|
|
298
|
-
tmp = $this.
|
|
298
|
+
tmp = $this.k3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
299
299
|
} else {
|
|
300
300
|
tmp = false;
|
|
301
301
|
}
|
|
302
302
|
if (tmp) {
|
|
303
|
-
current.
|
|
303
|
+
current.a3j();
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
function closeSlot($this, cause) {
|
|
307
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
308
|
-
var continuation = $this.
|
|
307
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().u3i_1;
|
|
308
|
+
var continuation = $this.k3j_1.atomicfu$getAndSet(closeContinuation);
|
|
309
309
|
if (isInterface(continuation, Task)) {
|
|
310
|
-
continuation.
|
|
310
|
+
continuation.b3j(cause);
|
|
311
311
|
}
|
|
312
|
-
var tmp0_safe_receiver = $this.
|
|
312
|
+
var tmp0_safe_receiver = $this.o3j_1.atomicfu$getAndSet(null);
|
|
313
313
|
if (tmp0_safe_receiver == null)
|
|
314
314
|
null;
|
|
315
315
|
else
|
|
316
316
|
tmp0_safe_receiver(cause);
|
|
317
317
|
}
|
|
318
318
|
function sam$kotlinx_coroutines_DisposableHandle$0(function_0) {
|
|
319
|
-
this.
|
|
319
|
+
this.p3j_1 = function_0;
|
|
320
320
|
}
|
|
321
321
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).u1p = function () {
|
|
322
|
-
return this.
|
|
322
|
+
return this.p3j_1();
|
|
323
323
|
};
|
|
324
324
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).m3 = function () {
|
|
325
|
-
return this.
|
|
325
|
+
return this.p3j_1;
|
|
326
326
|
};
|
|
327
327
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
328
328
|
var tmp;
|
|
@@ -350,14 +350,14 @@ function ByteChannel$invokeOnClose$lambda_0() {
|
|
|
350
350
|
}
|
|
351
351
|
function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
|
|
352
352
|
return function () {
|
|
353
|
-
this$0.
|
|
353
|
+
this$0.o3j_1.atomicfu$compareAndSet($handler, null);
|
|
354
354
|
return Unit_instance;
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
358
358
|
CoroutineImpl.call(this, resultContinuation);
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
359
|
+
this.y3j_1 = _this__u8e3s4;
|
|
360
|
+
this.z3j_1 = min;
|
|
361
361
|
}
|
|
362
362
|
protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
363
363
|
var suspendResult = this.x8_1;
|
|
@@ -367,14 +367,14 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
367
367
|
switch (tmp) {
|
|
368
368
|
case 0:
|
|
369
369
|
this.w8_1 = 4;
|
|
370
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
371
|
-
if (compare(this.
|
|
370
|
+
rethrowCloseCauseIfNeeded_0(this.y3j_1);
|
|
371
|
+
if (compare(this.y3j_1.l3j_1.e1(), fromInt(this.z3j_1)) >= 0)
|
|
372
372
|
return true;
|
|
373
|
-
this.
|
|
373
|
+
this.a3k_1 = this.y3j_1;
|
|
374
374
|
this.v8_1 = 1;
|
|
375
375
|
continue $sm;
|
|
376
376
|
case 1:
|
|
377
|
-
if (!(compare(add(numberToLong(this.
|
|
377
|
+
if (!(compare(add(numberToLong(this.y3j_1.i3j_1), this.y3j_1.l3j_1.e1()), fromInt(this.z3j_1)) < 0 && this.y3j_1.n3j_1.kotlinx$atomicfu$value == null)) {
|
|
378
378
|
this.v8_1 = 3;
|
|
379
379
|
continue $sm;
|
|
380
380
|
}
|
|
@@ -382,24 +382,24 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
382
382
|
this.v8_1 = 2;
|
|
383
383
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
384
384
|
cancellable.x1q();
|
|
385
|
-
var tmp0 = this.
|
|
385
|
+
var tmp0 = this.a3k_1;
|
|
386
386
|
var tmp2 = new Read(cancellable);
|
|
387
387
|
l$ret$1: do {
|
|
388
|
-
var previous = tmp0.
|
|
388
|
+
var previous = tmp0.k3j_1.kotlinx$atomicfu$value;
|
|
389
389
|
if (!(previous instanceof Closed)) {
|
|
390
|
-
if (!tmp0.
|
|
391
|
-
tmp2.
|
|
390
|
+
if (!tmp0.k3j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
391
|
+
tmp2.a3j();
|
|
392
392
|
break l$ret$1;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
if (previous instanceof Read) {
|
|
396
|
-
previous.
|
|
396
|
+
previous.b3j(new ConcurrentIOException(tmp2.z3i(), previous.x3i()));
|
|
397
397
|
} else {
|
|
398
398
|
if (isInterface(previous, Task)) {
|
|
399
|
-
previous.
|
|
399
|
+
previous.a3j();
|
|
400
400
|
} else {
|
|
401
401
|
if (previous instanceof Closed) {
|
|
402
|
-
tmp2.
|
|
402
|
+
tmp2.b3j(previous.w3i_1);
|
|
403
403
|
break l$ret$1;
|
|
404
404
|
} else {
|
|
405
405
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -408,16 +408,16 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
if (!(compare(add(numberToLong(this.
|
|
412
|
-
var current = tmp0.
|
|
411
|
+
if (!(compare(add(numberToLong(this.y3j_1.i3j_1), this.y3j_1.l3j_1.e1()), fromInt(this.z3j_1)) < 0 && this.y3j_1.n3j_1.kotlinx$atomicfu$value == null)) {
|
|
412
|
+
var current = tmp0.k3j_1.kotlinx$atomicfu$value;
|
|
413
413
|
var tmp_0;
|
|
414
414
|
if (current instanceof Read) {
|
|
415
|
-
tmp_0 = tmp0.
|
|
415
|
+
tmp_0 = tmp0.k3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
416
416
|
} else {
|
|
417
417
|
tmp_0 = false;
|
|
418
418
|
}
|
|
419
419
|
if (tmp_0) {
|
|
420
|
-
current.
|
|
420
|
+
current.a3j();
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
}
|
|
@@ -432,11 +432,11 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
432
432
|
this.v8_1 = 1;
|
|
433
433
|
continue $sm;
|
|
434
434
|
case 3:
|
|
435
|
-
if (compare(this.
|
|
436
|
-
moveFlushToReadBuffer(this.
|
|
435
|
+
if (compare(this.y3j_1.l3j_1.e1(), new Long(1048576, 0)) < 0) {
|
|
436
|
+
moveFlushToReadBuffer(this.y3j_1);
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
return compare(this.
|
|
439
|
+
return compare(this.y3j_1.l3j_1.e1(), fromInt(this.z3j_1)) >= 0;
|
|
440
440
|
case 4:
|
|
441
441
|
throw this.y8_1;
|
|
442
442
|
}
|
|
@@ -453,7 +453,7 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
453
453
|
};
|
|
454
454
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
455
455
|
CoroutineImpl.call(this, resultContinuation);
|
|
456
|
-
this.
|
|
456
|
+
this.j3k_1 = _this__u8e3s4;
|
|
457
457
|
}
|
|
458
458
|
protoOf($flushCOROUTINE$).d9 = function () {
|
|
459
459
|
var suspendResult = this.x8_1;
|
|
@@ -463,15 +463,15 @@ protoOf($flushCOROUTINE$).d9 = function () {
|
|
|
463
463
|
switch (tmp) {
|
|
464
464
|
case 0:
|
|
465
465
|
this.w8_1 = 4;
|
|
466
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
467
|
-
this.
|
|
468
|
-
if (this.
|
|
466
|
+
rethrowCloseCauseIfNeeded_0(this.j3k_1);
|
|
467
|
+
this.j3k_1.l3k();
|
|
468
|
+
if (this.j3k_1.m3k())
|
|
469
469
|
return Unit_instance;
|
|
470
|
-
this.
|
|
470
|
+
this.k3k_1 = this.j3k_1;
|
|
471
471
|
this.v8_1 = 1;
|
|
472
472
|
continue $sm;
|
|
473
473
|
case 1:
|
|
474
|
-
if (!(!this.
|
|
474
|
+
if (!(!this.j3k_1.m3k() && this.j3k_1.n3j_1.kotlinx$atomicfu$value == null)) {
|
|
475
475
|
this.v8_1 = 3;
|
|
476
476
|
continue $sm;
|
|
477
477
|
}
|
|
@@ -479,24 +479,24 @@ protoOf($flushCOROUTINE$).d9 = function () {
|
|
|
479
479
|
this.v8_1 = 2;
|
|
480
480
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
481
481
|
cancellable.x1q();
|
|
482
|
-
var tmp0 = this.
|
|
482
|
+
var tmp0 = this.k3k_1;
|
|
483
483
|
var tmp2 = new Write(cancellable);
|
|
484
484
|
l$ret$1: do {
|
|
485
|
-
var previous = tmp0.
|
|
485
|
+
var previous = tmp0.k3j_1.kotlinx$atomicfu$value;
|
|
486
486
|
if (!(previous instanceof Closed)) {
|
|
487
|
-
if (!tmp0.
|
|
488
|
-
tmp2.
|
|
487
|
+
if (!tmp0.k3j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
488
|
+
tmp2.a3j();
|
|
489
489
|
break l$ret$1;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
if (previous instanceof Write) {
|
|
493
|
-
previous.
|
|
493
|
+
previous.b3j(new ConcurrentIOException(tmp2.z3i(), previous.x3i()));
|
|
494
494
|
} else {
|
|
495
495
|
if (isInterface(previous, Task)) {
|
|
496
|
-
previous.
|
|
496
|
+
previous.a3j();
|
|
497
497
|
} else {
|
|
498
498
|
if (previous instanceof Closed) {
|
|
499
|
-
tmp2.
|
|
499
|
+
tmp2.b3j(previous.w3i_1);
|
|
500
500
|
break l$ret$1;
|
|
501
501
|
} else {
|
|
502
502
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -505,16 +505,16 @@ protoOf($flushCOROUTINE$).d9 = function () {
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
if (!(!this.
|
|
509
|
-
var current = tmp0.
|
|
508
|
+
if (!(!this.j3k_1.m3k() && this.j3k_1.n3j_1.kotlinx$atomicfu$value == null)) {
|
|
509
|
+
var current = tmp0.k3j_1.kotlinx$atomicfu$value;
|
|
510
510
|
var tmp_0;
|
|
511
511
|
if (current instanceof Write) {
|
|
512
|
-
tmp_0 = tmp0.
|
|
512
|
+
tmp_0 = tmp0.k3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
513
513
|
} else {
|
|
514
514
|
tmp_0 = false;
|
|
515
515
|
}
|
|
516
516
|
if (tmp_0) {
|
|
517
|
-
current.
|
|
517
|
+
current.a3j();
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
}
|
|
@@ -546,7 +546,7 @@ protoOf($flushCOROUTINE$).d9 = function () {
|
|
|
546
546
|
};
|
|
547
547
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
548
548
|
CoroutineImpl.call(this, resultContinuation);
|
|
549
|
-
this.
|
|
549
|
+
this.v3k_1 = _this__u8e3s4;
|
|
550
550
|
}
|
|
551
551
|
protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
552
552
|
var suspendResult = this.x8_1;
|
|
@@ -556,11 +556,11 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
556
556
|
switch (tmp) {
|
|
557
557
|
case 0:
|
|
558
558
|
this.w8_1 = 4;
|
|
559
|
-
var this_0 = this.
|
|
559
|
+
var this_0 = this.v3k_1;
|
|
560
560
|
this.w8_1 = 2;
|
|
561
|
-
this.
|
|
561
|
+
this.x3k_1 = Companion_instance;
|
|
562
562
|
this.v8_1 = 1;
|
|
563
|
-
suspendResult = this_0.
|
|
563
|
+
suspendResult = this_0.y3k(this);
|
|
564
564
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
565
565
|
return suspendResult;
|
|
566
566
|
}
|
|
@@ -568,8 +568,8 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
568
568
|
continue $sm;
|
|
569
569
|
case 1:
|
|
570
570
|
var tmp_0 = this;
|
|
571
|
-
this.
|
|
572
|
-
tmp_0.
|
|
571
|
+
this.x3k_1;
|
|
572
|
+
tmp_0.w3k_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
573
573
|
this.w8_1 = 4;
|
|
574
574
|
this.v8_1 = 3;
|
|
575
575
|
continue $sm;
|
|
@@ -579,7 +579,7 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
579
579
|
if (tmp_1 instanceof Error) {
|
|
580
580
|
var e = this.y8_1;
|
|
581
581
|
var tmp_2 = this;
|
|
582
|
-
tmp_2.
|
|
582
|
+
tmp_2.w3k_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
583
583
|
this.v8_1 = 3;
|
|
584
584
|
continue $sm;
|
|
585
585
|
} else {
|
|
@@ -588,9 +588,9 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
588
588
|
|
|
589
589
|
case 3:
|
|
590
590
|
this.w8_1 = 4;
|
|
591
|
-
if (!this.
|
|
591
|
+
if (!this.v3k_1.n3j_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
592
592
|
return Unit_instance;
|
|
593
|
-
closeSlot(this.
|
|
593
|
+
closeSlot(this.v3k_1, null);
|
|
594
594
|
return Unit_instance;
|
|
595
595
|
case 4:
|
|
596
596
|
throw this.y8_1;
|
|
@@ -608,24 +608,24 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
608
608
|
};
|
|
609
609
|
function ByteChannel(autoFlush) {
|
|
610
610
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
}
|
|
621
|
-
protoOf(ByteChannel).
|
|
622
|
-
return this.
|
|
623
|
-
};
|
|
624
|
-
protoOf(ByteChannel).
|
|
625
|
-
return this.
|
|
626
|
-
};
|
|
627
|
-
protoOf(ByteChannel).
|
|
628
|
-
var tmp0_safe_receiver = this.
|
|
611
|
+
this.g3j_1 = autoFlush;
|
|
612
|
+
this.h3j_1 = new Buffer();
|
|
613
|
+
this.i3j_1 = 0;
|
|
614
|
+
this.j3j_1 = new Object();
|
|
615
|
+
this.k3j_1 = atomic$ref$1(Empty_instance);
|
|
616
|
+
this.l3j_1 = new Buffer();
|
|
617
|
+
this.m3j_1 = new Buffer();
|
|
618
|
+
this.n3j_1 = atomic$ref$1(null);
|
|
619
|
+
this.o3j_1 = atomic$ref$1(null);
|
|
620
|
+
}
|
|
621
|
+
protoOf(ByteChannel).z3k = function () {
|
|
622
|
+
return this.g3j_1;
|
|
623
|
+
};
|
|
624
|
+
protoOf(ByteChannel).m3k = function () {
|
|
625
|
+
return this.i3j_1 < 1048576;
|
|
626
|
+
};
|
|
627
|
+
protoOf(ByteChannel).a3l = function () {
|
|
628
|
+
var tmp0_safe_receiver = this.n3j_1.kotlinx$atomicfu$value;
|
|
629
629
|
if (tmp0_safe_receiver == null)
|
|
630
630
|
null;
|
|
631
631
|
else {
|
|
@@ -656,14 +656,14 @@ protoOf(ByteChannel).t3k = function () {
|
|
|
656
656
|
throw tmp0_safe_receiver_0;
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
if (this.
|
|
659
|
+
if (this.l3j_1.w3f()) {
|
|
660
660
|
moveFlushToReadBuffer(this);
|
|
661
661
|
}
|
|
662
|
-
return this.
|
|
662
|
+
return this.l3j_1;
|
|
663
663
|
};
|
|
664
|
-
protoOf(ByteChannel).
|
|
665
|
-
if (this.
|
|
666
|
-
var tmp0_safe_receiver = this.
|
|
664
|
+
protoOf(ByteChannel).b3l = function () {
|
|
665
|
+
if (this.c3l()) {
|
|
666
|
+
var tmp0_safe_receiver = this.n3j_1.kotlinx$atomicfu$value;
|
|
667
667
|
var tmp;
|
|
668
668
|
if (tmp0_safe_receiver == null) {
|
|
669
669
|
tmp = null;
|
|
@@ -699,10 +699,10 @@ protoOf(ByteChannel).u3k = function () {
|
|
|
699
699
|
if (tmp == null)
|
|
700
700
|
throw new ClosedWriteChannelException();
|
|
701
701
|
}
|
|
702
|
-
return this.
|
|
702
|
+
return this.m3j_1;
|
|
703
703
|
};
|
|
704
|
-
protoOf(ByteChannel).
|
|
705
|
-
var tmp0_safe_receiver = this.
|
|
704
|
+
protoOf(ByteChannel).d3l = function () {
|
|
705
|
+
var tmp0_safe_receiver = this.n3j_1.kotlinx$atomicfu$value;
|
|
706
706
|
var tmp;
|
|
707
707
|
if (tmp0_safe_receiver == null) {
|
|
708
708
|
tmp = null;
|
|
@@ -728,61 +728,61 @@ protoOf(ByteChannel).w3k = function () {
|
|
|
728
728
|
}
|
|
729
729
|
return tmp;
|
|
730
730
|
};
|
|
731
|
-
protoOf(ByteChannel).
|
|
732
|
-
return !(this.
|
|
731
|
+
protoOf(ByteChannel).c3l = function () {
|
|
732
|
+
return !(this.n3j_1.kotlinx$atomicfu$value == null);
|
|
733
733
|
};
|
|
734
|
-
protoOf(ByteChannel).
|
|
735
|
-
return !(this.
|
|
734
|
+
protoOf(ByteChannel).e3l = function () {
|
|
735
|
+
return !(this.d3l() == null) || (this.c3l() && this.i3j_1 === 0 && this.l3j_1.w3f());
|
|
736
736
|
};
|
|
737
|
-
protoOf(ByteChannel).
|
|
737
|
+
protoOf(ByteChannel).f3l = function (min, $completion) {
|
|
738
738
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
739
739
|
tmp.x8_1 = Unit_instance;
|
|
740
740
|
tmp.y8_1 = null;
|
|
741
741
|
return tmp.d9();
|
|
742
742
|
};
|
|
743
|
-
protoOf(ByteChannel).
|
|
743
|
+
protoOf(ByteChannel).y3k = function ($completion) {
|
|
744
744
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
745
745
|
tmp.x8_1 = Unit_instance;
|
|
746
746
|
tmp.y8_1 = null;
|
|
747
747
|
return tmp.d9();
|
|
748
748
|
};
|
|
749
|
-
protoOf(ByteChannel).
|
|
750
|
-
if (this.
|
|
749
|
+
protoOf(ByteChannel).l3k = function () {
|
|
750
|
+
if (this.m3j_1.w3f())
|
|
751
751
|
return Unit_instance;
|
|
752
752
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
753
|
-
this.
|
|
754
|
-
var count = convertToInt(this.
|
|
755
|
-
this.
|
|
756
|
-
this.
|
|
753
|
+
this.j3j_1;
|
|
754
|
+
var count = convertToInt(this.m3j_1.e1());
|
|
755
|
+
this.h3j_1.o3h(this.m3j_1);
|
|
756
|
+
this.i3j_1 = this.i3j_1 + count | 0;
|
|
757
757
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
758
|
-
var current = this.
|
|
758
|
+
var current = this.k3j_1.kotlinx$atomicfu$value;
|
|
759
759
|
var tmp;
|
|
760
760
|
if (current instanceof Read) {
|
|
761
|
-
tmp = this.
|
|
761
|
+
tmp = this.k3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
762
762
|
} else {
|
|
763
763
|
tmp = false;
|
|
764
764
|
}
|
|
765
765
|
if (tmp) {
|
|
766
|
-
current.
|
|
766
|
+
current.a3j();
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
769
|
protoOf(ByteChannel).d4 = function () {
|
|
770
|
-
this.
|
|
771
|
-
if (!this.
|
|
770
|
+
this.l3k();
|
|
771
|
+
if (!this.n3j_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
772
772
|
return Unit_instance;
|
|
773
773
|
closeSlot(this, null);
|
|
774
774
|
};
|
|
775
|
-
protoOf(ByteChannel).
|
|
775
|
+
protoOf(ByteChannel).h3l = function ($completion) {
|
|
776
776
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
777
777
|
tmp.x8_1 = Unit_instance;
|
|
778
778
|
tmp.y8_1 = null;
|
|
779
779
|
return tmp.d9();
|
|
780
780
|
};
|
|
781
|
-
protoOf(ByteChannel).
|
|
782
|
-
if (!(this.
|
|
781
|
+
protoOf(ByteChannel).i3l = function (cause) {
|
|
782
|
+
if (!(this.n3j_1.kotlinx$atomicfu$value == null))
|
|
783
783
|
return Unit_instance;
|
|
784
784
|
var closedToken = new CloseToken(cause);
|
|
785
|
-
this.
|
|
785
|
+
this.n3j_1.atomicfu$compareAndSet(null, closedToken);
|
|
786
786
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
787
787
|
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
788
788
|
var tmp;
|
|
@@ -803,8 +803,8 @@ protoOf(ByteChannel).b3l = function (cause) {
|
|
|
803
803
|
var wrappedCause = tmp;
|
|
804
804
|
closeSlot(this, wrappedCause);
|
|
805
805
|
};
|
|
806
|
-
protoOf(ByteChannel).
|
|
807
|
-
var existingCause = this.
|
|
806
|
+
protoOf(ByteChannel).j3l = function (handler) {
|
|
807
|
+
var existingCause = this.n3j_1.kotlinx$atomicfu$value;
|
|
808
808
|
if (!(existingCause == null)) {
|
|
809
809
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
810
810
|
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
@@ -827,13 +827,13 @@ protoOf(ByteChannel).c3l = function (handler) {
|
|
|
827
827
|
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
828
828
|
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
829
829
|
}
|
|
830
|
-
if (!this.
|
|
830
|
+
if (!this.o3j_1.atomicfu$compareAndSet(null, handler)) {
|
|
831
831
|
// Inline function 'kotlin.error' call
|
|
832
832
|
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
833
833
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
834
834
|
}
|
|
835
|
-
var cause = this.
|
|
836
|
-
if (!(cause == null) && this.
|
|
835
|
+
var cause = this.n3j_1.kotlinx$atomicfu$value;
|
|
836
|
+
if (!(cause == null) && this.o3j_1.atomicfu$compareAndSet(handler, null)) {
|
|
837
837
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
838
838
|
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
839
839
|
var tmp_1;
|
|
@@ -871,7 +871,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
871
871
|
length = length === VOID ? content.length : length;
|
|
872
872
|
// Inline function 'kotlin.also' call
|
|
873
873
|
var this_0 = new Buffer();
|
|
874
|
-
this_0.
|
|
874
|
+
this_0.f3h(content, offset, offset + length | 0);
|
|
875
875
|
var source = this_0;
|
|
876
876
|
return ByteReadChannel_0(source);
|
|
877
877
|
}
|
|
@@ -879,18 +879,18 @@ function ByteReadChannel_0(source) {
|
|
|
879
879
|
return new SourceByteReadChannel(source);
|
|
880
880
|
}
|
|
881
881
|
function buildPartialMatchTable($this) {
|
|
882
|
-
var table = new Int32Array($this.
|
|
882
|
+
var table = new Int32Array($this.l3l_1.e1());
|
|
883
883
|
var j = 0;
|
|
884
884
|
var inductionVariable = 1;
|
|
885
|
-
var last = $this.
|
|
885
|
+
var last = $this.l3l_1.e1();
|
|
886
886
|
if (inductionVariable < last)
|
|
887
887
|
do {
|
|
888
888
|
var i = inductionVariable;
|
|
889
889
|
inductionVariable = inductionVariable + 1 | 0;
|
|
890
|
-
while (j > 0 && !($this.
|
|
890
|
+
while (j > 0 && !($this.l3l_1.f1(i) === $this.l3l_1.f1(j))) {
|
|
891
891
|
j = table[j - 1 | 0];
|
|
892
892
|
}
|
|
893
|
-
if ($this.
|
|
893
|
+
if ($this.l3l_1.f1(i) === $this.l3l_1.f1(j)) {
|
|
894
894
|
j = j + 1 | 0;
|
|
895
895
|
}
|
|
896
896
|
table[i] = j;
|
|
@@ -911,8 +911,8 @@ function checkFullMatch($this, $completion) {
|
|
|
911
911
|
return tmp.d9();
|
|
912
912
|
}
|
|
913
913
|
function checkBounds($this, extra) {
|
|
914
|
-
if (compare(add($this.
|
|
915
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
914
|
+
if (compare(add($this.r3l_1, extra), $this.n3l_1) > 0) {
|
|
915
|
+
throw IOException_init_$Create$('Limit of ' + $this.n3l_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.l3l_1) + '"'));
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
function toSingleLineString($this, $receiver) {
|
|
@@ -920,8 +920,8 @@ function toSingleLineString($this, $receiver) {
|
|
|
920
920
|
}
|
|
921
921
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
922
922
|
CoroutineImpl.call(this, resultContinuation);
|
|
923
|
-
this.
|
|
924
|
-
this.
|
|
923
|
+
this.w3m_1 = _this__u8e3s4;
|
|
924
|
+
this.x3m_1 = ignoreMissing;
|
|
925
925
|
}
|
|
926
926
|
protoOf($findNextCOROUTINE$).d9 = function () {
|
|
927
927
|
var suspendResult = this.x8_1;
|
|
@@ -931,17 +931,17 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
931
931
|
switch (tmp) {
|
|
932
932
|
case 0:
|
|
933
933
|
this.w8_1 = 9;
|
|
934
|
-
this.
|
|
934
|
+
this.w3m_1.r3l_1 = new Long(0, 0);
|
|
935
935
|
this.v8_1 = 1;
|
|
936
936
|
continue $sm;
|
|
937
937
|
case 1:
|
|
938
|
-
if (!this.
|
|
939
|
-
this.
|
|
938
|
+
if (!this.w3m_1.o3l_1.w3f()) {
|
|
939
|
+
this.y3m_1 = true;
|
|
940
940
|
this.v8_1 = 3;
|
|
941
941
|
continue $sm;
|
|
942
942
|
} else {
|
|
943
943
|
this.v8_1 = 2;
|
|
944
|
-
suspendResult = this.
|
|
944
|
+
suspendResult = this.w3m_1.k3l_1.g3l(VOID, this);
|
|
945
945
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
946
946
|
return suspendResult;
|
|
947
947
|
}
|
|
@@ -949,17 +949,17 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
949
949
|
}
|
|
950
950
|
|
|
951
951
|
case 2:
|
|
952
|
-
this.
|
|
952
|
+
this.y3m_1 = suspendResult;
|
|
953
953
|
this.v8_1 = 3;
|
|
954
954
|
continue $sm;
|
|
955
955
|
case 3:
|
|
956
|
-
if (!this.
|
|
956
|
+
if (!this.y3m_1) {
|
|
957
957
|
this.v8_1 = 7;
|
|
958
958
|
continue $sm;
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
this.v8_1 = 4;
|
|
962
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
962
|
+
suspendResult = advanceToNextPotentialMatch(this.w3m_1, this);
|
|
963
963
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
964
964
|
return suspendResult;
|
|
965
965
|
}
|
|
@@ -967,7 +967,7 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
967
967
|
continue $sm;
|
|
968
968
|
case 4:
|
|
969
969
|
this.v8_1 = 5;
|
|
970
|
-
suspendResult = checkFullMatch(this.
|
|
970
|
+
suspendResult = checkFullMatch(this.w3m_1, this);
|
|
971
971
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
972
972
|
return suspendResult;
|
|
973
973
|
}
|
|
@@ -975,7 +975,7 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
975
975
|
continue $sm;
|
|
976
976
|
case 5:
|
|
977
977
|
if (suspendResult) {
|
|
978
|
-
return this.
|
|
978
|
+
return this.w3m_1.r3l_1;
|
|
979
979
|
} else {
|
|
980
980
|
this.v8_1 = 6;
|
|
981
981
|
continue $sm;
|
|
@@ -985,20 +985,20 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
985
985
|
this.v8_1 = 1;
|
|
986
986
|
continue $sm;
|
|
987
987
|
case 7:
|
|
988
|
-
if (!this.
|
|
989
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
988
|
+
if (!this.x3m_1) {
|
|
989
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.w3m_1, this.w3m_1.l3l_1) + '" but encountered end of input');
|
|
990
990
|
}
|
|
991
991
|
|
|
992
|
-
this.
|
|
992
|
+
this.w3m_1.r3l_1 = add(this.w3m_1.r3l_1, this.w3m_1.q3l_1.z3g(this.w3m_1.m3l_1.b3l()));
|
|
993
993
|
this.v8_1 = 8;
|
|
994
|
-
suspendResult = this.
|
|
994
|
+
suspendResult = this.w3m_1.m3l_1.y3k(this);
|
|
995
995
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
996
996
|
return suspendResult;
|
|
997
997
|
}
|
|
998
998
|
|
|
999
999
|
continue $sm;
|
|
1000
1000
|
case 8:
|
|
1001
|
-
return this.
|
|
1001
|
+
return this.w3m_1.r3l_1;
|
|
1002
1002
|
case 9:
|
|
1003
1003
|
throw this.y8_1;
|
|
1004
1004
|
}
|
|
@@ -1015,7 +1015,7 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
1015
1015
|
};
|
|
1016
1016
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1017
1017
|
CoroutineImpl.call(this, resultContinuation);
|
|
1018
|
-
this.
|
|
1018
|
+
this.b3m_1 = _this__u8e3s4;
|
|
1019
1019
|
}
|
|
1020
1020
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).d9 = function () {
|
|
1021
1021
|
var suspendResult = this.x8_1;
|
|
@@ -1028,13 +1028,13 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).d9 = function () {
|
|
|
1028
1028
|
this.v8_1 = 1;
|
|
1029
1029
|
continue $sm;
|
|
1030
1030
|
case 1:
|
|
1031
|
-
if (!this.
|
|
1032
|
-
this.
|
|
1031
|
+
if (!this.b3m_1.o3l_1.w3f()) {
|
|
1032
|
+
this.c3m_1 = true;
|
|
1033
1033
|
this.v8_1 = 3;
|
|
1034
1034
|
continue $sm;
|
|
1035
1035
|
} else {
|
|
1036
1036
|
this.v8_1 = 2;
|
|
1037
|
-
suspendResult = this.
|
|
1037
|
+
suspendResult = this.b3m_1.k3l_1.g3l(VOID, this);
|
|
1038
1038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1039
1039
|
return suspendResult;
|
|
1040
1040
|
}
|
|
@@ -1042,34 +1042,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).d9 = function () {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
|
|
1044
1044
|
case 2:
|
|
1045
|
-
this.
|
|
1045
|
+
this.c3m_1 = suspendResult;
|
|
1046
1046
|
this.v8_1 = 3;
|
|
1047
1047
|
continue $sm;
|
|
1048
1048
|
case 3:
|
|
1049
|
-
if (!this.
|
|
1049
|
+
if (!this.c3m_1) {
|
|
1050
1050
|
this.v8_1 = 7;
|
|
1051
1051
|
continue $sm;
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
|
-
var nextMatch = indexOf(this.
|
|
1054
|
+
var nextMatch = indexOf(this.b3m_1.o3l_1, this.b3m_1.l3l_1.f1(0));
|
|
1055
1055
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
1056
|
-
var tmp_0 = this.
|
|
1057
|
-
checkBounds(this.
|
|
1058
|
-
this.
|
|
1056
|
+
var tmp_0 = this.b3m_1.o3l_1;
|
|
1057
|
+
checkBounds(this.b3m_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).e1());
|
|
1058
|
+
this.b3m_1.r3l_1 = add(this.b3m_1.r3l_1, this.b3m_1.o3l_1.z3g(this.b3m_1.m3l_1.b3l()));
|
|
1059
1059
|
this.v8_1 = 5;
|
|
1060
|
-
suspendResult = flushIfNeeded(this.
|
|
1060
|
+
suspendResult = flushIfNeeded(this.b3m_1.m3l_1, this);
|
|
1061
1061
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1062
1062
|
return suspendResult;
|
|
1063
1063
|
}
|
|
1064
1064
|
continue $sm;
|
|
1065
1065
|
} else {
|
|
1066
|
-
checkBounds(this.
|
|
1067
|
-
var tmp_1 = this.
|
|
1068
|
-
var tmp_2 = this.
|
|
1069
|
-
var tmp_3 = this.
|
|
1070
|
-
tmp_1.
|
|
1066
|
+
checkBounds(this.b3m_1, nextMatch);
|
|
1067
|
+
var tmp_1 = this.b3m_1;
|
|
1068
|
+
var tmp_2 = this.b3m_1.r3l_1;
|
|
1069
|
+
var tmp_3 = this.b3m_1.m3l_1.b3l();
|
|
1070
|
+
tmp_1.r3l_1 = add(tmp_2, this.b3m_1.o3l_1.w3g(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1071
1071
|
this.v8_1 = 4;
|
|
1072
|
-
suspendResult = flushIfNeeded(this.
|
|
1072
|
+
suspendResult = flushIfNeeded(this.b3m_1.m3l_1, this);
|
|
1073
1073
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1074
1074
|
return suspendResult;
|
|
1075
1075
|
}
|
|
@@ -1102,7 +1102,7 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).d9 = function () {
|
|
|
1102
1102
|
};
|
|
1103
1103
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1104
1104
|
CoroutineImpl.call(this, resultContinuation);
|
|
1105
|
-
this.
|
|
1105
|
+
this.l3m_1 = _this__u8e3s4;
|
|
1106
1106
|
}
|
|
1107
1107
|
protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
1108
1108
|
var suspendResult = this.x8_1;
|
|
@@ -1115,13 +1115,13 @@ protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
|
1115
1115
|
this.v8_1 = 1;
|
|
1116
1116
|
continue $sm;
|
|
1117
1117
|
case 1:
|
|
1118
|
-
if (!this.
|
|
1119
|
-
this.
|
|
1118
|
+
if (!this.l3m_1.o3l_1.w3f()) {
|
|
1119
|
+
this.n3m_1 = true;
|
|
1120
1120
|
this.v8_1 = 3;
|
|
1121
1121
|
continue $sm;
|
|
1122
1122
|
} else {
|
|
1123
1123
|
this.v8_1 = 2;
|
|
1124
|
-
suspendResult = this.
|
|
1124
|
+
suspendResult = this.l3m_1.k3l_1.g3l(VOID, this);
|
|
1125
1125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1126
1126
|
return suspendResult;
|
|
1127
1127
|
}
|
|
@@ -1129,30 +1129,30 @@ protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
1131
|
case 2:
|
|
1132
|
-
this.
|
|
1132
|
+
this.n3m_1 = suspendResult;
|
|
1133
1133
|
this.v8_1 = 3;
|
|
1134
1134
|
continue $sm;
|
|
1135
1135
|
case 3:
|
|
1136
|
-
if (!this.
|
|
1136
|
+
if (!this.n3m_1) {
|
|
1137
1137
|
this.v8_1 = 7;
|
|
1138
1138
|
continue $sm;
|
|
1139
1139
|
}
|
|
1140
1140
|
|
|
1141
|
-
this.
|
|
1142
|
-
if (this.
|
|
1143
|
-
var oldMatchIndex = this.
|
|
1144
|
-
while (this.
|
|
1145
|
-
this.
|
|
1141
|
+
this.m3m_1 = this.l3m_1.o3l_1.z3f();
|
|
1142
|
+
if (this.l3m_1.s3l_1 > 0 && !(this.m3m_1 === this.l3m_1.l3l_1.f1(this.l3m_1.s3l_1))) {
|
|
1143
|
+
var oldMatchIndex = this.l3m_1.s3l_1;
|
|
1144
|
+
while (this.l3m_1.s3l_1 > 0 && !(this.m3m_1 === this.l3m_1.l3l_1.f1(this.l3m_1.s3l_1))) {
|
|
1145
|
+
this.l3m_1.s3l_1 = this.l3m_1.p3l_1[this.l3m_1.s3l_1 - 1 | 0];
|
|
1146
1146
|
}
|
|
1147
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
1148
|
-
checkBounds(this.
|
|
1149
|
-
var tmp_0 = this.
|
|
1150
|
-
var tmp_1 = this.
|
|
1151
|
-
var tmp_2 = this.
|
|
1152
|
-
tmp_0.
|
|
1153
|
-
if (this.
|
|
1147
|
+
var retained = fromInt(oldMatchIndex - this.l3m_1.s3l_1 | 0);
|
|
1148
|
+
checkBounds(this.l3m_1, retained);
|
|
1149
|
+
var tmp_0 = this.l3m_1;
|
|
1150
|
+
var tmp_1 = this.l3m_1.r3l_1;
|
|
1151
|
+
var tmp_2 = this.l3m_1.m3l_1.b3l();
|
|
1152
|
+
tmp_0.r3l_1 = add(tmp_1, this.l3m_1.q3l_1.w3g(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1153
|
+
if (this.l3m_1.s3l_1 === 0 && !(this.m3m_1 === this.l3m_1.l3l_1.f1(this.l3m_1.s3l_1))) {
|
|
1154
1154
|
this.v8_1 = 6;
|
|
1155
|
-
suspendResult = writeByte(this.
|
|
1155
|
+
suspendResult = writeByte(this.l3m_1.m3l_1, this.m3m_1, this);
|
|
1156
1156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1157
1157
|
return suspendResult;
|
|
1158
1158
|
}
|
|
@@ -1170,17 +1170,17 @@ protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
|
1170
1170
|
this.v8_1 = 5;
|
|
1171
1171
|
continue $sm;
|
|
1172
1172
|
case 5:
|
|
1173
|
-
this.
|
|
1174
|
-
if (this.
|
|
1173
|
+
this.l3m_1.s3l_1 = this.l3m_1.s3l_1 + 1 | 0;
|
|
1174
|
+
if (this.l3m_1.s3l_1 === this.l3m_1.l3l_1.e1()) {
|
|
1175
1175
|
return true;
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
|
-
this.
|
|
1178
|
+
this.l3m_1.q3l_1.p3h(this.m3m_1);
|
|
1179
1179
|
this.v8_1 = 1;
|
|
1180
1180
|
continue $sm;
|
|
1181
1181
|
case 6:
|
|
1182
|
-
var _unary__edvuaz = this.
|
|
1183
|
-
this.
|
|
1182
|
+
var _unary__edvuaz = this.l3m_1.r3l_1;
|
|
1183
|
+
this.l3m_1.r3l_1 = add(_unary__edvuaz, get_ONE());
|
|
1184
1184
|
return false;
|
|
1185
1185
|
case 7:
|
|
1186
1186
|
return false;
|
|
@@ -1200,68 +1200,68 @@ protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
|
1200
1200
|
};
|
|
1201
1201
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1202
1202
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1203
|
-
this.
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1206
|
-
this.
|
|
1203
|
+
this.k3l_1 = channel;
|
|
1204
|
+
this.l3l_1 = matchString;
|
|
1205
|
+
this.m3l_1 = writeChannel;
|
|
1206
|
+
this.n3l_1 = limit;
|
|
1207
1207
|
// Inline function 'kotlin.require' call
|
|
1208
|
-
if (!(this.
|
|
1208
|
+
if (!(this.l3l_1.e1() > 0)) {
|
|
1209
1209
|
var message = 'Empty match string not permitted for scanning';
|
|
1210
1210
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1211
1211
|
}
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1216
|
-
this.
|
|
1212
|
+
this.o3l_1 = this.k3l_1.a3l();
|
|
1213
|
+
this.p3l_1 = buildPartialMatchTable(this);
|
|
1214
|
+
this.q3l_1 = new Buffer();
|
|
1215
|
+
this.r3l_1 = new Long(0, 0);
|
|
1216
|
+
this.s3l_1 = 0;
|
|
1217
1217
|
}
|
|
1218
|
-
protoOf(ByteChannelScanner).
|
|
1218
|
+
protoOf(ByteChannelScanner).z3m = function (ignoreMissing, $completion) {
|
|
1219
1219
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1220
1220
|
tmp.x8_1 = Unit_instance;
|
|
1221
1221
|
tmp.y8_1 = null;
|
|
1222
1222
|
return tmp.d9();
|
|
1223
1223
|
};
|
|
1224
1224
|
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1225
|
-
var tmp = writerJob.
|
|
1225
|
+
var tmp = writerJob.a3n_1;
|
|
1226
1226
|
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1227
1227
|
if (tmp0_safe_receiver == null)
|
|
1228
1228
|
null;
|
|
1229
1229
|
else {
|
|
1230
|
-
tmp0_safe_receiver.
|
|
1230
|
+
tmp0_safe_receiver.j3l(attachWriterJob$lambda(_this__u8e3s4));
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
1233
|
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1234
1234
|
return function (cause) {
|
|
1235
1235
|
var tmp;
|
|
1236
1236
|
if (!(cause == null)) {
|
|
1237
|
-
$this_attachWriterJob.
|
|
1237
|
+
$this_attachWriterJob.i3l(cause);
|
|
1238
1238
|
tmp = Unit_instance;
|
|
1239
1239
|
}
|
|
1240
1240
|
return Unit_instance;
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
1243
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1244
|
+
this.c3n_1 = null;
|
|
1245
|
+
this.d3n_1 = new Buffer();
|
|
1246
1246
|
}
|
|
1247
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1248
|
-
return this.
|
|
1247
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d3l = function () {
|
|
1248
|
+
return this.c3n_1;
|
|
1249
1249
|
};
|
|
1250
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1250
|
+
protoOf(ByteReadChannel$Companion$Empty$1).e3l = function () {
|
|
1251
1251
|
return true;
|
|
1252
1252
|
};
|
|
1253
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1254
|
-
return this.
|
|
1253
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a3l = function () {
|
|
1254
|
+
return this.d3n_1;
|
|
1255
1255
|
};
|
|
1256
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1256
|
+
protoOf(ByteReadChannel$Companion$Empty$1).f3l = function (min, $completion) {
|
|
1257
1257
|
return false;
|
|
1258
1258
|
};
|
|
1259
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1259
|
+
protoOf(ByteReadChannel$Companion$Empty$1).i3l = function (cause) {
|
|
1260
1260
|
};
|
|
1261
1261
|
function Companion_0() {
|
|
1262
1262
|
Companion_instance_1 = this;
|
|
1263
1263
|
var tmp = this;
|
|
1264
|
-
tmp.
|
|
1264
|
+
tmp.e3n_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1265
1265
|
}
|
|
1266
1266
|
var Companion_instance_1;
|
|
1267
1267
|
function Companion_getInstance_0() {
|
|
@@ -1272,7 +1272,7 @@ function Companion_getInstance_0() {
|
|
|
1272
1272
|
function ByteReadChannel_1() {
|
|
1273
1273
|
}
|
|
1274
1274
|
function cancel_0(_this__u8e3s4) {
|
|
1275
|
-
_this__u8e3s4.
|
|
1275
|
+
_this__u8e3s4.i3l(IOException_init_$Create$('Channel was cancelled'));
|
|
1276
1276
|
}
|
|
1277
1277
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1278
1278
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1308,7 +1308,7 @@ function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
|
1308
1308
|
return tmp.d9();
|
|
1309
1309
|
}
|
|
1310
1310
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1311
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1311
|
+
var tmp0_safe_receiver = _this__u8e3s4.d3l();
|
|
1312
1312
|
if (tmp0_safe_receiver == null)
|
|
1313
1313
|
null;
|
|
1314
1314
|
else {
|
|
@@ -1331,7 +1331,7 @@ function readPacket(_this__u8e3s4, packet, $completion) {
|
|
|
1331
1331
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1332
1332
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1333
1333
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1334
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1334
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).z3m(ignoreMissing, $completion);
|
|
1335
1335
|
}
|
|
1336
1336
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1337
1337
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
@@ -1344,7 +1344,7 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1344
1344
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1345
1345
|
}
|
|
1346
1346
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1347
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1347
|
+
var tmp0_safe_receiver = _this__u8e3s4.d3l();
|
|
1348
1348
|
if (tmp0_safe_receiver == null)
|
|
1349
1349
|
null;
|
|
1350
1350
|
else {
|
|
@@ -1353,7 +1353,7 @@ function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
function get_availableForRead(_this__u8e3s4) {
|
|
1356
|
-
return convertToInt(_this__u8e3s4.
|
|
1356
|
+
return convertToInt(_this__u8e3s4.a3l().v3f().e1());
|
|
1357
1357
|
}
|
|
1358
1358
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1359
1359
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1380,7 +1380,7 @@ function throwTooLongLineException(limit) {
|
|
|
1380
1380
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' bytes');
|
|
1381
1381
|
}
|
|
1382
1382
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1383
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1383
|
+
var tmp0_safe_receiver = _this__u8e3s4.d3l();
|
|
1384
1384
|
if (tmp0_safe_receiver == null)
|
|
1385
1385
|
null;
|
|
1386
1386
|
else {
|
|
@@ -1393,7 +1393,7 @@ function internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count)
|
|
|
1393
1393
|
if (outBuffer._v == null) {
|
|
1394
1394
|
outBuffer._v = new Buffer();
|
|
1395
1395
|
}
|
|
1396
|
-
outBuffer._v.
|
|
1396
|
+
outBuffer._v.j3h(readBuffer, count);
|
|
1397
1397
|
consumed._v = add(consumed._v, count);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
@@ -1434,7 +1434,7 @@ function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLin
|
|
|
1434
1434
|
}
|
|
1435
1435
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1436
1436
|
CoroutineImpl.call(this, resultContinuation);
|
|
1437
|
-
this.
|
|
1437
|
+
this.n3n_1 = _this__u8e3s4;
|
|
1438
1438
|
}
|
|
1439
1439
|
protoOf($readRemainingCOROUTINE$).d9 = function () {
|
|
1440
1440
|
var suspendResult = this.x8_1;
|
|
@@ -1444,18 +1444,18 @@ protoOf($readRemainingCOROUTINE$).d9 = function () {
|
|
|
1444
1444
|
switch (tmp) {
|
|
1445
1445
|
case 0:
|
|
1446
1446
|
this.w8_1 = 4;
|
|
1447
|
-
this.
|
|
1447
|
+
this.o3n_1 = BytePacketBuilder();
|
|
1448
1448
|
this.v8_1 = 1;
|
|
1449
1449
|
continue $sm;
|
|
1450
1450
|
case 1:
|
|
1451
|
-
if (!!this.
|
|
1451
|
+
if (!!this.n3n_1.e3l()) {
|
|
1452
1452
|
this.v8_1 = 3;
|
|
1453
1453
|
continue $sm;
|
|
1454
1454
|
}
|
|
1455
1455
|
|
|
1456
|
-
this.
|
|
1456
|
+
this.o3n_1.o3h(this.n3n_1.a3l());
|
|
1457
1457
|
this.v8_1 = 2;
|
|
1458
|
-
suspendResult = this.
|
|
1458
|
+
suspendResult = this.n3n_1.g3l(VOID, this);
|
|
1459
1459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1460
1460
|
return suspendResult;
|
|
1461
1461
|
}
|
|
@@ -1465,8 +1465,8 @@ protoOf($readRemainingCOROUTINE$).d9 = function () {
|
|
|
1465
1465
|
this.v8_1 = 1;
|
|
1466
1466
|
continue $sm;
|
|
1467
1467
|
case 3:
|
|
1468
|
-
rethrowCloseCauseIfNeeded(this.
|
|
1469
|
-
return this.
|
|
1468
|
+
rethrowCloseCauseIfNeeded(this.n3n_1);
|
|
1469
|
+
return this.o3n_1.v3f();
|
|
1470
1470
|
case 4:
|
|
1471
1471
|
throw this.y8_1;
|
|
1472
1472
|
}
|
|
@@ -1483,8 +1483,8 @@ protoOf($readRemainingCOROUTINE$).d9 = function () {
|
|
|
1483
1483
|
};
|
|
1484
1484
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1485
1485
|
CoroutineImpl.call(this, resultContinuation);
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1486
|
+
this.x3n_1 = _this__u8e3s4;
|
|
1487
|
+
this.y3n_1 = max;
|
|
1488
1488
|
}
|
|
1489
1489
|
protoOf($discardCOROUTINE$).d9 = function () {
|
|
1490
1490
|
var suspendResult = this.x8_1;
|
|
@@ -1494,18 +1494,18 @@ protoOf($discardCOROUTINE$).d9 = function () {
|
|
|
1494
1494
|
switch (tmp) {
|
|
1495
1495
|
case 0:
|
|
1496
1496
|
this.w8_1 = 5;
|
|
1497
|
-
this.
|
|
1497
|
+
this.z3n_1 = this.y3n_1;
|
|
1498
1498
|
this.v8_1 = 1;
|
|
1499
1499
|
continue $sm;
|
|
1500
1500
|
case 1:
|
|
1501
|
-
if (!(compare(this.
|
|
1501
|
+
if (!(compare(this.z3n_1, new Long(0, 0)) > 0 && !this.x3n_1.e3l())) {
|
|
1502
1502
|
this.v8_1 = 4;
|
|
1503
1503
|
continue $sm;
|
|
1504
1504
|
}
|
|
1505
1505
|
|
|
1506
|
-
if (get_availableForRead(this.
|
|
1506
|
+
if (get_availableForRead(this.x3n_1) === 0) {
|
|
1507
1507
|
this.v8_1 = 2;
|
|
1508
|
-
suspendResult = this.
|
|
1508
|
+
suspendResult = this.x3n_1.g3l(VOID, this);
|
|
1509
1509
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1510
1510
|
return suspendResult;
|
|
1511
1511
|
}
|
|
@@ -1519,15 +1519,15 @@ protoOf($discardCOROUTINE$).d9 = function () {
|
|
|
1519
1519
|
this.v8_1 = 3;
|
|
1520
1520
|
continue $sm;
|
|
1521
1521
|
case 3:
|
|
1522
|
-
var tmp0 = this.
|
|
1523
|
-
var b = get_remaining(this.
|
|
1522
|
+
var tmp0 = this.z3n_1;
|
|
1523
|
+
var b = get_remaining(this.x3n_1.a3l());
|
|
1524
1524
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1525
|
-
discard_0(this.
|
|
1526
|
-
this.
|
|
1525
|
+
discard_0(this.x3n_1.a3l(), count);
|
|
1526
|
+
this.z3n_1 = subtract(this.z3n_1, count);
|
|
1527
1527
|
this.v8_1 = 1;
|
|
1528
1528
|
continue $sm;
|
|
1529
1529
|
case 4:
|
|
1530
|
-
return subtract(this.
|
|
1530
|
+
return subtract(this.y3n_1, this.z3n_1);
|
|
1531
1531
|
case 5:
|
|
1532
1532
|
throw this.y8_1;
|
|
1533
1533
|
}
|
|
@@ -1544,10 +1544,10 @@ protoOf($discardCOROUTINE$).d9 = function () {
|
|
|
1544
1544
|
};
|
|
1545
1545
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1546
1546
|
CoroutineImpl.call(this, resultContinuation);
|
|
1547
|
-
this.
|
|
1548
|
-
this.
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1547
|
+
this.i3o_1 = _this__u8e3s4;
|
|
1548
|
+
this.j3o_1 = buffer;
|
|
1549
|
+
this.k3o_1 = offset;
|
|
1550
|
+
this.l3o_1 = length;
|
|
1551
1551
|
}
|
|
1552
1552
|
protoOf($readAvailableCOROUTINE$).d9 = function () {
|
|
1553
1553
|
var suspendResult = this.x8_1;
|
|
@@ -1557,11 +1557,11 @@ protoOf($readAvailableCOROUTINE$).d9 = function () {
|
|
|
1557
1557
|
switch (tmp) {
|
|
1558
1558
|
case 0:
|
|
1559
1559
|
this.w8_1 = 3;
|
|
1560
|
-
if (this.
|
|
1560
|
+
if (this.i3o_1.e3l())
|
|
1561
1561
|
return -1;
|
|
1562
|
-
if (this.
|
|
1562
|
+
if (this.i3o_1.a3l().w3f()) {
|
|
1563
1563
|
this.v8_1 = 1;
|
|
1564
|
-
suspendResult = this.
|
|
1564
|
+
suspendResult = this.i3o_1.g3l(VOID, this);
|
|
1565
1565
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1566
1566
|
return suspendResult;
|
|
1567
1567
|
}
|
|
@@ -1575,9 +1575,9 @@ protoOf($readAvailableCOROUTINE$).d9 = function () {
|
|
|
1575
1575
|
this.v8_1 = 2;
|
|
1576
1576
|
continue $sm;
|
|
1577
1577
|
case 2:
|
|
1578
|
-
if (this.
|
|
1578
|
+
if (this.i3o_1.e3l())
|
|
1579
1579
|
return -1;
|
|
1580
|
-
return readAvailable_0(this.
|
|
1580
|
+
return readAvailable_0(this.i3o_1.a3l(), this.j3o_1, this.k3o_1, this.l3o_1);
|
|
1581
1581
|
case 3:
|
|
1582
1582
|
throw this.y8_1;
|
|
1583
1583
|
}
|
|
@@ -1594,7 +1594,7 @@ protoOf($readAvailableCOROUTINE$).d9 = function () {
|
|
|
1594
1594
|
};
|
|
1595
1595
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1596
1596
|
CoroutineImpl.call(this, resultContinuation);
|
|
1597
|
-
this.
|
|
1597
|
+
this.u3o_1 = _this__u8e3s4;
|
|
1598
1598
|
}
|
|
1599
1599
|
protoOf($toByteArrayCOROUTINE$).d9 = function () {
|
|
1600
1600
|
var suspendResult = this.x8_1;
|
|
@@ -1605,7 +1605,7 @@ protoOf($toByteArrayCOROUTINE$).d9 = function () {
|
|
|
1605
1605
|
case 0:
|
|
1606
1606
|
this.w8_1 = 2;
|
|
1607
1607
|
this.v8_1 = 1;
|
|
1608
|
-
suspendResult = readBuffer(this.
|
|
1608
|
+
suspendResult = readBuffer(this.u3o_1, this);
|
|
1609
1609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1610
1610
|
return suspendResult;
|
|
1611
1611
|
}
|
|
@@ -1630,9 +1630,9 @@ protoOf($toByteArrayCOROUTINE$).d9 = function () {
|
|
|
1630
1630
|
};
|
|
1631
1631
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1632
1632
|
CoroutineImpl.call(this, resultContinuation);
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1633
|
+
this.d3p_1 = _this__u8e3s4;
|
|
1634
|
+
this.e3p_1 = channel;
|
|
1635
|
+
this.f3p_1 = limit;
|
|
1636
1636
|
}
|
|
1637
1637
|
protoOf($copyToCOROUTINE$).d9 = function () {
|
|
1638
1638
|
var suspendResult = this.x8_1;
|
|
@@ -1642,7 +1642,7 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1642
1642
|
switch (tmp) {
|
|
1643
1643
|
case 0:
|
|
1644
1644
|
this.w8_1 = 12;
|
|
1645
|
-
this.
|
|
1645
|
+
this.g3p_1 = this.f3p_1;
|
|
1646
1646
|
this.v8_1 = 1;
|
|
1647
1647
|
continue $sm;
|
|
1648
1648
|
case 1:
|
|
@@ -1651,14 +1651,14 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1651
1651
|
this.v8_1 = 2;
|
|
1652
1652
|
continue $sm;
|
|
1653
1653
|
case 2:
|
|
1654
|
-
if (!(!this.
|
|
1654
|
+
if (!(!this.d3p_1.e3l() && compare(this.g3p_1, new Long(0, 0)) > 0)) {
|
|
1655
1655
|
this.v8_1 = 6;
|
|
1656
1656
|
continue $sm;
|
|
1657
1657
|
}
|
|
1658
1658
|
|
|
1659
|
-
if (this.
|
|
1659
|
+
if (this.d3p_1.a3l().w3f()) {
|
|
1660
1660
|
this.v8_1 = 3;
|
|
1661
|
-
suspendResult = this.
|
|
1661
|
+
suspendResult = this.d3p_1.g3l(VOID, this);
|
|
1662
1662
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1663
1663
|
return suspendResult;
|
|
1664
1664
|
}
|
|
@@ -1672,13 +1672,13 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1672
1672
|
this.v8_1 = 4;
|
|
1673
1673
|
continue $sm;
|
|
1674
1674
|
case 4:
|
|
1675
|
-
var tmp0 = this.
|
|
1676
|
-
var b = get_remaining(this.
|
|
1675
|
+
var tmp0 = this.g3p_1;
|
|
1676
|
+
var b = get_remaining(this.d3p_1.a3l());
|
|
1677
1677
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1678
|
+
this.d3p_1.a3l().y3g(this.e3p_1.b3l(), count);
|
|
1679
|
+
this.g3p_1 = subtract(this.g3p_1, count);
|
|
1680
1680
|
this.v8_1 = 5;
|
|
1681
|
-
suspendResult = this.
|
|
1681
|
+
suspendResult = this.e3p_1.y3k(this);
|
|
1682
1682
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1683
1683
|
return suspendResult;
|
|
1684
1684
|
}
|
|
@@ -1696,8 +1696,8 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1696
1696
|
var tmp_0 = this.y8_1;
|
|
1697
1697
|
if (tmp_0 instanceof Error) {
|
|
1698
1698
|
var cause = this.y8_1;
|
|
1699
|
-
this.
|
|
1700
|
-
close_0(this.
|
|
1699
|
+
this.d3p_1.i3l(cause);
|
|
1700
|
+
close_0(this.e3p_1, cause);
|
|
1701
1701
|
throw cause;
|
|
1702
1702
|
} else {
|
|
1703
1703
|
throw this.y8_1;
|
|
@@ -1705,27 +1705,27 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1705
1705
|
|
|
1706
1706
|
case 8:
|
|
1707
1707
|
this.w8_1 = 12;
|
|
1708
|
-
this.
|
|
1708
|
+
this.h3p_1 = this.y8_1;
|
|
1709
1709
|
this.v8_1 = 9;
|
|
1710
|
-
suspendResult = this.
|
|
1710
|
+
suspendResult = this.e3p_1.y3k(this);
|
|
1711
1711
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1712
1712
|
return suspendResult;
|
|
1713
1713
|
}
|
|
1714
1714
|
|
|
1715
1715
|
continue $sm;
|
|
1716
1716
|
case 9:
|
|
1717
|
-
throw this.
|
|
1717
|
+
throw this.h3p_1;
|
|
1718
1718
|
case 10:
|
|
1719
1719
|
this.w8_1 = 12;
|
|
1720
1720
|
this.v8_1 = 11;
|
|
1721
|
-
suspendResult = this.
|
|
1721
|
+
suspendResult = this.e3p_1.y3k(this);
|
|
1722
1722
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1723
1723
|
return suspendResult;
|
|
1724
1724
|
}
|
|
1725
1725
|
|
|
1726
1726
|
continue $sm;
|
|
1727
1727
|
case 11:
|
|
1728
|
-
return subtract(this.
|
|
1728
|
+
return subtract(this.f3p_1, this.g3p_1);
|
|
1729
1729
|
case 12:
|
|
1730
1730
|
throw this.y8_1;
|
|
1731
1731
|
}
|
|
@@ -1742,8 +1742,8 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1742
1742
|
};
|
|
1743
1743
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1744
1744
|
CoroutineImpl.call(this, resultContinuation);
|
|
1745
|
-
this.
|
|
1746
|
-
this.
|
|
1745
|
+
this.q3p_1 = _this__u8e3s4;
|
|
1746
|
+
this.r3p_1 = byteString;
|
|
1747
1747
|
}
|
|
1748
1748
|
protoOf($skipIfFoundCOROUTINE$).d9 = function () {
|
|
1749
1749
|
var suspendResult = this.x8_1;
|
|
@@ -1754,7 +1754,7 @@ protoOf($skipIfFoundCOROUTINE$).d9 = function () {
|
|
|
1754
1754
|
case 0:
|
|
1755
1755
|
this.w8_1 = 4;
|
|
1756
1756
|
this.v8_1 = 1;
|
|
1757
|
-
suspendResult = peek(this.
|
|
1757
|
+
suspendResult = peek(this.q3p_1, this.r3p_1.e1(), this);
|
|
1758
1758
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1759
1759
|
return suspendResult;
|
|
1760
1760
|
}
|
|
@@ -1762,9 +1762,9 @@ protoOf($skipIfFoundCOROUTINE$).d9 = function () {
|
|
|
1762
1762
|
continue $sm;
|
|
1763
1763
|
case 1:
|
|
1764
1764
|
var ARGUMENT = suspendResult;
|
|
1765
|
-
if (equals(ARGUMENT, this.
|
|
1765
|
+
if (equals(ARGUMENT, this.r3p_1)) {
|
|
1766
1766
|
this.v8_1 = 3;
|
|
1767
|
-
suspendResult = discard(this.
|
|
1767
|
+
suspendResult = discard(this.q3p_1, fromInt(this.r3p_1.e1()), this);
|
|
1768
1768
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1769
1769
|
return suspendResult;
|
|
1770
1770
|
}
|
|
@@ -1794,8 +1794,8 @@ protoOf($skipIfFoundCOROUTINE$).d9 = function () {
|
|
|
1794
1794
|
};
|
|
1795
1795
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1796
1796
|
CoroutineImpl.call(this, resultContinuation);
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1797
|
+
this.a3q_1 = _this__u8e3s4;
|
|
1798
|
+
this.b3q_1 = packet;
|
|
1799
1799
|
}
|
|
1800
1800
|
protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
1801
1801
|
var suspendResult = this.x8_1;
|
|
@@ -1805,18 +1805,18 @@ protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
|
1805
1805
|
switch (tmp) {
|
|
1806
1806
|
case 0:
|
|
1807
1807
|
this.w8_1 = 6;
|
|
1808
|
-
this.
|
|
1808
|
+
this.c3q_1 = new Buffer();
|
|
1809
1809
|
this.v8_1 = 1;
|
|
1810
1810
|
continue $sm;
|
|
1811
1811
|
case 1:
|
|
1812
|
-
if (!(compare(this.
|
|
1812
|
+
if (!(compare(this.c3q_1.e1(), fromInt(this.b3q_1)) < 0)) {
|
|
1813
1813
|
this.v8_1 = 5;
|
|
1814
1814
|
continue $sm;
|
|
1815
1815
|
}
|
|
1816
1816
|
|
|
1817
|
-
if (this.
|
|
1817
|
+
if (this.a3q_1.a3l().w3f()) {
|
|
1818
1818
|
this.v8_1 = 2;
|
|
1819
|
-
suspendResult = this.
|
|
1819
|
+
suspendResult = this.a3q_1.g3l(VOID, this);
|
|
1820
1820
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1821
1821
|
return suspendResult;
|
|
1822
1822
|
}
|
|
@@ -1830,7 +1830,7 @@ protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
|
1830
1830
|
this.v8_1 = 3;
|
|
1831
1831
|
continue $sm;
|
|
1832
1832
|
case 3:
|
|
1833
|
-
if (this.
|
|
1833
|
+
if (this.a3q_1.e3l()) {
|
|
1834
1834
|
this.v8_1 = 5;
|
|
1835
1835
|
continue $sm;
|
|
1836
1836
|
} else {
|
|
@@ -1839,20 +1839,20 @@ protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
1841
1841
|
case 4:
|
|
1842
|
-
if (compare(get_remaining(this.
|
|
1843
|
-
this.
|
|
1842
|
+
if (compare(get_remaining(this.a3q_1.a3l()), subtract(numberToLong(this.b3q_1), this.c3q_1.e1())) > 0) {
|
|
1843
|
+
this.a3q_1.a3l().y3g(this.c3q_1, subtract(numberToLong(this.b3q_1), this.c3q_1.e1()));
|
|
1844
1844
|
} else {
|
|
1845
|
-
this.
|
|
1845
|
+
this.a3q_1.a3l().z3g(this.c3q_1);
|
|
1846
1846
|
}
|
|
1847
1847
|
|
|
1848
1848
|
this.v8_1 = 1;
|
|
1849
1849
|
continue $sm;
|
|
1850
1850
|
case 5:
|
|
1851
|
-
if (compare(this.
|
|
1852
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1851
|
+
if (compare(this.c3q_1.e1(), fromInt(this.b3q_1)) < 0) {
|
|
1852
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.b3q_1 + ' bytes but only ' + this.c3q_1.e1().toString() + ' available');
|
|
1853
1853
|
}
|
|
1854
1854
|
|
|
1855
|
-
return this.
|
|
1855
|
+
return this.c3q_1;
|
|
1856
1856
|
case 6:
|
|
1857
1857
|
throw this.y8_1;
|
|
1858
1858
|
}
|
|
@@ -1869,7 +1869,7 @@ protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
|
1869
1869
|
};
|
|
1870
1870
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1871
1871
|
CoroutineImpl.call(this, resultContinuation);
|
|
1872
|
-
this.
|
|
1872
|
+
this.l3q_1 = _this__u8e3s4;
|
|
1873
1873
|
}
|
|
1874
1874
|
protoOf($readBufferCOROUTINE$).d9 = function () {
|
|
1875
1875
|
var suspendResult = this.x8_1;
|
|
@@ -1879,18 +1879,18 @@ protoOf($readBufferCOROUTINE$).d9 = function () {
|
|
|
1879
1879
|
switch (tmp) {
|
|
1880
1880
|
case 0:
|
|
1881
1881
|
this.w8_1 = 4;
|
|
1882
|
-
this.
|
|
1882
|
+
this.m3q_1 = new Buffer();
|
|
1883
1883
|
this.v8_1 = 1;
|
|
1884
1884
|
continue $sm;
|
|
1885
1885
|
case 1:
|
|
1886
|
-
if (!!this.
|
|
1886
|
+
if (!!this.l3q_1.e3l()) {
|
|
1887
1887
|
this.v8_1 = 3;
|
|
1888
1888
|
continue $sm;
|
|
1889
1889
|
}
|
|
1890
1890
|
|
|
1891
|
-
this.
|
|
1891
|
+
this.m3q_1.o3h(this.l3q_1.a3l());
|
|
1892
1892
|
this.v8_1 = 2;
|
|
1893
|
-
suspendResult = this.
|
|
1893
|
+
suspendResult = this.l3q_1.g3l(VOID, this);
|
|
1894
1894
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1895
1895
|
return suspendResult;
|
|
1896
1896
|
}
|
|
@@ -1900,14 +1900,14 @@ protoOf($readBufferCOROUTINE$).d9 = function () {
|
|
|
1900
1900
|
this.v8_1 = 1;
|
|
1901
1901
|
continue $sm;
|
|
1902
1902
|
case 3:
|
|
1903
|
-
var tmp0_safe_receiver = this.
|
|
1903
|
+
var tmp0_safe_receiver = this.l3q_1.d3l();
|
|
1904
1904
|
if (tmp0_safe_receiver == null)
|
|
1905
1905
|
null;
|
|
1906
1906
|
else {
|
|
1907
1907
|
throw tmp0_safe_receiver;
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
|
-
return this.
|
|
1910
|
+
return this.m3q_1;
|
|
1911
1911
|
case 4:
|
|
1912
1912
|
throw this.y8_1;
|
|
1913
1913
|
}
|
|
@@ -1924,8 +1924,8 @@ protoOf($readBufferCOROUTINE$).d9 = function () {
|
|
|
1924
1924
|
};
|
|
1925
1925
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1926
1926
|
CoroutineImpl.call(this, resultContinuation);
|
|
1927
|
-
this.
|
|
1928
|
-
this.
|
|
1927
|
+
this.v3q_1 = _this__u8e3s4;
|
|
1928
|
+
this.w3q_1 = count;
|
|
1929
1929
|
}
|
|
1930
1930
|
protoOf($peekCOROUTINE$).d9 = function () {
|
|
1931
1931
|
var suspendResult = this.x8_1;
|
|
@@ -1935,10 +1935,10 @@ protoOf($peekCOROUTINE$).d9 = function () {
|
|
|
1935
1935
|
switch (tmp) {
|
|
1936
1936
|
case 0:
|
|
1937
1937
|
this.w8_1 = 3;
|
|
1938
|
-
if (this.
|
|
1938
|
+
if (this.v3q_1.e3l())
|
|
1939
1939
|
return null;
|
|
1940
1940
|
this.v8_1 = 1;
|
|
1941
|
-
suspendResult = this.
|
|
1941
|
+
suspendResult = this.v3q_1.f3l(this.w3q_1, this);
|
|
1942
1942
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1943
1943
|
return suspendResult;
|
|
1944
1944
|
}
|
|
@@ -1953,7 +1953,7 @@ protoOf($peekCOROUTINE$).d9 = function () {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
|
|
1955
1955
|
case 2:
|
|
1956
|
-
return readByteString(this.
|
|
1956
|
+
return readByteString(this.v3q_1.a3l().a3h(), this.w3q_1);
|
|
1957
1957
|
case 3:
|
|
1958
1958
|
throw this.y8_1;
|
|
1959
1959
|
}
|
|
@@ -1970,11 +1970,11 @@ protoOf($peekCOROUTINE$).d9 = function () {
|
|
|
1970
1970
|
};
|
|
1971
1971
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1972
1972
|
CoroutineImpl.call(this, resultContinuation);
|
|
1973
|
-
this.
|
|
1974
|
-
this.
|
|
1975
|
-
this.
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1973
|
+
this.f3r_1 = _this__u8e3s4;
|
|
1974
|
+
this.g3r_1 = out;
|
|
1975
|
+
this.h3r_1 = limit;
|
|
1976
|
+
this.i3r_1 = lenientLineEnding;
|
|
1977
|
+
this.j3r_1 = throwOnIncompleteLine;
|
|
1978
1978
|
}
|
|
1979
1979
|
protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
1980
1980
|
var suspendResult = this.x8_1;
|
|
@@ -1984,10 +1984,10 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
1984
1984
|
switch (tmp) {
|
|
1985
1985
|
case 0:
|
|
1986
1986
|
this.w8_1 = 27;
|
|
1987
|
-
this.
|
|
1988
|
-
if (this.
|
|
1987
|
+
this.n3r_1 = this.f3r_1.a3l();
|
|
1988
|
+
if (this.n3r_1.w3f()) {
|
|
1989
1989
|
this.v8_1 = 1;
|
|
1990
|
-
suspendResult = this.
|
|
1990
|
+
suspendResult = this.f3r_1.g3l(VOID, this);
|
|
1991
1991
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1992
1992
|
return suspendResult;
|
|
1993
1993
|
}
|
|
@@ -2001,10 +2001,10 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2001
2001
|
this.v8_1 = 2;
|
|
2002
2002
|
continue $sm;
|
|
2003
2003
|
case 2:
|
|
2004
|
-
if (this.
|
|
2004
|
+
if (this.f3r_1.e3l())
|
|
2005
2005
|
return new Long(-1, -1);
|
|
2006
|
-
this.
|
|
2007
|
-
this.
|
|
2006
|
+
this.m3r_1 = {_v: new Long(0, 0)};
|
|
2007
|
+
this.k3r_1 = {_v: null};
|
|
2008
2008
|
this.v8_1 = 3;
|
|
2009
2009
|
continue $sm;
|
|
2010
2010
|
case 3:
|
|
@@ -2015,18 +2015,18 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2015
2015
|
this.v8_1 = 5;
|
|
2016
2016
|
continue $sm;
|
|
2017
2017
|
case 5:
|
|
2018
|
-
if (!(compare(this.
|
|
2018
|
+
if (!(compare(this.m3r_1._v, this.h3r_1) < 0 && !this.f3r_1.e3l())) {
|
|
2019
2019
|
this.v8_1 = 15;
|
|
2020
2020
|
continue $sm;
|
|
2021
2021
|
}
|
|
2022
2022
|
|
|
2023
|
-
this.
|
|
2024
|
-
this.
|
|
2025
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
2023
|
+
this.q3r_1 = subtract(this.h3r_1, this.m3r_1._v);
|
|
2024
|
+
this.r3r_1 = indexOf(this.n3r_1, 10, VOID, this.q3r_1);
|
|
2025
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.n3r_1, this.i3r_1, this.r3r_1, this.q3r_1);
|
|
2026
2026
|
if (compare(crIndex, new Long(0, 0)) >= 0) {
|
|
2027
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2028
|
-
discard_0(this.
|
|
2029
|
-
this.
|
|
2027
|
+
internalReadLineTo$appendOrBuffer(this.k3r_1, this.g3r_1, this.n3r_1, this.m3r_1, crIndex);
|
|
2028
|
+
discard_0(this.n3r_1, new Long(1, 0));
|
|
2029
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2030
2030
|
this.w8_1 = 27;
|
|
2031
2031
|
this.v8_1 = 25;
|
|
2032
2032
|
continue $sm;
|
|
@@ -2036,9 +2036,9 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
2038
|
case 6:
|
|
2039
|
-
if (equalsLong(this.
|
|
2040
|
-
discard_0(this.
|
|
2041
|
-
this.
|
|
2039
|
+
if (equalsLong(this.r3r_1, new Long(0, 0))) {
|
|
2040
|
+
discard_0(this.n3r_1, new Long(1, 0));
|
|
2041
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2042
2042
|
this.w8_1 = 27;
|
|
2043
2043
|
this.v8_1 = 25;
|
|
2044
2044
|
continue $sm;
|
|
@@ -2048,19 +2048,19 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
|
|
2050
2050
|
case 7:
|
|
2051
|
-
if (compare(this.
|
|
2051
|
+
if (compare(this.r3r_1, new Long(0, 0)) > 0) {
|
|
2052
2052
|
var tmp_0;
|
|
2053
|
-
var tmp_1 = this.
|
|
2054
|
-
var this_0 = this.
|
|
2055
|
-
if (tmp_1.
|
|
2053
|
+
var tmp_1 = this.n3r_1.v3f();
|
|
2054
|
+
var this_0 = this.r3r_1;
|
|
2055
|
+
if (tmp_1.r3g(subtract(this_0, fromInt(1))) === 13) {
|
|
2056
2056
|
tmp_0 = new Long(1, 0);
|
|
2057
2057
|
} else {
|
|
2058
2058
|
tmp_0 = new Long(0, 0);
|
|
2059
2059
|
}
|
|
2060
2060
|
var isCrlf = tmp_0;
|
|
2061
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2062
|
-
discard_0(this.
|
|
2063
|
-
this.
|
|
2061
|
+
internalReadLineTo$appendOrBuffer(this.k3r_1, this.g3r_1, this.n3r_1, this.m3r_1, subtract(this.r3r_1, isCrlf));
|
|
2062
|
+
discard_0(this.n3r_1, add(numberToLong(1), isCrlf));
|
|
2063
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2064
2064
|
this.w8_1 = 27;
|
|
2065
2065
|
this.v8_1 = 25;
|
|
2066
2066
|
continue $sm;
|
|
@@ -2070,32 +2070,32 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
|
|
2072
2072
|
case 8:
|
|
2073
|
-
var tmp0 = this.
|
|
2074
|
-
var b = get_remaining(this.
|
|
2073
|
+
var tmp0 = this.q3r_1;
|
|
2074
|
+
var b = get_remaining(this.n3r_1);
|
|
2075
2075
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2076
|
-
var tmp_2 = this.
|
|
2077
|
-
if (tmp_2.
|
|
2078
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2076
|
+
var tmp_2 = this.n3r_1.v3f();
|
|
2077
|
+
if (tmp_2.r3g(subtract(count, fromInt(1))) === 13) {
|
|
2078
|
+
internalReadLineTo$appendOrBuffer(this.k3r_1, this.g3r_1, this.n3r_1, this.m3r_1, subtract(count, fromInt(1)));
|
|
2079
2079
|
this.v8_1 = 9;
|
|
2080
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2080
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.n3r_1, this.f3r_1, this.i3r_1, this);
|
|
2081
2081
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2082
2082
|
return suspendResult;
|
|
2083
2083
|
}
|
|
2084
2084
|
continue $sm;
|
|
2085
2085
|
} else {
|
|
2086
|
-
internalReadLineTo$bufferBytes(this.
|
|
2086
|
+
internalReadLineTo$bufferBytes(this.k3r_1, this.n3r_1, this.m3r_1, count);
|
|
2087
2087
|
this.v8_1 = 11;
|
|
2088
2088
|
continue $sm;
|
|
2089
2089
|
}
|
|
2090
2090
|
|
|
2091
2091
|
case 9:
|
|
2092
2092
|
if (suspendResult) {
|
|
2093
|
-
this.
|
|
2093
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2094
2094
|
this.w8_1 = 27;
|
|
2095
2095
|
this.v8_1 = 25;
|
|
2096
2096
|
continue $sm;
|
|
2097
2097
|
} else {
|
|
2098
|
-
internalReadLineTo$bufferBytes(this.
|
|
2098
|
+
internalReadLineTo$bufferBytes(this.k3r_1, this.n3r_1, this.m3r_1, new Long(1, 0));
|
|
2099
2099
|
this.v8_1 = 10;
|
|
2100
2100
|
continue $sm;
|
|
2101
2101
|
}
|
|
@@ -2104,25 +2104,25 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2104
2104
|
this.v8_1 = 11;
|
|
2105
2105
|
continue $sm;
|
|
2106
2106
|
case 11:
|
|
2107
|
-
if (compare(this.
|
|
2107
|
+
if (compare(this.m3r_1._v, this.h3r_1) < 0 && equalsLong(get_remaining(this.n3r_1), new Long(0, 0))) {
|
|
2108
2108
|
this.v8_1 = 12;
|
|
2109
|
-
suspendResult = this.
|
|
2109
|
+
suspendResult = this.f3r_1.g3l(VOID, this);
|
|
2110
2110
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2111
2111
|
return suspendResult;
|
|
2112
2112
|
}
|
|
2113
2113
|
continue $sm;
|
|
2114
2114
|
} else {
|
|
2115
|
-
this.
|
|
2115
|
+
this.p3r_1 = false;
|
|
2116
2116
|
this.v8_1 = 13;
|
|
2117
2117
|
continue $sm;
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
2120
|
case 12:
|
|
2121
|
-
this.
|
|
2121
|
+
this.p3r_1 = !suspendResult;
|
|
2122
2122
|
this.v8_1 = 13;
|
|
2123
2123
|
continue $sm;
|
|
2124
2124
|
case 13:
|
|
2125
|
-
if (this.
|
|
2125
|
+
if (this.p3r_1) {
|
|
2126
2126
|
this.v8_1 = 15;
|
|
2127
2127
|
continue $sm;
|
|
2128
2128
|
} else {
|
|
@@ -2134,8 +2134,8 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2134
2134
|
this.v8_1 = 5;
|
|
2135
2135
|
continue $sm;
|
|
2136
2136
|
case 15:
|
|
2137
|
-
if (equalsLong(this.
|
|
2138
|
-
this.
|
|
2137
|
+
if (equalsLong(this.m3r_1._v, new Long(0, 0)) && this.f3r_1.e3l()) {
|
|
2138
|
+
this.l3r_1 = new Long(-1, -1);
|
|
2139
2139
|
this.w8_1 = 27;
|
|
2140
2140
|
this.v8_1 = 25;
|
|
2141
2141
|
continue $sm;
|
|
@@ -2145,23 +2145,23 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
|
|
2147
2147
|
case 16:
|
|
2148
|
-
if (!(compare(this.
|
|
2149
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2148
|
+
if (!(compare(this.m3r_1._v, this.h3r_1) <= 0)) {
|
|
2149
|
+
var message = 'Consumed bytes exceed the limit: ' + this.m3r_1._v.toString() + ' > ' + this.h3r_1.toString() + ". It's an implementation bug, please report it.";
|
|
2150
2150
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2151
2151
|
}
|
|
2152
2152
|
|
|
2153
|
-
if (equalsLong(this.
|
|
2154
|
-
if (equalsLong(this.
|
|
2153
|
+
if (equalsLong(this.m3r_1._v, this.h3r_1)) {
|
|
2154
|
+
if (equalsLong(this.h3r_1, new Long(-1, 2147483647)))
|
|
2155
2155
|
throw new TooLongLineException('Max line length exceeded');
|
|
2156
|
-
if (equalsLong(get_remaining(this.
|
|
2156
|
+
if (equalsLong(get_remaining(this.n3r_1), new Long(0, 0))) {
|
|
2157
2157
|
this.v8_1 = 18;
|
|
2158
|
-
suspendResult = this.
|
|
2158
|
+
suspendResult = this.f3r_1.g3l(VOID, this);
|
|
2159
2159
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2160
2160
|
return suspendResult;
|
|
2161
2161
|
}
|
|
2162
2162
|
continue $sm;
|
|
2163
2163
|
} else {
|
|
2164
|
-
this.
|
|
2164
|
+
this.o3r_1 = false;
|
|
2165
2165
|
this.v8_1 = 19;
|
|
2166
2166
|
continue $sm;
|
|
2167
2167
|
}
|
|
@@ -2171,22 +2171,22 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
|
|
2173
2173
|
case 17:
|
|
2174
|
-
if (this.
|
|
2175
|
-
throwEndOfStreamException(this.
|
|
2174
|
+
if (this.j3r_1) {
|
|
2175
|
+
throwEndOfStreamException(this.m3r_1._v);
|
|
2176
2176
|
}
|
|
2177
2177
|
|
|
2178
|
-
this.
|
|
2178
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2179
2179
|
this.w8_1 = 27;
|
|
2180
2180
|
this.v8_1 = 25;
|
|
2181
2181
|
var tmp_3 = this;
|
|
2182
2182
|
continue $sm;
|
|
2183
2183
|
case 18:
|
|
2184
|
-
this.
|
|
2184
|
+
this.o3r_1 = !suspendResult;
|
|
2185
2185
|
this.v8_1 = 19;
|
|
2186
2186
|
continue $sm;
|
|
2187
2187
|
case 19:
|
|
2188
|
-
if (this.
|
|
2189
|
-
throwEndOfStreamException(this.
|
|
2188
|
+
if (this.o3r_1) {
|
|
2189
|
+
throwEndOfStreamException(this.m3r_1._v);
|
|
2190
2190
|
} else {
|
|
2191
2191
|
this.v8_1 = 20;
|
|
2192
2192
|
continue $sm;
|
|
@@ -2194,17 +2194,17 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2194
2194
|
|
|
2195
2195
|
break;
|
|
2196
2196
|
case 20:
|
|
2197
|
-
var tmp0_subject = this.
|
|
2197
|
+
var tmp0_subject = this.n3r_1.v3f().r3g(new Long(0, 0));
|
|
2198
2198
|
if (tmp0_subject === 10) {
|
|
2199
|
-
discard_0(this.
|
|
2200
|
-
this.
|
|
2199
|
+
discard_0(this.n3r_1, new Long(1, 0));
|
|
2200
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2201
2201
|
this.w8_1 = 27;
|
|
2202
2202
|
this.v8_1 = 25;
|
|
2203
2203
|
continue $sm;
|
|
2204
2204
|
} else {
|
|
2205
2205
|
if (tmp0_subject === 13) {
|
|
2206
2206
|
this.v8_1 = 21;
|
|
2207
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2207
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.n3r_1, this.f3r_1, this.i3r_1, this);
|
|
2208
2208
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2209
2209
|
return suspendResult;
|
|
2210
2210
|
}
|
|
@@ -2217,7 +2217,7 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2217
2217
|
|
|
2218
2218
|
case 21:
|
|
2219
2219
|
if (suspendResult) {
|
|
2220
|
-
this.
|
|
2220
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2221
2221
|
this.w8_1 = 27;
|
|
2222
2222
|
this.v8_1 = 25;
|
|
2223
2223
|
continue $sm;
|
|
@@ -2230,28 +2230,28 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2230
2230
|
this.v8_1 = 23;
|
|
2231
2231
|
continue $sm;
|
|
2232
2232
|
case 23:
|
|
2233
|
-
throwTooLongLineException(this.
|
|
2233
|
+
throwTooLongLineException(this.h3r_1);
|
|
2234
2234
|
break;
|
|
2235
2235
|
case 24:
|
|
2236
2236
|
this.w8_1 = 27;
|
|
2237
2237
|
var t = this.y8_1;
|
|
2238
|
-
if (!(this.
|
|
2239
|
-
this.
|
|
2238
|
+
if (!(this.k3r_1._v == null)) {
|
|
2239
|
+
this.g3r_1.c1(readString_0(this.k3r_1._v));
|
|
2240
2240
|
}
|
|
2241
2241
|
|
|
2242
2242
|
throw t;
|
|
2243
2243
|
case 25:
|
|
2244
|
-
var tmp_4 = this.
|
|
2244
|
+
var tmp_4 = this.l3r_1;
|
|
2245
2245
|
this.w8_1 = 27;
|
|
2246
|
-
if (!(this.
|
|
2247
|
-
this.
|
|
2246
|
+
if (!(this.k3r_1._v == null)) {
|
|
2247
|
+
this.g3r_1.c1(readString_0(this.k3r_1._v));
|
|
2248
2248
|
}
|
|
2249
2249
|
|
|
2250
2250
|
return tmp_4;
|
|
2251
2251
|
case 26:
|
|
2252
2252
|
this.w8_1 = 27;
|
|
2253
|
-
if (!(this.
|
|
2254
|
-
this.
|
|
2253
|
+
if (!(this.k3r_1._v == null)) {
|
|
2254
|
+
this.g3r_1.c1(readString_0(this.k3r_1._v));
|
|
2255
2255
|
}
|
|
2256
2256
|
|
|
2257
2257
|
return Unit_instance;
|
|
@@ -2271,9 +2271,9 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2271
2271
|
};
|
|
2272
2272
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2273
2273
|
CoroutineImpl.call(this, resultContinuation);
|
|
2274
|
-
this.
|
|
2275
|
-
this.
|
|
2276
|
-
this.
|
|
2274
|
+
this.a3s_1 = _this__u8e3s4;
|
|
2275
|
+
this.b3s_1 = $this_internalReadLineTo;
|
|
2276
|
+
this.c3s_1 = $lenientLineEnding;
|
|
2277
2277
|
}
|
|
2278
2278
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).d9 = function () {
|
|
2279
2279
|
var suspendResult = this.x8_1;
|
|
@@ -2283,13 +2283,13 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).d9 = function () {
|
|
|
2283
2283
|
switch (tmp) {
|
|
2284
2284
|
case 0:
|
|
2285
2285
|
this.w8_1 = 5;
|
|
2286
|
-
if (compare(get_remaining(this.
|
|
2287
|
-
this.
|
|
2286
|
+
if (compare(get_remaining(this.a3s_1), new Long(2, 0)) >= 0) {
|
|
2287
|
+
this.e3s_1 = true;
|
|
2288
2288
|
this.v8_1 = 2;
|
|
2289
2289
|
continue $sm;
|
|
2290
2290
|
} else {
|
|
2291
2291
|
this.v8_1 = 1;
|
|
2292
|
-
suspendResult = this.
|
|
2292
|
+
suspendResult = this.b3s_1.f3l(2, this);
|
|
2293
2293
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2294
2294
|
return suspendResult;
|
|
2295
2295
|
}
|
|
@@ -2297,23 +2297,23 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).d9 = function () {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
|
|
2299
2299
|
case 1:
|
|
2300
|
-
this.
|
|
2300
|
+
this.e3s_1 = suspendResult;
|
|
2301
2301
|
this.v8_1 = 2;
|
|
2302
2302
|
continue $sm;
|
|
2303
2303
|
case 2:
|
|
2304
|
-
if (this.
|
|
2305
|
-
this.
|
|
2304
|
+
if (this.e3s_1) {
|
|
2305
|
+
this.d3s_1 = this.a3s_1.v3f().r3g(new Long(1, 0)) === 10;
|
|
2306
2306
|
this.v8_1 = 3;
|
|
2307
2307
|
continue $sm;
|
|
2308
2308
|
} else {
|
|
2309
|
-
this.
|
|
2309
|
+
this.d3s_1 = false;
|
|
2310
2310
|
this.v8_1 = 3;
|
|
2311
2311
|
continue $sm;
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
2314
2314
|
case 3:
|
|
2315
|
-
if (this.
|
|
2316
|
-
discard_0(this.
|
|
2315
|
+
if (this.d3s_1) {
|
|
2316
|
+
discard_0(this.a3s_1, new Long(2, 0));
|
|
2317
2317
|
return true;
|
|
2318
2318
|
} else {
|
|
2319
2319
|
this.v8_1 = 4;
|
|
@@ -2321,8 +2321,8 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).d9 = function () {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
|
|
2323
2323
|
case 4:
|
|
2324
|
-
if (this.
|
|
2325
|
-
discard_0(this.
|
|
2324
|
+
if (this.c3s_1) {
|
|
2325
|
+
discard_0(this.a3s_1, new Long(1, 0));
|
|
2326
2326
|
return true;
|
|
2327
2327
|
}
|
|
2328
2328
|
|
|
@@ -2351,7 +2351,7 @@ function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2353
2353
|
CoroutineImpl.call(this, resultContinuation);
|
|
2354
|
-
this.
|
|
2354
|
+
this.n3s_1 = _this__u8e3s4;
|
|
2355
2355
|
}
|
|
2356
2356
|
protoOf($flushIfNeededCOROUTINE$).d9 = function () {
|
|
2357
2357
|
var suspendResult = this.x8_1;
|
|
@@ -2361,10 +2361,10 @@ protoOf($flushIfNeededCOROUTINE$).d9 = function () {
|
|
|
2361
2361
|
switch (tmp) {
|
|
2362
2362
|
case 0:
|
|
2363
2363
|
this.w8_1 = 3;
|
|
2364
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2365
|
-
if (this.
|
|
2364
|
+
rethrowCloseCauseIfNeeded_1(this.n3s_1);
|
|
2365
|
+
if (this.n3s_1.z3k() || get_size(this.n3s_1.b3l()) >= 1048576) {
|
|
2366
2366
|
this.v8_1 = 1;
|
|
2367
|
-
suspendResult = this.
|
|
2367
|
+
suspendResult = this.n3s_1.y3k(this);
|
|
2368
2368
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2369
2369
|
return suspendResult;
|
|
2370
2370
|
}
|
|
@@ -2396,7 +2396,7 @@ protoOf($flushIfNeededCOROUTINE$).d9 = function () {
|
|
|
2396
2396
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2397
2397
|
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2398
2398
|
return constructCallableReference(function ($completion) {
|
|
2399
|
-
return i.
|
|
2399
|
+
return i.s3s($completion);
|
|
2400
2400
|
}, 0, 1, 17, 'flushAndClose', [p0]);
|
|
2401
2401
|
}
|
|
2402
2402
|
function get_NO_CALLBACK() {
|
|
@@ -2405,11 +2405,11 @@ function get_NO_CALLBACK() {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
var NO_CALLBACK;
|
|
2407
2407
|
function WriterJob(channel, job) {
|
|
2408
|
-
this.
|
|
2409
|
-
this.
|
|
2408
|
+
this.a3n_1 = channel;
|
|
2409
|
+
this.b3n_1 = job;
|
|
2410
2410
|
}
|
|
2411
2411
|
protoOf(WriterJob).i1q = function () {
|
|
2412
|
-
return this.
|
|
2412
|
+
return this.b3n_1;
|
|
2413
2413
|
};
|
|
2414
2414
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2415
2415
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2418,16 +2418,16 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2418
2418
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2419
2419
|
}
|
|
2420
2420
|
function WriterScope(channel, coroutineContext) {
|
|
2421
|
-
this.
|
|
2422
|
-
this.
|
|
2421
|
+
this.t3s_1 = channel;
|
|
2422
|
+
this.u3s_1 = coroutineContext;
|
|
2423
2423
|
}
|
|
2424
2424
|
protoOf(WriterScope).w1m = function () {
|
|
2425
|
-
return this.
|
|
2425
|
+
return this.u3s_1;
|
|
2426
2426
|
};
|
|
2427
2427
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2428
2428
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2429
2429
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2430
|
-
_this__u8e3s4.
|
|
2430
|
+
_this__u8e3s4.b3l().f3h(value, startIndex, endIndex);
|
|
2431
2431
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2432
2432
|
}
|
|
2433
2433
|
function close_0(_this__u8e3s4, cause) {
|
|
@@ -2435,7 +2435,7 @@ function close_0(_this__u8e3s4, cause) {
|
|
|
2435
2435
|
if (cause == null) {
|
|
2436
2436
|
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2437
2437
|
} else {
|
|
2438
|
-
_this__u8e3s4.
|
|
2438
|
+
_this__u8e3s4.i3l(cause);
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
2441
2441
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
@@ -2456,14 +2456,14 @@ function fireAndForget(_this__u8e3s4) {
|
|
|
2456
2456
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2457
2457
|
}
|
|
2458
2458
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2459
|
-
_this__u8e3s4.
|
|
2459
|
+
_this__u8e3s4.b3l().p3h(value);
|
|
2460
2460
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2461
2461
|
}
|
|
2462
2462
|
function NO_CALLBACK$1() {
|
|
2463
|
-
this.
|
|
2463
|
+
this.v3s_1 = EmptyCoroutineContext_getInstance();
|
|
2464
2464
|
}
|
|
2465
2465
|
protoOf(NO_CALLBACK$1).b9 = function () {
|
|
2466
|
-
return this.
|
|
2466
|
+
return this.v3s_1;
|
|
2467
2467
|
};
|
|
2468
2468
|
protoOf(NO_CALLBACK$1).c9 = function (result) {
|
|
2469
2469
|
return Unit_instance;
|
|
@@ -2473,27 +2473,27 @@ protoOf(NO_CALLBACK$1).g9 = function (result) {
|
|
|
2473
2473
|
};
|
|
2474
2474
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2475
2475
|
KFunctionImpl.call(this, 1, 1, 17);
|
|
2476
|
-
this.
|
|
2476
|
+
this.r3s_1 = p0;
|
|
2477
2477
|
}
|
|
2478
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).
|
|
2479
|
-
return this.
|
|
2478
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).s3s = function ($completion) {
|
|
2479
|
+
return this.r3s_1.h3l($completion);
|
|
2480
2480
|
};
|
|
2481
2481
|
protoOf(ByteWriteChannel$flushAndClose$ref_0).p9 = function ($completion) {
|
|
2482
|
-
return this.
|
|
2482
|
+
return this.s3s($completion);
|
|
2483
2483
|
};
|
|
2484
2484
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2485
|
+
this.e3t_1 = $block;
|
|
2486
|
+
this.f3t_1 = $channel;
|
|
2487
2487
|
CoroutineImpl.call(this, resultContinuation);
|
|
2488
2488
|
}
|
|
2489
|
-
protoOf(writer$slambda).
|
|
2490
|
-
var tmp = this.
|
|
2489
|
+
protoOf(writer$slambda).n3t = function ($this$launch, $completion) {
|
|
2490
|
+
var tmp = this.o3t($this$launch, $completion);
|
|
2491
2491
|
tmp.x8_1 = Unit_instance;
|
|
2492
2492
|
tmp.y8_1 = null;
|
|
2493
2493
|
return tmp.d9();
|
|
2494
2494
|
};
|
|
2495
2495
|
protoOf(writer$slambda).q9 = function (p1, $completion) {
|
|
2496
|
-
return this.
|
|
2496
|
+
return this.n3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2497
2497
|
};
|
|
2498
2498
|
protoOf(writer$slambda).d9 = function () {
|
|
2499
2499
|
var suspendResult = this.x8_1;
|
|
@@ -2503,24 +2503,24 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2503
2503
|
switch (tmp) {
|
|
2504
2504
|
case 0:
|
|
2505
2505
|
this.w8_1 = 14;
|
|
2506
|
-
this.
|
|
2506
|
+
this.j3t_1 = Job(get_job(this.g3t_1.w1m()));
|
|
2507
2507
|
this.v8_1 = 1;
|
|
2508
2508
|
continue $sm;
|
|
2509
2509
|
case 1:
|
|
2510
2510
|
this.w8_1 = 4;
|
|
2511
2511
|
this.w8_1 = 3;
|
|
2512
2512
|
this.v8_1 = 2;
|
|
2513
|
-
suspendResult = this.
|
|
2513
|
+
suspendResult = this.e3t_1(new WriterScope(this.f3t_1, this.g3t_1.w1m().wh(this.j3t_1)), this);
|
|
2514
2514
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2515
2515
|
return suspendResult;
|
|
2516
2516
|
}
|
|
2517
2517
|
|
|
2518
2518
|
continue $sm;
|
|
2519
2519
|
case 2:
|
|
2520
|
-
this.
|
|
2520
|
+
this.j3t_1.f1v();
|
|
2521
2521
|
var tmp_0;
|
|
2522
|
-
if (get_job(this.
|
|
2523
|
-
this.
|
|
2522
|
+
if (get_job(this.g3t_1.w1m()).t1n()) {
|
|
2523
|
+
this.f3t_1.i3l(get_job(this.g3t_1.w1m()).w1n());
|
|
2524
2524
|
tmp_0 = Unit_instance;
|
|
2525
2525
|
}
|
|
2526
2526
|
|
|
@@ -2532,8 +2532,8 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2532
2532
|
var tmp_1 = this.y8_1;
|
|
2533
2533
|
if (tmp_1 instanceof Error) {
|
|
2534
2534
|
var cause = this.y8_1;
|
|
2535
|
-
cancel(this.
|
|
2536
|
-
this.
|
|
2535
|
+
cancel(this.j3t_1, 'Exception thrown while writing to channel', cause);
|
|
2536
|
+
this.f3t_1.i3l(cause);
|
|
2537
2537
|
this.w8_1 = 14;
|
|
2538
2538
|
this.v8_1 = 9;
|
|
2539
2539
|
continue $sm;
|
|
@@ -2543,20 +2543,20 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2543
2543
|
|
|
2544
2544
|
case 4:
|
|
2545
2545
|
this.w8_1 = 14;
|
|
2546
|
-
this.
|
|
2546
|
+
this.k3t_1 = this.y8_1;
|
|
2547
2547
|
this.v8_1 = 5;
|
|
2548
|
-
suspendResult = this.
|
|
2548
|
+
suspendResult = this.j3t_1.d1o(this);
|
|
2549
2549
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2550
2550
|
return suspendResult;
|
|
2551
2551
|
}
|
|
2552
2552
|
|
|
2553
2553
|
continue $sm;
|
|
2554
2554
|
case 5:
|
|
2555
|
-
this.
|
|
2555
|
+
this.g3t_1;
|
|
2556
2556
|
this.w8_1 = 7;
|
|
2557
|
-
this.
|
|
2557
|
+
this.m3t_1 = Companion_instance;
|
|
2558
2558
|
this.v8_1 = 6;
|
|
2559
|
-
suspendResult = this.
|
|
2559
|
+
suspendResult = this.f3t_1.h3l(this);
|
|
2560
2560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2561
2561
|
return suspendResult;
|
|
2562
2562
|
}
|
|
@@ -2564,8 +2564,8 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2564
2564
|
continue $sm;
|
|
2565
2565
|
case 6:
|
|
2566
2566
|
var tmp_2 = this;
|
|
2567
|
-
this.
|
|
2568
|
-
tmp_2.
|
|
2567
|
+
this.m3t_1;
|
|
2568
|
+
tmp_2.l3t_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2569
2569
|
this.w8_1 = 14;
|
|
2570
2570
|
this.v8_1 = 8;
|
|
2571
2571
|
continue $sm;
|
|
@@ -2575,7 +2575,7 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2575
2575
|
if (tmp_3 instanceof Error) {
|
|
2576
2576
|
var e = this.y8_1;
|
|
2577
2577
|
var tmp_4 = this;
|
|
2578
|
-
tmp_4.
|
|
2578
|
+
tmp_4.l3t_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2579
2579
|
this.v8_1 = 8;
|
|
2580
2580
|
continue $sm;
|
|
2581
2581
|
} else {
|
|
@@ -2584,22 +2584,22 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2584
2584
|
|
|
2585
2585
|
case 8:
|
|
2586
2586
|
this.w8_1 = 14;
|
|
2587
|
-
throw this.
|
|
2587
|
+
throw this.k3t_1;
|
|
2588
2588
|
case 9:
|
|
2589
2589
|
this.w8_1 = 14;
|
|
2590
2590
|
this.v8_1 = 10;
|
|
2591
|
-
suspendResult = this.
|
|
2591
|
+
suspendResult = this.j3t_1.d1o(this);
|
|
2592
2592
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2593
2593
|
return suspendResult;
|
|
2594
2594
|
}
|
|
2595
2595
|
|
|
2596
2596
|
continue $sm;
|
|
2597
2597
|
case 10:
|
|
2598
|
-
this.
|
|
2598
|
+
this.g3t_1;
|
|
2599
2599
|
this.w8_1 = 12;
|
|
2600
|
-
this.
|
|
2600
|
+
this.i3t_1 = Companion_instance;
|
|
2601
2601
|
this.v8_1 = 11;
|
|
2602
|
-
suspendResult = this.
|
|
2602
|
+
suspendResult = this.f3t_1.h3l(this);
|
|
2603
2603
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2604
2604
|
return suspendResult;
|
|
2605
2605
|
}
|
|
@@ -2607,8 +2607,8 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2607
2607
|
continue $sm;
|
|
2608
2608
|
case 11:
|
|
2609
2609
|
var tmp_5 = this;
|
|
2610
|
-
this.
|
|
2611
|
-
tmp_5.
|
|
2610
|
+
this.i3t_1;
|
|
2611
|
+
tmp_5.h3t_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2612
2612
|
this.w8_1 = 14;
|
|
2613
2613
|
this.v8_1 = 13;
|
|
2614
2614
|
continue $sm;
|
|
@@ -2618,7 +2618,7 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2618
2618
|
if (tmp_6 instanceof Error) {
|
|
2619
2619
|
var e_0 = this.y8_1;
|
|
2620
2620
|
var tmp_7 = this;
|
|
2621
|
-
tmp_7.
|
|
2621
|
+
tmp_7.h3t_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2622
2622
|
this.v8_1 = 13;
|
|
2623
2623
|
continue $sm;
|
|
2624
2624
|
} else {
|
|
@@ -2642,22 +2642,22 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2642
2642
|
}
|
|
2643
2643
|
while (true);
|
|
2644
2644
|
};
|
|
2645
|
-
protoOf(writer$slambda).
|
|
2646
|
-
var i = new writer$slambda(this.
|
|
2647
|
-
i.
|
|
2645
|
+
protoOf(writer$slambda).o3t = function ($this$launch, completion) {
|
|
2646
|
+
var i = new writer$slambda(this.e3t_1, this.f3t_1, completion);
|
|
2647
|
+
i.g3t_1 = $this$launch;
|
|
2648
2648
|
return i;
|
|
2649
2649
|
};
|
|
2650
2650
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2651
2651
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2652
2652
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2653
|
-
return i.
|
|
2653
|
+
return i.n3t($this$launch, $completion);
|
|
2654
2654
|
}, 1);
|
|
2655
2655
|
}
|
|
2656
2656
|
function writer$lambda($channel) {
|
|
2657
2657
|
return function (it) {
|
|
2658
2658
|
var tmp;
|
|
2659
|
-
if (!(it == null) && !$channel.
|
|
2660
|
-
$channel.
|
|
2659
|
+
if (!(it == null) && !$channel.c3l()) {
|
|
2660
|
+
$channel.i3l(it);
|
|
2661
2661
|
tmp = Unit_instance;
|
|
2662
2662
|
}
|
|
2663
2663
|
return Unit_instance;
|
|
@@ -2682,10 +2682,10 @@ function Companion_getInstance_1() {
|
|
|
2682
2682
|
return Companion_instance_2;
|
|
2683
2683
|
}
|
|
2684
2684
|
function access$_get_origin__hdh1qz($this) {
|
|
2685
|
-
return $this.
|
|
2685
|
+
return $this.p3t_1;
|
|
2686
2686
|
}
|
|
2687
2687
|
function CloseToken(origin) {
|
|
2688
|
-
this.
|
|
2688
|
+
this.p3t_1 = origin;
|
|
2689
2689
|
}
|
|
2690
2690
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2691
2691
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
@@ -2696,17 +2696,17 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
function transferFromDelegate($this) {
|
|
2698
2698
|
updateConsumed($this);
|
|
2699
|
-
var appended = $this.
|
|
2700
|
-
$this.
|
|
2699
|
+
var appended = $this.r3t_1.o3h($this.q3t_1.a3l());
|
|
2700
|
+
$this.s3t_1 = add($this.s3t_1, appended);
|
|
2701
2701
|
}
|
|
2702
2702
|
function updateConsumed($this) {
|
|
2703
|
-
$this.
|
|
2704
|
-
$this.
|
|
2703
|
+
$this.t3t_1 = add($this.t3t_1, subtract($this.s3t_1, $this.r3t_1.e1()));
|
|
2704
|
+
$this.s3t_1 = $this.r3t_1.e1();
|
|
2705
2705
|
}
|
|
2706
2706
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2707
2707
|
CoroutineImpl.call(this, resultContinuation);
|
|
2708
|
-
this.
|
|
2709
|
-
this.
|
|
2708
|
+
this.c3u_1 = _this__u8e3s4;
|
|
2709
|
+
this.d3u_1 = min;
|
|
2710
2710
|
}
|
|
2711
2711
|
protoOf($awaitContentCOROUTINE$_0).d9 = function () {
|
|
2712
2712
|
var suspendResult = this.x8_1;
|
|
@@ -2716,12 +2716,12 @@ protoOf($awaitContentCOROUTINE$_0).d9 = function () {
|
|
|
2716
2716
|
switch (tmp) {
|
|
2717
2717
|
case 0:
|
|
2718
2718
|
this.w8_1 = 3;
|
|
2719
|
-
if (compare(this.
|
|
2719
|
+
if (compare(this.c3u_1.a3l().e1(), fromInt(this.d3u_1)) >= 0) {
|
|
2720
2720
|
return true;
|
|
2721
2721
|
}
|
|
2722
2722
|
|
|
2723
2723
|
this.v8_1 = 1;
|
|
2724
|
-
suspendResult = this.
|
|
2724
|
+
suspendResult = this.c3u_1.q3t_1.f3l(this.d3u_1, this);
|
|
2725
2725
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2726
2726
|
return suspendResult;
|
|
2727
2727
|
}
|
|
@@ -2729,7 +2729,7 @@ protoOf($awaitContentCOROUTINE$_0).d9 = function () {
|
|
|
2729
2729
|
continue $sm;
|
|
2730
2730
|
case 1:
|
|
2731
2731
|
if (suspendResult) {
|
|
2732
|
-
transferFromDelegate(this.
|
|
2732
|
+
transferFromDelegate(this.c3u_1);
|
|
2733
2733
|
return true;
|
|
2734
2734
|
} else {
|
|
2735
2735
|
this.v8_1 = 2;
|
|
@@ -2753,34 +2753,34 @@ protoOf($awaitContentCOROUTINE$_0).d9 = function () {
|
|
|
2753
2753
|
while (true);
|
|
2754
2754
|
};
|
|
2755
2755
|
function CountedByteReadChannel(delegate) {
|
|
2756
|
-
this.
|
|
2757
|
-
this.
|
|
2758
|
-
this.
|
|
2759
|
-
this.
|
|
2756
|
+
this.q3t_1 = delegate;
|
|
2757
|
+
this.r3t_1 = new Buffer();
|
|
2758
|
+
this.s3t_1 = new Long(0, 0);
|
|
2759
|
+
this.t3t_1 = new Long(0, 0);
|
|
2760
2760
|
}
|
|
2761
|
-
protoOf(CountedByteReadChannel).
|
|
2761
|
+
protoOf(CountedByteReadChannel).e3u = function () {
|
|
2762
2762
|
updateConsumed(this);
|
|
2763
|
-
return this.
|
|
2763
|
+
return this.t3t_1;
|
|
2764
2764
|
};
|
|
2765
|
-
protoOf(CountedByteReadChannel).
|
|
2766
|
-
return this.
|
|
2765
|
+
protoOf(CountedByteReadChannel).d3l = function () {
|
|
2766
|
+
return this.q3t_1.d3l();
|
|
2767
2767
|
};
|
|
2768
|
-
protoOf(CountedByteReadChannel).
|
|
2769
|
-
return this.
|
|
2768
|
+
protoOf(CountedByteReadChannel).e3l = function () {
|
|
2769
|
+
return this.r3t_1.w3f() && this.q3t_1.e3l();
|
|
2770
2770
|
};
|
|
2771
|
-
protoOf(CountedByteReadChannel).
|
|
2771
|
+
protoOf(CountedByteReadChannel).a3l = function () {
|
|
2772
2772
|
transferFromDelegate(this);
|
|
2773
|
-
return this.
|
|
2773
|
+
return this.r3t_1;
|
|
2774
2774
|
};
|
|
2775
|
-
protoOf(CountedByteReadChannel).
|
|
2775
|
+
protoOf(CountedByteReadChannel).f3l = function (min, $completion) {
|
|
2776
2776
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2777
2777
|
tmp.x8_1 = Unit_instance;
|
|
2778
2778
|
tmp.y8_1 = null;
|
|
2779
2779
|
return tmp.d9();
|
|
2780
2780
|
};
|
|
2781
|
-
protoOf(CountedByteReadChannel).
|
|
2782
|
-
this.
|
|
2783
|
-
this.
|
|
2781
|
+
protoOf(CountedByteReadChannel).i3l = function (cause) {
|
|
2782
|
+
this.q3t_1.i3l(cause);
|
|
2783
|
+
this.r3t_1.d4();
|
|
2784
2784
|
};
|
|
2785
2785
|
function counted(_this__u8e3s4) {
|
|
2786
2786
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2838,21 +2838,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2840
2840
|
var tmp;
|
|
2841
|
-
if ($this === Companion_getInstance_2().
|
|
2841
|
+
if ($this === Companion_getInstance_2().f3u_1) {
|
|
2842
2842
|
tmp = 'CR';
|
|
2843
|
-
} else if ($this === Companion_getInstance_2().
|
|
2843
|
+
} else if ($this === Companion_getInstance_2().g3u_1) {
|
|
2844
2844
|
tmp = 'LF';
|
|
2845
|
-
} else if ($this === Companion_getInstance_2().
|
|
2845
|
+
} else if ($this === Companion_getInstance_2().h3u_1) {
|
|
2846
2846
|
tmp = 'CRLF';
|
|
2847
2847
|
} else {
|
|
2848
2848
|
// Inline function 'kotlin.collections.filter' call
|
|
2849
|
-
var tmp0 = Companion_getInstance_2().
|
|
2849
|
+
var tmp0 = Companion_getInstance_2().j3u_1;
|
|
2850
2850
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2851
2851
|
var destination = ArrayList_init_$Create$();
|
|
2852
2852
|
var _iterator__ex2g4s = tmp0.t();
|
|
2853
2853
|
while (_iterator__ex2g4s.u()) {
|
|
2854
2854
|
var element = _iterator__ex2g4s.v();
|
|
2855
|
-
var it = element.
|
|
2855
|
+
var it = element.k3u_1;
|
|
2856
2856
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2857
2857
|
destination.b1(element);
|
|
2858
2858
|
}
|
|
@@ -2863,11 +2863,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
function Companion_2() {
|
|
2865
2865
|
Companion_instance_3 = this;
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2868
|
-
this.
|
|
2869
|
-
this.
|
|
2870
|
-
this.
|
|
2866
|
+
this.f3u_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2867
|
+
this.g3u_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2868
|
+
this.h3u_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2869
|
+
this.i3u_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2870
|
+
this.j3u_1 = listOf([new LineEndingMode(this.f3u_1), new LineEndingMode(this.g3u_1), new LineEndingMode(this.h3u_1)]);
|
|
2871
2871
|
}
|
|
2872
2872
|
var Companion_instance_3;
|
|
2873
2873
|
function Companion_getInstance_2() {
|
|
@@ -2881,29 +2881,29 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2881
2881
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2882
2882
|
if (!(other instanceof LineEndingMode))
|
|
2883
2883
|
return false;
|
|
2884
|
-
if (!($this === other.
|
|
2884
|
+
if (!($this === other.k3u_1))
|
|
2885
2885
|
return false;
|
|
2886
2886
|
return true;
|
|
2887
2887
|
}
|
|
2888
2888
|
function LineEndingMode(mode) {
|
|
2889
2889
|
Companion_getInstance_2();
|
|
2890
|
-
this.
|
|
2890
|
+
this.k3u_1 = mode;
|
|
2891
2891
|
}
|
|
2892
2892
|
protoOf(LineEndingMode).toString = function () {
|
|
2893
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2893
|
+
return LineEndingMode__toString_impl_j4h76r(this.k3u_1);
|
|
2894
2894
|
};
|
|
2895
2895
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2896
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2896
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.k3u_1);
|
|
2897
2897
|
};
|
|
2898
2898
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2899
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2899
|
+
return LineEndingMode__equals_impl_qyr4nk(this.k3u_1, other);
|
|
2900
2900
|
};
|
|
2901
2901
|
function SourceByteReadChannel(source) {
|
|
2902
|
-
this.
|
|
2903
|
-
this.
|
|
2902
|
+
this.l3u_1 = source;
|
|
2903
|
+
this.m3u_1 = null;
|
|
2904
2904
|
}
|
|
2905
|
-
protoOf(SourceByteReadChannel).
|
|
2906
|
-
var tmp0_safe_receiver = this.
|
|
2905
|
+
protoOf(SourceByteReadChannel).d3l = function () {
|
|
2906
|
+
var tmp0_safe_receiver = this.m3u_1;
|
|
2907
2907
|
var tmp;
|
|
2908
2908
|
if (tmp0_safe_receiver == null) {
|
|
2909
2909
|
tmp = null;
|
|
@@ -2929,42 +2929,42 @@ protoOf(SourceByteReadChannel).w3k = function () {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
return tmp;
|
|
2931
2931
|
};
|
|
2932
|
-
protoOf(SourceByteReadChannel).
|
|
2933
|
-
return this.
|
|
2932
|
+
protoOf(SourceByteReadChannel).e3l = function () {
|
|
2933
|
+
return this.l3u_1.w3f();
|
|
2934
2934
|
};
|
|
2935
|
-
protoOf(SourceByteReadChannel).
|
|
2936
|
-
var tmp0_safe_receiver = this.
|
|
2935
|
+
protoOf(SourceByteReadChannel).a3l = function () {
|
|
2936
|
+
var tmp0_safe_receiver = this.d3l();
|
|
2937
2937
|
if (tmp0_safe_receiver == null)
|
|
2938
2938
|
null;
|
|
2939
2939
|
else {
|
|
2940
2940
|
// Inline function 'kotlin.let' call
|
|
2941
2941
|
throw tmp0_safe_receiver;
|
|
2942
2942
|
}
|
|
2943
|
-
return this.
|
|
2943
|
+
return this.l3u_1.v3f();
|
|
2944
2944
|
};
|
|
2945
|
-
protoOf(SourceByteReadChannel).
|
|
2946
|
-
var tmp0_safe_receiver = this.
|
|
2945
|
+
protoOf(SourceByteReadChannel).f3l = function (min, $completion) {
|
|
2946
|
+
var tmp0_safe_receiver = this.d3l();
|
|
2947
2947
|
if (tmp0_safe_receiver == null)
|
|
2948
2948
|
null;
|
|
2949
2949
|
else {
|
|
2950
2950
|
// Inline function 'kotlin.let' call
|
|
2951
2951
|
throw tmp0_safe_receiver;
|
|
2952
2952
|
}
|
|
2953
|
-
return this.
|
|
2953
|
+
return this.l3u_1.y3f(fromInt(min));
|
|
2954
2954
|
};
|
|
2955
|
-
protoOf(SourceByteReadChannel).
|
|
2956
|
-
if (!(this.
|
|
2955
|
+
protoOf(SourceByteReadChannel).i3l = function (cause) {
|
|
2956
|
+
if (!(this.m3u_1 == null))
|
|
2957
2957
|
return Unit_instance;
|
|
2958
|
-
this.
|
|
2958
|
+
this.l3u_1.d4();
|
|
2959
2959
|
var tmp = this;
|
|
2960
2960
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2961
|
-
tmp.
|
|
2961
|
+
tmp.m3u_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2962
2962
|
};
|
|
2963
2963
|
function decode(_this__u8e3s4, input, max) {
|
|
2964
2964
|
max = max === VOID ? 2147483647 : max;
|
|
2965
2965
|
var tmp0 = fromInt(max);
|
|
2966
2966
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2967
|
-
var b = input.
|
|
2967
|
+
var b = input.v3f().e1();
|
|
2968
2968
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2969
2969
|
// Inline function 'kotlin.text.buildString' call
|
|
2970
2970
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -3001,7 +3001,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
3003
|
function canRead(_this__u8e3s4) {
|
|
3004
|
-
return !_this__u8e3s4.
|
|
3004
|
+
return !_this__u8e3s4.w3f();
|
|
3005
3005
|
}
|
|
3006
3006
|
function readBytes(_this__u8e3s4, count) {
|
|
3007
3007
|
count = count === VOID ? convertToInt(_this__u8e3s4.e1()) : count;
|
|
@@ -3010,35 +3010,35 @@ function readBytes(_this__u8e3s4, count) {
|
|
|
3010
3010
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
3011
3011
|
offset = offset === VOID ? 0 : offset;
|
|
3012
3012
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3013
|
-
_this__u8e3s4.
|
|
3013
|
+
_this__u8e3s4.f3h(buffer, offset, offset + length | 0);
|
|
3014
3014
|
}
|
|
3015
3015
|
function BytePacketBuilder() {
|
|
3016
3016
|
return new Buffer();
|
|
3017
3017
|
}
|
|
3018
3018
|
function build(_this__u8e3s4) {
|
|
3019
|
-
return _this__u8e3s4.
|
|
3019
|
+
return _this__u8e3s4.v3f();
|
|
3020
3020
|
}
|
|
3021
3021
|
function get_size(_this__u8e3s4) {
|
|
3022
|
-
return convertToInt(_this__u8e3s4.
|
|
3022
|
+
return convertToInt(_this__u8e3s4.v3f().e1());
|
|
3023
3023
|
}
|
|
3024
3024
|
var ByteReadPacketEmpty;
|
|
3025
3025
|
function get_remaining(_this__u8e3s4) {
|
|
3026
3026
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3027
|
-
return _this__u8e3s4.
|
|
3027
|
+
return _this__u8e3s4.v3f().e1();
|
|
3028
3028
|
}
|
|
3029
3029
|
function takeWhile(_this__u8e3s4, block) {
|
|
3030
3030
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3031
|
-
while (!_this__u8e3s4.
|
|
3031
|
+
while (!_this__u8e3s4.w3f() && block(_this__u8e3s4.v3f())) {
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
3034
|
function discard_0(_this__u8e3s4, count) {
|
|
3035
3035
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
3036
3036
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3037
|
-
_this__u8e3s4.
|
|
3037
|
+
_this__u8e3s4.y3f(count);
|
|
3038
3038
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3039
3039
|
var b = get_remaining(_this__u8e3s4);
|
|
3040
3040
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
3041
|
-
_this__u8e3s4.
|
|
3041
|
+
_this__u8e3s4.v3f().t3g(countToDiscard);
|
|
3042
3042
|
return countToDiscard;
|
|
3043
3043
|
}
|
|
3044
3044
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -3051,23 +3051,23 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
3051
3051
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
3052
3052
|
offset = offset === VOID ? 0 : offset;
|
|
3053
3053
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3054
|
-
var result = _this__u8e3s4.
|
|
3054
|
+
var result = _this__u8e3s4.u3g(buffer, offset, offset + length | 0);
|
|
3055
3055
|
return result === -1 ? 0 : result;
|
|
3056
3056
|
}
|
|
3057
3057
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3058
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3059
|
-
if (charset.equals(Charsets_getInstance().
|
|
3058
|
+
charset = charset === VOID ? Charsets_getInstance().n3u_1 : charset;
|
|
3059
|
+
if (charset.equals(Charsets_getInstance().n3u_1))
|
|
3060
3060
|
return encodeToByteArray(_this__u8e3s4);
|
|
3061
|
-
return encodeToByteArray_0(charset.
|
|
3061
|
+
return encodeToByteArray_0(charset.q3u(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3062
3062
|
}
|
|
3063
3063
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3064
3064
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3065
3065
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3066
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3067
|
-
if (charset === Charsets_getInstance().
|
|
3066
|
+
charset = charset === VOID ? Charsets_getInstance().n3u_1 : charset;
|
|
3067
|
+
if (charset === Charsets_getInstance().n3u_1) {
|
|
3068
3068
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3069
3069
|
}
|
|
3070
|
-
encodeToImpl(charset.
|
|
3070
|
+
encodeToImpl(charset.q3u(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3071
3071
|
}
|
|
3072
3072
|
function get_ByteArrayPool() {
|
|
3073
3073
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3077,7 +3077,7 @@ var ByteArrayPool;
|
|
|
3077
3077
|
function ByteArrayPool$1() {
|
|
3078
3078
|
DefaultPool.call(this, 128);
|
|
3079
3079
|
}
|
|
3080
|
-
protoOf(ByteArrayPool$1).
|
|
3080
|
+
protoOf(ByteArrayPool$1).u3u = function () {
|
|
3081
3081
|
return new Int8Array(4096);
|
|
3082
3082
|
};
|
|
3083
3083
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3091,7 +3091,7 @@ function ObjectPool() {
|
|
|
3091
3091
|
}
|
|
3092
3092
|
function NoPoolImpl() {
|
|
3093
3093
|
}
|
|
3094
|
-
protoOf(NoPoolImpl).
|
|
3094
|
+
protoOf(NoPoolImpl).c3v = function (instance) {
|
|
3095
3095
|
return Unit_instance;
|
|
3096
3096
|
};
|
|
3097
3097
|
protoOf(NoPoolImpl).u1p = function () {
|
|
@@ -3099,13 +3099,13 @@ protoOf(NoPoolImpl).u1p = function () {
|
|
|
3099
3099
|
};
|
|
3100
3100
|
function Companion_3() {
|
|
3101
3101
|
}
|
|
3102
|
-
protoOf(Companion_3).
|
|
3102
|
+
protoOf(Companion_3).d3v = function (name) {
|
|
3103
3103
|
switch (name) {
|
|
3104
3104
|
case 'UTF-8':
|
|
3105
3105
|
case 'utf-8':
|
|
3106
3106
|
case 'UTF8':
|
|
3107
3107
|
case 'utf8':
|
|
3108
|
-
return Charsets_getInstance().
|
|
3108
|
+
return Charsets_getInstance().n3u_1;
|
|
3109
3109
|
}
|
|
3110
3110
|
var tmp;
|
|
3111
3111
|
var tmp_0;
|
|
@@ -3136,7 +3136,7 @@ protoOf(Companion_3).w3u = function (name) {
|
|
|
3136
3136
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3137
3137
|
}
|
|
3138
3138
|
if (tmp) {
|
|
3139
|
-
return Charsets_getInstance().
|
|
3139
|
+
return Charsets_getInstance().o3u_1;
|
|
3140
3140
|
}
|
|
3141
3141
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3142
3142
|
};
|
|
@@ -3145,7 +3145,7 @@ function Companion_getInstance_3() {
|
|
|
3145
3145
|
return Companion_instance_4;
|
|
3146
3146
|
}
|
|
3147
3147
|
function Charset(_name) {
|
|
3148
|
-
this.
|
|
3148
|
+
this.p3u_1 = _name;
|
|
3149
3149
|
}
|
|
3150
3150
|
protoOf(Charset).equals = function (other) {
|
|
3151
3151
|
if (this === other)
|
|
@@ -3154,18 +3154,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3154
3154
|
return false;
|
|
3155
3155
|
if (!(other instanceof Charset))
|
|
3156
3156
|
THROW_CCE();
|
|
3157
|
-
return this.
|
|
3157
|
+
return this.p3u_1 === other.p3u_1;
|
|
3158
3158
|
};
|
|
3159
3159
|
protoOf(Charset).hashCode = function () {
|
|
3160
|
-
return getStringHashCode(this.
|
|
3160
|
+
return getStringHashCode(this.p3u_1);
|
|
3161
3161
|
};
|
|
3162
3162
|
protoOf(Charset).toString = function () {
|
|
3163
|
-
return this.
|
|
3163
|
+
return this.p3u_1;
|
|
3164
3164
|
};
|
|
3165
3165
|
function Charsets() {
|
|
3166
3166
|
Charsets_instance = this;
|
|
3167
|
-
this.
|
|
3168
|
-
this.
|
|
3167
|
+
this.n3u_1 = new CharsetImpl('UTF-8');
|
|
3168
|
+
this.o3u_1 = new CharsetImpl('ISO-8859-1');
|
|
3169
3169
|
}
|
|
3170
3170
|
var Charsets_instance;
|
|
3171
3171
|
function Charsets_getInstance() {
|
|
@@ -3174,24 +3174,24 @@ function Charsets_getInstance() {
|
|
|
3174
3174
|
return Charsets_instance;
|
|
3175
3175
|
}
|
|
3176
3176
|
function get_name(_this__u8e3s4) {
|
|
3177
|
-
return _this__u8e3s4.
|
|
3177
|
+
return _this__u8e3s4.p3u_1;
|
|
3178
3178
|
}
|
|
3179
3179
|
function MalformedInputException(message) {
|
|
3180
3180
|
IOException_init_$Init$_0(message, this);
|
|
3181
3181
|
captureStack(this, MalformedInputException);
|
|
3182
3182
|
}
|
|
3183
3183
|
function CharsetDecoder(_charset) {
|
|
3184
|
-
this.
|
|
3184
|
+
this.f3v_1 = _charset;
|
|
3185
3185
|
}
|
|
3186
3186
|
function forName(_this__u8e3s4, name) {
|
|
3187
|
-
return Companion_instance_4.
|
|
3187
|
+
return Companion_instance_4.d3v(name);
|
|
3188
3188
|
}
|
|
3189
3189
|
function CharsetEncoder(_charset) {
|
|
3190
|
-
this.
|
|
3190
|
+
this.g3v_1 = _charset;
|
|
3191
3191
|
}
|
|
3192
3192
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3193
3193
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3194
|
-
var tmp0 = input.
|
|
3194
|
+
var tmp0 = input.v3f().e1();
|
|
3195
3195
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3196
3196
|
var b = fromInt(max);
|
|
3197
3197
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3201,7 +3201,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3201
3201
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3202
3202
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3203
3203
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3204
|
-
tmp = decoder.
|
|
3204
|
+
tmp = decoder.h3v(array);
|
|
3205
3205
|
} catch ($p) {
|
|
3206
3206
|
var tmp_0;
|
|
3207
3207
|
if ($p instanceof Error) {
|
|
@@ -3223,11 +3223,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3223
3223
|
var message = 'Failed requirement.';
|
|
3224
3224
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3225
3225
|
}
|
|
3226
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3226
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().o3u_1)) {
|
|
3227
3227
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3228
3228
|
}
|
|
3229
3229
|
// Inline function 'kotlin.require' call
|
|
3230
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3230
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().n3u_1)) {
|
|
3231
3231
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3232
3232
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3233
3233
|
}
|
|
@@ -3237,7 +3237,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3237
3237
|
var result = encoder.encode(tmp$ret$5);
|
|
3238
3238
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3239
3239
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3240
|
-
dst.
|
|
3240
|
+
dst.i3h(result);
|
|
3241
3241
|
return result.length;
|
|
3242
3242
|
}
|
|
3243
3243
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3248,17 +3248,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3248
3248
|
function CharsetImpl(name) {
|
|
3249
3249
|
Charset.call(this, name);
|
|
3250
3250
|
}
|
|
3251
|
-
protoOf(CharsetImpl).
|
|
3251
|
+
protoOf(CharsetImpl).q3u = function () {
|
|
3252
3252
|
return new CharsetEncoderImpl(this);
|
|
3253
3253
|
};
|
|
3254
|
-
protoOf(CharsetImpl).
|
|
3254
|
+
protoOf(CharsetImpl).e3v = function () {
|
|
3255
3255
|
return new CharsetDecoderImpl(this);
|
|
3256
3256
|
};
|
|
3257
3257
|
function get_charset(_this__u8e3s4) {
|
|
3258
|
-
return _this__u8e3s4.
|
|
3258
|
+
return _this__u8e3s4.f3v_1;
|
|
3259
3259
|
}
|
|
3260
3260
|
function get_charset_0(_this__u8e3s4) {
|
|
3261
|
-
return _this__u8e3s4.
|
|
3261
|
+
return _this__u8e3s4.g3v_1;
|
|
3262
3262
|
}
|
|
3263
3263
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3264
3264
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3277,39 +3277,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3277
3277
|
}
|
|
3278
3278
|
function CharsetEncoderImpl(charset) {
|
|
3279
3279
|
CharsetEncoder.call(this, charset);
|
|
3280
|
-
this.
|
|
3280
|
+
this.k3v_1 = charset;
|
|
3281
3281
|
}
|
|
3282
3282
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3283
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3283
|
+
return 'CharsetEncoderImpl(charset=' + this.k3v_1.toString() + ')';
|
|
3284
3284
|
};
|
|
3285
3285
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3286
|
-
return this.
|
|
3286
|
+
return this.k3v_1.hashCode();
|
|
3287
3287
|
};
|
|
3288
3288
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3289
3289
|
if (this === other)
|
|
3290
3290
|
return true;
|
|
3291
3291
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3292
3292
|
return false;
|
|
3293
|
-
if (!this.
|
|
3293
|
+
if (!this.k3v_1.equals(other.k3v_1))
|
|
3294
3294
|
return false;
|
|
3295
3295
|
return true;
|
|
3296
3296
|
};
|
|
3297
3297
|
function CharsetDecoderImpl(charset) {
|
|
3298
3298
|
CharsetDecoder.call(this, charset);
|
|
3299
|
-
this.
|
|
3299
|
+
this.m3v_1 = charset;
|
|
3300
3300
|
}
|
|
3301
3301
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3302
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3302
|
+
return 'CharsetDecoderImpl(charset=' + this.m3v_1.toString() + ')';
|
|
3303
3303
|
};
|
|
3304
3304
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3305
|
-
return this.
|
|
3305
|
+
return this.m3v_1.hashCode();
|
|
3306
3306
|
};
|
|
3307
3307
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3308
3308
|
if (this === other)
|
|
3309
3309
|
return true;
|
|
3310
3310
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3311
3311
|
return false;
|
|
3312
|
-
if (!this.
|
|
3312
|
+
if (!this.m3v_1.equals(other.m3v_1))
|
|
3313
3313
|
return false;
|
|
3314
3314
|
return true;
|
|
3315
3315
|
};
|
|
@@ -3343,10 +3343,10 @@ function textDecoderOptions(fatal) {
|
|
|
3343
3343
|
return this_0;
|
|
3344
3344
|
}
|
|
3345
3345
|
function toKtor$1($this_toKtor) {
|
|
3346
|
-
this.
|
|
3346
|
+
this.n3v_1 = $this_toKtor;
|
|
3347
3347
|
}
|
|
3348
|
-
protoOf(toKtor$1).
|
|
3349
|
-
return this.
|
|
3348
|
+
protoOf(toKtor$1).h3v = function (buffer) {
|
|
3349
|
+
return this.n3v_1.decode(buffer);
|
|
3350
3350
|
};
|
|
3351
3351
|
function get_ENCODING_ALIASES() {
|
|
3352
3352
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3359,7 +3359,7 @@ function get_REPLACEMENT() {
|
|
|
3359
3359
|
}
|
|
3360
3360
|
var REPLACEMENT;
|
|
3361
3361
|
function TextDecoderFallback(encoding, fatal) {
|
|
3362
|
-
this.
|
|
3362
|
+
this.o3v_1 = fatal;
|
|
3363
3363
|
// Inline function 'kotlin.text.trim' call
|
|
3364
3364
|
// Inline function 'kotlin.text.lowercase' call
|
|
3365
3365
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3370,7 +3370,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3370
3370
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
|
-
protoOf(TextDecoderFallback).
|
|
3373
|
+
protoOf(TextDecoderFallback).h3v = function (buffer) {
|
|
3374
3374
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3375
3375
|
var builder = new Buffer();
|
|
3376
3376
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3386,7 +3386,7 @@ protoOf(TextDecoderFallback).a3v = function (buffer) {
|
|
|
3386
3386
|
var point = toCodePoint(byte);
|
|
3387
3387
|
if (point < 0) {
|
|
3388
3388
|
// Inline function 'kotlin.check' call
|
|
3389
|
-
if (!!this.
|
|
3389
|
+
if (!!this.o3v_1) {
|
|
3390
3390
|
var message = 'Invalid character: ' + point;
|
|
3391
3391
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3392
3392
|
}
|
|
@@ -3394,9 +3394,9 @@ protoOf(TextDecoderFallback).a3v = function (buffer) {
|
|
|
3394
3394
|
continue $l$loop;
|
|
3395
3395
|
}
|
|
3396
3396
|
if (point > 255) {
|
|
3397
|
-
builder.
|
|
3397
|
+
builder.p3h(toByte(point >> 8));
|
|
3398
3398
|
}
|
|
3399
|
-
builder.
|
|
3399
|
+
builder.p3h(toByte(point & 255));
|
|
3400
3400
|
}
|
|
3401
3401
|
while (inductionVariable < last);
|
|
3402
3402
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3423,18 +3423,18 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
|
3423
3423
|
}
|
|
3424
3424
|
}
|
|
3425
3425
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3426
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3426
|
+
charset = charset === VOID ? Charsets_getInstance().n3u_1 : charset;
|
|
3427
3427
|
max = max === VOID ? 2147483647 : max;
|
|
3428
|
-
if (charset.equals(Charsets_getInstance().
|
|
3428
|
+
if (charset.equals(Charsets_getInstance().n3u_1)) {
|
|
3429
3429
|
if (max === 2147483647)
|
|
3430
3430
|
return readString_1(_this__u8e3s4);
|
|
3431
|
-
var tmp0 = _this__u8e3s4.
|
|
3431
|
+
var tmp0 = _this__u8e3s4.v3f().e1();
|
|
3432
3432
|
// Inline function 'kotlin.math.min' call
|
|
3433
3433
|
var b = fromInt(max);
|
|
3434
3434
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
3435
3435
|
return readString(_this__u8e3s4, count);
|
|
3436
3436
|
}
|
|
3437
|
-
return decode(charset.
|
|
3437
|
+
return decode(charset.e3v(), _this__u8e3s4, max);
|
|
3438
3438
|
}
|
|
3439
3439
|
function get_DEVELOPMENT_MODE() {
|
|
3440
3440
|
return false;
|
|
@@ -3456,7 +3456,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3456
3456
|
if (character > 255) {
|
|
3457
3457
|
failedToMapError(character);
|
|
3458
3458
|
}
|
|
3459
|
-
dst.
|
|
3459
|
+
dst.p3h(toByte(character));
|
|
3460
3460
|
}
|
|
3461
3461
|
while (inductionVariable < toIndex);
|
|
3462
3462
|
return toIndex - fromIndex | 0;
|
|
@@ -3478,64 +3478,64 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3478
3478
|
}
|
|
3479
3479
|
}
|
|
3480
3480
|
function DefaultPool(capacity) {
|
|
3481
|
-
this.
|
|
3481
|
+
this.v3u_1 = capacity;
|
|
3482
3482
|
var tmp = this;
|
|
3483
3483
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3484
|
-
var size = this.
|
|
3485
|
-
tmp.
|
|
3486
|
-
this.
|
|
3484
|
+
var size = this.v3u_1;
|
|
3485
|
+
tmp.w3u_1 = Array(size);
|
|
3486
|
+
this.x3u_1 = 0;
|
|
3487
3487
|
}
|
|
3488
|
-
protoOf(DefaultPool).
|
|
3488
|
+
protoOf(DefaultPool).y3u = function (instance) {
|
|
3489
3489
|
};
|
|
3490
|
-
protoOf(DefaultPool).
|
|
3490
|
+
protoOf(DefaultPool).z3u = function (instance) {
|
|
3491
3491
|
return instance;
|
|
3492
3492
|
};
|
|
3493
|
-
protoOf(DefaultPool).
|
|
3493
|
+
protoOf(DefaultPool).a3v = function (instance) {
|
|
3494
3494
|
};
|
|
3495
|
-
protoOf(DefaultPool).
|
|
3496
|
-
if (this.
|
|
3497
|
-
return this.
|
|
3498
|
-
this.
|
|
3499
|
-
var idx = this.
|
|
3500
|
-
var tmp = this.
|
|
3495
|
+
protoOf(DefaultPool).b3v = function () {
|
|
3496
|
+
if (this.x3u_1 === 0)
|
|
3497
|
+
return this.u3u();
|
|
3498
|
+
this.x3u_1 = this.x3u_1 - 1 | 0;
|
|
3499
|
+
var idx = this.x3u_1;
|
|
3500
|
+
var tmp = this.w3u_1[idx];
|
|
3501
3501
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3502
|
-
this.
|
|
3503
|
-
return this.
|
|
3502
|
+
this.w3u_1[idx] = null;
|
|
3503
|
+
return this.z3u(instance);
|
|
3504
3504
|
};
|
|
3505
|
-
protoOf(DefaultPool).
|
|
3506
|
-
this.
|
|
3507
|
-
if (this.
|
|
3508
|
-
this.
|
|
3505
|
+
protoOf(DefaultPool).c3v = function (instance) {
|
|
3506
|
+
this.a3v(instance);
|
|
3507
|
+
if (this.x3u_1 === this.v3u_1) {
|
|
3508
|
+
this.y3u(instance);
|
|
3509
3509
|
} else {
|
|
3510
|
-
var _unary__edvuaz = this.
|
|
3511
|
-
this.
|
|
3512
|
-
this.
|
|
3510
|
+
var _unary__edvuaz = this.x3u_1;
|
|
3511
|
+
this.x3u_1 = _unary__edvuaz + 1 | 0;
|
|
3512
|
+
this.w3u_1[_unary__edvuaz] = instance;
|
|
3513
3513
|
}
|
|
3514
3514
|
};
|
|
3515
3515
|
protoOf(DefaultPool).u1p = function () {
|
|
3516
3516
|
var inductionVariable = 0;
|
|
3517
|
-
var last = this.
|
|
3517
|
+
var last = this.x3u_1;
|
|
3518
3518
|
if (inductionVariable < last)
|
|
3519
3519
|
do {
|
|
3520
3520
|
var i = inductionVariable;
|
|
3521
3521
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3522
|
-
var tmp = this.
|
|
3522
|
+
var tmp = this.w3u_1[i];
|
|
3523
3523
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3524
|
-
this.
|
|
3525
|
-
this.
|
|
3524
|
+
this.w3u_1[i] = null;
|
|
3525
|
+
this.y3u(instance);
|
|
3526
3526
|
}
|
|
3527
3527
|
while (inductionVariable < last);
|
|
3528
|
-
this.
|
|
3528
|
+
this.x3u_1 = 0;
|
|
3529
3529
|
};
|
|
3530
3530
|
//region block: post-declaration
|
|
3531
|
-
protoOf(Read).
|
|
3532
|
-
protoOf(Read).
|
|
3533
|
-
protoOf(Write).
|
|
3534
|
-
protoOf(Write).
|
|
3535
|
-
protoOf(ByteChannel).
|
|
3536
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3537
|
-
protoOf(CountedByteReadChannel).
|
|
3538
|
-
protoOf(SourceByteReadChannel).
|
|
3531
|
+
protoOf(Read).a3j = resume;
|
|
3532
|
+
protoOf(Read).b3j = resume_0;
|
|
3533
|
+
protoOf(Write).a3j = resume;
|
|
3534
|
+
protoOf(Write).b3j = resume_0;
|
|
3535
|
+
protoOf(ByteChannel).g3l = awaitContent$default;
|
|
3536
|
+
protoOf(ByteReadChannel$Companion$Empty$1).g3l = awaitContent$default;
|
|
3537
|
+
protoOf(CountedByteReadChannel).g3l = awaitContent$default;
|
|
3538
|
+
protoOf(SourceByteReadChannel).g3l = awaitContent$default;
|
|
3539
3539
|
protoOf(DefaultPool).d4 = close;
|
|
3540
3540
|
protoOf(NoPoolImpl).d4 = close;
|
|
3541
3541
|
//endregion
|