@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
@@ -115,9 +115,9 @@ function ConverterRegistration() {
115
115
  if (ConverterRegistrationClass === VOID) {
116
116
  class $ {
117
117
  constructor(converter, contentTypeToSend, contentTypeMatcher) {
118
- this.r67_1 = converter;
119
- this.s67_1 = contentTypeToSend;
120
- this.t67_1 = contentTypeMatcher;
118
+ this.f68_1 = converter;
119
+ this.g68_1 = contentTypeToSend;
120
+ this.h68_1 = contentTypeMatcher;
121
121
  }
122
122
  }
123
123
  initMetadataForClass($, 'ConverterRegistration');
@@ -133,10 +133,10 @@ function ContentNegotiationConfig$defaultMatcher$1() {
133
133
  if (ContentNegotiationConfig$defaultMatcher$1Class === VOID) {
134
134
  class $ {
135
135
  constructor($pattern) {
136
- this.u67_1 = $pattern;
136
+ this.i68_1 = $pattern;
137
137
  }
138
- v67(contentType) {
139
- return contentType.n40(this.u67_1);
138
+ j68(contentType) {
139
+ return contentType.b41(this.i68_1);
140
140
  }
141
141
  }
142
142
  initMetadataForClass($);
@@ -149,24 +149,24 @@ function ContentNegotiationConfig() {
149
149
  if (ContentNegotiationConfigClass === VOID) {
150
150
  class $ {
151
151
  constructor() {
152
- this.w67_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
152
+ this.k68_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
153
153
  var tmp = this;
154
154
  // Inline function 'kotlin.collections.mutableListOf' call
155
- tmp.x67_1 = ArrayList().l1();
156
- this.y67_1 = null;
155
+ tmp.l68_1 = ArrayList().l1();
156
+ this.m68_1 = null;
157
157
  }
158
- n4v(contentType, converter, configuration) {
159
- var matcher = contentType.n40(Application_getInstance().u3y_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
160
- this.z67(contentType, converter, matcher, configuration);
158
+ b4w(contentType, converter, configuration) {
159
+ var matcher = contentType.b41(Application_getInstance().i3z_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
160
+ this.n68(contentType, converter, matcher, configuration);
161
161
  }
162
- z67(contentTypeToSend, converter, contentTypeMatcher, configuration) {
162
+ n68(contentTypeToSend, converter, contentTypeMatcher, configuration) {
163
163
  // Inline function 'kotlin.apply' call
164
164
  configuration(converter);
165
165
  var registration = new (ConverterRegistration())(converter, contentTypeToSend, contentTypeMatcher);
166
- this.x67_1.m(registration);
166
+ this.l68_1.m(registration);
167
167
  }
168
168
  }
169
- protoOf($).o4v = register$default;
169
+ protoOf($).c4w = register$default;
170
170
  initMetadataForClass($, 'ContentNegotiationConfig', ContentNegotiationConfig, VOID, [Configuration()]);
171
171
  ContentNegotiationConfigClass = $;
172
172
  }
@@ -176,9 +176,9 @@ var ContentConverterExceptionClass;
176
176
  function ContentConverterException() {
177
177
  if (ContentConverterExceptionClass === VOID) {
178
178
  class $ extends Exception() {
179
- static c68(message) {
179
+ static q68(message) {
180
180
  var $this = this.g5(message);
181
- captureStack($this, $this.b68_1);
181
+ captureStack($this, $this.p68_1);
182
182
  return $this;
183
183
  }
184
184
  }
@@ -196,10 +196,10 @@ function ContentNegotiationConfig$_init_$ref_1ne3ob() {
196
196
  }
197
197
  function ContentNegotiation$lambda($this$createClientPlugin) {
198
198
  _init_properties_ContentNegotiation_kt__o183go();
199
- var registrations = $this$createClientPlugin.u59_1.x67_1;
200
- var ignoredTypes = $this$createClientPlugin.u59_1.w67_1;
201
- $this$createClientPlugin.c5t(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
202
- $this$createClientPlugin.p5k(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
199
+ var registrations = $this$createClientPlugin.i5a_1.l68_1;
200
+ var ignoredTypes = $this$createClientPlugin.i5a_1.k68_1;
201
+ $this$createClientPlugin.q5t(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
202
+ $this$createClientPlugin.d5l(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
203
203
  return Unit_instance;
204
204
  }
205
205
  function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
@@ -209,7 +209,7 @@ function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredT
209
209
  return tmp.ic();
210
210
  }
211
211
  function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
212
- charset = charset === VOID ? Charsets_getInstance().y3p_1 : charset;
212
+ charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
213
213
  var tmp = new ($invoke$convertResponseCOROUTINE$())(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
214
214
  tmp.cc_1 = Unit_instance;
215
215
  tmp.dc_1 = null;
@@ -222,22 +222,22 @@ function ContentNegotiation$lambda$slambda() {
222
222
  constructor($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation, $box) {
223
223
  if ($box === VOID)
224
224
  $box = {};
225
- $box.a6a_1 = $registrations;
226
- $box.b6a_1 = $this_createClientPlugin;
227
- $box.c6a_1 = $ignoredTypes;
225
+ $box.o6a_1 = $registrations;
226
+ $box.p6a_1 = $this_createClientPlugin;
227
+ $box.q6a_1 = $ignoredTypes;
228
228
  super(resultContinuation, $box);
229
229
  }
230
- h6a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
231
- var tmp = this.i6a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
230
+ v6a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
231
+ var tmp = this.w6a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
232
232
  tmp.cc_1 = Unit_instance;
233
233
  tmp.dc_1 = null;
234
234
  return tmp.ic();
235
235
  }
236
- u5l(p1, p2, p3, p4, $completion) {
236
+ i5m(p1, p2, p3, p4, $completion) {
237
237
  var tmp = p1 instanceof TransformRequestBodyContext() ? p1 : THROW_CCE();
238
238
  var tmp_0 = p2 instanceof HttpRequestBuilder() ? p2 : THROW_CCE();
239
239
  var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
240
- return this.h6a(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo()) ? p4 : THROW_CCE(), $completion);
240
+ return this.v6a(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo()) ? p4 : THROW_CCE(), $completion);
241
241
  }
242
242
  ic() {
243
243
  var suspendResult = this.cc_1;
@@ -248,7 +248,7 @@ function ContentNegotiation$lambda$slambda() {
248
248
  case 0:
249
249
  this.bc_1 = 2;
250
250
  this.ac_1 = 1;
251
- suspendResult = invoke$convertRequest(this.a6a_1, this.b6a_1, this.c6a_1, this.e6a_1, this.f6a_1, this);
251
+ suspendResult = invoke$convertRequest(this.o6a_1, this.p6a_1, this.q6a_1, this.s6a_1, this.t6a_1, this);
252
252
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
253
253
  return suspendResult;
254
254
  }
@@ -270,12 +270,12 @@ function ContentNegotiation$lambda$slambda() {
270
270
  }
271
271
  while (true);
272
272
  }
273
- i6a($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
274
- var i = new (ContentNegotiation$lambda$slambda())(this.a6a_1, this.b6a_1, this.c6a_1, completion);
275
- i.d6a_1 = $this$transformRequestBody;
276
- i.e6a_1 = request;
277
- i.f6a_1 = body;
278
- i.g6a_1 = _unused_var__etf5q3;
273
+ w6a($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
274
+ var i = new (ContentNegotiation$lambda$slambda())(this.o6a_1, this.p6a_1, this.q6a_1, completion);
275
+ i.r6a_1 = $this$transformRequestBody;
276
+ i.s6a_1 = request;
277
+ i.t6a_1 = body;
278
+ i.u6a_1 = _unused_var__etf5q3;
279
279
  return i;
280
280
  }
281
281
  }
@@ -287,7 +287,7 @@ function ContentNegotiation$lambda$slambda() {
287
287
  function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
288
288
  var i = new (ContentNegotiation$lambda$slambda())($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
289
289
  var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
290
- return i.h6a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
290
+ return i.v6a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
291
291
  };
292
292
  l.$arity = 4;
293
293
  return l;
@@ -299,22 +299,22 @@ function ContentNegotiation$lambda$slambda_1() {
299
299
  constructor($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation, $box) {
300
300
  if ($box === VOID)
301
301
  $box = {};
302
- $box.r6a_1 = $ignoredTypes;
303
- $box.s6a_1 = $registrations;
304
- $box.t6a_1 = $this_createClientPlugin;
302
+ $box.f6b_1 = $ignoredTypes;
303
+ $box.g6b_1 = $registrations;
304
+ $box.h6b_1 = $this_createClientPlugin;
305
305
  super(resultContinuation, $box);
306
306
  }
307
- s5l($this$transformResponseBody, response, body, info, $completion) {
308
- var tmp = this.t5l($this$transformResponseBody, response, body, info, $completion);
307
+ g5m($this$transformResponseBody, response, body, info, $completion) {
308
+ var tmp = this.h5m($this$transformResponseBody, response, body, info, $completion);
309
309
  tmp.cc_1 = Unit_instance;
310
310
  tmp.dc_1 = null;
311
311
  return tmp.ic();
312
312
  }
313
- u5l(p1, p2, p3, p4, $completion) {
313
+ i5m(p1, p2, p3, p4, $completion) {
314
314
  var tmp = p1 instanceof TransformResponseBodyContext() ? p1 : THROW_CCE();
315
315
  var tmp_0 = p2 instanceof HttpResponse() ? p2 : THROW_CCE();
316
316
  var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel()) : false) ? p3 : THROW_CCE();
317
- return this.s5l(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo() ? p4 : THROW_CCE(), $completion);
317
+ return this.g5m(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo() ? p4 : THROW_CCE(), $completion);
318
318
  }
319
319
  ic() {
320
320
  var suspendResult = this.cc_1;
@@ -325,7 +325,7 @@ function ContentNegotiation$lambda$slambda_1() {
325
325
  case 0:
326
326
  this.bc_1 = 2;
327
327
  var tmp_0 = this;
328
- var tmp0_elvis_lhs = contentType(this.v6a_1);
328
+ var tmp0_elvis_lhs = contentType(this.j6b_1);
329
329
  var tmp_1;
330
330
  if (tmp0_elvis_lhs == null) {
331
331
  return null;
@@ -333,10 +333,10 @@ function ContentNegotiation$lambda$slambda_1() {
333
333
  tmp_1 = tmp0_elvis_lhs;
334
334
  }
335
335
 
336
- tmp_0.y6a_1 = tmp_1;
337
- this.z6a_1 = suitableCharset(get_request(this.v6a_1).l45());
336
+ tmp_0.m6b_1 = tmp_1;
337
+ this.n6b_1 = suitableCharset(get_request(this.j6b_1).z45());
338
338
  this.ac_1 = 1;
339
- suspendResult = invoke$convertResponse(this.r6a_1, this.s6a_1, this.t6a_1, get_request(this.v6a_1).z51(), this.x6a_1, this.w6a_1, this.y6a_1, this.z6a_1, this);
339
+ suspendResult = invoke$convertResponse(this.f6b_1, this.g6b_1, this.h6b_1, get_request(this.j6b_1).n52(), this.l6b_1, this.k6b_1, this.m6b_1, this.n6b_1, this);
340
340
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
341
341
  return suspendResult;
342
342
  }
@@ -358,12 +358,12 @@ function ContentNegotiation$lambda$slambda_1() {
358
358
  }
359
359
  while (true);
360
360
  }
361
- t5l($this$transformResponseBody, response, body, info, completion) {
362
- var i = new (ContentNegotiation$lambda$slambda_1())(this.r6a_1, this.s6a_1, this.t6a_1, completion);
363
- i.u6a_1 = $this$transformResponseBody;
364
- i.v6a_1 = response;
365
- i.w6a_1 = body;
366
- i.x6a_1 = info;
361
+ h5m($this$transformResponseBody, response, body, info, completion) {
362
+ var i = new (ContentNegotiation$lambda$slambda_1())(this.f6b_1, this.g6b_1, this.h6b_1, completion);
363
+ i.i6b_1 = $this$transformResponseBody;
364
+ i.j6b_1 = response;
365
+ i.k6b_1 = body;
366
+ i.l6b_1 = info;
367
367
  return i;
368
368
  }
369
369
  }
@@ -375,14 +375,14 @@ function ContentNegotiation$lambda$slambda_1() {
375
375
  function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
376
376
  var i = new (ContentNegotiation$lambda$slambda_1())($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
377
377
  var l = function ($this$transformResponseBody, response, body, info, $completion) {
378
- return i.s5l($this$transformResponseBody, response, body, info, $completion);
378
+ return i.g5m($this$transformResponseBody, response, body, info, $completion);
379
379
  };
380
380
  l.$arity = 4;
381
381
  return l;
382
382
  }
383
383
  function ContentNegotiation$lambda$convertRequest$lambda(it) {
384
384
  _init_properties_ContentNegotiation_kt__o183go();
385
- return toString(it.r67_1);
385
+ return toString(it.f68_1);
386
386
  }
387
387
  var $invoke$convertRequestCOROUTINE$Class;
388
388
  function $invoke$convertRequestCOROUTINE$() {
@@ -390,11 +390,11 @@ function $invoke$convertRequestCOROUTINE$() {
390
390
  class $ extends CoroutineImpl() {
391
391
  constructor(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
392
392
  super(resultContinuation);
393
- this.l68_1 = registrations;
394
- this.m68_1 = $this_createClientPlugin;
395
- this.n68_1 = ignoredTypes;
396
- this.o68_1 = request;
397
- this.p68_1 = body;
393
+ this.z68_1 = registrations;
394
+ this.a69_1 = $this_createClientPlugin;
395
+ this.b69_1 = ignoredTypes;
396
+ this.c69_1 = request;
397
+ this.d69_1 = body;
398
398
  }
399
399
  ic() {
400
400
  var suspendResult = this.cc_1;
@@ -406,9 +406,9 @@ function $invoke$convertRequestCOROUTINE$() {
406
406
  this.bc_1 = 7;
407
407
  var tmp_0 = this;
408
408
  var tmp_1;
409
- if (this.o68_1.e50_1.f3r(get_ExcludedContentTypes())) {
410
- var excluded = this.o68_1.e50_1.d3r(get_ExcludedContentTypes());
411
- var tmp0 = this.l68_1;
409
+ if (this.c69_1.s50_1.t3r(get_ExcludedContentTypes())) {
410
+ var excluded = this.c69_1.s50_1.r3r(get_ExcludedContentTypes());
411
+ var tmp0 = this.z68_1;
412
412
  var destination = ArrayList().l1();
413
413
  var _iterator__ex2g4s = tmp0.d1();
414
414
  while (_iterator__ex2g4s.e1()) {
@@ -428,7 +428,7 @@ function $invoke$convertRequestCOROUTINE$() {
428
428
  var _iterator__ex2g4s_0 = excluded.d1();
429
429
  while (_iterator__ex2g4s_0.e1()) {
430
430
  var element_0 = _iterator__ex2g4s_0.f1();
431
- if (element.s67_1.n40(element_0)) {
431
+ if (element.g68_1.b41(element_0)) {
432
432
  tmp$ret$0 = false;
433
433
  break l$ret$1;
434
434
  }
@@ -442,17 +442,17 @@ function $invoke$convertRequestCOROUTINE$() {
442
442
  }
443
443
  tmp_1 = destination;
444
444
  } else {
445
- tmp_1 = this.l68_1;
445
+ tmp_1 = this.z68_1;
446
446
  }
447
447
 
448
- tmp_0.q68_1 = tmp_1;
448
+ tmp_0.e69_1 = tmp_1;
449
449
  var tmp_3 = this;
450
- var tmp0_elvis_lhs = this.o68_1.b50_1.s3s(HttpHeaders_getInstance().s40_1);
451
- tmp_3.r68_1 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
452
- var _iterator__ex2g4s_1 = this.q68_1.d1();
450
+ var tmp0_elvis_lhs = this.c69_1.p50_1.g3t(HttpHeaders_getInstance().g41_1);
451
+ tmp_3.f69_1 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
452
+ var _iterator__ex2g4s_1 = this.e69_1.d1();
453
453
  while (_iterator__ex2g4s_1.e1()) {
454
454
  var element_1 = _iterator__ex2g4s_1.f1();
455
- var tmp0_0 = this.r68_1;
455
+ var tmp0_0 = this.f69_1;
456
456
  var tmp$ret$2;
457
457
  l$ret$3: do {
458
458
  var tmp_4;
@@ -468,7 +468,7 @@ function $invoke$convertRequestCOROUTINE$() {
468
468
  var _iterator__ex2g4s_2 = tmp0_0.d1();
469
469
  while (_iterator__ex2g4s_2.e1()) {
470
470
  var element_2 = _iterator__ex2g4s_2.f1();
471
- if (Companion_getInstance().ar(element_2).n40(element_1.s67_1)) {
471
+ if (Companion_getInstance().ar(element_2).b41(element_1.g68_1)) {
472
472
  tmp$ret$2 = false;
473
473
  break l$ret$3;
474
474
  }
@@ -477,19 +477,19 @@ function $invoke$convertRequestCOROUTINE$() {
477
477
  }
478
478
  while (false);
479
479
  if (tmp$ret$2) {
480
- var qValue = this.m68_1.u59_1.y67_1;
481
- var contentTypeToSend = qValue == null ? element_1.s67_1 : element_1.s67_1.k40('q', qValue.toString());
482
- get_LOGGER().s3x('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.o68_1.z4z_1.toString());
483
- accept(this.o68_1, contentTypeToSend);
480
+ var qValue = this.a69_1.i5a_1.m68_1;
481
+ var contentTypeToSend = qValue == null ? element_1.g68_1 : element_1.g68_1.y40('q', qValue.toString());
482
+ get_LOGGER().g3y('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.c69_1.n50_1.toString());
483
+ accept(this.c69_1, contentTypeToSend);
484
484
  }
485
485
  }
486
486
 
487
487
  var tmp_5;
488
- var tmp_6 = this.p68_1;
488
+ var tmp_6 = this.d69_1;
489
489
  if (tmp_6 instanceof OutgoingContent()) {
490
490
  tmp_5 = true;
491
491
  } else {
492
- var tmp0_1 = this.n68_1;
492
+ var tmp0_1 = this.b69_1;
493
493
  var tmp$ret$4;
494
494
  l$ret$5: do {
495
495
  var tmp_7;
@@ -505,7 +505,7 @@ function $invoke$convertRequestCOROUTINE$() {
505
505
  var _iterator__ex2g4s_3 = tmp0_1.d1();
506
506
  while (_iterator__ex2g4s_3.e1()) {
507
507
  var element_3 = _iterator__ex2g4s_3.f1();
508
- if (element_3.bg(this.p68_1)) {
508
+ if (element_3.bg(this.d69_1)) {
509
509
  tmp$ret$4 = true;
510
510
  break l$ret$5;
511
511
  }
@@ -517,36 +517,36 @@ function $invoke$convertRequestCOROUTINE$() {
517
517
  }
518
518
 
519
519
  if (tmp_5) {
520
- get_LOGGER().s3x('Body type ' + toString(getKClassFromExpression(this.p68_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.o68_1.z4z_1.toString() + '.'));
520
+ get_LOGGER().g3y('Body type ' + toString(getKClassFromExpression(this.d69_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.c69_1.n50_1.toString() + '.'));
521
521
  return null;
522
522
  }
523
523
 
524
524
  var tmp_8 = this;
525
- var tmp0_elvis_lhs_0 = contentType_0(this.o68_1);
525
+ var tmp0_elvis_lhs_0 = contentType_0(this.c69_1);
526
526
  var tmp_9;
527
527
  if (tmp0_elvis_lhs_0 == null) {
528
- this.m68_1;
529
- get_LOGGER().s3x("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.o68_1.z4z_1.toString() + '.');
528
+ this.a69_1;
529
+ get_LOGGER().g3y("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.c69_1.n50_1.toString() + '.');
530
530
  return null;
531
531
  } else {
532
532
  tmp_9 = tmp0_elvis_lhs_0;
533
533
  }
534
534
 
535
- tmp_8.s68_1 = tmp_9;
536
- var tmp_10 = this.p68_1;
535
+ tmp_8.g69_1 = tmp_9;
536
+ var tmp_10 = this.d69_1;
537
537
  if (tmp_10 instanceof Unit()) {
538
- get_LOGGER().s3x('Sending empty body for ' + this.o68_1.z4z_1.toString());
539
- this.o68_1.b50_1.f3t(HttpHeaders_getInstance().k41_1);
538
+ get_LOGGER().g3y('Sending empty body for ' + this.c69_1.n50_1.toString());
539
+ this.c69_1.p50_1.t3t(HttpHeaders_getInstance().y41_1);
540
540
  return EmptyContent_getInstance();
541
541
  }
542
542
 
543
543
  var tmp_11 = this;
544
- var tmp0_2 = this.l68_1;
544
+ var tmp0_2 = this.z68_1;
545
545
  var destination_0 = ArrayList().l1();
546
546
  var _iterator__ex2g4s_4 = tmp0_2.d1();
547
547
  while (_iterator__ex2g4s_4.e1()) {
548
548
  var element_4 = _iterator__ex2g4s_4.f1();
549
- if (element_4.t67_1.v67(this.s68_1)) {
549
+ if (element_4.h68_1.j68(this.g69_1)) {
550
550
  destination_0.m(element_4);
551
551
  }
552
552
  }
@@ -561,44 +561,44 @@ function $invoke$convertRequestCOROUTINE$() {
561
561
  var tmp1_elvis_lhs = tmp_12;
562
562
  var tmp_13;
563
563
  if (tmp1_elvis_lhs == null) {
564
- this.m68_1;
565
- get_LOGGER().s3x('None of the registered converters match request Content-Type=' + this.s68_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.o68_1.z4z_1.toString() + '.'));
564
+ this.a69_1;
565
+ get_LOGGER().g3y('None of the registered converters match request Content-Type=' + this.g69_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.c69_1.n50_1.toString() + '.'));
566
566
  return null;
567
567
  } else {
568
568
  tmp_13 = tmp1_elvis_lhs;
569
569
  }
570
570
 
571
- tmp_11.t68_1 = tmp_13;
572
- if (this.o68_1.z5u() == null) {
573
- get_LOGGER().s3x('Request has unknown body type. Skipping ContentNegotiation for ' + this.o68_1.z4z_1.toString() + '.');
571
+ tmp_11.h69_1 = tmp_13;
572
+ if (this.c69_1.n5v() == null) {
573
+ get_LOGGER().g3y('Request has unknown body type. Skipping ContentNegotiation for ' + this.c69_1.n50_1.toString() + '.');
574
574
  return null;
575
575
  }
576
576
 
577
- this.o68_1.b50_1.f3t(HttpHeaders_getInstance().k41_1);
577
+ this.c69_1.p50_1.t3t(HttpHeaders_getInstance().y41_1);
578
578
  var tmp_14 = this;
579
- tmp_14.u68_1 = this.t68_1;
579
+ tmp_14.i69_1 = this.h69_1;
580
580
  this.ac_1 = 1;
581
581
  continue $sm;
582
582
  case 1:
583
- this.w68_1 = this.u68_1;
584
- this.x68_1 = this.w68_1.d1();
583
+ this.k69_1 = this.i69_1;
584
+ this.l69_1 = this.k69_1.d1();
585
585
  this.ac_1 = 2;
586
586
  continue $sm;
587
587
  case 2:
588
- if (!this.x68_1.e1()) {
588
+ if (!this.l69_1.e1()) {
589
589
  this.ac_1 = 5;
590
590
  continue $sm;
591
591
  }
592
592
 
593
- this.y68_1 = this.x68_1.f1();
593
+ this.m69_1 = this.l69_1.f1();
594
594
  var tmp_15 = this;
595
- tmp_15.z68_1 = this.y68_1;
596
- this.a69_1 = this.z68_1;
595
+ tmp_15.n69_1 = this.m69_1;
596
+ this.o69_1 = this.n69_1;
597
597
  this.ac_1 = 3;
598
- var tmp0_elvis_lhs_1 = charset(this.s68_1);
599
- var tmp_16 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().y3p_1 : tmp0_elvis_lhs_1;
600
- var tmp_17 = ensureNotNull(this.o68_1.z5u());
601
- var this_0 = this.p68_1;
598
+ var tmp0_elvis_lhs_1 = charset(this.g69_1);
599
+ var tmp_16 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().m3q_1 : tmp0_elvis_lhs_1;
600
+ var tmp_17 = ensureNotNull(this.c69_1.n5v());
601
+ var this_0 = this.d69_1;
602
602
  var tmp_18;
603
603
  if (!equals(this_0, NullBody_instance)) {
604
604
  tmp_18 = this_0;
@@ -606,7 +606,7 @@ function $invoke$convertRequestCOROUTINE$() {
606
606
  tmp_18 = null;
607
607
  }
608
608
 
609
- suspendResult = this.a69_1.r67_1.a6b(this.s68_1, tmp_16, tmp_17, tmp_18, this);
609
+ suspendResult = this.o69_1.f68_1.o6b(this.g69_1, tmp_16, tmp_17, tmp_18, this);
610
610
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
611
611
  return suspendResult;
612
612
  }
@@ -615,12 +615,12 @@ function $invoke$convertRequestCOROUTINE$() {
615
615
  case 3:
616
616
  var result = suspendResult;
617
617
  if (!(result == null)) {
618
- get_LOGGER().s3x('Converted request body using ' + toString(this.a69_1.r67_1) + ' for ' + this.o68_1.z4z_1.toString());
618
+ get_LOGGER().g3y('Converted request body using ' + toString(this.o69_1.f68_1) + ' for ' + this.c69_1.n50_1.toString());
619
619
  }
620
620
 
621
621
  var result_0 = result;
622
622
  if (!(result_0 == null)) {
623
- this.v68_1 = result_0;
623
+ this.j69_1 = result_0;
624
624
  this.ac_1 = 6;
625
625
  continue $sm;
626
626
  } else {
@@ -632,7 +632,7 @@ function $invoke$convertRequestCOROUTINE$() {
632
632
  this.ac_1 = 2;
633
633
  continue $sm;
634
634
  case 5:
635
- this.v68_1 = null;
635
+ this.j69_1 = null;
636
636
  if (false) {
637
637
  this.ac_1 = 1;
638
638
  continue $sm;
@@ -641,11 +641,11 @@ function $invoke$convertRequestCOROUTINE$() {
641
641
  this.ac_1 = 6;
642
642
  continue $sm;
643
643
  case 6:
644
- var tmp2_elvis_lhs = this.v68_1;
644
+ var tmp2_elvis_lhs = this.j69_1;
645
645
  var tmp_19;
646
646
  if (tmp2_elvis_lhs == null) {
647
- var tmp_20 = "Can't convert " + toString(this.p68_1) + ' with contentType ' + this.s68_1.toString() + ' using converters ';
648
- throw ContentConverterException().c68(tmp_20 + joinToString(this.t68_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
647
+ var tmp_20 = "Can't convert " + toString(this.d69_1) + ' with contentType ' + this.g69_1.toString() + ' using converters ';
648
+ throw ContentConverterException().q68(tmp_20 + joinToString(this.h69_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
649
649
  } else {
650
650
  tmp_19 = tmp2_elvis_lhs;
651
651
  }
@@ -678,14 +678,14 @@ function $invoke$convertResponseCOROUTINE$() {
678
678
  class $ extends CoroutineImpl() {
679
679
  constructor(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
680
680
  super(resultContinuation);
681
- this.j69_1 = ignoredTypes;
682
- this.k69_1 = registrations;
683
- this.l69_1 = $this_createClientPlugin;
684
- this.m69_1 = requestUrl;
685
- this.n69_1 = info;
686
- this.o69_1 = body;
687
- this.p69_1 = responseContentType;
688
- this.q69_1 = charset;
681
+ this.x69_1 = ignoredTypes;
682
+ this.y69_1 = registrations;
683
+ this.z69_1 = $this_createClientPlugin;
684
+ this.a6a_1 = requestUrl;
685
+ this.b6a_1 = info;
686
+ this.c6a_1 = body;
687
+ this.d6a_1 = responseContentType;
688
+ this.e6a_1 = charset;
689
689
  }
690
690
  ic() {
691
691
  var suspendResult = this.cc_1;
@@ -695,24 +695,24 @@ function $invoke$convertResponseCOROUTINE$() {
695
695
  switch (tmp) {
696
696
  case 0:
697
697
  this.bc_1 = 2;
698
- var tmp_0 = this.o69_1;
698
+ var tmp_0 = this.c6a_1;
699
699
  if (!isInterface(tmp_0, ByteReadChannel())) {
700
- get_LOGGER().s3x('Response body is already transformed. Skipping ContentNegotiation for ' + this.m69_1.toString() + '.');
700
+ get_LOGGER().g3y('Response body is already transformed. Skipping ContentNegotiation for ' + this.a6a_1.toString() + '.');
701
701
  return null;
702
702
  }
703
703
 
704
- if (this.j69_1.q2(this.n69_1.z3w_1)) {
705
- get_LOGGER().s3x('Response body type ' + toString(this.n69_1.z3w_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.m69_1.toString() + '.'));
704
+ if (this.x69_1.q2(this.b6a_1.n3x_1)) {
705
+ get_LOGGER().g3y('Response body type ' + toString(this.b6a_1.n3x_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.a6a_1.toString() + '.'));
706
706
  return null;
707
707
  }
708
708
 
709
709
  var tmp_1 = this;
710
- var tmp0 = this.k69_1;
710
+ var tmp0 = this.y69_1;
711
711
  var destination = ArrayList().l1();
712
712
  var _iterator__ex2g4s = tmp0.d1();
713
713
  while (_iterator__ex2g4s.e1()) {
714
714
  var element = _iterator__ex2g4s.f1();
715
- if (element.t67_1.v67(this.p69_1)) {
715
+ if (element.h68_1.j68(this.d6a_1)) {
716
716
  destination.m(element);
717
717
  }
718
718
  }
@@ -721,7 +721,7 @@ function $invoke$convertResponseCOROUTINE$() {
721
721
  var _iterator__ex2g4s_0 = destination.d1();
722
722
  while (_iterator__ex2g4s_0.e1()) {
723
723
  var item = _iterator__ex2g4s_0.f1();
724
- destination_0.m(item.r67_1);
724
+ destination_0.m(item.f68_1);
725
725
  }
726
726
 
727
727
  var tmp_2;
@@ -734,16 +734,16 @@ function $invoke$convertResponseCOROUTINE$() {
734
734
  var tmp0_elvis_lhs = tmp_2;
735
735
  var tmp_3;
736
736
  if (tmp0_elvis_lhs == null) {
737
- this.l69_1;
738
- get_LOGGER().s3x('None of the registered converters match response with Content-Type=' + this.p69_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.m69_1.toString() + '.'));
737
+ this.z69_1;
738
+ get_LOGGER().g3y('None of the registered converters match response with Content-Type=' + this.d6a_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.a6a_1.toString() + '.'));
739
739
  return null;
740
740
  } else {
741
741
  tmp_3 = tmp0_elvis_lhs;
742
742
  }
743
743
 
744
- tmp_1.r69_1 = tmp_3;
744
+ tmp_1.f6a_1 = tmp_3;
745
745
  this.ac_1 = 1;
746
- suspendResult = deserialize(this.r69_1, this.o69_1, this.n69_1, this.q69_1, this);
746
+ suspendResult = deserialize(this.f6a_1, this.c6a_1, this.b6a_1, this.e6a_1, this);
747
747
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
748
748
  return suspendResult;
749
749
  }
@@ -752,7 +752,7 @@ function $invoke$convertResponseCOROUTINE$() {
752
752
  case 1:
753
753
  var result = suspendResult;
754
754
  if (!isInterface(result, ByteReadChannel())) {
755
- get_LOGGER().s3x('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.m69_1.toString() + '.');
755
+ get_LOGGER().g3y('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.a6a_1.toString() + '.');
756
756
  }
757
757
 
758
758
  return result;
@@ -10,12 +10,12 @@ var JsonContentTypeMatcherClass;
10
10
  function JsonContentTypeMatcher() {
11
11
  if (JsonContentTypeMatcherClass === VOID) {
12
12
  class $ {
13
- v67(contentType) {
14
- if (contentType.n40(Application_getInstance().u3y_1)) {
13
+ j68(contentType) {
14
+ if (contentType.b41(Application_getInstance().i3z_1)) {
15
15
  return true;
16
16
  }
17
- var value = contentType.m40().toString();
18
- return Application_getInstance().o3z(value) && endsWith(value, '+json', true);
17
+ var value = contentType.a41().toString();
18
+ return Application_getInstance().c40(value) && endsWith(value, '+json', true);
19
19
  }
20
20
  }
21
21
  initMetadataForObject($, 'JsonContentTypeMatcher');