@attocash/commons-js 5.0.0 → 5.1.1

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 (311) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
  2. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
  3. package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
  4. package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
  5. package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
  6. package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
  7. package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
  8. package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
  9. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
  10. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
  11. package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
  12. package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
  13. package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
  14. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
  15. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
  16. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
  17. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
  18. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
  19. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
  20. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
  21. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
  22. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
  23. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
  24. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
  25. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
  26. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
  27. package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
  28. package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
  29. package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
  30. package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
  31. package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
  32. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
  33. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
  34. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
  35. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
  36. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
  37. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
  38. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
  39. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
  40. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
  41. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
  42. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
  43. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
  44. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
  45. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
  46. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
  47. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
  48. package/commons-commons-node.mjs +1 -0
  49. package/commons-commons-node.mjs.map +1 -1
  50. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
  51. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
  52. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
  53. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
  54. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
  55. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
  56. package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
  57. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
  58. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
  59. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
  60. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
  61. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
  62. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
  63. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
  64. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
  65. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
  66. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
  67. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
  68. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
  69. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
  70. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
  71. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
  72. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
  73. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
  74. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
  75. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  76. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
  77. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
  78. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
  79. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
  80. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  81. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
  82. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
  83. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
  84. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
  85. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
  86. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
  87. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  88. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
  89. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  90. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
  91. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
  92. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
  93. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
  94. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
  95. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
  96. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
  97. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
  98. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  99. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
  100. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  101. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
  102. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  103. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
  104. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  105. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
  106. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
  107. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
  108. package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
  109. package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
  110. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  111. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
  112. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
  113. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  114. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
  115. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
  116. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  117. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  118. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  119. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
  120. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  121. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
  122. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
  123. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
  124. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
  125. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
  126. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  127. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
  128. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
  129. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
  130. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
  131. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
  132. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  133. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
  134. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
  135. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
  136. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
  137. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
  138. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
  139. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
  140. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
  141. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
  142. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
  143. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
  144. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
  145. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  146. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
  147. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
  148. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  149. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
  150. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
  151. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
  152. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
  153. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
  154. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
  155. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
  156. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  157. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  158. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
  159. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  160. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
  161. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
  162. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
  163. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
  164. package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
  165. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
  166. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
  167. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
  168. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
  169. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  170. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
  171. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
  172. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
  173. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
  174. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
  175. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
  176. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  177. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
  178. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
  179. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
  180. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
  181. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
  182. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
  183. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  184. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
  185. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
  186. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  187. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  188. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
  189. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
  190. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
  191. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
  192. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
  193. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  194. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  195. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
  196. package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
  197. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
  198. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
  199. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
  200. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  201. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
  202. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
  203. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
  204. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  205. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
  206. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
  207. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
  208. package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
  209. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
  210. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  211. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  212. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
  213. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
  214. package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
  215. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
  216. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  217. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  218. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  219. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
  220. package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
  221. package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
  222. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
  223. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
  224. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
  225. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
  226. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
  227. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
  228. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
  229. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
  230. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  231. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
  232. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  233. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  234. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
  235. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
  236. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  237. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
  238. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
  239. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  240. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
  241. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
  242. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
  243. package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
  244. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  245. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
  246. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  247. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  248. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  249. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  250. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
  251. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  252. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  253. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  254. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  255. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
  256. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
  257. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  258. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  259. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  260. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
  261. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
  262. package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
  263. package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
  264. package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
  265. package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
  266. package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +106 -106
  267. package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
  268. package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
  269. package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
  270. package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
  271. package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
  272. package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
  273. package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
  274. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
  275. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
  276. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
  277. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
  278. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  279. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
  280. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
  281. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
  282. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
  283. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  284. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
  285. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
  286. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  287. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
  288. package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
  289. package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
  290. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  291. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
  292. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  293. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
  294. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  295. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  296. package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
  297. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
  298. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
  299. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
  300. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  301. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  302. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  303. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
  304. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  305. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
  306. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
  307. package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
  308. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
  309. package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
  310. package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
  311. package/package.json +1 -1
@@ -82,16 +82,16 @@ function parseVersion(text, range) {
82
82
  _init_properties_HttpParser_kt__gbdom1();
83
83
  skipSpaces(text, range);
84
84
  // Inline function 'kotlin.check' call
85
- if (!(range.l4i_1 < range.m4i_1)) {
85
+ if (!(range.z4i_1 < range.a4j_1)) {
86
86
  var message = 'Failed to parse version: ' + toString(text);
87
87
  throw IllegalStateException().o4(toString(message));
88
88
  }
89
89
  var tmp = get_versions();
90
- var tmp_0 = range.l4i_1;
91
- var tmp_1 = range.m4i_1;
92
- var exact = singleOrNull(tmp.o4f(text, tmp_0, tmp_1, VOID, parseVersion$lambda));
90
+ var tmp_0 = range.z4i_1;
91
+ var tmp_1 = range.a4j_1;
92
+ var exact = singleOrNull(tmp.c4g(text, tmp_0, tmp_1, VOID, parseVersion$lambda));
93
93
  if (!(exact == null)) {
94
- range.l4i_1 = range.l4i_1 + exact.length | 0;
94
+ range.z4i_1 = range.z4i_1 + exact.length | 0;
95
95
  return exact;
96
96
  }
97
97
  unsupportedHttpVersion(nextToken(text, range));
@@ -100,9 +100,9 @@ function parseStatusCode(text, range) {
100
100
  _init_properties_HttpParser_kt__gbdom1();
101
101
  skipSpaces(text, range);
102
102
  var status = 0;
103
- var newStart = range.m4i_1;
104
- var inductionVariable = range.l4i_1;
105
- var last = range.m4i_1;
103
+ var newStart = range.a4j_1;
104
+ var inductionVariable = range.z4i_1;
105
+ var last = range.a4j_1;
106
106
  if (inductionVariable < last)
107
107
  $l$loop: do {
108
108
  var idx = inductionVariable;
@@ -110,14 +110,14 @@ function parseStatusCode(text, range) {
110
110
  var ch = charSequenceGet(text, idx);
111
111
  if (ch === _Char___init__impl__6a9atx(32)) {
112
112
  if (statusOutOfRange(status)) {
113
- throw ParserException().r4i('Status-code must be 3-digit. Status received: ' + status + '.');
113
+ throw ParserException().f4j('Status-code must be 3-digit. Status received: ' + status + '.');
114
114
  }
115
115
  newStart = idx;
116
116
  break $l$loop;
117
117
  } else if (_Char___init__impl__6a9atx(48) <= ch ? ch <= _Char___init__impl__6a9atx(57) : false) {
118
118
  status = imul(status, 10) + Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48)) | 0;
119
119
  } else {
120
- var tmp2 = range.l4i_1;
120
+ var tmp2 = range.z4i_1;
121
121
  // Inline function 'kotlin.text.substring' call
122
122
  var endIndex = findSpaceOrEnd(text, range);
123
123
  var code = toString(charSequenceSubSequence(text, tmp2, endIndex));
@@ -125,7 +125,7 @@ function parseStatusCode(text, range) {
125
125
  }
126
126
  }
127
127
  while (inductionVariable < last);
128
- range.l4i_1 = newStart;
128
+ range.z4i_1 = newStart;
129
129
  return status;
130
130
  }
131
131
  function parseHeaders(input, builder, range, $completion) {
@@ -137,7 +137,7 @@ function parseHeaders(input, builder, range, $completion) {
137
137
  }
138
138
  function unsupportedHttpVersion(result) {
139
139
  _init_properties_HttpParser_kt__gbdom1();
140
- throw ParserException().r4i('Unsupported HTTP version: ' + toString(result));
140
+ throw ParserException().f4j('Unsupported HTTP version: ' + toString(result));
141
141
  }
142
142
  function statusOutOfRange(code) {
143
143
  _init_properties_HttpParser_kt__gbdom1();
@@ -147,9 +147,9 @@ var ParserExceptionClass;
147
147
  function ParserException() {
148
148
  if (ParserExceptionClass === VOID) {
149
149
  class $ extends IllegalStateException() {
150
- static r4i(message) {
150
+ static f4j(message) {
151
151
  var $this = this.o4(message);
152
- captureStack($this, $this.q4i_1);
152
+ captureStack($this, $this.e4j_1);
153
153
  return $this;
154
154
  }
155
155
  }
@@ -160,16 +160,16 @@ function ParserException() {
160
160
  }
161
161
  function parseHeaderName(text, range) {
162
162
  _init_properties_HttpParser_kt__gbdom1();
163
- var index = range.l4i_1;
164
- var end = range.m4i_1;
163
+ var index = range.z4i_1;
164
+ var end = range.a4j_1;
165
165
  while (index < end) {
166
166
  var ch = text.b(index);
167
- if (ch === _Char___init__impl__6a9atx(58) && !(index === range.l4i_1)) {
168
- range.l4i_1 = index + 1 | 0;
167
+ if (ch === _Char___init__impl__6a9atx(58) && !(index === range.z4i_1)) {
168
+ range.z4i_1 = index + 1 | 0;
169
169
  return index;
170
170
  }
171
171
  if (isDelimiter(ch)) {
172
- parseHeaderNameFailed(text, index, range.l4i_1, ch);
172
+ parseHeaderNameFailed(text, index, range.z4i_1, ch);
173
173
  }
174
174
  index = index + 1 | 0;
175
175
  }
@@ -177,12 +177,12 @@ function parseHeaderName(text, range) {
177
177
  }
178
178
  function parseHeaderValue(text, range) {
179
179
  _init_properties_HttpParser_kt__gbdom1();
180
- var start = range.l4i_1;
181
- var end = range.m4i_1;
180
+ var start = range.z4i_1;
181
+ var end = range.a4j_1;
182
182
  var index = start;
183
183
  index = skipSpacesAndHorizontalTabs(text, index, end);
184
184
  if (index >= end) {
185
- range.l4i_1 = end;
185
+ range.z4i_1 = end;
186
186
  return Unit_instance;
187
187
  }
188
188
  var valueStart = index;
@@ -196,13 +196,13 @@ function parseHeaderValue(text, range) {
196
196
  valueLastIndex = index;
197
197
  index = index + 1 | 0;
198
198
  }
199
- range.l4i_1 = valueStart;
200
- range.m4i_1 = valueLastIndex + 1 | 0;
199
+ range.z4i_1 = valueStart;
200
+ range.a4j_1 = valueLastIndex + 1 | 0;
201
201
  }
202
202
  function validateHostHeader(host) {
203
203
  _init_properties_HttpParser_kt__gbdom1();
204
204
  if (endsWith(host, ':')) {
205
- throw ParserException().r4i("Host header with ':' should contains port: " + toString(host));
205
+ throw ParserException().f4j("Host header with ':' should contains port: " + toString(host));
206
206
  }
207
207
  var tmp$ret$1;
208
208
  $l$block: {
@@ -219,7 +219,7 @@ function validateHostHeader(host) {
219
219
  tmp$ret$1 = false;
220
220
  }
221
221
  if (tmp$ret$1) {
222
- throw ParserException().r4i('Host cannot contain any of the following symbols: ' + toString(get_hostForbiddenSymbols()));
222
+ throw ParserException().f4j('Host cannot contain any of the following symbols: ' + toString(get_hostForbiddenSymbols()));
223
223
  }
224
224
  }
225
225
  function isDelimiter(ch) {
@@ -229,26 +229,26 @@ function isDelimiter(ch) {
229
229
  function parseHeaderNameFailed(text, index, start, ch) {
230
230
  _init_properties_HttpParser_kt__gbdom1();
231
231
  if (ch === _Char___init__impl__6a9atx(58)) {
232
- throw ParserException().r4i('Empty header names are not allowed as per RFC7230.');
232
+ throw ParserException().f4j('Empty header names are not allowed as per RFC7230.');
233
233
  }
234
234
  if (index === start) {
235
- throw ParserException().r4i('Multiline headers via line folding is not supported since it is deprecated as per RFC7230.');
235
+ throw ParserException().f4j('Multiline headers via line folding is not supported since it is deprecated as per RFC7230.');
236
236
  }
237
237
  characterIsNotAllowed(text, ch);
238
238
  }
239
239
  function noColonFound(text, range) {
240
240
  _init_properties_HttpParser_kt__gbdom1();
241
- var tmp2 = range.l4i_1;
241
+ var tmp2 = range.z4i_1;
242
242
  // Inline function 'kotlin.text.substring' call
243
- var endIndex = range.m4i_1;
243
+ var endIndex = range.a4j_1;
244
244
  var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
245
- throw ParserException().r4i('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
245
+ throw ParserException().f4j('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
246
246
  }
247
247
  function characterIsNotAllowed(text, ch) {
248
248
  _init_properties_HttpParser_kt__gbdom1();
249
249
  // Inline function 'kotlin.code' call
250
250
  var tmp$ret$0 = Char__toInt_impl_vasixd(ch);
251
- throw ParserException().r4i('Character with code ' + (tmp$ret$0 & 255) + ' is not allowed in header names, \n' + toString(text));
251
+ throw ParserException().f4j('Character with code ' + (tmp$ret$0 & 255) + ' is not allowed in header names, \n' + toString(text));
252
252
  }
253
253
  function parseVersion$lambda(ch, _unused_var__etf5q3) {
254
254
  _init_properties_HttpParser_kt__gbdom1();
@@ -260,7 +260,7 @@ function $parseResponseCOROUTINE$() {
260
260
  class $ extends CoroutineImpl() {
261
261
  constructor(input, resultContinuation) {
262
262
  super(resultContinuation);
263
- this.e4i_1 = input;
263
+ this.s4i_1 = input;
264
264
  }
265
265
  ic() {
266
266
  var suspendResult = this.cc_1;
@@ -270,19 +270,19 @@ function $parseResponseCOROUTINE$() {
270
270
  switch (tmp) {
271
271
  case 0:
272
272
  this.bc_1 = 5;
273
- this.f4i_1 = new (CharArrayBuilder())();
274
- this.g4i_1 = new (MutableRange())(0, 0);
273
+ this.t4i_1 = new (CharArrayBuilder())();
274
+ this.u4i_1 = new (MutableRange())(0, 0);
275
275
  this.bc_1 = 4;
276
276
  this.ac_1 = 1;
277
- suspendResult = readUTF8LineTo(this.e4i_1, this.f4i_1, 8192, get_httpLineEndings(), this);
277
+ suspendResult = readUTF8LineTo(this.s4i_1, this.t4i_1, 8192, get_httpLineEndings(), this);
278
278
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
279
279
  return suspendResult;
280
280
  }
281
281
 
282
282
  continue $sm;
283
283
  case 1:
284
- this.h4i_1 = suspendResult;
285
- if (!this.h4i_1) {
284
+ this.v4i_1 = suspendResult;
285
+ if (!this.v4i_1) {
286
286
  return null;
287
287
  } else {
288
288
  this.ac_1 = 2;
@@ -290,14 +290,14 @@ function $parseResponseCOROUTINE$() {
290
290
  }
291
291
 
292
292
  case 2:
293
- this.g4i_1.m4i_1 = this.f4i_1.m4h_1;
294
- this.i4i_1 = parseVersion(this.f4i_1, this.g4i_1);
295
- this.j4i_1 = parseStatusCode(this.f4i_1, this.g4i_1);
296
- skipSpaces(this.f4i_1, this.g4i_1);
297
- this.k4i_1 = this.f4i_1.c(this.g4i_1.l4i_1, this.g4i_1.m4i_1);
298
- this.g4i_1.l4i_1 = this.g4i_1.m4i_1;
293
+ this.u4i_1.a4j_1 = this.t4i_1.a4i_1;
294
+ this.w4i_1 = parseVersion(this.t4i_1, this.u4i_1);
295
+ this.x4i_1 = parseStatusCode(this.t4i_1, this.u4i_1);
296
+ skipSpaces(this.t4i_1, this.u4i_1);
297
+ this.y4i_1 = this.t4i_1.c(this.u4i_1.z4i_1, this.u4i_1.a4j_1);
298
+ this.u4i_1.z4i_1 = this.u4i_1.a4j_1;
299
299
  this.ac_1 = 3;
300
- suspendResult = parseHeaders(this.e4i_1, this.f4i_1, this.g4i_1, this);
300
+ suspendResult = parseHeaders(this.s4i_1, this.t4i_1, this.u4i_1, this);
301
301
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
302
302
  return suspendResult;
303
303
  }
@@ -305,14 +305,14 @@ function $parseResponseCOROUTINE$() {
305
305
  continue $sm;
306
306
  case 3:
307
307
  var tmp0_elvis_lhs = suspendResult;
308
- var headers = tmp0_elvis_lhs == null ? new (HttpHeadersMap())(this.f4i_1) : tmp0_elvis_lhs;
309
- return new (Response())(this.i4i_1, this.j4i_1, this.k4i_1, headers, this.f4i_1);
308
+ var headers = tmp0_elvis_lhs == null ? new (HttpHeadersMap())(this.t4i_1) : tmp0_elvis_lhs;
309
+ return new (Response())(this.w4i_1, this.x4i_1, this.y4i_1, headers, this.t4i_1);
310
310
  case 4:
311
311
  this.bc_1 = 5;
312
312
  var tmp_0 = this.dc_1;
313
313
  if (tmp_0 instanceof Error) {
314
314
  var t = this.dc_1;
315
- this.f4i_1.y2n();
315
+ this.t4i_1.m2o();
316
316
  throw t;
317
317
  } else {
318
318
  throw this.dc_1;
@@ -344,9 +344,9 @@ function $parseHeadersCOROUTINE$() {
344
344
  class $ extends CoroutineImpl() {
345
345
  constructor(input, builder, range, resultContinuation) {
346
346
  super(resultContinuation);
347
- this.a4j_1 = input;
348
- this.b4j_1 = builder;
349
- this.c4j_1 = range;
347
+ this.o4j_1 = input;
348
+ this.p4j_1 = builder;
349
+ this.q4j_1 = range;
350
350
  }
351
351
  ic() {
352
352
  var suspendResult = this.cc_1;
@@ -356,7 +356,7 @@ function $parseHeadersCOROUTINE$() {
356
356
  switch (tmp) {
357
357
  case 0:
358
358
  this.bc_1 = 7;
359
- this.d4j_1 = new (HttpHeadersMap())(this.b4j_1);
359
+ this.r4j_1 = new (HttpHeadersMap())(this.p4j_1);
360
360
  this.bc_1 = 6;
361
361
  this.ac_1 = 1;
362
362
  continue $sm;
@@ -367,7 +367,7 @@ function $parseHeadersCOROUTINE$() {
367
367
  }
368
368
 
369
369
  this.ac_1 = 2;
370
- suspendResult = readUTF8LineTo(this.a4j_1, this.b4j_1, 8192, get_httpLineEndings(), this);
370
+ suspendResult = readUTF8LineTo(this.o4j_1, this.p4j_1, 8192, get_httpLineEndings(), this);
371
371
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
372
372
  return suspendResult;
373
373
  }
@@ -376,7 +376,7 @@ function $parseHeadersCOROUTINE$() {
376
376
  case 2:
377
377
  var ARGUMENT = suspendResult;
378
378
  if (!ARGUMENT) {
379
- this.d4j_1.y2n();
379
+ this.r4j_1.m2o();
380
380
  return null;
381
381
  } else {
382
382
  this.ac_1 = 3;
@@ -384,8 +384,8 @@ function $parseHeadersCOROUTINE$() {
384
384
  }
385
385
 
386
386
  case 3:
387
- this.c4j_1.m4i_1 = this.b4j_1.m4h_1;
388
- var rangeLength = this.c4j_1.m4i_1 - this.c4j_1.l4i_1 | 0;
387
+ this.q4j_1.a4j_1 = this.p4j_1.a4i_1;
388
+ var rangeLength = this.q4j_1.a4j_1 - this.q4j_1.z4i_1 | 0;
389
389
  if (rangeLength === 0) {
390
390
  this.ac_1 = 5;
391
391
  continue $sm;
@@ -400,29 +400,29 @@ function $parseHeadersCOROUTINE$() {
400
400
  throw IllegalStateException().o4(toString(message));
401
401
  }
402
402
 
403
- var nameStart = this.c4j_1.l4i_1;
404
- var nameEnd = parseHeaderName(this.b4j_1, this.c4j_1);
405
- var headerEnd = this.c4j_1.m4i_1;
406
- parseHeaderValue(this.b4j_1, this.c4j_1);
407
- var valueStart = this.c4j_1.l4i_1;
408
- var valueEnd = this.c4j_1.m4i_1;
409
- this.c4j_1.l4i_1 = headerEnd;
410
- this.d4j_1.d4h(nameStart, nameEnd, valueStart, valueEnd);
403
+ var nameStart = this.q4j_1.z4i_1;
404
+ var nameEnd = parseHeaderName(this.p4j_1, this.q4j_1);
405
+ var headerEnd = this.q4j_1.a4j_1;
406
+ parseHeaderValue(this.p4j_1, this.q4j_1);
407
+ var valueStart = this.q4j_1.z4i_1;
408
+ var valueEnd = this.q4j_1.a4j_1;
409
+ this.q4j_1.z4i_1 = headerEnd;
410
+ this.r4j_1.r4h(nameStart, nameEnd, valueStart, valueEnd);
411
411
  this.ac_1 = 1;
412
412
  continue $sm;
413
413
  case 5:
414
- var host = this.d4j_1.o3r(HttpHeaders_getInstance().w41_1);
414
+ var host = this.r4j_1.c3s(HttpHeaders_getInstance().k42_1);
415
415
  if (!(host == null)) {
416
416
  validateHostHeader(host);
417
417
  }
418
418
 
419
- return this.d4j_1;
419
+ return this.r4j_1;
420
420
  case 6:
421
421
  this.bc_1 = 7;
422
422
  var tmp_0 = this.dc_1;
423
423
  if (tmp_0 instanceof Error) {
424
424
  var t = this.dc_1;
425
- this.d4j_1.y2n();
425
+ this.r4j_1.m2o();
426
426
  throw t;
427
427
  } else {
428
428
  throw this.dc_1;
@@ -453,8 +453,8 @@ function _init_properties_HttpParser_kt__gbdom1() {
453
453
  if (!properties_initialized_HttpParser_kt_uedryv) {
454
454
  properties_initialized_HttpParser_kt_uedryv = true;
455
455
  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))]);
456
- httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().v3g_1, Companion_getInstance().u3g_1);
457
- versions = Companion_instance.e4j(listOf(['HTTP/1.0', 'HTTP/1.1']));
456
+ httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().j3h_1, Companion_getInstance().i3h_1);
457
+ versions = Companion_instance.s4j(listOf(['HTTP/1.0', 'HTTP/1.1']));
458
458
  }
459
459
  }
460
460
  //region block: exports