@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.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +7836 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +1241 -0
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map +1 -0
- package/Xiuper-mpp-codegraph.js +1471 -0
- package/Xiuper-mpp-codegraph.js.map +1 -0
- package/annotations.js +15 -0
- package/annotations.js.map +1 -0
- package/autodev-mpp-core.d.ts +1312 -0
- package/autodev-mpp-core.js +86483 -0
- package/autodev-mpp-core.js.map +1 -0
- package/kaml.js +3387 -0
- package/kaml.js.map +1 -0
- package/koog-agents-agents-core.js +22927 -0
- package/koog-agents-agents-core.js.map +1 -0
- package/koog-agents-agents-ext.js +15 -0
- package/koog-agents-agents-ext.js.map +1 -0
- package/koog-agents-agents-features-agents-features-event-handler.js +15 -0
- package/koog-agents-agents-features-agents-features-event-handler.js.map +1 -0
- package/koog-agents-agents-features-agents-features-memory.js +15 -0
- package/koog-agents-agents-features-agents-features-memory.js.map +1 -0
- package/koog-agents-agents-features-agents-features-opentelemetry.js +15 -0
- package/koog-agents-agents-features-agents-features-opentelemetry.js.map +1 -0
- package/koog-agents-agents-features-agents-features-snapshot.js +15 -0
- package/koog-agents-agents-features-agents-features-snapshot.js.map +1 -0
- package/koog-agents-agents-features-agents-features-tokenizer.js +15 -0
- package/koog-agents-agents-features-agents-features-tokenizer.js.map +1 -0
- package/koog-agents-agents-features-agents-features-trace.js +15 -0
- package/koog-agents-agents-features-agents-features-trace.js.map +1 -0
- package/koog-agents-agents-mcp.js +15 -0
- package/koog-agents-agents-mcp.js.map +1 -0
- package/koog-agents-agents-tools.js +322 -0
- package/koog-agents-agents-tools.js.map +1 -0
- package/koog-agents-agents-utils.js +232 -0
- package/koog-agents-agents-utils.js.map +1 -0
- package/koog-embeddings-embeddings-base.js +15 -0
- package/koog-embeddings-embeddings-base.js.map +1 -0
- package/koog-embeddings-embeddings-llm.js +15 -0
- package/koog-embeddings-embeddings-llm.js.map +1 -0
- package/koog-http-client-http-client-core.js +57 -0
- package/koog-http-client-http-client-core.js.map +1 -0
- package/koog-http-client-http-client-ktor.js +703 -0
- package/koog-http-client-http-client-ktor.js.map +1 -0
- package/koog-koog-agents.js +15 -0
- package/koog-koog-agents.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-files.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-files.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-model.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-model.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-redis.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-redis.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-cached.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-cached.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +4991 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +1249 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +4675 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +2343 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +6613 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +19901 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +2313 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +222 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms-all.js +70 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms-all.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +134 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-model.js +42 -0
- package/koog-prompt-prompt-executor-prompt-executor-model.js.map +1 -0
- package/koog-prompt-prompt-llm.js +1710 -0
- package/koog-prompt-prompt-llm.js.map +1 -0
- package/koog-prompt-prompt-markdown.js +122 -0
- package/koog-prompt-prompt-markdown.js.map +1 -0
- package/koog-prompt-prompt-model.js +5848 -0
- package/koog-prompt-prompt-model.js.map +1 -0
- package/koog-prompt-prompt-structure.js +1513 -0
- package/koog-prompt-prompt-structure.js.map +1 -0
- package/koog-prompt-prompt-tokenizer.js +15 -0
- package/koog-prompt-prompt-tokenizer.js.map +1 -0
- package/koog-prompt-prompt-xml.js +15 -0
- package/koog-prompt-prompt-xml.js.map +1 -0
- package/koog-rag-rag-base.js +15 -0
- package/koog-rag-rag-base.js.map +1 -0
- package/koog-rag-vector-storage.js +15 -0
- package/koog-rag-vector-storage.js.map +1 -0
- package/koog-utils.js +63 -0
- package/koog-utils.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +18965 -0
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-logging.js +509 -0
- package/kotlin-logging.js.map +1 -0
- package/kotlin-sdk-kotlin-sdk-client.js +1340 -0
- package/kotlin-sdk-kotlin-sdk-client.js.map +1 -0
- package/kotlin-sdk-kotlin-sdk-core.js +15195 -0
- package/kotlin-sdk-kotlin-sdk-core.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx-atomicfu.js +259 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-coroutines-core.js +13742 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.js +214 -0
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +2892 -0
- package/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +6563 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +5927 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/ktor-ktor-client-content-negotiation.js +775 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-core.js +11110 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-logging.js +15 -0
- package/ktor-ktor-client-logging.js.map +1 -0
- package/ktor-ktor-events.js +126 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-http-cio.js +4257 -0
- package/ktor-ktor-http-cio.js.map +1 -0
- package/ktor-ktor-http.js +3671 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-io.js +4114 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-network.js +1399 -0
- package/ktor-ktor-network.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +67 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js +881 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization.js +388 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-server-cio.js +3735 -0
- package/ktor-ktor-server-cio.js.map +1 -0
- package/ktor-ktor-server-core.js +8696 -0
- package/ktor-ktor-server-core.js.map +1 -0
- package/ktor-ktor-server-sse.js +668 -0
- package/ktor-ktor-server-sse.js.map +1 -0
- package/ktor-ktor-server-websockets.js +15 -0
- package/ktor-ktor-server-websockets.js.map +1 -0
- package/ktor-ktor-sse.js +161 -0
- package/ktor-ktor-sse.js.map +1 -0
- package/ktor-ktor-utils.js +3589 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js +15 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websockets.js +450 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/markdown.js +5174 -0
- package/markdown.js.map +1 -0
- package/okio-parent-okio.js +2628 -0
- package/okio-parent-okio.js.map +1 -0
- package/package.json +18 -0
- package/snakeyaml-engine-kmp.js +7079 -0
- package/snakeyaml-engine-kmp.js.map +1 -0
- package/urlencoder-urlencoder-lib.js +322 -0
- package/urlencoder-urlencoder-lib.js.map +1 -0
- package/xiuper-mpp-core.d.ts +1312 -0
- package/xiuper-mpp-core.js +86483 -0
- package/xiuper-mpp-core.js.map +1 -0
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-io.js', './kotlinx-coroutines-core.js', './ktor-ktor-http.js', './ktor-ktor-server-core.js', './ktor-ktor-utils.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-io.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-server-core.js'), require('./ktor-ktor-utils.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'ktor-ktor-server-sse'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-server-sse'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'ktor-ktor-server-sse'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'ktor-ktor-server-sse'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'ktor-ktor-server-sse'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'ktor-ktor-server-sse'.");
|
|
15
|
+
}
|
|
16
|
+
if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module 'ktor-ktor-server-sse'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'ktor-ktor-server-sse'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof globalThis['ktor-ktor-server-core'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module 'ktor-ktor-server-sse'. Its dependency 'ktor-ktor-server-core' was not found. Please, check whether 'ktor-ktor-server-core' is loaded prior to 'ktor-ktor-server-sse'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module 'ktor-ktor-server-sse'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'ktor-ktor-server-sse'.");
|
|
24
|
+
}
|
|
25
|
+
globalThis['ktor-ktor-server-sse'] = factory(typeof globalThis['ktor-ktor-server-sse'] === 'undefined' ? {} : globalThis['ktor-ktor-server-sse'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-io'], globalThis['kotlinx-coroutines-core'], globalThis['ktor-ktor-http'], globalThis['ktor-ktor-server-core'], globalThis['ktor-ktor-utils']);
|
|
26
|
+
}
|
|
27
|
+
}(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_server_core, kotlin_io_ktor_ktor_utils) {
|
|
28
|
+
'use strict';
|
|
29
|
+
//region block: imports
|
|
30
|
+
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
31
|
+
var CoroutineImpl = kotlin_kotlin.$_$.tc;
|
|
32
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.dc;
|
|
33
|
+
var protoOf = kotlin_kotlin.$_$.we;
|
|
34
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.wd;
|
|
35
|
+
var writeStringUtf8 = kotlin_io_ktor_ktor_io.$_$.s;
|
|
36
|
+
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
37
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ud;
|
|
38
|
+
var VOID = kotlin_kotlin.$_$.h;
|
|
39
|
+
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
|
|
40
|
+
var route = kotlin_io_ktor_ktor_server_core.$_$.g1;
|
|
41
|
+
var THROW_CCE = kotlin_kotlin.$_$.zk;
|
|
42
|
+
var RoutingContext = kotlin_io_ktor_ktor_server_core.$_$.d1;
|
|
43
|
+
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
|
|
44
|
+
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
45
|
+
var header = kotlin_io_ktor_ktor_server_core.$_$.c1;
|
|
46
|
+
var getKClass = kotlin_kotlin.$_$.f;
|
|
47
|
+
var arrayOf = kotlin_kotlin.$_$.nl;
|
|
48
|
+
var createKType = kotlin_kotlin.$_$.c;
|
|
49
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
50
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.zd;
|
|
51
|
+
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.s;
|
|
52
|
+
var createApplicationPlugin = kotlin_io_ktor_ktor_server_core.$_$.j;
|
|
53
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c2;
|
|
54
|
+
var isInterface = kotlin_kotlin.$_$.je;
|
|
55
|
+
var get_uri = kotlin_io_ktor_ktor_server_core.$_$.a1;
|
|
56
|
+
var coroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
57
|
+
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.w;
|
|
58
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.yd;
|
|
59
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e2;
|
|
60
|
+
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.e1;
|
|
61
|
+
//endregion
|
|
62
|
+
//region block: pre-declaration
|
|
63
|
+
initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
|
|
64
|
+
initMetadataForCoroutine($closeCOROUTINE$, CoroutineImpl);
|
|
65
|
+
initMetadataForCoroutine($writeSSECOROUTINE$, CoroutineImpl);
|
|
66
|
+
initMetadataForInterface(ServerSSESession, 'ServerSSESession', VOID, VOID, [CoroutineScope], [1, 5, 0]);
|
|
67
|
+
initMetadataForClass(DefaultServerSSESession, 'DefaultServerSSESession', VOID, VOID, [ServerSSESession], [1, 0, 2, 5]);
|
|
68
|
+
initMetadataForLambda(processSSE$slambda, CoroutineImpl, VOID, [1]);
|
|
69
|
+
initMetadataForClass(SSEServerContent$writeTo$3$1, VOID, VOID, VOID, [ServerSSESession], [1, 5, 0]);
|
|
70
|
+
initMetadataForLambda(SSEServerContent$writeTo$slambda, CoroutineImpl, VOID, [1]);
|
|
71
|
+
initMetadataForCoroutine($writeToCOROUTINE$, CoroutineImpl);
|
|
72
|
+
initMetadataForClass(SSEServerContent, 'SSEServerContent', VOID, WriteChannelContent, VOID, [1]);
|
|
73
|
+
//endregion
|
|
74
|
+
function writeSSE($this, _this__u8e3s4, event, $completion) {
|
|
75
|
+
var tmp = new $writeSSECOROUTINE$($this, _this__u8e3s4, event, $completion);
|
|
76
|
+
tmp.z9_1 = Unit_instance;
|
|
77
|
+
tmp.aa_1 = null;
|
|
78
|
+
return tmp.fa();
|
|
79
|
+
}
|
|
80
|
+
function $sendCOROUTINE$(_this__u8e3s4, event, resultContinuation) {
|
|
81
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
82
|
+
this.bc9_1 = _this__u8e3s4;
|
|
83
|
+
this.cc9_1 = event;
|
|
84
|
+
}
|
|
85
|
+
protoOf($sendCOROUTINE$).fa = function () {
|
|
86
|
+
var suspendResult = this.z9_1;
|
|
87
|
+
$sm: do
|
|
88
|
+
try {
|
|
89
|
+
var tmp = this.x9_1;
|
|
90
|
+
switch (tmp) {
|
|
91
|
+
case 0:
|
|
92
|
+
this.y9_1 = 6;
|
|
93
|
+
var tmp_0 = this;
|
|
94
|
+
tmp_0.dc9_1 = this.bc9_1.kc9_1;
|
|
95
|
+
this.ec9_1 = this.dc9_1;
|
|
96
|
+
var tmp_1 = this;
|
|
97
|
+
tmp_1.fc9_1 = null;
|
|
98
|
+
this.x9_1 = 1;
|
|
99
|
+
suspendResult = this.ec9_1.d33(this.fc9_1, this);
|
|
100
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
101
|
+
return suspendResult;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
continue $sm;
|
|
105
|
+
case 1:
|
|
106
|
+
this.gc9_1 = Unit_instance;
|
|
107
|
+
this.x9_1 = 2;
|
|
108
|
+
continue $sm;
|
|
109
|
+
case 2:
|
|
110
|
+
this.y9_1 = 5;
|
|
111
|
+
this.x9_1 = 3;
|
|
112
|
+
suspendResult = writeSSE(this.bc9_1, this.bc9_1.hc9_1, this.cc9_1, this);
|
|
113
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
114
|
+
return suspendResult;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
continue $sm;
|
|
118
|
+
case 3:
|
|
119
|
+
this.gc9_1 = Unit_instance;
|
|
120
|
+
this.y9_1 = 6;
|
|
121
|
+
this.x9_1 = 4;
|
|
122
|
+
continue $sm;
|
|
123
|
+
case 4:
|
|
124
|
+
this.gc9_1;
|
|
125
|
+
this.y9_1 = 6;
|
|
126
|
+
this.ec9_1.f33(this.fc9_1);
|
|
127
|
+
return Unit_instance;
|
|
128
|
+
case 5:
|
|
129
|
+
this.y9_1 = 6;
|
|
130
|
+
var t = this.aa_1;
|
|
131
|
+
this.ec9_1.f33(this.fc9_1);
|
|
132
|
+
throw t;
|
|
133
|
+
case 6:
|
|
134
|
+
throw this.aa_1;
|
|
135
|
+
}
|
|
136
|
+
} catch ($p) {
|
|
137
|
+
var e = $p;
|
|
138
|
+
if (this.y9_1 === 6) {
|
|
139
|
+
throw e;
|
|
140
|
+
} else {
|
|
141
|
+
this.x9_1 = this.y9_1;
|
|
142
|
+
this.aa_1 = e;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
while (true);
|
|
146
|
+
};
|
|
147
|
+
function $closeCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
148
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
149
|
+
this.tc9_1 = _this__u8e3s4;
|
|
150
|
+
}
|
|
151
|
+
protoOf($closeCOROUTINE$).fa = function () {
|
|
152
|
+
var suspendResult = this.z9_1;
|
|
153
|
+
$sm: do
|
|
154
|
+
try {
|
|
155
|
+
var tmp = this.x9_1;
|
|
156
|
+
switch (tmp) {
|
|
157
|
+
case 0:
|
|
158
|
+
this.y9_1 = 6;
|
|
159
|
+
var tmp_0 = this;
|
|
160
|
+
tmp_0.uc9_1 = this.tc9_1.kc9_1;
|
|
161
|
+
this.vc9_1 = this.uc9_1;
|
|
162
|
+
var tmp_1 = this;
|
|
163
|
+
tmp_1.wc9_1 = null;
|
|
164
|
+
this.x9_1 = 1;
|
|
165
|
+
suspendResult = this.vc9_1.d33(this.wc9_1, this);
|
|
166
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
167
|
+
return suspendResult;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
continue $sm;
|
|
171
|
+
case 1:
|
|
172
|
+
this.xc9_1 = Unit_instance;
|
|
173
|
+
this.x9_1 = 2;
|
|
174
|
+
continue $sm;
|
|
175
|
+
case 2:
|
|
176
|
+
this.y9_1 = 5;
|
|
177
|
+
this.x9_1 = 3;
|
|
178
|
+
suspendResult = this.tc9_1.hc9_1.o4i(this);
|
|
179
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
180
|
+
return suspendResult;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
continue $sm;
|
|
184
|
+
case 3:
|
|
185
|
+
this.xc9_1 = Unit_instance;
|
|
186
|
+
this.y9_1 = 6;
|
|
187
|
+
this.x9_1 = 4;
|
|
188
|
+
continue $sm;
|
|
189
|
+
case 4:
|
|
190
|
+
this.xc9_1;
|
|
191
|
+
this.y9_1 = 6;
|
|
192
|
+
this.vc9_1.f33(this.wc9_1);
|
|
193
|
+
return Unit_instance;
|
|
194
|
+
case 5:
|
|
195
|
+
this.y9_1 = 6;
|
|
196
|
+
var t = this.aa_1;
|
|
197
|
+
this.vc9_1.f33(this.wc9_1);
|
|
198
|
+
throw t;
|
|
199
|
+
case 6:
|
|
200
|
+
throw this.aa_1;
|
|
201
|
+
}
|
|
202
|
+
} catch ($p) {
|
|
203
|
+
var e = $p;
|
|
204
|
+
if (this.y9_1 === 6) {
|
|
205
|
+
throw e;
|
|
206
|
+
} else {
|
|
207
|
+
this.x9_1 = this.y9_1;
|
|
208
|
+
this.aa_1 = e;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
while (true);
|
|
212
|
+
};
|
|
213
|
+
function $writeSSECOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, event, resultContinuation) {
|
|
214
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
215
|
+
this.qc8_1 = _this__u8e3s4;
|
|
216
|
+
this.rc8_1 = _this__u8e3s4_0;
|
|
217
|
+
this.sc8_1 = event;
|
|
218
|
+
}
|
|
219
|
+
protoOf($writeSSECOROUTINE$).fa = function () {
|
|
220
|
+
var suspendResult = this.z9_1;
|
|
221
|
+
$sm: do
|
|
222
|
+
try {
|
|
223
|
+
var tmp = this.x9_1;
|
|
224
|
+
switch (tmp) {
|
|
225
|
+
case 0:
|
|
226
|
+
this.y9_1 = 3;
|
|
227
|
+
this.x9_1 = 1;
|
|
228
|
+
suspendResult = writeStringUtf8(this.rc8_1, this.sc8_1.toString() + '\r\n', this);
|
|
229
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
230
|
+
return suspendResult;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
continue $sm;
|
|
234
|
+
case 1:
|
|
235
|
+
this.x9_1 = 2;
|
|
236
|
+
suspendResult = this.rc8_1.c4i(this);
|
|
237
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
238
|
+
return suspendResult;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
continue $sm;
|
|
242
|
+
case 2:
|
|
243
|
+
return Unit_instance;
|
|
244
|
+
case 3:
|
|
245
|
+
throw this.aa_1;
|
|
246
|
+
}
|
|
247
|
+
} catch ($p) {
|
|
248
|
+
var e = $p;
|
|
249
|
+
if (this.y9_1 === 3) {
|
|
250
|
+
throw e;
|
|
251
|
+
} else {
|
|
252
|
+
this.x9_1 = this.y9_1;
|
|
253
|
+
this.aa_1 = e;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
while (true);
|
|
257
|
+
};
|
|
258
|
+
function DefaultServerSSESession(output, call, coroutineContext) {
|
|
259
|
+
this.hc9_1 = output;
|
|
260
|
+
this.ic9_1 = call;
|
|
261
|
+
this.jc9_1 = coroutineContext;
|
|
262
|
+
this.kc9_1 = Mutex();
|
|
263
|
+
}
|
|
264
|
+
protoOf(DefaultServerSSESession).z1v = function () {
|
|
265
|
+
return this.jc9_1;
|
|
266
|
+
};
|
|
267
|
+
protoOf(DefaultServerSSESession).yc9 = function (event, $completion) {
|
|
268
|
+
var tmp = new $sendCOROUTINE$(this, event, $completion);
|
|
269
|
+
tmp.z9_1 = Unit_instance;
|
|
270
|
+
tmp.aa_1 = null;
|
|
271
|
+
return tmp.fa();
|
|
272
|
+
};
|
|
273
|
+
protoOf(DefaultServerSSESession).zc9 = function ($completion) {
|
|
274
|
+
var tmp = new $closeCOROUTINE$(this, $completion);
|
|
275
|
+
tmp.z9_1 = Unit_instance;
|
|
276
|
+
tmp.aa_1 = null;
|
|
277
|
+
return tmp.fa();
|
|
278
|
+
};
|
|
279
|
+
function sse(_this__u8e3s4, path, handler) {
|
|
280
|
+
var tmp = Companion_getInstance().l5d_1;
|
|
281
|
+
route(_this__u8e3s4, path, tmp, sse$lambda(handler));
|
|
282
|
+
}
|
|
283
|
+
function sse_0(_this__u8e3s4, handler) {
|
|
284
|
+
return processSSEWithoutSerialization(_this__u8e3s4, handler);
|
|
285
|
+
}
|
|
286
|
+
function processSSEWithoutSerialization(_this__u8e3s4, handler) {
|
|
287
|
+
return processSSE(_this__u8e3s4, null, handler);
|
|
288
|
+
}
|
|
289
|
+
function processSSE(_this__u8e3s4, serialize, handler) {
|
|
290
|
+
_this__u8e3s4.zb9(get_SSE());
|
|
291
|
+
_this__u8e3s4.kaf(processSSE$slambda_0(handler, serialize, null));
|
|
292
|
+
}
|
|
293
|
+
function sse$lambda($handler) {
|
|
294
|
+
return function ($this$route) {
|
|
295
|
+
sse_0($this$route, $handler);
|
|
296
|
+
return Unit_instance;
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
function processSSE$slambda($handler, $serialize, resultContinuation) {
|
|
300
|
+
this.ica_1 = $handler;
|
|
301
|
+
this.jca_1 = $serialize;
|
|
302
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
303
|
+
}
|
|
304
|
+
protoOf(processSSE$slambda).pca = function ($this$handle, $completion) {
|
|
305
|
+
var tmp = this.qca($this$handle, $completion);
|
|
306
|
+
tmp.z9_1 = Unit_instance;
|
|
307
|
+
tmp.aa_1 = null;
|
|
308
|
+
return tmp.fa();
|
|
309
|
+
};
|
|
310
|
+
protoOf(processSSE$slambda).ra = function (p1, $completion) {
|
|
311
|
+
return this.pca(p1 instanceof RoutingContext ? p1 : THROW_CCE(), $completion);
|
|
312
|
+
};
|
|
313
|
+
protoOf(processSSE$slambda).fa = function () {
|
|
314
|
+
var suspendResult = this.z9_1;
|
|
315
|
+
$sm: do
|
|
316
|
+
try {
|
|
317
|
+
var tmp = this.x9_1;
|
|
318
|
+
switch (tmp) {
|
|
319
|
+
case 0:
|
|
320
|
+
this.y9_1 = 2;
|
|
321
|
+
header(this.kca_1.bba_1.w64(), HttpHeaders_getInstance().x59_1, Text_getInstance().u58_1.toString());
|
|
322
|
+
header(this.kca_1.bba_1.w64(), HttpHeaders_getInstance().p59_1, 'no-store');
|
|
323
|
+
header(this.kca_1.bba_1.w64(), HttpHeaders_getInstance().q59_1, 'keep-alive');
|
|
324
|
+
header(this.kca_1.bba_1.w64(), 'X-Accel-Buffering', 'no');
|
|
325
|
+
var tmp_0 = this;
|
|
326
|
+
tmp_0.lca_1 = this.kca_1.bba_1;
|
|
327
|
+
var tmp_1 = this;
|
|
328
|
+
tmp_1.mca_1 = new SSEServerContent(this.kca_1.bba_1, this.ica_1, this.jca_1);
|
|
329
|
+
this.nca_1 = this.lca_1;
|
|
330
|
+
this.oca_1 = this.mca_1;
|
|
331
|
+
this.x9_1 = 1;
|
|
332
|
+
var tmp_2 = getKClass(SSEServerContent);
|
|
333
|
+
var tmp_3;
|
|
334
|
+
try {
|
|
335
|
+
tmp_3 = createKType(getKClass(SSEServerContent), arrayOf([]), false);
|
|
336
|
+
} catch ($p) {
|
|
337
|
+
var tmp_4;
|
|
338
|
+
if ($p instanceof Error) {
|
|
339
|
+
var _unused_var__etf5q3 = $p;
|
|
340
|
+
tmp_4 = null;
|
|
341
|
+
} else {
|
|
342
|
+
throw $p;
|
|
343
|
+
}
|
|
344
|
+
tmp_3 = tmp_4;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
suspendResult = this.nca_1.kai(this.oca_1, new TypeInfo(tmp_2, tmp_3), this);
|
|
348
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
349
|
+
return suspendResult;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
continue $sm;
|
|
353
|
+
case 1:
|
|
354
|
+
return Unit_instance;
|
|
355
|
+
case 2:
|
|
356
|
+
throw this.aa_1;
|
|
357
|
+
}
|
|
358
|
+
} catch ($p) {
|
|
359
|
+
var e = $p;
|
|
360
|
+
if (this.y9_1 === 2) {
|
|
361
|
+
throw e;
|
|
362
|
+
} else {
|
|
363
|
+
this.x9_1 = this.y9_1;
|
|
364
|
+
this.aa_1 = e;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
while (true);
|
|
368
|
+
};
|
|
369
|
+
protoOf(processSSE$slambda).qca = function ($this$handle, completion) {
|
|
370
|
+
var i = new processSSE$slambda(this.ica_1, this.jca_1, completion);
|
|
371
|
+
i.kca_1 = $this$handle;
|
|
372
|
+
return i;
|
|
373
|
+
};
|
|
374
|
+
function processSSE$slambda_0($handler, $serialize, resultContinuation) {
|
|
375
|
+
var i = new processSSE$slambda($handler, $serialize, resultContinuation);
|
|
376
|
+
var l = function ($this$handle, $completion) {
|
|
377
|
+
return i.pca($this$handle, $completion);
|
|
378
|
+
};
|
|
379
|
+
l.$arity = 1;
|
|
380
|
+
return l;
|
|
381
|
+
}
|
|
382
|
+
function get_LOGGER() {
|
|
383
|
+
_init_properties_SSE_kt__ir0g19();
|
|
384
|
+
return LOGGER;
|
|
385
|
+
}
|
|
386
|
+
var LOGGER;
|
|
387
|
+
function get_SSE() {
|
|
388
|
+
_init_properties_SSE_kt__ir0g19();
|
|
389
|
+
return SSE;
|
|
390
|
+
}
|
|
391
|
+
var SSE;
|
|
392
|
+
function SSE$lambda($this$createApplicationPlugin) {
|
|
393
|
+
_init_properties_SSE_kt__ir0g19();
|
|
394
|
+
return Unit_instance;
|
|
395
|
+
}
|
|
396
|
+
var properties_initialized_SSE_kt_scp42z;
|
|
397
|
+
function _init_properties_SSE_kt__ir0g19() {
|
|
398
|
+
if (!properties_initialized_SSE_kt_scp42z) {
|
|
399
|
+
properties_initialized_SSE_kt_scp42z = true;
|
|
400
|
+
LOGGER = KtorSimpleLogger('io.ktor.server.plugins.sse.SSE');
|
|
401
|
+
SSE = createApplicationPlugin('SSE', SSE$lambda);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function SSEServerContent$writeTo$3$1($session, this$0) {
|
|
405
|
+
var tmp = this;
|
|
406
|
+
var tmp_0 = $session._v;
|
|
407
|
+
tmp.rca_1 = tmp_0 instanceof DefaultServerSSESession ? tmp_0 : THROW_CCE();
|
|
408
|
+
this.sca_1 = this$0.wca_1;
|
|
409
|
+
}
|
|
410
|
+
protoOf(SSEServerContent$writeTo$3$1).yc9 = function (event, $completion) {
|
|
411
|
+
return this.rca_1.yc9(event, $completion);
|
|
412
|
+
};
|
|
413
|
+
protoOf(SSEServerContent$writeTo$3$1).zc9 = function ($completion) {
|
|
414
|
+
return this.rca_1.zc9($completion);
|
|
415
|
+
};
|
|
416
|
+
protoOf(SSEServerContent$writeTo$3$1).z1v = function () {
|
|
417
|
+
return this.rca_1.jc9_1;
|
|
418
|
+
};
|
|
419
|
+
function SSEServerContent$writeTo$slambda($session, $channel, this$0, resultContinuation) {
|
|
420
|
+
this.gcb_1 = $session;
|
|
421
|
+
this.hcb_1 = $channel;
|
|
422
|
+
this.icb_1 = this$0;
|
|
423
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
424
|
+
}
|
|
425
|
+
protoOf(SSEServerContent$writeTo$slambda).mcb = function ($this$coroutineScope, $completion) {
|
|
426
|
+
var tmp = this.y2q($this$coroutineScope, $completion);
|
|
427
|
+
tmp.z9_1 = Unit_instance;
|
|
428
|
+
tmp.aa_1 = null;
|
|
429
|
+
return tmp.fa();
|
|
430
|
+
};
|
|
431
|
+
protoOf(SSEServerContent$writeTo$slambda).ra = function (p1, $completion) {
|
|
432
|
+
return this.mcb((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
433
|
+
};
|
|
434
|
+
protoOf(SSEServerContent$writeTo$slambda).fa = function () {
|
|
435
|
+
var suspendResult = this.z9_1;
|
|
436
|
+
$sm: do
|
|
437
|
+
try {
|
|
438
|
+
var tmp = this.x9_1;
|
|
439
|
+
switch (tmp) {
|
|
440
|
+
case 0:
|
|
441
|
+
this.y9_1 = 3;
|
|
442
|
+
this.gcb_1._v = new DefaultServerSSESession(this.hcb_1, this.icb_1.uca_1, this.jcb_1.z1v());
|
|
443
|
+
if (!(this.icb_1.wca_1 == null)) {
|
|
444
|
+
this.gcb_1._v = new SSEServerContent$writeTo$3$1(this.gcb_1, this.icb_1);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
this.kcb_1 = this.gcb_1._v;
|
|
448
|
+
if (this.kcb_1 == null) {
|
|
449
|
+
this.lcb_1 = null;
|
|
450
|
+
this.x9_1 = 2;
|
|
451
|
+
continue $sm;
|
|
452
|
+
} else {
|
|
453
|
+
this.x9_1 = 1;
|
|
454
|
+
suspendResult = this.icb_1.vca_1(this.kcb_1, this);
|
|
455
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
456
|
+
return suspendResult;
|
|
457
|
+
}
|
|
458
|
+
continue $sm;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
case 1:
|
|
462
|
+
var tmp_0 = this;
|
|
463
|
+
tmp_0.lcb_1 = Unit_instance;
|
|
464
|
+
this.x9_1 = 2;
|
|
465
|
+
continue $sm;
|
|
466
|
+
case 2:
|
|
467
|
+
return this.lcb_1;
|
|
468
|
+
case 3:
|
|
469
|
+
throw this.aa_1;
|
|
470
|
+
}
|
|
471
|
+
} catch ($p) {
|
|
472
|
+
var e = $p;
|
|
473
|
+
if (this.y9_1 === 3) {
|
|
474
|
+
throw e;
|
|
475
|
+
} else {
|
|
476
|
+
this.x9_1 = this.y9_1;
|
|
477
|
+
this.aa_1 = e;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
while (true);
|
|
481
|
+
};
|
|
482
|
+
protoOf(SSEServerContent$writeTo$slambda).y2q = function ($this$coroutineScope, completion) {
|
|
483
|
+
var i = new SSEServerContent$writeTo$slambda(this.gcb_1, this.hcb_1, this.icb_1, completion);
|
|
484
|
+
i.jcb_1 = $this$coroutineScope;
|
|
485
|
+
return i;
|
|
486
|
+
};
|
|
487
|
+
function SSEServerContent$writeTo$slambda_0($session, $channel, this$0, resultContinuation) {
|
|
488
|
+
var i = new SSEServerContent$writeTo$slambda($session, $channel, this$0, resultContinuation);
|
|
489
|
+
var l = function ($this$coroutineScope, $completion) {
|
|
490
|
+
return i.mcb($this$coroutineScope, $completion);
|
|
491
|
+
};
|
|
492
|
+
l.$arity = 1;
|
|
493
|
+
return l;
|
|
494
|
+
}
|
|
495
|
+
function $writeToCOROUTINE$(_this__u8e3s4, channel, resultContinuation) {
|
|
496
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
497
|
+
this.vcb_1 = _this__u8e3s4;
|
|
498
|
+
this.wcb_1 = channel;
|
|
499
|
+
}
|
|
500
|
+
protoOf($writeToCOROUTINE$).fa = function () {
|
|
501
|
+
var suspendResult = this.z9_1;
|
|
502
|
+
$sm: do
|
|
503
|
+
try {
|
|
504
|
+
var tmp = this.x9_1;
|
|
505
|
+
switch (tmp) {
|
|
506
|
+
case 0:
|
|
507
|
+
this.y9_1 = 9;
|
|
508
|
+
get_LOGGER().h56('Starting sse session for ' + get_uri(this.vcb_1.uca_1.f67()));
|
|
509
|
+
this.xcb_1 = {_v: null};
|
|
510
|
+
this.ycb_1 = Unit_instance;
|
|
511
|
+
this.x9_1 = 1;
|
|
512
|
+
continue $sm;
|
|
513
|
+
case 1:
|
|
514
|
+
this.y9_1 = 6;
|
|
515
|
+
this.x9_1 = 2;
|
|
516
|
+
suspendResult = coroutineScope(SSEServerContent$writeTo$slambda_0(this.xcb_1, this.wcb_1, this.vcb_1, null), this);
|
|
517
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
518
|
+
return suspendResult;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
continue $sm;
|
|
522
|
+
case 2:
|
|
523
|
+
this.ycb_1 = suspendResult;
|
|
524
|
+
this.y9_1 = 9;
|
|
525
|
+
this.x9_1 = 3;
|
|
526
|
+
continue $sm;
|
|
527
|
+
case 3:
|
|
528
|
+
this.zcb_1 = this.ycb_1;
|
|
529
|
+
this.y9_1 = 9;
|
|
530
|
+
this.acc_1 = this.vcb_1.uca_1.g67().n4x(get_heartbeatJobKey());
|
|
531
|
+
var tmp0_safe_receiver = this.acc_1;
|
|
532
|
+
if (tmp0_safe_receiver == null)
|
|
533
|
+
null;
|
|
534
|
+
else {
|
|
535
|
+
tmp0_safe_receiver.k1x();
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
this.bcc_1 = this.xcb_1._v;
|
|
539
|
+
if (this.bcc_1 == null) {
|
|
540
|
+
this.ccc_1 = null;
|
|
541
|
+
this.x9_1 = 5;
|
|
542
|
+
continue $sm;
|
|
543
|
+
} else {
|
|
544
|
+
this.x9_1 = 4;
|
|
545
|
+
suspendResult = this.bcc_1.zc9(this);
|
|
546
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
547
|
+
return suspendResult;
|
|
548
|
+
}
|
|
549
|
+
continue $sm;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
case 4:
|
|
553
|
+
var tmp_0 = this;
|
|
554
|
+
tmp_0.ccc_1 = Unit_instance;
|
|
555
|
+
this.x9_1 = 5;
|
|
556
|
+
continue $sm;
|
|
557
|
+
case 5:
|
|
558
|
+
return Unit_instance;
|
|
559
|
+
case 6:
|
|
560
|
+
this.y9_1 = 9;
|
|
561
|
+
this.dcc_1 = this.aa_1;
|
|
562
|
+
this.ecc_1 = this.vcb_1.uca_1.g67().n4x(get_heartbeatJobKey());
|
|
563
|
+
var tmp0_safe_receiver_0 = this.ecc_1;
|
|
564
|
+
if (tmp0_safe_receiver_0 == null)
|
|
565
|
+
null;
|
|
566
|
+
else {
|
|
567
|
+
tmp0_safe_receiver_0.k1x();
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
this.fcc_1 = this.xcb_1._v;
|
|
571
|
+
if (this.fcc_1 == null) {
|
|
572
|
+
this.gcc_1 = null;
|
|
573
|
+
this.x9_1 = 8;
|
|
574
|
+
continue $sm;
|
|
575
|
+
} else {
|
|
576
|
+
this.x9_1 = 7;
|
|
577
|
+
suspendResult = this.fcc_1.zc9(this);
|
|
578
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
579
|
+
return suspendResult;
|
|
580
|
+
}
|
|
581
|
+
continue $sm;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
case 7:
|
|
585
|
+
var tmp_1 = this;
|
|
586
|
+
tmp_1.gcc_1 = Unit_instance;
|
|
587
|
+
this.x9_1 = 8;
|
|
588
|
+
continue $sm;
|
|
589
|
+
case 8:
|
|
590
|
+
throw this.dcc_1;
|
|
591
|
+
case 9:
|
|
592
|
+
throw this.aa_1;
|
|
593
|
+
}
|
|
594
|
+
} catch ($p) {
|
|
595
|
+
var e = $p;
|
|
596
|
+
if (this.y9_1 === 9) {
|
|
597
|
+
throw e;
|
|
598
|
+
} else {
|
|
599
|
+
this.x9_1 = this.y9_1;
|
|
600
|
+
this.aa_1 = e;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
while (true);
|
|
604
|
+
};
|
|
605
|
+
function SSEServerContent(call, handle, serialize) {
|
|
606
|
+
serialize = serialize === VOID ? null : serialize;
|
|
607
|
+
WriteChannelContent.call(this);
|
|
608
|
+
this.uca_1 = call;
|
|
609
|
+
this.vca_1 = handle;
|
|
610
|
+
this.wca_1 = serialize;
|
|
611
|
+
this.xca_1 = Text_getInstance().u58_1;
|
|
612
|
+
}
|
|
613
|
+
protoOf(SSEServerContent).z5i = function () {
|
|
614
|
+
return this.xca_1;
|
|
615
|
+
};
|
|
616
|
+
protoOf(SSEServerContent).o5k = function (channel, $completion) {
|
|
617
|
+
var tmp = new $writeToCOROUTINE$(this, channel, $completion);
|
|
618
|
+
tmp.z9_1 = Unit_instance;
|
|
619
|
+
tmp.aa_1 = null;
|
|
620
|
+
return tmp.fa();
|
|
621
|
+
};
|
|
622
|
+
protoOf(SSEServerContent).toString = function () {
|
|
623
|
+
return 'SSEServerContent';
|
|
624
|
+
};
|
|
625
|
+
function get_heartbeatJobKey() {
|
|
626
|
+
_init_properties_ServerSSESession_kt__j0ybo4();
|
|
627
|
+
return heartbeatJobKey;
|
|
628
|
+
}
|
|
629
|
+
var heartbeatJobKey;
|
|
630
|
+
function ServerSSESession() {
|
|
631
|
+
}
|
|
632
|
+
var properties_initialized_ServerSSESession_kt_eyee5y;
|
|
633
|
+
function _init_properties_ServerSSESession_kt__j0ybo4() {
|
|
634
|
+
if (!properties_initialized_ServerSSESession_kt_eyee5y) {
|
|
635
|
+
properties_initialized_ServerSSESession_kt_eyee5y = true;
|
|
636
|
+
// Inline function 'io.ktor.util.AttributeKey' call
|
|
637
|
+
var name = 'HeartbeatJobAttributeKey';
|
|
638
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
639
|
+
var tmp = getKClass(Job);
|
|
640
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
641
|
+
var tmp_0;
|
|
642
|
+
try {
|
|
643
|
+
tmp_0 = createKType(getKClass(Job), arrayOf([]), false);
|
|
644
|
+
} catch ($p) {
|
|
645
|
+
var tmp_1;
|
|
646
|
+
if ($p instanceof Error) {
|
|
647
|
+
var _unused_var__etf5q3 = $p;
|
|
648
|
+
tmp_1 = null;
|
|
649
|
+
} else {
|
|
650
|
+
throw $p;
|
|
651
|
+
}
|
|
652
|
+
tmp_0 = tmp_1;
|
|
653
|
+
}
|
|
654
|
+
var tmp$ret$0 = tmp_0;
|
|
655
|
+
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
656
|
+
heartbeatJobKey = new AttributeKey(name, tmp$ret$1);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
//region block: exports
|
|
660
|
+
_.$_$ = _.$_$ || {};
|
|
661
|
+
_.$_$.a = get_SSE;
|
|
662
|
+
_.$_$.b = ServerSSESession;
|
|
663
|
+
_.$_$.c = sse;
|
|
664
|
+
//endregion
|
|
665
|
+
return _;
|
|
666
|
+
}));
|
|
667
|
+
|
|
668
|
+
//# sourceMappingURL=ktor-ktor-server-sse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/DefaultServerSSESession.kt","../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/Routing.kt","../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/SSE.kt","../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/SSEServerContent.kt","../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/ServerSSESession.kt","../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-utils/common/src/io/ktor/util/reflect/Type.kt","../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-utils/common/src/io/ktor/util/Attributes.kt"],"sourcesContent":[null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["writeSSE","<this>","event","$completion","doResume","t","<init>","output","call","coroutineContext","<get-coroutineContext>","send","close","sse","path","handler","processSSEWithoutSerialization","processSSE","serialize","sse$lambda","$handler","sse$lambda$lambda","$serialize","invoke","<unused var>","processSSE$slambda","processSSE$slambda$lambda","<get-LOGGER>","<get-SSE>","SSE$lambda","<init properties SSE.kt>","$session","$channel","SSEServerContent$writeTo$slambda","SSEServerContent$writeTo$slambda$lambda","handle","<get-contentType>","writeTo","channel","toString","<get-heartbeatJobKey>","<init properties ServerSSESession.kt>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA+BIA,CAAA,K,EACoBC,a,EAA0BC,K,EAD9CC,WAAAH,EACsE;A;;;;EAGtE,C;2BAhBA,a,EAA0B,K,EAA1B,kB;;;;;yCAAAI,CAAAA,EAAA;A;;MAAA,I;;;;;;+BACI,K,CAAA,K;;;YAiBwxI,kB;;4BAA+G,oB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,MAAW,KAAU,qBAAV,C;gBACnC,iC;YAAc,iC;cAAA,I;;cAAd,oBAAc,M;;;YACd,0B;YAAS,uB;2BAAA,I;;;;;8BAAA,KAAT,KAAS,U;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjB,C;2BAjCyBE,CACzBE,I,EACA2B,M,EACAjB,SAHyBZ,EAAA;A,qCAG4B,I;IACrD,8B;IAHA,iB;IACA,mB;IACA,sB;IAOyD,qC;EAVhC,C;2CAUzB8B,CAAAA,EAAA;A,IAAA,iB;EAAoC,C;2CAEpCC,CAA6BC,O,EAA7BnC,WAAAkC,EAAwD;A;;;;EAqBxD,C;gDAEAE,CAAAA,EAAkC;A,IAAkB,OAAlB,kB;EAAiB,C;8BCgHvDC,CAAAA,EAAA;A;IAAA,sB;EAA2B,C;;;;;uDAhL3BC,CAAAA,E;;;;iBAgLiD,0B;;;;;MC7FQ,I;;;;;cAKhDjB,wB;kBACL,I;;;;;;;sBArBiD,kBAAmB,SAAnB,C;wBChDjD,iBAAa,IAAb,EAAmB,SAAnB,C;;G;;;;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports);
|
|
6
|
+
else
|
|
7
|
+
globalThis['ktor-ktor-server-websockets'] = factory(typeof globalThis['ktor-ktor-server-websockets'] === 'undefined' ? {} : globalThis['ktor-ktor-server-websockets']);
|
|
8
|
+
}(function (_) {
|
|
9
|
+
'use strict';
|
|
10
|
+
//region block: pre-declaration
|
|
11
|
+
//endregion
|
|
12
|
+
return _;
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=ktor-ktor-server-websockets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|