@xiuper/mpp-core 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.js +7836 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  3. package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +1241 -0
  4. package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map +1 -0
  5. package/Xiuper-mpp-codegraph.js +1471 -0
  6. package/Xiuper-mpp-codegraph.js.map +1 -0
  7. package/annotations.js +15 -0
  8. package/annotations.js.map +1 -0
  9. package/autodev-mpp-core.d.ts +1312 -0
  10. package/autodev-mpp-core.js +86483 -0
  11. package/autodev-mpp-core.js.map +1 -0
  12. package/kaml.js +3387 -0
  13. package/kaml.js.map +1 -0
  14. package/koog-agents-agents-core.js +22927 -0
  15. package/koog-agents-agents-core.js.map +1 -0
  16. package/koog-agents-agents-ext.js +15 -0
  17. package/koog-agents-agents-ext.js.map +1 -0
  18. package/koog-agents-agents-features-agents-features-event-handler.js +15 -0
  19. package/koog-agents-agents-features-agents-features-event-handler.js.map +1 -0
  20. package/koog-agents-agents-features-agents-features-memory.js +15 -0
  21. package/koog-agents-agents-features-agents-features-memory.js.map +1 -0
  22. package/koog-agents-agents-features-agents-features-opentelemetry.js +15 -0
  23. package/koog-agents-agents-features-agents-features-opentelemetry.js.map +1 -0
  24. package/koog-agents-agents-features-agents-features-snapshot.js +15 -0
  25. package/koog-agents-agents-features-agents-features-snapshot.js.map +1 -0
  26. package/koog-agents-agents-features-agents-features-tokenizer.js +15 -0
  27. package/koog-agents-agents-features-agents-features-tokenizer.js.map +1 -0
  28. package/koog-agents-agents-features-agents-features-trace.js +15 -0
  29. package/koog-agents-agents-features-agents-features-trace.js.map +1 -0
  30. package/koog-agents-agents-mcp.js +15 -0
  31. package/koog-agents-agents-mcp.js.map +1 -0
  32. package/koog-agents-agents-tools.js +322 -0
  33. package/koog-agents-agents-tools.js.map +1 -0
  34. package/koog-agents-agents-utils.js +232 -0
  35. package/koog-agents-agents-utils.js.map +1 -0
  36. package/koog-embeddings-embeddings-base.js +15 -0
  37. package/koog-embeddings-embeddings-base.js.map +1 -0
  38. package/koog-embeddings-embeddings-llm.js +15 -0
  39. package/koog-embeddings-embeddings-llm.js.map +1 -0
  40. package/koog-http-client-http-client-core.js +57 -0
  41. package/koog-http-client-http-client-core.js.map +1 -0
  42. package/koog-http-client-http-client-ktor.js +703 -0
  43. package/koog-http-client-http-client-ktor.js.map +1 -0
  44. package/koog-koog-agents.js +15 -0
  45. package/koog-koog-agents.js.map +1 -0
  46. package/koog-prompt-prompt-cache-prompt-cache-files.js +15 -0
  47. package/koog-prompt-prompt-cache-prompt-cache-files.js.map +1 -0
  48. package/koog-prompt-prompt-cache-prompt-cache-model.js +15 -0
  49. package/koog-prompt-prompt-cache-prompt-cache-model.js.map +1 -0
  50. package/koog-prompt-prompt-cache-prompt-cache-redis.js +15 -0
  51. package/koog-prompt-prompt-cache-prompt-cache-redis.js.map +1 -0
  52. package/koog-prompt-prompt-executor-prompt-executor-cached.js +15 -0
  53. package/koog-prompt-prompt-executor-prompt-executor-cached.js.map +1 -0
  54. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +4991 -0
  55. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js.map +1 -0
  56. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js +15 -0
  57. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js.map +1 -0
  58. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js +15 -0
  59. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js.map +1 -0
  60. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +1249 -0
  61. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js.map +1 -0
  62. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +4675 -0
  63. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js.map +1 -0
  64. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js +15 -0
  65. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js.map +1 -0
  66. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +2343 -0
  67. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js.map +1 -0
  68. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +6613 -0
  69. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js.map +1 -0
  70. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +19901 -0
  71. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js.map +1 -0
  72. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +2313 -0
  73. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js.map +1 -0
  74. package/koog-prompt-prompt-executor-prompt-executor-clients.js +222 -0
  75. package/koog-prompt-prompt-executor-prompt-executor-clients.js.map +1 -0
  76. package/koog-prompt-prompt-executor-prompt-executor-llms-all.js +70 -0
  77. package/koog-prompt-prompt-executor-prompt-executor-llms-all.js.map +1 -0
  78. package/koog-prompt-prompt-executor-prompt-executor-llms.js +134 -0
  79. package/koog-prompt-prompt-executor-prompt-executor-llms.js.map +1 -0
  80. package/koog-prompt-prompt-executor-prompt-executor-model.js +42 -0
  81. package/koog-prompt-prompt-executor-prompt-executor-model.js.map +1 -0
  82. package/koog-prompt-prompt-llm.js +1710 -0
  83. package/koog-prompt-prompt-llm.js.map +1 -0
  84. package/koog-prompt-prompt-markdown.js +122 -0
  85. package/koog-prompt-prompt-markdown.js.map +1 -0
  86. package/koog-prompt-prompt-model.js +5848 -0
  87. package/koog-prompt-prompt-model.js.map +1 -0
  88. package/koog-prompt-prompt-structure.js +1513 -0
  89. package/koog-prompt-prompt-structure.js.map +1 -0
  90. package/koog-prompt-prompt-tokenizer.js +15 -0
  91. package/koog-prompt-prompt-tokenizer.js.map +1 -0
  92. package/koog-prompt-prompt-xml.js +15 -0
  93. package/koog-prompt-prompt-xml.js.map +1 -0
  94. package/koog-rag-rag-base.js +15 -0
  95. package/koog-rag-rag-base.js.map +1 -0
  96. package/koog-rag-vector-storage.js +15 -0
  97. package/koog-rag-vector-storage.js.map +1 -0
  98. package/koog-utils.js +63 -0
  99. package/koog-utils.js.map +1 -0
  100. package/kotlin-kotlin-stdlib.js +18965 -0
  101. package/kotlin-kotlin-stdlib.js.map +1 -0
  102. package/kotlin-logging.js +509 -0
  103. package/kotlin-logging.js.map +1 -0
  104. package/kotlin-sdk-kotlin-sdk-client.js +1340 -0
  105. package/kotlin-sdk-kotlin-sdk-client.js.map +1 -0
  106. package/kotlin-sdk-kotlin-sdk-core.js +15195 -0
  107. package/kotlin-sdk-kotlin-sdk-core.js.map +1 -0
  108. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  109. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  110. package/kotlinx-atomicfu.js +259 -0
  111. package/kotlinx-atomicfu.js.map +1 -0
  112. package/kotlinx-coroutines-core.js +13742 -0
  113. package/kotlinx-coroutines-core.js.map +1 -0
  114. package/kotlinx-io-kotlinx-io-bytestring.js +214 -0
  115. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
  116. package/kotlinx-io-kotlinx-io-core.js +2892 -0
  117. package/kotlinx-io-kotlinx-io-core.js.map +1 -0
  118. package/kotlinx-serialization-kotlinx-serialization-core.js +6563 -0
  119. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  120. package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
  121. package/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
  122. package/kotlinx-serialization-kotlinx-serialization-json.js +5927 -0
  123. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  124. package/ktor-ktor-client-content-negotiation.js +775 -0
  125. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  126. package/ktor-ktor-client-core.js +11110 -0
  127. package/ktor-ktor-client-core.js.map +1 -0
  128. package/ktor-ktor-client-logging.js +15 -0
  129. package/ktor-ktor-client-logging.js.map +1 -0
  130. package/ktor-ktor-events.js +126 -0
  131. package/ktor-ktor-events.js.map +1 -0
  132. package/ktor-ktor-http-cio.js +4257 -0
  133. package/ktor-ktor-http-cio.js.map +1 -0
  134. package/ktor-ktor-http.js +3671 -0
  135. package/ktor-ktor-http.js.map +1 -0
  136. package/ktor-ktor-io.js +4114 -0
  137. package/ktor-ktor-io.js.map +1 -0
  138. package/ktor-ktor-network.js +1399 -0
  139. package/ktor-ktor-network.js.map +1 -0
  140. package/ktor-ktor-serialization-kotlinx-json.js +67 -0
  141. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  142. package/ktor-ktor-serialization-kotlinx.js +881 -0
  143. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  144. package/ktor-ktor-serialization.js +388 -0
  145. package/ktor-ktor-serialization.js.map +1 -0
  146. package/ktor-ktor-server-cio.js +3735 -0
  147. package/ktor-ktor-server-cio.js.map +1 -0
  148. package/ktor-ktor-server-core.js +8696 -0
  149. package/ktor-ktor-server-core.js.map +1 -0
  150. package/ktor-ktor-server-sse.js +668 -0
  151. package/ktor-ktor-server-sse.js.map +1 -0
  152. package/ktor-ktor-server-websockets.js +15 -0
  153. package/ktor-ktor-server-websockets.js.map +1 -0
  154. package/ktor-ktor-sse.js +161 -0
  155. package/ktor-ktor-sse.js.map +1 -0
  156. package/ktor-ktor-utils.js +3589 -0
  157. package/ktor-ktor-utils.js.map +1 -0
  158. package/ktor-ktor-websocket-serialization.js +15 -0
  159. package/ktor-ktor-websocket-serialization.js.map +1 -0
  160. package/ktor-ktor-websockets.js +450 -0
  161. package/ktor-ktor-websockets.js.map +1 -0
  162. package/markdown.js +5174 -0
  163. package/markdown.js.map +1 -0
  164. package/okio-parent-okio.js +2628 -0
  165. package/okio-parent-okio.js.map +1 -0
  166. package/package.json +18 -0
  167. package/snakeyaml-engine-kmp.js +7079 -0
  168. package/snakeyaml-engine-kmp.js.map +1 -0
  169. package/urlencoder-urlencoder-lib.js +322 -0
  170. package/urlencoder-urlencoder-lib.js.map +1 -0
  171. package/xiuper-mpp-core.d.ts +1312 -0
  172. package/xiuper-mpp-core.js +86483 -0
  173. package/xiuper-mpp-core.js.map +1 -0
@@ -0,0 +1,703 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './ktor-ktor-client-core.js', './kotlin-kotlin-stdlib.js', './ktor-ktor-sse.js', './ktor-ktor-http.js', './ktor-ktor-utils.js', './kotlinx-coroutines-core.js', './koog-utils.js', './koog-http-client-http-client-core.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./ktor-ktor-client-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-sse.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-utils.js'), require('./kotlinx-coroutines-core.js'), require('./koog-utils.js'), require('./koog-http-client-http-client-core.js'));
6
+ else {
7
+ if (typeof globalThis['ktor-ktor-client-core'] === 'undefined') {
8
+ throw new Error("Error loading module 'koog-http-client-http-client-ktor'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'koog-http-client-http-client-ktor'.");
9
+ }
10
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
11
+ throw new Error("Error loading module 'koog-http-client-http-client-ktor'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'koog-http-client-http-client-ktor'.");
12
+ }
13
+ if (typeof globalThis['ktor-ktor-sse'] === 'undefined') {
14
+ throw new Error("Error loading module 'koog-http-client-http-client-ktor'. Its dependency 'ktor-ktor-sse' was not found. Please, check whether 'ktor-ktor-sse' is loaded prior to 'koog-http-client-http-client-ktor'.");
15
+ }
16
+ if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
17
+ throw new Error("Error loading module 'koog-http-client-http-client-ktor'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'koog-http-client-http-client-ktor'.");
18
+ }
19
+ if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
20
+ throw new Error("Error loading module 'koog-http-client-http-client-ktor'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'koog-http-client-http-client-ktor'.");
21
+ }
22
+ if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
23
+ throw new Error("Error loading module 'koog-http-client-http-client-ktor'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'koog-http-client-http-client-ktor'.");
24
+ }
25
+ if (typeof globalThis['koog-utils'] === 'undefined') {
26
+ throw new Error("Error loading module 'koog-http-client-http-client-ktor'. Its dependency 'koog-utils' was not found. Please, check whether 'koog-utils' is loaded prior to 'koog-http-client-http-client-ktor'.");
27
+ }
28
+ if (typeof globalThis['koog-http-client-http-client-core'] === 'undefined') {
29
+ throw new Error("Error loading module 'koog-http-client-http-client-ktor'. Its dependency 'koog-http-client-http-client-core' was not found. Please, check whether 'koog-http-client-http-client-core' is loaded prior to 'koog-http-client-http-client-ktor'.");
30
+ }
31
+ globalThis['koog-http-client-http-client-ktor'] = factory(typeof globalThis['koog-http-client-http-client-ktor'] === 'undefined' ? {} : globalThis['koog-http-client-http-client-ktor'], globalThis['ktor-ktor-client-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-sse'], globalThis['ktor-ktor-http'], globalThis['ktor-ktor-utils'], globalThis['kotlinx-coroutines-core'], globalThis['koog-utils'], globalThis['koog-http-client-http-client-core']);
32
+ }
33
+ }(function (_, kotlin_io_ktor_ktor_client_core, kotlin_kotlin, kotlin_io_ktor_ktor_sse, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_utils, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_ai_koog_utils, kotlin_ai_koog_http_client_core) {
34
+ 'use strict';
35
+ //region block: imports
36
+ var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.b1;
37
+ var VOID = kotlin_kotlin.$_$.h;
38
+ var CoroutineImpl = kotlin_kotlin.$_$.tc;
39
+ var Unit_instance = kotlin_kotlin.$_$.h6;
40
+ var protoOf = kotlin_kotlin.$_$.we;
41
+ var THROW_CCE = kotlin_kotlin.$_$.zk;
42
+ var ServerSentEvent = kotlin_io_ktor_ktor_sse.$_$.a;
43
+ var isCharSequence = kotlin_kotlin.$_$.fe;
44
+ var trim = kotlin_kotlin.$_$.yj;
45
+ var toString = kotlin_kotlin.$_$.af;
46
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.dc;
47
+ var initMetadataForLambda = kotlin_kotlin.$_$.zd;
48
+ var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
49
+ var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
50
+ var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
51
+ var accept = kotlin_io_ktor_ktor_client_core.$_$.s;
52
+ var headers = kotlin_io_ktor_ktor_client_core.$_$.t;
53
+ var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.c1;
54
+ var setBody = kotlin_io_ktor_ktor_client_core.$_$.w;
55
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.t5;
56
+ var arrayOf = kotlin_kotlin.$_$.nl;
57
+ var createKType = kotlin_kotlin.$_$.c;
58
+ var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.x;
59
+ var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.b;
60
+ var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.m;
61
+ var equals = kotlin_kotlin.$_$.md;
62
+ var FunctionAdapter = kotlin_kotlin.$_$.zc;
63
+ var isInterface = kotlin_kotlin.$_$.je;
64
+ var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
65
+ var hashCode = kotlin_kotlin.$_$.td;
66
+ var initMetadataForClass = kotlin_kotlin.$_$.ud;
67
+ var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c2;
68
+ var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.r;
69
+ var url = kotlin_io_ktor_ktor_client_core.$_$.x;
70
+ var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.z;
71
+ var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.f;
72
+ var body = kotlin_io_ktor_ktor_client_core.$_$.a;
73
+ var isSuccess = kotlin_io_ktor_ktor_http.$_$.d2;
74
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
75
+ var sse = kotlin_io_ktor_ktor_client_core.$_$.d;
76
+ var Exception = kotlin_kotlin.$_$.ok;
77
+ var readRawBytes = kotlin_io_ktor_ktor_client_core.$_$.g;
78
+ var SSEClientException = kotlin_io_ktor_ktor_client_core.$_$.o;
79
+ var decodeToString = kotlin_kotlin.$_$.mg;
80
+ var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
81
+ var get_SuitableForIO = kotlin_ai_koog_utils.$_$.a;
82
+ var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
83
+ var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
84
+ var sse$default = kotlin_ai_koog_http_client_core.$_$.b;
85
+ var KoogHttpClient = kotlin_ai_koog_http_client_core.$_$.a;
86
+ //endregion
87
+ //region block: pre-declaration
88
+ initMetadataForLambda(KtorKoogHttpClient$sse$slambda$slambda$slambda, CoroutineImpl, VOID, [1]);
89
+ initMetadataForLambda(KtorKoogHttpClient$sse$slambda$slambda, CoroutineImpl, VOID, [1]);
90
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
91
+ initMetadataForLambda(KtorKoogHttpClient$post$slambda, CoroutineImpl, VOID, [1]);
92
+ initMetadataForLambda(KtorKoogHttpClient$sse$slambda, CoroutineImpl, VOID, [1]);
93
+ initMetadataForClass(KtorKoogHttpClient, 'KtorKoogHttpClient', VOID, VOID, [KoogHttpClient], [4]);
94
+ //endregion
95
+ function fromKtorClient(_this__u8e3s4, clientName, logger, baseClient, configurer) {
96
+ baseClient = baseClient === VOID ? HttpClient() : baseClient;
97
+ return new KtorKoogHttpClient(clientName, logger, baseClient, configurer);
98
+ }
99
+ function KtorKoogHttpClient$post$slambda$lambda($errorMessage) {
100
+ return function () {
101
+ return $errorMessage;
102
+ };
103
+ }
104
+ function KtorKoogHttpClient$sse$slambda$slambda$slambda($dataFilter, $decodeStreamingResponse, $processStreamingChunk, $this_flow, resultContinuation) {
105
+ this.l8a_1 = $dataFilter;
106
+ this.m8a_1 = $decodeStreamingResponse;
107
+ this.n8a_1 = $processStreamingChunk;
108
+ this.o8a_1 = $this_flow;
109
+ CoroutineImpl.call(this, resultContinuation);
110
+ }
111
+ protoOf(KtorKoogHttpClient$sse$slambda$slambda$slambda).b7x = function (event, $completion) {
112
+ var tmp = this.c7x(event, $completion);
113
+ tmp.z9_1 = Unit_instance;
114
+ tmp.aa_1 = null;
115
+ return tmp.fa();
116
+ };
117
+ protoOf(KtorKoogHttpClient$sse$slambda$slambda$slambda).ra = function (p1, $completion) {
118
+ return this.b7x(p1 instanceof ServerSentEvent ? p1 : THROW_CCE(), $completion);
119
+ };
120
+ protoOf(KtorKoogHttpClient$sse$slambda$slambda$slambda).fa = function () {
121
+ var suspendResult = this.z9_1;
122
+ $sm: do
123
+ try {
124
+ var tmp = this.x9_1;
125
+ switch (tmp) {
126
+ case 0:
127
+ this.y9_1 = 3;
128
+ var tmp_0 = this;
129
+ var this_0 = this.p8a_1;
130
+ var tmp_1;
131
+ if (this.l8a_1(this_0.k63_1)) {
132
+ tmp_1 = this_0;
133
+ } else {
134
+ tmp_1 = null;
135
+ }
136
+
137
+ var tmp0_safe_receiver = tmp_1;
138
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k63_1;
139
+ var tmp_2;
140
+ if (tmp1_safe_receiver == null) {
141
+ tmp_2 = null;
142
+ } else {
143
+ tmp_2 = toString(trim(isCharSequence(tmp1_safe_receiver) ? tmp1_safe_receiver : THROW_CCE()));
144
+ }
145
+
146
+ var tmp2_safe_receiver = tmp_2;
147
+ var tmp_3;
148
+ if (tmp2_safe_receiver == null) {
149
+ tmp_3 = null;
150
+ } else {
151
+ tmp_3 = this.m8a_1(tmp2_safe_receiver);
152
+ }
153
+
154
+ var tmp3_safe_receiver = tmp_3;
155
+ var tmp_4;
156
+ if (tmp3_safe_receiver == null) {
157
+ tmp_4 = null;
158
+ } else {
159
+ tmp_4 = this.n8a_1(tmp3_safe_receiver);
160
+ }
161
+
162
+ tmp_0.q8a_1 = tmp_4;
163
+ if (this.q8a_1 == null) {
164
+ this.r8a_1 = null;
165
+ this.x9_1 = 2;
166
+ continue $sm;
167
+ } else {
168
+ var tmp_5 = this;
169
+ tmp_5.s8a_1 = this.q8a_1;
170
+ this.t8a_1 = this.s8a_1;
171
+ var tmp_6 = this;
172
+ tmp_6.u8a_1 = this.t8a_1;
173
+ this.v8a_1 = this.u8a_1;
174
+ this.x9_1 = 1;
175
+ suspendResult = this.o8a_1.b2l(this.v8a_1, this);
176
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
177
+ return suspendResult;
178
+ }
179
+ continue $sm;
180
+ }
181
+
182
+ case 1:
183
+ var tmp_7 = this;
184
+ tmp_7.r8a_1 = Unit_instance;
185
+ this.x9_1 = 2;
186
+ continue $sm;
187
+ case 2:
188
+ return Unit_instance;
189
+ case 3:
190
+ throw this.aa_1;
191
+ }
192
+ } catch ($p) {
193
+ var e = $p;
194
+ if (this.y9_1 === 3) {
195
+ throw e;
196
+ } else {
197
+ this.x9_1 = this.y9_1;
198
+ this.aa_1 = e;
199
+ }
200
+ }
201
+ while (true);
202
+ };
203
+ protoOf(KtorKoogHttpClient$sse$slambda$slambda$slambda).c7x = function (event, completion) {
204
+ var i = new KtorKoogHttpClient$sse$slambda$slambda$slambda(this.l8a_1, this.m8a_1, this.n8a_1, this.o8a_1, completion);
205
+ i.p8a_1 = event;
206
+ return i;
207
+ };
208
+ function KtorKoogHttpClient$sse$slambda$slambda$slambda_0($dataFilter, $decodeStreamingResponse, $processStreamingChunk, $this_flow, resultContinuation) {
209
+ var i = new KtorKoogHttpClient$sse$slambda$slambda$slambda($dataFilter, $decodeStreamingResponse, $processStreamingChunk, $this_flow, resultContinuation);
210
+ var l = function (event, $completion) {
211
+ return i.b7x(event, $completion);
212
+ };
213
+ l.$arity = 1;
214
+ return l;
215
+ }
216
+ function KtorKoogHttpClient$sse$slambda$lambda$lambda($this$headers) {
217
+ $this$headers.n4z(HttpHeaders_getInstance().p59_1, 'no-cache');
218
+ $this$headers.n4z(HttpHeaders_getInstance().q59_1, 'keep-alive');
219
+ return Unit_instance;
220
+ }
221
+ function KtorKoogHttpClient$sse$slambda$lambda($requestBodyType, $request) {
222
+ return function ($this$sse) {
223
+ $this$sse.x65_1 = Companion_getInstance().m5d_1;
224
+ accept($this$sse, Text_getInstance().u58_1);
225
+ headers($this$sse, KtorKoogHttpClient$sse$slambda$lambda$lambda);
226
+ var tmp;
227
+ if ($requestBodyType.equals(PrimitiveClasses_getInstance().fd())) {
228
+ // Inline function 'io.ktor.client.request.setBody' call
229
+ var body = typeof $request === 'string' ? $request : THROW_CCE();
230
+ if (body == null) {
231
+ $this$sse.z65_1 = NullBody_instance;
232
+ // Inline function 'io.ktor.util.reflect.typeInfo' call
233
+ var tmp_0 = PrimitiveClasses_getInstance().fd();
234
+ // Inline function 'io.ktor.util.reflect.typeOfOrNull' call
235
+ var tmp_1;
236
+ try {
237
+ tmp_1 = createKType(PrimitiveClasses_getInstance().fd(), arrayOf([]), false);
238
+ } catch ($p) {
239
+ var tmp_2;
240
+ if ($p instanceof Error) {
241
+ var _unused_var__etf5q3 = $p;
242
+ tmp_2 = null;
243
+ } else {
244
+ throw $p;
245
+ }
246
+ tmp_1 = tmp_2;
247
+ }
248
+ var tmp$ret$0 = tmp_1;
249
+ var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$0);
250
+ $this$sse.j6c(tmp$ret$1);
251
+ } else {
252
+ if (body instanceof OutgoingContent) {
253
+ $this$sse.z65_1 = body;
254
+ $this$sse.j6c(null);
255
+ } else {
256
+ $this$sse.z65_1 = body;
257
+ // Inline function 'io.ktor.util.reflect.typeInfo' call
258
+ var tmp_3 = PrimitiveClasses_getInstance().fd();
259
+ // Inline function 'io.ktor.util.reflect.typeOfOrNull' call
260
+ var tmp_4;
261
+ try {
262
+ tmp_4 = createKType(PrimitiveClasses_getInstance().fd(), arrayOf([]), false);
263
+ } catch ($p) {
264
+ var tmp_5;
265
+ if ($p instanceof Error) {
266
+ var _unused_var__etf5q3_0 = $p;
267
+ tmp_5 = null;
268
+ } else {
269
+ throw $p;
270
+ }
271
+ tmp_4 = tmp_5;
272
+ }
273
+ var tmp$ret$2 = tmp_4;
274
+ var tmp$ret$3 = new TypeInfo(tmp_3, tmp$ret$2);
275
+ $this$sse.j6c(tmp$ret$3);
276
+ }
277
+ }
278
+ tmp = Unit_instance;
279
+ } else {
280
+ setBody($this$sse, $request, new TypeInfo($requestBodyType));
281
+ tmp = Unit_instance;
282
+ }
283
+ return Unit_instance;
284
+ };
285
+ }
286
+ function KtorKoogHttpClient$sse$slambda$slambda($dataFilter, $decodeStreamingResponse, $processStreamingChunk, $this_flow, resultContinuation) {
287
+ this.e8b_1 = $dataFilter;
288
+ this.f8b_1 = $decodeStreamingResponse;
289
+ this.g8b_1 = $processStreamingChunk;
290
+ this.h8b_1 = $this_flow;
291
+ CoroutineImpl.call(this, resultContinuation);
292
+ }
293
+ protoOf(KtorKoogHttpClient$sse$slambda$slambda).n7y = function ($this$sse, $completion) {
294
+ var tmp = this.o7y($this$sse, $completion);
295
+ tmp.z9_1 = Unit_instance;
296
+ tmp.aa_1 = null;
297
+ return tmp.fa();
298
+ };
299
+ protoOf(KtorKoogHttpClient$sse$slambda$slambda).ra = function (p1, $completion) {
300
+ return this.n7y(p1 instanceof ClientSSESession ? p1 : THROW_CCE(), $completion);
301
+ };
302
+ protoOf(KtorKoogHttpClient$sse$slambda$slambda).fa = function () {
303
+ var suspendResult = this.z9_1;
304
+ $sm: do
305
+ try {
306
+ var tmp = this.x9_1;
307
+ switch (tmp) {
308
+ case 0:
309
+ this.y9_1 = 2;
310
+ this.x9_1 = 1;
311
+ var tmp_0 = this.i8b_1.y6z();
312
+ var tmp_1 = KtorKoogHttpClient$sse$slambda$slambda$slambda_0(this.e8b_1, this.f8b_1, this.g8b_1, this.h8b_1, null);
313
+ suspendResult = tmp_0.g2k(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
314
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
315
+ return suspendResult;
316
+ }
317
+
318
+ continue $sm;
319
+ case 1:
320
+ return Unit_instance;
321
+ case 2:
322
+ throw this.aa_1;
323
+ }
324
+ } catch ($p) {
325
+ var e = $p;
326
+ if (this.y9_1 === 2) {
327
+ throw e;
328
+ } else {
329
+ this.x9_1 = this.y9_1;
330
+ this.aa_1 = e;
331
+ }
332
+ }
333
+ while (true);
334
+ };
335
+ protoOf(KtorKoogHttpClient$sse$slambda$slambda).o7y = function ($this$sse, completion) {
336
+ var i = new KtorKoogHttpClient$sse$slambda$slambda(this.e8b_1, this.f8b_1, this.g8b_1, this.h8b_1, completion);
337
+ i.i8b_1 = $this$sse;
338
+ return i;
339
+ };
340
+ function KtorKoogHttpClient$sse$slambda$slambda_0($dataFilter, $decodeStreamingResponse, $processStreamingChunk, $this_flow, resultContinuation) {
341
+ var i = new KtorKoogHttpClient$sse$slambda$slambda($dataFilter, $decodeStreamingResponse, $processStreamingChunk, $this_flow, resultContinuation);
342
+ var l = function ($this$sse, $completion) {
343
+ return i.n7y($this$sse, $completion);
344
+ };
345
+ l.$arity = 1;
346
+ return l;
347
+ }
348
+ function KtorKoogHttpClient$sse$slambda$lambda_0($errorMessage) {
349
+ return function () {
350
+ return $errorMessage;
351
+ };
352
+ }
353
+ function KtorKoogHttpClient$sse$slambda$lambda_1(this$0, $e) {
354
+ return function () {
355
+ return 'Exception during streaming from ' + this$0.j8b_1 + ': ' + $e.toString();
356
+ };
357
+ }
358
+ function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
359
+ this.m8b_1 = function_0;
360
+ }
361
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b2l = function (value, $completion) {
362
+ return this.m8b_1(value, $completion);
363
+ };
364
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
365
+ return this.m8b_1;
366
+ };
367
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
368
+ var tmp;
369
+ if (!(other == null) ? isInterface(other, FlowCollector) : false) {
370
+ var tmp_0;
371
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
372
+ tmp_0 = equals(this.v3(), other.v3());
373
+ } else {
374
+ tmp_0 = false;
375
+ }
376
+ tmp = tmp_0;
377
+ } else {
378
+ tmp = false;
379
+ }
380
+ return tmp;
381
+ };
382
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
383
+ return hashCode(this.v3());
384
+ };
385
+ function KtorKoogHttpClient$post$slambda(this$0, $path, $requestBodyType, $request, $responseType, resultContinuation) {
386
+ this.v8b_1 = this$0;
387
+ this.w8b_1 = $path;
388
+ this.x8b_1 = $requestBodyType;
389
+ this.y8b_1 = $request;
390
+ this.z8b_1 = $responseType;
391
+ CoroutineImpl.call(this, resultContinuation);
392
+ }
393
+ protoOf(KtorKoogHttpClient$post$slambda).p8c = function ($this$withContext, $completion) {
394
+ var tmp = this.y2q($this$withContext, $completion);
395
+ tmp.z9_1 = Unit_instance;
396
+ tmp.aa_1 = null;
397
+ return tmp.fa();
398
+ };
399
+ protoOf(KtorKoogHttpClient$post$slambda).ra = function (p1, $completion) {
400
+ return this.p8c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
401
+ };
402
+ protoOf(KtorKoogHttpClient$post$slambda).fa = function () {
403
+ var suspendResult = this.z9_1;
404
+ $sm: do
405
+ try {
406
+ var tmp = this.x9_1;
407
+ switch (tmp) {
408
+ case 0:
409
+ this.y9_1 = 7;
410
+ var tmp_0 = this;
411
+ tmp_0.b8c_1 = this.v8b_1.l8b_1;
412
+ var tmp_1 = this;
413
+ tmp_1.c8c_1 = this.w8b_1;
414
+ this.d8c_1 = this.b8c_1;
415
+ this.e8c_1 = this.c8c_1;
416
+ var tmp_2 = this;
417
+ tmp_2.f8c_1 = this.d8c_1;
418
+ this.g8c_1 = this.f8c_1;
419
+ this.h8c_1 = new HttpRequestBuilder();
420
+ this.h8c_1.x65_1 = Companion_getInstance().m5d_1;
421
+ var $this$post = this.h8c_1;
422
+ url($this$post, this.e8c_1);
423
+ if (this.x8b_1.equals(PrimitiveClasses_getInstance().fd())) {
424
+ var tmp_3 = this.y8b_1;
425
+ var body_0 = typeof tmp_3 === 'string' ? tmp_3 : THROW_CCE();
426
+ if (body_0 == null) {
427
+ $this$post.z65_1 = NullBody_instance;
428
+ var tmp_4 = PrimitiveClasses_getInstance().fd();
429
+ var tmp_5;
430
+ try {
431
+ tmp_5 = createKType(PrimitiveClasses_getInstance().fd(), arrayOf([]), false);
432
+ } catch ($p) {
433
+ var tmp_6;
434
+ if ($p instanceof Error) {
435
+ var _unused_var__etf5q3 = $p;
436
+ tmp_6 = null;
437
+ } else {
438
+ throw $p;
439
+ }
440
+ tmp_5 = tmp_6;
441
+ }
442
+ $this$post.j6c(new TypeInfo(tmp_4, tmp_5));
443
+ } else {
444
+ if (body_0 instanceof OutgoingContent) {
445
+ $this$post.z65_1 = body_0;
446
+ $this$post.j6c(null);
447
+ } else {
448
+ $this$post.z65_1 = body_0;
449
+ var tmp_7 = PrimitiveClasses_getInstance().fd();
450
+ var tmp_8;
451
+ try {
452
+ tmp_8 = createKType(PrimitiveClasses_getInstance().fd(), arrayOf([]), false);
453
+ } catch ($p) {
454
+ var tmp_9;
455
+ if ($p instanceof Error) {
456
+ var _unused_var__etf5q3_0 = $p;
457
+ tmp_9 = null;
458
+ } else {
459
+ throw $p;
460
+ }
461
+ tmp_8 = tmp_9;
462
+ }
463
+ $this$post.j6c(new TypeInfo(tmp_7, tmp_8));
464
+ }
465
+ }
466
+ } else {
467
+ setBody($this$post, this.y8b_1, new TypeInfo(this.x8b_1));
468
+ }
469
+
470
+ this.h8c_1.x65_1 = Companion_getInstance().m5d_1;
471
+ var tmp_10 = this;
472
+ tmp_10.i8c_1 = this.g8c_1;
473
+ var tmp_11 = this;
474
+ tmp_11.j8c_1 = this.h8c_1;
475
+ this.k8c_1 = this.i8c_1;
476
+ this.l8c_1 = this.j8c_1;
477
+ this.x9_1 = 1;
478
+ suspendResult = (new HttpStatement(this.l8c_1, this.k8c_1)).d7g(this);
479
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
480
+ return suspendResult;
481
+ }
482
+
483
+ continue $sm;
484
+ case 1:
485
+ this.m8c_1 = suspendResult;
486
+ if (isSuccess(this.m8c_1.a5j())) {
487
+ if (this.z8b_1.equals(PrimitiveClasses_getInstance().fd())) {
488
+ this.x9_1 = 4;
489
+ suspendResult = bodyAsText(this.m8c_1, VOID, this);
490
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
491
+ return suspendResult;
492
+ }
493
+ continue $sm;
494
+ } else {
495
+ this.x9_1 = 3;
496
+ suspendResult = body(this.m8c_1, new TypeInfo(this.z8b_1), this);
497
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
498
+ return suspendResult;
499
+ }
500
+ continue $sm;
501
+ }
502
+ } else {
503
+ this.x9_1 = 2;
504
+ suspendResult = bodyAsText(this.m8c_1, VOID, this);
505
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
506
+ return suspendResult;
507
+ }
508
+ continue $sm;
509
+ }
510
+
511
+ case 2:
512
+ var errorBody = suspendResult;
513
+ var errorMessage = 'Error from ' + this.v8b_1.j8b_1 + ' API: ' + this.m8c_1.a5j().toString() + '\nBody:\n' + errorBody;
514
+ this.v8b_1.k8b_1.r3i(KtorKoogHttpClient$post$slambda$lambda(errorMessage));
515
+ var tmp_12 = this;
516
+ throw IllegalStateException_init_$Create$(toString(errorMessage));
517
+ case 3:
518
+ this.o8c_1 = suspendResult;
519
+ this.x9_1 = 5;
520
+ continue $sm;
521
+ case 4:
522
+ var tmp_13 = this;
523
+ tmp_13.o8c_1 = !(suspendResult == null) ? suspendResult : THROW_CCE();
524
+ this.x9_1 = 5;
525
+ continue $sm;
526
+ case 5:
527
+ this.n8c_1 = this.o8c_1;
528
+ this.x9_1 = 6;
529
+ continue $sm;
530
+ case 6:
531
+ return this.n8c_1;
532
+ case 7:
533
+ throw this.aa_1;
534
+ }
535
+ } catch ($p) {
536
+ var e = $p;
537
+ if (this.y9_1 === 7) {
538
+ throw e;
539
+ } else {
540
+ this.x9_1 = this.y9_1;
541
+ this.aa_1 = e;
542
+ }
543
+ }
544
+ while (true);
545
+ };
546
+ protoOf(KtorKoogHttpClient$post$slambda).y2q = function ($this$withContext, completion) {
547
+ var i = new KtorKoogHttpClient$post$slambda(this.v8b_1, this.w8b_1, this.x8b_1, this.y8b_1, this.z8b_1, completion);
548
+ i.a8c_1 = $this$withContext;
549
+ return i;
550
+ };
551
+ function KtorKoogHttpClient$post$slambda_0(this$0, $path, $requestBodyType, $request, $responseType, resultContinuation) {
552
+ var i = new KtorKoogHttpClient$post$slambda(this$0, $path, $requestBodyType, $request, $responseType, resultContinuation);
553
+ var l = function ($this$withContext, $completion) {
554
+ return i.p8c($this$withContext, $completion);
555
+ };
556
+ l.$arity = 1;
557
+ return l;
558
+ }
559
+ function KtorKoogHttpClient$sse$slambda(this$0, $path, $requestBodyType, $request, $dataFilter, $decodeStreamingResponse, $processStreamingChunk, resultContinuation) {
560
+ this.y8c_1 = this$0;
561
+ this.z8c_1 = $path;
562
+ this.a8d_1 = $requestBodyType;
563
+ this.b8d_1 = $request;
564
+ this.c8d_1 = $dataFilter;
565
+ this.d8d_1 = $decodeStreamingResponse;
566
+ this.e8d_1 = $processStreamingChunk;
567
+ CoroutineImpl.call(this, resultContinuation);
568
+ }
569
+ protoOf(KtorKoogHttpClient$sse$slambda).o8d = function ($this$flow, $completion) {
570
+ var tmp = this.p8d($this$flow, $completion);
571
+ tmp.z9_1 = Unit_instance;
572
+ tmp.aa_1 = null;
573
+ return tmp.fa();
574
+ };
575
+ protoOf(KtorKoogHttpClient$sse$slambda).ra = function (p1, $completion) {
576
+ return this.o8d((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
577
+ };
578
+ protoOf(KtorKoogHttpClient$sse$slambda).fa = function () {
579
+ var suspendResult = this.z9_1;
580
+ $sm: do
581
+ try {
582
+ var tmp = this.x9_1;
583
+ switch (tmp) {
584
+ case 0:
585
+ this.y9_1 = 6;
586
+ this.y9_1 = 2;
587
+ this.x9_1 = 1;
588
+ var tmp_0 = KtorKoogHttpClient$sse$slambda$lambda(this.a8d_1, this.b8d_1);
589
+ suspendResult = sse(this.y8c_1.l8b_1, this.z8c_1, tmp_0, VOID, VOID, VOID, KtorKoogHttpClient$sse$slambda$slambda_0(this.c8d_1, this.d8d_1, this.e8d_1, this.f8d_1, null), this);
590
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
591
+ return suspendResult;
592
+ }
593
+
594
+ continue $sm;
595
+ case 1:
596
+ var tmp_1 = this;
597
+ tmp_1.g8d_1 = Unit_instance;
598
+ this.y9_1 = 6;
599
+ this.x9_1 = 5;
600
+ continue $sm;
601
+ case 2:
602
+ this.y9_1 = 6;
603
+ var tmp_2 = this.aa_1;
604
+ if (tmp_2 instanceof SSEClientException) {
605
+ this.h8d_1 = this.aa_1;
606
+ this.i8d_1 = this.h8d_1.v75_1;
607
+ if (this.i8d_1 == null) {
608
+ this.j8d_1 = null;
609
+ this.x9_1 = 4;
610
+ continue $sm;
611
+ } else {
612
+ var tmp_3 = this;
613
+ tmp_3.k8d_1 = this.i8d_1;
614
+ this.l8d_1 = this.k8d_1;
615
+ var tmp_4 = this;
616
+ tmp_4.m8d_1 = this.l8d_1;
617
+ this.n8d_1 = this.m8d_1;
618
+ this.x9_1 = 3;
619
+ suspendResult = readRawBytes(this.n8d_1, this);
620
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
621
+ return suspendResult;
622
+ }
623
+ continue $sm;
624
+ }
625
+ } else {
626
+ var tmp_5 = this.aa_1;
627
+ if (tmp_5 instanceof Exception) {
628
+ var e = this.aa_1;
629
+ var tmp_6 = this;
630
+ this.y8c_1.k8b_1.r3i(KtorKoogHttpClient$sse$slambda$lambda_1(this.y8c_1, e));
631
+ var tmp1_elvis_lhs = e.message;
632
+ var message = tmp1_elvis_lhs == null ? 'Unknown error during streaming from ' + this.y8c_1.j8b_1 + ': ' + e.toString() : tmp1_elvis_lhs;
633
+ throw IllegalStateException_init_$Create$(toString(message));
634
+ } else {
635
+ throw this.aa_1;
636
+ }
637
+ }
638
+
639
+ case 3:
640
+ var ARGUMENT = suspendResult;
641
+ var body = decodeToString(ARGUMENT);
642
+ var errorMessage = 'Error from ' + this.y8c_1.j8b_1 + ' API: ' + this.n8d_1.a5j().toString() + ': ' + this.h8d_1.x75_1 + '\nBody:\n' + body;
643
+ this.y8c_1.k8b_1.u3i(this.h8d_1, KtorKoogHttpClient$sse$slambda$lambda_0(errorMessage));
644
+ var tmp_7 = this;
645
+ throw IllegalStateException_init_$Create$(toString(errorMessage));
646
+ case 4:
647
+ this.g8d_1 = this.j8d_1;
648
+ this.x9_1 = 5;
649
+ continue $sm;
650
+ case 5:
651
+ this.y9_1 = 6;
652
+ return Unit_instance;
653
+ case 6:
654
+ throw this.aa_1;
655
+ }
656
+ } catch ($p) {
657
+ var e_0 = $p;
658
+ if (this.y9_1 === 6) {
659
+ throw e_0;
660
+ } else {
661
+ this.x9_1 = this.y9_1;
662
+ this.aa_1 = e_0;
663
+ }
664
+ }
665
+ while (true);
666
+ };
667
+ protoOf(KtorKoogHttpClient$sse$slambda).p8d = function ($this$flow, completion) {
668
+ var i = new KtorKoogHttpClient$sse$slambda(this.y8c_1, this.z8c_1, this.a8d_1, this.b8d_1, this.c8d_1, this.d8d_1, this.e8d_1, completion);
669
+ i.f8d_1 = $this$flow;
670
+ return i;
671
+ };
672
+ function KtorKoogHttpClient$sse$slambda_0(this$0, $path, $requestBodyType, $request, $dataFilter, $decodeStreamingResponse, $processStreamingChunk, resultContinuation) {
673
+ var i = new KtorKoogHttpClient$sse$slambda(this$0, $path, $requestBodyType, $request, $dataFilter, $decodeStreamingResponse, $processStreamingChunk, resultContinuation);
674
+ var l = function ($this$flow, $completion) {
675
+ return i.o8d($this$flow, $completion);
676
+ };
677
+ l.$arity = 1;
678
+ return l;
679
+ }
680
+ function KtorKoogHttpClient(clientName, logger, baseClient, configurer) {
681
+ baseClient = baseClient === VOID ? HttpClient() : baseClient;
682
+ this.j8b_1 = clientName;
683
+ this.k8b_1 = logger;
684
+ this.l8b_1 = baseClient.a67(configurer);
685
+ }
686
+ protoOf(KtorKoogHttpClient).a8a = function (path, request, requestBodyType, responseType, $completion) {
687
+ var tmp = get_SuitableForIO(Dispatchers_getInstance());
688
+ return withContext(tmp, KtorKoogHttpClient$post$slambda_0(this, path, requestBodyType, request, responseType, null), $completion);
689
+ };
690
+ protoOf(KtorKoogHttpClient).b8a = function (path, request, requestBodyType, dataFilter, decodeStreamingResponse, processStreamingChunk) {
691
+ return flow(KtorKoogHttpClient$sse$slambda_0(this, path, requestBodyType, request, dataFilter, decodeStreamingResponse, processStreamingChunk, null));
692
+ };
693
+ //region block: post-declaration
694
+ protoOf(KtorKoogHttpClient).c8a = sse$default;
695
+ //endregion
696
+ //region block: exports
697
+ _.$_$ = _.$_$ || {};
698
+ _.$_$.a = fromKtorClient;
699
+ //endregion
700
+ return _;
701
+ }));
702
+
703
+ //# sourceMappingURL=koog-http-client-http-client-ktor.js.map