@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
package/kaml.js
ADDED
|
@@ -0,0 +1,3387 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './okio-parent-okio.js', './snakeyaml-engine-kmp.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./okio-parent-okio.js'), require('./snakeyaml-engine-kmp.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'kaml'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kaml'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'kaml'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'kaml'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof globalThis['okio-parent-okio'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'kaml'. Its dependency 'okio-parent-okio' was not found. Please, check whether 'okio-parent-okio' is loaded prior to 'kaml'.");
|
|
15
|
+
}
|
|
16
|
+
if (typeof globalThis['snakeyaml-engine-kmp'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module 'kaml'. Its dependency 'snakeyaml-engine-kmp' was not found. Please, check whether 'snakeyaml-engine-kmp' is loaded prior to 'kaml'.");
|
|
18
|
+
}
|
|
19
|
+
globalThis.kaml = factory(typeof kaml === 'undefined' ? {} : kaml, globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['okio-parent-okio'], globalThis['snakeyaml-engine-kmp']);
|
|
20
|
+
}
|
|
21
|
+
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_com_squareup_okio_okio, kotlin_it_krzeminski_snakeyaml_engine_kmp) {
|
|
22
|
+
'use strict';
|
|
23
|
+
//region block: imports
|
|
24
|
+
var imul = Math.imul;
|
|
25
|
+
var protoOf = kotlin_kotlin.$_$.we;
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.zk;
|
|
27
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ud;
|
|
28
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.vd;
|
|
29
|
+
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
30
|
+
var closeFinally = kotlin_kotlin.$_$.ol;
|
|
31
|
+
var EmptySerializersModule = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p3;
|
|
32
|
+
var VOID = kotlin_kotlin.$_$.h;
|
|
33
|
+
var Buffer = kotlin_com_squareup_okio_okio.$_$.c;
|
|
34
|
+
var isCharSequence = kotlin_kotlin.$_$.fe;
|
|
35
|
+
var trimEnd = kotlin_kotlin.$_$.sj;
|
|
36
|
+
var toString = kotlin_kotlin.$_$.af;
|
|
37
|
+
var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c4;
|
|
38
|
+
var StreamDataWriter = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.v;
|
|
39
|
+
var AutoCloseable = kotlin_kotlin.$_$.fk;
|
|
40
|
+
var toString_0 = kotlin_kotlin.$_$.gm;
|
|
41
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.od;
|
|
42
|
+
var getStringHashCode = kotlin_kotlin.$_$.sd;
|
|
43
|
+
var hashCode = kotlin_kotlin.$_$.td;
|
|
44
|
+
var equals = kotlin_kotlin.$_$.md;
|
|
45
|
+
var Enum = kotlin_kotlin.$_$.mk;
|
|
46
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.zl;
|
|
47
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
48
|
+
var captureStack = kotlin_kotlin.$_$.dd;
|
|
49
|
+
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a4;
|
|
50
|
+
var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
51
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
52
|
+
var defineProp = kotlin_kotlin.$_$.ld;
|
|
53
|
+
var sorted = kotlin_kotlin.$_$.va;
|
|
54
|
+
var joinToString = kotlin_kotlin.$_$.i9;
|
|
55
|
+
var getContextualDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q2;
|
|
56
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
57
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.m1;
|
|
58
|
+
var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
59
|
+
var OBJECT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
60
|
+
var CLASS = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
61
|
+
var CONTEXTUAL = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
62
|
+
var MAP = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k2;
|
|
63
|
+
var LIST = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
64
|
+
var ENUM = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
65
|
+
var PrimitiveKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
66
|
+
var ensureNotNull = kotlin_kotlin.$_$.sl;
|
|
67
|
+
var AbstractDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2;
|
|
68
|
+
var LONG = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
69
|
+
var SHORT = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
|
|
70
|
+
var INT = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
|
|
71
|
+
var FLOAT = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
|
|
72
|
+
var DOUBLE = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
73
|
+
var CHAR = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
|
|
74
|
+
var BYTE = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
75
|
+
var BOOLEAN = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
76
|
+
var STRING = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
77
|
+
var OBJECT = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l2;
|
|
78
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.fm;
|
|
79
|
+
var toList = kotlin_kotlin.$_$.gb;
|
|
80
|
+
var Char = kotlin_kotlin.$_$.hk;
|
|
81
|
+
var drop = kotlin_kotlin.$_$.k8;
|
|
82
|
+
var plus = kotlin_kotlin.$_$.ha;
|
|
83
|
+
var substring = kotlin_kotlin.$_$.vi;
|
|
84
|
+
var startsWith = kotlin_kotlin.$_$.ji;
|
|
85
|
+
var NumberFormatException = kotlin_kotlin.$_$.vk;
|
|
86
|
+
var toByte = kotlin_kotlin.$_$.bj;
|
|
87
|
+
var toShort = kotlin_kotlin.$_$.lj;
|
|
88
|
+
var toInt = kotlin_kotlin.$_$.hj;
|
|
89
|
+
var toLong = kotlin_kotlin.$_$.kj;
|
|
90
|
+
var toDouble = kotlin_kotlin.$_$.ej;
|
|
91
|
+
var IndexOutOfBoundsException = kotlin_kotlin.$_$.rk;
|
|
92
|
+
var singleOrNull = kotlin_kotlin.$_$.ei;
|
|
93
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.p7;
|
|
94
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
95
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
96
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.j3;
|
|
97
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.n7;
|
|
98
|
+
var lines = kotlin_kotlin.$_$.sh;
|
|
99
|
+
var FunctionAdapter = kotlin_kotlin.$_$.zc;
|
|
100
|
+
var isInterface = kotlin_kotlin.$_$.je;
|
|
101
|
+
var Comparator = kotlin_kotlin.$_$.jk;
|
|
102
|
+
var compareTo = kotlin_kotlin.$_$.kd;
|
|
103
|
+
var sortedWith = kotlin_kotlin.$_$.ua;
|
|
104
|
+
var mapCapacity = kotlin_kotlin.$_$.v9;
|
|
105
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.b1;
|
|
106
|
+
var to = kotlin_kotlin.$_$.hm;
|
|
107
|
+
var NodeEvent = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.d1;
|
|
108
|
+
var AliasEvent = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.x;
|
|
109
|
+
var MappingStartEvent = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.c1;
|
|
110
|
+
var SequenceStartEvent = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.f1;
|
|
111
|
+
var ScalarEvent = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.e1;
|
|
112
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.t;
|
|
113
|
+
var ID_SequenceEnd_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.l;
|
|
114
|
+
var ID_MappingEnd_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.j;
|
|
115
|
+
var ID_Scalar_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.k;
|
|
116
|
+
var single = kotlin_kotlin.$_$.ra;
|
|
117
|
+
var listOf = kotlin_kotlin.$_$.t9;
|
|
118
|
+
var first = kotlin_kotlin.$_$.w8;
|
|
119
|
+
var until = kotlin_kotlin.$_$.of;
|
|
120
|
+
var coerceAtLeast = kotlin_kotlin.$_$.gf;
|
|
121
|
+
var ScalarStyle_PLAIN_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.f;
|
|
122
|
+
var firstOrNull = kotlin_kotlin.$_$.s8;
|
|
123
|
+
var CommentType_BLOCK_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.a;
|
|
124
|
+
var CommentEvent = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.y;
|
|
125
|
+
var getKClass = kotlin_kotlin.$_$.f;
|
|
126
|
+
var charSequenceLength = kotlin_kotlin.$_$.id;
|
|
127
|
+
var listOf_0 = kotlin_kotlin.$_$.u9;
|
|
128
|
+
var toDoubleOrNull = kotlin_kotlin.$_$.dj;
|
|
129
|
+
var FlowStyle_BLOCK_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.b;
|
|
130
|
+
var FlowStyle_FLOW_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.c;
|
|
131
|
+
var ScalarStyle_DOUBLE_QUOTED_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.d;
|
|
132
|
+
var ScalarStyle_SINGLE_QUOTED_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.g;
|
|
133
|
+
var ScalarStyle_LITERAL_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.e;
|
|
134
|
+
var ImplicitTuple = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.b1;
|
|
135
|
+
var AbstractEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t2;
|
|
136
|
+
var Companion_instance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.t;
|
|
137
|
+
var Emitter = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.w;
|
|
138
|
+
var StreamStartEvent_init_$Create$ = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.r;
|
|
139
|
+
var emptyMap = kotlin_kotlin.$_$.n8;
|
|
140
|
+
var DocumentStartEvent = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.a1;
|
|
141
|
+
var toString_1 = kotlin_kotlin.$_$.r3;
|
|
142
|
+
var contains = kotlin_kotlin.$_$.lg;
|
|
143
|
+
var MAP_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
144
|
+
var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
145
|
+
var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
146
|
+
var MappingEndEvent_init_$Create$ = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.o;
|
|
147
|
+
var SequenceEndEvent_init_$Create$ = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.p;
|
|
148
|
+
var DocumentEndEvent = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.z;
|
|
149
|
+
var StreamEndEvent_init_$Create$ = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.q;
|
|
150
|
+
var MarkedYamlEngineException = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.g1;
|
|
151
|
+
var trimMargin = kotlin_kotlin.$_$.vj;
|
|
152
|
+
var Companion_instance_0 = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.u;
|
|
153
|
+
var StreamReader = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.h1;
|
|
154
|
+
var ParserImpl_init_$Create$ = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.s;
|
|
155
|
+
var ID_StreamStart_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.n;
|
|
156
|
+
var ID_StreamEnd_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.m;
|
|
157
|
+
var ID_DocumentStart_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.i;
|
|
158
|
+
var ID_DocumentEnd_getInstance = kotlin_it_krzeminski_snakeyaml_engine_kmp.$_$.h;
|
|
159
|
+
var toList_0 = kotlin_kotlin.$_$.hb;
|
|
160
|
+
var objectCreate = kotlin_kotlin.$_$.ve;
|
|
161
|
+
var plus_0 = kotlin_kotlin.$_$.ia;
|
|
162
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
163
|
+
var last = kotlin_kotlin.$_$.r9;
|
|
164
|
+
var get_lastIndex = kotlin_kotlin.$_$.m9;
|
|
165
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ae;
|
|
166
|
+
var OPEN_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
167
|
+
var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
|
|
168
|
+
var get_elementNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p2;
|
|
169
|
+
var toSet = kotlin_kotlin.$_$.pb;
|
|
170
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
171
|
+
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.b3;
|
|
172
|
+
var contextual = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s3;
|
|
173
|
+
var SerializersModuleCollector = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t3;
|
|
174
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.re;
|
|
175
|
+
var Companion_getInstance = kotlin_com_squareup_okio_okio.$_$.a;
|
|
176
|
+
//endregion
|
|
177
|
+
//region block: pre-declaration
|
|
178
|
+
initMetadataForClass(Location, 'Location');
|
|
179
|
+
initMetadataForCompanion(Companion);
|
|
180
|
+
initMetadataForClass(Yaml, 'Yaml', Yaml, VOID, [StringFormat]);
|
|
181
|
+
initMetadataForClass(BufferedSinkDataWriter, 'BufferedSinkDataWriter', VOID, VOID, [StreamDataWriter, AutoCloseable]);
|
|
182
|
+
initMetadataForClass(YamlComment, 'YamlComment');
|
|
183
|
+
initMetadataForClass(YamlConfiguration, 'YamlConfiguration', YamlConfiguration);
|
|
184
|
+
initMetadataForClass(PolymorphismStyle, 'PolymorphismStyle', VOID, Enum);
|
|
185
|
+
initMetadataForClass(SequenceStyle, 'SequenceStyle', VOID, Enum);
|
|
186
|
+
initMetadataForClass(SingleLineStringStyle, 'SingleLineStringStyle', VOID, Enum);
|
|
187
|
+
initMetadataForClass(MultiLineStringStyle, 'MultiLineStringStyle', VOID, Enum);
|
|
188
|
+
initMetadataForClass(AmbiguousQuoteStyle, 'AmbiguousQuoteStyle', VOID, Enum);
|
|
189
|
+
initMetadataForClass(YamlInput, 'YamlInput', VOID, AbstractDecoder);
|
|
190
|
+
initMetadataForClass(YamlContextualInput, 'YamlContextualInput', VOID, YamlInput);
|
|
191
|
+
initMetadataForClass(YamlException, 'YamlException', VOID, SerializationException);
|
|
192
|
+
initMetadataForClass(YamlScalarFormatException, 'YamlScalarFormatException', VOID, YamlException);
|
|
193
|
+
initMetadataForClass(DuplicateKeyException, 'DuplicateKeyException', VOID, YamlException);
|
|
194
|
+
initMetadataForClass(IncorrectTypeException, 'IncorrectTypeException', VOID, YamlException);
|
|
195
|
+
initMetadataForClass(MissingTypeTagException, 'MissingTypeTagException', VOID, IncorrectTypeException);
|
|
196
|
+
initMetadataForClass(InvalidPropertyValueException, 'InvalidPropertyValueException', VOID, YamlException);
|
|
197
|
+
initMetadataForClass(MissingRequiredPropertyException, 'MissingRequiredPropertyException', VOID, YamlException);
|
|
198
|
+
initMetadataForClass(EmptyYamlDocumentException, 'EmptyYamlDocumentException', VOID, YamlException);
|
|
199
|
+
initMetadataForClass(MalformedYamlException, 'MalformedYamlException', VOID, YamlException);
|
|
200
|
+
initMetadataForClass(ForbiddenAnchorOrAliasException, 'ForbiddenAnchorOrAliasException', VOID, YamlException);
|
|
201
|
+
initMetadataForClass(NoAnchorForExtensionException, 'NoAnchorForExtensionException', VOID, YamlException);
|
|
202
|
+
initMetadataForClass(UnknownAnchorException, 'UnknownAnchorException', VOID, YamlException);
|
|
203
|
+
initMetadataForClass(UnexpectedNullValueException, 'UnexpectedNullValueException', VOID, YamlException);
|
|
204
|
+
initMetadataForClass(UnknownPropertyException, 'UnknownPropertyException', VOID, YamlException);
|
|
205
|
+
initMetadataForClass(UnknownPolymorphicTypeException, 'UnknownPolymorphicTypeException', VOID, YamlException);
|
|
206
|
+
initMetadataForCompanion(Companion_0);
|
|
207
|
+
initMetadataForClass(YamlListInput, 'YamlListInput', VOID, YamlInput);
|
|
208
|
+
initMetadataForClass(YamlMapLikeInputBase, 'YamlMapLikeInputBase', VOID, YamlInput);
|
|
209
|
+
initMetadataForClass(YamlMapInput, 'YamlMapInput', VOID, YamlMapLikeInputBase);
|
|
210
|
+
initMetadataForClass(YamlNode, 'YamlNode');
|
|
211
|
+
initMetadataForClass(YamlNull, 'YamlNull', VOID, YamlNode);
|
|
212
|
+
initMetadataForClass(YamlScalar, 'YamlScalar', VOID, YamlNode);
|
|
213
|
+
initMetadataForClass(YamlList, 'YamlList', VOID, YamlNode);
|
|
214
|
+
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
215
|
+
initMetadataForClass(YamlMap, 'YamlMap', VOID, YamlNode);
|
|
216
|
+
initMetadataForClass(YamlTaggedNode, 'YamlTaggedNode', VOID, YamlNode);
|
|
217
|
+
initMetadataForClass(YamlNodeReader, 'YamlNodeReader');
|
|
218
|
+
initMetadataForClass(YamlNullInput, 'YamlNullInput', VOID, YamlInput);
|
|
219
|
+
initMetadataForClass(YamlObjectInput, 'YamlObjectInput', VOID, YamlMapLikeInputBase);
|
|
220
|
+
initMetadataForCompanion(Companion_1);
|
|
221
|
+
initMetadataForClass(YamlOutput, 'YamlOutput', VOID, AbstractEncoder, [AbstractEncoder, AutoCloseable]);
|
|
222
|
+
initMetadataForClass(YamlParser, 'YamlParser');
|
|
223
|
+
initMetadataForCompanion(Companion_2);
|
|
224
|
+
initMetadataForClass(YamlPath, 'YamlPath');
|
|
225
|
+
initMetadataForClass(YamlPathSegment, 'YamlPathSegment');
|
|
226
|
+
initMetadataForObject(Root, 'Root', VOID, YamlPathSegment);
|
|
227
|
+
initMetadataForClass(ListEntry, 'ListEntry', VOID, YamlPathSegment);
|
|
228
|
+
initMetadataForClass(MapElementKey, 'MapElementKey', VOID, YamlPathSegment);
|
|
229
|
+
initMetadataForClass(MapElementValue, 'MapElementValue', VOID, YamlPathSegment);
|
|
230
|
+
initMetadataForClass(AliasReference, 'AliasReference', VOID, YamlPathSegment);
|
|
231
|
+
initMetadataForClass(AliasDefinition, 'AliasDefinition', VOID, YamlPathSegment);
|
|
232
|
+
initMetadataForClass(Merge, 'Merge', VOID, YamlPathSegment);
|
|
233
|
+
initMetadataForClass(Error_0, 'Error', VOID, YamlPathSegment);
|
|
234
|
+
initMetadataForClass(CurrentField, 'CurrentField', VOID, Enum);
|
|
235
|
+
initMetadataForCompanion(Companion_3);
|
|
236
|
+
initMetadataForClass(YamlPolymorphicInput$getKnownTypesForOpenType$1, VOID, VOID, VOID, [SerializersModuleCollector]);
|
|
237
|
+
initMetadataForClass(YamlPolymorphicInput, 'YamlPolymorphicInput', VOID, YamlInput);
|
|
238
|
+
initMetadataForClass(YamlScalarInput, 'YamlScalarInput', VOID, YamlInput);
|
|
239
|
+
//endregion
|
|
240
|
+
function Location(line, column) {
|
|
241
|
+
this.hhn_1 = line;
|
|
242
|
+
this.ihn_1 = column;
|
|
243
|
+
}
|
|
244
|
+
protoOf(Location).toString = function () {
|
|
245
|
+
return 'Location(line=' + this.hhn_1 + ', column=' + this.ihn_1 + ')';
|
|
246
|
+
};
|
|
247
|
+
protoOf(Location).hashCode = function () {
|
|
248
|
+
var result = this.hhn_1;
|
|
249
|
+
result = imul(result, 31) + this.ihn_1 | 0;
|
|
250
|
+
return result;
|
|
251
|
+
};
|
|
252
|
+
protoOf(Location).equals = function (other) {
|
|
253
|
+
if (this === other)
|
|
254
|
+
return true;
|
|
255
|
+
if (!(other instanceof Location))
|
|
256
|
+
return false;
|
|
257
|
+
var tmp0_other_with_cast = other instanceof Location ? other : THROW_CCE();
|
|
258
|
+
if (!(this.hhn_1 === tmp0_other_with_cast.hhn_1))
|
|
259
|
+
return false;
|
|
260
|
+
if (!(this.ihn_1 === tmp0_other_with_cast.ihn_1))
|
|
261
|
+
return false;
|
|
262
|
+
return true;
|
|
263
|
+
};
|
|
264
|
+
function Companion() {
|
|
265
|
+
Companion_instance_1 = this;
|
|
266
|
+
this.jhn_1 = new Yaml();
|
|
267
|
+
}
|
|
268
|
+
var Companion_instance_1;
|
|
269
|
+
function Companion_getInstance_0() {
|
|
270
|
+
if (Companion_instance_1 == null)
|
|
271
|
+
new Companion();
|
|
272
|
+
return Companion_instance_1;
|
|
273
|
+
}
|
|
274
|
+
function encodeToBufferedSink($this, serializer, value, sink) {
|
|
275
|
+
var tmp0 = new BufferedSinkDataWriter(sink);
|
|
276
|
+
$l$block_0: {
|
|
277
|
+
// Inline function 'kotlin.use' call
|
|
278
|
+
var exception = null;
|
|
279
|
+
try {
|
|
280
|
+
var tmp0_0 = new YamlOutput(tmp0, $this.khn_1, $this.lhn_1);
|
|
281
|
+
$l$block: {
|
|
282
|
+
// Inline function 'kotlin.use' call
|
|
283
|
+
var exception_0 = null;
|
|
284
|
+
try {
|
|
285
|
+
tmp0_0.o10(serializer, value);
|
|
286
|
+
break $l$block;
|
|
287
|
+
} catch ($p) {
|
|
288
|
+
if ($p instanceof Error) {
|
|
289
|
+
var e = $p;
|
|
290
|
+
exception_0 = e;
|
|
291
|
+
throw e;
|
|
292
|
+
} else {
|
|
293
|
+
throw $p;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
finally {
|
|
297
|
+
closeFinally(tmp0_0, exception_0);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
break $l$block_0;
|
|
301
|
+
} catch ($p) {
|
|
302
|
+
if ($p instanceof Error) {
|
|
303
|
+
var e_0 = $p;
|
|
304
|
+
exception = e_0;
|
|
305
|
+
throw e_0;
|
|
306
|
+
} else {
|
|
307
|
+
throw $p;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
finally {
|
|
311
|
+
closeFinally(tmp0, exception);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
function Yaml(serializersModule, configuration) {
|
|
316
|
+
Companion_getInstance_0();
|
|
317
|
+
serializersModule = serializersModule === VOID ? EmptySerializersModule() : serializersModule;
|
|
318
|
+
configuration = configuration === VOID ? new YamlConfiguration() : configuration;
|
|
319
|
+
this.khn_1 = serializersModule;
|
|
320
|
+
this.lhn_1 = configuration;
|
|
321
|
+
}
|
|
322
|
+
protoOf(Yaml).lz = function () {
|
|
323
|
+
return this.khn_1;
|
|
324
|
+
};
|
|
325
|
+
protoOf(Yaml).hw = function (deserializer, string) {
|
|
326
|
+
return this.mhn(deserializer, bufferedSource(string));
|
|
327
|
+
};
|
|
328
|
+
protoOf(Yaml).mhn = function (deserializer, source) {
|
|
329
|
+
var rootNode = this.nhn(source);
|
|
330
|
+
var input = Companion_getInstance_1().phn(rootNode, this, this.khn_1, this.lhn_1, deserializer.fv());
|
|
331
|
+
return input.vy(deserializer);
|
|
332
|
+
};
|
|
333
|
+
protoOf(Yaml).uhn = function (string) {
|
|
334
|
+
return this.nhn(bufferedSource(string));
|
|
335
|
+
};
|
|
336
|
+
protoOf(Yaml).nhn = function (source) {
|
|
337
|
+
var parser = new YamlParser(source, this.lhn_1.jho_1);
|
|
338
|
+
var reader = new YamlNodeReader(parser, this.lhn_1.xhn_1, this.lhn_1.hho_1);
|
|
339
|
+
var node = reader.a1o();
|
|
340
|
+
parser.sho();
|
|
341
|
+
return node;
|
|
342
|
+
};
|
|
343
|
+
protoOf(Yaml).gw = function (serializer, value) {
|
|
344
|
+
var buffer = new Buffer();
|
|
345
|
+
encodeToBufferedSink(this, serializer, value, buffer);
|
|
346
|
+
// Inline function 'kotlin.text.trimEnd' call
|
|
347
|
+
var this_0 = buffer.ch3();
|
|
348
|
+
return toString(trimEnd(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
349
|
+
};
|
|
350
|
+
function BufferedSinkDataWriter(sink) {
|
|
351
|
+
this.tho_1 = sink;
|
|
352
|
+
}
|
|
353
|
+
protoOf(BufferedSinkDataWriter).u9 = function () {
|
|
354
|
+
return this.tho_1.u9();
|
|
355
|
+
};
|
|
356
|
+
protoOf(BufferedSinkDataWriter).s1l = function (str) {
|
|
357
|
+
this.tho_1.kh3(str);
|
|
358
|
+
};
|
|
359
|
+
protoOf(BufferedSinkDataWriter).ch8 = function (str, off, len) {
|
|
360
|
+
this.tho_1.lh3(str, off, off + len | 0);
|
|
361
|
+
};
|
|
362
|
+
protoOf(BufferedSinkDataWriter).u4 = function () {
|
|
363
|
+
this.u9();
|
|
364
|
+
};
|
|
365
|
+
function YamlComment() {
|
|
366
|
+
}
|
|
367
|
+
function YamlConfiguration(encodeDefaults, strictMode, extensionDefinitionPrefix, polymorphismStyle, polymorphismPropertyName, encodingIndentationSize, breakScalarsAt, sequenceStyle, singleLineStringStyle, multiLineStringStyle, ambiguousQuoteStyle, sequenceBlockIndent, allowAnchorsAndAliases, yamlNamingStrategy, codePointLimit) {
|
|
368
|
+
encodeDefaults = encodeDefaults === VOID ? true : encodeDefaults;
|
|
369
|
+
strictMode = strictMode === VOID ? true : strictMode;
|
|
370
|
+
extensionDefinitionPrefix = extensionDefinitionPrefix === VOID ? null : extensionDefinitionPrefix;
|
|
371
|
+
polymorphismStyle = polymorphismStyle === VOID ? PolymorphismStyle_Tag_getInstance() : polymorphismStyle;
|
|
372
|
+
polymorphismPropertyName = polymorphismPropertyName === VOID ? 'type' : polymorphismPropertyName;
|
|
373
|
+
encodingIndentationSize = encodingIndentationSize === VOID ? 2 : encodingIndentationSize;
|
|
374
|
+
breakScalarsAt = breakScalarsAt === VOID ? 80 : breakScalarsAt;
|
|
375
|
+
sequenceStyle = sequenceStyle === VOID ? SequenceStyle_Block_getInstance() : sequenceStyle;
|
|
376
|
+
singleLineStringStyle = singleLineStringStyle === VOID ? SingleLineStringStyle_DoubleQuoted_getInstance() : singleLineStringStyle;
|
|
377
|
+
multiLineStringStyle = multiLineStringStyle === VOID ? singleLineStringStyle.who() : multiLineStringStyle;
|
|
378
|
+
ambiguousQuoteStyle = ambiguousQuoteStyle === VOID ? AmbiguousQuoteStyle_DoubleQuoted_getInstance() : ambiguousQuoteStyle;
|
|
379
|
+
sequenceBlockIndent = sequenceBlockIndent === VOID ? 0 : sequenceBlockIndent;
|
|
380
|
+
allowAnchorsAndAliases = allowAnchorsAndAliases === VOID ? false : allowAnchorsAndAliases;
|
|
381
|
+
yamlNamingStrategy = yamlNamingStrategy === VOID ? null : yamlNamingStrategy;
|
|
382
|
+
codePointLimit = codePointLimit === VOID ? null : codePointLimit;
|
|
383
|
+
this.vhn_1 = encodeDefaults;
|
|
384
|
+
this.whn_1 = strictMode;
|
|
385
|
+
this.xhn_1 = extensionDefinitionPrefix;
|
|
386
|
+
this.yhn_1 = polymorphismStyle;
|
|
387
|
+
this.zhn_1 = polymorphismPropertyName;
|
|
388
|
+
this.aho_1 = encodingIndentationSize;
|
|
389
|
+
this.bho_1 = breakScalarsAt;
|
|
390
|
+
this.cho_1 = sequenceStyle;
|
|
391
|
+
this.dho_1 = singleLineStringStyle;
|
|
392
|
+
this.eho_1 = multiLineStringStyle;
|
|
393
|
+
this.fho_1 = ambiguousQuoteStyle;
|
|
394
|
+
this.gho_1 = sequenceBlockIndent;
|
|
395
|
+
this.hho_1 = allowAnchorsAndAliases;
|
|
396
|
+
this.iho_1 = yamlNamingStrategy;
|
|
397
|
+
this.jho_1 = codePointLimit;
|
|
398
|
+
}
|
|
399
|
+
protoOf(YamlConfiguration).toString = function () {
|
|
400
|
+
return 'YamlConfiguration(encodeDefaults=' + this.vhn_1 + ', strictMode=' + this.whn_1 + ', extensionDefinitionPrefix=' + this.xhn_1 + ', polymorphismStyle=' + this.yhn_1.toString() + ', polymorphismPropertyName=' + this.zhn_1 + ', encodingIndentationSize=' + this.aho_1 + ', breakScalarsAt=' + this.bho_1 + ', sequenceStyle=' + this.cho_1.toString() + ', singleLineStringStyle=' + this.dho_1.toString() + ', multiLineStringStyle=' + this.eho_1.toString() + ', ambiguousQuoteStyle=' + this.fho_1.toString() + ', sequenceBlockIndent=' + this.gho_1 + ', allowAnchorsAndAliases=' + this.hho_1 + ', yamlNamingStrategy=' + toString_0(this.iho_1) + ', codePointLimit=' + this.jho_1 + ')';
|
|
401
|
+
};
|
|
402
|
+
protoOf(YamlConfiguration).hashCode = function () {
|
|
403
|
+
var result = getBooleanHashCode(this.vhn_1);
|
|
404
|
+
result = imul(result, 31) + getBooleanHashCode(this.whn_1) | 0;
|
|
405
|
+
result = imul(result, 31) + (this.xhn_1 == null ? 0 : getStringHashCode(this.xhn_1)) | 0;
|
|
406
|
+
result = imul(result, 31) + this.yhn_1.hashCode() | 0;
|
|
407
|
+
result = imul(result, 31) + getStringHashCode(this.zhn_1) | 0;
|
|
408
|
+
result = imul(result, 31) + this.aho_1 | 0;
|
|
409
|
+
result = imul(result, 31) + this.bho_1 | 0;
|
|
410
|
+
result = imul(result, 31) + this.cho_1.hashCode() | 0;
|
|
411
|
+
result = imul(result, 31) + this.dho_1.hashCode() | 0;
|
|
412
|
+
result = imul(result, 31) + this.eho_1.hashCode() | 0;
|
|
413
|
+
result = imul(result, 31) + this.fho_1.hashCode() | 0;
|
|
414
|
+
result = imul(result, 31) + this.gho_1 | 0;
|
|
415
|
+
result = imul(result, 31) + getBooleanHashCode(this.hho_1) | 0;
|
|
416
|
+
result = imul(result, 31) + (this.iho_1 == null ? 0 : hashCode(this.iho_1)) | 0;
|
|
417
|
+
result = imul(result, 31) + (this.jho_1 == null ? 0 : this.jho_1) | 0;
|
|
418
|
+
return result;
|
|
419
|
+
};
|
|
420
|
+
protoOf(YamlConfiguration).equals = function (other) {
|
|
421
|
+
if (this === other)
|
|
422
|
+
return true;
|
|
423
|
+
if (!(other instanceof YamlConfiguration))
|
|
424
|
+
return false;
|
|
425
|
+
var tmp0_other_with_cast = other instanceof YamlConfiguration ? other : THROW_CCE();
|
|
426
|
+
if (!(this.vhn_1 === tmp0_other_with_cast.vhn_1))
|
|
427
|
+
return false;
|
|
428
|
+
if (!(this.whn_1 === tmp0_other_with_cast.whn_1))
|
|
429
|
+
return false;
|
|
430
|
+
if (!(this.xhn_1 == tmp0_other_with_cast.xhn_1))
|
|
431
|
+
return false;
|
|
432
|
+
if (!this.yhn_1.equals(tmp0_other_with_cast.yhn_1))
|
|
433
|
+
return false;
|
|
434
|
+
if (!(this.zhn_1 === tmp0_other_with_cast.zhn_1))
|
|
435
|
+
return false;
|
|
436
|
+
if (!(this.aho_1 === tmp0_other_with_cast.aho_1))
|
|
437
|
+
return false;
|
|
438
|
+
if (!(this.bho_1 === tmp0_other_with_cast.bho_1))
|
|
439
|
+
return false;
|
|
440
|
+
if (!this.cho_1.equals(tmp0_other_with_cast.cho_1))
|
|
441
|
+
return false;
|
|
442
|
+
if (!this.dho_1.equals(tmp0_other_with_cast.dho_1))
|
|
443
|
+
return false;
|
|
444
|
+
if (!this.eho_1.equals(tmp0_other_with_cast.eho_1))
|
|
445
|
+
return false;
|
|
446
|
+
if (!this.fho_1.equals(tmp0_other_with_cast.fho_1))
|
|
447
|
+
return false;
|
|
448
|
+
if (!(this.gho_1 === tmp0_other_with_cast.gho_1))
|
|
449
|
+
return false;
|
|
450
|
+
if (!(this.hho_1 === tmp0_other_with_cast.hho_1))
|
|
451
|
+
return false;
|
|
452
|
+
if (!equals(this.iho_1, tmp0_other_with_cast.iho_1))
|
|
453
|
+
return false;
|
|
454
|
+
if (!(this.jho_1 == tmp0_other_with_cast.jho_1))
|
|
455
|
+
return false;
|
|
456
|
+
return true;
|
|
457
|
+
};
|
|
458
|
+
var PolymorphismStyle_Tag_instance;
|
|
459
|
+
var PolymorphismStyle_Property_instance;
|
|
460
|
+
var PolymorphismStyle_None_instance;
|
|
461
|
+
var PolymorphismStyle_entriesInitialized;
|
|
462
|
+
function PolymorphismStyle_initEntries() {
|
|
463
|
+
if (PolymorphismStyle_entriesInitialized)
|
|
464
|
+
return Unit_instance;
|
|
465
|
+
PolymorphismStyle_entriesInitialized = true;
|
|
466
|
+
PolymorphismStyle_Tag_instance = new PolymorphismStyle('Tag', 0);
|
|
467
|
+
PolymorphismStyle_Property_instance = new PolymorphismStyle('Property', 1);
|
|
468
|
+
PolymorphismStyle_None_instance = new PolymorphismStyle('None', 2);
|
|
469
|
+
}
|
|
470
|
+
function PolymorphismStyle(name, ordinal) {
|
|
471
|
+
Enum.call(this, name, ordinal);
|
|
472
|
+
}
|
|
473
|
+
var SequenceStyle_Block_instance;
|
|
474
|
+
var SequenceStyle_Flow_instance;
|
|
475
|
+
var SequenceStyle_entriesInitialized;
|
|
476
|
+
function SequenceStyle_initEntries() {
|
|
477
|
+
if (SequenceStyle_entriesInitialized)
|
|
478
|
+
return Unit_instance;
|
|
479
|
+
SequenceStyle_entriesInitialized = true;
|
|
480
|
+
SequenceStyle_Block_instance = new SequenceStyle('Block', 0);
|
|
481
|
+
SequenceStyle_Flow_instance = new SequenceStyle('Flow', 1);
|
|
482
|
+
}
|
|
483
|
+
function SequenceStyle(name, ordinal) {
|
|
484
|
+
Enum.call(this, name, ordinal);
|
|
485
|
+
}
|
|
486
|
+
var SingleLineStringStyle_DoubleQuoted_instance;
|
|
487
|
+
var SingleLineStringStyle_SingleQuoted_instance;
|
|
488
|
+
var SingleLineStringStyle_Plain_instance;
|
|
489
|
+
var SingleLineStringStyle_PlainExceptAmbiguous_instance;
|
|
490
|
+
var SingleLineStringStyle_entriesInitialized;
|
|
491
|
+
function SingleLineStringStyle_initEntries() {
|
|
492
|
+
if (SingleLineStringStyle_entriesInitialized)
|
|
493
|
+
return Unit_instance;
|
|
494
|
+
SingleLineStringStyle_entriesInitialized = true;
|
|
495
|
+
SingleLineStringStyle_DoubleQuoted_instance = new SingleLineStringStyle('DoubleQuoted', 0);
|
|
496
|
+
SingleLineStringStyle_SingleQuoted_instance = new SingleLineStringStyle('SingleQuoted', 1);
|
|
497
|
+
SingleLineStringStyle_Plain_instance = new SingleLineStringStyle('Plain', 2);
|
|
498
|
+
SingleLineStringStyle_PlainExceptAmbiguous_instance = new SingleLineStringStyle('PlainExceptAmbiguous', 3);
|
|
499
|
+
}
|
|
500
|
+
function SingleLineStringStyle(name, ordinal) {
|
|
501
|
+
Enum.call(this, name, ordinal);
|
|
502
|
+
}
|
|
503
|
+
protoOf(SingleLineStringStyle).who = function () {
|
|
504
|
+
var tmp;
|
|
505
|
+
switch (this.v2_1) {
|
|
506
|
+
case 0:
|
|
507
|
+
tmp = MultiLineStringStyle_DoubleQuoted_getInstance();
|
|
508
|
+
break;
|
|
509
|
+
case 1:
|
|
510
|
+
tmp = MultiLineStringStyle_SingleQuoted_getInstance();
|
|
511
|
+
break;
|
|
512
|
+
case 2:
|
|
513
|
+
tmp = MultiLineStringStyle_Plain_getInstance();
|
|
514
|
+
break;
|
|
515
|
+
case 3:
|
|
516
|
+
tmp = MultiLineStringStyle_Plain_getInstance();
|
|
517
|
+
break;
|
|
518
|
+
default:
|
|
519
|
+
noWhenBranchMatchedException();
|
|
520
|
+
break;
|
|
521
|
+
}
|
|
522
|
+
return tmp;
|
|
523
|
+
};
|
|
524
|
+
var MultiLineStringStyle_Literal_instance;
|
|
525
|
+
var MultiLineStringStyle_DoubleQuoted_instance;
|
|
526
|
+
var MultiLineStringStyle_SingleQuoted_instance;
|
|
527
|
+
var MultiLineStringStyle_Plain_instance;
|
|
528
|
+
var MultiLineStringStyle_entriesInitialized;
|
|
529
|
+
function MultiLineStringStyle_initEntries() {
|
|
530
|
+
if (MultiLineStringStyle_entriesInitialized)
|
|
531
|
+
return Unit_instance;
|
|
532
|
+
MultiLineStringStyle_entriesInitialized = true;
|
|
533
|
+
MultiLineStringStyle_Literal_instance = new MultiLineStringStyle('Literal', 0);
|
|
534
|
+
MultiLineStringStyle_DoubleQuoted_instance = new MultiLineStringStyle('DoubleQuoted', 1);
|
|
535
|
+
MultiLineStringStyle_SingleQuoted_instance = new MultiLineStringStyle('SingleQuoted', 2);
|
|
536
|
+
MultiLineStringStyle_Plain_instance = new MultiLineStringStyle('Plain', 3);
|
|
537
|
+
}
|
|
538
|
+
function MultiLineStringStyle(name, ordinal) {
|
|
539
|
+
Enum.call(this, name, ordinal);
|
|
540
|
+
}
|
|
541
|
+
var AmbiguousQuoteStyle_DoubleQuoted_instance;
|
|
542
|
+
var AmbiguousQuoteStyle_SingleQuoted_instance;
|
|
543
|
+
var AmbiguousQuoteStyle_entriesInitialized;
|
|
544
|
+
function AmbiguousQuoteStyle_initEntries() {
|
|
545
|
+
if (AmbiguousQuoteStyle_entriesInitialized)
|
|
546
|
+
return Unit_instance;
|
|
547
|
+
AmbiguousQuoteStyle_entriesInitialized = true;
|
|
548
|
+
AmbiguousQuoteStyle_DoubleQuoted_instance = new AmbiguousQuoteStyle('DoubleQuoted', 0);
|
|
549
|
+
AmbiguousQuoteStyle_SingleQuoted_instance = new AmbiguousQuoteStyle('SingleQuoted', 1);
|
|
550
|
+
}
|
|
551
|
+
function AmbiguousQuoteStyle(name, ordinal) {
|
|
552
|
+
Enum.call(this, name, ordinal);
|
|
553
|
+
}
|
|
554
|
+
function PolymorphismStyle_Tag_getInstance() {
|
|
555
|
+
PolymorphismStyle_initEntries();
|
|
556
|
+
return PolymorphismStyle_Tag_instance;
|
|
557
|
+
}
|
|
558
|
+
function PolymorphismStyle_None_getInstance() {
|
|
559
|
+
PolymorphismStyle_initEntries();
|
|
560
|
+
return PolymorphismStyle_None_instance;
|
|
561
|
+
}
|
|
562
|
+
function SequenceStyle_Block_getInstance() {
|
|
563
|
+
SequenceStyle_initEntries();
|
|
564
|
+
return SequenceStyle_Block_instance;
|
|
565
|
+
}
|
|
566
|
+
function SingleLineStringStyle_DoubleQuoted_getInstance() {
|
|
567
|
+
SingleLineStringStyle_initEntries();
|
|
568
|
+
return SingleLineStringStyle_DoubleQuoted_instance;
|
|
569
|
+
}
|
|
570
|
+
function SingleLineStringStyle_PlainExceptAmbiguous_getInstance() {
|
|
571
|
+
SingleLineStringStyle_initEntries();
|
|
572
|
+
return SingleLineStringStyle_PlainExceptAmbiguous_instance;
|
|
573
|
+
}
|
|
574
|
+
function MultiLineStringStyle_DoubleQuoted_getInstance() {
|
|
575
|
+
MultiLineStringStyle_initEntries();
|
|
576
|
+
return MultiLineStringStyle_DoubleQuoted_instance;
|
|
577
|
+
}
|
|
578
|
+
function MultiLineStringStyle_SingleQuoted_getInstance() {
|
|
579
|
+
MultiLineStringStyle_initEntries();
|
|
580
|
+
return MultiLineStringStyle_SingleQuoted_instance;
|
|
581
|
+
}
|
|
582
|
+
function MultiLineStringStyle_Plain_getInstance() {
|
|
583
|
+
MultiLineStringStyle_initEntries();
|
|
584
|
+
return MultiLineStringStyle_Plain_instance;
|
|
585
|
+
}
|
|
586
|
+
function AmbiguousQuoteStyle_DoubleQuoted_getInstance() {
|
|
587
|
+
AmbiguousQuoteStyle_initEntries();
|
|
588
|
+
return AmbiguousQuoteStyle_DoubleQuoted_instance;
|
|
589
|
+
}
|
|
590
|
+
function YamlContextualInput(node, yaml, context, configuration) {
|
|
591
|
+
YamlInput.call(this, node, yaml, context, configuration);
|
|
592
|
+
}
|
|
593
|
+
protoOf(YamlContextualInput).nz = function (descriptor) {
|
|
594
|
+
throw IllegalStateException_init_$Create$('Must call beginStructure() and use returned Decoder');
|
|
595
|
+
};
|
|
596
|
+
protoOf(YamlContextualInput).gy = function () {
|
|
597
|
+
throw IllegalStateException_init_$Create$('Must call beginStructure() and use returned Decoder');
|
|
598
|
+
};
|
|
599
|
+
protoOf(YamlContextualInput).wy = function (descriptor) {
|
|
600
|
+
return Companion_getInstance_1().phn(this.qhn_1, this.rhn_1, this.lz(), this.thn_1, descriptor);
|
|
601
|
+
};
|
|
602
|
+
function YamlScalarFormatException(message, path, originalValue) {
|
|
603
|
+
YamlException.call(this, message, path);
|
|
604
|
+
captureStack(this, YamlScalarFormatException);
|
|
605
|
+
this.hhp_1 = originalValue;
|
|
606
|
+
}
|
|
607
|
+
function DuplicateKeyException(originalPath, duplicatePath, key) {
|
|
608
|
+
YamlException.call(this, 'Duplicate key ' + key + '. It was previously given at line ' + originalPath.php_1.hhn_1 + ', column ' + originalPath.php_1.ihn_1 + '.', duplicatePath);
|
|
609
|
+
captureStack(this, DuplicateKeyException);
|
|
610
|
+
this.whp_1 = originalPath;
|
|
611
|
+
this.xhp_1 = duplicatePath;
|
|
612
|
+
this.yhp_1 = key;
|
|
613
|
+
this.zhp_1 = this.whp_1.php_1;
|
|
614
|
+
this.ahq_1 = this.xhp_1.php_1;
|
|
615
|
+
}
|
|
616
|
+
function IncorrectTypeException(message, path) {
|
|
617
|
+
YamlException.call(this, message, path);
|
|
618
|
+
captureStack(this, IncorrectTypeException);
|
|
619
|
+
}
|
|
620
|
+
function MissingTypeTagException(path) {
|
|
621
|
+
IncorrectTypeException.call(this, 'Value is missing a type tag (eg. !<type>)', path);
|
|
622
|
+
captureStack(this, MissingTypeTagException);
|
|
623
|
+
}
|
|
624
|
+
function InvalidPropertyValueException(propertyName, reason, path, cause) {
|
|
625
|
+
cause = cause === VOID ? null : cause;
|
|
626
|
+
YamlException.call(this, "Value for '" + propertyName + "' is invalid: " + reason, path, cause);
|
|
627
|
+
captureStack(this, InvalidPropertyValueException);
|
|
628
|
+
this.hhq_1 = propertyName;
|
|
629
|
+
this.ihq_1 = reason;
|
|
630
|
+
}
|
|
631
|
+
function MissingRequiredPropertyException(propertyName, path, cause) {
|
|
632
|
+
cause = cause === VOID ? null : cause;
|
|
633
|
+
YamlException.call(this, "Property '" + propertyName + "' is required but it is missing.", path, cause);
|
|
634
|
+
captureStack(this, MissingRequiredPropertyException);
|
|
635
|
+
this.phq_1 = propertyName;
|
|
636
|
+
}
|
|
637
|
+
function EmptyYamlDocumentException(message, path) {
|
|
638
|
+
YamlException.call(this, message, path);
|
|
639
|
+
captureStack(this, EmptyYamlDocumentException);
|
|
640
|
+
}
|
|
641
|
+
function MalformedYamlException(message, path) {
|
|
642
|
+
YamlException.call(this, message, path);
|
|
643
|
+
captureStack(this, MalformedYamlException);
|
|
644
|
+
}
|
|
645
|
+
function ForbiddenAnchorOrAliasException(message, path) {
|
|
646
|
+
YamlException.call(this, message, path);
|
|
647
|
+
captureStack(this, ForbiddenAnchorOrAliasException);
|
|
648
|
+
}
|
|
649
|
+
function NoAnchorForExtensionException(key, extensionDefinitionPrefix, path) {
|
|
650
|
+
YamlException.call(this, "The key '" + key + "' starts with the extension definition prefix '" + extensionDefinitionPrefix + "' but does not define an anchor.", path);
|
|
651
|
+
captureStack(this, NoAnchorForExtensionException);
|
|
652
|
+
this.whq_1 = key;
|
|
653
|
+
this.xhq_1 = extensionDefinitionPrefix;
|
|
654
|
+
}
|
|
655
|
+
function UnknownAnchorException(anchorName, path) {
|
|
656
|
+
YamlException.call(this, "Unknown anchor '" + anchorName + "'.", path);
|
|
657
|
+
captureStack(this, UnknownAnchorException);
|
|
658
|
+
this.ehr_1 = anchorName;
|
|
659
|
+
}
|
|
660
|
+
function YamlException(message, path, cause) {
|
|
661
|
+
cause = cause === VOID ? null : cause;
|
|
662
|
+
SerializationException_init_$Init$(message, cause, this);
|
|
663
|
+
captureStack(this, YamlException);
|
|
664
|
+
this.ihp_1 = message;
|
|
665
|
+
this.jhp_1 = path;
|
|
666
|
+
this.khp_1 = cause;
|
|
667
|
+
this.lhp_1 = this.jhp_1.php_1;
|
|
668
|
+
this.mhp_1 = this.lhp_1.hhn_1;
|
|
669
|
+
this.nhp_1 = this.lhp_1.ihn_1;
|
|
670
|
+
delete this.message;
|
|
671
|
+
delete this.cause;
|
|
672
|
+
}
|
|
673
|
+
protoOf(YamlException).r1 = function () {
|
|
674
|
+
return this.ihp_1;
|
|
675
|
+
};
|
|
676
|
+
protoOf(YamlException).s1 = function () {
|
|
677
|
+
return this.khp_1;
|
|
678
|
+
};
|
|
679
|
+
protoOf(YamlException).toString = function () {
|
|
680
|
+
return '' + getKClassFromExpression(this).zb() + ' at ' + this.jhp_1.fhr() + ' on line ' + this.mhp_1 + ', column ' + this.nhp_1 + ': ' + this.r1();
|
|
681
|
+
};
|
|
682
|
+
function UnexpectedNullValueException(path) {
|
|
683
|
+
YamlException.call(this, 'Unexpected null or empty value for non-null field.', path);
|
|
684
|
+
captureStack(this, UnexpectedNullValueException);
|
|
685
|
+
}
|
|
686
|
+
function UnknownPropertyException(propertyName, validPropertyNames, path) {
|
|
687
|
+
YamlException.call(this, "Unknown property '" + propertyName + "'. Known properties are: " + joinToString(sorted(validPropertyNames), ', '), path);
|
|
688
|
+
captureStack(this, UnknownPropertyException);
|
|
689
|
+
this.mhr_1 = propertyName;
|
|
690
|
+
this.nhr_1 = validPropertyNames;
|
|
691
|
+
}
|
|
692
|
+
function UnknownPolymorphicTypeException(typeName, validTypeNames, path, cause) {
|
|
693
|
+
cause = cause === VOID ? null : cause;
|
|
694
|
+
YamlException.call(this, "Unknown type '" + typeName + "'. Known types are: " + joinToString(sorted(validTypeNames), ', '), path, cause);
|
|
695
|
+
captureStack(this, UnknownPolymorphicTypeException);
|
|
696
|
+
this.uhr_1 = typeName;
|
|
697
|
+
this.vhr_1 = validTypeNames;
|
|
698
|
+
}
|
|
699
|
+
function createContextual($this, node, yaml, context, configuration, descriptor) {
|
|
700
|
+
var tmp5_safe_receiver = getContextualDescriptor(context, descriptor);
|
|
701
|
+
var tmp;
|
|
702
|
+
if (tmp5_safe_receiver == null) {
|
|
703
|
+
tmp = null;
|
|
704
|
+
} else {
|
|
705
|
+
// Inline function 'kotlin.let' call
|
|
706
|
+
tmp = Companion_getInstance_1().phn(node, yaml, context, configuration, tmp5_safe_receiver);
|
|
707
|
+
}
|
|
708
|
+
var tmp0_elvis_lhs = tmp;
|
|
709
|
+
return tmp0_elvis_lhs == null ? new YamlContextualInput(node, yaml, context, configuration) : tmp0_elvis_lhs;
|
|
710
|
+
}
|
|
711
|
+
function createPolymorphicMapDeserializer($this, node, yaml, context, configuration) {
|
|
712
|
+
var desiredKey = configuration.zhn_1;
|
|
713
|
+
var typeName = getValue($this, node, desiredKey);
|
|
714
|
+
if (typeName instanceof YamlList)
|
|
715
|
+
throw new InvalidPropertyValueException(desiredKey, 'expected a string, but got a list', typeName.ihs_1);
|
|
716
|
+
else {
|
|
717
|
+
if (typeName instanceof YamlMap)
|
|
718
|
+
throw new InvalidPropertyValueException(desiredKey, 'expected a string, but got a map', typeName.fhs_1);
|
|
719
|
+
else {
|
|
720
|
+
if (typeName instanceof YamlNull)
|
|
721
|
+
throw new InvalidPropertyValueException(desiredKey, 'expected a string, but got a null value', typeName.chs_1);
|
|
722
|
+
else {
|
|
723
|
+
if (typeName instanceof YamlTaggedNode)
|
|
724
|
+
throw new InvalidPropertyValueException(desiredKey, 'expected a string, but got a tagged value', typeName.ahs());
|
|
725
|
+
else {
|
|
726
|
+
if (typeName instanceof YamlScalar) {
|
|
727
|
+
var remainingProperties = withoutKey($this, node, desiredKey);
|
|
728
|
+
return new YamlPolymorphicInput(typeName.xhr_1, typeName.yhr_1, remainingProperties, yaml, context, configuration);
|
|
729
|
+
} else {
|
|
730
|
+
noWhenBranchMatchedException();
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
function getValue($this, _this__u8e3s4, desiredKey) {
|
|
738
|
+
var tmp0_elvis_lhs = _this__u8e3s4.jhs(desiredKey);
|
|
739
|
+
var tmp;
|
|
740
|
+
if (tmp0_elvis_lhs == null) {
|
|
741
|
+
throw new MissingRequiredPropertyException(desiredKey, _this__u8e3s4.fhs_1);
|
|
742
|
+
} else {
|
|
743
|
+
tmp = tmp0_elvis_lhs;
|
|
744
|
+
}
|
|
745
|
+
return tmp;
|
|
746
|
+
}
|
|
747
|
+
function withoutKey($this, _this__u8e3s4, key) {
|
|
748
|
+
// Inline function 'kotlin.collections.filterKeys' call
|
|
749
|
+
var this_0 = _this__u8e3s4.ehs_1;
|
|
750
|
+
var result = LinkedHashMap_init_$Create$();
|
|
751
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
752
|
+
var _iterator__ex2g4s = this_0.z().p();
|
|
753
|
+
while (_iterator__ex2g4s.q()) {
|
|
754
|
+
var entry = _iterator__ex2g4s.r();
|
|
755
|
+
if (!(entry.a1().xhr_1 === key)) {
|
|
756
|
+
result.r2(entry.a1(), entry.b1());
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
return _this__u8e3s4.khs(result);
|
|
760
|
+
}
|
|
761
|
+
function Companion_0() {
|
|
762
|
+
Companion_instance_2 = this;
|
|
763
|
+
var tmp = this;
|
|
764
|
+
// Inline function 'kotlin.text.toRegex' call
|
|
765
|
+
var this_0 = "^Field '(.*)' is required for type with serial name '.*', but it was missing$";
|
|
766
|
+
tmp.ohn_1 = Regex_init_$Create$(this_0);
|
|
767
|
+
}
|
|
768
|
+
protoOf(Companion_0).phn = function (node, yaml, context, configuration, descriptor) {
|
|
769
|
+
var tmp;
|
|
770
|
+
if (node instanceof YamlNull) {
|
|
771
|
+
var tmp_0;
|
|
772
|
+
var tmp_1;
|
|
773
|
+
var tmp_2 = descriptor.uw();
|
|
774
|
+
if (tmp_2 instanceof PolymorphicKind) {
|
|
775
|
+
tmp_1 = !descriptor.qw();
|
|
776
|
+
} else {
|
|
777
|
+
tmp_1 = false;
|
|
778
|
+
}
|
|
779
|
+
if (tmp_1) {
|
|
780
|
+
throw new MissingTypeTagException(node.chs_1);
|
|
781
|
+
} else {
|
|
782
|
+
tmp_0 = new YamlNullInput(node, yaml, context, configuration);
|
|
783
|
+
}
|
|
784
|
+
tmp = tmp_0;
|
|
785
|
+
} else {
|
|
786
|
+
if (node instanceof YamlScalar) {
|
|
787
|
+
var tmp_3;
|
|
788
|
+
var tmp_4;
|
|
789
|
+
var tmp_5;
|
|
790
|
+
var tmp_6 = descriptor.uw();
|
|
791
|
+
if (tmp_6 instanceof PrimitiveKind) {
|
|
792
|
+
tmp_5 = true;
|
|
793
|
+
} else {
|
|
794
|
+
var tmp_7 = descriptor.uw();
|
|
795
|
+
tmp_5 = tmp_7 instanceof ENUM;
|
|
796
|
+
}
|
|
797
|
+
if (tmp_5) {
|
|
798
|
+
tmp_4 = true;
|
|
799
|
+
} else {
|
|
800
|
+
tmp_4 = descriptor.vw();
|
|
801
|
+
}
|
|
802
|
+
if (tmp_4) {
|
|
803
|
+
tmp_3 = new YamlScalarInput(node, yaml, context, configuration);
|
|
804
|
+
} else {
|
|
805
|
+
var tmp_8 = descriptor.uw();
|
|
806
|
+
if (tmp_8 instanceof CONTEXTUAL) {
|
|
807
|
+
tmp_3 = createContextual(this, node, yaml, context, configuration, descriptor);
|
|
808
|
+
} else {
|
|
809
|
+
var tmp_9 = descriptor.uw();
|
|
810
|
+
if (tmp_9 instanceof PolymorphicKind) {
|
|
811
|
+
throw new MissingTypeTagException(node.yhr_1);
|
|
812
|
+
} else {
|
|
813
|
+
throw new IncorrectTypeException('Expected ' + get_friendlyDescription(descriptor.uw()) + ', but got a scalar value', node.yhr_1);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
tmp = tmp_3;
|
|
818
|
+
} else {
|
|
819
|
+
if (node instanceof YamlList) {
|
|
820
|
+
var tmp2_subject = descriptor.uw();
|
|
821
|
+
var tmp_10;
|
|
822
|
+
if (tmp2_subject instanceof LIST) {
|
|
823
|
+
tmp_10 = new YamlListInput(node, yaml, context, configuration);
|
|
824
|
+
} else {
|
|
825
|
+
if (tmp2_subject instanceof CONTEXTUAL) {
|
|
826
|
+
tmp_10 = createContextual(this, node, yaml, context, configuration, descriptor);
|
|
827
|
+
} else {
|
|
828
|
+
throw new IncorrectTypeException('Expected ' + get_friendlyDescription(descriptor.uw()) + ', but got a list', node.ihs_1);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
tmp = tmp_10;
|
|
832
|
+
} else {
|
|
833
|
+
if (node instanceof YamlMap) {
|
|
834
|
+
var tmp3_subject = descriptor.uw();
|
|
835
|
+
var tmp_11;
|
|
836
|
+
var tmp_12;
|
|
837
|
+
if (tmp3_subject instanceof CLASS) {
|
|
838
|
+
tmp_12 = true;
|
|
839
|
+
} else {
|
|
840
|
+
tmp_12 = equals(tmp3_subject, OBJECT_getInstance());
|
|
841
|
+
}
|
|
842
|
+
if (tmp_12) {
|
|
843
|
+
tmp_11 = new YamlObjectInput(node, yaml, context, configuration);
|
|
844
|
+
} else {
|
|
845
|
+
if (tmp3_subject instanceof MAP) {
|
|
846
|
+
tmp_11 = new YamlMapInput(node, yaml, context, configuration);
|
|
847
|
+
} else {
|
|
848
|
+
if (tmp3_subject instanceof CONTEXTUAL) {
|
|
849
|
+
tmp_11 = createContextual(this, node, yaml, context, configuration, descriptor);
|
|
850
|
+
} else {
|
|
851
|
+
if (tmp3_subject instanceof PolymorphicKind) {
|
|
852
|
+
var tmp_13;
|
|
853
|
+
switch (configuration.yhn_1.v2_1) {
|
|
854
|
+
case 2:
|
|
855
|
+
throw new IncorrectTypeException("Encountered a polymorphic map descriptor but PolymorphismStyle is 'None'", node.fhs_1);
|
|
856
|
+
case 0:
|
|
857
|
+
throw new MissingTypeTagException(node.fhs_1);
|
|
858
|
+
case 1:
|
|
859
|
+
tmp_13 = createPolymorphicMapDeserializer(this, node, yaml, context, configuration);
|
|
860
|
+
break;
|
|
861
|
+
default:
|
|
862
|
+
noWhenBranchMatchedException();
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
tmp_11 = tmp_13;
|
|
866
|
+
} else {
|
|
867
|
+
throw new IncorrectTypeException('Expected ' + get_friendlyDescription(descriptor.uw()) + ', but got a map', node.fhs_1);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
tmp = tmp_11;
|
|
873
|
+
} else {
|
|
874
|
+
if (node instanceof YamlTaggedNode) {
|
|
875
|
+
var tmp_14;
|
|
876
|
+
var tmp_15;
|
|
877
|
+
var tmp_16 = descriptor.uw();
|
|
878
|
+
if (tmp_16 instanceof PolymorphicKind) {
|
|
879
|
+
tmp_15 = configuration.yhn_1.equals(PolymorphismStyle_None_getInstance());
|
|
880
|
+
} else {
|
|
881
|
+
tmp_15 = false;
|
|
882
|
+
}
|
|
883
|
+
if (tmp_15) {
|
|
884
|
+
throw new IncorrectTypeException("Encountered a tagged polymorphic descriptor but PolymorphismStyle is 'None'", node.ahs());
|
|
885
|
+
} else {
|
|
886
|
+
var tmp_17;
|
|
887
|
+
var tmp_18 = descriptor.uw();
|
|
888
|
+
if (tmp_18 instanceof PolymorphicKind) {
|
|
889
|
+
tmp_17 = configuration.yhn_1.equals(PolymorphismStyle_Tag_getInstance());
|
|
890
|
+
} else {
|
|
891
|
+
tmp_17 = false;
|
|
892
|
+
}
|
|
893
|
+
if (tmp_17) {
|
|
894
|
+
tmp_14 = new YamlPolymorphicInput(node.mhs_1, node.ahs(), node.nhs_1, yaml, context, configuration);
|
|
895
|
+
} else {
|
|
896
|
+
tmp_14 = this.phn(node.nhs_1, yaml, context, configuration, descriptor);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
tmp = tmp_14;
|
|
900
|
+
} else {
|
|
901
|
+
noWhenBranchMatchedException();
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
return tmp;
|
|
908
|
+
};
|
|
909
|
+
var Companion_instance_2;
|
|
910
|
+
function Companion_getInstance_1() {
|
|
911
|
+
if (Companion_instance_2 == null)
|
|
912
|
+
new Companion_0();
|
|
913
|
+
return Companion_instance_2;
|
|
914
|
+
}
|
|
915
|
+
function throwIfMissingRequiredPropertyException($this, e) {
|
|
916
|
+
var tmp0_elvis_lhs = Companion_getInstance_1().ohn_1.qe(ensureNotNull(e.message));
|
|
917
|
+
var tmp;
|
|
918
|
+
if (tmp0_elvis_lhs == null) {
|
|
919
|
+
return Unit_instance;
|
|
920
|
+
} else {
|
|
921
|
+
tmp = tmp0_elvis_lhs;
|
|
922
|
+
}
|
|
923
|
+
var match = tmp;
|
|
924
|
+
throw new MissingRequiredPropertyException(match.nf().u(1), $this.qhn_1.ahs(), e);
|
|
925
|
+
}
|
|
926
|
+
function YamlInput(node, yaml, serializersModule, configuration) {
|
|
927
|
+
Companion_getInstance_1();
|
|
928
|
+
AbstractDecoder.call(this);
|
|
929
|
+
this.qhn_1 = node;
|
|
930
|
+
this.rhn_1 = yaml;
|
|
931
|
+
this.shn_1 = serializersModule;
|
|
932
|
+
this.thn_1 = configuration;
|
|
933
|
+
}
|
|
934
|
+
protoOf(YamlInput).lz = function () {
|
|
935
|
+
return this.shn_1;
|
|
936
|
+
};
|
|
937
|
+
protoOf(YamlInput).vy = function (deserializer) {
|
|
938
|
+
try {
|
|
939
|
+
return protoOf(AbstractDecoder).vy.call(this, deserializer);
|
|
940
|
+
} catch ($p) {
|
|
941
|
+
if ($p instanceof SerializationException) {
|
|
942
|
+
var e = $p;
|
|
943
|
+
throwIfMissingRequiredPropertyException(this, e);
|
|
944
|
+
throw e;
|
|
945
|
+
} else {
|
|
946
|
+
throw $p;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
function get_friendlyDescription(_this__u8e3s4) {
|
|
951
|
+
var tmp;
|
|
952
|
+
if (_this__u8e3s4 instanceof MAP) {
|
|
953
|
+
tmp = 'a map';
|
|
954
|
+
} else {
|
|
955
|
+
if (_this__u8e3s4 instanceof CLASS) {
|
|
956
|
+
tmp = 'an object';
|
|
957
|
+
} else {
|
|
958
|
+
if (_this__u8e3s4 instanceof OBJECT) {
|
|
959
|
+
tmp = 'an object';
|
|
960
|
+
} else {
|
|
961
|
+
if (_this__u8e3s4 instanceof LIST) {
|
|
962
|
+
tmp = 'a list';
|
|
963
|
+
} else {
|
|
964
|
+
if (_this__u8e3s4 instanceof STRING) {
|
|
965
|
+
tmp = 'a string';
|
|
966
|
+
} else {
|
|
967
|
+
if (_this__u8e3s4 instanceof BOOLEAN) {
|
|
968
|
+
tmp = 'a boolean';
|
|
969
|
+
} else {
|
|
970
|
+
if (_this__u8e3s4 instanceof BYTE) {
|
|
971
|
+
tmp = 'a byte';
|
|
972
|
+
} else {
|
|
973
|
+
if (_this__u8e3s4 instanceof CHAR) {
|
|
974
|
+
tmp = 'a character';
|
|
975
|
+
} else {
|
|
976
|
+
if (_this__u8e3s4 instanceof DOUBLE) {
|
|
977
|
+
tmp = 'a double';
|
|
978
|
+
} else {
|
|
979
|
+
if (_this__u8e3s4 instanceof FLOAT) {
|
|
980
|
+
tmp = 'a float';
|
|
981
|
+
} else {
|
|
982
|
+
if (_this__u8e3s4 instanceof INT) {
|
|
983
|
+
tmp = 'an integer';
|
|
984
|
+
} else {
|
|
985
|
+
if (_this__u8e3s4 instanceof SHORT) {
|
|
986
|
+
tmp = 'a short';
|
|
987
|
+
} else {
|
|
988
|
+
if (_this__u8e3s4 instanceof LONG) {
|
|
989
|
+
tmp = 'a long';
|
|
990
|
+
} else {
|
|
991
|
+
if (_this__u8e3s4 instanceof ENUM) {
|
|
992
|
+
tmp = 'an enumeration value';
|
|
993
|
+
} else {
|
|
994
|
+
tmp = 'a ' + _this__u8e3s4.toString() + ' value';
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
return tmp;
|
|
1010
|
+
}
|
|
1011
|
+
function _get_currentElementDecoder__u73r00($this) {
|
|
1012
|
+
var tmp = $this.uhs_1;
|
|
1013
|
+
if (!(tmp == null))
|
|
1014
|
+
return tmp;
|
|
1015
|
+
else {
|
|
1016
|
+
throwUninitializedPropertyAccessException('currentElementDecoder');
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
function _get_haveStartedReadingElements__wj0go1($this) {
|
|
1020
|
+
return $this.ths_1 > 0;
|
|
1021
|
+
}
|
|
1022
|
+
function YamlListInput(list, yaml, context, configuration) {
|
|
1023
|
+
YamlInput.call(this, list, yaml, context, configuration);
|
|
1024
|
+
this.shs_1 = list;
|
|
1025
|
+
this.ths_1 = 0;
|
|
1026
|
+
}
|
|
1027
|
+
protoOf(YamlListInput).oz = function (descriptor) {
|
|
1028
|
+
return this.shs_1.hhs_1.s();
|
|
1029
|
+
};
|
|
1030
|
+
protoOf(YamlListInput).nz = function (descriptor) {
|
|
1031
|
+
if (this.ths_1 === this.shs_1.hhs_1.s()) {
|
|
1032
|
+
return -1;
|
|
1033
|
+
}
|
|
1034
|
+
this.uhs_1 = Companion_getInstance_1().phn(this.shs_1.hhs_1.u(this.ths_1), this.rhn_1, this.lz(), this.thn_1, descriptor.bx(0));
|
|
1035
|
+
var _unary__edvuaz = this.ths_1;
|
|
1036
|
+
this.ths_1 = _unary__edvuaz + 1 | 0;
|
|
1037
|
+
return _unary__edvuaz;
|
|
1038
|
+
};
|
|
1039
|
+
protoOf(YamlListInput).hy = function () {
|
|
1040
|
+
if (!_get_haveStartedReadingElements__wj0go1(this)) {
|
|
1041
|
+
return true;
|
|
1042
|
+
}
|
|
1043
|
+
return _get_currentElementDecoder__u73r00(this).hy();
|
|
1044
|
+
};
|
|
1045
|
+
protoOf(YamlListInput).ry = function () {
|
|
1046
|
+
return _get_currentElementDecoder__u73r00(this).ry();
|
|
1047
|
+
};
|
|
1048
|
+
protoOf(YamlListInput).my = function () {
|
|
1049
|
+
return _get_currentElementDecoder__u73r00(this).my();
|
|
1050
|
+
};
|
|
1051
|
+
protoOf(YamlListInput).ny = function () {
|
|
1052
|
+
return _get_currentElementDecoder__u73r00(this).ny();
|
|
1053
|
+
};
|
|
1054
|
+
protoOf(YamlListInput).ly = function () {
|
|
1055
|
+
return _get_currentElementDecoder__u73r00(this).ly();
|
|
1056
|
+
};
|
|
1057
|
+
protoOf(YamlListInput).ky = function () {
|
|
1058
|
+
return _get_currentElementDecoder__u73r00(this).ky();
|
|
1059
|
+
};
|
|
1060
|
+
protoOf(YamlListInput).py = function () {
|
|
1061
|
+
return _get_currentElementDecoder__u73r00(this).py();
|
|
1062
|
+
};
|
|
1063
|
+
protoOf(YamlListInput).oy = function () {
|
|
1064
|
+
return _get_currentElementDecoder__u73r00(this).oy();
|
|
1065
|
+
};
|
|
1066
|
+
protoOf(YamlListInput).jy = function () {
|
|
1067
|
+
return _get_currentElementDecoder__u73r00(this).jy();
|
|
1068
|
+
};
|
|
1069
|
+
protoOf(YamlListInput).qy = function () {
|
|
1070
|
+
return _get_currentElementDecoder__u73r00(this).qy();
|
|
1071
|
+
};
|
|
1072
|
+
protoOf(YamlListInput).sy = function (enumDescriptor) {
|
|
1073
|
+
return _get_currentElementDecoder__u73r00(this).sy(enumDescriptor);
|
|
1074
|
+
};
|
|
1075
|
+
protoOf(YamlListInput).wy = function (descriptor) {
|
|
1076
|
+
if (_get_haveStartedReadingElements__wj0go1(this)) {
|
|
1077
|
+
return _get_currentElementDecoder__u73r00(this);
|
|
1078
|
+
}
|
|
1079
|
+
return protoOf(YamlInput).wy.call(this, descriptor);
|
|
1080
|
+
};
|
|
1081
|
+
function _get_currentEntry__q2u5ma($this) {
|
|
1082
|
+
var tmp = $this.eht_1;
|
|
1083
|
+
if (!(tmp == null))
|
|
1084
|
+
return tmp;
|
|
1085
|
+
else {
|
|
1086
|
+
throwUninitializedPropertyAccessException('currentEntry');
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
function YamlMapInput$beginStructure$lambda($descriptor) {
|
|
1090
|
+
return function ($this$fromCurrentValue) {
|
|
1091
|
+
return $this$fromCurrentValue.wy($descriptor);
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
function YamlMapInput(map, yaml, context, configuration) {
|
|
1095
|
+
YamlMapLikeInputBase.call(this, map, yaml, context, configuration);
|
|
1096
|
+
this.cht_1 = toList(map.ehs_1.z());
|
|
1097
|
+
this.dht_1 = 0;
|
|
1098
|
+
}
|
|
1099
|
+
protoOf(YamlMapInput).nz = function (descriptor) {
|
|
1100
|
+
if (this.dht_1 === imul(this.cht_1.s(), 2)) {
|
|
1101
|
+
return -1;
|
|
1102
|
+
}
|
|
1103
|
+
var entryIndex = this.dht_1 / 2 | 0;
|
|
1104
|
+
this.eht_1 = this.cht_1.u(entryIndex);
|
|
1105
|
+
this.kht_1 = _get_currentEntry__q2u5ma(this).a1();
|
|
1106
|
+
this.lht_1 = !((this.dht_1 % 2 | 0) === 0);
|
|
1107
|
+
var tmp = this;
|
|
1108
|
+
var tmp_0;
|
|
1109
|
+
switch (this.lht_1) {
|
|
1110
|
+
case true:
|
|
1111
|
+
var tmp_1;
|
|
1112
|
+
try {
|
|
1113
|
+
tmp_1 = Companion_getInstance_1().phn(_get_currentEntry__q2u5ma(this).b1(), this.rhn_1, this.lz(), this.thn_1, descriptor.bx(1));
|
|
1114
|
+
} catch ($p) {
|
|
1115
|
+
var tmp_2;
|
|
1116
|
+
if ($p instanceof IncorrectTypeException) {
|
|
1117
|
+
var e = $p;
|
|
1118
|
+
throw new InvalidPropertyValueException(this.mht(), e.r1(), e.jhp_1, e);
|
|
1119
|
+
} else {
|
|
1120
|
+
throw $p;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
tmp_0 = tmp_1;
|
|
1125
|
+
break;
|
|
1126
|
+
case false:
|
|
1127
|
+
tmp_0 = Companion_getInstance_1().phn(this.nht(), this.rhn_1, this.lz(), this.thn_1, descriptor.bx(0));
|
|
1128
|
+
break;
|
|
1129
|
+
default:
|
|
1130
|
+
noWhenBranchMatchedException();
|
|
1131
|
+
break;
|
|
1132
|
+
}
|
|
1133
|
+
tmp.jht_1 = tmp_0;
|
|
1134
|
+
var _unary__edvuaz = this.dht_1;
|
|
1135
|
+
this.dht_1 = _unary__edvuaz + 1 | 0;
|
|
1136
|
+
return _unary__edvuaz;
|
|
1137
|
+
};
|
|
1138
|
+
protoOf(YamlMapInput).wy = function (descriptor) {
|
|
1139
|
+
if (this.pht()) {
|
|
1140
|
+
return this.oht(YamlMapInput$beginStructure$lambda(descriptor));
|
|
1141
|
+
}
|
|
1142
|
+
return protoOf(YamlMapLikeInputBase).wy.call(this, descriptor);
|
|
1143
|
+
};
|
|
1144
|
+
function YamlMapLikeInputBase$decodeNotNullMark$lambda($this$fromCurrentValue) {
|
|
1145
|
+
return $this$fromCurrentValue.hy();
|
|
1146
|
+
}
|
|
1147
|
+
function YamlMapLikeInputBase$decodeString$lambda($this$fromCurrentValue) {
|
|
1148
|
+
return $this$fromCurrentValue.ry();
|
|
1149
|
+
}
|
|
1150
|
+
function YamlMapLikeInputBase$decodeInt$lambda($this$fromCurrentValue) {
|
|
1151
|
+
return $this$fromCurrentValue.my();
|
|
1152
|
+
}
|
|
1153
|
+
function YamlMapLikeInputBase$decodeLong$lambda($this$fromCurrentValue) {
|
|
1154
|
+
return $this$fromCurrentValue.ny();
|
|
1155
|
+
}
|
|
1156
|
+
function YamlMapLikeInputBase$decodeShort$lambda($this$fromCurrentValue) {
|
|
1157
|
+
return $this$fromCurrentValue.ly();
|
|
1158
|
+
}
|
|
1159
|
+
function YamlMapLikeInputBase$decodeByte$lambda($this$fromCurrentValue) {
|
|
1160
|
+
return $this$fromCurrentValue.ky();
|
|
1161
|
+
}
|
|
1162
|
+
function YamlMapLikeInputBase$decodeDouble$lambda($this$fromCurrentValue) {
|
|
1163
|
+
return $this$fromCurrentValue.py();
|
|
1164
|
+
}
|
|
1165
|
+
function YamlMapLikeInputBase$decodeFloat$lambda($this$fromCurrentValue) {
|
|
1166
|
+
return $this$fromCurrentValue.oy();
|
|
1167
|
+
}
|
|
1168
|
+
function YamlMapLikeInputBase$decodeBoolean$lambda($this$fromCurrentValue) {
|
|
1169
|
+
return $this$fromCurrentValue.jy();
|
|
1170
|
+
}
|
|
1171
|
+
function YamlMapLikeInputBase$decodeChar$lambda($this$fromCurrentValue) {
|
|
1172
|
+
return new Char($this$fromCurrentValue.qy());
|
|
1173
|
+
}
|
|
1174
|
+
function YamlMapLikeInputBase$decodeEnum$lambda($enumDescriptor) {
|
|
1175
|
+
return function ($this$fromCurrentValue) {
|
|
1176
|
+
return $this$fromCurrentValue.sy($enumDescriptor);
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
function YamlMapLikeInputBase(map, yaml, context, configuration) {
|
|
1180
|
+
YamlInput.call(this, map, yaml, context, configuration);
|
|
1181
|
+
this.lht_1 = false;
|
|
1182
|
+
}
|
|
1183
|
+
protoOf(YamlMapLikeInputBase).qht = function () {
|
|
1184
|
+
var tmp = this.jht_1;
|
|
1185
|
+
if (!(tmp == null))
|
|
1186
|
+
return tmp;
|
|
1187
|
+
else {
|
|
1188
|
+
throwUninitializedPropertyAccessException('currentValueDecoder');
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1191
|
+
protoOf(YamlMapLikeInputBase).nht = function () {
|
|
1192
|
+
var tmp = this.kht_1;
|
|
1193
|
+
if (!(tmp == null))
|
|
1194
|
+
return tmp;
|
|
1195
|
+
else {
|
|
1196
|
+
throwUninitializedPropertyAccessException('currentKey');
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
protoOf(YamlMapLikeInputBase).hy = function () {
|
|
1200
|
+
if (!this.pht()) {
|
|
1201
|
+
return true;
|
|
1202
|
+
}
|
|
1203
|
+
return this.oht(YamlMapLikeInputBase$decodeNotNullMark$lambda);
|
|
1204
|
+
};
|
|
1205
|
+
protoOf(YamlMapLikeInputBase).ry = function () {
|
|
1206
|
+
return this.oht(YamlMapLikeInputBase$decodeString$lambda);
|
|
1207
|
+
};
|
|
1208
|
+
protoOf(YamlMapLikeInputBase).my = function () {
|
|
1209
|
+
return this.oht(YamlMapLikeInputBase$decodeInt$lambda);
|
|
1210
|
+
};
|
|
1211
|
+
protoOf(YamlMapLikeInputBase).ny = function () {
|
|
1212
|
+
return this.oht(YamlMapLikeInputBase$decodeLong$lambda);
|
|
1213
|
+
};
|
|
1214
|
+
protoOf(YamlMapLikeInputBase).ly = function () {
|
|
1215
|
+
return this.oht(YamlMapLikeInputBase$decodeShort$lambda);
|
|
1216
|
+
};
|
|
1217
|
+
protoOf(YamlMapLikeInputBase).ky = function () {
|
|
1218
|
+
return this.oht(YamlMapLikeInputBase$decodeByte$lambda);
|
|
1219
|
+
};
|
|
1220
|
+
protoOf(YamlMapLikeInputBase).py = function () {
|
|
1221
|
+
return this.oht(YamlMapLikeInputBase$decodeDouble$lambda);
|
|
1222
|
+
};
|
|
1223
|
+
protoOf(YamlMapLikeInputBase).oy = function () {
|
|
1224
|
+
return this.oht(YamlMapLikeInputBase$decodeFloat$lambda);
|
|
1225
|
+
};
|
|
1226
|
+
protoOf(YamlMapLikeInputBase).jy = function () {
|
|
1227
|
+
return this.oht(YamlMapLikeInputBase$decodeBoolean$lambda);
|
|
1228
|
+
};
|
|
1229
|
+
protoOf(YamlMapLikeInputBase).qy = function () {
|
|
1230
|
+
return this.oht(YamlMapLikeInputBase$decodeChar$lambda).t1_1;
|
|
1231
|
+
};
|
|
1232
|
+
protoOf(YamlMapLikeInputBase).sy = function (enumDescriptor) {
|
|
1233
|
+
return this.oht(YamlMapLikeInputBase$decodeEnum$lambda(enumDescriptor));
|
|
1234
|
+
};
|
|
1235
|
+
protoOf(YamlMapLikeInputBase).oht = function (action) {
|
|
1236
|
+
try {
|
|
1237
|
+
return action(this.qht());
|
|
1238
|
+
} catch ($p) {
|
|
1239
|
+
if ($p instanceof YamlException) {
|
|
1240
|
+
var e = $p;
|
|
1241
|
+
if (this.lht_1) {
|
|
1242
|
+
throw new InvalidPropertyValueException(this.mht(), e.r1(), e.jhp_1, e);
|
|
1243
|
+
} else {
|
|
1244
|
+
throw e;
|
|
1245
|
+
}
|
|
1246
|
+
} else {
|
|
1247
|
+
throw $p;
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
};
|
|
1251
|
+
protoOf(YamlMapLikeInputBase).pht = function () {
|
|
1252
|
+
return !(this.jht_1 == null);
|
|
1253
|
+
};
|
|
1254
|
+
protoOf(YamlMapLikeInputBase).mht = function () {
|
|
1255
|
+
return this.nht().xhr_1;
|
|
1256
|
+
};
|
|
1257
|
+
function YamlNode(path) {
|
|
1258
|
+
this.zhr_1 = path;
|
|
1259
|
+
}
|
|
1260
|
+
protoOf(YamlNode).ahs = function () {
|
|
1261
|
+
return this.zhr_1;
|
|
1262
|
+
};
|
|
1263
|
+
protoOf(YamlNode).rht = function () {
|
|
1264
|
+
return this.ahs().php_1;
|
|
1265
|
+
};
|
|
1266
|
+
protoOf(YamlNode).tht = function (child, newParentPath) {
|
|
1267
|
+
return new YamlPath(plus(newParentPath.ohp_1, drop(child.ahs().ohp_1, this.ahs().ohp_1.s())));
|
|
1268
|
+
};
|
|
1269
|
+
function YamlNull(path) {
|
|
1270
|
+
YamlNode.call(this, path);
|
|
1271
|
+
this.chs_1 = path;
|
|
1272
|
+
}
|
|
1273
|
+
protoOf(YamlNull).ahs = function () {
|
|
1274
|
+
return this.chs_1;
|
|
1275
|
+
};
|
|
1276
|
+
protoOf(YamlNull).sht = function (newPath) {
|
|
1277
|
+
return new YamlNull(newPath);
|
|
1278
|
+
};
|
|
1279
|
+
protoOf(YamlNull).toString = function () {
|
|
1280
|
+
return 'null @ ' + this.chs_1.toString();
|
|
1281
|
+
};
|
|
1282
|
+
protoOf(YamlNull).hashCode = function () {
|
|
1283
|
+
return this.chs_1.hashCode();
|
|
1284
|
+
};
|
|
1285
|
+
protoOf(YamlNull).equals = function (other) {
|
|
1286
|
+
if (this === other)
|
|
1287
|
+
return true;
|
|
1288
|
+
if (!(other instanceof YamlNull))
|
|
1289
|
+
return false;
|
|
1290
|
+
var tmp0_other_with_cast = other instanceof YamlNull ? other : THROW_CCE();
|
|
1291
|
+
if (!this.chs_1.equals(tmp0_other_with_cast.chs_1))
|
|
1292
|
+
return false;
|
|
1293
|
+
return true;
|
|
1294
|
+
};
|
|
1295
|
+
function convertToIntegerLikeValue($this, converter, description) {
|
|
1296
|
+
try {
|
|
1297
|
+
return startsWith($this.xhr_1, '0x') ? converter(substring($this.xhr_1, 2), 16) : startsWith($this.xhr_1, '-0x') ? converter('-' + substring($this.xhr_1, 3), 16) : startsWith($this.xhr_1, '0o') ? converter(substring($this.xhr_1, 2), 8) : startsWith($this.xhr_1, '-0o') ? converter('-' + substring($this.xhr_1, 3), 8) : converter($this.xhr_1, 10);
|
|
1298
|
+
} catch ($p) {
|
|
1299
|
+
if ($p instanceof NumberFormatException) {
|
|
1300
|
+
var e = $p;
|
|
1301
|
+
throw new YamlScalarFormatException("Value '" + $this.xhr_1 + "' is not a valid " + description + ' value.', $this.yhr_1, $this.xhr_1);
|
|
1302
|
+
} else {
|
|
1303
|
+
throw $p;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
function toByte$ref() {
|
|
1308
|
+
var l = function (p0, p1) {
|
|
1309
|
+
return toByte(p0, p1);
|
|
1310
|
+
};
|
|
1311
|
+
l.callableName = 'toByte';
|
|
1312
|
+
return l;
|
|
1313
|
+
}
|
|
1314
|
+
function toShort$ref() {
|
|
1315
|
+
var l = function (p0, p1) {
|
|
1316
|
+
return toShort(p0, p1);
|
|
1317
|
+
};
|
|
1318
|
+
l.callableName = 'toShort';
|
|
1319
|
+
return l;
|
|
1320
|
+
}
|
|
1321
|
+
function toInt$ref() {
|
|
1322
|
+
var l = function (p0, p1) {
|
|
1323
|
+
return toInt(p0, p1);
|
|
1324
|
+
};
|
|
1325
|
+
l.callableName = 'toInt';
|
|
1326
|
+
return l;
|
|
1327
|
+
}
|
|
1328
|
+
function toLong$ref() {
|
|
1329
|
+
var l = function (p0, p1) {
|
|
1330
|
+
return toLong(p0, p1);
|
|
1331
|
+
};
|
|
1332
|
+
l.callableName = 'toLong';
|
|
1333
|
+
return l;
|
|
1334
|
+
}
|
|
1335
|
+
function YamlScalar(content, path) {
|
|
1336
|
+
YamlNode.call(this, path);
|
|
1337
|
+
this.xhr_1 = content;
|
|
1338
|
+
this.yhr_1 = path;
|
|
1339
|
+
}
|
|
1340
|
+
protoOf(YamlScalar).ahs = function () {
|
|
1341
|
+
return this.yhr_1;
|
|
1342
|
+
};
|
|
1343
|
+
protoOf(YamlScalar).uht = function (other) {
|
|
1344
|
+
var tmp;
|
|
1345
|
+
if (other instanceof YamlScalar) {
|
|
1346
|
+
tmp = this.xhr_1 === other.xhr_1;
|
|
1347
|
+
} else {
|
|
1348
|
+
tmp = false;
|
|
1349
|
+
}
|
|
1350
|
+
return tmp;
|
|
1351
|
+
};
|
|
1352
|
+
protoOf(YamlScalar).vht = function () {
|
|
1353
|
+
return "'" + this.xhr_1 + "'";
|
|
1354
|
+
};
|
|
1355
|
+
protoOf(YamlScalar).r3 = function () {
|
|
1356
|
+
return convertToIntegerLikeValue(this, toByte$ref(), 'byte');
|
|
1357
|
+
};
|
|
1358
|
+
protoOf(YamlScalar).s3 = function () {
|
|
1359
|
+
return convertToIntegerLikeValue(this, toShort$ref(), 'short');
|
|
1360
|
+
};
|
|
1361
|
+
protoOf(YamlScalar).l1 = function () {
|
|
1362
|
+
return convertToIntegerLikeValue(this, toInt$ref(), 'integer');
|
|
1363
|
+
};
|
|
1364
|
+
protoOf(YamlScalar).t3 = function () {
|
|
1365
|
+
return convertToIntegerLikeValue(this, toLong$ref(), 'long');
|
|
1366
|
+
};
|
|
1367
|
+
protoOf(YamlScalar).wht = function () {
|
|
1368
|
+
var tmp;
|
|
1369
|
+
switch (this.xhr_1) {
|
|
1370
|
+
case '.inf':
|
|
1371
|
+
case '.Inf':
|
|
1372
|
+
case '.INF':
|
|
1373
|
+
tmp = Infinity;
|
|
1374
|
+
break;
|
|
1375
|
+
case '-.inf':
|
|
1376
|
+
case '-.Inf':
|
|
1377
|
+
case '-.INF':
|
|
1378
|
+
tmp = -Infinity;
|
|
1379
|
+
break;
|
|
1380
|
+
case '.nan':
|
|
1381
|
+
case '.NaN':
|
|
1382
|
+
case '.NAN':
|
|
1383
|
+
tmp = NaN;
|
|
1384
|
+
break;
|
|
1385
|
+
default:
|
|
1386
|
+
var tmp_0;
|
|
1387
|
+
try {
|
|
1388
|
+
// Inline function 'kotlin.text.toFloat' call
|
|
1389
|
+
var this_0 = this.xhr_1;
|
|
1390
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1391
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1392
|
+
tmp_0 = toDouble(this_0);
|
|
1393
|
+
} catch ($p) {
|
|
1394
|
+
var tmp_1;
|
|
1395
|
+
if ($p instanceof NumberFormatException) {
|
|
1396
|
+
var e = $p;
|
|
1397
|
+
throw new YamlScalarFormatException("Value '" + this.xhr_1 + "' is not a valid floating point value.", this.yhr_1, this.xhr_1);
|
|
1398
|
+
} else {
|
|
1399
|
+
if ($p instanceof IndexOutOfBoundsException) {
|
|
1400
|
+
var e_0 = $p;
|
|
1401
|
+
throw new YamlScalarFormatException("Value '" + this.xhr_1 + "' is not a valid floating point value.", this.yhr_1, this.xhr_1);
|
|
1402
|
+
} else {
|
|
1403
|
+
throw $p;
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
tmp = tmp_0;
|
|
1409
|
+
break;
|
|
1410
|
+
}
|
|
1411
|
+
return tmp;
|
|
1412
|
+
};
|
|
1413
|
+
protoOf(YamlScalar).u3 = function () {
|
|
1414
|
+
var tmp;
|
|
1415
|
+
switch (this.xhr_1) {
|
|
1416
|
+
case '.inf':
|
|
1417
|
+
case '.Inf':
|
|
1418
|
+
case '.INF':
|
|
1419
|
+
tmp = Infinity;
|
|
1420
|
+
break;
|
|
1421
|
+
case '-.inf':
|
|
1422
|
+
case '-.Inf':
|
|
1423
|
+
case '-.INF':
|
|
1424
|
+
tmp = -Infinity;
|
|
1425
|
+
break;
|
|
1426
|
+
case '.nan':
|
|
1427
|
+
case '.NaN':
|
|
1428
|
+
case '.NAN':
|
|
1429
|
+
tmp = NaN;
|
|
1430
|
+
break;
|
|
1431
|
+
default:
|
|
1432
|
+
var tmp_0;
|
|
1433
|
+
try {
|
|
1434
|
+
tmp_0 = toDouble(this.xhr_1);
|
|
1435
|
+
} catch ($p) {
|
|
1436
|
+
var tmp_1;
|
|
1437
|
+
if ($p instanceof NumberFormatException) {
|
|
1438
|
+
var e = $p;
|
|
1439
|
+
throw new YamlScalarFormatException("Value '" + this.xhr_1 + "' is not a valid floating point value.", this.yhr_1, this.xhr_1);
|
|
1440
|
+
} else {
|
|
1441
|
+
if ($p instanceof IndexOutOfBoundsException) {
|
|
1442
|
+
var e_0 = $p;
|
|
1443
|
+
throw new YamlScalarFormatException("Value '" + this.xhr_1 + "' is not a valid floating point value.", this.yhr_1, this.xhr_1);
|
|
1444
|
+
} else {
|
|
1445
|
+
throw $p;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
tmp = tmp_0;
|
|
1451
|
+
break;
|
|
1452
|
+
}
|
|
1453
|
+
return tmp;
|
|
1454
|
+
};
|
|
1455
|
+
protoOf(YamlScalar).xht = function () {
|
|
1456
|
+
var tmp;
|
|
1457
|
+
switch (this.xhr_1) {
|
|
1458
|
+
case 'true':
|
|
1459
|
+
case 'True':
|
|
1460
|
+
case 'TRUE':
|
|
1461
|
+
tmp = true;
|
|
1462
|
+
break;
|
|
1463
|
+
case 'false':
|
|
1464
|
+
case 'False':
|
|
1465
|
+
case 'FALSE':
|
|
1466
|
+
tmp = false;
|
|
1467
|
+
break;
|
|
1468
|
+
default:
|
|
1469
|
+
throw new YamlScalarFormatException("Value '" + this.xhr_1 + "' is not a valid boolean, permitted choices are: true or false", this.yhr_1, this.xhr_1);
|
|
1470
|
+
}
|
|
1471
|
+
return tmp;
|
|
1472
|
+
};
|
|
1473
|
+
protoOf(YamlScalar).yht = function () {
|
|
1474
|
+
var tmp0_elvis_lhs = singleOrNull(this.xhr_1);
|
|
1475
|
+
var tmp;
|
|
1476
|
+
var tmp_0 = tmp0_elvis_lhs;
|
|
1477
|
+
if ((tmp_0 == null ? null : new Char(tmp_0)) == null) {
|
|
1478
|
+
throw new YamlScalarFormatException("Value '" + this.xhr_1 + "' is not a valid character value.", this.yhr_1, this.xhr_1);
|
|
1479
|
+
} else {
|
|
1480
|
+
tmp = tmp0_elvis_lhs;
|
|
1481
|
+
}
|
|
1482
|
+
return tmp;
|
|
1483
|
+
};
|
|
1484
|
+
protoOf(YamlScalar).sht = function (newPath) {
|
|
1485
|
+
return this.zht(VOID, newPath);
|
|
1486
|
+
};
|
|
1487
|
+
protoOf(YamlScalar).toString = function () {
|
|
1488
|
+
return 'scalar @ ' + this.yhr_1.toString() + ' : ' + this.xhr_1;
|
|
1489
|
+
};
|
|
1490
|
+
protoOf(YamlScalar).ahu = function (content, path) {
|
|
1491
|
+
return new YamlScalar(content, path);
|
|
1492
|
+
};
|
|
1493
|
+
protoOf(YamlScalar).zht = function (content, path, $super) {
|
|
1494
|
+
content = content === VOID ? this.xhr_1 : content;
|
|
1495
|
+
path = path === VOID ? this.yhr_1 : path;
|
|
1496
|
+
return $super === VOID ? this.ahu(content, path) : $super.ahu.call(this, content, path);
|
|
1497
|
+
};
|
|
1498
|
+
protoOf(YamlScalar).hashCode = function () {
|
|
1499
|
+
var result = getStringHashCode(this.xhr_1);
|
|
1500
|
+
result = imul(result, 31) + this.yhr_1.hashCode() | 0;
|
|
1501
|
+
return result;
|
|
1502
|
+
};
|
|
1503
|
+
protoOf(YamlScalar).equals = function (other) {
|
|
1504
|
+
if (this === other)
|
|
1505
|
+
return true;
|
|
1506
|
+
if (!(other instanceof YamlScalar))
|
|
1507
|
+
return false;
|
|
1508
|
+
var tmp0_other_with_cast = other instanceof YamlScalar ? other : THROW_CCE();
|
|
1509
|
+
if (!(this.xhr_1 === tmp0_other_with_cast.xhr_1))
|
|
1510
|
+
return false;
|
|
1511
|
+
if (!this.yhr_1.equals(tmp0_other_with_cast.yhr_1))
|
|
1512
|
+
return false;
|
|
1513
|
+
return true;
|
|
1514
|
+
};
|
|
1515
|
+
function YamlList(items, path) {
|
|
1516
|
+
YamlNode.call(this, path);
|
|
1517
|
+
this.hhs_1 = items;
|
|
1518
|
+
this.ihs_1 = path;
|
|
1519
|
+
}
|
|
1520
|
+
protoOf(YamlList).ahs = function () {
|
|
1521
|
+
return this.ihs_1;
|
|
1522
|
+
};
|
|
1523
|
+
protoOf(YamlList).sht = function (newPath) {
|
|
1524
|
+
// Inline function 'kotlin.collections.map' call
|
|
1525
|
+
var this_0 = this.hhs_1;
|
|
1526
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1527
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1528
|
+
var _iterator__ex2g4s = this_0.p();
|
|
1529
|
+
while (_iterator__ex2g4s.q()) {
|
|
1530
|
+
var item = _iterator__ex2g4s.r();
|
|
1531
|
+
var tmp$ret$0 = item.sht(this.tht(item, newPath));
|
|
1532
|
+
destination.h(tmp$ret$0);
|
|
1533
|
+
}
|
|
1534
|
+
var updatedItems = destination;
|
|
1535
|
+
return new YamlList(updatedItems, newPath);
|
|
1536
|
+
};
|
|
1537
|
+
protoOf(YamlList).toString = function () {
|
|
1538
|
+
var builder = StringBuilder_init_$Create$();
|
|
1539
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1540
|
+
var value = 'list @ ' + this.ihs_1.toString() + ' (size: ' + this.hhs_1.s() + ')';
|
|
1541
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1542
|
+
builder.z8(value).a9(_Char___init__impl__6a9atx(10));
|
|
1543
|
+
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
1544
|
+
var index = 0;
|
|
1545
|
+
var _iterator__ex2g4s = this.hhs_1.p();
|
|
1546
|
+
while (_iterator__ex2g4s.q()) {
|
|
1547
|
+
var item = _iterator__ex2g4s.r();
|
|
1548
|
+
var _unary__edvuaz = index;
|
|
1549
|
+
index = _unary__edvuaz + 1 | 0;
|
|
1550
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1551
|
+
var value_0 = '- item ' + checkIndexOverflow(_unary__edvuaz) + ':';
|
|
1552
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1553
|
+
builder.z8(value_0).a9(_Char___init__impl__6a9atx(10));
|
|
1554
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1555
|
+
var _iterator__ex2g4s_0 = lines(toString(item)).p();
|
|
1556
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
1557
|
+
var element = _iterator__ex2g4s_0.r();
|
|
1558
|
+
builder.z8(' ');
|
|
1559
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1560
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1561
|
+
builder.z8(element).a9(_Char___init__impl__6a9atx(10));
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
return toString(trimEnd(builder));
|
|
1565
|
+
};
|
|
1566
|
+
protoOf(YamlList).hashCode = function () {
|
|
1567
|
+
var result = hashCode(this.hhs_1);
|
|
1568
|
+
result = imul(result, 31) + this.ihs_1.hashCode() | 0;
|
|
1569
|
+
return result;
|
|
1570
|
+
};
|
|
1571
|
+
protoOf(YamlList).equals = function (other) {
|
|
1572
|
+
if (this === other)
|
|
1573
|
+
return true;
|
|
1574
|
+
if (!(other instanceof YamlList))
|
|
1575
|
+
return false;
|
|
1576
|
+
var tmp0_other_with_cast = other instanceof YamlList ? other : THROW_CCE();
|
|
1577
|
+
if (!equals(this.hhs_1, tmp0_other_with_cast.hhs_1))
|
|
1578
|
+
return false;
|
|
1579
|
+
if (!this.ihs_1.equals(tmp0_other_with_cast.ihs_1))
|
|
1580
|
+
return false;
|
|
1581
|
+
return true;
|
|
1582
|
+
};
|
|
1583
|
+
function sam$kotlin_Comparator$0(function_0) {
|
|
1584
|
+
this.bhu_1 = function_0;
|
|
1585
|
+
}
|
|
1586
|
+
protoOf(sam$kotlin_Comparator$0).qf = function (a, b) {
|
|
1587
|
+
return this.bhu_1(a, b);
|
|
1588
|
+
};
|
|
1589
|
+
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1590
|
+
return this.qf(a, b);
|
|
1591
|
+
};
|
|
1592
|
+
protoOf(sam$kotlin_Comparator$0).v3 = function () {
|
|
1593
|
+
return this.bhu_1;
|
|
1594
|
+
};
|
|
1595
|
+
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1596
|
+
var tmp;
|
|
1597
|
+
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1598
|
+
var tmp_0;
|
|
1599
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1600
|
+
tmp_0 = equals(this.v3(), other.v3());
|
|
1601
|
+
} else {
|
|
1602
|
+
tmp_0 = false;
|
|
1603
|
+
}
|
|
1604
|
+
tmp = tmp_0;
|
|
1605
|
+
} else {
|
|
1606
|
+
tmp = false;
|
|
1607
|
+
}
|
|
1608
|
+
return tmp;
|
|
1609
|
+
};
|
|
1610
|
+
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1611
|
+
return hashCode(this.v3());
|
|
1612
|
+
};
|
|
1613
|
+
function YamlMap$lambda(a, b) {
|
|
1614
|
+
var lineComparison = compareTo(a.rht().hhn_1, b.rht().hhn_1);
|
|
1615
|
+
var tmp;
|
|
1616
|
+
if (!(lineComparison === 0)) {
|
|
1617
|
+
tmp = lineComparison;
|
|
1618
|
+
} else {
|
|
1619
|
+
tmp = compareTo(a.rht().ihn_1, b.rht().ihn_1);
|
|
1620
|
+
}
|
|
1621
|
+
return tmp;
|
|
1622
|
+
}
|
|
1623
|
+
function YamlMap(entries, path) {
|
|
1624
|
+
YamlNode.call(this, path);
|
|
1625
|
+
this.ehs_1 = entries;
|
|
1626
|
+
this.fhs_1 = path;
|
|
1627
|
+
var tmp = this.ehs_1.k2();
|
|
1628
|
+
var tmp_0 = YamlMap$lambda;
|
|
1629
|
+
var keys = sortedWith(tmp, new sam$kotlin_Comparator$0(tmp_0));
|
|
1630
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
1631
|
+
var encounteredKeys = LinkedHashMap_init_$Create$();
|
|
1632
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1633
|
+
var _iterator__ex2g4s = keys.p();
|
|
1634
|
+
while (_iterator__ex2g4s.q()) {
|
|
1635
|
+
var element = _iterator__ex2g4s.r();
|
|
1636
|
+
var duplicate = encounteredKeys.j2(element.xhr_1);
|
|
1637
|
+
if (!(duplicate == null)) {
|
|
1638
|
+
throw new DuplicateKeyException(duplicate.yhr_1, element.yhr_1, element.vht());
|
|
1639
|
+
}
|
|
1640
|
+
// Inline function 'kotlin.collections.set' call
|
|
1641
|
+
var key = element.xhr_1;
|
|
1642
|
+
encounteredKeys.r2(key, element);
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
protoOf(YamlMap).ahs = function () {
|
|
1646
|
+
return this.fhs_1;
|
|
1647
|
+
};
|
|
1648
|
+
protoOf(YamlMap).jhs = function (key) {
|
|
1649
|
+
var tmp0 = this.ehs_1.z();
|
|
1650
|
+
var tmp$ret$1;
|
|
1651
|
+
$l$block: {
|
|
1652
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1653
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
1654
|
+
while (_iterator__ex2g4s.q()) {
|
|
1655
|
+
var element = _iterator__ex2g4s.r();
|
|
1656
|
+
if (element.a1().xhr_1 === key) {
|
|
1657
|
+
tmp$ret$1 = element;
|
|
1658
|
+
break $l$block;
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
tmp$ret$1 = null;
|
|
1662
|
+
}
|
|
1663
|
+
var tmp12_safe_receiver = tmp$ret$1;
|
|
1664
|
+
var tmp = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.b1();
|
|
1665
|
+
return (tmp == null ? true : tmp instanceof YamlNode) ? tmp : THROW_CCE();
|
|
1666
|
+
};
|
|
1667
|
+
protoOf(YamlMap).sht = function (newPath) {
|
|
1668
|
+
// Inline function 'kotlin.collections.mapKeys' call
|
|
1669
|
+
var this_0 = this.ehs_1;
|
|
1670
|
+
// Inline function 'kotlin.collections.mapKeysTo' call
|
|
1671
|
+
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(this_0.s()));
|
|
1672
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
1673
|
+
var _iterator__ex2g4s = this_0.z().p();
|
|
1674
|
+
while (_iterator__ex2g4s.q()) {
|
|
1675
|
+
var element = _iterator__ex2g4s.r();
|
|
1676
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1677
|
+
var k = element.a1();
|
|
1678
|
+
var tmp = k.sht(this.tht(k, newPath));
|
|
1679
|
+
var tmp$ret$2 = element.b1();
|
|
1680
|
+
destination.r2(tmp, tmp$ret$2);
|
|
1681
|
+
}
|
|
1682
|
+
// Inline function 'kotlin.collections.mapValues' call
|
|
1683
|
+
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1684
|
+
var destination_0 = LinkedHashMap_init_$Create$_0(mapCapacity(destination.s()));
|
|
1685
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
1686
|
+
var _iterator__ex2g4s_0 = destination.z().p();
|
|
1687
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
1688
|
+
var element_0 = _iterator__ex2g4s_0.r();
|
|
1689
|
+
var tmp_0 = element_0.a1();
|
|
1690
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1691
|
+
var v = element_0.b1();
|
|
1692
|
+
var tmp$ret$8 = v.sht(this.tht(v, newPath));
|
|
1693
|
+
destination_0.r2(tmp_0, tmp$ret$8);
|
|
1694
|
+
}
|
|
1695
|
+
var updatedEntries = destination_0;
|
|
1696
|
+
return new YamlMap(updatedEntries, newPath);
|
|
1697
|
+
};
|
|
1698
|
+
protoOf(YamlMap).toString = function () {
|
|
1699
|
+
var builder = StringBuilder_init_$Create$();
|
|
1700
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1701
|
+
var value = 'map @ ' + this.fhs_1.toString() + ' (size: ' + this.ehs_1.s() + ')';
|
|
1702
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1703
|
+
builder.z8(value).a9(_Char___init__impl__6a9atx(10));
|
|
1704
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1705
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1706
|
+
var _iterator__ex2g4s = this.ehs_1.z().p();
|
|
1707
|
+
while (_iterator__ex2g4s.q()) {
|
|
1708
|
+
var element = _iterator__ex2g4s.r();
|
|
1709
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1710
|
+
var key = element.a1();
|
|
1711
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1712
|
+
var value_0 = element.b1();
|
|
1713
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1714
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1715
|
+
builder.z8('- key:').a9(_Char___init__impl__6a9atx(10));
|
|
1716
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1717
|
+
var _iterator__ex2g4s_0 = lines(key.toString()).p();
|
|
1718
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
1719
|
+
var element_0 = _iterator__ex2g4s_0.r();
|
|
1720
|
+
builder.z8(' ');
|
|
1721
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1722
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1723
|
+
builder.z8(element_0).a9(_Char___init__impl__6a9atx(10));
|
|
1724
|
+
}
|
|
1725
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1726
|
+
var value_1 = ' value:';
|
|
1727
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1728
|
+
builder.z8(value_1).a9(_Char___init__impl__6a9atx(10));
|
|
1729
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1730
|
+
var _iterator__ex2g4s_1 = lines(toString(value_0)).p();
|
|
1731
|
+
while (_iterator__ex2g4s_1.q()) {
|
|
1732
|
+
var element_1 = _iterator__ex2g4s_1.r();
|
|
1733
|
+
builder.z8(' ');
|
|
1734
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1735
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1736
|
+
builder.z8(element_1).a9(_Char___init__impl__6a9atx(10));
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
return toString(trimEnd(builder));
|
|
1740
|
+
};
|
|
1741
|
+
protoOf(YamlMap).chu = function (entries, path) {
|
|
1742
|
+
return new YamlMap(entries, path);
|
|
1743
|
+
};
|
|
1744
|
+
protoOf(YamlMap).khs = function (entries, path, $super) {
|
|
1745
|
+
entries = entries === VOID ? this.ehs_1 : entries;
|
|
1746
|
+
path = path === VOID ? this.fhs_1 : path;
|
|
1747
|
+
return $super === VOID ? this.chu(entries, path) : $super.chu.call(this, entries, path);
|
|
1748
|
+
};
|
|
1749
|
+
protoOf(YamlMap).hashCode = function () {
|
|
1750
|
+
var result = hashCode(this.ehs_1);
|
|
1751
|
+
result = imul(result, 31) + this.fhs_1.hashCode() | 0;
|
|
1752
|
+
return result;
|
|
1753
|
+
};
|
|
1754
|
+
protoOf(YamlMap).equals = function (other) {
|
|
1755
|
+
if (this === other)
|
|
1756
|
+
return true;
|
|
1757
|
+
if (!(other instanceof YamlMap))
|
|
1758
|
+
return false;
|
|
1759
|
+
var tmp0_other_with_cast = other instanceof YamlMap ? other : THROW_CCE();
|
|
1760
|
+
if (!equals(this.ehs_1, tmp0_other_with_cast.ehs_1))
|
|
1761
|
+
return false;
|
|
1762
|
+
if (!this.fhs_1.equals(tmp0_other_with_cast.fhs_1))
|
|
1763
|
+
return false;
|
|
1764
|
+
return true;
|
|
1765
|
+
};
|
|
1766
|
+
function YamlTaggedNode(tag, innerNode) {
|
|
1767
|
+
YamlNode.call(this, innerNode.ahs());
|
|
1768
|
+
this.mhs_1 = tag;
|
|
1769
|
+
this.nhs_1 = innerNode;
|
|
1770
|
+
}
|
|
1771
|
+
protoOf(YamlTaggedNode).sht = function (newPath) {
|
|
1772
|
+
return this.dhu(VOID, this.nhs_1.sht(newPath));
|
|
1773
|
+
};
|
|
1774
|
+
protoOf(YamlTaggedNode).toString = function () {
|
|
1775
|
+
return "tagged '" + this.mhs_1 + "': " + toString(this.nhs_1);
|
|
1776
|
+
};
|
|
1777
|
+
protoOf(YamlTaggedNode).ehu = function (tag, innerNode) {
|
|
1778
|
+
return new YamlTaggedNode(tag, innerNode);
|
|
1779
|
+
};
|
|
1780
|
+
protoOf(YamlTaggedNode).dhu = function (tag, innerNode, $super) {
|
|
1781
|
+
tag = tag === VOID ? this.mhs_1 : tag;
|
|
1782
|
+
innerNode = innerNode === VOID ? this.nhs_1 : innerNode;
|
|
1783
|
+
return $super === VOID ? this.ehu(tag, innerNode) : $super.ehu.call(this, tag, innerNode);
|
|
1784
|
+
};
|
|
1785
|
+
protoOf(YamlTaggedNode).hashCode = function () {
|
|
1786
|
+
var result = getStringHashCode(this.mhs_1);
|
|
1787
|
+
result = imul(result, 31) + hashCode(this.nhs_1) | 0;
|
|
1788
|
+
return result;
|
|
1789
|
+
};
|
|
1790
|
+
protoOf(YamlTaggedNode).equals = function (other) {
|
|
1791
|
+
if (this === other)
|
|
1792
|
+
return true;
|
|
1793
|
+
if (!(other instanceof YamlTaggedNode))
|
|
1794
|
+
return false;
|
|
1795
|
+
var tmp0_other_with_cast = other instanceof YamlTaggedNode ? other : THROW_CCE();
|
|
1796
|
+
if (!(this.mhs_1 === tmp0_other_with_cast.mhs_1))
|
|
1797
|
+
return false;
|
|
1798
|
+
if (!equals(this.nhs_1, tmp0_other_with_cast.nhs_1))
|
|
1799
|
+
return false;
|
|
1800
|
+
return true;
|
|
1801
|
+
};
|
|
1802
|
+
function readNode($this, path) {
|
|
1803
|
+
return readNodeAndAnchor($this, path).qi_1;
|
|
1804
|
+
}
|
|
1805
|
+
function readNodeAndAnchor($this, path) {
|
|
1806
|
+
var event = $this.kho_1.fhu(path);
|
|
1807
|
+
var node = readFromEvent($this, event, path);
|
|
1808
|
+
if (event instanceof NodeEvent) {
|
|
1809
|
+
var tmp13_safe_receiver = event.ehc_1;
|
|
1810
|
+
if (tmp13_safe_receiver == null)
|
|
1811
|
+
null;
|
|
1812
|
+
else {
|
|
1813
|
+
// Inline function 'kotlin.let' call
|
|
1814
|
+
if (!$this.mho_1) {
|
|
1815
|
+
throw new ForbiddenAnchorOrAliasException('Parsing anchors and aliases is disabled.', path);
|
|
1816
|
+
}
|
|
1817
|
+
$this.nho_1.r2(tmp13_safe_receiver, node.sht(Companion_getInstance_3().hhu(tmp13_safe_receiver.ah9_1, _get_location__4pgxiu($this, event))));
|
|
1818
|
+
}
|
|
1819
|
+
return to(node, event.ehc_1);
|
|
1820
|
+
}
|
|
1821
|
+
return to(node, null);
|
|
1822
|
+
}
|
|
1823
|
+
function readFromEvent($this, event, path) {
|
|
1824
|
+
var tmp;
|
|
1825
|
+
if (event instanceof ScalarEvent) {
|
|
1826
|
+
tmp = maybeToTaggedNode($this, readScalarOrNull($this, event, path), event.yhb_1);
|
|
1827
|
+
} else {
|
|
1828
|
+
if (event instanceof SequenceStartEvent) {
|
|
1829
|
+
tmp = maybeToTaggedNode($this, readSequence($this, path), event.rhc_1);
|
|
1830
|
+
} else {
|
|
1831
|
+
if (event instanceof MappingStartEvent) {
|
|
1832
|
+
tmp = maybeToTaggedNode($this, readMapping($this, path), event.rhc_1);
|
|
1833
|
+
} else {
|
|
1834
|
+
if (event instanceof AliasEvent) {
|
|
1835
|
+
tmp = readAlias($this, event, path);
|
|
1836
|
+
} else {
|
|
1837
|
+
throw new MalformedYamlException('Unexpected ' + event.fh8().toString(), path.ihu(_get_location__4pgxiu($this, event)));
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
return tmp;
|
|
1843
|
+
}
|
|
1844
|
+
function readScalarOrNull($this, event, path) {
|
|
1845
|
+
if ((event.ahc_1 === 'null' || event.ahc_1 === '' || event.ahc_1 === '~') && event.vhd()) {
|
|
1846
|
+
return new YamlNull(path);
|
|
1847
|
+
} else {
|
|
1848
|
+
return new YamlScalar(event.ahc_1, path);
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
function readSequence($this, path) {
|
|
1852
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1853
|
+
var items = ArrayList_init_$Create$_0();
|
|
1854
|
+
while (true) {
|
|
1855
|
+
var event = $this.kho_1.jhu(path);
|
|
1856
|
+
if (event.fh8().v2_1 === 7) {
|
|
1857
|
+
$this.kho_1.lhu(ID_SequenceEnd_getInstance(), path);
|
|
1858
|
+
return new YamlList(items, path);
|
|
1859
|
+
} else {
|
|
1860
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
1861
|
+
var element = readNode($this, path.khu(items.s(), _get_location__4pgxiu($this, event)));
|
|
1862
|
+
items.h(element);
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
function readMapping($this, path) {
|
|
1867
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
1868
|
+
var items = LinkedHashMap_init_$Create$();
|
|
1869
|
+
while (true) {
|
|
1870
|
+
var event = $this.kho_1.jhu(path);
|
|
1871
|
+
if (event.fh8().v2_1 === 4) {
|
|
1872
|
+
$this.kho_1.lhu(ID_MappingEnd_getInstance(), path);
|
|
1873
|
+
return new YamlMap(doMerges($this, items), path);
|
|
1874
|
+
} else {
|
|
1875
|
+
var keyLocation = _get_location__4pgxiu($this, $this.kho_1.jhu(path));
|
|
1876
|
+
var key = readMapKey($this, path);
|
|
1877
|
+
var keyNode = new YamlScalar(key, path.mhu(key, keyLocation));
|
|
1878
|
+
var valueLocation = _get_location__4pgxiu($this, $this.kho_1.jhu(keyNode.yhr_1));
|
|
1879
|
+
var valuePath = isMerge($this, keyNode) ? path.ohu(valueLocation) : keyNode.yhr_1.nhu(valueLocation);
|
|
1880
|
+
var _destruct__k2r9zo = readNodeAndAnchor($this, valuePath);
|
|
1881
|
+
var value = _destruct__k2r9zo.si();
|
|
1882
|
+
var anchor = _destruct__k2r9zo.ti();
|
|
1883
|
+
if (path.equals(Companion_getInstance_3().ghu_1) && !($this.lho_1 == null) && startsWith(key, $this.lho_1)) {
|
|
1884
|
+
if (anchor == null) {
|
|
1885
|
+
throw new NoAnchorForExtensionException(key, $this.lho_1, path.ihu(_get_location__4pgxiu($this, event)));
|
|
1886
|
+
}
|
|
1887
|
+
} else {
|
|
1888
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
1889
|
+
var pair = to(keyNode, value);
|
|
1890
|
+
items.r2(pair.qi_1, pair.ri_1);
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
function readMapKey($this, path) {
|
|
1896
|
+
var event = $this.kho_1.jhu(path);
|
|
1897
|
+
if (event.fh8().v2_1 === 6) {
|
|
1898
|
+
$this.kho_1.lhu(ID_Scalar_getInstance(), path);
|
|
1899
|
+
var scalarEvent = event instanceof ScalarEvent ? event : THROW_CCE();
|
|
1900
|
+
var isNullKey = (scalarEvent.ahc_1 === 'null' || scalarEvent.ahc_1 === '~') && scalarEvent.vhd();
|
|
1901
|
+
if (!(scalarEvent.yhb_1 == null) || isNullKey) {
|
|
1902
|
+
throw nonScalarMapKeyException($this, path, event);
|
|
1903
|
+
}
|
|
1904
|
+
return scalarEvent.ahc_1;
|
|
1905
|
+
} else
|
|
1906
|
+
throw nonScalarMapKeyException($this, path, event);
|
|
1907
|
+
}
|
|
1908
|
+
function nonScalarMapKeyException($this, path, event) {
|
|
1909
|
+
return new MalformedYamlException("Property name must not be a list, map, null or tagged value. (To use 'null' as a property name, enclose it in quotes.)", path.ihu(_get_location__4pgxiu($this, event)));
|
|
1910
|
+
}
|
|
1911
|
+
function maybeToTaggedNode($this, _this__u8e3s4, tag) {
|
|
1912
|
+
var tmp;
|
|
1913
|
+
if (tag == null) {
|
|
1914
|
+
tmp = null;
|
|
1915
|
+
} else {
|
|
1916
|
+
// Inline function 'kotlin.let' call
|
|
1917
|
+
tmp = new YamlTaggedNode(tag, _this__u8e3s4);
|
|
1918
|
+
}
|
|
1919
|
+
var tmp0_elvis_lhs = tmp;
|
|
1920
|
+
return tmp0_elvis_lhs == null ? _this__u8e3s4 : tmp0_elvis_lhs;
|
|
1921
|
+
}
|
|
1922
|
+
function doMerges($this, items) {
|
|
1923
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1924
|
+
var tmp0 = items.z();
|
|
1925
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1926
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1927
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
1928
|
+
while (_iterator__ex2g4s.q()) {
|
|
1929
|
+
var element = _iterator__ex2g4s.r();
|
|
1930
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1931
|
+
var key = element.a1();
|
|
1932
|
+
if (isMerge($this, key)) {
|
|
1933
|
+
destination.h(element);
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
var mergeEntries = destination;
|
|
1937
|
+
// Inline function 'kotlin.collections.count' call
|
|
1938
|
+
switch (mergeEntries.s()) {
|
|
1939
|
+
case 0:
|
|
1940
|
+
return items;
|
|
1941
|
+
case 1:
|
|
1942
|
+
var mappingsToMerge = single(mergeEntries).b1();
|
|
1943
|
+
if (mappingsToMerge instanceof YamlList)
|
|
1944
|
+
return doMerges_0($this, items, mappingsToMerge.hhs_1);
|
|
1945
|
+
else {
|
|
1946
|
+
return doMerges_0($this, items, listOf(mappingsToMerge));
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
default:
|
|
1950
|
+
throw new MalformedYamlException("Cannot perform multiple '<<' merges into a map. Instead, combine all merges into a single '<<' entry.", second($this, mergeEntries).a1().yhr_1);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
function isMerge($this, key) {
|
|
1954
|
+
var tmp;
|
|
1955
|
+
if (key instanceof YamlScalar) {
|
|
1956
|
+
tmp = key.xhr_1 === '<<';
|
|
1957
|
+
} else {
|
|
1958
|
+
tmp = false;
|
|
1959
|
+
}
|
|
1960
|
+
return tmp;
|
|
1961
|
+
}
|
|
1962
|
+
function doMerges_0($this, original, others) {
|
|
1963
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
1964
|
+
var merged = LinkedHashMap_init_$Create$();
|
|
1965
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
1966
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1967
|
+
var destination = LinkedHashMap_init_$Create$();
|
|
1968
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1969
|
+
var _iterator__ex2g4s = original.z().p();
|
|
1970
|
+
while (_iterator__ex2g4s.q()) {
|
|
1971
|
+
var element = _iterator__ex2g4s.r();
|
|
1972
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1973
|
+
var key = element.a1();
|
|
1974
|
+
if (!isMerge($this, key)) {
|
|
1975
|
+
destination.r2(element.a1(), element.b1());
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1979
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1980
|
+
var _iterator__ex2g4s_0 = destination.z().p();
|
|
1981
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
1982
|
+
var element_0 = _iterator__ex2g4s_0.r();
|
|
1983
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1984
|
+
var key_0 = element_0.a1();
|
|
1985
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1986
|
+
var value = element_0.b1();
|
|
1987
|
+
merged.r2(key_0, value);
|
|
1988
|
+
}
|
|
1989
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1990
|
+
var _iterator__ex2g4s_1 = others.p();
|
|
1991
|
+
while (_iterator__ex2g4s_1.q()) {
|
|
1992
|
+
var element_1 = _iterator__ex2g4s_1.r();
|
|
1993
|
+
if (element_1 instanceof YamlNull)
|
|
1994
|
+
throw new MalformedYamlException('Cannot merge a null value into a map.', element_1.chs_1);
|
|
1995
|
+
else {
|
|
1996
|
+
if (element_1 instanceof YamlScalar)
|
|
1997
|
+
throw new MalformedYamlException('Cannot merge a scalar value into a map.', element_1.yhr_1);
|
|
1998
|
+
else {
|
|
1999
|
+
if (element_1 instanceof YamlList)
|
|
2000
|
+
throw new MalformedYamlException('Cannot merge a list value into a map.', element_1.ihs_1);
|
|
2001
|
+
else {
|
|
2002
|
+
if (element_1 instanceof YamlTaggedNode)
|
|
2003
|
+
throw new MalformedYamlException('Cannot merge a tagged value into a map.', element_1.ahs());
|
|
2004
|
+
else {
|
|
2005
|
+
if (element_1 instanceof YamlMap) {
|
|
2006
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
2007
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
2008
|
+
var _iterator__ex2g4s_2 = element_1.ehs_1.z().p();
|
|
2009
|
+
while (_iterator__ex2g4s_2.q()) {
|
|
2010
|
+
var element_2 = _iterator__ex2g4s_2.r();
|
|
2011
|
+
// Inline function 'kotlin.collections.component1' call
|
|
2012
|
+
var key_1 = element_2.a1();
|
|
2013
|
+
// Inline function 'kotlin.collections.component2' call
|
|
2014
|
+
var value_0 = element_2.b1();
|
|
2015
|
+
var tmp0 = merged.z();
|
|
2016
|
+
var tmp$ret$15;
|
|
2017
|
+
$l$block_0: {
|
|
2018
|
+
// Inline function 'kotlin.collections.singleOrNull' call
|
|
2019
|
+
var single = null;
|
|
2020
|
+
var found = false;
|
|
2021
|
+
var _iterator__ex2g4s_3 = tmp0.p();
|
|
2022
|
+
while (_iterator__ex2g4s_3.q()) {
|
|
2023
|
+
var element_3 = _iterator__ex2g4s_3.r();
|
|
2024
|
+
if (element_3.a1().uht(key_1)) {
|
|
2025
|
+
if (found) {
|
|
2026
|
+
tmp$ret$15 = null;
|
|
2027
|
+
break $l$block_0;
|
|
2028
|
+
}
|
|
2029
|
+
single = element_3;
|
|
2030
|
+
found = true;
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
if (!found) {
|
|
2034
|
+
tmp$ret$15 = null;
|
|
2035
|
+
break $l$block_0;
|
|
2036
|
+
}
|
|
2037
|
+
tmp$ret$15 = single;
|
|
2038
|
+
}
|
|
2039
|
+
var existingEntry = tmp$ret$15;
|
|
2040
|
+
if (existingEntry == null) {
|
|
2041
|
+
merged.r2(key_1, value_0);
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
} else {
|
|
2045
|
+
noWhenBranchMatchedException();
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
return merged;
|
|
2053
|
+
}
|
|
2054
|
+
function readAlias($this, event, path) {
|
|
2055
|
+
if (!$this.mho_1) {
|
|
2056
|
+
throw new ForbiddenAnchorOrAliasException('Parsing anchors and aliases is disabled.', path);
|
|
2057
|
+
}
|
|
2058
|
+
var anchor = ensureNotNull(event.ehc_1);
|
|
2059
|
+
// Inline function 'kotlin.collections.getOrElse' call
|
|
2060
|
+
var tmp0_elvis_lhs = $this.nho_1.j2(anchor);
|
|
2061
|
+
var tmp;
|
|
2062
|
+
if (tmp0_elvis_lhs == null) {
|
|
2063
|
+
throw new UnknownAnchorException(anchor.ah9_1, path.ihu(_get_location__4pgxiu($this, event)));
|
|
2064
|
+
} else {
|
|
2065
|
+
tmp = tmp0_elvis_lhs;
|
|
2066
|
+
}
|
|
2067
|
+
var resolvedNode = tmp;
|
|
2068
|
+
return resolvedNode.sht(path.phu(anchor.ah9_1, _get_location__4pgxiu($this, event)).qhu(anchor.ah9_1, resolvedNode.rht()));
|
|
2069
|
+
}
|
|
2070
|
+
function second($this, _this__u8e3s4) {
|
|
2071
|
+
return first(drop(_this__u8e3s4, 1));
|
|
2072
|
+
}
|
|
2073
|
+
function _get_location__4pgxiu($this, _this__u8e3s4) {
|
|
2074
|
+
return new Location(ensureNotNull(_this__u8e3s4.dh8_1).jhf_1 + 1 | 0, ensureNotNull(_this__u8e3s4.dh8_1).khf_1 + 1 | 0);
|
|
2075
|
+
}
|
|
2076
|
+
function YamlNodeReader(parser, extensionDefinitionPrefix, allowAnchorsAndAliases) {
|
|
2077
|
+
extensionDefinitionPrefix = extensionDefinitionPrefix === VOID ? null : extensionDefinitionPrefix;
|
|
2078
|
+
allowAnchorsAndAliases = allowAnchorsAndAliases === VOID ? false : allowAnchorsAndAliases;
|
|
2079
|
+
this.kho_1 = parser;
|
|
2080
|
+
this.lho_1 = extensionDefinitionPrefix;
|
|
2081
|
+
this.mho_1 = allowAnchorsAndAliases;
|
|
2082
|
+
var tmp = this;
|
|
2083
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2084
|
+
tmp.nho_1 = LinkedHashMap_init_$Create$();
|
|
2085
|
+
}
|
|
2086
|
+
protoOf(YamlNodeReader).a1o = function () {
|
|
2087
|
+
return readNode(this, Companion_getInstance_3().ghu_1);
|
|
2088
|
+
};
|
|
2089
|
+
function YamlNullInput(nullValue, yaml, context, configuration) {
|
|
2090
|
+
YamlInput.call(this, nullValue, yaml, context, configuration);
|
|
2091
|
+
this.vhu_1 = nullValue;
|
|
2092
|
+
}
|
|
2093
|
+
protoOf(YamlNullInput).hy = function () {
|
|
2094
|
+
return false;
|
|
2095
|
+
};
|
|
2096
|
+
protoOf(YamlNullInput).gy = function () {
|
|
2097
|
+
throw new UnexpectedNullValueException(this.vhu_1.ahs());
|
|
2098
|
+
};
|
|
2099
|
+
protoOf(YamlNullInput).oz = function (descriptor) {
|
|
2100
|
+
throw new UnexpectedNullValueException(this.vhu_1.ahs());
|
|
2101
|
+
};
|
|
2102
|
+
protoOf(YamlNullInput).wy = function (descriptor) {
|
|
2103
|
+
throw new UnexpectedNullValueException(this.vhu_1.ahs());
|
|
2104
|
+
};
|
|
2105
|
+
protoOf(YamlNullInput).nz = function (descriptor) {
|
|
2106
|
+
return -1;
|
|
2107
|
+
};
|
|
2108
|
+
function _get_pairedPropertyNames__11quvr($this) {
|
|
2109
|
+
var tmp = $this.fhv_1;
|
|
2110
|
+
if (!(tmp == null))
|
|
2111
|
+
return tmp;
|
|
2112
|
+
else {
|
|
2113
|
+
throwUninitializedPropertyAccessException('pairedPropertyNames');
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
function YamlObjectInput$beginStructure$lambda($descriptor) {
|
|
2117
|
+
return function ($this$fromCurrentValue) {
|
|
2118
|
+
return $this$fromCurrentValue.wy($descriptor);
|
|
2119
|
+
};
|
|
2120
|
+
}
|
|
2121
|
+
function YamlObjectInput(map, yaml, context, configuration) {
|
|
2122
|
+
YamlMapLikeInputBase.call(this, map, yaml, context, configuration);
|
|
2123
|
+
this.dhv_1 = toList(map.ehs_1.z());
|
|
2124
|
+
this.ehv_1 = 0;
|
|
2125
|
+
}
|
|
2126
|
+
protoOf(YamlObjectInput).nz = function (descriptor) {
|
|
2127
|
+
if (!!(this.fhv_1 == null)) {
|
|
2128
|
+
var tmp = this;
|
|
2129
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
2130
|
+
var this_0 = until(0, descriptor.ww());
|
|
2131
|
+
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2132
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
2133
|
+
var destination = LinkedHashMap_init_$Create$_0(capacity);
|
|
2134
|
+
var inductionVariable = this_0.d1_1;
|
|
2135
|
+
var last = this_0.e1_1;
|
|
2136
|
+
if (inductionVariable <= last)
|
|
2137
|
+
do {
|
|
2138
|
+
var element = inductionVariable;
|
|
2139
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2140
|
+
var index = element;
|
|
2141
|
+
var elementName = descriptor.yw(index);
|
|
2142
|
+
var tmp21_safe_receiver = this.thn_1.iho_1;
|
|
2143
|
+
var tmp0_elvis_lhs = tmp21_safe_receiver == null ? null : tmp21_safe_receiver.ghv(elementName);
|
|
2144
|
+
var tmp$ret$0 = tmp0_elvis_lhs == null ? elementName : tmp0_elvis_lhs;
|
|
2145
|
+
destination.r2(tmp$ret$0, element);
|
|
2146
|
+
}
|
|
2147
|
+
while (!(element === last));
|
|
2148
|
+
tmp.fhv_1 = destination;
|
|
2149
|
+
}
|
|
2150
|
+
$l$loop: while (true) {
|
|
2151
|
+
if (this.ehv_1 === this.dhv_1.s()) {
|
|
2152
|
+
return -1;
|
|
2153
|
+
}
|
|
2154
|
+
var currentEntry = this.dhv_1.u(this.ehv_1);
|
|
2155
|
+
this.kht_1 = currentEntry.a1();
|
|
2156
|
+
var tmp0_elvis_lhs_0 = _get_pairedPropertyNames__11quvr(this).j2(this.mht());
|
|
2157
|
+
var fieldDescriptorIndex = tmp0_elvis_lhs_0 == null ? -3 : tmp0_elvis_lhs_0;
|
|
2158
|
+
if (fieldDescriptorIndex === -3) {
|
|
2159
|
+
if (this.thn_1.whn_1) {
|
|
2160
|
+
throw new UnknownPropertyException(this.mht(), _get_pairedPropertyNames__11quvr(this).k2(), this.nht().yhr_1);
|
|
2161
|
+
} else {
|
|
2162
|
+
this.ehv_1 = this.ehv_1 + 1 | 0;
|
|
2163
|
+
continue $l$loop;
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
try {
|
|
2167
|
+
this.jht_1 = Companion_getInstance_1().phn(this.dhv_1.u(this.ehv_1).b1(), this.rhn_1, this.lz(), this.thn_1, descriptor.bx(fieldDescriptorIndex));
|
|
2168
|
+
} catch ($p) {
|
|
2169
|
+
if ($p instanceof IncorrectTypeException) {
|
|
2170
|
+
var e = $p;
|
|
2171
|
+
throw new InvalidPropertyValueException(this.mht(), e.r1(), e.jhp_1, e);
|
|
2172
|
+
} else {
|
|
2173
|
+
throw $p;
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
this.lht_1 = true;
|
|
2177
|
+
this.ehv_1 = this.ehv_1 + 1 | 0;
|
|
2178
|
+
return fieldDescriptorIndex;
|
|
2179
|
+
}
|
|
2180
|
+
};
|
|
2181
|
+
protoOf(YamlObjectInput).wy = function (descriptor) {
|
|
2182
|
+
if (this.pht()) {
|
|
2183
|
+
return this.oht(YamlObjectInput$beginStructure$lambda(descriptor));
|
|
2184
|
+
}
|
|
2185
|
+
return protoOf(YamlMapLikeInputBase).wy.call(this, descriptor);
|
|
2186
|
+
};
|
|
2187
|
+
function emitPlainScalar($this, value) {
|
|
2188
|
+
return emitScalar($this, value, ScalarStyle_PLAIN_getInstance());
|
|
2189
|
+
}
|
|
2190
|
+
function emitQuotedScalar($this, value, scalarStyle) {
|
|
2191
|
+
return emitScalar($this, value, scalarStyle);
|
|
2192
|
+
}
|
|
2193
|
+
function encodeComment($this, descriptor, index) {
|
|
2194
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2195
|
+
var tmp0 = descriptor.ax(index);
|
|
2196
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2197
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2198
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
2199
|
+
while (_iterator__ex2g4s.q()) {
|
|
2200
|
+
var element = _iterator__ex2g4s.r();
|
|
2201
|
+
if (element instanceof YamlComment) {
|
|
2202
|
+
destination.h(element);
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
var tmp0_elvis_lhs = firstOrNull(destination);
|
|
2206
|
+
var tmp;
|
|
2207
|
+
if (tmp0_elvis_lhs == null) {
|
|
2208
|
+
return Unit_instance;
|
|
2209
|
+
} else {
|
|
2210
|
+
tmp = tmp0_elvis_lhs;
|
|
2211
|
+
}
|
|
2212
|
+
var commentAnno = tmp;
|
|
2213
|
+
var indexedObject = commentAnno.hhv_1;
|
|
2214
|
+
var inductionVariable = 0;
|
|
2215
|
+
var last = indexedObject.length;
|
|
2216
|
+
while (inductionVariable < last) {
|
|
2217
|
+
var line = indexedObject[inductionVariable];
|
|
2218
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2219
|
+
$this.lhv_1.fhe(new CommentEvent(CommentType_BLOCK_getInstance(), ' ' + line, null, null));
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
function emitScalar($this, value, style) {
|
|
2223
|
+
var tag = getAndClearTypeName($this);
|
|
2224
|
+
if (!(tag == null) && !$this.jhv_1.yhn_1.equals(PolymorphismStyle_Tag_getInstance())) {
|
|
2225
|
+
throw IllegalStateException_init_$Create$('Cannot serialize a polymorphic value that is not a YAML object when using ' + getKClass(PolymorphismStyle).zb() + '.' + $this.jhv_1.yhn_1.toString() + '.');
|
|
2226
|
+
}
|
|
2227
|
+
var implicit = !(tag == null) ? Companion_getInstance_2().phv_1 : Companion_getInstance_2().ohv_1;
|
|
2228
|
+
$this.lhv_1.fhe(new ScalarEvent(null, tag, implicit, value, style));
|
|
2229
|
+
}
|
|
2230
|
+
function getAndClearTypeName($this) {
|
|
2231
|
+
var typeName = $this.nhv_1;
|
|
2232
|
+
$this.nhv_1 = null;
|
|
2233
|
+
return typeName;
|
|
2234
|
+
}
|
|
2235
|
+
function isAmbiguous($this, _this__u8e3s4) {
|
|
2236
|
+
var tmp;
|
|
2237
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
2238
|
+
if (charSequenceLength(_this__u8e3s4) === 0) {
|
|
2239
|
+
tmp = true;
|
|
2240
|
+
} else {
|
|
2241
|
+
if (startsWith(_this__u8e3s4, '0x')) {
|
|
2242
|
+
tmp = true;
|
|
2243
|
+
} else {
|
|
2244
|
+
if (startsWith(_this__u8e3s4, '0o')) {
|
|
2245
|
+
tmp = true;
|
|
2246
|
+
} else {
|
|
2247
|
+
if (!(toDoubleOrNull(_this__u8e3s4) == null)) {
|
|
2248
|
+
tmp = true;
|
|
2249
|
+
} else {
|
|
2250
|
+
if (startsWith(_this__u8e3s4, '#')) {
|
|
2251
|
+
tmp = true;
|
|
2252
|
+
} else {
|
|
2253
|
+
tmp = listOf_0(['~', '-', '.inf', '.Inf', '.INF', '-.inf', '-.Inf', '-.INF', '.nan', '.NaN', '.NAN', '-.nan', '-.NaN', '-.NAN', 'null', 'Null', 'NULL', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']).w(_this__u8e3s4);
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
return tmp;
|
|
2260
|
+
}
|
|
2261
|
+
function _get_flowStyle__eylgtu($this, _this__u8e3s4) {
|
|
2262
|
+
var tmp;
|
|
2263
|
+
switch (_this__u8e3s4.v2_1) {
|
|
2264
|
+
case 0:
|
|
2265
|
+
tmp = FlowStyle_BLOCK_getInstance();
|
|
2266
|
+
break;
|
|
2267
|
+
case 1:
|
|
2268
|
+
tmp = FlowStyle_FLOW_getInstance();
|
|
2269
|
+
break;
|
|
2270
|
+
default:
|
|
2271
|
+
noWhenBranchMatchedException();
|
|
2272
|
+
break;
|
|
2273
|
+
}
|
|
2274
|
+
return tmp;
|
|
2275
|
+
}
|
|
2276
|
+
function _get_scalarStyle__245jbg($this, _this__u8e3s4) {
|
|
2277
|
+
var tmp;
|
|
2278
|
+
switch (_this__u8e3s4.v2_1) {
|
|
2279
|
+
case 1:
|
|
2280
|
+
tmp = ScalarStyle_DOUBLE_QUOTED_getInstance();
|
|
2281
|
+
break;
|
|
2282
|
+
case 2:
|
|
2283
|
+
tmp = ScalarStyle_SINGLE_QUOTED_getInstance();
|
|
2284
|
+
break;
|
|
2285
|
+
case 0:
|
|
2286
|
+
tmp = ScalarStyle_LITERAL_getInstance();
|
|
2287
|
+
break;
|
|
2288
|
+
case 3:
|
|
2289
|
+
tmp = ScalarStyle_PLAIN_getInstance();
|
|
2290
|
+
break;
|
|
2291
|
+
default:
|
|
2292
|
+
noWhenBranchMatchedException();
|
|
2293
|
+
break;
|
|
2294
|
+
}
|
|
2295
|
+
return tmp;
|
|
2296
|
+
}
|
|
2297
|
+
function _get_scalarStyle__245jbg_0($this, _this__u8e3s4) {
|
|
2298
|
+
var tmp;
|
|
2299
|
+
switch (_this__u8e3s4.v2_1) {
|
|
2300
|
+
case 0:
|
|
2301
|
+
tmp = ScalarStyle_DOUBLE_QUOTED_getInstance();
|
|
2302
|
+
break;
|
|
2303
|
+
case 1:
|
|
2304
|
+
tmp = ScalarStyle_SINGLE_QUOTED_getInstance();
|
|
2305
|
+
break;
|
|
2306
|
+
case 2:
|
|
2307
|
+
tmp = ScalarStyle_PLAIN_getInstance();
|
|
2308
|
+
break;
|
|
2309
|
+
case 3:
|
|
2310
|
+
tmp = ScalarStyle_PLAIN_getInstance();
|
|
2311
|
+
break;
|
|
2312
|
+
default:
|
|
2313
|
+
noWhenBranchMatchedException();
|
|
2314
|
+
break;
|
|
2315
|
+
}
|
|
2316
|
+
return tmp;
|
|
2317
|
+
}
|
|
2318
|
+
function _get_scalarStyle__245jbg_1($this, _this__u8e3s4) {
|
|
2319
|
+
var tmp;
|
|
2320
|
+
switch (_this__u8e3s4.v2_1) {
|
|
2321
|
+
case 0:
|
|
2322
|
+
tmp = ScalarStyle_DOUBLE_QUOTED_getInstance();
|
|
2323
|
+
break;
|
|
2324
|
+
case 1:
|
|
2325
|
+
tmp = ScalarStyle_SINGLE_QUOTED_getInstance();
|
|
2326
|
+
break;
|
|
2327
|
+
default:
|
|
2328
|
+
noWhenBranchMatchedException();
|
|
2329
|
+
break;
|
|
2330
|
+
}
|
|
2331
|
+
return tmp;
|
|
2332
|
+
}
|
|
2333
|
+
function Companion_1() {
|
|
2334
|
+
Companion_instance_3 = this;
|
|
2335
|
+
this.ohv_1 = new ImplicitTuple(true, true);
|
|
2336
|
+
this.phv_1 = new ImplicitTuple(false, false);
|
|
2337
|
+
}
|
|
2338
|
+
var Companion_instance_3;
|
|
2339
|
+
function Companion_getInstance_2() {
|
|
2340
|
+
if (Companion_instance_3 == null)
|
|
2341
|
+
new Companion_1();
|
|
2342
|
+
return Companion_instance_3;
|
|
2343
|
+
}
|
|
2344
|
+
function YamlOutput(writer, serializersModule, configuration) {
|
|
2345
|
+
Companion_getInstance_2();
|
|
2346
|
+
AbstractEncoder.call(this);
|
|
2347
|
+
this.ihv_1 = serializersModule;
|
|
2348
|
+
this.jhv_1 = configuration;
|
|
2349
|
+
this.khv_1 = Companion_instance.y11().mh6(true).ah6(this.jhv_1.aho_1).jh6(this.jhv_1.gho_1).lh6(this.jhv_1.gho_1 > 0).kh6(this.jhv_1.bho_1).o3o();
|
|
2350
|
+
this.lhv_1 = new Emitter(this.khv_1, writer);
|
|
2351
|
+
this.mhv_1 = false;
|
|
2352
|
+
this.nhv_1 = null;
|
|
2353
|
+
this.lhv_1.fhe(StreamStartEvent_init_$Create$());
|
|
2354
|
+
this.lhv_1.fhe(new DocumentStartEvent(false, null, emptyMap()));
|
|
2355
|
+
}
|
|
2356
|
+
protoOf(YamlOutput).lz = function () {
|
|
2357
|
+
return this.ihv_1;
|
|
2358
|
+
};
|
|
2359
|
+
protoOf(YamlOutput).t10 = function (descriptor, index) {
|
|
2360
|
+
return this.jhv_1.vhn_1;
|
|
2361
|
+
};
|
|
2362
|
+
protoOf(YamlOutput).rz = function () {
|
|
2363
|
+
return emitPlainScalar(this, 'null');
|
|
2364
|
+
};
|
|
2365
|
+
protoOf(YamlOutput).sz = function (value) {
|
|
2366
|
+
return emitPlainScalar(this, value.toString());
|
|
2367
|
+
};
|
|
2368
|
+
protoOf(YamlOutput).tz = function (value) {
|
|
2369
|
+
return emitPlainScalar(this, value.toString());
|
|
2370
|
+
};
|
|
2371
|
+
protoOf(YamlOutput).zz = function (value) {
|
|
2372
|
+
return emitQuotedScalar(this, toString_1(value), _get_scalarStyle__245jbg_0(this, this.jhv_1.dho_1));
|
|
2373
|
+
};
|
|
2374
|
+
protoOf(YamlOutput).yz = function (value) {
|
|
2375
|
+
return emitPlainScalar(this, value.toString());
|
|
2376
|
+
};
|
|
2377
|
+
protoOf(YamlOutput).xz = function (value) {
|
|
2378
|
+
return emitPlainScalar(this, value.toString());
|
|
2379
|
+
};
|
|
2380
|
+
protoOf(YamlOutput).vz = function (value) {
|
|
2381
|
+
return emitPlainScalar(this, value.toString());
|
|
2382
|
+
};
|
|
2383
|
+
protoOf(YamlOutput).wz = function (value) {
|
|
2384
|
+
return emitPlainScalar(this, value.toString());
|
|
2385
|
+
};
|
|
2386
|
+
protoOf(YamlOutput).uz = function (value) {
|
|
2387
|
+
return emitPlainScalar(this, value.toString());
|
|
2388
|
+
};
|
|
2389
|
+
protoOf(YamlOutput).a10 = function (value) {
|
|
2390
|
+
if (this.mhv_1) {
|
|
2391
|
+
this.nhv_1 = value;
|
|
2392
|
+
this.mhv_1 = false;
|
|
2393
|
+
} else {
|
|
2394
|
+
if (contains(value, _Char___init__impl__6a9atx(10))) {
|
|
2395
|
+
emitQuotedScalar(this, value, _get_scalarStyle__245jbg(this, this.jhv_1.eho_1));
|
|
2396
|
+
} else if (this.jhv_1.dho_1.equals(SingleLineStringStyle_PlainExceptAmbiguous_getInstance()) && isAmbiguous(this, value)) {
|
|
2397
|
+
emitQuotedScalar(this, value, _get_scalarStyle__245jbg_1(this, this.jhv_1.fho_1));
|
|
2398
|
+
} else {
|
|
2399
|
+
emitQuotedScalar(this, value, _get_scalarStyle__245jbg_0(this, this.jhv_1.dho_1));
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
};
|
|
2403
|
+
protoOf(YamlOutput).b10 = function (enumDescriptor, index) {
|
|
2404
|
+
return emitQuotedScalar(this, enumDescriptor.yw(index), _get_scalarStyle__245jbg_0(this, this.jhv_1.dho_1));
|
|
2405
|
+
};
|
|
2406
|
+
protoOf(YamlOutput).pz = function (descriptor, index) {
|
|
2407
|
+
encodeComment(this, descriptor, index);
|
|
2408
|
+
var tmp = descriptor.uw();
|
|
2409
|
+
if (tmp instanceof CLASS) {
|
|
2410
|
+
var elementName = descriptor.yw(index);
|
|
2411
|
+
var tmp22_safe_receiver = this.jhv_1.iho_1;
|
|
2412
|
+
var tmp0_elvis_lhs = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.ghv(elementName);
|
|
2413
|
+
var serializedName = tmp0_elvis_lhs == null ? elementName : tmp0_elvis_lhs;
|
|
2414
|
+
emitPlainScalar(this, serializedName);
|
|
2415
|
+
}
|
|
2416
|
+
return protoOf(AbstractEncoder).pz.call(this, descriptor, index);
|
|
2417
|
+
};
|
|
2418
|
+
protoOf(YamlOutput).wy = function (descriptor) {
|
|
2419
|
+
var tmp23_subject = descriptor.uw();
|
|
2420
|
+
if (tmp23_subject instanceof PolymorphicKind)
|
|
2421
|
+
this.mhv_1 = true;
|
|
2422
|
+
else {
|
|
2423
|
+
if (equals(tmp23_subject, LIST_getInstance())) {
|
|
2424
|
+
this.lhv_1.fhe(new SequenceStartEvent(null, null, true, _get_flowStyle__eylgtu(this, this.jhv_1.cho_1)));
|
|
2425
|
+
} else {
|
|
2426
|
+
if (equals(tmp23_subject, MAP_getInstance()) || (equals(tmp23_subject, CLASS_getInstance()) || equals(tmp23_subject, OBJECT_getInstance()))) {
|
|
2427
|
+
var typeName = getAndClearTypeName(this);
|
|
2428
|
+
switch (this.jhv_1.yhn_1.v2_1) {
|
|
2429
|
+
case 0:
|
|
2430
|
+
var implicit = typeName == null;
|
|
2431
|
+
this.lhv_1.fhe(new MappingStartEvent(null, typeName, implicit, FlowStyle_BLOCK_getInstance()));
|
|
2432
|
+
break;
|
|
2433
|
+
case 1:
|
|
2434
|
+
this.lhv_1.fhe(new MappingStartEvent(null, null, true, FlowStyle_BLOCK_getInstance()));
|
|
2435
|
+
if (!(typeName == null)) {
|
|
2436
|
+
emitPlainScalar(this, this.jhv_1.zhn_1);
|
|
2437
|
+
emitQuotedScalar(this, typeName, _get_scalarStyle__245jbg_0(this, SingleLineStringStyle_DoubleQuoted_getInstance()));
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
break;
|
|
2441
|
+
case 2:
|
|
2442
|
+
this.lhv_1.fhe(new MappingStartEvent(null, null, true, FlowStyle_BLOCK_getInstance()));
|
|
2443
|
+
break;
|
|
2444
|
+
default:
|
|
2445
|
+
noWhenBranchMatchedException();
|
|
2446
|
+
break;
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
return protoOf(AbstractEncoder).wy.call(this, descriptor);
|
|
2452
|
+
};
|
|
2453
|
+
protoOf(YamlOutput).xy = function (descriptor) {
|
|
2454
|
+
var tmp25_subject = descriptor.uw();
|
|
2455
|
+
if (equals(tmp25_subject, LIST_getInstance())) {
|
|
2456
|
+
this.lhv_1.fhe(SequenceEndEvent_init_$Create$());
|
|
2457
|
+
} else if (equals(tmp25_subject, MAP_getInstance()) || (equals(tmp25_subject, CLASS_getInstance()) || equals(tmp25_subject, OBJECT_getInstance()))) {
|
|
2458
|
+
this.lhv_1.fhe(MappingEndEvent_init_$Create$());
|
|
2459
|
+
}
|
|
2460
|
+
};
|
|
2461
|
+
protoOf(YamlOutput).u4 = function () {
|
|
2462
|
+
this.lhv_1.fhe(new DocumentEndEvent(false));
|
|
2463
|
+
this.lhv_1.fhe(StreamEndEvent_init_$Create$());
|
|
2464
|
+
};
|
|
2465
|
+
function checkEvent($this, path, retrieve) {
|
|
2466
|
+
try {
|
|
2467
|
+
return retrieve();
|
|
2468
|
+
} catch ($p) {
|
|
2469
|
+
if ($p instanceof MarkedYamlEngineException) {
|
|
2470
|
+
var e = $p;
|
|
2471
|
+
throw translateYamlEngineException($this, e, path);
|
|
2472
|
+
} else {
|
|
2473
|
+
throw $p;
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
function translateYamlEngineException($this, e, path) {
|
|
2478
|
+
var updatedMessage = StringBuilder_init_$Create$();
|
|
2479
|
+
var context = e.phf_1;
|
|
2480
|
+
var contextMark = e.qhf_1;
|
|
2481
|
+
if (!(context == null) && !(contextMark == null)) {
|
|
2482
|
+
var snippet = contextMark.nhf(4, 2147483647);
|
|
2483
|
+
updatedMessage.z8(trimMargin('\n |' + context + '\n | at line ' + (contextMark.jhf_1 + 1 | 0) + ', column ' + (contextMark.khf_1 + 1 | 0) + ':\n |' + snippet + '\n |\n '));
|
|
2484
|
+
}
|
|
2485
|
+
var problemMark = e.shf_1;
|
|
2486
|
+
if (!(problemMark == null)) {
|
|
2487
|
+
var problem = translateYamlEngineExceptionMessage($this, e.rhf_1);
|
|
2488
|
+
var snippet_0 = problemMark.nhf(4, 2147483647);
|
|
2489
|
+
updatedMessage.z8(trimMargin('\n |' + problem + '\n | at line ' + (problemMark.jhf_1 + 1 | 0) + ', column ' + (problemMark.khf_1 + 1 | 0) + ':\n |' + snippet_0 + '\n '));
|
|
2490
|
+
}
|
|
2491
|
+
var tmp;
|
|
2492
|
+
if (!(problemMark == null)) {
|
|
2493
|
+
tmp = path.ihu(new Location(problemMark.jhf_1 + 1 | 0, problemMark.khf_1 + 1 | 0));
|
|
2494
|
+
} else {
|
|
2495
|
+
tmp = path;
|
|
2496
|
+
}
|
|
2497
|
+
var updatedPath = tmp;
|
|
2498
|
+
return new MalformedYamlException(updatedMessage.toString(), updatedPath);
|
|
2499
|
+
}
|
|
2500
|
+
function translateYamlEngineExceptionMessage($this, message) {
|
|
2501
|
+
switch (message) {
|
|
2502
|
+
case 'mapping values are not allowed here':
|
|
2503
|
+
case "expected <block end>, but found '<block sequence start>'":
|
|
2504
|
+
case "expected <block end>, but found '<block mapping start>'":
|
|
2505
|
+
return message + ' (is the indentation level of this line or a line nearby incorrect?)';
|
|
2506
|
+
default:
|
|
2507
|
+
return message;
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
function YamlParser$consumeEvent$lambda(this$0) {
|
|
2511
|
+
return function () {
|
|
2512
|
+
return this$0.rho_1.r();
|
|
2513
|
+
};
|
|
2514
|
+
}
|
|
2515
|
+
function YamlParser$peekEvent$lambda(this$0) {
|
|
2516
|
+
return function () {
|
|
2517
|
+
return this$0.rho_1.mhj();
|
|
2518
|
+
};
|
|
2519
|
+
}
|
|
2520
|
+
function YamlParser(reader, codePointLimit) {
|
|
2521
|
+
codePointLimit = codePointLimit === VOID ? null : codePointLimit;
|
|
2522
|
+
this.oho_1 = 'DUMMY_FILE_NAME';
|
|
2523
|
+
var tmp = this;
|
|
2524
|
+
// Inline function 'kotlin.apply' call
|
|
2525
|
+
var this_0 = Companion_instance_0.y11();
|
|
2526
|
+
if (!(codePointLimit == null)) {
|
|
2527
|
+
this_0.bh8(codePointLimit);
|
|
2528
|
+
}
|
|
2529
|
+
this_0.ah8(this.oho_1);
|
|
2530
|
+
tmp.pho_1 = this_0.o3o();
|
|
2531
|
+
this.qho_1 = new StreamReader(this.pho_1, reader);
|
|
2532
|
+
this.rho_1 = ParserImpl_init_$Create$(this.pho_1, this.qho_1);
|
|
2533
|
+
this.lhu(ID_StreamStart_getInstance(), Companion_getInstance_3().ghu_1);
|
|
2534
|
+
if (this.jhu(Companion_getInstance_3().ghu_1).fh8().equals(ID_StreamEnd_getInstance())) {
|
|
2535
|
+
throw new EmptyYamlDocumentException('The YAML document is empty.', Companion_getInstance_3().ghu_1);
|
|
2536
|
+
}
|
|
2537
|
+
this.lhu(ID_DocumentStart_getInstance(), Companion_getInstance_3().ghu_1);
|
|
2538
|
+
}
|
|
2539
|
+
protoOf(YamlParser).sho = function () {
|
|
2540
|
+
this.lhu(ID_DocumentEnd_getInstance(), Companion_getInstance_3().ghu_1);
|
|
2541
|
+
this.lhu(ID_StreamEnd_getInstance(), Companion_getInstance_3().ghu_1);
|
|
2542
|
+
};
|
|
2543
|
+
protoOf(YamlParser).fhu = function (path) {
|
|
2544
|
+
return checkEvent(this, path, YamlParser$consumeEvent$lambda(this));
|
|
2545
|
+
};
|
|
2546
|
+
protoOf(YamlParser).jhu = function (path) {
|
|
2547
|
+
return checkEvent(this, path, YamlParser$peekEvent$lambda(this));
|
|
2548
|
+
};
|
|
2549
|
+
protoOf(YamlParser).lhu = function (type, path) {
|
|
2550
|
+
var event = this.fhu(path);
|
|
2551
|
+
if (!event.fh8().equals(type)) {
|
|
2552
|
+
throw new MalformedYamlException('Unexpected ' + event.fh8().toString() + ', expected ' + type.toString(), path.ihu(new Location(ensureNotNull(event.dh8_1).jhf_1, ensureNotNull(event.dh8_1).khf_1)));
|
|
2553
|
+
}
|
|
2554
|
+
};
|
|
2555
|
+
function YamlPath_init_$Init$(segments, $this) {
|
|
2556
|
+
YamlPath.call($this, toList_0(segments));
|
|
2557
|
+
return $this;
|
|
2558
|
+
}
|
|
2559
|
+
function YamlPath_init_$Create$(segments) {
|
|
2560
|
+
return YamlPath_init_$Init$(segments, objectCreate(protoOf(YamlPath)));
|
|
2561
|
+
}
|
|
2562
|
+
function withSegment($this, segment) {
|
|
2563
|
+
return new YamlPath(plus_0($this.ohp_1, segment));
|
|
2564
|
+
}
|
|
2565
|
+
function Companion_2() {
|
|
2566
|
+
Companion_instance_4 = this;
|
|
2567
|
+
this.ghu_1 = YamlPath_init_$Create$([Root_getInstance()]);
|
|
2568
|
+
}
|
|
2569
|
+
protoOf(Companion_2).hhu = function (name, location) {
|
|
2570
|
+
return YamlPath_init_$Create$([new AliasDefinition(name, location)]);
|
|
2571
|
+
};
|
|
2572
|
+
var Companion_instance_4;
|
|
2573
|
+
function Companion_getInstance_3() {
|
|
2574
|
+
if (Companion_instance_4 == null)
|
|
2575
|
+
new Companion_2();
|
|
2576
|
+
return Companion_instance_4;
|
|
2577
|
+
}
|
|
2578
|
+
function YamlPath(segments) {
|
|
2579
|
+
Companion_getInstance_3();
|
|
2580
|
+
this.ohp_1 = segments;
|
|
2581
|
+
if (this.ohp_1.m()) {
|
|
2582
|
+
throw IllegalArgumentException_init_$Create$('Path must contain at least one segment.');
|
|
2583
|
+
}
|
|
2584
|
+
var tmp;
|
|
2585
|
+
var tmp_0 = first(this.ohp_1);
|
|
2586
|
+
if (!(tmp_0 instanceof Root)) {
|
|
2587
|
+
var tmp_1 = first(this.ohp_1);
|
|
2588
|
+
tmp = !(tmp_1 instanceof AliasDefinition);
|
|
2589
|
+
} else {
|
|
2590
|
+
tmp = false;
|
|
2591
|
+
}
|
|
2592
|
+
if (tmp) {
|
|
2593
|
+
throw IllegalArgumentException_init_$Create$('First element of path must be root segment or alias definition.');
|
|
2594
|
+
}
|
|
2595
|
+
if (drop(this.ohp_1, 1).w(Root_getInstance())) {
|
|
2596
|
+
throw IllegalArgumentException_init_$Create$('Root segment can only be first element of path.');
|
|
2597
|
+
}
|
|
2598
|
+
this.php_1 = last(this.ohp_1).rht();
|
|
2599
|
+
}
|
|
2600
|
+
protoOf(YamlPath).ihu = function (location) {
|
|
2601
|
+
return withSegment(this, new Error_0(location));
|
|
2602
|
+
};
|
|
2603
|
+
protoOf(YamlPath).khu = function (index, location) {
|
|
2604
|
+
return withSegment(this, new ListEntry(index, location));
|
|
2605
|
+
};
|
|
2606
|
+
protoOf(YamlPath).mhu = function (key, location) {
|
|
2607
|
+
return withSegment(this, new MapElementKey(key, location));
|
|
2608
|
+
};
|
|
2609
|
+
protoOf(YamlPath).nhu = function (location) {
|
|
2610
|
+
return withSegment(this, new MapElementValue(location));
|
|
2611
|
+
};
|
|
2612
|
+
protoOf(YamlPath).phu = function (name, location) {
|
|
2613
|
+
return withSegment(this, new AliasReference(name, location));
|
|
2614
|
+
};
|
|
2615
|
+
protoOf(YamlPath).qhu = function (name, location) {
|
|
2616
|
+
return withSegment(this, new AliasDefinition(name, location));
|
|
2617
|
+
};
|
|
2618
|
+
protoOf(YamlPath).ohu = function (location) {
|
|
2619
|
+
return withSegment(this, new Merge(location));
|
|
2620
|
+
};
|
|
2621
|
+
protoOf(YamlPath).fhr = function () {
|
|
2622
|
+
var builder = StringBuilder_init_$Create$();
|
|
2623
|
+
var nextSegmentIndex = 1;
|
|
2624
|
+
while (nextSegmentIndex <= get_lastIndex(this.ohp_1)) {
|
|
2625
|
+
var segmentIndex = nextSegmentIndex;
|
|
2626
|
+
nextSegmentIndex = nextSegmentIndex + 1 | 0;
|
|
2627
|
+
var segment = this.ohp_1.u(segmentIndex);
|
|
2628
|
+
if (segment instanceof ListEntry) {
|
|
2629
|
+
builder.a9(_Char___init__impl__6a9atx(91));
|
|
2630
|
+
builder.sd(segment.shv_1);
|
|
2631
|
+
builder.a9(_Char___init__impl__6a9atx(93));
|
|
2632
|
+
} else {
|
|
2633
|
+
if (segment instanceof MapElementKey) {
|
|
2634
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2635
|
+
if (charSequenceLength(builder) > 0) {
|
|
2636
|
+
builder.a9(_Char___init__impl__6a9atx(46));
|
|
2637
|
+
}
|
|
2638
|
+
builder.z8(segment.yhv_1);
|
|
2639
|
+
} else {
|
|
2640
|
+
if (segment instanceof AliasReference) {
|
|
2641
|
+
builder.z8('->&');
|
|
2642
|
+
builder.z8(segment.vhv_1);
|
|
2643
|
+
} else {
|
|
2644
|
+
if (segment instanceof Merge) {
|
|
2645
|
+
builder.z8('>>(merged');
|
|
2646
|
+
var tmp;
|
|
2647
|
+
if (nextSegmentIndex <= get_lastIndex(this.ohp_1)) {
|
|
2648
|
+
var tmp_0 = this.ohp_1.u(nextSegmentIndex);
|
|
2649
|
+
tmp = tmp_0 instanceof ListEntry;
|
|
2650
|
+
} else {
|
|
2651
|
+
tmp = false;
|
|
2652
|
+
}
|
|
2653
|
+
if (tmp) {
|
|
2654
|
+
builder.z8(' entry ');
|
|
2655
|
+
var tmp_1 = this.ohp_1.u(nextSegmentIndex);
|
|
2656
|
+
builder.sd((tmp_1 instanceof ListEntry ? tmp_1 : THROW_CCE()).shv_1);
|
|
2657
|
+
nextSegmentIndex = nextSegmentIndex + 1 | 0;
|
|
2658
|
+
}
|
|
2659
|
+
var tmp_2;
|
|
2660
|
+
if (nextSegmentIndex <= get_lastIndex(this.ohp_1)) {
|
|
2661
|
+
var tmp_3 = this.ohp_1.u(nextSegmentIndex);
|
|
2662
|
+
tmp_2 = tmp_3 instanceof AliasReference;
|
|
2663
|
+
} else {
|
|
2664
|
+
tmp_2 = false;
|
|
2665
|
+
}
|
|
2666
|
+
if (tmp_2) {
|
|
2667
|
+
builder.z8(' &');
|
|
2668
|
+
var tmp_4 = this.ohp_1.u(nextSegmentIndex);
|
|
2669
|
+
builder.z8((tmp_4 instanceof AliasReference ? tmp_4 : THROW_CCE()).vhv_1);
|
|
2670
|
+
nextSegmentIndex = nextSegmentIndex + 1 | 0;
|
|
2671
|
+
}
|
|
2672
|
+
builder.z8(')');
|
|
2673
|
+
} else {
|
|
2674
|
+
var tmp_5;
|
|
2675
|
+
var tmp_6;
|
|
2676
|
+
if (segment instanceof Root) {
|
|
2677
|
+
tmp_6 = true;
|
|
2678
|
+
} else {
|
|
2679
|
+
tmp_6 = segment instanceof Error_0;
|
|
2680
|
+
}
|
|
2681
|
+
if (tmp_6) {
|
|
2682
|
+
tmp_5 = true;
|
|
2683
|
+
} else {
|
|
2684
|
+
var tmp_7;
|
|
2685
|
+
if (segment instanceof MapElementValue) {
|
|
2686
|
+
tmp_7 = true;
|
|
2687
|
+
} else {
|
|
2688
|
+
tmp_7 = segment instanceof AliasDefinition;
|
|
2689
|
+
}
|
|
2690
|
+
tmp_5 = tmp_7;
|
|
2691
|
+
}
|
|
2692
|
+
if (!tmp_5) {
|
|
2693
|
+
noWhenBranchMatchedException();
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2701
|
+
if (charSequenceLength(builder) > 0) {
|
|
2702
|
+
return builder.toString();
|
|
2703
|
+
}
|
|
2704
|
+
return '<root>';
|
|
2705
|
+
};
|
|
2706
|
+
protoOf(YamlPath).toString = function () {
|
|
2707
|
+
return 'YamlPath(segments=' + toString(this.ohp_1) + ')';
|
|
2708
|
+
};
|
|
2709
|
+
protoOf(YamlPath).hashCode = function () {
|
|
2710
|
+
return hashCode(this.ohp_1);
|
|
2711
|
+
};
|
|
2712
|
+
protoOf(YamlPath).equals = function (other) {
|
|
2713
|
+
if (this === other)
|
|
2714
|
+
return true;
|
|
2715
|
+
if (!(other instanceof YamlPath))
|
|
2716
|
+
return false;
|
|
2717
|
+
var tmp0_other_with_cast = other instanceof YamlPath ? other : THROW_CCE();
|
|
2718
|
+
if (!equals(this.ohp_1, tmp0_other_with_cast.ohp_1))
|
|
2719
|
+
return false;
|
|
2720
|
+
return true;
|
|
2721
|
+
};
|
|
2722
|
+
function Root() {
|
|
2723
|
+
Root_instance = this;
|
|
2724
|
+
YamlPathSegment.call(this, new Location(1, 1));
|
|
2725
|
+
}
|
|
2726
|
+
var Root_instance;
|
|
2727
|
+
function Root_getInstance() {
|
|
2728
|
+
if (Root_instance == null)
|
|
2729
|
+
new Root();
|
|
2730
|
+
return Root_instance;
|
|
2731
|
+
}
|
|
2732
|
+
function ListEntry(index, location) {
|
|
2733
|
+
YamlPathSegment.call(this, location);
|
|
2734
|
+
this.shv_1 = index;
|
|
2735
|
+
this.thv_1 = location;
|
|
2736
|
+
}
|
|
2737
|
+
protoOf(ListEntry).rht = function () {
|
|
2738
|
+
return this.thv_1;
|
|
2739
|
+
};
|
|
2740
|
+
protoOf(ListEntry).toString = function () {
|
|
2741
|
+
return 'ListEntry(index=' + this.shv_1 + ', location=' + this.thv_1.toString() + ')';
|
|
2742
|
+
};
|
|
2743
|
+
protoOf(ListEntry).hashCode = function () {
|
|
2744
|
+
var result = this.shv_1;
|
|
2745
|
+
result = imul(result, 31) + this.thv_1.hashCode() | 0;
|
|
2746
|
+
return result;
|
|
2747
|
+
};
|
|
2748
|
+
protoOf(ListEntry).equals = function (other) {
|
|
2749
|
+
if (this === other)
|
|
2750
|
+
return true;
|
|
2751
|
+
if (!(other instanceof ListEntry))
|
|
2752
|
+
return false;
|
|
2753
|
+
var tmp0_other_with_cast = other instanceof ListEntry ? other : THROW_CCE();
|
|
2754
|
+
if (!(this.shv_1 === tmp0_other_with_cast.shv_1))
|
|
2755
|
+
return false;
|
|
2756
|
+
if (!this.thv_1.equals(tmp0_other_with_cast.thv_1))
|
|
2757
|
+
return false;
|
|
2758
|
+
return true;
|
|
2759
|
+
};
|
|
2760
|
+
function MapElementKey(key, location) {
|
|
2761
|
+
YamlPathSegment.call(this, location);
|
|
2762
|
+
this.yhv_1 = key;
|
|
2763
|
+
this.zhv_1 = location;
|
|
2764
|
+
}
|
|
2765
|
+
protoOf(MapElementKey).rht = function () {
|
|
2766
|
+
return this.zhv_1;
|
|
2767
|
+
};
|
|
2768
|
+
protoOf(MapElementKey).toString = function () {
|
|
2769
|
+
return 'MapElementKey(key=' + this.yhv_1 + ', location=' + this.zhv_1.toString() + ')';
|
|
2770
|
+
};
|
|
2771
|
+
protoOf(MapElementKey).hashCode = function () {
|
|
2772
|
+
var result = getStringHashCode(this.yhv_1);
|
|
2773
|
+
result = imul(result, 31) + this.zhv_1.hashCode() | 0;
|
|
2774
|
+
return result;
|
|
2775
|
+
};
|
|
2776
|
+
protoOf(MapElementKey).equals = function (other) {
|
|
2777
|
+
if (this === other)
|
|
2778
|
+
return true;
|
|
2779
|
+
if (!(other instanceof MapElementKey))
|
|
2780
|
+
return false;
|
|
2781
|
+
var tmp0_other_with_cast = other instanceof MapElementKey ? other : THROW_CCE();
|
|
2782
|
+
if (!(this.yhv_1 === tmp0_other_with_cast.yhv_1))
|
|
2783
|
+
return false;
|
|
2784
|
+
if (!this.zhv_1.equals(tmp0_other_with_cast.zhv_1))
|
|
2785
|
+
return false;
|
|
2786
|
+
return true;
|
|
2787
|
+
};
|
|
2788
|
+
function MapElementValue(location) {
|
|
2789
|
+
YamlPathSegment.call(this, location);
|
|
2790
|
+
this.bhw_1 = location;
|
|
2791
|
+
}
|
|
2792
|
+
protoOf(MapElementValue).rht = function () {
|
|
2793
|
+
return this.bhw_1;
|
|
2794
|
+
};
|
|
2795
|
+
protoOf(MapElementValue).toString = function () {
|
|
2796
|
+
return 'MapElementValue(location=' + this.bhw_1.toString() + ')';
|
|
2797
|
+
};
|
|
2798
|
+
protoOf(MapElementValue).hashCode = function () {
|
|
2799
|
+
return this.bhw_1.hashCode();
|
|
2800
|
+
};
|
|
2801
|
+
protoOf(MapElementValue).equals = function (other) {
|
|
2802
|
+
if (this === other)
|
|
2803
|
+
return true;
|
|
2804
|
+
if (!(other instanceof MapElementValue))
|
|
2805
|
+
return false;
|
|
2806
|
+
var tmp0_other_with_cast = other instanceof MapElementValue ? other : THROW_CCE();
|
|
2807
|
+
if (!this.bhw_1.equals(tmp0_other_with_cast.bhw_1))
|
|
2808
|
+
return false;
|
|
2809
|
+
return true;
|
|
2810
|
+
};
|
|
2811
|
+
function AliasReference(name, location) {
|
|
2812
|
+
YamlPathSegment.call(this, location);
|
|
2813
|
+
this.vhv_1 = name;
|
|
2814
|
+
this.whv_1 = location;
|
|
2815
|
+
}
|
|
2816
|
+
protoOf(AliasReference).rht = function () {
|
|
2817
|
+
return this.whv_1;
|
|
2818
|
+
};
|
|
2819
|
+
protoOf(AliasReference).toString = function () {
|
|
2820
|
+
return 'AliasReference(name=' + this.vhv_1 + ', location=' + this.whv_1.toString() + ')';
|
|
2821
|
+
};
|
|
2822
|
+
protoOf(AliasReference).hashCode = function () {
|
|
2823
|
+
var result = getStringHashCode(this.vhv_1);
|
|
2824
|
+
result = imul(result, 31) + this.whv_1.hashCode() | 0;
|
|
2825
|
+
return result;
|
|
2826
|
+
};
|
|
2827
|
+
protoOf(AliasReference).equals = function (other) {
|
|
2828
|
+
if (this === other)
|
|
2829
|
+
return true;
|
|
2830
|
+
if (!(other instanceof AliasReference))
|
|
2831
|
+
return false;
|
|
2832
|
+
var tmp0_other_with_cast = other instanceof AliasReference ? other : THROW_CCE();
|
|
2833
|
+
if (!(this.vhv_1 === tmp0_other_with_cast.vhv_1))
|
|
2834
|
+
return false;
|
|
2835
|
+
if (!this.whv_1.equals(tmp0_other_with_cast.whv_1))
|
|
2836
|
+
return false;
|
|
2837
|
+
return true;
|
|
2838
|
+
};
|
|
2839
|
+
function AliasDefinition(name, location) {
|
|
2840
|
+
YamlPathSegment.call(this, location);
|
|
2841
|
+
this.dhw_1 = name;
|
|
2842
|
+
this.ehw_1 = location;
|
|
2843
|
+
}
|
|
2844
|
+
protoOf(AliasDefinition).rht = function () {
|
|
2845
|
+
return this.ehw_1;
|
|
2846
|
+
};
|
|
2847
|
+
protoOf(AliasDefinition).toString = function () {
|
|
2848
|
+
return 'AliasDefinition(name=' + this.dhw_1 + ', location=' + this.ehw_1.toString() + ')';
|
|
2849
|
+
};
|
|
2850
|
+
protoOf(AliasDefinition).hashCode = function () {
|
|
2851
|
+
var result = getStringHashCode(this.dhw_1);
|
|
2852
|
+
result = imul(result, 31) + this.ehw_1.hashCode() | 0;
|
|
2853
|
+
return result;
|
|
2854
|
+
};
|
|
2855
|
+
protoOf(AliasDefinition).equals = function (other) {
|
|
2856
|
+
if (this === other)
|
|
2857
|
+
return true;
|
|
2858
|
+
if (!(other instanceof AliasDefinition))
|
|
2859
|
+
return false;
|
|
2860
|
+
var tmp0_other_with_cast = other instanceof AliasDefinition ? other : THROW_CCE();
|
|
2861
|
+
if (!(this.dhw_1 === tmp0_other_with_cast.dhw_1))
|
|
2862
|
+
return false;
|
|
2863
|
+
if (!this.ehw_1.equals(tmp0_other_with_cast.ehw_1))
|
|
2864
|
+
return false;
|
|
2865
|
+
return true;
|
|
2866
|
+
};
|
|
2867
|
+
function Merge(location) {
|
|
2868
|
+
YamlPathSegment.call(this, location);
|
|
2869
|
+
this.ghw_1 = location;
|
|
2870
|
+
}
|
|
2871
|
+
protoOf(Merge).rht = function () {
|
|
2872
|
+
return this.ghw_1;
|
|
2873
|
+
};
|
|
2874
|
+
protoOf(Merge).toString = function () {
|
|
2875
|
+
return 'Merge(location=' + this.ghw_1.toString() + ')';
|
|
2876
|
+
};
|
|
2877
|
+
protoOf(Merge).hashCode = function () {
|
|
2878
|
+
return this.ghw_1.hashCode();
|
|
2879
|
+
};
|
|
2880
|
+
protoOf(Merge).equals = function (other) {
|
|
2881
|
+
if (this === other)
|
|
2882
|
+
return true;
|
|
2883
|
+
if (!(other instanceof Merge))
|
|
2884
|
+
return false;
|
|
2885
|
+
var tmp0_other_with_cast = other instanceof Merge ? other : THROW_CCE();
|
|
2886
|
+
if (!this.ghw_1.equals(tmp0_other_with_cast.ghw_1))
|
|
2887
|
+
return false;
|
|
2888
|
+
return true;
|
|
2889
|
+
};
|
|
2890
|
+
function Error_0(location) {
|
|
2891
|
+
YamlPathSegment.call(this, location);
|
|
2892
|
+
this.ihw_1 = location;
|
|
2893
|
+
}
|
|
2894
|
+
protoOf(Error_0).rht = function () {
|
|
2895
|
+
return this.ihw_1;
|
|
2896
|
+
};
|
|
2897
|
+
protoOf(Error_0).toString = function () {
|
|
2898
|
+
return 'Error(location=' + this.ihw_1.toString() + ')';
|
|
2899
|
+
};
|
|
2900
|
+
protoOf(Error_0).hashCode = function () {
|
|
2901
|
+
return this.ihw_1.hashCode();
|
|
2902
|
+
};
|
|
2903
|
+
protoOf(Error_0).equals = function (other) {
|
|
2904
|
+
if (this === other)
|
|
2905
|
+
return true;
|
|
2906
|
+
if (!(other instanceof Error_0))
|
|
2907
|
+
return false;
|
|
2908
|
+
var tmp0_other_with_cast = other instanceof Error_0 ? other : THROW_CCE();
|
|
2909
|
+
if (!this.ihw_1.equals(tmp0_other_with_cast.ihw_1))
|
|
2910
|
+
return false;
|
|
2911
|
+
return true;
|
|
2912
|
+
};
|
|
2913
|
+
function YamlPathSegment(location) {
|
|
2914
|
+
this.qhv_1 = location;
|
|
2915
|
+
}
|
|
2916
|
+
protoOf(YamlPathSegment).rht = function () {
|
|
2917
|
+
return this.qhv_1;
|
|
2918
|
+
};
|
|
2919
|
+
var CurrentField_NotStarted_instance;
|
|
2920
|
+
var CurrentField_Type_instance;
|
|
2921
|
+
var CurrentField_Content_instance;
|
|
2922
|
+
var CurrentField_entriesInitialized;
|
|
2923
|
+
function CurrentField_initEntries() {
|
|
2924
|
+
if (CurrentField_entriesInitialized)
|
|
2925
|
+
return Unit_instance;
|
|
2926
|
+
CurrentField_entriesInitialized = true;
|
|
2927
|
+
CurrentField_NotStarted_instance = new CurrentField('NotStarted', 0);
|
|
2928
|
+
CurrentField_Type_instance = new CurrentField('Type', 1);
|
|
2929
|
+
CurrentField_Content_instance = new CurrentField('Content', 2);
|
|
2930
|
+
}
|
|
2931
|
+
function _get_contentDecoder__ypxfj4($this) {
|
|
2932
|
+
var tmp = $this.rhw_1;
|
|
2933
|
+
if (!(tmp == null))
|
|
2934
|
+
return tmp;
|
|
2935
|
+
else {
|
|
2936
|
+
throwUninitializedPropertyAccessException('contentDecoder');
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
function throwIfUnknownPolymorphicTypeException($this, e, deserializer) {
|
|
2940
|
+
var tmp0_elvis_lhs = e.message;
|
|
2941
|
+
var tmp;
|
|
2942
|
+
if (tmp0_elvis_lhs == null) {
|
|
2943
|
+
return Unit_instance;
|
|
2944
|
+
} else {
|
|
2945
|
+
tmp = tmp0_elvis_lhs;
|
|
2946
|
+
}
|
|
2947
|
+
var message = tmp;
|
|
2948
|
+
var tmp1_elvis_lhs = Companion_getInstance_4().shw_1.re(message, 0);
|
|
2949
|
+
var tmp_0;
|
|
2950
|
+
if (tmp1_elvis_lhs == null) {
|
|
2951
|
+
return Unit_instance;
|
|
2952
|
+
} else {
|
|
2953
|
+
tmp_0 = tmp1_elvis_lhs;
|
|
2954
|
+
}
|
|
2955
|
+
var match = tmp_0;
|
|
2956
|
+
var unknownType = match.nf().u(1);
|
|
2957
|
+
var className = match.nf().u(2);
|
|
2958
|
+
var tmp35_subject = deserializer.fv().uw();
|
|
2959
|
+
var tmp_1;
|
|
2960
|
+
if (equals(tmp35_subject, SEALED_getInstance())) {
|
|
2961
|
+
tmp_1 = getKnownTypesForSealedType($this, deserializer);
|
|
2962
|
+
} else if (equals(tmp35_subject, OPEN_getInstance())) {
|
|
2963
|
+
tmp_1 = getKnownTypesForOpenType($this, className);
|
|
2964
|
+
} else {
|
|
2965
|
+
throw IllegalArgumentException_init_$Create$("Can't get known types for descriptor of kind " + deserializer.fv().uw().toString());
|
|
2966
|
+
}
|
|
2967
|
+
var knownTypes = tmp_1;
|
|
2968
|
+
throw new UnknownPolymorphicTypeException(unknownType, knownTypes, $this.ohw_1, e);
|
|
2969
|
+
}
|
|
2970
|
+
function getKnownTypesForSealedType($this, deserializer) {
|
|
2971
|
+
var typesDescriptor = deserializer.fv().bx(1);
|
|
2972
|
+
return toSet(get_elementNames(typesDescriptor));
|
|
2973
|
+
}
|
|
2974
|
+
function getKnownTypesForOpenType($this, className) {
|
|
2975
|
+
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
2976
|
+
var knownTypes = LinkedHashSet_init_$Create$();
|
|
2977
|
+
var tmp = $this.lz();
|
|
2978
|
+
tmp.p1g(new YamlPolymorphicInput$getKnownTypesForOpenType$1(className, knownTypes));
|
|
2979
|
+
return knownTypes;
|
|
2980
|
+
}
|
|
2981
|
+
function CurrentField(name, ordinal) {
|
|
2982
|
+
Enum.call(this, name, ordinal);
|
|
2983
|
+
}
|
|
2984
|
+
function Companion_3() {
|
|
2985
|
+
Companion_instance_5 = this;
|
|
2986
|
+
var tmp = this;
|
|
2987
|
+
// Inline function 'kotlin.text.toRegex' call
|
|
2988
|
+
var this_0 = "^Serializer for subclass '(.*)' is not found in the polymorphic scope of '(.*)'.\\n.*";
|
|
2989
|
+
tmp.shw_1 = Regex_init_$Create$(this_0);
|
|
2990
|
+
}
|
|
2991
|
+
var Companion_instance_5;
|
|
2992
|
+
function Companion_getInstance_4() {
|
|
2993
|
+
if (Companion_instance_5 == null)
|
|
2994
|
+
new Companion_3();
|
|
2995
|
+
return Companion_instance_5;
|
|
2996
|
+
}
|
|
2997
|
+
function YamlPolymorphicInput$getKnownTypesForOpenType$1($className, $knownTypes) {
|
|
2998
|
+
this.thw_1 = $className;
|
|
2999
|
+
this.uhw_1 = $knownTypes;
|
|
3000
|
+
}
|
|
3001
|
+
protoOf(YamlPolymorphicInput$getKnownTypesForOpenType$1).s1g = function (kClass, provider) {
|
|
3002
|
+
};
|
|
3003
|
+
protoOf(YamlPolymorphicInput$getKnownTypesForOpenType$1).v1g = function (baseClass, actualClass, actualSerializer) {
|
|
3004
|
+
if (baseClass.zb() === this.thw_1) {
|
|
3005
|
+
this.uhw_1.h(actualSerializer.fv().fw());
|
|
3006
|
+
}
|
|
3007
|
+
};
|
|
3008
|
+
protoOf(YamlPolymorphicInput$getKnownTypesForOpenType$1).w1g = function (baseClass, defaultSerializerProvider) {
|
|
3009
|
+
throw UnsupportedOperationException_init_$Create$('This method should never be called.');
|
|
3010
|
+
};
|
|
3011
|
+
protoOf(YamlPolymorphicInput$getKnownTypesForOpenType$1).x1g = function (baseClass, defaultDeserializerProvider) {
|
|
3012
|
+
throw UnsupportedOperationException_init_$Create$('This method should never be called');
|
|
3013
|
+
};
|
|
3014
|
+
function CurrentField_NotStarted_getInstance() {
|
|
3015
|
+
CurrentField_initEntries();
|
|
3016
|
+
return CurrentField_NotStarted_instance;
|
|
3017
|
+
}
|
|
3018
|
+
function CurrentField_Type_getInstance() {
|
|
3019
|
+
CurrentField_initEntries();
|
|
3020
|
+
return CurrentField_Type_instance;
|
|
3021
|
+
}
|
|
3022
|
+
function CurrentField_Content_getInstance() {
|
|
3023
|
+
CurrentField_initEntries();
|
|
3024
|
+
return CurrentField_Content_instance;
|
|
3025
|
+
}
|
|
3026
|
+
function YamlPolymorphicInput(typeName, typeNamePath, contentNode, yaml, context, configuration) {
|
|
3027
|
+
Companion_getInstance_4();
|
|
3028
|
+
YamlInput.call(this, contentNode, yaml, context, configuration);
|
|
3029
|
+
this.nhw_1 = typeName;
|
|
3030
|
+
this.ohw_1 = typeNamePath;
|
|
3031
|
+
this.phw_1 = contentNode;
|
|
3032
|
+
this.qhw_1 = CurrentField_NotStarted_getInstance();
|
|
3033
|
+
}
|
|
3034
|
+
protoOf(YamlPolymorphicInput).nz = function (descriptor) {
|
|
3035
|
+
var tmp;
|
|
3036
|
+
switch (this.qhw_1.v2_1) {
|
|
3037
|
+
case 0:
|
|
3038
|
+
this.qhw_1 = CurrentField_Type_getInstance();
|
|
3039
|
+
tmp = 0;
|
|
3040
|
+
break;
|
|
3041
|
+
case 1:
|
|
3042
|
+
var tmp32_subject = this.phw_1;
|
|
3043
|
+
if (tmp32_subject instanceof YamlScalar)
|
|
3044
|
+
this.rhw_1 = new YamlScalarInput(this.phw_1, this.rhn_1, this.lz(), this.thn_1);
|
|
3045
|
+
else {
|
|
3046
|
+
if (tmp32_subject instanceof YamlNull)
|
|
3047
|
+
this.rhw_1 = new YamlNullInput(this.phw_1, this.rhn_1, this.lz(), this.thn_1);
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
this.qhw_1 = CurrentField_Content_getInstance();
|
|
3051
|
+
tmp = 1;
|
|
3052
|
+
break;
|
|
3053
|
+
case 2:
|
|
3054
|
+
tmp = -1;
|
|
3055
|
+
break;
|
|
3056
|
+
default:
|
|
3057
|
+
noWhenBranchMatchedException();
|
|
3058
|
+
break;
|
|
3059
|
+
}
|
|
3060
|
+
return tmp;
|
|
3061
|
+
};
|
|
3062
|
+
protoOf(YamlPolymorphicInput).hy = function () {
|
|
3063
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3064
|
+
var tmp;
|
|
3065
|
+
switch (this.qhw_1.v2_1) {
|
|
3066
|
+
case 0:
|
|
3067
|
+
case 1:
|
|
3068
|
+
tmp = true;
|
|
3069
|
+
break;
|
|
3070
|
+
case 2:
|
|
3071
|
+
tmp = _get_contentDecoder__ypxfj4(this).hy();
|
|
3072
|
+
break;
|
|
3073
|
+
default:
|
|
3074
|
+
noWhenBranchMatchedException();
|
|
3075
|
+
break;
|
|
3076
|
+
}
|
|
3077
|
+
return tmp;
|
|
3078
|
+
};
|
|
3079
|
+
protoOf(YamlPolymorphicInput).iy = function () {
|
|
3080
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3081
|
+
var functionName = 'decodeNull';
|
|
3082
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3083
|
+
var tmp;
|
|
3084
|
+
switch (this.qhw_1.v2_1) {
|
|
3085
|
+
case 0:
|
|
3086
|
+
case 1:
|
|
3087
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3088
|
+
case 2:
|
|
3089
|
+
tmp = _get_contentDecoder__ypxfj4(this).iy();
|
|
3090
|
+
break;
|
|
3091
|
+
default:
|
|
3092
|
+
noWhenBranchMatchedException();
|
|
3093
|
+
break;
|
|
3094
|
+
}
|
|
3095
|
+
return tmp;
|
|
3096
|
+
};
|
|
3097
|
+
protoOf(YamlPolymorphicInput).jy = function () {
|
|
3098
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3099
|
+
var functionName = 'decodeBoolean';
|
|
3100
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3101
|
+
var tmp;
|
|
3102
|
+
switch (this.qhw_1.v2_1) {
|
|
3103
|
+
case 0:
|
|
3104
|
+
case 1:
|
|
3105
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3106
|
+
case 2:
|
|
3107
|
+
tmp = _get_contentDecoder__ypxfj4(this).jy();
|
|
3108
|
+
break;
|
|
3109
|
+
default:
|
|
3110
|
+
noWhenBranchMatchedException();
|
|
3111
|
+
break;
|
|
3112
|
+
}
|
|
3113
|
+
return tmp;
|
|
3114
|
+
};
|
|
3115
|
+
protoOf(YamlPolymorphicInput).ky = function () {
|
|
3116
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3117
|
+
var functionName = 'decodeByte';
|
|
3118
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3119
|
+
var tmp;
|
|
3120
|
+
switch (this.qhw_1.v2_1) {
|
|
3121
|
+
case 0:
|
|
3122
|
+
case 1:
|
|
3123
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3124
|
+
case 2:
|
|
3125
|
+
tmp = _get_contentDecoder__ypxfj4(this).ky();
|
|
3126
|
+
break;
|
|
3127
|
+
default:
|
|
3128
|
+
noWhenBranchMatchedException();
|
|
3129
|
+
break;
|
|
3130
|
+
}
|
|
3131
|
+
return tmp;
|
|
3132
|
+
};
|
|
3133
|
+
protoOf(YamlPolymorphicInput).ly = function () {
|
|
3134
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3135
|
+
var functionName = 'decodeShort';
|
|
3136
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3137
|
+
var tmp;
|
|
3138
|
+
switch (this.qhw_1.v2_1) {
|
|
3139
|
+
case 0:
|
|
3140
|
+
case 1:
|
|
3141
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3142
|
+
case 2:
|
|
3143
|
+
tmp = _get_contentDecoder__ypxfj4(this).ly();
|
|
3144
|
+
break;
|
|
3145
|
+
default:
|
|
3146
|
+
noWhenBranchMatchedException();
|
|
3147
|
+
break;
|
|
3148
|
+
}
|
|
3149
|
+
return tmp;
|
|
3150
|
+
};
|
|
3151
|
+
protoOf(YamlPolymorphicInput).my = function () {
|
|
3152
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3153
|
+
var functionName = 'decodeInt';
|
|
3154
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3155
|
+
var tmp;
|
|
3156
|
+
switch (this.qhw_1.v2_1) {
|
|
3157
|
+
case 0:
|
|
3158
|
+
case 1:
|
|
3159
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3160
|
+
case 2:
|
|
3161
|
+
tmp = _get_contentDecoder__ypxfj4(this).my();
|
|
3162
|
+
break;
|
|
3163
|
+
default:
|
|
3164
|
+
noWhenBranchMatchedException();
|
|
3165
|
+
break;
|
|
3166
|
+
}
|
|
3167
|
+
return tmp;
|
|
3168
|
+
};
|
|
3169
|
+
protoOf(YamlPolymorphicInput).ny = function () {
|
|
3170
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3171
|
+
var functionName = 'decodeLong';
|
|
3172
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3173
|
+
var tmp;
|
|
3174
|
+
switch (this.qhw_1.v2_1) {
|
|
3175
|
+
case 0:
|
|
3176
|
+
case 1:
|
|
3177
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3178
|
+
case 2:
|
|
3179
|
+
tmp = _get_contentDecoder__ypxfj4(this).ny();
|
|
3180
|
+
break;
|
|
3181
|
+
default:
|
|
3182
|
+
noWhenBranchMatchedException();
|
|
3183
|
+
break;
|
|
3184
|
+
}
|
|
3185
|
+
return tmp;
|
|
3186
|
+
};
|
|
3187
|
+
protoOf(YamlPolymorphicInput).oy = function () {
|
|
3188
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3189
|
+
var functionName = 'decodeFloat';
|
|
3190
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3191
|
+
var tmp;
|
|
3192
|
+
switch (this.qhw_1.v2_1) {
|
|
3193
|
+
case 0:
|
|
3194
|
+
case 1:
|
|
3195
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3196
|
+
case 2:
|
|
3197
|
+
tmp = _get_contentDecoder__ypxfj4(this).oy();
|
|
3198
|
+
break;
|
|
3199
|
+
default:
|
|
3200
|
+
noWhenBranchMatchedException();
|
|
3201
|
+
break;
|
|
3202
|
+
}
|
|
3203
|
+
return tmp;
|
|
3204
|
+
};
|
|
3205
|
+
protoOf(YamlPolymorphicInput).py = function () {
|
|
3206
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3207
|
+
var functionName = 'decodeDouble';
|
|
3208
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3209
|
+
var tmp;
|
|
3210
|
+
switch (this.qhw_1.v2_1) {
|
|
3211
|
+
case 0:
|
|
3212
|
+
case 1:
|
|
3213
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3214
|
+
case 2:
|
|
3215
|
+
tmp = _get_contentDecoder__ypxfj4(this).py();
|
|
3216
|
+
break;
|
|
3217
|
+
default:
|
|
3218
|
+
noWhenBranchMatchedException();
|
|
3219
|
+
break;
|
|
3220
|
+
}
|
|
3221
|
+
return tmp;
|
|
3222
|
+
};
|
|
3223
|
+
protoOf(YamlPolymorphicInput).qy = function () {
|
|
3224
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3225
|
+
var functionName = 'decodeChar';
|
|
3226
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3227
|
+
var tmp;
|
|
3228
|
+
switch (this.qhw_1.v2_1) {
|
|
3229
|
+
case 0:
|
|
3230
|
+
case 1:
|
|
3231
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3232
|
+
case 2:
|
|
3233
|
+
var p0 = _get_contentDecoder__ypxfj4(this);
|
|
3234
|
+
tmp = new Char(p0.qy());
|
|
3235
|
+
break;
|
|
3236
|
+
default:
|
|
3237
|
+
noWhenBranchMatchedException();
|
|
3238
|
+
break;
|
|
3239
|
+
}
|
|
3240
|
+
return tmp.t1_1;
|
|
3241
|
+
};
|
|
3242
|
+
protoOf(YamlPolymorphicInput).ry = function () {
|
|
3243
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3244
|
+
var tmp;
|
|
3245
|
+
switch (this.qhw_1.v2_1) {
|
|
3246
|
+
case 0:
|
|
3247
|
+
case 1:
|
|
3248
|
+
tmp = this.nhw_1;
|
|
3249
|
+
break;
|
|
3250
|
+
case 2:
|
|
3251
|
+
tmp = _get_contentDecoder__ypxfj4(this).ry();
|
|
3252
|
+
break;
|
|
3253
|
+
default:
|
|
3254
|
+
noWhenBranchMatchedException();
|
|
3255
|
+
break;
|
|
3256
|
+
}
|
|
3257
|
+
return tmp;
|
|
3258
|
+
};
|
|
3259
|
+
protoOf(YamlPolymorphicInput).sy = function (enumDescriptor) {
|
|
3260
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3261
|
+
var functionName = 'decodeEnum';
|
|
3262
|
+
// Inline function 'com.charleskorn.kaml.YamlPolymorphicInput.maybeCallOnContent' call
|
|
3263
|
+
var tmp;
|
|
3264
|
+
switch (this.qhw_1.v2_1) {
|
|
3265
|
+
case 0:
|
|
3266
|
+
case 1:
|
|
3267
|
+
throw UnsupportedOperationException_init_$Create$("Can't call " + functionName + '() on type field');
|
|
3268
|
+
case 2:
|
|
3269
|
+
tmp = _get_contentDecoder__ypxfj4(this).sy(enumDescriptor);
|
|
3270
|
+
break;
|
|
3271
|
+
default:
|
|
3272
|
+
noWhenBranchMatchedException();
|
|
3273
|
+
break;
|
|
3274
|
+
}
|
|
3275
|
+
return tmp;
|
|
3276
|
+
};
|
|
3277
|
+
protoOf(YamlPolymorphicInput).wy = function (descriptor) {
|
|
3278
|
+
var tmp;
|
|
3279
|
+
switch (this.qhw_1.v2_1) {
|
|
3280
|
+
case 0:
|
|
3281
|
+
case 1:
|
|
3282
|
+
tmp = protoOf(YamlInput).wy.call(this, descriptor);
|
|
3283
|
+
break;
|
|
3284
|
+
case 2:
|
|
3285
|
+
this.rhw_1 = Companion_getInstance_1().phn(this.phw_1, this.rhn_1, this.lz(), this.thn_1, descriptor);
|
|
3286
|
+
return _get_contentDecoder__ypxfj4(this);
|
|
3287
|
+
default:
|
|
3288
|
+
noWhenBranchMatchedException();
|
|
3289
|
+
break;
|
|
3290
|
+
}
|
|
3291
|
+
return tmp;
|
|
3292
|
+
};
|
|
3293
|
+
protoOf(YamlPolymorphicInput).vy = function (deserializer) {
|
|
3294
|
+
try {
|
|
3295
|
+
return protoOf(YamlInput).vy.call(this, deserializer);
|
|
3296
|
+
} catch ($p) {
|
|
3297
|
+
if ($p instanceof SerializationException) {
|
|
3298
|
+
var e = $p;
|
|
3299
|
+
throwIfUnknownPolymorphicTypeException(this, e, deserializer);
|
|
3300
|
+
throw e;
|
|
3301
|
+
} else {
|
|
3302
|
+
throw $p;
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
};
|
|
3306
|
+
function YamlScalarInput(scalar, yaml, context, configuration) {
|
|
3307
|
+
YamlInput.call(this, scalar, yaml, context, configuration);
|
|
3308
|
+
this.zhw_1 = scalar;
|
|
3309
|
+
}
|
|
3310
|
+
protoOf(YamlScalarInput).ry = function () {
|
|
3311
|
+
return this.zhw_1.xhr_1;
|
|
3312
|
+
};
|
|
3313
|
+
protoOf(YamlScalarInput).my = function () {
|
|
3314
|
+
return this.zhw_1.l1();
|
|
3315
|
+
};
|
|
3316
|
+
protoOf(YamlScalarInput).ny = function () {
|
|
3317
|
+
return this.zhw_1.t3();
|
|
3318
|
+
};
|
|
3319
|
+
protoOf(YamlScalarInput).ly = function () {
|
|
3320
|
+
return this.zhw_1.s3();
|
|
3321
|
+
};
|
|
3322
|
+
protoOf(YamlScalarInput).ky = function () {
|
|
3323
|
+
return this.zhw_1.r3();
|
|
3324
|
+
};
|
|
3325
|
+
protoOf(YamlScalarInput).py = function () {
|
|
3326
|
+
return this.zhw_1.u3();
|
|
3327
|
+
};
|
|
3328
|
+
protoOf(YamlScalarInput).oy = function () {
|
|
3329
|
+
return this.zhw_1.wht();
|
|
3330
|
+
};
|
|
3331
|
+
protoOf(YamlScalarInput).jy = function () {
|
|
3332
|
+
return this.zhw_1.xht();
|
|
3333
|
+
};
|
|
3334
|
+
protoOf(YamlScalarInput).qy = function () {
|
|
3335
|
+
return this.zhw_1.yht();
|
|
3336
|
+
};
|
|
3337
|
+
protoOf(YamlScalarInput).sy = function (enumDescriptor) {
|
|
3338
|
+
var index = enumDescriptor.zw(this.zhw_1.xhr_1);
|
|
3339
|
+
if (!(index === -3)) {
|
|
3340
|
+
return index;
|
|
3341
|
+
}
|
|
3342
|
+
// Inline function 'kotlin.collections.map' call
|
|
3343
|
+
var this_0 = numberRangeToNumber(0, enumDescriptor.ww() - 1 | 0);
|
|
3344
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3345
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3346
|
+
var inductionVariable = this_0.d1_1;
|
|
3347
|
+
var last = this_0.e1_1;
|
|
3348
|
+
if (inductionVariable <= last)
|
|
3349
|
+
do {
|
|
3350
|
+
var item = inductionVariable;
|
|
3351
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3352
|
+
var it = item;
|
|
3353
|
+
var tmp$ret$0 = enumDescriptor.yw(it);
|
|
3354
|
+
destination.h(tmp$ret$0);
|
|
3355
|
+
}
|
|
3356
|
+
while (!(item === last));
|
|
3357
|
+
var choices = joinToString(sorted(destination), ', ');
|
|
3358
|
+
throw new YamlScalarFormatException('Value ' + this.zhw_1.vht() + ' is not a valid option, permitted choices are: ' + choices, this.zhw_1.yhr_1, this.zhw_1.xhr_1);
|
|
3359
|
+
};
|
|
3360
|
+
protoOf(YamlScalarInput).nz = function (descriptor) {
|
|
3361
|
+
return 0;
|
|
3362
|
+
};
|
|
3363
|
+
function bufferedSource(_this__u8e3s4) {
|
|
3364
|
+
return (new Buffer()).ih3(Companion_getInstance().jh2(_this__u8e3s4));
|
|
3365
|
+
}
|
|
3366
|
+
//region block: post-declaration
|
|
3367
|
+
defineProp(protoOf(YamlException), 'message', function () {
|
|
3368
|
+
return this.r1();
|
|
3369
|
+
});
|
|
3370
|
+
defineProp(protoOf(YamlException), 'cause', function () {
|
|
3371
|
+
return this.s1();
|
|
3372
|
+
});
|
|
3373
|
+
protoOf(YamlPolymorphicInput$getKnownTypesForOpenType$1).u1g = contextual;
|
|
3374
|
+
//endregion
|
|
3375
|
+
//region block: exports
|
|
3376
|
+
_.$_$ = _.$_$ || {};
|
|
3377
|
+
_.$_$.a = YamlList;
|
|
3378
|
+
_.$_$.b = YamlMap;
|
|
3379
|
+
_.$_$.c = YamlNull;
|
|
3380
|
+
_.$_$.d = YamlScalar;
|
|
3381
|
+
_.$_$.e = YamlTaggedNode;
|
|
3382
|
+
_.$_$.f = Companion_getInstance_0;
|
|
3383
|
+
//endregion
|
|
3384
|
+
return _;
|
|
3385
|
+
}));
|
|
3386
|
+
|
|
3387
|
+
//# sourceMappingURL=kaml.js.map
|