@doordeck/doordeck-headless-sdk 0.107.0 → 0.109.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 (26) hide show
  1. package/README.md +2 -2
  2. package/kotlin/Kermit-kermit-core.js +44 -44
  3. package/kotlin/Kermit-kermit.js +4 -4
  4. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1393 -1393
  5. package/kotlin/MultiplatformSettings-multiplatform-settings.js +10 -10
  6. package/kotlin/doordeck-sdk.js +9596 -9786
  7. package/kotlin/kotlin-kotlin-stdlib.js +6 -6
  8. package/kotlin/kotlinx-coroutines-core.js +855 -844
  9. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +32 -32
  10. package/kotlin/kotlinx-io-kotlinx-io-core.js +630 -428
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1738 -1742
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1399 -1399
  13. package/kotlin/ktor-ktor-client-ktor-client-core.js +1895 -1895
  14. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +245 -241
  15. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +135 -135
  16. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +658 -658
  17. package/kotlin/ktor-ktor-http-ktor-http-cio.js +329 -329
  18. package/kotlin/ktor-ktor-http.js +677 -677
  19. package/kotlin/ktor-ktor-io.js +976 -888
  20. package/kotlin/ktor-ktor-shared-ktor-events.js +5 -5
  21. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
  22. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +133 -133
  23. package/kotlin/ktor-ktor-shared-ktor-serialization.js +58 -58
  24. package/kotlin/ktor-ktor-shared-ktor-websockets.js +38 -38
  25. package/kotlin/ktor-ktor-utils.js +644 -644
  26. package/package.json +1 -1
@@ -16,8 +16,8 @@
16
16
  var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.i1;
17
17
  var initMetadataForClass = kotlin_kotlin.$_$.sa;
18
18
  var VOID = kotlin_kotlin.$_$.h;
19
- var UnsafeByteStringOperations_instance = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.b;
20
19
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
20
+ var UnsafeByteStringOperations_instance = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.b;
21
21
  var AutoCloseable = kotlin_kotlin.$_$.af;
22
22
  var objectCreate = kotlin_kotlin.$_$.tb;
23
23
  var initMetadataForCompanion = kotlin_kotlin.$_$.ta;
@@ -44,10 +44,10 @@
44
44
  endIndex = endIndex === VOID ? source.length : endIndex;
45
45
  var tmp;
46
46
  if ($super === VOID) {
47
- this.w1i(source, startIndex, endIndex);
47
+ this.x1i(source, startIndex, endIndex);
48
48
  tmp = Unit_instance;
49
49
  } else {
50
- tmp = $super.w1i.call(this, source, startIndex, endIndex);
50
+ tmp = $super.x1i.call(this, source, startIndex, endIndex);
51
51
  }
52
52
  return tmp;
53
53
  }
@@ -99,20 +99,20 @@
99
99
  throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.s().toString() + ', required: ' + byteCount.toString() + ')');
100
100
  }
101
101
  function Buffer() {
102
- this.j1h_1 = null;
103
102
  this.k1h_1 = null;
104
- this.l1h_1 = new Long(0, 0);
103
+ this.l1h_1 = null;
104
+ this.m1h_1 = new Long(0, 0);
105
105
  }
106
106
  protoOf(Buffer).s = function () {
107
- return this.l1h_1;
107
+ return this.m1h_1;
108
108
  };
109
- protoOf(Buffer).m1h = function () {
109
+ protoOf(Buffer).n1h = function () {
110
110
  return this;
111
111
  };
112
- protoOf(Buffer).n1h = function () {
112
+ protoOf(Buffer).o1h = function () {
113
113
  return this.s().equals(new Long(0, 0));
114
114
  };
115
- protoOf(Buffer).o1h = function (byteCount) {
115
+ protoOf(Buffer).p1h = function (byteCount) {
116
116
  // Inline function 'kotlin.require' call
117
117
  if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
118
118
  var message = 'byteCount: ' + byteCount.toString();
@@ -122,7 +122,7 @@
122
122
  throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.s().toString() + ', required: ' + byteCount.toString() + ')');
123
123
  }
124
124
  };
125
- protoOf(Buffer).p1h = function (byteCount) {
125
+ protoOf(Buffer).q1h = function (byteCount) {
126
126
  // Inline function 'kotlin.require' call
127
127
  if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
128
128
  var message = 'byteCount: ' + byteCount.toString() + ' < 0';
@@ -130,8 +130,8 @@
130
130
  }
131
131
  return this.s().e1(byteCount) >= 0;
132
132
  };
133
- protoOf(Buffer).q1h = function () {
134
- var tmp0_elvis_lhs = this.j1h_1;
133
+ protoOf(Buffer).r1h = function () {
134
+ var tmp0_elvis_lhs = this.k1h_1;
135
135
  var tmp;
136
136
  if (tmp0_elvis_lhs == null) {
137
137
  throwEof(this, new Long(1, 0));
@@ -141,18 +141,18 @@
141
141
  var segment = tmp;
142
142
  var segmentSize = segment.s();
143
143
  if (segmentSize === 0) {
144
- this.y1h();
145
- return this.q1h();
144
+ this.z1h();
145
+ return this.r1h();
146
146
  }
147
- var v = segment.z1h();
148
- this.l1h_1 = this.l1h_1.a3(new Long(1, 0));
147
+ var v = segment.a1i();
148
+ this.m1h_1 = this.m1h_1.a3(new Long(1, 0));
149
149
  if (segmentSize === 1) {
150
- this.y1h();
150
+ this.z1h();
151
151
  }
152
152
  return v;
153
153
  };
154
- protoOf(Buffer).a1i = function () {
155
- var tmp0_elvis_lhs = this.j1h_1;
154
+ protoOf(Buffer).b1i = function () {
155
+ var tmp0_elvis_lhs = this.k1h_1;
156
156
  var tmp;
157
157
  if (tmp0_elvis_lhs == null) {
158
158
  throwEof(this, new Long(2, 0));
@@ -162,120 +162,120 @@
162
162
  var segment = tmp;
163
163
  var segmentSize = segment.s();
164
164
  if (segmentSize < 2) {
165
- this.o1h(new Long(2, 0));
165
+ this.p1h(new Long(2, 0));
166
166
  if (segmentSize === 0) {
167
- this.y1h();
168
- return this.a1i();
167
+ this.z1h();
168
+ return this.b1i();
169
169
  }
170
170
  // Inline function 'kotlinx.io.and' call
171
- var tmp_0 = (this.q1h() & 255) << 8;
171
+ var tmp_0 = (this.r1h() & 255) << 8;
172
172
  // Inline function 'kotlinx.io.and' call
173
- var tmp$ret$1 = this.q1h() & 255;
173
+ var tmp$ret$1 = this.r1h() & 255;
174
174
  return toShort(tmp_0 | tmp$ret$1);
175
175
  }
176
- var v = segment.b1i();
177
- this.l1h_1 = this.l1h_1.a3(new Long(2, 0));
176
+ var v = segment.c1i();
177
+ this.m1h_1 = this.m1h_1.a3(new Long(2, 0));
178
178
  if (segmentSize === 2) {
179
- this.y1h();
179
+ this.z1h();
180
180
  }
181
181
  return v;
182
182
  };
183
- protoOf(Buffer).c1i = function () {
183
+ protoOf(Buffer).d1i = function () {
184
184
  return Unit_instance;
185
185
  };
186
- protoOf(Buffer).d1i = function (out, startIndex, endIndex) {
186
+ protoOf(Buffer).e1i = function (out, startIndex, endIndex) {
187
187
  checkBounds(this.s(), startIndex, endIndex);
188
188
  if (startIndex.equals(endIndex))
189
189
  return Unit_instance;
190
190
  var currentOffset = startIndex;
191
191
  var remainingByteCount = endIndex.a3(startIndex);
192
- out.l1h_1 = out.l1h_1.z2(remainingByteCount);
193
- var s = this.j1h_1;
194
- while (currentOffset.e1(toLong(ensureNotNull(s).t1h_1 - s.s1h_1 | 0)) >= 0) {
195
- currentOffset = currentOffset.a3(toLong(s.t1h_1 - s.s1h_1 | 0));
196
- s = s.w1h_1;
192
+ out.m1h_1 = out.m1h_1.z2(remainingByteCount);
193
+ var s = this.k1h_1;
194
+ while (currentOffset.e1(toLong(ensureNotNull(s).u1h_1 - s.t1h_1 | 0)) >= 0) {
195
+ currentOffset = currentOffset.a3(toLong(s.u1h_1 - s.t1h_1 | 0));
196
+ s = s.x1h_1;
197
197
  }
198
198
  while (remainingByteCount.e1(new Long(0, 0)) > 0) {
199
- var copy = ensureNotNull(s).e1i();
200
- copy.s1h_1 = copy.s1h_1 + currentOffset.j1() | 0;
199
+ var copy = ensureNotNull(s).f1i();
200
+ copy.t1h_1 = copy.t1h_1 + currentOffset.j1() | 0;
201
201
  var tmp = copy;
202
- var tmp0 = copy.s1h_1 + remainingByteCount.j1() | 0;
202
+ var tmp0 = copy.t1h_1 + remainingByteCount.j1() | 0;
203
203
  // Inline function 'kotlin.comparisons.minOf' call
204
- var b = copy.t1h_1;
205
- tmp.t1h_1 = Math.min(tmp0, b);
204
+ var b = copy.u1h_1;
205
+ tmp.u1h_1 = Math.min(tmp0, b);
206
206
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
207
- if (out.j1h_1 == null) {
208
- out.j1h_1 = copy;
207
+ if (out.k1h_1 == null) {
209
208
  out.k1h_1 = copy;
209
+ out.l1h_1 = copy;
210
210
  } else if (false) {
211
- out.k1h_1 = ensureNotNull(out.k1h_1).f1i(copy).g1i();
212
- if (ensureNotNull(out.k1h_1).x1h_1 == null) {
213
- out.j1h_1 = out.k1h_1;
211
+ out.l1h_1 = ensureNotNull(out.l1h_1).g1i(copy).h1i();
212
+ if (ensureNotNull(out.l1h_1).y1h_1 == null) {
213
+ out.k1h_1 = out.l1h_1;
214
214
  }
215
215
  } else {
216
- out.k1h_1 = ensureNotNull(out.k1h_1).f1i(copy);
216
+ out.l1h_1 = ensureNotNull(out.l1h_1).g1i(copy);
217
217
  }
218
- remainingByteCount = remainingByteCount.a3(toLong(copy.t1h_1 - copy.s1h_1 | 0));
218
+ remainingByteCount = remainingByteCount.a3(toLong(copy.u1h_1 - copy.t1h_1 | 0));
219
219
  currentOffset = new Long(0, 0);
220
- s = s.w1h_1;
220
+ s = s.x1h_1;
221
221
  }
222
222
  };
223
- protoOf(Buffer).h1i = function () {
223
+ protoOf(Buffer).i1i = function () {
224
224
  var result = this.s();
225
225
  if (result.equals(new Long(0, 0)))
226
226
  return new Long(0, 0);
227
- var tail = ensureNotNull(this.k1h_1);
228
- if (tail.t1h_1 < 8192 && tail.v1h_1) {
229
- result = result.a3(toLong(tail.t1h_1 - tail.s1h_1 | 0));
227
+ var tail = ensureNotNull(this.l1h_1);
228
+ if (tail.u1h_1 < 8192 && tail.w1h_1) {
229
+ result = result.a3(toLong(tail.u1h_1 - tail.t1h_1 | 0));
230
230
  }
231
231
  return result;
232
232
  };
233
- protoOf(Buffer).i1i = function (position) {
233
+ protoOf(Buffer).j1i = function (position) {
234
234
  if (position.e1(new Long(0, 0)) < 0 || position.e1(this.s()) >= 0) {
235
235
  throw IndexOutOfBoundsException_init_$Create$('position (' + position.toString() + ') is not within the range [0..size(' + this.s().toString() + '))');
236
236
  }
237
237
  if (position.equals(new Long(0, 0))) {
238
- return ensureNotNull(this.j1h_1).j1i(0);
238
+ return ensureNotNull(this.k1h_1).k1i(0);
239
239
  }
240
240
  // Inline function 'kotlinx.io.seek' call
241
- if (this.j1h_1 == null) {
241
+ if (this.k1h_1 == null) {
242
242
  var offset = new Long(-1, -1);
243
- return ensureNotNull(null).j1i(position.a3(offset).j1());
243
+ return ensureNotNull(null).k1i(position.a3(offset).j1());
244
244
  }
245
245
  if (this.s().a3(position).e1(position) < 0) {
246
- var s = this.k1h_1;
246
+ var s = this.l1h_1;
247
247
  var offset_0 = this.s();
248
248
  $l$loop: while (!(s == null) && offset_0.e1(position) > 0) {
249
- offset_0 = offset_0.a3(toLong(s.t1h_1 - s.s1h_1 | 0));
249
+ offset_0 = offset_0.a3(toLong(s.u1h_1 - s.t1h_1 | 0));
250
250
  if (offset_0.e1(position) <= 0)
251
251
  break $l$loop;
252
- s = s.x1h_1;
252
+ s = s.y1h_1;
253
253
  }
254
254
  var tmp4 = s;
255
255
  var offset_1 = offset_0;
256
- return ensureNotNull(tmp4).j1i(position.a3(offset_1).j1());
256
+ return ensureNotNull(tmp4).k1i(position.a3(offset_1).j1());
257
257
  } else {
258
- var s_0 = this.j1h_1;
258
+ var s_0 = this.k1h_1;
259
259
  var offset_2 = new Long(0, 0);
260
260
  $l$loop_0: while (!(s_0 == null)) {
261
261
  var tmp0 = offset_2;
262
262
  // Inline function 'kotlin.Long.plus' call
263
- var other = s_0.t1h_1 - s_0.s1h_1 | 0;
263
+ var other = s_0.u1h_1 - s_0.t1h_1 | 0;
264
264
  var nextOffset = tmp0.z2(toLong(other));
265
265
  if (nextOffset.e1(position) > 0)
266
266
  break $l$loop_0;
267
- s_0 = s_0.w1h_1;
267
+ s_0 = s_0.x1h_1;
268
268
  offset_2 = nextOffset;
269
269
  }
270
270
  var tmp6 = s_0;
271
271
  var offset_3 = offset_2;
272
- return ensureNotNull(tmp6).j1i(position.a3(offset_3).j1());
272
+ return ensureNotNull(tmp6).k1i(position.a3(offset_3).j1());
273
273
  }
274
274
  };
275
275
  protoOf(Buffer).e2 = function () {
276
- return this.k1i(this.s());
276
+ return this.l1i(this.s());
277
277
  };
278
- protoOf(Buffer).k1i = function (byteCount) {
278
+ protoOf(Buffer).l1i = function (byteCount) {
279
279
  // Inline function 'kotlinx.io.checkByteCount' call
280
280
  // Inline function 'kotlin.require' call
281
281
  if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
@@ -284,7 +284,7 @@
284
284
  }
285
285
  var remainingByteCount = byteCount;
286
286
  while (remainingByteCount.e1(new Long(0, 0)) > 0) {
287
- var tmp0_elvis_lhs = this.j1h_1;
287
+ var tmp0_elvis_lhs = this.k1h_1;
288
288
  var tmp;
289
289
  if (tmp0_elvis_lhs == null) {
290
290
  throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
@@ -294,23 +294,23 @@
294
294
  var head = tmp;
295
295
  var tmp1 = remainingByteCount;
296
296
  // Inline function 'kotlinx.io.minOf' call
297
- var b = head.t1h_1 - head.s1h_1 | 0;
297
+ var b = head.u1h_1 - head.t1h_1 | 0;
298
298
  // Inline function 'kotlin.comparisons.minOf' call
299
299
  var b_0 = toLong(b);
300
300
  var toSkip = (tmp1.e1(b_0) <= 0 ? tmp1 : b_0).j1();
301
- this.l1h_1 = this.l1h_1.a3(toLong(toSkip));
301
+ this.m1h_1 = this.m1h_1.a3(toLong(toSkip));
302
302
  remainingByteCount = remainingByteCount.a3(toLong(toSkip));
303
- head.s1h_1 = head.s1h_1 + toSkip | 0;
304
- if (head.s1h_1 === head.t1h_1) {
305
- this.y1h();
303
+ head.t1h_1 = head.t1h_1 + toSkip | 0;
304
+ if (head.t1h_1 === head.u1h_1) {
305
+ this.z1h();
306
306
  }
307
307
  }
308
308
  };
309
- protoOf(Buffer).l1i = function (sink, startIndex, endIndex) {
309
+ protoOf(Buffer).m1i = function (sink, startIndex, endIndex) {
310
310
  // Inline function 'kotlinx.io.checkBounds' call
311
311
  var size = sink.length;
312
312
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
313
- var tmp0_elvis_lhs = this.j1h_1;
313
+ var tmp0_elvis_lhs = this.k1h_1;
314
314
  var tmp;
315
315
  if (tmp0_elvis_lhs == null) {
316
316
  return -1;
@@ -322,14 +322,14 @@
322
322
  // Inline function 'kotlin.comparisons.minOf' call
323
323
  var b = s.s();
324
324
  var toCopy = Math.min(tmp3, b);
325
- s.m1i(sink, startIndex, startIndex + toCopy | 0);
326
- this.l1h_1 = this.l1h_1.a3(toLong(toCopy));
325
+ s.n1i(sink, startIndex, startIndex + toCopy | 0);
326
+ this.m1h_1 = this.m1h_1.a3(toLong(toCopy));
327
327
  if (isEmpty(s)) {
328
- this.y1h();
328
+ this.z1h();
329
329
  }
330
330
  return toCopy;
331
331
  };
332
- protoOf(Buffer).n1i = function (sink, byteCount) {
332
+ protoOf(Buffer).o1i = function (sink, byteCount) {
333
333
  // Inline function 'kotlinx.io.checkByteCount' call
334
334
  // Inline function 'kotlin.require' call
335
335
  if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
@@ -339,10 +339,10 @@
339
339
  if (this.s().equals(new Long(0, 0)))
340
340
  return new Long(-1, -1);
341
341
  var bytesWritten = byteCount.e1(this.s()) > 0 ? this.s() : byteCount;
342
- sink.o1i(this, bytesWritten);
342
+ sink.p1i(this, bytesWritten);
343
343
  return bytesWritten;
344
344
  };
345
- protoOf(Buffer).p1i = function (sink, byteCount) {
345
+ protoOf(Buffer).q1i = function (sink, byteCount) {
346
346
  // Inline function 'kotlinx.io.checkByteCount' call
347
347
  // Inline function 'kotlin.require' call
348
348
  if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
@@ -350,62 +350,62 @@
350
350
  throw IllegalArgumentException_init_$Create$(toString(message));
351
351
  }
352
352
  if (this.s().e1(byteCount) < 0) {
353
- sink.o1i(this, this.s());
353
+ sink.p1i(this, this.s());
354
354
  throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.s().toString() + ' bytes were written.');
355
355
  }
356
- sink.o1i(this, byteCount);
356
+ sink.p1i(this, byteCount);
357
357
  };
358
- protoOf(Buffer).q1i = function (sink) {
358
+ protoOf(Buffer).r1i = function (sink) {
359
359
  var byteCount = this.s();
360
360
  if (byteCount.e1(new Long(0, 0)) > 0) {
361
- sink.o1i(this, byteCount);
361
+ sink.p1i(this, byteCount);
362
362
  }
363
363
  return byteCount;
364
364
  };
365
- protoOf(Buffer).r1i = function () {
365
+ protoOf(Buffer).s1i = function () {
366
366
  return buffered(new PeekSource(this));
367
367
  };
368
- protoOf(Buffer).s1i = function (minimumCapacity) {
368
+ protoOf(Buffer).t1i = function (minimumCapacity) {
369
369
  // Inline function 'kotlin.require' call
370
370
  if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
371
371
  var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
372
372
  throw IllegalArgumentException_init_$Create$(toString(message));
373
373
  }
374
- if (this.k1h_1 == null) {
375
- var result = SegmentPool_instance.v1i();
376
- this.j1h_1 = result;
374
+ if (this.l1h_1 == null) {
375
+ var result = SegmentPool_instance.w1i();
377
376
  this.k1h_1 = result;
377
+ this.l1h_1 = result;
378
378
  return result;
379
379
  }
380
- var t = ensureNotNull(this.k1h_1);
381
- if ((t.t1h_1 + minimumCapacity | 0) > 8192 || !t.v1h_1) {
382
- var newTail = t.f1i(SegmentPool_instance.v1i());
383
- this.k1h_1 = newTail;
380
+ var t = ensureNotNull(this.l1h_1);
381
+ if ((t.u1h_1 + minimumCapacity | 0) > 8192 || !t.w1h_1) {
382
+ var newTail = t.g1i(SegmentPool_instance.w1i());
383
+ this.l1h_1 = newTail;
384
384
  return newTail;
385
385
  }
386
386
  return t;
387
387
  };
388
- protoOf(Buffer).w1i = function (source, startIndex, endIndex) {
388
+ protoOf(Buffer).x1i = function (source, startIndex, endIndex) {
389
389
  // Inline function 'kotlinx.io.checkBounds' call
390
390
  var size = source.length;
391
391
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
392
392
  var currentOffset = startIndex;
393
393
  while (currentOffset < endIndex) {
394
- var tail = this.s1i(1);
394
+ var tail = this.t1i(1);
395
395
  var tmp3 = endIndex - currentOffset | 0;
396
396
  // Inline function 'kotlin.comparisons.minOf' call
397
- var b = tail.x1i();
397
+ var b = tail.y1i();
398
398
  var toCopy = Math.min(tmp3, b);
399
- tail.y1i(source, currentOffset, currentOffset + toCopy | 0);
399
+ tail.z1i(source, currentOffset, currentOffset + toCopy | 0);
400
400
  currentOffset = currentOffset + toCopy | 0;
401
401
  }
402
402
  var tmp = this;
403
- var tmp5 = this.l1h_1;
403
+ var tmp5 = this.m1h_1;
404
404
  // Inline function 'kotlin.Long.plus' call
405
405
  var other = endIndex - startIndex | 0;
406
- tmp.l1h_1 = tmp5.z2(toLong(other));
406
+ tmp.m1h_1 = tmp5.z2(toLong(other));
407
407
  };
408
- protoOf(Buffer).a1j = function (source, byteCount) {
408
+ protoOf(Buffer).b1j = function (source, byteCount) {
409
409
  // Inline function 'kotlinx.io.checkByteCount' call
410
410
  // Inline function 'kotlin.require' call
411
411
  if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
@@ -414,85 +414,85 @@
414
414
  }
415
415
  var remainingByteCount = byteCount;
416
416
  while (remainingByteCount.e1(new Long(0, 0)) > 0) {
417
- var read = source.n1i(this, remainingByteCount);
417
+ var read = source.o1i(this, remainingByteCount);
418
418
  if (read.equals(new Long(-1, -1))) {
419
419
  throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + byteCount.a3(remainingByteCount).toString() + ' were read.'));
420
420
  }
421
421
  remainingByteCount = remainingByteCount.a3(read);
422
422
  }
423
423
  };
424
- protoOf(Buffer).o1i = function (source, byteCount) {
424
+ protoOf(Buffer).p1i = function (source, byteCount) {
425
425
  // Inline function 'kotlin.require' call
426
426
  if (!!(source === this)) {
427
427
  var message = 'source == this';
428
428
  throw IllegalArgumentException_init_$Create$(toString(message));
429
429
  }
430
- checkOffsetAndCount(source.l1h_1, new Long(0, 0), byteCount);
430
+ checkOffsetAndCount(source.m1h_1, new Long(0, 0), byteCount);
431
431
  var remainingByteCount = byteCount;
432
432
  while (remainingByteCount.e1(new Long(0, 0)) > 0) {
433
- if (remainingByteCount.e1(toLong(ensureNotNull(source.j1h_1).s())) < 0) {
434
- var tail = this.k1h_1;
433
+ if (remainingByteCount.e1(toLong(ensureNotNull(source.k1h_1).s())) < 0) {
434
+ var tail = this.l1h_1;
435
435
  var tmp;
436
- if (!(tail == null) && tail.v1h_1) {
436
+ if (!(tail == null) && tail.w1h_1) {
437
437
  var tmp1 = remainingByteCount;
438
438
  // Inline function 'kotlin.Long.plus' call
439
- var other = tail.t1h_1;
439
+ var other = tail.u1h_1;
440
440
  var tmp3 = tmp1.z2(toLong(other));
441
441
  // Inline function 'kotlin.Long.minus' call
442
- var other_0 = tail.b1j() ? 0 : tail.s1h_1;
442
+ var other_0 = tail.c1j() ? 0 : tail.t1h_1;
443
443
  tmp = tmp3.a3(toLong(other_0)).e1(new Long(8192, 0)) <= 0;
444
444
  } else {
445
445
  tmp = false;
446
446
  }
447
447
  if (tmp) {
448
- ensureNotNull(source.j1h_1).d1j(tail, remainingByteCount.j1());
449
- source.l1h_1 = source.l1h_1.a3(remainingByteCount);
450
- this.l1h_1 = this.l1h_1.z2(remainingByteCount);
448
+ ensureNotNull(source.k1h_1).e1j(tail, remainingByteCount.j1());
449
+ source.m1h_1 = source.m1h_1.a3(remainingByteCount);
450
+ this.m1h_1 = this.m1h_1.z2(remainingByteCount);
451
451
  return Unit_instance;
452
452
  } else {
453
- source.j1h_1 = ensureNotNull(source.j1h_1).c1j(remainingByteCount.j1());
453
+ source.k1h_1 = ensureNotNull(source.k1h_1).d1j(remainingByteCount.j1());
454
454
  }
455
455
  }
456
- var segmentToMove = ensureNotNull(source.j1h_1);
456
+ var segmentToMove = ensureNotNull(source.k1h_1);
457
457
  var movedByteCount = toLong(segmentToMove.s());
458
- source.j1h_1 = segmentToMove.e1j();
459
- if (source.j1h_1 == null) {
460
- source.k1h_1 = null;
458
+ source.k1h_1 = segmentToMove.f1j();
459
+ if (source.k1h_1 == null) {
460
+ source.l1h_1 = null;
461
461
  }
462
462
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
463
- if (this.j1h_1 == null) {
464
- this.j1h_1 = segmentToMove;
463
+ if (this.k1h_1 == null) {
465
464
  this.k1h_1 = segmentToMove;
465
+ this.l1h_1 = segmentToMove;
466
466
  } else if (true) {
467
- this.k1h_1 = ensureNotNull(this.k1h_1).f1i(segmentToMove).g1i();
468
- if (ensureNotNull(this.k1h_1).x1h_1 == null) {
469
- this.j1h_1 = this.k1h_1;
467
+ this.l1h_1 = ensureNotNull(this.l1h_1).g1i(segmentToMove).h1i();
468
+ if (ensureNotNull(this.l1h_1).y1h_1 == null) {
469
+ this.k1h_1 = this.l1h_1;
470
470
  }
471
471
  } else {
472
- this.k1h_1 = ensureNotNull(this.k1h_1).f1i(segmentToMove);
472
+ this.l1h_1 = ensureNotNull(this.l1h_1).g1i(segmentToMove);
473
473
  }
474
- source.l1h_1 = source.l1h_1.a3(movedByteCount);
475
- this.l1h_1 = this.l1h_1.z2(movedByteCount);
474
+ source.m1h_1 = source.m1h_1.a3(movedByteCount);
475
+ this.m1h_1 = this.m1h_1.z2(movedByteCount);
476
476
  remainingByteCount = remainingByteCount.a3(movedByteCount);
477
477
  }
478
478
  };
479
- protoOf(Buffer).f1j = function (source) {
479
+ protoOf(Buffer).g1j = function (source) {
480
480
  var totalBytesRead = new Long(0, 0);
481
481
  $l$loop: while (true) {
482
- var readCount = source.n1i(this, new Long(8192, 0));
482
+ var readCount = source.o1i(this, new Long(8192, 0));
483
483
  if (readCount.equals(new Long(-1, -1)))
484
484
  break $l$loop;
485
485
  totalBytesRead = totalBytesRead.z2(readCount);
486
486
  }
487
487
  return totalBytesRead;
488
488
  };
489
- protoOf(Buffer).g1j = function (byte) {
490
- this.s1i(1).h1j(byte);
491
- this.l1h_1 = this.l1h_1.z2(new Long(1, 0));
489
+ protoOf(Buffer).h1j = function (byte) {
490
+ this.t1i(1).i1j(byte);
491
+ this.m1h_1 = this.m1h_1.z2(new Long(1, 0));
492
492
  };
493
- protoOf(Buffer).i1j = function (short) {
494
- this.s1i(2).j1j(short);
495
- this.l1h_1 = this.l1h_1.z2(new Long(2, 0));
493
+ protoOf(Buffer).j1j = function (short) {
494
+ this.t1i(2).k1j(short);
495
+ this.m1h_1 = this.m1h_1.z2(new Long(2, 0));
496
496
  };
497
497
  protoOf(Buffer).p4 = function () {
498
498
  return Unit_instance;
@@ -509,7 +509,7 @@
509
509
  var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.s().e1(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
510
510
  var bytesWritten = 0;
511
511
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
512
- var curr = this.j1h_1;
512
+ var curr = this.k1h_1;
513
513
  while (!(curr == null)) {
514
514
  var tmp4 = get_SegmentReadContextImpl();
515
515
  var segment = curr;
@@ -517,7 +517,7 @@
517
517
  while (bytesWritten < len && idx < segment.s()) {
518
518
  var _unary__edvuaz = idx;
519
519
  idx = _unary__edvuaz + 1 | 0;
520
- var b_0 = tmp4.k1j(segment, _unary__edvuaz);
520
+ var b_0 = tmp4.l1j(segment, _unary__edvuaz);
521
521
  bytesWritten = bytesWritten + 1 | 0;
522
522
  var tmp = get_HEX_DIGIT_CHARS();
523
523
  // Inline function 'kotlinx.io.shr' call
@@ -528,57 +528,191 @@
528
528
  var tmp$ret$3 = b_0 & 15;
529
529
  tmp_0.s8(tmp_1[tmp$ret$3]);
530
530
  }
531
- curr = curr.w1h_1;
531
+ curr = curr.x1h_1;
532
532
  }
533
533
  if (this.s().e1(toLong(maxPrintableBytes)) > 0) {
534
534
  builder.s8(_Char___init__impl__6a9atx(8230));
535
535
  }
536
536
  return 'Buffer(size=' + this.s().toString() + ' hex=' + builder.toString() + ')';
537
537
  };
538
- protoOf(Buffer).y1h = function () {
539
- var oldHead = ensureNotNull(this.j1h_1);
540
- var nextHead = oldHead.w1h_1;
541
- this.j1h_1 = nextHead;
538
+ protoOf(Buffer).z1h = function () {
539
+ var oldHead = ensureNotNull(this.k1h_1);
540
+ var nextHead = oldHead.x1h_1;
541
+ this.k1h_1 = nextHead;
542
542
  if (nextHead == null) {
543
- this.k1h_1 = null;
543
+ this.l1h_1 = null;
544
544
  } else {
545
- nextHead.x1h_1 = null;
545
+ nextHead.y1h_1 = null;
546
546
  }
547
- oldHead.w1h_1 = null;
548
- SegmentPool_instance.l1j(oldHead);
547
+ oldHead.x1h_1 = null;
548
+ SegmentPool_instance.m1j(oldHead);
549
549
  };
550
- protoOf(Buffer).m1j = function () {
551
- var oldTail = ensureNotNull(this.k1h_1);
552
- var newTail = oldTail.x1h_1;
553
- this.k1h_1 = newTail;
550
+ protoOf(Buffer).n1j = function () {
551
+ var oldTail = ensureNotNull(this.l1h_1);
552
+ var newTail = oldTail.y1h_1;
553
+ this.l1h_1 = newTail;
554
554
  if (newTail == null) {
555
- this.j1h_1 = null;
555
+ this.k1h_1 = null;
556
556
  } else {
557
- newTail.w1h_1 = null;
557
+ newTail.x1h_1 = null;
558
558
  }
559
- oldTail.x1h_1 = null;
560
- SegmentPool_instance.l1j(oldTail);
559
+ oldTail.y1h_1 = null;
560
+ SegmentPool_instance.m1j(oldTail);
561
561
  };
562
+ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
563
+ startIndex = startIndex === VOID ? new Long(0, 0) : startIndex;
564
+ endIndex = endIndex === VOID ? _this__u8e3s4.s() : endIndex;
565
+ // Inline function 'kotlin.comparisons.minOf' call
566
+ var b = _this__u8e3s4.s();
567
+ var endOffset = endIndex.e1(b) <= 0 ? endIndex : b;
568
+ checkBounds(_this__u8e3s4.s(), startIndex, endOffset);
569
+ if (startIndex.equals(endOffset))
570
+ return new Long(-1, -1);
571
+ // Inline function 'kotlinx.io.seek' call
572
+ if (_this__u8e3s4.k1h_1 == null) {
573
+ var o = new Long(-1, -1);
574
+ if (o.equals(new Long(-1, -1))) {
575
+ return new Long(-1, -1);
576
+ }
577
+ var segment = null;
578
+ var offset = o;
579
+ do {
580
+ // Inline function 'kotlin.check' call
581
+ if (!(endOffset.e1(offset) > 0)) {
582
+ throw IllegalStateException_init_$Create$('Check failed.');
583
+ }
584
+ ensureNotNull(segment);
585
+ var tmp = segment;
586
+ // Inline function 'kotlin.comparisons.maxOf' call
587
+ var a = startIndex.a3(offset).j1();
588
+ var tmp_0 = Math.max(a, 0);
589
+ var tmp3 = segment.s();
590
+ // Inline function 'kotlin.comparisons.minOf' call
591
+ var b_0 = endOffset.a3(offset).j1();
592
+ var tmp$ret$3 = Math.min(tmp3, b_0);
593
+ var idx = indexOf_0(tmp, byte, tmp_0, tmp$ret$3);
594
+ if (!(idx === -1)) {
595
+ return offset.z2(toLong(idx));
596
+ }
597
+ var tmp5 = offset;
598
+ // Inline function 'kotlin.Long.plus' call
599
+ var other = segment.s();
600
+ offset = tmp5.z2(toLong(other));
601
+ segment = segment.x1h_1;
602
+ }
603
+ while (!(segment == null) && offset.e1(endOffset) < 0);
604
+ return new Long(-1, -1);
605
+ }
606
+ if (_this__u8e3s4.s().a3(startIndex).e1(startIndex) < 0) {
607
+ var s = _this__u8e3s4.l1h_1;
608
+ var offset_0 = _this__u8e3s4.s();
609
+ $l$loop: while (!(s == null) && offset_0.e1(startIndex) > 0) {
610
+ offset_0 = offset_0.a3(toLong(s.u1h_1 - s.t1h_1 | 0));
611
+ if (offset_0.e1(startIndex) <= 0)
612
+ break $l$loop;
613
+ s = s.y1h_1;
614
+ }
615
+ var tmp6 = s;
616
+ var o_0 = offset_0;
617
+ if (o_0.equals(new Long(-1, -1))) {
618
+ return new Long(-1, -1);
619
+ }
620
+ var segment_0 = tmp6;
621
+ var offset_1 = o_0;
622
+ do {
623
+ // Inline function 'kotlin.check' call
624
+ if (!(endOffset.e1(offset_1) > 0)) {
625
+ throw IllegalStateException_init_$Create$('Check failed.');
626
+ }
627
+ ensureNotNull(segment_0);
628
+ var tmp_1 = segment_0;
629
+ // Inline function 'kotlin.comparisons.maxOf' call
630
+ var a_0 = startIndex.a3(offset_1).j1();
631
+ var tmp_2 = Math.max(a_0, 0);
632
+ var tmp3_0 = segment_0.s();
633
+ // Inline function 'kotlin.comparisons.minOf' call
634
+ var b_1 = endOffset.a3(offset_1).j1();
635
+ var tmp$ret$8 = Math.min(tmp3_0, b_1);
636
+ var idx_0 = indexOf_0(tmp_1, byte, tmp_2, tmp$ret$8);
637
+ if (!(idx_0 === -1)) {
638
+ return offset_1.z2(toLong(idx_0));
639
+ }
640
+ var tmp5_0 = offset_1;
641
+ // Inline function 'kotlin.Long.plus' call
642
+ var other_0 = segment_0.s();
643
+ offset_1 = tmp5_0.z2(toLong(other_0));
644
+ segment_0 = segment_0.x1h_1;
645
+ }
646
+ while (!(segment_0 == null) && offset_1.e1(endOffset) < 0);
647
+ return new Long(-1, -1);
648
+ } else {
649
+ var s_0 = _this__u8e3s4.k1h_1;
650
+ var offset_2 = new Long(0, 0);
651
+ $l$loop_0: while (!(s_0 == null)) {
652
+ var tmp0 = offset_2;
653
+ // Inline function 'kotlin.Long.plus' call
654
+ var other_1 = s_0.u1h_1 - s_0.t1h_1 | 0;
655
+ var nextOffset = tmp0.z2(toLong(other_1));
656
+ if (nextOffset.e1(startIndex) > 0)
657
+ break $l$loop_0;
658
+ s_0 = s_0.x1h_1;
659
+ offset_2 = nextOffset;
660
+ }
661
+ var tmp8 = s_0;
662
+ var o_1 = offset_2;
663
+ if (o_1.equals(new Long(-1, -1))) {
664
+ return new Long(-1, -1);
665
+ }
666
+ var segment_1 = tmp8;
667
+ var offset_3 = o_1;
668
+ do {
669
+ // Inline function 'kotlin.check' call
670
+ if (!(endOffset.e1(offset_3) > 0)) {
671
+ throw IllegalStateException_init_$Create$('Check failed.');
672
+ }
673
+ ensureNotNull(segment_1);
674
+ var tmp_3 = segment_1;
675
+ // Inline function 'kotlin.comparisons.maxOf' call
676
+ var a_1 = startIndex.a3(offset_3).j1();
677
+ var tmp_4 = Math.max(a_1, 0);
678
+ var tmp3_1 = segment_1.s();
679
+ // Inline function 'kotlin.comparisons.minOf' call
680
+ var b_2 = endOffset.a3(offset_3).j1();
681
+ var tmp$ret$13 = Math.min(tmp3_1, b_2);
682
+ var idx_1 = indexOf_0(tmp_3, byte, tmp_4, tmp$ret$13);
683
+ if (!(idx_1 === -1)) {
684
+ return offset_3.z2(toLong(idx_1));
685
+ }
686
+ var tmp5_1 = offset_3;
687
+ // Inline function 'kotlin.Long.plus' call
688
+ var other_2 = segment_1.s();
689
+ offset_3 = tmp5_1.z2(toLong(other_2));
690
+ segment_1 = segment_1.x1h_1;
691
+ }
692
+ while (!(segment_1 == null) && offset_3.e1(endOffset) < 0);
693
+ return new Long(-1, -1);
694
+ }
695
+ }
562
696
  function readByteString(_this__u8e3s4, byteCount) {
563
- return UnsafeByteStringOperations_instance.i1h(readByteArray_0(_this__u8e3s4, byteCount));
697
+ return UnsafeByteStringOperations_instance.j1h(readByteArray_0(_this__u8e3s4, byteCount));
564
698
  }
565
699
  function buffered(_this__u8e3s4) {
566
700
  return new RealSource(_this__u8e3s4);
567
701
  }
568
702
  function PeekSource(upstream) {
569
- this.n1j_1 = upstream;
570
- this.o1j_1 = this.n1j_1.m1h();
571
- this.p1j_1 = this.o1j_1.j1h_1;
703
+ this.o1j_1 = upstream;
704
+ this.p1j_1 = this.o1j_1.n1h();
705
+ this.q1j_1 = this.p1j_1.k1h_1;
572
706
  var tmp = this;
573
- var tmp0_safe_receiver = this.o1j_1.j1h_1;
574
- var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1h_1;
575
- tmp.q1j_1 = tmp0_elvis_lhs == null ? -1 : tmp0_elvis_lhs;
576
- this.r1j_1 = false;
577
- this.s1j_1 = new Long(0, 0);
707
+ var tmp0_safe_receiver = this.p1j_1.k1h_1;
708
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1h_1;
709
+ tmp.r1j_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
710
+ this.s1j_1 = false;
711
+ this.t1j_1 = new Long(0, 0);
578
712
  }
579
- protoOf(PeekSource).n1i = function (sink, byteCount) {
713
+ protoOf(PeekSource).o1i = function (sink, byteCount) {
580
714
  // Inline function 'kotlin.check' call
581
- if (!!this.r1j_1) {
715
+ if (!!this.s1j_1) {
582
716
  var message = 'Source is closed.';
583
717
  throw IllegalStateException_init_$Create$(toString(message));
584
718
  }
@@ -589,42 +723,42 @@
589
723
  throw IllegalArgumentException_init_$Create$(toString(message_0));
590
724
  }
591
725
  // Inline function 'kotlin.check' call
592
- if (!(this.p1j_1 == null || (this.p1j_1 === this.o1j_1.j1h_1 && this.q1j_1 === ensureNotNull(this.o1j_1.j1h_1).s1h_1))) {
726
+ if (!(this.q1j_1 == null || (this.q1j_1 === this.p1j_1.k1h_1 && this.r1j_1 === ensureNotNull(this.p1j_1.k1h_1).t1h_1))) {
593
727
  var message_1 = 'Peek source is invalid because upstream source was used';
594
728
  throw IllegalStateException_init_$Create$(toString(message_1));
595
729
  }
596
730
  if (byteCount.equals(new Long(0, 0)))
597
731
  return new Long(0, 0);
598
732
  // Inline function 'kotlin.Long.plus' call
599
- var tmp$ret$7 = this.s1j_1.z2(toLong(1));
600
- if (!this.n1j_1.p1h(tmp$ret$7))
733
+ var tmp$ret$7 = this.t1j_1.z2(toLong(1));
734
+ if (!this.o1j_1.q1h(tmp$ret$7))
601
735
  return new Long(-1, -1);
602
- if (this.p1j_1 == null && !(this.o1j_1.j1h_1 == null)) {
603
- this.p1j_1 = this.o1j_1.j1h_1;
604
- this.q1j_1 = ensureNotNull(this.o1j_1.j1h_1).s1h_1;
736
+ if (this.q1j_1 == null && !(this.p1j_1.k1h_1 == null)) {
737
+ this.q1j_1 = this.p1j_1.k1h_1;
738
+ this.r1j_1 = ensureNotNull(this.p1j_1.k1h_1).t1h_1;
605
739
  }
606
740
  // Inline function 'kotlin.comparisons.minOf' call
607
- var b = this.o1j_1.s().a3(this.s1j_1);
741
+ var b = this.p1j_1.s().a3(this.t1j_1);
608
742
  var toCopy = byteCount.e1(b) <= 0 ? byteCount : b;
609
- this.o1j_1.d1i(sink, this.s1j_1, this.s1j_1.z2(toCopy));
610
- this.s1j_1 = this.s1j_1.z2(toCopy);
743
+ this.p1j_1.e1i(sink, this.t1j_1, this.t1j_1.z2(toCopy));
744
+ this.t1j_1 = this.t1j_1.z2(toCopy);
611
745
  return toCopy;
612
746
  };
613
747
  protoOf(PeekSource).p4 = function () {
614
- this.r1j_1 = true;
748
+ this.s1j_1 = true;
615
749
  };
616
750
  function RealSource(source) {
617
- this.t1j_1 = source;
618
- this.u1j_1 = false;
619
- this.v1j_1 = new Buffer();
751
+ this.u1j_1 = source;
752
+ this.v1j_1 = false;
753
+ this.w1j_1 = new Buffer();
620
754
  }
621
- protoOf(RealSource).m1h = function () {
622
- return this.v1j_1;
755
+ protoOf(RealSource).n1h = function () {
756
+ return this.w1j_1;
623
757
  };
624
- protoOf(RealSource).n1i = function (sink, byteCount) {
758
+ protoOf(RealSource).o1i = function (sink, byteCount) {
625
759
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
626
760
  // Inline function 'kotlin.check' call
627
- if (!!this.u1j_1) {
761
+ if (!!this.v1j_1) {
628
762
  var message = 'Source is closed.';
629
763
  throw IllegalStateException_init_$Create$(toString(message));
630
764
  }
@@ -633,33 +767,33 @@
633
767
  var message_0 = 'byteCount: ' + byteCount.toString();
634
768
  throw IllegalArgumentException_init_$Create$(toString(message_0));
635
769
  }
636
- if (this.v1j_1.s().equals(new Long(0, 0))) {
637
- var read = this.t1j_1.n1i(this.v1j_1, new Long(8192, 0));
770
+ if (this.w1j_1.s().equals(new Long(0, 0))) {
771
+ var read = this.u1j_1.o1i(this.w1j_1, new Long(8192, 0));
638
772
  if (read.equals(new Long(-1, -1)))
639
773
  return new Long(-1, -1);
640
774
  }
641
775
  // Inline function 'kotlin.comparisons.minOf' call
642
- var b = this.v1j_1.s();
776
+ var b = this.w1j_1.s();
643
777
  var toRead = byteCount.e1(b) <= 0 ? byteCount : b;
644
- return this.v1j_1.n1i(sink, toRead);
778
+ return this.w1j_1.o1i(sink, toRead);
645
779
  };
646
- protoOf(RealSource).n1h = function () {
780
+ protoOf(RealSource).o1h = function () {
647
781
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
648
782
  // Inline function 'kotlin.check' call
649
- if (!!this.u1j_1) {
783
+ if (!!this.v1j_1) {
650
784
  var message = 'Source is closed.';
651
785
  throw IllegalStateException_init_$Create$(toString(message));
652
786
  }
653
- return this.v1j_1.n1h() && this.t1j_1.n1i(this.v1j_1, new Long(8192, 0)).equals(new Long(-1, -1));
787
+ return this.w1j_1.o1h() && this.u1j_1.o1i(this.w1j_1, new Long(8192, 0)).equals(new Long(-1, -1));
654
788
  };
655
- protoOf(RealSource).o1h = function (byteCount) {
656
- if (!this.p1h(byteCount))
789
+ protoOf(RealSource).p1h = function (byteCount) {
790
+ if (!this.q1h(byteCount))
657
791
  throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
658
792
  };
659
- protoOf(RealSource).p1h = function (byteCount) {
793
+ protoOf(RealSource).q1h = function (byteCount) {
660
794
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
661
795
  // Inline function 'kotlin.check' call
662
- if (!!this.u1j_1) {
796
+ if (!!this.v1j_1) {
663
797
  var message = 'Source is closed.';
664
798
  throw IllegalStateException_init_$Create$(toString(message));
665
799
  }
@@ -668,90 +802,90 @@
668
802
  var message_0 = 'byteCount: ' + byteCount.toString();
669
803
  throw IllegalArgumentException_init_$Create$(toString(message_0));
670
804
  }
671
- while (this.v1j_1.s().e1(byteCount) < 0) {
672
- if (this.t1j_1.n1i(this.v1j_1, new Long(8192, 0)).equals(new Long(-1, -1)))
805
+ while (this.w1j_1.s().e1(byteCount) < 0) {
806
+ if (this.u1j_1.o1i(this.w1j_1, new Long(8192, 0)).equals(new Long(-1, -1)))
673
807
  return false;
674
808
  }
675
809
  return true;
676
810
  };
677
- protoOf(RealSource).q1h = function () {
678
- this.o1h(new Long(1, 0));
679
- return this.v1j_1.q1h();
811
+ protoOf(RealSource).r1h = function () {
812
+ this.p1h(new Long(1, 0));
813
+ return this.w1j_1.r1h();
680
814
  };
681
- protoOf(RealSource).l1i = function (sink, startIndex, endIndex) {
815
+ protoOf(RealSource).m1i = function (sink, startIndex, endIndex) {
682
816
  // Inline function 'kotlinx.io.checkBounds' call
683
817
  var size = sink.length;
684
818
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
685
- if (this.v1j_1.s().equals(new Long(0, 0))) {
686
- var read = this.t1j_1.n1i(this.v1j_1, new Long(8192, 0));
819
+ if (this.w1j_1.s().equals(new Long(0, 0))) {
820
+ var read = this.u1j_1.o1i(this.w1j_1, new Long(8192, 0));
687
821
  if (read.equals(new Long(-1, -1)))
688
822
  return -1;
689
823
  }
690
824
  var tmp3 = endIndex - startIndex | 0;
691
825
  // Inline function 'kotlinx.io.minOf' call
692
- var b = this.v1j_1.s();
826
+ var b = this.w1j_1.s();
693
827
  // Inline function 'kotlin.comparisons.minOf' call
694
828
  var a = toLong(tmp3);
695
829
  var toRead = (a.e1(b) <= 0 ? a : b).j1();
696
- return this.v1j_1.l1i(sink, startIndex, startIndex + toRead | 0);
830
+ return this.w1j_1.m1i(sink, startIndex, startIndex + toRead | 0);
697
831
  };
698
- protoOf(RealSource).p1i = function (sink, byteCount) {
832
+ protoOf(RealSource).q1i = function (sink, byteCount) {
699
833
  try {
700
- this.o1h(byteCount);
834
+ this.p1h(byteCount);
701
835
  } catch ($p) {
702
836
  if ($p instanceof EOFException) {
703
837
  var e = $p;
704
- sink.o1i(this.v1j_1, this.v1j_1.s());
838
+ sink.p1i(this.w1j_1, this.w1j_1.s());
705
839
  throw e;
706
840
  } else {
707
841
  throw $p;
708
842
  }
709
843
  }
710
- this.v1j_1.p1i(sink, byteCount);
844
+ this.w1j_1.q1i(sink, byteCount);
711
845
  };
712
- protoOf(RealSource).q1i = function (sink) {
846
+ protoOf(RealSource).r1i = function (sink) {
713
847
  var totalBytesWritten = new Long(0, 0);
714
- while (!this.t1j_1.n1i(this.v1j_1, new Long(8192, 0)).equals(new Long(-1, -1))) {
715
- var emitByteCount = this.v1j_1.h1i();
848
+ while (!this.u1j_1.o1i(this.w1j_1, new Long(8192, 0)).equals(new Long(-1, -1))) {
849
+ var emitByteCount = this.w1j_1.i1i();
716
850
  if (emitByteCount.e1(new Long(0, 0)) > 0) {
717
851
  totalBytesWritten = totalBytesWritten.z2(emitByteCount);
718
- sink.o1i(this.v1j_1, emitByteCount);
852
+ sink.p1i(this.w1j_1, emitByteCount);
719
853
  }
720
854
  }
721
- if (this.v1j_1.s().e1(new Long(0, 0)) > 0) {
722
- totalBytesWritten = totalBytesWritten.z2(this.v1j_1.s());
723
- sink.o1i(this.v1j_1, this.v1j_1.s());
855
+ if (this.w1j_1.s().e1(new Long(0, 0)) > 0) {
856
+ totalBytesWritten = totalBytesWritten.z2(this.w1j_1.s());
857
+ sink.p1i(this.w1j_1, this.w1j_1.s());
724
858
  }
725
859
  return totalBytesWritten;
726
860
  };
727
- protoOf(RealSource).a1i = function () {
728
- this.o1h(new Long(2, 0));
729
- return this.v1j_1.a1i();
861
+ protoOf(RealSource).b1i = function () {
862
+ this.p1h(new Long(2, 0));
863
+ return this.w1j_1.b1i();
730
864
  };
731
- protoOf(RealSource).r1i = function () {
865
+ protoOf(RealSource).s1i = function () {
732
866
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
733
867
  // Inline function 'kotlin.check' call
734
- if (!!this.u1j_1) {
868
+ if (!!this.v1j_1) {
735
869
  var message = 'Source is closed.';
736
870
  throw IllegalStateException_init_$Create$(toString(message));
737
871
  }
738
872
  return buffered(new PeekSource(this));
739
873
  };
740
874
  protoOf(RealSource).p4 = function () {
741
- if (this.u1j_1)
875
+ if (this.v1j_1)
742
876
  return Unit_instance;
743
- this.u1j_1 = true;
744
- this.t1j_1.p4();
745
- this.v1j_1.e2();
877
+ this.v1j_1 = true;
878
+ this.u1j_1.p4();
879
+ this.w1j_1.e2();
746
880
  };
747
881
  protoOf(RealSource).toString = function () {
748
- return 'buffered(' + toString(this.t1j_1) + ')';
882
+ return 'buffered(' + toString(this.u1j_1) + ')';
749
883
  };
750
884
  function Segment_init_$Init$($this) {
751
885
  Segment.call($this);
752
- $this.r1h_1 = new Int8Array(8192);
753
- $this.v1h_1 = true;
754
- $this.u1h_1 = null;
886
+ $this.s1h_1 = new Int8Array(8192);
887
+ $this.w1h_1 = true;
888
+ $this.v1h_1 = null;
755
889
  return $this;
756
890
  }
757
891
  function Segment_init_$Create$() {
@@ -759,87 +893,87 @@
759
893
  }
760
894
  function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
761
895
  Segment.call($this);
762
- $this.r1h_1 = data;
763
- $this.s1h_1 = pos;
764
- $this.t1h_1 = limit;
765
- $this.u1h_1 = shareToken;
766
- $this.v1h_1 = owner;
896
+ $this.s1h_1 = data;
897
+ $this.t1h_1 = pos;
898
+ $this.u1h_1 = limit;
899
+ $this.v1h_1 = shareToken;
900
+ $this.w1h_1 = owner;
767
901
  return $this;
768
902
  }
769
903
  function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
770
904
  return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
771
905
  }
772
906
  function Companion() {
773
- this.w1j_1 = 8192;
774
- this.x1j_1 = 1024;
907
+ this.x1j_1 = 8192;
908
+ this.y1j_1 = 1024;
775
909
  }
776
- protoOf(Companion).y1j = function () {
910
+ protoOf(Companion).z1j = function () {
777
911
  return Segment_init_$Create$();
778
912
  };
779
913
  var Companion_instance;
780
914
  function Companion_getInstance() {
781
915
  return Companion_instance;
782
916
  }
783
- protoOf(Segment).b1j = function () {
784
- var tmp1_safe_receiver = this.u1h_1;
785
- var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z1j();
786
- return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
917
+ protoOf(Segment).c1j = function () {
918
+ var tmp0_safe_receiver = this.v1h_1;
919
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1k();
920
+ return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
787
921
  };
788
- protoOf(Segment).e1i = function () {
789
- var tmp0_elvis_lhs = this.u1h_1;
922
+ protoOf(Segment).f1i = function () {
923
+ var tmp0_elvis_lhs = this.v1h_1;
790
924
  var tmp;
791
925
  if (tmp0_elvis_lhs == null) {
792
926
  // Inline function 'kotlin.also' call
793
- var this_0 = SegmentPool_instance.a1k();
794
- this.u1h_1 = this_0;
927
+ var this_0 = SegmentPool_instance.b1k();
928
+ this.v1h_1 = this_0;
795
929
  tmp = this_0;
796
930
  } else {
797
931
  tmp = tmp0_elvis_lhs;
798
932
  }
799
933
  var t = tmp;
800
- var tmp_0 = this.s1h_1;
801
- var tmp_1 = this.t1h_1;
934
+ var tmp_0 = this.t1h_1;
935
+ var tmp_1 = this.u1h_1;
802
936
  // Inline function 'kotlin.also' call
803
- t.b1k();
804
- return Segment_init_$Create$_0(this.r1h_1, tmp_0, tmp_1, t, false);
937
+ t.c1k();
938
+ return Segment_init_$Create$_0(this.s1h_1, tmp_0, tmp_1, t, false);
805
939
  };
806
- protoOf(Segment).e1j = function () {
807
- var result = this.w1h_1;
808
- if (!(this.x1h_1 == null)) {
809
- ensureNotNull(this.x1h_1).w1h_1 = this.w1h_1;
940
+ protoOf(Segment).f1j = function () {
941
+ var result = this.x1h_1;
942
+ if (!(this.y1h_1 == null)) {
943
+ ensureNotNull(this.y1h_1).x1h_1 = this.x1h_1;
810
944
  }
811
- if (!(this.w1h_1 == null)) {
812
- ensureNotNull(this.w1h_1).x1h_1 = this.x1h_1;
945
+ if (!(this.x1h_1 == null)) {
946
+ ensureNotNull(this.x1h_1).y1h_1 = this.y1h_1;
813
947
  }
814
- this.w1h_1 = null;
815
948
  this.x1h_1 = null;
949
+ this.y1h_1 = null;
816
950
  return result;
817
951
  };
818
- protoOf(Segment).f1i = function (segment) {
819
- segment.x1h_1 = this;
820
- segment.w1h_1 = this.w1h_1;
821
- if (!(this.w1h_1 == null)) {
822
- ensureNotNull(this.w1h_1).x1h_1 = segment;
952
+ protoOf(Segment).g1i = function (segment) {
953
+ segment.y1h_1 = this;
954
+ segment.x1h_1 = this.x1h_1;
955
+ if (!(this.x1h_1 == null)) {
956
+ ensureNotNull(this.x1h_1).y1h_1 = segment;
823
957
  }
824
- this.w1h_1 = segment;
958
+ this.x1h_1 = segment;
825
959
  return segment;
826
960
  };
827
- protoOf(Segment).c1j = function (byteCount) {
961
+ protoOf(Segment).d1j = function (byteCount) {
828
962
  // Inline function 'kotlin.require' call
829
- if (!(byteCount > 0 && byteCount <= (this.t1h_1 - this.s1h_1 | 0))) {
963
+ if (!(byteCount > 0 && byteCount <= (this.u1h_1 - this.t1h_1 | 0))) {
830
964
  var message = 'byteCount out of range';
831
965
  throw IllegalArgumentException_init_$Create$(toString(message));
832
966
  }
833
967
  var prefix;
834
968
  if (byteCount >= 1024) {
835
- prefix = this.e1i();
969
+ prefix = this.f1i();
836
970
  } else {
837
- prefix = SegmentPool_instance.v1i();
838
- var tmp1 = this.r1h_1;
839
- var tmp2 = prefix.r1h_1;
840
- var tmp3 = this.s1h_1;
971
+ prefix = SegmentPool_instance.w1i();
972
+ var tmp1 = this.s1h_1;
973
+ var tmp2 = prefix.s1h_1;
974
+ var tmp3 = this.t1h_1;
841
975
  // Inline function 'kotlin.collections.copyInto' call
842
- var endIndex = this.s1h_1 + byteCount | 0;
976
+ var endIndex = this.t1h_1 + byteCount | 0;
843
977
  // Inline function 'kotlin.js.unsafeCast' call
844
978
  // Inline function 'kotlin.js.asDynamic' call
845
979
  var tmp = tmp1;
@@ -847,62 +981,62 @@
847
981
  // Inline function 'kotlin.js.asDynamic' call
848
982
  arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
849
983
  }
850
- prefix.t1h_1 = prefix.s1h_1 + byteCount | 0;
851
- this.s1h_1 = this.s1h_1 + byteCount | 0;
852
- if (!(this.x1h_1 == null)) {
853
- ensureNotNull(this.x1h_1).f1i(prefix);
984
+ prefix.u1h_1 = prefix.t1h_1 + byteCount | 0;
985
+ this.t1h_1 = this.t1h_1 + byteCount | 0;
986
+ if (!(this.y1h_1 == null)) {
987
+ ensureNotNull(this.y1h_1).g1i(prefix);
854
988
  } else {
855
- prefix.w1h_1 = this;
856
- this.x1h_1 = prefix;
989
+ prefix.x1h_1 = this;
990
+ this.y1h_1 = prefix;
857
991
  }
858
992
  return prefix;
859
993
  };
860
- protoOf(Segment).g1i = function () {
994
+ protoOf(Segment).h1i = function () {
861
995
  // Inline function 'kotlin.check' call
862
- if (!!(this.x1h_1 == null)) {
996
+ if (!!(this.y1h_1 == null)) {
863
997
  var message = 'cannot compact';
864
998
  throw IllegalStateException_init_$Create$(toString(message));
865
999
  }
866
- if (!ensureNotNull(this.x1h_1).v1h_1)
1000
+ if (!ensureNotNull(this.y1h_1).w1h_1)
867
1001
  return this;
868
- var byteCount = this.t1h_1 - this.s1h_1 | 0;
869
- var availableByteCount = (8192 - ensureNotNull(this.x1h_1).t1h_1 | 0) + (ensureNotNull(this.x1h_1).b1j() ? 0 : ensureNotNull(this.x1h_1).s1h_1) | 0;
1002
+ var byteCount = this.u1h_1 - this.t1h_1 | 0;
1003
+ var availableByteCount = (8192 - ensureNotNull(this.y1h_1).u1h_1 | 0) + (ensureNotNull(this.y1h_1).c1j() ? 0 : ensureNotNull(this.y1h_1).t1h_1) | 0;
870
1004
  if (byteCount > availableByteCount)
871
1005
  return this;
872
- var predecessor = this.x1h_1;
873
- this.d1j(ensureNotNull(predecessor), byteCount);
874
- var successor = this.e1j();
1006
+ var predecessor = this.y1h_1;
1007
+ this.e1j(ensureNotNull(predecessor), byteCount);
1008
+ var successor = this.f1j();
875
1009
  // Inline function 'kotlin.check' call
876
1010
  if (!(successor == null)) {
877
1011
  throw IllegalStateException_init_$Create$('Check failed.');
878
1012
  }
879
- SegmentPool_instance.l1j(this);
1013
+ SegmentPool_instance.m1j(this);
880
1014
  return predecessor;
881
1015
  };
882
- protoOf(Segment).h1j = function (byte) {
883
- var _unary__edvuaz = this.t1h_1;
884
- this.t1h_1 = _unary__edvuaz + 1 | 0;
885
- this.r1h_1[_unary__edvuaz] = byte;
1016
+ protoOf(Segment).i1j = function (byte) {
1017
+ var _unary__edvuaz = this.u1h_1;
1018
+ this.u1h_1 = _unary__edvuaz + 1 | 0;
1019
+ this.s1h_1[_unary__edvuaz] = byte;
886
1020
  };
887
- protoOf(Segment).j1j = function (short) {
888
- var data = this.r1h_1;
889
- var limit = this.t1h_1;
1021
+ protoOf(Segment).k1j = function (short) {
1022
+ var data = this.s1h_1;
1023
+ var limit = this.u1h_1;
890
1024
  var _unary__edvuaz = limit;
891
1025
  limit = _unary__edvuaz + 1 | 0;
892
1026
  data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
893
1027
  var _unary__edvuaz_0 = limit;
894
1028
  limit = _unary__edvuaz_0 + 1 | 0;
895
1029
  data[_unary__edvuaz_0] = toByte(short & 255);
896
- this.t1h_1 = limit;
1030
+ this.u1h_1 = limit;
897
1031
  };
898
- protoOf(Segment).z1h = function () {
899
- var _unary__edvuaz = this.s1h_1;
900
- this.s1h_1 = _unary__edvuaz + 1 | 0;
901
- return this.r1h_1[_unary__edvuaz];
1032
+ protoOf(Segment).a1i = function () {
1033
+ var _unary__edvuaz = this.t1h_1;
1034
+ this.t1h_1 = _unary__edvuaz + 1 | 0;
1035
+ return this.s1h_1[_unary__edvuaz];
902
1036
  };
903
- protoOf(Segment).b1i = function () {
904
- var data = this.r1h_1;
905
- var pos = this.s1h_1;
1037
+ protoOf(Segment).c1i = function () {
1038
+ var data = this.s1h_1;
1039
+ var pos = this.t1h_1;
906
1040
  var _unary__edvuaz = pos;
907
1041
  pos = _unary__edvuaz + 1 | 0;
908
1042
  // Inline function 'kotlinx.io.and' call
@@ -912,118 +1046,118 @@
912
1046
  // Inline function 'kotlinx.io.and' call
913
1047
  var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
914
1048
  var s = toShort(tmp | tmp$ret$1);
915
- this.s1h_1 = pos;
1049
+ this.t1h_1 = pos;
916
1050
  return s;
917
1051
  };
918
- protoOf(Segment).d1j = function (sink, byteCount) {
1052
+ protoOf(Segment).e1j = function (sink, byteCount) {
919
1053
  // Inline function 'kotlin.check' call
920
- if (!sink.v1h_1) {
1054
+ if (!sink.w1h_1) {
921
1055
  var message = 'only owner can write';
922
1056
  throw IllegalStateException_init_$Create$(toString(message));
923
1057
  }
924
- if ((sink.t1h_1 + byteCount | 0) > 8192) {
925
- if (sink.b1j())
1058
+ if ((sink.u1h_1 + byteCount | 0) > 8192) {
1059
+ if (sink.c1j())
926
1060
  throw IllegalArgumentException_init_$Create$_0();
927
- if (((sink.t1h_1 + byteCount | 0) - sink.s1h_1 | 0) > 8192)
1061
+ if (((sink.u1h_1 + byteCount | 0) - sink.t1h_1 | 0) > 8192)
928
1062
  throw IllegalArgumentException_init_$Create$_0();
929
- var tmp1 = sink.r1h_1;
930
- var tmp2 = sink.r1h_1;
931
- var tmp3 = sink.s1h_1;
1063
+ var tmp1 = sink.s1h_1;
1064
+ var tmp2 = sink.s1h_1;
1065
+ var tmp3 = sink.t1h_1;
932
1066
  // Inline function 'kotlin.collections.copyInto' call
933
- var endIndex = sink.t1h_1;
1067
+ var endIndex = sink.u1h_1;
934
1068
  // Inline function 'kotlin.js.unsafeCast' call
935
1069
  // Inline function 'kotlin.js.asDynamic' call
936
1070
  var tmp = tmp1;
937
1071
  // Inline function 'kotlin.js.unsafeCast' call
938
1072
  // Inline function 'kotlin.js.asDynamic' call
939
1073
  arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
940
- sink.t1h_1 = sink.t1h_1 - sink.s1h_1 | 0;
941
- sink.s1h_1 = 0;
1074
+ sink.u1h_1 = sink.u1h_1 - sink.t1h_1 | 0;
1075
+ sink.t1h_1 = 0;
942
1076
  }
943
- var tmp6 = this.r1h_1;
944
- var tmp7 = sink.r1h_1;
945
- var tmp8 = sink.t1h_1;
946
- var tmp9 = this.s1h_1;
1077
+ var tmp6 = this.s1h_1;
1078
+ var tmp7 = sink.s1h_1;
1079
+ var tmp8 = sink.u1h_1;
1080
+ var tmp9 = this.t1h_1;
947
1081
  // Inline function 'kotlin.collections.copyInto' call
948
- var endIndex_0 = this.s1h_1 + byteCount | 0;
1082
+ var endIndex_0 = this.t1h_1 + byteCount | 0;
949
1083
  // Inline function 'kotlin.js.unsafeCast' call
950
1084
  // Inline function 'kotlin.js.asDynamic' call
951
1085
  var tmp_0 = tmp6;
952
1086
  // Inline function 'kotlin.js.unsafeCast' call
953
1087
  // Inline function 'kotlin.js.asDynamic' call
954
1088
  arrayCopy(tmp_0, tmp7, tmp8, tmp9, endIndex_0);
955
- sink.t1h_1 = sink.t1h_1 + byteCount | 0;
956
- this.s1h_1 = this.s1h_1 + byteCount | 0;
1089
+ sink.u1h_1 = sink.u1h_1 + byteCount | 0;
1090
+ this.t1h_1 = this.t1h_1 + byteCount | 0;
957
1091
  };
958
- protoOf(Segment).m1i = function (dst, dstStartOffset, dstEndOffset) {
1092
+ protoOf(Segment).n1i = function (dst, dstStartOffset, dstEndOffset) {
959
1093
  var len = dstEndOffset - dstStartOffset | 0;
960
- var tmp0 = this.r1h_1;
961
- var tmp3 = this.s1h_1;
1094
+ var tmp0 = this.s1h_1;
1095
+ var tmp3 = this.t1h_1;
962
1096
  // Inline function 'kotlin.collections.copyInto' call
963
- var endIndex = this.s1h_1 + len | 0;
1097
+ var endIndex = this.t1h_1 + len | 0;
964
1098
  // Inline function 'kotlin.js.unsafeCast' call
965
1099
  // Inline function 'kotlin.js.asDynamic' call
966
1100
  var tmp = tmp0;
967
1101
  // Inline function 'kotlin.js.unsafeCast' call
968
1102
  // Inline function 'kotlin.js.asDynamic' call
969
1103
  arrayCopy(tmp, dst, dstStartOffset, tmp3, endIndex);
970
- this.s1h_1 = this.s1h_1 + len | 0;
1104
+ this.t1h_1 = this.t1h_1 + len | 0;
971
1105
  };
972
- protoOf(Segment).y1i = function (src, srcStartOffset, srcEndOffset) {
973
- var tmp1 = this.r1h_1;
1106
+ protoOf(Segment).z1i = function (src, srcStartOffset, srcEndOffset) {
1107
+ var tmp1 = this.s1h_1;
974
1108
  // Inline function 'kotlin.collections.copyInto' call
975
- var destinationOffset = this.t1h_1;
1109
+ var destinationOffset = this.u1h_1;
976
1110
  // Inline function 'kotlin.js.unsafeCast' call
977
1111
  // Inline function 'kotlin.js.asDynamic' call
978
1112
  var tmp = src;
979
1113
  // Inline function 'kotlin.js.unsafeCast' call
980
1114
  // Inline function 'kotlin.js.asDynamic' call
981
1115
  arrayCopy(tmp, tmp1, destinationOffset, srcStartOffset, srcEndOffset);
982
- this.t1h_1 = this.t1h_1 + (srcEndOffset - srcStartOffset | 0) | 0;
1116
+ this.u1h_1 = this.u1h_1 + (srcEndOffset - srcStartOffset | 0) | 0;
983
1117
  };
984
1118
  protoOf(Segment).s = function () {
985
- return this.t1h_1 - this.s1h_1 | 0;
1119
+ return this.u1h_1 - this.t1h_1 | 0;
986
1120
  };
987
- protoOf(Segment).x1i = function () {
988
- return this.r1h_1.length - this.t1h_1 | 0;
1121
+ protoOf(Segment).y1i = function () {
1122
+ return this.s1h_1.length - this.u1h_1 | 0;
989
1123
  };
990
- protoOf(Segment).c1k = function (readOnly) {
991
- return this.r1h_1;
1124
+ protoOf(Segment).d1k = function (readOnly) {
1125
+ return this.s1h_1;
992
1126
  };
993
- protoOf(Segment).j1i = function (index) {
994
- return this.r1h_1[this.s1h_1 + index | 0];
1127
+ protoOf(Segment).k1i = function (index) {
1128
+ return this.s1h_1[this.t1h_1 + index | 0];
995
1129
  };
996
- protoOf(Segment).d1k = function (index, value) {
997
- this.r1h_1[this.t1h_1 + index | 0] = value;
1130
+ protoOf(Segment).e1k = function (index, value) {
1131
+ this.s1h_1[this.u1h_1 + index | 0] = value;
998
1132
  };
999
- protoOf(Segment).e1k = function (index, b0, b1) {
1000
- var d = this.r1h_1;
1001
- var l = this.t1h_1;
1133
+ protoOf(Segment).f1k = function (index, b0, b1) {
1134
+ var d = this.s1h_1;
1135
+ var l = this.u1h_1;
1002
1136
  d[l + index | 0] = b0;
1003
1137
  d[(l + index | 0) + 1 | 0] = b1;
1004
1138
  };
1005
- protoOf(Segment).f1k = function (index, b0, b1, b2) {
1006
- var d = this.r1h_1;
1007
- var l = this.t1h_1;
1139
+ protoOf(Segment).g1k = function (index, b0, b1, b2) {
1140
+ var d = this.s1h_1;
1141
+ var l = this.u1h_1;
1008
1142
  d[l + index | 0] = b0;
1009
1143
  d[(l + index | 0) + 1 | 0] = b1;
1010
1144
  d[(l + index | 0) + 2 | 0] = b2;
1011
1145
  };
1012
- protoOf(Segment).g1k = function (index, b0, b1, b2, b3) {
1013
- var d = this.r1h_1;
1014
- var l = this.t1h_1;
1146
+ protoOf(Segment).h1k = function (index, b0, b1, b2, b3) {
1147
+ var d = this.s1h_1;
1148
+ var l = this.u1h_1;
1015
1149
  d[l + index | 0] = b0;
1016
1150
  d[(l + index | 0) + 1 | 0] = b1;
1017
1151
  d[(l + index | 0) + 2 | 0] = b2;
1018
1152
  d[(l + index | 0) + 3 | 0] = b3;
1019
1153
  };
1020
1154
  function Segment() {
1021
- this.s1h_1 = 0;
1022
1155
  this.t1h_1 = 0;
1023
- this.u1h_1 = null;
1024
- this.v1h_1 = false;
1025
- this.w1h_1 = null;
1156
+ this.u1h_1 = 0;
1157
+ this.v1h_1 = null;
1158
+ this.w1h_1 = false;
1026
1159
  this.x1h_1 = null;
1160
+ this.y1h_1 = null;
1027
1161
  }
1028
1162
  function SegmentCopyTracker() {
1029
1163
  }
@@ -1034,10 +1168,10 @@
1034
1168
  AlwaysSharedCopyTracker_instance = this;
1035
1169
  SegmentCopyTracker.call(this);
1036
1170
  }
1037
- protoOf(AlwaysSharedCopyTracker).z1j = function () {
1171
+ protoOf(AlwaysSharedCopyTracker).a1k = function () {
1038
1172
  return true;
1039
1173
  };
1040
- protoOf(AlwaysSharedCopyTracker).b1k = function () {
1174
+ protoOf(AlwaysSharedCopyTracker).c1k = function () {
1041
1175
  return Unit_instance;
1042
1176
  };
1043
1177
  var AlwaysSharedCopyTracker_instance;
@@ -1046,6 +1180,31 @@
1046
1180
  new AlwaysSharedCopyTracker();
1047
1181
  return AlwaysSharedCopyTracker_instance;
1048
1182
  }
1183
+ function indexOf_0(_this__u8e3s4, byte, startOffset, endOffset) {
1184
+ // Inline function 'kotlin.require' call
1185
+ if (!(0 <= startOffset ? startOffset < _this__u8e3s4.s() : false)) {
1186
+ var message = '' + startOffset;
1187
+ throw IllegalArgumentException_init_$Create$(toString(message));
1188
+ }
1189
+ // Inline function 'kotlin.require' call
1190
+ if (!(startOffset <= endOffset ? endOffset <= _this__u8e3s4.s() : false)) {
1191
+ var message_0 = '' + endOffset;
1192
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1193
+ }
1194
+ var p = _this__u8e3s4.t1h_1;
1195
+ var data = _this__u8e3s4.d1k(true);
1196
+ var inductionVariable = startOffset;
1197
+ if (inductionVariable < endOffset)
1198
+ do {
1199
+ var idx = inductionVariable;
1200
+ inductionVariable = inductionVariable + 1 | 0;
1201
+ if (data[p + idx | 0] === byte) {
1202
+ return idx;
1203
+ }
1204
+ }
1205
+ while (inductionVariable < endOffset);
1206
+ return -1;
1207
+ }
1049
1208
  function Sink() {
1050
1209
  }
1051
1210
  function Source() {
@@ -1057,21 +1216,21 @@
1057
1216
  var arraySize = size;
1058
1217
  if (size === -1) {
1059
1218
  var fetchSize = new Long(2147483647, 0);
1060
- while (_this__u8e3s4.m1h().s().e1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.p1h(fetchSize)) {
1219
+ while (_this__u8e3s4.n1h().s().e1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.q1h(fetchSize)) {
1061
1220
  // Inline function 'kotlin.Long.times' call
1062
1221
  fetchSize = fetchSize.b3(toLong(2));
1063
1222
  }
1064
1223
  // Inline function 'kotlin.check' call
1065
- if (!(_this__u8e3s4.m1h().s().e1(new Long(2147483647, 0)) < 0)) {
1066
- var message = "Can't create an array of size " + _this__u8e3s4.m1h().s().toString();
1224
+ if (!(_this__u8e3s4.n1h().s().e1(new Long(2147483647, 0)) < 0)) {
1225
+ var message = "Can't create an array of size " + _this__u8e3s4.n1h().s().toString();
1067
1226
  throw IllegalStateException_init_$Create$(toString(message));
1068
1227
  }
1069
- arraySize = _this__u8e3s4.m1h().s().j1();
1228
+ arraySize = _this__u8e3s4.n1h().s().j1();
1070
1229
  } else {
1071
- _this__u8e3s4.o1h(toLong(size));
1230
+ _this__u8e3s4.p1h(toLong(size));
1072
1231
  }
1073
1232
  var array = new Int8Array(arraySize);
1074
- readTo(_this__u8e3s4.m1h(), array);
1233
+ readTo(_this__u8e3s4.n1h(), array);
1075
1234
  return array;
1076
1235
  }
1077
1236
  function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
@@ -1082,7 +1241,7 @@
1082
1241
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
1083
1242
  var offset = startIndex;
1084
1243
  while (offset < endIndex) {
1085
- var bytesRead = _this__u8e3s4.l1i(sink, offset, endIndex);
1244
+ var bytesRead = _this__u8e3s4.m1i(sink, offset, endIndex);
1086
1245
  if (bytesRead === -1) {
1087
1246
  throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
1088
1247
  }
@@ -1099,13 +1258,55 @@
1099
1258
  }
1100
1259
  return readByteArrayImpl(_this__u8e3s4, byteCount);
1101
1260
  }
1261
+ function indexOf_1(_this__u8e3s4, byte, startIndex, endIndex) {
1262
+ startIndex = startIndex === VOID ? new Long(0, 0) : startIndex;
1263
+ endIndex = endIndex === VOID ? new Long(-1, 2147483647) : endIndex;
1264
+ // Inline function 'kotlin.require' call
1265
+ if (!((new Long(0, 0)).e1(startIndex) <= 0 ? startIndex.e1(endIndex) <= 0 : false)) {
1266
+ var tmp;
1267
+ if (endIndex.e1(new Long(0, 0)) < 0) {
1268
+ tmp = 'startIndex (' + startIndex.toString() + ') and endIndex (' + endIndex.toString() + ') should be non negative';
1269
+ } else {
1270
+ tmp = 'startIndex (' + startIndex.toString() + ') is not within the range [0..endIndex(' + endIndex.toString() + '))';
1271
+ }
1272
+ var message = tmp;
1273
+ throw IllegalArgumentException_init_$Create$(toString(message));
1274
+ }
1275
+ if (startIndex.equals(endIndex))
1276
+ return new Long(-1, -1);
1277
+ var offset = startIndex;
1278
+ $l$loop: while (true) {
1279
+ var tmp_0;
1280
+ if (offset.e1(endIndex) < 0) {
1281
+ // Inline function 'kotlin.Long.plus' call
1282
+ var tmp$ret$2 = offset.z2(toLong(1));
1283
+ tmp_0 = _this__u8e3s4.q1h(tmp$ret$2);
1284
+ } else {
1285
+ tmp_0 = false;
1286
+ }
1287
+ if (!tmp_0) {
1288
+ break $l$loop;
1289
+ }
1290
+ var tmp_1 = _this__u8e3s4.n1h();
1291
+ var tmp_2 = offset;
1292
+ // Inline function 'kotlin.comparisons.minOf' call
1293
+ var b = _this__u8e3s4.n1h().s();
1294
+ var tmp$ret$3 = endIndex.e1(b) <= 0 ? endIndex : b;
1295
+ var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
1296
+ if (!idx.equals(new Long(-1, -1))) {
1297
+ return idx;
1298
+ }
1299
+ offset = _this__u8e3s4.n1h().s();
1300
+ }
1301
+ return new Long(-1, -1);
1302
+ }
1102
1303
  function readString(_this__u8e3s4) {
1103
- _this__u8e3s4.p1h(new Long(-1, 2147483647));
1104
- return commonReadUtf8(_this__u8e3s4.m1h(), _this__u8e3s4.m1h().s());
1304
+ _this__u8e3s4.q1h(new Long(-1, 2147483647));
1305
+ return commonReadUtf8(_this__u8e3s4.n1h(), _this__u8e3s4.n1h().s());
1105
1306
  }
1106
1307
  function readString_0(_this__u8e3s4, byteCount) {
1107
- _this__u8e3s4.o1h(byteCount);
1108
- return commonReadUtf8(_this__u8e3s4.m1h(), byteCount);
1308
+ _this__u8e3s4.p1h(byteCount);
1309
+ return commonReadUtf8(_this__u8e3s4.n1h(), byteCount);
1109
1310
  }
1110
1311
  function readString_1(_this__u8e3s4) {
1111
1312
  return commonReadUtf8(_this__u8e3s4, _this__u8e3s4.s());
@@ -1114,20 +1315,20 @@
1114
1315
  if (byteCount.equals(new Long(0, 0)))
1115
1316
  return '';
1116
1317
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
1117
- var curr = _this__u8e3s4.j1h_1;
1318
+ var curr = _this__u8e3s4.k1h_1;
1118
1319
  while (!(curr == null)) {
1119
1320
  get_SegmentReadContextImpl();
1120
1321
  if (toLong(curr.s()).e1(byteCount) >= 0) {
1121
1322
  var result = '';
1122
1323
  // Inline function 'kotlinx.io.unsafe.withData' call
1123
- var tmp2 = curr.c1k(true);
1124
- var tmp3 = curr.s1h_1;
1125
- var tmp0 = curr.t1h_1;
1324
+ var tmp2 = curr.d1k(true);
1325
+ var tmp3 = curr.t1h_1;
1326
+ var tmp0 = curr.u1h_1;
1126
1327
  // Inline function 'kotlin.math.min' call
1127
1328
  var b = tmp3 + byteCount.j1() | 0;
1128
1329
  var tmp$ret$0 = Math.min(tmp0, b);
1129
1330
  result = commonToUtf8String(tmp2, tmp3, tmp$ret$0);
1130
- _this__u8e3s4.k1i(byteCount);
1331
+ _this__u8e3s4.l1i(byteCount);
1131
1332
  return result;
1132
1333
  }
1133
1334
  return commonToUtf8String(readByteArray_0(_this__u8e3s4, byteCount.j1()));
@@ -1144,7 +1345,7 @@
1144
1345
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
1145
1346
  // Inline function 'kotlinx.io.writeToInternalBuffer' call
1146
1347
  // Inline function 'kotlinx.io.commonWriteUtf8' call
1147
- var this_0 = _this__u8e3s4.m1h();
1348
+ var this_0 = _this__u8e3s4.n1h();
1148
1349
  var i = startIndex;
1149
1350
  while (i < endIndex) {
1150
1351
  var p0 = i;
@@ -1154,15 +1355,15 @@
1154
1355
  if (c < 128) {
1155
1356
  $l$block_0: {
1156
1357
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1157
- var tail = this_0.s1i(1);
1358
+ var tail = this_0.t1i(1);
1158
1359
  var ctx = get_SegmentWriteContextImpl();
1159
1360
  var segmentOffset = -i | 0;
1160
1361
  // Inline function 'kotlin.comparisons.minOf' call
1161
- var b = i + tail.x1i() | 0;
1362
+ var b = i + tail.y1i() | 0;
1162
1363
  var runLimit = Math.min(endIndex, b);
1163
1364
  var _unary__edvuaz = i;
1164
1365
  i = _unary__edvuaz + 1 | 0;
1165
- ctx.k1k(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
1366
+ ctx.l1k(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
1166
1367
  $l$loop: while (i < runLimit) {
1167
1368
  var p0_0 = i;
1168
1369
  // Inline function 'kotlin.code' call
@@ -1172,89 +1373,89 @@
1172
1373
  break $l$loop;
1173
1374
  var _unary__edvuaz_0 = i;
1174
1375
  i = _unary__edvuaz_0 + 1 | 0;
1175
- ctx.k1k(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
1376
+ ctx.l1k(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
1176
1377
  }
1177
1378
  var bytesWritten = i + segmentOffset | 0;
1178
1379
  if (bytesWritten === 1) {
1179
- tail.t1h_1 = tail.t1h_1 + bytesWritten | 0;
1380
+ tail.u1h_1 = tail.u1h_1 + bytesWritten | 0;
1180
1381
  var tmp = this_0;
1181
1382
  // Inline function 'kotlin.Long.plus' call
1182
- tmp.l1h_1 = this_0.l1h_1.z2(toLong(bytesWritten));
1383
+ tmp.m1h_1 = this_0.m1h_1.z2(toLong(bytesWritten));
1183
1384
  break $l$block_0;
1184
1385
  }
1185
1386
  // Inline function 'kotlin.check' call
1186
- if (!(0 <= bytesWritten ? bytesWritten <= tail.x1i() : false)) {
1187
- var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.x1i();
1387
+ if (!(0 <= bytesWritten ? bytesWritten <= tail.y1i() : false)) {
1388
+ var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.y1i();
1188
1389
  throw IllegalStateException_init_$Create$(toString(message));
1189
1390
  }
1190
1391
  if (!(bytesWritten === 0)) {
1191
- tail.t1h_1 = tail.t1h_1 + bytesWritten | 0;
1392
+ tail.u1h_1 = tail.u1h_1 + bytesWritten | 0;
1192
1393
  var tmp_0 = this_0;
1193
1394
  // Inline function 'kotlin.Long.plus' call
1194
- tmp_0.l1h_1 = this_0.l1h_1.z2(toLong(bytesWritten));
1395
+ tmp_0.m1h_1 = this_0.m1h_1.z2(toLong(bytesWritten));
1195
1396
  break $l$block_0;
1196
1397
  }
1197
1398
  if (isEmpty(tail)) {
1198
- this_0.m1j();
1399
+ this_0.n1j();
1199
1400
  }
1200
1401
  }
1201
1402
  } else if (c < 2048) {
1202
1403
  $l$block_2: {
1203
1404
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1204
- var tail_0 = this_0.s1i(2);
1205
- get_SegmentWriteContextImpl().j1k(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
1405
+ var tail_0 = this_0.t1i(2);
1406
+ get_SegmentWriteContextImpl().k1k(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
1206
1407
  var bytesWritten_0 = 2;
1207
1408
  if (bytesWritten_0 === 2) {
1208
- tail_0.t1h_1 = tail_0.t1h_1 + bytesWritten_0 | 0;
1409
+ tail_0.u1h_1 = tail_0.u1h_1 + bytesWritten_0 | 0;
1209
1410
  var tmp_1 = this_0;
1210
1411
  // Inline function 'kotlin.Long.plus' call
1211
- tmp_1.l1h_1 = this_0.l1h_1.z2(toLong(bytesWritten_0));
1412
+ tmp_1.m1h_1 = this_0.m1h_1.z2(toLong(bytesWritten_0));
1212
1413
  break $l$block_2;
1213
1414
  }
1214
1415
  // Inline function 'kotlin.check' call
1215
- if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.x1i() : false)) {
1216
- var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.x1i();
1416
+ if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.y1i() : false)) {
1417
+ var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.y1i();
1217
1418
  throw IllegalStateException_init_$Create$(toString(message_0));
1218
1419
  }
1219
1420
  if (!(bytesWritten_0 === 0)) {
1220
- tail_0.t1h_1 = tail_0.t1h_1 + bytesWritten_0 | 0;
1421
+ tail_0.u1h_1 = tail_0.u1h_1 + bytesWritten_0 | 0;
1221
1422
  var tmp_2 = this_0;
1222
1423
  // Inline function 'kotlin.Long.plus' call
1223
- tmp_2.l1h_1 = this_0.l1h_1.z2(toLong(bytesWritten_0));
1424
+ tmp_2.m1h_1 = this_0.m1h_1.z2(toLong(bytesWritten_0));
1224
1425
  break $l$block_2;
1225
1426
  }
1226
1427
  if (isEmpty(tail_0)) {
1227
- this_0.m1j();
1428
+ this_0.n1j();
1228
1429
  }
1229
1430
  }
1230
1431
  i = i + 1 | 0;
1231
1432
  } else if (c < 55296 || c > 57343) {
1232
1433
  $l$block_4: {
1233
1434
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1234
- var tail_1 = this_0.s1i(3);
1235
- get_SegmentWriteContextImpl().i1k(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
1435
+ var tail_1 = this_0.t1i(3);
1436
+ get_SegmentWriteContextImpl().j1k(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
1236
1437
  var bytesWritten_1 = 3;
1237
1438
  if (bytesWritten_1 === 3) {
1238
- tail_1.t1h_1 = tail_1.t1h_1 + bytesWritten_1 | 0;
1439
+ tail_1.u1h_1 = tail_1.u1h_1 + bytesWritten_1 | 0;
1239
1440
  var tmp_3 = this_0;
1240
1441
  // Inline function 'kotlin.Long.plus' call
1241
- tmp_3.l1h_1 = this_0.l1h_1.z2(toLong(bytesWritten_1));
1442
+ tmp_3.m1h_1 = this_0.m1h_1.z2(toLong(bytesWritten_1));
1242
1443
  break $l$block_4;
1243
1444
  }
1244
1445
  // Inline function 'kotlin.check' call
1245
- if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.x1i() : false)) {
1246
- var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.x1i();
1446
+ if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.y1i() : false)) {
1447
+ var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.y1i();
1247
1448
  throw IllegalStateException_init_$Create$(toString(message_1));
1248
1449
  }
1249
1450
  if (!(bytesWritten_1 === 0)) {
1250
- tail_1.t1h_1 = tail_1.t1h_1 + bytesWritten_1 | 0;
1451
+ tail_1.u1h_1 = tail_1.u1h_1 + bytesWritten_1 | 0;
1251
1452
  var tmp_4 = this_0;
1252
1453
  // Inline function 'kotlin.Long.plus' call
1253
- tmp_4.l1h_1 = this_0.l1h_1.z2(toLong(bytesWritten_1));
1454
+ tmp_4.m1h_1 = this_0.m1h_1.z2(toLong(bytesWritten_1));
1254
1455
  break $l$block_4;
1255
1456
  }
1256
1457
  if (isEmpty(tail_1)) {
1257
- this_0.m1j();
1458
+ this_0.n1j();
1258
1459
  }
1259
1460
  }
1260
1461
  i = i + 1 | 0;
@@ -1273,43 +1474,43 @@
1273
1474
  // Inline function 'kotlin.code' call
1274
1475
  var this_4 = _Char___init__impl__6a9atx(63);
1275
1476
  var tmp$ret$26 = Char__toInt_impl_vasixd(this_4);
1276
- this_0.g1j(toByte(tmp$ret$26));
1477
+ this_0.h1j(toByte(tmp$ret$26));
1277
1478
  i = i + 1 | 0;
1278
1479
  } else {
1279
1480
  var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
1280
1481
  $l$block_6: {
1281
1482
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1282
- var tail_2 = this_0.s1i(4);
1283
- get_SegmentWriteContextImpl().h1k(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
1483
+ var tail_2 = this_0.t1i(4);
1484
+ get_SegmentWriteContextImpl().i1k(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
1284
1485
  var bytesWritten_2 = 4;
1285
1486
  if (bytesWritten_2 === 4) {
1286
- tail_2.t1h_1 = tail_2.t1h_1 + bytesWritten_2 | 0;
1487
+ tail_2.u1h_1 = tail_2.u1h_1 + bytesWritten_2 | 0;
1287
1488
  var tmp_6 = this_0;
1288
1489
  // Inline function 'kotlin.Long.plus' call
1289
- tmp_6.l1h_1 = this_0.l1h_1.z2(toLong(bytesWritten_2));
1490
+ tmp_6.m1h_1 = this_0.m1h_1.z2(toLong(bytesWritten_2));
1290
1491
  break $l$block_6;
1291
1492
  }
1292
1493
  // Inline function 'kotlin.check' call
1293
- if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.x1i() : false)) {
1294
- var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.x1i();
1494
+ if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.y1i() : false)) {
1495
+ var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.y1i();
1295
1496
  throw IllegalStateException_init_$Create$(toString(message_2));
1296
1497
  }
1297
1498
  if (!(bytesWritten_2 === 0)) {
1298
- tail_2.t1h_1 = tail_2.t1h_1 + bytesWritten_2 | 0;
1499
+ tail_2.u1h_1 = tail_2.u1h_1 + bytesWritten_2 | 0;
1299
1500
  var tmp_7 = this_0;
1300
1501
  // Inline function 'kotlin.Long.plus' call
1301
- tmp_7.l1h_1 = this_0.l1h_1.z2(toLong(bytesWritten_2));
1502
+ tmp_7.m1h_1 = this_0.m1h_1.z2(toLong(bytesWritten_2));
1302
1503
  break $l$block_6;
1303
1504
  }
1304
1505
  if (isEmpty(tail_2)) {
1305
- this_0.m1j();
1506
+ this_0.n1j();
1306
1507
  }
1307
1508
  }
1308
1509
  i = i + 2 | 0;
1309
1510
  }
1310
1511
  }
1311
1512
  }
1312
- _this__u8e3s4.c1i();
1513
+ _this__u8e3s4.d1i();
1313
1514
  }
1314
1515
  function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1315
1516
  beginIndex = beginIndex === VOID ? 0 : beginIndex;
@@ -1673,27 +1874,27 @@
1673
1874
  }
1674
1875
  function SegmentReadContextImpl$1() {
1675
1876
  }
1676
- protoOf(SegmentReadContextImpl$1).k1j = function (segment, offset) {
1677
- return segment.j1i(offset);
1877
+ protoOf(SegmentReadContextImpl$1).l1j = function (segment, offset) {
1878
+ return segment.k1i(offset);
1678
1879
  };
1679
1880
  function SegmentWriteContextImpl$1() {
1680
1881
  }
1681
- protoOf(SegmentWriteContextImpl$1).k1k = function (segment, offset, value) {
1682
- segment.d1k(offset, value);
1882
+ protoOf(SegmentWriteContextImpl$1).l1k = function (segment, offset, value) {
1883
+ segment.e1k(offset, value);
1683
1884
  };
1684
- protoOf(SegmentWriteContextImpl$1).j1k = function (segment, offset, b0, b1) {
1685
- segment.e1k(offset, b0, b1);
1885
+ protoOf(SegmentWriteContextImpl$1).k1k = function (segment, offset, b0, b1) {
1886
+ segment.f1k(offset, b0, b1);
1686
1887
  };
1687
- protoOf(SegmentWriteContextImpl$1).i1k = function (segment, offset, b0, b1, b2) {
1688
- segment.f1k(offset, b0, b1, b2);
1888
+ protoOf(SegmentWriteContextImpl$1).j1k = function (segment, offset, b0, b1, b2) {
1889
+ segment.g1k(offset, b0, b1, b2);
1689
1890
  };
1690
- protoOf(SegmentWriteContextImpl$1).h1k = function (segment, offset, b0, b1, b2, b3) {
1691
- segment.g1k(offset, b0, b1, b2, b3);
1891
+ protoOf(SegmentWriteContextImpl$1).i1k = function (segment, offset, b0, b1, b2, b3) {
1892
+ segment.h1k(offset, b0, b1, b2, b3);
1692
1893
  };
1693
1894
  function BufferIterationContextImpl$1() {
1694
1895
  }
1695
- protoOf(BufferIterationContextImpl$1).k1j = function (segment, offset) {
1696
- return get_SegmentReadContextImpl().k1j(segment, offset);
1896
+ protoOf(BufferIterationContextImpl$1).l1j = function (segment, offset) {
1897
+ return get_SegmentReadContextImpl().l1j(segment, offset);
1697
1898
  };
1698
1899
  var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
1699
1900
  function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
@@ -1761,15 +1962,15 @@
1761
1962
  captureStack(this, EOFException);
1762
1963
  }
1763
1964
  function SegmentPool() {
1764
- this.t1i_1 = 0;
1765
1965
  this.u1i_1 = 0;
1966
+ this.v1i_1 = 0;
1766
1967
  }
1767
- protoOf(SegmentPool).v1i = function () {
1768
- return Companion_instance.y1j();
1968
+ protoOf(SegmentPool).w1i = function () {
1969
+ return Companion_instance.z1j();
1769
1970
  };
1770
- protoOf(SegmentPool).l1j = function (segment) {
1971
+ protoOf(SegmentPool).m1j = function (segment) {
1771
1972
  };
1772
- protoOf(SegmentPool).a1k = function () {
1973
+ protoOf(SegmentPool).b1k = function () {
1773
1974
  return AlwaysSharedCopyTracker_getInstance();
1774
1975
  };
1775
1976
  var SegmentPool_instance;
@@ -1777,7 +1978,7 @@
1777
1978
  return SegmentPool_instance;
1778
1979
  }
1779
1980
  //region block: post-declaration
1780
- protoOf(Buffer).z1i = write$default;
1981
+ protoOf(Buffer).a1j = write$default;
1781
1982
  //endregion
1782
1983
  //region block: init
1783
1984
  Companion_instance = new Companion();
@@ -1794,13 +1995,14 @@
1794
1995
  _.$_$.f = Buffer;
1795
1996
  _.$_$.g = IOException;
1796
1997
  _.$_$.h = Source;
1797
- _.$_$.i = readByteArray_0;
1798
- _.$_$.j = readByteArray;
1799
- _.$_$.k = readByteString;
1800
- _.$_$.l = readString;
1801
- _.$_$.m = readString_0;
1802
- _.$_$.n = readString_1;
1803
- _.$_$.o = writeString;
1998
+ _.$_$.i = indexOf_1;
1999
+ _.$_$.j = readByteArray_0;
2000
+ _.$_$.k = readByteArray;
2001
+ _.$_$.l = readByteString;
2002
+ _.$_$.m = readString;
2003
+ _.$_$.n = readString_0;
2004
+ _.$_$.o = readString_1;
2005
+ _.$_$.p = writeString;
1804
2006
  //endregion
1805
2007
  return _;
1806
2008
  }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-io-kotlinx-io-bytestring.js')));