@attocash/commons-js 5.0.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.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Clock.mjs +34 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Clock.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DateTimeUnit.mjs +323 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DateTimeUnit.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DayOfWeek.mjs +100 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DayOfWeek.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs +104 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Instant.mjs +258 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Instant.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/JSJodaExceptions.mjs +24 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/JSJodaExceptions.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs +247 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs +157 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs +174 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Month.mjs +126 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Month.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs +194 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs +263 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +845 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs +95 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs +243 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs +864 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +317 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs +756 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs +682 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs +52 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs +240 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs +175 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs +698 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs +107 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs +71 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs +124 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs +260 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParseResult.mjs +61 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParseResult.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs +456 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs +683 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs +94 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathJs.mjs +46 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathJs.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/util.mjs +57 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/util.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs +442 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/InstantSerializers.mjs +53 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/InstantSerializers.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs +53 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs +53 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs +53 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs +130 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.export.d.ts +19 -0
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.export.mjs +23 -0
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +109 -0
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAccount.export.d.ts +41 -0
- package/commons-commons-core/cash/atto/commons/AttoAccount.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoAccount.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +534 -0
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.export.d.ts +37 -0
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +468 -0
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.d.ts +36 -0
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +236 -0
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.export.d.ts +33 -0
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.export.mjs +25 -0
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +162 -0
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.d.ts +51 -0
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs +30 -0
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +341 -0
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoBlock.export.d.ts +252 -0
- package/commons-commons-core/cash/atto/commons/AttoBlock.export.mjs +61 -0
- package/commons-commons-core/cash/atto/commons/AttoBlock.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +2483 -0
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +141 -0
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoChallenge.export.d.ts +25 -0
- package/commons-commons-core/cash/atto/commons/AttoChallenge.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoChallenge.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +133 -0
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoHash.export.d.ts +35 -0
- package/commons-commons-core/cash/atto/commons/AttoHash.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoHash.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +182 -0
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +47 -0
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.d.ts +30 -0
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +233 -0
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoNetwork.export.d.ts +51 -0
- package/commons-commons-core/cash/atto/commons/AttoNetwork.export.mjs +33 -0
- package/commons-commons-core/cash/atto/commons/AttoNetwork.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +189 -0
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.export.d.ts +25 -0
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +65 -0
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +189 -0
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.export.d.ts +26 -0
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.mjs +21 -0
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +129 -0
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoReceivable.export.d.ts +34 -0
- package/commons-commons-core/cash/atto/commons/AttoReceivable.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoReceivable.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +413 -0
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSeed.export.d.ts +14 -0
- package/commons-commons-core/cash/atto/commons/AttoSeed.export.mjs +13 -0
- package/commons-commons-core/cash/atto/commons/AttoSeed.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +61 -0
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSignature.export.d.ts +27 -0
- package/commons-commons-core/cash/atto/commons/AttoSignature.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoSignature.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSignature.js.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoSignature.js.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +135 -0
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.export.d.ts +14 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.export.mjs +12 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +478 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +169 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.d.ts +15 -0
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs +13 -0
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +81 -0
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoTransaction.export.d.ts +34 -0
- package/commons-commons-core/cash/atto/commons/AttoTransaction.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoTransaction.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +338 -0
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoVersion.export.d.ts +25 -0
- package/commons-commons-core/cash/atto/commons/AttoVersion.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoVersion.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +156 -0
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoVote.export.d.ts +35 -0
- package/commons-commons-core/cash/atto/commons/AttoVote.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoVote.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +387 -0
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoWork.export.d.ts +29 -0
- package/commons-commons-core/cash/atto/commons/AttoWork.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoWork.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +250 -0
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/Extensions.export.d.ts +4 -0
- package/commons-commons-core/cash/atto/commons/Extensions.export.mjs +16 -0
- package/commons-commons-core/cash/atto/commons/Extensions.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +99 -0
- package/commons-commons-core/cash/atto/commons/Extensions.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +55 -0
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +54 -0
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +156 -0
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +40 -0
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs.map +1 -0
- package/commons-commons-core.mjs +29 -0
- package/commons-commons-core.mjs.map +1 -0
- package/commons-commons-js/cash/atto/commons/js/Placeholder.mjs +14 -0
- package/commons-commons-js/cash/atto/commons/js/Placeholder.mjs.map +1 -0
- package/commons-commons-js.mjs +10 -0
- package/commons-commons-js.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.d.ts +99 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.mjs +37 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +21 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.mjs +4 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +94 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +865 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +1857 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.export.d.ts +3 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.export.mjs +12 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.export.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +577 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -0
- package/commons-commons-node-remote.mjs +7 -0
- package/commons-commons-node-remote.mjs.map +1 -0
- package/commons-commons-node.mjs +7 -0
- package/commons-commons-node.mjs.map +1 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +73 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs.map +1 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.export.d.ts +10 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.export.mjs +4 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.export.mjs.map +1 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.mjs +22 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.mjs.map +1 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +399 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs.map +1 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.export.d.ts +3 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.export.mjs +12 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.export.mjs.map +1 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +272 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs.map +1 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +402 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs.map +1 -0
- package/commons-commons-worker-remote.mjs +7 -0
- package/commons-commons-worker-remote.mjs.map +1 -0
- package/commons-commons-worker.mjs +4 -0
- package/commons-commons-worker.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/index.mjs +5 -0
- package/kotlin-kotlin-stdlib/KTypeHelpers.mjs +47 -0
- package/kotlin-kotlin-stdlib/KTypeHelpers.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs +52 -0
- package/kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Char.mjs +133 -0
- package/kotlin-kotlin-stdlib/kotlin/Char.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/CharSequence.mjs +22 -0
- package/kotlin-kotlin-stdlib/kotlin/CharSequence.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Comparable.mjs +22 -0
- package/kotlin-kotlin-stdlib/kotlin/Comparable.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/ComparatorJs.mjs +22 -0
- package/kotlin-kotlin-stdlib/kotlin/ComparatorJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +158 -0
- package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Enum.mjs +71 -0
- package/kotlin-kotlin-stdlib/kotlin/Enum.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +98 -0
- package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Library.mjs +29 -0
- package/kotlin-kotlin-stdlib/kotlin/Library.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Number.mjs +22 -0
- package/kotlin-kotlin-stdlib/kotlin/Number.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/NumbersJs.mjs +53 -0
- package/kotlin-kotlin-stdlib/kotlin/NumbersJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Primitives.mjs +163 -0
- package/kotlin-kotlin-stdlib/kotlin/Primitives.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Result.mjs +143 -0
- package/kotlin-kotlin-stdlib/kotlin/Result.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Standard.mjs +31 -0
- package/kotlin-kotlin-stdlib/kotlin/Standard.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +103 -0
- package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/UByte.mjs +105 -0
- package/kotlin-kotlin-stdlib/kotlin/UByte.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +186 -0
- package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +105 -0
- package/kotlin-kotlin-stdlib/kotlin/UInt.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +186 -0
- package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +108 -0
- package/kotlin-kotlin-stdlib/kotlin/ULong.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +187 -0
- package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/UShort.mjs +106 -0
- package/kotlin-kotlin-stdlib/kotlin/UShort.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +186 -0
- package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Unit.mjs +34 -0
- package/kotlin-kotlin-stdlib/kotlin/Unit.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/UnsignedJs.mjs +169 -0
- package/kotlin-kotlin-stdlib/kotlin/UnsignedJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractCollection.mjs +101 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractCollection.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +244 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +311 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +53 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs +224 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs +101 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableSet.mjs +43 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableSet.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +77 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +547 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayFunctions.mjs +44 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayFunctions.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +214 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/ArraySorting.mjs +128 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/ArraySorting.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +92 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +313 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs +96 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +174 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs +143 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs +71 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +54 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs +726 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalMap.mjs +63 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalMap.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +65 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +37 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs +45 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashSet.mjs +48 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashSet.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +43 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +210 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs +47 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +58 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/RandomAccess.mjs +22 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/RandomAccess.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +114 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/SlidingWindow.mjs +21 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/SlidingWindow.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs +318 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs +182 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_Collections.mjs +501 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_Collections.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_CollectionsJs.mjs +30 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_CollectionsJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_Maps.mjs +41 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_Maps.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_Sets.mjs +32 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/_Sets.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs +137 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsHacks.mjs +67 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsHacks.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/comparisons/Comparisons.mjs +23 -0
- package/kotlin-kotlin-stdlib/kotlin/comparisons/Comparisons.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs +39 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +78 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +86 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +238 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs +150 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/InterceptedCoroutine.mjs +55 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/InterceptedCoroutine.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/SafeContinuationJs.mjs +76 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/SafeContinuationJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/cancellation/CancellationException.mjs +43 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/cancellation/CancellationException.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs +53 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +139 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +69 -0
- package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +437 -0
- package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/hacks.mjs +46 -0
- package/kotlin-kotlin-stdlib/kotlin/hacks.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/internal/progressionUtil.mjs +50 -0
- package/kotlin-kotlin-stdlib/kotlin/internal/progressionUtil.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/BitMask.mjs +83 -0
- package/kotlin-kotlin-stdlib/kotlin/js/BitMask.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/FunctionAdapter.mjs +22 -0
- package/kotlin-kotlin-stdlib/kotlin/js/FunctionAdapter.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +16 -0
- package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/arrays.mjs +95 -0
- package/kotlin-kotlin-stdlib/kotlin/js/arrays.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/bitUtils.mjs +70 -0
- package/kotlin-kotlin-stdlib/kotlin/js/bitUtils.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/charSequenceJs.mjs +51 -0
- package/kotlin-kotlin-stdlib/kotlin/js/charSequenceJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/compareTo.mjs +79 -0
- package/kotlin-kotlin-stdlib/kotlin/js/compareTo.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs +285 -0
- package/kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/coroutineInternalJS.mjs +15 -0
- package/kotlin-kotlin-stdlib/kotlin/js/coroutineInternalJS.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs +238 -0
- package/kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs +73 -0
- package/kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/numberConversion.mjs +75 -0
- package/kotlin-kotlin-stdlib/kotlin/js/numberConversion.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/rangeTo.mjs +15 -0
- package/kotlin-kotlin-stdlib/kotlin/js/rangeTo.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs +78 -0
- package/kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/regexp.mjs +12 -0
- package/kotlin-kotlin-stdlib/kotlin/js/regexp.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs +174 -0
- package/kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/void.mjs +21 -0
- package/kotlin-kotlin-stdlib/kotlin/js/void.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/kotlin.mjs +55 -0
- package/kotlin-kotlin-stdlib/kotlin/kotlin.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/longJs.mjs +387 -0
- package/kotlin-kotlin-stdlib/kotlin/longJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/math/math.mjs +49 -0
- package/kotlin-kotlin-stdlib/kotlin/math/math.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/random/PlatformRandom.mjs +30 -0
- package/kotlin-kotlin-stdlib/kotlin/random/PlatformRandom.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +74 -0
- package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +99 -0
- package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +246 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +130 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +226 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/Range.mjs +26 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/Range.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/Ranges.mjs +17 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/Ranges.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/_Ranges.mjs +68 -0
- package/kotlin-kotlin-stdlib/kotlin/ranges/_Ranges.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KClassJs.mjs +22 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KClassJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KPropertyJs.mjs +52 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KPropertyJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeParameter.mjs +22 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeParameter.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +115 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KVariance.mjs +50 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/KVariance.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +183 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeImpl.mjs +80 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeImpl.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +64 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +285 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +169 -0
- package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +117 -0
- package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/sequences/_Sequences.mjs +64 -0
- package/kotlin-kotlin-stdlib/kotlin/sequences/_Sequences.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/Appendable.mjs +30 -0
- package/kotlin-kotlin-stdlib/kotlin/text/Appendable.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/Char.mjs +49 -0
- package/kotlin-kotlin-stdlib/kotlin/text/Char.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +33 -0
- package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +520 -0
- package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +271 -0
- package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/Indent.mjs +220 -0
- package/kotlin-kotlin-stdlib/kotlin/text/Indent.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +146 -0
- package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +154 -0
- package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +847 -0
- package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/UStrings.mjs +291 -0
- package/kotlin-kotlin-stdlib/kotlin/text/UStrings.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_CharCategories.mjs +38 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_CharCategories.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_DigitChars.mjs +61 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_DigitChars.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs +118 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_Strings.mjs +128 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_Strings.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_WhitespaceChars.mjs +17 -0
- package/kotlin-kotlin-stdlib/kotlin/text/_WhitespaceChars.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/charJs.mjs +40 -0
- package/kotlin-kotlin-stdlib/kotlin/text/charJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs +119 -0
- package/kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +100 -0
- package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +256 -0
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +139 -0
- package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +255 -0
- package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +225 -0
- package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +773 -0
- package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnit.mjs +80 -0
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnit.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +111 -0
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +179 -0
- package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +84 -0
- package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/noPackageHacks.mjs +62 -0
- package/kotlin-kotlin-stdlib/noPackageHacks.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/reflection.mjs +181 -0
- package/kotlin-kotlin-stdlib/reflection.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/reflectionJs.mjs +67 -0
- package/kotlin-kotlin-stdlib/reflectionJs.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +38 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +26 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +34 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +53 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs.map +1 -0
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +47 -0
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs.map +1 -0
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +232 -0
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs.map +1 -0
- package/kotlinx-atomicfu/kotlinx/atomicfu/Trace.common.mjs +55 -0
- package/kotlinx-atomicfu/kotlinx/atomicfu/Trace.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +98 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +285 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +96 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +855 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +105 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableJob.mjs +23 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableJob.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +108 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +96 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +87 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +72 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +65 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +78 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +83 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Debug.common.mjs +22 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Debug.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Debug.mjs +39 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Debug.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +59 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +221 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +75 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +134 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +34 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +49 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +79 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +410 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +213 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +1910 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +56 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +83 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Runnable.mjs +22 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Runnable.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/SchedulerTask.mjs +23 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/SchedulerTask.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +31 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Timeout.mjs +175 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Timeout.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +67 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Waiter.mjs +22 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Waiter.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Window.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/Window.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferOverflow.mjs +50 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferOverflow.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +3352 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +320 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +76 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +24 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +106 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +93 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +135 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Flow.mjs +100 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Flow.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/FlowCollector.mjs +22 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/FlowCollector.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +196 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +13 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +31 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +69 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +49 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs +15 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +302 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +62 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +56 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +335 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/InlineList.mjs +48 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/InlineList.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +86 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +62 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +64 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/StackTraceRecovery.mjs +23 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/StackTraceRecovery.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +29 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Synchronized.mjs +22 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Synchronized.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/SystemProps.common.mjs +50 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/SystemProps.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/SystemProps.mjs +12 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/SystemProps.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadContext.mjs +12 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadContext.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +37 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +90 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +133 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +268 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +453 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +210 -0
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +34 -0
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +67 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs +48 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +599 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +153 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +16 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs +15 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +81 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +179 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +528 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +46 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +37 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +77 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Source.mjs +23 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Source.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +148 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +249 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs +24 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs +361 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +102 -0
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/KSerializer.mjs +42 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/KSerializer.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +107 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +193 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerialFormat.mjs +32 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerialFormat.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +89 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +282 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +153 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +46 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +216 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +117 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +126 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +304 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialKinds.mjs +438 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialKinds.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +137 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +148 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +49 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +47 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +141 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +135 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CachedNames.mjs +22 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CachedNames.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +313 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +711 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +130 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +198 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +127 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/JsonInternalDependencies.mjs +15 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/JsonInternalDependencies.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +78 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +86 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +138 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +92 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +127 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +260 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +33 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +333 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs +53 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +1317 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +488 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +260 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +318 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +211 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +209 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleBuilders.mjs +15 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleBuilders.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +31 -0
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +198 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonAnnotations.mjs +42 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonAnnotations.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +96 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonDecoder.mjs +26 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonDecoder.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +431 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +570 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonEncoder.mjs +26 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonEncoder.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +12 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +756 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +107 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +221 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +48 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +126 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +259 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +155 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +107 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +24 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +47 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +364 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +64 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +80 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +699 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +381 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +170 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs +179 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +990 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +136 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/createMapForCache.mjs +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/createMapForCache.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +56 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +381 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +52 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +161 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +39 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +1338 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +122 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ExceptionUtils.nonJvm.mjs +12 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ExceptionUtils.nonJvm.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.export.d.ts +4 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.export.mjs +13 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.export.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +29 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs.map +1 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +1339 -0
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs.map +1 -0
- package/ktor-ktor-client-cio.mjs +12 -0
- package/ktor-ktor-client-cio.mjs.map +1 -0
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +816 -0
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs.map +1 -0
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/DefaultIgnoredTypesJs.mjs +25 -0
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/DefaultIgnoredTypesJs.mjs.map +1 -0
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +39 -0
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +430 -0
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +149 -0
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/HttpClientJs.mjs +59 -0
- package/ktor-ktor-client-core/io/ktor/client/HttpClientJs.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +71 -0
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +112 -0
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +311 -0
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +183 -0
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +47 -0
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +179 -0
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +476 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.js.mjs +15 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.js.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +128 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +70 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +29 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +84 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/ProxyConfig.mjs +40 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/ProxyConfig.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/ProxyConfigJs.mjs +23 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/ProxyConfigJs.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +158 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.export.d.ts +4 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.export.mjs +13 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.export.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +92 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +496 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +330 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/ReadableStream.mjs +13 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/ReadableStream.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +212 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +77 -0
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +31 -0
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +467 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +288 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +632 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransformJs.mjs +15 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransformJs.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +916 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +70 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +524 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +288 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +358 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +420 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +513 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +333 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +30 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +52 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +52 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +245 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +90 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +297 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/SSE.mjs +46 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/SSE.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/SSEClientContent.mjs +23 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/SSEClientContent.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +332 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +100 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/request/ClientUpgradeContent.mjs +23 -0
- package/ktor-ktor-client-core/io/ktor/client/request/ClientUpgradeContent.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +50 -0
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +286 -0
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +107 -0
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/request/RequestBody.mjs +48 -0
- package/ktor-ktor-client-core/io/ktor/client/request/RequestBody.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/request/UnixSockets.mjs +46 -0
- package/ktor-ktor-client-core/io/ktor/client/request/UnixSockets.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +15 -0
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +67 -0
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +197 -0
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +153 -0
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +417 -0
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +209 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +69 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +55 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/ExceptionUtils.nonJvm.mjs +24 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/ExceptionUtils.nonJvm.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +79 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +30 -0
- package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs.map +1 -0
- package/ktor-ktor-client-core.mjs +12 -0
- package/ktor-ktor-client-core.mjs.map +1 -0
- package/ktor-ktor-events/io/ktor/events/Events.mjs +97 -0
- package/ktor-ktor-events/io/ktor/events/Events.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +382 -0
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +457 -0
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +219 -0
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +153 -0
- package/ktor-ktor-http/io/ktor/http/Headers.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +373 -0
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +244 -0
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +54 -0
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +95 -0
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +108 -0
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +150 -0
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +144 -0
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/Query.mjs +109 -0
- package/ktor-ktor-http/io/ktor/http/Query.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +284 -0
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +30 -0
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +400 -0
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +141 -0
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +187 -0
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/Url.mjs +384 -0
- package/ktor-ktor-http/io/ktor/http/Url.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +157 -0
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +42 -0
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/content/Multipart.mjs +22 -0
- package/ktor-ktor-http/io/ktor/http/content/Multipart.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +137 -0
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs.map +1 -0
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +51 -0
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +36 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +680 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +221 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +171 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +389 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +468 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +888 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +51 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +58 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +314 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +366 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +64 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPoolJs.mjs +12 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPoolJs.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +477 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +30 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +30 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs.map +1 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +61 -0
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.jsAndWasmShared.mjs +12 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.jsAndWasmShared.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +700 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +27 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +414 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +28 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +89 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +1825 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +124 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +509 -0
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +107 -0
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +89 -0
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +139 -0
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/Deprecation.mjs +15 -0
- package/ktor-ktor-io/io/ktor/utils/io/Deprecation.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +65 -0
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +118 -0
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +72 -0
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +406 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Decoder.js.mjs +34 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Decoder.js.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +78 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +38 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +43 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +110 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Win1252Table.mjs +22 -0
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Win1252Table.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +12 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffers.mjs +17 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffers.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +38 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +54 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +18 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Memory.mjs +22 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Memory.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +60 -0
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +42 -0
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +81 -0
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +50 -0
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/selector/Selectable.jsAndWasmShared.mjs +22 -0
- package/ktor-ktor-network/io/ktor/network/selector/Selectable.jsAndWasmShared.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +42 -0
- package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +35 -0
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +107 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +304 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +573 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +26 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +129 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +33 -0
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +71 -0
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +34 -0
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +41 -0
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.js.mjs +56 -0
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.js.mjs.map +1 -0
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +163 -0
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs.map +1 -0
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSClientSession.nonJvm.mjs +18 -0
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSClientSession.nonJvm.mjs.map +1 -0
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +99 -0
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs.map +1 -0
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfig.nonJvm.mjs +22 -0
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfig.nonJvm.mjs.map +1 -0
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +33 -0
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs.map +1 -0
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +48 -0
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs.map +1 -0
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +419 -0
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +33 -0
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/ExtensionsJs.mjs +15 -0
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/ExtensionsJs.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +790 -0
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +195 -0
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +44 -0
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs.map +1 -0
- package/ktor-ktor-server-core/io/ktor/server/engine/ShutdownHook.jsAndWasmShared.mjs +8 -0
- package/ktor-ktor-server-core/io/ktor/server/engine/ShutdownHook.jsAndWasmShared.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +127 -0
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +73 -0
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +181 -0
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/Charset.mjs +34 -0
- package/ktor-ktor-utils/io/ktor/util/Charset.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/Collections.mjs +15 -0
- package/ktor-ktor-utils/io/ktor/util/Collections.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/CollectionsJs.mjs +12 -0
- package/ktor-ktor-utils/io/ktor/util/CollectionsJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +41 -0
- package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +152 -0
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.js.mjs +45 -0
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.js.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +225 -0
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/PlatformUtilsJs.mjs +16 -0
- package/ktor-ktor-utils/io/ktor/util/PlatformUtilsJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +377 -0
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +132 -0
- package/ktor-ktor-utils/io/ktor/util/Text.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/cio/Channels.mjs +32 -0
- package/ktor-ktor-utils/io/ktor/util/cio/Channels.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +113 -0
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +31 -0
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +519 -0
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +61 -0
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/internal/ExceptionUtilsJs.mjs +11 -0
- package/ktor-ktor-utils/io/ktor/util/internal/ExceptionUtilsJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +100 -0
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +137 -0
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +84 -0
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +16 -0
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +145 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +120 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +366 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.js.mjs +16 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.js.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +41 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineJs.mjs +15 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +50 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +91 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/StackTraceRecover.mjs +29 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/StackTraceRecover.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/StackTraceRecoverJs.mjs +12 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/StackTraceRecoverJs.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +196 -0
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +55 -0
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs.map +1 -0
- package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs +12 -0
- package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs.map +1 -0
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +217 -0
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs.map +1 -0
- package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +49 -0
- package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs.map +1 -0
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +204 -0
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs.map +1 -0
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +47 -0
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs.map +1 -0
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +173 -0
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs.map +1 -0
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +47 -0
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs.map +1 -0
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocket.mjs +19 -0
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocket.mjs.map +1 -0
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +846 -0
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs.map +1 -0
- package/package.json +23 -0
|
@@ -0,0 +1,3352 @@
|
|
|
1
|
+
import { Unit_instance1fbcbse1fwigr as Unit_instance } from '../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
2
|
+
import {
|
|
3
|
+
Segmentqmq1glevgieu as Segment,
|
|
4
|
+
closefimrnzr4lu35 as close,
|
|
5
|
+
findSegmentInternal35lxp6iondi3q as findSegmentInternal,
|
|
6
|
+
_SegmentOrClosed___get_segment__impl__jvcr9l1chmpjvbuseuk as _SegmentOrClosed___get_segment__impl__jvcr9l,
|
|
7
|
+
_SegmentOrClosed___get_isClosed__impl__qmxmlo3e3mrt157zasn as _SegmentOrClosed___get_isClosed__impl__qmxmlo,
|
|
8
|
+
SegmentOrCloseds3xpxfs4wrg9 as SegmentOrClosed,
|
|
9
|
+
} from '../internal/ConcurrentLinkedList.mjs';
|
|
10
|
+
import { atomicfu$AtomicRefArray$ofNulls2kz3j9ehigwa3 as atomicfu$AtomicRefArray$ofNulls } from '../../../../kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs';
|
|
11
|
+
import {
|
|
12
|
+
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
13
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
14
|
+
} from '../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
15
|
+
import { Waiter3lxa2a79zyo0g as Waiter } from '../Waiter.mjs';
|
|
16
|
+
import { isInterface3d6p8outrmvmk as isInterface } from '../../../../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs';
|
|
17
|
+
import { toString30pk9tzaqopn as toString } from '../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
|
|
18
|
+
import {
|
|
19
|
+
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
20
|
+
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
21
|
+
NoSuchElementException679xzhnp5bpj as NoSuchElementException,
|
|
22
|
+
} from '../../../../kotlin-kotlin-stdlib/kotlin/exceptions.mjs';
|
|
23
|
+
import {
|
|
24
|
+
toString1pkumu07cwy4m as toString_0,
|
|
25
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
26
|
+
equals2au1ep9vhcato as equals,
|
|
27
|
+
} from '../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
28
|
+
import {
|
|
29
|
+
callUndeliveredElement5xsmnofvtcme as callUndeliveredElement,
|
|
30
|
+
callUndeliveredElementCatchingException6xwxmojd3rq1 as callUndeliveredElementCatchingException,
|
|
31
|
+
} from '../internal/OnUndeliveredElement.mjs';
|
|
32
|
+
import { toLongw1zpgk99d84b as toLong } from '../../../../kotlin-kotlin-stdlib/kotlin/js/numberConversion.mjs';
|
|
33
|
+
import {
|
|
34
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
35
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
36
|
+
} from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
37
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
38
|
+
import {
|
|
39
|
+
recoverStackTrace3k4hvtb53ci4z as recoverStackTrace,
|
|
40
|
+
recoverStackTrace2i3si2i8nvw1k as recoverStackTrace_0,
|
|
41
|
+
} from '../internal/StackTraceRecovery.mjs';
|
|
42
|
+
import { intercepted2ogpsikxxj4u0 as intercepted } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
43
|
+
import {
|
|
44
|
+
getOrCreateCancellableContinuation2t1o0dr9l9i36 as getOrCreateCancellableContinuation,
|
|
45
|
+
CancellableContinuationpb2x00mxmcbt as CancellableContinuation,
|
|
46
|
+
} from '../CancellableContinuation.mjs';
|
|
47
|
+
import {
|
|
48
|
+
Companion_instance2oawqq9qiaris as Companion_instance,
|
|
49
|
+
createFailure8paxfkfa5dc7 as createFailure,
|
|
50
|
+
_Result___init__impl__xyqfz83hut4nr3dfvi3 as _Result___init__impl__xyqfz8,
|
|
51
|
+
} from '../../../../kotlin-kotlin-stdlib/kotlin/Result.mjs';
|
|
52
|
+
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
|
|
53
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
54
|
+
import { Long2qws0ah9gnpki as Long } from '../../../../kotlin-kotlin-stdlib/kotlin/Primitives.mjs';
|
|
55
|
+
import { CancellableContinuationImpl1cx201opicavg as CancellableContinuationImpl } from '../CancellableContinuationImpl.mjs';
|
|
56
|
+
import { addSuppressedu5jwjfvsc039 as addSuppressed } from '../../../../kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs';
|
|
57
|
+
import {
|
|
58
|
+
Companion_getInstance8sxi3cktwbr5 as Companion_getInstance,
|
|
59
|
+
ChannelResult2y4k69ac6y3du as ChannelResult,
|
|
60
|
+
ClosedReceiveChannelException3ofg6gf5f5b38 as ClosedReceiveChannelException,
|
|
61
|
+
ChannelResult__getOrNull_impl_f5e07h1mddh1y59r3zw as ChannelResult__getOrNull_impl_f5e07h,
|
|
62
|
+
ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
|
|
63
|
+
close$default3plsfhsdbsvbv as close$default,
|
|
64
|
+
cancel$default2g4arzbcb5isa as cancel$default,
|
|
65
|
+
SendChannel38sllbxw662ws as SendChannel,
|
|
66
|
+
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
67
|
+
} from './Channel.mjs';
|
|
68
|
+
import {
|
|
69
|
+
SelectInstance2isepgzfsd8ur as SelectInstance,
|
|
70
|
+
SelectImplementation59ci94k9x9wm as SelectImplementation,
|
|
71
|
+
TrySelectDetailedResult_REREGISTER_getInstance2a0bjw99yymto as TrySelectDetailedResult_REREGISTER_getInstance,
|
|
72
|
+
TrySelectDetailedResult_SUCCESSFUL_getInstance2uasownw8ahu5 as TrySelectDetailedResult_SUCCESSFUL_getInstance,
|
|
73
|
+
} from '../selects/Select.mjs';
|
|
74
|
+
import {
|
|
75
|
+
_InlineList___init__impl__z8n562662s9jzwcbcg as _InlineList___init__impl__z8n56,
|
|
76
|
+
InlineList__plus_impl_nuetvo2kefjf4xs4r0z as InlineList__plus_impl_nuetvo,
|
|
77
|
+
access$_get_holder__kkflen2dpfhuyt7ng33 as access$_get_holder__kkflen,
|
|
78
|
+
} from '../internal/InlineList.mjs';
|
|
79
|
+
import { ArrayList3it5z8td81qkl as ArrayList } from '../../../../kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs';
|
|
80
|
+
import {
|
|
81
|
+
atomic$long$129k9zwo6n9ogd as atomic$long$1,
|
|
82
|
+
atomic$ref$130aurmcwdfdf1 as atomic$ref$1,
|
|
83
|
+
} from '../../../../kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs';
|
|
84
|
+
import { CancellationException3b36o9qz53rgr as CancellationException } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/cancellation/CancellationException.mjs';
|
|
85
|
+
import { StringBuildermazzzhj6kkai as StringBuilder } from '../../../../kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs';
|
|
86
|
+
import { listOf1jh22dvmctj1r as listOf } from '../../../../kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs';
|
|
87
|
+
import { compareTo3ankvs086tmwq as compareTo } from '../../../../kotlin-kotlin-stdlib/kotlin/js/compareTo.mjs';
|
|
88
|
+
import { last2n4gf5az1lkn4 as last } from '../../../../kotlin-kotlin-stdlib/kotlin/text/_Strings.mjs';
|
|
89
|
+
import { _Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx } from '../../../../kotlin-kotlin-stdlib/kotlin/Char.mjs';
|
|
90
|
+
import { systemProp2qpti4y1f5b4b as systemProp } from '../internal/SystemProps.common.mjs';
|
|
91
|
+
import { Symbol17xuwzgi5g8ve as Symbol } from '../internal/Symbol.mjs';
|
|
92
|
+
//region block: imports
|
|
93
|
+
var imul = Math.imul;
|
|
94
|
+
//endregion
|
|
95
|
+
//region block: pre-declaration
|
|
96
|
+
//endregion
|
|
97
|
+
function get_NULL_SEGMENT() {
|
|
98
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
99
|
+
return NULL_SEGMENT;
|
|
100
|
+
}
|
|
101
|
+
var NULL_SEGMENT;
|
|
102
|
+
function get_SEGMENT_SIZE() {
|
|
103
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
104
|
+
return SEGMENT_SIZE;
|
|
105
|
+
}
|
|
106
|
+
var SEGMENT_SIZE;
|
|
107
|
+
function get_EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS() {
|
|
108
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
109
|
+
return EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS;
|
|
110
|
+
}
|
|
111
|
+
var EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS;
|
|
112
|
+
function get_BUFFERED() {
|
|
113
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
114
|
+
return BUFFERED;
|
|
115
|
+
}
|
|
116
|
+
var BUFFERED;
|
|
117
|
+
function get_IN_BUFFER() {
|
|
118
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
119
|
+
return IN_BUFFER;
|
|
120
|
+
}
|
|
121
|
+
var IN_BUFFER;
|
|
122
|
+
function get_RESUMING_BY_RCV() {
|
|
123
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
124
|
+
return RESUMING_BY_RCV;
|
|
125
|
+
}
|
|
126
|
+
var RESUMING_BY_RCV;
|
|
127
|
+
function get_RESUMING_BY_EB() {
|
|
128
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
129
|
+
return RESUMING_BY_EB;
|
|
130
|
+
}
|
|
131
|
+
var RESUMING_BY_EB;
|
|
132
|
+
function get_POISONED() {
|
|
133
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
134
|
+
return POISONED;
|
|
135
|
+
}
|
|
136
|
+
var POISONED;
|
|
137
|
+
function get_DONE_RCV() {
|
|
138
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
139
|
+
return DONE_RCV;
|
|
140
|
+
}
|
|
141
|
+
var DONE_RCV;
|
|
142
|
+
function get_INTERRUPTED_SEND() {
|
|
143
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
144
|
+
return INTERRUPTED_SEND;
|
|
145
|
+
}
|
|
146
|
+
var INTERRUPTED_SEND;
|
|
147
|
+
function get_INTERRUPTED_RCV() {
|
|
148
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
149
|
+
return INTERRUPTED_RCV;
|
|
150
|
+
}
|
|
151
|
+
var INTERRUPTED_RCV;
|
|
152
|
+
function get_CHANNEL_CLOSED() {
|
|
153
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
154
|
+
return CHANNEL_CLOSED;
|
|
155
|
+
}
|
|
156
|
+
var CHANNEL_CLOSED;
|
|
157
|
+
function get_SUSPEND() {
|
|
158
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
159
|
+
return SUSPEND;
|
|
160
|
+
}
|
|
161
|
+
var SUSPEND;
|
|
162
|
+
function get_SUSPEND_NO_WAITER() {
|
|
163
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
164
|
+
return SUSPEND_NO_WAITER;
|
|
165
|
+
}
|
|
166
|
+
var SUSPEND_NO_WAITER;
|
|
167
|
+
function get_FAILED() {
|
|
168
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
169
|
+
return FAILED;
|
|
170
|
+
}
|
|
171
|
+
var FAILED;
|
|
172
|
+
function get_NO_RECEIVE_RESULT() {
|
|
173
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
174
|
+
return NO_RECEIVE_RESULT;
|
|
175
|
+
}
|
|
176
|
+
var NO_RECEIVE_RESULT;
|
|
177
|
+
function get_CLOSE_HANDLER_CLOSED() {
|
|
178
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
179
|
+
return CLOSE_HANDLER_CLOSED;
|
|
180
|
+
}
|
|
181
|
+
var CLOSE_HANDLER_CLOSED;
|
|
182
|
+
function get_CLOSE_HANDLER_INVOKED() {
|
|
183
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
184
|
+
return CLOSE_HANDLER_INVOKED;
|
|
185
|
+
}
|
|
186
|
+
var CLOSE_HANDLER_INVOKED;
|
|
187
|
+
function get_NO_CLOSE_CAUSE() {
|
|
188
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
189
|
+
return NO_CLOSE_CAUSE;
|
|
190
|
+
}
|
|
191
|
+
var NO_CLOSE_CAUSE;
|
|
192
|
+
function setElementLazy($this, index, value) {
|
|
193
|
+
// Inline function 'kotlinx.atomicfu.AtomicRef.lazySet' call
|
|
194
|
+
$this.x2b_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value = value;
|
|
195
|
+
}
|
|
196
|
+
var ChannelSegmentClass;
|
|
197
|
+
function ChannelSegment() {
|
|
198
|
+
if (ChannelSegmentClass === VOID) {
|
|
199
|
+
class $ extends Segment() {
|
|
200
|
+
constructor(id, prev, channel, pointers) {
|
|
201
|
+
super(id, prev, pointers);
|
|
202
|
+
this.w2b_1 = channel;
|
|
203
|
+
this.x2b_1 = atomicfu$AtomicRefArray$ofNulls(imul(get_SEGMENT_SIZE(), 2));
|
|
204
|
+
}
|
|
205
|
+
y2b() {
|
|
206
|
+
return ensureNotNull(this.w2b_1);
|
|
207
|
+
}
|
|
208
|
+
z2b() {
|
|
209
|
+
return get_SEGMENT_SIZE();
|
|
210
|
+
}
|
|
211
|
+
a2c(index, element) {
|
|
212
|
+
setElementLazy(this, index, element);
|
|
213
|
+
}
|
|
214
|
+
b2c(index) {
|
|
215
|
+
var tmp = this.x2b_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value;
|
|
216
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
217
|
+
}
|
|
218
|
+
c2c(index) {
|
|
219
|
+
// Inline function 'kotlin.also' call
|
|
220
|
+
var this_0 = this.b2c(index);
|
|
221
|
+
this.d2c(index);
|
|
222
|
+
return this_0;
|
|
223
|
+
}
|
|
224
|
+
d2c(index) {
|
|
225
|
+
setElementLazy(this, index, null);
|
|
226
|
+
}
|
|
227
|
+
e2c(index) {
|
|
228
|
+
return this.x2b_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value;
|
|
229
|
+
}
|
|
230
|
+
f2c(index, value) {
|
|
231
|
+
this.x2b_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value = value;
|
|
232
|
+
}
|
|
233
|
+
g2c(index, from, to) {
|
|
234
|
+
return this.x2b_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$compareAndSet(from, to);
|
|
235
|
+
}
|
|
236
|
+
h2c(index, update) {
|
|
237
|
+
return this.x2b_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$getAndSet(update);
|
|
238
|
+
}
|
|
239
|
+
k22(index, cause, context) {
|
|
240
|
+
var isSender = index >= get_SEGMENT_SIZE();
|
|
241
|
+
var index_0 = isSender ? index - get_SEGMENT_SIZE() | 0 : index;
|
|
242
|
+
var element = this.b2c(index_0);
|
|
243
|
+
$l$loop: while (true) {
|
|
244
|
+
var cur = this.e2c(index_0);
|
|
245
|
+
var tmp;
|
|
246
|
+
if (!(cur == null) ? isInterface(cur, Waiter()) : false) {
|
|
247
|
+
tmp = true;
|
|
248
|
+
} else {
|
|
249
|
+
tmp = cur instanceof WaiterEB();
|
|
250
|
+
}
|
|
251
|
+
if (tmp) {
|
|
252
|
+
var update = isSender ? get_INTERRUPTED_SEND() : get_INTERRUPTED_RCV();
|
|
253
|
+
if (this.g2c(index_0, cur, update)) {
|
|
254
|
+
this.d2c(index_0);
|
|
255
|
+
this.u2c(index_0, !isSender);
|
|
256
|
+
if (isSender) {
|
|
257
|
+
var tmp0_safe_receiver = this.y2b().j2c_1;
|
|
258
|
+
if (tmp0_safe_receiver == null)
|
|
259
|
+
null;
|
|
260
|
+
else {
|
|
261
|
+
callUndeliveredElement(tmp0_safe_receiver, element, context);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return Unit_instance;
|
|
265
|
+
}
|
|
266
|
+
} else {
|
|
267
|
+
if (cur === get_INTERRUPTED_SEND() || cur === get_INTERRUPTED_RCV()) {
|
|
268
|
+
this.d2c(index_0);
|
|
269
|
+
if (isSender) {
|
|
270
|
+
var tmp1_safe_receiver = this.y2b().j2c_1;
|
|
271
|
+
if (tmp1_safe_receiver == null)
|
|
272
|
+
null;
|
|
273
|
+
else {
|
|
274
|
+
callUndeliveredElement(tmp1_safe_receiver, element, context);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return Unit_instance;
|
|
278
|
+
} else {
|
|
279
|
+
if (cur === get_RESUMING_BY_EB() || cur === get_RESUMING_BY_RCV())
|
|
280
|
+
continue $l$loop;
|
|
281
|
+
else {
|
|
282
|
+
if (cur === get_DONE_RCV() || cur === get_BUFFERED())
|
|
283
|
+
return Unit_instance;
|
|
284
|
+
else {
|
|
285
|
+
if (cur === get_CHANNEL_CLOSED())
|
|
286
|
+
return Unit_instance;
|
|
287
|
+
else {
|
|
288
|
+
// Inline function 'kotlin.error' call
|
|
289
|
+
var message = 'unexpected state: ' + toString(cur);
|
|
290
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
u2c(index, receiver) {
|
|
299
|
+
if (receiver) {
|
|
300
|
+
var tmp = this.y2b();
|
|
301
|
+
var tmp0 = this.i22_1;
|
|
302
|
+
// Inline function 'kotlin.Long.times' call
|
|
303
|
+
var other = get_SEGMENT_SIZE();
|
|
304
|
+
// Inline function 'kotlin.Long.plus' call
|
|
305
|
+
var tmp$ret$1 = tmp0.r3(toLong(other)).p3(toLong(index));
|
|
306
|
+
tmp.v2c(tmp$ret$1);
|
|
307
|
+
}
|
|
308
|
+
this.w2c();
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
initMetadataForClass($, 'ChannelSegment');
|
|
312
|
+
ChannelSegmentClass = $;
|
|
313
|
+
}
|
|
314
|
+
return ChannelSegmentClass;
|
|
315
|
+
}
|
|
316
|
+
function onClosedHasNext($this) {
|
|
317
|
+
$this.i2d_1 = get_CHANNEL_CLOSED();
|
|
318
|
+
var tmp0_elvis_lhs = $this.k2d_1.l2d();
|
|
319
|
+
var tmp;
|
|
320
|
+
if (tmp0_elvis_lhs == null) {
|
|
321
|
+
return false;
|
|
322
|
+
} else {
|
|
323
|
+
tmp = tmp0_elvis_lhs;
|
|
324
|
+
}
|
|
325
|
+
var cause = tmp;
|
|
326
|
+
throw recoverStackTrace(cause);
|
|
327
|
+
}
|
|
328
|
+
function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
329
|
+
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
330
|
+
try {
|
|
331
|
+
$this.j2d_1 = cancellable;
|
|
332
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImplOnNoWaiter' call
|
|
333
|
+
var this_0 = $this.k2d_1;
|
|
334
|
+
var updCellResult = updateCellReceive(this_0, segment, index, r, $this);
|
|
335
|
+
if (updCellResult === get_SUSPEND()) {
|
|
336
|
+
prepareReceiverForSuspension(this_0, $this, segment, index);
|
|
337
|
+
} else if (updCellResult === get_FAILED()) {
|
|
338
|
+
if (r.a2(this_0.m2d()) < 0) {
|
|
339
|
+
segment.g2d();
|
|
340
|
+
}
|
|
341
|
+
$l$block_0: {
|
|
342
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
343
|
+
var segment_0 = this_0.p2c_1.kotlinx$atomicfu$value;
|
|
344
|
+
$l$loop_0: while (true) {
|
|
345
|
+
if (this_0.n2d()) {
|
|
346
|
+
onClosedHasNextNoWaiterSuspend($this);
|
|
347
|
+
break $l$block_0;
|
|
348
|
+
}
|
|
349
|
+
var r_0 = this_0.l2c_1.atomicfu$getAndIncrement$long();
|
|
350
|
+
// Inline function 'kotlin.Long.div' call
|
|
351
|
+
var other = get_SEGMENT_SIZE();
|
|
352
|
+
var id = r_0.s3(toLong(other));
|
|
353
|
+
// Inline function 'kotlin.Long.rem' call
|
|
354
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
355
|
+
var i = r_0.t3(toLong(other_0)).c2();
|
|
356
|
+
if (!segment_0.i22_1.equals(id)) {
|
|
357
|
+
var tmp0_elvis_lhs = findSegmentReceive(this_0, id, segment_0);
|
|
358
|
+
var tmp;
|
|
359
|
+
if (tmp0_elvis_lhs == null) {
|
|
360
|
+
continue $l$loop_0;
|
|
361
|
+
} else {
|
|
362
|
+
tmp = tmp0_elvis_lhs;
|
|
363
|
+
}
|
|
364
|
+
segment_0 = tmp;
|
|
365
|
+
}
|
|
366
|
+
var updCellResult_0 = updateCellReceive(this_0, segment_0, i, r_0, $this);
|
|
367
|
+
if (updCellResult_0 === get_SUSPEND()) {
|
|
368
|
+
var tmp1_safe_receiver = (!($this == null) ? isInterface($this, Waiter()) : false) ? $this : null;
|
|
369
|
+
if (tmp1_safe_receiver == null)
|
|
370
|
+
null;
|
|
371
|
+
else {
|
|
372
|
+
prepareReceiverForSuspension(this_0, tmp1_safe_receiver, segment_0, i);
|
|
373
|
+
}
|
|
374
|
+
} else if (updCellResult_0 === get_FAILED()) {
|
|
375
|
+
if (r_0.a2(this_0.m2d()) < 0) {
|
|
376
|
+
segment_0.g2d();
|
|
377
|
+
}
|
|
378
|
+
continue $l$loop_0;
|
|
379
|
+
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
380
|
+
// Inline function 'kotlin.error' call
|
|
381
|
+
var message = 'unexpected';
|
|
382
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
383
|
+
} else {
|
|
384
|
+
segment_0.g2d();
|
|
385
|
+
var element = (updCellResult_0 == null ? true : !(updCellResult_0 == null)) ? updCellResult_0 : THROW_CCE();
|
|
386
|
+
$this.i2d_1 = element;
|
|
387
|
+
$this.j2d_1 = null;
|
|
388
|
+
var tmp0_safe_receiver = $this.k2d_1.j2c_1;
|
|
389
|
+
cancellable.k21(true, tmp0_safe_receiver == null ? null : bindCancellationFun($this.k2d_1, tmp0_safe_receiver, element));
|
|
390
|
+
}
|
|
391
|
+
break $l$block_0;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
} else {
|
|
395
|
+
segment.g2d();
|
|
396
|
+
var element_0 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
397
|
+
$this.i2d_1 = element_0;
|
|
398
|
+
$this.j2d_1 = null;
|
|
399
|
+
var tmp0_safe_receiver_0 = $this.k2d_1.j2c_1;
|
|
400
|
+
cancellable.k21(true, tmp0_safe_receiver_0 == null ? null : bindCancellationFun($this.k2d_1, tmp0_safe_receiver_0, element_0));
|
|
401
|
+
}
|
|
402
|
+
} catch ($p) {
|
|
403
|
+
if ($p instanceof Error) {
|
|
404
|
+
var e = $p;
|
|
405
|
+
cancellable.i23();
|
|
406
|
+
throw e;
|
|
407
|
+
} else {
|
|
408
|
+
throw $p;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
return cancellable.b20();
|
|
412
|
+
}
|
|
413
|
+
function onClosedHasNextNoWaiterSuspend($this) {
|
|
414
|
+
var cont = ensureNotNull($this.j2d_1);
|
|
415
|
+
$this.j2d_1 = null;
|
|
416
|
+
$this.i2d_1 = get_CHANNEL_CLOSED();
|
|
417
|
+
var cause = $this.k2d_1.l2d();
|
|
418
|
+
if (cause == null) {
|
|
419
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
420
|
+
// Inline function 'kotlin.Companion.success' call
|
|
421
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
422
|
+
cont.lc(tmp$ret$0);
|
|
423
|
+
} else {
|
|
424
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
425
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
426
|
+
var exception = recoverStackTrace_0(cause, cont);
|
|
427
|
+
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
428
|
+
cont.lc(tmp$ret$2);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
var $hasNextCOROUTINE$Class;
|
|
432
|
+
function $hasNextCOROUTINE$() {
|
|
433
|
+
if ($hasNextCOROUTINE$Class === VOID) {
|
|
434
|
+
class $ extends CoroutineImpl() {
|
|
435
|
+
constructor(_this__u8e3s4, resultContinuation) {
|
|
436
|
+
super(resultContinuation);
|
|
437
|
+
this.w2d_1 = _this__u8e3s4;
|
|
438
|
+
}
|
|
439
|
+
ic() {
|
|
440
|
+
var suspendResult = this.cc_1;
|
|
441
|
+
$sm: do
|
|
442
|
+
try {
|
|
443
|
+
var tmp = this.ac_1;
|
|
444
|
+
switch (tmp) {
|
|
445
|
+
case 0:
|
|
446
|
+
this.bc_1 = 8;
|
|
447
|
+
if (!(this.w2d_1.i2d_1 === get_NO_RECEIVE_RESULT()) && !(this.w2d_1.i2d_1 === get_CHANNEL_CLOSED())) {
|
|
448
|
+
var tmp_0 = this;
|
|
449
|
+
tmp_0.x2d_1 = true;
|
|
450
|
+
this.ac_1 = 11;
|
|
451
|
+
continue $sm;
|
|
452
|
+
} else {
|
|
453
|
+
var tmp_1 = this;
|
|
454
|
+
tmp_1.y2d_1 = this.w2d_1.k2d_1;
|
|
455
|
+
var tmp_2 = this;
|
|
456
|
+
tmp_2.z2d_1 = null;
|
|
457
|
+
this.ac_1 = 1;
|
|
458
|
+
continue $sm;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
case 1:
|
|
462
|
+
this.b2e_1 = this.y2d_1;
|
|
463
|
+
this.c2e_1 = this.z2d_1;
|
|
464
|
+
this.d2e_1 = this.b2e_1.p2c_1.kotlinx$atomicfu$value;
|
|
465
|
+
this.ac_1 = 2;
|
|
466
|
+
continue $sm;
|
|
467
|
+
case 2:
|
|
468
|
+
if (!true) {
|
|
469
|
+
this.ac_1 = 9;
|
|
470
|
+
continue $sm;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
if (this.b2e_1.n2d()) {
|
|
474
|
+
var tmp_3 = this;
|
|
475
|
+
tmp_3.a2e_1 = onClosedHasNext(this.w2d_1);
|
|
476
|
+
this.ac_1 = 10;
|
|
477
|
+
continue $sm;
|
|
478
|
+
} else {
|
|
479
|
+
this.ac_1 = 3;
|
|
480
|
+
continue $sm;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
case 3:
|
|
484
|
+
this.e2e_1 = this.b2e_1.l2c_1.atomicfu$getAndIncrement$long();
|
|
485
|
+
var tmp_4 = this;
|
|
486
|
+
var tmp0 = this.e2e_1;
|
|
487
|
+
var other = get_SEGMENT_SIZE();
|
|
488
|
+
tmp_4.f2e_1 = tmp0.s3(toLong(other));
|
|
489
|
+
var tmp_5 = this;
|
|
490
|
+
var tmp0_0 = this.e2e_1;
|
|
491
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
492
|
+
tmp_5.g2e_1 = tmp0_0.t3(toLong(other_0)).c2();
|
|
493
|
+
if (!this.d2e_1.i22_1.equals(this.f2e_1)) {
|
|
494
|
+
this.h2e_1 = findSegmentReceive(this.b2e_1, this.f2e_1, this.d2e_1);
|
|
495
|
+
if (this.h2e_1 == null) {
|
|
496
|
+
this.ac_1 = 2;
|
|
497
|
+
var tmp_6 = this;
|
|
498
|
+
continue $sm;
|
|
499
|
+
} else {
|
|
500
|
+
this.i2e_1 = this.h2e_1;
|
|
501
|
+
this.ac_1 = 4;
|
|
502
|
+
continue $sm;
|
|
503
|
+
}
|
|
504
|
+
} else {
|
|
505
|
+
this.ac_1 = 5;
|
|
506
|
+
continue $sm;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
case 4:
|
|
510
|
+
this.d2e_1 = this.i2e_1;
|
|
511
|
+
this.ac_1 = 5;
|
|
512
|
+
continue $sm;
|
|
513
|
+
case 5:
|
|
514
|
+
this.j2e_1 = updateCellReceive(this.b2e_1, this.d2e_1, this.g2e_1, this.e2e_1, this.c2e_1);
|
|
515
|
+
if (this.j2e_1 === get_SUSPEND()) {
|
|
516
|
+
var tmp_7 = this;
|
|
517
|
+
var tmp_8 = this.c2e_1;
|
|
518
|
+
var tmp1_safe_receiver = (!(tmp_8 == null) ? isInterface(tmp_8, Waiter()) : false) ? tmp_8 : null;
|
|
519
|
+
if (tmp1_safe_receiver == null)
|
|
520
|
+
null;
|
|
521
|
+
else {
|
|
522
|
+
prepareReceiverForSuspension(this.b2e_1, tmp1_safe_receiver, this.d2e_1, this.g2e_1);
|
|
523
|
+
}
|
|
524
|
+
this.d2e_1;
|
|
525
|
+
this.g2e_1;
|
|
526
|
+
this.e2e_1;
|
|
527
|
+
var message = 'unreachable';
|
|
528
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
529
|
+
} else {
|
|
530
|
+
if (this.j2e_1 === get_FAILED()) {
|
|
531
|
+
if (this.e2e_1.a2(this.b2e_1.m2d()) < 0) {
|
|
532
|
+
this.d2e_1.g2d();
|
|
533
|
+
}
|
|
534
|
+
this.ac_1 = 2;
|
|
535
|
+
var tmp_9 = this;
|
|
536
|
+
continue $sm;
|
|
537
|
+
} else {
|
|
538
|
+
if (this.j2e_1 === get_SUSPEND_NO_WAITER()) {
|
|
539
|
+
var tmp_10 = this;
|
|
540
|
+
tmp_10.l2e_1 = this.d2e_1;
|
|
541
|
+
var tmp_11 = this;
|
|
542
|
+
tmp_11.m2e_1 = this.g2e_1;
|
|
543
|
+
var tmp_12 = this;
|
|
544
|
+
tmp_12.n2e_1 = this.e2e_1;
|
|
545
|
+
this.o2e_1 = this.l2e_1;
|
|
546
|
+
this.p2e_1 = this.m2e_1;
|
|
547
|
+
this.q2e_1 = this.n2e_1;
|
|
548
|
+
this.ac_1 = 6;
|
|
549
|
+
suspendResult = hasNextOnNoWaiterSuspend(this.w2d_1, this.o2e_1, this.p2e_1, this.q2e_1, this);
|
|
550
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
551
|
+
return suspendResult;
|
|
552
|
+
}
|
|
553
|
+
continue $sm;
|
|
554
|
+
} else {
|
|
555
|
+
var tmp_13 = this;
|
|
556
|
+
this.d2e_1.g2d();
|
|
557
|
+
var tmp_14 = this.j2e_1;
|
|
558
|
+
var element = (tmp_14 == null ? true : !(tmp_14 == null)) ? tmp_14 : THROW_CCE();
|
|
559
|
+
this.w2d_1.i2d_1 = element;
|
|
560
|
+
tmp_13.k2e_1 = true;
|
|
561
|
+
this.ac_1 = 7;
|
|
562
|
+
continue $sm;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
case 6:
|
|
568
|
+
var tmp_15 = this;
|
|
569
|
+
return suspendResult;
|
|
570
|
+
case 7:
|
|
571
|
+
this.a2e_1 = this.k2e_1;
|
|
572
|
+
this.ac_1 = 10;
|
|
573
|
+
continue $sm;
|
|
574
|
+
case 8:
|
|
575
|
+
throw this.dc_1;
|
|
576
|
+
case 9:
|
|
577
|
+
if (false) {
|
|
578
|
+
this.ac_1 = 1;
|
|
579
|
+
continue $sm;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
this.ac_1 = 10;
|
|
583
|
+
continue $sm;
|
|
584
|
+
case 10:
|
|
585
|
+
this.x2d_1 = this.a2e_1;
|
|
586
|
+
this.ac_1 = 11;
|
|
587
|
+
continue $sm;
|
|
588
|
+
case 11:
|
|
589
|
+
return this.x2d_1;
|
|
590
|
+
}
|
|
591
|
+
} catch ($p) {
|
|
592
|
+
var e = $p;
|
|
593
|
+
if (this.bc_1 === 8) {
|
|
594
|
+
throw e;
|
|
595
|
+
} else {
|
|
596
|
+
this.ac_1 = this.bc_1;
|
|
597
|
+
this.dc_1 = e;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
while (true);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
initMetadataForCoroutine($);
|
|
604
|
+
$hasNextCOROUTINE$Class = $;
|
|
605
|
+
}
|
|
606
|
+
return $hasNextCOROUTINE$Class;
|
|
607
|
+
}
|
|
608
|
+
function _get_bufferEndCounter__2d4hee($this) {
|
|
609
|
+
return $this.m2c_1.kotlinx$atomicfu$value;
|
|
610
|
+
}
|
|
611
|
+
function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
612
|
+
// Inline function 'kotlin.let' call
|
|
613
|
+
var it = _get_bufferEndCounter__2d4hee($this);
|
|
614
|
+
return it.equals(new (Long())(0, 0)) || it.equals(new (Long())(-1, 2147483647));
|
|
615
|
+
}
|
|
616
|
+
function onClosedSend($this, element, $completion) {
|
|
617
|
+
var cancellable = new (CancellableContinuationImpl())(intercepted($completion), 1);
|
|
618
|
+
cancellable.a23();
|
|
619
|
+
$l$block: {
|
|
620
|
+
var tmp0_safe_receiver = $this.j2c_1;
|
|
621
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
622
|
+
if (tmp1_safe_receiver == null)
|
|
623
|
+
null;
|
|
624
|
+
else {
|
|
625
|
+
// Inline function 'kotlin.let' call
|
|
626
|
+
addSuppressed(tmp1_safe_receiver, $this.r2e());
|
|
627
|
+
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
628
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
629
|
+
var exception = recoverStackTrace_0(tmp1_safe_receiver, cancellable);
|
|
630
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
631
|
+
cancellable.lc(tmp$ret$0);
|
|
632
|
+
break $l$block;
|
|
633
|
+
}
|
|
634
|
+
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
635
|
+
var exception_0 = $this.r2e();
|
|
636
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
637
|
+
var exception_1 = recoverStackTrace_0(exception_0, cancellable);
|
|
638
|
+
var tmp$ret$4 = _Result___init__impl__xyqfz8(createFailure(exception_1));
|
|
639
|
+
cancellable.lc(tmp$ret$4);
|
|
640
|
+
}
|
|
641
|
+
return cancellable.b20();
|
|
642
|
+
}
|
|
643
|
+
function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
644
|
+
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
645
|
+
try {
|
|
646
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImplOnNoWaiter' call
|
|
647
|
+
switch (updateCellSend($this, segment, index, element, s, cancellable, false)) {
|
|
648
|
+
case 0:
|
|
649
|
+
segment.g2d();
|
|
650
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
651
|
+
|
|
652
|
+
// Inline function 'kotlin.Companion.success' call
|
|
653
|
+
|
|
654
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
655
|
+
cancellable.lc(tmp$ret$0);
|
|
656
|
+
break;
|
|
657
|
+
case 1:
|
|
658
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
659
|
+
|
|
660
|
+
// Inline function 'kotlin.Companion.success' call
|
|
661
|
+
|
|
662
|
+
var tmp$ret$3 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
663
|
+
cancellable.lc(tmp$ret$3);
|
|
664
|
+
break;
|
|
665
|
+
case 2:
|
|
666
|
+
prepareSenderForSuspension($this, cancellable, segment, index);
|
|
667
|
+
break;
|
|
668
|
+
case 4:
|
|
669
|
+
if (s.a2($this.s2e()) < 0) {
|
|
670
|
+
segment.g2d();
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
674
|
+
break;
|
|
675
|
+
case 5:
|
|
676
|
+
segment.g2d();
|
|
677
|
+
$l$block_5: {
|
|
678
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
679
|
+
var segment_0 = $this.o2c_1.kotlinx$atomicfu$value;
|
|
680
|
+
$l$loop_0: while (true) {
|
|
681
|
+
var sendersAndCloseStatusCur = $this.k2c_1.atomicfu$getAndIncrement$long();
|
|
682
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
683
|
+
var s_0 = sendersAndCloseStatusCur.c4(new (Long())(-1, 268435455));
|
|
684
|
+
var closed = _get_isClosedForSend0__kxgf9m($this, sendersAndCloseStatusCur);
|
|
685
|
+
// Inline function 'kotlin.Long.div' call
|
|
686
|
+
var other = get_SEGMENT_SIZE();
|
|
687
|
+
var id = s_0.s3(toLong(other));
|
|
688
|
+
// Inline function 'kotlin.Long.rem' call
|
|
689
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
690
|
+
var i = s_0.t3(toLong(other_0)).c2();
|
|
691
|
+
if (!segment_0.i22_1.equals(id)) {
|
|
692
|
+
var tmp0_elvis_lhs = findSegmentSend($this, id, segment_0);
|
|
693
|
+
var tmp;
|
|
694
|
+
if (tmp0_elvis_lhs == null) {
|
|
695
|
+
var tmp_0;
|
|
696
|
+
if (closed) {
|
|
697
|
+
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
698
|
+
break $l$block_5;
|
|
699
|
+
} else {
|
|
700
|
+
continue $l$loop_0;
|
|
701
|
+
}
|
|
702
|
+
} else {
|
|
703
|
+
tmp = tmp0_elvis_lhs;
|
|
704
|
+
}
|
|
705
|
+
segment_0 = tmp;
|
|
706
|
+
}
|
|
707
|
+
switch (updateCellSend($this, segment_0, i, element, s_0, cancellable, closed)) {
|
|
708
|
+
case 0:
|
|
709
|
+
segment_0.g2d();
|
|
710
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
711
|
+
|
|
712
|
+
// Inline function 'kotlin.Companion.success' call
|
|
713
|
+
|
|
714
|
+
var tmp$ret$12 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
715
|
+
cancellable.lc(tmp$ret$12);
|
|
716
|
+
break $l$block_5;
|
|
717
|
+
case 1:
|
|
718
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
719
|
+
|
|
720
|
+
// Inline function 'kotlin.Companion.success' call
|
|
721
|
+
|
|
722
|
+
var tmp$ret$15 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
723
|
+
cancellable.lc(tmp$ret$15);
|
|
724
|
+
break $l$block_5;
|
|
725
|
+
case 2:
|
|
726
|
+
if (closed) {
|
|
727
|
+
segment_0.w2c();
|
|
728
|
+
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
729
|
+
break $l$block_5;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
var tmp2_safe_receiver = (!(cancellable == null) ? isInterface(cancellable, Waiter()) : false) ? cancellable : null;
|
|
733
|
+
if (tmp2_safe_receiver == null)
|
|
734
|
+
null;
|
|
735
|
+
else {
|
|
736
|
+
prepareSenderForSuspension($this, tmp2_safe_receiver, segment_0, i);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
break $l$block_5;
|
|
740
|
+
case 4:
|
|
741
|
+
if (s_0.a2($this.s2e()) < 0) {
|
|
742
|
+
segment_0.g2d();
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
746
|
+
break $l$block_5;
|
|
747
|
+
case 5:
|
|
748
|
+
segment_0.g2d();
|
|
749
|
+
continue $l$loop_0;
|
|
750
|
+
case 3:
|
|
751
|
+
// Inline function 'kotlin.error' call
|
|
752
|
+
|
|
753
|
+
var message = 'unexpected';
|
|
754
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
break;
|
|
760
|
+
default:
|
|
761
|
+
// Inline function 'kotlin.error' call
|
|
762
|
+
|
|
763
|
+
var message_0 = 'unexpected';
|
|
764
|
+
throw IllegalStateException().o4(toString_0(message_0));
|
|
765
|
+
}
|
|
766
|
+
} catch ($p) {
|
|
767
|
+
if ($p instanceof Error) {
|
|
768
|
+
var e = $p;
|
|
769
|
+
cancellable.i23();
|
|
770
|
+
throw e;
|
|
771
|
+
} else {
|
|
772
|
+
throw $p;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
return cancellable.b20();
|
|
776
|
+
}
|
|
777
|
+
function prepareSenderForSuspension($this, _this__u8e3s4, segment, index) {
|
|
778
|
+
_this__u8e3s4.n23(segment, index + get_SEGMENT_SIZE() | 0);
|
|
779
|
+
}
|
|
780
|
+
function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
781
|
+
var tmp0_safe_receiver = $this.j2c_1;
|
|
782
|
+
if (tmp0_safe_receiver == null)
|
|
783
|
+
null;
|
|
784
|
+
else {
|
|
785
|
+
callUndeliveredElement(tmp0_safe_receiver, element, cont.gc());
|
|
786
|
+
}
|
|
787
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
788
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
789
|
+
var exception = recoverStackTrace_0($this.r2e(), cont);
|
|
790
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
791
|
+
cont.lc(tmp$ret$0);
|
|
792
|
+
}
|
|
793
|
+
var SendBroadcastClass;
|
|
794
|
+
function SendBroadcast() {
|
|
795
|
+
if (SendBroadcastClass === VOID) {
|
|
796
|
+
class $ {}
|
|
797
|
+
initMetadataForClass($, 'SendBroadcast', VOID, VOID, [Waiter()]);
|
|
798
|
+
SendBroadcastClass = $;
|
|
799
|
+
}
|
|
800
|
+
return SendBroadcastClass;
|
|
801
|
+
}
|
|
802
|
+
function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
803
|
+
segment.a2c(index, element);
|
|
804
|
+
if (closed)
|
|
805
|
+
return updateCellSendSlow($this, segment, index, element, s, waiter, closed);
|
|
806
|
+
var state = segment.e2c(index);
|
|
807
|
+
if (state === null) {
|
|
808
|
+
if (bufferOrRendezvousSend($this, s)) {
|
|
809
|
+
if (segment.g2c(index, null, get_BUFFERED())) {
|
|
810
|
+
return 1;
|
|
811
|
+
}
|
|
812
|
+
} else {
|
|
813
|
+
if (waiter == null) {
|
|
814
|
+
return 3;
|
|
815
|
+
} else {
|
|
816
|
+
if (segment.g2c(index, null, waiter))
|
|
817
|
+
return 2;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
} else {
|
|
821
|
+
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
822
|
+
segment.d2c(index);
|
|
823
|
+
var tmp;
|
|
824
|
+
if (tryResumeReceiver($this, state, element)) {
|
|
825
|
+
segment.f2c(index, get_DONE_RCV());
|
|
826
|
+
$this.t2e();
|
|
827
|
+
tmp = 0;
|
|
828
|
+
} else {
|
|
829
|
+
if (!(segment.h2c(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
830
|
+
segment.u2c(index, true);
|
|
831
|
+
}
|
|
832
|
+
tmp = 5;
|
|
833
|
+
}
|
|
834
|
+
return tmp;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
return updateCellSendSlow($this, segment, index, element, s, waiter, closed);
|
|
838
|
+
}
|
|
839
|
+
function updateCellSendSlow($this, segment, index, element, s, waiter, closed) {
|
|
840
|
+
while (true) {
|
|
841
|
+
var state = segment.e2c(index);
|
|
842
|
+
if (state === null) {
|
|
843
|
+
if (bufferOrRendezvousSend($this, s) && !closed) {
|
|
844
|
+
if (segment.g2c(index, null, get_BUFFERED())) {
|
|
845
|
+
return 1;
|
|
846
|
+
}
|
|
847
|
+
} else {
|
|
848
|
+
if (closed) {
|
|
849
|
+
if (segment.g2c(index, null, get_INTERRUPTED_SEND())) {
|
|
850
|
+
segment.u2c(index, false);
|
|
851
|
+
return 4;
|
|
852
|
+
}
|
|
853
|
+
} else if (waiter == null)
|
|
854
|
+
return 3;
|
|
855
|
+
else if (segment.g2c(index, null, waiter))
|
|
856
|
+
return 2;
|
|
857
|
+
}
|
|
858
|
+
} else if (state === get_IN_BUFFER()) {
|
|
859
|
+
if (segment.g2c(index, state, get_BUFFERED())) {
|
|
860
|
+
return 1;
|
|
861
|
+
}
|
|
862
|
+
} else if (state === get_INTERRUPTED_RCV()) {
|
|
863
|
+
segment.d2c(index);
|
|
864
|
+
return 5;
|
|
865
|
+
} else if (state === get_POISONED()) {
|
|
866
|
+
segment.d2c(index);
|
|
867
|
+
return 5;
|
|
868
|
+
} else if (state === get_CHANNEL_CLOSED()) {
|
|
869
|
+
segment.d2c(index);
|
|
870
|
+
completeCloseOrCancel($this);
|
|
871
|
+
return 4;
|
|
872
|
+
} else {
|
|
873
|
+
// Inline function 'kotlinx.coroutines.assert' call
|
|
874
|
+
segment.d2c(index);
|
|
875
|
+
var tmp;
|
|
876
|
+
if (state instanceof WaiterEB()) {
|
|
877
|
+
tmp = state.u2e_1;
|
|
878
|
+
} else {
|
|
879
|
+
tmp = state;
|
|
880
|
+
}
|
|
881
|
+
var receiver = tmp;
|
|
882
|
+
var tmp_0;
|
|
883
|
+
if (tryResumeReceiver($this, receiver, element)) {
|
|
884
|
+
segment.f2c(index, get_DONE_RCV());
|
|
885
|
+
$this.t2e();
|
|
886
|
+
tmp_0 = 0;
|
|
887
|
+
} else {
|
|
888
|
+
if (!(segment.h2c(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
889
|
+
segment.u2c(index, true);
|
|
890
|
+
}
|
|
891
|
+
tmp_0 = 5;
|
|
892
|
+
}
|
|
893
|
+
return tmp_0;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
function shouldSendSuspend0($this, curSendersAndCloseStatus) {
|
|
898
|
+
if (_get_isClosedForSend0__kxgf9m($this, curSendersAndCloseStatus))
|
|
899
|
+
return false;
|
|
900
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
901
|
+
var tmp$ret$0 = curSendersAndCloseStatus.c4(new (Long())(-1, 268435455));
|
|
902
|
+
return !bufferOrRendezvousSend($this, tmp$ret$0);
|
|
903
|
+
}
|
|
904
|
+
function bufferOrRendezvousSend($this, curSenders) {
|
|
905
|
+
var tmp;
|
|
906
|
+
if (curSenders.a2(_get_bufferEndCounter__2d4hee($this)) < 0) {
|
|
907
|
+
tmp = true;
|
|
908
|
+
} else {
|
|
909
|
+
var tmp0 = $this.s2e();
|
|
910
|
+
// Inline function 'kotlin.Long.plus' call
|
|
911
|
+
var other = $this.i2c_1;
|
|
912
|
+
var tmp$ret$0 = tmp0.p3(toLong(other));
|
|
913
|
+
tmp = curSenders.a2(tmp$ret$0) < 0;
|
|
914
|
+
}
|
|
915
|
+
return tmp;
|
|
916
|
+
}
|
|
917
|
+
function tryResumeReceiver($this, _this__u8e3s4, element) {
|
|
918
|
+
var tmp;
|
|
919
|
+
if (isInterface(_this__u8e3s4, SelectInstance())) {
|
|
920
|
+
tmp = _this__u8e3s4.z2e($this, element);
|
|
921
|
+
} else {
|
|
922
|
+
if (_this__u8e3s4 instanceof ReceiveCatching()) {
|
|
923
|
+
if (!(_this__u8e3s4 instanceof ReceiveCatching()))
|
|
924
|
+
THROW_CCE();
|
|
925
|
+
var tmp_0 = Companion_getInstance().x2e(element);
|
|
926
|
+
var tmp1_safe_receiver = $this.j2c_1;
|
|
927
|
+
tmp = tryResume0(_this__u8e3s4.y2e_1, new (ChannelResult())(tmp_0), tmp1_safe_receiver == null ? null : bindCancellationFunResult($this, tmp1_safe_receiver));
|
|
928
|
+
} else {
|
|
929
|
+
if (_this__u8e3s4 instanceof BufferedChannelIterator()) {
|
|
930
|
+
if (!(_this__u8e3s4 instanceof BufferedChannelIterator()))
|
|
931
|
+
THROW_CCE();
|
|
932
|
+
tmp = _this__u8e3s4.v2e(element);
|
|
933
|
+
} else {
|
|
934
|
+
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
935
|
+
if (!isInterface(_this__u8e3s4, CancellableContinuation()))
|
|
936
|
+
THROW_CCE();
|
|
937
|
+
var tmp2_safe_receiver = $this.j2c_1;
|
|
938
|
+
tmp = tryResume0(_this__u8e3s4, element, tmp2_safe_receiver == null ? null : bindCancellationFun_0($this, tmp2_safe_receiver));
|
|
939
|
+
} else {
|
|
940
|
+
var message = 'Unexpected receiver type: ' + toString_0(_this__u8e3s4);
|
|
941
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
return tmp;
|
|
947
|
+
}
|
|
948
|
+
function receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
949
|
+
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
950
|
+
try {
|
|
951
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImplOnNoWaiter' call
|
|
952
|
+
var updCellResult = updateCellReceive($this, segment, index, r, cancellable);
|
|
953
|
+
if (updCellResult === get_SUSPEND()) {
|
|
954
|
+
prepareReceiverForSuspension($this, cancellable, segment, index);
|
|
955
|
+
} else if (updCellResult === get_FAILED()) {
|
|
956
|
+
if (r.a2($this.m2d()) < 0) {
|
|
957
|
+
segment.g2d();
|
|
958
|
+
}
|
|
959
|
+
$l$block_0: {
|
|
960
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
961
|
+
var segment_0 = $this.p2c_1.kotlinx$atomicfu$value;
|
|
962
|
+
$l$loop_0: while (true) {
|
|
963
|
+
if ($this.n2d()) {
|
|
964
|
+
onClosedReceiveOnNoWaiterSuspend($this, cancellable);
|
|
965
|
+
break $l$block_0;
|
|
966
|
+
}
|
|
967
|
+
var r_0 = $this.l2c_1.atomicfu$getAndIncrement$long();
|
|
968
|
+
// Inline function 'kotlin.Long.div' call
|
|
969
|
+
var other = get_SEGMENT_SIZE();
|
|
970
|
+
var id = r_0.s3(toLong(other));
|
|
971
|
+
// Inline function 'kotlin.Long.rem' call
|
|
972
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
973
|
+
var i = r_0.t3(toLong(other_0)).c2();
|
|
974
|
+
if (!segment_0.i22_1.equals(id)) {
|
|
975
|
+
var tmp0_elvis_lhs = findSegmentReceive($this, id, segment_0);
|
|
976
|
+
var tmp;
|
|
977
|
+
if (tmp0_elvis_lhs == null) {
|
|
978
|
+
continue $l$loop_0;
|
|
979
|
+
} else {
|
|
980
|
+
tmp = tmp0_elvis_lhs;
|
|
981
|
+
}
|
|
982
|
+
segment_0 = tmp;
|
|
983
|
+
}
|
|
984
|
+
var updCellResult_0 = updateCellReceive($this, segment_0, i, r_0, cancellable);
|
|
985
|
+
if (updCellResult_0 === get_SUSPEND()) {
|
|
986
|
+
var tmp1_safe_receiver = (!(cancellable == null) ? isInterface(cancellable, Waiter()) : false) ? cancellable : null;
|
|
987
|
+
if (tmp1_safe_receiver == null)
|
|
988
|
+
null;
|
|
989
|
+
else {
|
|
990
|
+
prepareReceiverForSuspension($this, tmp1_safe_receiver, segment_0, i);
|
|
991
|
+
}
|
|
992
|
+
} else if (updCellResult_0 === get_FAILED()) {
|
|
993
|
+
if (r_0.a2($this.m2d()) < 0) {
|
|
994
|
+
segment_0.g2d();
|
|
995
|
+
}
|
|
996
|
+
continue $l$loop_0;
|
|
997
|
+
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
998
|
+
// Inline function 'kotlin.error' call
|
|
999
|
+
var message = 'unexpected';
|
|
1000
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
1001
|
+
} else {
|
|
1002
|
+
segment_0.g2d();
|
|
1003
|
+
var element = (updCellResult_0 == null ? true : !(updCellResult_0 == null)) ? updCellResult_0 : THROW_CCE();
|
|
1004
|
+
var tmp0_safe_receiver = $this.j2c_1;
|
|
1005
|
+
var onCancellation = tmp0_safe_receiver == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver);
|
|
1006
|
+
cancellable.k21(element, onCancellation);
|
|
1007
|
+
}
|
|
1008
|
+
break $l$block_0;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
} else {
|
|
1012
|
+
segment.g2d();
|
|
1013
|
+
var element_0 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
1014
|
+
var tmp0_safe_receiver_0 = $this.j2c_1;
|
|
1015
|
+
var onCancellation_0 = tmp0_safe_receiver_0 == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver_0);
|
|
1016
|
+
cancellable.k21(element_0, onCancellation_0);
|
|
1017
|
+
}
|
|
1018
|
+
} catch ($p) {
|
|
1019
|
+
if ($p instanceof Error) {
|
|
1020
|
+
var e = $p;
|
|
1021
|
+
cancellable.i23();
|
|
1022
|
+
throw e;
|
|
1023
|
+
} else {
|
|
1024
|
+
throw $p;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
return cancellable.b20();
|
|
1028
|
+
}
|
|
1029
|
+
function prepareReceiverForSuspension($this, _this__u8e3s4, segment, index) {
|
|
1030
|
+
$this.a2f();
|
|
1031
|
+
_this__u8e3s4.n23(segment, index);
|
|
1032
|
+
}
|
|
1033
|
+
function onClosedReceiveOnNoWaiterSuspend($this, cont) {
|
|
1034
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1035
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
1036
|
+
var exception = _get_receiveException__foorc1($this);
|
|
1037
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1038
|
+
cont.lc(tmp$ret$0);
|
|
1039
|
+
}
|
|
1040
|
+
function updateCellReceive($this, segment, index, r, waiter) {
|
|
1041
|
+
var state = segment.e2c(index);
|
|
1042
|
+
if (state === null) {
|
|
1043
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1044
|
+
var senders = $this.k2c_1.kotlinx$atomicfu$value.c4(new (Long())(-1, 268435455));
|
|
1045
|
+
if (r.a2(senders) >= 0) {
|
|
1046
|
+
if (waiter === null) {
|
|
1047
|
+
return get_SUSPEND_NO_WAITER();
|
|
1048
|
+
}
|
|
1049
|
+
if (segment.g2c(index, state, waiter)) {
|
|
1050
|
+
expandBuffer($this);
|
|
1051
|
+
return get_SUSPEND();
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
} else if (state === get_BUFFERED())
|
|
1055
|
+
if (segment.g2c(index, state, get_DONE_RCV())) {
|
|
1056
|
+
expandBuffer($this);
|
|
1057
|
+
return segment.c2c(index);
|
|
1058
|
+
}
|
|
1059
|
+
return updateCellReceiveSlow($this, segment, index, r, waiter);
|
|
1060
|
+
}
|
|
1061
|
+
function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
1062
|
+
$l$loop: while (true) {
|
|
1063
|
+
var state = segment.e2c(index);
|
|
1064
|
+
if (state === null || state === get_IN_BUFFER()) {
|
|
1065
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1066
|
+
var senders = $this.k2c_1.kotlinx$atomicfu$value.c4(new (Long())(-1, 268435455));
|
|
1067
|
+
if (r.a2(senders) < 0) {
|
|
1068
|
+
if (segment.g2c(index, state, get_POISONED())) {
|
|
1069
|
+
expandBuffer($this);
|
|
1070
|
+
return get_FAILED();
|
|
1071
|
+
}
|
|
1072
|
+
} else {
|
|
1073
|
+
if (waiter === null) {
|
|
1074
|
+
return get_SUSPEND_NO_WAITER();
|
|
1075
|
+
}
|
|
1076
|
+
if (segment.g2c(index, state, waiter)) {
|
|
1077
|
+
expandBuffer($this);
|
|
1078
|
+
return get_SUSPEND();
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
} else if (state === get_BUFFERED()) {
|
|
1082
|
+
if (segment.g2c(index, state, get_DONE_RCV())) {
|
|
1083
|
+
expandBuffer($this);
|
|
1084
|
+
return segment.c2c(index);
|
|
1085
|
+
}
|
|
1086
|
+
} else if (state === get_INTERRUPTED_SEND())
|
|
1087
|
+
return get_FAILED();
|
|
1088
|
+
else if (state === get_POISONED())
|
|
1089
|
+
return get_FAILED();
|
|
1090
|
+
else if (state === get_CHANNEL_CLOSED()) {
|
|
1091
|
+
expandBuffer($this);
|
|
1092
|
+
return get_FAILED();
|
|
1093
|
+
} else if (state === get_RESUMING_BY_EB())
|
|
1094
|
+
continue $l$loop;
|
|
1095
|
+
else {
|
|
1096
|
+
if (segment.g2c(index, state, get_RESUMING_BY_RCV())) {
|
|
1097
|
+
var helpExpandBuffer = state instanceof WaiterEB();
|
|
1098
|
+
var tmp;
|
|
1099
|
+
if (state instanceof WaiterEB()) {
|
|
1100
|
+
tmp = state.u2e_1;
|
|
1101
|
+
} else {
|
|
1102
|
+
tmp = state;
|
|
1103
|
+
}
|
|
1104
|
+
var sender = tmp;
|
|
1105
|
+
var tmp_0;
|
|
1106
|
+
if (tryResumeSender($this, sender, segment, index)) {
|
|
1107
|
+
segment.f2c(index, get_DONE_RCV());
|
|
1108
|
+
expandBuffer($this);
|
|
1109
|
+
tmp_0 = segment.c2c(index);
|
|
1110
|
+
} else {
|
|
1111
|
+
segment.f2c(index, get_INTERRUPTED_SEND());
|
|
1112
|
+
segment.u2c(index, false);
|
|
1113
|
+
if (helpExpandBuffer) {
|
|
1114
|
+
expandBuffer($this);
|
|
1115
|
+
}
|
|
1116
|
+
tmp_0 = get_FAILED();
|
|
1117
|
+
}
|
|
1118
|
+
return tmp_0;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
function tryResumeSender($this, _this__u8e3s4, segment, index) {
|
|
1124
|
+
var tmp;
|
|
1125
|
+
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
1126
|
+
if (!isInterface(_this__u8e3s4, CancellableContinuation()))
|
|
1127
|
+
THROW_CCE();
|
|
1128
|
+
tmp = tryResume0(_this__u8e3s4, Unit_instance);
|
|
1129
|
+
} else {
|
|
1130
|
+
if (isInterface(_this__u8e3s4, SelectInstance())) {
|
|
1131
|
+
if (!(_this__u8e3s4 instanceof SelectImplementation()))
|
|
1132
|
+
THROW_CCE();
|
|
1133
|
+
var trySelectResult = _this__u8e3s4.f2f($this, Unit_instance);
|
|
1134
|
+
if (trySelectResult === TrySelectDetailedResult_REREGISTER_getInstance()) {
|
|
1135
|
+
segment.d2c(index);
|
|
1136
|
+
}
|
|
1137
|
+
tmp = trySelectResult === TrySelectDetailedResult_SUCCESSFUL_getInstance();
|
|
1138
|
+
} else {
|
|
1139
|
+
if (_this__u8e3s4 instanceof SendBroadcast()) {
|
|
1140
|
+
tmp = tryResume0(_this__u8e3s4.b2f_1, true);
|
|
1141
|
+
} else {
|
|
1142
|
+
var message = 'Unexpected waiter: ' + toString_0(_this__u8e3s4);
|
|
1143
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
return tmp;
|
|
1148
|
+
}
|
|
1149
|
+
function expandBuffer($this) {
|
|
1150
|
+
if (_get_isRendezvousOrUnlimited__3mdufi($this))
|
|
1151
|
+
return Unit_instance;
|
|
1152
|
+
var segment = $this.q2c_1.kotlinx$atomicfu$value;
|
|
1153
|
+
try_again: while (true) {
|
|
1154
|
+
var b = $this.m2c_1.atomicfu$getAndIncrement$long();
|
|
1155
|
+
// Inline function 'kotlin.Long.div' call
|
|
1156
|
+
var other = get_SEGMENT_SIZE();
|
|
1157
|
+
var id = b.s3(toLong(other));
|
|
1158
|
+
var s = $this.m2d();
|
|
1159
|
+
if (s.a2(b) <= 0) {
|
|
1160
|
+
if (segment.i22_1.a2(id) < 0 && !(segment.c2d() == null)) {
|
|
1161
|
+
moveSegmentBufferEndToSpecifiedOrLast($this, id, segment);
|
|
1162
|
+
}
|
|
1163
|
+
incCompletedExpandBufferAttempts$default($this);
|
|
1164
|
+
return Unit_instance;
|
|
1165
|
+
}
|
|
1166
|
+
if (!segment.i22_1.equals(id)) {
|
|
1167
|
+
var tmp0_elvis_lhs = findSegmentBufferEnd($this, id, segment, b);
|
|
1168
|
+
var tmp;
|
|
1169
|
+
if (tmp0_elvis_lhs == null) {
|
|
1170
|
+
continue try_again;
|
|
1171
|
+
} else {
|
|
1172
|
+
tmp = tmp0_elvis_lhs;
|
|
1173
|
+
}
|
|
1174
|
+
segment = tmp;
|
|
1175
|
+
}
|
|
1176
|
+
// Inline function 'kotlin.Long.rem' call
|
|
1177
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
1178
|
+
var i = b.t3(toLong(other_0)).c2();
|
|
1179
|
+
if (updateCellExpandBuffer($this, segment, i, b)) {
|
|
1180
|
+
incCompletedExpandBufferAttempts$default($this);
|
|
1181
|
+
return Unit_instance;
|
|
1182
|
+
} else {
|
|
1183
|
+
incCompletedExpandBufferAttempts$default($this);
|
|
1184
|
+
continue try_again;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
function updateCellExpandBuffer($this, segment, index, b) {
|
|
1189
|
+
var state = segment.e2c(index);
|
|
1190
|
+
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1191
|
+
if (b.a2($this.l2c_1.kotlinx$atomicfu$value) >= 0) {
|
|
1192
|
+
if (segment.g2c(index, state, get_RESUMING_BY_EB())) {
|
|
1193
|
+
var tmp;
|
|
1194
|
+
if (tryResumeSender($this, state, segment, index)) {
|
|
1195
|
+
segment.f2c(index, get_BUFFERED());
|
|
1196
|
+
tmp = true;
|
|
1197
|
+
} else {
|
|
1198
|
+
segment.f2c(index, get_INTERRUPTED_SEND());
|
|
1199
|
+
segment.u2c(index, false);
|
|
1200
|
+
tmp = false;
|
|
1201
|
+
}
|
|
1202
|
+
return tmp;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
return updateCellExpandBufferSlow($this, segment, index, b);
|
|
1207
|
+
}
|
|
1208
|
+
function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
1209
|
+
$l$loop: while (true) {
|
|
1210
|
+
var state = segment.e2c(index);
|
|
1211
|
+
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1212
|
+
if (b.a2($this.l2c_1.kotlinx$atomicfu$value) < 0) {
|
|
1213
|
+
if (segment.g2c(index, state, new (WaiterEB())(state)))
|
|
1214
|
+
return true;
|
|
1215
|
+
} else {
|
|
1216
|
+
if (segment.g2c(index, state, get_RESUMING_BY_EB())) {
|
|
1217
|
+
var tmp;
|
|
1218
|
+
if (tryResumeSender($this, state, segment, index)) {
|
|
1219
|
+
segment.f2c(index, get_BUFFERED());
|
|
1220
|
+
tmp = true;
|
|
1221
|
+
} else {
|
|
1222
|
+
segment.f2c(index, get_INTERRUPTED_SEND());
|
|
1223
|
+
segment.u2c(index, false);
|
|
1224
|
+
tmp = false;
|
|
1225
|
+
}
|
|
1226
|
+
return tmp;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
} else {
|
|
1230
|
+
if (state === get_INTERRUPTED_SEND())
|
|
1231
|
+
return false;
|
|
1232
|
+
else {
|
|
1233
|
+
if (state === null) {
|
|
1234
|
+
if (segment.g2c(index, state, get_IN_BUFFER()))
|
|
1235
|
+
return true;
|
|
1236
|
+
} else {
|
|
1237
|
+
if (state === get_BUFFERED())
|
|
1238
|
+
return true;
|
|
1239
|
+
else {
|
|
1240
|
+
if (state === get_POISONED() || state === get_DONE_RCV() || state === get_INTERRUPTED_RCV())
|
|
1241
|
+
return true;
|
|
1242
|
+
else {
|
|
1243
|
+
if (state === get_CHANNEL_CLOSED())
|
|
1244
|
+
return true;
|
|
1245
|
+
else {
|
|
1246
|
+
if (state === get_RESUMING_BY_RCV())
|
|
1247
|
+
continue $l$loop;
|
|
1248
|
+
else {
|
|
1249
|
+
// Inline function 'kotlin.error' call
|
|
1250
|
+
var message = 'Unexpected cell state: ' + toString(state);
|
|
1251
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
function incCompletedExpandBufferAttempts($this, nAttempts) {
|
|
1262
|
+
// Inline function 'kotlin.also' call
|
|
1263
|
+
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1264
|
+
if (!$this.n2c_1.atomicfu$addAndGet$long(nAttempts).c4(new (Long())(0, 1073741824)).equals(new (Long())(0, 0))) {
|
|
1265
|
+
$l$loop: while (true) {
|
|
1266
|
+
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1267
|
+
if (!!$this.n2c_1.kotlinx$atomicfu$value.c4(new (Long())(0, 1073741824)).equals(new (Long())(0, 0))) {
|
|
1268
|
+
break $l$loop;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
function incCompletedExpandBufferAttempts$default($this, nAttempts, $super) {
|
|
1274
|
+
nAttempts = nAttempts === VOID ? new (Long())(1, 0) : nAttempts;
|
|
1275
|
+
return incCompletedExpandBufferAttempts($this, nAttempts);
|
|
1276
|
+
}
|
|
1277
|
+
var BufferedChannelIteratorClass;
|
|
1278
|
+
function BufferedChannelIterator() {
|
|
1279
|
+
if (BufferedChannelIteratorClass === VOID) {
|
|
1280
|
+
class $ {
|
|
1281
|
+
constructor($outer) {
|
|
1282
|
+
this.k2d_1 = $outer;
|
|
1283
|
+
this.i2d_1 = get_NO_RECEIVE_RESULT();
|
|
1284
|
+
this.j2d_1 = null;
|
|
1285
|
+
}
|
|
1286
|
+
g2f($completion) {
|
|
1287
|
+
var tmp = new ($hasNextCOROUTINE$())(this, $completion);
|
|
1288
|
+
tmp.cc_1 = Unit_instance;
|
|
1289
|
+
tmp.dc_1 = null;
|
|
1290
|
+
return tmp.ic();
|
|
1291
|
+
}
|
|
1292
|
+
n23(segment, index) {
|
|
1293
|
+
var tmp0_safe_receiver = this.j2d_1;
|
|
1294
|
+
if (tmp0_safe_receiver == null)
|
|
1295
|
+
null;
|
|
1296
|
+
else {
|
|
1297
|
+
tmp0_safe_receiver.n23(segment, index);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
f1() {
|
|
1301
|
+
var result = this.i2d_1;
|
|
1302
|
+
// Inline function 'kotlin.check' call
|
|
1303
|
+
if (!!(result === get_NO_RECEIVE_RESULT())) {
|
|
1304
|
+
var message = '`hasNext()` has not been invoked';
|
|
1305
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
1306
|
+
}
|
|
1307
|
+
this.i2d_1 = get_NO_RECEIVE_RESULT();
|
|
1308
|
+
if (result === get_CHANNEL_CLOSED())
|
|
1309
|
+
throw recoverStackTrace(_get_receiveException__foorc1(this.k2d_1));
|
|
1310
|
+
return (result == null ? true : !(result == null)) ? result : THROW_CCE();
|
|
1311
|
+
}
|
|
1312
|
+
v2e(element) {
|
|
1313
|
+
var cont = ensureNotNull(this.j2d_1);
|
|
1314
|
+
this.j2d_1 = null;
|
|
1315
|
+
this.i2d_1 = element;
|
|
1316
|
+
var tmp0_safe_receiver = this.k2d_1.j2c_1;
|
|
1317
|
+
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.k2d_1, tmp0_safe_receiver, element));
|
|
1318
|
+
}
|
|
1319
|
+
h2f() {
|
|
1320
|
+
var cont = ensureNotNull(this.j2d_1);
|
|
1321
|
+
this.j2d_1 = null;
|
|
1322
|
+
this.i2d_1 = get_CHANNEL_CLOSED();
|
|
1323
|
+
var cause = this.k2d_1.l2d();
|
|
1324
|
+
if (cause == null) {
|
|
1325
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
1326
|
+
// Inline function 'kotlin.Companion.success' call
|
|
1327
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
1328
|
+
cont.lc(tmp$ret$0);
|
|
1329
|
+
} else {
|
|
1330
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1331
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
1332
|
+
var exception = recoverStackTrace_0(cause, cont);
|
|
1333
|
+
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1334
|
+
cont.lc(tmp$ret$2);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
initMetadataForClass($, 'BufferedChannelIterator', VOID, VOID, [Waiter()], [0, 3]);
|
|
1339
|
+
BufferedChannelIteratorClass = $;
|
|
1340
|
+
}
|
|
1341
|
+
return BufferedChannelIteratorClass;
|
|
1342
|
+
}
|
|
1343
|
+
function _get_receiveException__foorc1($this) {
|
|
1344
|
+
var tmp0_elvis_lhs = $this.l2d();
|
|
1345
|
+
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().m2f('Channel was closed') : tmp0_elvis_lhs;
|
|
1346
|
+
}
|
|
1347
|
+
function invokeCloseHandler($this) {
|
|
1348
|
+
var tmp0 = $this.t2c_1;
|
|
1349
|
+
var tmp$ret$1;
|
|
1350
|
+
$l$block: {
|
|
1351
|
+
// Inline function 'kotlinx.atomicfu.getAndUpdate' call
|
|
1352
|
+
while (true) {
|
|
1353
|
+
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1354
|
+
var tmp;
|
|
1355
|
+
if (cur === null) {
|
|
1356
|
+
tmp = get_CLOSE_HANDLER_CLOSED();
|
|
1357
|
+
} else {
|
|
1358
|
+
tmp = get_CLOSE_HANDLER_INVOKED();
|
|
1359
|
+
}
|
|
1360
|
+
var upd = tmp;
|
|
1361
|
+
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
1362
|
+
tmp$ret$1 = cur;
|
|
1363
|
+
break $l$block;
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
var tmp0_elvis_lhs = tmp$ret$1;
|
|
1368
|
+
var tmp_0;
|
|
1369
|
+
if (tmp0_elvis_lhs == null) {
|
|
1370
|
+
return Unit_instance;
|
|
1371
|
+
} else {
|
|
1372
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1373
|
+
}
|
|
1374
|
+
var closeHandler = tmp_0;
|
|
1375
|
+
if (typeof closeHandler !== 'function')
|
|
1376
|
+
THROW_CCE();
|
|
1377
|
+
closeHandler($this.l2d());
|
|
1378
|
+
}
|
|
1379
|
+
function markClosed($this) {
|
|
1380
|
+
var tmp0 = $this.k2c_1;
|
|
1381
|
+
var tmp$ret$4;
|
|
1382
|
+
$l$block: {
|
|
1383
|
+
// Inline function 'kotlinx.atomicfu.update' call
|
|
1384
|
+
while (true) {
|
|
1385
|
+
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1386
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
1387
|
+
var tmp;
|
|
1388
|
+
switch (cur.a4(60).c2()) {
|
|
1389
|
+
case 0:
|
|
1390
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1391
|
+
|
|
1392
|
+
var tmp$ret$1 = cur.c4(new (Long())(-1, 268435455));
|
|
1393
|
+
tmp = constructSendersAndCloseStatus(tmp$ret$1, 2);
|
|
1394
|
+
break;
|
|
1395
|
+
case 1:
|
|
1396
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1397
|
+
|
|
1398
|
+
var tmp$ret$2 = cur.c4(new (Long())(-1, 268435455));
|
|
1399
|
+
tmp = constructSendersAndCloseStatus(tmp$ret$2, 3);
|
|
1400
|
+
break;
|
|
1401
|
+
default:
|
|
1402
|
+
return Unit_instance;
|
|
1403
|
+
}
|
|
1404
|
+
var upd = tmp;
|
|
1405
|
+
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
1406
|
+
tmp$ret$4 = Unit_instance;
|
|
1407
|
+
break $l$block;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
tmp$ret$4 = Unit_instance;
|
|
1411
|
+
}
|
|
1412
|
+
return tmp$ret$4;
|
|
1413
|
+
}
|
|
1414
|
+
function markCancelled($this) {
|
|
1415
|
+
var tmp0 = $this.k2c_1;
|
|
1416
|
+
var tmp$ret$2;
|
|
1417
|
+
$l$block: {
|
|
1418
|
+
// Inline function 'kotlinx.atomicfu.update' call
|
|
1419
|
+
while (true) {
|
|
1420
|
+
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1421
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1422
|
+
var tmp$ret$0 = cur.c4(new (Long())(-1, 268435455));
|
|
1423
|
+
var upd = constructSendersAndCloseStatus(tmp$ret$0, 3);
|
|
1424
|
+
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
1425
|
+
tmp$ret$2 = Unit_instance;
|
|
1426
|
+
break $l$block;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
tmp$ret$2 = Unit_instance;
|
|
1430
|
+
}
|
|
1431
|
+
return tmp$ret$2;
|
|
1432
|
+
}
|
|
1433
|
+
function markCancellationStarted($this) {
|
|
1434
|
+
var tmp0 = $this.k2c_1;
|
|
1435
|
+
var tmp$ret$3;
|
|
1436
|
+
$l$block: {
|
|
1437
|
+
// Inline function 'kotlinx.atomicfu.update' call
|
|
1438
|
+
while (true) {
|
|
1439
|
+
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1440
|
+
var tmp;
|
|
1441
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
1442
|
+
if (cur.a4(60).c2() === 0) {
|
|
1443
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1444
|
+
var tmp$ret$1 = cur.c4(new (Long())(-1, 268435455));
|
|
1445
|
+
tmp = constructSendersAndCloseStatus(tmp$ret$1, 1);
|
|
1446
|
+
} else {
|
|
1447
|
+
return Unit_instance;
|
|
1448
|
+
}
|
|
1449
|
+
var upd = tmp;
|
|
1450
|
+
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
1451
|
+
tmp$ret$3 = Unit_instance;
|
|
1452
|
+
break $l$block;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
tmp$ret$3 = Unit_instance;
|
|
1456
|
+
}
|
|
1457
|
+
return tmp$ret$3;
|
|
1458
|
+
}
|
|
1459
|
+
function completeCloseOrCancel($this) {
|
|
1460
|
+
$this.n2f();
|
|
1461
|
+
}
|
|
1462
|
+
function completeClose($this, sendersCur) {
|
|
1463
|
+
var lastSegment = closeLinkedList($this);
|
|
1464
|
+
if ($this.p2f()) {
|
|
1465
|
+
var lastBufferedCellGlobalIndex = markAllEmptyCellsAsClosed($this, lastSegment);
|
|
1466
|
+
if (!lastBufferedCellGlobalIndex.equals(new (Long())(-1, -1))) {
|
|
1467
|
+
$this.o2f(lastBufferedCellGlobalIndex);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
cancelSuspendedReceiveRequests($this, lastSegment, sendersCur);
|
|
1471
|
+
return lastSegment;
|
|
1472
|
+
}
|
|
1473
|
+
function completeCancel($this, sendersCur) {
|
|
1474
|
+
var lastSegment = completeClose($this, sendersCur);
|
|
1475
|
+
removeUnprocessedElements($this, lastSegment);
|
|
1476
|
+
}
|
|
1477
|
+
function closeLinkedList($this) {
|
|
1478
|
+
var lastSegment = $this.q2c_1.kotlinx$atomicfu$value;
|
|
1479
|
+
// Inline function 'kotlin.let' call
|
|
1480
|
+
var it = $this.o2c_1.kotlinx$atomicfu$value;
|
|
1481
|
+
if (it.i22_1.a2(lastSegment.i22_1) > 0)
|
|
1482
|
+
lastSegment = it;
|
|
1483
|
+
// Inline function 'kotlin.let' call
|
|
1484
|
+
var it_0 = $this.p2c_1.kotlinx$atomicfu$value;
|
|
1485
|
+
if (it_0.i22_1.a2(lastSegment.i22_1) > 0)
|
|
1486
|
+
lastSegment = it_0;
|
|
1487
|
+
return close(lastSegment);
|
|
1488
|
+
}
|
|
1489
|
+
function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
1490
|
+
var segment = lastSegment;
|
|
1491
|
+
while (true) {
|
|
1492
|
+
var inductionVariable = get_SEGMENT_SIZE() - 1 | 0;
|
|
1493
|
+
if (0 <= inductionVariable)
|
|
1494
|
+
do {
|
|
1495
|
+
var index = inductionVariable;
|
|
1496
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
1497
|
+
var tmp0 = segment.i22_1;
|
|
1498
|
+
// Inline function 'kotlin.Long.times' call
|
|
1499
|
+
var other = get_SEGMENT_SIZE();
|
|
1500
|
+
// Inline function 'kotlin.Long.plus' call
|
|
1501
|
+
var globalIndex = tmp0.r3(toLong(other)).p3(toLong(index));
|
|
1502
|
+
if (globalIndex.a2($this.s2e()) < 0)
|
|
1503
|
+
return new (Long())(-1, -1);
|
|
1504
|
+
cell_update: while (true) {
|
|
1505
|
+
var state = segment.e2c(index);
|
|
1506
|
+
if (state === null || state === get_IN_BUFFER()) {
|
|
1507
|
+
if (segment.g2c(index, state, get_CHANNEL_CLOSED())) {
|
|
1508
|
+
segment.w2c();
|
|
1509
|
+
break cell_update;
|
|
1510
|
+
}
|
|
1511
|
+
} else if (state === get_BUFFERED())
|
|
1512
|
+
return globalIndex;
|
|
1513
|
+
else
|
|
1514
|
+
break cell_update;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
while (0 <= inductionVariable);
|
|
1518
|
+
var tmp0_elvis_lhs = segment.f2d();
|
|
1519
|
+
var tmp;
|
|
1520
|
+
if (tmp0_elvis_lhs == null) {
|
|
1521
|
+
return new (Long())(-1, -1);
|
|
1522
|
+
} else {
|
|
1523
|
+
tmp = tmp0_elvis_lhs;
|
|
1524
|
+
}
|
|
1525
|
+
segment = tmp;
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
function removeUnprocessedElements($this, lastSegment) {
|
|
1529
|
+
var onUndeliveredElement = $this.j2c_1;
|
|
1530
|
+
var undeliveredElementException = null;
|
|
1531
|
+
var suspendedSenders = _InlineList___init__impl__z8n56();
|
|
1532
|
+
var segment = lastSegment;
|
|
1533
|
+
process_segments: while (true) {
|
|
1534
|
+
var inductionVariable = get_SEGMENT_SIZE() - 1 | 0;
|
|
1535
|
+
if (0 <= inductionVariable)
|
|
1536
|
+
do {
|
|
1537
|
+
var index = inductionVariable;
|
|
1538
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
1539
|
+
var tmp0 = segment.i22_1;
|
|
1540
|
+
// Inline function 'kotlin.Long.times' call
|
|
1541
|
+
var other = get_SEGMENT_SIZE();
|
|
1542
|
+
// Inline function 'kotlin.Long.plus' call
|
|
1543
|
+
var globalIndex = tmp0.r3(toLong(other)).p3(toLong(index));
|
|
1544
|
+
update_cell: while (true) {
|
|
1545
|
+
var state = segment.e2c(index);
|
|
1546
|
+
if (state === get_DONE_RCV())
|
|
1547
|
+
break process_segments;
|
|
1548
|
+
else {
|
|
1549
|
+
if (state === get_BUFFERED()) {
|
|
1550
|
+
if (globalIndex.a2($this.s2e()) < 0)
|
|
1551
|
+
break process_segments;
|
|
1552
|
+
if (segment.g2c(index, state, get_CHANNEL_CLOSED())) {
|
|
1553
|
+
if (!(onUndeliveredElement == null)) {
|
|
1554
|
+
var element = segment.b2c(index);
|
|
1555
|
+
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element, undeliveredElementException);
|
|
1556
|
+
}
|
|
1557
|
+
segment.d2c(index);
|
|
1558
|
+
segment.w2c();
|
|
1559
|
+
break update_cell;
|
|
1560
|
+
}
|
|
1561
|
+
} else {
|
|
1562
|
+
if (state === get_IN_BUFFER() || state === null) {
|
|
1563
|
+
if (segment.g2c(index, state, get_CHANNEL_CLOSED())) {
|
|
1564
|
+
segment.w2c();
|
|
1565
|
+
break update_cell;
|
|
1566
|
+
}
|
|
1567
|
+
} else {
|
|
1568
|
+
var tmp;
|
|
1569
|
+
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1570
|
+
tmp = true;
|
|
1571
|
+
} else {
|
|
1572
|
+
tmp = state instanceof WaiterEB();
|
|
1573
|
+
}
|
|
1574
|
+
if (tmp) {
|
|
1575
|
+
if (globalIndex.a2($this.s2e()) < 0)
|
|
1576
|
+
break process_segments;
|
|
1577
|
+
var tmp_0;
|
|
1578
|
+
if (state instanceof WaiterEB()) {
|
|
1579
|
+
tmp_0 = state.u2e_1;
|
|
1580
|
+
} else {
|
|
1581
|
+
tmp_0 = (!(state == null) ? isInterface(state, Waiter()) : false) ? state : THROW_CCE();
|
|
1582
|
+
}
|
|
1583
|
+
var sender = tmp_0;
|
|
1584
|
+
if (segment.g2c(index, state, get_CHANNEL_CLOSED())) {
|
|
1585
|
+
if (!(onUndeliveredElement == null)) {
|
|
1586
|
+
var element_0 = segment.b2c(index);
|
|
1587
|
+
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element_0, undeliveredElementException);
|
|
1588
|
+
}
|
|
1589
|
+
suspendedSenders = InlineList__plus_impl_nuetvo(suspendedSenders, sender);
|
|
1590
|
+
segment.d2c(index);
|
|
1591
|
+
segment.w2c();
|
|
1592
|
+
break update_cell;
|
|
1593
|
+
}
|
|
1594
|
+
} else {
|
|
1595
|
+
if (state === get_RESUMING_BY_EB() || state === get_RESUMING_BY_RCV())
|
|
1596
|
+
break process_segments;
|
|
1597
|
+
else {
|
|
1598
|
+
if (state === get_RESUMING_BY_EB())
|
|
1599
|
+
continue update_cell;
|
|
1600
|
+
else {
|
|
1601
|
+
break update_cell;
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
while (0 <= inductionVariable);
|
|
1611
|
+
var tmp0_elvis_lhs = segment.f2d();
|
|
1612
|
+
var tmp_1;
|
|
1613
|
+
if (tmp0_elvis_lhs == null) {
|
|
1614
|
+
break process_segments;
|
|
1615
|
+
} else {
|
|
1616
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
1617
|
+
}
|
|
1618
|
+
segment = tmp_1;
|
|
1619
|
+
}
|
|
1620
|
+
var tmp0_0 = suspendedSenders;
|
|
1621
|
+
$l$block: {
|
|
1622
|
+
// Inline function 'kotlinx.coroutines.internal.InlineList.forEachReversed' call
|
|
1623
|
+
var tmp0_subject = access$_get_holder__kkflen(tmp0_0);
|
|
1624
|
+
if (tmp0_subject == null) {
|
|
1625
|
+
break $l$block;
|
|
1626
|
+
} else {
|
|
1627
|
+
if (!(tmp0_subject instanceof ArrayList())) {
|
|
1628
|
+
var tmp_2 = access$_get_holder__kkflen(tmp0_0);
|
|
1629
|
+
var it = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1630
|
+
resumeSenderOnCancelledChannel($this, it);
|
|
1631
|
+
} else {
|
|
1632
|
+
var tmp_3 = access$_get_holder__kkflen(tmp0_0);
|
|
1633
|
+
var list = tmp_3 instanceof ArrayList() ? tmp_3 : THROW_CCE();
|
|
1634
|
+
var inductionVariable_0 = list.i1() - 1 | 0;
|
|
1635
|
+
if (0 <= inductionVariable_0)
|
|
1636
|
+
do {
|
|
1637
|
+
var i = inductionVariable_0;
|
|
1638
|
+
inductionVariable_0 = inductionVariable_0 + -1 | 0;
|
|
1639
|
+
var it_0 = list.j1(i);
|
|
1640
|
+
resumeSenderOnCancelledChannel($this, it_0);
|
|
1641
|
+
}
|
|
1642
|
+
while (0 <= inductionVariable_0);
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
var tmp1_safe_receiver = undeliveredElementException;
|
|
1647
|
+
if (tmp1_safe_receiver == null)
|
|
1648
|
+
null;
|
|
1649
|
+
else {
|
|
1650
|
+
// Inline function 'kotlin.let' call
|
|
1651
|
+
throw tmp1_safe_receiver;
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
1655
|
+
var suspendedReceivers = _InlineList___init__impl__z8n56();
|
|
1656
|
+
var segment = lastSegment;
|
|
1657
|
+
process_segments: while (!(segment == null)) {
|
|
1658
|
+
var inductionVariable = get_SEGMENT_SIZE() - 1 | 0;
|
|
1659
|
+
if (0 <= inductionVariable)
|
|
1660
|
+
do {
|
|
1661
|
+
var index = inductionVariable;
|
|
1662
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
1663
|
+
var tmp0 = segment.i22_1;
|
|
1664
|
+
// Inline function 'kotlin.Long.times' call
|
|
1665
|
+
var other = get_SEGMENT_SIZE();
|
|
1666
|
+
// Inline function 'kotlin.Long.plus' call
|
|
1667
|
+
if (tmp0.r3(toLong(other)).p3(toLong(index)).a2(sendersCounter) < 0)
|
|
1668
|
+
break process_segments;
|
|
1669
|
+
cell_update: while (true) {
|
|
1670
|
+
var state = segment.e2c(index);
|
|
1671
|
+
if (state === null || state === get_IN_BUFFER()) {
|
|
1672
|
+
if (segment.g2c(index, state, get_CHANNEL_CLOSED())) {
|
|
1673
|
+
segment.w2c();
|
|
1674
|
+
break cell_update;
|
|
1675
|
+
}
|
|
1676
|
+
} else {
|
|
1677
|
+
if (state instanceof WaiterEB()) {
|
|
1678
|
+
if (segment.g2c(index, state, get_CHANNEL_CLOSED())) {
|
|
1679
|
+
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.u2e_1);
|
|
1680
|
+
segment.u2c(index, true);
|
|
1681
|
+
break cell_update;
|
|
1682
|
+
}
|
|
1683
|
+
} else {
|
|
1684
|
+
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1685
|
+
if (segment.g2c(index, state, get_CHANNEL_CLOSED())) {
|
|
1686
|
+
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state);
|
|
1687
|
+
segment.u2c(index, true);
|
|
1688
|
+
break cell_update;
|
|
1689
|
+
}
|
|
1690
|
+
} else {
|
|
1691
|
+
break cell_update;
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
while (0 <= inductionVariable);
|
|
1698
|
+
segment = segment.f2d();
|
|
1699
|
+
}
|
|
1700
|
+
var tmp0_0 = suspendedReceivers;
|
|
1701
|
+
$l$block: {
|
|
1702
|
+
// Inline function 'kotlinx.coroutines.internal.InlineList.forEachReversed' call
|
|
1703
|
+
var tmp0_subject = access$_get_holder__kkflen(tmp0_0);
|
|
1704
|
+
if (tmp0_subject == null) {
|
|
1705
|
+
break $l$block;
|
|
1706
|
+
} else {
|
|
1707
|
+
if (!(tmp0_subject instanceof ArrayList())) {
|
|
1708
|
+
var tmp = access$_get_holder__kkflen(tmp0_0);
|
|
1709
|
+
var it = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1710
|
+
resumeReceiverOnClosedChannel($this, it);
|
|
1711
|
+
} else {
|
|
1712
|
+
var tmp_0 = access$_get_holder__kkflen(tmp0_0);
|
|
1713
|
+
var list = tmp_0 instanceof ArrayList() ? tmp_0 : THROW_CCE();
|
|
1714
|
+
var inductionVariable_0 = list.i1() - 1 | 0;
|
|
1715
|
+
if (0 <= inductionVariable_0)
|
|
1716
|
+
do {
|
|
1717
|
+
var i = inductionVariable_0;
|
|
1718
|
+
inductionVariable_0 = inductionVariable_0 + -1 | 0;
|
|
1719
|
+
var it_0 = list.j1(i);
|
|
1720
|
+
resumeReceiverOnClosedChannel($this, it_0);
|
|
1721
|
+
}
|
|
1722
|
+
while (0 <= inductionVariable_0);
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
function resumeReceiverOnClosedChannel($this, _this__u8e3s4) {
|
|
1728
|
+
return resumeWaiterOnClosedChannel($this, _this__u8e3s4, true);
|
|
1729
|
+
}
|
|
1730
|
+
function resumeSenderOnCancelledChannel($this, _this__u8e3s4) {
|
|
1731
|
+
return resumeWaiterOnClosedChannel($this, _this__u8e3s4, false);
|
|
1732
|
+
}
|
|
1733
|
+
function resumeWaiterOnClosedChannel($this, _this__u8e3s4, receiver) {
|
|
1734
|
+
if (_this__u8e3s4 instanceof SendBroadcast()) {
|
|
1735
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
1736
|
+
var this_0 = _this__u8e3s4.b2f_1;
|
|
1737
|
+
// Inline function 'kotlin.Companion.success' call
|
|
1738
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
1739
|
+
this_0.lc(tmp$ret$0);
|
|
1740
|
+
} else {
|
|
1741
|
+
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
1742
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1743
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
1744
|
+
var exception = receiver ? _get_receiveException__foorc1($this) : $this.r2e();
|
|
1745
|
+
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1746
|
+
_this__u8e3s4.lc(tmp$ret$2);
|
|
1747
|
+
} else {
|
|
1748
|
+
if (_this__u8e3s4 instanceof ReceiveCatching()) {
|
|
1749
|
+
var tmp0 = _this__u8e3s4.y2e_1;
|
|
1750
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
1751
|
+
// Inline function 'kotlin.Companion.success' call
|
|
1752
|
+
var value = new (ChannelResult())(Companion_getInstance().q2f($this.l2d()));
|
|
1753
|
+
var tmp$ret$4 = _Result___init__impl__xyqfz8(value);
|
|
1754
|
+
tmp0.lc(tmp$ret$4);
|
|
1755
|
+
} else {
|
|
1756
|
+
if (_this__u8e3s4 instanceof BufferedChannelIterator()) {
|
|
1757
|
+
_this__u8e3s4.h2f();
|
|
1758
|
+
} else {
|
|
1759
|
+
if (isInterface(_this__u8e3s4, SelectInstance()))
|
|
1760
|
+
_this__u8e3s4.z2e($this, get_CHANNEL_CLOSED());
|
|
1761
|
+
else {
|
|
1762
|
+
// Inline function 'kotlin.error' call
|
|
1763
|
+
var message = 'Unexpected waiter: ' + toString_0(_this__u8e3s4);
|
|
1764
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
function _get_isClosedForSend0__kxgf9m($this, _this__u8e3s4) {
|
|
1772
|
+
return isClosed($this, _this__u8e3s4, false);
|
|
1773
|
+
}
|
|
1774
|
+
function _get_isClosedForReceive0__f7qknl($this, _this__u8e3s4) {
|
|
1775
|
+
return isClosed($this, _this__u8e3s4, true);
|
|
1776
|
+
}
|
|
1777
|
+
function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
1778
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
1779
|
+
var tmp;
|
|
1780
|
+
switch (sendersAndCloseStatusCur.a4(60).c2()) {
|
|
1781
|
+
case 0:
|
|
1782
|
+
tmp = false;
|
|
1783
|
+
break;
|
|
1784
|
+
case 1:
|
|
1785
|
+
tmp = false;
|
|
1786
|
+
break;
|
|
1787
|
+
case 2:
|
|
1788
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1789
|
+
|
|
1790
|
+
var tmp$ret$1 = sendersAndCloseStatusCur.c4(new (Long())(-1, 268435455));
|
|
1791
|
+
completeClose($this, tmp$ret$1);
|
|
1792
|
+
tmp = isClosedForReceive ? !$this.r2f() : true;
|
|
1793
|
+
break;
|
|
1794
|
+
case 3:
|
|
1795
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1796
|
+
|
|
1797
|
+
var tmp$ret$2 = sendersAndCloseStatusCur.c4(new (Long())(-1, 268435455));
|
|
1798
|
+
completeCancel($this, tmp$ret$2);
|
|
1799
|
+
tmp = true;
|
|
1800
|
+
break;
|
|
1801
|
+
default:
|
|
1802
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
1803
|
+
|
|
1804
|
+
var message = 'unexpected close status: ' + sendersAndCloseStatusCur.a4(60).c2();
|
|
1805
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
1806
|
+
}
|
|
1807
|
+
return tmp;
|
|
1808
|
+
}
|
|
1809
|
+
function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
1810
|
+
while (true) {
|
|
1811
|
+
var state = segment.e2c(index);
|
|
1812
|
+
if (state === null || state === get_IN_BUFFER()) {
|
|
1813
|
+
if (segment.g2c(index, state, get_POISONED())) {
|
|
1814
|
+
expandBuffer($this);
|
|
1815
|
+
return false;
|
|
1816
|
+
}
|
|
1817
|
+
} else if (state === get_BUFFERED())
|
|
1818
|
+
return true;
|
|
1819
|
+
else if (state === get_INTERRUPTED_SEND())
|
|
1820
|
+
return false;
|
|
1821
|
+
else if (state === get_CHANNEL_CLOSED())
|
|
1822
|
+
return false;
|
|
1823
|
+
else if (state === get_DONE_RCV())
|
|
1824
|
+
return false;
|
|
1825
|
+
else if (state === get_POISONED())
|
|
1826
|
+
return false;
|
|
1827
|
+
else if (state === get_RESUMING_BY_EB())
|
|
1828
|
+
return true;
|
|
1829
|
+
else if (state === get_RESUMING_BY_RCV())
|
|
1830
|
+
return false;
|
|
1831
|
+
else
|
|
1832
|
+
return globalIndex.equals($this.s2e());
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
function findSegmentSend($this, id, startFrom) {
|
|
1836
|
+
var tmp0 = $this.o2c_1;
|
|
1837
|
+
var tmp6 = createSegmentFunction();
|
|
1838
|
+
var tmp$ret$2;
|
|
1839
|
+
$l$block_2: {
|
|
1840
|
+
// Inline function 'kotlinx.coroutines.internal.findSegmentAndMoveForward' call
|
|
1841
|
+
while (true) {
|
|
1842
|
+
var s = findSegmentInternal(startFrom, id, tmp6);
|
|
1843
|
+
var tmp;
|
|
1844
|
+
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(s)) {
|
|
1845
|
+
tmp = true;
|
|
1846
|
+
} else {
|
|
1847
|
+
var tmp2 = _SegmentOrClosed___get_segment__impl__jvcr9l(s);
|
|
1848
|
+
var tmp$ret$0;
|
|
1849
|
+
$l$block_1: {
|
|
1850
|
+
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1851
|
+
while (true) {
|
|
1852
|
+
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1853
|
+
if (cur.i22_1.a2(tmp2.i22_1) >= 0) {
|
|
1854
|
+
tmp$ret$0 = true;
|
|
1855
|
+
break $l$block_1;
|
|
1856
|
+
}
|
|
1857
|
+
if (!tmp2.y2c()) {
|
|
1858
|
+
tmp$ret$0 = false;
|
|
1859
|
+
break $l$block_1;
|
|
1860
|
+
}
|
|
1861
|
+
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1862
|
+
if (cur.z2c()) {
|
|
1863
|
+
cur.z5();
|
|
1864
|
+
}
|
|
1865
|
+
tmp$ret$0 = true;
|
|
1866
|
+
break $l$block_1;
|
|
1867
|
+
}
|
|
1868
|
+
if (tmp2.z2c()) {
|
|
1869
|
+
tmp2.z5();
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
tmp$ret$0 = Unit_instance;
|
|
1873
|
+
}
|
|
1874
|
+
tmp = tmp$ret$0;
|
|
1875
|
+
}
|
|
1876
|
+
if (tmp) {
|
|
1877
|
+
tmp$ret$2 = s;
|
|
1878
|
+
break $l$block_2;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
// Inline function 'kotlin.let' call
|
|
1883
|
+
var it = tmp$ret$2;
|
|
1884
|
+
var tmp_0;
|
|
1885
|
+
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1886
|
+
completeCloseOrCancel($this);
|
|
1887
|
+
var tmp0_0 = startFrom.i22_1;
|
|
1888
|
+
// Inline function 'kotlin.Long.times' call
|
|
1889
|
+
var other = get_SEGMENT_SIZE();
|
|
1890
|
+
if (tmp0_0.r3(toLong(other)).a2($this.s2e()) < 0) {
|
|
1891
|
+
startFrom.g2d();
|
|
1892
|
+
}
|
|
1893
|
+
tmp_0 = null;
|
|
1894
|
+
} else {
|
|
1895
|
+
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
1896
|
+
var tmp_1;
|
|
1897
|
+
if (segment.i22_1.a2(id) > 0) {
|
|
1898
|
+
var tmp0_1 = segment.i22_1;
|
|
1899
|
+
// Inline function 'kotlin.Long.times' call
|
|
1900
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
1901
|
+
var tmp$ret$4 = tmp0_1.r3(toLong(other_0));
|
|
1902
|
+
updateSendersCounterIfLower($this, tmp$ret$4);
|
|
1903
|
+
var tmp0_2 = segment.i22_1;
|
|
1904
|
+
// Inline function 'kotlin.Long.times' call
|
|
1905
|
+
var other_1 = get_SEGMENT_SIZE();
|
|
1906
|
+
if (tmp0_2.r3(toLong(other_1)).a2($this.s2e()) < 0) {
|
|
1907
|
+
segment.g2d();
|
|
1908
|
+
}
|
|
1909
|
+
tmp_1 = null;
|
|
1910
|
+
} else {
|
|
1911
|
+
// Inline function 'kotlinx.coroutines.assert' call
|
|
1912
|
+
tmp_1 = segment;
|
|
1913
|
+
}
|
|
1914
|
+
tmp_0 = tmp_1;
|
|
1915
|
+
}
|
|
1916
|
+
return tmp_0;
|
|
1917
|
+
}
|
|
1918
|
+
function findSegmentReceive($this, id, startFrom) {
|
|
1919
|
+
var tmp0 = $this.p2c_1;
|
|
1920
|
+
var tmp6 = createSegmentFunction();
|
|
1921
|
+
var tmp$ret$2;
|
|
1922
|
+
$l$block_2: {
|
|
1923
|
+
// Inline function 'kotlinx.coroutines.internal.findSegmentAndMoveForward' call
|
|
1924
|
+
while (true) {
|
|
1925
|
+
var s = findSegmentInternal(startFrom, id, tmp6);
|
|
1926
|
+
var tmp;
|
|
1927
|
+
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(s)) {
|
|
1928
|
+
tmp = true;
|
|
1929
|
+
} else {
|
|
1930
|
+
var tmp2 = _SegmentOrClosed___get_segment__impl__jvcr9l(s);
|
|
1931
|
+
var tmp$ret$0;
|
|
1932
|
+
$l$block_1: {
|
|
1933
|
+
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1934
|
+
while (true) {
|
|
1935
|
+
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1936
|
+
if (cur.i22_1.a2(tmp2.i22_1) >= 0) {
|
|
1937
|
+
tmp$ret$0 = true;
|
|
1938
|
+
break $l$block_1;
|
|
1939
|
+
}
|
|
1940
|
+
if (!tmp2.y2c()) {
|
|
1941
|
+
tmp$ret$0 = false;
|
|
1942
|
+
break $l$block_1;
|
|
1943
|
+
}
|
|
1944
|
+
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1945
|
+
if (cur.z2c()) {
|
|
1946
|
+
cur.z5();
|
|
1947
|
+
}
|
|
1948
|
+
tmp$ret$0 = true;
|
|
1949
|
+
break $l$block_1;
|
|
1950
|
+
}
|
|
1951
|
+
if (tmp2.z2c()) {
|
|
1952
|
+
tmp2.z5();
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
tmp$ret$0 = Unit_instance;
|
|
1956
|
+
}
|
|
1957
|
+
tmp = tmp$ret$0;
|
|
1958
|
+
}
|
|
1959
|
+
if (tmp) {
|
|
1960
|
+
tmp$ret$2 = s;
|
|
1961
|
+
break $l$block_2;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
// Inline function 'kotlin.let' call
|
|
1966
|
+
var it = tmp$ret$2;
|
|
1967
|
+
var tmp_0;
|
|
1968
|
+
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1969
|
+
completeCloseOrCancel($this);
|
|
1970
|
+
var tmp0_0 = startFrom.i22_1;
|
|
1971
|
+
// Inline function 'kotlin.Long.times' call
|
|
1972
|
+
var other = get_SEGMENT_SIZE();
|
|
1973
|
+
if (tmp0_0.r3(toLong(other)).a2($this.m2d()) < 0) {
|
|
1974
|
+
startFrom.g2d();
|
|
1975
|
+
}
|
|
1976
|
+
tmp_0 = null;
|
|
1977
|
+
} else {
|
|
1978
|
+
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
1979
|
+
var tmp_1;
|
|
1980
|
+
if (!_get_isRendezvousOrUnlimited__3mdufi($this)) {
|
|
1981
|
+
var tmp0_1 = _get_bufferEndCounter__2d4hee($this);
|
|
1982
|
+
// Inline function 'kotlin.Long.div' call
|
|
1983
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
1984
|
+
var tmp$ret$4 = tmp0_1.s3(toLong(other_0));
|
|
1985
|
+
tmp_1 = id.a2(tmp$ret$4) <= 0;
|
|
1986
|
+
} else {
|
|
1987
|
+
tmp_1 = false;
|
|
1988
|
+
}
|
|
1989
|
+
if (tmp_1) {
|
|
1990
|
+
var tmp0_2 = $this.q2c_1;
|
|
1991
|
+
$l$block_5: {
|
|
1992
|
+
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1993
|
+
while (true) {
|
|
1994
|
+
var cur_0 = tmp0_2.kotlinx$atomicfu$value;
|
|
1995
|
+
if (cur_0.i22_1.a2(segment.i22_1) >= 0) {
|
|
1996
|
+
break $l$block_5;
|
|
1997
|
+
}
|
|
1998
|
+
if (!segment.y2c()) {
|
|
1999
|
+
break $l$block_5;
|
|
2000
|
+
}
|
|
2001
|
+
if (tmp0_2.atomicfu$compareAndSet(cur_0, segment)) {
|
|
2002
|
+
if (cur_0.z2c()) {
|
|
2003
|
+
cur_0.z5();
|
|
2004
|
+
}
|
|
2005
|
+
break $l$block_5;
|
|
2006
|
+
}
|
|
2007
|
+
if (segment.z2c()) {
|
|
2008
|
+
segment.z5();
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
var tmp_2;
|
|
2014
|
+
if (segment.i22_1.a2(id) > 0) {
|
|
2015
|
+
var tmp0_3 = segment.i22_1;
|
|
2016
|
+
// Inline function 'kotlin.Long.times' call
|
|
2017
|
+
var other_1 = get_SEGMENT_SIZE();
|
|
2018
|
+
var tmp$ret$7 = tmp0_3.r3(toLong(other_1));
|
|
2019
|
+
updateReceiversCounterIfLower($this, tmp$ret$7);
|
|
2020
|
+
var tmp0_4 = segment.i22_1;
|
|
2021
|
+
// Inline function 'kotlin.Long.times' call
|
|
2022
|
+
var other_2 = get_SEGMENT_SIZE();
|
|
2023
|
+
if (tmp0_4.r3(toLong(other_2)).a2($this.m2d()) < 0) {
|
|
2024
|
+
segment.g2d();
|
|
2025
|
+
}
|
|
2026
|
+
tmp_2 = null;
|
|
2027
|
+
} else {
|
|
2028
|
+
// Inline function 'kotlinx.coroutines.assert' call
|
|
2029
|
+
tmp_2 = segment;
|
|
2030
|
+
}
|
|
2031
|
+
tmp_0 = tmp_2;
|
|
2032
|
+
}
|
|
2033
|
+
return tmp_0;
|
|
2034
|
+
}
|
|
2035
|
+
function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
2036
|
+
var tmp0 = $this.q2c_1;
|
|
2037
|
+
var tmp6 = createSegmentFunction();
|
|
2038
|
+
var tmp$ret$2;
|
|
2039
|
+
$l$block_2: {
|
|
2040
|
+
// Inline function 'kotlinx.coroutines.internal.findSegmentAndMoveForward' call
|
|
2041
|
+
while (true) {
|
|
2042
|
+
var s = findSegmentInternal(startFrom, id, tmp6);
|
|
2043
|
+
var tmp;
|
|
2044
|
+
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(s)) {
|
|
2045
|
+
tmp = true;
|
|
2046
|
+
} else {
|
|
2047
|
+
var tmp2 = _SegmentOrClosed___get_segment__impl__jvcr9l(s);
|
|
2048
|
+
var tmp$ret$0;
|
|
2049
|
+
$l$block_1: {
|
|
2050
|
+
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
2051
|
+
while (true) {
|
|
2052
|
+
var cur = tmp0.kotlinx$atomicfu$value;
|
|
2053
|
+
if (cur.i22_1.a2(tmp2.i22_1) >= 0) {
|
|
2054
|
+
tmp$ret$0 = true;
|
|
2055
|
+
break $l$block_1;
|
|
2056
|
+
}
|
|
2057
|
+
if (!tmp2.y2c()) {
|
|
2058
|
+
tmp$ret$0 = false;
|
|
2059
|
+
break $l$block_1;
|
|
2060
|
+
}
|
|
2061
|
+
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2062
|
+
if (cur.z2c()) {
|
|
2063
|
+
cur.z5();
|
|
2064
|
+
}
|
|
2065
|
+
tmp$ret$0 = true;
|
|
2066
|
+
break $l$block_1;
|
|
2067
|
+
}
|
|
2068
|
+
if (tmp2.z2c()) {
|
|
2069
|
+
tmp2.z5();
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
tmp$ret$0 = Unit_instance;
|
|
2073
|
+
}
|
|
2074
|
+
tmp = tmp$ret$0;
|
|
2075
|
+
}
|
|
2076
|
+
if (tmp) {
|
|
2077
|
+
tmp$ret$2 = s;
|
|
2078
|
+
break $l$block_2;
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
// Inline function 'kotlin.let' call
|
|
2083
|
+
var it = tmp$ret$2;
|
|
2084
|
+
var tmp_0;
|
|
2085
|
+
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
2086
|
+
completeCloseOrCancel($this);
|
|
2087
|
+
moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom);
|
|
2088
|
+
incCompletedExpandBufferAttempts$default($this);
|
|
2089
|
+
tmp_0 = null;
|
|
2090
|
+
} else {
|
|
2091
|
+
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
2092
|
+
var tmp_1;
|
|
2093
|
+
if (segment.i22_1.a2(id) > 0) {
|
|
2094
|
+
// Inline function 'kotlin.Long.plus' call
|
|
2095
|
+
var tmp_2 = currentBufferEndCounter.p3(toLong(1));
|
|
2096
|
+
var tmp0_0 = segment.i22_1;
|
|
2097
|
+
// Inline function 'kotlin.Long.times' call
|
|
2098
|
+
var other = get_SEGMENT_SIZE();
|
|
2099
|
+
var tmp$ret$4 = tmp0_0.r3(toLong(other));
|
|
2100
|
+
if ($this.m2c_1.atomicfu$compareAndSet(tmp_2, tmp$ret$4)) {
|
|
2101
|
+
var tmp0_1 = segment.i22_1;
|
|
2102
|
+
// Inline function 'kotlin.Long.times' call
|
|
2103
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
2104
|
+
var tmp$ret$5 = tmp0_1.r3(toLong(other_0));
|
|
2105
|
+
incCompletedExpandBufferAttempts($this, tmp$ret$5.q3(currentBufferEndCounter));
|
|
2106
|
+
} else {
|
|
2107
|
+
incCompletedExpandBufferAttempts$default($this);
|
|
2108
|
+
}
|
|
2109
|
+
tmp_1 = null;
|
|
2110
|
+
} else {
|
|
2111
|
+
// Inline function 'kotlinx.coroutines.assert' call
|
|
2112
|
+
tmp_1 = segment;
|
|
2113
|
+
}
|
|
2114
|
+
tmp_0 = tmp_1;
|
|
2115
|
+
}
|
|
2116
|
+
return tmp_0;
|
|
2117
|
+
}
|
|
2118
|
+
function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
2119
|
+
var segment = startFrom;
|
|
2120
|
+
$l$loop: while (segment.i22_1.a2(id) < 0) {
|
|
2121
|
+
var tmp0_elvis_lhs = segment.c2d();
|
|
2122
|
+
var tmp;
|
|
2123
|
+
if (tmp0_elvis_lhs == null) {
|
|
2124
|
+
break $l$loop;
|
|
2125
|
+
} else {
|
|
2126
|
+
tmp = tmp0_elvis_lhs;
|
|
2127
|
+
}
|
|
2128
|
+
segment = tmp;
|
|
2129
|
+
}
|
|
2130
|
+
while (true) {
|
|
2131
|
+
$l$loop_0: while (segment.x2c()) {
|
|
2132
|
+
var tmp1_elvis_lhs = segment.c2d();
|
|
2133
|
+
var tmp_0;
|
|
2134
|
+
if (tmp1_elvis_lhs == null) {
|
|
2135
|
+
break $l$loop_0;
|
|
2136
|
+
} else {
|
|
2137
|
+
tmp_0 = tmp1_elvis_lhs;
|
|
2138
|
+
}
|
|
2139
|
+
segment = tmp_0;
|
|
2140
|
+
}
|
|
2141
|
+
var tmp0 = $this.q2c_1;
|
|
2142
|
+
var tmp2 = segment;
|
|
2143
|
+
var tmp$ret$0;
|
|
2144
|
+
$l$block_1: {
|
|
2145
|
+
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
2146
|
+
while (true) {
|
|
2147
|
+
var cur = tmp0.kotlinx$atomicfu$value;
|
|
2148
|
+
if (cur.i22_1.a2(tmp2.i22_1) >= 0) {
|
|
2149
|
+
tmp$ret$0 = true;
|
|
2150
|
+
break $l$block_1;
|
|
2151
|
+
}
|
|
2152
|
+
if (!tmp2.y2c()) {
|
|
2153
|
+
tmp$ret$0 = false;
|
|
2154
|
+
break $l$block_1;
|
|
2155
|
+
}
|
|
2156
|
+
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2157
|
+
if (cur.z2c()) {
|
|
2158
|
+
cur.z5();
|
|
2159
|
+
}
|
|
2160
|
+
tmp$ret$0 = true;
|
|
2161
|
+
break $l$block_1;
|
|
2162
|
+
}
|
|
2163
|
+
if (tmp2.z2c()) {
|
|
2164
|
+
tmp2.z5();
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
tmp$ret$0 = Unit_instance;
|
|
2168
|
+
}
|
|
2169
|
+
if (tmp$ret$0)
|
|
2170
|
+
return Unit_instance;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
function updateSendersCounterIfLower($this, value) {
|
|
2174
|
+
var this_0 = $this.k2c_1;
|
|
2175
|
+
while (true) {
|
|
2176
|
+
var cur = this_0.kotlinx$atomicfu$value;
|
|
2177
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2178
|
+
var curCounter = cur.c4(new (Long())(-1, 268435455));
|
|
2179
|
+
if (curCounter.a2(value) >= 0)
|
|
2180
|
+
return Unit_instance;
|
|
2181
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2182
|
+
var tmp$ret$1 = cur.a4(60).c2();
|
|
2183
|
+
var update = constructSendersAndCloseStatus(curCounter, tmp$ret$1);
|
|
2184
|
+
if ($this.k2c_1.atomicfu$compareAndSet(cur, update))
|
|
2185
|
+
return Unit_instance;
|
|
2186
|
+
}
|
|
2187
|
+
return Unit_instance;
|
|
2188
|
+
}
|
|
2189
|
+
function updateReceiversCounterIfLower($this, value) {
|
|
2190
|
+
var this_0 = $this.l2c_1;
|
|
2191
|
+
while (true) {
|
|
2192
|
+
var cur = this_0.kotlinx$atomicfu$value;
|
|
2193
|
+
if (cur.a2(value) >= 0)
|
|
2194
|
+
return Unit_instance;
|
|
2195
|
+
if ($this.l2c_1.atomicfu$compareAndSet(cur, value))
|
|
2196
|
+
return Unit_instance;
|
|
2197
|
+
}
|
|
2198
|
+
return Unit_instance;
|
|
2199
|
+
}
|
|
2200
|
+
function bindCancellationFunResult($this, _this__u8e3s4) {
|
|
2201
|
+
return BufferedChannel$onCancellationChannelResultImplDoNotCall$ref($this);
|
|
2202
|
+
}
|
|
2203
|
+
function onCancellationChannelResultImplDoNotCall($this, cause, element, context) {
|
|
2204
|
+
callUndeliveredElement(ensureNotNull($this.j2c_1), ensureNotNull(ChannelResult__getOrNull_impl_f5e07h(element)), context);
|
|
2205
|
+
}
|
|
2206
|
+
function bindCancellationFun($this, _this__u8e3s4, element) {
|
|
2207
|
+
return BufferedChannel$bindCancellationFun$lambda(_this__u8e3s4, element);
|
|
2208
|
+
}
|
|
2209
|
+
function bindCancellationFun_0($this, _this__u8e3s4) {
|
|
2210
|
+
return BufferedChannel$onCancellationImplDoNotCall$ref($this);
|
|
2211
|
+
}
|
|
2212
|
+
function onCancellationImplDoNotCall($this, cause, element, context) {
|
|
2213
|
+
callUndeliveredElement(ensureNotNull($this.j2c_1), element, context);
|
|
2214
|
+
}
|
|
2215
|
+
function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda$lambda($element, this$0, $select) {
|
|
2216
|
+
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
2217
|
+
var tmp;
|
|
2218
|
+
if (!($element === get_CHANNEL_CLOSED())) {
|
|
2219
|
+
callUndeliveredElement(this$0.j2c_1, ($element == null ? true : !($element == null)) ? $element : THROW_CCE(), $select.gc());
|
|
2220
|
+
tmp = Unit_instance;
|
|
2221
|
+
}
|
|
2222
|
+
return Unit_instance;
|
|
2223
|
+
};
|
|
2224
|
+
}
|
|
2225
|
+
function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda(this$0) {
|
|
2226
|
+
return function (select, _unused_var__etf5q3, element) {
|
|
2227
|
+
return BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda$lambda(element, this$0, select);
|
|
2228
|
+
};
|
|
2229
|
+
}
|
|
2230
|
+
function BufferedChannel$onCancellationChannelResultImplDoNotCall$ref(p0) {
|
|
2231
|
+
var l = function (_this__u8e3s4, p0_0, p1) {
|
|
2232
|
+
var tmp0 = p0;
|
|
2233
|
+
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.t2f_1, p1);
|
|
2234
|
+
return Unit_instance;
|
|
2235
|
+
};
|
|
2236
|
+
l.callableName = 'onCancellationChannelResultImplDoNotCall';
|
|
2237
|
+
return l;
|
|
2238
|
+
}
|
|
2239
|
+
function BufferedChannel$bindCancellationFun$lambda($this_bindCancellationFun, $element) {
|
|
2240
|
+
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, context) {
|
|
2241
|
+
callUndeliveredElement($this_bindCancellationFun, $element, context);
|
|
2242
|
+
return Unit_instance;
|
|
2243
|
+
};
|
|
2244
|
+
}
|
|
2245
|
+
function BufferedChannel$onCancellationImplDoNotCall$ref(p0) {
|
|
2246
|
+
var l = function (_this__u8e3s4, p0_0, p1) {
|
|
2247
|
+
var tmp0 = p0;
|
|
2248
|
+
onCancellationImplDoNotCall(tmp0, _this__u8e3s4, p0_0, p1);
|
|
2249
|
+
return Unit_instance;
|
|
2250
|
+
};
|
|
2251
|
+
l.callableName = 'onCancellationImplDoNotCall';
|
|
2252
|
+
return l;
|
|
2253
|
+
}
|
|
2254
|
+
var $sendCOROUTINE$Class;
|
|
2255
|
+
function $sendCOROUTINE$() {
|
|
2256
|
+
if ($sendCOROUTINE$Class === VOID) {
|
|
2257
|
+
class $ extends CoroutineImpl() {
|
|
2258
|
+
constructor(_this__u8e3s4, element, resultContinuation) {
|
|
2259
|
+
super(resultContinuation);
|
|
2260
|
+
this.c2g_1 = _this__u8e3s4;
|
|
2261
|
+
this.d2g_1 = element;
|
|
2262
|
+
}
|
|
2263
|
+
ic() {
|
|
2264
|
+
var suspendResult = this.cc_1;
|
|
2265
|
+
$sm: do
|
|
2266
|
+
try {
|
|
2267
|
+
var tmp = this.ac_1;
|
|
2268
|
+
switch (tmp) {
|
|
2269
|
+
case 0:
|
|
2270
|
+
this.bc_1 = 11;
|
|
2271
|
+
var tmp_0 = this;
|
|
2272
|
+
tmp_0.e2g_1 = this.c2g_1;
|
|
2273
|
+
var tmp_1 = this;
|
|
2274
|
+
tmp_1.f2g_1 = this.d2g_1;
|
|
2275
|
+
var tmp_2 = this;
|
|
2276
|
+
tmp_2.g2g_1 = null;
|
|
2277
|
+
this.ac_1 = 1;
|
|
2278
|
+
continue $sm;
|
|
2279
|
+
case 1:
|
|
2280
|
+
this.i2g_1 = this.e2g_1;
|
|
2281
|
+
this.j2g_1 = this.f2g_1;
|
|
2282
|
+
this.k2g_1 = this.g2g_1;
|
|
2283
|
+
this.l2g_1 = this.i2g_1.o2c_1.kotlinx$atomicfu$value;
|
|
2284
|
+
this.ac_1 = 2;
|
|
2285
|
+
continue $sm;
|
|
2286
|
+
case 2:
|
|
2287
|
+
if (!true) {
|
|
2288
|
+
this.ac_1 = 12;
|
|
2289
|
+
continue $sm;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
this.m2g_1 = this.i2g_1.k2c_1.atomicfu$getAndIncrement$long();
|
|
2293
|
+
var tmp_3 = this;
|
|
2294
|
+
tmp_3.n2g_1 = this.m2g_1.c4(new (Long())(-1, 268435455));
|
|
2295
|
+
this.o2g_1 = _get_isClosedForSend0__kxgf9m(this.i2g_1, this.m2g_1);
|
|
2296
|
+
var tmp_4 = this;
|
|
2297
|
+
var tmp0 = this.n2g_1;
|
|
2298
|
+
var other = get_SEGMENT_SIZE();
|
|
2299
|
+
tmp_4.p2g_1 = tmp0.s3(toLong(other));
|
|
2300
|
+
var tmp_5 = this;
|
|
2301
|
+
var tmp0_0 = this.n2g_1;
|
|
2302
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
2303
|
+
tmp_5.q2g_1 = tmp0_0.t3(toLong(other_0)).c2();
|
|
2304
|
+
if (!this.l2g_1.i22_1.equals(this.p2g_1)) {
|
|
2305
|
+
this.r2g_1 = findSegmentSend(this.i2g_1, this.p2g_1, this.l2g_1);
|
|
2306
|
+
if (this.r2g_1 == null) {
|
|
2307
|
+
if (this.o2g_1) {
|
|
2308
|
+
this.ac_1 = 10;
|
|
2309
|
+
suspendResult = onClosedSend(this.c2g_1, this.d2g_1, this);
|
|
2310
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2311
|
+
return suspendResult;
|
|
2312
|
+
}
|
|
2313
|
+
continue $sm;
|
|
2314
|
+
} else {
|
|
2315
|
+
this.ac_1 = 2;
|
|
2316
|
+
continue $sm;
|
|
2317
|
+
}
|
|
2318
|
+
} else {
|
|
2319
|
+
this.s2g_1 = this.r2g_1;
|
|
2320
|
+
this.ac_1 = 3;
|
|
2321
|
+
continue $sm;
|
|
2322
|
+
}
|
|
2323
|
+
} else {
|
|
2324
|
+
this.ac_1 = 4;
|
|
2325
|
+
continue $sm;
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
case 3:
|
|
2329
|
+
this.l2g_1 = this.s2g_1;
|
|
2330
|
+
this.ac_1 = 4;
|
|
2331
|
+
continue $sm;
|
|
2332
|
+
case 4:
|
|
2333
|
+
this.t2g_1 = updateCellSend(this.i2g_1, this.l2g_1, this.q2g_1, this.j2g_1, this.n2g_1, this.k2g_1, this.o2g_1);
|
|
2334
|
+
if (this.t2g_1 === 0) {
|
|
2335
|
+
this.l2g_1.g2d();
|
|
2336
|
+
var tmp_6 = this;
|
|
2337
|
+
tmp_6.h2g_1 = Unit_instance;
|
|
2338
|
+
this.ac_1 = 13;
|
|
2339
|
+
continue $sm;
|
|
2340
|
+
} else {
|
|
2341
|
+
if (this.t2g_1 === 1) {
|
|
2342
|
+
var tmp_7 = this;
|
|
2343
|
+
tmp_7.h2g_1 = Unit_instance;
|
|
2344
|
+
this.ac_1 = 13;
|
|
2345
|
+
continue $sm;
|
|
2346
|
+
} else {
|
|
2347
|
+
if (this.t2g_1 === 2) {
|
|
2348
|
+
if (this.o2g_1) {
|
|
2349
|
+
this.l2g_1.w2c();
|
|
2350
|
+
this.ac_1 = 9;
|
|
2351
|
+
suspendResult = onClosedSend(this.c2g_1, this.d2g_1, this);
|
|
2352
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2353
|
+
return suspendResult;
|
|
2354
|
+
}
|
|
2355
|
+
continue $sm;
|
|
2356
|
+
} else {
|
|
2357
|
+
this.ac_1 = 8;
|
|
2358
|
+
continue $sm;
|
|
2359
|
+
}
|
|
2360
|
+
} else {
|
|
2361
|
+
if (this.t2g_1 === 4) {
|
|
2362
|
+
if (this.n2g_1.a2(this.i2g_1.s2e()) < 0) {
|
|
2363
|
+
this.l2g_1.g2d();
|
|
2364
|
+
}
|
|
2365
|
+
this.ac_1 = 7;
|
|
2366
|
+
suspendResult = onClosedSend(this.c2g_1, this.d2g_1, this);
|
|
2367
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2368
|
+
return suspendResult;
|
|
2369
|
+
}
|
|
2370
|
+
continue $sm;
|
|
2371
|
+
} else {
|
|
2372
|
+
if (this.t2g_1 === 5) {
|
|
2373
|
+
this.l2g_1.g2d();
|
|
2374
|
+
this.ac_1 = 2;
|
|
2375
|
+
continue $sm;
|
|
2376
|
+
} else {
|
|
2377
|
+
if (this.t2g_1 === 3) {
|
|
2378
|
+
var tmp_8 = this;
|
|
2379
|
+
tmp_8.u2g_1 = this.l2g_1;
|
|
2380
|
+
var tmp_9 = this;
|
|
2381
|
+
tmp_9.v2g_1 = this.q2g_1;
|
|
2382
|
+
var tmp_10 = this;
|
|
2383
|
+
tmp_10.w2g_1 = this.j2g_1;
|
|
2384
|
+
var tmp_11 = this;
|
|
2385
|
+
tmp_11.x2g_1 = this.n2g_1;
|
|
2386
|
+
this.y2g_1 = this.u2g_1;
|
|
2387
|
+
this.z2g_1 = this.v2g_1;
|
|
2388
|
+
this.a2h_1 = this.w2g_1;
|
|
2389
|
+
this.b2h_1 = this.x2g_1;
|
|
2390
|
+
this.ac_1 = 6;
|
|
2391
|
+
suspendResult = sendOnNoWaiterSuspend(this.c2g_1, this.y2g_1, this.z2g_1, this.a2h_1, this.b2h_1, this);
|
|
2392
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2393
|
+
return suspendResult;
|
|
2394
|
+
}
|
|
2395
|
+
continue $sm;
|
|
2396
|
+
} else {
|
|
2397
|
+
this.ac_1 = 5;
|
|
2398
|
+
continue $sm;
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
case 5:
|
|
2407
|
+
this.ac_1 = 2;
|
|
2408
|
+
continue $sm;
|
|
2409
|
+
case 6:
|
|
2410
|
+
var tmp_12 = this;
|
|
2411
|
+
tmp_12.h2g_1 = Unit_instance;
|
|
2412
|
+
this.ac_1 = 13;
|
|
2413
|
+
continue $sm;
|
|
2414
|
+
case 7:
|
|
2415
|
+
var tmp_13 = this;
|
|
2416
|
+
tmp_13.h2g_1 = Unit_instance;
|
|
2417
|
+
this.ac_1 = 13;
|
|
2418
|
+
continue $sm;
|
|
2419
|
+
case 8:
|
|
2420
|
+
var tmp_14 = this.k2g_1;
|
|
2421
|
+
var tmp2_safe_receiver = (!(tmp_14 == null) ? isInterface(tmp_14, Waiter()) : false) ? tmp_14 : null;
|
|
2422
|
+
if (tmp2_safe_receiver == null)
|
|
2423
|
+
null;
|
|
2424
|
+
else {
|
|
2425
|
+
prepareSenderForSuspension(this.i2g_1, tmp2_safe_receiver, this.l2g_1, this.q2g_1);
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
var tmp_15 = this;
|
|
2429
|
+
this.l2g_1;
|
|
2430
|
+
this.q2g_1;
|
|
2431
|
+
tmp_15.h2g_1 = Unit_instance;
|
|
2432
|
+
this.ac_1 = 13;
|
|
2433
|
+
continue $sm;
|
|
2434
|
+
case 9:
|
|
2435
|
+
var tmp_16 = this;
|
|
2436
|
+
tmp_16.h2g_1 = Unit_instance;
|
|
2437
|
+
this.ac_1 = 13;
|
|
2438
|
+
continue $sm;
|
|
2439
|
+
case 10:
|
|
2440
|
+
var tmp_17 = this;
|
|
2441
|
+
tmp_17.h2g_1 = Unit_instance;
|
|
2442
|
+
this.ac_1 = 13;
|
|
2443
|
+
continue $sm;
|
|
2444
|
+
case 11:
|
|
2445
|
+
throw this.dc_1;
|
|
2446
|
+
case 12:
|
|
2447
|
+
if (false) {
|
|
2448
|
+
this.ac_1 = 1;
|
|
2449
|
+
continue $sm;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
this.ac_1 = 13;
|
|
2453
|
+
continue $sm;
|
|
2454
|
+
case 13:
|
|
2455
|
+
return Unit_instance;
|
|
2456
|
+
}
|
|
2457
|
+
} catch ($p) {
|
|
2458
|
+
var e = $p;
|
|
2459
|
+
if (this.bc_1 === 11) {
|
|
2460
|
+
throw e;
|
|
2461
|
+
} else {
|
|
2462
|
+
this.ac_1 = this.bc_1;
|
|
2463
|
+
this.dc_1 = e;
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
while (true);
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
initMetadataForCoroutine($);
|
|
2470
|
+
$sendCOROUTINE$Class = $;
|
|
2471
|
+
}
|
|
2472
|
+
return $sendCOROUTINE$Class;
|
|
2473
|
+
}
|
|
2474
|
+
var $receiveCOROUTINE$Class;
|
|
2475
|
+
function $receiveCOROUTINE$() {
|
|
2476
|
+
if ($receiveCOROUTINE$Class === VOID) {
|
|
2477
|
+
class $ extends CoroutineImpl() {
|
|
2478
|
+
constructor(_this__u8e3s4, resultContinuation) {
|
|
2479
|
+
super(resultContinuation);
|
|
2480
|
+
this.k2h_1 = _this__u8e3s4;
|
|
2481
|
+
}
|
|
2482
|
+
ic() {
|
|
2483
|
+
var suspendResult = this.cc_1;
|
|
2484
|
+
$sm: do
|
|
2485
|
+
try {
|
|
2486
|
+
var tmp = this.ac_1;
|
|
2487
|
+
switch (tmp) {
|
|
2488
|
+
case 0:
|
|
2489
|
+
this.bc_1 = 8;
|
|
2490
|
+
var tmp_0 = this;
|
|
2491
|
+
tmp_0.l2h_1 = this.k2h_1;
|
|
2492
|
+
var tmp_1 = this;
|
|
2493
|
+
tmp_1.m2h_1 = null;
|
|
2494
|
+
this.ac_1 = 1;
|
|
2495
|
+
continue $sm;
|
|
2496
|
+
case 1:
|
|
2497
|
+
this.o2h_1 = this.l2h_1;
|
|
2498
|
+
this.p2h_1 = this.m2h_1;
|
|
2499
|
+
this.q2h_1 = this.o2h_1.p2c_1.kotlinx$atomicfu$value;
|
|
2500
|
+
this.ac_1 = 2;
|
|
2501
|
+
continue $sm;
|
|
2502
|
+
case 2:
|
|
2503
|
+
if (!true) {
|
|
2504
|
+
this.ac_1 = 9;
|
|
2505
|
+
continue $sm;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
if (this.o2h_1.n2d()) {
|
|
2509
|
+
var tmp_2 = this;
|
|
2510
|
+
throw recoverStackTrace(_get_receiveException__foorc1(this.k2h_1));
|
|
2511
|
+
} else {
|
|
2512
|
+
this.ac_1 = 3;
|
|
2513
|
+
continue $sm;
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
case 3:
|
|
2517
|
+
this.r2h_1 = this.o2h_1.l2c_1.atomicfu$getAndIncrement$long();
|
|
2518
|
+
var tmp_3 = this;
|
|
2519
|
+
var tmp0 = this.r2h_1;
|
|
2520
|
+
var other = get_SEGMENT_SIZE();
|
|
2521
|
+
tmp_3.s2h_1 = tmp0.s3(toLong(other));
|
|
2522
|
+
var tmp_4 = this;
|
|
2523
|
+
var tmp0_0 = this.r2h_1;
|
|
2524
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
2525
|
+
tmp_4.t2h_1 = tmp0_0.t3(toLong(other_0)).c2();
|
|
2526
|
+
if (!this.q2h_1.i22_1.equals(this.s2h_1)) {
|
|
2527
|
+
this.u2h_1 = findSegmentReceive(this.o2h_1, this.s2h_1, this.q2h_1);
|
|
2528
|
+
if (this.u2h_1 == null) {
|
|
2529
|
+
this.ac_1 = 2;
|
|
2530
|
+
var tmp_5 = this;
|
|
2531
|
+
continue $sm;
|
|
2532
|
+
} else {
|
|
2533
|
+
this.v2h_1 = this.u2h_1;
|
|
2534
|
+
this.ac_1 = 4;
|
|
2535
|
+
continue $sm;
|
|
2536
|
+
}
|
|
2537
|
+
} else {
|
|
2538
|
+
this.ac_1 = 5;
|
|
2539
|
+
continue $sm;
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
case 4:
|
|
2543
|
+
this.q2h_1 = this.v2h_1;
|
|
2544
|
+
this.ac_1 = 5;
|
|
2545
|
+
continue $sm;
|
|
2546
|
+
case 5:
|
|
2547
|
+
this.w2h_1 = updateCellReceive(this.o2h_1, this.q2h_1, this.t2h_1, this.r2h_1, this.p2h_1);
|
|
2548
|
+
if (this.w2h_1 === get_SUSPEND()) {
|
|
2549
|
+
var tmp_6 = this;
|
|
2550
|
+
var tmp_7 = this.p2h_1;
|
|
2551
|
+
var tmp1_safe_receiver = (!(tmp_7 == null) ? isInterface(tmp_7, Waiter()) : false) ? tmp_7 : null;
|
|
2552
|
+
if (tmp1_safe_receiver == null)
|
|
2553
|
+
null;
|
|
2554
|
+
else {
|
|
2555
|
+
prepareReceiverForSuspension(this.o2h_1, tmp1_safe_receiver, this.q2h_1, this.t2h_1);
|
|
2556
|
+
}
|
|
2557
|
+
this.q2h_1;
|
|
2558
|
+
this.t2h_1;
|
|
2559
|
+
this.r2h_1;
|
|
2560
|
+
var message = 'unexpected';
|
|
2561
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
2562
|
+
} else {
|
|
2563
|
+
if (this.w2h_1 === get_FAILED()) {
|
|
2564
|
+
if (this.r2h_1.a2(this.o2h_1.m2d()) < 0) {
|
|
2565
|
+
this.q2h_1.g2d();
|
|
2566
|
+
}
|
|
2567
|
+
this.ac_1 = 2;
|
|
2568
|
+
var tmp_8 = this;
|
|
2569
|
+
continue $sm;
|
|
2570
|
+
} else {
|
|
2571
|
+
if (this.w2h_1 === get_SUSPEND_NO_WAITER()) {
|
|
2572
|
+
var tmp_9 = this;
|
|
2573
|
+
tmp_9.y2h_1 = this.q2h_1;
|
|
2574
|
+
var tmp_10 = this;
|
|
2575
|
+
tmp_10.z2h_1 = this.t2h_1;
|
|
2576
|
+
var tmp_11 = this;
|
|
2577
|
+
tmp_11.a2i_1 = this.r2h_1;
|
|
2578
|
+
this.b2i_1 = this.y2h_1;
|
|
2579
|
+
this.c2i_1 = this.z2h_1;
|
|
2580
|
+
this.d2i_1 = this.a2i_1;
|
|
2581
|
+
this.ac_1 = 6;
|
|
2582
|
+
suspendResult = receiveOnNoWaiterSuspend(this.k2h_1, this.b2i_1, this.c2i_1, this.d2i_1, this);
|
|
2583
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2584
|
+
return suspendResult;
|
|
2585
|
+
}
|
|
2586
|
+
continue $sm;
|
|
2587
|
+
} else {
|
|
2588
|
+
var tmp_12 = this;
|
|
2589
|
+
this.q2h_1.g2d();
|
|
2590
|
+
var tmp_13 = this.w2h_1;
|
|
2591
|
+
return (tmp_13 == null ? true : !(tmp_13 == null)) ? tmp_13 : THROW_CCE();
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
case 6:
|
|
2597
|
+
this.x2h_1 = suspendResult;
|
|
2598
|
+
this.ac_1 = 7;
|
|
2599
|
+
continue $sm;
|
|
2600
|
+
case 7:
|
|
2601
|
+
this.n2h_1 = this.x2h_1;
|
|
2602
|
+
this.ac_1 = 10;
|
|
2603
|
+
continue $sm;
|
|
2604
|
+
case 8:
|
|
2605
|
+
throw this.dc_1;
|
|
2606
|
+
case 9:
|
|
2607
|
+
if (false) {
|
|
2608
|
+
this.ac_1 = 1;
|
|
2609
|
+
continue $sm;
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
this.ac_1 = 10;
|
|
2613
|
+
continue $sm;
|
|
2614
|
+
case 10:
|
|
2615
|
+
return this.n2h_1;
|
|
2616
|
+
}
|
|
2617
|
+
} catch ($p) {
|
|
2618
|
+
var e = $p;
|
|
2619
|
+
if (this.bc_1 === 8) {
|
|
2620
|
+
throw e;
|
|
2621
|
+
} else {
|
|
2622
|
+
this.ac_1 = this.bc_1;
|
|
2623
|
+
this.dc_1 = e;
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
while (true);
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
initMetadataForCoroutine($);
|
|
2630
|
+
$receiveCOROUTINE$Class = $;
|
|
2631
|
+
}
|
|
2632
|
+
return $receiveCOROUTINE$Class;
|
|
2633
|
+
}
|
|
2634
|
+
var BufferedChannelClass;
|
|
2635
|
+
function BufferedChannel() {
|
|
2636
|
+
if (BufferedChannelClass === VOID) {
|
|
2637
|
+
class $ {
|
|
2638
|
+
constructor(capacity, onUndeliveredElement) {
|
|
2639
|
+
onUndeliveredElement = onUndeliveredElement === VOID ? null : onUndeliveredElement;
|
|
2640
|
+
this.i2c_1 = capacity;
|
|
2641
|
+
this.j2c_1 = onUndeliveredElement;
|
|
2642
|
+
// Inline function 'kotlin.require' call
|
|
2643
|
+
if (!(this.i2c_1 >= 0)) {
|
|
2644
|
+
var message = 'Invalid channel capacity: ' + this.i2c_1 + ', should be >=0';
|
|
2645
|
+
throw IllegalArgumentException().u(toString_0(message));
|
|
2646
|
+
}
|
|
2647
|
+
this.k2c_1 = atomic$long$1(new (Long())(0, 0));
|
|
2648
|
+
this.l2c_1 = atomic$long$1(new (Long())(0, 0));
|
|
2649
|
+
this.m2c_1 = atomic$long$1(initialBufferEnd(this.i2c_1));
|
|
2650
|
+
this.n2c_1 = atomic$long$1(_get_bufferEndCounter__2d4hee(this));
|
|
2651
|
+
var firstSegment = new (ChannelSegment())(new (Long())(0, 0), null, this, 3);
|
|
2652
|
+
this.o2c_1 = atomic$ref$1(firstSegment);
|
|
2653
|
+
this.p2c_1 = atomic$ref$1(firstSegment);
|
|
2654
|
+
var tmp = this;
|
|
2655
|
+
var tmp_0;
|
|
2656
|
+
if (_get_isRendezvousOrUnlimited__3mdufi(this)) {
|
|
2657
|
+
var tmp_1 = get_NULL_SEGMENT();
|
|
2658
|
+
tmp_0 = tmp_1 instanceof ChannelSegment() ? tmp_1 : THROW_CCE();
|
|
2659
|
+
} else {
|
|
2660
|
+
tmp_0 = firstSegment;
|
|
2661
|
+
}
|
|
2662
|
+
tmp.q2c_1 = atomic$ref$1(tmp_0);
|
|
2663
|
+
var tmp_2 = this;
|
|
2664
|
+
var tmp_3;
|
|
2665
|
+
if (this.j2c_1 == null) {
|
|
2666
|
+
tmp_3 = null;
|
|
2667
|
+
} else {
|
|
2668
|
+
// Inline function 'kotlin.let' call
|
|
2669
|
+
tmp_3 = BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda(this);
|
|
2670
|
+
}
|
|
2671
|
+
tmp_2.r2c_1 = tmp_3;
|
|
2672
|
+
this.s2c_1 = atomic$ref$1(get_NO_CLOSE_CAUSE());
|
|
2673
|
+
this.t2c_1 = atomic$ref$1(null);
|
|
2674
|
+
}
|
|
2675
|
+
m2d() {
|
|
2676
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2677
|
+
return this.k2c_1.kotlinx$atomicfu$value.c4(new (Long())(-1, 268435455));
|
|
2678
|
+
}
|
|
2679
|
+
s2e() {
|
|
2680
|
+
return this.l2c_1.kotlinx$atomicfu$value;
|
|
2681
|
+
}
|
|
2682
|
+
e2i(element, $completion) {
|
|
2683
|
+
var tmp = new ($sendCOROUTINE$())(this, element, $completion);
|
|
2684
|
+
tmp.cc_1 = Unit_instance;
|
|
2685
|
+
tmp.dc_1 = null;
|
|
2686
|
+
return tmp.ic();
|
|
2687
|
+
}
|
|
2688
|
+
f2i(element) {
|
|
2689
|
+
if (shouldSendSuspend0(this, this.k2c_1.kotlinx$atomicfu$value))
|
|
2690
|
+
return Companion_getInstance().g2i();
|
|
2691
|
+
var tmp4 = get_INTERRUPTED_SEND();
|
|
2692
|
+
var tmp$ret$4;
|
|
2693
|
+
$l$block_4: {
|
|
2694
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2695
|
+
var segment = this.o2c_1.kotlinx$atomicfu$value;
|
|
2696
|
+
$l$loop_0: while (true) {
|
|
2697
|
+
var sendersAndCloseStatusCur = this.k2c_1.atomicfu$getAndIncrement$long();
|
|
2698
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2699
|
+
var s = sendersAndCloseStatusCur.c4(new (Long())(-1, 268435455));
|
|
2700
|
+
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
2701
|
+
// Inline function 'kotlin.Long.div' call
|
|
2702
|
+
var other = get_SEGMENT_SIZE();
|
|
2703
|
+
var id = s.s3(toLong(other));
|
|
2704
|
+
// Inline function 'kotlin.Long.rem' call
|
|
2705
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
2706
|
+
var i = s.t3(toLong(other_0)).c2();
|
|
2707
|
+
if (!segment.i22_1.equals(id)) {
|
|
2708
|
+
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2709
|
+
var tmp;
|
|
2710
|
+
if (tmp0_elvis_lhs == null) {
|
|
2711
|
+
var tmp_0;
|
|
2712
|
+
if (closed) {
|
|
2713
|
+
tmp$ret$4 = Companion_getInstance().q2f(this.r2e());
|
|
2714
|
+
break $l$block_4;
|
|
2715
|
+
} else {
|
|
2716
|
+
continue $l$loop_0;
|
|
2717
|
+
}
|
|
2718
|
+
} else {
|
|
2719
|
+
tmp = tmp0_elvis_lhs;
|
|
2720
|
+
}
|
|
2721
|
+
segment = tmp;
|
|
2722
|
+
}
|
|
2723
|
+
switch (updateCellSend(this, segment, i, element, s, tmp4, closed)) {
|
|
2724
|
+
case 0:
|
|
2725
|
+
segment.g2d();
|
|
2726
|
+
tmp$ret$4 = Companion_getInstance().x2e(Unit_instance);
|
|
2727
|
+
break $l$block_4;
|
|
2728
|
+
case 1:
|
|
2729
|
+
tmp$ret$4 = Companion_getInstance().x2e(Unit_instance);
|
|
2730
|
+
break $l$block_4;
|
|
2731
|
+
case 2:
|
|
2732
|
+
if (closed) {
|
|
2733
|
+
segment.w2c();
|
|
2734
|
+
tmp$ret$4 = Companion_getInstance().q2f(this.r2e());
|
|
2735
|
+
break $l$block_4;
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
var tmp2_safe_receiver = (!(tmp4 == null) ? isInterface(tmp4, Waiter()) : false) ? tmp4 : null;
|
|
2739
|
+
if (tmp2_safe_receiver == null)
|
|
2740
|
+
null;
|
|
2741
|
+
else {
|
|
2742
|
+
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
segment.w2c();
|
|
2746
|
+
tmp$ret$4 = Companion_getInstance().g2i();
|
|
2747
|
+
break $l$block_4;
|
|
2748
|
+
case 4:
|
|
2749
|
+
if (s.a2(this.s2e()) < 0) {
|
|
2750
|
+
segment.g2d();
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
tmp$ret$4 = Companion_getInstance().q2f(this.r2e());
|
|
2754
|
+
break $l$block_4;
|
|
2755
|
+
case 5:
|
|
2756
|
+
segment.g2d();
|
|
2757
|
+
continue $l$loop_0;
|
|
2758
|
+
case 3:
|
|
2759
|
+
var message = 'unexpected';
|
|
2760
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
return tmp$ret$4;
|
|
2765
|
+
}
|
|
2766
|
+
h2i(element) {
|
|
2767
|
+
var tmp$ret$3;
|
|
2768
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2769
|
+
var waiter = get_BUFFERED();
|
|
2770
|
+
var segment = this.o2c_1.kotlinx$atomicfu$value;
|
|
2771
|
+
$l$loop_0: while (true) {
|
|
2772
|
+
var sendersAndCloseStatusCur = this.k2c_1.atomicfu$getAndIncrement$long();
|
|
2773
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2774
|
+
var s = sendersAndCloseStatusCur.c4(new (Long())(-1, 268435455));
|
|
2775
|
+
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
2776
|
+
// Inline function 'kotlin.Long.div' call
|
|
2777
|
+
var other = get_SEGMENT_SIZE();
|
|
2778
|
+
var id = s.s3(toLong(other));
|
|
2779
|
+
// Inline function 'kotlin.Long.rem' call
|
|
2780
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
2781
|
+
var i = s.t3(toLong(other_0)).c2();
|
|
2782
|
+
if (!segment.i22_1.equals(id)) {
|
|
2783
|
+
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2784
|
+
var tmp;
|
|
2785
|
+
if (tmp0_elvis_lhs == null) {
|
|
2786
|
+
var tmp_0;
|
|
2787
|
+
if (closed) {
|
|
2788
|
+
return Companion_getInstance().q2f(this.r2e());
|
|
2789
|
+
} else {
|
|
2790
|
+
continue $l$loop_0;
|
|
2791
|
+
}
|
|
2792
|
+
} else {
|
|
2793
|
+
tmp = tmp0_elvis_lhs;
|
|
2794
|
+
}
|
|
2795
|
+
segment = tmp;
|
|
2796
|
+
}
|
|
2797
|
+
switch (updateCellSend(this, segment, i, element, s, waiter, closed)) {
|
|
2798
|
+
case 0:
|
|
2799
|
+
segment.g2d();
|
|
2800
|
+
return Companion_getInstance().x2e(Unit_instance);
|
|
2801
|
+
case 1:
|
|
2802
|
+
return Companion_getInstance().x2e(Unit_instance);
|
|
2803
|
+
case 2:
|
|
2804
|
+
if (closed) {
|
|
2805
|
+
segment.w2c();
|
|
2806
|
+
return Companion_getInstance().q2f(this.r2e());
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2809
|
+
var tmp2_safe_receiver = (!(waiter == null) ? isInterface(waiter, Waiter()) : false) ? waiter : null;
|
|
2810
|
+
if (tmp2_safe_receiver == null)
|
|
2811
|
+
null;
|
|
2812
|
+
else {
|
|
2813
|
+
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
var tmp0 = segment.i22_1;
|
|
2817
|
+
// Inline function 'kotlin.Long.times' call
|
|
2818
|
+
|
|
2819
|
+
var other_1 = get_SEGMENT_SIZE();
|
|
2820
|
+
// Inline function 'kotlin.Long.plus' call
|
|
2821
|
+
|
|
2822
|
+
var tmp$ret$5 = tmp0.r3(toLong(other_1)).p3(toLong(i));
|
|
2823
|
+
this.o2f(tmp$ret$5);
|
|
2824
|
+
return Companion_getInstance().x2e(Unit_instance);
|
|
2825
|
+
case 4:
|
|
2826
|
+
if (s.a2(this.s2e()) < 0) {
|
|
2827
|
+
segment.g2d();
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
return Companion_getInstance().q2f(this.r2e());
|
|
2831
|
+
case 5:
|
|
2832
|
+
segment.g2d();
|
|
2833
|
+
continue $l$loop_0;
|
|
2834
|
+
case 3:
|
|
2835
|
+
var message = 'unexpected';
|
|
2836
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
return tmp$ret$3;
|
|
2840
|
+
}
|
|
2841
|
+
a2f() {
|
|
2842
|
+
}
|
|
2843
|
+
t2e() {
|
|
2844
|
+
}
|
|
2845
|
+
i2i($completion) {
|
|
2846
|
+
var tmp = new ($receiveCOROUTINE$())(this, $completion);
|
|
2847
|
+
tmp.cc_1 = Unit_instance;
|
|
2848
|
+
tmp.dc_1 = null;
|
|
2849
|
+
return tmp.ic();
|
|
2850
|
+
}
|
|
2851
|
+
j2i() {
|
|
2852
|
+
var r = this.l2c_1.kotlinx$atomicfu$value;
|
|
2853
|
+
var sendersAndCloseStatusCur = this.k2c_1.kotlinx$atomicfu$value;
|
|
2854
|
+
if (_get_isClosedForReceive0__f7qknl(this, sendersAndCloseStatusCur)) {
|
|
2855
|
+
return Companion_getInstance().q2f(this.l2d());
|
|
2856
|
+
}
|
|
2857
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2858
|
+
var s = sendersAndCloseStatusCur.c4(new (Long())(-1, 268435455));
|
|
2859
|
+
if (r.a2(s) >= 0)
|
|
2860
|
+
return Companion_getInstance().g2i();
|
|
2861
|
+
var tmp2 = get_INTERRUPTED_RCV();
|
|
2862
|
+
var tmp$ret$2;
|
|
2863
|
+
$l$block_0: {
|
|
2864
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
2865
|
+
var segment = this.p2c_1.kotlinx$atomicfu$value;
|
|
2866
|
+
$l$loop_0: while (true) {
|
|
2867
|
+
if (this.n2d()) {
|
|
2868
|
+
tmp$ret$2 = Companion_getInstance().q2f(this.l2d());
|
|
2869
|
+
break $l$block_0;
|
|
2870
|
+
}
|
|
2871
|
+
var r_0 = this.l2c_1.atomicfu$getAndIncrement$long();
|
|
2872
|
+
// Inline function 'kotlin.Long.div' call
|
|
2873
|
+
var other = get_SEGMENT_SIZE();
|
|
2874
|
+
var id = r_0.s3(toLong(other));
|
|
2875
|
+
// Inline function 'kotlin.Long.rem' call
|
|
2876
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
2877
|
+
var i = r_0.t3(toLong(other_0)).c2();
|
|
2878
|
+
if (!segment.i22_1.equals(id)) {
|
|
2879
|
+
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2880
|
+
var tmp;
|
|
2881
|
+
if (tmp0_elvis_lhs == null) {
|
|
2882
|
+
continue $l$loop_0;
|
|
2883
|
+
} else {
|
|
2884
|
+
tmp = tmp0_elvis_lhs;
|
|
2885
|
+
}
|
|
2886
|
+
segment = tmp;
|
|
2887
|
+
}
|
|
2888
|
+
var updCellResult = updateCellReceive(this, segment, i, r_0, tmp2);
|
|
2889
|
+
var tmp_0;
|
|
2890
|
+
if (updCellResult === get_SUSPEND()) {
|
|
2891
|
+
var tmp1_safe_receiver = (!(tmp2 == null) ? isInterface(tmp2, Waiter()) : false) ? tmp2 : null;
|
|
2892
|
+
if (tmp1_safe_receiver == null)
|
|
2893
|
+
null;
|
|
2894
|
+
else {
|
|
2895
|
+
prepareReceiverForSuspension(this, tmp1_safe_receiver, segment, i);
|
|
2896
|
+
}
|
|
2897
|
+
var segm = segment;
|
|
2898
|
+
this.v2c(r_0);
|
|
2899
|
+
segm.w2c();
|
|
2900
|
+
tmp_0 = new (ChannelResult())(Companion_getInstance().g2i());
|
|
2901
|
+
} else if (updCellResult === get_FAILED()) {
|
|
2902
|
+
if (r_0.a2(this.m2d()) < 0) {
|
|
2903
|
+
segment.g2d();
|
|
2904
|
+
}
|
|
2905
|
+
continue $l$loop_0;
|
|
2906
|
+
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
2907
|
+
var message = 'unexpected';
|
|
2908
|
+
throw IllegalStateException().o4(toString_0(message));
|
|
2909
|
+
} else {
|
|
2910
|
+
segment.g2d();
|
|
2911
|
+
var element = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
2912
|
+
tmp_0 = new (ChannelResult())(Companion_getInstance().x2e(element));
|
|
2913
|
+
}
|
|
2914
|
+
tmp$ret$2 = tmp_0.t2f_1;
|
|
2915
|
+
break $l$block_0;
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
return tmp$ret$2;
|
|
2919
|
+
}
|
|
2920
|
+
o2f(globalCellIndex) {
|
|
2921
|
+
// Inline function 'kotlinx.coroutines.assert' call
|
|
2922
|
+
var segment = this.p2c_1.kotlinx$atomicfu$value;
|
|
2923
|
+
$l$loop_0: while (true) {
|
|
2924
|
+
var r = this.l2c_1.kotlinx$atomicfu$value;
|
|
2925
|
+
// Inline function 'kotlin.Long.plus' call
|
|
2926
|
+
var other = this.i2c_1;
|
|
2927
|
+
var tmp0 = r.p3(toLong(other));
|
|
2928
|
+
// Inline function 'kotlin.math.max' call
|
|
2929
|
+
var b = _get_bufferEndCounter__2d4hee(this);
|
|
2930
|
+
var tmp$ret$2 = tmp0.a2(b) >= 0 ? tmp0 : b;
|
|
2931
|
+
if (globalCellIndex.a2(tmp$ret$2) < 0)
|
|
2932
|
+
return Unit_instance;
|
|
2933
|
+
// Inline function 'kotlin.Long.plus' call
|
|
2934
|
+
var tmp$ret$3 = r.p3(toLong(1));
|
|
2935
|
+
if (!this.l2c_1.atomicfu$compareAndSet(r, tmp$ret$3))
|
|
2936
|
+
continue $l$loop_0;
|
|
2937
|
+
// Inline function 'kotlin.Long.div' call
|
|
2938
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
2939
|
+
var id = r.s3(toLong(other_0));
|
|
2940
|
+
// Inline function 'kotlin.Long.rem' call
|
|
2941
|
+
var other_1 = get_SEGMENT_SIZE();
|
|
2942
|
+
var i = r.t3(toLong(other_1)).c2();
|
|
2943
|
+
if (!segment.i22_1.equals(id)) {
|
|
2944
|
+
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2945
|
+
var tmp;
|
|
2946
|
+
if (tmp0_elvis_lhs == null) {
|
|
2947
|
+
continue $l$loop_0;
|
|
2948
|
+
} else {
|
|
2949
|
+
tmp = tmp0_elvis_lhs;
|
|
2950
|
+
}
|
|
2951
|
+
segment = tmp;
|
|
2952
|
+
}
|
|
2953
|
+
var updCellResult = updateCellReceive(this, segment, i, r, null);
|
|
2954
|
+
if (updCellResult === get_FAILED()) {
|
|
2955
|
+
if (r.a2(this.m2d()) < 0) {
|
|
2956
|
+
segment.g2d();
|
|
2957
|
+
}
|
|
2958
|
+
} else {
|
|
2959
|
+
segment.g2d();
|
|
2960
|
+
var tmp1_safe_receiver = this.j2c_1;
|
|
2961
|
+
var tmp_0;
|
|
2962
|
+
if (tmp1_safe_receiver == null) {
|
|
2963
|
+
tmp_0 = null;
|
|
2964
|
+
} else {
|
|
2965
|
+
tmp_0 = callUndeliveredElementCatchingException(tmp1_safe_receiver, (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE());
|
|
2966
|
+
}
|
|
2967
|
+
var tmp2_safe_receiver = tmp_0;
|
|
2968
|
+
if (tmp2_safe_receiver == null)
|
|
2969
|
+
null;
|
|
2970
|
+
else {
|
|
2971
|
+
// Inline function 'kotlin.let' call
|
|
2972
|
+
throw tmp2_safe_receiver;
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
v2c(globalIndex) {
|
|
2978
|
+
if (_get_isRendezvousOrUnlimited__3mdufi(this))
|
|
2979
|
+
return Unit_instance;
|
|
2980
|
+
while (_get_bufferEndCounter__2d4hee(this).a2(globalIndex) <= 0) {
|
|
2981
|
+
}
|
|
2982
|
+
// Inline function 'kotlin.repeat' call
|
|
2983
|
+
var times = get_EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS();
|
|
2984
|
+
var inductionVariable = 0;
|
|
2985
|
+
if (inductionVariable < times)
|
|
2986
|
+
do {
|
|
2987
|
+
var index = inductionVariable;
|
|
2988
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2989
|
+
var b = _get_bufferEndCounter__2d4hee(this);
|
|
2990
|
+
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2991
|
+
var ebCompleted = this.n2c_1.kotlinx$atomicfu$value.c4(new (Long())(-1, 1073741823));
|
|
2992
|
+
if (b.equals(ebCompleted) && b.equals(_get_bufferEndCounter__2d4hee(this)))
|
|
2993
|
+
return Unit_instance;
|
|
2994
|
+
}
|
|
2995
|
+
while (inductionVariable < times);
|
|
2996
|
+
var tmp0 = this.n2c_1;
|
|
2997
|
+
$l$block: {
|
|
2998
|
+
// Inline function 'kotlinx.atomicfu.update' call
|
|
2999
|
+
while (true) {
|
|
3000
|
+
var cur = tmp0.kotlinx$atomicfu$value;
|
|
3001
|
+
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
3002
|
+
var tmp$ret$3 = cur.c4(new (Long())(-1, 1073741823));
|
|
3003
|
+
var upd = constructEBCompletedAndPauseFlag(tmp$ret$3, true);
|
|
3004
|
+
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
3005
|
+
break $l$block;
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
3009
|
+
while (true) {
|
|
3010
|
+
var b_0 = _get_bufferEndCounter__2d4hee(this);
|
|
3011
|
+
var ebCompletedAndBit = this.n2c_1.kotlinx$atomicfu$value;
|
|
3012
|
+
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
3013
|
+
var ebCompleted_0 = ebCompletedAndBit.c4(new (Long())(-1, 1073741823));
|
|
3014
|
+
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
3015
|
+
var pauseExpandBuffers = !ebCompletedAndBit.c4(new (Long())(0, 1073741824)).equals(new (Long())(0, 0));
|
|
3016
|
+
if (b_0.equals(ebCompleted_0) && b_0.equals(_get_bufferEndCounter__2d4hee(this))) {
|
|
3017
|
+
var tmp0_0 = this.n2c_1;
|
|
3018
|
+
$l$block_0: {
|
|
3019
|
+
// Inline function 'kotlinx.atomicfu.update' call
|
|
3020
|
+
while (true) {
|
|
3021
|
+
var cur_0 = tmp0_0.kotlinx$atomicfu$value;
|
|
3022
|
+
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
3023
|
+
var tmp$ret$8 = cur_0.c4(new (Long())(-1, 1073741823));
|
|
3024
|
+
var upd_0 = constructEBCompletedAndPauseFlag(tmp$ret$8, false);
|
|
3025
|
+
if (tmp0_0.atomicfu$compareAndSet(cur_0, upd_0)) {
|
|
3026
|
+
break $l$block_0;
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
return Unit_instance;
|
|
3031
|
+
}
|
|
3032
|
+
if (!pauseExpandBuffers) {
|
|
3033
|
+
this.n2c_1.atomicfu$compareAndSet(ebCompletedAndBit, constructEBCompletedAndPauseFlag(ebCompleted_0, true));
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
3037
|
+
d1() {
|
|
3038
|
+
return new (BufferedChannelIterator())(this);
|
|
3039
|
+
}
|
|
3040
|
+
l2d() {
|
|
3041
|
+
var tmp = this.s2c_1.kotlinx$atomicfu$value;
|
|
3042
|
+
return (tmp == null ? true : tmp instanceof Error) ? tmp : THROW_CCE();
|
|
3043
|
+
}
|
|
3044
|
+
r2e() {
|
|
3045
|
+
var tmp0_elvis_lhs = this.l2d();
|
|
3046
|
+
return tmp0_elvis_lhs == null ? ClosedSendChannelException().o2i('Channel was closed') : tmp0_elvis_lhs;
|
|
3047
|
+
}
|
|
3048
|
+
p2i() {
|
|
3049
|
+
}
|
|
3050
|
+
q2i(cause) {
|
|
3051
|
+
return this.r2i(cause, false);
|
|
3052
|
+
}
|
|
3053
|
+
c1z(cause) {
|
|
3054
|
+
this.t2i(cause);
|
|
3055
|
+
}
|
|
3056
|
+
t2i(cause) {
|
|
3057
|
+
return this.r2i(cause == null ? CancellationException().cd('Channel was cancelled') : cause, true);
|
|
3058
|
+
}
|
|
3059
|
+
r2i(cause, cancel) {
|
|
3060
|
+
if (cancel) {
|
|
3061
|
+
markCancellationStarted(this);
|
|
3062
|
+
}
|
|
3063
|
+
var closedByThisOperation = this.s2c_1.atomicfu$compareAndSet(get_NO_CLOSE_CAUSE(), cause);
|
|
3064
|
+
if (cancel) {
|
|
3065
|
+
markCancelled(this);
|
|
3066
|
+
} else {
|
|
3067
|
+
markClosed(this);
|
|
3068
|
+
}
|
|
3069
|
+
completeCloseOrCancel(this);
|
|
3070
|
+
// Inline function 'kotlin.also' call
|
|
3071
|
+
this.p2i();
|
|
3072
|
+
if (closedByThisOperation) {
|
|
3073
|
+
invokeCloseHandler(this);
|
|
3074
|
+
}
|
|
3075
|
+
return closedByThisOperation;
|
|
3076
|
+
}
|
|
3077
|
+
p2f() {
|
|
3078
|
+
return false;
|
|
3079
|
+
}
|
|
3080
|
+
n2f() {
|
|
3081
|
+
return _get_isClosedForSend0__kxgf9m(this, this.k2c_1.kotlinx$atomicfu$value);
|
|
3082
|
+
}
|
|
3083
|
+
n2d() {
|
|
3084
|
+
return _get_isClosedForReceive0__f7qknl(this, this.k2c_1.kotlinx$atomicfu$value);
|
|
3085
|
+
}
|
|
3086
|
+
r2f() {
|
|
3087
|
+
$l$loop: while (true) {
|
|
3088
|
+
var segment = this.p2c_1.kotlinx$atomicfu$value;
|
|
3089
|
+
var r = this.s2e();
|
|
3090
|
+
var s = this.m2d();
|
|
3091
|
+
if (s.a2(r) <= 0)
|
|
3092
|
+
return false;
|
|
3093
|
+
// Inline function 'kotlin.Long.div' call
|
|
3094
|
+
var other = get_SEGMENT_SIZE();
|
|
3095
|
+
var id = r.s3(toLong(other));
|
|
3096
|
+
if (!segment.i22_1.equals(id)) {
|
|
3097
|
+
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
3098
|
+
var tmp;
|
|
3099
|
+
if (tmp0_elvis_lhs == null) {
|
|
3100
|
+
var tmp_0;
|
|
3101
|
+
if (this.p2c_1.kotlinx$atomicfu$value.i22_1.a2(id) < 0) {
|
|
3102
|
+
return false;
|
|
3103
|
+
} else {
|
|
3104
|
+
continue $l$loop;
|
|
3105
|
+
}
|
|
3106
|
+
} else {
|
|
3107
|
+
tmp = tmp0_elvis_lhs;
|
|
3108
|
+
}
|
|
3109
|
+
segment = tmp;
|
|
3110
|
+
}
|
|
3111
|
+
segment.g2d();
|
|
3112
|
+
// Inline function 'kotlin.Long.rem' call
|
|
3113
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
3114
|
+
var i = r.t3(toLong(other_0)).c2();
|
|
3115
|
+
if (isCellNonEmpty(this, segment, i, r))
|
|
3116
|
+
return true;
|
|
3117
|
+
// Inline function 'kotlin.Long.plus' call
|
|
3118
|
+
var tmp$ret$2 = r.p3(toLong(1));
|
|
3119
|
+
this.l2c_1.atomicfu$compareAndSet(r, tmp$ret$2);
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
toString() {
|
|
3123
|
+
var sb = StringBuilder().a1();
|
|
3124
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
3125
|
+
var tmp0_subject = this.k2c_1.kotlinx$atomicfu$value.a4(60).c2();
|
|
3126
|
+
if (tmp0_subject === 2) {
|
|
3127
|
+
sb.jb('closed,');
|
|
3128
|
+
} else if (tmp0_subject === 3) {
|
|
3129
|
+
sb.jb('cancelled,');
|
|
3130
|
+
}
|
|
3131
|
+
sb.jb('capacity=' + this.i2c_1 + ',');
|
|
3132
|
+
sb.jb('data=[');
|
|
3133
|
+
// Inline function 'kotlin.collections.filter' call
|
|
3134
|
+
var tmp0 = listOf([this.p2c_1.kotlinx$atomicfu$value, this.o2c_1.kotlinx$atomicfu$value, this.q2c_1.kotlinx$atomicfu$value]);
|
|
3135
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
3136
|
+
var destination = ArrayList().l1();
|
|
3137
|
+
var _iterator__ex2g4s = tmp0.d1();
|
|
3138
|
+
while (_iterator__ex2g4s.e1()) {
|
|
3139
|
+
var element = _iterator__ex2g4s.f1();
|
|
3140
|
+
if (!(element === get_NULL_SEGMENT())) {
|
|
3141
|
+
destination.m(element);
|
|
3142
|
+
}
|
|
3143
|
+
}
|
|
3144
|
+
var tmp$ret$4;
|
|
3145
|
+
$l$block: {
|
|
3146
|
+
// Inline function 'kotlin.collections.minBy' call
|
|
3147
|
+
var iterator = destination.d1();
|
|
3148
|
+
if (!iterator.e1())
|
|
3149
|
+
throw NoSuchElementException().d6();
|
|
3150
|
+
var minElem = iterator.f1();
|
|
3151
|
+
if (!iterator.e1()) {
|
|
3152
|
+
tmp$ret$4 = minElem;
|
|
3153
|
+
break $l$block;
|
|
3154
|
+
}
|
|
3155
|
+
var minValue = minElem.i22_1;
|
|
3156
|
+
do {
|
|
3157
|
+
var e = iterator.f1();
|
|
3158
|
+
var v = e.i22_1;
|
|
3159
|
+
if (compareTo(minValue, v) > 0) {
|
|
3160
|
+
minElem = e;
|
|
3161
|
+
minValue = v;
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
while (iterator.e1());
|
|
3165
|
+
tmp$ret$4 = minElem;
|
|
3166
|
+
}
|
|
3167
|
+
var firstSegment = tmp$ret$4;
|
|
3168
|
+
var r = this.s2e();
|
|
3169
|
+
var s = this.m2d();
|
|
3170
|
+
var segment = firstSegment;
|
|
3171
|
+
append_elements: while (true) {
|
|
3172
|
+
var inductionVariable = 0;
|
|
3173
|
+
var last_0 = get_SEGMENT_SIZE();
|
|
3174
|
+
if (inductionVariable < last_0)
|
|
3175
|
+
process_cell: do {
|
|
3176
|
+
var i = inductionVariable;
|
|
3177
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3178
|
+
var tmp0_0 = segment.i22_1;
|
|
3179
|
+
// Inline function 'kotlin.Long.times' call
|
|
3180
|
+
var other = get_SEGMENT_SIZE();
|
|
3181
|
+
// Inline function 'kotlin.Long.plus' call
|
|
3182
|
+
var globalCellIndex = tmp0_0.r3(toLong(other)).p3(toLong(i));
|
|
3183
|
+
if (globalCellIndex.a2(s) >= 0 && globalCellIndex.a2(r) >= 0)
|
|
3184
|
+
break append_elements;
|
|
3185
|
+
var cellState = segment.e2c(i);
|
|
3186
|
+
var element_0 = segment.b2c(i);
|
|
3187
|
+
var tmp;
|
|
3188
|
+
if (!(cellState == null) ? isInterface(cellState, CancellableContinuation()) : false) {
|
|
3189
|
+
tmp = globalCellIndex.a2(r) < 0 && globalCellIndex.a2(s) >= 0 ? 'receive' : globalCellIndex.a2(s) < 0 && globalCellIndex.a2(r) >= 0 ? 'send' : 'cont';
|
|
3190
|
+
} else {
|
|
3191
|
+
if (!(cellState == null) ? isInterface(cellState, SelectInstance()) : false) {
|
|
3192
|
+
tmp = globalCellIndex.a2(r) < 0 && globalCellIndex.a2(s) >= 0 ? 'onReceive' : globalCellIndex.a2(s) < 0 && globalCellIndex.a2(r) >= 0 ? 'onSend' : 'select';
|
|
3193
|
+
} else {
|
|
3194
|
+
if (cellState instanceof ReceiveCatching()) {
|
|
3195
|
+
tmp = 'receiveCatching';
|
|
3196
|
+
} else {
|
|
3197
|
+
if (cellState instanceof SendBroadcast()) {
|
|
3198
|
+
tmp = 'sendBroadcast';
|
|
3199
|
+
} else {
|
|
3200
|
+
if (cellState instanceof WaiterEB()) {
|
|
3201
|
+
tmp = 'EB(' + cellState.toString() + ')';
|
|
3202
|
+
} else {
|
|
3203
|
+
if (equals(cellState, get_RESUMING_BY_RCV()) || equals(cellState, get_RESUMING_BY_EB())) {
|
|
3204
|
+
tmp = 'resuming_sender';
|
|
3205
|
+
} else {
|
|
3206
|
+
if (cellState == null || (equals(cellState, get_IN_BUFFER()) || equals(cellState, get_DONE_RCV())) || (equals(cellState, get_POISONED()) || equals(cellState, get_INTERRUPTED_RCV()) || (equals(cellState, get_INTERRUPTED_SEND()) || equals(cellState, get_CHANNEL_CLOSED())))) {
|
|
3207
|
+
continue process_cell;
|
|
3208
|
+
} else {
|
|
3209
|
+
tmp = toString_0(cellState);
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
var cellStateString = tmp;
|
|
3218
|
+
if (!(element_0 == null)) {
|
|
3219
|
+
sb.jb('(' + cellStateString + ',' + toString(element_0) + '),');
|
|
3220
|
+
} else {
|
|
3221
|
+
sb.jb(cellStateString + ',');
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
while (inductionVariable < last_0);
|
|
3225
|
+
var tmp2_elvis_lhs = segment.c2d();
|
|
3226
|
+
var tmp_0;
|
|
3227
|
+
if (tmp2_elvis_lhs == null) {
|
|
3228
|
+
break append_elements;
|
|
3229
|
+
} else {
|
|
3230
|
+
tmp_0 = tmp2_elvis_lhs;
|
|
3231
|
+
}
|
|
3232
|
+
segment = tmp_0;
|
|
3233
|
+
}
|
|
3234
|
+
if (last(sb) === _Char___init__impl__6a9atx(44)) {
|
|
3235
|
+
sb.di(sb.a() - 1 | 0);
|
|
3236
|
+
}
|
|
3237
|
+
sb.jb(']');
|
|
3238
|
+
return sb.toString();
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3241
|
+
protoOf($).s2i = close$default;
|
|
3242
|
+
protoOf($).u2i = cancel$default;
|
|
3243
|
+
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [SendChannel(), ReceiveChannel()], [1, 4, 0, 3]);
|
|
3244
|
+
BufferedChannelClass = $;
|
|
3245
|
+
}
|
|
3246
|
+
return BufferedChannelClass;
|
|
3247
|
+
}
|
|
3248
|
+
var WaiterEBClass;
|
|
3249
|
+
function WaiterEB() {
|
|
3250
|
+
if (WaiterEBClass === VOID) {
|
|
3251
|
+
class $ {
|
|
3252
|
+
constructor(waiter) {
|
|
3253
|
+
this.u2e_1 = waiter;
|
|
3254
|
+
}
|
|
3255
|
+
toString() {
|
|
3256
|
+
return 'WaiterEB(' + toString_0(this.u2e_1) + ')';
|
|
3257
|
+
}
|
|
3258
|
+
}
|
|
3259
|
+
initMetadataForClass($, 'WaiterEB');
|
|
3260
|
+
WaiterEBClass = $;
|
|
3261
|
+
}
|
|
3262
|
+
return WaiterEBClass;
|
|
3263
|
+
}
|
|
3264
|
+
function initialBufferEnd(capacity) {
|
|
3265
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3266
|
+
switch (capacity) {
|
|
3267
|
+
case 0:
|
|
3268
|
+
return new (Long())(0, 0);
|
|
3269
|
+
case 2147483647:
|
|
3270
|
+
return new (Long())(-1, 2147483647);
|
|
3271
|
+
default:
|
|
3272
|
+
return toLong(capacity);
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
var ReceiveCatchingClass;
|
|
3276
|
+
function ReceiveCatching() {
|
|
3277
|
+
if (ReceiveCatchingClass === VOID) {
|
|
3278
|
+
class $ {}
|
|
3279
|
+
initMetadataForClass($, 'ReceiveCatching', VOID, VOID, [Waiter()]);
|
|
3280
|
+
ReceiveCatchingClass = $;
|
|
3281
|
+
}
|
|
3282
|
+
return ReceiveCatchingClass;
|
|
3283
|
+
}
|
|
3284
|
+
function tryResume0(_this__u8e3s4, value, onCancellation) {
|
|
3285
|
+
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
3286
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3287
|
+
// Inline function 'kotlin.let' call
|
|
3288
|
+
var token = _this__u8e3s4.g21(value, null, onCancellation);
|
|
3289
|
+
var tmp;
|
|
3290
|
+
if (!(token == null)) {
|
|
3291
|
+
_this__u8e3s4.h21(token);
|
|
3292
|
+
tmp = true;
|
|
3293
|
+
} else {
|
|
3294
|
+
tmp = false;
|
|
3295
|
+
}
|
|
3296
|
+
return tmp;
|
|
3297
|
+
}
|
|
3298
|
+
function constructEBCompletedAndPauseFlag(counter, pauseEB) {
|
|
3299
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3300
|
+
return (pauseEB ? new (Long())(0, 1073741824) : new (Long())(0, 0)).p3(counter);
|
|
3301
|
+
}
|
|
3302
|
+
function constructSendersAndCloseStatus(counter, closeStatus) {
|
|
3303
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3304
|
+
return toLong(closeStatus).z3(60).p3(counter);
|
|
3305
|
+
}
|
|
3306
|
+
function createSegmentFunction() {
|
|
3307
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3308
|
+
return createSegment$ref();
|
|
3309
|
+
}
|
|
3310
|
+
function createSegment(id, prev) {
|
|
3311
|
+
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3312
|
+
return new (ChannelSegment())(id, prev, prev.y2b(), 0);
|
|
3313
|
+
}
|
|
3314
|
+
function createSegment$ref() {
|
|
3315
|
+
var l = function (p0, p1) {
|
|
3316
|
+
return createSegment(p0, p1);
|
|
3317
|
+
};
|
|
3318
|
+
l.callableName = 'createSegment';
|
|
3319
|
+
return l;
|
|
3320
|
+
}
|
|
3321
|
+
var properties_initialized_BufferedChannel_kt_58tjvw;
|
|
3322
|
+
function _init_properties_BufferedChannel_kt__d6uc4y() {
|
|
3323
|
+
if (!properties_initialized_BufferedChannel_kt_58tjvw) {
|
|
3324
|
+
properties_initialized_BufferedChannel_kt_58tjvw = true;
|
|
3325
|
+
NULL_SEGMENT = new (ChannelSegment())(new (Long())(-1, -1), null, null, 0);
|
|
3326
|
+
SEGMENT_SIZE = systemProp('kotlinx.coroutines.bufferedChannel.segmentSize', 32);
|
|
3327
|
+
EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS = systemProp('kotlinx.coroutines.bufferedChannel.expandBufferCompletionWaitIterations', 10000);
|
|
3328
|
+
BUFFERED = new (Symbol())('BUFFERED');
|
|
3329
|
+
IN_BUFFER = new (Symbol())('SHOULD_BUFFER');
|
|
3330
|
+
RESUMING_BY_RCV = new (Symbol())('S_RESUMING_BY_RCV');
|
|
3331
|
+
RESUMING_BY_EB = new (Symbol())('RESUMING_BY_EB');
|
|
3332
|
+
POISONED = new (Symbol())('POISONED');
|
|
3333
|
+
DONE_RCV = new (Symbol())('DONE_RCV');
|
|
3334
|
+
INTERRUPTED_SEND = new (Symbol())('INTERRUPTED_SEND');
|
|
3335
|
+
INTERRUPTED_RCV = new (Symbol())('INTERRUPTED_RCV');
|
|
3336
|
+
CHANNEL_CLOSED = new (Symbol())('CHANNEL_CLOSED');
|
|
3337
|
+
SUSPEND = new (Symbol())('SUSPEND');
|
|
3338
|
+
SUSPEND_NO_WAITER = new (Symbol())('SUSPEND_NO_WAITER');
|
|
3339
|
+
FAILED = new (Symbol())('FAILED');
|
|
3340
|
+
NO_RECEIVE_RESULT = new (Symbol())('NO_RECEIVE_RESULT');
|
|
3341
|
+
CLOSE_HANDLER_CLOSED = new (Symbol())('CLOSE_HANDLER_CLOSED');
|
|
3342
|
+
CLOSE_HANDLER_INVOKED = new (Symbol())('CLOSE_HANDLER_INVOKED');
|
|
3343
|
+
NO_CLOSE_CAUSE = new (Symbol())('NO_CLOSE_CAUSE');
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
//region block: exports
|
|
3347
|
+
export {
|
|
3348
|
+
BufferedChannel as BufferedChannel3lgkhzot5gmk6,
|
|
3349
|
+
};
|
|
3350
|
+
//endregion
|
|
3351
|
+
|
|
3352
|
+
//# sourceMappingURL=BufferedChannel.mjs.map
|