@attocash/cli 0.2.2 → 0.3.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 (137) hide show
  1. package/README.md +157 -5
  2. package/dist/application/app.d.ts +34 -3
  3. package/dist/application/app.js +142 -125
  4. package/dist/application/operations.d.ts +3 -0
  5. package/dist/application/operations.js +30 -8
  6. package/dist/cli/cli.d.ts +1 -0
  7. package/dist/cli/cli.js +101 -13
  8. package/dist/cli/onboarding.d.ts +13 -0
  9. package/dist/cli/onboarding.js +99 -2
  10. package/dist/cli/output.js +18 -2
  11. package/dist/doctor/profile.js +2 -1
  12. package/dist/internal-marketplace.d.ts +25 -0
  13. package/dist/internal-marketplace.js +50 -0
  14. package/dist/marketplace/approval-files.d.ts +3 -0
  15. package/dist/marketplace/approval-files.js +97 -0
  16. package/dist/marketplace/approval-preview.d.ts +2 -0
  17. package/dist/marketplace/approval-preview.js +86 -0
  18. package/dist/marketplace/proof-approval.d.ts +82 -0
  19. package/dist/marketplace/proof-approval.js +671 -0
  20. package/dist/marketplace/topups.d.ts +82 -0
  21. package/dist/marketplace/topups.js +485 -0
  22. package/dist/network/batching.d.ts +2 -0
  23. package/dist/network/batching.js +23 -0
  24. package/dist/network/entry.d.ts +2 -0
  25. package/dist/network/entry.js +35 -0
  26. package/dist/network/reader.d.ts +2 -0
  27. package/dist/network/reader.js +125 -37
  28. package/dist/spending/approval.d.ts +35 -0
  29. package/dist/spending/approval.js +25 -0
  30. package/dist/spending/atto-x402.d.ts +31 -0
  31. package/dist/spending/atto-x402.js +174 -0
  32. package/dist/spending/ledger.d.ts +74 -2
  33. package/dist/spending/ledger.js +298 -7
  34. package/dist/spending/payments.d.ts +105 -5
  35. package/dist/spending/payments.js +795 -11
  36. package/dist/storage/recovery-seed.d.ts +13 -0
  37. package/dist/storage/recovery-seed.js +93 -0
  38. package/dist/storage/state.d.ts +4 -0
  39. package/dist/storage/state.js +32 -2
  40. package/dist/wallet/receive.d.ts +39 -0
  41. package/dist/wallet/receive.js +264 -0
  42. package/dist/wallet/signing.d.ts +1 -0
  43. package/dist/wallet/signing.js +37 -21
  44. package/dist/wallet/types.d.ts +1 -0
  45. package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs +1922 -1918
  46. package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
  47. package/node_modules/@attocash/commons-core/README.md +9 -0
  48. package/node_modules/@attocash/commons-core/commons-commons-core.d.mts +10 -0
  49. package/node_modules/@attocash/commons-core/commons-commons-core.mjs +2543 -2434
  50. package/node_modules/@attocash/commons-core/commons-commons-core.mjs.map +1 -1
  51. package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs +4695 -4227
  52. package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs.map +1 -1
  53. package/node_modules/@attocash/commons-core/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
  54. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs +60 -60
  55. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
  56. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs +651 -631
  57. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  58. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs +2294 -2295
  59. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  60. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  61. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  62. package/node_modules/@attocash/commons-core/package.json +1 -1
  63. package/node_modules/@attocash/commons-node/commons-commons-node.d.mts +1 -0
  64. package/node_modules/@attocash/commons-node/commons-commons-node.mjs +873 -847
  65. package/node_modules/@attocash/commons-node/commons-commons-node.mjs.map +1 -1
  66. package/node_modules/@attocash/commons-node/kotlin-logging.mjs +109 -109
  67. package/node_modules/@attocash/commons-node/kotlin-logging.mjs.map +1 -1
  68. package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  69. package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  70. package/node_modules/@attocash/commons-node/package.json +3 -3
  71. package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.d.mts +1 -0
  72. package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs +674 -640
  73. package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs.map +1 -1
  74. package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs +109 -109
  75. package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs.map +1 -1
  76. package/node_modules/@attocash/commons-node-remote/kotlinx-browser.mjs.map +1 -1
  77. package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
  78. package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  79. package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  80. package/node_modules/@attocash/commons-node-remote/package.json +4 -4
  81. package/node_modules/@attocash/commons-transport/commons-commons-transport.d.mts +1 -0
  82. package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs +52 -51
  83. package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs.map +1 -1
  84. package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs +13 -13
  85. package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs.map +1 -1
  86. package/node_modules/@attocash/commons-transport/kotlinx-browser.mjs.map +1 -1
  87. package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs +2639 -2608
  88. package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs.map +1 -1
  89. package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
  90. package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  91. package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  92. package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs +411 -196
  93. package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs.map +1 -1
  94. package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs +2115 -1976
  95. package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs.map +1 -1
  96. package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs +7 -7
  97. package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs.map +1 -1
  98. package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs +385 -384
  99. package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs.map +1 -1
  100. package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs +1261 -1185
  101. package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs.map +1 -1
  102. package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs +668 -656
  103. package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs.map +1 -1
  104. package/node_modules/@attocash/commons-transport/ktor-ktor-openapi-schema.mjs +89 -0
  105. package/node_modules/@attocash/commons-transport/ktor-ktor-openapi-schema.mjs.map +1 -0
  106. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs +9 -9
  107. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -1
  108. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs +120 -128
  109. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
  110. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs +46 -49
  111. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs.map +1 -1
  112. package/node_modules/@attocash/commons-transport/ktor-ktor-sse.mjs.map +1 -1
  113. package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs +1041 -985
  114. package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs.map +1 -1
  115. package/node_modules/@attocash/commons-transport/ktor-ktor-websocket-serialization.mjs.map +1 -1
  116. package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs +530 -455
  117. package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs.map +1 -1
  118. package/node_modules/@attocash/commons-transport/package.json +4 -4
  119. package/node_modules/@attocash/commons-worker/commons-commons-worker.d.mts +1 -0
  120. package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs +230 -226
  121. package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs.map +1 -1
  122. package/node_modules/@attocash/commons-worker/kotlin-logging.mjs +109 -109
  123. package/node_modules/@attocash/commons-worker/kotlin-logging.mjs.map +1 -1
  124. package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  125. package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  126. package/node_modules/@attocash/commons-worker/package.json +3 -3
  127. package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.d.mts +1 -0
  128. package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs +91 -86
  129. package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs.map +1 -1
  130. package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs +109 -109
  131. package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs.map +1 -1
  132. package/node_modules/@attocash/commons-worker-remote/kotlinx-browser.mjs.map +1 -1
  133. package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
  134. package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  135. package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  136. package/node_modules/@attocash/commons-worker-remote/package.json +4 -4
  137. package/package.json +9 -5
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  VOID3gxj6tk5isa35 as VOID,
3
3
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
4
- Unit_instance3vdlo4e4f5ggx as Unit_instance,
4
+ Unit_instance3kz1zqli6gr1r as Unit_instance,
5
5
  IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
6
6
  toString1pkumu07cwy4m as toString,
7
7
  abs1kdzbjes1idip as abs,
8
8
  StringBuildermazzzhj6kkai as StringBuilder,
9
+ orPromise1iucc2to2udt2 as orPromise,
9
10
  constructCallableReference23y65rf941mch as constructCallableReference,
10
11
  ArrayList3it5z8td81qkl as ArrayList,
11
12
  sequence2vgswtrxvqoa7 as sequence,
@@ -14,15 +15,15 @@ import {
14
15
  THROW_CCE2g6jy02ryeudk as THROW_CCE,
15
16
  isIntArrayeijsubfngq38 as isIntArray,
16
17
  IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
17
- _Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
18
+ _Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx,
18
19
  endsWith1a79dp5rc3sfv as endsWith,
19
20
  charSequenceLength3278n89t01tmv as charSequenceLength,
20
21
  charSequenceGet1vxk1y5n17t1z as charSequenceGet,
21
22
  Char19o2r8palgjof as Char,
22
- Char__compareTo_impl_ypi4mb1yxpplfe5vmm as Char__compareTo_impl_ypi4mb,
23
+ Char__compareTo_impl_ypi4mb3bl0kdwnivnp6 as Char__compareTo_impl_ypi4mb,
23
24
  contains2el4s70rdq4ld as contains,
24
25
  charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
25
- Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
26
+ Char__toInt_impl_vasixd28v1p2u6jau5g as Char__toInt_impl_vasixd,
26
27
  captureStack1fzi4aczwc4hg as captureStack,
27
28
  setOf45ia9pnfhe90 as setOf,
28
29
  listOf1jh22dvmctj1r as listOf,
@@ -50,37 +51,37 @@ import {
50
51
  charArray2ujmm1qusno00 as charArray,
51
52
  shiftLeft3tsh2sstjchzn as shiftLeft,
52
53
  NumberFormatException3bgsm2s9o4t55 as NumberFormatException,
53
- toString336ienavfnzn0 as toString_1,
54
+ toString1n9qg6fb0b5i8 as toString_1,
54
55
  charCodeAt1yspne1d8erbm as charCodeAt,
55
56
  numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
56
57
  collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
57
58
  numberToLong2pakxeg38estk as numberToLong,
58
59
  toLongArray23ixicpzp5r3w as toLongArray,
59
- Char__plus_impl_qi7pgj1h8009bm3fa2t as Char__plus_impl_qi7pgj,
60
- Char__minus_impl_a2frrh3216wnsvv1j3k as Char__minus_impl_a2frrh,
60
+ Char__plus_impl_qi7pgj12gj4qbkhmj1y as Char__plus_impl_qi7pgj,
61
+ Char__minus_impl_a2frrh4e9xgjqbj3za as Char__minus_impl_a2frrh,
61
62
  toByteArray3caw0hip00os as toByteArray,
62
63
  isWhitespace25occ8z1ed1s9 as isWhitespace,
63
64
  } from '@attocash/commons-core/kotlin-kotlin-stdlib.mjs';
64
65
  import {
65
66
  MultiPartData57syw40llxls as MultiPartData,
66
- MultiPart_getInstance1k6b6wx1k1sjr as MultiPart_getInstance,
67
- Companion_getInstance1pptfj8vjmgsz as Companion_getInstance,
67
+ MultiPart_getInstance5h1nld8q49pe as MultiPart_getInstance,
68
+ Companion_getInstance29j9s2wnmk34z as Companion_getInstance,
68
69
  } from './ktor-ktor-http.mjs';
69
70
  import {
70
71
  DefaultPool2gb1fm4epwgu9 as DefaultPool,
71
- readLineStrictTo30g42df56og5l as readLineStrictTo,
72
- Companion_getInstance33j3lym6q7yx7 as Companion_getInstance_0,
73
- LineEndingMode__plus_impl_ttpz2j3u2ebrlepd29o as LineEndingMode__plus_impl_ttpz2j,
74
- readUntil13nwpwqdlw2vo as readUntil,
75
- copyTo1e8cxw3cmqjst as copyTo,
76
- skipIfFound2z2la3mzzpubl as skipIfFound,
72
+ readLineStrictTo1b1nwo5trwh7s as readLineStrictTo,
73
+ Companion_getInstance325d2evlpmaqk as Companion_getInstance_0,
74
+ LineEndingMode__plus_impl_ttpz2j3huakwvr4g74l as LineEndingMode__plus_impl_ttpz2j,
75
+ readUntil2ls7o0c1kzd4x as readUntil,
76
+ copyTo2t9ovypu2ttur as copyTo,
77
+ skipIfFoundarb6fjv6fvg7 as skipIfFound,
77
78
  counted3iniv3aql3f9n as counted,
78
79
  writer1eia5its2a1fh as writer,
79
- readRemaining1kbpbgdrq25q1 as readRemaining,
80
+ readBuffery45c0omfxhxc as readBuffer,
80
81
  get_remaining1lapv95kcmm0y as get_remaining,
81
82
  ByteChannel3cxdguezl3lu7 as ByteChannel,
82
83
  close3semq7pafb42g as close,
83
- readPacket25aqlhslm04t6 as readPacket,
84
+ readPacket290wjvm56mmfy as readPacket,
84
85
  toByteArray1i3ns5jnoqlv6 as toByteArray_0,
85
86
  NoPoolImplgos9n8jphzjp as NoPoolImpl,
86
87
  } from './ktor-ktor-io.mjs';
@@ -103,87 +104,87 @@ var imul = Math.imul;
103
104
  class CIOMultipartDataBase {
104
105
  constructor(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
105
106
  formFieldLimit = formFieldLimit === VOID ? 65536n : formFieldLimit;
106
- this.p4m_1 = coroutineContext;
107
- this.q4m_1 = null;
108
- this.r4m_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
107
+ this.coroutineContext_1 = coroutineContext;
108
+ this.previousPart_1 = null;
109
+ this.events_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
109
110
  }
110
- o2r() {
111
- return this.p4m_1;
111
+ get_coroutineContext_115oqo_k$() {
112
+ return this.coroutineContext_1;
112
113
  }
113
114
  }
114
115
  class HttpHeadersMap {
115
116
  constructor(builder) {
116
- this.s4m_1 = builder;
117
- this.t4m_1 = 0;
118
- this.u4m_1 = 0;
119
- this.v4m_1 = get_HeadersDataPool().d41();
117
+ this.builder_1 = builder;
118
+ this.size_1 = 0;
119
+ this.headerCapacity_1 = 0;
120
+ this.headersData_1 = get_HeadersDataPool().borrow_mvkpor_k$();
120
121
  }
121
- p1i(name) {
122
- if (this.t4m_1 === 0)
122
+ get_6bo4tg_k$(name) {
123
+ if (this.size_1 === 0)
123
124
  return null;
124
125
  // Inline function 'kotlin.math.absoluteValue' call
125
126
  var this_0 = hashCodeLowerCase(name);
126
127
  var hash = abs(this_0);
127
- var headerIndex = hash % this.u4m_1 | 0;
128
- while (!(this.v4m_1.a4n(imul(headerIndex, 6) + 0 | 0) === -1)) {
128
+ var headerIndex = hash % this.headerCapacity_1 | 0;
129
+ while (!(this.headersData_1.at_whxqnv_k$(imul(headerIndex, 6) + 0 | 0) === -1)) {
129
130
  if (headerHasName(this, name, imul(headerIndex, 6))) {
130
- return this.c4n(imul(headerIndex, 6));
131
+ return this.valueAtOffset_rvq37j_k$(imul(headerIndex, 6));
131
132
  }
132
- headerIndex = (headerIndex + 1 | 0) % this.u4m_1 | 0;
133
+ headerIndex = (headerIndex + 1 | 0) % this.headerCapacity_1 | 0;
133
134
  }
134
135
  return null;
135
136
  }
136
- d4n() {
137
- return this.v4m_1.z4m();
137
+ offsets_plvqo0_k$() {
138
+ return this.headersData_1.headersStarts_9a2v7t_k$();
138
139
  }
139
- b4n(nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
140
+ put_ca69tt_k$(nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
140
141
  if (thresholdReached(this)) {
141
142
  resize(this);
142
143
  }
143
144
  // Inline function 'kotlin.math.absoluteValue' call
144
- var this_0 = hashCodeLowerCase(this.s4m_1, nameStartIndex, nameEndIndex);
145
+ var this_0 = hashCodeLowerCase(this.builder_1, nameStartIndex, nameEndIndex);
145
146
  var hash = abs(this_0);
146
- var name = this.s4m_1.c(nameStartIndex, nameEndIndex);
147
- var headerIndex = hash % this.u4m_1 | 0;
147
+ var name = this.builder_1.subSequence_hm5hnj_k$(nameStartIndex, nameEndIndex);
148
+ var headerIndex = hash % this.headerCapacity_1 | 0;
148
149
  var sameNameHeaderIndex = -1;
149
- while (!(this.v4m_1.a4n(imul(headerIndex, 6) + 0 | 0) === -1)) {
150
+ while (!(this.headersData_1.at_whxqnv_k$(imul(headerIndex, 6) + 0 | 0) === -1)) {
150
151
  if (headerHasName(this, name, imul(headerIndex, 6))) {
151
152
  sameNameHeaderIndex = headerIndex;
152
153
  }
153
- headerIndex = (headerIndex + 1 | 0) % this.u4m_1 | 0;
154
+ headerIndex = (headerIndex + 1 | 0) % this.headerCapacity_1 | 0;
154
155
  }
155
156
  var headerOffset = imul(headerIndex, 6);
156
- this.v4m_1.l4n(headerOffset + 0 | 0, hash);
157
- this.v4m_1.l4n(headerOffset + 1 | 0, nameStartIndex);
158
- this.v4m_1.l4n(headerOffset + 2 | 0, nameEndIndex);
159
- this.v4m_1.l4n(headerOffset + 3 | 0, valueStartIndex);
160
- this.v4m_1.l4n(headerOffset + 4 | 0, valueEndIndex);
161
- this.v4m_1.l4n(headerOffset + 5 | 0, -1);
157
+ this.headersData_1.set_g707pu_k$(headerOffset + 0 | 0, hash);
158
+ this.headersData_1.set_g707pu_k$(headerOffset + 1 | 0, nameStartIndex);
159
+ this.headersData_1.set_g707pu_k$(headerOffset + 2 | 0, nameEndIndex);
160
+ this.headersData_1.set_g707pu_k$(headerOffset + 3 | 0, valueStartIndex);
161
+ this.headersData_1.set_g707pu_k$(headerOffset + 4 | 0, valueEndIndex);
162
+ this.headersData_1.set_g707pu_k$(headerOffset + 5 | 0, -1);
162
163
  if (!(sameNameHeaderIndex === -1)) {
163
- this.v4m_1.l4n(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
164
+ this.headersData_1.set_g707pu_k$(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
164
165
  }
165
- this.t4m_1 = this.t4m_1 + 1 | 0;
166
+ this.size_1 = this.size_1 + 1 | 0;
166
167
  }
167
- m4n(headerOffset) {
168
- var nameStartIndex = this.v4m_1.a4n(headerOffset + 1 | 0);
169
- var nameEndIndex = this.v4m_1.a4n(headerOffset + 2 | 0);
170
- return this.s4m_1.c(nameStartIndex, nameEndIndex);
168
+ nameAtOffset_nevk7t_k$(headerOffset) {
169
+ var nameStartIndex = this.headersData_1.at_whxqnv_k$(headerOffset + 1 | 0);
170
+ var nameEndIndex = this.headersData_1.at_whxqnv_k$(headerOffset + 2 | 0);
171
+ return this.builder_1.subSequence_hm5hnj_k$(nameStartIndex, nameEndIndex);
171
172
  }
172
- c4n(headerOffset) {
173
- var valueStartIndex = this.v4m_1.a4n(headerOffset + 3 | 0);
174
- var valueEndIndex = this.v4m_1.a4n(headerOffset + 4 | 0);
175
- return this.s4m_1.c(valueStartIndex, valueEndIndex);
173
+ valueAtOffset_rvq37j_k$(headerOffset) {
174
+ var valueStartIndex = this.headersData_1.at_whxqnv_k$(headerOffset + 3 | 0);
175
+ var valueEndIndex = this.headersData_1.at_whxqnv_k$(headerOffset + 4 | 0);
176
+ return this.builder_1.subSequence_hm5hnj_k$(valueStartIndex, valueEndIndex);
176
177
  }
177
- i1g() {
178
- this.t4m_1 = 0;
179
- this.u4m_1 = 0;
180
- get_HeadersDataPool().e41(this.v4m_1);
181
- this.v4m_1 = get_HeadersDataPool().d41();
178
+ release_wu5yyf_k$() {
179
+ this.size_1 = 0;
180
+ this.headerCapacity_1 = 0;
181
+ get_HeadersDataPool().recycle_d2xv5h_k$(this.headersData_1);
182
+ this.headersData_1 = get_HeadersDataPool().borrow_mvkpor_k$();
182
183
  }
183
184
  toString() {
184
185
  // Inline function 'kotlin.text.buildString' call
185
186
  // Inline function 'kotlin.apply' call
186
- var this_0 = StringBuilder.h1();
187
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$();
187
188
  dumpTo(this, '', this_0);
188
189
  return this_0.toString();
189
190
  }
@@ -192,45 +193,45 @@ class HeadersData {
192
193
  constructor() {
193
194
  var tmp = this;
194
195
  // Inline function 'kotlin.collections.mutableListOf' call
195
- tmp.w4m_1 = ArrayList.f2();
196
+ tmp.arrays_1 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
196
197
  }
197
- x4m() {
198
- return this.w4m_1.p2();
198
+ arraysCount_qdzoj9_k$() {
199
+ return this.arrays_1.get_size_woubt6_k$();
199
200
  }
200
- y4m(subArraysCount) {
201
+ prepare_vwo6lb_k$(subArraysCount) {
201
202
  // Inline function 'kotlin.repeat' call
202
203
  var inductionVariable = 0;
203
204
  if (inductionVariable < subArraysCount)
204
205
  do {
205
206
  var index = inductionVariable;
206
207
  inductionVariable = inductionVariable + 1 | 0;
207
- this.w4m_1.e2(get_IntArrayPool().d41());
208
+ this.arrays_1.add_utx5q5_k$(get_IntArrayPool().borrow_mvkpor_k$());
208
209
  }
209
210
  while (inductionVariable < subArraysCount);
210
211
  }
211
- a4n(index) {
212
- return this.w4m_1.q2(index / 768 | 0)[index % 768 | 0];
212
+ at_whxqnv_k$(index) {
213
+ return this.arrays_1.get_c1px32_k$(index / 768 | 0)[index % 768 | 0];
213
214
  }
214
- l4n(index, value) {
215
- this.w4m_1.q2(index / 768 | 0)[index % 768 | 0] = value;
215
+ set_g707pu_k$(index, value) {
216
+ this.arrays_1.get_c1px32_k$(index / 768 | 0)[index % 768 | 0] = value;
216
217
  }
217
- z4m() {
218
+ headersStarts_9a2v7t_k$() {
218
219
  return sequence(HeadersData$headersStarts$slambda(this));
219
220
  }
220
- i1g() {
221
- var _iterator__ex2g4s = this.w4m_1.l1();
222
- while (_iterator__ex2g4s.m1()) {
223
- var array = _iterator__ex2g4s.n1();
224
- get_IntArrayPool().e41(array);
221
+ release_wu5yyf_k$() {
222
+ var _iterator__ex2g4s = this.arrays_1.iterator_jk1svi_k$();
223
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
224
+ var array = _iterator__ex2g4s.next_20eer_k$();
225
+ get_IntArrayPool().recycle_d2xv5h_k$(array);
225
226
  }
226
- this.w4m_1.j4();
227
+ this.arrays_1.clear_j9egeb_k$();
227
228
  }
228
229
  }
229
230
  class IntArrayPool$1 extends DefaultPool {
230
231
  constructor() {
231
232
  super(1000);
232
233
  }
233
- w40() {
234
+ produceInstance_xswihh_k$() {
234
235
  var tmp = 0;
235
236
  var tmp_0 = new Int32Array(768);
236
237
  while (tmp < 768) {
@@ -239,36 +240,36 @@ class IntArrayPool$1 extends DefaultPool {
239
240
  }
240
241
  return tmp_0;
241
242
  }
242
- q4n(instance) {
243
+ clearInstance_c5szmx_k$(instance) {
243
244
  fill(instance, -1);
244
- return protoOf(DefaultPool).b41.call(this, instance);
245
+ return protoOf(DefaultPool).clearInstance_nfz4jw_k$.call(this, instance);
245
246
  }
246
- b41(instance) {
247
- return this.q4n(isIntArray(instance) ? instance : THROW_CCE());
247
+ clearInstance_nfz4jw_k$(instance) {
248
+ return this.clearInstance_c5szmx_k$(isIntArray(instance) ? instance : THROW_CCE());
248
249
  }
249
250
  }
250
251
  class HeadersDataPool$1 extends DefaultPool {
251
252
  constructor() {
252
253
  super(1000);
253
254
  }
254
- w40() {
255
+ produceInstance_xswihh_k$() {
255
256
  return new HeadersData();
256
257
  }
257
- u4n(instance) {
258
- instance.i1g();
259
- return protoOf(DefaultPool).b41.call(this, instance);
258
+ clearInstance_adg7k9_k$(instance) {
259
+ instance.release_wu5yyf_k$();
260
+ return protoOf(DefaultPool).clearInstance_nfz4jw_k$.call(this, instance);
260
261
  }
261
- b41(instance) {
262
- return this.u4n(instance instanceof HeadersData ? instance : THROW_CCE());
262
+ clearInstance_nfz4jw_k$(instance) {
263
+ return this.clearInstance_adg7k9_k$(instance instanceof HeadersData ? instance : THROW_CCE());
263
264
  }
264
265
  }
265
266
  class ParserException extends IllegalStateException {
266
267
  constructor(message) {
267
- return new.target.b4o(message);
268
+ return new.target.new_io_ktor_http_cio_ParserException_9f9heq_k$(message);
268
269
  }
269
- static b4o(message) {
270
- var $this = this.o(message);
271
- captureStack($this, $this.a4o_1);
270
+ static new_io_ktor_http_cio_ParserException_9f9heq_k$(message) {
271
+ var $this = this.new_kotlin_IllegalStateException_w47ei6_k$(message);
272
+ captureStack($this, $this.$throwableCtor_4);
272
273
  return $this;
273
274
  }
274
275
  }
@@ -276,44 +277,44 @@ class MultipartEvent {}
276
277
  class Preamble extends MultipartEvent {
277
278
  constructor(body) {
278
279
  super();
279
- this.d4o_1 = body;
280
+ this.body_1 = body;
280
281
  }
281
282
  }
282
283
  class MultipartPart extends MultipartEvent {
283
284
  constructor(headers, body) {
284
285
  super();
285
- this.e4o_1 = headers;
286
- this.f4o_1 = body;
286
+ this.headers_1 = headers;
287
+ this.body_1 = body;
287
288
  }
288
289
  }
289
290
  class Epilogue extends MultipartEvent {
290
291
  constructor(body) {
291
292
  super();
292
- this.g4o_1 = body;
293
+ this.body_1 = body;
293
294
  }
294
295
  }
295
296
  class Node {
296
297
  constructor(ch, exact, children) {
297
- this.l4o_1 = ch;
298
- this.m4o_1 = exact;
299
- this.n4o_1 = children;
298
+ this.ch_1 = ch;
299
+ this.exact_1 = exact;
300
+ this.children_1 = children;
300
301
  var tmp = this;
301
302
  var tmp_0 = 0;
302
303
  // Inline function 'kotlin.arrayOfNulls' call
303
304
  var tmp_1 = Array(256);
304
305
  while (tmp_0 < 256) {
305
306
  var tmp_2 = tmp_0;
306
- var tmp0 = this.n4o_1;
307
+ var tmp0 = this.children_1;
307
308
  var tmp$ret$2;
308
309
  $l$block_0: {
309
310
  // Inline function 'kotlin.collections.singleOrNull' call
310
311
  var single = null;
311
312
  var found = false;
312
- var _iterator__ex2g4s = tmp0.l1();
313
- while (_iterator__ex2g4s.m1()) {
314
- var element = _iterator__ex2g4s.n1();
313
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
314
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
315
+ var element = _iterator__ex2g4s.next_20eer_k$();
315
316
  // Inline function 'kotlin.code' call
316
- var this_0 = element.l4o_1;
317
+ var this_0 = element.ch_1;
317
318
  if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
318
319
  if (found) {
319
320
  tmp$ret$2 = null;
@@ -332,38 +333,38 @@ class Node {
332
333
  tmp_1[tmp_2] = tmp$ret$2;
333
334
  tmp_0 = tmp_0 + 1 | 0;
334
335
  }
335
- tmp.o4o_1 = tmp_1;
336
+ tmp.array_1 = tmp_1;
336
337
  }
337
338
  }
338
339
  class Companion {
339
- c4o(from) {
340
+ build_qfjo4r_k$(from) {
340
341
  var tmp = AsciiCharTree$Companion$build$lambda;
341
- return this.p4o(from, tmp, AsciiCharTree$Companion$build$lambda_0);
342
+ return this.build_su3zc2_k$(from, tmp, AsciiCharTree$Companion$build$lambda_0);
342
343
  }
343
- p4o(from, length, charAt) {
344
+ build_su3zc2_k$(from, length, charAt) {
344
345
  var tmp$ret$0;
345
346
  $l$block_0: {
346
347
  // Inline function 'kotlin.collections.maxByOrNull' call
347
- var iterator = from.l1();
348
- if (!iterator.m1()) {
348
+ var iterator = from.iterator_jk1svi_k$();
349
+ if (!iterator.hasNext_bitz1p_k$()) {
349
350
  tmp$ret$0 = null;
350
351
  break $l$block_0;
351
352
  }
352
- var maxElem = iterator.n1();
353
- if (!iterator.m1()) {
353
+ var maxElem = iterator.next_20eer_k$();
354
+ if (!iterator.hasNext_bitz1p_k$()) {
354
355
  tmp$ret$0 = maxElem;
355
356
  break $l$block_0;
356
357
  }
357
358
  var maxValue = length(maxElem);
358
359
  do {
359
- var e = iterator.n1();
360
+ var e = iterator.next_20eer_k$();
360
361
  var v = length(e);
361
362
  if (compareTo(maxValue, v) < 0) {
362
363
  maxElem = e;
363
364
  maxValue = v;
364
365
  }
365
366
  }
366
- while (iterator.m1());
367
+ while (iterator.hasNext_bitz1p_k$());
367
368
  tmp$ret$0 = maxElem;
368
369
  }
369
370
  var tmp0_safe_receiver = tmp$ret$0;
@@ -377,7 +378,7 @@ class Companion {
377
378
  var tmp1_elvis_lhs = tmp;
378
379
  var tmp_0;
379
380
  if (tmp1_elvis_lhs == null) {
380
- throw NoSuchElementException.j2('Unable to build char tree from an empty list');
381
+ throw NoSuchElementException.new_kotlin_NoSuchElementException_eborbh_k$('Unable to build char tree from an empty list');
381
382
  } else {
382
383
  tmp_0 = tmp1_elvis_lhs;
383
384
  }
@@ -387,7 +388,7 @@ class Companion {
387
388
  // Inline function 'kotlin.collections.any' call
388
389
  var tmp_1;
389
390
  if (isInterface(from, Collection)) {
390
- tmp_1 = from.j1();
391
+ tmp_1 = from.isEmpty_y1axqb_k$();
391
392
  } else {
392
393
  tmp_1 = false;
393
394
  }
@@ -395,9 +396,9 @@ class Companion {
395
396
  tmp$ret$2 = false;
396
397
  break $l$block_2;
397
398
  }
398
- var _iterator__ex2g4s = from.l1();
399
- while (_iterator__ex2g4s.m1()) {
400
- var element = _iterator__ex2g4s.n1();
399
+ var _iterator__ex2g4s = from.iterator_jk1svi_k$();
400
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
401
+ var element = _iterator__ex2g4s.next_20eer_k$();
401
402
  if (length(element) === 0) {
402
403
  tmp$ret$2 = true;
403
404
  break $l$block_2;
@@ -406,69 +407,69 @@ class Companion {
406
407
  tmp$ret$2 = false;
407
408
  }
408
409
  if (tmp$ret$2)
409
- throw IllegalArgumentException.n2('There should be no empty entries');
410
- var root = ArrayList.f2();
410
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('There should be no empty entries');
411
+ var root = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
411
412
  build(this, root, from, maxLen, 0, length, charAt);
412
- root.l8();
413
+ root.trimToSize_dmxq0i_k$();
413
414
  return new AsciiCharTree(new Node(_Char___init__impl__6a9atx(0), emptyList(), root));
414
415
  }
415
416
  }
416
417
  class AsciiCharTree {
417
418
  constructor(root) {
418
- this.q4o_1 = root;
419
+ this.root_1 = root;
419
420
  }
420
421
  }
421
422
  class SubSequenceImpl {
422
423
  constructor($outer, start, end) {
423
- this.u4o_1 = $outer;
424
- this.r4o_1 = start;
425
- this.s4o_1 = end;
426
- this.t4o_1 = null;
424
+ this.$this_1 = $outer;
425
+ this.start_1 = start;
426
+ this.end_1 = end;
427
+ this.stringified_1 = null;
427
428
  }
428
- a() {
429
- return this.s4o_1 - this.r4o_1 | 0;
429
+ get_length_g42xv3_k$() {
430
+ return this.end_1 - this.start_1 | 0;
430
431
  }
431
- b(index) {
432
- var withOffset = index + this.r4o_1 | 0;
432
+ get_kdzpvg_k$(index) {
433
+ var withOffset = index + this.start_1 | 0;
433
434
  // Inline function 'kotlin.require' call
434
435
  if (!(index >= 0)) {
435
436
  var message = 'index is negative: ' + index;
436
- throw IllegalArgumentException.n2(toString(message));
437
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message));
437
438
  }
438
439
  // Inline function 'kotlin.require' call
439
- if (!(withOffset < this.s4o_1)) {
440
- var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
441
- throw IllegalArgumentException.n2(toString(message_0));
440
+ if (!(withOffset < this.end_1)) {
441
+ var message_0 = 'index (' + index + ') should be less than length (' + this.get_length_g42xv3_k$() + ')';
442
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message_0));
442
443
  }
443
- return getImpl(this.u4o_1, withOffset);
444
+ return getImpl(this.$this_1, withOffset);
444
445
  }
445
- c(startIndex, endIndex) {
446
+ subSequence_hm5hnj_k$(startIndex, endIndex) {
446
447
  // Inline function 'kotlin.require' call
447
448
  if (!(startIndex >= 0)) {
448
449
  var message = 'start is negative: ' + startIndex;
449
- throw IllegalArgumentException.n2(toString(message));
450
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message));
450
451
  }
451
452
  // Inline function 'kotlin.require' call
452
453
  if (!(startIndex <= endIndex)) {
453
454
  var message_0 = 'start (' + startIndex + ') should be less or equal to end (' + endIndex + ')';
454
- throw IllegalArgumentException.n2(toString(message_0));
455
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message_0));
455
456
  }
456
457
  // Inline function 'kotlin.require' call
457
- if (!(endIndex <= (this.s4o_1 - this.r4o_1 | 0))) {
458
- var message_1 = 'end should be less than length (' + this.a() + ')';
459
- throw IllegalArgumentException.n2(toString(message_1));
458
+ if (!(endIndex <= (this.end_1 - this.start_1 | 0))) {
459
+ var message_1 = 'end should be less than length (' + this.get_length_g42xv3_k$() + ')';
460
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message_1));
460
461
  }
461
462
  if (startIndex === endIndex)
462
463
  return '';
463
- return new SubSequenceImpl(this.u4o_1, this.r4o_1 + startIndex | 0, this.r4o_1 + endIndex | 0);
464
+ return new SubSequenceImpl(this.$this_1, this.start_1 + startIndex | 0, this.start_1 + endIndex | 0);
464
465
  }
465
466
  toString() {
466
- var tmp0_elvis_lhs = this.t4o_1;
467
+ var tmp0_elvis_lhs = this.stringified_1;
467
468
  var tmp;
468
469
  if (tmp0_elvis_lhs == null) {
469
470
  // Inline function 'kotlin.also' call
470
- var this_0 = toString(copy(this.u4o_1, this.r4o_1, this.s4o_1));
471
- this.t4o_1 = this_0;
471
+ var this_0 = toString(copy(this.$this_1, this.start_1, this.end_1));
472
+ this.stringified_1 = this_0;
472
473
  tmp = this_0;
473
474
  } else {
474
475
  tmp = tmp0_elvis_lhs;
@@ -478,68 +479,68 @@ class SubSequenceImpl {
478
479
  equals(other) {
479
480
  if (!(!(other == null) ? isCharSequence(other) : false))
480
481
  return false;
481
- if (!(charSequenceLength(other) === this.a()))
482
+ if (!(charSequenceLength(other) === this.get_length_g42xv3_k$()))
482
483
  return false;
483
- return rangeEqualsImpl(this.u4o_1, this.r4o_1, other, 0, this.a());
484
+ return rangeEqualsImpl(this.$this_1, this.start_1, other, 0, this.get_length_g42xv3_k$());
484
485
  }
485
486
  hashCode() {
486
- var tmp0_safe_receiver = this.t4o_1;
487
+ var tmp0_safe_receiver = this.stringified_1;
487
488
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
488
- return tmp1_elvis_lhs == null ? hashCodeImpl(this.u4o_1, this.r4o_1, this.s4o_1) : tmp1_elvis_lhs;
489
+ return tmp1_elvis_lhs == null ? hashCodeImpl(this.$this_1, this.start_1, this.end_1) : tmp1_elvis_lhs;
489
490
  }
490
491
  }
491
492
  class CharArrayBuilder {
492
493
  constructor(pool) {
493
494
  pool = pool === VOID ? get_CharArrayPool() : pool;
494
- this.e4n_1 = pool;
495
- this.f4n_1 = null;
496
- this.g4n_1 = null;
497
- this.h4n_1 = null;
498
- this.i4n_1 = false;
499
- this.j4n_1 = 0;
500
- this.k4n_1 = 0;
501
- }
502
- a() {
503
- return this.k4n_1;
504
- }
505
- b(index) {
495
+ this.pool_1 = pool;
496
+ this.buffers_1 = null;
497
+ this.current_1 = null;
498
+ this.stringified_1 = null;
499
+ this.released_1 = false;
500
+ this.remaining_1 = 0;
501
+ this.length_1 = 0;
502
+ }
503
+ get_length_g42xv3_k$() {
504
+ return this.length_1;
505
+ }
506
+ get_kdzpvg_k$(index) {
506
507
  // Inline function 'kotlin.require' call
507
508
  if (!(index >= 0)) {
508
509
  var message = 'index is negative: ' + index;
509
- throw IllegalArgumentException.n2(toString(message));
510
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message));
510
511
  }
511
512
  // Inline function 'kotlin.require' call
512
- if (!(index < this.k4n_1)) {
513
- var message_0 = 'index ' + index + ' is not in range [0, ' + this.k4n_1 + ')';
514
- throw IllegalArgumentException.n2(toString(message_0));
513
+ if (!(index < this.length_1)) {
514
+ var message_0 = 'index ' + index + ' is not in range [0, ' + this.length_1 + ')';
515
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message_0));
515
516
  }
516
517
  return getImpl(this, index);
517
518
  }
518
- c(startIndex, endIndex) {
519
+ subSequence_hm5hnj_k$(startIndex, endIndex) {
519
520
  // Inline function 'kotlin.require' call
520
521
  if (!(startIndex <= endIndex)) {
521
522
  var message = 'startIndex (' + startIndex + ') should be less or equal to endIndex (' + endIndex + ')';
522
- throw IllegalArgumentException.n2(toString(message));
523
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message));
523
524
  }
524
525
  // Inline function 'kotlin.require' call
525
526
  if (!(startIndex >= 0)) {
526
527
  var message_0 = 'startIndex is negative: ' + startIndex;
527
- throw IllegalArgumentException.n2(toString(message_0));
528
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message_0));
528
529
  }
529
530
  // Inline function 'kotlin.require' call
530
- if (!(endIndex <= this.k4n_1)) {
531
- var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.k4n_1 + ')';
532
- throw IllegalArgumentException.n2(toString(message_1));
531
+ if (!(endIndex <= this.length_1)) {
532
+ var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.length_1 + ')';
533
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message_1));
533
534
  }
534
535
  return new SubSequenceImpl(this, startIndex, endIndex);
535
536
  }
536
537
  toString() {
537
- var tmp0_elvis_lhs = this.h4n_1;
538
+ var tmp0_elvis_lhs = this.stringified_1;
538
539
  var tmp;
539
540
  if (tmp0_elvis_lhs == null) {
540
541
  // Inline function 'kotlin.also' call
541
- var this_0 = toString(copy(this, 0, this.k4n_1));
542
- this.h4n_1 = this_0;
542
+ var this_0 = toString(copy(this, 0, this.length_1));
543
+ this.stringified_1 = this_0;
543
544
  tmp = this_0;
544
545
  } else {
545
546
  tmp = tmp0_elvis_lhs;
@@ -549,32 +550,32 @@ class CharArrayBuilder {
549
550
  equals(other) {
550
551
  if (!(!(other == null) ? isCharSequence(other) : false))
551
552
  return false;
552
- if (!(this.k4n_1 === charSequenceLength(other)))
553
+ if (!(this.length_1 === charSequenceLength(other)))
553
554
  return false;
554
- return rangeEqualsImpl(this, 0, other, 0, this.k4n_1);
555
+ return rangeEqualsImpl(this, 0, other, 0, this.length_1);
555
556
  }
556
557
  hashCode() {
557
- var tmp0_safe_receiver = this.h4n_1;
558
+ var tmp0_safe_receiver = this.stringified_1;
558
559
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
559
- return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.k4n_1) : tmp1_elvis_lhs;
560
+ return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.length_1) : tmp1_elvis_lhs;
560
561
  }
561
- k1(value) {
562
- nonFullBuffer(this)[ensureNotNull(this.g4n_1).length - this.j4n_1 | 0] = value;
563
- this.h4n_1 = null;
564
- this.j4n_1 = this.j4n_1 - 1 | 0;
565
- this.k4n_1 = this.k4n_1 + 1 | 0;
562
+ append_58al37_k$(value) {
563
+ nonFullBuffer(this)[ensureNotNull(this.current_1).length - this.remaining_1 | 0] = value;
564
+ this.stringified_1 = null;
565
+ this.remaining_1 = this.remaining_1 - 1 | 0;
566
+ this.length_1 = this.length_1 + 1 | 0;
566
567
  return this;
567
568
  }
568
- xg(value, startIndex, endIndex) {
569
+ append_xdc1zw_k$(value, startIndex, endIndex) {
569
570
  if (value == null)
570
571
  return this;
571
572
  var current = startIndex;
572
573
  while (current < endIndex) {
573
574
  var buffer = nonFullBuffer(this);
574
- var offset = buffer.length - this.j4n_1 | 0;
575
+ var offset = buffer.length - this.remaining_1 | 0;
575
576
  var tmp0 = endIndex - current | 0;
576
577
  // Inline function 'kotlin.math.min' call
577
- var b = this.j4n_1;
578
+ var b = this.remaining_1;
578
579
  var bytesToCopy = Math.min(tmp0, b);
579
580
  var inductionVariable = 0;
580
581
  if (inductionVariable < bytesToCopy)
@@ -585,49 +586,49 @@ class CharArrayBuilder {
585
586
  }
586
587
  while (inductionVariable < bytesToCopy);
587
588
  current = current + bytesToCopy | 0;
588
- this.j4n_1 = this.j4n_1 - bytesToCopy | 0;
589
+ this.remaining_1 = this.remaining_1 - bytesToCopy | 0;
589
590
  }
590
- this.h4n_1 = null;
591
- this.k4n_1 = this.k4n_1 + (endIndex - startIndex | 0) | 0;
591
+ this.stringified_1 = null;
592
+ this.length_1 = this.length_1 + (endIndex - startIndex | 0) | 0;
592
593
  return this;
593
594
  }
594
- o2(value) {
595
+ append_jgojdo_k$(value) {
595
596
  if (value == null)
596
597
  return this;
597
- return this.xg(value, 0, charSequenceLength(value));
598
+ return this.append_xdc1zw_k$(value, 0, charSequenceLength(value));
598
599
  }
599
- i1g() {
600
- var list = this.f4n_1;
600
+ release_wu5yyf_k$() {
601
+ var list = this.buffers_1;
601
602
  if (!(list == null)) {
602
- this.g4n_1 = null;
603
+ this.current_1 = null;
603
604
  var inductionVariable = 0;
604
- var last = list.p2();
605
+ var last = list.get_size_woubt6_k$();
605
606
  if (inductionVariable < last)
606
607
  do {
607
608
  var i = inductionVariable;
608
609
  inductionVariable = inductionVariable + 1 | 0;
609
- this.e4n_1.e41(list.q2(i));
610
+ this.pool_1.recycle_d2xv5h_k$(list.get_c1px32_k$(i));
610
611
  }
611
612
  while (inductionVariable < last);
612
613
  } else {
613
- var tmp0_safe_receiver = this.g4n_1;
614
+ var tmp0_safe_receiver = this.current_1;
614
615
  if (tmp0_safe_receiver == null)
615
616
  null;
616
617
  else {
617
618
  // Inline function 'kotlin.let' call
618
- this.e4n_1.e41(tmp0_safe_receiver);
619
+ this.pool_1.recycle_d2xv5h_k$(tmp0_safe_receiver);
619
620
  }
620
- this.g4n_1 = null;
621
+ this.current_1 = null;
621
622
  }
622
- this.i4n_1 = true;
623
- this.f4n_1 = null;
624
- this.h4n_1 = null;
625
- this.k4n_1 = 0;
626
- this.j4n_1 = 0;
623
+ this.released_1 = true;
624
+ this.buffers_1 = null;
625
+ this.stringified_1 = null;
626
+ this.length_1 = 0;
627
+ this.remaining_1 = 0;
627
628
  }
628
629
  }
629
630
  class CharArrayPool$1 extends NoPoolImpl {
630
- d41() {
631
+ borrow_mvkpor_k$() {
631
632
  return charArray(2048);
632
633
  }
633
634
  }
@@ -635,27 +636,27 @@ class CharArrayPool$2 extends DefaultPool {
635
636
  constructor() {
636
637
  super(4096);
637
638
  }
638
- w40() {
639
+ produceInstance_xswihh_k$() {
639
640
  return charArray(2048);
640
641
  }
641
642
  }
642
643
  class UnsupportedMediaTypeExceptionCIO extends IOException {
643
644
  constructor(message) {
644
- return new.target.k4o(message);
645
+ return new.target.new_io_ktor_http_cio_internals_UnsupportedMediaTypeExceptionCIO_t3p5dm_k$(message);
645
646
  }
646
- static k4o(message) {
647
- var $this = this.x1v(message);
648
- captureStack($this, $this.j4o_1);
647
+ static new_io_ktor_http_cio_internals_UnsupportedMediaTypeExceptionCIO_t3p5dm_k$(message) {
648
+ var $this = this.new_kotlinx_io_IOException_wvwdyo_k$(message);
649
+ captureStack($this, $this.$throwableCtor_3);
649
650
  return $this;
650
651
  }
651
652
  }
652
653
  class MutableRange {
653
654
  constructor(start, end) {
654
- this.v4n_1 = start;
655
- this.w4n_1 = end;
655
+ this.start_1 = start;
656
+ this.end_1 = end;
656
657
  }
657
658
  toString() {
658
- return 'MutableRange(start=' + this.v4n_1 + ', end=' + this.w4n_1 + ')';
659
+ return 'MutableRange(start=' + this.start_1 + ', end=' + this.end_1 + ')';
659
660
  }
660
661
  }
661
662
  //endregion
@@ -670,64 +671,64 @@ function get_HeadersDataPool() {
670
671
  }
671
672
  var HeadersDataPool;
672
673
  function thresholdReached($this) {
673
- return $this.t4m_1 >= $this.u4m_1 * 0.75;
674
+ return $this.size_1 >= $this.headerCapacity_1 * 0.75;
674
675
  }
675
676
  function resize($this) {
676
- var prevSize = $this.t4m_1;
677
- var prevData = $this.v4m_1;
678
- $this.t4m_1 = 0;
679
- $this.u4m_1 = imul($this.u4m_1, 2) | 128;
677
+ var prevSize = $this.size_1;
678
+ var prevData = $this.headersData_1;
679
+ $this.size_1 = 0;
680
+ $this.headerCapacity_1 = imul($this.headerCapacity_1, 2) | 128;
680
681
  var tmp = $this;
681
682
  // Inline function 'kotlin.apply' call
682
- var this_0 = get_HeadersDataPool().d41();
683
- this_0.y4m(imul(prevData.x4m(), 2) | 1);
684
- tmp.v4m_1 = this_0;
685
- var _iterator__ex2g4s = prevData.z4m().l1();
686
- while (_iterator__ex2g4s.m1()) {
687
- var headerOffset = _iterator__ex2g4s.n1();
688
- $this.b4n(prevData.a4n(headerOffset + 1 | 0), prevData.a4n(headerOffset + 2 | 0), prevData.a4n(headerOffset + 3 | 0), prevData.a4n(headerOffset + 4 | 0));
689
- }
690
- get_HeadersDataPool().e41(prevData);
683
+ var this_0 = get_HeadersDataPool().borrow_mvkpor_k$();
684
+ this_0.prepare_vwo6lb_k$(imul(prevData.arraysCount_qdzoj9_k$(), 2) | 1);
685
+ tmp.headersData_1 = this_0;
686
+ var _iterator__ex2g4s = prevData.headersStarts_9a2v7t_k$().iterator_jk1svi_k$();
687
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
688
+ var headerOffset = _iterator__ex2g4s.next_20eer_k$();
689
+ $this.put_ca69tt_k$(prevData.at_whxqnv_k$(headerOffset + 1 | 0), prevData.at_whxqnv_k$(headerOffset + 2 | 0), prevData.at_whxqnv_k$(headerOffset + 3 | 0), prevData.at_whxqnv_k$(headerOffset + 4 | 0));
690
+ }
691
+ get_HeadersDataPool().recycle_d2xv5h_k$(prevData);
691
692
  // Inline function 'kotlin.require' call
692
693
  // Inline function 'kotlin.require' call
693
- if (!(prevSize === $this.t4m_1)) {
694
+ if (!(prevSize === $this.size_1)) {
694
695
  var message = 'Failed requirement.';
695
- throw IllegalArgumentException.n2(toString(message));
696
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString(message));
696
697
  }
697
698
  }
698
699
  function headerHasName($this, name, headerOffset) {
699
- var nameStartIndex = $this.v4m_1.a4n(headerOffset + 1 | 0);
700
- var nameEndIndex = $this.v4m_1.a4n(headerOffset + 2 | 0);
701
- return equalsLowerCase($this.s4m_1, nameStartIndex, nameEndIndex, name);
700
+ var nameStartIndex = $this.headersData_1.at_whxqnv_k$(headerOffset + 1 | 0);
701
+ var nameEndIndex = $this.headersData_1.at_whxqnv_k$(headerOffset + 2 | 0);
702
+ return equalsLowerCase($this.builder_1, nameStartIndex, nameEndIndex, name);
702
703
  }
703
704
  function HeadersData$headersStarts$slambda(this$0) {
704
- return constructCallableReference(function *($this$sequence, $completion) {
705
+ return constructCallableReference(($this$sequence, $completion) => orPromise($completion, function *($completion) {
705
706
  var joinedIndex = 0;
706
- var _iterator__ex2g4s = this$0.w4m_1.l1();
707
- while (_iterator__ex2g4s.m1()) {
708
- var arr = _iterator__ex2g4s.n1();
707
+ var _iterator__ex2g4s = this$0.arrays_1.iterator_jk1svi_k$();
708
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
709
+ var arr = _iterator__ex2g4s.next_20eer_k$();
709
710
  var localIndex = 0;
710
711
  while (localIndex < arr.length) {
711
- if (!(this$0.a4n(joinedIndex + 0 | 0) === -1)) {
712
- yield* $this$sequence.sk(joinedIndex, $completion);
712
+ if (!(this$0.at_whxqnv_k$(joinedIndex + 0 | 0) === -1)) {
713
+ yield* $this$sequence.yield_3xhcex_k$(joinedIndex, $completion);
713
714
  }
714
715
  localIndex = localIndex + 6 | 0;
715
716
  joinedIndex = joinedIndex + 6 | 0;
716
717
  }
717
718
  }
718
719
  return Unit_instance;
719
- }, 1);
720
+ }), 1);
720
721
  }
721
722
  function dumpTo(_this__u8e3s4, indent, out) {
722
723
  _init_properties_HttpHeadersMap_kt__hwatby();
723
- var _iterator__ex2g4s = _this__u8e3s4.d4n().l1();
724
- while (_iterator__ex2g4s.m1()) {
725
- var offset = _iterator__ex2g4s.n1();
726
- out.o2(indent);
727
- out.o2(_this__u8e3s4.m4n(offset));
728
- out.o2(' => ');
729
- out.o2(_this__u8e3s4.c4n(offset));
730
- out.o2('\n');
724
+ var _iterator__ex2g4s = _this__u8e3s4.offsets_plvqo0_k$().iterator_jk1svi_k$();
725
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
726
+ var offset = _iterator__ex2g4s.next_20eer_k$();
727
+ out.append_jgojdo_k$(indent);
728
+ out.append_jgojdo_k$(_this__u8e3s4.nameAtOffset_nevk7t_k$(offset));
729
+ out.append_jgojdo_k$(' => ');
730
+ out.append_jgojdo_k$(_this__u8e3s4.valueAtOffset_rvq37j_k$(offset));
731
+ out.append_jgojdo_k$('\n');
731
732
  }
732
733
  }
733
734
  var properties_initialized_HttpHeadersMap_kt_kotj4w;
@@ -751,28 +752,28 @@ function *parseHeaders(input, builder, range, $completion) {
751
752
  try {
752
753
  $l$loop: while (true) {
753
754
  if ((yield* readLineStrictTo(input, builder, 8192n, VOID, $completion)) === -1n) {
754
- headers.i1g();
755
+ headers.release_wu5yyf_k$();
755
756
  return null;
756
757
  }
757
- range.w4n_1 = builder.k4n_1;
758
- var rangeLength = range.w4n_1 - range.v4n_1 | 0;
758
+ range.end_1 = builder.length_1;
759
+ var rangeLength = range.end_1 - range.start_1 | 0;
759
760
  if (rangeLength === 0)
760
761
  break $l$loop;
761
762
  if (rangeLength >= 8192) {
762
763
  // Inline function 'kotlin.error' call
763
764
  var message = 'Header line length limit exceeded';
764
- throw IllegalStateException.o(toString(message));
765
+ throw IllegalStateException.new_kotlin_IllegalStateException_w47ei6_k$(toString(message));
765
766
  }
766
- var nameStart = range.v4n_1;
767
+ var nameStart = range.start_1;
767
768
  var nameEnd = parseHeaderName(builder, range);
768
- var headerEnd = range.w4n_1;
769
+ var headerEnd = range.end_1;
769
770
  parseHeaderValue(builder, range);
770
- var valueStart = range.v4n_1;
771
- var valueEnd = range.w4n_1;
772
- range.v4n_1 = headerEnd;
773
- headers.b4n(nameStart, nameEnd, valueStart, valueEnd);
771
+ var valueStart = range.start_1;
772
+ var valueEnd = range.end_1;
773
+ range.start_1 = headerEnd;
774
+ headers.put_ca69tt_k$(nameStart, nameEnd, valueStart, valueEnd);
774
775
  }
775
- var host = headers.p1i('Host');
776
+ var host = headers.get_6bo4tg_k$('Host');
776
777
  if (!(host == null)) {
777
778
  validateHostHeader(host);
778
779
  }
@@ -780,7 +781,7 @@ function *parseHeaders(input, builder, range, $completion) {
780
781
  } catch ($p) {
781
782
  if ($p instanceof Error) {
782
783
  var t = $p;
783
- headers.i1g();
784
+ headers.release_wu5yyf_k$();
784
785
  throw t;
785
786
  } else {
786
787
  throw $p;
@@ -789,16 +790,16 @@ function *parseHeaders(input, builder, range, $completion) {
789
790
  }
790
791
  function parseHeaderName(text, range) {
791
792
  _init_properties_HttpParser_kt__gbdom1();
792
- var index = range.v4n_1;
793
- var end = range.w4n_1;
793
+ var index = range.start_1;
794
+ var end = range.end_1;
794
795
  while (index < end) {
795
- var ch = text.b(index);
796
- if (ch === _Char___init__impl__6a9atx(58) && !(index === range.v4n_1)) {
797
- range.v4n_1 = index + 1 | 0;
796
+ var ch = text.get_kdzpvg_k$(index);
797
+ if (ch === _Char___init__impl__6a9atx(58) && !(index === range.start_1)) {
798
+ range.start_1 = index + 1 | 0;
798
799
  return index;
799
800
  }
800
801
  if (isDelimiter(ch)) {
801
- parseHeaderNameFailed(text, index, range.v4n_1, ch);
802
+ parseHeaderNameFailed(text, index, range.start_1, ch);
802
803
  }
803
804
  index = index + 1 | 0;
804
805
  }
@@ -806,18 +807,18 @@ function parseHeaderName(text, range) {
806
807
  }
807
808
  function parseHeaderValue(text, range) {
808
809
  _init_properties_HttpParser_kt__gbdom1();
809
- var start = range.v4n_1;
810
- var end = range.w4n_1;
810
+ var start = range.start_1;
811
+ var end = range.end_1;
811
812
  var index = start;
812
813
  index = skipSpacesAndHorizontalTabs(text, index, end);
813
814
  if (index >= end) {
814
- range.v4n_1 = end;
815
+ range.start_1 = end;
815
816
  return Unit_instance;
816
817
  }
817
818
  var valueStart = index;
818
819
  var valueLastIndex = index;
819
820
  while (index < end) {
820
- var ch = text.b(index);
821
+ var ch = text.get_kdzpvg_k$(index);
821
822
  if (ch !== _Char___init__impl__6a9atx(9) && ch !== _Char___init__impl__6a9atx(32))
822
823
  if (ch === _Char___init__impl__6a9atx(13) || ch === _Char___init__impl__6a9atx(10)) {
823
824
  characterIsNotAllowed(text, ch);
@@ -825,13 +826,13 @@ function parseHeaderValue(text, range) {
825
826
  valueLastIndex = index;
826
827
  index = index + 1 | 0;
827
828
  }
828
- range.v4n_1 = valueStart;
829
- range.w4n_1 = valueLastIndex + 1 | 0;
829
+ range.start_1 = valueStart;
830
+ range.end_1 = valueLastIndex + 1 | 0;
830
831
  }
831
832
  function validateHostHeader(host) {
832
833
  _init_properties_HttpParser_kt__gbdom1();
833
834
  if (endsWith(host, ':')) {
834
- throw ParserException.b4o("Host header with ':' should contains port: " + toString(host));
835
+ throw ParserException.new_io_ktor_http_cio_ParserException_9f9heq_k$("Host header with ':' should contains port: " + toString(host));
835
836
  }
836
837
  var tmp$ret$0;
837
838
  $l$block: {
@@ -840,7 +841,7 @@ function validateHostHeader(host) {
840
841
  while (inductionVariable < charSequenceLength(host)) {
841
842
  var element = charSequenceGet(host, inductionVariable);
842
843
  inductionVariable = inductionVariable + 1 | 0;
843
- if (get_hostForbiddenSymbols().j3(new Char(element))) {
844
+ if (get_hostForbiddenSymbols().contains_aljjnj_k$(new Char(element))) {
844
845
  tmp$ret$0 = true;
845
846
  break $l$block;
846
847
  }
@@ -848,7 +849,7 @@ function validateHostHeader(host) {
848
849
  tmp$ret$0 = false;
849
850
  }
850
851
  if (tmp$ret$0) {
851
- throw ParserException.b4o('Host cannot contain any of the following symbols: ' + toString(get_hostForbiddenSymbols()));
852
+ throw ParserException.new_io_ktor_http_cio_ParserException_9f9heq_k$('Host cannot contain any of the following symbols: ' + toString(get_hostForbiddenSymbols()));
852
853
  }
853
854
  }
854
855
  function isDelimiter(ch) {
@@ -858,34 +859,34 @@ function isDelimiter(ch) {
858
859
  function parseHeaderNameFailed(text, index, start, ch) {
859
860
  _init_properties_HttpParser_kt__gbdom1();
860
861
  if (ch === _Char___init__impl__6a9atx(58)) {
861
- throw ParserException.b4o('Empty header names are not allowed as per RFC7230.');
862
+ throw ParserException.new_io_ktor_http_cio_ParserException_9f9heq_k$('Empty header names are not allowed as per RFC7230.');
862
863
  }
863
864
  if (index === start) {
864
- throw ParserException.b4o('Multiline headers via line folding is not supported since it is deprecated as per RFC7230.');
865
+ throw ParserException.new_io_ktor_http_cio_ParserException_9f9heq_k$('Multiline headers via line folding is not supported since it is deprecated as per RFC7230.');
865
866
  }
866
867
  characterIsNotAllowed(text, ch);
867
868
  }
868
869
  function noColonFound(text, range) {
869
870
  _init_properties_HttpParser_kt__gbdom1();
870
- var tmp2 = range.v4n_1;
871
+ var tmp2 = range.start_1;
871
872
  // Inline function 'kotlin.text.substring' call
872
- var endIndex = range.w4n_1;
873
+ var endIndex = range.end_1;
873
874
  var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
874
- throw ParserException.b4o('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
875
+ throw ParserException.new_io_ktor_http_cio_ParserException_9f9heq_k$('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
875
876
  }
876
877
  function characterIsNotAllowed(text, ch) {
877
878
  _init_properties_HttpParser_kt__gbdom1();
878
879
  // Inline function 'kotlin.code' call
879
880
  var tmp$ret$0 = Char__toInt_impl_vasixd(ch);
880
- throw ParserException.b4o('Character with code ' + (tmp$ret$0 & 255) + ' is not allowed in header names, \n' + toString(text));
881
+ throw ParserException.new_io_ktor_http_cio_ParserException_9f9heq_k$('Character with code ' + (tmp$ret$0 & 255) + ' is not allowed in header names, \n' + toString(text));
881
882
  }
882
883
  var properties_initialized_HttpParser_kt_uedryv;
883
884
  function _init_properties_HttpParser_kt__gbdom1() {
884
885
  if (!properties_initialized_HttpParser_kt_uedryv) {
885
886
  properties_initialized_HttpParser_kt_uedryv = true;
886
887
  hostForbiddenSymbols = setOf([new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(64))]);
887
- httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance_0().e40_1, Companion_getInstance_0().d40_1);
888
- versions = Companion_instance.c4o(listOf(['HTTP/1.0', 'HTTP/1.1']));
888
+ httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance_0().CRLF_1, Companion_getInstance_0().LF_1);
889
+ versions = Companion_instance.build_qfjo4r_k$(listOf(['HTTP/1.0', 'HTTP/1.1']));
889
890
  }
890
891
  }
891
892
  function get_CrLf() {
@@ -901,18 +902,18 @@ var PrefixString;
901
902
  function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
902
903
  maxPartSize = maxPartSize === VOID ? 9223372036854775807n : maxPartSize;
903
904
  _init_properties_Multipart_kt__ato98a();
904
- if (!MultiPart_getInstance().h4a(contentType)) {
905
- throw UnsupportedMediaTypeExceptionCIO.k4o('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
905
+ if (!MultiPart_getInstance().contains_vaykv6_k$(contentType)) {
906
+ throw UnsupportedMediaTypeExceptionCIO.new_io_ktor_http_cio_internals_UnsupportedMediaTypeExceptionCIO_t3p5dm_k$('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
906
907
  }
907
908
  var boundaryByteBuffer = parseBoundaryInternal(contentType);
908
- var boundaryBytes = ByteString.a1s(boundaryByteBuffer);
909
+ var boundaryBytes = ByteString.new_kotlinx_io_bytestring_ByteString_507kaj_k$(boundaryByteBuffer);
909
910
  return parseMultipart_0(_this__u8e3s4, boundaryBytes, input, contentLength, maxPartSize);
910
911
  }
911
912
  function parseBoundaryInternal(contentType) {
912
913
  _init_properties_Multipart_kt__ato98a();
913
914
  var boundaryParameter = findBoundary(contentType);
914
915
  if (boundaryParameter === -1) {
915
- throw IOException.x1v("Failed to parse multipart: Content-Type's boundary parameter is missing");
916
+ throw IOException.new_kotlinx_io_IOException_wvwdyo_k$("Failed to parse multipart: Content-Type's boundary parameter is missing");
916
917
  }
917
918
  var boundaryStart = boundaryParameter + 9 | 0;
918
919
  var boundaryBytes = new Int8Array(74);
@@ -932,7 +933,7 @@ function parseBoundaryInternal(contentType) {
932
933
  // Inline function 'kotlin.code' call
933
934
  var v = Char__toInt_impl_vasixd(ch) & 65535;
934
935
  if ((v & 65535) > 127) {
935
- throw IOException.x1v('Failed to parse multipart: wrong boundary byte 0x' + toString_0(v, 16) + ' - should be 7bit character');
936
+ throw IOException.new_kotlinx_io_IOException_wvwdyo_k$('Failed to parse multipart: wrong boundary byte 0x' + toString_0(v, 16) + ' - should be 7bit character');
936
937
  }
937
938
  switch (state) {
938
939
  case 0:
@@ -973,7 +974,7 @@ function parseBoundaryInternal(contentType) {
973
974
  }
974
975
  while (inductionVariable < last);
975
976
  if (position._v === 4) {
976
- throw IOException.x1v('Empty multipart boundary is not allowed');
977
+ throw IOException.new_kotlinx_io_IOException_wvwdyo_k$('Empty multipart boundary is not allowed');
977
978
  }
978
979
  return copyOfRange(boundaryBytes, 0, position._v);
979
980
  }
@@ -1053,7 +1054,7 @@ function *parsePartHeadersImpl(input, $completion) {
1053
1054
  var tmp0_elvis_lhs = yield* parseHeaders(input, builder, VOID, $completion);
1054
1055
  var tmp;
1055
1056
  if (tmp0_elvis_lhs == null) {
1056
- throw EOFException.l1s('Failed to parse multipart headers: unexpected end of stream');
1057
+ throw EOFException.new_kotlinx_io_EOFException_1f8u0y_k$('Failed to parse multipart headers: unexpected end of stream');
1057
1058
  } else {
1058
1059
  tmp = tmp0_elvis_lhs;
1059
1060
  }
@@ -1061,7 +1062,7 @@ function *parsePartHeadersImpl(input, $completion) {
1061
1062
  } catch ($p) {
1062
1063
  if ($p instanceof Error) {
1063
1064
  var t = $p;
1064
- builder.i1g();
1065
+ builder.release_wu5yyf_k$();
1065
1066
  throw t;
1066
1067
  } else {
1067
1068
  throw $p;
@@ -1069,7 +1070,7 @@ function *parsePartHeadersImpl(input, $completion) {
1069
1070
  }
1070
1071
  }
1071
1072
  function *parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $completion) {
1072
- var tmp0_safe_receiver = headers.p1i('Content-Length');
1073
+ var tmp0_safe_receiver = headers.get_6bo4tg_k$('Content-Length');
1073
1074
  var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
1074
1075
  var tmp;
1075
1076
  if (contentLength == null) {
@@ -1082,13 +1083,13 @@ function *parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $co
1082
1083
  }
1083
1084
  }
1084
1085
  var byteCount = tmp;
1085
- yield* output.u3y($completion);
1086
+ yield* output.flush_4wsz1p_k$($completion);
1086
1087
  return byteCount;
1087
1088
  }
1088
1089
  function *skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
1089
1090
  var tmp;
1090
1091
  if (yield* skipIfFound(_this__u8e3s4, prefix, $completion)) {
1091
- tmp = fromInt(prefix.p2());
1092
+ tmp = fromInt(prefix.get_size_woubt6_k$());
1092
1093
  } else {
1093
1094
  tmp = 0n;
1094
1095
  }
@@ -1096,34 +1097,34 @@ function *skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
1096
1097
  }
1097
1098
  function throwLimitExceeded(actual, limit) {
1098
1099
  _init_properties_Multipart_kt__ato98a();
1099
- throw IOException.x1v('Multipart content length exceeds limit ' + actual.toString() + ' > ' + limit.toString() + '; ' + "limit is defined using 'formFieldLimit' argument");
1100
+ throw IOException.new_kotlinx_io_IOException_wvwdyo_k$('Multipart content length exceeds limit ' + actual.toString() + ' > ' + limit.toString() + '; ' + "limit is defined using 'formFieldLimit' argument");
1100
1101
  }
1101
1102
  function parseBoundaryInternal$put(position, boundaryBytes, value) {
1102
1103
  if (position._v >= boundaryBytes.length) {
1103
- throw IOException.x1v("Failed to parse multipart: boundary shouldn't be longer than 70 characters");
1104
+ throw IOException.new_kotlinx_io_IOException_wvwdyo_k$("Failed to parse multipart: boundary shouldn't be longer than 70 characters");
1104
1105
  }
1105
1106
  var _unary__edvuaz = position._v;
1106
1107
  position._v = _unary__edvuaz + 1 | 0;
1107
1108
  boundaryBytes[_unary__edvuaz] = value;
1108
1109
  }
1109
1110
  function parseMultipart$slambda$slambda($firstBoundary, $countedInput) {
1110
- return constructCallableReference(function *($this$writer, $completion) {
1111
- yield* /*#__NOINLINE__*/parsePreambleImpl($firstBoundary, $countedInput, $this$writer.t3z_1, 8193n, $completion);
1112
- yield* $this$writer.t3z_1.w3y($completion);
1111
+ return constructCallableReference(($this$writer, $completion) => orPromise($completion, function *($completion) {
1112
+ yield* /*#__NOINLINE__*/parsePreambleImpl($firstBoundary, $countedInput, $this$writer.channel_1, 8193n, $completion);
1113
+ yield* $this$writer.channel_1.flushAndClose_3zd2q_k$($completion);
1113
1114
  return Unit_instance;
1114
- }, 1);
1115
+ }), 1);
1115
1116
  }
1116
1117
  function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength) {
1117
- return constructCallableReference(function *($this$produce, $completion) {
1118
+ return constructCallableReference(($this$produce, $completion) => orPromise($completion, function *($completion) {
1118
1119
  var countedInput = counted($input);
1119
- var readBeforeParse = countedInput.b40();
1120
- var firstBoundary = $boundaryPrefixed.b1s(get_PrefixString().p2());
1121
- var preambleData = yield* readRemaining(writer($this$produce, VOID, VOID, parseMultipart$slambda$slambda(firstBoundary, countedInput)).j3z_1, $completion);
1120
+ var readBeforeParse = countedInput.get_totalBytesRead_dai8jq_k$();
1121
+ var firstBoundary = $boundaryPrefixed.substring$default_wq769b_k$(get_PrefixString().get_size_woubt6_k$());
1122
+ var preambleData = yield* readBuffer(writer($this$produce, VOID, VOID, parseMultipart$slambda$slambda(firstBoundary, countedInput)).channel_1, $completion);
1122
1123
  var tmp;
1123
1124
  if (get_remaining(preambleData) > 0n) {
1124
- tmp = yield* $this$produce.p36(new Preamble(preambleData), $completion);
1125
+ tmp = yield* $this$produce.send_44jogj_k$(new Preamble(preambleData), $completion);
1125
1126
  }
1126
- $l$loop: while (!countedInput.m3y() && !(yield* skipIfFound(countedInput, get_PrefixString(), $completion))) {
1127
+ $l$loop: while (!countedInput.get_isClosedForRead_ajcc1s_k$() && !(yield* skipIfFound(countedInput, get_PrefixString(), $completion))) {
1127
1128
  yield* skipIfFound(countedInput, get_CrLf(), $completion);
1128
1129
  if (yield* skipIfFound(countedInput, firstBoundary, $completion)) {
1129
1130
  continue $l$loop;
@@ -1131,25 +1132,25 @@ function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalL
1131
1132
  var body = new ByteChannel();
1132
1133
  var headers = CompletableDeferred();
1133
1134
  var part = new MultipartPart(headers, body);
1134
- yield* $this$produce.p36(part, $completion);
1135
+ yield* $this$produce.send_44jogj_k$(part, $completion);
1135
1136
  var headersMap = null;
1136
1137
  try {
1137
1138
  headersMap = yield* /*#__NOINLINE__*/parsePartHeadersImpl(countedInput, $completion);
1138
- if (!headers.c2y(headersMap)) {
1139
- headersMap.i1g();
1140
- throw CancellationException.n('Multipart processing has been cancelled');
1139
+ if (!headers.complete_ixf84q_k$(headersMap)) {
1140
+ headersMap.release_wu5yyf_k$();
1141
+ throw CancellationException.new_kotlin_coroutines_cancellation_CancellationException_kxgi4u_k$('Multipart processing has been cancelled');
1141
1142
  }
1142
1143
  yield* /*#__NOINLINE__*/parsePartBodyImpl($boundaryPrefixed, countedInput, body, headersMap, $maxPartSize, $completion);
1143
- body.q6();
1144
+ body.close_yn9xrc_k$();
1144
1145
  } catch ($p) {
1145
1146
  if ($p instanceof Error) {
1146
1147
  var cause = $p;
1147
- if (headers.d2y(cause)) {
1148
+ if (headers.completeExceptionally_xyzekf_k$(cause)) {
1148
1149
  var tmp0_safe_receiver = headersMap;
1149
1150
  if (tmp0_safe_receiver == null)
1150
1151
  null;
1151
1152
  else {
1152
- tmp0_safe_receiver.i1g();
1153
+ tmp0_safe_receiver.release_wu5yyf_k$();
1153
1154
  }
1154
1155
  }
1155
1156
  close(body, cause);
@@ -1163,90 +1164,90 @@ function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalL
1163
1164
  yield* skipIfFound(countedInput, get_CrLf(), $completion);
1164
1165
  var tmp_0;
1165
1166
  if (!($totalLength == null)) {
1166
- var consumedExceptEpilogue = subtract(countedInput.b40(), readBeforeParse);
1167
+ var consumedExceptEpilogue = subtract(countedInput.get_totalBytesRead_dai8jq_k$(), readBeforeParse);
1167
1168
  var size = subtract($totalLength, consumedExceptEpilogue);
1168
1169
  if (size > 2147483647n)
1169
- throw IOException.x1v('Failed to parse multipart: prologue is too long');
1170
+ throw IOException.new_kotlinx_io_IOException_wvwdyo_k$('Failed to parse multipart: prologue is too long');
1170
1171
  var tmp_1;
1171
1172
  if (size > 0n) {
1172
- tmp_1 = yield* $this$produce.p36(new Epilogue(yield* readPacket(countedInput, convertToInt(size), $completion)), $completion);
1173
+ tmp_1 = yield* $this$produce.send_44jogj_k$(new Epilogue(yield* readPacket(countedInput, convertToInt(size), $completion)), $completion);
1173
1174
  }
1174
1175
  tmp_0 = tmp_1;
1175
1176
  } else {
1176
- var epilogueContent = yield* readRemaining(countedInput, $completion);
1177
+ var epilogueContent = yield* readBuffer(countedInput, $completion);
1177
1178
  var tmp_2;
1178
- if (!epilogueContent.n1s()) {
1179
- tmp_2 = yield* $this$produce.p36(new Epilogue(epilogueContent), $completion);
1179
+ if (!epilogueContent.exhausted_p1jt55_k$()) {
1180
+ tmp_2 = yield* $this$produce.send_44jogj_k$(new Epilogue(epilogueContent), $completion);
1180
1181
  }
1181
1182
  tmp_0 = tmp_2;
1182
1183
  }
1183
1184
  return Unit_instance;
1184
- }, 1);
1185
+ }), 1);
1185
1186
  }
1186
1187
  var properties_initialized_Multipart_kt_wu0sh0;
1187
1188
  function _init_properties_Multipart_kt__ato98a() {
1188
1189
  if (!properties_initialized_Multipart_kt_wu0sh0) {
1189
1190
  properties_initialized_Multipart_kt_wu0sh0 = true;
1190
- CrLf = ByteString.a1s(toByteArray_0('\r\n'));
1191
+ CrLf = ByteString.new_kotlinx_io_bytestring_ByteString_507kaj_k$(toByteArray_0('\r\n'));
1191
1192
  PrefixString = ByteString_0(new Int8Array([45, 45]));
1192
1193
  }
1193
1194
  }
1194
1195
  function build($this, resultList, from, maxLength, idx, length, charAt) {
1195
1196
  // Inline function 'kotlin.collections.groupBy' call
1196
1197
  // Inline function 'kotlin.collections.groupByTo' call
1197
- var destination = LinkedHashMap.o5();
1198
- var _iterator__ex2g4s = from.l1();
1199
- while (_iterator__ex2g4s.m1()) {
1200
- var element = _iterator__ex2g4s.n1();
1198
+ var destination = LinkedHashMap.new_kotlin_collections_LinkedHashMap_ga0any_k$();
1199
+ var _iterator__ex2g4s = from.iterator_jk1svi_k$();
1200
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1201
+ var element = _iterator__ex2g4s.next_20eer_k$();
1201
1202
  var key = charAt(element, idx);
1202
1203
  // Inline function 'kotlin.collections.getOrPut' call
1203
- var value = destination.o4(key);
1204
+ var value = destination.get_wei43m_k$(key);
1204
1205
  var tmp;
1205
1206
  if (value == null) {
1206
- var answer = ArrayList.f2();
1207
- destination.g4(key, answer);
1207
+ var answer = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
1208
+ destination.put_4fpzoq_k$(key, answer);
1208
1209
  tmp = answer;
1209
1210
  } else {
1210
1211
  tmp = value;
1211
1212
  }
1212
1213
  var list = tmp;
1213
- list.e2(element);
1214
+ list.add_utx5q5_k$(element);
1214
1215
  }
1215
1216
  // Inline function 'kotlin.collections.forEach' call
1216
1217
  // Inline function 'kotlin.collections.iterator' call
1217
- var _iterator__ex2g4s_0 = destination.z2().l1();
1218
- while (_iterator__ex2g4s_0.m1()) {
1219
- var element_0 = _iterator__ex2g4s_0.n1();
1218
+ var _iterator__ex2g4s_0 = destination.get_entries_p20ztl_k$().iterator_jk1svi_k$();
1219
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
1220
+ var element_0 = _iterator__ex2g4s_0.next_20eer_k$();
1220
1221
  // Inline function 'kotlin.collections.component1' call
1221
- var ch = element_0.a3().s3_1;
1222
+ var ch = element_0.get_key_18j28a_k$().value_1;
1222
1223
  // Inline function 'kotlin.collections.component2' call
1223
- var list_0 = element_0.b3();
1224
+ var list_0 = element_0.get_value_j01efc_k$();
1224
1225
  var nextIdx = idx + 1 | 0;
1225
- var children = ArrayList.f2();
1226
+ var children = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
1226
1227
  var tmp_0 = Companion_instance;
1227
1228
  // Inline function 'kotlin.collections.filter' call
1228
1229
  // Inline function 'kotlin.collections.filterTo' call
1229
- var destination_0 = ArrayList.f2();
1230
- var _iterator__ex2g4s_1 = list_0.l1();
1231
- while (_iterator__ex2g4s_1.m1()) {
1232
- var element_1 = _iterator__ex2g4s_1.n1();
1230
+ var destination_0 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
1231
+ var _iterator__ex2g4s_1 = list_0.iterator_jk1svi_k$();
1232
+ while (_iterator__ex2g4s_1.hasNext_bitz1p_k$()) {
1233
+ var element_1 = _iterator__ex2g4s_1.next_20eer_k$();
1233
1234
  if (length(element_1) > nextIdx) {
1234
- destination_0.e2(element_1);
1235
+ destination_0.add_utx5q5_k$(element_1);
1235
1236
  }
1236
1237
  }
1237
1238
  build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
1238
- children.l8();
1239
+ children.trimToSize_dmxq0i_k$();
1239
1240
  // Inline function 'kotlin.collections.filter' call
1240
1241
  // Inline function 'kotlin.collections.filterTo' call
1241
- var destination_1 = ArrayList.f2();
1242
- var _iterator__ex2g4s_2 = list_0.l1();
1243
- while (_iterator__ex2g4s_2.m1()) {
1244
- var element_2 = _iterator__ex2g4s_2.n1();
1242
+ var destination_1 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
1243
+ var _iterator__ex2g4s_2 = list_0.iterator_jk1svi_k$();
1244
+ while (_iterator__ex2g4s_2.hasNext_bitz1p_k$()) {
1245
+ var element_2 = _iterator__ex2g4s_2.next_20eer_k$();
1245
1246
  if (length(element_2) === nextIdx) {
1246
- destination_1.e2(element_2);
1247
+ destination_1.add_utx5q5_k$(element_2);
1247
1248
  }
1248
1249
  }
1249
- resultList.e2(new Node(ch, destination_1, children));
1250
+ resultList.add_utx5q5_k$(new Node(ch, destination_1, children));
1250
1251
  }
1251
1252
  }
1252
1253
  function AsciiCharTree$Companion$build$lambda(it) {
@@ -1260,12 +1261,12 @@ function Companion_getInstance_1() {
1260
1261
  return Companion_instance;
1261
1262
  }
1262
1263
  function getImpl($this, index) {
1263
- return bufferForIndex($this, index)[index % ensureNotNull($this.g4n_1).length | 0];
1264
+ return bufferForIndex($this, index)[index % ensureNotNull($this.current_1).length | 0];
1264
1265
  }
1265
1266
  function copy($this, startIndex, endIndex) {
1266
1267
  if (startIndex === endIndex)
1267
1268
  return '';
1268
- var builder = StringBuilder.ec(endIndex - startIndex | 0);
1269
+ var builder = StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(endIndex - startIndex | 0);
1269
1270
  var buffer;
1270
1271
  var base = startIndex - (startIndex % 2048 | 0) | 0;
1271
1272
  while (base < endIndex) {
@@ -1281,7 +1282,7 @@ function copy($this, startIndex, endIndex) {
1281
1282
  do {
1282
1283
  var innerIndex = inductionVariable;
1283
1284
  inductionVariable = inductionVariable + 1 | 0;
1284
- builder.k1(buffer[innerIndex]);
1285
+ builder.append_58al37_k$(buffer[innerIndex]);
1285
1286
  }
1286
1287
  while (inductionVariable < innerEndIndex);
1287
1288
  base = base + 2048 | 0;
@@ -1289,12 +1290,12 @@ function copy($this, startIndex, endIndex) {
1289
1290
  return builder;
1290
1291
  }
1291
1292
  function bufferForIndex($this, index) {
1292
- var list = $this.f4n_1;
1293
+ var list = $this.buffers_1;
1293
1294
  if (list == null) {
1294
1295
  if (index >= 2048) {
1295
1296
  throwSingleBuffer($this, index);
1296
1297
  }
1297
- var tmp0_elvis_lhs = $this.g4n_1;
1298
+ var tmp0_elvis_lhs = $this.current_1;
1298
1299
  var tmp;
1299
1300
  if (tmp0_elvis_lhs == null) {
1300
1301
  throwSingleBuffer($this, index);
@@ -1303,36 +1304,36 @@ function bufferForIndex($this, index) {
1303
1304
  }
1304
1305
  return tmp;
1305
1306
  }
1306
- return list.q2(index / ensureNotNull($this.g4n_1).length | 0);
1307
+ return list.get_c1px32_k$(index / ensureNotNull($this.current_1).length | 0);
1307
1308
  }
1308
1309
  function throwSingleBuffer($this, index) {
1309
- if ($this.i4n_1)
1310
- throw IllegalStateException.o('Buffer is already released');
1311
- throw IndexOutOfBoundsException.ie('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
1310
+ if ($this.released_1)
1311
+ throw IllegalStateException.new_kotlin_IllegalStateException_w47ei6_k$('Buffer is already released');
1312
+ throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
1312
1313
  }
1313
1314
  function nonFullBuffer($this) {
1314
- return $this.j4n_1 === 0 ? appendNewArray($this) : ensureNotNull($this.g4n_1);
1315
+ return $this.remaining_1 === 0 ? appendNewArray($this) : ensureNotNull($this.current_1);
1315
1316
  }
1316
1317
  function appendNewArray($this) {
1317
- var newBuffer = $this.e4n_1.d41();
1318
- var existing = $this.g4n_1;
1319
- $this.g4n_1 = newBuffer;
1320
- $this.j4n_1 = newBuffer.length;
1321
- $this.i4n_1 = false;
1318
+ var newBuffer = $this.pool_1.borrow_mvkpor_k$();
1319
+ var existing = $this.current_1;
1320
+ $this.current_1 = newBuffer;
1321
+ $this.remaining_1 = newBuffer.length;
1322
+ $this.released_1 = false;
1322
1323
  if (!(existing == null)) {
1323
- var tmp0_elvis_lhs = $this.f4n_1;
1324
+ var tmp0_elvis_lhs = $this.buffers_1;
1324
1325
  var tmp;
1325
1326
  if (tmp0_elvis_lhs == null) {
1326
1327
  // Inline function 'kotlin.also' call
1327
- var this_0 = ArrayList.f2();
1328
- $this.f4n_1 = this_0;
1329
- this_0.e2(existing);
1328
+ var this_0 = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
1329
+ $this.buffers_1 = this_0;
1330
+ this_0.add_utx5q5_k$(existing);
1330
1331
  tmp = this_0;
1331
1332
  } else {
1332
1333
  tmp = tmp0_elvis_lhs;
1333
1334
  }
1334
1335
  var list = tmp;
1335
- list.e2(newBuffer);
1336
+ list.add_utx5q5_k$(newBuffer);
1336
1337
  }
1337
1338
  return newBuffer;
1338
1339
  }
@@ -1364,7 +1365,7 @@ function hashCodeImpl($this, start, end) {
1364
1365
  return hc;
1365
1366
  }
1366
1367
  function currentPosition($this) {
1367
- return ensureNotNull($this.g4n_1).length - $this.j4n_1 | 0;
1368
+ return ensureNotNull($this.current_1).length - $this.remaining_1 | 0;
1368
1369
  }
1369
1370
  function get_CharArrayPool() {
1370
1371
  _init_properties_CharArrayPool_kt__u4nq0d();
@@ -1527,7 +1528,7 @@ function parseDecLong(_this__u8e3s4) {
1527
1528
  }
1528
1529
  function numberFormatException(cs) {
1529
1530
  _init_properties_Chars_kt__d3i39x();
1530
- throw NumberFormatException.xe('Invalid number ' + toString(cs) + ': too large for Long type');
1531
+ throw NumberFormatException.new_kotlin_NumberFormatException_hv2a95_k$('Invalid number ' + toString(cs) + ': too large for Long type');
1531
1532
  }
1532
1533
  function parseDecLongWithCheck(_this__u8e3s4) {
1533
1534
  _init_properties_Chars_kt__d3i39x();
@@ -1555,30 +1556,30 @@ function parseDecLongWithCheck(_this__u8e3s4) {
1555
1556
  }
1556
1557
  function numberFormatException_0(cs, idx) {
1557
1558
  _init_properties_Chars_kt__d3i39x();
1558
- throw NumberFormatException.xe('Invalid number: ' + toString(cs) + ', wrong digit: ' + toString_1(charSequenceGet(cs, idx)) + ' at position ' + idx);
1559
+ throw NumberFormatException.new_kotlin_NumberFormatException_hv2a95_k$('Invalid number: ' + toString(cs) + ', wrong digit: ' + toString_1(charSequenceGet(cs, idx)) + ' at position ' + idx);
1559
1560
  }
1560
1561
  function DefaultHttpMethods$lambda(it) {
1561
1562
  _init_properties_Chars_kt__d3i39x();
1562
- return it.r4g_1.length;
1563
+ return it.value_1.length;
1563
1564
  }
1564
1565
  function DefaultHttpMethods$lambda_0(m, idx) {
1565
1566
  _init_properties_Chars_kt__d3i39x();
1566
- return new Char(charCodeAt(m.r4g_1, idx));
1567
+ return new Char(charCodeAt(m.value_1, idx));
1567
1568
  }
1568
1569
  var properties_initialized_Chars_kt_phjfhp;
1569
1570
  function _init_properties_Chars_kt__d3i39x() {
1570
1571
  if (!properties_initialized_Chars_kt_phjfhp) {
1571
1572
  properties_initialized_Chars_kt_phjfhp = true;
1572
1573
  var tmp = Companion_instance;
1573
- var tmp_0 = Companion_getInstance().q4g_1;
1574
+ var tmp_0 = Companion_getInstance().DefaultMethods_1;
1574
1575
  var tmp_1 = DefaultHttpMethods$lambda;
1575
- DefaultHttpMethods = tmp.p4o(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
1576
+ DefaultHttpMethods = tmp.build_su3zc2_k$(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
1576
1577
  // Inline function 'kotlin.collections.map' call
1577
1578
  var this_0 = numberRangeToNumber(0, 255);
1578
1579
  // Inline function 'kotlin.collections.mapTo' call
1579
- var destination = ArrayList.d2(collectionSizeOrDefault(this_0, 10));
1580
- var inductionVariable = this_0.e3_1;
1581
- var last = this_0.f3_1;
1580
+ var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(this_0, 10));
1581
+ var inductionVariable = this_0.first_1;
1582
+ var last = this_0.last_1;
1582
1583
  if (inductionVariable <= last)
1583
1584
  do {
1584
1585
  var item = inductionVariable;
@@ -1637,16 +1638,16 @@ function _init_properties_Chars_kt__d3i39x() {
1637
1638
  }
1638
1639
  }
1639
1640
  var tmp$ret$2 = tmp_2;
1640
- destination.e2(tmp$ret$2);
1641
+ destination.add_utx5q5_k$(tmp$ret$2);
1641
1642
  }
1642
1643
  while (!(item === last));
1643
1644
  HexTable = toLongArray(destination);
1644
1645
  // Inline function 'kotlin.collections.map' call
1645
1646
  var this_9 = numberRangeToNumber(0, 15);
1646
1647
  // Inline function 'kotlin.collections.mapTo' call
1647
- var destination_0 = ArrayList.d2(collectionSizeOrDefault(this_9, 10));
1648
- var inductionVariable_0 = this_9.e3_1;
1649
- var last_0 = this_9.f3_1;
1648
+ var destination_0 = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(this_9, 10));
1649
+ var inductionVariable_0 = this_9.first_1;
1650
+ var last_0 = this_9.last_1;
1650
1651
  if (inductionVariable_0 <= last_0)
1651
1652
  do {
1652
1653
  var item_0 = inductionVariable_0;
@@ -1662,7 +1663,7 @@ function _init_properties_Chars_kt__d3i39x() {
1662
1663
  tmp_9 = toByte(tmp$ret$3_0);
1663
1664
  }
1664
1665
  var tmp$ret$2_0 = tmp_9;
1665
- destination_0.e2(tmp$ret$2_0);
1666
+ destination_0.add_utx5q5_k$(tmp$ret$2_0);
1666
1667
  }
1667
1668
  while (!(item_0 === last_0));
1668
1669
  HexLetterTable = toByteArray(destination_0);
@@ -1671,7 +1672,7 @@ function _init_properties_Chars_kt__d3i39x() {
1671
1672
  function skipSpacesAndHorizontalTabs(text, start, end) {
1672
1673
  var index = start;
1673
1674
  $l$loop: while (index < end) {
1674
- var ch = text.b(index);
1675
+ var ch = text.get_kdzpvg_k$(index);
1675
1676
  if (!isWhitespace(ch) && !(ch === _Char___init__impl__6a9atx(9)))
1676
1677
  break $l$loop;
1677
1678
  index = index + 1 | 0;