@attocash/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +28 -0
- package/README.md +707 -0
- package/dist/application/app.d.ts +138 -0
- package/dist/application/app.js +654 -0
- package/dist/application/operations.d.ts +9 -0
- package/dist/application/operations.js +96 -0
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +460 -0
- package/dist/cli/help.d.ts +4 -0
- package/dist/cli/help.js +49 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.js +13 -0
- package/dist/cli/onboarding.d.ts +14 -0
- package/dist/cli/onboarding.js +144 -0
- package/dist/cli/output.d.ts +2 -0
- package/dist/cli/output.js +231 -0
- package/dist/cli/terminal.d.ts +6 -0
- package/dist/cli/terminal.js +92 -0
- package/dist/cli/update-check.d.ts +1 -0
- package/dist/cli/update-check.js +12 -0
- package/dist/cli/updates.d.ts +2 -0
- package/dist/cli/updates.js +98 -0
- package/dist/core.d.ts +14 -0
- package/dist/core.js +14 -0
- package/dist/doctor/credential-probe.d.ts +7 -0
- package/dist/doctor/credential-probe.js +49 -0
- package/dist/doctor/doctor.d.ts +4 -0
- package/dist/doctor/doctor.js +213 -0
- package/dist/doctor/keyring.d.ts +7 -0
- package/dist/doctor/keyring.js +150 -0
- package/dist/doctor/profile.d.ts +19 -0
- package/dist/doctor/profile.js +73 -0
- package/dist/doctor/types.d.ts +40 -0
- package/dist/doctor/types.js +1 -0
- package/dist/domain/amount.d.ts +6 -0
- package/dist/domain/amount.js +27 -0
- package/dist/domain/errors.d.ts +10 -0
- package/dist/domain/errors.js +16 -0
- package/dist/labels/directory.d.ts +87 -0
- package/dist/labels/directory.js +140 -0
- package/dist/labels/personal.d.ts +17 -0
- package/dist/labels/personal.js +56 -0
- package/dist/labels/presentation.d.ts +154 -0
- package/dist/labels/presentation.js +90 -0
- package/dist/network/reader.d.ts +31 -0
- package/dist/network/reader.js +370 -0
- package/dist/network/retry.d.ts +7 -0
- package/dist/network/retry.js +53 -0
- package/dist/network/work.d.ts +3 -0
- package/dist/network/work.js +66 -0
- package/dist/pricing/market.d.ts +29 -0
- package/dist/pricing/market.js +150 -0
- package/dist/pricing/terms.d.ts +6 -0
- package/dist/pricing/terms.js +12 -0
- package/dist/spending/destination.d.ts +16 -0
- package/dist/spending/destination.js +42 -0
- package/dist/spending/journal.d.ts +28 -0
- package/dist/spending/journal.js +69 -0
- package/dist/spending/ledger.d.ts +118 -0
- package/dist/spending/ledger.js +444 -0
- package/dist/spending/payments.d.ts +67 -0
- package/dist/spending/payments.js +424 -0
- package/dist/spending/pool.d.ts +13 -0
- package/dist/spending/pool.js +38 -0
- package/dist/spending/reconcile.d.ts +18 -0
- package/dist/spending/reconcile.js +64 -0
- package/dist/storage/profiles.d.ts +13 -0
- package/dist/storage/profiles.js +86 -0
- package/dist/storage/secrets.d.ts +16 -0
- package/dist/storage/secrets.js +104 -0
- package/dist/storage/state.d.ts +32 -0
- package/dist/storage/state.js +255 -0
- package/dist/wallet/auto-receive.d.ts +57 -0
- package/dist/wallet/auto-receive.js +140 -0
- package/dist/wallet/defaults.d.ts +3 -0
- package/dist/wallet/defaults.js +26 -0
- package/dist/wallet/signing.d.ts +17 -0
- package/dist/wallet/signing.js +128 -0
- package/dist/wallet/types.d.ts +65 -0
- package/dist/wallet/types.js +1 -0
- package/dist/wallet/work.d.ts +29 -0
- package/dist/wallet/work.js +154 -0
- package/dist/watches/manager.d.ts +75 -0
- package/dist/watches/manager.js +197 -0
- package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs +6678 -0
- package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/LICENSE +28 -0
- package/node_modules/@attocash/commons-core/README.md +118 -0
- package/node_modules/@attocash/commons-core/commons-commons-core.d.mts +1036 -0
- package/node_modules/@attocash/commons-core/commons-commons-core.mjs +7701 -0
- package/node_modules/@attocash/commons-core/commons-commons-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs +17681 -0
- package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/node_modules/@attocash/commons-core/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs +209 -0
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs +2284 -0
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs +6042 -0
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/package.json +27 -0
- package/node_modules/@attocash/commons-node/LICENSE +28 -0
- package/node_modules/@attocash/commons-node/README.md +92 -0
- package/node_modules/@attocash/commons-node/commons-commons-node.d.mts +255 -0
- package/node_modules/@attocash/commons-node/commons-commons-node.mjs +2977 -0
- package/node_modules/@attocash/commons-node/commons-commons-node.mjs.map +1 -0
- package/node_modules/@attocash/commons-node/kotlin-logging.mjs +432 -0
- package/node_modules/@attocash/commons-node/kotlin-logging.mjs.map +1 -0
- package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-node/package.json +29 -0
- package/node_modules/@attocash/commons-node-remote/LICENSE +28 -0
- package/node_modules/@attocash/commons-node-remote/README.md +61 -0
- package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.d.mts +122 -0
- package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs +1810 -0
- package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs +432 -0
- package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-browser.mjs +8 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-browser.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/package.json +31 -0
- package/node_modules/@attocash/commons-transport/LICENSE +28 -0
- package/node_modules/@attocash/commons-transport/README.md +5 -0
- package/node_modules/@attocash/commons-transport/commons-commons-transport.d.mts +64 -0
- package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs +249 -0
- package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs +263 -0
- package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-browser.mjs +8 -0
- package/node_modules/@attocash/commons-transport/kotlinx-browser.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs +11604 -0
- package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs +499 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs +6456 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs +83 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs +1714 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs +3197 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs +2290 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs +46 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs +482 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs +165 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-sse.mjs +4 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-sse.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs +3222 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-websocket-serialization.mjs +4 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-websocket-serialization.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs +1485 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/package.json +29 -0
- package/node_modules/@attocash/commons-worker/LICENSE +28 -0
- package/node_modules/@attocash/commons-worker/README.md +48 -0
- package/node_modules/@attocash/commons-worker/commons-commons-worker.d.mts +73 -0
- package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs +702 -0
- package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker/kotlin-logging.mjs +432 -0
- package/node_modules/@attocash/commons-worker/kotlin-logging.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker/package.json +29 -0
- package/node_modules/@attocash/commons-worker-remote/LICENSE +28 -0
- package/node_modules/@attocash/commons-worker-remote/README.md +60 -0
- package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.d.mts +93 -0
- package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs +289 -0
- package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs +432 -0
- package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-browser.mjs +8 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-browser.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/package.json +31 -0
- package/node_modules/@js-joda/core/CHANGELOG.md +363 -0
- package/node_modules/@js-joda/core/CheatSheet.md +947 -0
- package/node_modules/@js-joda/core/LICENSE +34 -0
- package/node_modules/@js-joda/core/README.md +155 -0
- package/node_modules/@js-joda/core/bower.json +21 -0
- package/node_modules/@js-joda/core/dist/js-joda.d.ts +2452 -0
- package/node_modules/@js-joda/core/dist/js-joda.esm.js +13564 -0
- package/node_modules/@js-joda/core/dist/js-joda.flow.js +949 -0
- package/node_modules/@js-joda/core/dist/js-joda.js +13630 -0
- package/node_modules/@js-joda/core/dist/js-joda.js.map +1 -0
- package/node_modules/@js-joda/core/dist/js-joda.min.js +5 -0
- package/node_modules/@js-joda/core/package.json +76 -0
- package/node_modules/@js-joda/core/src/Clock.js +330 -0
- package/node_modules/@js-joda/core/src/DayOfWeek.js +451 -0
- package/node_modules/@js-joda/core/src/Duration.js +1205 -0
- package/node_modules/@js-joda/core/src/Enum.js +30 -0
- package/node_modules/@js-joda/core/src/Instant.js +1012 -0
- package/node_modules/@js-joda/core/src/LocalDate.js +1703 -0
- package/node_modules/@js-joda/core/src/LocalDateTime.js +1686 -0
- package/node_modules/@js-joda/core/src/LocalTime.js +1415 -0
- package/node_modules/@js-joda/core/src/MathUtil.js +236 -0
- package/node_modules/@js-joda/core/src/Month.js +600 -0
- package/node_modules/@js-joda/core/src/MonthDay.js +730 -0
- package/node_modules/@js-joda/core/src/OffsetDateTime.js +757 -0
- package/node_modules/@js-joda/core/src/OffsetTime.js +621 -0
- package/node_modules/@js-joda/core/src/Period.js +933 -0
- package/node_modules/@js-joda/core/src/StringUtil.js +43 -0
- package/node_modules/@js-joda/core/src/Year.js +1015 -0
- package/node_modules/@js-joda/core/src/YearConstants.js +21 -0
- package/node_modules/@js-joda/core/src/YearMonth.js +1096 -0
- package/node_modules/@js-joda/core/src/ZoneId.js +236 -0
- package/node_modules/@js-joda/core/src/ZoneIdFactory.js +201 -0
- package/node_modules/@js-joda/core/src/ZoneOffset.js +486 -0
- package/node_modules/@js-joda/core/src/ZoneRegion.js +72 -0
- package/node_modules/@js-joda/core/src/ZonedDateTime.js +2007 -0
- package/node_modules/@js-joda/core/src/_init.js +68 -0
- package/node_modules/@js-joda/core/src/assert.js +33 -0
- package/node_modules/@js-joda/core/src/chrono/ChronoLocalDate.js +230 -0
- package/node_modules/@js-joda/core/src/chrono/ChronoLocalDateTime.js +130 -0
- package/node_modules/@js-joda/core/src/chrono/ChronoZonedDateTime.js +194 -0
- package/node_modules/@js-joda/core/src/chrono/IsoChronology.js +235 -0
- package/node_modules/@js-joda/core/src/convert.js +83 -0
- package/node_modules/@js-joda/core/src/errors.js +54 -0
- package/node_modules/@js-joda/core/src/format/DateTimeBuilder.js +535 -0
- package/node_modules/@js-joda/core/src/format/DateTimeFormatter.js +728 -0
- package/node_modules/@js-joda/core/src/format/DateTimeFormatterBuilder.js +1545 -0
- package/node_modules/@js-joda/core/src/format/DateTimeParseContext.js +297 -0
- package/node_modules/@js-joda/core/src/format/DateTimePrintContext.js +138 -0
- package/node_modules/@js-joda/core/src/format/DecimalStyle.js +113 -0
- package/node_modules/@js-joda/core/src/format/EnumMap.js +70 -0
- package/node_modules/@js-joda/core/src/format/ParsePosition.js +31 -0
- package/node_modules/@js-joda/core/src/format/ResolverStyle.js +93 -0
- package/node_modules/@js-joda/core/src/format/SignStyle.js +38 -0
- package/node_modules/@js-joda/core/src/format/StringBuilder.js +47 -0
- package/node_modules/@js-joda/core/src/format/TextStyle.js +114 -0
- package/node_modules/@js-joda/core/src/format/parser/CharLiteralPrinterParser.js +46 -0
- package/node_modules/@js-joda/core/src/format/parser/CompositePrinterParser.js +89 -0
- package/node_modules/@js-joda/core/src/format/parser/FractionPrinterParser.js +162 -0
- package/node_modules/@js-joda/core/src/format/parser/NumberPrinterParser.js +367 -0
- package/node_modules/@js-joda/core/src/format/parser/OffsetIdPrinterParser.js +177 -0
- package/node_modules/@js-joda/core/src/format/parser/PadPrinterParserDecorator.js +81 -0
- package/node_modules/@js-joda/core/src/format/parser/SettingsParser.js +44 -0
- package/node_modules/@js-joda/core/src/format/parser/StringLiteralPrinterParser.js +39 -0
- package/node_modules/@js-joda/core/src/format/parser/ZoneIdPrinterParser.js +218 -0
- package/node_modules/@js-joda/core/src/js-joda.js +210 -0
- package/node_modules/@js-joda/core/src/license-preamble.js +3 -0
- package/node_modules/@js-joda/core/src/temporal/ChronoField.js +470 -0
- package/node_modules/@js-joda/core/src/temporal/ChronoUnit.js +310 -0
- package/node_modules/@js-joda/core/src/temporal/DefaultInterfaceTemporal.js +118 -0
- package/node_modules/@js-joda/core/src/temporal/IsoFields.js +859 -0
- package/node_modules/@js-joda/core/src/temporal/NativeJsTemporal.js +105 -0
- package/node_modules/@js-joda/core/src/temporal/Temporal.js +346 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalAccessor.js +125 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalAdjuster.js +92 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalAdjusters.js +464 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalAmount.js +166 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalField.js +248 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalQueries.js +223 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalQueriesFactory.js +77 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalQuery.js +107 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalUnit.js +179 -0
- package/node_modules/@js-joda/core/src/temporal/ValueRange.js +257 -0
- package/node_modules/@js-joda/core/src/use.js +20 -0
- package/node_modules/@js-joda/core/src/zone/SystemDefaultZoneId.js +31 -0
- package/node_modules/@js-joda/core/src/zone/SystemDefaultZoneRules.js +162 -0
- package/node_modules/@js-joda/core/src/zone/ZoneOffsetTransition.js +289 -0
- package/node_modules/@js-joda/core/src/zone/ZoneRules.js +464 -0
- package/node_modules/@js-joda/core/src/zone/ZoneRulesProvider.js +36 -0
- package/node_modules/@noble/hashes/LICENSE +21 -0
- package/node_modules/@noble/hashes/README.md +563 -0
- package/node_modules/@noble/hashes/_blake.d.ts +21 -0
- package/node_modules/@noble/hashes/_blake.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_blake.js +52 -0
- package/node_modules/@noble/hashes/_blake.js.map +1 -0
- package/node_modules/@noble/hashes/_md.d.ts +99 -0
- package/node_modules/@noble/hashes/_md.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_md.js +202 -0
- package/node_modules/@noble/hashes/_md.js.map +1 -0
- package/node_modules/@noble/hashes/_u64.d.ts +63 -0
- package/node_modules/@noble/hashes/_u64.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_u64.js +84 -0
- package/node_modules/@noble/hashes/_u64.js.map +1 -0
- package/node_modules/@noble/hashes/argon2.d.ts +112 -0
- package/node_modules/@noble/hashes/argon2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/argon2.js +517 -0
- package/node_modules/@noble/hashes/argon2.js.map +1 -0
- package/node_modules/@noble/hashes/blake1.d.ts +156 -0
- package/node_modules/@noble/hashes/blake1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake1.js +560 -0
- package/node_modules/@noble/hashes/blake1.js.map +1 -0
- package/node_modules/@noble/hashes/blake2.d.ts +184 -0
- package/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2.js +501 -0
- package/node_modules/@noble/hashes/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/blake3.d.ts +68 -0
- package/node_modules/@noble/hashes/blake3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake3.js +284 -0
- package/node_modules/@noble/hashes/blake3.js.map +1 -0
- package/node_modules/@noble/hashes/eskdf.d.ts +92 -0
- package/node_modules/@noble/hashes/eskdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/eskdf.js +218 -0
- package/node_modules/@noble/hashes/eskdf.js.map +1 -0
- package/node_modules/@noble/hashes/hkdf.d.ts +64 -0
- package/node_modules/@noble/hashes/hkdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hkdf.js +120 -0
- package/node_modules/@noble/hashes/hkdf.js.map +1 -0
- package/node_modules/@noble/hashes/hmac.d.ts +47 -0
- package/node_modules/@noble/hashes/hmac.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hmac.js +93 -0
- package/node_modules/@noble/hashes/hmac.js.map +1 -0
- package/node_modules/@noble/hashes/index.d.ts +2 -0
- package/node_modules/@noble/hashes/index.d.ts.map +1 -0
- package/node_modules/@noble/hashes/index.js +35 -0
- package/node_modules/@noble/hashes/index.js.map +1 -0
- package/node_modules/@noble/hashes/legacy.d.ts +102 -0
- package/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/legacy.js +327 -0
- package/node_modules/@noble/hashes/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/package.json +97 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts +56 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/pbkdf2.js +135 -0
- package/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
- package/node_modules/@noble/hashes/scrypt.d.ts +65 -0
- package/node_modules/@noble/hashes/scrypt.d.ts.map +1 -0
- package/node_modules/@noble/hashes/scrypt.js +257 -0
- package/node_modules/@noble/hashes/scrypt.js.map +1 -0
- package/node_modules/@noble/hashes/sha2.d.ts +249 -0
- package/node_modules/@noble/hashes/sha2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha2.js +458 -0
- package/node_modules/@noble/hashes/sha2.js.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts +461 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.js +783 -0
- package/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
- package/node_modules/@noble/hashes/sha3.d.ts +199 -0
- package/node_modules/@noble/hashes/sha3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3.js +431 -0
- package/node_modules/@noble/hashes/sha3.js.map +1 -0
- package/node_modules/@noble/hashes/src/_blake.ts +57 -0
- package/node_modules/@noble/hashes/src/_md.ts +222 -0
- package/node_modules/@noble/hashes/src/_u64.ts +117 -0
- package/node_modules/@noble/hashes/src/argon2.ts +667 -0
- package/node_modules/@noble/hashes/src/blake1.ts +614 -0
- package/node_modules/@noble/hashes/src/blake2.ts +582 -0
- package/node_modules/@noble/hashes/src/blake3.ts +317 -0
- package/node_modules/@noble/hashes/src/eskdf.ts +259 -0
- package/node_modules/@noble/hashes/src/hkdf.ts +133 -0
- package/node_modules/@noble/hashes/src/hmac.ts +126 -0
- package/node_modules/@noble/hashes/src/index.ts +33 -0
- package/node_modules/@noble/hashes/src/legacy.ts +339 -0
- package/node_modules/@noble/hashes/src/pbkdf2.ts +175 -0
- package/node_modules/@noble/hashes/src/scrypt.ts +315 -0
- package/node_modules/@noble/hashes/src/sha2.ts +530 -0
- package/node_modules/@noble/hashes/src/sha3-addons.ts +983 -0
- package/node_modules/@noble/hashes/src/sha3.ts +485 -0
- package/node_modules/@noble/hashes/src/utils.ts +848 -0
- package/node_modules/@noble/hashes/src/webcrypto.ts +239 -0
- package/node_modules/@noble/hashes/utils.d.ts +519 -0
- package/node_modules/@noble/hashes/utils.d.ts.map +1 -0
- package/node_modules/@noble/hashes/utils.js +578 -0
- package/node_modules/@noble/hashes/utils.js.map +1 -0
- package/node_modules/@noble/hashes/webcrypto.d.ts +120 -0
- package/node_modules/@noble/hashes/webcrypto.d.ts.map +1 -0
- package/node_modules/@noble/hashes/webcrypto.js +165 -0
- package/node_modules/@noble/hashes/webcrypto.js.map +1 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +530 -0
- package/node_modules/ws/lib/receiver.js +743 -0
- package/node_modules/ws/lib/sender.js +607 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +562 -0
- package/node_modules/ws/lib/websocket.js +1407 -0
- package/node_modules/ws/package.json +74 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/package.json +53 -0
|
@@ -0,0 +1,2290 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Companion_instance1co2nkledm2ru as Companion_instance,
|
|
3
|
+
Unit_instance3vdlo4e4f5ggx as Unit_instance,
|
|
4
|
+
_Result___init__impl__xyqfz810za1hm0unrcw as _Result___init__impl__xyqfz8,
|
|
5
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
6
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
7
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
8
|
+
toString30pk9tzaqopn as toString,
|
|
9
|
+
hashCodeq5arwsb9dgti as hashCode,
|
|
10
|
+
equals2au1ep9vhcato as equals,
|
|
11
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
12
|
+
createFailure8paxfkfa5dc7 as createFailure,
|
|
13
|
+
Result3t1vadv16kmzk as Result,
|
|
14
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
15
|
+
toString1h6jjoch8cjt8 as toString_0,
|
|
16
|
+
newThrowablezl37abp36p5f as newThrowable,
|
|
17
|
+
stackTraceToString2670q6lbhdojj as stackTraceToString,
|
|
18
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
19
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
20
|
+
FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
|
|
21
|
+
CancellationException3b36o9qz53rgr as CancellationException,
|
|
22
|
+
fromInt2ii0rejb1w62w as fromInt,
|
|
23
|
+
numberToLong2pakxeg38estk as numberToLong,
|
|
24
|
+
add2suhfggl4zvkk as add,
|
|
25
|
+
intercepted2ogpsikxxj4u0 as intercepted,
|
|
26
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
27
|
+
convertToInty04h231mmjoh as convertToInt,
|
|
28
|
+
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
29
|
+
toString1pkumu07cwy4m as toString_1,
|
|
30
|
+
captureStack1fzi4aczwc4hg as captureStack,
|
|
31
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
32
|
+
get_ONEazvfdh9ju3d4 as get_ONE,
|
|
33
|
+
replace3le3ie7l9k8aq as replace,
|
|
34
|
+
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
35
|
+
StringBuildermazzzhj6kkai as StringBuilder,
|
|
36
|
+
subtract2orl8z9upxd9l as subtract,
|
|
37
|
+
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
38
|
+
EmptyCoroutineContext_instancegbhtm9svfl3r as EmptyCoroutineContext_instance,
|
|
39
|
+
Continuation1aa2oekvx7jm7 as Continuation,
|
|
40
|
+
Enum3alwj03lh1n41 as Enum,
|
|
41
|
+
ArrayList3it5z8td81qkl as ArrayList,
|
|
42
|
+
listOf1jh22dvmctj1r as listOf,
|
|
43
|
+
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
44
|
+
encodeToByteArray22651fhg4p67t as encodeToByteArray,
|
|
45
|
+
AutoCloseable1l5p57f9lp7kv as AutoCloseable,
|
|
46
|
+
_Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
|
|
47
|
+
replaceqbix900hl8kl as replace_0,
|
|
48
|
+
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
49
|
+
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
50
|
+
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
51
|
+
trim11nh7r46at6sx as trim,
|
|
52
|
+
toByte4i43936u611k as toByte,
|
|
53
|
+
decodeToString1x4faah2liw2p as decodeToString,
|
|
54
|
+
setOf45ia9pnfhe90 as setOf,
|
|
55
|
+
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
56
|
+
Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
|
|
57
|
+
} from '@attocash/commons-core/kotlin-kotlin-stdlib.mjs';
|
|
58
|
+
import {
|
|
59
|
+
DisposableHandle1uzxt8frdchxn as DisposableHandle,
|
|
60
|
+
CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
|
|
61
|
+
CancellableContinuationImpl1cx201opicavg as CancellableContinuationImpl,
|
|
62
|
+
launch1c91vkjzdi9sd as launch,
|
|
63
|
+
startCoroutineCancellable18shtfwdieib as startCoroutineCancellable,
|
|
64
|
+
get_job2zvlvce9o9a29 as get_job,
|
|
65
|
+
Job13y4jkazwjho0 as Job,
|
|
66
|
+
cancel1xim2hrvjmwpn as cancel,
|
|
67
|
+
Dispatchers_getInstance20p7pyqnrepag as Dispatchers_getInstance,
|
|
68
|
+
} from './kotlinx-coroutines-core.mjs';
|
|
69
|
+
import {
|
|
70
|
+
Buffergs925ekssbch as Buffer,
|
|
71
|
+
indexOf29nspdgx2e3ap as indexOf,
|
|
72
|
+
IOException1wyutdmfe71nu as IOException,
|
|
73
|
+
EOFExceptionh831u25jcq9n as EOFException,
|
|
74
|
+
readByteString2hnsbql6t4ads as readByteString,
|
|
75
|
+
readString3v6duspiz33tv as readString,
|
|
76
|
+
readString2nvggcfaijfhd as readString_0,
|
|
77
|
+
readByteArray1fhzfwi2j014k as readByteArray,
|
|
78
|
+
writeString33ca4btrgctw7 as writeString,
|
|
79
|
+
readByteArray1ri21h2rciakw as readByteArray_0,
|
|
80
|
+
} from '@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs';
|
|
81
|
+
import { atomic$ref$130aurmcwdfdf1 as atomic$ref$1 } from './kotlinx-atomicfu.mjs';
|
|
82
|
+
import { decodeToString2ede220pr5xir as decodeToString_0 } from '@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs';
|
|
83
|
+
//region block: imports
|
|
84
|
+
//endregion
|
|
85
|
+
//region block: pre-declaration
|
|
86
|
+
class Companion {
|
|
87
|
+
constructor() {
|
|
88
|
+
Companion_instance_0 = this;
|
|
89
|
+
this.w3w_1 = new Closed(null);
|
|
90
|
+
var tmp = this;
|
|
91
|
+
// Inline function 'kotlin.Companion.success' call
|
|
92
|
+
tmp.x3w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
class Empty {
|
|
96
|
+
toString() {
|
|
97
|
+
return 'Empty';
|
|
98
|
+
}
|
|
99
|
+
hashCode() {
|
|
100
|
+
return -231472095;
|
|
101
|
+
}
|
|
102
|
+
equals(other) {
|
|
103
|
+
if (this === other)
|
|
104
|
+
return true;
|
|
105
|
+
if (!(other instanceof Empty))
|
|
106
|
+
return false;
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
class Closed {
|
|
111
|
+
constructor(cause) {
|
|
112
|
+
this.y3w_1 = cause;
|
|
113
|
+
}
|
|
114
|
+
toString() {
|
|
115
|
+
return 'Closed(cause=' + toString(this.y3w_1) + ')';
|
|
116
|
+
}
|
|
117
|
+
hashCode() {
|
|
118
|
+
return this.y3w_1 == null ? 0 : hashCode(this.y3w_1);
|
|
119
|
+
}
|
|
120
|
+
equals(other) {
|
|
121
|
+
if (this === other)
|
|
122
|
+
return true;
|
|
123
|
+
if (!(other instanceof Closed))
|
|
124
|
+
return false;
|
|
125
|
+
if (!equals(this.y3w_1, other.y3w_1))
|
|
126
|
+
return false;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
class Task {}
|
|
131
|
+
function resume() {
|
|
132
|
+
return this.a3x().uc(Companion_getInstance().x3w_1);
|
|
133
|
+
}
|
|
134
|
+
function resume_0(throwable) {
|
|
135
|
+
var tmp = this.a3x();
|
|
136
|
+
var tmp_0;
|
|
137
|
+
if (throwable == null) {
|
|
138
|
+
tmp_0 = null;
|
|
139
|
+
} else {
|
|
140
|
+
// Inline function 'kotlin.let' call
|
|
141
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
142
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(throwable));
|
|
143
|
+
tmp_0 = new Result(tmp$ret$0);
|
|
144
|
+
}
|
|
145
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
146
|
+
return tmp.uc(tmp1_elvis_lhs == null ? Companion_getInstance().x3w_1 : tmp1_elvis_lhs.os_1);
|
|
147
|
+
}
|
|
148
|
+
class Read {
|
|
149
|
+
constructor(continuation) {
|
|
150
|
+
this.e3x_1 = continuation;
|
|
151
|
+
this.f3x_1 = null;
|
|
152
|
+
if (get_DEVELOPMENT_MODE()) {
|
|
153
|
+
var tmp = this;
|
|
154
|
+
// Inline function 'kotlin.also' call
|
|
155
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.e3x_1), 16));
|
|
156
|
+
stackTraceToString(this_0);
|
|
157
|
+
tmp.f3x_1 = this_0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
a3x() {
|
|
161
|
+
return this.e3x_1;
|
|
162
|
+
}
|
|
163
|
+
z3w() {
|
|
164
|
+
return this.f3x_1;
|
|
165
|
+
}
|
|
166
|
+
b3x() {
|
|
167
|
+
return 'read';
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
class Write {
|
|
171
|
+
constructor(continuation) {
|
|
172
|
+
this.g3x_1 = continuation;
|
|
173
|
+
this.h3x_1 = null;
|
|
174
|
+
if (get_DEVELOPMENT_MODE()) {
|
|
175
|
+
var tmp = this;
|
|
176
|
+
// Inline function 'kotlin.also' call
|
|
177
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.g3x_1), 16));
|
|
178
|
+
stackTraceToString(this_0);
|
|
179
|
+
tmp.h3x_1 = this_0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
a3x() {
|
|
183
|
+
return this.g3x_1;
|
|
184
|
+
}
|
|
185
|
+
z3w() {
|
|
186
|
+
return this.h3x_1;
|
|
187
|
+
}
|
|
188
|
+
b3x() {
|
|
189
|
+
return 'write';
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
class sam$kotlinx_coroutines_DisposableHandle$0 {
|
|
193
|
+
constructor(function_0) {
|
|
194
|
+
this.r3x_1 = function_0;
|
|
195
|
+
}
|
|
196
|
+
d2v() {
|
|
197
|
+
return this.r3x_1();
|
|
198
|
+
}
|
|
199
|
+
b5() {
|
|
200
|
+
return this.r3x_1;
|
|
201
|
+
}
|
|
202
|
+
equals(other) {
|
|
203
|
+
var tmp;
|
|
204
|
+
if (!(other == null) ? isInterface(other, DisposableHandle) : false) {
|
|
205
|
+
var tmp_0;
|
|
206
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
207
|
+
tmp_0 = equals(this.b5(), other.b5());
|
|
208
|
+
} else {
|
|
209
|
+
tmp_0 = false;
|
|
210
|
+
}
|
|
211
|
+
tmp = tmp_0;
|
|
212
|
+
} else {
|
|
213
|
+
tmp = false;
|
|
214
|
+
}
|
|
215
|
+
return tmp;
|
|
216
|
+
}
|
|
217
|
+
hashCode() {
|
|
218
|
+
return hashCode(this.b5());
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
class ByteReadChannel {}
|
|
222
|
+
function awaitContent$default(min, $completion, $super) {
|
|
223
|
+
min = min === VOID ? 1 : min;
|
|
224
|
+
return $super === VOID ? this.n3y(min, $completion) : $super.n3y.call(this, min, $completion);
|
|
225
|
+
}
|
|
226
|
+
class ByteWriteChannel {}
|
|
227
|
+
function get_autoFlush() {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
class ByteChannel {
|
|
231
|
+
constructor(autoFlush) {
|
|
232
|
+
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
233
|
+
this.i3x_1 = autoFlush;
|
|
234
|
+
this.j3x_1 = new Buffer();
|
|
235
|
+
this.k3x_1 = 0;
|
|
236
|
+
this.l3x_1 = new Object();
|
|
237
|
+
this.m3x_1 = atomic$ref$1(Empty_instance);
|
|
238
|
+
this.n3x_1 = new Buffer();
|
|
239
|
+
this.o3x_1 = new Buffer();
|
|
240
|
+
this.p3x_1 = atomic$ref$1(null);
|
|
241
|
+
this.q3x_1 = atomic$ref$1(null);
|
|
242
|
+
}
|
|
243
|
+
s3x() {
|
|
244
|
+
return this.i3x_1;
|
|
245
|
+
}
|
|
246
|
+
t3x() {
|
|
247
|
+
return this.k3x_1 < 1048576;
|
|
248
|
+
}
|
|
249
|
+
u3x() {
|
|
250
|
+
var tmp0_safe_receiver = this.p3x_1.kotlinx$atomicfu$value;
|
|
251
|
+
if (tmp0_safe_receiver == null)
|
|
252
|
+
null;
|
|
253
|
+
else {
|
|
254
|
+
// Inline function 'io.ktor.utils.io.Companion.throwOrNull' call
|
|
255
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
256
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
257
|
+
var tmp;
|
|
258
|
+
if (tmp0_subject == null) {
|
|
259
|
+
tmp = null;
|
|
260
|
+
} else {
|
|
261
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
262
|
+
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).s2y();
|
|
263
|
+
} else {
|
|
264
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
265
|
+
tmp = CancellationException.p(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
266
|
+
} else {
|
|
267
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
268
|
+
tmp = ClosedReadChannelException.z3x(p0);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
var tmp0_safe_receiver_0 = tmp;
|
|
273
|
+
var tmp_0;
|
|
274
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
275
|
+
tmp_0 = null;
|
|
276
|
+
} else {
|
|
277
|
+
// Inline function 'kotlin.let' call
|
|
278
|
+
throw tmp0_safe_receiver_0;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
if (this.n3x_1.n1s()) {
|
|
282
|
+
moveFlushToReadBuffer(this);
|
|
283
|
+
}
|
|
284
|
+
return this.n3x_1;
|
|
285
|
+
}
|
|
286
|
+
a3y() {
|
|
287
|
+
if (this.g3y()) {
|
|
288
|
+
var tmp0_safe_receiver = this.p3x_1.kotlinx$atomicfu$value;
|
|
289
|
+
var tmp;
|
|
290
|
+
if (tmp0_safe_receiver == null) {
|
|
291
|
+
tmp = null;
|
|
292
|
+
} else {
|
|
293
|
+
// Inline function 'io.ktor.utils.io.Companion.throwOrNull' call
|
|
294
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
295
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
296
|
+
var tmp_0;
|
|
297
|
+
if (tmp0_subject == null) {
|
|
298
|
+
tmp_0 = null;
|
|
299
|
+
} else {
|
|
300
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
301
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).s2y();
|
|
302
|
+
} else {
|
|
303
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
304
|
+
tmp_0 = CancellationException.p(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
305
|
+
} else {
|
|
306
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
307
|
+
tmp_0 = ClosedWriteChannelException.f3y(p0);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
var tmp0_safe_receiver_0 = tmp_0;
|
|
312
|
+
var tmp_1;
|
|
313
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
314
|
+
tmp_1 = null;
|
|
315
|
+
} else {
|
|
316
|
+
// Inline function 'kotlin.let' call
|
|
317
|
+
throw tmp0_safe_receiver_0;
|
|
318
|
+
}
|
|
319
|
+
tmp = tmp_1;
|
|
320
|
+
}
|
|
321
|
+
if (tmp == null)
|
|
322
|
+
throw ClosedWriteChannelException.f3y();
|
|
323
|
+
}
|
|
324
|
+
return this.o3x_1;
|
|
325
|
+
}
|
|
326
|
+
h3y() {
|
|
327
|
+
var tmp0_safe_receiver = this.p3x_1.kotlinx$atomicfu$value;
|
|
328
|
+
var tmp;
|
|
329
|
+
if (tmp0_safe_receiver == null) {
|
|
330
|
+
tmp = null;
|
|
331
|
+
} else {
|
|
332
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
333
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
334
|
+
var tmp_0;
|
|
335
|
+
if (tmp0_subject == null) {
|
|
336
|
+
tmp_0 = null;
|
|
337
|
+
} else {
|
|
338
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
339
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).s2y();
|
|
340
|
+
} else {
|
|
341
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
342
|
+
tmp_0 = CancellationException.p(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
343
|
+
} else {
|
|
344
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
345
|
+
tmp_0 = ClosedByteChannelException.l3y(p0);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
tmp = tmp_0;
|
|
350
|
+
}
|
|
351
|
+
return tmp;
|
|
352
|
+
}
|
|
353
|
+
g3y() {
|
|
354
|
+
return !(this.p3x_1.kotlinx$atomicfu$value == null);
|
|
355
|
+
}
|
|
356
|
+
m3y() {
|
|
357
|
+
return !(this.h3y() == null) || (this.g3y() && this.k3x_1 === 0 && this.n3x_1.n1s());
|
|
358
|
+
}
|
|
359
|
+
*n3y(min, $completion) {
|
|
360
|
+
rethrowCloseCauseIfNeeded_0(this);
|
|
361
|
+
if (this.n3x_1.p2() >= fromInt(min))
|
|
362
|
+
return true;
|
|
363
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.sleepWhile' call
|
|
364
|
+
var this_0 = this;
|
|
365
|
+
$l$loop: while (add(numberToLong(this.k3x_1), this.n3x_1.p2()) < fromInt(min) && this.p3x_1.kotlinx$atomicfu$value == null) {
|
|
366
|
+
// Inline function 'kotlinx.coroutines.suspendCancellableCoroutine' call
|
|
367
|
+
// Inline function 'kotlin.js.suspendCoroutineUninterceptedOrReturnJS' call
|
|
368
|
+
(yield () => {
|
|
369
|
+
var uCont = $completion;
|
|
370
|
+
var cancellable = new CancellableContinuationImpl(intercepted(uCont), 1);
|
|
371
|
+
cancellable.k2w();
|
|
372
|
+
var tmp0 = this_0;
|
|
373
|
+
var tmp2 = new Read(cancellable);
|
|
374
|
+
$l$block_0: {
|
|
375
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.trySuspend' call
|
|
376
|
+
var previous = tmp0.m3x_1.kotlinx$atomicfu$value;
|
|
377
|
+
if (!(previous instanceof Closed)) {
|
|
378
|
+
if (!tmp0.m3x_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
379
|
+
tmp2.c3x();
|
|
380
|
+
break $l$block_0;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
if (previous instanceof Read) {
|
|
384
|
+
previous.d3x(ConcurrentIOException.s3y(tmp2.b3x(), previous.z3w()));
|
|
385
|
+
} else {
|
|
386
|
+
if (isInterface(previous, Task)) {
|
|
387
|
+
previous.c3x();
|
|
388
|
+
} else {
|
|
389
|
+
if (previous instanceof Closed) {
|
|
390
|
+
tmp2.d3x(previous.y3w_1);
|
|
391
|
+
break $l$block_0;
|
|
392
|
+
} else {
|
|
393
|
+
if (!equals(previous, Empty_instance)) {
|
|
394
|
+
noWhenBranchMatchedException();
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
if (!(add(numberToLong(this.k3x_1), this.n3x_1.p2()) < fromInt(min) && this.p3x_1.kotlinx$atomicfu$value == null)) {
|
|
400
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
401
|
+
var current = tmp0.m3x_1.kotlinx$atomicfu$value;
|
|
402
|
+
var tmp;
|
|
403
|
+
if (current instanceof Read) {
|
|
404
|
+
tmp = tmp0.m3x_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
405
|
+
} else {
|
|
406
|
+
tmp = false;
|
|
407
|
+
}
|
|
408
|
+
if (tmp) {
|
|
409
|
+
current.c3x();
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return cancellable.t2t();
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
if (this.n3x_1.p2() < 1048576n) {
|
|
417
|
+
moveFlushToReadBuffer(this);
|
|
418
|
+
}
|
|
419
|
+
return this.n3x_1.p2() >= fromInt(min);
|
|
420
|
+
}
|
|
421
|
+
*u3y($completion) {
|
|
422
|
+
rethrowCloseCauseIfNeeded_0(this);
|
|
423
|
+
this.v3y();
|
|
424
|
+
if (this.t3x())
|
|
425
|
+
return Unit_instance;
|
|
426
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.sleepWhile' call
|
|
427
|
+
var this_0 = this;
|
|
428
|
+
$l$loop: while (!this.t3x() && this.p3x_1.kotlinx$atomicfu$value == null) {
|
|
429
|
+
// Inline function 'kotlinx.coroutines.suspendCancellableCoroutine' call
|
|
430
|
+
// Inline function 'kotlin.js.suspendCoroutineUninterceptedOrReturnJS' call
|
|
431
|
+
(yield () => {
|
|
432
|
+
var uCont = $completion;
|
|
433
|
+
var cancellable = new CancellableContinuationImpl(intercepted(uCont), 1);
|
|
434
|
+
cancellable.k2w();
|
|
435
|
+
var tmp0 = this_0;
|
|
436
|
+
var tmp2 = new Write(cancellable);
|
|
437
|
+
$l$block_0: {
|
|
438
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.trySuspend' call
|
|
439
|
+
var previous = tmp0.m3x_1.kotlinx$atomicfu$value;
|
|
440
|
+
if (!(previous instanceof Closed)) {
|
|
441
|
+
if (!tmp0.m3x_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
442
|
+
tmp2.c3x();
|
|
443
|
+
break $l$block_0;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
if (previous instanceof Write) {
|
|
447
|
+
previous.d3x(ConcurrentIOException.s3y(tmp2.b3x(), previous.z3w()));
|
|
448
|
+
} else {
|
|
449
|
+
if (isInterface(previous, Task)) {
|
|
450
|
+
previous.c3x();
|
|
451
|
+
} else {
|
|
452
|
+
if (previous instanceof Closed) {
|
|
453
|
+
tmp2.d3x(previous.y3w_1);
|
|
454
|
+
break $l$block_0;
|
|
455
|
+
} else {
|
|
456
|
+
if (!equals(previous, Empty_instance)) {
|
|
457
|
+
noWhenBranchMatchedException();
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
if (!(!this.t3x() && this.p3x_1.kotlinx$atomicfu$value == null)) {
|
|
463
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
464
|
+
var current = tmp0.m3x_1.kotlinx$atomicfu$value;
|
|
465
|
+
var tmp;
|
|
466
|
+
if (current instanceof Write) {
|
|
467
|
+
tmp = tmp0.m3x_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
468
|
+
} else {
|
|
469
|
+
tmp = false;
|
|
470
|
+
}
|
|
471
|
+
if (tmp) {
|
|
472
|
+
current.c3x();
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
return cancellable.t2t();
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
return Unit_instance;
|
|
480
|
+
}
|
|
481
|
+
v3y() {
|
|
482
|
+
if (this.o3x_1.n1s())
|
|
483
|
+
return Unit_instance;
|
|
484
|
+
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
485
|
+
this.l3x_1;
|
|
486
|
+
var count = convertToInt(this.o3x_1.p2());
|
|
487
|
+
this.j3x_1.i1u(this.o3x_1);
|
|
488
|
+
this.k3x_1 = this.k3x_1 + count | 0;
|
|
489
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
490
|
+
var current = this.m3x_1.kotlinx$atomicfu$value;
|
|
491
|
+
var tmp;
|
|
492
|
+
if (current instanceof Read) {
|
|
493
|
+
tmp = this.m3x_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
494
|
+
} else {
|
|
495
|
+
tmp = false;
|
|
496
|
+
}
|
|
497
|
+
if (tmp) {
|
|
498
|
+
current.c3x();
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
q6() {
|
|
502
|
+
this.v3y();
|
|
503
|
+
if (!this.p3x_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
504
|
+
return Unit_instance;
|
|
505
|
+
closeSlot(this, null);
|
|
506
|
+
}
|
|
507
|
+
*w3y($completion) {
|
|
508
|
+
// Inline function 'kotlin.runCatching' call
|
|
509
|
+
var tmp;
|
|
510
|
+
try {
|
|
511
|
+
yield* this.u3y($completion);
|
|
512
|
+
// Inline function 'kotlin.Companion.success' call
|
|
513
|
+
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
514
|
+
} catch ($p) {
|
|
515
|
+
var tmp_0;
|
|
516
|
+
if ($p instanceof Error) {
|
|
517
|
+
var e = $p;
|
|
518
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
519
|
+
tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
520
|
+
} else {
|
|
521
|
+
throw $p;
|
|
522
|
+
}
|
|
523
|
+
tmp = tmp_0;
|
|
524
|
+
}
|
|
525
|
+
if (!this.p3x_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
526
|
+
return Unit_instance;
|
|
527
|
+
closeSlot(this, null);
|
|
528
|
+
return Unit_instance;
|
|
529
|
+
}
|
|
530
|
+
x3y(cause) {
|
|
531
|
+
if (!(this.p3x_1.kotlinx$atomicfu$value == null))
|
|
532
|
+
return Unit_instance;
|
|
533
|
+
var closedToken = new CloseToken(cause);
|
|
534
|
+
this.p3x_1.atomicfu$compareAndSet(null, closedToken);
|
|
535
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
536
|
+
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
537
|
+
var tmp;
|
|
538
|
+
if (tmp0_subject == null) {
|
|
539
|
+
tmp = null;
|
|
540
|
+
} else {
|
|
541
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
542
|
+
tmp = access$_get_origin__hdh1qz(closedToken).s2y();
|
|
543
|
+
} else {
|
|
544
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
545
|
+
tmp = CancellationException.p(access$_get_origin__hdh1qz(closedToken).message, access$_get_origin__hdh1qz(closedToken));
|
|
546
|
+
} else {
|
|
547
|
+
var p0 = access$_get_origin__hdh1qz(closedToken);
|
|
548
|
+
tmp = ClosedByteChannelException.l3y(p0);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
var wrappedCause = tmp;
|
|
553
|
+
closeSlot(this, wrappedCause);
|
|
554
|
+
}
|
|
555
|
+
y3y(handler) {
|
|
556
|
+
var existingCause = this.p3x_1.kotlinx$atomicfu$value;
|
|
557
|
+
if (!(existingCause == null)) {
|
|
558
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
559
|
+
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
560
|
+
var tmp;
|
|
561
|
+
if (tmp0_subject == null) {
|
|
562
|
+
tmp = null;
|
|
563
|
+
} else {
|
|
564
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
565
|
+
tmp = access$_get_origin__hdh1qz(existingCause).s2y();
|
|
566
|
+
} else {
|
|
567
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
568
|
+
tmp = CancellationException.p(access$_get_origin__hdh1qz(existingCause).message, access$_get_origin__hdh1qz(existingCause));
|
|
569
|
+
} else {
|
|
570
|
+
var p0 = access$_get_origin__hdh1qz(existingCause);
|
|
571
|
+
tmp = ClosedByteChannelException.l3y(p0);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
handler(tmp);
|
|
576
|
+
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
577
|
+
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
578
|
+
}
|
|
579
|
+
if (!this.q3x_1.atomicfu$compareAndSet(null, handler)) {
|
|
580
|
+
// Inline function 'kotlin.error' call
|
|
581
|
+
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
582
|
+
throw IllegalStateException.o(toString_1(message));
|
|
583
|
+
}
|
|
584
|
+
var cause = this.p3x_1.kotlinx$atomicfu$value;
|
|
585
|
+
if (!(cause == null) && this.q3x_1.atomicfu$compareAndSet(handler, null)) {
|
|
586
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
587
|
+
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
588
|
+
var tmp_1;
|
|
589
|
+
if (tmp0_subject_0 == null) {
|
|
590
|
+
tmp_1 = null;
|
|
591
|
+
} else {
|
|
592
|
+
if (isInterface(tmp0_subject_0, CopyableThrowable)) {
|
|
593
|
+
tmp_1 = access$_get_origin__hdh1qz(cause).s2y();
|
|
594
|
+
} else {
|
|
595
|
+
if (tmp0_subject_0 instanceof CancellationException) {
|
|
596
|
+
tmp_1 = CancellationException.p(access$_get_origin__hdh1qz(cause).message, access$_get_origin__hdh1qz(cause));
|
|
597
|
+
} else {
|
|
598
|
+
var p0_0 = access$_get_origin__hdh1qz(cause);
|
|
599
|
+
tmp_1 = ClosedByteChannelException.l3y(p0_0);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
handler(tmp_1);
|
|
604
|
+
var tmp_2 = ByteChannel$invokeOnClose$lambda_0;
|
|
605
|
+
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_2);
|
|
606
|
+
}
|
|
607
|
+
var tmp_3 = ByteChannel$invokeOnClose$lambda_1(this, handler);
|
|
608
|
+
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_3);
|
|
609
|
+
}
|
|
610
|
+
toString() {
|
|
611
|
+
return 'ByteChannel[' + hashCode(this) + ']';
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
class ConcurrentIOException extends IllegalStateException {
|
|
615
|
+
constructor(taskName, cause) {
|
|
616
|
+
return new.target.s3y(taskName, cause);
|
|
617
|
+
}
|
|
618
|
+
static s3y(taskName, cause) {
|
|
619
|
+
cause = cause === VOID ? null : cause;
|
|
620
|
+
var $this = this.q('Concurrent ' + taskName + ' attempts', cause);
|
|
621
|
+
captureStack($this, $this.r3y_1);
|
|
622
|
+
return $this;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
class ByteChannelScanner {
|
|
626
|
+
constructor(channel, matchString, writeChannel, limit) {
|
|
627
|
+
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
628
|
+
this.z3y_1 = channel;
|
|
629
|
+
this.a3z_1 = matchString;
|
|
630
|
+
this.b3z_1 = writeChannel;
|
|
631
|
+
this.c3z_1 = limit;
|
|
632
|
+
// Inline function 'kotlin.require' call
|
|
633
|
+
if (!(this.a3z_1.p2() > 0)) {
|
|
634
|
+
var message = 'Empty match string not permitted for scanning';
|
|
635
|
+
throw IllegalArgumentException.n2(toString_1(message));
|
|
636
|
+
}
|
|
637
|
+
this.d3z_1 = this.z3y_1.u3x();
|
|
638
|
+
this.e3z_1 = buildPartialMatchTable(this);
|
|
639
|
+
this.f3z_1 = new Buffer();
|
|
640
|
+
this.g3z_1 = 0n;
|
|
641
|
+
this.h3z_1 = 0;
|
|
642
|
+
}
|
|
643
|
+
*i3z(ignoreMissing, $completion) {
|
|
644
|
+
this.g3z_1 = 0n;
|
|
645
|
+
while (!this.d3z_1.n1s() || (yield* this.z3y_1.t3y(VOID, $completion))) {
|
|
646
|
+
yield* /*#__NOINLINE__*/advanceToNextPotentialMatch(this, $completion);
|
|
647
|
+
if (yield* /*#__NOINLINE__*/checkFullMatch(this, $completion)) {
|
|
648
|
+
return this.g3z_1;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
if (!ignoreMissing) {
|
|
652
|
+
throw IOException.x1v('Expected "' + toSingleLineString(this, this.a3z_1) + '" but encountered end of input');
|
|
653
|
+
}
|
|
654
|
+
this.g3z_1 = add(this.g3z_1, this.f3z_1.u1t(this.b3z_1.a3y()));
|
|
655
|
+
yield* this.b3z_1.u3y($completion);
|
|
656
|
+
return this.g3z_1;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
class ByteReadChannel$Companion$Empty$1 {
|
|
660
|
+
constructor() {
|
|
661
|
+
this.l3z_1 = null;
|
|
662
|
+
this.m3z_1 = new Buffer();
|
|
663
|
+
}
|
|
664
|
+
h3y() {
|
|
665
|
+
return this.l3z_1;
|
|
666
|
+
}
|
|
667
|
+
m3y() {
|
|
668
|
+
return true;
|
|
669
|
+
}
|
|
670
|
+
u3x() {
|
|
671
|
+
return this.m3z_1;
|
|
672
|
+
}
|
|
673
|
+
*n3y(min, $completion) {
|
|
674
|
+
return false;
|
|
675
|
+
}
|
|
676
|
+
x3y(cause) {
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
class Companion_0 {
|
|
680
|
+
constructor() {
|
|
681
|
+
Companion_instance_1 = this;
|
|
682
|
+
var tmp = this;
|
|
683
|
+
tmp.n3z_1 = new ByteReadChannel$Companion$Empty$1();
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
class WriterJob {
|
|
687
|
+
constructor(channel, job) {
|
|
688
|
+
this.j3z_1 = channel;
|
|
689
|
+
this.k3z_1 = job;
|
|
690
|
+
}
|
|
691
|
+
s2x() {
|
|
692
|
+
return this.k3z_1;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
class WriterScope {
|
|
696
|
+
constructor(channel, coroutineContext) {
|
|
697
|
+
this.t3z_1 = channel;
|
|
698
|
+
this.u3z_1 = coroutineContext;
|
|
699
|
+
}
|
|
700
|
+
o2r() {
|
|
701
|
+
return this.u3z_1;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
class NO_CALLBACK$1 {
|
|
705
|
+
constructor() {
|
|
706
|
+
this.v3z_1 = EmptyCoroutineContext_instance;
|
|
707
|
+
}
|
|
708
|
+
sc() {
|
|
709
|
+
return this.v3z_1;
|
|
710
|
+
}
|
|
711
|
+
tc(result) {
|
|
712
|
+
return Unit_instance;
|
|
713
|
+
}
|
|
714
|
+
uc(result) {
|
|
715
|
+
return this.tc(result);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
class Companion_1 {}
|
|
719
|
+
class CloseToken {
|
|
720
|
+
constructor(origin) {
|
|
721
|
+
this.w3z_1 = origin;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
class CountedByteReadChannel {
|
|
725
|
+
constructor(delegate) {
|
|
726
|
+
this.x3z_1 = delegate;
|
|
727
|
+
this.y3z_1 = new Buffer();
|
|
728
|
+
this.z3z_1 = 0n;
|
|
729
|
+
this.a40_1 = 0n;
|
|
730
|
+
}
|
|
731
|
+
b40() {
|
|
732
|
+
updateConsumed(this);
|
|
733
|
+
return this.a40_1;
|
|
734
|
+
}
|
|
735
|
+
h3y() {
|
|
736
|
+
return this.x3z_1.h3y();
|
|
737
|
+
}
|
|
738
|
+
m3y() {
|
|
739
|
+
return this.y3z_1.n1s() && this.x3z_1.m3y();
|
|
740
|
+
}
|
|
741
|
+
u3x() {
|
|
742
|
+
transferFromDelegate(this);
|
|
743
|
+
return this.y3z_1;
|
|
744
|
+
}
|
|
745
|
+
*n3y(min, $completion) {
|
|
746
|
+
if (this.u3x().p2() >= fromInt(min)) {
|
|
747
|
+
return true;
|
|
748
|
+
}
|
|
749
|
+
if (yield* this.x3z_1.n3y(min, $completion)) {
|
|
750
|
+
transferFromDelegate(this);
|
|
751
|
+
return true;
|
|
752
|
+
}
|
|
753
|
+
return false;
|
|
754
|
+
}
|
|
755
|
+
x3y(cause) {
|
|
756
|
+
this.x3z_1.x3y(cause);
|
|
757
|
+
this.y3z_1.q6();
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
class ClosedByteChannelException extends IOException {
|
|
761
|
+
constructor(cause) {
|
|
762
|
+
return new.target.l3y(cause);
|
|
763
|
+
}
|
|
764
|
+
static l3y(cause) {
|
|
765
|
+
cause = cause === VOID ? null : cause;
|
|
766
|
+
var $this = this.y1v(cause == null ? null : cause.message, cause);
|
|
767
|
+
captureStack($this, $this.k3y_1);
|
|
768
|
+
return $this;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
class ClosedReadChannelException extends ClosedByteChannelException {
|
|
772
|
+
constructor(cause) {
|
|
773
|
+
return new.target.z3x(cause);
|
|
774
|
+
}
|
|
775
|
+
static z3x(cause) {
|
|
776
|
+
cause = cause === VOID ? null : cause;
|
|
777
|
+
var $this = this.l3y(cause);
|
|
778
|
+
captureStack($this, $this.y3x_1);
|
|
779
|
+
return $this;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
class ClosedWriteChannelException extends ClosedByteChannelException {
|
|
783
|
+
constructor(cause) {
|
|
784
|
+
return new.target.f3y(cause);
|
|
785
|
+
}
|
|
786
|
+
static f3y(cause) {
|
|
787
|
+
cause = cause === VOID ? null : cause;
|
|
788
|
+
var $this = this.l3y(cause);
|
|
789
|
+
captureStack($this, $this.e3y_1);
|
|
790
|
+
return $this;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
class LineEnding extends Enum {}
|
|
794
|
+
class Companion_2 {
|
|
795
|
+
constructor() {
|
|
796
|
+
Companion_instance_3 = this;
|
|
797
|
+
this.c40_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
798
|
+
this.d40_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
799
|
+
this.e40_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
800
|
+
this.f40_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
801
|
+
this.g40_1 = listOf([new LineEndingMode(this.c40_1), new LineEndingMode(this.d40_1), new LineEndingMode(this.e40_1)]);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
class LineEndingMode {
|
|
805
|
+
constructor(mode) {
|
|
806
|
+
Companion_getInstance_2();
|
|
807
|
+
this.h40_1 = mode;
|
|
808
|
+
}
|
|
809
|
+
toString() {
|
|
810
|
+
return LineEndingMode__toString_impl_j4h76r(this.h40_1);
|
|
811
|
+
}
|
|
812
|
+
hashCode() {
|
|
813
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.h40_1);
|
|
814
|
+
}
|
|
815
|
+
equals(other) {
|
|
816
|
+
return LineEndingMode__equals_impl_qyr4nk(this.h40_1, other);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
class SourceByteReadChannel {
|
|
820
|
+
constructor(source) {
|
|
821
|
+
this.i40_1 = source;
|
|
822
|
+
this.j40_1 = null;
|
|
823
|
+
}
|
|
824
|
+
h3y() {
|
|
825
|
+
var tmp0_safe_receiver = this.j40_1;
|
|
826
|
+
var tmp;
|
|
827
|
+
if (tmp0_safe_receiver == null) {
|
|
828
|
+
tmp = null;
|
|
829
|
+
} else {
|
|
830
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
831
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
832
|
+
var tmp_0;
|
|
833
|
+
if (tmp0_subject == null) {
|
|
834
|
+
tmp_0 = null;
|
|
835
|
+
} else {
|
|
836
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
837
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).s2y();
|
|
838
|
+
} else {
|
|
839
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
840
|
+
tmp_0 = CancellationException.p(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
841
|
+
} else {
|
|
842
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
843
|
+
tmp_0 = ClosedByteChannelException.l3y(p0);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
tmp = tmp_0;
|
|
848
|
+
}
|
|
849
|
+
return tmp;
|
|
850
|
+
}
|
|
851
|
+
m3y() {
|
|
852
|
+
return this.i40_1.n1s();
|
|
853
|
+
}
|
|
854
|
+
u3x() {
|
|
855
|
+
var tmp0_safe_receiver = this.h3y();
|
|
856
|
+
if (tmp0_safe_receiver == null)
|
|
857
|
+
null;
|
|
858
|
+
else {
|
|
859
|
+
// Inline function 'kotlin.let' call
|
|
860
|
+
throw tmp0_safe_receiver;
|
|
861
|
+
}
|
|
862
|
+
return this.i40_1.m1s();
|
|
863
|
+
}
|
|
864
|
+
*n3y(min, $completion) {
|
|
865
|
+
var tmp0_safe_receiver = this.h3y();
|
|
866
|
+
if (tmp0_safe_receiver == null)
|
|
867
|
+
null;
|
|
868
|
+
else {
|
|
869
|
+
// Inline function 'kotlin.let' call
|
|
870
|
+
throw tmp0_safe_receiver;
|
|
871
|
+
}
|
|
872
|
+
return this.i40_1.p1s(fromInt(min));
|
|
873
|
+
}
|
|
874
|
+
x3y(cause) {
|
|
875
|
+
if (!(this.j40_1 == null))
|
|
876
|
+
return Unit_instance;
|
|
877
|
+
this.i40_1.q6();
|
|
878
|
+
var tmp = this;
|
|
879
|
+
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
880
|
+
tmp.j40_1 = new CloseToken(IOException.y1v(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
class MalformedInputException extends IOException {
|
|
884
|
+
constructor(message) {
|
|
885
|
+
return new.target.n40(message);
|
|
886
|
+
}
|
|
887
|
+
static n40(message) {
|
|
888
|
+
var $this = this.x1v(message);
|
|
889
|
+
captureStack($this, $this.m40_1);
|
|
890
|
+
return $this;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
class TooLongLineException extends MalformedInputException {
|
|
894
|
+
constructor(message) {
|
|
895
|
+
return new.target.s3z(message);
|
|
896
|
+
}
|
|
897
|
+
static s3z(message) {
|
|
898
|
+
var $this = this.n40(message);
|
|
899
|
+
captureStack($this, $this.r3z_1);
|
|
900
|
+
return $this;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
class ObjectPool {}
|
|
904
|
+
function close() {
|
|
905
|
+
this.d2v();
|
|
906
|
+
}
|
|
907
|
+
class DefaultPool {
|
|
908
|
+
constructor(capacity) {
|
|
909
|
+
this.x40_1 = capacity;
|
|
910
|
+
var tmp = this;
|
|
911
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
912
|
+
var size = this.x40_1;
|
|
913
|
+
tmp.y40_1 = Array(size);
|
|
914
|
+
this.z40_1 = 0;
|
|
915
|
+
}
|
|
916
|
+
a41(instance) {
|
|
917
|
+
}
|
|
918
|
+
b41(instance) {
|
|
919
|
+
return instance;
|
|
920
|
+
}
|
|
921
|
+
c41(instance) {
|
|
922
|
+
}
|
|
923
|
+
d41() {
|
|
924
|
+
if (this.z40_1 === 0)
|
|
925
|
+
return this.w40();
|
|
926
|
+
this.z40_1 = this.z40_1 - 1 | 0;
|
|
927
|
+
var idx = this.z40_1;
|
|
928
|
+
var tmp = this.y40_1[idx];
|
|
929
|
+
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
930
|
+
this.y40_1[idx] = null;
|
|
931
|
+
return this.b41(instance);
|
|
932
|
+
}
|
|
933
|
+
e41(instance) {
|
|
934
|
+
this.c41(instance);
|
|
935
|
+
if (this.z40_1 === this.x40_1) {
|
|
936
|
+
this.a41(instance);
|
|
937
|
+
} else {
|
|
938
|
+
var _unary__edvuaz = this.z40_1;
|
|
939
|
+
this.z40_1 = _unary__edvuaz + 1 | 0;
|
|
940
|
+
this.y40_1[_unary__edvuaz] = instance;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
d2v() {
|
|
944
|
+
var inductionVariable = 0;
|
|
945
|
+
var last = this.z40_1;
|
|
946
|
+
if (inductionVariable < last)
|
|
947
|
+
do {
|
|
948
|
+
var i = inductionVariable;
|
|
949
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
950
|
+
var tmp = this.y40_1[i];
|
|
951
|
+
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
952
|
+
this.y40_1[i] = null;
|
|
953
|
+
this.a41(instance);
|
|
954
|
+
}
|
|
955
|
+
while (inductionVariable < last);
|
|
956
|
+
this.z40_1 = 0;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
class ByteArrayPool$1 extends DefaultPool {
|
|
960
|
+
constructor() {
|
|
961
|
+
super(128);
|
|
962
|
+
}
|
|
963
|
+
w40() {
|
|
964
|
+
return new Int8Array(4096);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
class NoPoolImpl {
|
|
968
|
+
e41(instance) {
|
|
969
|
+
return Unit_instance;
|
|
970
|
+
}
|
|
971
|
+
d2v() {
|
|
972
|
+
return Unit_instance;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
class Companion_3 {
|
|
976
|
+
f41(name) {
|
|
977
|
+
switch (name) {
|
|
978
|
+
case 'UTF-8':
|
|
979
|
+
case 'utf-8':
|
|
980
|
+
case 'UTF8':
|
|
981
|
+
case 'utf8':
|
|
982
|
+
return Charsets_getInstance().o40_1;
|
|
983
|
+
}
|
|
984
|
+
var tmp;
|
|
985
|
+
var tmp_0;
|
|
986
|
+
switch (name) {
|
|
987
|
+
case 'ISO-8859-1':
|
|
988
|
+
case 'iso-8859-1':
|
|
989
|
+
tmp_0 = true;
|
|
990
|
+
break;
|
|
991
|
+
default:
|
|
992
|
+
// Inline function 'kotlin.let' call
|
|
993
|
+
|
|
994
|
+
var it = replace_0(name, _Char___init__impl__6a9atx(95), _Char___init__impl__6a9atx(45));
|
|
995
|
+
var tmp_1;
|
|
996
|
+
if (it === 'iso-8859-1') {
|
|
997
|
+
tmp_1 = true;
|
|
998
|
+
} else {
|
|
999
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1000
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1001
|
+
tmp_1 = it.toLowerCase() === 'iso-8859-1';
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
tmp_0 = tmp_1;
|
|
1005
|
+
break;
|
|
1006
|
+
}
|
|
1007
|
+
if (tmp_0) {
|
|
1008
|
+
tmp = true;
|
|
1009
|
+
} else {
|
|
1010
|
+
tmp = name === 'latin1' || name === 'Latin1';
|
|
1011
|
+
}
|
|
1012
|
+
if (tmp) {
|
|
1013
|
+
return Charsets_getInstance().p40_1;
|
|
1014
|
+
}
|
|
1015
|
+
throw IllegalArgumentException.n2('Charset ' + name + ' is not supported');
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
class Charset {
|
|
1019
|
+
constructor(_name) {
|
|
1020
|
+
this.q40_1 = _name;
|
|
1021
|
+
}
|
|
1022
|
+
equals(other) {
|
|
1023
|
+
if (this === other)
|
|
1024
|
+
return true;
|
|
1025
|
+
if (other == null || !(this.constructor == other.constructor))
|
|
1026
|
+
return false;
|
|
1027
|
+
if (!(other instanceof Charset))
|
|
1028
|
+
THROW_CCE();
|
|
1029
|
+
return this.q40_1 === other.q40_1;
|
|
1030
|
+
}
|
|
1031
|
+
hashCode() {
|
|
1032
|
+
return getStringHashCode(this.q40_1);
|
|
1033
|
+
}
|
|
1034
|
+
toString() {
|
|
1035
|
+
return this.q40_1;
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
class Charsets {
|
|
1039
|
+
constructor() {
|
|
1040
|
+
Charsets_instance = this;
|
|
1041
|
+
this.o40_1 = new CharsetImpl('UTF-8');
|
|
1042
|
+
this.p40_1 = new CharsetImpl('ISO-8859-1');
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
class CharsetDecoder {
|
|
1046
|
+
constructor(_charset) {
|
|
1047
|
+
this.g41_1 = _charset;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
class CharsetEncoder {
|
|
1051
|
+
constructor(_charset) {
|
|
1052
|
+
this.h41_1 = _charset;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
class CharsetImpl extends Charset {
|
|
1056
|
+
s40() {
|
|
1057
|
+
return new CharsetEncoderImpl(this);
|
|
1058
|
+
}
|
|
1059
|
+
r40() {
|
|
1060
|
+
return new CharsetDecoderImpl(this);
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
class CharsetEncoderImpl extends CharsetEncoder {
|
|
1064
|
+
constructor(charset) {
|
|
1065
|
+
super(charset);
|
|
1066
|
+
this.l41_1 = charset;
|
|
1067
|
+
}
|
|
1068
|
+
toString() {
|
|
1069
|
+
return 'CharsetEncoderImpl(charset=' + this.l41_1.toString() + ')';
|
|
1070
|
+
}
|
|
1071
|
+
hashCode() {
|
|
1072
|
+
return this.l41_1.hashCode();
|
|
1073
|
+
}
|
|
1074
|
+
equals(other) {
|
|
1075
|
+
if (this === other)
|
|
1076
|
+
return true;
|
|
1077
|
+
if (!(other instanceof CharsetEncoderImpl))
|
|
1078
|
+
return false;
|
|
1079
|
+
if (!this.l41_1.equals(other.l41_1))
|
|
1080
|
+
return false;
|
|
1081
|
+
return true;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
class CharsetDecoderImpl extends CharsetDecoder {
|
|
1085
|
+
constructor(charset) {
|
|
1086
|
+
super(charset);
|
|
1087
|
+
this.n41_1 = charset;
|
|
1088
|
+
}
|
|
1089
|
+
toString() {
|
|
1090
|
+
return 'CharsetDecoderImpl(charset=' + this.n41_1.toString() + ')';
|
|
1091
|
+
}
|
|
1092
|
+
hashCode() {
|
|
1093
|
+
return this.n41_1.hashCode();
|
|
1094
|
+
}
|
|
1095
|
+
equals(other) {
|
|
1096
|
+
if (this === other)
|
|
1097
|
+
return true;
|
|
1098
|
+
if (!(other instanceof CharsetDecoderImpl))
|
|
1099
|
+
return false;
|
|
1100
|
+
if (!this.n41_1.equals(other.n41_1))
|
|
1101
|
+
return false;
|
|
1102
|
+
return true;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
class toKtor$1 {
|
|
1106
|
+
constructor($this_toKtor) {
|
|
1107
|
+
this.o41_1 = $this_toKtor;
|
|
1108
|
+
}
|
|
1109
|
+
i41(buffer) {
|
|
1110
|
+
return this.o41_1.decode(buffer);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
class TextDecoderFallback {
|
|
1114
|
+
constructor(encoding, fatal) {
|
|
1115
|
+
this.p41_1 = fatal;
|
|
1116
|
+
// Inline function 'kotlin.text.trim' call
|
|
1117
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1118
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1119
|
+
var requestedEncoding = toString_1(trim(isCharSequence(encoding) ? encoding : THROW_CCE())).toLowerCase();
|
|
1120
|
+
// Inline function 'kotlin.check' call
|
|
1121
|
+
if (!get_ENCODING_ALIASES().j3(requestedEncoding)) {
|
|
1122
|
+
var message = encoding + ' is not supported.';
|
|
1123
|
+
throw IllegalStateException.o(toString_1(message));
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
i41(buffer) {
|
|
1127
|
+
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1128
|
+
var builder = new Buffer();
|
|
1129
|
+
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
1130
|
+
var inductionVariable = 0;
|
|
1131
|
+
var last = bytes.length;
|
|
1132
|
+
if (inductionVariable < last)
|
|
1133
|
+
$l$loop: do {
|
|
1134
|
+
var index = inductionVariable;
|
|
1135
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1136
|
+
// Inline function 'org.khronos.webgl.get' call
|
|
1137
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1138
|
+
var byte = bytes[index];
|
|
1139
|
+
var point = toCodePoint(byte);
|
|
1140
|
+
if (point < 0) {
|
|
1141
|
+
// Inline function 'kotlin.check' call
|
|
1142
|
+
if (!!this.p41_1) {
|
|
1143
|
+
var message = 'Invalid character: ' + point;
|
|
1144
|
+
throw IllegalStateException.o(toString_1(message));
|
|
1145
|
+
}
|
|
1146
|
+
writeFully_0(builder, get_REPLACEMENT());
|
|
1147
|
+
continue $l$loop;
|
|
1148
|
+
}
|
|
1149
|
+
if (point > 255) {
|
|
1150
|
+
builder.j1u(toByte(point >> 8));
|
|
1151
|
+
}
|
|
1152
|
+
builder.j1u(toByte(point & 255));
|
|
1153
|
+
}
|
|
1154
|
+
while (inductionVariable < last);
|
|
1155
|
+
return decodeToString(readByteArray_0(builder));
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
//endregion
|
|
1159
|
+
var Companion_instance_0;
|
|
1160
|
+
function Companion_getInstance() {
|
|
1161
|
+
if (Companion_instance_0 === VOID)
|
|
1162
|
+
new Companion();
|
|
1163
|
+
return Companion_instance_0;
|
|
1164
|
+
}
|
|
1165
|
+
var Empty_instance;
|
|
1166
|
+
function Empty_getInstance() {
|
|
1167
|
+
return Empty_instance;
|
|
1168
|
+
}
|
|
1169
|
+
function moveFlushToReadBuffer($this) {
|
|
1170
|
+
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
1171
|
+
$this.l3x_1;
|
|
1172
|
+
$this.j3x_1.u1t($this.n3x_1);
|
|
1173
|
+
$this.k3x_1 = 0;
|
|
1174
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
1175
|
+
var current = $this.m3x_1.kotlinx$atomicfu$value;
|
|
1176
|
+
var tmp;
|
|
1177
|
+
if (current instanceof Write) {
|
|
1178
|
+
tmp = $this.m3x_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
1179
|
+
} else {
|
|
1180
|
+
tmp = false;
|
|
1181
|
+
}
|
|
1182
|
+
if (tmp) {
|
|
1183
|
+
current.c3x();
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
function closeSlot($this, cause) {
|
|
1187
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().w3w_1;
|
|
1188
|
+
var continuation = $this.m3x_1.atomicfu$getAndSet(closeContinuation);
|
|
1189
|
+
if (isInterface(continuation, Task)) {
|
|
1190
|
+
continuation.d3x(cause);
|
|
1191
|
+
}
|
|
1192
|
+
var tmp0_safe_receiver = $this.q3x_1.atomicfu$getAndSet(null);
|
|
1193
|
+
if (tmp0_safe_receiver == null)
|
|
1194
|
+
null;
|
|
1195
|
+
else
|
|
1196
|
+
tmp0_safe_receiver(cause);
|
|
1197
|
+
}
|
|
1198
|
+
function ByteChannel$invokeOnClose$lambda() {
|
|
1199
|
+
return Unit_instance;
|
|
1200
|
+
}
|
|
1201
|
+
function ByteChannel$invokeOnClose$lambda_0() {
|
|
1202
|
+
return Unit_instance;
|
|
1203
|
+
}
|
|
1204
|
+
function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
|
|
1205
|
+
return () => {
|
|
1206
|
+
this$0.q3x_1.atomicfu$compareAndSet($handler, null);
|
|
1207
|
+
return Unit_instance;
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
function ByteReadChannel_0(content, offset, length) {
|
|
1211
|
+
offset = offset === VOID ? 0 : offset;
|
|
1212
|
+
length = length === VOID ? content.length : length;
|
|
1213
|
+
// Inline function 'kotlin.also' call
|
|
1214
|
+
var this_0 = new Buffer();
|
|
1215
|
+
this_0.a1u(content, offset, offset + length | 0);
|
|
1216
|
+
var source = this_0;
|
|
1217
|
+
return ByteReadChannel_1(source);
|
|
1218
|
+
}
|
|
1219
|
+
function ByteReadChannel_1(source) {
|
|
1220
|
+
return new SourceByteReadChannel(source);
|
|
1221
|
+
}
|
|
1222
|
+
function buildPartialMatchTable($this) {
|
|
1223
|
+
var table = new Int32Array($this.a3z_1.p2());
|
|
1224
|
+
var j = 0;
|
|
1225
|
+
var inductionVariable = 1;
|
|
1226
|
+
var last = $this.a3z_1.p2();
|
|
1227
|
+
if (inductionVariable < last)
|
|
1228
|
+
do {
|
|
1229
|
+
var i = inductionVariable;
|
|
1230
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1231
|
+
while (j > 0 && !($this.a3z_1.q2(i) === $this.a3z_1.q2(j))) {
|
|
1232
|
+
j = table[j - 1 | 0];
|
|
1233
|
+
}
|
|
1234
|
+
if ($this.a3z_1.q2(i) === $this.a3z_1.q2(j)) {
|
|
1235
|
+
j = j + 1 | 0;
|
|
1236
|
+
}
|
|
1237
|
+
table[i] = j;
|
|
1238
|
+
}
|
|
1239
|
+
while (inductionVariable < last);
|
|
1240
|
+
return table;
|
|
1241
|
+
}
|
|
1242
|
+
function *advanceToNextPotentialMatch($this, $completion) {
|
|
1243
|
+
while (!$this.d3z_1.n1s() || (yield* $this.z3y_1.t3y(VOID, $completion))) {
|
|
1244
|
+
var nextMatch = indexOf($this.d3z_1, $this.a3z_1.q2(0));
|
|
1245
|
+
if (nextMatch === -1n) {
|
|
1246
|
+
var tmp = $this.d3z_1;
|
|
1247
|
+
checkBounds($this, (tmp instanceof Buffer ? tmp : THROW_CCE()).p2());
|
|
1248
|
+
$this.g3z_1 = add($this.g3z_1, $this.d3z_1.u1t($this.b3z_1.a3y()));
|
|
1249
|
+
yield* flushIfNeeded($this.b3z_1, $completion);
|
|
1250
|
+
} else {
|
|
1251
|
+
checkBounds($this, nextMatch);
|
|
1252
|
+
var tmp_0 = $this;
|
|
1253
|
+
var tmp_1 = $this.g3z_1;
|
|
1254
|
+
var tmp_2 = $this.b3z_1.a3y();
|
|
1255
|
+
tmp_0.g3z_1 = add(tmp_1, $this.d3z_1.r1t(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), nextMatch));
|
|
1256
|
+
yield* flushIfNeeded($this.b3z_1, $completion);
|
|
1257
|
+
return Unit_instance;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
return Unit_instance;
|
|
1261
|
+
}
|
|
1262
|
+
function *checkFullMatch($this, $completion) {
|
|
1263
|
+
while (!$this.d3z_1.n1s() || (yield* $this.z3y_1.t3y(VOID, $completion))) {
|
|
1264
|
+
var byte = $this.d3z_1.q1s();
|
|
1265
|
+
if ($this.h3z_1 > 0 && !(byte === $this.a3z_1.q2($this.h3z_1))) {
|
|
1266
|
+
var oldMatchIndex = $this.h3z_1;
|
|
1267
|
+
while ($this.h3z_1 > 0 && !(byte === $this.a3z_1.q2($this.h3z_1))) {
|
|
1268
|
+
$this.h3z_1 = $this.e3z_1[$this.h3z_1 - 1 | 0];
|
|
1269
|
+
}
|
|
1270
|
+
var retained = fromInt(oldMatchIndex - $this.h3z_1 | 0);
|
|
1271
|
+
checkBounds($this, retained);
|
|
1272
|
+
var tmp = $this;
|
|
1273
|
+
var tmp_0 = $this.g3z_1;
|
|
1274
|
+
var tmp_1 = $this.b3z_1.a3y();
|
|
1275
|
+
tmp.g3z_1 = add(tmp_0, $this.f3z_1.r1t(tmp_1 instanceof Buffer ? tmp_1 : THROW_CCE(), retained));
|
|
1276
|
+
if ($this.h3z_1 === 0 && !(byte === $this.a3z_1.q2($this.h3z_1))) {
|
|
1277
|
+
yield* writeByte($this.b3z_1, byte, $completion);
|
|
1278
|
+
var _unary__edvuaz = $this.g3z_1;
|
|
1279
|
+
$this.g3z_1 = add(_unary__edvuaz, get_ONE());
|
|
1280
|
+
return false;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
$this.h3z_1 = $this.h3z_1 + 1 | 0;
|
|
1284
|
+
if ($this.h3z_1 === $this.a3z_1.p2()) {
|
|
1285
|
+
return true;
|
|
1286
|
+
}
|
|
1287
|
+
$this.f3z_1.j1u(byte);
|
|
1288
|
+
}
|
|
1289
|
+
return false;
|
|
1290
|
+
}
|
|
1291
|
+
function checkBounds($this, extra) {
|
|
1292
|
+
if (add($this.g3z_1, extra) > $this.c3z_1) {
|
|
1293
|
+
throw IOException.x1v('Limit of ' + $this.c3z_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.a3z_1) + '"'));
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
function toSingleLineString($this, $receiver) {
|
|
1297
|
+
return replace(decodeToString_0($receiver), '\n', '\\n');
|
|
1298
|
+
}
|
|
1299
|
+
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1300
|
+
var tmp = writerJob.j3z_1;
|
|
1301
|
+
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1302
|
+
if (tmp0_safe_receiver == null)
|
|
1303
|
+
null;
|
|
1304
|
+
else {
|
|
1305
|
+
tmp0_safe_receiver.y3y(attachWriterJob$lambda(_this__u8e3s4));
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1309
|
+
return (cause) => {
|
|
1310
|
+
var tmp;
|
|
1311
|
+
if (!(cause == null)) {
|
|
1312
|
+
$this_attachWriterJob.x3y(cause);
|
|
1313
|
+
tmp = Unit_instance;
|
|
1314
|
+
}
|
|
1315
|
+
return Unit_instance;
|
|
1316
|
+
};
|
|
1317
|
+
}
|
|
1318
|
+
var Companion_instance_1;
|
|
1319
|
+
function Companion_getInstance_0() {
|
|
1320
|
+
if (Companion_instance_1 === VOID)
|
|
1321
|
+
new Companion_0();
|
|
1322
|
+
return Companion_instance_1;
|
|
1323
|
+
}
|
|
1324
|
+
function cancel_0(_this__u8e3s4) {
|
|
1325
|
+
_this__u8e3s4.x3y(IOException.x1v('Channel was cancelled'));
|
|
1326
|
+
}
|
|
1327
|
+
function *readLineStrict(_this__u8e3s4, limit, lineEnding, $completion) {
|
|
1328
|
+
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1329
|
+
lineEnding = lineEnding === VOID ? LineEnding_Default_getInstance() : lineEnding;
|
|
1330
|
+
var result = StringBuilder.h1();
|
|
1331
|
+
return (yield* readLineStrictTo(_this__u8e3s4, result, limit, lineEnding, $completion)) >= 0n ? result.toString() : null;
|
|
1332
|
+
}
|
|
1333
|
+
function *readRemaining(_this__u8e3s4, $completion) {
|
|
1334
|
+
var result = BytePacketBuilder();
|
|
1335
|
+
while (!_this__u8e3s4.m3y()) {
|
|
1336
|
+
result.i1u(_this__u8e3s4.u3x());
|
|
1337
|
+
yield* _this__u8e3s4.t3y(VOID, $completion);
|
|
1338
|
+
}
|
|
1339
|
+
rethrowCloseCauseIfNeeded(_this__u8e3s4);
|
|
1340
|
+
return result.m1s();
|
|
1341
|
+
}
|
|
1342
|
+
function *toByteArray(_this__u8e3s4, $completion) {
|
|
1343
|
+
return readBytes(yield* readBuffer(_this__u8e3s4, $completion));
|
|
1344
|
+
}
|
|
1345
|
+
function *copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
1346
|
+
var remaining = limit;
|
|
1347
|
+
try {
|
|
1348
|
+
while (!_this__u8e3s4.m3y() && remaining > 0n) {
|
|
1349
|
+
if (_this__u8e3s4.u3x().n1s()) {
|
|
1350
|
+
yield* _this__u8e3s4.t3y(VOID, $completion);
|
|
1351
|
+
}
|
|
1352
|
+
var tmp0 = remaining;
|
|
1353
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
1354
|
+
var b = get_remaining(_this__u8e3s4.u3x());
|
|
1355
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
1356
|
+
_this__u8e3s4.u3x().t1t(channel.a3y(), count);
|
|
1357
|
+
remaining = subtract(remaining, count);
|
|
1358
|
+
yield* channel.u3y($completion);
|
|
1359
|
+
}
|
|
1360
|
+
} catch ($p) {
|
|
1361
|
+
if ($p instanceof Error) {
|
|
1362
|
+
var cause = $p;
|
|
1363
|
+
_this__u8e3s4.x3y(cause);
|
|
1364
|
+
close_0(channel, cause);
|
|
1365
|
+
throw cause;
|
|
1366
|
+
} else {
|
|
1367
|
+
throw $p;
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
finally {
|
|
1371
|
+
yield* channel.u3y($completion);
|
|
1372
|
+
}
|
|
1373
|
+
return subtract(limit, remaining);
|
|
1374
|
+
}
|
|
1375
|
+
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1376
|
+
var tmp0_safe_receiver = _this__u8e3s4.h3y();
|
|
1377
|
+
if (tmp0_safe_receiver == null)
|
|
1378
|
+
null;
|
|
1379
|
+
else {
|
|
1380
|
+
// Inline function 'kotlin.let' call
|
|
1381
|
+
throw tmp0_safe_receiver;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
function *discard(_this__u8e3s4, max, $completion) {
|
|
1385
|
+
max = max === VOID ? 9223372036854775807n : max;
|
|
1386
|
+
var remaining = max;
|
|
1387
|
+
while (remaining > 0n && !_this__u8e3s4.m3y()) {
|
|
1388
|
+
if (get_availableForRead(_this__u8e3s4) === 0) {
|
|
1389
|
+
yield* _this__u8e3s4.t3y(VOID, $completion);
|
|
1390
|
+
}
|
|
1391
|
+
var tmp0 = remaining;
|
|
1392
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
1393
|
+
var b = get_remaining(_this__u8e3s4.u3x());
|
|
1394
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
1395
|
+
discard_0(_this__u8e3s4.u3x(), count);
|
|
1396
|
+
remaining = subtract(remaining, count);
|
|
1397
|
+
}
|
|
1398
|
+
return subtract(max, remaining);
|
|
1399
|
+
}
|
|
1400
|
+
function *readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1401
|
+
offset = offset === VOID ? 0 : offset;
|
|
1402
|
+
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1403
|
+
if (_this__u8e3s4.m3y())
|
|
1404
|
+
return -1;
|
|
1405
|
+
if (_this__u8e3s4.u3x().n1s()) {
|
|
1406
|
+
yield* _this__u8e3s4.t3y(VOID, $completion);
|
|
1407
|
+
}
|
|
1408
|
+
if (_this__u8e3s4.m3y())
|
|
1409
|
+
return -1;
|
|
1410
|
+
return readAvailable_0(_this__u8e3s4.u3x(), buffer, offset, length);
|
|
1411
|
+
}
|
|
1412
|
+
function *skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1413
|
+
if (equals(yield* peek(_this__u8e3s4, byteString.p2(), $completion), byteString)) {
|
|
1414
|
+
yield* /*#__NOINLINE__*/discard(_this__u8e3s4, fromInt(byteString.p2()), $completion);
|
|
1415
|
+
return true;
|
|
1416
|
+
}
|
|
1417
|
+
return false;
|
|
1418
|
+
}
|
|
1419
|
+
function *readPacket(_this__u8e3s4, packet, $completion) {
|
|
1420
|
+
var result = new Buffer();
|
|
1421
|
+
$l$loop: while (result.p2() < fromInt(packet)) {
|
|
1422
|
+
if (_this__u8e3s4.u3x().n1s()) {
|
|
1423
|
+
yield* _this__u8e3s4.t3y(VOID, $completion);
|
|
1424
|
+
}
|
|
1425
|
+
if (_this__u8e3s4.m3y())
|
|
1426
|
+
break $l$loop;
|
|
1427
|
+
if (get_remaining(_this__u8e3s4.u3x()) > subtract(numberToLong(packet), result.p2())) {
|
|
1428
|
+
_this__u8e3s4.u3x().t1t(result, subtract(numberToLong(packet), result.p2()));
|
|
1429
|
+
} else {
|
|
1430
|
+
_this__u8e3s4.u3x().u1t(result);
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
if (result.p2() < fromInt(packet)) {
|
|
1434
|
+
throw EOFException.l1s('Not enough data available, required ' + packet + ' bytes but only ' + result.p2().toString() + ' available');
|
|
1435
|
+
}
|
|
1436
|
+
return result;
|
|
1437
|
+
}
|
|
1438
|
+
function *readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1439
|
+
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1440
|
+
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1441
|
+
return yield* (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).i3z(ignoreMissing, $completion);
|
|
1442
|
+
}
|
|
1443
|
+
function *readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1444
|
+
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1445
|
+
lineEnding = lineEnding === VOID ? LineEnding_Default_getInstance() : lineEnding;
|
|
1446
|
+
// Inline function 'kotlin.require' call
|
|
1447
|
+
if (!(limit >= 0n)) {
|
|
1448
|
+
var message = 'Limit (' + limit.toString() + ') should be non-negative';
|
|
1449
|
+
throw IllegalArgumentException.n2(toString_1(message));
|
|
1450
|
+
}
|
|
1451
|
+
return yield* internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1452
|
+
}
|
|
1453
|
+
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1454
|
+
var tmp0_safe_receiver = _this__u8e3s4.h3y();
|
|
1455
|
+
if (tmp0_safe_receiver == null)
|
|
1456
|
+
null;
|
|
1457
|
+
else {
|
|
1458
|
+
// Inline function 'kotlin.let' call
|
|
1459
|
+
throw tmp0_safe_receiver;
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
function *readBuffer(_this__u8e3s4, $completion) {
|
|
1463
|
+
var result = new Buffer();
|
|
1464
|
+
while (!_this__u8e3s4.m3y()) {
|
|
1465
|
+
result.i1u(_this__u8e3s4.u3x());
|
|
1466
|
+
yield* _this__u8e3s4.t3y(VOID, $completion);
|
|
1467
|
+
}
|
|
1468
|
+
var tmp0_safe_receiver = _this__u8e3s4.h3y();
|
|
1469
|
+
if (tmp0_safe_receiver == null)
|
|
1470
|
+
null;
|
|
1471
|
+
else {
|
|
1472
|
+
// Inline function 'kotlin.let' call
|
|
1473
|
+
throw tmp0_safe_receiver;
|
|
1474
|
+
}
|
|
1475
|
+
return result;
|
|
1476
|
+
}
|
|
1477
|
+
function get_availableForRead(_this__u8e3s4) {
|
|
1478
|
+
return convertToInt(_this__u8e3s4.u3x().m1s().p2());
|
|
1479
|
+
}
|
|
1480
|
+
function *peek(_this__u8e3s4, count, $completion) {
|
|
1481
|
+
if (_this__u8e3s4.m3y())
|
|
1482
|
+
return null;
|
|
1483
|
+
if (!(yield* _this__u8e3s4.n3y(count, $completion)))
|
|
1484
|
+
return null;
|
|
1485
|
+
return readByteString(_this__u8e3s4.u3x().v1t(), count);
|
|
1486
|
+
}
|
|
1487
|
+
function *internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
|
|
1488
|
+
var readBuffer = _this__u8e3s4.u3x();
|
|
1489
|
+
if (readBuffer.n1s()) {
|
|
1490
|
+
yield* _this__u8e3s4.t3y(VOID, $completion);
|
|
1491
|
+
}
|
|
1492
|
+
if (_this__u8e3s4.m3y())
|
|
1493
|
+
return -1n;
|
|
1494
|
+
var consumed = {_v: 0n};
|
|
1495
|
+
$l$loop: while (consumed._v < limit && !_this__u8e3s4.m3y()) {
|
|
1496
|
+
var limitLeft = subtract(limit, consumed._v);
|
|
1497
|
+
var lfIndex = indexOf(readBuffer, 10, VOID, limitLeft);
|
|
1498
|
+
var crIndex = internalReadLineTo$scanForSoleCr(readBuffer, lenientLineEnding, lfIndex, limitLeft);
|
|
1499
|
+
if (crIndex >= 0n) {
|
|
1500
|
+
internalReadLineTo$transferString(readBuffer, out, consumed, crIndex);
|
|
1501
|
+
discard_0(readBuffer, 1n);
|
|
1502
|
+
return consumed._v;
|
|
1503
|
+
}
|
|
1504
|
+
if (lfIndex === 0n) {
|
|
1505
|
+
discard_0(readBuffer, 1n);
|
|
1506
|
+
return consumed._v;
|
|
1507
|
+
}
|
|
1508
|
+
if (lfIndex > 0n) {
|
|
1509
|
+
var tmp;
|
|
1510
|
+
var tmp_0 = readBuffer.m1s();
|
|
1511
|
+
// Inline function 'kotlin.Long.minus' call
|
|
1512
|
+
var tmp$ret$0 = subtract(lfIndex, fromInt(1));
|
|
1513
|
+
if (tmp_0.m1t(tmp$ret$0) === 13) {
|
|
1514
|
+
tmp = 1n;
|
|
1515
|
+
} else {
|
|
1516
|
+
tmp = 0n;
|
|
1517
|
+
}
|
|
1518
|
+
var isCrlf = tmp;
|
|
1519
|
+
internalReadLineTo$transferString(readBuffer, out, consumed, subtract(lfIndex, isCrlf));
|
|
1520
|
+
discard_0(readBuffer, add(numberToLong(1), isCrlf));
|
|
1521
|
+
return consumed._v;
|
|
1522
|
+
}
|
|
1523
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
1524
|
+
var b = get_remaining(readBuffer);
|
|
1525
|
+
var count = limitLeft <= b ? limitLeft : b;
|
|
1526
|
+
var tmp_1 = readBuffer.m1s();
|
|
1527
|
+
// Inline function 'kotlin.Long.minus' call
|
|
1528
|
+
var tmp$ret$2 = subtract(count, fromInt(1));
|
|
1529
|
+
if (tmp_1.m1t(tmp$ret$2) === 13) {
|
|
1530
|
+
// Inline function 'kotlin.Long.minus' call
|
|
1531
|
+
var tmp$ret$3 = subtract(count, fromInt(1));
|
|
1532
|
+
internalReadLineTo$transferString(readBuffer, out, consumed, tmp$ret$3);
|
|
1533
|
+
if (yield* internalReadLineTo$discardCrlfOrCr(readBuffer, _this__u8e3s4, lenientLineEnding, $completion))
|
|
1534
|
+
return consumed._v;
|
|
1535
|
+
internalReadLineTo$transferString(readBuffer, out, consumed, 1n);
|
|
1536
|
+
} else {
|
|
1537
|
+
internalReadLineTo$transferString(readBuffer, out, consumed, count);
|
|
1538
|
+
}
|
|
1539
|
+
if (consumed._v < limit && get_remaining(readBuffer) === 0n && !(yield* _this__u8e3s4.t3y(VOID, $completion)))
|
|
1540
|
+
break $l$loop;
|
|
1541
|
+
}
|
|
1542
|
+
if (consumed._v === 0n && _this__u8e3s4.m3y())
|
|
1543
|
+
return -1n;
|
|
1544
|
+
// Inline function 'kotlin.check' call
|
|
1545
|
+
if (!(consumed._v <= limit)) {
|
|
1546
|
+
var message = 'Consumed bytes exceed the limit: ' + consumed._v.toString() + ' > ' + limit.toString() + ". It's an implementation bug, please report it.";
|
|
1547
|
+
throw IllegalStateException.o(toString_1(message));
|
|
1548
|
+
}
|
|
1549
|
+
if (consumed._v === limit) {
|
|
1550
|
+
if (limit === 9223372036854775807n)
|
|
1551
|
+
throw TooLongLineException.s3z('Max line length exceeded');
|
|
1552
|
+
if (get_remaining(readBuffer) === 0n && !(yield* _this__u8e3s4.t3y(VOID, $completion))) {
|
|
1553
|
+
throwEndOfStreamException(consumed._v);
|
|
1554
|
+
}
|
|
1555
|
+
var tmp0_subject = readBuffer.m1s().m1t(0n);
|
|
1556
|
+
if (tmp0_subject === 10) {
|
|
1557
|
+
discard_0(readBuffer, 1n);
|
|
1558
|
+
return consumed._v;
|
|
1559
|
+
} else if (tmp0_subject === 13)
|
|
1560
|
+
if (yield* internalReadLineTo$discardCrlfOrCr(readBuffer, _this__u8e3s4, lenientLineEnding, $completion))
|
|
1561
|
+
return consumed._v;
|
|
1562
|
+
throwTooLongLineException(limit);
|
|
1563
|
+
}
|
|
1564
|
+
if (throwOnIncompleteLine) {
|
|
1565
|
+
throwEndOfStreamException(consumed._v);
|
|
1566
|
+
}
|
|
1567
|
+
return consumed._v;
|
|
1568
|
+
}
|
|
1569
|
+
function throwEndOfStreamException(consumed) {
|
|
1570
|
+
throw EOFException.l1s('Unexpected end of stream after reading ' + consumed.toString() + ' characters');
|
|
1571
|
+
}
|
|
1572
|
+
function throwTooLongLineException(limit) {
|
|
1573
|
+
throw TooLongLineException.s3z('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1574
|
+
}
|
|
1575
|
+
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1576
|
+
var tmp0_safe_receiver = _this__u8e3s4.h3y();
|
|
1577
|
+
if (tmp0_safe_receiver == null)
|
|
1578
|
+
null;
|
|
1579
|
+
else {
|
|
1580
|
+
// Inline function 'kotlin.let' call
|
|
1581
|
+
throw tmp0_safe_receiver;
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
function internalReadLineTo$transferString(readBuffer, $out, consumed, count) {
|
|
1585
|
+
if (count > 0n) {
|
|
1586
|
+
var string = readString(readBuffer, count);
|
|
1587
|
+
$out.o2(string);
|
|
1588
|
+
var tmp0 = consumed._v;
|
|
1589
|
+
// Inline function 'kotlin.Long.plus' call
|
|
1590
|
+
var other = string.length;
|
|
1591
|
+
consumed._v = add(tmp0, fromInt(other));
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfIndex, limitLeft) {
|
|
1595
|
+
if (!$lenientLineEnding)
|
|
1596
|
+
return -1n;
|
|
1597
|
+
var tmp;
|
|
1598
|
+
if (lfIndex === -1n) {
|
|
1599
|
+
// Inline function 'kotlin.Long.minus' call
|
|
1600
|
+
var this_0 = get_remaining(_this__u8e3s4);
|
|
1601
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
1602
|
+
var b = subtract(this_0, fromInt(1));
|
|
1603
|
+
tmp = limitLeft <= b ? limitLeft : b;
|
|
1604
|
+
} else if (lfIndex === 0n) {
|
|
1605
|
+
tmp = 0n;
|
|
1606
|
+
} else {
|
|
1607
|
+
// Inline function 'kotlin.Long.minus' call
|
|
1608
|
+
tmp = subtract(lfIndex, fromInt(1));
|
|
1609
|
+
}
|
|
1610
|
+
var endIndex = tmp;
|
|
1611
|
+
return indexOf(_this__u8e3s4, 13, VOID, endIndex);
|
|
1612
|
+
}
|
|
1613
|
+
function *internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
|
|
1614
|
+
if ((get_remaining(_this__u8e3s4) >= 2n || (yield* $this_internalReadLineTo.n3y(2, $completion))) && _this__u8e3s4.m1s().m1t(1n) === 10) {
|
|
1615
|
+
discard_0(_this__u8e3s4, 2n);
|
|
1616
|
+
return true;
|
|
1617
|
+
}
|
|
1618
|
+
if ($lenientLineEnding) {
|
|
1619
|
+
discard_0(_this__u8e3s4, 1n);
|
|
1620
|
+
return true;
|
|
1621
|
+
}
|
|
1622
|
+
return false;
|
|
1623
|
+
}
|
|
1624
|
+
function *flushIfNeeded(_this__u8e3s4, $completion) {
|
|
1625
|
+
rethrowCloseCauseIfNeeded_1(_this__u8e3s4);
|
|
1626
|
+
if (_this__u8e3s4.s3x() || get_size(_this__u8e3s4.a3y()) >= 1048576)
|
|
1627
|
+
yield* _this__u8e3s4.u3y($completion);
|
|
1628
|
+
return Unit_instance;
|
|
1629
|
+
}
|
|
1630
|
+
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
1631
|
+
return constructCallableReference(function *($completion) {
|
|
1632
|
+
return yield* p0.w3y($completion);
|
|
1633
|
+
}, 0, 1, 79, 'flushAndClose', [p0]);
|
|
1634
|
+
}
|
|
1635
|
+
function get_NO_CALLBACK() {
|
|
1636
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1637
|
+
return NO_CALLBACK;
|
|
1638
|
+
}
|
|
1639
|
+
var NO_CALLBACK;
|
|
1640
|
+
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
1641
|
+
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
1642
|
+
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
1643
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1644
|
+
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
1645
|
+
}
|
|
1646
|
+
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
1647
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1648
|
+
return _this__u8e3s4.s2x().r2s(block);
|
|
1649
|
+
}
|
|
1650
|
+
function *writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
1651
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
1652
|
+
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
1653
|
+
_this__u8e3s4.a3y().a1u(value, startIndex, endIndex);
|
|
1654
|
+
yield* flushIfNeeded(_this__u8e3s4, $completion);
|
|
1655
|
+
return Unit_instance;
|
|
1656
|
+
}
|
|
1657
|
+
function close_0(_this__u8e3s4, cause) {
|
|
1658
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1659
|
+
if (cause == null) {
|
|
1660
|
+
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
1661
|
+
} else {
|
|
1662
|
+
_this__u8e3s4.x3y(cause);
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
1666
|
+
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
1667
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1668
|
+
// Inline function 'kotlin.apply' call
|
|
1669
|
+
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda(block, channel));
|
|
1670
|
+
this_0.r2s(writer$lambda(channel));
|
|
1671
|
+
var job = this_0;
|
|
1672
|
+
return new WriterJob(channel, job);
|
|
1673
|
+
}
|
|
1674
|
+
function fireAndForget(_this__u8e3s4) {
|
|
1675
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1676
|
+
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
1677
|
+
}
|
|
1678
|
+
function *writeByte(_this__u8e3s4, value, $completion) {
|
|
1679
|
+
_this__u8e3s4.a3y().j1u(value);
|
|
1680
|
+
yield* flushIfNeeded(_this__u8e3s4, $completion);
|
|
1681
|
+
return Unit_instance;
|
|
1682
|
+
}
|
|
1683
|
+
function writer$slambda($block, $channel) {
|
|
1684
|
+
return constructCallableReference(function *($this$launch, $completion) {
|
|
1685
|
+
var nested = Job(get_job($this$launch.o2r()));
|
|
1686
|
+
var tmp;
|
|
1687
|
+
try {
|
|
1688
|
+
yield* $block(new WriterScope($channel, $this$launch.o2r().xl(nested)), $completion);
|
|
1689
|
+
nested.e2y();
|
|
1690
|
+
var tmp_0;
|
|
1691
|
+
if (get_job($this$launch.o2r()).l2s()) {
|
|
1692
|
+
$channel.x3y(get_job($this$launch.o2r()).o2s());
|
|
1693
|
+
tmp_0 = Unit_instance;
|
|
1694
|
+
}
|
|
1695
|
+
tmp = tmp_0;
|
|
1696
|
+
} catch ($p) {
|
|
1697
|
+
var tmp_1;
|
|
1698
|
+
if ($p instanceof Error) {
|
|
1699
|
+
var cause = $p;
|
|
1700
|
+
cancel(nested, 'Exception thrown while writing to channel', cause);
|
|
1701
|
+
$channel.x3y(cause);
|
|
1702
|
+
tmp_1 = Unit_instance;
|
|
1703
|
+
} else {
|
|
1704
|
+
throw $p;
|
|
1705
|
+
}
|
|
1706
|
+
tmp = tmp_1;
|
|
1707
|
+
}
|
|
1708
|
+
finally {
|
|
1709
|
+
yield* nested.v2s($completion);
|
|
1710
|
+
// Inline function 'kotlin.runCatching' call
|
|
1711
|
+
var tmp_2;
|
|
1712
|
+
try {
|
|
1713
|
+
yield* $channel.w3y($completion);
|
|
1714
|
+
// Inline function 'kotlin.Companion.success' call
|
|
1715
|
+
tmp_2 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
1716
|
+
} catch ($p_0) {
|
|
1717
|
+
var tmp_3;
|
|
1718
|
+
if ($p_0 instanceof Error) {
|
|
1719
|
+
var e = $p_0;
|
|
1720
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
1721
|
+
tmp_3 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
1722
|
+
} else {
|
|
1723
|
+
throw $p_0;
|
|
1724
|
+
}
|
|
1725
|
+
tmp_2 = tmp_3;
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
return Unit_instance;
|
|
1729
|
+
}, 1);
|
|
1730
|
+
}
|
|
1731
|
+
function writer$lambda($channel) {
|
|
1732
|
+
return (it) => {
|
|
1733
|
+
var tmp;
|
|
1734
|
+
if (!(it == null) && !$channel.g3y()) {
|
|
1735
|
+
$channel.x3y(it);
|
|
1736
|
+
tmp = Unit_instance;
|
|
1737
|
+
}
|
|
1738
|
+
return Unit_instance;
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1741
|
+
var properties_initialized_ByteWriteChannelOperations_kt_acrf6u;
|
|
1742
|
+
function _init_properties_ByteWriteChannelOperations_kt__i7slrs() {
|
|
1743
|
+
if (!properties_initialized_ByteWriteChannelOperations_kt_acrf6u) {
|
|
1744
|
+
properties_initialized_ByteWriteChannelOperations_kt_acrf6u = true;
|
|
1745
|
+
NO_CALLBACK = new NO_CALLBACK$1();
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
function get_CLOSED() {
|
|
1749
|
+
_init_properties_CloseToken_kt__9ucr41();
|
|
1750
|
+
return CLOSED;
|
|
1751
|
+
}
|
|
1752
|
+
var CLOSED;
|
|
1753
|
+
var Companion_instance_2;
|
|
1754
|
+
function Companion_getInstance_1() {
|
|
1755
|
+
return Companion_instance_2;
|
|
1756
|
+
}
|
|
1757
|
+
function access$_get_origin__hdh1qz($this) {
|
|
1758
|
+
return $this.w3z_1;
|
|
1759
|
+
}
|
|
1760
|
+
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
1761
|
+
function _init_properties_CloseToken_kt__9ucr41() {
|
|
1762
|
+
if (!properties_initialized_CloseToken_kt_lgg8zn) {
|
|
1763
|
+
properties_initialized_CloseToken_kt_lgg8zn = true;
|
|
1764
|
+
CLOSED = new CloseToken(null);
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
function transferFromDelegate($this) {
|
|
1768
|
+
updateConsumed($this);
|
|
1769
|
+
var appended = $this.y3z_1.i1u($this.x3z_1.u3x());
|
|
1770
|
+
$this.z3z_1 = add($this.z3z_1, appended);
|
|
1771
|
+
}
|
|
1772
|
+
function updateConsumed($this) {
|
|
1773
|
+
$this.a40_1 = add($this.a40_1, subtract($this.z3z_1, $this.y3z_1.p2()));
|
|
1774
|
+
$this.z3z_1 = $this.y3z_1.p2();
|
|
1775
|
+
}
|
|
1776
|
+
function counted(_this__u8e3s4) {
|
|
1777
|
+
return new CountedByteReadChannel(_this__u8e3s4);
|
|
1778
|
+
}
|
|
1779
|
+
function readText(_this__u8e3s4) {
|
|
1780
|
+
return readString_0(_this__u8e3s4);
|
|
1781
|
+
}
|
|
1782
|
+
var LineEnding_Default_instance;
|
|
1783
|
+
var LineEnding_Lenient_instance;
|
|
1784
|
+
var LineEnding_entriesInitialized;
|
|
1785
|
+
function LineEnding_initEntries() {
|
|
1786
|
+
if (LineEnding_entriesInitialized)
|
|
1787
|
+
return Unit_instance;
|
|
1788
|
+
LineEnding_entriesInitialized = true;
|
|
1789
|
+
LineEnding_Default_instance = new LineEnding('Default', 0);
|
|
1790
|
+
LineEnding_Lenient_instance = new LineEnding('Lenient', 1);
|
|
1791
|
+
}
|
|
1792
|
+
function LineEnding_Default_getInstance() {
|
|
1793
|
+
LineEnding_initEntries();
|
|
1794
|
+
return LineEnding_Default_instance;
|
|
1795
|
+
}
|
|
1796
|
+
function LineEnding_Lenient_getInstance() {
|
|
1797
|
+
LineEnding_initEntries();
|
|
1798
|
+
return LineEnding_Lenient_instance;
|
|
1799
|
+
}
|
|
1800
|
+
function _LineEndingMode___init__impl__jo5bul(mode) {
|
|
1801
|
+
return mode;
|
|
1802
|
+
}
|
|
1803
|
+
function _get_mode__dah3bc($this) {
|
|
1804
|
+
return $this;
|
|
1805
|
+
}
|
|
1806
|
+
function LineEndingMode__contains_impl_q5pr68($this, other) {
|
|
1807
|
+
return (_get_mode__dah3bc($this) | _get_mode__dah3bc(other)) === _get_mode__dah3bc($this);
|
|
1808
|
+
}
|
|
1809
|
+
function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
1810
|
+
return _LineEndingMode___init__impl__jo5bul(_get_mode__dah3bc($this) | _get_mode__dah3bc(other));
|
|
1811
|
+
}
|
|
1812
|
+
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
1813
|
+
var tmp;
|
|
1814
|
+
if ($this === Companion_getInstance_2().c40_1) {
|
|
1815
|
+
tmp = 'CR';
|
|
1816
|
+
} else if ($this === Companion_getInstance_2().d40_1) {
|
|
1817
|
+
tmp = 'LF';
|
|
1818
|
+
} else if ($this === Companion_getInstance_2().e40_1) {
|
|
1819
|
+
tmp = 'CRLF';
|
|
1820
|
+
} else {
|
|
1821
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1822
|
+
var tmp0 = Companion_getInstance_2().g40_1;
|
|
1823
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1824
|
+
var destination = ArrayList.f2();
|
|
1825
|
+
var _iterator__ex2g4s = tmp0.l1();
|
|
1826
|
+
while (_iterator__ex2g4s.m1()) {
|
|
1827
|
+
var element = _iterator__ex2g4s.n1();
|
|
1828
|
+
var it = element.h40_1;
|
|
1829
|
+
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
1830
|
+
destination.e2(element);
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
tmp = toString_1(destination);
|
|
1834
|
+
}
|
|
1835
|
+
return tmp;
|
|
1836
|
+
}
|
|
1837
|
+
var Companion_instance_3;
|
|
1838
|
+
function Companion_getInstance_2() {
|
|
1839
|
+
if (Companion_instance_3 === VOID)
|
|
1840
|
+
new Companion_2();
|
|
1841
|
+
return Companion_instance_3;
|
|
1842
|
+
}
|
|
1843
|
+
function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
1844
|
+
return $this;
|
|
1845
|
+
}
|
|
1846
|
+
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
1847
|
+
if (!(other instanceof LineEndingMode))
|
|
1848
|
+
return false;
|
|
1849
|
+
if (!($this === other.h40_1))
|
|
1850
|
+
return false;
|
|
1851
|
+
return true;
|
|
1852
|
+
}
|
|
1853
|
+
function decode(_this__u8e3s4, input, max) {
|
|
1854
|
+
max = max === VOID ? 2147483647 : max;
|
|
1855
|
+
var tmp0 = fromInt(max);
|
|
1856
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
1857
|
+
var b = input.m1s().p2();
|
|
1858
|
+
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
1859
|
+
// Inline function 'kotlin.text.buildString' call
|
|
1860
|
+
var capacity = convertToInt(tmp$ret$0);
|
|
1861
|
+
// Inline function 'kotlin.apply' call
|
|
1862
|
+
var this_0 = StringBuilder.ec(capacity);
|
|
1863
|
+
decode_0(_this__u8e3s4, input, this_0, max);
|
|
1864
|
+
return this_0.toString();
|
|
1865
|
+
}
|
|
1866
|
+
function encode(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
1867
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
1868
|
+
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
1869
|
+
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1870
|
+
var builder = new Buffer();
|
|
1871
|
+
encodeToImpl(_this__u8e3s4, builder, input, fromIndex, toIndex);
|
|
1872
|
+
return builder;
|
|
1873
|
+
}
|
|
1874
|
+
function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
1875
|
+
var start = fromIndex;
|
|
1876
|
+
if (start >= toIndex)
|
|
1877
|
+
return Unit_instance;
|
|
1878
|
+
$l$loop: while (true) {
|
|
1879
|
+
var rc = encodeImpl(_this__u8e3s4, input, start, toIndex, destination);
|
|
1880
|
+
// Inline function 'kotlin.check' call
|
|
1881
|
+
if (!(rc >= 0)) {
|
|
1882
|
+
throw IllegalStateException.o('Check failed.');
|
|
1883
|
+
}
|
|
1884
|
+
start = start + rc | 0;
|
|
1885
|
+
if (start >= toIndex)
|
|
1886
|
+
break $l$loop;
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
function canRead(_this__u8e3s4) {
|
|
1890
|
+
return !_this__u8e3s4.n1s();
|
|
1891
|
+
}
|
|
1892
|
+
function readBytes(_this__u8e3s4, count) {
|
|
1893
|
+
count = count === VOID ? convertToInt(_this__u8e3s4.p2()) : count;
|
|
1894
|
+
return readByteArray(_this__u8e3s4, count);
|
|
1895
|
+
}
|
|
1896
|
+
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
1897
|
+
offset = offset === VOID ? 0 : offset;
|
|
1898
|
+
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1899
|
+
_this__u8e3s4.a1u(buffer, offset, offset + length | 0);
|
|
1900
|
+
}
|
|
1901
|
+
function BytePacketBuilder() {
|
|
1902
|
+
return new Buffer();
|
|
1903
|
+
}
|
|
1904
|
+
function build(_this__u8e3s4) {
|
|
1905
|
+
return _this__u8e3s4.m1s();
|
|
1906
|
+
}
|
|
1907
|
+
function get_size(_this__u8e3s4) {
|
|
1908
|
+
return convertToInt(_this__u8e3s4.m1s().p2());
|
|
1909
|
+
}
|
|
1910
|
+
var ByteReadPacketEmpty;
|
|
1911
|
+
function get_remaining(_this__u8e3s4) {
|
|
1912
|
+
_init_properties_ByteReadPacket_kt__28475y();
|
|
1913
|
+
return _this__u8e3s4.m1s().p2();
|
|
1914
|
+
}
|
|
1915
|
+
function discard_0(_this__u8e3s4, count) {
|
|
1916
|
+
count = count === VOID ? 9223372036854775807n : count;
|
|
1917
|
+
_init_properties_ByteReadPacket_kt__28475y();
|
|
1918
|
+
_this__u8e3s4.p1s(count);
|
|
1919
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
1920
|
+
var b = get_remaining(_this__u8e3s4);
|
|
1921
|
+
var countToDiscard = count <= b ? count : b;
|
|
1922
|
+
_this__u8e3s4.m1s().o1t(countToDiscard);
|
|
1923
|
+
return countToDiscard;
|
|
1924
|
+
}
|
|
1925
|
+
function takeWhile(_this__u8e3s4, block) {
|
|
1926
|
+
_init_properties_ByteReadPacket_kt__28475y();
|
|
1927
|
+
while (!_this__u8e3s4.n1s() && block(_this__u8e3s4.m1s())) {
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
1931
|
+
function _init_properties_ByteReadPacket_kt__28475y() {
|
|
1932
|
+
if (!properties_initialized_ByteReadPacket_kt_hw4st4) {
|
|
1933
|
+
properties_initialized_ByteReadPacket_kt_hw4st4 = true;
|
|
1934
|
+
ByteReadPacketEmpty = new Buffer();
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
1938
|
+
offset = offset === VOID ? 0 : offset;
|
|
1939
|
+
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1940
|
+
var result = _this__u8e3s4.p1t(buffer, offset, offset + length | 0);
|
|
1941
|
+
return result === -1 ? 0 : result;
|
|
1942
|
+
}
|
|
1943
|
+
function readText_0(_this__u8e3s4, charset, max) {
|
|
1944
|
+
charset = charset === VOID ? Charsets_getInstance().o40_1 : charset;
|
|
1945
|
+
max = max === VOID ? 2147483647 : max;
|
|
1946
|
+
if (charset.equals(Charsets_getInstance().o40_1)) {
|
|
1947
|
+
if (max === 2147483647)
|
|
1948
|
+
return readString_0(_this__u8e3s4);
|
|
1949
|
+
var tmp0 = _this__u8e3s4.m1s().p2();
|
|
1950
|
+
// Inline function 'kotlin.math.min' call
|
|
1951
|
+
var b = fromInt(max);
|
|
1952
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
1953
|
+
return readString(_this__u8e3s4, count);
|
|
1954
|
+
}
|
|
1955
|
+
return decode(charset.r40(), _this__u8e3s4, max);
|
|
1956
|
+
}
|
|
1957
|
+
function toByteArray_0(_this__u8e3s4, charset) {
|
|
1958
|
+
charset = charset === VOID ? Charsets_getInstance().o40_1 : charset;
|
|
1959
|
+
if (charset.equals(Charsets_getInstance().o40_1))
|
|
1960
|
+
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
1961
|
+
return encodeToByteArray_0(charset.s40(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
1962
|
+
}
|
|
1963
|
+
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
1964
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
1965
|
+
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
1966
|
+
charset = charset === VOID ? Charsets_getInstance().o40_1 : charset;
|
|
1967
|
+
if (charset === Charsets_getInstance().o40_1) {
|
|
1968
|
+
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
1969
|
+
}
|
|
1970
|
+
encodeToImpl(charset.s40(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
1971
|
+
}
|
|
1972
|
+
function get_ByteArrayPool() {
|
|
1973
|
+
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
1974
|
+
return ByteArrayPool;
|
|
1975
|
+
}
|
|
1976
|
+
var ByteArrayPool;
|
|
1977
|
+
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
1978
|
+
function _init_properties_ByteArrayPool_kt__kfi3uj() {
|
|
1979
|
+
if (!properties_initialized_ByteArrayPool_kt_td6pfh) {
|
|
1980
|
+
properties_initialized_ByteArrayPool_kt_td6pfh = true;
|
|
1981
|
+
ByteArrayPool = new ByteArrayPool$1();
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
var Companion_instance_4;
|
|
1985
|
+
function Companion_getInstance_3() {
|
|
1986
|
+
return Companion_instance_4;
|
|
1987
|
+
}
|
|
1988
|
+
var Charsets_instance;
|
|
1989
|
+
function Charsets_getInstance() {
|
|
1990
|
+
if (Charsets_instance === VOID)
|
|
1991
|
+
new Charsets();
|
|
1992
|
+
return Charsets_instance;
|
|
1993
|
+
}
|
|
1994
|
+
function get_name(_this__u8e3s4) {
|
|
1995
|
+
return _this__u8e3s4.q40_1;
|
|
1996
|
+
}
|
|
1997
|
+
function forName(_this__u8e3s4, name) {
|
|
1998
|
+
return Companion_instance_4.f41(name);
|
|
1999
|
+
}
|
|
2000
|
+
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
2001
|
+
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
2002
|
+
var tmp0 = input.m1s().p2();
|
|
2003
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2004
|
+
var b = fromInt(max);
|
|
2005
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
2006
|
+
var array = readByteArray(input, convertToInt(count));
|
|
2007
|
+
var tmp;
|
|
2008
|
+
try {
|
|
2009
|
+
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
2010
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2011
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2012
|
+
tmp = decoder.i41(array);
|
|
2013
|
+
} catch ($p) {
|
|
2014
|
+
var tmp_0;
|
|
2015
|
+
if ($p instanceof Error) {
|
|
2016
|
+
var cause = $p;
|
|
2017
|
+
var tmp0_elvis_lhs = cause.message;
|
|
2018
|
+
throw MalformedInputException.n40('Failed to decode bytes: ' + (tmp0_elvis_lhs == null ? 'no cause provided' : tmp0_elvis_lhs));
|
|
2019
|
+
} else {
|
|
2020
|
+
throw $p;
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
var result = tmp;
|
|
2024
|
+
dst.o2(result);
|
|
2025
|
+
return result.length;
|
|
2026
|
+
}
|
|
2027
|
+
function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
2028
|
+
// Inline function 'kotlin.require' call
|
|
2029
|
+
// Inline function 'kotlin.require' call
|
|
2030
|
+
if (!(fromIndex <= toIndex)) {
|
|
2031
|
+
var message = 'Failed requirement.';
|
|
2032
|
+
throw IllegalArgumentException.n2(toString_1(message));
|
|
2033
|
+
}
|
|
2034
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().p40_1)) {
|
|
2035
|
+
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
2036
|
+
}
|
|
2037
|
+
// Inline function 'kotlin.require' call
|
|
2038
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().o40_1)) {
|
|
2039
|
+
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
2040
|
+
throw IllegalArgumentException.n2(toString_1(message_0));
|
|
2041
|
+
}
|
|
2042
|
+
var encoder = new TextEncoder();
|
|
2043
|
+
// Inline function 'kotlin.text.substring' call
|
|
2044
|
+
var tmp$ret$5 = toString_1(charSequenceSubSequence(input, fromIndex, toIndex));
|
|
2045
|
+
var result = encoder.encode(tmp$ret$5);
|
|
2046
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2047
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2048
|
+
dst.d1u(result);
|
|
2049
|
+
return result.length;
|
|
2050
|
+
}
|
|
2051
|
+
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
2052
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2053
|
+
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
2054
|
+
return encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex);
|
|
2055
|
+
}
|
|
2056
|
+
function get_charset(_this__u8e3s4) {
|
|
2057
|
+
return _this__u8e3s4.g41_1;
|
|
2058
|
+
}
|
|
2059
|
+
function get_charset_0(_this__u8e3s4) {
|
|
2060
|
+
return _this__u8e3s4.h41_1;
|
|
2061
|
+
}
|
|
2062
|
+
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
2063
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2064
|
+
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
2065
|
+
var start = fromIndex;
|
|
2066
|
+
if (start >= toIndex)
|
|
2067
|
+
return new Int8Array(0);
|
|
2068
|
+
var dst = new Buffer();
|
|
2069
|
+
var rc = encodeImpl(_this__u8e3s4, input, start, toIndex, dst);
|
|
2070
|
+
start = start + rc | 0;
|
|
2071
|
+
if (start === toIndex) {
|
|
2072
|
+
return readByteArray_0(dst);
|
|
2073
|
+
}
|
|
2074
|
+
encodeToImpl(_this__u8e3s4, dst, input, start, toIndex);
|
|
2075
|
+
return readByteArray_0(dst);
|
|
2076
|
+
}
|
|
2077
|
+
function Decoder(encoding, fatal) {
|
|
2078
|
+
fatal = fatal === VOID ? true : fatal;
|
|
2079
|
+
var tmp;
|
|
2080
|
+
try {
|
|
2081
|
+
tmp = toKtor(new TextDecoder(encoding, textDecoderOptions(fatal)));
|
|
2082
|
+
} catch ($p) {
|
|
2083
|
+
var tmp_0;
|
|
2084
|
+
if ($p instanceof Error) {
|
|
2085
|
+
var cause = $p;
|
|
2086
|
+
tmp_0 = new TextDecoderFallback(encoding, fatal);
|
|
2087
|
+
} else {
|
|
2088
|
+
throw $p;
|
|
2089
|
+
}
|
|
2090
|
+
tmp = tmp_0;
|
|
2091
|
+
}
|
|
2092
|
+
return tmp;
|
|
2093
|
+
}
|
|
2094
|
+
function toKtor(_this__u8e3s4) {
|
|
2095
|
+
return new toKtor$1(_this__u8e3s4);
|
|
2096
|
+
}
|
|
2097
|
+
function textDecoderOptions(fatal) {
|
|
2098
|
+
fatal = fatal === VOID ? false : fatal;
|
|
2099
|
+
// Inline function 'kotlin.apply' call
|
|
2100
|
+
var this_0 = new Object();
|
|
2101
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2102
|
+
// Inline function 'kotlin.with' call
|
|
2103
|
+
this_0.fatal = fatal;
|
|
2104
|
+
return this_0;
|
|
2105
|
+
}
|
|
2106
|
+
function get_ENCODING_ALIASES() {
|
|
2107
|
+
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
2108
|
+
return ENCODING_ALIASES;
|
|
2109
|
+
}
|
|
2110
|
+
var ENCODING_ALIASES;
|
|
2111
|
+
function get_REPLACEMENT() {
|
|
2112
|
+
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
2113
|
+
return REPLACEMENT;
|
|
2114
|
+
}
|
|
2115
|
+
var REPLACEMENT;
|
|
2116
|
+
function toCodePoint(_this__u8e3s4) {
|
|
2117
|
+
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
2118
|
+
var value = _this__u8e3s4 & 255;
|
|
2119
|
+
if (isASCII(value)) {
|
|
2120
|
+
return value;
|
|
2121
|
+
}
|
|
2122
|
+
return get_WIN1252_TABLE()[value - 128 | 0];
|
|
2123
|
+
}
|
|
2124
|
+
function isASCII(_this__u8e3s4) {
|
|
2125
|
+
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
2126
|
+
return 0 <= _this__u8e3s4 ? _this__u8e3s4 <= 127 : false;
|
|
2127
|
+
}
|
|
2128
|
+
var properties_initialized_TextDecoderFallback_js_kt_6rekzk;
|
|
2129
|
+
function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
2130
|
+
if (!properties_initialized_TextDecoderFallback_js_kt_6rekzk) {
|
|
2131
|
+
properties_initialized_TextDecoderFallback_js_kt_6rekzk = true;
|
|
2132
|
+
ENCODING_ALIASES = setOf(['ansi_x3.4-1968', 'ascii', 'cp1252', 'cp819', 'csisolatin1', 'ibm819', 'iso-8859-1', 'iso-ir-100', 'iso8859-1', 'iso88591', 'iso_8859-1', 'iso_8859-1:1987', 'l1', 'latin1', 'us-ascii', 'windows-1252', 'x-cp1252']);
|
|
2133
|
+
// Inline function 'kotlin.byteArrayOf' call
|
|
2134
|
+
REPLACEMENT = new Int8Array([-17, -65, -67]);
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
function get_DEVELOPMENT_MODE() {
|
|
2138
|
+
return false;
|
|
2139
|
+
}
|
|
2140
|
+
function ioDispatcher() {
|
|
2141
|
+
return Dispatchers_getInstance().q32_1;
|
|
2142
|
+
}
|
|
2143
|
+
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
2144
|
+
if (fromIndex >= toIndex)
|
|
2145
|
+
return 0;
|
|
2146
|
+
var inductionVariable = fromIndex;
|
|
2147
|
+
if (inductionVariable < toIndex)
|
|
2148
|
+
do {
|
|
2149
|
+
var index = inductionVariable;
|
|
2150
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2151
|
+
// Inline function 'kotlin.code' call
|
|
2152
|
+
var this_0 = charSequenceGet(input, index);
|
|
2153
|
+
var character = Char__toInt_impl_vasixd(this_0);
|
|
2154
|
+
if (character > 255) {
|
|
2155
|
+
failedToMapError(character);
|
|
2156
|
+
}
|
|
2157
|
+
dst.j1u(toByte(character));
|
|
2158
|
+
}
|
|
2159
|
+
while (inductionVariable < toIndex);
|
|
2160
|
+
return toIndex - fromIndex | 0;
|
|
2161
|
+
}
|
|
2162
|
+
function failedToMapError(ch) {
|
|
2163
|
+
throw MalformedInputException.n40('The character with unicode point ' + ch + " couldn't be mapped to ISO-8859-1 character");
|
|
2164
|
+
}
|
|
2165
|
+
function get_WIN1252_TABLE() {
|
|
2166
|
+
_init_properties_Win1252Table_kt__tl0v64();
|
|
2167
|
+
return WIN1252_TABLE;
|
|
2168
|
+
}
|
|
2169
|
+
var WIN1252_TABLE;
|
|
2170
|
+
var properties_initialized_Win1252Table_kt_pkmjoq;
|
|
2171
|
+
function _init_properties_Win1252Table_kt__tl0v64() {
|
|
2172
|
+
if (!properties_initialized_Win1252Table_kt_pkmjoq) {
|
|
2173
|
+
properties_initialized_Win1252Table_kt_pkmjoq = true;
|
|
2174
|
+
// Inline function 'kotlin.intArrayOf' call
|
|
2175
|
+
WIN1252_TABLE = new Int32Array([8364, -1, 8218, 402, 8222, 8230, 8224, 8225, 710, 8240, 352, 8249, 338, -1, 381, -1, -1, 8216, 8217, 8220, 8221, 8226, 8211, 8212, 732, 8482, 353, 8250, 339, -1, 382, 376, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255]);
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
//region block: post-declaration
|
|
2179
|
+
initMetadataForCompanion(Companion);
|
|
2180
|
+
initMetadataForObject(Empty, 'Empty');
|
|
2181
|
+
initMetadataForClass(Closed, 'Closed');
|
|
2182
|
+
initMetadataForInterface(Task, 'Task');
|
|
2183
|
+
protoOf(Read).c3x = resume;
|
|
2184
|
+
protoOf(Read).d3x = resume_0;
|
|
2185
|
+
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
2186
|
+
protoOf(Write).c3x = resume;
|
|
2187
|
+
protoOf(Write).d3x = resume_0;
|
|
2188
|
+
initMetadataForClass(Write, 'Write', VOID, VOID, [Task]);
|
|
2189
|
+
initMetadataForClass(sam$kotlinx_coroutines_DisposableHandle$0, 'sam$kotlinx_coroutines_DisposableHandle$0', VOID, VOID, [DisposableHandle, FunctionAdapter]);
|
|
2190
|
+
initMetadataForInterface(ByteReadChannel, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
2191
|
+
initMetadataForInterface(ByteWriteChannel, 'ByteWriteChannel', VOID, VOID, VOID, [0]);
|
|
2192
|
+
protoOf(ByteChannel).t3y = awaitContent$default;
|
|
2193
|
+
initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel, ByteWriteChannel], [1, 0]);
|
|
2194
|
+
initMetadataForClass(ConcurrentIOException, 'ConcurrentIOException');
|
|
2195
|
+
initMetadataForClass(ByteChannelScanner, 'ByteChannelScanner', VOID, VOID, VOID, [1, 0]);
|
|
2196
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t3y = awaitContent$default;
|
|
2197
|
+
initMetadataForClass(ByteReadChannel$Companion$Empty$1, VOID, VOID, VOID, [ByteReadChannel], [1]);
|
|
2198
|
+
initMetadataForCompanion(Companion_0);
|
|
2199
|
+
initMetadataForClass(WriterJob, 'WriterJob');
|
|
2200
|
+
initMetadataForClass(WriterScope, 'WriterScope');
|
|
2201
|
+
initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
|
|
2202
|
+
initMetadataForCompanion(Companion_1);
|
|
2203
|
+
initMetadataForClass(CloseToken, 'CloseToken');
|
|
2204
|
+
protoOf(CountedByteReadChannel).t3y = awaitContent$default;
|
|
2205
|
+
initMetadataForClass(CountedByteReadChannel, 'CountedByteReadChannel', VOID, VOID, [ByteReadChannel], [1]);
|
|
2206
|
+
initMetadataForClass(ClosedByteChannelException, 'ClosedByteChannelException', ClosedByteChannelException.l3y);
|
|
2207
|
+
initMetadataForClass(ClosedReadChannelException, 'ClosedReadChannelException', ClosedReadChannelException.z3x);
|
|
2208
|
+
initMetadataForClass(ClosedWriteChannelException, 'ClosedWriteChannelException', ClosedWriteChannelException.f3y);
|
|
2209
|
+
initMetadataForClass(LineEnding, 'LineEnding');
|
|
2210
|
+
initMetadataForCompanion(Companion_2);
|
|
2211
|
+
initMetadataForClass(LineEndingMode, 'LineEndingMode');
|
|
2212
|
+
protoOf(SourceByteReadChannel).t3y = awaitContent$default;
|
|
2213
|
+
initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel], [1]);
|
|
2214
|
+
initMetadataForClass(MalformedInputException, 'MalformedInputException');
|
|
2215
|
+
initMetadataForClass(TooLongLineException, 'TooLongLineException');
|
|
2216
|
+
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
2217
|
+
protoOf(DefaultPool).q6 = close;
|
|
2218
|
+
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
2219
|
+
initMetadataForClass(ByteArrayPool$1);
|
|
2220
|
+
protoOf(NoPoolImpl).q6 = close;
|
|
2221
|
+
initMetadataForClass(NoPoolImpl, 'NoPoolImpl', VOID, VOID, [ObjectPool]);
|
|
2222
|
+
initMetadataForCompanion(Companion_3);
|
|
2223
|
+
initMetadataForClass(Charset, 'Charset');
|
|
2224
|
+
initMetadataForObject(Charsets, 'Charsets');
|
|
2225
|
+
initMetadataForClass(CharsetDecoder, 'CharsetDecoder');
|
|
2226
|
+
initMetadataForClass(CharsetEncoder, 'CharsetEncoder');
|
|
2227
|
+
initMetadataForClass(CharsetImpl, 'CharsetImpl');
|
|
2228
|
+
initMetadataForClass(CharsetEncoderImpl, 'CharsetEncoderImpl');
|
|
2229
|
+
initMetadataForClass(CharsetDecoderImpl, 'CharsetDecoderImpl');
|
|
2230
|
+
initMetadataForClass(toKtor$1);
|
|
2231
|
+
initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
2232
|
+
//endregion
|
|
2233
|
+
//region block: init
|
|
2234
|
+
Empty_instance = new Empty();
|
|
2235
|
+
Companion_instance_2 = new Companion_1();
|
|
2236
|
+
Companion_instance_4 = new Companion_3();
|
|
2237
|
+
//endregion
|
|
2238
|
+
//region block: exports
|
|
2239
|
+
export {
|
|
2240
|
+
LineEndingMode__plus_impl_ttpz2j as LineEndingMode__plus_impl_ttpz2j3u2ebrlepd29o,
|
|
2241
|
+
Charsets_getInstance as Charsets_getInstance3jooo7e4x0j2x,
|
|
2242
|
+
Companion_getInstance_0 as Companion_getInstance25751un9ltd4f,
|
|
2243
|
+
Companion_getInstance_2 as Companion_getInstance33j3lym6q7yx7,
|
|
2244
|
+
copyTo as copyTo1e8cxw3cmqjst,
|
|
2245
|
+
readAvailable as readAvailable2yaaricqompas,
|
|
2246
|
+
readLineStrictTo as readLineStrictTo30g42df56og5l,
|
|
2247
|
+
readLineStrict as readLineStrict37pbadwlm0pk8,
|
|
2248
|
+
readPacket as readPacket25aqlhslm04t6,
|
|
2249
|
+
readRemaining as readRemaining1kbpbgdrq25q1,
|
|
2250
|
+
readUntil as readUntil13nwpwqdlw2vo,
|
|
2251
|
+
skipIfFound as skipIfFound2z2la3mzzpubl,
|
|
2252
|
+
toByteArray as toByteArray1nbmiiav9igm0,
|
|
2253
|
+
writeFully as writeFullyuc6cd2hh6ex3,
|
|
2254
|
+
MalformedInputException as MalformedInputExceptionbvc6h5ij0ias,
|
|
2255
|
+
decode as decode1t43jmuxrxpmo,
|
|
2256
|
+
encode as encode35e4rpnc94tb5,
|
|
2257
|
+
forName as forName2faodmskqnoz5,
|
|
2258
|
+
get_name as get_name2f11g4r0d5pxp,
|
|
2259
|
+
BytePacketBuilder as BytePacketBuilder2biodf4wxvlba,
|
|
2260
|
+
build as buildjygoh729rhy8,
|
|
2261
|
+
canRead as canRead1guo8vbveth0f,
|
|
2262
|
+
discard_0 as discard3ugntd47xyll6,
|
|
2263
|
+
readText_0 as readText27783kyxjxi1g,
|
|
2264
|
+
get_remaining as get_remaining1lapv95kcmm0y,
|
|
2265
|
+
get_size as get_size2imoy2jq11jxl,
|
|
2266
|
+
takeWhile as takeWhile34751tcfg6owx,
|
|
2267
|
+
toByteArray_0 as toByteArray1i3ns5jnoqlv6,
|
|
2268
|
+
writeFully_0 as writeFully359t6q8kam2g5,
|
|
2269
|
+
writeText as writeText19qfzm98fbm4l,
|
|
2270
|
+
get_ByteArrayPool as get_ByteArrayPool3f7yrgvqxz9ct,
|
|
2271
|
+
DefaultPool as DefaultPool2gb1fm4epwgu9,
|
|
2272
|
+
NoPoolImpl as NoPoolImplgos9n8jphzjp,
|
|
2273
|
+
ByteChannel as ByteChannel3cxdguezl3lu7,
|
|
2274
|
+
ByteReadChannel_1 as ByteReadChannel2ndu7k90iil3s,
|
|
2275
|
+
ByteReadChannel_0 as ByteReadChannel1cb89sbyipkce,
|
|
2276
|
+
ByteReadChannel as ByteReadChannel2wzou76jce72d,
|
|
2277
|
+
ClosedByteChannelException as ClosedByteChannelException3il8gfpye60w,
|
|
2278
|
+
attachWriterJob as attachWriterJob2dr3tee7atoa9,
|
|
2279
|
+
cancel_0 as canceldn4b3cdqcfny,
|
|
2280
|
+
close_0 as close3semq7pafb42g,
|
|
2281
|
+
counted as counted3iniv3aql3f9n,
|
|
2282
|
+
invokeOnCompletion as invokeOnCompletion1ziuxzoag0iwj,
|
|
2283
|
+
ioDispatcher as ioDispatcher3b9pa3x0duop,
|
|
2284
|
+
readText as readText3frapgncbqrcg,
|
|
2285
|
+
rethrowCloseCauseIfNeeded as rethrowCloseCauseIfNeeded3ixo8wl4o3bz4,
|
|
2286
|
+
writer as writer1eia5its2a1fh,
|
|
2287
|
+
};
|
|
2288
|
+
//endregion
|
|
2289
|
+
|
|
2290
|
+
//# sourceMappingURL=ktor-ktor-io.mjs.map
|