@godaan/shared 1.0.0-SNAPSHOT-202512150300 → 1.0.0-SNAPSHOT-202512160231

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/kotlin/compose-multiplatform-core-compose-foundation-foundation.js +1 -1
  2. package/kotlin/compose-multiplatform-core-compose-runtime-runtime.js +1 -1
  3. package/kotlin/godaan-backend-shared.d.ts +1 -0
  4. package/kotlin/godaan-backend-shared.js +84 -4
  5. package/kotlin/godaan-backend-shared.js.map +1 -1
  6. package/kotlin/kotlin-kotlin-stdlib.js +9554 -76
  7. package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
  8. package/kotlin/kotlinx-atomicfu.js +190 -6
  9. package/kotlin/kotlinx-atomicfu.js.map +1 -1
  10. package/kotlin/kotlinx-coroutines-core.js +8162 -5
  11. package/kotlin/kotlinx-coroutines-core.js.map +1 -1
  12. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +204 -5
  13. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
  14. package/kotlin/kotlinx-io-kotlinx-io-core.js +2019 -5
  15. package/kotlin/kotlinx-io-kotlinx-io-core.js.map +1 -1
  16. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +772 -5
  17. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  18. package/kotlin/ktor-ktor-client-core.js +8305 -26
  19. package/kotlin/ktor-ktor-client-core.js.map +1 -1
  20. package/kotlin/ktor-ktor-events.js +84 -5
  21. package/kotlin/ktor-ktor-events.js.map +1 -1
  22. package/kotlin/ktor-ktor-http-cio.js +2268 -5
  23. package/kotlin/ktor-ktor-http-cio.js.map +1 -1
  24. package/kotlin/ktor-ktor-http.js +3026 -5
  25. package/kotlin/ktor-ktor-http.js.map +1 -1
  26. package/kotlin/ktor-ktor-io.js +3159 -5
  27. package/kotlin/ktor-ktor-io.js.map +1 -1
  28. package/kotlin/ktor-ktor-utils.js +2355 -5
  29. package/kotlin/ktor-ktor-utils.js.map +1 -1
  30. package/kotlin/ktor-ktor-websockets.js +437 -5
  31. package/kotlin/ktor-ktor-websockets.js.map +1 -1
  32. package/package.json +1 -1
@@ -1,13 +1,780 @@
1
1
  (function (factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports);
6
- else
7
- globalThis['kotlinx-serialization-kotlinx-serialization-core'] = factory(typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined' ? {} : globalThis['kotlinx-serialization-kotlinx-serialization-core']);
8
- }(function (_) {
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'kotlinx-serialization-kotlinx-serialization-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlinx-serialization-kotlinx-serialization-core'.");
9
+ }
10
+ globalThis['kotlinx-serialization-kotlinx-serialization-core'] = factory(typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined' ? {} : globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlin-kotlin-stdlib']);
11
+ }
12
+ }(function (_, kotlin_kotlin) {
9
13
  'use strict';
14
+ //region block: imports
15
+ var imul = Math.imul;
16
+ var protoOf = kotlin_kotlin.$_$.g7;
17
+ var initMetadataForInterface = kotlin_kotlin.$_$.u6;
18
+ var initMetadataForClass = kotlin_kotlin.$_$.q6;
19
+ var emptyList = kotlin_kotlin.$_$.d3;
20
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
21
+ var HashSet_init_$Create$ = kotlin_kotlin.$_$.j;
22
+ var VOID = kotlin_kotlin.$_$.a;
23
+ var isBlank = kotlin_kotlin.$_$.m8;
24
+ var toString = kotlin_kotlin.$_$.j7;
25
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.b1;
26
+ var Unit_instance = kotlin_kotlin.$_$.k2;
27
+ var equals = kotlin_kotlin.$_$.k6;
28
+ var toList = kotlin_kotlin.$_$.h4;
29
+ var KProperty1 = kotlin_kotlin.$_$.x7;
30
+ var getPropertyCallableRef = kotlin_kotlin.$_$.n6;
31
+ var toHashSet = kotlin_kotlin.$_$.e4;
32
+ var copyToArray = kotlin_kotlin.$_$.b3;
33
+ var toBooleanArray = kotlin_kotlin.$_$.c4;
34
+ var withIndex = kotlin_kotlin.$_$.n4;
35
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.v2;
36
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
37
+ var to = kotlin_kotlin.$_$.na;
38
+ var toMap = kotlin_kotlin.$_$.j4;
39
+ var lazy = kotlin_kotlin.$_$.ia;
40
+ var contentEquals = kotlin_kotlin.$_$.w2;
41
+ var initMetadataForObject = kotlin_kotlin.$_$.w6;
42
+ var getKClassFromExpression = kotlin_kotlin.$_$.s7;
43
+ var ensureNotNull = kotlin_kotlin.$_$.fa;
44
+ var getStringHashCode = kotlin_kotlin.$_$.o6;
45
+ var isInterface = kotlin_kotlin.$_$.a7;
46
+ var joinToString = kotlin_kotlin.$_$.l3;
47
+ var hashCode = kotlin_kotlin.$_$.p6;
48
+ var HashSet_init_$Create$_0 = kotlin_kotlin.$_$.i;
49
+ var HashMap_init_$Create$ = kotlin_kotlin.$_$.h;
50
+ var booleanArray = kotlin_kotlin.$_$.a6;
51
+ var emptyMap = kotlin_kotlin.$_$.e3;
52
+ var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.c;
53
+ var lazy_0 = kotlin_kotlin.$_$.ha;
54
+ var contentHashCode = kotlin_kotlin.$_$.z2;
55
+ var until = kotlin_kotlin.$_$.o7;
56
+ var get_indices = kotlin_kotlin.$_$.k3;
57
+ var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.h1;
58
+ //endregion
10
59
  //region block: pre-declaration
60
+ initMetadataForInterface(SerialDescriptor, 'SerialDescriptor');
61
+ initMetadataForClass(elementNames$1);
62
+ initMetadataForClass(elementNames$$inlined$Iterable$1);
63
+ initMetadataForClass(elementDescriptors$1);
64
+ initMetadataForClass(elementDescriptors$$inlined$Iterable$1);
65
+ initMetadataForClass(ClassSerialDescriptorBuilder, 'ClassSerialDescriptorBuilder');
66
+ initMetadataForInterface(CachedNames, 'CachedNames');
67
+ initMetadataForClass(SerialDescriptorImpl, 'SerialDescriptorImpl', VOID, VOID, [SerialDescriptor, CachedNames]);
68
+ initMetadataForClass(SerialKind, 'SerialKind');
69
+ initMetadataForObject(ENUM, 'ENUM', VOID, SerialKind);
70
+ initMetadataForClass(StructureKind, 'StructureKind', VOID, SerialKind);
71
+ initMetadataForObject(CLASS, 'CLASS', VOID, StructureKind);
72
+ initMetadataForObject(OBJECT, 'OBJECT', VOID, StructureKind);
73
+ initMetadataForClass(EnumSerializer, 'EnumSerializer');
74
+ initMetadataForClass(PluginGeneratedSerialDescriptor, 'PluginGeneratedSerialDescriptor', VOID, VOID, [SerialDescriptor, CachedNames]);
75
+ initMetadataForClass(EnumDescriptor, 'EnumDescriptor', VOID, PluginGeneratedSerialDescriptor);
76
+ function typeParametersSerializers() {
77
+ return get_EMPTY_SERIALIZER_ARRAY();
78
+ }
79
+ initMetadataForInterface(GeneratedSerializer, 'GeneratedSerializer');
80
+ initMetadataForClass(SerializableWith, 'SerializableWith', VOID, VOID, VOID, VOID, 0);
81
+ //endregion
82
+ function SerialDescriptor() {
83
+ }
84
+ function get_elementNames(_this__u8e3s4) {
85
+ // Inline function 'kotlin.collections.Iterable' call
86
+ return new elementNames$$inlined$Iterable$1(_this__u8e3s4);
87
+ }
88
+ function get_elementDescriptors(_this__u8e3s4) {
89
+ // Inline function 'kotlin.collections.Iterable' call
90
+ return new elementDescriptors$$inlined$Iterable$1(_this__u8e3s4);
91
+ }
92
+ function elementNames$1($this_elementNames) {
93
+ this.z1e_1 = $this_elementNames;
94
+ this.y1e_1 = $this_elementNames.v1e();
95
+ }
96
+ protoOf(elementNames$1).j = function () {
97
+ return this.y1e_1 > 0;
98
+ };
99
+ protoOf(elementNames$1).k = function () {
100
+ var tmp = this.z1e_1.v1e();
101
+ var _unary__edvuaz = this.y1e_1;
102
+ this.y1e_1 = _unary__edvuaz - 1 | 0;
103
+ return this.z1e_1.w1e(tmp - _unary__edvuaz | 0);
104
+ };
105
+ function elementNames$$inlined$Iterable$1($this_elementNames) {
106
+ this.a1f_1 = $this_elementNames;
107
+ }
108
+ protoOf(elementNames$$inlined$Iterable$1).i = function () {
109
+ return new elementNames$1(this.a1f_1);
110
+ };
111
+ function elementDescriptors$1($this_elementDescriptors) {
112
+ this.c1f_1 = $this_elementDescriptors;
113
+ this.b1f_1 = $this_elementDescriptors.v1e();
114
+ }
115
+ protoOf(elementDescriptors$1).j = function () {
116
+ return this.b1f_1 > 0;
117
+ };
118
+ protoOf(elementDescriptors$1).k = function () {
119
+ var tmp = this.c1f_1.v1e();
120
+ var _unary__edvuaz = this.b1f_1;
121
+ this.b1f_1 = _unary__edvuaz - 1 | 0;
122
+ return this.c1f_1.x1e(tmp - _unary__edvuaz | 0);
123
+ };
124
+ function elementDescriptors$$inlined$Iterable$1($this_elementDescriptors) {
125
+ this.d1f_1 = $this_elementDescriptors;
126
+ }
127
+ protoOf(elementDescriptors$$inlined$Iterable$1).i = function () {
128
+ return new elementDescriptors$1(this.d1f_1);
129
+ };
130
+ function ClassSerialDescriptorBuilder(serialName) {
131
+ this.e1f_1 = serialName;
132
+ this.f1f_1 = false;
133
+ this.g1f_1 = emptyList();
134
+ this.h1f_1 = ArrayList_init_$Create$();
135
+ this.i1f_1 = HashSet_init_$Create$();
136
+ this.j1f_1 = ArrayList_init_$Create$();
137
+ this.k1f_1 = ArrayList_init_$Create$();
138
+ this.l1f_1 = ArrayList_init_$Create$();
139
+ }
140
+ function buildSerialDescriptor(serialName, kind, typeParameters, builder) {
141
+ var tmp;
142
+ if (builder === VOID) {
143
+ tmp = buildSerialDescriptor$lambda;
144
+ } else {
145
+ tmp = builder;
146
+ }
147
+ builder = tmp;
148
+ // Inline function 'kotlin.text.isNotBlank' call
149
+ // Inline function 'kotlin.require' call
150
+ if (!!isBlank(serialName)) {
151
+ var message = 'Blank serial names are prohibited';
152
+ throw IllegalArgumentException_init_$Create$(toString(message));
153
+ }
154
+ // Inline function 'kotlin.require' call
155
+ if (!!equals(kind, CLASS_getInstance())) {
156
+ var message_0 = "For StructureKind.CLASS please use 'buildClassSerialDescriptor' instead";
157
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
158
+ }
159
+ var sdBuilder = new ClassSerialDescriptorBuilder(serialName);
160
+ builder(sdBuilder);
161
+ return new SerialDescriptorImpl(serialName, kind, sdBuilder.h1f_1.n(), toList(typeParameters), sdBuilder);
162
+ }
163
+ function _get__hashCode__tgwhef($this) {
164
+ var tmp0 = $this.x1f_1;
165
+ var tmp = KProperty1;
166
+ // Inline function 'kotlin.getValue' call
167
+ getPropertyCallableRef('_hashCode', 1, tmp, SerialDescriptorImpl$_get__hashCode_$ref_2v7wzp(), null);
168
+ return tmp0.u();
169
+ }
170
+ function SerialDescriptorImpl$_hashCode$delegate$lambda(this$0) {
171
+ return function () {
172
+ return hashCodeImpl(this$0, this$0.w1f_1);
173
+ };
174
+ }
175
+ function SerialDescriptorImpl$_get__hashCode_$ref_2v7wzp() {
176
+ return function (p0) {
177
+ return _get__hashCode__tgwhef(p0);
178
+ };
179
+ }
180
+ function SerialDescriptorImpl(serialName, kind, elementsCount, typeParameters, builder) {
181
+ this.m1f_1 = serialName;
182
+ this.n1f_1 = kind;
183
+ this.o1f_1 = elementsCount;
184
+ this.p1f_1 = builder.g1f_1;
185
+ this.q1f_1 = toHashSet(builder.h1f_1);
186
+ var tmp = this;
187
+ // Inline function 'kotlin.collections.toTypedArray' call
188
+ var this_0 = builder.h1f_1;
189
+ tmp.r1f_1 = copyToArray(this_0);
190
+ this.s1f_1 = compactArray(builder.j1f_1);
191
+ var tmp_0 = this;
192
+ // Inline function 'kotlin.collections.toTypedArray' call
193
+ var this_1 = builder.k1f_1;
194
+ tmp_0.t1f_1 = copyToArray(this_1);
195
+ this.u1f_1 = toBooleanArray(builder.l1f_1);
196
+ var tmp_1 = this;
197
+ // Inline function 'kotlin.collections.map' call
198
+ var this_2 = withIndex(this.r1f_1);
199
+ // Inline function 'kotlin.collections.mapTo' call
200
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
201
+ var _iterator__ex2g4s = this_2.i();
202
+ while (_iterator__ex2g4s.j()) {
203
+ var item = _iterator__ex2g4s.k();
204
+ var tmp$ret$2 = to(item.hc_1, item.gc_1);
205
+ destination.g(tmp$ret$2);
206
+ }
207
+ tmp_1.v1f_1 = toMap(destination);
208
+ this.w1f_1 = compactArray(typeParameters);
209
+ var tmp_2 = this;
210
+ tmp_2.x1f_1 = lazy(SerialDescriptorImpl$_hashCode$delegate$lambda(this));
211
+ }
212
+ protoOf(SerialDescriptorImpl).t1e = function () {
213
+ return this.m1f_1;
214
+ };
215
+ protoOf(SerialDescriptorImpl).u1e = function () {
216
+ return this.n1f_1;
217
+ };
218
+ protoOf(SerialDescriptorImpl).v1e = function () {
219
+ return this.o1f_1;
220
+ };
221
+ protoOf(SerialDescriptorImpl).y1f = function () {
222
+ return this.q1f_1;
223
+ };
224
+ protoOf(SerialDescriptorImpl).w1e = function (index) {
225
+ return getChecked(this.r1f_1, index);
226
+ };
227
+ protoOf(SerialDescriptorImpl).x1e = function (index) {
228
+ return getChecked(this.s1f_1, index);
229
+ };
230
+ protoOf(SerialDescriptorImpl).equals = function (other) {
231
+ var tmp$ret$0;
232
+ $l$block_5: {
233
+ // Inline function 'kotlinx.serialization.internal.equalsImpl' call
234
+ if (this === other) {
235
+ tmp$ret$0 = true;
236
+ break $l$block_5;
237
+ }
238
+ if (!(other instanceof SerialDescriptorImpl)) {
239
+ tmp$ret$0 = false;
240
+ break $l$block_5;
241
+ }
242
+ if (!(this.t1e() === other.t1e())) {
243
+ tmp$ret$0 = false;
244
+ break $l$block_5;
245
+ }
246
+ if (!contentEquals(this.w1f_1, other.w1f_1)) {
247
+ tmp$ret$0 = false;
248
+ break $l$block_5;
249
+ }
250
+ if (!(this.v1e() === other.v1e())) {
251
+ tmp$ret$0 = false;
252
+ break $l$block_5;
253
+ }
254
+ var inductionVariable = 0;
255
+ var last = this.v1e();
256
+ if (inductionVariable < last)
257
+ do {
258
+ var index = inductionVariable;
259
+ inductionVariable = inductionVariable + 1 | 0;
260
+ if (!(this.x1e(index).t1e() === other.x1e(index).t1e())) {
261
+ tmp$ret$0 = false;
262
+ break $l$block_5;
263
+ }
264
+ if (!equals(this.x1e(index).u1e(), other.x1e(index).u1e())) {
265
+ tmp$ret$0 = false;
266
+ break $l$block_5;
267
+ }
268
+ }
269
+ while (inductionVariable < last);
270
+ tmp$ret$0 = true;
271
+ }
272
+ return tmp$ret$0;
273
+ };
274
+ protoOf(SerialDescriptorImpl).hashCode = function () {
275
+ return _get__hashCode__tgwhef(this);
276
+ };
277
+ protoOf(SerialDescriptorImpl).toString = function () {
278
+ return toStringImpl(this);
279
+ };
280
+ function buildSerialDescriptor$lambda(_this__u8e3s4) {
281
+ return Unit_instance;
282
+ }
283
+ function ENUM() {
284
+ ENUM_instance = this;
285
+ SerialKind.call(this);
286
+ }
287
+ var ENUM_instance;
288
+ function ENUM_getInstance() {
289
+ if (ENUM_instance == null)
290
+ new ENUM();
291
+ return ENUM_instance;
292
+ }
293
+ function SerialKind() {
294
+ }
295
+ protoOf(SerialKind).toString = function () {
296
+ return ensureNotNull(getKClassFromExpression(this).b9());
297
+ };
298
+ protoOf(SerialKind).hashCode = function () {
299
+ return getStringHashCode(this.toString());
300
+ };
301
+ function CLASS() {
302
+ CLASS_instance = this;
303
+ StructureKind.call(this);
304
+ }
305
+ var CLASS_instance;
306
+ function CLASS_getInstance() {
307
+ if (CLASS_instance == null)
308
+ new CLASS();
309
+ return CLASS_instance;
310
+ }
311
+ function OBJECT() {
312
+ OBJECT_instance = this;
313
+ StructureKind.call(this);
314
+ }
315
+ var OBJECT_instance;
316
+ function OBJECT_getInstance() {
317
+ if (OBJECT_instance == null)
318
+ new OBJECT();
319
+ return OBJECT_instance;
320
+ }
321
+ function StructureKind() {
322
+ SerialKind.call(this);
323
+ }
324
+ function CachedNames() {
325
+ }
326
+ function createSimpleEnumSerializer(serialName, values) {
327
+ return new EnumSerializer(serialName, values);
328
+ }
329
+ function createUnmarkedDescriptor($this, serialName) {
330
+ var d = new EnumDescriptor(serialName, $this.z1f_1.length);
331
+ // Inline function 'kotlin.collections.forEach' call
332
+ var indexedObject = $this.z1f_1;
333
+ var inductionVariable = 0;
334
+ var last = indexedObject.length;
335
+ while (inductionVariable < last) {
336
+ var element = indexedObject[inductionVariable];
337
+ inductionVariable = inductionVariable + 1 | 0;
338
+ d.o1g(element.a2_1);
339
+ }
340
+ return d;
341
+ }
342
+ function EnumSerializer$descriptor$delegate$lambda(this$0, $serialName) {
343
+ return function () {
344
+ var tmp0_elvis_lhs = this$0.a1g_1;
345
+ return tmp0_elvis_lhs == null ? createUnmarkedDescriptor(this$0, $serialName) : tmp0_elvis_lhs;
346
+ };
347
+ }
348
+ function EnumSerializer$_get_descriptor_$ref_j67dlw() {
349
+ return function (p0) {
350
+ return p0.p1g();
351
+ };
352
+ }
353
+ function EnumSerializer(serialName, values) {
354
+ this.z1f_1 = values;
355
+ this.a1g_1 = null;
356
+ var tmp = this;
357
+ tmp.b1g_1 = lazy(EnumSerializer$descriptor$delegate$lambda(this, serialName));
358
+ }
359
+ protoOf(EnumSerializer).p1g = function () {
360
+ var tmp0 = this.b1g_1;
361
+ var tmp = KProperty1;
362
+ // Inline function 'kotlin.getValue' call
363
+ getPropertyCallableRef('descriptor', 1, tmp, EnumSerializer$_get_descriptor_$ref_j67dlw(), null);
364
+ return tmp0.u();
365
+ };
366
+ protoOf(EnumSerializer).toString = function () {
367
+ return 'kotlinx.serialization.internal.EnumSerializer<' + this.p1g().t1e() + '>';
368
+ };
369
+ function _get_elementDescriptors__y23q9p($this) {
370
+ var tmp0 = $this.d1h_1;
371
+ var tmp = KProperty1;
372
+ // Inline function 'kotlin.getValue' call
373
+ getPropertyCallableRef('elementDescriptors', 1, tmp, EnumDescriptor$_get_elementDescriptors_$ref_5lvk4a(), null);
374
+ return tmp0.u();
375
+ }
376
+ function EnumDescriptor$elementDescriptors$delegate$lambda($elementsCount, $name, this$0) {
377
+ return function () {
378
+ var tmp = 0;
379
+ var tmp_0 = $elementsCount;
380
+ // Inline function 'kotlin.arrayOfNulls' call
381
+ var tmp_1 = Array(tmp_0);
382
+ while (tmp < tmp_0) {
383
+ var tmp_2 = tmp;
384
+ tmp_1[tmp_2] = buildSerialDescriptor($name + '.' + this$0.w1e(tmp_2), OBJECT_getInstance(), []);
385
+ tmp = tmp + 1 | 0;
386
+ }
387
+ return tmp_1;
388
+ };
389
+ }
390
+ function EnumDescriptor$_get_elementDescriptors_$ref_5lvk4a() {
391
+ return function (p0) {
392
+ return _get_elementDescriptors__y23q9p(p0);
393
+ };
394
+ }
395
+ function EnumDescriptor(name, elementsCount) {
396
+ PluginGeneratedSerialDescriptor.call(this, name, VOID, elementsCount);
397
+ this.c1h_1 = ENUM_getInstance();
398
+ var tmp = this;
399
+ tmp.d1h_1 = lazy(EnumDescriptor$elementDescriptors$delegate$lambda(elementsCount, name, this));
400
+ }
401
+ protoOf(EnumDescriptor).u1e = function () {
402
+ return this.c1h_1;
403
+ };
404
+ protoOf(EnumDescriptor).x1e = function (index) {
405
+ return getChecked(_get_elementDescriptors__y23q9p(this), index);
406
+ };
407
+ protoOf(EnumDescriptor).equals = function (other) {
408
+ if (this === other)
409
+ return true;
410
+ if (other == null)
411
+ return false;
412
+ if (!(!(other == null) ? isInterface(other, SerialDescriptor) : false))
413
+ return false;
414
+ if (!(other.u1e() === ENUM_getInstance()))
415
+ return false;
416
+ if (!(this.t1e() === other.t1e()))
417
+ return false;
418
+ if (!equals(cachedSerialNames(this), cachedSerialNames(other)))
419
+ return false;
420
+ return true;
421
+ };
422
+ protoOf(EnumDescriptor).toString = function () {
423
+ return joinToString(get_elementNames(this), ', ', this.t1e() + '(', ')');
424
+ };
425
+ protoOf(EnumDescriptor).hashCode = function () {
426
+ var result = getStringHashCode(this.t1e());
427
+ // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
428
+ // Inline function 'kotlin.collections.fold' call
429
+ var accumulator = 1;
430
+ var _iterator__ex2g4s = get_elementNames(this).i();
431
+ while (_iterator__ex2g4s.j()) {
432
+ var element = _iterator__ex2g4s.k();
433
+ var hash = accumulator;
434
+ var tmp = imul(31, hash);
435
+ // Inline function 'kotlin.hashCode' call
436
+ var tmp1_elvis_lhs = element == null ? null : hashCode(element);
437
+ accumulator = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
438
+ }
439
+ var elementsHashCode = accumulator;
440
+ result = imul(31, result) + elementsHashCode | 0;
441
+ return result;
442
+ };
443
+ function get_EMPTY_DESCRIPTOR_ARRAY() {
444
+ _init_properties_Platform_common_kt__3qzecs();
445
+ return EMPTY_DESCRIPTOR_ARRAY;
446
+ }
447
+ var EMPTY_DESCRIPTOR_ARRAY;
448
+ function compactArray(_this__u8e3s4) {
449
+ _init_properties_Platform_common_kt__3qzecs();
450
+ // Inline function 'kotlin.takeUnless' call
451
+ var tmp;
452
+ // Inline function 'kotlin.collections.isNullOrEmpty' call
453
+ if (!(_this__u8e3s4 == null || _this__u8e3s4.l())) {
454
+ tmp = _this__u8e3s4;
455
+ } else {
456
+ tmp = null;
457
+ }
458
+ var tmp0_safe_receiver = tmp;
459
+ var tmp_0;
460
+ if (tmp0_safe_receiver == null) {
461
+ tmp_0 = null;
462
+ } else {
463
+ // Inline function 'kotlin.collections.toTypedArray' call
464
+ tmp_0 = copyToArray(tmp0_safe_receiver);
465
+ }
466
+ var tmp1_elvis_lhs = tmp_0;
467
+ return tmp1_elvis_lhs == null ? get_EMPTY_DESCRIPTOR_ARRAY() : tmp1_elvis_lhs;
468
+ }
469
+ function cachedSerialNames(_this__u8e3s4) {
470
+ _init_properties_Platform_common_kt__3qzecs();
471
+ if (isInterface(_this__u8e3s4, CachedNames))
472
+ return _this__u8e3s4.y1f();
473
+ var result = HashSet_init_$Create$_0(_this__u8e3s4.v1e());
474
+ var inductionVariable = 0;
475
+ var last = _this__u8e3s4.v1e();
476
+ if (inductionVariable < last)
477
+ do {
478
+ var i = inductionVariable;
479
+ inductionVariable = inductionVariable + 1 | 0;
480
+ // Inline function 'kotlin.collections.plusAssign' call
481
+ var element = _this__u8e3s4.w1e(i);
482
+ result.g(element);
483
+ }
484
+ while (inductionVariable < last);
485
+ return result;
486
+ }
487
+ var properties_initialized_Platform_common_kt_i7q4ty;
488
+ function _init_properties_Platform_common_kt__3qzecs() {
489
+ if (!properties_initialized_Platform_common_kt_i7q4ty) {
490
+ properties_initialized_Platform_common_kt_i7q4ty = true;
491
+ // Inline function 'kotlin.arrayOf' call
492
+ // Inline function 'kotlin.js.unsafeCast' call
493
+ // Inline function 'kotlin.js.asDynamic' call
494
+ EMPTY_DESCRIPTOR_ARRAY = [];
495
+ }
496
+ }
497
+ function _get_childSerializers__7vnyfa($this) {
498
+ var tmp0 = $this.l1g_1;
499
+ var tmp = KProperty1;
500
+ // Inline function 'kotlin.getValue' call
501
+ getPropertyCallableRef('childSerializers', 1, tmp, PluginGeneratedSerialDescriptor$_get_childSerializers_$ref_e7suca(), null);
502
+ return tmp0.u();
503
+ }
504
+ function _get__hashCode__tgwhef_0($this) {
505
+ var tmp0 = $this.n1g_1;
506
+ var tmp = KProperty1;
507
+ // Inline function 'kotlin.getValue' call
508
+ getPropertyCallableRef('_hashCode', 1, tmp, PluginGeneratedSerialDescriptor$_get__hashCode_$ref_cmj4vz(), null);
509
+ return tmp0.u();
510
+ }
511
+ function buildIndices($this) {
512
+ var indices = HashMap_init_$Create$();
513
+ var inductionVariable = 0;
514
+ var last = $this.g1g_1.length - 1 | 0;
515
+ if (inductionVariable <= last)
516
+ do {
517
+ var i = inductionVariable;
518
+ inductionVariable = inductionVariable + 1 | 0;
519
+ // Inline function 'kotlin.collections.set' call
520
+ var key = $this.g1g_1[i];
521
+ indices.w1(key, i);
522
+ }
523
+ while (inductionVariable <= last);
524
+ return indices;
525
+ }
526
+ function PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this$0) {
527
+ return function () {
528
+ var tmp0_safe_receiver = this$0.d1g_1;
529
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1h();
530
+ return tmp1_elvis_lhs == null ? get_EMPTY_SERIALIZER_ARRAY() : tmp1_elvis_lhs;
531
+ };
532
+ }
533
+ function PluginGeneratedSerialDescriptor$_get_childSerializers_$ref_e7suca() {
534
+ return function (p0) {
535
+ return _get_childSerializers__7vnyfa(p0);
536
+ };
537
+ }
538
+ function PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this$0) {
539
+ return function () {
540
+ var tmp0_safe_receiver = this$0.d1g_1;
541
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1h();
542
+ var tmp;
543
+ if (tmp1_safe_receiver == null) {
544
+ tmp = null;
545
+ } else {
546
+ // Inline function 'kotlin.collections.map' call
547
+ // Inline function 'kotlin.collections.mapTo' call
548
+ var destination = ArrayList_init_$Create$_0(tmp1_safe_receiver.length);
549
+ var inductionVariable = 0;
550
+ var last = tmp1_safe_receiver.length;
551
+ while (inductionVariable < last) {
552
+ var item = tmp1_safe_receiver[inductionVariable];
553
+ inductionVariable = inductionVariable + 1 | 0;
554
+ var tmp$ret$0 = item.p1g();
555
+ destination.g(tmp$ret$0);
556
+ }
557
+ tmp = destination;
558
+ }
559
+ return compactArray(tmp);
560
+ };
561
+ }
562
+ function PluginGeneratedSerialDescriptor$_get_typeParameterDescriptors_$ref_jk3pka() {
563
+ return function (p0) {
564
+ return p0.e1h();
565
+ };
566
+ }
567
+ function PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this$0) {
568
+ return function () {
569
+ return hashCodeImpl(this$0, this$0.e1h());
570
+ };
571
+ }
572
+ function PluginGeneratedSerialDescriptor$_get__hashCode_$ref_cmj4vz() {
573
+ return function (p0) {
574
+ return _get__hashCode__tgwhef_0(p0);
575
+ };
576
+ }
577
+ function PluginGeneratedSerialDescriptor(serialName, generatedSerializer, elementsCount) {
578
+ generatedSerializer = generatedSerializer === VOID ? null : generatedSerializer;
579
+ this.c1g_1 = serialName;
580
+ this.d1g_1 = generatedSerializer;
581
+ this.e1g_1 = elementsCount;
582
+ this.f1g_1 = -1;
583
+ var tmp = this;
584
+ var tmp_0 = 0;
585
+ var tmp_1 = this.e1g_1;
586
+ // Inline function 'kotlin.arrayOfNulls' call
587
+ var tmp_2 = Array(tmp_1);
588
+ while (tmp_0 < tmp_1) {
589
+ tmp_2[tmp_0] = '[UNINITIALIZED]';
590
+ tmp_0 = tmp_0 + 1 | 0;
591
+ }
592
+ tmp.g1g_1 = tmp_2;
593
+ var tmp_3 = this;
594
+ // Inline function 'kotlin.arrayOfNulls' call
595
+ var size = this.e1g_1;
596
+ tmp_3.h1g_1 = Array(size);
597
+ this.i1g_1 = null;
598
+ this.j1g_1 = booleanArray(this.e1g_1);
599
+ this.k1g_1 = emptyMap();
600
+ var tmp_4 = this;
601
+ var tmp_5 = LazyThreadSafetyMode_PUBLICATION_getInstance();
602
+ tmp_4.l1g_1 = lazy_0(tmp_5, PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this));
603
+ var tmp_6 = this;
604
+ var tmp_7 = LazyThreadSafetyMode_PUBLICATION_getInstance();
605
+ tmp_6.m1g_1 = lazy_0(tmp_7, PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this));
606
+ var tmp_8 = this;
607
+ var tmp_9 = LazyThreadSafetyMode_PUBLICATION_getInstance();
608
+ tmp_8.n1g_1 = lazy_0(tmp_9, PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this));
609
+ }
610
+ protoOf(PluginGeneratedSerialDescriptor).t1e = function () {
611
+ return this.c1g_1;
612
+ };
613
+ protoOf(PluginGeneratedSerialDescriptor).v1e = function () {
614
+ return this.e1g_1;
615
+ };
616
+ protoOf(PluginGeneratedSerialDescriptor).u1e = function () {
617
+ return CLASS_getInstance();
618
+ };
619
+ protoOf(PluginGeneratedSerialDescriptor).y1f = function () {
620
+ return this.k1g_1.q1();
621
+ };
622
+ protoOf(PluginGeneratedSerialDescriptor).e1h = function () {
623
+ var tmp0 = this.m1g_1;
624
+ var tmp = KProperty1;
625
+ // Inline function 'kotlin.getValue' call
626
+ getPropertyCallableRef('typeParameterDescriptors', 1, tmp, PluginGeneratedSerialDescriptor$_get_typeParameterDescriptors_$ref_jk3pka(), null);
627
+ return tmp0.u();
628
+ };
629
+ protoOf(PluginGeneratedSerialDescriptor).f1h = function (name, isOptional) {
630
+ this.f1g_1 = this.f1g_1 + 1 | 0;
631
+ this.g1g_1[this.f1g_1] = name;
632
+ this.j1g_1[this.f1g_1] = isOptional;
633
+ this.h1g_1[this.f1g_1] = null;
634
+ if (this.f1g_1 === (this.e1g_1 - 1 | 0)) {
635
+ this.k1g_1 = buildIndices(this);
636
+ }
637
+ };
638
+ protoOf(PluginGeneratedSerialDescriptor).o1g = function (name, isOptional, $super) {
639
+ isOptional = isOptional === VOID ? false : isOptional;
640
+ var tmp;
641
+ if ($super === VOID) {
642
+ this.f1h(name, isOptional);
643
+ tmp = Unit_instance;
644
+ } else {
645
+ tmp = $super.f1h.call(this, name, isOptional);
646
+ }
647
+ return tmp;
648
+ };
649
+ protoOf(PluginGeneratedSerialDescriptor).x1e = function (index) {
650
+ return getChecked(_get_childSerializers__7vnyfa(this), index).p1g();
651
+ };
652
+ protoOf(PluginGeneratedSerialDescriptor).w1e = function (index) {
653
+ return getChecked(this.g1g_1, index);
654
+ };
655
+ protoOf(PluginGeneratedSerialDescriptor).equals = function (other) {
656
+ var tmp$ret$0;
657
+ $l$block_5: {
658
+ // Inline function 'kotlinx.serialization.internal.equalsImpl' call
659
+ if (this === other) {
660
+ tmp$ret$0 = true;
661
+ break $l$block_5;
662
+ }
663
+ if (!(other instanceof PluginGeneratedSerialDescriptor)) {
664
+ tmp$ret$0 = false;
665
+ break $l$block_5;
666
+ }
667
+ if (!(this.t1e() === other.t1e())) {
668
+ tmp$ret$0 = false;
669
+ break $l$block_5;
670
+ }
671
+ if (!contentEquals(this.e1h(), other.e1h())) {
672
+ tmp$ret$0 = false;
673
+ break $l$block_5;
674
+ }
675
+ if (!(this.v1e() === other.v1e())) {
676
+ tmp$ret$0 = false;
677
+ break $l$block_5;
678
+ }
679
+ var inductionVariable = 0;
680
+ var last = this.v1e();
681
+ if (inductionVariable < last)
682
+ do {
683
+ var index = inductionVariable;
684
+ inductionVariable = inductionVariable + 1 | 0;
685
+ if (!(this.x1e(index).t1e() === other.x1e(index).t1e())) {
686
+ tmp$ret$0 = false;
687
+ break $l$block_5;
688
+ }
689
+ if (!equals(this.x1e(index).u1e(), other.x1e(index).u1e())) {
690
+ tmp$ret$0 = false;
691
+ break $l$block_5;
692
+ }
693
+ }
694
+ while (inductionVariable < last);
695
+ tmp$ret$0 = true;
696
+ }
697
+ return tmp$ret$0;
698
+ };
699
+ protoOf(PluginGeneratedSerialDescriptor).hashCode = function () {
700
+ return _get__hashCode__tgwhef_0(this);
701
+ };
702
+ protoOf(PluginGeneratedSerialDescriptor).toString = function () {
703
+ return toStringImpl(this);
704
+ };
705
+ function hashCodeImpl(_this__u8e3s4, typeParams) {
706
+ var result = getStringHashCode(_this__u8e3s4.t1e());
707
+ result = imul(31, result) + contentHashCode(typeParams) | 0;
708
+ var elementDescriptors = get_elementDescriptors(_this__u8e3s4);
709
+ // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
710
+ // Inline function 'kotlin.collections.fold' call
711
+ var accumulator = 1;
712
+ var _iterator__ex2g4s = elementDescriptors.i();
713
+ while (_iterator__ex2g4s.j()) {
714
+ var element = _iterator__ex2g4s.k();
715
+ var hash = accumulator;
716
+ var tmp = imul(31, hash);
717
+ // Inline function 'kotlin.hashCode' call
718
+ var tmp0_safe_receiver = element.t1e();
719
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
720
+ accumulator = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
721
+ }
722
+ var namesHash = accumulator;
723
+ // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
724
+ // Inline function 'kotlin.collections.fold' call
725
+ var accumulator_0 = 1;
726
+ var _iterator__ex2g4s_0 = elementDescriptors.i();
727
+ while (_iterator__ex2g4s_0.j()) {
728
+ var element_0 = _iterator__ex2g4s_0.k();
729
+ var hash_0 = accumulator_0;
730
+ var tmp_0 = imul(31, hash_0);
731
+ // Inline function 'kotlin.hashCode' call
732
+ var tmp0_safe_receiver_0 = element_0.u1e();
733
+ var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
734
+ accumulator_0 = tmp_0 + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
735
+ }
736
+ var kindHash = accumulator_0;
737
+ result = imul(31, result) + namesHash | 0;
738
+ result = imul(31, result) + kindHash | 0;
739
+ return result;
740
+ }
741
+ function toStringImpl(_this__u8e3s4) {
742
+ var tmp = until(0, _this__u8e3s4.v1e());
743
+ var tmp_0 = _this__u8e3s4.t1e() + '(';
744
+ return joinToString(tmp, ', ', tmp_0, ')', VOID, VOID, toStringImpl$lambda(_this__u8e3s4));
745
+ }
746
+ function toStringImpl$lambda($this_toStringImpl) {
747
+ return function (i) {
748
+ return $this_toStringImpl.w1e(i) + ': ' + $this_toStringImpl.x1e(i).t1e();
749
+ };
750
+ }
751
+ function get_EMPTY_SERIALIZER_ARRAY() {
752
+ _init_properties_PluginHelperInterfaces_kt__xgvzfp();
753
+ return EMPTY_SERIALIZER_ARRAY;
754
+ }
755
+ var EMPTY_SERIALIZER_ARRAY;
756
+ function GeneratedSerializer() {
757
+ }
758
+ var properties_initialized_PluginHelperInterfaces_kt_ap8in1;
759
+ function _init_properties_PluginHelperInterfaces_kt__xgvzfp() {
760
+ if (!properties_initialized_PluginHelperInterfaces_kt_ap8in1) {
761
+ properties_initialized_PluginHelperInterfaces_kt_ap8in1 = true;
762
+ // Inline function 'kotlin.arrayOf' call
763
+ // Inline function 'kotlin.js.unsafeCast' call
764
+ // Inline function 'kotlin.js.asDynamic' call
765
+ EMPTY_SERIALIZER_ARRAY = [];
766
+ }
767
+ }
768
+ function SerializableWith() {
769
+ }
770
+ function getChecked(_this__u8e3s4, index) {
771
+ if (!(0 <= index ? index <= (_this__u8e3s4.length - 1 | 0) : false))
772
+ throw IndexOutOfBoundsException_init_$Create$('Index ' + index + ' out of bounds ' + get_indices(_this__u8e3s4).toString());
773
+ return _this__u8e3s4[index];
774
+ }
775
+ //region block: exports
776
+ _.$_$ = _.$_$ || {};
777
+ _.$_$.a = createSimpleEnumSerializer;
11
778
  //endregion
12
779
  return _;
13
780
  }));