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