git-digger 1.5.39 → 1.5.42
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/Kotlin-DateTime-library-kotlinx-datetime.mjs +5119 -0
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/kotlin/bin/digger +0 -0
- package/kotlin/clikt-clikt-mordant.mjs +310 -0
- package/kotlin/clikt-clikt-mordant.mjs.map +1 -0
- package/kotlin/clikt-clikt.mjs +6663 -0
- package/kotlin/clikt-clikt.mjs.map +1 -0
- package/kotlin/colormath-root-colormath.mjs +1675 -0
- package/kotlin/colormath-root-colormath.mjs.map +1 -0
- package/kotlin/command-line-tools-digger-cli.mjs +498 -0
- package/kotlin/command-line-tools-digger-cli.mjs.map +1 -0
- package/kotlin/kotlin-kotlin-stdlib.mjs +11790 -0
- package/kotlin/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/kotlin/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs +3640 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs +1140 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/kotlin/mordant-mordant-omnibus.mjs +4 -0
- package/kotlin/{mordant-mordant-omnibus.js.map → mordant-mordant-omnibus.mjs.map} +1 -1
- package/kotlin/mordant-mordant.mjs +10332 -0
- package/kotlin/mordant-mordant.mjs.map +1 -0
- package/kotlin/tools-cli-tools.mjs +30 -0
- package/kotlin/tools-cli-tools.mjs.map +1 -0
- package/kotlin/tools-digger-core.mjs +666 -0
- package/kotlin/tools-digger-core.mjs.map +1 -0
- package/kotlin/tools-digger-json.mjs +263 -0
- package/kotlin/tools-digger-json.mjs.map +1 -0
- package/kotlin/tools-digger-model.mjs +109 -0
- package/kotlin/tools-digger-model.mjs.map +1 -0
- package/kotlin/tools-git-adapter.mjs +261 -0
- package/kotlin/tools-git-adapter.mjs.map +1 -0
- package/package.json +2 -2
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +0 -5104
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
- package/kotlin/clikt-clikt-mordant.js +0 -303
- package/kotlin/clikt-clikt-mordant.js.map +0 -1
- package/kotlin/clikt-clikt.js +0 -6742
- package/kotlin/clikt-clikt.js.map +0 -1
- package/kotlin/colormath-root-colormath.js +0 -1627
- package/kotlin/colormath-root-colormath.js.map +0 -1
- package/kotlin/command-line-tools-digger-cli.js +0 -563
- package/kotlin/command-line-tools-digger-cli.js.map +0 -1
- package/kotlin/kotlin-kotlin-stdlib.js +0 -11651
- package/kotlin/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +0 -3509
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +0 -1118
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/kotlin/mordant-mordant-omnibus.js +0 -8
- package/kotlin/mordant-mordant.js +0 -10271
- package/kotlin/mordant-mordant.js.map +0 -1
- package/kotlin/tools-cli-tools.js +0 -55
- package/kotlin/tools-cli-tools.js.map +0 -1
- package/kotlin/tools-digger-core.js +0 -659
- package/kotlin/tools-digger-core.js.map +0 -1
- package/kotlin/tools-digger-json.js +0 -256
- package/kotlin/tools-digger-json.js.map +0 -1
- package/kotlin/tools-digger-model.js +0 -107
- package/kotlin/tools-digger-model.js.map +0 -1
- package/kotlin/tools-git-adapter.js +0 -269
- package/kotlin/tools-git-adapter.js.map +0 -1
|
@@ -1,1118 +0,0 @@
|
|
|
1
|
-
(function (_, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_kotlin) {
|
|
2
|
-
'use strict';
|
|
3
|
-
//region block: imports
|
|
4
|
-
var EmptySerializersModule = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
|
|
5
|
-
var protoOf = kotlin_kotlin.$_$.q8;
|
|
6
|
-
var initMetadataForObject = kotlin_kotlin.$_$.w7;
|
|
7
|
-
var VOID = kotlin_kotlin.$_$.g;
|
|
8
|
-
var Unit_instance = kotlin_kotlin.$_$.i3;
|
|
9
|
-
var initMetadataForClass = kotlin_kotlin.$_$.r7;
|
|
10
|
-
var toString = kotlin_kotlin.$_$.vc;
|
|
11
|
-
var Enum = kotlin_kotlin.$_$.qb;
|
|
12
|
-
var StringCompanionObject_instance = kotlin_kotlin.$_$.x2;
|
|
13
|
-
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
14
|
-
var InlinePrimitiveDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
|
|
15
|
-
var toLong = kotlin_kotlin.$_$.s8;
|
|
16
|
-
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.c2;
|
|
17
|
-
var UInt__toString_impl_dbgl21 = kotlin_kotlin.$_$.e2;
|
|
18
|
-
var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.h2;
|
|
19
|
-
var ULong__toString_impl_f9au7k = kotlin_kotlin.$_$.j2;
|
|
20
|
-
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.x1;
|
|
21
|
-
var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.z1;
|
|
22
|
-
var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.m2;
|
|
23
|
-
var UShort__toString_impl_edaoee = kotlin_kotlin.$_$.o2;
|
|
24
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.p1;
|
|
25
|
-
var captureStack = kotlin_kotlin.$_$.e7;
|
|
26
|
-
var toString_0 = kotlin_kotlin.$_$.t8;
|
|
27
|
-
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
|
|
28
|
-
var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
|
|
29
|
-
var charSequenceLength = kotlin_kotlin.$_$.h7;
|
|
30
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.i7;
|
|
31
|
-
var coerceAtLeast = kotlin_kotlin.$_$.x8;
|
|
32
|
-
var coerceAtMost = kotlin_kotlin.$_$.z8;
|
|
33
|
-
var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
|
|
34
|
-
var equals = kotlin_kotlin.$_$.k7;
|
|
35
|
-
var fillArrayVal = kotlin_kotlin.$_$.l7;
|
|
36
|
-
var SealedClassSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1;
|
|
37
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
38
|
-
var jsonCachedSerialNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
|
|
39
|
-
var ENUM = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
40
|
-
var PrimitiveKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
41
|
-
var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
|
|
42
|
-
var THROW_CCE = kotlin_kotlin.$_$.yb;
|
|
43
|
-
var objectCreate = kotlin_kotlin.$_$.p8;
|
|
44
|
-
var AbstractEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
45
|
-
var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
46
|
-
var OBJECT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
|
|
47
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.sc;
|
|
48
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
49
|
-
var findPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1;
|
|
50
|
-
var SerializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1;
|
|
51
|
-
var isInterface = kotlin_kotlin.$_$.f8;
|
|
52
|
-
var isFinite = kotlin_kotlin.$_$.pc;
|
|
53
|
-
var isFinite_0 = kotlin_kotlin.$_$.oc;
|
|
54
|
-
var toString_1 = kotlin_kotlin.$_$.s1;
|
|
55
|
-
var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
56
|
-
var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
57
|
-
var Companion_getInstance = kotlin_kotlin.$_$.f3;
|
|
58
|
-
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
59
|
-
var Companion_getInstance_0 = kotlin_kotlin.$_$.g3;
|
|
60
|
-
var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
61
|
-
var Companion_getInstance_1 = kotlin_kotlin.$_$.e3;
|
|
62
|
-
var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
63
|
-
var Companion_getInstance_2 = kotlin_kotlin.$_$.h3;
|
|
64
|
-
var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
65
|
-
var setOf = kotlin_kotlin.$_$.y5;
|
|
66
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.r1;
|
|
67
|
-
var numberToChar = kotlin_kotlin.$_$.l8;
|
|
68
|
-
var charSequenceGet = kotlin_kotlin.$_$.g7;
|
|
69
|
-
var toByte = kotlin_kotlin.$_$.r8;
|
|
70
|
-
var enumEntries = kotlin_kotlin.$_$.x6;
|
|
71
|
-
var ENUM_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
|
|
72
|
-
var MAP_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
73
|
-
var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
74
|
-
var getContextualDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
75
|
-
var CONTEXTUAL_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
|
|
76
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
77
|
-
var HashMap_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
78
|
-
//endregion
|
|
79
|
-
//region block: pre-declaration
|
|
80
|
-
initMetadataForClass(Json, 'Json');
|
|
81
|
-
initMetadataForObject(Default, 'Default', VOID, Json);
|
|
82
|
-
initMetadataForClass(JsonClassDiscriminator, 'JsonClassDiscriminator');
|
|
83
|
-
initMetadataForClass(JsonConfiguration, 'JsonConfiguration');
|
|
84
|
-
initMetadataForClass(ClassDiscriminatorMode, 'ClassDiscriminatorMode', VOID, Enum);
|
|
85
|
-
initMetadataForClass(Composer, 'Composer');
|
|
86
|
-
initMetadataForClass(ComposerForUnsignedNumbers, 'ComposerForUnsignedNumbers', VOID, Composer);
|
|
87
|
-
initMetadataForClass(ComposerForUnquotedLiterals, 'ComposerForUnquotedLiterals', VOID, Composer);
|
|
88
|
-
initMetadataForClass(ComposerWithPrettyPrint, 'ComposerWithPrettyPrint', VOID, Composer);
|
|
89
|
-
initMetadataForClass(JsonException, 'JsonException', VOID, SerializationException);
|
|
90
|
-
initMetadataForClass(JsonEncodingException, 'JsonEncodingException', VOID, JsonException);
|
|
91
|
-
initMetadataForClass(Key, 'Key', Key);
|
|
92
|
-
initMetadataForClass(DescriptorSchemaCache, 'DescriptorSchemaCache', DescriptorSchemaCache);
|
|
93
|
-
initMetadataForClass(StreamingJsonEncoder, 'StreamingJsonEncoder', VOID, AbstractEncoder, [Encoder, CompositeEncoder, AbstractEncoder]);
|
|
94
|
-
initMetadataForClass(WriteMode, 'WriteMode', VOID, Enum);
|
|
95
|
-
initMetadataForClass(JsonToStringWriter, 'JsonToStringWriter', JsonToStringWriter);
|
|
96
|
-
//endregion
|
|
97
|
-
function Default() {
|
|
98
|
-
Default_instance = this;
|
|
99
|
-
Json.call(this, new JsonConfiguration(), EmptySerializersModule());
|
|
100
|
-
}
|
|
101
|
-
var Default_instance;
|
|
102
|
-
function Default_getInstance() {
|
|
103
|
-
if (Default_instance == null)
|
|
104
|
-
new Default();
|
|
105
|
-
return Default_instance;
|
|
106
|
-
}
|
|
107
|
-
function Json(configuration, serializersModule) {
|
|
108
|
-
Default_getInstance();
|
|
109
|
-
this.n1b_1 = configuration;
|
|
110
|
-
this.o1b_1 = serializersModule;
|
|
111
|
-
this.p1b_1 = new DescriptorSchemaCache();
|
|
112
|
-
}
|
|
113
|
-
protoOf(Json).tm = function () {
|
|
114
|
-
return this.o1b_1;
|
|
115
|
-
};
|
|
116
|
-
protoOf(Json).q1b = function (serializer, value) {
|
|
117
|
-
var result = new JsonToStringWriter();
|
|
118
|
-
try {
|
|
119
|
-
encodeByWriter(this, result, serializer, value);
|
|
120
|
-
return result.toString();
|
|
121
|
-
}finally {
|
|
122
|
-
result.s1b();
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
function JsonClassDiscriminator() {
|
|
126
|
-
}
|
|
127
|
-
function JsonConfiguration(encodeDefaults, ignoreUnknownKeys, isLenient, allowStructuredMapKeys, prettyPrint, explicitNulls, prettyPrintIndent, coerceInputValues, useArrayPolymorphism, classDiscriminator, allowSpecialFloatingPointValues, useAlternativeNames, namingStrategy, decodeEnumsCaseInsensitive, allowTrailingComma, allowComments, classDiscriminatorMode) {
|
|
128
|
-
encodeDefaults = encodeDefaults === VOID ? false : encodeDefaults;
|
|
129
|
-
ignoreUnknownKeys = ignoreUnknownKeys === VOID ? false : ignoreUnknownKeys;
|
|
130
|
-
isLenient = isLenient === VOID ? false : isLenient;
|
|
131
|
-
allowStructuredMapKeys = allowStructuredMapKeys === VOID ? false : allowStructuredMapKeys;
|
|
132
|
-
prettyPrint = prettyPrint === VOID ? false : prettyPrint;
|
|
133
|
-
explicitNulls = explicitNulls === VOID ? true : explicitNulls;
|
|
134
|
-
prettyPrintIndent = prettyPrintIndent === VOID ? ' ' : prettyPrintIndent;
|
|
135
|
-
coerceInputValues = coerceInputValues === VOID ? false : coerceInputValues;
|
|
136
|
-
useArrayPolymorphism = useArrayPolymorphism === VOID ? false : useArrayPolymorphism;
|
|
137
|
-
classDiscriminator = classDiscriminator === VOID ? 'type' : classDiscriminator;
|
|
138
|
-
allowSpecialFloatingPointValues = allowSpecialFloatingPointValues === VOID ? false : allowSpecialFloatingPointValues;
|
|
139
|
-
useAlternativeNames = useAlternativeNames === VOID ? true : useAlternativeNames;
|
|
140
|
-
namingStrategy = namingStrategy === VOID ? null : namingStrategy;
|
|
141
|
-
decodeEnumsCaseInsensitive = decodeEnumsCaseInsensitive === VOID ? false : decodeEnumsCaseInsensitive;
|
|
142
|
-
allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
|
|
143
|
-
allowComments = allowComments === VOID ? false : allowComments;
|
|
144
|
-
classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
|
|
145
|
-
this.t1b_1 = encodeDefaults;
|
|
146
|
-
this.u1b_1 = ignoreUnknownKeys;
|
|
147
|
-
this.v1b_1 = isLenient;
|
|
148
|
-
this.w1b_1 = allowStructuredMapKeys;
|
|
149
|
-
this.x1b_1 = prettyPrint;
|
|
150
|
-
this.y1b_1 = explicitNulls;
|
|
151
|
-
this.z1b_1 = prettyPrintIndent;
|
|
152
|
-
this.a1c_1 = coerceInputValues;
|
|
153
|
-
this.b1c_1 = useArrayPolymorphism;
|
|
154
|
-
this.c1c_1 = classDiscriminator;
|
|
155
|
-
this.d1c_1 = allowSpecialFloatingPointValues;
|
|
156
|
-
this.e1c_1 = useAlternativeNames;
|
|
157
|
-
this.f1c_1 = namingStrategy;
|
|
158
|
-
this.g1c_1 = decodeEnumsCaseInsensitive;
|
|
159
|
-
this.h1c_1 = allowTrailingComma;
|
|
160
|
-
this.i1c_1 = allowComments;
|
|
161
|
-
this.j1c_1 = classDiscriminatorMode;
|
|
162
|
-
}
|
|
163
|
-
protoOf(JsonConfiguration).toString = function () {
|
|
164
|
-
return 'JsonConfiguration(encodeDefaults=' + this.t1b_1 + ', ignoreUnknownKeys=' + this.u1b_1 + ', isLenient=' + this.v1b_1 + ', ' + ('allowStructuredMapKeys=' + this.w1b_1 + ', prettyPrint=' + this.x1b_1 + ', explicitNulls=' + this.y1b_1 + ', ') + ("prettyPrintIndent='" + this.z1b_1 + "', coerceInputValues=" + this.a1c_1 + ', useArrayPolymorphism=' + this.b1c_1 + ', ') + ("classDiscriminator='" + this.c1c_1 + "', allowSpecialFloatingPointValues=" + this.d1c_1 + ', ') + ('useAlternativeNames=' + this.e1c_1 + ', namingStrategy=' + toString(this.f1c_1) + ', decodeEnumsCaseInsensitive=' + this.g1c_1 + ', ') + ('allowTrailingComma=' + this.h1c_1 + ', allowComments=' + this.i1c_1 + ', classDiscriminatorMode=' + this.j1c_1.toString() + ')');
|
|
165
|
-
};
|
|
166
|
-
var ClassDiscriminatorMode_NONE_instance;
|
|
167
|
-
var ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance;
|
|
168
|
-
var ClassDiscriminatorMode_POLYMORPHIC_instance;
|
|
169
|
-
var ClassDiscriminatorMode_entriesInitialized;
|
|
170
|
-
function ClassDiscriminatorMode_initEntries() {
|
|
171
|
-
if (ClassDiscriminatorMode_entriesInitialized)
|
|
172
|
-
return Unit_instance;
|
|
173
|
-
ClassDiscriminatorMode_entriesInitialized = true;
|
|
174
|
-
ClassDiscriminatorMode_NONE_instance = new ClassDiscriminatorMode('NONE', 0);
|
|
175
|
-
ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance = new ClassDiscriminatorMode('ALL_JSON_OBJECTS', 1);
|
|
176
|
-
ClassDiscriminatorMode_POLYMORPHIC_instance = new ClassDiscriminatorMode('POLYMORPHIC', 2);
|
|
177
|
-
}
|
|
178
|
-
function ClassDiscriminatorMode(name, ordinal) {
|
|
179
|
-
Enum.call(this, name, ordinal);
|
|
180
|
-
}
|
|
181
|
-
function ClassDiscriminatorMode_NONE_getInstance() {
|
|
182
|
-
ClassDiscriminatorMode_initEntries();
|
|
183
|
-
return ClassDiscriminatorMode_NONE_instance;
|
|
184
|
-
}
|
|
185
|
-
function ClassDiscriminatorMode_POLYMORPHIC_getInstance() {
|
|
186
|
-
ClassDiscriminatorMode_initEntries();
|
|
187
|
-
return ClassDiscriminatorMode_POLYMORPHIC_instance;
|
|
188
|
-
}
|
|
189
|
-
function get_jsonUnquotedLiteralDescriptor() {
|
|
190
|
-
_init_properties_JsonElement_kt__7cbdc2();
|
|
191
|
-
return jsonUnquotedLiteralDescriptor;
|
|
192
|
-
}
|
|
193
|
-
var jsonUnquotedLiteralDescriptor;
|
|
194
|
-
var properties_initialized_JsonElement_kt_abxy8s;
|
|
195
|
-
function _init_properties_JsonElement_kt__7cbdc2() {
|
|
196
|
-
if (!properties_initialized_JsonElement_kt_abxy8s) {
|
|
197
|
-
properties_initialized_JsonElement_kt_abxy8s = true;
|
|
198
|
-
jsonUnquotedLiteralDescriptor = InlinePrimitiveDescriptor('kotlinx.serialization.json.JsonUnquotedLiteral', serializer(StringCompanionObject_instance));
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function Composer(writer) {
|
|
202
|
-
this.k1c_1 = writer;
|
|
203
|
-
this.l1c_1 = true;
|
|
204
|
-
}
|
|
205
|
-
protoOf(Composer).m1c = function () {
|
|
206
|
-
this.l1c_1 = true;
|
|
207
|
-
};
|
|
208
|
-
protoOf(Composer).n1c = function () {
|
|
209
|
-
return Unit_instance;
|
|
210
|
-
};
|
|
211
|
-
protoOf(Composer).o1c = function () {
|
|
212
|
-
this.l1c_1 = false;
|
|
213
|
-
};
|
|
214
|
-
protoOf(Composer).p1c = function () {
|
|
215
|
-
this.l1c_1 = false;
|
|
216
|
-
};
|
|
217
|
-
protoOf(Composer).q1c = function () {
|
|
218
|
-
return Unit_instance;
|
|
219
|
-
};
|
|
220
|
-
protoOf(Composer).r1c = function (v) {
|
|
221
|
-
return this.k1c_1.s1c(v);
|
|
222
|
-
};
|
|
223
|
-
protoOf(Composer).t1c = function (v) {
|
|
224
|
-
return this.k1c_1.u1c(v);
|
|
225
|
-
};
|
|
226
|
-
protoOf(Composer).v1c = function (v) {
|
|
227
|
-
return this.k1c_1.u1c(v.toString());
|
|
228
|
-
};
|
|
229
|
-
protoOf(Composer).w1c = function (v) {
|
|
230
|
-
return this.k1c_1.u1c(v.toString());
|
|
231
|
-
};
|
|
232
|
-
protoOf(Composer).x1c = function (v) {
|
|
233
|
-
return this.k1c_1.y1c(toLong(v));
|
|
234
|
-
};
|
|
235
|
-
protoOf(Composer).z1c = function (v) {
|
|
236
|
-
return this.k1c_1.y1c(toLong(v));
|
|
237
|
-
};
|
|
238
|
-
protoOf(Composer).a1d = function (v) {
|
|
239
|
-
return this.k1c_1.y1c(toLong(v));
|
|
240
|
-
};
|
|
241
|
-
protoOf(Composer).b1d = function (v) {
|
|
242
|
-
return this.k1c_1.y1c(v);
|
|
243
|
-
};
|
|
244
|
-
protoOf(Composer).c1d = function (v) {
|
|
245
|
-
return this.k1c_1.u1c(v.toString());
|
|
246
|
-
};
|
|
247
|
-
protoOf(Composer).d1d = function (value) {
|
|
248
|
-
return this.k1c_1.e1d(value);
|
|
249
|
-
};
|
|
250
|
-
function Composer_0(sb, json) {
|
|
251
|
-
return json.n1b_1.x1b_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
|
|
252
|
-
}
|
|
253
|
-
function ComposerForUnsignedNumbers(writer, forceQuoting) {
|
|
254
|
-
Composer.call(this, writer);
|
|
255
|
-
this.h1d_1 = forceQuoting;
|
|
256
|
-
}
|
|
257
|
-
protoOf(ComposerForUnsignedNumbers).a1d = function (v) {
|
|
258
|
-
if (this.h1d_1) {
|
|
259
|
-
// Inline function 'kotlin.toUInt' call
|
|
260
|
-
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
261
|
-
this.d1d(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
262
|
-
} else {
|
|
263
|
-
// Inline function 'kotlin.toUInt' call
|
|
264
|
-
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
265
|
-
this.t1c(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
protoOf(ComposerForUnsignedNumbers).b1d = function (v) {
|
|
269
|
-
if (this.h1d_1) {
|
|
270
|
-
// Inline function 'kotlin.toULong' call
|
|
271
|
-
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
272
|
-
this.d1d(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
273
|
-
} else {
|
|
274
|
-
// Inline function 'kotlin.toULong' call
|
|
275
|
-
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
276
|
-
this.t1c(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
protoOf(ComposerForUnsignedNumbers).x1c = function (v) {
|
|
280
|
-
if (this.h1d_1) {
|
|
281
|
-
// Inline function 'kotlin.toUByte' call
|
|
282
|
-
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
283
|
-
this.d1d(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
284
|
-
} else {
|
|
285
|
-
// Inline function 'kotlin.toUByte' call
|
|
286
|
-
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
287
|
-
this.t1c(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
protoOf(ComposerForUnsignedNumbers).z1c = function (v) {
|
|
291
|
-
if (this.h1d_1) {
|
|
292
|
-
// Inline function 'kotlin.toUShort' call
|
|
293
|
-
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
294
|
-
this.d1d(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
295
|
-
} else {
|
|
296
|
-
// Inline function 'kotlin.toUShort' call
|
|
297
|
-
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
298
|
-
this.t1c(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
function ComposerForUnquotedLiterals(writer, forceQuoting) {
|
|
302
|
-
Composer.call(this, writer);
|
|
303
|
-
this.k1d_1 = forceQuoting;
|
|
304
|
-
}
|
|
305
|
-
protoOf(ComposerForUnquotedLiterals).d1d = function (value) {
|
|
306
|
-
if (this.k1d_1) {
|
|
307
|
-
protoOf(Composer).d1d.call(this, value);
|
|
308
|
-
} else {
|
|
309
|
-
protoOf(Composer).t1c.call(this, value);
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
function ComposerWithPrettyPrint(writer, json) {
|
|
313
|
-
Composer.call(this, writer);
|
|
314
|
-
this.n1d_1 = json;
|
|
315
|
-
this.o1d_1 = 0;
|
|
316
|
-
}
|
|
317
|
-
protoOf(ComposerWithPrettyPrint).m1c = function () {
|
|
318
|
-
this.l1c_1 = true;
|
|
319
|
-
this.o1d_1 = this.o1d_1 + 1 | 0;
|
|
320
|
-
};
|
|
321
|
-
protoOf(ComposerWithPrettyPrint).n1c = function () {
|
|
322
|
-
this.o1d_1 = this.o1d_1 - 1 | 0;
|
|
323
|
-
};
|
|
324
|
-
protoOf(ComposerWithPrettyPrint).o1c = function () {
|
|
325
|
-
this.l1c_1 = false;
|
|
326
|
-
this.t1c('\n');
|
|
327
|
-
// Inline function 'kotlin.repeat' call
|
|
328
|
-
var times = this.o1d_1;
|
|
329
|
-
var inductionVariable = 0;
|
|
330
|
-
if (inductionVariable < times)
|
|
331
|
-
do {
|
|
332
|
-
var index = inductionVariable;
|
|
333
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
334
|
-
// Inline function 'kotlinx.serialization.json.internal.ComposerWithPrettyPrint.nextItem.<anonymous>' call
|
|
335
|
-
this.t1c(this.n1d_1.n1b_1.z1b_1);
|
|
336
|
-
}
|
|
337
|
-
while (inductionVariable < times);
|
|
338
|
-
};
|
|
339
|
-
protoOf(ComposerWithPrettyPrint).p1c = function () {
|
|
340
|
-
if (this.l1c_1)
|
|
341
|
-
this.l1c_1 = false;
|
|
342
|
-
else {
|
|
343
|
-
this.o1c();
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
protoOf(ComposerWithPrettyPrint).q1c = function () {
|
|
347
|
-
this.r1c(_Char___init__impl__6a9atx(32));
|
|
348
|
-
};
|
|
349
|
-
function JsonEncodingException(message) {
|
|
350
|
-
JsonException.call(this, message);
|
|
351
|
-
captureStack(this, JsonEncodingException);
|
|
352
|
-
}
|
|
353
|
-
function InvalidKeyKindException(keyDescriptor) {
|
|
354
|
-
return new JsonEncodingException("Value of type '" + keyDescriptor.pk() + "' can't be used in JSON as a key in the map. " + ("It should have either primitive or enum kind, but its kind is '" + keyDescriptor.qk().toString() + "'.\n") + "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.");
|
|
355
|
-
}
|
|
356
|
-
function InvalidFloatingPointEncoded(value, output) {
|
|
357
|
-
return new JsonEncodingException('Unexpected special floating-point value ' + toString_0(value) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString_0(minify(output))));
|
|
358
|
-
}
|
|
359
|
-
function JsonException(message) {
|
|
360
|
-
SerializationException_init_$Init$(message, this);
|
|
361
|
-
captureStack(this, JsonException);
|
|
362
|
-
}
|
|
363
|
-
function minify(_this__u8e3s4, offset) {
|
|
364
|
-
offset = offset === VOID ? -1 : offset;
|
|
365
|
-
if (charSequenceLength(_this__u8e3s4) < 200)
|
|
366
|
-
return _this__u8e3s4;
|
|
367
|
-
if (offset === -1) {
|
|
368
|
-
var start = charSequenceLength(_this__u8e3s4) - 60 | 0;
|
|
369
|
-
if (start <= 0)
|
|
370
|
-
return _this__u8e3s4;
|
|
371
|
-
// Inline function 'kotlin.text.substring' call
|
|
372
|
-
var endIndex = charSequenceLength(_this__u8e3s4);
|
|
373
|
-
return '.....' + toString_0(charSequenceSubSequence(_this__u8e3s4, start, endIndex));
|
|
374
|
-
}
|
|
375
|
-
var start_0 = offset - 30 | 0;
|
|
376
|
-
var end = offset + 30 | 0;
|
|
377
|
-
var prefix = start_0 <= 0 ? '' : '.....';
|
|
378
|
-
var suffix = end >= charSequenceLength(_this__u8e3s4) ? '' : '.....';
|
|
379
|
-
var tmp4 = coerceAtLeast(start_0, 0);
|
|
380
|
-
// Inline function 'kotlin.text.substring' call
|
|
381
|
-
var endIndex_0 = coerceAtMost(end, charSequenceLength(_this__u8e3s4));
|
|
382
|
-
return prefix + toString_0(charSequenceSubSequence(_this__u8e3s4, tmp4, endIndex_0)) + suffix;
|
|
383
|
-
}
|
|
384
|
-
var JsonDeserializationNamesKey;
|
|
385
|
-
function get_JsonSerializationNamesKey() {
|
|
386
|
-
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
387
|
-
return JsonSerializationNamesKey;
|
|
388
|
-
}
|
|
389
|
-
var JsonSerializationNamesKey;
|
|
390
|
-
function getJsonElementName(_this__u8e3s4, json, index) {
|
|
391
|
-
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
392
|
-
var strategy = namingStrategy(_this__u8e3s4, json);
|
|
393
|
-
return strategy == null ? _this__u8e3s4.uk(index) : serializationNamesIndices(_this__u8e3s4, json, strategy)[index];
|
|
394
|
-
}
|
|
395
|
-
function namingStrategy(_this__u8e3s4, json) {
|
|
396
|
-
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
397
|
-
return equals(_this__u8e3s4.qk(), CLASS_getInstance()) ? json.n1b_1.f1c_1 : null;
|
|
398
|
-
}
|
|
399
|
-
function serializationNamesIndices(_this__u8e3s4, json, strategy) {
|
|
400
|
-
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
401
|
-
var tmp = get_schemaCache(json);
|
|
402
|
-
var tmp_0 = get_JsonSerializationNamesKey();
|
|
403
|
-
return tmp.q1d(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
404
|
-
}
|
|
405
|
-
function serializationNamesIndices$lambda($this_serializationNamesIndices, $strategy) {
|
|
406
|
-
return function () {
|
|
407
|
-
var tmp = 0;
|
|
408
|
-
var tmp_0 = $this_serializationNamesIndices.sk();
|
|
409
|
-
// Inline function 'kotlin.arrayOfNulls' call
|
|
410
|
-
var tmp_1 = fillArrayVal(Array(tmp_0), null);
|
|
411
|
-
while (tmp < tmp_0) {
|
|
412
|
-
var tmp_2 = tmp;
|
|
413
|
-
var baseName = $this_serializationNamesIndices.uk(tmp_2);
|
|
414
|
-
tmp_1[tmp_2] = $strategy.r1d($this_serializationNamesIndices, tmp_2, baseName);
|
|
415
|
-
tmp = tmp + 1 | 0;
|
|
416
|
-
}
|
|
417
|
-
return tmp_1;
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
var properties_initialized_JsonNamesMap_kt_ljpf42;
|
|
421
|
-
function _init_properties_JsonNamesMap_kt__cbbp0k() {
|
|
422
|
-
if (!properties_initialized_JsonNamesMap_kt_ljpf42) {
|
|
423
|
-
properties_initialized_JsonNamesMap_kt_ljpf42 = true;
|
|
424
|
-
JsonDeserializationNamesKey = new Key();
|
|
425
|
-
JsonSerializationNamesKey = new Key();
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
function encodeByWriter(json, writer, serializer, value) {
|
|
429
|
-
var tmp = WriteMode_OBJ_getInstance();
|
|
430
|
-
// Inline function 'kotlin.arrayOfNulls' call
|
|
431
|
-
var size = get_entries().p();
|
|
432
|
-
var tmp$ret$0 = fillArrayVal(Array(size), null);
|
|
433
|
-
var encoder = StreamingJsonEncoder_init_$Create$(writer, json, tmp, tmp$ret$0);
|
|
434
|
-
encoder.qm(serializer, value);
|
|
435
|
-
}
|
|
436
|
-
function classDiscriminator(_this__u8e3s4, json) {
|
|
437
|
-
var _iterator__ex2g4s = _this__u8e3s4.tk().m();
|
|
438
|
-
while (_iterator__ex2g4s.n()) {
|
|
439
|
-
var annotation = _iterator__ex2g4s.o();
|
|
440
|
-
if (annotation instanceof JsonClassDiscriminator)
|
|
441
|
-
return annotation.b1e_1;
|
|
442
|
-
}
|
|
443
|
-
return json.n1b_1.c1c_1;
|
|
444
|
-
}
|
|
445
|
-
function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
|
|
446
|
-
if (!(serializer instanceof SealedClassSerializer))
|
|
447
|
-
return Unit_instance;
|
|
448
|
-
if (jsonCachedSerialNames(actualSerializer.oj()).d1(classDiscriminator)) {
|
|
449
|
-
var baseName = serializer.oj().pk();
|
|
450
|
-
var actualName = actualSerializer.oj().pk();
|
|
451
|
-
// Inline function 'kotlin.error' call
|
|
452
|
-
var message = "Sealed class '" + actualName + "' cannot be serialized as base class '" + baseName + "' because" + (" it has property name that conflicts with JSON class discriminator '" + classDiscriminator + "'. ") + 'You can either change class discriminator in JsonConfiguration, ' + 'rename property with @SerialName annotation or fall back to array polymorphism';
|
|
453
|
-
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
function checkKind(kind) {
|
|
457
|
-
if (kind instanceof ENUM) {
|
|
458
|
-
// Inline function 'kotlin.error' call
|
|
459
|
-
var message = "Enums cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
|
|
460
|
-
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
461
|
-
}
|
|
462
|
-
if (kind instanceof PrimitiveKind) {
|
|
463
|
-
// Inline function 'kotlin.error' call
|
|
464
|
-
var message_0 = "Primitives cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
|
|
465
|
-
throw IllegalStateException_init_$Create$(toString_0(message_0));
|
|
466
|
-
}
|
|
467
|
-
if (kind instanceof PolymorphicKind) {
|
|
468
|
-
// Inline function 'kotlin.error' call
|
|
469
|
-
var message_1 = 'Actual serializer for polymorphic cannot be polymorphic itself';
|
|
470
|
-
throw IllegalStateException_init_$Create$(toString_0(message_1));
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
function access$validateIfSealed$tPolymorphicKt(serializer, actualSerializer, classDiscriminator) {
|
|
474
|
-
return validateIfSealed(serializer, actualSerializer, classDiscriminator);
|
|
475
|
-
}
|
|
476
|
-
function Key() {
|
|
477
|
-
}
|
|
478
|
-
function DescriptorSchemaCache() {
|
|
479
|
-
this.p1d_1 = createMapForCache(16);
|
|
480
|
-
}
|
|
481
|
-
protoOf(DescriptorSchemaCache).c1e = function (descriptor, key, value) {
|
|
482
|
-
// Inline function 'kotlin.collections.getOrPut' call
|
|
483
|
-
var this_0 = this.p1d_1;
|
|
484
|
-
var value_0 = this_0.w1(descriptor);
|
|
485
|
-
var tmp;
|
|
486
|
-
if (value_0 == null) {
|
|
487
|
-
// Inline function 'kotlinx.serialization.json.internal.DescriptorSchemaCache.set.<anonymous>' call
|
|
488
|
-
var answer = createMapForCache(2);
|
|
489
|
-
this_0.e2(descriptor, answer);
|
|
490
|
-
tmp = answer;
|
|
491
|
-
} else {
|
|
492
|
-
tmp = value_0;
|
|
493
|
-
}
|
|
494
|
-
var tmp2 = tmp;
|
|
495
|
-
var tmp3 = key instanceof Key ? key : THROW_CCE();
|
|
496
|
-
// Inline function 'kotlin.collections.set' call
|
|
497
|
-
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
498
|
-
tmp2.e2(tmp3, value_1);
|
|
499
|
-
};
|
|
500
|
-
protoOf(DescriptorSchemaCache).q1d = function (descriptor, key, defaultValue) {
|
|
501
|
-
var tmp0_safe_receiver = this.d1e(descriptor, key);
|
|
502
|
-
if (tmp0_safe_receiver == null)
|
|
503
|
-
null;
|
|
504
|
-
else {
|
|
505
|
-
// Inline function 'kotlin.let' call
|
|
506
|
-
return tmp0_safe_receiver;
|
|
507
|
-
}
|
|
508
|
-
var value = defaultValue();
|
|
509
|
-
this.c1e(descriptor, key, value);
|
|
510
|
-
return value;
|
|
511
|
-
};
|
|
512
|
-
protoOf(DescriptorSchemaCache).d1e = function (descriptor, key) {
|
|
513
|
-
var tmp0_safe_receiver = this.p1d_1.w1(descriptor);
|
|
514
|
-
var tmp;
|
|
515
|
-
if (tmp0_safe_receiver == null) {
|
|
516
|
-
tmp = null;
|
|
517
|
-
} else {
|
|
518
|
-
tmp = tmp0_safe_receiver.w1(key instanceof Key ? key : THROW_CCE());
|
|
519
|
-
}
|
|
520
|
-
var tmp_0 = tmp;
|
|
521
|
-
return !(tmp_0 == null) ? tmp_0 : null;
|
|
522
|
-
};
|
|
523
|
-
function get_unsignedNumberDescriptors() {
|
|
524
|
-
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
525
|
-
return unsignedNumberDescriptors;
|
|
526
|
-
}
|
|
527
|
-
var unsignedNumberDescriptors;
|
|
528
|
-
function StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, $this) {
|
|
529
|
-
StreamingJsonEncoder.call($this, Composer_0(output, json), json, mode, modeReuseCache);
|
|
530
|
-
return $this;
|
|
531
|
-
}
|
|
532
|
-
function StreamingJsonEncoder_init_$Create$(output, json, mode, modeReuseCache) {
|
|
533
|
-
return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
|
|
534
|
-
}
|
|
535
|
-
function encodeTypeInfo($this, discriminator, serialName) {
|
|
536
|
-
$this.s1d_1.o1c();
|
|
537
|
-
$this.dm(discriminator);
|
|
538
|
-
$this.s1d_1.r1c(_Char___init__impl__6a9atx(58));
|
|
539
|
-
$this.s1d_1.q1c();
|
|
540
|
-
$this.dm(serialName);
|
|
541
|
-
}
|
|
542
|
-
function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
|
|
543
|
-
AbstractEncoder.call(this);
|
|
544
|
-
this.s1d_1 = composer;
|
|
545
|
-
this.t1d_1 = json;
|
|
546
|
-
this.u1d_1 = mode;
|
|
547
|
-
this.v1d_1 = modeReuseCache;
|
|
548
|
-
this.w1d_1 = this.t1d_1.tm();
|
|
549
|
-
this.x1d_1 = this.t1d_1.n1b_1;
|
|
550
|
-
this.y1d_1 = false;
|
|
551
|
-
this.z1d_1 = null;
|
|
552
|
-
this.a1e_1 = null;
|
|
553
|
-
var i = this.u1d_1.i2_1;
|
|
554
|
-
if (!(this.v1d_1 == null)) {
|
|
555
|
-
if (!(this.v1d_1[i] === null) || !(this.v1d_1[i] === this)) {
|
|
556
|
-
this.v1d_1[i] = this;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
protoOf(StreamingJsonEncoder).e1e = function () {
|
|
561
|
-
return this.t1d_1;
|
|
562
|
-
};
|
|
563
|
-
protoOf(StreamingJsonEncoder).tm = function () {
|
|
564
|
-
return this.w1d_1;
|
|
565
|
-
};
|
|
566
|
-
protoOf(StreamingJsonEncoder).wm = function (descriptor, index) {
|
|
567
|
-
return this.x1d_1.t1b_1;
|
|
568
|
-
};
|
|
569
|
-
protoOf(StreamingJsonEncoder).qm = function (serializer, value) {
|
|
570
|
-
$l$block: {
|
|
571
|
-
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
572
|
-
if (this.e1e().n1b_1.b1c_1) {
|
|
573
|
-
serializer.pj(this, value);
|
|
574
|
-
break $l$block;
|
|
575
|
-
}
|
|
576
|
-
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
577
|
-
var tmp;
|
|
578
|
-
if (isPolymorphicSerializer) {
|
|
579
|
-
tmp = !this.e1e().n1b_1.j1c_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
580
|
-
} else {
|
|
581
|
-
var tmp_0;
|
|
582
|
-
switch (this.e1e().n1b_1.j1c_1.i2_1) {
|
|
583
|
-
case 0:
|
|
584
|
-
case 2:
|
|
585
|
-
tmp_0 = false;
|
|
586
|
-
break;
|
|
587
|
-
case 1:
|
|
588
|
-
// Inline function 'kotlin.let' call
|
|
589
|
-
|
|
590
|
-
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically.<anonymous>' call
|
|
591
|
-
|
|
592
|
-
var it = serializer.oj().qk();
|
|
593
|
-
tmp_0 = equals(it, CLASS_getInstance()) || equals(it, OBJECT_getInstance());
|
|
594
|
-
break;
|
|
595
|
-
default:
|
|
596
|
-
noWhenBranchMatchedException();
|
|
597
|
-
break;
|
|
598
|
-
}
|
|
599
|
-
tmp = tmp_0;
|
|
600
|
-
}
|
|
601
|
-
var needDiscriminator = tmp;
|
|
602
|
-
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.oj(), this.e1e()) : null;
|
|
603
|
-
var tmp_1;
|
|
604
|
-
if (isPolymorphicSerializer) {
|
|
605
|
-
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
606
|
-
$l$block_0: {
|
|
607
|
-
// Inline function 'kotlin.requireNotNull' call
|
|
608
|
-
if (value == null) {
|
|
609
|
-
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically.<anonymous>' call
|
|
610
|
-
var message = 'Value for serializer ' + toString_0(serializer.oj()) + ' should always be non-null. Please report issue to the kotlinx.serialization tracker.';
|
|
611
|
-
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
612
|
-
} else {
|
|
613
|
-
break $l$block_0;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
var actual = findPolymorphicSerializer(casted, this, value);
|
|
617
|
-
if (!(baseClassDiscriminator == null)) {
|
|
618
|
-
access$validateIfSealed$tPolymorphicKt(serializer, actual, baseClassDiscriminator);
|
|
619
|
-
}
|
|
620
|
-
checkKind(actual.oj().qk());
|
|
621
|
-
tmp_1 = isInterface(actual, SerializationStrategy) ? actual : THROW_CCE();
|
|
622
|
-
} else {
|
|
623
|
-
tmp_1 = serializer;
|
|
624
|
-
}
|
|
625
|
-
var actualSerializer = tmp_1;
|
|
626
|
-
if (!(baseClassDiscriminator == null)) {
|
|
627
|
-
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue.<anonymous>' call
|
|
628
|
-
var serialName = actualSerializer.oj().pk();
|
|
629
|
-
this.z1d_1 = baseClassDiscriminator;
|
|
630
|
-
this.a1e_1 = serialName;
|
|
631
|
-
}
|
|
632
|
-
actualSerializer.pj(this, value);
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
|
-
protoOf(StreamingJsonEncoder).ql = function (descriptor) {
|
|
636
|
-
var newMode = switchMode(this.t1d_1, descriptor);
|
|
637
|
-
if (!(newMode.h1e_1 === _Char___init__impl__6a9atx(0))) {
|
|
638
|
-
this.s1d_1.r1c(newMode.h1e_1);
|
|
639
|
-
this.s1d_1.m1c();
|
|
640
|
-
}
|
|
641
|
-
var discriminator = this.z1d_1;
|
|
642
|
-
if (!(discriminator == null)) {
|
|
643
|
-
var tmp0_elvis_lhs = this.a1e_1;
|
|
644
|
-
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.pk() : tmp0_elvis_lhs);
|
|
645
|
-
this.z1d_1 = null;
|
|
646
|
-
this.a1e_1 = null;
|
|
647
|
-
}
|
|
648
|
-
if (this.u1d_1.equals(newMode)) {
|
|
649
|
-
return this;
|
|
650
|
-
}
|
|
651
|
-
var tmp1_safe_receiver = this.v1d_1;
|
|
652
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[newMode.i2_1];
|
|
653
|
-
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.s1d_1, this.t1d_1, newMode, this.v1d_1) : tmp2_elvis_lhs;
|
|
654
|
-
};
|
|
655
|
-
protoOf(StreamingJsonEncoder).rl = function (descriptor) {
|
|
656
|
-
if (!(this.u1d_1.i1e_1 === _Char___init__impl__6a9atx(0))) {
|
|
657
|
-
this.s1d_1.n1c();
|
|
658
|
-
this.s1d_1.p1c();
|
|
659
|
-
this.s1d_1.r1c(this.u1d_1.i1e_1);
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
protoOf(StreamingJsonEncoder).sl = function (descriptor, index) {
|
|
663
|
-
switch (this.u1d_1.i2_1) {
|
|
664
|
-
case 1:
|
|
665
|
-
if (!this.s1d_1.l1c_1) {
|
|
666
|
-
this.s1d_1.r1c(_Char___init__impl__6a9atx(44));
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
this.s1d_1.o1c();
|
|
670
|
-
break;
|
|
671
|
-
case 2:
|
|
672
|
-
if (!this.s1d_1.l1c_1) {
|
|
673
|
-
var tmp = this;
|
|
674
|
-
var tmp_0;
|
|
675
|
-
if ((index % 2 | 0) === 0) {
|
|
676
|
-
this.s1d_1.r1c(_Char___init__impl__6a9atx(44));
|
|
677
|
-
this.s1d_1.o1c();
|
|
678
|
-
tmp_0 = true;
|
|
679
|
-
} else {
|
|
680
|
-
this.s1d_1.r1c(_Char___init__impl__6a9atx(58));
|
|
681
|
-
this.s1d_1.q1c();
|
|
682
|
-
tmp_0 = false;
|
|
683
|
-
}
|
|
684
|
-
tmp.y1d_1 = tmp_0;
|
|
685
|
-
} else {
|
|
686
|
-
this.y1d_1 = true;
|
|
687
|
-
this.s1d_1.o1c();
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
break;
|
|
691
|
-
case 3:
|
|
692
|
-
if (index === 0)
|
|
693
|
-
this.y1d_1 = true;
|
|
694
|
-
if (index === 1) {
|
|
695
|
-
this.s1d_1.r1c(_Char___init__impl__6a9atx(44));
|
|
696
|
-
this.s1d_1.q1c();
|
|
697
|
-
this.y1d_1 = false;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
break;
|
|
701
|
-
default:
|
|
702
|
-
if (!this.s1d_1.l1c_1) {
|
|
703
|
-
this.s1d_1.r1c(_Char___init__impl__6a9atx(44));
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
this.s1d_1.o1c();
|
|
707
|
-
this.dm(getJsonElementName(descriptor, this.t1d_1, index));
|
|
708
|
-
this.s1d_1.r1c(_Char___init__impl__6a9atx(58));
|
|
709
|
-
this.s1d_1.q1c();
|
|
710
|
-
break;
|
|
711
|
-
}
|
|
712
|
-
return true;
|
|
713
|
-
};
|
|
714
|
-
protoOf(StreamingJsonEncoder).rm = function (descriptor, index, serializer, value) {
|
|
715
|
-
if (!(value == null) || this.x1d_1.y1b_1) {
|
|
716
|
-
protoOf(AbstractEncoder).rm.call(this, descriptor, index, serializer, value);
|
|
717
|
-
}
|
|
718
|
-
};
|
|
719
|
-
protoOf(StreamingJsonEncoder).em = function (descriptor) {
|
|
720
|
-
var tmp;
|
|
721
|
-
if (get_isUnsignedNumber(descriptor)) {
|
|
722
|
-
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
723
|
-
var tmp_0;
|
|
724
|
-
var tmp_1 = this.s1d_1;
|
|
725
|
-
if (tmp_1 instanceof ComposerForUnsignedNumbers) {
|
|
726
|
-
tmp_0 = this.s1d_1;
|
|
727
|
-
} else {
|
|
728
|
-
var tmp1 = this.s1d_1.k1c_1;
|
|
729
|
-
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeInline.stub_for_inlining' call
|
|
730
|
-
var p1 = this.y1d_1;
|
|
731
|
-
tmp_0 = new ComposerForUnsignedNumbers(tmp1, p1);
|
|
732
|
-
}
|
|
733
|
-
var tmp$ret$1 = tmp_0;
|
|
734
|
-
tmp = new StreamingJsonEncoder(tmp$ret$1, this.t1d_1, this.u1d_1, null);
|
|
735
|
-
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
736
|
-
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
737
|
-
var tmp_2;
|
|
738
|
-
var tmp_3 = this.s1d_1;
|
|
739
|
-
if (tmp_3 instanceof ComposerForUnquotedLiterals) {
|
|
740
|
-
tmp_2 = this.s1d_1;
|
|
741
|
-
} else {
|
|
742
|
-
var tmp4 = this.s1d_1.k1c_1;
|
|
743
|
-
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeInline.stub_for_inlining' call
|
|
744
|
-
var p1_0 = this.y1d_1;
|
|
745
|
-
tmp_2 = new ComposerForUnquotedLiterals(tmp4, p1_0);
|
|
746
|
-
}
|
|
747
|
-
var tmp$ret$3 = tmp_2;
|
|
748
|
-
tmp = new StreamingJsonEncoder(tmp$ret$3, this.t1d_1, this.u1d_1, null);
|
|
749
|
-
} else if (!(this.z1d_1 == null)) {
|
|
750
|
-
// Inline function 'kotlin.apply' call
|
|
751
|
-
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeInline.<anonymous>' call
|
|
752
|
-
this.a1e_1 = descriptor.pk();
|
|
753
|
-
tmp = this;
|
|
754
|
-
} else {
|
|
755
|
-
tmp = protoOf(AbstractEncoder).em.call(this, descriptor);
|
|
756
|
-
}
|
|
757
|
-
return tmp;
|
|
758
|
-
};
|
|
759
|
-
protoOf(StreamingJsonEncoder).ul = function () {
|
|
760
|
-
this.s1d_1.t1c('null');
|
|
761
|
-
};
|
|
762
|
-
protoOf(StreamingJsonEncoder).vl = function (value) {
|
|
763
|
-
if (this.y1d_1) {
|
|
764
|
-
this.dm(value.toString());
|
|
765
|
-
} else {
|
|
766
|
-
this.s1d_1.c1d(value);
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
protoOf(StreamingJsonEncoder).wl = function (value) {
|
|
770
|
-
if (this.y1d_1) {
|
|
771
|
-
this.dm(value.toString());
|
|
772
|
-
} else {
|
|
773
|
-
this.s1d_1.x1c(value);
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
protoOf(StreamingJsonEncoder).xl = function (value) {
|
|
777
|
-
if (this.y1d_1) {
|
|
778
|
-
this.dm(value.toString());
|
|
779
|
-
} else {
|
|
780
|
-
this.s1d_1.z1c(value);
|
|
781
|
-
}
|
|
782
|
-
};
|
|
783
|
-
protoOf(StreamingJsonEncoder).yl = function (value) {
|
|
784
|
-
if (this.y1d_1) {
|
|
785
|
-
this.dm(value.toString());
|
|
786
|
-
} else {
|
|
787
|
-
this.s1d_1.a1d(value);
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
protoOf(StreamingJsonEncoder).zl = function (value) {
|
|
791
|
-
if (this.y1d_1) {
|
|
792
|
-
this.dm(value.toString());
|
|
793
|
-
} else {
|
|
794
|
-
this.s1d_1.b1d(value);
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
protoOf(StreamingJsonEncoder).am = function (value) {
|
|
798
|
-
if (this.y1d_1) {
|
|
799
|
-
this.dm(value.toString());
|
|
800
|
-
} else {
|
|
801
|
-
this.s1d_1.v1c(value);
|
|
802
|
-
}
|
|
803
|
-
if (!this.x1d_1.d1c_1 && !isFinite(value)) {
|
|
804
|
-
throw InvalidFloatingPointEncoded(value, toString_0(this.s1d_1.k1c_1));
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
protoOf(StreamingJsonEncoder).bm = function (value) {
|
|
808
|
-
if (this.y1d_1) {
|
|
809
|
-
this.dm(value.toString());
|
|
810
|
-
} else {
|
|
811
|
-
this.s1d_1.w1c(value);
|
|
812
|
-
}
|
|
813
|
-
if (!this.x1d_1.d1c_1 && !isFinite_0(value)) {
|
|
814
|
-
throw InvalidFloatingPointEncoded(value, toString_0(this.s1d_1.k1c_1));
|
|
815
|
-
}
|
|
816
|
-
};
|
|
817
|
-
protoOf(StreamingJsonEncoder).cm = function (value) {
|
|
818
|
-
this.dm(toString_1(value));
|
|
819
|
-
};
|
|
820
|
-
protoOf(StreamingJsonEncoder).dm = function (value) {
|
|
821
|
-
return this.s1d_1.d1d(value);
|
|
822
|
-
};
|
|
823
|
-
function get_isUnsignedNumber(_this__u8e3s4) {
|
|
824
|
-
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
825
|
-
return _this__u8e3s4.rk() && get_unsignedNumberDescriptors().d1(_this__u8e3s4);
|
|
826
|
-
}
|
|
827
|
-
function get_isUnquotedLiteral(_this__u8e3s4) {
|
|
828
|
-
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
829
|
-
return _this__u8e3s4.rk() && equals(_this__u8e3s4, get_jsonUnquotedLiteralDescriptor());
|
|
830
|
-
}
|
|
831
|
-
var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
|
|
832
|
-
function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
|
|
833
|
-
if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
|
|
834
|
-
properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
|
|
835
|
-
unsignedNumberDescriptors = setOf([serializer_0(Companion_getInstance()).oj(), serializer_1(Companion_getInstance_0()).oj(), serializer_2(Companion_getInstance_1()).oj(), serializer_3(Companion_getInstance_2()).oj()]);
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
function get_ESCAPE_STRINGS() {
|
|
839
|
-
_init_properties_StringOps_kt__fcy1db();
|
|
840
|
-
return ESCAPE_STRINGS;
|
|
841
|
-
}
|
|
842
|
-
var ESCAPE_STRINGS;
|
|
843
|
-
var ESCAPE_MARKERS;
|
|
844
|
-
function toHexChar(i) {
|
|
845
|
-
_init_properties_StringOps_kt__fcy1db();
|
|
846
|
-
var d = i & 15;
|
|
847
|
-
var tmp;
|
|
848
|
-
if (d < 10) {
|
|
849
|
-
// Inline function 'kotlin.code' call
|
|
850
|
-
var this_0 = _Char___init__impl__6a9atx(48);
|
|
851
|
-
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
852
|
-
tmp = numberToChar(d + tmp$ret$0 | 0);
|
|
853
|
-
} else {
|
|
854
|
-
var tmp_0 = d - 10 | 0;
|
|
855
|
-
// Inline function 'kotlin.code' call
|
|
856
|
-
var this_1 = _Char___init__impl__6a9atx(97);
|
|
857
|
-
var tmp$ret$1 = Char__toInt_impl_vasixd(this_1);
|
|
858
|
-
tmp = numberToChar(tmp_0 + tmp$ret$1 | 0);
|
|
859
|
-
}
|
|
860
|
-
return tmp;
|
|
861
|
-
}
|
|
862
|
-
function printQuoted(_this__u8e3s4, value) {
|
|
863
|
-
_init_properties_StringOps_kt__fcy1db();
|
|
864
|
-
_this__u8e3s4.y7(_Char___init__impl__6a9atx(34));
|
|
865
|
-
var lastPos = 0;
|
|
866
|
-
var inductionVariable = 0;
|
|
867
|
-
var last = charSequenceLength(value) - 1 | 0;
|
|
868
|
-
if (inductionVariable <= last)
|
|
869
|
-
do {
|
|
870
|
-
var i = inductionVariable;
|
|
871
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
872
|
-
// Inline function 'kotlin.code' call
|
|
873
|
-
var this_0 = charSequenceGet(value, i);
|
|
874
|
-
var c = Char__toInt_impl_vasixd(this_0);
|
|
875
|
-
if (c < get_ESCAPE_STRINGS().length && !(get_ESCAPE_STRINGS()[c] == null)) {
|
|
876
|
-
_this__u8e3s4.mb(value, lastPos, i);
|
|
877
|
-
_this__u8e3s4.x7(get_ESCAPE_STRINGS()[c]);
|
|
878
|
-
lastPos = i + 1 | 0;
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
while (inductionVariable <= last);
|
|
882
|
-
if (!(lastPos === 0))
|
|
883
|
-
_this__u8e3s4.mb(value, lastPos, value.length);
|
|
884
|
-
else
|
|
885
|
-
_this__u8e3s4.x7(value);
|
|
886
|
-
_this__u8e3s4.y7(_Char___init__impl__6a9atx(34));
|
|
887
|
-
}
|
|
888
|
-
var properties_initialized_StringOps_kt_wzaea7;
|
|
889
|
-
function _init_properties_StringOps_kt__fcy1db() {
|
|
890
|
-
if (!properties_initialized_StringOps_kt_wzaea7) {
|
|
891
|
-
properties_initialized_StringOps_kt_wzaea7 = true;
|
|
892
|
-
// Inline function 'kotlin.arrayOfNulls' call
|
|
893
|
-
// Inline function 'kotlin.apply' call
|
|
894
|
-
var this_0 = fillArrayVal(Array(93), null);
|
|
895
|
-
// Inline function 'kotlinx.serialization.json.internal.ESCAPE_STRINGS.<anonymous>' call
|
|
896
|
-
var inductionVariable = 0;
|
|
897
|
-
if (inductionVariable <= 31)
|
|
898
|
-
do {
|
|
899
|
-
var c = inductionVariable;
|
|
900
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
901
|
-
var c1 = toHexChar(c >> 12);
|
|
902
|
-
var c2 = toHexChar(c >> 8);
|
|
903
|
-
var c3 = toHexChar(c >> 4);
|
|
904
|
-
var c4 = toHexChar(c);
|
|
905
|
-
this_0[c] = '\\u' + toString_1(c1) + toString_1(c2) + toString_1(c3) + toString_1(c4);
|
|
906
|
-
}
|
|
907
|
-
while (inductionVariable <= 31);
|
|
908
|
-
// Inline function 'kotlin.code' call
|
|
909
|
-
var this_1 = _Char___init__impl__6a9atx(34);
|
|
910
|
-
this_0[Char__toInt_impl_vasixd(this_1)] = '\\"';
|
|
911
|
-
// Inline function 'kotlin.code' call
|
|
912
|
-
var this_2 = _Char___init__impl__6a9atx(92);
|
|
913
|
-
this_0[Char__toInt_impl_vasixd(this_2)] = '\\\\';
|
|
914
|
-
// Inline function 'kotlin.code' call
|
|
915
|
-
var this_3 = _Char___init__impl__6a9atx(9);
|
|
916
|
-
this_0[Char__toInt_impl_vasixd(this_3)] = '\\t';
|
|
917
|
-
// Inline function 'kotlin.code' call
|
|
918
|
-
var this_4 = _Char___init__impl__6a9atx(8);
|
|
919
|
-
this_0[Char__toInt_impl_vasixd(this_4)] = '\\b';
|
|
920
|
-
// Inline function 'kotlin.code' call
|
|
921
|
-
var this_5 = _Char___init__impl__6a9atx(10);
|
|
922
|
-
this_0[Char__toInt_impl_vasixd(this_5)] = '\\n';
|
|
923
|
-
// Inline function 'kotlin.code' call
|
|
924
|
-
var this_6 = _Char___init__impl__6a9atx(13);
|
|
925
|
-
this_0[Char__toInt_impl_vasixd(this_6)] = '\\r';
|
|
926
|
-
this_0[12] = '\\f';
|
|
927
|
-
ESCAPE_STRINGS = this_0;
|
|
928
|
-
// Inline function 'kotlin.apply' call
|
|
929
|
-
var this_7 = new Int8Array(93);
|
|
930
|
-
// Inline function 'kotlinx.serialization.json.internal.ESCAPE_MARKERS.<anonymous>' call
|
|
931
|
-
var inductionVariable_0 = 0;
|
|
932
|
-
if (inductionVariable_0 <= 31)
|
|
933
|
-
do {
|
|
934
|
-
var c_0 = inductionVariable_0;
|
|
935
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
936
|
-
this_7[c_0] = 1;
|
|
937
|
-
}
|
|
938
|
-
while (inductionVariable_0 <= 31);
|
|
939
|
-
// Inline function 'kotlin.code' call
|
|
940
|
-
var this_8 = _Char___init__impl__6a9atx(34);
|
|
941
|
-
var tmp = Char__toInt_impl_vasixd(this_8);
|
|
942
|
-
// Inline function 'kotlin.code' call
|
|
943
|
-
var this_9 = _Char___init__impl__6a9atx(34);
|
|
944
|
-
var tmp$ret$1 = Char__toInt_impl_vasixd(this_9);
|
|
945
|
-
this_7[tmp] = toByte(tmp$ret$1);
|
|
946
|
-
// Inline function 'kotlin.code' call
|
|
947
|
-
var this_10 = _Char___init__impl__6a9atx(92);
|
|
948
|
-
var tmp_0 = Char__toInt_impl_vasixd(this_10);
|
|
949
|
-
// Inline function 'kotlin.code' call
|
|
950
|
-
var this_11 = _Char___init__impl__6a9atx(92);
|
|
951
|
-
var tmp$ret$3 = Char__toInt_impl_vasixd(this_11);
|
|
952
|
-
this_7[tmp_0] = toByte(tmp$ret$3);
|
|
953
|
-
// Inline function 'kotlin.code' call
|
|
954
|
-
var this_12 = _Char___init__impl__6a9atx(9);
|
|
955
|
-
var tmp_1 = Char__toInt_impl_vasixd(this_12);
|
|
956
|
-
// Inline function 'kotlin.code' call
|
|
957
|
-
var this_13 = _Char___init__impl__6a9atx(116);
|
|
958
|
-
var tmp$ret$5 = Char__toInt_impl_vasixd(this_13);
|
|
959
|
-
this_7[tmp_1] = toByte(tmp$ret$5);
|
|
960
|
-
// Inline function 'kotlin.code' call
|
|
961
|
-
var this_14 = _Char___init__impl__6a9atx(8);
|
|
962
|
-
var tmp_2 = Char__toInt_impl_vasixd(this_14);
|
|
963
|
-
// Inline function 'kotlin.code' call
|
|
964
|
-
var this_15 = _Char___init__impl__6a9atx(98);
|
|
965
|
-
var tmp$ret$7 = Char__toInt_impl_vasixd(this_15);
|
|
966
|
-
this_7[tmp_2] = toByte(tmp$ret$7);
|
|
967
|
-
// Inline function 'kotlin.code' call
|
|
968
|
-
var this_16 = _Char___init__impl__6a9atx(10);
|
|
969
|
-
var tmp_3 = Char__toInt_impl_vasixd(this_16);
|
|
970
|
-
// Inline function 'kotlin.code' call
|
|
971
|
-
var this_17 = _Char___init__impl__6a9atx(110);
|
|
972
|
-
var tmp$ret$9 = Char__toInt_impl_vasixd(this_17);
|
|
973
|
-
this_7[tmp_3] = toByte(tmp$ret$9);
|
|
974
|
-
// Inline function 'kotlin.code' call
|
|
975
|
-
var this_18 = _Char___init__impl__6a9atx(13);
|
|
976
|
-
var tmp_4 = Char__toInt_impl_vasixd(this_18);
|
|
977
|
-
// Inline function 'kotlin.code' call
|
|
978
|
-
var this_19 = _Char___init__impl__6a9atx(114);
|
|
979
|
-
var tmp$ret$11 = Char__toInt_impl_vasixd(this_19);
|
|
980
|
-
this_7[tmp_4] = toByte(tmp$ret$11);
|
|
981
|
-
// Inline function 'kotlin.code' call
|
|
982
|
-
var this_20 = _Char___init__impl__6a9atx(102);
|
|
983
|
-
var tmp$ret$12 = Char__toInt_impl_vasixd(this_20);
|
|
984
|
-
this_7[12] = toByte(tmp$ret$12);
|
|
985
|
-
ESCAPE_MARKERS = this_7;
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
var WriteMode_OBJ_instance;
|
|
989
|
-
var WriteMode_LIST_instance;
|
|
990
|
-
var WriteMode_MAP_instance;
|
|
991
|
-
var WriteMode_POLY_OBJ_instance;
|
|
992
|
-
function values() {
|
|
993
|
-
return [WriteMode_OBJ_getInstance(), WriteMode_LIST_getInstance(), WriteMode_MAP_getInstance(), WriteMode_POLY_OBJ_getInstance()];
|
|
994
|
-
}
|
|
995
|
-
function get_entries() {
|
|
996
|
-
if ($ENTRIES == null)
|
|
997
|
-
$ENTRIES = enumEntries(values());
|
|
998
|
-
return $ENTRIES;
|
|
999
|
-
}
|
|
1000
|
-
var WriteMode_entriesInitialized;
|
|
1001
|
-
function WriteMode_initEntries() {
|
|
1002
|
-
if (WriteMode_entriesInitialized)
|
|
1003
|
-
return Unit_instance;
|
|
1004
|
-
WriteMode_entriesInitialized = true;
|
|
1005
|
-
WriteMode_OBJ_instance = new WriteMode('OBJ', 0, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
|
|
1006
|
-
WriteMode_LIST_instance = new WriteMode('LIST', 1, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
|
|
1007
|
-
WriteMode_MAP_instance = new WriteMode('MAP', 2, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
|
|
1008
|
-
WriteMode_POLY_OBJ_instance = new WriteMode('POLY_OBJ', 3, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
|
|
1009
|
-
}
|
|
1010
|
-
var $ENTRIES;
|
|
1011
|
-
function WriteMode(name, ordinal, begin, end) {
|
|
1012
|
-
Enum.call(this, name, ordinal);
|
|
1013
|
-
this.h1e_1 = begin;
|
|
1014
|
-
this.i1e_1 = end;
|
|
1015
|
-
}
|
|
1016
|
-
function switchMode(_this__u8e3s4, desc) {
|
|
1017
|
-
var tmp0_subject = desc.qk();
|
|
1018
|
-
var tmp;
|
|
1019
|
-
if (tmp0_subject instanceof PolymorphicKind) {
|
|
1020
|
-
tmp = WriteMode_POLY_OBJ_getInstance();
|
|
1021
|
-
} else {
|
|
1022
|
-
if (equals(tmp0_subject, LIST_getInstance())) {
|
|
1023
|
-
tmp = WriteMode_LIST_getInstance();
|
|
1024
|
-
} else {
|
|
1025
|
-
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
1026
|
-
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
1027
|
-
var keyDescriptor = carrierDescriptor(desc.vk(0), _this__u8e3s4.tm());
|
|
1028
|
-
var keyKind = keyDescriptor.qk();
|
|
1029
|
-
var tmp_0;
|
|
1030
|
-
var tmp_1;
|
|
1031
|
-
if (keyKind instanceof PrimitiveKind) {
|
|
1032
|
-
tmp_1 = true;
|
|
1033
|
-
} else {
|
|
1034
|
-
tmp_1 = equals(keyKind, ENUM_getInstance());
|
|
1035
|
-
}
|
|
1036
|
-
if (tmp_1) {
|
|
1037
|
-
// Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
|
|
1038
|
-
tmp_0 = WriteMode_MAP_getInstance();
|
|
1039
|
-
} else {
|
|
1040
|
-
if (_this__u8e3s4.n1b_1.w1b_1) {
|
|
1041
|
-
// Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
|
|
1042
|
-
tmp_0 = WriteMode_LIST_getInstance();
|
|
1043
|
-
} else {
|
|
1044
|
-
throw InvalidKeyKindException(keyDescriptor);
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
tmp = tmp_0;
|
|
1048
|
-
} else {
|
|
1049
|
-
tmp = WriteMode_OBJ_getInstance();
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
return tmp;
|
|
1054
|
-
}
|
|
1055
|
-
function carrierDescriptor(_this__u8e3s4, module_0) {
|
|
1056
|
-
var tmp;
|
|
1057
|
-
if (equals(_this__u8e3s4.qk(), CONTEXTUAL_getInstance())) {
|
|
1058
|
-
var tmp0_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4);
|
|
1059
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : carrierDescriptor(tmp0_safe_receiver, module_0);
|
|
1060
|
-
tmp = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
|
|
1061
|
-
} else if (_this__u8e3s4.rk()) {
|
|
1062
|
-
tmp = carrierDescriptor(_this__u8e3s4.vk(0), module_0);
|
|
1063
|
-
} else {
|
|
1064
|
-
tmp = _this__u8e3s4;
|
|
1065
|
-
}
|
|
1066
|
-
return tmp;
|
|
1067
|
-
}
|
|
1068
|
-
function WriteMode_OBJ_getInstance() {
|
|
1069
|
-
WriteMode_initEntries();
|
|
1070
|
-
return WriteMode_OBJ_instance;
|
|
1071
|
-
}
|
|
1072
|
-
function WriteMode_LIST_getInstance() {
|
|
1073
|
-
WriteMode_initEntries();
|
|
1074
|
-
return WriteMode_LIST_instance;
|
|
1075
|
-
}
|
|
1076
|
-
function WriteMode_MAP_getInstance() {
|
|
1077
|
-
WriteMode_initEntries();
|
|
1078
|
-
return WriteMode_MAP_instance;
|
|
1079
|
-
}
|
|
1080
|
-
function WriteMode_POLY_OBJ_getInstance() {
|
|
1081
|
-
WriteMode_initEntries();
|
|
1082
|
-
return WriteMode_POLY_OBJ_instance;
|
|
1083
|
-
}
|
|
1084
|
-
function get_schemaCache(_this__u8e3s4) {
|
|
1085
|
-
return _this__u8e3s4.p1b_1;
|
|
1086
|
-
}
|
|
1087
|
-
function JsonToStringWriter() {
|
|
1088
|
-
this.r1b_1 = StringBuilder_init_$Create$(128);
|
|
1089
|
-
}
|
|
1090
|
-
protoOf(JsonToStringWriter).y1c = function (value) {
|
|
1091
|
-
this.r1b_1.pb(value);
|
|
1092
|
-
};
|
|
1093
|
-
protoOf(JsonToStringWriter).s1c = function (char) {
|
|
1094
|
-
this.r1b_1.y7(char);
|
|
1095
|
-
};
|
|
1096
|
-
protoOf(JsonToStringWriter).u1c = function (text) {
|
|
1097
|
-
this.r1b_1.x7(text);
|
|
1098
|
-
};
|
|
1099
|
-
protoOf(JsonToStringWriter).e1d = function (text) {
|
|
1100
|
-
printQuoted(this.r1b_1, text);
|
|
1101
|
-
};
|
|
1102
|
-
protoOf(JsonToStringWriter).s1b = function () {
|
|
1103
|
-
this.r1b_1.rb();
|
|
1104
|
-
};
|
|
1105
|
-
protoOf(JsonToStringWriter).toString = function () {
|
|
1106
|
-
return this.r1b_1.toString();
|
|
1107
|
-
};
|
|
1108
|
-
function createMapForCache(initialCapacity) {
|
|
1109
|
-
return HashMap_init_$Create$(initialCapacity);
|
|
1110
|
-
}
|
|
1111
|
-
//region block: exports
|
|
1112
|
-
_.$_$ = _.$_$ || {};
|
|
1113
|
-
_.$_$.a = Default_getInstance;
|
|
1114
|
-
//endregion
|
|
1115
|
-
return _;
|
|
1116
|
-
}(module.exports, require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlin-kotlin-stdlib.js')));
|
|
1117
|
-
|
|
1118
|
-
//# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-json.js.map
|