@doordeck/doordeck-headless-sdk 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +2 -0
  2. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +5545 -0
  3. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  4. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +255 -0
  5. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +1 -0
  6. package/kotlin/MultiplatformSettings-multiplatform-settings.js +41 -0
  7. package/kotlin/MultiplatformSettings-multiplatform-settings.js.map +1 -0
  8. package/kotlin/Stately-stately-concurrency.js +32 -0
  9. package/kotlin/Stately-stately-concurrency.js.map +1 -0
  10. package/kotlin/Stately-stately-concurrent-collections.js +304 -0
  11. package/kotlin/Stately-stately-concurrent-collections.js.map +1 -0
  12. package/kotlin/Stately-stately-strict.js +12 -0
  13. package/kotlin/Stately-stately-strict.js.map +1 -0
  14. package/kotlin/doordeck-sdk.d.ts +1325 -0
  15. package/kotlin/doordeck-sdk.js +33503 -0
  16. package/kotlin/doordeck-sdk.js.map +1 -0
  17. package/kotlin/kotlin-kotlin-stdlib.js +14474 -0
  18. package/kotlin/kotlin-kotlin-stdlib.js.map +1 -0
  19. package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +8 -0
  20. package/kotlin/kotlin-kotlinx-atomicfu-runtime.js.map +1 -0
  21. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
  22. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  23. package/kotlin/kotlinx-atomicfu.js +249 -0
  24. package/kotlin/kotlinx-atomicfu.js.map +1 -0
  25. package/kotlin/kotlinx-coroutines-core.js +8784 -0
  26. package/kotlin/kotlinx-coroutines-core.js.map +1 -0
  27. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +8 -0
  28. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
  29. package/kotlin/kotlinx-io-kotlinx-io-core.js +1333 -0
  30. package/kotlin/kotlinx-io-kotlinx-io-core.js.map +1 -0
  31. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +5908 -0
  32. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  33. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +4740 -0
  34. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  35. package/kotlin/ktor-ktor-client-ktor-client-core.js +8407 -0
  36. package/kotlin/ktor-ktor-client-ktor-client-core.js.map +1 -0
  37. package/kotlin/ktor-ktor-client-ktor-client-js.js +8 -0
  38. package/kotlin/ktor-ktor-client-ktor-client-js.js.map +1 -0
  39. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +1146 -0
  40. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js.map +1 -0
  41. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +647 -0
  42. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map +1 -0
  43. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js +8 -0
  44. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js.map +1 -0
  45. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +8 -0
  46. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js.map +1 -0
  47. package/kotlin/ktor-ktor-http.js +3638 -0
  48. package/kotlin/ktor-ktor-http.js.map +1 -0
  49. package/kotlin/ktor-ktor-io.js +2249 -0
  50. package/kotlin/ktor-ktor-io.js.map +1 -0
  51. package/kotlin/ktor-ktor-shared-ktor-events.js +84 -0
  52. package/kotlin/ktor-ktor-shared-ktor-events.js.map +1 -0
  53. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +47 -0
  54. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js.map +1 -0
  55. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +857 -0
  56. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map +1 -0
  57. package/kotlin/ktor-ktor-shared-ktor-serialization.js +365 -0
  58. package/kotlin/ktor-ktor-shared-ktor-serialization.js.map +1 -0
  59. package/kotlin/ktor-ktor-shared-ktor-sse.js +8 -0
  60. package/kotlin/ktor-ktor-shared-ktor-sse.js.map +1 -0
  61. package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js +8 -0
  62. package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js.map +1 -0
  63. package/kotlin/ktor-ktor-shared-ktor-websockets.js +424 -0
  64. package/kotlin/ktor-ktor-shared-ktor-websockets.js.map +1 -0
  65. package/kotlin/ktor-ktor-utils.js +2393 -0
  66. package/kotlin/ktor-ktor-utils.js.map +1 -0
  67. package/kotlin/projects-core-koin-core.js +1134 -0
  68. package/kotlin/projects-core-koin-core.js.map +1 -0
  69. package/kotlin/uuid.js +152 -0
  70. package/kotlin/uuid.js.map +1 -0
  71. package/package.json +42 -0
@@ -0,0 +1,1333 @@
1
+ (function (_, kotlin_kotlin) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var imul = Math.imul;
5
+ var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.b2;
6
+ var Long = kotlin_kotlin.$_$.ze;
7
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1;
8
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.r2;
9
+ var charArrayOf = kotlin_kotlin.$_$.da;
10
+ var protoOf = kotlin_kotlin.$_$.rb;
11
+ var toString = kotlin_kotlin.$_$.vb;
12
+ var ensureNotNull = kotlin_kotlin.$_$.vf;
13
+ var Unit_instance = kotlin_kotlin.$_$.k5;
14
+ var toShort = kotlin_kotlin.$_$.ub;
15
+ var toLong = kotlin_kotlin.$_$.tb;
16
+ var arrayCopy = kotlin_kotlin.$_$.b6;
17
+ var toByte = kotlin_kotlin.$_$.sb;
18
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
19
+ var initMetadataForClass = kotlin_kotlin.$_$.ra;
20
+ var VOID = kotlin_kotlin.$_$.f;
21
+ var objectCreate = kotlin_kotlin.$_$.qb;
22
+ var initMetadataForCompanion = kotlin_kotlin.$_$.sa;
23
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.y1;
24
+ var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.s1;
25
+ var initMetadataForObject = kotlin_kotlin.$_$.xa;
26
+ var initMetadataForInterface = kotlin_kotlin.$_$.va;
27
+ var charSequenceGet = kotlin_kotlin.$_$.fa;
28
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.x2;
29
+ var numberToLong = kotlin_kotlin.$_$.pb;
30
+ var charArray = kotlin_kotlin.$_$.ea;
31
+ var numberToChar = kotlin_kotlin.$_$.nb;
32
+ var concatToString = kotlin_kotlin.$_$.lc;
33
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.l1;
34
+ var captureStack = kotlin_kotlin.$_$.ca;
35
+ var Exception_init_$Init$_0 = kotlin_kotlin.$_$.n1;
36
+ var Exception_init_$Init$_1 = kotlin_kotlin.$_$.o1;
37
+ var Exception = kotlin_kotlin.$_$.we;
38
+ //endregion
39
+ //region block: pre-declaration
40
+ initMetadataForInterface(Source, 'Source');
41
+ function write$default(source, startIndex, endIndex, $super) {
42
+ startIndex = startIndex === VOID ? 0 : startIndex;
43
+ endIndex = endIndex === VOID ? source.length : endIndex;
44
+ var tmp;
45
+ if ($super === VOID) {
46
+ this.n1a(source, startIndex, endIndex);
47
+ tmp = Unit_instance;
48
+ } else {
49
+ tmp = $super.n1a.call(this, source, startIndex, endIndex);
50
+ }
51
+ return tmp;
52
+ }
53
+ initMetadataForInterface(Sink, 'Sink');
54
+ initMetadataForClass(Buffer, 'Buffer', Buffer, VOID, [Source, Sink]);
55
+ initMetadataForCompanion(Companion);
56
+ initMetadataForClass(Segment, 'Segment');
57
+ initMetadataForClass(SegmentCopyTracker, 'SegmentCopyTracker');
58
+ initMetadataForObject(AlwaysSharedCopyTracker, 'AlwaysSharedCopyTracker', VOID, SegmentCopyTracker);
59
+ initMetadataForClass(IOException, 'IOException', IOException_init_$Create$, Exception);
60
+ initMetadataForClass(EOFException, 'EOFException', EOFException_init_$Create$, IOException);
61
+ initMetadataForObject(SegmentPool, 'SegmentPool');
62
+ //endregion
63
+ function get_HEX_DIGIT_CHARS() {
64
+ _init_properties__Util_kt__g8tcl9();
65
+ return HEX_DIGIT_CHARS;
66
+ }
67
+ var HEX_DIGIT_CHARS;
68
+ function checkBounds(size, startIndex, endIndex) {
69
+ _init_properties__Util_kt__g8tcl9();
70
+ if (startIndex.z(new Long(0, 0)) < 0 || endIndex.z(size) > 0) {
71
+ throw IndexOutOfBoundsException_init_$Create$('startIndex (' + startIndex.toString() + ') and endIndex (' + endIndex.toString() + ') are not within the range [0..size(' + size.toString() + '))');
72
+ }
73
+ if (startIndex.z(endIndex) > 0) {
74
+ throw IllegalArgumentException_init_$Create$('startIndex (' + startIndex.toString() + ') > endIndex (' + endIndex.toString() + ')');
75
+ }
76
+ }
77
+ function checkOffsetAndCount(size, offset, byteCount) {
78
+ _init_properties__Util_kt__g8tcl9();
79
+ if (offset.z(new Long(0, 0)) < 0 || offset.z(size) > 0 || size.v2(offset).z(byteCount) < 0 || byteCount.z(new Long(0, 0)) < 0) {
80
+ throw IllegalArgumentException_init_$Create$('offset (' + offset.toString() + ') and byteCount (' + byteCount.toString() + ') are not within the range [0..size(' + size.toString() + '))');
81
+ }
82
+ }
83
+ var properties_initialized__Util_kt_67kc5b;
84
+ function _init_properties__Util_kt__g8tcl9() {
85
+ if (!properties_initialized__Util_kt_67kc5b) {
86
+ properties_initialized__Util_kt_67kc5b = true;
87
+ // Inline function 'kotlin.charArrayOf' call
88
+ HEX_DIGIT_CHARS = charArrayOf([_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(49), _Char___init__impl__6a9atx(50), _Char___init__impl__6a9atx(51), _Char___init__impl__6a9atx(52), _Char___init__impl__6a9atx(53), _Char___init__impl__6a9atx(54), _Char___init__impl__6a9atx(55), _Char___init__impl__6a9atx(56), _Char___init__impl__6a9atx(57), _Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(98), _Char___init__impl__6a9atx(99), _Char___init__impl__6a9atx(100), _Char___init__impl__6a9atx(101), _Char___init__impl__6a9atx(102)]);
89
+ }
90
+ }
91
+ function Buffer() {
92
+ this.j19_1 = null;
93
+ this.k19_1 = null;
94
+ this.l19_1 = new Long(0, 0);
95
+ this.m19_1 = this;
96
+ }
97
+ protoOf(Buffer).m = function () {
98
+ return this.l19_1;
99
+ };
100
+ protoOf(Buffer).n19 = function () {
101
+ return this.m19_1;
102
+ };
103
+ protoOf(Buffer).o19 = function () {
104
+ return this.m().equals(new Long(0, 0));
105
+ };
106
+ protoOf(Buffer).p19 = function (byteCount) {
107
+ // Inline function 'kotlin.require' call
108
+ // Inline function 'kotlin.contracts.contract' call
109
+ if (!(byteCount.z(new Long(0, 0)) >= 0)) {
110
+ // Inline function 'kotlinx.io.Buffer.require.<anonymous>' call
111
+ var message = 'byteCount: ' + byteCount.toString();
112
+ throw IllegalArgumentException_init_$Create$(toString(message));
113
+ }
114
+ if (this.m().z(byteCount) < 0) {
115
+ throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.m().toString() + ', required: ' + byteCount.toString() + ')');
116
+ }
117
+ };
118
+ protoOf(Buffer).q19 = function (byteCount) {
119
+ // Inline function 'kotlin.require' call
120
+ // Inline function 'kotlin.contracts.contract' call
121
+ if (!(byteCount.z(new Long(0, 0)) >= 0)) {
122
+ // Inline function 'kotlinx.io.Buffer.request.<anonymous>' call
123
+ var message = 'byteCount: ' + byteCount.toString() + ' < 0';
124
+ throw IllegalArgumentException_init_$Create$(toString(message));
125
+ }
126
+ return this.m().z(byteCount) >= 0;
127
+ };
128
+ protoOf(Buffer).r19 = function () {
129
+ this.p19(new Long(1, 0));
130
+ var segment = ensureNotNull(this.j19_1);
131
+ var pos = segment.t19_1;
132
+ var limit = segment.u19_1;
133
+ var data = segment.s19_1;
134
+ var _unary__edvuaz = pos;
135
+ pos = _unary__edvuaz + 1 | 0;
136
+ var b = data[_unary__edvuaz];
137
+ this.l19_1 = this.l19_1.v2(new Long(1, 0));
138
+ if (pos === limit) {
139
+ this.z19();
140
+ } else {
141
+ segment.t19_1 = pos;
142
+ }
143
+ return b;
144
+ };
145
+ protoOf(Buffer).a1a = function () {
146
+ this.p19(new Long(2, 0));
147
+ var segment = ensureNotNull(this.j19_1);
148
+ var pos = segment.t19_1;
149
+ var limit = segment.u19_1;
150
+ if ((limit - pos | 0) < 2) {
151
+ // Inline function 'kotlinx.io.and' call
152
+ var tmp = (this.r19() & 255) << 8;
153
+ // Inline function 'kotlinx.io.and' call
154
+ var s = tmp | this.r19() & 255;
155
+ return toShort(s);
156
+ }
157
+ var data = segment.s19_1;
158
+ // Inline function 'kotlinx.io.and' call
159
+ var _unary__edvuaz = pos;
160
+ pos = _unary__edvuaz + 1 | 0;
161
+ var tmp_0 = (data[_unary__edvuaz] & 255) << 8;
162
+ // Inline function 'kotlinx.io.and' call
163
+ var _unary__edvuaz_0 = pos;
164
+ pos = _unary__edvuaz_0 + 1 | 0;
165
+ var s_0 = tmp_0 | data[_unary__edvuaz_0] & 255;
166
+ this.l19_1 = this.l19_1.v2(new Long(2, 0));
167
+ if (pos === limit) {
168
+ this.z19();
169
+ } else {
170
+ segment.t19_1 = pos;
171
+ }
172
+ return toShort(s_0);
173
+ };
174
+ protoOf(Buffer).b1a = function () {
175
+ return Unit_instance;
176
+ };
177
+ protoOf(Buffer).c1a = function (byteCount) {
178
+ // Inline function 'kotlinx.io.checkByteCount' call
179
+ // Inline function 'kotlin.require' call
180
+ // Inline function 'kotlin.contracts.contract' call
181
+ if (!(byteCount.z(new Long(0, 0)) >= 0)) {
182
+ // Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
183
+ var message = 'byteCount (' + byteCount.toString() + ') < 0';
184
+ throw IllegalArgumentException_init_$Create$(toString(message));
185
+ }
186
+ var remainingByteCount = byteCount;
187
+ while (remainingByteCount.z(new Long(0, 0)) > 0) {
188
+ var tmp0_elvis_lhs = this.j19_1;
189
+ var tmp;
190
+ if (tmp0_elvis_lhs == null) {
191
+ throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
192
+ } else {
193
+ tmp = tmp0_elvis_lhs;
194
+ }
195
+ var head = tmp;
196
+ // Inline function 'kotlinx.io.minOf' call
197
+ var a = remainingByteCount;
198
+ var b = head.u19_1 - head.t19_1 | 0;
199
+ // Inline function 'kotlin.comparisons.minOf' call
200
+ var b_0 = toLong(b);
201
+ var toSkip = (a.z(b_0) <= 0 ? a : b_0).e1();
202
+ this.l19_1 = this.l19_1.v2(toLong(toSkip));
203
+ remainingByteCount = remainingByteCount.v2(toLong(toSkip));
204
+ head.t19_1 = head.t19_1 + toSkip | 0;
205
+ if (head.t19_1 === head.u19_1) {
206
+ this.z19();
207
+ }
208
+ }
209
+ };
210
+ protoOf(Buffer).d1a = function (sink, startIndex, endIndex) {
211
+ // Inline function 'kotlinx.io.checkBounds' call
212
+ var size = sink.length;
213
+ checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
214
+ var tmp0_elvis_lhs = this.j19_1;
215
+ var tmp;
216
+ if (tmp0_elvis_lhs == null) {
217
+ return -1;
218
+ } else {
219
+ tmp = tmp0_elvis_lhs;
220
+ }
221
+ var s = tmp;
222
+ // Inline function 'kotlin.comparisons.minOf' call
223
+ var a = endIndex - startIndex | 0;
224
+ var b = s.u19_1 - s.t19_1 | 0;
225
+ var toCopy = Math.min(a, b);
226
+ // Inline function 'kotlin.collections.copyInto' call
227
+ var this_0 = s.s19_1;
228
+ var startIndex_0 = s.t19_1;
229
+ var endIndex_0 = s.t19_1 + toCopy | 0;
230
+ // Inline function 'kotlin.js.unsafeCast' call
231
+ // Inline function 'kotlin.js.asDynamic' call
232
+ var tmp_0 = this_0;
233
+ // Inline function 'kotlin.js.unsafeCast' call
234
+ // Inline function 'kotlin.js.asDynamic' call
235
+ arrayCopy(tmp_0, sink, startIndex, startIndex_0, endIndex_0);
236
+ s.t19_1 = s.t19_1 + toCopy | 0;
237
+ this.l19_1 = this.l19_1.v2(toLong(toCopy));
238
+ if (s.t19_1 === s.u19_1) {
239
+ this.z19();
240
+ }
241
+ return toCopy;
242
+ };
243
+ protoOf(Buffer).e1a = function (sink, byteCount) {
244
+ // Inline function 'kotlinx.io.checkByteCount' call
245
+ // Inline function 'kotlin.require' call
246
+ // Inline function 'kotlin.contracts.contract' call
247
+ if (!(byteCount.z(new Long(0, 0)) >= 0)) {
248
+ // Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
249
+ var message = 'byteCount (' + byteCount.toString() + ') < 0';
250
+ throw IllegalArgumentException_init_$Create$(toString(message));
251
+ }
252
+ if (this.m().equals(new Long(0, 0)))
253
+ return new Long(-1, -1);
254
+ var bytesWritten = byteCount.z(this.m()) > 0 ? this.m() : byteCount;
255
+ sink.f1a(this, bytesWritten);
256
+ return bytesWritten;
257
+ };
258
+ protoOf(Buffer).g1a = function (sink, byteCount) {
259
+ // Inline function 'kotlinx.io.checkByteCount' call
260
+ // Inline function 'kotlin.require' call
261
+ // Inline function 'kotlin.contracts.contract' call
262
+ if (!(byteCount.z(new Long(0, 0)) >= 0)) {
263
+ // Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
264
+ var message = 'byteCount (' + byteCount.toString() + ') < 0';
265
+ throw IllegalArgumentException_init_$Create$(toString(message));
266
+ }
267
+ if (this.m().z(byteCount) < 0) {
268
+ sink.f1a(this, this.m());
269
+ throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.m().toString() + ' bytes were written.');
270
+ }
271
+ sink.f1a(this, byteCount);
272
+ };
273
+ protoOf(Buffer).h1a = function (sink) {
274
+ var byteCount = this.m();
275
+ if (byteCount.z(new Long(0, 0)) > 0) {
276
+ sink.f1a(this, byteCount);
277
+ }
278
+ return byteCount;
279
+ };
280
+ protoOf(Buffer).i1a = function (minimumCapacity) {
281
+ // Inline function 'kotlin.require' call
282
+ // Inline function 'kotlin.contracts.contract' call
283
+ if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
284
+ // Inline function 'kotlinx.io.Buffer.writableSegment.<anonymous>' call
285
+ var message = 'unexpected capacity';
286
+ throw IllegalArgumentException_init_$Create$(toString(message));
287
+ }
288
+ if (this.k19_1 == null) {
289
+ var result = SegmentPool_instance.l1a();
290
+ this.j19_1 = result;
291
+ this.k19_1 = result;
292
+ return result;
293
+ }
294
+ var t = ensureNotNull(this.k19_1);
295
+ if ((t.u19_1 + minimumCapacity | 0) > 8192 || !t.w19_1) {
296
+ var newTail = t.m1a(SegmentPool_instance.l1a());
297
+ this.k19_1 = newTail;
298
+ return newTail;
299
+ }
300
+ return t;
301
+ };
302
+ protoOf(Buffer).n1a = function (source, startIndex, endIndex) {
303
+ // Inline function 'kotlinx.io.checkBounds' call
304
+ var size = source.length;
305
+ checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
306
+ var currentOffset = startIndex;
307
+ while (currentOffset < endIndex) {
308
+ var tail = this.i1a(1);
309
+ // Inline function 'kotlin.comparisons.minOf' call
310
+ var a = endIndex - currentOffset | 0;
311
+ var b = 8192 - tail.u19_1 | 0;
312
+ var toCopy = Math.min(a, b);
313
+ // Inline function 'kotlin.collections.copyInto' call
314
+ var destination = tail.s19_1;
315
+ var destinationOffset = tail.u19_1;
316
+ var startIndex_0 = currentOffset;
317
+ var endIndex_0 = currentOffset + toCopy | 0;
318
+ // Inline function 'kotlin.js.unsafeCast' call
319
+ // Inline function 'kotlin.js.asDynamic' call
320
+ var tmp = source;
321
+ // Inline function 'kotlin.js.unsafeCast' call
322
+ // Inline function 'kotlin.js.asDynamic' call
323
+ arrayCopy(tmp, destination, destinationOffset, startIndex_0, endIndex_0);
324
+ currentOffset = currentOffset + toCopy | 0;
325
+ tail.u19_1 = tail.u19_1 + toCopy | 0;
326
+ }
327
+ var tmp_0 = this;
328
+ // Inline function 'kotlin.Long.plus' call
329
+ var this_0 = this.l19_1;
330
+ var other = endIndex - startIndex | 0;
331
+ tmp_0.l19_1 = this_0.u2(toLong(other));
332
+ };
333
+ protoOf(Buffer).f1a = function (source, byteCount) {
334
+ // Inline function 'kotlin.require' call
335
+ // Inline function 'kotlin.contracts.contract' call
336
+ if (!!(source === this)) {
337
+ // Inline function 'kotlinx.io.Buffer.write.<anonymous>' call
338
+ var message = 'source == this';
339
+ throw IllegalArgumentException_init_$Create$(toString(message));
340
+ }
341
+ checkOffsetAndCount(source.l19_1, new Long(0, 0), byteCount);
342
+ var remainingByteCount = byteCount;
343
+ while (remainingByteCount.z(new Long(0, 0)) > 0) {
344
+ if (remainingByteCount.z(toLong(ensureNotNull(source.j19_1).s1a())) < 0) {
345
+ var tail = this.k19_1;
346
+ var tmp;
347
+ if (!(tail == null) && tail.w19_1) {
348
+ // Inline function 'kotlin.Long.minus' call
349
+ // Inline function 'kotlin.Long.plus' call
350
+ var this_0 = remainingByteCount;
351
+ var other = tail.u19_1;
352
+ var this_1 = this_0.u2(toLong(other));
353
+ var other_0 = tail.p1a() ? 0 : tail.t19_1;
354
+ tmp = this_1.v2(toLong(other_0)).z(new Long(8192, 0)) <= 0;
355
+ } else {
356
+ tmp = false;
357
+ }
358
+ if (tmp) {
359
+ ensureNotNull(source.j19_1).r1a(tail, remainingByteCount.e1());
360
+ source.l19_1 = source.l19_1.v2(remainingByteCount);
361
+ this.l19_1 = this.l19_1.u2(remainingByteCount);
362
+ return Unit_instance;
363
+ } else {
364
+ source.j19_1 = ensureNotNull(source.j19_1).q1a(remainingByteCount.e1());
365
+ }
366
+ }
367
+ var segmentToMove = ensureNotNull(source.j19_1);
368
+ var movedByteCount = toLong(segmentToMove.s1a());
369
+ source.j19_1 = segmentToMove.t1a();
370
+ if (source.j19_1 == null) {
371
+ source.k19_1 = null;
372
+ }
373
+ // Inline function 'kotlinx.io.Buffer.pushSegment' call
374
+ if (this.j19_1 == null) {
375
+ this.j19_1 = segmentToMove;
376
+ this.k19_1 = segmentToMove;
377
+ } else if (true) {
378
+ this.k19_1 = ensureNotNull(this.k19_1).m1a(segmentToMove).u1a();
379
+ if (ensureNotNull(this.k19_1).y19_1 == null) {
380
+ this.j19_1 = this.k19_1;
381
+ }
382
+ } else {
383
+ this.k19_1 = ensureNotNull(this.k19_1).m1a(segmentToMove);
384
+ }
385
+ source.l19_1 = source.l19_1.v2(movedByteCount);
386
+ this.l19_1 = this.l19_1.u2(movedByteCount);
387
+ remainingByteCount = remainingByteCount.v2(movedByteCount);
388
+ }
389
+ };
390
+ protoOf(Buffer).v1a = function (source) {
391
+ var totalBytesRead = new Long(0, 0);
392
+ $l$loop: while (true) {
393
+ var readCount = source.e1a(this, new Long(8192, 0));
394
+ if (readCount.equals(new Long(-1, -1)))
395
+ break $l$loop;
396
+ totalBytesRead = totalBytesRead.u2(readCount);
397
+ }
398
+ return totalBytesRead;
399
+ };
400
+ protoOf(Buffer).w1a = function (byte) {
401
+ var tail = this.i1a(1);
402
+ var _unary__edvuaz = tail.u19_1;
403
+ tail.u19_1 = _unary__edvuaz + 1 | 0;
404
+ tail.s19_1[_unary__edvuaz] = byte;
405
+ this.l19_1 = this.l19_1.u2(new Long(1, 0));
406
+ };
407
+ protoOf(Buffer).x1a = function (short) {
408
+ var tail = this.i1a(2);
409
+ var data = tail.s19_1;
410
+ var limit = tail.u19_1;
411
+ var _unary__edvuaz = limit;
412
+ limit = _unary__edvuaz + 1 | 0;
413
+ data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
414
+ var _unary__edvuaz_0 = limit;
415
+ limit = _unary__edvuaz_0 + 1 | 0;
416
+ data[_unary__edvuaz_0] = toByte(short & 255);
417
+ tail.u19_1 = limit;
418
+ this.l19_1 = this.l19_1.u2(new Long(2, 0));
419
+ };
420
+ protoOf(Buffer).y1a = function () {
421
+ var result = new Buffer();
422
+ if (this.m().equals(new Long(0, 0)))
423
+ return result;
424
+ var head = ensureNotNull(this.j19_1);
425
+ var headCopy = head.z1a();
426
+ result.j19_1 = headCopy;
427
+ result.k19_1 = headCopy;
428
+ var s = head.x19_1;
429
+ while (!(s == null)) {
430
+ result.k19_1 = ensureNotNull(result.k19_1).m1a(s.z1a());
431
+ s = s.x19_1;
432
+ }
433
+ result.l19_1 = this.m();
434
+ return result;
435
+ };
436
+ protoOf(Buffer).a1b = function () {
437
+ return Unit_instance;
438
+ };
439
+ protoOf(Buffer).toString = function () {
440
+ if (this.m().equals(new Long(0, 0)))
441
+ return 'Buffer(size=0)';
442
+ var maxPrintableBytes = 64;
443
+ // Inline function 'kotlinx.io.minOf' call
444
+ var b = this.m();
445
+ // Inline function 'kotlin.comparisons.minOf' call
446
+ var a = toLong(maxPrintableBytes);
447
+ var len = (a.z(b) <= 0 ? a : b).e1();
448
+ var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.m().z(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
449
+ var curr = ensureNotNull(this.j19_1);
450
+ var bytesWritten = 0;
451
+ var pos = curr.t19_1;
452
+ while (bytesWritten < len) {
453
+ if (pos === curr.u19_1) {
454
+ curr = ensureNotNull(curr.x19_1);
455
+ pos = curr.t19_1;
456
+ }
457
+ var tmp = curr.s19_1;
458
+ var _unary__edvuaz = pos;
459
+ pos = _unary__edvuaz + 1 | 0;
460
+ var b_0 = tmp[_unary__edvuaz];
461
+ bytesWritten = bytesWritten + 1 | 0;
462
+ builder.k8(get_HEX_DIGIT_CHARS()[b_0 >> 4 & 15]).k8(get_HEX_DIGIT_CHARS()[b_0 & 15]);
463
+ }
464
+ if (this.m().z(toLong(maxPrintableBytes)) > 0) {
465
+ builder.k8(_Char___init__impl__6a9atx(8230));
466
+ }
467
+ return 'Buffer(size=' + this.m().toString() + ' hex=' + builder.toString() + ')';
468
+ };
469
+ protoOf(Buffer).z19 = function () {
470
+ var oldHead = ensureNotNull(this.j19_1);
471
+ var nextHead = oldHead.x19_1;
472
+ this.j19_1 = nextHead;
473
+ if (nextHead == null) {
474
+ this.k19_1 = null;
475
+ } else {
476
+ nextHead.y19_1 = null;
477
+ }
478
+ oldHead.x19_1 = null;
479
+ SegmentPool_instance.b1b(oldHead);
480
+ };
481
+ function Segment_init_$Init$($this) {
482
+ Segment.call($this);
483
+ $this.s19_1 = new Int8Array(8192);
484
+ $this.w19_1 = true;
485
+ $this.v19_1 = null;
486
+ return $this;
487
+ }
488
+ function Segment_init_$Create$() {
489
+ return Segment_init_$Init$(objectCreate(protoOf(Segment)));
490
+ }
491
+ function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
492
+ Segment.call($this);
493
+ $this.s19_1 = data;
494
+ $this.t19_1 = pos;
495
+ $this.u19_1 = limit;
496
+ $this.v19_1 = shareToken;
497
+ $this.w19_1 = owner;
498
+ return $this;
499
+ }
500
+ function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
501
+ return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
502
+ }
503
+ function Companion() {
504
+ this.c1b_1 = 8192;
505
+ this.d1b_1 = 1024;
506
+ }
507
+ protoOf(Companion).e1b = function () {
508
+ return Segment_init_$Create$();
509
+ };
510
+ var Companion_instance;
511
+ function Companion_getInstance() {
512
+ return Companion_instance;
513
+ }
514
+ protoOf(Segment).p1a = function () {
515
+ var tmp2_safe_receiver = this.v19_1;
516
+ var tmp0_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f1b();
517
+ return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
518
+ };
519
+ protoOf(Segment).z1a = function () {
520
+ var tmp0_elvis_lhs = this.v19_1;
521
+ var tmp;
522
+ if (tmp0_elvis_lhs == null) {
523
+ // Inline function 'kotlin.also' call
524
+ var this_0 = SegmentPool_instance.g1b();
525
+ // Inline function 'kotlin.contracts.contract' call
526
+ // Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
527
+ this.v19_1 = this_0;
528
+ tmp = this_0;
529
+ } else {
530
+ tmp = tmp0_elvis_lhs;
531
+ }
532
+ var t = tmp;
533
+ var tmp_0 = this.t19_1;
534
+ var tmp_1 = this.u19_1;
535
+ // Inline function 'kotlin.also' call
536
+ // Inline function 'kotlin.contracts.contract' call
537
+ // Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
538
+ t.h1b();
539
+ return Segment_init_$Create$_0(this.s19_1, tmp_0, tmp_1, t, false);
540
+ };
541
+ protoOf(Segment).t1a = function () {
542
+ var result = this.x19_1;
543
+ if (!(this.y19_1 == null)) {
544
+ ensureNotNull(this.y19_1).x19_1 = this.x19_1;
545
+ }
546
+ if (!(this.x19_1 == null)) {
547
+ ensureNotNull(this.x19_1).y19_1 = this.y19_1;
548
+ }
549
+ this.x19_1 = null;
550
+ this.y19_1 = null;
551
+ return result;
552
+ };
553
+ protoOf(Segment).m1a = function (segment) {
554
+ segment.y19_1 = this;
555
+ segment.x19_1 = this.x19_1;
556
+ if (!(this.x19_1 == null)) {
557
+ ensureNotNull(this.x19_1).y19_1 = segment;
558
+ }
559
+ this.x19_1 = segment;
560
+ return segment;
561
+ };
562
+ protoOf(Segment).q1a = function (byteCount) {
563
+ // Inline function 'kotlin.require' call
564
+ // Inline function 'kotlin.contracts.contract' call
565
+ if (!(byteCount > 0 && byteCount <= (this.u19_1 - this.t19_1 | 0))) {
566
+ // Inline function 'kotlinx.io.Segment.split.<anonymous>' call
567
+ var message = 'byteCount out of range';
568
+ throw IllegalArgumentException_init_$Create$(toString(message));
569
+ }
570
+ var prefix;
571
+ if (byteCount >= 1024) {
572
+ prefix = this.z1a();
573
+ } else {
574
+ prefix = SegmentPool_instance.l1a();
575
+ // Inline function 'kotlin.collections.copyInto' call
576
+ var this_0 = this.s19_1;
577
+ var destination = prefix.s19_1;
578
+ var startIndex = this.t19_1;
579
+ var endIndex = this.t19_1 + byteCount | 0;
580
+ // Inline function 'kotlin.js.unsafeCast' call
581
+ // Inline function 'kotlin.js.asDynamic' call
582
+ var tmp = this_0;
583
+ // Inline function 'kotlin.js.unsafeCast' call
584
+ // Inline function 'kotlin.js.asDynamic' call
585
+ arrayCopy(tmp, destination, 0, startIndex, endIndex);
586
+ }
587
+ prefix.u19_1 = prefix.t19_1 + byteCount | 0;
588
+ this.t19_1 = this.t19_1 + byteCount | 0;
589
+ if (!(this.y19_1 == null)) {
590
+ ensureNotNull(this.y19_1).m1a(prefix);
591
+ } else {
592
+ prefix.x19_1 = this;
593
+ this.y19_1 = prefix;
594
+ }
595
+ return prefix;
596
+ };
597
+ protoOf(Segment).u1a = function () {
598
+ // Inline function 'kotlin.check' call
599
+ // Inline function 'kotlin.contracts.contract' call
600
+ if (!!(this.y19_1 == null)) {
601
+ // Inline function 'kotlinx.io.Segment.compact.<anonymous>' call
602
+ var message = 'cannot compact';
603
+ throw IllegalStateException_init_$Create$(toString(message));
604
+ }
605
+ if (!ensureNotNull(this.y19_1).w19_1)
606
+ return this;
607
+ var byteCount = this.u19_1 - this.t19_1 | 0;
608
+ var availableByteCount = (8192 - ensureNotNull(this.y19_1).u19_1 | 0) + (ensureNotNull(this.y19_1).p1a() ? 0 : ensureNotNull(this.y19_1).t19_1) | 0;
609
+ if (byteCount > availableByteCount)
610
+ return this;
611
+ var predecessor = this.y19_1;
612
+ this.r1a(ensureNotNull(predecessor), byteCount);
613
+ var successor = this.t1a();
614
+ // Inline function 'kotlin.check' call
615
+ // Inline function 'kotlin.contracts.contract' call
616
+ // Inline function 'kotlin.check' call
617
+ // Inline function 'kotlin.contracts.contract' call
618
+ if (!(successor == null)) {
619
+ // Inline function 'kotlin.check.<anonymous>' call
620
+ var message_0 = 'Check failed.';
621
+ throw IllegalStateException_init_$Create$(toString(message_0));
622
+ }
623
+ SegmentPool_instance.b1b(this);
624
+ return predecessor;
625
+ };
626
+ protoOf(Segment).r1a = function (sink, byteCount) {
627
+ // Inline function 'kotlin.check' call
628
+ // Inline function 'kotlin.contracts.contract' call
629
+ if (!sink.w19_1) {
630
+ // Inline function 'kotlinx.io.Segment.writeTo.<anonymous>' call
631
+ var message = 'only owner can write';
632
+ throw IllegalStateException_init_$Create$(toString(message));
633
+ }
634
+ if ((sink.u19_1 + byteCount | 0) > 8192) {
635
+ if (sink.p1a())
636
+ throw IllegalArgumentException_init_$Create$_0();
637
+ if (((sink.u19_1 + byteCount | 0) - sink.t19_1 | 0) > 8192)
638
+ throw IllegalArgumentException_init_$Create$_0();
639
+ // Inline function 'kotlin.collections.copyInto' call
640
+ var this_0 = sink.s19_1;
641
+ var destination = sink.s19_1;
642
+ var startIndex = sink.t19_1;
643
+ var endIndex = sink.u19_1;
644
+ // Inline function 'kotlin.js.unsafeCast' call
645
+ // Inline function 'kotlin.js.asDynamic' call
646
+ var tmp = this_0;
647
+ // Inline function 'kotlin.js.unsafeCast' call
648
+ // Inline function 'kotlin.js.asDynamic' call
649
+ arrayCopy(tmp, destination, 0, startIndex, endIndex);
650
+ sink.u19_1 = sink.u19_1 - sink.t19_1 | 0;
651
+ sink.t19_1 = 0;
652
+ }
653
+ // Inline function 'kotlin.collections.copyInto' call
654
+ var this_1 = this.s19_1;
655
+ var destination_0 = sink.s19_1;
656
+ var destinationOffset = sink.u19_1;
657
+ var startIndex_0 = this.t19_1;
658
+ var endIndex_0 = this.t19_1 + byteCount | 0;
659
+ // Inline function 'kotlin.js.unsafeCast' call
660
+ // Inline function 'kotlin.js.asDynamic' call
661
+ var tmp_0 = this_1;
662
+ // Inline function 'kotlin.js.unsafeCast' call
663
+ // Inline function 'kotlin.js.asDynamic' call
664
+ arrayCopy(tmp_0, destination_0, destinationOffset, startIndex_0, endIndex_0);
665
+ sink.u19_1 = sink.u19_1 + byteCount | 0;
666
+ this.t19_1 = this.t19_1 + byteCount | 0;
667
+ };
668
+ protoOf(Segment).s1a = function () {
669
+ return this.u19_1 - this.t19_1 | 0;
670
+ };
671
+ function Segment() {
672
+ this.t19_1 = 0;
673
+ this.u19_1 = 0;
674
+ this.v19_1 = null;
675
+ this.w19_1 = false;
676
+ this.x19_1 = null;
677
+ this.y19_1 = null;
678
+ }
679
+ function SegmentCopyTracker() {
680
+ }
681
+ function AlwaysSharedCopyTracker() {
682
+ AlwaysSharedCopyTracker_instance = this;
683
+ SegmentCopyTracker.call(this);
684
+ this.i1b_1 = true;
685
+ }
686
+ protoOf(AlwaysSharedCopyTracker).f1b = function () {
687
+ return this.i1b_1;
688
+ };
689
+ protoOf(AlwaysSharedCopyTracker).h1b = function () {
690
+ return Unit_instance;
691
+ };
692
+ var AlwaysSharedCopyTracker_instance;
693
+ function AlwaysSharedCopyTracker_getInstance() {
694
+ if (AlwaysSharedCopyTracker_instance == null)
695
+ new AlwaysSharedCopyTracker();
696
+ return AlwaysSharedCopyTracker_instance;
697
+ }
698
+ function Sink() {
699
+ }
700
+ function Source() {
701
+ }
702
+ function readByteArray(_this__u8e3s4) {
703
+ return readByteArrayImpl(_this__u8e3s4, -1);
704
+ }
705
+ function readByteArray_0(_this__u8e3s4, byteCount) {
706
+ // Inline function 'kotlinx.io.checkByteCount' call
707
+ var byteCount_0 = toLong(byteCount);
708
+ // Inline function 'kotlin.require' call
709
+ // Inline function 'kotlin.contracts.contract' call
710
+ if (!(byteCount_0.z(new Long(0, 0)) >= 0)) {
711
+ // Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
712
+ var message = 'byteCount (' + byteCount_0.toString() + ') < 0';
713
+ throw IllegalArgumentException_init_$Create$(toString(message));
714
+ }
715
+ return readByteArrayImpl(_this__u8e3s4, byteCount);
716
+ }
717
+ function readByteArrayImpl(_this__u8e3s4, size) {
718
+ var arraySize = size;
719
+ if (size === -1) {
720
+ var fetchSize = new Long(2147483647, 0);
721
+ while (_this__u8e3s4.n19().m().z(new Long(2147483647, 0)) < 0 && _this__u8e3s4.q19(fetchSize)) {
722
+ // Inline function 'kotlin.Long.times' call
723
+ fetchSize = fetchSize.w2(toLong(2));
724
+ }
725
+ // Inline function 'kotlin.check' call
726
+ // Inline function 'kotlin.contracts.contract' call
727
+ if (!(_this__u8e3s4.n19().m().z(new Long(2147483647, 0)) < 0)) {
728
+ // Inline function 'kotlinx.io.readByteArrayImpl.<anonymous>' call
729
+ var message = "Can't create an array of size " + _this__u8e3s4.n19().m().toString();
730
+ throw IllegalStateException_init_$Create$(toString(message));
731
+ }
732
+ arraySize = _this__u8e3s4.n19().m().e1();
733
+ } else {
734
+ _this__u8e3s4.p19(toLong(size));
735
+ }
736
+ var array = new Int8Array(arraySize);
737
+ readTo(_this__u8e3s4.n19(), array);
738
+ return array;
739
+ }
740
+ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
741
+ startIndex = startIndex === VOID ? 0 : startIndex;
742
+ endIndex = endIndex === VOID ? sink.length : endIndex;
743
+ // Inline function 'kotlinx.io.checkBounds' call
744
+ var size = sink.length;
745
+ checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
746
+ var offset = startIndex;
747
+ while (offset < endIndex) {
748
+ var bytesRead = _this__u8e3s4.d1a(sink, offset, endIndex);
749
+ if (bytesRead === -1) {
750
+ throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
751
+ }
752
+ offset = offset + bytesRead | 0;
753
+ }
754
+ }
755
+ function readString(_this__u8e3s4) {
756
+ var req = new Long(8192, 0);
757
+ while (_this__u8e3s4.q19(req)) {
758
+ // Inline function 'kotlin.Long.times' call
759
+ req = req.w2(toLong(2));
760
+ }
761
+ return commonReadUtf8(_this__u8e3s4.n19(), _this__u8e3s4.n19().m());
762
+ }
763
+ function readString_0(_this__u8e3s4, byteCount) {
764
+ _this__u8e3s4.p19(byteCount);
765
+ return commonReadUtf8(_this__u8e3s4.n19(), byteCount);
766
+ }
767
+ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
768
+ startIndex = startIndex === VOID ? 0 : startIndex;
769
+ endIndex = endIndex === VOID ? string.length : endIndex;
770
+ // Inline function 'kotlinx.io.checkBounds' call
771
+ var size = string.length;
772
+ checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
773
+ // Inline function 'kotlinx.io.writeToInternalBuffer' call
774
+ // Inline function 'kotlinx.io.writeString.<anonymous>' call
775
+ // Inline function 'kotlinx.io.commonWriteUtf8' call
776
+ var this_0 = _this__u8e3s4.n19();
777
+ var i = startIndex;
778
+ while (i < endIndex) {
779
+ // Inline function 'kotlin.code' call
780
+ var p0 = i;
781
+ var this_1 = charSequenceGet(string, p0);
782
+ var c = Char__toInt_impl_vasixd(this_1);
783
+ if (c < 128) {
784
+ var tail = this_0.i1a(1);
785
+ var data = tail.s19_1;
786
+ var segmentOffset = tail.u19_1 - i | 0;
787
+ // Inline function 'kotlin.comparisons.minOf' call
788
+ var b = 8192 - segmentOffset | 0;
789
+ var runLimit = Math.min(endIndex, b);
790
+ var _unary__edvuaz = i;
791
+ i = _unary__edvuaz + 1 | 0;
792
+ data[segmentOffset + _unary__edvuaz | 0] = toByte(c);
793
+ $l$loop: while (i < runLimit) {
794
+ // Inline function 'kotlin.code' call
795
+ var p0_0 = i;
796
+ var this_2 = charSequenceGet(string, p0_0);
797
+ c = Char__toInt_impl_vasixd(this_2);
798
+ if (c >= 128)
799
+ break $l$loop;
800
+ var _unary__edvuaz_0 = i;
801
+ i = _unary__edvuaz_0 + 1 | 0;
802
+ data[segmentOffset + _unary__edvuaz_0 | 0] = toByte(c);
803
+ }
804
+ var runSize = (i + segmentOffset | 0) - tail.u19_1 | 0;
805
+ tail.u19_1 = tail.u19_1 + runSize | 0;
806
+ this_0.l19_1 = this_0.l19_1.u2(toLong(runSize));
807
+ } else if (c < 2048) {
808
+ var tail_0 = this_0.i1a(2);
809
+ tail_0.s19_1[tail_0.u19_1] = toByte(c >> 6 | 192);
810
+ tail_0.s19_1[tail_0.u19_1 + 1 | 0] = toByte(c & 63 | 128);
811
+ tail_0.u19_1 = tail_0.u19_1 + 2 | 0;
812
+ this_0.l19_1 = this_0.l19_1.u2(new Long(2, 0));
813
+ i = i + 1 | 0;
814
+ } else if (c < 55296 || c > 57343) {
815
+ var tail_1 = this_0.i1a(3);
816
+ tail_1.s19_1[tail_1.u19_1] = toByte(c >> 12 | 224);
817
+ tail_1.s19_1[tail_1.u19_1 + 1 | 0] = toByte(c >> 6 & 63 | 128);
818
+ tail_1.s19_1[tail_1.u19_1 + 2 | 0] = toByte(c & 63 | 128);
819
+ tail_1.u19_1 = tail_1.u19_1 + 3 | 0;
820
+ this_0.l19_1 = this_0.l19_1.u2(new Long(3, 0));
821
+ i = i + 1 | 0;
822
+ } else {
823
+ var tmp;
824
+ if ((i + 1 | 0) < endIndex) {
825
+ // Inline function 'kotlin.code' call
826
+ var p0_1 = i + 1 | 0;
827
+ var this_3 = charSequenceGet(string, p0_1);
828
+ tmp = Char__toInt_impl_vasixd(this_3);
829
+ } else {
830
+ tmp = 0;
831
+ }
832
+ var low = tmp;
833
+ if (c > 56319 || !(56320 <= low ? low <= 57343 : false)) {
834
+ this_0.w1a(63);
835
+ i = i + 1 | 0;
836
+ } else {
837
+ var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
838
+ var tail_2 = this_0.i1a(4);
839
+ tail_2.s19_1[tail_2.u19_1] = toByte(codePoint >> 18 | 240);
840
+ tail_2.s19_1[tail_2.u19_1 + 1 | 0] = toByte(codePoint >> 12 & 63 | 128);
841
+ tail_2.s19_1[tail_2.u19_1 + 2 | 0] = toByte(codePoint >> 6 & 63 | 128);
842
+ tail_2.s19_1[tail_2.u19_1 + 3 | 0] = toByte(codePoint & 63 | 128);
843
+ tail_2.u19_1 = tail_2.u19_1 + 4 | 0;
844
+ this_0.l19_1 = this_0.l19_1.u2(new Long(4, 0));
845
+ i = i + 2 | 0;
846
+ }
847
+ }
848
+ }
849
+ _this__u8e3s4.b1a();
850
+ }
851
+ function commonReadUtf8(_this__u8e3s4, byteCount) {
852
+ // Inline function 'kotlin.require' call
853
+ // Inline function 'kotlin.contracts.contract' call
854
+ if (!(byteCount.z(new Long(0, 0)) >= 0 && byteCount.z(new Long(2147483647, 0)) <= 0)) {
855
+ // Inline function 'kotlinx.io.commonReadUtf8.<anonymous>' call
856
+ var message = 'byteCount (' + byteCount.toString() + ') is not within the range [0..2147483647)';
857
+ throw IllegalArgumentException_init_$Create$(toString(message));
858
+ }
859
+ _this__u8e3s4.p19(byteCount);
860
+ if (byteCount.equals(new Long(0, 0)))
861
+ return '';
862
+ var s = ensureNotNull(_this__u8e3s4.j19_1);
863
+ if (numberToLong(s.t19_1).u2(byteCount).z(toLong(s.u19_1)) > 0) {
864
+ return commonToUtf8String(readByteArray_0(_this__u8e3s4, byteCount.e1()));
865
+ }
866
+ var result = commonToUtf8String(s.s19_1, s.t19_1, s.t19_1 + byteCount.e1() | 0);
867
+ s.t19_1 = s.t19_1 + byteCount.e1() | 0;
868
+ _this__u8e3s4.l19_1 = _this__u8e3s4.l19_1.v2(byteCount);
869
+ if (s.t19_1 === s.u19_1) {
870
+ _this__u8e3s4.z19();
871
+ }
872
+ return result;
873
+ }
874
+ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
875
+ beginIndex = beginIndex === VOID ? 0 : beginIndex;
876
+ endIndex = endIndex === VOID ? _this__u8e3s4.length : endIndex;
877
+ if (beginIndex < 0 || endIndex > _this__u8e3s4.length || beginIndex > endIndex) {
878
+ throw IndexOutOfBoundsException_init_$Create$('size=' + _this__u8e3s4.length + ' beginIndex=' + beginIndex + ' endIndex=' + endIndex);
879
+ }
880
+ var chars = charArray(endIndex - beginIndex | 0);
881
+ var length = 0;
882
+ // Inline function 'kotlinx.io.internal.processUtf16Chars' call
883
+ var index = beginIndex;
884
+ while (index < endIndex) {
885
+ var b0 = _this__u8e3s4[index];
886
+ if (b0 >= 0) {
887
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
888
+ var _unary__edvuaz = length;
889
+ length = _unary__edvuaz + 1 | 0;
890
+ chars[_unary__edvuaz] = numberToChar(b0);
891
+ index = index + 1 | 0;
892
+ while (index < endIndex && _this__u8e3s4[index] >= 0) {
893
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
894
+ var _unary__edvuaz_0 = index;
895
+ index = _unary__edvuaz_0 + 1 | 0;
896
+ var _unary__edvuaz_1 = length;
897
+ length = _unary__edvuaz_1 + 1 | 0;
898
+ chars[_unary__edvuaz_1] = numberToChar(_this__u8e3s4[_unary__edvuaz_0]);
899
+ }
900
+ } else {
901
+ // Inline function 'kotlinx.io.shr' call
902
+ if (b0 >> 5 === -2) {
903
+ var tmp = index;
904
+ var tmp$ret$1;
905
+ $l$block_0: {
906
+ // Inline function 'kotlinx.io.internal.process2Utf8Bytes' call
907
+ var beginIndex_0 = index;
908
+ if (endIndex <= (beginIndex_0 + 1 | 0)) {
909
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
910
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
911
+ var _unary__edvuaz_2 = length;
912
+ length = _unary__edvuaz_2 + 1 | 0;
913
+ chars[_unary__edvuaz_2] = numberToChar(65533);
914
+ tmp$ret$1 = 1;
915
+ break $l$block_0;
916
+ }
917
+ var b0_0 = _this__u8e3s4[beginIndex_0];
918
+ var b1 = _this__u8e3s4[beginIndex_0 + 1 | 0];
919
+ // Inline function 'kotlinx.io.internal.isUtf8Continuation' call
920
+ // Inline function 'kotlinx.io.and' call
921
+ if (!((b1 & 192) === 128)) {
922
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
923
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
924
+ var _unary__edvuaz_3 = length;
925
+ length = _unary__edvuaz_3 + 1 | 0;
926
+ chars[_unary__edvuaz_3] = numberToChar(65533);
927
+ tmp$ret$1 = 1;
928
+ break $l$block_0;
929
+ }
930
+ var codePoint = 3968 ^ b1 ^ b0_0 << 6;
931
+ if (codePoint < 128) {
932
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
933
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
934
+ var _unary__edvuaz_4 = length;
935
+ length = _unary__edvuaz_4 + 1 | 0;
936
+ chars[_unary__edvuaz_4] = numberToChar(65533);
937
+ } else {
938
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
939
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
940
+ var _unary__edvuaz_5 = length;
941
+ length = _unary__edvuaz_5 + 1 | 0;
942
+ chars[_unary__edvuaz_5] = numberToChar(codePoint);
943
+ }
944
+ tmp$ret$1 = 2;
945
+ }
946
+ index = tmp + tmp$ret$1 | 0;
947
+ } else {
948
+ // Inline function 'kotlinx.io.shr' call
949
+ if (b0 >> 4 === -2) {
950
+ var tmp_0 = index;
951
+ var tmp$ret$7;
952
+ $l$block_4: {
953
+ // Inline function 'kotlinx.io.internal.process3Utf8Bytes' call
954
+ var beginIndex_1 = index;
955
+ if (endIndex <= (beginIndex_1 + 2 | 0)) {
956
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
957
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
958
+ var _unary__edvuaz_6 = length;
959
+ length = _unary__edvuaz_6 + 1 | 0;
960
+ chars[_unary__edvuaz_6] = numberToChar(65533);
961
+ var tmp_1;
962
+ if (endIndex <= (beginIndex_1 + 1 | 0)) {
963
+ tmp_1 = true;
964
+ } else {
965
+ // Inline function 'kotlinx.io.internal.isUtf8Continuation' call
966
+ // Inline function 'kotlinx.io.and' call
967
+ tmp_1 = !((_this__u8e3s4[beginIndex_1 + 1 | 0] & 192) === 128);
968
+ }
969
+ if (tmp_1) {
970
+ tmp$ret$7 = 1;
971
+ break $l$block_4;
972
+ } else {
973
+ tmp$ret$7 = 2;
974
+ break $l$block_4;
975
+ }
976
+ }
977
+ var b0_1 = _this__u8e3s4[beginIndex_1];
978
+ var b1_0 = _this__u8e3s4[beginIndex_1 + 1 | 0];
979
+ // Inline function 'kotlinx.io.internal.isUtf8Continuation' call
980
+ // Inline function 'kotlinx.io.and' call
981
+ if (!((b1_0 & 192) === 128)) {
982
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
983
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
984
+ var _unary__edvuaz_7 = length;
985
+ length = _unary__edvuaz_7 + 1 | 0;
986
+ chars[_unary__edvuaz_7] = numberToChar(65533);
987
+ tmp$ret$7 = 1;
988
+ break $l$block_4;
989
+ }
990
+ var b2 = _this__u8e3s4[beginIndex_1 + 2 | 0];
991
+ // Inline function 'kotlinx.io.internal.isUtf8Continuation' call
992
+ // Inline function 'kotlinx.io.and' call
993
+ if (!((b2 & 192) === 128)) {
994
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
995
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
996
+ var _unary__edvuaz_8 = length;
997
+ length = _unary__edvuaz_8 + 1 | 0;
998
+ chars[_unary__edvuaz_8] = numberToChar(65533);
999
+ tmp$ret$7 = 2;
1000
+ break $l$block_4;
1001
+ }
1002
+ var codePoint_0 = -123008 ^ b2 ^ b1_0 << 6 ^ b0_1 << 12;
1003
+ if (codePoint_0 < 2048) {
1004
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1005
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1006
+ var _unary__edvuaz_9 = length;
1007
+ length = _unary__edvuaz_9 + 1 | 0;
1008
+ chars[_unary__edvuaz_9] = numberToChar(65533);
1009
+ } else if (55296 <= codePoint_0 ? codePoint_0 <= 57343 : false) {
1010
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1011
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1012
+ var _unary__edvuaz_10 = length;
1013
+ length = _unary__edvuaz_10 + 1 | 0;
1014
+ chars[_unary__edvuaz_10] = numberToChar(65533);
1015
+ } else {
1016
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1017
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1018
+ var _unary__edvuaz_11 = length;
1019
+ length = _unary__edvuaz_11 + 1 | 0;
1020
+ chars[_unary__edvuaz_11] = numberToChar(codePoint_0);
1021
+ }
1022
+ tmp$ret$7 = 3;
1023
+ }
1024
+ index = tmp_0 + tmp$ret$7 | 0;
1025
+ } else {
1026
+ // Inline function 'kotlinx.io.shr' call
1027
+ if (b0 >> 3 === -2) {
1028
+ var tmp_2 = index;
1029
+ var tmp$ret$15;
1030
+ $l$block_10: {
1031
+ // Inline function 'kotlinx.io.internal.process4Utf8Bytes' call
1032
+ var beginIndex_2 = index;
1033
+ if (endIndex <= (beginIndex_2 + 3 | 0)) {
1034
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1035
+ if (!(65533 === 65533)) {
1036
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1037
+ var _unary__edvuaz_12 = length;
1038
+ length = _unary__edvuaz_12 + 1 | 0;
1039
+ chars[_unary__edvuaz_12] = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
1040
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1041
+ var _unary__edvuaz_13 = length;
1042
+ length = _unary__edvuaz_13 + 1 | 0;
1043
+ chars[_unary__edvuaz_13] = numberToChar((65533 & 1023) + 56320 | 0);
1044
+ } else {
1045
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1046
+ var _unary__edvuaz_14 = length;
1047
+ length = _unary__edvuaz_14 + 1 | 0;
1048
+ chars[_unary__edvuaz_14] = _Char___init__impl__6a9atx(65533);
1049
+ }
1050
+ var tmp_3;
1051
+ if (endIndex <= (beginIndex_2 + 1 | 0)) {
1052
+ tmp_3 = true;
1053
+ } else {
1054
+ // Inline function 'kotlinx.io.internal.isUtf8Continuation' call
1055
+ // Inline function 'kotlinx.io.and' call
1056
+ tmp_3 = !((_this__u8e3s4[beginIndex_2 + 1 | 0] & 192) === 128);
1057
+ }
1058
+ if (tmp_3) {
1059
+ tmp$ret$15 = 1;
1060
+ break $l$block_10;
1061
+ } else {
1062
+ var tmp_4;
1063
+ if (endIndex <= (beginIndex_2 + 2 | 0)) {
1064
+ tmp_4 = true;
1065
+ } else {
1066
+ // Inline function 'kotlinx.io.internal.isUtf8Continuation' call
1067
+ // Inline function 'kotlinx.io.and' call
1068
+ tmp_4 = !((_this__u8e3s4[beginIndex_2 + 2 | 0] & 192) === 128);
1069
+ }
1070
+ if (tmp_4) {
1071
+ tmp$ret$15 = 2;
1072
+ break $l$block_10;
1073
+ } else {
1074
+ tmp$ret$15 = 3;
1075
+ break $l$block_10;
1076
+ }
1077
+ }
1078
+ }
1079
+ var b0_2 = _this__u8e3s4[beginIndex_2];
1080
+ var b1_1 = _this__u8e3s4[beginIndex_2 + 1 | 0];
1081
+ // Inline function 'kotlinx.io.internal.isUtf8Continuation' call
1082
+ // Inline function 'kotlinx.io.and' call
1083
+ if (!((b1_1 & 192) === 128)) {
1084
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1085
+ if (!(65533 === 65533)) {
1086
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1087
+ var _unary__edvuaz_15 = length;
1088
+ length = _unary__edvuaz_15 + 1 | 0;
1089
+ chars[_unary__edvuaz_15] = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
1090
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1091
+ var _unary__edvuaz_16 = length;
1092
+ length = _unary__edvuaz_16 + 1 | 0;
1093
+ chars[_unary__edvuaz_16] = numberToChar((65533 & 1023) + 56320 | 0);
1094
+ } else {
1095
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1096
+ var _unary__edvuaz_17 = length;
1097
+ length = _unary__edvuaz_17 + 1 | 0;
1098
+ chars[_unary__edvuaz_17] = _Char___init__impl__6a9atx(65533);
1099
+ }
1100
+ tmp$ret$15 = 1;
1101
+ break $l$block_10;
1102
+ }
1103
+ var b2_0 = _this__u8e3s4[beginIndex_2 + 2 | 0];
1104
+ // Inline function 'kotlinx.io.internal.isUtf8Continuation' call
1105
+ // Inline function 'kotlinx.io.and' call
1106
+ if (!((b2_0 & 192) === 128)) {
1107
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1108
+ if (!(65533 === 65533)) {
1109
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1110
+ var _unary__edvuaz_18 = length;
1111
+ length = _unary__edvuaz_18 + 1 | 0;
1112
+ chars[_unary__edvuaz_18] = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
1113
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1114
+ var _unary__edvuaz_19 = length;
1115
+ length = _unary__edvuaz_19 + 1 | 0;
1116
+ chars[_unary__edvuaz_19] = numberToChar((65533 & 1023) + 56320 | 0);
1117
+ } else {
1118
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1119
+ var _unary__edvuaz_20 = length;
1120
+ length = _unary__edvuaz_20 + 1 | 0;
1121
+ chars[_unary__edvuaz_20] = _Char___init__impl__6a9atx(65533);
1122
+ }
1123
+ tmp$ret$15 = 2;
1124
+ break $l$block_10;
1125
+ }
1126
+ var b3 = _this__u8e3s4[beginIndex_2 + 3 | 0];
1127
+ // Inline function 'kotlinx.io.internal.isUtf8Continuation' call
1128
+ // Inline function 'kotlinx.io.and' call
1129
+ if (!((b3 & 192) === 128)) {
1130
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1131
+ if (!(65533 === 65533)) {
1132
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1133
+ var _unary__edvuaz_21 = length;
1134
+ length = _unary__edvuaz_21 + 1 | 0;
1135
+ chars[_unary__edvuaz_21] = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
1136
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1137
+ var _unary__edvuaz_22 = length;
1138
+ length = _unary__edvuaz_22 + 1 | 0;
1139
+ chars[_unary__edvuaz_22] = numberToChar((65533 & 1023) + 56320 | 0);
1140
+ } else {
1141
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1142
+ var _unary__edvuaz_23 = length;
1143
+ length = _unary__edvuaz_23 + 1 | 0;
1144
+ chars[_unary__edvuaz_23] = _Char___init__impl__6a9atx(65533);
1145
+ }
1146
+ tmp$ret$15 = 3;
1147
+ break $l$block_10;
1148
+ }
1149
+ var codePoint_1 = 3678080 ^ b3 ^ b2_0 << 6 ^ b1_1 << 12 ^ b0_2 << 18;
1150
+ if (codePoint_1 > 1114111) {
1151
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1152
+ if (!(65533 === 65533)) {
1153
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1154
+ var _unary__edvuaz_24 = length;
1155
+ length = _unary__edvuaz_24 + 1 | 0;
1156
+ chars[_unary__edvuaz_24] = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
1157
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1158
+ var _unary__edvuaz_25 = length;
1159
+ length = _unary__edvuaz_25 + 1 | 0;
1160
+ chars[_unary__edvuaz_25] = numberToChar((65533 & 1023) + 56320 | 0);
1161
+ } else {
1162
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1163
+ var _unary__edvuaz_26 = length;
1164
+ length = _unary__edvuaz_26 + 1 | 0;
1165
+ chars[_unary__edvuaz_26] = _Char___init__impl__6a9atx(65533);
1166
+ }
1167
+ } else if (55296 <= codePoint_1 ? codePoint_1 <= 57343 : false) {
1168
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1169
+ if (!(65533 === 65533)) {
1170
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1171
+ var _unary__edvuaz_27 = length;
1172
+ length = _unary__edvuaz_27 + 1 | 0;
1173
+ chars[_unary__edvuaz_27] = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
1174
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1175
+ var _unary__edvuaz_28 = length;
1176
+ length = _unary__edvuaz_28 + 1 | 0;
1177
+ chars[_unary__edvuaz_28] = numberToChar((65533 & 1023) + 56320 | 0);
1178
+ } else {
1179
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1180
+ var _unary__edvuaz_29 = length;
1181
+ length = _unary__edvuaz_29 + 1 | 0;
1182
+ chars[_unary__edvuaz_29] = _Char___init__impl__6a9atx(65533);
1183
+ }
1184
+ } else if (codePoint_1 < 65536) {
1185
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1186
+ if (!(65533 === 65533)) {
1187
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1188
+ var _unary__edvuaz_30 = length;
1189
+ length = _unary__edvuaz_30 + 1 | 0;
1190
+ chars[_unary__edvuaz_30] = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
1191
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1192
+ var _unary__edvuaz_31 = length;
1193
+ length = _unary__edvuaz_31 + 1 | 0;
1194
+ chars[_unary__edvuaz_31] = numberToChar((65533 & 1023) + 56320 | 0);
1195
+ } else {
1196
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1197
+ var _unary__edvuaz_32 = length;
1198
+ length = _unary__edvuaz_32 + 1 | 0;
1199
+ chars[_unary__edvuaz_32] = _Char___init__impl__6a9atx(65533);
1200
+ }
1201
+ } else {
1202
+ // Inline function 'kotlinx.io.internal.processUtf16Chars.<anonymous>' call
1203
+ if (!(codePoint_1 === 65533)) {
1204
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1205
+ var _unary__edvuaz_33 = length;
1206
+ length = _unary__edvuaz_33 + 1 | 0;
1207
+ chars[_unary__edvuaz_33] = numberToChar((codePoint_1 >>> 10 | 0) + 55232 | 0);
1208
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1209
+ var _unary__edvuaz_34 = length;
1210
+ length = _unary__edvuaz_34 + 1 | 0;
1211
+ chars[_unary__edvuaz_34] = numberToChar((codePoint_1 & 1023) + 56320 | 0);
1212
+ } else {
1213
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1214
+ var _unary__edvuaz_35 = length;
1215
+ length = _unary__edvuaz_35 + 1 | 0;
1216
+ chars[_unary__edvuaz_35] = _Char___init__impl__6a9atx(65533);
1217
+ }
1218
+ }
1219
+ tmp$ret$15 = 4;
1220
+ }
1221
+ index = tmp_2 + tmp$ret$15 | 0;
1222
+ } else {
1223
+ // Inline function 'kotlinx.io.internal.commonToUtf8String.<anonymous>' call
1224
+ var _unary__edvuaz_36 = length;
1225
+ length = _unary__edvuaz_36 + 1 | 0;
1226
+ chars[_unary__edvuaz_36] = _Char___init__impl__6a9atx(65533);
1227
+ index = index + 1 | 0;
1228
+ }
1229
+ }
1230
+ }
1231
+ }
1232
+ }
1233
+ return concatToString(chars, 0, length);
1234
+ }
1235
+ function IOException_init_$Init$($this) {
1236
+ Exception_init_$Init$($this);
1237
+ IOException.call($this);
1238
+ return $this;
1239
+ }
1240
+ function IOException_init_$Create$() {
1241
+ var tmp = IOException_init_$Init$(objectCreate(protoOf(IOException)));
1242
+ captureStack(tmp, IOException_init_$Create$);
1243
+ return tmp;
1244
+ }
1245
+ function IOException_init_$Init$_0(message, $this) {
1246
+ Exception_init_$Init$_0(message, $this);
1247
+ IOException.call($this);
1248
+ return $this;
1249
+ }
1250
+ function IOException_init_$Create$_0(message) {
1251
+ var tmp = IOException_init_$Init$_0(message, objectCreate(protoOf(IOException)));
1252
+ captureStack(tmp, IOException_init_$Create$_0);
1253
+ return tmp;
1254
+ }
1255
+ function IOException_init_$Init$_1(message, cause, $this) {
1256
+ Exception_init_$Init$_1(message, cause, $this);
1257
+ IOException.call($this);
1258
+ return $this;
1259
+ }
1260
+ function IOException_init_$Create$_1(message, cause) {
1261
+ var tmp = IOException_init_$Init$_1(message, cause, objectCreate(protoOf(IOException)));
1262
+ captureStack(tmp, IOException_init_$Create$_1);
1263
+ return tmp;
1264
+ }
1265
+ function IOException() {
1266
+ captureStack(this, IOException);
1267
+ }
1268
+ function EOFException_init_$Init$($this) {
1269
+ IOException_init_$Init$($this);
1270
+ EOFException.call($this);
1271
+ return $this;
1272
+ }
1273
+ function EOFException_init_$Create$() {
1274
+ var tmp = EOFException_init_$Init$(objectCreate(protoOf(EOFException)));
1275
+ captureStack(tmp, EOFException_init_$Create$);
1276
+ return tmp;
1277
+ }
1278
+ function EOFException_init_$Init$_0(message, $this) {
1279
+ IOException_init_$Init$_0(message, $this);
1280
+ EOFException.call($this);
1281
+ return $this;
1282
+ }
1283
+ function EOFException_init_$Create$_0(message) {
1284
+ var tmp = EOFException_init_$Init$_0(message, objectCreate(protoOf(EOFException)));
1285
+ captureStack(tmp, EOFException_init_$Create$_0);
1286
+ return tmp;
1287
+ }
1288
+ function EOFException() {
1289
+ captureStack(this, EOFException);
1290
+ }
1291
+ function SegmentPool() {
1292
+ this.j1a_1 = 0;
1293
+ this.k1a_1 = 0;
1294
+ }
1295
+ protoOf(SegmentPool).l1a = function () {
1296
+ return Companion_instance.e1b();
1297
+ };
1298
+ protoOf(SegmentPool).b1b = function (segment) {
1299
+ };
1300
+ protoOf(SegmentPool).g1b = function () {
1301
+ return AlwaysSharedCopyTracker_getInstance();
1302
+ };
1303
+ var SegmentPool_instance;
1304
+ function SegmentPool_getInstance() {
1305
+ return SegmentPool_instance;
1306
+ }
1307
+ //region block: post-declaration
1308
+ protoOf(Buffer).o1a = write$default;
1309
+ //endregion
1310
+ //region block: init
1311
+ Companion_instance = new Companion();
1312
+ SegmentPool_instance = new SegmentPool();
1313
+ //endregion
1314
+ //region block: exports
1315
+ _.$_$ = _.$_$ || {};
1316
+ _.$_$.a = EOFException_init_$Create$_0;
1317
+ _.$_$.b = IOException_init_$Init$_0;
1318
+ _.$_$.c = IOException_init_$Create$_0;
1319
+ _.$_$.d = IOException_init_$Init$_1;
1320
+ _.$_$.e = IOException_init_$Create$_1;
1321
+ _.$_$.f = Buffer;
1322
+ _.$_$.g = IOException;
1323
+ _.$_$.h = Source;
1324
+ _.$_$.i = readByteArray_0;
1325
+ _.$_$.j = readByteArray;
1326
+ _.$_$.k = readString;
1327
+ _.$_$.l = readString_0;
1328
+ _.$_$.m = writeString;
1329
+ //endregion
1330
+ return _;
1331
+ }(module.exports, require('./kotlin-kotlin-stdlib.js')));
1332
+
1333
+ //# sourceMappingURL=kotlinx-io-kotlinx-io-core.js.map