UNPKG

@cpaassdk/cpaas-sdk

Version:
1,113 lines (1,102 loc) 262 kB
(function (root, factory) { if (typeof define === 'function' && define.amd) define(['exports', './kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js', './kotlin-kotlin-stdlib-js-ir.js', './ktor-ktor-utils-js-ir.js', './ktor-ktor-io-js-ir.js', './88b0986a7186d029-atomicfu-js-ir.js', './ktor-ktor-http-js-ir.js', './ktor-ktor-http-cio-js-ir.js'], factory); else if (typeof exports === 'object') factory(module.exports, require('./kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./ktor-ktor-utils-js-ir.js'), require('./ktor-ktor-io-js-ir.js'), require('./88b0986a7186d029-atomicfu-js-ir.js'), require('./ktor-ktor-http-js-ir.js'), require('./ktor-ktor-http-cio-js-ir.js')); else { if (typeof this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'] === 'undefined') { throw new Error("Error loading module 'ktor-ktor-client-core-js-ir'. Its dependency 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir' was not found. Please, check whether 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir' is loaded prior to 'ktor-ktor-client-core-js-ir'."); } if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') { throw new Error("Error loading module 'ktor-ktor-client-core-js-ir'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'ktor-ktor-client-core-js-ir'."); } if (typeof this['ktor-ktor-utils-js-ir'] === 'undefined') { throw new Error("Error loading module 'ktor-ktor-client-core-js-ir'. Its dependency 'ktor-ktor-utils-js-ir' was not found. Please, check whether 'ktor-ktor-utils-js-ir' is loaded prior to 'ktor-ktor-client-core-js-ir'."); } if (typeof this['ktor-ktor-io-js-ir'] === 'undefined') { throw new Error("Error loading module 'ktor-ktor-client-core-js-ir'. Its dependency 'ktor-ktor-io-js-ir' was not found. Please, check whether 'ktor-ktor-io-js-ir' is loaded prior to 'ktor-ktor-client-core-js-ir'."); } if (typeof this['88b0986a7186d029-atomicfu-js-ir'] === 'undefined') { throw new Error("Error loading module 'ktor-ktor-client-core-js-ir'. Its dependency '88b0986a7186d029-atomicfu-js-ir' was not found. Please, check whether '88b0986a7186d029-atomicfu-js-ir' is loaded prior to 'ktor-ktor-client-core-js-ir'."); } if (typeof this['ktor-ktor-http-js-ir'] === 'undefined') { throw new Error("Error loading module 'ktor-ktor-client-core-js-ir'. Its dependency 'ktor-ktor-http-js-ir' was not found. Please, check whether 'ktor-ktor-http-js-ir' is loaded prior to 'ktor-ktor-client-core-js-ir'."); } if (typeof this['ktor-ktor-http-cio-js-ir'] === 'undefined') { throw new Error("Error loading module 'ktor-ktor-client-core-js-ir'. Its dependency 'ktor-ktor-http-cio-js-ir' was not found. Please, check whether 'ktor-ktor-http-cio-js-ir' is loaded prior to 'ktor-ktor-client-core-js-ir'."); } root['ktor-ktor-client-core-js-ir'] = factory(typeof this['ktor-ktor-client-core-js-ir'] === 'undefined' ? {} : this['ktor-ktor-client-core-js-ir'], this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'], this['kotlin-kotlin-stdlib-js-ir'], this['ktor-ktor-utils-js-ir'], this['ktor-ktor-io-js-ir'], this['88b0986a7186d029-atomicfu-js-ir'], this['ktor-ktor-http-js-ir'], this['ktor-ktor-http-cio-js-ir']); } }(this, function (_, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_kotlin, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_http_cio) { 'use strict'; //region block: imports var imul = Math.imul; var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l; var Unit_getInstance = kotlin_kotlin.$_$.h4; var CoroutineImpl = kotlin_kotlin.$_$.h8; var THROW_CCE = kotlin_kotlin.$_$.qc; var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.g; var isInterface = kotlin_kotlin.$_$.p9; var isObject = kotlin_kotlin.$_$.s9; var toString = kotlin_kotlin.$_$.ha; var getKClassFromExpression = kotlin_kotlin.$_$.c; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e2; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.s7; var classMeta = kotlin_kotlin.$_$.x8; var shared$1 = kotlin_io_ktor_ktor_io.$_$.m1; var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b; var Key_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s; var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1; var Attributes = kotlin_io_ktor_ktor_utils.$_$.n; var makeShared = kotlin_io_ktor_ktor_io.$_$.j1; var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m; var Closeable = kotlin_io_ktor_ktor_io.$_$.z; var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1; var ensureNotNull = kotlin_kotlin.$_$.dd; var KMutableProperty1 = kotlin_kotlin.$_$.ua; var getPropertyCallableRef = kotlin_kotlin.$_$.d9; var SuspendFunction2 = kotlin_kotlin.$_$.k8; var PlatformUtils_getInstance = kotlin_io_ktor_ktor_utils.$_$.e; var objectMeta = kotlin_kotlin.$_$.da; var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m1; var threadLocal = kotlin_io_ktor_ktor_io.$_$.t; var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.nd; var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.g1; var IllegalStateException = kotlin_kotlin.$_$.kc; var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.c2; var captureStack = kotlin_kotlin.$_$.s8; var UnsupportedOperationException = kotlin_kotlin.$_$.yc; var UnsupportedOperationException_init_$Init$ = kotlin_kotlin.$_$.n2; var flattenEntries = kotlin_io_ktor_ktor_utils.$_$.u; var joinToString$default = kotlin_kotlin.$_$.h; var trimMargin$default = kotlin_kotlin.$_$.x; var KProperty1 = kotlin_kotlin.$_$.va; var ByteReadChannel_0 = kotlin_io_ktor_ktor_io.$_$.f1; var Job$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i; var readRemaining = kotlin_io_ktor_ktor_io.$_$.c; var readBytes$default = kotlin_io_ktor_ktor_io.$_$.i; var hashCode = kotlin_kotlin.$_$.f9; var equals = kotlin_kotlin.$_$.z8; var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.j; var instanceOf = kotlin_io_ktor_ktor_utils.$_$.k; var IllegalStateException_init_$Init$_0 = kotlin_kotlin.$_$.d2; var WriterScope = kotlin_io_ktor_ktor_io.$_$.h1; var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.q; var noWhenBranchMatchedException = kotlin_kotlin.$_$.kd; var GlobalScope_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r; var writer = kotlin_io_ktor_ktor_io.$_$.l1; var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.r; var Companion_getInstance = kotlin_io_ktor_ktor_io.$_$.p; var NoContent = kotlin_io_ktor_ktor_http.$_$.o; var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.p; var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.n; var SuspendFunction1 = kotlin_kotlin.$_$.j8; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a2; var async$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k; var emptySet = kotlin_kotlin.$_$.a6; var interfaceMeta = kotlin_kotlin.$_$.g9; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.a1; var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.i; var UnsafeHeaderException = kotlin_io_ktor_ktor_http.$_$.y; var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1; var SilentSupervisor$default = kotlin_io_ktor_ktor_utils.$_$.b; var lazy = kotlin_kotlin.$_$.jd; var CompletableJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1; var setOf = kotlin_kotlin.$_$.a7; var Key = kotlin_kotlin.$_$.f8; var get = kotlin_kotlin.$_$.c8; var fold = kotlin_kotlin.$_$.b8; var minusKey = kotlin_kotlin.$_$.d8; var plus = kotlin_kotlin.$_$.g8; var Element = kotlin_kotlin.$_$.e8; var CancellationException_init_$Create$ = kotlin_kotlin.$_$.o1; var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.h; var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.s; var contentLength = kotlin_io_ktor_ktor_http.$_$.d1; var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.e; var toLong = kotlin_kotlin.$_$.fa; var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.f; var isByteArray = kotlin_kotlin.$_$.j9; var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.g; var TextContent_init_$Create$ = kotlin_io_ktor_ktor_http.$_$.b; var Companion_getInstance_1 = kotlin_kotlin.$_$.b4; var Long = kotlin_kotlin.$_$.lc; var copyTo = kotlin_io_ktor_ktor_io.$_$.a; var cancel_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1; var CancellationException = kotlin_kotlin.$_$.r7; var toLong_0 = kotlin_kotlin.$_$.sb; var cancel_1 = kotlin_io_ktor_ktor_io.$_$.i1; var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.x; var getKClass = kotlin_kotlin.$_$.d; var writer$default = kotlin_io_ktor_ktor_io.$_$.m; var readRemaining_0 = kotlin_io_ktor_ktor_io.$_$.d; var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.z3; var Input = kotlin_io_ktor_ktor_io.$_$.a1; var ByteReadPacket = kotlin_io_ktor_ktor_io.$_$.y; var Unit = kotlin_kotlin.$_$.xc; var toInt = kotlin_kotlin.$_$.qb; var reversed = kotlin_kotlin.$_$.z6; var SuspendFunction3 = kotlin_kotlin.$_$.l8; var contentType = kotlin_io_ktor_ktor_http.$_$.e1; var charset = kotlin_io_ktor_ktor_http.$_$.c1; var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.l1; var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.j1; var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o; var withCharset = kotlin_io_ktor_ktor_http.$_$.j1; var Comparator = kotlin_kotlin.$_$.dc; var compareValues = kotlin_kotlin.$_$.q7; var get_name = kotlin_io_ktor_ktor_io.$_$.s; var toList = kotlin_kotlin.$_$.h7; var sortedWith = kotlin_kotlin.$_$.e7; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.s1; var roundToInt = kotlin_kotlin.$_$.ia; var charSequenceLength = kotlin_kotlin.$_$.v8; var firstOrNull = kotlin_kotlin.$_$.c6; var charset_0 = kotlin_io_ktor_ktor_http.$_$.b1; var readText$default = kotlin_io_ktor_ktor_io.$_$.j; var get_authority = kotlin_io_ktor_ktor_http.$_$.a1; var UrlEncodingOption_NO_ENCODING_getInstance = kotlin_io_ktor_ktor_http.$_$.a; var takeFrom = kotlin_io_ktor_ktor_http.$_$.i1; var isSecure = kotlin_io_ktor_ktor_http.$_$.g1; var get_authority_0 = kotlin_io_ktor_ktor_http.$_$.z; var Companion_getInstance_2 = kotlin_io_ktor_ktor_http.$_$.l; var Companion_getInstance_3 = kotlin_io_ktor_ktor_http.$_$.j; var setOf_0 = kotlin_kotlin.$_$.b7; var cancel_2 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1; var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c; var launch$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m; var CancellationException_init_$Init$ = kotlin_kotlin.$_$.n1; var URLBuilder_init_$Create$ = kotlin_io_ktor_ktor_http.$_$.d; var HeadersBuilder_init_$Create$ = kotlin_io_ktor_ktor_http.$_$.c; var SupervisorJob$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j; var takeFrom_0 = kotlin_io_ktor_ktor_http.$_$.h1; var isBlank = kotlin_kotlin.$_$.bb; var appendAll = kotlin_io_ktor_ktor_utils.$_$.t; var putAll = kotlin_io_ktor_ktor_utils.$_$.w; var HttpMessageBuilder = kotlin_io_ktor_ktor_http.$_$.v; var GMTDate$default = kotlin_io_ktor_ktor_utils.$_$.a; var HttpMessage = kotlin_io_ktor_ktor_http.$_$.w; var Companion_getInstance_4 = kotlin_io_ktor_ktor_http.$_$.m; var get_DEFAULT_PORT = kotlin_io_ktor_ktor_http.$_$.u; var Pipeline = kotlin_io_ktor_ktor_utils.$_$.i; var JsType_getInstance = kotlin_io_ktor_ktor_utils.$_$.d; var arrayOf = kotlin_kotlin.$_$.ad; var createKType = kotlin_kotlin.$_$.a; var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l; var decode$default = kotlin_io_ktor_ktor_io.$_$.f; var get_ByteArrayPool = kotlin_io_ktor_ktor_io.$_$.e1; var readAvailable = kotlin_io_ktor_ktor_io.$_$.b; var ConcurrentMap_init_$Create$ = kotlin_io_ktor_ktor_utils.$_$.c; var ConcurrentList = kotlin_io_ktor_ktor_utils.$_$.f; var numberToInt = kotlin_kotlin.$_$.ba; var Companion_getInstance_5 = kotlin_io_ktor_ktor_http.$_$.k; var CoroutineScope_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1; var CancellationException_init_$Create$_0 = kotlin_kotlin.$_$.q1; var cancel_3 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l1; var Companion_getInstance_6 = kotlin_io_ktor_ktor_http.$_$.h; var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q; var intercepted = kotlin_kotlin.$_$.u7; var get_MODE_CANCELLABLE = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1; var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z; var extendThrowable = kotlin_kotlin.$_$.a9; var Companion_getInstance_7 = kotlin_kotlin.$_$.c4; var createFailure = kotlin_kotlin.$_$.cd; var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.z2; var toTypedArray = kotlin_kotlin.$_$.n7; var writeFully = kotlin_io_ktor_ktor_io.$_$.e; var Error_init_$Create$ = kotlin_kotlin.$_$.t1; var Error_init_$Create$_0 = kotlin_kotlin.$_$.v1; var Channel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e; var Companion_getInstance_8 = kotlin_io_ktor_ktor_http_cio.$_$.f; var Codes_CLOSED_ABNORMALLY_getInstance = kotlin_io_ktor_ktor_http_cio.$_$.a; var Text_init_$Create$ = kotlin_io_ktor_ktor_http_cio.$_$.e; var Binary_init_$Create$ = kotlin_io_ktor_ktor_http_cio.$_$.c; var CloseReason = kotlin_io_ktor_ktor_http_cio.$_$.g; var Close_init_$Create$ = kotlin_io_ktor_ktor_http_cio.$_$.d; var String$default = kotlin_io_ktor_ktor_io.$_$.h; var BytePacketBuilder = kotlin_io_ktor_ktor_io.$_$.x; var writeFully$default = kotlin_io_ktor_ktor_io.$_$.k; var readShort = kotlin_io_ktor_ktor_io.$_$.c1; var cancelConsumed = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u; var Codes_INTERNAL_ERROR_getInstance = kotlin_io_ktor_ktor_http_cio.$_$.b; var CompletableDeferred$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f; var Factory_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n; var DefaultWebSocketSession = kotlin_io_ktor_ktor_http_cio.$_$.h; //endregion //region block: pre-declaration HttpClient$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpClient$slambda.prototype.constructor = HttpClient$slambda; $executeCOROUTINE$0.prototype = Object.create(CoroutineImpl.prototype); $executeCOROUTINE$0.prototype.constructor = $executeCOROUTINE$0; $receiveCOROUTINE$1.prototype = Object.create(CoroutineImpl.prototype); $receiveCOROUTINE$1.prototype.constructor = $receiveCOROUTINE$1; DoubleReceiveException.prototype = Object.create(IllegalStateException.prototype); DoubleReceiveException.prototype.constructor = DoubleReceiveException; NoTransformationFoundException.prototype = Object.create(UnsupportedOperationException.prototype); NoTransformationFoundException.prototype.constructor = NoTransformationFoundException; SavedHttpCall.prototype = Object.create(HttpClientCall.prototype); SavedHttpCall.prototype.constructor = SavedHttpCall; function get_coroutineContext() { return this.r2h().kk(); } SavedHttpResponse.prototype = Object.create(HttpResponse.prototype); SavedHttpResponse.prototype.constructor = SavedHttpResponse; $saveCOROUTINE$2.prototype = Object.create(CoroutineImpl.prototype); $saveCOROUTINE$2.prototype.constructor = $saveCOROUTINE$2; UnsupportedContentTypeException.prototype = Object.create(IllegalStateException.prototype); UnsupportedContentTypeException.prototype.constructor = UnsupportedContentTypeException; ObservableContent$content$slambda.prototype = Object.create(CoroutineImpl.prototype); ObservableContent$content$slambda.prototype.constructor = ObservableContent$content$slambda; ObservableContent.prototype = Object.create(ReadChannelContent.prototype); ObservableContent.prototype.constructor = ObservableContent; HttpClientEngine$install$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpClientEngine$install$slambda.prototype.constructor = HttpClientEngine$install$slambda; HttpClientEngine$executeWithinCallContext$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpClientEngine$executeWithinCallContext$slambda.prototype.constructor = HttpClientEngine$executeWithinCallContext$slambda; $executeWithinCallContextCOROUTINE$3.prototype = Object.create(CoroutineImpl.prototype); $executeWithinCallContextCOROUTINE$3.prototype.constructor = $executeWithinCallContextCOROUTINE$3; function get_supportedCapabilities() { return emptySet(); } function install(client) { var tmp = Phases_getInstance_0().v2i_1; client.r2g_1.x21(tmp, HttpClientEngine$install$slambda_0(this, client, null)); } ClientEngineClosedException.prototype = Object.create(IllegalStateException.prototype); ClientEngineClosedException.prototype.constructor = ClientEngineClosedException; BodyProgress$handle$slambda.prototype = Object.create(CoroutineImpl.prototype); BodyProgress$handle$slambda.prototype.constructor = BodyProgress$handle$slambda; BodyProgress$handle$slambda_1.prototype = Object.create(CoroutineImpl.prototype); BodyProgress$handle$slambda_1.prototype.constructor = BodyProgress$handle$slambda_1; ResponseException.prototype = Object.create(IllegalStateException.prototype); ResponseException.prototype.constructor = ResponseException; RedirectResponseException.prototype = Object.create(ResponseException.prototype); RedirectResponseException.prototype.constructor = RedirectResponseException; ClientRequestException.prototype = Object.create(ResponseException.prototype); ClientRequestException.prototype.constructor = ClientRequestException; ServerResponseException.prototype = Object.create(ResponseException.prototype); ServerResponseException.prototype.constructor = ServerResponseException; addDefaultResponseValidation$lambda$slambda.prototype = Object.create(CoroutineImpl.prototype); addDefaultResponseValidation$lambda$slambda.prototype.constructor = addDefaultResponseValidation$lambda$slambda; defaultTransformers$1$content$1.prototype = Object.create(ByteArrayContent.prototype); defaultTransformers$1$content$1.prototype.constructor = defaultTransformers$1$content$1; defaultTransformers$1$content$2.prototype = Object.create(ReadChannelContent.prototype); defaultTransformers$1$content$2.prototype.constructor = defaultTransformers$1$content$2; defaultTransformers$slambda.prototype = Object.create(CoroutineImpl.prototype); defaultTransformers$slambda.prototype.constructor = defaultTransformers$slambda; defaultTransformers$slambda$slambda.prototype = Object.create(CoroutineImpl.prototype); defaultTransformers$slambda$slambda.prototype.constructor = defaultTransformers$slambda$slambda; defaultTransformers$slambda_1.prototype = Object.create(CoroutineImpl.prototype); defaultTransformers$slambda_1.prototype.constructor = defaultTransformers$slambda_1; HttpCallValidator$Companion$install$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpCallValidator$Companion$install$slambda.prototype.constructor = HttpCallValidator$Companion$install$slambda; HttpCallValidator$Companion$install$slambda_1.prototype = Object.create(CoroutineImpl.prototype); HttpCallValidator$Companion$install$slambda_1.prototype.constructor = HttpCallValidator$Companion$install$slambda_1; HttpCallValidator$Companion$install$slambda_3.prototype = Object.create(CoroutineImpl.prototype); HttpCallValidator$Companion$install$slambda_3.prototype.constructor = HttpCallValidator$Companion$install$slambda_3; $validateResponseCOROUTINE$4.prototype = Object.create(CoroutineImpl.prototype); $validateResponseCOROUTINE$4.prototype.constructor = $validateResponseCOROUTINE$4; $processExceptionCOROUTINE$5.prototype = Object.create(CoroutineImpl.prototype); $processExceptionCOROUTINE$5.prototype.constructor = $processExceptionCOROUTINE$5; HttpPlainText$Feature$install$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpPlainText$Feature$install$slambda.prototype.constructor = HttpPlainText$Feature$install$slambda; HttpPlainText$Feature$install$slambda_1.prototype = Object.create(CoroutineImpl.prototype); HttpPlainText$Feature$install$slambda_1.prototype.constructor = HttpPlainText$Feature$install$slambda_1; HttpRedirect$Feature$install$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpRedirect$Feature$install$slambda.prototype.constructor = HttpRedirect$Feature$install$slambda; $handleCallCOROUTINE$6.prototype = Object.create(CoroutineImpl.prototype); $handleCallCOROUTINE$6.prototype.constructor = $handleCallCOROUTINE$6; HttpRequestLifecycle$Feature$install$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpRequestLifecycle$Feature$install$slambda.prototype.constructor = HttpRequestLifecycle$Feature$install$slambda; HttpSend$Feature$install$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpSend$Feature$install$slambda.prototype.constructor = HttpSend$Feature$install$slambda; $executeCOROUTINE$7.prototype = Object.create(CoroutineImpl.prototype); $executeCOROUTINE$7.prototype.constructor = $executeCOROUTINE$7; SendCountExceedException.prototype = Object.create(IllegalStateException.prototype); SendCountExceedException.prototype.constructor = SendCountExceedException; HttpTimeout$Feature$install$slambda$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpTimeout$Feature$install$slambda$slambda.prototype.constructor = HttpTimeout$Feature$install$slambda$slambda; HttpTimeout$Feature$install$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpTimeout$Feature$install$slambda.prototype.constructor = HttpTimeout$Feature$install$slambda; HttpRequestTimeoutException.prototype = Object.create(CancellationException.prototype); HttpRequestTimeoutException.prototype.constructor = HttpRequestTimeoutException; DelegatedCall.prototype = Object.create(HttpClientCall.prototype); DelegatedCall.prototype.constructor = DelegatedCall; DelegatedResponse.prototype = Object.create(HttpResponse.prototype); DelegatedResponse.prototype.constructor = DelegatedResponse; WebSocketException.prototype = Object.create(IllegalStateException.prototype); WebSocketException.prototype.constructor = WebSocketException; ClientUpgradeContent.prototype = Object.create(NoContent.prototype); ClientUpgradeContent.prototype.constructor = ClientUpgradeContent; HttpRequestPipeline.prototype = Object.create(Pipeline.prototype); HttpRequestPipeline.prototype.constructor = HttpRequestPipeline; HttpSendPipeline.prototype = Object.create(Pipeline.prototype); HttpSendPipeline.prototype.constructor = HttpSendPipeline; DefaultHttpResponse.prototype = Object.create(HttpResponse.prototype); DefaultHttpResponse.prototype.constructor = DefaultHttpResponse; HttpResponsePipeline.prototype = Object.create(Pipeline.prototype); HttpResponsePipeline.prototype.constructor = HttpResponsePipeline; HttpReceivePipeline.prototype = Object.create(Pipeline.prototype); HttpReceivePipeline.prototype.constructor = HttpReceivePipeline; HttpStatement$execute$slambda.prototype = Object.create(CoroutineImpl.prototype); HttpStatement$execute$slambda.prototype.constructor = HttpStatement$execute$slambda; $executeCOROUTINE$10.prototype = Object.create(CoroutineImpl.prototype); $executeCOROUTINE$10.prototype.constructor = $executeCOROUTINE$10; $executeUnsafeCOROUTINE$11.prototype = Object.create(CoroutineImpl.prototype); $executeUnsafeCOROUTINE$11.prototype.constructor = $executeUnsafeCOROUTINE$11; $cleanupCOROUTINE$12.prototype = Object.create(CoroutineImpl.prototype); $cleanupCOROUTINE$12.prototype.constructor = $cleanupCOROUTINE$12; $readTextCOROUTINE$9.prototype = Object.create(CoroutineImpl.prototype); $readTextCOROUTINE$9.prototype.constructor = $readTextCOROUTINE$9; observable$slambda.prototype = Object.create(CoroutineImpl.prototype); observable$slambda.prototype.constructor = observable$slambda; EmptyContent.prototype = Object.create(NoContent.prototype); EmptyContent.prototype.constructor = EmptyContent; $executeCOROUTINE$13.prototype = Object.create(CoroutineImpl.prototype); $executeCOROUTINE$13.prototype.constructor = $executeCOROUTINE$13; $executeWebSocketRequestCOROUTINE$14.prototype = Object.create(CoroutineImpl.prototype); $executeWebSocketRequestCOROUTINE$14.prototype.constructor = $executeWebSocketRequestCOROUTINE$14; JsClientEngine.prototype = Object.create(HttpClientEngineBase.prototype); JsClientEngine.prototype.constructor = JsClientEngine; JsError.prototype = Object.create(Error.prototype); JsError.prototype.constructor = JsError; toRaw$slambda.prototype = Object.create(CoroutineImpl.prototype); toRaw$slambda.prototype.constructor = toRaw$slambda; $toRawCOROUTINE$15.prototype = Object.create(CoroutineImpl.prototype); $toRawCOROUTINE$15.prototype.constructor = $toRawCOROUTINE$15; channelFromStream$slambda.prototype = Object.create(CoroutineImpl.prototype); channelFromStream$slambda.prototype.constructor = channelFromStream$slambda; readBodyNode$slambda.prototype = Object.create(CoroutineImpl.prototype); readBodyNode$slambda.prototype.constructor = readBodyNode$slambda; JsWebSocketSession$lambda$slambda.prototype = Object.create(CoroutineImpl.prototype); JsWebSocketSession$lambda$slambda.prototype.constructor = JsWebSocketSession$lambda$slambda; JsWebSocketSession$lambda$slambda_1.prototype = Object.create(CoroutineImpl.prototype); JsWebSocketSession$lambda$slambda_1.prototype.constructor = JsWebSocketSession$lambda$slambda_1; JsWebSocketSession$slambda.prototype = Object.create(CoroutineImpl.prototype); JsWebSocketSession$slambda.prototype.constructor = JsWebSocketSession$slambda; //endregion function _set_manageEngine__r3e33k($this, _set____db54di) { return $this.l2g_1.p5($this, manageEngine$factory(), _set____db54di); } function _get_manageEngine__sdz8bg($this) { return $this.l2g_1.o5($this, manageEngine$factory_0()); } function HttpClient_init_$Init$(engine, userConfig, manageEngine, $this) { HttpClient.call($this, engine, userConfig); _set_manageEngine__r3e33k($this, manageEngine); return $this; } function HttpClient_init_$Create$(engine, userConfig, manageEngine) { return HttpClient_init_$Init$(engine, userConfig, manageEngine, Object.create(HttpClient.prototype)); } function HttpClient$lambda(this$0) { return function (it) { var tmp; if (!(it == null)) { tmp = cancel$default(this$0.j2g_1, null, 1, null); } return Unit_getInstance(); }; } function HttpClient$slambda(this$0, resultContinuation) { this.e2h_1 = this$0; CoroutineImpl.call(this, resultContinuation); } HttpClient$slambda.prototype.j2h = function ($this$intercept, call, $cont) { var tmp = this.k2h($this$intercept, call, $cont); tmp.ki_1 = Unit_getInstance(); tmp.li_1 = null; return tmp.si(); }; HttpClient$slambda.prototype.m7 = function (p1, p2, $cont) { var tmp = (!(p1 == null) ? isInterface(p1, PipelineContext) : false) ? p1 : THROW_CCE(); return this.j2h(tmp, isObject(p2) ? p2 : THROW_CCE(), $cont); }; HttpClient$slambda.prototype.si = function () { var suspendResult = this.ki_1; $sm: do try { var tmp = this.ii_1; switch (tmp) { case 0: this.ji_1 = 3; var tmp_0 = this.g2h_1; if (!(tmp_0 instanceof HttpClientCall)) { var message = 'Error: HttpClientCall expected, but found ' + toString(this.g2h_1) + '(' + getKClassFromExpression(this.g2h_1) + ').'; throw IllegalStateException_init_$Create$(toString(message)); } this.ii_1 = 1; suspendResult = this.e2h_1.s2g_1.t21(this.g2h_1, this.g2h_1.q2h(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.h2h_1 = suspendResult; this.i2h_1 = this.h2h_1.r2h(); this.ii_1 = 2; suspendResult = this.f2h_1.v20(this.i2h_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: ; return Unit_getInstance(); case 3: throw this.li_1; } } catch ($p) { if (this.ji_1 === 3) { throw $p; } else { this.ii_1 = this.ji_1; this.li_1 = $p; } } while (true); }; HttpClient$slambda.prototype.k2h = function ($this$intercept, call, completion) { var i = new HttpClient$slambda(this.e2h_1, completion); i.f2h_1 = $this$intercept; i.g2h_1 = call; return i; }; HttpClient$slambda.$metadata$ = classMeta('HttpClient$slambda', undefined, undefined, undefined, [2], CoroutineImpl.prototype); function HttpClient$slambda_0(this$0, resultContinuation) { var i = new HttpClient$slambda(this$0, resultContinuation); var l = function ($this$intercept, call, $cont) { return i.j2h($this$intercept, call, $cont); }; l.$arity = 2; return l; } function HttpClient$lambda_0() { return function ($this$install) { defaultTransformers($this$install); return Unit_getInstance(); }; } function $executeCOROUTINE$0(_this__u8e3s4, builder, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.a2i_1 = _this__u8e3s4; this.b2i_1 = builder; } $executeCOROUTINE$0.prototype.si = function () { var suspendResult = this.ki_1; $sm: do try { var tmp = this.ii_1; switch (tmp) { case 0: this.ji_1 = 2; this.ii_1 = 1; suspendResult = this.a2i_1.p2g_1.t21(this.b2i_1, this.b2i_1.f2i_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult instanceof HttpClientCall ? suspendResult : THROW_CCE(); case 2: throw this.li_1; } } catch ($p) { if (this.ji_1 === 2) { throw $p; } else { this.ii_1 = this.ji_1; this.li_1 = $p; } } while (true); }; $executeCOROUTINE$0.$metadata$ = classMeta('$executeCOROUTINE$0', undefined, undefined, undefined, undefined, CoroutineImpl.prototype); function HttpClient(engine, userConfig) { this.j2g_1 = engine; this.k2g_1 = userConfig; var tmp = this; var tmp$ret$0; { tmp$ret$0 = new shared$1(false); } tmp.l2g_1 = tmp$ret$0; this.m2g_1 = atomic$boolean$1(false); this.n2g_1 = Job(this.j2g_1.kk().y4(Key_getInstance())); this.o2g_1 = this.j2g_1.kk().f5(this.n2g_1); this.p2g_1 = new HttpRequestPipeline(this.k2g_1.s21()); this.q2g_1 = new HttpResponsePipeline(this.k2g_1.s21()); this.r2g_1 = new HttpSendPipeline(this.k2g_1.s21()); this.s2g_1 = new HttpReceivePipeline(this.k2g_1.s21()); this.t2g_1 = Attributes(true); this.u2g_1 = this.j2g_1.q2i(); this.v2g_1 = new HttpClientConfig(); checkCoroutinesVersion(); if (_get_manageEngine__sdz8bg(this)) { this.n2g_1.il(HttpClient$lambda(this)); } this.j2g_1.r2i(this); var tmp_0 = Phases_getInstance_0().w2i_1; this.r2g_1.x21(tmp_0, HttpClient$slambda_0(this, null)); var tmp$ret$1; { var tmp0_with = this.k2g_1; { } var tmp_1 = Feature_getInstance_2(); this.v2g_1.x2i(tmp_1, null, 2, null); var tmp_2 = Feature_getInstance(); this.v2g_1.x2i(tmp_2, null, 2, null); if (tmp0_with.z2i()) { var tmp_3 = Feature_getInstance_0(); this.v2g_1.x2i(tmp_3, null, 2, null); this.v2g_1.y2i('DefaultTransformers', HttpClient$lambda_0()); } var tmp_4 = Feature_getInstance_3(); this.v2g_1.x2i(tmp_4, null, 2, null); if (tmp0_with.a2j()) { var tmp_5 = Feature_getInstance_1(); this.v2g_1.x2i(tmp_5, null, 2, null); } var tmp0_this = this; tmp0_this.v2g_1.b2j(tmp0_with); addDefaultResponseValidation(this.v2g_1); tmp$ret$1 = this.v2g_1.r2i(this); } makeShared(this); } HttpClient.prototype.kk = function () { return this.o2g_1; }; HttpClient.prototype.c2j = function (builder, $cont) { var tmp = new $executeCOROUTINE$0(this, builder, $cont); tmp.ki_1 = Unit_getInstance(); tmp.li_1 = null; return tmp.si(); }; HttpClient.prototype.v1l = function () { var success = this.m2g_1.atomicfu$compareAndSet(false, true); if (!success) return Unit_getInstance(); var installedFeatures = this.t2g_1.i1u(get_FEATURE_INSTALLED_LIST()); { var tmp0_forEach = installedFeatures.n1u(); var tmp0_iterator = tmp0_forEach.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); { var feature = installedFeatures.i1u(element instanceof AttributeKey ? element : THROW_CCE()); if (isInterface(feature, Closeable)) { feature.v1l(); } } } } this.n2g_1.cr(); if (_get_manageEngine__sdz8bg(this)) { this.j2g_1.v1l(); } }; HttpClient.prototype.toString = function () { return 'HttpClient[' + this.j2g_1 + ']'; }; HttpClient.$metadata$ = classMeta('HttpClient', [CoroutineScope, Closeable]); function HttpClient_0(engineFactory, block) { var tmp$ret$0; { var tmp0_apply = new HttpClientConfig(); { } block(tmp0_apply); tmp$ret$0 = tmp0_apply; } var config = tmp$ret$0; var engine = engineFactory.e2j(config.d2j()); var client = HttpClient_init_$Create$(engine, config, true); var tmp = ensureNotNull(client.o2g_1.y4(Key_getInstance())); tmp.il(HttpClient$lambda_1(engine)); return client; } function HttpClient$lambda_1($engine) { return function (it) { $engine.v1l(); return Unit_getInstance(); }; } function manageEngine$factory() { return getPropertyCallableRef('manageEngine', 1, KMutableProperty1, function (receiver) { return _get_manageEngine__sdz8bg(receiver); }, function (receiver, value) { return _set_manageEngine__r3e33k(receiver, value); }); } function manageEngine$factory_0() { return getPropertyCallableRef('manageEngine', 1, KMutableProperty1, function (receiver) { return _get_manageEngine__sdz8bg(receiver); }, function (receiver, value) { return _set_manageEngine__r3e33k(receiver, value); }); } function HttpClientConfig$engineConfig$delegate$lambda() { return function ($this$shared) { return Unit_getInstance(); }; } function HttpClientConfig$install$lambda() { return function ($this$null) { return Unit_getInstance(); }; } function HttpClientConfig$install$lambda_0($previousConfigBlock, $configure) { return function ($this$null) { var tmp0_safe_receiver = $previousConfigBlock; if (tmp0_safe_receiver == null) null; else tmp0_safe_receiver($this$null); $configure(isObject($this$null) ? $this$null : THROW_CCE()); return Unit_getInstance(); }; } function HttpClientConfig$install$lambda$lambda() { return function () { return Attributes(true); }; } function HttpClientConfig$install$lambda_1($feature) { return function (scope) { var tmp = get_FEATURE_INSTALLED_LIST(); var attributes = scope.t2g_1.m1u(tmp, HttpClientConfig$install$lambda$lambda()); var config = ensureNotNull(scope.v2g_1.j2i_1.n2($feature.x())); var featureData = $feature.f2j(config); $feature.g2j(featureData, scope); attributes.l1u($feature.x(), featureData); return Unit_getInstance(); }; } function HttpClientConfig() { this.i2i_1 = sharedMap(); this.j2i_1 = sharedMap(); this.k2i_1 = sharedMap(); var tmp = this; var tmp$ret$0; { tmp$ret$0 = new shared$1(HttpClientConfig$engineConfig$delegate$lambda()); } tmp.l2i_1 = tmp$ret$0; var tmp_0 = this; var tmp$ret$1; { tmp$ret$1 = new shared$1(true); } tmp_0.m2i_1 = tmp$ret$1; var tmp_1 = this; var tmp$ret$2; { tmp$ret$2 = new shared$1(true); } tmp_1.n2i_1 = tmp$ret$2; var tmp_2 = this; var tmp$ret$3; { tmp$ret$3 = new shared$1(true); } tmp_2.o2i_1 = tmp$ret$3; var tmp_3 = this; var tmp$ret$4; { var tmp0_shared = PlatformUtils_getInstance().m1w_1; tmp$ret$4 = new shared$1(tmp0_shared); } tmp_3.p2i_1 = tmp$ret$4; } HttpClientConfig.prototype.h2j = function (_set____db54di) { return this.l2i_1.p5(this, engineConfig$factory(), _set____db54di); }; HttpClientConfig.prototype.d2j = function () { return this.l2i_1.o5(this, engineConfig$factory_0()); }; HttpClientConfig.prototype.i2j = function (_set____db54di) { return this.m2i_1.p5(this, followRedirects$factory(), _set____db54di); }; HttpClientConfig.prototype.a2j = function () { return this.m2i_1.o5(this, followRedirects$factory_0()); }; HttpClientConfig.prototype.j2j = function (_set____db54di) { return this.n2i_1.p5(this, useDefaultTransformers$factory(), _set____db54di); }; HttpClientConfig.prototype.z2i = function () { return this.n2i_1.o5(this, useDefaultTransformers$factory_0()); }; HttpClientConfig.prototype.k2j = function (_set____db54di) { return this.o2i_1.p5(this, expectSuccess$factory(), _set____db54di); }; HttpClientConfig.prototype.l2j = function () { return this.o2i_1.o5(this, expectSuccess$factory_0()); }; HttpClientConfig.prototype.m2j = function (_set____db54di) { return this.p2i_1.p5(this, developmentMode$factory(), _set____db54di); }; HttpClientConfig.prototype.s21 = function () { return this.p2i_1.o5(this, developmentMode$factory_0()); }; HttpClientConfig.prototype.n2j = function (feature, configure) { var previousConfigBlock = this.j2i_1.n2(feature.x()); { var tmp0_set = this.j2i_1; var tmp1_set = feature.x(); tmp0_set.c(tmp1_set, HttpClientConfig$install$lambda_0(previousConfigBlock, configure)); } if (this.i2i_1.h2(feature.x())) return Unit_getInstance(); { var tmp2_set = this.i2i_1; var tmp3_set = feature.x(); tmp2_set.c(tmp3_set, HttpClientConfig$install$lambda_1(feature)); } }; HttpClientConfig.prototype.x2i = function (feature, configure, $mask0, $handler) { if (!(($mask0 & 2) === 0)) { configure = HttpClientConfig$install$lambda(); } return this.n2j(feature, configure); }; HttpClientConfig.prototype.y2i = function (key, block) { { var tmp0_set = this.k2i_1; tmp0_set.c(key, block); } }; HttpClientConfig.prototype.r2i = function (client) { { var tmp0_forEach = this.i2i_1.p2(); var tmp0_iterator = tmp0_forEach.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); { var tmp$ret$0; { { } element(client); tmp$ret$0 = client; } } } } { var tmp1_forEach = this.k2i_1.p2(); var tmp0_iterator_0 = tmp1_forEach.g(); while (tmp0_iterator_0.h()) { var element_0 = tmp0_iterator_0.i(); { var tmp$ret$1; { { } element_0(client); tmp$ret$1 = client; } } } } }; HttpClientConfig.prototype.b2j = function (other) { this.i2j(other.a2j()); this.j2j(other.z2i()); this.k2j(other.l2j()); var tmp0_this = this; { var tmp0_plusAssign = tmp0_this.i2i_1; var tmp1_plusAssign = other.i2i_1; tmp0_plusAssign.e4(tmp1_plusAssign); } var tmp1_this = this; { var tmp2_plusAssign = tmp1_this.j2i_1; var tmp3_plusAssign = other.j2i_1; tmp2_plusAssign.e4(tmp3_plusAssign); } var tmp2_this = this; { var tmp4_plusAssign = tmp2_this.k2i_1; var tmp5_plusAssign = other.k2i_1; tmp4_plusAssign.e4(tmp5_plusAssign); } }; HttpClientConfig.$metadata$ = classMeta('HttpClientConfig'); function engineConfig$factory() { return getPropertyCallableRef('engineConfig', 1, KMutableProperty1, function (receiver) { return receiver.d2j(); }, function (receiver, value) { return receiver.h2j(value); }); } function engineConfig$factory_0() { return getPropertyCallableRef('engineConfig', 1, KMutableProperty1, function (receiver) { return receiver.d2j(); }, function (receiver, value) { return receiver.h2j(value); }); } function followRedirects$factory() { return getPropertyCallableRef('followRedirects', 1, KMutableProperty1, function (receiver) { return receiver.a2j(); }, function (receiver, value) { return receiver.i2j(value); }); } function followRedirects$factory_0() { return getPropertyCallableRef('followRedirects', 1, KMutableProperty1, function (receiver) { return receiver.a2j(); }, function (receiver, value) { return receiver.i2j(value); }); } function useDefaultTransformers$factory() { return getPropertyCallableRef('useDefaultTransformers', 1, KMutableProperty1, function (receiver) { return receiver.z2i(); }, function (receiver, value) { return receiver.j2j(value); }); } function useDefaultTransformers$factory_0() { return getPropertyCallableRef('useDefaultTransformers', 1, KMutableProperty1, function (receiver) { return receiver.z2i(); }, function (receiver, value) { return receiver.j2j(value); }); } function expectSuccess$factory() { return getPropertyCallableRef('expectSuccess', 1, KMutableProperty1, function (receiver) { return receiver.l2j(); }, function (receiver, value) { return receiver.k2j(value); }); } function expectSuccess$factory_0() { return getPropertyCallableRef('expectSuccess', 1, KMutableProperty1, function (receiver) { return receiver.l2j(); }, function (receiver, value) { return receiver.k2j(value); }); } function developmentMode$factory() { return getPropertyCallableRef('developmentMode', 1, KMutableProperty1, function (receiver) { return receiver.s21(); }, function (receiver, value) { return receiver.m2j(value); }); } function developmentMode$factory_0() { return getPropertyCallableRef('developmentMode', 1, KMutableProperty1, function (receiver) { return receiver.s21(); }, function (receiver, value) { return receiver.m2j(value); }); } function Companion() { Companion_instance = this; this.o2j_1 = new AttributeKey('CustomResponse'); } Companion.prototype.p2j = function () { return this.o2j_1; }; Companion.$metadata$ = objectMeta('Companion'); var Companion_instance; function Companion_getInstance_9() { if (Companion_instance == null) new Companion(); return Companion_instance; } function $receiveCOROUTINE$1(_this__u8e3s4, info, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.y2j_1 = _this__u8e3s4; this.z2j_1 = info; } $receiveCOROUTINE$1.prototype.si = function () { var suspendResult = this.ki_1; $sm: do try { var tmp = this.ii_1; switch (tmp) { case 0: this.ji_1 = 10; this.ii_1 = 1; continue $sm; case 1: this.ii_1 = 2; continue $sm; case 2: this.ji_1 = 9; this.ji_1 = 8; if (instanceOf_0(this.y2j_1.q2h(), this.z2j_1.x22())) { this.a2k_1 = this.y2j_1.q2h(); this.ji_1 = 10; this.ii_1 = 7; continue $sm; } else { this.ii_1 = 3; continue $sm; } break; case 3: if (!this.y2j_1.g2k() ? !this.y2j_1.l2h_1.atomicfu$compareAndSet(false, true) : false) { throw new DoubleReceiveException(this.y2j_1); } this.b2k_1 = this.y2j_1.h2k().j1u(Companion_getInstance_9().o2j_1); if (this.b2k_1 == null) { this.ii_1 = 4; suspendResult = this.y2j_1.i2k(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.c2k_1 = this.b2k_1; this.ii_1 = 5; continue $sm; } break; case 4: this.c2k_1 = suspendResult; this.ii_1 = 5; continue $sm; case 5: this.d2k_1 = this.c2k_1; this.e2k_1 = HttpResponseContainer_init_$Create$(this.z2j_1, this.d2k_1); var tmp_0 = this; var tmp1_elvis_lhs = this.y2j_1.j2k(); var tmp_1; if (tmp1_elvis_lhs == null) { var tmp0_error = 'Failed to receive call(' + this.y2j_1 + ') in different native thread.'; throw IllegalStateException_init_$Create$(toString(tmp0_error)); } else { tmp_1 = tmp1_elvis_lhs; } tmp_0.f2k_1 = tmp_1; this.ii_1 = 6; suspendResult = this.f2k_1.q2g_1.t21(this.y2j_1, this.e2k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var ARGUMENT = suspendResult; var result = ARGUMENT.l2k_1; if (!instanceOf_0(result, this.z2j_1.x22())) { var from = getKClassFromExpression(result); var to = this.z2j_1.x22(); throw new NoTransformationFoundException(this.y2j_1.q2h(), from, to); } this.a2k_1 = result; this.ji_1 = 10; this.ii_1 = 7; var tmp_2 = this; continue $sm; case 7: var tmp_3 = this.a2k_1; complete(this.y2j_1.q2h()); return tmp_3; case 8: this.ji_1 = 9; var tmp_4 = this.li_1; if (tmp_4 instanceof Error) { var cause = this.li_1; var tmp_5 = this; cancel(this.y2j_1.q2h(), 'Receive failed', cause); throw cause; } else { throw this.li_1; } break; case 9: this.ji_1 = 10; var t = this.li_1; complete(this.y2j_1.q2h()); throw t; case 10: throw this.li_1; case 11: complete(this.y2j_1.q2h()); return Unit_getInstance(); } } catch ($p) { if (this.ji_1 === 10) { throw $p; } else { this.ii_1 = this.ji_1; this.li_1 = $p; } } while (true); }; $receiveCOROUTINE$1.$metadata$ = classMeta('$receiveCOROUTINE$1', undefined, undefined, undefined, undefined, CoroutineImpl.prototype); function HttpClientCall(client) { Companion_getInstance_9(); this.l2h_1 = atomic$boolean$1(false); this.m2h_1 = threadLocal(client); this.p2h_1 = false; } HttpClientCall.prototype.j2k = function () { return this.m2h_1.o5(this, client$factory()); }; HttpClientCall.prototype.kk = function () { return this.q2h().kk(); }; HttpClientCall.prototype.h2k = function () { return this.m2k().h2k(); }; HttpClientCall.prototype.n2k = function (_set____db54di) { this.n2h_1 = _set____db54di; }; HttpClientCall.prototype.m2k = function () { var tmp = this.n2h_1; if (!(tmp == null)) return tmp; else { throwUninitializedPropertyAccessException('request'); } }; HttpClientCall.prototype.o2k = function (_set____db54di) { this.o2h_1 = _set____db54di; }; HttpClientCall.prototype.q2h = function () { var tmp = this.o2h_1; if (!(tmp == null)) return tmp; else { throwUninitializedPropertyAccessException('response'); } }; HttpClientCall.prototype.g2k = function () { return this.p2h_1; }; HttpClientCall.prototype.i2k = function ($cont) { return this.q2h().j25(); }; HttpClientCall.prototype.p2k = function (info, $cont) { var tmp = new $receiveCOROUTINE$1(this, info, $cont); tmp.ki_1 = Unit_getInstance(); tmp.li_1 = null; return tmp.si(); }; HttpClientCall.prototype.toString = function () { return 'HttpClientCall[' + this.m2k().q2k() + ', ' + this.q2h().r2k() + ']'; }; HttpClientCall.$metadata$ = classMeta('HttpClientCall', [CoroutineScope]); function HttpClientCall_0(client, requestData, responseData) { var tmp$ret$0; { var tmp0_apply = new HttpClientCall(client); { } { tmp0_apply.n2h_1 = new DefaultHttpRequest(tmp0_apply, requestData); tmp0_apply.o2h_1 = new DefaultHttpResponse(tmp0_apply, responseData); var tmp = responseData.w2k_1; if (!isInterface(tmp, ByteReadChannel)) { tmp0_apply.h2k().l1u(Companion_getInstance_9().o2j_1, responseData.w2k_1); } } tmp$re