@doordeck/doordeck-headless-sdk 0.185.0 → 0.186.0
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/Kermit-kermit-core.js +60 -60
- package/kotlin/Kermit-kermit.js +7 -7
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +43 -43
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +798 -674
- package/kotlin/doordeck-sdk.js +12518 -12528
- package/kotlin/kotlin-kotlin-stdlib.js +3965 -3522
- package/kotlin/kotlinx-atomicfu.js +22 -22
- package/kotlin/kotlinx-coroutines-core.js +2333 -2338
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +59 -59
- package/kotlin/kotlinx-io-kotlinx-io-core.js +532 -532
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1980 -1979
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1589 -1589
- package/kotlin/ktor-ktor-client-auth.js +471 -473
- package/kotlin/ktor-ktor-client-content-negotiation.js +244 -245
- package/kotlin/ktor-ktor-client-core.js +3207 -3212
- package/kotlin/ktor-ktor-client-logging.js +1319 -1319
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +575 -575
- package/kotlin/ktor-ktor-http.js +950 -950
- package/kotlin/ktor-ktor-io.js +1120 -1124
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +272 -272
- package/kotlin/ktor-ktor-serialization.js +122 -122
- package/kotlin/ktor-ktor-utils.js +977 -977
- package/kotlin/ktor-ktor-websockets.js +61 -61
- package/package.json +4 -4
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -4,63 +4,63 @@
|
|
|
4
4
|
var Companion_instance = kotlin_kotlin.$_$.w4;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
6
6
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.n2;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
10
|
-
var toString = kotlin_kotlin.$_$.
|
|
11
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
12
|
-
var equals = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
14
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
15
|
-
var Result = kotlin_kotlin.$_$.
|
|
16
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
17
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
18
|
-
var newThrowable = kotlin_kotlin.$_$.
|
|
19
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.cc;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.fb;
|
|
9
|
+
var initMetadataForObject = kotlin_kotlin.$_$.kb;
|
|
10
|
+
var toString = kotlin_kotlin.$_$.eh;
|
|
11
|
+
var hashCode = kotlin_kotlin.$_$.db;
|
|
12
|
+
var equals = kotlin_kotlin.$_$.xa;
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.eb;
|
|
14
|
+
var createFailure = kotlin_kotlin.$_$.sg;
|
|
15
|
+
var Result = kotlin_kotlin.$_$.zf;
|
|
16
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ib;
|
|
17
|
+
var toString_0 = kotlin_kotlin.$_$.xe;
|
|
18
|
+
var newThrowable = kotlin_kotlin.$_$.yb;
|
|
19
|
+
var stackTraceToString = kotlin_kotlin.$_$.ch;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
21
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.tb;
|
|
22
22
|
var CoroutineImpl = kotlin_kotlin.$_$.j9;
|
|
23
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
24
|
-
var compare = kotlin_kotlin.$_$.
|
|
25
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
26
|
-
var add = kotlin_kotlin.$_$.
|
|
23
|
+
var fromInt = kotlin_kotlin.$_$.y9;
|
|
24
|
+
var compare = kotlin_kotlin.$_$.s9;
|
|
25
|
+
var numberToLong = kotlin_kotlin.$_$.fa;
|
|
26
|
+
var add = kotlin_kotlin.$_$.p9;
|
|
27
27
|
var intercepted = kotlin_kotlin.$_$.w8;
|
|
28
28
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
29
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
29
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ah;
|
|
30
30
|
var returnIfSuspended = kotlin_kotlin.$_$.g;
|
|
31
31
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
|
|
32
|
-
var Long = kotlin_kotlin.$_$.
|
|
33
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
32
|
+
var Long = kotlin_kotlin.$_$.wf;
|
|
33
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.gb;
|
|
34
34
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
35
35
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
36
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
37
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
36
|
+
var convertToInt = kotlin_kotlin.$_$.u9;
|
|
37
|
+
var IllegalStateException = kotlin_kotlin.$_$.vf;
|
|
38
38
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.s1;
|
|
39
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
39
|
+
var captureStack = kotlin_kotlin.$_$.oa;
|
|
40
40
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
41
41
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
42
|
-
var replace = kotlin_kotlin.$_$.
|
|
42
|
+
var replace = kotlin_kotlin.$_$.yd;
|
|
43
43
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
44
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
45
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
46
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
47
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
44
|
+
var THROW_CCE = kotlin_kotlin.$_$.bg;
|
|
45
|
+
var equalsLong = kotlin_kotlin.$_$.x9;
|
|
46
|
+
var get_ONE = kotlin_kotlin.$_$.o9;
|
|
47
|
+
var toString_1 = kotlin_kotlin.$_$.fc;
|
|
48
48
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
49
|
-
var subtract = kotlin_kotlin.$_$.
|
|
49
|
+
var subtract = kotlin_kotlin.$_$.ia;
|
|
50
50
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
51
51
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
52
|
-
var closeFinally = kotlin_kotlin.$_$.
|
|
52
|
+
var closeFinally = kotlin_kotlin.$_$.qg;
|
|
53
53
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
54
54
|
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.g4;
|
|
55
55
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
56
56
|
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
57
57
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l1;
|
|
58
58
|
var Continuation = kotlin_kotlin.$_$.d9;
|
|
59
|
-
var initMetadataForFunctionReference = kotlin_kotlin.$_$.
|
|
59
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.hb;
|
|
60
60
|
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
|
|
61
61
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
62
62
|
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
63
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
63
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.jb;
|
|
64
64
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
65
65
|
var CancellationException = kotlin_kotlin.$_$.s8;
|
|
66
66
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
@@ -71,26 +71,26 @@
|
|
|
71
71
|
var listOf = kotlin_kotlin.$_$.m7;
|
|
72
72
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
73
73
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
74
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
74
|
+
var charSequenceLength = kotlin_kotlin.$_$.ta;
|
|
75
75
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
76
76
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
77
77
|
var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
78
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
78
|
+
var encodeToByteArray = kotlin_kotlin.$_$.id;
|
|
79
79
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.p;
|
|
80
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
80
|
+
var AutoCloseable = kotlin_kotlin.$_$.kf;
|
|
81
81
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
82
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
83
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
82
|
+
var replace_0 = kotlin_kotlin.$_$.zd;
|
|
83
|
+
var getStringHashCode = kotlin_kotlin.$_$.cb;
|
|
84
84
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
85
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
85
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.ua;
|
|
86
86
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
87
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
88
|
-
var trim = kotlin_kotlin.$_$.
|
|
89
|
-
var toByte = kotlin_kotlin.$_$.
|
|
90
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
87
|
+
var isCharSequence = kotlin_kotlin.$_$.pb;
|
|
88
|
+
var trim = kotlin_kotlin.$_$.ff;
|
|
89
|
+
var toByte = kotlin_kotlin.$_$.dc;
|
|
90
|
+
var decodeToString_0 = kotlin_kotlin.$_$.gd;
|
|
91
91
|
var setOf = kotlin_kotlin.$_$.y7;
|
|
92
92
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
93
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
93
|
+
var charSequenceGet = kotlin_kotlin.$_$.sa;
|
|
94
94
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l2;
|
|
95
95
|
//endregion
|
|
96
96
|
//region block: pre-declaration
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
initMetadataForObject(Empty, 'Empty');
|
|
99
99
|
initMetadataForClass(Closed, 'Closed');
|
|
100
100
|
function resume() {
|
|
101
|
-
return this.
|
|
101
|
+
return this.q1j().o9(Companion_getInstance().n1j_1);
|
|
102
102
|
}
|
|
103
103
|
function resume_0(throwable) {
|
|
104
|
-
var tmp = this.
|
|
104
|
+
var tmp = this.q1j();
|
|
105
105
|
var tmp_0;
|
|
106
106
|
if (throwable == null) {
|
|
107
107
|
tmp_0 = null;
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
tmp_0 = new Result(tmp$ret$2);
|
|
113
113
|
}
|
|
114
114
|
var tmp1_elvis_lhs = tmp_0;
|
|
115
|
-
return tmp.
|
|
115
|
+
return tmp.o9(tmp1_elvis_lhs == null ? Companion_getInstance().n1j_1 : tmp1_elvis_lhs.ll_1);
|
|
116
116
|
}
|
|
117
117
|
initMetadataForInterface(Task, 'Task');
|
|
118
118
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
123
123
|
function awaitContent$default(min, $completion, $super) {
|
|
124
124
|
min = min === VOID ? 1 : min;
|
|
125
|
-
return $super === VOID ? this.
|
|
125
|
+
return $super === VOID ? this.x1l(min, $completion) : $super.x1l.call(this, min, $completion);
|
|
126
126
|
}
|
|
127
127
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
128
128
|
function get_autoFlush() {
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
169
169
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
170
170
|
function close() {
|
|
171
|
-
this.
|
|
171
|
+
this.fv();
|
|
172
172
|
}
|
|
173
173
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
174
174
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -187,10 +187,10 @@
|
|
|
187
187
|
//endregion
|
|
188
188
|
function Companion() {
|
|
189
189
|
Companion_instance_0 = this;
|
|
190
|
-
this.
|
|
190
|
+
this.m1j_1 = new Closed(null);
|
|
191
191
|
var tmp = this;
|
|
192
192
|
// Inline function 'kotlin.Companion.success' call
|
|
193
|
-
tmp.
|
|
193
|
+
tmp.n1j_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
194
194
|
}
|
|
195
195
|
var Companion_instance_0;
|
|
196
196
|
function Companion_getInstance() {
|
|
@@ -218,87 +218,87 @@
|
|
|
218
218
|
return Empty_instance;
|
|
219
219
|
}
|
|
220
220
|
function Closed(cause) {
|
|
221
|
-
this.
|
|
221
|
+
this.o1j_1 = cause;
|
|
222
222
|
}
|
|
223
223
|
protoOf(Closed).toString = function () {
|
|
224
|
-
return 'Closed(cause=' + toString(this.
|
|
224
|
+
return 'Closed(cause=' + toString(this.o1j_1) + ')';
|
|
225
225
|
};
|
|
226
226
|
protoOf(Closed).hashCode = function () {
|
|
227
|
-
return this.
|
|
227
|
+
return this.o1j_1 == null ? 0 : hashCode(this.o1j_1);
|
|
228
228
|
};
|
|
229
229
|
protoOf(Closed).equals = function (other) {
|
|
230
230
|
if (this === other)
|
|
231
231
|
return true;
|
|
232
232
|
if (!(other instanceof Closed))
|
|
233
233
|
return false;
|
|
234
|
-
if (!equals(this.
|
|
234
|
+
if (!equals(this.o1j_1, other.o1j_1))
|
|
235
235
|
return false;
|
|
236
236
|
return true;
|
|
237
237
|
};
|
|
238
238
|
function Task() {
|
|
239
239
|
}
|
|
240
240
|
function Read(continuation) {
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
241
|
+
this.u1j_1 = continuation;
|
|
242
|
+
this.v1j_1 = null;
|
|
243
243
|
if (get_DEVELOPMENT_MODE()) {
|
|
244
244
|
var tmp = this;
|
|
245
245
|
// Inline function 'kotlin.also' call
|
|
246
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
246
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.u1j_1), 16));
|
|
247
247
|
stackTraceToString(this_0);
|
|
248
|
-
tmp.
|
|
248
|
+
tmp.v1j_1 = this_0;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
protoOf(Read).
|
|
252
|
-
return this.
|
|
251
|
+
protoOf(Read).q1j = function () {
|
|
252
|
+
return this.u1j_1;
|
|
253
253
|
};
|
|
254
|
-
protoOf(Read).
|
|
255
|
-
return this.
|
|
254
|
+
protoOf(Read).p1j = function () {
|
|
255
|
+
return this.v1j_1;
|
|
256
256
|
};
|
|
257
|
-
protoOf(Read).
|
|
257
|
+
protoOf(Read).r1j = function () {
|
|
258
258
|
return 'read';
|
|
259
259
|
};
|
|
260
260
|
function Write(continuation) {
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
261
|
+
this.w1j_1 = continuation;
|
|
262
|
+
this.x1j_1 = null;
|
|
263
263
|
if (get_DEVELOPMENT_MODE()) {
|
|
264
264
|
var tmp = this;
|
|
265
265
|
// Inline function 'kotlin.also' call
|
|
266
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
266
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.w1j_1), 16));
|
|
267
267
|
stackTraceToString(this_0);
|
|
268
|
-
tmp.
|
|
268
|
+
tmp.x1j_1 = this_0;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
protoOf(Write).
|
|
272
|
-
return this.
|
|
271
|
+
protoOf(Write).q1j = function () {
|
|
272
|
+
return this.w1j_1;
|
|
273
273
|
};
|
|
274
|
-
protoOf(Write).
|
|
275
|
-
return this.
|
|
274
|
+
protoOf(Write).p1j = function () {
|
|
275
|
+
return this.x1j_1;
|
|
276
276
|
};
|
|
277
|
-
protoOf(Write).
|
|
277
|
+
protoOf(Write).r1j = function () {
|
|
278
278
|
return 'write';
|
|
279
279
|
};
|
|
280
280
|
function moveFlushToReadBuffer($this) {
|
|
281
281
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
282
|
-
$this.
|
|
283
|
-
$this.
|
|
284
|
-
$this.
|
|
282
|
+
$this.b1k_1;
|
|
283
|
+
$this.z1j_1.zp($this.d1k_1);
|
|
284
|
+
$this.a1k_1 = 0;
|
|
285
285
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
286
|
-
var current = $this.
|
|
286
|
+
var current = $this.c1k_1.kotlinx$atomicfu$value;
|
|
287
287
|
var tmp;
|
|
288
288
|
if (current instanceof Write) {
|
|
289
|
-
tmp = $this.
|
|
289
|
+
tmp = $this.c1k_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
290
290
|
} else {
|
|
291
291
|
tmp = false;
|
|
292
292
|
}
|
|
293
293
|
if (tmp) {
|
|
294
|
-
current.
|
|
294
|
+
current.s1j();
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
function closeSlot($this, cause) {
|
|
298
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
299
|
-
var continuation = $this.
|
|
298
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().m1j_1;
|
|
299
|
+
var continuation = $this.c1k_1.atomicfu$getAndSet(closeContinuation);
|
|
300
300
|
if (isInterface(continuation, Task)) {
|
|
301
|
-
continuation.
|
|
301
|
+
continuation.t1j(cause);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -317,50 +317,50 @@
|
|
|
317
317
|
}
|
|
318
318
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
319
319
|
CoroutineImpl.call(this, resultContinuation);
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
320
|
+
this.o1k_1 = _this__u8e3s4;
|
|
321
|
+
this.p1k_1 = min;
|
|
322
322
|
}
|
|
323
|
-
protoOf($awaitContentCOROUTINE$).
|
|
324
|
-
var suspendResult = this.
|
|
323
|
+
protoOf($awaitContentCOROUTINE$).l9 = function () {
|
|
324
|
+
var suspendResult = this.f9_1;
|
|
325
325
|
$sm: do
|
|
326
326
|
try {
|
|
327
|
-
var tmp = this.
|
|
327
|
+
var tmp = this.d9_1;
|
|
328
328
|
switch (tmp) {
|
|
329
329
|
case 0:
|
|
330
|
-
this.
|
|
331
|
-
rethrowCloseCauseIfNeeded(this.
|
|
332
|
-
if (compare(this.
|
|
330
|
+
this.e9_1 = 4;
|
|
331
|
+
rethrowCloseCauseIfNeeded(this.o1k_1);
|
|
332
|
+
if (compare(this.o1k_1.d1k_1.l1(), fromInt(this.p1k_1)) >= 0)
|
|
333
333
|
return true;
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
334
|
+
this.q1k_1 = this.o1k_1;
|
|
335
|
+
this.d9_1 = 1;
|
|
336
336
|
continue $sm;
|
|
337
337
|
case 1:
|
|
338
|
-
if (!(compare(add(numberToLong(this.
|
|
339
|
-
this.
|
|
338
|
+
if (!(compare(add(numberToLong(this.o1k_1.a1k_1), this.o1k_1.d1k_1.l1()), fromInt(this.p1k_1)) < 0 && this.o1k_1.f1k_1.kotlinx$atomicfu$value == null)) {
|
|
339
|
+
this.d9_1 = 3;
|
|
340
340
|
continue $sm;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
this.
|
|
343
|
+
this.d9_1 = 2;
|
|
344
344
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
345
|
-
cancellable.
|
|
346
|
-
var tmp0 = this.
|
|
345
|
+
cancellable.iw();
|
|
346
|
+
var tmp0 = this.q1k_1;
|
|
347
347
|
var tmp2 = new Read(cancellable);
|
|
348
348
|
l$ret$1: do {
|
|
349
|
-
var previous = tmp0.
|
|
349
|
+
var previous = tmp0.c1k_1.kotlinx$atomicfu$value;
|
|
350
350
|
if (!(previous instanceof Closed)) {
|
|
351
|
-
if (!tmp0.
|
|
352
|
-
tmp2.
|
|
351
|
+
if (!tmp0.c1k_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
352
|
+
tmp2.s1j();
|
|
353
353
|
break l$ret$1;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
if (previous instanceof Read) {
|
|
357
|
-
previous.
|
|
357
|
+
previous.t1j(new ConcurrentIOException(tmp2.r1j(), previous.p1j()));
|
|
358
358
|
} else {
|
|
359
359
|
if (isInterface(previous, Task)) {
|
|
360
|
-
previous.
|
|
360
|
+
previous.s1j();
|
|
361
361
|
} else {
|
|
362
362
|
if (previous instanceof Closed) {
|
|
363
|
-
tmp2.
|
|
363
|
+
tmp2.t1j(previous.o1j_1);
|
|
364
364
|
break l$ret$1;
|
|
365
365
|
} else {
|
|
366
366
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -369,95 +369,95 @@
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
if (!(compare(add(numberToLong(this.
|
|
373
|
-
var current = tmp0.
|
|
372
|
+
if (!(compare(add(numberToLong(this.o1k_1.a1k_1), this.o1k_1.d1k_1.l1()), fromInt(this.p1k_1)) < 0 && this.o1k_1.f1k_1.kotlinx$atomicfu$value == null)) {
|
|
373
|
+
var current = tmp0.c1k_1.kotlinx$atomicfu$value;
|
|
374
374
|
var tmp_0;
|
|
375
375
|
if (current instanceof Read) {
|
|
376
|
-
tmp_0 = tmp0.
|
|
376
|
+
tmp_0 = tmp0.c1k_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
377
377
|
} else {
|
|
378
378
|
tmp_0 = false;
|
|
379
379
|
}
|
|
380
380
|
if (tmp_0) {
|
|
381
|
-
current.
|
|
381
|
+
current.s1j();
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
while (false);
|
|
386
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
386
|
+
suspendResult = returnIfSuspended(cancellable.jw(), this);
|
|
387
387
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
388
388
|
return suspendResult;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
continue $sm;
|
|
392
392
|
case 2:
|
|
393
|
-
this.
|
|
393
|
+
this.d9_1 = 1;
|
|
394
394
|
continue $sm;
|
|
395
395
|
case 3:
|
|
396
|
-
if (compare(this.
|
|
397
|
-
moveFlushToReadBuffer(this.
|
|
396
|
+
if (compare(this.o1k_1.d1k_1.l1(), new Long(1048576, 0)) < 0) {
|
|
397
|
+
moveFlushToReadBuffer(this.o1k_1);
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
return compare(this.
|
|
400
|
+
return compare(this.o1k_1.d1k_1.l1(), fromInt(this.p1k_1)) >= 0;
|
|
401
401
|
case 4:
|
|
402
|
-
throw this.
|
|
402
|
+
throw this.g9_1;
|
|
403
403
|
}
|
|
404
404
|
} catch ($p) {
|
|
405
405
|
var e = $p;
|
|
406
|
-
if (this.
|
|
406
|
+
if (this.e9_1 === 4) {
|
|
407
407
|
throw e;
|
|
408
408
|
} else {
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
409
|
+
this.d9_1 = this.e9_1;
|
|
410
|
+
this.g9_1 = e;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
while (true);
|
|
414
414
|
};
|
|
415
415
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
416
416
|
CoroutineImpl.call(this, resultContinuation);
|
|
417
|
-
this.
|
|
417
|
+
this.z1k_1 = _this__u8e3s4;
|
|
418
418
|
}
|
|
419
|
-
protoOf($flushCOROUTINE$).
|
|
420
|
-
var suspendResult = this.
|
|
419
|
+
protoOf($flushCOROUTINE$).l9 = function () {
|
|
420
|
+
var suspendResult = this.f9_1;
|
|
421
421
|
$sm: do
|
|
422
422
|
try {
|
|
423
|
-
var tmp = this.
|
|
423
|
+
var tmp = this.d9_1;
|
|
424
424
|
switch (tmp) {
|
|
425
425
|
case 0:
|
|
426
|
-
this.
|
|
427
|
-
rethrowCloseCauseIfNeeded(this.
|
|
428
|
-
this.
|
|
429
|
-
if (this.
|
|
426
|
+
this.e9_1 = 4;
|
|
427
|
+
rethrowCloseCauseIfNeeded(this.z1k_1);
|
|
428
|
+
this.z1k_1.b1l();
|
|
429
|
+
if (this.z1k_1.a1k_1 < 1048576)
|
|
430
430
|
return Unit_instance;
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
431
|
+
this.a1l_1 = this.z1k_1;
|
|
432
|
+
this.d9_1 = 1;
|
|
433
433
|
continue $sm;
|
|
434
434
|
case 1:
|
|
435
|
-
if (!(this.
|
|
436
|
-
this.
|
|
435
|
+
if (!(this.z1k_1.a1k_1 >= 1048576 && this.z1k_1.f1k_1.kotlinx$atomicfu$value == null)) {
|
|
436
|
+
this.d9_1 = 3;
|
|
437
437
|
continue $sm;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
this.
|
|
440
|
+
this.d9_1 = 2;
|
|
441
441
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
442
|
-
cancellable.
|
|
443
|
-
var tmp0 = this.
|
|
442
|
+
cancellable.iw();
|
|
443
|
+
var tmp0 = this.a1l_1;
|
|
444
444
|
var tmp2 = new Write(cancellable);
|
|
445
445
|
l$ret$1: do {
|
|
446
|
-
var previous = tmp0.
|
|
446
|
+
var previous = tmp0.c1k_1.kotlinx$atomicfu$value;
|
|
447
447
|
if (!(previous instanceof Closed)) {
|
|
448
|
-
if (!tmp0.
|
|
449
|
-
tmp2.
|
|
448
|
+
if (!tmp0.c1k_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
449
|
+
tmp2.s1j();
|
|
450
450
|
break l$ret$1;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
if (previous instanceof Write) {
|
|
454
|
-
previous.
|
|
454
|
+
previous.t1j(new ConcurrentIOException(tmp2.r1j(), previous.p1j()));
|
|
455
455
|
} else {
|
|
456
456
|
if (isInterface(previous, Task)) {
|
|
457
|
-
previous.
|
|
457
|
+
previous.s1j();
|
|
458
458
|
} else {
|
|
459
459
|
if (previous instanceof Closed) {
|
|
460
|
-
tmp2.
|
|
460
|
+
tmp2.t1j(previous.o1j_1);
|
|
461
461
|
break l$ret$1;
|
|
462
462
|
} else {
|
|
463
463
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -466,208 +466,207 @@
|
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
if (!(this.
|
|
470
|
-
var current = tmp0.
|
|
469
|
+
if (!(this.z1k_1.a1k_1 >= 1048576 && this.z1k_1.f1k_1.kotlinx$atomicfu$value == null)) {
|
|
470
|
+
var current = tmp0.c1k_1.kotlinx$atomicfu$value;
|
|
471
471
|
var tmp_0;
|
|
472
472
|
if (current instanceof Write) {
|
|
473
|
-
tmp_0 = tmp0.
|
|
473
|
+
tmp_0 = tmp0.c1k_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
474
474
|
} else {
|
|
475
475
|
tmp_0 = false;
|
|
476
476
|
}
|
|
477
477
|
if (tmp_0) {
|
|
478
|
-
current.
|
|
478
|
+
current.s1j();
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
while (false);
|
|
483
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
483
|
+
suspendResult = returnIfSuspended(cancellable.jw(), this);
|
|
484
484
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
485
485
|
return suspendResult;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
continue $sm;
|
|
489
489
|
case 2:
|
|
490
|
-
this.
|
|
490
|
+
this.d9_1 = 1;
|
|
491
491
|
continue $sm;
|
|
492
492
|
case 3:
|
|
493
493
|
return Unit_instance;
|
|
494
494
|
case 4:
|
|
495
|
-
throw this.
|
|
495
|
+
throw this.g9_1;
|
|
496
496
|
}
|
|
497
497
|
} catch ($p) {
|
|
498
498
|
var e = $p;
|
|
499
|
-
if (this.
|
|
499
|
+
if (this.e9_1 === 4) {
|
|
500
500
|
throw e;
|
|
501
501
|
} else {
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
502
|
+
this.d9_1 = this.e9_1;
|
|
503
|
+
this.g9_1 = e;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
while (true);
|
|
507
507
|
};
|
|
508
508
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
509
509
|
CoroutineImpl.call(this, resultContinuation);
|
|
510
|
-
this.
|
|
510
|
+
this.k1l_1 = _this__u8e3s4;
|
|
511
511
|
}
|
|
512
|
-
protoOf($flushAndCloseCOROUTINE$).
|
|
513
|
-
var suspendResult = this.
|
|
512
|
+
protoOf($flushAndCloseCOROUTINE$).l9 = function () {
|
|
513
|
+
var suspendResult = this.f9_1;
|
|
514
514
|
$sm: do
|
|
515
515
|
try {
|
|
516
|
-
var tmp = this.
|
|
516
|
+
var tmp = this.d9_1;
|
|
517
517
|
switch (tmp) {
|
|
518
518
|
case 0:
|
|
519
|
-
this.
|
|
520
|
-
var this_0 = this.
|
|
521
|
-
this.
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
suspendResult = this_0.b1m(this);
|
|
519
|
+
this.e9_1 = 4;
|
|
520
|
+
var this_0 = this.k1l_1;
|
|
521
|
+
this.e9_1 = 2;
|
|
522
|
+
this.m1l_1 = Companion_instance;
|
|
523
|
+
this.d9_1 = 1;
|
|
524
|
+
suspendResult = this_0.n1l(this);
|
|
526
525
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
527
526
|
return suspendResult;
|
|
528
527
|
}
|
|
529
528
|
|
|
530
529
|
continue $sm;
|
|
531
530
|
case 1:
|
|
532
|
-
var
|
|
533
|
-
this.
|
|
534
|
-
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
531
|
+
var tmp_0 = this;
|
|
532
|
+
this.m1l_1;
|
|
533
|
+
tmp_0.l1l_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
534
|
+
this.e9_1 = 4;
|
|
535
|
+
this.d9_1 = 3;
|
|
537
536
|
continue $sm;
|
|
538
537
|
case 2:
|
|
539
|
-
this.
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
542
|
-
var e = this.
|
|
543
|
-
var
|
|
544
|
-
|
|
545
|
-
this.
|
|
538
|
+
this.e9_1 = 4;
|
|
539
|
+
var tmp_1 = this.g9_1;
|
|
540
|
+
if (tmp_1 instanceof Error) {
|
|
541
|
+
var e = this.g9_1;
|
|
542
|
+
var tmp_2 = this;
|
|
543
|
+
tmp_2.l1l_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
544
|
+
this.d9_1 = 3;
|
|
546
545
|
continue $sm;
|
|
547
546
|
} else {
|
|
548
|
-
throw this.
|
|
547
|
+
throw this.g9_1;
|
|
549
548
|
}
|
|
550
549
|
|
|
551
550
|
case 3:
|
|
552
|
-
this.
|
|
553
|
-
if (!this.
|
|
551
|
+
this.e9_1 = 4;
|
|
552
|
+
if (!this.k1l_1.f1k_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
554
553
|
return Unit_instance;
|
|
555
|
-
closeSlot(this.
|
|
554
|
+
closeSlot(this.k1l_1, null);
|
|
556
555
|
return Unit_instance;
|
|
557
556
|
case 4:
|
|
558
|
-
throw this.
|
|
557
|
+
throw this.g9_1;
|
|
559
558
|
}
|
|
560
559
|
} catch ($p) {
|
|
561
560
|
var e_0 = $p;
|
|
562
|
-
if (this.
|
|
561
|
+
if (this.e9_1 === 4) {
|
|
563
562
|
throw e_0;
|
|
564
563
|
} else {
|
|
565
|
-
this.
|
|
566
|
-
this.
|
|
564
|
+
this.d9_1 = this.e9_1;
|
|
565
|
+
this.g9_1 = e_0;
|
|
567
566
|
}
|
|
568
567
|
}
|
|
569
568
|
while (true);
|
|
570
569
|
};
|
|
571
570
|
function ByteChannel(autoFlush) {
|
|
572
571
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
581
|
-
}
|
|
582
|
-
protoOf(ByteChannel).
|
|
583
|
-
return this.
|
|
584
|
-
};
|
|
585
|
-
protoOf(ByteChannel).
|
|
586
|
-
var tmp0_safe_receiver = this.
|
|
572
|
+
this.y1j_1 = autoFlush;
|
|
573
|
+
this.z1j_1 = new Buffer();
|
|
574
|
+
this.a1k_1 = 0;
|
|
575
|
+
this.b1k_1 = new Object();
|
|
576
|
+
this.c1k_1 = atomic$ref$1(Empty_instance);
|
|
577
|
+
this.d1k_1 = new Buffer();
|
|
578
|
+
this.e1k_1 = new Buffer();
|
|
579
|
+
this.f1k_1 = atomic$ref$1(null);
|
|
580
|
+
}
|
|
581
|
+
protoOf(ByteChannel).o1l = function () {
|
|
582
|
+
return this.y1j_1;
|
|
583
|
+
};
|
|
584
|
+
protoOf(ByteChannel).p1l = function () {
|
|
585
|
+
var tmp0_safe_receiver = this.f1k_1.kotlinx$atomicfu$value;
|
|
587
586
|
if (tmp0_safe_receiver == null)
|
|
588
587
|
null;
|
|
589
588
|
else {
|
|
590
|
-
tmp0_safe_receiver.
|
|
589
|
+
tmp0_safe_receiver.r1l(ClosedReadChannelException$_init_$ref_ix0089());
|
|
591
590
|
}
|
|
592
|
-
if (this.
|
|
591
|
+
if (this.d1k_1.wo()) {
|
|
593
592
|
moveFlushToReadBuffer(this);
|
|
594
593
|
}
|
|
595
|
-
return this.
|
|
594
|
+
return this.d1k_1;
|
|
596
595
|
};
|
|
597
|
-
protoOf(ByteChannel).
|
|
598
|
-
if (this.
|
|
599
|
-
var tmp0_safe_receiver = this.
|
|
596
|
+
protoOf(ByteChannel).s1l = function () {
|
|
597
|
+
if (this.t1l()) {
|
|
598
|
+
var tmp0_safe_receiver = this.f1k_1.kotlinx$atomicfu$value;
|
|
600
599
|
var tmp;
|
|
601
600
|
if (tmp0_safe_receiver == null) {
|
|
602
601
|
tmp = null;
|
|
603
602
|
} else {
|
|
604
|
-
tmp = tmp0_safe_receiver.
|
|
603
|
+
tmp = tmp0_safe_receiver.r1l(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
605
604
|
}
|
|
606
605
|
if (tmp == null)
|
|
607
606
|
throw new ClosedWriteChannelException();
|
|
608
607
|
}
|
|
609
|
-
return this.
|
|
608
|
+
return this.e1k_1;
|
|
610
609
|
};
|
|
611
|
-
protoOf(ByteChannel).
|
|
612
|
-
var tmp0_safe_receiver = this.
|
|
613
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
610
|
+
protoOf(ByteChannel).u1l = function () {
|
|
611
|
+
var tmp0_safe_receiver = this.f1k_1.kotlinx$atomicfu$value;
|
|
612
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1l();
|
|
614
613
|
};
|
|
615
|
-
protoOf(ByteChannel).
|
|
616
|
-
return !(this.
|
|
614
|
+
protoOf(ByteChannel).t1l = function () {
|
|
615
|
+
return !(this.f1k_1.kotlinx$atomicfu$value == null);
|
|
617
616
|
};
|
|
618
|
-
protoOf(ByteChannel).
|
|
619
|
-
return !(this.
|
|
617
|
+
protoOf(ByteChannel).w1l = function () {
|
|
618
|
+
return !(this.u1l() == null) || (this.t1l() && this.a1k_1 === 0 && this.d1k_1.wo());
|
|
620
619
|
};
|
|
621
|
-
protoOf(ByteChannel).
|
|
620
|
+
protoOf(ByteChannel).x1l = function (min, $completion) {
|
|
622
621
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
623
|
-
tmp.
|
|
624
|
-
tmp.
|
|
625
|
-
return tmp.
|
|
622
|
+
tmp.f9_1 = Unit_instance;
|
|
623
|
+
tmp.g9_1 = null;
|
|
624
|
+
return tmp.l9();
|
|
626
625
|
};
|
|
627
|
-
protoOf(ByteChannel).
|
|
626
|
+
protoOf(ByteChannel).n1l = function ($completion) {
|
|
628
627
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
629
|
-
tmp.
|
|
630
|
-
tmp.
|
|
631
|
-
return tmp.
|
|
628
|
+
tmp.f9_1 = Unit_instance;
|
|
629
|
+
tmp.g9_1 = null;
|
|
630
|
+
return tmp.l9();
|
|
632
631
|
};
|
|
633
|
-
protoOf(ByteChannel).
|
|
634
|
-
if (this.
|
|
632
|
+
protoOf(ByteChannel).b1l = function () {
|
|
633
|
+
if (this.e1k_1.wo())
|
|
635
634
|
return Unit_instance;
|
|
636
635
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
637
|
-
this.
|
|
638
|
-
var count = convertToInt(this.
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
636
|
+
this.b1k_1;
|
|
637
|
+
var count = convertToInt(this.e1k_1.l1());
|
|
638
|
+
this.z1j_1.oq(this.e1k_1);
|
|
639
|
+
this.a1k_1 = this.a1k_1 + count | 0;
|
|
641
640
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
642
|
-
var current = this.
|
|
641
|
+
var current = this.c1k_1.kotlinx$atomicfu$value;
|
|
643
642
|
var tmp;
|
|
644
643
|
if (current instanceof Read) {
|
|
645
|
-
tmp = this.
|
|
644
|
+
tmp = this.c1k_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
646
645
|
} else {
|
|
647
646
|
tmp = false;
|
|
648
647
|
}
|
|
649
648
|
if (tmp) {
|
|
650
|
-
current.
|
|
649
|
+
current.s1j();
|
|
651
650
|
}
|
|
652
651
|
};
|
|
653
|
-
protoOf(ByteChannel).
|
|
654
|
-
this.
|
|
655
|
-
if (!this.
|
|
652
|
+
protoOf(ByteChannel).o4 = function () {
|
|
653
|
+
this.b1l();
|
|
654
|
+
if (!this.f1k_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
656
655
|
return Unit_instance;
|
|
657
656
|
closeSlot(this, null);
|
|
658
657
|
};
|
|
659
|
-
protoOf(ByteChannel).
|
|
658
|
+
protoOf(ByteChannel).z1l = function ($completion) {
|
|
660
659
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
661
|
-
tmp.
|
|
662
|
-
tmp.
|
|
663
|
-
return tmp.
|
|
660
|
+
tmp.f9_1 = Unit_instance;
|
|
661
|
+
tmp.g9_1 = null;
|
|
662
|
+
return tmp.l9();
|
|
664
663
|
};
|
|
665
|
-
protoOf(ByteChannel).
|
|
666
|
-
if (!(this.
|
|
664
|
+
protoOf(ByteChannel).a1m = function (cause) {
|
|
665
|
+
if (!(this.f1k_1.kotlinx$atomicfu$value == null))
|
|
667
666
|
return Unit_instance;
|
|
668
667
|
var closedToken = new CloseToken(cause);
|
|
669
|
-
this.
|
|
670
|
-
var wrappedCause = closedToken.
|
|
668
|
+
this.f1k_1.atomicfu$compareAndSet(null, closedToken);
|
|
669
|
+
var wrappedCause = closedToken.v1l();
|
|
671
670
|
closeSlot(this, wrappedCause);
|
|
672
671
|
};
|
|
673
672
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -683,7 +682,7 @@
|
|
|
683
682
|
length = length === VOID ? content.length : length;
|
|
684
683
|
// Inline function 'kotlin.also' call
|
|
685
684
|
var this_0 = new Buffer();
|
|
686
|
-
this_0.
|
|
685
|
+
this_0.fq(content, offset, offset + length | 0);
|
|
687
686
|
var source = this_0;
|
|
688
687
|
return ByteReadChannel_0(source);
|
|
689
688
|
}
|
|
@@ -691,18 +690,18 @@
|
|
|
691
690
|
return new SourceByteReadChannel(source);
|
|
692
691
|
}
|
|
693
692
|
function buildPartialMatchTable($this) {
|
|
694
|
-
var table = new Int32Array($this.
|
|
693
|
+
var table = new Int32Array($this.c1m_1.l1());
|
|
695
694
|
var j = 0;
|
|
696
695
|
var inductionVariable = 1;
|
|
697
|
-
var last = $this.
|
|
696
|
+
var last = $this.c1m_1.l1();
|
|
698
697
|
if (inductionVariable < last)
|
|
699
698
|
do {
|
|
700
699
|
var i = inductionVariable;
|
|
701
700
|
inductionVariable = inductionVariable + 1 | 0;
|
|
702
|
-
while (j > 0 && !($this.
|
|
701
|
+
while (j > 0 && !($this.c1m_1.m1(i) === $this.c1m_1.m1(j))) {
|
|
703
702
|
j = table[j - 1 | 0];
|
|
704
703
|
}
|
|
705
|
-
if ($this.
|
|
704
|
+
if ($this.c1m_1.m1(i) === $this.c1m_1.m1(j)) {
|
|
706
705
|
j = j + 1 | 0;
|
|
707
706
|
}
|
|
708
707
|
table[i] = j;
|
|
@@ -712,19 +711,19 @@
|
|
|
712
711
|
}
|
|
713
712
|
function advanceToNextPotentialMatch($this, $completion) {
|
|
714
713
|
var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
|
|
715
|
-
tmp.
|
|
716
|
-
tmp.
|
|
717
|
-
return tmp.
|
|
714
|
+
tmp.f9_1 = Unit_instance;
|
|
715
|
+
tmp.g9_1 = null;
|
|
716
|
+
return tmp.l9();
|
|
718
717
|
}
|
|
719
718
|
function checkFullMatch($this, $completion) {
|
|
720
719
|
var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
|
|
721
|
-
tmp.
|
|
722
|
-
tmp.
|
|
723
|
-
return tmp.
|
|
720
|
+
tmp.f9_1 = Unit_instance;
|
|
721
|
+
tmp.g9_1 = null;
|
|
722
|
+
return tmp.l9();
|
|
724
723
|
}
|
|
725
724
|
function checkBounds($this, extra) {
|
|
726
|
-
if (compare(add($this.
|
|
727
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
725
|
+
if (compare(add($this.i1m_1, extra), $this.e1m_1) > 0) {
|
|
726
|
+
throw IOException_init_$Create$('Limit of ' + $this.e1m_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.c1m_1) + '"'));
|
|
728
727
|
}
|
|
729
728
|
}
|
|
730
729
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -732,28 +731,28 @@
|
|
|
732
731
|
}
|
|
733
732
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
734
733
|
CoroutineImpl.call(this, resultContinuation);
|
|
735
|
-
this.
|
|
736
|
-
this.
|
|
734
|
+
this.n1n_1 = _this__u8e3s4;
|
|
735
|
+
this.o1n_1 = ignoreMissing;
|
|
737
736
|
}
|
|
738
|
-
protoOf($findNextCOROUTINE$).
|
|
739
|
-
var suspendResult = this.
|
|
737
|
+
protoOf($findNextCOROUTINE$).l9 = function () {
|
|
738
|
+
var suspendResult = this.f9_1;
|
|
740
739
|
$sm: do
|
|
741
740
|
try {
|
|
742
|
-
var tmp = this.
|
|
741
|
+
var tmp = this.d9_1;
|
|
743
742
|
switch (tmp) {
|
|
744
743
|
case 0:
|
|
745
|
-
this.
|
|
746
|
-
this.
|
|
747
|
-
this.
|
|
744
|
+
this.e9_1 = 9;
|
|
745
|
+
this.n1n_1.i1m_1 = new Long(0, 0);
|
|
746
|
+
this.d9_1 = 1;
|
|
748
747
|
continue $sm;
|
|
749
748
|
case 1:
|
|
750
|
-
if (!this.
|
|
751
|
-
this.
|
|
752
|
-
this.
|
|
749
|
+
if (!this.n1n_1.f1m_1.wo()) {
|
|
750
|
+
this.p1n_1 = true;
|
|
751
|
+
this.d9_1 = 3;
|
|
753
752
|
continue $sm;
|
|
754
753
|
} else {
|
|
755
|
-
this.
|
|
756
|
-
suspendResult = this.
|
|
754
|
+
this.d9_1 = 2;
|
|
755
|
+
suspendResult = this.n1n_1.b1m_1.y1l(VOID, this);
|
|
757
756
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
758
757
|
return suspendResult;
|
|
759
758
|
}
|
|
@@ -761,25 +760,25 @@
|
|
|
761
760
|
}
|
|
762
761
|
|
|
763
762
|
case 2:
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
763
|
+
this.p1n_1 = suspendResult;
|
|
764
|
+
this.d9_1 = 3;
|
|
766
765
|
continue $sm;
|
|
767
766
|
case 3:
|
|
768
|
-
if (!this.
|
|
769
|
-
this.
|
|
767
|
+
if (!this.p1n_1) {
|
|
768
|
+
this.d9_1 = 7;
|
|
770
769
|
continue $sm;
|
|
771
770
|
}
|
|
772
771
|
|
|
773
|
-
this.
|
|
774
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
772
|
+
this.d9_1 = 4;
|
|
773
|
+
suspendResult = advanceToNextPotentialMatch(this.n1n_1, this);
|
|
775
774
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
776
775
|
return suspendResult;
|
|
777
776
|
}
|
|
778
777
|
|
|
779
778
|
continue $sm;
|
|
780
779
|
case 4:
|
|
781
|
-
this.
|
|
782
|
-
suspendResult = checkFullMatch(this.
|
|
780
|
+
this.d9_1 = 5;
|
|
781
|
+
suspendResult = checkFullMatch(this.n1n_1, this);
|
|
783
782
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
784
783
|
return suspendResult;
|
|
785
784
|
}
|
|
@@ -787,66 +786,66 @@
|
|
|
787
786
|
continue $sm;
|
|
788
787
|
case 5:
|
|
789
788
|
if (suspendResult) {
|
|
790
|
-
return this.
|
|
789
|
+
return this.n1n_1.i1m_1;
|
|
791
790
|
} else {
|
|
792
|
-
this.
|
|
791
|
+
this.d9_1 = 6;
|
|
793
792
|
continue $sm;
|
|
794
793
|
}
|
|
795
794
|
|
|
796
795
|
case 6:
|
|
797
|
-
this.
|
|
796
|
+
this.d9_1 = 1;
|
|
798
797
|
continue $sm;
|
|
799
798
|
case 7:
|
|
800
|
-
if (!this.
|
|
801
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
799
|
+
if (!this.o1n_1) {
|
|
800
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.n1n_1, this.n1n_1.c1m_1) + '" but encountered end of input');
|
|
802
801
|
}
|
|
803
802
|
|
|
804
|
-
this.
|
|
805
|
-
this.
|
|
806
|
-
suspendResult = this.
|
|
803
|
+
this.n1n_1.i1m_1 = add(this.n1n_1.i1m_1, this.n1n_1.h1m_1.zp(this.n1n_1.d1m_1.s1l()));
|
|
804
|
+
this.d9_1 = 8;
|
|
805
|
+
suspendResult = this.n1n_1.d1m_1.n1l(this);
|
|
807
806
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
808
807
|
return suspendResult;
|
|
809
808
|
}
|
|
810
809
|
|
|
811
810
|
continue $sm;
|
|
812
811
|
case 8:
|
|
813
|
-
return this.
|
|
812
|
+
return this.n1n_1.i1m_1;
|
|
814
813
|
case 9:
|
|
815
|
-
throw this.
|
|
814
|
+
throw this.g9_1;
|
|
816
815
|
}
|
|
817
816
|
} catch ($p) {
|
|
818
817
|
var e = $p;
|
|
819
|
-
if (this.
|
|
818
|
+
if (this.e9_1 === 9) {
|
|
820
819
|
throw e;
|
|
821
820
|
} else {
|
|
822
|
-
this.
|
|
823
|
-
this.
|
|
821
|
+
this.d9_1 = this.e9_1;
|
|
822
|
+
this.g9_1 = e;
|
|
824
823
|
}
|
|
825
824
|
}
|
|
826
825
|
while (true);
|
|
827
826
|
};
|
|
828
827
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
829
828
|
CoroutineImpl.call(this, resultContinuation);
|
|
830
|
-
this.
|
|
829
|
+
this.s1m_1 = _this__u8e3s4;
|
|
831
830
|
}
|
|
832
|
-
protoOf($advanceToNextPotentialMatchCOROUTINE$).
|
|
833
|
-
var suspendResult = this.
|
|
831
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$).l9 = function () {
|
|
832
|
+
var suspendResult = this.f9_1;
|
|
834
833
|
$sm: do
|
|
835
834
|
try {
|
|
836
|
-
var tmp = this.
|
|
835
|
+
var tmp = this.d9_1;
|
|
837
836
|
switch (tmp) {
|
|
838
837
|
case 0:
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
838
|
+
this.e9_1 = 8;
|
|
839
|
+
this.d9_1 = 1;
|
|
841
840
|
continue $sm;
|
|
842
841
|
case 1:
|
|
843
|
-
if (!this.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
842
|
+
if (!this.s1m_1.f1m_1.wo()) {
|
|
843
|
+
this.t1m_1 = true;
|
|
844
|
+
this.d9_1 = 3;
|
|
846
845
|
continue $sm;
|
|
847
846
|
} else {
|
|
848
|
-
this.
|
|
849
|
-
suspendResult = this.
|
|
847
|
+
this.d9_1 = 2;
|
|
848
|
+
suspendResult = this.s1m_1.b1m_1.y1l(VOID, this);
|
|
850
849
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
851
850
|
return suspendResult;
|
|
852
851
|
}
|
|
@@ -854,34 +853,34 @@
|
|
|
854
853
|
}
|
|
855
854
|
|
|
856
855
|
case 2:
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
856
|
+
this.t1m_1 = suspendResult;
|
|
857
|
+
this.d9_1 = 3;
|
|
859
858
|
continue $sm;
|
|
860
859
|
case 3:
|
|
861
|
-
if (!this.
|
|
862
|
-
this.
|
|
860
|
+
if (!this.t1m_1) {
|
|
861
|
+
this.d9_1 = 7;
|
|
863
862
|
continue $sm;
|
|
864
863
|
}
|
|
865
864
|
|
|
866
|
-
var nextMatch = indexOf(this.
|
|
865
|
+
var nextMatch = indexOf(this.s1m_1.f1m_1, this.s1m_1.c1m_1.m1(0));
|
|
867
866
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
868
|
-
var tmp_0 = this.
|
|
869
|
-
checkBounds(this.
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
suspendResult = flushIfNeeded(this.
|
|
867
|
+
var tmp_0 = this.s1m_1.f1m_1;
|
|
868
|
+
checkBounds(this.s1m_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).l1());
|
|
869
|
+
this.s1m_1.i1m_1 = add(this.s1m_1.i1m_1, this.s1m_1.f1m_1.zp(this.s1m_1.d1m_1.s1l()));
|
|
870
|
+
this.d9_1 = 5;
|
|
871
|
+
suspendResult = flushIfNeeded(this.s1m_1.d1m_1, this);
|
|
873
872
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
874
873
|
return suspendResult;
|
|
875
874
|
}
|
|
876
875
|
continue $sm;
|
|
877
876
|
} else {
|
|
878
|
-
checkBounds(this.
|
|
879
|
-
var tmp_1 = this.
|
|
880
|
-
var tmp_2 = this.
|
|
881
|
-
var tmp_3 = this.
|
|
882
|
-
tmp_1.
|
|
883
|
-
this.
|
|
884
|
-
suspendResult = flushIfNeeded(this.
|
|
877
|
+
checkBounds(this.s1m_1, nextMatch);
|
|
878
|
+
var tmp_1 = this.s1m_1;
|
|
879
|
+
var tmp_2 = this.s1m_1.i1m_1;
|
|
880
|
+
var tmp_3 = this.s1m_1.d1m_1.s1l();
|
|
881
|
+
tmp_1.i1m_1 = add(tmp_2, this.s1m_1.f1m_1.wp(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
882
|
+
this.d9_1 = 4;
|
|
883
|
+
suspendResult = flushIfNeeded(this.s1m_1.d1m_1, this);
|
|
885
884
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
886
885
|
return suspendResult;
|
|
887
886
|
}
|
|
@@ -891,49 +890,49 @@
|
|
|
891
890
|
case 4:
|
|
892
891
|
return Unit_instance;
|
|
893
892
|
case 5:
|
|
894
|
-
this.
|
|
893
|
+
this.d9_1 = 6;
|
|
895
894
|
continue $sm;
|
|
896
895
|
case 6:
|
|
897
|
-
this.
|
|
896
|
+
this.d9_1 = 1;
|
|
898
897
|
continue $sm;
|
|
899
898
|
case 7:
|
|
900
899
|
return Unit_instance;
|
|
901
900
|
case 8:
|
|
902
|
-
throw this.
|
|
901
|
+
throw this.g9_1;
|
|
903
902
|
}
|
|
904
903
|
} catch ($p) {
|
|
905
904
|
var e = $p;
|
|
906
|
-
if (this.
|
|
905
|
+
if (this.e9_1 === 8) {
|
|
907
906
|
throw e;
|
|
908
907
|
} else {
|
|
909
|
-
this.
|
|
910
|
-
this.
|
|
908
|
+
this.d9_1 = this.e9_1;
|
|
909
|
+
this.g9_1 = e;
|
|
911
910
|
}
|
|
912
911
|
}
|
|
913
912
|
while (true);
|
|
914
913
|
};
|
|
915
914
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
916
915
|
CoroutineImpl.call(this, resultContinuation);
|
|
917
|
-
this.
|
|
916
|
+
this.c1n_1 = _this__u8e3s4;
|
|
918
917
|
}
|
|
919
|
-
protoOf($checkFullMatchCOROUTINE$).
|
|
920
|
-
var suspendResult = this.
|
|
918
|
+
protoOf($checkFullMatchCOROUTINE$).l9 = function () {
|
|
919
|
+
var suspendResult = this.f9_1;
|
|
921
920
|
$sm: do
|
|
922
921
|
try {
|
|
923
|
-
var tmp = this.
|
|
922
|
+
var tmp = this.d9_1;
|
|
924
923
|
switch (tmp) {
|
|
925
924
|
case 0:
|
|
926
|
-
this.
|
|
927
|
-
this.
|
|
925
|
+
this.e9_1 = 8;
|
|
926
|
+
this.d9_1 = 1;
|
|
928
927
|
continue $sm;
|
|
929
928
|
case 1:
|
|
930
|
-
if (!this.
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
929
|
+
if (!this.c1n_1.f1m_1.wo()) {
|
|
930
|
+
this.e1n_1 = true;
|
|
931
|
+
this.d9_1 = 3;
|
|
933
932
|
continue $sm;
|
|
934
933
|
} else {
|
|
935
|
-
this.
|
|
936
|
-
suspendResult = this.
|
|
934
|
+
this.d9_1 = 2;
|
|
935
|
+
suspendResult = this.c1n_1.b1m_1.y1l(VOID, this);
|
|
937
936
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
938
937
|
return suspendResult;
|
|
939
938
|
}
|
|
@@ -941,120 +940,120 @@
|
|
|
941
940
|
}
|
|
942
941
|
|
|
943
942
|
case 2:
|
|
944
|
-
this.
|
|
945
|
-
this.
|
|
943
|
+
this.e1n_1 = suspendResult;
|
|
944
|
+
this.d9_1 = 3;
|
|
946
945
|
continue $sm;
|
|
947
946
|
case 3:
|
|
948
|
-
if (!this.
|
|
949
|
-
this.
|
|
947
|
+
if (!this.e1n_1) {
|
|
948
|
+
this.d9_1 = 7;
|
|
950
949
|
continue $sm;
|
|
951
950
|
}
|
|
952
951
|
|
|
953
|
-
this.
|
|
954
|
-
if (this.
|
|
955
|
-
var oldMatchIndex = this.
|
|
956
|
-
while (this.
|
|
957
|
-
this.
|
|
952
|
+
this.d1n_1 = this.c1n_1.f1m_1.zo();
|
|
953
|
+
if (this.c1n_1.j1m_1 > 0 && !(this.d1n_1 === this.c1n_1.c1m_1.m1(this.c1n_1.j1m_1))) {
|
|
954
|
+
var oldMatchIndex = this.c1n_1.j1m_1;
|
|
955
|
+
while (this.c1n_1.j1m_1 > 0 && !(this.d1n_1 === this.c1n_1.c1m_1.m1(this.c1n_1.j1m_1))) {
|
|
956
|
+
this.c1n_1.j1m_1 = this.c1n_1.g1m_1[this.c1n_1.j1m_1 - 1 | 0];
|
|
958
957
|
}
|
|
959
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
960
|
-
checkBounds(this.
|
|
961
|
-
var tmp_0 = this.
|
|
962
|
-
var tmp_1 = this.
|
|
963
|
-
var tmp_2 = this.
|
|
964
|
-
tmp_0.
|
|
965
|
-
if (this.
|
|
966
|
-
this.
|
|
967
|
-
suspendResult = writeByte(this.
|
|
958
|
+
var retained = fromInt(oldMatchIndex - this.c1n_1.j1m_1 | 0);
|
|
959
|
+
checkBounds(this.c1n_1, retained);
|
|
960
|
+
var tmp_0 = this.c1n_1;
|
|
961
|
+
var tmp_1 = this.c1n_1.i1m_1;
|
|
962
|
+
var tmp_2 = this.c1n_1.d1m_1.s1l();
|
|
963
|
+
tmp_0.i1m_1 = add(tmp_1, this.c1n_1.h1m_1.wp(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
964
|
+
if (this.c1n_1.j1m_1 === 0 && !(this.d1n_1 === this.c1n_1.c1m_1.m1(this.c1n_1.j1m_1))) {
|
|
965
|
+
this.d9_1 = 6;
|
|
966
|
+
suspendResult = writeByte(this.c1n_1.d1m_1, this.d1n_1, this);
|
|
968
967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
969
968
|
return suspendResult;
|
|
970
969
|
}
|
|
971
970
|
continue $sm;
|
|
972
971
|
} else {
|
|
973
|
-
this.
|
|
972
|
+
this.d9_1 = 4;
|
|
974
973
|
continue $sm;
|
|
975
974
|
}
|
|
976
975
|
} else {
|
|
977
|
-
this.
|
|
976
|
+
this.d9_1 = 5;
|
|
978
977
|
continue $sm;
|
|
979
978
|
}
|
|
980
979
|
|
|
981
980
|
case 4:
|
|
982
|
-
this.
|
|
981
|
+
this.d9_1 = 5;
|
|
983
982
|
continue $sm;
|
|
984
983
|
case 5:
|
|
985
|
-
this.
|
|
986
|
-
if (this.
|
|
984
|
+
this.c1n_1.j1m_1 = this.c1n_1.j1m_1 + 1 | 0;
|
|
985
|
+
if (this.c1n_1.j1m_1 === this.c1n_1.c1m_1.l1()) {
|
|
987
986
|
return true;
|
|
988
987
|
}
|
|
989
988
|
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
989
|
+
this.c1n_1.h1m_1.pq(this.d1n_1);
|
|
990
|
+
this.d9_1 = 1;
|
|
992
991
|
continue $sm;
|
|
993
992
|
case 6:
|
|
994
|
-
var _unary__edvuaz = this.
|
|
995
|
-
this.
|
|
993
|
+
var _unary__edvuaz = this.c1n_1.i1m_1;
|
|
994
|
+
this.c1n_1.i1m_1 = add(_unary__edvuaz, get_ONE());
|
|
996
995
|
return false;
|
|
997
996
|
case 7:
|
|
998
997
|
return false;
|
|
999
998
|
case 8:
|
|
1000
|
-
throw this.
|
|
999
|
+
throw this.g9_1;
|
|
1001
1000
|
}
|
|
1002
1001
|
} catch ($p) {
|
|
1003
1002
|
var e = $p;
|
|
1004
|
-
if (this.
|
|
1003
|
+
if (this.e9_1 === 8) {
|
|
1005
1004
|
throw e;
|
|
1006
1005
|
} else {
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1006
|
+
this.d9_1 = this.e9_1;
|
|
1007
|
+
this.g9_1 = e;
|
|
1009
1008
|
}
|
|
1010
1009
|
}
|
|
1011
1010
|
while (true);
|
|
1012
1011
|
};
|
|
1013
1012
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1014
1013
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1014
|
+
this.b1m_1 = channel;
|
|
1015
|
+
this.c1m_1 = matchString;
|
|
1016
|
+
this.d1m_1 = writeChannel;
|
|
1017
|
+
this.e1m_1 = limit;
|
|
1019
1018
|
// Inline function 'kotlin.require' call
|
|
1020
|
-
if (!(this.
|
|
1019
|
+
if (!(this.c1m_1.l1() > 0)) {
|
|
1021
1020
|
var message = 'Empty match string not permitted for scanning';
|
|
1022
1021
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1023
1022
|
}
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1028
|
-
this.
|
|
1023
|
+
this.f1m_1 = this.b1m_1.p1l();
|
|
1024
|
+
this.g1m_1 = buildPartialMatchTable(this);
|
|
1025
|
+
this.h1m_1 = new Buffer();
|
|
1026
|
+
this.i1m_1 = new Long(0, 0);
|
|
1027
|
+
this.j1m_1 = 0;
|
|
1029
1028
|
}
|
|
1030
|
-
protoOf(ByteChannelScanner).
|
|
1029
|
+
protoOf(ByteChannelScanner).q1n = function (ignoreMissing, $completion) {
|
|
1031
1030
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1032
|
-
tmp.
|
|
1033
|
-
tmp.
|
|
1034
|
-
return tmp.
|
|
1031
|
+
tmp.f9_1 = Unit_instance;
|
|
1032
|
+
tmp.g9_1 = null;
|
|
1033
|
+
return tmp.l9();
|
|
1035
1034
|
};
|
|
1036
1035
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1036
|
+
this.r1n_1 = null;
|
|
1037
|
+
this.s1n_1 = new Buffer();
|
|
1039
1038
|
}
|
|
1040
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1041
|
-
return this.
|
|
1039
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u1l = function () {
|
|
1040
|
+
return this.r1n_1;
|
|
1042
1041
|
};
|
|
1043
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1042
|
+
protoOf(ByteReadChannel$Companion$Empty$1).w1l = function () {
|
|
1044
1043
|
return true;
|
|
1045
1044
|
};
|
|
1046
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1047
|
-
return this.
|
|
1045
|
+
protoOf(ByteReadChannel$Companion$Empty$1).p1l = function () {
|
|
1046
|
+
return this.s1n_1;
|
|
1048
1047
|
};
|
|
1049
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1048
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x1l = function (min, $completion) {
|
|
1050
1049
|
return false;
|
|
1051
1050
|
};
|
|
1052
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1051
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a1m = function (cause) {
|
|
1053
1052
|
};
|
|
1054
1053
|
function Companion_0() {
|
|
1055
1054
|
Companion_instance_1 = this;
|
|
1056
1055
|
var tmp = this;
|
|
1057
|
-
tmp.
|
|
1056
|
+
tmp.t1n_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1058
1057
|
}
|
|
1059
1058
|
var Companion_instance_1;
|
|
1060
1059
|
function Companion_getInstance_0() {
|
|
@@ -1065,80 +1064,80 @@
|
|
|
1065
1064
|
function ByteReadChannel_1() {
|
|
1066
1065
|
}
|
|
1067
1066
|
function cancel_0(_this__u8e3s4) {
|
|
1068
|
-
_this__u8e3s4.
|
|
1067
|
+
_this__u8e3s4.a1m(IOException_init_$Create$('Channel was cancelled'));
|
|
1069
1068
|
}
|
|
1070
1069
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1071
1070
|
offset = offset === VOID ? 0 : offset;
|
|
1072
1071
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1073
1072
|
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1074
|
-
tmp.
|
|
1075
|
-
tmp.
|
|
1076
|
-
return tmp.
|
|
1073
|
+
tmp.f9_1 = Unit_instance;
|
|
1074
|
+
tmp.g9_1 = null;
|
|
1075
|
+
return tmp.l9();
|
|
1077
1076
|
}
|
|
1078
1077
|
function copyTo(_this__u8e3s4, channel, $completion) {
|
|
1079
1078
|
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, $completion);
|
|
1080
|
-
tmp.
|
|
1081
|
-
tmp.
|
|
1082
|
-
return tmp.
|
|
1079
|
+
tmp.f9_1 = Unit_instance;
|
|
1080
|
+
tmp.g9_1 = null;
|
|
1081
|
+
return tmp.l9();
|
|
1083
1082
|
}
|
|
1084
1083
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1085
1084
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
1086
|
-
tmp.
|
|
1087
|
-
tmp.
|
|
1088
|
-
return tmp.
|
|
1085
|
+
tmp.f9_1 = Unit_instance;
|
|
1086
|
+
tmp.g9_1 = null;
|
|
1087
|
+
return tmp.l9();
|
|
1089
1088
|
}
|
|
1090
1089
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
1091
1090
|
var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
|
|
1092
|
-
tmp.
|
|
1093
|
-
tmp.
|
|
1094
|
-
return tmp.
|
|
1091
|
+
tmp.f9_1 = Unit_instance;
|
|
1092
|
+
tmp.g9_1 = null;
|
|
1093
|
+
return tmp.l9();
|
|
1095
1094
|
}
|
|
1096
1095
|
function copyTo_0(_this__u8e3s4, channel, limit, $completion) {
|
|
1097
1096
|
var tmp = new $copyToCOROUTINE$_0(_this__u8e3s4, channel, limit, $completion);
|
|
1098
|
-
tmp.
|
|
1099
|
-
tmp.
|
|
1100
|
-
return tmp.
|
|
1097
|
+
tmp.f9_1 = Unit_instance;
|
|
1098
|
+
tmp.g9_1 = null;
|
|
1099
|
+
return tmp.l9();
|
|
1101
1100
|
}
|
|
1102
1101
|
function discard(_this__u8e3s4, max, $completion) {
|
|
1103
1102
|
max = max === VOID ? new Long(-1, 2147483647) : max;
|
|
1104
1103
|
var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
|
|
1105
|
-
tmp.
|
|
1106
|
-
tmp.
|
|
1107
|
-
return tmp.
|
|
1104
|
+
tmp.f9_1 = Unit_instance;
|
|
1105
|
+
tmp.g9_1 = null;
|
|
1106
|
+
return tmp.l9();
|
|
1108
1107
|
}
|
|
1109
1108
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1110
1109
|
var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
|
|
1111
|
-
tmp.
|
|
1112
|
-
tmp.
|
|
1113
|
-
return tmp.
|
|
1110
|
+
tmp.f9_1 = Unit_instance;
|
|
1111
|
+
tmp.g9_1 = null;
|
|
1112
|
+
return tmp.l9();
|
|
1114
1113
|
}
|
|
1115
1114
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
1116
1115
|
var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
|
|
1117
|
-
tmp.
|
|
1118
|
-
tmp.
|
|
1119
|
-
return tmp.
|
|
1116
|
+
tmp.f9_1 = Unit_instance;
|
|
1117
|
+
tmp.g9_1 = null;
|
|
1118
|
+
return tmp.l9();
|
|
1120
1119
|
}
|
|
1121
1120
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1122
1121
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1123
1122
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1124
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1123
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).q1n(ignoreMissing, $completion);
|
|
1125
1124
|
}
|
|
1126
1125
|
function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
1127
1126
|
max = max === VOID ? 2147483647 : max;
|
|
1128
|
-
lineEnding = lineEnding === VOID ? Companion_getInstance_1().
|
|
1127
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().h1r_1 : lineEnding;
|
|
1129
1128
|
var tmp = new $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
1130
|
-
tmp.
|
|
1131
|
-
tmp.
|
|
1132
|
-
return tmp.
|
|
1129
|
+
tmp.f9_1 = Unit_instance;
|
|
1130
|
+
tmp.g9_1 = null;
|
|
1131
|
+
return tmp.l9();
|
|
1133
1132
|
}
|
|
1134
1133
|
function readRemaining_0(_this__u8e3s4, max, $completion) {
|
|
1135
1134
|
var tmp = new $readRemainingCOROUTINE$_0(_this__u8e3s4, max, $completion);
|
|
1136
|
-
tmp.
|
|
1137
|
-
tmp.
|
|
1138
|
-
return tmp.
|
|
1135
|
+
tmp.f9_1 = Unit_instance;
|
|
1136
|
+
tmp.g9_1 = null;
|
|
1137
|
+
return tmp.l9();
|
|
1139
1138
|
}
|
|
1140
1139
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1141
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1140
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1l();
|
|
1142
1141
|
if (tmp0_safe_receiver == null)
|
|
1143
1142
|
null;
|
|
1144
1143
|
else {
|
|
@@ -1147,7 +1146,7 @@
|
|
|
1147
1146
|
}
|
|
1148
1147
|
}
|
|
1149
1148
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1150
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1149
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1l();
|
|
1151
1150
|
if (tmp0_safe_receiver == null)
|
|
1152
1151
|
null;
|
|
1153
1152
|
else {
|
|
@@ -1157,21 +1156,21 @@
|
|
|
1157
1156
|
}
|
|
1158
1157
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1159
1158
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1160
|
-
tmp.
|
|
1161
|
-
tmp.
|
|
1162
|
-
return tmp.
|
|
1159
|
+
tmp.f9_1 = Unit_instance;
|
|
1160
|
+
tmp.g9_1 = null;
|
|
1161
|
+
return tmp.l9();
|
|
1163
1162
|
}
|
|
1164
1163
|
function get_availableForRead(_this__u8e3s4) {
|
|
1165
|
-
return convertToInt(_this__u8e3s4.
|
|
1164
|
+
return convertToInt(_this__u8e3s4.p1l().vo().l1());
|
|
1166
1165
|
}
|
|
1167
1166
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1168
1167
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
1169
|
-
tmp.
|
|
1170
|
-
tmp.
|
|
1171
|
-
return tmp.
|
|
1168
|
+
tmp.f9_1 = Unit_instance;
|
|
1169
|
+
tmp.g9_1 = null;
|
|
1170
|
+
return tmp.l9();
|
|
1172
1171
|
}
|
|
1173
1172
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1174
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1173
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1l();
|
|
1175
1174
|
if (tmp0_safe_receiver == null)
|
|
1176
1175
|
null;
|
|
1177
1176
|
else {
|
|
@@ -1186,216 +1185,216 @@
|
|
|
1186
1185
|
}
|
|
1187
1186
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1188
1187
|
CoroutineImpl.call(this, resultContinuation);
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1188
|
+
this.c1o_1 = _this__u8e3s4;
|
|
1189
|
+
this.d1o_1 = buffer;
|
|
1190
|
+
this.e1o_1 = offset;
|
|
1191
|
+
this.f1o_1 = length;
|
|
1193
1192
|
}
|
|
1194
|
-
protoOf($readAvailableCOROUTINE$).
|
|
1195
|
-
var suspendResult = this.
|
|
1193
|
+
protoOf($readAvailableCOROUTINE$).l9 = function () {
|
|
1194
|
+
var suspendResult = this.f9_1;
|
|
1196
1195
|
$sm: do
|
|
1197
1196
|
try {
|
|
1198
|
-
var tmp = this.
|
|
1197
|
+
var tmp = this.d9_1;
|
|
1199
1198
|
switch (tmp) {
|
|
1200
1199
|
case 0:
|
|
1201
|
-
this.
|
|
1202
|
-
if (this.
|
|
1200
|
+
this.e9_1 = 3;
|
|
1201
|
+
if (this.c1o_1.w1l())
|
|
1203
1202
|
return -1;
|
|
1204
|
-
if (this.
|
|
1205
|
-
this.
|
|
1206
|
-
suspendResult = this.
|
|
1203
|
+
if (this.c1o_1.p1l().wo()) {
|
|
1204
|
+
this.d9_1 = 1;
|
|
1205
|
+
suspendResult = this.c1o_1.y1l(VOID, this);
|
|
1207
1206
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1208
1207
|
return suspendResult;
|
|
1209
1208
|
}
|
|
1210
1209
|
continue $sm;
|
|
1211
1210
|
} else {
|
|
1212
|
-
this.
|
|
1211
|
+
this.d9_1 = 2;
|
|
1213
1212
|
continue $sm;
|
|
1214
1213
|
}
|
|
1215
1214
|
|
|
1216
1215
|
case 1:
|
|
1217
|
-
this.
|
|
1216
|
+
this.d9_1 = 2;
|
|
1218
1217
|
continue $sm;
|
|
1219
1218
|
case 2:
|
|
1220
|
-
if (this.
|
|
1219
|
+
if (this.c1o_1.w1l())
|
|
1221
1220
|
return -1;
|
|
1222
|
-
return readAvailable_0(this.
|
|
1221
|
+
return readAvailable_0(this.c1o_1.p1l(), this.d1o_1, this.e1o_1, this.f1o_1);
|
|
1223
1222
|
case 3:
|
|
1224
|
-
throw this.
|
|
1223
|
+
throw this.g9_1;
|
|
1225
1224
|
}
|
|
1226
1225
|
} catch ($p) {
|
|
1227
1226
|
var e = $p;
|
|
1228
|
-
if (this.
|
|
1227
|
+
if (this.e9_1 === 3) {
|
|
1229
1228
|
throw e;
|
|
1230
1229
|
} else {
|
|
1231
|
-
this.
|
|
1232
|
-
this.
|
|
1230
|
+
this.d9_1 = this.e9_1;
|
|
1231
|
+
this.g9_1 = e;
|
|
1233
1232
|
}
|
|
1234
1233
|
}
|
|
1235
1234
|
while (true);
|
|
1236
1235
|
};
|
|
1237
1236
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, resultContinuation) {
|
|
1238
1237
|
CoroutineImpl.call(this, resultContinuation);
|
|
1239
|
-
this.
|
|
1240
|
-
this.
|
|
1238
|
+
this.o1o_1 = _this__u8e3s4;
|
|
1239
|
+
this.p1o_1 = channel;
|
|
1241
1240
|
}
|
|
1242
|
-
protoOf($copyToCOROUTINE$).
|
|
1243
|
-
var suspendResult = this.
|
|
1241
|
+
protoOf($copyToCOROUTINE$).l9 = function () {
|
|
1242
|
+
var suspendResult = this.f9_1;
|
|
1244
1243
|
$sm: do
|
|
1245
1244
|
try {
|
|
1246
|
-
var tmp = this.
|
|
1245
|
+
var tmp = this.d9_1;
|
|
1247
1246
|
switch (tmp) {
|
|
1248
1247
|
case 0:
|
|
1249
|
-
this.
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1248
|
+
this.e9_1 = 11;
|
|
1249
|
+
this.q1o_1 = new Long(0, 0);
|
|
1250
|
+
this.d9_1 = 1;
|
|
1252
1251
|
continue $sm;
|
|
1253
1252
|
case 1:
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1253
|
+
this.e9_1 = 7;
|
|
1254
|
+
this.e9_1 = 6;
|
|
1255
|
+
this.d9_1 = 2;
|
|
1257
1256
|
continue $sm;
|
|
1258
1257
|
case 2:
|
|
1259
|
-
if (!!this.
|
|
1260
|
-
this.
|
|
1258
|
+
if (!!this.o1o_1.w1l()) {
|
|
1259
|
+
this.d9_1 = 5;
|
|
1261
1260
|
continue $sm;
|
|
1262
1261
|
}
|
|
1263
1262
|
|
|
1264
|
-
this.
|
|
1265
|
-
this.
|
|
1266
|
-
suspendResult = this.
|
|
1263
|
+
this.q1o_1 = add(this.q1o_1, this.o1o_1.p1l().zp(this.p1o_1.s1l()));
|
|
1264
|
+
this.d9_1 = 3;
|
|
1265
|
+
suspendResult = this.p1o_1.n1l(this);
|
|
1267
1266
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1268
1267
|
return suspendResult;
|
|
1269
1268
|
}
|
|
1270
1269
|
|
|
1271
1270
|
continue $sm;
|
|
1272
1271
|
case 3:
|
|
1273
|
-
this.
|
|
1274
|
-
suspendResult = this.
|
|
1272
|
+
this.d9_1 = 4;
|
|
1273
|
+
suspendResult = this.o1o_1.y1l(VOID, this);
|
|
1275
1274
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1276
1275
|
return suspendResult;
|
|
1277
1276
|
}
|
|
1278
1277
|
|
|
1279
1278
|
continue $sm;
|
|
1280
1279
|
case 4:
|
|
1281
|
-
this.
|
|
1280
|
+
this.d9_1 = 2;
|
|
1282
1281
|
continue $sm;
|
|
1283
1282
|
case 5:
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1283
|
+
this.e9_1 = 11;
|
|
1284
|
+
this.d9_1 = 9;
|
|
1286
1285
|
continue $sm;
|
|
1287
1286
|
case 6:
|
|
1288
|
-
this.
|
|
1289
|
-
var tmp_0 = this.
|
|
1287
|
+
this.e9_1 = 7;
|
|
1288
|
+
var tmp_0 = this.g9_1;
|
|
1290
1289
|
if (tmp_0 instanceof Error) {
|
|
1291
|
-
var cause = this.
|
|
1292
|
-
this.
|
|
1293
|
-
close_0(this.
|
|
1290
|
+
var cause = this.g9_1;
|
|
1291
|
+
this.o1o_1.a1m(cause);
|
|
1292
|
+
close_0(this.p1o_1, cause);
|
|
1294
1293
|
throw cause;
|
|
1295
1294
|
} else {
|
|
1296
|
-
throw this.
|
|
1295
|
+
throw this.g9_1;
|
|
1297
1296
|
}
|
|
1298
1297
|
|
|
1299
1298
|
case 7:
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
suspendResult = this.
|
|
1299
|
+
this.e9_1 = 11;
|
|
1300
|
+
this.r1o_1 = this.g9_1;
|
|
1301
|
+
this.d9_1 = 8;
|
|
1302
|
+
suspendResult = this.p1o_1.n1l(this);
|
|
1304
1303
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1305
1304
|
return suspendResult;
|
|
1306
1305
|
}
|
|
1307
1306
|
|
|
1308
1307
|
continue $sm;
|
|
1309
1308
|
case 8:
|
|
1310
|
-
throw this.
|
|
1309
|
+
throw this.r1o_1;
|
|
1311
1310
|
case 9:
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
suspendResult = this.
|
|
1311
|
+
this.e9_1 = 11;
|
|
1312
|
+
this.d9_1 = 10;
|
|
1313
|
+
suspendResult = this.p1o_1.n1l(this);
|
|
1315
1314
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1316
1315
|
return suspendResult;
|
|
1317
1316
|
}
|
|
1318
1317
|
|
|
1319
1318
|
continue $sm;
|
|
1320
1319
|
case 10:
|
|
1321
|
-
return this.
|
|
1320
|
+
return this.q1o_1;
|
|
1322
1321
|
case 11:
|
|
1323
|
-
throw this.
|
|
1322
|
+
throw this.g9_1;
|
|
1324
1323
|
}
|
|
1325
1324
|
} catch ($p) {
|
|
1326
1325
|
var e = $p;
|
|
1327
|
-
if (this.
|
|
1326
|
+
if (this.e9_1 === 11) {
|
|
1328
1327
|
throw e;
|
|
1329
1328
|
} else {
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1329
|
+
this.d9_1 = this.e9_1;
|
|
1330
|
+
this.g9_1 = e;
|
|
1332
1331
|
}
|
|
1333
1332
|
}
|
|
1334
1333
|
while (true);
|
|
1335
1334
|
};
|
|
1336
1335
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1337
1336
|
CoroutineImpl.call(this, resultContinuation);
|
|
1338
|
-
this.
|
|
1337
|
+
this.a1p_1 = _this__u8e3s4;
|
|
1339
1338
|
}
|
|
1340
|
-
protoOf($readRemainingCOROUTINE$).
|
|
1341
|
-
var suspendResult = this.
|
|
1339
|
+
protoOf($readRemainingCOROUTINE$).l9 = function () {
|
|
1340
|
+
var suspendResult = this.f9_1;
|
|
1342
1341
|
$sm: do
|
|
1343
1342
|
try {
|
|
1344
|
-
var tmp = this.
|
|
1343
|
+
var tmp = this.d9_1;
|
|
1345
1344
|
switch (tmp) {
|
|
1346
1345
|
case 0:
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1346
|
+
this.e9_1 = 4;
|
|
1347
|
+
this.b1p_1 = BytePacketBuilder();
|
|
1348
|
+
this.d9_1 = 1;
|
|
1350
1349
|
continue $sm;
|
|
1351
1350
|
case 1:
|
|
1352
|
-
if (!!this.
|
|
1353
|
-
this.
|
|
1351
|
+
if (!!this.a1p_1.w1l()) {
|
|
1352
|
+
this.d9_1 = 3;
|
|
1354
1353
|
continue $sm;
|
|
1355
1354
|
}
|
|
1356
1355
|
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
suspendResult = this.
|
|
1356
|
+
this.b1p_1.oq(this.a1p_1.p1l());
|
|
1357
|
+
this.d9_1 = 2;
|
|
1358
|
+
suspendResult = this.a1p_1.y1l(VOID, this);
|
|
1360
1359
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1361
1360
|
return suspendResult;
|
|
1362
1361
|
}
|
|
1363
1362
|
|
|
1364
1363
|
continue $sm;
|
|
1365
1364
|
case 2:
|
|
1366
|
-
this.
|
|
1365
|
+
this.d9_1 = 1;
|
|
1367
1366
|
continue $sm;
|
|
1368
1367
|
case 3:
|
|
1369
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1370
|
-
return this.
|
|
1368
|
+
rethrowCloseCauseIfNeeded_0(this.a1p_1);
|
|
1369
|
+
return this.b1p_1.vo();
|
|
1371
1370
|
case 4:
|
|
1372
|
-
throw this.
|
|
1371
|
+
throw this.g9_1;
|
|
1373
1372
|
}
|
|
1374
1373
|
} catch ($p) {
|
|
1375
1374
|
var e = $p;
|
|
1376
|
-
if (this.
|
|
1375
|
+
if (this.e9_1 === 4) {
|
|
1377
1376
|
throw e;
|
|
1378
1377
|
} else {
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1378
|
+
this.d9_1 = this.e9_1;
|
|
1379
|
+
this.g9_1 = e;
|
|
1381
1380
|
}
|
|
1382
1381
|
}
|
|
1383
1382
|
while (true);
|
|
1384
1383
|
};
|
|
1385
1384
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1386
1385
|
CoroutineImpl.call(this, resultContinuation);
|
|
1387
|
-
this.
|
|
1386
|
+
this.k1p_1 = _this__u8e3s4;
|
|
1388
1387
|
}
|
|
1389
|
-
protoOf($toByteArrayCOROUTINE$).
|
|
1390
|
-
var suspendResult = this.
|
|
1388
|
+
protoOf($toByteArrayCOROUTINE$).l9 = function () {
|
|
1389
|
+
var suspendResult = this.f9_1;
|
|
1391
1390
|
$sm: do
|
|
1392
1391
|
try {
|
|
1393
|
-
var tmp = this.
|
|
1392
|
+
var tmp = this.d9_1;
|
|
1394
1393
|
switch (tmp) {
|
|
1395
1394
|
case 0:
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
suspendResult = readBuffer(this.
|
|
1395
|
+
this.e9_1 = 2;
|
|
1396
|
+
this.d9_1 = 1;
|
|
1397
|
+
suspendResult = readBuffer(this.k1p_1, this);
|
|
1399
1398
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1400
1399
|
return suspendResult;
|
|
1401
1400
|
}
|
|
@@ -1405,207 +1404,207 @@
|
|
|
1405
1404
|
var ARGUMENT = suspendResult;
|
|
1406
1405
|
return readBytes(ARGUMENT);
|
|
1407
1406
|
case 2:
|
|
1408
|
-
throw this.
|
|
1407
|
+
throw this.g9_1;
|
|
1409
1408
|
}
|
|
1410
1409
|
} catch ($p) {
|
|
1411
1410
|
var e = $p;
|
|
1412
|
-
if (this.
|
|
1411
|
+
if (this.e9_1 === 2) {
|
|
1413
1412
|
throw e;
|
|
1414
1413
|
} else {
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1414
|
+
this.d9_1 = this.e9_1;
|
|
1415
|
+
this.g9_1 = e;
|
|
1417
1416
|
}
|
|
1418
1417
|
}
|
|
1419
1418
|
while (true);
|
|
1420
1419
|
};
|
|
1421
1420
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1422
1421
|
CoroutineImpl.call(this, resultContinuation);
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1422
|
+
this.t1p_1 = _this__u8e3s4;
|
|
1423
|
+
this.u1p_1 = channel;
|
|
1424
|
+
this.v1p_1 = limit;
|
|
1426
1425
|
}
|
|
1427
|
-
protoOf($copyToCOROUTINE$_0).
|
|
1428
|
-
var suspendResult = this.
|
|
1426
|
+
protoOf($copyToCOROUTINE$_0).l9 = function () {
|
|
1427
|
+
var suspendResult = this.f9_1;
|
|
1429
1428
|
$sm: do
|
|
1430
1429
|
try {
|
|
1431
|
-
var tmp = this.
|
|
1430
|
+
var tmp = this.d9_1;
|
|
1432
1431
|
switch (tmp) {
|
|
1433
1432
|
case 0:
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1433
|
+
this.e9_1 = 12;
|
|
1434
|
+
this.w1p_1 = this.v1p_1;
|
|
1435
|
+
this.d9_1 = 1;
|
|
1437
1436
|
continue $sm;
|
|
1438
1437
|
case 1:
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1438
|
+
this.e9_1 = 8;
|
|
1439
|
+
this.e9_1 = 7;
|
|
1440
|
+
this.d9_1 = 2;
|
|
1442
1441
|
continue $sm;
|
|
1443
1442
|
case 2:
|
|
1444
|
-
if (!(!this.
|
|
1445
|
-
this.
|
|
1443
|
+
if (!(!this.t1p_1.w1l() && compare(this.w1p_1, new Long(0, 0)) > 0)) {
|
|
1444
|
+
this.d9_1 = 6;
|
|
1446
1445
|
continue $sm;
|
|
1447
1446
|
}
|
|
1448
1447
|
|
|
1449
|
-
if (this.
|
|
1450
|
-
this.
|
|
1451
|
-
suspendResult = this.
|
|
1448
|
+
if (this.t1p_1.p1l().wo()) {
|
|
1449
|
+
this.d9_1 = 3;
|
|
1450
|
+
suspendResult = this.t1p_1.y1l(VOID, this);
|
|
1452
1451
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1453
1452
|
return suspendResult;
|
|
1454
1453
|
}
|
|
1455
1454
|
continue $sm;
|
|
1456
1455
|
} else {
|
|
1457
|
-
this.
|
|
1456
|
+
this.d9_1 = 4;
|
|
1458
1457
|
continue $sm;
|
|
1459
1458
|
}
|
|
1460
1459
|
|
|
1461
1460
|
case 3:
|
|
1462
|
-
this.
|
|
1461
|
+
this.d9_1 = 4;
|
|
1463
1462
|
continue $sm;
|
|
1464
1463
|
case 4:
|
|
1465
|
-
var tmp0 = this.
|
|
1466
|
-
var b = get_remaining(this.
|
|
1464
|
+
var tmp0 = this.w1p_1;
|
|
1465
|
+
var b = get_remaining(this.t1p_1.p1l());
|
|
1467
1466
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1468
|
-
this.
|
|
1469
|
-
this.
|
|
1470
|
-
this.
|
|
1471
|
-
suspendResult = this.
|
|
1467
|
+
this.t1p_1.p1l().yp(this.u1p_1.s1l(), count);
|
|
1468
|
+
this.w1p_1 = subtract(this.w1p_1, count);
|
|
1469
|
+
this.d9_1 = 5;
|
|
1470
|
+
suspendResult = this.u1p_1.n1l(this);
|
|
1472
1471
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1473
1472
|
return suspendResult;
|
|
1474
1473
|
}
|
|
1475
1474
|
|
|
1476
1475
|
continue $sm;
|
|
1477
1476
|
case 5:
|
|
1478
|
-
this.
|
|
1477
|
+
this.d9_1 = 2;
|
|
1479
1478
|
continue $sm;
|
|
1480
1479
|
case 6:
|
|
1481
|
-
this.
|
|
1482
|
-
this.
|
|
1480
|
+
this.e9_1 = 12;
|
|
1481
|
+
this.d9_1 = 10;
|
|
1483
1482
|
continue $sm;
|
|
1484
1483
|
case 7:
|
|
1485
|
-
this.
|
|
1486
|
-
var tmp_0 = this.
|
|
1484
|
+
this.e9_1 = 8;
|
|
1485
|
+
var tmp_0 = this.g9_1;
|
|
1487
1486
|
if (tmp_0 instanceof Error) {
|
|
1488
|
-
var cause = this.
|
|
1489
|
-
this.
|
|
1490
|
-
close_0(this.
|
|
1487
|
+
var cause = this.g9_1;
|
|
1488
|
+
this.t1p_1.a1m(cause);
|
|
1489
|
+
close_0(this.u1p_1, cause);
|
|
1491
1490
|
throw cause;
|
|
1492
1491
|
} else {
|
|
1493
|
-
throw this.
|
|
1492
|
+
throw this.g9_1;
|
|
1494
1493
|
}
|
|
1495
1494
|
|
|
1496
1495
|
case 8:
|
|
1497
|
-
this.
|
|
1498
|
-
this.
|
|
1499
|
-
this.
|
|
1500
|
-
suspendResult = this.
|
|
1496
|
+
this.e9_1 = 12;
|
|
1497
|
+
this.x1p_1 = this.g9_1;
|
|
1498
|
+
this.d9_1 = 9;
|
|
1499
|
+
suspendResult = this.u1p_1.n1l(this);
|
|
1501
1500
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1502
1501
|
return suspendResult;
|
|
1503
1502
|
}
|
|
1504
1503
|
|
|
1505
1504
|
continue $sm;
|
|
1506
1505
|
case 9:
|
|
1507
|
-
throw this.
|
|
1506
|
+
throw this.x1p_1;
|
|
1508
1507
|
case 10:
|
|
1509
|
-
this.
|
|
1510
|
-
this.
|
|
1511
|
-
suspendResult = this.
|
|
1508
|
+
this.e9_1 = 12;
|
|
1509
|
+
this.d9_1 = 11;
|
|
1510
|
+
suspendResult = this.u1p_1.n1l(this);
|
|
1512
1511
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1513
1512
|
return suspendResult;
|
|
1514
1513
|
}
|
|
1515
1514
|
|
|
1516
1515
|
continue $sm;
|
|
1517
1516
|
case 11:
|
|
1518
|
-
return subtract(this.
|
|
1517
|
+
return subtract(this.v1p_1, this.w1p_1);
|
|
1519
1518
|
case 12:
|
|
1520
|
-
throw this.
|
|
1519
|
+
throw this.g9_1;
|
|
1521
1520
|
}
|
|
1522
1521
|
} catch ($p) {
|
|
1523
1522
|
var e = $p;
|
|
1524
|
-
if (this.
|
|
1523
|
+
if (this.e9_1 === 12) {
|
|
1525
1524
|
throw e;
|
|
1526
1525
|
} else {
|
|
1527
|
-
this.
|
|
1528
|
-
this.
|
|
1526
|
+
this.d9_1 = this.e9_1;
|
|
1527
|
+
this.g9_1 = e;
|
|
1529
1528
|
}
|
|
1530
1529
|
}
|
|
1531
1530
|
while (true);
|
|
1532
1531
|
};
|
|
1533
1532
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1534
1533
|
CoroutineImpl.call(this, resultContinuation);
|
|
1535
|
-
this.
|
|
1536
|
-
this.
|
|
1534
|
+
this.g1q_1 = _this__u8e3s4;
|
|
1535
|
+
this.h1q_1 = max;
|
|
1537
1536
|
}
|
|
1538
|
-
protoOf($discardCOROUTINE$).
|
|
1539
|
-
var suspendResult = this.
|
|
1537
|
+
protoOf($discardCOROUTINE$).l9 = function () {
|
|
1538
|
+
var suspendResult = this.f9_1;
|
|
1540
1539
|
$sm: do
|
|
1541
1540
|
try {
|
|
1542
|
-
var tmp = this.
|
|
1541
|
+
var tmp = this.d9_1;
|
|
1543
1542
|
switch (tmp) {
|
|
1544
1543
|
case 0:
|
|
1545
|
-
this.
|
|
1546
|
-
this.
|
|
1547
|
-
this.
|
|
1544
|
+
this.e9_1 = 5;
|
|
1545
|
+
this.i1q_1 = this.h1q_1;
|
|
1546
|
+
this.d9_1 = 1;
|
|
1548
1547
|
continue $sm;
|
|
1549
1548
|
case 1:
|
|
1550
|
-
if (!(compare(this.
|
|
1551
|
-
this.
|
|
1549
|
+
if (!(compare(this.i1q_1, new Long(0, 0)) > 0 && !this.g1q_1.w1l())) {
|
|
1550
|
+
this.d9_1 = 4;
|
|
1552
1551
|
continue $sm;
|
|
1553
1552
|
}
|
|
1554
1553
|
|
|
1555
|
-
if (get_availableForRead(this.
|
|
1556
|
-
this.
|
|
1557
|
-
suspendResult = this.
|
|
1554
|
+
if (get_availableForRead(this.g1q_1) === 0) {
|
|
1555
|
+
this.d9_1 = 2;
|
|
1556
|
+
suspendResult = this.g1q_1.y1l(VOID, this);
|
|
1558
1557
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1559
1558
|
return suspendResult;
|
|
1560
1559
|
}
|
|
1561
1560
|
continue $sm;
|
|
1562
1561
|
} else {
|
|
1563
|
-
this.
|
|
1562
|
+
this.d9_1 = 3;
|
|
1564
1563
|
continue $sm;
|
|
1565
1564
|
}
|
|
1566
1565
|
|
|
1567
1566
|
case 2:
|
|
1568
|
-
this.
|
|
1567
|
+
this.d9_1 = 3;
|
|
1569
1568
|
continue $sm;
|
|
1570
1569
|
case 3:
|
|
1571
|
-
var tmp0 = this.
|
|
1572
|
-
var b = get_remaining(this.
|
|
1570
|
+
var tmp0 = this.i1q_1;
|
|
1571
|
+
var b = get_remaining(this.g1q_1.p1l());
|
|
1573
1572
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1574
|
-
discard_0(this.
|
|
1575
|
-
this.
|
|
1576
|
-
this.
|
|
1573
|
+
discard_0(this.g1q_1.p1l(), count);
|
|
1574
|
+
this.i1q_1 = subtract(this.i1q_1, count);
|
|
1575
|
+
this.d9_1 = 1;
|
|
1577
1576
|
continue $sm;
|
|
1578
1577
|
case 4:
|
|
1579
|
-
return subtract(this.
|
|
1578
|
+
return subtract(this.h1q_1, this.i1q_1);
|
|
1580
1579
|
case 5:
|
|
1581
|
-
throw this.
|
|
1580
|
+
throw this.g9_1;
|
|
1582
1581
|
}
|
|
1583
1582
|
} catch ($p) {
|
|
1584
1583
|
var e = $p;
|
|
1585
|
-
if (this.
|
|
1584
|
+
if (this.e9_1 === 5) {
|
|
1586
1585
|
throw e;
|
|
1587
1586
|
} else {
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1587
|
+
this.d9_1 = this.e9_1;
|
|
1588
|
+
this.g9_1 = e;
|
|
1590
1589
|
}
|
|
1591
1590
|
}
|
|
1592
1591
|
while (true);
|
|
1593
1592
|
};
|
|
1594
1593
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1595
1594
|
CoroutineImpl.call(this, resultContinuation);
|
|
1596
|
-
this.
|
|
1597
|
-
this.
|
|
1595
|
+
this.r1q_1 = _this__u8e3s4;
|
|
1596
|
+
this.s1q_1 = byteString;
|
|
1598
1597
|
}
|
|
1599
|
-
protoOf($skipIfFoundCOROUTINE$).
|
|
1600
|
-
var suspendResult = this.
|
|
1598
|
+
protoOf($skipIfFoundCOROUTINE$).l9 = function () {
|
|
1599
|
+
var suspendResult = this.f9_1;
|
|
1601
1600
|
$sm: do
|
|
1602
1601
|
try {
|
|
1603
|
-
var tmp = this.
|
|
1602
|
+
var tmp = this.d9_1;
|
|
1604
1603
|
switch (tmp) {
|
|
1605
1604
|
case 0:
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
suspendResult = peek(this.
|
|
1605
|
+
this.e9_1 = 4;
|
|
1606
|
+
this.d9_1 = 1;
|
|
1607
|
+
suspendResult = peek(this.r1q_1, this.s1q_1.l1(), this);
|
|
1609
1608
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1610
1609
|
return suspendResult;
|
|
1611
1610
|
}
|
|
@@ -1613,15 +1612,15 @@
|
|
|
1613
1612
|
continue $sm;
|
|
1614
1613
|
case 1:
|
|
1615
1614
|
var ARGUMENT = suspendResult;
|
|
1616
|
-
if (equals(ARGUMENT, this.
|
|
1617
|
-
this.
|
|
1618
|
-
suspendResult = discard(this.
|
|
1615
|
+
if (equals(ARGUMENT, this.s1q_1)) {
|
|
1616
|
+
this.d9_1 = 3;
|
|
1617
|
+
suspendResult = discard(this.r1q_1, fromInt(this.s1q_1.l1()), this);
|
|
1619
1618
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1620
1619
|
return suspendResult;
|
|
1621
1620
|
}
|
|
1622
1621
|
continue $sm;
|
|
1623
1622
|
} else {
|
|
1624
|
-
this.
|
|
1623
|
+
this.d9_1 = 2;
|
|
1625
1624
|
continue $sm;
|
|
1626
1625
|
}
|
|
1627
1626
|
|
|
@@ -1630,420 +1629,419 @@
|
|
|
1630
1629
|
case 3:
|
|
1631
1630
|
return true;
|
|
1632
1631
|
case 4:
|
|
1633
|
-
throw this.
|
|
1632
|
+
throw this.g9_1;
|
|
1634
1633
|
}
|
|
1635
1634
|
} catch ($p) {
|
|
1636
1635
|
var e = $p;
|
|
1637
|
-
if (this.
|
|
1636
|
+
if (this.e9_1 === 4) {
|
|
1638
1637
|
throw e;
|
|
1639
1638
|
} else {
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1639
|
+
this.d9_1 = this.e9_1;
|
|
1640
|
+
this.g9_1 = e;
|
|
1642
1641
|
}
|
|
1643
1642
|
}
|
|
1644
1643
|
while (true);
|
|
1645
1644
|
};
|
|
1646
1645
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1647
1646
|
CoroutineImpl.call(this, resultContinuation);
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1647
|
+
this.b1r_1 = _this__u8e3s4;
|
|
1648
|
+
this.c1r_1 = packet;
|
|
1650
1649
|
}
|
|
1651
|
-
protoOf($readPacketCOROUTINE$).
|
|
1652
|
-
var suspendResult = this.
|
|
1650
|
+
protoOf($readPacketCOROUTINE$).l9 = function () {
|
|
1651
|
+
var suspendResult = this.f9_1;
|
|
1653
1652
|
$sm: do
|
|
1654
1653
|
try {
|
|
1655
|
-
var tmp = this.
|
|
1654
|
+
var tmp = this.d9_1;
|
|
1656
1655
|
switch (tmp) {
|
|
1657
1656
|
case 0:
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1657
|
+
this.e9_1 = 6;
|
|
1658
|
+
this.d1r_1 = new Buffer();
|
|
1659
|
+
this.d9_1 = 1;
|
|
1661
1660
|
continue $sm;
|
|
1662
1661
|
case 1:
|
|
1663
|
-
if (!(compare(this.
|
|
1664
|
-
this.
|
|
1662
|
+
if (!(compare(this.d1r_1.l1(), fromInt(this.c1r_1)) < 0)) {
|
|
1663
|
+
this.d9_1 = 5;
|
|
1665
1664
|
continue $sm;
|
|
1666
1665
|
}
|
|
1667
1666
|
|
|
1668
|
-
if (this.
|
|
1669
|
-
this.
|
|
1670
|
-
suspendResult = this.
|
|
1667
|
+
if (this.b1r_1.p1l().wo()) {
|
|
1668
|
+
this.d9_1 = 2;
|
|
1669
|
+
suspendResult = this.b1r_1.y1l(VOID, this);
|
|
1671
1670
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1672
1671
|
return suspendResult;
|
|
1673
1672
|
}
|
|
1674
1673
|
continue $sm;
|
|
1675
1674
|
} else {
|
|
1676
|
-
this.
|
|
1675
|
+
this.d9_1 = 3;
|
|
1677
1676
|
continue $sm;
|
|
1678
1677
|
}
|
|
1679
1678
|
|
|
1680
1679
|
case 2:
|
|
1681
|
-
this.
|
|
1680
|
+
this.d9_1 = 3;
|
|
1682
1681
|
continue $sm;
|
|
1683
1682
|
case 3:
|
|
1684
|
-
if (this.
|
|
1685
|
-
this.
|
|
1683
|
+
if (this.b1r_1.w1l()) {
|
|
1684
|
+
this.d9_1 = 5;
|
|
1686
1685
|
continue $sm;
|
|
1687
1686
|
} else {
|
|
1688
|
-
this.
|
|
1687
|
+
this.d9_1 = 4;
|
|
1689
1688
|
continue $sm;
|
|
1690
1689
|
}
|
|
1691
1690
|
|
|
1692
1691
|
case 4:
|
|
1693
|
-
if (compare(get_remaining(this.
|
|
1694
|
-
this.
|
|
1692
|
+
if (compare(get_remaining(this.b1r_1.p1l()), subtract(numberToLong(this.c1r_1), this.d1r_1.l1())) > 0) {
|
|
1693
|
+
this.b1r_1.p1l().yp(this.d1r_1, subtract(numberToLong(this.c1r_1), this.d1r_1.l1()));
|
|
1695
1694
|
} else {
|
|
1696
|
-
this.
|
|
1695
|
+
this.b1r_1.p1l().zp(this.d1r_1);
|
|
1697
1696
|
}
|
|
1698
1697
|
|
|
1699
|
-
this.
|
|
1698
|
+
this.d9_1 = 1;
|
|
1700
1699
|
continue $sm;
|
|
1701
1700
|
case 5:
|
|
1702
|
-
if (compare(this.
|
|
1703
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1701
|
+
if (compare(this.d1r_1.l1(), fromInt(this.c1r_1)) < 0) {
|
|
1702
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.c1r_1 + ' bytes but only ' + this.d1r_1.l1().toString() + ' available');
|
|
1704
1703
|
}
|
|
1705
1704
|
|
|
1706
|
-
return this.
|
|
1705
|
+
return this.d1r_1;
|
|
1707
1706
|
case 6:
|
|
1708
|
-
throw this.
|
|
1707
|
+
throw this.g9_1;
|
|
1709
1708
|
}
|
|
1710
1709
|
} catch ($p) {
|
|
1711
1710
|
var e = $p;
|
|
1712
|
-
if (this.
|
|
1711
|
+
if (this.e9_1 === 6) {
|
|
1713
1712
|
throw e;
|
|
1714
1713
|
} else {
|
|
1715
|
-
this.
|
|
1716
|
-
this.
|
|
1714
|
+
this.d9_1 = this.e9_1;
|
|
1715
|
+
this.g9_1 = e;
|
|
1717
1716
|
}
|
|
1718
1717
|
}
|
|
1719
1718
|
while (true);
|
|
1720
1719
|
};
|
|
1721
1720
|
function $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
1722
1721
|
CoroutineImpl.call(this, resultContinuation);
|
|
1723
|
-
this.
|
|
1724
|
-
this.
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1722
|
+
this.r1r_1 = _this__u8e3s4;
|
|
1723
|
+
this.s1r_1 = out;
|
|
1724
|
+
this.t1r_1 = max;
|
|
1725
|
+
this.u1r_1 = lineEnding;
|
|
1727
1726
|
}
|
|
1728
|
-
protoOf($readUTF8LineToCOROUTINE$).
|
|
1729
|
-
var suspendResult = this.
|
|
1727
|
+
protoOf($readUTF8LineToCOROUTINE$).l9 = function () {
|
|
1728
|
+
var suspendResult = this.f9_1;
|
|
1730
1729
|
$sm: do
|
|
1731
1730
|
try {
|
|
1732
|
-
var tmp = this.
|
|
1731
|
+
var tmp = this.d9_1;
|
|
1733
1732
|
switch (tmp) {
|
|
1734
1733
|
case 0:
|
|
1735
|
-
this.
|
|
1736
|
-
if (this.
|
|
1737
|
-
this.
|
|
1738
|
-
suspendResult = this.
|
|
1734
|
+
this.e9_1 = 21;
|
|
1735
|
+
if (this.r1r_1.p1l().wo()) {
|
|
1736
|
+
this.d9_1 = 1;
|
|
1737
|
+
suspendResult = this.r1r_1.y1l(VOID, this);
|
|
1739
1738
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1740
1739
|
return suspendResult;
|
|
1741
1740
|
}
|
|
1742
1741
|
continue $sm;
|
|
1743
1742
|
} else {
|
|
1744
|
-
this.
|
|
1743
|
+
this.d9_1 = 2;
|
|
1745
1744
|
continue $sm;
|
|
1746
1745
|
}
|
|
1747
1746
|
|
|
1748
1747
|
case 1:
|
|
1749
|
-
this.
|
|
1748
|
+
this.d9_1 = 2;
|
|
1750
1749
|
continue $sm;
|
|
1751
1750
|
case 2:
|
|
1752
|
-
if (this.
|
|
1751
|
+
if (this.r1r_1.w1l())
|
|
1753
1752
|
return false;
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
this.u8_1 = 3;
|
|
1753
|
+
this.a1s_1 = new Buffer();
|
|
1754
|
+
this.d9_1 = 3;
|
|
1757
1755
|
continue $sm;
|
|
1758
1756
|
case 3:
|
|
1759
|
-
this.
|
|
1760
|
-
this.
|
|
1761
|
-
this.
|
|
1757
|
+
this.x1r_1 = this.a1s_1;
|
|
1758
|
+
this.w1r_1 = null;
|
|
1759
|
+
this.d9_1 = 4;
|
|
1762
1760
|
continue $sm;
|
|
1763
1761
|
case 4:
|
|
1764
|
-
this.
|
|
1762
|
+
this.d9_1 = 5;
|
|
1765
1763
|
continue $sm;
|
|
1766
1764
|
case 5:
|
|
1767
|
-
this.
|
|
1765
|
+
this.d9_1 = 6;
|
|
1768
1766
|
continue $sm;
|
|
1769
1767
|
case 6:
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1773
|
-
this.
|
|
1768
|
+
this.e9_1 = 18;
|
|
1769
|
+
this.e9_1 = 17;
|
|
1770
|
+
this.z1r_1 = this.x1r_1;
|
|
1771
|
+
this.d9_1 = 7;
|
|
1774
1772
|
continue $sm;
|
|
1775
1773
|
case 7:
|
|
1776
|
-
if (!!this.
|
|
1777
|
-
this.
|
|
1774
|
+
if (!!this.r1r_1.w1l()) {
|
|
1775
|
+
this.d9_1 = 14;
|
|
1778
1776
|
continue $sm;
|
|
1779
1777
|
}
|
|
1780
1778
|
|
|
1781
|
-
this.
|
|
1779
|
+
this.d9_1 = 8;
|
|
1782
1780
|
continue $sm;
|
|
1783
1781
|
case 8:
|
|
1784
|
-
if (!!this.
|
|
1785
|
-
this.
|
|
1782
|
+
if (!!this.r1r_1.p1l().wo()) {
|
|
1783
|
+
this.d9_1 = 12;
|
|
1786
1784
|
continue $sm;
|
|
1787
1785
|
}
|
|
1788
1786
|
|
|
1789
|
-
var b = this.
|
|
1787
|
+
var b = this.r1r_1.p1l().zo();
|
|
1790
1788
|
if (b === 13) {
|
|
1791
|
-
if (this.
|
|
1792
|
-
this.
|
|
1793
|
-
suspendResult = this.
|
|
1789
|
+
if (this.r1r_1.p1l().wo()) {
|
|
1790
|
+
this.d9_1 = 10;
|
|
1791
|
+
suspendResult = this.r1r_1.y1l(VOID, this);
|
|
1794
1792
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1795
1793
|
return suspendResult;
|
|
1796
1794
|
}
|
|
1797
1795
|
continue $sm;
|
|
1798
1796
|
} else {
|
|
1799
|
-
this.
|
|
1797
|
+
this.d9_1 = 11;
|
|
1800
1798
|
continue $sm;
|
|
1801
1799
|
}
|
|
1802
1800
|
} else {
|
|
1803
1801
|
if (b === 10) {
|
|
1804
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1805
|
-
this.
|
|
1806
|
-
this.
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1802
|
+
readUTF8LineTo$checkLineEndingAllowed(this.u1r_1, Companion_getInstance_1().f1r_1);
|
|
1803
|
+
this.s1r_1.k1(readString(this.z1r_1));
|
|
1804
|
+
this.y1r_1 = true;
|
|
1805
|
+
this.e9_1 = 21;
|
|
1806
|
+
this.d9_1 = 15;
|
|
1809
1807
|
continue $sm;
|
|
1810
1808
|
} else {
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1809
|
+
this.z1r_1.pq(b);
|
|
1810
|
+
this.d9_1 = 9;
|
|
1813
1811
|
continue $sm;
|
|
1814
1812
|
}
|
|
1815
1813
|
}
|
|
1816
1814
|
|
|
1817
1815
|
case 9:
|
|
1818
|
-
this.
|
|
1816
|
+
this.d9_1 = 8;
|
|
1819
1817
|
continue $sm;
|
|
1820
1818
|
case 10:
|
|
1821
|
-
this.
|
|
1819
|
+
this.d9_1 = 11;
|
|
1822
1820
|
continue $sm;
|
|
1823
1821
|
case 11:
|
|
1824
|
-
if (this.
|
|
1825
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1826
|
-
discard_0(this.
|
|
1822
|
+
if (this.r1r_1.p1l().vo().rp(new Long(0, 0)) === 10) {
|
|
1823
|
+
readUTF8LineTo$checkLineEndingAllowed(this.u1r_1, Companion_getInstance_1().g1r_1);
|
|
1824
|
+
discard_0(this.r1r_1.p1l(), new Long(1, 0));
|
|
1827
1825
|
} else {
|
|
1828
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1826
|
+
readUTF8LineTo$checkLineEndingAllowed(this.u1r_1, Companion_getInstance_1().e1r_1);
|
|
1829
1827
|
}
|
|
1830
1828
|
|
|
1831
|
-
this.
|
|
1832
|
-
this.
|
|
1833
|
-
this.
|
|
1834
|
-
this.
|
|
1829
|
+
this.s1r_1.k1(readString(this.z1r_1));
|
|
1830
|
+
this.y1r_1 = true;
|
|
1831
|
+
this.e9_1 = 21;
|
|
1832
|
+
this.d9_1 = 15;
|
|
1835
1833
|
continue $sm;
|
|
1836
1834
|
case 12:
|
|
1837
|
-
if (compare(this.
|
|
1838
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.
|
|
1835
|
+
if (compare(this.z1r_1.l1(), fromInt(this.t1r_1)) >= 0) {
|
|
1836
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.t1r_1 + ' characters');
|
|
1839
1837
|
}
|
|
1840
1838
|
|
|
1841
|
-
this.
|
|
1842
|
-
suspendResult = this.
|
|
1839
|
+
this.d9_1 = 13;
|
|
1840
|
+
suspendResult = this.r1r_1.y1l(VOID, this);
|
|
1843
1841
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1844
1842
|
return suspendResult;
|
|
1845
1843
|
}
|
|
1846
1844
|
|
|
1847
1845
|
continue $sm;
|
|
1848
1846
|
case 13:
|
|
1849
|
-
this.
|
|
1847
|
+
this.d9_1 = 7;
|
|
1850
1848
|
continue $sm;
|
|
1851
1849
|
case 14:
|
|
1852
|
-
var
|
|
1853
|
-
var this_0 = compare(this.
|
|
1850
|
+
var tmp_0 = this;
|
|
1851
|
+
var this_0 = compare(this.z1r_1.l1(), new Long(0, 0)) > 0;
|
|
1854
1852
|
if (this_0) {
|
|
1855
|
-
this.
|
|
1853
|
+
this.s1r_1.k1(readString(this.z1r_1));
|
|
1856
1854
|
}
|
|
1857
1855
|
|
|
1858
|
-
|
|
1859
|
-
this.
|
|
1860
|
-
this.
|
|
1861
|
-
var
|
|
1856
|
+
tmp_0.y1r_1 = this_0;
|
|
1857
|
+
this.e9_1 = 21;
|
|
1858
|
+
this.d9_1 = 15;
|
|
1859
|
+
var tmp_1 = this;
|
|
1862
1860
|
continue $sm;
|
|
1863
1861
|
case 15:
|
|
1864
|
-
var
|
|
1865
|
-
this.
|
|
1866
|
-
closeFinally(this.
|
|
1867
|
-
return
|
|
1862
|
+
var tmp_2 = this.y1r_1;
|
|
1863
|
+
this.e9_1 = 21;
|
|
1864
|
+
closeFinally(this.x1r_1, this.w1r_1);
|
|
1865
|
+
return tmp_2;
|
|
1868
1866
|
case 16:
|
|
1869
|
-
this.
|
|
1870
|
-
var
|
|
1871
|
-
closeFinally(this.
|
|
1872
|
-
|
|
1873
|
-
this.
|
|
1867
|
+
this.e9_1 = 21;
|
|
1868
|
+
var tmp_3 = this;
|
|
1869
|
+
closeFinally(this.x1r_1, this.w1r_1);
|
|
1870
|
+
tmp_3.v1r_1 = Unit_instance;
|
|
1871
|
+
this.d9_1 = 20;
|
|
1874
1872
|
continue $sm;
|
|
1875
1873
|
case 17:
|
|
1876
|
-
this.
|
|
1877
|
-
var
|
|
1878
|
-
if (
|
|
1879
|
-
var e = this.
|
|
1880
|
-
var
|
|
1881
|
-
this.
|
|
1874
|
+
this.e9_1 = 18;
|
|
1875
|
+
var tmp_4 = this.g9_1;
|
|
1876
|
+
if (tmp_4 instanceof Error) {
|
|
1877
|
+
var e = this.g9_1;
|
|
1878
|
+
var tmp_5 = this;
|
|
1879
|
+
this.w1r_1 = e;
|
|
1882
1880
|
throw e;
|
|
1883
1881
|
} else {
|
|
1884
|
-
throw this.
|
|
1882
|
+
throw this.g9_1;
|
|
1885
1883
|
}
|
|
1886
1884
|
|
|
1887
1885
|
case 18:
|
|
1888
|
-
this.
|
|
1889
|
-
var t = this.
|
|
1890
|
-
closeFinally(this.
|
|
1886
|
+
this.e9_1 = 21;
|
|
1887
|
+
var t = this.g9_1;
|
|
1888
|
+
closeFinally(this.x1r_1, this.w1r_1);
|
|
1891
1889
|
throw t;
|
|
1892
1890
|
case 19:
|
|
1893
|
-
this.
|
|
1894
|
-
closeFinally(this.
|
|
1891
|
+
this.e9_1 = 21;
|
|
1892
|
+
closeFinally(this.x1r_1, this.w1r_1);
|
|
1895
1893
|
if (false) {
|
|
1896
|
-
this.
|
|
1894
|
+
this.d9_1 = 3;
|
|
1897
1895
|
continue $sm;
|
|
1898
1896
|
}
|
|
1899
1897
|
|
|
1900
|
-
this.
|
|
1898
|
+
this.d9_1 = 20;
|
|
1901
1899
|
continue $sm;
|
|
1902
1900
|
case 20:
|
|
1903
1901
|
return Unit_instance;
|
|
1904
1902
|
case 21:
|
|
1905
|
-
throw this.
|
|
1903
|
+
throw this.g9_1;
|
|
1906
1904
|
}
|
|
1907
1905
|
} catch ($p) {
|
|
1908
1906
|
var e_0 = $p;
|
|
1909
|
-
if (this.
|
|
1907
|
+
if (this.e9_1 === 21) {
|
|
1910
1908
|
throw e_0;
|
|
1911
1909
|
} else {
|
|
1912
|
-
this.
|
|
1913
|
-
this.
|
|
1910
|
+
this.d9_1 = this.e9_1;
|
|
1911
|
+
this.g9_1 = e_0;
|
|
1914
1912
|
}
|
|
1915
1913
|
}
|
|
1916
1914
|
while (true);
|
|
1917
1915
|
};
|
|
1918
1916
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1919
1917
|
CoroutineImpl.call(this, resultContinuation);
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1918
|
+
this.j1s_1 = _this__u8e3s4;
|
|
1919
|
+
this.k1s_1 = max;
|
|
1922
1920
|
}
|
|
1923
|
-
protoOf($readRemainingCOROUTINE$_0).
|
|
1924
|
-
var suspendResult = this.
|
|
1921
|
+
protoOf($readRemainingCOROUTINE$_0).l9 = function () {
|
|
1922
|
+
var suspendResult = this.f9_1;
|
|
1925
1923
|
$sm: do
|
|
1926
1924
|
try {
|
|
1927
|
-
var tmp = this.
|
|
1925
|
+
var tmp = this.d9_1;
|
|
1928
1926
|
switch (tmp) {
|
|
1929
1927
|
case 0:
|
|
1930
|
-
this.
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1933
|
-
this.
|
|
1928
|
+
this.e9_1 = 4;
|
|
1929
|
+
this.l1s_1 = BytePacketBuilder();
|
|
1930
|
+
this.m1s_1 = this.k1s_1;
|
|
1931
|
+
this.d9_1 = 1;
|
|
1934
1932
|
continue $sm;
|
|
1935
1933
|
case 1:
|
|
1936
|
-
if (!(!this.
|
|
1937
|
-
this.
|
|
1934
|
+
if (!(!this.j1s_1.w1l() && compare(this.m1s_1, new Long(0, 0)) > 0)) {
|
|
1935
|
+
this.d9_1 = 3;
|
|
1938
1936
|
continue $sm;
|
|
1939
1937
|
}
|
|
1940
1938
|
|
|
1941
|
-
if (compare(this.
|
|
1942
|
-
this.
|
|
1943
|
-
this.
|
|
1939
|
+
if (compare(this.m1s_1, get_remaining(this.j1s_1.p1l())) >= 0) {
|
|
1940
|
+
this.m1s_1 = subtract(this.m1s_1, get_remaining(this.j1s_1.p1l()));
|
|
1941
|
+
this.j1s_1.p1l().zp(this.l1s_1);
|
|
1944
1942
|
} else {
|
|
1945
|
-
this.
|
|
1946
|
-
this.
|
|
1943
|
+
this.j1s_1.p1l().yp(this.l1s_1, this.m1s_1);
|
|
1944
|
+
this.m1s_1 = new Long(0, 0);
|
|
1947
1945
|
}
|
|
1948
1946
|
|
|
1949
|
-
this.
|
|
1950
|
-
suspendResult = this.
|
|
1947
|
+
this.d9_1 = 2;
|
|
1948
|
+
suspendResult = this.j1s_1.y1l(VOID, this);
|
|
1951
1949
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1952
1950
|
return suspendResult;
|
|
1953
1951
|
}
|
|
1954
1952
|
|
|
1955
1953
|
continue $sm;
|
|
1956
1954
|
case 2:
|
|
1957
|
-
this.
|
|
1955
|
+
this.d9_1 = 1;
|
|
1958
1956
|
continue $sm;
|
|
1959
1957
|
case 3:
|
|
1960
|
-
return this.
|
|
1958
|
+
return this.l1s_1.vo();
|
|
1961
1959
|
case 4:
|
|
1962
|
-
throw this.
|
|
1960
|
+
throw this.g9_1;
|
|
1963
1961
|
}
|
|
1964
1962
|
} catch ($p) {
|
|
1965
1963
|
var e = $p;
|
|
1966
|
-
if (this.
|
|
1964
|
+
if (this.e9_1 === 4) {
|
|
1967
1965
|
throw e;
|
|
1968
1966
|
} else {
|
|
1969
|
-
this.
|
|
1970
|
-
this.
|
|
1967
|
+
this.d9_1 = this.e9_1;
|
|
1968
|
+
this.g9_1 = e;
|
|
1971
1969
|
}
|
|
1972
1970
|
}
|
|
1973
1971
|
while (true);
|
|
1974
1972
|
};
|
|
1975
1973
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1976
1974
|
CoroutineImpl.call(this, resultContinuation);
|
|
1977
|
-
this.
|
|
1975
|
+
this.v1s_1 = _this__u8e3s4;
|
|
1978
1976
|
}
|
|
1979
|
-
protoOf($readBufferCOROUTINE$).
|
|
1980
|
-
var suspendResult = this.
|
|
1977
|
+
protoOf($readBufferCOROUTINE$).l9 = function () {
|
|
1978
|
+
var suspendResult = this.f9_1;
|
|
1981
1979
|
$sm: do
|
|
1982
1980
|
try {
|
|
1983
|
-
var tmp = this.
|
|
1981
|
+
var tmp = this.d9_1;
|
|
1984
1982
|
switch (tmp) {
|
|
1985
1983
|
case 0:
|
|
1986
|
-
this.
|
|
1987
|
-
this.
|
|
1988
|
-
this.
|
|
1984
|
+
this.e9_1 = 4;
|
|
1985
|
+
this.w1s_1 = new Buffer();
|
|
1986
|
+
this.d9_1 = 1;
|
|
1989
1987
|
continue $sm;
|
|
1990
1988
|
case 1:
|
|
1991
|
-
if (!!this.
|
|
1992
|
-
this.
|
|
1989
|
+
if (!!this.v1s_1.w1l()) {
|
|
1990
|
+
this.d9_1 = 3;
|
|
1993
1991
|
continue $sm;
|
|
1994
1992
|
}
|
|
1995
1993
|
|
|
1996
|
-
this.
|
|
1997
|
-
this.
|
|
1998
|
-
suspendResult = this.
|
|
1994
|
+
this.w1s_1.oq(this.v1s_1.p1l());
|
|
1995
|
+
this.d9_1 = 2;
|
|
1996
|
+
suspendResult = this.v1s_1.y1l(VOID, this);
|
|
1999
1997
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2000
1998
|
return suspendResult;
|
|
2001
1999
|
}
|
|
2002
2000
|
|
|
2003
2001
|
continue $sm;
|
|
2004
2002
|
case 2:
|
|
2005
|
-
this.
|
|
2003
|
+
this.d9_1 = 1;
|
|
2006
2004
|
continue $sm;
|
|
2007
2005
|
case 3:
|
|
2008
|
-
var tmp0_safe_receiver = this.
|
|
2006
|
+
var tmp0_safe_receiver = this.v1s_1.u1l();
|
|
2009
2007
|
if (tmp0_safe_receiver == null)
|
|
2010
2008
|
null;
|
|
2011
2009
|
else {
|
|
2012
2010
|
throw tmp0_safe_receiver;
|
|
2013
2011
|
}
|
|
2014
2012
|
|
|
2015
|
-
return this.
|
|
2013
|
+
return this.w1s_1;
|
|
2016
2014
|
case 4:
|
|
2017
|
-
throw this.
|
|
2015
|
+
throw this.g9_1;
|
|
2018
2016
|
}
|
|
2019
2017
|
} catch ($p) {
|
|
2020
2018
|
var e = $p;
|
|
2021
|
-
if (this.
|
|
2019
|
+
if (this.e9_1 === 4) {
|
|
2022
2020
|
throw e;
|
|
2023
2021
|
} else {
|
|
2024
|
-
this.
|
|
2025
|
-
this.
|
|
2022
|
+
this.d9_1 = this.e9_1;
|
|
2023
|
+
this.g9_1 = e;
|
|
2026
2024
|
}
|
|
2027
2025
|
}
|
|
2028
2026
|
while (true);
|
|
2029
2027
|
};
|
|
2030
2028
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
2031
2029
|
CoroutineImpl.call(this, resultContinuation);
|
|
2032
|
-
this.
|
|
2033
|
-
this.
|
|
2030
|
+
this.f1t_1 = _this__u8e3s4;
|
|
2031
|
+
this.g1t_1 = count;
|
|
2034
2032
|
}
|
|
2035
|
-
protoOf($peekCOROUTINE$).
|
|
2036
|
-
var suspendResult = this.
|
|
2033
|
+
protoOf($peekCOROUTINE$).l9 = function () {
|
|
2034
|
+
var suspendResult = this.f9_1;
|
|
2037
2035
|
$sm: do
|
|
2038
2036
|
try {
|
|
2039
|
-
var tmp = this.
|
|
2037
|
+
var tmp = this.d9_1;
|
|
2040
2038
|
switch (tmp) {
|
|
2041
2039
|
case 0:
|
|
2042
|
-
this.
|
|
2043
|
-
if (this.
|
|
2040
|
+
this.e9_1 = 3;
|
|
2041
|
+
if (this.f1t_1.w1l())
|
|
2044
2042
|
return null;
|
|
2045
|
-
this.
|
|
2046
|
-
suspendResult = this.
|
|
2043
|
+
this.d9_1 = 1;
|
|
2044
|
+
suspendResult = this.f1t_1.x1l(this.g1t_1, this);
|
|
2047
2045
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2048
2046
|
return suspendResult;
|
|
2049
2047
|
}
|
|
@@ -2053,22 +2051,22 @@
|
|
|
2053
2051
|
if (!suspendResult) {
|
|
2054
2052
|
return null;
|
|
2055
2053
|
} else {
|
|
2056
|
-
this.
|
|
2054
|
+
this.d9_1 = 2;
|
|
2057
2055
|
continue $sm;
|
|
2058
2056
|
}
|
|
2059
2057
|
|
|
2060
2058
|
case 2:
|
|
2061
|
-
return readByteString(this.
|
|
2059
|
+
return readByteString(this.f1t_1.p1l().aq(), this.g1t_1);
|
|
2062
2060
|
case 3:
|
|
2063
|
-
throw this.
|
|
2061
|
+
throw this.g9_1;
|
|
2064
2062
|
}
|
|
2065
2063
|
} catch ($p) {
|
|
2066
2064
|
var e = $p;
|
|
2067
|
-
if (this.
|
|
2065
|
+
if (this.e9_1 === 3) {
|
|
2068
2066
|
throw e;
|
|
2069
2067
|
} else {
|
|
2070
|
-
this.
|
|
2071
|
-
this.
|
|
2068
|
+
this.d9_1 = this.e9_1;
|
|
2069
|
+
this.g9_1 = e;
|
|
2072
2070
|
}
|
|
2073
2071
|
}
|
|
2074
2072
|
while (true);
|
|
@@ -2077,50 +2075,50 @@
|
|
|
2077
2075
|
}
|
|
2078
2076
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2079
2077
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2080
|
-
tmp.
|
|
2081
|
-
tmp.
|
|
2082
|
-
return tmp.
|
|
2078
|
+
tmp.f9_1 = Unit_instance;
|
|
2079
|
+
tmp.g9_1 = null;
|
|
2080
|
+
return tmp.l9();
|
|
2083
2081
|
}
|
|
2084
2082
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2085
2083
|
CoroutineImpl.call(this, resultContinuation);
|
|
2086
|
-
this.
|
|
2084
|
+
this.p1t_1 = _this__u8e3s4;
|
|
2087
2085
|
}
|
|
2088
|
-
protoOf($flushIfNeededCOROUTINE$).
|
|
2089
|
-
var suspendResult = this.
|
|
2086
|
+
protoOf($flushIfNeededCOROUTINE$).l9 = function () {
|
|
2087
|
+
var suspendResult = this.f9_1;
|
|
2090
2088
|
$sm: do
|
|
2091
2089
|
try {
|
|
2092
|
-
var tmp = this.
|
|
2090
|
+
var tmp = this.d9_1;
|
|
2093
2091
|
switch (tmp) {
|
|
2094
2092
|
case 0:
|
|
2095
|
-
this.
|
|
2096
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2097
|
-
if (this.
|
|
2098
|
-
this.
|
|
2099
|
-
suspendResult = this.
|
|
2093
|
+
this.e9_1 = 3;
|
|
2094
|
+
rethrowCloseCauseIfNeeded_1(this.p1t_1);
|
|
2095
|
+
if (this.p1t_1.o1l() || get_size(this.p1t_1.s1l()) >= 1048576) {
|
|
2096
|
+
this.d9_1 = 1;
|
|
2097
|
+
suspendResult = this.p1t_1.n1l(this);
|
|
2100
2098
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2101
2099
|
return suspendResult;
|
|
2102
2100
|
}
|
|
2103
2101
|
continue $sm;
|
|
2104
2102
|
} else {
|
|
2105
|
-
this.
|
|
2103
|
+
this.d9_1 = 2;
|
|
2106
2104
|
continue $sm;
|
|
2107
2105
|
}
|
|
2108
2106
|
|
|
2109
2107
|
case 1:
|
|
2110
|
-
this.
|
|
2108
|
+
this.d9_1 = 2;
|
|
2111
2109
|
continue $sm;
|
|
2112
2110
|
case 2:
|
|
2113
2111
|
return Unit_instance;
|
|
2114
2112
|
case 3:
|
|
2115
|
-
throw this.
|
|
2113
|
+
throw this.g9_1;
|
|
2116
2114
|
}
|
|
2117
2115
|
} catch ($p) {
|
|
2118
2116
|
var e = $p;
|
|
2119
|
-
if (this.
|
|
2117
|
+
if (this.e9_1 === 3) {
|
|
2120
2118
|
throw e;
|
|
2121
2119
|
} else {
|
|
2122
|
-
this.
|
|
2123
|
-
this.
|
|
2120
|
+
this.d9_1 = this.e9_1;
|
|
2121
|
+
this.g9_1 = e;
|
|
2124
2122
|
}
|
|
2125
2123
|
}
|
|
2126
2124
|
while (true);
|
|
@@ -2133,15 +2131,15 @@
|
|
|
2133
2131
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2134
2132
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2135
2133
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2136
|
-
_this__u8e3s4.
|
|
2134
|
+
_this__u8e3s4.s1l().fq(value, startIndex, endIndex);
|
|
2137
2135
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2138
2136
|
}
|
|
2139
2137
|
function WriterJob(channel, job) {
|
|
2140
|
-
this.
|
|
2141
|
-
this.
|
|
2138
|
+
this.q1t_1 = channel;
|
|
2139
|
+
this.r1t_1 = job;
|
|
2142
2140
|
}
|
|
2143
|
-
protoOf(WriterJob).
|
|
2144
|
-
return this.
|
|
2141
|
+
protoOf(WriterJob).tv = function () {
|
|
2142
|
+
return this.r1t_1;
|
|
2145
2143
|
};
|
|
2146
2144
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2147
2145
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2150,29 +2148,29 @@
|
|
|
2150
2148
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2151
2149
|
}
|
|
2152
2150
|
function WriterScope(channel, coroutineContext) {
|
|
2153
|
-
this.
|
|
2154
|
-
this.
|
|
2151
|
+
this.s1t_1 = channel;
|
|
2152
|
+
this.t1t_1 = coroutineContext;
|
|
2155
2153
|
}
|
|
2156
|
-
protoOf(WriterScope).
|
|
2157
|
-
return this.
|
|
2154
|
+
protoOf(WriterScope).hs = function () {
|
|
2155
|
+
return this.t1t_1;
|
|
2158
2156
|
};
|
|
2159
2157
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2160
2158
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2161
|
-
return _this__u8e3s4.
|
|
2159
|
+
return _this__u8e3s4.tv().jt(block);
|
|
2162
2160
|
}
|
|
2163
2161
|
function close_0(_this__u8e3s4, cause) {
|
|
2164
2162
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2165
2163
|
if (cause == null) {
|
|
2166
2164
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2167
2165
|
} else {
|
|
2168
|
-
_this__u8e3s4.
|
|
2166
|
+
_this__u8e3s4.a1m(cause);
|
|
2169
2167
|
}
|
|
2170
2168
|
}
|
|
2171
2169
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
2172
2170
|
var tmp = new $writePacketCOROUTINE$(_this__u8e3s4, source, $completion);
|
|
2173
|
-
tmp.
|
|
2174
|
-
tmp.
|
|
2175
|
-
return tmp.
|
|
2171
|
+
tmp.f9_1 = Unit_instance;
|
|
2172
|
+
tmp.g9_1 = null;
|
|
2173
|
+
return tmp.l9();
|
|
2176
2174
|
}
|
|
2177
2175
|
function fireAndForget(_this__u8e3s4) {
|
|
2178
2176
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
@@ -2183,216 +2181,214 @@
|
|
|
2183
2181
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2184
2182
|
// Inline function 'kotlin.apply' call
|
|
2185
2183
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2186
|
-
this_0.
|
|
2184
|
+
this_0.jt(writer$lambda(channel));
|
|
2187
2185
|
var job = this_0;
|
|
2188
2186
|
return new WriterJob(channel, job);
|
|
2189
2187
|
}
|
|
2190
2188
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2191
|
-
_this__u8e3s4.
|
|
2189
|
+
_this__u8e3s4.s1l().pq(value);
|
|
2192
2190
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2193
2191
|
}
|
|
2194
2192
|
function NO_CALLBACK$1() {
|
|
2195
|
-
this.
|
|
2193
|
+
this.e1u_1 = EmptyCoroutineContext_getInstance();
|
|
2196
2194
|
}
|
|
2197
|
-
protoOf(NO_CALLBACK$1).
|
|
2198
|
-
return this.
|
|
2195
|
+
protoOf(NO_CALLBACK$1).j9 = function () {
|
|
2196
|
+
return this.e1u_1;
|
|
2199
2197
|
};
|
|
2200
|
-
protoOf(NO_CALLBACK$1).
|
|
2198
|
+
protoOf(NO_CALLBACK$1).k9 = function (result) {
|
|
2201
2199
|
return Unit_instance;
|
|
2202
2200
|
};
|
|
2203
|
-
protoOf(NO_CALLBACK$1).
|
|
2204
|
-
return this.
|
|
2201
|
+
protoOf(NO_CALLBACK$1).o9 = function (result) {
|
|
2202
|
+
return this.k9(result);
|
|
2205
2203
|
};
|
|
2206
2204
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2207
|
-
this.
|
|
2205
|
+
this.f1u_1 = p0;
|
|
2208
2206
|
}
|
|
2209
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2210
|
-
return this.
|
|
2207
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).g1u = function ($completion) {
|
|
2208
|
+
return this.f1u_1.z1l($completion);
|
|
2211
2209
|
};
|
|
2212
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2213
|
-
return this.
|
|
2210
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).ua = function ($completion) {
|
|
2211
|
+
return this.g1u($completion);
|
|
2214
2212
|
};
|
|
2215
2213
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2216
2214
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2217
2215
|
var l = function ($completion) {
|
|
2218
|
-
return i.
|
|
2216
|
+
return i.g1u($completion);
|
|
2219
2217
|
};
|
|
2220
2218
|
l.callableName = 'flushAndClose';
|
|
2221
2219
|
l.$arity = 0;
|
|
2222
2220
|
return l;
|
|
2223
2221
|
}
|
|
2224
2222
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2223
|
+
this.p1u_1 = $block;
|
|
2224
|
+
this.q1u_1 = $channel;
|
|
2227
2225
|
CoroutineImpl.call(this, resultContinuation);
|
|
2228
2226
|
}
|
|
2229
|
-
protoOf(writer$slambda).
|
|
2230
|
-
var tmp = this.
|
|
2231
|
-
tmp.
|
|
2232
|
-
tmp.
|
|
2233
|
-
return tmp.
|
|
2227
|
+
protoOf(writer$slambda).y1u = function ($this$launch, $completion) {
|
|
2228
|
+
var tmp = this.z1u($this$launch, $completion);
|
|
2229
|
+
tmp.f9_1 = Unit_instance;
|
|
2230
|
+
tmp.g9_1 = null;
|
|
2231
|
+
return tmp.l9();
|
|
2234
2232
|
};
|
|
2235
|
-
protoOf(writer$slambda).
|
|
2236
|
-
return this.
|
|
2233
|
+
protoOf(writer$slambda).x9 = function (p1, $completion) {
|
|
2234
|
+
return this.y1u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2237
2235
|
};
|
|
2238
|
-
protoOf(writer$slambda).
|
|
2239
|
-
var suspendResult = this.
|
|
2236
|
+
protoOf(writer$slambda).l9 = function () {
|
|
2237
|
+
var suspendResult = this.f9_1;
|
|
2240
2238
|
$sm: do
|
|
2241
2239
|
try {
|
|
2242
|
-
var tmp = this.
|
|
2240
|
+
var tmp = this.d9_1;
|
|
2243
2241
|
switch (tmp) {
|
|
2244
2242
|
case 0:
|
|
2245
|
-
this.
|
|
2246
|
-
this.
|
|
2247
|
-
this.
|
|
2243
|
+
this.e9_1 = 14;
|
|
2244
|
+
this.u1u_1 = Job(get_job(this.r1u_1.hs()));
|
|
2245
|
+
this.d9_1 = 1;
|
|
2248
2246
|
continue $sm;
|
|
2249
2247
|
case 1:
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2253
|
-
suspendResult = this.
|
|
2248
|
+
this.e9_1 = 4;
|
|
2249
|
+
this.e9_1 = 3;
|
|
2250
|
+
this.d9_1 = 2;
|
|
2251
|
+
suspendResult = this.p1u_1(new WriterScope(this.q1u_1, this.r1u_1.hs().fh(this.u1u_1)), this);
|
|
2254
2252
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2255
2253
|
return suspendResult;
|
|
2256
2254
|
}
|
|
2257
2255
|
|
|
2258
2256
|
continue $sm;
|
|
2259
2257
|
case 2:
|
|
2260
|
-
this.
|
|
2258
|
+
this.u1u_1.r10();
|
|
2261
2259
|
var tmp_0;
|
|
2262
|
-
if (get_job(this.
|
|
2263
|
-
this.
|
|
2260
|
+
if (get_job(this.r1u_1.hs()).dt()) {
|
|
2261
|
+
this.q1u_1.a1m(get_job(this.r1u_1.hs()).gt());
|
|
2264
2262
|
tmp_0 = Unit_instance;
|
|
2265
2263
|
}
|
|
2266
2264
|
|
|
2267
|
-
this.
|
|
2268
|
-
this.
|
|
2265
|
+
this.e9_1 = 14;
|
|
2266
|
+
this.d9_1 = 9;
|
|
2269
2267
|
continue $sm;
|
|
2270
2268
|
case 3:
|
|
2271
|
-
this.
|
|
2272
|
-
var tmp_1 = this.
|
|
2269
|
+
this.e9_1 = 4;
|
|
2270
|
+
var tmp_1 = this.g9_1;
|
|
2273
2271
|
if (tmp_1 instanceof Error) {
|
|
2274
|
-
var cause = this.
|
|
2275
|
-
cancel(this.
|
|
2276
|
-
this.
|
|
2277
|
-
this.
|
|
2278
|
-
this.
|
|
2272
|
+
var cause = this.g9_1;
|
|
2273
|
+
cancel(this.u1u_1, 'Exception thrown while writing to channel', cause);
|
|
2274
|
+
this.q1u_1.a1m(cause);
|
|
2275
|
+
this.e9_1 = 14;
|
|
2276
|
+
this.d9_1 = 9;
|
|
2279
2277
|
continue $sm;
|
|
2280
2278
|
} else {
|
|
2281
|
-
throw this.
|
|
2279
|
+
throw this.g9_1;
|
|
2282
2280
|
}
|
|
2283
2281
|
|
|
2284
2282
|
case 4:
|
|
2285
|
-
this.
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
suspendResult = this.
|
|
2283
|
+
this.e9_1 = 14;
|
|
2284
|
+
this.v1u_1 = this.g9_1;
|
|
2285
|
+
this.d9_1 = 5;
|
|
2286
|
+
suspendResult = this.u1u_1.nt(this);
|
|
2289
2287
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2290
2288
|
return suspendResult;
|
|
2291
2289
|
}
|
|
2292
2290
|
|
|
2293
2291
|
continue $sm;
|
|
2294
2292
|
case 5:
|
|
2295
|
-
this.
|
|
2296
|
-
this.
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
suspendResult = this.e1v_1.n1m(this);
|
|
2293
|
+
this.r1u_1;
|
|
2294
|
+
this.e9_1 = 7;
|
|
2295
|
+
this.x1u_1 = Companion_instance;
|
|
2296
|
+
this.d9_1 = 6;
|
|
2297
|
+
suspendResult = this.q1u_1.z1l(this);
|
|
2301
2298
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2302
2299
|
return suspendResult;
|
|
2303
2300
|
}
|
|
2304
2301
|
|
|
2305
2302
|
continue $sm;
|
|
2306
2303
|
case 6:
|
|
2307
|
-
var
|
|
2308
|
-
this.
|
|
2309
|
-
|
|
2310
|
-
this.
|
|
2311
|
-
this.
|
|
2304
|
+
var tmp_2 = this;
|
|
2305
|
+
this.x1u_1;
|
|
2306
|
+
tmp_2.w1u_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2307
|
+
this.e9_1 = 14;
|
|
2308
|
+
this.d9_1 = 8;
|
|
2312
2309
|
continue $sm;
|
|
2313
2310
|
case 7:
|
|
2314
|
-
this.
|
|
2315
|
-
var
|
|
2316
|
-
if (
|
|
2317
|
-
var e = this.
|
|
2318
|
-
var
|
|
2319
|
-
|
|
2320
|
-
this.
|
|
2311
|
+
this.e9_1 = 14;
|
|
2312
|
+
var tmp_3 = this.g9_1;
|
|
2313
|
+
if (tmp_3 instanceof Error) {
|
|
2314
|
+
var e = this.g9_1;
|
|
2315
|
+
var tmp_4 = this;
|
|
2316
|
+
tmp_4.w1u_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2317
|
+
this.d9_1 = 8;
|
|
2321
2318
|
continue $sm;
|
|
2322
2319
|
} else {
|
|
2323
|
-
throw this.
|
|
2320
|
+
throw this.g9_1;
|
|
2324
2321
|
}
|
|
2325
2322
|
|
|
2326
2323
|
case 8:
|
|
2327
|
-
this.
|
|
2328
|
-
throw this.
|
|
2324
|
+
this.e9_1 = 14;
|
|
2325
|
+
throw this.v1u_1;
|
|
2329
2326
|
case 9:
|
|
2330
|
-
this.
|
|
2331
|
-
this.
|
|
2332
|
-
suspendResult = this.
|
|
2327
|
+
this.e9_1 = 14;
|
|
2328
|
+
this.d9_1 = 10;
|
|
2329
|
+
suspendResult = this.u1u_1.nt(this);
|
|
2333
2330
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2334
2331
|
return suspendResult;
|
|
2335
2332
|
}
|
|
2336
2333
|
|
|
2337
2334
|
continue $sm;
|
|
2338
2335
|
case 10:
|
|
2339
|
-
this.
|
|
2340
|
-
this.
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
suspendResult = this.e1v_1.n1m(this);
|
|
2336
|
+
this.r1u_1;
|
|
2337
|
+
this.e9_1 = 12;
|
|
2338
|
+
this.t1u_1 = Companion_instance;
|
|
2339
|
+
this.d9_1 = 11;
|
|
2340
|
+
suspendResult = this.q1u_1.z1l(this);
|
|
2345
2341
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2346
2342
|
return suspendResult;
|
|
2347
2343
|
}
|
|
2348
2344
|
|
|
2349
2345
|
continue $sm;
|
|
2350
2346
|
case 11:
|
|
2351
|
-
var
|
|
2352
|
-
this.
|
|
2353
|
-
|
|
2354
|
-
this.
|
|
2355
|
-
this.
|
|
2347
|
+
var tmp_5 = this;
|
|
2348
|
+
this.t1u_1;
|
|
2349
|
+
tmp_5.s1u_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2350
|
+
this.e9_1 = 14;
|
|
2351
|
+
this.d9_1 = 13;
|
|
2356
2352
|
continue $sm;
|
|
2357
2353
|
case 12:
|
|
2358
|
-
this.
|
|
2359
|
-
var
|
|
2360
|
-
if (
|
|
2361
|
-
var e_0 = this.
|
|
2362
|
-
var
|
|
2363
|
-
|
|
2364
|
-
this.
|
|
2354
|
+
this.e9_1 = 14;
|
|
2355
|
+
var tmp_6 = this.g9_1;
|
|
2356
|
+
if (tmp_6 instanceof Error) {
|
|
2357
|
+
var e_0 = this.g9_1;
|
|
2358
|
+
var tmp_7 = this;
|
|
2359
|
+
tmp_7.s1u_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2360
|
+
this.d9_1 = 13;
|
|
2365
2361
|
continue $sm;
|
|
2366
2362
|
} else {
|
|
2367
|
-
throw this.
|
|
2363
|
+
throw this.g9_1;
|
|
2368
2364
|
}
|
|
2369
2365
|
|
|
2370
2366
|
case 13:
|
|
2371
|
-
this.
|
|
2367
|
+
this.e9_1 = 14;
|
|
2372
2368
|
return Unit_instance;
|
|
2373
2369
|
case 14:
|
|
2374
|
-
throw this.
|
|
2370
|
+
throw this.g9_1;
|
|
2375
2371
|
}
|
|
2376
2372
|
} catch ($p) {
|
|
2377
2373
|
var e_1 = $p;
|
|
2378
|
-
if (this.
|
|
2374
|
+
if (this.e9_1 === 14) {
|
|
2379
2375
|
throw e_1;
|
|
2380
2376
|
} else {
|
|
2381
|
-
this.
|
|
2382
|
-
this.
|
|
2377
|
+
this.d9_1 = this.e9_1;
|
|
2378
|
+
this.g9_1 = e_1;
|
|
2383
2379
|
}
|
|
2384
2380
|
}
|
|
2385
2381
|
while (true);
|
|
2386
2382
|
};
|
|
2387
|
-
protoOf(writer$slambda).
|
|
2388
|
-
var i = new writer$slambda(this.
|
|
2389
|
-
i.
|
|
2383
|
+
protoOf(writer$slambda).z1u = function ($this$launch, completion) {
|
|
2384
|
+
var i = new writer$slambda(this.p1u_1, this.q1u_1, completion);
|
|
2385
|
+
i.r1u_1 = $this$launch;
|
|
2390
2386
|
return i;
|
|
2391
2387
|
};
|
|
2392
2388
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2393
2389
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2394
2390
|
var l = function ($this$launch, $completion) {
|
|
2395
|
-
return i.
|
|
2391
|
+
return i.y1u($this$launch, $completion);
|
|
2396
2392
|
};
|
|
2397
2393
|
l.$arity = 1;
|
|
2398
2394
|
return l;
|
|
@@ -2400,8 +2396,8 @@
|
|
|
2400
2396
|
function writer$lambda($channel) {
|
|
2401
2397
|
return function (it) {
|
|
2402
2398
|
var tmp;
|
|
2403
|
-
if (!(it == null) && !$channel.
|
|
2404
|
-
$channel.
|
|
2399
|
+
if (!(it == null) && !$channel.t1l()) {
|
|
2400
|
+
$channel.a1m(it);
|
|
2405
2401
|
tmp = Unit_instance;
|
|
2406
2402
|
}
|
|
2407
2403
|
return Unit_instance;
|
|
@@ -2409,48 +2405,48 @@
|
|
|
2409
2405
|
}
|
|
2410
2406
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2411
2407
|
CoroutineImpl.call(this, resultContinuation);
|
|
2412
|
-
this.
|
|
2413
|
-
this.
|
|
2408
|
+
this.c1u_1 = _this__u8e3s4;
|
|
2409
|
+
this.d1u_1 = source;
|
|
2414
2410
|
}
|
|
2415
|
-
protoOf($writePacketCOROUTINE$).
|
|
2416
|
-
var suspendResult = this.
|
|
2411
|
+
protoOf($writePacketCOROUTINE$).l9 = function () {
|
|
2412
|
+
var suspendResult = this.f9_1;
|
|
2417
2413
|
$sm: do
|
|
2418
2414
|
try {
|
|
2419
|
-
var tmp = this.
|
|
2415
|
+
var tmp = this.d9_1;
|
|
2420
2416
|
switch (tmp) {
|
|
2421
2417
|
case 0:
|
|
2422
|
-
this.
|
|
2423
|
-
this.
|
|
2418
|
+
this.e9_1 = 4;
|
|
2419
|
+
this.d9_1 = 1;
|
|
2424
2420
|
continue $sm;
|
|
2425
2421
|
case 1:
|
|
2426
|
-
if (!!this.
|
|
2427
|
-
this.
|
|
2422
|
+
if (!!this.d1u_1.wo()) {
|
|
2423
|
+
this.d9_1 = 3;
|
|
2428
2424
|
continue $sm;
|
|
2429
2425
|
}
|
|
2430
2426
|
|
|
2431
|
-
this.
|
|
2432
|
-
this.
|
|
2433
|
-
suspendResult = flushIfNeeded(this.
|
|
2427
|
+
this.c1u_1.s1l().jq(this.d1u_1, get_remaining(this.d1u_1));
|
|
2428
|
+
this.d9_1 = 2;
|
|
2429
|
+
suspendResult = flushIfNeeded(this.c1u_1, this);
|
|
2434
2430
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2435
2431
|
return suspendResult;
|
|
2436
2432
|
}
|
|
2437
2433
|
|
|
2438
2434
|
continue $sm;
|
|
2439
2435
|
case 2:
|
|
2440
|
-
this.
|
|
2436
|
+
this.d9_1 = 1;
|
|
2441
2437
|
continue $sm;
|
|
2442
2438
|
case 3:
|
|
2443
2439
|
return Unit_instance;
|
|
2444
2440
|
case 4:
|
|
2445
|
-
throw this.
|
|
2441
|
+
throw this.g9_1;
|
|
2446
2442
|
}
|
|
2447
2443
|
} catch ($p) {
|
|
2448
2444
|
var e = $p;
|
|
2449
|
-
if (this.
|
|
2445
|
+
if (this.e9_1 === 4) {
|
|
2450
2446
|
throw e;
|
|
2451
2447
|
} else {
|
|
2452
|
-
this.
|
|
2453
|
-
this.
|
|
2448
|
+
this.d9_1 = this.e9_1;
|
|
2449
|
+
this.g9_1 = e;
|
|
2454
2450
|
}
|
|
2455
2451
|
}
|
|
2456
2452
|
while (true);
|
|
@@ -2475,27 +2471,27 @@
|
|
|
2475
2471
|
return l;
|
|
2476
2472
|
}
|
|
2477
2473
|
function CloseToken(origin) {
|
|
2478
|
-
this.
|
|
2474
|
+
this.q1l_1 = origin;
|
|
2479
2475
|
}
|
|
2480
|
-
protoOf(CloseToken).
|
|
2481
|
-
var tmp0_subject = this.
|
|
2476
|
+
protoOf(CloseToken).a1v = function (wrap) {
|
|
2477
|
+
var tmp0_subject = this.q1l_1;
|
|
2482
2478
|
var tmp;
|
|
2483
2479
|
if (tmp0_subject == null) {
|
|
2484
2480
|
tmp = null;
|
|
2485
2481
|
} else {
|
|
2486
2482
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2487
|
-
tmp = this.
|
|
2483
|
+
tmp = this.q1l_1.a11();
|
|
2488
2484
|
} else {
|
|
2489
2485
|
if (tmp0_subject instanceof CancellationException) {
|
|
2490
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2486
|
+
tmp = CancellationException_init_$Create$(this.q1l_1.message, this.q1l_1);
|
|
2491
2487
|
} else {
|
|
2492
|
-
tmp = wrap(this.
|
|
2488
|
+
tmp = wrap(this.q1l_1);
|
|
2493
2489
|
}
|
|
2494
2490
|
}
|
|
2495
2491
|
}
|
|
2496
2492
|
return tmp;
|
|
2497
2493
|
};
|
|
2498
|
-
protoOf(CloseToken).
|
|
2494
|
+
protoOf(CloseToken).v1l = function (wrap, $super) {
|
|
2499
2495
|
var tmp;
|
|
2500
2496
|
if (wrap === VOID) {
|
|
2501
2497
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2503,10 +2499,10 @@
|
|
|
2503
2499
|
tmp = wrap;
|
|
2504
2500
|
}
|
|
2505
2501
|
wrap = tmp;
|
|
2506
|
-
return $super === VOID ? this.
|
|
2502
|
+
return $super === VOID ? this.a1v(wrap) : $super.a1v.call(this, wrap);
|
|
2507
2503
|
};
|
|
2508
|
-
protoOf(CloseToken).
|
|
2509
|
-
var tmp0_safe_receiver = this.
|
|
2504
|
+
protoOf(CloseToken).r1l = function (wrap) {
|
|
2505
|
+
var tmp0_safe_receiver = this.a1v(wrap);
|
|
2510
2506
|
var tmp;
|
|
2511
2507
|
if (tmp0_safe_receiver == null) {
|
|
2512
2508
|
tmp = null;
|
|
@@ -2525,32 +2521,32 @@
|
|
|
2525
2521
|
}
|
|
2526
2522
|
function transferFromDelegate($this) {
|
|
2527
2523
|
updateConsumed($this);
|
|
2528
|
-
var appended = $this.
|
|
2529
|
-
$this.
|
|
2524
|
+
var appended = $this.c1v_1.oq($this.b1v_1.p1l());
|
|
2525
|
+
$this.d1v_1 = add($this.d1v_1, appended);
|
|
2530
2526
|
}
|
|
2531
2527
|
function updateConsumed($this) {
|
|
2532
|
-
$this.
|
|
2533
|
-
$this.
|
|
2528
|
+
$this.e1v_1 = add($this.e1v_1, subtract($this.d1v_1, $this.c1v_1.l1()));
|
|
2529
|
+
$this.d1v_1 = $this.c1v_1.l1();
|
|
2534
2530
|
}
|
|
2535
2531
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2536
2532
|
CoroutineImpl.call(this, resultContinuation);
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2533
|
+
this.n1v_1 = _this__u8e3s4;
|
|
2534
|
+
this.o1v_1 = min;
|
|
2539
2535
|
}
|
|
2540
|
-
protoOf($awaitContentCOROUTINE$_0).
|
|
2541
|
-
var suspendResult = this.
|
|
2536
|
+
protoOf($awaitContentCOROUTINE$_0).l9 = function () {
|
|
2537
|
+
var suspendResult = this.f9_1;
|
|
2542
2538
|
$sm: do
|
|
2543
2539
|
try {
|
|
2544
|
-
var tmp = this.
|
|
2540
|
+
var tmp = this.d9_1;
|
|
2545
2541
|
switch (tmp) {
|
|
2546
2542
|
case 0:
|
|
2547
|
-
this.
|
|
2548
|
-
if (compare(this.
|
|
2543
|
+
this.e9_1 = 3;
|
|
2544
|
+
if (compare(this.n1v_1.p1l().l1(), fromInt(this.o1v_1)) >= 0) {
|
|
2549
2545
|
return true;
|
|
2550
2546
|
}
|
|
2551
2547
|
|
|
2552
|
-
this.
|
|
2553
|
-
suspendResult = this.
|
|
2548
|
+
this.d9_1 = 1;
|
|
2549
|
+
suspendResult = this.n1v_1.b1v_1.x1l(this.o1v_1, this);
|
|
2554
2550
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2555
2551
|
return suspendResult;
|
|
2556
2552
|
}
|
|
@@ -2558,58 +2554,58 @@
|
|
|
2558
2554
|
continue $sm;
|
|
2559
2555
|
case 1:
|
|
2560
2556
|
if (suspendResult) {
|
|
2561
|
-
transferFromDelegate(this.
|
|
2557
|
+
transferFromDelegate(this.n1v_1);
|
|
2562
2558
|
return true;
|
|
2563
2559
|
} else {
|
|
2564
|
-
this.
|
|
2560
|
+
this.d9_1 = 2;
|
|
2565
2561
|
continue $sm;
|
|
2566
2562
|
}
|
|
2567
2563
|
|
|
2568
2564
|
case 2:
|
|
2569
2565
|
return false;
|
|
2570
2566
|
case 3:
|
|
2571
|
-
throw this.
|
|
2567
|
+
throw this.g9_1;
|
|
2572
2568
|
}
|
|
2573
2569
|
} catch ($p) {
|
|
2574
2570
|
var e = $p;
|
|
2575
|
-
if (this.
|
|
2571
|
+
if (this.e9_1 === 3) {
|
|
2576
2572
|
throw e;
|
|
2577
2573
|
} else {
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2574
|
+
this.d9_1 = this.e9_1;
|
|
2575
|
+
this.g9_1 = e;
|
|
2580
2576
|
}
|
|
2581
2577
|
}
|
|
2582
2578
|
while (true);
|
|
2583
2579
|
};
|
|
2584
2580
|
function CountedByteReadChannel(delegate) {
|
|
2585
|
-
this.
|
|
2586
|
-
this.
|
|
2587
|
-
this.
|
|
2588
|
-
this.
|
|
2581
|
+
this.b1v_1 = delegate;
|
|
2582
|
+
this.c1v_1 = new Buffer();
|
|
2583
|
+
this.d1v_1 = new Long(0, 0);
|
|
2584
|
+
this.e1v_1 = new Long(0, 0);
|
|
2589
2585
|
}
|
|
2590
|
-
protoOf(CountedByteReadChannel).
|
|
2586
|
+
protoOf(CountedByteReadChannel).p1v = function () {
|
|
2591
2587
|
updateConsumed(this);
|
|
2592
|
-
return this.
|
|
2588
|
+
return this.e1v_1;
|
|
2593
2589
|
};
|
|
2594
|
-
protoOf(CountedByteReadChannel).
|
|
2595
|
-
return this.
|
|
2590
|
+
protoOf(CountedByteReadChannel).u1l = function () {
|
|
2591
|
+
return this.b1v_1.u1l();
|
|
2596
2592
|
};
|
|
2597
|
-
protoOf(CountedByteReadChannel).
|
|
2598
|
-
return this.
|
|
2593
|
+
protoOf(CountedByteReadChannel).w1l = function () {
|
|
2594
|
+
return this.c1v_1.wo() && this.b1v_1.w1l();
|
|
2599
2595
|
};
|
|
2600
|
-
protoOf(CountedByteReadChannel).
|
|
2596
|
+
protoOf(CountedByteReadChannel).p1l = function () {
|
|
2601
2597
|
transferFromDelegate(this);
|
|
2602
|
-
return this.
|
|
2598
|
+
return this.c1v_1;
|
|
2603
2599
|
};
|
|
2604
|
-
protoOf(CountedByteReadChannel).
|
|
2600
|
+
protoOf(CountedByteReadChannel).x1l = function (min, $completion) {
|
|
2605
2601
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2606
|
-
tmp.
|
|
2607
|
-
tmp.
|
|
2608
|
-
return tmp.
|
|
2602
|
+
tmp.f9_1 = Unit_instance;
|
|
2603
|
+
tmp.g9_1 = null;
|
|
2604
|
+
return tmp.l9();
|
|
2609
2605
|
};
|
|
2610
|
-
protoOf(CountedByteReadChannel).
|
|
2611
|
-
this.
|
|
2612
|
-
this.
|
|
2606
|
+
protoOf(CountedByteReadChannel).a1m = function (cause) {
|
|
2607
|
+
this.b1v_1.a1m(cause);
|
|
2608
|
+
this.c1v_1.o4();
|
|
2613
2609
|
};
|
|
2614
2610
|
function counted(_this__u8e3s4) {
|
|
2615
2611
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2646,23 +2642,23 @@
|
|
|
2646
2642
|
}
|
|
2647
2643
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2648
2644
|
var tmp;
|
|
2649
|
-
if ($this === Companion_getInstance_1().
|
|
2645
|
+
if ($this === Companion_getInstance_1().e1r_1) {
|
|
2650
2646
|
tmp = 'CR';
|
|
2651
|
-
} else if ($this === Companion_getInstance_1().
|
|
2647
|
+
} else if ($this === Companion_getInstance_1().f1r_1) {
|
|
2652
2648
|
tmp = 'LF';
|
|
2653
|
-
} else if ($this === Companion_getInstance_1().
|
|
2649
|
+
} else if ($this === Companion_getInstance_1().g1r_1) {
|
|
2654
2650
|
tmp = 'CRLF';
|
|
2655
2651
|
} else {
|
|
2656
2652
|
// Inline function 'kotlin.collections.filter' call
|
|
2657
|
-
var tmp0 = Companion_getInstance_1().
|
|
2653
|
+
var tmp0 = Companion_getInstance_1().i1r_1;
|
|
2658
2654
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2659
2655
|
var destination = ArrayList_init_$Create$();
|
|
2660
|
-
var _iterator__ex2g4s = tmp0.
|
|
2661
|
-
while (_iterator__ex2g4s.
|
|
2662
|
-
var element = _iterator__ex2g4s.
|
|
2663
|
-
var it = element.
|
|
2656
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2657
|
+
while (_iterator__ex2g4s.u()) {
|
|
2658
|
+
var element = _iterator__ex2g4s.v();
|
|
2659
|
+
var it = element.q1v_1;
|
|
2664
2660
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2665
|
-
destination.
|
|
2661
|
+
destination.j1(element);
|
|
2666
2662
|
}
|
|
2667
2663
|
}
|
|
2668
2664
|
tmp = toString_1(destination);
|
|
@@ -2671,11 +2667,11 @@
|
|
|
2671
2667
|
}
|
|
2672
2668
|
function Companion_1() {
|
|
2673
2669
|
Companion_instance_2 = this;
|
|
2674
|
-
this.
|
|
2675
|
-
this.
|
|
2676
|
-
this.
|
|
2677
|
-
this.
|
|
2678
|
-
this.
|
|
2670
|
+
this.e1r_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2671
|
+
this.f1r_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2672
|
+
this.g1r_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2673
|
+
this.h1r_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2674
|
+
this.i1r_1 = listOf([new LineEndingMode(this.e1r_1), new LineEndingMode(this.f1r_1), new LineEndingMode(this.g1r_1)]);
|
|
2679
2675
|
}
|
|
2680
2676
|
var Companion_instance_2;
|
|
2681
2677
|
function Companion_getInstance_1() {
|
|
@@ -2689,67 +2685,67 @@
|
|
|
2689
2685
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2690
2686
|
if (!(other instanceof LineEndingMode))
|
|
2691
2687
|
return false;
|
|
2692
|
-
if (!($this === other.
|
|
2688
|
+
if (!($this === other.q1v_1))
|
|
2693
2689
|
return false;
|
|
2694
2690
|
return true;
|
|
2695
2691
|
}
|
|
2696
2692
|
function LineEndingMode(mode) {
|
|
2697
2693
|
Companion_getInstance_1();
|
|
2698
|
-
this.
|
|
2694
|
+
this.q1v_1 = mode;
|
|
2699
2695
|
}
|
|
2700
2696
|
protoOf(LineEndingMode).toString = function () {
|
|
2701
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2697
|
+
return LineEndingMode__toString_impl_j4h76r(this.q1v_1);
|
|
2702
2698
|
};
|
|
2703
2699
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2704
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2700
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.q1v_1);
|
|
2705
2701
|
};
|
|
2706
2702
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2707
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2703
|
+
return LineEndingMode__equals_impl_qyr4nk(this.q1v_1, other);
|
|
2708
2704
|
};
|
|
2709
2705
|
function SourceByteReadChannel(source) {
|
|
2710
|
-
this.
|
|
2711
|
-
this.
|
|
2706
|
+
this.r1v_1 = source;
|
|
2707
|
+
this.s1v_1 = null;
|
|
2712
2708
|
}
|
|
2713
|
-
protoOf(SourceByteReadChannel).
|
|
2714
|
-
var tmp0_safe_receiver = this.
|
|
2715
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2709
|
+
protoOf(SourceByteReadChannel).u1l = function () {
|
|
2710
|
+
var tmp0_safe_receiver = this.s1v_1;
|
|
2711
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1l();
|
|
2716
2712
|
};
|
|
2717
|
-
protoOf(SourceByteReadChannel).
|
|
2718
|
-
return this.
|
|
2713
|
+
protoOf(SourceByteReadChannel).w1l = function () {
|
|
2714
|
+
return this.r1v_1.wo();
|
|
2719
2715
|
};
|
|
2720
|
-
protoOf(SourceByteReadChannel).
|
|
2721
|
-
var tmp0_safe_receiver = this.
|
|
2716
|
+
protoOf(SourceByteReadChannel).p1l = function () {
|
|
2717
|
+
var tmp0_safe_receiver = this.u1l();
|
|
2722
2718
|
if (tmp0_safe_receiver == null)
|
|
2723
2719
|
null;
|
|
2724
2720
|
else {
|
|
2725
2721
|
// Inline function 'kotlin.let' call
|
|
2726
2722
|
throw tmp0_safe_receiver;
|
|
2727
2723
|
}
|
|
2728
|
-
return this.
|
|
2724
|
+
return this.r1v_1.vo();
|
|
2729
2725
|
};
|
|
2730
|
-
protoOf(SourceByteReadChannel).
|
|
2731
|
-
var tmp0_safe_receiver = this.
|
|
2726
|
+
protoOf(SourceByteReadChannel).x1l = function (min, $completion) {
|
|
2727
|
+
var tmp0_safe_receiver = this.u1l();
|
|
2732
2728
|
if (tmp0_safe_receiver == null)
|
|
2733
2729
|
null;
|
|
2734
2730
|
else {
|
|
2735
2731
|
// Inline function 'kotlin.let' call
|
|
2736
2732
|
throw tmp0_safe_receiver;
|
|
2737
2733
|
}
|
|
2738
|
-
return this.
|
|
2734
|
+
return this.r1v_1.yo(fromInt(min));
|
|
2739
2735
|
};
|
|
2740
|
-
protoOf(SourceByteReadChannel).
|
|
2741
|
-
if (!(this.
|
|
2736
|
+
protoOf(SourceByteReadChannel).a1m = function (cause) {
|
|
2737
|
+
if (!(this.s1v_1 == null))
|
|
2742
2738
|
return Unit_instance;
|
|
2743
|
-
this.
|
|
2739
|
+
this.r1v_1.o4();
|
|
2744
2740
|
var tmp = this;
|
|
2745
2741
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2746
|
-
tmp.
|
|
2742
|
+
tmp.s1v_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2747
2743
|
};
|
|
2748
2744
|
function decode(_this__u8e3s4, input, max) {
|
|
2749
2745
|
max = max === VOID ? 2147483647 : max;
|
|
2750
2746
|
var tmp0 = fromInt(max);
|
|
2751
2747
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2752
|
-
var b = input.
|
|
2748
|
+
var b = input.vo().l1();
|
|
2753
2749
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2754
2750
|
// Inline function 'kotlin.text.buildString' call
|
|
2755
2751
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2786,41 +2782,41 @@
|
|
|
2786
2782
|
}
|
|
2787
2783
|
}
|
|
2788
2784
|
function canRead(_this__u8e3s4) {
|
|
2789
|
-
return !_this__u8e3s4.
|
|
2785
|
+
return !_this__u8e3s4.wo();
|
|
2790
2786
|
}
|
|
2791
2787
|
function readBytes(_this__u8e3s4, count) {
|
|
2792
|
-
count = count === VOID ? convertToInt(_this__u8e3s4.
|
|
2788
|
+
count = count === VOID ? convertToInt(_this__u8e3s4.l1()) : count;
|
|
2793
2789
|
return readByteArray(_this__u8e3s4, count);
|
|
2794
2790
|
}
|
|
2795
2791
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2796
2792
|
offset = offset === VOID ? 0 : offset;
|
|
2797
2793
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2798
|
-
_this__u8e3s4.
|
|
2794
|
+
_this__u8e3s4.fq(buffer, offset, offset + length | 0);
|
|
2799
2795
|
}
|
|
2800
2796
|
function BytePacketBuilder() {
|
|
2801
2797
|
return new Buffer();
|
|
2802
2798
|
}
|
|
2803
2799
|
function get_size(_this__u8e3s4) {
|
|
2804
|
-
return convertToInt(_this__u8e3s4.
|
|
2800
|
+
return convertToInt(_this__u8e3s4.vo().l1());
|
|
2805
2801
|
}
|
|
2806
2802
|
var ByteReadPacketEmpty;
|
|
2807
2803
|
function get_remaining(_this__u8e3s4) {
|
|
2808
2804
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2809
|
-
return _this__u8e3s4.
|
|
2805
|
+
return _this__u8e3s4.vo().l1();
|
|
2810
2806
|
}
|
|
2811
2807
|
function takeWhile(_this__u8e3s4, block) {
|
|
2812
2808
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2813
|
-
while (!_this__u8e3s4.
|
|
2809
|
+
while (!_this__u8e3s4.wo() && block(_this__u8e3s4.vo())) {
|
|
2814
2810
|
}
|
|
2815
2811
|
}
|
|
2816
2812
|
function discard_0(_this__u8e3s4, count) {
|
|
2817
2813
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2818
2814
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2819
|
-
_this__u8e3s4.
|
|
2815
|
+
_this__u8e3s4.yo(count);
|
|
2820
2816
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2821
2817
|
var b = get_remaining(_this__u8e3s4);
|
|
2822
2818
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
2823
|
-
_this__u8e3s4.
|
|
2819
|
+
_this__u8e3s4.vo().tp(countToDiscard);
|
|
2824
2820
|
return countToDiscard;
|
|
2825
2821
|
}
|
|
2826
2822
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2833,37 +2829,37 @@
|
|
|
2833
2829
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2834
2830
|
offset = offset === VOID ? 0 : offset;
|
|
2835
2831
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2836
|
-
var result = _this__u8e3s4.
|
|
2832
|
+
var result = _this__u8e3s4.up(buffer, offset, offset + length | 0);
|
|
2837
2833
|
return result === -1 ? 0 : result;
|
|
2838
2834
|
}
|
|
2839
2835
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2840
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2836
|
+
charset = charset === VOID ? Charsets_getInstance().t1v_1 : charset;
|
|
2841
2837
|
max = max === VOID ? 2147483647 : max;
|
|
2842
|
-
if (charset.equals(Charsets_getInstance().
|
|
2838
|
+
if (charset.equals(Charsets_getInstance().t1v_1)) {
|
|
2843
2839
|
if (max === 2147483647)
|
|
2844
2840
|
return readString_0(_this__u8e3s4);
|
|
2845
|
-
var tmp0 = _this__u8e3s4.
|
|
2841
|
+
var tmp0 = _this__u8e3s4.vo().l1();
|
|
2846
2842
|
// Inline function 'kotlin.math.min' call
|
|
2847
2843
|
var b = fromInt(max);
|
|
2848
2844
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2849
2845
|
return readString_1(_this__u8e3s4, count);
|
|
2850
2846
|
}
|
|
2851
|
-
return decode(charset.
|
|
2847
|
+
return decode(charset.w1v(), _this__u8e3s4, max);
|
|
2852
2848
|
}
|
|
2853
2849
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2854
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2855
|
-
if (charset.equals(Charsets_getInstance().
|
|
2850
|
+
charset = charset === VOID ? Charsets_getInstance().t1v_1 : charset;
|
|
2851
|
+
if (charset.equals(Charsets_getInstance().t1v_1))
|
|
2856
2852
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2857
|
-
return encodeToByteArray_0(charset.
|
|
2853
|
+
return encodeToByteArray_0(charset.x1v(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2858
2854
|
}
|
|
2859
2855
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2860
2856
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2861
2857
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2862
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2863
|
-
if (charset === Charsets_getInstance().
|
|
2858
|
+
charset = charset === VOID ? Charsets_getInstance().t1v_1 : charset;
|
|
2859
|
+
if (charset === Charsets_getInstance().t1v_1) {
|
|
2864
2860
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2865
2861
|
}
|
|
2866
|
-
encodeToImpl(charset.
|
|
2862
|
+
encodeToImpl(charset.x1v(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2867
2863
|
}
|
|
2868
2864
|
function get_ByteArrayPool() {
|
|
2869
2865
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2873,7 +2869,7 @@
|
|
|
2873
2869
|
function ByteArrayPool$1() {
|
|
2874
2870
|
DefaultPool.call(this, 128);
|
|
2875
2871
|
}
|
|
2876
|
-
protoOf(ByteArrayPool$1).
|
|
2872
|
+
protoOf(ByteArrayPool$1).b1w = function () {
|
|
2877
2873
|
return new Int8Array(4096);
|
|
2878
2874
|
};
|
|
2879
2875
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2887,21 +2883,21 @@
|
|
|
2887
2883
|
}
|
|
2888
2884
|
function NoPoolImpl() {
|
|
2889
2885
|
}
|
|
2890
|
-
protoOf(NoPoolImpl).
|
|
2886
|
+
protoOf(NoPoolImpl).j1w = function (instance) {
|
|
2891
2887
|
return Unit_instance;
|
|
2892
2888
|
};
|
|
2893
|
-
protoOf(NoPoolImpl).
|
|
2889
|
+
protoOf(NoPoolImpl).fv = function () {
|
|
2894
2890
|
return Unit_instance;
|
|
2895
2891
|
};
|
|
2896
2892
|
function Companion_2() {
|
|
2897
2893
|
}
|
|
2898
|
-
protoOf(Companion_2).
|
|
2894
|
+
protoOf(Companion_2).k1w = function (name) {
|
|
2899
2895
|
switch (name) {
|
|
2900
2896
|
case 'UTF-8':
|
|
2901
2897
|
case 'utf-8':
|
|
2902
2898
|
case 'UTF8':
|
|
2903
2899
|
case 'utf8':
|
|
2904
|
-
return Charsets_getInstance().
|
|
2900
|
+
return Charsets_getInstance().t1v_1;
|
|
2905
2901
|
}
|
|
2906
2902
|
var tmp;
|
|
2907
2903
|
var tmp_0;
|
|
@@ -2932,11 +2928,11 @@
|
|
|
2932
2928
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2933
2929
|
}
|
|
2934
2930
|
if (tmp) {
|
|
2935
|
-
return Charsets_getInstance().
|
|
2931
|
+
return Charsets_getInstance().u1v_1;
|
|
2936
2932
|
}
|
|
2937
2933
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2938
2934
|
};
|
|
2939
|
-
protoOf(Companion_2).
|
|
2935
|
+
protoOf(Companion_2).l1w = function (charset) {
|
|
2940
2936
|
var tmp;
|
|
2941
2937
|
switch (charset) {
|
|
2942
2938
|
case 'UTF-8':
|
|
@@ -2991,7 +2987,7 @@
|
|
|
2991
2987
|
return Companion_instance_3;
|
|
2992
2988
|
}
|
|
2993
2989
|
function Charset(_name) {
|
|
2994
|
-
this.
|
|
2990
|
+
this.v1v_1 = _name;
|
|
2995
2991
|
}
|
|
2996
2992
|
protoOf(Charset).equals = function (other) {
|
|
2997
2993
|
if (this === other)
|
|
@@ -3000,18 +2996,18 @@
|
|
|
3000
2996
|
return false;
|
|
3001
2997
|
if (!(other instanceof Charset))
|
|
3002
2998
|
THROW_CCE();
|
|
3003
|
-
return this.
|
|
2999
|
+
return this.v1v_1 === other.v1v_1;
|
|
3004
3000
|
};
|
|
3005
3001
|
protoOf(Charset).hashCode = function () {
|
|
3006
|
-
return getStringHashCode(this.
|
|
3002
|
+
return getStringHashCode(this.v1v_1);
|
|
3007
3003
|
};
|
|
3008
3004
|
protoOf(Charset).toString = function () {
|
|
3009
|
-
return this.
|
|
3005
|
+
return this.v1v_1;
|
|
3010
3006
|
};
|
|
3011
3007
|
function Charsets() {
|
|
3012
3008
|
Charsets_instance = this;
|
|
3013
|
-
this.
|
|
3014
|
-
this.
|
|
3009
|
+
this.t1v_1 = new CharsetImpl('UTF-8');
|
|
3010
|
+
this.u1v_1 = new CharsetImpl('ISO-8859-1');
|
|
3015
3011
|
}
|
|
3016
3012
|
var Charsets_instance;
|
|
3017
3013
|
function Charsets_getInstance() {
|
|
@@ -3020,27 +3016,27 @@
|
|
|
3020
3016
|
return Charsets_instance;
|
|
3021
3017
|
}
|
|
3022
3018
|
function CharsetDecoder(_charset) {
|
|
3023
|
-
this.
|
|
3019
|
+
this.m1w_1 = _charset;
|
|
3024
3020
|
}
|
|
3025
3021
|
function MalformedInputException(message) {
|
|
3026
3022
|
IOException_init_$Init$_0(message, this);
|
|
3027
3023
|
captureStack(this, MalformedInputException);
|
|
3028
3024
|
}
|
|
3029
3025
|
function get_name(_this__u8e3s4) {
|
|
3030
|
-
return _this__u8e3s4.
|
|
3026
|
+
return _this__u8e3s4.v1v_1;
|
|
3031
3027
|
}
|
|
3032
3028
|
function isSupported(_this__u8e3s4, name) {
|
|
3033
|
-
return Companion_instance_3.
|
|
3029
|
+
return Companion_instance_3.l1w(name);
|
|
3034
3030
|
}
|
|
3035
3031
|
function forName(_this__u8e3s4, name) {
|
|
3036
|
-
return Companion_instance_3.
|
|
3032
|
+
return Companion_instance_3.k1w(name);
|
|
3037
3033
|
}
|
|
3038
3034
|
function CharsetEncoder(_charset) {
|
|
3039
|
-
this.
|
|
3035
|
+
this.n1w_1 = _charset;
|
|
3040
3036
|
}
|
|
3041
3037
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3042
3038
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3043
|
-
var tmp0 = input.
|
|
3039
|
+
var tmp0 = input.vo().l1();
|
|
3044
3040
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3045
3041
|
var b = fromInt(max);
|
|
3046
3042
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3048,7 +3044,7 @@
|
|
|
3048
3044
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
3049
3045
|
var tmp_0;
|
|
3050
3046
|
try {
|
|
3051
|
-
tmp_0 = decoder.
|
|
3047
|
+
tmp_0 = decoder.o1w(array);
|
|
3052
3048
|
} catch ($p) {
|
|
3053
3049
|
var tmp_1;
|
|
3054
3050
|
if ($p instanceof Error) {
|
|
@@ -3060,7 +3056,7 @@
|
|
|
3060
3056
|
}
|
|
3061
3057
|
}
|
|
3062
3058
|
var result = tmp_0;
|
|
3063
|
-
dst.
|
|
3059
|
+
dst.k1(result);
|
|
3064
3060
|
return result.length;
|
|
3065
3061
|
}
|
|
3066
3062
|
function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
@@ -3070,11 +3066,11 @@
|
|
|
3070
3066
|
var message = 'Failed requirement.';
|
|
3071
3067
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3072
3068
|
}
|
|
3073
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3069
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().u1v_1)) {
|
|
3074
3070
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3075
3071
|
}
|
|
3076
3072
|
// Inline function 'kotlin.require' call
|
|
3077
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3073
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().t1v_1)) {
|
|
3078
3074
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3079
3075
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3080
3076
|
}
|
|
@@ -3084,7 +3080,7 @@
|
|
|
3084
3080
|
var result = encoder.encode(tmp$ret$5);
|
|
3085
3081
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3086
3082
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3087
|
-
dst.
|
|
3083
|
+
dst.iq(result);
|
|
3088
3084
|
return result.length;
|
|
3089
3085
|
}
|
|
3090
3086
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3095,17 +3091,17 @@
|
|
|
3095
3091
|
function CharsetImpl(name) {
|
|
3096
3092
|
Charset.call(this, name);
|
|
3097
3093
|
}
|
|
3098
|
-
protoOf(CharsetImpl).
|
|
3094
|
+
protoOf(CharsetImpl).x1v = function () {
|
|
3099
3095
|
return new CharsetEncoderImpl(this);
|
|
3100
3096
|
};
|
|
3101
|
-
protoOf(CharsetImpl).
|
|
3097
|
+
protoOf(CharsetImpl).w1v = function () {
|
|
3102
3098
|
return new CharsetDecoderImpl(this);
|
|
3103
3099
|
};
|
|
3104
3100
|
function get_charset(_this__u8e3s4) {
|
|
3105
|
-
return _this__u8e3s4.
|
|
3101
|
+
return _this__u8e3s4.m1w_1;
|
|
3106
3102
|
}
|
|
3107
3103
|
function get_charset_0(_this__u8e3s4) {
|
|
3108
|
-
return _this__u8e3s4.
|
|
3104
|
+
return _this__u8e3s4.n1w_1;
|
|
3109
3105
|
}
|
|
3110
3106
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3111
3107
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3124,39 +3120,39 @@
|
|
|
3124
3120
|
}
|
|
3125
3121
|
function CharsetEncoderImpl(charset) {
|
|
3126
3122
|
CharsetEncoder.call(this, charset);
|
|
3127
|
-
this.
|
|
3123
|
+
this.r1w_1 = charset;
|
|
3128
3124
|
}
|
|
3129
3125
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3130
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3126
|
+
return 'CharsetEncoderImpl(charset=' + this.r1w_1.toString() + ')';
|
|
3131
3127
|
};
|
|
3132
3128
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3133
|
-
return this.
|
|
3129
|
+
return this.r1w_1.hashCode();
|
|
3134
3130
|
};
|
|
3135
3131
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3136
3132
|
if (this === other)
|
|
3137
3133
|
return true;
|
|
3138
3134
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3139
3135
|
return false;
|
|
3140
|
-
if (!this.
|
|
3136
|
+
if (!this.r1w_1.equals(other.r1w_1))
|
|
3141
3137
|
return false;
|
|
3142
3138
|
return true;
|
|
3143
3139
|
};
|
|
3144
3140
|
function CharsetDecoderImpl(charset) {
|
|
3145
3141
|
CharsetDecoder.call(this, charset);
|
|
3146
|
-
this.
|
|
3142
|
+
this.t1w_1 = charset;
|
|
3147
3143
|
}
|
|
3148
3144
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3149
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3145
|
+
return 'CharsetDecoderImpl(charset=' + this.t1w_1.toString() + ')';
|
|
3150
3146
|
};
|
|
3151
3147
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3152
|
-
return this.
|
|
3148
|
+
return this.t1w_1.hashCode();
|
|
3153
3149
|
};
|
|
3154
3150
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3155
3151
|
if (this === other)
|
|
3156
3152
|
return true;
|
|
3157
3153
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3158
3154
|
return false;
|
|
3159
|
-
if (!this.
|
|
3155
|
+
if (!this.t1w_1.equals(other.t1w_1))
|
|
3160
3156
|
return false;
|
|
3161
3157
|
return true;
|
|
3162
3158
|
};
|
|
@@ -3190,10 +3186,10 @@
|
|
|
3190
3186
|
return this_0;
|
|
3191
3187
|
}
|
|
3192
3188
|
function toKtor$1($this_toKtor) {
|
|
3193
|
-
this.
|
|
3189
|
+
this.u1w_1 = $this_toKtor;
|
|
3194
3190
|
}
|
|
3195
|
-
protoOf(toKtor$1).
|
|
3196
|
-
return this.
|
|
3191
|
+
protoOf(toKtor$1).o1w = function (buffer) {
|
|
3192
|
+
return this.u1w_1.decode(buffer);
|
|
3197
3193
|
};
|
|
3198
3194
|
function get_ENCODING_ALIASES() {
|
|
3199
3195
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3206,18 +3202,18 @@
|
|
|
3206
3202
|
}
|
|
3207
3203
|
var REPLACEMENT;
|
|
3208
3204
|
function TextDecoderFallback(encoding, fatal) {
|
|
3209
|
-
this.
|
|
3205
|
+
this.v1w_1 = fatal;
|
|
3210
3206
|
// Inline function 'kotlin.text.trim' call
|
|
3211
3207
|
// Inline function 'kotlin.text.lowercase' call
|
|
3212
3208
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3213
3209
|
var requestedEncoding = toString_1(trim(isCharSequence(encoding) ? encoding : THROW_CCE())).toLowerCase();
|
|
3214
3210
|
// Inline function 'kotlin.check' call
|
|
3215
|
-
if (!get_ENCODING_ALIASES().
|
|
3211
|
+
if (!get_ENCODING_ALIASES().m2(requestedEncoding)) {
|
|
3216
3212
|
var message = encoding + ' is not supported.';
|
|
3217
3213
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3218
3214
|
}
|
|
3219
3215
|
}
|
|
3220
|
-
protoOf(TextDecoderFallback).
|
|
3216
|
+
protoOf(TextDecoderFallback).o1w = function (buffer) {
|
|
3221
3217
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3222
3218
|
var builder = new Buffer();
|
|
3223
3219
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3233,7 +3229,7 @@
|
|
|
3233
3229
|
var point = toCodePoint(byte);
|
|
3234
3230
|
if (point < 0) {
|
|
3235
3231
|
// Inline function 'kotlin.check' call
|
|
3236
|
-
if (!!this.
|
|
3232
|
+
if (!!this.v1w_1) {
|
|
3237
3233
|
var message = 'Invalid character: ' + point;
|
|
3238
3234
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3239
3235
|
}
|
|
@@ -3241,9 +3237,9 @@
|
|
|
3241
3237
|
continue $l$loop;
|
|
3242
3238
|
}
|
|
3243
3239
|
if (point > 255) {
|
|
3244
|
-
builder.
|
|
3240
|
+
builder.pq(toByte(point >> 8));
|
|
3245
3241
|
}
|
|
3246
|
-
builder.
|
|
3242
|
+
builder.pq(toByte(point & 255));
|
|
3247
3243
|
}
|
|
3248
3244
|
while (inductionVariable < last);
|
|
3249
3245
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3273,7 +3269,7 @@
|
|
|
3273
3269
|
return false;
|
|
3274
3270
|
}
|
|
3275
3271
|
function ioDispatcher() {
|
|
3276
|
-
return Dispatchers_getInstance().
|
|
3272
|
+
return Dispatchers_getInstance().q14_1;
|
|
3277
3273
|
}
|
|
3278
3274
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3279
3275
|
if (fromIndex >= toIndex)
|
|
@@ -3289,7 +3285,7 @@
|
|
|
3289
3285
|
if (character > 255) {
|
|
3290
3286
|
failedToMapError(character);
|
|
3291
3287
|
}
|
|
3292
|
-
dst.
|
|
3288
|
+
dst.pq(toByte(character));
|
|
3293
3289
|
}
|
|
3294
3290
|
while (inductionVariable < toIndex);
|
|
3295
3291
|
return toIndex - fromIndex | 0;
|
|
@@ -3311,66 +3307,66 @@
|
|
|
3311
3307
|
}
|
|
3312
3308
|
}
|
|
3313
3309
|
function DefaultPool(capacity) {
|
|
3314
|
-
this.
|
|
3310
|
+
this.c1w_1 = capacity;
|
|
3315
3311
|
var tmp = this;
|
|
3316
3312
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3317
|
-
var size = this.
|
|
3318
|
-
tmp.
|
|
3319
|
-
this.
|
|
3313
|
+
var size = this.c1w_1;
|
|
3314
|
+
tmp.d1w_1 = Array(size);
|
|
3315
|
+
this.e1w_1 = 0;
|
|
3320
3316
|
}
|
|
3321
|
-
protoOf(DefaultPool).
|
|
3317
|
+
protoOf(DefaultPool).f1w = function (instance) {
|
|
3322
3318
|
};
|
|
3323
|
-
protoOf(DefaultPool).
|
|
3319
|
+
protoOf(DefaultPool).g1w = function (instance) {
|
|
3324
3320
|
return instance;
|
|
3325
3321
|
};
|
|
3326
|
-
protoOf(DefaultPool).
|
|
3322
|
+
protoOf(DefaultPool).h1w = function (instance) {
|
|
3327
3323
|
};
|
|
3328
|
-
protoOf(DefaultPool).
|
|
3329
|
-
if (this.
|
|
3330
|
-
return this.
|
|
3331
|
-
this.
|
|
3332
|
-
var idx = this.
|
|
3333
|
-
var tmp = this.
|
|
3324
|
+
protoOf(DefaultPool).i1w = function () {
|
|
3325
|
+
if (this.e1w_1 === 0)
|
|
3326
|
+
return this.b1w();
|
|
3327
|
+
this.e1w_1 = this.e1w_1 - 1 | 0;
|
|
3328
|
+
var idx = this.e1w_1;
|
|
3329
|
+
var tmp = this.d1w_1[idx];
|
|
3334
3330
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3335
|
-
this.
|
|
3336
|
-
return this.
|
|
3331
|
+
this.d1w_1[idx] = null;
|
|
3332
|
+
return this.g1w(instance);
|
|
3337
3333
|
};
|
|
3338
|
-
protoOf(DefaultPool).
|
|
3339
|
-
this.
|
|
3340
|
-
if (this.
|
|
3341
|
-
this.
|
|
3334
|
+
protoOf(DefaultPool).j1w = function (instance) {
|
|
3335
|
+
this.h1w(instance);
|
|
3336
|
+
if (this.e1w_1 === this.c1w_1) {
|
|
3337
|
+
this.f1w(instance);
|
|
3342
3338
|
} else {
|
|
3343
|
-
var _unary__edvuaz = this.
|
|
3344
|
-
this.
|
|
3345
|
-
this.
|
|
3339
|
+
var _unary__edvuaz = this.e1w_1;
|
|
3340
|
+
this.e1w_1 = _unary__edvuaz + 1 | 0;
|
|
3341
|
+
this.d1w_1[_unary__edvuaz] = instance;
|
|
3346
3342
|
}
|
|
3347
3343
|
};
|
|
3348
|
-
protoOf(DefaultPool).
|
|
3344
|
+
protoOf(DefaultPool).fv = function () {
|
|
3349
3345
|
var inductionVariable = 0;
|
|
3350
|
-
var last = this.
|
|
3346
|
+
var last = this.e1w_1;
|
|
3351
3347
|
if (inductionVariable < last)
|
|
3352
3348
|
do {
|
|
3353
3349
|
var i = inductionVariable;
|
|
3354
3350
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3355
|
-
var tmp = this.
|
|
3351
|
+
var tmp = this.d1w_1[i];
|
|
3356
3352
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3357
|
-
this.
|
|
3358
|
-
this.
|
|
3353
|
+
this.d1w_1[i] = null;
|
|
3354
|
+
this.f1w(instance);
|
|
3359
3355
|
}
|
|
3360
3356
|
while (inductionVariable < last);
|
|
3361
|
-
this.
|
|
3357
|
+
this.e1w_1 = 0;
|
|
3362
3358
|
};
|
|
3363
3359
|
//region block: post-declaration
|
|
3364
|
-
protoOf(Read).
|
|
3365
|
-
protoOf(Read).
|
|
3366
|
-
protoOf(Write).
|
|
3367
|
-
protoOf(Write).
|
|
3368
|
-
protoOf(ByteChannel).
|
|
3369
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3370
|
-
protoOf(CountedByteReadChannel).
|
|
3371
|
-
protoOf(SourceByteReadChannel).
|
|
3372
|
-
protoOf(DefaultPool).
|
|
3373
|
-
protoOf(NoPoolImpl).
|
|
3360
|
+
protoOf(Read).s1j = resume;
|
|
3361
|
+
protoOf(Read).t1j = resume_0;
|
|
3362
|
+
protoOf(Write).s1j = resume;
|
|
3363
|
+
protoOf(Write).t1j = resume_0;
|
|
3364
|
+
protoOf(ByteChannel).y1l = awaitContent$default;
|
|
3365
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y1l = awaitContent$default;
|
|
3366
|
+
protoOf(CountedByteReadChannel).y1l = awaitContent$default;
|
|
3367
|
+
protoOf(SourceByteReadChannel).y1l = awaitContent$default;
|
|
3368
|
+
protoOf(DefaultPool).o4 = close;
|
|
3369
|
+
protoOf(NoPoolImpl).o4 = close;
|
|
3374
3370
|
//endregion
|
|
3375
3371
|
//region block: init
|
|
3376
3372
|
Empty_instance = new Empty();
|