@flock/wirespec 0.21.1 → 0.22.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 (66) hide show
  1. package/arrow-arrow-atomic.mjs +14 -14
  2. package/arrow-arrow-atomic.mjs.map +1 -1
  3. package/arrow-arrow-core.mjs +187 -182
  4. package/arrow-arrow-core.mjs.map +1 -1
  5. package/clikt-clikt-mordant.mjs +89 -89
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1704 -1706
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +465 -465
  10. package/colormath-root-colormath.mjs.map +1 -1
  11. package/kotlin-kotlin-stdlib.mjs +2644 -2481
  12. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  13. package/kotlin-openapi-bindings.mjs +10373 -10346
  14. package/kotlin-openapi-bindings.mjs.map +1 -1
  15. package/kotlin-rgxgen.mjs +1851 -1855
  16. package/kotlin-rgxgen.mjs.map +1 -1
  17. package/kotlinx-io-kotlinx-io-core.mjs +469 -469
  18. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  19. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2038 -2046
  20. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  21. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1859 -1813
  22. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  23. package/mordant-mordant.mjs +1452 -1447
  24. package/mordant-mordant.mjs.map +1 -1
  25. package/package.json +1 -1
  26. package/wirespec-src-compiler-core.mjs +25964 -3598
  27. package/wirespec-src-compiler-core.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-java.mjs +373 -469
  29. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-kotlin.mjs +327 -382
  31. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  32. package/wirespec-src-compiler-emitters-python.mjs +355 -354
  33. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  34. package/wirespec-src-compiler-emitters-rust.mjs +756 -754
  35. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  36. package/wirespec-src-compiler-emitters-scala.mjs +361 -361
  37. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  38. package/wirespec-src-compiler-emitters-typescript.mjs +484 -472
  39. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  40. package/wirespec-src-compiler-emitters-wirespec.mjs +434 -153
  41. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  42. package/wirespec-src-compiler-lib.mjs +978 -441
  43. package/wirespec-src-compiler-lib.mjs.map +1 -1
  44. package/wirespec-src-converter-asyncapi.mjs +5382 -0
  45. package/wirespec-src-converter-asyncapi.mjs.map +1 -0
  46. package/wirespec-src-converter-avro.mjs +1297 -725
  47. package/wirespec-src-converter-avro.mjs.map +1 -1
  48. package/wirespec-src-converter-common.mjs +267 -0
  49. package/wirespec-src-converter-common.mjs.map +1 -1
  50. package/wirespec-src-converter-graphql.mjs +5691 -0
  51. package/wirespec-src-converter-graphql.mjs.map +1 -0
  52. package/wirespec-src-converter-openapi.mjs +1304 -1225
  53. package/wirespec-src-converter-openapi.mjs.map +1 -1
  54. package/wirespec-src-ide-lsp.mjs +1728 -1642
  55. package/wirespec-src-ide-lsp.mjs.map +1 -1
  56. package/wirespec-src-plugin-arguments.mjs +301 -240
  57. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  58. package/wirespec-src-plugin-cli.mjs +161 -133
  59. package/wirespec-src-plugin-cli.mjs.map +1 -1
  60. package/wirespec-src-plugin-npm.d.mts +216 -29
  61. package/wirespec-src-plugin-npm.mjs +188 -95
  62. package/wirespec-src-plugin-npm.mjs.map +1 -1
  63. package/wirespec-src-tools-generator.mjs +61 -53
  64. package/wirespec-src-tools-generator.mjs.map +1 -1
  65. package/wirespec-src-compiler-ir.mjs +0 -18912
  66. package/wirespec-src-compiler-ir.mjs.map +0 -1
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  KProperty1ca4yb4wlo496 as KProperty1,
3
3
  getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
4
- StringBuilder_init_$Create$322n630qt3r8c as StringBuilder_init_$Create$,
4
+ StringBuilder_init_$Create$3ds9zx2kx9u4d as StringBuilder_init_$Create$,
5
5
  charSequenceLength3278n89t01tmv as charSequenceLength,
6
6
  charSequenceGet1vxk1y5n17t1z as charSequenceGet,
7
7
  isLetterOrDigit2kuxd9e198haf as isLetterOrDigit,
8
- _Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
9
- Unit_instance28fytmsmm6r23 as Unit_instance,
8
+ _Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
9
+ Unit_instancev9v8hjid95df as Unit_instance,
10
10
  charCodeAt1yspne1d8erbm as charCodeAt,
11
- toString3dhdjl9yf50de as toString,
11
+ toString22rbkbhdb5cl2 as toString,
12
12
  toString1pkumu07cwy4m as toString_0,
13
13
  substring3saq8ornu0luv as substring,
14
- Regex_init_$Create$9xrx4twz2i6q as Regex_init_$Create$,
15
- ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$,
14
+ Regex_init_$Create$17zqsmfd15n8x as Regex_init_$Create$,
15
+ ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$,
16
16
  first58ocm7j58k3q as first,
17
17
  noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
18
18
  protoOf180f3jzyo7rfj as protoOf,
@@ -23,11 +23,11 @@ import {
23
23
  collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
24
24
  mapCapacity1h45rc3eh9p2l as mapCapacity,
25
25
  coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
26
- LinkedHashMap_init_$Create$1s75e1k23v4xj as LinkedHashMap_init_$Create$,
26
+ LinkedHashMap_init_$Create$1gzy1x4a46gd4 as LinkedHashMap_init_$Create$,
27
27
  removePrefix279df90bhrqqg as removePrefix,
28
28
  initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
29
29
  listOfvhqybd2zx248 as listOf_0,
30
- ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$_0,
30
+ ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$_0,
31
31
  to2cs3ny02qtbcb as to,
32
32
  toMap1vec9topfei08 as toMap,
33
33
  VOID3gxj6tk5isa35 as VOID,
@@ -43,16 +43,16 @@ import {
43
43
  isInterface3d6p8outrmvmk as isInterface,
44
44
  lazy2hsh8ze7j6ikd as lazy,
45
45
  addAll1k27qatfgp3k5 as addAll,
46
- LinkedHashMap_init_$Create$3t495nfs82xn as LinkedHashMap_init_$Create$_0,
46
+ LinkedHashMap_init_$Create$2tibire69n089 as LinkedHashMap_init_$Create$_0,
47
47
  joinToString1cxrrlmo0chqs as joinToString,
48
48
  asSequence2phdjljfh9jhx as asSequence,
49
49
  filterNot56uwv8hfomaa as filterNot,
50
50
  mapsbvh18eqox7a as map,
51
51
  distinct17vua5ffe1cfv as distinct,
52
52
  toListx6x8nvfmvvht as toList,
53
- LinkedHashSet_init_$Create$2lru2gvxodydo as LinkedHashSet_init_$Create$,
53
+ LinkedHashSet_init_$Create$t7gzf3ihb6pk as LinkedHashSet_init_$Create$,
54
54
  distinct10qe1scfdvu5k as distinct_0,
55
- HashSet_init_$Create$33p49hmosnvr4 as HashSet_init_$Create$,
55
+ HashSet_init_$Create$2w31ptb4ree5i as HashSet_init_$Create$,
56
56
  toSet2orjxp16sotqu as toSet,
57
57
  trimMarginhyd3fsmh8iev as trimMargin,
58
58
  Collection1k04j3hzsbod0 as Collection,
@@ -63,101 +63,102 @@ import {
63
63
  trimEndvvzjdhan75g as trimEnd,
64
64
  } from './kotlin-kotlin-stdlib.mjs';
65
65
  import {
66
- Nameoqr8dt2fim9d as Name,
67
- TypeScriptGenerator_getInstance3w0ea8m4h2slw as TypeScriptGenerator_getInstance,
68
- transformChildren2mszeagj5nq4c as transformChildren,
69
- sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
70
- Assignment3kcxc8wlcbmkn as Assignment,
71
- ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
72
- VariableReference2vlynnhaw1i64 as VariableReference,
73
- SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
74
- RawElement2yts1x2rbem1g as RawElement,
75
- Companion_getInstance3gvtuyxc9uhxj as Companion_getInstance,
76
- Mainb4yvz4x0nrxd as Main,
77
- Enumlszg09mwd24f as Enum,
78
- Interface3pn84xq686t2r as Interface,
79
- Namespace345pal554qu3j as Namespace,
80
- Struct39wf79cwtn4ty as Struct,
81
- File3dimy4iqmuock as File,
82
- transformChildrend9p91tpcqdkx as transformChildren_0,
83
- StringLiteral3ffeojfhsbsmg as StringLiteral,
84
- Field354s1ceh5pvhf as Field,
85
- RawExpression2bo7ldfrptjia as RawExpression,
86
- FunctionCall30872kpnbr7op as FunctionCall,
87
- transformChildren3n5cjwmxlhwx9 as transformChildren_1,
88
- Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
89
- Custom2si7lto3wompr as Custom,
90
- String_instance3uxvo48ki208u as String_instance,
91
- Literal50s1y3607cdv as Literal,
92
- TransformScopeyrd3lf4zrk76 as TransformScope,
93
- TransformerBuildera6a1gvlhjj9b as TransformerBuilder,
94
- transform3eti8i2bqvifx as transform,
95
- Elementitq62jg6fid3 as Element,
96
- convertnty9x0e63d0u as convert,
97
- emit1oxjujel6f3jb as emit,
98
- emitn3eihixilqyh as emit_0,
99
- import5uhkz67bd8tt as import_0,
100
- convertToGenerator2wzjrmaavxhph as convertToGenerator,
101
- convertToGeneratorkggw47cqose7 as convertToGenerator_0,
102
- convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
103
- convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
104
- sanitizeNames2wqmyf8vafp9x as sanitizeNames,
105
- collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
106
- classifyValidatableFields11bv88x0ho39r as classifyValidatableFields,
107
- convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
108
- convert11ert2po54h1y as convert_0,
109
- convert37aabdzvtv9vg as convert_1,
110
- convert17zcptkz4mhr4 as convert_2,
111
- convertConstraintkgpvomct0x0s as convertConstraint,
112
- requestParameters1z8fdizgtviyb as requestParameters,
113
- convert32tuiui3czihh as convert_3,
114
- convert1cn4bolzoed8c as convert_4,
115
- convert3ewo9inue7gua as convert_5,
116
- get_extensions31c4or738wbxz as get_extensions,
117
- emit3bzdcd0f6nwtj as emit_1,
118
- beforeGenerate3o8idb3hey1b0 as beforeGenerate,
119
- IrEmitterh2m93ojzvkep as IrEmitter,
120
- rawttvqxl50flj9 as raw,
121
- Switch3a1zi3na98deu as Switch,
122
- Integer1uwg1wvo5lp6z as Integer,
123
- Case2i7oahw4alz6h as Case,
124
- FieldCall1iz7z2fx2xo4p as FieldCall,
125
- Parameteruqoxd4rzw7ga as Parameter,
126
- Function21cuq8qizkin7 as Function,
127
- ErrorStatement1fq19ynue37ia as ErrorStatement,
128
- BinaryOp35p72iprkxis9 as BinaryOp,
129
- } from './wirespec-src-compiler-ir.mjs';
130
- import {
66
+ Name1ijtblv1phm3y as Name,
131
67
  Paramvfwnys2w6aj1 as Param,
68
+ get_fields1vhfmr41isbcc as get_fields,
132
69
  Bytes3eoc50vgt1uem as Bytes,
133
70
  Boolean1fpfi8m5jt3fg as Boolean_0,
134
71
  Number1mui0heypwdhp as Number_0,
135
- Integer39lqx4uc63u28 as Integer_0,
72
+ Integer39lqx4uc63u28 as Integer,
136
73
  String1czvr8pxnm6on as String_0,
137
74
  Primitive1i8my14jkp3nk as Primitive,
138
- Custom1lu6o8txpimqz as Custom_0,
75
+ Custom1lu6o8txpimqz as Custom,
139
76
  Anyv7qdq63z63rc as Any,
140
77
  Unit2z95clvxm08vr as Unit,
141
78
  Iterable29qbzfup67wqp as Iterable,
142
79
  Dict3g7w5wia7rncj as Dict,
143
- FileExtension_TypeScript_getInstancebhrmnb4pwt10 as FileExtension_TypeScript_getInstance,
144
- Companion_instance1a2xqc448tlhh as Companion_instance,
80
+ TypeScriptGenerator_getInstancehiz60bwz5n7m as TypeScriptGenerator_getInstance,
81
+ transformChildren34heehtlmzzif as transformChildren,
82
+ sanitizeFieldName333wgwu6tt90n as sanitizeFieldName,
83
+ Assignment1el26yjkp72c6 as Assignment,
84
+ ConstructorStatement1edouznvc71xv as ConstructorStatement,
85
+ VariableReferencesji1q1tq3ygo as VariableReference,
86
+ SanitizationConfigunh0ok3qg1q3 as SanitizationConfig,
87
+ RawElement3huqlgf21e29z as RawElement,
88
+ Companion_getInstance34fvro4h6bumb as Companion_getInstance,
89
+ Main3fexakddcxfff as Main,
90
+ Enumoqsp4e7al89r as Enum,
91
+ Interface2g99rmjjt5ne as Interface,
92
+ Namespacex2gpe17ntoag as Namespace,
93
+ Structakfq94wrq695 as Struct,
94
+ File12q75sqvz964e as File,
95
+ transformChildren14suh59vxsgt as transformChildren_0,
96
+ StringLiteral3ok9p8g9pwd8t as StringLiteral,
97
+ Field26remk4nlwax4 as Field,
98
+ RawExpressionfqemfbo6j6cq as RawExpression,
99
+ FunctionCall1a3g4e6bcljl6 as FunctionCall,
100
+ transformChildren21ucrga4lv4sn as transformChildren_1,
101
+ Custom_init_$Create$kfegfgqdjj1p as Custom_init_$Create$,
102
+ Custom1ct1lu66hij6o as Custom_0,
103
+ String_instance2j5u8j0qc6lge as String_instance,
104
+ Literal1ddgfbf7tp4wt as Literal,
105
+ TransformScope3fhztkr2eyk36 as TransformScope,
106
+ TransformerBuilder26pbjl5nmg6wa as TransformerBuilder,
107
+ transformhd96z3w1u5uc as transform,
108
+ Element3p1xrn21d2w4b as Element,
109
+ FileExtension_TypeScript_getInstance13cn3j7kam56i as FileExtension_TypeScript_getInstance,
110
+ Companion_instance21vwhhqsaytqt as Companion_instance,
111
+ convert37y165c07dvpq as convert,
112
+ emit2s9bv7yrx5jcs as emit,
113
+ Part2m6fm5anwg79b as Part,
145
114
  namespace2467cajrmgrc5 as namespace,
146
115
  Emitted12h24rpo4uifw as Emitted,
116
+ emit1w04jgbmswnni as emit_0,
147
117
  plus3lrm73de10b42 as plus_1,
118
+ import3bym2b49e642p as import_0,
119
+ convertToGenerator115obo0n49kco as convertToGenerator,
148
120
  Unionccsavx6nrdr2 as Union,
121
+ convertToGenerator1x32vg5qdleq8 as convertToGenerator_0,
149
122
  Refined1lkzc0dg6wey7 as Refined,
123
+ convertToGenerator33dm40iimoy3x as convertToGenerator_1,
150
124
  Enum3l2iuc342kle6 as Enum_0,
125
+ convertToGenerator1arvbkvdv4bro as convertToGenerator_2,
151
126
  Type12n1gx16iqtcu as Type,
127
+ sanitizeNames1v55mz1p84psg as sanitizeNames,
128
+ collectCustomTypeNames2atsrip288ol4 as collectCustomTypeNames,
152
129
  plus14o24vdaiongg as plus_2,
130
+ classifyValidatableFieldsdr20i0f9b8o as classifyValidatableFields,
153
131
  importReferencesy4xv7r53sjjs as importReferences,
132
+ convertWithValidation24mbxf4x2u6w4 as convertWithValidation,
133
+ convert1ke01d6gmcvu7 as convert_0,
134
+ convert29zpebhuxz599 as convert_1,
135
+ convert39lmqftdnlhsy as convert_2,
136
+ convertConstraint1tall9wrxeg5k as convertConstraint,
137
+ requestParameters17h8t6jwwzr7s as requestParameters,
138
+ convert333pgxr2q05n as convert_3,
139
+ convert86y6uioox2cl as convert_4,
140
+ convert1o5h4ulxoqycg as convert_5,
141
+ get_extensions1p1y8uybwv35q as get_extensions,
142
+ emit3e40nagyc4qho as emit_1,
143
+ beforeGenerate2eu511tof5fa4 as beforeGenerate,
144
+ get_supportsDefaults2j8lo8mbv0egf as get_supportsDefaults,
145
+ IrEmitter2jy94gp21kviv as IrEmitter,
146
+ raw1mm1rmqheq474 as raw,
147
+ Switch1xeta53lgnle5 as Switch,
148
+ Integer3hago8kqppnkb as Integer_0,
149
+ Case35feeoz93frh9 as Case,
150
+ FieldCall2nusnrnm7uuow as FieldCall,
151
+ Parameter37d5p43ul6u79 as Parameter,
152
+ Function1wme41sk2huri as Function,
154
153
  Literal331hu9r04vptz as Literal_0,
154
+ ErrorStatement32jbg3x8mt63z as ErrorStatement,
155
+ BinaryOp3pda4rtz7k0s7 as BinaryOp,
155
156
  } from './wirespec-src-compiler-core.mjs';
156
157
  import {
157
- _NonEmptyList___get_all__impl__pmf5092svcdxelgy1aa as _NonEmptyList___get_all__impl__pmf509,
158
+ _NonEmptyList___get_all__impl__pmf5092xnz0i2teaa6d as _NonEmptyList___get_all__impl__pmf509,
158
159
  NonEmptyList3ak25ihy2gcvs as NonEmptyList,
159
- _NonEmptyList___init__impl__fxd0xp3qwfhfa83yk9f as _NonEmptyList___init__impl__fxd0xp,
160
- NonEmptyList__plus_impl_xqmb91y38uyofmba13 as NonEmptyList__plus_impl_xqmb9,
160
+ _NonEmptyList___init__impl__fxd0xprpnd63likgzm as _NonEmptyList___init__impl__fxd0xp,
161
+ NonEmptyList__plus_impl_xqmb918nwrkd75m2j6 as NonEmptyList__plus_impl_xqmb9,
161
162
  } from './arrow-arrow-core.mjs';
162
163
  //region block: imports
163
164
  var imul = Math.imul;
@@ -165,36 +166,36 @@ var imul = Math.imul;
165
166
  //region block: pre-declaration
166
167
  initMetadataForClass(EndpointParam, 'EndpointParam');
167
168
  initMetadataForCompanion(Companion);
168
- initMetadataForClass(TypeScriptIrEmitter, 'TypeScriptIrEmitter', TypeScriptIrEmitter, VOID, [IrEmitter]);
169
+ initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, VOID, [IrEmitter]);
169
170
  //endregion
170
171
  function _get_sanitizationConfig__sns434($this) {
171
- var tmp0 = $this.w1z_1;
172
+ var tmp0 = $this.t21_1;
172
173
  var tmp = KProperty1;
173
174
  // Inline function 'kotlin.getValue' call
174
- getPropertyCallableRef('sanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh(), null);
175
- return tmp0.m1();
175
+ getPropertyCallableRef('sanitizationConfig', 1, tmp, TypeScriptEmitter$_get_sanitizationConfig_$ref_eg4rmu(), null);
176
+ return tmp0.o1();
176
177
  }
177
178
  function _get_modelSanitizationConfig__vgg831($this) {
178
- var tmp0 = $this.x1z_1;
179
+ var tmp0 = $this.u21_1;
179
180
  var tmp = KProperty1;
180
181
  // Inline function 'kotlin.getValue' call
181
- getPropertyCallableRef('modelSanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88(), null);
182
- return tmp0.m1();
182
+ getPropertyCallableRef('modelSanitizationConfig', 1, tmp, TypeScriptEmitter$_get_modelSanitizationConfig_$ref_jl2735(), null);
183
+ return tmp0.o1();
183
184
  }
184
- function sanitize($this, _this__u8e3s4) {
185
- return '"' + _this__u8e3s4.m1() + '"';
185
+ function sanitize($this, $receiver) {
186
+ return '"' + $receiver.o1() + '"';
186
187
  }
187
- function sanitizeSymbol($this, _this__u8e3s4) {
188
+ function sanitizeSymbol($this, $receiver) {
188
189
  // Inline function 'kotlin.text.filter' call
189
190
  // Inline function 'kotlin.text.filterTo' call
190
191
  var destination = StringBuilder_init_$Create$();
191
192
  var inductionVariable = 0;
192
- var last = charSequenceLength(_this__u8e3s4);
193
+ var last = charSequenceLength($receiver);
193
194
  if (inductionVariable < last)
194
195
  do {
195
196
  var index = inductionVariable;
196
197
  inductionVariable = inductionVariable + 1 | 0;
197
- var element = charSequenceGet(_this__u8e3s4, index);
198
+ var element = charSequenceGet($receiver, index);
198
199
  if (isLetterOrDigit(element) || element === _Char___init__impl__6a9atx(95)) {
199
200
  destination.s(element);
200
201
  }
@@ -202,30 +203,30 @@ function sanitizeSymbol($this, _this__u8e3s4) {
202
203
  while (inductionVariable < last);
203
204
  return destination.toString();
204
205
  }
205
- function sanitizeKeywords($this, _this__u8e3s4) {
206
- return Companion_getInstance_0().v1x().v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
206
+ function sanitizeKeywords($this, $receiver) {
207
+ return Companion_getInstance_0().r1z().i1($receiver) ? '_' + $receiver : $receiver;
207
208
  }
208
- function firstToLower($this, _this__u8e3s4) {
209
+ function firstToLower($this, $receiver) {
209
210
  // Inline function 'kotlin.text.replaceFirstChar' call
210
211
  var tmp;
211
212
  // Inline function 'kotlin.text.isNotEmpty' call
212
- if (charSequenceLength(_this__u8e3s4) > 0) {
213
+ if (charSequenceLength($receiver) > 0) {
213
214
  // Inline function 'kotlin.text.lowercase' call
214
- var this_0 = charCodeAt(_this__u8e3s4, 0);
215
+ var this_0 = charCodeAt($receiver, 0);
215
216
  // Inline function 'kotlin.js.asDynamic' call
216
217
  // Inline function 'kotlin.js.unsafeCast' call
217
- var tmp$ret$4 = toString(this_0).toLowerCase();
218
- tmp = toString_0(tmp$ret$4) + substring(_this__u8e3s4, 1);
218
+ var tmp$ret$2 = toString(this_0).toLowerCase();
219
+ tmp = toString_0(tmp$ret$2) + substring($receiver, 1);
219
220
  } else {
220
- tmp = _this__u8e3s4;
221
+ tmp = $receiver;
221
222
  }
222
223
  return tmp;
223
224
  }
224
225
  function sanitizeParamName($this, identifier) {
225
- var tmp0 = identifier.m1();
226
+ var tmp0 = identifier.o1();
226
227
  // Inline function 'kotlin.text.split' call
227
228
  // Inline function 'kotlin.collections.filter' call
228
- var tmp0_0 = Regex_init_$Create$('[.\\s-]+').ad(tmp0, 0);
229
+ var tmp0_0 = Regex_init_$Create$('[.\\s-]+').ed(tmp0, 0);
229
230
  // Inline function 'kotlin.collections.filterTo' call
230
231
  var destination = ArrayList_init_$Create$();
231
232
  var _iterator__ex2g4s = tmp0_0.t();
@@ -237,7 +238,7 @@ function sanitizeParamName($this, identifier) {
237
238
  }
238
239
  }
239
240
  var parts = destination;
240
- var name = parts.b1() > 1 ? (new Name(parts)).t1m() : identifier.m1();
241
+ var name = parts.b1() > 1 ? (new Name(parts)).xt() : identifier.o1();
241
242
  return sanitizeKeywords($this, sanitizeSymbol($this, name));
242
243
  }
243
244
  function buildEndpointParams($this, endpoint) {
@@ -246,7 +247,7 @@ function buildEndpointParams($this, endpoint) {
246
247
  // Inline function 'kotlin.apply' call
247
248
  var this_0 = ArrayList_init_$Create$();
248
249
  // Inline function 'kotlin.collections.filterIsInstance' call
249
- var tmp0 = endpoint.mq_1;
250
+ var tmp0 = endpoint.gr_1;
250
251
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
251
252
  var destination = ArrayList_init_$Create$();
252
253
  var _iterator__ex2g4s = tmp0.t();
@@ -260,36 +261,36 @@ function buildEndpointParams($this, endpoint) {
260
261
  var _iterator__ex2g4s_0 = destination.t();
261
262
  while (_iterator__ex2g4s_0.u()) {
262
263
  var element_0 = _iterator__ex2g4s_0.v();
263
- this_0.x(new EndpointParam(sanitizeParamName($this, element_0.rq_1), emitTypeScriptReference($this, element_0.sq_1.fv(false)), element_0.sq_1.dv()));
264
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_0.lr_1), emitTypeScriptReference($this, element_0.mr_1.s19(false)), element_0.mr_1.nt()));
264
265
  }
265
266
  // Inline function 'kotlin.collections.forEach' call
266
- var _iterator__ex2g4s_1 = endpoint.nq_1.t();
267
+ var _iterator__ex2g4s_1 = get_fields(endpoint.hr_1).t();
267
268
  while (_iterator__ex2g4s_1.u()) {
268
269
  var element_1 = _iterator__ex2g4s_1.v();
269
- this_0.x(new EndpointParam(sanitizeParamName($this, element_1.sp_1), emitTypeScriptReference($this, element_1.tp_1.fv(false)), element_1.tp_1.dv()));
270
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_1.np_1), emitTypeScriptReference($this, element_1.op_1.s19(false)), element_1.op_1.nt()));
270
271
  }
271
272
  // Inline function 'kotlin.collections.forEach' call
272
- var _iterator__ex2g4s_2 = endpoint.oq_1.t();
273
+ var _iterator__ex2g4s_2 = get_fields(endpoint.ir_1).t();
273
274
  while (_iterator__ex2g4s_2.u()) {
274
275
  var element_2 = _iterator__ex2g4s_2.v();
275
- this_0.x(new EndpointParam(sanitizeParamName($this, element_2.sp_1), emitTypeScriptReference($this, element_2.tp_1.fv(false)), element_2.tp_1.dv()));
276
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_2.np_1), emitTypeScriptReference($this, element_2.op_1.s19(false)), element_2.op_1.nt()));
276
277
  }
277
- var tmp0_safe_receiver = first(endpoint.pq_1).tq_1;
278
+ var tmp0_safe_receiver = first(endpoint.jr_1).nr_1;
278
279
  if (tmp0_safe_receiver == null)
279
280
  null;
280
281
  else {
281
282
  // Inline function 'kotlin.let' call
282
- this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.vq_1.fv(false)), tmp0_safe_receiver.vq_1.dv()));
283
+ this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.pr_1.s19(false)), tmp0_safe_receiver.pr_1.nt()));
283
284
  }
284
- return this_0.p5();
285
+ return this_0.q5();
285
286
  }
286
287
  function emitTypeScriptReference($this, ref) {
287
288
  var tmp;
288
289
  if (ref instanceof Dict) {
289
- tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.bp_1) + '>';
290
+ tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.aq_1) + '>';
290
291
  } else {
291
292
  if (ref instanceof Iterable) {
292
- tmp = emitTypeScriptReference($this, ref.yo_1) + '[]';
293
+ tmp = emitTypeScriptReference($this, ref.xp_1) + '[]';
293
294
  } else {
294
295
  if (ref instanceof Unit) {
295
296
  tmp = 'undefined';
@@ -297,16 +298,16 @@ function emitTypeScriptReference($this, ref) {
297
298
  if (ref instanceof Any) {
298
299
  tmp = 'any';
299
300
  } else {
300
- if (ref instanceof Custom_0) {
301
- tmp = sanitizeSymbol($this, ref.lv_1);
301
+ if (ref instanceof Custom) {
302
+ tmp = sanitizeSymbol($this, ref.q18_1);
302
303
  } else {
303
304
  if (ref instanceof Primitive) {
304
- var tmp1_subject = ref.wt_1;
305
+ var tmp1_subject = ref.s18_1;
305
306
  var tmp_0;
306
307
  if (tmp1_subject instanceof String_0) {
307
308
  tmp_0 = 'string';
308
309
  } else {
309
- if (tmp1_subject instanceof Integer_0) {
310
+ if (tmp1_subject instanceof Integer) {
310
311
  tmp_0 = 'number';
311
312
  } else {
312
313
  if (tmp1_subject instanceof Number_0) {
@@ -334,20 +335,20 @@ function emitTypeScriptReference($this, ref) {
334
335
  }
335
336
  }
336
337
  // Inline function 'kotlin.let' call
337
- return tmp + (ref.dv() ? ' | undefined' : '');
338
+ return tmp + (ref.nt() ? ' | undefined' : '');
338
339
  }
339
340
  function EndpointParam(name, type, nullable) {
340
- this.a20_1 = name;
341
- this.b20_1 = type;
342
- this.c20_1 = nullable;
341
+ this.x21_1 = name;
342
+ this.y21_1 = type;
343
+ this.z21_1 = nullable;
343
344
  }
344
345
  protoOf(EndpointParam).toString = function () {
345
- return 'EndpointParam(name=' + this.a20_1 + ', type=' + this.b20_1 + ', nullable=' + this.c20_1 + ')';
346
+ return 'EndpointParam(name=' + this.x21_1 + ', type=' + this.y21_1 + ', nullable=' + this.z21_1 + ')';
346
347
  };
347
348
  protoOf(EndpointParam).hashCode = function () {
348
- var result = getStringHashCode(this.a20_1);
349
- result = imul(result, 31) + getStringHashCode(this.b20_1) | 0;
350
- result = imul(result, 31) + getBooleanHashCode(this.c20_1) | 0;
349
+ var result = getStringHashCode(this.x21_1);
350
+ result = imul(result, 31) + getStringHashCode(this.y21_1) | 0;
351
+ result = imul(result, 31) + getBooleanHashCode(this.z21_1) | 0;
351
352
  return result;
352
353
  };
353
354
  protoOf(EndpointParam).equals = function (other) {
@@ -355,17 +356,17 @@ protoOf(EndpointParam).equals = function (other) {
355
356
  return true;
356
357
  if (!(other instanceof EndpointParam))
357
358
  return false;
358
- if (!(this.a20_1 === other.a20_1))
359
+ if (!(this.x21_1 === other.x21_1))
359
360
  return false;
360
- if (!(this.b20_1 === other.b20_1))
361
+ if (!(this.y21_1 === other.y21_1))
361
362
  return false;
362
- if (!(this.c20_1 === other.c20_1))
363
+ if (!(this.z21_1 === other.z21_1))
363
364
  return false;
364
365
  return true;
365
366
  };
366
367
  function Companion() {
367
368
  Companion_instance_0 = this;
368
- this.y1z_1 = TypeScriptGenerator_getInstance();
369
+ this.v21_1 = TypeScriptGenerator_getInstance();
369
370
  var tmp = this;
370
371
  // Inline function 'kotlin.collections.associateWith' call
371
372
  var this_0 = listOf(['GeneratorFieldString', 'GeneratorFieldInteger64', 'GeneratorFieldInteger32', 'GeneratorFieldNumber64', 'GeneratorFieldNumber32', 'GeneratorFieldBoolean', 'GeneratorFieldBytes', 'GeneratorFieldEnum', 'GeneratorFieldUnion', 'GeneratorFieldArray', 'GeneratorFieldNullable', 'GeneratorFieldShape', 'GeneratorFieldDict']);
@@ -377,12 +378,12 @@ function Companion() {
377
378
  // Inline function 'kotlin.text.lowercase' call
378
379
  // Inline function 'kotlin.js.asDynamic' call
379
380
  var tmp$ret$2 = removePrefix(element, 'GeneratorField').toLowerCase();
380
- result.t2(element, tmp$ret$2);
381
+ result.v2(element, tmp$ret$2);
381
382
  }
382
- tmp.z1z_1 = result;
383
+ tmp.w21_1 = result;
383
384
  }
384
- protoOf(Companion).v1x = function () {
385
- return this.y1z_1.h1x_1;
385
+ protoOf(Companion).r1z = function () {
386
+ return this.v21_1.u1a_1;
386
387
  };
387
388
  var Companion_instance_0;
388
389
  function Companion_getInstance_0() {
@@ -390,22 +391,22 @@ function Companion_getInstance_0() {
390
391
  new Companion();
391
392
  return Companion_instance_0;
392
393
  }
393
- function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
394
+ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
394
395
  return it;
395
396
  }
396
- function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
397
+ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
397
398
  return function (name) {
398
- var sanitized = name.f1h_1.b1() > 1 ? name.t1m() : sanitizeSymbol(this$0, name.g1j());
399
+ var sanitized = name.tt_1.b1() > 1 ? name.xt() : sanitizeSymbol(this$0, name.wt());
399
400
  return new Name(listOf_0(sanitized));
400
401
  };
401
402
  }
402
- function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
403
+ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
403
404
  return function (name) {
404
- var sanitized = name.f1h_1.b1() > 1 ? name.t1m() : sanitizeSymbol(this$0, name.g1j());
405
+ var sanitized = name.tt_1.b1() > 1 ? name.xt() : sanitizeSymbol(this$0, name.wt());
405
406
  return new Name(listOf_0(sanitized));
406
407
  };
407
408
  }
408
- function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
409
+ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
409
410
  // Inline function 'kotlin.text.filter' call
410
411
  // Inline function 'kotlin.text.filterTo' call
411
412
  var destination = StringBuilder_init_$Create$();
@@ -423,33 +424,33 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
423
424
  while (inductionVariable < last);
424
425
  return destination.toString();
425
426
  }
426
- function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
427
+ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
427
428
  return function (stmt, tr) {
428
429
  var tmp;
429
430
  if (stmt instanceof VariableReference) {
430
- tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.b1o_1));
431
+ tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.fv_1));
431
432
  } else {
432
433
  if (stmt instanceof ConstructorStatement) {
433
- var tmp_0 = tr.s1v(stmt.y1n_1);
434
+ var tmp_0 = tr.l17(stmt.cv_1);
434
435
  // Inline function 'kotlin.collections.map' call
435
- var this_0 = stmt.z1n_1;
436
+ var this_0 = stmt.dv_1;
436
437
  // Inline function 'kotlin.collections.mapTo' call
437
438
  var destination = ArrayList_init_$Create$_0(this_0.b1());
438
439
  // Inline function 'kotlin.collections.iterator' call
439
- var _iterator__ex2g4s = this_0.k1().t();
440
+ var _iterator__ex2g4s = this_0.m1().t();
440
441
  while (_iterator__ex2g4s.u()) {
441
442
  var item = _iterator__ex2g4s.v();
442
443
  // Inline function 'kotlin.collections.component1' call
443
- var key = item.l1();
444
+ var key = item.n1();
444
445
  // Inline function 'kotlin.collections.component2' call
445
- var value = item.m1();
446
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.v1v(value));
446
+ var value = item.o1();
447
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.o17(value));
447
448
  destination.x(tmp$ret$3);
448
449
  }
449
450
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
450
451
  } else {
451
452
  if (stmt instanceof Assignment) {
452
- tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.s1q_1), tr.v1v(stmt.t1q_1), stmt.u1q_1);
453
+ tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.iy_1), tr.o17(stmt.jy_1), stmt.ky_1);
453
454
  } else {
454
455
  tmp = transformChildren(stmt, tr);
455
456
  }
@@ -458,63 +459,63 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
458
459
  return tmp;
459
460
  };
460
461
  }
461
- function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
462
+ function TypeScriptEmitter$sanitizationConfig$delegate$lambda(this$0) {
462
463
  return function () {
463
- var tmp0_reservedKeywords = Companion_getInstance_0().v1x();
464
- var tmp = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda;
465
- var tmp_0 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
466
- var tmp_1 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
467
- var tmp_2 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_2;
468
- return new SanitizationConfig(tmp0_reservedKeywords, tmp, tmp_0, tmp_1, tmp_2, TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0), false);
464
+ var tmp0_reservedKeywords = Companion_getInstance_0().r1z();
465
+ var tmp = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda;
466
+ var tmp_0 = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
467
+ var tmp_1 = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
468
+ var tmp_2 = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_2;
469
+ return new SanitizationConfig(tmp0_reservedKeywords, tmp, tmp_0, tmp_1, tmp_2, TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0), false);
469
470
  };
470
471
  }
471
- function TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh() {
472
+ function TypeScriptEmitter$_get_sanitizationConfig_$ref_eg4rmu() {
472
473
  return function (p0) {
473
474
  return _get_sanitizationConfig__sns434(p0);
474
475
  };
475
476
  }
476
- function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda(name) {
477
- return new Name(listOf_0(name.g1j()));
477
+ function TypeScriptEmitter$modelSanitizationConfig$delegate$lambda$lambda(name) {
478
+ return new Name(listOf_0(name.wt()));
478
479
  }
479
- function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(it) {
480
+ function TypeScriptEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(it) {
480
481
  return it;
481
482
  }
482
- function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
483
+ function TypeScriptEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
483
484
  return function () {
484
485
  var tmp = _get_sanitizationConfig__sns434(this$0);
485
- var tmp_0 = TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda;
486
- return tmp.t1x(VOID, VOID, tmp_0, VOID, TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
486
+ var tmp_0 = TypeScriptEmitter$modelSanitizationConfig$delegate$lambda$lambda;
487
+ return tmp.g1b(VOID, VOID, tmp_0, VOID, TypeScriptEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
487
488
  };
488
489
  }
489
- function TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88() {
490
+ function TypeScriptEmitter$_get_modelSanitizationConfig_$ref_jl2735() {
490
491
  return function (p0) {
491
492
  return _get_modelSanitizationConfig__vgg831(p0);
492
493
  };
493
494
  }
494
- function TypeScriptIrEmitter$emitShared$lambda(element, transformer) {
495
+ function TypeScriptEmitter$emitShared$lambda(element, transformer) {
495
496
  var tmp;
496
497
  if (element instanceof Namespace) {
497
- var injected = element.i1o_1.equals(Companion_getInstance().h1h('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
498
+ var injected = element.mv_1.equals(Companion_getInstance().vt('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
498
499
  var tmp_0;
499
500
  // Inline function 'kotlin.collections.isNotEmpty' call
500
501
  if (!injected.r()) {
501
- // Inline function 'community.flock.wirespec.ir.core.withElements' call
502
- var elements = plus(injected, element.e1o());
502
+ // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
503
+ var elements = plus(injected, element.iv());
503
504
  var tmp_1;
504
505
  if (element instanceof File) {
505
- tmp_1 = element.g1o(VOID, elements);
506
+ tmp_1 = element.kv(VOID, elements);
506
507
  } else {
507
508
  if (element instanceof Struct) {
508
- tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
509
+ tmp_1 = element.rx(VOID, VOID, VOID, VOID, elements);
509
510
  } else {
510
511
  if (element instanceof Namespace) {
511
- tmp_1 = element.n1o(VOID, elements);
512
+ tmp_1 = element.rv(VOID, elements);
512
513
  } else {
513
514
  if (element instanceof Interface) {
514
- tmp_1 = element.w1o(VOID, elements);
515
+ tmp_1 = element.aw(VOID, elements);
515
516
  } else {
516
517
  if (element instanceof Enum) {
517
- tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
518
+ tmp_1 = element.fx(VOID, VOID, VOID, VOID, VOID, elements);
518
519
  } else {
519
520
  if (element instanceof Main) {
520
521
  tmp_1 = element;
@@ -538,31 +539,31 @@ function TypeScriptIrEmitter$emitShared$lambda(element, transformer) {
538
539
  var transformed = tmp;
539
540
  return transformChildren_0(transformed, transformer);
540
541
  }
541
- function TypeScriptIrEmitter$emitShared$lambda_0($api) {
542
+ function TypeScriptEmitter$emitShared$lambda_0($api) {
542
543
  return function (element, transformer) {
543
544
  var tmp;
544
545
  if (element instanceof Namespace) {
545
- var injected = element.i1o_1.equals(Companion_getInstance().h1h('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
546
+ var injected = element.mv_1.equals(Companion_getInstance().vt('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
546
547
  var tmp_0;
547
548
  // Inline function 'kotlin.collections.isNotEmpty' call
548
549
  if (!injected.r()) {
549
- // Inline function 'community.flock.wirespec.ir.core.withElements' call
550
- var elements = plus(element.e1o(), injected);
550
+ // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
551
+ var elements = plus(element.iv(), injected);
551
552
  var tmp_1;
552
553
  if (element instanceof File) {
553
- tmp_1 = element.g1o(VOID, elements);
554
+ tmp_1 = element.kv(VOID, elements);
554
555
  } else {
555
556
  if (element instanceof Struct) {
556
- tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
557
+ tmp_1 = element.rx(VOID, VOID, VOID, VOID, elements);
557
558
  } else {
558
559
  if (element instanceof Namespace) {
559
- tmp_1 = element.n1o(VOID, elements);
560
+ tmp_1 = element.rv(VOID, elements);
560
561
  } else {
561
562
  if (element instanceof Interface) {
562
- tmp_1 = element.w1o(VOID, elements);
563
+ tmp_1 = element.aw(VOID, elements);
563
564
  } else {
564
565
  if (element instanceof Enum) {
565
- tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
566
+ tmp_1 = element.fx(VOID, VOID, VOID, VOID, VOID, elements);
566
567
  } else {
567
568
  if (element instanceof Main) {
568
569
  tmp_1 = element;
@@ -587,16 +588,16 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
587
588
  return transformChildren_0(transformed, transformer);
588
589
  };
589
590
  }
590
- function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
591
+ function TypeScriptEmitter$emitShared$lambda_1(element, transformer) {
591
592
  var tmp;
592
593
  if (element instanceof Struct) {
593
- var tmp0_safe_receiver = Companion_getInstance_0().z1z_1.q2(element.c1q_1.g1j());
594
+ var tmp0_safe_receiver = Companion_getInstance_0().w21_1.s2(element.gx_1.wt());
594
595
  var tmp_0;
595
596
  if (tmp0_safe_receiver == null) {
596
597
  tmp_0 = null;
597
598
  } else {
598
599
  // Inline function 'kotlin.let' call
599
- tmp_0 = element.n1q(VOID, plus(listOf_0(new Field(Companion_getInstance().h1h('kind'), new StringLiteral(tmp0_safe_receiver))), element.d1q_1));
600
+ tmp_0 = element.rx(VOID, plus(listOf_0(new Field(Companion_getInstance().vt('kind'), new StringLiteral(tmp0_safe_receiver))), element.hx_1));
600
601
  }
601
602
  var tmp1_elvis_lhs = tmp_0;
602
603
  tmp = tmp1_elvis_lhs == null ? element : tmp1_elvis_lhs;
@@ -606,34 +607,34 @@ function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
606
607
  var transformed = tmp;
607
608
  return transformChildren_0(transformed, transformer);
608
609
  }
609
- function TypeScriptIrEmitter$emit$lambda(it) {
610
- return 'export {' + it.mr().m1() + "} from './" + it.mr().m1() + "'";
610
+ function TypeScriptEmitter$emit$lambda(it) {
611
+ return 'export {' + it.cs().o1() + "} from './" + it.cs().o1() + "'";
611
612
  }
612
- function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
613
+ function TypeScriptEmitter$emitGenerator$lambda($definition) {
613
614
  return function (expr, t) {
614
615
  var tmp;
615
616
  var tmp_0;
616
617
  var tmp_1;
617
618
  var tmp_2;
618
619
  if (expr instanceof FunctionCall) {
619
- var tmp_3 = expr.b1n_1;
620
+ var tmp_3 = expr.bu_1;
620
621
  tmp_2 = tmp_3 instanceof RawExpression;
621
622
  } else {
622
623
  tmp_2 = false;
623
624
  }
624
625
  if (tmp_2) {
625
- var tmp_4 = expr.b1n_1;
626
- tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).r1q_1 === $definition.yr_1.m1();
626
+ var tmp_4 = expr.bu_1;
627
+ tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).hy_1 === $definition.ps_1.o1();
627
628
  } else {
628
629
  tmp_1 = false;
629
630
  }
630
631
  if (tmp_1) {
631
- tmp_0 = expr.d1n_1.equals(Companion_getInstance().h1h('valueOf'));
632
+ tmp_0 = expr.du_1.equals(Companion_getInstance().vt('valueOf'));
632
633
  } else {
633
634
  tmp_0 = false;
634
635
  }
635
636
  if (tmp_0) {
636
- var tmp0_elvis_lhs = expr.e1n_1.q2(Companion_getInstance().h1h('label'));
637
+ var tmp0_elvis_lhs = expr.eu_1.s2(Companion_getInstance().vt('label'));
637
638
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
638
639
  } else {
639
640
  tmp = transformChildren_1(expr, t);
@@ -641,17 +642,17 @@ function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
641
642
  return tmp;
642
643
  };
643
644
  }
644
- function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
645
+ function TypeScriptEmitter$emitGenerator$lambda_0($definition) {
645
646
  return function (expr, t) {
646
647
  var tmp;
647
648
  var tmp_0;
648
649
  if (expr instanceof ConstructorStatement) {
649
- tmp_0 = equals(expr.y1n_1, Custom_init_$Create$($definition.tr_1.m1()));
650
+ tmp_0 = equals(expr.cv_1, Custom_init_$Create$($definition.ks_1.o1()));
650
651
  } else {
651
652
  tmp_0 = false;
652
653
  }
653
654
  if (tmp_0) {
654
- var tmp0_elvis_lhs = expr.z1n_1.q2(Companion_getInstance().h1h('value'));
655
+ var tmp0_elvis_lhs = expr.dv_1.s2(Companion_getInstance().vt('value'));
655
656
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
656
657
  } else {
657
658
  tmp = transformChildren_1(expr, t);
@@ -659,40 +660,40 @@ function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
659
660
  return tmp;
660
661
  };
661
662
  }
662
- function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
663
+ function TypeScriptEmitter$emitGenerator$lambda_1(expr, t) {
663
664
  var tmp;
664
665
  if (expr instanceof ConstructorStatement) {
665
- var tmp_0 = expr.y1n_1;
666
- var tmp0_safe_receiver = tmp_0 instanceof Custom ? tmp_0 : null;
667
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1j_1;
668
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g1j();
666
+ var tmp_0 = expr.cv_1;
667
+ var tmp0_safe_receiver = tmp_0 instanceof Custom_0 ? tmp_0 : null;
668
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pu_1;
669
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.wt();
669
670
  var typeName = tmp2_safe_receiver == null ? null : removePrefix(tmp2_safe_receiver, 'Wirespec.');
670
671
  var tmp_1;
671
672
  if (typeName == null) {
672
673
  tmp_1 = null;
673
674
  } else {
674
675
  // Inline function 'kotlin.let' call
675
- tmp_1 = Companion_getInstance_0().z1z_1.q2(typeName);
676
+ tmp_1 = Companion_getInstance_0().w21_1.s2(typeName);
676
677
  }
677
678
  var kind = tmp_1;
678
679
  var tmp_2;
679
680
  if (!(kind == null)) {
680
- var tmp_3 = mapOf(to(Companion_getInstance().h1h('kind'), new Literal(kind, String_instance)));
681
+ var tmp_3 = mapOf(to(Companion_getInstance().vt('kind'), new Literal(kind, String_instance)));
681
682
  // Inline function 'kotlin.collections.mapValues' call
682
- var this_0 = expr.z1n_1;
683
+ var this_0 = expr.dv_1;
683
684
  // Inline function 'kotlin.collections.mapValuesTo' call
684
685
  var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
685
686
  // Inline function 'kotlin.collections.associateByTo' call
686
- var _iterator__ex2g4s = this_0.k1().t();
687
+ var _iterator__ex2g4s = this_0.m1().t();
687
688
  while (_iterator__ex2g4s.u()) {
688
689
  var element = _iterator__ex2g4s.v();
689
- var tmp_4 = element.l1();
690
+ var tmp_4 = element.n1();
690
691
  // Inline function 'kotlin.collections.component2' call
691
- var v = element.m1();
692
- var tmp$ret$4 = t.v1v(v);
693
- destination.t2(tmp_4, tmp$ret$4);
692
+ var v = element.o1();
693
+ var tmp$ret$6 = t.o17(v);
694
+ destination.v2(tmp_4, tmp$ret$6);
694
695
  }
695
- tmp_2 = new ConstructorStatement(expr.y1n_1, plus_0(tmp_3, destination));
696
+ tmp_2 = new ConstructorStatement(expr.cv_1, plus_0(tmp_3, destination));
696
697
  } else {
697
698
  tmp_2 = transformChildren(expr, t);
698
699
  }
@@ -702,40 +703,40 @@ function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
702
703
  }
703
704
  return tmp;
704
705
  }
705
- function TypeScriptIrEmitter$emitGenerator$lambda_2(it) {
706
+ function TypeScriptEmitter$emitGenerator$lambda_2(it) {
706
707
  return startsWith(it, 'Wirespec.') || it === 'Wirespec';
707
708
  }
708
- function TypeScriptIrEmitter$emitGenerator$lambda_3($generatorOwnName) {
709
+ function TypeScriptEmitter$emitGenerator$lambda_3($generatorOwnName) {
709
710
  return function (it) {
710
711
  return it === $generatorOwnName;
711
712
  };
712
713
  }
713
- function TypeScriptIrEmitter$emitGenerator$lambda_4(it) {
714
+ function TypeScriptEmitter$emitGenerator$lambda_4(it) {
714
715
  return substringBefore(it, _Char___init__impl__6a9atx(60));
715
716
  }
716
- function TypeScriptIrEmitter$emitGenerator$lambda_5($generatorOwnName, $generatorRefs) {
717
+ function TypeScriptEmitter$emitGenerator$lambda_5($generatorOwnName, $generatorRefs) {
717
718
  return function (expr, t) {
718
719
  var tmp;
719
720
  var tmp_0;
720
721
  var tmp_1;
721
722
  if (expr instanceof RawExpression) {
722
- tmp_1 = endsWith(expr.r1q_1, 'Generator');
723
+ tmp_1 = endsWith(expr.hy_1, 'Generator');
723
724
  } else {
724
725
  tmp_1 = false;
725
726
  }
726
727
  if (tmp_1) {
727
- tmp_0 = !(expr.r1q_1 === $generatorOwnName);
728
+ tmp_0 = !(expr.hy_1 === $generatorOwnName);
728
729
  } else {
729
730
  tmp_0 = false;
730
731
  }
731
732
  if (tmp_0) {
732
- $generatorRefs.x(expr.r1q_1);
733
+ $generatorRefs.x(expr.hy_1);
733
734
  tmp = Unit_instance;
734
735
  }
735
736
  return transformChildren_1(expr, t);
736
737
  };
737
738
  }
738
- function TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint) {
739
+ function TypeScriptEmitter$emit$injectApiConst$lambda($endpoint) {
739
740
  return function (element, transformer) {
740
741
  var tmp;
741
742
  if (element instanceof Namespace) {
@@ -743,23 +744,23 @@ function TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint) {
743
744
  var tmp_0;
744
745
  // Inline function 'kotlin.collections.isNotEmpty' call
745
746
  if (!injected.r()) {
746
- // Inline function 'community.flock.wirespec.ir.core.withElements' call
747
- var elements = plus(element.e1o(), injected);
747
+ // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
748
+ var elements = plus(element.iv(), injected);
748
749
  var tmp_1;
749
750
  if (element instanceof File) {
750
- tmp_1 = element.g1o(VOID, elements);
751
+ tmp_1 = element.kv(VOID, elements);
751
752
  } else {
752
753
  if (element instanceof Struct) {
753
- tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
754
+ tmp_1 = element.rx(VOID, VOID, VOID, VOID, elements);
754
755
  } else {
755
756
  if (element instanceof Namespace) {
756
- tmp_1 = element.n1o(VOID, elements);
757
+ tmp_1 = element.rv(VOID, elements);
757
758
  } else {
758
759
  if (element instanceof Interface) {
759
- tmp_1 = element.w1o(VOID, elements);
760
+ tmp_1 = element.aw(VOID, elements);
760
761
  } else {
761
762
  if (element instanceof Enum) {
762
- tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
763
+ tmp_1 = element.fx(VOID, VOID, VOID, VOID, VOID, elements);
763
764
  } else {
764
765
  if (element instanceof Main) {
765
766
  tmp_1 = element;
@@ -785,91 +786,91 @@ function TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint) {
785
786
  };
786
787
  }
787
788
  function emit$injectApiConst(_this__u8e3s4, $endpoint) {
788
- // Inline function 'community.flock.wirespec.ir.core.transform' call
789
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
789
790
  var scope = new TransformScope(_this__u8e3s4);
790
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
791
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
791
792
  var tmp = scope;
792
- // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
793
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
794
- var this_0 = scope.a1w_1;
795
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
793
+ // Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
794
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
795
+ var this_0 = scope.t17_1;
796
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
796
797
  // Inline function 'kotlin.apply' call
797
798
  var this_1 = new TransformerBuilder();
798
- this_1.u1i(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
799
- var tmp$ret$2 = this_1.v1i();
800
- tmp.a1w_1 = transform(this_0, tmp$ret$2);
801
- var tmp_0 = scope.a1w_1;
799
+ this_1.n18(TypeScriptEmitter$emit$injectApiConst$lambda($endpoint));
800
+ var tmp$ret$5 = this_1.i18();
801
+ tmp.t17_1 = transform(this_0, tmp$ret$5);
802
+ var tmp_0 = scope.t17_1;
802
803
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
803
804
  }
804
805
  function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
805
806
  return hasRequestParams ? bindCallToRequestParams(_this__u8e3s4) : _this__u8e3s4;
806
807
  }
807
- function TypeScriptIrEmitter$emitClient$lambda(this$0) {
808
+ function TypeScriptEmitter$emitClient$lambda(this$0) {
808
809
  return function (it) {
809
- var methodName = firstToLower(this$0, it.kq_1.m1());
810
+ var methodName = firstToLower(this$0, it.er_1.o1());
810
811
  return ' ...' + methodName + 'Client(serialization, transportation),';
811
812
  };
812
813
  }
813
- function TypeScriptIrEmitter() {
814
+ function TypeScriptEmitter() {
814
815
  Companion_getInstance_0();
815
- this.u1z_1 = TypeScriptGenerator_getInstance();
816
- this.v1z_1 = FileExtension_TypeScript_getInstance();
816
+ this.r21_1 = TypeScriptGenerator_getInstance();
817
+ this.s21_1 = FileExtension_TypeScript_getInstance();
817
818
  var tmp = this;
818
- tmp.w1z_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
819
+ tmp.t21_1 = lazy(TypeScriptEmitter$sanitizationConfig$delegate$lambda(this));
819
820
  var tmp_0 = this;
820
- tmp_0.x1z_1 = lazy(TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this));
821
+ tmp_0.u21_1 = lazy(TypeScriptEmitter$modelSanitizationConfig$delegate$lambda(this));
821
822
  }
822
- protoOf(TypeScriptIrEmitter).n1w = function () {
823
- return this.u1z_1;
823
+ protoOf(TypeScriptEmitter).g1a = function () {
824
+ return this.r21_1;
824
825
  };
825
- protoOf(TypeScriptIrEmitter).kr = function () {
826
- return this.v1z_1;
826
+ protoOf(TypeScriptEmitter).vp = function () {
827
+ return this.s21_1;
827
828
  };
828
- protoOf(TypeScriptIrEmitter).r1w = function () {
829
- var packageName = Companion_instance.is('community.flock.wirespec');
829
+ protoOf(TypeScriptEmitter).b1a = function () {
830
+ var packageName = Companion_instance.zs('community.flock.wirespec');
830
831
  var api = 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n to: (request: REQ) => RawRequest;\n from: (response: RawResponse) => RES\n}\nexport type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n from: (request: RawRequest) => REQ;\n to: (response: RES) => RawResponse\n}\nexport type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = {\n name: string;\n method: Method,\n path: string,\n client: Client<REQ, RES>;\n server: Server<REQ, RES>\n}';
831
- // Inline function 'community.flock.wirespec.ir.core.transform' call
832
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
832
833
  var this_0 = convert(packageName);
833
834
  var scope = new TransformScope(this_0);
834
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectBefore' call
835
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectBefore' call
835
836
  var tmp = scope;
836
- // Inline function 'community.flock.wirespec.ir.core.injectBefore' call
837
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
838
- var this_1 = scope.a1w_1;
839
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
837
+ // Inline function 'community.flock.wirespec.compiler.core.ir.injectBefore' call
838
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
839
+ var this_1 = scope.t17_1;
840
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
840
841
  // Inline function 'kotlin.apply' call
841
842
  var this_2 = new TransformerBuilder();
842
- this_2.u1i(TypeScriptIrEmitter$emitShared$lambda);
843
- var tmp$ret$2 = this_2.v1i();
844
- tmp.a1w_1 = transform(this_1, tmp$ret$2);
845
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
843
+ this_2.n18(TypeScriptEmitter$emitShared$lambda);
844
+ var tmp$ret$5 = this_2.i18();
845
+ tmp.t17_1 = transform(this_1, tmp$ret$5);
846
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
846
847
  var tmp_0 = scope;
847
- // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
848
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
849
- var this_3 = scope.a1w_1;
850
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
848
+ // Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
849
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
850
+ var this_3 = scope.t17_1;
851
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
851
852
  // Inline function 'kotlin.apply' call
852
853
  var this_4 = new TransformerBuilder();
853
- this_4.u1i(TypeScriptIrEmitter$emitShared$lambda_0(api));
854
- var tmp$ret$8 = this_4.v1i();
855
- tmp_0.a1w_1 = transform(this_3, tmp$ret$8);
856
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
854
+ this_4.n18(TypeScriptEmitter$emitShared$lambda_0(api));
855
+ var tmp$ret$11 = this_4.i18();
856
+ tmp_0.t17_1 = transform(this_3, tmp$ret$11);
857
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
857
858
  var tmp_1 = scope;
858
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
859
- var this_5 = scope.a1w_1;
860
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
859
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
860
+ var this_5 = scope.t17_1;
861
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
861
862
  // Inline function 'kotlin.apply' call
862
863
  var this_6 = new TransformerBuilder();
863
- this_6.u1i(TypeScriptIrEmitter$emitShared$lambda_1);
864
- var tmp$ret$14 = this_6.v1i();
865
- tmp_1.a1w_1 = transform(this_5, tmp$ret$14);
866
- var tmp_2 = scope.a1w_1;
864
+ this_6.n18(TypeScriptEmitter$emitShared$lambda_1);
865
+ var tmp$ret$16 = this_6.i18();
866
+ tmp_1.t17_1 = transform(this_5, tmp$ret$16);
867
+ var tmp_2 = scope.t17_1;
867
868
  return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
868
869
  };
869
- protoOf(TypeScriptIrEmitter).no = function (ast, logger) {
870
+ protoOf(TypeScriptEmitter).to = function (ast, logger) {
870
871
  var tmp = emit.call(this, ast, logger);
871
872
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
872
- var this_0 = ast.hr_1;
873
+ var this_0 = ast.ep_1;
873
874
  // Inline function 'kotlin.collections.flatMap' call
874
875
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
875
876
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -877,72 +878,82 @@ protoOf(TypeScriptIrEmitter).no = function (ast, logger) {
877
878
  var _iterator__ex2g4s = tmp0.t();
878
879
  while (_iterator__ex2g4s.u()) {
879
880
  var element = _iterator__ex2g4s.v();
880
- var list = new NonEmptyList(element.gr_1);
881
+ var list = new NonEmptyList(element.gp_1);
881
882
  addAll(destination, list);
882
883
  }
883
- var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
884
- // Inline function 'kotlin.collections.groupBy' call
885
- var tmp0_0 = new NonEmptyList(tmp$ret$3);
886
- // Inline function 'kotlin.collections.groupByTo' call
887
- var destination_0 = LinkedHashMap_init_$Create$_0();
884
+ var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(destination);
885
+ // Inline function 'kotlin.collections.filterNot' call
886
+ var tmp0_0 = new NonEmptyList(tmp$ret$0);
887
+ // Inline function 'kotlin.collections.filterNotTo' call
888
+ var destination_0 = ArrayList_init_$Create$();
888
889
  var _iterator__ex2g4s_0 = tmp0_0.t();
889
890
  while (_iterator__ex2g4s_0.u()) {
890
891
  var element_0 = _iterator__ex2g4s_0.v();
891
- var key = namespace(element_0);
892
+ if (!(element_0 instanceof Part)) {
893
+ destination_0.x(element_0);
894
+ }
895
+ }
896
+ // Inline function 'kotlin.collections.groupBy' call
897
+ // Inline function 'kotlin.collections.groupByTo' call
898
+ var destination_1 = LinkedHashMap_init_$Create$_0();
899
+ var _iterator__ex2g4s_1 = destination_0.t();
900
+ while (_iterator__ex2g4s_1.u()) {
901
+ var element_1 = _iterator__ex2g4s_1.v();
902
+ var key = namespace(element_1);
892
903
  // Inline function 'kotlin.collections.getOrPut' call
893
- var value = destination_0.q2(key);
904
+ var value = destination_1.s2(key);
894
905
  var tmp_0;
895
906
  if (value == null) {
896
907
  var answer = ArrayList_init_$Create$();
897
- destination_0.t2(key, answer);
908
+ destination_1.v2(key, answer);
898
909
  tmp_0 = answer;
899
910
  } else {
900
911
  tmp_0 = value;
901
912
  }
902
913
  var list_0 = tmp_0;
903
- list_0.x(element_0);
914
+ list_0.x(element_1);
904
915
  }
905
916
  // Inline function 'kotlin.collections.map' call
906
917
  // Inline function 'kotlin.collections.mapTo' call
907
- var destination_1 = ArrayList_init_$Create$_0(destination_0.b1());
918
+ var destination_2 = ArrayList_init_$Create$_0(destination_1.b1());
908
919
  // Inline function 'kotlin.collections.iterator' call
909
- var _iterator__ex2g4s_1 = destination_0.k1().t();
910
- while (_iterator__ex2g4s_1.u()) {
911
- var item = _iterator__ex2g4s_1.v();
920
+ var _iterator__ex2g4s_2 = destination_1.m1().t();
921
+ while (_iterator__ex2g4s_2.u()) {
922
+ var item = _iterator__ex2g4s_2.v();
912
923
  // Inline function 'kotlin.collections.component1' call
913
- var ns = item.l1();
924
+ var ns = item.n1();
914
925
  // Inline function 'kotlin.collections.component2' call
915
- var defs = item.m1();
916
- var tmp_1 = ns + '/index.' + this.kr().cr_1;
917
- var tmp$ret$12 = new Emitted(tmp_1, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emit$lambda));
918
- destination_1.x(tmp$ret$12);
926
+ var defs = item.o1();
927
+ var tmp_1 = ns + '/index.' + this.vp().wr_1;
928
+ var tmp$ret$15 = new Emitted(tmp_1, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda));
929
+ destination_2.x(tmp$ret$15);
919
930
  }
920
- return NonEmptyList__plus_impl_xqmb9(tmp, destination_1);
931
+ return NonEmptyList__plus_impl_xqmb9(tmp, destination_2);
921
932
  };
922
- protoOf(TypeScriptIrEmitter).lr = function (definition, module_0, logger) {
933
+ protoOf(TypeScriptEmitter).bs = function (definition, module_0, logger) {
923
934
  var file = emit_0.call(this, definition, module_0, logger);
924
- var subPackageName = plus_1(Companion_instance.is(''), definition);
925
- return new File(Companion_getInstance().h1h(subPackageName.ls() + sanitizeSymbol(this, file.c1o_1.i1h())), plus(listOf_0(import_0('../Wirespec', 'Wirespec')), file.d1o_1));
935
+ var subPackageName = plus_1(Companion_instance.zs(''), definition);
936
+ return new File(Companion_getInstance().vt(subPackageName.ct() + sanitizeSymbol(this, file.gv_1.yt())), plus(listOf_0(import_0('../Wirespec', 'Wirespec')), file.hv_1));
926
937
  };
927
- protoOf(TypeScriptIrEmitter).w1w = function (definition, module_0) {
938
+ protoOf(TypeScriptEmitter).j1a = function (definition, module_0) {
928
939
  var tmp;
929
940
  if (definition instanceof Type) {
930
941
  tmp = convertToGenerator_2(definition, module_0);
931
942
  } else {
932
943
  if (definition instanceof Enum_0) {
933
- // Inline function 'community.flock.wirespec.ir.core.transform' call
944
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
934
945
  var this_0 = convertToGenerator_1(definition);
935
946
  var scope = new TransformScope(this_0);
936
- scope.i1w(TypeScriptIrEmitter$emitGenerator$lambda(definition));
937
- var tmp_0 = scope.a1w_1;
947
+ scope.k18(TypeScriptEmitter$emitGenerator$lambda(definition));
948
+ var tmp_0 = scope.t17_1;
938
949
  tmp = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
939
950
  } else {
940
951
  if (definition instanceof Refined) {
941
- // Inline function 'community.flock.wirespec.ir.core.transform' call
952
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
942
953
  var this_1 = convertToGenerator_0(definition);
943
954
  var scope_0 = new TransformScope(this_1);
944
- scope_0.i1w(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
945
- var tmp_1 = scope_0.a1w_1;
955
+ scope_0.k18(TypeScriptEmitter$emitGenerator$lambda_0(definition));
956
+ var tmp_1 = scope_0.t17_1;
946
957
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
947
958
  } else {
948
959
  if (definition instanceof Union) {
@@ -953,23 +964,23 @@ protoOf(TypeScriptIrEmitter).w1w = function (definition, module_0) {
953
964
  }
954
965
  }
955
966
  }
956
- // Inline function 'community.flock.wirespec.ir.core.transform' call
967
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
957
968
  var this_2 = sanitizeNames(tmp, _get_sanitizationConfig__sns434(this));
958
969
  var scope_1 = new TransformScope(this_2);
959
- scope_1.i1w(TypeScriptIrEmitter$emitGenerator$lambda_1);
960
- var tmp_2 = scope_1.a1w_1;
970
+ scope_1.k18(TypeScriptEmitter$emitGenerator$lambda_1);
971
+ var tmp_2 = scope_1.t17_1;
961
972
  var generatorFile = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
962
- var generatorOwnName = definition.mr().m1() + 'Generator';
973
+ var generatorOwnName = definition.cs().o1() + 'Generator';
963
974
  var tmp_3 = asSequence(collectCustomTypeNames(generatorFile));
964
- var tmp_4 = filterNot(tmp_3, TypeScriptIrEmitter$emitGenerator$lambda_2);
965
- var tmp_5 = filterNot(tmp_4, TypeScriptIrEmitter$emitGenerator$lambda_3(generatorOwnName));
966
- var customNames = toList(distinct(map(tmp_5, TypeScriptIrEmitter$emitGenerator$lambda_4)));
975
+ var tmp_4 = filterNot(tmp_3, TypeScriptEmitter$emitGenerator$lambda_2);
976
+ var tmp_5 = filterNot(tmp_4, TypeScriptEmitter$emitGenerator$lambda_3(generatorOwnName));
977
+ var customNames = toList(distinct(map(tmp_5, TypeScriptEmitter$emitGenerator$lambda_4)));
967
978
  // Inline function 'kotlin.collections.mutableSetOf' call
968
979
  var generatorRefs = LinkedHashSet_init_$Create$();
969
- // Inline function 'community.flock.wirespec.ir.core.transform' call
980
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
970
981
  var scope_2 = new TransformScope(generatorFile);
971
- scope_2.i1w(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
972
- var tmp_6 = scope_2.a1w_1;
982
+ scope_2.k18(TypeScriptEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
983
+ var tmp_6 = scope_2.t17_1;
973
984
  isInterface(tmp_6, Element) || THROW_CCE();
974
985
  // Inline function 'kotlin.collections.filter' call
975
986
  // Inline function 'kotlin.collections.filterTo' call
@@ -988,8 +999,8 @@ protoOf(TypeScriptIrEmitter).w1w = function (definition, module_0) {
988
999
  var _iterator__ex2g4s_0 = this_3.t();
989
1000
  while (_iterator__ex2g4s_0.u()) {
990
1001
  var item = _iterator__ex2g4s_0.v();
991
- var tmp$ret$12 = import_0('./' + item, item);
992
- destination_0.x(tmp$ret$12);
1002
+ var tmp$ret$14 = import_0('./' + item, item);
1003
+ destination_0.x(tmp$ret$14);
993
1004
  }
994
1005
  var generatorImports = destination_0;
995
1006
  // Inline function 'kotlin.collections.filterNot' call
@@ -1008,14 +1019,14 @@ protoOf(TypeScriptIrEmitter).w1w = function (definition, module_0) {
1008
1019
  var _iterator__ex2g4s_2 = destination_1.t();
1009
1020
  while (_iterator__ex2g4s_2.u()) {
1010
1021
  var item_0 = _iterator__ex2g4s_2.v();
1011
- var tmp$ret$18 = import_0('../model/' + item_0, item_0);
1012
- destination_2.x(tmp$ret$18);
1022
+ var tmp$ret$20 = import_0('../model/' + item_0, item_0);
1023
+ destination_2.x(tmp$ret$20);
1013
1024
  }
1014
1025
  var modelImports = destination_2;
1015
- var subPackageName = plus_2(Companion_instance.is(''), 'generator');
1016
- return new File(Companion_getInstance().h1h(subPackageName.ls() + sanitizeSymbol(this, generatorFile.c1o_1.i1h())), plus(plus(plus(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.d1o_1));
1026
+ var subPackageName = plus_2(Companion_instance.zs(''), 'generator');
1027
+ return new File(Companion_getInstance().vt(subPackageName.ct() + sanitizeSymbol(this, generatorFile.gv_1.yt())), plus(plus(plus(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.hv_1));
1017
1028
  };
1018
- protoOf(TypeScriptIrEmitter).cs = function (type, module_0) {
1029
+ protoOf(TypeScriptEmitter).ts = function (type, module_0) {
1019
1030
  var fieldValidations = classifyValidatableFields(type, module_0);
1020
1031
  // Inline function 'kotlin.collections.distinctBy' call
1021
1032
  var this_0 = importReferences(type);
@@ -1024,7 +1035,7 @@ protoOf(TypeScriptIrEmitter).cs = function (type, module_0) {
1024
1035
  var _iterator__ex2g4s = this_0.t();
1025
1036
  while (_iterator__ex2g4s.u()) {
1026
1037
  var e = _iterator__ex2g4s.v();
1027
- var key = e.lv_1;
1038
+ var key = e.q18_1;
1028
1039
  if (set.x(key)) {
1029
1040
  list.x(e);
1030
1041
  }
@@ -1035,8 +1046,8 @@ protoOf(TypeScriptIrEmitter).cs = function (type, module_0) {
1035
1046
  var _iterator__ex2g4s_0 = list.t();
1036
1047
  while (_iterator__ex2g4s_0.u()) {
1037
1048
  var item = _iterator__ex2g4s_0.v();
1038
- var tmp$ret$2 = import_0('./' + item.lv_1, item.lv_1);
1039
- destination.x(tmp$ret$2);
1049
+ var tmp$ret$4 = import_0('./' + item.q18_1, item.q18_1);
1050
+ destination.x(tmp$ret$4);
1040
1051
  }
1041
1052
  var typeImports = destination;
1042
1053
  // Inline function 'kotlin.collections.map' call
@@ -1045,8 +1056,8 @@ protoOf(TypeScriptIrEmitter).cs = function (type, module_0) {
1045
1056
  var _iterator__ex2g4s_1 = fieldValidations.t();
1046
1057
  while (_iterator__ex2g4s_1.u()) {
1047
1058
  var item_0 = _iterator__ex2g4s_1.v();
1048
- var tmp$ret$5 = item_0.a1j_1;
1049
- destination_0.x(tmp$ret$5);
1059
+ var tmp$ret$7 = item_0.q19_1;
1060
+ destination_0.x(tmp$ret$7);
1050
1061
  }
1051
1062
  // Inline function 'kotlin.collections.filter' call
1052
1063
  var tmp0 = distinct_0(destination_0);
@@ -1055,7 +1066,7 @@ protoOf(TypeScriptIrEmitter).cs = function (type, module_0) {
1055
1066
  var _iterator__ex2g4s_2 = tmp0.t();
1056
1067
  while (_iterator__ex2g4s_2.u()) {
1057
1068
  var element = _iterator__ex2g4s_2.v();
1058
- if (!(element === type.eq_1.m1())) {
1069
+ if (!(element === type.jp_1.o1())) {
1059
1070
  destination_1.x(element);
1060
1071
  }
1061
1072
  }
@@ -1065,36 +1076,36 @@ protoOf(TypeScriptIrEmitter).cs = function (type, module_0) {
1065
1076
  var _iterator__ex2g4s_3 = destination_1.t();
1066
1077
  while (_iterator__ex2g4s_3.u()) {
1067
1078
  var item_1 = _iterator__ex2g4s_3.v();
1068
- var tmp$ret$11 = import_0('./' + item_1, 'validate' + item_1);
1069
- destination_2.x(tmp$ret$11);
1079
+ var tmp$ret$13 = import_0('./' + item_1, 'validate' + item_1);
1080
+ destination_2.x(tmp$ret$13);
1070
1081
  }
1071
1082
  var validateImports = destination_2;
1072
1083
  var allImports = plus(typeImports, validateImports);
1073
1084
  // Inline function 'kotlin.collections.map' call
1074
- var this_1 = type.fq_1.kp_1;
1085
+ var this_1 = get_fields(type.kp_1);
1075
1086
  // Inline function 'kotlin.collections.mapTo' call
1076
1087
  var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1077
1088
  var _iterator__ex2g4s_4 = this_1.t();
1078
1089
  while (_iterator__ex2g4s_4.u()) {
1079
1090
  var item_2 = _iterator__ex2g4s_4.v();
1080
- var tmp$ret$14 = item_2.sp_1.m1();
1081
- destination_3.x(tmp$ret$14);
1091
+ var tmp$ret$16 = item_2.np_1.o1();
1092
+ destination_3.x(tmp$ret$16);
1082
1093
  }
1083
1094
  var fieldNames = toSet(destination_3);
1084
- var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)), type.eq_1.m1(), fieldNames);
1095
+ var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)), type.jp_1.o1(), fieldNames);
1085
1096
  var tmp;
1086
1097
  // Inline function 'kotlin.collections.isNotEmpty' call
1087
1098
  if (!allImports.r()) {
1088
- tmp = file.g1o(VOID, plus(allImports, file.d1o_1));
1099
+ tmp = file.kv(VOID, plus(allImports, file.hv_1));
1089
1100
  } else {
1090
1101
  tmp = file;
1091
1102
  }
1092
1103
  return tmp;
1093
1104
  };
1094
- protoOf(TypeScriptIrEmitter).as = function (enum_0, module_0) {
1105
+ protoOf(TypeScriptEmitter).rs = function (enum_0, module_0) {
1095
1106
  return sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1096
1107
  };
1097
- protoOf(TypeScriptIrEmitter).qr = function (union) {
1108
+ protoOf(TypeScriptEmitter).hs = function (union) {
1098
1109
  // Inline function 'kotlin.collections.distinctBy' call
1099
1110
  var this_0 = importReferences(union);
1100
1111
  var set = HashSet_init_$Create$();
@@ -1102,7 +1113,7 @@ protoOf(TypeScriptIrEmitter).qr = function (union) {
1102
1113
  var _iterator__ex2g4s = this_0.t();
1103
1114
  while (_iterator__ex2g4s.u()) {
1104
1115
  var e = _iterator__ex2g4s.v();
1105
- var key = e.lv_1;
1116
+ var key = e.q18_1;
1106
1117
  if (set.x(key)) {
1107
1118
  list.x(e);
1108
1119
  }
@@ -1113,27 +1124,27 @@ protoOf(TypeScriptIrEmitter).qr = function (union) {
1113
1124
  var _iterator__ex2g4s_0 = list.t();
1114
1125
  while (_iterator__ex2g4s_0.u()) {
1115
1126
  var item = _iterator__ex2g4s_0.v();
1116
- var tmp$ret$2 = import_0('../model', item.lv_1, true);
1117
- destination.x(tmp$ret$2);
1127
+ var tmp$ret$4 = import_0('../model', item.q18_1, true);
1128
+ destination.x(tmp$ret$4);
1118
1129
  }
1119
1130
  var imports = destination;
1120
1131
  var file = sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1121
1132
  var tmp;
1122
1133
  // Inline function 'kotlin.collections.isNotEmpty' call
1123
1134
  if (!imports.r()) {
1124
- tmp = file.g1o(VOID, plus(imports, file.d1o_1));
1135
+ tmp = file.kv(VOID, plus(imports, file.hv_1));
1125
1136
  } else {
1126
1137
  tmp = file;
1127
1138
  }
1128
1139
  return tmp;
1129
1140
  };
1130
- protoOf(TypeScriptIrEmitter).vr = function (refined) {
1141
+ protoOf(TypeScriptEmitter).ms = function (refined) {
1131
1142
  var converted = convert_2(refined);
1132
- var constraintExpr = convertConstraint(refined.ur_1, new VariableReference(Companion_getInstance().h1h('value')));
1133
- var validatorStr = TypeScriptGenerator_getInstance().k1x(constraintExpr);
1134
- return new File(converted.c1o_1, listOf([new RawElement('export type ' + converted.c1o_1.i1h() + ' = ' + emitTypeScriptReference(this, refined.ur_1) + ';'), new RawElement('export const validate' + refined.tr_1.m1() + ' = (value: ' + emitTypeScriptReference(this, refined.ur_1) + ') =>\n ' + validatorStr + ';')]));
1143
+ var constraintExpr = convertConstraint(refined.ls_1, new VariableReference(Companion_getInstance().vt('value')));
1144
+ var validatorStr = TypeScriptGenerator_getInstance().x1a(constraintExpr);
1145
+ return new File(converted.gv_1, listOf([new RawElement('export type ' + converted.gv_1.yt() + ' = ' + emitTypeScriptReference(this, refined.ls_1) + ';'), new RawElement('export const validate' + refined.ks_1.o1() + ' = (value: ' + emitTypeScriptReference(this, refined.ls_1) + ') =>\n ' + validatorStr + ';')]));
1135
1146
  };
1136
- protoOf(TypeScriptIrEmitter).bs = function (endpoint) {
1147
+ protoOf(TypeScriptEmitter).ss = function (endpoint) {
1137
1148
  // Inline function 'kotlin.collections.distinctBy' call
1138
1149
  var this_0 = importReferences(endpoint);
1139
1150
  var set = HashSet_init_$Create$();
@@ -1141,7 +1152,7 @@ protoOf(TypeScriptIrEmitter).bs = function (endpoint) {
1141
1152
  var _iterator__ex2g4s = this_0.t();
1142
1153
  while (_iterator__ex2g4s.u()) {
1143
1154
  var e = _iterator__ex2g4s.v();
1144
- var key = e.lv_1;
1155
+ var key = e.q18_1;
1145
1156
  if (set.x(key)) {
1146
1157
  list.x(e);
1147
1158
  }
@@ -1152,33 +1163,33 @@ protoOf(TypeScriptIrEmitter).bs = function (endpoint) {
1152
1163
  var _iterator__ex2g4s_0 = list.t();
1153
1164
  while (_iterator__ex2g4s_0.u()) {
1154
1165
  var item = _iterator__ex2g4s_0.v();
1155
- var tmp$ret$2 = import_0('../model', item.lv_1, true);
1156
- destination.x(tmp$ret$2);
1166
+ var tmp$ret$4 = import_0('../model', item.q18_1, true);
1167
+ destination.x(tmp$ret$4);
1157
1168
  }
1158
1169
  var imports = destination;
1159
1170
  // Inline function 'kotlin.collections.isNotEmpty' call
1160
1171
  var hasRequestParams = !requestParameters(endpoint).r();
1161
- // Inline function 'community.flock.wirespec.ir.core.transform' call
1172
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
1162
1173
  var this_1 = stripTrailingSpaceFromErrorMessage(convert_3(endpoint));
1163
1174
  var scope = new TransformScope(this_1);
1164
- scope.f1w(transformPatternSwitchToValueSwitch());
1165
- var tmp = scope.a1w_1;
1166
- var tmp$ret$7 = isInterface(tmp, Element) ? tmp : THROW_CCE();
1175
+ scope.y17(transformPatternSwitchToValueSwitch());
1176
+ var tmp = scope.t17_1;
1177
+ var tmp$ret$6 = isInterface(tmp, Element) ? tmp : THROW_CCE();
1167
1178
  // Inline function 'kotlin.let' call
1168
- var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).g1o(Companion_getInstance().h1h(sanitize(this, endpoint.kq_1))), _get_sanitizationConfig__sns434(this));
1179
+ var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$6, hasRequestParams), endpoint).kv(Companion_getInstance().vt(sanitize(this, endpoint.er_1))), _get_sanitizationConfig__sns434(this));
1169
1180
  var tmp_0;
1170
1181
  // Inline function 'kotlin.collections.isNotEmpty' call
1171
1182
  if (!imports.r()) {
1172
- tmp_0 = it.g1o(VOID, plus(imports, it.d1o_1));
1183
+ tmp_0 = it.kv(VOID, plus(imports, it.hv_1));
1173
1184
  } else {
1174
1185
  tmp_0 = it;
1175
1186
  }
1176
1187
  return tmp_0;
1177
1188
  };
1178
- protoOf(TypeScriptIrEmitter).pr = function (channel) {
1189
+ protoOf(TypeScriptEmitter).gs = function (channel) {
1179
1190
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1180
1191
  };
1181
- protoOf(TypeScriptIrEmitter).or = function (rpc) {
1192
+ protoOf(TypeScriptEmitter).fs = function (rpc) {
1182
1193
  // Inline function 'kotlin.let' call
1183
1194
  var file = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
1184
1195
  // Inline function 'kotlin.collections.distinctBy' call
@@ -1188,7 +1199,7 @@ protoOf(TypeScriptIrEmitter).or = function (rpc) {
1188
1199
  var _iterator__ex2g4s = this_0.t();
1189
1200
  while (_iterator__ex2g4s.u()) {
1190
1201
  var e = _iterator__ex2g4s.v();
1191
- var key = e.lv_1;
1202
+ var key = e.q18_1;
1192
1203
  if (set.x(key)) {
1193
1204
  list.x(e);
1194
1205
  }
@@ -1199,8 +1210,8 @@ protoOf(TypeScriptIrEmitter).or = function (rpc) {
1199
1210
  var _iterator__ex2g4s_0 = list.t();
1200
1211
  while (_iterator__ex2g4s_0.u()) {
1201
1212
  var item = _iterator__ex2g4s_0.v();
1202
- var tmp$ret$2 = import_0('../model', item.lv_1, true);
1203
- destination.x(tmp$ret$2);
1213
+ var tmp$ret$6 = import_0('../model', item.q18_1, true);
1214
+ destination.x(tmp$ret$6);
1204
1215
  }
1205
1216
  // Inline function 'kotlin.takeIf' call
1206
1217
  var tmp;
@@ -1216,13 +1227,13 @@ protoOf(TypeScriptIrEmitter).or = function (rpc) {
1216
1227
  tmp_0 = null;
1217
1228
  } else {
1218
1229
  // Inline function 'kotlin.let' call
1219
- tmp_0 = file.g1o(VOID, plus(tmp0_safe_receiver, file.d1o_1));
1230
+ tmp_0 = file.kv(VOID, plus(tmp0_safe_receiver, file.hv_1));
1220
1231
  }
1221
1232
  var tmp1_elvis_lhs = tmp_0;
1222
1233
  return tmp1_elvis_lhs == null ? file : tmp1_elvis_lhs;
1223
1234
  };
1224
- protoOf(TypeScriptIrEmitter).v1w = function (endpoint) {
1225
- var endpointName = endpoint.kq_1.m1();
1235
+ protoOf(TypeScriptEmitter).i1a = function (endpoint) {
1236
+ var endpointName = endpoint.er_1.o1();
1226
1237
  var methodName = firstToLower(this, endpointName);
1227
1238
  // Inline function 'kotlin.collections.distinctBy' call
1228
1239
  var this_0 = importReferences(endpoint);
@@ -1231,7 +1242,7 @@ protoOf(TypeScriptIrEmitter).v1w = function (endpoint) {
1231
1242
  var _iterator__ex2g4s = this_0.t();
1232
1243
  while (_iterator__ex2g4s.u()) {
1233
1244
  var e = _iterator__ex2g4s.v();
1234
- var key = e.lv_1;
1245
+ var key = e.q18_1;
1235
1246
  if (set.x(key)) {
1236
1247
  list.x(e);
1237
1248
  }
@@ -1242,8 +1253,8 @@ protoOf(TypeScriptIrEmitter).v1w = function (endpoint) {
1242
1253
  var _iterator__ex2g4s_0 = list.t();
1243
1254
  while (_iterator__ex2g4s_0.u()) {
1244
1255
  var item = _iterator__ex2g4s_0.v();
1245
- var tmp$ret$2 = import_0('../model', item.lv_1, true);
1246
- destination.x(tmp$ret$2);
1256
+ var tmp$ret$4 = import_0('../model', item.q18_1, true);
1257
+ destination.x(tmp$ret$4);
1247
1258
  }
1248
1259
  var imports = destination;
1249
1260
  var params = buildEndpointParams(this, endpoint);
@@ -1264,7 +1275,7 @@ protoOf(TypeScriptIrEmitter).v1w = function (endpoint) {
1264
1275
  }
1265
1276
  var requestArgs = tmp_0;
1266
1277
  var code = trimMargin('\n |export const ' + methodName + 'Client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n | ' + methodName + ': async (' + paramList + '): Promise<' + endpointName + '.Response<unknown>> => {\n | const request: ' + endpointName + '.Request = ' + requestArgs + ';\n | const rawRequest = ' + endpointName + '.toRawRequest(serialization, request);\n | const rawResponse = await transportation.transport(rawRequest);\n | return ' + endpointName + '.fromRawResponse(serialization, rawResponse);\n | }\n |})\n ');
1267
- var tmp_1 = Companion_getInstance().h1h('client/' + endpointName + 'Client');
1278
+ var tmp_1 = Companion_getInstance().vt('client/' + endpointName + 'Client');
1268
1279
  // Inline function 'kotlin.collections.buildList' call
1269
1280
  // Inline function 'kotlin.collections.buildListInternal' call
1270
1281
  // Inline function 'kotlin.apply' call
@@ -1273,25 +1284,25 @@ protoOf(TypeScriptIrEmitter).v1w = function (endpoint) {
1273
1284
  this_1.x(import_0('../endpoint/' + endpointName, endpointName));
1274
1285
  this_1.g1(imports);
1275
1286
  this_1.x(new RawElement(code));
1276
- var tmp$ret$10 = this_1.p5();
1277
- return new File(tmp_1, tmp$ret$10);
1287
+ var tmp$ret$7 = this_1.q5();
1288
+ return new File(tmp_1, tmp$ret$7);
1278
1289
  };
1279
- protoOf(TypeScriptIrEmitter).s1w = function (endpoints, logger) {
1280
- logger.ir('Emitting main Client for ' + endpoints.b1() + ' endpoints');
1290
+ protoOf(TypeScriptEmitter).c1a = function (endpoints, logger) {
1291
+ logger.zr('Emitting main Client for ' + endpoints.b1() + ' endpoints');
1281
1292
  // Inline function 'kotlin.collections.map' call
1282
1293
  // Inline function 'kotlin.collections.mapTo' call
1283
1294
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(endpoints, 10));
1284
1295
  var _iterator__ex2g4s = endpoints.t();
1285
1296
  while (_iterator__ex2g4s.u()) {
1286
1297
  var item = _iterator__ex2g4s.v();
1287
- var methodName = firstToLower(this, item.kq_1.m1());
1288
- var tmp$ret$0 = import_0('./client/' + item.kq_1.m1() + 'Client', methodName + 'Client');
1289
- destination.x(tmp$ret$0);
1298
+ var methodName = firstToLower(this, item.er_1.o1());
1299
+ var tmp$ret$2 = import_0('./client/' + item.er_1.o1() + 'Client', methodName + 'Client');
1300
+ destination.x(tmp$ret$2);
1290
1301
  }
1291
1302
  var clientImports = destination;
1292
- var spreadEntries = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emitClient$lambda(this));
1303
+ var spreadEntries = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emitClient$lambda(this));
1293
1304
  var code = trimMargin('\n |export const client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n |' + spreadEntries + '\n |})\n ');
1294
- var tmp = Companion_getInstance().h1h('Client');
1305
+ var tmp = Companion_getInstance().vt('Client');
1295
1306
  // Inline function 'kotlin.collections.buildList' call
1296
1307
  // Inline function 'kotlin.collections.buildListInternal' call
1297
1308
  // Inline function 'kotlin.apply' call
@@ -1299,35 +1310,35 @@ protoOf(TypeScriptIrEmitter).s1w = function (endpoints, logger) {
1299
1310
  this_0.x(import_0('./Wirespec', 'Wirespec'));
1300
1311
  this_0.g1(clientImports);
1301
1312
  this_0.x(new RawElement(code));
1302
- var tmp$ret$6 = this_0.p5();
1303
- return new File(tmp, tmp$ret$6);
1313
+ var tmp$ret$3 = this_0.q5();
1314
+ return new File(tmp, tmp$ret$3);
1304
1315
  };
1305
1316
  function transformPatternSwitchToValueSwitch() {
1306
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
1317
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
1307
1318
  // Inline function 'kotlin.apply' call
1308
1319
  var this_0 = new TransformerBuilder();
1309
- this_0.h1w(transformPatternSwitchToValueSwitch$lambda);
1310
- return this_0.v1i();
1320
+ this_0.j18(transformPatternSwitchToValueSwitch$lambda);
1321
+ return this_0.i18();
1311
1322
  }
1312
1323
  function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
1313
- // Inline function 'community.flock.wirespec.ir.core.transform' call
1324
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
1314
1325
  var scope = new TransformScope(_this__u8e3s4);
1315
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1326
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
1316
1327
  var tmp = scope;
1317
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1318
- var this_0 = scope.a1w_1;
1319
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
1328
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
1329
+ var this_0 = scope.t17_1;
1330
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
1320
1331
  // Inline function 'kotlin.apply' call
1321
1332
  var this_1 = new TransformerBuilder();
1322
- this_1.u1i(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
1323
- var tmp$ret$2 = this_1.v1i();
1324
- tmp.a1w_1 = transform(this_0, tmp$ret$2);
1325
- var tmp_0 = scope.a1w_1;
1333
+ this_1.n18(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
1334
+ var tmp$ret$4 = this_1.i18();
1335
+ tmp.t17_1 = transform(this_0, tmp$ret$4);
1336
+ var tmp_0 = scope.t17_1;
1326
1337
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1327
1338
  }
1328
1339
  function buildApiConst(endpoint) {
1329
1340
  // Inline function 'kotlin.text.replaceFirstChar' call
1330
- var this_0 = endpoint.kq_1.m1();
1341
+ var this_0 = endpoint.er_1.o1();
1331
1342
  var tmp;
1332
1343
  // Inline function 'kotlin.text.isNotEmpty' call
1333
1344
  if (charSequenceLength(this_0) > 0) {
@@ -1335,37 +1346,37 @@ function buildApiConst(endpoint) {
1335
1346
  var this_1 = charCodeAt(this_0, 0);
1336
1347
  // Inline function 'kotlin.js.asDynamic' call
1337
1348
  // Inline function 'kotlin.js.unsafeCast' call
1338
- var tmp$ret$4 = toString(this_1).toLowerCase();
1339
- tmp = toString_0(tmp$ret$4) + substring(this_0, 1);
1349
+ var tmp$ret$2 = toString(this_1).toLowerCase();
1350
+ tmp = toString_0(tmp$ret$2) + substring(this_0, 1);
1340
1351
  } else {
1341
1352
  tmp = this_0;
1342
1353
  }
1343
1354
  var apiName = tmp;
1344
- var method = endpoint.lq_1.b3_1;
1345
- var pathString = joinToString(endpoint.mq_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
1355
+ var method = endpoint.fr_1.d3_1;
1356
+ var pathString = joinToString(endpoint.gr_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
1346
1357
  return raw(trimMargin('\n |export const client:Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n | from: (it) => fromRawResponse(serialization, it),\n | to: (it) => toRawRequest(serialization, it)\n |})\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n | from: (it) => fromRawRequest(serialization, it),\n | to: (it) => toRawResponse(serialization, it)\n |})\n |export const api = {\n | name: "' + apiName + '",\n | method: "' + method + '",\n | path: "' + pathString + '",\n | server,\n | client\n |} as const\n '));
1347
1358
  }
1348
1359
  function bindCallToRequestParams(_this__u8e3s4) {
1349
- // Inline function 'community.flock.wirespec.ir.core.transform' call
1360
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
1350
1361
  var scope = new TransformScope(_this__u8e3s4);
1351
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1362
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
1352
1363
  var tmp = scope;
1353
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1354
- var this_0 = scope.a1w_1;
1355
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
1364
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
1365
+ var this_0 = scope.t17_1;
1366
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
1356
1367
  // Inline function 'kotlin.apply' call
1357
1368
  var this_1 = new TransformerBuilder();
1358
- this_1.u1i(bindCallToRequestParams$lambda);
1359
- var tmp$ret$2 = this_1.v1i();
1360
- tmp.a1w_1 = transform(this_0, tmp$ret$2);
1361
- var tmp_0 = scope.a1w_1;
1369
+ this_1.n18(bindCallToRequestParams$lambda);
1370
+ var tmp$ret$4 = this_1.i18();
1371
+ tmp.t17_1 = transform(this_0, tmp$ret$4);
1372
+ var tmp_0 = scope.t17_1;
1362
1373
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1363
1374
  }
1364
1375
  function stripTrailingSpaceFromErrorMessage(_this__u8e3s4) {
1365
- // Inline function 'community.flock.wirespec.ir.core.transform' call
1376
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
1366
1377
  var scope = new TransformScope(_this__u8e3s4);
1367
- scope.h1w(stripTrailingSpaceFromErrorMessage$lambda);
1368
- var tmp = scope.a1w_1;
1378
+ scope.j18(stripTrailingSpaceFromErrorMessage$lambda);
1379
+ var tmp = scope.t17_1;
1369
1380
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1370
1381
  }
1371
1382
  function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
@@ -1373,7 +1384,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1373
1384
  if (!(stmt instanceof Switch)) {
1374
1385
  tmp = true;
1375
1386
  } else {
1376
- var tmp0 = stmt.e1r_1;
1387
+ var tmp0 = stmt.uy_1;
1377
1388
  var tmp$ret$0;
1378
1389
  $l$block_0: {
1379
1390
  // Inline function 'kotlin.collections.none' call
@@ -1390,7 +1401,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1390
1401
  var _iterator__ex2g4s = tmp0.t();
1391
1402
  while (_iterator__ex2g4s.u()) {
1392
1403
  var element = _iterator__ex2g4s.v();
1393
- if (!(element.l1r_1 == null)) {
1404
+ if (!(element.bz_1 == null)) {
1394
1405
  tmp$ret$0 = false;
1395
1406
  break $l$block_0;
1396
1407
  }
@@ -1401,60 +1412,60 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1401
1412
  }
1402
1413
  if (tmp)
1403
1414
  return transformChildren(stmt, tr);
1404
- var tmp0_safe_receiver = stmt.g1r_1;
1405
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1m();
1415
+ var tmp0_safe_receiver = stmt.wy_1;
1416
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xt();
1406
1417
  var varName = tmp1_elvis_lhs == null ? 'r' : tmp1_elvis_lhs;
1407
1418
  // Inline function 'kotlin.collections.map' call
1408
- var this_0 = stmt.e1r_1;
1419
+ var this_0 = stmt.uy_1;
1409
1420
  // Inline function 'kotlin.collections.mapTo' call
1410
1421
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1411
1422
  var _iterator__ex2g4s_0 = this_0.t();
1412
1423
  while (_iterator__ex2g4s_0.u()) {
1413
1424
  var item = _iterator__ex2g4s_0.v();
1414
- var tmp$ret$5;
1425
+ var tmp$ret$4;
1415
1426
  $l$block_1: {
1416
- var tmp_1 = item.l1r_1;
1417
- var tmp0_safe_receiver_0 = tmp_1 instanceof Custom ? tmp_1 : null;
1418
- var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.e1j_1;
1419
- var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i1h();
1427
+ var tmp_1 = item.bz_1;
1428
+ var tmp0_safe_receiver_0 = tmp_1 instanceof Custom_0 ? tmp_1 : null;
1429
+ var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.pu_1;
1430
+ var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.yt();
1420
1431
  var tmp3_safe_receiver = typeName == null ? null : substringAfterLast(typeName, '.');
1421
1432
  var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : removePrefix(tmp3_safe_receiver, 'Response');
1422
1433
  var statusNum = tmp4_safe_receiver == null ? null : toIntOrNull(tmp4_safe_receiver);
1423
1434
  if (statusNum == null) {
1424
1435
  // Inline function 'kotlin.collections.map' call
1425
- var this_1 = item.k1r_1;
1436
+ var this_1 = item.az_1;
1426
1437
  // Inline function 'kotlin.collections.mapTo' call
1427
1438
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1428
1439
  var _iterator__ex2g4s_1 = this_1.t();
1429
1440
  while (_iterator__ex2g4s_1.u()) {
1430
1441
  var item_0 = _iterator__ex2g4s_1.v();
1431
- var tmp$ret$2 = tr.u1v(item_0);
1432
- destination_0.x(tmp$ret$2);
1442
+ var tmp$ret$7 = tr.n17(item_0);
1443
+ destination_0.x(tmp$ret$7);
1433
1444
  }
1434
- tmp$ret$5 = item.n1r(VOID, destination_0);
1445
+ tmp$ret$4 = item.dz(VOID, destination_0);
1435
1446
  break $l$block_1;
1436
1447
  }
1437
- var exprCode = TypeScriptGenerator_getInstance().k1x(tr.v1v(stmt.d1r_1));
1438
- var castAssignment = new Assignment(Companion_getInstance().h1h(varName), new RawExpression(exprCode + ' as ' + typeName), false);
1439
- var tmp_2 = new Literal(statusNum, new Integer());
1448
+ var exprCode = TypeScriptGenerator_getInstance().x1a(tr.o17(stmt.ty_1));
1449
+ var castAssignment = new Assignment(Companion_getInstance().vt(varName), new RawExpression(exprCode + ' as ' + typeName), false);
1450
+ var tmp_2 = new Literal(statusNum, new Integer_0());
1440
1451
  var tmp_3 = listOf_0(castAssignment);
1441
1452
  // Inline function 'kotlin.collections.map' call
1442
- var this_2 = item.k1r_1;
1453
+ var this_2 = item.az_1;
1443
1454
  // Inline function 'kotlin.collections.mapTo' call
1444
1455
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
1445
1456
  var _iterator__ex2g4s_2 = this_2.t();
1446
1457
  while (_iterator__ex2g4s_2.u()) {
1447
1458
  var item_1 = _iterator__ex2g4s_2.v();
1448
- var tmp$ret$6 = tr.u1v(item_1);
1449
- destination_1.x(tmp$ret$6);
1459
+ var tmp$ret$10 = tr.n17(item_1);
1460
+ destination_1.x(tmp$ret$10);
1450
1461
  }
1451
- tmp$ret$5 = new Case(tmp_2, plus(tmp_3, destination_1), null);
1462
+ tmp$ret$4 = new Case(tmp_2, plus(tmp_3, destination_1), null);
1452
1463
  }
1453
- destination.x(tmp$ret$5);
1464
+ destination.x(tmp$ret$4);
1454
1465
  }
1455
1466
  var transformedCases = destination;
1456
- var tmp_4 = new FieldCall(tr.v1v(stmt.d1r_1), Companion_getInstance().h1h('status'));
1457
- var tmp2_safe_receiver = stmt.f1r_1;
1467
+ var tmp_4 = new FieldCall(tr.o17(stmt.ty_1), Companion_getInstance().vt('status'));
1468
+ var tmp2_safe_receiver = stmt.vy_1;
1458
1469
  var tmp_5;
1459
1470
  if (tmp2_safe_receiver == null) {
1460
1471
  tmp_5 = null;
@@ -1465,8 +1476,8 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1465
1476
  var _iterator__ex2g4s_3 = tmp2_safe_receiver.t();
1466
1477
  while (_iterator__ex2g4s_3.u()) {
1467
1478
  var item_2 = _iterator__ex2g4s_3.v();
1468
- var tmp$ret$11 = tr.u1v(item_2);
1469
- destination_2.x(tmp$ret$11);
1479
+ var tmp$ret$13 = tr.n17(item_2);
1480
+ destination_2.x(tmp$ret$13);
1470
1481
  }
1471
1482
  tmp_5 = destination_2;
1472
1483
  }
@@ -1478,9 +1489,9 @@ function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
1478
1489
  var tmp_0;
1479
1490
  if (s instanceof FunctionCall) {
1480
1491
  var tmp_1;
1481
- if (s.d1n_1.equals(Companion_getInstance().h1h('validate')) && !(s.b1n_1 == null)) {
1492
+ if (s.du_1.equals(Companion_getInstance().vt('validate')) && !(s.bu_1 == null)) {
1482
1493
  // Inline function 'kotlin.collections.isNotEmpty' call
1483
- tmp_1 = !s.c1n_1.r();
1494
+ tmp_1 = !s.cu_1.r();
1484
1495
  } else {
1485
1496
  tmp_1 = false;
1486
1497
  }
@@ -1489,21 +1500,21 @@ function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
1489
1500
  tmp_0 = false;
1490
1501
  }
1491
1502
  if (tmp_0) {
1492
- var tmp_2 = first(s.c1n_1);
1493
- var tmp1_safe_receiver = tmp_2 instanceof Custom ? tmp_2 : null;
1494
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e1j_1;
1495
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i1h();
1503
+ var tmp_2 = first(s.cu_1);
1504
+ var tmp1_safe_receiver = tmp_2 instanceof Custom_0 ? tmp_2 : null;
1505
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pu_1;
1506
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.yt();
1496
1507
  var tn = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
1497
- tmp = new FunctionCall(VOID, VOID, Companion_getInstance().h1h('validate' + tn), mapOf(to(Companion_getInstance().h1h('obj'), t.v1v(ensureNotNull(s.b1n_1)))));
1508
+ tmp = new FunctionCall(VOID, VOID, Companion_getInstance().vt('validate' + tn), mapOf(to(Companion_getInstance().vt('obj'), t.o17(ensureNotNull(s.bu_1)))));
1498
1509
  } else {
1499
1510
  var tmp_3;
1500
1511
  if (s instanceof FieldCall) {
1501
- tmp_3 = (s.o1r_1 == null && $fieldNames.v1(s.p1r_1.t1m()));
1512
+ tmp_3 = (s.ez_1 == null && $fieldNames.i1(s.fz_1.xt()));
1502
1513
  } else {
1503
1514
  tmp_3 = false;
1504
1515
  }
1505
1516
  if (tmp_3) {
1506
- tmp = new FieldCall(new VariableReference(Companion_getInstance().h1h('obj')), s.p1r_1);
1517
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().vt('obj')), s.fz_1);
1507
1518
  } else {
1508
1519
  tmp = transformChildren(s, t);
1509
1520
  }
@@ -1517,15 +1528,15 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
1517
1528
  if (element instanceof Function) {
1518
1529
  var tmp$ret$0;
1519
1530
  $l$block: {
1520
- if (!element.e1l_1.equals(Companion_getInstance().h1h('validate'))) {
1531
+ if (!element.sx_1.equals(Companion_getInstance().vt('validate'))) {
1521
1532
  tmp$ret$0 = element;
1522
1533
  break $l$block;
1523
1534
  }
1524
- // Inline function 'community.flock.wirespec.ir.core.transform' call
1525
- var this_0 = element.p1l(Companion_getInstance().h1h('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().h1h('obj'), Custom_init_$Create$($typeName))));
1535
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
1536
+ var this_0 = element.ey(Companion_getInstance().vt('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().vt('obj'), Custom_init_$Create$($typeName))));
1526
1537
  var scope = new TransformScope(this_0);
1527
- scope.j1w(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
1528
- var tmp_0 = scope.a1w_1;
1538
+ scope.l18(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
1539
+ var tmp_0 = scope.t17_1;
1529
1540
  tmp$ret$0 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1530
1541
  }
1531
1542
  tmp = tmp$ret$0;
@@ -1539,10 +1550,10 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
1539
1550
  function buildApiConst$lambda(it) {
1540
1551
  var tmp;
1541
1552
  if (it instanceof Literal_0) {
1542
- tmp = it.bu_1;
1553
+ tmp = it.z19_1;
1543
1554
  } else {
1544
1555
  if (it instanceof Param) {
1545
- tmp = '{' + it.rq_1.m1() + '}';
1556
+ tmp = '{' + it.lr_1.o1() + '}';
1546
1557
  } else {
1547
1558
  noWhenBranchMatchedException();
1548
1559
  }
@@ -1554,23 +1565,23 @@ function bindCallToRequestParams$lambda(element, transformer) {
1554
1565
  if (element instanceof Interface) {
1555
1566
  var tmp$ret$0;
1556
1567
  $l$block: {
1557
- if (!element.o1o_1.equals(Companion_getInstance().h1h('Call'))) {
1568
+ if (!element.sv_1.equals(Companion_getInstance().vt('Call'))) {
1558
1569
  tmp$ret$0 = element;
1559
1570
  break $l$block;
1560
1571
  }
1561
1572
  // Inline function 'kotlin.collections.map' call
1562
- var this_0 = element.p1o_1;
1573
+ var this_0 = element.tv_1;
1563
1574
  // Inline function 'kotlin.collections.mapTo' call
1564
1575
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1565
1576
  var _iterator__ex2g4s = this_0.t();
1566
1577
  while (_iterator__ex2g4s.u()) {
1567
1578
  var item = _iterator__ex2g4s.v();
1568
1579
  var tmp0_safe_receiver = item instanceof Function ? item : null;
1569
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1l(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().h1h('params'), Custom_init_$Create$('RequestParams'))));
1570
- var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1571
- destination.x(tmp$ret$1);
1580
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ey(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().vt('params'), Custom_init_$Create$('RequestParams'))));
1581
+ var tmp$ret$3 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1582
+ destination.x(tmp$ret$3);
1572
1583
  }
1573
- tmp$ret$0 = element.w1o(VOID, destination);
1584
+ tmp$ret$0 = element.aw(VOID, destination);
1574
1585
  }
1575
1586
  tmp = tmp$ret$0;
1576
1587
  } else {
@@ -1582,7 +1593,7 @@ function bindCallToRequestParams$lambda(element, transformer) {
1582
1593
  function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1583
1594
  var tmp;
1584
1595
  if (stmt instanceof Switch) {
1585
- var tmp1_safe_receiver = stmt.f1r_1;
1596
+ var tmp1_safe_receiver = stmt.vy_1;
1586
1597
  var tmp_0;
1587
1598
  if (tmp1_safe_receiver == null) {
1588
1599
  tmp_0 = null;
@@ -1593,57 +1604,58 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1593
1604
  var _iterator__ex2g4s = tmp1_safe_receiver.t();
1594
1605
  while (_iterator__ex2g4s.u()) {
1595
1606
  var item = _iterator__ex2g4s.v();
1596
- var tmp$ret$0;
1607
+ var tmp$ret$2;
1597
1608
  $l$block_1: {
1598
1609
  var tmp0_elvis_lhs = item instanceof ErrorStatement ? item : null;
1599
1610
  var tmp_1;
1600
1611
  if (tmp0_elvis_lhs == null) {
1601
- tmp$ret$0 = item;
1612
+ tmp$ret$2 = item;
1602
1613
  break $l$block_1;
1603
1614
  } else {
1604
1615
  tmp_1 = tmp0_elvis_lhs;
1605
1616
  }
1606
1617
  var errorStmt = tmp_1;
1607
- var tmp_2 = errorStmt.x1r_1;
1618
+ var tmp_2 = errorStmt.nz_1;
1608
1619
  var tmp1_elvis_lhs = tmp_2 instanceof BinaryOp ? tmp_2 : null;
1609
1620
  var tmp_3;
1610
1621
  if (tmp1_elvis_lhs == null) {
1611
- tmp$ret$0 = item;
1622
+ tmp$ret$2 = item;
1612
1623
  break $l$block_1;
1613
1624
  } else {
1614
1625
  tmp_3 = tmp1_elvis_lhs;
1615
1626
  }
1616
1627
  var binary = tmp_3;
1617
- var tmp_4 = binary.y1r_1;
1628
+ var tmp_4 = binary.oz_1;
1618
1629
  var tmp2_elvis_lhs = tmp_4 instanceof Literal ? tmp_4 : null;
1619
1630
  var tmp_5;
1620
1631
  if (tmp2_elvis_lhs == null) {
1621
- tmp$ret$0 = item;
1632
+ tmp$ret$2 = item;
1622
1633
  break $l$block_1;
1623
1634
  } else {
1624
1635
  tmp_5 = tmp2_elvis_lhs;
1625
1636
  }
1626
1637
  var literal = tmp_5;
1627
- tmp$ret$0 = new ErrorStatement(new Literal(trimEnd(toString_0(literal.z1q_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.a1r_1));
1638
+ tmp$ret$2 = new ErrorStatement(new Literal(trimEnd(toString_0(literal.py_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.qy_1));
1628
1639
  }
1629
- destination.x(tmp$ret$0);
1640
+ destination.x(tmp$ret$2);
1630
1641
  }
1631
1642
  tmp_0 = destination;
1632
1643
  }
1633
- tmp = transformChildren(stmt.i1r(VOID, VOID, tmp_0), transformer);
1644
+ tmp = transformChildren(stmt.yy(VOID, VOID, tmp_0), transformer);
1634
1645
  } else {
1635
1646
  tmp = transformChildren(stmt, transformer);
1636
1647
  }
1637
1648
  return tmp;
1638
1649
  }
1639
1650
  //region block: post-declaration
1640
- protoOf(TypeScriptIrEmitter).p1w = get_extensions;
1641
- protoOf(TypeScriptIrEmitter).q1w = emit_1;
1642
- protoOf(TypeScriptIrEmitter).u1w = beforeGenerate;
1651
+ protoOf(TypeScriptEmitter).d1a = get_extensions;
1652
+ protoOf(TypeScriptEmitter).a1a = emit_1;
1653
+ protoOf(TypeScriptEmitter).f1a = beforeGenerate;
1654
+ protoOf(TypeScriptEmitter).up = get_supportsDefaults;
1643
1655
  //endregion
1644
1656
  //region block: exports
1645
1657
  export {
1646
- TypeScriptIrEmitter as TypeScriptIrEmitter3q01omscsvyj9,
1658
+ TypeScriptEmitter as TypeScriptEmitter1b8xo1btx35xi,
1647
1659
  };
1648
1660
  //endregion
1649
1661