@solibo/solibo-sdk 1.0.25 → 1.0.27-SNAPSHOT
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/KmLogging-logging.js +88 -88
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1539 -1539
- package/KotlinBigInteger-bignum.js +1164 -1164
- package/MultiplatformSettings-multiplatform-settings.js +17 -17
- package/Stately-stately-concurrency.js +5 -5
- package/cryptography-kotlin-cryptography-bigint.js +31 -31
- package/cryptography-kotlin-cryptography-core.js +52 -52
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +175 -175
- package/cryptography-kotlin-cryptography-random.js +26 -26
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +204 -204
- package/cryptography-kotlin-cryptography-serialization-asn1.js +331 -331
- package/cryptography-kotlin-cryptography-serialization-pem.js +16 -16
- package/kotlin-kotlin-stdlib.js +2014 -2008
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2085 -2085
- package/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlinx-io-kotlinx-io-core.js +446 -446
- package/kotlinx-serialization-kotlinx-serialization-core.js +1707 -1707
- package/kotlinx-serialization-kotlinx-serialization-json.js +1351 -1351
- package/ktor-ktor-client-auth.js +465 -465
- package/ktor-ktor-client-auth.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +184 -184
- package/ktor-ktor-client-core.js +4088 -4088
- package/ktor-ktor-client-logging.js +1078 -1078
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http-cio.js +473 -473
- package/ktor-ktor-http.js +963 -963
- package/ktor-ktor-io.js +1043 -1043
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +234 -234
- package/ktor-ktor-serialization.js +108 -108
- package/ktor-ktor-utils.js +850 -850
- package/ktor-ktor-websockets.js +740 -740
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +1483 -1483
- package/solibo-sdk-sdk.d.ts +221 -6
- package/solibo-sdk-sdk.js +3279 -2541
- package/solibo-sdk-sdk.js.map +1 -1
package/ktor-ktor-io.js
CHANGED
|
@@ -117,10 +117,10 @@
|
|
|
117
117
|
initMetadataForObject(Empty, 'Empty');
|
|
118
118
|
initMetadataForClass(Closed, 'Closed');
|
|
119
119
|
function resume() {
|
|
120
|
-
return this.
|
|
120
|
+
return this.l1l().k9(Companion_getInstance().i1l_1);
|
|
121
121
|
}
|
|
122
122
|
function resume_0(throwable) {
|
|
123
|
-
var tmp = this.
|
|
123
|
+
var tmp = this.l1l();
|
|
124
124
|
var tmp_0;
|
|
125
125
|
if (throwable == null) {
|
|
126
126
|
tmp_0 = null;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
tmp_0 = new Result(tmp$ret$2);
|
|
132
132
|
}
|
|
133
133
|
var tmp1_elvis_lhs = tmp_0;
|
|
134
|
-
return tmp.
|
|
134
|
+
return tmp.k9(tmp1_elvis_lhs == null ? Companion_getInstance().i1l_1 : tmp1_elvis_lhs.qp_1);
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(Task, 'Task');
|
|
137
137
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
142
142
|
function awaitContent$default(min, $completion, $super) {
|
|
143
143
|
min = min === VOID ? 1 : min;
|
|
144
|
-
return $super === VOID ? this.
|
|
144
|
+
return $super === VOID ? this.s1n(min, $completion) : $super.s1n.call(this, min, $completion);
|
|
145
145
|
}
|
|
146
146
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
147
147
|
function get_autoFlush() {
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
189
189
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
190
190
|
function close() {
|
|
191
|
-
this.
|
|
191
|
+
this.fv();
|
|
192
192
|
}
|
|
193
193
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
194
194
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -207,10 +207,10 @@
|
|
|
207
207
|
//endregion
|
|
208
208
|
function Companion() {
|
|
209
209
|
Companion_instance_0 = this;
|
|
210
|
-
this.
|
|
210
|
+
this.h1l_1 = new Closed(null);
|
|
211
211
|
var tmp = this;
|
|
212
212
|
// Inline function 'kotlin.Companion.success' call
|
|
213
|
-
tmp.
|
|
213
|
+
tmp.i1l_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
214
214
|
}
|
|
215
215
|
var Companion_instance_0;
|
|
216
216
|
function Companion_getInstance() {
|
|
@@ -238,87 +238,87 @@
|
|
|
238
238
|
return Empty_instance;
|
|
239
239
|
}
|
|
240
240
|
function Closed(cause) {
|
|
241
|
-
this.
|
|
241
|
+
this.j1l_1 = cause;
|
|
242
242
|
}
|
|
243
243
|
protoOf(Closed).toString = function () {
|
|
244
|
-
return 'Closed(cause=' + toString(this.
|
|
244
|
+
return 'Closed(cause=' + toString(this.j1l_1) + ')';
|
|
245
245
|
};
|
|
246
246
|
protoOf(Closed).hashCode = function () {
|
|
247
|
-
return this.
|
|
247
|
+
return this.j1l_1 == null ? 0 : hashCode(this.j1l_1);
|
|
248
248
|
};
|
|
249
249
|
protoOf(Closed).equals = function (other) {
|
|
250
250
|
if (this === other)
|
|
251
251
|
return true;
|
|
252
252
|
if (!(other instanceof Closed))
|
|
253
253
|
return false;
|
|
254
|
-
if (!equals(this.
|
|
254
|
+
if (!equals(this.j1l_1, other.j1l_1))
|
|
255
255
|
return false;
|
|
256
256
|
return true;
|
|
257
257
|
};
|
|
258
258
|
function Task() {
|
|
259
259
|
}
|
|
260
260
|
function Read(continuation) {
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
261
|
+
this.p1l_1 = continuation;
|
|
262
|
+
this.q1l_1 = null;
|
|
263
263
|
if (get_DEVELOPMENT_MODE()) {
|
|
264
264
|
var tmp = this;
|
|
265
265
|
// Inline function 'kotlin.also' call
|
|
266
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
266
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.p1l_1), 16));
|
|
267
267
|
stackTraceToString(this_0);
|
|
268
|
-
tmp.
|
|
268
|
+
tmp.q1l_1 = this_0;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
protoOf(Read).
|
|
272
|
-
return this.o1l_1;
|
|
273
|
-
};
|
|
274
|
-
protoOf(Read).j1l = function () {
|
|
271
|
+
protoOf(Read).l1l = function () {
|
|
275
272
|
return this.p1l_1;
|
|
276
273
|
};
|
|
277
|
-
protoOf(Read).
|
|
274
|
+
protoOf(Read).k1l = function () {
|
|
275
|
+
return this.q1l_1;
|
|
276
|
+
};
|
|
277
|
+
protoOf(Read).m1l = function () {
|
|
278
278
|
return 'read';
|
|
279
279
|
};
|
|
280
280
|
function Write(continuation) {
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
281
|
+
this.r1l_1 = continuation;
|
|
282
|
+
this.s1l_1 = null;
|
|
283
283
|
if (get_DEVELOPMENT_MODE()) {
|
|
284
284
|
var tmp = this;
|
|
285
285
|
// Inline function 'kotlin.also' call
|
|
286
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
286
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.r1l_1), 16));
|
|
287
287
|
stackTraceToString(this_0);
|
|
288
|
-
tmp.
|
|
288
|
+
tmp.s1l_1 = this_0;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
protoOf(Write).
|
|
292
|
-
return this.q1l_1;
|
|
293
|
-
};
|
|
294
|
-
protoOf(Write).j1l = function () {
|
|
291
|
+
protoOf(Write).l1l = function () {
|
|
295
292
|
return this.r1l_1;
|
|
296
293
|
};
|
|
297
|
-
protoOf(Write).
|
|
294
|
+
protoOf(Write).k1l = function () {
|
|
295
|
+
return this.s1l_1;
|
|
296
|
+
};
|
|
297
|
+
protoOf(Write).m1l = function () {
|
|
298
298
|
return 'write';
|
|
299
299
|
};
|
|
300
300
|
function moveFlushToReadBuffer($this) {
|
|
301
301
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
302
|
-
$this.
|
|
303
|
-
$this.
|
|
304
|
-
$this.
|
|
302
|
+
$this.w1l_1;
|
|
303
|
+
$this.u1l_1.m1j($this.y1l_1);
|
|
304
|
+
$this.v1l_1 = 0;
|
|
305
305
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
306
|
-
var current = $this.
|
|
306
|
+
var current = $this.x1l_1.kotlinx$atomicfu$value;
|
|
307
307
|
var tmp;
|
|
308
308
|
if (current instanceof Write) {
|
|
309
|
-
tmp = $this.
|
|
309
|
+
tmp = $this.x1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
310
310
|
} else {
|
|
311
311
|
tmp = false;
|
|
312
312
|
}
|
|
313
313
|
if (tmp) {
|
|
314
|
-
current.
|
|
314
|
+
current.n1l();
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
function closeSlot($this, cause) {
|
|
318
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
319
|
-
var continuation = $this.
|
|
318
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().h1l_1;
|
|
319
|
+
var continuation = $this.x1l_1.atomicfu$getAndSet(closeContinuation);
|
|
320
320
|
if (isInterface(continuation, Task)) {
|
|
321
|
-
continuation.
|
|
321
|
+
continuation.o1l(cause);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -337,50 +337,50 @@
|
|
|
337
337
|
}
|
|
338
338
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
339
339
|
CoroutineImpl.call(this, resultContinuation);
|
|
340
|
-
this.
|
|
341
|
-
this.
|
|
340
|
+
this.j1m_1 = _this__u8e3s4;
|
|
341
|
+
this.k1m_1 = min;
|
|
342
342
|
}
|
|
343
|
-
protoOf($awaitContentCOROUTINE$).
|
|
344
|
-
var suspendResult = this.
|
|
343
|
+
protoOf($awaitContentCOROUTINE$).h9 = function () {
|
|
344
|
+
var suspendResult = this.b9_1;
|
|
345
345
|
$sm: do
|
|
346
346
|
try {
|
|
347
|
-
var tmp = this.
|
|
347
|
+
var tmp = this.z8_1;
|
|
348
348
|
switch (tmp) {
|
|
349
349
|
case 0:
|
|
350
|
-
this.
|
|
351
|
-
rethrowCloseCauseIfNeeded(this.
|
|
352
|
-
if (this.
|
|
350
|
+
this.a9_1 = 4;
|
|
351
|
+
rethrowCloseCauseIfNeeded(this.j1m_1);
|
|
352
|
+
if (this.j1m_1.y1l_1.g1() >= fromInt(this.k1m_1))
|
|
353
353
|
return true;
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
354
|
+
this.l1m_1 = this.j1m_1;
|
|
355
|
+
this.z8_1 = 1;
|
|
356
356
|
continue $sm;
|
|
357
357
|
case 1:
|
|
358
|
-
if (!(add(numberToLong(this.
|
|
359
|
-
this.
|
|
358
|
+
if (!(add(numberToLong(this.j1m_1.v1l_1), this.j1m_1.y1l_1.g1()) < fromInt(this.k1m_1) && this.j1m_1.a1m_1.kotlinx$atomicfu$value == null)) {
|
|
359
|
+
this.z8_1 = 3;
|
|
360
360
|
continue $sm;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
this.
|
|
363
|
+
this.z8_1 = 2;
|
|
364
364
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
365
|
-
cancellable.
|
|
366
|
-
var tmp0 = this.
|
|
365
|
+
cancellable.iw();
|
|
366
|
+
var tmp0 = this.l1m_1;
|
|
367
367
|
var tmp2 = new Read(cancellable);
|
|
368
368
|
l$ret$1: do {
|
|
369
|
-
var previous = tmp0.
|
|
369
|
+
var previous = tmp0.x1l_1.kotlinx$atomicfu$value;
|
|
370
370
|
if (!(previous instanceof Closed)) {
|
|
371
|
-
if (!tmp0.
|
|
372
|
-
tmp2.
|
|
371
|
+
if (!tmp0.x1l_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
372
|
+
tmp2.n1l();
|
|
373
373
|
break l$ret$1;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
if (previous instanceof Read) {
|
|
377
|
-
previous.
|
|
377
|
+
previous.o1l(new ConcurrentIOException(tmp2.m1l(), previous.k1l()));
|
|
378
378
|
} else {
|
|
379
379
|
if (isInterface(previous, Task)) {
|
|
380
|
-
previous.
|
|
380
|
+
previous.n1l();
|
|
381
381
|
} else {
|
|
382
382
|
if (previous instanceof Closed) {
|
|
383
|
-
tmp2.
|
|
383
|
+
tmp2.o1l(previous.j1l_1);
|
|
384
384
|
break l$ret$1;
|
|
385
385
|
} else {
|
|
386
386
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -389,95 +389,95 @@
|
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
if (!(add(numberToLong(this.
|
|
393
|
-
var current = tmp0.
|
|
392
|
+
if (!(add(numberToLong(this.j1m_1.v1l_1), this.j1m_1.y1l_1.g1()) < fromInt(this.k1m_1) && this.j1m_1.a1m_1.kotlinx$atomicfu$value == null)) {
|
|
393
|
+
var current = tmp0.x1l_1.kotlinx$atomicfu$value;
|
|
394
394
|
var tmp_0;
|
|
395
395
|
if (current instanceof Read) {
|
|
396
|
-
tmp_0 = tmp0.
|
|
396
|
+
tmp_0 = tmp0.x1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
397
397
|
} else {
|
|
398
398
|
tmp_0 = false;
|
|
399
399
|
}
|
|
400
400
|
if (tmp_0) {
|
|
401
|
-
current.
|
|
401
|
+
current.n1l();
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
while (false);
|
|
406
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
406
|
+
suspendResult = returnIfSuspended(cancellable.jw(), this);
|
|
407
407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
408
408
|
return suspendResult;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
continue $sm;
|
|
412
412
|
case 2:
|
|
413
|
-
this.
|
|
413
|
+
this.z8_1 = 1;
|
|
414
414
|
continue $sm;
|
|
415
415
|
case 3:
|
|
416
|
-
if (this.
|
|
417
|
-
moveFlushToReadBuffer(this.
|
|
416
|
+
if (this.j1m_1.y1l_1.g1() < 1048576n) {
|
|
417
|
+
moveFlushToReadBuffer(this.j1m_1);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
return this.
|
|
420
|
+
return this.j1m_1.y1l_1.g1() >= fromInt(this.k1m_1);
|
|
421
421
|
case 4:
|
|
422
|
-
throw this.
|
|
422
|
+
throw this.c9_1;
|
|
423
423
|
}
|
|
424
424
|
} catch ($p) {
|
|
425
425
|
var e = $p;
|
|
426
|
-
if (this.
|
|
426
|
+
if (this.a9_1 === 4) {
|
|
427
427
|
throw e;
|
|
428
428
|
} else {
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
429
|
+
this.z8_1 = this.a9_1;
|
|
430
|
+
this.c9_1 = e;
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
while (true);
|
|
434
434
|
};
|
|
435
435
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
436
436
|
CoroutineImpl.call(this, resultContinuation);
|
|
437
|
-
this.
|
|
437
|
+
this.u1m_1 = _this__u8e3s4;
|
|
438
438
|
}
|
|
439
|
-
protoOf($flushCOROUTINE$).
|
|
440
|
-
var suspendResult = this.
|
|
439
|
+
protoOf($flushCOROUTINE$).h9 = function () {
|
|
440
|
+
var suspendResult = this.b9_1;
|
|
441
441
|
$sm: do
|
|
442
442
|
try {
|
|
443
|
-
var tmp = this.
|
|
443
|
+
var tmp = this.z8_1;
|
|
444
444
|
switch (tmp) {
|
|
445
445
|
case 0:
|
|
446
|
-
this.
|
|
447
|
-
rethrowCloseCauseIfNeeded(this.
|
|
448
|
-
this.
|
|
449
|
-
if (this.
|
|
446
|
+
this.a9_1 = 4;
|
|
447
|
+
rethrowCloseCauseIfNeeded(this.u1m_1);
|
|
448
|
+
this.u1m_1.w1m();
|
|
449
|
+
if (this.u1m_1.v1l_1 < 1048576)
|
|
450
450
|
return Unit_instance;
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
451
|
+
this.v1m_1 = this.u1m_1;
|
|
452
|
+
this.z8_1 = 1;
|
|
453
453
|
continue $sm;
|
|
454
454
|
case 1:
|
|
455
|
-
if (!(this.
|
|
456
|
-
this.
|
|
455
|
+
if (!(this.u1m_1.v1l_1 >= 1048576 && this.u1m_1.a1m_1.kotlinx$atomicfu$value == null)) {
|
|
456
|
+
this.z8_1 = 3;
|
|
457
457
|
continue $sm;
|
|
458
458
|
}
|
|
459
459
|
|
|
460
|
-
this.
|
|
460
|
+
this.z8_1 = 2;
|
|
461
461
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
462
|
-
cancellable.
|
|
463
|
-
var tmp0 = this.
|
|
462
|
+
cancellable.iw();
|
|
463
|
+
var tmp0 = this.v1m_1;
|
|
464
464
|
var tmp2 = new Write(cancellable);
|
|
465
465
|
l$ret$1: do {
|
|
466
|
-
var previous = tmp0.
|
|
466
|
+
var previous = tmp0.x1l_1.kotlinx$atomicfu$value;
|
|
467
467
|
if (!(previous instanceof Closed)) {
|
|
468
|
-
if (!tmp0.
|
|
469
|
-
tmp2.
|
|
468
|
+
if (!tmp0.x1l_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
469
|
+
tmp2.n1l();
|
|
470
470
|
break l$ret$1;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
if (previous instanceof Write) {
|
|
474
|
-
previous.
|
|
474
|
+
previous.o1l(new ConcurrentIOException(tmp2.m1l(), previous.k1l()));
|
|
475
475
|
} else {
|
|
476
476
|
if (isInterface(previous, Task)) {
|
|
477
|
-
previous.
|
|
477
|
+
previous.n1l();
|
|
478
478
|
} else {
|
|
479
479
|
if (previous instanceof Closed) {
|
|
480
|
-
tmp2.
|
|
480
|
+
tmp2.o1l(previous.j1l_1);
|
|
481
481
|
break l$ret$1;
|
|
482
482
|
} else {
|
|
483
483
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -486,62 +486,62 @@
|
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
if (!(this.
|
|
490
|
-
var current = tmp0.
|
|
489
|
+
if (!(this.u1m_1.v1l_1 >= 1048576 && this.u1m_1.a1m_1.kotlinx$atomicfu$value == null)) {
|
|
490
|
+
var current = tmp0.x1l_1.kotlinx$atomicfu$value;
|
|
491
491
|
var tmp_0;
|
|
492
492
|
if (current instanceof Write) {
|
|
493
|
-
tmp_0 = tmp0.
|
|
493
|
+
tmp_0 = tmp0.x1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
494
494
|
} else {
|
|
495
495
|
tmp_0 = false;
|
|
496
496
|
}
|
|
497
497
|
if (tmp_0) {
|
|
498
|
-
current.
|
|
498
|
+
current.n1l();
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
while (false);
|
|
503
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
503
|
+
suspendResult = returnIfSuspended(cancellable.jw(), this);
|
|
504
504
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
505
505
|
return suspendResult;
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
continue $sm;
|
|
509
509
|
case 2:
|
|
510
|
-
this.
|
|
510
|
+
this.z8_1 = 1;
|
|
511
511
|
continue $sm;
|
|
512
512
|
case 3:
|
|
513
513
|
return Unit_instance;
|
|
514
514
|
case 4:
|
|
515
|
-
throw this.
|
|
515
|
+
throw this.c9_1;
|
|
516
516
|
}
|
|
517
517
|
} catch ($p) {
|
|
518
518
|
var e = $p;
|
|
519
|
-
if (this.
|
|
519
|
+
if (this.a9_1 === 4) {
|
|
520
520
|
throw e;
|
|
521
521
|
} else {
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
522
|
+
this.z8_1 = this.a9_1;
|
|
523
|
+
this.c9_1 = e;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
while (true);
|
|
527
527
|
};
|
|
528
528
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
529
529
|
CoroutineImpl.call(this, resultContinuation);
|
|
530
|
-
this.
|
|
530
|
+
this.f1n_1 = _this__u8e3s4;
|
|
531
531
|
}
|
|
532
|
-
protoOf($flushAndCloseCOROUTINE$).
|
|
533
|
-
var suspendResult = this.
|
|
532
|
+
protoOf($flushAndCloseCOROUTINE$).h9 = function () {
|
|
533
|
+
var suspendResult = this.b9_1;
|
|
534
534
|
$sm: do
|
|
535
535
|
try {
|
|
536
|
-
var tmp = this.
|
|
536
|
+
var tmp = this.z8_1;
|
|
537
537
|
switch (tmp) {
|
|
538
538
|
case 0:
|
|
539
|
-
this.
|
|
540
|
-
var this_0 = this.
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
544
|
-
suspendResult = this_0.
|
|
539
|
+
this.a9_1 = 4;
|
|
540
|
+
var this_0 = this.f1n_1;
|
|
541
|
+
this.a9_1 = 2;
|
|
542
|
+
this.h1n_1 = Companion_instance;
|
|
543
|
+
this.z8_1 = 1;
|
|
544
|
+
suspendResult = this_0.i1n(this);
|
|
545
545
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
546
546
|
return suspendResult;
|
|
547
547
|
}
|
|
@@ -549,144 +549,144 @@
|
|
|
549
549
|
continue $sm;
|
|
550
550
|
case 1:
|
|
551
551
|
var tmp_0 = this;
|
|
552
|
-
this.
|
|
553
|
-
tmp_0.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
552
|
+
this.h1n_1;
|
|
553
|
+
tmp_0.g1n_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
554
|
+
this.a9_1 = 4;
|
|
555
|
+
this.z8_1 = 3;
|
|
556
556
|
continue $sm;
|
|
557
557
|
case 2:
|
|
558
|
-
this.
|
|
559
|
-
var tmp_1 = this.
|
|
558
|
+
this.a9_1 = 4;
|
|
559
|
+
var tmp_1 = this.c9_1;
|
|
560
560
|
if (tmp_1 instanceof Error) {
|
|
561
|
-
var e = this.
|
|
561
|
+
var e = this.c9_1;
|
|
562
562
|
var tmp_2 = this;
|
|
563
|
-
tmp_2.
|
|
564
|
-
this.
|
|
563
|
+
tmp_2.g1n_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
564
|
+
this.z8_1 = 3;
|
|
565
565
|
continue $sm;
|
|
566
566
|
} else {
|
|
567
|
-
throw this.
|
|
567
|
+
throw this.c9_1;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
case 3:
|
|
571
|
-
this.
|
|
572
|
-
if (!this.
|
|
571
|
+
this.a9_1 = 4;
|
|
572
|
+
if (!this.f1n_1.a1m_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
573
573
|
return Unit_instance;
|
|
574
|
-
closeSlot(this.
|
|
574
|
+
closeSlot(this.f1n_1, null);
|
|
575
575
|
return Unit_instance;
|
|
576
576
|
case 4:
|
|
577
|
-
throw this.
|
|
577
|
+
throw this.c9_1;
|
|
578
578
|
}
|
|
579
579
|
} catch ($p) {
|
|
580
580
|
var e_0 = $p;
|
|
581
|
-
if (this.
|
|
581
|
+
if (this.a9_1 === 4) {
|
|
582
582
|
throw e_0;
|
|
583
583
|
} else {
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
584
|
+
this.z8_1 = this.a9_1;
|
|
585
|
+
this.c9_1 = e_0;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
while (true);
|
|
589
589
|
};
|
|
590
590
|
function ByteChannel(autoFlush) {
|
|
591
591
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.x1l_1 = new Buffer();
|
|
592
|
+
this.t1l_1 = autoFlush;
|
|
593
|
+
this.u1l_1 = new Buffer();
|
|
594
|
+
this.v1l_1 = 0;
|
|
595
|
+
this.w1l_1 = new Object();
|
|
596
|
+
this.x1l_1 = atomic$ref$1(Empty_instance);
|
|
598
597
|
this.y1l_1 = new Buffer();
|
|
599
|
-
this.z1l_1 =
|
|
598
|
+
this.z1l_1 = new Buffer();
|
|
599
|
+
this.a1m_1 = atomic$ref$1(null);
|
|
600
600
|
}
|
|
601
|
-
protoOf(ByteChannel).i1n = function () {
|
|
602
|
-
return this.s1l_1;
|
|
603
|
-
};
|
|
604
601
|
protoOf(ByteChannel).j1n = function () {
|
|
605
|
-
|
|
602
|
+
return this.t1l_1;
|
|
603
|
+
};
|
|
604
|
+
protoOf(ByteChannel).k1n = function () {
|
|
605
|
+
var tmp0_safe_receiver = this.a1m_1.kotlinx$atomicfu$value;
|
|
606
606
|
if (tmp0_safe_receiver == null)
|
|
607
607
|
null;
|
|
608
608
|
else {
|
|
609
|
-
tmp0_safe_receiver.
|
|
609
|
+
tmp0_safe_receiver.m1n(ClosedReadChannelException$_init_$ref_ix0089());
|
|
610
610
|
}
|
|
611
|
-
if (this.
|
|
611
|
+
if (this.y1l_1.j1i()) {
|
|
612
612
|
moveFlushToReadBuffer(this);
|
|
613
613
|
}
|
|
614
|
-
return this.
|
|
614
|
+
return this.y1l_1;
|
|
615
615
|
};
|
|
616
|
-
protoOf(ByteChannel).
|
|
617
|
-
if (this.
|
|
618
|
-
var tmp0_safe_receiver = this.
|
|
616
|
+
protoOf(ByteChannel).n1n = function () {
|
|
617
|
+
if (this.o1n()) {
|
|
618
|
+
var tmp0_safe_receiver = this.a1m_1.kotlinx$atomicfu$value;
|
|
619
619
|
var tmp;
|
|
620
620
|
if (tmp0_safe_receiver == null) {
|
|
621
621
|
tmp = null;
|
|
622
622
|
} else {
|
|
623
|
-
tmp = tmp0_safe_receiver.
|
|
623
|
+
tmp = tmp0_safe_receiver.m1n(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
624
624
|
}
|
|
625
625
|
if (tmp == null)
|
|
626
626
|
throw new ClosedWriteChannelException();
|
|
627
627
|
}
|
|
628
|
-
return this.
|
|
628
|
+
return this.z1l_1;
|
|
629
629
|
};
|
|
630
|
-
protoOf(ByteChannel).
|
|
631
|
-
var tmp0_safe_receiver = this.
|
|
632
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
630
|
+
protoOf(ByteChannel).p1n = function () {
|
|
631
|
+
var tmp0_safe_receiver = this.a1m_1.kotlinx$atomicfu$value;
|
|
632
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1n();
|
|
633
633
|
};
|
|
634
|
-
protoOf(ByteChannel).
|
|
635
|
-
return !(this.
|
|
634
|
+
protoOf(ByteChannel).o1n = function () {
|
|
635
|
+
return !(this.a1m_1.kotlinx$atomicfu$value == null);
|
|
636
636
|
};
|
|
637
|
-
protoOf(ByteChannel).
|
|
638
|
-
return !(this.
|
|
637
|
+
protoOf(ByteChannel).r1n = function () {
|
|
638
|
+
return !(this.p1n() == null) || (this.o1n() && this.v1l_1 === 0 && this.y1l_1.j1i());
|
|
639
639
|
};
|
|
640
|
-
protoOf(ByteChannel).
|
|
640
|
+
protoOf(ByteChannel).s1n = function (min, $completion) {
|
|
641
641
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
642
|
-
tmp.
|
|
643
|
-
tmp.
|
|
644
|
-
return tmp.
|
|
642
|
+
tmp.b9_1 = Unit_instance;
|
|
643
|
+
tmp.c9_1 = null;
|
|
644
|
+
return tmp.h9();
|
|
645
645
|
};
|
|
646
|
-
protoOf(ByteChannel).
|
|
646
|
+
protoOf(ByteChannel).i1n = function ($completion) {
|
|
647
647
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
648
|
-
tmp.
|
|
649
|
-
tmp.
|
|
650
|
-
return tmp.
|
|
648
|
+
tmp.b9_1 = Unit_instance;
|
|
649
|
+
tmp.c9_1 = null;
|
|
650
|
+
return tmp.h9();
|
|
651
651
|
};
|
|
652
|
-
protoOf(ByteChannel).
|
|
653
|
-
if (this.
|
|
652
|
+
protoOf(ByteChannel).w1m = function () {
|
|
653
|
+
if (this.z1l_1.j1i())
|
|
654
654
|
return Unit_instance;
|
|
655
655
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
656
|
-
this.
|
|
657
|
-
var count = convertToInt(this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
656
|
+
this.w1l_1;
|
|
657
|
+
var count = convertToInt(this.z1l_1.g1());
|
|
658
|
+
this.u1l_1.b1k(this.z1l_1);
|
|
659
|
+
this.v1l_1 = this.v1l_1 + count | 0;
|
|
660
660
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
661
|
-
var current = this.
|
|
661
|
+
var current = this.x1l_1.kotlinx$atomicfu$value;
|
|
662
662
|
var tmp;
|
|
663
663
|
if (current instanceof Read) {
|
|
664
|
-
tmp = this.
|
|
664
|
+
tmp = this.x1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
665
665
|
} else {
|
|
666
666
|
tmp = false;
|
|
667
667
|
}
|
|
668
668
|
if (tmp) {
|
|
669
|
-
current.
|
|
669
|
+
current.n1l();
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
|
-
protoOf(ByteChannel).
|
|
673
|
-
this.
|
|
674
|
-
if (!this.
|
|
672
|
+
protoOf(ByteChannel).f4 = function () {
|
|
673
|
+
this.w1m();
|
|
674
|
+
if (!this.a1m_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
675
675
|
return Unit_instance;
|
|
676
676
|
closeSlot(this, null);
|
|
677
677
|
};
|
|
678
|
-
protoOf(ByteChannel).
|
|
678
|
+
protoOf(ByteChannel).u1n = function ($completion) {
|
|
679
679
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
680
|
-
tmp.
|
|
681
|
-
tmp.
|
|
682
|
-
return tmp.
|
|
680
|
+
tmp.b9_1 = Unit_instance;
|
|
681
|
+
tmp.c9_1 = null;
|
|
682
|
+
return tmp.h9();
|
|
683
683
|
};
|
|
684
|
-
protoOf(ByteChannel).
|
|
685
|
-
if (!(this.
|
|
684
|
+
protoOf(ByteChannel).v1n = function (cause) {
|
|
685
|
+
if (!(this.a1m_1.kotlinx$atomicfu$value == null))
|
|
686
686
|
return Unit_instance;
|
|
687
687
|
var closedToken = new CloseToken(cause);
|
|
688
|
-
this.
|
|
689
|
-
var wrappedCause = closedToken.
|
|
688
|
+
this.a1m_1.atomicfu$compareAndSet(null, closedToken);
|
|
689
|
+
var wrappedCause = closedToken.q1n();
|
|
690
690
|
closeSlot(this, wrappedCause);
|
|
691
691
|
};
|
|
692
692
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
length = length === VOID ? content.length : length;
|
|
703
703
|
// Inline function 'kotlin.also' call
|
|
704
704
|
var this_0 = new Buffer();
|
|
705
|
-
this_0.
|
|
705
|
+
this_0.s1j(content, offset, offset + length | 0);
|
|
706
706
|
var source = this_0;
|
|
707
707
|
return ByteReadChannel_0(source);
|
|
708
708
|
}
|
|
@@ -710,18 +710,18 @@
|
|
|
710
710
|
return new SourceByteReadChannel(source);
|
|
711
711
|
}
|
|
712
712
|
function buildPartialMatchTable($this) {
|
|
713
|
-
var table = new Int32Array($this.
|
|
713
|
+
var table = new Int32Array($this.x1n_1.g1());
|
|
714
714
|
var j = 0;
|
|
715
715
|
var inductionVariable = 1;
|
|
716
|
-
var last = $this.
|
|
716
|
+
var last = $this.x1n_1.g1();
|
|
717
717
|
if (inductionVariable < last)
|
|
718
718
|
do {
|
|
719
719
|
var i = inductionVariable;
|
|
720
720
|
inductionVariable = inductionVariable + 1 | 0;
|
|
721
|
-
while (j > 0 && !($this.
|
|
721
|
+
while (j > 0 && !($this.x1n_1.h1(i) === $this.x1n_1.h1(j))) {
|
|
722
722
|
j = table[j - 1 | 0];
|
|
723
723
|
}
|
|
724
|
-
if ($this.
|
|
724
|
+
if ($this.x1n_1.h1(i) === $this.x1n_1.h1(j)) {
|
|
725
725
|
j = j + 1 | 0;
|
|
726
726
|
}
|
|
727
727
|
table[i] = j;
|
|
@@ -731,19 +731,19 @@
|
|
|
731
731
|
}
|
|
732
732
|
function advanceToNextPotentialMatch($this, $completion) {
|
|
733
733
|
var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
|
|
734
|
-
tmp.
|
|
735
|
-
tmp.
|
|
736
|
-
return tmp.
|
|
734
|
+
tmp.b9_1 = Unit_instance;
|
|
735
|
+
tmp.c9_1 = null;
|
|
736
|
+
return tmp.h9();
|
|
737
737
|
}
|
|
738
738
|
function checkFullMatch($this, $completion) {
|
|
739
739
|
var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
|
|
740
|
-
tmp.
|
|
741
|
-
tmp.
|
|
742
|
-
return tmp.
|
|
740
|
+
tmp.b9_1 = Unit_instance;
|
|
741
|
+
tmp.c9_1 = null;
|
|
742
|
+
return tmp.h9();
|
|
743
743
|
}
|
|
744
744
|
function checkBounds($this, extra) {
|
|
745
|
-
if (add($this.
|
|
746
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
745
|
+
if (add($this.d1o_1, extra) > $this.z1n_1) {
|
|
746
|
+
throw IOException_init_$Create$('Limit of ' + $this.z1n_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.x1n_1) + '"'));
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -751,28 +751,28 @@
|
|
|
751
751
|
}
|
|
752
752
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
753
753
|
CoroutineImpl.call(this, resultContinuation);
|
|
754
|
-
this.
|
|
755
|
-
this.
|
|
754
|
+
this.i1p_1 = _this__u8e3s4;
|
|
755
|
+
this.j1p_1 = ignoreMissing;
|
|
756
756
|
}
|
|
757
|
-
protoOf($findNextCOROUTINE$).
|
|
758
|
-
var suspendResult = this.
|
|
757
|
+
protoOf($findNextCOROUTINE$).h9 = function () {
|
|
758
|
+
var suspendResult = this.b9_1;
|
|
759
759
|
$sm: do
|
|
760
760
|
try {
|
|
761
|
-
var tmp = this.
|
|
761
|
+
var tmp = this.z8_1;
|
|
762
762
|
switch (tmp) {
|
|
763
763
|
case 0:
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
766
|
-
this.
|
|
764
|
+
this.a9_1 = 9;
|
|
765
|
+
this.i1p_1.d1o_1 = 0n;
|
|
766
|
+
this.z8_1 = 1;
|
|
767
767
|
continue $sm;
|
|
768
768
|
case 1:
|
|
769
|
-
if (!this.
|
|
770
|
-
this.
|
|
771
|
-
this.
|
|
769
|
+
if (!this.i1p_1.a1o_1.j1i()) {
|
|
770
|
+
this.k1p_1 = true;
|
|
771
|
+
this.z8_1 = 3;
|
|
772
772
|
continue $sm;
|
|
773
773
|
} else {
|
|
774
|
-
this.
|
|
775
|
-
suspendResult = this.
|
|
774
|
+
this.z8_1 = 2;
|
|
775
|
+
suspendResult = this.i1p_1.w1n_1.t1n(VOID, this);
|
|
776
776
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
777
777
|
return suspendResult;
|
|
778
778
|
}
|
|
@@ -780,25 +780,25 @@
|
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
case 2:
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
783
|
+
this.k1p_1 = suspendResult;
|
|
784
|
+
this.z8_1 = 3;
|
|
785
785
|
continue $sm;
|
|
786
786
|
case 3:
|
|
787
|
-
if (!this.
|
|
788
|
-
this.
|
|
787
|
+
if (!this.k1p_1) {
|
|
788
|
+
this.z8_1 = 7;
|
|
789
789
|
continue $sm;
|
|
790
790
|
}
|
|
791
791
|
|
|
792
|
-
this.
|
|
793
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
792
|
+
this.z8_1 = 4;
|
|
793
|
+
suspendResult = advanceToNextPotentialMatch(this.i1p_1, this);
|
|
794
794
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
795
795
|
return suspendResult;
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
continue $sm;
|
|
799
799
|
case 4:
|
|
800
|
-
this.
|
|
801
|
-
suspendResult = checkFullMatch(this.
|
|
800
|
+
this.z8_1 = 5;
|
|
801
|
+
suspendResult = checkFullMatch(this.i1p_1, this);
|
|
802
802
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
803
803
|
return suspendResult;
|
|
804
804
|
}
|
|
@@ -806,66 +806,66 @@
|
|
|
806
806
|
continue $sm;
|
|
807
807
|
case 5:
|
|
808
808
|
if (suspendResult) {
|
|
809
|
-
return this.
|
|
809
|
+
return this.i1p_1.d1o_1;
|
|
810
810
|
} else {
|
|
811
|
-
this.
|
|
811
|
+
this.z8_1 = 6;
|
|
812
812
|
continue $sm;
|
|
813
813
|
}
|
|
814
814
|
|
|
815
815
|
case 6:
|
|
816
|
-
this.
|
|
816
|
+
this.z8_1 = 1;
|
|
817
817
|
continue $sm;
|
|
818
818
|
case 7:
|
|
819
|
-
if (!this.
|
|
820
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
819
|
+
if (!this.j1p_1) {
|
|
820
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.i1p_1, this.i1p_1.x1n_1) + '" but encountered end of input');
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
this.
|
|
824
|
-
this.
|
|
825
|
-
suspendResult = this.
|
|
823
|
+
this.i1p_1.d1o_1 = add(this.i1p_1.d1o_1, this.i1p_1.c1o_1.m1j(this.i1p_1.y1n_1.n1n()));
|
|
824
|
+
this.z8_1 = 8;
|
|
825
|
+
suspendResult = this.i1p_1.y1n_1.i1n(this);
|
|
826
826
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
827
827
|
return suspendResult;
|
|
828
828
|
}
|
|
829
829
|
|
|
830
830
|
continue $sm;
|
|
831
831
|
case 8:
|
|
832
|
-
return this.
|
|
832
|
+
return this.i1p_1.d1o_1;
|
|
833
833
|
case 9:
|
|
834
|
-
throw this.
|
|
834
|
+
throw this.c9_1;
|
|
835
835
|
}
|
|
836
836
|
} catch ($p) {
|
|
837
837
|
var e = $p;
|
|
838
|
-
if (this.
|
|
838
|
+
if (this.a9_1 === 9) {
|
|
839
839
|
throw e;
|
|
840
840
|
} else {
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
841
|
+
this.z8_1 = this.a9_1;
|
|
842
|
+
this.c9_1 = e;
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
while (true);
|
|
846
846
|
};
|
|
847
847
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
848
848
|
CoroutineImpl.call(this, resultContinuation);
|
|
849
|
-
this.
|
|
849
|
+
this.n1o_1 = _this__u8e3s4;
|
|
850
850
|
}
|
|
851
|
-
protoOf($advanceToNextPotentialMatchCOROUTINE$).
|
|
852
|
-
var suspendResult = this.
|
|
851
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$).h9 = function () {
|
|
852
|
+
var suspendResult = this.b9_1;
|
|
853
853
|
$sm: do
|
|
854
854
|
try {
|
|
855
|
-
var tmp = this.
|
|
855
|
+
var tmp = this.z8_1;
|
|
856
856
|
switch (tmp) {
|
|
857
857
|
case 0:
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
858
|
+
this.a9_1 = 8;
|
|
859
|
+
this.z8_1 = 1;
|
|
860
860
|
continue $sm;
|
|
861
861
|
case 1:
|
|
862
|
-
if (!this.
|
|
863
|
-
this.
|
|
864
|
-
this.
|
|
862
|
+
if (!this.n1o_1.a1o_1.j1i()) {
|
|
863
|
+
this.o1o_1 = true;
|
|
864
|
+
this.z8_1 = 3;
|
|
865
865
|
continue $sm;
|
|
866
866
|
} else {
|
|
867
|
-
this.
|
|
868
|
-
suspendResult = this.
|
|
867
|
+
this.z8_1 = 2;
|
|
868
|
+
suspendResult = this.n1o_1.w1n_1.t1n(VOID, this);
|
|
869
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
870
|
return suspendResult;
|
|
871
871
|
}
|
|
@@ -873,34 +873,34 @@
|
|
|
873
873
|
}
|
|
874
874
|
|
|
875
875
|
case 2:
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
876
|
+
this.o1o_1 = suspendResult;
|
|
877
|
+
this.z8_1 = 3;
|
|
878
878
|
continue $sm;
|
|
879
879
|
case 3:
|
|
880
|
-
if (!this.
|
|
881
|
-
this.
|
|
880
|
+
if (!this.o1o_1) {
|
|
881
|
+
this.z8_1 = 7;
|
|
882
882
|
continue $sm;
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
-
var nextMatch = indexOf(this.
|
|
885
|
+
var nextMatch = indexOf(this.n1o_1.a1o_1, this.n1o_1.x1n_1.h1(0));
|
|
886
886
|
if (nextMatch === -1n) {
|
|
887
|
-
var tmp_0 = this.
|
|
888
|
-
checkBounds(this.
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
891
|
-
suspendResult = flushIfNeeded(this.
|
|
887
|
+
var tmp_0 = this.n1o_1.a1o_1;
|
|
888
|
+
checkBounds(this.n1o_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
|
|
889
|
+
this.n1o_1.d1o_1 = add(this.n1o_1.d1o_1, this.n1o_1.a1o_1.m1j(this.n1o_1.y1n_1.n1n()));
|
|
890
|
+
this.z8_1 = 5;
|
|
891
|
+
suspendResult = flushIfNeeded(this.n1o_1.y1n_1, this);
|
|
892
892
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
893
893
|
return suspendResult;
|
|
894
894
|
}
|
|
895
895
|
continue $sm;
|
|
896
896
|
} else {
|
|
897
|
-
checkBounds(this.
|
|
898
|
-
var tmp_1 = this.
|
|
899
|
-
var tmp_2 = this.
|
|
900
|
-
var tmp_3 = this.
|
|
901
|
-
tmp_1.
|
|
902
|
-
this.
|
|
903
|
-
suspendResult = flushIfNeeded(this.
|
|
897
|
+
checkBounds(this.n1o_1, nextMatch);
|
|
898
|
+
var tmp_1 = this.n1o_1;
|
|
899
|
+
var tmp_2 = this.n1o_1.d1o_1;
|
|
900
|
+
var tmp_3 = this.n1o_1.y1n_1.n1n();
|
|
901
|
+
tmp_1.d1o_1 = add(tmp_2, this.n1o_1.a1o_1.j1j(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
902
|
+
this.z8_1 = 4;
|
|
903
|
+
suspendResult = flushIfNeeded(this.n1o_1.y1n_1, this);
|
|
904
904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
905
905
|
return suspendResult;
|
|
906
906
|
}
|
|
@@ -910,49 +910,49 @@
|
|
|
910
910
|
case 4:
|
|
911
911
|
return Unit_instance;
|
|
912
912
|
case 5:
|
|
913
|
-
this.
|
|
913
|
+
this.z8_1 = 6;
|
|
914
914
|
continue $sm;
|
|
915
915
|
case 6:
|
|
916
|
-
this.
|
|
916
|
+
this.z8_1 = 1;
|
|
917
917
|
continue $sm;
|
|
918
918
|
case 7:
|
|
919
919
|
return Unit_instance;
|
|
920
920
|
case 8:
|
|
921
|
-
throw this.
|
|
921
|
+
throw this.c9_1;
|
|
922
922
|
}
|
|
923
923
|
} catch ($p) {
|
|
924
924
|
var e = $p;
|
|
925
|
-
if (this.
|
|
925
|
+
if (this.a9_1 === 8) {
|
|
926
926
|
throw e;
|
|
927
927
|
} else {
|
|
928
|
-
this.
|
|
929
|
-
this.
|
|
928
|
+
this.z8_1 = this.a9_1;
|
|
929
|
+
this.c9_1 = e;
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
while (true);
|
|
933
933
|
};
|
|
934
934
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
935
935
|
CoroutineImpl.call(this, resultContinuation);
|
|
936
|
-
this.
|
|
936
|
+
this.x1o_1 = _this__u8e3s4;
|
|
937
937
|
}
|
|
938
|
-
protoOf($checkFullMatchCOROUTINE$).
|
|
939
|
-
var suspendResult = this.
|
|
938
|
+
protoOf($checkFullMatchCOROUTINE$).h9 = function () {
|
|
939
|
+
var suspendResult = this.b9_1;
|
|
940
940
|
$sm: do
|
|
941
941
|
try {
|
|
942
|
-
var tmp = this.
|
|
942
|
+
var tmp = this.z8_1;
|
|
943
943
|
switch (tmp) {
|
|
944
944
|
case 0:
|
|
945
|
-
this.
|
|
946
|
-
this.
|
|
945
|
+
this.a9_1 = 8;
|
|
946
|
+
this.z8_1 = 1;
|
|
947
947
|
continue $sm;
|
|
948
948
|
case 1:
|
|
949
|
-
if (!this.
|
|
950
|
-
this.
|
|
951
|
-
this.
|
|
949
|
+
if (!this.x1o_1.a1o_1.j1i()) {
|
|
950
|
+
this.z1o_1 = true;
|
|
951
|
+
this.z8_1 = 3;
|
|
952
952
|
continue $sm;
|
|
953
953
|
} else {
|
|
954
|
-
this.
|
|
955
|
-
suspendResult = this.
|
|
954
|
+
this.z8_1 = 2;
|
|
955
|
+
suspendResult = this.x1o_1.w1n_1.t1n(VOID, this);
|
|
956
956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
957
957
|
return suspendResult;
|
|
958
958
|
}
|
|
@@ -960,120 +960,120 @@
|
|
|
960
960
|
}
|
|
961
961
|
|
|
962
962
|
case 2:
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
963
|
+
this.z1o_1 = suspendResult;
|
|
964
|
+
this.z8_1 = 3;
|
|
965
965
|
continue $sm;
|
|
966
966
|
case 3:
|
|
967
|
-
if (!this.
|
|
968
|
-
this.
|
|
967
|
+
if (!this.z1o_1) {
|
|
968
|
+
this.z8_1 = 7;
|
|
969
969
|
continue $sm;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
this.
|
|
973
|
-
if (this.
|
|
974
|
-
var oldMatchIndex = this.
|
|
975
|
-
while (this.
|
|
976
|
-
this.
|
|
972
|
+
this.y1o_1 = this.x1o_1.a1o_1.m1i();
|
|
973
|
+
if (this.x1o_1.e1o_1 > 0 && !(this.y1o_1 === this.x1o_1.x1n_1.h1(this.x1o_1.e1o_1))) {
|
|
974
|
+
var oldMatchIndex = this.x1o_1.e1o_1;
|
|
975
|
+
while (this.x1o_1.e1o_1 > 0 && !(this.y1o_1 === this.x1o_1.x1n_1.h1(this.x1o_1.e1o_1))) {
|
|
976
|
+
this.x1o_1.e1o_1 = this.x1o_1.b1o_1[this.x1o_1.e1o_1 - 1 | 0];
|
|
977
977
|
}
|
|
978
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
979
|
-
checkBounds(this.
|
|
980
|
-
var tmp_0 = this.
|
|
981
|
-
var tmp_1 = this.
|
|
982
|
-
var tmp_2 = this.
|
|
983
|
-
tmp_0.
|
|
984
|
-
if (this.
|
|
985
|
-
this.
|
|
986
|
-
suspendResult = writeByte(this.
|
|
978
|
+
var retained = fromInt(oldMatchIndex - this.x1o_1.e1o_1 | 0);
|
|
979
|
+
checkBounds(this.x1o_1, retained);
|
|
980
|
+
var tmp_0 = this.x1o_1;
|
|
981
|
+
var tmp_1 = this.x1o_1.d1o_1;
|
|
982
|
+
var tmp_2 = this.x1o_1.y1n_1.n1n();
|
|
983
|
+
tmp_0.d1o_1 = add(tmp_1, this.x1o_1.c1o_1.j1j(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
984
|
+
if (this.x1o_1.e1o_1 === 0 && !(this.y1o_1 === this.x1o_1.x1n_1.h1(this.x1o_1.e1o_1))) {
|
|
985
|
+
this.z8_1 = 6;
|
|
986
|
+
suspendResult = writeByte(this.x1o_1.y1n_1, this.y1o_1, this);
|
|
987
987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
988
988
|
return suspendResult;
|
|
989
989
|
}
|
|
990
990
|
continue $sm;
|
|
991
991
|
} else {
|
|
992
|
-
this.
|
|
992
|
+
this.z8_1 = 4;
|
|
993
993
|
continue $sm;
|
|
994
994
|
}
|
|
995
995
|
} else {
|
|
996
|
-
this.
|
|
996
|
+
this.z8_1 = 5;
|
|
997
997
|
continue $sm;
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
1000
|
case 4:
|
|
1001
|
-
this.
|
|
1001
|
+
this.z8_1 = 5;
|
|
1002
1002
|
continue $sm;
|
|
1003
1003
|
case 5:
|
|
1004
|
-
this.
|
|
1005
|
-
if (this.
|
|
1004
|
+
this.x1o_1.e1o_1 = this.x1o_1.e1o_1 + 1 | 0;
|
|
1005
|
+
if (this.x1o_1.e1o_1 === this.x1o_1.x1n_1.g1()) {
|
|
1006
1006
|
return true;
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1009
|
+
this.x1o_1.c1o_1.c1k(this.y1o_1);
|
|
1010
|
+
this.z8_1 = 1;
|
|
1011
1011
|
continue $sm;
|
|
1012
1012
|
case 6:
|
|
1013
|
-
var _unary__edvuaz = this.
|
|
1014
|
-
this.
|
|
1013
|
+
var _unary__edvuaz = this.x1o_1.d1o_1;
|
|
1014
|
+
this.x1o_1.d1o_1 = add(_unary__edvuaz, get_ONE());
|
|
1015
1015
|
return false;
|
|
1016
1016
|
case 7:
|
|
1017
1017
|
return false;
|
|
1018
1018
|
case 8:
|
|
1019
|
-
throw this.
|
|
1019
|
+
throw this.c9_1;
|
|
1020
1020
|
}
|
|
1021
1021
|
} catch ($p) {
|
|
1022
1022
|
var e = $p;
|
|
1023
|
-
if (this.
|
|
1023
|
+
if (this.a9_1 === 8) {
|
|
1024
1024
|
throw e;
|
|
1025
1025
|
} else {
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1026
|
+
this.z8_1 = this.a9_1;
|
|
1027
|
+
this.c9_1 = e;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
while (true);
|
|
1031
1031
|
};
|
|
1032
1032
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1033
1033
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1034
|
-
this.
|
|
1035
|
-
this.
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1034
|
+
this.w1n_1 = channel;
|
|
1035
|
+
this.x1n_1 = matchString;
|
|
1036
|
+
this.y1n_1 = writeChannel;
|
|
1037
|
+
this.z1n_1 = limit;
|
|
1038
1038
|
// Inline function 'kotlin.require' call
|
|
1039
|
-
if (!(this.
|
|
1039
|
+
if (!(this.x1n_1.g1() > 0)) {
|
|
1040
1040
|
var message = 'Empty match string not permitted for scanning';
|
|
1041
1041
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1042
1042
|
}
|
|
1043
|
-
this.
|
|
1044
|
-
this.
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1043
|
+
this.a1o_1 = this.w1n_1.k1n();
|
|
1044
|
+
this.b1o_1 = buildPartialMatchTable(this);
|
|
1045
|
+
this.c1o_1 = new Buffer();
|
|
1046
|
+
this.d1o_1 = 0n;
|
|
1047
|
+
this.e1o_1 = 0;
|
|
1048
1048
|
}
|
|
1049
|
-
protoOf(ByteChannelScanner).
|
|
1049
|
+
protoOf(ByteChannelScanner).l1p = function (ignoreMissing, $completion) {
|
|
1050
1050
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1051
|
-
tmp.
|
|
1052
|
-
tmp.
|
|
1053
|
-
return tmp.
|
|
1051
|
+
tmp.b9_1 = Unit_instance;
|
|
1052
|
+
tmp.c9_1 = null;
|
|
1053
|
+
return tmp.h9();
|
|
1054
1054
|
};
|
|
1055
1055
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1056
|
-
this.
|
|
1057
|
-
this.
|
|
1056
|
+
this.m1p_1 = null;
|
|
1057
|
+
this.n1p_1 = new Buffer();
|
|
1058
1058
|
}
|
|
1059
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1060
|
-
return this.
|
|
1059
|
+
protoOf(ByteReadChannel$Companion$Empty$1).p1n = function () {
|
|
1060
|
+
return this.m1p_1;
|
|
1061
1061
|
};
|
|
1062
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1062
|
+
protoOf(ByteReadChannel$Companion$Empty$1).r1n = function () {
|
|
1063
1063
|
return true;
|
|
1064
1064
|
};
|
|
1065
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1066
|
-
return this.
|
|
1065
|
+
protoOf(ByteReadChannel$Companion$Empty$1).k1n = function () {
|
|
1066
|
+
return this.n1p_1;
|
|
1067
1067
|
};
|
|
1068
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1068
|
+
protoOf(ByteReadChannel$Companion$Empty$1).s1n = function (min, $completion) {
|
|
1069
1069
|
return false;
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1071
|
+
protoOf(ByteReadChannel$Companion$Empty$1).v1n = function (cause) {
|
|
1072
1072
|
};
|
|
1073
1073
|
function Companion_0() {
|
|
1074
1074
|
Companion_instance_1 = this;
|
|
1075
1075
|
var tmp = this;
|
|
1076
|
-
tmp.
|
|
1076
|
+
tmp.o1p_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1077
1077
|
}
|
|
1078
1078
|
var Companion_instance_1;
|
|
1079
1079
|
function Companion_getInstance_0() {
|
|
@@ -1084,63 +1084,63 @@
|
|
|
1084
1084
|
function ByteReadChannel_1() {
|
|
1085
1085
|
}
|
|
1086
1086
|
function cancel_0(_this__u8e3s4) {
|
|
1087
|
-
_this__u8e3s4.
|
|
1087
|
+
_this__u8e3s4.v1n(IOException_init_$Create$('Channel was cancelled'));
|
|
1088
1088
|
}
|
|
1089
1089
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1090
1090
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1091
|
-
tmp.
|
|
1092
|
-
tmp.
|
|
1093
|
-
return tmp.
|
|
1091
|
+
tmp.b9_1 = Unit_instance;
|
|
1092
|
+
tmp.c9_1 = null;
|
|
1093
|
+
return tmp.h9();
|
|
1094
1094
|
}
|
|
1095
1095
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1096
1096
|
offset = offset === VOID ? 0 : offset;
|
|
1097
1097
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1098
1098
|
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1099
|
-
tmp.
|
|
1100
|
-
tmp.
|
|
1101
|
-
return tmp.
|
|
1099
|
+
tmp.b9_1 = Unit_instance;
|
|
1100
|
+
tmp.c9_1 = null;
|
|
1101
|
+
return tmp.h9();
|
|
1102
1102
|
}
|
|
1103
1103
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1104
1104
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
1105
|
-
tmp.
|
|
1106
|
-
tmp.
|
|
1107
|
-
return tmp.
|
|
1105
|
+
tmp.b9_1 = Unit_instance;
|
|
1106
|
+
tmp.c9_1 = null;
|
|
1107
|
+
return tmp.h9();
|
|
1108
1108
|
}
|
|
1109
1109
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
1110
1110
|
var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
|
|
1111
|
-
tmp.
|
|
1112
|
-
tmp.
|
|
1113
|
-
return tmp.
|
|
1111
|
+
tmp.b9_1 = Unit_instance;
|
|
1112
|
+
tmp.c9_1 = null;
|
|
1113
|
+
return tmp.h9();
|
|
1114
1114
|
}
|
|
1115
1115
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
1116
1116
|
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
|
|
1117
|
-
tmp.
|
|
1118
|
-
tmp.
|
|
1119
|
-
return tmp.
|
|
1117
|
+
tmp.b9_1 = Unit_instance;
|
|
1118
|
+
tmp.c9_1 = null;
|
|
1119
|
+
return tmp.h9();
|
|
1120
1120
|
}
|
|
1121
1121
|
function discard(_this__u8e3s4, max, $completion) {
|
|
1122
1122
|
max = max === VOID ? 9223372036854775807n : max;
|
|
1123
1123
|
var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
|
|
1124
|
-
tmp.
|
|
1125
|
-
tmp.
|
|
1126
|
-
return tmp.
|
|
1124
|
+
tmp.b9_1 = Unit_instance;
|
|
1125
|
+
tmp.c9_1 = null;
|
|
1126
|
+
return tmp.h9();
|
|
1127
1127
|
}
|
|
1128
1128
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1129
1129
|
var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
|
|
1130
|
-
tmp.
|
|
1131
|
-
tmp.
|
|
1132
|
-
return tmp.
|
|
1130
|
+
tmp.b9_1 = Unit_instance;
|
|
1131
|
+
tmp.c9_1 = null;
|
|
1132
|
+
return tmp.h9();
|
|
1133
1133
|
}
|
|
1134
1134
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
1135
1135
|
var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
|
|
1136
|
-
tmp.
|
|
1137
|
-
tmp.
|
|
1138
|
-
return tmp.
|
|
1136
|
+
tmp.b9_1 = Unit_instance;
|
|
1137
|
+
tmp.c9_1 = null;
|
|
1138
|
+
return tmp.h9();
|
|
1139
1139
|
}
|
|
1140
1140
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1141
1141
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1142
1142
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1143
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1143
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).l1p(ignoreMissing, $completion);
|
|
1144
1144
|
}
|
|
1145
1145
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1146
1146
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
@@ -1154,12 +1154,12 @@
|
|
|
1154
1154
|
}
|
|
1155
1155
|
function readRemaining_0(_this__u8e3s4, max, $completion) {
|
|
1156
1156
|
var tmp = new $readRemainingCOROUTINE$_0(_this__u8e3s4, max, $completion);
|
|
1157
|
-
tmp.
|
|
1158
|
-
tmp.
|
|
1159
|
-
return tmp.
|
|
1157
|
+
tmp.b9_1 = Unit_instance;
|
|
1158
|
+
tmp.c9_1 = null;
|
|
1159
|
+
return tmp.h9();
|
|
1160
1160
|
}
|
|
1161
1161
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1162
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1162
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1n();
|
|
1163
1163
|
if (tmp0_safe_receiver == null)
|
|
1164
1164
|
null;
|
|
1165
1165
|
else {
|
|
@@ -1168,7 +1168,7 @@
|
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1171
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1171
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1n();
|
|
1172
1172
|
if (tmp0_safe_receiver == null)
|
|
1173
1173
|
null;
|
|
1174
1174
|
else {
|
|
@@ -1177,19 +1177,19 @@
|
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
1179
1179
|
function get_availableForRead(_this__u8e3s4) {
|
|
1180
|
-
return convertToInt(_this__u8e3s4.
|
|
1180
|
+
return convertToInt(_this__u8e3s4.k1n().i1i().g1());
|
|
1181
1181
|
}
|
|
1182
1182
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1183
1183
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
1184
|
-
tmp.
|
|
1185
|
-
tmp.
|
|
1186
|
-
return tmp.
|
|
1184
|
+
tmp.b9_1 = Unit_instance;
|
|
1185
|
+
tmp.c9_1 = null;
|
|
1186
|
+
return tmp.h9();
|
|
1187
1187
|
}
|
|
1188
1188
|
function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
|
|
1189
1189
|
var tmp = new $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion);
|
|
1190
|
-
tmp.
|
|
1191
|
-
tmp.
|
|
1192
|
-
return tmp.
|
|
1190
|
+
tmp.b9_1 = Unit_instance;
|
|
1191
|
+
tmp.c9_1 = null;
|
|
1192
|
+
return tmp.h9();
|
|
1193
1193
|
}
|
|
1194
1194
|
function throwEndOfStreamException(consumed) {
|
|
1195
1195
|
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' characters');
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1199
1199
|
}
|
|
1200
1200
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1201
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1201
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1n();
|
|
1202
1202
|
if (tmp0_safe_receiver == null)
|
|
1203
1203
|
null;
|
|
1204
1204
|
else {
|
|
@@ -1237,178 +1237,178 @@
|
|
|
1237
1237
|
}
|
|
1238
1238
|
function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
|
|
1239
1239
|
var tmp = new $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion);
|
|
1240
|
-
tmp.
|
|
1241
|
-
tmp.
|
|
1242
|
-
return tmp.
|
|
1240
|
+
tmp.b9_1 = Unit_instance;
|
|
1241
|
+
tmp.c9_1 = null;
|
|
1242
|
+
return tmp.h9();
|
|
1243
1243
|
}
|
|
1244
1244
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1245
1245
|
CoroutineImpl.call(this, resultContinuation);
|
|
1246
|
-
this.
|
|
1246
|
+
this.x1p_1 = _this__u8e3s4;
|
|
1247
1247
|
}
|
|
1248
|
-
protoOf($readBufferCOROUTINE$).
|
|
1249
|
-
var suspendResult = this.
|
|
1248
|
+
protoOf($readBufferCOROUTINE$).h9 = function () {
|
|
1249
|
+
var suspendResult = this.b9_1;
|
|
1250
1250
|
$sm: do
|
|
1251
1251
|
try {
|
|
1252
|
-
var tmp = this.
|
|
1252
|
+
var tmp = this.z8_1;
|
|
1253
1253
|
switch (tmp) {
|
|
1254
1254
|
case 0:
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1255
|
+
this.a9_1 = 4;
|
|
1256
|
+
this.y1p_1 = new Buffer();
|
|
1257
|
+
this.z8_1 = 1;
|
|
1258
1258
|
continue $sm;
|
|
1259
1259
|
case 1:
|
|
1260
|
-
if (!!this.
|
|
1261
|
-
this.
|
|
1260
|
+
if (!!this.x1p_1.r1n()) {
|
|
1261
|
+
this.z8_1 = 3;
|
|
1262
1262
|
continue $sm;
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1267
|
-
suspendResult = this.
|
|
1265
|
+
this.y1p_1.b1k(this.x1p_1.k1n());
|
|
1266
|
+
this.z8_1 = 2;
|
|
1267
|
+
suspendResult = this.x1p_1.t1n(VOID, this);
|
|
1268
1268
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1269
1269
|
return suspendResult;
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
1272
|
continue $sm;
|
|
1273
1273
|
case 2:
|
|
1274
|
-
this.
|
|
1274
|
+
this.z8_1 = 1;
|
|
1275
1275
|
continue $sm;
|
|
1276
1276
|
case 3:
|
|
1277
|
-
var tmp0_safe_receiver = this.
|
|
1277
|
+
var tmp0_safe_receiver = this.x1p_1.p1n();
|
|
1278
1278
|
if (tmp0_safe_receiver == null)
|
|
1279
1279
|
null;
|
|
1280
1280
|
else {
|
|
1281
1281
|
throw tmp0_safe_receiver;
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
-
return this.
|
|
1284
|
+
return this.y1p_1;
|
|
1285
1285
|
case 4:
|
|
1286
|
-
throw this.
|
|
1286
|
+
throw this.c9_1;
|
|
1287
1287
|
}
|
|
1288
1288
|
} catch ($p) {
|
|
1289
1289
|
var e = $p;
|
|
1290
|
-
if (this.
|
|
1290
|
+
if (this.a9_1 === 4) {
|
|
1291
1291
|
throw e;
|
|
1292
1292
|
} else {
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1293
|
+
this.z8_1 = this.a9_1;
|
|
1294
|
+
this.c9_1 = e;
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
while (true);
|
|
1298
1298
|
};
|
|
1299
1299
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1300
1300
|
CoroutineImpl.call(this, resultContinuation);
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1301
|
+
this.h1q_1 = _this__u8e3s4;
|
|
1302
|
+
this.i1q_1 = buffer;
|
|
1303
|
+
this.j1q_1 = offset;
|
|
1304
|
+
this.k1q_1 = length;
|
|
1305
1305
|
}
|
|
1306
|
-
protoOf($readAvailableCOROUTINE$).
|
|
1307
|
-
var suspendResult = this.
|
|
1306
|
+
protoOf($readAvailableCOROUTINE$).h9 = function () {
|
|
1307
|
+
var suspendResult = this.b9_1;
|
|
1308
1308
|
$sm: do
|
|
1309
1309
|
try {
|
|
1310
|
-
var tmp = this.
|
|
1310
|
+
var tmp = this.z8_1;
|
|
1311
1311
|
switch (tmp) {
|
|
1312
1312
|
case 0:
|
|
1313
|
-
this.
|
|
1314
|
-
if (this.
|
|
1313
|
+
this.a9_1 = 3;
|
|
1314
|
+
if (this.h1q_1.r1n())
|
|
1315
1315
|
return -1;
|
|
1316
|
-
if (this.
|
|
1317
|
-
this.
|
|
1318
|
-
suspendResult = this.
|
|
1316
|
+
if (this.h1q_1.k1n().j1i()) {
|
|
1317
|
+
this.z8_1 = 1;
|
|
1318
|
+
suspendResult = this.h1q_1.t1n(VOID, this);
|
|
1319
1319
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1320
1320
|
return suspendResult;
|
|
1321
1321
|
}
|
|
1322
1322
|
continue $sm;
|
|
1323
1323
|
} else {
|
|
1324
|
-
this.
|
|
1324
|
+
this.z8_1 = 2;
|
|
1325
1325
|
continue $sm;
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
1328
|
case 1:
|
|
1329
|
-
this.
|
|
1329
|
+
this.z8_1 = 2;
|
|
1330
1330
|
continue $sm;
|
|
1331
1331
|
case 2:
|
|
1332
|
-
if (this.
|
|
1332
|
+
if (this.h1q_1.r1n())
|
|
1333
1333
|
return -1;
|
|
1334
|
-
return readAvailable_0(this.
|
|
1334
|
+
return readAvailable_0(this.h1q_1.k1n(), this.i1q_1, this.j1q_1, this.k1q_1);
|
|
1335
1335
|
case 3:
|
|
1336
|
-
throw this.
|
|
1336
|
+
throw this.c9_1;
|
|
1337
1337
|
}
|
|
1338
1338
|
} catch ($p) {
|
|
1339
1339
|
var e = $p;
|
|
1340
|
-
if (this.
|
|
1340
|
+
if (this.a9_1 === 3) {
|
|
1341
1341
|
throw e;
|
|
1342
1342
|
} else {
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1343
|
+
this.z8_1 = this.a9_1;
|
|
1344
|
+
this.c9_1 = e;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
while (true);
|
|
1348
1348
|
};
|
|
1349
1349
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1350
1350
|
CoroutineImpl.call(this, resultContinuation);
|
|
1351
|
-
this.
|
|
1351
|
+
this.t1q_1 = _this__u8e3s4;
|
|
1352
1352
|
}
|
|
1353
|
-
protoOf($readRemainingCOROUTINE$).
|
|
1354
|
-
var suspendResult = this.
|
|
1353
|
+
protoOf($readRemainingCOROUTINE$).h9 = function () {
|
|
1354
|
+
var suspendResult = this.b9_1;
|
|
1355
1355
|
$sm: do
|
|
1356
1356
|
try {
|
|
1357
|
-
var tmp = this.
|
|
1357
|
+
var tmp = this.z8_1;
|
|
1358
1358
|
switch (tmp) {
|
|
1359
1359
|
case 0:
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1360
|
+
this.a9_1 = 4;
|
|
1361
|
+
this.u1q_1 = BytePacketBuilder();
|
|
1362
|
+
this.z8_1 = 1;
|
|
1363
1363
|
continue $sm;
|
|
1364
1364
|
case 1:
|
|
1365
|
-
if (!!this.
|
|
1366
|
-
this.
|
|
1365
|
+
if (!!this.t1q_1.r1n()) {
|
|
1366
|
+
this.z8_1 = 3;
|
|
1367
1367
|
continue $sm;
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
suspendResult = this.
|
|
1370
|
+
this.u1q_1.b1k(this.t1q_1.k1n());
|
|
1371
|
+
this.z8_1 = 2;
|
|
1372
|
+
suspendResult = this.t1q_1.t1n(VOID, this);
|
|
1373
1373
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1374
1374
|
return suspendResult;
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
1377
|
continue $sm;
|
|
1378
1378
|
case 2:
|
|
1379
|
-
this.
|
|
1379
|
+
this.z8_1 = 1;
|
|
1380
1380
|
continue $sm;
|
|
1381
1381
|
case 3:
|
|
1382
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1383
|
-
return this.
|
|
1382
|
+
rethrowCloseCauseIfNeeded_0(this.t1q_1);
|
|
1383
|
+
return this.u1q_1.i1i();
|
|
1384
1384
|
case 4:
|
|
1385
|
-
throw this.
|
|
1385
|
+
throw this.c9_1;
|
|
1386
1386
|
}
|
|
1387
1387
|
} catch ($p) {
|
|
1388
1388
|
var e = $p;
|
|
1389
|
-
if (this.
|
|
1389
|
+
if (this.a9_1 === 4) {
|
|
1390
1390
|
throw e;
|
|
1391
1391
|
} else {
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1392
|
+
this.z8_1 = this.a9_1;
|
|
1393
|
+
this.c9_1 = e;
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
while (true);
|
|
1397
1397
|
};
|
|
1398
1398
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1399
1399
|
CoroutineImpl.call(this, resultContinuation);
|
|
1400
|
-
this.
|
|
1400
|
+
this.d1r_1 = _this__u8e3s4;
|
|
1401
1401
|
}
|
|
1402
|
-
protoOf($toByteArrayCOROUTINE$).
|
|
1403
|
-
var suspendResult = this.
|
|
1402
|
+
protoOf($toByteArrayCOROUTINE$).h9 = function () {
|
|
1403
|
+
var suspendResult = this.b9_1;
|
|
1404
1404
|
$sm: do
|
|
1405
1405
|
try {
|
|
1406
|
-
var tmp = this.
|
|
1406
|
+
var tmp = this.z8_1;
|
|
1407
1407
|
switch (tmp) {
|
|
1408
1408
|
case 0:
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
suspendResult = readBuffer(this.
|
|
1409
|
+
this.a9_1 = 2;
|
|
1410
|
+
this.z8_1 = 1;
|
|
1411
|
+
suspendResult = readBuffer(this.d1r_1, this);
|
|
1412
1412
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1413
1413
|
return suspendResult;
|
|
1414
1414
|
}
|
|
@@ -1418,207 +1418,207 @@
|
|
|
1418
1418
|
var ARGUMENT = suspendResult;
|
|
1419
1419
|
return readBytes(ARGUMENT);
|
|
1420
1420
|
case 2:
|
|
1421
|
-
throw this.
|
|
1421
|
+
throw this.c9_1;
|
|
1422
1422
|
}
|
|
1423
1423
|
} catch ($p) {
|
|
1424
1424
|
var e = $p;
|
|
1425
|
-
if (this.
|
|
1425
|
+
if (this.a9_1 === 2) {
|
|
1426
1426
|
throw e;
|
|
1427
1427
|
} else {
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1428
|
+
this.z8_1 = this.a9_1;
|
|
1429
|
+
this.c9_1 = e;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
while (true);
|
|
1433
1433
|
};
|
|
1434
1434
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1435
1435
|
CoroutineImpl.call(this, resultContinuation);
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1436
|
+
this.m1r_1 = _this__u8e3s4;
|
|
1437
|
+
this.n1r_1 = channel;
|
|
1438
|
+
this.o1r_1 = limit;
|
|
1439
1439
|
}
|
|
1440
|
-
protoOf($copyToCOROUTINE$).
|
|
1441
|
-
var suspendResult = this.
|
|
1440
|
+
protoOf($copyToCOROUTINE$).h9 = function () {
|
|
1441
|
+
var suspendResult = this.b9_1;
|
|
1442
1442
|
$sm: do
|
|
1443
1443
|
try {
|
|
1444
|
-
var tmp = this.
|
|
1444
|
+
var tmp = this.z8_1;
|
|
1445
1445
|
switch (tmp) {
|
|
1446
1446
|
case 0:
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1447
|
+
this.a9_1 = 12;
|
|
1448
|
+
this.p1r_1 = this.o1r_1;
|
|
1449
|
+
this.z8_1 = 1;
|
|
1450
1450
|
continue $sm;
|
|
1451
1451
|
case 1:
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1452
|
+
this.a9_1 = 8;
|
|
1453
|
+
this.a9_1 = 7;
|
|
1454
|
+
this.z8_1 = 2;
|
|
1455
1455
|
continue $sm;
|
|
1456
1456
|
case 2:
|
|
1457
|
-
if (!(!this.
|
|
1458
|
-
this.
|
|
1457
|
+
if (!(!this.m1r_1.r1n() && this.p1r_1 > 0n)) {
|
|
1458
|
+
this.z8_1 = 6;
|
|
1459
1459
|
continue $sm;
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
|
-
if (this.
|
|
1463
|
-
this.
|
|
1464
|
-
suspendResult = this.
|
|
1462
|
+
if (this.m1r_1.k1n().j1i()) {
|
|
1463
|
+
this.z8_1 = 3;
|
|
1464
|
+
suspendResult = this.m1r_1.t1n(VOID, this);
|
|
1465
1465
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1466
1466
|
return suspendResult;
|
|
1467
1467
|
}
|
|
1468
1468
|
continue $sm;
|
|
1469
1469
|
} else {
|
|
1470
|
-
this.
|
|
1470
|
+
this.z8_1 = 4;
|
|
1471
1471
|
continue $sm;
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
1474
|
case 3:
|
|
1475
|
-
this.
|
|
1475
|
+
this.z8_1 = 4;
|
|
1476
1476
|
continue $sm;
|
|
1477
1477
|
case 4:
|
|
1478
|
-
var tmp0 = this.
|
|
1479
|
-
var b = get_remaining(this.
|
|
1478
|
+
var tmp0 = this.p1r_1;
|
|
1479
|
+
var b = get_remaining(this.m1r_1.k1n());
|
|
1480
1480
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1481
|
-
this.
|
|
1482
|
-
this.
|
|
1483
|
-
this.
|
|
1484
|
-
suspendResult = this.
|
|
1481
|
+
this.m1r_1.k1n().l1j(this.n1r_1.n1n(), count);
|
|
1482
|
+
this.p1r_1 = subtract(this.p1r_1, count);
|
|
1483
|
+
this.z8_1 = 5;
|
|
1484
|
+
suspendResult = this.n1r_1.i1n(this);
|
|
1485
1485
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1486
1486
|
return suspendResult;
|
|
1487
1487
|
}
|
|
1488
1488
|
|
|
1489
1489
|
continue $sm;
|
|
1490
1490
|
case 5:
|
|
1491
|
-
this.
|
|
1491
|
+
this.z8_1 = 2;
|
|
1492
1492
|
continue $sm;
|
|
1493
1493
|
case 6:
|
|
1494
|
-
this.
|
|
1495
|
-
this.
|
|
1494
|
+
this.a9_1 = 12;
|
|
1495
|
+
this.z8_1 = 10;
|
|
1496
1496
|
continue $sm;
|
|
1497
1497
|
case 7:
|
|
1498
|
-
this.
|
|
1499
|
-
var tmp_0 = this.
|
|
1498
|
+
this.a9_1 = 8;
|
|
1499
|
+
var tmp_0 = this.c9_1;
|
|
1500
1500
|
if (tmp_0 instanceof Error) {
|
|
1501
|
-
var cause = this.
|
|
1502
|
-
this.
|
|
1503
|
-
close_0(this.
|
|
1501
|
+
var cause = this.c9_1;
|
|
1502
|
+
this.m1r_1.v1n(cause);
|
|
1503
|
+
close_0(this.n1r_1, cause);
|
|
1504
1504
|
throw cause;
|
|
1505
1505
|
} else {
|
|
1506
|
-
throw this.
|
|
1506
|
+
throw this.c9_1;
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
1509
|
case 8:
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1512
|
-
this.
|
|
1513
|
-
suspendResult = this.
|
|
1510
|
+
this.a9_1 = 12;
|
|
1511
|
+
this.q1r_1 = this.c9_1;
|
|
1512
|
+
this.z8_1 = 9;
|
|
1513
|
+
suspendResult = this.n1r_1.i1n(this);
|
|
1514
1514
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1515
1515
|
return suspendResult;
|
|
1516
1516
|
}
|
|
1517
1517
|
|
|
1518
1518
|
continue $sm;
|
|
1519
1519
|
case 9:
|
|
1520
|
-
throw this.
|
|
1520
|
+
throw this.q1r_1;
|
|
1521
1521
|
case 10:
|
|
1522
|
-
this.
|
|
1523
|
-
this.
|
|
1524
|
-
suspendResult = this.
|
|
1522
|
+
this.a9_1 = 12;
|
|
1523
|
+
this.z8_1 = 11;
|
|
1524
|
+
suspendResult = this.n1r_1.i1n(this);
|
|
1525
1525
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1526
1526
|
return suspendResult;
|
|
1527
1527
|
}
|
|
1528
1528
|
|
|
1529
1529
|
continue $sm;
|
|
1530
1530
|
case 11:
|
|
1531
|
-
return subtract(this.
|
|
1531
|
+
return subtract(this.o1r_1, this.p1r_1);
|
|
1532
1532
|
case 12:
|
|
1533
|
-
throw this.
|
|
1533
|
+
throw this.c9_1;
|
|
1534
1534
|
}
|
|
1535
1535
|
} catch ($p) {
|
|
1536
1536
|
var e = $p;
|
|
1537
|
-
if (this.
|
|
1537
|
+
if (this.a9_1 === 12) {
|
|
1538
1538
|
throw e;
|
|
1539
1539
|
} else {
|
|
1540
|
-
this.
|
|
1541
|
-
this.
|
|
1540
|
+
this.z8_1 = this.a9_1;
|
|
1541
|
+
this.c9_1 = e;
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
1544
|
while (true);
|
|
1545
1545
|
};
|
|
1546
1546
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1547
1547
|
CoroutineImpl.call(this, resultContinuation);
|
|
1548
|
-
this.
|
|
1549
|
-
this.
|
|
1548
|
+
this.z1r_1 = _this__u8e3s4;
|
|
1549
|
+
this.a1s_1 = max;
|
|
1550
1550
|
}
|
|
1551
|
-
protoOf($discardCOROUTINE$).
|
|
1552
|
-
var suspendResult = this.
|
|
1551
|
+
protoOf($discardCOROUTINE$).h9 = function () {
|
|
1552
|
+
var suspendResult = this.b9_1;
|
|
1553
1553
|
$sm: do
|
|
1554
1554
|
try {
|
|
1555
|
-
var tmp = this.
|
|
1555
|
+
var tmp = this.z8_1;
|
|
1556
1556
|
switch (tmp) {
|
|
1557
1557
|
case 0:
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1558
|
+
this.a9_1 = 5;
|
|
1559
|
+
this.b1s_1 = this.a1s_1;
|
|
1560
|
+
this.z8_1 = 1;
|
|
1561
1561
|
continue $sm;
|
|
1562
1562
|
case 1:
|
|
1563
|
-
if (!(this.
|
|
1564
|
-
this.
|
|
1563
|
+
if (!(this.b1s_1 > 0n && !this.z1r_1.r1n())) {
|
|
1564
|
+
this.z8_1 = 4;
|
|
1565
1565
|
continue $sm;
|
|
1566
1566
|
}
|
|
1567
1567
|
|
|
1568
|
-
if (get_availableForRead(this.
|
|
1569
|
-
this.
|
|
1570
|
-
suspendResult = this.
|
|
1568
|
+
if (get_availableForRead(this.z1r_1) === 0) {
|
|
1569
|
+
this.z8_1 = 2;
|
|
1570
|
+
suspendResult = this.z1r_1.t1n(VOID, this);
|
|
1571
1571
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1572
1572
|
return suspendResult;
|
|
1573
1573
|
}
|
|
1574
1574
|
continue $sm;
|
|
1575
1575
|
} else {
|
|
1576
|
-
this.
|
|
1576
|
+
this.z8_1 = 3;
|
|
1577
1577
|
continue $sm;
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
1580
|
case 2:
|
|
1581
|
-
this.
|
|
1581
|
+
this.z8_1 = 3;
|
|
1582
1582
|
continue $sm;
|
|
1583
1583
|
case 3:
|
|
1584
|
-
var tmp0 = this.
|
|
1585
|
-
var b = get_remaining(this.
|
|
1584
|
+
var tmp0 = this.b1s_1;
|
|
1585
|
+
var b = get_remaining(this.z1r_1.k1n());
|
|
1586
1586
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1587
|
-
discard_0(this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1587
|
+
discard_0(this.z1r_1.k1n(), count);
|
|
1588
|
+
this.b1s_1 = subtract(this.b1s_1, count);
|
|
1589
|
+
this.z8_1 = 1;
|
|
1590
1590
|
continue $sm;
|
|
1591
1591
|
case 4:
|
|
1592
|
-
return subtract(this.
|
|
1592
|
+
return subtract(this.a1s_1, this.b1s_1);
|
|
1593
1593
|
case 5:
|
|
1594
|
-
throw this.
|
|
1594
|
+
throw this.c9_1;
|
|
1595
1595
|
}
|
|
1596
1596
|
} catch ($p) {
|
|
1597
1597
|
var e = $p;
|
|
1598
|
-
if (this.
|
|
1598
|
+
if (this.a9_1 === 5) {
|
|
1599
1599
|
throw e;
|
|
1600
1600
|
} else {
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1601
|
+
this.z8_1 = this.a9_1;
|
|
1602
|
+
this.c9_1 = e;
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
1605
|
while (true);
|
|
1606
1606
|
};
|
|
1607
1607
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1608
1608
|
CoroutineImpl.call(this, resultContinuation);
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1609
|
+
this.k1s_1 = _this__u8e3s4;
|
|
1610
|
+
this.l1s_1 = byteString;
|
|
1611
1611
|
}
|
|
1612
|
-
protoOf($skipIfFoundCOROUTINE$).
|
|
1613
|
-
var suspendResult = this.
|
|
1612
|
+
protoOf($skipIfFoundCOROUTINE$).h9 = function () {
|
|
1613
|
+
var suspendResult = this.b9_1;
|
|
1614
1614
|
$sm: do
|
|
1615
1615
|
try {
|
|
1616
|
-
var tmp = this.
|
|
1616
|
+
var tmp = this.z8_1;
|
|
1617
1617
|
switch (tmp) {
|
|
1618
1618
|
case 0:
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1621
|
-
suspendResult = peek(this.
|
|
1619
|
+
this.a9_1 = 4;
|
|
1620
|
+
this.z8_1 = 1;
|
|
1621
|
+
suspendResult = peek(this.k1s_1, this.l1s_1.g1(), this);
|
|
1622
1622
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1623
1623
|
return suspendResult;
|
|
1624
1624
|
}
|
|
@@ -1626,15 +1626,15 @@
|
|
|
1626
1626
|
continue $sm;
|
|
1627
1627
|
case 1:
|
|
1628
1628
|
var ARGUMENT = suspendResult;
|
|
1629
|
-
if (equals(ARGUMENT, this.
|
|
1630
|
-
this.
|
|
1631
|
-
suspendResult = discard(this.
|
|
1629
|
+
if (equals(ARGUMENT, this.l1s_1)) {
|
|
1630
|
+
this.z8_1 = 3;
|
|
1631
|
+
suspendResult = discard(this.k1s_1, fromInt(this.l1s_1.g1()), this);
|
|
1632
1632
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1633
1633
|
return suspendResult;
|
|
1634
1634
|
}
|
|
1635
1635
|
continue $sm;
|
|
1636
1636
|
} else {
|
|
1637
|
-
this.
|
|
1637
|
+
this.z8_1 = 2;
|
|
1638
1638
|
continue $sm;
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
@@ -1643,168 +1643,168 @@
|
|
|
1643
1643
|
case 3:
|
|
1644
1644
|
return true;
|
|
1645
1645
|
case 4:
|
|
1646
|
-
throw this.
|
|
1646
|
+
throw this.c9_1;
|
|
1647
1647
|
}
|
|
1648
1648
|
} catch ($p) {
|
|
1649
1649
|
var e = $p;
|
|
1650
|
-
if (this.
|
|
1650
|
+
if (this.a9_1 === 4) {
|
|
1651
1651
|
throw e;
|
|
1652
1652
|
} else {
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1653
|
+
this.z8_1 = this.a9_1;
|
|
1654
|
+
this.c9_1 = e;
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
1657
|
while (true);
|
|
1658
1658
|
};
|
|
1659
1659
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1660
1660
|
CoroutineImpl.call(this, resultContinuation);
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1661
|
+
this.u1s_1 = _this__u8e3s4;
|
|
1662
|
+
this.v1s_1 = packet;
|
|
1663
1663
|
}
|
|
1664
|
-
protoOf($readPacketCOROUTINE$).
|
|
1665
|
-
var suspendResult = this.
|
|
1664
|
+
protoOf($readPacketCOROUTINE$).h9 = function () {
|
|
1665
|
+
var suspendResult = this.b9_1;
|
|
1666
1666
|
$sm: do
|
|
1667
1667
|
try {
|
|
1668
|
-
var tmp = this.
|
|
1668
|
+
var tmp = this.z8_1;
|
|
1669
1669
|
switch (tmp) {
|
|
1670
1670
|
case 0:
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1671
|
+
this.a9_1 = 6;
|
|
1672
|
+
this.w1s_1 = new Buffer();
|
|
1673
|
+
this.z8_1 = 1;
|
|
1674
1674
|
continue $sm;
|
|
1675
1675
|
case 1:
|
|
1676
|
-
if (!(this.
|
|
1677
|
-
this.
|
|
1676
|
+
if (!(this.w1s_1.g1() < fromInt(this.v1s_1))) {
|
|
1677
|
+
this.z8_1 = 5;
|
|
1678
1678
|
continue $sm;
|
|
1679
1679
|
}
|
|
1680
1680
|
|
|
1681
|
-
if (this.
|
|
1682
|
-
this.
|
|
1683
|
-
suspendResult = this.
|
|
1681
|
+
if (this.u1s_1.k1n().j1i()) {
|
|
1682
|
+
this.z8_1 = 2;
|
|
1683
|
+
suspendResult = this.u1s_1.t1n(VOID, this);
|
|
1684
1684
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1685
1685
|
return suspendResult;
|
|
1686
1686
|
}
|
|
1687
1687
|
continue $sm;
|
|
1688
1688
|
} else {
|
|
1689
|
-
this.
|
|
1689
|
+
this.z8_1 = 3;
|
|
1690
1690
|
continue $sm;
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
1693
|
case 2:
|
|
1694
|
-
this.
|
|
1694
|
+
this.z8_1 = 3;
|
|
1695
1695
|
continue $sm;
|
|
1696
1696
|
case 3:
|
|
1697
|
-
if (this.
|
|
1698
|
-
this.
|
|
1697
|
+
if (this.u1s_1.r1n()) {
|
|
1698
|
+
this.z8_1 = 5;
|
|
1699
1699
|
continue $sm;
|
|
1700
1700
|
} else {
|
|
1701
|
-
this.
|
|
1701
|
+
this.z8_1 = 4;
|
|
1702
1702
|
continue $sm;
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
1705
|
case 4:
|
|
1706
|
-
if (get_remaining(this.
|
|
1707
|
-
this.
|
|
1706
|
+
if (get_remaining(this.u1s_1.k1n()) > subtract(numberToLong(this.v1s_1), this.w1s_1.g1())) {
|
|
1707
|
+
this.u1s_1.k1n().l1j(this.w1s_1, subtract(numberToLong(this.v1s_1), this.w1s_1.g1()));
|
|
1708
1708
|
} else {
|
|
1709
|
-
this.
|
|
1709
|
+
this.u1s_1.k1n().m1j(this.w1s_1);
|
|
1710
1710
|
}
|
|
1711
1711
|
|
|
1712
|
-
this.
|
|
1712
|
+
this.z8_1 = 1;
|
|
1713
1713
|
continue $sm;
|
|
1714
1714
|
case 5:
|
|
1715
|
-
if (this.
|
|
1716
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1715
|
+
if (this.w1s_1.g1() < fromInt(this.v1s_1)) {
|
|
1716
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.v1s_1 + ' bytes but only ' + this.w1s_1.g1().toString() + ' available');
|
|
1717
1717
|
}
|
|
1718
1718
|
|
|
1719
|
-
return this.
|
|
1719
|
+
return this.w1s_1;
|
|
1720
1720
|
case 6:
|
|
1721
|
-
throw this.
|
|
1721
|
+
throw this.c9_1;
|
|
1722
1722
|
}
|
|
1723
1723
|
} catch ($p) {
|
|
1724
1724
|
var e = $p;
|
|
1725
|
-
if (this.
|
|
1725
|
+
if (this.a9_1 === 6) {
|
|
1726
1726
|
throw e;
|
|
1727
1727
|
} else {
|
|
1728
|
-
this.
|
|
1729
|
-
this.
|
|
1728
|
+
this.z8_1 = this.a9_1;
|
|
1729
|
+
this.c9_1 = e;
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
1732
|
while (true);
|
|
1733
1733
|
};
|
|
1734
1734
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1735
1735
|
CoroutineImpl.call(this, resultContinuation);
|
|
1736
|
-
this.
|
|
1737
|
-
this.
|
|
1736
|
+
this.f1t_1 = _this__u8e3s4;
|
|
1737
|
+
this.g1t_1 = max;
|
|
1738
1738
|
}
|
|
1739
|
-
protoOf($readRemainingCOROUTINE$_0).
|
|
1740
|
-
var suspendResult = this.
|
|
1739
|
+
protoOf($readRemainingCOROUTINE$_0).h9 = function () {
|
|
1740
|
+
var suspendResult = this.b9_1;
|
|
1741
1741
|
$sm: do
|
|
1742
1742
|
try {
|
|
1743
|
-
var tmp = this.
|
|
1743
|
+
var tmp = this.z8_1;
|
|
1744
1744
|
switch (tmp) {
|
|
1745
1745
|
case 0:
|
|
1746
|
-
this.
|
|
1747
|
-
this.
|
|
1748
|
-
this.
|
|
1749
|
-
this.
|
|
1746
|
+
this.a9_1 = 4;
|
|
1747
|
+
this.h1t_1 = BytePacketBuilder();
|
|
1748
|
+
this.i1t_1 = this.g1t_1;
|
|
1749
|
+
this.z8_1 = 1;
|
|
1750
1750
|
continue $sm;
|
|
1751
1751
|
case 1:
|
|
1752
|
-
if (!(!this.
|
|
1753
|
-
this.
|
|
1752
|
+
if (!(!this.f1t_1.r1n() && this.i1t_1 > 0n)) {
|
|
1753
|
+
this.z8_1 = 3;
|
|
1754
1754
|
continue $sm;
|
|
1755
1755
|
}
|
|
1756
1756
|
|
|
1757
|
-
if (this.
|
|
1758
|
-
this.
|
|
1759
|
-
this.
|
|
1757
|
+
if (this.i1t_1 >= get_remaining(this.f1t_1.k1n())) {
|
|
1758
|
+
this.i1t_1 = subtract(this.i1t_1, get_remaining(this.f1t_1.k1n()));
|
|
1759
|
+
this.f1t_1.k1n().m1j(this.h1t_1);
|
|
1760
1760
|
} else {
|
|
1761
|
-
this.
|
|
1762
|
-
this.
|
|
1761
|
+
this.f1t_1.k1n().l1j(this.h1t_1, this.i1t_1);
|
|
1762
|
+
this.i1t_1 = 0n;
|
|
1763
1763
|
}
|
|
1764
1764
|
|
|
1765
|
-
this.
|
|
1766
|
-
suspendResult = this.
|
|
1765
|
+
this.z8_1 = 2;
|
|
1766
|
+
suspendResult = this.f1t_1.t1n(VOID, this);
|
|
1767
1767
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1768
1768
|
return suspendResult;
|
|
1769
1769
|
}
|
|
1770
1770
|
|
|
1771
1771
|
continue $sm;
|
|
1772
1772
|
case 2:
|
|
1773
|
-
this.
|
|
1773
|
+
this.z8_1 = 1;
|
|
1774
1774
|
continue $sm;
|
|
1775
1775
|
case 3:
|
|
1776
|
-
return this.
|
|
1776
|
+
return this.h1t_1.i1i();
|
|
1777
1777
|
case 4:
|
|
1778
|
-
throw this.
|
|
1778
|
+
throw this.c9_1;
|
|
1779
1779
|
}
|
|
1780
1780
|
} catch ($p) {
|
|
1781
1781
|
var e = $p;
|
|
1782
|
-
if (this.
|
|
1782
|
+
if (this.a9_1 === 4) {
|
|
1783
1783
|
throw e;
|
|
1784
1784
|
} else {
|
|
1785
|
-
this.
|
|
1786
|
-
this.
|
|
1785
|
+
this.z8_1 = this.a9_1;
|
|
1786
|
+
this.c9_1 = e;
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
1789
|
while (true);
|
|
1790
1790
|
};
|
|
1791
1791
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1792
1792
|
CoroutineImpl.call(this, resultContinuation);
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1793
|
+
this.r1t_1 = _this__u8e3s4;
|
|
1794
|
+
this.s1t_1 = count;
|
|
1795
1795
|
}
|
|
1796
|
-
protoOf($peekCOROUTINE$).
|
|
1797
|
-
var suspendResult = this.
|
|
1796
|
+
protoOf($peekCOROUTINE$).h9 = function () {
|
|
1797
|
+
var suspendResult = this.b9_1;
|
|
1798
1798
|
$sm: do
|
|
1799
1799
|
try {
|
|
1800
|
-
var tmp = this.
|
|
1800
|
+
var tmp = this.z8_1;
|
|
1801
1801
|
switch (tmp) {
|
|
1802
1802
|
case 0:
|
|
1803
|
-
this.
|
|
1804
|
-
if (this.
|
|
1803
|
+
this.a9_1 = 3;
|
|
1804
|
+
if (this.r1t_1.r1n())
|
|
1805
1805
|
return null;
|
|
1806
|
-
this.
|
|
1807
|
-
suspendResult = this.
|
|
1806
|
+
this.z8_1 = 1;
|
|
1807
|
+
suspendResult = this.r1t_1.s1n(this.s1t_1, this);
|
|
1808
1808
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1809
1809
|
return suspendResult;
|
|
1810
1810
|
}
|
|
@@ -1814,272 +1814,272 @@
|
|
|
1814
1814
|
if (!suspendResult) {
|
|
1815
1815
|
return null;
|
|
1816
1816
|
} else {
|
|
1817
|
-
this.
|
|
1817
|
+
this.z8_1 = 2;
|
|
1818
1818
|
continue $sm;
|
|
1819
1819
|
}
|
|
1820
1820
|
|
|
1821
1821
|
case 2:
|
|
1822
|
-
return readByteString(this.
|
|
1822
|
+
return readByteString(this.r1t_1.k1n().n1j(), this.s1t_1);
|
|
1823
1823
|
case 3:
|
|
1824
|
-
throw this.
|
|
1824
|
+
throw this.c9_1;
|
|
1825
1825
|
}
|
|
1826
1826
|
} catch ($p) {
|
|
1827
1827
|
var e = $p;
|
|
1828
|
-
if (this.
|
|
1828
|
+
if (this.a9_1 === 3) {
|
|
1829
1829
|
throw e;
|
|
1830
1830
|
} else {
|
|
1831
|
-
this.
|
|
1832
|
-
this.
|
|
1831
|
+
this.z8_1 = this.a9_1;
|
|
1832
|
+
this.c9_1 = e;
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
1835
|
while (true);
|
|
1836
1836
|
};
|
|
1837
1837
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1838
1838
|
CoroutineImpl.call(this, resultContinuation);
|
|
1839
|
-
this.
|
|
1840
|
-
this.
|
|
1841
|
-
this.
|
|
1842
|
-
this.
|
|
1843
|
-
this.
|
|
1844
|
-
}
|
|
1845
|
-
protoOf($internalReadLineToCOROUTINE$).
|
|
1846
|
-
var suspendResult = this.
|
|
1839
|
+
this.b1u_1 = _this__u8e3s4;
|
|
1840
|
+
this.c1u_1 = out;
|
|
1841
|
+
this.d1u_1 = limit;
|
|
1842
|
+
this.e1u_1 = lenientLineEnding;
|
|
1843
|
+
this.f1u_1 = throwOnIncompleteLine;
|
|
1844
|
+
}
|
|
1845
|
+
protoOf($internalReadLineToCOROUTINE$).h9 = function () {
|
|
1846
|
+
var suspendResult = this.b9_1;
|
|
1847
1847
|
$sm: do
|
|
1848
1848
|
try {
|
|
1849
|
-
var tmp = this.
|
|
1849
|
+
var tmp = this.z8_1;
|
|
1850
1850
|
switch (tmp) {
|
|
1851
1851
|
case 0:
|
|
1852
|
-
this.
|
|
1853
|
-
this.
|
|
1854
|
-
if (this.
|
|
1855
|
-
this.
|
|
1856
|
-
suspendResult = this.
|
|
1852
|
+
this.a9_1 = 18;
|
|
1853
|
+
this.h1u_1 = this.b1u_1.k1n();
|
|
1854
|
+
if (this.h1u_1.j1i()) {
|
|
1855
|
+
this.z8_1 = 1;
|
|
1856
|
+
suspendResult = this.b1u_1.t1n(VOID, this);
|
|
1857
1857
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1858
1858
|
return suspendResult;
|
|
1859
1859
|
}
|
|
1860
1860
|
continue $sm;
|
|
1861
1861
|
} else {
|
|
1862
|
-
this.
|
|
1862
|
+
this.z8_1 = 2;
|
|
1863
1863
|
continue $sm;
|
|
1864
1864
|
}
|
|
1865
1865
|
|
|
1866
1866
|
case 1:
|
|
1867
|
-
this.
|
|
1867
|
+
this.z8_1 = 2;
|
|
1868
1868
|
continue $sm;
|
|
1869
1869
|
case 2:
|
|
1870
|
-
if (this.
|
|
1870
|
+
if (this.b1u_1.r1n())
|
|
1871
1871
|
return -1n;
|
|
1872
|
-
this.
|
|
1873
|
-
this.
|
|
1872
|
+
this.g1u_1 = {_v: 0n};
|
|
1873
|
+
this.z8_1 = 3;
|
|
1874
1874
|
continue $sm;
|
|
1875
1875
|
case 3:
|
|
1876
|
-
if (!(this.
|
|
1877
|
-
this.
|
|
1876
|
+
if (!(this.g1u_1._v < this.d1u_1 && !this.b1u_1.r1n())) {
|
|
1877
|
+
this.z8_1 = 10;
|
|
1878
1878
|
continue $sm;
|
|
1879
1879
|
}
|
|
1880
1880
|
|
|
1881
|
-
var limitLeft = subtract(this.
|
|
1882
|
-
var lfIndex = indexOf(this.
|
|
1883
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1881
|
+
var limitLeft = subtract(this.d1u_1, this.g1u_1._v);
|
|
1882
|
+
var lfIndex = indexOf(this.h1u_1, 10, VOID, limitLeft);
|
|
1883
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.h1u_1, this.e1u_1, lfIndex, limitLeft);
|
|
1884
1884
|
if (crIndex >= 0n) {
|
|
1885
|
-
internalReadLineTo$transferString(this.
|
|
1886
|
-
discard_0(this.
|
|
1887
|
-
return this.
|
|
1885
|
+
internalReadLineTo$transferString(this.h1u_1, this.c1u_1, this.g1u_1, crIndex);
|
|
1886
|
+
discard_0(this.h1u_1, 1n);
|
|
1887
|
+
return this.g1u_1._v;
|
|
1888
1888
|
}
|
|
1889
1889
|
|
|
1890
1890
|
if (lfIndex === 0n) {
|
|
1891
|
-
discard_0(this.
|
|
1892
|
-
return this.
|
|
1891
|
+
discard_0(this.h1u_1, 1n);
|
|
1892
|
+
return this.g1u_1._v;
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
1895
|
if (lfIndex > 0n) {
|
|
1896
1896
|
var tmp_0;
|
|
1897
|
-
var tmp_1 = this.
|
|
1898
|
-
if (tmp_1.
|
|
1897
|
+
var tmp_1 = this.h1u_1.i1i();
|
|
1898
|
+
if (tmp_1.e1j(subtract(lfIndex, fromInt(1))) === 13) {
|
|
1899
1899
|
tmp_0 = 1n;
|
|
1900
1900
|
} else {
|
|
1901
1901
|
tmp_0 = 0n;
|
|
1902
1902
|
}
|
|
1903
1903
|
var isCrlf = tmp_0;
|
|
1904
|
-
internalReadLineTo$transferString(this.
|
|
1905
|
-
discard_0(this.
|
|
1906
|
-
return this.
|
|
1904
|
+
internalReadLineTo$transferString(this.h1u_1, this.c1u_1, this.g1u_1, subtract(lfIndex, isCrlf));
|
|
1905
|
+
discard_0(this.h1u_1, add(numberToLong(1), isCrlf));
|
|
1906
|
+
return this.g1u_1._v;
|
|
1907
1907
|
}
|
|
1908
1908
|
|
|
1909
|
-
var b = get_remaining(this.
|
|
1909
|
+
var b = get_remaining(this.h1u_1);
|
|
1910
1910
|
var count = limitLeft <= b ? limitLeft : b;
|
|
1911
|
-
var tmp_2 = this.
|
|
1912
|
-
if (tmp_2.
|
|
1913
|
-
internalReadLineTo$transferString(this.
|
|
1914
|
-
this.
|
|
1915
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
1911
|
+
var tmp_2 = this.h1u_1.i1i();
|
|
1912
|
+
if (tmp_2.e1j(subtract(count, fromInt(1))) === 13) {
|
|
1913
|
+
internalReadLineTo$transferString(this.h1u_1, this.c1u_1, this.g1u_1, subtract(count, fromInt(1)));
|
|
1914
|
+
this.z8_1 = 4;
|
|
1915
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.h1u_1, this.b1u_1, this.e1u_1, this);
|
|
1916
1916
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1917
1917
|
return suspendResult;
|
|
1918
1918
|
}
|
|
1919
1919
|
continue $sm;
|
|
1920
1920
|
} else {
|
|
1921
|
-
internalReadLineTo$transferString(this.
|
|
1922
|
-
this.
|
|
1921
|
+
internalReadLineTo$transferString(this.h1u_1, this.c1u_1, this.g1u_1, count);
|
|
1922
|
+
this.z8_1 = 6;
|
|
1923
1923
|
continue $sm;
|
|
1924
1924
|
}
|
|
1925
1925
|
|
|
1926
1926
|
case 4:
|
|
1927
1927
|
if (suspendResult) {
|
|
1928
|
-
return this.
|
|
1928
|
+
return this.g1u_1._v;
|
|
1929
1929
|
} else {
|
|
1930
|
-
this.
|
|
1930
|
+
this.z8_1 = 5;
|
|
1931
1931
|
continue $sm;
|
|
1932
1932
|
}
|
|
1933
1933
|
|
|
1934
1934
|
case 5:
|
|
1935
|
-
internalReadLineTo$transferString(this.
|
|
1936
|
-
this.
|
|
1935
|
+
internalReadLineTo$transferString(this.h1u_1, this.c1u_1, this.g1u_1, 1n);
|
|
1936
|
+
this.z8_1 = 6;
|
|
1937
1937
|
continue $sm;
|
|
1938
1938
|
case 6:
|
|
1939
|
-
if (this.
|
|
1940
|
-
this.
|
|
1941
|
-
suspendResult = this.
|
|
1939
|
+
if (this.g1u_1._v < this.d1u_1 && get_remaining(this.h1u_1) === 0n) {
|
|
1940
|
+
this.z8_1 = 7;
|
|
1941
|
+
suspendResult = this.b1u_1.t1n(VOID, this);
|
|
1942
1942
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1943
1943
|
return suspendResult;
|
|
1944
1944
|
}
|
|
1945
1945
|
continue $sm;
|
|
1946
1946
|
} else {
|
|
1947
|
-
this.
|
|
1948
|
-
this.
|
|
1947
|
+
this.j1u_1 = false;
|
|
1948
|
+
this.z8_1 = 8;
|
|
1949
1949
|
continue $sm;
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
1952
|
case 7:
|
|
1953
|
-
this.
|
|
1954
|
-
this.
|
|
1953
|
+
this.j1u_1 = !suspendResult;
|
|
1954
|
+
this.z8_1 = 8;
|
|
1955
1955
|
continue $sm;
|
|
1956
1956
|
case 8:
|
|
1957
|
-
if (this.
|
|
1958
|
-
this.
|
|
1957
|
+
if (this.j1u_1) {
|
|
1958
|
+
this.z8_1 = 10;
|
|
1959
1959
|
continue $sm;
|
|
1960
1960
|
} else {
|
|
1961
|
-
this.
|
|
1961
|
+
this.z8_1 = 9;
|
|
1962
1962
|
continue $sm;
|
|
1963
1963
|
}
|
|
1964
1964
|
|
|
1965
1965
|
case 9:
|
|
1966
|
-
this.
|
|
1966
|
+
this.z8_1 = 3;
|
|
1967
1967
|
continue $sm;
|
|
1968
1968
|
case 10:
|
|
1969
|
-
if (this.
|
|
1969
|
+
if (this.g1u_1._v === 0n && this.b1u_1.r1n())
|
|
1970
1970
|
return -1n;
|
|
1971
|
-
if (!(this.
|
|
1972
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
1971
|
+
if (!(this.g1u_1._v <= this.d1u_1)) {
|
|
1972
|
+
var message = 'Consumed bytes exceed the limit: ' + this.g1u_1._v.toString() + ' > ' + this.d1u_1.toString() + ". It's an implementation bug, please report it.";
|
|
1973
1973
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1974
1974
|
}
|
|
1975
1975
|
|
|
1976
|
-
if (this.
|
|
1977
|
-
if (this.
|
|
1976
|
+
if (this.g1u_1._v === this.d1u_1) {
|
|
1977
|
+
if (this.d1u_1 === 9223372036854775807n)
|
|
1978
1978
|
throw new TooLongLineException('Max line length exceeded');
|
|
1979
|
-
if (get_remaining(this.
|
|
1980
|
-
this.
|
|
1981
|
-
suspendResult = this.
|
|
1979
|
+
if (get_remaining(this.h1u_1) === 0n) {
|
|
1980
|
+
this.z8_1 = 12;
|
|
1981
|
+
suspendResult = this.b1u_1.t1n(VOID, this);
|
|
1982
1982
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1983
1983
|
return suspendResult;
|
|
1984
1984
|
}
|
|
1985
1985
|
continue $sm;
|
|
1986
1986
|
} else {
|
|
1987
|
-
this.
|
|
1988
|
-
this.
|
|
1987
|
+
this.i1u_1 = false;
|
|
1988
|
+
this.z8_1 = 13;
|
|
1989
1989
|
continue $sm;
|
|
1990
1990
|
}
|
|
1991
1991
|
} else {
|
|
1992
|
-
this.
|
|
1992
|
+
this.z8_1 = 11;
|
|
1993
1993
|
continue $sm;
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
1996
|
case 11:
|
|
1997
|
-
if (this.
|
|
1998
|
-
throwEndOfStreamException(this.
|
|
1997
|
+
if (this.f1u_1) {
|
|
1998
|
+
throwEndOfStreamException(this.g1u_1._v);
|
|
1999
1999
|
}
|
|
2000
2000
|
|
|
2001
|
-
return this.
|
|
2001
|
+
return this.g1u_1._v;
|
|
2002
2002
|
case 12:
|
|
2003
|
-
this.
|
|
2004
|
-
this.
|
|
2003
|
+
this.i1u_1 = !suspendResult;
|
|
2004
|
+
this.z8_1 = 13;
|
|
2005
2005
|
continue $sm;
|
|
2006
2006
|
case 13:
|
|
2007
|
-
if (this.
|
|
2008
|
-
throwEndOfStreamException(this.
|
|
2007
|
+
if (this.i1u_1) {
|
|
2008
|
+
throwEndOfStreamException(this.g1u_1._v);
|
|
2009
2009
|
} else {
|
|
2010
|
-
this.
|
|
2010
|
+
this.z8_1 = 14;
|
|
2011
2011
|
continue $sm;
|
|
2012
2012
|
}
|
|
2013
2013
|
|
|
2014
2014
|
break;
|
|
2015
2015
|
case 14:
|
|
2016
|
-
var tmp0_subject = this.
|
|
2016
|
+
var tmp0_subject = this.h1u_1.i1i().e1j(0n);
|
|
2017
2017
|
if (tmp0_subject === 10) {
|
|
2018
|
-
discard_0(this.
|
|
2019
|
-
return this.
|
|
2018
|
+
discard_0(this.h1u_1, 1n);
|
|
2019
|
+
return this.g1u_1._v;
|
|
2020
2020
|
} else {
|
|
2021
2021
|
if (tmp0_subject === 13) {
|
|
2022
|
-
this.
|
|
2023
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2022
|
+
this.z8_1 = 15;
|
|
2023
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.h1u_1, this.b1u_1, this.e1u_1, this);
|
|
2024
2024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2025
2025
|
return suspendResult;
|
|
2026
2026
|
}
|
|
2027
2027
|
continue $sm;
|
|
2028
2028
|
} else {
|
|
2029
|
-
this.
|
|
2029
|
+
this.z8_1 = 17;
|
|
2030
2030
|
continue $sm;
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
2033
|
|
|
2034
2034
|
case 15:
|
|
2035
2035
|
if (suspendResult) {
|
|
2036
|
-
return this.
|
|
2036
|
+
return this.g1u_1._v;
|
|
2037
2037
|
} else {
|
|
2038
|
-
this.
|
|
2038
|
+
this.z8_1 = 16;
|
|
2039
2039
|
continue $sm;
|
|
2040
2040
|
}
|
|
2041
2041
|
|
|
2042
2042
|
case 16:
|
|
2043
|
-
this.
|
|
2043
|
+
this.z8_1 = 17;
|
|
2044
2044
|
continue $sm;
|
|
2045
2045
|
case 17:
|
|
2046
|
-
throwTooLongLineException(this.
|
|
2046
|
+
throwTooLongLineException(this.d1u_1);
|
|
2047
2047
|
break;
|
|
2048
2048
|
case 18:
|
|
2049
|
-
throw this.
|
|
2049
|
+
throw this.c9_1;
|
|
2050
2050
|
}
|
|
2051
2051
|
} catch ($p) {
|
|
2052
2052
|
var e = $p;
|
|
2053
|
-
if (this.
|
|
2053
|
+
if (this.a9_1 === 18) {
|
|
2054
2054
|
throw e;
|
|
2055
2055
|
} else {
|
|
2056
|
-
this.
|
|
2057
|
-
this.
|
|
2056
|
+
this.z8_1 = this.a9_1;
|
|
2057
|
+
this.c9_1 = e;
|
|
2058
2058
|
}
|
|
2059
2059
|
}
|
|
2060
2060
|
while (true);
|
|
2061
2061
|
};
|
|
2062
2062
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2063
2063
|
CoroutineImpl.call(this, resultContinuation);
|
|
2064
|
-
this.
|
|
2065
|
-
this.
|
|
2066
|
-
this.
|
|
2064
|
+
this.s1u_1 = _this__u8e3s4;
|
|
2065
|
+
this.t1u_1 = $this_internalReadLineTo;
|
|
2066
|
+
this.u1u_1 = $lenientLineEnding;
|
|
2067
2067
|
}
|
|
2068
|
-
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).
|
|
2069
|
-
var suspendResult = this.
|
|
2068
|
+
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).h9 = function () {
|
|
2069
|
+
var suspendResult = this.b9_1;
|
|
2070
2070
|
$sm: do
|
|
2071
2071
|
try {
|
|
2072
|
-
var tmp = this.
|
|
2072
|
+
var tmp = this.z8_1;
|
|
2073
2073
|
switch (tmp) {
|
|
2074
2074
|
case 0:
|
|
2075
|
-
this.
|
|
2076
|
-
if (get_remaining(this.
|
|
2077
|
-
this.
|
|
2078
|
-
this.
|
|
2075
|
+
this.a9_1 = 5;
|
|
2076
|
+
if (get_remaining(this.s1u_1) >= 2n) {
|
|
2077
|
+
this.w1u_1 = true;
|
|
2078
|
+
this.z8_1 = 2;
|
|
2079
2079
|
continue $sm;
|
|
2080
2080
|
} else {
|
|
2081
|
-
this.
|
|
2082
|
-
suspendResult = this.
|
|
2081
|
+
this.z8_1 = 1;
|
|
2082
|
+
suspendResult = this.t1u_1.s1n(2, this);
|
|
2083
2083
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2084
2084
|
return suspendResult;
|
|
2085
2085
|
}
|
|
@@ -2087,46 +2087,46 @@
|
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
2089
|
case 1:
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2090
|
+
this.w1u_1 = suspendResult;
|
|
2091
|
+
this.z8_1 = 2;
|
|
2092
2092
|
continue $sm;
|
|
2093
2093
|
case 2:
|
|
2094
|
-
if (this.
|
|
2095
|
-
this.
|
|
2096
|
-
this.
|
|
2094
|
+
if (this.w1u_1) {
|
|
2095
|
+
this.v1u_1 = this.s1u_1.i1i().e1j(1n) === 10;
|
|
2096
|
+
this.z8_1 = 3;
|
|
2097
2097
|
continue $sm;
|
|
2098
2098
|
} else {
|
|
2099
|
-
this.
|
|
2100
|
-
this.
|
|
2099
|
+
this.v1u_1 = false;
|
|
2100
|
+
this.z8_1 = 3;
|
|
2101
2101
|
continue $sm;
|
|
2102
2102
|
}
|
|
2103
2103
|
|
|
2104
2104
|
case 3:
|
|
2105
|
-
if (this.
|
|
2106
|
-
discard_0(this.
|
|
2105
|
+
if (this.v1u_1) {
|
|
2106
|
+
discard_0(this.s1u_1, 2n);
|
|
2107
2107
|
return true;
|
|
2108
2108
|
} else {
|
|
2109
|
-
this.
|
|
2109
|
+
this.z8_1 = 4;
|
|
2110
2110
|
continue $sm;
|
|
2111
2111
|
}
|
|
2112
2112
|
|
|
2113
2113
|
case 4:
|
|
2114
|
-
if (this.
|
|
2115
|
-
discard_0(this.
|
|
2114
|
+
if (this.u1u_1) {
|
|
2115
|
+
discard_0(this.s1u_1, 1n);
|
|
2116
2116
|
return true;
|
|
2117
2117
|
}
|
|
2118
2118
|
|
|
2119
2119
|
return false;
|
|
2120
2120
|
case 5:
|
|
2121
|
-
throw this.
|
|
2121
|
+
throw this.c9_1;
|
|
2122
2122
|
}
|
|
2123
2123
|
} catch ($p) {
|
|
2124
2124
|
var e = $p;
|
|
2125
|
-
if (this.
|
|
2125
|
+
if (this.a9_1 === 5) {
|
|
2126
2126
|
throw e;
|
|
2127
2127
|
} else {
|
|
2128
|
-
this.
|
|
2129
|
-
this.
|
|
2128
|
+
this.z8_1 = this.a9_1;
|
|
2129
|
+
this.c9_1 = e;
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
2132
|
while (true);
|
|
@@ -2135,50 +2135,50 @@
|
|
|
2135
2135
|
}
|
|
2136
2136
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2137
2137
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2138
|
-
tmp.
|
|
2139
|
-
tmp.
|
|
2140
|
-
return tmp.
|
|
2138
|
+
tmp.b9_1 = Unit_instance;
|
|
2139
|
+
tmp.c9_1 = null;
|
|
2140
|
+
return tmp.h9();
|
|
2141
2141
|
}
|
|
2142
2142
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2143
2143
|
CoroutineImpl.call(this, resultContinuation);
|
|
2144
|
-
this.
|
|
2144
|
+
this.f1v_1 = _this__u8e3s4;
|
|
2145
2145
|
}
|
|
2146
|
-
protoOf($flushIfNeededCOROUTINE$).
|
|
2147
|
-
var suspendResult = this.
|
|
2146
|
+
protoOf($flushIfNeededCOROUTINE$).h9 = function () {
|
|
2147
|
+
var suspendResult = this.b9_1;
|
|
2148
2148
|
$sm: do
|
|
2149
2149
|
try {
|
|
2150
|
-
var tmp = this.
|
|
2150
|
+
var tmp = this.z8_1;
|
|
2151
2151
|
switch (tmp) {
|
|
2152
2152
|
case 0:
|
|
2153
|
-
this.
|
|
2154
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2155
|
-
if (this.
|
|
2156
|
-
this.
|
|
2157
|
-
suspendResult = this.
|
|
2153
|
+
this.a9_1 = 3;
|
|
2154
|
+
rethrowCloseCauseIfNeeded_1(this.f1v_1);
|
|
2155
|
+
if (this.f1v_1.j1n() || get_size(this.f1v_1.n1n()) >= 1048576) {
|
|
2156
|
+
this.z8_1 = 1;
|
|
2157
|
+
suspendResult = this.f1v_1.i1n(this);
|
|
2158
2158
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2159
2159
|
return suspendResult;
|
|
2160
2160
|
}
|
|
2161
2161
|
continue $sm;
|
|
2162
2162
|
} else {
|
|
2163
|
-
this.
|
|
2163
|
+
this.z8_1 = 2;
|
|
2164
2164
|
continue $sm;
|
|
2165
2165
|
}
|
|
2166
2166
|
|
|
2167
2167
|
case 1:
|
|
2168
|
-
this.
|
|
2168
|
+
this.z8_1 = 2;
|
|
2169
2169
|
continue $sm;
|
|
2170
2170
|
case 2:
|
|
2171
2171
|
return Unit_instance;
|
|
2172
2172
|
case 3:
|
|
2173
|
-
throw this.
|
|
2173
|
+
throw this.c9_1;
|
|
2174
2174
|
}
|
|
2175
2175
|
} catch ($p) {
|
|
2176
2176
|
var e = $p;
|
|
2177
|
-
if (this.
|
|
2177
|
+
if (this.a9_1 === 3) {
|
|
2178
2178
|
throw e;
|
|
2179
2179
|
} else {
|
|
2180
|
-
this.
|
|
2181
|
-
this.
|
|
2180
|
+
this.z8_1 = this.a9_1;
|
|
2181
|
+
this.c9_1 = e;
|
|
2182
2182
|
}
|
|
2183
2183
|
}
|
|
2184
2184
|
while (true);
|
|
@@ -2191,15 +2191,15 @@
|
|
|
2191
2191
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2192
2192
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2193
2193
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2194
|
-
_this__u8e3s4.
|
|
2194
|
+
_this__u8e3s4.n1n().s1j(value, startIndex, endIndex);
|
|
2195
2195
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2196
2196
|
}
|
|
2197
2197
|
function WriterJob(channel, job) {
|
|
2198
|
-
this.
|
|
2199
|
-
this.
|
|
2198
|
+
this.g1v_1 = channel;
|
|
2199
|
+
this.h1v_1 = job;
|
|
2200
2200
|
}
|
|
2201
|
-
protoOf(WriterJob).
|
|
2202
|
-
return this.
|
|
2201
|
+
protoOf(WriterJob).tv = function () {
|
|
2202
|
+
return this.h1v_1;
|
|
2203
2203
|
};
|
|
2204
2204
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2205
2205
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2208,36 +2208,36 @@
|
|
|
2208
2208
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2209
2209
|
}
|
|
2210
2210
|
function WriterScope(channel, coroutineContext) {
|
|
2211
|
-
this.
|
|
2212
|
-
this.
|
|
2211
|
+
this.i1v_1 = channel;
|
|
2212
|
+
this.j1v_1 = coroutineContext;
|
|
2213
2213
|
}
|
|
2214
|
-
protoOf(WriterScope).
|
|
2215
|
-
return this.
|
|
2214
|
+
protoOf(WriterScope).js = function () {
|
|
2215
|
+
return this.j1v_1;
|
|
2216
2216
|
};
|
|
2217
2217
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2218
2218
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2219
|
-
return _this__u8e3s4.
|
|
2219
|
+
return _this__u8e3s4.tv().lt(block);
|
|
2220
2220
|
}
|
|
2221
2221
|
function close_0(_this__u8e3s4, cause) {
|
|
2222
2222
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2223
2223
|
if (cause == null) {
|
|
2224
2224
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2225
2225
|
} else {
|
|
2226
|
-
_this__u8e3s4.
|
|
2226
|
+
_this__u8e3s4.v1n(cause);
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
2229
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
2230
2230
|
var tmp = new $writePacketCOROUTINE$(_this__u8e3s4, source, $completion);
|
|
2231
|
-
tmp.
|
|
2232
|
-
tmp.
|
|
2233
|
-
return tmp.
|
|
2231
|
+
tmp.b9_1 = Unit_instance;
|
|
2232
|
+
tmp.c9_1 = null;
|
|
2233
|
+
return tmp.h9();
|
|
2234
2234
|
}
|
|
2235
2235
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
2236
2236
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
2237
2237
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2238
2238
|
// Inline function 'kotlin.apply' call
|
|
2239
2239
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2240
|
-
this_0.
|
|
2240
|
+
this_0.lt(writer$lambda(channel));
|
|
2241
2241
|
var job = this_0;
|
|
2242
2242
|
return new WriterJob(channel, job);
|
|
2243
2243
|
}
|
|
@@ -2246,115 +2246,115 @@
|
|
|
2246
2246
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2247
2247
|
}
|
|
2248
2248
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2249
|
-
_this__u8e3s4.
|
|
2249
|
+
_this__u8e3s4.n1n().c1k(value);
|
|
2250
2250
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2251
2251
|
}
|
|
2252
2252
|
function NO_CALLBACK$1() {
|
|
2253
|
-
this.
|
|
2253
|
+
this.u1v_1 = EmptyCoroutineContext_instance;
|
|
2254
2254
|
}
|
|
2255
|
-
protoOf(NO_CALLBACK$1).
|
|
2256
|
-
return this.
|
|
2255
|
+
protoOf(NO_CALLBACK$1).f9 = function () {
|
|
2256
|
+
return this.u1v_1;
|
|
2257
2257
|
};
|
|
2258
|
-
protoOf(NO_CALLBACK$1).
|
|
2258
|
+
protoOf(NO_CALLBACK$1).g9 = function (result) {
|
|
2259
2259
|
return Unit_instance;
|
|
2260
2260
|
};
|
|
2261
|
-
protoOf(NO_CALLBACK$1).
|
|
2262
|
-
return this.
|
|
2261
|
+
protoOf(NO_CALLBACK$1).k9 = function (result) {
|
|
2262
|
+
return this.g9(result);
|
|
2263
2263
|
};
|
|
2264
2264
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2265
|
-
this.
|
|
2265
|
+
this.v1v_1 = p0;
|
|
2266
2266
|
}
|
|
2267
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2268
|
-
return this.
|
|
2267
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).w1v = function ($completion) {
|
|
2268
|
+
return this.v1v_1.u1n($completion);
|
|
2269
2269
|
};
|
|
2270
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2271
|
-
return this.
|
|
2270
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).qa = function ($completion) {
|
|
2271
|
+
return this.w1v($completion);
|
|
2272
2272
|
};
|
|
2273
2273
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2274
2274
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2275
2275
|
var l = function ($completion) {
|
|
2276
|
-
return i.
|
|
2276
|
+
return i.w1v($completion);
|
|
2277
2277
|
};
|
|
2278
2278
|
l.callableName = 'flushAndClose';
|
|
2279
2279
|
l.$arity = 0;
|
|
2280
2280
|
return l;
|
|
2281
2281
|
}
|
|
2282
2282
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2283
|
-
this.
|
|
2284
|
-
this.
|
|
2283
|
+
this.f1w_1 = $block;
|
|
2284
|
+
this.g1w_1 = $channel;
|
|
2285
2285
|
CoroutineImpl.call(this, resultContinuation);
|
|
2286
2286
|
}
|
|
2287
|
-
protoOf(writer$slambda).
|
|
2288
|
-
var tmp = this.
|
|
2289
|
-
tmp.
|
|
2290
|
-
tmp.
|
|
2291
|
-
return tmp.
|
|
2287
|
+
protoOf(writer$slambda).o1w = function ($this$launch, $completion) {
|
|
2288
|
+
var tmp = this.p1w($this$launch, $completion);
|
|
2289
|
+
tmp.b9_1 = Unit_instance;
|
|
2290
|
+
tmp.c9_1 = null;
|
|
2291
|
+
return tmp.h9();
|
|
2292
2292
|
};
|
|
2293
|
-
protoOf(writer$slambda).
|
|
2294
|
-
return this.
|
|
2293
|
+
protoOf(writer$slambda).t9 = function (p1, $completion) {
|
|
2294
|
+
return this.o1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2295
2295
|
};
|
|
2296
|
-
protoOf(writer$slambda).
|
|
2297
|
-
var suspendResult = this.
|
|
2296
|
+
protoOf(writer$slambda).h9 = function () {
|
|
2297
|
+
var suspendResult = this.b9_1;
|
|
2298
2298
|
$sm: do
|
|
2299
2299
|
try {
|
|
2300
|
-
var tmp = this.
|
|
2300
|
+
var tmp = this.z8_1;
|
|
2301
2301
|
switch (tmp) {
|
|
2302
2302
|
case 0:
|
|
2303
|
-
this.
|
|
2304
|
-
this.
|
|
2305
|
-
this.
|
|
2303
|
+
this.a9_1 = 14;
|
|
2304
|
+
this.k1w_1 = Job(get_job(this.h1w_1.js()));
|
|
2305
|
+
this.z8_1 = 1;
|
|
2306
2306
|
continue $sm;
|
|
2307
2307
|
case 1:
|
|
2308
|
-
this.
|
|
2309
|
-
this.
|
|
2310
|
-
this.
|
|
2311
|
-
suspendResult = this.
|
|
2308
|
+
this.a9_1 = 4;
|
|
2309
|
+
this.a9_1 = 3;
|
|
2310
|
+
this.z8_1 = 2;
|
|
2311
|
+
suspendResult = this.f1w_1(new WriterScope(this.g1w_1, this.h1w_1.js().ej(this.k1w_1)), this);
|
|
2312
2312
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2313
2313
|
return suspendResult;
|
|
2314
2314
|
}
|
|
2315
2315
|
|
|
2316
2316
|
continue $sm;
|
|
2317
2317
|
case 2:
|
|
2318
|
-
this.
|
|
2318
|
+
this.k1w_1.q10();
|
|
2319
2319
|
var tmp_0;
|
|
2320
|
-
if (get_job(this.
|
|
2321
|
-
this.
|
|
2320
|
+
if (get_job(this.h1w_1.js()).ft()) {
|
|
2321
|
+
this.g1w_1.v1n(get_job(this.h1w_1.js()).it());
|
|
2322
2322
|
tmp_0 = Unit_instance;
|
|
2323
2323
|
}
|
|
2324
2324
|
|
|
2325
|
-
this.
|
|
2326
|
-
this.
|
|
2325
|
+
this.a9_1 = 14;
|
|
2326
|
+
this.z8_1 = 9;
|
|
2327
2327
|
continue $sm;
|
|
2328
2328
|
case 3:
|
|
2329
|
-
this.
|
|
2330
|
-
var tmp_1 = this.
|
|
2329
|
+
this.a9_1 = 4;
|
|
2330
|
+
var tmp_1 = this.c9_1;
|
|
2331
2331
|
if (tmp_1 instanceof Error) {
|
|
2332
|
-
var cause = this.
|
|
2333
|
-
cancel(this.
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2332
|
+
var cause = this.c9_1;
|
|
2333
|
+
cancel(this.k1w_1, 'Exception thrown while writing to channel', cause);
|
|
2334
|
+
this.g1w_1.v1n(cause);
|
|
2335
|
+
this.a9_1 = 14;
|
|
2336
|
+
this.z8_1 = 9;
|
|
2337
2337
|
continue $sm;
|
|
2338
2338
|
} else {
|
|
2339
|
-
throw this.
|
|
2339
|
+
throw this.c9_1;
|
|
2340
2340
|
}
|
|
2341
2341
|
|
|
2342
2342
|
case 4:
|
|
2343
|
-
this.
|
|
2344
|
-
this.
|
|
2345
|
-
this.
|
|
2346
|
-
suspendResult = this.
|
|
2343
|
+
this.a9_1 = 14;
|
|
2344
|
+
this.l1w_1 = this.c9_1;
|
|
2345
|
+
this.z8_1 = 5;
|
|
2346
|
+
suspendResult = this.k1w_1.pt(this);
|
|
2347
2347
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2348
2348
|
return suspendResult;
|
|
2349
2349
|
}
|
|
2350
2350
|
|
|
2351
2351
|
continue $sm;
|
|
2352
2352
|
case 5:
|
|
2353
|
-
this.
|
|
2354
|
-
this.
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2357
|
-
suspendResult = this.
|
|
2353
|
+
this.h1w_1;
|
|
2354
|
+
this.a9_1 = 7;
|
|
2355
|
+
this.n1w_1 = Companion_instance;
|
|
2356
|
+
this.z8_1 = 6;
|
|
2357
|
+
suspendResult = this.g1w_1.u1n(this);
|
|
2358
2358
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2359
2359
|
return suspendResult;
|
|
2360
2360
|
}
|
|
@@ -2362,42 +2362,42 @@
|
|
|
2362
2362
|
continue $sm;
|
|
2363
2363
|
case 6:
|
|
2364
2364
|
var tmp_2 = this;
|
|
2365
|
-
this.
|
|
2366
|
-
tmp_2.
|
|
2367
|
-
this.
|
|
2368
|
-
this.
|
|
2365
|
+
this.n1w_1;
|
|
2366
|
+
tmp_2.m1w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2367
|
+
this.a9_1 = 14;
|
|
2368
|
+
this.z8_1 = 8;
|
|
2369
2369
|
continue $sm;
|
|
2370
2370
|
case 7:
|
|
2371
|
-
this.
|
|
2372
|
-
var tmp_3 = this.
|
|
2371
|
+
this.a9_1 = 14;
|
|
2372
|
+
var tmp_3 = this.c9_1;
|
|
2373
2373
|
if (tmp_3 instanceof Error) {
|
|
2374
|
-
var e = this.
|
|
2374
|
+
var e = this.c9_1;
|
|
2375
2375
|
var tmp_4 = this;
|
|
2376
|
-
tmp_4.
|
|
2377
|
-
this.
|
|
2376
|
+
tmp_4.m1w_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2377
|
+
this.z8_1 = 8;
|
|
2378
2378
|
continue $sm;
|
|
2379
2379
|
} else {
|
|
2380
|
-
throw this.
|
|
2380
|
+
throw this.c9_1;
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
2383
|
case 8:
|
|
2384
|
-
this.
|
|
2385
|
-
throw this.
|
|
2384
|
+
this.a9_1 = 14;
|
|
2385
|
+
throw this.l1w_1;
|
|
2386
2386
|
case 9:
|
|
2387
|
-
this.
|
|
2388
|
-
this.
|
|
2389
|
-
suspendResult = this.
|
|
2387
|
+
this.a9_1 = 14;
|
|
2388
|
+
this.z8_1 = 10;
|
|
2389
|
+
suspendResult = this.k1w_1.pt(this);
|
|
2390
2390
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2391
2391
|
return suspendResult;
|
|
2392
2392
|
}
|
|
2393
2393
|
|
|
2394
2394
|
continue $sm;
|
|
2395
2395
|
case 10:
|
|
2396
|
-
this.
|
|
2397
|
-
this.
|
|
2398
|
-
this.
|
|
2399
|
-
this.
|
|
2400
|
-
suspendResult = this.
|
|
2396
|
+
this.h1w_1;
|
|
2397
|
+
this.a9_1 = 12;
|
|
2398
|
+
this.j1w_1 = Companion_instance;
|
|
2399
|
+
this.z8_1 = 11;
|
|
2400
|
+
suspendResult = this.g1w_1.u1n(this);
|
|
2401
2401
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2402
2402
|
return suspendResult;
|
|
2403
2403
|
}
|
|
@@ -2405,50 +2405,50 @@
|
|
|
2405
2405
|
continue $sm;
|
|
2406
2406
|
case 11:
|
|
2407
2407
|
var tmp_5 = this;
|
|
2408
|
-
this.
|
|
2409
|
-
tmp_5.
|
|
2410
|
-
this.
|
|
2411
|
-
this.
|
|
2408
|
+
this.j1w_1;
|
|
2409
|
+
tmp_5.i1w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2410
|
+
this.a9_1 = 14;
|
|
2411
|
+
this.z8_1 = 13;
|
|
2412
2412
|
continue $sm;
|
|
2413
2413
|
case 12:
|
|
2414
|
-
this.
|
|
2415
|
-
var tmp_6 = this.
|
|
2414
|
+
this.a9_1 = 14;
|
|
2415
|
+
var tmp_6 = this.c9_1;
|
|
2416
2416
|
if (tmp_6 instanceof Error) {
|
|
2417
|
-
var e_0 = this.
|
|
2417
|
+
var e_0 = this.c9_1;
|
|
2418
2418
|
var tmp_7 = this;
|
|
2419
|
-
tmp_7.
|
|
2420
|
-
this.
|
|
2419
|
+
tmp_7.i1w_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2420
|
+
this.z8_1 = 13;
|
|
2421
2421
|
continue $sm;
|
|
2422
2422
|
} else {
|
|
2423
|
-
throw this.
|
|
2423
|
+
throw this.c9_1;
|
|
2424
2424
|
}
|
|
2425
2425
|
|
|
2426
2426
|
case 13:
|
|
2427
|
-
this.
|
|
2427
|
+
this.a9_1 = 14;
|
|
2428
2428
|
return Unit_instance;
|
|
2429
2429
|
case 14:
|
|
2430
|
-
throw this.
|
|
2430
|
+
throw this.c9_1;
|
|
2431
2431
|
}
|
|
2432
2432
|
} catch ($p) {
|
|
2433
2433
|
var e_1 = $p;
|
|
2434
|
-
if (this.
|
|
2434
|
+
if (this.a9_1 === 14) {
|
|
2435
2435
|
throw e_1;
|
|
2436
2436
|
} else {
|
|
2437
|
-
this.
|
|
2438
|
-
this.
|
|
2437
|
+
this.z8_1 = this.a9_1;
|
|
2438
|
+
this.c9_1 = e_1;
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
2441
2441
|
while (true);
|
|
2442
2442
|
};
|
|
2443
|
-
protoOf(writer$slambda).
|
|
2444
|
-
var i = new writer$slambda(this.
|
|
2445
|
-
i.
|
|
2443
|
+
protoOf(writer$slambda).p1w = function ($this$launch, completion) {
|
|
2444
|
+
var i = new writer$slambda(this.f1w_1, this.g1w_1, completion);
|
|
2445
|
+
i.h1w_1 = $this$launch;
|
|
2446
2446
|
return i;
|
|
2447
2447
|
};
|
|
2448
2448
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2449
2449
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2450
2450
|
var l = function ($this$launch, $completion) {
|
|
2451
|
-
return i.
|
|
2451
|
+
return i.o1w($this$launch, $completion);
|
|
2452
2452
|
};
|
|
2453
2453
|
l.$arity = 1;
|
|
2454
2454
|
return l;
|
|
@@ -2456,8 +2456,8 @@
|
|
|
2456
2456
|
function writer$lambda($channel) {
|
|
2457
2457
|
return function (it) {
|
|
2458
2458
|
var tmp;
|
|
2459
|
-
if (!(it == null) && !$channel.
|
|
2460
|
-
$channel.
|
|
2459
|
+
if (!(it == null) && !$channel.o1n()) {
|
|
2460
|
+
$channel.v1n(it);
|
|
2461
2461
|
tmp = Unit_instance;
|
|
2462
2462
|
}
|
|
2463
2463
|
return Unit_instance;
|
|
@@ -2465,48 +2465,48 @@
|
|
|
2465
2465
|
}
|
|
2466
2466
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2467
2467
|
CoroutineImpl.call(this, resultContinuation);
|
|
2468
|
-
this.
|
|
2469
|
-
this.
|
|
2468
|
+
this.s1v_1 = _this__u8e3s4;
|
|
2469
|
+
this.t1v_1 = source;
|
|
2470
2470
|
}
|
|
2471
|
-
protoOf($writePacketCOROUTINE$).
|
|
2472
|
-
var suspendResult = this.
|
|
2471
|
+
protoOf($writePacketCOROUTINE$).h9 = function () {
|
|
2472
|
+
var suspendResult = this.b9_1;
|
|
2473
2473
|
$sm: do
|
|
2474
2474
|
try {
|
|
2475
|
-
var tmp = this.
|
|
2475
|
+
var tmp = this.z8_1;
|
|
2476
2476
|
switch (tmp) {
|
|
2477
2477
|
case 0:
|
|
2478
|
-
this.
|
|
2479
|
-
this.
|
|
2478
|
+
this.a9_1 = 4;
|
|
2479
|
+
this.z8_1 = 1;
|
|
2480
2480
|
continue $sm;
|
|
2481
2481
|
case 1:
|
|
2482
|
-
if (!!this.
|
|
2483
|
-
this.
|
|
2482
|
+
if (!!this.t1v_1.j1i()) {
|
|
2483
|
+
this.z8_1 = 3;
|
|
2484
2484
|
continue $sm;
|
|
2485
2485
|
}
|
|
2486
2486
|
|
|
2487
|
-
this.
|
|
2488
|
-
this.
|
|
2489
|
-
suspendResult = flushIfNeeded(this.
|
|
2487
|
+
this.s1v_1.n1n().w1j(this.t1v_1, get_remaining(this.t1v_1));
|
|
2488
|
+
this.z8_1 = 2;
|
|
2489
|
+
suspendResult = flushIfNeeded(this.s1v_1, this);
|
|
2490
2490
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2491
2491
|
return suspendResult;
|
|
2492
2492
|
}
|
|
2493
2493
|
|
|
2494
2494
|
continue $sm;
|
|
2495
2495
|
case 2:
|
|
2496
|
-
this.
|
|
2496
|
+
this.z8_1 = 1;
|
|
2497
2497
|
continue $sm;
|
|
2498
2498
|
case 3:
|
|
2499
2499
|
return Unit_instance;
|
|
2500
2500
|
case 4:
|
|
2501
|
-
throw this.
|
|
2501
|
+
throw this.c9_1;
|
|
2502
2502
|
}
|
|
2503
2503
|
} catch ($p) {
|
|
2504
2504
|
var e = $p;
|
|
2505
|
-
if (this.
|
|
2505
|
+
if (this.a9_1 === 4) {
|
|
2506
2506
|
throw e;
|
|
2507
2507
|
} else {
|
|
2508
|
-
this.
|
|
2509
|
-
this.
|
|
2508
|
+
this.z8_1 = this.a9_1;
|
|
2509
|
+
this.c9_1 = e;
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
2512
2512
|
while (true);
|
|
@@ -2531,27 +2531,27 @@
|
|
|
2531
2531
|
return l;
|
|
2532
2532
|
}
|
|
2533
2533
|
function CloseToken(origin) {
|
|
2534
|
-
this.
|
|
2534
|
+
this.l1n_1 = origin;
|
|
2535
2535
|
}
|
|
2536
|
-
protoOf(CloseToken).
|
|
2537
|
-
var tmp0_subject = this.
|
|
2536
|
+
protoOf(CloseToken).q1w = function (wrap) {
|
|
2537
|
+
var tmp0_subject = this.l1n_1;
|
|
2538
2538
|
var tmp;
|
|
2539
2539
|
if (tmp0_subject == null) {
|
|
2540
2540
|
tmp = null;
|
|
2541
2541
|
} else {
|
|
2542
2542
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2543
|
-
tmp = this.
|
|
2543
|
+
tmp = this.l1n_1.z10();
|
|
2544
2544
|
} else {
|
|
2545
2545
|
if (tmp0_subject instanceof CancellationException) {
|
|
2546
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2546
|
+
tmp = CancellationException_init_$Create$(this.l1n_1.message, this.l1n_1);
|
|
2547
2547
|
} else {
|
|
2548
|
-
tmp = wrap(this.
|
|
2548
|
+
tmp = wrap(this.l1n_1);
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
2552
|
return tmp;
|
|
2553
2553
|
};
|
|
2554
|
-
protoOf(CloseToken).
|
|
2554
|
+
protoOf(CloseToken).q1n = function (wrap, $super) {
|
|
2555
2555
|
var tmp;
|
|
2556
2556
|
if (wrap === VOID) {
|
|
2557
2557
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2559,10 +2559,10 @@
|
|
|
2559
2559
|
tmp = wrap;
|
|
2560
2560
|
}
|
|
2561
2561
|
wrap = tmp;
|
|
2562
|
-
return $super === VOID ? this.
|
|
2562
|
+
return $super === VOID ? this.q1w(wrap) : $super.q1w.call(this, wrap);
|
|
2563
2563
|
};
|
|
2564
|
-
protoOf(CloseToken).
|
|
2565
|
-
var tmp0_safe_receiver = this.
|
|
2564
|
+
protoOf(CloseToken).m1n = function (wrap) {
|
|
2565
|
+
var tmp0_safe_receiver = this.q1w(wrap);
|
|
2566
2566
|
var tmp;
|
|
2567
2567
|
if (tmp0_safe_receiver == null) {
|
|
2568
2568
|
tmp = null;
|
|
@@ -2581,32 +2581,32 @@
|
|
|
2581
2581
|
}
|
|
2582
2582
|
function transferFromDelegate($this) {
|
|
2583
2583
|
updateConsumed($this);
|
|
2584
|
-
var appended = $this.
|
|
2585
|
-
$this.
|
|
2584
|
+
var appended = $this.s1w_1.b1k($this.r1w_1.k1n());
|
|
2585
|
+
$this.t1w_1 = add($this.t1w_1, appended);
|
|
2586
2586
|
}
|
|
2587
2587
|
function updateConsumed($this) {
|
|
2588
|
-
$this.
|
|
2589
|
-
$this.
|
|
2588
|
+
$this.u1w_1 = add($this.u1w_1, subtract($this.t1w_1, $this.s1w_1.g1()));
|
|
2589
|
+
$this.t1w_1 = $this.s1w_1.g1();
|
|
2590
2590
|
}
|
|
2591
2591
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2592
2592
|
CoroutineImpl.call(this, resultContinuation);
|
|
2593
|
-
this.
|
|
2594
|
-
this.
|
|
2593
|
+
this.d1x_1 = _this__u8e3s4;
|
|
2594
|
+
this.e1x_1 = min;
|
|
2595
2595
|
}
|
|
2596
|
-
protoOf($awaitContentCOROUTINE$_0).
|
|
2597
|
-
var suspendResult = this.
|
|
2596
|
+
protoOf($awaitContentCOROUTINE$_0).h9 = function () {
|
|
2597
|
+
var suspendResult = this.b9_1;
|
|
2598
2598
|
$sm: do
|
|
2599
2599
|
try {
|
|
2600
|
-
var tmp = this.
|
|
2600
|
+
var tmp = this.z8_1;
|
|
2601
2601
|
switch (tmp) {
|
|
2602
2602
|
case 0:
|
|
2603
|
-
this.
|
|
2604
|
-
if (this.
|
|
2603
|
+
this.a9_1 = 3;
|
|
2604
|
+
if (this.d1x_1.k1n().g1() >= fromInt(this.e1x_1)) {
|
|
2605
2605
|
return true;
|
|
2606
2606
|
}
|
|
2607
2607
|
|
|
2608
|
-
this.
|
|
2609
|
-
suspendResult = this.
|
|
2608
|
+
this.z8_1 = 1;
|
|
2609
|
+
suspendResult = this.d1x_1.r1w_1.s1n(this.e1x_1, this);
|
|
2610
2610
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2611
2611
|
return suspendResult;
|
|
2612
2612
|
}
|
|
@@ -2614,58 +2614,58 @@
|
|
|
2614
2614
|
continue $sm;
|
|
2615
2615
|
case 1:
|
|
2616
2616
|
if (suspendResult) {
|
|
2617
|
-
transferFromDelegate(this.
|
|
2617
|
+
transferFromDelegate(this.d1x_1);
|
|
2618
2618
|
return true;
|
|
2619
2619
|
} else {
|
|
2620
|
-
this.
|
|
2620
|
+
this.z8_1 = 2;
|
|
2621
2621
|
continue $sm;
|
|
2622
2622
|
}
|
|
2623
2623
|
|
|
2624
2624
|
case 2:
|
|
2625
2625
|
return false;
|
|
2626
2626
|
case 3:
|
|
2627
|
-
throw this.
|
|
2627
|
+
throw this.c9_1;
|
|
2628
2628
|
}
|
|
2629
2629
|
} catch ($p) {
|
|
2630
2630
|
var e = $p;
|
|
2631
|
-
if (this.
|
|
2631
|
+
if (this.a9_1 === 3) {
|
|
2632
2632
|
throw e;
|
|
2633
2633
|
} else {
|
|
2634
|
-
this.
|
|
2635
|
-
this.
|
|
2634
|
+
this.z8_1 = this.a9_1;
|
|
2635
|
+
this.c9_1 = e;
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
2638
|
while (true);
|
|
2639
2639
|
};
|
|
2640
2640
|
function CountedByteReadChannel(delegate) {
|
|
2641
|
-
this.
|
|
2642
|
-
this.
|
|
2643
|
-
this.s1w_1 = 0n;
|
|
2641
|
+
this.r1w_1 = delegate;
|
|
2642
|
+
this.s1w_1 = new Buffer();
|
|
2644
2643
|
this.t1w_1 = 0n;
|
|
2644
|
+
this.u1w_1 = 0n;
|
|
2645
2645
|
}
|
|
2646
|
-
protoOf(CountedByteReadChannel).
|
|
2646
|
+
protoOf(CountedByteReadChannel).f1x = function () {
|
|
2647
2647
|
updateConsumed(this);
|
|
2648
|
-
return this.
|
|
2648
|
+
return this.u1w_1;
|
|
2649
2649
|
};
|
|
2650
|
-
protoOf(CountedByteReadChannel).
|
|
2651
|
-
return this.
|
|
2650
|
+
protoOf(CountedByteReadChannel).p1n = function () {
|
|
2651
|
+
return this.r1w_1.p1n();
|
|
2652
2652
|
};
|
|
2653
|
-
protoOf(CountedByteReadChannel).
|
|
2654
|
-
return this.
|
|
2653
|
+
protoOf(CountedByteReadChannel).r1n = function () {
|
|
2654
|
+
return this.s1w_1.j1i() && this.r1w_1.r1n();
|
|
2655
2655
|
};
|
|
2656
|
-
protoOf(CountedByteReadChannel).
|
|
2656
|
+
protoOf(CountedByteReadChannel).k1n = function () {
|
|
2657
2657
|
transferFromDelegate(this);
|
|
2658
|
-
return this.
|
|
2658
|
+
return this.s1w_1;
|
|
2659
2659
|
};
|
|
2660
|
-
protoOf(CountedByteReadChannel).
|
|
2660
|
+
protoOf(CountedByteReadChannel).s1n = function (min, $completion) {
|
|
2661
2661
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2662
|
-
tmp.
|
|
2663
|
-
tmp.
|
|
2664
|
-
return tmp.
|
|
2662
|
+
tmp.b9_1 = Unit_instance;
|
|
2663
|
+
tmp.c9_1 = null;
|
|
2664
|
+
return tmp.h9();
|
|
2665
2665
|
};
|
|
2666
|
-
protoOf(CountedByteReadChannel).
|
|
2667
|
-
this.
|
|
2668
|
-
this.
|
|
2666
|
+
protoOf(CountedByteReadChannel).v1n = function (cause) {
|
|
2667
|
+
this.r1w_1.v1n(cause);
|
|
2668
|
+
this.s1w_1.f4();
|
|
2669
2669
|
};
|
|
2670
2670
|
function counted(_this__u8e3s4) {
|
|
2671
2671
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2723,21 +2723,21 @@
|
|
|
2723
2723
|
}
|
|
2724
2724
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2725
2725
|
var tmp;
|
|
2726
|
-
if ($this === Companion_getInstance_1().
|
|
2726
|
+
if ($this === Companion_getInstance_1().g1x_1) {
|
|
2727
2727
|
tmp = 'CR';
|
|
2728
|
-
} else if ($this === Companion_getInstance_1().g1x_1) {
|
|
2729
|
-
tmp = 'LF';
|
|
2730
2728
|
} else if ($this === Companion_getInstance_1().h1x_1) {
|
|
2729
|
+
tmp = 'LF';
|
|
2730
|
+
} else if ($this === Companion_getInstance_1().i1x_1) {
|
|
2731
2731
|
tmp = 'CRLF';
|
|
2732
2732
|
} else {
|
|
2733
2733
|
// Inline function 'kotlin.collections.filter' call
|
|
2734
|
-
var tmp0 = Companion_getInstance_1().
|
|
2734
|
+
var tmp0 = Companion_getInstance_1().k1x_1;
|
|
2735
2735
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2736
2736
|
var destination = ArrayList_init_$Create$();
|
|
2737
2737
|
var _iterator__ex2g4s = tmp0.t();
|
|
2738
2738
|
while (_iterator__ex2g4s.u()) {
|
|
2739
2739
|
var element = _iterator__ex2g4s.v();
|
|
2740
|
-
var it = element.
|
|
2740
|
+
var it = element.l1x_1;
|
|
2741
2741
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2742
2742
|
destination.e1(element);
|
|
2743
2743
|
}
|
|
@@ -2748,11 +2748,11 @@
|
|
|
2748
2748
|
}
|
|
2749
2749
|
function Companion_1() {
|
|
2750
2750
|
Companion_instance_2 = this;
|
|
2751
|
-
this.
|
|
2752
|
-
this.
|
|
2753
|
-
this.
|
|
2754
|
-
this.
|
|
2755
|
-
this.
|
|
2751
|
+
this.g1x_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2752
|
+
this.h1x_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2753
|
+
this.i1x_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2754
|
+
this.j1x_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2755
|
+
this.k1x_1 = listOf([new LineEndingMode(this.g1x_1), new LineEndingMode(this.h1x_1), new LineEndingMode(this.i1x_1)]);
|
|
2756
2756
|
}
|
|
2757
2757
|
var Companion_instance_2;
|
|
2758
2758
|
function Companion_getInstance_1() {
|
|
@@ -2766,67 +2766,67 @@
|
|
|
2766
2766
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2767
2767
|
if (!(other instanceof LineEndingMode))
|
|
2768
2768
|
return false;
|
|
2769
|
-
if (!($this === other.
|
|
2769
|
+
if (!($this === other.l1x_1))
|
|
2770
2770
|
return false;
|
|
2771
2771
|
return true;
|
|
2772
2772
|
}
|
|
2773
2773
|
function LineEndingMode(mode) {
|
|
2774
2774
|
Companion_getInstance_1();
|
|
2775
|
-
this.
|
|
2775
|
+
this.l1x_1 = mode;
|
|
2776
2776
|
}
|
|
2777
2777
|
protoOf(LineEndingMode).toString = function () {
|
|
2778
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2778
|
+
return LineEndingMode__toString_impl_j4h76r(this.l1x_1);
|
|
2779
2779
|
};
|
|
2780
2780
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2781
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2781
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.l1x_1);
|
|
2782
2782
|
};
|
|
2783
2783
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2784
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2784
|
+
return LineEndingMode__equals_impl_qyr4nk(this.l1x_1, other);
|
|
2785
2785
|
};
|
|
2786
2786
|
function SourceByteReadChannel(source) {
|
|
2787
|
-
this.
|
|
2788
|
-
this.
|
|
2787
|
+
this.m1x_1 = source;
|
|
2788
|
+
this.n1x_1 = null;
|
|
2789
2789
|
}
|
|
2790
|
-
protoOf(SourceByteReadChannel).
|
|
2791
|
-
var tmp0_safe_receiver = this.
|
|
2792
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2790
|
+
protoOf(SourceByteReadChannel).p1n = function () {
|
|
2791
|
+
var tmp0_safe_receiver = this.n1x_1;
|
|
2792
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1n();
|
|
2793
2793
|
};
|
|
2794
|
-
protoOf(SourceByteReadChannel).
|
|
2795
|
-
return this.
|
|
2794
|
+
protoOf(SourceByteReadChannel).r1n = function () {
|
|
2795
|
+
return this.m1x_1.j1i();
|
|
2796
2796
|
};
|
|
2797
|
-
protoOf(SourceByteReadChannel).
|
|
2798
|
-
var tmp0_safe_receiver = this.
|
|
2797
|
+
protoOf(SourceByteReadChannel).k1n = function () {
|
|
2798
|
+
var tmp0_safe_receiver = this.p1n();
|
|
2799
2799
|
if (tmp0_safe_receiver == null)
|
|
2800
2800
|
null;
|
|
2801
2801
|
else {
|
|
2802
2802
|
// Inline function 'kotlin.let' call
|
|
2803
2803
|
throw tmp0_safe_receiver;
|
|
2804
2804
|
}
|
|
2805
|
-
return this.
|
|
2805
|
+
return this.m1x_1.i1i();
|
|
2806
2806
|
};
|
|
2807
|
-
protoOf(SourceByteReadChannel).
|
|
2808
|
-
var tmp0_safe_receiver = this.
|
|
2807
|
+
protoOf(SourceByteReadChannel).s1n = function (min, $completion) {
|
|
2808
|
+
var tmp0_safe_receiver = this.p1n();
|
|
2809
2809
|
if (tmp0_safe_receiver == null)
|
|
2810
2810
|
null;
|
|
2811
2811
|
else {
|
|
2812
2812
|
// Inline function 'kotlin.let' call
|
|
2813
2813
|
throw tmp0_safe_receiver;
|
|
2814
2814
|
}
|
|
2815
|
-
return this.
|
|
2815
|
+
return this.m1x_1.l1i(fromInt(min));
|
|
2816
2816
|
};
|
|
2817
|
-
protoOf(SourceByteReadChannel).
|
|
2818
|
-
if (!(this.
|
|
2817
|
+
protoOf(SourceByteReadChannel).v1n = function (cause) {
|
|
2818
|
+
if (!(this.n1x_1 == null))
|
|
2819
2819
|
return Unit_instance;
|
|
2820
|
-
this.
|
|
2820
|
+
this.m1x_1.f4();
|
|
2821
2821
|
var tmp = this;
|
|
2822
2822
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2823
|
-
tmp.
|
|
2823
|
+
tmp.n1x_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2824
2824
|
};
|
|
2825
2825
|
function decode(_this__u8e3s4, input, max) {
|
|
2826
2826
|
max = max === VOID ? 2147483647 : max;
|
|
2827
2827
|
var tmp0 = fromInt(max);
|
|
2828
2828
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2829
|
-
var b = input.
|
|
2829
|
+
var b = input.i1i().g1();
|
|
2830
2830
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2831
2831
|
// Inline function 'kotlin.text.buildString' call
|
|
2832
2832
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2863,7 +2863,7 @@
|
|
|
2863
2863
|
}
|
|
2864
2864
|
}
|
|
2865
2865
|
function canRead(_this__u8e3s4) {
|
|
2866
|
-
return !_this__u8e3s4.
|
|
2866
|
+
return !_this__u8e3s4.j1i();
|
|
2867
2867
|
}
|
|
2868
2868
|
function readBytes(_this__u8e3s4, count) {
|
|
2869
2869
|
count = count === VOID ? convertToInt(_this__u8e3s4.g1()) : count;
|
|
@@ -2872,35 +2872,35 @@
|
|
|
2872
2872
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2873
2873
|
offset = offset === VOID ? 0 : offset;
|
|
2874
2874
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2875
|
-
_this__u8e3s4.
|
|
2875
|
+
_this__u8e3s4.s1j(buffer, offset, offset + length | 0);
|
|
2876
2876
|
}
|
|
2877
2877
|
function BytePacketBuilder() {
|
|
2878
2878
|
return new Buffer();
|
|
2879
2879
|
}
|
|
2880
2880
|
function build(_this__u8e3s4) {
|
|
2881
|
-
return _this__u8e3s4.
|
|
2881
|
+
return _this__u8e3s4.i1i();
|
|
2882
2882
|
}
|
|
2883
2883
|
function get_size(_this__u8e3s4) {
|
|
2884
|
-
return convertToInt(_this__u8e3s4.
|
|
2884
|
+
return convertToInt(_this__u8e3s4.i1i().g1());
|
|
2885
2885
|
}
|
|
2886
2886
|
var ByteReadPacketEmpty;
|
|
2887
2887
|
function get_remaining(_this__u8e3s4) {
|
|
2888
2888
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2889
|
-
return _this__u8e3s4.
|
|
2889
|
+
return _this__u8e3s4.i1i().g1();
|
|
2890
2890
|
}
|
|
2891
2891
|
function takeWhile(_this__u8e3s4, block) {
|
|
2892
2892
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2893
|
-
while (!_this__u8e3s4.
|
|
2893
|
+
while (!_this__u8e3s4.j1i() && block(_this__u8e3s4.i1i())) {
|
|
2894
2894
|
}
|
|
2895
2895
|
}
|
|
2896
2896
|
function discard_0(_this__u8e3s4, count) {
|
|
2897
2897
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2898
2898
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2899
|
-
_this__u8e3s4.
|
|
2899
|
+
_this__u8e3s4.l1i(count);
|
|
2900
2900
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2901
2901
|
var b = get_remaining(_this__u8e3s4);
|
|
2902
2902
|
var countToDiscard = count <= b ? count : b;
|
|
2903
|
-
_this__u8e3s4.
|
|
2903
|
+
_this__u8e3s4.i1i().g1j(countToDiscard);
|
|
2904
2904
|
return countToDiscard;
|
|
2905
2905
|
}
|
|
2906
2906
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2913,37 +2913,37 @@
|
|
|
2913
2913
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2914
2914
|
offset = offset === VOID ? 0 : offset;
|
|
2915
2915
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2916
|
-
var result = _this__u8e3s4.
|
|
2916
|
+
var result = _this__u8e3s4.h1j(buffer, offset, offset + length | 0);
|
|
2917
2917
|
return result === -1 ? 0 : result;
|
|
2918
2918
|
}
|
|
2919
2919
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2920
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2920
|
+
charset = charset === VOID ? Charsets_getInstance().o1x_1 : charset;
|
|
2921
2921
|
max = max === VOID ? 2147483647 : max;
|
|
2922
|
-
if (charset.equals(Charsets_getInstance().
|
|
2922
|
+
if (charset.equals(Charsets_getInstance().o1x_1)) {
|
|
2923
2923
|
if (max === 2147483647)
|
|
2924
2924
|
return readString_0(_this__u8e3s4);
|
|
2925
|
-
var tmp0 = _this__u8e3s4.
|
|
2925
|
+
var tmp0 = _this__u8e3s4.i1i().g1();
|
|
2926
2926
|
// Inline function 'kotlin.math.min' call
|
|
2927
2927
|
var b = fromInt(max);
|
|
2928
2928
|
var count = tmp0 <= b ? tmp0 : b;
|
|
2929
2929
|
return readString(_this__u8e3s4, count);
|
|
2930
2930
|
}
|
|
2931
|
-
return decode(charset.
|
|
2931
|
+
return decode(charset.r1x(), _this__u8e3s4, max);
|
|
2932
2932
|
}
|
|
2933
2933
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2934
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2935
|
-
if (charset.equals(Charsets_getInstance().
|
|
2934
|
+
charset = charset === VOID ? Charsets_getInstance().o1x_1 : charset;
|
|
2935
|
+
if (charset.equals(Charsets_getInstance().o1x_1))
|
|
2936
2936
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2937
|
-
return encodeToByteArray_0(charset.
|
|
2937
|
+
return encodeToByteArray_0(charset.s1x(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2938
2938
|
}
|
|
2939
2939
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2940
2940
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2941
2941
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2942
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2943
|
-
if (charset === Charsets_getInstance().
|
|
2942
|
+
charset = charset === VOID ? Charsets_getInstance().o1x_1 : charset;
|
|
2943
|
+
if (charset === Charsets_getInstance().o1x_1) {
|
|
2944
2944
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2945
2945
|
}
|
|
2946
|
-
encodeToImpl(charset.
|
|
2946
|
+
encodeToImpl(charset.s1x(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2947
2947
|
}
|
|
2948
2948
|
function readBytes_0(_this__u8e3s4) {
|
|
2949
2949
|
return readByteArray_0(_this__u8e3s4);
|
|
@@ -2956,7 +2956,7 @@
|
|
|
2956
2956
|
function ByteArrayPool$1() {
|
|
2957
2957
|
DefaultPool.call(this, 128);
|
|
2958
2958
|
}
|
|
2959
|
-
protoOf(ByteArrayPool$1).
|
|
2959
|
+
protoOf(ByteArrayPool$1).w1x = function () {
|
|
2960
2960
|
return new Int8Array(4096);
|
|
2961
2961
|
};
|
|
2962
2962
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2970,21 +2970,21 @@
|
|
|
2970
2970
|
}
|
|
2971
2971
|
function NoPoolImpl() {
|
|
2972
2972
|
}
|
|
2973
|
-
protoOf(NoPoolImpl).
|
|
2973
|
+
protoOf(NoPoolImpl).e1y = function (instance) {
|
|
2974
2974
|
return Unit_instance;
|
|
2975
2975
|
};
|
|
2976
|
-
protoOf(NoPoolImpl).
|
|
2976
|
+
protoOf(NoPoolImpl).fv = function () {
|
|
2977
2977
|
return Unit_instance;
|
|
2978
2978
|
};
|
|
2979
2979
|
function Companion_2() {
|
|
2980
2980
|
}
|
|
2981
|
-
protoOf(Companion_2).
|
|
2981
|
+
protoOf(Companion_2).f1y = function (name) {
|
|
2982
2982
|
switch (name) {
|
|
2983
2983
|
case 'UTF-8':
|
|
2984
2984
|
case 'utf-8':
|
|
2985
2985
|
case 'UTF8':
|
|
2986
2986
|
case 'utf8':
|
|
2987
|
-
return Charsets_getInstance().
|
|
2987
|
+
return Charsets_getInstance().o1x_1;
|
|
2988
2988
|
}
|
|
2989
2989
|
var tmp;
|
|
2990
2990
|
var tmp_0;
|
|
@@ -3015,11 +3015,11 @@
|
|
|
3015
3015
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3016
3016
|
}
|
|
3017
3017
|
if (tmp) {
|
|
3018
|
-
return Charsets_getInstance().
|
|
3018
|
+
return Charsets_getInstance().p1x_1;
|
|
3019
3019
|
}
|
|
3020
3020
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3021
3021
|
};
|
|
3022
|
-
protoOf(Companion_2).
|
|
3022
|
+
protoOf(Companion_2).g1y = function (charset) {
|
|
3023
3023
|
var tmp;
|
|
3024
3024
|
switch (charset) {
|
|
3025
3025
|
case 'UTF-8':
|
|
@@ -3074,7 +3074,7 @@
|
|
|
3074
3074
|
return Companion_instance_3;
|
|
3075
3075
|
}
|
|
3076
3076
|
function Charset(_name) {
|
|
3077
|
-
this.
|
|
3077
|
+
this.q1x_1 = _name;
|
|
3078
3078
|
}
|
|
3079
3079
|
protoOf(Charset).equals = function (other) {
|
|
3080
3080
|
if (this === other)
|
|
@@ -3083,18 +3083,18 @@
|
|
|
3083
3083
|
return false;
|
|
3084
3084
|
if (!(other instanceof Charset))
|
|
3085
3085
|
THROW_CCE();
|
|
3086
|
-
return this.
|
|
3086
|
+
return this.q1x_1 === other.q1x_1;
|
|
3087
3087
|
};
|
|
3088
3088
|
protoOf(Charset).hashCode = function () {
|
|
3089
|
-
return getStringHashCode(this.
|
|
3089
|
+
return getStringHashCode(this.q1x_1);
|
|
3090
3090
|
};
|
|
3091
3091
|
protoOf(Charset).toString = function () {
|
|
3092
|
-
return this.
|
|
3092
|
+
return this.q1x_1;
|
|
3093
3093
|
};
|
|
3094
3094
|
function Charsets() {
|
|
3095
3095
|
Charsets_instance = this;
|
|
3096
|
-
this.
|
|
3097
|
-
this.
|
|
3096
|
+
this.o1x_1 = new CharsetImpl('UTF-8');
|
|
3097
|
+
this.p1x_1 = new CharsetImpl('ISO-8859-1');
|
|
3098
3098
|
}
|
|
3099
3099
|
var Charsets_instance;
|
|
3100
3100
|
function Charsets_getInstance() {
|
|
@@ -3103,27 +3103,27 @@
|
|
|
3103
3103
|
return Charsets_instance;
|
|
3104
3104
|
}
|
|
3105
3105
|
function CharsetDecoder(_charset) {
|
|
3106
|
-
this.
|
|
3106
|
+
this.h1y_1 = _charset;
|
|
3107
3107
|
}
|
|
3108
3108
|
function MalformedInputException(message) {
|
|
3109
3109
|
IOException_init_$Init$_0(message, this);
|
|
3110
3110
|
captureStack(this, MalformedInputException);
|
|
3111
3111
|
}
|
|
3112
3112
|
function get_name(_this__u8e3s4) {
|
|
3113
|
-
return _this__u8e3s4.
|
|
3113
|
+
return _this__u8e3s4.q1x_1;
|
|
3114
3114
|
}
|
|
3115
3115
|
function isSupported(_this__u8e3s4, name) {
|
|
3116
|
-
return Companion_instance_3.
|
|
3116
|
+
return Companion_instance_3.g1y(name);
|
|
3117
3117
|
}
|
|
3118
3118
|
function forName(_this__u8e3s4, name) {
|
|
3119
|
-
return Companion_instance_3.
|
|
3119
|
+
return Companion_instance_3.f1y(name);
|
|
3120
3120
|
}
|
|
3121
3121
|
function CharsetEncoder(_charset) {
|
|
3122
|
-
this.
|
|
3122
|
+
this.i1y_1 = _charset;
|
|
3123
3123
|
}
|
|
3124
3124
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3125
3125
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3126
|
-
var tmp0 = input.
|
|
3126
|
+
var tmp0 = input.i1i().g1();
|
|
3127
3127
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3128
3128
|
var b = fromInt(max);
|
|
3129
3129
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3133,7 +3133,7 @@
|
|
|
3133
3133
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3134
3134
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3135
3135
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3136
|
-
tmp = decoder.
|
|
3136
|
+
tmp = decoder.j1y(array);
|
|
3137
3137
|
} catch ($p) {
|
|
3138
3138
|
var tmp_0;
|
|
3139
3139
|
if ($p instanceof Error) {
|
|
@@ -3155,11 +3155,11 @@
|
|
|
3155
3155
|
var message = 'Failed requirement.';
|
|
3156
3156
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3157
3157
|
}
|
|
3158
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3158
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().p1x_1)) {
|
|
3159
3159
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3160
3160
|
}
|
|
3161
3161
|
// Inline function 'kotlin.require' call
|
|
3162
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3162
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().o1x_1)) {
|
|
3163
3163
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3164
3164
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3165
3165
|
}
|
|
@@ -3169,7 +3169,7 @@
|
|
|
3169
3169
|
var result = encoder.encode(tmp$ret$5);
|
|
3170
3170
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3171
3171
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3172
|
-
dst.
|
|
3172
|
+
dst.v1j(result);
|
|
3173
3173
|
return result.length;
|
|
3174
3174
|
}
|
|
3175
3175
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3180,17 +3180,17 @@
|
|
|
3180
3180
|
function CharsetImpl(name) {
|
|
3181
3181
|
Charset.call(this, name);
|
|
3182
3182
|
}
|
|
3183
|
-
protoOf(CharsetImpl).
|
|
3183
|
+
protoOf(CharsetImpl).s1x = function () {
|
|
3184
3184
|
return new CharsetEncoderImpl(this);
|
|
3185
3185
|
};
|
|
3186
|
-
protoOf(CharsetImpl).
|
|
3186
|
+
protoOf(CharsetImpl).r1x = function () {
|
|
3187
3187
|
return new CharsetDecoderImpl(this);
|
|
3188
3188
|
};
|
|
3189
3189
|
function get_charset(_this__u8e3s4) {
|
|
3190
|
-
return _this__u8e3s4.
|
|
3190
|
+
return _this__u8e3s4.h1y_1;
|
|
3191
3191
|
}
|
|
3192
3192
|
function get_charset_0(_this__u8e3s4) {
|
|
3193
|
-
return _this__u8e3s4.
|
|
3193
|
+
return _this__u8e3s4.i1y_1;
|
|
3194
3194
|
}
|
|
3195
3195
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3196
3196
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3209,39 +3209,39 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
function CharsetEncoderImpl(charset) {
|
|
3211
3211
|
CharsetEncoder.call(this, charset);
|
|
3212
|
-
this.
|
|
3212
|
+
this.m1y_1 = charset;
|
|
3213
3213
|
}
|
|
3214
3214
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3215
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3215
|
+
return 'CharsetEncoderImpl(charset=' + this.m1y_1.toString() + ')';
|
|
3216
3216
|
};
|
|
3217
3217
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3218
|
-
return this.
|
|
3218
|
+
return this.m1y_1.hashCode();
|
|
3219
3219
|
};
|
|
3220
3220
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3221
3221
|
if (this === other)
|
|
3222
3222
|
return true;
|
|
3223
3223
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3224
3224
|
return false;
|
|
3225
|
-
if (!this.
|
|
3225
|
+
if (!this.m1y_1.equals(other.m1y_1))
|
|
3226
3226
|
return false;
|
|
3227
3227
|
return true;
|
|
3228
3228
|
};
|
|
3229
3229
|
function CharsetDecoderImpl(charset) {
|
|
3230
3230
|
CharsetDecoder.call(this, charset);
|
|
3231
|
-
this.
|
|
3231
|
+
this.o1y_1 = charset;
|
|
3232
3232
|
}
|
|
3233
3233
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3234
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3234
|
+
return 'CharsetDecoderImpl(charset=' + this.o1y_1.toString() + ')';
|
|
3235
3235
|
};
|
|
3236
3236
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3237
|
-
return this.
|
|
3237
|
+
return this.o1y_1.hashCode();
|
|
3238
3238
|
};
|
|
3239
3239
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3240
3240
|
if (this === other)
|
|
3241
3241
|
return true;
|
|
3242
3242
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3243
3243
|
return false;
|
|
3244
|
-
if (!this.
|
|
3244
|
+
if (!this.o1y_1.equals(other.o1y_1))
|
|
3245
3245
|
return false;
|
|
3246
3246
|
return true;
|
|
3247
3247
|
};
|
|
@@ -3275,10 +3275,10 @@
|
|
|
3275
3275
|
return this_0;
|
|
3276
3276
|
}
|
|
3277
3277
|
function toKtor$1($this_toKtor) {
|
|
3278
|
-
this.
|
|
3278
|
+
this.p1y_1 = $this_toKtor;
|
|
3279
3279
|
}
|
|
3280
|
-
protoOf(toKtor$1).
|
|
3281
|
-
return this.
|
|
3280
|
+
protoOf(toKtor$1).j1y = function (buffer) {
|
|
3281
|
+
return this.p1y_1.decode(buffer);
|
|
3282
3282
|
};
|
|
3283
3283
|
function get_ENCODING_ALIASES() {
|
|
3284
3284
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3291,7 +3291,7 @@
|
|
|
3291
3291
|
}
|
|
3292
3292
|
var REPLACEMENT;
|
|
3293
3293
|
function TextDecoderFallback(encoding, fatal) {
|
|
3294
|
-
this.
|
|
3294
|
+
this.q1y_1 = fatal;
|
|
3295
3295
|
// Inline function 'kotlin.text.trim' call
|
|
3296
3296
|
// Inline function 'kotlin.text.lowercase' call
|
|
3297
3297
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3302,7 +3302,7 @@
|
|
|
3302
3302
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3303
3303
|
}
|
|
3304
3304
|
}
|
|
3305
|
-
protoOf(TextDecoderFallback).
|
|
3305
|
+
protoOf(TextDecoderFallback).j1y = function (buffer) {
|
|
3306
3306
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3307
3307
|
var builder = new Buffer();
|
|
3308
3308
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3318,7 +3318,7 @@
|
|
|
3318
3318
|
var point = toCodePoint(byte);
|
|
3319
3319
|
if (point < 0) {
|
|
3320
3320
|
// Inline function 'kotlin.check' call
|
|
3321
|
-
if (!!this.
|
|
3321
|
+
if (!!this.q1y_1) {
|
|
3322
3322
|
var message = 'Invalid character: ' + point;
|
|
3323
3323
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3324
3324
|
}
|
|
@@ -3326,9 +3326,9 @@
|
|
|
3326
3326
|
continue $l$loop;
|
|
3327
3327
|
}
|
|
3328
3328
|
if (point > 255) {
|
|
3329
|
-
builder.
|
|
3329
|
+
builder.c1k(toByte(point >> 8));
|
|
3330
3330
|
}
|
|
3331
|
-
builder.
|
|
3331
|
+
builder.c1k(toByte(point & 255));
|
|
3332
3332
|
}
|
|
3333
3333
|
while (inductionVariable < last);
|
|
3334
3334
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3358,7 +3358,7 @@
|
|
|
3358
3358
|
return false;
|
|
3359
3359
|
}
|
|
3360
3360
|
function ioDispatcher() {
|
|
3361
|
-
return Dispatchers_getInstance().
|
|
3361
|
+
return Dispatchers_getInstance().n14_1;
|
|
3362
3362
|
}
|
|
3363
3363
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3364
3364
|
if (fromIndex >= toIndex)
|
|
@@ -3374,7 +3374,7 @@
|
|
|
3374
3374
|
if (character > 255) {
|
|
3375
3375
|
failedToMapError(character);
|
|
3376
3376
|
}
|
|
3377
|
-
dst.
|
|
3377
|
+
dst.c1k(toByte(character));
|
|
3378
3378
|
}
|
|
3379
3379
|
while (inductionVariable < toIndex);
|
|
3380
3380
|
return toIndex - fromIndex | 0;
|
|
@@ -3396,66 +3396,66 @@
|
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
3398
|
function DefaultPool(capacity) {
|
|
3399
|
-
this.
|
|
3399
|
+
this.x1x_1 = capacity;
|
|
3400
3400
|
var tmp = this;
|
|
3401
3401
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3402
|
-
var size = this.
|
|
3403
|
-
tmp.
|
|
3404
|
-
this.
|
|
3402
|
+
var size = this.x1x_1;
|
|
3403
|
+
tmp.y1x_1 = Array(size);
|
|
3404
|
+
this.z1x_1 = 0;
|
|
3405
3405
|
}
|
|
3406
|
-
protoOf(DefaultPool).z1x = function (instance) {
|
|
3407
|
-
};
|
|
3408
3406
|
protoOf(DefaultPool).a1y = function (instance) {
|
|
3409
|
-
return instance;
|
|
3410
3407
|
};
|
|
3411
3408
|
protoOf(DefaultPool).b1y = function (instance) {
|
|
3409
|
+
return instance;
|
|
3410
|
+
};
|
|
3411
|
+
protoOf(DefaultPool).c1y = function (instance) {
|
|
3412
3412
|
};
|
|
3413
|
-
protoOf(DefaultPool).
|
|
3414
|
-
if (this.
|
|
3415
|
-
return this.
|
|
3416
|
-
this.
|
|
3417
|
-
var idx = this.
|
|
3418
|
-
var tmp = this.
|
|
3413
|
+
protoOf(DefaultPool).d1y = function () {
|
|
3414
|
+
if (this.z1x_1 === 0)
|
|
3415
|
+
return this.w1x();
|
|
3416
|
+
this.z1x_1 = this.z1x_1 - 1 | 0;
|
|
3417
|
+
var idx = this.z1x_1;
|
|
3418
|
+
var tmp = this.y1x_1[idx];
|
|
3419
3419
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3420
|
-
this.
|
|
3421
|
-
return this.
|
|
3420
|
+
this.y1x_1[idx] = null;
|
|
3421
|
+
return this.b1y(instance);
|
|
3422
3422
|
};
|
|
3423
|
-
protoOf(DefaultPool).
|
|
3424
|
-
this.
|
|
3425
|
-
if (this.
|
|
3426
|
-
this.
|
|
3423
|
+
protoOf(DefaultPool).e1y = function (instance) {
|
|
3424
|
+
this.c1y(instance);
|
|
3425
|
+
if (this.z1x_1 === this.x1x_1) {
|
|
3426
|
+
this.a1y(instance);
|
|
3427
3427
|
} else {
|
|
3428
|
-
var _unary__edvuaz = this.
|
|
3429
|
-
this.
|
|
3430
|
-
this.
|
|
3428
|
+
var _unary__edvuaz = this.z1x_1;
|
|
3429
|
+
this.z1x_1 = _unary__edvuaz + 1 | 0;
|
|
3430
|
+
this.y1x_1[_unary__edvuaz] = instance;
|
|
3431
3431
|
}
|
|
3432
3432
|
};
|
|
3433
|
-
protoOf(DefaultPool).
|
|
3433
|
+
protoOf(DefaultPool).fv = function () {
|
|
3434
3434
|
var inductionVariable = 0;
|
|
3435
|
-
var last = this.
|
|
3435
|
+
var last = this.z1x_1;
|
|
3436
3436
|
if (inductionVariable < last)
|
|
3437
3437
|
do {
|
|
3438
3438
|
var i = inductionVariable;
|
|
3439
3439
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3440
|
-
var tmp = this.
|
|
3440
|
+
var tmp = this.y1x_1[i];
|
|
3441
3441
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3442
|
-
this.
|
|
3443
|
-
this.
|
|
3442
|
+
this.y1x_1[i] = null;
|
|
3443
|
+
this.a1y(instance);
|
|
3444
3444
|
}
|
|
3445
3445
|
while (inductionVariable < last);
|
|
3446
|
-
this.
|
|
3446
|
+
this.z1x_1 = 0;
|
|
3447
3447
|
};
|
|
3448
3448
|
//region block: post-declaration
|
|
3449
|
-
protoOf(Read).
|
|
3450
|
-
protoOf(Read).
|
|
3451
|
-
protoOf(Write).
|
|
3452
|
-
protoOf(Write).
|
|
3453
|
-
protoOf(ByteChannel).
|
|
3454
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3455
|
-
protoOf(CountedByteReadChannel).
|
|
3456
|
-
protoOf(SourceByteReadChannel).
|
|
3457
|
-
protoOf(DefaultPool).
|
|
3458
|
-
protoOf(NoPoolImpl).
|
|
3449
|
+
protoOf(Read).n1l = resume;
|
|
3450
|
+
protoOf(Read).o1l = resume_0;
|
|
3451
|
+
protoOf(Write).n1l = resume;
|
|
3452
|
+
protoOf(Write).o1l = resume_0;
|
|
3453
|
+
protoOf(ByteChannel).t1n = awaitContent$default;
|
|
3454
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t1n = awaitContent$default;
|
|
3455
|
+
protoOf(CountedByteReadChannel).t1n = awaitContent$default;
|
|
3456
|
+
protoOf(SourceByteReadChannel).t1n = awaitContent$default;
|
|
3457
|
+
protoOf(DefaultPool).f4 = close;
|
|
3458
|
+
protoOf(NoPoolImpl).f4 = close;
|
|
3459
3459
|
//endregion
|
|
3460
3460
|
//region block: init
|
|
3461
3461
|
Empty_instance = new Empty();
|