@flock/wirespec 0.19.6 → 0.20.0-RC.2

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 (72) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-core.mjs +167 -167
  3. package/clikt-clikt-mordant.mjs +81 -81
  4. package/clikt-clikt-mordant.mjs.map +1 -1
  5. package/clikt-clikt.mjs +1636 -1636
  6. package/clikt-clikt.mjs.map +1 -1
  7. package/colormath-root-colormath.mjs +448 -448
  8. package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
  9. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
  10. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
  11. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
  12. package/kotest-kotest-common.mjs +56 -0
  13. package/kotest-kotest-common.mjs.map +1 -0
  14. package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
  15. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
  16. package/kotest-kotest-property.mjs +2501 -0
  17. package/kotest-kotest-property.mjs.map +1 -0
  18. package/kotlin-kotlin-stdlib.mjs +5204 -2422
  19. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  20. package/kotlin-openapi-bindings.mjs +10243 -10243
  21. package/kotlin-openapi-bindings.mjs.map +1 -1
  22. package/kotlin-rgxgen.mjs +1846 -1846
  23. package/kotlin-rgxgen.mjs.map +1 -1
  24. package/kotlinx-coroutines-test.mjs +4 -0
  25. package/kotlinx-coroutines-test.mjs.map +1 -0
  26. package/kotlinx-io-kotlinx-io-core.mjs +455 -455
  27. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  28. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2135 -2101
  29. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  30. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1579 -1579
  31. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  32. package/mordant-mordant.mjs +1435 -1435
  33. package/package.json +5 -1
  34. package/wirespec-generator.d.ts +51 -0
  35. package/wirespec-generator.mjs +9 -0
  36. package/wirespec-src-compiler-core.mjs +1599 -1599
  37. package/wirespec-src-compiler-emitters-java.mjs +444 -444
  38. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  39. package/wirespec-src-compiler-emitters-kotlin.mjs +372 -372
  40. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  41. package/wirespec-src-compiler-emitters-python.mjs +454 -454
  42. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  43. package/wirespec-src-compiler-emitters-rust.mjs +480 -480
  44. package/wirespec-src-compiler-emitters-scala.mjs +194 -194
  45. package/wirespec-src-compiler-emitters-typescript.mjs +499 -499
  46. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  47. package/wirespec-src-compiler-emitters-wirespec.mjs +82 -82
  48. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  49. package/wirespec-src-compiler-ir.mjs +3881 -3857
  50. package/wirespec-src-compiler-ir.mjs.map +1 -1
  51. package/wirespec-src-compiler-lib.mjs +457 -457
  52. package/wirespec-src-compiler-lib.mjs.map +1 -1
  53. package/wirespec-src-converter-avro.mjs +521 -521
  54. package/wirespec-src-converter-avro.mjs.map +1 -1
  55. package/wirespec-src-converter-openapi.mjs +859 -859
  56. package/wirespec-src-converter-openapi.mjs.map +1 -1
  57. package/wirespec-src-ide-lsp.mjs +1387 -1387
  58. package/wirespec-src-ide-lsp.mjs.map +1 -1
  59. package/wirespec-src-integration-kotest.mjs +1647 -0
  60. package/wirespec-src-integration-kotest.mjs.map +1 -0
  61. package/wirespec-src-plugin-arguments.mjs +192 -192
  62. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  63. package/wirespec-src-plugin-cli.mjs +109 -109
  64. package/wirespec-src-plugin-npm.d.mts +21 -0
  65. package/wirespec-src-plugin-npm.mjs +43 -43
  66. package/wirespec-src-plugin-npm.mjs.map +1 -1
  67. package/wirespec-src-tools-generator.mjs +35 -35
  68. package/wirespec-src-tools-generator.mjs.map +1 -1
  69. package/xmlutil-core.mjs +4 -0
  70. package/xmlutil-core.mjs.map +1 -0
  71. package/xmlutil-serialization.mjs +4 -0
  72. package/xmlutil-serialization.mjs.map +1 -0
@@ -209,10 +209,10 @@ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, V
209
209
  function emit_3(identifier) {
210
210
  var tmp;
211
211
  if (identifier instanceof DefinitionIdentifier) {
212
- tmp = this.w1x(identifier);
212
+ tmp = this.h21(identifier);
213
213
  } else {
214
214
  if (identifier instanceof FieldIdentifier) {
215
- tmp = this.m1x(this.w1x(identifier));
215
+ tmp = this.x20(this.h21(identifier));
216
216
  } else {
217
217
  noWhenBranchMatchedException();
218
218
  }
@@ -221,7 +221,7 @@ function emit_3(identifier) {
221
221
  }
222
222
  function sanitize(_this__u8e3s4) {
223
223
  // Inline function 'kotlin.collections.mapIndexed' call
224
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
224
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
225
225
  // Inline function 'kotlin.collections.mapIndexedTo' call
226
226
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
227
227
  var index = 0;
@@ -230,8 +230,8 @@ function sanitize(_this__u8e3s4) {
230
230
  var item = _iterator__ex2g4s.v();
231
231
  var _unary__edvuaz = index;
232
232
  index = _unary__edvuaz + 1 | 0;
233
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.er(item) : item;
234
- destination.x(tmp$ret$0);
233
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.pu(item) : item;
234
+ destination.y(tmp$ret$0);
235
235
  }
236
236
  // Inline function 'kotlin.text.filter' call
237
237
  var tmp0 = joinToString(destination, '');
@@ -268,42 +268,42 @@ function sanitize(_this__u8e3s4) {
268
268
  return tmp;
269
269
  }
270
270
  function sanitizeKeywords(_this__u8e3s4) {
271
- return Companion_getInstance_0().g1z_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
271
+ return Companion_getInstance_0().r22_1.v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
272
272
  }
273
273
  initMetadataForInterface(PythonIdentifierEmitter, 'PythonIdentifierEmitter');
274
274
  function emit_4(type, module_0) {
275
275
  var tmp;
276
- if (type.mp_1.ip_1.r()) {
277
- var tmp_0 = this.nr(type.lp_1);
276
+ if (type.xs_1.ts_1.r()) {
277
+ var tmp_0 = this.yu(type.ws_1);
278
278
  var tmp_1 = Spacer_instance.toString();
279
279
  var tmp_2 = importReferences(type);
280
280
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_0 + ':\n |' + tmp_1 + 'pass\n |\n |' + joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda(this)) + '\n |\n ');
281
281
  } else {
282
- var tmp_3 = this.nr(type.lp_1);
283
- var tmp_4 = this.lq(type.mp_1);
282
+ var tmp_3 = this.yu(type.ws_1);
283
+ var tmp_4 = this.wt(type.xs_1);
284
284
  var tmp_5 = importReferences(type);
285
285
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_3 + ':\n |' + tmp_4 + '\n |\n |' + joinToString(tmp_5, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_0(this)) + '\n ');
286
286
  }
287
287
  return tmp;
288
288
  }
289
289
  function emit_5(_this__u8e3s4) {
290
- return joinToString(_this__u8e3s4.ip_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
290
+ return joinToString(_this__u8e3s4.ts_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
291
291
  }
292
292
  function emit_6(_this__u8e3s4) {
293
- return this.nr(_this__u8e3s4.qp_1) + ": '" + this.nq(_this__u8e3s4.rp_1) + "'";
293
+ return this.yu(_this__u8e3s4.bt_1) + ": '" + this.yt(_this__u8e3s4.ct_1) + "'";
294
294
  }
295
295
  function emit_7(_this__u8e3s4) {
296
296
  // Inline function 'kotlin.let' call
297
- var it = this.e1z(_this__u8e3s4);
298
- return _this__u8e3s4.tu() ? 'Optional[' + it + ']' : it;
297
+ var it = this.p22(_this__u8e3s4);
298
+ return _this__u8e3s4.ey() ? 'Optional[' + it + ']' : it;
299
299
  }
300
300
  function emitType(_this__u8e3s4) {
301
301
  var tmp;
302
302
  if (_this__u8e3s4 instanceof Dict) {
303
- tmp = 'Dict[str, ' + this.nq(_this__u8e3s4.so_1) + ']';
303
+ tmp = 'Dict[str, ' + this.yt(_this__u8e3s4.ds_1) + ']';
304
304
  } else {
305
305
  if (_this__u8e3s4 instanceof Iterable) {
306
- tmp = 'List[' + this.nq(_this__u8e3s4.po_1) + ']';
306
+ tmp = 'List[' + this.yt(_this__u8e3s4.as_1) + ']';
307
307
  } else {
308
308
  if (_this__u8e3s4 instanceof Unit) {
309
309
  tmp = 'None';
@@ -312,10 +312,10 @@ function emitType(_this__u8e3s4) {
312
312
  tmp = 'Any';
313
313
  } else {
314
314
  if (_this__u8e3s4 instanceof Custom) {
315
- tmp = _this__u8e3s4.bv_1;
315
+ tmp = _this__u8e3s4.my_1;
316
316
  } else {
317
317
  if (_this__u8e3s4 instanceof Primitive) {
318
- tmp = this.c1z(_this__u8e3s4.fv_1);
318
+ tmp = this.n22(_this__u8e3s4.qy_1);
319
319
  } else {
320
320
  noWhenBranchMatchedException();
321
321
  }
@@ -354,10 +354,10 @@ function emit_8(_this__u8e3s4) {
354
354
  function emit_9(_this__u8e3s4) {
355
355
  var tmp;
356
356
  if (_this__u8e3s4 instanceof RegExp_0) {
357
- tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.pt_1) + '", self.value))';
357
+ tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ax_1) + '", self.value))';
358
358
  } else {
359
359
  if (_this__u8e3s4 instanceof Bound) {
360
- var tmp1_safe_receiver = _this__u8e3s4.fu_1;
360
+ var tmp1_safe_receiver = _this__u8e3s4.qx_1;
361
361
  var tmp_0;
362
362
  if (tmp1_safe_receiver == null) {
363
363
  tmp_0 = null;
@@ -366,7 +366,7 @@ function emit_9(_this__u8e3s4) {
366
366
  tmp_0 = tmp1_safe_receiver + ' < self.value';
367
367
  }
368
368
  var minCheck = tmp_0;
369
- var tmp2_safe_receiver = _this__u8e3s4.gu_1;
369
+ var tmp2_safe_receiver = _this__u8e3s4.rx_1;
370
370
  var tmp_1;
371
371
  if (tmp2_safe_receiver == null) {
372
372
  tmp_1 = null;
@@ -392,70 +392,31 @@ function emit_9(_this__u8e3s4) {
392
392
  return tmp;
393
393
  }
394
394
  function emitReferenceCustomImports(_this__u8e3s4) {
395
- return 'from ..model.' + _this__u8e3s4.bv_1 + ' import ' + _this__u8e3s4.bv_1;
395
+ return 'from ..model.' + _this__u8e3s4.my_1 + ' import ' + _this__u8e3s4.my_1;
396
396
  }
397
397
  initMetadataForInterface(PythonTypeDefinitionEmitter, 'PythonTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, PythonIdentifierEmitter]);
398
- function emit_10(refined) {
399
- return trimMargin('\n |@dataclass\n |class ' + this.w1x(refined.sr_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.e1z(refined.tr_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.hs(2) + 'return ' + this.bs(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.hs(2) + 'return str(self.value)\n |\n ');
398
+ function emit_10(enum_0, module_0) {
399
+ var tmp = this.h21(enum_0.iv_1);
400
+ return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.jv_1, '\n', VOID, VOID, VOID, VOID, PythonEnumDefinitionEmitter$emit$lambda(this)) + '\n |\n |' + Spacer_instance.toString() + '@property\n |' + Spacer_instance.toString() + 'def label(self) -> str:\n |' + Spacer_instance.sv(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.sv(2) + 'return self.value\n ');
400
401
  }
401
- function emitValidator(_this__u8e3s4) {
402
- var defaultReturn = 'True';
403
- var type = _this__u8e3s4.tr_1.fv_1;
404
- var tmp;
405
- if (type instanceof Integer) {
406
- var tmp0_safe_receiver = type.ku_1;
407
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.oq(tmp0_safe_receiver);
408
- tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
409
- } else {
410
- if (type instanceof Number_0) {
411
- var tmp2_safe_receiver = type.nu_1;
412
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.oq(tmp2_safe_receiver);
413
- tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
414
- } else {
415
- if (type instanceof String_0) {
416
- var tmp4_safe_receiver = type.hu_1;
417
- var tmp_0;
418
- var tmp_1 = tmp4_safe_receiver;
419
- if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
420
- tmp_0 = null;
421
- } else {
422
- tmp_0 = this.oq(new RegExp_0(tmp4_safe_receiver));
423
- }
424
- var tmp5_elvis_lhs = tmp_0;
425
- tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
426
- } else {
427
- if (equals(type, Boolean_instance)) {
428
- tmp = defaultReturn;
429
- } else {
430
- if (equals(type, Bytes_instance)) {
431
- tmp = defaultReturn;
432
- } else {
433
- noWhenBranchMatchedException();
434
- }
435
- }
436
- }
437
- }
438
- }
439
- return tmp;
440
- }
441
- initMetadataForInterface(PythonRefinedTypeDefinitionEmitter, 'PythonRefinedTypeDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter, PythonIdentifierEmitter]);
402
+ initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
442
403
  function emit_11(endpoint) {
443
404
  var tmp = importReferences(endpoint);
444
405
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda(this));
445
- var tmp_1 = this.nr(endpoint.up_1);
446
- var tmp_2 = spacer(this.j1x(first(endpoint.zp_1), endpoint), 1);
447
- var tmp_3 = distinctByStatus(endpoint.aq_1);
406
+ var tmp_1 = this.yu(endpoint.ft_1);
407
+ var tmp_2 = spacer(this.u20(first(endpoint.kt_1), endpoint), 1);
408
+ var tmp_3 = distinctByStatus(endpoint.lt_1);
448
409
  return trimMargin('\n |' + tmp_0 + '\n |\n |class ' + tmp_1 + ' (Wirespec.Endpoint):\n |' + tmp_2 + '\n |' + spacer(joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_0(this, endpoint)), 1) + '\n |' + spacer(emitResponseUnion(this, endpoint), 1) + '\n |' + spacer(emitHandleClass(this, endpoint), 1) + '\n |' + spacer(emitConvertClass(this, endpoint), 1) + '\n |\n ');
449
410
  }
450
411
  function emit_12(_this__u8e3s4, endpoint) {
451
- var tmp = emit_18(this, _this__u8e3s4.dq_1);
412
+ var tmp = emit_18(this, _this__u8e3s4.ot_1);
452
413
  var tmp_0 = get_pathParams(endpoint);
453
414
  var tmp_1 = emitObject$default(this, tmp_0, 'Path', 'Wirespec.Request.Path', VOID, PythonEndpointDefinitionEmitter$emit$lambda_1(this));
454
- var tmp_2 = emitObject$default(this, endpoint.xp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
455
- var tmp_3 = emitObject$default(this, endpoint.yp_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
415
+ var tmp_2 = emitObject$default(this, endpoint.it_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
416
+ var tmp_3 = emitObject$default(this, endpoint.jt_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
456
417
  var tmp_4 = Spacer_instance.toString();
457
418
  var tmp_5 = Spacer_instance.toString();
458
- var tmp_6 = emit_18(this, _this__u8e3s4.dq_1);
419
+ var tmp_6 = emit_18(this, _this__u8e3s4.ot_1);
459
420
  var tmp_7 = Spacer_instance.toString();
460
421
  var tmp_8 = Spacer_instance.toString();
461
422
  var tmp_9 = Spacer_instance.toString();
@@ -471,46 +432,85 @@ function emit_12(_this__u8e3s4, endpoint) {
471
432
  var tmp_19 = Spacer_instance.toString();
472
433
  var tmp_20 = Spacer_instance.toString();
473
434
  var tmp_21 = Spacer_instance.toString();
474
- var tmp_22 = emit_18(this, _this__u8e3s4.dq_1);
435
+ var tmp_22 = emit_18(this, _this__u8e3s4.ot_1);
475
436
  var tmp_23 = Spacer_instance.toString();
476
437
  var tmp_24 = Spacer_instance.toString();
477
438
  var tmp_25 = Spacer_instance.toString();
478
439
  var tmp_26 = Spacer_instance.toString();
479
440
  var tmp_27 = Spacer_instance.toString();
480
441
  var tmp_28 = paramList(_this__u8e3s4, endpoint);
481
- return trimMargin('\n |@dataclass\n |class Request(Wirespec.Request[' + tmp + ']):\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n |\n |' + tmp_4 + '@property\n |' + tmp_5 + 'def body(self) -> ' + tmp_6 + ':\n |' + tmp_7 + tmp_8 + 'return self._body\n |\n |' + tmp_9 + '@property\n |' + tmp_10 + 'def path(self) -> Path:\n |' + tmp_11 + tmp_12 + 'return self._path\n |\n |' + tmp_13 + '@property\n |' + tmp_14 + 'def queries(self) -> Queries:\n |' + tmp_15 + tmp_16 + 'return self._queries\n |\n |' + tmp_17 + '@property\n |' + tmp_18 + 'def headers(self) -> Headers:\n |' + tmp_19 + tmp_20 + 'return self._headers\n |\n |' + tmp_21 + '_body: ' + tmp_22 + '\n |' + tmp_23 + '_headers: Headers\n |' + tmp_24 + '_queries: Queries\n |' + tmp_25 + '_path: Path\n |' + tmp_26 + 'method: Wirespec.Method = Wirespec.Method.' + endpoint.vp_1.a3_1 + '\n |\n |' + tmp_27 + 'def __init__(self, ' + joinToString(tmp_28, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_4(this)) + '):\n |' + spacer(emitAssignSelf_0(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
442
+ return trimMargin('\n |@dataclass\n |class Request(Wirespec.Request[' + tmp + ']):\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n |\n |' + tmp_4 + '@property\n |' + tmp_5 + 'def body(self) -> ' + tmp_6 + ':\n |' + tmp_7 + tmp_8 + 'return self._body\n |\n |' + tmp_9 + '@property\n |' + tmp_10 + 'def path(self) -> Path:\n |' + tmp_11 + tmp_12 + 'return self._path\n |\n |' + tmp_13 + '@property\n |' + tmp_14 + 'def queries(self) -> Queries:\n |' + tmp_15 + tmp_16 + 'return self._queries\n |\n |' + tmp_17 + '@property\n |' + tmp_18 + 'def headers(self) -> Headers:\n |' + tmp_19 + tmp_20 + 'return self._headers\n |\n |' + tmp_21 + '_body: ' + tmp_22 + '\n |' + tmp_23 + '_headers: Headers\n |' + tmp_24 + '_queries: Queries\n |' + tmp_25 + '_path: Path\n |' + tmp_26 + 'method: Wirespec.Method = Wirespec.Method.' + endpoint.gt_1.b3_1 + '\n |\n |' + tmp_27 + 'def __init__(self, ' + joinToString(tmp_28, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_4(this)) + '):\n |' + spacer(emitAssignSelf_0(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
482
443
  }
483
444
  function emit_13(_this__u8e3s4, endpoint) {
484
- var tmp = emit_18(this, _this__u8e3s4.iq_1);
485
- var tmp_0 = emitObject$default(this, _this__u8e3s4.hq_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
445
+ var tmp = emit_18(this, _this__u8e3s4.tt_1);
446
+ var tmp_0 = emitObject$default(this, _this__u8e3s4.st_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
486
447
  var tmp_1 = Spacer_instance.toString();
487
448
  var tmp_2 = Spacer_instance.toString();
488
449
  var tmp_3 = Spacer_instance.toString();
489
450
  var tmp_4 = Spacer_instance.toString();
490
451
  var tmp_5 = Spacer_instance.toString();
491
452
  var tmp_6 = Spacer_instance.toString();
492
- var tmp_7 = emit_18(this, _this__u8e3s4.iq_1);
453
+ var tmp_7 = emit_18(this, _this__u8e3s4.tt_1);
493
454
  var tmp_8 = Spacer_instance.toString();
494
455
  var tmp_9 = Spacer_instance.toString();
495
456
  var tmp_10 = Spacer_instance.toString();
496
- var tmp_11 = emit_18(this, _this__u8e3s4.iq_1);
457
+ var tmp_11 = emit_18(this, _this__u8e3s4.tt_1);
497
458
  var tmp_12 = Spacer_instance.toString();
498
459
  var tmp_13 = Spacer_instance.toString();
499
460
  var tmp_14 = Spacer_instance.toString();
500
461
  var tmp_15 = paramList_0(_this__u8e3s4);
501
- return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.gq_1 + '(Wirespec.Response[' + tmp + ']):\n |' + tmp_0 + '\n |\n |' + tmp_1 + '@property\n |' + tmp_2 + 'def headers(self) -> Headers:\n |' + tmp_3 + tmp_4 + 'return self._headers\n |\n |' + tmp_5 + '@property\n |' + tmp_6 + 'def body(self) -> ' + tmp_7 + ':\n |' + tmp_8 + tmp_9 + 'return self._body\n |\n |' + tmp_10 + '_body: ' + tmp_11 + '\n |' + tmp_12 + '_headers: Headers\n |' + tmp_13 + 'status: int = ' + _this__u8e3s4.gq_1 + '\n |\n |' + tmp_14 + 'def __init__(self, ' + joinToString(tmp_15, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_6(this)) + '):\n |' + spacer(emitAssignSelf_1(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
462
+ return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.rt_1 + '(Wirespec.Response[' + tmp + ']):\n |' + tmp_0 + '\n |\n |' + tmp_1 + '@property\n |' + tmp_2 + 'def headers(self) -> Headers:\n |' + tmp_3 + tmp_4 + 'return self._headers\n |\n |' + tmp_5 + '@property\n |' + tmp_6 + 'def body(self) -> ' + tmp_7 + ':\n |' + tmp_8 + tmp_9 + 'return self._body\n |\n |' + tmp_10 + '_body: ' + tmp_11 + '\n |' + tmp_12 + '_headers: Headers\n |' + tmp_13 + 'status: int = ' + _this__u8e3s4.rt_1 + '\n |\n |' + tmp_14 + 'def __init__(self, ' + joinToString(tmp_15, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_6(this)) + '):\n |' + spacer(emitAssignSelf_1(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
502
463
  }
503
464
  initMetadataForInterface(PythonEndpointDefinitionEmitter, 'PythonEndpointDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter]);
504
- function emit_14(enum_0, module_0) {
505
- var tmp = this.w1x(enum_0.xr_1);
506
- return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.yr_1, '\n', VOID, VOID, VOID, VOID, PythonEnumDefinitionEmitter$emit$lambda(this)) + '\n |\n |' + Spacer_instance.toString() + '@property\n |' + Spacer_instance.toString() + 'def label(self) -> str:\n |' + Spacer_instance.hs(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.hs(2) + 'return self.value\n ');
507
- }
508
- initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
509
- function emit_15(union) {
510
- return trimMargin('\n |class ' + this.nr(union.gp_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
465
+ function emit_14(union) {
466
+ return trimMargin('\n |class ' + this.yu(union.rs_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
511
467
  }
512
468
  initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
513
- initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonTypeDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonIdentifierEmitter, PythonChannelDefinitionEmitter, PythonEndpointDefinitionEmitter, PythonEnumDefinitionEmitter, PythonUnionDefinitionEmitter]);
469
+ function emit_15(refined) {
470
+ return trimMargin('\n |@dataclass\n |class ' + this.h21(refined.dv_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.p22(refined.ev_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.sv(2) + 'return ' + this.mv(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.sv(2) + 'return str(self.value)\n |\n ');
471
+ }
472
+ function emitValidator(_this__u8e3s4) {
473
+ var defaultReturn = 'True';
474
+ var type = _this__u8e3s4.ev_1.qy_1;
475
+ var tmp;
476
+ if (type instanceof Integer) {
477
+ var tmp0_safe_receiver = type.vx_1;
478
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.zt(tmp0_safe_receiver);
479
+ tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
480
+ } else {
481
+ if (type instanceof Number_0) {
482
+ var tmp2_safe_receiver = type.yx_1;
483
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.zt(tmp2_safe_receiver);
484
+ tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
485
+ } else {
486
+ if (type instanceof String_0) {
487
+ var tmp4_safe_receiver = type.sx_1;
488
+ var tmp_0;
489
+ var tmp_1 = tmp4_safe_receiver;
490
+ if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
491
+ tmp_0 = null;
492
+ } else {
493
+ tmp_0 = this.zt(new RegExp_0(tmp4_safe_receiver));
494
+ }
495
+ var tmp5_elvis_lhs = tmp_0;
496
+ tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
497
+ } else {
498
+ if (equals(type, Boolean_instance)) {
499
+ tmp = defaultReturn;
500
+ } else {
501
+ if (equals(type, Bytes_instance)) {
502
+ tmp = defaultReturn;
503
+ } else {
504
+ noWhenBranchMatchedException();
505
+ }
506
+ }
507
+ }
508
+ }
509
+ }
510
+ return tmp;
511
+ }
512
+ initMetadataForInterface(PythonRefinedTypeDefinitionEmitter, 'PythonRefinedTypeDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter, PythonIdentifierEmitter]);
513
+ initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonIdentifierEmitter, PythonTypeDefinitionEmitter, PythonChannelDefinitionEmitter, PythonEnumDefinitionEmitter, PythonEndpointDefinitionEmitter, PythonUnionDefinitionEmitter, PythonRefinedTypeDefinitionEmitter]);
514
514
  initMetadataForCompanion(Companion);
515
515
  initMetadataForCompanion(Companion_0);
516
516
  initMetadataForClass(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
@@ -520,23 +520,23 @@ initMetadataForObject(PythonShared, 'PythonShared');
520
520
  function PythonChannelDefinitionEmitter() {
521
521
  }
522
522
  function sam$kotlin_Comparator$0(function_0) {
523
- this.s1y_1 = function_0;
523
+ this.d22_1 = function_0;
524
524
  }
525
- protoOf(sam$kotlin_Comparator$0).td = function (a, b) {
526
- return this.s1y_1(a, b);
525
+ protoOf(sam$kotlin_Comparator$0).ud = function (a, b) {
526
+ return this.d22_1(a, b);
527
527
  };
528
528
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
529
- return this.td(a, b);
529
+ return this.ud(a, b);
530
530
  };
531
- protoOf(sam$kotlin_Comparator$0).l3 = function () {
532
- return this.s1y_1;
531
+ protoOf(sam$kotlin_Comparator$0).m3 = function () {
532
+ return this.d22_1;
533
533
  };
534
534
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
535
535
  var tmp;
536
536
  if (!(other == null) ? isInterface(other, Comparator) : false) {
537
537
  var tmp_0;
538
538
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
539
- tmp_0 = equals(this.l3(), other.l3());
539
+ tmp_0 = equals(this.m3(), other.m3());
540
540
  } else {
541
541
  tmp_0 = false;
542
542
  }
@@ -547,40 +547,40 @@ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
547
547
  return tmp;
548
548
  };
549
549
  protoOf(sam$kotlin_Comparator$0).hashCode = function () {
550
- return hashCode(this.l3());
550
+ return hashCode(this.m3());
551
551
  };
552
552
  function PythonEmitter$emit$lambda(this$0) {
553
553
  return function (a, b) {
554
554
  // Inline function 'kotlin.comparisons.compareValuesBy' call
555
- var tmp = this$0.z1y(a);
556
- var tmp$ret$1 = this$0.z1y(b);
555
+ var tmp = this$0.k22(a);
556
+ var tmp$ret$1 = this$0.k22(b);
557
557
  return compareValues(tmp, tmp$ret$1);
558
558
  };
559
559
  }
560
560
  function emit$emitInit(this$0, def) {
561
- return 'from .' + this$0.nr(def.mr()) + ' import ' + this$0.nr(def.mr());
561
+ return 'from .' + this$0.yu(def.xu()) + ' import ' + this$0.yu(def.xu());
562
562
  }
563
563
  function PythonEmitter(packageName, emitShared) {
564
- packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
565
- emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
564
+ packageName = packageName === VOID ? Companion_instance.nv('community.flock.wirespec.generated') : packageName;
565
+ emitShared = emitShared === VOID ? Companion_instance_0.hs() : emitShared;
566
566
  LanguageEmitter.call(this);
567
- this.t1y_1 = packageName;
568
- this.u1y_1 = emitShared;
569
- this.v1y_1 = 'import re\n\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import List, Optional\nfrom enum import Enum\n\nfrom ..wirespec import T, Wirespec\n';
570
- this.w1y_1 = FileExtension_Python_getInstance();
571
- this.x1y_1 = PythonShared_instance;
572
- this.y1y_1 = '#';
573
- }
574
- protoOf(PythonEmitter).uq = function () {
575
- return this.w1y_1;
567
+ this.e22_1 = packageName;
568
+ this.f22_1 = emitShared;
569
+ this.g22_1 = 'import re\n\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import List, Optional\nfrom enum import Enum\n\nfrom ..wirespec import T, Wirespec\n';
570
+ this.h22_1 = FileExtension_Python_getInstance();
571
+ this.i22_1 = PythonShared_instance;
572
+ this.j22_1 = '#';
573
+ }
574
+ protoOf(PythonEmitter).fu = function () {
575
+ return this.h22_1;
576
576
  };
577
- protoOf(PythonEmitter).f1x = function () {
578
- return this.x1y_1;
577
+ protoOf(PythonEmitter).q20 = function () {
578
+ return this.i22_1;
579
579
  };
580
- protoOf(PythonEmitter).vq = function () {
581
- return this.y1y_1;
580
+ protoOf(PythonEmitter).gu = function () {
581
+ return this.j22_1;
582
582
  };
583
- protoOf(PythonEmitter).z1y = function (definition) {
583
+ protoOf(PythonEmitter).k22 = function (definition) {
584
584
  var tmp;
585
585
  if (definition instanceof Enum) {
586
586
  tmp = 1;
@@ -609,28 +609,28 @@ protoOf(PythonEmitter).z1y = function (definition) {
609
609
  }
610
610
  return tmp;
611
611
  };
612
- protoOf(PythonEmitter).kr = function (module_0, logger) {
612
+ protoOf(PythonEmitter).vu = function (module_0, logger) {
613
613
  // Inline function 'kotlin.collections.sortedBy' call
614
- var this_0 = new NonEmptyList(module_0.tq_1);
614
+ var this_0 = new NonEmptyList(module_0.eu_1);
615
615
  // Inline function 'kotlin.comparisons.compareBy' call
616
616
  var tmp = PythonEmitter$emit$lambda(this);
617
617
  var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
618
618
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
619
619
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
620
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).om_1;
620
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).zp_1;
621
621
  // Inline function 'kotlin.let' call
622
- var it = protoOf(LanguageEmitter).kr.call(this, module_0.mv(VOID, statements), logger);
623
- var init = new Emitted(this.t1y_1.fs() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
624
- var tmp_1 = this.t1y_1.fs() + 'endpoint/' + '__init__';
622
+ var it = protoOf(LanguageEmitter).vu.call(this, module_0.xy(VOID, statements), logger);
623
+ var init = new Emitted(this.e22_1.qv() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
624
+ var tmp_1 = this.e22_1.qv() + 'endpoint/' + '__init__';
625
625
  // Inline function 'kotlin.collections.filter' call
626
- var tmp0 = new NonEmptyList(module_0.tq_1);
626
+ var tmp0 = new NonEmptyList(module_0.eu_1);
627
627
  // Inline function 'kotlin.collections.filterTo' call
628
628
  var destination = ArrayList_init_$Create$();
629
629
  var _iterator__ex2g4s = tmp0.t();
630
630
  while (_iterator__ex2g4s.u()) {
631
631
  var element = _iterator__ex2g4s.v();
632
632
  if (element instanceof Endpoint) {
633
- destination.x(element);
633
+ destination.y(element);
634
634
  }
635
635
  }
636
636
  // Inline function 'kotlin.collections.map' call
@@ -640,19 +640,19 @@ protoOf(PythonEmitter).kr = function (module_0, logger) {
640
640
  while (_iterator__ex2g4s_0.u()) {
641
641
  var item = _iterator__ex2g4s_0.v();
642
642
  var tmp$ret$5 = emit$emitInit(this, item);
643
- destination_0.x(tmp$ret$5);
643
+ destination_0.y(tmp$ret$5);
644
644
  }
645
645
  var initEndpoint = new Emitted(tmp_1, joinToString(destination_0, '\n'));
646
- var tmp_2 = this.t1y_1.fs() + 'model/' + '__init__';
646
+ var tmp_2 = this.e22_1.qv() + 'model/' + '__init__';
647
647
  // Inline function 'kotlin.collections.filter' call
648
- var tmp0_0 = new NonEmptyList(module_0.tq_1);
648
+ var tmp0_0 = new NonEmptyList(module_0.eu_1);
649
649
  // Inline function 'kotlin.collections.filterTo' call
650
650
  var destination_1 = ArrayList_init_$Create$();
651
651
  var _iterator__ex2g4s_1 = tmp0_0.t();
652
652
  while (_iterator__ex2g4s_1.u()) {
653
653
  var element_0 = _iterator__ex2g4s_1.v();
654
654
  if (isInterface(element_0, Model)) {
655
- destination_1.x(element_0);
655
+ destination_1.y(element_0);
656
656
  }
657
657
  }
658
658
  // Inline function 'kotlin.collections.map' call
@@ -662,36 +662,36 @@ protoOf(PythonEmitter).kr = function (module_0, logger) {
662
662
  while (_iterator__ex2g4s_2.u()) {
663
663
  var item_0 = _iterator__ex2g4s_2.v();
664
664
  var tmp$ret$11 = emit$emitInit(this, item_0);
665
- destination_2.x(tmp$ret$11);
665
+ destination_2.y(tmp$ret$11);
666
666
  }
667
667
  var initModel = new Emitted(tmp_2, joinToString(destination_2, '\n'));
668
- var shared = new Emitted(this.t1y_1.fs() + 'wirespec', this.f1x().b1z_1);
669
- return this.u1y_1.xo_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), shared) : NonEmptyList__plus_impl_xqmb9(it, init);
668
+ var shared = new Emitted(this.e22_1.qv() + 'wirespec', this.q20().m22_1);
669
+ return this.f22_1.is_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), shared) : NonEmptyList__plus_impl_xqmb9(it, init);
670
670
  };
671
- protoOf(PythonEmitter).lr = function (definition, module_0, logger) {
672
- var subPackageName = plus_1(this.t1y_1, definition);
671
+ protoOf(PythonEmitter).wu = function (definition, module_0, logger) {
672
+ var subPackageName = plus_1(this.e22_1, definition);
673
673
  // Inline function 'kotlin.let' call
674
- var it = protoOf(LanguageEmitter).lr.call(this, definition, module_0, logger);
675
- var tmp = subPackageName.fs() + it.yo_1;
674
+ var it = protoOf(LanguageEmitter).wu.call(this, definition, module_0, logger);
675
+ var tmp = subPackageName.qv() + it.js_1;
676
676
  // Inline function 'kotlin.text.trimStart' call
677
- var this_0 = trimMargin('\n |' + this.v1y_1 + '\n |' + it.zo_1 + '\n ');
677
+ var this_0 = trimMargin('\n |' + this.g22_1 + '\n |' + it.ks_1 + '\n ');
678
678
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
679
679
  return new Emitted(tmp, tmp$ret$0);
680
680
  };
681
681
  function emitToRawRequest($this, _this__u8e3s4, endpoint) {
682
- var tmp = $this.nr(endpoint.up_1);
682
+ var tmp = $this.yu(endpoint.ft_1);
683
683
  var tmp_0 = Spacer_instance.toString();
684
684
  var tmp_1 = Spacer_instance.toString();
685
685
  var tmp_2 = Spacer_instance.toString();
686
- var tmp_3 = joinToString(endpoint.wp_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
686
+ var tmp_3 = joinToString(endpoint.ht_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
687
687
  var tmp_4 = Spacer_instance.toString();
688
688
  var tmp_5 = Spacer_instance.toString();
689
689
  var tmp_6 = Spacer_instance.toString();
690
690
  var tmp_7 = Spacer_instance.toString();
691
691
  var tmp_8;
692
692
  // Inline function 'kotlin.collections.isNotEmpty' call
693
- if (!endpoint.xp_1.r()) {
694
- tmp_8 = prependIndent(joinToString(endpoint.xp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.hs(3));
693
+ if (!endpoint.it_1.r()) {
694
+ tmp_8 = prependIndent(joinToString(endpoint.it_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.sv(3));
695
695
  } else {
696
696
  tmp_8 = '';
697
697
  }
@@ -702,8 +702,8 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
702
702
  var tmp_13 = Spacer_instance.toString();
703
703
  var tmp_14;
704
704
  // Inline function 'kotlin.collections.isNotEmpty' call
705
- if (!endpoint.yp_1.r()) {
706
- tmp_14 = prependIndent(joinToString(endpoint.yp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.hs(3));
705
+ if (!endpoint.jt_1.r()) {
706
+ tmp_14 = prependIndent(joinToString(endpoint.jt_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.sv(3));
707
707
  } else {
708
708
  tmp_14 = '';
709
709
  }
@@ -712,48 +712,48 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
712
712
  var tmp_17 = Spacer_instance.toString();
713
713
  var tmp_18 = Spacer_instance.toString();
714
714
  var tmp_19 = Spacer_instance.toString();
715
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
716
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq_1;
717
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.e1z(tmp1_safe_receiver);
715
+ var tmp0_safe_receiver = _this__u8e3s4.ot_1;
716
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qt_1;
717
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.p22(tmp1_safe_receiver);
718
718
  return trimMargin("\n |@staticmethod\n |def to_raw_request(serialization: Wirespec.Serializer, request: '" + tmp + ".Request') -> Wirespec.RawRequest:\n |" + tmp_0 + 'return Wirespec.RawRequest(\n |' + tmp_1 + tmp_2 + 'path = [' + tmp_3 + '],\n |' + tmp_4 + tmp_5 + 'method = request.method.value,\n |' + tmp_6 + tmp_7 + 'queries = {\n |' + tmp_9 + '\n |' + tmp_10 + tmp_11 + '},\n |' + tmp_12 + tmp_13 + 'headers = {\n |' + tmp_15 + '\n |' + tmp_16 + tmp_17 + '},\n |' + tmp_18 + tmp_19 + 'body = serialization.serialize(request.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),\n |' + Spacer_instance.toString() + ')\n |\n ');
719
719
  }
720
720
  function emitFromRawRequest($this, _this__u8e3s4, endpoint) {
721
- return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.nr(endpoint.up_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.nr(endpoint.up_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
721
+ return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.yu(endpoint.ft_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.yu(endpoint.ft_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
722
722
  }
723
723
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
724
724
  var tmp = get_indexedPathParams(endpoint);
725
725
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
726
- var tmp_1 = orNull(joinToString(endpoint.xp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
727
- var tmp_2 = orNull(joinToString(endpoint.yp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
728
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
726
+ var tmp_1 = orNull(joinToString(endpoint.it_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
727
+ var tmp_2 = orNull(joinToString(endpoint.jt_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
728
+ var tmp0_safe_receiver = _this__u8e3s4.ot_1;
729
729
  var tmp_3;
730
730
  if (tmp0_safe_receiver == null) {
731
731
  tmp_3 = null;
732
732
  } else {
733
733
  // Inline function 'kotlin.let' call
734
- tmp_3 = Spacer_instance.hs(3) + 'body = serialization.deserialize(request.body, ' + $this.e1z(tmp0_safe_receiver.fq_1) + '),';
734
+ tmp_3 = Spacer_instance.sv(3) + 'body = serialization.deserialize(request.body, ' + $this.p22(tmp0_safe_receiver.qt_1) + '),';
735
735
  }
736
736
  // Inline function 'kotlin.let' call
737
737
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
738
738
  return isBlank(it) ? '()' : '(\n' + it + '\n)';
739
739
  }
740
740
  function emitResponseUnion($this, _this__u8e3s4) {
741
- return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.aq_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
741
+ return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.lt_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
742
742
  }
743
743
  function emitHandleClass($this, _this__u8e3s4) {
744
- return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.up_1.l1() + "(self, req: '" + $this.nr(_this__u8e3s4.up_1) + ".Request') -> '" + $this.nr(_this__u8e3s4.up_1) + ".Response': pass\n |\n ");
744
+ return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.ft_1.m1() + "(self, req: '" + $this.yu(_this__u8e3s4.ft_1) + ".Request') -> '" + $this.yu(_this__u8e3s4.ft_1) + ".Response': pass\n |\n ");
745
745
  }
746
746
  function emitConvertClass($this, _this__u8e3s4) {
747
- return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.zp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.zp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
747
+ return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.kt_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.kt_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
748
748
  }
749
749
  function emit_16($this, _this__u8e3s4) {
750
- return $this.nr(_this__u8e3s4.zq_1) + ': ' + $this.nq(_this__u8e3s4.ar_1);
750
+ return $this.yu(_this__u8e3s4.ku_1) + ': ' + $this.yt(_this__u8e3s4.lu_1);
751
751
  }
752
752
  function emitAssignSelf($this, _this__u8e3s4) {
753
- return $this.nr(_this__u8e3s4.zq_1) + ' = ' + $this.nr(_this__u8e3s4.zq_1);
753
+ return $this.yu(_this__u8e3s4.ku_1) + ' = ' + $this.yu(_this__u8e3s4.ku_1);
754
754
  }
755
755
  function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
756
- var tmp = $this.nr(endpoint.up_1);
756
+ var tmp = $this.yu(endpoint.ft_1);
757
757
  // Inline function 'kotlin.collections.filter' call
758
758
  var tmp0 = paramList(_this__u8e3s4, endpoint);
759
759
  // Inline function 'kotlin.collections.filterTo' call
@@ -761,13 +761,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
761
761
  var _iterator__ex2g4s = tmp0.t();
762
762
  while (_iterator__ex2g4s.u()) {
763
763
  var element = _iterator__ex2g4s.v();
764
- if (element.yq_1.equals(ParamType_PATH_getInstance())) {
765
- destination.x(element);
764
+ if (element.ju_1.equals(ParamType_PATH_getInstance())) {
765
+ destination.y(element);
766
766
  }
767
767
  }
768
768
  var tmp_0 = destination;
769
769
  var tmp_1 = joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda($this));
770
- var tmp_2 = $this.nr(endpoint.up_1);
770
+ var tmp_2 = $this.yu(endpoint.ft_1);
771
771
  // Inline function 'kotlin.collections.filter' call
772
772
  var tmp0_0 = paramList(_this__u8e3s4, endpoint);
773
773
  // Inline function 'kotlin.collections.filterTo' call
@@ -775,13 +775,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
775
775
  var _iterator__ex2g4s_0 = tmp0_0.t();
776
776
  while (_iterator__ex2g4s_0.u()) {
777
777
  var element_0 = _iterator__ex2g4s_0.v();
778
- if (element_0.yq_1.equals(ParamType_QUERY_getInstance())) {
779
- destination_0.x(element_0);
778
+ if (element_0.ju_1.equals(ParamType_QUERY_getInstance())) {
779
+ destination_0.y(element_0);
780
780
  }
781
781
  }
782
782
  var tmp_3 = destination_0;
783
783
  var tmp_4 = spacer(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_0($this)), 1);
784
- var tmp_5 = $this.nr(endpoint.up_1);
784
+ var tmp_5 = $this.yu(endpoint.ft_1);
785
785
  // Inline function 'kotlin.collections.filter' call
786
786
  var tmp0_1 = paramList(_this__u8e3s4, endpoint);
787
787
  // Inline function 'kotlin.collections.filterTo' call
@@ -789,14 +789,14 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
789
789
  var _iterator__ex2g4s_1 = tmp0_1.t();
790
790
  while (_iterator__ex2g4s_1.u()) {
791
791
  var element_1 = _iterator__ex2g4s_1.v();
792
- if (element_1.yq_1.equals(ParamType_HEADER_getInstance())) {
793
- destination_1.x(element_1);
792
+ if (element_1.ju_1.equals(ParamType_HEADER_getInstance())) {
793
+ destination_1.y(element_1);
794
794
  }
795
795
  }
796
796
  var tmp_6 = destination_1;
797
797
  var tmp_7 = spacer(joinToString(tmp_6, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_1($this)), 1);
798
798
  var tmp_8;
799
- if (_this__u8e3s4.dq_1 == null) {
799
+ if (_this__u8e3s4.ot_1 == null) {
800
800
  tmp_8 = null;
801
801
  } else {
802
802
  // Inline function 'kotlin.let' call
@@ -806,7 +806,7 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
806
806
  return trimMargin('\n |self._path = ' + tmp + '.Request.Path(' + tmp_1 + ')\n |self._queries =' + tmp_2 + '.Request.Queries(' + tmp_4 + ')\n |self._headers = ' + tmp_5 + '.Request.Headers(' + tmp_7 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
807
807
  }
808
808
  function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
809
- var tmp = $this.nr(endpoint.up_1);
809
+ var tmp = $this.yu(endpoint.ft_1);
810
810
  // Inline function 'kotlin.collections.filter' call
811
811
  var tmp0 = paramList_0(_this__u8e3s4);
812
812
  // Inline function 'kotlin.collections.filterTo' call
@@ -814,35 +814,35 @@ function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
814
814
  var _iterator__ex2g4s = tmp0.t();
815
815
  while (_iterator__ex2g4s.u()) {
816
816
  var element = _iterator__ex2g4s.v();
817
- if (element.yq_1.equals(ParamType_HEADER_getInstance())) {
818
- destination.x(element);
817
+ if (element.ju_1.equals(ParamType_HEADER_getInstance())) {
818
+ destination.y(element);
819
819
  }
820
820
  }
821
821
  var tmp_0 = destination;
822
822
  var tmp_1 = spacer(joinToString(tmp_0, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2($this)), 1);
823
823
  var tmp_2;
824
- if (_this__u8e3s4.iq_1 == null) {
824
+ if (_this__u8e3s4.tt_1 == null) {
825
825
  tmp_2 = null;
826
826
  } else {
827
827
  // Inline function 'kotlin.let' call
828
828
  tmp_2 = 'body';
829
829
  }
830
830
  var tmp1_elvis_lhs = tmp_2;
831
- return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.gq_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
831
+ return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.rt_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
832
832
  }
833
833
  function emitDeserialized($this, _this__u8e3s4) {
834
- return Spacer_instance.hs(3) + $this.nr(_this__u8e3s4.ue_1.bq_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.te_1 + '], ' + $this.e1z(_this__u8e3s4.ue_1.cq_1) + ')';
834
+ return Spacer_instance.sv(3) + $this.yu(_this__u8e3s4.lf_1.mt_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.kf_1 + '], ' + $this.p22(_this__u8e3s4.lf_1.nt_1) + ')';
835
835
  }
836
836
  function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
837
837
  var tmp;
838
838
  if (caseSensitive) {
839
- tmp = Spacer_instance.hs(spaces) + $this.nr(_this__u8e3s4.qp_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.qp_1.l1() + '"), ' + $this.e1z(_this__u8e3s4.rp_1) + ')';
839
+ tmp = Spacer_instance.sv(spaces) + $this.yu(_this__u8e3s4.bt_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.bt_1.m1() + '"), ' + $this.p22(_this__u8e3s4.ct_1) + ')';
840
840
  } else {
841
- var tmp_0 = Spacer_instance.hs(spaces);
842
- var tmp_1 = $this.nr(_this__u8e3s4.qp_1);
841
+ var tmp_0 = Spacer_instance.sv(spaces);
842
+ var tmp_1 = $this.yu(_this__u8e3s4.bt_1);
843
843
  // Inline function 'kotlin.text.lowercase' call
844
844
  // Inline function 'kotlin.js.asDynamic' call
845
- tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.qp_1.l1().toLowerCase() + '"), None), ' + $this.e1z(_this__u8e3s4.rp_1) + ')';
845
+ tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.bt_1.m1().toLowerCase() + '"), None), ' + $this.p22(_this__u8e3s4.ct_1) + ')';
846
846
  }
847
847
  return tmp;
848
848
  }
@@ -852,73 +852,73 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
852
852
  return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
853
853
  }
854
854
  function emitToRawResponse($this, _this__u8e3s4) {
855
- var tmp = $this.nr(_this__u8e3s4.up_1);
855
+ var tmp = $this.yu(_this__u8e3s4.ft_1);
856
856
  var tmp_0 = Spacer_instance.toString();
857
- var tmp_1 = distinctByStatus(_this__u8e3s4.aq_1);
857
+ var tmp_1 = distinctByStatus(_this__u8e3s4.lt_1);
858
858
  return trimMargin("\n |@staticmethod\n |def to_raw_response(serialization: Wirespec.Serializer, response: '" + tmp + ".Response') -> Wirespec.RawResponse:\n |" + tmp_0 + 'match response:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.toString() + Spacer_instance.toString() + 'case _:\n |' + Spacer_instance.toString() + Spacer_instance.toString() + Spacer_instance.toString() + 'raise Exception("Cannot match response with status: " + str(response.status))\n ');
859
859
  }
860
860
  function emitFromRawResponse($this, _this__u8e3s4) {
861
- var tmp = $this.nr(_this__u8e3s4.up_1);
861
+ var tmp = $this.yu(_this__u8e3s4.ft_1);
862
862
  var tmp_0 = Spacer_instance.toString();
863
863
  // Inline function 'kotlin.collections.filter' call
864
- var tmp0 = distinctByStatus(_this__u8e3s4.aq_1);
864
+ var tmp0 = distinctByStatus(_this__u8e3s4.lt_1);
865
865
  // Inline function 'kotlin.collections.filterTo' call
866
866
  var destination = ArrayList_init_$Create$();
867
867
  var _iterator__ex2g4s = tmp0.t();
868
868
  while (_iterator__ex2g4s.u()) {
869
869
  var element = _iterator__ex2g4s.v();
870
- if (Companion_instance_1.ir(element.gq_1)) {
871
- destination.x(element);
870
+ if (Companion_instance_1.tu(element.rt_1)) {
871
+ destination.y(element);
872
872
  }
873
873
  }
874
874
  var tmp_1 = destination;
875
- return trimMargin("\n |@staticmethod\n |def from_raw_response(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse) -> '" + tmp + ".Response':\n |" + tmp_0 + 'match response.status_code:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitFromRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.hs(2) + 'case _:\n |' + Spacer_instance.hs(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
875
+ return trimMargin("\n |@staticmethod\n |def from_raw_response(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse) -> '" + tmp + ".Response':\n |" + tmp_0 + 'match response.status_code:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitFromRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.sv(2) + 'case _:\n |' + Spacer_instance.sv(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
876
876
  }
877
877
  function emitDeserialized_0($this, _this__u8e3s4, endpoint) {
878
- var tmp = 'case ' + _this__u8e3s4.gq_1 + ':';
879
- var tmp_0 = Spacer_instance.toString() + 'return ' + $this.nr(endpoint.up_1) + '.Response' + _this__u8e3s4.gq_1 + '(';
880
- var tmp_1 = Spacer_instance.hs(2);
881
- var tmp0_safe_receiver = _this__u8e3s4.iq_1;
882
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq_1;
883
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.e1z(tmp1_safe_receiver);
878
+ var tmp = 'case ' + _this__u8e3s4.rt_1 + ':';
879
+ var tmp_0 = Spacer_instance.toString() + 'return ' + $this.yu(endpoint.ft_1) + '.Response' + _this__u8e3s4.rt_1 + '(';
880
+ var tmp_1 = Spacer_instance.sv(2);
881
+ var tmp0_safe_receiver = _this__u8e3s4.tt_1;
882
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qt_1;
883
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.p22(tmp1_safe_receiver);
884
884
  var tmp_2 = tmp_1 + 'body = serialization.deserialize(response.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),';
885
- return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.hq_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
885
+ return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.st_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
886
886
  }
887
887
  function emitSerialized($this, _this__u8e3s4, endpoint) {
888
- var tmp = $this.nr(endpoint.up_1);
889
- var tmp_0 = Spacer_instance.hs(1);
890
- var tmp_1 = Spacer_instance.hs(2);
891
- var tmp_2 = Spacer_instance.hs(2);
888
+ var tmp = $this.yu(endpoint.ft_1);
889
+ var tmp_0 = Spacer_instance.sv(1);
890
+ var tmp_1 = Spacer_instance.sv(2);
891
+ var tmp_2 = Spacer_instance.sv(2);
892
892
  var tmp_3;
893
893
  // Inline function 'kotlin.collections.isNotEmpty' call
894
- if (!_this__u8e3s4.hq_1.r()) {
895
- tmp_3 = joinToString(_this__u8e3s4.hq_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
894
+ if (!_this__u8e3s4.st_1.r()) {
895
+ tmp_3 = joinToString(_this__u8e3s4.st_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
896
896
  } else {
897
897
  tmp_3 = '{}';
898
898
  }
899
899
  var tmp_4 = tmp_3;
900
- var tmp_5 = Spacer_instance.hs(2);
901
- var tmp0_safe_receiver = _this__u8e3s4.iq_1;
900
+ var tmp_5 = Spacer_instance.sv(2);
901
+ var tmp0_safe_receiver = _this__u8e3s4.tt_1;
902
902
  var tmp_6;
903
903
  if (tmp0_safe_receiver == null) {
904
904
  tmp_6 = null;
905
905
  } else {
906
906
  // Inline function 'kotlin.let' call
907
- tmp_6 = 'serialization.serialize(response.body, ' + $this.e1z(tmp0_safe_receiver.fq_1) + ')';
907
+ tmp_6 = 'serialization.serialize(response.body, ' + $this.p22(tmp0_safe_receiver.qt_1) + ')';
908
908
  }
909
909
  var tmp1_elvis_lhs = tmp_6;
910
- return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.gq_1 + '():\n |' + tmp_0 + 'return Wirespec.RawResponse(\n |' + tmp_1 + 'status_code = response.status,\n |' + tmp_2 + 'headers = ' + tmp_4 + ',\n |' + tmp_5 + 'body = ' + (tmp1_elvis_lhs == null ? 'type(None)' : tmp1_elvis_lhs) + ',\n |' + Spacer_instance.hs(1) + ')\n ');
910
+ return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.rt_1 + '():\n |' + tmp_0 + 'return Wirespec.RawResponse(\n |' + tmp_1 + 'status_code = response.status,\n |' + tmp_2 + 'headers = ' + tmp_4 + ',\n |' + tmp_5 + 'body = ' + (tmp1_elvis_lhs == null ? 'type(None)' : tmp1_elvis_lhs) + ',\n |' + Spacer_instance.sv(1) + ')\n ');
911
911
  }
912
912
  function emitSerializedParams($this, _this__u8e3s4, type, fields) {
913
- return '"' + _this__u8e3s4.qp_1.l1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.nr(_this__u8e3s4.qp_1) + ', ' + $this.e1z(_this__u8e3s4.rp_1) + ')';
913
+ return '"' + _this__u8e3s4.bt_1.m1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.yu(_this__u8e3s4.bt_1) + ', ' + $this.p22(_this__u8e3s4.ct_1) + ')';
914
914
  }
915
915
  function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
916
916
  var tmp;
917
917
  if (_this__u8e3s4.r()) {
918
- tmp = trimMargin('\n |' + Spacer_instance.hs(spaces) + '@dataclass\n |' + Spacer_instance.hs(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
918
+ tmp = trimMargin('\n |' + Spacer_instance.sv(spaces) + '@dataclass\n |' + Spacer_instance.sv(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
919
919
  } else {
920
- var tmp_0 = Spacer_instance.hs(spaces);
921
- var tmp_1 = Spacer_instance.hs(spaces);
920
+ var tmp_0 = Spacer_instance.sv(spaces);
921
+ var tmp_1 = Spacer_instance.sv(spaces);
922
922
  tmp = trimMargin('\n |' + tmp_0 + '@dataclass\n |' + tmp_1 + 'class ' + name + ' (' + extends_0 + '):\n |' + joinToString(_this__u8e3s4, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + '\n ');
923
923
  }
924
924
  return tmp;
@@ -928,21 +928,21 @@ function emitObject$default($this, _this__u8e3s4, name, extends_0, spaces, block
928
928
  return emitObject($this, _this__u8e3s4, name, extends_0, spaces, block);
929
929
  }
930
930
  function emit_17($this, _this__u8e3s4) {
931
- return $this.nr(_this__u8e3s4.bq_1) + ': ' + $this.nq(_this__u8e3s4.cq_1);
931
+ return $this.yu(_this__u8e3s4.mt_1) + ': ' + $this.yt(_this__u8e3s4.nt_1);
932
932
  }
933
933
  function emit_18($this, _this__u8e3s4) {
934
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.fq_1;
935
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nq(tmp1_safe_receiver);
934
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.qt_1;
935
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.yt(tmp1_safe_receiver);
936
936
  return tmp2_elvis_lhs == null ? 'None' : tmp2_elvis_lhs;
937
937
  }
938
938
  function PythonEndpointDefinitionEmitter$emit$lambda(this$0) {
939
939
  return function (it) {
940
- return this$0.f1z(it);
940
+ return this$0.q22(it);
941
941
  };
942
942
  }
943
943
  function PythonEndpointDefinitionEmitter$emit$lambda_0(this$0, $endpoint) {
944
944
  return function (it) {
945
- return this$0.d1z(it, $endpoint);
945
+ return this$0.o22(it, $endpoint);
946
946
  };
947
947
  }
948
948
  function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
@@ -952,12 +952,12 @@ function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
952
952
  }
953
953
  function PythonEndpointDefinitionEmitter$emit$lambda_2(this$0) {
954
954
  return function (it) {
955
- return this$0.mq(it);
955
+ return this$0.xt(it);
956
956
  };
957
957
  }
958
958
  function PythonEndpointDefinitionEmitter$emit$lambda_3(this$0) {
959
959
  return function (it) {
960
- return this$0.mq(it);
960
+ return this$0.xt(it);
961
961
  };
962
962
  }
963
963
  function PythonEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -969,10 +969,10 @@ function PythonEndpointDefinitionEmitter$emitToRawRequest$lambda(this$0) {
969
969
  return function (it) {
970
970
  var tmp;
971
971
  if (it instanceof Literal) {
972
- tmp = '"' + it.xq_1 + '"';
972
+ tmp = '"' + it.iu_1 + '"';
973
973
  } else {
974
974
  if (it instanceof Param) {
975
- tmp = 'str(request.path.' + this$0.nr(it.bq_1) + ')';
975
+ tmp = 'str(request.path.' + this$0.yu(it.mt_1) + ')';
976
976
  } else {
977
977
  noWhenBranchMatchedException();
978
978
  }
@@ -1006,7 +1006,7 @@ function PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1(this$0)
1006
1006
  };
1007
1007
  }
1008
1008
  function PythonEndpointDefinitionEmitter$emitResponseUnion$lambda(it) {
1009
- return 'Response' + it.gq_1;
1009
+ return 'Response' + it.rt_1;
1010
1010
  }
1011
1011
  function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda(this$0) {
1012
1012
  return function (it) {
@@ -1030,7 +1030,7 @@ function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2(this$0) {
1030
1030
  }
1031
1031
  function PythonEndpointDefinitionEmitter$emit$lambda_5(this$0) {
1032
1032
  return function (it) {
1033
- return this$0.mq(it);
1033
+ return this$0.xt(it);
1034
1034
  };
1035
1035
  }
1036
1036
  function PythonEndpointDefinitionEmitter$emit$lambda_6(this$0) {
@@ -1060,7 +1060,7 @@ function PythonEndpointDefinitionEmitter$emitSerialized$lambda(this$0) {
1060
1060
  }
1061
1061
  function PythonEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
1062
1062
  return function (it) {
1063
- return Spacer_instance.hs($spaces + 2 | 0) + $block(it);
1063
+ return Spacer_instance.sv($spaces + 2 | 0) + $block(it);
1064
1064
  };
1065
1065
  }
1066
1066
  function PythonEndpointDefinitionEmitter() {
@@ -1089,14 +1089,14 @@ function sanitizeEnum($this, _this__u8e3s4) {
1089
1089
  }
1090
1090
  function PythonEnumDefinitionEmitter$emit$lambda(this$0) {
1091
1091
  return function (it) {
1092
- return Spacer_instance.toString() + this$0.m1x(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1092
+ return Spacer_instance.toString() + this$0.x20(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1093
1093
  };
1094
1094
  }
1095
1095
  function PythonEnumDefinitionEmitter() {
1096
1096
  }
1097
1097
  function Companion() {
1098
1098
  Companion_instance_2 = this;
1099
- this.g1z_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1099
+ this.r22_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1100
1100
  }
1101
1101
  var Companion_instance_2;
1102
1102
  function Companion_getInstance_0() {
@@ -1107,15 +1107,15 @@ function Companion_getInstance_0() {
1107
1107
  function PythonIdentifierEmitter() {
1108
1108
  }
1109
1109
  function _get_sanitizationConfig__sns434($this) {
1110
- var tmp0 = $this.l1z_1;
1110
+ var tmp0 = $this.w22_1;
1111
1111
  var tmp = KProperty1;
1112
1112
  // Inline function 'kotlin.getValue' call
1113
1113
  getPropertyCallableRef('sanitizationConfig', 1, tmp, PythonIrEmitter$_get_sanitizationConfig_$ref_1q5eai(), null);
1114
- return tmp0.l1();
1114
+ return tmp0.m1();
1115
1115
  }
1116
1116
  function sanitize_0($this, _this__u8e3s4) {
1117
1117
  // Inline function 'kotlin.collections.mapIndexed' call
1118
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
1118
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
1119
1119
  // Inline function 'kotlin.collections.mapIndexedTo' call
1120
1120
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1121
1121
  var index = 0;
@@ -1124,8 +1124,8 @@ function sanitize_0($this, _this__u8e3s4) {
1124
1124
  var item = _iterator__ex2g4s.v();
1125
1125
  var _unary__edvuaz = index;
1126
1126
  index = _unary__edvuaz + 1 | 0;
1127
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.er(item) : item;
1128
- destination.x(tmp$ret$0);
1127
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.pu(item) : item;
1128
+ destination.y(tmp$ret$0);
1129
1129
  }
1130
1130
  // Inline function 'kotlin.text.filter' call
1131
1131
  var tmp0 = joinToString(destination, '');
@@ -1170,7 +1170,7 @@ function sanitize_0($this, _this__u8e3s4) {
1170
1170
  return tmp_2;
1171
1171
  }
1172
1172
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1173
- return Companion_getInstance_1().n1z_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1173
+ return Companion_getInstance_1().y22_1.v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1174
1174
  }
1175
1175
  function sanitizeEnum_0($this, _this__u8e3s4) {
1176
1176
  // Inline function 'kotlin.let' call
@@ -1196,7 +1196,7 @@ function buildImports($this, wirespecPath) {
1196
1196
  }
1197
1197
  function Companion_0() {
1198
1198
  Companion_instance_3 = this;
1199
- this.n1z_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1199
+ this.y22_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1200
1200
  }
1201
1201
  var Companion_instance_3;
1202
1202
  function Companion_getInstance_1() {
@@ -1205,23 +1205,23 @@ function Companion_getInstance_1() {
1205
1205
  return Companion_instance_3;
1206
1206
  }
1207
1207
  function sam$kotlin_Comparator$0_0(function_0) {
1208
- this.o1z_1 = function_0;
1208
+ this.z22_1 = function_0;
1209
1209
  }
1210
- protoOf(sam$kotlin_Comparator$0_0).td = function (a, b) {
1211
- return this.o1z_1(a, b);
1210
+ protoOf(sam$kotlin_Comparator$0_0).ud = function (a, b) {
1211
+ return this.z22_1(a, b);
1212
1212
  };
1213
1213
  protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
1214
- return this.td(a, b);
1214
+ return this.ud(a, b);
1215
1215
  };
1216
- protoOf(sam$kotlin_Comparator$0_0).l3 = function () {
1217
- return this.o1z_1;
1216
+ protoOf(sam$kotlin_Comparator$0_0).m3 = function () {
1217
+ return this.z22_1;
1218
1218
  };
1219
1219
  protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
1220
1220
  var tmp;
1221
1221
  if (!(other == null) ? isInterface(other, Comparator) : false) {
1222
1222
  var tmp_0;
1223
1223
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
1224
- tmp_0 = equals(this.l3(), other.l3());
1224
+ tmp_0 = equals(this.m3(), other.m3());
1225
1225
  } else {
1226
1226
  tmp_0 = false;
1227
1227
  }
@@ -1232,17 +1232,17 @@ protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
1232
1232
  return tmp;
1233
1233
  };
1234
1234
  protoOf(sam$kotlin_Comparator$0_0).hashCode = function () {
1235
- return hashCode(this.l3());
1235
+ return hashCode(this.m3());
1236
1236
  };
1237
1237
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1238
1238
  return '_' + it;
1239
1239
  }
1240
1240
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(name) {
1241
- var sanitized = name.p1h_1.a1() > 1 ? name.t1m() : name.n1j();
1241
+ var sanitized = name.a1l_1.b1() > 1 ? name.e1q() : name.y1m();
1242
1242
  return new Name(listOf_0(sanitized));
1243
1243
  }
1244
1244
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(name) {
1245
- return new Name(listOf_0(name.t1m()));
1245
+ return new Name(listOf_0(name.e1q()));
1246
1246
  }
1247
1247
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
1248
1248
  return it;
@@ -1251,21 +1251,21 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1251
1251
  return function (stmt, tr) {
1252
1252
  var tmp;
1253
1253
  if (stmt instanceof ConstructorStatement) {
1254
- var tmp_0 = tr.a1v(stmt.v1n_1);
1254
+ var tmp_0 = tr.l1y(stmt.g1r_1);
1255
1255
  // Inline function 'kotlin.collections.map' call
1256
- var this_0 = stmt.w1n_1;
1256
+ var this_0 = stmt.h1r_1;
1257
1257
  // Inline function 'kotlin.collections.mapTo' call
1258
- var destination = ArrayList_init_$Create$_0(this_0.a1());
1258
+ var destination = ArrayList_init_$Create$_0(this_0.b1());
1259
1259
  // Inline function 'kotlin.collections.iterator' call
1260
- var _iterator__ex2g4s = this_0.j1().t();
1260
+ var _iterator__ex2g4s = this_0.k1().t();
1261
1261
  while (_iterator__ex2g4s.u()) {
1262
1262
  var item = _iterator__ex2g4s.v();
1263
1263
  // Inline function 'kotlin.collections.component1' call
1264
- var k = item.k1();
1264
+ var k = item.l1();
1265
1265
  // Inline function 'kotlin.collections.component2' call
1266
- var v = item.l1();
1267
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.d1v(v));
1268
- destination.x(tmp$ret$3);
1266
+ var v = item.m1();
1267
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.o1y(v));
1268
+ destination.y(tmp$ret$3);
1269
1269
  }
1270
1270
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
1271
1271
  } else {
@@ -1276,7 +1276,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1276
1276
  }
1277
1277
  function PythonIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1278
1278
  return function () {
1279
- var tmp = Companion_getInstance_1().n1z_1;
1279
+ var tmp = Companion_getInstance_1().y22_1;
1280
1280
  var tmp_0 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1281
1281
  var tmp_1 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0;
1282
1282
  var tmp_2 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1;
@@ -1296,7 +1296,7 @@ function PythonIrEmitter$emit$lambda(a, b) {
1296
1296
  return compareValues(tmp, tmp$ret$1);
1297
1297
  }
1298
1298
  function emit$emitInitImport(this$0, def) {
1299
- return import_0('.' + sanitize_0(this$0, def.mr()), sanitize_0(this$0, def.mr()));
1299
+ return import_0('.' + sanitize_0(this$0, def.xu()), sanitize_0(this$0, def.xu()));
1300
1300
  }
1301
1301
  function PythonIrEmitter$emitGenerator$lambda(it) {
1302
1302
  return startsWith(it, 'Wirespec.') || it === 'Wirespec';
@@ -1315,17 +1315,17 @@ function PythonIrEmitter$emitGenerator$lambda_2($generatorOwnName, $generatorRef
1315
1315
  var tmp_0;
1316
1316
  var tmp_1;
1317
1317
  if (expr instanceof RawExpression) {
1318
- tmp_1 = endsWith(expr.p1p_1, 'Generator');
1318
+ tmp_1 = endsWith(expr.a1t_1, 'Generator');
1319
1319
  } else {
1320
1320
  tmp_1 = false;
1321
1321
  }
1322
1322
  if (tmp_1) {
1323
- tmp_0 = !(expr.p1p_1 === $generatorOwnName);
1323
+ tmp_0 = !(expr.a1t_1 === $generatorOwnName);
1324
1324
  } else {
1325
1325
  tmp_0 = false;
1326
1326
  }
1327
1327
  if (tmp_0) {
1328
- $generatorRefs.x(expr.p1p_1);
1328
+ $generatorRefs.y(expr.a1t_1);
1329
1329
  tmp = Unit_instance;
1330
1330
  }
1331
1331
  return transformChildren_0(expr, t);
@@ -1338,43 +1338,43 @@ function PythonIrEmitter$emit$lambda_0(this$0) {
1338
1338
  }
1339
1339
  function PythonIrEmitter(packageName, emitShared) {
1340
1340
  Companion_getInstance_1();
1341
- packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
1342
- emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
1343
- this.h1z_1 = packageName;
1344
- this.i1z_1 = emitShared;
1345
- this.j1z_1 = PythonGenerator_instance;
1346
- this.k1z_1 = FileExtension_Python_getInstance();
1341
+ packageName = packageName === VOID ? Companion_instance.nv('community.flock.wirespec.generated') : packageName;
1342
+ emitShared = emitShared === VOID ? Companion_instance_0.hs() : emitShared;
1343
+ this.s22_1 = packageName;
1344
+ this.t22_1 = emitShared;
1345
+ this.u22_1 = PythonGenerator_instance;
1346
+ this.v22_1 = FileExtension_Python_getInstance();
1347
1347
  var tmp = this;
1348
- tmp.l1z_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1349
- this.m1z_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\nV = TypeVar('V')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1348
+ tmp.w22_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1349
+ this.x22_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\nV = TypeVar('V')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1350
1350
  }
1351
- protoOf(PythonIrEmitter).v1v = function () {
1352
- return this.j1z_1;
1351
+ protoOf(PythonIrEmitter).g1z = function () {
1352
+ return this.u22_1;
1353
1353
  };
1354
- protoOf(PythonIrEmitter).uq = function () {
1355
- return this.k1z_1;
1354
+ protoOf(PythonIrEmitter).fu = function () {
1355
+ return this.v22_1;
1356
1356
  };
1357
- protoOf(PythonIrEmitter).z1v = function () {
1358
- var source = replaceReflectInNonGenericStructFields(convert(Companion_instance.cs('shared')));
1357
+ protoOf(PythonIrEmitter).k1z = function () {
1358
+ var source = replaceReflectInNonGenericStructFields(convert(Companion_instance.nv('shared')));
1359
1359
  var tmp;
1360
- if (this.i1z_1.xo_1) {
1361
- tmp = new File(Companion_getInstance().r1h(this.h1z_1.fs() + 'wirespec'), listOf_0(raw(this.m1z_1 + PythonGenerator_instance.w1v(source))));
1360
+ if (this.t22_1.is_1) {
1361
+ tmp = new File(Companion_getInstance().c1l(this.s22_1.qv() + 'wirespec'), listOf_0(raw(this.x22_1 + PythonGenerator_instance.h1z(source))));
1362
1362
  } else {
1363
1363
  tmp = null;
1364
1364
  }
1365
1365
  return tmp;
1366
1366
  };
1367
- protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1367
+ protoOf(PythonIrEmitter).j1z = function (module_0, logger) {
1368
1368
  // Inline function 'kotlin.collections.sortedBy' call
1369
- var this_0 = new NonEmptyList(module_0.tq_1);
1369
+ var this_0 = new NonEmptyList(module_0.eu_1);
1370
1370
  // Inline function 'kotlin.comparisons.compareBy' call
1371
1371
  var tmp = PythonIrEmitter$emit$lambda;
1372
1372
  var tmp$ret$0 = new sam$kotlin_Comparator$0_0(tmp);
1373
1373
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
1374
1374
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
1375
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).om_1;
1376
- var emitted = emit.call(this, module_0.mv(VOID, statements), logger);
1377
- var tmp0 = new NonEmptyList(module_0.tq_1);
1375
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).zp_1;
1376
+ var emitted = emit.call(this, module_0.xy(VOID, statements), logger);
1377
+ var tmp0 = new NonEmptyList(module_0.eu_1);
1378
1378
  var tmp$ret$2;
1379
1379
  $l$block_0: {
1380
1380
  // Inline function 'kotlin.collections.any' call
@@ -1399,29 +1399,29 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1399
1399
  tmp$ret$2 = false;
1400
1400
  }
1401
1401
  var hasEndpoints = tmp$ret$2;
1402
- var tmp_2 = Companion_getInstance().r1h(this.h1z_1.fs() + '__init__');
1402
+ var tmp_2 = Companion_getInstance().c1l(this.s22_1.qv() + '__init__');
1403
1403
  // Inline function 'kotlin.collections.buildList' call
1404
1404
  // Inline function 'kotlin.collections.buildListInternal' call
1405
1405
  // Inline function 'kotlin.apply' call
1406
1406
  var this_1 = ArrayList_init_$Create$();
1407
- this_1.x(import_0('.', 'model'));
1408
- this_1.x(import_0('.', 'endpoint'));
1407
+ this_1.y(import_0('.', 'model'));
1408
+ this_1.y(import_0('.', 'endpoint'));
1409
1409
  if (hasEndpoints) {
1410
- this_1.x(import_0('.', 'client'));
1410
+ this_1.y(import_0('.', 'client'));
1411
1411
  }
1412
- this_1.x(import_0('.', 'wirespec'));
1413
- var tmp$ret$7 = this_1.o5();
1412
+ this_1.y(import_0('.', 'wirespec'));
1413
+ var tmp$ret$7 = this_1.p5();
1414
1414
  var init = new File(tmp_2, tmp$ret$7);
1415
- var tmp_3 = Companion_getInstance().r1h(this.h1z_1.fs() + 'endpoint/' + '__init__');
1415
+ var tmp_3 = Companion_getInstance().c1l(this.s22_1.qv() + 'endpoint/' + '__init__');
1416
1416
  // Inline function 'kotlin.collections.filterIsInstance' call
1417
- var tmp0_0 = new NonEmptyList(module_0.tq_1);
1417
+ var tmp0_0 = new NonEmptyList(module_0.eu_1);
1418
1418
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1419
1419
  var destination = ArrayList_init_$Create$();
1420
1420
  var _iterator__ex2g4s_0 = tmp0_0.t();
1421
1421
  while (_iterator__ex2g4s_0.u()) {
1422
1422
  var element_0 = _iterator__ex2g4s_0.v();
1423
1423
  if (element_0 instanceof Endpoint) {
1424
- destination.x(element_0);
1424
+ destination.y(element_0);
1425
1425
  }
1426
1426
  }
1427
1427
  // Inline function 'kotlin.collections.map' call
@@ -1431,19 +1431,19 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1431
1431
  while (_iterator__ex2g4s_1.u()) {
1432
1432
  var item = _iterator__ex2g4s_1.v();
1433
1433
  var tmp$ret$10 = emit$emitInitImport(this, item);
1434
- destination_0.x(tmp$ret$10);
1434
+ destination_0.y(tmp$ret$10);
1435
1435
  }
1436
1436
  var initEndpoint = new File(tmp_3, destination_0);
1437
- var tmp_4 = Companion_getInstance().r1h(this.h1z_1.fs() + 'model/' + '__init__');
1437
+ var tmp_4 = Companion_getInstance().c1l(this.s22_1.qv() + 'model/' + '__init__');
1438
1438
  // Inline function 'kotlin.collections.filterIsInstance' call
1439
- var tmp0_1 = new NonEmptyList(module_0.tq_1);
1439
+ var tmp0_1 = new NonEmptyList(module_0.eu_1);
1440
1440
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1441
1441
  var destination_1 = ArrayList_init_$Create$();
1442
1442
  var _iterator__ex2g4s_2 = tmp0_1.t();
1443
1443
  while (_iterator__ex2g4s_2.u()) {
1444
1444
  var element_1 = _iterator__ex2g4s_2.v();
1445
1445
  if (!(element_1 == null) ? isInterface(element_1, Model) : false) {
1446
- destination_1.x(element_1);
1446
+ destination_1.y(element_1);
1447
1447
  }
1448
1448
  }
1449
1449
  // Inline function 'kotlin.collections.map' call
@@ -1453,11 +1453,11 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1453
1453
  while (_iterator__ex2g4s_3.u()) {
1454
1454
  var item_0 = _iterator__ex2g4s_3.v();
1455
1455
  var tmp$ret$15 = emit$emitInitImport(this, item_0);
1456
- destination_2.x(tmp$ret$15);
1456
+ destination_2.y(tmp$ret$15);
1457
1457
  }
1458
1458
  var initModel = new File(tmp_4, destination_2);
1459
- var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().r1h(this.h1z_1.fs() + 'client/' + '__init__'), emptyList())) : emptyList();
1460
- var tmp0_2 = dropLast(split(this.h1z_1.ds_1, ['.']), 1);
1459
+ var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().c1l(this.s22_1.qv() + 'client/' + '__init__'), emptyList())) : emptyList();
1460
+ var tmp0_2 = dropLast(split(this.s22_1.ov_1, ['.']), 1);
1461
1461
  var tmp$ret$18;
1462
1462
  $l$block_1: {
1463
1463
  // Inline function 'kotlin.collections.runningFold' call
@@ -1468,7 +1468,7 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1468
1468
  }
1469
1469
  // Inline function 'kotlin.apply' call
1470
1470
  var this_2 = ArrayList_init_$Create$_0(estimatedSize + 1 | 0);
1471
- this_2.x('');
1471
+ this_2.y('');
1472
1472
  var result = this_2;
1473
1473
  var accumulator = '';
1474
1474
  var _iterator__ex2g4s_4 = tmp0_2.t();
@@ -1483,7 +1483,7 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1483
1483
  tmp_5 = acc + '/' + element_2;
1484
1484
  }
1485
1485
  accumulator = tmp_5;
1486
- result.x(accumulator);
1486
+ result.y(accumulator);
1487
1487
  }
1488
1488
  tmp$ret$18 = result;
1489
1489
  }
@@ -1494,17 +1494,17 @@ protoOf(PythonIrEmitter).y1v = function (module_0, logger) {
1494
1494
  var _iterator__ex2g4s_5 = this_3.t();
1495
1495
  while (_iterator__ex2g4s_5.u()) {
1496
1496
  var item_1 = _iterator__ex2g4s_5.v();
1497
- var tmp$ret$23 = new File(Companion_getInstance().r1h(item_1 + '/__init__'), emptyList());
1498
- destination_3.x(tmp$ret$23);
1497
+ var tmp$ret$23 = new File(Companion_getInstance().c1l(item_1 + '/__init__'), emptyList());
1498
+ destination_3.y(tmp$ret$23);
1499
1499
  }
1500
1500
  var parentInits = destination_3;
1501
- return this.i1z_1.xo_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(emitted, init), initEndpoint), initModel), initClient), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(emitted, init), parentInits);
1501
+ return this.t22_1.is_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(emitted, init), initEndpoint), initModel), initClient), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(emitted, init), parentInits);
1502
1502
  };
1503
- protoOf(PythonIrEmitter).lr = function (definition, module_0, logger) {
1503
+ protoOf(PythonIrEmitter).wu = function (definition, module_0, logger) {
1504
1504
  var file = emit_0.call(this, definition, module_0, logger);
1505
- return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.h1z_1, definition);
1505
+ return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.s22_1, definition);
1506
1506
  };
1507
- protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1507
+ protoOf(PythonIrEmitter).p1z = function (definition, module_0) {
1508
1508
  var tmp;
1509
1509
  if (definition instanceof Type) {
1510
1510
  tmp = convertToGenerator_2(definition, module_0);
@@ -1525,7 +1525,7 @@ protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1525
1525
  }
1526
1526
  var generatorFile = tmp;
1527
1527
  var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
1528
- var generatorOwnName = definition.mr().l1() + 'Generator';
1528
+ var generatorOwnName = definition.xu().m1() + 'Generator';
1529
1529
  var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
1530
1530
  var tmp_1 = filterNot(tmp_0, PythonIrEmitter$emitGenerator$lambda);
1531
1531
  var tmp_2 = filterNot(tmp_1, PythonIrEmitter$emitGenerator$lambda_0(generatorOwnName));
@@ -1534,8 +1534,8 @@ protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1534
1534
  var generatorRefs = LinkedHashSet_init_$Create$();
1535
1535
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1536
1536
  var scope = new TransformScope(sanitized);
1537
- scope.q1v(PythonIrEmitter$emitGenerator$lambda_2(generatorOwnName, generatorRefs));
1538
- var tmp_3 = scope.i1v_1;
1537
+ scope.b1z(PythonIrEmitter$emitGenerator$lambda_2(generatorOwnName, generatorRefs));
1538
+ var tmp_3 = scope.t1y_1;
1539
1539
  isInterface(tmp_3, Element) || THROW_CCE();
1540
1540
  // Inline function 'kotlin.collections.filter' call
1541
1541
  // Inline function 'kotlin.collections.filterTo' call
@@ -1544,7 +1544,7 @@ protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1544
1544
  while (_iterator__ex2g4s.u()) {
1545
1545
  var element = _iterator__ex2g4s.v();
1546
1546
  if (endsWith(element, 'Generator')) {
1547
- destination.x(element);
1547
+ destination.y(element);
1548
1548
  }
1549
1549
  }
1550
1550
  // Inline function 'kotlin.collections.map' call
@@ -1555,7 +1555,7 @@ protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1555
1555
  while (_iterator__ex2g4s_0.u()) {
1556
1556
  var item = _iterator__ex2g4s_0.v();
1557
1557
  var tmp$ret$6 = import_0('.' + item, item);
1558
- destination_0.x(tmp$ret$6);
1558
+ destination_0.y(tmp$ret$6);
1559
1559
  }
1560
1560
  var generatorImports = destination_0;
1561
1561
  // Inline function 'kotlin.collections.filterNot' call
@@ -1565,7 +1565,7 @@ protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1565
1565
  while (_iterator__ex2g4s_1.u()) {
1566
1566
  var element_0 = _iterator__ex2g4s_1.v();
1567
1567
  if (!endsWith(element_0, 'Generator')) {
1568
- destination_1.x(element_0);
1568
+ destination_1.y(element_0);
1569
1569
  }
1570
1570
  }
1571
1571
  // Inline function 'kotlin.collections.map' call
@@ -1575,12 +1575,12 @@ protoOf(PythonIrEmitter).e1w = function (definition, module_0) {
1575
1575
  while (_iterator__ex2g4s_2.u()) {
1576
1576
  var item_0 = _iterator__ex2g4s_2.v();
1577
1577
  var tmp$ret$12 = import_0('..model.' + item_0, item_0);
1578
- destination_2.x(tmp$ret$12);
1578
+ destination_2.y(tmp$ret$12);
1579
1579
  }
1580
1580
  var modelImports = destination_2;
1581
- return placeInModule_0(prependImports(sanitized, plus(plus(buildImports(this, '..wirespec'), modelImports), generatorImports)), this.h1z_1, 'generator');
1581
+ return placeInModule_0(prependImports(sanitized, plus(plus(buildImports(this, '..wirespec'), modelImports), generatorImports)), this.s22_1, 'generator');
1582
1582
  };
1583
- protoOf(PythonIrEmitter).kq = function (type, module_0) {
1583
+ protoOf(PythonIrEmitter).vt = function (type, module_0) {
1584
1584
  // Inline function 'kotlin.collections.distinctBy' call
1585
1585
  var this_0 = importReferences(type);
1586
1586
  var set = HashSet_init_$Create$();
@@ -1588,9 +1588,9 @@ protoOf(PythonIrEmitter).kq = function (type, module_0) {
1588
1588
  var _iterator__ex2g4s = this_0.t();
1589
1589
  while (_iterator__ex2g4s.u()) {
1590
1590
  var e = _iterator__ex2g4s.v();
1591
- var key = e.bv_1;
1592
- if (set.x(key)) {
1593
- list.x(e);
1591
+ var key = e.my_1;
1592
+ if (set.y(key)) {
1593
+ list.y(e);
1594
1594
  }
1595
1595
  }
1596
1596
  // Inline function 'kotlin.collections.map' call
@@ -1599,19 +1599,19 @@ protoOf(PythonIrEmitter).kq = function (type, module_0) {
1599
1599
  var _iterator__ex2g4s_0 = list.t();
1600
1600
  while (_iterator__ex2g4s_0.u()) {
1601
1601
  var item = _iterator__ex2g4s_0.v();
1602
- var tmp$ret$2 = import_0('.' + item.bv_1, item.bv_1);
1603
- destination.x(tmp$ret$2);
1602
+ var tmp$ret$2 = import_0('.' + item.my_1, item.my_1);
1603
+ destination.y(tmp$ret$2);
1604
1604
  }
1605
1605
  var typeImports = destination;
1606
1606
  // Inline function 'kotlin.collections.map' call
1607
- var this_1 = type.mp_1.ip_1;
1607
+ var this_1 = type.xs_1.ts_1;
1608
1608
  // Inline function 'kotlin.collections.mapTo' call
1609
1609
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1610
1610
  var _iterator__ex2g4s_1 = this_1.t();
1611
1611
  while (_iterator__ex2g4s_1.u()) {
1612
1612
  var item_0 = _iterator__ex2g4s_1.v();
1613
- var tmp$ret$5 = item_0.qp_1.l1();
1614
- destination_0.x(tmp$ret$5);
1613
+ var tmp$ret$5 = item_0.bt_1.m1();
1614
+ destination_0.y(tmp$ret$5);
1615
1615
  }
1616
1616
  var fieldNames = toSet(destination_0);
1617
1617
  var tmp = sanitizeNames(injectSelfReceiverToValidate(convertWithValidation(type, module_0), fieldNames), _get_sanitizationConfig__sns434(this));
@@ -1626,17 +1626,17 @@ protoOf(PythonIrEmitter).kq = function (type, module_0) {
1626
1626
  var tmp$ret$10 = tmp_0;
1627
1627
  return prependImports(tmp, tmp$ret$10);
1628
1628
  };
1629
- protoOf(PythonIrEmitter).zr = function (enum_0, module_0) {
1629
+ protoOf(PythonIrEmitter).kv = function (enum_0, module_0) {
1630
1630
  var tmp = convert_0(enum_0);
1631
1631
  return sanitizeNames(sanitizeEnumEntries(tmp, PythonIrEmitter$emit$lambda_0(this)), _get_sanitizationConfig__sns434(this));
1632
1632
  };
1633
- protoOf(PythonIrEmitter).pr = function (union) {
1633
+ protoOf(PythonIrEmitter).av = function (union) {
1634
1634
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1635
1635
  };
1636
- protoOf(PythonIrEmitter).ur = function (refined) {
1636
+ protoOf(PythonIrEmitter).fv = function (refined) {
1637
1637
  return sanitizeNames(replaceRefinedFunctions(convert_2(refined), refined), _get_sanitizationConfig__sns434(this));
1638
1638
  };
1639
- protoOf(PythonIrEmitter).as = function (endpoint) {
1639
+ protoOf(PythonIrEmitter).lv = function (endpoint) {
1640
1640
  // Inline function 'kotlin.collections.distinctBy' call
1641
1641
  var this_0 = importReferences(endpoint);
1642
1642
  var set = HashSet_init_$Create$();
@@ -1644,9 +1644,9 @@ protoOf(PythonIrEmitter).as = function (endpoint) {
1644
1644
  var _iterator__ex2g4s = this_0.t();
1645
1645
  while (_iterator__ex2g4s.u()) {
1646
1646
  var e = _iterator__ex2g4s.v();
1647
- var key = e.bv_1;
1648
- if (set.x(key)) {
1649
- list.x(e);
1647
+ var key = e.my_1;
1648
+ if (set.y(key)) {
1649
+ list.y(e);
1650
1650
  }
1651
1651
  }
1652
1652
  // Inline function 'kotlin.collections.map' call
@@ -1655,19 +1655,19 @@ protoOf(PythonIrEmitter).as = function (endpoint) {
1655
1655
  var _iterator__ex2g4s_0 = list.t();
1656
1656
  while (_iterator__ex2g4s_0.u()) {
1657
1657
  var item = _iterator__ex2g4s_0.v();
1658
- var tmp$ret$2 = import_0('..model.' + item.bv_1, item.bv_1);
1659
- destination.x(tmp$ret$2);
1658
+ var tmp$ret$2 = import_0('..model.' + item.my_1, item.my_1);
1659
+ destination.y(tmp$ret$2);
1660
1660
  }
1661
1661
  var endpointImports = destination;
1662
1662
  // Inline function 'kotlin.let' call
1663
1663
  var it = splitEndpointStructsToModuleLevel(convert_3(endpoint));
1664
- var tmp$ret$6 = it.c1o(VOID, plus(endpointImports, it.z1n_1));
1664
+ var tmp$ret$6 = it.n1r(VOID, plus(endpointImports, it.k1r_1));
1665
1665
  return sanitizeNames(snakeCaseHandlerAndCallMethods(tmp$ret$6), _get_sanitizationConfig__sns434(this));
1666
1666
  };
1667
- protoOf(PythonIrEmitter).or = function (channel) {
1667
+ protoOf(PythonIrEmitter).zu = function (channel) {
1668
1668
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1669
1669
  };
1670
- protoOf(PythonIrEmitter).d1w = function (endpoint) {
1670
+ protoOf(PythonIrEmitter).o1z = function (endpoint) {
1671
1671
  // Inline function 'kotlin.collections.distinctBy' call
1672
1672
  var this_0 = importReferences(endpoint);
1673
1673
  var set = HashSet_init_$Create$();
@@ -1675,9 +1675,9 @@ protoOf(PythonIrEmitter).d1w = function (endpoint) {
1675
1675
  var _iterator__ex2g4s = this_0.t();
1676
1676
  while (_iterator__ex2g4s.u()) {
1677
1677
  var e = _iterator__ex2g4s.v();
1678
- var key = e.bv_1;
1679
- if (set.x(key)) {
1680
- list.x(e);
1678
+ var key = e.my_1;
1679
+ if (set.y(key)) {
1680
+ list.y(e);
1681
1681
  }
1682
1682
  }
1683
1683
  // Inline function 'kotlin.collections.map' call
@@ -1686,17 +1686,17 @@ protoOf(PythonIrEmitter).d1w = function (endpoint) {
1686
1686
  var _iterator__ex2g4s_0 = list.t();
1687
1687
  while (_iterator__ex2g4s_0.u()) {
1688
1688
  var item = _iterator__ex2g4s_0.v();
1689
- var tmp$ret$2 = import_0('..model.' + item.bv_1, item.bv_1);
1690
- destination.x(tmp$ret$2);
1689
+ var tmp$ret$2 = import_0('..model.' + item.my_1, item.my_1);
1690
+ destination.y(tmp$ret$2);
1691
1691
  }
1692
1692
  var modelImports = destination;
1693
- var endpointImport = import_0('..endpoint.' + endpoint.up_1.l1(), '*');
1694
- var endpointName = endpoint.up_1.l1();
1693
+ var endpointImport = import_0('..endpoint.' + endpoint.ft_1.m1(), '*');
1694
+ var endpointName = endpoint.ft_1.m1();
1695
1695
  var file = flattenEndpointTypeRefs(snakeCaseClientFunctions(addSelfReceiverToClientFields(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)))), endpointName);
1696
- var subPackageName = plus_2(this.h1z_1, 'client');
1697
- return new File(Companion_getInstance().r1h(subPackageName.fs() + file.y1n_1.s1h()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.z1n_1));
1696
+ var subPackageName = plus_2(this.s22_1, 'client');
1697
+ return new File(Companion_getInstance().c1l(subPackageName.qv() + file.j1r_1.d1l()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.k1r_1));
1698
1698
  };
1699
- protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1699
+ protoOf(PythonIrEmitter).l1z = function (endpoints, logger) {
1700
1700
  // Inline function 'kotlin.collections.flatMap' call
1701
1701
  // Inline function 'kotlin.collections.flatMapTo' call
1702
1702
  var destination = ArrayList_init_$Create$();
@@ -1712,9 +1712,9 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1712
1712
  var _iterator__ex2g4s_0 = destination.t();
1713
1713
  while (_iterator__ex2g4s_0.u()) {
1714
1714
  var e = _iterator__ex2g4s_0.v();
1715
- var key = e.bv_1;
1716
- if (set.x(key)) {
1717
- list_0.x(e);
1715
+ var key = e.my_1;
1716
+ if (set.y(key)) {
1717
+ list_0.y(e);
1718
1718
  }
1719
1719
  }
1720
1720
  // Inline function 'kotlin.collections.map' call
@@ -1723,8 +1723,8 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1723
1723
  var _iterator__ex2g4s_1 = list_0.t();
1724
1724
  while (_iterator__ex2g4s_1.u()) {
1725
1725
  var item = _iterator__ex2g4s_1.v();
1726
- var tmp$ret$5 = import_0('.model.' + item.bv_1, item.bv_1);
1727
- destination_0.x(tmp$ret$5);
1726
+ var tmp$ret$5 = import_0('.model.' + item.my_1, item.my_1);
1727
+ destination_0.y(tmp$ret$5);
1728
1728
  }
1729
1729
  var modelImports = destination_0;
1730
1730
  // Inline function 'kotlin.collections.map' call
@@ -1733,8 +1733,8 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1733
1733
  var _iterator__ex2g4s_2 = endpoints.t();
1734
1734
  while (_iterator__ex2g4s_2.u()) {
1735
1735
  var item_0 = _iterator__ex2g4s_2.v();
1736
- var tmp$ret$8 = import_0('.endpoint.' + item_0.up_1.l1(), '*');
1737
- destination_1.x(tmp$ret$8);
1736
+ var tmp$ret$8 = import_0('.endpoint.' + item_0.ft_1.m1(), '*');
1737
+ destination_1.y(tmp$ret$8);
1738
1738
  }
1739
1739
  var endpointImports = destination_1;
1740
1740
  // Inline function 'kotlin.collections.map' call
@@ -1743,8 +1743,8 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1743
1743
  var _iterator__ex2g4s_3 = endpoints.t();
1744
1744
  while (_iterator__ex2g4s_3.u()) {
1745
1745
  var item_1 = _iterator__ex2g4s_3.v();
1746
- var tmp$ret$11 = import_0('.client.' + item_1.up_1.l1() + 'Client', item_1.up_1.l1() + 'Client');
1747
- destination_2.x(tmp$ret$11);
1746
+ var tmp$ret$11 = import_0('.client.' + item_1.ft_1.m1() + 'Client', item_1.ft_1.m1() + 'Client');
1747
+ destination_2.y(tmp$ret$11);
1748
1748
  }
1749
1749
  var clientImports = destination_2;
1750
1750
  var allImports = plus(plus(modelImports, endpointImports), clientImports);
@@ -1754,8 +1754,8 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1754
1754
  var _iterator__ex2g4s_4 = endpoints.t();
1755
1755
  while (_iterator__ex2g4s_4.u()) {
1756
1756
  var item_2 = _iterator__ex2g4s_4.v();
1757
- var tmp$ret$14 = item_2.up_1.l1();
1758
- destination_3.x(tmp$ret$14);
1757
+ var tmp$ret$14 = item_2.ft_1.m1();
1758
+ destination_3.y(tmp$ret$14);
1759
1759
  }
1760
1760
  var endpointNames = destination_3;
1761
1761
  // Inline function 'kotlin.let' call
@@ -1768,7 +1768,7 @@ protoOf(PythonIrEmitter).a1w = function (endpoints, logger) {
1768
1768
  accumulator = flattenEndpointTypeRefs(acc, element_0);
1769
1769
  }
1770
1770
  var file = accumulator;
1771
- return new File(Companion_getInstance().r1h(this.h1z_1.fs() + file.y1n_1.s1h()), plus(plus(buildImports(this, '.wirespec'), allImports), file.z1n_1));
1771
+ return new File(Companion_getInstance().c1l(this.s22_1.qv() + file.j1r_1.d1l()), plus(plus(buildImports(this, '.wirespec'), allImports), file.k1r_1));
1772
1772
  };
1773
1773
  function replaceReflectInNonGenericStructFields(_this__u8e3s4) {
1774
1774
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1776,14 +1776,14 @@ function replaceReflectInNonGenericStructFields(_this__u8e3s4) {
1776
1776
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1777
1777
  var tmp = scope;
1778
1778
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1779
- var this_0 = scope.i1v_1;
1779
+ var this_0 = scope.t1y_1;
1780
1780
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1781
1781
  // Inline function 'kotlin.apply' call
1782
1782
  var this_1 = new TransformerBuilder();
1783
- this_1.b1j(replaceReflectInNonGenericStructFields$lambda);
1784
- var tmp$ret$2 = this_1.c1j();
1785
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1786
- var tmp_0 = scope.i1v_1;
1783
+ this_1.m1m(replaceReflectInNonGenericStructFields$lambda);
1784
+ var tmp$ret$2 = this_1.n1m();
1785
+ tmp.t1y_1 = transform(this_0, tmp$ret$2);
1786
+ var tmp_0 = scope.t1y_1;
1787
1787
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1788
1788
  }
1789
1789
  function replaceRefinedFunctions(_this__u8e3s4, refined) {
@@ -1792,14 +1792,14 @@ function replaceRefinedFunctions(_this__u8e3s4, refined) {
1792
1792
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1793
1793
  var tmp = scope;
1794
1794
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1795
- var this_0 = scope.i1v_1;
1795
+ var this_0 = scope.t1y_1;
1796
1796
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1797
1797
  // Inline function 'kotlin.apply' call
1798
1798
  var this_1 = new TransformerBuilder();
1799
- this_1.b1j(replaceRefinedFunctions$lambda(refined));
1800
- var tmp$ret$2 = this_1.c1j();
1801
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1802
- var tmp_0 = scope.i1v_1;
1799
+ this_1.m1m(replaceRefinedFunctions$lambda(refined));
1800
+ var tmp$ret$2 = this_1.n1m();
1801
+ tmp.t1y_1 = transform(this_0, tmp$ret$2);
1802
+ var tmp_0 = scope.t1y_1;
1803
1803
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1804
1804
  }
1805
1805
  function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
@@ -1808,33 +1808,33 @@ function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
1808
1808
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1809
1809
  var tmp = scope;
1810
1810
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1811
- var this_0 = scope.i1v_1;
1811
+ var this_0 = scope.t1y_1;
1812
1812
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1813
1813
  // Inline function 'kotlin.apply' call
1814
1814
  var this_1 = new TransformerBuilder();
1815
- this_1.b1j(snakeCaseHandlerAndCallMethods$lambda);
1816
- var tmp$ret$2 = this_1.c1j();
1817
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1818
- var tmp_0 = scope.i1v_1;
1815
+ this_1.m1m(snakeCaseHandlerAndCallMethods$lambda);
1816
+ var tmp$ret$2 = this_1.n1m();
1817
+ tmp.t1y_1 = transform(this_0, tmp$ret$2);
1818
+ var tmp_0 = scope.t1y_1;
1819
1819
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1820
1820
  }
1821
1821
  function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1822
1822
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1823
1823
  // Inline function 'kotlin.collections.filterIsInstance' call
1824
- var tmp0 = _this__u8e3s4.a1o();
1824
+ var tmp0 = _this__u8e3s4.l1r();
1825
1825
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1826
1826
  var destination = ArrayList_init_$Create$();
1827
1827
  var _iterator__ex2g4s = tmp0.t();
1828
1828
  while (_iterator__ex2g4s.u()) {
1829
1829
  var element = _iterator__ex2g4s.v();
1830
1830
  if (element instanceof Namespace) {
1831
- destination.x(element);
1831
+ destination.y(element);
1832
1832
  }
1833
1833
  }
1834
1834
  var tmp$ret$2 = firstOrNull_0(destination);
1835
1835
  var namespace = ensureNotNull(tmp$ret$2);
1836
1836
  // Inline function 'kotlin.collections.partition' call
1837
- var this_0 = namespace.f1o_1;
1837
+ var this_0 = namespace.q1r_1;
1838
1838
  var first = ArrayList_init_$Create$();
1839
1839
  var second = ArrayList_init_$Create$();
1840
1840
  var _iterator__ex2g4s_0 = this_0.t();
@@ -1847,22 +1847,22 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1847
1847
  tmp = element_0 instanceof Union_0;
1848
1848
  }
1849
1849
  if (tmp) {
1850
- first.x(element_0);
1850
+ first.y(element_0);
1851
1851
  } else {
1852
- second.x(element_0);
1852
+ second.y(element_0);
1853
1853
  }
1854
1854
  }
1855
1855
  var _destruct__k2r9zo = new Pair(first, second);
1856
- var moduleElements = _destruct__k2r9zo.ve();
1857
- var classElements = _destruct__k2r9zo.we();
1858
- var endpointClass = new Namespace(namespace.e1o_1, classElements, namespace.g1o_1);
1859
- return new File(namespace.e1o_1, plus_0(moduleElements, endpointClass));
1856
+ var moduleElements = _destruct__k2r9zo.mf();
1857
+ var classElements = _destruct__k2r9zo.nf();
1858
+ var endpointClass = new Namespace(namespace.p1r_1, classElements, namespace.r1r_1);
1859
+ return new File(namespace.p1r_1, plus_0(moduleElements, endpointClass));
1860
1860
  }
1861
1861
  function flattenEndpointTypeRefs(_this__u8e3s4, endpointName) {
1862
1862
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1863
1863
  var scope = new TransformScope(_this__u8e3s4);
1864
- scope.o1v(flattenEndpointTypeRefs$lambda(endpointName));
1865
- var tmp = scope.i1v_1;
1864
+ scope.z1y(flattenEndpointTypeRefs$lambda(endpointName));
1865
+ var tmp = scope.t1y_1;
1866
1866
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1867
1867
  }
1868
1868
  function snakeCaseClientFunctions(_this__u8e3s4) {
@@ -1871,15 +1871,15 @@ function snakeCaseClientFunctions(_this__u8e3s4) {
1871
1871
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1872
1872
  var tmp = scope;
1873
1873
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1874
- var this_0 = scope.i1v_1;
1874
+ var this_0 = scope.t1y_1;
1875
1875
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1876
1876
  // Inline function 'kotlin.apply' call
1877
1877
  var this_1 = new TransformerBuilder();
1878
- this_1.b1j(snakeCaseClientFunctions$lambda);
1879
- var tmp$ret$2 = this_1.c1j();
1880
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1881
- scope.r1v(snakeCaseClientFunctions$lambda_0);
1882
- var tmp_0 = scope.i1v_1;
1878
+ this_1.m1m(snakeCaseClientFunctions$lambda);
1879
+ var tmp$ret$2 = this_1.n1m();
1880
+ tmp.t1y_1 = transform(this_0, tmp$ret$2);
1881
+ scope.c1z(snakeCaseClientFunctions$lambda_0);
1882
+ var tmp_0 = scope.t1y_1;
1883
1883
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1884
1884
  }
1885
1885
  function addSelfReceiverToClientFields(_this__u8e3s4) {
@@ -1890,14 +1890,14 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1890
1890
  } else {
1891
1891
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1892
1892
  // Inline function 'kotlin.collections.filterIsInstance' call
1893
- var tmp0 = tmp0_safe_receiver.a1o();
1893
+ var tmp0 = tmp0_safe_receiver.l1r();
1894
1894
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1895
1895
  var destination = ArrayList_init_$Create$();
1896
1896
  var _iterator__ex2g4s = tmp0.t();
1897
1897
  while (_iterator__ex2g4s.u()) {
1898
1898
  var element = _iterator__ex2g4s.v();
1899
1899
  if (element instanceof Struct) {
1900
- destination.x(element);
1900
+ destination.y(element);
1901
1901
  }
1902
1902
  }
1903
1903
  tmp = firstOrNull_0(destination);
@@ -1914,8 +1914,8 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1914
1914
  var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
1915
1915
  while (_iterator__ex2g4s_0.u()) {
1916
1916
  var item = _iterator__ex2g4s_0.v();
1917
- var tmp$ret$3 = item.b1q_1.n1j();
1918
- destination_0.x(tmp$ret$3);
1917
+ var tmp$ret$3 = item.m1t_1.y1m();
1918
+ destination_0.y(tmp$ret$3);
1919
1919
  }
1920
1920
  tmp_0 = destination_0;
1921
1921
  }
@@ -1926,8 +1926,8 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1926
1926
  return _this__u8e3s4;
1927
1927
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1928
1928
  var scope = new TransformScope(_this__u8e3s4);
1929
- scope.r1v(addSelfReceiverToClientFields$lambda(fieldNames));
1930
- var tmp_1 = scope.i1v_1;
1929
+ scope.c1z(addSelfReceiverToClientFields$lambda(fieldNames));
1930
+ var tmp_1 = scope.t1y_1;
1931
1931
  return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1932
1932
  }
1933
1933
  function replaceReflectAsTypeAny(_this__u8e3s4) {
@@ -1936,13 +1936,13 @@ function replaceReflectAsTypeAny(_this__u8e3s4) {
1936
1936
  tmp = Custom_init_$Create$('type', listOf_0(Any_instance));
1937
1937
  } else {
1938
1938
  if (_this__u8e3s4 instanceof Nullable) {
1939
- tmp = _this__u8e3s4.k1n(replaceReflectAsTypeAny(_this__u8e3s4.j1j_1));
1939
+ tmp = _this__u8e3s4.v1q(replaceReflectAsTypeAny(_this__u8e3s4.u1m_1));
1940
1940
  } else {
1941
1941
  if (_this__u8e3s4 instanceof Array_0) {
1942
- tmp = _this__u8e3s4.k1n(replaceReflectAsTypeAny(_this__u8e3s4.k1j_1));
1942
+ tmp = _this__u8e3s4.v1q(replaceReflectAsTypeAny(_this__u8e3s4.v1m_1));
1943
1943
  } else {
1944
1944
  if (_this__u8e3s4 instanceof Dict_0) {
1945
- tmp = _this__u8e3s4.n1n(replaceReflectAsTypeAny(_this__u8e3s4.l1n_1), replaceReflectAsTypeAny(_this__u8e3s4.m1n_1));
1945
+ tmp = _this__u8e3s4.y1q(replaceReflectAsTypeAny(_this__u8e3s4.w1q_1), replaceReflectAsTypeAny(_this__u8e3s4.x1q_1));
1946
1946
  } else {
1947
1947
  tmp = _this__u8e3s4;
1948
1948
  }
@@ -1957,12 +1957,12 @@ function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
1957
1957
  var tmp$ret$1;
1958
1958
  $l$block: {
1959
1959
  // Inline function 'kotlin.collections.isNotEmpty' call
1960
- if (!element.o1o_1.r()) {
1960
+ if (!element.z1r_1.r()) {
1961
1961
  tmp$ret$1 = element;
1962
1962
  break $l$block;
1963
1963
  }
1964
1964
  // Inline function 'kotlin.collections.map' call
1965
- var this_0 = element.k1o_1;
1965
+ var this_0 = element.v1r_1;
1966
1966
  // Inline function 'kotlin.collections.mapTo' call
1967
1967
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1968
1968
  var _iterator__ex2g4s = this_0.t();
@@ -1970,14 +1970,14 @@ function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
1970
1970
  var item = _iterator__ex2g4s.v();
1971
1971
  var tmp_0;
1972
1972
  if (item instanceof Field) {
1973
- tmp_0 = item.f1q(VOID, replaceReflectAsTypeAny(item.c1q_1));
1973
+ tmp_0 = item.q1t(VOID, replaceReflectAsTypeAny(item.n1t_1));
1974
1974
  } else {
1975
1975
  tmp_0 = item;
1976
1976
  }
1977
1977
  var tmp$ret$2 = tmp_0;
1978
- destination.x(tmp$ret$2);
1978
+ destination.y(tmp$ret$2);
1979
1979
  }
1980
- tmp$ret$1 = element.q1o(VOID, destination);
1980
+ tmp$ret$1 = element.b1s(VOID, destination);
1981
1981
  }
1982
1982
  tmp = tmp$ret$1;
1983
1983
  } else {
@@ -1988,17 +1988,17 @@ function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
1988
1988
  }
1989
1989
  function replaceRefinedFunctions$lambda$lambda($constraintExpr) {
1990
1990
  return function ($this$function) {
1991
- $this$function.c1i('self', Custom_init_$Create$(''));
1992
- $this$function.f1i(Boolean_instance_0);
1993
- $this$function.g1i($constraintExpr);
1991
+ $this$function.n1l('self', Custom_init_$Create$(''));
1992
+ $this$function.q1l(Boolean_instance_0);
1993
+ $this$function.r1l($constraintExpr);
1994
1994
  return Unit_instance;
1995
1995
  };
1996
1996
  }
1997
1997
  function replaceRefinedFunctions$lambda$lambda_0($toStringExpr) {
1998
1998
  return function ($this$function) {
1999
- $this$function.c1i('self', Custom_init_$Create$(''));
2000
- $this$function.f1i(String_instance);
2001
- $this$function.g1i(new RawExpression($toStringExpr));
1999
+ $this$function.n1l('self', Custom_init_$Create$(''));
2000
+ $this$function.q1l(String_instance);
2001
+ $this$function.r1l(new RawExpression($toStringExpr));
2002
2002
  return Unit_instance;
2003
2003
  };
2004
2004
  }
@@ -2007,7 +2007,7 @@ function replaceRefinedFunctions$lambda($refined) {
2007
2007
  var tmp;
2008
2008
  if (element instanceof Struct) {
2009
2009
  // Inline function 'kotlin.collections.mapNotNull' call
2010
- var tmp0 = element.n1o_1;
2010
+ var tmp0 = element.y1r_1;
2011
2011
  // Inline function 'kotlin.collections.mapNotNullTo' call
2012
2012
  var destination = ArrayList_init_$Create$();
2013
2013
  // Inline function 'kotlin.collections.forEach' call
@@ -2017,23 +2017,23 @@ function replaceRefinedFunctions$lambda($refined) {
2017
2017
  var tmp_0;
2018
2018
  var tmp_1;
2019
2019
  if (element_0 instanceof Function) {
2020
- tmp_1 = element_0.h1l_1.equals(Companion_getInstance().r1h('validate'));
2020
+ tmp_1 = element_0.s1o_1.equals(Companion_getInstance().c1l('validate'));
2021
2021
  } else {
2022
2022
  tmp_1 = false;
2023
2023
  }
2024
2024
  if (tmp_1) {
2025
- var constraintExpr = convertConstraint($refined.tr_1, new FieldCall(new VariableReference(Companion_getInstance().r1h('self')), Companion_getInstance().r1h('value')));
2025
+ var constraintExpr = convertConstraint($refined.ev_1, new FieldCall(new VariableReference(Companion_getInstance().c1l('self')), Companion_getInstance().c1l('value')));
2026
2026
  tmp_0 = function_0('validate', VOID, VOID, replaceRefinedFunctions$lambda$lambda(constraintExpr));
2027
2027
  } else {
2028
2028
  var tmp_2;
2029
2029
  if (element_0 instanceof Function) {
2030
- tmp_2 = element_0.h1l_1.equals(Companion_getInstance().r1h('toString'));
2030
+ tmp_2 = element_0.s1o_1.equals(Companion_getInstance().c1l('toString'));
2031
2031
  } else {
2032
2032
  tmp_2 = false;
2033
2033
  }
2034
2034
  if (tmp_2) {
2035
2035
  var tmp_3;
2036
- if ($refined.tr_1.fv_1 instanceof String_0) {
2036
+ if ($refined.ev_1.qy_1 instanceof String_0) {
2037
2037
  tmp_3 = 'self.value';
2038
2038
  } else {
2039
2039
  tmp_3 = 'str(self.value)';
@@ -2049,10 +2049,10 @@ function replaceRefinedFunctions$lambda($refined) {
2049
2049
  null;
2050
2050
  else {
2051
2051
  // Inline function 'kotlin.let' call
2052
- destination.x(tmp0_safe_receiver);
2052
+ destination.y(tmp0_safe_receiver);
2053
2053
  }
2054
2054
  }
2055
- tmp = element.q1o(VOID, VOID, VOID, VOID, destination);
2055
+ tmp = element.b1s(VOID, VOID, VOID, VOID, destination);
2056
2056
  } else {
2057
2057
  tmp = element;
2058
2058
  }
@@ -2065,23 +2065,23 @@ function snakeCaseHandlerAndCallMethods$lambda(element, transformer) {
2065
2065
  if (element instanceof Interface) {
2066
2066
  var tmp$ret$0;
2067
2067
  $l$block: {
2068
- if (!element.s1o_1.equals(Companion_getInstance().r1h('Handler')) && !element.s1o_1.equals(Companion_getInstance().r1h('Call'))) {
2068
+ if (!element.d1s_1.equals(Companion_getInstance().c1l('Handler')) && !element.d1s_1.equals(Companion_getInstance().c1l('Call'))) {
2069
2069
  tmp$ret$0 = element;
2070
2070
  break $l$block;
2071
2071
  }
2072
2072
  // Inline function 'kotlin.collections.map' call
2073
- var this_0 = element.t1o_1;
2073
+ var this_0 = element.e1s_1;
2074
2074
  // Inline function 'kotlin.collections.mapTo' call
2075
2075
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2076
2076
  var _iterator__ex2g4s = this_0.t();
2077
2077
  while (_iterator__ex2g4s.u()) {
2078
2078
  var item = _iterator__ex2g4s.v();
2079
2079
  var tmp0_safe_receiver = item instanceof Function ? item : null;
2080
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1l(Companion_getInstance().r1h(item.h1l_1.z1m()));
2080
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1p(Companion_getInstance().c1l(item.s1o_1.k1q()));
2081
2081
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
2082
- destination.x(tmp$ret$1);
2082
+ destination.y(tmp$ret$1);
2083
2083
  }
2084
- tmp$ret$0 = element.z1o(VOID, destination);
2084
+ tmp$ret$0 = element.k1s(VOID, destination);
2085
2085
  }
2086
2086
  tmp = tmp$ret$0;
2087
2087
  } else {
@@ -2096,17 +2096,17 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
2096
2096
  if (!(type instanceof Custom_0)) {
2097
2097
  tmp = type;
2098
2098
  } else {
2099
- if (!startsWith(type.l1j_1.s1h(), $endpointName + '.')) {
2099
+ if (!startsWith(type.w1m_1.d1l(), $endpointName + '.')) {
2100
2100
  tmp = type;
2101
2101
  } else {
2102
- var suffix = removePrefix(type.l1j_1.s1h(), $endpointName + '.');
2102
+ var suffix = removePrefix(type.w1m_1.d1l(), $endpointName + '.');
2103
2103
  switch (suffix) {
2104
2104
  case 'Call':
2105
2105
  case 'Handler':
2106
2106
  tmp = type;
2107
2107
  break;
2108
2108
  default:
2109
- tmp = type.p1n(Companion_getInstance().r1h(suffix));
2109
+ tmp = type.a1r(Companion_getInstance().c1l(suffix));
2110
2110
  break;
2111
2111
  }
2112
2112
  }
@@ -2117,7 +2117,7 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
2117
2117
  function snakeCaseClientFunctions$lambda(element, transformer) {
2118
2118
  var tmp;
2119
2119
  if (element instanceof Function) {
2120
- tmp = element.p1l(Companion_getInstance().r1h(element.h1l_1.z1m()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().r1h('self'), Custom_init_$Create$(''))), element.j1l_1));
2120
+ tmp = element.a1p(Companion_getInstance().c1l(element.s1o_1.k1q()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().c1l('self'), Custom_init_$Create$(''))), element.u1o_1));
2121
2121
  } else {
2122
2122
  tmp = element;
2123
2123
  }
@@ -2127,32 +2127,32 @@ function snakeCaseClientFunctions$lambda(element, transformer) {
2127
2127
  function snakeCaseClientFunctions$lambda_0(stmt, tr) {
2128
2128
  var tmp;
2129
2129
  if (stmt instanceof FunctionCall) {
2130
- var nameStr = stmt.d1n_1.n1j();
2131
- var newName = contains(nameStr, '.') ? stmt.d1n_1 : Companion_getInstance().r1h(Companion_getInstance().r1h(nameStr).z1m());
2132
- var tmp1_safe_receiver = stmt.b1n_1;
2130
+ var nameStr = stmt.o1q_1.y1m();
2131
+ var newName = contains(nameStr, '.') ? stmt.o1q_1 : Companion_getInstance().c1l(Companion_getInstance().c1l(nameStr).k1q());
2132
+ var tmp1_safe_receiver = stmt.m1q_1;
2133
2133
  var tmp_0;
2134
2134
  if (tmp1_safe_receiver == null) {
2135
2135
  tmp_0 = null;
2136
2136
  } else {
2137
2137
  // Inline function 'kotlin.let' call
2138
- tmp_0 = tr.d1v(tmp1_safe_receiver);
2138
+ tmp_0 = tr.o1y(tmp1_safe_receiver);
2139
2139
  }
2140
2140
  var tmp2_receiver = tmp_0;
2141
2141
  // Inline function 'kotlin.collections.mapValues' call
2142
- var this_0 = stmt.e1n_1;
2142
+ var this_0 = stmt.p1q_1;
2143
2143
  // Inline function 'kotlin.collections.mapValuesTo' call
2144
- var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
2144
+ var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
2145
2145
  // Inline function 'kotlin.collections.associateByTo' call
2146
- var _iterator__ex2g4s = this_0.j1().t();
2146
+ var _iterator__ex2g4s = this_0.k1().t();
2147
2147
  while (_iterator__ex2g4s.u()) {
2148
2148
  var element = _iterator__ex2g4s.v();
2149
- var tmp_1 = element.k1();
2149
+ var tmp_1 = element.l1();
2150
2150
  // Inline function 'kotlin.collections.component2' call
2151
- var v = element.l1();
2152
- var tmp$ret$4 = tr.d1v(v);
2153
- destination.s2(tmp_1, tmp$ret$4);
2151
+ var v = element.m1();
2152
+ var tmp$ret$4 = tr.o1y(v);
2153
+ destination.t2(tmp_1, tmp$ret$4);
2154
2154
  }
2155
- var tmp4_isAwait = !(stmt.b1n_1 == null);
2155
+ var tmp4_isAwait = !(stmt.m1q_1 == null);
2156
2156
  tmp = new FunctionCall(tmp2_receiver, VOID, newName, destination, tmp4_isAwait);
2157
2157
  } else {
2158
2158
  tmp = transformChildren(stmt, tr);
@@ -2165,28 +2165,28 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
2165
2165
  var tmp_0;
2166
2166
  var tmp_1;
2167
2167
  if (stmt instanceof FieldCall) {
2168
- tmp_1 = stmt.r1q_1 == null;
2168
+ tmp_1 = stmt.c1u_1 == null;
2169
2169
  } else {
2170
2170
  tmp_1 = false;
2171
2171
  }
2172
2172
  if (tmp_1) {
2173
- tmp_0 = $fieldNames.u1(stmt.s1q_1.n1j());
2173
+ tmp_0 = $fieldNames.v1(stmt.d1u_1.y1m());
2174
2174
  } else {
2175
2175
  tmp_0 = false;
2176
2176
  }
2177
2177
  if (tmp_0) {
2178
- tmp = new FieldCall(new VariableReference(Companion_getInstance().r1h('self')), stmt.s1q_1);
2178
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().c1l('self')), stmt.d1u_1);
2179
2179
  } else {
2180
2180
  if (stmt instanceof FieldCall) {
2181
- var tmp0_safe_receiver = stmt.r1q_1;
2181
+ var tmp0_safe_receiver = stmt.c1u_1;
2182
2182
  var tmp_2;
2183
2183
  if (tmp0_safe_receiver == null) {
2184
2184
  tmp_2 = null;
2185
2185
  } else {
2186
2186
  // Inline function 'kotlin.let' call
2187
- tmp_2 = tr.d1v(tmp0_safe_receiver);
2187
+ tmp_2 = tr.o1y(tmp0_safe_receiver);
2188
2188
  }
2189
- tmp = new FieldCall(tmp_2, stmt.s1q_1);
2189
+ tmp = new FieldCall(tmp_2, stmt.d1u_1);
2190
2190
  } else {
2191
2191
  tmp = transformChildren(stmt, tr);
2192
2192
  }
@@ -2197,8 +2197,8 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
2197
2197
  function PythonRefinedTypeDefinitionEmitter() {
2198
2198
  }
2199
2199
  function PythonShared() {
2200
- this.a1z_1 = 'shared';
2201
- this.b1z_1 = "from abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Generic, List, Dict, Optional, TypeVar\n\nT = TypeVar('T')\nREQ = TypeVar('REQ')\nRES = TypeVar('RES')\n\nclass Wirespec:\n\n class Refined(ABC, Generic[T]):\n @property\n @abstractmethod\n def value(self) -> T: pass\n\n class Endpoint(ABC):\n\n class Handler(ABC):\n pass\n\n class Convert(ABC, Generic[REQ, RES]):\n @staticmethod\n @abstractmethod\n def to_raw_request(serializer: 'Wirespec.Serializer', req: REQ) -> 'Wirespec.RawRequest': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_response(serializer: 'Wirespec.Deserializer', res: 'Wirespec.RawResponse') -> RES: pass\n\n @staticmethod\n @abstractmethod\n def to_raw_response(serializer: 'Wirespec.Serializer', res: RES) -> 'Wirespec.RawResponse': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_request(serializer: 'Wirespec.Deserializer[T]', req: 'Wirespec.RawRequest') -> REQ: pass\n\n class Method(Enum):\n GET = \"GET\"\n PUT = \"PUT\"\n POST = \"POST\"\n DELETE = \"DELETE\"\n OPTIONS = \"OPTIONS\"\n HEAD = \"HEAD\"\n PATCH = \"PATCH\"\n TRACE = \"TRACE\"\n\n class Request(Generic[T], ABC):\n\n class Path(ABC): pass\n\n class Queries(ABC): pass\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def path(self) -> Path: pass\n\n @property\n @abstractmethod\n def method(self) -> 'Wirespec.Method': pass\n\n @property\n @abstractmethod\n def queries(self) -> Queries: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Response(Generic[T], ABC):\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def status(self) -> int: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Serializer(Generic[T], ABC):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n\n class Deserializer(Generic[T], ABC):\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n class Serialization(Serializer, Deserializer):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n @dataclass\n class RawRequest:\n method: str\n path: List[str]\n queries: Dict[str, List[str]]\n headers: Dict[str, List[str]]\n body: Optional[str]\n\n\n @dataclass\n class RawResponse:\n status_code: int\n headers: Dict[str, List[str]]\n body: Optional[str]\n";
2200
+ this.l22_1 = 'shared';
2201
+ this.m22_1 = "from abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Generic, List, Dict, Optional, TypeVar\n\nT = TypeVar('T')\nREQ = TypeVar('REQ')\nRES = TypeVar('RES')\n\nclass Wirespec:\n\n class Refined(ABC, Generic[T]):\n @property\n @abstractmethod\n def value(self) -> T: pass\n\n class Endpoint(ABC):\n\n class Handler(ABC):\n pass\n\n class Convert(ABC, Generic[REQ, RES]):\n @staticmethod\n @abstractmethod\n def to_raw_request(serializer: 'Wirespec.Serializer', req: REQ) -> 'Wirespec.RawRequest': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_response(serializer: 'Wirespec.Deserializer', res: 'Wirespec.RawResponse') -> RES: pass\n\n @staticmethod\n @abstractmethod\n def to_raw_response(serializer: 'Wirespec.Serializer', res: RES) -> 'Wirespec.RawResponse': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_request(serializer: 'Wirespec.Deserializer[T]', req: 'Wirespec.RawRequest') -> REQ: pass\n\n class Method(Enum):\n GET = \"GET\"\n PUT = \"PUT\"\n POST = \"POST\"\n DELETE = \"DELETE\"\n OPTIONS = \"OPTIONS\"\n HEAD = \"HEAD\"\n PATCH = \"PATCH\"\n TRACE = \"TRACE\"\n\n class Request(Generic[T], ABC):\n\n class Path(ABC): pass\n\n class Queries(ABC): pass\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def path(self) -> Path: pass\n\n @property\n @abstractmethod\n def method(self) -> 'Wirespec.Method': pass\n\n @property\n @abstractmethod\n def queries(self) -> Queries: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Response(Generic[T], ABC):\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def status(self) -> int: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Serializer(Generic[T], ABC):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n\n class Deserializer(Generic[T], ABC):\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n class Serialization(Serializer, Deserializer):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n @dataclass\n class RawRequest:\n method: str\n path: List[str]\n queries: Dict[str, List[str]]\n headers: Dict[str, List[str]]\n body: Optional[str]\n\n\n @dataclass\n class RawResponse:\n status_code: int\n headers: Dict[str, List[str]]\n body: Optional[str]\n";
2202
2202
  }
2203
2203
  protoOf(PythonShared).toString = function () {
2204
2204
  return 'PythonShared';
@@ -2219,17 +2219,17 @@ function PythonShared_getInstance() {
2219
2219
  }
2220
2220
  function PythonTypeDefinitionEmitter$emit$lambda(this$0) {
2221
2221
  return function (it) {
2222
- return this$0.f1z(it);
2222
+ return this$0.q22(it);
2223
2223
  };
2224
2224
  }
2225
2225
  function PythonTypeDefinitionEmitter$emit$lambda_0(this$0) {
2226
2226
  return function (it) {
2227
- return this$0.f1z(it);
2227
+ return this$0.q22(it);
2228
2228
  };
2229
2229
  }
2230
2230
  function PythonTypeDefinitionEmitter$emit$lambda_1(this$0) {
2231
2231
  return function (it) {
2232
- return Spacer_instance.toString() + this$0.mq(it);
2232
+ return Spacer_instance.toString() + this$0.xt(it);
2233
2233
  };
2234
2234
  }
2235
2235
  function PythonTypeDefinitionEmitter() {
@@ -2237,28 +2237,28 @@ function PythonTypeDefinitionEmitter() {
2237
2237
  function PythonUnionDefinitionEmitter() {
2238
2238
  }
2239
2239
  //region block: post-declaration
2240
- protoOf(PythonEmitter).kq = emit_4;
2241
- protoOf(PythonEmitter).lq = emit_5;
2242
- protoOf(PythonEmitter).mq = emit_6;
2243
- protoOf(PythonEmitter).nq = emit_7;
2244
- protoOf(PythonEmitter).oq = emit_9;
2245
- protoOf(PythonEmitter).zr = emit_14;
2246
- protoOf(PythonEmitter).ur = emit_10;
2247
- protoOf(PythonEmitter).as = emit_11;
2248
- protoOf(PythonEmitter).pr = emit_15;
2249
- protoOf(PythonEmitter).nr = emit_3;
2250
- protoOf(PythonEmitter).or = emit_2;
2251
- protoOf(PythonEmitter).c1z = emit_8;
2252
- protoOf(PythonEmitter).j1x = emit_12;
2253
- protoOf(PythonEmitter).d1z = emit_13;
2254
- protoOf(PythonEmitter).bs = emitValidator;
2255
- protoOf(PythonEmitter).w1x = sanitize;
2256
- protoOf(PythonEmitter).m1x = sanitizeKeywords;
2257
- protoOf(PythonEmitter).e1z = emitType;
2258
- protoOf(PythonEmitter).f1z = emitReferenceCustomImports;
2259
- protoOf(PythonIrEmitter).x1v = get_extensions;
2260
- protoOf(PythonIrEmitter).eo = emit_1;
2261
- protoOf(PythonIrEmitter).c1w = beforeGenerate;
2240
+ protoOf(PythonEmitter).vt = emit_4;
2241
+ protoOf(PythonEmitter).wt = emit_5;
2242
+ protoOf(PythonEmitter).xt = emit_6;
2243
+ protoOf(PythonEmitter).yt = emit_7;
2244
+ protoOf(PythonEmitter).zt = emit_9;
2245
+ protoOf(PythonEmitter).kv = emit_10;
2246
+ protoOf(PythonEmitter).fv = emit_15;
2247
+ protoOf(PythonEmitter).lv = emit_11;
2248
+ protoOf(PythonEmitter).av = emit_14;
2249
+ protoOf(PythonEmitter).yu = emit_3;
2250
+ protoOf(PythonEmitter).zu = emit_2;
2251
+ protoOf(PythonEmitter).n22 = emit_8;
2252
+ protoOf(PythonEmitter).u20 = emit_12;
2253
+ protoOf(PythonEmitter).o22 = emit_13;
2254
+ protoOf(PythonEmitter).mv = emitValidator;
2255
+ protoOf(PythonEmitter).h21 = sanitize;
2256
+ protoOf(PythonEmitter).x20 = sanitizeKeywords;
2257
+ protoOf(PythonEmitter).p22 = emitType;
2258
+ protoOf(PythonEmitter).q22 = emitReferenceCustomImports;
2259
+ protoOf(PythonIrEmitter).i1z = get_extensions;
2260
+ protoOf(PythonIrEmitter).pr = emit_1;
2261
+ protoOf(PythonIrEmitter).n1z = beforeGenerate;
2262
2262
  //endregion
2263
2263
  //region block: init
2264
2264
  PythonShared_instance = new PythonShared();