@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
@@ -65,10 +65,10 @@ function Companion() {
65
65
  class $ {
66
66
  constructor() {
67
67
  Companion_instance_0 = this;
68
- this.p37_1 = new (Closed())(null);
68
+ this.d38_1 = new (Closed())(null);
69
69
  var tmp = this;
70
70
  // Inline function 'kotlin.Companion.success' call
71
- tmp.q37_1 = _Result___init__impl__xyqfz8(Unit_instance);
71
+ tmp.e38_1 = _Result___init__impl__xyqfz8(Unit_instance);
72
72
  }
73
73
  }
74
74
  initMetadataForCompanion($);
@@ -115,13 +115,13 @@ function Closed() {
115
115
  if (ClosedClass === VOID) {
116
116
  class $ {
117
117
  constructor(cause) {
118
- this.r37_1 = cause;
118
+ this.f38_1 = cause;
119
119
  }
120
120
  toString() {
121
- return 'Closed(cause=' + toString(this.r37_1) + ')';
121
+ return 'Closed(cause=' + toString(this.f38_1) + ')';
122
122
  }
123
123
  hashCode() {
124
- return this.r37_1 == null ? 0 : hashCode(this.r37_1);
124
+ return this.f38_1 == null ? 0 : hashCode(this.f38_1);
125
125
  }
126
126
  equals(other) {
127
127
  if (this === other)
@@ -129,7 +129,7 @@ function Closed() {
129
129
  if (!(other instanceof Closed()))
130
130
  return false;
131
131
  var tmp0_other_with_cast = other instanceof Closed() ? other : THROW_CCE();
132
- if (!equals(this.r37_1, tmp0_other_with_cast.r37_1))
132
+ if (!equals(this.f38_1, tmp0_other_with_cast.f38_1))
133
133
  return false;
134
134
  return true;
135
135
  }
@@ -140,10 +140,10 @@ function Closed() {
140
140
  return ClosedClass;
141
141
  }
142
142
  function resume() {
143
- return this.t37().lc(Companion_getInstance().q37_1);
143
+ return this.h38().lc(Companion_getInstance().e38_1);
144
144
  }
145
145
  function resume_0(throwable) {
146
- var tmp = this.t37();
146
+ var tmp = this.h38();
147
147
  var tmp_0;
148
148
  if (throwable == null) {
149
149
  tmp_0 = null;
@@ -154,7 +154,7 @@ function resume_0(throwable) {
154
154
  tmp_0 = new (Result())(tmp$ret$2);
155
155
  }
156
156
  var tmp1_elvis_lhs = tmp_0;
157
- return tmp.lc(tmp1_elvis_lhs == null ? Companion_getInstance().q37_1 : tmp1_elvis_lhs.wq_1);
157
+ return tmp.lc(tmp1_elvis_lhs == null ? Companion_getInstance().e38_1 : tmp1_elvis_lhs.wq_1);
158
158
  }
159
159
  var TaskClass;
160
160
  function Task() {
@@ -170,28 +170,28 @@ function Read() {
170
170
  if (ReadClass === VOID) {
171
171
  class $ {
172
172
  constructor(continuation) {
173
- this.x37_1 = continuation;
174
- this.y37_1 = null;
173
+ this.l38_1 = continuation;
174
+ this.m38_1 = null;
175
175
  if (get_DEVELOPMENT_MODE()) {
176
176
  var tmp = this;
177
177
  // Inline function 'kotlin.also' call
178
- var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.x37_1), 16));
178
+ var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.l38_1), 16));
179
179
  stackTraceToString(this_0);
180
- tmp.y37_1 = this_0;
180
+ tmp.m38_1 = this_0;
181
181
  }
182
182
  }
183
- t37() {
184
- return this.x37_1;
183
+ h38() {
184
+ return this.l38_1;
185
185
  }
186
- s37() {
187
- return this.y37_1;
186
+ g38() {
187
+ return this.m38_1;
188
188
  }
189
- u37() {
189
+ i38() {
190
190
  return 'read';
191
191
  }
192
192
  }
193
- protoOf($).v37 = resume;
194
- protoOf($).w37 = resume_0;
193
+ protoOf($).j38 = resume;
194
+ protoOf($).k38 = resume_0;
195
195
  initMetadataForClass($, 'Read', VOID, VOID, [Task()]);
196
196
  ReadClass = $;
197
197
  }
@@ -202,28 +202,28 @@ function Write() {
202
202
  if (WriteClass === VOID) {
203
203
  class $ {
204
204
  constructor(continuation) {
205
- this.z37_1 = continuation;
206
- this.a38_1 = null;
205
+ this.n38_1 = continuation;
206
+ this.o38_1 = null;
207
207
  if (get_DEVELOPMENT_MODE()) {
208
208
  var tmp = this;
209
209
  // Inline function 'kotlin.also' call
210
- var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.z37_1), 16));
210
+ var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.n38_1), 16));
211
211
  stackTraceToString(this_0);
212
- tmp.a38_1 = this_0;
212
+ tmp.o38_1 = this_0;
213
213
  }
214
214
  }
215
- t37() {
216
- return this.z37_1;
215
+ h38() {
216
+ return this.n38_1;
217
217
  }
218
- s37() {
219
- return this.a38_1;
218
+ g38() {
219
+ return this.o38_1;
220
220
  }
221
- u37() {
221
+ i38() {
222
222
  return 'write';
223
223
  }
224
224
  }
225
- protoOf($).v37 = resume;
226
- protoOf($).w37 = resume_0;
225
+ protoOf($).j38 = resume;
226
+ protoOf($).k38 = resume_0;
227
227
  initMetadataForClass($, 'Write', VOID, VOID, [Task()]);
228
228
  WriteClass = $;
229
229
  }
@@ -231,38 +231,38 @@ function Write() {
231
231
  }
232
232
  function moveFlushToReadBuffer($this) {
233
233
  // Inline function 'io.ktor.utils.io.locks.synchronized' call
234
- $this.e38_1;
235
- $this.c38_1.h2s($this.g38_1);
236
- $this.d38_1 = 0;
234
+ $this.s38_1;
235
+ $this.q38_1.v2s($this.u38_1);
236
+ $this.r38_1 = 0;
237
237
  // Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
238
- var current = $this.f38_1.kotlinx$atomicfu$value;
238
+ var current = $this.t38_1.kotlinx$atomicfu$value;
239
239
  var tmp;
240
240
  if (current instanceof Write()) {
241
- tmp = $this.f38_1.atomicfu$compareAndSet(current, Empty_instance);
241
+ tmp = $this.t38_1.atomicfu$compareAndSet(current, Empty_instance);
242
242
  } else {
243
243
  tmp = false;
244
244
  }
245
245
  if (tmp) {
246
- current.v37();
246
+ current.j38();
247
247
  }
248
248
  }
249
249
  function closeSlot($this, cause) {
250
- var closeContinuation = !(cause == null) ? new (Closed())(cause) : Companion_getInstance().p37_1;
251
- var continuation = $this.f38_1.atomicfu$getAndSet(closeContinuation);
250
+ var closeContinuation = !(cause == null) ? new (Closed())(cause) : Companion_getInstance().d38_1;
251
+ var continuation = $this.t38_1.atomicfu$getAndSet(closeContinuation);
252
252
  if (isInterface(continuation, Task())) {
253
- continuation.w37(cause);
253
+ continuation.k38(cause);
254
254
  }
255
255
  }
256
256
  function ClosedReadChannelException$_init_$ref_ix0089() {
257
257
  var l = function (p0) {
258
- return ClosedReadChannelException().n38(p0);
258
+ return ClosedReadChannelException().b39(p0);
259
259
  };
260
260
  l.callableName = '<init>';
261
261
  return l;
262
262
  }
263
263
  function ClosedWriteChannelException$_init_$ref_ef15ty() {
264
264
  var l = function (p0) {
265
- return ClosedWriteChannelException().s38(p0);
265
+ return ClosedWriteChannelException().g39(p0);
266
266
  };
267
267
  l.callableName = '<init>';
268
268
  return l;
@@ -273,8 +273,8 @@ function $awaitContentCOROUTINE$() {
273
273
  class $ extends CoroutineImpl() {
274
274
  constructor(_this__u8e3s4, min, resultContinuation) {
275
275
  super(resultContinuation);
276
- this.b39_1 = _this__u8e3s4;
277
- this.c39_1 = min;
276
+ this.p39_1 = _this__u8e3s4;
277
+ this.q39_1 = min;
278
278
  }
279
279
  ic() {
280
280
  var suspendResult = this.cc_1;
@@ -284,16 +284,16 @@ function $awaitContentCOROUTINE$() {
284
284
  switch (tmp) {
285
285
  case 0:
286
286
  this.bc_1 = 4;
287
- rethrowCloseCauseIfNeeded(this.b39_1);
288
- if (this.b39_1.g38_1.i1().a2(toLong(this.c39_1)) >= 0)
287
+ rethrowCloseCauseIfNeeded(this.p39_1);
288
+ if (this.p39_1.u38_1.i1().a2(toLong(this.q39_1)) >= 0)
289
289
  return true;
290
290
  var tmp_0 = this;
291
- tmp_0.d39_1 = this.b39_1;
292
- this.e39_1 = this.d39_1;
291
+ tmp_0.r39_1 = this.p39_1;
292
+ this.s39_1 = this.r39_1;
293
293
  this.ac_1 = 1;
294
294
  continue $sm;
295
295
  case 1:
296
- if (!(numberToLong(this.b39_1.d38_1).p3(this.b39_1.g38_1.i1()).a2(toLong(this.c39_1)) < 0 && this.b39_1.i38_1.kotlinx$atomicfu$value == null)) {
296
+ if (!(numberToLong(this.p39_1.r38_1).p3(this.p39_1.u38_1.i1()).a2(toLong(this.q39_1)) < 0 && this.p39_1.w38_1.kotlinx$atomicfu$value == null)) {
297
297
  this.ac_1 = 3;
298
298
  continue $sm;
299
299
  }
@@ -301,24 +301,24 @@ function $awaitContentCOROUTINE$() {
301
301
  this.ac_1 = 2;
302
302
  var cancellable = new (CancellableContinuationImpl())(intercepted(this), 1);
303
303
  cancellable.a23();
304
- var tmp0 = this.e39_1;
304
+ var tmp0 = this.s39_1;
305
305
  var tmp2 = new (Read())(cancellable);
306
306
  l$ret$1: do {
307
- var previous = tmp0.f38_1.kotlinx$atomicfu$value;
307
+ var previous = tmp0.t38_1.kotlinx$atomicfu$value;
308
308
  if (!(previous instanceof Closed())) {
309
- if (!tmp0.f38_1.atomicfu$compareAndSet(previous, tmp2)) {
310
- tmp2.v37();
309
+ if (!tmp0.t38_1.atomicfu$compareAndSet(previous, tmp2)) {
310
+ tmp2.j38();
311
311
  break l$ret$1;
312
312
  }
313
313
  }
314
314
  if (previous instanceof Read()) {
315
- previous.w37(ConcurrentIOException().j39(tmp2.u37(), previous.s37()));
315
+ previous.k38(ConcurrentIOException().x39(tmp2.i38(), previous.g38()));
316
316
  } else {
317
317
  if (isInterface(previous, Task())) {
318
- previous.v37();
318
+ previous.j38();
319
319
  } else {
320
320
  if (previous instanceof Closed()) {
321
- tmp2.w37(previous.r37_1);
321
+ tmp2.k38(previous.f38_1);
322
322
  break l$ret$1;
323
323
  } else {
324
324
  if (!equals(previous, Empty_instance)) {
@@ -327,16 +327,16 @@ function $awaitContentCOROUTINE$() {
327
327
  }
328
328
  }
329
329
  }
330
- if (!(numberToLong(this.b39_1.d38_1).p3(this.b39_1.g38_1.i1()).a2(toLong(this.c39_1)) < 0 && this.b39_1.i38_1.kotlinx$atomicfu$value == null)) {
331
- var current = tmp0.f38_1.kotlinx$atomicfu$value;
330
+ if (!(numberToLong(this.p39_1.r38_1).p3(this.p39_1.u38_1.i1()).a2(toLong(this.q39_1)) < 0 && this.p39_1.w38_1.kotlinx$atomicfu$value == null)) {
331
+ var current = tmp0.t38_1.kotlinx$atomicfu$value;
332
332
  var tmp_1;
333
333
  if (current instanceof Read()) {
334
- tmp_1 = tmp0.f38_1.atomicfu$compareAndSet(current, Empty_instance);
334
+ tmp_1 = tmp0.t38_1.atomicfu$compareAndSet(current, Empty_instance);
335
335
  } else {
336
336
  tmp_1 = false;
337
337
  }
338
338
  if (tmp_1) {
339
- current.v37();
339
+ current.j38();
340
340
  }
341
341
  }
342
342
  }
@@ -351,11 +351,11 @@ function $awaitContentCOROUTINE$() {
351
351
  this.ac_1 = 1;
352
352
  continue $sm;
353
353
  case 3:
354
- if (this.b39_1.g38_1.i1().a2(new (Long())(1048576, 0)) < 0) {
355
- moveFlushToReadBuffer(this.b39_1);
354
+ if (this.p39_1.u38_1.i1().a2(new (Long())(1048576, 0)) < 0) {
355
+ moveFlushToReadBuffer(this.p39_1);
356
356
  }
357
357
 
358
- return this.b39_1.g38_1.i1().a2(toLong(this.c39_1)) >= 0;
358
+ return this.p39_1.u38_1.i1().a2(toLong(this.q39_1)) >= 0;
359
359
  case 4:
360
360
  throw this.dc_1;
361
361
  }
@@ -382,7 +382,7 @@ function $flushCOROUTINE$() {
382
382
  class $ extends CoroutineImpl() {
383
383
  constructor(_this__u8e3s4, resultContinuation) {
384
384
  super(resultContinuation);
385
- this.s39_1 = _this__u8e3s4;
385
+ this.g3a_1 = _this__u8e3s4;
386
386
  }
387
387
  ic() {
388
388
  var suspendResult = this.cc_1;
@@ -392,17 +392,17 @@ function $flushCOROUTINE$() {
392
392
  switch (tmp) {
393
393
  case 0:
394
394
  this.bc_1 = 4;
395
- rethrowCloseCauseIfNeeded(this.s39_1);
396
- this.s39_1.v39();
397
- if (this.s39_1.d38_1 < 1048576)
395
+ rethrowCloseCauseIfNeeded(this.g3a_1);
396
+ this.g3a_1.j3a();
397
+ if (this.g3a_1.r38_1 < 1048576)
398
398
  return Unit_instance;
399
399
  var tmp_0 = this;
400
- tmp_0.t39_1 = this.s39_1;
401
- this.u39_1 = this.t39_1;
400
+ tmp_0.h3a_1 = this.g3a_1;
401
+ this.i3a_1 = this.h3a_1;
402
402
  this.ac_1 = 1;
403
403
  continue $sm;
404
404
  case 1:
405
- if (!(this.s39_1.d38_1 >= 1048576 && this.s39_1.i38_1.kotlinx$atomicfu$value == null)) {
405
+ if (!(this.g3a_1.r38_1 >= 1048576 && this.g3a_1.w38_1.kotlinx$atomicfu$value == null)) {
406
406
  this.ac_1 = 3;
407
407
  continue $sm;
408
408
  }
@@ -410,24 +410,24 @@ function $flushCOROUTINE$() {
410
410
  this.ac_1 = 2;
411
411
  var cancellable = new (CancellableContinuationImpl())(intercepted(this), 1);
412
412
  cancellable.a23();
413
- var tmp0 = this.u39_1;
413
+ var tmp0 = this.i3a_1;
414
414
  var tmp2 = new (Write())(cancellable);
415
415
  l$ret$1: do {
416
- var previous = tmp0.f38_1.kotlinx$atomicfu$value;
416
+ var previous = tmp0.t38_1.kotlinx$atomicfu$value;
417
417
  if (!(previous instanceof Closed())) {
418
- if (!tmp0.f38_1.atomicfu$compareAndSet(previous, tmp2)) {
419
- tmp2.v37();
418
+ if (!tmp0.t38_1.atomicfu$compareAndSet(previous, tmp2)) {
419
+ tmp2.j38();
420
420
  break l$ret$1;
421
421
  }
422
422
  }
423
423
  if (previous instanceof Write()) {
424
- previous.w37(ConcurrentIOException().j39(tmp2.u37(), previous.s37()));
424
+ previous.k38(ConcurrentIOException().x39(tmp2.i38(), previous.g38()));
425
425
  } else {
426
426
  if (isInterface(previous, Task())) {
427
- previous.v37();
427
+ previous.j38();
428
428
  } else {
429
429
  if (previous instanceof Closed()) {
430
- tmp2.w37(previous.r37_1);
430
+ tmp2.k38(previous.f38_1);
431
431
  break l$ret$1;
432
432
  } else {
433
433
  if (!equals(previous, Empty_instance)) {
@@ -436,16 +436,16 @@ function $flushCOROUTINE$() {
436
436
  }
437
437
  }
438
438
  }
439
- if (!(this.s39_1.d38_1 >= 1048576 && this.s39_1.i38_1.kotlinx$atomicfu$value == null)) {
440
- var current = tmp0.f38_1.kotlinx$atomicfu$value;
439
+ if (!(this.g3a_1.r38_1 >= 1048576 && this.g3a_1.w38_1.kotlinx$atomicfu$value == null)) {
440
+ var current = tmp0.t38_1.kotlinx$atomicfu$value;
441
441
  var tmp_1;
442
442
  if (current instanceof Write()) {
443
- tmp_1 = tmp0.f38_1.atomicfu$compareAndSet(current, Empty_instance);
443
+ tmp_1 = tmp0.t38_1.atomicfu$compareAndSet(current, Empty_instance);
444
444
  } else {
445
445
  tmp_1 = false;
446
446
  }
447
447
  if (tmp_1) {
448
- current.v37();
448
+ current.j38();
449
449
  }
450
450
  }
451
451
  }
@@ -487,7 +487,7 @@ function $flushAndCloseCOROUTINE$() {
487
487
  class $ extends CoroutineImpl() {
488
488
  constructor(_this__u8e3s4, resultContinuation) {
489
489
  super(resultContinuation);
490
- this.e3a_1 = _this__u8e3s4;
490
+ this.s3a_1 = _this__u8e3s4;
491
491
  }
492
492
  ic() {
493
493
  var suspendResult = this.cc_1;
@@ -498,16 +498,16 @@ function $flushAndCloseCOROUTINE$() {
498
498
  case 0:
499
499
  this.bc_1 = 4;
500
500
  var tmp_0 = this;
501
- tmp_0.f3a_1 = this.e3a_1;
502
- this.g3a_1 = this.f3a_1;
501
+ tmp_0.t3a_1 = this.s3a_1;
502
+ this.u3a_1 = this.t3a_1;
503
503
  this.bc_1 = 2;
504
504
  var tmp_1 = this;
505
- tmp_1.i3a_1 = Companion_instance;
505
+ tmp_1.w3a_1 = Companion_instance;
506
506
  var tmp_2 = this;
507
- tmp_2.j3a_1 = this.g3a_1;
508
- this.k3a_1 = this.j3a_1;
507
+ tmp_2.x3a_1 = this.u3a_1;
508
+ this.y3a_1 = this.x3a_1;
509
509
  this.ac_1 = 1;
510
- suspendResult = this.k3a_1.l3a(this);
510
+ suspendResult = this.y3a_1.z3a(this);
511
511
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
512
512
  return suspendResult;
513
513
  }
@@ -515,8 +515,8 @@ function $flushAndCloseCOROUTINE$() {
515
515
  continue $sm;
516
516
  case 1:
517
517
  var tmp_3 = this;
518
- this.i3a_1;
519
- tmp_3.h3a_1 = _Result___init__impl__xyqfz8(Unit_instance);
518
+ this.w3a_1;
519
+ tmp_3.v3a_1 = _Result___init__impl__xyqfz8(Unit_instance);
520
520
  this.bc_1 = 4;
521
521
  this.ac_1 = 3;
522
522
  continue $sm;
@@ -526,7 +526,7 @@ function $flushAndCloseCOROUTINE$() {
526
526
  if (tmp_4 instanceof Error) {
527
527
  var e = this.dc_1;
528
528
  var tmp_5 = this;
529
- tmp_5.h3a_1 = _Result___init__impl__xyqfz8(createFailure(e));
529
+ tmp_5.v3a_1 = _Result___init__impl__xyqfz8(createFailure(e));
530
530
  this.ac_1 = 3;
531
531
  continue $sm;
532
532
  } else {
@@ -535,9 +535,9 @@ function $flushAndCloseCOROUTINE$() {
535
535
 
536
536
  case 3:
537
537
  this.bc_1 = 4;
538
- if (!this.e3a_1.i38_1.atomicfu$compareAndSet(null, get_CLOSED()))
538
+ if (!this.s3a_1.w38_1.atomicfu$compareAndSet(null, get_CLOSED()))
539
539
  return Unit_instance;
540
- closeSlot(this.e3a_1, null);
540
+ closeSlot(this.s3a_1, null);
541
541
  return Unit_instance;
542
542
  case 4:
543
543
  throw this.dc_1;
@@ -565,108 +565,108 @@ function ByteChannel() {
565
565
  class $ {
566
566
  constructor(autoFlush) {
567
567
  autoFlush = autoFlush === VOID ? false : autoFlush;
568
- this.b38_1 = autoFlush;
569
- this.c38_1 = new (Buffer())();
570
- this.d38_1 = 0;
571
- this.e38_1 = new Object();
572
- this.f38_1 = atomic$ref$1(Empty_instance);
573
- this.g38_1 = new (Buffer())();
574
- this.h38_1 = new (Buffer())();
575
- this.i38_1 = atomic$ref$1(null);
576
- }
577
- m3a() {
578
- var tmp0_safe_receiver = this.i38_1.kotlinx$atomicfu$value;
568
+ this.p38_1 = autoFlush;
569
+ this.q38_1 = new (Buffer())();
570
+ this.r38_1 = 0;
571
+ this.s38_1 = new Object();
572
+ this.t38_1 = atomic$ref$1(Empty_instance);
573
+ this.u38_1 = new (Buffer())();
574
+ this.v38_1 = new (Buffer())();
575
+ this.w38_1 = atomic$ref$1(null);
576
+ }
577
+ a3b() {
578
+ var tmp0_safe_receiver = this.w38_1.kotlinx$atomicfu$value;
579
579
  if (tmp0_safe_receiver == null)
580
580
  null;
581
581
  else {
582
- tmp0_safe_receiver.o3a(ClosedReadChannelException$_init_$ref_ix0089());
582
+ tmp0_safe_receiver.c3b(ClosedReadChannelException$_init_$ref_ix0089());
583
583
  }
584
- if (this.g38_1.a2r()) {
584
+ if (this.u38_1.o2r()) {
585
585
  moveFlushToReadBuffer(this);
586
586
  }
587
- return this.g38_1;
587
+ return this.u38_1;
588
588
  }
589
- p3a() {
590
- if (this.q3a()) {
591
- var tmp0_safe_receiver = this.i38_1.kotlinx$atomicfu$value;
589
+ d3b() {
590
+ if (this.e3b()) {
591
+ var tmp0_safe_receiver = this.w38_1.kotlinx$atomicfu$value;
592
592
  var tmp;
593
593
  if (tmp0_safe_receiver == null) {
594
594
  tmp = null;
595
595
  } else {
596
- tmp = tmp0_safe_receiver.o3a(ClosedWriteChannelException$_init_$ref_ef15ty());
596
+ tmp = tmp0_safe_receiver.c3b(ClosedWriteChannelException$_init_$ref_ef15ty());
597
597
  }
598
598
  if (tmp == null)
599
- throw ClosedWriteChannelException().s38();
599
+ throw ClosedWriteChannelException().g39();
600
600
  }
601
- return this.h38_1;
601
+ return this.v38_1;
602
602
  }
603
- r3a() {
604
- var tmp0_safe_receiver = this.i38_1.kotlinx$atomicfu$value;
605
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s3a();
603
+ f3b() {
604
+ var tmp0_safe_receiver = this.w38_1.kotlinx$atomicfu$value;
605
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g3b();
606
606
  }
607
- q3a() {
608
- return !(this.i38_1.kotlinx$atomicfu$value == null);
607
+ e3b() {
608
+ return !(this.w38_1.kotlinx$atomicfu$value == null);
609
609
  }
610
- t3a() {
611
- return !(this.r3a() == null) || (this.q3a() && this.d38_1 === 0 && this.g38_1.a2r());
610
+ h3b() {
611
+ return !(this.f3b() == null) || (this.e3b() && this.r38_1 === 0 && this.u38_1.o2r());
612
612
  }
613
- u3a(min, $completion) {
613
+ i3b(min, $completion) {
614
614
  var tmp = new ($awaitContentCOROUTINE$())(this, min, $completion);
615
615
  tmp.cc_1 = Unit_instance;
616
616
  tmp.dc_1 = null;
617
617
  return tmp.ic();
618
618
  }
619
- l3a($completion) {
619
+ z3a($completion) {
620
620
  var tmp = new ($flushCOROUTINE$())(this, $completion);
621
621
  tmp.cc_1 = Unit_instance;
622
622
  tmp.dc_1 = null;
623
623
  return tmp.ic();
624
624
  }
625
- v39() {
626
- if (this.h38_1.a2r())
625
+ j3a() {
626
+ if (this.v38_1.o2r())
627
627
  return Unit_instance;
628
628
  // Inline function 'io.ktor.utils.io.locks.synchronized' call
629
- this.e38_1;
630
- var count = this.h38_1.i1().c2();
631
- this.c38_1.w2s(this.h38_1);
632
- this.d38_1 = this.d38_1 + count | 0;
629
+ this.s38_1;
630
+ var count = this.v38_1.i1().c2();
631
+ this.q38_1.k2t(this.v38_1);
632
+ this.r38_1 = this.r38_1 + count | 0;
633
633
  // Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
634
- var current = this.f38_1.kotlinx$atomicfu$value;
634
+ var current = this.t38_1.kotlinx$atomicfu$value;
635
635
  var tmp;
636
636
  if (current instanceof Read()) {
637
- tmp = this.f38_1.atomicfu$compareAndSet(current, Empty_instance);
637
+ tmp = this.t38_1.atomicfu$compareAndSet(current, Empty_instance);
638
638
  } else {
639
639
  tmp = false;
640
640
  }
641
641
  if (tmp) {
642
- current.v37();
642
+ current.j38();
643
643
  }
644
644
  }
645
645
  v5() {
646
- this.v39();
647
- if (!this.i38_1.atomicfu$compareAndSet(null, get_CLOSED()))
646
+ this.j3a();
647
+ if (!this.w38_1.atomicfu$compareAndSet(null, get_CLOSED()))
648
648
  return Unit_instance;
649
649
  closeSlot(this, null);
650
650
  }
651
- w3a($completion) {
651
+ k3b($completion) {
652
652
  var tmp = new ($flushAndCloseCOROUTINE$())(this, $completion);
653
653
  tmp.cc_1 = Unit_instance;
654
654
  tmp.dc_1 = null;
655
655
  return tmp.ic();
656
656
  }
657
- x3a(cause) {
658
- if (!(this.i38_1.kotlinx$atomicfu$value == null))
657
+ l3b(cause) {
658
+ if (!(this.w38_1.kotlinx$atomicfu$value == null))
659
659
  return Unit_instance;
660
660
  var closedToken = new (CloseToken())(cause);
661
- this.i38_1.atomicfu$compareAndSet(null, closedToken);
662
- var wrappedCause = closedToken.s3a();
661
+ this.w38_1.atomicfu$compareAndSet(null, closedToken);
662
+ var wrappedCause = closedToken.g3b();
663
663
  closeSlot(this, wrappedCause);
664
664
  }
665
665
  toString() {
666
666
  return 'ByteChannel[' + hashCode(this) + ']';
667
667
  }
668
668
  }
669
- protoOf($).v3a = awaitContent$default;
669
+ protoOf($).j3b = awaitContent$default;
670
670
  initMetadataForClass($, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel()], [1, 0]);
671
671
  ByteChannelClass = $;
672
672
  }
@@ -676,10 +676,10 @@ var ConcurrentIOExceptionClass;
676
676
  function ConcurrentIOException() {
677
677
  if (ConcurrentIOExceptionClass === VOID) {
678
678
  class $ extends IllegalStateException() {
679
- static j39(taskName, cause) {
679
+ static x39(taskName, cause) {
680
680
  cause = cause === VOID ? null : cause;
681
681
  var $this = this.ed('Concurrent ' + taskName + ' attempts', cause);
682
- captureStack($this, $this.i39_1);
682
+ captureStack($this, $this.w39_1);
683
683
  return $this;
684
684
  }
685
685
  }
@@ -11,7 +11,7 @@ function ByteReadChannel(content, offset, length) {
11
11
  length = length === VOID ? content.length : length;
12
12
  // Inline function 'kotlin.also' call
13
13
  var this_0 = new (Buffer())();
14
- this_0.n2s(content, offset, offset + length | 0);
14
+ this_0.b2t(content, offset, offset + length | 0);
15
15
  var source = this_0;
16
16
  return ByteReadChannel_0(source);
17
17
  }