@attocash/commons-test 6.2.1 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (638) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DateTimeUnit.mjs +58 -58
  2. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs +21 -21
  3. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs +56 -56
  4. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs +31 -31
  5. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs +41 -41
  6. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/OverloadMarker.mjs +1 -1
  7. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs +65 -65
  8. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs +20 -20
  9. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/YearMonth.mjs +22 -22
  10. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/ZonedDateTime.mjs +12 -12
  11. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs +7 -7
  12. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs +32 -32
  13. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs +121 -121
  14. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +106 -106
  15. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs +151 -151
  16. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs +130 -130
  17. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/YearMonthFormat.mjs +74 -74
  18. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/OffsetInfo.mjs +29 -29
  19. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/Platform.mjs +24 -24
  20. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/RegionTimeZone.mjs +20 -20
  21. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/TimeZoneRules.mjs +46 -46
  22. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs +7 -7
  23. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs +49 -49
  24. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs +42 -42
  25. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs +105 -105
  26. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs +11 -11
  27. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs +28 -28
  28. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs +45 -45
  29. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs +43 -43
  30. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParseResult.mjs +4 -4
  31. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs +48 -48
  32. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs +59 -59
  33. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs +15 -15
  34. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathNative.mjs +3 -3
  35. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs +100 -100
  36. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs +9 -9
  37. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs +9 -9
  38. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs +9 -9
  39. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs +28 -28
  40. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/YearMonthSerializers.mjs +9 -9
  41. package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +11 -11
  42. package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs.map +1 -1
  43. package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +129 -129
  44. package/commons-commons-core/cash/atto/commons/AttoAccount.mjs.map +1 -1
  45. package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +116 -116
  46. package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs.map +1 -1
  47. package/commons-commons-core/cash/atto/commons/AttoAddress.export.d.mts +1 -1
  48. package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs +2 -0
  49. package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs.map +1 -1
  50. package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +38 -34
  51. package/commons-commons-core/cash/atto/commons/AttoAddress.mjs.map +1 -1
  52. package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +13 -13
  53. package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs.map +1 -1
  54. package/commons-commons-core/cash/atto/commons/AttoAmount.export.d.mts +3 -4
  55. package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs +4 -0
  56. package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs.map +1 -1
  57. package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +62 -54
  58. package/commons-commons-core/cash/atto/commons/AttoAmount.mjs.map +1 -1
  59. package/commons-commons-core/cash/atto/commons/AttoBlock.export.d.mts +11 -11
  60. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +868 -860
  61. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs.map +1 -1
  62. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +11 -11
  63. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs.map +1 -1
  64. package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +13 -13
  65. package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs.map +1 -1
  66. package/commons-commons-core/cash/atto/commons/AttoHash.mjs +14 -14
  67. package/commons-commons-core/cash/atto/commons/AttoHash.mjs.map +1 -1
  68. package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
  69. package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs.map +1 -1
  70. package/commons-commons-core/cash/atto/commons/AttoHeight.export.d.mts +4 -4
  71. package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs +5 -1
  72. package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs.map +1 -1
  73. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +37 -30
  74. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs.map +1 -1
  75. package/commons-commons-core/cash/atto/commons/AttoInstant.export.d.mts +1 -1
  76. package/commons-commons-core/cash/atto/commons/AttoInstant.mjs +38 -38
  77. package/commons-commons-core/cash/atto/commons/AttoInstant.mjs.map +1 -1
  78. package/commons-commons-core/cash/atto/commons/AttoJob.mjs +1 -1
  79. package/commons-commons-core/cash/atto/commons/AttoJob.mjs.map +1 -1
  80. package/commons-commons-core/cash/atto/commons/AttoKeyIndex.export.d.mts +1 -1
  81. package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs +4 -4
  82. package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs.map +1 -1
  83. package/commons-commons-core/cash/atto/commons/AttoMnemonic.js.mjs.map +1 -1
  84. package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs +26 -26
  85. package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs.map +1 -1
  86. package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs +6 -6
  87. package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs.map +1 -1
  88. package/commons-commons-core/cash/atto/commons/AttoNetwork.export.d.mts +0 -5
  89. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +18 -18
  90. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs.map +1 -1
  91. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
  92. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs.map +1 -1
  93. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +30 -30
  94. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs.map +1 -1
  95. package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.mjs.map +1 -1
  96. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +13 -13
  97. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs.map +1 -1
  98. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +96 -96
  99. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs.map +1 -1
  100. package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs +6 -6
  101. package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs.map +1 -1
  102. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +4 -4
  103. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs.map +1 -1
  104. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.d.mts +8 -0
  105. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs +4 -0
  106. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs.map +1 -0
  107. package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs +27 -0
  108. package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs.map +1 -0
  109. package/commons-commons-core/cash/atto/commons/AttoSignature.js.mjs.map +1 -1
  110. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +14 -14
  111. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs.map +1 -1
  112. package/commons-commons-core/cash/atto/commons/AttoSigner.export.d.mts +28 -0
  113. package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs +19 -0
  114. package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs.map +1 -0
  115. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +74 -11
  116. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs.map +1 -1
  117. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +76 -0
  118. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs.map +1 -1
  119. package/commons-commons-core/cash/atto/commons/AttoTransaction.export.d.mts +4 -4
  120. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +73 -68
  121. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs.map +1 -1
  122. package/commons-commons-core/cash/atto/commons/AttoValidation.export.d.mts +9 -0
  123. package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs +4 -0
  124. package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs.map +1 -0
  125. package/commons-commons-core/cash/atto/commons/AttoValidation.mjs +17 -4
  126. package/commons-commons-core/cash/atto/commons/AttoValidation.mjs.map +1 -1
  127. package/commons-commons-core/cash/atto/commons/AttoVersion.export.d.mts +1 -1
  128. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +15 -15
  129. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs.map +1 -1
  130. package/commons-commons-core/cash/atto/commons/AttoVote.export.d.mts +3 -2
  131. package/commons-commons-core/cash/atto/commons/AttoVote.mjs +84 -79
  132. package/commons-commons-core/cash/atto/commons/AttoVote.mjs.map +1 -1
  133. package/commons-commons-core/cash/atto/commons/AttoWork.mjs +24 -24
  134. package/commons-commons-core/cash/atto/commons/AttoWork.mjs.map +1 -1
  135. package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs +16 -16
  136. package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs.map +1 -1
  137. package/commons-commons-core/cash/atto/commons/Extensions.mjs +4 -4
  138. package/commons-commons-core/cash/atto/commons/Extensions.mjs.map +1 -1
  139. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
  140. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs.map +1 -1
  141. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
  142. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs.map +1 -1
  143. package/commons-commons-core/cash/atto/commons/utils/SubtleCrypto.mjs.map +1 -1
  144. package/commons-commons-core.mjs +1 -2
  145. package/commons-commons-core.mjs.map +1 -1
  146. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.d.mts +26 -0
  147. package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs → AttoNodeClientAsync.web.export.mjs} +2 -2
  148. package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.mjs → AttoNodeClientAsync.web.mjs} +375 -419
  149. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.mjs.map +1 -0
  150. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.d.mts +1 -1
  151. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +158 -158
  152. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
  153. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.mts +2 -0
  154. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +4 -0
  155. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -1
  156. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +44 -19
  157. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -1
  158. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs +7 -7
  159. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs.map +1 -1
  160. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.d.mts → AttoAccountEntryMonitorAsync.web.export.d.mts} +3 -2
  161. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs → AttoAccountEntryMonitorAsync.web.export.mjs} +2 -2
  162. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.mjs → AttoAccountEntryMonitorAsync.web.mjs} +70 -41
  163. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.mjs.map +1 -0
  164. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.d.mts → AttoAccountEntryMonitorAsyncBuilder.js.export.d.mts} +1 -1
  165. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs → AttoAccountEntryMonitorAsyncBuilder.js.export.mjs} +2 -2
  166. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.mjs → AttoAccountEntryMonitorAsyncBuilder.js.mjs} +18 -18
  167. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.js.mjs.map +1 -0
  168. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs +37 -37
  169. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs.map +1 -1
  170. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.d.mts → AttoAccountMonitorAsync.web.export.d.mts} +5 -4
  171. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs → AttoAccountMonitorAsync.web.export.mjs} +2 -2
  172. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.mjs → AttoAccountMonitorAsync.web.mjs} +134 -129
  173. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.web.mjs.map +1 -0
  174. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs +4 -4
  175. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs.map +1 -1
  176. package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs +57 -57
  177. package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs.map +1 -1
  178. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs +7 -7
  179. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs.map +1 -1
  180. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.d.mts → AttoTransactionMonitorAsync.web.export.d.mts} +3 -2
  181. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.mjs → AttoTransactionMonitorAsync.web.export.mjs} +2 -2
  182. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.mjs → AttoTransactionMonitorAsync.web.mjs} +70 -41
  183. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.web.mjs.map +1 -0
  184. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.d.mts → AttoTransactionMonitorAsyncBuilder.js.export.d.mts} +1 -1
  185. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.mjs → AttoTransactionMonitorAsyncBuilder.js.export.mjs} +2 -2
  186. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.mjs → AttoTransactionMonitorAsyncBuilder.js.mjs} +18 -18
  187. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.js.mjs.map +1 -0
  188. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs +8 -8
  189. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs.map +1 -1
  190. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs +320 -320
  191. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs.map +1 -1
  192. package/commons-commons-node.mjs +6 -6
  193. package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs +8 -8
  194. package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs.map +1 -1
  195. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs +31 -31
  196. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs.map +1 -1
  197. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs +20 -20
  198. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs.map +1 -1
  199. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.export.d.mts +1 -1
  200. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs +36 -48
  201. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs.map +1 -1
  202. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs +1 -1
  203. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs.map +1 -1
  204. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.export.d.mts +1 -1
  205. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs +55 -59
  206. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs.map +1 -1
  207. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs +14 -14
  208. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs.map +1 -1
  209. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.export.d.mts +1 -1
  210. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs +33 -45
  211. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs.map +1 -1
  212. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs +1 -1
  213. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs.map +1 -1
  214. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.export.d.mts +1 -1
  215. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs +40 -40
  216. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs.map +1 -1
  217. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +2 -2
  218. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs.map +1 -1
  219. package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.d.mts → AttoWorkerAsync.js.export.d.mts} +3 -3
  220. package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.mjs → AttoWorkerAsync.js.export.mjs} +2 -2
  221. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs +108 -0
  222. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs.map +1 -0
  223. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs +1 -110
  224. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs.map +1 -1
  225. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs +73 -73
  226. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs.map +1 -1
  227. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.js.mjs.map +1 -1
  228. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs +36 -36
  229. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs.map +1 -1
  230. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +82 -82
  231. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs.map +1 -1
  232. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs +14 -14
  233. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs.map +1 -1
  234. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +27 -27
  235. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs.map +1 -1
  236. package/commons-commons-worker.mjs +1 -1
  237. package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +19 -19
  238. package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +9 -9
  239. package/kotlin-kotlin-stdlib/kotlin/Result.mjs +10 -5
  240. package/kotlin-kotlin-stdlib/kotlin/Result.mjs.map +1 -1
  241. package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +21 -21
  242. package/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
  243. package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +25 -25
  244. package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
  245. package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +25 -25
  246. package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
  247. package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +25 -25
  248. package/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
  249. package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +25 -25
  250. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +31 -31
  251. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +19 -19
  252. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +2 -2
  253. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs +1 -1
  254. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs +5 -5
  255. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +1 -1
  256. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +191 -191
  257. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +1 -1
  258. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +9 -9
  259. package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +33 -33
  260. package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -1
  261. package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs +8 -8
  262. package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +4 -4
  263. package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs +2 -2
  264. package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs +4 -4
  265. package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +7 -7
  266. package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs +5 -5
  267. package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +2 -2
  268. package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +6 -6
  269. package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +1 -1
  270. package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +14 -14
  271. package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs +3 -3
  272. package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs.map +1 -1
  273. package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +4 -4
  274. package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +5 -5
  275. package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs +1 -1
  276. package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs +9 -0
  277. package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs.map +1 -1
  278. package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +3 -3
  279. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +3 -3
  280. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +33 -33
  281. package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +91 -0
  282. package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs.map +1 -1
  283. package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +10 -10
  284. package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +43 -43
  285. package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +1 -1
  286. package/kotlin-kotlin-stdlib/kotlin/js/json.mjs +2 -2
  287. package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +29 -29
  288. package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +25 -25
  289. package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
  290. package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +24 -24
  291. package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
  292. package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +16 -16
  293. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +22 -22
  294. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs +2 -2
  295. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +8 -8
  296. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +20 -20
  297. package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +29 -29
  298. package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +26 -26
  299. package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +6 -6
  300. package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +18 -18
  301. package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +45 -45
  302. package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +14 -14
  303. package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +1 -1
  304. package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +62 -62
  305. package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +21 -21
  306. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +16 -16
  307. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
  308. package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +3 -3
  309. package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +1 -1
  310. package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +21 -21
  311. package/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
  312. package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +76 -76
  313. package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +6 -6
  314. package/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +84 -84
  315. package/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs +1 -1
  316. package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +24 -24
  317. package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +2 -2
  318. package/kotlin-kotlin-stdlib/reflectionJs.mjs +2 -2
  319. package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
  320. package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +8 -8
  321. package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +25 -25
  322. package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +16 -16
  323. package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +7 -7
  324. package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +167 -167
  325. package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +10 -10
  326. package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
  327. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +4 -4
  328. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +6 -6
  329. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +3 -3
  330. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
  331. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +6 -6
  332. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +2 -2
  333. package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +3 -3
  334. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +43 -43
  335. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
  336. package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +30 -30
  337. package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +1 -1
  338. package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +6 -6
  339. package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
  340. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +85 -85
  341. package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +14 -14
  342. package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +318 -318
  343. package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +5 -5
  344. package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +14 -14
  345. package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs.map +1 -1
  346. package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +1 -1
  347. package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +4 -4
  348. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +438 -438
  349. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +30 -30
  350. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +21 -21
  351. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
  352. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +16 -16
  353. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +13 -13
  354. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +13 -13
  355. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +2 -2
  356. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +1 -1
  357. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +1 -1
  358. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +16 -16
  359. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +9 -9
  360. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +45 -45
  361. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs +48 -48
  362. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +23 -23
  363. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +56 -56
  364. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
  365. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +6 -6
  366. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs +33 -33
  367. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +5 -5
  368. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +8 -8
  369. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +3 -3
  370. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.common.mjs +2 -2
  371. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs +11 -11
  372. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +46 -46
  373. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
  374. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
  375. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +71 -71
  376. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LimitedDispatcher.mjs +37 -37
  377. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +23 -23
  378. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LockFreeTaskQueue.mjs +75 -75
  379. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/NamedDispatcher.mjs +10 -10
  380. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +4 -4
  381. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +11 -11
  382. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  383. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
  384. package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +1 -1
  385. package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +9 -9
  386. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +16 -16
  387. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs +52 -52
  388. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +61 -61
  389. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +35 -35
  390. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  391. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +14 -14
  392. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs +1 -1
  393. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
  394. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  395. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  396. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
  397. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +53 -53
  398. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +150 -150
  399. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  400. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  401. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  402. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  403. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
  404. package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs +1 -1
  405. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  406. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +19 -19
  407. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +41 -41
  408. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +23 -23
  409. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +6 -6
  410. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +6 -6
  411. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
  412. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +1 -1
  413. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +33 -33
  414. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +18 -18
  415. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +65 -65
  416. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +45 -45
  417. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +53 -53
  418. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
  419. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +2 -2
  420. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +26 -26
  421. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +38 -38
  422. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +56 -56
  423. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs.map +1 -1
  424. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +232 -232
  425. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +22 -22
  426. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +33 -33
  427. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +16 -16
  428. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +17 -17
  429. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +16 -16
  430. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +43 -43
  431. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +19 -19
  432. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +7 -7
  433. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +14 -14
  434. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +2 -2
  435. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +71 -71
  436. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +444 -444
  437. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +114 -114
  438. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +97 -97
  439. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +92 -92
  440. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +48 -48
  441. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +31 -31
  442. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +1 -1
  443. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +44 -44
  444. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  445. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +61 -61
  446. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +152 -152
  447. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  448. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  449. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  450. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +70 -70
  451. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  452. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +14 -14
  453. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +21 -21
  454. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +39 -39
  455. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +16 -16
  456. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
  457. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  458. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +64 -64
  459. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +6 -6
  460. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +10 -10
  461. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +177 -177
  462. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +139 -139
  463. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  464. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs +2 -2
  465. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +214 -214
  466. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
  467. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +72 -72
  468. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  469. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +71 -71
  470. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +41 -41
  471. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  472. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +43 -43
  473. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +50 -50
  474. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +46 -46
  475. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +2 -2
  476. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +22 -22
  477. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +54 -54
  478. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +22 -22
  479. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +1 -1
  480. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  481. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  482. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +23 -23
  483. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  484. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +32 -32
  485. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +16 -16
  486. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +9 -9
  487. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +7 -7
  488. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +36 -36
  489. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +32 -32
  490. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +71 -71
  491. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +77 -77
  492. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  493. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +55 -55
  494. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +33 -33
  495. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +28 -28
  496. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +114 -114
  497. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +52 -52
  498. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +82 -82
  499. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +23 -23
  500. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  501. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +13 -13
  502. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
  503. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +26 -26
  504. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +14 -14
  505. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +36 -36
  506. package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +4 -4
  507. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +48 -48
  508. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  509. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +18 -18
  510. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +57 -57
  511. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  512. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  513. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +22 -22
  514. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +8 -8
  515. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +27 -27
  516. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +22 -22
  517. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +16 -16
  518. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  519. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  520. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +6 -6
  521. package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
  522. package/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
  523. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +14 -14
  524. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +93 -93
  525. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
  526. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  527. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +39 -39
  528. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +115 -115
  529. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +6 -6
  530. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  531. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +16 -16
  532. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +67 -67
  533. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +11 -11
  534. package/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
  535. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +59 -59
  536. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  537. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  538. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +21 -21
  539. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +16 -16
  540. package/ktor-ktor-http/io/ktor/http/Url.mjs +68 -68
  541. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +26 -26
  542. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  543. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  544. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  545. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +5 -5
  546. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +89 -89
  547. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +33 -33
  548. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +50 -50
  549. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +11 -11
  550. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +73 -73
  551. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  552. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +6 -6
  553. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  554. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  555. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +125 -125
  556. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  557. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +53 -53
  558. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  559. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +59 -59
  560. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
  561. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +32 -32
  562. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  563. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +23 -23
  564. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  565. package/ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs +1 -1
  566. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  567. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  568. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  569. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
  570. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  571. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  572. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  573. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  574. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +2 -2
  575. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +4 -4
  576. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  577. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  578. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  579. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +28 -28
  580. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +3 -3
  581. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +6 -6
  582. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +37 -37
  583. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  584. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +79 -79
  585. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +8 -8
  586. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
  587. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +13 -13
  588. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  589. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +40 -40
  590. package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
  591. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +36 -36
  592. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  593. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +82 -82
  594. package/ktor-ktor-utils/io/ktor/util/Text.mjs +8 -8
  595. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  596. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +100 -100
  597. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  598. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +8 -8
  599. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  600. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  601. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +29 -29
  602. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
  603. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
  604. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  605. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  606. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  607. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +52 -52
  608. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  609. package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs +1 -1
  610. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +17 -17
  611. package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +1 -1
  612. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +31 -31
  613. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
  614. package/package.json +1 -1
  615. package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.d.mts +0 -12
  616. package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs +0 -13
  617. package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs +0 -72
  618. package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs.map +0 -1
  619. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.d.mts +0 -17
  620. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs +0 -13
  621. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +0 -81
  622. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs.map +0 -1
  623. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.export.d.mts +0 -21
  624. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs.map +0 -1
  625. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.mjs.map +0 -1
  626. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.mjs.map +0 -1
  627. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.mjs.map +0 -1
  628. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.mjs.map +0 -1
  629. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.export.mjs.map +0 -1
  630. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.mjs.map +0 -1
  631. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.export.mjs.map +0 -1
  632. /package/{commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs.map → commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.mjs.map} +0 -0
  633. /package/{commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs.map → commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.export.mjs.map} +0 -0
  634. /package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs.map → monitor/AttoAccountEntryMonitorAsyncBuilder.js.export.mjs.map} +0 -0
  635. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs.map → AttoAccountMonitorAsync.web.export.mjs.map} +0 -0
  636. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs.map → AttoTransactionMonitorAsync.web.export.mjs.map} +0 -0
  637. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs.map → AttoTransactionMonitorAsyncBuilder.js.export.mjs.map} +0 -0
  638. /package/{commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.export.mjs.map → commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.export.mjs.map} +0 -0
@@ -0,0 +1,28 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare interface AttoSigner {
4
+ readonly algorithm: AttoAlgorithm;
5
+ readonly publicKey: AttoPublicKey;
6
+ readonly address: AttoAddress;
7
+ signHash(hash: AttoHash): Promise<AttoSignature>;
8
+ signBlock(block: AttoBlock): Promise<AttoSignature>;
9
+ signVote(vote: AttoVote): Promise<AttoSignature>;
10
+ signChallenge(challenge: AttoChallenge, timestamp: AttoInstant): Promise<AttoSignature>;
11
+ checkPublicKey(publicKey: AttoPublicKey): Promise<void>;
12
+ readonly __doNotUseOrImplementIt: {
13
+ readonly "cash.atto.commons.AttoSigner": unique symbol;
14
+ };
15
+ }
16
+ export declare namespace AttoSigner {
17
+ abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
18
+ private constructor();
19
+ }
20
+ namespace Companion {
21
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
22
+ namespace $metadata$ {
23
+ abstract class constructor {
24
+ private constructor();
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,19 @@
1
+ import {
2
+ Companion1l27yp7mvqvwr as Companion,
3
+ Companion_getInstance1yz9pclaxooeb as Companion_getInstance,
4
+ } from './AttoSigner.mjs';
5
+ import { defineProp3ur6h3slcvq4x as defineProp } from '../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
6
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
7
+ //region block: imports
8
+ //endregion
9
+ //region block: pre-declaration
10
+ //endregion
11
+ //region block: exports
12
+ var AttoSigner = {};
13
+ defineProp(AttoSigner, 'Companion', Companion_getInstance, VOID, true);
14
+ export {
15
+ AttoSigner as AttoSigner,
16
+ };
17
+ //endregion
18
+
19
+ //# sourceMappingURL=AttoSigner.export.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -2,6 +2,13 @@ import {
2
2
  generateKeyPairFromSeed as generateKeyPairFromSeed,
3
3
  sign as sign,
4
4
  } from '@stablelib/ed25519';
5
+ import {
6
+ await1tchdi81j7msa as await_0,
7
+ promisify1z0ncraq1ipzh as promisify,
8
+ suspendOrReturn49pspzlx5djv as suspendOrReturn,
9
+ } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
10
+ import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
11
+ import { protoOf180f3jzyo7rfj as protoOf } from '../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
5
12
  import { AttoAlgorithm_V1_getInstance3vq7zolusxoxz as AttoAlgorithm_V1_getInstance } from './AttoAlgorithm.mjs';
6
13
  import { toPublicKey1cur233ok82jt as toPublicKey } from './AttoPublicKey.js.mjs';
7
14
  import { toAddress3631euu7evnij as toAddress } from './AttoAddress.mjs';
@@ -9,33 +16,89 @@ import {
9
16
  toUint8Array1omfedyjm9v5o as toUint8Array,
10
17
  toByteArray3f5i5urnfv0wu as toByteArray,
11
18
  } from './Extensions.mjs';
19
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
12
20
  import { AttoSignaturef1rb35b89r5k as AttoSignature } from './AttoSignature.mjs';
21
+ import {
22
+ sign2v0z7umkpvgvl as sign_0,
23
+ sign1uej56tki34gj as sign_1,
24
+ sign389wfge3kn7yi as sign_2,
25
+ checkPublicKey3mr0m5k4v724a as checkPublicKey,
26
+ AttoSigner1s0b1owma3lqw as AttoSigner,
27
+ } from './AttoSigner.mjs';
13
28
  import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
14
- import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
15
29
  //region block: imports
16
30
  //endregion
17
31
  //region block: pre-declaration
18
32
  //endregion
33
+ function *_generator_sign$suspendBridge__35yghi($this, hash, $completion) {
34
+ var tmp;
35
+ if ($this.signHash === protoOf(InMemorySigner()).signHash) {
36
+ var tmp_0 = $this.b4t(hash, $completion);
37
+ if (tmp_0 === get_COROUTINE_SUSPENDED())
38
+ tmp_0 = yield tmp_0;
39
+ tmp = tmp_0;
40
+ } else {
41
+ var tmp_1 = await_0($this.signHash(hash), $completion);
42
+ if (tmp_1 === get_COROUTINE_SUSPENDED())
43
+ tmp_1 = yield tmp_1;
44
+ tmp = tmp_1;
45
+ }
46
+ return tmp;
47
+ }
19
48
  var InMemorySignerClass;
20
49
  function InMemorySigner() {
21
50
  if (InMemorySignerClass === VOID) {
22
51
  class $ {
23
52
  constructor(privateKey) {
24
- this.y4t_1 = privateKey;
25
- this.z4t_1 = AttoAlgorithm_V1_getInstance();
26
- this.a4u_1 = toPublicKey(this.y4t_1);
27
- this.b4u_1 = toAddress(this.a4u_1, AttoAlgorithm_V1_getInstance());
28
- this.c4u_1 = generateKeyPairFromSeed(toUint8Array(this.y4t_1.value));
53
+ this.n4u_1 = privateKey;
54
+ this.o4u_1 = AttoAlgorithm_V1_getInstance();
55
+ this.p4u_1 = toPublicKey(this.n4u_1);
56
+ this.q4u_1 = toAddress(this.p4u_1, AttoAlgorithm_V1_getInstance());
57
+ this.r4u_1 = generateKeyPairFromSeed(toUint8Array(this.n4u_1.value));
58
+ }
59
+ i4k() {
60
+ return this.o4u_1;
61
+ }
62
+ g4k() {
63
+ return this.p4u_1;
29
64
  }
30
- m4k() {
31
- return this.b4u_1;
65
+ p4k() {
66
+ return this.q4u_1;
32
67
  }
33
- d4u(hash, $completion) {
34
- var signature = sign(this.c4u_1.secretKey, toUint8Array(hash.value));
68
+ signHash(hash) {
69
+ return promisify(($completion) => this.s4u(hash, $completion));
70
+ }
71
+ s4u(hash, $completion) {
72
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_sign$suspendBridge__35yghi.bind(VOID, this, hash), $completion);
73
+ }
74
+ b4t(hash, $completion) {
75
+ var signature = sign(this.r4u_1.secretKey, toUint8Array(hash.value));
35
76
  return new (AttoSignature())(toByteArray(signature));
36
77
  }
78
+ d4t(block, $completion) {
79
+ return this.d4t(block, $completion);
80
+ }
81
+ e4t(vote, $completion) {
82
+ return this.e4t(vote, $completion);
83
+ }
84
+ f4t(challenge, timestamp, $completion) {
85
+ return this.f4t(challenge, timestamp, $completion);
86
+ }
87
+ get algorithm() {
88
+ return this.i4k();
89
+ }
90
+ get publicKey() {
91
+ return this.g4k();
92
+ }
93
+ get address() {
94
+ return this.p4k();
95
+ }
37
96
  }
38
- initMetadataForClass($, 'InMemorySigner', VOID, VOID, VOID, [1, 2]);
97
+ protoOf($).d4t = sign_0;
98
+ protoOf($).e4t = sign_1;
99
+ protoOf($).f4t = sign_2;
100
+ protoOf($).a4t = checkPublicKey;
101
+ initMetadataForClass($, 'InMemorySigner', VOID, VOID, [AttoSigner()], [1, 2]);
39
102
  InMemorySignerClass = $;
40
103
  }
41
104
  return InMemorySignerClass;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/AttoSigner.js.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["privateKey","<get-address>","sign","hash","$completion","signature"],"mappings":";;;;;;;;;;;;;;;;;;;;;;kBAOoBA,U;QAAhB,uB;QAE6D,2C;QACH,yBAAX,IAAW,CAAX,KAAW,C;QACL,uBAAV,IAAU,CAAV,KAAU,EAAwB,8BAAxB,C;QAE/B,qCAAyC,aAAjB,IAAiB,CAAjB,KAAiB,CAAN,KAAM,CAAzC,C;;SAFNC,CAAAA,EAAA;A,QAAA,iB;MAAuB,C;SAIfC,CAASC,I,EAATC,WAAAF,EAAwC;A,YAC5DG,YAC4B,KACR,IADQ,CACR,KADQ,CACA,SADA,EAEC,aAAX,IAAW,CAAN,KAAM,CAFD,C;QAK5B,6BAA+B,YAAV,SAAU,CAA/B,C;MACJ,C;;;;;;;;;;;"}
1
+ {"version":3,"sources":["../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/AttoSigner.js.kt"],"sourcesContent":["package cash.atto.commons\n\nimport cash.atto.commons.utils.generateKeyPairFromSeed\n\ninternal object InMemorySignerHolder\n\nactual class InMemorySigner actual constructor(\n internal actual val privateKey: AttoPrivateKey,\n) : AttoSigner {\n actual override val algorithm: AttoAlgorithm = AttoAlgorithm.V1\n actual override val publicKey: AttoPublicKey = privateKey.toPublicKey()\n actual override val address: AttoAddress = publicKey.toAddress(AttoAlgorithm.V1)\n\n private val keyPair = generateKeyPairFromSeed(privateKey.value.toUint8Array())\n\n actual override suspend fun sign(hash: AttoHash): AttoSignature {\n val signature =\n cash.atto.commons.utils.sign(\n secretKey = keyPair.secretKey,\n message = hash.value.toUint8Array(),\n )\n\n return AttoSignature(signature.toByteArray())\n }\n}\n"],"ignoreList":[],"x_google_ignoreList":[],"names":["privateKey","<get-algorithm>","<get-publicKey>","<get-address>","hash","sign","$completion","signature","block","vote","challenge","timestamp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAe4B,K,EAAS,I;;;;;;;;;;;;;;;;;;;kBARjBA,U;QAAhB,uB;QAE6D,2C;QACH,yBAAX,IAAW,CAAX,KAAW,C;QACL,uBAAV,IAAU,CAAV,KAAU,EAAwB,8BAAxB,C;QAE/B,qCAAyC,aAAjB,IAAiB,CAAjB,KAAiB,CAAN,KAAM,CAAzC,C;;SAJNC,CAAAA,EAAA;A,QAAA,iB;MAA2B,C;SAC3BC,CAAAA,EAAA;A,QAAA,iB;MAA2B,C;SAC3BC,CAAAA,EAAA;A,QAAA,iB;MAAuB,C;eAINC,I;;;UAAA,I;;;SAATC,CAASD,I,EAATE,WAAAD,EAAwC;A,YAC5DE,YAC4B,KACR,IADQ,CACR,KADQ,CACA,SADA,EAEC,aAAX,IAAW,CAAN,KAAM,CAFD,C;QAK5B,6BAA+B,YAAV,SAAU,CAA/B,C;MACJ,C;UAbqEC,K,EAATF,W;;;UAGMG,I,EAATH,W;;;UAK1CI,S,EACbC,S,EADLL,W;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,14 +1,90 @@
1
+ import {
2
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
3
+ initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
4
+ } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
5
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
6
+ import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
7
+ import { suspendOrReturn49pspzlx5djv as suspendOrReturn } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
8
+ import { Companion_instance2gqbffdfes1sc as Companion_instance } from './AttoHash.mjs';
9
+ import { toByteArray18blahk7gwuv4 as toByteArray } from './Extensions.mjs';
10
+ import { IllegalArgumentException2asla15b5jaob as IllegalArgumentException } from '../../../../kotlin-kotlin-stdlib/kotlin/exceptions.mjs';
11
+ import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
1
12
  import { InMemorySigner32umwc197yryh as InMemorySigner } from './AttoSigner.js.mjs';
2
13
  //region block: imports
3
14
  //endregion
4
15
  //region block: pre-declaration
5
16
  //endregion
17
+ var CompanionClass;
18
+ function Companion() {
19
+ if (CompanionClass === VOID) {
20
+ class $ {}
21
+ initMetadataForCompanion($);
22
+ CompanionClass = $;
23
+ }
24
+ return CompanionClass;
25
+ }
26
+ var Companion_instance_0;
27
+ function Companion_getInstance() {
28
+ return Companion_instance_0;
29
+ }
30
+ function *_generator_sign__qhulg5($this, block, $completion) {
31
+ var tmp = $this.a4t(block.publicKey, $completion);
32
+ if (tmp === get_COROUTINE_SUSPENDED())
33
+ tmp = yield tmp;
34
+ var tmp_0 = $this.b4t(block.hash, $completion);
35
+ if (tmp_0 === get_COROUTINE_SUSPENDED())
36
+ tmp_0 = yield tmp_0;
37
+ return tmp_0;
38
+ }
39
+ function *_generator_sign__qhulg5_0($this, vote, $completion) {
40
+ var tmp = $this.a4t(vote.publicKey, $completion);
41
+ if (tmp === get_COROUTINE_SUSPENDED())
42
+ tmp = yield tmp;
43
+ var tmp_0 = $this.b4t(vote.hash, $completion);
44
+ if (tmp_0 === get_COROUTINE_SUSPENDED())
45
+ tmp_0 = yield tmp_0;
46
+ return tmp_0;
47
+ }
48
+ function sign(block, $completion) {
49
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_sign__qhulg5.bind(VOID, this, block), $completion);
50
+ }
51
+ function sign_0(vote, $completion) {
52
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_sign__qhulg5_0.bind(VOID, this, vote), $completion);
53
+ }
54
+ function sign_1(challenge, timestamp, $completion) {
55
+ return this.b4t(Companion_instance.hash(64, [this.publicKey.value, challenge.value, toByteArray(timestamp)]), $completion);
56
+ }
57
+ function checkPublicKey(publicKey, $completion) {
58
+ if (!this.publicKey.equals(publicKey)) {
59
+ throw IllegalArgumentException().s2('Different public key ' + this.publicKey.toString());
60
+ }
61
+ return Unit_instance;
62
+ }
63
+ var AttoSignerClass;
64
+ function AttoSigner() {
65
+ if (AttoSignerClass === VOID) {
66
+ class $ {}
67
+ initMetadataForInterface($, 'AttoSigner', VOID, VOID, VOID, [1, 2]);
68
+ AttoSignerClass = $;
69
+ }
70
+ return AttoSignerClass;
71
+ }
6
72
  function toSigner(_this__u8e3s4) {
7
73
  return new (InMemorySigner())(_this__u8e3s4);
8
74
  }
75
+ //region block: init
76
+ Companion_instance_0 = new (Companion())();
77
+ //endregion
9
78
  //region block: exports
10
79
  export {
80
+ Companion as Companion1l27yp7mvqvwr,
81
+ AttoSigner as AttoSigner1s0b1owma3lqw,
11
82
  toSigner as toSignerroyf4kwojbn,
83
+ checkPublicKey as checkPublicKey3mr0m5k4v724a,
84
+ sign as sign2v0z7umkpvgvl,
85
+ sign_0 as sign1uej56tki34gj,
86
+ sign_1 as sign389wfge3kn7yi,
87
+ Companion_getInstance as Companion_getInstance1yz9pclaxooeb,
12
88
  };
13
89
  //endregion
14
90
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoSigner.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["toSigner","<this>"],"mappings":";;;;;iBA6CAA,CAAIC,aAAJD,EAA4C;A,EAAoB,8BAAL,aAAK,C;AAAD,C;;;;;"}
1
+ {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoSigner.kt"],"sourcesContent":["package cash.atto.commons\n\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlin.js.JsName\n\n@JsExportForJs\ninterface AttoSigner {\n companion object {}\n\n val algorithm: AttoAlgorithm\n val publicKey: AttoPublicKey\n val address: AttoAddress\n\n @JsName(\"signHash\")\n suspend fun sign(hash: AttoHash): AttoSignature\n\n @JsName(\"signBlock\")\n suspend fun sign(block: AttoBlock): AttoSignature {\n checkPublicKey(block.publicKey)\n return sign(block.hash)\n }\n\n @JsName(\"signVote\")\n suspend fun sign(vote: AttoVote): AttoSignature {\n checkPublicKey(vote.publicKey)\n return sign(vote.hash)\n }\n\n @JsName(\"signChallenge\")\n suspend fun sign(\n challenge: AttoChallenge,\n timestamp: AttoInstant,\n ): AttoSignature = sign(AttoHash.hash(64, publicKey.value, challenge.value, timestamp.toByteArray()))\n\n suspend fun checkPublicKey(publicKey: AttoPublicKey) {\n if (this.publicKey != publicKey) {\n throw IllegalArgumentException(\"Different public key ${this.publicKey}\")\n }\n }\n}\n\nexpect class InMemorySigner(\n privateKey: AttoPrivateKey,\n) : AttoSigner {\n override val algorithm: AttoAlgorithm\n override val publicKey: AttoPublicKey\n override val address: AttoAddress\n\n internal val privateKey: AttoPrivateKey\n\n override suspend fun sign(hash: AttoHash): AttoSignature\n}\n\nfun AttoPrivateKey.toSigner(): AttoSigner = InMemorySigner(this)\n\nfun AttoSeed.toSigner(index: AttoKeyIndex): AttoSigner = toPrivateKey(index).toSigner()\n\nfun AttoSeed.toSigner(index: UInt): AttoSigner = toPrivateKey(index).toSigner()\n\nfun AttoSeed.toSigner(index: Int): AttoSigner = toPrivateKey(index).toSigner()\n\nsuspend fun AttoPrivateKey.sign(hash: AttoHash): AttoSignature = this.toSigner().sign(hash)\n"],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-sign>","block","$completion","vote","sign","challenge","timestamp","checkPublicKey","publicKey","toSigner","<this>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAiBYA,CAAA,K,EAASC,K,EAATC,WAAAF,EAA0C;A,MAC9C,gBAAe,KAAf,CAAqB,SAArB,c;;;MACO,kBAAK,KAAL,CAAW,IAAX,c;;;EAAP,Y;AACJ,C;mCAGQA,CAAA,K,EAASG,I,EAATD,WAAAF,EAAwC;A,MAC5C,gBAAe,IAAf,CAAoB,SAApB,c;;;MACO,kBAAK,IAAL,CAAU,IAAV,c;;;EAAP,Y;AACJ,C;aATQI,CAASH,K,EAATC,WAAAE,E;;C;eAMAA,CAASD,I,EAATD,WAAAE,E;;C;eAMAA,CACJC,S,EACAC,S,EAFIJ,WAAAE,EAGW;A,EAAiF,OAAjF,SAAc,wBAAK,EAAL,EAAmB,CAAV,IAAU,CAAV,SAAU,QAAO,SAAP,CAAiB,KAAjB,EAAkC,YAAV,SAAU,CAAlC,CAAnB,CAAd,c;AAAiF,C;uBAE5FG,CAAmBC,S,EAAnBN,WAAAK,EAA6C;A,EAC7C,UAAK,SAAL,QAAkB,SAAlB,E,CAA6B;A,IAC7B,oCAAgC,uBAAhC,GAAuD,IAAvD,CAA4D,SAA5D,Y;EACJ,C;EACJ,oB;AAAA,C;;;;;;;;;;iBAeJE,CAAIC,aAAJD,EAA4C;A,EAAoB,8BAAL,aAAK,C;AAAD,C;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  type Nullable<T> = T | null | undefined
2
2
  declare function KtSingleton<T>(): T & (abstract new() => any);
3
- export declare class AttoTransaction implements HeightSupport, AddressSupport/*, AttoSerializable */ {
3
+ export declare class AttoTransaction implements HeightSupport, AddressSupport, AttoSerializable {
4
4
  constructor(block: AttoBlock, signature: AttoSignature, work: AttoWork);
5
5
  get block(): AttoBlock;
6
6
  get signature(): AttoSignature;
@@ -8,14 +8,15 @@ export declare class AttoTransaction implements HeightSupport, AddressSupport/*,
8
8
  get hash(): AttoHash;
9
9
  get height(): AttoHeight;
10
10
  get address(): AttoAddress;
11
- validate(): any/* AttoValidation */;
11
+ validate(): AttoValidation;
12
12
  isValid(): boolean;
13
13
  getTotalSize(): number;
14
14
  toString(): string;
15
15
  copy(block?: AttoBlock, signature?: AttoSignature, work?: AttoWork): AttoTransaction;
16
16
  hashCode(): number;
17
17
  equals(other: Nullable<any>): boolean;
18
- readonly __doNotUseOrImplementIt: HeightSupport["__doNotUseOrImplementIt"] & AddressSupport["__doNotUseOrImplementIt"];
18
+ toByteArray(): Int8Array;
19
+ readonly __doNotUseOrImplementIt: HeightSupport["__doNotUseOrImplementIt"] & AddressSupport["__doNotUseOrImplementIt"] & AttoSerializable["__doNotUseOrImplementIt"];
19
20
  }
20
21
  export declare namespace AttoTransaction {
21
22
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -30,7 +31,6 @@ export declare namespace AttoTransaction {
30
31
  namespace $metadata$ {
31
32
  abstract class constructor {
32
33
  get SIZE(): number;
33
- fromBuffer(buffer: any/* Buffer */): Nullable<AttoTransaction>;
34
34
  private constructor();
35
35
  }
36
36
  }
@@ -50,13 +50,17 @@ import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../kotlin-
50
50
  import { isValid38ww8lpvtnklo as isValid } from './AttoSignature.js.mjs';
51
51
  import { Buffergs925ekssbch as Buffer } from '../../../../kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs';
52
52
  import { throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException } from '../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs';
53
+ import {
54
+ toByteArrayholgcuj5zgpi as toByteArray,
55
+ AttoSerializable291xn050uxg51 as AttoSerializable,
56
+ } from './AttoSerializable.mjs';
53
57
  //region block: imports
54
58
  var imul = Math.imul;
55
59
  //endregion
56
60
  //region block: pre-declaration
57
61
  //endregion
58
62
  function AttoTransaction$Companion$$childSerializers$_anonymous__8sfh5y() {
59
- return Companion_instance.y1g();
63
+ return Companion_instance.b1h();
60
64
  }
61
65
  var CompanionClass;
62
66
  function Companion() {
@@ -69,17 +73,17 @@ function Companion() {
69
73
  // Inline function 'kotlin.arrayOf' call
70
74
  // Inline function 'kotlin.js.unsafeCast' call
71
75
  // Inline function 'kotlin.js.asDynamic' call
72
- tmp.p4s_1 = [lazy(tmp_0, AttoTransaction$Companion$$childSerializers$_anonymous__8sfh5y), null, null];
76
+ tmp.g4t_1 = [lazy(tmp_0, AttoTransaction$Companion$$childSerializers$_anonymous__8sfh5y), null, null];
73
77
  this.SIZE = 72;
74
78
  }
75
- j4s() {
79
+ x4s() {
76
80
  return this.SIZE;
77
81
  }
78
- fromBuffer(buffer) {
82
+ n4n(buffer) {
79
83
  if (72n > buffer.u2()) {
80
84
  return null;
81
85
  }
82
- var tmp0_elvis_lhs = Companion_instance.fromBuffer(buffer);
86
+ var tmp0_elvis_lhs = Companion_instance.n4n(buffer);
83
87
  var tmp;
84
88
  if (tmp0_elvis_lhs == null) {
85
89
  return null;
@@ -93,7 +97,7 @@ function Companion() {
93
97
  }
94
98
  return transaction;
95
99
  }
96
- y1g() {
100
+ b1h() {
97
101
  return $serializer_getInstance();
98
102
  }
99
103
  }
@@ -115,77 +119,77 @@ function $serializer() {
115
119
  constructor() {
116
120
  $serializer_instance = this;
117
121
  var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('cash.atto.commons.AttoTransaction', this, 3);
118
- tmp0_serialDesc.z14('block', false);
119
- tmp0_serialDesc.z14('signature', false);
120
- tmp0_serialDesc.z14('work', false);
121
- this.q4s_1 = tmp0_serialDesc;
122
- }
123
- r4s(encoder, value) {
124
- var tmp0_desc = this.q4s_1;
125
- var tmp1_output = encoder.lx(tmp0_desc);
126
- var tmp2_cached = Companion_getInstance().p4s_1;
127
- tmp1_output.cz(tmp0_desc, 0, tmp2_cached[0].g3(), value.block);
128
- tmp1_output.cz(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), value.signature);
129
- tmp1_output.cz(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), value.work);
130
- tmp1_output.mx(tmp0_desc);
131
- }
132
- xs(encoder, value) {
133
- return this.r4s(encoder, value instanceof AttoTransaction() ? value : THROW_CCE());
134
- }
135
- ys(decoder) {
136
- var tmp0_desc = this.q4s_1;
122
+ tmp0_serialDesc.c15('block', false);
123
+ tmp0_serialDesc.c15('signature', false);
124
+ tmp0_serialDesc.c15('work', false);
125
+ this.h4t_1 = tmp0_serialDesc;
126
+ }
127
+ i4t(encoder, value) {
128
+ var tmp0_desc = this.h4t_1;
129
+ var tmp1_output = encoder.ox(tmp0_desc);
130
+ var tmp2_cached = Companion_getInstance().g4t_1;
131
+ tmp1_output.fz(tmp0_desc, 0, tmp2_cached[0].g3(), value.block);
132
+ tmp1_output.fz(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), value.signature);
133
+ tmp1_output.fz(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), value.work);
134
+ tmp1_output.px(tmp0_desc);
135
+ }
136
+ at(encoder, value) {
137
+ return this.i4t(encoder, value instanceof AttoTransaction() ? value : THROW_CCE());
138
+ }
139
+ bt(decoder) {
140
+ var tmp0_desc = this.h4t_1;
137
141
  var tmp1_flag = true;
138
142
  var tmp2_index = 0;
139
143
  var tmp3_bitMask0 = 0;
140
144
  var tmp4_local0 = null;
141
145
  var tmp5_local1 = null;
142
146
  var tmp6_local2 = null;
143
- var tmp8_input = decoder.lx(tmp0_desc);
144
- var tmp9_cached = Companion_getInstance().p4s_1;
145
- if (tmp8_input.ay()) {
146
- tmp4_local0 = tmp8_input.xx(tmp0_desc, 0, tmp9_cached[0].g3(), tmp4_local0);
147
+ var tmp8_input = decoder.ox(tmp0_desc);
148
+ var tmp9_cached = Companion_getInstance().g4t_1;
149
+ if (tmp8_input.dy()) {
150
+ tmp4_local0 = tmp8_input.ay(tmp0_desc, 0, tmp9_cached[0].g3(), tmp4_local0);
147
151
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
148
- tmp5_local1 = tmp8_input.xx(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), tmp5_local1);
152
+ tmp5_local1 = tmp8_input.ay(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), tmp5_local1);
149
153
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
150
- tmp6_local2 = tmp8_input.xx(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), tmp6_local2);
154
+ tmp6_local2 = tmp8_input.ay(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), tmp6_local2);
151
155
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
152
156
  } else
153
157
  while (tmp1_flag) {
154
- tmp2_index = tmp8_input.by(tmp0_desc);
158
+ tmp2_index = tmp8_input.ey(tmp0_desc);
155
159
  switch (tmp2_index) {
156
160
  case -1:
157
161
  tmp1_flag = false;
158
162
  break;
159
163
  case 0:
160
- tmp4_local0 = tmp8_input.xx(tmp0_desc, 0, tmp9_cached[0].g3(), tmp4_local0);
164
+ tmp4_local0 = tmp8_input.ay(tmp0_desc, 0, tmp9_cached[0].g3(), tmp4_local0);
161
165
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
162
166
  break;
163
167
  case 1:
164
- tmp5_local1 = tmp8_input.xx(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), tmp5_local1);
168
+ tmp5_local1 = tmp8_input.ay(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), tmp5_local1);
165
169
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
166
170
  break;
167
171
  case 2:
168
- tmp6_local2 = tmp8_input.xx(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), tmp6_local2);
172
+ tmp6_local2 = tmp8_input.ay(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), tmp6_local2);
169
173
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
170
174
  break;
171
175
  default:
172
- throw UnknownFieldException().su(tmp2_index);
176
+ throw UnknownFieldException().vu(tmp2_index);
173
177
  }
174
178
  }
175
- tmp8_input.mx(tmp0_desc);
176
- return AttoTransaction().t4s(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
179
+ tmp8_input.px(tmp0_desc);
180
+ return AttoTransaction().k4t(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
177
181
  }
178
- ws() {
179
- return this.q4s_1;
182
+ zs() {
183
+ return this.h4t_1;
180
184
  }
181
- o15() {
185
+ r15() {
182
186
  // Inline function 'kotlin.arrayOf' call
183
187
  // Inline function 'kotlin.js.unsafeCast' call
184
188
  // Inline function 'kotlin.js.asDynamic' call
185
- return [Companion_getInstance().p4s_1[0].g3(), AttoSignatureAsStringSerializer_getInstance(), AttoWorkAsStringSerializer_getInstance()];
189
+ return [Companion_getInstance().g4t_1[0].g3(), AttoSignatureAsStringSerializer_getInstance(), AttoWorkAsStringSerializer_getInstance()];
186
190
  }
187
191
  }
188
- protoOf($).p15 = typeParametersSerializers;
192
+ protoOf($).s15 = typeParametersSerializers;
189
193
  initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
190
194
  $serializerClass = $;
191
195
  }
@@ -216,28 +220,28 @@ function AttoTransaction() {
216
220
  this.signature = signature;
217
221
  this.work = work;
218
222
  var tmp = this;
219
- tmp.s4s_1 = lazy_0(AttoTransaction$hash$delegate$lambda(this));
223
+ tmp.j4t_1 = lazy_0(AttoTransaction$hash$delegate$lambda(this));
220
224
  }
221
- u4s() {
225
+ l4t() {
222
226
  return this.block;
223
227
  }
224
- v4s() {
228
+ m4t() {
225
229
  return this.signature;
226
230
  }
227
- w4s() {
231
+ n4t() {
228
232
  return this.work;
229
233
  }
230
- k4l() {
231
- var tmp0 = this.s4s_1;
234
+ n4l() {
235
+ var tmp0 = this.j4t_1;
232
236
  var tmp = KProperty1();
233
237
  // Inline function 'kotlin.getValue' call
234
238
  getPropertyCallableRef('hash', 1, tmp, AttoTransaction$_get_hash_$ref_ha8bds(), null);
235
239
  return tmp0.g3();
236
240
  }
237
- g4k() {
241
+ j4k() {
238
242
  return this.block.height;
239
243
  }
240
- m4k() {
244
+ p4k() {
241
245
  return this.block.address;
242
246
  }
243
247
  validate() {
@@ -258,16 +262,16 @@ function AttoTransaction() {
258
262
  return Ok_instance;
259
263
  }
260
264
  isValid() {
261
- return this.validate().n4n();
265
+ return this.validate().isValid;
262
266
  }
263
267
  getTotalSize() {
264
- return 72 + this.block.type.size | 0;
268
+ return 72 + this.block.type.l4n_1 | 0;
265
269
  }
266
- a4m() {
267
- var serializedBlock = this.block.a4m();
270
+ d4m() {
271
+ var serializedBlock = this.block.d4m();
268
272
  // Inline function 'kotlin.apply' call
269
273
  var this_0 = new (Buffer())();
270
- this_0.r2i(serializedBlock, serializedBlock.u2());
274
+ this_0.u2i(serializedBlock, serializedBlock.u2());
271
275
  writeAttoSignature(this_0, this.signature);
272
276
  writeAttoWork(this_0, this.work);
273
277
  return this_0;
@@ -275,23 +279,23 @@ function AttoTransaction() {
275
279
  toString() {
276
280
  return 'AttoTransaction(hash=' + this.hash.toString() + ', block=' + toString(this.block) + ', signature=' + this.signature.toString() + ', work=' + this.work.toString() + ', hash=' + this.hash.toString() + ')';
277
281
  }
278
- ye() {
282
+ bf() {
279
283
  return this.block;
280
284
  }
281
- ze() {
285
+ cf() {
282
286
  return this.signature;
283
287
  }
284
- v4k() {
288
+ y4k() {
285
289
  return this.work;
286
290
  }
287
- x4s(block, signature, work) {
291
+ o4t(block, signature, work) {
288
292
  return new (AttoTransaction())(block, signature, work);
289
293
  }
290
294
  copy(block, signature, work, $super) {
291
295
  block = block === VOID ? this.block : block;
292
296
  signature = signature === VOID ? this.signature : signature;
293
297
  work = work === VOID ? this.work : work;
294
- return $super === VOID ? this.x4s(block, signature, work) : $super.x4s.call(this, block, signature, work);
298
+ return $super === VOID ? this.o4t(block, signature, work) : $super.o4t.call(this, block, signature, work);
295
299
  }
296
300
  hashCode() {
297
301
  var result = hashCode(this.block);
@@ -312,30 +316,31 @@ function AttoTransaction() {
312
316
  return false;
313
317
  return true;
314
318
  }
315
- static t4s(seen0, block, signature, work, serializationConstructorMarker) {
319
+ static k4t(seen0, block, signature, work, serializationConstructorMarker) {
316
320
  Companion_getInstance();
317
321
  if (!(7 === (7 & seen0))) {
318
- throwMissingFieldException(seen0, 7, $serializer_getInstance().q4s_1);
322
+ throwMissingFieldException(seen0, 7, $serializer_getInstance().h4t_1);
319
323
  }
320
324
  var $this = createThis(this);
321
325
  $this.block = block;
322
326
  $this.signature = signature;
323
327
  $this.work = work;
324
328
  var tmp = $this;
325
- tmp.s4s_1 = lazy_0(AttoTransaction$_init_$lambda_46wg3f($this));
329
+ tmp.j4t_1 = lazy_0(AttoTransaction$_init_$lambda_46wg3f($this));
326
330
  return $this;
327
331
  }
328
332
  get hash() {
329
- return this.k4l();
333
+ return this.n4l();
330
334
  }
331
335
  get height() {
332
- return this.g4k();
336
+ return this.j4k();
333
337
  }
334
338
  get address() {
335
- return this.m4k();
339
+ return this.p4k();
336
340
  }
337
341
  }
338
- initMetadataForClass($, 'AttoTransaction', VOID, VOID, [HeightSupport(), AddressSupport()], VOID, VOID, {0: $serializer_getInstance});
342
+ protoOf($).toByteArray = toByteArray;
343
+ initMetadataForClass($, 'AttoTransaction', VOID, VOID, [HeightSupport(), AddressSupport(), AttoSerializable()], VOID, VOID, {0: $serializer_getInstance});
339
344
  AttoTransactionClass = $;
340
345
  }
341
346
  return AttoTransactionClass;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoTransaction.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Lazy.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Standard.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["AttoTransaction$Companion$$childSerializers$<anonymous>","<get-SIZE>","fromBuffer","buffer","block","transaction","serializer","serialize","encoder","value","deserialize","childSerializers","AttoTransaction$hash$delegate$lambda","AttoTransaction$hash$delegate$lambda$lambda","AttoTransaction$<init>$lambda","AttoTransaction$<init>$lambda$lambda","signature","work","<get-block>","<get-signature>","<get-work>","<get-hash>","<get-height>","<get-address>","validate","blockValidation","isValid","getTotalSize","toBuffer","serializedBlock","toString","result"],"mappings":"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"}
1
+ {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoTransaction.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Lazy.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Standard.kt"],"sourcesContent":["@file:OptIn(ExperimentalJsExport::class)\n\npackage cash.atto.commons\n\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlinx.io.Buffer\nimport kotlinx.io.readByteArray\nimport kotlinx.serialization.KSerializer\nimport kotlinx.serialization.Serializable\nimport kotlinx.serialization.builtins.ByteArraySerializer\nimport kotlinx.serialization.descriptors.PrimitiveKind\nimport kotlinx.serialization.descriptors.PrimitiveSerialDescriptor\nimport kotlinx.serialization.encoding.Decoder\nimport kotlinx.serialization.encoding.Encoder\nimport kotlin.js.ExperimentalJsExport\nimport kotlin.js.JsExport\n\n@JsExportForJs\n@Serializable\ndata class AttoTransaction(\n val block: AttoBlock,\n val signature: AttoSignature,\n val work: AttoWork,\n) : HeightSupport,\n AddressSupport,\n AttoSerializable {\n val hash by lazy { block.hash }\n\n override val height: AttoHeight\n get() = block.height\n\n override val address: AttoAddress\n get() = block.address\n\n companion object {\n const val SIZE = 72\n\n @JsExport.Ignore\n fun fromBuffer(buffer: Buffer): AttoTransaction? {\n if (SIZE > buffer.size) {\n return null\n }\n\n val block = AttoBlock.fromBuffer(buffer) ?: return null\n\n val transaction =\n AttoTransaction(\n block = block,\n signature = buffer.readAttoSignature(),\n work = buffer.readAttoWork(),\n )\n\n if (!transaction.isValid()) {\n return null\n }\n\n return transaction\n }\n }\n\n fun validate(): AttoValidation {\n when (val blockValidation = block.validate()) {\n is AttoValidation.Ok -> Unit\n is AttoValidation.Error -> return blockValidation\n }\n\n if (!work.isValid(block)) {\n return AttoValidation.Error(\n \"Work is invalid\",\n )\n }\n\n if (!signature.isValid(block.publicKey, block.hash)) {\n return AttoValidation.Error(\n \"Signature is invalid: publicKey=${block.publicKey}, hash=${block.hash}\",\n )\n }\n\n return AttoValidation.Ok\n }\n\n /**\n * Minimal block validation. This method doesn't check this transaction against the ledger so further validations are required.\n */\n fun isValid(): Boolean = validate().isValid\n\n /**\n * Return the transaction and block size\n */\n fun getTotalSize(): Int = SIZE + block.type.size\n\n @JsExport.Ignore\n override fun toBuffer(): Buffer {\n val serializedBlock = block.toBuffer()\n return Buffer().apply {\n this.write(serializedBlock, serializedBlock.size)\n this.writeAttoSignature(signature)\n this.writeAttoWork(work)\n }\n }\n\n override fun toString(): String = \"AttoTransaction(hash=$hash, block=$block, signature=$signature, work=$work, hash=$hash)\"\n}\n\nobject AttoTransactionAsByteArraySerializer : KSerializer<AttoTransaction> {\n override val descriptor = PrimitiveSerialDescriptor(\"AttoTransactionAsByteArray\", PrimitiveKind.BYTE)\n\n override fun serialize(\n encoder: Encoder,\n value: AttoTransaction,\n ) {\n encoder.encodeSerializableValue(ByteArraySerializer(), value.toBuffer().readByteArray())\n }\n\n override fun deserialize(decoder: Decoder): AttoTransaction =\n AttoTransaction.fromBuffer(decoder.decodeSerializableValue(ByteArraySerializer()).toBuffer())!!\n}\n",null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["AttoTransaction$Companion$$childSerializers$<anonymous>","<get-SIZE>","fromBuffer","buffer","block","transaction","serializer","serialize","encoder","value","deserialize","childSerializers","AttoTransaction$hash$delegate$lambda","AttoTransaction$hash$delegate$lambda$lambda","AttoTransaction$<init>$lambda","AttoTransaction$<init>$lambda$lambda","signature","work","<get-block>","<get-signature>","<get-work>","<get-hash>","<get-height>","<get-address>","validate","blockValidation","isValid","getTotalSize","toBuffer","serializedBlock","toString","result"],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare interface AttoValidation {
4
+ readonly isValid: boolean;
5
+ getError(): Nullable<string>;
6
+ readonly __doNotUseOrImplementIt: {
7
+ readonly "cash.atto.commons.AttoValidation": unique symbol;
8
+ };
9
+ }
@@ -0,0 +1,4 @@
1
+ //region block: pre-declaration
2
+ //endregion
3
+
4
+ //# sourceMappingURL=AttoValidation.export.mjs.map