@flock/wirespec 0.18.6 → 0.19.0-RC.3

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 (77) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/arrow-arrow-atomic.mjs +12 -12
  4. package/arrow-arrow-core.mjs +154 -154
  5. package/clikt-clikt-mordant.mjs +80 -80
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1549 -1549
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +441 -441
  10. package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
  11. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
  12. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
  13. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
  14. package/kotest-kotest-common.mjs +56 -0
  15. package/kotest-kotest-common.mjs.map +1 -0
  16. package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
  17. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
  18. package/kotest-kotest-property-kotest-property-datetime.mjs +4 -0
  19. package/kotest-kotest-property-kotest-property-datetime.mjs.map +1 -0
  20. package/kotest-kotest-property.mjs +2400 -0
  21. package/kotest-kotest-property.mjs.map +1 -0
  22. package/kotest-property-arbs.mjs +4 -0
  23. package/kotest-property-arbs.mjs.map +1 -0
  24. package/kotlin-kotlin-stdlib.mjs +5198 -2276
  25. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  26. package/kotlin-openapi-bindings.mjs +4933 -4933
  27. package/kotlin-openapi-bindings.mjs.map +1 -1
  28. package/kotlin-rgxgen.mjs +1802 -1802
  29. package/kotlinx-coroutines-test.mjs +4 -0
  30. package/kotlinx-coroutines-test.mjs.map +1 -0
  31. package/kotlinx-io-kotlinx-io-core.mjs +432 -432
  32. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  33. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1993 -1959
  34. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  35. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1388 -1388
  36. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  37. package/mordant-mordant.mjs +1321 -1321
  38. package/package.json +9 -2
  39. package/wirespec-generator.d.ts +52 -0
  40. package/wirespec-generator.mjs +9 -0
  41. package/wirespec-src-compiler-core.mjs +1538 -1537
  42. package/wirespec-src-compiler-emitters-java.mjs +451 -389
  43. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  44. package/wirespec-src-compiler-emitters-kotlin.mjs +364 -301
  45. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  46. package/wirespec-src-compiler-emitters-python.mjs +556 -359
  47. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  48. package/wirespec-src-compiler-emitters-rust.mjs +758 -458
  49. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  50. package/wirespec-src-compiler-emitters-scala.mjs +243 -165
  51. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  52. package/wirespec-src-compiler-emitters-typescript.mjs +706 -420
  53. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  54. package/wirespec-src-compiler-emitters-wirespec.mjs +80 -80
  55. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  56. package/wirespec-src-compiler-ir.mjs +6639 -4861
  57. package/wirespec-src-compiler-ir.mjs.map +1 -1
  58. package/wirespec-src-compiler-lib.mjs +418 -418
  59. package/wirespec-src-compiler-lib.mjs.map +1 -1
  60. package/wirespec-src-converter-avro.mjs +509 -509
  61. package/wirespec-src-converter-avro.mjs.map +1 -1
  62. package/wirespec-src-converter-openapi.mjs +753 -753
  63. package/wirespec-src-converter-openapi.mjs.map +1 -1
  64. package/wirespec-src-integration-kotest.mjs +1455 -0
  65. package/wirespec-src-integration-kotest.mjs.map +1 -0
  66. package/wirespec-src-plugin-arguments.mjs +182 -182
  67. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  68. package/wirespec-src-plugin-cli.mjs +106 -106
  69. package/wirespec-src-plugin-npm.d.mts +11 -0
  70. package/wirespec-src-plugin-npm.mjs +41 -41
  71. package/wirespec-src-plugin-npm.mjs.map +1 -1
  72. package/wirespec-src-tools-generator.mjs +53 -53
  73. package/wirespec-src-tools-generator.mjs.map +1 -1
  74. package/xmlutil-core.mjs +4 -0
  75. package/xmlutil-core.mjs.map +1 -0
  76. package/xmlutil-serialization.mjs +4 -0
  77. package/xmlutil-serialization.mjs.map +1 -0
@@ -28,10 +28,18 @@ import {
28
28
  plus310ted5e4i90h as plus,
29
29
  listOf1jh22dvmctj1r as listOf_0,
30
30
  addAll1k27qatfgp3k5 as addAll,
31
+ startsWith26w8qjqapeeq6 as startsWith,
32
+ substringBefore3n7kj60w69hju as substringBefore,
31
33
  lazy2hsh8ze7j6ikd as lazy,
32
34
  plus20p0vtfmu0596 as plus_0,
33
35
  THROW_CCE2g6jy02ryeudk as THROW_CCE,
34
36
  isInterface3d6p8outrmvmk as isInterface,
37
+ asSequence2phdjljfh9jhx as asSequence,
38
+ filterNot56uwv8hfomaa as filterNot,
39
+ mapsbvh18eqox7a as map,
40
+ distinct17vua5ffe1cfv as distinct,
41
+ toListx6x8nvfmvvht as toList,
42
+ endsWith3cq61xxngobwh as endsWith,
35
43
  firstOrNull1982767dljvdy as firstOrNull_0,
36
44
  ensureNotNull1e947j3ixpazm as ensureNotNull,
37
45
  HashSet_init_$Create$33p49hmosnvr4 as HashSet_init_$Create$,
@@ -40,7 +48,6 @@ import {
40
48
  singleo93pzdgfc557 as single,
41
49
  noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
42
50
  equals2au1ep9vhcato as equals,
43
- endsWith3cq61xxngobwh as endsWith,
44
51
  } from './kotlin-kotlin-stdlib.mjs';
45
52
  import {
46
53
  Companion_instancebcq57hoyp8c2 as Companion_instance,
@@ -49,6 +56,10 @@ import {
49
56
  Companion_instance1a2xqc448tlhh as Companion_instance_0,
50
57
  Companion_instance2ryk3262e300f as Companion_instance_1,
51
58
  FileExtension_Scala_getInstancedd4dbv51x4if as FileExtension_Scala_getInstance,
59
+ Unionccsavx6nrdr2 as Union,
60
+ Refined1lkzc0dg6wey7 as Refined,
61
+ Enum3l2iuc342kle6 as Enum,
62
+ Type12n1gx16iqtcu as Type,
52
63
  plus14o24vdaiongg as plus_1,
53
64
  importReferencesy4xv7r53sjjs as importReferences,
54
65
  Unit2z95clvxm08vr as Unit,
@@ -73,7 +84,7 @@ import {
73
84
  sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
74
85
  ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
75
86
  SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
76
- Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
87
+ Custom2si7lto3wompr as Custom_0,
77
88
  String_instance3uxvo48ki208u as String_instance,
78
89
  Reflect_instance3i17lxiopj78t as Reflect_instance,
79
90
  Package2tniq694j1763 as Package,
@@ -98,8 +109,14 @@ import {
98
109
  emitn3eihixilqyh as emit,
99
110
  prependImports32gcj3yb8voha as prependImports,
100
111
  placeInPackage1ffljbk9me4ug as placeInPackage,
101
- convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
112
+ convertToGenerator2wzjrmaavxhph as convertToGenerator,
113
+ convertToGeneratorkggw47cqose7 as convertToGenerator_0,
114
+ convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
115
+ convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
102
116
  sanitizeNames2wqmyf8vafp9x as sanitizeNames,
117
+ collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
118
+ placeInPackagena6oqbi45fz6 as placeInPackage_0,
119
+ convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
103
120
  ensureEmptyStructHasConstructorfl467argh9dd as ensureEmptyStructHasConstructor,
104
121
  convert11ert2po54h1y as convert_0,
105
122
  injectEnumLabelFieldyfohidz6c88i as injectEnumLabelField,
@@ -120,7 +137,6 @@ import {
120
137
  FieldCall1iz7z2fx2xo4p as FieldCall,
121
138
  TypeParameter1x56bawg1pg87 as TypeParameter,
122
139
  Function21cuq8qizkin7 as Function,
123
- Custom2si7lto3wompr as Custom_0,
124
140
  } from './wirespec-src-compiler-ir.mjs';
125
141
  //region block: imports
126
142
  //endregion
@@ -129,15 +145,15 @@ initMetadataForCompanion(Companion);
129
145
  initMetadataForClass(ScalaIrEmitter, 'ScalaIrEmitter', ScalaIrEmitter, VOID, [IrEmitter]);
130
146
  //endregion
131
147
  function _get_sanitizationConfig__sns434($this) {
132
- var tmp0 = $this.u1y_1;
148
+ var tmp0 = $this.n23_1;
133
149
  var tmp = KProperty1;
134
150
  // Inline function 'kotlin.getValue' call
135
151
  getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0(), null);
136
- return tmp0.l1();
152
+ return tmp0.m1();
137
153
  }
138
154
  function sanitize($this, _this__u8e3s4) {
139
155
  // Inline function 'kotlin.collections.mapIndexed' call
140
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
156
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
141
157
  // Inline function 'kotlin.collections.mapIndexedTo' call
142
158
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
143
159
  var index = 0;
@@ -146,7 +162,7 @@ function sanitize($this, _this__u8e3s4) {
146
162
  var item = _iterator__ex2g4s.v();
147
163
  var _unary__edvuaz = index;
148
164
  index = _unary__edvuaz + 1 | 0;
149
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.oq(item) : item;
165
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.mu(item) : item;
150
166
  destination.x(tmp$ret$0);
151
167
  }
152
168
  // Inline function 'kotlin.text.filter' call
@@ -194,7 +210,7 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
194
210
  return tmp;
195
211
  }
196
212
  function sanitizeKeywords($this, _this__u8e3s4) {
197
- return Companion_getInstance_0().v1y_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
213
+ return Companion_getInstance_0().o23_1.v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
198
214
  }
199
215
  function sanitizeSymbol($this, _this__u8e3s4) {
200
216
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -207,7 +223,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
207
223
  var item = _iterator__ex2g4s.v();
208
224
  var _unary__edvuaz = index;
209
225
  index = _unary__edvuaz + 1 | 0;
210
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.oq(item) : item;
226
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.mu(item) : item;
211
227
  destination.x(tmp$ret$0);
212
228
  }
213
229
  // Inline function 'kotlin.text.filter' call
@@ -234,7 +250,7 @@ function sanitizeEnum($this, _this__u8e3s4) {
234
250
  }
235
251
  function Companion() {
236
252
  Companion_instance_2 = this;
237
- this.v1y_1 = setOf(['abstract', 'case', 'class', 'def', 'do', 'else', 'extends', 'false', 'final', 'for', 'forSome', 'if', 'implicit', 'import', 'lazy', 'match', 'new', 'null', 'object', 'override', 'package', 'private', 'protected', 'return', 'sealed', 'super', 'this', 'throw', 'trait', 'true', 'try', 'type', 'val', 'var', 'while', 'with', 'yield', 'given', 'using', 'enum', 'export', 'then']);
253
+ this.o23_1 = setOf(['abstract', 'case', 'class', 'def', 'do', 'else', 'extends', 'false', 'final', 'for', 'forSome', 'if', 'implicit', 'import', 'lazy', 'match', 'new', 'null', 'object', 'override', 'package', 'private', 'protected', 'return', 'sealed', 'super', 'this', 'throw', 'trait', 'true', 'try', 'type', 'val', 'var', 'while', 'with', 'yield', 'given', 'using', 'enum', 'export', 'then']);
238
254
  }
239
255
  var Companion_instance_2;
240
256
  function Companion_getInstance_0() {
@@ -247,13 +263,13 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
247
263
  }
248
264
  function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
249
265
  return function (name) {
250
- var sanitized = name.g1h_1.a1() > 1 ? name.s1l() : sanitizeSymbol(this$0, name.s1h());
266
+ var sanitized = name.s1k_1.a1() > 1 ? name.v1p() : sanitizeSymbol(this$0, name.p1m());
251
267
  return new Name(listOf(sanitized));
252
268
  };
253
269
  }
254
270
  function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
255
271
  return function (name) {
256
- return new Name(listOf(sanitizeSymbol(this$0, name.s1l())));
272
+ return new Name(listOf(sanitizeSymbol(this$0, name.v1p())));
257
273
  };
258
274
  }
259
275
  function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
@@ -266,28 +282,28 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
266
282
  var tmp;
267
283
  var tmp_0;
268
284
  if (stmt instanceof FunctionCall) {
269
- tmp_0 = stmt.b1m_1.s1h() === 'validate';
285
+ tmp_0 = stmt.f1q_1.p1m() === 'validate';
270
286
  } else {
271
287
  tmp_0 = false;
272
288
  }
273
289
  if (tmp_0) {
274
- tmp = transformChildren(stmt.f1m(VOID, emptyList()), tr);
290
+ tmp = transformChildren(stmt.j1q(VOID, emptyList()), tr);
275
291
  } else {
276
292
  if (stmt instanceof ConstructorStatement) {
277
- var tmp_1 = tr.p1t(stmt.p1m_1);
293
+ var tmp_1 = tr.d1y(stmt.x1q_1);
278
294
  // Inline function 'kotlin.collections.map' call
279
- var this_0 = stmt.q1m_1;
295
+ var this_0 = stmt.y1q_1;
280
296
  // Inline function 'kotlin.collections.mapTo' call
281
297
  var destination = ArrayList_init_$Create$(this_0.a1());
282
298
  // Inline function 'kotlin.collections.iterator' call
283
- var _iterator__ex2g4s = this_0.j1().t();
299
+ var _iterator__ex2g4s = this_0.k1().t();
284
300
  while (_iterator__ex2g4s.u()) {
285
301
  var item = _iterator__ex2g4s.v();
286
302
  // Inline function 'kotlin.collections.component1' call
287
- var name = item.k1();
303
+ var name = item.l1();
288
304
  // Inline function 'kotlin.collections.component2' call
289
- var expr = item.l1();
290
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.s1t(expr));
305
+ var expr = item.m1();
306
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.g1y(expr));
291
307
  destination.x(tmp$ret$3);
292
308
  }
293
309
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
@@ -300,7 +316,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
300
316
  }
301
317
  function ScalaIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
302
318
  return function () {
303
- var tmp = Companion_getInstance_0().v1y_1;
319
+ var tmp = Companion_getInstance_0().o23_1;
304
320
  var tmp_0 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda;
305
321
  var tmp_1 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
306
322
  var tmp_2 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -314,21 +330,21 @@ function ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0() {
314
330
  };
315
331
  }
316
332
  function ScalaIrEmitter$emitShared$lambda($this$struct) {
317
- $this$struct.k1k(Custom_init_$Create$('PathSegment'));
318
- $this$struct.k1j('value', String_instance);
333
+ $this$struct.a1o(new Custom_0('PathSegment'));
334
+ $this$struct.v1n('value', String_instance);
319
335
  return Unit_instance;
320
336
  }
321
337
  function ScalaIrEmitter$emitShared$lambda_0($this$struct) {
322
- $this$struct.k1k(Custom_init_$Create$('PathSegment'));
323
- $this$struct.k1j('name', String_instance);
324
- $this$struct.k1j('type', Reflect_instance);
338
+ $this$struct.a1o(new Custom_0('PathSegment'));
339
+ $this$struct.v1n('name', String_instance);
340
+ $this$struct.v1n('type', Reflect_instance);
325
341
  return Unit_instance;
326
342
  }
327
343
  function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
328
344
  var tmp;
329
345
  if (element instanceof File) {
330
346
  // Inline function 'kotlin.collections.partition' call
331
- var this_0 = element.t1m_1;
347
+ var this_0 = element.b1r_1;
332
348
  var first = ArrayList_init_$Create$_0();
333
349
  var second = ArrayList_init_$Create$_0();
334
350
  var _iterator__ex2g4s = this_0.t();
@@ -341,9 +357,9 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
341
357
  }
342
358
  }
343
359
  var _destruct__k2r9zo = new Pair(first, second);
344
- var packageElements = _destruct__k2r9zo.ne();
345
- var rest = _destruct__k2r9zo.oe();
346
- tmp = element.w1m(VOID, plus(packageElements, rest));
360
+ var packageElements = _destruct__k2r9zo.kf();
361
+ var rest = _destruct__k2r9zo.lf();
362
+ tmp = element.e1r(VOID, plus(packageElements, rest));
347
363
  } else {
348
364
  tmp = element;
349
365
  }
@@ -355,12 +371,12 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
355
371
  if (element instanceof Namespace) {
356
372
  var tmp$ret$0;
357
373
  $l$block: {
358
- if (!element.y1m_1.equals(Companion_getInstance().f1h('Wirespec'))) {
374
+ if (!element.g1r_1.equals(Companion_getInstance().u1k('Wirespec'))) {
359
375
  tmp$ret$0 = element;
360
376
  break $l$block;
361
377
  }
362
378
  // Inline function 'kotlin.collections.flatMap' call
363
- var tmp0 = element.z1m_1;
379
+ var tmp0 = element.h1r_1;
364
380
  // Inline function 'kotlin.collections.flatMapTo' call
365
381
  var destination = ArrayList_init_$Create$_0();
366
382
  var _iterator__ex2g4s = tmp0.t();
@@ -372,14 +388,14 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
372
388
  if (!(element_0 instanceof Interface)) {
373
389
  tmp_0 = true;
374
390
  } else {
375
- tmp_0 = !setOf(['Request', 'Response']).u1(element_0.k1n_1.h1h());
391
+ tmp_0 = !setOf(['Request', 'Response']).v1(element_0.t1r_1.b1q());
376
392
  }
377
393
  if (tmp_0) {
378
394
  tmp$ret$1 = listOf(element_0);
379
395
  break $l$block_2;
380
396
  }
381
397
  // Inline function 'kotlin.collections.filterIsInstance' call
382
- var tmp0_0 = element_0.l1n_1;
398
+ var tmp0_0 = element_0.u1r_1;
383
399
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
384
400
  var destination_0 = ArrayList_init_$Create$_0();
385
401
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -395,7 +411,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
395
411
  var _iterator__ex2g4s_1 = destination_0.t();
396
412
  while (_iterator__ex2g4s_1.u()) {
397
413
  var element_2 = _iterator__ex2g4s_1.v();
398
- if (element_2.k1n_1.h1h() === 'Headers') {
414
+ if (element_2.t1r_1.b1q() === 'Headers') {
399
415
  tmp$ret$5 = element_2;
400
416
  break $l$block_1;
401
417
  }
@@ -411,9 +427,9 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
411
427
  tmp_1 = tmp0_elvis_lhs;
412
428
  }
413
429
  var nestedHeaders = tmp_1;
414
- var tmp_2 = new Namespace(element_0.k1n_1, listOf(nestedHeaders));
430
+ var tmp_2 = new Namespace(element_0.t1r_1, listOf(nestedHeaders));
415
431
  // Inline function 'kotlin.collections.filter' call
416
- var tmp0_1 = element_0.l1n_1;
432
+ var tmp0_1 = element_0.u1r_1;
417
433
  // Inline function 'kotlin.collections.filterTo' call
418
434
  var destination_1 = ArrayList_init_$Create$_0();
419
435
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -421,7 +437,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
421
437
  var element_3 = _iterator__ex2g4s_2.v();
422
438
  var tmp_3;
423
439
  if (element_3 instanceof Interface) {
424
- tmp_3 = element_3.k1n_1.h1h() === 'Headers';
440
+ tmp_3 = element_3.t1r_1.b1q() === 'Headers';
425
441
  } else {
426
442
  tmp_3 = false;
427
443
  }
@@ -431,28 +447,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
431
447
  }
432
448
  var tmp_4 = destination_1;
433
449
  // Inline function 'kotlin.collections.map' call
434
- var this_0 = element_0.p1n_1;
450
+ var this_0 = element_0.y1r_1;
435
451
  // Inline function 'kotlin.collections.mapTo' call
436
452
  var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
437
453
  var _iterator__ex2g4s_3 = this_0.t();
438
454
  while (_iterator__ex2g4s_3.u()) {
439
455
  var item = _iterator__ex2g4s_3.v();
440
456
  var tmp_5;
441
- if (item.z1p_1.s1h() === 'headers') {
442
- tmp_5 = item.d1q(VOID, Custom_init_$Create$(element_0.k1n_1.h1h() + '.Headers'));
457
+ if (item.h1t_1.p1m() === 'headers') {
458
+ tmp_5 = item.l1t(VOID, new Custom_0(element_0.t1r_1.b1q() + '.Headers'));
443
459
  } else {
444
460
  tmp_5 = item;
445
461
  }
446
462
  var tmp$ret$9 = tmp_5;
447
463
  destination_2.x(tmp$ret$9);
448
464
  }
449
- tmp$ret$1 = listOf_0([tmp_2, element_0.r1n(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
465
+ tmp$ret$1 = listOf_0([tmp_2, element_0.a1s(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
450
466
  }
451
467
  var list = tmp$ret$1;
452
468
  addAll(destination, list);
453
469
  }
454
470
  var newElements = destination;
455
- tmp$ret$0 = element.c1n(VOID, newElements);
471
+ tmp$ret$0 = element.k1r(VOID, newElements);
456
472
  }
457
473
  tmp = tmp$ret$0;
458
474
  } else {
@@ -465,11 +481,11 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
465
481
  return function (element, transformer) {
466
482
  var tmp;
467
483
  if (element instanceof Namespace) {
468
- var injected = element.y1m_1.equals(Companion_getInstance().f1h('Wirespec')) ? $clientServer : emptyList();
484
+ var injected = element.g1r_1.equals(Companion_getInstance().u1k('Wirespec')) ? $clientServer : emptyList();
469
485
  var tmp_0;
470
486
  // Inline function 'kotlin.collections.isNotEmpty' call
471
487
  if (!injected.r()) {
472
- tmp_0 = withElements(element, plus(element.u1m(), injected));
488
+ tmp_0 = withElements(element, plus(element.c1r(), injected));
473
489
  } else {
474
490
  tmp_0 = element;
475
491
  }
@@ -481,6 +497,17 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
481
497
  return transformChildren_0(transformed, transformer);
482
498
  };
483
499
  }
500
+ function ScalaIrEmitter$emitGenerator$lambda(it) {
501
+ return startsWith(it, 'Wirespec.') || it === 'Wirespec';
502
+ }
503
+ function ScalaIrEmitter$emitGenerator$lambda_0($generatorOwnName) {
504
+ return function (it) {
505
+ return it === $generatorOwnName;
506
+ };
507
+ }
508
+ function ScalaIrEmitter$emitGenerator$lambda_1(it) {
509
+ return substringBefore(it, _Char___init__impl__6a9atx(60));
510
+ }
484
511
  function ScalaIrEmitter$emit$lambda(this$0) {
485
512
  return function (it) {
486
513
  return sanitizeEnum(this$0, it);
@@ -488,27 +515,30 @@ function ScalaIrEmitter$emit$lambda(this$0) {
488
515
  }
489
516
  function ScalaIrEmitter(packageName, emitShared) {
490
517
  Companion_getInstance_0();
491
- packageName = packageName === VOID ? Companion_instance_0.lr('community.flock.wirespec.generated') : packageName;
492
- emitShared = emitShared === VOID ? Companion_instance_1.go() : emitShared;
493
- this.p1y_1 = packageName;
494
- this.q1y_1 = emitShared;
495
- this.r1y_1 = ScalaGenerator_getInstance();
496
- this.s1y_1 = FileExtension_Scala_getInstance();
497
- this.t1y_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
518
+ packageName = packageName === VOID ? Companion_instance_0.jv('community.flock.wirespec.generated') : packageName;
519
+ emitShared = emitShared === VOID ? Companion_instance_1.es() : emitShared;
520
+ this.i23_1 = packageName;
521
+ this.j23_1 = emitShared;
522
+ this.k23_1 = ScalaGenerator_getInstance();
523
+ this.l23_1 = FileExtension_Scala_getInstance();
524
+ this.m23_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
498
525
  var tmp = this;
499
- tmp.u1y_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
526
+ tmp.n23_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
500
527
  }
501
- protoOf(ScalaIrEmitter).d1v = function () {
502
- return this.p1y_1;
528
+ protoOf(ScalaIrEmitter).v1z = function () {
529
+ return this.i23_1;
503
530
  };
504
- protoOf(ScalaIrEmitter).k1u = function () {
505
- return this.r1y_1;
531
+ protoOf(ScalaIrEmitter).y1y = function () {
532
+ return this.k23_1;
506
533
  };
507
- protoOf(ScalaIrEmitter).eq = function () {
508
- return this.s1y_1;
534
+ protoOf(ScalaIrEmitter).cu = function () {
535
+ return this.l23_1;
509
536
  };
510
- protoOf(ScalaIrEmitter).n1u = function () {
511
- var packageName = Companion_instance_0.lr('community.flock.wirespec.scala');
537
+ protoOf(ScalaIrEmitter).d1z = function (allFiles) {
538
+ ScalaGenerator_getInstance().k1z(allFiles);
539
+ };
540
+ protoOf(ScalaIrEmitter).b1z = function () {
541
+ var packageName = Companion_instance_0.jv('community.flock.wirespec.scala');
512
542
  var tmp = interface_0('PathSegment', true);
513
543
  var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
514
544
  var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param', ScalaIrEmitter$emitShared$lambda_0)]);
@@ -522,12 +552,12 @@ protoOf(ScalaIrEmitter).n1u = function () {
522
552
  var tmp_1;
523
553
  var tmp_2;
524
554
  if (item instanceof Interface) {
525
- tmp_2 = setOf(['Client', 'Server']).u1(item.k1n_1.h1h());
555
+ tmp_2 = setOf(['Client', 'Server']).v1(item.t1r_1.b1q());
526
556
  } else {
527
557
  tmp_2 = false;
528
558
  }
529
559
  if (tmp_2) {
530
- tmp_1 = item.r1n(VOID, VOID, VOID, VOID, VOID, plus_0(item.p1n_1, new Field(Companion_getInstance().f1h('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
560
+ tmp_1 = item.a1s(VOID, VOID, VOID, VOID, VOID, plus_0(item.y1r_1, new Field(Companion_getInstance().u1k('pathSegments'), new Array_0(new Custom_0('PathSegment')))));
531
561
  } else {
532
562
  tmp_1 = item;
533
563
  }
@@ -541,72 +571,120 @@ protoOf(ScalaIrEmitter).n1u = function () {
541
571
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
542
572
  var tmp_3 = scope;
543
573
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
544
- var this_2 = scope.x1t_1;
574
+ var this_2 = scope.l1y_1;
545
575
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
546
576
  // Inline function 'kotlin.apply' call
547
577
  var this_3 = new TransformerBuilder();
548
- this_3.c1h(ScalaIrEmitter$emitShared$lambda_1);
549
- var tmp$ret$5 = this_3.d1h();
550
- tmp_3.x1t_1 = transform(this_2, tmp$ret$5);
578
+ this_3.d1m(ScalaIrEmitter$emitShared$lambda_1);
579
+ var tmp$ret$5 = this_3.e1m();
580
+ tmp_3.l1y_1 = transform(this_2, tmp$ret$5);
551
581
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
552
582
  var tmp_4 = scope;
553
583
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
554
- var this_4 = scope.x1t_1;
584
+ var this_4 = scope.l1y_1;
555
585
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
556
586
  // Inline function 'kotlin.apply' call
557
587
  var this_5 = new TransformerBuilder();
558
- this_5.c1h(ScalaIrEmitter$emitShared$lambda_2);
559
- var tmp$ret$10 = this_5.d1h();
560
- tmp_4.x1t_1 = transform(this_4, tmp$ret$10);
588
+ this_5.d1m(ScalaIrEmitter$emitShared$lambda_2);
589
+ var tmp$ret$10 = this_5.e1m();
590
+ tmp_4.l1y_1 = transform(this_4, tmp$ret$10);
561
591
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
562
592
  var tmp_5 = scope;
563
593
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
564
594
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
565
- var this_6 = scope.x1t_1;
595
+ var this_6 = scope.l1y_1;
566
596
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
567
597
  // Inline function 'kotlin.apply' call
568
598
  var this_7 = new TransformerBuilder();
569
- this_7.c1h(ScalaIrEmitter$emitShared$lambda_3(clientServer));
570
- var tmp$ret$15 = this_7.d1h();
571
- tmp_5.x1t_1 = transform(this_6, tmp$ret$15);
572
- var tmp_6 = scope.x1t_1;
599
+ this_7.d1m(ScalaIrEmitter$emitShared$lambda_3(clientServer));
600
+ var tmp$ret$15 = this_7.e1m();
601
+ tmp_5.l1y_1 = transform(this_6, tmp$ret$15);
602
+ var tmp_6 = scope.l1y_1;
573
603
  var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
574
604
  var tmp_7;
575
- if (this.q1y_1.ho_1) {
576
- tmp_7 = wirespecShared.w1m(Companion_getInstance().f1h(packageName.or() + 'Wirespec'));
605
+ if (this.j23_1.fs_1) {
606
+ tmp_7 = wirespecShared.e1r(Companion_getInstance().u1k(packageName.mv() + 'Wirespec'));
577
607
  } else {
578
608
  tmp_7 = null;
579
609
  }
580
610
  return tmp_7;
581
611
  };
582
- protoOf(ScalaIrEmitter).uq = function (definition, module_0, logger) {
612
+ protoOf(ScalaIrEmitter).su = function (definition, module_0, logger) {
583
613
  var file = emit.call(this, definition, module_0, logger);
584
614
  // Inline function 'kotlin.takeIf' call
585
- var this_0 = this.t1y_1;
615
+ var this_0 = this.m23_1;
586
616
  var tmp;
587
- if (Companion_instance.qq(module_0)) {
617
+ if (Companion_instance.ou(module_0)) {
588
618
  tmp = this_0;
589
619
  } else {
590
620
  tmp = null;
591
621
  }
592
622
  var tmp$ret$1 = tmp;
593
- return placeInPackage(prependImports(file, tmp$ret$1), this.d1v(), definition);
623
+ return placeInPackage(prependImports(file, tmp$ret$1), this.v1z(), definition);
624
+ };
625
+ protoOf(ScalaIrEmitter).f1z = function (definition, module_0) {
626
+ var tmp;
627
+ if (definition instanceof Type) {
628
+ tmp = convertToGenerator_2(definition, module_0);
629
+ } else {
630
+ if (definition instanceof Enum) {
631
+ tmp = convertToGenerator_1(definition);
632
+ } else {
633
+ if (definition instanceof Refined) {
634
+ tmp = convertToGenerator_0(definition);
635
+ } else {
636
+ if (definition instanceof Union) {
637
+ tmp = convertToGenerator(definition);
638
+ } else {
639
+ return null;
640
+ }
641
+ }
642
+ }
643
+ }
644
+ var generatorFile = tmp;
645
+ var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
646
+ var generatorOwnName = definition.tu().m1() + 'Generator';
647
+ var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
648
+ var tmp_1 = filterNot(tmp_0, ScalaIrEmitter$emitGenerator$lambda);
649
+ var tmp_2 = filterNot(tmp_1, ScalaIrEmitter$emitGenerator$lambda_0(generatorOwnName));
650
+ var customNames = toList(distinct(map(tmp_2, ScalaIrEmitter$emitGenerator$lambda_1)));
651
+ // Inline function 'kotlin.collections.filterNot' call
652
+ // Inline function 'kotlin.collections.filterNotTo' call
653
+ var destination = ArrayList_init_$Create$_0();
654
+ var _iterator__ex2g4s = customNames.t();
655
+ while (_iterator__ex2g4s.u()) {
656
+ var element = _iterator__ex2g4s.v();
657
+ if (!endsWith(element, 'Generator')) {
658
+ destination.x(element);
659
+ }
660
+ }
661
+ // Inline function 'kotlin.collections.map' call
662
+ // Inline function 'kotlin.collections.mapTo' call
663
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
664
+ var _iterator__ex2g4s_0 = destination.t();
665
+ while (_iterator__ex2g4s_0.u()) {
666
+ var item = _iterator__ex2g4s_0.v();
667
+ var tmp$ret$3 = import_0(this.v1z().kv_1 + '.model', item);
668
+ destination_0.x(tmp$ret$3);
669
+ }
670
+ var modelImports = destination_0;
671
+ return placeInPackage_0(prependImports(sanitized, plus(this.m23_1, modelImports)), this.v1z(), 'generator');
594
672
  };
595
- protoOf(ScalaIrEmitter).up = function (type, module_0) {
673
+ protoOf(ScalaIrEmitter).st = function (type, module_0) {
596
674
  return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
597
675
  };
598
- protoOf(ScalaIrEmitter).ir = function (enum_0, module_0) {
676
+ protoOf(ScalaIrEmitter).gv = function (enum_0, module_0) {
599
677
  var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
600
678
  return injectEnumLabelField(tmp, ScalaIrEmitter$emit$lambda(this));
601
679
  };
602
- protoOf(ScalaIrEmitter).yq = function (union) {
680
+ protoOf(ScalaIrEmitter).wu = function (union) {
603
681
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
604
682
  };
605
- protoOf(ScalaIrEmitter).dr = function (refined) {
683
+ protoOf(ScalaIrEmitter).bv = function (refined) {
606
684
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
607
685
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
608
686
  // Inline function 'kotlin.collections.filterIsInstance' call
609
- var tmp0 = file.u1m();
687
+ var tmp0 = file.c1r();
610
688
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
611
689
  var destination = ArrayList_init_$Create$_0();
612
690
  var _iterator__ex2g4s = tmp0.t();
@@ -618,12 +696,12 @@ protoOf(ScalaIrEmitter).dr = function (refined) {
618
696
  }
619
697
  var tmp$ret$2 = firstOrNull_0(destination);
620
698
  var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$2)));
621
- return new File(Companion_getInstance().f1h(sanitize(this, refined.br_1)), listOf(updatedStruct));
699
+ return new File(Companion_getInstance().u1k(sanitize(this, refined.zu_1)), listOf(updatedStruct));
622
700
  };
623
- protoOf(ScalaIrEmitter).jr = function (endpoint) {
701
+ protoOf(ScalaIrEmitter).hv = function (endpoint) {
624
702
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
625
703
  // Inline function 'kotlin.collections.filterIsInstance' call
626
- var tmp0 = convert_3(endpoint).u1m();
704
+ var tmp0 = convert_3(endpoint).c1r();
627
705
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
628
706
  var destination = ArrayList_init_$Create$_0();
629
707
  var _iterator__ex2g4s = tmp0.t();
@@ -637,9 +715,9 @@ protoOf(ScalaIrEmitter).jr = function (endpoint) {
637
715
  var endpointNamespace = ensureNotNull(tmp$ret$2);
638
716
  var flattened = flattenNestedStructs(endpointNamespace);
639
717
  var body = appendClientServerObjects(injectHandleFunction(flattened), endpoint, isRequestObject(flattened));
640
- var tmp = sanitizeNames(new File(Companion_getInstance().f1h(sanitize(this, endpoint.ep_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
718
+ var tmp = sanitizeNames(new File(Companion_getInstance().u1k(sanitize(this, endpoint.ct_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
641
719
  // Inline function 'kotlin.takeIf' call
642
- var this_0 = buildModelImports(endpoint, this.d1v());
720
+ var this_0 = buildModelImports(endpoint, this.v1z());
643
721
  var tmp_0;
644
722
  // Inline function 'kotlin.collections.isNotEmpty' call
645
723
  if (!this_0.r()) {
@@ -650,10 +728,10 @@ protoOf(ScalaIrEmitter).jr = function (endpoint) {
650
728
  var tmp$ret$5 = tmp_0;
651
729
  return prependImports(tmp, tmp$ret$5);
652
730
  };
653
- protoOf(ScalaIrEmitter).xq = function (channel) {
731
+ protoOf(ScalaIrEmitter).vu = function (channel) {
654
732
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
655
733
  // Inline function 'kotlin.takeIf' call
656
- var this_0 = buildModelImports(channel, this.d1v());
734
+ var this_0 = buildModelImports(channel, this.v1z());
657
735
  var tmp_0;
658
736
  // Inline function 'kotlin.collections.isNotEmpty' call
659
737
  if (!this_0.r()) {
@@ -664,25 +742,25 @@ protoOf(ScalaIrEmitter).xq = function (channel) {
664
742
  var tmp$ret$2 = tmp_0;
665
743
  return prependImports(tmp, tmp$ret$2);
666
744
  };
667
- protoOf(ScalaIrEmitter).p1u = function (endpoint) {
668
- var imports = buildModelImports(endpoint, this.d1v());
669
- var endpointImport = import_0(this.d1v().mr_1 + '.endpoint', endpoint.ep_1.l1());
745
+ protoOf(ScalaIrEmitter).e1z = function (endpoint) {
746
+ var imports = buildModelImports(endpoint, this.v1z());
747
+ var endpointImport = import_0(this.v1z().kv_1 + '.endpoint', endpoint.ct_1.m1());
670
748
  var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
671
- var subPackageName = plus_1(this.d1v(), 'client');
672
- var tmp = Companion_getInstance().f1h(subPackageName.or() + file.s1m_1.h1h());
749
+ var subPackageName = plus_1(this.v1z(), 'client');
750
+ var tmp = Companion_getInstance().u1k(subPackageName.mv() + file.a1r_1.b1q());
673
751
  // Inline function 'kotlin.collections.buildList' call
674
752
  // Inline function 'kotlin.collections.buildListInternal' call
675
753
  // Inline function 'kotlin.apply' call
676
754
  var this_0 = ArrayList_init_$Create$_0();
677
- this_0.x(new Package(subPackageName.mr_1));
678
- this_0.e1(this.t1y_1);
755
+ this_0.x(new Package(subPackageName.kv_1));
756
+ this_0.e1(this.m23_1);
679
757
  this_0.e1(imports);
680
758
  this_0.x(endpointImport);
681
- this_0.e1(file.t1m_1);
682
- var tmp$ret$3 = this_0.o5();
759
+ this_0.e1(file.b1r_1);
760
+ var tmp$ret$3 = this_0.p5();
683
761
  return new File(tmp, tmp$ret$3);
684
762
  };
685
- protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
763
+ protoOf(ScalaIrEmitter).c1z = function (endpoints, logger) {
686
764
  // Inline function 'kotlin.collections.flatMap' call
687
765
  // Inline function 'kotlin.collections.flatMapTo' call
688
766
  var destination = ArrayList_init_$Create$_0();
@@ -698,7 +776,7 @@ protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
698
776
  var _iterator__ex2g4s_0 = destination.t();
699
777
  while (_iterator__ex2g4s_0.u()) {
700
778
  var e = _iterator__ex2g4s_0.v();
701
- var key = e.ku_1;
779
+ var key = e.iy_1;
702
780
  if (set.x(key)) {
703
781
  list_0.x(e);
704
782
  }
@@ -709,7 +787,7 @@ protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
709
787
  var _iterator__ex2g4s_1 = list_0.t();
710
788
  while (_iterator__ex2g4s_1.u()) {
711
789
  var item = _iterator__ex2g4s_1.v();
712
- var tmp$ret$5 = import_0(this.d1v().mr_1 + '.model', item.ku_1);
790
+ var tmp$ret$5 = import_0(this.v1z().kv_1 + '.model', item.iy_1);
713
791
  destination_0.x(tmp$ret$5);
714
792
  }
715
793
  var imports = destination_0;
@@ -719,7 +797,7 @@ protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
719
797
  var _iterator__ex2g4s_2 = endpoints.t();
720
798
  while (_iterator__ex2g4s_2.u()) {
721
799
  var item_0 = _iterator__ex2g4s_2.v();
722
- var tmp$ret$8 = import_0(this.d1v().mr_1 + '.endpoint', item_0.ep_1.l1());
800
+ var tmp$ret$8 = import_0(this.v1z().kv_1 + '.endpoint', item_0.ct_1.m1());
723
801
  destination_1.x(tmp$ret$8);
724
802
  }
725
803
  var endpointImports = destination_1;
@@ -729,38 +807,38 @@ protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
729
807
  var _iterator__ex2g4s_3 = endpoints.t();
730
808
  while (_iterator__ex2g4s_3.u()) {
731
809
  var item_1 = _iterator__ex2g4s_3.v();
732
- var tmp$ret$11 = import_0(this.d1v().mr_1 + '.client', item_1.ep_1.l1() + 'Client');
810
+ var tmp$ret$11 = import_0(this.v1z().kv_1 + '.client', item_1.ct_1.m1() + 'Client');
733
811
  destination_2.x(tmp$ret$11);
734
812
  }
735
813
  var clientImports = destination_2;
736
814
  var allImports = plus(plus(imports, endpointImports), clientImports);
737
815
  var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
738
- var tmp = Companion_getInstance().f1h(this.d1v().or() + file.s1m_1.h1h());
816
+ var tmp = Companion_getInstance().u1k(this.v1z().mv() + file.a1r_1.b1q());
739
817
  // Inline function 'kotlin.collections.buildList' call
740
818
  // Inline function 'kotlin.collections.buildListInternal' call
741
819
  // Inline function 'kotlin.apply' call
742
820
  var this_0 = ArrayList_init_$Create$_0();
743
- this_0.x(new Package(this.d1v().mr_1));
744
- this_0.e1(this.t1y_1);
821
+ this_0.x(new Package(this.v1z().kv_1));
822
+ this_0.e1(this.m23_1);
745
823
  this_0.e1(allImports);
746
- this_0.e1(file.t1m_1);
747
- var tmp$ret$17 = this_0.o5();
824
+ this_0.e1(file.b1r_1);
825
+ var tmp$ret$17 = this_0.p5();
748
826
  return new File(tmp, tmp$ret$17);
749
827
  };
750
828
  function convertToStringCallsToFieldAccess(_this__u8e3s4) {
751
829
  // Inline function 'community.flock.wirespec.ir.core.transform' call
752
830
  var scope = new TransformScope(_this__u8e3s4);
753
- scope.f1u(convertToStringCallsToFieldAccess$lambda);
754
- var tmp = scope.x1t_1;
831
+ scope.t1y(convertToStringCallsToFieldAccess$lambda);
832
+ var tmp = scope.l1y_1;
755
833
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
756
834
  }
757
835
  function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
758
836
  var reqType = requestIsObject ? 'Request.type' : 'Request';
759
- var pathTemplate = '/' + joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
760
- var pathSegmentsCode = joinToString(endpoint.gp_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
761
- var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.fp_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def client(serialization: Wirespec.Serialization): Wirespec.ClientEdge[' + reqType + ', Response[?]] = new Wirespec.ClientEdge[' + reqType + ', Response[?]] {\n | override def to(request: ' + reqType + '): Wirespec.RawRequest = toRawRequest(serialization, request)\n | override def from(response: Wirespec.RawResponse): Response[?] = fromRawResponse(serialization, response)\n | }\n |}\n '));
762
- var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.fp_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def server(serialization: Wirespec.Serialization): Wirespec.ServerEdge[' + reqType + ', Response[?]] = new Wirespec.ServerEdge[' + reqType + ', Response[?]] {\n | override def from(request: Wirespec.RawRequest): ' + reqType + ' = fromRawRequest(serialization, request)\n | override def to(response: Response[?]): Wirespec.RawResponse = toRawResponse(serialization, response)\n | }\n |}\n '));
763
- return _this__u8e3s4.c1n(VOID, plus_0(plus_0(_this__u8e3s4.z1m_1, clientObject), serverObject));
837
+ var pathTemplate = '/' + joinToString(endpoint.et_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
838
+ var pathSegmentsCode = joinToString(endpoint.et_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
839
+ var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.dt_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def client(serialization: Wirespec.Serialization): Wirespec.ClientEdge[' + reqType + ', Response[?]] = new Wirespec.ClientEdge[' + reqType + ', Response[?]] {\n | override def to(request: ' + reqType + '): Wirespec.RawRequest = toRawRequest(serialization, request)\n | override def from(response: Wirespec.RawResponse): Response[?] = fromRawResponse(serialization, response)\n | }\n |}\n '));
840
+ var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.dt_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def server(serialization: Wirespec.Serialization): Wirespec.ServerEdge[' + reqType + ', Response[?]] = new Wirespec.ServerEdge[' + reqType + ', Response[?]] {\n | override def from(request: Wirespec.RawRequest): ' + reqType + ' = fromRawRequest(serialization, request)\n | override def to(response: Response[?]): Wirespec.RawResponse = toRawResponse(serialization, response)\n | }\n |}\n '));
841
+ return _this__u8e3s4.k1r(VOID, plus_0(plus_0(_this__u8e3s4.h1r_1, clientObject), serverObject));
764
842
  }
765
843
  function injectHandleFunction(_this__u8e3s4) {
766
844
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -768,19 +846,19 @@ function injectHandleFunction(_this__u8e3s4) {
768
846
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
769
847
  var tmp = scope;
770
848
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
771
- var this_0 = scope.x1t_1;
849
+ var this_0 = scope.l1y_1;
772
850
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
773
851
  // Inline function 'kotlin.apply' call
774
852
  var this_1 = new TransformerBuilder();
775
- this_1.c1h(injectHandleFunction$lambda);
776
- var tmp$ret$2 = this_1.d1h();
777
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
778
- var tmp_0 = scope.x1t_1;
853
+ this_1.d1m(injectHandleFunction$lambda);
854
+ var tmp$ret$2 = this_1.e1m();
855
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
856
+ var tmp_0 = scope.l1y_1;
779
857
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
780
858
  }
781
859
  function isRequestObject(namespace) {
782
860
  // Inline function 'kotlin.collections.filterIsInstance' call
783
- var tmp0 = namespace.z1m_1;
861
+ var tmp0 = namespace.h1r_1;
784
862
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
785
863
  var destination = ArrayList_init_$Create$_0();
786
864
  var _iterator__ex2g4s = tmp0.t();
@@ -796,7 +874,7 @@ function isRequestObject(namespace) {
796
874
  var _iterator__ex2g4s_0 = destination.t();
797
875
  while (_iterator__ex2g4s_0.u()) {
798
876
  var element_0 = _iterator__ex2g4s_0.v();
799
- if (element_0.d1n_1.h1h() === 'Request') {
877
+ if (element_0.l1r_1.b1q() === 'Request') {
800
878
  tmp$ret$3 = element_0;
801
879
  break $l$block;
802
880
  }
@@ -811,7 +889,7 @@ function isRequestObject(namespace) {
811
889
  tmp = tmp0_elvis_lhs;
812
890
  }
813
891
  var requestStruct = tmp;
814
- return requestStruct.f1n_1.a1() === 1 && single(requestStruct.f1n_1).l1q_1.r() || (requestStruct.e1n_1.r() && requestStruct.f1n_1.r());
892
+ return requestStruct.n1r_1.a1() === 1 && single(requestStruct.n1r_1).u1u_1.r() || (requestStruct.m1r_1.r() && requestStruct.n1r_1.r());
815
893
  }
816
894
  function buildModelImports(_this__u8e3s4, packageName) {
817
895
  // Inline function 'kotlin.collections.distinctBy' call
@@ -821,7 +899,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
821
899
  var _iterator__ex2g4s = this_0.t();
822
900
  while (_iterator__ex2g4s.u()) {
823
901
  var e = _iterator__ex2g4s.v();
824
- var key = e.ku_1;
902
+ var key = e.iy_1;
825
903
  if (set.x(key)) {
826
904
  list.x(e);
827
905
  }
@@ -832,7 +910,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
832
910
  var _iterator__ex2g4s_0 = list.t();
833
911
  while (_iterator__ex2g4s_0.u()) {
834
912
  var item = _iterator__ex2g4s_0.v();
835
- var tmp$ret$2 = import_0(packageName.mr_1 + '.model', Companion_getInstance().f1h(item.ku_1).h1h());
913
+ var tmp$ret$2 = import_0(packageName.kv_1 + '.model', item.iy_1);
836
914
  destination.x(tmp$ret$2);
837
915
  }
838
916
  return destination;
@@ -843,29 +921,29 @@ function addIdentityTypeToCall(_this__u8e3s4) {
843
921
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
844
922
  var tmp = scope;
845
923
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
846
- var this_0 = scope.x1t_1;
924
+ var this_0 = scope.l1y_1;
847
925
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
848
926
  // Inline function 'kotlin.apply' call
849
927
  var this_1 = new TransformerBuilder();
850
- this_1.c1h(addIdentityTypeToCall$lambda);
851
- var tmp$ret$2 = this_1.d1h();
852
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
853
- var tmp_0 = scope.x1t_1;
928
+ this_1.d1m(addIdentityTypeToCall$lambda);
929
+ var tmp$ret$2 = this_1.e1m();
930
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
931
+ var tmp_0 = scope.l1y_1;
854
932
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
855
933
  }
856
934
  function toScalaTypeName(_this__u8e3s4) {
857
935
  var tmp;
858
936
  if (_this__u8e3s4 instanceof Primitive) {
859
- var t = _this__u8e3s4.ou_1;
937
+ var t = _this__u8e3s4.my_1;
860
938
  var tmp_0;
861
939
  if (t instanceof String_0) {
862
940
  tmp_0 = 'String';
863
941
  } else {
864
942
  if (t instanceof Integer) {
865
- tmp_0 = t.st_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
943
+ tmp_0 = t.qx_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
866
944
  } else {
867
945
  if (t instanceof Number_0) {
868
- tmp_0 = t.vt_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
946
+ tmp_0 = t.tx_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
869
947
  } else {
870
948
  if (equals(t, Boolean_instance)) {
871
949
  tmp_0 = 'Boolean';
@@ -882,13 +960,13 @@ function toScalaTypeName(_this__u8e3s4) {
882
960
  tmp = tmp_0;
883
961
  } else {
884
962
  if (_this__u8e3s4 instanceof Custom) {
885
- tmp = _this__u8e3s4.ku_1;
963
+ tmp = _this__u8e3s4.iy_1;
886
964
  } else {
887
965
  if (_this__u8e3s4 instanceof Iterable) {
888
- tmp = 'List[' + toScalaTypeName(_this__u8e3s4.zn_1) + ']';
966
+ tmp = 'List[' + toScalaTypeName(_this__u8e3s4.xr_1) + ']';
889
967
  } else {
890
968
  if (_this__u8e3s4 instanceof Dict) {
891
- tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.co_1) + ']';
969
+ tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.as_1) + ']';
892
970
  } else {
893
971
  if (_this__u8e3s4 instanceof Any) {
894
972
  tmp = 'Any';
@@ -904,32 +982,32 @@ function toScalaTypeName(_this__u8e3s4) {
904
982
  }
905
983
  }
906
984
  var base = tmp;
907
- return _this__u8e3s4.cu() ? 'Option[' + base + ']' : base;
985
+ return _this__u8e3s4.ay() ? 'Option[' + base + ']' : base;
908
986
  }
909
987
  function convertToStringCallsToFieldAccess$lambda(expr, tr) {
910
988
  var tmp;
911
989
  var tmp_0;
912
990
  var tmp_1;
913
991
  if (expr instanceof FunctionCall) {
914
- tmp_1 = expr.b1m_1.s1l() === 'toString';
992
+ tmp_1 = expr.f1q_1.v1p() === 'toString';
915
993
  } else {
916
994
  tmp_1 = false;
917
995
  }
918
996
  if (tmp_1) {
919
- tmp_0 = !(expr.z1l_1 == null);
997
+ tmp_0 = !(expr.d1q_1 == null);
920
998
  } else {
921
999
  tmp_0 = false;
922
1000
  }
923
1001
  if (tmp_0) {
924
- var tmp0_safe_receiver = expr.z1l_1;
1002
+ var tmp0_safe_receiver = expr.d1q_1;
925
1003
  var tmp_2;
926
1004
  if (tmp0_safe_receiver == null) {
927
1005
  tmp_2 = null;
928
1006
  } else {
929
1007
  // Inline function 'kotlin.let' call
930
- tmp_2 = tr.s1t(tmp0_safe_receiver);
1008
+ tmp_2 = tr.g1y(tmp0_safe_receiver);
931
1009
  }
932
- tmp = new FieldCall(tmp_2, Companion_getInstance().f1h('toString'));
1010
+ tmp = new FieldCall(tmp_2, Companion_getInstance().u1k('toString'));
933
1011
  } else {
934
1012
  tmp = transformChildren_1(expr, tr);
935
1013
  }
@@ -938,10 +1016,10 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
938
1016
  function appendClientServerObjects$lambda(it) {
939
1017
  var tmp;
940
1018
  if (it instanceof Literal) {
941
- tmp = it.hq_1;
1019
+ tmp = it.fu_1;
942
1020
  } else {
943
1021
  if (it instanceof Param) {
944
- tmp = '{' + it.lp_1.l1() + '}';
1022
+ tmp = '{' + it.jt_1.m1() + '}';
945
1023
  } else {
946
1024
  noWhenBranchMatchedException();
947
1025
  }
@@ -951,10 +1029,10 @@ function appendClientServerObjects$lambda(it) {
951
1029
  function appendClientServerObjects$lambda_0(segment) {
952
1030
  var tmp;
953
1031
  if (segment instanceof Literal) {
954
- tmp = 'Wirespec.Literal("' + segment.hq_1 + '")';
1032
+ tmp = 'Wirespec.Literal("' + segment.fu_1 + '")';
955
1033
  } else {
956
1034
  if (segment instanceof Param) {
957
- tmp = 'Wirespec.Param("' + segment.lp_1.l1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.mp_1) + '])';
1035
+ tmp = 'Wirespec.Param("' + segment.jt_1.m1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.kt_1) + '])';
958
1036
  } else {
959
1037
  noWhenBranchMatchedException();
960
1038
  }
@@ -966,13 +1044,13 @@ function injectHandleFunction$lambda(element, transformer) {
966
1044
  if (element instanceof Interface) {
967
1045
  var tmp$ret$0;
968
1046
  $l$block: {
969
- if (!element.k1n_1.equals(Companion_getInstance().f1h('Handler')) && !element.k1n_1.equals(Companion_getInstance().f1h('Call'))) {
1047
+ if (!element.t1r_1.equals(Companion_getInstance().u1k('Handler')) && !element.t1r_1.equals(Companion_getInstance().u1k('Call'))) {
970
1048
  tmp$ret$0 = element;
971
1049
  break $l$block;
972
1050
  }
973
- var tmp0_typeParameters = listOf(new TypeParameter(Custom_init_$Create$('F[_]')));
1051
+ var tmp0_typeParameters = listOf(new TypeParameter(new Custom_0('F[_]')));
974
1052
  // Inline function 'kotlin.collections.map' call
975
- var this_0 = element.l1n_1;
1053
+ var this_0 = element.u1r_1;
976
1054
  // Inline function 'kotlin.collections.mapTo' call
977
1055
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
978
1056
  var _iterator__ex2g4s = this_0.t();
@@ -983,22 +1061,22 @@ function injectHandleFunction$lambda(element, transformer) {
983
1061
  if (tmp0_safe_receiver == null) {
984
1062
  tmp_0 = null;
985
1063
  } else {
986
- var tmp1_safe_receiver = item.w1j_1;
1064
+ var tmp1_safe_receiver = item.m1o_1;
987
1065
  var tmp_1;
988
1066
  if (tmp1_safe_receiver == null) {
989
1067
  tmp_1 = null;
990
1068
  } else {
991
1069
  // Inline function 'kotlin.let' call
992
- tmp_1 = Custom_init_$Create$('F', listOf(tmp1_safe_receiver));
1070
+ tmp_1 = new Custom_0('F', listOf(tmp1_safe_receiver));
993
1071
  }
994
1072
  var tmp3_returnType = tmp_1;
995
- tmp_0 = tmp0_safe_receiver.b1k(VOID, VOID, VOID, tmp3_returnType, VOID, false);
1073
+ tmp_0 = tmp0_safe_receiver.r1o(VOID, VOID, VOID, tmp3_returnType, VOID, false);
996
1074
  }
997
1075
  var tmp4_elvis_lhs = tmp_0;
998
1076
  var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
999
1077
  destination.x(tmp$ret$3);
1000
1078
  }
1001
- tmp$ret$0 = element.r1n(VOID, destination, VOID, VOID, tmp0_typeParameters);
1079
+ tmp$ret$0 = element.a1s(VOID, destination, VOID, VOID, tmp0_typeParameters);
1002
1080
  }
1003
1081
  tmp = tmp$ret$0;
1004
1082
  } else {
@@ -1011,7 +1089,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1011
1089
  var tmp;
1012
1090
  if (element instanceof Struct) {
1013
1091
  // Inline function 'kotlin.collections.map' call
1014
- var this_0 = element.g1n_1;
1092
+ var this_0 = element.o1r_1;
1015
1093
  // Inline function 'kotlin.collections.mapTo' call
1016
1094
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1017
1095
  var _iterator__ex2g4s = this_0.t();
@@ -1024,7 +1102,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1024
1102
  } else {
1025
1103
  // Inline function 'kotlin.takeIf' call
1026
1104
  var tmp_1;
1027
- if (endsWith(tmp0_safe_receiver.q1h_1.h1h(), '.Call')) {
1105
+ if (endsWith(tmp0_safe_receiver.n1m_1, '.Call')) {
1028
1106
  tmp_1 = tmp0_safe_receiver;
1029
1107
  } else {
1030
1108
  tmp_1 = null;
@@ -1032,11 +1110,11 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1032
1110
  tmp_0 = tmp_1;
1033
1111
  }
1034
1112
  var tmp1_safe_receiver = tmp_0;
1035
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1m(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
1113
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r1q(VOID, listOf(new Custom_0('[A] =>> A')));
1036
1114
  var tmp$ret$2 = tmp2_elvis_lhs == null ? item : tmp2_elvis_lhs;
1037
1115
  destination.x(tmp$ret$2);
1038
1116
  }
1039
- tmp = element.j1n(VOID, VOID, VOID, destination);
1117
+ tmp = element.s1r(VOID, VOID, VOID, destination);
1040
1118
  } else {
1041
1119
  tmp = element;
1042
1120
  }
@@ -1044,8 +1122,8 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1044
1122
  return transformChildren_0(transformed, transformer);
1045
1123
  }
1046
1124
  //region block: post-declaration
1047
- protoOf(ScalaIrEmitter).on = emit_0;
1048
- protoOf(ScalaIrEmitter).m1u = emit_1;
1125
+ protoOf(ScalaIrEmitter).mr = emit_0;
1126
+ protoOf(ScalaIrEmitter).a1z = emit_1;
1049
1127
  //endregion
1050
1128
  //region block: exports
1051
1129
  export {