@flock/wirespec 0.18.6 → 0.18.12

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 (46) hide show
  1. package/arrow-arrow-atomic.mjs +11 -11
  2. package/arrow-arrow-core.mjs +141 -141
  3. package/clikt-clikt-mordant.mjs +80 -80
  4. package/clikt-clikt.mjs +1395 -1395
  5. package/clikt-clikt.mjs.map +1 -1
  6. package/colormath-root-colormath.mjs +442 -442
  7. package/kotlin-kotlin-stdlib.mjs +1054 -946
  8. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  9. package/kotlin-openapi-bindings.mjs +20812 -6818
  10. package/kotlin-openapi-bindings.mjs.map +1 -1
  11. package/kotlin-rgxgen.mjs +1797 -1797
  12. package/kotlinx-io-kotlinx-io-core.mjs +405 -405
  13. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1960 -1763
  14. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  15. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1882 -1407
  16. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  17. package/mordant-mordant.mjs +1269 -1269
  18. package/package.json +3 -2
  19. package/wirespec-lsp.mjs +7 -0
  20. package/wirespec-src-compiler-core.mjs +1708 -1644
  21. package/wirespec-src-compiler-core.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-java.mjs +409 -409
  23. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-kotlin.mjs +326 -326
  25. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-python.mjs +328 -328
  27. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-rust.mjs +370 -370
  29. package/wirespec-src-compiler-emitters-scala.mjs +154 -154
  30. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  31. package/wirespec-src-compiler-emitters-typescript.mjs +372 -372
  32. package/wirespec-src-compiler-emitters-wirespec.mjs +80 -80
  33. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  34. package/wirespec-src-compiler-ir.mjs +3193 -3193
  35. package/wirespec-src-compiler-lib.mjs +399 -399
  36. package/wirespec-src-converter-avro.mjs +507 -507
  37. package/wirespec-src-converter-openapi.mjs +1487 -1413
  38. package/wirespec-src-converter-openapi.mjs.map +1 -1
  39. package/wirespec-src-ide-lsp.mjs +4928 -0
  40. package/wirespec-src-ide-lsp.mjs.map +1 -0
  41. package/wirespec-src-plugin-arguments.mjs +175 -175
  42. package/wirespec-src-plugin-cli.mjs +102 -102
  43. package/wirespec-src-plugin-npm.d.mts +2 -0
  44. package/wirespec-src-plugin-npm.mjs +42 -37
  45. package/wirespec-src-plugin-npm.mjs.map +1 -1
  46. package/wirespec-src-tools-generator.mjs +32 -32
@@ -185,10 +185,10 @@ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, V
185
185
  function emit_3(identifier) {
186
186
  var tmp;
187
187
  if (identifier instanceof DefinitionIdentifier) {
188
- tmp = this.d1w(identifier);
188
+ tmp = this.i1w(identifier);
189
189
  } else {
190
190
  if (identifier instanceof FieldIdentifier) {
191
- tmp = this.t1v(this.d1w(identifier));
191
+ tmp = this.y1v(this.i1w(identifier));
192
192
  } else {
193
193
  noWhenBranchMatchedException();
194
194
  }
@@ -206,7 +206,7 @@ function sanitize(_this__u8e3s4) {
206
206
  var item = _iterator__ex2g4s.v();
207
207
  var _unary__edvuaz = index;
208
208
  index = _unary__edvuaz + 1 | 0;
209
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
209
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.sq(item) : item;
210
210
  destination.x(tmp$ret$0);
211
211
  }
212
212
  // Inline function 'kotlin.text.filter' call
@@ -244,42 +244,42 @@ function sanitize(_this__u8e3s4) {
244
244
  return tmp;
245
245
  }
246
246
  function sanitizeKeywords(_this__u8e3s4) {
247
- return Companion_getInstance_0().m1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
247
+ return Companion_getInstance_0().r1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
248
248
  }
249
249
  initMetadataForInterface(PythonIdentifierEmitter, 'PythonIdentifierEmitter');
250
250
  function emit_4(type, module_0) {
251
251
  var tmp;
252
- if (type.wo_1.so_1.r()) {
253
- var tmp_0 = this.wq(type.vo_1);
252
+ if (type.ap_1.wo_1.r()) {
253
+ var tmp_0 = this.br(type.zo_1);
254
254
  var tmp_1 = Spacer_instance.toString();
255
255
  var tmp_2 = importReferences(type);
256
256
  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 ');
257
257
  } else {
258
- var tmp_3 = this.wq(type.vo_1);
259
- var tmp_4 = this.vp(type.wo_1);
258
+ var tmp_3 = this.br(type.zo_1);
259
+ var tmp_4 = this.zp(type.ap_1);
260
260
  var tmp_5 = importReferences(type);
261
261
  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 ');
262
262
  }
263
263
  return tmp;
264
264
  }
265
265
  function emit_5(_this__u8e3s4) {
266
- return joinToString(_this__u8e3s4.so_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
266
+ return joinToString(_this__u8e3s4.wo_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
267
267
  }
268
268
  function emit_6(_this__u8e3s4) {
269
- return this.wq(_this__u8e3s4.ap_1) + ": '" + this.xp(_this__u8e3s4.bp_1) + "'";
269
+ return this.br(_this__u8e3s4.ep_1) + ": '" + this.bq(_this__u8e3s4.fp_1) + "'";
270
270
  }
271
271
  function emit_7(_this__u8e3s4) {
272
272
  // Inline function 'kotlin.let' call
273
- var it = this.k1x(_this__u8e3s4);
274
- return _this__u8e3s4.cu() ? 'Optional[' + it + ']' : it;
273
+ var it = this.p1x(_this__u8e3s4);
274
+ return _this__u8e3s4.hu() ? 'Optional[' + it + ']' : it;
275
275
  }
276
276
  function emitType(_this__u8e3s4) {
277
277
  var tmp;
278
278
  if (_this__u8e3s4 instanceof Dict) {
279
- tmp = 'Dict[str, ' + this.xp(_this__u8e3s4.co_1) + ']';
279
+ tmp = 'Dict[str, ' + this.bq(_this__u8e3s4.go_1) + ']';
280
280
  } else {
281
281
  if (_this__u8e3s4 instanceof Iterable) {
282
- tmp = 'List[' + this.xp(_this__u8e3s4.zn_1) + ']';
282
+ tmp = 'List[' + this.bq(_this__u8e3s4.do_1) + ']';
283
283
  } else {
284
284
  if (_this__u8e3s4 instanceof Unit) {
285
285
  tmp = 'None';
@@ -288,10 +288,10 @@ function emitType(_this__u8e3s4) {
288
288
  tmp = 'Any';
289
289
  } else {
290
290
  if (_this__u8e3s4 instanceof Custom) {
291
- tmp = _this__u8e3s4.ku_1;
291
+ tmp = _this__u8e3s4.pu_1;
292
292
  } else {
293
293
  if (_this__u8e3s4 instanceof Primitive) {
294
- tmp = this.i1x(_this__u8e3s4.ou_1);
294
+ tmp = this.n1x(_this__u8e3s4.tu_1);
295
295
  } else {
296
296
  noWhenBranchMatchedException();
297
297
  }
@@ -330,10 +330,10 @@ function emit_8(_this__u8e3s4) {
330
330
  function emit_9(_this__u8e3s4) {
331
331
  var tmp;
332
332
  if (_this__u8e3s4 instanceof RegExp_0) {
333
- tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ys_1) + '", self.value))';
333
+ tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.dt_1) + '", self.value))';
334
334
  } else {
335
335
  if (_this__u8e3s4 instanceof Bound) {
336
- var tmp1_safe_receiver = _this__u8e3s4.ot_1;
336
+ var tmp1_safe_receiver = _this__u8e3s4.tt_1;
337
337
  var tmp_0;
338
338
  if (tmp1_safe_receiver == null) {
339
339
  tmp_0 = null;
@@ -342,7 +342,7 @@ function emit_9(_this__u8e3s4) {
342
342
  tmp_0 = tmp1_safe_receiver + ' < self.value';
343
343
  }
344
344
  var minCheck = tmp_0;
345
- var tmp2_safe_receiver = _this__u8e3s4.pt_1;
345
+ var tmp2_safe_receiver = _this__u8e3s4.ut_1;
346
346
  var tmp_1;
347
347
  if (tmp2_safe_receiver == null) {
348
348
  tmp_1 = null;
@@ -368,26 +368,26 @@ function emit_9(_this__u8e3s4) {
368
368
  return tmp;
369
369
  }
370
370
  function emitReferenceCustomImports(_this__u8e3s4) {
371
- return 'from ..model.' + _this__u8e3s4.ku_1 + ' import ' + _this__u8e3s4.ku_1;
371
+ return 'from ..model.' + _this__u8e3s4.pu_1 + ' import ' + _this__u8e3s4.pu_1;
372
372
  }
373
373
  initMetadataForInterface(PythonTypeDefinitionEmitter, 'PythonTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, PythonIdentifierEmitter]);
374
374
  function emit_10(endpoint) {
375
375
  var tmp = importReferences(endpoint);
376
376
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda(this));
377
- var tmp_1 = this.wq(endpoint.ep_1);
378
- var tmp_2 = spacer(this.q1v(first(endpoint.jp_1), endpoint), 1);
379
- var tmp_3 = distinctByStatus(endpoint.kp_1);
377
+ var tmp_1 = this.br(endpoint.ip_1);
378
+ var tmp_2 = spacer(this.v1v(first(endpoint.np_1), endpoint), 1);
379
+ var tmp_3 = distinctByStatus(endpoint.op_1);
380
380
  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 ');
381
381
  }
382
382
  function emit_11(_this__u8e3s4, endpoint) {
383
- var tmp = emit_18(this, _this__u8e3s4.np_1);
383
+ var tmp = emit_18(this, _this__u8e3s4.rp_1);
384
384
  var tmp_0 = get_pathParams(endpoint);
385
385
  var tmp_1 = emitObject$default(this, tmp_0, 'Path', 'Wirespec.Request.Path', VOID, PythonEndpointDefinitionEmitter$emit$lambda_1(this));
386
- var tmp_2 = emitObject$default(this, endpoint.hp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
387
- var tmp_3 = emitObject$default(this, endpoint.ip_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
386
+ var tmp_2 = emitObject$default(this, endpoint.lp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
387
+ var tmp_3 = emitObject$default(this, endpoint.mp_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
388
388
  var tmp_4 = Spacer_instance.toString();
389
389
  var tmp_5 = Spacer_instance.toString();
390
- var tmp_6 = emit_18(this, _this__u8e3s4.np_1);
390
+ var tmp_6 = emit_18(this, _this__u8e3s4.rp_1);
391
391
  var tmp_7 = Spacer_instance.toString();
392
392
  var tmp_8 = Spacer_instance.toString();
393
393
  var tmp_9 = Spacer_instance.toString();
@@ -403,70 +403,66 @@ function emit_11(_this__u8e3s4, endpoint) {
403
403
  var tmp_19 = Spacer_instance.toString();
404
404
  var tmp_20 = Spacer_instance.toString();
405
405
  var tmp_21 = Spacer_instance.toString();
406
- var tmp_22 = emit_18(this, _this__u8e3s4.np_1);
406
+ var tmp_22 = emit_18(this, _this__u8e3s4.rp_1);
407
407
  var tmp_23 = Spacer_instance.toString();
408
408
  var tmp_24 = Spacer_instance.toString();
409
409
  var tmp_25 = Spacer_instance.toString();
410
410
  var tmp_26 = Spacer_instance.toString();
411
411
  var tmp_27 = Spacer_instance.toString();
412
412
  var tmp_28 = paramList(_this__u8e3s4, endpoint);
413
- 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.fp_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 ');
413
+ 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.jp_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 ');
414
414
  }
415
415
  function emit_12(_this__u8e3s4, endpoint) {
416
- var tmp = emit_18(this, _this__u8e3s4.sp_1);
417
- var tmp_0 = emitObject$default(this, _this__u8e3s4.rp_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
416
+ var tmp = emit_18(this, _this__u8e3s4.wp_1);
417
+ var tmp_0 = emitObject$default(this, _this__u8e3s4.vp_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
418
418
  var tmp_1 = Spacer_instance.toString();
419
419
  var tmp_2 = Spacer_instance.toString();
420
420
  var tmp_3 = Spacer_instance.toString();
421
421
  var tmp_4 = Spacer_instance.toString();
422
422
  var tmp_5 = Spacer_instance.toString();
423
423
  var tmp_6 = Spacer_instance.toString();
424
- var tmp_7 = emit_18(this, _this__u8e3s4.sp_1);
424
+ var tmp_7 = emit_18(this, _this__u8e3s4.wp_1);
425
425
  var tmp_8 = Spacer_instance.toString();
426
426
  var tmp_9 = Spacer_instance.toString();
427
427
  var tmp_10 = Spacer_instance.toString();
428
- var tmp_11 = emit_18(this, _this__u8e3s4.sp_1);
428
+ var tmp_11 = emit_18(this, _this__u8e3s4.wp_1);
429
429
  var tmp_12 = Spacer_instance.toString();
430
430
  var tmp_13 = Spacer_instance.toString();
431
431
  var tmp_14 = Spacer_instance.toString();
432
432
  var tmp_15 = paramList_0(_this__u8e3s4);
433
- return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.qp_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.qp_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 ');
433
+ return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.up_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.up_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 ');
434
434
  }
435
435
  initMetadataForInterface(PythonEndpointDefinitionEmitter, 'PythonEndpointDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter]);
436
- function emit_13(union) {
437
- return trimMargin('\n |class ' + this.wq(union.qo_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
438
- }
439
- initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
440
- function emit_14(enum_0, module_0) {
441
- var tmp = this.d1w(enum_0.gr_1);
442
- return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.hr_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.qr(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.qr(2) + 'return self.value\n ');
436
+ function emit_13(enum_0, module_0) {
437
+ var tmp = this.i1w(enum_0.lr_1);
438
+ return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.mr_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.vr(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.vr(2) + 'return self.value\n ');
443
439
  }
444
440
  initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
445
- function emit_15(refined) {
446
- return trimMargin('\n |@dataclass\n |class ' + this.d1w(refined.br_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.k1x(refined.cr_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.qr(2) + 'return ' + this.kr(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.qr(2) + 'return str(self.value)\n |\n ');
441
+ function emit_14(refined) {
442
+ return trimMargin('\n |@dataclass\n |class ' + this.i1w(refined.gr_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.p1x(refined.hr_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.vr(2) + 'return ' + this.pr(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.vr(2) + 'return str(self.value)\n |\n ');
447
443
  }
448
444
  function emitValidator(_this__u8e3s4) {
449
445
  var defaultReturn = 'True';
450
- var type = _this__u8e3s4.cr_1.ou_1;
446
+ var type = _this__u8e3s4.hr_1.tu_1;
451
447
  var tmp;
452
448
  if (type instanceof Integer) {
453
- var tmp0_safe_receiver = type.tt_1;
454
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
449
+ var tmp0_safe_receiver = type.yt_1;
450
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.cq(tmp0_safe_receiver);
455
451
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
456
452
  } else {
457
453
  if (type instanceof Number_0) {
458
- var tmp2_safe_receiver = type.wt_1;
459
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
454
+ var tmp2_safe_receiver = type.bu_1;
455
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.cq(tmp2_safe_receiver);
460
456
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
461
457
  } else {
462
458
  if (type instanceof String_0) {
463
- var tmp4_safe_receiver = type.qt_1;
459
+ var tmp4_safe_receiver = type.vt_1;
464
460
  var tmp_0;
465
461
  var tmp_1 = tmp4_safe_receiver;
466
462
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
467
463
  tmp_0 = null;
468
464
  } else {
469
- tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
465
+ tmp_0 = this.cq(new RegExp_0(tmp4_safe_receiver));
470
466
  }
471
467
  var tmp5_elvis_lhs = tmp_0;
472
468
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -486,7 +482,11 @@ function emitValidator(_this__u8e3s4) {
486
482
  return tmp;
487
483
  }
488
484
  initMetadataForInterface(PythonRefinedTypeDefinitionEmitter, 'PythonRefinedTypeDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter, PythonIdentifierEmitter]);
489
- initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonEndpointDefinitionEmitter, PythonChannelDefinitionEmitter, PythonTypeDefinitionEmitter, PythonUnionDefinitionEmitter, PythonEnumDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonIdentifierEmitter]);
485
+ function emit_15(union) {
486
+ return trimMargin('\n |class ' + this.br(union.uo_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
487
+ }
488
+ initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
489
+ initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonChannelDefinitionEmitter, PythonIdentifierEmitter, PythonEndpointDefinitionEmitter, PythonTypeDefinitionEmitter, PythonEnumDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonUnionDefinitionEmitter]);
490
490
  initMetadataForCompanion(Companion);
491
491
  initMetadataForCompanion(Companion_0);
492
492
  initMetadataForClass(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
@@ -496,16 +496,16 @@ initMetadataForObject(PythonShared, 'PythonShared');
496
496
  function PythonChannelDefinitionEmitter() {
497
497
  }
498
498
  function sam$kotlin_Comparator$0(function_0) {
499
- this.y1w_1 = function_0;
499
+ this.d1x_1 = function_0;
500
500
  }
501
- protoOf(sam$kotlin_Comparator$0).qd = function (a, b) {
502
- return this.y1w_1(a, b);
501
+ protoOf(sam$kotlin_Comparator$0).td = function (a, b) {
502
+ return this.d1x_1(a, b);
503
503
  };
504
504
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
505
- return this.qd(a, b);
505
+ return this.td(a, b);
506
506
  };
507
507
  protoOf(sam$kotlin_Comparator$0).l3 = function () {
508
- return this.y1w_1;
508
+ return this.d1x_1;
509
509
  };
510
510
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
511
511
  var tmp;
@@ -528,35 +528,35 @@ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
528
528
  function PythonEmitter$emit$lambda(this$0) {
529
529
  return function (a, b) {
530
530
  // Inline function 'kotlin.comparisons.compareValuesBy' call
531
- var tmp = this$0.f1x(a);
532
- var tmp$ret$1 = this$0.f1x(b);
531
+ var tmp = this$0.k1x(a);
532
+ var tmp$ret$1 = this$0.k1x(b);
533
533
  return compareValues(tmp, tmp$ret$1);
534
534
  };
535
535
  }
536
536
  function emit$emitInit(this$0, def) {
537
- return 'from .' + this$0.wq(def.vq()) + ' import ' + this$0.wq(def.vq());
537
+ return 'from .' + this$0.br(def.ar()) + ' import ' + this$0.br(def.ar());
538
538
  }
539
539
  function PythonEmitter(packageName, emitShared) {
540
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
541
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
540
+ packageName = packageName === VOID ? Companion_instance.qr('community.flock.wirespec.generated') : packageName;
541
+ emitShared = emitShared === VOID ? Companion_instance_0.ko() : emitShared;
542
542
  LanguageEmitter.call(this);
543
- this.z1w_1 = packageName;
544
- this.a1x_1 = emitShared;
545
- this.b1x_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';
546
- this.c1x_1 = FileExtension_Python_getInstance();
547
- this.d1x_1 = PythonShared_instance;
548
- this.e1x_1 = '#';
549
- }
550
- protoOf(PythonEmitter).eq = function () {
551
- return this.c1x_1;
543
+ this.e1x_1 = packageName;
544
+ this.f1x_1 = emitShared;
545
+ this.g1x_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';
546
+ this.h1x_1 = FileExtension_Python_getInstance();
547
+ this.i1x_1 = PythonShared_instance;
548
+ this.j1x_1 = '#';
549
+ }
550
+ protoOf(PythonEmitter).iq = function () {
551
+ return this.h1x_1;
552
552
  };
553
- protoOf(PythonEmitter).m1v = function () {
554
- return this.d1x_1;
553
+ protoOf(PythonEmitter).r1v = function () {
554
+ return this.i1x_1;
555
555
  };
556
- protoOf(PythonEmitter).fq = function () {
557
- return this.e1x_1;
556
+ protoOf(PythonEmitter).jq = function () {
557
+ return this.j1x_1;
558
558
  };
559
- protoOf(PythonEmitter).f1x = function (definition) {
559
+ protoOf(PythonEmitter).k1x = function (definition) {
560
560
  var tmp;
561
561
  if (definition instanceof Enum) {
562
562
  tmp = 1;
@@ -585,21 +585,21 @@ protoOf(PythonEmitter).f1x = function (definition) {
585
585
  }
586
586
  return tmp;
587
587
  };
588
- protoOf(PythonEmitter).tq = function (module_0, logger) {
588
+ protoOf(PythonEmitter).yq = function (module_0, logger) {
589
589
  // Inline function 'kotlin.collections.sortedBy' call
590
- var this_0 = new NonEmptyList(module_0.dq_1);
590
+ var this_0 = new NonEmptyList(module_0.hq_1);
591
591
  // Inline function 'kotlin.comparisons.compareBy' call
592
592
  var tmp = PythonEmitter$emit$lambda(this);
593
593
  var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
594
594
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
595
595
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
596
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
596
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).cm_1;
597
597
  // Inline function 'kotlin.let' call
598
- var it = protoOf(LanguageEmitter).tq.call(this, module_0.vu(VOID, statements), logger);
599
- var init = new Emitted(this.z1w_1.or() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
600
- var tmp_1 = this.z1w_1.or() + 'endpoint/' + '__init__';
598
+ var it = protoOf(LanguageEmitter).yq.call(this, module_0.av(VOID, statements), logger);
599
+ var init = new Emitted(this.e1x_1.tr() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
600
+ var tmp_1 = this.e1x_1.tr() + 'endpoint/' + '__init__';
601
601
  // Inline function 'kotlin.collections.filter' call
602
- var tmp0 = new NonEmptyList(module_0.dq_1);
602
+ var tmp0 = new NonEmptyList(module_0.hq_1);
603
603
  // Inline function 'kotlin.collections.filterTo' call
604
604
  var destination = ArrayList_init_$Create$();
605
605
  var _iterator__ex2g4s = tmp0.t();
@@ -619,9 +619,9 @@ protoOf(PythonEmitter).tq = function (module_0, logger) {
619
619
  destination_0.x(tmp$ret$5);
620
620
  }
621
621
  var initEndpoint = new Emitted(tmp_1, joinToString(destination_0, '\n'));
622
- var tmp_2 = this.z1w_1.or() + 'model/' + '__init__';
622
+ var tmp_2 = this.e1x_1.tr() + 'model/' + '__init__';
623
623
  // Inline function 'kotlin.collections.filter' call
624
- var tmp0_0 = new NonEmptyList(module_0.dq_1);
624
+ var tmp0_0 = new NonEmptyList(module_0.hq_1);
625
625
  // Inline function 'kotlin.collections.filterTo' call
626
626
  var destination_1 = ArrayList_init_$Create$();
627
627
  var _iterator__ex2g4s_1 = tmp0_0.t();
@@ -641,33 +641,33 @@ protoOf(PythonEmitter).tq = function (module_0, logger) {
641
641
  destination_2.x(tmp$ret$11);
642
642
  }
643
643
  var initModel = new Emitted(tmp_2, joinToString(destination_2, '\n'));
644
- var shared = new Emitted(this.z1w_1.or() + 'wirespec', this.m1v().h1x_1);
645
- return this.a1x_1.ho_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);
644
+ var shared = new Emitted(this.e1x_1.tr() + 'wirespec', this.r1v().m1x_1);
645
+ return this.f1x_1.lo_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);
646
646
  };
647
- protoOf(PythonEmitter).uq = function (definition, module_0, logger) {
648
- var subPackageName = plus_1(this.z1w_1, definition);
647
+ protoOf(PythonEmitter).zq = function (definition, module_0, logger) {
648
+ var subPackageName = plus_1(this.e1x_1, definition);
649
649
  // Inline function 'kotlin.let' call
650
- var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
651
- var tmp = subPackageName.or() + it.io_1;
650
+ var it = protoOf(LanguageEmitter).zq.call(this, definition, module_0, logger);
651
+ var tmp = subPackageName.tr() + it.mo_1;
652
652
  // Inline function 'kotlin.text.trimStart' call
653
- var this_0 = trimMargin('\n |' + this.b1x_1 + '\n |' + it.jo_1 + '\n ');
653
+ var this_0 = trimMargin('\n |' + this.g1x_1 + '\n |' + it.no_1 + '\n ');
654
654
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
655
655
  return new Emitted(tmp, tmp$ret$0);
656
656
  };
657
657
  function emitToRawRequest($this, _this__u8e3s4, endpoint) {
658
- var tmp = $this.wq(endpoint.ep_1);
658
+ var tmp = $this.br(endpoint.ip_1);
659
659
  var tmp_0 = Spacer_instance.toString();
660
660
  var tmp_1 = Spacer_instance.toString();
661
661
  var tmp_2 = Spacer_instance.toString();
662
- var tmp_3 = joinToString(endpoint.gp_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
662
+ var tmp_3 = joinToString(endpoint.kp_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
663
663
  var tmp_4 = Spacer_instance.toString();
664
664
  var tmp_5 = Spacer_instance.toString();
665
665
  var tmp_6 = Spacer_instance.toString();
666
666
  var tmp_7 = Spacer_instance.toString();
667
667
  var tmp_8;
668
668
  // Inline function 'kotlin.collections.isNotEmpty' call
669
- if (!endpoint.hp_1.r()) {
670
- tmp_8 = prependIndent(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.qr(3));
669
+ if (!endpoint.lp_1.r()) {
670
+ tmp_8 = prependIndent(joinToString(endpoint.lp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.vr(3));
671
671
  } else {
672
672
  tmp_8 = '';
673
673
  }
@@ -678,8 +678,8 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
678
678
  var tmp_13 = Spacer_instance.toString();
679
679
  var tmp_14;
680
680
  // Inline function 'kotlin.collections.isNotEmpty' call
681
- if (!endpoint.ip_1.r()) {
682
- tmp_14 = prependIndent(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.qr(3));
681
+ if (!endpoint.mp_1.r()) {
682
+ tmp_14 = prependIndent(joinToString(endpoint.mp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.vr(3));
683
683
  } else {
684
684
  tmp_14 = '';
685
685
  }
@@ -688,48 +688,48 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
688
688
  var tmp_17 = Spacer_instance.toString();
689
689
  var tmp_18 = Spacer_instance.toString();
690
690
  var tmp_19 = Spacer_instance.toString();
691
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
692
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
693
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.k1x(tmp1_safe_receiver);
691
+ var tmp0_safe_receiver = _this__u8e3s4.rp_1;
692
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tp_1;
693
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.p1x(tmp1_safe_receiver);
694
694
  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 ');
695
695
  }
696
696
  function emitFromRawRequest($this, _this__u8e3s4, endpoint) {
697
- return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.wq(endpoint.ep_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.wq(endpoint.ep_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
697
+ return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.br(endpoint.ip_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.br(endpoint.ip_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
698
698
  }
699
699
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
700
700
  var tmp = get_indexedPathParams(endpoint);
701
701
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
702
- var tmp_1 = orNull(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
703
- var tmp_2 = orNull(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
704
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
702
+ var tmp_1 = orNull(joinToString(endpoint.lp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
703
+ var tmp_2 = orNull(joinToString(endpoint.mp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
704
+ var tmp0_safe_receiver = _this__u8e3s4.rp_1;
705
705
  var tmp_3;
706
706
  if (tmp0_safe_receiver == null) {
707
707
  tmp_3 = null;
708
708
  } else {
709
709
  // Inline function 'kotlin.let' call
710
- tmp_3 = Spacer_instance.qr(3) + 'body = serialization.deserialize(request.body, ' + $this.k1x(tmp0_safe_receiver.pp_1) + '),';
710
+ tmp_3 = Spacer_instance.vr(3) + 'body = serialization.deserialize(request.body, ' + $this.p1x(tmp0_safe_receiver.tp_1) + '),';
711
711
  }
712
712
  // Inline function 'kotlin.let' call
713
713
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
714
714
  return isBlank(it) ? '()' : '(\n' + it + '\n)';
715
715
  }
716
716
  function emitResponseUnion($this, _this__u8e3s4) {
717
- return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.kp_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
717
+ return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.op_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
718
718
  }
719
719
  function emitHandleClass($this, _this__u8e3s4) {
720
- return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.ep_1.l1() + "(self, req: '" + $this.wq(_this__u8e3s4.ep_1) + ".Request') -> '" + $this.wq(_this__u8e3s4.ep_1) + ".Response': pass\n |\n ");
720
+ return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.ip_1.l1() + "(self, req: '" + $this.br(_this__u8e3s4.ip_1) + ".Request') -> '" + $this.br(_this__u8e3s4.ip_1) + ".Response': pass\n |\n ");
721
721
  }
722
722
  function emitConvertClass($this, _this__u8e3s4) {
723
- return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.jp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.jp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
723
+ return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.np_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.np_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
724
724
  }
725
725
  function emit_16($this, _this__u8e3s4) {
726
- return $this.wq(_this__u8e3s4.jq_1) + ': ' + $this.xp(_this__u8e3s4.kq_1);
726
+ return $this.br(_this__u8e3s4.nq_1) + ': ' + $this.bq(_this__u8e3s4.oq_1);
727
727
  }
728
728
  function emitAssignSelf($this, _this__u8e3s4) {
729
- return $this.wq(_this__u8e3s4.jq_1) + ' = ' + $this.wq(_this__u8e3s4.jq_1);
729
+ return $this.br(_this__u8e3s4.nq_1) + ' = ' + $this.br(_this__u8e3s4.nq_1);
730
730
  }
731
731
  function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
732
- var tmp = $this.wq(endpoint.ep_1);
732
+ var tmp = $this.br(endpoint.ip_1);
733
733
  // Inline function 'kotlin.collections.filter' call
734
734
  var tmp0 = paramList(_this__u8e3s4, endpoint);
735
735
  // Inline function 'kotlin.collections.filterTo' call
@@ -737,13 +737,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
737
737
  var _iterator__ex2g4s = tmp0.t();
738
738
  while (_iterator__ex2g4s.u()) {
739
739
  var element = _iterator__ex2g4s.v();
740
- if (element.iq_1.equals(ParamType_PATH_getInstance())) {
740
+ if (element.mq_1.equals(ParamType_PATH_getInstance())) {
741
741
  destination.x(element);
742
742
  }
743
743
  }
744
744
  var tmp_0 = destination;
745
745
  var tmp_1 = joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda($this));
746
- var tmp_2 = $this.wq(endpoint.ep_1);
746
+ var tmp_2 = $this.br(endpoint.ip_1);
747
747
  // Inline function 'kotlin.collections.filter' call
748
748
  var tmp0_0 = paramList(_this__u8e3s4, endpoint);
749
749
  // Inline function 'kotlin.collections.filterTo' call
@@ -751,13 +751,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
751
751
  var _iterator__ex2g4s_0 = tmp0_0.t();
752
752
  while (_iterator__ex2g4s_0.u()) {
753
753
  var element_0 = _iterator__ex2g4s_0.v();
754
- if (element_0.iq_1.equals(ParamType_QUERY_getInstance())) {
754
+ if (element_0.mq_1.equals(ParamType_QUERY_getInstance())) {
755
755
  destination_0.x(element_0);
756
756
  }
757
757
  }
758
758
  var tmp_3 = destination_0;
759
759
  var tmp_4 = spacer(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_0($this)), 1);
760
- var tmp_5 = $this.wq(endpoint.ep_1);
760
+ var tmp_5 = $this.br(endpoint.ip_1);
761
761
  // Inline function 'kotlin.collections.filter' call
762
762
  var tmp0_1 = paramList(_this__u8e3s4, endpoint);
763
763
  // Inline function 'kotlin.collections.filterTo' call
@@ -765,14 +765,14 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
765
765
  var _iterator__ex2g4s_1 = tmp0_1.t();
766
766
  while (_iterator__ex2g4s_1.u()) {
767
767
  var element_1 = _iterator__ex2g4s_1.v();
768
- if (element_1.iq_1.equals(ParamType_HEADER_getInstance())) {
768
+ if (element_1.mq_1.equals(ParamType_HEADER_getInstance())) {
769
769
  destination_1.x(element_1);
770
770
  }
771
771
  }
772
772
  var tmp_6 = destination_1;
773
773
  var tmp_7 = spacer(joinToString(tmp_6, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_1($this)), 1);
774
774
  var tmp_8;
775
- if (_this__u8e3s4.np_1 == null) {
775
+ if (_this__u8e3s4.rp_1 == null) {
776
776
  tmp_8 = null;
777
777
  } else {
778
778
  // Inline function 'kotlin.let' call
@@ -782,7 +782,7 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
782
782
  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 ');
783
783
  }
784
784
  function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
785
- var tmp = $this.wq(endpoint.ep_1);
785
+ var tmp = $this.br(endpoint.ip_1);
786
786
  // Inline function 'kotlin.collections.filter' call
787
787
  var tmp0 = paramList_0(_this__u8e3s4);
788
788
  // Inline function 'kotlin.collections.filterTo' call
@@ -790,35 +790,35 @@ function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
790
790
  var _iterator__ex2g4s = tmp0.t();
791
791
  while (_iterator__ex2g4s.u()) {
792
792
  var element = _iterator__ex2g4s.v();
793
- if (element.iq_1.equals(ParamType_HEADER_getInstance())) {
793
+ if (element.mq_1.equals(ParamType_HEADER_getInstance())) {
794
794
  destination.x(element);
795
795
  }
796
796
  }
797
797
  var tmp_0 = destination;
798
798
  var tmp_1 = spacer(joinToString(tmp_0, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2($this)), 1);
799
799
  var tmp_2;
800
- if (_this__u8e3s4.sp_1 == null) {
800
+ if (_this__u8e3s4.wp_1 == null) {
801
801
  tmp_2 = null;
802
802
  } else {
803
803
  // Inline function 'kotlin.let' call
804
804
  tmp_2 = 'body';
805
805
  }
806
806
  var tmp1_elvis_lhs = tmp_2;
807
- return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.qp_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
807
+ return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.up_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
808
808
  }
809
809
  function emitDeserialized($this, _this__u8e3s4) {
810
- return Spacer_instance.qr(3) + $this.wq(_this__u8e3s4.me_1.lp_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.le_1 + '], ' + $this.k1x(_this__u8e3s4.me_1.mp_1) + ')';
810
+ return Spacer_instance.vr(3) + $this.br(_this__u8e3s4.pe_1.pp_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.oe_1 + '], ' + $this.p1x(_this__u8e3s4.pe_1.qp_1) + ')';
811
811
  }
812
812
  function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
813
813
  var tmp;
814
814
  if (caseSensitive) {
815
- tmp = Spacer_instance.qr(spaces) + $this.wq(_this__u8e3s4.ap_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.ap_1.l1() + '"), ' + $this.k1x(_this__u8e3s4.bp_1) + ')';
815
+ tmp = Spacer_instance.vr(spaces) + $this.br(_this__u8e3s4.ep_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.ep_1.l1() + '"), ' + $this.p1x(_this__u8e3s4.fp_1) + ')';
816
816
  } else {
817
- var tmp_0 = Spacer_instance.qr(spaces);
818
- var tmp_1 = $this.wq(_this__u8e3s4.ap_1);
817
+ var tmp_0 = Spacer_instance.vr(spaces);
818
+ var tmp_1 = $this.br(_this__u8e3s4.ep_1);
819
819
  // Inline function 'kotlin.text.lowercase' call
820
820
  // Inline function 'kotlin.js.asDynamic' call
821
- tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.ap_1.l1().toLowerCase() + '"), None), ' + $this.k1x(_this__u8e3s4.bp_1) + ')';
821
+ tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.ep_1.l1().toLowerCase() + '"), None), ' + $this.p1x(_this__u8e3s4.fp_1) + ')';
822
822
  }
823
823
  return tmp;
824
824
  }
@@ -828,73 +828,73 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
828
828
  return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
829
829
  }
830
830
  function emitToRawResponse($this, _this__u8e3s4) {
831
- var tmp = $this.wq(_this__u8e3s4.ep_1);
831
+ var tmp = $this.br(_this__u8e3s4.ip_1);
832
832
  var tmp_0 = Spacer_instance.toString();
833
- var tmp_1 = distinctByStatus(_this__u8e3s4.kp_1);
833
+ var tmp_1 = distinctByStatus(_this__u8e3s4.op_1);
834
834
  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 ');
835
835
  }
836
836
  function emitFromRawResponse($this, _this__u8e3s4) {
837
- var tmp = $this.wq(_this__u8e3s4.ep_1);
837
+ var tmp = $this.br(_this__u8e3s4.ip_1);
838
838
  var tmp_0 = Spacer_instance.toString();
839
839
  // Inline function 'kotlin.collections.filter' call
840
- var tmp0 = distinctByStatus(_this__u8e3s4.kp_1);
840
+ var tmp0 = distinctByStatus(_this__u8e3s4.op_1);
841
841
  // Inline function 'kotlin.collections.filterTo' call
842
842
  var destination = ArrayList_init_$Create$();
843
843
  var _iterator__ex2g4s = tmp0.t();
844
844
  while (_iterator__ex2g4s.u()) {
845
845
  var element = _iterator__ex2g4s.v();
846
- if (Companion_instance_1.rq(element.qp_1)) {
846
+ if (Companion_instance_1.wq(element.up_1)) {
847
847
  destination.x(element);
848
848
  }
849
849
  }
850
850
  var tmp_1 = destination;
851
- 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.qr(2) + 'case _:\n |' + Spacer_instance.qr(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
851
+ 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.vr(2) + 'case _:\n |' + Spacer_instance.vr(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
852
852
  }
853
853
  function emitDeserialized_0($this, _this__u8e3s4, endpoint) {
854
- var tmp = 'case ' + _this__u8e3s4.qp_1 + ':';
855
- var tmp_0 = Spacer_instance.toString() + 'return ' + $this.wq(endpoint.ep_1) + '.Response' + _this__u8e3s4.qp_1 + '(';
856
- var tmp_1 = Spacer_instance.qr(2);
857
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
858
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
859
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.k1x(tmp1_safe_receiver);
854
+ var tmp = 'case ' + _this__u8e3s4.up_1 + ':';
855
+ var tmp_0 = Spacer_instance.toString() + 'return ' + $this.br(endpoint.ip_1) + '.Response' + _this__u8e3s4.up_1 + '(';
856
+ var tmp_1 = Spacer_instance.vr(2);
857
+ var tmp0_safe_receiver = _this__u8e3s4.wp_1;
858
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tp_1;
859
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.p1x(tmp1_safe_receiver);
860
860
  var tmp_2 = tmp_1 + 'body = serialization.deserialize(response.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),';
861
- return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.rp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
861
+ return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.vp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
862
862
  }
863
863
  function emitSerialized($this, _this__u8e3s4, endpoint) {
864
- var tmp = $this.wq(endpoint.ep_1);
865
- var tmp_0 = Spacer_instance.qr(1);
866
- var tmp_1 = Spacer_instance.qr(2);
867
- var tmp_2 = Spacer_instance.qr(2);
864
+ var tmp = $this.br(endpoint.ip_1);
865
+ var tmp_0 = Spacer_instance.vr(1);
866
+ var tmp_1 = Spacer_instance.vr(2);
867
+ var tmp_2 = Spacer_instance.vr(2);
868
868
  var tmp_3;
869
869
  // Inline function 'kotlin.collections.isNotEmpty' call
870
- if (!_this__u8e3s4.rp_1.r()) {
871
- tmp_3 = joinToString(_this__u8e3s4.rp_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
870
+ if (!_this__u8e3s4.vp_1.r()) {
871
+ tmp_3 = joinToString(_this__u8e3s4.vp_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
872
872
  } else {
873
873
  tmp_3 = '{}';
874
874
  }
875
875
  var tmp_4 = tmp_3;
876
- var tmp_5 = Spacer_instance.qr(2);
877
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
876
+ var tmp_5 = Spacer_instance.vr(2);
877
+ var tmp0_safe_receiver = _this__u8e3s4.wp_1;
878
878
  var tmp_6;
879
879
  if (tmp0_safe_receiver == null) {
880
880
  tmp_6 = null;
881
881
  } else {
882
882
  // Inline function 'kotlin.let' call
883
- tmp_6 = 'serialization.serialize(response.body, ' + $this.k1x(tmp0_safe_receiver.pp_1) + ')';
883
+ tmp_6 = 'serialization.serialize(response.body, ' + $this.p1x(tmp0_safe_receiver.tp_1) + ')';
884
884
  }
885
885
  var tmp1_elvis_lhs = tmp_6;
886
- return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.qp_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.qr(1) + ')\n ');
886
+ return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.up_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.vr(1) + ')\n ');
887
887
  }
888
888
  function emitSerializedParams($this, _this__u8e3s4, type, fields) {
889
- return '"' + _this__u8e3s4.ap_1.l1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.wq(_this__u8e3s4.ap_1) + ', ' + $this.k1x(_this__u8e3s4.bp_1) + ')';
889
+ return '"' + _this__u8e3s4.ep_1.l1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.br(_this__u8e3s4.ep_1) + ', ' + $this.p1x(_this__u8e3s4.fp_1) + ')';
890
890
  }
891
891
  function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
892
892
  var tmp;
893
893
  if (_this__u8e3s4.r()) {
894
- tmp = trimMargin('\n |' + Spacer_instance.qr(spaces) + '@dataclass\n |' + Spacer_instance.qr(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
894
+ tmp = trimMargin('\n |' + Spacer_instance.vr(spaces) + '@dataclass\n |' + Spacer_instance.vr(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
895
895
  } else {
896
- var tmp_0 = Spacer_instance.qr(spaces);
897
- var tmp_1 = Spacer_instance.qr(spaces);
896
+ var tmp_0 = Spacer_instance.vr(spaces);
897
+ var tmp_1 = Spacer_instance.vr(spaces);
898
898
  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 ');
899
899
  }
900
900
  return tmp;
@@ -904,21 +904,21 @@ function emitObject$default($this, _this__u8e3s4, name, extends_0, spaces, block
904
904
  return emitObject($this, _this__u8e3s4, name, extends_0, spaces, block);
905
905
  }
906
906
  function emit_17($this, _this__u8e3s4) {
907
- return $this.wq(_this__u8e3s4.lp_1) + ': ' + $this.xp(_this__u8e3s4.mp_1);
907
+ return $this.br(_this__u8e3s4.pp_1) + ': ' + $this.bq(_this__u8e3s4.qp_1);
908
908
  }
909
909
  function emit_18($this, _this__u8e3s4) {
910
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.pp_1;
911
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
910
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.tp_1;
911
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.bq(tmp1_safe_receiver);
912
912
  return tmp2_elvis_lhs == null ? 'None' : tmp2_elvis_lhs;
913
913
  }
914
914
  function PythonEndpointDefinitionEmitter$emit$lambda(this$0) {
915
915
  return function (it) {
916
- return this$0.l1x(it);
916
+ return this$0.q1x(it);
917
917
  };
918
918
  }
919
919
  function PythonEndpointDefinitionEmitter$emit$lambda_0(this$0, $endpoint) {
920
920
  return function (it) {
921
- return this$0.j1x(it, $endpoint);
921
+ return this$0.o1x(it, $endpoint);
922
922
  };
923
923
  }
924
924
  function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
@@ -928,12 +928,12 @@ function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
928
928
  }
929
929
  function PythonEndpointDefinitionEmitter$emit$lambda_2(this$0) {
930
930
  return function (it) {
931
- return this$0.wp(it);
931
+ return this$0.aq(it);
932
932
  };
933
933
  }
934
934
  function PythonEndpointDefinitionEmitter$emit$lambda_3(this$0) {
935
935
  return function (it) {
936
- return this$0.wp(it);
936
+ return this$0.aq(it);
937
937
  };
938
938
  }
939
939
  function PythonEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -945,10 +945,10 @@ function PythonEndpointDefinitionEmitter$emitToRawRequest$lambda(this$0) {
945
945
  return function (it) {
946
946
  var tmp;
947
947
  if (it instanceof Literal) {
948
- tmp = '"' + it.hq_1 + '"';
948
+ tmp = '"' + it.lq_1 + '"';
949
949
  } else {
950
950
  if (it instanceof Param) {
951
- tmp = 'str(request.path.' + this$0.wq(it.lp_1) + ')';
951
+ tmp = 'str(request.path.' + this$0.br(it.pp_1) + ')';
952
952
  } else {
953
953
  noWhenBranchMatchedException();
954
954
  }
@@ -982,7 +982,7 @@ function PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1(this$0)
982
982
  };
983
983
  }
984
984
  function PythonEndpointDefinitionEmitter$emitResponseUnion$lambda(it) {
985
- return 'Response' + it.qp_1;
985
+ return 'Response' + it.up_1;
986
986
  }
987
987
  function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda(this$0) {
988
988
  return function (it) {
@@ -1006,7 +1006,7 @@ function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2(this$0) {
1006
1006
  }
1007
1007
  function PythonEndpointDefinitionEmitter$emit$lambda_5(this$0) {
1008
1008
  return function (it) {
1009
- return this$0.wp(it);
1009
+ return this$0.aq(it);
1010
1010
  };
1011
1011
  }
1012
1012
  function PythonEndpointDefinitionEmitter$emit$lambda_6(this$0) {
@@ -1036,7 +1036,7 @@ function PythonEndpointDefinitionEmitter$emitSerialized$lambda(this$0) {
1036
1036
  }
1037
1037
  function PythonEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
1038
1038
  return function (it) {
1039
- return Spacer_instance.qr($spaces + 2 | 0) + $block(it);
1039
+ return Spacer_instance.vr($spaces + 2 | 0) + $block(it);
1040
1040
  };
1041
1041
  }
1042
1042
  function PythonEndpointDefinitionEmitter() {
@@ -1065,14 +1065,14 @@ function sanitizeEnum($this, _this__u8e3s4) {
1065
1065
  }
1066
1066
  function PythonEnumDefinitionEmitter$emit$lambda(this$0) {
1067
1067
  return function (it) {
1068
- return Spacer_instance.toString() + this$0.t1v(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1068
+ return Spacer_instance.toString() + this$0.y1v(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1069
1069
  };
1070
1070
  }
1071
1071
  function PythonEnumDefinitionEmitter() {
1072
1072
  }
1073
1073
  function Companion() {
1074
1074
  Companion_instance_2 = this;
1075
- this.m1x_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']);
1075
+ this.r1x_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']);
1076
1076
  }
1077
1077
  var Companion_instance_2;
1078
1078
  function Companion_getInstance_0() {
@@ -1083,7 +1083,7 @@ function Companion_getInstance_0() {
1083
1083
  function PythonIdentifierEmitter() {
1084
1084
  }
1085
1085
  function _get_sanitizationConfig__sns434($this) {
1086
- var tmp0 = $this.r1x_1;
1086
+ var tmp0 = $this.w1x_1;
1087
1087
  var tmp = KProperty1;
1088
1088
  // Inline function 'kotlin.getValue' call
1089
1089
  getPropertyCallableRef('sanitizationConfig', 1, tmp, PythonIrEmitter$_get_sanitizationConfig_$ref_1q5eai(), null);
@@ -1100,7 +1100,7 @@ function sanitize_0($this, _this__u8e3s4) {
1100
1100
  var item = _iterator__ex2g4s.v();
1101
1101
  var _unary__edvuaz = index;
1102
1102
  index = _unary__edvuaz + 1 | 0;
1103
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
1103
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.sq(item) : item;
1104
1104
  destination.x(tmp$ret$0);
1105
1105
  }
1106
1106
  // Inline function 'kotlin.text.filter' call
@@ -1146,7 +1146,7 @@ function sanitize_0($this, _this__u8e3s4) {
1146
1146
  return tmp_2;
1147
1147
  }
1148
1148
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1149
- return Companion_getInstance_1().t1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1149
+ return Companion_getInstance_1().y1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1150
1150
  }
1151
1151
  function sanitizeEnum_0($this, _this__u8e3s4) {
1152
1152
  // Inline function 'kotlin.let' call
@@ -1172,7 +1172,7 @@ function buildImports($this, wirespecPath) {
1172
1172
  }
1173
1173
  function Companion_0() {
1174
1174
  Companion_instance_3 = this;
1175
- this.t1x_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']);
1175
+ this.y1x_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']);
1176
1176
  }
1177
1177
  var Companion_instance_3;
1178
1178
  function Companion_getInstance_1() {
@@ -1181,16 +1181,16 @@ function Companion_getInstance_1() {
1181
1181
  return Companion_instance_3;
1182
1182
  }
1183
1183
  function sam$kotlin_Comparator$0_0(function_0) {
1184
- this.u1x_1 = function_0;
1184
+ this.z1x_1 = function_0;
1185
1185
  }
1186
- protoOf(sam$kotlin_Comparator$0_0).qd = function (a, b) {
1187
- return this.u1x_1(a, b);
1186
+ protoOf(sam$kotlin_Comparator$0_0).td = function (a, b) {
1187
+ return this.z1x_1(a, b);
1188
1188
  };
1189
1189
  protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
1190
- return this.qd(a, b);
1190
+ return this.td(a, b);
1191
1191
  };
1192
1192
  protoOf(sam$kotlin_Comparator$0_0).l3 = function () {
1193
- return this.u1x_1;
1193
+ return this.z1x_1;
1194
1194
  };
1195
1195
  protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
1196
1196
  var tmp;
@@ -1214,11 +1214,11 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1214
1214
  return '_' + it;
1215
1215
  }
1216
1216
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(name) {
1217
- var sanitized = name.g1h_1.a1() > 1 ? name.s1l() : name.s1h();
1217
+ var sanitized = name.l1h_1.a1() > 1 ? name.x1l() : name.x1h();
1218
1218
  return new Name(listOf_0(sanitized));
1219
1219
  }
1220
1220
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(name) {
1221
- return new Name(listOf_0(name.s1l()));
1221
+ return new Name(listOf_0(name.x1l()));
1222
1222
  }
1223
1223
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
1224
1224
  return it;
@@ -1227,9 +1227,9 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1227
1227
  return function (stmt, tr) {
1228
1228
  var tmp;
1229
1229
  if (stmt instanceof ConstructorStatement) {
1230
- var tmp_0 = tr.p1t(stmt.p1m_1);
1230
+ var tmp_0 = tr.u1t(stmt.u1m_1);
1231
1231
  // Inline function 'kotlin.collections.map' call
1232
- var this_0 = stmt.q1m_1;
1232
+ var this_0 = stmt.v1m_1;
1233
1233
  // Inline function 'kotlin.collections.mapTo' call
1234
1234
  var destination = ArrayList_init_$Create$_0(this_0.a1());
1235
1235
  // Inline function 'kotlin.collections.iterator' call
@@ -1240,7 +1240,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1240
1240
  var k = item.k1();
1241
1241
  // Inline function 'kotlin.collections.component2' call
1242
1242
  var v = item.l1();
1243
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.s1t(v));
1243
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.x1t(v));
1244
1244
  destination.x(tmp$ret$3);
1245
1245
  }
1246
1246
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
@@ -1252,7 +1252,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1252
1252
  }
1253
1253
  function PythonIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1254
1254
  return function () {
1255
- var tmp = Companion_getInstance_1().t1x_1;
1255
+ var tmp = Companion_getInstance_1().y1x_1;
1256
1256
  var tmp_0 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1257
1257
  var tmp_1 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0;
1258
1258
  var tmp_2 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1;
@@ -1272,7 +1272,7 @@ function PythonIrEmitter$emit$lambda(a, b) {
1272
1272
  return compareValues(tmp, tmp$ret$1);
1273
1273
  }
1274
1274
  function emit$emitInitImport(this$0, def) {
1275
- return import_0('.' + sanitize_0(this$0, def.vq()), sanitize_0(this$0, def.vq()));
1275
+ return import_0('.' + sanitize_0(this$0, def.ar()), sanitize_0(this$0, def.ar()));
1276
1276
  }
1277
1277
  function PythonIrEmitter$emit$lambda_0(this$0) {
1278
1278
  return function (it) {
@@ -1281,43 +1281,43 @@ function PythonIrEmitter$emit$lambda_0(this$0) {
1281
1281
  }
1282
1282
  function PythonIrEmitter(packageName, emitShared) {
1283
1283
  Companion_getInstance_1();
1284
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
1285
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
1286
- this.n1x_1 = packageName;
1287
- this.o1x_1 = emitShared;
1288
- this.p1x_1 = PythonGenerator_instance;
1289
- this.q1x_1 = FileExtension_Python_getInstance();
1284
+ packageName = packageName === VOID ? Companion_instance.qr('community.flock.wirespec.generated') : packageName;
1285
+ emitShared = emitShared === VOID ? Companion_instance_0.ko() : emitShared;
1286
+ this.s1x_1 = packageName;
1287
+ this.t1x_1 = emitShared;
1288
+ this.u1x_1 = PythonGenerator_instance;
1289
+ this.v1x_1 = FileExtension_Python_getInstance();
1290
1290
  var tmp = this;
1291
- tmp.r1x_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1292
- this.s1x_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1291
+ tmp.w1x_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1292
+ this.x1x_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1293
1293
  }
1294
- protoOf(PythonIrEmitter).k1u = function () {
1295
- return this.p1x_1;
1294
+ protoOf(PythonIrEmitter).p1u = function () {
1295
+ return this.u1x_1;
1296
1296
  };
1297
- protoOf(PythonIrEmitter).eq = function () {
1298
- return this.q1x_1;
1297
+ protoOf(PythonIrEmitter).iq = function () {
1298
+ return this.v1x_1;
1299
1299
  };
1300
- protoOf(PythonIrEmitter).n1u = function () {
1301
- var source = convert(Companion_instance.lr('shared'));
1300
+ protoOf(PythonIrEmitter).s1u = function () {
1301
+ var source = convert(Companion_instance.qr('shared'));
1302
1302
  var tmp;
1303
- if (this.o1x_1.ho_1) {
1304
- tmp = new File(Companion_getInstance().f1h(this.n1x_1.or() + 'wirespec'), listOf_0(raw(this.s1x_1 + PythonGenerator_instance.l1u(source))));
1303
+ if (this.t1x_1.lo_1) {
1304
+ tmp = new File(Companion_getInstance().k1h(this.s1x_1.tr() + 'wirespec'), listOf_0(raw(this.x1x_1 + PythonGenerator_instance.q1u(source))));
1305
1305
  } else {
1306
1306
  tmp = null;
1307
1307
  }
1308
1308
  return tmp;
1309
1309
  };
1310
- protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1310
+ protoOf(PythonIrEmitter).r1u = function (module_0, logger) {
1311
1311
  // Inline function 'kotlin.collections.sortedBy' call
1312
- var this_0 = new NonEmptyList(module_0.dq_1);
1312
+ var this_0 = new NonEmptyList(module_0.hq_1);
1313
1313
  // Inline function 'kotlin.comparisons.compareBy' call
1314
1314
  var tmp = PythonIrEmitter$emit$lambda;
1315
1315
  var tmp$ret$0 = new sam$kotlin_Comparator$0_0(tmp);
1316
1316
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
1317
1317
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
1318
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
1319
- var emitted = emit.call(this, module_0.vu(VOID, statements), logger);
1320
- var tmp0 = new NonEmptyList(module_0.dq_1);
1318
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).cm_1;
1319
+ var emitted = emit.call(this, module_0.av(VOID, statements), logger);
1320
+ var tmp0 = new NonEmptyList(module_0.hq_1);
1321
1321
  var tmp$ret$2;
1322
1322
  $l$block_0: {
1323
1323
  // Inline function 'kotlin.collections.any' call
@@ -1342,7 +1342,7 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1342
1342
  tmp$ret$2 = false;
1343
1343
  }
1344
1344
  var hasEndpoints = tmp$ret$2;
1345
- var tmp_2 = Companion_getInstance().f1h(this.n1x_1.or() + '__init__');
1345
+ var tmp_2 = Companion_getInstance().k1h(this.s1x_1.tr() + '__init__');
1346
1346
  // Inline function 'kotlin.collections.buildList' call
1347
1347
  // Inline function 'kotlin.collections.buildListInternal' call
1348
1348
  // Inline function 'kotlin.apply' call
@@ -1355,9 +1355,9 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1355
1355
  this_1.x(import_0('.', 'wirespec'));
1356
1356
  var tmp$ret$7 = this_1.o5();
1357
1357
  var init = new File(tmp_2, tmp$ret$7);
1358
- var tmp_3 = Companion_getInstance().f1h(this.n1x_1.or() + 'endpoint/' + '__init__');
1358
+ var tmp_3 = Companion_getInstance().k1h(this.s1x_1.tr() + 'endpoint/' + '__init__');
1359
1359
  // Inline function 'kotlin.collections.filterIsInstance' call
1360
- var tmp0_0 = new NonEmptyList(module_0.dq_1);
1360
+ var tmp0_0 = new NonEmptyList(module_0.hq_1);
1361
1361
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1362
1362
  var destination = ArrayList_init_$Create$();
1363
1363
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -1377,9 +1377,9 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1377
1377
  destination_0.x(tmp$ret$10);
1378
1378
  }
1379
1379
  var initEndpoint = new File(tmp_3, destination_0);
1380
- var tmp_4 = Companion_getInstance().f1h(this.n1x_1.or() + 'model/' + '__init__');
1380
+ var tmp_4 = Companion_getInstance().k1h(this.s1x_1.tr() + 'model/' + '__init__');
1381
1381
  // Inline function 'kotlin.collections.filterIsInstance' call
1382
- var tmp0_1 = new NonEmptyList(module_0.dq_1);
1382
+ var tmp0_1 = new NonEmptyList(module_0.hq_1);
1383
1383
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1384
1384
  var destination_1 = ArrayList_init_$Create$();
1385
1385
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -1399,8 +1399,8 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1399
1399
  destination_2.x(tmp$ret$15);
1400
1400
  }
1401
1401
  var initModel = new File(tmp_4, destination_2);
1402
- var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().f1h(this.n1x_1.or() + 'client/' + '__init__'), emptyList())) : emptyList();
1403
- var tmp0_2 = dropLast(split(this.n1x_1.mr_1, ['.']), 1);
1402
+ var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().k1h(this.s1x_1.tr() + 'client/' + '__init__'), emptyList())) : emptyList();
1403
+ var tmp0_2 = dropLast(split(this.s1x_1.rr_1, ['.']), 1);
1404
1404
  var tmp$ret$18;
1405
1405
  $l$block_1: {
1406
1406
  // Inline function 'kotlin.collections.runningFold' call
@@ -1437,17 +1437,17 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1437
1437
  var _iterator__ex2g4s_5 = this_3.t();
1438
1438
  while (_iterator__ex2g4s_5.u()) {
1439
1439
  var item_1 = _iterator__ex2g4s_5.v();
1440
- var tmp$ret$23 = new File(Companion_getInstance().f1h(item_1 + '/__init__'), emptyList());
1440
+ var tmp$ret$23 = new File(Companion_getInstance().k1h(item_1 + '/__init__'), emptyList());
1441
1441
  destination_3.x(tmp$ret$23);
1442
1442
  }
1443
1443
  var parentInits = destination_3;
1444
- return this.o1x_1.ho_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);
1444
+ return this.t1x_1.lo_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);
1445
1445
  };
1446
- protoOf(PythonIrEmitter).uq = function (definition, module_0, logger) {
1446
+ protoOf(PythonIrEmitter).zq = function (definition, module_0, logger) {
1447
1447
  var file = emit_0.call(this, definition, module_0, logger);
1448
- return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.n1x_1, definition);
1448
+ return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.s1x_1, definition);
1449
1449
  };
1450
- protoOf(PythonIrEmitter).up = function (type, module_0) {
1450
+ protoOf(PythonIrEmitter).yp = function (type, module_0) {
1451
1451
  // Inline function 'kotlin.collections.distinctBy' call
1452
1452
  var this_0 = importReferences(type);
1453
1453
  var set = HashSet_init_$Create$();
@@ -1455,7 +1455,7 @@ protoOf(PythonIrEmitter).up = function (type, module_0) {
1455
1455
  var _iterator__ex2g4s = this_0.t();
1456
1456
  while (_iterator__ex2g4s.u()) {
1457
1457
  var e = _iterator__ex2g4s.v();
1458
- var key = e.ku_1;
1458
+ var key = e.pu_1;
1459
1459
  if (set.x(key)) {
1460
1460
  list.x(e);
1461
1461
  }
@@ -1466,18 +1466,18 @@ protoOf(PythonIrEmitter).up = function (type, module_0) {
1466
1466
  var _iterator__ex2g4s_0 = list.t();
1467
1467
  while (_iterator__ex2g4s_0.u()) {
1468
1468
  var item = _iterator__ex2g4s_0.v();
1469
- var tmp$ret$2 = import_0('.' + item.ku_1, item.ku_1);
1469
+ var tmp$ret$2 = import_0('.' + item.pu_1, item.pu_1);
1470
1470
  destination.x(tmp$ret$2);
1471
1471
  }
1472
1472
  var typeImports = destination;
1473
1473
  // Inline function 'kotlin.collections.map' call
1474
- var this_1 = type.wo_1.so_1;
1474
+ var this_1 = type.ap_1.wo_1;
1475
1475
  // Inline function 'kotlin.collections.mapTo' call
1476
1476
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1477
1477
  var _iterator__ex2g4s_1 = this_1.t();
1478
1478
  while (_iterator__ex2g4s_1.u()) {
1479
1479
  var item_0 = _iterator__ex2g4s_1.v();
1480
- var tmp$ret$5 = item_0.ap_1.l1();
1480
+ var tmp$ret$5 = item_0.ep_1.l1();
1481
1481
  destination_0.x(tmp$ret$5);
1482
1482
  }
1483
1483
  var fieldNames = toSet(destination_0);
@@ -1493,17 +1493,17 @@ protoOf(PythonIrEmitter).up = function (type, module_0) {
1493
1493
  var tmp$ret$10 = tmp_0;
1494
1494
  return prependImports(tmp, tmp$ret$10);
1495
1495
  };
1496
- protoOf(PythonIrEmitter).ir = function (enum_0, module_0) {
1496
+ protoOf(PythonIrEmitter).nr = function (enum_0, module_0) {
1497
1497
  var tmp = convert_0(enum_0);
1498
1498
  return sanitizeNames(sanitizeEnumEntries(tmp, PythonIrEmitter$emit$lambda_0(this)), _get_sanitizationConfig__sns434(this));
1499
1499
  };
1500
- protoOf(PythonIrEmitter).yq = function (union) {
1500
+ protoOf(PythonIrEmitter).dr = function (union) {
1501
1501
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1502
1502
  };
1503
- protoOf(PythonIrEmitter).dr = function (refined) {
1503
+ protoOf(PythonIrEmitter).ir = function (refined) {
1504
1504
  return sanitizeNames(replaceRefinedFunctions(convert_2(refined), refined), _get_sanitizationConfig__sns434(this));
1505
1505
  };
1506
- protoOf(PythonIrEmitter).jr = function (endpoint) {
1506
+ protoOf(PythonIrEmitter).or = function (endpoint) {
1507
1507
  // Inline function 'kotlin.collections.distinctBy' call
1508
1508
  var this_0 = importReferences(endpoint);
1509
1509
  var set = HashSet_init_$Create$();
@@ -1511,7 +1511,7 @@ protoOf(PythonIrEmitter).jr = function (endpoint) {
1511
1511
  var _iterator__ex2g4s = this_0.t();
1512
1512
  while (_iterator__ex2g4s.u()) {
1513
1513
  var e = _iterator__ex2g4s.v();
1514
- var key = e.ku_1;
1514
+ var key = e.pu_1;
1515
1515
  if (set.x(key)) {
1516
1516
  list.x(e);
1517
1517
  }
@@ -1522,19 +1522,19 @@ protoOf(PythonIrEmitter).jr = function (endpoint) {
1522
1522
  var _iterator__ex2g4s_0 = list.t();
1523
1523
  while (_iterator__ex2g4s_0.u()) {
1524
1524
  var item = _iterator__ex2g4s_0.v();
1525
- var tmp$ret$2 = import_0('..model.' + item.ku_1, item.ku_1);
1525
+ var tmp$ret$2 = import_0('..model.' + item.pu_1, item.pu_1);
1526
1526
  destination.x(tmp$ret$2);
1527
1527
  }
1528
1528
  var endpointImports = destination;
1529
1529
  // Inline function 'kotlin.let' call
1530
1530
  var it = splitEndpointStructsToModuleLevel(convert_3(endpoint));
1531
- var tmp$ret$6 = it.w1m(VOID, plus(endpointImports, it.t1m_1));
1531
+ var tmp$ret$6 = it.b1n(VOID, plus(endpointImports, it.y1m_1));
1532
1532
  return sanitizeNames(snakeCaseHandlerAndCallMethods(tmp$ret$6), _get_sanitizationConfig__sns434(this));
1533
1533
  };
1534
- protoOf(PythonIrEmitter).xq = function (channel) {
1534
+ protoOf(PythonIrEmitter).cr = function (channel) {
1535
1535
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1536
1536
  };
1537
- protoOf(PythonIrEmitter).p1u = function (endpoint) {
1537
+ protoOf(PythonIrEmitter).u1u = function (endpoint) {
1538
1538
  // Inline function 'kotlin.collections.distinctBy' call
1539
1539
  var this_0 = importReferences(endpoint);
1540
1540
  var set = HashSet_init_$Create$();
@@ -1542,7 +1542,7 @@ protoOf(PythonIrEmitter).p1u = function (endpoint) {
1542
1542
  var _iterator__ex2g4s = this_0.t();
1543
1543
  while (_iterator__ex2g4s.u()) {
1544
1544
  var e = _iterator__ex2g4s.v();
1545
- var key = e.ku_1;
1545
+ var key = e.pu_1;
1546
1546
  if (set.x(key)) {
1547
1547
  list.x(e);
1548
1548
  }
@@ -1553,17 +1553,17 @@ protoOf(PythonIrEmitter).p1u = function (endpoint) {
1553
1553
  var _iterator__ex2g4s_0 = list.t();
1554
1554
  while (_iterator__ex2g4s_0.u()) {
1555
1555
  var item = _iterator__ex2g4s_0.v();
1556
- var tmp$ret$2 = import_0('..model.' + item.ku_1, item.ku_1);
1556
+ var tmp$ret$2 = import_0('..model.' + item.pu_1, item.pu_1);
1557
1557
  destination.x(tmp$ret$2);
1558
1558
  }
1559
1559
  var modelImports = destination;
1560
- var endpointImport = import_0('..endpoint.' + endpoint.ep_1.l1(), '*');
1561
- var endpointName = endpoint.ep_1.l1();
1560
+ var endpointImport = import_0('..endpoint.' + endpoint.ip_1.l1(), '*');
1561
+ var endpointName = endpoint.ip_1.l1();
1562
1562
  var file = flattenEndpointTypeRefs(snakeCaseClientFunctions(addSelfReceiverToClientFields(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)))), endpointName);
1563
- var subPackageName = plus_2(this.n1x_1, 'client');
1564
- return new File(Companion_getInstance().f1h(subPackageName.or() + file.s1m_1.h1h()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.t1m_1));
1563
+ var subPackageName = plus_2(this.s1x_1, 'client');
1564
+ return new File(Companion_getInstance().k1h(subPackageName.tr() + file.x1m_1.m1h()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.y1m_1));
1565
1565
  };
1566
- protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1566
+ protoOf(PythonIrEmitter).t1u = function (endpoints, logger) {
1567
1567
  // Inline function 'kotlin.collections.flatMap' call
1568
1568
  // Inline function 'kotlin.collections.flatMapTo' call
1569
1569
  var destination = ArrayList_init_$Create$();
@@ -1579,7 +1579,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1579
1579
  var _iterator__ex2g4s_0 = destination.t();
1580
1580
  while (_iterator__ex2g4s_0.u()) {
1581
1581
  var e = _iterator__ex2g4s_0.v();
1582
- var key = e.ku_1;
1582
+ var key = e.pu_1;
1583
1583
  if (set.x(key)) {
1584
1584
  list_0.x(e);
1585
1585
  }
@@ -1590,7 +1590,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1590
1590
  var _iterator__ex2g4s_1 = list_0.t();
1591
1591
  while (_iterator__ex2g4s_1.u()) {
1592
1592
  var item = _iterator__ex2g4s_1.v();
1593
- var tmp$ret$5 = import_0('.model.' + item.ku_1, item.ku_1);
1593
+ var tmp$ret$5 = import_0('.model.' + item.pu_1, item.pu_1);
1594
1594
  destination_0.x(tmp$ret$5);
1595
1595
  }
1596
1596
  var modelImports = destination_0;
@@ -1600,7 +1600,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1600
1600
  var _iterator__ex2g4s_2 = endpoints.t();
1601
1601
  while (_iterator__ex2g4s_2.u()) {
1602
1602
  var item_0 = _iterator__ex2g4s_2.v();
1603
- var tmp$ret$8 = import_0('.endpoint.' + item_0.ep_1.l1(), '*');
1603
+ var tmp$ret$8 = import_0('.endpoint.' + item_0.ip_1.l1(), '*');
1604
1604
  destination_1.x(tmp$ret$8);
1605
1605
  }
1606
1606
  var endpointImports = destination_1;
@@ -1610,7 +1610,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1610
1610
  var _iterator__ex2g4s_3 = endpoints.t();
1611
1611
  while (_iterator__ex2g4s_3.u()) {
1612
1612
  var item_1 = _iterator__ex2g4s_3.v();
1613
- var tmp$ret$11 = import_0('.client.' + item_1.ep_1.l1() + 'Client', item_1.ep_1.l1() + 'Client');
1613
+ var tmp$ret$11 = import_0('.client.' + item_1.ip_1.l1() + 'Client', item_1.ip_1.l1() + 'Client');
1614
1614
  destination_2.x(tmp$ret$11);
1615
1615
  }
1616
1616
  var clientImports = destination_2;
@@ -1621,7 +1621,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1621
1621
  var _iterator__ex2g4s_4 = endpoints.t();
1622
1622
  while (_iterator__ex2g4s_4.u()) {
1623
1623
  var item_2 = _iterator__ex2g4s_4.v();
1624
- var tmp$ret$14 = item_2.ep_1.l1();
1624
+ var tmp$ret$14 = item_2.ip_1.l1();
1625
1625
  destination_3.x(tmp$ret$14);
1626
1626
  }
1627
1627
  var endpointNames = destination_3;
@@ -1635,7 +1635,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1635
1635
  accumulator = flattenEndpointTypeRefs(acc, element_0);
1636
1636
  }
1637
1637
  var file = accumulator;
1638
- return new File(Companion_getInstance().f1h(this.n1x_1.or() + file.s1m_1.h1h()), plus(plus(buildImports(this, '.wirespec'), allImports), file.t1m_1));
1638
+ return new File(Companion_getInstance().k1h(this.s1x_1.tr() + file.x1m_1.m1h()), plus(plus(buildImports(this, '.wirespec'), allImports), file.y1m_1));
1639
1639
  };
1640
1640
  function replaceRefinedFunctions(_this__u8e3s4, refined) {
1641
1641
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1643,14 +1643,14 @@ function replaceRefinedFunctions(_this__u8e3s4, refined) {
1643
1643
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1644
1644
  var tmp = scope;
1645
1645
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1646
- var this_0 = scope.x1t_1;
1646
+ var this_0 = scope.c1u_1;
1647
1647
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1648
1648
  // Inline function 'kotlin.apply' call
1649
1649
  var this_1 = new TransformerBuilder();
1650
- this_1.c1h(replaceRefinedFunctions$lambda(refined));
1651
- var tmp$ret$2 = this_1.d1h();
1652
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1653
- var tmp_0 = scope.x1t_1;
1650
+ this_1.h1h(replaceRefinedFunctions$lambda(refined));
1651
+ var tmp$ret$2 = this_1.i1h();
1652
+ tmp.c1u_1 = transform(this_0, tmp$ret$2);
1653
+ var tmp_0 = scope.c1u_1;
1654
1654
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1655
1655
  }
1656
1656
  function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
@@ -1659,20 +1659,20 @@ function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
1659
1659
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1660
1660
  var tmp = scope;
1661
1661
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1662
- var this_0 = scope.x1t_1;
1662
+ var this_0 = scope.c1u_1;
1663
1663
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1664
1664
  // Inline function 'kotlin.apply' call
1665
1665
  var this_1 = new TransformerBuilder();
1666
- this_1.c1h(snakeCaseHandlerAndCallMethods$lambda);
1667
- var tmp$ret$2 = this_1.d1h();
1668
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1669
- var tmp_0 = scope.x1t_1;
1666
+ this_1.h1h(snakeCaseHandlerAndCallMethods$lambda);
1667
+ var tmp$ret$2 = this_1.i1h();
1668
+ tmp.c1u_1 = transform(this_0, tmp$ret$2);
1669
+ var tmp_0 = scope.c1u_1;
1670
1670
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1671
1671
  }
1672
1672
  function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1673
1673
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1674
1674
  // Inline function 'kotlin.collections.filterIsInstance' call
1675
- var tmp0 = _this__u8e3s4.u1m();
1675
+ var tmp0 = _this__u8e3s4.z1m();
1676
1676
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1677
1677
  var destination = ArrayList_init_$Create$();
1678
1678
  var _iterator__ex2g4s = tmp0.t();
@@ -1686,7 +1686,7 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1686
1686
  var namespace = ensureNotNull(tmp$ret$2);
1687
1687
  var flattened = flattenNestedStructs(namespace);
1688
1688
  // Inline function 'kotlin.collections.partition' call
1689
- var this_0 = flattened.z1m_1;
1689
+ var this_0 = flattened.e1n_1;
1690
1690
  var first = ArrayList_init_$Create$();
1691
1691
  var second = ArrayList_init_$Create$();
1692
1692
  var _iterator__ex2g4s_0 = this_0.t();
@@ -1705,16 +1705,16 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1705
1705
  }
1706
1706
  }
1707
1707
  var _destruct__k2r9zo = new Pair(first, second);
1708
- var moduleElements = _destruct__k2r9zo.ne();
1709
- var classElements = _destruct__k2r9zo.oe();
1710
- var endpointClass = new Namespace(namespace.y1m_1, classElements, namespace.a1n_1);
1711
- return new File(namespace.y1m_1, plus_0(moduleElements, endpointClass));
1708
+ var moduleElements = _destruct__k2r9zo.qe();
1709
+ var classElements = _destruct__k2r9zo.re();
1710
+ var endpointClass = new Namespace(namespace.d1n_1, classElements, namespace.f1n_1);
1711
+ return new File(namespace.d1n_1, plus_0(moduleElements, endpointClass));
1712
1712
  }
1713
1713
  function flattenEndpointTypeRefs(_this__u8e3s4, endpointName) {
1714
1714
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1715
1715
  var scope = new TransformScope(_this__u8e3s4);
1716
- scope.d1u(flattenEndpointTypeRefs$lambda(endpointName));
1717
- var tmp = scope.x1t_1;
1716
+ scope.i1u(flattenEndpointTypeRefs$lambda(endpointName));
1717
+ var tmp = scope.c1u_1;
1718
1718
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1719
1719
  }
1720
1720
  function snakeCaseClientFunctions(_this__u8e3s4) {
@@ -1723,15 +1723,15 @@ function snakeCaseClientFunctions(_this__u8e3s4) {
1723
1723
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1724
1724
  var tmp = scope;
1725
1725
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1726
- var this_0 = scope.x1t_1;
1726
+ var this_0 = scope.c1u_1;
1727
1727
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1728
1728
  // Inline function 'kotlin.apply' call
1729
1729
  var this_1 = new TransformerBuilder();
1730
- this_1.c1h(snakeCaseClientFunctions$lambda);
1731
- var tmp$ret$2 = this_1.d1h();
1732
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1733
- scope.g1u(snakeCaseClientFunctions$lambda_0);
1734
- var tmp_0 = scope.x1t_1;
1730
+ this_1.h1h(snakeCaseClientFunctions$lambda);
1731
+ var tmp$ret$2 = this_1.i1h();
1732
+ tmp.c1u_1 = transform(this_0, tmp$ret$2);
1733
+ scope.l1u(snakeCaseClientFunctions$lambda_0);
1734
+ var tmp_0 = scope.c1u_1;
1735
1735
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1736
1736
  }
1737
1737
  function addSelfReceiverToClientFields(_this__u8e3s4) {
@@ -1742,7 +1742,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1742
1742
  } else {
1743
1743
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1744
1744
  // Inline function 'kotlin.collections.filterIsInstance' call
1745
- var tmp0 = tmp0_safe_receiver.u1m();
1745
+ var tmp0 = tmp0_safe_receiver.z1m();
1746
1746
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1747
1747
  var destination = ArrayList_init_$Create$();
1748
1748
  var _iterator__ex2g4s = tmp0.t();
@@ -1755,7 +1755,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1755
1755
  tmp = firstOrNull_0(destination);
1756
1756
  }
1757
1757
  var struct = tmp;
1758
- var tmp2_safe_receiver = struct == null ? null : struct.e1n_1;
1758
+ var tmp2_safe_receiver = struct == null ? null : struct.j1n_1;
1759
1759
  var tmp_0;
1760
1760
  if (tmp2_safe_receiver == null) {
1761
1761
  tmp_0 = null;
@@ -1766,7 +1766,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1766
1766
  var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
1767
1767
  while (_iterator__ex2g4s_0.u()) {
1768
1768
  var item = _iterator__ex2g4s_0.v();
1769
- var tmp$ret$3 = item.z1p_1.s1h();
1769
+ var tmp$ret$3 = item.e1q_1.x1h();
1770
1770
  destination_0.x(tmp$ret$3);
1771
1771
  }
1772
1772
  tmp_0 = destination_0;
@@ -1778,23 +1778,23 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1778
1778
  return _this__u8e3s4;
1779
1779
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1780
1780
  var scope = new TransformScope(_this__u8e3s4);
1781
- scope.g1u(addSelfReceiverToClientFields$lambda(fieldNames));
1782
- var tmp_1 = scope.x1t_1;
1781
+ scope.l1u(addSelfReceiverToClientFields$lambda(fieldNames));
1782
+ var tmp_1 = scope.c1u_1;
1783
1783
  return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1784
1784
  }
1785
1785
  function replaceRefinedFunctions$lambda$lambda($constraintExpr) {
1786
1786
  return function ($this$function) {
1787
- $this$function.l1i('self', Custom_init_$Create$(''));
1788
- $this$function.k1i(Boolean_instance_0);
1789
- $this$function.j1k($constraintExpr);
1787
+ $this$function.q1i('self', Custom_init_$Create$(''));
1788
+ $this$function.p1i(Boolean_instance_0);
1789
+ $this$function.o1k($constraintExpr);
1790
1790
  return Unit_instance;
1791
1791
  };
1792
1792
  }
1793
1793
  function replaceRefinedFunctions$lambda$lambda_0($toStringExpr) {
1794
1794
  return function ($this$function) {
1795
- $this$function.l1i('self', Custom_init_$Create$(''));
1796
- $this$function.k1i(String_instance);
1797
- $this$function.j1k(new RawExpression($toStringExpr));
1795
+ $this$function.q1i('self', Custom_init_$Create$(''));
1796
+ $this$function.p1i(String_instance);
1797
+ $this$function.o1k(new RawExpression($toStringExpr));
1798
1798
  return Unit_instance;
1799
1799
  };
1800
1800
  }
@@ -1803,7 +1803,7 @@ function replaceRefinedFunctions$lambda($refined) {
1803
1803
  var tmp;
1804
1804
  if (element instanceof Struct) {
1805
1805
  // Inline function 'kotlin.collections.mapNotNull' call
1806
- var tmp0 = element.h1n_1;
1806
+ var tmp0 = element.m1n_1;
1807
1807
  // Inline function 'kotlin.collections.mapNotNullTo' call
1808
1808
  var destination = ArrayList_init_$Create$();
1809
1809
  // Inline function 'kotlin.collections.forEach' call
@@ -1813,23 +1813,23 @@ function replaceRefinedFunctions$lambda($refined) {
1813
1813
  var tmp_0;
1814
1814
  var tmp_1;
1815
1815
  if (element_0 instanceof Function) {
1816
- tmp_1 = element_0.t1j_1.equals(Companion_getInstance().f1h('validate'));
1816
+ tmp_1 = element_0.y1j_1.equals(Companion_getInstance().k1h('validate'));
1817
1817
  } else {
1818
1818
  tmp_1 = false;
1819
1819
  }
1820
1820
  if (tmp_1) {
1821
- var constraintExpr = convertConstraint($refined.cr_1, new FieldCall(new VariableReference(Companion_getInstance().f1h('self')), Companion_getInstance().f1h('value')));
1821
+ var constraintExpr = convertConstraint($refined.hr_1, new FieldCall(new VariableReference(Companion_getInstance().k1h('self')), Companion_getInstance().k1h('value')));
1822
1822
  tmp_0 = function_0('validate', VOID, VOID, replaceRefinedFunctions$lambda$lambda(constraintExpr));
1823
1823
  } else {
1824
1824
  var tmp_2;
1825
1825
  if (element_0 instanceof Function) {
1826
- tmp_2 = element_0.t1j_1.equals(Companion_getInstance().f1h('toString'));
1826
+ tmp_2 = element_0.y1j_1.equals(Companion_getInstance().k1h('toString'));
1827
1827
  } else {
1828
1828
  tmp_2 = false;
1829
1829
  }
1830
1830
  if (tmp_2) {
1831
1831
  var tmp_3;
1832
- if ($refined.cr_1.ou_1 instanceof String_0) {
1832
+ if ($refined.hr_1.tu_1 instanceof String_0) {
1833
1833
  tmp_3 = 'self.value';
1834
1834
  } else {
1835
1835
  tmp_3 = 'str(self.value)';
@@ -1848,7 +1848,7 @@ function replaceRefinedFunctions$lambda($refined) {
1848
1848
  destination.x(tmp0_safe_receiver);
1849
1849
  }
1850
1850
  }
1851
- tmp = element.j1n(VOID, VOID, VOID, VOID, destination);
1851
+ tmp = element.o1n(VOID, VOID, VOID, VOID, destination);
1852
1852
  } else {
1853
1853
  tmp = element;
1854
1854
  }
@@ -1861,23 +1861,23 @@ function snakeCaseHandlerAndCallMethods$lambda(element, transformer) {
1861
1861
  if (element instanceof Interface) {
1862
1862
  var tmp$ret$0;
1863
1863
  $l$block: {
1864
- if (!element.k1n_1.equals(Companion_getInstance().f1h('Handler')) && !element.k1n_1.equals(Companion_getInstance().f1h('Call'))) {
1864
+ if (!element.p1n_1.equals(Companion_getInstance().k1h('Handler')) && !element.p1n_1.equals(Companion_getInstance().k1h('Call'))) {
1865
1865
  tmp$ret$0 = element;
1866
1866
  break $l$block;
1867
1867
  }
1868
1868
  // Inline function 'kotlin.collections.map' call
1869
- var this_0 = element.l1n_1;
1869
+ var this_0 = element.q1n_1;
1870
1870
  // Inline function 'kotlin.collections.mapTo' call
1871
1871
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1872
1872
  var _iterator__ex2g4s = this_0.t();
1873
1873
  while (_iterator__ex2g4s.u()) {
1874
1874
  var item = _iterator__ex2g4s.v();
1875
1875
  var tmp0_safe_receiver = item instanceof Function ? item : null;
1876
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1k(Companion_getInstance().f1h(item.t1j_1.y1l()));
1876
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1k(Companion_getInstance().k1h(item.y1j_1.d1m()));
1877
1877
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1878
1878
  destination.x(tmp$ret$1);
1879
1879
  }
1880
- tmp$ret$0 = element.r1n(VOID, destination);
1880
+ tmp$ret$0 = element.w1n(VOID, destination);
1881
1881
  }
1882
1882
  tmp = tmp$ret$0;
1883
1883
  } else {
@@ -1892,17 +1892,17 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
1892
1892
  if (!(type instanceof Custom_0)) {
1893
1893
  tmp = type;
1894
1894
  } else {
1895
- if (!startsWith(type.q1h_1.h1h(), $endpointName + '.')) {
1895
+ if (!startsWith(type.v1h_1.m1h(), $endpointName + '.')) {
1896
1896
  tmp = type;
1897
1897
  } else {
1898
- var suffix = removePrefix(type.q1h_1.h1h(), $endpointName + '.');
1898
+ var suffix = removePrefix(type.v1h_1.m1h(), $endpointName + '.');
1899
1899
  switch (suffix) {
1900
1900
  case 'Call':
1901
1901
  case 'Handler':
1902
1902
  tmp = type;
1903
1903
  break;
1904
1904
  default:
1905
- tmp = type.n1m(Companion_getInstance().f1h(suffix));
1905
+ tmp = type.s1m(Companion_getInstance().k1h(suffix));
1906
1906
  break;
1907
1907
  }
1908
1908
  }
@@ -1913,7 +1913,7 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
1913
1913
  function snakeCaseClientFunctions$lambda(element, transformer) {
1914
1914
  var tmp;
1915
1915
  if (element instanceof Function) {
1916
- tmp = element.b1k(Companion_getInstance().f1h(element.t1j_1.y1l()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().f1h('self'), Custom_init_$Create$(''))), element.v1j_1));
1916
+ tmp = element.g1k(Companion_getInstance().k1h(element.y1j_1.d1m()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().k1h('self'), Custom_init_$Create$(''))), element.a1k_1));
1917
1917
  } else {
1918
1918
  tmp = element;
1919
1919
  }
@@ -1923,19 +1923,19 @@ function snakeCaseClientFunctions$lambda(element, transformer) {
1923
1923
  function snakeCaseClientFunctions$lambda_0(stmt, tr) {
1924
1924
  var tmp;
1925
1925
  if (stmt instanceof FunctionCall) {
1926
- var nameStr = stmt.b1m_1.s1h();
1927
- var newName = contains(nameStr, '.') ? stmt.b1m_1 : Companion_getInstance().f1h(Companion_getInstance().f1h(nameStr).y1l());
1928
- var tmp1_safe_receiver = stmt.z1l_1;
1926
+ var nameStr = stmt.g1m_1.x1h();
1927
+ var newName = contains(nameStr, '.') ? stmt.g1m_1 : Companion_getInstance().k1h(Companion_getInstance().k1h(nameStr).d1m());
1928
+ var tmp1_safe_receiver = stmt.e1m_1;
1929
1929
  var tmp_0;
1930
1930
  if (tmp1_safe_receiver == null) {
1931
1931
  tmp_0 = null;
1932
1932
  } else {
1933
1933
  // Inline function 'kotlin.let' call
1934
- tmp_0 = tr.s1t(tmp1_safe_receiver);
1934
+ tmp_0 = tr.x1t(tmp1_safe_receiver);
1935
1935
  }
1936
1936
  var tmp2_receiver = tmp_0;
1937
1937
  // Inline function 'kotlin.collections.mapValues' call
1938
- var this_0 = stmt.c1m_1;
1938
+ var this_0 = stmt.h1m_1;
1939
1939
  // Inline function 'kotlin.collections.mapValuesTo' call
1940
1940
  var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
1941
1941
  // Inline function 'kotlin.collections.associateByTo' call
@@ -1945,10 +1945,10 @@ function snakeCaseClientFunctions$lambda_0(stmt, tr) {
1945
1945
  var tmp_1 = element.k1();
1946
1946
  // Inline function 'kotlin.collections.component2' call
1947
1947
  var v = element.l1();
1948
- var tmp$ret$4 = tr.s1t(v);
1949
- destination.w2(tmp_1, tmp$ret$4);
1948
+ var tmp$ret$4 = tr.x1t(v);
1949
+ destination.s2(tmp_1, tmp$ret$4);
1950
1950
  }
1951
- var tmp4_isAwait = !(stmt.z1l_1 == null);
1951
+ var tmp4_isAwait = !(stmt.e1m_1 == null);
1952
1952
  tmp = new FunctionCall(tmp2_receiver, VOID, newName, destination, tmp4_isAwait);
1953
1953
  } else {
1954
1954
  tmp = transformChildren(stmt, tr);
@@ -1961,28 +1961,28 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
1961
1961
  var tmp_0;
1962
1962
  var tmp_1;
1963
1963
  if (stmt instanceof FieldCall) {
1964
- tmp_1 = stmt.j1p_1 == null;
1964
+ tmp_1 = stmt.o1p_1 == null;
1965
1965
  } else {
1966
1966
  tmp_1 = false;
1967
1967
  }
1968
1968
  if (tmp_1) {
1969
- tmp_0 = $fieldNames.u1(stmt.k1p_1.s1h());
1969
+ tmp_0 = $fieldNames.u1(stmt.p1p_1.x1h());
1970
1970
  } else {
1971
1971
  tmp_0 = false;
1972
1972
  }
1973
1973
  if (tmp_0) {
1974
- tmp = new FieldCall(new VariableReference(Companion_getInstance().f1h('self')), stmt.k1p_1);
1974
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().k1h('self')), stmt.p1p_1);
1975
1975
  } else {
1976
1976
  if (stmt instanceof FieldCall) {
1977
- var tmp0_safe_receiver = stmt.j1p_1;
1977
+ var tmp0_safe_receiver = stmt.o1p_1;
1978
1978
  var tmp_2;
1979
1979
  if (tmp0_safe_receiver == null) {
1980
1980
  tmp_2 = null;
1981
1981
  } else {
1982
1982
  // Inline function 'kotlin.let' call
1983
- tmp_2 = tr.s1t(tmp0_safe_receiver);
1983
+ tmp_2 = tr.x1t(tmp0_safe_receiver);
1984
1984
  }
1985
- tmp = new FieldCall(tmp_2, stmt.k1p_1);
1985
+ tmp = new FieldCall(tmp_2, stmt.p1p_1);
1986
1986
  } else {
1987
1987
  tmp = transformChildren(stmt, tr);
1988
1988
  }
@@ -1993,8 +1993,8 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
1993
1993
  function PythonRefinedTypeDefinitionEmitter() {
1994
1994
  }
1995
1995
  function PythonShared() {
1996
- this.g1x_1 = 'shared';
1997
- this.h1x_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";
1996
+ this.l1x_1 = 'shared';
1997
+ this.m1x_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";
1998
1998
  }
1999
1999
  protoOf(PythonShared).toString = function () {
2000
2000
  return 'PythonShared';
@@ -2015,17 +2015,17 @@ function PythonShared_getInstance() {
2015
2015
  }
2016
2016
  function PythonTypeDefinitionEmitter$emit$lambda(this$0) {
2017
2017
  return function (it) {
2018
- return this$0.l1x(it);
2018
+ return this$0.q1x(it);
2019
2019
  };
2020
2020
  }
2021
2021
  function PythonTypeDefinitionEmitter$emit$lambda_0(this$0) {
2022
2022
  return function (it) {
2023
- return this$0.l1x(it);
2023
+ return this$0.q1x(it);
2024
2024
  };
2025
2025
  }
2026
2026
  function PythonTypeDefinitionEmitter$emit$lambda_1(this$0) {
2027
2027
  return function (it) {
2028
- return Spacer_instance.toString() + this$0.wp(it);
2028
+ return Spacer_instance.toString() + this$0.aq(it);
2029
2029
  };
2030
2030
  }
2031
2031
  function PythonTypeDefinitionEmitter() {
@@ -2033,26 +2033,26 @@ function PythonTypeDefinitionEmitter() {
2033
2033
  function PythonUnionDefinitionEmitter() {
2034
2034
  }
2035
2035
  //region block: post-declaration
2036
- protoOf(PythonEmitter).up = emit_4;
2037
- protoOf(PythonEmitter).vp = emit_5;
2038
- protoOf(PythonEmitter).wp = emit_6;
2039
- protoOf(PythonEmitter).xp = emit_7;
2040
- protoOf(PythonEmitter).yp = emit_9;
2036
+ protoOf(PythonEmitter).yp = emit_4;
2037
+ protoOf(PythonEmitter).zp = emit_5;
2038
+ protoOf(PythonEmitter).aq = emit_6;
2039
+ protoOf(PythonEmitter).bq = emit_7;
2040
+ protoOf(PythonEmitter).cq = emit_9;
2041
+ protoOf(PythonEmitter).nr = emit_13;
2041
2042
  protoOf(PythonEmitter).ir = emit_14;
2043
+ protoOf(PythonEmitter).or = emit_10;
2042
2044
  protoOf(PythonEmitter).dr = emit_15;
2043
- protoOf(PythonEmitter).jr = emit_10;
2044
- protoOf(PythonEmitter).yq = emit_13;
2045
- protoOf(PythonEmitter).wq = emit_3;
2046
- protoOf(PythonEmitter).xq = emit_2;
2047
- protoOf(PythonEmitter).i1x = emit_8;
2048
- protoOf(PythonEmitter).q1v = emit_11;
2049
- protoOf(PythonEmitter).j1x = emit_12;
2050
- protoOf(PythonEmitter).kr = emitValidator;
2051
- protoOf(PythonEmitter).d1w = sanitize;
2052
- protoOf(PythonEmitter).t1v = sanitizeKeywords;
2053
- protoOf(PythonEmitter).k1x = emitType;
2054
- protoOf(PythonEmitter).l1x = emitReferenceCustomImports;
2055
- protoOf(PythonIrEmitter).on = emit_1;
2045
+ protoOf(PythonEmitter).br = emit_3;
2046
+ protoOf(PythonEmitter).cr = emit_2;
2047
+ protoOf(PythonEmitter).n1x = emit_8;
2048
+ protoOf(PythonEmitter).v1v = emit_11;
2049
+ protoOf(PythonEmitter).o1x = emit_12;
2050
+ protoOf(PythonEmitter).pr = emitValidator;
2051
+ protoOf(PythonEmitter).i1w = sanitize;
2052
+ protoOf(PythonEmitter).y1v = sanitizeKeywords;
2053
+ protoOf(PythonEmitter).p1x = emitType;
2054
+ protoOf(PythonEmitter).q1x = emitReferenceCustomImports;
2055
+ protoOf(PythonIrEmitter).sn = emit_1;
2056
2056
  //endregion
2057
2057
  //region block: init
2058
2058
  PythonShared_instance = new PythonShared();