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