@flock/wirespec 0.21.1 → 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 (66) hide show
  1. package/arrow-arrow-atomic.mjs +14 -14
  2. package/arrow-arrow-atomic.mjs.map +1 -1
  3. package/arrow-arrow-core.mjs +187 -182
  4. package/arrow-arrow-core.mjs.map +1 -1
  5. package/clikt-clikt-mordant.mjs +89 -89
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1704 -1706
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +465 -465
  10. package/colormath-root-colormath.mjs.map +1 -1
  11. package/kotlin-kotlin-stdlib.mjs +2644 -2481
  12. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  13. package/kotlin-openapi-bindings.mjs +10373 -10346
  14. package/kotlin-openapi-bindings.mjs.map +1 -1
  15. package/kotlin-rgxgen.mjs +1851 -1855
  16. package/kotlin-rgxgen.mjs.map +1 -1
  17. package/kotlinx-io-kotlinx-io-core.mjs +469 -469
  18. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  19. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2038 -2046
  20. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  21. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1859 -1813
  22. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  23. package/mordant-mordant.mjs +1452 -1447
  24. package/mordant-mordant.mjs.map +1 -1
  25. package/package.json +1 -1
  26. package/wirespec-src-compiler-core.mjs +25964 -3598
  27. package/wirespec-src-compiler-core.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-java.mjs +373 -469
  29. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-kotlin.mjs +327 -382
  31. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  32. package/wirespec-src-compiler-emitters-python.mjs +355 -354
  33. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  34. package/wirespec-src-compiler-emitters-rust.mjs +756 -754
  35. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  36. package/wirespec-src-compiler-emitters-scala.mjs +361 -361
  37. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  38. package/wirespec-src-compiler-emitters-typescript.mjs +484 -472
  39. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  40. package/wirespec-src-compiler-emitters-wirespec.mjs +434 -153
  41. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  42. package/wirespec-src-compiler-lib.mjs +978 -441
  43. package/wirespec-src-compiler-lib.mjs.map +1 -1
  44. package/wirespec-src-converter-asyncapi.mjs +5382 -0
  45. package/wirespec-src-converter-asyncapi.mjs.map +1 -0
  46. package/wirespec-src-converter-avro.mjs +1297 -725
  47. package/wirespec-src-converter-avro.mjs.map +1 -1
  48. package/wirespec-src-converter-common.mjs +267 -0
  49. package/wirespec-src-converter-common.mjs.map +1 -1
  50. package/wirespec-src-converter-graphql.mjs +5691 -0
  51. package/wirespec-src-converter-graphql.mjs.map +1 -0
  52. package/wirespec-src-converter-openapi.mjs +1304 -1225
  53. package/wirespec-src-converter-openapi.mjs.map +1 -1
  54. package/wirespec-src-ide-lsp.mjs +1728 -1642
  55. package/wirespec-src-ide-lsp.mjs.map +1 -1
  56. package/wirespec-src-plugin-arguments.mjs +301 -240
  57. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  58. package/wirespec-src-plugin-cli.mjs +161 -133
  59. package/wirespec-src-plugin-cli.mjs.map +1 -1
  60. package/wirespec-src-plugin-npm.d.mts +216 -29
  61. package/wirespec-src-plugin-npm.mjs +188 -95
  62. package/wirespec-src-plugin-npm.mjs.map +1 -1
  63. package/wirespec-src-tools-generator.mjs +61 -53
  64. package/wirespec-src-tools-generator.mjs.map +1 -1
  65. package/wirespec-src-compiler-ir.mjs +0 -18912
  66. package/wirespec-src-compiler-ir.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import {
2
- Boolean_instance237vwt01w3hs8 as Boolean_instance,
3
- Precision_P32_getInstance14q7j3bd2fxd5 as Precision_P32_getInstance,
2
+ Boolean_instance15wa4iqeayn6f as Boolean_instance,
3
+ Precision_P32_getInstance1wn9hty3a2xeu as Precision_P32_getInstance,
4
4
  Integer39lqx4uc63u28 as Integer,
5
- Precision_P64_getInstanceoi1ashg00his as Precision_P64_getInstance,
5
+ Precision_P64_getInstance1kka8j79p47e9 as Precision_P64_getInstance,
6
6
  Number1mui0heypwdhp as Number_0,
7
- Bytes_instance1o9u095wd3kx6 as Bytes_instance,
7
+ Bytes_instance1cqd1xiwjq94x as Bytes_instance,
8
8
  String1czvr8pxnm6on as String_0,
9
9
  Custom1lu6o8txpimqz as Custom,
10
10
  Dict3g7w5wia7rncj as Dict,
@@ -14,16 +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
- FileExtension_JSON_getInstance34944ido213py as FileExtension_JSON_getInstance,
22
- Emitted12h24rpo4uifw as Emitted,
21
+ _Comment___get_value__impl__8r3pla1b4ywrwtg22m7 as _Comment___get_value__impl__8r3pla,
22
+ Comment3jy4x02mtqi9b as Comment,
23
+ get_fields1vhfmr41isbcc as get_fields,
24
+ NullValue_instance1ek1wzdv4iv3a as NullValue_instance,
23
25
  Anyv7qdq63z63rc as Any,
24
- Refined1lkzc0dg6wey7 as Refined,
25
26
  Bytes3eoc50vgt1uem as Bytes,
26
27
  Boolean1fpfi8m5jt3fg as Boolean_0,
28
+ FileExtension_AvroIdl_getInstancecpnmzljs3b85 as FileExtension_AvroIdl_getInstance,
29
+ Emitted12h24rpo4uifw as Emitted,
30
+ Refined1lkzc0dg6wey7 as Refined,
31
+ Emitterpslsvv25okcl as Emitter,
32
+ FileExtension_JSON_getInstancel2q389n0axuc as FileExtension_JSON_getInstance,
27
33
  Channel2fhxi4a4pwb64 as Channel,
28
34
  Module3a9i9fqinyump as Module,
29
35
  Root195zt6zclzd3o as Root,
@@ -35,21 +41,33 @@ import {
35
41
  Collection1k04j3hzsbod0 as Collection,
36
42
  isInterface3d6p8outrmvmk as isInterface,
37
43
  checkCountOverflow1ro2fe1r4xvgf as checkCountOverflow,
38
- Unit_instance28fytmsmm6r23 as Unit_instance,
44
+ Unit_instancev9v8hjid95df as Unit_instance,
39
45
  first58ocm7j58k3q as first,
40
46
  toString1pkumu07cwy4m as toString,
41
- IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
47
+ IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
42
48
  emptyList1g2z5xcrvp2zy as emptyList,
43
49
  collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
44
- ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
50
+ ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
45
51
  toSet2orjxp16sotqu as toSet,
46
52
  listOfvhqybd2zx248 as listOf,
47
- ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
53
+ ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
48
54
  addAll1k27qatfgp3k5 as addAll,
49
55
  plus310ted5e4i90h as plus,
50
56
  protoOf180f3jzyo7rfj as protoOf,
51
57
  VOID3gxj6tk5isa35 as VOID,
52
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,
69
+ equals2au1ep9vhcato as equals,
70
+ lines3g90sq0zeq43v as lines,
53
71
  KtList3hktaavzmj137 as KtList,
54
72
  getKClass3t8tygqu4lcxf as getKClass,
55
73
  arrayOf1akklvh2at202 as arrayOf,
@@ -59,31 +77,48 @@ import {
59
77
  toList3jhuyej2anx2q as toList,
60
78
  plus20p0vtfmu0596 as plus_0,
61
79
  initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
62
- objectCreate1ve4bgxiu4x98 as objectCreate,
63
80
  copyToArray2j022khrow2yi as copyToArray,
64
- LazyThreadSafetyMode_PUBLICATION_getInstance1vspt3xrdob1a as LazyThreadSafetyMode_PUBLICATION_getInstance,
81
+ objectCreate1ve4bgxiu4x98 as objectCreate,
82
+ LazyThreadSafetyMode_PUBLICATION_getInstance3qslfm3vqg6y3 as LazyThreadSafetyMode_PUBLICATION_getInstance,
65
83
  lazy1261dae0bgscp as lazy,
84
+ toString30pk9tzaqopn as toString_1,
66
85
  getStringHashCode26igk1bx568vk as getStringHashCode,
86
+ hashCodeq5arwsb9dgti as hashCode,
67
87
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
68
88
  AbstractList3ck35puwbp1e9 as AbstractList,
69
89
  toList383f556t1dixk as toList_0,
70
90
  initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
71
- hashCodeq5arwsb9dgti as hashCode,
72
- equals2au1ep9vhcato as equals,
73
- StringCompanionObject_instance3sox3h548pjra as StringCompanionObject_instance,
91
+ getValue48kllevslyh6 as getValue,
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,
74
98
  } from './kotlin-kotlin-stdlib.mjs';
75
99
  import {
76
- NonEmptyList__toList_impl_t5xcy2362qtlja6arn8 as NonEmptyList__toList_impl_t5xcy2,
77
- _NonEmptyList___get_all__impl__pmf5092svcdxelgy1aa as _NonEmptyList___get_all__impl__pmf509,
78
- _NonEmptyList___init__impl__fxd0xp3qwfhfa83yk9f as _NonEmptyList___init__impl__fxd0xp,
100
+ toDefaultValue3275mygjoueae as toDefaultValue,
101
+ toJsonElement1kac8qrfwiq85 as toJsonElement,
102
+ withValidEnumDefaults1a27sgh5tk9q4 as withValidEnumDefaults,
103
+ } from './wirespec-src-converter-common.mjs';
104
+ import {
105
+ _NonEmptyList___get_all__impl__pmf5092xnz0i2teaa6d as _NonEmptyList___get_all__impl__pmf509,
106
+ _NonEmptyList___init__impl__fxd0xprpnd63likgzm as _NonEmptyList___init__impl__fxd0xp,
107
+ NonEmptyList__toList_impl_t5xcy266xhxpenbpfx as NonEmptyList__toList_impl_t5xcy2,
79
108
  toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
80
109
  NonEmptyList3ak25ihy2gcvs as NonEmptyList,
81
110
  nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
82
111
  } from './arrow-arrow-core.mjs';
83
112
  import {
84
- Default_getInstancejkv49nkel8hp as Default_getInstance,
113
+ Default_getInstancejyc493d440j2 as Default_getInstance,
85
114
  Jsonsmkyu9xjl7fv as Json,
115
+ JsonEncoder1qlse6simkfi1 as JsonEncoder,
116
+ JsonObjectBuilder2nl6rv6vdayuk as JsonObjectBuilder,
117
+ put2xyujhcf0ewjd as put,
86
118
  JsonDecoder1rijst5ne6qla as JsonDecoder,
119
+ get_jsonObject2u4z2ch1uuca9 as get_jsonObject,
120
+ get_jsonPrimitivez17tyd5rw1ql as get_jsonPrimitive,
121
+ get_contentOrNull35s97cgi8z9eo as get_contentOrNull,
87
122
  JsonObjectee06ihoeeiqj as JsonObject,
88
123
  JsonArray2urf8ey7u44sd as JsonArray,
89
124
  JsonPrimitive3ttzjh2ft5dnx as JsonPrimitive,
@@ -91,66 +126,70 @@ import {
91
126
  import {
92
127
  serializer1i4e9ym37oxmo as serializer,
93
128
  KSerializerzf77vz1967fq as KSerializer,
129
+ SerializerFactory1qv9hivitncuv as SerializerFactory,
94
130
  PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
95
- StringSerializer_getInstance2hpyx1v3alnih as StringSerializer_getInstance,
96
- UnknownFieldException_init_$Create$2dwzk7svpmqo1 as UnknownFieldException_init_$Create$,
97
- get_nullable197rfua9r7fsz as get_nullable,
131
+ UnknownFieldException_init_$Create$29petggjjaptk as UnknownFieldException_init_$Create$,
132
+ StringSerializer_getInstance11v9md0a7d9yk as StringSerializer_getInstance,
98
133
  typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
99
134
  GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
100
135
  throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
101
- SerializerFactory1qv9hivitncuv as SerializerFactory,
102
136
  ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer,
103
- IntSerializer_getInstance3pev8isxtkhc2 as IntSerializer_getInstance,
104
- SEALED_getInstance1vxvpfzfxmg5m as SEALED_getInstance,
137
+ get_nullable197rfua9r7fsz as get_nullable,
138
+ IntSerializer_getInstanceuhm8c1wku08l as IntSerializer_getInstance,
139
+ buildClassSerialDescriptors2a6xdp6mrtw as buildClassSerialDescriptor,
140
+ SerializationException_init_$Create$2snijnm3rk5ru as SerializationException_init_$Create$,
141
+ SEALED_getInstance2urch17m532zf as SEALED_getInstance,
105
142
  buildSerialDescriptor2873qmkp8r2ib as buildSerialDescriptor,
106
143
  ListSerializer1hxuk9dx5n9du as ListSerializer,
107
- SerializationException_init_$Create$2gf2fbfh3gfxm as SerializationException_init_$Create$,
108
144
  serializer1x79l67jvwntn as serializer_0,
145
+ SerializableWithd2dap36updxd as SerializableWith,
109
146
  } from './kotlinx-serialization-kotlinx-serialization-core.mjs';
110
147
  //region block: imports
111
148
  var imul = Math.imul;
112
149
  //endregion
113
150
  //region block: pre-declaration
114
151
  initMetadataForObject(AvroConverter, 'AvroConverter');
115
- initMetadataForObject(AvroJsonEmitter, 'AvroJsonEmitter');
152
+ initMetadataForObject(AvroIdlEmitter, 'AvroIdlEmitter', VOID, VOID, [Emitter]);
153
+ initMetadataForObject(AvroJsonEmitter, 'AvroJsonEmitter', VOID, VOID, [Emitter]);
116
154
  initMetadataForObject(AvroJsonParser, 'AvroJsonParser');
117
155
  initMetadataForCompanion(Companion);
118
- initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
119
156
  initMetadataForCompanion(Companion_0);
120
157
  initMetadataForCompanion(Companion_1, VOID, [SerializerFactory]);
121
158
  initMetadataForCompanion(Companion_2);
122
- initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
159
+ initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
123
160
  initMetadataForCompanion(Companion_3);
124
- initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
161
+ initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
125
162
  initMetadataForCompanion(Companion_4);
126
- initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
163
+ initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
127
164
  initMetadataForCompanion(Companion_5);
128
- initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
165
+ initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
129
166
  initMetadataForCompanion(Companion_6);
130
- initMetadataForObject($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
167
+ initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
131
168
  initMetadataForCompanion(Companion_7);
132
- initMetadataForObject($serializer_5, '$serializer', VOID, VOID, [GeneratedSerializer]);
169
+ initMetadataForObject($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
133
170
  initMetadataForCompanion(Companion_8);
134
- initMetadataForObject($serializer_6, '$serializer', VOID, VOID, [GeneratedSerializer]);
135
- initMetadataForClass(Field_0, 'Field', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
171
+ initMetadataForObject($serializer_5, '$serializer', VOID, VOID, [GeneratedSerializer]);
172
+ initMetadataForClass(Field_0, 'Field', VOID, VOID, VOID, VOID, VOID, {0: FieldSerializer_getInstance});
136
173
  initMetadataForClass(TypeList, 'TypeList', VOID, AbstractList, VOID, VOID, VOID, {0: TypeListSerializer_getInstance});
137
174
  initMetadataForInterface(Type_0, 'Type', VOID, VOID, VOID, VOID, VOID, {0: TypeSerializer_getInstance});
138
- initMetadataForClass(SimpleType, 'SimpleType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_0});
139
- initMetadataForClass(RecordType, 'RecordType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_1});
140
- initMetadataForClass(ArrayType, 'ArrayType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_2});
141
- initMetadataForClass(MapType, 'MapType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_3});
142
- initMetadataForClass(EnumType, 'EnumType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_4});
143
- initMetadataForClass(UnionType, 'UnionType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_5});
144
- initMetadataForClass(LogicalType, 'LogicalType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_6});
175
+ initMetadataForClass(SimpleType, 'SimpleType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance});
176
+ initMetadataForClass(RecordType, 'RecordType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_0});
177
+ initMetadataForClass(ArrayType, 'ArrayType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_1});
178
+ initMetadataForClass(MapType, 'MapType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_2});
179
+ initMetadataForClass(EnumType, 'EnumType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_3});
180
+ initMetadataForClass(UnionType, 'UnionType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_4});
181
+ initMetadataForClass(LogicalType, 'LogicalType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_5});
182
+ initMetadataForObject(FieldSerializer, 'FieldSerializer', VOID, VOID, [KSerializer]);
145
183
  initMetadataForObject(TypeListSerializer, 'TypeListSerializer', VOID, VOID, [KSerializer]);
146
184
  initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer]);
185
+ initMetadataForClass(Ordering, 'Ordering', Ordering);
147
186
  //endregion
148
- function isNullable($this, _this__u8e3s4) {
149
- return _this__u8e3s4.v1($this.p46_1);
187
+ function isNullable($this, $receiver) {
188
+ return $receiver.i1($this.y48_1);
150
189
  }
151
- function toPrimitive($this, _this__u8e3s4) {
190
+ function toPrimitive($this, $receiver) {
152
191
  var tmp;
153
- switch (_this__u8e3s4.q46_1) {
192
+ switch ($receiver.z48_1) {
154
193
  case 'boolean':
155
194
  tmp = Boolean_instance;
156
195
  break;
@@ -173,15 +212,17 @@ function toPrimitive($this, _this__u8e3s4) {
173
212
  tmp = new String_0(null);
174
213
  break;
175
214
  default:
176
- var reason = 'primitive not mapped ' + _this__u8e3s4.q46_1;
215
+ // Inline function 'kotlin.TODO' call
216
+
217
+ var reason = 'primitive not mapped ' + $receiver.z48_1;
177
218
  throw new NotImplementedError('An operation is not implemented: ' + reason);
178
219
  }
179
220
  return tmp;
180
221
  }
181
- function toReference($this, _this__u8e3s4, isNullable) {
222
+ function toReference($this, $receiver, isNullable) {
182
223
  var tmp;
183
- if (_this__u8e3s4 instanceof SimpleType) {
184
- switch (_this__u8e3s4.q46_1) {
224
+ if ($receiver instanceof SimpleType) {
225
+ switch ($receiver.z48_1) {
185
226
  case 'null':
186
227
  tmp = new Unit(isNullable);
187
228
  break;
@@ -192,30 +233,30 @@ function toReference($this, _this__u8e3s4, isNullable) {
192
233
  case 'double':
193
234
  case 'bytes':
194
235
  case 'string':
195
- tmp = new Primitive(toPrimitive($this, _this__u8e3s4), isNullable);
236
+ tmp = new Primitive(toPrimitive($this, $receiver), isNullable);
196
237
  break;
197
238
  default:
198
- tmp = new Custom(_this__u8e3s4.q46_1, isNullable);
239
+ tmp = new Custom($receiver.z48_1, isNullable);
199
240
  break;
200
241
  }
201
242
  } else {
202
- if (_this__u8e3s4 instanceof ArrayType) {
203
- tmp = new Iterable(toReference($this, _this__u8e3s4.j47_1, false), isNullable);
243
+ if ($receiver instanceof ArrayType) {
244
+ tmp = new Iterable(toReference($this, $receiver.s49_1, false), isNullable);
204
245
  } else {
205
- if (_this__u8e3s4 instanceof RecordType) {
206
- tmp = new Custom(_this__u8e3s4.e47_1, isNullable);
246
+ if ($receiver instanceof RecordType) {
247
+ tmp = new Custom($receiver.n49_1, isNullable);
207
248
  } else {
208
- if (_this__u8e3s4 instanceof EnumType) {
209
- tmp = new Custom(_this__u8e3s4.a47_1, isNullable);
249
+ if ($receiver instanceof EnumType) {
250
+ tmp = new Custom($receiver.j49_1, isNullable);
210
251
  } else {
211
- if (_this__u8e3s4 instanceof LogicalType) {
212
- tmp = toReference($this, new SimpleType(_this__u8e3s4.v46_1), isNullable);
252
+ if ($receiver instanceof LogicalType) {
253
+ tmp = toReference($this, new SimpleType($receiver.e49_1), isNullable);
213
254
  } else {
214
- if (_this__u8e3s4 instanceof MapType) {
215
- tmp = new Dict(toReference($this, _this__u8e3s4.u46_1, false), isNullable);
255
+ if ($receiver instanceof MapType) {
256
+ tmp = new Dict(toReference($this, $receiver.d49_1, false), isNullable);
216
257
  } else {
217
- if (_this__u8e3s4 instanceof UnionType) {
218
- tmp = new Custom(_this__u8e3s4.r46_1, isNullable);
258
+ if ($receiver instanceof UnionType) {
259
+ tmp = new Custom($receiver.a49_1, isNullable);
219
260
  } else {
220
261
  noWhenBranchMatchedException();
221
262
  }
@@ -227,11 +268,11 @@ function toReference($this, _this__u8e3s4, isNullable) {
227
268
  }
228
269
  return tmp;
229
270
  }
230
- function toReference_0($this, _this__u8e3s4) {
231
- var list = minus(_this__u8e3s4, $this.p46_1);
271
+ function toReference_0($this, $receiver) {
272
+ var list = minus($receiver, $this.y48_1);
232
273
  var tmp;
233
274
  if (list.b1() === 1) {
234
- tmp = toReference($this, first(list), isNullable($this, _this__u8e3s4));
275
+ tmp = toReference($this, first(list), isNullable($this, $receiver));
235
276
  } else {
236
277
  var tmp$ret$0;
237
278
  $l$block: {
@@ -258,57 +299,61 @@ function toReference_0($this, _this__u8e3s4) {
258
299
  tmp$ret$0 = count;
259
300
  }
260
301
  if (tmp$ret$0 > 1) {
302
+ // Inline function 'kotlin.error' call
261
303
  var message = 'Cannot have multiple SimpleTypes in Union';
262
304
  throw IllegalStateException_init_$Create$(toString(message));
263
305
  } else {
264
- tmp = toReference($this, first(list), isNullable($this, _this__u8e3s4));
306
+ tmp = toReference($this, first(list), isNullable($this, $receiver));
265
307
  }
266
308
  }
267
309
  return tmp;
268
310
  }
269
- function toType($this, _this__u8e3s4) {
311
+ function toType($this, $receiver) {
270
312
  var tmp0_annotations = emptyList();
271
- var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.e47_1);
313
+ var tmp1_identifier = new DefinitionIdentifier($receiver.n49_1);
272
314
  var tmp2_extends = emptyList();
273
315
  // Inline function 'kotlin.collections.map' call
274
- var this_0 = _this__u8e3s4.g47_1;
316
+ var this_0 = $receiver.p49_1;
275
317
  // Inline function 'kotlin.collections.mapTo' call
276
318
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
277
319
  var _iterator__ex2g4s = this_0.t();
278
320
  while (_iterator__ex2g4s.u()) {
279
321
  var item = _iterator__ex2g4s.v();
280
- var tmp0_identifier = new FieldIdentifier(item.k47_1);
281
- var tmp1_annotations = emptyList();
282
- var tmp2_reference = toReference_0(AvroConverter_getInstance(), item.l47_1);
283
- var tmp$ret$0 = new Field(tmp1_annotations, tmp0_identifier, tmp2_reference);
284
- destination.x(tmp$ret$0);
322
+ // Inline function 'kotlin.let' call
323
+ var reference = toReference_0(AvroConverter_getInstance(), item.u49_1);
324
+ var tmp1_identifier_0 = new FieldIdentifier(item.t49_1);
325
+ var tmp2_annotations = emptyList();
326
+ var tmp0_safe_receiver = item.w49_1;
327
+ var tmp3_defaultValue = tmp0_safe_receiver == null ? null : toDefaultValue(tmp0_safe_receiver, reference);
328
+ var tmp$ret$2 = new Field(tmp2_annotations, tmp1_identifier_0, reference, tmp3_defaultValue);
329
+ destination.x(tmp$ret$2);
285
330
  }
286
331
  var tmp3_shape = new Shape(destination);
287
332
  return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
288
333
  }
289
- function toEnum($this, _this__u8e3s4) {
290
- return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.a47_1), toSet(_this__u8e3s4.c47_1));
334
+ function toEnum($this, $receiver) {
335
+ return new Enum(null, emptyList(), new DefinitionIdentifier($receiver.j49_1), toSet($receiver.l49_1));
291
336
  }
292
- function toUnion($this, _this__u8e3s4, name) {
337
+ function toUnion($this, $receiver, name) {
293
338
  var tmp = emptyList();
294
339
  var tmp_0 = new DefinitionIdentifier(name);
295
340
  // Inline function 'kotlin.collections.map' call
296
- var this_0 = _this__u8e3s4.s46_1;
341
+ var this_0 = $receiver.b49_1;
297
342
  // Inline function 'kotlin.collections.mapTo' call
298
343
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
299
344
  var _iterator__ex2g4s = this_0.t();
300
345
  while (_iterator__ex2g4s.u()) {
301
346
  var item = _iterator__ex2g4s.v();
302
- var tmp$ret$0 = toReference(AvroConverter_getInstance(), item, false);
303
- destination.x(tmp$ret$0);
347
+ var tmp$ret$2 = toReference(AvroConverter_getInstance(), item, false);
348
+ destination.x(tmp$ret$2);
304
349
  }
305
350
  return new Union(null, tmp, tmp_0, toSet(destination));
306
351
  }
307
352
  function AvroConverter() {
308
353
  AvroConverter_instance = this;
309
- this.p46_1 = new SimpleType('null');
354
+ this.y48_1 = new SimpleType('null');
310
355
  }
311
- protoOf(AvroConverter).o47 = function (_this__u8e3s4, name) {
356
+ protoOf(AvroConverter).x49 = function (_this__u8e3s4, name) {
312
357
  var tmp;
313
358
  if (_this__u8e3s4 instanceof SimpleType) {
314
359
  tmp = emptyList();
@@ -316,20 +361,20 @@ protoOf(AvroConverter).o47 = function (_this__u8e3s4, name) {
316
361
  if (_this__u8e3s4 instanceof RecordType) {
317
362
  var tmp_0 = listOf(toType(this, _this__u8e3s4));
318
363
  // Inline function 'kotlin.collections.flatMap' call
319
- var tmp0 = _this__u8e3s4.g47_1;
364
+ var tmp0 = _this__u8e3s4.p49_1;
320
365
  // Inline function 'kotlin.collections.flatMapTo' call
321
366
  var destination = ArrayList_init_$Create$_0();
322
367
  var _iterator__ex2g4s = tmp0.t();
323
368
  while (_iterator__ex2g4s.u()) {
324
369
  var element = _iterator__ex2g4s.v();
325
370
  // Inline function 'kotlin.collections.flatMap' call
326
- var tmp0_0 = element.l47_1;
371
+ var tmp0_0 = element.u49_1;
327
372
  // Inline function 'kotlin.collections.flatMapTo' call
328
373
  var destination_0 = ArrayList_init_$Create$_0();
329
374
  var _iterator__ex2g4s_0 = tmp0_0.t();
330
375
  while (_iterator__ex2g4s_0.u()) {
331
376
  var element_0 = _iterator__ex2g4s_0.v();
332
- var list = AvroConverter_getInstance().o47(element_0, name);
377
+ var list = AvroConverter_getInstance().x49(element_0, name);
333
378
  addAll(destination_0, list);
334
379
  }
335
380
  var list_0 = destination_0;
@@ -338,7 +383,7 @@ protoOf(AvroConverter).o47 = function (_this__u8e3s4, name) {
338
383
  tmp = plus(tmp_0, destination);
339
384
  } else {
340
385
  if (_this__u8e3s4 instanceof ArrayType) {
341
- tmp = this.o47(_this__u8e3s4.j47_1, name);
386
+ tmp = this.x49(_this__u8e3s4.s49_1, name);
342
387
  } else {
343
388
  if (_this__u8e3s4 instanceof EnumType) {
344
389
  tmp = listOf(toEnum(this, _this__u8e3s4));
@@ -347,7 +392,7 @@ protoOf(AvroConverter).o47 = function (_this__u8e3s4, name) {
347
392
  tmp = emptyList();
348
393
  } else {
349
394
  if (_this__u8e3s4 instanceof MapType) {
350
- tmp = this.o47(_this__u8e3s4.u46_1, name);
395
+ tmp = this.x49(_this__u8e3s4.d49_1, name);
351
396
  } else {
352
397
  if (_this__u8e3s4 instanceof UnionType) {
353
398
  tmp = listOf(toUnion(this, _this__u8e3s4, name));
@@ -362,9 +407,9 @@ protoOf(AvroConverter).o47 = function (_this__u8e3s4, name) {
362
407
  }
363
408
  return tmp;
364
409
  };
365
- protoOf(AvroConverter).p47 = function (_this__u8e3s4, name, $super) {
410
+ protoOf(AvroConverter).y49 = function (_this__u8e3s4, name, $super) {
366
411
  name = name === VOID ? '' : name;
367
- return $super === VOID ? this.o47(_this__u8e3s4, name) : $super.o47.call(this, _this__u8e3s4, name);
412
+ return $super === VOID ? this.x49(_this__u8e3s4, name) : $super.x49.call(this, _this__u8e3s4, name);
368
413
  };
369
414
  var AvroConverter_instance;
370
415
  function AvroConverter_getInstance() {
@@ -372,16 +417,359 @@ function AvroConverter_getInstance() {
372
417
  new AvroConverter();
373
418
  return AvroConverter_instance;
374
419
  }
375
- function findType($this, _this__u8e3s4, name) {
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
+ }
486
+ function isNonNull($this, $receiver) {
487
+ return !($receiver == null) && !equals($receiver, NullValue_instance);
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
+ }
763
+ function findType($this, $receiver, name) {
376
764
  // Inline function 'kotlin.collections.find' call
377
- var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.gr_1);
765
+ var tmp0 = NonEmptyList__toList_impl_t5xcy2($receiver.gp_1);
378
766
  var tmp$ret$1;
379
767
  $l$block: {
380
768
  // Inline function 'kotlin.collections.firstOrNull' call
381
769
  var _iterator__ex2g4s = tmp0.t();
382
770
  while (_iterator__ex2g4s.u()) {
383
771
  var element = _iterator__ex2g4s.v();
384
- if (element.mr().m1() === name) {
772
+ if (element.cs().o1() === name) {
385
773
  tmp$ret$1 = element;
386
774
  break $l$block;
387
775
  }
@@ -392,14 +780,18 @@ function findType($this, _this__u8e3s4, name) {
392
780
  }
393
781
  function AvroJsonEmitter() {
394
782
  AvroJsonEmitter_instance = this;
395
- this.q47_1 = FileExtension_JSON_getInstance();
783
+ this.e4a_1 = FileExtension_JSON_getInstance();
784
+ this.f4a_1 = true;
396
785
  }
397
- protoOf(AvroJsonEmitter).kr = function () {
398
- return this.q47_1;
786
+ protoOf(AvroJsonEmitter).vp = function () {
787
+ return this.e4a_1;
788
+ };
789
+ protoOf(AvroJsonEmitter).up = function () {
790
+ return this.f4a_1;
399
791
  };
400
- protoOf(AvroJsonEmitter).no = function (ast, logger) {
792
+ protoOf(AvroJsonEmitter).to = function (ast, logger) {
401
793
  // Inline function 'arrow.core.NonEmptyList.map' call
402
- var this_0 = ast.hr_1;
794
+ var this_0 = ast.ep_1;
403
795
  // Inline function 'kotlin.collections.map' call
404
796
  var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
405
797
  // Inline function 'kotlin.collections.mapTo' call
@@ -407,9 +799,9 @@ protoOf(AvroJsonEmitter).no = function (ast, logger) {
407
799
  var _iterator__ex2g4s = this_1.t();
408
800
  while (_iterator__ex2g4s.u()) {
409
801
  var item = _iterator__ex2g4s.v();
410
- logger.ir('Emitting Nodes from ' + item.fr_1.co_1 + ' ');
411
- var tmp$ret$0 = AvroJsonEmitter_getInstance().r47(item);
412
- destination.x(tmp$ret$0);
802
+ logger.zr('Emitting Nodes from ' + item.fp_1.io_1 + ' ');
803
+ var tmp$ret$3 = AvroJsonEmitter_getInstance().g4a(item);
804
+ destination.x(tmp$ret$3);
413
805
  }
414
806
  // Inline function 'arrow.core.NonEmptyList.map' call
415
807
  var this_2 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -423,11 +815,11 @@ protoOf(AvroJsonEmitter).no = function (ast, logger) {
423
815
  // Inline function 'kotlinx.serialization.encodeToString' call
424
816
  var this_4 = Default_getInstance();
425
817
  // Inline function 'kotlinx.serialization.serializer' call
426
- var this_5 = this_4.w23();
818
+ var this_5 = this_4.x25();
427
819
  // Inline function 'kotlinx.serialization.internal.cast' call
428
820
  var this_6 = serializer(this_5, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
429
- var tmp$ret$5 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
430
- var tmp$ret$7 = this_4.b2l(tmp$ret$5, item_0);
821
+ var tmp$ret$9 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
822
+ var tmp$ret$7 = this_4.c2n(tmp$ret$9, item_0);
431
823
  destination_0.x(tmp$ret$7);
432
824
  }
433
825
  // Inline function 'arrow.core.NonEmptyList.map' call
@@ -439,45 +831,45 @@ protoOf(AvroJsonEmitter).no = function (ast, logger) {
439
831
  var _iterator__ex2g4s_1 = this_8.t();
440
832
  while (_iterator__ex2g4s_1.u()) {
441
833
  var item_1 = _iterator__ex2g4s_1.v();
442
- var tmp$ret$11 = new Emitted('schema.avsc', item_1);
443
- destination_1.x(tmp$ret$11);
834
+ var tmp$ret$14 = new Emitted('schema.avsc', item_1);
835
+ destination_1.x(tmp$ret$14);
444
836
  }
445
837
  return _NonEmptyList___init__impl__fxd0xp(destination_1);
446
838
  };
447
- protoOf(AvroJsonEmitter).s47 = function (_this__u8e3s4) {
448
- return new EnumType('enum', _this__u8e3s4.yr_1.m1(), VOID, toList(_this__u8e3s4.zr_1));
839
+ protoOf(AvroJsonEmitter).h4a = function (_this__u8e3s4) {
840
+ return new EnumType('enum', _this__u8e3s4.ps_1.o1(), VOID, toList(_this__u8e3s4.qs_1));
449
841
  };
450
- protoOf(AvroJsonEmitter).t47 = function (_this__u8e3s4) {
451
- var tmp = _this__u8e3s4.aq_1.m1();
842
+ protoOf(AvroJsonEmitter).i4a = function (_this__u8e3s4) {
843
+ var tmp = _this__u8e3s4.ar_1.o1();
452
844
  // Inline function 'kotlin.collections.map' call
453
- var this_0 = _this__u8e3s4.bq_1;
845
+ var this_0 = _this__u8e3s4.br_1;
454
846
  // Inline function 'kotlin.collections.mapTo' call
455
847
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
456
848
  var _iterator__ex2g4s = this_0.t();
457
849
  while (_iterator__ex2g4s.u()) {
458
850
  var item = _iterator__ex2g4s.v();
459
- var tmp$ret$0 = new SimpleType(item.m1());
460
- destination.x(tmp$ret$0);
851
+ var tmp$ret$2 = new SimpleType(item.o1());
852
+ destination.x(tmp$ret$2);
461
853
  }
462
854
  return new UnionType(tmp, TypeList_init_$Create$(destination));
463
855
  };
464
- protoOf(AvroJsonEmitter).u47 = function (_this__u8e3s4, module_0, hasEmitted) {
856
+ protoOf(AvroJsonEmitter).j4a = function (_this__u8e3s4, module_0, hasEmitted) {
465
857
  var tmp;
466
858
  if (_this__u8e3s4 instanceof Dict) {
467
- tmp = new MapType('map', this.u47(_this__u8e3s4.bp_1, module_0, hasEmitted));
859
+ tmp = new MapType('map', this.j4a(_this__u8e3s4.aq_1, module_0, hasEmitted));
468
860
  } else {
469
861
  if (_this__u8e3s4 instanceof Iterable) {
470
- tmp = new ArrayType('array', this.u47(_this__u8e3s4.yo_1, module_0, hasEmitted));
862
+ tmp = new ArrayType('array', this.j4a(_this__u8e3s4.xp_1, module_0, hasEmitted));
471
863
  } else {
472
864
  if (_this__u8e3s4 instanceof Primitive) {
473
- var type = _this__u8e3s4.wt_1;
865
+ var type = _this__u8e3s4.s18_1;
474
866
  var tmp_0;
475
867
  if (type instanceof String_0) {
476
868
  tmp_0 = new SimpleType('string');
477
869
  } else {
478
870
  if (type instanceof Integer) {
479
871
  var tmp_1;
480
- switch (type.tu_1.c3_1) {
872
+ switch (type.a19_1.e3_1) {
481
873
  case 0:
482
874
  tmp_1 = new SimpleType('int');
483
875
  break;
@@ -492,7 +884,7 @@ protoOf(AvroJsonEmitter).u47 = function (_this__u8e3s4, module_0, hasEmitted) {
492
884
  } else {
493
885
  if (type instanceof Number_0) {
494
886
  var tmp_2;
495
- switch (type.wu_1.c3_1) {
887
+ switch (type.v18_1.e3_1) {
496
888
  case 0:
497
889
  tmp_2 = new SimpleType('float');
498
890
  break;
@@ -520,37 +912,39 @@ protoOf(AvroJsonEmitter).u47 = function (_this__u8e3s4, module_0, hasEmitted) {
520
912
  tmp = tmp_0;
521
913
  } else {
522
914
  if (_this__u8e3s4 instanceof Custom) {
523
- var def = findType(this, module_0, _this__u8e3s4.lv_1);
915
+ var def = findType(this, module_0, _this__u8e3s4.q18_1);
524
916
  var tmp_3;
525
917
  if (def instanceof Type) {
526
918
  var tmp_4;
527
- if (hasEmitted.v1(def.eq_1.m1())) {
919
+ if (hasEmitted.i1(def.jp_1.o1())) {
528
920
  // Inline function 'kotlin.let' call
529
- var p0 = def.eq_1.m1();
921
+ var p0 = def.jp_1.o1();
530
922
  tmp_4 = new SimpleType(p0);
531
923
  } else {
532
924
  // Inline function 'kotlin.also' call
533
- hasEmitted.x(def.eq_1.m1());
534
- tmp_4 = this.v47(def, module_0, hasEmitted);
925
+ hasEmitted.x(def.jp_1.o1());
926
+ tmp_4 = this.k4a(def, module_0, hasEmitted);
535
927
  }
536
928
  tmp_3 = tmp_4;
537
929
  } else {
538
930
  if (def instanceof Enum) {
539
- tmp_3 = new SimpleType(def.yr_1.m1());
931
+ tmp_3 = new SimpleType(def.ps_1.o1());
540
932
  } else {
541
933
  if (def instanceof Refined) {
542
- tmp_3 = new SimpleType('string');
934
+ tmp_3 = this.j4a(def.ls_1, module_0, hasEmitted);
543
935
  } else {
544
- tmp_3 = new SimpleType(_this__u8e3s4.lv_1);
936
+ tmp_3 = new SimpleType(_this__u8e3s4.q18_1);
545
937
  }
546
938
  }
547
939
  }
548
940
  tmp = tmp_3;
549
941
  } else {
550
942
  if (_this__u8e3s4 instanceof Any) {
943
+ // Inline function 'kotlin.TODO' call
551
944
  throw new NotImplementedError();
552
945
  } else {
553
946
  if (_this__u8e3s4 instanceof Unit) {
947
+ // Inline function 'kotlin.TODO' call
554
948
  throw new NotImplementedError();
555
949
  } else {
556
950
  noWhenBranchMatchedException();
@@ -562,42 +956,40 @@ protoOf(AvroJsonEmitter).u47 = function (_this__u8e3s4, module_0, hasEmitted) {
562
956
  }
563
957
  return tmp;
564
958
  };
565
- protoOf(AvroJsonEmitter).w47 = function (_this__u8e3s4, module_0, hasEmitted) {
566
- var ref = _this__u8e3s4.tp_1;
959
+ protoOf(AvroJsonEmitter).l4a = function (_this__u8e3s4, module_0, hasEmitted) {
960
+ var ref = _this__u8e3s4.op_1;
567
961
  var tmp;
568
962
  if (ref instanceof Iterable) {
569
- tmp = new ArrayType('array', this.u47(ref.yo_1, module_0, hasEmitted));
963
+ tmp = new ArrayType('array', this.j4a(ref.xp_1, module_0, hasEmitted));
570
964
  } else {
571
- tmp = this.u47(ref, module_0, hasEmitted);
965
+ tmp = this.j4a(ref, module_0, hasEmitted);
572
966
  }
573
967
  return tmp;
574
968
  };
575
- protoOf(AvroJsonEmitter).v47 = function (_this__u8e3s4, module_0, hasEmitted) {
576
- var tmp0_name = _this__u8e3s4.eq_1.m1();
969
+ protoOf(AvroJsonEmitter).k4a = function (_this__u8e3s4, module_0, hasEmitted) {
970
+ var tmp0_name = _this__u8e3s4.jp_1.o1();
577
971
  // Inline function 'kotlin.collections.map' call
578
- var this_0 = _this__u8e3s4.fq_1.kp_1;
972
+ var this_0 = get_fields(_this__u8e3s4.kp_1);
579
973
  // Inline function 'kotlin.collections.mapTo' call
580
974
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
581
975
  var _iterator__ex2g4s = this_0.t();
582
976
  while (_iterator__ex2g4s.u()) {
583
977
  var item = _iterator__ex2g4s.v();
584
- var tmp = item.sp_1.m1();
585
- var tmp_0;
586
- if (item.tp_1.dv()) {
587
- tmp_0 = new TypeList([new SimpleType('null'), AvroJsonEmitter_getInstance().w47(item, module_0, hasEmitted)]);
588
- } else {
589
- tmp_0 = new TypeList([AvroJsonEmitter_getInstance().w47(item, module_0, hasEmitted)]);
590
- }
591
- var tmp$ret$0 = new Field_0(tmp, tmp_0);
592
- destination.x(tmp$ret$0);
978
+ var tmp = item.np_1.o1();
979
+ // Inline function 'kotlin.let' call
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;
983
+ var tmp$ret$2 = new Field_0(tmp, tmp_0, VOID, tmp0_safe_receiver == null ? null : toJsonElement(tmp0_safe_receiver));
984
+ destination.x(tmp$ret$2);
593
985
  }
594
986
  return new RecordType('record', tmp0_name, VOID, destination);
595
987
  };
596
- protoOf(AvroJsonEmitter).r47 = function (module_0) {
988
+ protoOf(AvroJsonEmitter).g4a = function (module_0) {
597
989
  // Inline function 'kotlin.collections.mutableListOf' call
598
990
  var hasEmitted = ArrayList_init_$Create$_0();
599
991
  // Inline function 'kotlin.collections.mapNotNull' call
600
- var tmp0 = NonEmptyList__toList_impl_t5xcy2(module_0.gr_1);
992
+ var tmp0 = inDependencyOrder(module_0);
601
993
  // Inline function 'kotlin.collections.mapNotNullTo' call
602
994
  var destination = ArrayList_init_$Create$_0();
603
995
  // Inline function 'kotlin.collections.forEach' call
@@ -606,13 +998,30 @@ protoOf(AvroJsonEmitter).r47 = function (module_0) {
606
998
  var element = _iterator__ex2g4s.v();
607
999
  var tmp;
608
1000
  if (element instanceof Type) {
609
- tmp = AvroJsonEmitter_getInstance().v47(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);
610
1019
  } else {
611
1020
  if (element instanceof Enum) {
612
- tmp = AvroJsonEmitter_getInstance().s47(element);
1021
+ tmp = AvroJsonEmitter_getInstance().h4a(element);
613
1022
  } else {
614
1023
  if (element instanceof Union) {
615
- tmp = AvroJsonEmitter_getInstance().t47(element);
1024
+ tmp = AvroJsonEmitter_getInstance().i4a(element);
616
1025
  } else {
617
1026
  tmp = null;
618
1027
  }
@@ -635,43 +1044,49 @@ function AvroJsonEmitter_getInstance() {
635
1044
  return AvroJsonEmitter_instance;
636
1045
  }
637
1046
  function AvroJsonParser$parse$lambda($this$Json) {
638
- $this$Json.w2l_1 = true;
639
- $this$Json.x2l_1 = true;
1047
+ $this$Json.y2n_1 = true;
1048
+ $this$Json.z2n_1 = true;
640
1049
  return Unit_instance;
641
1050
  }
642
1051
  function AvroJsonParser() {
643
1052
  }
644
- protoOf(AvroJsonParser).j46 = function (moduleContent, strict) {
1053
+ protoOf(AvroJsonParser).r48 = function (moduleContent, strict) {
645
1054
  var json = Json(VOID, AvroJsonParser$parse$lambda);
646
1055
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
647
- var string = moduleContent.xn_1;
1056
+ var string = moduleContent.do_1;
648
1057
  // Inline function 'kotlinx.serialization.serializer' call
649
- var this_0 = json.w23();
1058
+ var this_0 = json.x25();
650
1059
  // Inline function 'kotlinx.serialization.internal.cast' call
651
1060
  var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
652
1061
  var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
653
- var avro = json.c2l(tmp$ret$1, string);
654
- var tmp = AvroConverter_getInstance().p47(avro);
1062
+ var avro = json.d2n(tmp$ret$1, string);
1063
+ var tmp = AvroConverter_getInstance().y49(avro);
655
1064
  var tmp_0;
656
1065
  if (avro instanceof RecordType) {
657
- tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.e47_1), new Custom(avro.e47_1, false));
1066
+ tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.n49_1), new Custom(avro.n49_1, false));
658
1067
  } else {
659
1068
  if (avro instanceof ArrayType) {
1069
+ // Inline function 'kotlin.TODO' call
660
1070
  throw new NotImplementedError();
661
1071
  } else {
662
1072
  if (avro instanceof EnumType) {
1073
+ // Inline function 'kotlin.TODO' call
663
1074
  throw new NotImplementedError();
664
1075
  } else {
665
1076
  if (avro instanceof SimpleType) {
1077
+ // Inline function 'kotlin.TODO' call
666
1078
  throw new NotImplementedError();
667
1079
  } else {
668
1080
  if (avro instanceof LogicalType) {
1081
+ // Inline function 'kotlin.TODO' call
669
1082
  throw new NotImplementedError();
670
1083
  } else {
671
1084
  if (avro instanceof MapType) {
1085
+ // Inline function 'kotlin.TODO' call
672
1086
  throw new NotImplementedError();
673
1087
  } else {
674
1088
  if (avro instanceof UnionType) {
1089
+ // Inline function 'kotlin.TODO' call
675
1090
  throw new NotImplementedError();
676
1091
  } else {
677
1092
  noWhenBranchMatchedException();
@@ -683,16 +1098,27 @@ protoOf(AvroJsonParser).j46 = function (moduleContent, strict) {
683
1098
  }
684
1099
  }
685
1100
  var result = plus_0(tmp, tmp_0);
686
- var tmp1_elvis_lhs = toNonEmptyListOrNull(result);
1101
+ // Inline function 'kotlin.collections.map' call
1102
+ // Inline function 'kotlin.collections.mapTo' call
1103
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(result, 10));
1104
+ var _iterator__ex2g4s = result.t();
1105
+ while (_iterator__ex2g4s.u()) {
1106
+ var item = _iterator__ex2g4s.v();
1107
+ var tmp$ret$11 = withValidEnumDefaults(item, result);
1108
+ destination.x(tmp$ret$11);
1109
+ }
1110
+ var definitions = destination;
1111
+ var tmp1_elvis_lhs = toNonEmptyListOrNull(definitions);
687
1112
  var tmp_1;
688
1113
  var tmp_2 = tmp1_elvis_lhs;
689
1114
  if ((tmp_2 == null ? null : new NonEmptyList(tmp_2)) == null) {
1115
+ // Inline function 'kotlin.error' call
690
1116
  var message = 'Cannot yield non empty AST';
691
1117
  throw IllegalStateException_init_$Create$(toString(message));
692
1118
  } else {
693
1119
  tmp_1 = tmp1_elvis_lhs;
694
1120
  }
695
- return new Root(nonEmptyListOf(new Module(moduleContent.wn_1, tmp_1), []));
1121
+ return new Root(nonEmptyListOf(new Module(moduleContent.co_1, tmp_1), []));
696
1122
  };
697
1123
  var AvroJsonParser_instance;
698
1124
  function AvroJsonParser_getInstance() {
@@ -704,114 +1130,6 @@ var Companion_instance;
704
1130
  function Companion_getInstance() {
705
1131
  return Companion_instance;
706
1132
  }
707
- function $serializer() {
708
- $serializer_instance = this;
709
- var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.Field', this, 4);
710
- tmp0_serialDesc.v2a('name', false);
711
- tmp0_serialDesc.v2a('type', false);
712
- tmp0_serialDesc.v2a('doc', true);
713
- tmp0_serialDesc.v2a('default', true);
714
- this.x47_1 = tmp0_serialDesc;
715
- }
716
- protoOf($serializer).y47 = function (encoder, value) {
717
- var tmp0_desc = this.x47_1;
718
- var tmp1_output = encoder.h23(tmp0_desc);
719
- tmp1_output.w24(tmp0_desc, 0, value.k47_1);
720
- tmp1_output.y24(tmp0_desc, 1, TypeListSerializer_getInstance(), value.l47_1);
721
- if (tmp1_output.e25(tmp0_desc, 2) ? true : !(value.m47_1 == null)) {
722
- tmp1_output.a25(tmp0_desc, 2, StringSerializer_getInstance(), value.m47_1);
723
- }
724
- if (tmp1_output.e25(tmp0_desc, 3) ? true : !(value.n47_1 == null)) {
725
- tmp1_output.a25(tmp0_desc, 3, StringSerializer_getInstance(), value.n47_1);
726
- }
727
- tmp1_output.i23(tmp0_desc);
728
- };
729
- protoOf($serializer).i20 = function (encoder, value) {
730
- return this.y47(encoder, value instanceof Field_0 ? value : THROW_CCE());
731
- };
732
- protoOf($serializer).j20 = function (decoder) {
733
- var tmp0_desc = this.x47_1;
734
- var tmp1_flag = true;
735
- var tmp2_index = 0;
736
- var tmp3_bitMask0 = 0;
737
- var tmp4_local0 = null;
738
- var tmp5_local1 = null;
739
- var tmp6_local2 = null;
740
- var tmp7_local3 = null;
741
- var tmp8_input = decoder.h23(tmp0_desc);
742
- if (tmp8_input.x23()) {
743
- tmp4_local0 = tmp8_input.r23(tmp0_desc, 0);
744
- tmp3_bitMask0 = tmp3_bitMask0 | 1;
745
- tmp5_local1 = tmp8_input.t23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
746
- tmp3_bitMask0 = tmp3_bitMask0 | 2;
747
- tmp6_local2 = tmp8_input.v23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
748
- tmp3_bitMask0 = tmp3_bitMask0 | 4;
749
- tmp7_local3 = tmp8_input.v23(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
750
- tmp3_bitMask0 = tmp3_bitMask0 | 8;
751
- } else
752
- while (tmp1_flag) {
753
- tmp2_index = tmp8_input.y23(tmp0_desc);
754
- switch (tmp2_index) {
755
- case -1:
756
- tmp1_flag = false;
757
- break;
758
- case 0:
759
- tmp4_local0 = tmp8_input.r23(tmp0_desc, 0);
760
- tmp3_bitMask0 = tmp3_bitMask0 | 1;
761
- break;
762
- case 1:
763
- tmp5_local1 = tmp8_input.t23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
764
- tmp3_bitMask0 = tmp3_bitMask0 | 2;
765
- break;
766
- case 2:
767
- tmp6_local2 = tmp8_input.v23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
768
- tmp3_bitMask0 = tmp3_bitMask0 | 4;
769
- break;
770
- case 3:
771
- tmp7_local3 = tmp8_input.v23(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
772
- tmp3_bitMask0 = tmp3_bitMask0 | 8;
773
- break;
774
- default:
775
- throw UnknownFieldException_init_$Create$(tmp2_index);
776
- }
777
- }
778
- tmp8_input.i23(tmp0_desc);
779
- return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
780
- };
781
- protoOf($serializer).h20 = function () {
782
- return this.x47_1;
783
- };
784
- protoOf($serializer).k2b = function () {
785
- // Inline function 'kotlin.arrayOf' call
786
- // Inline function 'kotlin.js.unsafeCast' call
787
- // Inline function 'kotlin.js.asDynamic' call
788
- return [StringSerializer_getInstance(), TypeListSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
789
- };
790
- var $serializer_instance;
791
- function $serializer_getInstance() {
792
- if ($serializer_instance == null)
793
- new $serializer();
794
- return $serializer_instance;
795
- }
796
- function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
797
- if (!(3 === (3 & seen0))) {
798
- throwMissingFieldException(seen0, 3, $serializer_getInstance().x47_1);
799
- }
800
- $this.k47_1 = name;
801
- $this.l47_1 = type;
802
- if (0 === (seen0 & 4))
803
- $this.m47_1 = null;
804
- else
805
- $this.m47_1 = doc;
806
- if (0 === (seen0 & 8))
807
- $this.n47_1 = null;
808
- else
809
- $this.n47_1 = default_0;
810
- return $this;
811
- }
812
- function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
813
- return Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, objectCreate(protoOf(Field_0)));
814
- }
815
1133
  function TypeList_init_$Init$(type, $this) {
816
1134
  // Inline function 'kotlin.collections.toTypedArray' call
817
1135
  var tmp$ret$0 = copyToArray(type);
@@ -829,11 +1147,11 @@ function Companion_getInstance_0() {
829
1147
  }
830
1148
  function Companion_1() {
831
1149
  }
832
- protoOf(Companion_1).i2n = function () {
1150
+ protoOf(Companion_1).l2p = function () {
833
1151
  return TypeSerializer_getInstance();
834
1152
  };
835
- protoOf(Companion_1).v2b = function (typeParamsSerializers) {
836
- return this.i2n();
1153
+ protoOf(Companion_1).w2d = function (typeParamsSerializers) {
1154
+ return this.l2p();
837
1155
  };
838
1156
  var Companion_instance_1;
839
1157
  function Companion_getInstance_1() {
@@ -845,76 +1163,76 @@ var Companion_instance_2;
845
1163
  function Companion_getInstance_2() {
846
1164
  return Companion_instance_2;
847
1165
  }
848
- function $serializer_0() {
849
- $serializer_instance_0 = this;
1166
+ function $serializer() {
1167
+ $serializer_instance = this;
850
1168
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
851
- tmp0_serialDesc.v2a('value', false);
852
- this.z47_1 = tmp0_serialDesc;
1169
+ tmp0_serialDesc.w2c('value', false);
1170
+ this.m4a_1 = tmp0_serialDesc;
853
1171
  }
854
- protoOf($serializer_0).a48 = function (encoder, value) {
855
- var tmp0_desc = this.z47_1;
856
- var tmp1_output = encoder.h23(tmp0_desc);
857
- tmp1_output.w24(tmp0_desc, 0, value.q46_1);
858
- tmp1_output.i23(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);
859
1177
  };
860
- protoOf($serializer_0).i20 = function (encoder, value) {
861
- return this.a48(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());
862
1180
  };
863
- protoOf($serializer_0).j20 = function (decoder) {
864
- var tmp0_desc = this.z47_1;
1181
+ protoOf($serializer).l22 = function (decoder) {
1182
+ var tmp0_desc = this.m4a_1;
865
1183
  var tmp1_flag = true;
866
1184
  var tmp2_index = 0;
867
1185
  var tmp3_bitMask0 = 0;
868
1186
  var tmp4_local0 = null;
869
- var tmp5_input = decoder.h23(tmp0_desc);
870
- if (tmp5_input.x23()) {
871
- tmp4_local0 = tmp5_input.r23(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);
872
1190
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
873
1191
  } else
874
1192
  while (tmp1_flag) {
875
- tmp2_index = tmp5_input.y23(tmp0_desc);
1193
+ tmp2_index = tmp5_input.z25(tmp0_desc);
876
1194
  switch (tmp2_index) {
877
1195
  case -1:
878
1196
  tmp1_flag = false;
879
1197
  break;
880
1198
  case 0:
881
- tmp4_local0 = tmp5_input.r23(tmp0_desc, 0);
1199
+ tmp4_local0 = tmp5_input.s25(tmp0_desc, 0);
882
1200
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
883
1201
  break;
884
1202
  default:
885
1203
  throw UnknownFieldException_init_$Create$(tmp2_index);
886
1204
  }
887
1205
  }
888
- tmp5_input.i23(tmp0_desc);
1206
+ tmp5_input.j25(tmp0_desc);
889
1207
  return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
890
1208
  };
891
- protoOf($serializer_0).h20 = function () {
892
- return this.z47_1;
1209
+ protoOf($serializer).j22 = function () {
1210
+ return this.m4a_1;
893
1211
  };
894
- protoOf($serializer_0).k2b = function () {
1212
+ protoOf($serializer).l2d = function () {
895
1213
  // Inline function 'kotlin.arrayOf' call
896
1214
  // Inline function 'kotlin.js.unsafeCast' call
897
1215
  // Inline function 'kotlin.js.asDynamic' call
898
1216
  return [StringSerializer_getInstance()];
899
1217
  };
900
- var $serializer_instance_0;
901
- function $serializer_getInstance_0() {
902
- if ($serializer_instance_0 == null)
903
- new $serializer_0();
904
- return $serializer_instance_0;
1218
+ var $serializer_instance;
1219
+ function $serializer_getInstance() {
1220
+ if ($serializer_instance == null)
1221
+ new $serializer();
1222
+ return $serializer_instance;
905
1223
  }
906
1224
  function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
907
1225
  if (!(1 === (1 & seen0))) {
908
- throwMissingFieldException(seen0, 1, $serializer_getInstance_0().z47_1);
1226
+ throwMissingFieldException(seen0, 1, $serializer_getInstance().m4a_1);
909
1227
  }
910
- $this.q46_1 = value;
1228
+ $this.z48_1 = value;
911
1229
  return $this;
912
1230
  }
913
1231
  function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
914
1232
  return SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, objectCreate(protoOf(SimpleType)));
915
1233
  }
916
1234
  function AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq() {
917
- return new ArrayListSerializer($serializer_getInstance());
1235
+ return new ArrayListSerializer(FieldSerializer_getInstance());
918
1236
  }
919
1237
  function Companion_3() {
920
1238
  Companion_instance_3 = this;
@@ -923,10 +1241,10 @@ function Companion_3() {
923
1241
  // Inline function 'kotlin.arrayOf' call
924
1242
  // Inline function 'kotlin.js.unsafeCast' call
925
1243
  // Inline function 'kotlin.js.asDynamic' call
926
- tmp.b48_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];
927
1245
  }
928
- protoOf(Companion_3).i2n = function () {
929
- return $serializer_getInstance_1();
1246
+ protoOf(Companion_3).l2p = function () {
1247
+ return $serializer_getInstance_0();
930
1248
  };
931
1249
  var Companion_instance_3;
932
1250
  function Companion_getInstance_3() {
@@ -934,36 +1252,36 @@ function Companion_getInstance_3() {
934
1252
  new Companion_3();
935
1253
  return Companion_instance_3;
936
1254
  }
937
- function $serializer_1() {
938
- $serializer_instance_1 = this;
1255
+ function $serializer_0() {
1256
+ $serializer_instance_0 = this;
939
1257
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
940
- tmp0_serialDesc.v2a('type', false);
941
- tmp0_serialDesc.v2a('name', false);
942
- tmp0_serialDesc.v2a('namespace', true);
943
- tmp0_serialDesc.v2a('fields', false);
944
- tmp0_serialDesc.v2a('doc', true);
945
- this.c48_1 = tmp0_serialDesc;
946
- }
947
- protoOf($serializer_1).d48 = function (encoder, value) {
948
- var tmp0_desc = this.c48_1;
949
- var tmp1_output = encoder.h23(tmp0_desc);
950
- var tmp2_cached = Companion_getInstance_3().b48_1;
951
- tmp1_output.w24(tmp0_desc, 0, value.d47_1);
952
- tmp1_output.w24(tmp0_desc, 1, value.e47_1);
953
- if (tmp1_output.e25(tmp0_desc, 2) ? true : !(value.f47_1 == null)) {
954
- tmp1_output.a25(tmp0_desc, 2, StringSerializer_getInstance(), value.f47_1);
955
- }
956
- tmp1_output.y24(tmp0_desc, 3, tmp2_cached[3].m1(), value.g47_1);
957
- if (tmp1_output.e25(tmp0_desc, 4) ? true : !(value.h47_1 == null)) {
958
- tmp1_output.a25(tmp0_desc, 4, StringSerializer_getInstance(), value.h47_1);
959
- }
960
- tmp1_output.i23(tmp0_desc);
961
- };
962
- protoOf($serializer_1).i20 = function (encoder, value) {
963
- return this.d48(encoder, value instanceof RecordType ? value : THROW_CCE());
964
- };
965
- protoOf($serializer_1).j20 = function (decoder) {
966
- var tmp0_desc = this.c48_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;
967
1285
  var tmp1_flag = true;
968
1286
  var tmp2_index = 0;
969
1287
  var tmp3_bitMask0 = 0;
@@ -972,84 +1290,84 @@ protoOf($serializer_1).j20 = function (decoder) {
972
1290
  var tmp6_local2 = null;
973
1291
  var tmp7_local3 = null;
974
1292
  var tmp8_local4 = null;
975
- var tmp9_input = decoder.h23(tmp0_desc);
976
- var tmp10_cached = Companion_getInstance_3().b48_1;
977
- if (tmp9_input.x23()) {
978
- tmp4_local0 = tmp9_input.r23(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);
979
1297
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
980
- tmp5_local1 = tmp9_input.r23(tmp0_desc, 1);
1298
+ tmp5_local1 = tmp9_input.s25(tmp0_desc, 1);
981
1299
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
982
- tmp6_local2 = tmp9_input.v23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1300
+ tmp6_local2 = tmp9_input.w25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
983
1301
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
984
- tmp7_local3 = tmp9_input.t23(tmp0_desc, 3, tmp10_cached[3].m1(), tmp7_local3);
1302
+ tmp7_local3 = tmp9_input.u25(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
985
1303
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
986
- tmp8_local4 = tmp9_input.v23(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
1304
+ tmp8_local4 = tmp9_input.w25(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
987
1305
  tmp3_bitMask0 = tmp3_bitMask0 | 16;
988
1306
  } else
989
1307
  while (tmp1_flag) {
990
- tmp2_index = tmp9_input.y23(tmp0_desc);
1308
+ tmp2_index = tmp9_input.z25(tmp0_desc);
991
1309
  switch (tmp2_index) {
992
1310
  case -1:
993
1311
  tmp1_flag = false;
994
1312
  break;
995
1313
  case 0:
996
- tmp4_local0 = tmp9_input.r23(tmp0_desc, 0);
1314
+ tmp4_local0 = tmp9_input.s25(tmp0_desc, 0);
997
1315
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
998
1316
  break;
999
1317
  case 1:
1000
- tmp5_local1 = tmp9_input.r23(tmp0_desc, 1);
1318
+ tmp5_local1 = tmp9_input.s25(tmp0_desc, 1);
1001
1319
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1002
1320
  break;
1003
1321
  case 2:
1004
- tmp6_local2 = tmp9_input.v23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1322
+ tmp6_local2 = tmp9_input.w25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1005
1323
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
1006
1324
  break;
1007
1325
  case 3:
1008
- tmp7_local3 = tmp9_input.t23(tmp0_desc, 3, tmp10_cached[3].m1(), tmp7_local3);
1326
+ tmp7_local3 = tmp9_input.u25(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
1009
1327
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
1010
1328
  break;
1011
1329
  case 4:
1012
- tmp8_local4 = tmp9_input.v23(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
1330
+ tmp8_local4 = tmp9_input.w25(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
1013
1331
  tmp3_bitMask0 = tmp3_bitMask0 | 16;
1014
1332
  break;
1015
1333
  default:
1016
1334
  throw UnknownFieldException_init_$Create$(tmp2_index);
1017
1335
  }
1018
1336
  }
1019
- tmp9_input.i23(tmp0_desc);
1337
+ tmp9_input.j25(tmp0_desc);
1020
1338
  return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
1021
1339
  };
1022
- protoOf($serializer_1).h20 = function () {
1023
- return this.c48_1;
1340
+ protoOf($serializer_0).j22 = function () {
1341
+ return this.p4a_1;
1024
1342
  };
1025
- protoOf($serializer_1).k2b = function () {
1026
- var tmp0_cached = Companion_getInstance_3().b48_1;
1343
+ protoOf($serializer_0).l2d = function () {
1344
+ var tmp0_cached = Companion_getInstance_3().o4a_1;
1027
1345
  // Inline function 'kotlin.arrayOf' call
1028
1346
  // Inline function 'kotlin.js.unsafeCast' call
1029
1347
  // Inline function 'kotlin.js.asDynamic' call
1030
- 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())];
1031
1349
  };
1032
- var $serializer_instance_1;
1033
- function $serializer_getInstance_1() {
1034
- if ($serializer_instance_1 == null)
1035
- new $serializer_1();
1036
- return $serializer_instance_1;
1350
+ var $serializer_instance_0;
1351
+ function $serializer_getInstance_0() {
1352
+ if ($serializer_instance_0 == null)
1353
+ new $serializer_0();
1354
+ return $serializer_instance_0;
1037
1355
  }
1038
1356
  function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
1039
1357
  if (!(11 === (11 & seen0))) {
1040
- throwMissingFieldException(seen0, 11, $serializer_getInstance_1().c48_1);
1358
+ throwMissingFieldException(seen0, 11, $serializer_getInstance_0().p4a_1);
1041
1359
  }
1042
- $this.d47_1 = type;
1043
- $this.e47_1 = name;
1360
+ $this.m49_1 = type;
1361
+ $this.n49_1 = name;
1044
1362
  if (0 === (seen0 & 4))
1045
- $this.f47_1 = null;
1363
+ $this.o49_1 = null;
1046
1364
  else
1047
- $this.f47_1 = namespace;
1048
- $this.g47_1 = fields;
1365
+ $this.o49_1 = namespace;
1366
+ $this.p49_1 = fields;
1049
1367
  if (0 === (seen0 & 16))
1050
- $this.h47_1 = null;
1368
+ $this.q49_1 = null;
1051
1369
  else
1052
- $this.h47_1 = doc;
1370
+ $this.q49_1 = doc;
1053
1371
  return $this;
1054
1372
  }
1055
1373
  function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
@@ -1057,86 +1375,86 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
1057
1375
  }
1058
1376
  function Companion_4() {
1059
1377
  }
1060
- protoOf(Companion_4).i2n = function () {
1061
- return $serializer_getInstance_2();
1378
+ protoOf(Companion_4).l2p = function () {
1379
+ return $serializer_getInstance_1();
1062
1380
  };
1063
1381
  var Companion_instance_4;
1064
1382
  function Companion_getInstance_4() {
1065
1383
  return Companion_instance_4;
1066
1384
  }
1067
- function $serializer_2() {
1068
- $serializer_instance_2 = this;
1385
+ function $serializer_1() {
1386
+ $serializer_instance_1 = this;
1069
1387
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
1070
- tmp0_serialDesc.v2a('type', false);
1071
- tmp0_serialDesc.v2a('items', false);
1072
- this.e48_1 = tmp0_serialDesc;
1073
- }
1074
- protoOf($serializer_2).f48 = function (encoder, value) {
1075
- var tmp0_desc = this.e48_1;
1076
- var tmp1_output = encoder.h23(tmp0_desc);
1077
- tmp1_output.w24(tmp0_desc, 0, value.i47_1);
1078
- tmp1_output.y24(tmp0_desc, 1, TypeSerializer_getInstance(), value.j47_1);
1079
- tmp1_output.i23(tmp0_desc);
1080
- };
1081
- protoOf($serializer_2).i20 = function (encoder, value) {
1082
- return this.f48(encoder, value instanceof ArrayType ? value : THROW_CCE());
1083
- };
1084
- protoOf($serializer_2).j20 = function (decoder) {
1085
- var tmp0_desc = this.e48_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;
1086
1404
  var tmp1_flag = true;
1087
1405
  var tmp2_index = 0;
1088
1406
  var tmp3_bitMask0 = 0;
1089
1407
  var tmp4_local0 = null;
1090
1408
  var tmp5_local1 = null;
1091
- var tmp6_input = decoder.h23(tmp0_desc);
1092
- if (tmp6_input.x23()) {
1093
- tmp4_local0 = tmp6_input.r23(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);
1094
1412
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1095
- tmp5_local1 = tmp6_input.t23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1413
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1096
1414
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1097
1415
  } else
1098
1416
  while (tmp1_flag) {
1099
- tmp2_index = tmp6_input.y23(tmp0_desc);
1417
+ tmp2_index = tmp6_input.z25(tmp0_desc);
1100
1418
  switch (tmp2_index) {
1101
1419
  case -1:
1102
1420
  tmp1_flag = false;
1103
1421
  break;
1104
1422
  case 0:
1105
- tmp4_local0 = tmp6_input.r23(tmp0_desc, 0);
1423
+ tmp4_local0 = tmp6_input.s25(tmp0_desc, 0);
1106
1424
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1107
1425
  break;
1108
1426
  case 1:
1109
- tmp5_local1 = tmp6_input.t23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1427
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1110
1428
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1111
1429
  break;
1112
1430
  default:
1113
1431
  throw UnknownFieldException_init_$Create$(tmp2_index);
1114
1432
  }
1115
1433
  }
1116
- tmp6_input.i23(tmp0_desc);
1434
+ tmp6_input.j25(tmp0_desc);
1117
1435
  return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1118
1436
  };
1119
- protoOf($serializer_2).h20 = function () {
1120
- return this.e48_1;
1437
+ protoOf($serializer_1).j22 = function () {
1438
+ return this.r4a_1;
1121
1439
  };
1122
- protoOf($serializer_2).k2b = function () {
1440
+ protoOf($serializer_1).l2d = function () {
1123
1441
  // Inline function 'kotlin.arrayOf' call
1124
1442
  // Inline function 'kotlin.js.unsafeCast' call
1125
1443
  // Inline function 'kotlin.js.asDynamic' call
1126
1444
  return [StringSerializer_getInstance(), TypeSerializer_getInstance()];
1127
1445
  };
1128
- var $serializer_instance_2;
1129
- function $serializer_getInstance_2() {
1130
- if ($serializer_instance_2 == null)
1131
- new $serializer_2();
1132
- return $serializer_instance_2;
1446
+ var $serializer_instance_1;
1447
+ function $serializer_getInstance_1() {
1448
+ if ($serializer_instance_1 == null)
1449
+ new $serializer_1();
1450
+ return $serializer_instance_1;
1133
1451
  }
1134
1452
  function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
1135
1453
  if (!(3 === (3 & seen0))) {
1136
- throwMissingFieldException(seen0, 3, $serializer_getInstance_2().e48_1);
1454
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_1().r4a_1);
1137
1455
  }
1138
- $this.i47_1 = type;
1139
- $this.j47_1 = items;
1456
+ $this.r49_1 = type;
1457
+ $this.s49_1 = items;
1140
1458
  return $this;
1141
1459
  }
1142
1460
  function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
@@ -1144,86 +1462,86 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
1144
1462
  }
1145
1463
  function Companion_5() {
1146
1464
  }
1147
- protoOf(Companion_5).i2n = function () {
1148
- return $serializer_getInstance_3();
1465
+ protoOf(Companion_5).l2p = function () {
1466
+ return $serializer_getInstance_2();
1149
1467
  };
1150
1468
  var Companion_instance_5;
1151
1469
  function Companion_getInstance_5() {
1152
1470
  return Companion_instance_5;
1153
1471
  }
1154
- function $serializer_3() {
1155
- $serializer_instance_3 = this;
1472
+ function $serializer_2() {
1473
+ $serializer_instance_2 = this;
1156
1474
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
1157
- tmp0_serialDesc.v2a('type', false);
1158
- tmp0_serialDesc.v2a('values', false);
1159
- this.g48_1 = tmp0_serialDesc;
1160
- }
1161
- protoOf($serializer_3).h48 = function (encoder, value) {
1162
- var tmp0_desc = this.g48_1;
1163
- var tmp1_output = encoder.h23(tmp0_desc);
1164
- tmp1_output.w24(tmp0_desc, 0, value.t46_1);
1165
- tmp1_output.y24(tmp0_desc, 1, TypeSerializer_getInstance(), value.u46_1);
1166
- tmp1_output.i23(tmp0_desc);
1167
- };
1168
- protoOf($serializer_3).i20 = function (encoder, value) {
1169
- return this.h48(encoder, value instanceof MapType ? value : THROW_CCE());
1170
- };
1171
- protoOf($serializer_3).j20 = function (decoder) {
1172
- var tmp0_desc = this.g48_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;
1173
1491
  var tmp1_flag = true;
1174
1492
  var tmp2_index = 0;
1175
1493
  var tmp3_bitMask0 = 0;
1176
1494
  var tmp4_local0 = null;
1177
1495
  var tmp5_local1 = null;
1178
- var tmp6_input = decoder.h23(tmp0_desc);
1179
- if (tmp6_input.x23()) {
1180
- tmp4_local0 = tmp6_input.r23(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);
1181
1499
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1182
- tmp5_local1 = tmp6_input.t23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1500
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1183
1501
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1184
1502
  } else
1185
1503
  while (tmp1_flag) {
1186
- tmp2_index = tmp6_input.y23(tmp0_desc);
1504
+ tmp2_index = tmp6_input.z25(tmp0_desc);
1187
1505
  switch (tmp2_index) {
1188
1506
  case -1:
1189
1507
  tmp1_flag = false;
1190
1508
  break;
1191
1509
  case 0:
1192
- tmp4_local0 = tmp6_input.r23(tmp0_desc, 0);
1510
+ tmp4_local0 = tmp6_input.s25(tmp0_desc, 0);
1193
1511
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1194
1512
  break;
1195
1513
  case 1:
1196
- tmp5_local1 = tmp6_input.t23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1514
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
1197
1515
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1198
1516
  break;
1199
1517
  default:
1200
1518
  throw UnknownFieldException_init_$Create$(tmp2_index);
1201
1519
  }
1202
1520
  }
1203
- tmp6_input.i23(tmp0_desc);
1521
+ tmp6_input.j25(tmp0_desc);
1204
1522
  return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1205
1523
  };
1206
- protoOf($serializer_3).h20 = function () {
1207
- return this.g48_1;
1524
+ protoOf($serializer_2).j22 = function () {
1525
+ return this.t4a_1;
1208
1526
  };
1209
- protoOf($serializer_3).k2b = function () {
1527
+ protoOf($serializer_2).l2d = function () {
1210
1528
  // Inline function 'kotlin.arrayOf' call
1211
1529
  // Inline function 'kotlin.js.unsafeCast' call
1212
1530
  // Inline function 'kotlin.js.asDynamic' call
1213
1531
  return [StringSerializer_getInstance(), TypeSerializer_getInstance()];
1214
1532
  };
1215
- var $serializer_instance_3;
1216
- function $serializer_getInstance_3() {
1217
- if ($serializer_instance_3 == null)
1218
- new $serializer_3();
1219
- return $serializer_instance_3;
1533
+ var $serializer_instance_2;
1534
+ function $serializer_getInstance_2() {
1535
+ if ($serializer_instance_2 == null)
1536
+ new $serializer_2();
1537
+ return $serializer_instance_2;
1220
1538
  }
1221
1539
  function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
1222
1540
  if (!(3 === (3 & seen0))) {
1223
- throwMissingFieldException(seen0, 3, $serializer_getInstance_3().g48_1);
1541
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_2().t4a_1);
1224
1542
  }
1225
- $this.t46_1 = type;
1226
- $this.u46_1 = values;
1543
+ $this.c49_1 = type;
1544
+ $this.d49_1 = values;
1227
1545
  return $this;
1228
1546
  }
1229
1547
  function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
@@ -1239,10 +1557,10 @@ function Companion_6() {
1239
1557
  // Inline function 'kotlin.arrayOf' call
1240
1558
  // Inline function 'kotlin.js.unsafeCast' call
1241
1559
  // Inline function 'kotlin.js.asDynamic' call
1242
- tmp.i48_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)];
1243
1561
  }
1244
- protoOf(Companion_6).i2n = function () {
1245
- return $serializer_getInstance_4();
1562
+ protoOf(Companion_6).l2p = function () {
1563
+ return $serializer_getInstance_3();
1246
1564
  };
1247
1565
  var Companion_instance_6;
1248
1566
  function Companion_getInstance_6() {
@@ -1250,32 +1568,32 @@ function Companion_getInstance_6() {
1250
1568
  new Companion_6();
1251
1569
  return Companion_instance_6;
1252
1570
  }
1253
- function $serializer_4() {
1254
- $serializer_instance_4 = this;
1571
+ function $serializer_3() {
1572
+ $serializer_instance_3 = this;
1255
1573
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
1256
- tmp0_serialDesc.v2a('type', false);
1257
- tmp0_serialDesc.v2a('name', false);
1258
- tmp0_serialDesc.v2a('doc', true);
1259
- tmp0_serialDesc.v2a('symbols', false);
1260
- this.j48_1 = tmp0_serialDesc;
1261
- }
1262
- protoOf($serializer_4).k48 = function (encoder, value) {
1263
- var tmp0_desc = this.j48_1;
1264
- var tmp1_output = encoder.h23(tmp0_desc);
1265
- var tmp2_cached = Companion_getInstance_6().i48_1;
1266
- tmp1_output.w24(tmp0_desc, 0, value.z46_1);
1267
- tmp1_output.w24(tmp0_desc, 1, value.a47_1);
1268
- if (tmp1_output.e25(tmp0_desc, 2) ? true : !(value.b47_1 == null)) {
1269
- tmp1_output.a25(tmp0_desc, 2, StringSerializer_getInstance(), value.b47_1);
1270
- }
1271
- tmp1_output.y24(tmp0_desc, 3, tmp2_cached[3].m1(), value.c47_1);
1272
- tmp1_output.i23(tmp0_desc);
1273
- };
1274
- protoOf($serializer_4).i20 = function (encoder, value) {
1275
- return this.k48(encoder, value instanceof EnumType ? value : THROW_CCE());
1276
- };
1277
- protoOf($serializer_4).j20 = function (decoder) {
1278
- var tmp0_desc = this.j48_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;
1279
1597
  var tmp1_flag = true;
1280
1598
  var tmp2_index = 0;
1281
1599
  var tmp3_bitMask0 = 0;
@@ -1283,74 +1601,74 @@ protoOf($serializer_4).j20 = function (decoder) {
1283
1601
  var tmp5_local1 = null;
1284
1602
  var tmp6_local2 = null;
1285
1603
  var tmp7_local3 = null;
1286
- var tmp8_input = decoder.h23(tmp0_desc);
1287
- var tmp9_cached = Companion_getInstance_6().i48_1;
1288
- if (tmp8_input.x23()) {
1289
- tmp4_local0 = tmp8_input.r23(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);
1290
1608
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1291
- tmp5_local1 = tmp8_input.r23(tmp0_desc, 1);
1609
+ tmp5_local1 = tmp8_input.s25(tmp0_desc, 1);
1292
1610
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1293
- tmp6_local2 = tmp8_input.v23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1611
+ tmp6_local2 = tmp8_input.w25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1294
1612
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
1295
- tmp7_local3 = tmp8_input.t23(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
1613
+ tmp7_local3 = tmp8_input.u25(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
1296
1614
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
1297
1615
  } else
1298
1616
  while (tmp1_flag) {
1299
- tmp2_index = tmp8_input.y23(tmp0_desc);
1617
+ tmp2_index = tmp8_input.z25(tmp0_desc);
1300
1618
  switch (tmp2_index) {
1301
1619
  case -1:
1302
1620
  tmp1_flag = false;
1303
1621
  break;
1304
1622
  case 0:
1305
- tmp4_local0 = tmp8_input.r23(tmp0_desc, 0);
1623
+ tmp4_local0 = tmp8_input.s25(tmp0_desc, 0);
1306
1624
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1307
1625
  break;
1308
1626
  case 1:
1309
- tmp5_local1 = tmp8_input.r23(tmp0_desc, 1);
1627
+ tmp5_local1 = tmp8_input.s25(tmp0_desc, 1);
1310
1628
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1311
1629
  break;
1312
1630
  case 2:
1313
- tmp6_local2 = tmp8_input.v23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1631
+ tmp6_local2 = tmp8_input.w25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1314
1632
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
1315
1633
  break;
1316
1634
  case 3:
1317
- tmp7_local3 = tmp8_input.t23(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
1635
+ tmp7_local3 = tmp8_input.u25(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
1318
1636
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
1319
1637
  break;
1320
1638
  default:
1321
1639
  throw UnknownFieldException_init_$Create$(tmp2_index);
1322
1640
  }
1323
1641
  }
1324
- tmp8_input.i23(tmp0_desc);
1642
+ tmp8_input.j25(tmp0_desc);
1325
1643
  return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
1326
1644
  };
1327
- protoOf($serializer_4).h20 = function () {
1328
- return this.j48_1;
1645
+ protoOf($serializer_3).j22 = function () {
1646
+ return this.w4a_1;
1329
1647
  };
1330
- protoOf($serializer_4).k2b = function () {
1331
- var tmp0_cached = Companion_getInstance_6().i48_1;
1648
+ protoOf($serializer_3).l2d = function () {
1649
+ var tmp0_cached = Companion_getInstance_6().v4a_1;
1332
1650
  // Inline function 'kotlin.arrayOf' call
1333
1651
  // Inline function 'kotlin.js.unsafeCast' call
1334
1652
  // Inline function 'kotlin.js.asDynamic' call
1335
- 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()];
1336
1654
  };
1337
- var $serializer_instance_4;
1338
- function $serializer_getInstance_4() {
1339
- if ($serializer_instance_4 == null)
1340
- new $serializer_4();
1341
- return $serializer_instance_4;
1655
+ var $serializer_instance_3;
1656
+ function $serializer_getInstance_3() {
1657
+ if ($serializer_instance_3 == null)
1658
+ new $serializer_3();
1659
+ return $serializer_instance_3;
1342
1660
  }
1343
1661
  function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
1344
1662
  if (!(11 === (11 & seen0))) {
1345
- throwMissingFieldException(seen0, 11, $serializer_getInstance_4().j48_1);
1663
+ throwMissingFieldException(seen0, 11, $serializer_getInstance_3().w4a_1);
1346
1664
  }
1347
- $this.z46_1 = type;
1348
- $this.a47_1 = name;
1665
+ $this.i49_1 = type;
1666
+ $this.j49_1 = name;
1349
1667
  if (0 === (seen0 & 4))
1350
- $this.b47_1 = null;
1668
+ $this.k49_1 = null;
1351
1669
  else
1352
- $this.b47_1 = doc;
1353
- $this.c47_1 = symbols;
1670
+ $this.k49_1 = doc;
1671
+ $this.l49_1 = symbols;
1354
1672
  return $this;
1355
1673
  }
1356
1674
  function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
@@ -1358,86 +1676,86 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
1358
1676
  }
1359
1677
  function Companion_7() {
1360
1678
  }
1361
- protoOf(Companion_7).i2n = function () {
1362
- return $serializer_getInstance_5();
1679
+ protoOf(Companion_7).l2p = function () {
1680
+ return $serializer_getInstance_4();
1363
1681
  };
1364
1682
  var Companion_instance_7;
1365
1683
  function Companion_getInstance_7() {
1366
1684
  return Companion_instance_7;
1367
1685
  }
1368
- function $serializer_5() {
1369
- $serializer_instance_5 = this;
1686
+ function $serializer_4() {
1687
+ $serializer_instance_4 = this;
1370
1688
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
1371
- tmp0_serialDesc.v2a('name', false);
1372
- tmp0_serialDesc.v2a('type', false);
1373
- this.l48_1 = tmp0_serialDesc;
1374
- }
1375
- protoOf($serializer_5).m48 = function (encoder, value) {
1376
- var tmp0_desc = this.l48_1;
1377
- var tmp1_output = encoder.h23(tmp0_desc);
1378
- tmp1_output.w24(tmp0_desc, 0, value.r46_1);
1379
- tmp1_output.y24(tmp0_desc, 1, TypeListSerializer_getInstance(), value.s46_1);
1380
- tmp1_output.i23(tmp0_desc);
1381
- };
1382
- protoOf($serializer_5).i20 = function (encoder, value) {
1383
- return this.m48(encoder, value instanceof UnionType ? value : THROW_CCE());
1384
- };
1385
- protoOf($serializer_5).j20 = function (decoder) {
1386
- var tmp0_desc = this.l48_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;
1387
1705
  var tmp1_flag = true;
1388
1706
  var tmp2_index = 0;
1389
1707
  var tmp3_bitMask0 = 0;
1390
1708
  var tmp4_local0 = null;
1391
1709
  var tmp5_local1 = null;
1392
- var tmp6_input = decoder.h23(tmp0_desc);
1393
- if (tmp6_input.x23()) {
1394
- tmp4_local0 = tmp6_input.r23(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);
1395
1713
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1396
- tmp5_local1 = tmp6_input.t23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
1714
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
1397
1715
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1398
1716
  } else
1399
1717
  while (tmp1_flag) {
1400
- tmp2_index = tmp6_input.y23(tmp0_desc);
1718
+ tmp2_index = tmp6_input.z25(tmp0_desc);
1401
1719
  switch (tmp2_index) {
1402
1720
  case -1:
1403
1721
  tmp1_flag = false;
1404
1722
  break;
1405
1723
  case 0:
1406
- tmp4_local0 = tmp6_input.r23(tmp0_desc, 0);
1724
+ tmp4_local0 = tmp6_input.s25(tmp0_desc, 0);
1407
1725
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1408
1726
  break;
1409
1727
  case 1:
1410
- tmp5_local1 = tmp6_input.t23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
1728
+ tmp5_local1 = tmp6_input.u25(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
1411
1729
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1412
1730
  break;
1413
1731
  default:
1414
1732
  throw UnknownFieldException_init_$Create$(tmp2_index);
1415
1733
  }
1416
1734
  }
1417
- tmp6_input.i23(tmp0_desc);
1735
+ tmp6_input.j25(tmp0_desc);
1418
1736
  return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1419
1737
  };
1420
- protoOf($serializer_5).h20 = function () {
1421
- return this.l48_1;
1738
+ protoOf($serializer_4).j22 = function () {
1739
+ return this.y4a_1;
1422
1740
  };
1423
- protoOf($serializer_5).k2b = function () {
1741
+ protoOf($serializer_4).l2d = function () {
1424
1742
  // Inline function 'kotlin.arrayOf' call
1425
1743
  // Inline function 'kotlin.js.unsafeCast' call
1426
1744
  // Inline function 'kotlin.js.asDynamic' call
1427
1745
  return [StringSerializer_getInstance(), TypeListSerializer_getInstance()];
1428
1746
  };
1429
- var $serializer_instance_5;
1430
- function $serializer_getInstance_5() {
1431
- if ($serializer_instance_5 == null)
1432
- new $serializer_5();
1433
- return $serializer_instance_5;
1747
+ var $serializer_instance_4;
1748
+ function $serializer_getInstance_4() {
1749
+ if ($serializer_instance_4 == null)
1750
+ new $serializer_4();
1751
+ return $serializer_instance_4;
1434
1752
  }
1435
1753
  function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
1436
1754
  if (!(3 === (3 & seen0))) {
1437
- throwMissingFieldException(seen0, 3, $serializer_getInstance_5().l48_1);
1755
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_4().y4a_1);
1438
1756
  }
1439
- $this.r46_1 = name;
1440
- $this.s46_1 = type;
1757
+ $this.a49_1 = name;
1758
+ $this.b49_1 = type;
1441
1759
  return $this;
1442
1760
  }
1443
1761
  function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
@@ -1445,40 +1763,40 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
1445
1763
  }
1446
1764
  function Companion_8() {
1447
1765
  }
1448
- protoOf(Companion_8).i2n = function () {
1449
- return $serializer_getInstance_6();
1766
+ protoOf(Companion_8).l2p = function () {
1767
+ return $serializer_getInstance_5();
1450
1768
  };
1451
1769
  var Companion_instance_8;
1452
1770
  function Companion_getInstance_8() {
1453
1771
  return Companion_instance_8;
1454
1772
  }
1455
- function $serializer_6() {
1456
- $serializer_instance_6 = this;
1773
+ function $serializer_5() {
1774
+ $serializer_instance_5 = this;
1457
1775
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
1458
- tmp0_serialDesc.v2a('type', false);
1459
- tmp0_serialDesc.v2a('logicalType', false);
1460
- tmp0_serialDesc.v2a('precision', true);
1461
- tmp0_serialDesc.v2a('scale', true);
1462
- this.n48_1 = tmp0_serialDesc;
1463
- }
1464
- protoOf($serializer_6).o48 = function (encoder, value) {
1465
- var tmp0_desc = this.n48_1;
1466
- var tmp1_output = encoder.h23(tmp0_desc);
1467
- tmp1_output.w24(tmp0_desc, 0, value.v46_1);
1468
- tmp1_output.w24(tmp0_desc, 1, value.w46_1);
1469
- if (tmp1_output.e25(tmp0_desc, 2) ? true : !(value.x46_1 == null)) {
1470
- tmp1_output.a25(tmp0_desc, 2, IntSerializer_getInstance(), value.x46_1);
1471
- }
1472
- if (tmp1_output.e25(tmp0_desc, 3) ? true : !(value.y46_1 == null)) {
1473
- tmp1_output.a25(tmp0_desc, 3, IntSerializer_getInstance(), value.y46_1);
1474
- }
1475
- tmp1_output.i23(tmp0_desc);
1476
- };
1477
- protoOf($serializer_6).i20 = function (encoder, value) {
1478
- return this.o48(encoder, value instanceof LogicalType ? value : THROW_CCE());
1479
- };
1480
- protoOf($serializer_6).j20 = function (decoder) {
1481
- var tmp0_desc = this.n48_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;
1482
1800
  var tmp1_flag = true;
1483
1801
  var tmp2_index = 0;
1484
1802
  var tmp3_bitMask0 = 0;
@@ -1486,75 +1804,75 @@ protoOf($serializer_6).j20 = function (decoder) {
1486
1804
  var tmp5_local1 = null;
1487
1805
  var tmp6_local2 = null;
1488
1806
  var tmp7_local3 = null;
1489
- var tmp8_input = decoder.h23(tmp0_desc);
1490
- if (tmp8_input.x23()) {
1491
- tmp4_local0 = tmp8_input.r23(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);
1492
1810
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1493
- tmp5_local1 = tmp8_input.r23(tmp0_desc, 1);
1811
+ tmp5_local1 = tmp8_input.s25(tmp0_desc, 1);
1494
1812
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1495
- tmp6_local2 = tmp8_input.v23(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1813
+ tmp6_local2 = tmp8_input.w25(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1496
1814
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
1497
- tmp7_local3 = tmp8_input.v23(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1815
+ tmp7_local3 = tmp8_input.w25(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1498
1816
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
1499
1817
  } else
1500
1818
  while (tmp1_flag) {
1501
- tmp2_index = tmp8_input.y23(tmp0_desc);
1819
+ tmp2_index = tmp8_input.z25(tmp0_desc);
1502
1820
  switch (tmp2_index) {
1503
1821
  case -1:
1504
1822
  tmp1_flag = false;
1505
1823
  break;
1506
1824
  case 0:
1507
- tmp4_local0 = tmp8_input.r23(tmp0_desc, 0);
1825
+ tmp4_local0 = tmp8_input.s25(tmp0_desc, 0);
1508
1826
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
1509
1827
  break;
1510
1828
  case 1:
1511
- tmp5_local1 = tmp8_input.r23(tmp0_desc, 1);
1829
+ tmp5_local1 = tmp8_input.s25(tmp0_desc, 1);
1512
1830
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
1513
1831
  break;
1514
1832
  case 2:
1515
- tmp6_local2 = tmp8_input.v23(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1833
+ tmp6_local2 = tmp8_input.w25(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1516
1834
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
1517
1835
  break;
1518
1836
  case 3:
1519
- tmp7_local3 = tmp8_input.v23(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1837
+ tmp7_local3 = tmp8_input.w25(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1520
1838
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
1521
1839
  break;
1522
1840
  default:
1523
1841
  throw UnknownFieldException_init_$Create$(tmp2_index);
1524
1842
  }
1525
1843
  }
1526
- tmp8_input.i23(tmp0_desc);
1844
+ tmp8_input.j25(tmp0_desc);
1527
1845
  return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
1528
1846
  };
1529
- protoOf($serializer_6).h20 = function () {
1530
- return this.n48_1;
1847
+ protoOf($serializer_5).j22 = function () {
1848
+ return this.a4b_1;
1531
1849
  };
1532
- protoOf($serializer_6).k2b = function () {
1850
+ protoOf($serializer_5).l2d = function () {
1533
1851
  // Inline function 'kotlin.arrayOf' call
1534
1852
  // Inline function 'kotlin.js.unsafeCast' call
1535
1853
  // Inline function 'kotlin.js.asDynamic' call
1536
1854
  return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance())];
1537
1855
  };
1538
- var $serializer_instance_6;
1539
- function $serializer_getInstance_6() {
1540
- if ($serializer_instance_6 == null)
1541
- new $serializer_6();
1542
- return $serializer_instance_6;
1856
+ var $serializer_instance_5;
1857
+ function $serializer_getInstance_5() {
1858
+ if ($serializer_instance_5 == null)
1859
+ new $serializer_5();
1860
+ return $serializer_instance_5;
1543
1861
  }
1544
1862
  function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
1545
1863
  if (!(3 === (3 & seen0))) {
1546
- throwMissingFieldException(seen0, 3, $serializer_getInstance_6().n48_1);
1864
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_5().a4b_1);
1547
1865
  }
1548
- $this.v46_1 = type;
1549
- $this.w46_1 = logicalType;
1866
+ $this.e49_1 = type;
1867
+ $this.f49_1 = logicalType;
1550
1868
  if (0 === (seen0 & 4))
1551
- $this.x46_1 = null;
1869
+ $this.g49_1 = null;
1552
1870
  else
1553
- $this.x46_1 = precision;
1871
+ $this.g49_1 = precision;
1554
1872
  if (0 === (seen0 & 8))
1555
- $this.y46_1 = null;
1873
+ $this.h49_1 = null;
1556
1874
  else
1557
- $this.y46_1 = scale;
1875
+ $this.h49_1 = scale;
1558
1876
  return $this;
1559
1877
  }
1560
1878
  function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
@@ -1563,19 +1881,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
1563
1881
  function Field_0(name, type, doc, default_0) {
1564
1882
  doc = doc === VOID ? null : doc;
1565
1883
  default_0 = default_0 === VOID ? null : default_0;
1566
- this.k47_1 = name;
1567
- this.l47_1 = type;
1568
- this.m47_1 = doc;
1569
- this.n47_1 = default_0;
1884
+ this.t49_1 = name;
1885
+ this.u49_1 = type;
1886
+ this.v49_1 = doc;
1887
+ this.w49_1 = default_0;
1570
1888
  }
1571
1889
  protoOf(Field_0).toString = function () {
1572
- return 'Field(name=' + this.k47_1 + ', type=' + this.l47_1.toString() + ', doc=' + this.m47_1 + ', default=' + this.n47_1 + ')';
1890
+ return 'Field(name=' + this.t49_1 + ', type=' + this.u49_1.toString() + ', doc=' + this.v49_1 + ', default=' + toString_1(this.w49_1) + ')';
1573
1891
  };
1574
1892
  protoOf(Field_0).hashCode = function () {
1575
- var result = getStringHashCode(this.k47_1);
1576
- result = imul(result, 31) + this.l47_1.hashCode() | 0;
1577
- result = imul(result, 31) + (this.m47_1 == null ? 0 : getStringHashCode(this.m47_1)) | 0;
1578
- result = imul(result, 31) + (this.n47_1 == null ? 0 : getStringHashCode(this.n47_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;
1579
1897
  return result;
1580
1898
  };
1581
1899
  protoOf(Field_0).equals = function (other) {
@@ -1583,44 +1901,44 @@ protoOf(Field_0).equals = function (other) {
1583
1901
  return true;
1584
1902
  if (!(other instanceof Field_0))
1585
1903
  return false;
1586
- if (!(this.k47_1 === other.k47_1))
1904
+ if (!(this.t49_1 === other.t49_1))
1587
1905
  return false;
1588
- if (!this.l47_1.equals(other.l47_1))
1906
+ if (!this.u49_1.equals(other.u49_1))
1589
1907
  return false;
1590
- if (!(this.m47_1 == other.m47_1))
1908
+ if (!(this.v49_1 == other.v49_1))
1591
1909
  return false;
1592
- if (!(this.n47_1 == other.n47_1))
1910
+ if (!equals(this.w49_1, other.w49_1))
1593
1911
  return false;
1594
1912
  return true;
1595
1913
  };
1596
1914
  function TypeList(type) {
1597
1915
  AbstractList.call(this);
1598
- this.p48_1 = toList_0(type);
1599
- this.q48_1 = this.p48_1.b1();
1916
+ this.c4b_1 = toList_0(type);
1917
+ this.d4b_1 = this.c4b_1.b1();
1600
1918
  }
1601
1919
  protoOf(TypeList).b1 = function () {
1602
- return this.q48_1;
1920
+ return this.d4b_1;
1603
1921
  };
1604
1922
  protoOf(TypeList).c1 = function (index) {
1605
- return this.p48_1.c1(index);
1923
+ return this.c4b_1.c1(index);
1606
1924
  };
1607
1925
  function Type_0() {
1608
1926
  }
1609
1927
  function SimpleType(value) {
1610
- this.q46_1 = value;
1928
+ this.z48_1 = value;
1611
1929
  }
1612
1930
  protoOf(SimpleType).toString = function () {
1613
- return 'SimpleType(value=' + this.q46_1 + ')';
1931
+ return 'SimpleType(value=' + this.z48_1 + ')';
1614
1932
  };
1615
1933
  protoOf(SimpleType).hashCode = function () {
1616
- return getStringHashCode(this.q46_1);
1934
+ return getStringHashCode(this.z48_1);
1617
1935
  };
1618
1936
  protoOf(SimpleType).equals = function (other) {
1619
1937
  if (this === other)
1620
1938
  return true;
1621
1939
  if (!(other instanceof SimpleType))
1622
1940
  return false;
1623
- if (!(this.q46_1 === other.q46_1))
1941
+ if (!(this.z48_1 === other.z48_1))
1624
1942
  return false;
1625
1943
  return true;
1626
1944
  };
@@ -1628,21 +1946,21 @@ function RecordType(type, name, namespace, fields, doc) {
1628
1946
  Companion_getInstance_3();
1629
1947
  namespace = namespace === VOID ? null : namespace;
1630
1948
  doc = doc === VOID ? null : doc;
1631
- this.d47_1 = type;
1632
- this.e47_1 = name;
1633
- this.f47_1 = namespace;
1634
- this.g47_1 = fields;
1635
- this.h47_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;
1636
1954
  }
1637
1955
  protoOf(RecordType).toString = function () {
1638
- return 'RecordType(type=' + this.d47_1 + ', name=' + this.e47_1 + ', namespace=' + this.f47_1 + ', fields=' + toString(this.g47_1) + ', doc=' + this.h47_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 + ')';
1639
1957
  };
1640
1958
  protoOf(RecordType).hashCode = function () {
1641
- var result = getStringHashCode(this.d47_1);
1642
- result = imul(result, 31) + getStringHashCode(this.e47_1) | 0;
1643
- result = imul(result, 31) + (this.f47_1 == null ? 0 : getStringHashCode(this.f47_1)) | 0;
1644
- result = imul(result, 31) + hashCode(this.g47_1) | 0;
1645
- result = imul(result, 31) + (this.h47_1 == null ? 0 : getStringHashCode(this.h47_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;
1646
1964
  return result;
1647
1965
  };
1648
1966
  protoOf(RecordType).equals = function (other) {
@@ -1650,28 +1968,28 @@ protoOf(RecordType).equals = function (other) {
1650
1968
  return true;
1651
1969
  if (!(other instanceof RecordType))
1652
1970
  return false;
1653
- if (!(this.d47_1 === other.d47_1))
1971
+ if (!(this.m49_1 === other.m49_1))
1654
1972
  return false;
1655
- if (!(this.e47_1 === other.e47_1))
1973
+ if (!(this.n49_1 === other.n49_1))
1656
1974
  return false;
1657
- if (!(this.f47_1 == other.f47_1))
1975
+ if (!(this.o49_1 == other.o49_1))
1658
1976
  return false;
1659
- if (!equals(this.g47_1, other.g47_1))
1977
+ if (!equals(this.p49_1, other.p49_1))
1660
1978
  return false;
1661
- if (!(this.h47_1 == other.h47_1))
1979
+ if (!(this.q49_1 == other.q49_1))
1662
1980
  return false;
1663
1981
  return true;
1664
1982
  };
1665
1983
  function ArrayType(type, items) {
1666
- this.i47_1 = type;
1667
- this.j47_1 = items;
1984
+ this.r49_1 = type;
1985
+ this.s49_1 = items;
1668
1986
  }
1669
1987
  protoOf(ArrayType).toString = function () {
1670
- return 'ArrayType(type=' + this.i47_1 + ', items=' + toString(this.j47_1) + ')';
1988
+ return 'ArrayType(type=' + this.r49_1 + ', items=' + toString(this.s49_1) + ')';
1671
1989
  };
1672
1990
  protoOf(ArrayType).hashCode = function () {
1673
- var result = getStringHashCode(this.i47_1);
1674
- result = imul(result, 31) + hashCode(this.j47_1) | 0;
1991
+ var result = getStringHashCode(this.r49_1);
1992
+ result = imul(result, 31) + hashCode(this.s49_1) | 0;
1675
1993
  return result;
1676
1994
  };
1677
1995
  protoOf(ArrayType).equals = function (other) {
@@ -1679,22 +1997,22 @@ protoOf(ArrayType).equals = function (other) {
1679
1997
  return true;
1680
1998
  if (!(other instanceof ArrayType))
1681
1999
  return false;
1682
- if (!(this.i47_1 === other.i47_1))
2000
+ if (!(this.r49_1 === other.r49_1))
1683
2001
  return false;
1684
- if (!equals(this.j47_1, other.j47_1))
2002
+ if (!equals(this.s49_1, other.s49_1))
1685
2003
  return false;
1686
2004
  return true;
1687
2005
  };
1688
2006
  function MapType(type, values) {
1689
- this.t46_1 = type;
1690
- this.u46_1 = values;
2007
+ this.c49_1 = type;
2008
+ this.d49_1 = values;
1691
2009
  }
1692
2010
  protoOf(MapType).toString = function () {
1693
- return 'MapType(type=' + this.t46_1 + ', values=' + toString(this.u46_1) + ')';
2011
+ return 'MapType(type=' + this.c49_1 + ', values=' + toString(this.d49_1) + ')';
1694
2012
  };
1695
2013
  protoOf(MapType).hashCode = function () {
1696
- var result = getStringHashCode(this.t46_1);
1697
- result = imul(result, 31) + hashCode(this.u46_1) | 0;
2014
+ var result = getStringHashCode(this.c49_1);
2015
+ result = imul(result, 31) + hashCode(this.d49_1) | 0;
1698
2016
  return result;
1699
2017
  };
1700
2018
  protoOf(MapType).equals = function (other) {
@@ -1702,28 +2020,28 @@ protoOf(MapType).equals = function (other) {
1702
2020
  return true;
1703
2021
  if (!(other instanceof MapType))
1704
2022
  return false;
1705
- if (!(this.t46_1 === other.t46_1))
2023
+ if (!(this.c49_1 === other.c49_1))
1706
2024
  return false;
1707
- if (!equals(this.u46_1, other.u46_1))
2025
+ if (!equals(this.d49_1, other.d49_1))
1708
2026
  return false;
1709
2027
  return true;
1710
2028
  };
1711
2029
  function EnumType(type, name, doc, symbols) {
1712
2030
  Companion_getInstance_6();
1713
2031
  doc = doc === VOID ? null : doc;
1714
- this.z46_1 = type;
1715
- this.a47_1 = name;
1716
- this.b47_1 = doc;
1717
- this.c47_1 = symbols;
2032
+ this.i49_1 = type;
2033
+ this.j49_1 = name;
2034
+ this.k49_1 = doc;
2035
+ this.l49_1 = symbols;
1718
2036
  }
1719
2037
  protoOf(EnumType).toString = function () {
1720
- return 'EnumType(type=' + this.z46_1 + ', name=' + this.a47_1 + ', doc=' + this.b47_1 + ', symbols=' + toString(this.c47_1) + ')';
2038
+ return 'EnumType(type=' + this.i49_1 + ', name=' + this.j49_1 + ', doc=' + this.k49_1 + ', symbols=' + toString(this.l49_1) + ')';
1721
2039
  };
1722
2040
  protoOf(EnumType).hashCode = function () {
1723
- var result = getStringHashCode(this.z46_1);
1724
- result = imul(result, 31) + getStringHashCode(this.a47_1) | 0;
1725
- result = imul(result, 31) + (this.b47_1 == null ? 0 : getStringHashCode(this.b47_1)) | 0;
1726
- result = imul(result, 31) + hashCode(this.c47_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;
1727
2045
  return result;
1728
2046
  };
1729
2047
  protoOf(EnumType).equals = function (other) {
@@ -1731,26 +2049,26 @@ protoOf(EnumType).equals = function (other) {
1731
2049
  return true;
1732
2050
  if (!(other instanceof EnumType))
1733
2051
  return false;
1734
- if (!(this.z46_1 === other.z46_1))
2052
+ if (!(this.i49_1 === other.i49_1))
1735
2053
  return false;
1736
- if (!(this.a47_1 === other.a47_1))
2054
+ if (!(this.j49_1 === other.j49_1))
1737
2055
  return false;
1738
- if (!(this.b47_1 == other.b47_1))
2056
+ if (!(this.k49_1 == other.k49_1))
1739
2057
  return false;
1740
- if (!equals(this.c47_1, other.c47_1))
2058
+ if (!equals(this.l49_1, other.l49_1))
1741
2059
  return false;
1742
2060
  return true;
1743
2061
  };
1744
2062
  function UnionType(name, type) {
1745
- this.r46_1 = name;
1746
- this.s46_1 = type;
2063
+ this.a49_1 = name;
2064
+ this.b49_1 = type;
1747
2065
  }
1748
2066
  protoOf(UnionType).toString = function () {
1749
- return 'UnionType(name=' + this.r46_1 + ', type=' + this.s46_1.toString() + ')';
2067
+ return 'UnionType(name=' + this.a49_1 + ', type=' + this.b49_1.toString() + ')';
1750
2068
  };
1751
2069
  protoOf(UnionType).hashCode = function () {
1752
- var result = getStringHashCode(this.r46_1);
1753
- result = imul(result, 31) + this.s46_1.hashCode() | 0;
2070
+ var result = getStringHashCode(this.a49_1);
2071
+ result = imul(result, 31) + this.b49_1.hashCode() | 0;
1754
2072
  return result;
1755
2073
  };
1756
2074
  protoOf(UnionType).equals = function (other) {
@@ -1758,22 +2076,22 @@ protoOf(UnionType).equals = function (other) {
1758
2076
  return true;
1759
2077
  if (!(other instanceof UnionType))
1760
2078
  return false;
1761
- if (!(this.r46_1 === other.r46_1))
2079
+ if (!(this.a49_1 === other.a49_1))
1762
2080
  return false;
1763
- if (!this.s46_1.equals(other.s46_1))
2081
+ if (!this.b49_1.equals(other.b49_1))
1764
2082
  return false;
1765
2083
  return true;
1766
2084
  };
1767
2085
  function LogicalType() {
1768
2086
  }
1769
2087
  protoOf(LogicalType).toString = function () {
1770
- return 'LogicalType(type=' + this.v46_1 + ', logicalType=' + this.w46_1 + ', precision=' + this.x46_1 + ', scale=' + this.y46_1 + ')';
2088
+ return 'LogicalType(type=' + this.e49_1 + ', logicalType=' + this.f49_1 + ', precision=' + this.g49_1 + ', scale=' + this.h49_1 + ')';
1771
2089
  };
1772
2090
  protoOf(LogicalType).hashCode = function () {
1773
- var result = getStringHashCode(this.v46_1);
1774
- result = imul(result, 31) + getStringHashCode(this.w46_1) | 0;
1775
- result = imul(result, 31) + (this.x46_1 == null ? 0 : this.x46_1) | 0;
1776
- result = imul(result, 31) + (this.y46_1 == null ? 0 : this.y46_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;
1777
2095
  return result;
1778
2096
  };
1779
2097
  protoOf(LogicalType).equals = function (other) {
@@ -1781,34 +2099,98 @@ protoOf(LogicalType).equals = function (other) {
1781
2099
  return true;
1782
2100
  if (!(other instanceof LogicalType))
1783
2101
  return false;
1784
- if (!(this.v46_1 === other.v46_1))
2102
+ if (!(this.e49_1 === other.e49_1))
1785
2103
  return false;
1786
- if (!(this.w46_1 === other.w46_1))
2104
+ if (!(this.f49_1 === other.f49_1))
1787
2105
  return false;
1788
- if (!(this.x46_1 == other.x46_1))
2106
+ if (!(this.g49_1 == other.g49_1))
1789
2107
  return false;
1790
- if (!(this.y46_1 == other.y46_1))
2108
+ if (!(this.h49_1 == other.h49_1))
1791
2109
  return false;
1792
2110
  return true;
1793
2111
  };
2112
+ function FieldSerializer() {
2113
+ FieldSerializer_instance = this;
2114
+ this.e4b_1 = buildClassSerialDescriptor('Field', []);
2115
+ }
2116
+ protoOf(FieldSerializer).j22 = function () {
2117
+ return this.e4b_1;
2118
+ };
2119
+ protoOf(FieldSerializer).f4b = function (encoder, value) {
2120
+ var tmp0_elvis_lhs = isInterface(encoder, JsonEncoder) ? encoder : null;
2121
+ var tmp;
2122
+ if (tmp0_elvis_lhs == null) {
2123
+ throw SerializationException_init_$Create$('This class can be saved only by Json');
2124
+ } else {
2125
+ tmp = tmp0_elvis_lhs;
2126
+ }
2127
+ var output = tmp;
2128
+ // Inline function 'kotlinx.serialization.json.buildJsonObject' call
2129
+ var builder = new JsonObjectBuilder();
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;
2133
+ if (tmp0_safe_receiver == null)
2134
+ null;
2135
+ else {
2136
+ // Inline function 'kotlin.let' call
2137
+ put(builder, 'doc', tmp0_safe_receiver);
2138
+ }
2139
+ var tmp1_safe_receiver = value.w49_1;
2140
+ if (tmp1_safe_receiver == null)
2141
+ null;
2142
+ else {
2143
+ // Inline function 'kotlin.let' call
2144
+ builder.w2p('default', tmp1_safe_receiver);
2145
+ }
2146
+ // Inline function 'kotlin.let' call
2147
+ var p0 = builder.o2o();
2148
+ output.o2q(p0);
2149
+ };
2150
+ protoOf(FieldSerializer).k22 = function (encoder, value) {
2151
+ return this.f4b(encoder, value instanceof Field_0 ? value : THROW_CCE());
2152
+ };
2153
+ protoOf(FieldSerializer).l22 = function (decoder) {
2154
+ var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
2155
+ var tmp;
2156
+ if (tmp0_elvis_lhs == null) {
2157
+ throw SerializationException_init_$Create$('This class can be loaded only by Json');
2158
+ } else {
2159
+ tmp = tmp0_elvis_lhs;
2160
+ }
2161
+ var input = tmp;
2162
+ // Inline function 'kotlin.let' call
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');
2167
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
2168
+ return new Field_0(tmp_0, tmp_1, tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver), field.kd('default'));
2169
+ };
2170
+ var FieldSerializer_instance;
2171
+ function FieldSerializer_getInstance() {
2172
+ if (FieldSerializer_instance == null)
2173
+ new FieldSerializer();
2174
+ return FieldSerializer_instance;
2175
+ }
1794
2176
  function TypeListSerializer() {
1795
2177
  TypeListSerializer_instance = this;
1796
- this.r48_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
2178
+ this.g4b_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
1797
2179
  }
1798
- protoOf(TypeListSerializer).h20 = function () {
1799
- return this.r48_1;
2180
+ protoOf(TypeListSerializer).j22 = function () {
2181
+ return this.g4b_1;
1800
2182
  };
1801
- protoOf(TypeListSerializer).s48 = function (encoder, value) {
1802
- if (value.q48_1 > 1) {
1803
- encoder.z24(ListSerializer(Companion_instance_1.i2n()), value);
2183
+ protoOf(TypeListSerializer).h4b = function (encoder, value) {
2184
+ if (value.d4b_1 > 1) {
2185
+ encoder.a27(ListSerializer(Companion_instance_1.l2p()), value);
1804
2186
  } else {
1805
- encoder.z24(Companion_instance_1.i2n(), first(value));
2187
+ encoder.a27(Companion_instance_1.l2p(), first(value));
1806
2188
  }
1807
2189
  };
1808
- protoOf(TypeListSerializer).i20 = function (encoder, value) {
1809
- return this.s48(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());
1810
2192
  };
1811
- protoOf(TypeListSerializer).j20 = function (decoder) {
2193
+ protoOf(TypeListSerializer).l22 = function (decoder) {
1812
2194
  var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
1813
2195
  var tmp;
1814
2196
  if (tmp0_elvis_lhs == null) {
@@ -1817,10 +2199,10 @@ protoOf(TypeListSerializer).j20 = function (decoder) {
1817
2199
  tmp = tmp0_elvis_lhs;
1818
2200
  }
1819
2201
  var input = tmp;
1820
- var element = input.f2n();
2202
+ var element = input.h2p();
1821
2203
  var tmp_0;
1822
2204
  if (element instanceof JsonPrimitive) {
1823
- tmp_0 = new TypeList([input.e2n().e2l(Companion_instance_1.i2n(), element)]);
2205
+ tmp_0 = new TypeList([input.g2p().f2n(Companion_instance_1.l2p(), element)]);
1824
2206
  } else {
1825
2207
  if (element instanceof JsonArray) {
1826
2208
  // Inline function 'kotlin.collections.map' call
@@ -1829,15 +2211,15 @@ protoOf(TypeListSerializer).j20 = function (decoder) {
1829
2211
  var _iterator__ex2g4s = element.t();
1830
2212
  while (_iterator__ex2g4s.u()) {
1831
2213
  var item = _iterator__ex2g4s.v();
1832
- var tmp$ret$0 = input.e2n().e2l(Companion_instance_1.i2n(), item);
1833
- destination.x(tmp$ret$0);
2214
+ var tmp$ret$2 = input.g2p().f2n(Companion_instance_1.l2p(), item);
2215
+ destination.x(tmp$ret$2);
1834
2216
  }
1835
2217
  // Inline function 'kotlin.collections.toTypedArray' call
1836
2218
  var tmp$ret$3 = copyToArray(destination);
1837
2219
  tmp_0 = new TypeList(tmp$ret$3.slice());
1838
2220
  } else {
1839
2221
  if (element instanceof JsonObject) {
1840
- tmp_0 = new TypeList([input.e2n().e2l(Companion_instance_1.i2n(), element)]);
2222
+ tmp_0 = new TypeList([input.g2p().f2n(Companion_instance_1.l2p(), element)]);
1841
2223
  } else {
1842
2224
  noWhenBranchMatchedException();
1843
2225
  }
@@ -1853,29 +2235,29 @@ function TypeListSerializer_getInstance() {
1853
2235
  }
1854
2236
  function TypeSerializer() {
1855
2237
  TypeSerializer_instance = this;
1856
- this.t48_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
2238
+ this.i4b_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
1857
2239
  }
1858
- protoOf(TypeSerializer).h20 = function () {
1859
- return this.t48_1;
2240
+ protoOf(TypeSerializer).j22 = function () {
2241
+ return this.i4b_1;
1860
2242
  };
1861
- protoOf(TypeSerializer).u48 = function (encoder, value) {
2243
+ protoOf(TypeSerializer).j4b = function (encoder, value) {
1862
2244
  if (value instanceof SimpleType) {
1863
- encoder.z24(serializer_0(StringCompanionObject_instance), value.q46_1);
2245
+ encoder.a27(serializer_0(StringCompanionObject_instance), value.z48_1);
1864
2246
  } else {
1865
2247
  if (value instanceof RecordType) {
1866
- encoder.z24(Companion_getInstance_3().i2n(), value);
2248
+ encoder.a27(Companion_getInstance_3().l2p(), value);
1867
2249
  } else {
1868
2250
  if (value instanceof ArrayType) {
1869
- encoder.z24(Companion_instance_4.i2n(), value);
2251
+ encoder.a27(Companion_instance_4.l2p(), value);
1870
2252
  } else {
1871
2253
  if (value instanceof MapType) {
1872
- encoder.z24(Companion_instance_5.i2n(), value);
2254
+ encoder.a27(Companion_instance_5.l2p(), value);
1873
2255
  } else {
1874
2256
  if (value instanceof EnumType) {
1875
- encoder.z24(Companion_getInstance_6().i2n(), value);
2257
+ encoder.a27(Companion_getInstance_6().l2p(), value);
1876
2258
  } else {
1877
2259
  if (value instanceof UnionType) {
1878
- encoder.z24(Companion_instance_7.i2n(), value);
2260
+ encoder.a27(Companion_instance_7.l2p(), value);
1879
2261
  } else {
1880
2262
  if (value instanceof LogicalType) {
1881
2263
  // Inline function 'kotlin.TODO' call
@@ -1890,10 +2272,10 @@ protoOf(TypeSerializer).u48 = function (encoder, value) {
1890
2272
  }
1891
2273
  }
1892
2274
  };
1893
- protoOf(TypeSerializer).i20 = function (encoder, value) {
1894
- return this.u48(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());
1895
2277
  };
1896
- protoOf(TypeSerializer).j20 = function (decoder) {
2278
+ protoOf(TypeSerializer).l22 = function (decoder) {
1897
2279
  var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
1898
2280
  var tmp;
1899
2281
  if (tmp0_elvis_lhs == null) {
@@ -1902,28 +2284,30 @@ protoOf(TypeSerializer).j20 = function (decoder) {
1902
2284
  tmp = tmp0_elvis_lhs;
1903
2285
  }
1904
2286
  var input = tmp;
1905
- var element = input.f2n();
2287
+ var element = input.h2p();
1906
2288
  var tmp_0;
1907
2289
  if (element instanceof JsonObject) {
1908
2290
  var tmp_1;
1909
- if (element.m2n('items')) {
1910
- tmp_1 = input.e2n().e2l(Companion_instance_4.i2n(), element);
1911
- } else if (element.m2n('fields')) {
1912
- tmp_1 = input.e2n().e2l(Companion_getInstance_3().i2n(), element);
1913
- } else if (element.m2n('symbols')) {
1914
- tmp_1 = input.e2n().e2l(Companion_getInstance_6().i2n(), element);
1915
- } else if (element.m2n('logicalType')) {
1916
- tmp_1 = input.e2n().e2l(Companion_instance_8.i2n(), 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);
1917
2299
  } else {
2300
+ // Inline function 'kotlin.TODO' call
1918
2301
  var reason = 'Unknown object type: ' + element.toString();
1919
2302
  throw new NotImplementedError('An operation is not implemented: ' + reason);
1920
2303
  }
1921
2304
  tmp_0 = tmp_1;
1922
2305
  } else {
1923
2306
  if (element instanceof JsonPrimitive) {
1924
- tmp_0 = new SimpleType(element.vx());
2307
+ tmp_0 = new SimpleType(element.f1g());
1925
2308
  } else {
1926
2309
  if (element instanceof JsonArray) {
2310
+ // Inline function 'kotlin.TODO' call
1927
2311
  var reason_0 = 'Type can never be an array';
1928
2312
  throw new NotImplementedError('An operation is not implemented: ' + reason_0);
1929
2313
  } else {
@@ -1939,15 +2323,202 @@ function TypeSerializer_getInstance() {
1939
2323
  new TypeSerializer();
1940
2324
  return TypeSerializer_instance;
1941
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
+ }
1942
2514
  //region block: post-declaration
1943
- protoOf($serializer).l2b = typeParametersSerializers;
1944
- protoOf($serializer_0).l2b = typeParametersSerializers;
1945
- protoOf($serializer_1).l2b = typeParametersSerializers;
1946
- protoOf($serializer_2).l2b = typeParametersSerializers;
1947
- protoOf($serializer_3).l2b = typeParametersSerializers;
1948
- protoOf($serializer_4).l2b = typeParametersSerializers;
1949
- protoOf($serializer_5).l2b = typeParametersSerializers;
1950
- protoOf($serializer_6).l2b = 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;
1951
2522
  //endregion
1952
2523
  //region block: init
1953
2524
  AvroJsonParser_instance = new AvroJsonParser();
@@ -1963,8 +2534,9 @@ Companion_instance_8 = new Companion_8();
1963
2534
  //region block: exports
1964
2535
  export {
1965
2536
  Type_0 as Typel89stdvlxo83,
1966
- AvroJsonEmitter_getInstance as AvroJsonEmitter_getInstancef4slytin56up,
1967
- AvroJsonParser_instance as AvroJsonParser_instance1463wx3c6teur,
2537
+ AvroIdlEmitter_getInstance as AvroIdlEmitter_getInstanceyu6o4eau2ce0,
2538
+ AvroJsonEmitter_getInstance as AvroJsonEmitter_getInstanceqxb8ioshyd02,
2539
+ AvroJsonParser_instance as AvroJsonParser_instance5zz3bwjsci7v,
1968
2540
  };
1969
2541
  //endregion
1970
2542