@attocash/commons-js 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) 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-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
  40. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
  41. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
  42. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
  43. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
  44. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
  45. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
  46. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
  47. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
  48. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
  49. package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
  50. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
  51. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
  52. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
  53. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
  54. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
  55. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
  56. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
  57. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
  58. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
  59. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
  60. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
  61. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
  62. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
  63. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
  64. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
  65. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
  66. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  67. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
  68. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
  69. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
  70. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  71. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
  72. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
  73. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  74. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  75. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
  76. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
  77. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
  78. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  79. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  80. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  81. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  82. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
  83. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  84. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
  85. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  86. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
  87. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
  88. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  89. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  90. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  91. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
  92. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  93. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
  94. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
  95. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
  96. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
  97. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
  98. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  99. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
  100. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
  101. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
  102. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
  103. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
  104. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  105. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
  106. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
  107. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
  108. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
  109. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
  110. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
  111. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
  112. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
  113. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
  114. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
  115. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
  116. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
  117. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  118. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
  119. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
  120. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  121. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
  122. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
  123. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
  124. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
  125. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
  126. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
  127. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
  128. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  129. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  130. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
  131. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  132. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
  133. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
  134. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
  135. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
  136. package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
  137. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
  138. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
  139. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
  140. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
  141. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  142. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
  143. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
  144. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
  145. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
  146. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
  147. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
  148. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  149. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
  150. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
  151. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
  152. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
  153. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
  154. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
  155. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  156. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
  157. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
  158. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  159. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  160. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
  161. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
  162. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
  163. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
  164. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
  165. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  166. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  167. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
  168. package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
  169. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
  170. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
  171. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
  172. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  173. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
  174. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
  175. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
  176. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  177. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
  178. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
  179. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
  180. package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
  181. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
  182. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  183. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  184. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
  185. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
  186. package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
  187. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
  188. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  189. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  190. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  191. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
  192. package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
  193. package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
  194. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
  195. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
  196. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
  197. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
  198. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
  199. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
  200. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
  201. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
  202. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  203. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
  204. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  205. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  206. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
  207. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
  208. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  209. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
  210. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
  211. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  212. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
  213. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
  214. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
  215. package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
  216. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  217. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
  218. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  219. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  220. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  221. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  222. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
  223. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  224. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  225. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  226. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  227. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
  228. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
  229. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  230. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  231. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  232. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
  233. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
  234. package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
  235. package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
  236. package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
  237. package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +104 -104
  238. package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
  239. package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
  240. package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
  241. package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
  242. package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
  243. package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
  244. package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
  245. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
  246. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
  247. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
  248. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
  249. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  250. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
  251. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
  252. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
  253. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
  254. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  255. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
  256. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
  257. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  258. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
  259. package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
  260. package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
  261. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  262. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
  263. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  264. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
  265. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  266. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  267. package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
  268. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
  269. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
  270. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
  271. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  272. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  273. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  274. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
  275. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  276. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
  277. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
  278. package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
  279. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
  280. package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
  281. package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
  282. package/package.json +1 -1
@@ -26,12 +26,12 @@ import { isEmpty39cntv762vey6 as isEmpty } from './Segment.mjs';
26
26
  //region block: pre-declaration
27
27
  //endregion
28
28
  function readString(_this__u8e3s4) {
29
- _this__u8e3s4.c2r(new (Long())(-1, 2147483647));
30
- return commonReadUtf8(_this__u8e3s4.z2q(), _this__u8e3s4.z2q().i1());
29
+ _this__u8e3s4.q2r(new (Long())(-1, 2147483647));
30
+ return commonReadUtf8(_this__u8e3s4.n2r(), _this__u8e3s4.n2r().i1());
31
31
  }
32
32
  function readString_0(_this__u8e3s4, byteCount) {
33
- _this__u8e3s4.b2r(byteCount);
34
- return commonReadUtf8(_this__u8e3s4.z2q(), byteCount);
33
+ _this__u8e3s4.p2r(byteCount);
34
+ return commonReadUtf8(_this__u8e3s4.n2r(), byteCount);
35
35
  }
36
36
  function readString_1(_this__u8e3s4) {
37
37
  return commonReadUtf8(_this__u8e3s4, _this__u8e3s4.i1());
@@ -40,20 +40,20 @@ function commonReadUtf8(_this__u8e3s4, byteCount) {
40
40
  if (byteCount.equals(new (Long())(0, 0)))
41
41
  return '';
42
42
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
43
- var curr = _this__u8e3s4.s2q_1;
43
+ var curr = _this__u8e3s4.g2r_1;
44
44
  while (!(curr == null)) {
45
45
  get_SegmentReadContextImpl();
46
46
  if (toLong(curr.i1()).a2(byteCount) >= 0) {
47
47
  var result = '';
48
48
  // Inline function 'kotlinx.io.unsafe.withData' call
49
- var tmp0 = curr.z2t(true);
50
- var tmp2 = curr.f2r_1;
51
- var tmp0_0 = curr.g2r_1;
49
+ var tmp0 = curr.n2u(true);
50
+ var tmp2 = curr.t2r_1;
51
+ var tmp0_0 = curr.u2r_1;
52
52
  // Inline function 'kotlin.math.min' call
53
53
  var b = tmp2 + byteCount.c2() | 0;
54
54
  var tmp$ret$0 = Math.min(tmp0_0, b);
55
55
  result = commonToUtf8String(tmp0, tmp2, tmp$ret$0);
56
- _this__u8e3s4.b2s(byteCount);
56
+ _this__u8e3s4.p2s(byteCount);
57
57
  return result;
58
58
  }
59
59
  return commonToUtf8String(readByteArray(_this__u8e3s4, byteCount.c2()));
@@ -70,7 +70,7 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
70
70
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
71
71
  // Inline function 'kotlinx.io.writeToInternalBuffer' call
72
72
  // Inline function 'kotlinx.io.commonWriteUtf8' call
73
- var this_0 = _this__u8e3s4.z2q();
73
+ var this_0 = _this__u8e3s4.n2r();
74
74
  var i = startIndex;
75
75
  while (i < endIndex) {
76
76
  var p0 = i;
@@ -80,15 +80,15 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
80
80
  if (c < 128) {
81
81
  $l$block_0: {
82
82
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
83
- var tail = this_0.j2s(1);
83
+ var tail = this_0.x2s(1);
84
84
  var ctx = get_SegmentWriteContextImpl();
85
85
  var segmentOffset = -i | 0;
86
86
  // Inline function 'kotlin.comparisons.minOf' call
87
- var b = i + tail.o2s() | 0;
87
+ var b = i + tail.c2t() | 0;
88
88
  var runLimit = Math.min(endIndex, b);
89
89
  var _unary__edvuaz = i;
90
90
  i = _unary__edvuaz + 1 | 0;
91
- ctx.h2u(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
91
+ ctx.v2u(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
92
92
  $l$loop: while (i < runLimit) {
93
93
  var p0_0 = i;
94
94
  // Inline function 'kotlin.code' call
@@ -98,89 +98,89 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
98
98
  break $l$loop;
99
99
  var _unary__edvuaz_0 = i;
100
100
  i = _unary__edvuaz_0 + 1 | 0;
101
- ctx.h2u(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
101
+ ctx.v2u(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
102
102
  }
103
103
  var bytesWritten = i + segmentOffset | 0;
104
104
  if (bytesWritten === 1) {
105
- tail.g2r_1 = tail.g2r_1 + bytesWritten | 0;
105
+ tail.u2r_1 = tail.u2r_1 + bytesWritten | 0;
106
106
  var tmp = this_0;
107
107
  // Inline function 'kotlin.Long.plus' call
108
- tmp.u2q_1 = this_0.u2q_1.p3(toLong(bytesWritten));
108
+ tmp.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten));
109
109
  break $l$block_0;
110
110
  }
111
111
  // Inline function 'kotlin.check' call
112
- if (!(0 <= bytesWritten ? bytesWritten <= tail.o2s() : false)) {
113
- var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.o2s();
112
+ if (!(0 <= bytesWritten ? bytesWritten <= tail.c2t() : false)) {
113
+ var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.c2t();
114
114
  throw IllegalStateException().o4(toString(message));
115
115
  }
116
116
  if (!(bytesWritten === 0)) {
117
- tail.g2r_1 = tail.g2r_1 + bytesWritten | 0;
117
+ tail.u2r_1 = tail.u2r_1 + bytesWritten | 0;
118
118
  var tmp_0 = this_0;
119
119
  // Inline function 'kotlin.Long.plus' call
120
- tmp_0.u2q_1 = this_0.u2q_1.p3(toLong(bytesWritten));
120
+ tmp_0.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten));
121
121
  break $l$block_0;
122
122
  }
123
123
  if (isEmpty(tail)) {
124
- this_0.h2t();
124
+ this_0.v2t();
125
125
  }
126
126
  }
127
127
  } else if (c < 2048) {
128
128
  $l$block_2: {
129
129
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
130
- var tail_0 = this_0.j2s(2);
131
- get_SegmentWriteContextImpl().g2u(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
130
+ var tail_0 = this_0.x2s(2);
131
+ get_SegmentWriteContextImpl().u2u(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
132
132
  var bytesWritten_0 = 2;
133
133
  if (bytesWritten_0 === 2) {
134
- tail_0.g2r_1 = tail_0.g2r_1 + bytesWritten_0 | 0;
134
+ tail_0.u2r_1 = tail_0.u2r_1 + bytesWritten_0 | 0;
135
135
  var tmp_1 = this_0;
136
136
  // Inline function 'kotlin.Long.plus' call
137
- tmp_1.u2q_1 = this_0.u2q_1.p3(toLong(bytesWritten_0));
137
+ tmp_1.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_0));
138
138
  break $l$block_2;
139
139
  }
140
140
  // Inline function 'kotlin.check' call
141
- if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.o2s() : false)) {
142
- var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.o2s();
141
+ if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.c2t() : false)) {
142
+ var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.c2t();
143
143
  throw IllegalStateException().o4(toString(message_0));
144
144
  }
145
145
  if (!(bytesWritten_0 === 0)) {
146
- tail_0.g2r_1 = tail_0.g2r_1 + bytesWritten_0 | 0;
146
+ tail_0.u2r_1 = tail_0.u2r_1 + bytesWritten_0 | 0;
147
147
  var tmp_2 = this_0;
148
148
  // Inline function 'kotlin.Long.plus' call
149
- tmp_2.u2q_1 = this_0.u2q_1.p3(toLong(bytesWritten_0));
149
+ tmp_2.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_0));
150
150
  break $l$block_2;
151
151
  }
152
152
  if (isEmpty(tail_0)) {
153
- this_0.h2t();
153
+ this_0.v2t();
154
154
  }
155
155
  }
156
156
  i = i + 1 | 0;
157
157
  } else if (c < 55296 || c > 57343) {
158
158
  $l$block_4: {
159
159
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
160
- var tail_1 = this_0.j2s(3);
161
- get_SegmentWriteContextImpl().f2u(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
160
+ var tail_1 = this_0.x2s(3);
161
+ get_SegmentWriteContextImpl().t2u(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
162
162
  var bytesWritten_1 = 3;
163
163
  if (bytesWritten_1 === 3) {
164
- tail_1.g2r_1 = tail_1.g2r_1 + bytesWritten_1 | 0;
164
+ tail_1.u2r_1 = tail_1.u2r_1 + bytesWritten_1 | 0;
165
165
  var tmp_3 = this_0;
166
166
  // Inline function 'kotlin.Long.plus' call
167
- tmp_3.u2q_1 = this_0.u2q_1.p3(toLong(bytesWritten_1));
167
+ tmp_3.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_1));
168
168
  break $l$block_4;
169
169
  }
170
170
  // Inline function 'kotlin.check' call
171
- if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.o2s() : false)) {
172
- var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.o2s();
171
+ if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.c2t() : false)) {
172
+ var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.c2t();
173
173
  throw IllegalStateException().o4(toString(message_1));
174
174
  }
175
175
  if (!(bytesWritten_1 === 0)) {
176
- tail_1.g2r_1 = tail_1.g2r_1 + bytesWritten_1 | 0;
176
+ tail_1.u2r_1 = tail_1.u2r_1 + bytesWritten_1 | 0;
177
177
  var tmp_4 = this_0;
178
178
  // Inline function 'kotlin.Long.plus' call
179
- tmp_4.u2q_1 = this_0.u2q_1.p3(toLong(bytesWritten_1));
179
+ tmp_4.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_1));
180
180
  break $l$block_4;
181
181
  }
182
182
  if (isEmpty(tail_1)) {
183
- this_0.h2t();
183
+ this_0.v2t();
184
184
  }
185
185
  }
186
186
  i = i + 1 | 0;
@@ -199,43 +199,43 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
199
199
  // Inline function 'kotlin.code' call
200
200
  var this_4 = _Char___init__impl__6a9atx(63);
201
201
  var tmp$ret$26 = Char__toInt_impl_vasixd(this_4);
202
- this_0.x2s(toByte(tmp$ret$26));
202
+ this_0.l2t(toByte(tmp$ret$26));
203
203
  i = i + 1 | 0;
204
204
  } else {
205
205
  var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
206
206
  $l$block_6: {
207
207
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
208
- var tail_2 = this_0.j2s(4);
209
- get_SegmentWriteContextImpl().e2u(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
208
+ var tail_2 = this_0.x2s(4);
209
+ get_SegmentWriteContextImpl().s2u(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
210
210
  var bytesWritten_2 = 4;
211
211
  if (bytesWritten_2 === 4) {
212
- tail_2.g2r_1 = tail_2.g2r_1 + bytesWritten_2 | 0;
212
+ tail_2.u2r_1 = tail_2.u2r_1 + bytesWritten_2 | 0;
213
213
  var tmp_6 = this_0;
214
214
  // Inline function 'kotlin.Long.plus' call
215
- tmp_6.u2q_1 = this_0.u2q_1.p3(toLong(bytesWritten_2));
215
+ tmp_6.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_2));
216
216
  break $l$block_6;
217
217
  }
218
218
  // Inline function 'kotlin.check' call
219
- if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.o2s() : false)) {
220
- var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.o2s();
219
+ if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.c2t() : false)) {
220
+ var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.c2t();
221
221
  throw IllegalStateException().o4(toString(message_2));
222
222
  }
223
223
  if (!(bytesWritten_2 === 0)) {
224
- tail_2.g2r_1 = tail_2.g2r_1 + bytesWritten_2 | 0;
224
+ tail_2.u2r_1 = tail_2.u2r_1 + bytesWritten_2 | 0;
225
225
  var tmp_7 = this_0;
226
226
  // Inline function 'kotlin.Long.plus' call
227
- tmp_7.u2q_1 = this_0.u2q_1.p3(toLong(bytesWritten_2));
227
+ tmp_7.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_2));
228
228
  break $l$block_6;
229
229
  }
230
230
  if (isEmpty(tail_2)) {
231
- this_0.h2t();
231
+ this_0.v2t();
232
232
  }
233
233
  }
234
234
  i = i + 2 | 0;
235
235
  }
236
236
  }
237
237
  }
238
- _this__u8e3s4.t2r();
238
+ _this__u8e3s4.h2s();
239
239
  }
240
240
  //region block: exports
241
241
  export {
@@ -35,8 +35,8 @@ var SegmentReadContextImpl$1Class;
35
35
  function SegmentReadContextImpl$1() {
36
36
  if (SegmentReadContextImpl$1Class === VOID) {
37
37
  class $ {
38
- f2t(segment, offset) {
39
- return segment.a2s(offset);
38
+ t2t(segment, offset) {
39
+ return segment.o2s(offset);
40
40
  }
41
41
  }
42
42
  initMetadataForClass($);
@@ -48,17 +48,17 @@ var SegmentWriteContextImpl$1Class;
48
48
  function SegmentWriteContextImpl$1() {
49
49
  if (SegmentWriteContextImpl$1Class === VOID) {
50
50
  class $ {
51
- h2u(segment, offset, value) {
52
- segment.a2u(offset, value);
51
+ v2u(segment, offset, value) {
52
+ segment.o2u(offset, value);
53
53
  }
54
- g2u(segment, offset, b0, b1) {
55
- segment.b2u(offset, b0, b1);
54
+ u2u(segment, offset, b0, b1) {
55
+ segment.p2u(offset, b0, b1);
56
56
  }
57
- f2u(segment, offset, b0, b1, b2) {
58
- segment.c2u(offset, b0, b1, b2);
57
+ t2u(segment, offset, b0, b1, b2) {
58
+ segment.q2u(offset, b0, b1, b2);
59
59
  }
60
- e2u(segment, offset, b0, b1, b2, b3) {
61
- segment.d2u(offset, b0, b1, b2, b3);
60
+ s2u(segment, offset, b0, b1, b2, b3) {
61
+ segment.r2u(offset, b0, b1, b2, b3);
62
62
  }
63
63
  }
64
64
  initMetadataForClass($);
@@ -70,8 +70,8 @@ var BufferIterationContextImpl$1Class;
70
70
  function BufferIterationContextImpl$1() {
71
71
  if (BufferIterationContextImpl$1Class === VOID) {
72
72
  class $ {
73
- f2t(segment, offset) {
74
- return get_SegmentReadContextImpl().f2t(segment, offset);
73
+ t2t(segment, offset) {
74
+ return get_SegmentReadContextImpl().t2t(segment, offset);
75
75
  }
76
76
  }
77
77
  initMetadataForClass($);
@@ -58,12 +58,12 @@ function Json() {
58
58
  class $ {
59
59
  constructor(configuration, serializersModule) {
60
60
  Default_getInstance();
61
- this.z6f_1 = configuration;
62
- this.a6g_1 = serializersModule;
63
- this.b6g_1 = new (DescriptorSchemaCache())();
61
+ this.n6g_1 = configuration;
62
+ this.o6g_1 = serializersModule;
63
+ this.p6g_1 = new (DescriptorSchemaCache())();
64
64
  }
65
65
  yx() {
66
- return this.a6g_1;
66
+ return this.o6g_1;
67
67
  }
68
68
  eu(serializer, value) {
69
69
  var result = new (JsonToStringWriter())();
@@ -71,14 +71,14 @@ function Json() {
71
71
  encodeByWriter(this, result, serializer, value);
72
72
  return result.toString();
73
73
  }finally {
74
- result.y2n();
74
+ result.m2o();
75
75
  }
76
76
  }
77
77
  fu(deserializer, string) {
78
78
  var lexer = StringJsonLexer(this, string);
79
79
  var input = new (StreamingJsonDecoder())(this, WriteMode_OBJ_getInstance(), lexer, deserializer.xs(), null);
80
80
  var result = input.jx(deserializer);
81
- lexer.p6g();
81
+ lexer.d6h();
82
82
  return result;
83
83
  }
84
84
  }
@@ -91,54 +91,54 @@ function Json_0(from, builderAction) {
91
91
  from = from === VOID ? Default_getInstance() : from;
92
92
  var builder = new (JsonBuilder())(from);
93
93
  builderAction(builder);
94
- var conf = builder.i6h();
95
- return new (JsonImpl())(conf, builder.h6h_1);
94
+ var conf = builder.w6h();
95
+ return new (JsonImpl())(conf, builder.v6h_1);
96
96
  }
97
97
  var JsonBuilderClass;
98
98
  function JsonBuilder() {
99
99
  if (JsonBuilderClass === VOID) {
100
100
  class $ {
101
101
  constructor(json) {
102
- this.q6g_1 = json.z6f_1.j6h_1;
103
- this.r6g_1 = json.z6f_1.o6h_1;
104
- this.s6g_1 = json.z6f_1.k6h_1;
105
- this.t6g_1 = json.z6f_1.l6h_1;
106
- this.u6g_1 = json.z6f_1.n6h_1;
107
- this.v6g_1 = json.z6f_1.p6h_1;
108
- this.w6g_1 = json.z6f_1.q6h_1;
109
- this.x6g_1 = json.z6f_1.s6h_1;
110
- this.y6g_1 = json.z6f_1.z6h_1;
111
- this.z6g_1 = json.z6f_1.u6h_1;
112
- this.a6h_1 = json.z6f_1.v6h_1;
113
- this.b6h_1 = json.z6f_1.w6h_1;
114
- this.c6h_1 = json.z6f_1.x6h_1;
115
- this.d6h_1 = json.z6f_1.y6h_1;
116
- this.e6h_1 = json.z6f_1.t6h_1;
117
- this.f6h_1 = json.z6f_1.m6h_1;
118
- this.g6h_1 = json.z6f_1.r6h_1;
119
- this.h6h_1 = json.yx();
102
+ this.e6h_1 = json.n6g_1.x6h_1;
103
+ this.f6h_1 = json.n6g_1.c6i_1;
104
+ this.g6h_1 = json.n6g_1.y6h_1;
105
+ this.h6h_1 = json.n6g_1.z6h_1;
106
+ this.i6h_1 = json.n6g_1.b6i_1;
107
+ this.j6h_1 = json.n6g_1.d6i_1;
108
+ this.k6h_1 = json.n6g_1.e6i_1;
109
+ this.l6h_1 = json.n6g_1.g6i_1;
110
+ this.m6h_1 = json.n6g_1.n6i_1;
111
+ this.n6h_1 = json.n6g_1.i6i_1;
112
+ this.o6h_1 = json.n6g_1.j6i_1;
113
+ this.p6h_1 = json.n6g_1.k6i_1;
114
+ this.q6h_1 = json.n6g_1.l6i_1;
115
+ this.r6h_1 = json.n6g_1.m6i_1;
116
+ this.s6h_1 = json.n6g_1.h6i_1;
117
+ this.t6h_1 = json.n6g_1.a6i_1;
118
+ this.u6h_1 = json.n6g_1.f6i_1;
119
+ this.v6h_1 = json.yx();
120
120
  }
121
- i6h() {
122
- if (this.g6h_1) {
121
+ w6h() {
122
+ if (this.u6h_1) {
123
123
  // Inline function 'kotlin.require' call
124
- if (!(this.x6g_1 === 'type')) {
124
+ if (!(this.l6h_1 === 'type')) {
125
125
  var message = 'Class discriminator should not be specified when array polymorphism is specified';
126
126
  throw IllegalArgumentException().u(toString(message));
127
127
  }
128
128
  // Inline function 'kotlin.require' call
129
- if (!this.y6g_1.equals(ClassDiscriminatorMode_POLYMORPHIC_getInstance())) {
129
+ if (!this.m6h_1.equals(ClassDiscriminatorMode_POLYMORPHIC_getInstance())) {
130
130
  var message_0 = 'useArrayPolymorphism option can only be used if classDiscriminatorMode in a default POLYMORPHIC state.';
131
131
  throw IllegalArgumentException().u(toString(message_0));
132
132
  }
133
133
  }
134
- if (!this.u6g_1) {
134
+ if (!this.i6h_1) {
135
135
  // Inline function 'kotlin.require' call
136
- if (!(this.v6g_1 === ' ')) {
136
+ if (!(this.j6h_1 === ' ')) {
137
137
  var message_1 = 'Indent should not be specified when default printing mode is used';
138
138
  throw IllegalArgumentException().u(toString(message_1));
139
139
  }
140
- } else if (!(this.v6g_1 === ' ')) {
141
- var tmp0 = this.v6g_1;
140
+ } else if (!(this.j6h_1 === ' ')) {
141
+ var tmp0 = this.j6h_1;
142
142
  var tmp$ret$7;
143
143
  $l$block: {
144
144
  // Inline function 'kotlin.text.all' call
@@ -156,11 +156,11 @@ function JsonBuilder() {
156
156
  var allWhitespaces = tmp$ret$7;
157
157
  // Inline function 'kotlin.require' call
158
158
  if (!allWhitespaces) {
159
- var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.v6g_1;
159
+ var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.j6h_1;
160
160
  throw IllegalArgumentException().u(toString(message_2));
161
161
  }
162
162
  }
163
- return new (JsonConfiguration())(this.q6g_1, this.s6g_1, this.t6g_1, this.f6h_1, this.u6g_1, this.r6g_1, this.v6g_1, this.w6g_1, this.g6h_1, this.x6g_1, this.e6h_1, this.z6g_1, this.a6h_1, this.b6h_1, this.c6h_1, this.d6h_1, this.y6g_1);
163
+ return new (JsonConfiguration())(this.e6h_1, this.g6h_1, this.h6h_1, this.t6h_1, this.i6h_1, this.f6h_1, this.j6h_1, this.k6h_1, this.u6h_1, this.l6h_1, this.s6h_1, this.n6h_1, this.o6h_1, this.p6h_1, this.q6h_1, this.r6h_1, this.m6h_1);
164
164
  }
165
165
  }
166
166
  initMetadataForClass($, 'JsonBuilder');
@@ -171,7 +171,7 @@ function JsonBuilder() {
171
171
  function validateConfiguration($this) {
172
172
  if (equals($this.yx(), EmptySerializersModule()))
173
173
  return Unit_instance;
174
- var collector = new (JsonSerializersModuleValidator())($this.z6f_1);
174
+ var collector = new (JsonSerializersModuleValidator())($this.n6g_1);
175
175
  $this.yx().q1d(collector);
176
176
  }
177
177
  var JsonImplClass;
@@ -29,26 +29,26 @@ function JsonConfiguration() {
29
29
  allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
30
30
  allowComments = allowComments === VOID ? false : allowComments;
31
31
  classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
32
- this.j6h_1 = encodeDefaults;
33
- this.k6h_1 = ignoreUnknownKeys;
34
- this.l6h_1 = isLenient;
35
- this.m6h_1 = allowStructuredMapKeys;
36
- this.n6h_1 = prettyPrint;
37
- this.o6h_1 = explicitNulls;
38
- this.p6h_1 = prettyPrintIndent;
39
- this.q6h_1 = coerceInputValues;
40
- this.r6h_1 = useArrayPolymorphism;
41
- this.s6h_1 = classDiscriminator;
42
- this.t6h_1 = allowSpecialFloatingPointValues;
43
- this.u6h_1 = useAlternativeNames;
44
- this.v6h_1 = namingStrategy;
45
- this.w6h_1 = decodeEnumsCaseInsensitive;
46
- this.x6h_1 = allowTrailingComma;
47
- this.y6h_1 = allowComments;
48
- this.z6h_1 = classDiscriminatorMode;
32
+ this.x6h_1 = encodeDefaults;
33
+ this.y6h_1 = ignoreUnknownKeys;
34
+ this.z6h_1 = isLenient;
35
+ this.a6i_1 = allowStructuredMapKeys;
36
+ this.b6i_1 = prettyPrint;
37
+ this.c6i_1 = explicitNulls;
38
+ this.d6i_1 = prettyPrintIndent;
39
+ this.e6i_1 = coerceInputValues;
40
+ this.f6i_1 = useArrayPolymorphism;
41
+ this.g6i_1 = classDiscriminator;
42
+ this.h6i_1 = allowSpecialFloatingPointValues;
43
+ this.i6i_1 = useAlternativeNames;
44
+ this.j6i_1 = namingStrategy;
45
+ this.k6i_1 = decodeEnumsCaseInsensitive;
46
+ this.l6i_1 = allowTrailingComma;
47
+ this.m6i_1 = allowComments;
48
+ this.n6i_1 = classDiscriminatorMode;
49
49
  }
50
50
  toString() {
51
- return 'JsonConfiguration(encodeDefaults=' + this.j6h_1 + ', ignoreUnknownKeys=' + this.k6h_1 + ', isLenient=' + this.l6h_1 + ', ' + ('allowStructuredMapKeys=' + this.m6h_1 + ', prettyPrint=' + this.n6h_1 + ', explicitNulls=' + this.o6h_1 + ', ') + ("prettyPrintIndent='" + this.p6h_1 + "', coerceInputValues=" + this.q6h_1 + ', useArrayPolymorphism=' + this.r6h_1 + ', ') + ("classDiscriminator='" + this.s6h_1 + "', allowSpecialFloatingPointValues=" + this.t6h_1 + ', ') + ('useAlternativeNames=' + this.u6h_1 + ', namingStrategy=' + toString(this.v6h_1) + ', decodeEnumsCaseInsensitive=' + this.w6h_1 + ', ') + ('allowTrailingComma=' + this.x6h_1 + ', allowComments=' + this.y6h_1 + ', classDiscriminatorMode=' + this.z6h_1.toString() + ')');
51
+ return 'JsonConfiguration(encodeDefaults=' + this.x6h_1 + ', ignoreUnknownKeys=' + this.y6h_1 + ', isLenient=' + this.z6h_1 + ', ' + ('allowStructuredMapKeys=' + this.a6i_1 + ', prettyPrint=' + this.b6i_1 + ', explicitNulls=' + this.c6i_1 + ', ') + ("prettyPrintIndent='" + this.d6i_1 + "', coerceInputValues=" + this.e6i_1 + ', useArrayPolymorphism=' + this.f6i_1 + ', ') + ("classDiscriminator='" + this.g6i_1 + "', allowSpecialFloatingPointValues=" + this.h6i_1 + ', ') + ('useAlternativeNames=' + this.i6i_1 + ', namingStrategy=' + toString(this.j6i_1) + ', decodeEnumsCaseInsensitive=' + this.k6i_1 + ', ') + ('allowTrailingComma=' + this.l6i_1 + ', allowComments=' + this.m6i_1 + ', classDiscriminatorMode=' + this.n6i_1.toString() + ')');
52
52
  }
53
53
  }
54
54
  initMetadataForClass($, 'JsonConfiguration');