@flock/wirespec 0.19.0-RC.2 → 0.19.0

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 (83) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-core.mjs +163 -163
  3. package/clikt-clikt-mordant.mjs +80 -80
  4. package/clikt-clikt-mordant.mjs.map +1 -1
  5. package/clikt-clikt.mjs +1566 -1566
  6. package/clikt-clikt.mjs.map +1 -1
  7. package/colormath-root-colormath.mjs +444 -444
  8. package/kotlin-kotlin-stdlib.mjs +2571 -5539
  9. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  10. package/kotlin-openapi-bindings.mjs +20696 -6702
  11. package/kotlin-openapi-bindings.mjs.map +1 -1
  12. package/kotlin-rgxgen.mjs +1818 -1818
  13. package/kotlinx-io-kotlinx-io-core.mjs +453 -453
  14. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  15. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2224 -2061
  16. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  17. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1956 -1481
  18. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  19. package/mordant-mordant.mjs +1361 -1361
  20. package/package.json +14 -9
  21. package/wirespec-lsp.mjs +7 -0
  22. package/wirespec-msw.d.ts +53 -0
  23. package/wirespec-msw.mjs +83 -0
  24. package/wirespec-src-compiler-core.mjs +1760 -1696
  25. package/wirespec-src-compiler-core.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-java.mjs +461 -425
  27. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-kotlin.mjs +408 -309
  29. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-python.mjs +382 -383
  31. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  32. package/wirespec-src-compiler-emitters-rust.mjs +448 -425
  33. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  34. package/wirespec-src-compiler-emitters-scala.mjs +171 -172
  35. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  36. package/wirespec-src-compiler-emitters-typescript.mjs +508 -477
  37. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  38. package/wirespec-src-compiler-emitters-wirespec.mjs +83 -83
  39. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  40. package/wirespec-src-compiler-ir.mjs +3869 -3919
  41. package/wirespec-src-compiler-ir.mjs.map +1 -1
  42. package/wirespec-src-compiler-lib.mjs +418 -418
  43. package/wirespec-src-compiler-lib.mjs.map +1 -1
  44. package/wirespec-src-converter-avro.mjs +512 -512
  45. package/wirespec-src-converter-avro.mjs.map +1 -1
  46. package/wirespec-src-converter-openapi.mjs +1596 -1522
  47. package/wirespec-src-converter-openapi.mjs.map +1 -1
  48. package/wirespec-src-ide-lsp.mjs +4928 -0
  49. package/wirespec-src-ide-lsp.mjs.map +1 -0
  50. package/wirespec-src-plugin-arguments.mjs +185 -185
  51. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  52. package/wirespec-src-plugin-cli.mjs +106 -106
  53. package/wirespec-src-plugin-npm.d.mts +2 -11
  54. package/wirespec-src-plugin-npm.mjs +47 -42
  55. package/wirespec-src-plugin-npm.mjs.map +1 -1
  56. package/wirespec-src-tools-generator.mjs +53 -53
  57. package/wirespec-src-tools-generator.mjs.map +1 -1
  58. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +0 -4
  59. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +0 -1
  60. package/kotest-kotest-assertions-kotest-assertions-core.mjs +0 -4
  61. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +0 -1
  62. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +0 -4
  63. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +0 -1
  64. package/kotest-kotest-common.mjs +0 -56
  65. package/kotest-kotest-common.mjs.map +0 -1
  66. package/kotest-kotest-framework-kotest-framework-engine.mjs +0 -4
  67. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +0 -1
  68. package/kotest-kotest-property-kotest-property-datetime.mjs +0 -4
  69. package/kotest-kotest-property-kotest-property-datetime.mjs.map +0 -1
  70. package/kotest-kotest-property.mjs +0 -3230
  71. package/kotest-kotest-property.mjs.map +0 -1
  72. package/kotest-property-arbs.mjs +0 -482
  73. package/kotest-property-arbs.mjs.map +0 -1
  74. package/kotlinx-coroutines-test.mjs +0 -4
  75. package/kotlinx-coroutines-test.mjs.map +0 -1
  76. package/wirespec-generator.d.ts +0 -52
  77. package/wirespec-generator.mjs +0 -9
  78. package/wirespec-src-integration-kotest.mjs +0 -1537
  79. package/wirespec-src-integration-kotest.mjs.map +0 -1
  80. package/xmlutil-core.mjs +0 -4
  81. package/xmlutil-core.mjs.map +0 -1
  82. package/xmlutil-serialization.mjs +0 -4
  83. package/xmlutil-serialization.mjs.map +0 -1
@@ -146,6 +146,7 @@ import {
146
146
  RawExpression2bo7ldfrptjia as RawExpression,
147
147
  FunctionCall30872kpnbr7op as FunctionCall,
148
148
  transformChildren3n5cjwmxlhwx9 as transformChildren_1,
149
+ Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
149
150
  Custom2si7lto3wompr as Custom_0,
150
151
  String_instance3uxvo48ki208u as String_instance,
151
152
  Literal50s1y3607cdv as Literal_0,
@@ -193,11 +194,11 @@ var imul = Math.imul;
193
194
  //endregion
194
195
  //region block: pre-declaration
195
196
  function emit_2(identifier) {
196
- return '"' + identifier.n1() + '"';
197
+ return '"' + identifier.l1() + '"';
197
198
  }
198
199
  initMetadataForInterface(TypeScriptIdentifierEmitter, 'TypeScriptIdentifierEmitter');
199
200
  function sanitizeSymbol(_this__u8e3s4) {
200
- return this.z20(_this__u8e3s4.n1());
201
+ return this.d1x(_this__u8e3s4.l1());
201
202
  }
202
203
  function sanitizeSymbol_0(_this__u8e3s4) {
203
204
  var tmp = asSequence_0(_this__u8e3s4);
@@ -211,7 +212,7 @@ function emit_3(type, module_0) {
211
212
  var _iterator__ex2g4s = this_0.t();
212
213
  while (_iterator__ex2g4s.u()) {
213
214
  var e = _iterator__ex2g4s.v();
214
- var key = e.az_1;
215
+ var key = e.bv_1;
215
216
  if (set.x(key)) {
216
217
  list.x(e);
217
218
  }
@@ -222,19 +223,19 @@ function emit_3(type, module_0) {
222
223
  var _iterator__ex2g4s_0 = list.t();
223
224
  while (_iterator__ex2g4s_0.u()) {
224
225
  var item = _iterator__ex2g4s_0.v();
225
- var tmp$ret$2 = 'import {' + item.az_1 + "} from './" + item.az_1 + "'";
226
+ var tmp$ret$2 = 'import {' + item.bv_1 + "} from './" + item.bv_1 + "'";
226
227
  destination.x(tmp$ret$2);
227
228
  }
228
229
  var tmp = destination;
229
- return trimMargin('\n |' + joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda) + '\n |export type ' + this.i24(type.lt_1) + ' = {\n |' + this.lu(type.mt_1) + '\n |}\n |\n ');
230
+ return trimMargin('\n |' + joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda) + '\n |export type ' + this.n20(type.lp_1) + ' = {\n |' + this.lq(type.mp_1) + '\n |}\n |\n ');
230
231
  }
231
232
  function emit_4(_this__u8e3s4) {
232
233
  var tmp;
233
234
  if (_this__u8e3s4 instanceof Dict) {
234
- tmp = 'Record<string, ' + this.nu(_this__u8e3s4.ss_1) + '>';
235
+ tmp = 'Record<string, ' + this.nq(_this__u8e3s4.so_1) + '>';
235
236
  } else {
236
237
  if (_this__u8e3s4 instanceof Iterable) {
237
- tmp = this.nu(_this__u8e3s4.ps_1) + '[]';
238
+ tmp = this.nq(_this__u8e3s4.po_1) + '[]';
238
239
  } else {
239
240
  if (_this__u8e3s4 instanceof Unit) {
240
241
  tmp = 'void';
@@ -243,10 +244,10 @@ function emit_4(_this__u8e3s4) {
243
244
  tmp = 'any';
244
245
  } else {
245
246
  if (_this__u8e3s4 instanceof Custom) {
246
- tmp = this.z20(_this__u8e3s4.az_1);
247
+ tmp = this.d1x(_this__u8e3s4.bv_1);
247
248
  } else {
248
249
  if (_this__u8e3s4 instanceof Primitive) {
249
- tmp = this.j24(_this__u8e3s4);
250
+ tmp = this.o20(_this__u8e3s4);
250
251
  } else {
251
252
  noWhenBranchMatchedException();
252
253
  }
@@ -256,10 +257,10 @@ function emit_4(_this__u8e3s4) {
256
257
  }
257
258
  }
258
259
  // Inline function 'kotlin.let' call
259
- return tmp + (_this__u8e3s4.sy() ? ' | undefined' : '');
260
+ return tmp + (_this__u8e3s4.tu() ? ' | undefined' : '');
260
261
  }
261
262
  function emitPrimitive(_this__u8e3s4) {
262
- var tmp0_subject = _this__u8e3s4.ez_1;
263
+ var tmp0_subject = _this__u8e3s4.fv_1;
263
264
  var tmp;
264
265
  if (tmp0_subject instanceof String_0) {
265
266
  tmp = 'string';
@@ -287,10 +288,10 @@ function emitPrimitive(_this__u8e3s4) {
287
288
  function emit_5(_this__u8e3s4) {
288
289
  var tmp;
289
290
  if (_this__u8e3s4 instanceof RegExp_0) {
290
- tmp = Spacer_instance.toString() + 'return ' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ox_1) + '.test(value);';
291
+ tmp = Spacer_instance.toString() + 'return ' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.pt_1) + '.test(value);';
291
292
  } else {
292
293
  if (_this__u8e3s4 instanceof Bound) {
293
- var tmp1_safe_receiver = _this__u8e3s4.ey_1;
294
+ var tmp1_safe_receiver = _this__u8e3s4.fu_1;
294
295
  var tmp_0;
295
296
  if (tmp1_safe_receiver == null) {
296
297
  tmp_0 = null;
@@ -299,7 +300,7 @@ function emit_5(_this__u8e3s4) {
299
300
  tmp_0 = tmp1_safe_receiver + ' < value';
300
301
  }
301
302
  var minCheck = tmp_0;
302
- var tmp2_safe_receiver = _this__u8e3s4.fy_1;
303
+ var tmp2_safe_receiver = _this__u8e3s4.gu_1;
303
304
  var tmp_1;
304
305
  if (tmp2_safe_receiver == null) {
305
306
  tmp_1 = null;
@@ -327,18 +328,18 @@ function emit_5(_this__u8e3s4) {
327
328
  return tmp;
328
329
  }
329
330
  function emit_6(_this__u8e3s4) {
330
- return joinToString(_this__u8e3s4.it_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda_0(this));
331
+ return joinToString(_this__u8e3s4.ip_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda_0(this));
331
332
  }
332
333
  function emit_7(_this__u8e3s4) {
333
- return Spacer_instance.toString() + this.mv(_this__u8e3s4.qt_1) + ': ' + this.nu(_this__u8e3s4.rt_1);
334
+ return Spacer_instance.toString() + this.nr(_this__u8e3s4.qp_1) + ': ' + this.nq(_this__u8e3s4.rp_1);
334
335
  }
335
336
  initMetadataForInterface(TypeScriptTypeDefinitionEmitter, 'TypeScriptTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, TypeScriptIdentifierEmitter]);
336
337
  function emitClient(ast) {
337
- var tmp = 'client.' + this.uu().dv_1;
338
- var tmp_0 = this.qu(ast);
338
+ var tmp = 'client.' + this.uq().dr_1;
339
+ var tmp_0 = this.qq(ast);
339
340
  var tmp_1 = joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda);
340
341
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
341
- var this_0 = ast.ru_1;
342
+ var this_0 = ast.rq_1;
342
343
  // Inline function 'kotlin.collections.flatMap' call
343
344
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
344
345
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -346,7 +347,7 @@ function emitClient(ast) {
346
347
  var _iterator__ex2g4s = tmp0.t();
347
348
  while (_iterator__ex2g4s.u()) {
348
349
  var element = _iterator__ex2g4s.v();
349
- var list = new NonEmptyList(element.tu_1);
350
+ var list = new NonEmptyList(element.tq_1);
350
351
  addAll(destination, list);
351
352
  }
352
353
  var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -366,47 +367,99 @@ function emitClient(ast) {
366
367
  var _iterator__ex2g4s_1 = destination_0.t();
367
368
  while (_iterator__ex2g4s_1.u()) {
368
369
  var e = _iterator__ex2g4s_1.v();
369
- var key = e.az_1;
370
+ var key = e.bv_1;
370
371
  if (set.x(key)) {
371
372
  list_1.x(e);
372
373
  }
373
374
  }
374
375
  var tmp_2 = list_1;
375
376
  var tmp_3 = joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda_0);
376
- var tmp_4 = this.qu(ast);
377
+ var tmp_4 = this.qq(ast);
377
378
  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 '));
378
379
  }
379
380
  initMetadataForInterface(TypeScriptClientEmitter, 'TypeScriptClientEmitter', VOID, VOID, [ClientEmitter, TypeScriptTypeDefinitionEmitter]);
380
381
  function emit_8(enum_0, module_0) {
381
- var tmp = this.i24(enum_0.wv_1);
382
- return 'export type ' + tmp + ' = ' + joinToString(enum_0.xv_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEnumDefinitionEmitter$emit$lambda) + '\n';
382
+ var tmp = this.n20(enum_0.xr_1);
383
+ return 'export type ' + tmp + ' = ' + joinToString(enum_0.yr_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEnumDefinitionEmitter$emit$lambda) + '\n';
383
384
  }
384
385
  initMetadataForInterface(TypeScriptEnumDefinitionEmitter, 'TypeScriptEnumDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
385
- function emit_9(refined) {
386
- return trimMargin('\n |export type ' + this.i24(refined.rv_1) + ' = ' + this.nu(refined.sv_1) + ';\n |export const validate' + refined.rv_1.n1() + ' = (value: ' + this.nu(refined.sv_1) + '): value is ' + this.i24(refined.rv_1) + ' => {\n |' + this.aw(refined) + '\n |}\n |\n ');
386
+ function emit_9(endpoint) {
387
+ // Inline function 'kotlin.collections.distinctBy' call
388
+ var this_0 = importReferences(endpoint);
389
+ var set = HashSet_init_$Create$();
390
+ var list = ArrayList_init_$Create$();
391
+ var _iterator__ex2g4s = this_0.t();
392
+ while (_iterator__ex2g4s.u()) {
393
+ var e = _iterator__ex2g4s.v();
394
+ var key = e.bv_1;
395
+ if (set.x(key)) {
396
+ list.x(e);
397
+ }
398
+ }
399
+ // Inline function 'kotlin.collections.map' call
400
+ // Inline function 'kotlin.collections.mapTo' call
401
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(list, 10));
402
+ var _iterator__ex2g4s_0 = list.t();
403
+ while (_iterator__ex2g4s_0.u()) {
404
+ var item = _iterator__ex2g4s_0.v();
405
+ var tmp$ret$2 = 'import {type ' + item.bv_1 + "} from '../model'";
406
+ destination.x(tmp$ret$2);
407
+ }
408
+ var tmp = destination;
409
+ var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda);
410
+ var tmp_1 = this.n20(endpoint.up_1);
411
+ var tmp_2 = get_pathParams(endpoint);
412
+ var tmp_3 = emitType(this, tmp_2, 'Path', TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this));
413
+ var tmp_4 = emitType(this, endpoint.xp_1, 'Queries', TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this));
414
+ var tmp_5 = emitType(this, endpoint.yp_1, 'Headers', TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this));
415
+ var tmp_6 = emitType_1(this, first(endpoint.zp_1), endpoint);
416
+ var tmp_7 = distinctByStatus(endpoint.aq_1);
417
+ var tmp_8 = joinToString(tmp_7, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this));
418
+ var tmp_9 = Spacer_instance.toString();
419
+ var tmp_10 = distinctByStatus(endpoint.aq_1);
420
+ var tmp_11 = joinToString(tmp_10, ' | ', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_4(this));
421
+ var tmp_12 = emitFunction_0(this, first(endpoint.zp_1), endpoint);
422
+ var tmp_13 = distinctByStatus(endpoint.aq_1);
423
+ var tmp_14 = joinToString(tmp_13, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_5(this));
424
+ var tmp_15 = Spacer_instance.toString();
425
+ var tmp_16 = Spacer_instance.hs(2);
426
+ var tmp_17 = emitHandleFunction(this, endpoint);
427
+ var tmp_18 = Spacer_instance.toString();
428
+ var tmp_19 = prependIndent(emitClient_0(this, endpoint), Spacer_instance.hs(1));
429
+ var tmp_20 = prependIndent(emitServer(this, endpoint), Spacer_instance.hs(1));
430
+ var tmp_21 = Spacer_instance.toString();
431
+ var tmp_22 = Spacer_instance.hs(2);
432
+ var tmp_23 = Companion_instance_0.fr(this.n20(endpoint.up_1));
433
+ var tmp_24 = Spacer_instance.hs(2);
434
+ var tmp_25 = Spacer_instance.hs(2);
435
+ 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.vp_1.a3_1 + '",\n |' + tmp_25 + 'path: "' + joinToString(endpoint.wp_1, '/', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_6(this)) + '",\n |' + Spacer_instance.hs(2) + 'server,\n |' + Spacer_instance.hs(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
436
+ }
437
+ initMetadataForInterface(TypeScriptEndpointDefinitionEmitter, 'TypeScriptEndpointDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
438
+ function emit_10(refined) {
439
+ return trimMargin('\n |export type ' + this.n20(refined.sr_1) + ' = ' + this.nq(refined.tr_1) + ';\n |export const validate' + refined.sr_1.l1() + ' = (value: ' + this.nq(refined.tr_1) + '): value is ' + this.n20(refined.sr_1) + ' => {\n |' + this.bs(refined) + '\n |}\n |\n ');
387
440
  }
388
441
  function emitValidator(_this__u8e3s4) {
389
442
  var defaultReturn = Spacer_instance.toString() + 'return true;';
390
- var type = _this__u8e3s4.sv_1.ez_1;
443
+ var type = _this__u8e3s4.tr_1.fv_1;
391
444
  var tmp;
392
445
  if (type instanceof Integer) {
393
- var tmp0_safe_receiver = type.jy_1;
394
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.ou(tmp0_safe_receiver);
446
+ var tmp0_safe_receiver = type.ku_1;
447
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.oq(tmp0_safe_receiver);
395
448
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
396
449
  } else {
397
450
  if (type instanceof Number_0) {
398
- var tmp2_safe_receiver = type.my_1;
399
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.ou(tmp2_safe_receiver);
451
+ var tmp2_safe_receiver = type.nu_1;
452
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.oq(tmp2_safe_receiver);
400
453
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
401
454
  } else {
402
455
  if (type instanceof String_0) {
403
- var tmp4_safe_receiver = type.gy_1;
456
+ var tmp4_safe_receiver = type.hu_1;
404
457
  var tmp_0;
405
458
  var tmp_1 = tmp4_safe_receiver;
406
459
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
407
460
  tmp_0 = null;
408
461
  } else {
409
- tmp_0 = this.ou(new RegExp_0(tmp4_safe_receiver));
462
+ tmp_0 = this.oq(new RegExp_0(tmp4_safe_receiver));
410
463
  }
411
464
  var tmp5_elvis_lhs = tmp_0;
412
465
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -426,59 +479,7 @@ function emitValidator(_this__u8e3s4) {
426
479
  return tmp;
427
480
  }
428
481
  initMetadataForInterface(TypeScriptRefinedTypeDefinitionEmitter, 'TypeScriptRefinedTypeDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
429
- function emit_10(endpoint) {
430
- // Inline function 'kotlin.collections.distinctBy' call
431
- var this_0 = importReferences(endpoint);
432
- var set = HashSet_init_$Create$();
433
- var list = ArrayList_init_$Create$();
434
- var _iterator__ex2g4s = this_0.t();
435
- while (_iterator__ex2g4s.u()) {
436
- var e = _iterator__ex2g4s.v();
437
- var key = e.az_1;
438
- if (set.x(key)) {
439
- list.x(e);
440
- }
441
- }
442
- // Inline function 'kotlin.collections.map' call
443
- // Inline function 'kotlin.collections.mapTo' call
444
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(list, 10));
445
- var _iterator__ex2g4s_0 = list.t();
446
- while (_iterator__ex2g4s_0.u()) {
447
- var item = _iterator__ex2g4s_0.v();
448
- var tmp$ret$2 = 'import {type ' + item.az_1 + "} from '../model'";
449
- destination.x(tmp$ret$2);
450
- }
451
- var tmp = destination;
452
- var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda);
453
- var tmp_1 = this.i24(endpoint.ut_1);
454
- var tmp_2 = get_pathParams(endpoint);
455
- var tmp_3 = emitType(this, tmp_2, 'Path', TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this));
456
- var tmp_4 = emitType(this, endpoint.xt_1, 'Queries', TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this));
457
- var tmp_5 = emitType(this, endpoint.yt_1, 'Headers', TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this));
458
- var tmp_6 = emitType_1(this, first(endpoint.zt_1), endpoint);
459
- var tmp_7 = distinctByStatus(endpoint.au_1);
460
- var tmp_8 = joinToString(tmp_7, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this));
461
- var tmp_9 = Spacer_instance.toString();
462
- var tmp_10 = distinctByStatus(endpoint.au_1);
463
- var tmp_11 = joinToString(tmp_10, ' | ', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_4(this));
464
- var tmp_12 = emitFunction_0(this, first(endpoint.zt_1), endpoint);
465
- var tmp_13 = distinctByStatus(endpoint.au_1);
466
- var tmp_14 = joinToString(tmp_13, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_5(this));
467
- var tmp_15 = Spacer_instance.toString();
468
- var tmp_16 = Spacer_instance.gw(2);
469
- var tmp_17 = emitHandleFunction(this, endpoint);
470
- var tmp_18 = Spacer_instance.toString();
471
- var tmp_19 = prependIndent(emitClient_0(this, endpoint), Spacer_instance.gw(1));
472
- var tmp_20 = prependIndent(emitServer(this, endpoint), Spacer_instance.gw(1));
473
- var tmp_21 = Spacer_instance.toString();
474
- var tmp_22 = Spacer_instance.gw(2);
475
- var tmp_23 = Companion_instance_0.fv(this.i24(endpoint.ut_1));
476
- var tmp_24 = Spacer_instance.gw(2);
477
- var tmp_25 = Spacer_instance.gw(2);
478
- 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.vt_1.g3_1 + '",\n |' + tmp_25 + 'path: "' + joinToString(endpoint.wt_1, '/', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_6(this)) + '",\n |' + Spacer_instance.gw(2) + 'server,\n |' + Spacer_instance.gw(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
479
- }
480
- initMetadataForInterface(TypeScriptEndpointDefinitionEmitter, 'TypeScriptEndpointDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
481
- initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptClientEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptRefinedTypeDefinitionEmitter, TypeScriptIdentifierEmitter, TypeScriptTypeDefinitionEmitter, TypeScriptEndpointDefinitionEmitter]);
482
+ initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptIdentifierEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptTypeDefinitionEmitter, TypeScriptEndpointDefinitionEmitter, TypeScriptRefinedTypeDefinitionEmitter, TypeScriptClientEmitter]);
482
483
  initMetadataForClass(EndpointParam, 'EndpointParam');
483
484
  initMetadataForCompanion(Companion);
484
485
  initMetadataForClass(TypeScriptIrEmitter, 'TypeScriptIrEmitter', TypeScriptIrEmitter, VOID, [IrEmitter]);
@@ -514,10 +515,10 @@ function emitClientInterface($this, _this__u8e3s4, endpoint) {
514
515
  return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
515
516
  }
516
517
  function emitFunction($this, endpoint, request) {
517
- var tmp = endpoint.ut_1.n1();
518
+ var tmp = endpoint.up_1.l1();
518
519
  var tmp_0 = emitClientInterface($this, request, endpoint);
519
520
  var tmp_1 = Spacer_instance.toString();
520
- var tmp_2 = endpoint.ut_1.n1();
521
+ var tmp_2 = endpoint.up_1.l1();
521
522
  // Inline function 'kotlin.takeIf' call
522
523
  var this_0 = paramList(request, endpoint);
523
524
  var tmp_3;
@@ -537,31 +538,31 @@ function emitFunction($this, endpoint, request) {
537
538
  // Inline function 'kotlin.text.orEmpty' call
538
539
  var tmp0_elvis_lhs = tmp_4;
539
540
  var tmp$ret$5 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
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.ut_1.n1() + '.client(serialization).to(req)\n |' + Spacer_instance.toString() + 'const rawResponse = await handler(rawRequest)\n |' + Spacer_instance.toString() + 'return ' + endpoint.ut_1.n1() + '.client(serialization).from(rawResponse)\n |},\n ');
541
+ 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.up_1.l1() + '.client(serialization).to(req)\n |' + Spacer_instance.toString() + 'const rawResponse = await handler(rawRequest)\n |' + Spacer_instance.toString() + 'return ' + endpoint.up_1.l1() + '.client(serialization).from(rawResponse)\n |},\n ');
541
542
  }
542
543
  function TypeScriptClientEmitter$emitClient$lambda(_destruct__k2r9zo) {
543
- var endpoint = _destruct__k2r9zo.pf();
544
- return 'import {' + endpoint.ut_1.n1() + '} from "./endpoint/' + endpoint.ut_1.n1() + '"';
544
+ var endpoint = _destruct__k2r9zo.ve();
545
+ return 'import {' + endpoint.up_1.l1() + '} from "./endpoint/' + endpoint.up_1.l1() + '"';
545
546
  }
546
547
  function TypeScriptClientEmitter$emitClient$lambda_0(it) {
547
- return 'import {type ' + it.az_1 + '} from "./model/' + it.az_1 + '"';
548
+ return 'import {type ' + it.bv_1 + '} from "./model/' + it.bv_1 + '"';
548
549
  }
549
550
  function TypeScriptClientEmitter$emitClient$lambda_1(this$0) {
550
551
  return function (_destruct__k2r9zo) {
551
- var endpoint = _destruct__k2r9zo.pf();
552
- var request = _destruct__k2r9zo.qf();
552
+ var endpoint = _destruct__k2r9zo.ve();
553
+ var request = _destruct__k2r9zo.we();
553
554
  return emitFunction(this$0, endpoint, request);
554
555
  };
555
556
  }
556
557
  function TypeScriptClientEmitter$emitClientInterface$lambda(this$0) {
557
558
  return function (it) {
558
- return this$0.mv(it.zu_1) + ': ' + this$0.nu(it.av_1);
559
+ return this$0.nr(it.zq_1) + ': ' + this$0.nq(it.ar_1);
559
560
  };
560
561
  }
561
562
  function TypeScriptClientEmitter() {
562
563
  }
563
564
  function TypeScriptEmitter$emit$lambda(it) {
564
- return 'export {' + it.lv().n1() + "} from './" + it.lv().n1() + "'";
565
+ return 'export {' + it.mr().l1() + "} from './" + it.mr().l1() + "'";
565
566
  }
566
567
  function TypeScriptEmitter$emit$lambda_0(it) {
567
568
  // Inline function 'kotlin.text.trimStart' call
@@ -569,36 +570,36 @@ function TypeScriptEmitter$emit$lambda_0(it) {
569
570
  }
570
571
  function TypeScriptEmitter$emit$lambda_1(this$0) {
571
572
  return function (it) {
572
- return this$0.nu(it);
573
+ return this$0.nq(it);
573
574
  };
574
575
  }
575
576
  function TypeScriptEmitter() {
576
577
  LanguageEmitter.call(this);
577
- this.k24_1 = FileExtension_TypeScript_getInstance();
578
- this.l24_1 = TypeScriptShared_getInstance();
579
- this.m24_1 = '//';
578
+ this.p20_1 = FileExtension_TypeScript_getInstance();
579
+ this.q20_1 = TypeScriptShared_getInstance();
580
+ this.r20_1 = '//';
580
581
  }
581
- protoOf(TypeScriptEmitter).uu = function () {
582
- return this.k24_1;
582
+ protoOf(TypeScriptEmitter).uq = function () {
583
+ return this.p20_1;
583
584
  };
584
- protoOf(TypeScriptEmitter).w20 = function () {
585
- return this.l24_1;
585
+ protoOf(TypeScriptEmitter).a1x = function () {
586
+ return this.q20_1;
586
587
  };
587
- protoOf(TypeScriptEmitter).vu = function () {
588
- return this.m24_1;
588
+ protoOf(TypeScriptEmitter).vq = function () {
589
+ return this.r20_1;
589
590
  };
590
- protoOf(TypeScriptEmitter).es = function (ast, logger) {
591
+ protoOf(TypeScriptEmitter).eo = function (ast, logger) {
591
592
  // Inline function 'kotlin.run' call
592
- var $this$run = protoOf(LanguageEmitter).es.call(this, ast, logger);
593
+ var $this$run = protoOf(LanguageEmitter).eo.call(this, ast, logger);
593
594
  var tmp;
594
595
  if (hasEndpoints(ast)) {
595
- tmp = NonEmptyList__plus_impl_xqmb9($this$run, this.h24(ast));
596
+ tmp = NonEmptyList__plus_impl_xqmb9($this$run, this.m20(ast));
596
597
  } else {
597
598
  tmp = $this$run;
598
599
  }
599
600
  var tmp_0 = tmp;
600
601
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
601
- var this_0 = ast.ru_1;
602
+ var this_0 = ast.rq_1;
602
603
  // Inline function 'kotlin.collections.flatMap' call
603
604
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
604
605
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -606,7 +607,7 @@ protoOf(TypeScriptEmitter).es = function (ast, logger) {
606
607
  var _iterator__ex2g4s = tmp0.t();
607
608
  while (_iterator__ex2g4s.u()) {
608
609
  var element = _iterator__ex2g4s.v();
609
- var list = new NonEmptyList(element.tu_1);
610
+ var list = new NonEmptyList(element.tq_1);
610
611
  addAll(destination, list);
611
612
  }
612
613
  var tmp$ret$5 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -619,11 +620,11 @@ protoOf(TypeScriptEmitter).es = function (ast, logger) {
619
620
  var element_0 = _iterator__ex2g4s_0.v();
620
621
  var key = namespace(element_0);
621
622
  // Inline function 'kotlin.collections.getOrPut' call
622
- var value = destination_0.v2(key);
623
+ var value = destination_0.p2(key);
623
624
  var tmp_1;
624
625
  if (value == null) {
625
626
  var answer = ArrayList_init_$Create$();
626
- destination_0.d3(key, answer);
627
+ destination_0.s2(key, answer);
627
628
  tmp_1 = answer;
628
629
  } else {
629
630
  tmp_1 = value;
@@ -633,33 +634,33 @@ protoOf(TypeScriptEmitter).es = function (ast, logger) {
633
634
  }
634
635
  // Inline function 'kotlin.collections.map' call
635
636
  // Inline function 'kotlin.collections.mapTo' call
636
- var destination_1 = ArrayList_init_$Create$_0(destination_0.b1());
637
+ var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
637
638
  // Inline function 'kotlin.collections.iterator' call
638
- var _iterator__ex2g4s_1 = destination_0.l1().t();
639
+ var _iterator__ex2g4s_1 = destination_0.j1().t();
639
640
  while (_iterator__ex2g4s_1.u()) {
640
641
  var item = _iterator__ex2g4s_1.v();
641
642
  // Inline function 'kotlin.collections.component1' call
642
- var ns = item.m1();
643
+ var ns = item.k1();
643
644
  // Inline function 'kotlin.collections.component2' call
644
- var defs = item.n1();
645
- var tmp_2 = ns + '/index.' + this.uu().dv_1;
645
+ var defs = item.l1();
646
+ var tmp_2 = ns + '/index.' + this.uq().dr_1;
646
647
  var tmp$ret$14 = new Emitted(tmp_2, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda));
647
648
  destination_1.x(tmp$ret$14);
648
649
  }
649
650
  return NonEmptyList__plus_impl_xqmb9_0(tmp_0, destination_1);
650
651
  };
651
- protoOf(TypeScriptEmitter).jv = function (module_0, logger) {
652
+ protoOf(TypeScriptEmitter).kr = function (module_0, logger) {
652
653
  // Inline function 'kotlin.let' call
653
- var it = protoOf(LanguageEmitter).jv.call(this, module_0, logger);
654
- return NonEmptyList__plus_impl_xqmb9(it, new Emitted('Wirespec', this.w20().o24_1));
654
+ var it = protoOf(LanguageEmitter).kr.call(this, module_0, logger);
655
+ return NonEmptyList__plus_impl_xqmb9(it, new Emitted('Wirespec', this.a1x().t20_1));
655
656
  };
656
- protoOf(TypeScriptEmitter).kv = function (definition, module_0, logger) {
657
+ protoOf(TypeScriptEmitter).lr = function (definition, module_0, logger) {
657
658
  // Inline function 'kotlin.let' call
658
- var it = protoOf(LanguageEmitter).kv.call(this, definition, module_0, logger);
659
- var subPackageName = plus(Companion_instance.bw(''), definition);
660
- return new Emitted(subPackageName.ew() + this.z20(it.ys_1), trimMargin("\n |import {Wirespec} from '../Wirespec'\n |\n |" + it.zs_1 + '\n '));
659
+ var it = protoOf(LanguageEmitter).lr.call(this, definition, module_0, logger);
660
+ var subPackageName = plus(Companion_instance.cs(''), definition);
661
+ return new Emitted(subPackageName.fs() + this.d1x(it.yo_1), trimMargin("\n |import {Wirespec} from '../Wirespec'\n |\n |" + it.zo_1 + '\n '));
661
662
  };
662
- protoOf(TypeScriptEmitter).ov = function (union) {
663
+ protoOf(TypeScriptEmitter).pr = function (union) {
663
664
  // Inline function 'kotlin.collections.distinctBy' call
664
665
  var this_0 = importReferences(union);
665
666
  var set = HashSet_init_$Create$();
@@ -667,7 +668,7 @@ protoOf(TypeScriptEmitter).ov = function (union) {
667
668
  var _iterator__ex2g4s = this_0.t();
668
669
  while (_iterator__ex2g4s.u()) {
669
670
  var e = _iterator__ex2g4s.v();
670
- var key = e.az_1;
671
+ var key = e.bv_1;
671
672
  if (set.x(key)) {
672
673
  list.x(e);
673
674
  }
@@ -678,24 +679,24 @@ protoOf(TypeScriptEmitter).ov = function (union) {
678
679
  var _iterator__ex2g4s_0 = list.t();
679
680
  while (_iterator__ex2g4s_0.u()) {
680
681
  var item = _iterator__ex2g4s_0.v();
681
- var tmp$ret$2 = 'import {type ' + item.az_1 + "} from '../model'";
682
+ var tmp$ret$2 = 'import {type ' + item.bv_1 + "} from '../model'";
682
683
  destination.x(tmp$ret$2);
683
684
  }
684
685
  var tmp = destination;
685
686
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0);
686
- var tmp_1 = this.i24(union.gt_1);
687
- return trimMargin('\n |' + tmp_0 + '\n |export type ' + tmp_1 + ' = ' + joinToString(union.ht_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1(this)) + '\n |\n ');
687
+ var tmp_1 = this.n20(union.gp_1);
688
+ return trimMargin('\n |' + tmp_0 + '\n |export type ' + tmp_1 + ' = ' + joinToString(union.hp_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1(this)) + '\n |\n ');
688
689
  };
689
- protoOf(TypeScriptEmitter).nv = function (channel) {
690
- return this.wu();
690
+ protoOf(TypeScriptEmitter).or = function (channel) {
691
+ return this.wq();
691
692
  };
692
693
  function emit_11($this, _this__u8e3s4) {
693
694
  var tmp;
694
695
  if (_this__u8e3s4 instanceof Literal) {
695
- tmp = _this__u8e3s4.xu_1;
696
+ tmp = _this__u8e3s4.xq_1;
696
697
  } else {
697
698
  if (_this__u8e3s4 instanceof Param) {
698
- tmp = ':' + _this__u8e3s4.bu_1.n1();
699
+ tmp = ':' + _this__u8e3s4.bq_1.l1();
699
700
  } else {
700
701
  noWhenBranchMatchedException();
701
702
  }
@@ -703,64 +704,64 @@ function emit_11($this, _this__u8e3s4) {
703
704
  return tmp;
704
705
  }
705
706
  function emitClient_0($this, _this__u8e3s4) {
706
- return trimMargin('\n |export const client: Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitClientTo($this, _this__u8e3s4), Spacer_instance.gw(1)) + ',\n |' + prependIndent(emitClientFrom($this, _this__u8e3s4), Spacer_instance.gw(1)) + '\n |})\n ');
707
+ return trimMargin('\n |export const client: Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitClientTo($this, _this__u8e3s4), Spacer_instance.hs(1)) + ',\n |' + prependIndent(emitClientFrom($this, _this__u8e3s4), Spacer_instance.hs(1)) + '\n |})\n ');
707
708
  }
708
709
  function emitClientTo($this, _this__u8e3s4) {
709
- var tmp = Spacer_instance.gw(1);
710
+ var tmp = Spacer_instance.hs(1);
710
711
  // Inline function 'kotlin.text.uppercase' call
711
712
  // Inline function 'kotlin.js.asDynamic' call
712
- var tmp_0 = _this__u8e3s4.vt_1.g3_1.toUpperCase();
713
- var tmp_1 = Spacer_instance.gw(1);
713
+ var tmp_0 = _this__u8e3s4.vp_1.a3_1.toUpperCase();
714
+ var tmp_1 = Spacer_instance.hs(1);
714
715
  var tmp_2 = emitPathArray($this, _this__u8e3s4);
715
- var tmp_3 = Spacer_instance.gw(1);
716
- var tmp_4 = joinToString(_this__u8e3s4.xt_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda($this));
717
- var tmp_5 = Spacer_instance.gw(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.yt_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda_0($this)) + '},\n |' + Spacer_instance.gw(1) + 'body: serialization.serialize(it.body)\n |})\n ');
716
+ var tmp_3 = Spacer_instance.hs(1);
717
+ var tmp_4 = joinToString(_this__u8e3s4.xp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda($this));
718
+ var tmp_5 = Spacer_instance.hs(1);
719
+ 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.yp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda_0($this)) + '},\n |' + Spacer_instance.hs(1) + 'body: serialization.serialize(it.body)\n |})\n ');
719
720
  }
720
721
  function emitClientFrom($this, _this__u8e3s4) {
721
- var tmp = Spacer_instance.gw(1);
722
- var tmp_0 = distinctByStatus(_this__u8e3s4.au_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.gw(2)) + '\n |' + Spacer_instance.gw(2) + 'default:\n |' + Spacer_instance.gw(3) + 'throw new Error(`Cannot internalize response with status: ${it.status}`);\n |' + Spacer_instance.gw(1) + '}\n |}\n ');
722
+ var tmp = Spacer_instance.hs(1);
723
+ var tmp_0 = distinctByStatus(_this__u8e3s4.aq_1);
724
+ 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.hs(2)) + '\n |' + Spacer_instance.hs(2) + 'default:\n |' + Spacer_instance.hs(3) + 'throw new Error(`Cannot internalize response with status: ${it.status}`);\n |' + Spacer_instance.hs(1) + '}\n |}\n ');
724
725
  }
725
726
  function emitClientFromResponse($this, _this__u8e3s4) {
726
- var tmp = fixStatus(_this__u8e3s4.gu_1);
727
- var tmp_0 = Spacer_instance.gw(1);
728
- var tmp_1 = Spacer_instance.gw(2);
729
- var tmp_2 = fixStatus(_this__u8e3s4.gu_1);
730
- var tmp_3 = Spacer_instance.gw(2);
731
- return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.hu_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFromResponse$lambda($this)) + '},\n |' + Spacer_instance.gw(2) + 'body: serialization.deserialize<' + emitReference($this, _this__u8e3s4) + '>(it.body)\n |' + Spacer_instance.gw(1) + '};\n ');
727
+ var tmp = fixStatus(_this__u8e3s4.gq_1);
728
+ var tmp_0 = Spacer_instance.hs(1);
729
+ var tmp_1 = Spacer_instance.hs(2);
730
+ var tmp_2 = fixStatus(_this__u8e3s4.gq_1);
731
+ var tmp_3 = Spacer_instance.hs(2);
732
+ return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.hq_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFromResponse$lambda($this)) + '},\n |' + Spacer_instance.hs(2) + 'body: serialization.deserialize<' + emitReference($this, _this__u8e3s4) + '>(it.body)\n |' + Spacer_instance.hs(1) + '};\n ');
732
733
  }
733
734
  function emitServer($this, _this__u8e3s4) {
734
- return trimMargin('\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitServerFrom($this, _this__u8e3s4), Spacer_instance.gw(1)) + ',\n |' + prependIndent(emitServerTo($this, _this__u8e3s4), Spacer_instance.gw(1)) + '\n |})\n ');
735
+ return trimMargin('\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitServerFrom($this, _this__u8e3s4), Spacer_instance.hs(1)) + ',\n |' + prependIndent(emitServerTo($this, _this__u8e3s4), Spacer_instance.hs(1)) + '\n |})\n ');
735
736
  }
736
737
  function emitServerFrom($this, _this__u8e3s4) {
737
- var tmp = Spacer_instance.gw(1);
738
- var tmp_0 = Spacer_instance.gw(2);
738
+ var tmp = Spacer_instance.hs(1);
739
+ var tmp_0 = Spacer_instance.hs(2);
739
740
  // Inline function 'kotlin.text.uppercase' call
740
741
  // Inline function 'kotlin.js.asDynamic' call
741
- var tmp_1 = _this__u8e3s4.vt_1.g3_1.toUpperCase();
742
- var tmp_2 = Spacer_instance.gw(2);
742
+ var tmp_1 = _this__u8e3s4.vp_1.a3_1.toUpperCase();
743
+ var tmp_2 = Spacer_instance.hs(2);
743
744
  var tmp_3 = get_indexedPathParams(_this__u8e3s4);
744
- var tmp_4 = prependIndent(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda($this)), Spacer_instance.gw(3));
745
- var tmp_5 = Spacer_instance.gw(2);
746
- var tmp_6 = Spacer_instance.gw(2);
747
- var tmp_7 = joinToString(_this__u8e3s4.xt_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0($this));
748
- var tmp_8 = Spacer_instance.gw(2);
749
- var tmp_9 = Spacer_instance.gw(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.yt_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1($this)) + '\n |' + Spacer_instance.gw(2) + '},\n |' + Spacer_instance.gw(2) + 'body: serialization.deserialize(it.body)\n |' + Spacer_instance.gw(1) + '}\n |}\n ');
745
+ var tmp_4 = prependIndent(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda($this)), Spacer_instance.hs(3));
746
+ var tmp_5 = Spacer_instance.hs(2);
747
+ var tmp_6 = Spacer_instance.hs(2);
748
+ var tmp_7 = joinToString(_this__u8e3s4.xp_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0($this));
749
+ var tmp_8 = Spacer_instance.hs(2);
750
+ var tmp_9 = Spacer_instance.hs(2);
751
+ 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.yp_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1($this)) + '\n |' + Spacer_instance.hs(2) + '},\n |' + Spacer_instance.hs(2) + 'body: serialization.deserialize(it.body)\n |' + Spacer_instance.hs(1) + '}\n |}\n ');
751
752
  }
752
753
  function emitServerTo($this, _this__u8e3s4) {
753
- var tmp = Spacer_instance.gw(1);
754
- var tmp_0 = distinctByStatus(_this__u8e3s4.au_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.gw(2)) + '\n |' + Spacer_instance.gw(1) + '}\n |}\n ');
754
+ var tmp = Spacer_instance.hs(1);
755
+ var tmp_0 = distinctByStatus(_this__u8e3s4.aq_1);
756
+ 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.hs(2)) + '\n |' + Spacer_instance.hs(1) + '}\n |}\n ');
756
757
  }
757
758
  function emitServerToResponse($this, _this__u8e3s4) {
758
- var tmp = fixStatus(_this__u8e3s4.gu_1);
759
- var tmp_0 = Spacer_instance.gw(1);
760
- var tmp_1 = Spacer_instance.gw(2);
761
- var tmp_2 = fixStatus(_this__u8e3s4.gu_1);
762
- var tmp_3 = Spacer_instance.gw(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.hu_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda($this)), Spacer_instance.gw(3)) + '\n |' + Spacer_instance.gw(2) + '} as Record<string, string>,\n |' + Spacer_instance.gw(2) + 'body: serialization.serialize(it.body),\n |' + Spacer_instance.gw(1) + '};\n ');
759
+ var tmp = fixStatus(_this__u8e3s4.gq_1);
760
+ var tmp_0 = Spacer_instance.hs(1);
761
+ var tmp_1 = Spacer_instance.hs(2);
762
+ var tmp_2 = fixStatus(_this__u8e3s4.gq_1);
763
+ var tmp_3 = Spacer_instance.hs(2);
764
+ return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {\n |' + prependIndent(joinToString(_this__u8e3s4.hq_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda($this)), Spacer_instance.hs(3)) + '\n |' + Spacer_instance.hs(2) + '} as Record<string, string>,\n |' + Spacer_instance.hs(2) + 'body: serialization.serialize(it.body),\n |' + Spacer_instance.hs(1) + '};\n ');
764
765
  }
765
766
  function emitType($this, _this__u8e3s4, name, block) {
766
767
  var tmp;
@@ -773,7 +774,7 @@ function emitType($this, _this__u8e3s4, name, block) {
773
774
  return tmp;
774
775
  }
775
776
  function emitName($this, _this__u8e3s4) {
776
- return 'Response' + Companion_instance_0.ev(_this__u8e3s4.gu_1);
777
+ return 'Response' + Companion_instance_0.er(_this__u8e3s4.gq_1);
777
778
  }
778
779
  function emitFunction_0($this, _this__u8e3s4, endpoint) {
779
780
  var tmp = Spacer_instance.toString();
@@ -799,18 +800,18 @@ function emitFunction_0($this, _this__u8e3s4, endpoint) {
799
800
  // Inline function 'kotlin.text.orEmpty' call
800
801
  var tmp0_elvis_lhs = tmp_4;
801
802
  var tmp_5 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
802
- var tmp_6 = Spacer_instance.gw(2);
803
+ var tmp_6 = Spacer_instance.hs(2);
803
804
  var tmp_7 = get_pathParams(endpoint);
804
805
  var tmp_8 = joinToObject($this, tmp_7, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_0($this));
805
- var tmp_9 = Spacer_instance.gw(2);
806
- var tmp_10 = endpoint.vt_1.toString();
807
- var tmp_11 = Spacer_instance.gw(2);
808
- var tmp_12 = joinToObject($this, endpoint.xt_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1($this));
809
- var tmp_13 = Spacer_instance.gw(2);
810
- var tmp_14 = joinToObject($this, endpoint.yt_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2($this));
811
- var tmp_15 = Spacer_instance.gw(2);
806
+ var tmp_9 = Spacer_instance.hs(2);
807
+ var tmp_10 = endpoint.vp_1.toString();
808
+ var tmp_11 = Spacer_instance.hs(2);
809
+ var tmp_12 = joinToObject($this, endpoint.xp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1($this));
810
+ var tmp_13 = Spacer_instance.hs(2);
811
+ var tmp_14 = joinToObject($this, endpoint.yp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2($this));
812
+ var tmp_15 = Spacer_instance.hs(2);
812
813
  var tmp_16;
813
- if (_this__u8e3s4.du_1 == null) {
814
+ if (_this__u8e3s4.dq_1 == null) {
814
815
  tmp_16 = null;
815
816
  } else {
816
817
  // Inline function 'kotlin.let' call
@@ -821,11 +822,11 @@ function emitFunction_0($this, _this__u8e3s4, endpoint) {
821
822
  }
822
823
  function emitFunction_1($this, _this__u8e3s4) {
823
824
  var tmp = Spacer_instance.toString();
824
- var tmp_0 = Companion_instance_0.ev(_this__u8e3s4.gu_1);
825
+ var tmp_0 = Companion_instance_0.er(_this__u8e3s4.gq_1);
825
826
  var tmp_1 = paramList_0(_this__u8e3s4);
826
827
  var tmp_2 = joinToObject($this, tmp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3($this));
827
828
  var tmp_3 = Spacer_instance.toString();
828
- var tmp_4 = Companion_instance_0.ev(_this__u8e3s4.gu_1);
829
+ var tmp_4 = Companion_instance_0.er(_this__u8e3s4.gq_1);
829
830
  // Inline function 'kotlin.takeIf' call
830
831
  var this_0 = paramList_0(_this__u8e3s4);
831
832
  var tmp_5;
@@ -840,19 +841,19 @@ function emitFunction_1($this, _this__u8e3s4) {
840
841
  tmp_6 = null;
841
842
  } else {
842
843
  // Inline function 'kotlin.run' call
843
- tmp_6 = 'params: Response' + Companion_instance_0.ev(_this__u8e3s4.gu_1) + 'Params';
844
+ tmp_6 = 'params: Response' + Companion_instance_0.er(_this__u8e3s4.gq_1) + 'Params';
844
845
  }
845
846
  // Inline function 'kotlin.text.orEmpty' call
846
847
  var tmp0_elvis_lhs = tmp_6;
847
848
  var tmp_7 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
848
- var tmp_8 = Companion_instance_0.ev(_this__u8e3s4.gu_1);
849
- var tmp_9 = Spacer_instance.gw(2);
850
- var tmp_10 = fixStatus(_this__u8e3s4.gu_1);
851
- var tmp_11 = Spacer_instance.gw(2);
852
- var tmp_12 = joinToObject($this, _this__u8e3s4.hu_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4($this));
853
- var tmp_13 = Spacer_instance.gw(2);
849
+ var tmp_8 = Companion_instance_0.er(_this__u8e3s4.gq_1);
850
+ var tmp_9 = Spacer_instance.hs(2);
851
+ var tmp_10 = fixStatus(_this__u8e3s4.gq_1);
852
+ var tmp_11 = Spacer_instance.hs(2);
853
+ var tmp_12 = joinToObject($this, _this__u8e3s4.hq_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4($this));
854
+ var tmp_13 = Spacer_instance.hs(2);
854
855
  var tmp_14;
855
- if (_this__u8e3s4.iu_1 == null) {
856
+ if (_this__u8e3s4.iq_1 == null) {
856
857
  tmp_14 = null;
857
858
  } else {
858
859
  // Inline function 'kotlin.let' call
@@ -862,60 +863,60 @@ function emitFunction_1($this, _this__u8e3s4) {
862
863
  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 ');
863
864
  }
864
865
  function emitReference($this, _this__u8e3s4) {
865
- var tmp0_safe_receiver = _this__u8e3s4.iu_1;
866
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fu_1;
867
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nu(tmp1_safe_receiver);
866
+ var tmp0_safe_receiver = _this__u8e3s4.iq_1;
867
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq_1;
868
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nq(tmp1_safe_receiver);
868
869
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
869
870
  }
870
871
  function emitPathArray($this, _this__u8e3s4) {
871
- return joinToString(_this__u8e3s4.wt_1, ', ', '[', ']', VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda($this));
872
+ return joinToString(_this__u8e3s4.wp_1, ', ', '[', ']', VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda($this));
872
873
  }
873
874
  function emitType_0($this, _this__u8e3s4) {
874
875
  var tmp = Spacer_instance.toString();
875
876
  var tmp_0 = emitName($this, _this__u8e3s4);
876
- var tmp_1 = Spacer_instance.gw(2);
877
- var tmp_2 = fixStatus(_this__u8e3s4.gu_1);
878
- var tmp_3 = Spacer_instance.gw(2);
879
- return trimMargin('\n |' + tmp + 'export type ' + tmp_0 + ' = {\n |' + tmp_1 + 'status: ' + tmp_2 + '\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.hu_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.gw(2) + 'body: ' + emitReference($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
877
+ var tmp_1 = Spacer_instance.hs(2);
878
+ var tmp_2 = fixStatus(_this__u8e3s4.gq_1);
879
+ var tmp_3 = Spacer_instance.hs(2);
880
+ return trimMargin('\n |' + tmp + 'export type ' + tmp_0 + ' = {\n |' + tmp_1 + 'status: ' + tmp_2 + '\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.hq_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.hs(2) + 'body: ' + emitReference($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
880
881
  }
881
882
  function emitReference_0($this, _this__u8e3s4) {
882
- var tmp0_safe_receiver = _this__u8e3s4.du_1;
883
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fu_1;
884
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nu(tmp1_safe_receiver);
883
+ var tmp0_safe_receiver = _this__u8e3s4.dq_1;
884
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq_1;
885
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nq(tmp1_safe_receiver);
885
886
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
886
887
  }
887
888
  function emitType_1($this, _this__u8e3s4, endpoint) {
888
- return trimMargin('\n |' + Spacer_instance.toString() + 'export type Request = {\n |' + Spacer_instance.gw(2) + 'path: Path\n |' + Spacer_instance.gw(2) + 'method: "' + endpoint.vt_1.toString() + '"\n |' + Spacer_instance.gw(2) + 'queries: Queries\n |' + Spacer_instance.gw(2) + 'headers: Headers\n |' + Spacer_instance.gw(2) + 'body: ' + emitReference_0($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
889
+ return trimMargin('\n |' + Spacer_instance.toString() + 'export type Request = {\n |' + Spacer_instance.hs(2) + 'path: Path\n |' + Spacer_instance.hs(2) + 'method: "' + endpoint.vp_1.toString() + '"\n |' + Spacer_instance.hs(2) + 'queries: Queries\n |' + Spacer_instance.hs(2) + 'headers: Headers\n |' + Spacer_instance.hs(2) + 'body: ' + emitReference_0($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
889
890
  }
890
891
  function emit_12($this, _this__u8e3s4) {
891
- return Spacer_instance.toString() + $this.mv(_this__u8e3s4.bu_1) + ': ' + $this.nu(_this__u8e3s4.cu_1);
892
+ return Spacer_instance.toString() + $this.nr(_this__u8e3s4.bq_1) + ': ' + $this.nq(_this__u8e3s4.cq_1);
892
893
  }
893
894
  function emit_13($this, _this__u8e3s4) {
894
- return $this.mv(_this__u8e3s4.zu_1) + (_this__u8e3s4.av_1.sy() ? '?' : '') + ': ' + $this.nu(_this__u8e3s4.av_1.uy(false));
895
+ return $this.nr(_this__u8e3s4.zq_1) + (_this__u8e3s4.ar_1.tu() ? '?' : '') + ': ' + $this.nq(_this__u8e3s4.ar_1.vu(false));
895
896
  }
896
897
  function emitDeserialize($this, _this__u8e3s4) {
897
- return $this.mv(_this__u8e3s4.of_1.bu_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.nf_1 + '])';
898
+ return $this.nr(_this__u8e3s4.ue_1.bq_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.te_1 + '])';
898
899
  }
899
900
  function emitDeserialize_0($this, _this__u8e3s4, fields, caseSensitive) {
900
- return caseSensitive ? $this.mv(_this__u8e3s4.qt_1) + ': serialization.deserialize(it.' + fields + '[' + $this.mv(_this__u8e3s4.qt_1) + '])' : $this.mv(_this__u8e3s4.qt_1) + ': serialization.deserialize(Object.entries(it.' + fields + ').find(([key]) => key.toLowerCase() === ' + $this.mv(lowercase($this, _this__u8e3s4.qt_1)) + ')?.[1])';
901
+ return caseSensitive ? $this.nr(_this__u8e3s4.qp_1) + ': serialization.deserialize(it.' + fields + '[' + $this.nr(_this__u8e3s4.qp_1) + '])' : $this.nr(_this__u8e3s4.qp_1) + ': serialization.deserialize(Object.entries(it.' + fields + ').find(([key]) => key.toLowerCase() === ' + $this.nr(lowercase($this, _this__u8e3s4.qp_1)) + ')?.[1])';
901
902
  }
902
903
  function emitDeserialize$default($this, _this__u8e3s4, fields, caseSensitive, $super) {
903
904
  caseSensitive = caseSensitive === VOID ? true : caseSensitive;
904
905
  return emitDeserialize_0($this, _this__u8e3s4, fields, caseSensitive);
905
906
  }
906
907
  function emitSerialize($this, _this__u8e3s4, fields) {
907
- return $this.mv(_this__u8e3s4.qt_1) + ': serialization.serialize(it.' + fields + '[' + $this.mv(_this__u8e3s4.qt_1) + '])';
908
+ return $this.nr(_this__u8e3s4.qp_1) + ': serialization.serialize(it.' + fields + '[' + $this.nr(_this__u8e3s4.qp_1) + '])';
908
909
  }
909
910
  function joinToObject($this, _this__u8e3s4, transform) {
910
911
  return joinToString(_this__u8e3s4, ', ', '{', '}', VOID, VOID, transform);
911
912
  }
912
913
  function emitHandleFunction($this, endpoint) {
913
- return Companion_instance_0.fv($this.i24(endpoint.ut_1)) + ': (request:Request) => Promise<Response>';
914
+ return Companion_instance_0.fr($this.n20(endpoint.up_1)) + ': (request:Request) => Promise<Response>';
914
915
  }
915
916
  function lowercase($this, _this__u8e3s4) {
916
917
  // Inline function 'kotlin.text.lowercase' call
917
918
  // Inline function 'kotlin.js.asDynamic' call
918
- var tmp$ret$1 = _this__u8e3s4.n1().toLowerCase();
919
+ var tmp$ret$1 = _this__u8e3s4.l1().toLowerCase();
919
920
  return new FieldIdentifier(tmp$ret$1);
920
921
  }
921
922
  function TypeScriptEndpointDefinitionEmitter$emit$lambda(it) {
@@ -929,12 +930,12 @@ function TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this$0) {
929
930
  }
930
931
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this$0) {
931
932
  return function (it) {
932
- return this$0.mu(it);
933
+ return this$0.mq(it);
933
934
  };
934
935
  }
935
936
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this$0) {
936
937
  return function (it) {
937
- return this$0.mu(it);
938
+ return this$0.mq(it);
938
939
  };
939
940
  }
940
941
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this$0) {
@@ -984,12 +985,12 @@ function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda(this$0) {
984
985
  }
985
986
  function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0(this$0) {
986
987
  return function (it) {
987
- return prependIndent(emitDeserialize$default(this$0, it, 'queries'), Spacer_instance.gw(3));
988
+ return prependIndent(emitDeserialize$default(this$0, it, 'queries'), Spacer_instance.hs(3));
988
989
  };
989
990
  }
990
991
  function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1(this$0) {
991
992
  return function (it) {
992
- return prependIndent(emitDeserialize_0(this$0, it, 'headers', false), Spacer_instance.gw(3));
993
+ return prependIndent(emitDeserialize_0(this$0, it, 'headers', false), Spacer_instance.hs(3));
993
994
  };
994
995
  }
995
996
  function TypeScriptEndpointDefinitionEmitter$emitServerTo$lambda(this$0) {
@@ -1004,7 +1005,7 @@ function TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda(this$0)
1004
1005
  }
1005
1006
  function TypeScriptEndpointDefinitionEmitter$emitType$lambda($block) {
1006
1007
  return function (it) {
1007
- return Spacer_instance.gw(1) + $block(it);
1008
+ return Spacer_instance.hs(1) + $block(it);
1008
1009
  };
1009
1010
  }
1010
1011
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda(this$0) {
@@ -1014,17 +1015,17 @@ function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda(this$0) {
1014
1015
  }
1015
1016
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_0(this$0) {
1016
1017
  return function (it) {
1017
- return this$0.mv(it.bu_1) + ': params[' + this$0.mv(it.bu_1) + ']';
1018
+ return this$0.nr(it.bq_1) + ': params[' + this$0.nr(it.bq_1) + ']';
1018
1019
  };
1019
1020
  }
1020
1021
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1(this$0) {
1021
1022
  return function (it) {
1022
- return this$0.mv(it.qt_1) + ': params[' + this$0.mv(it.qt_1) + ']';
1023
+ return this$0.nr(it.qp_1) + ': params[' + this$0.nr(it.qp_1) + ']';
1023
1024
  };
1024
1025
  }
1025
1026
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2(this$0) {
1026
1027
  return function (it) {
1027
- return this$0.mv(it.qt_1) + ': params[' + this$0.mv(it.qt_1) + ']';
1028
+ return this$0.nr(it.qp_1) + ': params[' + this$0.nr(it.qp_1) + ']';
1028
1029
  };
1029
1030
  }
1030
1031
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3(this$0) {
@@ -1034,17 +1035,17 @@ function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3(this$0) {
1034
1035
  }
1035
1036
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4(this$0) {
1036
1037
  return function (it) {
1037
- return this$0.mv(it.qt_1) + ': params[' + this$0.mv(it.qt_1) + ']';
1038
+ return this$0.nr(it.qp_1) + ': params[' + this$0.nr(it.qp_1) + ']';
1038
1039
  };
1039
1040
  }
1040
1041
  function TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda(this$0) {
1041
1042
  return function (it) {
1042
1043
  var tmp;
1043
1044
  if (it instanceof Literal) {
1044
- tmp = '"' + it.xu_1 + '"';
1045
+ tmp = '"' + it.xq_1 + '"';
1045
1046
  } else {
1046
1047
  if (it instanceof Param) {
1047
- tmp = 'serialization.serialize(it.path[' + this$0.mv(it.bu_1) + '])';
1048
+ tmp = 'serialization.serialize(it.path[' + this$0.nr(it.bq_1) + '])';
1048
1049
  } else {
1049
1050
  noWhenBranchMatchedException();
1050
1051
  }
@@ -1054,7 +1055,7 @@ function TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda(this$0) {
1054
1055
  }
1055
1056
  function TypeScriptEndpointDefinitionEmitter$emitType$lambda_0(this$0) {
1056
1057
  return function (it) {
1057
- return this$0.mv(it.qt_1) + ': ' + this$0.nu(it.rt_1);
1058
+ return this$0.nr(it.qp_1) + ': ' + this$0.nq(it.rp_1);
1058
1059
  };
1059
1060
  }
1060
1061
  function TypeScriptEndpointDefinitionEmitter() {
@@ -1067,14 +1068,21 @@ function TypeScriptEnumDefinitionEmitter() {
1067
1068
  function TypeScriptIdentifierEmitter() {
1068
1069
  }
1069
1070
  function _get_sanitizationConfig__sns434($this) {
1070
- var tmp0 = $this.r24_1;
1071
+ var tmp0 = $this.w20_1;
1071
1072
  var tmp = KProperty1;
1072
1073
  // Inline function 'kotlin.getValue' call
1073
1074
  getPropertyCallableRef('sanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh(), null);
1074
- return tmp0.n1();
1075
+ return tmp0.l1();
1076
+ }
1077
+ function _get_modelSanitizationConfig__vgg831($this) {
1078
+ var tmp0 = $this.x20_1;
1079
+ var tmp = KProperty1;
1080
+ // Inline function 'kotlin.getValue' call
1081
+ getPropertyCallableRef('modelSanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88(), null);
1082
+ return tmp0.l1();
1075
1083
  }
1076
1084
  function sanitize($this, _this__u8e3s4) {
1077
- return '"' + _this__u8e3s4.n1() + '"';
1085
+ return '"' + _this__u8e3s4.l1() + '"';
1078
1086
  }
1079
1087
  function sanitizeSymbol_1($this, _this__u8e3s4) {
1080
1088
  // Inline function 'kotlin.text.filter' call
@@ -1095,7 +1103,7 @@ function sanitizeSymbol_1($this, _this__u8e3s4) {
1095
1103
  return destination.toString();
1096
1104
  }
1097
1105
  function sanitizeKeywords($this, _this__u8e3s4) {
1098
- return Companion_getInstance_0().t24_1.a2(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1106
+ return Companion_getInstance_0().z20_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1099
1107
  }
1100
1108
  function firstToLower($this, _this__u8e3s4) {
1101
1109
  // Inline function 'kotlin.text.replaceFirstChar' call
@@ -1114,10 +1122,10 @@ function firstToLower($this, _this__u8e3s4) {
1114
1122
  return tmp;
1115
1123
  }
1116
1124
  function sanitizeParamName($this, identifier) {
1117
- var tmp0 = identifier.n1();
1125
+ var tmp0 = identifier.l1();
1118
1126
  // Inline function 'kotlin.text.split' call
1119
1127
  // Inline function 'kotlin.collections.filter' call
1120
- var tmp0_0 = Regex_init_$Create$('[.\\s-]+').ed(tmp0, 0);
1128
+ var tmp0_0 = Regex_init_$Create$('[.\\s-]+').zc(tmp0, 0);
1121
1129
  // Inline function 'kotlin.collections.filterTo' call
1122
1130
  var destination = ArrayList_init_$Create$();
1123
1131
  var _iterator__ex2g4s = tmp0_0.t();
@@ -1129,7 +1137,7 @@ function sanitizeParamName($this, identifier) {
1129
1137
  }
1130
1138
  }
1131
1139
  var parts = destination;
1132
- var name = parts.b1() > 1 ? (new Name(parts)).n1q() : identifier.n1();
1140
+ var name = parts.a1() > 1 ? (new Name(parts)).q1m() : identifier.l1();
1133
1141
  return sanitizeKeywords($this, sanitizeSymbol_1($this, name));
1134
1142
  }
1135
1143
  function buildEndpointParams($this, endpoint) {
@@ -1138,7 +1146,7 @@ function buildEndpointParams($this, endpoint) {
1138
1146
  // Inline function 'kotlin.apply' call
1139
1147
  var this_0 = ArrayList_init_$Create$();
1140
1148
  // Inline function 'kotlin.collections.filterIsInstance' call
1141
- var tmp0 = endpoint.wt_1;
1149
+ var tmp0 = endpoint.wp_1;
1142
1150
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1143
1151
  var destination = ArrayList_init_$Create$();
1144
1152
  var _iterator__ex2g4s = tmp0.t();
@@ -1152,36 +1160,36 @@ function buildEndpointParams($this, endpoint) {
1152
1160
  var _iterator__ex2g4s_0 = destination.t();
1153
1161
  while (_iterator__ex2g4s_0.u()) {
1154
1162
  var element_0 = _iterator__ex2g4s_0.v();
1155
- this_0.x(new EndpointParam(sanitizeParamName($this, element_0.bu_1), emitTypeScriptReference($this, element_0.cu_1.uy(false)), element_0.cu_1.sy()));
1163
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_0.bq_1), emitTypeScriptReference($this, element_0.cq_1.vu(false)), element_0.cq_1.tu()));
1156
1164
  }
1157
1165
  // Inline function 'kotlin.collections.forEach' call
1158
- var _iterator__ex2g4s_1 = endpoint.xt_1.t();
1166
+ var _iterator__ex2g4s_1 = endpoint.xp_1.t();
1159
1167
  while (_iterator__ex2g4s_1.u()) {
1160
1168
  var element_1 = _iterator__ex2g4s_1.v();
1161
- this_0.x(new EndpointParam(sanitizeParamName($this, element_1.qt_1), emitTypeScriptReference($this, element_1.rt_1.uy(false)), element_1.rt_1.sy()));
1169
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_1.qp_1), emitTypeScriptReference($this, element_1.rp_1.vu(false)), element_1.rp_1.tu()));
1162
1170
  }
1163
1171
  // Inline function 'kotlin.collections.forEach' call
1164
- var _iterator__ex2g4s_2 = endpoint.yt_1.t();
1172
+ var _iterator__ex2g4s_2 = endpoint.yp_1.t();
1165
1173
  while (_iterator__ex2g4s_2.u()) {
1166
1174
  var element_2 = _iterator__ex2g4s_2.v();
1167
- this_0.x(new EndpointParam(sanitizeParamName($this, element_2.qt_1), emitTypeScriptReference($this, element_2.rt_1.uy(false)), element_2.rt_1.sy()));
1175
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_2.qp_1), emitTypeScriptReference($this, element_2.rp_1.vu(false)), element_2.rp_1.tu()));
1168
1176
  }
1169
- var tmp0_safe_receiver = first(endpoint.zt_1).du_1;
1177
+ var tmp0_safe_receiver = first(endpoint.zp_1).dq_1;
1170
1178
  if (tmp0_safe_receiver == null)
1171
1179
  null;
1172
1180
  else {
1173
1181
  // Inline function 'kotlin.let' call
1174
- this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.fu_1.uy(false)), tmp0_safe_receiver.fu_1.sy()));
1182
+ this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.fq_1.vu(false)), tmp0_safe_receiver.fq_1.tu()));
1175
1183
  }
1176
- return this_0.u5();
1184
+ return this_0.o5();
1177
1185
  }
1178
1186
  function emitTypeScriptReference($this, ref) {
1179
1187
  var tmp;
1180
1188
  if (ref instanceof Dict) {
1181
- tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.ss_1) + '>';
1189
+ tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.so_1) + '>';
1182
1190
  } else {
1183
1191
  if (ref instanceof Iterable) {
1184
- tmp = emitTypeScriptReference($this, ref.ps_1) + '[]';
1192
+ tmp = emitTypeScriptReference($this, ref.po_1) + '[]';
1185
1193
  } else {
1186
1194
  if (ref instanceof Unit) {
1187
1195
  tmp = 'undefined';
@@ -1190,10 +1198,10 @@ function emitTypeScriptReference($this, ref) {
1190
1198
  tmp = 'any';
1191
1199
  } else {
1192
1200
  if (ref instanceof Custom) {
1193
- tmp = sanitizeSymbol_1($this, ref.az_1);
1201
+ tmp = sanitizeSymbol_1($this, ref.bv_1);
1194
1202
  } else {
1195
1203
  if (ref instanceof Primitive) {
1196
- var tmp1_subject = ref.ez_1;
1204
+ var tmp1_subject = ref.fv_1;
1197
1205
  var tmp_0;
1198
1206
  if (tmp1_subject instanceof String_0) {
1199
1207
  tmp_0 = 'string';
@@ -1226,20 +1234,20 @@ function emitTypeScriptReference($this, ref) {
1226
1234
  }
1227
1235
  }
1228
1236
  // Inline function 'kotlin.let' call
1229
- return tmp + (ref.sy() ? ' | undefined' : '');
1237
+ return tmp + (ref.tu() ? ' | undefined' : '');
1230
1238
  }
1231
1239
  function EndpointParam(name, type, nullable) {
1232
- this.u24_1 = name;
1233
- this.v24_1 = type;
1234
- this.w24_1 = nullable;
1240
+ this.a21_1 = name;
1241
+ this.b21_1 = type;
1242
+ this.c21_1 = nullable;
1235
1243
  }
1236
1244
  protoOf(EndpointParam).toString = function () {
1237
- return 'EndpointParam(name=' + this.u24_1 + ', type=' + this.v24_1 + ', nullable=' + this.w24_1 + ')';
1245
+ return 'EndpointParam(name=' + this.a21_1 + ', type=' + this.b21_1 + ', nullable=' + this.c21_1 + ')';
1238
1246
  };
1239
1247
  protoOf(EndpointParam).hashCode = function () {
1240
- var result = getStringHashCode(this.u24_1);
1241
- result = imul(result, 31) + getStringHashCode(this.v24_1) | 0;
1242
- result = imul(result, 31) + getBooleanHashCode(this.w24_1) | 0;
1248
+ var result = getStringHashCode(this.a21_1);
1249
+ result = imul(result, 31) + getStringHashCode(this.b21_1) | 0;
1250
+ result = imul(result, 31) + getBooleanHashCode(this.c21_1) | 0;
1243
1251
  return result;
1244
1252
  };
1245
1253
  protoOf(EndpointParam).equals = function (other) {
@@ -1247,11 +1255,11 @@ protoOf(EndpointParam).equals = function (other) {
1247
1255
  return true;
1248
1256
  if (!(other instanceof EndpointParam))
1249
1257
  return false;
1250
- if (!(this.u24_1 === other.u24_1))
1258
+ if (!(this.a21_1 === other.a21_1))
1251
1259
  return false;
1252
- if (!(this.v24_1 === other.v24_1))
1260
+ if (!(this.b21_1 === other.b21_1))
1253
1261
  return false;
1254
- if (!(this.w24_1 === other.w24_1))
1262
+ if (!(this.c21_1 === other.c21_1))
1255
1263
  return false;
1256
1264
  return true;
1257
1265
  };
@@ -1268,10 +1276,10 @@ function Companion() {
1268
1276
  // Inline function 'kotlin.text.lowercase' call
1269
1277
  // Inline function 'kotlin.js.asDynamic' call
1270
1278
  var tmp$ret$2 = removePrefix(element, 'GeneratorField').toLowerCase();
1271
- result.d3(element, tmp$ret$2);
1279
+ result.s2(element, tmp$ret$2);
1272
1280
  }
1273
- tmp.s24_1 = result;
1274
- this.t24_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']);
1281
+ tmp.y20_1 = result;
1282
+ this.z20_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']);
1275
1283
  }
1276
1284
  var Companion_instance_1;
1277
1285
  function Companion_getInstance_0() {
@@ -1284,13 +1292,13 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1284
1292
  }
1285
1293
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
1286
1294
  return function (name) {
1287
- var sanitized = name.k1l_1.b1() > 1 ? name.n1q() : sanitizeSymbol_1(this$0, name.h1n());
1295
+ var sanitized = name.l1h_1.a1() > 1 ? name.q1m() : sanitizeSymbol_1(this$0, name.j1j());
1288
1296
  return new Name(listOf_0(sanitized));
1289
1297
  };
1290
1298
  }
1291
1299
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
1292
1300
  return function (name) {
1293
- var sanitized = name.k1l_1.b1() > 1 ? name.n1q() : sanitizeSymbol_1(this$0, name.h1n());
1301
+ var sanitized = name.l1h_1.a1() > 1 ? name.q1m() : sanitizeSymbol_1(this$0, name.j1j());
1294
1302
  return new Name(listOf_0(sanitized));
1295
1303
  };
1296
1304
  }
@@ -1316,29 +1324,29 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
1316
1324
  return function (stmt, tr) {
1317
1325
  var tmp;
1318
1326
  if (stmt instanceof VariableReference) {
1319
- tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.h1t_1));
1327
+ tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.j1p_1));
1320
1328
  } else {
1321
1329
  if (stmt instanceof ConstructorStatement) {
1322
- var tmp_0 = tr.v1y(stmt.p1r_1);
1330
+ var tmp_0 = tr.x1u(stmt.r1n_1);
1323
1331
  // Inline function 'kotlin.collections.map' call
1324
- var this_0 = stmt.q1r_1;
1332
+ var this_0 = stmt.s1n_1;
1325
1333
  // Inline function 'kotlin.collections.mapTo' call
1326
- var destination = ArrayList_init_$Create$_0(this_0.b1());
1334
+ var destination = ArrayList_init_$Create$_0(this_0.a1());
1327
1335
  // Inline function 'kotlin.collections.iterator' call
1328
- var _iterator__ex2g4s = this_0.l1().t();
1336
+ var _iterator__ex2g4s = this_0.j1().t();
1329
1337
  while (_iterator__ex2g4s.u()) {
1330
1338
  var item = _iterator__ex2g4s.v();
1331
1339
  // Inline function 'kotlin.collections.component1' call
1332
- var key = item.m1();
1340
+ var key = item.k1();
1333
1341
  // Inline function 'kotlin.collections.component2' call
1334
- var value = item.n1();
1335
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.y1y(value));
1342
+ var value = item.l1();
1343
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.a1v(value));
1336
1344
  destination.x(tmp$ret$3);
1337
1345
  }
1338
1346
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
1339
1347
  } else {
1340
1348
  if (stmt instanceof Assignment) {
1341
- tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.k1t_1), tr.y1y(stmt.l1t_1), stmt.m1t_1);
1349
+ tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.m1p_1), tr.a1v(stmt.n1p_1), stmt.o1p_1);
1342
1350
  } else {
1343
1351
  tmp = transformChildren(stmt, tr);
1344
1352
  }
@@ -1349,7 +1357,7 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
1349
1357
  }
1350
1358
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1351
1359
  return function () {
1352
- var tmp0_reservedKeywords = Companion_getInstance_0().t24_1;
1360
+ var tmp0_reservedKeywords = Companion_getInstance_0().z20_1;
1353
1361
  var tmp = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1354
1362
  var tmp_0 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
1355
1363
  var tmp_1 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -1362,14 +1370,32 @@ function TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh() {
1362
1370
  return _get_sanitizationConfig__sns434(p0);
1363
1371
  };
1364
1372
  }
1373
+ function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda(name) {
1374
+ return new Name(listOf_0(name.j1j()));
1375
+ }
1376
+ function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(it) {
1377
+ return it;
1378
+ }
1379
+ function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
1380
+ return function () {
1381
+ var tmp = _get_sanitizationConfig__sns434(this$0);
1382
+ var tmp_0 = TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda;
1383
+ return tmp.q1w(VOID, VOID, tmp_0, VOID, TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
1384
+ };
1385
+ }
1386
+ function TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88() {
1387
+ return function (p0) {
1388
+ return _get_modelSanitizationConfig__vgg831(p0);
1389
+ };
1390
+ }
1365
1391
  function TypeScriptIrEmitter$emitShared$lambda(element, transformer) {
1366
1392
  var tmp;
1367
1393
  if (element instanceof Namespace) {
1368
- var injected = element.y1r_1.equals(Companion_getInstance().m1l('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
1394
+ var injected = element.a1o_1.equals(Companion_getInstance().n1h('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
1369
1395
  var tmp_0;
1370
1396
  // Inline function 'kotlin.collections.isNotEmpty' call
1371
1397
  if (!injected.r()) {
1372
- tmp_0 = withElements(element, plus_1(injected, element.u1r()));
1398
+ tmp_0 = withElements(element, plus_1(injected, element.w1n()));
1373
1399
  } else {
1374
1400
  tmp_0 = element;
1375
1401
  }
@@ -1384,11 +1410,11 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
1384
1410
  return function (element, transformer) {
1385
1411
  var tmp;
1386
1412
  if (element instanceof Namespace) {
1387
- var injected = element.y1r_1.equals(Companion_getInstance().m1l('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
1413
+ var injected = element.a1o_1.equals(Companion_getInstance().n1h('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
1388
1414
  var tmp_0;
1389
1415
  // Inline function 'kotlin.collections.isNotEmpty' call
1390
1416
  if (!injected.r()) {
1391
- tmp_0 = withElements(element, plus_1(element.u1r(), injected));
1417
+ tmp_0 = withElements(element, plus_1(element.w1n(), injected));
1392
1418
  } else {
1393
1419
  tmp_0 = element;
1394
1420
  }
@@ -1403,13 +1429,13 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
1403
1429
  function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
1404
1430
  var tmp;
1405
1431
  if (element instanceof Struct) {
1406
- var tmp0_safe_receiver = Companion_getInstance_0().s24_1.v2(element.d1s_1.h1n());
1432
+ var tmp0_safe_receiver = Companion_getInstance_0().y20_1.p2(element.f1o_1.j1j());
1407
1433
  var tmp_0;
1408
1434
  if (tmp0_safe_receiver == null) {
1409
1435
  tmp_0 = null;
1410
1436
  } else {
1411
1437
  // Inline function 'kotlin.let' call
1412
- tmp_0 = element.k1s(VOID, plus_1(listOf_0(new Field(Companion_getInstance().m1l('kind'), new StringLiteral(tmp0_safe_receiver))), element.e1s_1));
1438
+ tmp_0 = element.m1o(VOID, plus_1(listOf_0(new Field(Companion_getInstance().n1h('kind'), new StringLiteral(tmp0_safe_receiver))), element.g1o_1));
1413
1439
  }
1414
1440
  var tmp1_elvis_lhs = tmp_0;
1415
1441
  tmp = tmp1_elvis_lhs == null ? element : tmp1_elvis_lhs;
@@ -1420,7 +1446,7 @@ function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
1420
1446
  return transformChildren_0(transformed, transformer);
1421
1447
  }
1422
1448
  function TypeScriptIrEmitter$emit$lambda(it) {
1423
- return 'export {' + it.lv().n1() + "} from './" + it.lv().n1() + "'";
1449
+ return 'export {' + it.mr().l1() + "} from './" + it.mr().l1() + "'";
1424
1450
  }
1425
1451
  function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
1426
1452
  return function (expr, t) {
@@ -1429,24 +1455,24 @@ function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
1429
1455
  var tmp_1;
1430
1456
  var tmp_2;
1431
1457
  if (expr instanceof FunctionCall) {
1432
- var tmp_3 = expr.v1q_1;
1458
+ var tmp_3 = expr.x1m_1;
1433
1459
  tmp_2 = tmp_3 instanceof RawExpression;
1434
1460
  } else {
1435
1461
  tmp_2 = false;
1436
1462
  }
1437
1463
  if (tmp_2) {
1438
- var tmp_4 = expr.v1q_1;
1439
- tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).j1t_1 === $definition.wv_1.n1();
1464
+ var tmp_4 = expr.x1m_1;
1465
+ tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).l1p_1 === $definition.xr_1.l1();
1440
1466
  } else {
1441
1467
  tmp_1 = false;
1442
1468
  }
1443
1469
  if (tmp_1) {
1444
- tmp_0 = expr.x1q_1.equals(Companion_getInstance().m1l('valueOf'));
1470
+ tmp_0 = expr.z1m_1.equals(Companion_getInstance().n1h('valueOf'));
1445
1471
  } else {
1446
1472
  tmp_0 = false;
1447
1473
  }
1448
1474
  if (tmp_0) {
1449
- var tmp0_elvis_lhs = expr.y1q_1.v2(Companion_getInstance().m1l('label'));
1475
+ var tmp0_elvis_lhs = expr.a1n_1.p2(Companion_getInstance().n1h('label'));
1450
1476
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
1451
1477
  } else {
1452
1478
  tmp = transformChildren_1(expr, t);
@@ -1459,12 +1485,12 @@ function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
1459
1485
  var tmp;
1460
1486
  var tmp_0;
1461
1487
  if (expr instanceof ConstructorStatement) {
1462
- tmp_0 = equals(expr.p1r_1, new Custom_0($definition.rv_1.n1()));
1488
+ tmp_0 = equals(expr.r1n_1, Custom_init_$Create$($definition.sr_1.l1()));
1463
1489
  } else {
1464
1490
  tmp_0 = false;
1465
1491
  }
1466
1492
  if (tmp_0) {
1467
- var tmp0_elvis_lhs = expr.q1r_1.v2(Companion_getInstance().m1l('value'));
1493
+ var tmp0_elvis_lhs = expr.s1n_1.p2(Companion_getInstance().n1h('value'));
1468
1494
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
1469
1495
  } else {
1470
1496
  tmp = transformChildren_1(expr, t);
@@ -1475,36 +1501,37 @@ function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
1475
1501
  function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
1476
1502
  var tmp;
1477
1503
  if (expr instanceof ConstructorStatement) {
1478
- var tmp_0 = expr.p1r_1;
1504
+ var tmp_0 = expr.r1n_1;
1479
1505
  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.f1n_1;
1481
- var typeName = tmp1_safe_receiver == null ? null : removePrefix(tmp1_safe_receiver, 'Wirespec.');
1506
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1j_1;
1507
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j1j();
1508
+ var typeName = tmp2_safe_receiver == null ? null : removePrefix(tmp2_safe_receiver, 'Wirespec.');
1482
1509
  var tmp_1;
1483
1510
  if (typeName == null) {
1484
1511
  tmp_1 = null;
1485
1512
  } else {
1486
1513
  // Inline function 'kotlin.let' call
1487
- tmp_1 = Companion_getInstance_0().s24_1.v2(typeName);
1514
+ tmp_1 = Companion_getInstance_0().y20_1.p2(typeName);
1488
1515
  }
1489
1516
  var kind = tmp_1;
1490
1517
  var tmp_2;
1491
1518
  if (!(kind == null)) {
1492
- var tmp_3 = mapOf(to(Companion_getInstance().m1l('kind'), new Literal_0(kind, String_instance)));
1519
+ var tmp_3 = mapOf(to(Companion_getInstance().n1h('kind'), new Literal_0(kind, String_instance)));
1493
1520
  // Inline function 'kotlin.collections.mapValues' call
1494
- var this_0 = expr.q1r_1;
1521
+ var this_0 = expr.s1n_1;
1495
1522
  // Inline function 'kotlin.collections.mapValuesTo' call
1496
- var destination = LinkedHashMap_init_$Create$_0(mapCapacity(this_0.b1()));
1523
+ var destination = LinkedHashMap_init_$Create$_0(mapCapacity(this_0.a1()));
1497
1524
  // Inline function 'kotlin.collections.associateByTo' call
1498
- var _iterator__ex2g4s = this_0.l1().t();
1525
+ var _iterator__ex2g4s = this_0.j1().t();
1499
1526
  while (_iterator__ex2g4s.u()) {
1500
1527
  var element = _iterator__ex2g4s.v();
1501
- var tmp_4 = element.m1();
1528
+ var tmp_4 = element.k1();
1502
1529
  // Inline function 'kotlin.collections.component2' call
1503
- var v = element.n1();
1504
- var tmp$ret$4 = t.y1y(v);
1505
- destination.d3(tmp_4, tmp$ret$4);
1530
+ var v = element.l1();
1531
+ var tmp$ret$4 = t.a1v(v);
1532
+ destination.s2(tmp_4, tmp$ret$4);
1506
1533
  }
1507
- tmp_2 = new ConstructorStatement(expr.p1r_1, plus_2(tmp_3, destination));
1534
+ tmp_2 = new ConstructorStatement(expr.r1n_1, plus_2(tmp_3, destination));
1508
1535
  } else {
1509
1536
  tmp_2 = transformChildren(expr, t);
1510
1537
  }
@@ -1531,17 +1558,17 @@ function TypeScriptIrEmitter$emitGenerator$lambda_5($generatorOwnName, $generato
1531
1558
  var tmp_0;
1532
1559
  var tmp_1;
1533
1560
  if (expr instanceof RawExpression) {
1534
- tmp_1 = endsWith(expr.j1t_1, 'Generator');
1561
+ tmp_1 = endsWith(expr.l1p_1, 'Generator');
1535
1562
  } else {
1536
1563
  tmp_1 = false;
1537
1564
  }
1538
1565
  if (tmp_1) {
1539
- tmp_0 = !(expr.j1t_1 === $generatorOwnName);
1566
+ tmp_0 = !(expr.l1p_1 === $generatorOwnName);
1540
1567
  } else {
1541
1568
  tmp_0 = false;
1542
1569
  }
1543
1570
  if (tmp_0) {
1544
- $generatorRefs.x(expr.j1t_1);
1571
+ $generatorRefs.x(expr.l1p_1);
1545
1572
  tmp = Unit_instance;
1546
1573
  }
1547
1574
  return transformChildren_1(expr, t);
@@ -1555,7 +1582,7 @@ function TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint) {
1555
1582
  var tmp_0;
1556
1583
  // Inline function 'kotlin.collections.isNotEmpty' call
1557
1584
  if (!injected.r()) {
1558
- tmp_0 = withElements(element, plus_1(element.u1r(), injected));
1585
+ tmp_0 = withElements(element, plus_1(element.w1n(), injected));
1559
1586
  } else {
1560
1587
  tmp_0 = element;
1561
1588
  }
@@ -1574,14 +1601,14 @@ function emit$injectApiConst(_this__u8e3s4, $endpoint) {
1574
1601
  var tmp = scope;
1575
1602
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1576
1603
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1577
- var this_0 = scope.d1z_1;
1604
+ var this_0 = scope.f1v_1;
1578
1605
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1579
1606
  // Inline function 'kotlin.apply' call
1580
1607
  var this_1 = new TransformerBuilder();
1581
- this_1.v1m(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
1582
- var tmp$ret$2 = this_1.w1m();
1583
- tmp.d1z_1 = transform(this_0, tmp$ret$2);
1584
- var tmp_0 = scope.d1z_1;
1608
+ this_1.w1i(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
1609
+ var tmp$ret$2 = this_1.x1i();
1610
+ tmp.f1v_1 = transform(this_0, tmp$ret$2);
1611
+ var tmp_0 = scope.f1v_1;
1585
1612
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1586
1613
  }
1587
1614
  function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
@@ -1589,25 +1616,27 @@ function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
1589
1616
  }
1590
1617
  function TypeScriptIrEmitter$emitClient$lambda(this$0) {
1591
1618
  return function (it) {
1592
- var methodName = firstToLower(this$0, it.ut_1.n1());
1619
+ var methodName = firstToLower(this$0, it.up_1.l1());
1593
1620
  return ' ...' + methodName + 'Client(serialization, transportation),';
1594
1621
  };
1595
1622
  }
1596
1623
  function TypeScriptIrEmitter() {
1597
1624
  Companion_getInstance_0();
1598
- this.p24_1 = TypeScriptGenerator_getInstance();
1599
- this.q24_1 = FileExtension_TypeScript_getInstance();
1625
+ this.u20_1 = TypeScriptGenerator_getInstance();
1626
+ this.v20_1 = FileExtension_TypeScript_getInstance();
1600
1627
  var tmp = this;
1601
- tmp.r24_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
1628
+ tmp.w20_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
1629
+ var tmp_0 = this;
1630
+ tmp_0.x20_1 = lazy(TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this));
1602
1631
  }
1603
- protoOf(TypeScriptIrEmitter).q1z = function () {
1604
- return this.p24_1;
1632
+ protoOf(TypeScriptIrEmitter).s1v = function () {
1633
+ return this.u20_1;
1605
1634
  };
1606
- protoOf(TypeScriptIrEmitter).uu = function () {
1607
- return this.q24_1;
1635
+ protoOf(TypeScriptIrEmitter).uq = function () {
1636
+ return this.v20_1;
1608
1637
  };
1609
- protoOf(TypeScriptIrEmitter).t1z = function () {
1610
- var packageName = Companion_instance.bw('community.flock.wirespec');
1638
+ protoOf(TypeScriptIrEmitter).v1v = function () {
1639
+ var packageName = Companion_instance.cs('community.flock.wirespec');
1611
1640
  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}';
1612
1641
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1613
1642
  var this_0 = convert(packageName);
@@ -1616,41 +1645,41 @@ protoOf(TypeScriptIrEmitter).t1z = function () {
1616
1645
  var tmp = scope;
1617
1646
  // Inline function 'community.flock.wirespec.ir.core.injectBefore' call
1618
1647
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1619
- var this_1 = scope.d1z_1;
1648
+ var this_1 = scope.f1v_1;
1620
1649
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1621
1650
  // Inline function 'kotlin.apply' call
1622
1651
  var this_2 = new TransformerBuilder();
1623
- this_2.v1m(TypeScriptIrEmitter$emitShared$lambda);
1624
- var tmp$ret$2 = this_2.w1m();
1625
- tmp.d1z_1 = transform(this_1, tmp$ret$2);
1652
+ this_2.w1i(TypeScriptIrEmitter$emitShared$lambda);
1653
+ var tmp$ret$2 = this_2.x1i();
1654
+ tmp.f1v_1 = transform(this_1, tmp$ret$2);
1626
1655
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1627
1656
  var tmp_0 = scope;
1628
1657
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1629
1658
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1630
- var this_3 = scope.d1z_1;
1659
+ var this_3 = scope.f1v_1;
1631
1660
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1632
1661
  // Inline function 'kotlin.apply' call
1633
1662
  var this_4 = new TransformerBuilder();
1634
- this_4.v1m(TypeScriptIrEmitter$emitShared$lambda_0(api));
1635
- var tmp$ret$8 = this_4.w1m();
1636
- tmp_0.d1z_1 = transform(this_3, tmp$ret$8);
1663
+ this_4.w1i(TypeScriptIrEmitter$emitShared$lambda_0(api));
1664
+ var tmp$ret$8 = this_4.x1i();
1665
+ tmp_0.f1v_1 = transform(this_3, tmp$ret$8);
1637
1666
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1638
1667
  var tmp_1 = scope;
1639
1668
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1640
- var this_5 = scope.d1z_1;
1669
+ var this_5 = scope.f1v_1;
1641
1670
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1642
1671
  // Inline function 'kotlin.apply' call
1643
1672
  var this_6 = new TransformerBuilder();
1644
- this_6.v1m(TypeScriptIrEmitter$emitShared$lambda_1);
1645
- var tmp$ret$14 = this_6.w1m();
1646
- tmp_1.d1z_1 = transform(this_5, tmp$ret$14);
1647
- var tmp_2 = scope.d1z_1;
1673
+ this_6.w1i(TypeScriptIrEmitter$emitShared$lambda_1);
1674
+ var tmp$ret$14 = this_6.x1i();
1675
+ tmp_1.f1v_1 = transform(this_5, tmp$ret$14);
1676
+ var tmp_2 = scope.f1v_1;
1648
1677
  return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1649
1678
  };
1650
- protoOf(TypeScriptIrEmitter).es = function (ast, logger) {
1679
+ protoOf(TypeScriptIrEmitter).eo = function (ast, logger) {
1651
1680
  var tmp = emit.call(this, ast, logger);
1652
1681
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
1653
- var this_0 = ast.ru_1;
1682
+ var this_0 = ast.rq_1;
1654
1683
  // Inline function 'kotlin.collections.flatMap' call
1655
1684
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
1656
1685
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -1658,7 +1687,7 @@ protoOf(TypeScriptIrEmitter).es = function (ast, logger) {
1658
1687
  var _iterator__ex2g4s = tmp0.t();
1659
1688
  while (_iterator__ex2g4s.u()) {
1660
1689
  var element = _iterator__ex2g4s.v();
1661
- var list = new NonEmptyList(element.tu_1);
1690
+ var list = new NonEmptyList(element.tq_1);
1662
1691
  addAll(destination, list);
1663
1692
  }
1664
1693
  var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -1671,11 +1700,11 @@ protoOf(TypeScriptIrEmitter).es = function (ast, logger) {
1671
1700
  var element_0 = _iterator__ex2g4s_0.v();
1672
1701
  var key = namespace(element_0);
1673
1702
  // Inline function 'kotlin.collections.getOrPut' call
1674
- var value = destination_0.v2(key);
1703
+ var value = destination_0.p2(key);
1675
1704
  var tmp_0;
1676
1705
  if (value == null) {
1677
1706
  var answer = ArrayList_init_$Create$();
1678
- destination_0.d3(key, answer);
1707
+ destination_0.s2(key, answer);
1679
1708
  tmp_0 = answer;
1680
1709
  } else {
1681
1710
  tmp_0 = value;
@@ -1685,27 +1714,27 @@ protoOf(TypeScriptIrEmitter).es = function (ast, logger) {
1685
1714
  }
1686
1715
  // Inline function 'kotlin.collections.map' call
1687
1716
  // Inline function 'kotlin.collections.mapTo' call
1688
- var destination_1 = ArrayList_init_$Create$_0(destination_0.b1());
1717
+ var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
1689
1718
  // Inline function 'kotlin.collections.iterator' call
1690
- var _iterator__ex2g4s_1 = destination_0.l1().t();
1719
+ var _iterator__ex2g4s_1 = destination_0.j1().t();
1691
1720
  while (_iterator__ex2g4s_1.u()) {
1692
1721
  var item = _iterator__ex2g4s_1.v();
1693
1722
  // Inline function 'kotlin.collections.component1' call
1694
- var ns = item.m1();
1723
+ var ns = item.k1();
1695
1724
  // Inline function 'kotlin.collections.component2' call
1696
- var defs = item.n1();
1697
- var tmp_1 = ns + '/index.' + this.uu().dv_1;
1725
+ var defs = item.l1();
1726
+ var tmp_1 = ns + '/index.' + this.uq().dr_1;
1698
1727
  var tmp$ret$12 = new Emitted(tmp_1, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emit$lambda));
1699
1728
  destination_1.x(tmp$ret$12);
1700
1729
  }
1701
1730
  return NonEmptyList__plus_impl_xqmb9_0(tmp, destination_1);
1702
1731
  };
1703
- protoOf(TypeScriptIrEmitter).kv = function (definition, module_0, logger) {
1732
+ protoOf(TypeScriptIrEmitter).lr = function (definition, module_0, logger) {
1704
1733
  var file = emit_0.call(this, definition, module_0, logger);
1705
- var subPackageName = plus(Companion_instance.bw(''), definition);
1706
- return new File(Companion_getInstance().m1l(subPackageName.ew() + sanitizeSymbol_1(this, file.s1r_1.t1q())), plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), file.t1r_1));
1734
+ var subPackageName = plus(Companion_instance.cs(''), definition);
1735
+ return new File(Companion_getInstance().n1h(subPackageName.fs() + sanitizeSymbol_1(this, file.u1n_1.y1i())), plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), file.v1n_1));
1707
1736
  };
1708
- protoOf(TypeScriptIrEmitter).x1z = function (definition, module_0) {
1737
+ protoOf(TypeScriptIrEmitter).z1v = function (definition, module_0) {
1709
1738
  var tmp;
1710
1739
  if (definition instanceof Type) {
1711
1740
  tmp = convertToGenerator_2(definition, module_0);
@@ -1714,16 +1743,16 @@ protoOf(TypeScriptIrEmitter).x1z = function (definition, module_0) {
1714
1743
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1715
1744
  var this_0 = convertToGenerator_1(definition);
1716
1745
  var scope = new TransformScope(this_0);
1717
- scope.l1z(TypeScriptIrEmitter$emitGenerator$lambda(definition));
1718
- var tmp_0 = scope.d1z_1;
1746
+ scope.n1v(TypeScriptIrEmitter$emitGenerator$lambda(definition));
1747
+ var tmp_0 = scope.f1v_1;
1719
1748
  tmp = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1720
1749
  } else {
1721
1750
  if (definition instanceof Refined) {
1722
1751
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1723
1752
  var this_1 = convertToGenerator_0(definition);
1724
1753
  var scope_0 = new TransformScope(this_1);
1725
- scope_0.l1z(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
1726
- var tmp_1 = scope_0.d1z_1;
1754
+ scope_0.n1v(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
1755
+ var tmp_1 = scope_0.f1v_1;
1727
1756
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1728
1757
  } else {
1729
1758
  if (definition instanceof Union) {
@@ -1737,10 +1766,10 @@ protoOf(TypeScriptIrEmitter).x1z = function (definition, module_0) {
1737
1766
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1738
1767
  var this_2 = sanitizeNames(tmp, _get_sanitizationConfig__sns434(this));
1739
1768
  var scope_1 = new TransformScope(this_2);
1740
- scope_1.l1z(TypeScriptIrEmitter$emitGenerator$lambda_1);
1741
- var tmp_2 = scope_1.d1z_1;
1769
+ scope_1.n1v(TypeScriptIrEmitter$emitGenerator$lambda_1);
1770
+ var tmp_2 = scope_1.f1v_1;
1742
1771
  var generatorFile = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1743
- var generatorOwnName = definition.lv().n1() + 'Generator';
1772
+ var generatorOwnName = definition.mr().l1() + 'Generator';
1744
1773
  var tmp_3 = asSequence(collectCustomTypeNames(generatorFile));
1745
1774
  var tmp_4 = filterNot(tmp_3, TypeScriptIrEmitter$emitGenerator$lambda_2);
1746
1775
  var tmp_5 = filterNot(tmp_4, TypeScriptIrEmitter$emitGenerator$lambda_3(generatorOwnName));
@@ -1749,8 +1778,8 @@ protoOf(TypeScriptIrEmitter).x1z = function (definition, module_0) {
1749
1778
  var generatorRefs = LinkedHashSet_init_$Create$();
1750
1779
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1751
1780
  var scope_2 = new TransformScope(generatorFile);
1752
- scope_2.l1z(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
1753
- var tmp_6 = scope_2.d1z_1;
1781
+ scope_2.n1v(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
1782
+ var tmp_6 = scope_2.f1v_1;
1754
1783
  isInterface(tmp_6, Element) || THROW_CCE();
1755
1784
  // Inline function 'kotlin.collections.filter' call
1756
1785
  // Inline function 'kotlin.collections.filterTo' call
@@ -1793,10 +1822,10 @@ protoOf(TypeScriptIrEmitter).x1z = function (definition, module_0) {
1793
1822
  destination_2.x(tmp$ret$18);
1794
1823
  }
1795
1824
  var modelImports = destination_2;
1796
- var subPackageName = plus_0(Companion_instance.bw(''), 'generator');
1797
- return new File(Companion_getInstance().m1l(subPackageName.ew() + sanitizeSymbol_1(this, generatorFile.s1r_1.t1q())), plus_1(plus_1(plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.t1r_1));
1825
+ var subPackageName = plus_0(Companion_instance.cs(''), 'generator');
1826
+ return new File(Companion_getInstance().n1h(subPackageName.fs() + sanitizeSymbol_1(this, generatorFile.u1n_1.y1i())), plus_1(plus_1(plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.v1n_1));
1798
1827
  };
1799
- protoOf(TypeScriptIrEmitter).ku = function (type, module_0) {
1828
+ protoOf(TypeScriptIrEmitter).kq = function (type, module_0) {
1800
1829
  var fieldValidations = classifyValidatableFields(type, module_0);
1801
1830
  // Inline function 'kotlin.collections.distinctBy' call
1802
1831
  var this_0 = importReferences(type);
@@ -1805,7 +1834,7 @@ protoOf(TypeScriptIrEmitter).ku = function (type, module_0) {
1805
1834
  var _iterator__ex2g4s = this_0.t();
1806
1835
  while (_iterator__ex2g4s.u()) {
1807
1836
  var e = _iterator__ex2g4s.v();
1808
- var key = e.az_1;
1837
+ var key = e.bv_1;
1809
1838
  if (set.x(key)) {
1810
1839
  list.x(e);
1811
1840
  }
@@ -1816,7 +1845,7 @@ protoOf(TypeScriptIrEmitter).ku = function (type, module_0) {
1816
1845
  var _iterator__ex2g4s_0 = list.t();
1817
1846
  while (_iterator__ex2g4s_0.u()) {
1818
1847
  var item = _iterator__ex2g4s_0.v();
1819
- var tmp$ret$2 = import_0('./' + item.az_1, item.az_1);
1848
+ var tmp$ret$2 = import_0('./' + item.bv_1, item.bv_1);
1820
1849
  destination.x(tmp$ret$2);
1821
1850
  }
1822
1851
  var typeImports = destination;
@@ -1826,7 +1855,7 @@ protoOf(TypeScriptIrEmitter).ku = function (type, module_0) {
1826
1855
  var _iterator__ex2g4s_1 = fieldValidations.t();
1827
1856
  while (_iterator__ex2g4s_1.u()) {
1828
1857
  var item_0 = _iterator__ex2g4s_1.v();
1829
- var tmp$ret$5 = item_0.b1n_1;
1858
+ var tmp$ret$5 = item_0.d1j_1;
1830
1859
  destination_0.x(tmp$ret$5);
1831
1860
  }
1832
1861
  // Inline function 'kotlin.collections.filter' call
@@ -1836,7 +1865,7 @@ protoOf(TypeScriptIrEmitter).ku = function (type, module_0) {
1836
1865
  var _iterator__ex2g4s_2 = tmp0.t();
1837
1866
  while (_iterator__ex2g4s_2.u()) {
1838
1867
  var element = _iterator__ex2g4s_2.v();
1839
- if (!(element === type.lt_1.n1())) {
1868
+ if (!(element === type.lp_1.l1())) {
1840
1869
  destination_1.x(element);
1841
1870
  }
1842
1871
  }
@@ -1852,30 +1881,30 @@ protoOf(TypeScriptIrEmitter).ku = function (type, module_0) {
1852
1881
  var validateImports = destination_2;
1853
1882
  var allImports = plus_1(typeImports, validateImports);
1854
1883
  // Inline function 'kotlin.collections.map' call
1855
- var this_1 = type.mt_1.it_1;
1884
+ var this_1 = type.mp_1.ip_1;
1856
1885
  // Inline function 'kotlin.collections.mapTo' call
1857
1886
  var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1858
1887
  var _iterator__ex2g4s_4 = this_1.t();
1859
1888
  while (_iterator__ex2g4s_4.u()) {
1860
1889
  var item_2 = _iterator__ex2g4s_4.v();
1861
- var tmp$ret$14 = item_2.qt_1.n1();
1890
+ var tmp$ret$14 = item_2.qp_1.l1();
1862
1891
  destination_3.x(tmp$ret$14);
1863
1892
  }
1864
1893
  var fieldNames = toSet(destination_3);
1865
- var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)), type.lt_1.n1(), fieldNames);
1894
+ var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)), type.lp_1.l1(), fieldNames);
1866
1895
  var tmp;
1867
1896
  // Inline function 'kotlin.collections.isNotEmpty' call
1868
1897
  if (!allImports.r()) {
1869
- tmp = file.w1r(VOID, plus_1(allImports, file.t1r_1));
1898
+ tmp = file.y1n(VOID, plus_1(allImports, file.v1n_1));
1870
1899
  } else {
1871
1900
  tmp = file;
1872
1901
  }
1873
1902
  return tmp;
1874
1903
  };
1875
- protoOf(TypeScriptIrEmitter).yv = function (enum_0, module_0) {
1904
+ protoOf(TypeScriptIrEmitter).zr = function (enum_0, module_0) {
1876
1905
  return sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1877
1906
  };
1878
- protoOf(TypeScriptIrEmitter).ov = function (union) {
1907
+ protoOf(TypeScriptIrEmitter).pr = function (union) {
1879
1908
  // Inline function 'kotlin.collections.distinctBy' call
1880
1909
  var this_0 = importReferences(union);
1881
1910
  var set = HashSet_init_$Create$();
@@ -1883,7 +1912,7 @@ protoOf(TypeScriptIrEmitter).ov = function (union) {
1883
1912
  var _iterator__ex2g4s = this_0.t();
1884
1913
  while (_iterator__ex2g4s.u()) {
1885
1914
  var e = _iterator__ex2g4s.v();
1886
- var key = e.az_1;
1915
+ var key = e.bv_1;
1887
1916
  if (set.x(key)) {
1888
1917
  list.x(e);
1889
1918
  }
@@ -1894,7 +1923,7 @@ protoOf(TypeScriptIrEmitter).ov = function (union) {
1894
1923
  var _iterator__ex2g4s_0 = list.t();
1895
1924
  while (_iterator__ex2g4s_0.u()) {
1896
1925
  var item = _iterator__ex2g4s_0.v();
1897
- var tmp$ret$2 = import_0('../model', item.az_1, true);
1926
+ var tmp$ret$2 = import_0('../model', item.bv_1, true);
1898
1927
  destination.x(tmp$ret$2);
1899
1928
  }
1900
1929
  var imports = destination;
@@ -1902,19 +1931,19 @@ protoOf(TypeScriptIrEmitter).ov = function (union) {
1902
1931
  var tmp;
1903
1932
  // Inline function 'kotlin.collections.isNotEmpty' call
1904
1933
  if (!imports.r()) {
1905
- tmp = file.w1r(VOID, plus_1(imports, file.t1r_1));
1934
+ tmp = file.y1n(VOID, plus_1(imports, file.v1n_1));
1906
1935
  } else {
1907
1936
  tmp = file;
1908
1937
  }
1909
1938
  return tmp;
1910
1939
  };
1911
- protoOf(TypeScriptIrEmitter).tv = function (refined) {
1940
+ protoOf(TypeScriptIrEmitter).ur = function (refined) {
1912
1941
  var converted = convert_2(refined);
1913
- var constraintExpr = convertConstraint(refined.sv_1, new VariableReference(Companion_getInstance().m1l('value')));
1914
- var validatorStr = TypeScriptGenerator_getInstance().f20(constraintExpr);
1915
- return new File(converted.s1r_1, listOf([new RawElement('export type ' + converted.s1r_1.t1q() + ' = ' + emitTypeScriptReference(this, refined.sv_1) + ';'), new RawElement('export const validate' + refined.rv_1.n1() + ' = (value: ' + emitTypeScriptReference(this, refined.sv_1) + ') =>\n ' + validatorStr + ';')]));
1942
+ var constraintExpr = convertConstraint(refined.tr_1, new VariableReference(Companion_getInstance().n1h('value')));
1943
+ var validatorStr = TypeScriptGenerator_getInstance().h1w(constraintExpr);
1944
+ return new File(converted.u1n_1, listOf([new RawElement('export type ' + converted.u1n_1.y1i() + ' = ' + emitTypeScriptReference(this, refined.tr_1) + ';'), new RawElement('export const validate' + refined.sr_1.l1() + ' = (value: ' + emitTypeScriptReference(this, refined.tr_1) + ') =>\n ' + validatorStr + ';')]));
1916
1945
  };
1917
- protoOf(TypeScriptIrEmitter).zv = function (endpoint) {
1946
+ protoOf(TypeScriptIrEmitter).as = function (endpoint) {
1918
1947
  // Inline function 'kotlin.collections.distinctBy' call
1919
1948
  var this_0 = importReferences(endpoint);
1920
1949
  var set = HashSet_init_$Create$();
@@ -1922,7 +1951,7 @@ protoOf(TypeScriptIrEmitter).zv = function (endpoint) {
1922
1951
  var _iterator__ex2g4s = this_0.t();
1923
1952
  while (_iterator__ex2g4s.u()) {
1924
1953
  var e = _iterator__ex2g4s.v();
1925
- var key = e.az_1;
1954
+ var key = e.bv_1;
1926
1955
  if (set.x(key)) {
1927
1956
  list.x(e);
1928
1957
  }
@@ -1933,7 +1962,7 @@ protoOf(TypeScriptIrEmitter).zv = function (endpoint) {
1933
1962
  var _iterator__ex2g4s_0 = list.t();
1934
1963
  while (_iterator__ex2g4s_0.u()) {
1935
1964
  var item = _iterator__ex2g4s_0.v();
1936
- var tmp$ret$2 = import_0('../model', item.az_1, true);
1965
+ var tmp$ret$2 = import_0('../model', item.bv_1, true);
1937
1966
  destination.x(tmp$ret$2);
1938
1967
  }
1939
1968
  var imports = destination;
@@ -1942,25 +1971,25 @@ protoOf(TypeScriptIrEmitter).zv = function (endpoint) {
1942
1971
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1943
1972
  var this_1 = stripTrailingSpaceFromErrorMessage(convert_3(endpoint));
1944
1973
  var scope = new TransformScope(this_1);
1945
- scope.i1z(transformPatternSwitchToValueSwitch());
1946
- var tmp = scope.d1z_1;
1974
+ scope.k1v(transformPatternSwitchToValueSwitch());
1975
+ var tmp = scope.f1v_1;
1947
1976
  var tmp$ret$7 = isInterface(tmp, Element) ? tmp : THROW_CCE();
1948
1977
  // Inline function 'kotlin.let' call
1949
- var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).w1r(Companion_getInstance().m1l(sanitize(this, endpoint.ut_1))), _get_sanitizationConfig__sns434(this));
1978
+ var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).y1n(Companion_getInstance().n1h(sanitize(this, endpoint.up_1))), _get_sanitizationConfig__sns434(this));
1950
1979
  var tmp_0;
1951
1980
  // Inline function 'kotlin.collections.isNotEmpty' call
1952
1981
  if (!imports.r()) {
1953
- tmp_0 = it.w1r(VOID, plus_1(imports, it.t1r_1));
1982
+ tmp_0 = it.y1n(VOID, plus_1(imports, it.v1n_1));
1954
1983
  } else {
1955
1984
  tmp_0 = it;
1956
1985
  }
1957
1986
  return tmp_0;
1958
1987
  };
1959
- protoOf(TypeScriptIrEmitter).nv = function (channel) {
1988
+ protoOf(TypeScriptIrEmitter).or = function (channel) {
1960
1989
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1961
1990
  };
1962
- protoOf(TypeScriptIrEmitter).w1z = function (endpoint) {
1963
- var endpointName = endpoint.ut_1.n1();
1991
+ protoOf(TypeScriptIrEmitter).y1v = function (endpoint) {
1992
+ var endpointName = endpoint.up_1.l1();
1964
1993
  var methodName = firstToLower(this, endpointName);
1965
1994
  // Inline function 'kotlin.collections.distinctBy' call
1966
1995
  var this_0 = importReferences(endpoint);
@@ -1969,7 +1998,7 @@ protoOf(TypeScriptIrEmitter).w1z = function (endpoint) {
1969
1998
  var _iterator__ex2g4s = this_0.t();
1970
1999
  while (_iterator__ex2g4s.u()) {
1971
2000
  var e = _iterator__ex2g4s.v();
1972
- var key = e.az_1;
2001
+ var key = e.bv_1;
1973
2002
  if (set.x(key)) {
1974
2003
  list.x(e);
1975
2004
  }
@@ -1980,7 +2009,7 @@ protoOf(TypeScriptIrEmitter).w1z = function (endpoint) {
1980
2009
  var _iterator__ex2g4s_0 = list.t();
1981
2010
  while (_iterator__ex2g4s_0.u()) {
1982
2011
  var item = _iterator__ex2g4s_0.v();
1983
- var tmp$ret$2 = import_0('../model', item.az_1, true);
2012
+ var tmp$ret$2 = import_0('../model', item.bv_1, true);
1984
2013
  destination.x(tmp$ret$2);
1985
2014
  }
1986
2015
  var imports = destination;
@@ -2002,7 +2031,7 @@ protoOf(TypeScriptIrEmitter).w1z = function (endpoint) {
2002
2031
  }
2003
2032
  var requestArgs = tmp_0;
2004
2033
  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 ');
2005
- var tmp_1 = Companion_getInstance().m1l('client/' + endpointName + 'Client');
2034
+ var tmp_1 = Companion_getInstance().n1h('client/' + endpointName + 'Client');
2006
2035
  // Inline function 'kotlin.collections.buildList' call
2007
2036
  // Inline function 'kotlin.collections.buildListInternal' call
2008
2037
  // Inline function 'kotlin.apply' call
@@ -2011,25 +2040,25 @@ protoOf(TypeScriptIrEmitter).w1z = function (endpoint) {
2011
2040
  this_1.x(import_0('../endpoint/' + endpointName, endpointName));
2012
2041
  this_1.f1(imports);
2013
2042
  this_1.x(new RawElement(code));
2014
- var tmp$ret$10 = this_1.u5();
2043
+ var tmp$ret$10 = this_1.o5();
2015
2044
  return new File(tmp_1, tmp$ret$10);
2016
2045
  };
2017
- protoOf(TypeScriptIrEmitter).u1z = function (endpoints, logger) {
2018
- logger.iv('Emitting main Client for ' + endpoints.b1() + ' endpoints');
2046
+ protoOf(TypeScriptIrEmitter).w1v = function (endpoints, logger) {
2047
+ logger.jr('Emitting main Client for ' + endpoints.a1() + ' endpoints');
2019
2048
  // Inline function 'kotlin.collections.map' call
2020
2049
  // Inline function 'kotlin.collections.mapTo' call
2021
2050
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(endpoints, 10));
2022
2051
  var _iterator__ex2g4s = endpoints.t();
2023
2052
  while (_iterator__ex2g4s.u()) {
2024
2053
  var item = _iterator__ex2g4s.v();
2025
- var methodName = firstToLower(this, item.ut_1.n1());
2026
- var tmp$ret$0 = import_0('./client/' + item.ut_1.n1() + 'Client', methodName + 'Client');
2054
+ var methodName = firstToLower(this, item.up_1.l1());
2055
+ var tmp$ret$0 = import_0('./client/' + item.up_1.l1() + 'Client', methodName + 'Client');
2027
2056
  destination.x(tmp$ret$0);
2028
2057
  }
2029
2058
  var clientImports = destination;
2030
2059
  var spreadEntries = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emitClient$lambda(this));
2031
2060
  var code = trimMargin('\n |export const client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n |' + spreadEntries + '\n |})\n ');
2032
- var tmp = Companion_getInstance().m1l('Client');
2061
+ var tmp = Companion_getInstance().n1h('Client');
2033
2062
  // Inline function 'kotlin.collections.buildList' call
2034
2063
  // Inline function 'kotlin.collections.buildListInternal' call
2035
2064
  // Inline function 'kotlin.apply' call
@@ -2037,15 +2066,15 @@ protoOf(TypeScriptIrEmitter).u1z = function (endpoints, logger) {
2037
2066
  this_0.x(import_0('./Wirespec', 'Wirespec'));
2038
2067
  this_0.f1(clientImports);
2039
2068
  this_0.x(new RawElement(code));
2040
- var tmp$ret$6 = this_0.u5();
2069
+ var tmp$ret$6 = this_0.o5();
2041
2070
  return new File(tmp, tmp$ret$6);
2042
2071
  };
2043
2072
  function transformPatternSwitchToValueSwitch() {
2044
2073
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2045
2074
  // Inline function 'kotlin.apply' call
2046
2075
  var this_0 = new TransformerBuilder();
2047
- this_0.k1z(transformPatternSwitchToValueSwitch$lambda);
2048
- return this_0.w1m();
2076
+ this_0.m1v(transformPatternSwitchToValueSwitch$lambda);
2077
+ return this_0.x1i();
2049
2078
  }
2050
2079
  function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
2051
2080
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -2053,19 +2082,19 @@ function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
2053
2082
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
2054
2083
  var tmp = scope;
2055
2084
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
2056
- var this_0 = scope.d1z_1;
2085
+ var this_0 = scope.f1v_1;
2057
2086
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2058
2087
  // Inline function 'kotlin.apply' call
2059
2088
  var this_1 = new TransformerBuilder();
2060
- this_1.v1m(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
2061
- var tmp$ret$2 = this_1.w1m();
2062
- tmp.d1z_1 = transform(this_0, tmp$ret$2);
2063
- var tmp_0 = scope.d1z_1;
2089
+ this_1.w1i(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
2090
+ var tmp$ret$2 = this_1.x1i();
2091
+ tmp.f1v_1 = transform(this_0, tmp$ret$2);
2092
+ var tmp_0 = scope.f1v_1;
2064
2093
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2065
2094
  }
2066
2095
  function buildApiConst(endpoint) {
2067
2096
  // Inline function 'kotlin.text.replaceFirstChar' call
2068
- var this_0 = endpoint.ut_1.n1();
2097
+ var this_0 = endpoint.up_1.l1();
2069
2098
  var tmp;
2070
2099
  // Inline function 'kotlin.text.isNotEmpty' call
2071
2100
  if (charSequenceLength(this_0) > 0) {
@@ -2079,8 +2108,8 @@ function buildApiConst(endpoint) {
2079
2108
  tmp = this_0;
2080
2109
  }
2081
2110
  var apiName = tmp;
2082
- var method = endpoint.vt_1.g3_1;
2083
- var pathString = joinToString(endpoint.wt_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
2111
+ var method = endpoint.vp_1.a3_1;
2112
+ var pathString = joinToString(endpoint.wp_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
2084
2113
  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 '));
2085
2114
  }
2086
2115
  function bindCallToRequestParams(_this__u8e3s4) {
@@ -2089,21 +2118,21 @@ function bindCallToRequestParams(_this__u8e3s4) {
2089
2118
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
2090
2119
  var tmp = scope;
2091
2120
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
2092
- var this_0 = scope.d1z_1;
2121
+ var this_0 = scope.f1v_1;
2093
2122
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2094
2123
  // Inline function 'kotlin.apply' call
2095
2124
  var this_1 = new TransformerBuilder();
2096
- this_1.v1m(bindCallToRequestParams$lambda);
2097
- var tmp$ret$2 = this_1.w1m();
2098
- tmp.d1z_1 = transform(this_0, tmp$ret$2);
2099
- var tmp_0 = scope.d1z_1;
2125
+ this_1.w1i(bindCallToRequestParams$lambda);
2126
+ var tmp$ret$2 = this_1.x1i();
2127
+ tmp.f1v_1 = transform(this_0, tmp$ret$2);
2128
+ var tmp_0 = scope.f1v_1;
2100
2129
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2101
2130
  }
2102
2131
  function stripTrailingSpaceFromErrorMessage(_this__u8e3s4) {
2103
2132
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2104
2133
  var scope = new TransformScope(_this__u8e3s4);
2105
- scope.k1z(stripTrailingSpaceFromErrorMessage$lambda);
2106
- var tmp = scope.d1z_1;
2134
+ scope.m1v(stripTrailingSpaceFromErrorMessage$lambda);
2135
+ var tmp = scope.f1v_1;
2107
2136
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
2108
2137
  }
2109
2138
  function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
@@ -2111,7 +2140,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2111
2140
  if (!(stmt instanceof Switch)) {
2112
2141
  tmp = true;
2113
2142
  } else {
2114
- var tmp0 = stmt.f1u_1;
2143
+ var tmp0 = stmt.h1q_1;
2115
2144
  var tmp$ret$0;
2116
2145
  $l$block_0: {
2117
2146
  // Inline function 'kotlin.collections.none' call
@@ -2128,7 +2157,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2128
2157
  var _iterator__ex2g4s = tmp0.t();
2129
2158
  while (_iterator__ex2g4s.u()) {
2130
2159
  var element = _iterator__ex2g4s.v();
2131
- if (!(element.m1u_1 == null)) {
2160
+ if (!(element.o1q_1 == null)) {
2132
2161
  tmp$ret$0 = false;
2133
2162
  break $l$block_0;
2134
2163
  }
@@ -2139,11 +2168,11 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2139
2168
  }
2140
2169
  if (tmp)
2141
2170
  return transformChildren(stmt, tr);
2142
- var tmp0_safe_receiver = stmt.h1u_1;
2143
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1q();
2171
+ var tmp0_safe_receiver = stmt.j1q_1;
2172
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1m();
2144
2173
  var varName = tmp1_elvis_lhs == null ? 'r' : tmp1_elvis_lhs;
2145
2174
  // Inline function 'kotlin.collections.map' call
2146
- var this_0 = stmt.f1u_1;
2175
+ var this_0 = stmt.h1q_1;
2147
2176
  // Inline function 'kotlin.collections.mapTo' call
2148
2177
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2149
2178
  var _iterator__ex2g4s_0 = this_0.t();
@@ -2151,38 +2180,39 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2151
2180
  var item = _iterator__ex2g4s_0.v();
2152
2181
  var tmp$ret$5;
2153
2182
  $l$block_1: {
2154
- var tmp_1 = item.m1u_1;
2183
+ var tmp_1 = item.o1q_1;
2155
2184
  var tmp0_safe_receiver_0 = tmp_1 instanceof Custom_0 ? tmp_1 : null;
2156
- var typeName = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.f1n_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);
2185
+ var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.h1j_1;
2186
+ var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y1i();
2187
+ var tmp3_safe_receiver = typeName == null ? null : substringAfterLast(typeName, '.');
2188
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : removePrefix(tmp3_safe_receiver, 'Response');
2189
+ var statusNum = tmp4_safe_receiver == null ? null : toIntOrNull(tmp4_safe_receiver);
2160
2190
  if (statusNum == null || typeName == null) {
2161
2191
  // Inline function 'kotlin.collections.map' call
2162
- var this_1 = item.l1u_1;
2192
+ var this_1 = item.n1q_1;
2163
2193
  // Inline function 'kotlin.collections.mapTo' call
2164
2194
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
2165
2195
  var _iterator__ex2g4s_1 = this_1.t();
2166
2196
  while (_iterator__ex2g4s_1.u()) {
2167
2197
  var item_0 = _iterator__ex2g4s_1.v();
2168
- var tmp$ret$2 = tr.x1y(item_0);
2198
+ var tmp$ret$2 = tr.z1u(item_0);
2169
2199
  destination_0.x(tmp$ret$2);
2170
2200
  }
2171
- tmp$ret$5 = item.o1u(VOID, destination_0);
2201
+ tmp$ret$5 = item.q1q(VOID, destination_0);
2172
2202
  break $l$block_1;
2173
2203
  }
2174
- var exprCode = TypeScriptGenerator_getInstance().f20(tr.y1y(stmt.e1u_1));
2175
- var castAssignment = new Assignment(Companion_getInstance().m1l(varName), new RawExpression(exprCode + ' as ' + typeName), false);
2204
+ var exprCode = TypeScriptGenerator_getInstance().h1w(tr.a1v(stmt.g1q_1));
2205
+ var castAssignment = new Assignment(Companion_getInstance().n1h(varName), new RawExpression(exprCode + ' as ' + typeName), false);
2176
2206
  var tmp_2 = new Literal_0(statusNum, new Integer_0());
2177
2207
  var tmp_3 = listOf_0(castAssignment);
2178
2208
  // Inline function 'kotlin.collections.map' call
2179
- var this_2 = item.l1u_1;
2209
+ var this_2 = item.n1q_1;
2180
2210
  // Inline function 'kotlin.collections.mapTo' call
2181
2211
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
2182
2212
  var _iterator__ex2g4s_2 = this_2.t();
2183
2213
  while (_iterator__ex2g4s_2.u()) {
2184
2214
  var item_1 = _iterator__ex2g4s_2.v();
2185
- var tmp$ret$6 = tr.x1y(item_1);
2215
+ var tmp$ret$6 = tr.z1u(item_1);
2186
2216
  destination_1.x(tmp$ret$6);
2187
2217
  }
2188
2218
  tmp$ret$5 = new Case(tmp_2, plus_1(tmp_3, destination_1), null);
@@ -2190,19 +2220,19 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2190
2220
  destination.x(tmp$ret$5);
2191
2221
  }
2192
2222
  var transformedCases = destination;
2193
- var tmp_4 = new FieldCall(tr.y1y(stmt.e1u_1), Companion_getInstance().m1l('status'));
2194
- var tmp2_safe_receiver_0 = stmt.g1u_1;
2223
+ var tmp_4 = new FieldCall(tr.a1v(stmt.g1q_1), Companion_getInstance().n1h('status'));
2224
+ var tmp2_safe_receiver = stmt.i1q_1;
2195
2225
  var tmp_5;
2196
- if (tmp2_safe_receiver_0 == null) {
2226
+ if (tmp2_safe_receiver == null) {
2197
2227
  tmp_5 = null;
2198
2228
  } else {
2199
2229
  // Inline function 'kotlin.collections.map' call
2200
2230
  // Inline function 'kotlin.collections.mapTo' call
2201
- var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver_0, 10));
2202
- var _iterator__ex2g4s_3 = tmp2_safe_receiver_0.t();
2231
+ var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver, 10));
2232
+ var _iterator__ex2g4s_3 = tmp2_safe_receiver.t();
2203
2233
  while (_iterator__ex2g4s_3.u()) {
2204
2234
  var item_2 = _iterator__ex2g4s_3.v();
2205
- var tmp$ret$11 = tr.x1y(item_2);
2235
+ var tmp$ret$11 = tr.z1u(item_2);
2206
2236
  destination_2.x(tmp$ret$11);
2207
2237
  }
2208
2238
  tmp_5 = destination_2;
@@ -2216,42 +2246,43 @@ function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
2216
2246
  var tmp_1;
2217
2247
  var tmp_2;
2218
2248
  if (s instanceof FunctionCall) {
2219
- tmp_2 = s.x1q_1.equals(Companion_getInstance().m1l('validate'));
2249
+ tmp_2 = s.z1m_1.equals(Companion_getInstance().n1h('validate'));
2220
2250
  } else {
2221
2251
  tmp_2 = false;
2222
2252
  }
2223
2253
  if (tmp_2) {
2224
- tmp_1 = !(s.v1q_1 == null);
2254
+ tmp_1 = !(s.x1m_1 == null);
2225
2255
  } else {
2226
2256
  tmp_1 = false;
2227
2257
  }
2228
2258
  if (tmp_1) {
2229
2259
  // Inline function 'kotlin.collections.isNotEmpty' call
2230
- tmp_0 = !s.w1q_1.r();
2260
+ tmp_0 = !s.y1m_1.r();
2231
2261
  } else {
2232
2262
  tmp_0 = false;
2233
2263
  }
2234
2264
  if (tmp_0) {
2235
- var tmp_3 = first(s.w1q_1);
2265
+ var tmp_3 = first(s.y1m_1);
2236
2266
  var tmp0_safe_receiver = tmp_3 instanceof Custom_0 ? tmp_3 : null;
2237
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1n_1;
2238
- var tn = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
2239
- tmp = new FunctionCall(VOID, VOID, Companion_getInstance().m1l('validate' + tn), mapOf(to(Companion_getInstance().m1l('obj'), t.y1y(ensureNotNull(s.v1q_1)))));
2267
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1j_1;
2268
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y1i();
2269
+ var tn = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
2270
+ tmp = new FunctionCall(VOID, VOID, Companion_getInstance().n1h('validate' + tn), mapOf(to(Companion_getInstance().n1h('obj'), t.a1v(ensureNotNull(s.x1m_1)))));
2240
2271
  } else {
2241
2272
  var tmp_4;
2242
2273
  var tmp_5;
2243
2274
  if (s instanceof FieldCall) {
2244
- tmp_5 = s.p1u_1 == null;
2275
+ tmp_5 = s.r1q_1 == null;
2245
2276
  } else {
2246
2277
  tmp_5 = false;
2247
2278
  }
2248
2279
  if (tmp_5) {
2249
- tmp_4 = $fieldNames.a2(s.q1u_1.n1q());
2280
+ tmp_4 = $fieldNames.u1(s.s1q_1.q1m());
2250
2281
  } else {
2251
2282
  tmp_4 = false;
2252
2283
  }
2253
2284
  if (tmp_4) {
2254
- tmp = new FieldCall(new VariableReference(Companion_getInstance().m1l('obj')), s.q1u_1);
2285
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().n1h('obj')), s.s1q_1);
2255
2286
  } else {
2256
2287
  tmp = transformChildren(s, t);
2257
2288
  }
@@ -2265,15 +2296,15 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
2265
2296
  if (element instanceof Function) {
2266
2297
  var tmp$ret$0;
2267
2298
  $l$block: {
2268
- if (!element.b1p_1.equals(Companion_getInstance().m1l('validate'))) {
2299
+ if (!element.d1l_1.equals(Companion_getInstance().n1h('validate'))) {
2269
2300
  tmp$ret$0 = element;
2270
2301
  break $l$block;
2271
2302
  }
2272
2303
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2273
- var this_0 = element.j1p(Companion_getInstance().m1l('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().m1l('obj'), new Custom_0($typeName))));
2304
+ var this_0 = element.l1l(Companion_getInstance().n1h('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().n1h('obj'), Custom_init_$Create$($typeName))));
2274
2305
  var scope = new TransformScope(this_0);
2275
- scope.m1z(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
2276
- var tmp_0 = scope.d1z_1;
2306
+ scope.o1v(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
2307
+ var tmp_0 = scope.f1v_1;
2277
2308
  tmp$ret$0 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2278
2309
  }
2279
2310
  tmp = tmp$ret$0;
@@ -2287,10 +2318,10 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
2287
2318
  function buildApiConst$lambda(it) {
2288
2319
  var tmp;
2289
2320
  if (it instanceof Literal) {
2290
- tmp = it.xu_1;
2321
+ tmp = it.xq_1;
2291
2322
  } else {
2292
2323
  if (it instanceof Param) {
2293
- tmp = '{' + it.bu_1.n1() + '}';
2324
+ tmp = '{' + it.bq_1.l1() + '}';
2294
2325
  } else {
2295
2326
  noWhenBranchMatchedException();
2296
2327
  }
@@ -2302,23 +2333,23 @@ function bindCallToRequestParams$lambda(element, transformer) {
2302
2333
  if (element instanceof Interface) {
2303
2334
  var tmp$ret$0;
2304
2335
  $l$block: {
2305
- if (!element.l1s_1.equals(Companion_getInstance().m1l('Call'))) {
2336
+ if (!element.o1o_1.equals(Companion_getInstance().n1h('Call'))) {
2306
2337
  tmp$ret$0 = element;
2307
2338
  break $l$block;
2308
2339
  }
2309
2340
  // Inline function 'kotlin.collections.map' call
2310
- var this_0 = element.m1s_1;
2341
+ var this_0 = element.p1o_1;
2311
2342
  // Inline function 'kotlin.collections.mapTo' call
2312
2343
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2313
2344
  var _iterator__ex2g4s = this_0.t();
2314
2345
  while (_iterator__ex2g4s.u()) {
2315
2346
  var item = _iterator__ex2g4s.v();
2316
2347
  var tmp0_safe_receiver = item instanceof Function ? item : null;
2317
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1p(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().m1l('params'), new Custom_0('RequestParams'))));
2348
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1l(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().n1h('params'), Custom_init_$Create$('RequestParams'))));
2318
2349
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
2319
2350
  destination.x(tmp$ret$1);
2320
2351
  }
2321
- tmp$ret$0 = element.s1s(VOID, destination);
2352
+ tmp$ret$0 = element.v1o(VOID, destination);
2322
2353
  }
2323
2354
  tmp = tmp$ret$0;
2324
2355
  } else {
@@ -2330,7 +2361,7 @@ function bindCallToRequestParams$lambda(element, transformer) {
2330
2361
  function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2331
2362
  var tmp;
2332
2363
  if (stmt instanceof Switch) {
2333
- var tmp1_safe_receiver = stmt.g1u_1;
2364
+ var tmp1_safe_receiver = stmt.i1q_1;
2334
2365
  var tmp_0;
2335
2366
  if (tmp1_safe_receiver == null) {
2336
2367
  tmp_0 = null;
@@ -2352,7 +2383,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2352
2383
  tmp_1 = tmp0_elvis_lhs;
2353
2384
  }
2354
2385
  var errorStmt = tmp_1;
2355
- var tmp_2 = errorStmt.t1u_1;
2386
+ var tmp_2 = errorStmt.v1q_1;
2356
2387
  var tmp1_elvis_lhs = tmp_2 instanceof BinaryOp ? tmp_2 : null;
2357
2388
  var tmp_3;
2358
2389
  if (tmp1_elvis_lhs == null) {
@@ -2362,7 +2393,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2362
2393
  tmp_3 = tmp1_elvis_lhs;
2363
2394
  }
2364
2395
  var binary = tmp_3;
2365
- var tmp_4 = binary.u1u_1;
2396
+ var tmp_4 = binary.w1q_1;
2366
2397
  var tmp2_elvis_lhs = tmp_4 instanceof Literal_0 ? tmp_4 : null;
2367
2398
  var tmp_5;
2368
2399
  if (tmp2_elvis_lhs == null) {
@@ -2372,13 +2403,13 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2372
2403
  tmp_5 = tmp2_elvis_lhs;
2373
2404
  }
2374
2405
  var literal = tmp_5;
2375
- tmp$ret$0 = new ErrorStatement(new Literal_0(trimEnd(toString(literal.r1t_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.s1t_1));
2406
+ tmp$ret$0 = new ErrorStatement(new Literal_0(trimEnd(toString(literal.t1p_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.u1p_1));
2376
2407
  }
2377
2408
  destination.x(tmp$ret$0);
2378
2409
  }
2379
2410
  tmp_0 = destination;
2380
2411
  }
2381
- tmp = transformChildren(stmt.j1u(VOID, VOID, tmp_0), transformer);
2412
+ tmp = transformChildren(stmt.l1q(VOID, VOID, tmp_0), transformer);
2382
2413
  } else {
2383
2414
  tmp = transformChildren(stmt, transformer);
2384
2415
  }
@@ -2388,8 +2419,8 @@ function TypeScriptRefinedTypeDefinitionEmitter() {
2388
2419
  }
2389
2420
  function TypeScriptShared() {
2390
2421
  TypeScriptShared_instance = this;
2391
- this.n24_1 = 'community.flock.wirespec';
2392
- this.o24_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 ');
2422
+ this.s20_1 = 'community.flock.wirespec';
2423
+ this.t20_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 ');
2393
2424
  }
2394
2425
  protoOf(TypeScriptShared).toString = function () {
2395
2426
  return 'TypeScriptShared';
@@ -2411,7 +2442,7 @@ function TypeScriptShared_getInstance() {
2411
2442
  return TypeScriptShared_instance;
2412
2443
  }
2413
2444
  function TypeScriptTypeDefinitionEmitter$sanitizeSymbol$lambda(it) {
2414
- return isLetterOrDigit(it.i1_1) || listOf_0(new Char(_Char___init__impl__6a9atx(95))).a2(it);
2445
+ return isLetterOrDigit(it.h1_1) || listOf_0(new Char(_Char___init__impl__6a9atx(95))).u1(it);
2415
2446
  }
2416
2447
  function TypeScriptTypeDefinitionEmitter$emit$lambda(it) {
2417
2448
  // Inline function 'kotlin.text.trimStart' call
@@ -2419,29 +2450,29 @@ function TypeScriptTypeDefinitionEmitter$emit$lambda(it) {
2419
2450
  }
2420
2451
  function TypeScriptTypeDefinitionEmitter$emit$lambda_0(this$0) {
2421
2452
  return function (it) {
2422
- return this$0.mu(it);
2453
+ return this$0.mq(it);
2423
2454
  };
2424
2455
  }
2425
2456
  function TypeScriptTypeDefinitionEmitter() {
2426
2457
  }
2427
2458
  //region block: post-declaration
2428
- protoOf(TypeScriptEmitter).ku = emit_3;
2429
- protoOf(TypeScriptEmitter).lu = emit_6;
2430
- protoOf(TypeScriptEmitter).mu = emit_7;
2431
- protoOf(TypeScriptEmitter).nu = emit_4;
2432
- protoOf(TypeScriptEmitter).ou = emit_5;
2433
- protoOf(TypeScriptEmitter).yv = emit_8;
2434
- protoOf(TypeScriptEmitter).tv = emit_9;
2435
- protoOf(TypeScriptEmitter).zv = emit_10;
2436
- protoOf(TypeScriptEmitter).mv = emit_2;
2437
- protoOf(TypeScriptEmitter).aw = emitValidator;
2438
- protoOf(TypeScriptEmitter).i24 = sanitizeSymbol;
2439
- protoOf(TypeScriptEmitter).z20 = sanitizeSymbol_0;
2440
- protoOf(TypeScriptEmitter).j24 = emitPrimitive;
2441
- protoOf(TypeScriptEmitter).h24 = emitClient;
2442
- protoOf(TypeScriptEmitter).qu = emitClientEndpointRequest;
2443
- protoOf(TypeScriptIrEmitter).s1z = emit_1;
2444
- protoOf(TypeScriptIrEmitter).v1z = beforeGenerate;
2459
+ protoOf(TypeScriptEmitter).kq = emit_3;
2460
+ protoOf(TypeScriptEmitter).lq = emit_6;
2461
+ protoOf(TypeScriptEmitter).mq = emit_7;
2462
+ protoOf(TypeScriptEmitter).nq = emit_4;
2463
+ protoOf(TypeScriptEmitter).oq = emit_5;
2464
+ protoOf(TypeScriptEmitter).zr = emit_8;
2465
+ protoOf(TypeScriptEmitter).ur = emit_10;
2466
+ protoOf(TypeScriptEmitter).as = emit_9;
2467
+ protoOf(TypeScriptEmitter).nr = emit_2;
2468
+ protoOf(TypeScriptEmitter).bs = emitValidator;
2469
+ protoOf(TypeScriptEmitter).n20 = sanitizeSymbol;
2470
+ protoOf(TypeScriptEmitter).d1x = sanitizeSymbol_0;
2471
+ protoOf(TypeScriptEmitter).o20 = emitPrimitive;
2472
+ protoOf(TypeScriptEmitter).m20 = emitClient;
2473
+ protoOf(TypeScriptEmitter).qq = emitClientEndpointRequest;
2474
+ protoOf(TypeScriptIrEmitter).u1v = emit_1;
2475
+ protoOf(TypeScriptIrEmitter).x1v = beforeGenerate;
2445
2476
  //endregion
2446
2477
  //region block: exports
2447
2478
  export {