@flock/wirespec 0.19.4 → 0.20.0-RC.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-core.mjs +167 -167
  3. package/clikt-clikt-mordant.mjs +81 -81
  4. package/clikt-clikt-mordant.mjs.map +1 -1
  5. package/clikt-clikt.mjs +1636 -1636
  6. package/clikt-clikt.mjs.map +1 -1
  7. package/colormath-root-colormath.mjs +448 -448
  8. package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
  9. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
  10. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
  11. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
  12. package/kotest-kotest-common.mjs +56 -0
  13. package/kotest-kotest-common.mjs.map +1 -0
  14. package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
  15. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
  16. package/kotest-kotest-property.mjs +2501 -0
  17. package/kotest-kotest-property.mjs.map +1 -0
  18. package/kotlin-kotlin-stdlib.mjs +5204 -2422
  19. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  20. package/kotlin-openapi-bindings.mjs +10253 -10253
  21. package/kotlin-openapi-bindings.mjs.map +1 -1
  22. package/kotlin-rgxgen.mjs +1846 -1846
  23. package/kotlin-rgxgen.mjs.map +1 -1
  24. package/kotlinx-coroutines-test.mjs +4 -0
  25. package/kotlinx-coroutines-test.mjs.map +1 -0
  26. package/kotlinx-io-kotlinx-io-core.mjs +455 -455
  27. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  28. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2135 -2101
  29. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  30. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1579 -1579
  31. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  32. package/mordant-mordant.mjs +1438 -1438
  33. package/package.json +5 -1
  34. package/wirespec-generator.d.ts +51 -0
  35. package/wirespec-generator.mjs +9 -0
  36. package/wirespec-src-compiler-core.mjs +1598 -1598
  37. package/wirespec-src-compiler-emitters-java.mjs +446 -446
  38. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  39. package/wirespec-src-compiler-emitters-kotlin.mjs +342 -342
  40. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  41. package/wirespec-src-compiler-emitters-python.mjs +425 -425
  42. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  43. package/wirespec-src-compiler-emitters-rust.mjs +482 -482
  44. package/wirespec-src-compiler-emitters-scala.mjs +194 -194
  45. package/wirespec-src-compiler-emitters-typescript.mjs +528 -528
  46. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  47. package/wirespec-src-compiler-emitters-wirespec.mjs +89 -89
  48. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  49. package/wirespec-src-compiler-ir.mjs +3889 -3865
  50. package/wirespec-src-compiler-ir.mjs.map +1 -1
  51. package/wirespec-src-compiler-lib.mjs +621 -452
  52. package/wirespec-src-compiler-lib.mjs.map +1 -1
  53. package/wirespec-src-converter-avro.mjs +521 -521
  54. package/wirespec-src-converter-avro.mjs.map +1 -1
  55. package/wirespec-src-converter-openapi.mjs +859 -859
  56. package/wirespec-src-converter-openapi.mjs.map +1 -1
  57. package/wirespec-src-ide-lsp.mjs +1387 -1387
  58. package/wirespec-src-ide-lsp.mjs.map +1 -1
  59. package/wirespec-src-integration-kotest.mjs +1647 -0
  60. package/wirespec-src-integration-kotest.mjs.map +1 -0
  61. package/wirespec-src-plugin-arguments.mjs +192 -192
  62. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  63. package/wirespec-src-plugin-cli.mjs +109 -109
  64. package/wirespec-src-plugin-npm.d.mts +60 -2
  65. package/wirespec-src-plugin-npm.mjs +46 -46
  66. package/wirespec-src-plugin-npm.mjs.map +1 -1
  67. package/wirespec-src-tools-generator.mjs +35 -35
  68. package/wirespec-src-tools-generator.mjs.map +1 -1
  69. package/xmlutil-core.mjs +4 -0
  70. package/xmlutil-core.mjs.map +1 -0
  71. package/xmlutil-serialization.mjs +4 -0
  72. package/xmlutil-serialization.mjs.map +1 -0
@@ -173,10 +173,10 @@ import {
173
173
  function emit_3(identifier) {
174
174
  var tmp;
175
175
  if (identifier instanceof DefinitionIdentifier) {
176
- tmp = this.u1x(identifier);
176
+ tmp = this.j21(identifier);
177
177
  } else {
178
178
  if (identifier instanceof FieldIdentifier) {
179
- tmp = this.k1x(this.u1x(identifier));
179
+ tmp = this.z20(this.j21(identifier));
180
180
  } else {
181
181
  noWhenBranchMatchedException();
182
182
  }
@@ -185,7 +185,7 @@ function emit_3(identifier) {
185
185
  }
186
186
  function sanitize(_this__u8e3s4) {
187
187
  // Inline function 'kotlin.collections.mapIndexed' call
188
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
188
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
189
189
  // Inline function 'kotlin.collections.mapIndexedTo' call
190
190
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
191
191
  var index = 0;
@@ -194,11 +194,11 @@ function sanitize(_this__u8e3s4) {
194
194
  var item = _iterator__ex2g4s.v();
195
195
  var _unary__edvuaz = index;
196
196
  index = _unary__edvuaz + 1 | 0;
197
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.er(item) : item;
198
- destination.x(tmp$ret$0);
197
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.pu(item) : item;
198
+ destination.y(tmp$ret$0);
199
199
  }
200
200
  var tmp = asSequence(joinToString(destination, ''));
201
- return this.j1x(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
201
+ return this.y20(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
202
202
  }
203
203
  function sanitizeFirstIsDigit(_this__u8e3s4) {
204
204
  var tmp;
@@ -218,18 +218,18 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
218
218
  return tmp;
219
219
  }
220
220
  function sanitizeKeywords(_this__u8e3s4) {
221
- return Companion_getInstance_0().h1y_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
221
+ return Companion_getInstance_0().w21_1.v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
222
222
  }
223
223
  initMetadataForInterface(KotlinIdentifierEmitter, 'KotlinIdentifierEmitter');
224
224
  function emit_4(type, module_0) {
225
225
  var tmp;
226
- if (type.mp_1.ip_1.r()) {
227
- tmp = 'data object ' + this.nr(type.lp_1);
226
+ if (type.xs_1.ts_1.r()) {
227
+ tmp = 'data object ' + this.yu(type.ws_1);
228
228
  } else {
229
- var tmp_0 = this.nr(type.lp_1);
230
- var tmp_1 = this.lq(type.mp_1);
229
+ var tmp_0 = this.yu(type.ws_1);
230
+ var tmp_1 = this.wt(type.xs_1);
231
231
  // Inline function 'kotlin.run' call
232
- var $this$run = type.np_1;
232
+ var $this$run = type.ys_1;
233
233
  var tmp_2;
234
234
  if ($this$run.r()) {
235
235
  tmp_2 = '';
@@ -242,18 +242,18 @@ function emit_4(type, module_0) {
242
242
  return tmp;
243
243
  }
244
244
  function emit_5(_this__u8e3s4) {
245
- return dropLast(joinToString(_this__u8e3s4.ip_1, '\n', VOID, VOID, VOID, VOID, KotlinTypeDefinitionEmitter$emit$lambda_0(this)), 1);
245
+ return dropLast(joinToString(_this__u8e3s4.ts_1, '\n', VOID, VOID, VOID, VOID, KotlinTypeDefinitionEmitter$emit$lambda_0(this)), 1);
246
246
  }
247
247
  function emit_6(_this__u8e3s4) {
248
- return this.nr(_this__u8e3s4.qp_1) + ': ' + this.nq(_this__u8e3s4.rp_1);
248
+ return this.yu(_this__u8e3s4.bt_1) + ': ' + this.yt(_this__u8e3s4.ct_1);
249
249
  }
250
250
  function emit_7(_this__u8e3s4) {
251
251
  var tmp;
252
252
  if (_this__u8e3s4 instanceof Dict) {
253
- tmp = 'Map<String, ' + this.nq(_this__u8e3s4.so_1) + '>';
253
+ tmp = 'Map<String, ' + this.yt(_this__u8e3s4.ds_1) + '>';
254
254
  } else {
255
255
  if (_this__u8e3s4 instanceof Iterable) {
256
- tmp = 'List<' + this.nq(_this__u8e3s4.po_1) + '>';
256
+ tmp = 'List<' + this.yt(_this__u8e3s4.as_1) + '>';
257
257
  } else {
258
258
  if (_this__u8e3s4 instanceof Unit) {
259
259
  tmp = 'Unit';
@@ -262,17 +262,17 @@ function emit_7(_this__u8e3s4) {
262
262
  tmp = 'Any';
263
263
  } else {
264
264
  if (_this__u8e3s4 instanceof Custom) {
265
- tmp = _this__u8e3s4.bv_1;
265
+ tmp = _this__u8e3s4.my_1;
266
266
  } else {
267
267
  if (_this__u8e3s4 instanceof Primitive) {
268
- var t = _this__u8e3s4.fv_1;
268
+ var t = _this__u8e3s4.qy_1;
269
269
  var tmp_0;
270
270
  if (t instanceof String_0) {
271
271
  tmp_0 = 'String';
272
272
  } else {
273
273
  if (t instanceof Integer) {
274
274
  var tmp_1;
275
- switch (t.ju_1.b3_1) {
275
+ switch (t.ux_1.c3_1) {
276
276
  case 0:
277
277
  tmp_1 = 'Int';
278
278
  break;
@@ -287,7 +287,7 @@ function emit_7(_this__u8e3s4) {
287
287
  } else {
288
288
  if (t instanceof Number_0) {
289
289
  var tmp_2;
290
- switch (t.mu_1.b3_1) {
290
+ switch (t.xx_1.c3_1) {
291
291
  case 0:
292
292
  tmp_2 = 'Float';
293
293
  break;
@@ -323,15 +323,15 @@ function emit_7(_this__u8e3s4) {
323
323
  }
324
324
  // Inline function 'kotlin.let' call
325
325
  var it = tmp;
326
- return _this__u8e3s4.tu() ? it + '?' : it;
326
+ return _this__u8e3s4.ey() ? it + '?' : it;
327
327
  }
328
328
  function emit_8(_this__u8e3s4) {
329
329
  var tmp;
330
330
  if (_this__u8e3s4 instanceof RegExp_0) {
331
- tmp = 'Regex("""' + this.pq(_this__u8e3s4.pt_1) + '""").matches(value)';
331
+ tmp = 'Regex("""' + this.au(_this__u8e3s4.ax_1) + '""").matches(value)';
332
332
  } else {
333
333
  if (_this__u8e3s4 instanceof Bound) {
334
- var tmp1_safe_receiver = _this__u8e3s4.fu_1;
334
+ var tmp1_safe_receiver = _this__u8e3s4.qx_1;
335
335
  var tmp_0;
336
336
  if (tmp1_safe_receiver == null) {
337
337
  tmp_0 = null;
@@ -340,7 +340,7 @@ function emit_8(_this__u8e3s4) {
340
340
  tmp_0 = tmp1_safe_receiver + ' < value';
341
341
  }
342
342
  var minCheck = tmp_0;
343
- var tmp2_safe_receiver = _this__u8e3s4.gu_1;
343
+ var tmp2_safe_receiver = _this__u8e3s4.rx_1;
344
344
  var tmp_1;
345
345
  if (tmp2_safe_receiver == null) {
346
346
  tmp_1 = null;
@@ -368,10 +368,19 @@ function emit_8(_this__u8e3s4) {
368
368
  }
369
369
  initMetadataForInterface(KotlinTypeDefinitionEmitter, 'KotlinTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, KotlinIdentifierEmitter]);
370
370
  function emit_9(channel) {
371
- return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |fun interface ' + this.nr(channel.cp_1) + ' {\n | operator fun invoke(message: ' + this.nq(channel.dp_1) + ')\n |}\n |\n ');
371
+ return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |fun interface ' + this.yu(channel.ns_1) + ' {\n | operator fun invoke(message: ' + this.yt(channel.os_1) + ')\n |}\n |\n ');
372
372
  }
373
373
  initMetadataForInterface(KotlinChannelDefinitionEmitter, 'KotlinChannelDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
374
- function emit_10(endpoint) {
374
+ function emit_10(enum_0, module_0) {
375
+ var tmp = this.j21(enum_0.iv_1);
376
+ return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.jv_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.sv(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
377
+ }
378
+ initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
379
+ function emit_11(union) {
380
+ return trimMargin('\n |sealed interface ' + this.yu(union.rs_1) + '\n |\n ');
381
+ }
382
+ initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
383
+ function emit_12(endpoint) {
375
384
  // Inline function 'kotlin.collections.map' call
376
385
  var this_0 = importReferences(endpoint);
377
386
  // Inline function 'kotlin.collections.mapTo' call
@@ -379,158 +388,149 @@ function emit_10(endpoint) {
379
388
  var _iterator__ex2g4s = this_0.t();
380
389
  while (_iterator__ex2g4s.u()) {
381
390
  var item = _iterator__ex2g4s.v();
382
- var tmp$ret$0 = 'import ' + this.u1w().ds_1 + '.model.' + item.bv_1;
383
- destination.x(tmp$ret$0);
391
+ var tmp$ret$0 = 'import ' + this.j20().ov_1 + '.model.' + item.my_1;
392
+ destination.y(tmp$ret$0);
384
393
  }
385
394
  var tmp = destination;
386
395
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda);
387
- var tmp_1 = this.nr(endpoint.up_1);
396
+ var tmp_1 = this.yu(endpoint.ft_1);
388
397
  var tmp_2 = get_pathParams(endpoint);
389
398
  var tmp_3 = emitObject$default(this, tmp_2, 'Path', 'Wirespec.Path', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_0(this));
390
- var tmp_4 = emitObject$default(this, endpoint.xp_1, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
391
- var tmp_5 = emitObject$default(this, endpoint.yp_1, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
392
- var tmp_6 = this.h1x(first(endpoint.zp_1), endpoint);
399
+ var tmp_4 = emitObject$default(this, endpoint.it_1, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
400
+ var tmp_5 = emitObject$default(this, endpoint.jt_1, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
401
+ var tmp_6 = this.w20(first(endpoint.kt_1), endpoint);
393
402
  var tmp_7 = Spacer_instance.toString();
394
403
  var tmp_8 = emitStatusInterfaces(this, endpoint);
395
404
  var tmp_9 = emitResponseInterfaces(this, endpoint);
396
- var tmp_10 = distinctByStatus(endpoint.aq_1);
405
+ var tmp_10 = distinctByStatus(endpoint.lt_1);
397
406
  var tmp_11 = joinToString(tmp_10, '\n\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_3(this));
398
407
  var tmp_12 = Spacer_instance.toString();
399
- var tmp_13 = Spacer_instance.hs(2);
400
- var tmp_14 = distinctByStatus(endpoint.aq_1);
408
+ var tmp_13 = Spacer_instance.sv(2);
409
+ var tmp_14 = distinctByStatus(endpoint.lt_1);
401
410
  var tmp_15 = joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_4(this));
402
- var tmp_16 = Spacer_instance.hs(2);
411
+ var tmp_16 = Spacer_instance.sv(2);
403
412
  var tmp_17 = Spacer_instance.toString();
404
- var tmp_18 = Spacer_instance.hs(2);
413
+ var tmp_18 = Spacer_instance.sv(2);
405
414
  // Inline function 'kotlin.collections.filter' call
406
- var tmp0 = distinctByStatus(endpoint.aq_1);
415
+ var tmp0 = distinctByStatus(endpoint.lt_1);
407
416
  // Inline function 'kotlin.collections.filterTo' call
408
417
  var destination_0 = ArrayList_init_$Create$_0();
409
418
  var _iterator__ex2g4s_0 = tmp0.t();
410
419
  while (_iterator__ex2g4s_0.u()) {
411
420
  var element = _iterator__ex2g4s_0.v();
412
- if (Companion_instance_1.ir(element.gq_1)) {
413
- destination_0.x(element);
421
+ if (Companion_instance_1.tu(element.rt_1)) {
422
+ destination_0.y(element);
414
423
  }
415
424
  }
416
425
  var tmp_19 = destination_0;
417
426
  var tmp_20 = joinToString(tmp_19, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_5(this));
418
- var tmp_21 = Spacer_instance.hs(3);
419
- var tmp_22 = Spacer_instance.hs(2);
427
+ var tmp_21 = Spacer_instance.sv(3);
428
+ var tmp_22 = Spacer_instance.sv(2);
420
429
  var tmp_23 = Spacer_instance.toString();
421
- var tmp_24 = Spacer_instance.hs(2);
422
- var tmp_25 = this.l1x(endpoint);
423
- var tmp_26 = Spacer_instance.hs(2);
424
- var tmp_27 = Spacer_instance.hs(3);
425
- return trimMargin('\n |' + tmp_0 + '\n |\n |object ' + tmp_1 + ' : Wirespec.Endpoint {\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_8 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'fun toResponse(serialization: Wirespec.Serializer, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_13 + 'when(response) {\n |' + tmp_15 + '\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'fun fromResponse(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_18 + 'when (response.statusCode) {\n |' + tmp_20 + '\n |' + tmp_21 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_22 + '}\n |\n |' + tmp_23 + 'interface Handler: Wirespec.Handler {\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_27 + 'override val pathTemplate = "/' + joinToString(endpoint.wp_1, '/', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_6) + '"\n |' + Spacer_instance.hs(3) + 'override val method = "' + endpoint.vp_1.toString() + '"\n |' + Spacer_instance.hs(3) + 'override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.hs(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.hs(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.hs(3) + '}\n |' + Spacer_instance.hs(3) + 'override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.hs(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.hs(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.hs(3) + '}\n |' + Spacer_instance.hs(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
430
+ var tmp_24 = Spacer_instance.sv(2);
431
+ var tmp_25 = this.a21(endpoint);
432
+ var tmp_26 = Spacer_instance.sv(2);
433
+ var tmp_27 = Spacer_instance.sv(3);
434
+ return trimMargin('\n |' + tmp_0 + '\n |\n |object ' + tmp_1 + ' : Wirespec.Endpoint {\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_8 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'fun toResponse(serialization: Wirespec.Serializer, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_13 + 'when(response) {\n |' + tmp_15 + '\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'fun fromResponse(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_18 + 'when (response.statusCode) {\n |' + tmp_20 + '\n |' + tmp_21 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_22 + '}\n |\n |' + tmp_23 + 'interface Handler: Wirespec.Handler {\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_27 + 'override val pathTemplate = "/' + joinToString(endpoint.ht_1, '/', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_6) + '"\n |' + Spacer_instance.sv(3) + 'override val method = "' + endpoint.gt_1.toString() + '"\n |' + Spacer_instance.sv(3) + 'override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.sv(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.sv(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.sv(3) + '}\n |' + Spacer_instance.sv(3) + 'override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.sv(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.sv(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.sv(3) + '}\n |' + Spacer_instance.sv(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
426
435
  }
427
436
  function emitHandleFunction(endpoint) {
428
- return 'suspend fun ' + Companion_instance_1.fr(this.nr(endpoint.up_1)) + '(request: Request): Response<*>';
437
+ return 'suspend fun ' + Companion_instance_1.qu(this.yu(endpoint.ft_1)) + '(request: Request): Response<*>';
429
438
  }
430
- function emit_11(_this__u8e3s4, endpoint) {
439
+ function emit_13(_this__u8e3s4, endpoint) {
431
440
  var tmp = Spacer_instance.toString();
432
441
  var tmp_0 = emitConstructor(this, _this__u8e3s4, endpoint);
433
- var tmp_1 = Spacer_instance.hs(2);
442
+ var tmp_1 = Spacer_instance.sv(2);
434
443
  var tmp_2 = get_pathParams(endpoint);
435
444
  var tmp_3 = brace(this, joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_7(this)));
436
- var tmp_4 = Spacer_instance.hs(2);
437
- var tmp_5 = Spacer_instance.hs(2);
438
- var tmp_6 = brace(this, joinToString(endpoint.xp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_8(this)));
439
- var tmp_7 = Spacer_instance.hs(2);
440
- var tmp_8 = brace(this, joinToString(endpoint.yp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_9(this)));
441
- var tmp_9 = _this__u8e3s4.dq_1 == null ? Spacer_instance.hs(2) + 'override val body = Unit\n' + Spacer_instance.toString() + '}' : Spacer_instance.toString() + '}';
445
+ var tmp_4 = Spacer_instance.sv(2);
446
+ var tmp_5 = Spacer_instance.sv(2);
447
+ var tmp_6 = brace(this, joinToString(endpoint.it_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_8(this)));
448
+ var tmp_7 = Spacer_instance.sv(2);
449
+ var tmp_8 = brace(this, joinToString(endpoint.jt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_9(this)));
450
+ var tmp_9 = _this__u8e3s4.ot_1 == null ? Spacer_instance.sv(2) + 'override val body = Unit\n' + Spacer_instance.toString() + '}' : Spacer_instance.toString() + '}';
442
451
  var tmp_10 = Spacer_instance.toString();
443
- var tmp_11 = Spacer_instance.hs(2);
444
- var tmp_12 = Spacer_instance.hs(3);
445
- return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.vp_1.a3_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + '\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toRequest(serialization: Wirespec.Serializer, request: Request): Wirespec.RawRequest =\n |' + tmp_11 + 'Wirespec.RawRequest(\n |' + tmp_12 + 'path = listOf(' + joinToString(endpoint.wp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.hs(3) + 'method = request.method.name,\n |' + Spacer_instance.hs(3) + 'queries = ' + this.e1y(endpoint) + ',\n |' + Spacer_instance.hs(3) + 'headers = ' + this.d1y(endpoint) + ',\n |' + Spacer_instance.hs(3) + 'body = ' + (!(_this__u8e3s4.dq_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.dq_1) + '>())' : 'null') + ',\n |' + Spacer_instance.hs(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.hs(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
452
+ var tmp_11 = Spacer_instance.sv(2);
453
+ var tmp_12 = Spacer_instance.sv(3);
454
+ return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.gt_1.b3_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + '\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toRequest(serialization: Wirespec.Serializer, request: Request): Wirespec.RawRequest =\n |' + tmp_11 + 'Wirespec.RawRequest(\n |' + tmp_12 + 'path = listOf(' + joinToString(endpoint.ht_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.sv(3) + 'method = request.method.name,\n |' + Spacer_instance.sv(3) + 'queries = ' + this.t21(endpoint) + ',\n |' + Spacer_instance.sv(3) + 'headers = ' + this.s21(endpoint) + ',\n |' + Spacer_instance.sv(3) + 'body = ' + (!(_this__u8e3s4.ot_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.ot_1) + '>())' : 'null') + ',\n |' + Spacer_instance.sv(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.sv(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
446
455
  }
447
456
  function emitRequestHeaders(_this__u8e3s4) {
448
457
  var tmp;
449
- if (_this__u8e3s4.yp_1.r()) {
458
+ if (_this__u8e3s4.jt_1.r()) {
450
459
  tmp = 'emptyMap()';
451
460
  } else {
452
- var tmp_0 = Spacer_instance.hs(5);
453
- var tmp_1 = ',\n' + Spacer_instance.hs(5);
454
- tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.yp_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitRequestHeaders$lambda(this)) + '\n |' + Spacer_instance.hs(4) + ')\n ');
461
+ var tmp_0 = Spacer_instance.sv(5);
462
+ var tmp_1 = ',\n' + Spacer_instance.sv(5);
463
+ tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.jt_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitRequestHeaders$lambda(this)) + '\n |' + Spacer_instance.sv(4) + ')\n ');
455
464
  }
456
465
  return tmp;
457
466
  }
458
467
  function emitQueries(endpoint) {
459
468
  var tmp;
460
469
  // Inline function 'kotlin.collections.isNotEmpty' call
461
- if (!endpoint.xp_1.r()) {
462
- var tmp_0 = Spacer_instance.hs(5);
463
- var tmp_1 = ',\n' + Spacer_instance.hs(5);
464
- tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(endpoint.xp_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitQueries$lambda(this)) + '\n |' + Spacer_instance.hs(4) + ')\n ');
470
+ if (!endpoint.it_1.r()) {
471
+ var tmp_0 = Spacer_instance.sv(5);
472
+ var tmp_1 = ',\n' + Spacer_instance.sv(5);
473
+ tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(endpoint.it_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitQueries$lambda(this)) + '\n |' + Spacer_instance.sv(4) + ')\n ');
465
474
  } else {
466
475
  tmp = 'emptyMap()';
467
476
  }
468
477
  return tmp;
469
478
  }
470
- function emit_12(_this__u8e3s4) {
479
+ function emit_14(_this__u8e3s4) {
471
480
  // Inline function 'kotlin.let' call
472
- var it = joinToString(_this__u8e3s4.hq_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
481
+ var it = joinToString(_this__u8e3s4.st_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
473
482
  var responseHeaderFields = isBlank(it) ? '' : ', ' + it;
474
483
  var tmp = Spacer_instance.toString();
475
- var tmp_0 = emit_16(this, _this__u8e3s4.iq_1);
476
- var tmp_1 = toString_0(charCodeAt(_this__u8e3s4.gq_1, 0));
477
- var tmp_2 = emit_16(this, _this__u8e3s4.iq_1);
478
- var tmp_3 = concatGenerics(emit_16(this, _this__u8e3s4.iq_1));
479
- var tmp_4 = Spacer_instance.hs(2);
480
- var tmp_5 = fixStatus(_this__u8e3s4.gq_1);
481
- var tmp_6 = Spacer_instance.hs(2);
482
- var tmp_7 = brace(this, joinToString(_this__u8e3s4.hq_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_12(this)));
483
- return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.gq_1 + '(override val body: ' + tmp_0 + responseHeaderFields + ') : Response' + tmp_1 + 'XX<' + tmp_2 + '>, Response' + tmp_3 + ' {\n |' + tmp_4 + 'override val status = ' + tmp_5 + '\n |' + tmp_6 + 'override val headers = ResponseHeaders' + tmp_7 + '\n |' + emitObject(this, _this__u8e3s4.hq_1, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEndpointDefinitionEmitter$emit$lambda_13(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
484
+ var tmp_0 = emit_16(this, _this__u8e3s4.tt_1);
485
+ var tmp_1 = toString_0(charCodeAt(_this__u8e3s4.rt_1, 0));
486
+ var tmp_2 = emit_16(this, _this__u8e3s4.tt_1);
487
+ var tmp_3 = concatGenerics(emit_16(this, _this__u8e3s4.tt_1));
488
+ var tmp_4 = Spacer_instance.sv(2);
489
+ var tmp_5 = fixStatus(_this__u8e3s4.rt_1);
490
+ var tmp_6 = Spacer_instance.sv(2);
491
+ var tmp_7 = brace(this, joinToString(_this__u8e3s4.st_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_12(this)));
492
+ return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.rt_1 + '(override val body: ' + tmp_0 + responseHeaderFields + ') : Response' + tmp_1 + 'XX<' + tmp_2 + '>, Response' + tmp_3 + ' {\n |' + tmp_4 + 'override val status = ' + tmp_5 + '\n |' + tmp_6 + 'override val headers = ResponseHeaders' + tmp_7 + '\n |' + emitObject(this, _this__u8e3s4.st_1, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEndpointDefinitionEmitter$emit$lambda_13(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
484
493
  }
485
494
  function emitBody(_this__u8e3s4, content) {
486
495
  return 'serialization.serializeBody(response.body, typeOf<' + emit_16(_this__u8e3s4, content) + '>())';
487
496
  }
488
497
  function emitHeaders(_this__u8e3s4) {
489
498
  var tmp;
490
- if (_this__u8e3s4.hq_1.r()) {
499
+ if (_this__u8e3s4.st_1.r()) {
491
500
  tmp = 'emptyMap()';
492
501
  } else {
493
- var tmp_0 = Spacer_instance.hs(5);
494
- var tmp_1 = ',\n' + Spacer_instance.hs(5);
495
- tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.hq_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitHeaders$lambda(this)) + '\n |' + Spacer_instance.hs(4) + ')\n ');
502
+ var tmp_0 = Spacer_instance.sv(5);
503
+ var tmp_1 = ',\n' + Spacer_instance.sv(5);
504
+ tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.st_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitHeaders$lambda(this)) + '\n |' + Spacer_instance.sv(4) + ')\n ');
496
505
  }
497
506
  return tmp;
498
507
  }
499
508
  initMetadataForInterface(KotlinEndpointDefinitionEmitter, 'KotlinEndpointDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
500
- function emit_13(enum_0, module_0) {
501
- var tmp = this.u1x(enum_0.xr_1);
502
- return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.yr_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.hs(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
503
- }
504
- initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
505
- function emit_14(union) {
506
- return trimMargin('\n |sealed interface ' + this.nr(union.gp_1) + '\n |\n ');
507
- }
508
- initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
509
509
  function emit_15(refined) {
510
- return trimMargin('\n |data class ' + this.u1x(refined.sr_1) + '(override val value: ' + this.nq(refined.tr_1) + '): Wirespec.Refined<' + this.nq(refined.tr_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.bs(refined) + '\n |}\n |\n ');
510
+ return trimMargin('\n |data class ' + this.j21(refined.dv_1) + '(override val value: ' + this.yt(refined.ev_1) + '): Wirespec.Refined<' + this.yt(refined.ev_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.mv(refined) + '\n |}\n |\n ');
511
511
  }
512
512
  function emitValidator(_this__u8e3s4) {
513
513
  var defaultReturn = 'true';
514
- var type = _this__u8e3s4.tr_1.fv_1;
514
+ var type = _this__u8e3s4.ev_1.qy_1;
515
515
  var tmp;
516
516
  if (type instanceof Integer) {
517
- var tmp0_safe_receiver = type.ku_1;
518
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.oq(tmp0_safe_receiver);
517
+ var tmp0_safe_receiver = type.vx_1;
518
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.zt(tmp0_safe_receiver);
519
519
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
520
520
  } else {
521
521
  if (type instanceof Number_0) {
522
- var tmp2_safe_receiver = type.nu_1;
523
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.oq(tmp2_safe_receiver);
522
+ var tmp2_safe_receiver = type.yx_1;
523
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.zt(tmp2_safe_receiver);
524
524
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
525
525
  } else {
526
526
  if (type instanceof String_0) {
527
- var tmp4_safe_receiver = type.hu_1;
527
+ var tmp4_safe_receiver = type.sx_1;
528
528
  var tmp_0;
529
529
  var tmp_1 = tmp4_safe_receiver;
530
530
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
531
531
  tmp_0 = null;
532
532
  } else {
533
- tmp_0 = this.oq(new RegExp_0(tmp4_safe_receiver));
533
+ tmp_0 = this.zt(new RegExp_0(tmp4_safe_receiver));
534
534
  }
535
535
  var tmp5_elvis_lhs = tmp_0;
536
536
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -550,7 +550,7 @@ function emitValidator(_this__u8e3s4) {
550
550
  return tmp;
551
551
  }
552
552
  initMetadataForInterface(KotlinRefinedTypeDefinitionEmitter, 'KotlinRefinedTypeDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter, KotlinTypeDefinitionEmitter]);
553
- initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinEndpointDefinitionEmitter, KotlinEnumDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter, KotlinTypeDefinitionEmitter, KotlinIdentifierEmitter, KotlinChannelDefinitionEmitter]);
553
+ initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinIdentifierEmitter, KotlinEnumDefinitionEmitter, KotlinTypeDefinitionEmitter, KotlinChannelDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinEndpointDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter]);
554
554
  initMetadataForCompanion(Companion);
555
555
  initMetadataForCompanion(Companion_0);
556
556
  initMetadataForClass(KotlinIrEmitter, 'KotlinIrEmitter', KotlinIrEmitter, VOID, [IrEmitter]);
@@ -564,8 +564,8 @@ function emitImports($this, _this__u8e3s4) {
564
564
  var _iterator__ex2g4s = this_0.t();
565
565
  while (_iterator__ex2g4s.u()) {
566
566
  var item = _iterator__ex2g4s.v();
567
- var tmp$ret$0 = 'import ' + $this.u1w().ds_1 + '.model.' + item.bv_1 + ';';
568
- destination.x(tmp$ret$0);
567
+ var tmp$ret$0 = 'import ' + $this.j20().ov_1 + '.model.' + item.my_1 + ';';
568
+ destination.y(tmp$ret$0);
569
569
  }
570
570
  var tmp = destination;
571
571
  return joinToString(tmp, '\n', VOID, VOID, VOID, VOID, KotlinChannelDefinitionEmitter$emitImports$lambda);
@@ -577,67 +577,67 @@ function KotlinChannelDefinitionEmitter$emitImports$lambda(it) {
577
577
  function KotlinChannelDefinitionEmitter() {
578
578
  }
579
579
  function KotlinEmitter(packageName, emitShared) {
580
- packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
581
- emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
580
+ packageName = packageName === VOID ? Companion_instance.nv('community.flock.wirespec.generated') : packageName;
581
+ emitShared = emitShared === VOID ? Companion_instance_0.hs() : emitShared;
582
582
  LanguageEmitter.call(this);
583
- this.v1x_1 = packageName;
584
- this.w1x_1 = emitShared;
585
- this.x1x_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
586
- this.y1x_1 = FileExtension_Kotlin_getInstance();
587
- this.z1x_1 = KotlinShared_getInstance();
588
- this.a1y_1 = '//';
589
- }
590
- protoOf(KotlinEmitter).u1w = function () {
591
- return this.v1x_1;
583
+ this.k21_1 = packageName;
584
+ this.l21_1 = emitShared;
585
+ this.m21_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
586
+ this.n21_1 = FileExtension_Kotlin_getInstance();
587
+ this.o21_1 = KotlinShared_getInstance();
588
+ this.p21_1 = '//';
589
+ }
590
+ protoOf(KotlinEmitter).j20 = function () {
591
+ return this.k21_1;
592
592
  };
593
- protoOf(KotlinEmitter).uq = function () {
594
- return this.y1x_1;
593
+ protoOf(KotlinEmitter).fu = function () {
594
+ return this.n21_1;
595
595
  };
596
- protoOf(KotlinEmitter).d1x = function () {
597
- return this.z1x_1;
596
+ protoOf(KotlinEmitter).s20 = function () {
597
+ return this.o21_1;
598
598
  };
599
- protoOf(KotlinEmitter).vq = function () {
600
- return this.a1y_1;
599
+ protoOf(KotlinEmitter).gu = function () {
600
+ return this.p21_1;
601
601
  };
602
- protoOf(KotlinEmitter).kr = function (module_0, logger) {
602
+ protoOf(KotlinEmitter).vu = function (module_0, logger) {
603
603
  // Inline function 'kotlin.let' call
604
- var it = protoOf(LanguageEmitter).kr.call(this, module_0, logger);
605
- return this.w1x_1.xo_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.cs('community.flock.wirespec.kotlin').fs() + 'Wirespec', this.d1x().c1y_1)) : it;
604
+ var it = protoOf(LanguageEmitter).vu.call(this, module_0, logger);
605
+ return this.l21_1.is_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.nv('community.flock.wirespec.kotlin').qv() + 'Wirespec', this.s20().r21_1)) : it;
606
606
  };
607
- protoOf(KotlinEmitter).lr = function (definition, module_0, logger) {
607
+ protoOf(KotlinEmitter).wu = function (definition, module_0, logger) {
608
608
  // Inline function 'kotlin.let' call
609
- var it = protoOf(LanguageEmitter).lr.call(this, definition, module_0, logger);
610
- var subPackageName = plus(this.u1w(), definition);
611
- var tmp = subPackageName.fs() + it.yo_1;
609
+ var it = protoOf(LanguageEmitter).wu.call(this, definition, module_0, logger);
610
+ var subPackageName = plus(this.j20(), definition);
611
+ var tmp = subPackageName.qv() + it.js_1;
612
612
  // Inline function 'kotlin.text.trimStart' call
613
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.gr(module_0) ? this.x1x_1 : '') + '\n |' + it.zo_1 + '\n ');
613
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.ru(module_0) ? this.m21_1 : '') + '\n |' + it.ks_1 + '\n ');
614
614
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
615
615
  return new Emitted(tmp, tmp$ret$0);
616
616
  };
617
617
  function emitStatusInterfaces($this, _this__u8e3s4) {
618
618
  // Inline function 'kotlin.collections.map' call
619
- var this_0 = _this__u8e3s4.aq_1;
619
+ var this_0 = _this__u8e3s4.lt_1;
620
620
  // Inline function 'kotlin.collections.mapTo' call
621
621
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
622
622
  var _iterator__ex2g4s = this_0.t();
623
623
  while (_iterator__ex2g4s.u()) {
624
624
  var item = _iterator__ex2g4s.v();
625
- var tmp$ret$0 = new Char(charCodeAt(item.gq_1, 0));
626
- destination.x(tmp$ret$0);
625
+ var tmp$ret$0 = new Char(charCodeAt(item.rt_1, 0));
626
+ destination.y(tmp$ret$0);
627
627
  }
628
628
  var tmp = distinct(destination);
629
629
  return joinToString(tmp, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitStatusInterfaces$lambda);
630
630
  }
631
631
  function emitResponseInterfaces($this, _this__u8e3s4) {
632
632
  // Inline function 'kotlin.collections.map' call
633
- var this_0 = _this__u8e3s4.aq_1;
633
+ var this_0 = _this__u8e3s4.lt_1;
634
634
  // Inline function 'kotlin.collections.mapTo' call
635
635
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
636
636
  var _iterator__ex2g4s = this_0.t();
637
637
  while (_iterator__ex2g4s.u()) {
638
638
  var item = _iterator__ex2g4s.v();
639
- var tmp$ret$0 = emit_16($this, item.iq_1);
640
- destination.x(tmp$ret$0);
639
+ var tmp$ret$0 = emit_16($this, item.tt_1);
640
+ destination.y(tmp$ret$0);
641
641
  }
642
642
  var tmp = distinct(destination);
643
643
  return joinToString(tmp, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitResponseInterfaces$lambda);
@@ -645,64 +645,64 @@ function emitResponseInterfaces($this, _this__u8e3s4) {
645
645
  function emitConstructor($this, _this__u8e3s4, endpoint) {
646
646
  var tmp = get_pathParams(endpoint);
647
647
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda($this)));
648
- var tmp_1 = orNull(joinToString(endpoint.xp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
649
- var tmp_2 = orNull(joinToString(endpoint.yp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
650
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
648
+ var tmp_1 = orNull(joinToString(endpoint.it_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
649
+ var tmp_2 = orNull(joinToString(endpoint.jt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
650
+ var tmp0_safe_receiver = _this__u8e3s4.ot_1;
651
651
  var tmp_3;
652
652
  if (tmp0_safe_receiver == null) {
653
653
  tmp_3 = null;
654
654
  } else {
655
655
  // Inline function 'kotlin.let' call
656
- tmp_3 = Spacer_instance.hs(2) + 'override val body: ' + emit_16($this, tmp0_safe_receiver) + ',';
656
+ tmp_3 = Spacer_instance.sv(2) + 'override val body: ' + emit_16($this, tmp0_safe_receiver) + ',';
657
657
  }
658
658
  // Inline function 'kotlin.let' call
659
659
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
660
- return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_16($this, _this__u8e3s4.dq_1) + '> {' : 'class Request(\n' + it + '\n' + Spacer_instance.toString() + ') : Wirespec.Request<' + emit_16($this, _this__u8e3s4.dq_1) + '> {';
660
+ return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_16($this, _this__u8e3s4.ot_1) + '> {' : 'class Request(\n' + it + '\n' + Spacer_instance.toString() + ') : Wirespec.Request<' + emit_16($this, _this__u8e3s4.ot_1) + '> {';
661
661
  }
662
662
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
663
663
  var tmp = get_indexedPathParams(endpoint);
664
664
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
665
- var tmp_1 = orNull(joinToString(endpoint.xp_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
666
- var tmp_2 = orNull(joinToString(endpoint.yp_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
667
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
665
+ var tmp_1 = orNull(joinToString(endpoint.it_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
666
+ var tmp_2 = orNull(joinToString(endpoint.jt_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
667
+ var tmp0_safe_receiver = _this__u8e3s4.ot_1;
668
668
  var tmp_3;
669
669
  if (tmp0_safe_receiver == null) {
670
670
  tmp_3 = null;
671
671
  } else {
672
672
  // Inline function 'kotlin.let' call
673
- tmp_3 = Spacer_instance.hs(3) + 'body = serialization.deserializeBody(requireNotNull(request.body) { "body is null" }, typeOf<' + emit_16($this, tmp0_safe_receiver) + '>()),';
673
+ tmp_3 = Spacer_instance.sv(3) + 'body = serialization.deserializeBody(requireNotNull(request.body) { "body is null" }, typeOf<' + emit_16($this, tmp0_safe_receiver) + '>()),';
674
674
  }
675
675
  // Inline function 'kotlin.let' call
676
676
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
677
- return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.hs(2) + ')';
677
+ return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.sv(2) + ')';
678
678
  }
679
679
  function emitSerialized($this, _this__u8e3s4) {
680
- return trimMargin('\n |' + Spacer_instance.hs(3) + 'is Response' + _this__u8e3s4.gq_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.hs(4) + 'statusCode = response.status,\n |' + Spacer_instance.hs(4) + 'headers = ' + $this.g1y(_this__u8e3s4) + ',\n |' + Spacer_instance.hs(4) + 'body = ' + (!(_this__u8e3s4.iq_1 == null) ? $this.f1y($this, _this__u8e3s4.iq_1) : 'null') + ',\n |' + Spacer_instance.hs(3) + ')\n ');
680
+ return trimMargin('\n |' + Spacer_instance.sv(3) + 'is Response' + _this__u8e3s4.rt_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.sv(4) + 'statusCode = response.status,\n |' + Spacer_instance.sv(4) + 'headers = ' + $this.v21(_this__u8e3s4) + ',\n |' + Spacer_instance.sv(4) + 'body = ' + (!(_this__u8e3s4.tt_1 == null) ? $this.u21($this, _this__u8e3s4.tt_1) : 'null') + ',\n |' + Spacer_instance.sv(3) + ')\n ');
681
681
  }
682
682
  function emitDeserialized($this, _this__u8e3s4) {
683
- var tmp = Spacer_instance.hs(3) + _this__u8e3s4.gq_1 + ' -> Response' + _this__u8e3s4.gq_1 + '(';
683
+ var tmp = Spacer_instance.sv(3) + _this__u8e3s4.rt_1 + ' -> Response' + _this__u8e3s4.rt_1 + '(';
684
684
  var tmp_0;
685
- if (!(_this__u8e3s4.iq_1 == null)) {
686
- tmp_0 = Spacer_instance.hs(4) + 'body = serialization.deserializeBody(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_16($this, _this__u8e3s4.iq_1) + '>()),';
685
+ if (!(_this__u8e3s4.tt_1 == null)) {
686
+ tmp_0 = Spacer_instance.sv(4) + 'body = serialization.deserializeBody(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_16($this, _this__u8e3s4.tt_1) + '>()),';
687
687
  } else {
688
- tmp_0 = Spacer_instance.hs(4) + 'body = Unit,';
688
+ tmp_0 = Spacer_instance.sv(4) + 'body = Unit,';
689
689
  }
690
690
  var tmp_1 = tmp_0;
691
- return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.hq_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.hs(3) + ')']), '\n');
691
+ return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.st_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.sv(3) + ')']), '\n');
692
692
  }
693
693
  function emitSerializedMapEntry($this, _this__u8e3s4, type, fields) {
694
- return '"' + _this__u8e3s4.qp_1.l1() + '" to ' + type + '.' + fields + '.' + $this.nr(_this__u8e3s4.qp_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.nq(_this__u8e3s4.rp_1) + '>()) }.orEmpty()';
694
+ return '"' + _this__u8e3s4.bt_1.m1() + '" to ' + type + '.' + fields + '.' + $this.yu(_this__u8e3s4.bt_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.yt(_this__u8e3s4.ct_1) + '>()) }.orEmpty()';
695
695
  }
696
696
  function emitDeserialized_0($this, _this__u8e3s4) {
697
- return Spacer_instance.hs(3) + $this.nr(_this__u8e3s4.ue_1.bq_1) + ' = serialization.deserializePath(request.path[' + _this__u8e3s4.te_1 + '], typeOf<' + $this.nq(_this__u8e3s4.ue_1.cq_1) + '>())';
697
+ return Spacer_instance.sv(3) + $this.yu(_this__u8e3s4.lf_1.mt_1) + ' = serialization.deserializePath(request.path[' + _this__u8e3s4.kf_1 + '], typeOf<' + $this.yt(_this__u8e3s4.lf_1.nt_1) + '>())';
698
698
  }
699
699
  function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
700
- var trimMargin_0 = trimMargin('\n |' + Spacer_instance.hs(spaces) + $this.nr(_this__u8e3s4.qp_1) + ' =\n |' + Spacer_instance.hs(spaces + 1 | 0) + type + '.' + fields + '\n |' + Spacer_instance.hs(spaces + 2 | 0) + '.entries\n |' + Spacer_instance.hs(spaces + 2 | 0) + '.find { it.key.equals("' + _this__u8e3s4.qp_1.l1() + '", ignoreCase = ' + !caseSensitive + ') }\n |' + Spacer_instance.hs(spaces + 2 | 0) + '?.let { serialization.deserializeParam(it.value, typeOf<' + $this.nq(_this__u8e3s4.rp_1) + '>()) }\n ');
700
+ var trimMargin_0 = trimMargin('\n |' + Spacer_instance.sv(spaces) + $this.yu(_this__u8e3s4.bt_1) + ' =\n |' + Spacer_instance.sv(spaces + 1 | 0) + type + '.' + fields + '\n |' + Spacer_instance.sv(spaces + 2 | 0) + '.entries\n |' + Spacer_instance.sv(spaces + 2 | 0) + '.find { it.key.equals("' + _this__u8e3s4.bt_1.m1() + '", ignoreCase = ' + !caseSensitive + ') }\n |' + Spacer_instance.sv(spaces + 2 | 0) + '?.let { serialization.deserializeParam(it.value, typeOf<' + $this.yt(_this__u8e3s4.ct_1) + '>()) }\n ');
701
701
  var tmp;
702
- if (_this__u8e3s4.rp_1.tu()) {
702
+ if (_this__u8e3s4.ct_1.ey()) {
703
703
  tmp = trimMargin_0;
704
704
  } else {
705
- tmp = trimMargin_0 + '\n' + Spacer_instance.hs(spaces + 2 | 0) + '?: throw IllegalArgumentException("' + $this.nr(_this__u8e3s4.qp_1) + ' is null")';
705
+ tmp = trimMargin_0 + '\n' + Spacer_instance.sv(spaces + 2 | 0) + '?: throw IllegalArgumentException("' + $this.yu(_this__u8e3s4.bt_1) + ' is null")';
706
706
  }
707
707
  return tmp;
708
708
  }
@@ -712,16 +712,16 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
712
712
  return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
713
713
  }
714
714
  function emitIdentifier($this, _this__u8e3s4) {
715
- return 'request.path.' + $this.nr(_this__u8e3s4.bq_1) + '.let{serialization.serializePath(it, typeOf<' + $this.nq(_this__u8e3s4.cq_1) + '>())}';
715
+ return 'request.path.' + $this.yu(_this__u8e3s4.mt_1) + '.let{serialization.serializePath(it, typeOf<' + $this.yt(_this__u8e3s4.nt_1) + '>())}';
716
716
  }
717
717
  function emit_16($this, _this__u8e3s4) {
718
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.fq_1;
719
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.nq(tmp1_safe_receiver);
718
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.qt_1;
719
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.yt(tmp1_safe_receiver);
720
720
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : removeQuestionMark(tmp2_safe_receiver);
721
721
  return tmp3_elvis_lhs == null ? 'Unit' : tmp3_elvis_lhs;
722
722
  }
723
723
  function emit_17($this, _this__u8e3s4) {
724
- return $this.nr(_this__u8e3s4.bq_1) + ': ' + $this.nq(_this__u8e3s4.cq_1);
724
+ return $this.yu(_this__u8e3s4.mt_1) + ': ' + $this.yt(_this__u8e3s4.nt_1);
725
725
  }
726
726
  function brace($this, _this__u8e3s4) {
727
727
  return wrap($this, _this__u8e3s4, '(', ')');
@@ -739,10 +739,10 @@ function wrap($this, _this__u8e3s4, prefix, postfix) {
739
739
  function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
740
740
  var tmp;
741
741
  if (_this__u8e3s4.r()) {
742
- tmp = Spacer_instance.hs(spaces) + 'data object ' + name + ' : ' + extends_0;
742
+ tmp = Spacer_instance.sv(spaces) + 'data object ' + name + ' : ' + extends_0;
743
743
  } else {
744
- var tmp_0 = Spacer_instance.hs(spaces);
745
- tmp = trimMargin('\n |' + tmp_0 + 'data class ' + name + '(\n |' + joinToString(_this__u8e3s4, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + ',\n |' + Spacer_instance.hs(spaces) + ') : ' + extends_0 + '\n ');
744
+ var tmp_0 = Spacer_instance.sv(spaces);
745
+ tmp = trimMargin('\n |' + tmp_0 + 'data class ' + name + '(\n |' + joinToString(_this__u8e3s4, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + ',\n |' + Spacer_instance.sv(spaces) + ') : ' + extends_0 + '\n ');
746
746
  }
747
747
  return tmp;
748
748
  }
@@ -761,17 +761,17 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_0(this$0) {
761
761
  }
762
762
  function KotlinEndpointDefinitionEmitter$emit$lambda_1(this$0) {
763
763
  return function (it) {
764
- return this$0.mq(it);
764
+ return this$0.xt(it);
765
765
  };
766
766
  }
767
767
  function KotlinEndpointDefinitionEmitter$emit$lambda_2(this$0) {
768
768
  return function (it) {
769
- return this$0.mq(it);
769
+ return this$0.xt(it);
770
770
  };
771
771
  }
772
772
  function KotlinEndpointDefinitionEmitter$emit$lambda_3(this$0) {
773
773
  return function (it) {
774
- return this$0.i1x(it);
774
+ return this$0.x20(it);
775
775
  };
776
776
  }
777
777
  function KotlinEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -788,31 +788,31 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_6(it) {
788
788
  return emit(it);
789
789
  }
790
790
  function KotlinEndpointDefinitionEmitter$emitStatusInterfaces$lambda(it) {
791
- return Spacer_instance.toString() + 'sealed interface Response' + toString_0(it.h1_1) + 'XX<T: Any> : Response<T>';
791
+ return Spacer_instance.toString() + 'sealed interface Response' + toString_0(it.i1_1) + 'XX<T: Any> : Response<T>';
792
792
  }
793
793
  function KotlinEndpointDefinitionEmitter$emitResponseInterfaces$lambda(it) {
794
794
  return Spacer_instance.toString() + 'sealed interface Response' + concatGenerics(it) + ' : Response<' + it + '>';
795
795
  }
796
796
  function KotlinEndpointDefinitionEmitter$emit$lambda_7(this$0) {
797
797
  return function (it) {
798
- return this$0.nr(it.bq_1);
798
+ return this$0.yu(it.mt_1);
799
799
  };
800
800
  }
801
801
  function KotlinEndpointDefinitionEmitter$emit$lambda_8(this$0) {
802
802
  return function (it) {
803
- return this$0.nr(it.qp_1);
803
+ return this$0.yu(it.bt_1);
804
804
  };
805
805
  }
806
806
  function KotlinEndpointDefinitionEmitter$emit$lambda_9(this$0) {
807
807
  return function (it) {
808
- return this$0.nr(it.qp_1);
808
+ return this$0.yu(it.bt_1);
809
809
  };
810
810
  }
811
811
  function KotlinEndpointDefinitionEmitter$emit$lambda_10(this$0) {
812
812
  return function (it) {
813
813
  var tmp;
814
814
  if (it instanceof Literal) {
815
- tmp = '"' + it.xq_1 + '"';
815
+ tmp = '"' + it.iu_1 + '"';
816
816
  } else {
817
817
  if (it instanceof Param) {
818
818
  tmp = emitIdentifier(this$0, it);
@@ -835,32 +835,32 @@ function KotlinEndpointDefinitionEmitter$emitQueries$lambda(this$0) {
835
835
  }
836
836
  function KotlinEndpointDefinitionEmitter$emit$lambda_11(this$0) {
837
837
  return function (it) {
838
- return 'val ' + this$0.mq(it);
838
+ return 'val ' + this$0.xt(it);
839
839
  };
840
840
  }
841
841
  function KotlinEndpointDefinitionEmitter$emit$lambda_12(this$0) {
842
842
  return function (it) {
843
- return this$0.nr(it.qp_1);
843
+ return this$0.yu(it.bt_1);
844
844
  };
845
845
  }
846
846
  function KotlinEndpointDefinitionEmitter$emit$lambda_13(this$0) {
847
847
  return function (it) {
848
- return this$0.mq(it);
848
+ return this$0.xt(it);
849
849
  };
850
850
  }
851
851
  function KotlinEndpointDefinitionEmitter$emitConstructor$lambda(this$0) {
852
852
  return function (it) {
853
- return Spacer_instance.hs(2) + emit_17(this$0, it);
853
+ return Spacer_instance.sv(2) + emit_17(this$0, it);
854
854
  };
855
855
  }
856
856
  function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0(this$0) {
857
857
  return function (it) {
858
- return Spacer_instance.hs(2) + this$0.mq(it);
858
+ return Spacer_instance.sv(2) + this$0.xt(it);
859
859
  };
860
860
  }
861
861
  function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1(this$0) {
862
862
  return function (it) {
863
- return Spacer_instance.hs(2) + this$0.mq(it);
863
+ return Spacer_instance.sv(2) + this$0.xt(it);
864
864
  };
865
865
  }
866
866
  function KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda(this$0) {
@@ -890,7 +890,7 @@ function KotlinEndpointDefinitionEmitter$emitDeserialized$lambda(this$0) {
890
890
  }
891
891
  function KotlinEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
892
892
  return function (it) {
893
- return Spacer_instance.hs($spaces + 1 | 0) + 'val ' + $block(it);
893
+ return Spacer_instance.sv($spaces + 1 | 0) + 'val ' + $block(it);
894
894
  };
895
895
  }
896
896
  function KotlinEndpointDefinitionEmitter() {
@@ -899,18 +899,18 @@ function sanitizeNegative($this, _this__u8e3s4) {
899
899
  return startsWith(_this__u8e3s4, '-') ? '__' + substring(_this__u8e3s4, 1) : _this__u8e3s4;
900
900
  }
901
901
  function sanitizeEnum($this, _this__u8e3s4) {
902
- return $this.j1x(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
902
+ return $this.y20(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
903
903
  }
904
904
  function KotlinEnumDefinitionEmitter$emit$lambda(this$0) {
905
905
  return function (it) {
906
- return this$0.k1x(sanitizeEnum(this$0, it)) + '("' + it + '")';
906
+ return this$0.z20(sanitizeEnum(this$0, it)) + '("' + it + '")';
907
907
  };
908
908
  }
909
909
  function KotlinEnumDefinitionEmitter() {
910
910
  }
911
911
  function Companion() {
912
912
  Companion_instance_2 = this;
913
- this.h1y_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
913
+ this.w21_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
914
914
  }
915
915
  var Companion_instance_2;
916
916
  function Companion_getInstance_0() {
@@ -919,27 +919,27 @@ function Companion_getInstance_0() {
919
919
  return Companion_instance_2;
920
920
  }
921
921
  function KotlinIdentifierEmitter$sanitize$lambda(it) {
922
- return isLetterOrDigit(it.h1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).u1(it);
922
+ return isLetterOrDigit(it.i1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).v1(it);
923
923
  }
924
924
  function KotlinIdentifierEmitter() {
925
925
  }
926
926
  function _get_sanitizationConfig__sns434($this) {
927
- var tmp0 = $this.n1y_1;
927
+ var tmp0 = $this.c22_1;
928
928
  var tmp = KProperty1;
929
929
  // Inline function 'kotlin.getValue' call
930
930
  getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinIrEmitter$_get_sanitizationConfig_$ref_tnafwf(), null);
931
- return tmp0.l1();
931
+ return tmp0.m1();
932
932
  }
933
933
  function _get_modelSanitizationConfig__vgg831($this) {
934
- var tmp0 = $this.o1y_1;
934
+ var tmp0 = $this.d22_1;
935
935
  var tmp = KProperty1;
936
936
  // Inline function 'kotlin.getValue' call
937
937
  getPropertyCallableRef('modelSanitizationConfig', 1, tmp, KotlinIrEmitter$_get_modelSanitizationConfig_$ref_iulb4s(), null);
938
- return tmp0.l1();
938
+ return tmp0.m1();
939
939
  }
940
940
  function sanitize_0($this, _this__u8e3s4) {
941
941
  // Inline function 'kotlin.collections.mapIndexed' call
942
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
942
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
943
943
  // Inline function 'kotlin.collections.mapIndexedTo' call
944
944
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
945
945
  var index = 0;
@@ -948,8 +948,8 @@ function sanitize_0($this, _this__u8e3s4) {
948
948
  var item = _iterator__ex2g4s.v();
949
949
  var _unary__edvuaz = index;
950
950
  index = _unary__edvuaz + 1 | 0;
951
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.er(item) : item;
952
- destination.x(tmp$ret$0);
951
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.pu(item) : item;
952
+ destination.y(tmp$ret$0);
953
953
  }
954
954
  // Inline function 'kotlin.text.filter' call
955
955
  var tmp0 = joinToString(destination, '');
@@ -996,7 +996,7 @@ function sanitizeFirstIsDigit_0($this, _this__u8e3s4) {
996
996
  return tmp;
997
997
  }
998
998
  function sanitizeKeywords_0($this, _this__u8e3s4) {
999
- return Companion_getInstance_1().p1y_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
999
+ return Companion_getInstance_1().e22_1.v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
1000
1000
  }
1001
1001
  function sanitizeSymbol($this, _this__u8e3s4) {
1002
1002
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -1009,8 +1009,8 @@ function sanitizeSymbol($this, _this__u8e3s4) {
1009
1009
  var item = _iterator__ex2g4s.v();
1010
1010
  var _unary__edvuaz = index;
1011
1011
  index = _unary__edvuaz + 1 | 0;
1012
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.er(item) : item;
1013
- destination.x(tmp$ret$0);
1012
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.pu(item) : item;
1013
+ destination.y(tmp$ret$0);
1014
1014
  }
1015
1015
  // Inline function 'kotlin.text.filter' call
1016
1016
  var tmp0 = joinToString(destination, '');
@@ -1069,7 +1069,7 @@ function sanitizeEnum_0($this, _this__u8e3s4) {
1069
1069
  }
1070
1070
  function Companion_0() {
1071
1071
  Companion_instance_3 = this;
1072
- this.p1y_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
1072
+ this.e22_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
1073
1073
  }
1074
1074
  var Companion_instance_3;
1075
1075
  function Companion_getInstance_1() {
@@ -1082,13 +1082,13 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1082
1082
  }
1083
1083
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
1084
1084
  return function (name) {
1085
- var sanitized = name.l1h_1.a1() > 1 ? name.q1m() : sanitizeSymbol(this$0, name.j1j());
1085
+ var sanitized = name.a1l_1.b1() > 1 ? name.f1q() : sanitizeSymbol(this$0, name.y1m());
1086
1086
  return new Name(listOf(sanitized));
1087
1087
  };
1088
1088
  }
1089
1089
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
1090
1090
  return function (name) {
1091
- return new Name(listOf(sanitizeSymbol(this$0, name.q1m())));
1091
+ return new Name(listOf(sanitizeSymbol(this$0, name.f1q())));
1092
1092
  };
1093
1093
  }
1094
1094
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
@@ -1101,29 +1101,29 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1101
1101
  var tmp;
1102
1102
  var tmp_0;
1103
1103
  if (stmt instanceof FunctionCall) {
1104
- tmp_0 = stmt.a1n_1.j1j() === 'validate';
1104
+ tmp_0 = stmt.p1q_1.y1m() === 'validate';
1105
1105
  } else {
1106
1106
  tmp_0 = false;
1107
1107
  }
1108
1108
  if (tmp_0) {
1109
- tmp = transformChildren(stmt.e1n(VOID, emptyList()), tr);
1109
+ tmp = transformChildren(stmt.t1q(VOID, emptyList()), tr);
1110
1110
  } else {
1111
1111
  if (stmt instanceof ConstructorStatement) {
1112
- var tmp_1 = tr.y1u(stmt.s1n_1);
1112
+ var tmp_1 = tr.n1y(stmt.h1r_1);
1113
1113
  // Inline function 'kotlin.collections.map' call
1114
- var this_0 = stmt.t1n_1;
1114
+ var this_0 = stmt.i1r_1;
1115
1115
  // Inline function 'kotlin.collections.mapTo' call
1116
- var destination = ArrayList_init_$Create$(this_0.a1());
1116
+ var destination = ArrayList_init_$Create$(this_0.b1());
1117
1117
  // Inline function 'kotlin.collections.iterator' call
1118
- var _iterator__ex2g4s = this_0.j1().t();
1118
+ var _iterator__ex2g4s = this_0.k1().t();
1119
1119
  while (_iterator__ex2g4s.u()) {
1120
1120
  var item = _iterator__ex2g4s.v();
1121
1121
  // Inline function 'kotlin.collections.component1' call
1122
- var name = item.k1();
1122
+ var name = item.l1();
1123
1123
  // Inline function 'kotlin.collections.component2' call
1124
- var expr = item.l1();
1125
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.b1v(expr));
1126
- destination.x(tmp$ret$3);
1124
+ var expr = item.m1();
1125
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.q1y(expr));
1126
+ destination.y(tmp$ret$3);
1127
1127
  }
1128
1128
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
1129
1129
  } else {
@@ -1135,7 +1135,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1135
1135
  }
1136
1136
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1137
1137
  return function () {
1138
- var tmp = Companion_getInstance_1().p1y_1;
1138
+ var tmp = Companion_getInstance_1().e22_1;
1139
1139
  var tmp_0 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1140
1140
  var tmp_1 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
1141
1141
  var tmp_2 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -1149,7 +1149,7 @@ function KotlinIrEmitter$_get_sanitizationConfig_$ref_tnafwf() {
1149
1149
  };
1150
1150
  }
1151
1151
  function KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda(name) {
1152
- return new Name(listOf(name.j1j()));
1152
+ return new Name(listOf(name.y1m()));
1153
1153
  }
1154
1154
  function KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0) {
1155
1155
  return function (it) {
@@ -1160,7 +1160,7 @@ function KotlinIrEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
1160
1160
  return function () {
1161
1161
  var tmp = _get_sanitizationConfig__sns434(this$0);
1162
1162
  var tmp_0 = KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda;
1163
- return tmp.t1w(VOID, VOID, tmp_0, VOID, KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0));
1163
+ return tmp.i20(VOID, VOID, tmp_0, VOID, KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0));
1164
1164
  };
1165
1165
  }
1166
1166
  function KotlinIrEmitter$_get_modelSanitizationConfig_$ref_iulb4s() {
@@ -1172,22 +1172,22 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
1172
1172
  var tmp;
1173
1173
  if (element instanceof File) {
1174
1174
  // Inline function 'kotlin.collections.partition' call
1175
- var this_0 = element.w1n_1;
1175
+ var this_0 = element.l1r_1;
1176
1176
  var first = ArrayList_init_$Create$_0();
1177
1177
  var second = ArrayList_init_$Create$_0();
1178
1178
  var _iterator__ex2g4s = this_0.t();
1179
1179
  while (_iterator__ex2g4s.u()) {
1180
1180
  var element_0 = _iterator__ex2g4s.v();
1181
1181
  if (element_0 instanceof Package) {
1182
- first.x(element_0);
1182
+ first.y(element_0);
1183
1183
  } else {
1184
- second.x(element_0);
1184
+ second.y(element_0);
1185
1185
  }
1186
1186
  }
1187
1187
  var _destruct__k2r9zo = new Pair(first, second);
1188
- var packageElements = _destruct__k2r9zo.ve();
1189
- var rest = _destruct__k2r9zo.we();
1190
- tmp = element.z1n(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1188
+ var packageElements = _destruct__k2r9zo.mf();
1189
+ var rest = _destruct__k2r9zo.nf();
1190
+ tmp = element.o1r(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1191
1191
  } else {
1192
1192
  tmp = element;
1193
1193
  }
@@ -1198,11 +1198,11 @@ function KotlinIrEmitter$emitShared$lambda_0($clientServer) {
1198
1198
  return function (element, transformer) {
1199
1199
  var tmp;
1200
1200
  if (element instanceof Namespace) {
1201
- var injected = element.b1o_1.equals(Companion_getInstance().n1h('Wirespec')) ? $clientServer : emptyList();
1201
+ var injected = element.q1r_1.equals(Companion_getInstance().c1l('Wirespec')) ? $clientServer : emptyList();
1202
1202
  var tmp_0;
1203
1203
  // Inline function 'kotlin.collections.isNotEmpty' call
1204
1204
  if (!injected.r()) {
1205
- tmp_0 = withElements(element, plus_2(element.x1n(), injected));
1205
+ tmp_0 = withElements(element, plus_2(element.m1r(), injected));
1206
1206
  } else {
1207
1207
  tmp_0 = element;
1208
1208
  }
@@ -1227,7 +1227,7 @@ function KotlinIrEmitter$emitGenerator$lambda_1(it) {
1227
1227
  }
1228
1228
  function KotlinIrEmitter$emitGenerator$lambda_2(this$0) {
1229
1229
  return function (it) {
1230
- return import_0(this$0.u1w().ds_1 + '.model', it);
1230
+ return import_0(this$0.j20().ov_1 + '.model', it);
1231
1231
  };
1232
1232
  }
1233
1233
  function KotlinIrEmitter$emit$lambda(this$0) {
@@ -1237,29 +1237,29 @@ function KotlinIrEmitter$emit$lambda(this$0) {
1237
1237
  }
1238
1238
  function KotlinIrEmitter(packageName, emitShared) {
1239
1239
  Companion_getInstance_1();
1240
- packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
1241
- emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
1242
- this.i1y_1 = packageName;
1243
- this.j1y_1 = emitShared;
1244
- this.k1y_1 = KotlinGenerator_instance;
1245
- this.l1y_1 = FileExtension_Kotlin_getInstance();
1246
- this.m1y_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
1240
+ packageName = packageName === VOID ? Companion_instance.nv('community.flock.wirespec.generated') : packageName;
1241
+ emitShared = emitShared === VOID ? Companion_instance_0.hs() : emitShared;
1242
+ this.x21_1 = packageName;
1243
+ this.y21_1 = emitShared;
1244
+ this.z21_1 = KotlinGenerator_instance;
1245
+ this.a22_1 = FileExtension_Kotlin_getInstance();
1246
+ this.b22_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
1247
1247
  var tmp = this;
1248
- tmp.n1y_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1248
+ tmp.c22_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1249
1249
  var tmp_0 = this;
1250
- tmp_0.o1y_1 = lazy(KotlinIrEmitter$modelSanitizationConfig$delegate$lambda(this));
1250
+ tmp_0.d22_1 = lazy(KotlinIrEmitter$modelSanitizationConfig$delegate$lambda(this));
1251
1251
  }
1252
- protoOf(KotlinIrEmitter).u1w = function () {
1253
- return this.i1y_1;
1252
+ protoOf(KotlinIrEmitter).j20 = function () {
1253
+ return this.x21_1;
1254
1254
  };
1255
- protoOf(KotlinIrEmitter).t1v = function () {
1256
- return this.k1y_1;
1255
+ protoOf(KotlinIrEmitter).i1z = function () {
1256
+ return this.z21_1;
1257
1257
  };
1258
- protoOf(KotlinIrEmitter).uq = function () {
1259
- return this.l1y_1;
1258
+ protoOf(KotlinIrEmitter).fu = function () {
1259
+ return this.a22_1;
1260
1260
  };
1261
- protoOf(KotlinIrEmitter).x1v = function () {
1262
- var packageName = Companion_instance.cs('community.flock.wirespec.kotlin');
1261
+ protoOf(KotlinIrEmitter).m1z = function () {
1262
+ var packageName = Companion_instance.nv('community.flock.wirespec.kotlin');
1263
1263
  var clientServer = convertClientServer(packageName);
1264
1264
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1265
1265
  var this_0 = convert(packageName);
@@ -1267,48 +1267,48 @@ protoOf(KotlinIrEmitter).x1v = function () {
1267
1267
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1268
1268
  var tmp = scope;
1269
1269
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1270
- var this_1 = scope.g1v_1;
1270
+ var this_1 = scope.v1y_1;
1271
1271
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1272
1272
  // Inline function 'kotlin.apply' call
1273
1273
  var this_2 = new TransformerBuilder();
1274
- this_2.x1i(KotlinIrEmitter$emitShared$lambda);
1275
- var tmp$ret$2 = this_2.y1i();
1276
- tmp.g1v_1 = transform(this_1, tmp$ret$2);
1274
+ this_2.m1m(KotlinIrEmitter$emitShared$lambda);
1275
+ var tmp$ret$2 = this_2.n1m();
1276
+ tmp.v1y_1 = transform(this_1, tmp$ret$2);
1277
1277
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1278
1278
  var tmp_0 = scope;
1279
1279
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1280
1280
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1281
- var this_3 = scope.g1v_1;
1281
+ var this_3 = scope.v1y_1;
1282
1282
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1283
1283
  // Inline function 'kotlin.apply' call
1284
1284
  var this_4 = new TransformerBuilder();
1285
- this_4.x1i(KotlinIrEmitter$emitShared$lambda_0(clientServer));
1286
- var tmp$ret$7 = this_4.y1i();
1287
- tmp_0.g1v_1 = transform(this_3, tmp$ret$7);
1288
- var tmp_1 = scope.g1v_1;
1285
+ this_4.m1m(KotlinIrEmitter$emitShared$lambda_0(clientServer));
1286
+ var tmp$ret$7 = this_4.n1m();
1287
+ tmp_0.v1y_1 = transform(this_3, tmp$ret$7);
1288
+ var tmp_1 = scope.v1y_1;
1289
1289
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1290
1290
  var tmp_2;
1291
- if (this.j1y_1.xo_1) {
1291
+ if (this.y21_1.is_1) {
1292
1292
  tmp_2 = wirespecShared;
1293
1293
  } else {
1294
1294
  tmp_2 = null;
1295
1295
  }
1296
1296
  return tmp_2;
1297
1297
  };
1298
- protoOf(KotlinIrEmitter).lr = function (definition, module_0, logger) {
1298
+ protoOf(KotlinIrEmitter).wu = function (definition, module_0, logger) {
1299
1299
  var file = emit_0.call(this, definition, module_0, logger);
1300
1300
  // Inline function 'kotlin.takeIf' call
1301
- var this_0 = this.m1y_1;
1301
+ var this_0 = this.b22_1;
1302
1302
  var tmp;
1303
- if (Companion_instance_1.hr(module_0)) {
1303
+ if (Companion_instance_1.su(module_0)) {
1304
1304
  tmp = this_0;
1305
1305
  } else {
1306
1306
  tmp = null;
1307
1307
  }
1308
1308
  var tmp$ret$1 = tmp;
1309
- return placeInPackage(prependImports(file, tmp$ret$1), this.u1w(), definition);
1309
+ return placeInPackage(prependImports(file, tmp$ret$1), this.j20(), definition);
1310
1310
  };
1311
- protoOf(KotlinIrEmitter).c1w = function (definition, module_0) {
1311
+ protoOf(KotlinIrEmitter).r1z = function (definition, module_0) {
1312
1312
  var tmp;
1313
1313
  if (definition instanceof Type) {
1314
1314
  tmp = convertToGenerator_2(definition, module_0);
@@ -1329,60 +1329,60 @@ protoOf(KotlinIrEmitter).c1w = function (definition, module_0) {
1329
1329
  }
1330
1330
  var generatorFile = tmp;
1331
1331
  var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
1332
- var generatorOwnName = definition.mr().l1() + 'Generator';
1332
+ var generatorOwnName = definition.xu().m1() + 'Generator';
1333
1333
  var tmp_0 = asSequence_0(collectCustomTypeNames(sanitized));
1334
1334
  var tmp_1 = filterNot(tmp_0, KotlinIrEmitter$emitGenerator$lambda);
1335
1335
  var tmp_2 = filterNot(tmp_1, KotlinIrEmitter$emitGenerator$lambda_0(generatorOwnName));
1336
1336
  var tmp_3 = distinct_0(map(tmp_2, KotlinIrEmitter$emitGenerator$lambda_1));
1337
1337
  var modelImports = toList(map(tmp_3, KotlinIrEmitter$emitGenerator$lambda_2(this)));
1338
- return placeInPackage_0(prependImports(sanitized, plus_2(this.m1y_1, modelImports)), this.u1w(), 'generator');
1338
+ return placeInPackage_0(prependImports(sanitized, plus_2(this.b22_1, modelImports)), this.j20(), 'generator');
1339
1339
  };
1340
- protoOf(KotlinIrEmitter).kq = function (type, module_0) {
1340
+ protoOf(KotlinIrEmitter).vt = function (type, module_0) {
1341
1341
  return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)));
1342
1342
  };
1343
- protoOf(KotlinIrEmitter).zr = function (enum_0, module_0) {
1343
+ protoOf(KotlinIrEmitter).kv = function (enum_0, module_0) {
1344
1344
  var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1345
1345
  return injectEnumLabelField(tmp, KotlinIrEmitter$emit$lambda(this));
1346
1346
  };
1347
- protoOf(KotlinIrEmitter).pr = function (union) {
1347
+ protoOf(KotlinIrEmitter).av = function (union) {
1348
1348
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1349
1349
  };
1350
- protoOf(KotlinIrEmitter).ur = function (refined) {
1350
+ protoOf(KotlinIrEmitter).fv = function (refined) {
1351
1351
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
1352
1352
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1353
1353
  // Inline function 'kotlin.collections.filterIsInstance' call
1354
- var tmp0 = file.x1n();
1354
+ var tmp0 = file.m1r();
1355
1355
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1356
1356
  var destination = ArrayList_init_$Create$_0();
1357
1357
  var _iterator__ex2g4s = tmp0.t();
1358
1358
  while (_iterator__ex2g4s.u()) {
1359
1359
  var element = _iterator__ex2g4s.v();
1360
1360
  if (element instanceof Struct) {
1361
- destination.x(element);
1361
+ destination.y(element);
1362
1362
  }
1363
1363
  }
1364
1364
  var tmp0_safe_receiver = firstOrNull_0(destination);
1365
1365
  var updatedStruct = tmp0_safe_receiver == null ? null : markMembersAsOverride(tmp0_safe_receiver);
1366
- return new File(Companion_getInstance().n1h(sanitize_0(this, refined.sr_1)), listOfNotNull_0(updatedStruct));
1366
+ return new File(Companion_getInstance().c1l(sanitize_0(this, refined.dv_1)), listOfNotNull_0(updatedStruct));
1367
1367
  };
1368
- protoOf(KotlinIrEmitter).as = function (endpoint) {
1369
- var imports = buildModelImports(endpoint, this.u1w());
1368
+ protoOf(KotlinIrEmitter).lv = function (endpoint) {
1369
+ var imports = buildModelImports(endpoint, this.j20());
1370
1370
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1371
1371
  // Inline function 'kotlin.collections.filterIsInstance' call
1372
- var tmp0 = convert_3(endpoint).x1n();
1372
+ var tmp0 = convert_3(endpoint).m1r();
1373
1373
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1374
1374
  var destination = ArrayList_init_$Create$_0();
1375
1375
  var _iterator__ex2g4s = tmp0.t();
1376
1376
  while (_iterator__ex2g4s.u()) {
1377
1377
  var element = _iterator__ex2g4s.v();
1378
1378
  if (element instanceof Namespace) {
1379
- destination.x(element);
1379
+ destination.y(element);
1380
1380
  }
1381
1381
  }
1382
1382
  var tmp$ret$2 = firstOrNull_0(destination);
1383
1383
  var endpointNamespace = ensureNotNull(tmp$ret$2);
1384
1384
  var body = injectApiAlias(injectCompanionObject(endpointNamespace, endpoint));
1385
- var tmp = sanitizeNames(new File(Companion_getInstance().n1h(sanitize_0(this, endpoint.up_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
1385
+ var tmp = sanitizeNames(new File(Companion_getInstance().c1l(sanitize_0(this, endpoint.ft_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
1386
1386
  // Inline function 'kotlin.takeIf' call
1387
1387
  var tmp_0;
1388
1388
  // Inline function 'kotlin.collections.isNotEmpty' call
@@ -1394,10 +1394,10 @@ protoOf(KotlinIrEmitter).as = function (endpoint) {
1394
1394
  var tmp$ret$5 = tmp_0;
1395
1395
  return prependImports(tmp, tmp$ret$5);
1396
1396
  };
1397
- protoOf(KotlinIrEmitter).or = function (channel) {
1397
+ protoOf(KotlinIrEmitter).zu = function (channel) {
1398
1398
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1399
1399
  // Inline function 'kotlin.takeIf' call
1400
- var this_0 = buildModelImports(channel, this.u1w());
1400
+ var this_0 = buildModelImports(channel, this.j20());
1401
1401
  var tmp_0;
1402
1402
  // Inline function 'kotlin.collections.isNotEmpty' call
1403
1403
  if (!this_0.r()) {
@@ -1408,25 +1408,25 @@ protoOf(KotlinIrEmitter).or = function (channel) {
1408
1408
  var tmp$ret$2 = tmp_0;
1409
1409
  return prependImports(tmp, tmp$ret$2);
1410
1410
  };
1411
- protoOf(KotlinIrEmitter).b1w = function (endpoint) {
1412
- var imports = buildModelImports(endpoint, this.u1w());
1413
- var endpointImport = import_0(this.u1w().ds_1 + '.endpoint', endpoint.up_1.l1());
1411
+ protoOf(KotlinIrEmitter).q1z = function (endpoint) {
1412
+ var imports = buildModelImports(endpoint, this.j20());
1413
+ var endpointImport = import_0(this.j20().ov_1 + '.endpoint', endpoint.ft_1.m1());
1414
1414
  var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
1415
- var subPackageName = plus_0(this.u1w(), 'client');
1416
- var tmp = Companion_getInstance().n1h(subPackageName.fs() + file.v1n_1.o1h());
1415
+ var subPackageName = plus_0(this.j20(), 'client');
1416
+ var tmp = Companion_getInstance().c1l(subPackageName.qv() + file.k1r_1.d1l());
1417
1417
  // Inline function 'kotlin.collections.buildList' call
1418
1418
  // Inline function 'kotlin.collections.buildListInternal' call
1419
1419
  // Inline function 'kotlin.apply' call
1420
1420
  var this_0 = ArrayList_init_$Create$_0();
1421
- this_0.x(new Package(subPackageName.ds_1));
1422
- this_0.f1(this.m1y_1);
1423
- this_0.f1(imports);
1424
- this_0.x(endpointImport);
1425
- this_0.f1(file.w1n_1);
1426
- var tmp$ret$3 = this_0.o5();
1421
+ this_0.y(new Package(subPackageName.ov_1));
1422
+ this_0.g1(this.b22_1);
1423
+ this_0.g1(imports);
1424
+ this_0.y(endpointImport);
1425
+ this_0.g1(file.l1r_1);
1426
+ var tmp$ret$3 = this_0.p5();
1427
1427
  return new File(tmp, tmp$ret$3);
1428
1428
  };
1429
- protoOf(KotlinIrEmitter).y1v = function (endpoints, logger) {
1429
+ protoOf(KotlinIrEmitter).n1z = function (endpoints, logger) {
1430
1430
  // Inline function 'kotlin.collections.flatMap' call
1431
1431
  // Inline function 'kotlin.collections.flatMapTo' call
1432
1432
  var destination = ArrayList_init_$Create$_0();
@@ -1442,9 +1442,9 @@ protoOf(KotlinIrEmitter).y1v = function (endpoints, logger) {
1442
1442
  var _iterator__ex2g4s_0 = destination.t();
1443
1443
  while (_iterator__ex2g4s_0.u()) {
1444
1444
  var e = _iterator__ex2g4s_0.v();
1445
- var key = e.bv_1;
1446
- if (set.x(key)) {
1447
- list_0.x(e);
1445
+ var key = e.my_1;
1446
+ if (set.y(key)) {
1447
+ list_0.y(e);
1448
1448
  }
1449
1449
  }
1450
1450
  // Inline function 'kotlin.collections.map' call
@@ -1453,8 +1453,8 @@ protoOf(KotlinIrEmitter).y1v = function (endpoints, logger) {
1453
1453
  var _iterator__ex2g4s_1 = list_0.t();
1454
1454
  while (_iterator__ex2g4s_1.u()) {
1455
1455
  var item = _iterator__ex2g4s_1.v();
1456
- var tmp$ret$5 = import_0(this.u1w().ds_1 + '.model', item.bv_1);
1457
- destination_0.x(tmp$ret$5);
1456
+ var tmp$ret$5 = import_0(this.j20().ov_1 + '.model', item.my_1);
1457
+ destination_0.y(tmp$ret$5);
1458
1458
  }
1459
1459
  var imports = destination_0;
1460
1460
  // Inline function 'kotlin.collections.map' call
@@ -1463,8 +1463,8 @@ protoOf(KotlinIrEmitter).y1v = function (endpoints, logger) {
1463
1463
  var _iterator__ex2g4s_2 = endpoints.t();
1464
1464
  while (_iterator__ex2g4s_2.u()) {
1465
1465
  var item_0 = _iterator__ex2g4s_2.v();
1466
- var tmp$ret$8 = import_0(this.u1w().ds_1 + '.endpoint', item_0.up_1.l1());
1467
- destination_1.x(tmp$ret$8);
1466
+ var tmp$ret$8 = import_0(this.j20().ov_1 + '.endpoint', item_0.ft_1.m1());
1467
+ destination_1.y(tmp$ret$8);
1468
1468
  }
1469
1469
  var endpointImports = destination_1;
1470
1470
  // Inline function 'kotlin.collections.map' call
@@ -1473,22 +1473,22 @@ protoOf(KotlinIrEmitter).y1v = function (endpoints, logger) {
1473
1473
  var _iterator__ex2g4s_3 = endpoints.t();
1474
1474
  while (_iterator__ex2g4s_3.u()) {
1475
1475
  var item_1 = _iterator__ex2g4s_3.v();
1476
- var tmp$ret$11 = import_0(this.u1w().ds_1 + '.client', item_1.up_1.l1() + 'Client');
1477
- destination_2.x(tmp$ret$11);
1476
+ var tmp$ret$11 = import_0(this.j20().ov_1 + '.client', item_1.ft_1.m1() + 'Client');
1477
+ destination_2.y(tmp$ret$11);
1478
1478
  }
1479
1479
  var clientImports = destination_2;
1480
1480
  var allImports = plus_2(plus_2(imports, endpointImports), clientImports);
1481
1481
  var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
1482
- var tmp = Companion_getInstance().n1h(this.u1w().fs() + file.v1n_1.o1h());
1482
+ var tmp = Companion_getInstance().c1l(this.j20().qv() + file.k1r_1.d1l());
1483
1483
  // Inline function 'kotlin.collections.buildList' call
1484
1484
  // Inline function 'kotlin.collections.buildListInternal' call
1485
1485
  // Inline function 'kotlin.apply' call
1486
1486
  var this_0 = ArrayList_init_$Create$_0();
1487
- this_0.x(new Package(this.u1w().ds_1));
1488
- this_0.f1(this.m1y_1);
1489
- this_0.f1(allImports);
1490
- this_0.f1(file.w1n_1);
1491
- var tmp$ret$17 = this_0.o5();
1487
+ this_0.y(new Package(this.j20().ov_1));
1488
+ this_0.g1(this.b22_1);
1489
+ this_0.g1(allImports);
1490
+ this_0.g1(file.l1r_1);
1491
+ var tmp$ret$17 = this_0.p5();
1492
1492
  return new File(tmp, tmp$ret$17);
1493
1493
  };
1494
1494
  function buildModelImports(_this__u8e3s4, packageName) {
@@ -1499,9 +1499,9 @@ function buildModelImports(_this__u8e3s4, packageName) {
1499
1499
  var _iterator__ex2g4s = this_0.t();
1500
1500
  while (_iterator__ex2g4s.u()) {
1501
1501
  var e = _iterator__ex2g4s.v();
1502
- var key = e.bv_1;
1503
- if (set.x(key)) {
1504
- list.x(e);
1502
+ var key = e.my_1;
1503
+ if (set.y(key)) {
1504
+ list.y(e);
1505
1505
  }
1506
1506
  }
1507
1507
  // Inline function 'kotlin.collections.map' call
@@ -1510,8 +1510,8 @@ function buildModelImports(_this__u8e3s4, packageName) {
1510
1510
  var _iterator__ex2g4s_0 = list.t();
1511
1511
  while (_iterator__ex2g4s_0.u()) {
1512
1512
  var item = _iterator__ex2g4s_0.v();
1513
- var tmp$ret$2 = import_0(packageName.ds_1 + '.model', Companion_getInstance().n1h(item.bv_1).o1h());
1514
- destination.x(tmp$ret$2);
1513
+ var tmp$ret$2 = import_0(packageName.ov_1 + '.model', Companion_getInstance().c1l(item.my_1).d1l());
1514
+ destination.y(tmp$ret$2);
1515
1515
  }
1516
1516
  return destination;
1517
1517
  }
@@ -1522,14 +1522,14 @@ function injectApiAlias(_this__u8e3s4) {
1522
1522
  var tmp = scope;
1523
1523
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1524
1524
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1525
- var this_0 = scope.g1v_1;
1525
+ var this_0 = scope.v1y_1;
1526
1526
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1527
1527
  // Inline function 'kotlin.apply' call
1528
1528
  var this_1 = new TransformerBuilder();
1529
- this_1.x1i(injectApiAlias$lambda);
1530
- var tmp$ret$2 = this_1.y1i();
1531
- tmp.g1v_1 = transform(this_0, tmp$ret$2);
1532
- var tmp_0 = scope.g1v_1;
1529
+ this_1.m1m(injectApiAlias$lambda);
1530
+ var tmp$ret$2 = this_1.n1m();
1531
+ tmp.v1y_1 = transform(this_0, tmp$ret$2);
1532
+ var tmp_0 = scope.v1y_1;
1533
1533
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1534
1534
  }
1535
1535
  function injectCompanionObject(_this__u8e3s4, endpoint) {
@@ -1539,20 +1539,20 @@ function injectCompanionObject(_this__u8e3s4, endpoint) {
1539
1539
  var tmp = scope;
1540
1540
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1541
1541
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1542
- var this_0 = scope.g1v_1;
1542
+ var this_0 = scope.v1y_1;
1543
1543
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1544
1544
  // Inline function 'kotlin.apply' call
1545
1545
  var this_1 = new TransformerBuilder();
1546
- this_1.x1i(injectCompanionObject$lambda(endpoint));
1547
- var tmp$ret$2 = this_1.y1i();
1548
- tmp.g1v_1 = transform(this_0, tmp$ret$2);
1549
- var tmp_0 = scope.g1v_1;
1546
+ this_1.m1m(injectCompanionObject$lambda(endpoint));
1547
+ var tmp$ret$2 = this_1.n1m();
1548
+ tmp.v1y_1 = transform(this_0, tmp$ret$2);
1549
+ var tmp_0 = scope.v1y_1;
1550
1550
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1551
1551
  }
1552
1552
  function buildCompanionObject(endpoint) {
1553
- var pathTemplate = '/' + joinToString(endpoint.wp_1, '/', VOID, VOID, VOID, VOID, buildCompanionObject$lambda);
1553
+ var pathTemplate = '/' + joinToString(endpoint.ht_1, '/', VOID, VOID, VOID, VOID, buildCompanionObject$lambda);
1554
1554
  // Inline function 'kotlin.let' call
1555
- var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.vp_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
1555
+ var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.gt_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
1556
1556
  return raw(p0);
1557
1557
  }
1558
1558
  function injectApiAlias$lambda(element, transformer) {
@@ -1562,7 +1562,7 @@ function injectApiAlias$lambda(element, transformer) {
1562
1562
  var tmp_0;
1563
1563
  // Inline function 'kotlin.collections.isNotEmpty' call
1564
1564
  if (!injected.r()) {
1565
- tmp_0 = withElements(element, plus_2(element.x1n(), injected));
1565
+ tmp_0 = withElements(element, plus_2(element.m1r(), injected));
1566
1566
  } else {
1567
1567
  tmp_0 = element;
1568
1568
  }
@@ -1577,11 +1577,11 @@ function injectCompanionObject$lambda($endpoint) {
1577
1577
  return function (element, transformer) {
1578
1578
  var tmp;
1579
1579
  if (element instanceof Interface) {
1580
- var injected = element.p1o_1.equals(Companion_getInstance().n1h('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1580
+ var injected = element.e1s_1.equals(Companion_getInstance().c1l('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1581
1581
  var tmp_0;
1582
1582
  // Inline function 'kotlin.collections.isNotEmpty' call
1583
1583
  if (!injected.r()) {
1584
- tmp_0 = withElements(element, plus_2(element.x1n(), injected));
1584
+ tmp_0 = withElements(element, plus_2(element.m1r(), injected));
1585
1585
  } else {
1586
1586
  tmp_0 = element;
1587
1587
  }
@@ -1596,10 +1596,10 @@ function injectCompanionObject$lambda($endpoint) {
1596
1596
  function buildCompanionObject$lambda(it) {
1597
1597
  var tmp;
1598
1598
  if (it instanceof Literal) {
1599
- tmp = it.xq_1;
1599
+ tmp = it.iu_1;
1600
1600
  } else {
1601
1601
  if (it instanceof Param) {
1602
- tmp = '{' + it.bq_1.l1() + '}';
1602
+ tmp = '{' + it.mt_1.m1() + '}';
1603
1603
  } else {
1604
1604
  noWhenBranchMatchedException();
1605
1605
  }
@@ -1610,8 +1610,8 @@ function KotlinRefinedTypeDefinitionEmitter() {
1610
1610
  }
1611
1611
  function KotlinShared() {
1612
1612
  KotlinShared_instance = this;
1613
- this.b1y_1 = 'community.flock.wirespec.kotlin';
1614
- this.c1y_1 = trimMargin('\n |package ' + this.b1y_1 + '\n |\n |import kotlin.reflect.KType\n |\n |object Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { val label: String }\n |' + Spacer_instance.toString() + 'interface Endpoint\n |' + Spacer_instance.toString() + 'interface Refined<T> {\n |' + Spacer_instance.hs(2) + 'val value: T\n |' + Spacer_instance.hs(2) + 'fun validate(): Boolean\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Path\n |' + Spacer_instance.toString() + 'interface Queries\n |' + Spacer_instance.toString() + 'interface Headers\n |' + Spacer_instance.toString() + 'interface Handler\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.toString() + 'fun from(request: RawRequest): Req \n |' + Spacer_instance.toString() + 'fun to(response: Res): RawResponse\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.hs(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.hs(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.hs(2) + 'val pathTemplate: String\n |' + Spacer_instance.hs(2) + 'val method: String\n |' + Spacer_instance.hs(2) + 'fun client(serialization: Serialization): ClientEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.hs(2) + 'val pathTemplate: String\n |' + Spacer_instance.hs(2) + 'val method: String\n |' + Spacer_instance.hs(2) + 'fun server(serialization: Serialization): ServerEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T : Any> { val path: Path; val method: Method; val queries: Queries; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Response<T : Any> { val status: Int; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Serialization : Serializer, Deserializer\n |' + Spacer_instance.toString() + 'interface Serializer : BodySerializer, PathSerializer, ParamSerializer\n |' + Spacer_instance.toString() + 'interface Deserializer : BodyDeserializer, PathDeserializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerialization : BodySerializer, BodyDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerializer { fun <T : Any> serializeBody(t: T, kType: KType): ByteArray }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { fun <T : Any> deserializeBody(raw: ByteArray, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface PathSerialization : PathSerializer, PathDeserializer\n |' + Spacer_instance.toString() + 'interface PathSerializer { fun <T : Any> serializePath(t: T, kType: KType): String }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { fun <T : Any> deserializePath(raw: String, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamSerialization : ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T : Any> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T : Any> deserializeParam(values: List<String>, kType: KType): T }\n |' + Spacer_instance.toString() + 'data class RawRequest(val method: String, val path: List<String>, val queries: Map<String, List<String>>, val headers: Map<String, List<String>>, val body: ByteArray?) \n |' + Spacer_instance.toString() + 'data class RawResponse(val statusCode: Int, val headers: Map<String, List<String>>, val body: ByteArray?)\n |}\n ');
1613
+ this.q21_1 = 'community.flock.wirespec.kotlin';
1614
+ this.r21_1 = trimMargin('\n |package ' + this.q21_1 + '\n |\n |import kotlin.reflect.KType\n |\n |object Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { val label: String }\n |' + Spacer_instance.toString() + 'interface Endpoint\n |' + Spacer_instance.toString() + 'interface Refined<T> {\n |' + Spacer_instance.sv(2) + 'val value: T\n |' + Spacer_instance.sv(2) + 'fun validate(): Boolean\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Path\n |' + Spacer_instance.toString() + 'interface Queries\n |' + Spacer_instance.toString() + 'interface Headers\n |' + Spacer_instance.toString() + 'interface Handler\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.toString() + 'fun from(request: RawRequest): Req \n |' + Spacer_instance.toString() + 'fun to(response: Res): RawResponse\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.sv(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.sv(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.sv(2) + 'val pathTemplate: String\n |' + Spacer_instance.sv(2) + 'val method: String\n |' + Spacer_instance.sv(2) + 'fun client(serialization: Serialization): ClientEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.sv(2) + 'val pathTemplate: String\n |' + Spacer_instance.sv(2) + 'val method: String\n |' + Spacer_instance.sv(2) + 'fun server(serialization: Serialization): ServerEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T : Any> { val path: Path; val method: Method; val queries: Queries; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Response<T : Any> { val status: Int; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Serialization : Serializer, Deserializer\n |' + Spacer_instance.toString() + 'interface Serializer : BodySerializer, PathSerializer, ParamSerializer\n |' + Spacer_instance.toString() + 'interface Deserializer : BodyDeserializer, PathDeserializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerialization : BodySerializer, BodyDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerializer { fun <T : Any> serializeBody(t: T, kType: KType): ByteArray }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { fun <T : Any> deserializeBody(raw: ByteArray, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface PathSerialization : PathSerializer, PathDeserializer\n |' + Spacer_instance.toString() + 'interface PathSerializer { fun <T : Any> serializePath(t: T, kType: KType): String }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { fun <T : Any> deserializePath(raw: String, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamSerialization : ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T : Any> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T : Any> deserializeParam(values: List<String>, kType: KType): T }\n |' + Spacer_instance.toString() + 'data class RawRequest(val method: String, val path: List<String>, val queries: Map<String, List<String>>, val headers: Map<String, List<String>>, val body: ByteArray?) \n |' + Spacer_instance.toString() + 'data class RawResponse(val statusCode: Int, val headers: Map<String, List<String>>, val body: ByteArray?)\n |}\n ');
1615
1615
  }
1616
1616
  protoOf(KotlinShared).toString = function () {
1617
1617
  return 'KotlinShared';
@@ -1634,12 +1634,12 @@ function KotlinShared_getInstance() {
1634
1634
  }
1635
1635
  function KotlinTypeDefinitionEmitter$emit$lambda(this$0) {
1636
1636
  return function (it) {
1637
- return this$0.nq(it);
1637
+ return this$0.yt(it);
1638
1638
  };
1639
1639
  }
1640
1640
  function KotlinTypeDefinitionEmitter$emit$lambda_0(this$0) {
1641
1641
  return function (it) {
1642
- return Spacer_instance.toString() + 'val ' + this$0.mq(it) + ',';
1642
+ return Spacer_instance.toString() + 'val ' + this$0.xt(it) + ',';
1643
1643
  };
1644
1644
  }
1645
1645
  function KotlinTypeDefinitionEmitter() {
@@ -1647,32 +1647,32 @@ function KotlinTypeDefinitionEmitter() {
1647
1647
  function KotlinUnionDefinitionEmitter() {
1648
1648
  }
1649
1649
  //region block: post-declaration
1650
- protoOf(KotlinEmitter).kq = emit_4;
1651
- protoOf(KotlinEmitter).lq = emit_5;
1652
- protoOf(KotlinEmitter).mq = emit_6;
1653
- protoOf(KotlinEmitter).nq = emit_7;
1654
- protoOf(KotlinEmitter).oq = emit_8;
1655
- protoOf(KotlinEmitter).zr = emit_13;
1656
- protoOf(KotlinEmitter).ur = emit_15;
1657
- protoOf(KotlinEmitter).as = emit_10;
1658
- protoOf(KotlinEmitter).pr = emit_14;
1659
- protoOf(KotlinEmitter).nr = emit_3;
1660
- protoOf(KotlinEmitter).or = emit_9;
1661
- protoOf(KotlinEmitter).h1x = emit_11;
1662
- protoOf(KotlinEmitter).i1x = emit_12;
1663
- protoOf(KotlinEmitter).bs = emitValidator;
1664
- protoOf(KotlinEmitter).u1x = sanitize;
1665
- protoOf(KotlinEmitter).j1x = sanitizeFirstIsDigit;
1666
- protoOf(KotlinEmitter).k1x = sanitizeKeywords;
1667
- protoOf(KotlinEmitter).l1x = emitHandleFunction;
1668
- protoOf(KotlinEmitter).d1y = emitRequestHeaders;
1669
- protoOf(KotlinEmitter).e1y = emitQueries;
1670
- protoOf(KotlinEmitter).f1y = emitBody;
1671
- protoOf(KotlinEmitter).g1y = emitHeaders;
1672
- protoOf(KotlinIrEmitter).v1v = get_extensions;
1673
- protoOf(KotlinIrEmitter).eo = emit_1;
1674
- protoOf(KotlinIrEmitter).w1v = emit_2;
1675
- protoOf(KotlinIrEmitter).a1w = beforeGenerate;
1650
+ protoOf(KotlinEmitter).vt = emit_4;
1651
+ protoOf(KotlinEmitter).wt = emit_5;
1652
+ protoOf(KotlinEmitter).xt = emit_6;
1653
+ protoOf(KotlinEmitter).yt = emit_7;
1654
+ protoOf(KotlinEmitter).zt = emit_8;
1655
+ protoOf(KotlinEmitter).kv = emit_10;
1656
+ protoOf(KotlinEmitter).fv = emit_15;
1657
+ protoOf(KotlinEmitter).lv = emit_12;
1658
+ protoOf(KotlinEmitter).av = emit_11;
1659
+ protoOf(KotlinEmitter).yu = emit_3;
1660
+ protoOf(KotlinEmitter).zu = emit_9;
1661
+ protoOf(KotlinEmitter).w20 = emit_13;
1662
+ protoOf(KotlinEmitter).x20 = emit_14;
1663
+ protoOf(KotlinEmitter).mv = emitValidator;
1664
+ protoOf(KotlinEmitter).j21 = sanitize;
1665
+ protoOf(KotlinEmitter).y20 = sanitizeFirstIsDigit;
1666
+ protoOf(KotlinEmitter).z20 = sanitizeKeywords;
1667
+ protoOf(KotlinEmitter).a21 = emitHandleFunction;
1668
+ protoOf(KotlinEmitter).s21 = emitRequestHeaders;
1669
+ protoOf(KotlinEmitter).t21 = emitQueries;
1670
+ protoOf(KotlinEmitter).u21 = emitBody;
1671
+ protoOf(KotlinEmitter).v21 = emitHeaders;
1672
+ protoOf(KotlinIrEmitter).k1z = get_extensions;
1673
+ protoOf(KotlinIrEmitter).pr = emit_1;
1674
+ protoOf(KotlinIrEmitter).l1z = emit_2;
1675
+ protoOf(KotlinIrEmitter).p1z = beforeGenerate;
1676
1676
  //endregion
1677
1677
  //region block: exports
1678
1678
  export {