@flock/wirespec 0.22.0 → 0.22.1

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 (50) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-core.mjs +160 -154
  3. package/arrow-arrow-core.mjs.map +1 -1
  4. package/clikt-clikt-mordant.mjs +80 -80
  5. package/clikt-clikt.mjs +1541 -1541
  6. package/colormath-root-colormath.mjs +441 -441
  7. package/kotlin-kotlin-stdlib.mjs +2223 -1941
  8. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  9. package/kotlin-openapi-bindings.mjs +10254 -10254
  10. package/kotlin-rgxgen.mjs +1808 -1808
  11. package/kotlinx-io-kotlinx-io-core.mjs +419 -419
  12. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1866 -1866
  13. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1601 -1586
  14. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  15. package/mordant-mordant.mjs +1326 -1318
  16. package/mordant-mordant.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/wirespec-src-compiler-core.mjs +6339 -6128
  19. package/wirespec-src-compiler-core.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-java.mjs +181 -181
  21. package/wirespec-src-compiler-emitters-kotlin.mjs +143 -143
  22. package/wirespec-src-compiler-emitters-python.mjs +179 -179
  23. package/wirespec-src-compiler-emitters-rust.mjs +423 -423
  24. package/wirespec-src-compiler-emitters-scala.mjs +176 -176
  25. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-typescript.mjs +254 -255
  27. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-wirespec.mjs +362 -164
  29. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  30. package/wirespec-src-compiler-lib.mjs +873 -403
  31. package/wirespec-src-compiler-lib.mjs.map +1 -1
  32. package/wirespec-src-converter-asyncapi.mjs +5382 -0
  33. package/wirespec-src-converter-asyncapi.mjs.map +1 -0
  34. package/wirespec-src-converter-avro.mjs +1075 -508
  35. package/wirespec-src-converter-avro.mjs.map +1 -1
  36. package/wirespec-src-converter-common.mjs +20 -20
  37. package/wirespec-src-converter-common.mjs.map +1 -1
  38. package/wirespec-src-converter-graphql.mjs +5691 -0
  39. package/wirespec-src-converter-graphql.mjs.map +1 -0
  40. package/wirespec-src-converter-openapi.mjs +777 -768
  41. package/wirespec-src-converter-openapi.mjs.map +1 -1
  42. package/wirespec-src-ide-lsp.mjs +1395 -1395
  43. package/wirespec-src-plugin-arguments.mjs +204 -184
  44. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  45. package/wirespec-src-plugin-cli.mjs +111 -108
  46. package/wirespec-src-plugin-cli.mjs.map +1 -1
  47. package/wirespec-src-plugin-npm.d.mts +198 -24
  48. package/wirespec-src-plugin-npm.mjs +144 -49
  49. package/wirespec-src-plugin-npm.mjs.map +1 -1
  50. package/wirespec-src-tools-generator.mjs +35 -35
@@ -14,19 +14,22 @@ import {
14
14
  DefinitionIdentifiervfasqdb33qef as DefinitionIdentifier,
15
15
  FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
16
16
  Field2nwjpxu9j2svq as Field,
17
- Shape6h3qnek4ao2r as Shape,
17
+ Shape2rkbve9uak0g8 as Shape,
18
18
  Type12n1gx16iqtcu as Type,
19
19
  Enum3l2iuc342kle6 as Enum,
20
20
  Unionccsavx6nrdr2 as Union,
21
+ _Comment___get_value__impl__8r3pla1b4ywrwtg22m7 as _Comment___get_value__impl__8r3pla,
22
+ Comment3jy4x02mtqi9b as Comment,
23
+ get_fields1vhfmr41isbcc as get_fields,
21
24
  NullValue_instance1ek1wzdv4iv3a as NullValue_instance,
22
- FileExtension_JSON_getInstancel2q389n0axuc as FileExtension_JSON_getInstance,
23
- Emitted12h24rpo4uifw as Emitted,
24
25
  Anyv7qdq63z63rc as Any,
25
- Refined1lkzc0dg6wey7 as Refined,
26
26
  Bytes3eoc50vgt1uem as Bytes,
27
27
  Boolean1fpfi8m5jt3fg as Boolean_0,
28
- get_fields25a89ltbcl7gz as get_fields,
28
+ FileExtension_AvroIdl_getInstancecpnmzljs3b85 as FileExtension_AvroIdl_getInstance,
29
+ Emitted12h24rpo4uifw as Emitted,
30
+ Refined1lkzc0dg6wey7 as Refined,
29
31
  Emitterpslsvv25okcl as Emitter,
32
+ FileExtension_JSON_getInstancel2q389n0axuc as FileExtension_JSON_getInstance,
30
33
  Channel2fhxi4a4pwb64 as Channel,
31
34
  Module3a9i9fqinyump as Module,
32
35
  Root195zt6zclzd3o as Root,
@@ -53,7 +56,18 @@ import {
53
56
  protoOf180f3jzyo7rfj as protoOf,
54
57
  VOID3gxj6tk5isa35 as VOID,
55
58
  initMetadataForObject1cxne3s9w65el as initMetadataForObject,
59
+ _Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
60
+ substringAfterLast3r0t0my8cpqhk as substringAfterLast,
61
+ substringBeforeLastqh7oeuvefdek as substringBeforeLast,
62
+ isBlank1dvkhjjvox3p0 as isBlank,
63
+ charSequenceLength3278n89t01tmv as charSequenceLength,
64
+ charCodeAt1yspne1d8erbm as charCodeAt,
65
+ uppercaseChar6lahngw3wvwg as uppercaseChar,
66
+ substring3saq8ornu0luv as substring,
67
+ toString22rbkbhdb5cl2 as toString_0,
68
+ joinToString1cxrrlmo0chqs as joinToString,
56
69
  equals2au1ep9vhcato as equals,
70
+ lines3g90sq0zeq43v as lines,
57
71
  KtList3hktaavzmj137 as KtList,
58
72
  getKClass3t8tygqu4lcxf as getKClass,
59
73
  arrayOf1akklvh2at202 as arrayOf,
@@ -67,7 +81,7 @@ import {
67
81
  objectCreate1ve4bgxiu4x98 as objectCreate,
68
82
  LazyThreadSafetyMode_PUBLICATION_getInstance3qslfm3vqg6y3 as LazyThreadSafetyMode_PUBLICATION_getInstance,
69
83
  lazy1261dae0bgscp as lazy,
70
- toString30pk9tzaqopn as toString_0,
84
+ toString30pk9tzaqopn as toString_1,
71
85
  getStringHashCode26igk1bx568vk as getStringHashCode,
72
86
  hashCodeq5arwsb9dgti as hashCode,
73
87
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
@@ -76,6 +90,11 @@ import {
76
90
  initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
77
91
  getValue48kllevslyh6 as getValue,
78
92
  StringCompanionObject_instance1v0ht40fz3tq0 as StringCompanionObject_instance,
93
+ mapCapacity1h45rc3eh9p2l as mapCapacity,
94
+ coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
95
+ LinkedHashMap_init_$Create$1gzy1x4a46gd4 as LinkedHashMap_init_$Create$,
96
+ emptySetcxexqki71qfa as emptySet,
97
+ plus18eogev54fmsa as plus_1,
79
98
  } from './kotlin-kotlin-stdlib.mjs';
80
99
  import {
81
100
  toDefaultValue3275mygjoueae as toDefaultValue,
@@ -83,9 +102,9 @@ import {
83
102
  withValidEnumDefaults1a27sgh5tk9q4 as withValidEnumDefaults,
84
103
  } from './wirespec-src-converter-common.mjs';
85
104
  import {
86
- NonEmptyList__toList_impl_t5xcy266xhxpenbpfx as NonEmptyList__toList_impl_t5xcy2,
87
105
  _NonEmptyList___get_all__impl__pmf5092xnz0i2teaa6d as _NonEmptyList___get_all__impl__pmf509,
88
106
  _NonEmptyList___init__impl__fxd0xprpnd63likgzm as _NonEmptyList___init__impl__fxd0xp,
107
+ NonEmptyList__toList_impl_t5xcy266xhxpenbpfx as NonEmptyList__toList_impl_t5xcy2,
89
108
  toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
90
109
  NonEmptyList3ak25ihy2gcvs as NonEmptyList,
91
110
  nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
@@ -130,6 +149,7 @@ var imul = Math.imul;
130
149
  //endregion
131
150
  //region block: pre-declaration
132
151
  initMetadataForObject(AvroConverter, 'AvroConverter');
152
+ initMetadataForObject(AvroIdlEmitter, 'AvroIdlEmitter', VOID, VOID, [Emitter]);
133
153
  initMetadataForObject(AvroJsonEmitter, 'AvroJsonEmitter', VOID, VOID, [Emitter]);
134
154
  initMetadataForObject(AvroJsonParser, 'AvroJsonParser');
135
155
  initMetadataForCompanion(Companion);
@@ -162,13 +182,14 @@ initMetadataForClass(LogicalType, 'LogicalType', VOID, VOID, [Type_0], VOID, VOI
162
182
  initMetadataForObject(FieldSerializer, 'FieldSerializer', VOID, VOID, [KSerializer]);
163
183
  initMetadataForObject(TypeListSerializer, 'TypeListSerializer', VOID, VOID, [KSerializer]);
164
184
  initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer]);
185
+ initMetadataForClass(Ordering, 'Ordering', Ordering);
165
186
  //endregion
166
187
  function isNullable($this, $receiver) {
167
- return $receiver.v1($this.c48_1);
188
+ return $receiver.i1($this.y48_1);
168
189
  }
169
190
  function toPrimitive($this, $receiver) {
170
191
  var tmp;
171
- switch ($receiver.d48_1) {
192
+ switch ($receiver.z48_1) {
172
193
  case 'boolean':
173
194
  tmp = Boolean_instance;
174
195
  break;
@@ -193,7 +214,7 @@ function toPrimitive($this, $receiver) {
193
214
  default:
194
215
  // Inline function 'kotlin.TODO' call
195
216
 
196
- var reason = 'primitive not mapped ' + $receiver.d48_1;
217
+ var reason = 'primitive not mapped ' + $receiver.z48_1;
197
218
  throw new NotImplementedError('An operation is not implemented: ' + reason);
198
219
  }
199
220
  return tmp;
@@ -201,7 +222,7 @@ function toPrimitive($this, $receiver) {
201
222
  function toReference($this, $receiver, isNullable) {
202
223
  var tmp;
203
224
  if ($receiver instanceof SimpleType) {
204
- switch ($receiver.d48_1) {
225
+ switch ($receiver.z48_1) {
205
226
  case 'null':
206
227
  tmp = new Unit(isNullable);
207
228
  break;
@@ -215,27 +236,27 @@ function toReference($this, $receiver, isNullable) {
215
236
  tmp = new Primitive(toPrimitive($this, $receiver), isNullable);
216
237
  break;
217
238
  default:
218
- tmp = new Custom($receiver.d48_1, isNullable);
239
+ tmp = new Custom($receiver.z48_1, isNullable);
219
240
  break;
220
241
  }
221
242
  } else {
222
243
  if ($receiver instanceof ArrayType) {
223
- tmp = new Iterable(toReference($this, $receiver.w48_1, false), isNullable);
244
+ tmp = new Iterable(toReference($this, $receiver.s49_1, false), isNullable);
224
245
  } else {
225
246
  if ($receiver instanceof RecordType) {
226
- tmp = new Custom($receiver.r48_1, isNullable);
247
+ tmp = new Custom($receiver.n49_1, isNullable);
227
248
  } else {
228
249
  if ($receiver instanceof EnumType) {
229
- tmp = new Custom($receiver.n48_1, isNullable);
250
+ tmp = new Custom($receiver.j49_1, isNullable);
230
251
  } else {
231
252
  if ($receiver instanceof LogicalType) {
232
- tmp = toReference($this, new SimpleType($receiver.i48_1), isNullable);
253
+ tmp = toReference($this, new SimpleType($receiver.e49_1), isNullable);
233
254
  } else {
234
255
  if ($receiver instanceof MapType) {
235
- tmp = new Dict(toReference($this, $receiver.h48_1, false), isNullable);
256
+ tmp = new Dict(toReference($this, $receiver.d49_1, false), isNullable);
236
257
  } else {
237
258
  if ($receiver instanceof UnionType) {
238
- tmp = new Custom($receiver.e48_1, isNullable);
259
+ tmp = new Custom($receiver.a49_1, isNullable);
239
260
  } else {
240
261
  noWhenBranchMatchedException();
241
262
  }
@@ -248,7 +269,7 @@ function toReference($this, $receiver, isNullable) {
248
269
  return tmp;
249
270
  }
250
271
  function toReference_0($this, $receiver) {
251
- var list = minus($receiver, $this.c48_1);
272
+ var list = minus($receiver, $this.y48_1);
252
273
  var tmp;
253
274
  if (list.b1() === 1) {
254
275
  tmp = toReference($this, first(list), isNullable($this, $receiver));
@@ -289,20 +310,20 @@ function toReference_0($this, $receiver) {
289
310
  }
290
311
  function toType($this, $receiver) {
291
312
  var tmp0_annotations = emptyList();
292
- var tmp1_identifier = new DefinitionIdentifier($receiver.r48_1);
313
+ var tmp1_identifier = new DefinitionIdentifier($receiver.n49_1);
293
314
  var tmp2_extends = emptyList();
294
315
  // Inline function 'kotlin.collections.map' call
295
- var this_0 = $receiver.t48_1;
316
+ var this_0 = $receiver.p49_1;
296
317
  // Inline function 'kotlin.collections.mapTo' call
297
318
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
298
319
  var _iterator__ex2g4s = this_0.t();
299
320
  while (_iterator__ex2g4s.u()) {
300
321
  var item = _iterator__ex2g4s.v();
301
322
  // Inline function 'kotlin.let' call
302
- var reference = toReference_0(AvroConverter_getInstance(), item.y48_1);
303
- var tmp1_identifier_0 = new FieldIdentifier(item.x48_1);
323
+ var reference = toReference_0(AvroConverter_getInstance(), item.u49_1);
324
+ var tmp1_identifier_0 = new FieldIdentifier(item.t49_1);
304
325
  var tmp2_annotations = emptyList();
305
- var tmp0_safe_receiver = item.a49_1;
326
+ var tmp0_safe_receiver = item.w49_1;
306
327
  var tmp3_defaultValue = tmp0_safe_receiver == null ? null : toDefaultValue(tmp0_safe_receiver, reference);
307
328
  var tmp$ret$2 = new Field(tmp2_annotations, tmp1_identifier_0, reference, tmp3_defaultValue);
308
329
  destination.x(tmp$ret$2);
@@ -311,13 +332,13 @@ function toType($this, $receiver) {
311
332
  return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
312
333
  }
313
334
  function toEnum($this, $receiver) {
314
- return new Enum(null, emptyList(), new DefinitionIdentifier($receiver.n48_1), toSet($receiver.p48_1));
335
+ return new Enum(null, emptyList(), new DefinitionIdentifier($receiver.j49_1), toSet($receiver.l49_1));
315
336
  }
316
337
  function toUnion($this, $receiver, name) {
317
338
  var tmp = emptyList();
318
339
  var tmp_0 = new DefinitionIdentifier(name);
319
340
  // Inline function 'kotlin.collections.map' call
320
- var this_0 = $receiver.f48_1;
341
+ var this_0 = $receiver.b49_1;
321
342
  // Inline function 'kotlin.collections.mapTo' call
322
343
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
323
344
  var _iterator__ex2g4s = this_0.t();
@@ -330,9 +351,9 @@ function toUnion($this, $receiver, name) {
330
351
  }
331
352
  function AvroConverter() {
332
353
  AvroConverter_instance = this;
333
- this.c48_1 = new SimpleType('null');
354
+ this.y48_1 = new SimpleType('null');
334
355
  }
335
- protoOf(AvroConverter).b49 = function (_this__u8e3s4, name) {
356
+ protoOf(AvroConverter).x49 = function (_this__u8e3s4, name) {
336
357
  var tmp;
337
358
  if (_this__u8e3s4 instanceof SimpleType) {
338
359
  tmp = emptyList();
@@ -340,20 +361,20 @@ protoOf(AvroConverter).b49 = function (_this__u8e3s4, name) {
340
361
  if (_this__u8e3s4 instanceof RecordType) {
341
362
  var tmp_0 = listOf(toType(this, _this__u8e3s4));
342
363
  // Inline function 'kotlin.collections.flatMap' call
343
- var tmp0 = _this__u8e3s4.t48_1;
364
+ var tmp0 = _this__u8e3s4.p49_1;
344
365
  // Inline function 'kotlin.collections.flatMapTo' call
345
366
  var destination = ArrayList_init_$Create$_0();
346
367
  var _iterator__ex2g4s = tmp0.t();
347
368
  while (_iterator__ex2g4s.u()) {
348
369
  var element = _iterator__ex2g4s.v();
349
370
  // Inline function 'kotlin.collections.flatMap' call
350
- var tmp0_0 = element.y48_1;
371
+ var tmp0_0 = element.u49_1;
351
372
  // Inline function 'kotlin.collections.flatMapTo' call
352
373
  var destination_0 = ArrayList_init_$Create$_0();
353
374
  var _iterator__ex2g4s_0 = tmp0_0.t();
354
375
  while (_iterator__ex2g4s_0.u()) {
355
376
  var element_0 = _iterator__ex2g4s_0.v();
356
- var list = AvroConverter_getInstance().b49(element_0, name);
377
+ var list = AvroConverter_getInstance().x49(element_0, name);
357
378
  addAll(destination_0, list);
358
379
  }
359
380
  var list_0 = destination_0;
@@ -362,7 +383,7 @@ protoOf(AvroConverter).b49 = function (_this__u8e3s4, name) {
362
383
  tmp = plus(tmp_0, destination);
363
384
  } else {
364
385
  if (_this__u8e3s4 instanceof ArrayType) {
365
- tmp = this.b49(_this__u8e3s4.w48_1, name);
386
+ tmp = this.x49(_this__u8e3s4.s49_1, name);
366
387
  } else {
367
388
  if (_this__u8e3s4 instanceof EnumType) {
368
389
  tmp = listOf(toEnum(this, _this__u8e3s4));
@@ -371,7 +392,7 @@ protoOf(AvroConverter).b49 = function (_this__u8e3s4, name) {
371
392
  tmp = emptyList();
372
393
  } else {
373
394
  if (_this__u8e3s4 instanceof MapType) {
374
- tmp = this.b49(_this__u8e3s4.h48_1, name);
395
+ tmp = this.x49(_this__u8e3s4.d49_1, name);
375
396
  } else {
376
397
  if (_this__u8e3s4 instanceof UnionType) {
377
398
  tmp = listOf(toUnion(this, _this__u8e3s4, name));
@@ -386,9 +407,9 @@ protoOf(AvroConverter).b49 = function (_this__u8e3s4, name) {
386
407
  }
387
408
  return tmp;
388
409
  };
389
- protoOf(AvroConverter).c49 = function (_this__u8e3s4, name, $super) {
410
+ protoOf(AvroConverter).y49 = function (_this__u8e3s4, name, $super) {
390
411
  name = name === VOID ? '' : name;
391
- return $super === VOID ? this.b49(_this__u8e3s4, name) : $super.b49.call(this, _this__u8e3s4, name);
412
+ return $super === VOID ? this.x49(_this__u8e3s4, name) : $super.x49.call(this, _this__u8e3s4, name);
392
413
  };
393
414
  var AvroConverter_instance;
394
415
  function AvroConverter_getInstance() {
@@ -396,19 +417,359 @@ function AvroConverter_getInstance() {
396
417
  new AvroConverter();
397
418
  return AvroConverter_instance;
398
419
  }
420
+ function deriveProtocolName($this, module_0) {
421
+ // Inline function 'kotlin.takeIf' call
422
+ var this_0 = substringBeforeLast(substringAfterLast(module_0.fp_1.io_1, _Char___init__impl__6a9atx(47)), _Char___init__impl__6a9atx(46));
423
+ var tmp;
424
+ var tmp_0;
425
+ // Inline function 'kotlin.text.isNotBlank' call
426
+ if (!isBlank(this_0)) {
427
+ tmp_0 = !(this_0 === 'unknown');
428
+ } else {
429
+ tmp_0 = false;
430
+ }
431
+ if (tmp_0) {
432
+ tmp = this_0;
433
+ } else {
434
+ tmp = null;
435
+ }
436
+ var tmp0_safe_receiver = tmp;
437
+ var tmp_1;
438
+ if (tmp0_safe_receiver == null) {
439
+ tmp_1 = null;
440
+ } else {
441
+ // Inline function 'kotlin.let' call
442
+ // Inline function 'kotlin.text.replaceFirstChar' call
443
+ var tmp_2;
444
+ // Inline function 'kotlin.text.isNotEmpty' call
445
+ if (charSequenceLength(tmp0_safe_receiver) > 0) {
446
+ var c = charCodeAt(tmp0_safe_receiver, 0);
447
+ var tmp0 = uppercaseChar(c);
448
+ // Inline function 'kotlin.text.plus' call
449
+ var other = substring(tmp0_safe_receiver, 1);
450
+ tmp_2 = toString_0(tmp0) + other;
451
+ } else {
452
+ tmp_2 = tmp0_safe_receiver;
453
+ }
454
+ tmp_1 = tmp_2 + 'Protocol';
455
+ }
456
+ var tmp1_elvis_lhs = tmp_1;
457
+ return tmp1_elvis_lhs == null ? 'WirespecProtocol' : tmp1_elvis_lhs;
458
+ }
459
+ function renderRecord($this, $receiver, type) {
460
+ var tmp0_safe_receiver = type.hp_1;
461
+ var tmp;
462
+ var tmp_0 = tmp0_safe_receiver;
463
+ if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
464
+ tmp = null;
465
+ } else {
466
+ tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
467
+ }
468
+ var tmp1_safe_receiver = tmp;
469
+ var tmp_1;
470
+ if (tmp1_safe_receiver == null) {
471
+ tmp_1 = null;
472
+ } else {
473
+ // Inline function 'kotlin.let' call
474
+ tmp_1 = renderDoc(AvroIdlEmitter_getInstance(), tmp1_safe_receiver, ' ');
475
+ }
476
+ // Inline function 'kotlin.text.orEmpty' call
477
+ var tmp0_elvis_lhs = tmp_1;
478
+ var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
479
+ var tmp_2 = get_fields(type.kp_1);
480
+ var fields = joinToString(tmp_2, '', VOID, VOID, VOID, VOID, AvroIdlEmitter$renderRecord$lambda($receiver));
481
+ return doc + ' record ' + type.jp_1.o1() + ' {\n' + fields + ' }\n';
482
+ }
483
+ function renderFieldType($this, $receiver, field) {
484
+ return field.op_1.nt() && isNonNull($this, field.pp_1) ? 'union { ' + renderReference($this, $receiver, field.op_1.s19(false)) + ', null }' : renderReference($this, $receiver, field.op_1);
485
+ }
399
486
  function isNonNull($this, $receiver) {
400
487
  return !($receiver == null) && !equals($receiver, NullValue_instance);
401
488
  }
489
+ function renderDefault($this, default_0) {
490
+ var tmp;
491
+ if (default_0 == null) {
492
+ tmp = null;
493
+ } else {
494
+ // Inline function 'kotlin.let' call
495
+ tmp = ' = ' + toString(toJsonElement(default_0));
496
+ }
497
+ // Inline function 'kotlin.text.orEmpty' call
498
+ var tmp0_elvis_lhs = tmp;
499
+ return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
500
+ }
501
+ function renderEnum($this, enum_0) {
502
+ var tmp0_safe_receiver = enum_0.ns_1;
503
+ var tmp;
504
+ var tmp_0 = tmp0_safe_receiver;
505
+ if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
506
+ tmp = null;
507
+ } else {
508
+ tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
509
+ }
510
+ var tmp1_safe_receiver = tmp;
511
+ var tmp_1;
512
+ if (tmp1_safe_receiver == null) {
513
+ tmp_1 = null;
514
+ } else {
515
+ // Inline function 'kotlin.let' call
516
+ tmp_1 = renderDoc(AvroIdlEmitter_getInstance(), tmp1_safe_receiver, ' ');
517
+ }
518
+ // Inline function 'kotlin.text.orEmpty' call
519
+ var tmp0_elvis_lhs = tmp_1;
520
+ var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
521
+ var symbols = joinToString(enum_0.qs_1, ', ');
522
+ return doc + ' enum ' + enum_0.ps_1.o1() + ' {\n ' + symbols + '\n }\n';
523
+ }
524
+ function renderUnion($this, $receiver, union) {
525
+ var tmp0_safe_receiver = union.yq_1;
526
+ var tmp;
527
+ var tmp_0 = tmp0_safe_receiver;
528
+ if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
529
+ tmp = null;
530
+ } else {
531
+ tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
532
+ }
533
+ var tmp1_safe_receiver = tmp;
534
+ var tmp_1;
535
+ if (tmp1_safe_receiver == null) {
536
+ tmp_1 = null;
537
+ } else {
538
+ // Inline function 'kotlin.let' call
539
+ tmp_1 = renderDoc(AvroIdlEmitter_getInstance(), tmp1_safe_receiver, ' ');
540
+ }
541
+ // Inline function 'kotlin.text.orEmpty' call
542
+ var tmp0_elvis_lhs = tmp_1;
543
+ var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
544
+ var members = joinToString(union.br_1, ', ', VOID, VOID, VOID, VOID, AvroIdlEmitter$renderUnion$lambda($receiver));
545
+ return doc + ' record ' + union.ar_1.o1() + ' {\n union { ' + members + ' } value;\n }\n';
546
+ }
547
+ function renderRefined($this, refined) {
548
+ var tmp0_safe_receiver = refined.is_1;
549
+ var tmp;
550
+ var tmp_0 = tmp0_safe_receiver;
551
+ if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
552
+ tmp = null;
553
+ } else {
554
+ tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
555
+ }
556
+ var tmp1_safe_receiver = tmp;
557
+ var tmp_1;
558
+ if (tmp1_safe_receiver == null) {
559
+ tmp_1 = null;
560
+ } else {
561
+ // Inline function 'kotlin.let' call
562
+ tmp_1 = renderDoc(AvroIdlEmitter_getInstance(), tmp1_safe_receiver, ' ');
563
+ }
564
+ // Inline function 'kotlin.text.orEmpty' call
565
+ var tmp0_elvis_lhs = tmp_1;
566
+ var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
567
+ return doc + ' // refined ' + refined.ks_1.o1() + ' = ' + renderPrimitive($this, refined.ls_1.s18_1) + '\n';
568
+ }
569
+ function renderReference($this, $receiver, reference) {
570
+ var tmp;
571
+ if (reference instanceof Primitive) {
572
+ tmp = wrapNullable($this, renderPrimitive($this, reference.s18_1), reference.t18_1);
573
+ } else {
574
+ if (reference instanceof Custom) {
575
+ var tmp1_safe_receiver = findRefined($receiver, reference.q18_1);
576
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ls_1;
577
+ var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.s18_1;
578
+ var tmp_0;
579
+ if (tmp3_safe_receiver == null) {
580
+ tmp_0 = null;
581
+ } else {
582
+ // Inline function 'kotlin.let' call
583
+ tmp_0 = renderPrimitive($this, tmp3_safe_receiver);
584
+ }
585
+ var tmp4_elvis_lhs = tmp_0;
586
+ tmp = wrapNullable($this, tmp4_elvis_lhs == null ? reference.q18_1 : tmp4_elvis_lhs, reference.r18_1);
587
+ } else {
588
+ if (reference instanceof Iterable) {
589
+ tmp = wrapNullable($this, 'array<' + renderReference($this, $receiver, reference.xp_1.s19(false)) + '>', reference.yp_1);
590
+ } else {
591
+ if (reference instanceof Dict) {
592
+ tmp = wrapNullable($this, 'map<' + renderReference($this, $receiver, reference.aq_1.s19(false)) + '>', reference.bq_1);
593
+ } else {
594
+ if (reference instanceof Any) {
595
+ tmp = wrapNullable($this, 'bytes', reference.i1d_1);
596
+ } else {
597
+ if (reference instanceof Unit) {
598
+ tmp = 'null';
599
+ } else {
600
+ noWhenBranchMatchedException();
601
+ }
602
+ }
603
+ }
604
+ }
605
+ }
606
+ }
607
+ return tmp;
608
+ }
609
+ function renderPrimitive($this, type) {
610
+ var tmp;
611
+ if (type instanceof String_0) {
612
+ tmp = 'string';
613
+ } else {
614
+ if (type instanceof Boolean_0) {
615
+ tmp = 'boolean';
616
+ } else {
617
+ if (type instanceof Bytes) {
618
+ tmp = 'bytes';
619
+ } else {
620
+ if (type instanceof Integer) {
621
+ var tmp_0;
622
+ switch (type.a19_1.e3_1) {
623
+ case 0:
624
+ tmp_0 = 'int';
625
+ break;
626
+ case 1:
627
+ tmp_0 = 'long';
628
+ break;
629
+ default:
630
+ noWhenBranchMatchedException();
631
+ break;
632
+ }
633
+ tmp = tmp_0;
634
+ } else {
635
+ if (type instanceof Number_0) {
636
+ var tmp_1;
637
+ switch (type.v18_1.e3_1) {
638
+ case 0:
639
+ tmp_1 = 'float';
640
+ break;
641
+ case 1:
642
+ tmp_1 = 'double';
643
+ break;
644
+ default:
645
+ noWhenBranchMatchedException();
646
+ break;
647
+ }
648
+ tmp = tmp_1;
649
+ } else {
650
+ noWhenBranchMatchedException();
651
+ }
652
+ }
653
+ }
654
+ }
655
+ }
656
+ return tmp;
657
+ }
658
+ function wrapNullable($this, rendered, isNullable) {
659
+ return isNullable ? 'union { null, ' + rendered + ' }' : rendered;
660
+ }
661
+ function renderDoc($this, value, indent) {
662
+ var lines_0 = lines(value);
663
+ var tmp;
664
+ if (lines_0.b1() === 1) {
665
+ tmp = indent + '/** ' + first(lines_0) + ' */\n';
666
+ } else {
667
+ var body = joinToString(lines_0, '', VOID, VOID, VOID, VOID, AvroIdlEmitter$renderDoc$lambda(indent));
668
+ tmp = indent + '/**\n' + body + indent + ' */\n';
669
+ }
670
+ return tmp;
671
+ }
672
+ function AvroIdlEmitter$renderRecord$lambda($this_renderRecord) {
673
+ return function (field) {
674
+ return ' ' + renderFieldType(AvroIdlEmitter_getInstance(), $this_renderRecord, field) + ' ' + field.np_1.o1() + renderDefault(AvroIdlEmitter_getInstance(), field.pp_1) + ';\n';
675
+ };
676
+ }
677
+ function AvroIdlEmitter$renderUnion$lambda($this_renderUnion) {
678
+ return function (it) {
679
+ return renderReference(AvroIdlEmitter_getInstance(), $this_renderUnion, it);
680
+ };
681
+ }
682
+ function AvroIdlEmitter$renderDoc$lambda($indent) {
683
+ return function (it) {
684
+ return $indent + ' * ' + it + '\n';
685
+ };
686
+ }
687
+ function AvroIdlEmitter() {
688
+ AvroIdlEmitter_instance = this;
689
+ this.z49_1 = FileExtension_AvroIdl_getInstance();
690
+ this.a4a_1 = true;
691
+ this.b4a_1 = ' ';
692
+ this.c4a_1 = 'unknown';
693
+ }
694
+ protoOf(AvroIdlEmitter).vp = function () {
695
+ return this.z49_1;
696
+ };
697
+ protoOf(AvroIdlEmitter).up = function () {
698
+ return this.a4a_1;
699
+ };
700
+ protoOf(AvroIdlEmitter).to = function (ast, logger) {
701
+ // Inline function 'arrow.core.NonEmptyList.map' call
702
+ var this_0 = ast.ep_1;
703
+ // Inline function 'kotlin.collections.map' call
704
+ var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
705
+ // Inline function 'kotlin.collections.mapTo' call
706
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
707
+ var _iterator__ex2g4s = this_1.t();
708
+ while (_iterator__ex2g4s.u()) {
709
+ var item = _iterator__ex2g4s.v();
710
+ logger.zr('Emitting Avro IDL from ' + item.fp_1.io_1);
711
+ var tmp$ret$3 = new Emitted('schema.avdl', AvroIdlEmitter_getInstance().d4a(item, deriveProtocolName(AvroIdlEmitter_getInstance(), item)));
712
+ destination.x(tmp$ret$3);
713
+ }
714
+ return _NonEmptyList___init__impl__fxd0xp(destination);
715
+ };
716
+ protoOf(AvroIdlEmitter).d4a = function (module_0, protocolName) {
717
+ // Inline function 'kotlin.collections.mapNotNull' call
718
+ var tmp0 = inDependencyOrder(module_0);
719
+ // Inline function 'kotlin.collections.mapNotNullTo' call
720
+ var destination = ArrayList_init_$Create$_0();
721
+ // Inline function 'kotlin.collections.forEach' call
722
+ var _iterator__ex2g4s = tmp0.t();
723
+ while (_iterator__ex2g4s.u()) {
724
+ var element = _iterator__ex2g4s.v();
725
+ var tmp;
726
+ if (element instanceof Type) {
727
+ tmp = renderRecord(AvroIdlEmitter_getInstance(), module_0, element);
728
+ } else {
729
+ if (element instanceof Enum) {
730
+ tmp = renderEnum(AvroIdlEmitter_getInstance(), element);
731
+ } else {
732
+ if (element instanceof Union) {
733
+ tmp = renderUnion(AvroIdlEmitter_getInstance(), module_0, element);
734
+ } else {
735
+ if (element instanceof Refined) {
736
+ tmp = renderRefined(AvroIdlEmitter_getInstance(), element);
737
+ } else {
738
+ tmp = null;
739
+ }
740
+ }
741
+ }
742
+ }
743
+ var tmp0_safe_receiver = tmp;
744
+ if (tmp0_safe_receiver == null)
745
+ null;
746
+ else {
747
+ // Inline function 'kotlin.let' call
748
+ destination.x(tmp0_safe_receiver);
749
+ }
750
+ }
751
+ var body = joinToString(destination, '\n');
752
+ return 'protocol ' + protocolName + ' {\n' + body + '}\n';
753
+ };
754
+ var AvroIdlEmitter_instance;
755
+ function AvroIdlEmitter_getInstance() {
756
+ if (AvroIdlEmitter_instance == null)
757
+ new AvroIdlEmitter();
758
+ return AvroIdlEmitter_instance;
759
+ }
760
+ function isNonNull_0($this, $receiver) {
761
+ return !($receiver == null) && !equals($receiver, NullValue_instance);
762
+ }
402
763
  function findType($this, $receiver, name) {
403
764
  // Inline function 'kotlin.collections.find' call
404
- var tmp0 = NonEmptyList__toList_impl_t5xcy2($receiver.zo_1);
765
+ var tmp0 = NonEmptyList__toList_impl_t5xcy2($receiver.gp_1);
405
766
  var tmp$ret$1;
406
767
  $l$block: {
407
768
  // Inline function 'kotlin.collections.firstOrNull' call
408
769
  var _iterator__ex2g4s = tmp0.t();
409
770
  while (_iterator__ex2g4s.u()) {
410
771
  var element = _iterator__ex2g4s.v();
411
- if (element.tr().m1() === name) {
772
+ if (element.cs().o1() === name) {
412
773
  tmp$ret$1 = element;
413
774
  break $l$block;
414
775
  }
@@ -419,18 +780,18 @@ function findType($this, $receiver, name) {
419
780
  }
420
781
  function AvroJsonEmitter() {
421
782
  AvroJsonEmitter_instance = this;
422
- this.d49_1 = FileExtension_JSON_getInstance();
423
- this.e49_1 = true;
783
+ this.e4a_1 = FileExtension_JSON_getInstance();
784
+ this.f4a_1 = true;
424
785
  }
425
- protoOf(AvroJsonEmitter).op = function () {
426
- return this.d49_1;
786
+ protoOf(AvroJsonEmitter).vp = function () {
787
+ return this.e4a_1;
427
788
  };
428
- protoOf(AvroJsonEmitter).np = function () {
429
- return this.e49_1;
789
+ protoOf(AvroJsonEmitter).up = function () {
790
+ return this.f4a_1;
430
791
  };
431
- protoOf(AvroJsonEmitter).mo = function (ast, logger) {
792
+ protoOf(AvroJsonEmitter).to = function (ast, logger) {
432
793
  // Inline function 'arrow.core.NonEmptyList.map' call
433
- var this_0 = ast.xo_1;
794
+ var this_0 = ast.ep_1;
434
795
  // Inline function 'kotlin.collections.map' call
435
796
  var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
436
797
  // Inline function 'kotlin.collections.mapTo' call
@@ -438,8 +799,8 @@ protoOf(AvroJsonEmitter).mo = function (ast, logger) {
438
799
  var _iterator__ex2g4s = this_1.t();
439
800
  while (_iterator__ex2g4s.u()) {
440
801
  var item = _iterator__ex2g4s.v();
441
- logger.qr('Emitting Nodes from ' + item.yo_1.bo_1 + ' ');
442
- var tmp$ret$3 = AvroJsonEmitter_getInstance().f49(item);
802
+ logger.zr('Emitting Nodes from ' + item.fp_1.io_1 + ' ');
803
+ var tmp$ret$3 = AvroJsonEmitter_getInstance().g4a(item);
443
804
  destination.x(tmp$ret$3);
444
805
  }
445
806
  // Inline function 'arrow.core.NonEmptyList.map' call
@@ -454,11 +815,11 @@ protoOf(AvroJsonEmitter).mo = function (ast, logger) {
454
815
  // Inline function 'kotlinx.serialization.encodeToString' call
455
816
  var this_4 = Default_getInstance();
456
817
  // Inline function 'kotlinx.serialization.serializer' call
457
- var this_5 = this_4.c25();
818
+ var this_5 = this_4.x25();
458
819
  // Inline function 'kotlinx.serialization.internal.cast' call
459
820
  var this_6 = serializer(this_5, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
460
821
  var tmp$ret$9 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
461
- var tmp$ret$7 = this_4.h2m(tmp$ret$9, item_0);
822
+ var tmp$ret$7 = this_4.c2n(tmp$ret$9, item_0);
462
823
  destination_0.x(tmp$ret$7);
463
824
  }
464
825
  // Inline function 'arrow.core.NonEmptyList.map' call
@@ -475,40 +836,40 @@ protoOf(AvroJsonEmitter).mo = function (ast, logger) {
475
836
  }
476
837
  return _NonEmptyList___init__impl__fxd0xp(destination_1);
477
838
  };
478
- protoOf(AvroJsonEmitter).g49 = function (_this__u8e3s4) {
479
- return new EnumType('enum', _this__u8e3s4.gs_1.m1(), VOID, toList(_this__u8e3s4.hs_1));
839
+ protoOf(AvroJsonEmitter).h4a = function (_this__u8e3s4) {
840
+ return new EnumType('enum', _this__u8e3s4.ps_1.o1(), VOID, toList(_this__u8e3s4.qs_1));
480
841
  };
481
- protoOf(AvroJsonEmitter).h49 = function (_this__u8e3s4) {
482
- var tmp = _this__u8e3s4.rq_1.m1();
842
+ protoOf(AvroJsonEmitter).i4a = function (_this__u8e3s4) {
843
+ var tmp = _this__u8e3s4.ar_1.o1();
483
844
  // Inline function 'kotlin.collections.map' call
484
- var this_0 = _this__u8e3s4.sq_1;
845
+ var this_0 = _this__u8e3s4.br_1;
485
846
  // Inline function 'kotlin.collections.mapTo' call
486
847
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
487
848
  var _iterator__ex2g4s = this_0.t();
488
849
  while (_iterator__ex2g4s.u()) {
489
850
  var item = _iterator__ex2g4s.v();
490
- var tmp$ret$2 = new SimpleType(item.m1());
851
+ var tmp$ret$2 = new SimpleType(item.o1());
491
852
  destination.x(tmp$ret$2);
492
853
  }
493
854
  return new UnionType(tmp, TypeList_init_$Create$(destination));
494
855
  };
495
- protoOf(AvroJsonEmitter).i49 = function (_this__u8e3s4, module_0, hasEmitted) {
856
+ protoOf(AvroJsonEmitter).j4a = function (_this__u8e3s4, module_0, hasEmitted) {
496
857
  var tmp;
497
858
  if (_this__u8e3s4 instanceof Dict) {
498
- tmp = new MapType('map', this.i49(_this__u8e3s4.tp_1, module_0, hasEmitted));
859
+ tmp = new MapType('map', this.j4a(_this__u8e3s4.aq_1, module_0, hasEmitted));
499
860
  } else {
500
861
  if (_this__u8e3s4 instanceof Iterable) {
501
- tmp = new ArrayType('array', this.i49(_this__u8e3s4.qp_1, module_0, hasEmitted));
862
+ tmp = new ArrayType('array', this.j4a(_this__u8e3s4.xp_1, module_0, hasEmitted));
502
863
  } else {
503
864
  if (_this__u8e3s4 instanceof Primitive) {
504
- var type = _this__u8e3s4.j18_1;
865
+ var type = _this__u8e3s4.s18_1;
505
866
  var tmp_0;
506
867
  if (type instanceof String_0) {
507
868
  tmp_0 = new SimpleType('string');
508
869
  } else {
509
870
  if (type instanceof Integer) {
510
871
  var tmp_1;
511
- switch (type.r18_1.c3_1) {
872
+ switch (type.a19_1.e3_1) {
512
873
  case 0:
513
874
  tmp_1 = new SimpleType('int');
514
875
  break;
@@ -523,7 +884,7 @@ protoOf(AvroJsonEmitter).i49 = function (_this__u8e3s4, module_0, hasEmitted) {
523
884
  } else {
524
885
  if (type instanceof Number_0) {
525
886
  var tmp_2;
526
- switch (type.m18_1.c3_1) {
887
+ switch (type.v18_1.e3_1) {
527
888
  case 0:
528
889
  tmp_2 = new SimpleType('float');
529
890
  break;
@@ -551,28 +912,28 @@ protoOf(AvroJsonEmitter).i49 = function (_this__u8e3s4, module_0, hasEmitted) {
551
912
  tmp = tmp_0;
552
913
  } else {
553
914
  if (_this__u8e3s4 instanceof Custom) {
554
- var def = findType(this, module_0, _this__u8e3s4.h18_1);
915
+ var def = findType(this, module_0, _this__u8e3s4.q18_1);
555
916
  var tmp_3;
556
917
  if (def instanceof Type) {
557
918
  var tmp_4;
558
- if (hasEmitted.v1(def.cp_1.m1())) {
919
+ if (hasEmitted.i1(def.jp_1.o1())) {
559
920
  // Inline function 'kotlin.let' call
560
- var p0 = def.cp_1.m1();
921
+ var p0 = def.jp_1.o1();
561
922
  tmp_4 = new SimpleType(p0);
562
923
  } else {
563
924
  // Inline function 'kotlin.also' call
564
- hasEmitted.x(def.cp_1.m1());
565
- tmp_4 = this.j49(def, module_0, hasEmitted);
925
+ hasEmitted.x(def.jp_1.o1());
926
+ tmp_4 = this.k4a(def, module_0, hasEmitted);
566
927
  }
567
928
  tmp_3 = tmp_4;
568
929
  } else {
569
930
  if (def instanceof Enum) {
570
- tmp_3 = new SimpleType(def.gs_1.m1());
931
+ tmp_3 = new SimpleType(def.ps_1.o1());
571
932
  } else {
572
933
  if (def instanceof Refined) {
573
- tmp_3 = new SimpleType('string');
934
+ tmp_3 = this.j4a(def.ls_1, module_0, hasEmitted);
574
935
  } else {
575
- tmp_3 = new SimpleType(_this__u8e3s4.h18_1);
936
+ tmp_3 = new SimpleType(_this__u8e3s4.q18_1);
576
937
  }
577
938
  }
578
939
  }
@@ -595,40 +956,40 @@ protoOf(AvroJsonEmitter).i49 = function (_this__u8e3s4, module_0, hasEmitted) {
595
956
  }
596
957
  return tmp;
597
958
  };
598
- protoOf(AvroJsonEmitter).k49 = function (_this__u8e3s4, module_0, hasEmitted) {
599
- var ref = _this__u8e3s4.hp_1;
959
+ protoOf(AvroJsonEmitter).l4a = function (_this__u8e3s4, module_0, hasEmitted) {
960
+ var ref = _this__u8e3s4.op_1;
600
961
  var tmp;
601
962
  if (ref instanceof Iterable) {
602
- tmp = new ArrayType('array', this.i49(ref.qp_1, module_0, hasEmitted));
963
+ tmp = new ArrayType('array', this.j4a(ref.xp_1, module_0, hasEmitted));
603
964
  } else {
604
- tmp = this.i49(ref, module_0, hasEmitted);
965
+ tmp = this.j4a(ref, module_0, hasEmitted);
605
966
  }
606
967
  return tmp;
607
968
  };
608
- protoOf(AvroJsonEmitter).j49 = function (_this__u8e3s4, module_0, hasEmitted) {
609
- var tmp0_name = _this__u8e3s4.cp_1.m1();
969
+ protoOf(AvroJsonEmitter).k4a = function (_this__u8e3s4, module_0, hasEmitted) {
970
+ var tmp0_name = _this__u8e3s4.jp_1.o1();
610
971
  // Inline function 'kotlin.collections.map' call
611
- var this_0 = get_fields(_this__u8e3s4.dp_1);
972
+ var this_0 = get_fields(_this__u8e3s4.kp_1);
612
973
  // Inline function 'kotlin.collections.mapTo' call
613
974
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
614
975
  var _iterator__ex2g4s = this_0.t();
615
976
  while (_iterator__ex2g4s.u()) {
616
977
  var item = _iterator__ex2g4s.v();
617
- var tmp = item.gp_1.m1();
978
+ var tmp = item.np_1.o1();
618
979
  // Inline function 'kotlin.let' call
619
- var type = AvroJsonEmitter_getInstance().k49(item, module_0, hasEmitted);
620
- var tmp_0 = !item.hp_1.et() ? new TypeList([type]) : isNonNull(AvroJsonEmitter_getInstance(), item.ip_1) ? new TypeList([type, new SimpleType('null')]) : new TypeList([new SimpleType('null'), type]);
621
- var tmp0_safe_receiver = item.ip_1;
980
+ var type = AvroJsonEmitter_getInstance().l4a(item, module_0, hasEmitted);
981
+ var tmp_0 = !item.op_1.nt() ? new TypeList([type]) : isNonNull_0(AvroJsonEmitter_getInstance(), item.pp_1) ? new TypeList([type, new SimpleType('null')]) : new TypeList([new SimpleType('null'), type]);
982
+ var tmp0_safe_receiver = item.pp_1;
622
983
  var tmp$ret$2 = new Field_0(tmp, tmp_0, VOID, tmp0_safe_receiver == null ? null : toJsonElement(tmp0_safe_receiver));
623
984
  destination.x(tmp$ret$2);
624
985
  }
625
986
  return new RecordType('record', tmp0_name, VOID, destination);
626
987
  };
627
- protoOf(AvroJsonEmitter).f49 = function (module_0) {
988
+ protoOf(AvroJsonEmitter).g4a = function (module_0) {
628
989
  // Inline function 'kotlin.collections.mutableListOf' call
629
990
  var hasEmitted = ArrayList_init_$Create$_0();
630
991
  // Inline function 'kotlin.collections.mapNotNull' call
631
- var tmp0 = NonEmptyList__toList_impl_t5xcy2(module_0.zo_1);
992
+ var tmp0 = inDependencyOrder(module_0);
632
993
  // Inline function 'kotlin.collections.mapNotNullTo' call
633
994
  var destination = ArrayList_init_$Create$_0();
634
995
  // Inline function 'kotlin.collections.forEach' call
@@ -637,13 +998,30 @@ protoOf(AvroJsonEmitter).f49 = function (module_0) {
637
998
  var element = _iterator__ex2g4s.v();
638
999
  var tmp;
639
1000
  if (element instanceof Type) {
640
- tmp = AvroJsonEmitter_getInstance().j49(element, module_0, hasEmitted);
1001
+ // Inline function 'kotlin.takeUnless' call
1002
+ var tmp_0;
1003
+ if (!hasEmitted.i1(element.jp_1.o1())) {
1004
+ tmp_0 = element;
1005
+ } else {
1006
+ tmp_0 = null;
1007
+ }
1008
+ var tmp1_safe_receiver = tmp_0;
1009
+ var tmp_1;
1010
+ if (tmp1_safe_receiver == null) {
1011
+ tmp_1 = null;
1012
+ } else {
1013
+ // Inline function 'kotlin.also' call
1014
+ hasEmitted.x(tmp1_safe_receiver.jp_1.o1());
1015
+ tmp_1 = tmp1_safe_receiver;
1016
+ }
1017
+ var tmp2_safe_receiver = tmp_1;
1018
+ tmp = tmp2_safe_receiver == null ? null : AvroJsonEmitter_getInstance().k4a(tmp2_safe_receiver, module_0, hasEmitted);
641
1019
  } else {
642
1020
  if (element instanceof Enum) {
643
- tmp = AvroJsonEmitter_getInstance().g49(element);
1021
+ tmp = AvroJsonEmitter_getInstance().h4a(element);
644
1022
  } else {
645
1023
  if (element instanceof Union) {
646
- tmp = AvroJsonEmitter_getInstance().h49(element);
1024
+ tmp = AvroJsonEmitter_getInstance().i4a(element);
647
1025
  } else {
648
1026
  tmp = null;
649
1027
  }
@@ -666,26 +1044,26 @@ function AvroJsonEmitter_getInstance() {
666
1044
  return AvroJsonEmitter_instance;
667
1045
  }
668
1046
  function AvroJsonParser$parse$lambda($this$Json) {
669
- $this$Json.c2n_1 = true;
670
- $this$Json.d2n_1 = true;
1047
+ $this$Json.y2n_1 = true;
1048
+ $this$Json.z2n_1 = true;
671
1049
  return Unit_instance;
672
1050
  }
673
1051
  function AvroJsonParser() {
674
1052
  }
675
- protoOf(AvroJsonParser).v47 = function (moduleContent, strict) {
1053
+ protoOf(AvroJsonParser).r48 = function (moduleContent, strict) {
676
1054
  var json = Json(VOID, AvroJsonParser$parse$lambda);
677
1055
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
678
- var string = moduleContent.wn_1;
1056
+ var string = moduleContent.do_1;
679
1057
  // Inline function 'kotlinx.serialization.serializer' call
680
- var this_0 = json.c25();
1058
+ var this_0 = json.x25();
681
1059
  // Inline function 'kotlinx.serialization.internal.cast' call
682
1060
  var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
683
1061
  var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
684
- var avro = json.i2m(tmp$ret$1, string);
685
- var tmp = AvroConverter_getInstance().c49(avro);
1062
+ var avro = json.d2n(tmp$ret$1, string);
1063
+ var tmp = AvroConverter_getInstance().y49(avro);
686
1064
  var tmp_0;
687
1065
  if (avro instanceof RecordType) {
688
- tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.r48_1), new Custom(avro.r48_1, false));
1066
+ tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.n49_1), new Custom(avro.n49_1, false));
689
1067
  } else {
690
1068
  if (avro instanceof ArrayType) {
691
1069
  // Inline function 'kotlin.TODO' call
@@ -740,7 +1118,7 @@ protoOf(AvroJsonParser).v47 = function (moduleContent, strict) {
740
1118
  } else {
741
1119
  tmp_1 = tmp1_elvis_lhs;
742
1120
  }
743
- return new Root(nonEmptyListOf(new Module(moduleContent.vn_1, tmp_1), []));
1121
+ return new Root(nonEmptyListOf(new Module(moduleContent.co_1, tmp_1), []));
744
1122
  };
745
1123
  var AvroJsonParser_instance;
746
1124
  function AvroJsonParser_getInstance() {
@@ -769,11 +1147,11 @@ function Companion_getInstance_0() {
769
1147
  }
770
1148
  function Companion_1() {
771
1149
  }
772
- protoOf(Companion_1).p2o = function () {
1150
+ protoOf(Companion_1).l2p = function () {
773
1151
  return TypeSerializer_getInstance();
774
1152
  };
775
- protoOf(Companion_1).b2d = function (typeParamsSerializers) {
776
- return this.p2o();
1153
+ protoOf(Companion_1).w2d = function (typeParamsSerializers) {
1154
+ return this.l2p();
777
1155
  };
778
1156
  var Companion_instance_1;
779
1157
  function Companion_getInstance_1() {
@@ -788,50 +1166,50 @@ function Companion_getInstance_2() {
788
1166
  function $serializer() {
789
1167
  $serializer_instance = this;
790
1168
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
791
- tmp0_serialDesc.b2c('value', false);
792
- this.l49_1 = tmp0_serialDesc;
1169
+ tmp0_serialDesc.w2c('value', false);
1170
+ this.m4a_1 = tmp0_serialDesc;
793
1171
  }
794
- protoOf($serializer).m49 = function (encoder, value) {
795
- var tmp0_desc = this.l49_1;
796
- var tmp1_output = encoder.n24(tmp0_desc);
797
- tmp1_output.c26(tmp0_desc, 0, value.d48_1);
798
- tmp1_output.o24(tmp0_desc);
1172
+ protoOf($serializer).n4a = function (encoder, value) {
1173
+ var tmp0_desc = this.m4a_1;
1174
+ var tmp1_output = encoder.i25(tmp0_desc);
1175
+ tmp1_output.x26(tmp0_desc, 0, value.z48_1);
1176
+ tmp1_output.j25(tmp0_desc);
799
1177
  };
800
- protoOf($serializer).o21 = function (encoder, value) {
801
- return this.m49(encoder, value instanceof SimpleType ? value : THROW_CCE());
1178
+ protoOf($serializer).k22 = function (encoder, value) {
1179
+ return this.n4a(encoder, value instanceof SimpleType ? value : THROW_CCE());
802
1180
  };
803
- protoOf($serializer).p21 = function (decoder) {
804
- var tmp0_desc = this.l49_1;
1181
+ protoOf($serializer).l22 = function (decoder) {
1182
+ var tmp0_desc = this.m4a_1;
805
1183
  var tmp1_flag = true;
806
1184
  var tmp2_index = 0;
807
1185
  var tmp3_bitMask0 = 0;
808
1186
  var tmp4_local0 = null;
809
- var tmp5_input = decoder.n24(tmp0_desc);
810
- if (tmp5_input.d25()) {
811
- tmp4_local0 = tmp5_input.x24(tmp0_desc, 0);
1187
+ var tmp5_input = decoder.i25(tmp0_desc);
1188
+ if (tmp5_input.y25()) {
1189
+ tmp4_local0 = tmp5_input.s25(tmp0_desc, 0);
812
1190
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
813
1191
  } else
814
1192
  while (tmp1_flag) {
815
- tmp2_index = tmp5_input.e25(tmp0_desc);
1193
+ tmp2_index = tmp5_input.z25(tmp0_desc);
816
1194
  switch (tmp2_index) {
817
1195
  case -1:
818
1196
  tmp1_flag = false;
819
1197
  break;
820
1198
  case 0:
821
- tmp4_local0 = tmp5_input.x24(tmp0_desc, 0);
1199
+ tmp4_local0 = tmp5_input.s25(tmp0_desc, 0);
822
1200
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
823
1201
  break;
824
1202
  default:
825
1203
  throw UnknownFieldException_init_$Create$(tmp2_index);
826
1204
  }
827
1205
  }
828
- tmp5_input.o24(tmp0_desc);
1206
+ tmp5_input.j25(tmp0_desc);
829
1207
  return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
830
1208
  };
831
- protoOf($serializer).n21 = function () {
832
- return this.l49_1;
1209
+ protoOf($serializer).j22 = function () {
1210
+ return this.m4a_1;
833
1211
  };
834
- protoOf($serializer).q2c = function () {
1212
+ protoOf($serializer).l2d = function () {
835
1213
  // Inline function 'kotlin.arrayOf' call
836
1214
  // Inline function 'kotlin.js.unsafeCast' call
837
1215
  // Inline function 'kotlin.js.asDynamic' call
@@ -845,9 +1223,9 @@ function $serializer_getInstance() {
845
1223
  }
846
1224
  function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
847
1225
  if (!(1 === (1 & seen0))) {
848
- throwMissingFieldException(seen0, 1, $serializer_getInstance().l49_1);
1226
+ throwMissingFieldException(seen0, 1, $serializer_getInstance().m4a_1);
849
1227
  }
850
- $this.d48_1 = value;
1228
+ $this.z48_1 = value;
851
1229
  return $this;
852
1230
  }
853
1231
  function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
@@ -863,9 +1241,9 @@ function Companion_3() {
863
1241
  // Inline function 'kotlin.arrayOf' call
864
1242
  // Inline function 'kotlin.js.unsafeCast' call
865
1243
  // Inline function 'kotlin.js.asDynamic' call
866
- tmp.n49_1 = [null, null, null, lazy(tmp_0, AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq), null];
1244
+ tmp.o4a_1 = [null, null, null, lazy(tmp_0, AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq), null];
867
1245
  }
868
- protoOf(Companion_3).p2o = function () {
1246
+ protoOf(Companion_3).l2p = function () {
869
1247
  return $serializer_getInstance_0();
870
1248
  };
871
1249
  var Companion_instance_3;
@@ -877,33 +1255,33 @@ function Companion_getInstance_3() {
877
1255
  function $serializer_0() {
878
1256
  $serializer_instance_0 = this;
879
1257
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
880
- tmp0_serialDesc.b2c('type', false);
881
- tmp0_serialDesc.b2c('name', false);
882
- tmp0_serialDesc.b2c('namespace', true);
883
- tmp0_serialDesc.b2c('fields', false);
884
- tmp0_serialDesc.b2c('doc', true);
885
- this.o49_1 = tmp0_serialDesc;
886
- }
887
- protoOf($serializer_0).p49 = function (encoder, value) {
888
- var tmp0_desc = this.o49_1;
889
- var tmp1_output = encoder.n24(tmp0_desc);
890
- var tmp2_cached = Companion_getInstance_3().n49_1;
891
- tmp1_output.c26(tmp0_desc, 0, value.q48_1);
892
- tmp1_output.c26(tmp0_desc, 1, value.r48_1);
893
- if (tmp1_output.k26(tmp0_desc, 2) ? true : !(value.s48_1 == null)) {
894
- tmp1_output.g26(tmp0_desc, 2, StringSerializer_getInstance(), value.s48_1);
895
- }
896
- tmp1_output.e26(tmp0_desc, 3, tmp2_cached[3].m1(), value.t48_1);
897
- if (tmp1_output.k26(tmp0_desc, 4) ? true : !(value.u48_1 == null)) {
898
- tmp1_output.g26(tmp0_desc, 4, StringSerializer_getInstance(), value.u48_1);
899
- }
900
- tmp1_output.o24(tmp0_desc);
901
- };
902
- protoOf($serializer_0).o21 = function (encoder, value) {
903
- return this.p49(encoder, value instanceof RecordType ? value : THROW_CCE());
904
- };
905
- protoOf($serializer_0).p21 = function (decoder) {
906
- var tmp0_desc = this.o49_1;
1258
+ tmp0_serialDesc.w2c('type', false);
1259
+ tmp0_serialDesc.w2c('name', false);
1260
+ tmp0_serialDesc.w2c('namespace', true);
1261
+ tmp0_serialDesc.w2c('fields', false);
1262
+ tmp0_serialDesc.w2c('doc', true);
1263
+ this.p4a_1 = tmp0_serialDesc;
1264
+ }
1265
+ protoOf($serializer_0).q4a = function (encoder, value) {
1266
+ var tmp0_desc = this.p4a_1;
1267
+ var tmp1_output = encoder.i25(tmp0_desc);
1268
+ var tmp2_cached = Companion_getInstance_3().o4a_1;
1269
+ tmp1_output.x26(tmp0_desc, 0, value.m49_1);
1270
+ tmp1_output.x26(tmp0_desc, 1, value.n49_1);
1271
+ if (tmp1_output.f27(tmp0_desc, 2) ? true : !(value.o49_1 == null)) {
1272
+ tmp1_output.b27(tmp0_desc, 2, StringSerializer_getInstance(), value.o49_1);
1273
+ }
1274
+ tmp1_output.z26(tmp0_desc, 3, tmp2_cached[3].o1(), value.p49_1);
1275
+ if (tmp1_output.f27(tmp0_desc, 4) ? true : !(value.q49_1 == null)) {
1276
+ tmp1_output.b27(tmp0_desc, 4, StringSerializer_getInstance(), value.q49_1);
1277
+ }
1278
+ tmp1_output.j25(tmp0_desc);
1279
+ };
1280
+ protoOf($serializer_0).k22 = function (encoder, value) {
1281
+ return this.q4a(encoder, value instanceof RecordType ? value : THROW_CCE());
1282
+ };
1283
+ protoOf($serializer_0).l22 = function (decoder) {
1284
+ var tmp0_desc = this.p4a_1;
907
1285
  var tmp1_flag = true;
908
1286
  var tmp2_index = 0;
909
1287
  var tmp3_bitMask0 = 0;
@@ -912,62 +1290,62 @@ protoOf($serializer_0).p21 = function (decoder) {
912
1290
  var tmp6_local2 = null;
913
1291
  var tmp7_local3 = null;
914
1292
  var tmp8_local4 = null;
915
- var tmp9_input = decoder.n24(tmp0_desc);
916
- var tmp10_cached = Companion_getInstance_3().n49_1;
917
- if (tmp9_input.d25()) {
918
- tmp4_local0 = tmp9_input.x24(tmp0_desc, 0);
1293
+ var tmp9_input = decoder.i25(tmp0_desc);
1294
+ var tmp10_cached = Companion_getInstance_3().o4a_1;
1295
+ if (tmp9_input.y25()) {
1296
+ tmp4_local0 = tmp9_input.s25(tmp0_desc, 0);
919
1297
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
920
- tmp5_local1 = tmp9_input.x24(tmp0_desc, 1);
1298
+ tmp5_local1 = tmp9_input.s25(tmp0_desc, 1);
921
1299
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
922
- tmp6_local2 = tmp9_input.b25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1300
+ tmp6_local2 = tmp9_input.w25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
923
1301
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
924
- tmp7_local3 = tmp9_input.z24(tmp0_desc, 3, tmp10_cached[3].m1(), tmp7_local3);
1302
+ tmp7_local3 = tmp9_input.u25(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
925
1303
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
926
- tmp8_local4 = tmp9_input.b25(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
1304
+ tmp8_local4 = tmp9_input.w25(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
927
1305
  tmp3_bitMask0 = tmp3_bitMask0 | 16;
928
1306
  } else
929
1307
  while (tmp1_flag) {
930
- tmp2_index = tmp9_input.e25(tmp0_desc);
1308
+ tmp2_index = tmp9_input.z25(tmp0_desc);
931
1309
  switch (tmp2_index) {
932
1310
  case -1:
933
1311
  tmp1_flag = false;
934
1312
  break;
935
1313
  case 0:
936
- tmp4_local0 = tmp9_input.x24(tmp0_desc, 0);
1314
+ tmp4_local0 = tmp9_input.s25(tmp0_desc, 0);
937
1315
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
938
1316
  break;
939
1317
  case 1:
940
- tmp5_local1 = tmp9_input.x24(tmp0_desc, 1);
1318
+ tmp5_local1 = tmp9_input.s25(tmp0_desc, 1);
941
1319
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
942
1320
  break;
943
1321
  case 2:
944
- tmp6_local2 = tmp9_input.b25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1322
+ tmp6_local2 = tmp9_input.w25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
945
1323
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
946
1324
  break;
947
1325
  case 3:
948
- tmp7_local3 = tmp9_input.z24(tmp0_desc, 3, tmp10_cached[3].m1(), tmp7_local3);
1326
+ tmp7_local3 = tmp9_input.u25(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
949
1327
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
950
1328
  break;
951
1329
  case 4:
952
- tmp8_local4 = tmp9_input.b25(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
1330
+ tmp8_local4 = tmp9_input.w25(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
953
1331
  tmp3_bitMask0 = tmp3_bitMask0 | 16;
954
1332
  break;
955
1333
  default:
956
1334
  throw UnknownFieldException_init_$Create$(tmp2_index);
957
1335
  }
958
1336
  }
959
- tmp9_input.o24(tmp0_desc);
1337
+ tmp9_input.j25(tmp0_desc);
960
1338
  return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
961
1339
  };
962
- protoOf($serializer_0).n21 = function () {
963
- return this.o49_1;
1340
+ protoOf($serializer_0).j22 = function () {
1341
+ return this.p4a_1;
964
1342
  };
965
- protoOf($serializer_0).q2c = function () {
966
- var tmp0_cached = Companion_getInstance_3().n49_1;
1343
+ protoOf($serializer_0).l2d = function () {
1344
+ var tmp0_cached = Companion_getInstance_3().o4a_1;
967
1345
  // Inline function 'kotlin.arrayOf' call
968
1346
  // Inline function 'kotlin.js.unsafeCast' call
969
1347
  // Inline function 'kotlin.js.asDynamic' call
970
- return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].m1(), get_nullable(StringSerializer_getInstance())];
1348
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].o1(), get_nullable(StringSerializer_getInstance())];
971
1349
  };
972
1350
  var $serializer_instance_0;
973
1351
  function $serializer_getInstance_0() {
@@ -977,19 +1355,19 @@ function $serializer_getInstance_0() {
977
1355
  }
978
1356
  function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
979
1357
  if (!(11 === (11 & seen0))) {
980
- throwMissingFieldException(seen0, 11, $serializer_getInstance_0().o49_1);
1358
+ throwMissingFieldException(seen0, 11, $serializer_getInstance_0().p4a_1);
981
1359
  }
982
- $this.q48_1 = type;
983
- $this.r48_1 = name;
1360
+ $this.m49_1 = type;
1361
+ $this.n49_1 = name;
984
1362
  if (0 === (seen0 & 4))
985
- $this.s48_1 = null;
1363
+ $this.o49_1 = null;
986
1364
  else
987
- $this.s48_1 = namespace;
988
- $this.t48_1 = fields;
1365
+ $this.o49_1 = namespace;
1366
+ $this.p49_1 = fields;
989
1367
  if (0 === (seen0 & 16))
990
- $this.u48_1 = null;
1368
+ $this.q49_1 = null;
991
1369
  else
992
- $this.u48_1 = doc;
1370
+ $this.q49_1 = doc;
993
1371
  return $this;
994
1372
  }
995
1373
  function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
@@ -997,7 +1375,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
997
1375
  }
998
1376
  function Companion_4() {
999
1377
  }
1000
- protoOf(Companion_4).p2o = function () {
1378
+ protoOf(Companion_4).l2p = function () {
1001
1379
  return $serializer_getInstance_1();
1002
1380
  };
1003
1381
  var Companion_instance_4;
@@ -1007,59 +1385,59 @@ function Companion_getInstance_4() {
1007
1385
  function $serializer_1() {
1008
1386
  $serializer_instance_1 = this;
1009
1387
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
1010
- tmp0_serialDesc.b2c('type', false);
1011
- tmp0_serialDesc.b2c('items', false);
1012
- this.q49_1 = tmp0_serialDesc;
1013
- }
1014
- protoOf($serializer_1).r49 = function (encoder, value) {
1015
- var tmp0_desc = this.q49_1;
1016
- var tmp1_output = encoder.n24(tmp0_desc);
1017
- tmp1_output.c26(tmp0_desc, 0, value.v48_1);
1018
- tmp1_output.e26(tmp0_desc, 1, TypeSerializer_getInstance(), value.w48_1);
1019
- tmp1_output.o24(tmp0_desc);
1020
- };
1021
- protoOf($serializer_1).o21 = function (encoder, value) {
1022
- return this.r49(encoder, value instanceof ArrayType ? value : THROW_CCE());
1023
- };
1024
- protoOf($serializer_1).p21 = function (decoder) {
1025
- var tmp0_desc = this.q49_1;
1388
+ tmp0_serialDesc.w2c('type', false);
1389
+ tmp0_serialDesc.w2c('items', false);
1390
+ this.r4a_1 = tmp0_serialDesc;
1391
+ }
1392
+ protoOf($serializer_1).s4a = function (encoder, value) {
1393
+ var tmp0_desc = this.r4a_1;
1394
+ var tmp1_output = encoder.i25(tmp0_desc);
1395
+ tmp1_output.x26(tmp0_desc, 0, value.r49_1);
1396
+ tmp1_output.z26(tmp0_desc, 1, TypeSerializer_getInstance(), value.s49_1);
1397
+ tmp1_output.j25(tmp0_desc);
1398
+ };
1399
+ protoOf($serializer_1).k22 = function (encoder, value) {
1400
+ return this.s4a(encoder, value instanceof ArrayType ? value : THROW_CCE());
1401
+ };
1402
+ protoOf($serializer_1).l22 = function (decoder) {
1403
+ var tmp0_desc = this.r4a_1;
1026
1404
  var tmp1_flag = true;
1027
1405
  var tmp2_index = 0;
1028
1406
  var tmp3_bitMask0 = 0;
1029
1407
  var tmp4_local0 = null;
1030
1408
  var tmp5_local1 = null;
1031
- var tmp6_input = decoder.n24(tmp0_desc);
1032
- if (tmp6_input.d25()) {
1033
- tmp4_local0 = tmp6_input.x24(tmp0_desc, 0);
1409
+ var tmp6_input = decoder.i25(tmp0_desc);
1410
+ if (tmp6_input.y25()) {
1411
+ tmp4_local0 = tmp6_input.s25(tmp0_desc, 0);
1034
1412
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1035
- tmp5_local1 = tmp6_input.z24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1413
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1036
1414
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1037
1415
  } else
1038
1416
  while (tmp1_flag) {
1039
- tmp2_index = tmp6_input.e25(tmp0_desc);
1417
+ tmp2_index = tmp6_input.z25(tmp0_desc);
1040
1418
  switch (tmp2_index) {
1041
1419
  case -1:
1042
1420
  tmp1_flag = false;
1043
1421
  break;
1044
1422
  case 0:
1045
- tmp4_local0 = tmp6_input.x24(tmp0_desc, 0);
1423
+ tmp4_local0 = tmp6_input.s25(tmp0_desc, 0);
1046
1424
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1047
1425
  break;
1048
1426
  case 1:
1049
- tmp5_local1 = tmp6_input.z24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1427
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1050
1428
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1051
1429
  break;
1052
1430
  default:
1053
1431
  throw UnknownFieldException_init_$Create$(tmp2_index);
1054
1432
  }
1055
1433
  }
1056
- tmp6_input.o24(tmp0_desc);
1434
+ tmp6_input.j25(tmp0_desc);
1057
1435
  return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1058
1436
  };
1059
- protoOf($serializer_1).n21 = function () {
1060
- return this.q49_1;
1437
+ protoOf($serializer_1).j22 = function () {
1438
+ return this.r4a_1;
1061
1439
  };
1062
- protoOf($serializer_1).q2c = function () {
1440
+ protoOf($serializer_1).l2d = function () {
1063
1441
  // Inline function 'kotlin.arrayOf' call
1064
1442
  // Inline function 'kotlin.js.unsafeCast' call
1065
1443
  // Inline function 'kotlin.js.asDynamic' call
@@ -1073,10 +1451,10 @@ function $serializer_getInstance_1() {
1073
1451
  }
1074
1452
  function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
1075
1453
  if (!(3 === (3 & seen0))) {
1076
- throwMissingFieldException(seen0, 3, $serializer_getInstance_1().q49_1);
1454
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_1().r4a_1);
1077
1455
  }
1078
- $this.v48_1 = type;
1079
- $this.w48_1 = items;
1456
+ $this.r49_1 = type;
1457
+ $this.s49_1 = items;
1080
1458
  return $this;
1081
1459
  }
1082
1460
  function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
@@ -1084,7 +1462,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
1084
1462
  }
1085
1463
  function Companion_5() {
1086
1464
  }
1087
- protoOf(Companion_5).p2o = function () {
1465
+ protoOf(Companion_5).l2p = function () {
1088
1466
  return $serializer_getInstance_2();
1089
1467
  };
1090
1468
  var Companion_instance_5;
@@ -1094,59 +1472,59 @@ function Companion_getInstance_5() {
1094
1472
  function $serializer_2() {
1095
1473
  $serializer_instance_2 = this;
1096
1474
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
1097
- tmp0_serialDesc.b2c('type', false);
1098
- tmp0_serialDesc.b2c('values', false);
1099
- this.s49_1 = tmp0_serialDesc;
1100
- }
1101
- protoOf($serializer_2).t49 = function (encoder, value) {
1102
- var tmp0_desc = this.s49_1;
1103
- var tmp1_output = encoder.n24(tmp0_desc);
1104
- tmp1_output.c26(tmp0_desc, 0, value.g48_1);
1105
- tmp1_output.e26(tmp0_desc, 1, TypeSerializer_getInstance(), value.h48_1);
1106
- tmp1_output.o24(tmp0_desc);
1107
- };
1108
- protoOf($serializer_2).o21 = function (encoder, value) {
1109
- return this.t49(encoder, value instanceof MapType ? value : THROW_CCE());
1110
- };
1111
- protoOf($serializer_2).p21 = function (decoder) {
1112
- var tmp0_desc = this.s49_1;
1475
+ tmp0_serialDesc.w2c('type', false);
1476
+ tmp0_serialDesc.w2c('values', false);
1477
+ this.t4a_1 = tmp0_serialDesc;
1478
+ }
1479
+ protoOf($serializer_2).u4a = function (encoder, value) {
1480
+ var tmp0_desc = this.t4a_1;
1481
+ var tmp1_output = encoder.i25(tmp0_desc);
1482
+ tmp1_output.x26(tmp0_desc, 0, value.c49_1);
1483
+ tmp1_output.z26(tmp0_desc, 1, TypeSerializer_getInstance(), value.d49_1);
1484
+ tmp1_output.j25(tmp0_desc);
1485
+ };
1486
+ protoOf($serializer_2).k22 = function (encoder, value) {
1487
+ return this.u4a(encoder, value instanceof MapType ? value : THROW_CCE());
1488
+ };
1489
+ protoOf($serializer_2).l22 = function (decoder) {
1490
+ var tmp0_desc = this.t4a_1;
1113
1491
  var tmp1_flag = true;
1114
1492
  var tmp2_index = 0;
1115
1493
  var tmp3_bitMask0 = 0;
1116
1494
  var tmp4_local0 = null;
1117
1495
  var tmp5_local1 = null;
1118
- var tmp6_input = decoder.n24(tmp0_desc);
1119
- if (tmp6_input.d25()) {
1120
- tmp4_local0 = tmp6_input.x24(tmp0_desc, 0);
1496
+ var tmp6_input = decoder.i25(tmp0_desc);
1497
+ if (tmp6_input.y25()) {
1498
+ tmp4_local0 = tmp6_input.s25(tmp0_desc, 0);
1121
1499
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1122
- tmp5_local1 = tmp6_input.z24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1500
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1123
1501
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1124
1502
  } else
1125
1503
  while (tmp1_flag) {
1126
- tmp2_index = tmp6_input.e25(tmp0_desc);
1504
+ tmp2_index = tmp6_input.z25(tmp0_desc);
1127
1505
  switch (tmp2_index) {
1128
1506
  case -1:
1129
1507
  tmp1_flag = false;
1130
1508
  break;
1131
1509
  case 0:
1132
- tmp4_local0 = tmp6_input.x24(tmp0_desc, 0);
1510
+ tmp4_local0 = tmp6_input.s25(tmp0_desc, 0);
1133
1511
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1134
1512
  break;
1135
1513
  case 1:
1136
- tmp5_local1 = tmp6_input.z24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1514
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1137
1515
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1138
1516
  break;
1139
1517
  default:
1140
1518
  throw UnknownFieldException_init_$Create$(tmp2_index);
1141
1519
  }
1142
1520
  }
1143
- tmp6_input.o24(tmp0_desc);
1521
+ tmp6_input.j25(tmp0_desc);
1144
1522
  return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1145
1523
  };
1146
- protoOf($serializer_2).n21 = function () {
1147
- return this.s49_1;
1524
+ protoOf($serializer_2).j22 = function () {
1525
+ return this.t4a_1;
1148
1526
  };
1149
- protoOf($serializer_2).q2c = function () {
1527
+ protoOf($serializer_2).l2d = function () {
1150
1528
  // Inline function 'kotlin.arrayOf' call
1151
1529
  // Inline function 'kotlin.js.unsafeCast' call
1152
1530
  // Inline function 'kotlin.js.asDynamic' call
@@ -1160,10 +1538,10 @@ function $serializer_getInstance_2() {
1160
1538
  }
1161
1539
  function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
1162
1540
  if (!(3 === (3 & seen0))) {
1163
- throwMissingFieldException(seen0, 3, $serializer_getInstance_2().s49_1);
1541
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_2().t4a_1);
1164
1542
  }
1165
- $this.g48_1 = type;
1166
- $this.h48_1 = values;
1543
+ $this.c49_1 = type;
1544
+ $this.d49_1 = values;
1167
1545
  return $this;
1168
1546
  }
1169
1547
  function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
@@ -1179,9 +1557,9 @@ function Companion_6() {
1179
1557
  // Inline function 'kotlin.arrayOf' call
1180
1558
  // Inline function 'kotlin.js.unsafeCast' call
1181
1559
  // Inline function 'kotlin.js.asDynamic' call
1182
- tmp.u49_1 = [null, null, null, lazy(tmp_0, AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a)];
1560
+ tmp.v4a_1 = [null, null, null, lazy(tmp_0, AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a)];
1183
1561
  }
1184
- protoOf(Companion_6).p2o = function () {
1562
+ protoOf(Companion_6).l2p = function () {
1185
1563
  return $serializer_getInstance_3();
1186
1564
  };
1187
1565
  var Companion_instance_6;
@@ -1193,29 +1571,29 @@ function Companion_getInstance_6() {
1193
1571
  function $serializer_3() {
1194
1572
  $serializer_instance_3 = this;
1195
1573
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
1196
- tmp0_serialDesc.b2c('type', false);
1197
- tmp0_serialDesc.b2c('name', false);
1198
- tmp0_serialDesc.b2c('doc', true);
1199
- tmp0_serialDesc.b2c('symbols', false);
1200
- this.v49_1 = tmp0_serialDesc;
1201
- }
1202
- protoOf($serializer_3).w49 = function (encoder, value) {
1203
- var tmp0_desc = this.v49_1;
1204
- var tmp1_output = encoder.n24(tmp0_desc);
1205
- var tmp2_cached = Companion_getInstance_6().u49_1;
1206
- tmp1_output.c26(tmp0_desc, 0, value.m48_1);
1207
- tmp1_output.c26(tmp0_desc, 1, value.n48_1);
1208
- if (tmp1_output.k26(tmp0_desc, 2) ? true : !(value.o48_1 == null)) {
1209
- tmp1_output.g26(tmp0_desc, 2, StringSerializer_getInstance(), value.o48_1);
1210
- }
1211
- tmp1_output.e26(tmp0_desc, 3, tmp2_cached[3].m1(), value.p48_1);
1212
- tmp1_output.o24(tmp0_desc);
1213
- };
1214
- protoOf($serializer_3).o21 = function (encoder, value) {
1215
- return this.w49(encoder, value instanceof EnumType ? value : THROW_CCE());
1216
- };
1217
- protoOf($serializer_3).p21 = function (decoder) {
1218
- var tmp0_desc = this.v49_1;
1574
+ tmp0_serialDesc.w2c('type', false);
1575
+ tmp0_serialDesc.w2c('name', false);
1576
+ tmp0_serialDesc.w2c('doc', true);
1577
+ tmp0_serialDesc.w2c('symbols', false);
1578
+ this.w4a_1 = tmp0_serialDesc;
1579
+ }
1580
+ protoOf($serializer_3).x4a = function (encoder, value) {
1581
+ var tmp0_desc = this.w4a_1;
1582
+ var tmp1_output = encoder.i25(tmp0_desc);
1583
+ var tmp2_cached = Companion_getInstance_6().v4a_1;
1584
+ tmp1_output.x26(tmp0_desc, 0, value.i49_1);
1585
+ tmp1_output.x26(tmp0_desc, 1, value.j49_1);
1586
+ if (tmp1_output.f27(tmp0_desc, 2) ? true : !(value.k49_1 == null)) {
1587
+ tmp1_output.b27(tmp0_desc, 2, StringSerializer_getInstance(), value.k49_1);
1588
+ }
1589
+ tmp1_output.z26(tmp0_desc, 3, tmp2_cached[3].o1(), value.l49_1);
1590
+ tmp1_output.j25(tmp0_desc);
1591
+ };
1592
+ protoOf($serializer_3).k22 = function (encoder, value) {
1593
+ return this.x4a(encoder, value instanceof EnumType ? value : THROW_CCE());
1594
+ };
1595
+ protoOf($serializer_3).l22 = function (decoder) {
1596
+ var tmp0_desc = this.w4a_1;
1219
1597
  var tmp1_flag = true;
1220
1598
  var tmp2_index = 0;
1221
1599
  var tmp3_bitMask0 = 0;
@@ -1223,56 +1601,56 @@ protoOf($serializer_3).p21 = function (decoder) {
1223
1601
  var tmp5_local1 = null;
1224
1602
  var tmp6_local2 = null;
1225
1603
  var tmp7_local3 = null;
1226
- var tmp8_input = decoder.n24(tmp0_desc);
1227
- var tmp9_cached = Companion_getInstance_6().u49_1;
1228
- if (tmp8_input.d25()) {
1229
- tmp4_local0 = tmp8_input.x24(tmp0_desc, 0);
1604
+ var tmp8_input = decoder.i25(tmp0_desc);
1605
+ var tmp9_cached = Companion_getInstance_6().v4a_1;
1606
+ if (tmp8_input.y25()) {
1607
+ tmp4_local0 = tmp8_input.s25(tmp0_desc, 0);
1230
1608
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1231
- tmp5_local1 = tmp8_input.x24(tmp0_desc, 1);
1609
+ tmp5_local1 = tmp8_input.s25(tmp0_desc, 1);
1232
1610
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1233
- tmp6_local2 = tmp8_input.b25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1611
+ tmp6_local2 = tmp8_input.w25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1234
1612
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
1235
- tmp7_local3 = tmp8_input.z24(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
1613
+ tmp7_local3 = tmp8_input.u25(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
1236
1614
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
1237
1615
  } else
1238
1616
  while (tmp1_flag) {
1239
- tmp2_index = tmp8_input.e25(tmp0_desc);
1617
+ tmp2_index = tmp8_input.z25(tmp0_desc);
1240
1618
  switch (tmp2_index) {
1241
1619
  case -1:
1242
1620
  tmp1_flag = false;
1243
1621
  break;
1244
1622
  case 0:
1245
- tmp4_local0 = tmp8_input.x24(tmp0_desc, 0);
1623
+ tmp4_local0 = tmp8_input.s25(tmp0_desc, 0);
1246
1624
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1247
1625
  break;
1248
1626
  case 1:
1249
- tmp5_local1 = tmp8_input.x24(tmp0_desc, 1);
1627
+ tmp5_local1 = tmp8_input.s25(tmp0_desc, 1);
1250
1628
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1251
1629
  break;
1252
1630
  case 2:
1253
- tmp6_local2 = tmp8_input.b25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1631
+ tmp6_local2 = tmp8_input.w25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1254
1632
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
1255
1633
  break;
1256
1634
  case 3:
1257
- tmp7_local3 = tmp8_input.z24(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
1635
+ tmp7_local3 = tmp8_input.u25(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
1258
1636
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
1259
1637
  break;
1260
1638
  default:
1261
1639
  throw UnknownFieldException_init_$Create$(tmp2_index);
1262
1640
  }
1263
1641
  }
1264
- tmp8_input.o24(tmp0_desc);
1642
+ tmp8_input.j25(tmp0_desc);
1265
1643
  return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
1266
1644
  };
1267
- protoOf($serializer_3).n21 = function () {
1268
- return this.v49_1;
1645
+ protoOf($serializer_3).j22 = function () {
1646
+ return this.w4a_1;
1269
1647
  };
1270
- protoOf($serializer_3).q2c = function () {
1271
- var tmp0_cached = Companion_getInstance_6().u49_1;
1648
+ protoOf($serializer_3).l2d = function () {
1649
+ var tmp0_cached = Companion_getInstance_6().v4a_1;
1272
1650
  // Inline function 'kotlin.arrayOf' call
1273
1651
  // Inline function 'kotlin.js.unsafeCast' call
1274
1652
  // Inline function 'kotlin.js.asDynamic' call
1275
- return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].m1()];
1653
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].o1()];
1276
1654
  };
1277
1655
  var $serializer_instance_3;
1278
1656
  function $serializer_getInstance_3() {
@@ -1282,15 +1660,15 @@ function $serializer_getInstance_3() {
1282
1660
  }
1283
1661
  function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
1284
1662
  if (!(11 === (11 & seen0))) {
1285
- throwMissingFieldException(seen0, 11, $serializer_getInstance_3().v49_1);
1663
+ throwMissingFieldException(seen0, 11, $serializer_getInstance_3().w4a_1);
1286
1664
  }
1287
- $this.m48_1 = type;
1288
- $this.n48_1 = name;
1665
+ $this.i49_1 = type;
1666
+ $this.j49_1 = name;
1289
1667
  if (0 === (seen0 & 4))
1290
- $this.o48_1 = null;
1668
+ $this.k49_1 = null;
1291
1669
  else
1292
- $this.o48_1 = doc;
1293
- $this.p48_1 = symbols;
1670
+ $this.k49_1 = doc;
1671
+ $this.l49_1 = symbols;
1294
1672
  return $this;
1295
1673
  }
1296
1674
  function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
@@ -1298,7 +1676,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
1298
1676
  }
1299
1677
  function Companion_7() {
1300
1678
  }
1301
- protoOf(Companion_7).p2o = function () {
1679
+ protoOf(Companion_7).l2p = function () {
1302
1680
  return $serializer_getInstance_4();
1303
1681
  };
1304
1682
  var Companion_instance_7;
@@ -1308,59 +1686,59 @@ function Companion_getInstance_7() {
1308
1686
  function $serializer_4() {
1309
1687
  $serializer_instance_4 = this;
1310
1688
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
1311
- tmp0_serialDesc.b2c('name', false);
1312
- tmp0_serialDesc.b2c('type', false);
1313
- this.x49_1 = tmp0_serialDesc;
1314
- }
1315
- protoOf($serializer_4).y49 = function (encoder, value) {
1316
- var tmp0_desc = this.x49_1;
1317
- var tmp1_output = encoder.n24(tmp0_desc);
1318
- tmp1_output.c26(tmp0_desc, 0, value.e48_1);
1319
- tmp1_output.e26(tmp0_desc, 1, TypeListSerializer_getInstance(), value.f48_1);
1320
- tmp1_output.o24(tmp0_desc);
1321
- };
1322
- protoOf($serializer_4).o21 = function (encoder, value) {
1323
- return this.y49(encoder, value instanceof UnionType ? value : THROW_CCE());
1324
- };
1325
- protoOf($serializer_4).p21 = function (decoder) {
1326
- var tmp0_desc = this.x49_1;
1689
+ tmp0_serialDesc.w2c('name', false);
1690
+ tmp0_serialDesc.w2c('type', false);
1691
+ this.y4a_1 = tmp0_serialDesc;
1692
+ }
1693
+ protoOf($serializer_4).z4a = function (encoder, value) {
1694
+ var tmp0_desc = this.y4a_1;
1695
+ var tmp1_output = encoder.i25(tmp0_desc);
1696
+ tmp1_output.x26(tmp0_desc, 0, value.a49_1);
1697
+ tmp1_output.z26(tmp0_desc, 1, TypeListSerializer_getInstance(), value.b49_1);
1698
+ tmp1_output.j25(tmp0_desc);
1699
+ };
1700
+ protoOf($serializer_4).k22 = function (encoder, value) {
1701
+ return this.z4a(encoder, value instanceof UnionType ? value : THROW_CCE());
1702
+ };
1703
+ protoOf($serializer_4).l22 = function (decoder) {
1704
+ var tmp0_desc = this.y4a_1;
1327
1705
  var tmp1_flag = true;
1328
1706
  var tmp2_index = 0;
1329
1707
  var tmp3_bitMask0 = 0;
1330
1708
  var tmp4_local0 = null;
1331
1709
  var tmp5_local1 = null;
1332
- var tmp6_input = decoder.n24(tmp0_desc);
1333
- if (tmp6_input.d25()) {
1334
- tmp4_local0 = tmp6_input.x24(tmp0_desc, 0);
1710
+ var tmp6_input = decoder.i25(tmp0_desc);
1711
+ if (tmp6_input.y25()) {
1712
+ tmp4_local0 = tmp6_input.s25(tmp0_desc, 0);
1335
1713
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1336
- tmp5_local1 = tmp6_input.z24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
1714
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
1337
1715
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1338
1716
  } else
1339
1717
  while (tmp1_flag) {
1340
- tmp2_index = tmp6_input.e25(tmp0_desc);
1718
+ tmp2_index = tmp6_input.z25(tmp0_desc);
1341
1719
  switch (tmp2_index) {
1342
1720
  case -1:
1343
1721
  tmp1_flag = false;
1344
1722
  break;
1345
1723
  case 0:
1346
- tmp4_local0 = tmp6_input.x24(tmp0_desc, 0);
1724
+ tmp4_local0 = tmp6_input.s25(tmp0_desc, 0);
1347
1725
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1348
1726
  break;
1349
1727
  case 1:
1350
- tmp5_local1 = tmp6_input.z24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
1728
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
1351
1729
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1352
1730
  break;
1353
1731
  default:
1354
1732
  throw UnknownFieldException_init_$Create$(tmp2_index);
1355
1733
  }
1356
1734
  }
1357
- tmp6_input.o24(tmp0_desc);
1735
+ tmp6_input.j25(tmp0_desc);
1358
1736
  return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1359
1737
  };
1360
- protoOf($serializer_4).n21 = function () {
1361
- return this.x49_1;
1738
+ protoOf($serializer_4).j22 = function () {
1739
+ return this.y4a_1;
1362
1740
  };
1363
- protoOf($serializer_4).q2c = function () {
1741
+ protoOf($serializer_4).l2d = function () {
1364
1742
  // Inline function 'kotlin.arrayOf' call
1365
1743
  // Inline function 'kotlin.js.unsafeCast' call
1366
1744
  // Inline function 'kotlin.js.asDynamic' call
@@ -1374,10 +1752,10 @@ function $serializer_getInstance_4() {
1374
1752
  }
1375
1753
  function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
1376
1754
  if (!(3 === (3 & seen0))) {
1377
- throwMissingFieldException(seen0, 3, $serializer_getInstance_4().x49_1);
1755
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_4().y4a_1);
1378
1756
  }
1379
- $this.e48_1 = name;
1380
- $this.f48_1 = type;
1757
+ $this.a49_1 = name;
1758
+ $this.b49_1 = type;
1381
1759
  return $this;
1382
1760
  }
1383
1761
  function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
@@ -1385,7 +1763,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
1385
1763
  }
1386
1764
  function Companion_8() {
1387
1765
  }
1388
- protoOf(Companion_8).p2o = function () {
1766
+ protoOf(Companion_8).l2p = function () {
1389
1767
  return $serializer_getInstance_5();
1390
1768
  };
1391
1769
  var Companion_instance_8;
@@ -1395,30 +1773,30 @@ function Companion_getInstance_8() {
1395
1773
  function $serializer_5() {
1396
1774
  $serializer_instance_5 = this;
1397
1775
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
1398
- tmp0_serialDesc.b2c('type', false);
1399
- tmp0_serialDesc.b2c('logicalType', false);
1400
- tmp0_serialDesc.b2c('precision', true);
1401
- tmp0_serialDesc.b2c('scale', true);
1402
- this.z49_1 = tmp0_serialDesc;
1403
- }
1404
- protoOf($serializer_5).a4a = function (encoder, value) {
1405
- var tmp0_desc = this.z49_1;
1406
- var tmp1_output = encoder.n24(tmp0_desc);
1407
- tmp1_output.c26(tmp0_desc, 0, value.i48_1);
1408
- tmp1_output.c26(tmp0_desc, 1, value.j48_1);
1409
- if (tmp1_output.k26(tmp0_desc, 2) ? true : !(value.k48_1 == null)) {
1410
- tmp1_output.g26(tmp0_desc, 2, IntSerializer_getInstance(), value.k48_1);
1411
- }
1412
- if (tmp1_output.k26(tmp0_desc, 3) ? true : !(value.l48_1 == null)) {
1413
- tmp1_output.g26(tmp0_desc, 3, IntSerializer_getInstance(), value.l48_1);
1414
- }
1415
- tmp1_output.o24(tmp0_desc);
1416
- };
1417
- protoOf($serializer_5).o21 = function (encoder, value) {
1418
- return this.a4a(encoder, value instanceof LogicalType ? value : THROW_CCE());
1419
- };
1420
- protoOf($serializer_5).p21 = function (decoder) {
1421
- var tmp0_desc = this.z49_1;
1776
+ tmp0_serialDesc.w2c('type', false);
1777
+ tmp0_serialDesc.w2c('logicalType', false);
1778
+ tmp0_serialDesc.w2c('precision', true);
1779
+ tmp0_serialDesc.w2c('scale', true);
1780
+ this.a4b_1 = tmp0_serialDesc;
1781
+ }
1782
+ protoOf($serializer_5).b4b = function (encoder, value) {
1783
+ var tmp0_desc = this.a4b_1;
1784
+ var tmp1_output = encoder.i25(tmp0_desc);
1785
+ tmp1_output.x26(tmp0_desc, 0, value.e49_1);
1786
+ tmp1_output.x26(tmp0_desc, 1, value.f49_1);
1787
+ if (tmp1_output.f27(tmp0_desc, 2) ? true : !(value.g49_1 == null)) {
1788
+ tmp1_output.b27(tmp0_desc, 2, IntSerializer_getInstance(), value.g49_1);
1789
+ }
1790
+ if (tmp1_output.f27(tmp0_desc, 3) ? true : !(value.h49_1 == null)) {
1791
+ tmp1_output.b27(tmp0_desc, 3, IntSerializer_getInstance(), value.h49_1);
1792
+ }
1793
+ tmp1_output.j25(tmp0_desc);
1794
+ };
1795
+ protoOf($serializer_5).k22 = function (encoder, value) {
1796
+ return this.b4b(encoder, value instanceof LogicalType ? value : THROW_CCE());
1797
+ };
1798
+ protoOf($serializer_5).l22 = function (decoder) {
1799
+ var tmp0_desc = this.a4b_1;
1422
1800
  var tmp1_flag = true;
1423
1801
  var tmp2_index = 0;
1424
1802
  var tmp3_bitMask0 = 0;
@@ -1426,50 +1804,50 @@ protoOf($serializer_5).p21 = function (decoder) {
1426
1804
  var tmp5_local1 = null;
1427
1805
  var tmp6_local2 = null;
1428
1806
  var tmp7_local3 = null;
1429
- var tmp8_input = decoder.n24(tmp0_desc);
1430
- if (tmp8_input.d25()) {
1431
- tmp4_local0 = tmp8_input.x24(tmp0_desc, 0);
1807
+ var tmp8_input = decoder.i25(tmp0_desc);
1808
+ if (tmp8_input.y25()) {
1809
+ tmp4_local0 = tmp8_input.s25(tmp0_desc, 0);
1432
1810
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1433
- tmp5_local1 = tmp8_input.x24(tmp0_desc, 1);
1811
+ tmp5_local1 = tmp8_input.s25(tmp0_desc, 1);
1434
1812
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1435
- tmp6_local2 = tmp8_input.b25(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1813
+ tmp6_local2 = tmp8_input.w25(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1436
1814
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
1437
- tmp7_local3 = tmp8_input.b25(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1815
+ tmp7_local3 = tmp8_input.w25(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1438
1816
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
1439
1817
  } else
1440
1818
  while (tmp1_flag) {
1441
- tmp2_index = tmp8_input.e25(tmp0_desc);
1819
+ tmp2_index = tmp8_input.z25(tmp0_desc);
1442
1820
  switch (tmp2_index) {
1443
1821
  case -1:
1444
1822
  tmp1_flag = false;
1445
1823
  break;
1446
1824
  case 0:
1447
- tmp4_local0 = tmp8_input.x24(tmp0_desc, 0);
1825
+ tmp4_local0 = tmp8_input.s25(tmp0_desc, 0);
1448
1826
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1449
1827
  break;
1450
1828
  case 1:
1451
- tmp5_local1 = tmp8_input.x24(tmp0_desc, 1);
1829
+ tmp5_local1 = tmp8_input.s25(tmp0_desc, 1);
1452
1830
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1453
1831
  break;
1454
1832
  case 2:
1455
- tmp6_local2 = tmp8_input.b25(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1833
+ tmp6_local2 = tmp8_input.w25(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1456
1834
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
1457
1835
  break;
1458
1836
  case 3:
1459
- tmp7_local3 = tmp8_input.b25(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1837
+ tmp7_local3 = tmp8_input.w25(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1460
1838
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
1461
1839
  break;
1462
1840
  default:
1463
1841
  throw UnknownFieldException_init_$Create$(tmp2_index);
1464
1842
  }
1465
1843
  }
1466
- tmp8_input.o24(tmp0_desc);
1844
+ tmp8_input.j25(tmp0_desc);
1467
1845
  return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
1468
1846
  };
1469
- protoOf($serializer_5).n21 = function () {
1470
- return this.z49_1;
1847
+ protoOf($serializer_5).j22 = function () {
1848
+ return this.a4b_1;
1471
1849
  };
1472
- protoOf($serializer_5).q2c = function () {
1850
+ protoOf($serializer_5).l2d = function () {
1473
1851
  // Inline function 'kotlin.arrayOf' call
1474
1852
  // Inline function 'kotlin.js.unsafeCast' call
1475
1853
  // Inline function 'kotlin.js.asDynamic' call
@@ -1483,18 +1861,18 @@ function $serializer_getInstance_5() {
1483
1861
  }
1484
1862
  function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
1485
1863
  if (!(3 === (3 & seen0))) {
1486
- throwMissingFieldException(seen0, 3, $serializer_getInstance_5().z49_1);
1864
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_5().a4b_1);
1487
1865
  }
1488
- $this.i48_1 = type;
1489
- $this.j48_1 = logicalType;
1866
+ $this.e49_1 = type;
1867
+ $this.f49_1 = logicalType;
1490
1868
  if (0 === (seen0 & 4))
1491
- $this.k48_1 = null;
1869
+ $this.g49_1 = null;
1492
1870
  else
1493
- $this.k48_1 = precision;
1871
+ $this.g49_1 = precision;
1494
1872
  if (0 === (seen0 & 8))
1495
- $this.l48_1 = null;
1873
+ $this.h49_1 = null;
1496
1874
  else
1497
- $this.l48_1 = scale;
1875
+ $this.h49_1 = scale;
1498
1876
  return $this;
1499
1877
  }
1500
1878
  function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
@@ -1503,19 +1881,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
1503
1881
  function Field_0(name, type, doc, default_0) {
1504
1882
  doc = doc === VOID ? null : doc;
1505
1883
  default_0 = default_0 === VOID ? null : default_0;
1506
- this.x48_1 = name;
1507
- this.y48_1 = type;
1508
- this.z48_1 = doc;
1509
- this.a49_1 = default_0;
1884
+ this.t49_1 = name;
1885
+ this.u49_1 = type;
1886
+ this.v49_1 = doc;
1887
+ this.w49_1 = default_0;
1510
1888
  }
1511
1889
  protoOf(Field_0).toString = function () {
1512
- return 'Field(name=' + this.x48_1 + ', type=' + this.y48_1.toString() + ', doc=' + this.z48_1 + ', default=' + toString_0(this.a49_1) + ')';
1890
+ return 'Field(name=' + this.t49_1 + ', type=' + this.u49_1.toString() + ', doc=' + this.v49_1 + ', default=' + toString_1(this.w49_1) + ')';
1513
1891
  };
1514
1892
  protoOf(Field_0).hashCode = function () {
1515
- var result = getStringHashCode(this.x48_1);
1516
- result = imul(result, 31) + this.y48_1.hashCode() | 0;
1517
- result = imul(result, 31) + (this.z48_1 == null ? 0 : getStringHashCode(this.z48_1)) | 0;
1518
- result = imul(result, 31) + (this.a49_1 == null ? 0 : hashCode(this.a49_1)) | 0;
1893
+ var result = getStringHashCode(this.t49_1);
1894
+ result = imul(result, 31) + this.u49_1.hashCode() | 0;
1895
+ result = imul(result, 31) + (this.v49_1 == null ? 0 : getStringHashCode(this.v49_1)) | 0;
1896
+ result = imul(result, 31) + (this.w49_1 == null ? 0 : hashCode(this.w49_1)) | 0;
1519
1897
  return result;
1520
1898
  };
1521
1899
  protoOf(Field_0).equals = function (other) {
@@ -1523,44 +1901,44 @@ protoOf(Field_0).equals = function (other) {
1523
1901
  return true;
1524
1902
  if (!(other instanceof Field_0))
1525
1903
  return false;
1526
- if (!(this.x48_1 === other.x48_1))
1904
+ if (!(this.t49_1 === other.t49_1))
1527
1905
  return false;
1528
- if (!this.y48_1.equals(other.y48_1))
1906
+ if (!this.u49_1.equals(other.u49_1))
1529
1907
  return false;
1530
- if (!(this.z48_1 == other.z48_1))
1908
+ if (!(this.v49_1 == other.v49_1))
1531
1909
  return false;
1532
- if (!equals(this.a49_1, other.a49_1))
1910
+ if (!equals(this.w49_1, other.w49_1))
1533
1911
  return false;
1534
1912
  return true;
1535
1913
  };
1536
1914
  function TypeList(type) {
1537
1915
  AbstractList.call(this);
1538
- this.b4a_1 = toList_0(type);
1539
- this.c4a_1 = this.b4a_1.b1();
1916
+ this.c4b_1 = toList_0(type);
1917
+ this.d4b_1 = this.c4b_1.b1();
1540
1918
  }
1541
1919
  protoOf(TypeList).b1 = function () {
1542
- return this.c4a_1;
1920
+ return this.d4b_1;
1543
1921
  };
1544
1922
  protoOf(TypeList).c1 = function (index) {
1545
- return this.b4a_1.c1(index);
1923
+ return this.c4b_1.c1(index);
1546
1924
  };
1547
1925
  function Type_0() {
1548
1926
  }
1549
1927
  function SimpleType(value) {
1550
- this.d48_1 = value;
1928
+ this.z48_1 = value;
1551
1929
  }
1552
1930
  protoOf(SimpleType).toString = function () {
1553
- return 'SimpleType(value=' + this.d48_1 + ')';
1931
+ return 'SimpleType(value=' + this.z48_1 + ')';
1554
1932
  };
1555
1933
  protoOf(SimpleType).hashCode = function () {
1556
- return getStringHashCode(this.d48_1);
1934
+ return getStringHashCode(this.z48_1);
1557
1935
  };
1558
1936
  protoOf(SimpleType).equals = function (other) {
1559
1937
  if (this === other)
1560
1938
  return true;
1561
1939
  if (!(other instanceof SimpleType))
1562
1940
  return false;
1563
- if (!(this.d48_1 === other.d48_1))
1941
+ if (!(this.z48_1 === other.z48_1))
1564
1942
  return false;
1565
1943
  return true;
1566
1944
  };
@@ -1568,21 +1946,21 @@ function RecordType(type, name, namespace, fields, doc) {
1568
1946
  Companion_getInstance_3();
1569
1947
  namespace = namespace === VOID ? null : namespace;
1570
1948
  doc = doc === VOID ? null : doc;
1571
- this.q48_1 = type;
1572
- this.r48_1 = name;
1573
- this.s48_1 = namespace;
1574
- this.t48_1 = fields;
1575
- this.u48_1 = doc;
1949
+ this.m49_1 = type;
1950
+ this.n49_1 = name;
1951
+ this.o49_1 = namespace;
1952
+ this.p49_1 = fields;
1953
+ this.q49_1 = doc;
1576
1954
  }
1577
1955
  protoOf(RecordType).toString = function () {
1578
- return 'RecordType(type=' + this.q48_1 + ', name=' + this.r48_1 + ', namespace=' + this.s48_1 + ', fields=' + toString(this.t48_1) + ', doc=' + this.u48_1 + ')';
1956
+ return 'RecordType(type=' + this.m49_1 + ', name=' + this.n49_1 + ', namespace=' + this.o49_1 + ', fields=' + toString(this.p49_1) + ', doc=' + this.q49_1 + ')';
1579
1957
  };
1580
1958
  protoOf(RecordType).hashCode = function () {
1581
- var result = getStringHashCode(this.q48_1);
1582
- result = imul(result, 31) + getStringHashCode(this.r48_1) | 0;
1583
- result = imul(result, 31) + (this.s48_1 == null ? 0 : getStringHashCode(this.s48_1)) | 0;
1584
- result = imul(result, 31) + hashCode(this.t48_1) | 0;
1585
- result = imul(result, 31) + (this.u48_1 == null ? 0 : getStringHashCode(this.u48_1)) | 0;
1959
+ var result = getStringHashCode(this.m49_1);
1960
+ result = imul(result, 31) + getStringHashCode(this.n49_1) | 0;
1961
+ result = imul(result, 31) + (this.o49_1 == null ? 0 : getStringHashCode(this.o49_1)) | 0;
1962
+ result = imul(result, 31) + hashCode(this.p49_1) | 0;
1963
+ result = imul(result, 31) + (this.q49_1 == null ? 0 : getStringHashCode(this.q49_1)) | 0;
1586
1964
  return result;
1587
1965
  };
1588
1966
  protoOf(RecordType).equals = function (other) {
@@ -1590,28 +1968,28 @@ protoOf(RecordType).equals = function (other) {
1590
1968
  return true;
1591
1969
  if (!(other instanceof RecordType))
1592
1970
  return false;
1593
- if (!(this.q48_1 === other.q48_1))
1971
+ if (!(this.m49_1 === other.m49_1))
1594
1972
  return false;
1595
- if (!(this.r48_1 === other.r48_1))
1973
+ if (!(this.n49_1 === other.n49_1))
1596
1974
  return false;
1597
- if (!(this.s48_1 == other.s48_1))
1975
+ if (!(this.o49_1 == other.o49_1))
1598
1976
  return false;
1599
- if (!equals(this.t48_1, other.t48_1))
1977
+ if (!equals(this.p49_1, other.p49_1))
1600
1978
  return false;
1601
- if (!(this.u48_1 == other.u48_1))
1979
+ if (!(this.q49_1 == other.q49_1))
1602
1980
  return false;
1603
1981
  return true;
1604
1982
  };
1605
1983
  function ArrayType(type, items) {
1606
- this.v48_1 = type;
1607
- this.w48_1 = items;
1984
+ this.r49_1 = type;
1985
+ this.s49_1 = items;
1608
1986
  }
1609
1987
  protoOf(ArrayType).toString = function () {
1610
- return 'ArrayType(type=' + this.v48_1 + ', items=' + toString(this.w48_1) + ')';
1988
+ return 'ArrayType(type=' + this.r49_1 + ', items=' + toString(this.s49_1) + ')';
1611
1989
  };
1612
1990
  protoOf(ArrayType).hashCode = function () {
1613
- var result = getStringHashCode(this.v48_1);
1614
- result = imul(result, 31) + hashCode(this.w48_1) | 0;
1991
+ var result = getStringHashCode(this.r49_1);
1992
+ result = imul(result, 31) + hashCode(this.s49_1) | 0;
1615
1993
  return result;
1616
1994
  };
1617
1995
  protoOf(ArrayType).equals = function (other) {
@@ -1619,22 +1997,22 @@ protoOf(ArrayType).equals = function (other) {
1619
1997
  return true;
1620
1998
  if (!(other instanceof ArrayType))
1621
1999
  return false;
1622
- if (!(this.v48_1 === other.v48_1))
2000
+ if (!(this.r49_1 === other.r49_1))
1623
2001
  return false;
1624
- if (!equals(this.w48_1, other.w48_1))
2002
+ if (!equals(this.s49_1, other.s49_1))
1625
2003
  return false;
1626
2004
  return true;
1627
2005
  };
1628
2006
  function MapType(type, values) {
1629
- this.g48_1 = type;
1630
- this.h48_1 = values;
2007
+ this.c49_1 = type;
2008
+ this.d49_1 = values;
1631
2009
  }
1632
2010
  protoOf(MapType).toString = function () {
1633
- return 'MapType(type=' + this.g48_1 + ', values=' + toString(this.h48_1) + ')';
2011
+ return 'MapType(type=' + this.c49_1 + ', values=' + toString(this.d49_1) + ')';
1634
2012
  };
1635
2013
  protoOf(MapType).hashCode = function () {
1636
- var result = getStringHashCode(this.g48_1);
1637
- result = imul(result, 31) + hashCode(this.h48_1) | 0;
2014
+ var result = getStringHashCode(this.c49_1);
2015
+ result = imul(result, 31) + hashCode(this.d49_1) | 0;
1638
2016
  return result;
1639
2017
  };
1640
2018
  protoOf(MapType).equals = function (other) {
@@ -1642,28 +2020,28 @@ protoOf(MapType).equals = function (other) {
1642
2020
  return true;
1643
2021
  if (!(other instanceof MapType))
1644
2022
  return false;
1645
- if (!(this.g48_1 === other.g48_1))
2023
+ if (!(this.c49_1 === other.c49_1))
1646
2024
  return false;
1647
- if (!equals(this.h48_1, other.h48_1))
2025
+ if (!equals(this.d49_1, other.d49_1))
1648
2026
  return false;
1649
2027
  return true;
1650
2028
  };
1651
2029
  function EnumType(type, name, doc, symbols) {
1652
2030
  Companion_getInstance_6();
1653
2031
  doc = doc === VOID ? null : doc;
1654
- this.m48_1 = type;
1655
- this.n48_1 = name;
1656
- this.o48_1 = doc;
1657
- this.p48_1 = symbols;
2032
+ this.i49_1 = type;
2033
+ this.j49_1 = name;
2034
+ this.k49_1 = doc;
2035
+ this.l49_1 = symbols;
1658
2036
  }
1659
2037
  protoOf(EnumType).toString = function () {
1660
- return 'EnumType(type=' + this.m48_1 + ', name=' + this.n48_1 + ', doc=' + this.o48_1 + ', symbols=' + toString(this.p48_1) + ')';
2038
+ return 'EnumType(type=' + this.i49_1 + ', name=' + this.j49_1 + ', doc=' + this.k49_1 + ', symbols=' + toString(this.l49_1) + ')';
1661
2039
  };
1662
2040
  protoOf(EnumType).hashCode = function () {
1663
- var result = getStringHashCode(this.m48_1);
1664
- result = imul(result, 31) + getStringHashCode(this.n48_1) | 0;
1665
- result = imul(result, 31) + (this.o48_1 == null ? 0 : getStringHashCode(this.o48_1)) | 0;
1666
- result = imul(result, 31) + hashCode(this.p48_1) | 0;
2041
+ var result = getStringHashCode(this.i49_1);
2042
+ result = imul(result, 31) + getStringHashCode(this.j49_1) | 0;
2043
+ result = imul(result, 31) + (this.k49_1 == null ? 0 : getStringHashCode(this.k49_1)) | 0;
2044
+ result = imul(result, 31) + hashCode(this.l49_1) | 0;
1667
2045
  return result;
1668
2046
  };
1669
2047
  protoOf(EnumType).equals = function (other) {
@@ -1671,26 +2049,26 @@ protoOf(EnumType).equals = function (other) {
1671
2049
  return true;
1672
2050
  if (!(other instanceof EnumType))
1673
2051
  return false;
1674
- if (!(this.m48_1 === other.m48_1))
2052
+ if (!(this.i49_1 === other.i49_1))
1675
2053
  return false;
1676
- if (!(this.n48_1 === other.n48_1))
2054
+ if (!(this.j49_1 === other.j49_1))
1677
2055
  return false;
1678
- if (!(this.o48_1 == other.o48_1))
2056
+ if (!(this.k49_1 == other.k49_1))
1679
2057
  return false;
1680
- if (!equals(this.p48_1, other.p48_1))
2058
+ if (!equals(this.l49_1, other.l49_1))
1681
2059
  return false;
1682
2060
  return true;
1683
2061
  };
1684
2062
  function UnionType(name, type) {
1685
- this.e48_1 = name;
1686
- this.f48_1 = type;
2063
+ this.a49_1 = name;
2064
+ this.b49_1 = type;
1687
2065
  }
1688
2066
  protoOf(UnionType).toString = function () {
1689
- return 'UnionType(name=' + this.e48_1 + ', type=' + this.f48_1.toString() + ')';
2067
+ return 'UnionType(name=' + this.a49_1 + ', type=' + this.b49_1.toString() + ')';
1690
2068
  };
1691
2069
  protoOf(UnionType).hashCode = function () {
1692
- var result = getStringHashCode(this.e48_1);
1693
- result = imul(result, 31) + this.f48_1.hashCode() | 0;
2070
+ var result = getStringHashCode(this.a49_1);
2071
+ result = imul(result, 31) + this.b49_1.hashCode() | 0;
1694
2072
  return result;
1695
2073
  };
1696
2074
  protoOf(UnionType).equals = function (other) {
@@ -1698,22 +2076,22 @@ protoOf(UnionType).equals = function (other) {
1698
2076
  return true;
1699
2077
  if (!(other instanceof UnionType))
1700
2078
  return false;
1701
- if (!(this.e48_1 === other.e48_1))
2079
+ if (!(this.a49_1 === other.a49_1))
1702
2080
  return false;
1703
- if (!this.f48_1.equals(other.f48_1))
2081
+ if (!this.b49_1.equals(other.b49_1))
1704
2082
  return false;
1705
2083
  return true;
1706
2084
  };
1707
2085
  function LogicalType() {
1708
2086
  }
1709
2087
  protoOf(LogicalType).toString = function () {
1710
- return 'LogicalType(type=' + this.i48_1 + ', logicalType=' + this.j48_1 + ', precision=' + this.k48_1 + ', scale=' + this.l48_1 + ')';
2088
+ return 'LogicalType(type=' + this.e49_1 + ', logicalType=' + this.f49_1 + ', precision=' + this.g49_1 + ', scale=' + this.h49_1 + ')';
1711
2089
  };
1712
2090
  protoOf(LogicalType).hashCode = function () {
1713
- var result = getStringHashCode(this.i48_1);
1714
- result = imul(result, 31) + getStringHashCode(this.j48_1) | 0;
1715
- result = imul(result, 31) + (this.k48_1 == null ? 0 : this.k48_1) | 0;
1716
- result = imul(result, 31) + (this.l48_1 == null ? 0 : this.l48_1) | 0;
2091
+ var result = getStringHashCode(this.e49_1);
2092
+ result = imul(result, 31) + getStringHashCode(this.f49_1) | 0;
2093
+ result = imul(result, 31) + (this.g49_1 == null ? 0 : this.g49_1) | 0;
2094
+ result = imul(result, 31) + (this.h49_1 == null ? 0 : this.h49_1) | 0;
1717
2095
  return result;
1718
2096
  };
1719
2097
  protoOf(LogicalType).equals = function (other) {
@@ -1721,24 +2099,24 @@ protoOf(LogicalType).equals = function (other) {
1721
2099
  return true;
1722
2100
  if (!(other instanceof LogicalType))
1723
2101
  return false;
1724
- if (!(this.i48_1 === other.i48_1))
2102
+ if (!(this.e49_1 === other.e49_1))
1725
2103
  return false;
1726
- if (!(this.j48_1 === other.j48_1))
2104
+ if (!(this.f49_1 === other.f49_1))
1727
2105
  return false;
1728
- if (!(this.k48_1 == other.k48_1))
2106
+ if (!(this.g49_1 == other.g49_1))
1729
2107
  return false;
1730
- if (!(this.l48_1 == other.l48_1))
2108
+ if (!(this.h49_1 == other.h49_1))
1731
2109
  return false;
1732
2110
  return true;
1733
2111
  };
1734
2112
  function FieldSerializer() {
1735
2113
  FieldSerializer_instance = this;
1736
- this.d4a_1 = buildClassSerialDescriptor('Field', []);
2114
+ this.e4b_1 = buildClassSerialDescriptor('Field', []);
1737
2115
  }
1738
- protoOf(FieldSerializer).n21 = function () {
1739
- return this.d4a_1;
2116
+ protoOf(FieldSerializer).j22 = function () {
2117
+ return this.e4b_1;
1740
2118
  };
1741
- protoOf(FieldSerializer).e4a = function (encoder, value) {
2119
+ protoOf(FieldSerializer).f4b = function (encoder, value) {
1742
2120
  var tmp0_elvis_lhs = isInterface(encoder, JsonEncoder) ? encoder : null;
1743
2121
  var tmp;
1744
2122
  if (tmp0_elvis_lhs == null) {
@@ -1749,30 +2127,30 @@ protoOf(FieldSerializer).e4a = function (encoder, value) {
1749
2127
  var output = tmp;
1750
2128
  // Inline function 'kotlinx.serialization.json.buildJsonObject' call
1751
2129
  var builder = new JsonObjectBuilder();
1752
- put(builder, 'name', value.x48_1);
1753
- builder.z2o('type', output.k2o().j2m(TypeListSerializer_getInstance(), value.y48_1));
1754
- var tmp0_safe_receiver = value.z48_1;
2130
+ put(builder, 'name', value.t49_1);
2131
+ builder.w2p('type', output.g2p().e2n(TypeListSerializer_getInstance(), value.u49_1));
2132
+ var tmp0_safe_receiver = value.v49_1;
1755
2133
  if (tmp0_safe_receiver == null)
1756
2134
  null;
1757
2135
  else {
1758
2136
  // Inline function 'kotlin.let' call
1759
2137
  put(builder, 'doc', tmp0_safe_receiver);
1760
2138
  }
1761
- var tmp1_safe_receiver = value.a49_1;
2139
+ var tmp1_safe_receiver = value.w49_1;
1762
2140
  if (tmp1_safe_receiver == null)
1763
2141
  null;
1764
2142
  else {
1765
2143
  // Inline function 'kotlin.let' call
1766
- builder.z2o('default', tmp1_safe_receiver);
2144
+ builder.w2p('default', tmp1_safe_receiver);
1767
2145
  }
1768
2146
  // Inline function 'kotlin.let' call
1769
- var p0 = builder.s2n();
1770
- output.r2p(p0);
2147
+ var p0 = builder.o2o();
2148
+ output.o2q(p0);
1771
2149
  };
1772
- protoOf(FieldSerializer).o21 = function (encoder, value) {
1773
- return this.e4a(encoder, value instanceof Field_0 ? value : THROW_CCE());
2150
+ protoOf(FieldSerializer).k22 = function (encoder, value) {
2151
+ return this.f4b(encoder, value instanceof Field_0 ? value : THROW_CCE());
1774
2152
  };
1775
- protoOf(FieldSerializer).p21 = function (decoder) {
2153
+ protoOf(FieldSerializer).l22 = function (decoder) {
1776
2154
  var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
1777
2155
  var tmp;
1778
2156
  if (tmp0_elvis_lhs == null) {
@@ -1782,12 +2160,12 @@ protoOf(FieldSerializer).p21 = function (decoder) {
1782
2160
  }
1783
2161
  var input = tmp;
1784
2162
  // Inline function 'kotlin.let' call
1785
- var field = get_jsonObject(input.l2o());
1786
- var tmp_0 = get_jsonPrimitive(getValue(field, 'name')).n1f();
1787
- var tmp_1 = input.k2o().k2m(TypeListSerializer_getInstance(), getValue(field, 'type'));
1788
- var tmp0_safe_receiver = field.id('doc');
2163
+ var field = get_jsonObject(input.h2p());
2164
+ var tmp_0 = get_jsonPrimitive(getValue(field, 'name')).f1g();
2165
+ var tmp_1 = input.g2p().f2n(TypeListSerializer_getInstance(), getValue(field, 'type'));
2166
+ var tmp0_safe_receiver = field.kd('doc');
1789
2167
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
1790
- return new Field_0(tmp_0, tmp_1, tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver), field.id('default'));
2168
+ return new Field_0(tmp_0, tmp_1, tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver), field.kd('default'));
1791
2169
  };
1792
2170
  var FieldSerializer_instance;
1793
2171
  function FieldSerializer_getInstance() {
@@ -1797,22 +2175,22 @@ function FieldSerializer_getInstance() {
1797
2175
  }
1798
2176
  function TypeListSerializer() {
1799
2177
  TypeListSerializer_instance = this;
1800
- this.f4a_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
2178
+ this.g4b_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
1801
2179
  }
1802
- protoOf(TypeListSerializer).n21 = function () {
1803
- return this.f4a_1;
2180
+ protoOf(TypeListSerializer).j22 = function () {
2181
+ return this.g4b_1;
1804
2182
  };
1805
- protoOf(TypeListSerializer).g4a = function (encoder, value) {
1806
- if (value.c4a_1 > 1) {
1807
- encoder.f26(ListSerializer(Companion_instance_1.p2o()), value);
2183
+ protoOf(TypeListSerializer).h4b = function (encoder, value) {
2184
+ if (value.d4b_1 > 1) {
2185
+ encoder.a27(ListSerializer(Companion_instance_1.l2p()), value);
1808
2186
  } else {
1809
- encoder.f26(Companion_instance_1.p2o(), first(value));
2187
+ encoder.a27(Companion_instance_1.l2p(), first(value));
1810
2188
  }
1811
2189
  };
1812
- protoOf(TypeListSerializer).o21 = function (encoder, value) {
1813
- return this.g4a(encoder, value instanceof TypeList ? value : THROW_CCE());
2190
+ protoOf(TypeListSerializer).k22 = function (encoder, value) {
2191
+ return this.h4b(encoder, value instanceof TypeList ? value : THROW_CCE());
1814
2192
  };
1815
- protoOf(TypeListSerializer).p21 = function (decoder) {
2193
+ protoOf(TypeListSerializer).l22 = function (decoder) {
1816
2194
  var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
1817
2195
  var tmp;
1818
2196
  if (tmp0_elvis_lhs == null) {
@@ -1821,10 +2199,10 @@ protoOf(TypeListSerializer).p21 = function (decoder) {
1821
2199
  tmp = tmp0_elvis_lhs;
1822
2200
  }
1823
2201
  var input = tmp;
1824
- var element = input.l2o();
2202
+ var element = input.h2p();
1825
2203
  var tmp_0;
1826
2204
  if (element instanceof JsonPrimitive) {
1827
- tmp_0 = new TypeList([input.k2o().k2m(Companion_instance_1.p2o(), element)]);
2205
+ tmp_0 = new TypeList([input.g2p().f2n(Companion_instance_1.l2p(), element)]);
1828
2206
  } else {
1829
2207
  if (element instanceof JsonArray) {
1830
2208
  // Inline function 'kotlin.collections.map' call
@@ -1833,7 +2211,7 @@ protoOf(TypeListSerializer).p21 = function (decoder) {
1833
2211
  var _iterator__ex2g4s = element.t();
1834
2212
  while (_iterator__ex2g4s.u()) {
1835
2213
  var item = _iterator__ex2g4s.v();
1836
- var tmp$ret$2 = input.k2o().k2m(Companion_instance_1.p2o(), item);
2214
+ var tmp$ret$2 = input.g2p().f2n(Companion_instance_1.l2p(), item);
1837
2215
  destination.x(tmp$ret$2);
1838
2216
  }
1839
2217
  // Inline function 'kotlin.collections.toTypedArray' call
@@ -1841,7 +2219,7 @@ protoOf(TypeListSerializer).p21 = function (decoder) {
1841
2219
  tmp_0 = new TypeList(tmp$ret$3.slice());
1842
2220
  } else {
1843
2221
  if (element instanceof JsonObject) {
1844
- tmp_0 = new TypeList([input.k2o().k2m(Companion_instance_1.p2o(), element)]);
2222
+ tmp_0 = new TypeList([input.g2p().f2n(Companion_instance_1.l2p(), element)]);
1845
2223
  } else {
1846
2224
  noWhenBranchMatchedException();
1847
2225
  }
@@ -1857,29 +2235,29 @@ function TypeListSerializer_getInstance() {
1857
2235
  }
1858
2236
  function TypeSerializer() {
1859
2237
  TypeSerializer_instance = this;
1860
- this.h4a_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
2238
+ this.i4b_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
1861
2239
  }
1862
- protoOf(TypeSerializer).n21 = function () {
1863
- return this.h4a_1;
2240
+ protoOf(TypeSerializer).j22 = function () {
2241
+ return this.i4b_1;
1864
2242
  };
1865
- protoOf(TypeSerializer).i4a = function (encoder, value) {
2243
+ protoOf(TypeSerializer).j4b = function (encoder, value) {
1866
2244
  if (value instanceof SimpleType) {
1867
- encoder.f26(serializer_0(StringCompanionObject_instance), value.d48_1);
2245
+ encoder.a27(serializer_0(StringCompanionObject_instance), value.z48_1);
1868
2246
  } else {
1869
2247
  if (value instanceof RecordType) {
1870
- encoder.f26(Companion_getInstance_3().p2o(), value);
2248
+ encoder.a27(Companion_getInstance_3().l2p(), value);
1871
2249
  } else {
1872
2250
  if (value instanceof ArrayType) {
1873
- encoder.f26(Companion_instance_4.p2o(), value);
2251
+ encoder.a27(Companion_instance_4.l2p(), value);
1874
2252
  } else {
1875
2253
  if (value instanceof MapType) {
1876
- encoder.f26(Companion_instance_5.p2o(), value);
2254
+ encoder.a27(Companion_instance_5.l2p(), value);
1877
2255
  } else {
1878
2256
  if (value instanceof EnumType) {
1879
- encoder.f26(Companion_getInstance_6().p2o(), value);
2257
+ encoder.a27(Companion_getInstance_6().l2p(), value);
1880
2258
  } else {
1881
2259
  if (value instanceof UnionType) {
1882
- encoder.f26(Companion_instance_7.p2o(), value);
2260
+ encoder.a27(Companion_instance_7.l2p(), value);
1883
2261
  } else {
1884
2262
  if (value instanceof LogicalType) {
1885
2263
  // Inline function 'kotlin.TODO' call
@@ -1894,10 +2272,10 @@ protoOf(TypeSerializer).i4a = function (encoder, value) {
1894
2272
  }
1895
2273
  }
1896
2274
  };
1897
- protoOf(TypeSerializer).o21 = function (encoder, value) {
1898
- return this.i4a(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
2275
+ protoOf(TypeSerializer).k22 = function (encoder, value) {
2276
+ return this.j4b(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
1899
2277
  };
1900
- protoOf(TypeSerializer).p21 = function (decoder) {
2278
+ protoOf(TypeSerializer).l22 = function (decoder) {
1901
2279
  var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
1902
2280
  var tmp;
1903
2281
  if (tmp0_elvis_lhs == null) {
@@ -1906,18 +2284,18 @@ protoOf(TypeSerializer).p21 = function (decoder) {
1906
2284
  tmp = tmp0_elvis_lhs;
1907
2285
  }
1908
2286
  var input = tmp;
1909
- var element = input.l2o();
2287
+ var element = input.h2p();
1910
2288
  var tmp_0;
1911
2289
  if (element instanceof JsonObject) {
1912
2290
  var tmp_1;
1913
- if (element.r2o('items')) {
1914
- tmp_1 = input.k2o().k2m(Companion_instance_4.p2o(), element);
1915
- } else if (element.r2o('fields')) {
1916
- tmp_1 = input.k2o().k2m(Companion_getInstance_3().p2o(), element);
1917
- } else if (element.r2o('symbols')) {
1918
- tmp_1 = input.k2o().k2m(Companion_getInstance_6().p2o(), element);
1919
- } else if (element.r2o('logicalType')) {
1920
- tmp_1 = input.k2o().k2m(Companion_instance_8.p2o(), element);
2291
+ if (element.n2p('items')) {
2292
+ tmp_1 = input.g2p().f2n(Companion_instance_4.l2p(), element);
2293
+ } else if (element.n2p('fields')) {
2294
+ tmp_1 = input.g2p().f2n(Companion_getInstance_3().l2p(), element);
2295
+ } else if (element.n2p('symbols')) {
2296
+ tmp_1 = input.g2p().f2n(Companion_getInstance_6().l2p(), element);
2297
+ } else if (element.n2p('logicalType')) {
2298
+ tmp_1 = input.g2p().f2n(Companion_instance_8.l2p(), element);
1921
2299
  } else {
1922
2300
  // Inline function 'kotlin.TODO' call
1923
2301
  var reason = 'Unknown object type: ' + element.toString();
@@ -1926,7 +2304,7 @@ protoOf(TypeSerializer).p21 = function (decoder) {
1926
2304
  tmp_0 = tmp_1;
1927
2305
  } else {
1928
2306
  if (element instanceof JsonPrimitive) {
1929
- tmp_0 = new SimpleType(element.n1f());
2307
+ tmp_0 = new SimpleType(element.f1g());
1930
2308
  } else {
1931
2309
  if (element instanceof JsonArray) {
1932
2310
  // Inline function 'kotlin.TODO' call
@@ -1945,14 +2323,202 @@ function TypeSerializer_getInstance() {
1945
2323
  new TypeSerializer();
1946
2324
  return TypeSerializer_instance;
1947
2325
  }
2326
+ function inDependencyOrder(_this__u8e3s4) {
2327
+ // Inline function 'kotlin.collections.associateBy' call
2328
+ var this_0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.gp_1);
2329
+ var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
2330
+ // Inline function 'kotlin.collections.associateByTo' call
2331
+ var destination = LinkedHashMap_init_$Create$(capacity);
2332
+ var _iterator__ex2g4s = this_0.t();
2333
+ while (_iterator__ex2g4s.u()) {
2334
+ var element = _iterator__ex2g4s.v();
2335
+ var tmp$ret$2 = element.cs().o1();
2336
+ destination.v2(tmp$ret$2, element);
2337
+ }
2338
+ var byName = destination;
2339
+ var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.gp_1);
2340
+ // Inline function 'kotlin.collections.fold' call
2341
+ var accumulator = new Ordering();
2342
+ var _iterator__ex2g4s_0 = tmp0.t();
2343
+ while (_iterator__ex2g4s_0.u()) {
2344
+ var element_0 = _iterator__ex2g4s_0.v();
2345
+ var ordering = accumulator;
2346
+ accumulator = inDependencyOrder$visit(ordering, byName, element_0);
2347
+ }
2348
+ return accumulator.l4b_1;
2349
+ }
2350
+ function customNames(_this__u8e3s4) {
2351
+ var tmp;
2352
+ if (_this__u8e3s4 instanceof Custom) {
2353
+ tmp = listOf(_this__u8e3s4.q18_1);
2354
+ } else {
2355
+ if (_this__u8e3s4 instanceof Iterable) {
2356
+ tmp = customNames(_this__u8e3s4.xp_1);
2357
+ } else {
2358
+ if (_this__u8e3s4 instanceof Dict) {
2359
+ tmp = customNames(_this__u8e3s4.aq_1);
2360
+ } else {
2361
+ var tmp_0;
2362
+ if (_this__u8e3s4 instanceof Primitive) {
2363
+ tmp_0 = true;
2364
+ } else {
2365
+ var tmp_1;
2366
+ if (_this__u8e3s4 instanceof Any) {
2367
+ tmp_1 = true;
2368
+ } else {
2369
+ tmp_1 = _this__u8e3s4 instanceof Unit;
2370
+ }
2371
+ tmp_0 = tmp_1;
2372
+ }
2373
+ if (tmp_0) {
2374
+ tmp = emptyList();
2375
+ } else {
2376
+ noWhenBranchMatchedException();
2377
+ }
2378
+ }
2379
+ }
2380
+ }
2381
+ return tmp;
2382
+ }
2383
+ function Ordering(seen, ordered) {
2384
+ seen = seen === VOID ? emptySet() : seen;
2385
+ ordered = ordered === VOID ? emptyList() : ordered;
2386
+ this.k4b_1 = seen;
2387
+ this.l4b_1 = ordered;
2388
+ }
2389
+ protoOf(Ordering).m4b = function (seen, ordered) {
2390
+ return new Ordering(seen, ordered);
2391
+ };
2392
+ protoOf(Ordering).n4b = function (seen, ordered, $super) {
2393
+ seen = seen === VOID ? this.k4b_1 : seen;
2394
+ ordered = ordered === VOID ? this.l4b_1 : ordered;
2395
+ return $super === VOID ? this.m4b(seen, ordered) : $super.m4b.call(this, seen, ordered);
2396
+ };
2397
+ protoOf(Ordering).toString = function () {
2398
+ return 'Ordering(seen=' + toString(this.k4b_1) + ', ordered=' + toString(this.l4b_1) + ')';
2399
+ };
2400
+ protoOf(Ordering).hashCode = function () {
2401
+ var result = hashCode(this.k4b_1);
2402
+ result = imul(result, 31) + hashCode(this.l4b_1) | 0;
2403
+ return result;
2404
+ };
2405
+ protoOf(Ordering).equals = function (other) {
2406
+ if (this === other)
2407
+ return true;
2408
+ if (!(other instanceof Ordering))
2409
+ return false;
2410
+ if (!equals(this.k4b_1, other.k4b_1))
2411
+ return false;
2412
+ if (!equals(this.l4b_1, other.l4b_1))
2413
+ return false;
2414
+ return true;
2415
+ };
2416
+ function findRefined(_this__u8e3s4, name) {
2417
+ // Inline function 'kotlin.collections.filterIsInstance' call
2418
+ var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.gp_1);
2419
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
2420
+ var destination = ArrayList_init_$Create$_0();
2421
+ var _iterator__ex2g4s = tmp0.t();
2422
+ while (_iterator__ex2g4s.u()) {
2423
+ var element = _iterator__ex2g4s.v();
2424
+ if (element instanceof Refined) {
2425
+ destination.x(element);
2426
+ }
2427
+ }
2428
+ // Inline function 'kotlin.collections.find' call
2429
+ var tmp$ret$3;
2430
+ $l$block: {
2431
+ // Inline function 'kotlin.collections.firstOrNull' call
2432
+ var _iterator__ex2g4s_0 = destination.t();
2433
+ while (_iterator__ex2g4s_0.u()) {
2434
+ var element_0 = _iterator__ex2g4s_0.v();
2435
+ if (element_0.ks_1.o1() === name) {
2436
+ tmp$ret$3 = element_0;
2437
+ break $l$block;
2438
+ }
2439
+ }
2440
+ tmp$ret$3 = null;
2441
+ }
2442
+ return tmp$ret$3;
2443
+ }
2444
+ function inDependencyOrder$dependencies(_this__u8e3s4, byName) {
2445
+ var tmp;
2446
+ if (_this__u8e3s4 instanceof Type) {
2447
+ // Inline function 'kotlin.collections.flatMap' call
2448
+ var tmp0 = get_fields(_this__u8e3s4.kp_1);
2449
+ // Inline function 'kotlin.collections.flatMapTo' call
2450
+ var destination = ArrayList_init_$Create$_0();
2451
+ var _iterator__ex2g4s = tmp0.t();
2452
+ while (_iterator__ex2g4s.u()) {
2453
+ var element = _iterator__ex2g4s.v();
2454
+ var list = customNames(element.op_1);
2455
+ addAll(destination, list);
2456
+ }
2457
+ tmp = destination;
2458
+ } else {
2459
+ if (_this__u8e3s4 instanceof Union) {
2460
+ // Inline function 'kotlin.collections.flatMap' call
2461
+ var tmp0_0 = _this__u8e3s4.br_1;
2462
+ // Inline function 'kotlin.collections.flatMapTo' call
2463
+ var destination_0 = ArrayList_init_$Create$_0();
2464
+ var _iterator__ex2g4s_0 = tmp0_0.t();
2465
+ while (_iterator__ex2g4s_0.u()) {
2466
+ var element_0 = _iterator__ex2g4s_0.v();
2467
+ var list_0 = customNames(element_0);
2468
+ addAll(destination_0, list_0);
2469
+ }
2470
+ tmp = destination_0;
2471
+ } else {
2472
+ tmp = emptyList();
2473
+ }
2474
+ }
2475
+ // Inline function 'kotlin.collections.mapNotNull' call
2476
+ var tmp0_1 = tmp;
2477
+ // Inline function 'kotlin.collections.mapNotNullTo' call
2478
+ var destination_1 = ArrayList_init_$Create$_0();
2479
+ // Inline function 'kotlin.collections.forEach' call
2480
+ var _iterator__ex2g4s_1 = tmp0_1.t();
2481
+ while (_iterator__ex2g4s_1.u()) {
2482
+ var element_1 = _iterator__ex2g4s_1.v();
2483
+ var tmp0_safe_receiver = byName.s2(element_1);
2484
+ if (tmp0_safe_receiver == null)
2485
+ null;
2486
+ else {
2487
+ // Inline function 'kotlin.let' call
2488
+ destination_1.x(tmp0_safe_receiver);
2489
+ }
2490
+ }
2491
+ return destination_1;
2492
+ }
2493
+ function inDependencyOrder$visit(_this__u8e3s4, byName, definition) {
2494
+ var tmp0_subject = definition.cs().o1();
2495
+ var tmp;
2496
+ if (_this__u8e3s4.k4b_1.i1(tmp0_subject)) {
2497
+ tmp = _this__u8e3s4;
2498
+ } else {
2499
+ var tmp0 = inDependencyOrder$dependencies(definition, byName);
2500
+ // Inline function 'kotlin.collections.fold' call
2501
+ var accumulator = _this__u8e3s4.n4b(plus_1(_this__u8e3s4.k4b_1, definition.cs().o1()));
2502
+ var _iterator__ex2g4s = tmp0.t();
2503
+ while (_iterator__ex2g4s.u()) {
2504
+ var element = _iterator__ex2g4s.v();
2505
+ var ordering = accumulator;
2506
+ accumulator = inDependencyOrder$visit(ordering, byName, element);
2507
+ }
2508
+ // Inline function 'kotlin.let' call
2509
+ var it = accumulator;
2510
+ tmp = it.n4b(VOID, plus_0(it.l4b_1, definition));
2511
+ }
2512
+ return tmp;
2513
+ }
1948
2514
  //region block: post-declaration
1949
- protoOf($serializer).r2c = typeParametersSerializers;
1950
- protoOf($serializer_0).r2c = typeParametersSerializers;
1951
- protoOf($serializer_1).r2c = typeParametersSerializers;
1952
- protoOf($serializer_2).r2c = typeParametersSerializers;
1953
- protoOf($serializer_3).r2c = typeParametersSerializers;
1954
- protoOf($serializer_4).r2c = typeParametersSerializers;
1955
- protoOf($serializer_5).r2c = typeParametersSerializers;
2515
+ protoOf($serializer).m2d = typeParametersSerializers;
2516
+ protoOf($serializer_0).m2d = typeParametersSerializers;
2517
+ protoOf($serializer_1).m2d = typeParametersSerializers;
2518
+ protoOf($serializer_2).m2d = typeParametersSerializers;
2519
+ protoOf($serializer_3).m2d = typeParametersSerializers;
2520
+ protoOf($serializer_4).m2d = typeParametersSerializers;
2521
+ protoOf($serializer_5).m2d = typeParametersSerializers;
1956
2522
  //endregion
1957
2523
  //region block: init
1958
2524
  AvroJsonParser_instance = new AvroJsonParser();
@@ -1968,6 +2534,7 @@ Companion_instance_8 = new Companion_8();
1968
2534
  //region block: exports
1969
2535
  export {
1970
2536
  Type_0 as Typel89stdvlxo83,
2537
+ AvroIdlEmitter_getInstance as AvroIdlEmitter_getInstanceyu6o4eau2ce0,
1971
2538
  AvroJsonEmitter_getInstance as AvroJsonEmitter_getInstanceqxb8ioshyd02,
1972
2539
  AvroJsonParser_instance as AvroJsonParser_instance5zz3bwjsci7v,
1973
2540
  };