client_plugin_logic_deb 1.8.470 → 1.8.472
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/Kosi-Kaverit-kaverit.js +77 -77
- package/Kosi-Kodein-kodein-di.js +595 -595
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1631 -1631
- package/Logic_Debertz-ai_module.js +544 -544
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-bot_engine.js +618 -614
- package/Logic_Debertz-bot_engine.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +4 -3
- package/Logic_Debertz-client_plugin.js +3271 -3272
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1901 -1901
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +17728 -17689
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +9591 -9591
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1411 -1411
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +1306 -953
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +2589 -2589
- package/kotlinx-io-kotlinx-io-bytestring.js +47 -47
- package/kotlinx-io-kotlinx-io-core.js +582 -582
- package/kotlinx-serialization-kotlinx-serialization-core.js +1956 -1956
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1444 -1444
- package/ktor-ktor-client-content-negotiation.js +158 -158
- package/ktor-ktor-client-core.js +1977 -1977
- package/ktor-ktor-client-logging.js +652 -652
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http-cio.js +372 -372
- package/ktor-ktor-http.js +742 -742
- package/ktor-ktor-io.js +653 -653
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +153 -153
- package/ktor-ktor-serialization.js +72 -72
- package/ktor-ktor-utils.js +701 -701
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +52 -52
- package/package.json +1 -1
- package/random-library-crypto-rand.js +13 -13
- package/random-library-secure-random.js +8 -8
- package/raspberry-cardgame-lib-core.js +224 -224
- package/raspberry-cardgame-lib-logger.js +106 -106
- package/raspberry-cardgame-lib-random.js +865 -865
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +29 -29
package/ktor-ktor-io.js
CHANGED
|
@@ -24,96 +24,96 @@
|
|
|
24
24
|
}(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) {
|
|
25
25
|
'use strict';
|
|
26
26
|
//region block: imports
|
|
27
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
28
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
27
|
+
var Companion_instance = kotlin_kotlin.$_$.g5;
|
|
28
|
+
var Unit_instance = kotlin_kotlin.$_$.l5;
|
|
29
29
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.y2;
|
|
30
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
32
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
33
|
-
var toString = kotlin_kotlin.$_$.
|
|
34
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
35
|
-
var equals = kotlin_kotlin.$_$.
|
|
36
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
37
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
38
|
-
var Result = kotlin_kotlin.$_$.
|
|
39
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
40
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
41
|
-
var newThrowable = kotlin_kotlin.$_$.
|
|
42
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.oe;
|
|
31
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.od;
|
|
32
|
+
var initMetadataForObject = kotlin_kotlin.$_$.td;
|
|
33
|
+
var toString = kotlin_kotlin.$_$.hk;
|
|
34
|
+
var hashCode = kotlin_kotlin.$_$.md;
|
|
35
|
+
var equals = kotlin_kotlin.$_$.fd;
|
|
36
|
+
var initMetadataForClass = kotlin_kotlin.$_$.nd;
|
|
37
|
+
var createFailure = kotlin_kotlin.$_$.uj;
|
|
38
|
+
var Result = kotlin_kotlin.$_$.bj;
|
|
39
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.rd;
|
|
40
|
+
var toString_0 = kotlin_kotlin.$_$.vh;
|
|
41
|
+
var newThrowable = kotlin_kotlin.$_$.ie;
|
|
42
|
+
var stackTraceToString = kotlin_kotlin.$_$.fk;
|
|
43
43
|
var VOID = kotlin_kotlin.$_$.b;
|
|
44
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
45
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
46
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
47
|
-
var compare = kotlin_kotlin.$_$.
|
|
48
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
49
|
-
var add = kotlin_kotlin.$_$.
|
|
50
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
44
|
+
var isInterface = kotlin_kotlin.$_$.ce;
|
|
45
|
+
var CoroutineImpl = kotlin_kotlin.$_$.pb;
|
|
46
|
+
var fromInt = kotlin_kotlin.$_$.fc;
|
|
47
|
+
var compare = kotlin_kotlin.$_$.zb;
|
|
48
|
+
var numberToLong = kotlin_kotlin.$_$.mc;
|
|
49
|
+
var add = kotlin_kotlin.$_$.vb;
|
|
50
|
+
var intercepted = kotlin_kotlin.$_$.cb;
|
|
51
51
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m1;
|
|
52
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
52
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ck;
|
|
53
53
|
var returnIfSuspended = kotlin_kotlin.$_$.g;
|
|
54
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
55
|
-
var Long = kotlin_kotlin.$_$.
|
|
56
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
54
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.za;
|
|
55
|
+
var Long = kotlin_kotlin.$_$.xi;
|
|
56
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.pd;
|
|
57
57
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
58
58
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
59
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
60
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
59
|
+
var convertToInt = kotlin_kotlin.$_$.bc;
|
|
60
|
+
var IllegalStateException = kotlin_kotlin.$_$.wi;
|
|
61
61
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.t1;
|
|
62
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
62
|
+
var captureStack = kotlin_kotlin.$_$.wc;
|
|
63
63
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
64
64
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
65
|
-
var replace = kotlin_kotlin.$_$.
|
|
65
|
+
var replace = kotlin_kotlin.$_$.zg;
|
|
66
66
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
67
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
68
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
69
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
70
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
67
|
+
var THROW_CCE = kotlin_kotlin.$_$.dj;
|
|
68
|
+
var equalsLong = kotlin_kotlin.$_$.ec;
|
|
69
|
+
var get_ONE = kotlin_kotlin.$_$.ub;
|
|
70
|
+
var toString_1 = kotlin_kotlin.$_$.re;
|
|
71
71
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
72
|
-
var subtract = kotlin_kotlin.$_$.
|
|
72
|
+
var subtract = kotlin_kotlin.$_$.qc;
|
|
73
73
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
74
74
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.t;
|
|
75
|
-
var closeFinally = kotlin_kotlin.$_$.
|
|
75
|
+
var closeFinally = kotlin_kotlin.$_$.sj;
|
|
76
76
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.q;
|
|
77
77
|
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.o4;
|
|
78
78
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
79
79
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e2;
|
|
80
80
|
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
|
|
81
|
-
var Continuation = kotlin_kotlin.$_$.
|
|
82
|
-
var initMetadataForFunctionReference = kotlin_kotlin.$_$.
|
|
81
|
+
var Continuation = kotlin_kotlin.$_$.jb;
|
|
82
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.qd;
|
|
83
83
|
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d2;
|
|
84
84
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1;
|
|
85
85
|
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
86
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
86
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.sd;
|
|
87
87
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
88
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
88
|
+
var CancellationException = kotlin_kotlin.$_$.ya;
|
|
89
89
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
90
90
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.r;
|
|
91
91
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
92
92
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
93
93
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
94
|
-
var listOf = kotlin_kotlin.$_$.
|
|
94
|
+
var listOf = kotlin_kotlin.$_$.w8;
|
|
95
95
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
96
96
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
97
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
97
|
+
var charSequenceLength = kotlin_kotlin.$_$.bd;
|
|
98
98
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
99
99
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
100
100
|
var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.s;
|
|
101
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
101
|
+
var encodeToByteArray = kotlin_kotlin.$_$.gg;
|
|
102
102
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.u;
|
|
103
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
103
|
+
var AutoCloseable = kotlin_kotlin.$_$.li;
|
|
104
104
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q2;
|
|
105
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
106
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
105
|
+
var replace_0 = kotlin_kotlin.$_$.ah;
|
|
106
|
+
var getStringHashCode = kotlin_kotlin.$_$.ld;
|
|
107
107
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
108
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
108
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.cd;
|
|
109
109
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.p;
|
|
110
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
111
|
-
var trim = kotlin_kotlin.$_$.
|
|
112
|
-
var toByte = kotlin_kotlin.$_$.
|
|
113
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
114
|
-
var setOf = kotlin_kotlin.$_$.
|
|
110
|
+
var isCharSequence = kotlin_kotlin.$_$.yd;
|
|
111
|
+
var trim = kotlin_kotlin.$_$.di;
|
|
112
|
+
var toByte = kotlin_kotlin.$_$.pe;
|
|
113
|
+
var decodeToString_0 = kotlin_kotlin.$_$.eg;
|
|
114
|
+
var setOf = kotlin_kotlin.$_$.t9;
|
|
115
115
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
|
|
116
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
116
|
+
var charSequenceGet = kotlin_kotlin.$_$.ad;
|
|
117
117
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.w2;
|
|
118
118
|
//endregion
|
|
119
119
|
//region block: pre-declaration
|
|
@@ -121,10 +121,10 @@
|
|
|
121
121
|
initMetadataForObject(Empty, 'Empty');
|
|
122
122
|
initMetadataForClass(Closed, 'Closed');
|
|
123
123
|
function resume() {
|
|
124
|
-
return this.
|
|
124
|
+
return this.n2v().t9(Companion_getInstance().k2v_1);
|
|
125
125
|
}
|
|
126
126
|
function resume_0(throwable) {
|
|
127
|
-
var tmp = this.
|
|
127
|
+
var tmp = this.n2v();
|
|
128
128
|
var tmp_0;
|
|
129
129
|
if (throwable == null) {
|
|
130
130
|
tmp_0 = null;
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
tmp_0 = new Result(tmp$ret$2);
|
|
136
136
|
}
|
|
137
137
|
var tmp1_elvis_lhs = tmp_0;
|
|
138
|
-
return tmp.t9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
138
|
+
return tmp.t9(tmp1_elvis_lhs == null ? Companion_getInstance().k2v_1 : tmp1_elvis_lhs.on_1);
|
|
139
139
|
}
|
|
140
140
|
initMetadataForInterface(Task, 'Task');
|
|
141
141
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
146
146
|
function awaitContent$default(min, $completion, $super) {
|
|
147
147
|
min = min === VOID ? 1 : min;
|
|
148
|
-
return $super === VOID ? this.
|
|
148
|
+
return $super === VOID ? this.u2x(min, $completion) : $super.u2x.call(this, min, $completion);
|
|
149
149
|
}
|
|
150
150
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
151
151
|
function get_autoFlush() {
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
192
192
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
193
193
|
function close() {
|
|
194
|
-
this.
|
|
194
|
+
this.i1q();
|
|
195
195
|
}
|
|
196
196
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
197
197
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -210,10 +210,10 @@
|
|
|
210
210
|
//endregion
|
|
211
211
|
function Companion() {
|
|
212
212
|
Companion_instance_0 = this;
|
|
213
|
-
this.
|
|
213
|
+
this.j2v_1 = new Closed(null);
|
|
214
214
|
var tmp = this;
|
|
215
215
|
// Inline function 'kotlin.Companion.success' call
|
|
216
|
-
tmp.
|
|
216
|
+
tmp.k2v_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
217
217
|
}
|
|
218
218
|
var Companion_instance_0;
|
|
219
219
|
function Companion_getInstance() {
|
|
@@ -241,87 +241,87 @@
|
|
|
241
241
|
return Empty_instance;
|
|
242
242
|
}
|
|
243
243
|
function Closed(cause) {
|
|
244
|
-
this.
|
|
244
|
+
this.l2v_1 = cause;
|
|
245
245
|
}
|
|
246
246
|
protoOf(Closed).toString = function () {
|
|
247
|
-
return 'Closed(cause=' + toString(this.
|
|
247
|
+
return 'Closed(cause=' + toString(this.l2v_1) + ')';
|
|
248
248
|
};
|
|
249
249
|
protoOf(Closed).hashCode = function () {
|
|
250
|
-
return this.
|
|
250
|
+
return this.l2v_1 == null ? 0 : hashCode(this.l2v_1);
|
|
251
251
|
};
|
|
252
252
|
protoOf(Closed).equals = function (other) {
|
|
253
253
|
if (this === other)
|
|
254
254
|
return true;
|
|
255
255
|
if (!(other instanceof Closed))
|
|
256
256
|
return false;
|
|
257
|
-
if (!equals(this.
|
|
257
|
+
if (!equals(this.l2v_1, other.l2v_1))
|
|
258
258
|
return false;
|
|
259
259
|
return true;
|
|
260
260
|
};
|
|
261
261
|
function Task() {
|
|
262
262
|
}
|
|
263
263
|
function Read(continuation) {
|
|
264
|
-
this.
|
|
265
|
-
this.
|
|
264
|
+
this.r2v_1 = continuation;
|
|
265
|
+
this.s2v_1 = null;
|
|
266
266
|
if (get_DEVELOPMENT_MODE()) {
|
|
267
267
|
var tmp = this;
|
|
268
268
|
// Inline function 'kotlin.also' call
|
|
269
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
269
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.r2v_1), 16));
|
|
270
270
|
stackTraceToString(this_0);
|
|
271
|
-
tmp.
|
|
271
|
+
tmp.s2v_1 = this_0;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
protoOf(Read).
|
|
275
|
-
return this.
|
|
274
|
+
protoOf(Read).n2v = function () {
|
|
275
|
+
return this.r2v_1;
|
|
276
276
|
};
|
|
277
|
-
protoOf(Read).
|
|
278
|
-
return this.
|
|
277
|
+
protoOf(Read).m2v = function () {
|
|
278
|
+
return this.s2v_1;
|
|
279
279
|
};
|
|
280
|
-
protoOf(Read).
|
|
280
|
+
protoOf(Read).o2v = function () {
|
|
281
281
|
return 'read';
|
|
282
282
|
};
|
|
283
283
|
function Write(continuation) {
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
284
|
+
this.t2v_1 = continuation;
|
|
285
|
+
this.u2v_1 = null;
|
|
286
286
|
if (get_DEVELOPMENT_MODE()) {
|
|
287
287
|
var tmp = this;
|
|
288
288
|
// Inline function 'kotlin.also' call
|
|
289
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
289
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.t2v_1), 16));
|
|
290
290
|
stackTraceToString(this_0);
|
|
291
|
-
tmp.
|
|
291
|
+
tmp.u2v_1 = this_0;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
protoOf(Write).
|
|
295
|
-
return this.
|
|
294
|
+
protoOf(Write).n2v = function () {
|
|
295
|
+
return this.t2v_1;
|
|
296
296
|
};
|
|
297
|
-
protoOf(Write).
|
|
298
|
-
return this.
|
|
297
|
+
protoOf(Write).m2v = function () {
|
|
298
|
+
return this.u2v_1;
|
|
299
299
|
};
|
|
300
|
-
protoOf(Write).
|
|
300
|
+
protoOf(Write).o2v = function () {
|
|
301
301
|
return 'write';
|
|
302
302
|
};
|
|
303
303
|
function moveFlushToReadBuffer($this) {
|
|
304
304
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
305
|
-
$this.
|
|
306
|
-
$this.
|
|
307
|
-
$this.
|
|
305
|
+
$this.y2v_1;
|
|
306
|
+
$this.w2v_1.u1k($this.a2w_1);
|
|
307
|
+
$this.x2v_1 = 0;
|
|
308
308
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
309
|
-
var current = $this.
|
|
309
|
+
var current = $this.z2v_1.kotlinx$atomicfu$value;
|
|
310
310
|
var tmp;
|
|
311
311
|
if (current instanceof Write) {
|
|
312
|
-
tmp = $this.
|
|
312
|
+
tmp = $this.z2v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
313
313
|
} else {
|
|
314
314
|
tmp = false;
|
|
315
315
|
}
|
|
316
316
|
if (tmp) {
|
|
317
|
-
current.
|
|
317
|
+
current.p2v();
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
function closeSlot($this, cause) {
|
|
321
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
322
|
-
var continuation = $this.
|
|
321
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().j2v_1;
|
|
322
|
+
var continuation = $this.z2v_1.atomicfu$getAndSet(closeContinuation);
|
|
323
323
|
if (isInterface(continuation, Task)) {
|
|
324
|
-
continuation.
|
|
324
|
+
continuation.q2v(cause);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -340,8 +340,8 @@
|
|
|
340
340
|
}
|
|
341
341
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
342
342
|
CoroutineImpl.call(this, resultContinuation);
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
343
|
+
this.l2w_1 = _this__u8e3s4;
|
|
344
|
+
this.m2w_1 = min;
|
|
345
345
|
}
|
|
346
346
|
protoOf($awaitContentCOROUTINE$).q9 = function () {
|
|
347
347
|
var suspendResult = this.k9_1;
|
|
@@ -351,39 +351,39 @@
|
|
|
351
351
|
switch (tmp) {
|
|
352
352
|
case 0:
|
|
353
353
|
this.j9_1 = 4;
|
|
354
|
-
rethrowCloseCauseIfNeeded(this.
|
|
355
|
-
if (compare(this.
|
|
354
|
+
rethrowCloseCauseIfNeeded(this.l2w_1);
|
|
355
|
+
if (compare(this.l2w_1.a2w_1.g1(), fromInt(this.m2w_1)) >= 0)
|
|
356
356
|
return true;
|
|
357
|
-
this.
|
|
357
|
+
this.n2w_1 = this.l2w_1;
|
|
358
358
|
this.i9_1 = 1;
|
|
359
359
|
continue $sm;
|
|
360
360
|
case 1:
|
|
361
|
-
if (!(compare(add(numberToLong(this.
|
|
361
|
+
if (!(compare(add(numberToLong(this.l2w_1.x2v_1), this.l2w_1.a2w_1.g1()), fromInt(this.m2w_1)) < 0 && this.l2w_1.c2w_1.kotlinx$atomicfu$value == null)) {
|
|
362
362
|
this.i9_1 = 3;
|
|
363
363
|
continue $sm;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
this.i9_1 = 2;
|
|
367
367
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
368
|
-
cancellable.
|
|
369
|
-
var tmp0 = this.
|
|
368
|
+
cancellable.l1r();
|
|
369
|
+
var tmp0 = this.n2w_1;
|
|
370
370
|
var tmp2 = new Read(cancellable);
|
|
371
371
|
l$ret$1: do {
|
|
372
|
-
var previous = tmp0.
|
|
372
|
+
var previous = tmp0.z2v_1.kotlinx$atomicfu$value;
|
|
373
373
|
if (!(previous instanceof Closed)) {
|
|
374
|
-
if (!tmp0.
|
|
375
|
-
tmp2.
|
|
374
|
+
if (!tmp0.z2v_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
375
|
+
tmp2.p2v();
|
|
376
376
|
break l$ret$1;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
if (previous instanceof Read) {
|
|
380
|
-
previous.
|
|
380
|
+
previous.q2v(new ConcurrentIOException(tmp2.o2v(), previous.m2v()));
|
|
381
381
|
} else {
|
|
382
382
|
if (isInterface(previous, Task)) {
|
|
383
|
-
previous.
|
|
383
|
+
previous.p2v();
|
|
384
384
|
} else {
|
|
385
385
|
if (previous instanceof Closed) {
|
|
386
|
-
tmp2.
|
|
386
|
+
tmp2.q2v(previous.l2v_1);
|
|
387
387
|
break l$ret$1;
|
|
388
388
|
} else {
|
|
389
389
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -392,21 +392,21 @@
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
if (!(compare(add(numberToLong(this.
|
|
396
|
-
var current = tmp0.
|
|
395
|
+
if (!(compare(add(numberToLong(this.l2w_1.x2v_1), this.l2w_1.a2w_1.g1()), fromInt(this.m2w_1)) < 0 && this.l2w_1.c2w_1.kotlinx$atomicfu$value == null)) {
|
|
396
|
+
var current = tmp0.z2v_1.kotlinx$atomicfu$value;
|
|
397
397
|
var tmp_0;
|
|
398
398
|
if (current instanceof Read) {
|
|
399
|
-
tmp_0 = tmp0.
|
|
399
|
+
tmp_0 = tmp0.z2v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
400
400
|
} else {
|
|
401
401
|
tmp_0 = false;
|
|
402
402
|
}
|
|
403
403
|
if (tmp_0) {
|
|
404
|
-
current.
|
|
404
|
+
current.p2v();
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
while (false);
|
|
409
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
409
|
+
suspendResult = returnIfSuspended(cancellable.m1r(), this);
|
|
410
410
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
411
411
|
return suspendResult;
|
|
412
412
|
}
|
|
@@ -416,11 +416,11 @@
|
|
|
416
416
|
this.i9_1 = 1;
|
|
417
417
|
continue $sm;
|
|
418
418
|
case 3:
|
|
419
|
-
if (compare(this.
|
|
420
|
-
moveFlushToReadBuffer(this.
|
|
419
|
+
if (compare(this.l2w_1.a2w_1.g1(), new Long(1048576, 0)) < 0) {
|
|
420
|
+
moveFlushToReadBuffer(this.l2w_1);
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
return compare(this.
|
|
423
|
+
return compare(this.l2w_1.a2w_1.g1(), fromInt(this.m2w_1)) >= 0;
|
|
424
424
|
case 4:
|
|
425
425
|
throw this.l9_1;
|
|
426
426
|
}
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
};
|
|
438
438
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
439
439
|
CoroutineImpl.call(this, resultContinuation);
|
|
440
|
-
this.
|
|
440
|
+
this.w2w_1 = _this__u8e3s4;
|
|
441
441
|
}
|
|
442
442
|
protoOf($flushCOROUTINE$).q9 = function () {
|
|
443
443
|
var suspendResult = this.k9_1;
|
|
@@ -447,40 +447,40 @@
|
|
|
447
447
|
switch (tmp) {
|
|
448
448
|
case 0:
|
|
449
449
|
this.j9_1 = 4;
|
|
450
|
-
rethrowCloseCauseIfNeeded(this.
|
|
451
|
-
this.
|
|
452
|
-
if (this.
|
|
450
|
+
rethrowCloseCauseIfNeeded(this.w2w_1);
|
|
451
|
+
this.w2w_1.y2w();
|
|
452
|
+
if (this.w2w_1.x2v_1 < 1048576)
|
|
453
453
|
return Unit_instance;
|
|
454
|
-
this.
|
|
454
|
+
this.x2w_1 = this.w2w_1;
|
|
455
455
|
this.i9_1 = 1;
|
|
456
456
|
continue $sm;
|
|
457
457
|
case 1:
|
|
458
|
-
if (!(this.
|
|
458
|
+
if (!(this.w2w_1.x2v_1 >= 1048576 && this.w2w_1.c2w_1.kotlinx$atomicfu$value == null)) {
|
|
459
459
|
this.i9_1 = 3;
|
|
460
460
|
continue $sm;
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
this.i9_1 = 2;
|
|
464
464
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
465
|
-
cancellable.
|
|
466
|
-
var tmp0 = this.
|
|
465
|
+
cancellable.l1r();
|
|
466
|
+
var tmp0 = this.x2w_1;
|
|
467
467
|
var tmp2 = new Write(cancellable);
|
|
468
468
|
l$ret$1: do {
|
|
469
|
-
var previous = tmp0.
|
|
469
|
+
var previous = tmp0.z2v_1.kotlinx$atomicfu$value;
|
|
470
470
|
if (!(previous instanceof Closed)) {
|
|
471
|
-
if (!tmp0.
|
|
472
|
-
tmp2.
|
|
471
|
+
if (!tmp0.z2v_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
472
|
+
tmp2.p2v();
|
|
473
473
|
break l$ret$1;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
if (previous instanceof Write) {
|
|
477
|
-
previous.
|
|
477
|
+
previous.q2v(new ConcurrentIOException(tmp2.o2v(), previous.m2v()));
|
|
478
478
|
} else {
|
|
479
479
|
if (isInterface(previous, Task)) {
|
|
480
|
-
previous.
|
|
480
|
+
previous.p2v();
|
|
481
481
|
} else {
|
|
482
482
|
if (previous instanceof Closed) {
|
|
483
|
-
tmp2.
|
|
483
|
+
tmp2.q2v(previous.l2v_1);
|
|
484
484
|
break l$ret$1;
|
|
485
485
|
} else {
|
|
486
486
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -489,21 +489,21 @@
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
if (!(this.
|
|
493
|
-
var current = tmp0.
|
|
492
|
+
if (!(this.w2w_1.x2v_1 >= 1048576 && this.w2w_1.c2w_1.kotlinx$atomicfu$value == null)) {
|
|
493
|
+
var current = tmp0.z2v_1.kotlinx$atomicfu$value;
|
|
494
494
|
var tmp_0;
|
|
495
495
|
if (current instanceof Write) {
|
|
496
|
-
tmp_0 = tmp0.
|
|
496
|
+
tmp_0 = tmp0.z2v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
497
497
|
} else {
|
|
498
498
|
tmp_0 = false;
|
|
499
499
|
}
|
|
500
500
|
if (tmp_0) {
|
|
501
|
-
current.
|
|
501
|
+
current.p2v();
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
while (false);
|
|
506
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
506
|
+
suspendResult = returnIfSuspended(cancellable.m1r(), this);
|
|
507
507
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
508
508
|
return suspendResult;
|
|
509
509
|
}
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
};
|
|
531
531
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
532
532
|
CoroutineImpl.call(this, resultContinuation);
|
|
533
|
-
this.
|
|
533
|
+
this.h2x_1 = _this__u8e3s4;
|
|
534
534
|
}
|
|
535
535
|
protoOf($flushAndCloseCOROUTINE$).q9 = function () {
|
|
536
536
|
var suspendResult = this.k9_1;
|
|
@@ -540,11 +540,11 @@
|
|
|
540
540
|
switch (tmp) {
|
|
541
541
|
case 0:
|
|
542
542
|
this.j9_1 = 4;
|
|
543
|
-
var this_0 = this.
|
|
543
|
+
var this_0 = this.h2x_1;
|
|
544
544
|
this.j9_1 = 2;
|
|
545
|
-
this.
|
|
545
|
+
this.j2x_1 = Companion_instance;
|
|
546
546
|
this.i9_1 = 1;
|
|
547
|
-
suspendResult = this_0.
|
|
547
|
+
suspendResult = this_0.k2x(this);
|
|
548
548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
549
549
|
return suspendResult;
|
|
550
550
|
}
|
|
@@ -552,8 +552,8 @@
|
|
|
552
552
|
continue $sm;
|
|
553
553
|
case 1:
|
|
554
554
|
var tmp_0 = this;
|
|
555
|
-
this.
|
|
556
|
-
tmp_0.
|
|
555
|
+
this.j2x_1;
|
|
556
|
+
tmp_0.i2x_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
557
557
|
this.j9_1 = 4;
|
|
558
558
|
this.i9_1 = 3;
|
|
559
559
|
continue $sm;
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
if (tmp_1 instanceof Error) {
|
|
564
564
|
var e = this.l9_1;
|
|
565
565
|
var tmp_2 = this;
|
|
566
|
-
tmp_2.
|
|
566
|
+
tmp_2.i2x_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
567
567
|
this.i9_1 = 3;
|
|
568
568
|
continue $sm;
|
|
569
569
|
} else {
|
|
@@ -572,9 +572,9 @@
|
|
|
572
572
|
|
|
573
573
|
case 3:
|
|
574
574
|
this.j9_1 = 4;
|
|
575
|
-
if (!this.
|
|
575
|
+
if (!this.h2x_1.c2w_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
576
576
|
return Unit_instance;
|
|
577
|
-
closeSlot(this.
|
|
577
|
+
closeSlot(this.h2x_1, null);
|
|
578
578
|
return Unit_instance;
|
|
579
579
|
case 4:
|
|
580
580
|
throw this.l9_1;
|
|
@@ -592,104 +592,104 @@
|
|
|
592
592
|
};
|
|
593
593
|
function ByteChannel(autoFlush) {
|
|
594
594
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
}
|
|
604
|
-
protoOf(ByteChannel).
|
|
605
|
-
return this.
|
|
606
|
-
};
|
|
607
|
-
protoOf(ByteChannel).
|
|
608
|
-
var tmp0_safe_receiver = this.
|
|
595
|
+
this.v2v_1 = autoFlush;
|
|
596
|
+
this.w2v_1 = new Buffer();
|
|
597
|
+
this.x2v_1 = 0;
|
|
598
|
+
this.y2v_1 = new Object();
|
|
599
|
+
this.z2v_1 = atomic$ref$1(Empty_instance);
|
|
600
|
+
this.a2w_1 = new Buffer();
|
|
601
|
+
this.b2w_1 = new Buffer();
|
|
602
|
+
this.c2w_1 = atomic$ref$1(null);
|
|
603
|
+
}
|
|
604
|
+
protoOf(ByteChannel).l2x = function () {
|
|
605
|
+
return this.v2v_1;
|
|
606
|
+
};
|
|
607
|
+
protoOf(ByteChannel).m2x = function () {
|
|
608
|
+
var tmp0_safe_receiver = this.c2w_1.kotlinx$atomicfu$value;
|
|
609
609
|
if (tmp0_safe_receiver == null)
|
|
610
610
|
null;
|
|
611
611
|
else {
|
|
612
|
-
tmp0_safe_receiver.
|
|
612
|
+
tmp0_safe_receiver.o2x(ClosedReadChannelException$_init_$ref_ix0089());
|
|
613
613
|
}
|
|
614
|
-
if (this.
|
|
614
|
+
if (this.a2w_1.r1j()) {
|
|
615
615
|
moveFlushToReadBuffer(this);
|
|
616
616
|
}
|
|
617
|
-
return this.
|
|
617
|
+
return this.a2w_1;
|
|
618
618
|
};
|
|
619
|
-
protoOf(ByteChannel).
|
|
620
|
-
if (this.
|
|
621
|
-
var tmp0_safe_receiver = this.
|
|
619
|
+
protoOf(ByteChannel).p2x = function () {
|
|
620
|
+
if (this.q2x()) {
|
|
621
|
+
var tmp0_safe_receiver = this.c2w_1.kotlinx$atomicfu$value;
|
|
622
622
|
var tmp;
|
|
623
623
|
if (tmp0_safe_receiver == null) {
|
|
624
624
|
tmp = null;
|
|
625
625
|
} else {
|
|
626
|
-
tmp = tmp0_safe_receiver.
|
|
626
|
+
tmp = tmp0_safe_receiver.o2x(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
627
627
|
}
|
|
628
628
|
if (tmp == null)
|
|
629
629
|
throw new ClosedWriteChannelException();
|
|
630
630
|
}
|
|
631
|
-
return this.
|
|
631
|
+
return this.b2w_1;
|
|
632
632
|
};
|
|
633
|
-
protoOf(ByteChannel).
|
|
634
|
-
var tmp0_safe_receiver = this.
|
|
635
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
633
|
+
protoOf(ByteChannel).r2x = function () {
|
|
634
|
+
var tmp0_safe_receiver = this.c2w_1.kotlinx$atomicfu$value;
|
|
635
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s2x();
|
|
636
636
|
};
|
|
637
|
-
protoOf(ByteChannel).
|
|
638
|
-
return !(this.
|
|
637
|
+
protoOf(ByteChannel).q2x = function () {
|
|
638
|
+
return !(this.c2w_1.kotlinx$atomicfu$value == null);
|
|
639
639
|
};
|
|
640
|
-
protoOf(ByteChannel).
|
|
641
|
-
return !(this.
|
|
640
|
+
protoOf(ByteChannel).t2x = function () {
|
|
641
|
+
return !(this.r2x() == null) || (this.q2x() && this.x2v_1 === 0 && this.a2w_1.r1j());
|
|
642
642
|
};
|
|
643
|
-
protoOf(ByteChannel).
|
|
643
|
+
protoOf(ByteChannel).u2x = function (min, $completion) {
|
|
644
644
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
645
645
|
tmp.k9_1 = Unit_instance;
|
|
646
646
|
tmp.l9_1 = null;
|
|
647
647
|
return tmp.q9();
|
|
648
648
|
};
|
|
649
|
-
protoOf(ByteChannel).
|
|
649
|
+
protoOf(ByteChannel).k2x = function ($completion) {
|
|
650
650
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
651
651
|
tmp.k9_1 = Unit_instance;
|
|
652
652
|
tmp.l9_1 = null;
|
|
653
653
|
return tmp.q9();
|
|
654
654
|
};
|
|
655
|
-
protoOf(ByteChannel).
|
|
656
|
-
if (this.
|
|
655
|
+
protoOf(ByteChannel).y2w = function () {
|
|
656
|
+
if (this.b2w_1.r1j())
|
|
657
657
|
return Unit_instance;
|
|
658
658
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
659
|
-
this.
|
|
660
|
-
var count = convertToInt(this.
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
659
|
+
this.y2v_1;
|
|
660
|
+
var count = convertToInt(this.b2w_1.g1());
|
|
661
|
+
this.w2v_1.j1l(this.b2w_1);
|
|
662
|
+
this.x2v_1 = this.x2v_1 + count | 0;
|
|
663
663
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
664
|
-
var current = this.
|
|
664
|
+
var current = this.z2v_1.kotlinx$atomicfu$value;
|
|
665
665
|
var tmp;
|
|
666
666
|
if (current instanceof Read) {
|
|
667
|
-
tmp = this.
|
|
667
|
+
tmp = this.z2v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
668
668
|
} else {
|
|
669
669
|
tmp = false;
|
|
670
670
|
}
|
|
671
671
|
if (tmp) {
|
|
672
|
-
current.
|
|
672
|
+
current.p2v();
|
|
673
673
|
}
|
|
674
674
|
};
|
|
675
675
|
protoOf(ByteChannel).r4 = function () {
|
|
676
|
-
this.
|
|
677
|
-
if (!this.
|
|
676
|
+
this.y2w();
|
|
677
|
+
if (!this.c2w_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
678
678
|
return Unit_instance;
|
|
679
679
|
closeSlot(this, null);
|
|
680
680
|
};
|
|
681
|
-
protoOf(ByteChannel).
|
|
681
|
+
protoOf(ByteChannel).w2x = function ($completion) {
|
|
682
682
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
683
683
|
tmp.k9_1 = Unit_instance;
|
|
684
684
|
tmp.l9_1 = null;
|
|
685
685
|
return tmp.q9();
|
|
686
686
|
};
|
|
687
|
-
protoOf(ByteChannel).
|
|
688
|
-
if (!(this.
|
|
687
|
+
protoOf(ByteChannel).x2x = function (cause) {
|
|
688
|
+
if (!(this.c2w_1.kotlinx$atomicfu$value == null))
|
|
689
689
|
return Unit_instance;
|
|
690
690
|
var closedToken = new CloseToken(cause);
|
|
691
|
-
this.
|
|
692
|
-
var wrappedCause = closedToken.
|
|
691
|
+
this.c2w_1.atomicfu$compareAndSet(null, closedToken);
|
|
692
|
+
var wrappedCause = closedToken.s2x();
|
|
693
693
|
closeSlot(this, wrappedCause);
|
|
694
694
|
};
|
|
695
695
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
length = length === VOID ? content.length : length;
|
|
706
706
|
// Inline function 'kotlin.also' call
|
|
707
707
|
var this_0 = new Buffer();
|
|
708
|
-
this_0.
|
|
708
|
+
this_0.a1l(content, offset, offset + length | 0);
|
|
709
709
|
var source = this_0;
|
|
710
710
|
return ByteReadChannel_0(source);
|
|
711
711
|
}
|
|
@@ -713,18 +713,18 @@
|
|
|
713
713
|
return new SourceByteReadChannel(source);
|
|
714
714
|
}
|
|
715
715
|
function buildPartialMatchTable($this) {
|
|
716
|
-
var table = new Int32Array($this.
|
|
716
|
+
var table = new Int32Array($this.z2x_1.g1());
|
|
717
717
|
var j = 0;
|
|
718
718
|
var inductionVariable = 1;
|
|
719
|
-
var last = $this.
|
|
719
|
+
var last = $this.z2x_1.g1();
|
|
720
720
|
if (inductionVariable < last)
|
|
721
721
|
do {
|
|
722
722
|
var i = inductionVariable;
|
|
723
723
|
inductionVariable = inductionVariable + 1 | 0;
|
|
724
|
-
while (j > 0 && !($this.
|
|
724
|
+
while (j > 0 && !($this.z2x_1.h1(i) === $this.z2x_1.h1(j))) {
|
|
725
725
|
j = table[j - 1 | 0];
|
|
726
726
|
}
|
|
727
|
-
if ($this.
|
|
727
|
+
if ($this.z2x_1.h1(i) === $this.z2x_1.h1(j)) {
|
|
728
728
|
j = j + 1 | 0;
|
|
729
729
|
}
|
|
730
730
|
table[i] = j;
|
|
@@ -745,8 +745,8 @@
|
|
|
745
745
|
return tmp.q9();
|
|
746
746
|
}
|
|
747
747
|
function checkBounds($this, extra) {
|
|
748
|
-
if (compare(add($this.
|
|
749
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
748
|
+
if (compare(add($this.f2y_1, extra), $this.b2y_1) > 0) {
|
|
749
|
+
throw IOException_init_$Create$('Limit of ' + $this.b2y_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.z2x_1) + '"'));
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
752
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -754,8 +754,8 @@
|
|
|
754
754
|
}
|
|
755
755
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
756
756
|
CoroutineImpl.call(this, resultContinuation);
|
|
757
|
-
this.
|
|
758
|
-
this.
|
|
757
|
+
this.k2z_1 = _this__u8e3s4;
|
|
758
|
+
this.l2z_1 = ignoreMissing;
|
|
759
759
|
}
|
|
760
760
|
protoOf($findNextCOROUTINE$).q9 = function () {
|
|
761
761
|
var suspendResult = this.k9_1;
|
|
@@ -765,17 +765,17 @@
|
|
|
765
765
|
switch (tmp) {
|
|
766
766
|
case 0:
|
|
767
767
|
this.j9_1 = 9;
|
|
768
|
-
this.
|
|
768
|
+
this.k2z_1.f2y_1 = new Long(0, 0);
|
|
769
769
|
this.i9_1 = 1;
|
|
770
770
|
continue $sm;
|
|
771
771
|
case 1:
|
|
772
|
-
if (!this.
|
|
773
|
-
this.
|
|
772
|
+
if (!this.k2z_1.c2y_1.r1j()) {
|
|
773
|
+
this.m2z_1 = true;
|
|
774
774
|
this.i9_1 = 3;
|
|
775
775
|
continue $sm;
|
|
776
776
|
} else {
|
|
777
777
|
this.i9_1 = 2;
|
|
778
|
-
suspendResult = this.
|
|
778
|
+
suspendResult = this.k2z_1.y2x_1.v2x(VOID, this);
|
|
779
779
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
780
780
|
return suspendResult;
|
|
781
781
|
}
|
|
@@ -783,17 +783,17 @@
|
|
|
783
783
|
}
|
|
784
784
|
|
|
785
785
|
case 2:
|
|
786
|
-
this.
|
|
786
|
+
this.m2z_1 = suspendResult;
|
|
787
787
|
this.i9_1 = 3;
|
|
788
788
|
continue $sm;
|
|
789
789
|
case 3:
|
|
790
|
-
if (!this.
|
|
790
|
+
if (!this.m2z_1) {
|
|
791
791
|
this.i9_1 = 7;
|
|
792
792
|
continue $sm;
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
this.i9_1 = 4;
|
|
796
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
796
|
+
suspendResult = advanceToNextPotentialMatch(this.k2z_1, this);
|
|
797
797
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
798
798
|
return suspendResult;
|
|
799
799
|
}
|
|
@@ -801,7 +801,7 @@
|
|
|
801
801
|
continue $sm;
|
|
802
802
|
case 4:
|
|
803
803
|
this.i9_1 = 5;
|
|
804
|
-
suspendResult = checkFullMatch(this.
|
|
804
|
+
suspendResult = checkFullMatch(this.k2z_1, this);
|
|
805
805
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
806
806
|
return suspendResult;
|
|
807
807
|
}
|
|
@@ -809,7 +809,7 @@
|
|
|
809
809
|
continue $sm;
|
|
810
810
|
case 5:
|
|
811
811
|
if (suspendResult) {
|
|
812
|
-
return this.
|
|
812
|
+
return this.k2z_1.f2y_1;
|
|
813
813
|
} else {
|
|
814
814
|
this.i9_1 = 6;
|
|
815
815
|
continue $sm;
|
|
@@ -819,20 +819,20 @@
|
|
|
819
819
|
this.i9_1 = 1;
|
|
820
820
|
continue $sm;
|
|
821
821
|
case 7:
|
|
822
|
-
if (!this.
|
|
823
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
822
|
+
if (!this.l2z_1) {
|
|
823
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.k2z_1, this.k2z_1.z2x_1) + '" but encountered end of input');
|
|
824
824
|
}
|
|
825
825
|
|
|
826
|
-
this.
|
|
826
|
+
this.k2z_1.f2y_1 = add(this.k2z_1.f2y_1, this.k2z_1.e2y_1.u1k(this.k2z_1.a2y_1.p2x()));
|
|
827
827
|
this.i9_1 = 8;
|
|
828
|
-
suspendResult = this.
|
|
828
|
+
suspendResult = this.k2z_1.a2y_1.k2x(this);
|
|
829
829
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
830
830
|
return suspendResult;
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
continue $sm;
|
|
834
834
|
case 8:
|
|
835
|
-
return this.
|
|
835
|
+
return this.k2z_1.f2y_1;
|
|
836
836
|
case 9:
|
|
837
837
|
throw this.l9_1;
|
|
838
838
|
}
|
|
@@ -849,7 +849,7 @@
|
|
|
849
849
|
};
|
|
850
850
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
851
851
|
CoroutineImpl.call(this, resultContinuation);
|
|
852
|
-
this.
|
|
852
|
+
this.p2y_1 = _this__u8e3s4;
|
|
853
853
|
}
|
|
854
854
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).q9 = function () {
|
|
855
855
|
var suspendResult = this.k9_1;
|
|
@@ -862,13 +862,13 @@
|
|
|
862
862
|
this.i9_1 = 1;
|
|
863
863
|
continue $sm;
|
|
864
864
|
case 1:
|
|
865
|
-
if (!this.
|
|
866
|
-
this.
|
|
865
|
+
if (!this.p2y_1.c2y_1.r1j()) {
|
|
866
|
+
this.q2y_1 = true;
|
|
867
867
|
this.i9_1 = 3;
|
|
868
868
|
continue $sm;
|
|
869
869
|
} else {
|
|
870
870
|
this.i9_1 = 2;
|
|
871
|
-
suspendResult = this.
|
|
871
|
+
suspendResult = this.p2y_1.y2x_1.v2x(VOID, this);
|
|
872
872
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
873
873
|
return suspendResult;
|
|
874
874
|
}
|
|
@@ -876,34 +876,34 @@
|
|
|
876
876
|
}
|
|
877
877
|
|
|
878
878
|
case 2:
|
|
879
|
-
this.
|
|
879
|
+
this.q2y_1 = suspendResult;
|
|
880
880
|
this.i9_1 = 3;
|
|
881
881
|
continue $sm;
|
|
882
882
|
case 3:
|
|
883
|
-
if (!this.
|
|
883
|
+
if (!this.q2y_1) {
|
|
884
884
|
this.i9_1 = 7;
|
|
885
885
|
continue $sm;
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
-
var nextMatch = indexOf(this.
|
|
888
|
+
var nextMatch = indexOf(this.p2y_1.c2y_1, this.p2y_1.z2x_1.h1(0));
|
|
889
889
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
890
|
-
var tmp_0 = this.
|
|
891
|
-
checkBounds(this.
|
|
892
|
-
this.
|
|
890
|
+
var tmp_0 = this.p2y_1.c2y_1;
|
|
891
|
+
checkBounds(this.p2y_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
|
|
892
|
+
this.p2y_1.f2y_1 = add(this.p2y_1.f2y_1, this.p2y_1.c2y_1.u1k(this.p2y_1.a2y_1.p2x()));
|
|
893
893
|
this.i9_1 = 5;
|
|
894
|
-
suspendResult = flushIfNeeded(this.
|
|
894
|
+
suspendResult = flushIfNeeded(this.p2y_1.a2y_1, this);
|
|
895
895
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
896
896
|
return suspendResult;
|
|
897
897
|
}
|
|
898
898
|
continue $sm;
|
|
899
899
|
} else {
|
|
900
|
-
checkBounds(this.
|
|
901
|
-
var tmp_1 = this.
|
|
902
|
-
var tmp_2 = this.
|
|
903
|
-
var tmp_3 = this.
|
|
904
|
-
tmp_1.
|
|
900
|
+
checkBounds(this.p2y_1, nextMatch);
|
|
901
|
+
var tmp_1 = this.p2y_1;
|
|
902
|
+
var tmp_2 = this.p2y_1.f2y_1;
|
|
903
|
+
var tmp_3 = this.p2y_1.a2y_1.p2x();
|
|
904
|
+
tmp_1.f2y_1 = add(tmp_2, this.p2y_1.c2y_1.r1k(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
905
905
|
this.i9_1 = 4;
|
|
906
|
-
suspendResult = flushIfNeeded(this.
|
|
906
|
+
suspendResult = flushIfNeeded(this.p2y_1.a2y_1, this);
|
|
907
907
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
908
908
|
return suspendResult;
|
|
909
909
|
}
|
|
@@ -936,7 +936,7 @@
|
|
|
936
936
|
};
|
|
937
937
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
938
938
|
CoroutineImpl.call(this, resultContinuation);
|
|
939
|
-
this.
|
|
939
|
+
this.z2y_1 = _this__u8e3s4;
|
|
940
940
|
}
|
|
941
941
|
protoOf($checkFullMatchCOROUTINE$).q9 = function () {
|
|
942
942
|
var suspendResult = this.k9_1;
|
|
@@ -949,13 +949,13 @@
|
|
|
949
949
|
this.i9_1 = 1;
|
|
950
950
|
continue $sm;
|
|
951
951
|
case 1:
|
|
952
|
-
if (!this.
|
|
953
|
-
this.
|
|
952
|
+
if (!this.z2y_1.c2y_1.r1j()) {
|
|
953
|
+
this.b2z_1 = true;
|
|
954
954
|
this.i9_1 = 3;
|
|
955
955
|
continue $sm;
|
|
956
956
|
} else {
|
|
957
957
|
this.i9_1 = 2;
|
|
958
|
-
suspendResult = this.
|
|
958
|
+
suspendResult = this.z2y_1.y2x_1.v2x(VOID, this);
|
|
959
959
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
960
960
|
return suspendResult;
|
|
961
961
|
}
|
|
@@ -963,30 +963,30 @@
|
|
|
963
963
|
}
|
|
964
964
|
|
|
965
965
|
case 2:
|
|
966
|
-
this.
|
|
966
|
+
this.b2z_1 = suspendResult;
|
|
967
967
|
this.i9_1 = 3;
|
|
968
968
|
continue $sm;
|
|
969
969
|
case 3:
|
|
970
|
-
if (!this.
|
|
970
|
+
if (!this.b2z_1) {
|
|
971
971
|
this.i9_1 = 7;
|
|
972
972
|
continue $sm;
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
this.
|
|
976
|
-
if (this.
|
|
977
|
-
var oldMatchIndex = this.
|
|
978
|
-
while (this.
|
|
979
|
-
this.
|
|
975
|
+
this.a2z_1 = this.z2y_1.c2y_1.u1j();
|
|
976
|
+
if (this.z2y_1.g2y_1 > 0 && !(this.a2z_1 === this.z2y_1.z2x_1.h1(this.z2y_1.g2y_1))) {
|
|
977
|
+
var oldMatchIndex = this.z2y_1.g2y_1;
|
|
978
|
+
while (this.z2y_1.g2y_1 > 0 && !(this.a2z_1 === this.z2y_1.z2x_1.h1(this.z2y_1.g2y_1))) {
|
|
979
|
+
this.z2y_1.g2y_1 = this.z2y_1.d2y_1[this.z2y_1.g2y_1 - 1 | 0];
|
|
980
980
|
}
|
|
981
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
982
|
-
checkBounds(this.
|
|
983
|
-
var tmp_0 = this.
|
|
984
|
-
var tmp_1 = this.
|
|
985
|
-
var tmp_2 = this.
|
|
986
|
-
tmp_0.
|
|
987
|
-
if (this.
|
|
981
|
+
var retained = fromInt(oldMatchIndex - this.z2y_1.g2y_1 | 0);
|
|
982
|
+
checkBounds(this.z2y_1, retained);
|
|
983
|
+
var tmp_0 = this.z2y_1;
|
|
984
|
+
var tmp_1 = this.z2y_1.f2y_1;
|
|
985
|
+
var tmp_2 = this.z2y_1.a2y_1.p2x();
|
|
986
|
+
tmp_0.f2y_1 = add(tmp_1, this.z2y_1.e2y_1.r1k(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
987
|
+
if (this.z2y_1.g2y_1 === 0 && !(this.a2z_1 === this.z2y_1.z2x_1.h1(this.z2y_1.g2y_1))) {
|
|
988
988
|
this.i9_1 = 6;
|
|
989
|
-
suspendResult = writeByte(this.
|
|
989
|
+
suspendResult = writeByte(this.z2y_1.a2y_1, this.a2z_1, this);
|
|
990
990
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
991
991
|
return suspendResult;
|
|
992
992
|
}
|
|
@@ -1004,17 +1004,17 @@
|
|
|
1004
1004
|
this.i9_1 = 5;
|
|
1005
1005
|
continue $sm;
|
|
1006
1006
|
case 5:
|
|
1007
|
-
this.
|
|
1008
|
-
if (this.
|
|
1007
|
+
this.z2y_1.g2y_1 = this.z2y_1.g2y_1 + 1 | 0;
|
|
1008
|
+
if (this.z2y_1.g2y_1 === this.z2y_1.z2x_1.g1()) {
|
|
1009
1009
|
return true;
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
1012
|
-
this.
|
|
1012
|
+
this.z2y_1.e2y_1.k1l(this.a2z_1);
|
|
1013
1013
|
this.i9_1 = 1;
|
|
1014
1014
|
continue $sm;
|
|
1015
1015
|
case 6:
|
|
1016
|
-
var _unary__edvuaz = this.
|
|
1017
|
-
this.
|
|
1016
|
+
var _unary__edvuaz = this.z2y_1.f2y_1;
|
|
1017
|
+
this.z2y_1.f2y_1 = add(_unary__edvuaz, get_ONE());
|
|
1018
1018
|
return false;
|
|
1019
1019
|
case 7:
|
|
1020
1020
|
return false;
|
|
@@ -1034,49 +1034,49 @@
|
|
|
1034
1034
|
};
|
|
1035
1035
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1036
1036
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1039
|
-
this.
|
|
1040
|
-
this.
|
|
1037
|
+
this.y2x_1 = channel;
|
|
1038
|
+
this.z2x_1 = matchString;
|
|
1039
|
+
this.a2y_1 = writeChannel;
|
|
1040
|
+
this.b2y_1 = limit;
|
|
1041
1041
|
// Inline function 'kotlin.require' call
|
|
1042
|
-
if (!(this.
|
|
1042
|
+
if (!(this.z2x_1.g1() > 0)) {
|
|
1043
1043
|
var message = 'Empty match string not permitted for scanning';
|
|
1044
1044
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1045
1045
|
}
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
1049
|
-
this.
|
|
1050
|
-
this.
|
|
1046
|
+
this.c2y_1 = this.y2x_1.m2x();
|
|
1047
|
+
this.d2y_1 = buildPartialMatchTable(this);
|
|
1048
|
+
this.e2y_1 = new Buffer();
|
|
1049
|
+
this.f2y_1 = new Long(0, 0);
|
|
1050
|
+
this.g2y_1 = 0;
|
|
1051
1051
|
}
|
|
1052
|
-
protoOf(ByteChannelScanner).
|
|
1052
|
+
protoOf(ByteChannelScanner).n2z = function (ignoreMissing, $completion) {
|
|
1053
1053
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1054
1054
|
tmp.k9_1 = Unit_instance;
|
|
1055
1055
|
tmp.l9_1 = null;
|
|
1056
1056
|
return tmp.q9();
|
|
1057
1057
|
};
|
|
1058
1058
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1059
|
+
this.o2z_1 = null;
|
|
1060
|
+
this.p2z_1 = new Buffer();
|
|
1061
1061
|
}
|
|
1062
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1063
|
-
return this.
|
|
1062
|
+
protoOf(ByteReadChannel$Companion$Empty$1).r2x = function () {
|
|
1063
|
+
return this.o2z_1;
|
|
1064
1064
|
};
|
|
1065
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1065
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t2x = function () {
|
|
1066
1066
|
return true;
|
|
1067
1067
|
};
|
|
1068
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1069
|
-
return this.
|
|
1068
|
+
protoOf(ByteReadChannel$Companion$Empty$1).m2x = function () {
|
|
1069
|
+
return this.p2z_1;
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1071
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u2x = function (min, $completion) {
|
|
1072
1072
|
return false;
|
|
1073
1073
|
};
|
|
1074
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1074
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x2x = function (cause) {
|
|
1075
1075
|
};
|
|
1076
1076
|
function Companion_0() {
|
|
1077
1077
|
Companion_instance_1 = this;
|
|
1078
1078
|
var tmp = this;
|
|
1079
|
-
tmp.
|
|
1079
|
+
tmp.q2z_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1080
1080
|
}
|
|
1081
1081
|
var Companion_instance_1;
|
|
1082
1082
|
function Companion_getInstance_0() {
|
|
@@ -1087,7 +1087,7 @@
|
|
|
1087
1087
|
function ByteReadChannel_1() {
|
|
1088
1088
|
}
|
|
1089
1089
|
function cancel_0(_this__u8e3s4) {
|
|
1090
|
-
_this__u8e3s4.
|
|
1090
|
+
_this__u8e3s4.x2x(IOException_init_$Create$('Channel was cancelled'));
|
|
1091
1091
|
}
|
|
1092
1092
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1093
1093
|
offset = offset === VOID ? 0 : offset;
|
|
@@ -1143,11 +1143,11 @@
|
|
|
1143
1143
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1144
1144
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1145
1145
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1146
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1146
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).n2z(ignoreMissing, $completion);
|
|
1147
1147
|
}
|
|
1148
1148
|
function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
1149
1149
|
max = max === VOID ? 2147483647 : max;
|
|
1150
|
-
lineEnding = lineEnding === VOID ? Companion_getInstance_1().
|
|
1150
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().e33_1 : lineEnding;
|
|
1151
1151
|
var tmp = new $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
1152
1152
|
tmp.k9_1 = Unit_instance;
|
|
1153
1153
|
tmp.l9_1 = null;
|
|
@@ -1160,7 +1160,7 @@
|
|
|
1160
1160
|
return tmp.q9();
|
|
1161
1161
|
}
|
|
1162
1162
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1163
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1163
|
+
var tmp0_safe_receiver = _this__u8e3s4.r2x();
|
|
1164
1164
|
if (tmp0_safe_receiver == null)
|
|
1165
1165
|
null;
|
|
1166
1166
|
else {
|
|
@@ -1169,7 +1169,7 @@
|
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1172
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1172
|
+
var tmp0_safe_receiver = _this__u8e3s4.r2x();
|
|
1173
1173
|
if (tmp0_safe_receiver == null)
|
|
1174
1174
|
null;
|
|
1175
1175
|
else {
|
|
@@ -1184,7 +1184,7 @@
|
|
|
1184
1184
|
return tmp.q9();
|
|
1185
1185
|
}
|
|
1186
1186
|
function get_availableForRead(_this__u8e3s4) {
|
|
1187
|
-
return convertToInt(_this__u8e3s4.
|
|
1187
|
+
return convertToInt(_this__u8e3s4.m2x().q1j().g1());
|
|
1188
1188
|
}
|
|
1189
1189
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1190
1190
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1193,7 +1193,7 @@
|
|
|
1193
1193
|
return tmp.q9();
|
|
1194
1194
|
}
|
|
1195
1195
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1196
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1196
|
+
var tmp0_safe_receiver = _this__u8e3s4.r2x();
|
|
1197
1197
|
if (tmp0_safe_receiver == null)
|
|
1198
1198
|
null;
|
|
1199
1199
|
else {
|
|
@@ -1208,10 +1208,10 @@
|
|
|
1208
1208
|
}
|
|
1209
1209
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1210
1210
|
CoroutineImpl.call(this, resultContinuation);
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1211
|
+
this.z2z_1 = _this__u8e3s4;
|
|
1212
|
+
this.a30_1 = buffer;
|
|
1213
|
+
this.b30_1 = offset;
|
|
1214
|
+
this.c30_1 = length;
|
|
1215
1215
|
}
|
|
1216
1216
|
protoOf($readAvailableCOROUTINE$).q9 = function () {
|
|
1217
1217
|
var suspendResult = this.k9_1;
|
|
@@ -1221,11 +1221,11 @@
|
|
|
1221
1221
|
switch (tmp) {
|
|
1222
1222
|
case 0:
|
|
1223
1223
|
this.j9_1 = 3;
|
|
1224
|
-
if (this.
|
|
1224
|
+
if (this.z2z_1.t2x())
|
|
1225
1225
|
return -1;
|
|
1226
|
-
if (this.
|
|
1226
|
+
if (this.z2z_1.m2x().r1j()) {
|
|
1227
1227
|
this.i9_1 = 1;
|
|
1228
|
-
suspendResult = this.
|
|
1228
|
+
suspendResult = this.z2z_1.v2x(VOID, this);
|
|
1229
1229
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1230
1230
|
return suspendResult;
|
|
1231
1231
|
}
|
|
@@ -1239,9 +1239,9 @@
|
|
|
1239
1239
|
this.i9_1 = 2;
|
|
1240
1240
|
continue $sm;
|
|
1241
1241
|
case 2:
|
|
1242
|
-
if (this.
|
|
1242
|
+
if (this.z2z_1.t2x())
|
|
1243
1243
|
return -1;
|
|
1244
|
-
return readAvailable_0(this.
|
|
1244
|
+
return readAvailable_0(this.z2z_1.m2x(), this.a30_1, this.b30_1, this.c30_1);
|
|
1245
1245
|
case 3:
|
|
1246
1246
|
throw this.l9_1;
|
|
1247
1247
|
}
|
|
@@ -1258,8 +1258,8 @@
|
|
|
1258
1258
|
};
|
|
1259
1259
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, resultContinuation) {
|
|
1260
1260
|
CoroutineImpl.call(this, resultContinuation);
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1261
|
+
this.l30_1 = _this__u8e3s4;
|
|
1262
|
+
this.m30_1 = channel;
|
|
1263
1263
|
}
|
|
1264
1264
|
protoOf($copyToCOROUTINE$).q9 = function () {
|
|
1265
1265
|
var suspendResult = this.k9_1;
|
|
@@ -1269,7 +1269,7 @@
|
|
|
1269
1269
|
switch (tmp) {
|
|
1270
1270
|
case 0:
|
|
1271
1271
|
this.j9_1 = 11;
|
|
1272
|
-
this.
|
|
1272
|
+
this.n30_1 = new Long(0, 0);
|
|
1273
1273
|
this.i9_1 = 1;
|
|
1274
1274
|
continue $sm;
|
|
1275
1275
|
case 1:
|
|
@@ -1278,14 +1278,14 @@
|
|
|
1278
1278
|
this.i9_1 = 2;
|
|
1279
1279
|
continue $sm;
|
|
1280
1280
|
case 2:
|
|
1281
|
-
if (!!this.
|
|
1281
|
+
if (!!this.l30_1.t2x()) {
|
|
1282
1282
|
this.i9_1 = 5;
|
|
1283
1283
|
continue $sm;
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
|
-
this.
|
|
1286
|
+
this.n30_1 = add(this.n30_1, this.l30_1.m2x().u1k(this.m30_1.p2x()));
|
|
1287
1287
|
this.i9_1 = 3;
|
|
1288
|
-
suspendResult = this.
|
|
1288
|
+
suspendResult = this.m30_1.k2x(this);
|
|
1289
1289
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1290
1290
|
return suspendResult;
|
|
1291
1291
|
}
|
|
@@ -1293,7 +1293,7 @@
|
|
|
1293
1293
|
continue $sm;
|
|
1294
1294
|
case 3:
|
|
1295
1295
|
this.i9_1 = 4;
|
|
1296
|
-
suspendResult = this.
|
|
1296
|
+
suspendResult = this.l30_1.v2x(VOID, this);
|
|
1297
1297
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1298
1298
|
return suspendResult;
|
|
1299
1299
|
}
|
|
@@ -1311,8 +1311,8 @@
|
|
|
1311
1311
|
var tmp_0 = this.l9_1;
|
|
1312
1312
|
if (tmp_0 instanceof Error) {
|
|
1313
1313
|
var cause = this.l9_1;
|
|
1314
|
-
this.
|
|
1315
|
-
close_0(this.
|
|
1314
|
+
this.l30_1.x2x(cause);
|
|
1315
|
+
close_0(this.m30_1, cause);
|
|
1316
1316
|
throw cause;
|
|
1317
1317
|
} else {
|
|
1318
1318
|
throw this.l9_1;
|
|
@@ -1320,27 +1320,27 @@
|
|
|
1320
1320
|
|
|
1321
1321
|
case 7:
|
|
1322
1322
|
this.j9_1 = 11;
|
|
1323
|
-
this.
|
|
1323
|
+
this.o30_1 = this.l9_1;
|
|
1324
1324
|
this.i9_1 = 8;
|
|
1325
|
-
suspendResult = this.
|
|
1325
|
+
suspendResult = this.m30_1.k2x(this);
|
|
1326
1326
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1327
1327
|
return suspendResult;
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
1330
|
continue $sm;
|
|
1331
1331
|
case 8:
|
|
1332
|
-
throw this.
|
|
1332
|
+
throw this.o30_1;
|
|
1333
1333
|
case 9:
|
|
1334
1334
|
this.j9_1 = 11;
|
|
1335
1335
|
this.i9_1 = 10;
|
|
1336
|
-
suspendResult = this.
|
|
1336
|
+
suspendResult = this.m30_1.k2x(this);
|
|
1337
1337
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1338
1338
|
return suspendResult;
|
|
1339
1339
|
}
|
|
1340
1340
|
|
|
1341
1341
|
continue $sm;
|
|
1342
1342
|
case 10:
|
|
1343
|
-
return this.
|
|
1343
|
+
return this.n30_1;
|
|
1344
1344
|
case 11:
|
|
1345
1345
|
throw this.l9_1;
|
|
1346
1346
|
}
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
};
|
|
1358
1358
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1359
1359
|
CoroutineImpl.call(this, resultContinuation);
|
|
1360
|
-
this.
|
|
1360
|
+
this.x30_1 = _this__u8e3s4;
|
|
1361
1361
|
}
|
|
1362
1362
|
protoOf($readRemainingCOROUTINE$).q9 = function () {
|
|
1363
1363
|
var suspendResult = this.k9_1;
|
|
@@ -1367,18 +1367,18 @@
|
|
|
1367
1367
|
switch (tmp) {
|
|
1368
1368
|
case 0:
|
|
1369
1369
|
this.j9_1 = 4;
|
|
1370
|
-
this.
|
|
1370
|
+
this.y30_1 = BytePacketBuilder();
|
|
1371
1371
|
this.i9_1 = 1;
|
|
1372
1372
|
continue $sm;
|
|
1373
1373
|
case 1:
|
|
1374
|
-
if (!!this.
|
|
1374
|
+
if (!!this.x30_1.t2x()) {
|
|
1375
1375
|
this.i9_1 = 3;
|
|
1376
1376
|
continue $sm;
|
|
1377
1377
|
}
|
|
1378
1378
|
|
|
1379
|
-
this.
|
|
1379
|
+
this.y30_1.j1l(this.x30_1.m2x());
|
|
1380
1380
|
this.i9_1 = 2;
|
|
1381
|
-
suspendResult = this.
|
|
1381
|
+
suspendResult = this.x30_1.v2x(VOID, this);
|
|
1382
1382
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1383
1383
|
return suspendResult;
|
|
1384
1384
|
}
|
|
@@ -1388,8 +1388,8 @@
|
|
|
1388
1388
|
this.i9_1 = 1;
|
|
1389
1389
|
continue $sm;
|
|
1390
1390
|
case 3:
|
|
1391
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1392
|
-
return this.
|
|
1391
|
+
rethrowCloseCauseIfNeeded_0(this.x30_1);
|
|
1392
|
+
return this.y30_1.q1j();
|
|
1393
1393
|
case 4:
|
|
1394
1394
|
throw this.l9_1;
|
|
1395
1395
|
}
|
|
@@ -1406,7 +1406,7 @@
|
|
|
1406
1406
|
};
|
|
1407
1407
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1408
1408
|
CoroutineImpl.call(this, resultContinuation);
|
|
1409
|
-
this.
|
|
1409
|
+
this.h31_1 = _this__u8e3s4;
|
|
1410
1410
|
}
|
|
1411
1411
|
protoOf($toByteArrayCOROUTINE$).q9 = function () {
|
|
1412
1412
|
var suspendResult = this.k9_1;
|
|
@@ -1417,7 +1417,7 @@
|
|
|
1417
1417
|
case 0:
|
|
1418
1418
|
this.j9_1 = 2;
|
|
1419
1419
|
this.i9_1 = 1;
|
|
1420
|
-
suspendResult = readBuffer(this.
|
|
1420
|
+
suspendResult = readBuffer(this.h31_1, this);
|
|
1421
1421
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1422
1422
|
return suspendResult;
|
|
1423
1423
|
}
|
|
@@ -1442,9 +1442,9 @@
|
|
|
1442
1442
|
};
|
|
1443
1443
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1444
1444
|
CoroutineImpl.call(this, resultContinuation);
|
|
1445
|
-
this.
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1445
|
+
this.q31_1 = _this__u8e3s4;
|
|
1446
|
+
this.r31_1 = channel;
|
|
1447
|
+
this.s31_1 = limit;
|
|
1448
1448
|
}
|
|
1449
1449
|
protoOf($copyToCOROUTINE$_0).q9 = function () {
|
|
1450
1450
|
var suspendResult = this.k9_1;
|
|
@@ -1454,7 +1454,7 @@
|
|
|
1454
1454
|
switch (tmp) {
|
|
1455
1455
|
case 0:
|
|
1456
1456
|
this.j9_1 = 12;
|
|
1457
|
-
this.
|
|
1457
|
+
this.t31_1 = this.s31_1;
|
|
1458
1458
|
this.i9_1 = 1;
|
|
1459
1459
|
continue $sm;
|
|
1460
1460
|
case 1:
|
|
@@ -1463,14 +1463,14 @@
|
|
|
1463
1463
|
this.i9_1 = 2;
|
|
1464
1464
|
continue $sm;
|
|
1465
1465
|
case 2:
|
|
1466
|
-
if (!(!this.
|
|
1466
|
+
if (!(!this.q31_1.t2x() && compare(this.t31_1, new Long(0, 0)) > 0)) {
|
|
1467
1467
|
this.i9_1 = 6;
|
|
1468
1468
|
continue $sm;
|
|
1469
1469
|
}
|
|
1470
1470
|
|
|
1471
|
-
if (this.
|
|
1471
|
+
if (this.q31_1.m2x().r1j()) {
|
|
1472
1472
|
this.i9_1 = 3;
|
|
1473
|
-
suspendResult = this.
|
|
1473
|
+
suspendResult = this.q31_1.v2x(VOID, this);
|
|
1474
1474
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1475
1475
|
return suspendResult;
|
|
1476
1476
|
}
|
|
@@ -1484,13 +1484,13 @@
|
|
|
1484
1484
|
this.i9_1 = 4;
|
|
1485
1485
|
continue $sm;
|
|
1486
1486
|
case 4:
|
|
1487
|
-
var tmp0 = this.
|
|
1488
|
-
var b = get_remaining(this.
|
|
1487
|
+
var tmp0 = this.t31_1;
|
|
1488
|
+
var b = get_remaining(this.q31_1.m2x());
|
|
1489
1489
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1490
|
+
this.q31_1.m2x().t1k(this.r31_1.p2x(), count);
|
|
1491
|
+
this.t31_1 = subtract(this.t31_1, count);
|
|
1492
1492
|
this.i9_1 = 5;
|
|
1493
|
-
suspendResult = this.
|
|
1493
|
+
suspendResult = this.r31_1.k2x(this);
|
|
1494
1494
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1495
1495
|
return suspendResult;
|
|
1496
1496
|
}
|
|
@@ -1508,8 +1508,8 @@
|
|
|
1508
1508
|
var tmp_0 = this.l9_1;
|
|
1509
1509
|
if (tmp_0 instanceof Error) {
|
|
1510
1510
|
var cause = this.l9_1;
|
|
1511
|
-
this.
|
|
1512
|
-
close_0(this.
|
|
1511
|
+
this.q31_1.x2x(cause);
|
|
1512
|
+
close_0(this.r31_1, cause);
|
|
1513
1513
|
throw cause;
|
|
1514
1514
|
} else {
|
|
1515
1515
|
throw this.l9_1;
|
|
@@ -1517,27 +1517,27 @@
|
|
|
1517
1517
|
|
|
1518
1518
|
case 8:
|
|
1519
1519
|
this.j9_1 = 12;
|
|
1520
|
-
this.
|
|
1520
|
+
this.u31_1 = this.l9_1;
|
|
1521
1521
|
this.i9_1 = 9;
|
|
1522
|
-
suspendResult = this.
|
|
1522
|
+
suspendResult = this.r31_1.k2x(this);
|
|
1523
1523
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1524
1524
|
return suspendResult;
|
|
1525
1525
|
}
|
|
1526
1526
|
|
|
1527
1527
|
continue $sm;
|
|
1528
1528
|
case 9:
|
|
1529
|
-
throw this.
|
|
1529
|
+
throw this.u31_1;
|
|
1530
1530
|
case 10:
|
|
1531
1531
|
this.j9_1 = 12;
|
|
1532
1532
|
this.i9_1 = 11;
|
|
1533
|
-
suspendResult = this.
|
|
1533
|
+
suspendResult = this.r31_1.k2x(this);
|
|
1534
1534
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1535
1535
|
return suspendResult;
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
1538
|
continue $sm;
|
|
1539
1539
|
case 11:
|
|
1540
|
-
return subtract(this.
|
|
1540
|
+
return subtract(this.s31_1, this.t31_1);
|
|
1541
1541
|
case 12:
|
|
1542
1542
|
throw this.l9_1;
|
|
1543
1543
|
}
|
|
@@ -1554,8 +1554,8 @@
|
|
|
1554
1554
|
};
|
|
1555
1555
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1556
1556
|
CoroutineImpl.call(this, resultContinuation);
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1557
|
+
this.d32_1 = _this__u8e3s4;
|
|
1558
|
+
this.e32_1 = max;
|
|
1559
1559
|
}
|
|
1560
1560
|
protoOf($discardCOROUTINE$).q9 = function () {
|
|
1561
1561
|
var suspendResult = this.k9_1;
|
|
@@ -1565,18 +1565,18 @@
|
|
|
1565
1565
|
switch (tmp) {
|
|
1566
1566
|
case 0:
|
|
1567
1567
|
this.j9_1 = 5;
|
|
1568
|
-
this.
|
|
1568
|
+
this.f32_1 = this.e32_1;
|
|
1569
1569
|
this.i9_1 = 1;
|
|
1570
1570
|
continue $sm;
|
|
1571
1571
|
case 1:
|
|
1572
|
-
if (!(compare(this.
|
|
1572
|
+
if (!(compare(this.f32_1, new Long(0, 0)) > 0 && !this.d32_1.t2x())) {
|
|
1573
1573
|
this.i9_1 = 4;
|
|
1574
1574
|
continue $sm;
|
|
1575
1575
|
}
|
|
1576
1576
|
|
|
1577
|
-
if (get_availableForRead(this.
|
|
1577
|
+
if (get_availableForRead(this.d32_1) === 0) {
|
|
1578
1578
|
this.i9_1 = 2;
|
|
1579
|
-
suspendResult = this.
|
|
1579
|
+
suspendResult = this.d32_1.v2x(VOID, this);
|
|
1580
1580
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1581
1581
|
return suspendResult;
|
|
1582
1582
|
}
|
|
@@ -1590,15 +1590,15 @@
|
|
|
1590
1590
|
this.i9_1 = 3;
|
|
1591
1591
|
continue $sm;
|
|
1592
1592
|
case 3:
|
|
1593
|
-
var tmp0 = this.
|
|
1594
|
-
var b = get_remaining(this.
|
|
1593
|
+
var tmp0 = this.f32_1;
|
|
1594
|
+
var b = get_remaining(this.d32_1.m2x());
|
|
1595
1595
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1596
|
-
discard_0(this.
|
|
1597
|
-
this.
|
|
1596
|
+
discard_0(this.d32_1.m2x(), count);
|
|
1597
|
+
this.f32_1 = subtract(this.f32_1, count);
|
|
1598
1598
|
this.i9_1 = 1;
|
|
1599
1599
|
continue $sm;
|
|
1600
1600
|
case 4:
|
|
1601
|
-
return subtract(this.
|
|
1601
|
+
return subtract(this.e32_1, this.f32_1);
|
|
1602
1602
|
case 5:
|
|
1603
1603
|
throw this.l9_1;
|
|
1604
1604
|
}
|
|
@@ -1615,8 +1615,8 @@
|
|
|
1615
1615
|
};
|
|
1616
1616
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1617
1617
|
CoroutineImpl.call(this, resultContinuation);
|
|
1618
|
-
this.
|
|
1619
|
-
this.
|
|
1618
|
+
this.o32_1 = _this__u8e3s4;
|
|
1619
|
+
this.p32_1 = byteString;
|
|
1620
1620
|
}
|
|
1621
1621
|
protoOf($skipIfFoundCOROUTINE$).q9 = function () {
|
|
1622
1622
|
var suspendResult = this.k9_1;
|
|
@@ -1627,7 +1627,7 @@
|
|
|
1627
1627
|
case 0:
|
|
1628
1628
|
this.j9_1 = 4;
|
|
1629
1629
|
this.i9_1 = 1;
|
|
1630
|
-
suspendResult = peek(this.
|
|
1630
|
+
suspendResult = peek(this.o32_1, this.p32_1.g1(), this);
|
|
1631
1631
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1632
1632
|
return suspendResult;
|
|
1633
1633
|
}
|
|
@@ -1635,9 +1635,9 @@
|
|
|
1635
1635
|
continue $sm;
|
|
1636
1636
|
case 1:
|
|
1637
1637
|
var ARGUMENT = suspendResult;
|
|
1638
|
-
if (equals(ARGUMENT, this.
|
|
1638
|
+
if (equals(ARGUMENT, this.p32_1)) {
|
|
1639
1639
|
this.i9_1 = 3;
|
|
1640
|
-
suspendResult = discard(this.
|
|
1640
|
+
suspendResult = discard(this.o32_1, fromInt(this.p32_1.g1()), this);
|
|
1641
1641
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1642
1642
|
return suspendResult;
|
|
1643
1643
|
}
|
|
@@ -1667,8 +1667,8 @@
|
|
|
1667
1667
|
};
|
|
1668
1668
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1669
1669
|
CoroutineImpl.call(this, resultContinuation);
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1670
|
+
this.y32_1 = _this__u8e3s4;
|
|
1671
|
+
this.z32_1 = packet;
|
|
1672
1672
|
}
|
|
1673
1673
|
protoOf($readPacketCOROUTINE$).q9 = function () {
|
|
1674
1674
|
var suspendResult = this.k9_1;
|
|
@@ -1678,18 +1678,18 @@
|
|
|
1678
1678
|
switch (tmp) {
|
|
1679
1679
|
case 0:
|
|
1680
1680
|
this.j9_1 = 6;
|
|
1681
|
-
this.
|
|
1681
|
+
this.a33_1 = new Buffer();
|
|
1682
1682
|
this.i9_1 = 1;
|
|
1683
1683
|
continue $sm;
|
|
1684
1684
|
case 1:
|
|
1685
|
-
if (!(compare(this.
|
|
1685
|
+
if (!(compare(this.a33_1.g1(), fromInt(this.z32_1)) < 0)) {
|
|
1686
1686
|
this.i9_1 = 5;
|
|
1687
1687
|
continue $sm;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
if (this.
|
|
1690
|
+
if (this.y32_1.m2x().r1j()) {
|
|
1691
1691
|
this.i9_1 = 2;
|
|
1692
|
-
suspendResult = this.
|
|
1692
|
+
suspendResult = this.y32_1.v2x(VOID, this);
|
|
1693
1693
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1694
1694
|
return suspendResult;
|
|
1695
1695
|
}
|
|
@@ -1703,7 +1703,7 @@
|
|
|
1703
1703
|
this.i9_1 = 3;
|
|
1704
1704
|
continue $sm;
|
|
1705
1705
|
case 3:
|
|
1706
|
-
if (this.
|
|
1706
|
+
if (this.y32_1.t2x()) {
|
|
1707
1707
|
this.i9_1 = 5;
|
|
1708
1708
|
continue $sm;
|
|
1709
1709
|
} else {
|
|
@@ -1712,20 +1712,20 @@
|
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
1714
|
case 4:
|
|
1715
|
-
if (compare(get_remaining(this.
|
|
1716
|
-
this.
|
|
1715
|
+
if (compare(get_remaining(this.y32_1.m2x()), subtract(numberToLong(this.z32_1), this.a33_1.g1())) > 0) {
|
|
1716
|
+
this.y32_1.m2x().t1k(this.a33_1, subtract(numberToLong(this.z32_1), this.a33_1.g1()));
|
|
1717
1717
|
} else {
|
|
1718
|
-
this.
|
|
1718
|
+
this.y32_1.m2x().u1k(this.a33_1);
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
1721
|
this.i9_1 = 1;
|
|
1722
1722
|
continue $sm;
|
|
1723
1723
|
case 5:
|
|
1724
|
-
if (compare(this.
|
|
1725
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1724
|
+
if (compare(this.a33_1.g1(), fromInt(this.z32_1)) < 0) {
|
|
1725
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.z32_1 + ' bytes but only ' + this.a33_1.g1().toString() + ' available');
|
|
1726
1726
|
}
|
|
1727
1727
|
|
|
1728
|
-
return this.
|
|
1728
|
+
return this.a33_1;
|
|
1729
1729
|
case 6:
|
|
1730
1730
|
throw this.l9_1;
|
|
1731
1731
|
}
|
|
@@ -1742,10 +1742,10 @@
|
|
|
1742
1742
|
};
|
|
1743
1743
|
function $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
1744
1744
|
CoroutineImpl.call(this, resultContinuation);
|
|
1745
|
-
this.
|
|
1746
|
-
this.
|
|
1747
|
-
this.
|
|
1748
|
-
this.
|
|
1745
|
+
this.o33_1 = _this__u8e3s4;
|
|
1746
|
+
this.p33_1 = out;
|
|
1747
|
+
this.q33_1 = max;
|
|
1748
|
+
this.r33_1 = lineEnding;
|
|
1749
1749
|
}
|
|
1750
1750
|
protoOf($readUTF8LineToCOROUTINE$).q9 = function () {
|
|
1751
1751
|
var suspendResult = this.k9_1;
|
|
@@ -1755,9 +1755,9 @@
|
|
|
1755
1755
|
switch (tmp) {
|
|
1756
1756
|
case 0:
|
|
1757
1757
|
this.j9_1 = 21;
|
|
1758
|
-
if (this.
|
|
1758
|
+
if (this.o33_1.m2x().r1j()) {
|
|
1759
1759
|
this.i9_1 = 1;
|
|
1760
|
-
suspendResult = this.
|
|
1760
|
+
suspendResult = this.o33_1.v2x(VOID, this);
|
|
1761
1761
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1762
1762
|
return suspendResult;
|
|
1763
1763
|
}
|
|
@@ -1771,14 +1771,14 @@
|
|
|
1771
1771
|
this.i9_1 = 2;
|
|
1772
1772
|
continue $sm;
|
|
1773
1773
|
case 2:
|
|
1774
|
-
if (this.
|
|
1774
|
+
if (this.o33_1.t2x())
|
|
1775
1775
|
return false;
|
|
1776
|
-
this.
|
|
1776
|
+
this.x33_1 = new Buffer();
|
|
1777
1777
|
this.i9_1 = 3;
|
|
1778
1778
|
continue $sm;
|
|
1779
1779
|
case 3:
|
|
1780
|
-
this.
|
|
1781
|
-
this.
|
|
1780
|
+
this.u33_1 = this.x33_1;
|
|
1781
|
+
this.t33_1 = null;
|
|
1782
1782
|
this.i9_1 = 4;
|
|
1783
1783
|
continue $sm;
|
|
1784
1784
|
case 4:
|
|
@@ -1790,11 +1790,11 @@
|
|
|
1790
1790
|
case 6:
|
|
1791
1791
|
this.j9_1 = 18;
|
|
1792
1792
|
this.j9_1 = 17;
|
|
1793
|
-
this.
|
|
1793
|
+
this.w33_1 = this.u33_1;
|
|
1794
1794
|
this.i9_1 = 7;
|
|
1795
1795
|
continue $sm;
|
|
1796
1796
|
case 7:
|
|
1797
|
-
if (!!this.
|
|
1797
|
+
if (!!this.o33_1.t2x()) {
|
|
1798
1798
|
this.i9_1 = 14;
|
|
1799
1799
|
continue $sm;
|
|
1800
1800
|
}
|
|
@@ -1802,16 +1802,16 @@
|
|
|
1802
1802
|
this.i9_1 = 8;
|
|
1803
1803
|
continue $sm;
|
|
1804
1804
|
case 8:
|
|
1805
|
-
if (!!this.
|
|
1805
|
+
if (!!this.o33_1.m2x().r1j()) {
|
|
1806
1806
|
this.i9_1 = 12;
|
|
1807
1807
|
continue $sm;
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
|
-
var b = this.
|
|
1810
|
+
var b = this.o33_1.m2x().u1j();
|
|
1811
1811
|
if (b === 13) {
|
|
1812
|
-
if (this.
|
|
1812
|
+
if (this.o33_1.m2x().r1j()) {
|
|
1813
1813
|
this.i9_1 = 10;
|
|
1814
|
-
suspendResult = this.
|
|
1814
|
+
suspendResult = this.o33_1.v2x(VOID, this);
|
|
1815
1815
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1816
1816
|
return suspendResult;
|
|
1817
1817
|
}
|
|
@@ -1822,14 +1822,14 @@
|
|
|
1822
1822
|
}
|
|
1823
1823
|
} else {
|
|
1824
1824
|
if (b === 10) {
|
|
1825
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1826
|
-
this.
|
|
1827
|
-
this.
|
|
1825
|
+
readUTF8LineTo$checkLineEndingAllowed(this.r33_1, Companion_getInstance_1().c33_1);
|
|
1826
|
+
this.p33_1.f1(readString(this.w33_1));
|
|
1827
|
+
this.v33_1 = true;
|
|
1828
1828
|
this.j9_1 = 21;
|
|
1829
1829
|
this.i9_1 = 15;
|
|
1830
1830
|
continue $sm;
|
|
1831
1831
|
} else {
|
|
1832
|
-
this.
|
|
1832
|
+
this.w33_1.k1l(b);
|
|
1833
1833
|
this.i9_1 = 9;
|
|
1834
1834
|
continue $sm;
|
|
1835
1835
|
}
|
|
@@ -1842,25 +1842,25 @@
|
|
|
1842
1842
|
this.i9_1 = 11;
|
|
1843
1843
|
continue $sm;
|
|
1844
1844
|
case 11:
|
|
1845
|
-
if (this.
|
|
1846
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1847
|
-
discard_0(this.
|
|
1845
|
+
if (this.o33_1.m2x().q1j().m1k(new Long(0, 0)) === 10) {
|
|
1846
|
+
readUTF8LineTo$checkLineEndingAllowed(this.r33_1, Companion_getInstance_1().d33_1);
|
|
1847
|
+
discard_0(this.o33_1.m2x(), new Long(1, 0));
|
|
1848
1848
|
} else {
|
|
1849
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1849
|
+
readUTF8LineTo$checkLineEndingAllowed(this.r33_1, Companion_getInstance_1().b33_1);
|
|
1850
1850
|
}
|
|
1851
1851
|
|
|
1852
|
-
this.
|
|
1853
|
-
this.
|
|
1852
|
+
this.p33_1.f1(readString(this.w33_1));
|
|
1853
|
+
this.v33_1 = true;
|
|
1854
1854
|
this.j9_1 = 21;
|
|
1855
1855
|
this.i9_1 = 15;
|
|
1856
1856
|
continue $sm;
|
|
1857
1857
|
case 12:
|
|
1858
|
-
if (compare(this.
|
|
1859
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.
|
|
1858
|
+
if (compare(this.w33_1.g1(), fromInt(this.q33_1)) >= 0) {
|
|
1859
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.q33_1 + ' characters');
|
|
1860
1860
|
}
|
|
1861
1861
|
|
|
1862
1862
|
this.i9_1 = 13;
|
|
1863
|
-
suspendResult = this.
|
|
1863
|
+
suspendResult = this.o33_1.v2x(VOID, this);
|
|
1864
1864
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1865
1865
|
return suspendResult;
|
|
1866
1866
|
}
|
|
@@ -1871,26 +1871,26 @@
|
|
|
1871
1871
|
continue $sm;
|
|
1872
1872
|
case 14:
|
|
1873
1873
|
var tmp_0 = this;
|
|
1874
|
-
var this_0 = compare(this.
|
|
1874
|
+
var this_0 = compare(this.w33_1.g1(), new Long(0, 0)) > 0;
|
|
1875
1875
|
if (this_0) {
|
|
1876
|
-
this.
|
|
1876
|
+
this.p33_1.f1(readString(this.w33_1));
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
|
-
tmp_0.
|
|
1879
|
+
tmp_0.v33_1 = this_0;
|
|
1880
1880
|
this.j9_1 = 21;
|
|
1881
1881
|
this.i9_1 = 15;
|
|
1882
1882
|
var tmp_1 = this;
|
|
1883
1883
|
continue $sm;
|
|
1884
1884
|
case 15:
|
|
1885
|
-
var tmp_2 = this.
|
|
1885
|
+
var tmp_2 = this.v33_1;
|
|
1886
1886
|
this.j9_1 = 21;
|
|
1887
|
-
closeFinally(this.
|
|
1887
|
+
closeFinally(this.u33_1, this.t33_1);
|
|
1888
1888
|
return tmp_2;
|
|
1889
1889
|
case 16:
|
|
1890
1890
|
this.j9_1 = 21;
|
|
1891
1891
|
var tmp_3 = this;
|
|
1892
|
-
closeFinally(this.
|
|
1893
|
-
tmp_3.
|
|
1892
|
+
closeFinally(this.u33_1, this.t33_1);
|
|
1893
|
+
tmp_3.s33_1 = Unit_instance;
|
|
1894
1894
|
this.i9_1 = 20;
|
|
1895
1895
|
continue $sm;
|
|
1896
1896
|
case 17:
|
|
@@ -1899,7 +1899,7 @@
|
|
|
1899
1899
|
if (tmp_4 instanceof Error) {
|
|
1900
1900
|
var e = this.l9_1;
|
|
1901
1901
|
var tmp_5 = this;
|
|
1902
|
-
this.
|
|
1902
|
+
this.t33_1 = e;
|
|
1903
1903
|
throw e;
|
|
1904
1904
|
} else {
|
|
1905
1905
|
throw this.l9_1;
|
|
@@ -1908,11 +1908,11 @@
|
|
|
1908
1908
|
case 18:
|
|
1909
1909
|
this.j9_1 = 21;
|
|
1910
1910
|
var t = this.l9_1;
|
|
1911
|
-
closeFinally(this.
|
|
1911
|
+
closeFinally(this.u33_1, this.t33_1);
|
|
1912
1912
|
throw t;
|
|
1913
1913
|
case 19:
|
|
1914
1914
|
this.j9_1 = 21;
|
|
1915
|
-
closeFinally(this.
|
|
1915
|
+
closeFinally(this.u33_1, this.t33_1);
|
|
1916
1916
|
if (false) {
|
|
1917
1917
|
this.i9_1 = 3;
|
|
1918
1918
|
continue $sm;
|
|
@@ -1938,8 +1938,8 @@
|
|
|
1938
1938
|
};
|
|
1939
1939
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1940
1940
|
CoroutineImpl.call(this, resultContinuation);
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1941
|
+
this.g34_1 = _this__u8e3s4;
|
|
1942
|
+
this.h34_1 = max;
|
|
1943
1943
|
}
|
|
1944
1944
|
protoOf($readRemainingCOROUTINE$_0).q9 = function () {
|
|
1945
1945
|
var suspendResult = this.k9_1;
|
|
@@ -1949,26 +1949,26 @@
|
|
|
1949
1949
|
switch (tmp) {
|
|
1950
1950
|
case 0:
|
|
1951
1951
|
this.j9_1 = 4;
|
|
1952
|
-
this.
|
|
1953
|
-
this.
|
|
1952
|
+
this.i34_1 = BytePacketBuilder();
|
|
1953
|
+
this.j34_1 = this.h34_1;
|
|
1954
1954
|
this.i9_1 = 1;
|
|
1955
1955
|
continue $sm;
|
|
1956
1956
|
case 1:
|
|
1957
|
-
if (!(!this.
|
|
1957
|
+
if (!(!this.g34_1.t2x() && compare(this.j34_1, new Long(0, 0)) > 0)) {
|
|
1958
1958
|
this.i9_1 = 3;
|
|
1959
1959
|
continue $sm;
|
|
1960
1960
|
}
|
|
1961
1961
|
|
|
1962
|
-
if (compare(this.
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1962
|
+
if (compare(this.j34_1, get_remaining(this.g34_1.m2x())) >= 0) {
|
|
1963
|
+
this.j34_1 = subtract(this.j34_1, get_remaining(this.g34_1.m2x()));
|
|
1964
|
+
this.g34_1.m2x().u1k(this.i34_1);
|
|
1965
1965
|
} else {
|
|
1966
|
-
this.
|
|
1967
|
-
this.
|
|
1966
|
+
this.g34_1.m2x().t1k(this.i34_1, this.j34_1);
|
|
1967
|
+
this.j34_1 = new Long(0, 0);
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
1970
|
this.i9_1 = 2;
|
|
1971
|
-
suspendResult = this.
|
|
1971
|
+
suspendResult = this.g34_1.v2x(VOID, this);
|
|
1972
1972
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1973
1973
|
return suspendResult;
|
|
1974
1974
|
}
|
|
@@ -1978,7 +1978,7 @@
|
|
|
1978
1978
|
this.i9_1 = 1;
|
|
1979
1979
|
continue $sm;
|
|
1980
1980
|
case 3:
|
|
1981
|
-
return this.
|
|
1981
|
+
return this.i34_1.q1j();
|
|
1982
1982
|
case 4:
|
|
1983
1983
|
throw this.l9_1;
|
|
1984
1984
|
}
|
|
@@ -1995,7 +1995,7 @@
|
|
|
1995
1995
|
};
|
|
1996
1996
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1997
1997
|
CoroutineImpl.call(this, resultContinuation);
|
|
1998
|
-
this.
|
|
1998
|
+
this.s34_1 = _this__u8e3s4;
|
|
1999
1999
|
}
|
|
2000
2000
|
protoOf($readBufferCOROUTINE$).q9 = function () {
|
|
2001
2001
|
var suspendResult = this.k9_1;
|
|
@@ -2005,18 +2005,18 @@
|
|
|
2005
2005
|
switch (tmp) {
|
|
2006
2006
|
case 0:
|
|
2007
2007
|
this.j9_1 = 4;
|
|
2008
|
-
this.
|
|
2008
|
+
this.t34_1 = new Buffer();
|
|
2009
2009
|
this.i9_1 = 1;
|
|
2010
2010
|
continue $sm;
|
|
2011
2011
|
case 1:
|
|
2012
|
-
if (!!this.
|
|
2012
|
+
if (!!this.s34_1.t2x()) {
|
|
2013
2013
|
this.i9_1 = 3;
|
|
2014
2014
|
continue $sm;
|
|
2015
2015
|
}
|
|
2016
2016
|
|
|
2017
|
-
this.
|
|
2017
|
+
this.t34_1.j1l(this.s34_1.m2x());
|
|
2018
2018
|
this.i9_1 = 2;
|
|
2019
|
-
suspendResult = this.
|
|
2019
|
+
suspendResult = this.s34_1.v2x(VOID, this);
|
|
2020
2020
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2021
2021
|
return suspendResult;
|
|
2022
2022
|
}
|
|
@@ -2026,14 +2026,14 @@
|
|
|
2026
2026
|
this.i9_1 = 1;
|
|
2027
2027
|
continue $sm;
|
|
2028
2028
|
case 3:
|
|
2029
|
-
var tmp0_safe_receiver = this.
|
|
2029
|
+
var tmp0_safe_receiver = this.s34_1.r2x();
|
|
2030
2030
|
if (tmp0_safe_receiver == null)
|
|
2031
2031
|
null;
|
|
2032
2032
|
else {
|
|
2033
2033
|
throw tmp0_safe_receiver;
|
|
2034
2034
|
}
|
|
2035
2035
|
|
|
2036
|
-
return this.
|
|
2036
|
+
return this.t34_1;
|
|
2037
2037
|
case 4:
|
|
2038
2038
|
throw this.l9_1;
|
|
2039
2039
|
}
|
|
@@ -2050,8 +2050,8 @@
|
|
|
2050
2050
|
};
|
|
2051
2051
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
2052
2052
|
CoroutineImpl.call(this, resultContinuation);
|
|
2053
|
-
this.
|
|
2054
|
-
this.
|
|
2053
|
+
this.c35_1 = _this__u8e3s4;
|
|
2054
|
+
this.d35_1 = count;
|
|
2055
2055
|
}
|
|
2056
2056
|
protoOf($peekCOROUTINE$).q9 = function () {
|
|
2057
2057
|
var suspendResult = this.k9_1;
|
|
@@ -2061,10 +2061,10 @@
|
|
|
2061
2061
|
switch (tmp) {
|
|
2062
2062
|
case 0:
|
|
2063
2063
|
this.j9_1 = 3;
|
|
2064
|
-
if (this.
|
|
2064
|
+
if (this.c35_1.t2x())
|
|
2065
2065
|
return null;
|
|
2066
2066
|
this.i9_1 = 1;
|
|
2067
|
-
suspendResult = this.
|
|
2067
|
+
suspendResult = this.c35_1.u2x(this.d35_1, this);
|
|
2068
2068
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2069
2069
|
return suspendResult;
|
|
2070
2070
|
}
|
|
@@ -2079,7 +2079,7 @@
|
|
|
2079
2079
|
}
|
|
2080
2080
|
|
|
2081
2081
|
case 2:
|
|
2082
|
-
return readByteString(this.
|
|
2082
|
+
return readByteString(this.c35_1.m2x().v1k(), this.d35_1);
|
|
2083
2083
|
case 3:
|
|
2084
2084
|
throw this.l9_1;
|
|
2085
2085
|
}
|
|
@@ -2104,7 +2104,7 @@
|
|
|
2104
2104
|
}
|
|
2105
2105
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2106
2106
|
CoroutineImpl.call(this, resultContinuation);
|
|
2107
|
-
this.
|
|
2107
|
+
this.m35_1 = _this__u8e3s4;
|
|
2108
2108
|
}
|
|
2109
2109
|
protoOf($flushIfNeededCOROUTINE$).q9 = function () {
|
|
2110
2110
|
var suspendResult = this.k9_1;
|
|
@@ -2114,10 +2114,10 @@
|
|
|
2114
2114
|
switch (tmp) {
|
|
2115
2115
|
case 0:
|
|
2116
2116
|
this.j9_1 = 3;
|
|
2117
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2118
|
-
if (this.
|
|
2117
|
+
rethrowCloseCauseIfNeeded_1(this.m35_1);
|
|
2118
|
+
if (this.m35_1.l2x() || get_size(this.m35_1.p2x()) >= 1048576) {
|
|
2119
2119
|
this.i9_1 = 1;
|
|
2120
|
-
suspendResult = this.
|
|
2120
|
+
suspendResult = this.m35_1.k2x(this);
|
|
2121
2121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2122
2122
|
return suspendResult;
|
|
2123
2123
|
}
|
|
@@ -2154,15 +2154,15 @@
|
|
|
2154
2154
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2155
2155
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2156
2156
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2157
|
-
_this__u8e3s4.
|
|
2157
|
+
_this__u8e3s4.p2x().a1l(value, startIndex, endIndex);
|
|
2158
2158
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2159
2159
|
}
|
|
2160
2160
|
function WriterJob(channel, job) {
|
|
2161
|
-
this.
|
|
2162
|
-
this.
|
|
2161
|
+
this.n35_1 = channel;
|
|
2162
|
+
this.o35_1 = job;
|
|
2163
2163
|
}
|
|
2164
|
-
protoOf(WriterJob).
|
|
2165
|
-
return this.
|
|
2164
|
+
protoOf(WriterJob).w1q = function () {
|
|
2165
|
+
return this.o35_1;
|
|
2166
2166
|
};
|
|
2167
2167
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2168
2168
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2171,22 +2171,22 @@
|
|
|
2171
2171
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2172
2172
|
}
|
|
2173
2173
|
function WriterScope(channel, coroutineContext) {
|
|
2174
|
-
this.
|
|
2175
|
-
this.
|
|
2174
|
+
this.p35_1 = channel;
|
|
2175
|
+
this.q35_1 = coroutineContext;
|
|
2176
2176
|
}
|
|
2177
|
-
protoOf(WriterScope).
|
|
2178
|
-
return this.
|
|
2177
|
+
protoOf(WriterScope).m1n = function () {
|
|
2178
|
+
return this.q35_1;
|
|
2179
2179
|
};
|
|
2180
2180
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2181
2181
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2182
|
-
return _this__u8e3s4.
|
|
2182
|
+
return _this__u8e3s4.w1q().o1o(block);
|
|
2183
2183
|
}
|
|
2184
2184
|
function close_0(_this__u8e3s4, cause) {
|
|
2185
2185
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2186
2186
|
if (cause == null) {
|
|
2187
2187
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2188
2188
|
} else {
|
|
2189
|
-
_this__u8e3s4.
|
|
2189
|
+
_this__u8e3s4.x2x(cause);
|
|
2190
2190
|
}
|
|
2191
2191
|
}
|
|
2192
2192
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2200,7 +2200,7 @@
|
|
|
2200
2200
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2201
2201
|
// Inline function 'kotlin.apply' call
|
|
2202
2202
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2203
|
-
this_0.
|
|
2203
|
+
this_0.o1o(writer$lambda(channel));
|
|
2204
2204
|
var job = this_0;
|
|
2205
2205
|
return new WriterJob(channel, job);
|
|
2206
2206
|
}
|
|
@@ -2209,14 +2209,14 @@
|
|
|
2209
2209
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2210
2210
|
}
|
|
2211
2211
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2212
|
-
_this__u8e3s4.
|
|
2212
|
+
_this__u8e3s4.p2x().k1l(value);
|
|
2213
2213
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2214
2214
|
}
|
|
2215
2215
|
function NO_CALLBACK$1() {
|
|
2216
|
-
this.
|
|
2216
|
+
this.b36_1 = EmptyCoroutineContext_getInstance();
|
|
2217
2217
|
}
|
|
2218
2218
|
protoOf(NO_CALLBACK$1).o9 = function () {
|
|
2219
|
-
return this.
|
|
2219
|
+
return this.b36_1;
|
|
2220
2220
|
};
|
|
2221
2221
|
protoOf(NO_CALLBACK$1).p9 = function (result) {
|
|
2222
2222
|
return Unit_instance;
|
|
@@ -2225,36 +2225,36 @@
|
|
|
2225
2225
|
return this.p9(result);
|
|
2226
2226
|
};
|
|
2227
2227
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2228
|
-
this.
|
|
2228
|
+
this.c36_1 = p0;
|
|
2229
2229
|
}
|
|
2230
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2231
|
-
return this.
|
|
2230
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).d36 = function ($completion) {
|
|
2231
|
+
return this.c36_1.w2x($completion);
|
|
2232
2232
|
};
|
|
2233
2233
|
protoOf(ByteWriteChannel$flushAndClose$ref).za = function ($completion) {
|
|
2234
|
-
return this.
|
|
2234
|
+
return this.d36($completion);
|
|
2235
2235
|
};
|
|
2236
2236
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2237
2237
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2238
2238
|
var l = function ($completion) {
|
|
2239
|
-
return i.
|
|
2239
|
+
return i.d36($completion);
|
|
2240
2240
|
};
|
|
2241
2241
|
l.callableName = 'flushAndClose';
|
|
2242
2242
|
l.$arity = 0;
|
|
2243
2243
|
return l;
|
|
2244
2244
|
}
|
|
2245
2245
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2246
|
-
this.
|
|
2247
|
-
this.
|
|
2246
|
+
this.m36_1 = $block;
|
|
2247
|
+
this.n36_1 = $channel;
|
|
2248
2248
|
CoroutineImpl.call(this, resultContinuation);
|
|
2249
2249
|
}
|
|
2250
|
-
protoOf(writer$slambda).
|
|
2251
|
-
var tmp = this.
|
|
2250
|
+
protoOf(writer$slambda).w2c = function ($this$launch, $completion) {
|
|
2251
|
+
var tmp = this.x2c($this$launch, $completion);
|
|
2252
2252
|
tmp.k9_1 = Unit_instance;
|
|
2253
2253
|
tmp.l9_1 = null;
|
|
2254
2254
|
return tmp.q9();
|
|
2255
2255
|
};
|
|
2256
2256
|
protoOf(writer$slambda).ca = function (p1, $completion) {
|
|
2257
|
-
return this.
|
|
2257
|
+
return this.w2c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2258
2258
|
};
|
|
2259
2259
|
protoOf(writer$slambda).q9 = function () {
|
|
2260
2260
|
var suspendResult = this.k9_1;
|
|
@@ -2264,24 +2264,24 @@
|
|
|
2264
2264
|
switch (tmp) {
|
|
2265
2265
|
case 0:
|
|
2266
2266
|
this.j9_1 = 14;
|
|
2267
|
-
this.
|
|
2267
|
+
this.r36_1 = Job(get_job(this.o36_1.m1n()));
|
|
2268
2268
|
this.i9_1 = 1;
|
|
2269
2269
|
continue $sm;
|
|
2270
2270
|
case 1:
|
|
2271
2271
|
this.j9_1 = 4;
|
|
2272
2272
|
this.j9_1 = 3;
|
|
2273
2273
|
this.i9_1 = 2;
|
|
2274
|
-
suspendResult = this.
|
|
2274
|
+
suspendResult = this.m36_1(new WriterScope(this.n36_1, this.o36_1.m1n().kh(this.r36_1)), this);
|
|
2275
2275
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2276
2276
|
return suspendResult;
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
2279
|
continue $sm;
|
|
2280
2280
|
case 2:
|
|
2281
|
-
this.
|
|
2281
|
+
this.r36_1.t1v();
|
|
2282
2282
|
var tmp_0;
|
|
2283
|
-
if (get_job(this.
|
|
2284
|
-
this.
|
|
2283
|
+
if (get_job(this.o36_1.m1n()).i1o()) {
|
|
2284
|
+
this.n36_1.x2x(get_job(this.o36_1.m1n()).l1o());
|
|
2285
2285
|
tmp_0 = Unit_instance;
|
|
2286
2286
|
}
|
|
2287
2287
|
|
|
@@ -2293,8 +2293,8 @@
|
|
|
2293
2293
|
var tmp_1 = this.l9_1;
|
|
2294
2294
|
if (tmp_1 instanceof Error) {
|
|
2295
2295
|
var cause = this.l9_1;
|
|
2296
|
-
cancel(this.
|
|
2297
|
-
this.
|
|
2296
|
+
cancel(this.r36_1, 'Exception thrown while writing to channel', cause);
|
|
2297
|
+
this.n36_1.x2x(cause);
|
|
2298
2298
|
this.j9_1 = 14;
|
|
2299
2299
|
this.i9_1 = 9;
|
|
2300
2300
|
continue $sm;
|
|
@@ -2304,20 +2304,20 @@
|
|
|
2304
2304
|
|
|
2305
2305
|
case 4:
|
|
2306
2306
|
this.j9_1 = 14;
|
|
2307
|
-
this.
|
|
2307
|
+
this.s36_1 = this.l9_1;
|
|
2308
2308
|
this.i9_1 = 5;
|
|
2309
|
-
suspendResult = this.
|
|
2309
|
+
suspendResult = this.r36_1.s1o(this);
|
|
2310
2310
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2311
2311
|
return suspendResult;
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
2314
2314
|
continue $sm;
|
|
2315
2315
|
case 5:
|
|
2316
|
-
this.
|
|
2316
|
+
this.o36_1;
|
|
2317
2317
|
this.j9_1 = 7;
|
|
2318
|
-
this.
|
|
2318
|
+
this.u36_1 = Companion_instance;
|
|
2319
2319
|
this.i9_1 = 6;
|
|
2320
|
-
suspendResult = this.
|
|
2320
|
+
suspendResult = this.n36_1.w2x(this);
|
|
2321
2321
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2322
2322
|
return suspendResult;
|
|
2323
2323
|
}
|
|
@@ -2325,8 +2325,8 @@
|
|
|
2325
2325
|
continue $sm;
|
|
2326
2326
|
case 6:
|
|
2327
2327
|
var tmp_2 = this;
|
|
2328
|
-
this.
|
|
2329
|
-
tmp_2.
|
|
2328
|
+
this.u36_1;
|
|
2329
|
+
tmp_2.t36_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2330
2330
|
this.j9_1 = 14;
|
|
2331
2331
|
this.i9_1 = 8;
|
|
2332
2332
|
continue $sm;
|
|
@@ -2336,7 +2336,7 @@
|
|
|
2336
2336
|
if (tmp_3 instanceof Error) {
|
|
2337
2337
|
var e = this.l9_1;
|
|
2338
2338
|
var tmp_4 = this;
|
|
2339
|
-
tmp_4.
|
|
2339
|
+
tmp_4.t36_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2340
2340
|
this.i9_1 = 8;
|
|
2341
2341
|
continue $sm;
|
|
2342
2342
|
} else {
|
|
@@ -2345,22 +2345,22 @@
|
|
|
2345
2345
|
|
|
2346
2346
|
case 8:
|
|
2347
2347
|
this.j9_1 = 14;
|
|
2348
|
-
throw this.
|
|
2348
|
+
throw this.s36_1;
|
|
2349
2349
|
case 9:
|
|
2350
2350
|
this.j9_1 = 14;
|
|
2351
2351
|
this.i9_1 = 10;
|
|
2352
|
-
suspendResult = this.
|
|
2352
|
+
suspendResult = this.r36_1.s1o(this);
|
|
2353
2353
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2354
2354
|
return suspendResult;
|
|
2355
2355
|
}
|
|
2356
2356
|
|
|
2357
2357
|
continue $sm;
|
|
2358
2358
|
case 10:
|
|
2359
|
-
this.
|
|
2359
|
+
this.o36_1;
|
|
2360
2360
|
this.j9_1 = 12;
|
|
2361
|
-
this.
|
|
2361
|
+
this.q36_1 = Companion_instance;
|
|
2362
2362
|
this.i9_1 = 11;
|
|
2363
|
-
suspendResult = this.
|
|
2363
|
+
suspendResult = this.n36_1.w2x(this);
|
|
2364
2364
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2365
2365
|
return suspendResult;
|
|
2366
2366
|
}
|
|
@@ -2368,8 +2368,8 @@
|
|
|
2368
2368
|
continue $sm;
|
|
2369
2369
|
case 11:
|
|
2370
2370
|
var tmp_5 = this;
|
|
2371
|
-
this.
|
|
2372
|
-
tmp_5.
|
|
2371
|
+
this.q36_1;
|
|
2372
|
+
tmp_5.p36_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2373
2373
|
this.j9_1 = 14;
|
|
2374
2374
|
this.i9_1 = 13;
|
|
2375
2375
|
continue $sm;
|
|
@@ -2379,7 +2379,7 @@
|
|
|
2379
2379
|
if (tmp_6 instanceof Error) {
|
|
2380
2380
|
var e_0 = this.l9_1;
|
|
2381
2381
|
var tmp_7 = this;
|
|
2382
|
-
tmp_7.
|
|
2382
|
+
tmp_7.p36_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2383
2383
|
this.i9_1 = 13;
|
|
2384
2384
|
continue $sm;
|
|
2385
2385
|
} else {
|
|
@@ -2403,15 +2403,15 @@
|
|
|
2403
2403
|
}
|
|
2404
2404
|
while (true);
|
|
2405
2405
|
};
|
|
2406
|
-
protoOf(writer$slambda).
|
|
2407
|
-
var i = new writer$slambda(this.
|
|
2408
|
-
i.
|
|
2406
|
+
protoOf(writer$slambda).x2c = function ($this$launch, completion) {
|
|
2407
|
+
var i = new writer$slambda(this.m36_1, this.n36_1, completion);
|
|
2408
|
+
i.o36_1 = $this$launch;
|
|
2409
2409
|
return i;
|
|
2410
2410
|
};
|
|
2411
2411
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2412
2412
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2413
2413
|
var l = function ($this$launch, $completion) {
|
|
2414
|
-
return i.
|
|
2414
|
+
return i.w2c($this$launch, $completion);
|
|
2415
2415
|
};
|
|
2416
2416
|
l.$arity = 1;
|
|
2417
2417
|
return l;
|
|
@@ -2419,8 +2419,8 @@
|
|
|
2419
2419
|
function writer$lambda($channel) {
|
|
2420
2420
|
return function (it) {
|
|
2421
2421
|
var tmp;
|
|
2422
|
-
if (!(it == null) && !$channel.
|
|
2423
|
-
$channel.
|
|
2422
|
+
if (!(it == null) && !$channel.q2x()) {
|
|
2423
|
+
$channel.x2x(it);
|
|
2424
2424
|
tmp = Unit_instance;
|
|
2425
2425
|
}
|
|
2426
2426
|
return Unit_instance;
|
|
@@ -2428,8 +2428,8 @@
|
|
|
2428
2428
|
}
|
|
2429
2429
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2430
2430
|
CoroutineImpl.call(this, resultContinuation);
|
|
2431
|
-
this.
|
|
2432
|
-
this.
|
|
2431
|
+
this.z35_1 = _this__u8e3s4;
|
|
2432
|
+
this.a36_1 = source;
|
|
2433
2433
|
}
|
|
2434
2434
|
protoOf($writePacketCOROUTINE$).q9 = function () {
|
|
2435
2435
|
var suspendResult = this.k9_1;
|
|
@@ -2442,14 +2442,14 @@
|
|
|
2442
2442
|
this.i9_1 = 1;
|
|
2443
2443
|
continue $sm;
|
|
2444
2444
|
case 1:
|
|
2445
|
-
if (!!this.
|
|
2445
|
+
if (!!this.a36_1.r1j()) {
|
|
2446
2446
|
this.i9_1 = 3;
|
|
2447
2447
|
continue $sm;
|
|
2448
2448
|
}
|
|
2449
2449
|
|
|
2450
|
-
this.
|
|
2450
|
+
this.z35_1.p2x().e1l(this.a36_1, get_remaining(this.a36_1));
|
|
2451
2451
|
this.i9_1 = 2;
|
|
2452
|
-
suspendResult = flushIfNeeded(this.
|
|
2452
|
+
suspendResult = flushIfNeeded(this.z35_1, this);
|
|
2453
2453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2454
2454
|
return suspendResult;
|
|
2455
2455
|
}
|
|
@@ -2494,27 +2494,27 @@
|
|
|
2494
2494
|
return l;
|
|
2495
2495
|
}
|
|
2496
2496
|
function CloseToken(origin) {
|
|
2497
|
-
this.
|
|
2497
|
+
this.n2x_1 = origin;
|
|
2498
2498
|
}
|
|
2499
|
-
protoOf(CloseToken).
|
|
2500
|
-
var tmp0_subject = this.
|
|
2499
|
+
protoOf(CloseToken).v36 = function (wrap) {
|
|
2500
|
+
var tmp0_subject = this.n2x_1;
|
|
2501
2501
|
var tmp;
|
|
2502
2502
|
if (tmp0_subject == null) {
|
|
2503
2503
|
tmp = null;
|
|
2504
2504
|
} else {
|
|
2505
2505
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2506
|
-
tmp = this.
|
|
2506
|
+
tmp = this.n2x_1.d1w();
|
|
2507
2507
|
} else {
|
|
2508
2508
|
if (tmp0_subject instanceof CancellationException) {
|
|
2509
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2509
|
+
tmp = CancellationException_init_$Create$(this.n2x_1.message, this.n2x_1);
|
|
2510
2510
|
} else {
|
|
2511
|
-
tmp = wrap(this.
|
|
2511
|
+
tmp = wrap(this.n2x_1);
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
2515
|
return tmp;
|
|
2516
2516
|
};
|
|
2517
|
-
protoOf(CloseToken).
|
|
2517
|
+
protoOf(CloseToken).s2x = function (wrap, $super) {
|
|
2518
2518
|
var tmp;
|
|
2519
2519
|
if (wrap === VOID) {
|
|
2520
2520
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2522,10 +2522,10 @@
|
|
|
2522
2522
|
tmp = wrap;
|
|
2523
2523
|
}
|
|
2524
2524
|
wrap = tmp;
|
|
2525
|
-
return $super === VOID ? this.
|
|
2525
|
+
return $super === VOID ? this.v36(wrap) : $super.v36.call(this, wrap);
|
|
2526
2526
|
};
|
|
2527
|
-
protoOf(CloseToken).
|
|
2528
|
-
var tmp0_safe_receiver = this.
|
|
2527
|
+
protoOf(CloseToken).o2x = function (wrap) {
|
|
2528
|
+
var tmp0_safe_receiver = this.v36(wrap);
|
|
2529
2529
|
var tmp;
|
|
2530
2530
|
if (tmp0_safe_receiver == null) {
|
|
2531
2531
|
tmp = null;
|
|
@@ -2544,17 +2544,17 @@
|
|
|
2544
2544
|
}
|
|
2545
2545
|
function transferFromDelegate($this) {
|
|
2546
2546
|
updateConsumed($this);
|
|
2547
|
-
var appended = $this.
|
|
2548
|
-
$this.
|
|
2547
|
+
var appended = $this.x36_1.j1l($this.w36_1.m2x());
|
|
2548
|
+
$this.y36_1 = add($this.y36_1, appended);
|
|
2549
2549
|
}
|
|
2550
2550
|
function updateConsumed($this) {
|
|
2551
|
-
$this.
|
|
2552
|
-
$this.
|
|
2551
|
+
$this.z36_1 = add($this.z36_1, subtract($this.y36_1, $this.x36_1.g1()));
|
|
2552
|
+
$this.y36_1 = $this.x36_1.g1();
|
|
2553
2553
|
}
|
|
2554
2554
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2555
2555
|
CoroutineImpl.call(this, resultContinuation);
|
|
2556
|
-
this.
|
|
2557
|
-
this.
|
|
2556
|
+
this.i37_1 = _this__u8e3s4;
|
|
2557
|
+
this.j37_1 = min;
|
|
2558
2558
|
}
|
|
2559
2559
|
protoOf($awaitContentCOROUTINE$_0).q9 = function () {
|
|
2560
2560
|
var suspendResult = this.k9_1;
|
|
@@ -2564,12 +2564,12 @@
|
|
|
2564
2564
|
switch (tmp) {
|
|
2565
2565
|
case 0:
|
|
2566
2566
|
this.j9_1 = 3;
|
|
2567
|
-
if (compare(this.
|
|
2567
|
+
if (compare(this.i37_1.m2x().g1(), fromInt(this.j37_1)) >= 0) {
|
|
2568
2568
|
return true;
|
|
2569
2569
|
}
|
|
2570
2570
|
|
|
2571
2571
|
this.i9_1 = 1;
|
|
2572
|
-
suspendResult = this.
|
|
2572
|
+
suspendResult = this.i37_1.w36_1.u2x(this.j37_1, this);
|
|
2573
2573
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2574
2574
|
return suspendResult;
|
|
2575
2575
|
}
|
|
@@ -2577,7 +2577,7 @@
|
|
|
2577
2577
|
continue $sm;
|
|
2578
2578
|
case 1:
|
|
2579
2579
|
if (suspendResult) {
|
|
2580
|
-
transferFromDelegate(this.
|
|
2580
|
+
transferFromDelegate(this.i37_1);
|
|
2581
2581
|
return true;
|
|
2582
2582
|
} else {
|
|
2583
2583
|
this.i9_1 = 2;
|
|
@@ -2601,34 +2601,34 @@
|
|
|
2601
2601
|
while (true);
|
|
2602
2602
|
};
|
|
2603
2603
|
function CountedByteReadChannel(delegate) {
|
|
2604
|
-
this.
|
|
2605
|
-
this.
|
|
2606
|
-
this.
|
|
2607
|
-
this.
|
|
2604
|
+
this.w36_1 = delegate;
|
|
2605
|
+
this.x36_1 = new Buffer();
|
|
2606
|
+
this.y36_1 = new Long(0, 0);
|
|
2607
|
+
this.z36_1 = new Long(0, 0);
|
|
2608
2608
|
}
|
|
2609
|
-
protoOf(CountedByteReadChannel).
|
|
2609
|
+
protoOf(CountedByteReadChannel).k37 = function () {
|
|
2610
2610
|
updateConsumed(this);
|
|
2611
|
-
return this.
|
|
2611
|
+
return this.z36_1;
|
|
2612
2612
|
};
|
|
2613
|
-
protoOf(CountedByteReadChannel).
|
|
2614
|
-
return this.
|
|
2613
|
+
protoOf(CountedByteReadChannel).r2x = function () {
|
|
2614
|
+
return this.w36_1.r2x();
|
|
2615
2615
|
};
|
|
2616
|
-
protoOf(CountedByteReadChannel).
|
|
2617
|
-
return this.
|
|
2616
|
+
protoOf(CountedByteReadChannel).t2x = function () {
|
|
2617
|
+
return this.x36_1.r1j() && this.w36_1.t2x();
|
|
2618
2618
|
};
|
|
2619
|
-
protoOf(CountedByteReadChannel).
|
|
2619
|
+
protoOf(CountedByteReadChannel).m2x = function () {
|
|
2620
2620
|
transferFromDelegate(this);
|
|
2621
|
-
return this.
|
|
2621
|
+
return this.x36_1;
|
|
2622
2622
|
};
|
|
2623
|
-
protoOf(CountedByteReadChannel).
|
|
2623
|
+
protoOf(CountedByteReadChannel).u2x = function (min, $completion) {
|
|
2624
2624
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2625
2625
|
tmp.k9_1 = Unit_instance;
|
|
2626
2626
|
tmp.l9_1 = null;
|
|
2627
2627
|
return tmp.q9();
|
|
2628
2628
|
};
|
|
2629
|
-
protoOf(CountedByteReadChannel).
|
|
2630
|
-
this.
|
|
2631
|
-
this.
|
|
2629
|
+
protoOf(CountedByteReadChannel).x2x = function (cause) {
|
|
2630
|
+
this.w36_1.x2x(cause);
|
|
2631
|
+
this.x36_1.r4();
|
|
2632
2632
|
};
|
|
2633
2633
|
function counted(_this__u8e3s4) {
|
|
2634
2634
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2665,21 +2665,21 @@
|
|
|
2665
2665
|
}
|
|
2666
2666
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2667
2667
|
var tmp;
|
|
2668
|
-
if ($this === Companion_getInstance_1().
|
|
2668
|
+
if ($this === Companion_getInstance_1().b33_1) {
|
|
2669
2669
|
tmp = 'CR';
|
|
2670
|
-
} else if ($this === Companion_getInstance_1().
|
|
2670
|
+
} else if ($this === Companion_getInstance_1().c33_1) {
|
|
2671
2671
|
tmp = 'LF';
|
|
2672
|
-
} else if ($this === Companion_getInstance_1().
|
|
2672
|
+
} else if ($this === Companion_getInstance_1().d33_1) {
|
|
2673
2673
|
tmp = 'CRLF';
|
|
2674
2674
|
} else {
|
|
2675
2675
|
// Inline function 'kotlin.collections.filter' call
|
|
2676
|
-
var tmp0 = Companion_getInstance_1().
|
|
2676
|
+
var tmp0 = Companion_getInstance_1().f33_1;
|
|
2677
2677
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2678
2678
|
var destination = ArrayList_init_$Create$();
|
|
2679
2679
|
var _iterator__ex2g4s = tmp0.t();
|
|
2680
2680
|
while (_iterator__ex2g4s.u()) {
|
|
2681
2681
|
var element = _iterator__ex2g4s.v();
|
|
2682
|
-
var it = element.
|
|
2682
|
+
var it = element.l37_1;
|
|
2683
2683
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2684
2684
|
destination.e1(element);
|
|
2685
2685
|
}
|
|
@@ -2690,11 +2690,11 @@
|
|
|
2690
2690
|
}
|
|
2691
2691
|
function Companion_1() {
|
|
2692
2692
|
Companion_instance_2 = this;
|
|
2693
|
-
this.
|
|
2694
|
-
this.
|
|
2695
|
-
this.
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2693
|
+
this.b33_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2694
|
+
this.c33_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2695
|
+
this.d33_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2696
|
+
this.e33_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2697
|
+
this.f33_1 = listOf([new LineEndingMode(this.b33_1), new LineEndingMode(this.c33_1), new LineEndingMode(this.d33_1)]);
|
|
2698
2698
|
}
|
|
2699
2699
|
var Companion_instance_2;
|
|
2700
2700
|
function Companion_getInstance_1() {
|
|
@@ -2708,67 +2708,67 @@
|
|
|
2708
2708
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2709
2709
|
if (!(other instanceof LineEndingMode))
|
|
2710
2710
|
return false;
|
|
2711
|
-
if (!($this === other.
|
|
2711
|
+
if (!($this === other.l37_1))
|
|
2712
2712
|
return false;
|
|
2713
2713
|
return true;
|
|
2714
2714
|
}
|
|
2715
2715
|
function LineEndingMode(mode) {
|
|
2716
2716
|
Companion_getInstance_1();
|
|
2717
|
-
this.
|
|
2717
|
+
this.l37_1 = mode;
|
|
2718
2718
|
}
|
|
2719
2719
|
protoOf(LineEndingMode).toString = function () {
|
|
2720
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2720
|
+
return LineEndingMode__toString_impl_j4h76r(this.l37_1);
|
|
2721
2721
|
};
|
|
2722
2722
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2723
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2723
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.l37_1);
|
|
2724
2724
|
};
|
|
2725
2725
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2726
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2726
|
+
return LineEndingMode__equals_impl_qyr4nk(this.l37_1, other);
|
|
2727
2727
|
};
|
|
2728
2728
|
function SourceByteReadChannel(source) {
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2729
|
+
this.m37_1 = source;
|
|
2730
|
+
this.n37_1 = null;
|
|
2731
2731
|
}
|
|
2732
|
-
protoOf(SourceByteReadChannel).
|
|
2733
|
-
var tmp0_safe_receiver = this.
|
|
2734
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2732
|
+
protoOf(SourceByteReadChannel).r2x = function () {
|
|
2733
|
+
var tmp0_safe_receiver = this.n37_1;
|
|
2734
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s2x();
|
|
2735
2735
|
};
|
|
2736
|
-
protoOf(SourceByteReadChannel).
|
|
2737
|
-
return this.
|
|
2736
|
+
protoOf(SourceByteReadChannel).t2x = function () {
|
|
2737
|
+
return this.m37_1.r1j();
|
|
2738
2738
|
};
|
|
2739
|
-
protoOf(SourceByteReadChannel).
|
|
2740
|
-
var tmp0_safe_receiver = this.
|
|
2739
|
+
protoOf(SourceByteReadChannel).m2x = function () {
|
|
2740
|
+
var tmp0_safe_receiver = this.r2x();
|
|
2741
2741
|
if (tmp0_safe_receiver == null)
|
|
2742
2742
|
null;
|
|
2743
2743
|
else {
|
|
2744
2744
|
// Inline function 'kotlin.let' call
|
|
2745
2745
|
throw tmp0_safe_receiver;
|
|
2746
2746
|
}
|
|
2747
|
-
return this.
|
|
2747
|
+
return this.m37_1.q1j();
|
|
2748
2748
|
};
|
|
2749
|
-
protoOf(SourceByteReadChannel).
|
|
2750
|
-
var tmp0_safe_receiver = this.
|
|
2749
|
+
protoOf(SourceByteReadChannel).u2x = function (min, $completion) {
|
|
2750
|
+
var tmp0_safe_receiver = this.r2x();
|
|
2751
2751
|
if (tmp0_safe_receiver == null)
|
|
2752
2752
|
null;
|
|
2753
2753
|
else {
|
|
2754
2754
|
// Inline function 'kotlin.let' call
|
|
2755
2755
|
throw tmp0_safe_receiver;
|
|
2756
2756
|
}
|
|
2757
|
-
return this.
|
|
2757
|
+
return this.m37_1.t1j(fromInt(min));
|
|
2758
2758
|
};
|
|
2759
|
-
protoOf(SourceByteReadChannel).
|
|
2760
|
-
if (!(this.
|
|
2759
|
+
protoOf(SourceByteReadChannel).x2x = function (cause) {
|
|
2760
|
+
if (!(this.n37_1 == null))
|
|
2761
2761
|
return Unit_instance;
|
|
2762
|
-
this.
|
|
2762
|
+
this.m37_1.r4();
|
|
2763
2763
|
var tmp = this;
|
|
2764
2764
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2765
|
-
tmp.
|
|
2765
|
+
tmp.n37_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2766
2766
|
};
|
|
2767
2767
|
function decode(_this__u8e3s4, input, max) {
|
|
2768
2768
|
max = max === VOID ? 2147483647 : max;
|
|
2769
2769
|
var tmp0 = fromInt(max);
|
|
2770
2770
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2771
|
-
var b = input.
|
|
2771
|
+
var b = input.q1j().g1();
|
|
2772
2772
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2773
2773
|
// Inline function 'kotlin.text.buildString' call
|
|
2774
2774
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2805,7 +2805,7 @@
|
|
|
2805
2805
|
}
|
|
2806
2806
|
}
|
|
2807
2807
|
function canRead(_this__u8e3s4) {
|
|
2808
|
-
return !_this__u8e3s4.
|
|
2808
|
+
return !_this__u8e3s4.r1j();
|
|
2809
2809
|
}
|
|
2810
2810
|
function readBytes(_this__u8e3s4, count) {
|
|
2811
2811
|
count = count === VOID ? convertToInt(_this__u8e3s4.g1()) : count;
|
|
@@ -2814,32 +2814,32 @@
|
|
|
2814
2814
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2815
2815
|
offset = offset === VOID ? 0 : offset;
|
|
2816
2816
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2817
|
-
_this__u8e3s4.
|
|
2817
|
+
_this__u8e3s4.a1l(buffer, offset, offset + length | 0);
|
|
2818
2818
|
}
|
|
2819
2819
|
function BytePacketBuilder() {
|
|
2820
2820
|
return new Buffer();
|
|
2821
2821
|
}
|
|
2822
2822
|
function get_size(_this__u8e3s4) {
|
|
2823
|
-
return convertToInt(_this__u8e3s4.
|
|
2823
|
+
return convertToInt(_this__u8e3s4.q1j().g1());
|
|
2824
2824
|
}
|
|
2825
2825
|
var ByteReadPacketEmpty;
|
|
2826
2826
|
function get_remaining(_this__u8e3s4) {
|
|
2827
2827
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2828
|
-
return _this__u8e3s4.
|
|
2828
|
+
return _this__u8e3s4.q1j().g1();
|
|
2829
2829
|
}
|
|
2830
2830
|
function discard_0(_this__u8e3s4, count) {
|
|
2831
2831
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2832
2832
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2833
|
-
_this__u8e3s4.
|
|
2833
|
+
_this__u8e3s4.t1j(count);
|
|
2834
2834
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2835
2835
|
var b = get_remaining(_this__u8e3s4);
|
|
2836
2836
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
2837
|
-
_this__u8e3s4.
|
|
2837
|
+
_this__u8e3s4.q1j().o1k(countToDiscard);
|
|
2838
2838
|
return countToDiscard;
|
|
2839
2839
|
}
|
|
2840
2840
|
function takeWhile(_this__u8e3s4, block) {
|
|
2841
2841
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2842
|
-
while (!_this__u8e3s4.
|
|
2842
|
+
while (!_this__u8e3s4.r1j() && block(_this__u8e3s4.q1j())) {
|
|
2843
2843
|
}
|
|
2844
2844
|
}
|
|
2845
2845
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2852,37 +2852,37 @@
|
|
|
2852
2852
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2853
2853
|
offset = offset === VOID ? 0 : offset;
|
|
2854
2854
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2855
|
-
var result = _this__u8e3s4.
|
|
2855
|
+
var result = _this__u8e3s4.p1k(buffer, offset, offset + length | 0);
|
|
2856
2856
|
return result === -1 ? 0 : result;
|
|
2857
2857
|
}
|
|
2858
2858
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2859
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2859
|
+
charset = charset === VOID ? Charsets_getInstance().o37_1 : charset;
|
|
2860
2860
|
max = max === VOID ? 2147483647 : max;
|
|
2861
|
-
if (charset.equals(Charsets_getInstance().
|
|
2861
|
+
if (charset.equals(Charsets_getInstance().o37_1)) {
|
|
2862
2862
|
if (max === 2147483647)
|
|
2863
2863
|
return readString_0(_this__u8e3s4);
|
|
2864
|
-
var tmp0 = _this__u8e3s4.
|
|
2864
|
+
var tmp0 = _this__u8e3s4.q1j().g1();
|
|
2865
2865
|
// Inline function 'kotlin.math.min' call
|
|
2866
2866
|
var b = fromInt(max);
|
|
2867
2867
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2868
2868
|
return readString_1(_this__u8e3s4, count);
|
|
2869
2869
|
}
|
|
2870
|
-
return decode(charset.
|
|
2870
|
+
return decode(charset.r37(), _this__u8e3s4, max);
|
|
2871
2871
|
}
|
|
2872
2872
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2873
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2874
|
-
if (charset.equals(Charsets_getInstance().
|
|
2873
|
+
charset = charset === VOID ? Charsets_getInstance().o37_1 : charset;
|
|
2874
|
+
if (charset.equals(Charsets_getInstance().o37_1))
|
|
2875
2875
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2876
|
-
return encodeToByteArray_0(charset.
|
|
2876
|
+
return encodeToByteArray_0(charset.s37(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2877
2877
|
}
|
|
2878
2878
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2879
2879
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2880
2880
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2881
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2882
|
-
if (charset === Charsets_getInstance().
|
|
2881
|
+
charset = charset === VOID ? Charsets_getInstance().o37_1 : charset;
|
|
2882
|
+
if (charset === Charsets_getInstance().o37_1) {
|
|
2883
2883
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2884
2884
|
}
|
|
2885
|
-
encodeToImpl(charset.
|
|
2885
|
+
encodeToImpl(charset.s37(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2886
2886
|
}
|
|
2887
2887
|
function get_ByteArrayPool() {
|
|
2888
2888
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2892,7 +2892,7 @@
|
|
|
2892
2892
|
function ByteArrayPool$1() {
|
|
2893
2893
|
DefaultPool.call(this, 128);
|
|
2894
2894
|
}
|
|
2895
|
-
protoOf(ByteArrayPool$1).
|
|
2895
|
+
protoOf(ByteArrayPool$1).w37 = function () {
|
|
2896
2896
|
return new Int8Array(4096);
|
|
2897
2897
|
};
|
|
2898
2898
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2906,21 +2906,21 @@
|
|
|
2906
2906
|
}
|
|
2907
2907
|
function NoPoolImpl() {
|
|
2908
2908
|
}
|
|
2909
|
-
protoOf(NoPoolImpl).
|
|
2909
|
+
protoOf(NoPoolImpl).e38 = function (instance) {
|
|
2910
2910
|
return Unit_instance;
|
|
2911
2911
|
};
|
|
2912
|
-
protoOf(NoPoolImpl).
|
|
2912
|
+
protoOf(NoPoolImpl).i1q = function () {
|
|
2913
2913
|
return Unit_instance;
|
|
2914
2914
|
};
|
|
2915
2915
|
function Companion_2() {
|
|
2916
2916
|
}
|
|
2917
|
-
protoOf(Companion_2).
|
|
2917
|
+
protoOf(Companion_2).f38 = function (name) {
|
|
2918
2918
|
switch (name) {
|
|
2919
2919
|
case 'UTF-8':
|
|
2920
2920
|
case 'utf-8':
|
|
2921
2921
|
case 'UTF8':
|
|
2922
2922
|
case 'utf8':
|
|
2923
|
-
return Charsets_getInstance().
|
|
2923
|
+
return Charsets_getInstance().o37_1;
|
|
2924
2924
|
}
|
|
2925
2925
|
var tmp;
|
|
2926
2926
|
var tmp_0;
|
|
@@ -2951,11 +2951,11 @@
|
|
|
2951
2951
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2952
2952
|
}
|
|
2953
2953
|
if (tmp) {
|
|
2954
|
-
return Charsets_getInstance().
|
|
2954
|
+
return Charsets_getInstance().p37_1;
|
|
2955
2955
|
}
|
|
2956
2956
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2957
2957
|
};
|
|
2958
|
-
protoOf(Companion_2).
|
|
2958
|
+
protoOf(Companion_2).g38 = function (charset) {
|
|
2959
2959
|
var tmp;
|
|
2960
2960
|
switch (charset) {
|
|
2961
2961
|
case 'UTF-8':
|
|
@@ -3010,7 +3010,7 @@
|
|
|
3010
3010
|
return Companion_instance_3;
|
|
3011
3011
|
}
|
|
3012
3012
|
function Charset(_name) {
|
|
3013
|
-
this.
|
|
3013
|
+
this.q37_1 = _name;
|
|
3014
3014
|
}
|
|
3015
3015
|
protoOf(Charset).equals = function (other) {
|
|
3016
3016
|
if (this === other)
|
|
@@ -3019,18 +3019,18 @@
|
|
|
3019
3019
|
return false;
|
|
3020
3020
|
if (!(other instanceof Charset))
|
|
3021
3021
|
THROW_CCE();
|
|
3022
|
-
return this.
|
|
3022
|
+
return this.q37_1 === other.q37_1;
|
|
3023
3023
|
};
|
|
3024
3024
|
protoOf(Charset).hashCode = function () {
|
|
3025
|
-
return getStringHashCode(this.
|
|
3025
|
+
return getStringHashCode(this.q37_1);
|
|
3026
3026
|
};
|
|
3027
3027
|
protoOf(Charset).toString = function () {
|
|
3028
|
-
return this.
|
|
3028
|
+
return this.q37_1;
|
|
3029
3029
|
};
|
|
3030
3030
|
function Charsets() {
|
|
3031
3031
|
Charsets_instance = this;
|
|
3032
|
-
this.
|
|
3033
|
-
this.
|
|
3032
|
+
this.o37_1 = new CharsetImpl('UTF-8');
|
|
3033
|
+
this.p37_1 = new CharsetImpl('ISO-8859-1');
|
|
3034
3034
|
}
|
|
3035
3035
|
var Charsets_instance;
|
|
3036
3036
|
function Charsets_getInstance() {
|
|
@@ -3039,27 +3039,27 @@
|
|
|
3039
3039
|
return Charsets_instance;
|
|
3040
3040
|
}
|
|
3041
3041
|
function CharsetDecoder(_charset) {
|
|
3042
|
-
this.
|
|
3042
|
+
this.h38_1 = _charset;
|
|
3043
3043
|
}
|
|
3044
3044
|
function MalformedInputException(message) {
|
|
3045
3045
|
IOException_init_$Init$_0(message, this);
|
|
3046
3046
|
captureStack(this, MalformedInputException);
|
|
3047
3047
|
}
|
|
3048
3048
|
function get_name(_this__u8e3s4) {
|
|
3049
|
-
return _this__u8e3s4.
|
|
3049
|
+
return _this__u8e3s4.q37_1;
|
|
3050
3050
|
}
|
|
3051
3051
|
function isSupported(_this__u8e3s4, name) {
|
|
3052
|
-
return Companion_instance_3.
|
|
3052
|
+
return Companion_instance_3.g38(name);
|
|
3053
3053
|
}
|
|
3054
3054
|
function forName(_this__u8e3s4, name) {
|
|
3055
|
-
return Companion_instance_3.
|
|
3055
|
+
return Companion_instance_3.f38(name);
|
|
3056
3056
|
}
|
|
3057
3057
|
function CharsetEncoder(_charset) {
|
|
3058
|
-
this.
|
|
3058
|
+
this.i38_1 = _charset;
|
|
3059
3059
|
}
|
|
3060
3060
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3061
3061
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3062
|
-
var tmp0 = input.
|
|
3062
|
+
var tmp0 = input.q1j().g1();
|
|
3063
3063
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3064
3064
|
var b = fromInt(max);
|
|
3065
3065
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3067,7 +3067,7 @@
|
|
|
3067
3067
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
3068
3068
|
var tmp_0;
|
|
3069
3069
|
try {
|
|
3070
|
-
tmp_0 = decoder.
|
|
3070
|
+
tmp_0 = decoder.j38(array);
|
|
3071
3071
|
} catch ($p) {
|
|
3072
3072
|
var tmp_1;
|
|
3073
3073
|
if ($p instanceof Error) {
|
|
@@ -3089,11 +3089,11 @@
|
|
|
3089
3089
|
var message = 'Failed requirement.';
|
|
3090
3090
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3091
3091
|
}
|
|
3092
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3092
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().p37_1)) {
|
|
3093
3093
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3094
3094
|
}
|
|
3095
3095
|
// Inline function 'kotlin.require' call
|
|
3096
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3096
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().o37_1)) {
|
|
3097
3097
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3098
3098
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3099
3099
|
}
|
|
@@ -3103,7 +3103,7 @@
|
|
|
3103
3103
|
var result = encoder.encode(tmp$ret$5);
|
|
3104
3104
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3105
3105
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3106
|
-
dst.
|
|
3106
|
+
dst.d1l(result);
|
|
3107
3107
|
return result.length;
|
|
3108
3108
|
}
|
|
3109
3109
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3114,17 +3114,17 @@
|
|
|
3114
3114
|
function CharsetImpl(name) {
|
|
3115
3115
|
Charset.call(this, name);
|
|
3116
3116
|
}
|
|
3117
|
-
protoOf(CharsetImpl).
|
|
3117
|
+
protoOf(CharsetImpl).s37 = function () {
|
|
3118
3118
|
return new CharsetEncoderImpl(this);
|
|
3119
3119
|
};
|
|
3120
|
-
protoOf(CharsetImpl).
|
|
3120
|
+
protoOf(CharsetImpl).r37 = function () {
|
|
3121
3121
|
return new CharsetDecoderImpl(this);
|
|
3122
3122
|
};
|
|
3123
3123
|
function get_charset(_this__u8e3s4) {
|
|
3124
|
-
return _this__u8e3s4.
|
|
3124
|
+
return _this__u8e3s4.h38_1;
|
|
3125
3125
|
}
|
|
3126
3126
|
function get_charset_0(_this__u8e3s4) {
|
|
3127
|
-
return _this__u8e3s4.
|
|
3127
|
+
return _this__u8e3s4.i38_1;
|
|
3128
3128
|
}
|
|
3129
3129
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3130
3130
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3143,39 +3143,39 @@
|
|
|
3143
3143
|
}
|
|
3144
3144
|
function CharsetEncoderImpl(charset) {
|
|
3145
3145
|
CharsetEncoder.call(this, charset);
|
|
3146
|
-
this.
|
|
3146
|
+
this.m38_1 = charset;
|
|
3147
3147
|
}
|
|
3148
3148
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3149
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3149
|
+
return 'CharsetEncoderImpl(charset=' + this.m38_1.toString() + ')';
|
|
3150
3150
|
};
|
|
3151
3151
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3152
|
-
return this.
|
|
3152
|
+
return this.m38_1.hashCode();
|
|
3153
3153
|
};
|
|
3154
3154
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3155
3155
|
if (this === other)
|
|
3156
3156
|
return true;
|
|
3157
3157
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3158
3158
|
return false;
|
|
3159
|
-
if (!this.
|
|
3159
|
+
if (!this.m38_1.equals(other.m38_1))
|
|
3160
3160
|
return false;
|
|
3161
3161
|
return true;
|
|
3162
3162
|
};
|
|
3163
3163
|
function CharsetDecoderImpl(charset) {
|
|
3164
3164
|
CharsetDecoder.call(this, charset);
|
|
3165
|
-
this.
|
|
3165
|
+
this.o38_1 = charset;
|
|
3166
3166
|
}
|
|
3167
3167
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3168
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3168
|
+
return 'CharsetDecoderImpl(charset=' + this.o38_1.toString() + ')';
|
|
3169
3169
|
};
|
|
3170
3170
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3171
|
-
return this.
|
|
3171
|
+
return this.o38_1.hashCode();
|
|
3172
3172
|
};
|
|
3173
3173
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3174
3174
|
if (this === other)
|
|
3175
3175
|
return true;
|
|
3176
3176
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3177
3177
|
return false;
|
|
3178
|
-
if (!this.
|
|
3178
|
+
if (!this.o38_1.equals(other.o38_1))
|
|
3179
3179
|
return false;
|
|
3180
3180
|
return true;
|
|
3181
3181
|
};
|
|
@@ -3209,10 +3209,10 @@
|
|
|
3209
3209
|
return this_0;
|
|
3210
3210
|
}
|
|
3211
3211
|
function toKtor$1($this_toKtor) {
|
|
3212
|
-
this.
|
|
3212
|
+
this.p38_1 = $this_toKtor;
|
|
3213
3213
|
}
|
|
3214
|
-
protoOf(toKtor$1).
|
|
3215
|
-
return this.
|
|
3214
|
+
protoOf(toKtor$1).j38 = function (buffer) {
|
|
3215
|
+
return this.p38_1.decode(buffer);
|
|
3216
3216
|
};
|
|
3217
3217
|
function get_ENCODING_ALIASES() {
|
|
3218
3218
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3225,7 +3225,7 @@
|
|
|
3225
3225
|
}
|
|
3226
3226
|
var REPLACEMENT;
|
|
3227
3227
|
function TextDecoderFallback(encoding, fatal) {
|
|
3228
|
-
this.
|
|
3228
|
+
this.q38_1 = fatal;
|
|
3229
3229
|
// Inline function 'kotlin.text.trim' call
|
|
3230
3230
|
// Inline function 'kotlin.text.lowercase' call
|
|
3231
3231
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3236,7 +3236,7 @@
|
|
|
3236
3236
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3237
3237
|
}
|
|
3238
3238
|
}
|
|
3239
|
-
protoOf(TextDecoderFallback).
|
|
3239
|
+
protoOf(TextDecoderFallback).j38 = function (buffer) {
|
|
3240
3240
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3241
3241
|
var builder = new Buffer();
|
|
3242
3242
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3252,7 +3252,7 @@
|
|
|
3252
3252
|
var point = toCodePoint(byte);
|
|
3253
3253
|
if (point < 0) {
|
|
3254
3254
|
// Inline function 'kotlin.check' call
|
|
3255
|
-
if (!!this.
|
|
3255
|
+
if (!!this.q38_1) {
|
|
3256
3256
|
var message = 'Invalid character: ' + point;
|
|
3257
3257
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3258
3258
|
}
|
|
@@ -3260,9 +3260,9 @@
|
|
|
3260
3260
|
continue $l$loop;
|
|
3261
3261
|
}
|
|
3262
3262
|
if (point > 255) {
|
|
3263
|
-
builder.
|
|
3263
|
+
builder.k1l(toByte(point >> 8));
|
|
3264
3264
|
}
|
|
3265
|
-
builder.
|
|
3265
|
+
builder.k1l(toByte(point & 255));
|
|
3266
3266
|
}
|
|
3267
3267
|
while (inductionVariable < last);
|
|
3268
3268
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3292,7 +3292,7 @@
|
|
|
3292
3292
|
return false;
|
|
3293
3293
|
}
|
|
3294
3294
|
function ioDispatcher() {
|
|
3295
|
-
return Dispatchers_getInstance().
|
|
3295
|
+
return Dispatchers_getInstance().k1z_1;
|
|
3296
3296
|
}
|
|
3297
3297
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3298
3298
|
if (fromIndex >= toIndex)
|
|
@@ -3308,7 +3308,7 @@
|
|
|
3308
3308
|
if (character > 255) {
|
|
3309
3309
|
failedToMapError(character);
|
|
3310
3310
|
}
|
|
3311
|
-
dst.
|
|
3311
|
+
dst.k1l(toByte(character));
|
|
3312
3312
|
}
|
|
3313
3313
|
while (inductionVariable < toIndex);
|
|
3314
3314
|
return toIndex - fromIndex | 0;
|
|
@@ -3330,64 +3330,64 @@
|
|
|
3330
3330
|
}
|
|
3331
3331
|
}
|
|
3332
3332
|
function DefaultPool(capacity) {
|
|
3333
|
-
this.
|
|
3333
|
+
this.x37_1 = capacity;
|
|
3334
3334
|
var tmp = this;
|
|
3335
3335
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3336
|
-
var size = this.
|
|
3337
|
-
tmp.
|
|
3338
|
-
this.
|
|
3336
|
+
var size = this.x37_1;
|
|
3337
|
+
tmp.y37_1 = Array(size);
|
|
3338
|
+
this.z37_1 = 0;
|
|
3339
3339
|
}
|
|
3340
|
-
protoOf(DefaultPool).
|
|
3340
|
+
protoOf(DefaultPool).a38 = function (instance) {
|
|
3341
3341
|
};
|
|
3342
|
-
protoOf(DefaultPool).
|
|
3342
|
+
protoOf(DefaultPool).b38 = function (instance) {
|
|
3343
3343
|
return instance;
|
|
3344
3344
|
};
|
|
3345
|
-
protoOf(DefaultPool).
|
|
3345
|
+
protoOf(DefaultPool).c38 = function (instance) {
|
|
3346
3346
|
};
|
|
3347
|
-
protoOf(DefaultPool).
|
|
3348
|
-
if (this.
|
|
3349
|
-
return this.
|
|
3350
|
-
this.
|
|
3351
|
-
var idx = this.
|
|
3352
|
-
var tmp = this.
|
|
3347
|
+
protoOf(DefaultPool).d38 = function () {
|
|
3348
|
+
if (this.z37_1 === 0)
|
|
3349
|
+
return this.w37();
|
|
3350
|
+
this.z37_1 = this.z37_1 - 1 | 0;
|
|
3351
|
+
var idx = this.z37_1;
|
|
3352
|
+
var tmp = this.y37_1[idx];
|
|
3353
3353
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3354
|
-
this.
|
|
3355
|
-
return this.
|
|
3354
|
+
this.y37_1[idx] = null;
|
|
3355
|
+
return this.b38(instance);
|
|
3356
3356
|
};
|
|
3357
|
-
protoOf(DefaultPool).
|
|
3358
|
-
this.
|
|
3359
|
-
if (this.
|
|
3360
|
-
this.
|
|
3357
|
+
protoOf(DefaultPool).e38 = function (instance) {
|
|
3358
|
+
this.c38(instance);
|
|
3359
|
+
if (this.z37_1 === this.x37_1) {
|
|
3360
|
+
this.a38(instance);
|
|
3361
3361
|
} else {
|
|
3362
|
-
var _unary__edvuaz = this.
|
|
3363
|
-
this.
|
|
3364
|
-
this.
|
|
3362
|
+
var _unary__edvuaz = this.z37_1;
|
|
3363
|
+
this.z37_1 = _unary__edvuaz + 1 | 0;
|
|
3364
|
+
this.y37_1[_unary__edvuaz] = instance;
|
|
3365
3365
|
}
|
|
3366
3366
|
};
|
|
3367
|
-
protoOf(DefaultPool).
|
|
3367
|
+
protoOf(DefaultPool).i1q = function () {
|
|
3368
3368
|
var inductionVariable = 0;
|
|
3369
|
-
var last = this.
|
|
3369
|
+
var last = this.z37_1;
|
|
3370
3370
|
if (inductionVariable < last)
|
|
3371
3371
|
do {
|
|
3372
3372
|
var i = inductionVariable;
|
|
3373
3373
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3374
|
-
var tmp = this.
|
|
3374
|
+
var tmp = this.y37_1[i];
|
|
3375
3375
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3376
|
-
this.
|
|
3377
|
-
this.
|
|
3376
|
+
this.y37_1[i] = null;
|
|
3377
|
+
this.a38(instance);
|
|
3378
3378
|
}
|
|
3379
3379
|
while (inductionVariable < last);
|
|
3380
|
-
this.
|
|
3380
|
+
this.z37_1 = 0;
|
|
3381
3381
|
};
|
|
3382
3382
|
//region block: post-declaration
|
|
3383
|
-
protoOf(Read).
|
|
3384
|
-
protoOf(Read).
|
|
3385
|
-
protoOf(Write).
|
|
3386
|
-
protoOf(Write).
|
|
3387
|
-
protoOf(ByteChannel).
|
|
3388
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3389
|
-
protoOf(CountedByteReadChannel).
|
|
3390
|
-
protoOf(SourceByteReadChannel).
|
|
3383
|
+
protoOf(Read).p2v = resume;
|
|
3384
|
+
protoOf(Read).q2v = resume_0;
|
|
3385
|
+
protoOf(Write).p2v = resume;
|
|
3386
|
+
protoOf(Write).q2v = resume_0;
|
|
3387
|
+
protoOf(ByteChannel).v2x = awaitContent$default;
|
|
3388
|
+
protoOf(ByteReadChannel$Companion$Empty$1).v2x = awaitContent$default;
|
|
3389
|
+
protoOf(CountedByteReadChannel).v2x = awaitContent$default;
|
|
3390
|
+
protoOf(SourceByteReadChannel).v2x = awaitContent$default;
|
|
3391
3391
|
protoOf(DefaultPool).r4 = close;
|
|
3392
3392
|
protoOf(NoPoolImpl).r4 = close;
|
|
3393
3393
|
//endregion
|