@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
@@ -32,6 +32,11 @@ import {
32
32
  Unit2z95clvxm08vr as Unit,
33
33
  Iterable29qbzfup67wqp as Iterable,
34
34
  Dict3g7w5wia7rncj as Dict,
35
+ Unionccsavx6nrdr2 as Union,
36
+ Refined1lkzc0dg6wey7 as Refined,
37
+ Enum3l2iuc342kle6 as Enum,
38
+ Type12n1gx16iqtcu as Type,
39
+ plus14o24vdaiongg as plus_0,
35
40
  Bytes_instance1o9u095wd3kx6 as Bytes_instance,
36
41
  Boolean_instance237vwt01w3hs8 as Boolean_instance,
37
42
  RegExpiyof7szm5zfu as RegExp_0,
@@ -73,30 +78,43 @@ import {
73
78
  Regex_init_$Create$9xrx4twz2i6q as Regex_init_$Create$,
74
79
  getStringHashCode26igk1bx568vk as getStringHashCode,
75
80
  getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
81
+ listOf1jh22dvmctj1r as listOf,
82
+ mapCapacity1h45rc3eh9p2l as mapCapacity,
83
+ coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
84
+ LinkedHashMap_init_$Create$1s75e1k23v4xj as LinkedHashMap_init_$Create$_0,
85
+ removePrefix279df90bhrqqg as removePrefix,
76
86
  setOf45ia9pnfhe90 as setOf,
77
87
  initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
78
- listOfvhqybd2zx248 as listOf,
88
+ listOfvhqybd2zx248 as listOf_0,
79
89
  to2cs3ny02qtbcb as to,
80
90
  toMap1vec9topfei08 as toMap,
81
91
  emptyList1g2z5xcrvp2zy as emptyList,
82
- plus310ted5e4i90h as plus_0,
92
+ plus310ted5e4i90h as plus_1,
93
+ equals2au1ep9vhcato as equals,
94
+ mapOf2zpbbmyqk8xpf as mapOf,
95
+ plus2m1vv33moko5t as plus_2,
96
+ startsWith26w8qjqapeeq6 as startsWith,
97
+ substringBefore3n7kj60w69hju as substringBefore,
98
+ endsWith3cq61xxngobwh as endsWith,
83
99
  isInterface3d6p8outrmvmk as isInterface,
84
100
  lazy2hsh8ze7j6ikd as lazy,
85
- distinct10qe1scfdvu5k as distinct,
101
+ asSequence2phdjljfh9jhx as asSequence,
102
+ filterNot56uwv8hfomaa as filterNot,
103
+ mapsbvh18eqox7a as map,
104
+ distinct17vua5ffe1cfv as distinct,
105
+ toListx6x8nvfmvvht as toList,
106
+ LinkedHashSet_init_$Create$2lru2gvxodydo as LinkedHashSet_init_$Create$,
107
+ distinct10qe1scfdvu5k as distinct_0,
86
108
  toSet2orjxp16sotqu as toSet,
87
- listOf1jh22dvmctj1r as listOf_0,
88
109
  Collection1k04j3hzsbod0 as Collection,
89
110
  substringAfterLastuw9v7gfiiihe as substringAfterLast,
90
- removePrefix279df90bhrqqg as removePrefix,
91
111
  toIntOrNull3w2d066r9pvwm as toIntOrNull,
92
112
  ensureNotNull1e947j3ixpazm as ensureNotNull,
93
- mapOf2zpbbmyqk8xpf as mapOf,
94
113
  charArrayOf27f4r3dozbrk1 as charArrayOf,
95
114
  trimEndvvzjdhan75g as trimEnd,
96
- equals2au1ep9vhcato as equals,
97
115
  initMetadataForObject1cxne3s9w65el as initMetadataForObject,
98
116
  Char19o2r8palgjof as Char,
99
- asSequence3lsvgkvyzox0q as asSequence,
117
+ asSequence3lsvgkvyzox0q as asSequence_0,
100
118
  filter184huxd00uyfg as filter,
101
119
  joinToStringooja5rkatz3u as joinToString_0,
102
120
  listOfNotNull2woi2boe01ub4 as listOfNotNull,
@@ -122,6 +140,15 @@ import {
122
140
  withElements2toq84v08e72 as withElements,
123
141
  Namespace345pal554qu3j as Namespace,
124
142
  transformChildrend9p91tpcqdkx as transformChildren_0,
143
+ StringLiteral3ffeojfhsbsmg as StringLiteral,
144
+ Field354s1ceh5pvhf as Field,
145
+ Struct39wf79cwtn4ty as Struct,
146
+ RawExpression2bo7ldfrptjia as RawExpression,
147
+ FunctionCall30872kpnbr7op as FunctionCall,
148
+ transformChildren3n5cjwmxlhwx9 as transformChildren_1,
149
+ Custom2si7lto3wompr as Custom_0,
150
+ String_instance3uxvo48ki208u as String_instance,
151
+ Literal50s1y3607cdv as Literal_0,
125
152
  TransformScopeyrd3lf4zrk76 as TransformScope,
126
153
  TransformerBuildera6a1gvlhjj9b as TransformerBuilder,
127
154
  transform3eti8i2bqvifx as transform,
@@ -132,9 +159,14 @@ import {
132
159
  emitn3eihixilqyh as emit_0,
133
160
  import5uhkz67bd8tt as import_0,
134
161
  File3dimy4iqmuock as File,
162
+ convertToGenerator2wzjrmaavxhph as convertToGenerator,
163
+ convertToGeneratorkggw47cqose7 as convertToGenerator_0,
164
+ convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
165
+ convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
166
+ sanitizeNames2wqmyf8vafp9x as sanitizeNames,
167
+ collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
135
168
  classifyValidatableFields11bv88x0ho39r as classifyValidatableFields,
136
169
  convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
137
- sanitizeNames2wqmyf8vafp9x as sanitizeNames,
138
170
  convert11ert2po54h1y as convert_0,
139
171
  convert37aabdzvtv9vg as convert_1,
140
172
  convert17zcptkz4mhr4 as convert_2,
@@ -143,17 +175,13 @@ import {
143
175
  convert32tuiui3czihh as convert_3,
144
176
  convert1cn4bolzoed8c as convert_4,
145
177
  emit3bzdcd0f6nwtj as emit_1,
178
+ beforeGenerate3o8idb3hey1b0 as beforeGenerate,
146
179
  IrEmitterh2m93ojzvkep as IrEmitter,
147
180
  rawttvqxl50flj9 as raw,
148
181
  Switch3a1zi3na98deu as Switch,
149
- Custom2si7lto3wompr as Custom_0,
150
- RawExpression2bo7ldfrptjia as RawExpression,
151
182
  Integer1uwg1wvo5lp6z as Integer_0,
152
- Literal50s1y3607cdv as Literal_0,
153
183
  Case2i7oahw4alz6h as Case,
154
184
  FieldCall1iz7z2fx2xo4p as FieldCall,
155
- FunctionCall30872kpnbr7op as FunctionCall,
156
- Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
157
185
  Parameteruqoxd4rzw7ga as Parameter,
158
186
  Function21cuq8qizkin7 as Function,
159
187
  Interface3pn84xq686t2r as Interface,
@@ -165,14 +193,14 @@ var imul = Math.imul;
165
193
  //endregion
166
194
  //region block: pre-declaration
167
195
  function emit_2(identifier) {
168
- return '"' + identifier.l1() + '"';
196
+ return '"' + identifier.m1() + '"';
169
197
  }
170
198
  initMetadataForInterface(TypeScriptIdentifierEmitter, 'TypeScriptIdentifierEmitter');
171
199
  function sanitizeSymbol(_this__u8e3s4) {
172
- return this.p1v(_this__u8e3s4.l1());
200
+ return this.h20(_this__u8e3s4.m1());
173
201
  }
174
202
  function sanitizeSymbol_0(_this__u8e3s4) {
175
- var tmp = asSequence(_this__u8e3s4);
203
+ var tmp = asSequence_0(_this__u8e3s4);
176
204
  return joinToString_0(filter(tmp, TypeScriptTypeDefinitionEmitter$sanitizeSymbol$lambda), '');
177
205
  }
178
206
  function emit_3(type, module_0) {
@@ -183,7 +211,7 @@ function emit_3(type, module_0) {
183
211
  var _iterator__ex2g4s = this_0.t();
184
212
  while (_iterator__ex2g4s.u()) {
185
213
  var e = _iterator__ex2g4s.v();
186
- var key = e.ku_1;
214
+ var key = e.iy_1;
187
215
  if (set.x(key)) {
188
216
  list.x(e);
189
217
  }
@@ -194,19 +222,19 @@ function emit_3(type, module_0) {
194
222
  var _iterator__ex2g4s_0 = list.t();
195
223
  while (_iterator__ex2g4s_0.u()) {
196
224
  var item = _iterator__ex2g4s_0.v();
197
- var tmp$ret$2 = 'import {' + item.ku_1 + "} from './" + item.ku_1 + "'";
225
+ var tmp$ret$2 = 'import {' + item.iy_1 + "} from './" + item.iy_1 + "'";
198
226
  destination.x(tmp$ret$2);
199
227
  }
200
228
  var tmp = destination;
201
- return trimMargin('\n |' + joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda) + '\n |export type ' + this.x1y(type.vo_1) + ' = {\n |' + this.vp(type.wo_1) + '\n |}\n |\n ');
229
+ return trimMargin('\n |' + joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda) + '\n |export type ' + this.q23(type.ts_1) + ' = {\n |' + this.tt(type.us_1) + '\n |}\n |\n ');
202
230
  }
203
231
  function emit_4(_this__u8e3s4) {
204
232
  var tmp;
205
233
  if (_this__u8e3s4 instanceof Dict) {
206
- tmp = 'Record<string, ' + this.xp(_this__u8e3s4.co_1) + '>';
234
+ tmp = 'Record<string, ' + this.vt(_this__u8e3s4.as_1) + '>';
207
235
  } else {
208
236
  if (_this__u8e3s4 instanceof Iterable) {
209
- tmp = this.xp(_this__u8e3s4.zn_1) + '[]';
237
+ tmp = this.vt(_this__u8e3s4.xr_1) + '[]';
210
238
  } else {
211
239
  if (_this__u8e3s4 instanceof Unit) {
212
240
  tmp = 'void';
@@ -215,10 +243,10 @@ function emit_4(_this__u8e3s4) {
215
243
  tmp = 'any';
216
244
  } else {
217
245
  if (_this__u8e3s4 instanceof Custom) {
218
- tmp = this.p1v(_this__u8e3s4.ku_1);
246
+ tmp = this.h20(_this__u8e3s4.iy_1);
219
247
  } else {
220
248
  if (_this__u8e3s4 instanceof Primitive) {
221
- tmp = this.y1y(_this__u8e3s4);
249
+ tmp = this.r23(_this__u8e3s4);
222
250
  } else {
223
251
  noWhenBranchMatchedException();
224
252
  }
@@ -228,10 +256,10 @@ function emit_4(_this__u8e3s4) {
228
256
  }
229
257
  }
230
258
  // Inline function 'kotlin.let' call
231
- return tmp + (_this__u8e3s4.cu() ? ' | undefined' : '');
259
+ return tmp + (_this__u8e3s4.ay() ? ' | undefined' : '');
232
260
  }
233
261
  function emitPrimitive(_this__u8e3s4) {
234
- var tmp0_subject = _this__u8e3s4.ou_1;
262
+ var tmp0_subject = _this__u8e3s4.my_1;
235
263
  var tmp;
236
264
  if (tmp0_subject instanceof String_0) {
237
265
  tmp = 'string';
@@ -259,10 +287,10 @@ function emitPrimitive(_this__u8e3s4) {
259
287
  function emit_5(_this__u8e3s4) {
260
288
  var tmp;
261
289
  if (_this__u8e3s4 instanceof RegExp_0) {
262
- tmp = Spacer_instance.toString() + 'return ' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ys_1) + '.test(value);';
290
+ tmp = Spacer_instance.toString() + 'return ' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ww_1) + '.test(value);';
263
291
  } else {
264
292
  if (_this__u8e3s4 instanceof Bound) {
265
- var tmp1_safe_receiver = _this__u8e3s4.ot_1;
293
+ var tmp1_safe_receiver = _this__u8e3s4.mx_1;
266
294
  var tmp_0;
267
295
  if (tmp1_safe_receiver == null) {
268
296
  tmp_0 = null;
@@ -271,7 +299,7 @@ function emit_5(_this__u8e3s4) {
271
299
  tmp_0 = tmp1_safe_receiver + ' < value';
272
300
  }
273
301
  var minCheck = tmp_0;
274
- var tmp2_safe_receiver = _this__u8e3s4.pt_1;
302
+ var tmp2_safe_receiver = _this__u8e3s4.nx_1;
275
303
  var tmp_1;
276
304
  if (tmp2_safe_receiver == null) {
277
305
  tmp_1 = null;
@@ -299,18 +327,18 @@ function emit_5(_this__u8e3s4) {
299
327
  return tmp;
300
328
  }
301
329
  function emit_6(_this__u8e3s4) {
302
- return joinToString(_this__u8e3s4.so_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda_0(this));
330
+ return joinToString(_this__u8e3s4.qs_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda_0(this));
303
331
  }
304
332
  function emit_7(_this__u8e3s4) {
305
- return Spacer_instance.toString() + this.wq(_this__u8e3s4.ap_1) + ': ' + this.xp(_this__u8e3s4.bp_1);
333
+ return Spacer_instance.toString() + this.uu(_this__u8e3s4.ys_1) + ': ' + this.vt(_this__u8e3s4.zs_1);
306
334
  }
307
335
  initMetadataForInterface(TypeScriptTypeDefinitionEmitter, 'TypeScriptTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, TypeScriptIdentifierEmitter]);
308
336
  function emitClient(ast) {
309
- var tmp = 'client.' + this.eq().nq_1;
310
- var tmp_0 = this.aq(ast);
337
+ var tmp = 'client.' + this.cu().lu_1;
338
+ var tmp_0 = this.yt(ast);
311
339
  var tmp_1 = joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda);
312
340
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
313
- var this_0 = ast.bq_1;
341
+ var this_0 = ast.zt_1;
314
342
  // Inline function 'kotlin.collections.flatMap' call
315
343
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
316
344
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -318,7 +346,7 @@ function emitClient(ast) {
318
346
  var _iterator__ex2g4s = tmp0.t();
319
347
  while (_iterator__ex2g4s.u()) {
320
348
  var element = _iterator__ex2g4s.v();
321
- var list = new NonEmptyList(element.dq_1);
349
+ var list = new NonEmptyList(element.bu_1);
322
350
  addAll(destination, list);
323
351
  }
324
352
  var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -338,14 +366,14 @@ function emitClient(ast) {
338
366
  var _iterator__ex2g4s_1 = destination_0.t();
339
367
  while (_iterator__ex2g4s_1.u()) {
340
368
  var e = _iterator__ex2g4s_1.v();
341
- var key = e.ku_1;
369
+ var key = e.iy_1;
342
370
  if (set.x(key)) {
343
371
  list_1.x(e);
344
372
  }
345
373
  }
346
374
  var tmp_2 = list_1;
347
375
  var tmp_3 = joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda_0);
348
- var tmp_4 = this.aq(ast);
376
+ var tmp_4 = this.yt(ast);
349
377
  return new Emitted(tmp, trimMargin('\n |import {Wirespec} from "./Wirespec"\n |\n |' + tmp_1 + '\n |\n |' + tmp_3 + '\n |\n |type RawHandler = (req: Wirespec.RawRequest) => Promise<Wirespec.RawResponse>\n |\n |export const client = (serialization: Wirespec.Serialization, handler: RawHandler) => ({\n |' + spacer(joinToString(tmp_4, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda_1(this)), 1) + '\n |})\n |\n '));
350
378
  }
351
379
  initMetadataForInterface(TypeScriptClientEmitter, 'TypeScriptClientEmitter', VOID, VOID, [ClientEmitter, TypeScriptTypeDefinitionEmitter]);
@@ -357,7 +385,7 @@ function emit_8(endpoint) {
357
385
  var _iterator__ex2g4s = this_0.t();
358
386
  while (_iterator__ex2g4s.u()) {
359
387
  var e = _iterator__ex2g4s.v();
360
- var key = e.ku_1;
388
+ var key = e.iy_1;
361
389
  if (set.x(key)) {
362
390
  list.x(e);
363
391
  }
@@ -368,64 +396,64 @@ function emit_8(endpoint) {
368
396
  var _iterator__ex2g4s_0 = list.t();
369
397
  while (_iterator__ex2g4s_0.u()) {
370
398
  var item = _iterator__ex2g4s_0.v();
371
- var tmp$ret$2 = 'import {type ' + item.ku_1 + "} from '../model'";
399
+ var tmp$ret$2 = 'import {type ' + item.iy_1 + "} from '../model'";
372
400
  destination.x(tmp$ret$2);
373
401
  }
374
402
  var tmp = destination;
375
403
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda);
376
- var tmp_1 = this.x1y(endpoint.ep_1);
404
+ var tmp_1 = this.q23(endpoint.ct_1);
377
405
  var tmp_2 = get_pathParams(endpoint);
378
406
  var tmp_3 = emitType(this, tmp_2, 'Path', TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this));
379
- var tmp_4 = emitType(this, endpoint.hp_1, 'Queries', TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this));
380
- var tmp_5 = emitType(this, endpoint.ip_1, 'Headers', TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this));
381
- var tmp_6 = emitType_1(this, first(endpoint.jp_1), endpoint);
382
- var tmp_7 = distinctByStatus(endpoint.kp_1);
407
+ var tmp_4 = emitType(this, endpoint.ft_1, 'Queries', TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this));
408
+ var tmp_5 = emitType(this, endpoint.gt_1, 'Headers', TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this));
409
+ var tmp_6 = emitType_1(this, first(endpoint.ht_1), endpoint);
410
+ var tmp_7 = distinctByStatus(endpoint.it_1);
383
411
  var tmp_8 = joinToString(tmp_7, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this));
384
412
  var tmp_9 = Spacer_instance.toString();
385
- var tmp_10 = distinctByStatus(endpoint.kp_1);
413
+ var tmp_10 = distinctByStatus(endpoint.it_1);
386
414
  var tmp_11 = joinToString(tmp_10, ' | ', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_4(this));
387
- var tmp_12 = emitFunction_0(this, first(endpoint.jp_1), endpoint);
388
- var tmp_13 = distinctByStatus(endpoint.kp_1);
415
+ var tmp_12 = emitFunction_0(this, first(endpoint.ht_1), endpoint);
416
+ var tmp_13 = distinctByStatus(endpoint.it_1);
389
417
  var tmp_14 = joinToString(tmp_13, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_5(this));
390
418
  var tmp_15 = Spacer_instance.toString();
391
- var tmp_16 = Spacer_instance.qr(2);
419
+ var tmp_16 = Spacer_instance.ov(2);
392
420
  var tmp_17 = emitHandleFunction(this, endpoint);
393
421
  var tmp_18 = Spacer_instance.toString();
394
- var tmp_19 = prependIndent(emitClient_0(this, endpoint), Spacer_instance.qr(1));
395
- var tmp_20 = prependIndent(emitServer(this, endpoint), Spacer_instance.qr(1));
422
+ var tmp_19 = prependIndent(emitClient_0(this, endpoint), Spacer_instance.ov(1));
423
+ var tmp_20 = prependIndent(emitServer(this, endpoint), Spacer_instance.ov(1));
396
424
  var tmp_21 = Spacer_instance.toString();
397
- var tmp_22 = Spacer_instance.qr(2);
398
- var tmp_23 = Companion_instance_0.pq(this.x1y(endpoint.ep_1));
399
- var tmp_24 = Spacer_instance.qr(2);
400
- var tmp_25 = Spacer_instance.qr(2);
401
- return trimMargin('\n |' + tmp_0 + '\n |export namespace ' + tmp_1 + ' {\n |' + tmp_3 + '\n |' + tmp_4 + '\n |' + tmp_5 + '\n |' + tmp_6 + '\n |' + tmp_8 + '\n |' + tmp_9 + 'export type Response = ' + tmp_11 + '\n |' + tmp_12 + '\n |' + tmp_14 + '\n |' + tmp_15 + 'export type Handler = {\n |' + tmp_16 + tmp_17 + '\n |' + tmp_18 + '}\n |' + tmp_19 + '\n |' + tmp_20 + '\n |' + tmp_21 + 'export const api = {\n |' + tmp_22 + 'name: "' + tmp_23 + '",\n |' + tmp_24 + 'method: "' + endpoint.fp_1.a3_1 + '",\n |' + tmp_25 + 'path: "' + joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_6(this)) + '",\n |' + Spacer_instance.qr(2) + 'server,\n |' + Spacer_instance.qr(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
425
+ var tmp_22 = Spacer_instance.ov(2);
426
+ var tmp_23 = Companion_instance_0.nu(this.q23(endpoint.ct_1));
427
+ var tmp_24 = Spacer_instance.ov(2);
428
+ var tmp_25 = Spacer_instance.ov(2);
429
+ return trimMargin('\n |' + tmp_0 + '\n |export namespace ' + tmp_1 + ' {\n |' + tmp_3 + '\n |' + tmp_4 + '\n |' + tmp_5 + '\n |' + tmp_6 + '\n |' + tmp_8 + '\n |' + tmp_9 + 'export type Response = ' + tmp_11 + '\n |' + tmp_12 + '\n |' + tmp_14 + '\n |' + tmp_15 + 'export type Handler = {\n |' + tmp_16 + tmp_17 + '\n |' + tmp_18 + '}\n |' + tmp_19 + '\n |' + tmp_20 + '\n |' + tmp_21 + 'export const api = {\n |' + tmp_22 + 'name: "' + tmp_23 + '",\n |' + tmp_24 + 'method: "' + endpoint.dt_1.b3_1 + '",\n |' + tmp_25 + 'path: "' + joinToString(endpoint.et_1, '/', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_6(this)) + '",\n |' + Spacer_instance.ov(2) + 'server,\n |' + Spacer_instance.ov(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
402
430
  }
403
431
  initMetadataForInterface(TypeScriptEndpointDefinitionEmitter, 'TypeScriptEndpointDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
404
432
  function emit_9(refined) {
405
- return trimMargin('\n |export type ' + this.x1y(refined.br_1) + ' = ' + this.xp(refined.cr_1) + ';\n |export const validate' + refined.br_1.l1() + ' = (value: ' + this.xp(refined.cr_1) + '): value is ' + this.x1y(refined.br_1) + ' => {\n |' + this.kr(refined) + '\n |}\n |\n ');
433
+ return trimMargin('\n |export type ' + this.q23(refined.zu_1) + ' = ' + this.vt(refined.av_1) + ';\n |export const validate' + refined.zu_1.m1() + ' = (value: ' + this.vt(refined.av_1) + '): value is ' + this.q23(refined.zu_1) + ' => {\n |' + this.iv(refined) + '\n |}\n |\n ');
406
434
  }
407
435
  function emitValidator(_this__u8e3s4) {
408
436
  var defaultReturn = Spacer_instance.toString() + 'return true;';
409
- var type = _this__u8e3s4.cr_1.ou_1;
437
+ var type = _this__u8e3s4.av_1.my_1;
410
438
  var tmp;
411
439
  if (type instanceof Integer) {
412
- var tmp0_safe_receiver = type.tt_1;
413
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
440
+ var tmp0_safe_receiver = type.rx_1;
441
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.wt(tmp0_safe_receiver);
414
442
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
415
443
  } else {
416
444
  if (type instanceof Number_0) {
417
- var tmp2_safe_receiver = type.wt_1;
418
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
445
+ var tmp2_safe_receiver = type.ux_1;
446
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.wt(tmp2_safe_receiver);
419
447
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
420
448
  } else {
421
449
  if (type instanceof String_0) {
422
- var tmp4_safe_receiver = type.qt_1;
450
+ var tmp4_safe_receiver = type.ox_1;
423
451
  var tmp_0;
424
452
  var tmp_1 = tmp4_safe_receiver;
425
453
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
426
454
  tmp_0 = null;
427
455
  } else {
428
- tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
456
+ tmp_0 = this.wt(new RegExp_0(tmp4_safe_receiver));
429
457
  }
430
458
  var tmp5_elvis_lhs = tmp_0;
431
459
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -446,11 +474,11 @@ function emitValidator(_this__u8e3s4) {
446
474
  }
447
475
  initMetadataForInterface(TypeScriptRefinedTypeDefinitionEmitter, 'TypeScriptRefinedTypeDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
448
476
  function emit_10(enum_0, module_0) {
449
- var tmp = this.x1y(enum_0.gr_1);
450
- return 'export type ' + tmp + ' = ' + joinToString(enum_0.hr_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEnumDefinitionEmitter$emit$lambda) + '\n';
477
+ var tmp = this.q23(enum_0.ev_1);
478
+ return 'export type ' + tmp + ' = ' + joinToString(enum_0.fv_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEnumDefinitionEmitter$emit$lambda) + '\n';
451
479
  }
452
480
  initMetadataForInterface(TypeScriptEnumDefinitionEmitter, 'TypeScriptEnumDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
453
- initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptEndpointDefinitionEmitter, TypeScriptRefinedTypeDefinitionEmitter, TypeScriptTypeDefinitionEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptIdentifierEmitter, TypeScriptClientEmitter]);
481
+ initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptTypeDefinitionEmitter, TypeScriptEndpointDefinitionEmitter, TypeScriptRefinedTypeDefinitionEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptClientEmitter, TypeScriptIdentifierEmitter]);
454
482
  initMetadataForClass(EndpointParam, 'EndpointParam');
455
483
  initMetadataForCompanion(Companion);
456
484
  initMetadataForClass(TypeScriptIrEmitter, 'TypeScriptIrEmitter', TypeScriptIrEmitter, VOID, [IrEmitter]);
@@ -486,10 +514,10 @@ function emitClientInterface($this, _this__u8e3s4, endpoint) {
486
514
  return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
487
515
  }
488
516
  function emitFunction($this, endpoint, request) {
489
- var tmp = endpoint.ep_1.l1();
517
+ var tmp = endpoint.ct_1.m1();
490
518
  var tmp_0 = emitClientInterface($this, request, endpoint);
491
519
  var tmp_1 = Spacer_instance.toString();
492
- var tmp_2 = endpoint.ep_1.l1();
520
+ var tmp_2 = endpoint.ct_1.m1();
493
521
  // Inline function 'kotlin.takeIf' call
494
522
  var this_0 = paramList(request, endpoint);
495
523
  var tmp_3;
@@ -509,31 +537,31 @@ function emitFunction($this, endpoint, request) {
509
537
  // Inline function 'kotlin.text.orEmpty' call
510
538
  var tmp0_elvis_lhs = tmp_4;
511
539
  var tmp$ret$5 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
512
- return trimMargin('\n |' + tmp + ': async (' + tmp_0 + ') => {\n |' + tmp_1 + 'const req = ' + tmp_2 + '.request(' + tmp$ret$5 + ')\n |' + Spacer_instance.toString() + 'const rawRequest = ' + endpoint.ep_1.l1() + '.client(serialization).to(req)\n |' + Spacer_instance.toString() + 'const rawResponse = await handler(rawRequest)\n |' + Spacer_instance.toString() + 'return ' + endpoint.ep_1.l1() + '.client(serialization).from(rawResponse)\n |},\n ');
540
+ return trimMargin('\n |' + tmp + ': async (' + tmp_0 + ') => {\n |' + tmp_1 + 'const req = ' + tmp_2 + '.request(' + tmp$ret$5 + ')\n |' + Spacer_instance.toString() + 'const rawRequest = ' + endpoint.ct_1.m1() + '.client(serialization).to(req)\n |' + Spacer_instance.toString() + 'const rawResponse = await handler(rawRequest)\n |' + Spacer_instance.toString() + 'return ' + endpoint.ct_1.m1() + '.client(serialization).from(rawResponse)\n |},\n ');
513
541
  }
514
542
  function TypeScriptClientEmitter$emitClient$lambda(_destruct__k2r9zo) {
515
- var endpoint = _destruct__k2r9zo.ne();
516
- return 'import {' + endpoint.ep_1.l1() + '} from "./endpoint/' + endpoint.ep_1.l1() + '"';
543
+ var endpoint = _destruct__k2r9zo.kf();
544
+ return 'import {' + endpoint.ct_1.m1() + '} from "./endpoint/' + endpoint.ct_1.m1() + '"';
517
545
  }
518
546
  function TypeScriptClientEmitter$emitClient$lambda_0(it) {
519
- return 'import {type ' + it.ku_1 + '} from "./model/' + it.ku_1 + '"';
547
+ return 'import {type ' + it.iy_1 + '} from "./model/' + it.iy_1 + '"';
520
548
  }
521
549
  function TypeScriptClientEmitter$emitClient$lambda_1(this$0) {
522
550
  return function (_destruct__k2r9zo) {
523
- var endpoint = _destruct__k2r9zo.ne();
524
- var request = _destruct__k2r9zo.oe();
551
+ var endpoint = _destruct__k2r9zo.kf();
552
+ var request = _destruct__k2r9zo.lf();
525
553
  return emitFunction(this$0, endpoint, request);
526
554
  };
527
555
  }
528
556
  function TypeScriptClientEmitter$emitClientInterface$lambda(this$0) {
529
557
  return function (it) {
530
- return this$0.wq(it.jq_1) + ': ' + this$0.xp(it.kq_1);
558
+ return this$0.uu(it.hu_1) + ': ' + this$0.vt(it.iu_1);
531
559
  };
532
560
  }
533
561
  function TypeScriptClientEmitter() {
534
562
  }
535
563
  function TypeScriptEmitter$emit$lambda(it) {
536
- return 'export {' + it.vq().l1() + "} from './" + it.vq().l1() + "'";
564
+ return 'export {' + it.tu().m1() + "} from './" + it.tu().m1() + "'";
537
565
  }
538
566
  function TypeScriptEmitter$emit$lambda_0(it) {
539
567
  // Inline function 'kotlin.text.trimStart' call
@@ -541,36 +569,36 @@ function TypeScriptEmitter$emit$lambda_0(it) {
541
569
  }
542
570
  function TypeScriptEmitter$emit$lambda_1(this$0) {
543
571
  return function (it) {
544
- return this$0.xp(it);
572
+ return this$0.vt(it);
545
573
  };
546
574
  }
547
575
  function TypeScriptEmitter() {
548
576
  LanguageEmitter.call(this);
549
- this.z1y_1 = FileExtension_TypeScript_getInstance();
550
- this.a1z_1 = TypeScriptShared_getInstance();
551
- this.b1z_1 = '//';
577
+ this.s23_1 = FileExtension_TypeScript_getInstance();
578
+ this.t23_1 = TypeScriptShared_getInstance();
579
+ this.u23_1 = '//';
552
580
  }
553
- protoOf(TypeScriptEmitter).eq = function () {
554
- return this.z1y_1;
581
+ protoOf(TypeScriptEmitter).cu = function () {
582
+ return this.s23_1;
555
583
  };
556
- protoOf(TypeScriptEmitter).m1v = function () {
557
- return this.a1z_1;
584
+ protoOf(TypeScriptEmitter).e20 = function () {
585
+ return this.t23_1;
558
586
  };
559
- protoOf(TypeScriptEmitter).fq = function () {
560
- return this.b1z_1;
587
+ protoOf(TypeScriptEmitter).du = function () {
588
+ return this.u23_1;
561
589
  };
562
- protoOf(TypeScriptEmitter).on = function (ast, logger) {
590
+ protoOf(TypeScriptEmitter).mr = function (ast, logger) {
563
591
  // Inline function 'kotlin.run' call
564
- var $this$run = protoOf(LanguageEmitter).on.call(this, ast, logger);
592
+ var $this$run = protoOf(LanguageEmitter).mr.call(this, ast, logger);
565
593
  var tmp;
566
594
  if (hasEndpoints(ast)) {
567
- tmp = NonEmptyList__plus_impl_xqmb9($this$run, this.w1y(ast));
595
+ tmp = NonEmptyList__plus_impl_xqmb9($this$run, this.p23(ast));
568
596
  } else {
569
597
  tmp = $this$run;
570
598
  }
571
599
  var tmp_0 = tmp;
572
600
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
573
- var this_0 = ast.bq_1;
601
+ var this_0 = ast.zt_1;
574
602
  // Inline function 'kotlin.collections.flatMap' call
575
603
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
576
604
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -578,7 +606,7 @@ protoOf(TypeScriptEmitter).on = function (ast, logger) {
578
606
  var _iterator__ex2g4s = tmp0.t();
579
607
  while (_iterator__ex2g4s.u()) {
580
608
  var element = _iterator__ex2g4s.v();
581
- var list = new NonEmptyList(element.dq_1);
609
+ var list = new NonEmptyList(element.bu_1);
582
610
  addAll(destination, list);
583
611
  }
584
612
  var tmp$ret$5 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -591,11 +619,11 @@ protoOf(TypeScriptEmitter).on = function (ast, logger) {
591
619
  var element_0 = _iterator__ex2g4s_0.v();
592
620
  var key = namespace(element_0);
593
621
  // Inline function 'kotlin.collections.getOrPut' call
594
- var value = destination_0.p2(key);
622
+ var value = destination_0.q2(key);
595
623
  var tmp_1;
596
624
  if (value == null) {
597
625
  var answer = ArrayList_init_$Create$();
598
- destination_0.w2(key, answer);
626
+ destination_0.y2(key, answer);
599
627
  tmp_1 = answer;
600
628
  } else {
601
629
  tmp_1 = value;
@@ -607,31 +635,31 @@ protoOf(TypeScriptEmitter).on = function (ast, logger) {
607
635
  // Inline function 'kotlin.collections.mapTo' call
608
636
  var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
609
637
  // Inline function 'kotlin.collections.iterator' call
610
- var _iterator__ex2g4s_1 = destination_0.j1().t();
638
+ var _iterator__ex2g4s_1 = destination_0.k1().t();
611
639
  while (_iterator__ex2g4s_1.u()) {
612
640
  var item = _iterator__ex2g4s_1.v();
613
641
  // Inline function 'kotlin.collections.component1' call
614
- var ns = item.k1();
642
+ var ns = item.l1();
615
643
  // Inline function 'kotlin.collections.component2' call
616
- var defs = item.l1();
617
- var tmp_2 = ns + '/index.' + this.eq().nq_1;
644
+ var defs = item.m1();
645
+ var tmp_2 = ns + '/index.' + this.cu().lu_1;
618
646
  var tmp$ret$14 = new Emitted(tmp_2, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda));
619
647
  destination_1.x(tmp$ret$14);
620
648
  }
621
649
  return NonEmptyList__plus_impl_xqmb9_0(tmp_0, destination_1);
622
650
  };
623
- protoOf(TypeScriptEmitter).tq = function (module_0, logger) {
651
+ protoOf(TypeScriptEmitter).ru = function (module_0, logger) {
624
652
  // Inline function 'kotlin.let' call
625
- var it = protoOf(LanguageEmitter).tq.call(this, module_0, logger);
626
- return NonEmptyList__plus_impl_xqmb9(it, new Emitted('Wirespec', this.m1v().d1z_1));
653
+ var it = protoOf(LanguageEmitter).ru.call(this, module_0, logger);
654
+ return NonEmptyList__plus_impl_xqmb9(it, new Emitted('Wirespec', this.e20().w23_1));
627
655
  };
628
- protoOf(TypeScriptEmitter).uq = function (definition, module_0, logger) {
656
+ protoOf(TypeScriptEmitter).su = function (definition, module_0, logger) {
629
657
  // Inline function 'kotlin.let' call
630
- var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
631
- var subPackageName = plus(Companion_instance.lr(''), definition);
632
- return new Emitted(subPackageName.or() + this.p1v(it.io_1), trimMargin("\n |import {Wirespec} from '../Wirespec'\n |\n |" + it.jo_1 + '\n '));
658
+ var it = protoOf(LanguageEmitter).su.call(this, definition, module_0, logger);
659
+ var subPackageName = plus(Companion_instance.jv(''), definition);
660
+ return new Emitted(subPackageName.mv() + this.h20(it.gs_1), trimMargin("\n |import {Wirespec} from '../Wirespec'\n |\n |" + it.hs_1 + '\n '));
633
661
  };
634
- protoOf(TypeScriptEmitter).yq = function (union) {
662
+ protoOf(TypeScriptEmitter).wu = function (union) {
635
663
  // Inline function 'kotlin.collections.distinctBy' call
636
664
  var this_0 = importReferences(union);
637
665
  var set = HashSet_init_$Create$();
@@ -639,7 +667,7 @@ protoOf(TypeScriptEmitter).yq = function (union) {
639
667
  var _iterator__ex2g4s = this_0.t();
640
668
  while (_iterator__ex2g4s.u()) {
641
669
  var e = _iterator__ex2g4s.v();
642
- var key = e.ku_1;
670
+ var key = e.iy_1;
643
671
  if (set.x(key)) {
644
672
  list.x(e);
645
673
  }
@@ -650,24 +678,24 @@ protoOf(TypeScriptEmitter).yq = function (union) {
650
678
  var _iterator__ex2g4s_0 = list.t();
651
679
  while (_iterator__ex2g4s_0.u()) {
652
680
  var item = _iterator__ex2g4s_0.v();
653
- var tmp$ret$2 = 'import {type ' + item.ku_1 + "} from '../model'";
681
+ var tmp$ret$2 = 'import {type ' + item.iy_1 + "} from '../model'";
654
682
  destination.x(tmp$ret$2);
655
683
  }
656
684
  var tmp = destination;
657
685
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0);
658
- var tmp_1 = this.x1y(union.qo_1);
659
- return trimMargin('\n |' + tmp_0 + '\n |export type ' + tmp_1 + ' = ' + joinToString(union.ro_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1(this)) + '\n |\n ');
686
+ var tmp_1 = this.q23(union.os_1);
687
+ return trimMargin('\n |' + tmp_0 + '\n |export type ' + tmp_1 + ' = ' + joinToString(union.ps_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1(this)) + '\n |\n ');
660
688
  };
661
- protoOf(TypeScriptEmitter).xq = function (channel) {
662
- return this.gq();
689
+ protoOf(TypeScriptEmitter).vu = function (channel) {
690
+ return this.eu();
663
691
  };
664
692
  function emit_11($this, _this__u8e3s4) {
665
693
  var tmp;
666
694
  if (_this__u8e3s4 instanceof Literal) {
667
- tmp = _this__u8e3s4.hq_1;
695
+ tmp = _this__u8e3s4.fu_1;
668
696
  } else {
669
697
  if (_this__u8e3s4 instanceof Param) {
670
- tmp = ':' + _this__u8e3s4.lp_1.l1();
698
+ tmp = ':' + _this__u8e3s4.jt_1.m1();
671
699
  } else {
672
700
  noWhenBranchMatchedException();
673
701
  }
@@ -675,64 +703,64 @@ function emit_11($this, _this__u8e3s4) {
675
703
  return tmp;
676
704
  }
677
705
  function emitClient_0($this, _this__u8e3s4) {
678
- return trimMargin('\n |export const client: Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitClientTo($this, _this__u8e3s4), Spacer_instance.qr(1)) + ',\n |' + prependIndent(emitClientFrom($this, _this__u8e3s4), Spacer_instance.qr(1)) + '\n |})\n ');
706
+ return trimMargin('\n |export const client: Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitClientTo($this, _this__u8e3s4), Spacer_instance.ov(1)) + ',\n |' + prependIndent(emitClientFrom($this, _this__u8e3s4), Spacer_instance.ov(1)) + '\n |})\n ');
679
707
  }
680
708
  function emitClientTo($this, _this__u8e3s4) {
681
- var tmp = Spacer_instance.qr(1);
709
+ var tmp = Spacer_instance.ov(1);
682
710
  // Inline function 'kotlin.text.uppercase' call
683
711
  // Inline function 'kotlin.js.asDynamic' call
684
- var tmp_0 = _this__u8e3s4.fp_1.a3_1.toUpperCase();
685
- var tmp_1 = Spacer_instance.qr(1);
712
+ var tmp_0 = _this__u8e3s4.dt_1.b3_1.toUpperCase();
713
+ var tmp_1 = Spacer_instance.ov(1);
686
714
  var tmp_2 = emitPathArray($this, _this__u8e3s4);
687
- var tmp_3 = Spacer_instance.qr(1);
688
- var tmp_4 = joinToString(_this__u8e3s4.hp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda($this));
689
- var tmp_5 = Spacer_instance.qr(1);
690
- return trimMargin('\n |to: (it) => ({\n |' + tmp + 'method: "' + tmp_0 + '",\n |' + tmp_1 + 'path: ' + tmp_2 + ',\n |' + tmp_3 + 'queries: {' + tmp_4 + '},\n |' + tmp_5 + 'headers: {' + joinToString(_this__u8e3s4.ip_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda_0($this)) + '},\n |' + Spacer_instance.qr(1) + 'body: serialization.serialize(it.body)\n |})\n ');
715
+ var tmp_3 = Spacer_instance.ov(1);
716
+ var tmp_4 = joinToString(_this__u8e3s4.ft_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda($this));
717
+ var tmp_5 = Spacer_instance.ov(1);
718
+ return trimMargin('\n |to: (it) => ({\n |' + tmp + 'method: "' + tmp_0 + '",\n |' + tmp_1 + 'path: ' + tmp_2 + ',\n |' + tmp_3 + 'queries: {' + tmp_4 + '},\n |' + tmp_5 + 'headers: {' + joinToString(_this__u8e3s4.gt_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda_0($this)) + '},\n |' + Spacer_instance.ov(1) + 'body: serialization.serialize(it.body)\n |})\n ');
691
719
  }
692
720
  function emitClientFrom($this, _this__u8e3s4) {
693
- var tmp = Spacer_instance.qr(1);
694
- var tmp_0 = distinctByStatus(_this__u8e3s4.kp_1);
695
- return trimMargin('\n |from: (it) => {\n |' + tmp + 'switch (it.status) {\n |' + prependIndent(joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFrom$lambda($this)), Spacer_instance.qr(2)) + '\n |' + Spacer_instance.qr(2) + 'default:\n |' + Spacer_instance.qr(3) + 'throw new Error(`Cannot internalize response with status: ${it.status}`);\n |' + Spacer_instance.qr(1) + '}\n |}\n ');
721
+ var tmp = Spacer_instance.ov(1);
722
+ var tmp_0 = distinctByStatus(_this__u8e3s4.it_1);
723
+ return trimMargin('\n |from: (it) => {\n |' + tmp + 'switch (it.status) {\n |' + prependIndent(joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFrom$lambda($this)), Spacer_instance.ov(2)) + '\n |' + Spacer_instance.ov(2) + 'default:\n |' + Spacer_instance.ov(3) + 'throw new Error(`Cannot internalize response with status: ${it.status}`);\n |' + Spacer_instance.ov(1) + '}\n |}\n ');
696
724
  }
697
725
  function emitClientFromResponse($this, _this__u8e3s4) {
698
- var tmp = fixStatus(_this__u8e3s4.qp_1);
699
- var tmp_0 = Spacer_instance.qr(1);
700
- var tmp_1 = Spacer_instance.qr(2);
701
- var tmp_2 = fixStatus(_this__u8e3s4.qp_1);
702
- var tmp_3 = Spacer_instance.qr(2);
703
- return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.rp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFromResponse$lambda($this)) + '},\n |' + Spacer_instance.qr(2) + 'body: serialization.deserialize<' + emitReference($this, _this__u8e3s4) + '>(it.body)\n |' + Spacer_instance.qr(1) + '};\n ');
726
+ var tmp = fixStatus(_this__u8e3s4.ot_1);
727
+ var tmp_0 = Spacer_instance.ov(1);
728
+ var tmp_1 = Spacer_instance.ov(2);
729
+ var tmp_2 = fixStatus(_this__u8e3s4.ot_1);
730
+ var tmp_3 = Spacer_instance.ov(2);
731
+ return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.pt_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFromResponse$lambda($this)) + '},\n |' + Spacer_instance.ov(2) + 'body: serialization.deserialize<' + emitReference($this, _this__u8e3s4) + '>(it.body)\n |' + Spacer_instance.ov(1) + '};\n ');
704
732
  }
705
733
  function emitServer($this, _this__u8e3s4) {
706
- return trimMargin('\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitServerFrom($this, _this__u8e3s4), Spacer_instance.qr(1)) + ',\n |' + prependIndent(emitServerTo($this, _this__u8e3s4), Spacer_instance.qr(1)) + '\n |})\n ');
734
+ return trimMargin('\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitServerFrom($this, _this__u8e3s4), Spacer_instance.ov(1)) + ',\n |' + prependIndent(emitServerTo($this, _this__u8e3s4), Spacer_instance.ov(1)) + '\n |})\n ');
707
735
  }
708
736
  function emitServerFrom($this, _this__u8e3s4) {
709
- var tmp = Spacer_instance.qr(1);
710
- var tmp_0 = Spacer_instance.qr(2);
737
+ var tmp = Spacer_instance.ov(1);
738
+ var tmp_0 = Spacer_instance.ov(2);
711
739
  // Inline function 'kotlin.text.uppercase' call
712
740
  // Inline function 'kotlin.js.asDynamic' call
713
- var tmp_1 = _this__u8e3s4.fp_1.a3_1.toUpperCase();
714
- var tmp_2 = Spacer_instance.qr(2);
741
+ var tmp_1 = _this__u8e3s4.dt_1.b3_1.toUpperCase();
742
+ var tmp_2 = Spacer_instance.ov(2);
715
743
  var tmp_3 = get_indexedPathParams(_this__u8e3s4);
716
- var tmp_4 = prependIndent(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda($this)), Spacer_instance.qr(3));
717
- var tmp_5 = Spacer_instance.qr(2);
718
- var tmp_6 = Spacer_instance.qr(2);
719
- var tmp_7 = joinToString(_this__u8e3s4.hp_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0($this));
720
- var tmp_8 = Spacer_instance.qr(2);
721
- var tmp_9 = Spacer_instance.qr(2);
722
- return trimMargin('\n |from: (it) => {\n |' + tmp + 'return {\n |' + tmp_0 + 'method: "' + tmp_1 + '",\n |' + tmp_2 + 'path: {\n |' + tmp_4 + '\n |' + tmp_5 + '},\n |' + tmp_6 + 'queries: {\n |' + tmp_7 + '\n |' + tmp_8 + '},\n |' + tmp_9 + 'headers: {\n |' + joinToString(_this__u8e3s4.ip_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1($this)) + '\n |' + Spacer_instance.qr(2) + '},\n |' + Spacer_instance.qr(2) + 'body: serialization.deserialize(it.body)\n |' + Spacer_instance.qr(1) + '}\n |}\n ');
744
+ var tmp_4 = prependIndent(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda($this)), Spacer_instance.ov(3));
745
+ var tmp_5 = Spacer_instance.ov(2);
746
+ var tmp_6 = Spacer_instance.ov(2);
747
+ var tmp_7 = joinToString(_this__u8e3s4.ft_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0($this));
748
+ var tmp_8 = Spacer_instance.ov(2);
749
+ var tmp_9 = Spacer_instance.ov(2);
750
+ return trimMargin('\n |from: (it) => {\n |' + tmp + 'return {\n |' + tmp_0 + 'method: "' + tmp_1 + '",\n |' + tmp_2 + 'path: {\n |' + tmp_4 + '\n |' + tmp_5 + '},\n |' + tmp_6 + 'queries: {\n |' + tmp_7 + '\n |' + tmp_8 + '},\n |' + tmp_9 + 'headers: {\n |' + joinToString(_this__u8e3s4.gt_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1($this)) + '\n |' + Spacer_instance.ov(2) + '},\n |' + Spacer_instance.ov(2) + 'body: serialization.deserialize(it.body)\n |' + Spacer_instance.ov(1) + '}\n |}\n ');
723
751
  }
724
752
  function emitServerTo($this, _this__u8e3s4) {
725
- var tmp = Spacer_instance.qr(1);
726
- var tmp_0 = distinctByStatus(_this__u8e3s4.kp_1);
727
- return trimMargin('\n |to: (it) => {\n |' + tmp + 'switch (it.status) {\n |' + prependIndent(joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerTo$lambda($this)), Spacer_instance.qr(2)) + '\n |' + Spacer_instance.qr(1) + '}\n |}\n ');
753
+ var tmp = Spacer_instance.ov(1);
754
+ var tmp_0 = distinctByStatus(_this__u8e3s4.it_1);
755
+ return trimMargin('\n |to: (it) => {\n |' + tmp + 'switch (it.status) {\n |' + prependIndent(joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerTo$lambda($this)), Spacer_instance.ov(2)) + '\n |' + Spacer_instance.ov(1) + '}\n |}\n ');
728
756
  }
729
757
  function emitServerToResponse($this, _this__u8e3s4) {
730
- var tmp = fixStatus(_this__u8e3s4.qp_1);
731
- var tmp_0 = Spacer_instance.qr(1);
732
- var tmp_1 = Spacer_instance.qr(2);
733
- var tmp_2 = fixStatus(_this__u8e3s4.qp_1);
734
- var tmp_3 = Spacer_instance.qr(2);
735
- return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {\n |' + prependIndent(joinToString(_this__u8e3s4.rp_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda($this)), Spacer_instance.qr(3)) + '\n |' + Spacer_instance.qr(2) + '} as Record<string, string>,\n |' + Spacer_instance.qr(2) + 'body: serialization.serialize(it.body),\n |' + Spacer_instance.qr(1) + '};\n ');
758
+ var tmp = fixStatus(_this__u8e3s4.ot_1);
759
+ var tmp_0 = Spacer_instance.ov(1);
760
+ var tmp_1 = Spacer_instance.ov(2);
761
+ var tmp_2 = fixStatus(_this__u8e3s4.ot_1);
762
+ var tmp_3 = Spacer_instance.ov(2);
763
+ return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {\n |' + prependIndent(joinToString(_this__u8e3s4.pt_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda($this)), Spacer_instance.ov(3)) + '\n |' + Spacer_instance.ov(2) + '} as Record<string, string>,\n |' + Spacer_instance.ov(2) + 'body: serialization.serialize(it.body),\n |' + Spacer_instance.ov(1) + '};\n ');
736
764
  }
737
765
  function emitType($this, _this__u8e3s4, name, block) {
738
766
  var tmp;
@@ -745,7 +773,7 @@ function emitType($this, _this__u8e3s4, name, block) {
745
773
  return tmp;
746
774
  }
747
775
  function emitName($this, _this__u8e3s4) {
748
- return 'Response' + Companion_instance_0.oq(_this__u8e3s4.qp_1);
776
+ return 'Response' + Companion_instance_0.mu(_this__u8e3s4.ot_1);
749
777
  }
750
778
  function emitFunction_0($this, _this__u8e3s4, endpoint) {
751
779
  var tmp = Spacer_instance.toString();
@@ -771,18 +799,18 @@ function emitFunction_0($this, _this__u8e3s4, endpoint) {
771
799
  // Inline function 'kotlin.text.orEmpty' call
772
800
  var tmp0_elvis_lhs = tmp_4;
773
801
  var tmp_5 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
774
- var tmp_6 = Spacer_instance.qr(2);
802
+ var tmp_6 = Spacer_instance.ov(2);
775
803
  var tmp_7 = get_pathParams(endpoint);
776
804
  var tmp_8 = joinToObject($this, tmp_7, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_0($this));
777
- var tmp_9 = Spacer_instance.qr(2);
778
- var tmp_10 = endpoint.fp_1.toString();
779
- var tmp_11 = Spacer_instance.qr(2);
780
- var tmp_12 = joinToObject($this, endpoint.hp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1($this));
781
- var tmp_13 = Spacer_instance.qr(2);
782
- var tmp_14 = joinToObject($this, endpoint.ip_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2($this));
783
- var tmp_15 = Spacer_instance.qr(2);
805
+ var tmp_9 = Spacer_instance.ov(2);
806
+ var tmp_10 = endpoint.dt_1.toString();
807
+ var tmp_11 = Spacer_instance.ov(2);
808
+ var tmp_12 = joinToObject($this, endpoint.ft_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1($this));
809
+ var tmp_13 = Spacer_instance.ov(2);
810
+ var tmp_14 = joinToObject($this, endpoint.gt_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2($this));
811
+ var tmp_15 = Spacer_instance.ov(2);
784
812
  var tmp_16;
785
- if (_this__u8e3s4.np_1 == null) {
813
+ if (_this__u8e3s4.lt_1 == null) {
786
814
  tmp_16 = null;
787
815
  } else {
788
816
  // Inline function 'kotlin.let' call
@@ -793,11 +821,11 @@ function emitFunction_0($this, _this__u8e3s4, endpoint) {
793
821
  }
794
822
  function emitFunction_1($this, _this__u8e3s4) {
795
823
  var tmp = Spacer_instance.toString();
796
- var tmp_0 = Companion_instance_0.oq(_this__u8e3s4.qp_1);
824
+ var tmp_0 = Companion_instance_0.mu(_this__u8e3s4.ot_1);
797
825
  var tmp_1 = paramList_0(_this__u8e3s4);
798
826
  var tmp_2 = joinToObject($this, tmp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3($this));
799
827
  var tmp_3 = Spacer_instance.toString();
800
- var tmp_4 = Companion_instance_0.oq(_this__u8e3s4.qp_1);
828
+ var tmp_4 = Companion_instance_0.mu(_this__u8e3s4.ot_1);
801
829
  // Inline function 'kotlin.takeIf' call
802
830
  var this_0 = paramList_0(_this__u8e3s4);
803
831
  var tmp_5;
@@ -812,19 +840,19 @@ function emitFunction_1($this, _this__u8e3s4) {
812
840
  tmp_6 = null;
813
841
  } else {
814
842
  // Inline function 'kotlin.run' call
815
- tmp_6 = 'params: Response' + Companion_instance_0.oq(_this__u8e3s4.qp_1) + 'Params';
843
+ tmp_6 = 'params: Response' + Companion_instance_0.mu(_this__u8e3s4.ot_1) + 'Params';
816
844
  }
817
845
  // Inline function 'kotlin.text.orEmpty' call
818
846
  var tmp0_elvis_lhs = tmp_6;
819
847
  var tmp_7 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
820
- var tmp_8 = Companion_instance_0.oq(_this__u8e3s4.qp_1);
821
- var tmp_9 = Spacer_instance.qr(2);
822
- var tmp_10 = fixStatus(_this__u8e3s4.qp_1);
823
- var tmp_11 = Spacer_instance.qr(2);
824
- var tmp_12 = joinToObject($this, _this__u8e3s4.rp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4($this));
825
- var tmp_13 = Spacer_instance.qr(2);
848
+ var tmp_8 = Companion_instance_0.mu(_this__u8e3s4.ot_1);
849
+ var tmp_9 = Spacer_instance.ov(2);
850
+ var tmp_10 = fixStatus(_this__u8e3s4.ot_1);
851
+ var tmp_11 = Spacer_instance.ov(2);
852
+ var tmp_12 = joinToObject($this, _this__u8e3s4.pt_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4($this));
853
+ var tmp_13 = Spacer_instance.ov(2);
826
854
  var tmp_14;
827
- if (_this__u8e3s4.sp_1 == null) {
855
+ if (_this__u8e3s4.qt_1 == null) {
828
856
  tmp_14 = null;
829
857
  } else {
830
858
  // Inline function 'kotlin.let' call
@@ -834,60 +862,60 @@ function emitFunction_1($this, _this__u8e3s4) {
834
862
  return trimMargin('\n |' + tmp + 'export type Response' + tmp_0 + 'Params = ' + tmp_2 + '\n |' + tmp_3 + 'export const response' + tmp_4 + ' = (' + tmp_7 + '): Response' + tmp_8 + ' => ({\n |' + tmp_9 + 'status: ' + tmp_10 + ',\n |' + tmp_11 + 'headers: ' + tmp_12 + ',\n |' + tmp_13 + 'body: ' + (tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs) + ',\n |' + Spacer_instance.toString() + '})\n ');
835
863
  }
836
864
  function emitReference($this, _this__u8e3s4) {
837
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
838
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
839
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
865
+ var tmp0_safe_receiver = _this__u8e3s4.qt_1;
866
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nt_1;
867
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.vt(tmp1_safe_receiver);
840
868
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
841
869
  }
842
870
  function emitPathArray($this, _this__u8e3s4) {
843
- return joinToString(_this__u8e3s4.gp_1, ', ', '[', ']', VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda($this));
871
+ return joinToString(_this__u8e3s4.et_1, ', ', '[', ']', VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda($this));
844
872
  }
845
873
  function emitType_0($this, _this__u8e3s4) {
846
874
  var tmp = Spacer_instance.toString();
847
875
  var tmp_0 = emitName($this, _this__u8e3s4);
848
- var tmp_1 = Spacer_instance.qr(2);
849
- var tmp_2 = fixStatus(_this__u8e3s4.qp_1);
850
- var tmp_3 = Spacer_instance.qr(2);
851
- return trimMargin('\n |' + tmp + 'export type ' + tmp_0 + ' = {\n |' + tmp_1 + 'status: ' + tmp_2 + '\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.rp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.qr(2) + 'body: ' + emitReference($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
876
+ var tmp_1 = Spacer_instance.ov(2);
877
+ var tmp_2 = fixStatus(_this__u8e3s4.ot_1);
878
+ var tmp_3 = Spacer_instance.ov(2);
879
+ return trimMargin('\n |' + tmp + 'export type ' + tmp_0 + ' = {\n |' + tmp_1 + 'status: ' + tmp_2 + '\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.pt_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.ov(2) + 'body: ' + emitReference($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
852
880
  }
853
881
  function emitReference_0($this, _this__u8e3s4) {
854
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
855
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
856
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
882
+ var tmp0_safe_receiver = _this__u8e3s4.lt_1;
883
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nt_1;
884
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.vt(tmp1_safe_receiver);
857
885
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
858
886
  }
859
887
  function emitType_1($this, _this__u8e3s4, endpoint) {
860
- return trimMargin('\n |' + Spacer_instance.toString() + 'export type Request = {\n |' + Spacer_instance.qr(2) + 'path: Path\n |' + Spacer_instance.qr(2) + 'method: "' + endpoint.fp_1.toString() + '"\n |' + Spacer_instance.qr(2) + 'queries: Queries\n |' + Spacer_instance.qr(2) + 'headers: Headers\n |' + Spacer_instance.qr(2) + 'body: ' + emitReference_0($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
888
+ return trimMargin('\n |' + Spacer_instance.toString() + 'export type Request = {\n |' + Spacer_instance.ov(2) + 'path: Path\n |' + Spacer_instance.ov(2) + 'method: "' + endpoint.dt_1.toString() + '"\n |' + Spacer_instance.ov(2) + 'queries: Queries\n |' + Spacer_instance.ov(2) + 'headers: Headers\n |' + Spacer_instance.ov(2) + 'body: ' + emitReference_0($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
861
889
  }
862
890
  function emit_12($this, _this__u8e3s4) {
863
- return Spacer_instance.toString() + $this.wq(_this__u8e3s4.lp_1) + ': ' + $this.xp(_this__u8e3s4.mp_1);
891
+ return Spacer_instance.toString() + $this.uu(_this__u8e3s4.jt_1) + ': ' + $this.vt(_this__u8e3s4.kt_1);
864
892
  }
865
893
  function emit_13($this, _this__u8e3s4) {
866
- return $this.wq(_this__u8e3s4.jq_1) + (_this__u8e3s4.kq_1.cu() ? '?' : '') + ': ' + $this.xp(_this__u8e3s4.kq_1.eu(false));
894
+ return $this.uu(_this__u8e3s4.hu_1) + (_this__u8e3s4.iu_1.ay() ? '?' : '') + ': ' + $this.vt(_this__u8e3s4.iu_1.cy(false));
867
895
  }
868
896
  function emitDeserialize($this, _this__u8e3s4) {
869
- return $this.wq(_this__u8e3s4.me_1.lp_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.le_1 + '])';
897
+ return $this.uu(_this__u8e3s4.jf_1.jt_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.if_1 + '])';
870
898
  }
871
899
  function emitDeserialize_0($this, _this__u8e3s4, fields, caseSensitive) {
872
- return caseSensitive ? $this.wq(_this__u8e3s4.ap_1) + ': serialization.deserialize(it.' + fields + '[' + $this.wq(_this__u8e3s4.ap_1) + '])' : $this.wq(_this__u8e3s4.ap_1) + ': serialization.deserialize(Object.entries(it.' + fields + ').find(([key]) => key.toLowerCase() === ' + $this.wq(lowercase($this, _this__u8e3s4.ap_1)) + ')?.[1])';
900
+ return caseSensitive ? $this.uu(_this__u8e3s4.ys_1) + ': serialization.deserialize(it.' + fields + '[' + $this.uu(_this__u8e3s4.ys_1) + '])' : $this.uu(_this__u8e3s4.ys_1) + ': serialization.deserialize(Object.entries(it.' + fields + ').find(([key]) => key.toLowerCase() === ' + $this.uu(lowercase($this, _this__u8e3s4.ys_1)) + ')?.[1])';
873
901
  }
874
902
  function emitDeserialize$default($this, _this__u8e3s4, fields, caseSensitive, $super) {
875
903
  caseSensitive = caseSensitive === VOID ? true : caseSensitive;
876
904
  return emitDeserialize_0($this, _this__u8e3s4, fields, caseSensitive);
877
905
  }
878
906
  function emitSerialize($this, _this__u8e3s4, fields) {
879
- return $this.wq(_this__u8e3s4.ap_1) + ': serialization.serialize(it.' + fields + '[' + $this.wq(_this__u8e3s4.ap_1) + '])';
907
+ return $this.uu(_this__u8e3s4.ys_1) + ': serialization.serialize(it.' + fields + '[' + $this.uu(_this__u8e3s4.ys_1) + '])';
880
908
  }
881
909
  function joinToObject($this, _this__u8e3s4, transform) {
882
910
  return joinToString(_this__u8e3s4, ', ', '{', '}', VOID, VOID, transform);
883
911
  }
884
912
  function emitHandleFunction($this, endpoint) {
885
- return Companion_instance_0.pq($this.x1y(endpoint.ep_1)) + ': (request:Request) => Promise<Response>';
913
+ return Companion_instance_0.nu($this.q23(endpoint.ct_1)) + ': (request:Request) => Promise<Response>';
886
914
  }
887
915
  function lowercase($this, _this__u8e3s4) {
888
916
  // Inline function 'kotlin.text.lowercase' call
889
917
  // Inline function 'kotlin.js.asDynamic' call
890
- var tmp$ret$1 = _this__u8e3s4.l1().toLowerCase();
918
+ var tmp$ret$1 = _this__u8e3s4.m1().toLowerCase();
891
919
  return new FieldIdentifier(tmp$ret$1);
892
920
  }
893
921
  function TypeScriptEndpointDefinitionEmitter$emit$lambda(it) {
@@ -901,12 +929,12 @@ function TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this$0) {
901
929
  }
902
930
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this$0) {
903
931
  return function (it) {
904
- return this$0.wp(it);
932
+ return this$0.ut(it);
905
933
  };
906
934
  }
907
935
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this$0) {
908
936
  return function (it) {
909
- return this$0.wp(it);
937
+ return this$0.ut(it);
910
938
  };
911
939
  }
912
940
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this$0) {
@@ -956,12 +984,12 @@ function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda(this$0) {
956
984
  }
957
985
  function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0(this$0) {
958
986
  return function (it) {
959
- return prependIndent(emitDeserialize$default(this$0, it, 'queries'), Spacer_instance.qr(3));
987
+ return prependIndent(emitDeserialize$default(this$0, it, 'queries'), Spacer_instance.ov(3));
960
988
  };
961
989
  }
962
990
  function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1(this$0) {
963
991
  return function (it) {
964
- return prependIndent(emitDeserialize_0(this$0, it, 'headers', false), Spacer_instance.qr(3));
992
+ return prependIndent(emitDeserialize_0(this$0, it, 'headers', false), Spacer_instance.ov(3));
965
993
  };
966
994
  }
967
995
  function TypeScriptEndpointDefinitionEmitter$emitServerTo$lambda(this$0) {
@@ -976,7 +1004,7 @@ function TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda(this$0)
976
1004
  }
977
1005
  function TypeScriptEndpointDefinitionEmitter$emitType$lambda($block) {
978
1006
  return function (it) {
979
- return Spacer_instance.qr(1) + $block(it);
1007
+ return Spacer_instance.ov(1) + $block(it);
980
1008
  };
981
1009
  }
982
1010
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda(this$0) {
@@ -986,17 +1014,17 @@ function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda(this$0) {
986
1014
  }
987
1015
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_0(this$0) {
988
1016
  return function (it) {
989
- return this$0.wq(it.lp_1) + ': params[' + this$0.wq(it.lp_1) + ']';
1017
+ return this$0.uu(it.jt_1) + ': params[' + this$0.uu(it.jt_1) + ']';
990
1018
  };
991
1019
  }
992
1020
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1(this$0) {
993
1021
  return function (it) {
994
- return this$0.wq(it.ap_1) + ': params[' + this$0.wq(it.ap_1) + ']';
1022
+ return this$0.uu(it.ys_1) + ': params[' + this$0.uu(it.ys_1) + ']';
995
1023
  };
996
1024
  }
997
1025
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2(this$0) {
998
1026
  return function (it) {
999
- return this$0.wq(it.ap_1) + ': params[' + this$0.wq(it.ap_1) + ']';
1027
+ return this$0.uu(it.ys_1) + ': params[' + this$0.uu(it.ys_1) + ']';
1000
1028
  };
1001
1029
  }
1002
1030
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3(this$0) {
@@ -1006,17 +1034,17 @@ function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3(this$0) {
1006
1034
  }
1007
1035
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4(this$0) {
1008
1036
  return function (it) {
1009
- return this$0.wq(it.ap_1) + ': params[' + this$0.wq(it.ap_1) + ']';
1037
+ return this$0.uu(it.ys_1) + ': params[' + this$0.uu(it.ys_1) + ']';
1010
1038
  };
1011
1039
  }
1012
1040
  function TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda(this$0) {
1013
1041
  return function (it) {
1014
1042
  var tmp;
1015
1043
  if (it instanceof Literal) {
1016
- tmp = '"' + it.hq_1 + '"';
1044
+ tmp = '"' + it.fu_1 + '"';
1017
1045
  } else {
1018
1046
  if (it instanceof Param) {
1019
- tmp = 'serialization.serialize(it.path[' + this$0.wq(it.lp_1) + '])';
1047
+ tmp = 'serialization.serialize(it.path[' + this$0.uu(it.jt_1) + '])';
1020
1048
  } else {
1021
1049
  noWhenBranchMatchedException();
1022
1050
  }
@@ -1026,7 +1054,7 @@ function TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda(this$0) {
1026
1054
  }
1027
1055
  function TypeScriptEndpointDefinitionEmitter$emitType$lambda_0(this$0) {
1028
1056
  return function (it) {
1029
- return this$0.wq(it.ap_1) + ': ' + this$0.xp(it.bp_1);
1057
+ return this$0.uu(it.ys_1) + ': ' + this$0.vt(it.zs_1);
1030
1058
  };
1031
1059
  }
1032
1060
  function TypeScriptEndpointDefinitionEmitter() {
@@ -1039,14 +1067,14 @@ function TypeScriptEnumDefinitionEmitter() {
1039
1067
  function TypeScriptIdentifierEmitter() {
1040
1068
  }
1041
1069
  function _get_sanitizationConfig__sns434($this) {
1042
- var tmp0 = $this.g1z_1;
1070
+ var tmp0 = $this.z23_1;
1043
1071
  var tmp = KProperty1;
1044
1072
  // Inline function 'kotlin.getValue' call
1045
1073
  getPropertyCallableRef('sanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh(), null);
1046
- return tmp0.l1();
1074
+ return tmp0.m1();
1047
1075
  }
1048
1076
  function sanitize($this, _this__u8e3s4) {
1049
- return '"' + _this__u8e3s4.l1() + '"';
1077
+ return '"' + _this__u8e3s4.m1() + '"';
1050
1078
  }
1051
1079
  function sanitizeSymbol_1($this, _this__u8e3s4) {
1052
1080
  // Inline function 'kotlin.text.filter' call
@@ -1067,7 +1095,7 @@ function sanitizeSymbol_1($this, _this__u8e3s4) {
1067
1095
  return destination.toString();
1068
1096
  }
1069
1097
  function sanitizeKeywords($this, _this__u8e3s4) {
1070
- return Companion_getInstance_0().h1z_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1098
+ return Companion_getInstance_0().b24_1.v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1071
1099
  }
1072
1100
  function firstToLower($this, _this__u8e3s4) {
1073
1101
  // Inline function 'kotlin.text.replaceFirstChar' call
@@ -1086,10 +1114,10 @@ function firstToLower($this, _this__u8e3s4) {
1086
1114
  return tmp;
1087
1115
  }
1088
1116
  function sanitizeParamName($this, identifier) {
1089
- var tmp0 = identifier.l1();
1117
+ var tmp0 = identifier.m1();
1090
1118
  // Inline function 'kotlin.text.split' call
1091
1119
  // Inline function 'kotlin.collections.filter' call
1092
- var tmp0_0 = Regex_init_$Create$('[.\\s-]+').xc(tmp0, 0);
1120
+ var tmp0_0 = Regex_init_$Create$('[.\\s-]+').zc(tmp0, 0);
1093
1121
  // Inline function 'kotlin.collections.filterTo' call
1094
1122
  var destination = ArrayList_init_$Create$();
1095
1123
  var _iterator__ex2g4s = tmp0_0.t();
@@ -1101,7 +1129,7 @@ function sanitizeParamName($this, identifier) {
1101
1129
  }
1102
1130
  }
1103
1131
  var parts = destination;
1104
- var name = parts.a1() > 1 ? (new Name(parts)).s1l() : identifier.l1();
1132
+ var name = parts.a1() > 1 ? (new Name(parts)).v1p() : identifier.m1();
1105
1133
  return sanitizeKeywords($this, sanitizeSymbol_1($this, name));
1106
1134
  }
1107
1135
  function buildEndpointParams($this, endpoint) {
@@ -1110,7 +1138,7 @@ function buildEndpointParams($this, endpoint) {
1110
1138
  // Inline function 'kotlin.apply' call
1111
1139
  var this_0 = ArrayList_init_$Create$();
1112
1140
  // Inline function 'kotlin.collections.filterIsInstance' call
1113
- var tmp0 = endpoint.gp_1;
1141
+ var tmp0 = endpoint.et_1;
1114
1142
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1115
1143
  var destination = ArrayList_init_$Create$();
1116
1144
  var _iterator__ex2g4s = tmp0.t();
@@ -1124,36 +1152,36 @@ function buildEndpointParams($this, endpoint) {
1124
1152
  var _iterator__ex2g4s_0 = destination.t();
1125
1153
  while (_iterator__ex2g4s_0.u()) {
1126
1154
  var element_0 = _iterator__ex2g4s_0.v();
1127
- this_0.x(new EndpointParam(sanitizeParamName($this, element_0.lp_1), emitTypeScriptReference($this, element_0.mp_1.eu(false)), element_0.mp_1.cu()));
1155
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_0.jt_1), emitTypeScriptReference($this, element_0.kt_1.cy(false)), element_0.kt_1.ay()));
1128
1156
  }
1129
1157
  // Inline function 'kotlin.collections.forEach' call
1130
- var _iterator__ex2g4s_1 = endpoint.hp_1.t();
1158
+ var _iterator__ex2g4s_1 = endpoint.ft_1.t();
1131
1159
  while (_iterator__ex2g4s_1.u()) {
1132
1160
  var element_1 = _iterator__ex2g4s_1.v();
1133
- this_0.x(new EndpointParam(sanitizeParamName($this, element_1.ap_1), emitTypeScriptReference($this, element_1.bp_1.eu(false)), element_1.bp_1.cu()));
1161
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_1.ys_1), emitTypeScriptReference($this, element_1.zs_1.cy(false)), element_1.zs_1.ay()));
1134
1162
  }
1135
1163
  // Inline function 'kotlin.collections.forEach' call
1136
- var _iterator__ex2g4s_2 = endpoint.ip_1.t();
1164
+ var _iterator__ex2g4s_2 = endpoint.gt_1.t();
1137
1165
  while (_iterator__ex2g4s_2.u()) {
1138
1166
  var element_2 = _iterator__ex2g4s_2.v();
1139
- this_0.x(new EndpointParam(sanitizeParamName($this, element_2.ap_1), emitTypeScriptReference($this, element_2.bp_1.eu(false)), element_2.bp_1.cu()));
1167
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_2.ys_1), emitTypeScriptReference($this, element_2.zs_1.cy(false)), element_2.zs_1.ay()));
1140
1168
  }
1141
- var tmp0_safe_receiver = first(endpoint.jp_1).np_1;
1169
+ var tmp0_safe_receiver = first(endpoint.ht_1).lt_1;
1142
1170
  if (tmp0_safe_receiver == null)
1143
1171
  null;
1144
1172
  else {
1145
1173
  // Inline function 'kotlin.let' call
1146
- this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.pp_1.eu(false)), tmp0_safe_receiver.pp_1.cu()));
1174
+ this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.nt_1.cy(false)), tmp0_safe_receiver.nt_1.ay()));
1147
1175
  }
1148
- return this_0.o5();
1176
+ return this_0.p5();
1149
1177
  }
1150
1178
  function emitTypeScriptReference($this, ref) {
1151
1179
  var tmp;
1152
1180
  if (ref instanceof Dict) {
1153
- tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.co_1) + '>';
1181
+ tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.as_1) + '>';
1154
1182
  } else {
1155
1183
  if (ref instanceof Iterable) {
1156
- tmp = emitTypeScriptReference($this, ref.zn_1) + '[]';
1184
+ tmp = emitTypeScriptReference($this, ref.xr_1) + '[]';
1157
1185
  } else {
1158
1186
  if (ref instanceof Unit) {
1159
1187
  tmp = 'undefined';
@@ -1162,10 +1190,10 @@ function emitTypeScriptReference($this, ref) {
1162
1190
  tmp = 'any';
1163
1191
  } else {
1164
1192
  if (ref instanceof Custom) {
1165
- tmp = sanitizeSymbol_1($this, ref.ku_1);
1193
+ tmp = sanitizeSymbol_1($this, ref.iy_1);
1166
1194
  } else {
1167
1195
  if (ref instanceof Primitive) {
1168
- var tmp1_subject = ref.ou_1;
1196
+ var tmp1_subject = ref.my_1;
1169
1197
  var tmp_0;
1170
1198
  if (tmp1_subject instanceof String_0) {
1171
1199
  tmp_0 = 'string';
@@ -1198,20 +1226,20 @@ function emitTypeScriptReference($this, ref) {
1198
1226
  }
1199
1227
  }
1200
1228
  // Inline function 'kotlin.let' call
1201
- return tmp + (ref.cu() ? ' | undefined' : '');
1229
+ return tmp + (ref.ay() ? ' | undefined' : '');
1202
1230
  }
1203
1231
  function EndpointParam(name, type, nullable) {
1204
- this.i1z_1 = name;
1205
- this.j1z_1 = type;
1206
- this.k1z_1 = nullable;
1232
+ this.c24_1 = name;
1233
+ this.d24_1 = type;
1234
+ this.e24_1 = nullable;
1207
1235
  }
1208
1236
  protoOf(EndpointParam).toString = function () {
1209
- return 'EndpointParam(name=' + this.i1z_1 + ', type=' + this.j1z_1 + ', nullable=' + this.k1z_1 + ')';
1237
+ return 'EndpointParam(name=' + this.c24_1 + ', type=' + this.d24_1 + ', nullable=' + this.e24_1 + ')';
1210
1238
  };
1211
1239
  protoOf(EndpointParam).hashCode = function () {
1212
- var result = getStringHashCode(this.i1z_1);
1213
- result = imul(result, 31) + getStringHashCode(this.j1z_1) | 0;
1214
- result = imul(result, 31) + getBooleanHashCode(this.k1z_1) | 0;
1240
+ var result = getStringHashCode(this.c24_1);
1241
+ result = imul(result, 31) + getStringHashCode(this.d24_1) | 0;
1242
+ result = imul(result, 31) + getBooleanHashCode(this.e24_1) | 0;
1215
1243
  return result;
1216
1244
  };
1217
1245
  protoOf(EndpointParam).equals = function (other) {
@@ -1219,17 +1247,31 @@ protoOf(EndpointParam).equals = function (other) {
1219
1247
  return true;
1220
1248
  if (!(other instanceof EndpointParam))
1221
1249
  return false;
1222
- if (!(this.i1z_1 === other.i1z_1))
1250
+ if (!(this.c24_1 === other.c24_1))
1223
1251
  return false;
1224
- if (!(this.j1z_1 === other.j1z_1))
1252
+ if (!(this.d24_1 === other.d24_1))
1225
1253
  return false;
1226
- if (!(this.k1z_1 === other.k1z_1))
1254
+ if (!(this.e24_1 === other.e24_1))
1227
1255
  return false;
1228
1256
  return true;
1229
1257
  };
1230
1258
  function Companion() {
1231
1259
  Companion_instance_1 = this;
1232
- this.h1z_1 = setOf(['break', 'case', 'catch', 'continue', 'debugger', 'default', 'delete', 'do', 'else', 'finally', 'for', 'function', 'if', 'in', 'instanceof', 'new', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'var', 'void', 'while', 'with', 'class', 'const', 'enum', 'export', 'extends', 'import', 'super', 'implements', 'interface', 'let', 'package', 'private', 'protected', 'public', 'static', 'yield', 'type', 'async', 'await']);
1260
+ var tmp = this;
1261
+ // Inline function 'kotlin.collections.associateWith' call
1262
+ var this_0 = listOf(['GeneratorFieldString', 'GeneratorFieldInteger64', 'GeneratorFieldInteger32', 'GeneratorFieldNumber64', 'GeneratorFieldNumber32', 'GeneratorFieldBoolean', 'GeneratorFieldBytes', 'GeneratorFieldEnum', 'GeneratorFieldUnion', 'GeneratorFieldArray', 'GeneratorFieldNullable', 'GeneratorFieldShape', 'GeneratorFieldDict']);
1263
+ var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16));
1264
+ // Inline function 'kotlin.collections.associateWithTo' call
1265
+ var _iterator__ex2g4s = this_0.t();
1266
+ while (_iterator__ex2g4s.u()) {
1267
+ var element = _iterator__ex2g4s.v();
1268
+ // Inline function 'kotlin.text.lowercase' call
1269
+ // Inline function 'kotlin.js.asDynamic' call
1270
+ var tmp$ret$2 = removePrefix(element, 'GeneratorField').toLowerCase();
1271
+ result.y2(element, tmp$ret$2);
1272
+ }
1273
+ tmp.a24_1 = result;
1274
+ this.b24_1 = setOf(['break', 'case', 'catch', 'continue', 'debugger', 'default', 'delete', 'do', 'else', 'finally', 'for', 'function', 'if', 'in', 'instanceof', 'new', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'var', 'void', 'while', 'with', 'class', 'const', 'enum', 'export', 'extends', 'import', 'super', 'implements', 'interface', 'let', 'package', 'private', 'protected', 'public', 'static', 'yield', 'type', 'async', 'await']);
1233
1275
  }
1234
1276
  var Companion_instance_1;
1235
1277
  function Companion_getInstance_0() {
@@ -1242,14 +1284,14 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1242
1284
  }
1243
1285
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
1244
1286
  return function (name) {
1245
- var sanitized = name.g1h_1.a1() > 1 ? name.s1l() : sanitizeSymbol_1(this$0, name.s1h());
1246
- return new Name(listOf(sanitized));
1287
+ var sanitized = name.s1k_1.a1() > 1 ? name.v1p() : sanitizeSymbol_1(this$0, name.p1m());
1288
+ return new Name(listOf_0(sanitized));
1247
1289
  };
1248
1290
  }
1249
1291
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
1250
1292
  return function (name) {
1251
- var sanitized = name.g1h_1.a1() > 1 ? name.s1l() : sanitizeSymbol_1(this$0, name.s1h());
1252
- return new Name(listOf(sanitized));
1293
+ var sanitized = name.s1k_1.a1() > 1 ? name.v1p() : sanitizeSymbol_1(this$0, name.p1m());
1294
+ return new Name(listOf_0(sanitized));
1253
1295
  };
1254
1296
  }
1255
1297
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
@@ -1274,29 +1316,29 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
1274
1316
  return function (stmt, tr) {
1275
1317
  var tmp;
1276
1318
  if (stmt instanceof VariableReference) {
1277
- tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.g1o_1));
1319
+ tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.p1s_1));
1278
1320
  } else {
1279
1321
  if (stmt instanceof ConstructorStatement) {
1280
- var tmp_0 = tr.p1t(stmt.p1m_1);
1322
+ var tmp_0 = tr.d1y(stmt.x1q_1);
1281
1323
  // Inline function 'kotlin.collections.map' call
1282
- var this_0 = stmt.q1m_1;
1324
+ var this_0 = stmt.y1q_1;
1283
1325
  // Inline function 'kotlin.collections.mapTo' call
1284
1326
  var destination = ArrayList_init_$Create$_0(this_0.a1());
1285
1327
  // Inline function 'kotlin.collections.iterator' call
1286
- var _iterator__ex2g4s = this_0.j1().t();
1328
+ var _iterator__ex2g4s = this_0.k1().t();
1287
1329
  while (_iterator__ex2g4s.u()) {
1288
1330
  var item = _iterator__ex2g4s.v();
1289
1331
  // Inline function 'kotlin.collections.component1' call
1290
- var key = item.k1();
1332
+ var key = item.l1();
1291
1333
  // Inline function 'kotlin.collections.component2' call
1292
- var value = item.l1();
1293
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.s1t(value));
1334
+ var value = item.m1();
1335
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.g1y(value));
1294
1336
  destination.x(tmp$ret$3);
1295
1337
  }
1296
1338
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
1297
1339
  } else {
1298
1340
  if (stmt instanceof Assignment) {
1299
- tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.j1o_1), tr.s1t(stmt.k1o_1), stmt.l1o_1);
1341
+ tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.s1s_1), tr.g1y(stmt.t1s_1), stmt.u1s_1);
1300
1342
  } else {
1301
1343
  tmp = transformChildren(stmt, tr);
1302
1344
  }
@@ -1307,7 +1349,7 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
1307
1349
  }
1308
1350
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1309
1351
  return function () {
1310
- var tmp0_reservedKeywords = Companion_getInstance_0().h1z_1;
1352
+ var tmp0_reservedKeywords = Companion_getInstance_0().b24_1;
1311
1353
  var tmp = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1312
1354
  var tmp_0 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
1313
1355
  var tmp_1 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -1323,11 +1365,11 @@ function TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh() {
1323
1365
  function TypeScriptIrEmitter$emitShared$lambda(element, transformer) {
1324
1366
  var tmp;
1325
1367
  if (element instanceof Namespace) {
1326
- var injected = element.y1m_1.equals(Companion_getInstance().f1h('Wirespec')) ? listOf(new RawElement('export type Type = string')) : emptyList();
1368
+ var injected = element.g1r_1.equals(Companion_getInstance().u1k('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
1327
1369
  var tmp_0;
1328
1370
  // Inline function 'kotlin.collections.isNotEmpty' call
1329
1371
  if (!injected.r()) {
1330
- tmp_0 = withElements(element, plus_0(injected, element.u1m()));
1372
+ tmp_0 = withElements(element, plus_1(injected, element.c1r()));
1331
1373
  } else {
1332
1374
  tmp_0 = element;
1333
1375
  }
@@ -1342,11 +1384,11 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
1342
1384
  return function (element, transformer) {
1343
1385
  var tmp;
1344
1386
  if (element instanceof Namespace) {
1345
- var injected = element.y1m_1.equals(Companion_getInstance().f1h('Wirespec')) ? listOf(new RawElement($api)) : emptyList();
1387
+ var injected = element.g1r_1.equals(Companion_getInstance().u1k('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
1346
1388
  var tmp_0;
1347
1389
  // Inline function 'kotlin.collections.isNotEmpty' call
1348
1390
  if (!injected.r()) {
1349
- tmp_0 = withElements(element, plus_0(element.u1m(), injected));
1391
+ tmp_0 = withElements(element, plus_1(element.c1r(), injected));
1350
1392
  } else {
1351
1393
  tmp_0 = element;
1352
1394
  }
@@ -1358,18 +1400,162 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
1358
1400
  return transformChildren_0(transformed, transformer);
1359
1401
  };
1360
1402
  }
1403
+ function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
1404
+ var tmp;
1405
+ if (element instanceof Struct) {
1406
+ var tmp0_safe_receiver = Companion_getInstance_0().a24_1.q2(element.l1r_1.p1m());
1407
+ var tmp_0;
1408
+ if (tmp0_safe_receiver == null) {
1409
+ tmp_0 = null;
1410
+ } else {
1411
+ // Inline function 'kotlin.let' call
1412
+ tmp_0 = element.s1r(VOID, plus_1(listOf_0(new Field(Companion_getInstance().u1k('kind'), new StringLiteral(tmp0_safe_receiver))), element.m1r_1));
1413
+ }
1414
+ var tmp1_elvis_lhs = tmp_0;
1415
+ tmp = tmp1_elvis_lhs == null ? element : tmp1_elvis_lhs;
1416
+ } else {
1417
+ tmp = element;
1418
+ }
1419
+ var transformed = tmp;
1420
+ return transformChildren_0(transformed, transformer);
1421
+ }
1361
1422
  function TypeScriptIrEmitter$emit$lambda(it) {
1362
- return 'export {' + it.vq().l1() + "} from './" + it.vq().l1() + "'";
1423
+ return 'export {' + it.tu().m1() + "} from './" + it.tu().m1() + "'";
1424
+ }
1425
+ function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
1426
+ return function (expr, t) {
1427
+ var tmp;
1428
+ var tmp_0;
1429
+ var tmp_1;
1430
+ var tmp_2;
1431
+ if (expr instanceof FunctionCall) {
1432
+ var tmp_3 = expr.d1q_1;
1433
+ tmp_2 = tmp_3 instanceof RawExpression;
1434
+ } else {
1435
+ tmp_2 = false;
1436
+ }
1437
+ if (tmp_2) {
1438
+ var tmp_4 = expr.d1q_1;
1439
+ tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).r1s_1 === $definition.ev_1.m1();
1440
+ } else {
1441
+ tmp_1 = false;
1442
+ }
1443
+ if (tmp_1) {
1444
+ tmp_0 = expr.f1q_1.equals(Companion_getInstance().u1k('valueOf'));
1445
+ } else {
1446
+ tmp_0 = false;
1447
+ }
1448
+ if (tmp_0) {
1449
+ var tmp0_elvis_lhs = expr.g1q_1.q2(Companion_getInstance().u1k('label'));
1450
+ tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
1451
+ } else {
1452
+ tmp = transformChildren_1(expr, t);
1453
+ }
1454
+ return tmp;
1455
+ };
1456
+ }
1457
+ function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
1458
+ return function (expr, t) {
1459
+ var tmp;
1460
+ var tmp_0;
1461
+ if (expr instanceof ConstructorStatement) {
1462
+ tmp_0 = equals(expr.x1q_1, new Custom_0($definition.zu_1.m1()));
1463
+ } else {
1464
+ tmp_0 = false;
1465
+ }
1466
+ if (tmp_0) {
1467
+ var tmp0_elvis_lhs = expr.y1q_1.q2(Companion_getInstance().u1k('value'));
1468
+ tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
1469
+ } else {
1470
+ tmp = transformChildren_1(expr, t);
1471
+ }
1472
+ return tmp;
1473
+ };
1474
+ }
1475
+ function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
1476
+ var tmp;
1477
+ if (expr instanceof ConstructorStatement) {
1478
+ var tmp_0 = expr.x1q_1;
1479
+ var tmp0_safe_receiver = tmp_0 instanceof Custom_0 ? tmp_0 : null;
1480
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1m_1;
1481
+ var typeName = tmp1_safe_receiver == null ? null : removePrefix(tmp1_safe_receiver, 'Wirespec.');
1482
+ var tmp_1;
1483
+ if (typeName == null) {
1484
+ tmp_1 = null;
1485
+ } else {
1486
+ // Inline function 'kotlin.let' call
1487
+ tmp_1 = Companion_getInstance_0().a24_1.q2(typeName);
1488
+ }
1489
+ var kind = tmp_1;
1490
+ var tmp_2;
1491
+ if (!(kind == null)) {
1492
+ var tmp_3 = mapOf(to(Companion_getInstance().u1k('kind'), new Literal_0(kind, String_instance)));
1493
+ // Inline function 'kotlin.collections.mapValues' call
1494
+ var this_0 = expr.y1q_1;
1495
+ // Inline function 'kotlin.collections.mapValuesTo' call
1496
+ var destination = LinkedHashMap_init_$Create$_0(mapCapacity(this_0.a1()));
1497
+ // Inline function 'kotlin.collections.associateByTo' call
1498
+ var _iterator__ex2g4s = this_0.k1().t();
1499
+ while (_iterator__ex2g4s.u()) {
1500
+ var element = _iterator__ex2g4s.v();
1501
+ var tmp_4 = element.l1();
1502
+ // Inline function 'kotlin.collections.component2' call
1503
+ var v = element.m1();
1504
+ var tmp$ret$4 = t.g1y(v);
1505
+ destination.y2(tmp_4, tmp$ret$4);
1506
+ }
1507
+ tmp_2 = new ConstructorStatement(expr.x1q_1, plus_2(tmp_3, destination));
1508
+ } else {
1509
+ tmp_2 = transformChildren(expr, t);
1510
+ }
1511
+ tmp = tmp_2;
1512
+ } else {
1513
+ tmp = transformChildren_1(expr, t);
1514
+ }
1515
+ return tmp;
1516
+ }
1517
+ function TypeScriptIrEmitter$emitGenerator$lambda_2(it) {
1518
+ return startsWith(it, 'Wirespec.') || it === 'Wirespec';
1519
+ }
1520
+ function TypeScriptIrEmitter$emitGenerator$lambda_3($generatorOwnName) {
1521
+ return function (it) {
1522
+ return it === $generatorOwnName;
1523
+ };
1524
+ }
1525
+ function TypeScriptIrEmitter$emitGenerator$lambda_4(it) {
1526
+ return substringBefore(it, _Char___init__impl__6a9atx(60));
1527
+ }
1528
+ function TypeScriptIrEmitter$emitGenerator$lambda_5($generatorOwnName, $generatorRefs) {
1529
+ return function (expr, t) {
1530
+ var tmp;
1531
+ var tmp_0;
1532
+ var tmp_1;
1533
+ if (expr instanceof RawExpression) {
1534
+ tmp_1 = endsWith(expr.r1s_1, 'Generator');
1535
+ } else {
1536
+ tmp_1 = false;
1537
+ }
1538
+ if (tmp_1) {
1539
+ tmp_0 = !(expr.r1s_1 === $generatorOwnName);
1540
+ } else {
1541
+ tmp_0 = false;
1542
+ }
1543
+ if (tmp_0) {
1544
+ $generatorRefs.x(expr.r1s_1);
1545
+ tmp = Unit_instance;
1546
+ }
1547
+ return transformChildren_1(expr, t);
1548
+ };
1363
1549
  }
1364
1550
  function TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint) {
1365
1551
  return function (element, transformer) {
1366
1552
  var tmp;
1367
1553
  if (element instanceof Namespace) {
1368
- var injected = listOf(buildApiConst($endpoint));
1554
+ var injected = listOf_0(buildApiConst($endpoint));
1369
1555
  var tmp_0;
1370
1556
  // Inline function 'kotlin.collections.isNotEmpty' call
1371
1557
  if (!injected.r()) {
1372
- tmp_0 = withElements(element, plus_0(element.u1m(), injected));
1558
+ tmp_0 = withElements(element, plus_1(element.c1r(), injected));
1373
1559
  } else {
1374
1560
  tmp_0 = element;
1375
1561
  }
@@ -1388,14 +1574,14 @@ function emit$injectApiConst(_this__u8e3s4, $endpoint) {
1388
1574
  var tmp = scope;
1389
1575
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1390
1576
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1391
- var this_0 = scope.x1t_1;
1577
+ var this_0 = scope.l1y_1;
1392
1578
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1393
1579
  // Inline function 'kotlin.apply' call
1394
1580
  var this_1 = new TransformerBuilder();
1395
- this_1.c1h(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
1396
- var tmp$ret$2 = this_1.d1h();
1397
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1398
- var tmp_0 = scope.x1t_1;
1581
+ this_1.d1m(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
1582
+ var tmp$ret$2 = this_1.e1m();
1583
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1584
+ var tmp_0 = scope.l1y_1;
1399
1585
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1400
1586
  }
1401
1587
  function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
@@ -1403,25 +1589,25 @@ function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
1403
1589
  }
1404
1590
  function TypeScriptIrEmitter$emitClient$lambda(this$0) {
1405
1591
  return function (it) {
1406
- var methodName = firstToLower(this$0, it.ep_1.l1());
1592
+ var methodName = firstToLower(this$0, it.ct_1.m1());
1407
1593
  return ' ...' + methodName + 'Client(serialization, transportation),';
1408
1594
  };
1409
1595
  }
1410
1596
  function TypeScriptIrEmitter() {
1411
1597
  Companion_getInstance_0();
1412
- this.e1z_1 = TypeScriptGenerator_getInstance();
1413
- this.f1z_1 = FileExtension_TypeScript_getInstance();
1598
+ this.x23_1 = TypeScriptGenerator_getInstance();
1599
+ this.y23_1 = FileExtension_TypeScript_getInstance();
1414
1600
  var tmp = this;
1415
- tmp.g1z_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
1601
+ tmp.z23_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
1416
1602
  }
1417
- protoOf(TypeScriptIrEmitter).k1u = function () {
1418
- return this.e1z_1;
1603
+ protoOf(TypeScriptIrEmitter).y1y = function () {
1604
+ return this.x23_1;
1419
1605
  };
1420
- protoOf(TypeScriptIrEmitter).eq = function () {
1421
- return this.f1z_1;
1606
+ protoOf(TypeScriptIrEmitter).cu = function () {
1607
+ return this.y23_1;
1422
1608
  };
1423
- protoOf(TypeScriptIrEmitter).n1u = function () {
1424
- var packageName = Companion_instance.lr('community.flock.wirespec');
1609
+ protoOf(TypeScriptIrEmitter).b1z = function () {
1610
+ var packageName = Companion_instance.jv('community.flock.wirespec');
1425
1611
  var api = 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n to: (request: REQ) => RawRequest;\n from: (response: RawResponse) => RES\n}\nexport type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n from: (request: RawRequest) => REQ;\n to: (response: RES) => RawResponse\n}\nexport type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = {\n name: string;\n method: Method,\n path: string,\n client: Client<REQ, RES>;\n server: Server<REQ, RES>\n}';
1426
1612
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1427
1613
  var this_0 = convert(packageName);
@@ -1430,31 +1616,41 @@ protoOf(TypeScriptIrEmitter).n1u = function () {
1430
1616
  var tmp = scope;
1431
1617
  // Inline function 'community.flock.wirespec.ir.core.injectBefore' call
1432
1618
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1433
- var this_1 = scope.x1t_1;
1619
+ var this_1 = scope.l1y_1;
1434
1620
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1435
1621
  // Inline function 'kotlin.apply' call
1436
1622
  var this_2 = new TransformerBuilder();
1437
- this_2.c1h(TypeScriptIrEmitter$emitShared$lambda);
1438
- var tmp$ret$2 = this_2.d1h();
1439
- tmp.x1t_1 = transform(this_1, tmp$ret$2);
1623
+ this_2.d1m(TypeScriptIrEmitter$emitShared$lambda);
1624
+ var tmp$ret$2 = this_2.e1m();
1625
+ tmp.l1y_1 = transform(this_1, tmp$ret$2);
1440
1626
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1441
1627
  var tmp_0 = scope;
1442
1628
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1443
1629
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1444
- var this_3 = scope.x1t_1;
1630
+ var this_3 = scope.l1y_1;
1445
1631
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1446
1632
  // Inline function 'kotlin.apply' call
1447
1633
  var this_4 = new TransformerBuilder();
1448
- this_4.c1h(TypeScriptIrEmitter$emitShared$lambda_0(api));
1449
- var tmp$ret$8 = this_4.d1h();
1450
- tmp_0.x1t_1 = transform(this_3, tmp$ret$8);
1451
- var tmp_1 = scope.x1t_1;
1452
- return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1634
+ this_4.d1m(TypeScriptIrEmitter$emitShared$lambda_0(api));
1635
+ var tmp$ret$8 = this_4.e1m();
1636
+ tmp_0.l1y_1 = transform(this_3, tmp$ret$8);
1637
+ // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1638
+ var tmp_1 = scope;
1639
+ // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1640
+ var this_5 = scope.l1y_1;
1641
+ // Inline function 'community.flock.wirespec.ir.core.transformer' call
1642
+ // Inline function 'kotlin.apply' call
1643
+ var this_6 = new TransformerBuilder();
1644
+ this_6.d1m(TypeScriptIrEmitter$emitShared$lambda_1);
1645
+ var tmp$ret$14 = this_6.e1m();
1646
+ tmp_1.l1y_1 = transform(this_5, tmp$ret$14);
1647
+ var tmp_2 = scope.l1y_1;
1648
+ return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1453
1649
  };
1454
- protoOf(TypeScriptIrEmitter).on = function (ast, logger) {
1650
+ protoOf(TypeScriptIrEmitter).mr = function (ast, logger) {
1455
1651
  var tmp = emit.call(this, ast, logger);
1456
1652
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
1457
- var this_0 = ast.bq_1;
1653
+ var this_0 = ast.zt_1;
1458
1654
  // Inline function 'kotlin.collections.flatMap' call
1459
1655
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
1460
1656
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -1462,7 +1658,7 @@ protoOf(TypeScriptIrEmitter).on = function (ast, logger) {
1462
1658
  var _iterator__ex2g4s = tmp0.t();
1463
1659
  while (_iterator__ex2g4s.u()) {
1464
1660
  var element = _iterator__ex2g4s.v();
1465
- var list = new NonEmptyList(element.dq_1);
1661
+ var list = new NonEmptyList(element.bu_1);
1466
1662
  addAll(destination, list);
1467
1663
  }
1468
1664
  var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -1475,11 +1671,11 @@ protoOf(TypeScriptIrEmitter).on = function (ast, logger) {
1475
1671
  var element_0 = _iterator__ex2g4s_0.v();
1476
1672
  var key = namespace(element_0);
1477
1673
  // Inline function 'kotlin.collections.getOrPut' call
1478
- var value = destination_0.p2(key);
1674
+ var value = destination_0.q2(key);
1479
1675
  var tmp_0;
1480
1676
  if (value == null) {
1481
1677
  var answer = ArrayList_init_$Create$();
1482
- destination_0.w2(key, answer);
1678
+ destination_0.y2(key, answer);
1483
1679
  tmp_0 = answer;
1484
1680
  } else {
1485
1681
  tmp_0 = value;
@@ -1491,25 +1687,116 @@ protoOf(TypeScriptIrEmitter).on = function (ast, logger) {
1491
1687
  // Inline function 'kotlin.collections.mapTo' call
1492
1688
  var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
1493
1689
  // Inline function 'kotlin.collections.iterator' call
1494
- var _iterator__ex2g4s_1 = destination_0.j1().t();
1690
+ var _iterator__ex2g4s_1 = destination_0.k1().t();
1495
1691
  while (_iterator__ex2g4s_1.u()) {
1496
1692
  var item = _iterator__ex2g4s_1.v();
1497
1693
  // Inline function 'kotlin.collections.component1' call
1498
- var ns = item.k1();
1694
+ var ns = item.l1();
1499
1695
  // Inline function 'kotlin.collections.component2' call
1500
- var defs = item.l1();
1501
- var tmp_1 = ns + '/index.' + this.eq().nq_1;
1696
+ var defs = item.m1();
1697
+ var tmp_1 = ns + '/index.' + this.cu().lu_1;
1502
1698
  var tmp$ret$12 = new Emitted(tmp_1, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emit$lambda));
1503
1699
  destination_1.x(tmp$ret$12);
1504
1700
  }
1505
1701
  return NonEmptyList__plus_impl_xqmb9_0(tmp, destination_1);
1506
1702
  };
1507
- protoOf(TypeScriptIrEmitter).uq = function (definition, module_0, logger) {
1703
+ protoOf(TypeScriptIrEmitter).su = function (definition, module_0, logger) {
1508
1704
  var file = emit_0.call(this, definition, module_0, logger);
1509
- var subPackageName = plus(Companion_instance.lr(''), definition);
1510
- return new File(Companion_getInstance().f1h(subPackageName.or() + sanitizeSymbol_1(this, file.s1m_1.h1h())), plus_0(listOf(import_0('../Wirespec', 'Wirespec')), file.t1m_1));
1705
+ var subPackageName = plus(Companion_instance.jv(''), definition);
1706
+ return new File(Companion_getInstance().u1k(subPackageName.mv() + sanitizeSymbol_1(this, file.a1r_1.b1q())), plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), file.b1r_1));
1707
+ };
1708
+ protoOf(TypeScriptIrEmitter).f1z = function (definition, module_0) {
1709
+ var tmp;
1710
+ if (definition instanceof Type) {
1711
+ tmp = convertToGenerator_2(definition, module_0);
1712
+ } else {
1713
+ if (definition instanceof Enum) {
1714
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1715
+ var this_0 = convertToGenerator_1(definition);
1716
+ var scope = new TransformScope(this_0);
1717
+ scope.t1y(TypeScriptIrEmitter$emitGenerator$lambda(definition));
1718
+ var tmp_0 = scope.l1y_1;
1719
+ tmp = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1720
+ } else {
1721
+ if (definition instanceof Refined) {
1722
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1723
+ var this_1 = convertToGenerator_0(definition);
1724
+ var scope_0 = new TransformScope(this_1);
1725
+ scope_0.t1y(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
1726
+ var tmp_1 = scope_0.l1y_1;
1727
+ tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1728
+ } else {
1729
+ if (definition instanceof Union) {
1730
+ tmp = convertToGenerator(definition);
1731
+ } else {
1732
+ return null;
1733
+ }
1734
+ }
1735
+ }
1736
+ }
1737
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1738
+ var this_2 = sanitizeNames(tmp, _get_sanitizationConfig__sns434(this));
1739
+ var scope_1 = new TransformScope(this_2);
1740
+ scope_1.t1y(TypeScriptIrEmitter$emitGenerator$lambda_1);
1741
+ var tmp_2 = scope_1.l1y_1;
1742
+ var generatorFile = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1743
+ var generatorOwnName = definition.tu().m1() + 'Generator';
1744
+ var tmp_3 = asSequence(collectCustomTypeNames(generatorFile));
1745
+ var tmp_4 = filterNot(tmp_3, TypeScriptIrEmitter$emitGenerator$lambda_2);
1746
+ var tmp_5 = filterNot(tmp_4, TypeScriptIrEmitter$emitGenerator$lambda_3(generatorOwnName));
1747
+ var customNames = toList(distinct(map(tmp_5, TypeScriptIrEmitter$emitGenerator$lambda_4)));
1748
+ // Inline function 'kotlin.collections.mutableSetOf' call
1749
+ var generatorRefs = LinkedHashSet_init_$Create$();
1750
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1751
+ var scope_2 = new TransformScope(generatorFile);
1752
+ scope_2.t1y(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
1753
+ var tmp_6 = scope_2.l1y_1;
1754
+ isInterface(tmp_6, Element) || THROW_CCE();
1755
+ // Inline function 'kotlin.collections.filter' call
1756
+ // Inline function 'kotlin.collections.filterTo' call
1757
+ var destination = ArrayList_init_$Create$();
1758
+ var _iterator__ex2g4s = customNames.t();
1759
+ while (_iterator__ex2g4s.u()) {
1760
+ var element = _iterator__ex2g4s.v();
1761
+ if (endsWith(element, 'Generator')) {
1762
+ destination.x(element);
1763
+ }
1764
+ }
1765
+ // Inline function 'kotlin.collections.map' call
1766
+ var this_3 = distinct_0(plus_1(destination, generatorRefs));
1767
+ // Inline function 'kotlin.collections.mapTo' call
1768
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
1769
+ var _iterator__ex2g4s_0 = this_3.t();
1770
+ while (_iterator__ex2g4s_0.u()) {
1771
+ var item = _iterator__ex2g4s_0.v();
1772
+ var tmp$ret$12 = import_0('./' + item, item);
1773
+ destination_0.x(tmp$ret$12);
1774
+ }
1775
+ var generatorImports = destination_0;
1776
+ // Inline function 'kotlin.collections.filterNot' call
1777
+ // Inline function 'kotlin.collections.filterNotTo' call
1778
+ var destination_1 = ArrayList_init_$Create$();
1779
+ var _iterator__ex2g4s_1 = customNames.t();
1780
+ while (_iterator__ex2g4s_1.u()) {
1781
+ var element_0 = _iterator__ex2g4s_1.v();
1782
+ if (!endsWith(element_0, 'Generator')) {
1783
+ destination_1.x(element_0);
1784
+ }
1785
+ }
1786
+ // Inline function 'kotlin.collections.map' call
1787
+ // Inline function 'kotlin.collections.mapTo' call
1788
+ var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_1, 10));
1789
+ var _iterator__ex2g4s_2 = destination_1.t();
1790
+ while (_iterator__ex2g4s_2.u()) {
1791
+ var item_0 = _iterator__ex2g4s_2.v();
1792
+ var tmp$ret$18 = import_0('../model/' + item_0, item_0);
1793
+ destination_2.x(tmp$ret$18);
1794
+ }
1795
+ var modelImports = destination_2;
1796
+ var subPackageName = plus_0(Companion_instance.jv(''), 'generator');
1797
+ return new File(Companion_getInstance().u1k(subPackageName.mv() + sanitizeSymbol_1(this, generatorFile.a1r_1.b1q())), plus_1(plus_1(plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.b1r_1));
1511
1798
  };
1512
- protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1799
+ protoOf(TypeScriptIrEmitter).st = function (type, module_0) {
1513
1800
  var fieldValidations = classifyValidatableFields(type, module_0);
1514
1801
  // Inline function 'kotlin.collections.distinctBy' call
1515
1802
  var this_0 = importReferences(type);
@@ -1518,7 +1805,7 @@ protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1518
1805
  var _iterator__ex2g4s = this_0.t();
1519
1806
  while (_iterator__ex2g4s.u()) {
1520
1807
  var e = _iterator__ex2g4s.v();
1521
- var key = e.ku_1;
1808
+ var key = e.iy_1;
1522
1809
  if (set.x(key)) {
1523
1810
  list.x(e);
1524
1811
  }
@@ -1529,7 +1816,7 @@ protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1529
1816
  var _iterator__ex2g4s_0 = list.t();
1530
1817
  while (_iterator__ex2g4s_0.u()) {
1531
1818
  var item = _iterator__ex2g4s_0.v();
1532
- var tmp$ret$2 = import_0('./' + item.ku_1, item.ku_1);
1819
+ var tmp$ret$2 = import_0('./' + item.iy_1, item.iy_1);
1533
1820
  destination.x(tmp$ret$2);
1534
1821
  }
1535
1822
  var typeImports = destination;
@@ -1539,17 +1826,17 @@ protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1539
1826
  var _iterator__ex2g4s_1 = fieldValidations.t();
1540
1827
  while (_iterator__ex2g4s_1.u()) {
1541
1828
  var item_0 = _iterator__ex2g4s_1.v();
1542
- var tmp$ret$5 = item_0.m1h_1;
1829
+ var tmp$ret$5 = item_0.j1m_1;
1543
1830
  destination_0.x(tmp$ret$5);
1544
1831
  }
1545
1832
  // Inline function 'kotlin.collections.filter' call
1546
- var tmp0 = distinct(destination_0);
1833
+ var tmp0 = distinct_0(destination_0);
1547
1834
  // Inline function 'kotlin.collections.filterTo' call
1548
1835
  var destination_1 = ArrayList_init_$Create$();
1549
1836
  var _iterator__ex2g4s_2 = tmp0.t();
1550
1837
  while (_iterator__ex2g4s_2.u()) {
1551
1838
  var element = _iterator__ex2g4s_2.v();
1552
- if (!(element === type.vo_1.l1())) {
1839
+ if (!(element === type.ts_1.m1())) {
1553
1840
  destination_1.x(element);
1554
1841
  }
1555
1842
  }
@@ -1563,32 +1850,32 @@ protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1563
1850
  destination_2.x(tmp$ret$11);
1564
1851
  }
1565
1852
  var validateImports = destination_2;
1566
- var allImports = plus_0(typeImports, validateImports);
1853
+ var allImports = plus_1(typeImports, validateImports);
1567
1854
  // Inline function 'kotlin.collections.map' call
1568
- var this_1 = type.wo_1.so_1;
1855
+ var this_1 = type.us_1.qs_1;
1569
1856
  // Inline function 'kotlin.collections.mapTo' call
1570
1857
  var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1571
1858
  var _iterator__ex2g4s_4 = this_1.t();
1572
1859
  while (_iterator__ex2g4s_4.u()) {
1573
1860
  var item_2 = _iterator__ex2g4s_4.v();
1574
- var tmp$ret$14 = item_2.ap_1.l1();
1861
+ var tmp$ret$14 = item_2.ys_1.m1();
1575
1862
  destination_3.x(tmp$ret$14);
1576
1863
  }
1577
1864
  var fieldNames = toSet(destination_3);
1578
- var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)), type.vo_1.l1(), fieldNames);
1865
+ var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)), type.ts_1.m1(), fieldNames);
1579
1866
  var tmp;
1580
1867
  // Inline function 'kotlin.collections.isNotEmpty' call
1581
1868
  if (!allImports.r()) {
1582
- tmp = file.w1m(VOID, plus_0(allImports, file.t1m_1));
1869
+ tmp = file.e1r(VOID, plus_1(allImports, file.b1r_1));
1583
1870
  } else {
1584
1871
  tmp = file;
1585
1872
  }
1586
1873
  return tmp;
1587
1874
  };
1588
- protoOf(TypeScriptIrEmitter).ir = function (enum_0, module_0) {
1875
+ protoOf(TypeScriptIrEmitter).gv = function (enum_0, module_0) {
1589
1876
  return sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1590
1877
  };
1591
- protoOf(TypeScriptIrEmitter).yq = function (union) {
1878
+ protoOf(TypeScriptIrEmitter).wu = function (union) {
1592
1879
  // Inline function 'kotlin.collections.distinctBy' call
1593
1880
  var this_0 = importReferences(union);
1594
1881
  var set = HashSet_init_$Create$();
@@ -1596,7 +1883,7 @@ protoOf(TypeScriptIrEmitter).yq = function (union) {
1596
1883
  var _iterator__ex2g4s = this_0.t();
1597
1884
  while (_iterator__ex2g4s.u()) {
1598
1885
  var e = _iterator__ex2g4s.v();
1599
- var key = e.ku_1;
1886
+ var key = e.iy_1;
1600
1887
  if (set.x(key)) {
1601
1888
  list.x(e);
1602
1889
  }
@@ -1607,7 +1894,7 @@ protoOf(TypeScriptIrEmitter).yq = function (union) {
1607
1894
  var _iterator__ex2g4s_0 = list.t();
1608
1895
  while (_iterator__ex2g4s_0.u()) {
1609
1896
  var item = _iterator__ex2g4s_0.v();
1610
- var tmp$ret$2 = import_0('../model', item.ku_1, true);
1897
+ var tmp$ret$2 = import_0('../model', item.iy_1, true);
1611
1898
  destination.x(tmp$ret$2);
1612
1899
  }
1613
1900
  var imports = destination;
@@ -1615,19 +1902,19 @@ protoOf(TypeScriptIrEmitter).yq = function (union) {
1615
1902
  var tmp;
1616
1903
  // Inline function 'kotlin.collections.isNotEmpty' call
1617
1904
  if (!imports.r()) {
1618
- tmp = file.w1m(VOID, plus_0(imports, file.t1m_1));
1905
+ tmp = file.e1r(VOID, plus_1(imports, file.b1r_1));
1619
1906
  } else {
1620
1907
  tmp = file;
1621
1908
  }
1622
1909
  return tmp;
1623
1910
  };
1624
- protoOf(TypeScriptIrEmitter).dr = function (refined) {
1911
+ protoOf(TypeScriptIrEmitter).bv = function (refined) {
1625
1912
  var converted = convert_2(refined);
1626
- var constraintExpr = convertConstraint(refined.cr_1, new VariableReference(Companion_getInstance().f1h('value')));
1627
- var validatorStr = TypeScriptGenerator_getInstance().v1u(constraintExpr);
1628
- return new File(converted.s1m_1, listOf_0([new RawElement('export type ' + converted.s1m_1.h1h() + ' = ' + emitTypeScriptReference(this, refined.cr_1) + ';'), new RawElement('export const validate' + refined.br_1.l1() + ' = (value: ' + emitTypeScriptReference(this, refined.cr_1) + ') =>\n ' + validatorStr + ';')]));
1913
+ var constraintExpr = convertConstraint(refined.av_1, new VariableReference(Companion_getInstance().u1k('value')));
1914
+ var validatorStr = TypeScriptGenerator_getInstance().n1z(constraintExpr);
1915
+ return new File(converted.a1r_1, listOf([new RawElement('export type ' + converted.a1r_1.b1q() + ' = ' + emitTypeScriptReference(this, refined.av_1) + ';'), new RawElement('export const validate' + refined.zu_1.m1() + ' = (value: ' + emitTypeScriptReference(this, refined.av_1) + ') =>\n ' + validatorStr + ';')]));
1629
1916
  };
1630
- protoOf(TypeScriptIrEmitter).jr = function (endpoint) {
1917
+ protoOf(TypeScriptIrEmitter).hv = function (endpoint) {
1631
1918
  // Inline function 'kotlin.collections.distinctBy' call
1632
1919
  var this_0 = importReferences(endpoint);
1633
1920
  var set = HashSet_init_$Create$();
@@ -1635,7 +1922,7 @@ protoOf(TypeScriptIrEmitter).jr = function (endpoint) {
1635
1922
  var _iterator__ex2g4s = this_0.t();
1636
1923
  while (_iterator__ex2g4s.u()) {
1637
1924
  var e = _iterator__ex2g4s.v();
1638
- var key = e.ku_1;
1925
+ var key = e.iy_1;
1639
1926
  if (set.x(key)) {
1640
1927
  list.x(e);
1641
1928
  }
@@ -1646,7 +1933,7 @@ protoOf(TypeScriptIrEmitter).jr = function (endpoint) {
1646
1933
  var _iterator__ex2g4s_0 = list.t();
1647
1934
  while (_iterator__ex2g4s_0.u()) {
1648
1935
  var item = _iterator__ex2g4s_0.v();
1649
- var tmp$ret$2 = import_0('../model', item.ku_1, true);
1936
+ var tmp$ret$2 = import_0('../model', item.iy_1, true);
1650
1937
  destination.x(tmp$ret$2);
1651
1938
  }
1652
1939
  var imports = destination;
@@ -1655,25 +1942,25 @@ protoOf(TypeScriptIrEmitter).jr = function (endpoint) {
1655
1942
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1656
1943
  var this_1 = stripTrailingSpaceFromErrorMessage(convert_3(endpoint));
1657
1944
  var scope = new TransformScope(this_1);
1658
- scope.c1u(transformPatternSwitchToValueSwitch());
1659
- var tmp = scope.x1t_1;
1945
+ scope.q1y(transformPatternSwitchToValueSwitch());
1946
+ var tmp = scope.l1y_1;
1660
1947
  var tmp$ret$7 = isInterface(tmp, Element) ? tmp : THROW_CCE();
1661
1948
  // Inline function 'kotlin.let' call
1662
- var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).w1m(Companion_getInstance().f1h(sanitize(this, endpoint.ep_1))), _get_sanitizationConfig__sns434(this));
1949
+ var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).e1r(Companion_getInstance().u1k(sanitize(this, endpoint.ct_1))), _get_sanitizationConfig__sns434(this));
1663
1950
  var tmp_0;
1664
1951
  // Inline function 'kotlin.collections.isNotEmpty' call
1665
1952
  if (!imports.r()) {
1666
- tmp_0 = it.w1m(VOID, plus_0(imports, it.t1m_1));
1953
+ tmp_0 = it.e1r(VOID, plus_1(imports, it.b1r_1));
1667
1954
  } else {
1668
1955
  tmp_0 = it;
1669
1956
  }
1670
1957
  return tmp_0;
1671
1958
  };
1672
- protoOf(TypeScriptIrEmitter).xq = function (channel) {
1959
+ protoOf(TypeScriptIrEmitter).vu = function (channel) {
1673
1960
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1674
1961
  };
1675
- protoOf(TypeScriptIrEmitter).p1u = function (endpoint) {
1676
- var endpointName = endpoint.ep_1.l1();
1962
+ protoOf(TypeScriptIrEmitter).e1z = function (endpoint) {
1963
+ var endpointName = endpoint.ct_1.m1();
1677
1964
  var methodName = firstToLower(this, endpointName);
1678
1965
  // Inline function 'kotlin.collections.distinctBy' call
1679
1966
  var this_0 = importReferences(endpoint);
@@ -1682,7 +1969,7 @@ protoOf(TypeScriptIrEmitter).p1u = function (endpoint) {
1682
1969
  var _iterator__ex2g4s = this_0.t();
1683
1970
  while (_iterator__ex2g4s.u()) {
1684
1971
  var e = _iterator__ex2g4s.v();
1685
- var key = e.ku_1;
1972
+ var key = e.iy_1;
1686
1973
  if (set.x(key)) {
1687
1974
  list.x(e);
1688
1975
  }
@@ -1693,7 +1980,7 @@ protoOf(TypeScriptIrEmitter).p1u = function (endpoint) {
1693
1980
  var _iterator__ex2g4s_0 = list.t();
1694
1981
  while (_iterator__ex2g4s_0.u()) {
1695
1982
  var item = _iterator__ex2g4s_0.v();
1696
- var tmp$ret$2 = import_0('../model', item.ku_1, true);
1983
+ var tmp$ret$2 = import_0('../model', item.iy_1, true);
1697
1984
  destination.x(tmp$ret$2);
1698
1985
  }
1699
1986
  var imports = destination;
@@ -1715,7 +2002,7 @@ protoOf(TypeScriptIrEmitter).p1u = function (endpoint) {
1715
2002
  }
1716
2003
  var requestArgs = tmp_0;
1717
2004
  var code = trimMargin('\n |export const ' + methodName + 'Client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n | ' + methodName + ': async (' + paramList + '): Promise<' + endpointName + '.Response<unknown>> => {\n | const request: ' + endpointName + '.Request = ' + requestArgs + ';\n | const rawRequest = ' + endpointName + '.toRawRequest(serialization, request);\n | const rawResponse = await transportation.transport(rawRequest);\n | return ' + endpointName + '.fromRawResponse(serialization, rawResponse);\n | }\n |})\n ');
1718
- var tmp_1 = Companion_getInstance().f1h('client/' + endpointName + 'Client');
2005
+ var tmp_1 = Companion_getInstance().u1k('client/' + endpointName + 'Client');
1719
2006
  // Inline function 'kotlin.collections.buildList' call
1720
2007
  // Inline function 'kotlin.collections.buildListInternal' call
1721
2008
  // Inline function 'kotlin.apply' call
@@ -1724,25 +2011,25 @@ protoOf(TypeScriptIrEmitter).p1u = function (endpoint) {
1724
2011
  this_1.x(import_0('../endpoint/' + endpointName, endpointName));
1725
2012
  this_1.e1(imports);
1726
2013
  this_1.x(new RawElement(code));
1727
- var tmp$ret$10 = this_1.o5();
2014
+ var tmp$ret$10 = this_1.p5();
1728
2015
  return new File(tmp_1, tmp$ret$10);
1729
2016
  };
1730
- protoOf(TypeScriptIrEmitter).o1u = function (endpoints, logger) {
1731
- logger.sq('Emitting main Client for ' + endpoints.a1() + ' endpoints');
2017
+ protoOf(TypeScriptIrEmitter).c1z = function (endpoints, logger) {
2018
+ logger.qu('Emitting main Client for ' + endpoints.a1() + ' endpoints');
1732
2019
  // Inline function 'kotlin.collections.map' call
1733
2020
  // Inline function 'kotlin.collections.mapTo' call
1734
2021
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(endpoints, 10));
1735
2022
  var _iterator__ex2g4s = endpoints.t();
1736
2023
  while (_iterator__ex2g4s.u()) {
1737
2024
  var item = _iterator__ex2g4s.v();
1738
- var methodName = firstToLower(this, item.ep_1.l1());
1739
- var tmp$ret$0 = import_0('./client/' + item.ep_1.l1() + 'Client', methodName + 'Client');
2025
+ var methodName = firstToLower(this, item.ct_1.m1());
2026
+ var tmp$ret$0 = import_0('./client/' + item.ct_1.m1() + 'Client', methodName + 'Client');
1740
2027
  destination.x(tmp$ret$0);
1741
2028
  }
1742
2029
  var clientImports = destination;
1743
2030
  var spreadEntries = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emitClient$lambda(this));
1744
2031
  var code = trimMargin('\n |export const client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n |' + spreadEntries + '\n |})\n ');
1745
- var tmp = Companion_getInstance().f1h('Client');
2032
+ var tmp = Companion_getInstance().u1k('Client');
1746
2033
  // Inline function 'kotlin.collections.buildList' call
1747
2034
  // Inline function 'kotlin.collections.buildListInternal' call
1748
2035
  // Inline function 'kotlin.apply' call
@@ -1750,15 +2037,15 @@ protoOf(TypeScriptIrEmitter).o1u = function (endpoints, logger) {
1750
2037
  this_0.x(import_0('./Wirespec', 'Wirespec'));
1751
2038
  this_0.e1(clientImports);
1752
2039
  this_0.x(new RawElement(code));
1753
- var tmp$ret$6 = this_0.o5();
2040
+ var tmp$ret$6 = this_0.p5();
1754
2041
  return new File(tmp, tmp$ret$6);
1755
2042
  };
1756
2043
  function transformPatternSwitchToValueSwitch() {
1757
2044
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1758
2045
  // Inline function 'kotlin.apply' call
1759
2046
  var this_0 = new TransformerBuilder();
1760
- this_0.e1u(transformPatternSwitchToValueSwitch$lambda);
1761
- return this_0.d1h();
2047
+ this_0.s1y(transformPatternSwitchToValueSwitch$lambda);
2048
+ return this_0.e1m();
1762
2049
  }
1763
2050
  function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
1764
2051
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1766,19 +2053,19 @@ function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
1766
2053
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1767
2054
  var tmp = scope;
1768
2055
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1769
- var this_0 = scope.x1t_1;
2056
+ var this_0 = scope.l1y_1;
1770
2057
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1771
2058
  // Inline function 'kotlin.apply' call
1772
2059
  var this_1 = new TransformerBuilder();
1773
- this_1.c1h(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
1774
- var tmp$ret$2 = this_1.d1h();
1775
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1776
- var tmp_0 = scope.x1t_1;
2060
+ this_1.d1m(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
2061
+ var tmp$ret$2 = this_1.e1m();
2062
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
2063
+ var tmp_0 = scope.l1y_1;
1777
2064
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1778
2065
  }
1779
2066
  function buildApiConst(endpoint) {
1780
2067
  // Inline function 'kotlin.text.replaceFirstChar' call
1781
- var this_0 = endpoint.ep_1.l1();
2068
+ var this_0 = endpoint.ct_1.m1();
1782
2069
  var tmp;
1783
2070
  // Inline function 'kotlin.text.isNotEmpty' call
1784
2071
  if (charSequenceLength(this_0) > 0) {
@@ -1792,8 +2079,8 @@ function buildApiConst(endpoint) {
1792
2079
  tmp = this_0;
1793
2080
  }
1794
2081
  var apiName = tmp;
1795
- var method = endpoint.fp_1.a3_1;
1796
- var pathString = joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
2082
+ var method = endpoint.dt_1.b3_1;
2083
+ var pathString = joinToString(endpoint.et_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
1797
2084
  return raw(trimMargin('\n |export const client:Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n | from: (it) => fromRawResponse(serialization, it),\n | to: (it) => toRawRequest(serialization, it)\n |})\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n | from: (it) => fromRawRequest(serialization, it),\n | to: (it) => toRawResponse(serialization, it)\n |})\n |export const api = {\n | name: "' + apiName + '",\n | method: "' + method + '",\n | path: "' + pathString + '",\n | server,\n | client\n |} as const\n '));
1798
2085
  }
1799
2086
  function bindCallToRequestParams(_this__u8e3s4) {
@@ -1802,21 +2089,21 @@ function bindCallToRequestParams(_this__u8e3s4) {
1802
2089
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1803
2090
  var tmp = scope;
1804
2091
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1805
- var this_0 = scope.x1t_1;
2092
+ var this_0 = scope.l1y_1;
1806
2093
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1807
2094
  // Inline function 'kotlin.apply' call
1808
2095
  var this_1 = new TransformerBuilder();
1809
- this_1.c1h(bindCallToRequestParams$lambda);
1810
- var tmp$ret$2 = this_1.d1h();
1811
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1812
- var tmp_0 = scope.x1t_1;
2096
+ this_1.d1m(bindCallToRequestParams$lambda);
2097
+ var tmp$ret$2 = this_1.e1m();
2098
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
2099
+ var tmp_0 = scope.l1y_1;
1813
2100
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1814
2101
  }
1815
2102
  function stripTrailingSpaceFromErrorMessage(_this__u8e3s4) {
1816
2103
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1817
2104
  var scope = new TransformScope(_this__u8e3s4);
1818
- scope.e1u(stripTrailingSpaceFromErrorMessage$lambda);
1819
- var tmp = scope.x1t_1;
2105
+ scope.s1y(stripTrailingSpaceFromErrorMessage$lambda);
2106
+ var tmp = scope.l1y_1;
1820
2107
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1821
2108
  }
1822
2109
  function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
@@ -1824,7 +2111,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1824
2111
  if (!(stmt instanceof Switch)) {
1825
2112
  tmp = true;
1826
2113
  } else {
1827
- var tmp0 = stmt.z1o_1;
2114
+ var tmp0 = stmt.n1t_1;
1828
2115
  var tmp$ret$0;
1829
2116
  $l$block_0: {
1830
2117
  // Inline function 'kotlin.collections.none' call
@@ -1841,7 +2128,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1841
2128
  var _iterator__ex2g4s = tmp0.t();
1842
2129
  while (_iterator__ex2g4s.u()) {
1843
2130
  var element = _iterator__ex2g4s.v();
1844
- if (!(element.g1p_1 == null)) {
2131
+ if (!(element.u1t_1 == null)) {
1845
2132
  tmp$ret$0 = false;
1846
2133
  break $l$block_0;
1847
2134
  }
@@ -1852,11 +2139,11 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1852
2139
  }
1853
2140
  if (tmp)
1854
2141
  return transformChildren(stmt, tr);
1855
- var tmp0_safe_receiver = stmt.b1p_1;
1856
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1l();
2142
+ var tmp0_safe_receiver = stmt.p1t_1;
2143
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1p();
1857
2144
  var varName = tmp1_elvis_lhs == null ? 'r' : tmp1_elvis_lhs;
1858
2145
  // Inline function 'kotlin.collections.map' call
1859
- var this_0 = stmt.z1o_1;
2146
+ var this_0 = stmt.n1t_1;
1860
2147
  // Inline function 'kotlin.collections.mapTo' call
1861
2148
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1862
2149
  var _iterator__ex2g4s_0 = this_0.t();
@@ -1864,59 +2151,58 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1864
2151
  var item = _iterator__ex2g4s_0.v();
1865
2152
  var tmp$ret$5;
1866
2153
  $l$block_1: {
1867
- var tmp_1 = item.g1p_1;
2154
+ var tmp_1 = item.u1t_1;
1868
2155
  var tmp0_safe_receiver_0 = tmp_1 instanceof Custom_0 ? tmp_1 : null;
1869
- var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.q1h_1;
1870
- var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h1h();
1871
- var tmp3_safe_receiver = typeName == null ? null : substringAfterLast(typeName, '.');
1872
- var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : removePrefix(tmp3_safe_receiver, 'Response');
1873
- var statusNum = tmp4_safe_receiver == null ? null : toIntOrNull(tmp4_safe_receiver);
2156
+ var typeName = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.n1m_1;
2157
+ var tmp2_safe_receiver = typeName == null ? null : substringAfterLast(typeName, '.');
2158
+ var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : removePrefix(tmp2_safe_receiver, 'Response');
2159
+ var statusNum = tmp3_safe_receiver == null ? null : toIntOrNull(tmp3_safe_receiver);
1874
2160
  if (statusNum == null || typeName == null) {
1875
2161
  // Inline function 'kotlin.collections.map' call
1876
- var this_1 = item.f1p_1;
2162
+ var this_1 = item.t1t_1;
1877
2163
  // Inline function 'kotlin.collections.mapTo' call
1878
2164
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1879
2165
  var _iterator__ex2g4s_1 = this_1.t();
1880
2166
  while (_iterator__ex2g4s_1.u()) {
1881
2167
  var item_0 = _iterator__ex2g4s_1.v();
1882
- var tmp$ret$2 = tr.r1t(item_0);
2168
+ var tmp$ret$2 = tr.f1y(item_0);
1883
2169
  destination_0.x(tmp$ret$2);
1884
2170
  }
1885
- tmp$ret$5 = item.i1p(VOID, destination_0);
2171
+ tmp$ret$5 = item.w1t(VOID, destination_0);
1886
2172
  break $l$block_1;
1887
2173
  }
1888
- var exprCode = TypeScriptGenerator_getInstance().v1u(tr.s1t(stmt.y1o_1));
1889
- var castAssignment = new Assignment(Companion_getInstance().f1h(varName), new RawExpression(exprCode + ' as ' + typeName), false);
2174
+ var exprCode = TypeScriptGenerator_getInstance().n1z(tr.g1y(stmt.m1t_1));
2175
+ var castAssignment = new Assignment(Companion_getInstance().u1k(varName), new RawExpression(exprCode + ' as ' + typeName), false);
1890
2176
  var tmp_2 = new Literal_0(statusNum, new Integer_0());
1891
- var tmp_3 = listOf(castAssignment);
2177
+ var tmp_3 = listOf_0(castAssignment);
1892
2178
  // Inline function 'kotlin.collections.map' call
1893
- var this_2 = item.f1p_1;
2179
+ var this_2 = item.t1t_1;
1894
2180
  // Inline function 'kotlin.collections.mapTo' call
1895
2181
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
1896
2182
  var _iterator__ex2g4s_2 = this_2.t();
1897
2183
  while (_iterator__ex2g4s_2.u()) {
1898
2184
  var item_1 = _iterator__ex2g4s_2.v();
1899
- var tmp$ret$6 = tr.r1t(item_1);
2185
+ var tmp$ret$6 = tr.f1y(item_1);
1900
2186
  destination_1.x(tmp$ret$6);
1901
2187
  }
1902
- tmp$ret$5 = new Case(tmp_2, plus_0(tmp_3, destination_1), null);
2188
+ tmp$ret$5 = new Case(tmp_2, plus_1(tmp_3, destination_1), null);
1903
2189
  }
1904
2190
  destination.x(tmp$ret$5);
1905
2191
  }
1906
2192
  var transformedCases = destination;
1907
- var tmp_4 = new FieldCall(tr.s1t(stmt.y1o_1), Companion_getInstance().f1h('status'));
1908
- var tmp2_safe_receiver = stmt.a1p_1;
2193
+ var tmp_4 = new FieldCall(tr.g1y(stmt.m1t_1), Companion_getInstance().u1k('status'));
2194
+ var tmp2_safe_receiver_0 = stmt.o1t_1;
1909
2195
  var tmp_5;
1910
- if (tmp2_safe_receiver == null) {
2196
+ if (tmp2_safe_receiver_0 == null) {
1911
2197
  tmp_5 = null;
1912
2198
  } else {
1913
2199
  // Inline function 'kotlin.collections.map' call
1914
2200
  // Inline function 'kotlin.collections.mapTo' call
1915
- var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver, 10));
1916
- var _iterator__ex2g4s_3 = tmp2_safe_receiver.t();
2201
+ var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver_0, 10));
2202
+ var _iterator__ex2g4s_3 = tmp2_safe_receiver_0.t();
1917
2203
  while (_iterator__ex2g4s_3.u()) {
1918
2204
  var item_2 = _iterator__ex2g4s_3.v();
1919
- var tmp$ret$11 = tr.r1t(item_2);
2205
+ var tmp$ret$11 = tr.f1y(item_2);
1920
2206
  destination_2.x(tmp$ret$11);
1921
2207
  }
1922
2208
  tmp_5 = destination_2;
@@ -1930,43 +2216,42 @@ function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
1930
2216
  var tmp_1;
1931
2217
  var tmp_2;
1932
2218
  if (s instanceof FunctionCall) {
1933
- tmp_2 = s.b1m_1.equals(Companion_getInstance().f1h('validate'));
2219
+ tmp_2 = s.f1q_1.equals(Companion_getInstance().u1k('validate'));
1934
2220
  } else {
1935
2221
  tmp_2 = false;
1936
2222
  }
1937
2223
  if (tmp_2) {
1938
- tmp_1 = !(s.z1l_1 == null);
2224
+ tmp_1 = !(s.d1q_1 == null);
1939
2225
  } else {
1940
2226
  tmp_1 = false;
1941
2227
  }
1942
2228
  if (tmp_1) {
1943
2229
  // Inline function 'kotlin.collections.isNotEmpty' call
1944
- tmp_0 = !s.a1m_1.r();
2230
+ tmp_0 = !s.e1q_1.r();
1945
2231
  } else {
1946
2232
  tmp_0 = false;
1947
2233
  }
1948
2234
  if (tmp_0) {
1949
- var tmp_3 = first(s.a1m_1);
2235
+ var tmp_3 = first(s.e1q_1);
1950
2236
  var tmp0_safe_receiver = tmp_3 instanceof Custom_0 ? tmp_3 : null;
1951
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1h_1;
1952
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h1h();
1953
- var tn = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
1954
- tmp = new FunctionCall(VOID, VOID, Companion_getInstance().f1h('validate' + tn), mapOf(to(Companion_getInstance().f1h('obj'), t.s1t(ensureNotNull(s.z1l_1)))));
2237
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1m_1;
2238
+ var tn = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
2239
+ tmp = new FunctionCall(VOID, VOID, Companion_getInstance().u1k('validate' + tn), mapOf(to(Companion_getInstance().u1k('obj'), t.g1y(ensureNotNull(s.d1q_1)))));
1955
2240
  } else {
1956
2241
  var tmp_4;
1957
2242
  var tmp_5;
1958
2243
  if (s instanceof FieldCall) {
1959
- tmp_5 = s.j1p_1 == null;
2244
+ tmp_5 = s.x1t_1 == null;
1960
2245
  } else {
1961
2246
  tmp_5 = false;
1962
2247
  }
1963
2248
  if (tmp_5) {
1964
- tmp_4 = $fieldNames.u1(s.k1p_1.s1l());
2249
+ tmp_4 = $fieldNames.v1(s.y1t_1.v1p());
1965
2250
  } else {
1966
2251
  tmp_4 = false;
1967
2252
  }
1968
2253
  if (tmp_4) {
1969
- tmp = new FieldCall(new VariableReference(Companion_getInstance().f1h('obj')), s.k1p_1);
2254
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().u1k('obj')), s.y1t_1);
1970
2255
  } else {
1971
2256
  tmp = transformChildren(s, t);
1972
2257
  }
@@ -1980,15 +2265,15 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
1980
2265
  if (element instanceof Function) {
1981
2266
  var tmp$ret$0;
1982
2267
  $l$block: {
1983
- if (!element.t1j_1.equals(Companion_getInstance().f1h('validate'))) {
2268
+ if (!element.j1o_1.equals(Companion_getInstance().u1k('validate'))) {
1984
2269
  tmp$ret$0 = element;
1985
2270
  break $l$block;
1986
2271
  }
1987
2272
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1988
- var this_0 = element.b1k(Companion_getInstance().f1h('validate' + $typeName), VOID, listOf(new Parameter(Companion_getInstance().f1h('obj'), Custom_init_$Create$($typeName))));
2273
+ var this_0 = element.r1o(Companion_getInstance().u1k('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().u1k('obj'), new Custom_0($typeName))));
1989
2274
  var scope = new TransformScope(this_0);
1990
- scope.g1u(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
1991
- var tmp_0 = scope.x1t_1;
2275
+ scope.u1y(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
2276
+ var tmp_0 = scope.l1y_1;
1992
2277
  tmp$ret$0 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1993
2278
  }
1994
2279
  tmp = tmp$ret$0;
@@ -2002,10 +2287,10 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
2002
2287
  function buildApiConst$lambda(it) {
2003
2288
  var tmp;
2004
2289
  if (it instanceof Literal) {
2005
- tmp = it.hq_1;
2290
+ tmp = it.fu_1;
2006
2291
  } else {
2007
2292
  if (it instanceof Param) {
2008
- tmp = '{' + it.lp_1.l1() + '}';
2293
+ tmp = '{' + it.jt_1.m1() + '}';
2009
2294
  } else {
2010
2295
  noWhenBranchMatchedException();
2011
2296
  }
@@ -2017,23 +2302,23 @@ function bindCallToRequestParams$lambda(element, transformer) {
2017
2302
  if (element instanceof Interface) {
2018
2303
  var tmp$ret$0;
2019
2304
  $l$block: {
2020
- if (!element.k1n_1.equals(Companion_getInstance().f1h('Call'))) {
2305
+ if (!element.t1r_1.equals(Companion_getInstance().u1k('Call'))) {
2021
2306
  tmp$ret$0 = element;
2022
2307
  break $l$block;
2023
2308
  }
2024
2309
  // Inline function 'kotlin.collections.map' call
2025
- var this_0 = element.l1n_1;
2310
+ var this_0 = element.u1r_1;
2026
2311
  // Inline function 'kotlin.collections.mapTo' call
2027
2312
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2028
2313
  var _iterator__ex2g4s = this_0.t();
2029
2314
  while (_iterator__ex2g4s.u()) {
2030
2315
  var item = _iterator__ex2g4s.v();
2031
2316
  var tmp0_safe_receiver = item instanceof Function ? item : null;
2032
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1k(VOID, VOID, listOf(new Parameter(Companion_getInstance().f1h('params'), Custom_init_$Create$('RequestParams'))));
2317
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1o(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().u1k('params'), new Custom_0('RequestParams'))));
2033
2318
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
2034
2319
  destination.x(tmp$ret$1);
2035
2320
  }
2036
- tmp$ret$0 = element.r1n(VOID, destination);
2321
+ tmp$ret$0 = element.a1s(VOID, destination);
2037
2322
  }
2038
2323
  tmp = tmp$ret$0;
2039
2324
  } else {
@@ -2045,7 +2330,7 @@ function bindCallToRequestParams$lambda(element, transformer) {
2045
2330
  function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2046
2331
  var tmp;
2047
2332
  if (stmt instanceof Switch) {
2048
- var tmp1_safe_receiver = stmt.a1p_1;
2333
+ var tmp1_safe_receiver = stmt.o1t_1;
2049
2334
  var tmp_0;
2050
2335
  if (tmp1_safe_receiver == null) {
2051
2336
  tmp_0 = null;
@@ -2067,7 +2352,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2067
2352
  tmp_1 = tmp0_elvis_lhs;
2068
2353
  }
2069
2354
  var errorStmt = tmp_1;
2070
- var tmp_2 = errorStmt.n1p_1;
2355
+ var tmp_2 = errorStmt.b1u_1;
2071
2356
  var tmp1_elvis_lhs = tmp_2 instanceof BinaryOp ? tmp_2 : null;
2072
2357
  var tmp_3;
2073
2358
  if (tmp1_elvis_lhs == null) {
@@ -2077,7 +2362,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2077
2362
  tmp_3 = tmp1_elvis_lhs;
2078
2363
  }
2079
2364
  var binary = tmp_3;
2080
- var tmp_4 = binary.o1p_1;
2365
+ var tmp_4 = binary.c1u_1;
2081
2366
  var tmp2_elvis_lhs = tmp_4 instanceof Literal_0 ? tmp_4 : null;
2082
2367
  var tmp_5;
2083
2368
  if (tmp2_elvis_lhs == null) {
@@ -2087,13 +2372,13 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2087
2372
  tmp_5 = tmp2_elvis_lhs;
2088
2373
  }
2089
2374
  var literal = tmp_5;
2090
- tmp$ret$0 = new ErrorStatement(new Literal_0(trimEnd(toString(literal.q1o_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.r1o_1));
2375
+ tmp$ret$0 = new ErrorStatement(new Literal_0(trimEnd(toString(literal.z1s_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.a1t_1));
2091
2376
  }
2092
2377
  destination.x(tmp$ret$0);
2093
2378
  }
2094
2379
  tmp_0 = destination;
2095
2380
  }
2096
- tmp = transformChildren(stmt.d1p(VOID, VOID, tmp_0), transformer);
2381
+ tmp = transformChildren(stmt.r1t(VOID, VOID, tmp_0), transformer);
2097
2382
  } else {
2098
2383
  tmp = transformChildren(stmt, transformer);
2099
2384
  }
@@ -2103,8 +2388,8 @@ function TypeScriptRefinedTypeDefinitionEmitter() {
2103
2388
  }
2104
2389
  function TypeScriptShared() {
2105
2390
  TypeScriptShared_instance = this;
2106
- this.c1z_1 = 'community.flock.wirespec';
2107
- this.d1z_1 = trimMargin('\n |export namespace Wirespec {\n |' + Spacer_instance.toString() + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + Spacer_instance.toString() + 'export type RawRequest = { method: Method, path: string[], queries: Record<string, string>, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type RawResponse = { status: number, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type Request<T> = { path: Record<string, unknown>, method: Method, queries?: Record<string, unknown>, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Response<T> = { status:number, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Serialization = { serialize: <T>(type: T) => string; deserialize: <T>(raw: string | undefined) => T }\n |' + Spacer_instance.toString() + 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { to: (request: REQ) => RawRequest; from: (response: RawResponse) => RES }\n |' + Spacer_instance.toString() + 'export type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { from: (request: RawRequest) => REQ; to: (response: RES) => RawResponse }\n |' + Spacer_instance.toString() + 'export type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = { name: string; method: Method, path: string, client: Client<REQ, RES>; server: Server<REQ, RES> }\n |}\n ');
2391
+ this.v23_1 = 'community.flock.wirespec';
2392
+ this.w23_1 = trimMargin('\n |export namespace Wirespec {\n |' + Spacer_instance.toString() + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + Spacer_instance.toString() + 'export type RawRequest = { method: Method, path: string[], queries: Record<string, string>, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type RawResponse = { status: number, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type Request<T> = { path: Record<string, unknown>, method: Method, queries?: Record<string, unknown>, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Response<T> = { status:number, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Serialization = { serialize: <T>(type: T) => string; deserialize: <T>(raw: string | undefined) => T }\n |' + Spacer_instance.toString() + 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { to: (request: REQ) => RawRequest; from: (response: RawResponse) => RES }\n |' + Spacer_instance.toString() + 'export type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { from: (request: RawRequest) => REQ; to: (response: RES) => RawResponse }\n |' + Spacer_instance.toString() + 'export type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = { name: string; method: Method, path: string, client: Client<REQ, RES>; server: Server<REQ, RES> }\n |}\n ');
2108
2393
  }
2109
2394
  protoOf(TypeScriptShared).toString = function () {
2110
2395
  return 'TypeScriptShared';
@@ -2126,7 +2411,7 @@ function TypeScriptShared_getInstance() {
2126
2411
  return TypeScriptShared_instance;
2127
2412
  }
2128
2413
  function TypeScriptTypeDefinitionEmitter$sanitizeSymbol$lambda(it) {
2129
- return isLetterOrDigit(it.h1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).u1(it);
2414
+ return isLetterOrDigit(it.h1_1) || listOf_0(new Char(_Char___init__impl__6a9atx(95))).v1(it);
2130
2415
  }
2131
2416
  function TypeScriptTypeDefinitionEmitter$emit$lambda(it) {
2132
2417
  // Inline function 'kotlin.text.trimStart' call
@@ -2134,28 +2419,29 @@ function TypeScriptTypeDefinitionEmitter$emit$lambda(it) {
2134
2419
  }
2135
2420
  function TypeScriptTypeDefinitionEmitter$emit$lambda_0(this$0) {
2136
2421
  return function (it) {
2137
- return this$0.wp(it);
2422
+ return this$0.ut(it);
2138
2423
  };
2139
2424
  }
2140
2425
  function TypeScriptTypeDefinitionEmitter() {
2141
2426
  }
2142
2427
  //region block: post-declaration
2143
- protoOf(TypeScriptEmitter).up = emit_3;
2144
- protoOf(TypeScriptEmitter).vp = emit_6;
2145
- protoOf(TypeScriptEmitter).wp = emit_7;
2146
- protoOf(TypeScriptEmitter).xp = emit_4;
2147
- protoOf(TypeScriptEmitter).yp = emit_5;
2148
- protoOf(TypeScriptEmitter).ir = emit_10;
2149
- protoOf(TypeScriptEmitter).dr = emit_9;
2150
- protoOf(TypeScriptEmitter).jr = emit_8;
2151
- protoOf(TypeScriptEmitter).wq = emit_2;
2152
- protoOf(TypeScriptEmitter).kr = emitValidator;
2153
- protoOf(TypeScriptEmitter).x1y = sanitizeSymbol;
2154
- protoOf(TypeScriptEmitter).p1v = sanitizeSymbol_0;
2155
- protoOf(TypeScriptEmitter).y1y = emitPrimitive;
2156
- protoOf(TypeScriptEmitter).w1y = emitClient;
2157
- protoOf(TypeScriptEmitter).aq = emitClientEndpointRequest;
2158
- protoOf(TypeScriptIrEmitter).m1u = emit_1;
2428
+ protoOf(TypeScriptEmitter).st = emit_3;
2429
+ protoOf(TypeScriptEmitter).tt = emit_6;
2430
+ protoOf(TypeScriptEmitter).ut = emit_7;
2431
+ protoOf(TypeScriptEmitter).vt = emit_4;
2432
+ protoOf(TypeScriptEmitter).wt = emit_5;
2433
+ protoOf(TypeScriptEmitter).gv = emit_10;
2434
+ protoOf(TypeScriptEmitter).bv = emit_9;
2435
+ protoOf(TypeScriptEmitter).hv = emit_8;
2436
+ protoOf(TypeScriptEmitter).uu = emit_2;
2437
+ protoOf(TypeScriptEmitter).iv = emitValidator;
2438
+ protoOf(TypeScriptEmitter).q23 = sanitizeSymbol;
2439
+ protoOf(TypeScriptEmitter).h20 = sanitizeSymbol_0;
2440
+ protoOf(TypeScriptEmitter).r23 = emitPrimitive;
2441
+ protoOf(TypeScriptEmitter).p23 = emitClient;
2442
+ protoOf(TypeScriptEmitter).yt = emitClientEndpointRequest;
2443
+ protoOf(TypeScriptIrEmitter).a1z = emit_1;
2444
+ protoOf(TypeScriptIrEmitter).d1z = beforeGenerate;
2159
2445
  //endregion
2160
2446
  //region block: exports
2161
2447
  export {