game_client_logic_deb 1.8.347 → 1.8.349

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 (43) hide show
  1. package/Kosi-Kaverit-kaverit.js +78 -78
  2. package/Kosi-Kodein-kodein-di.js +653 -653
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +1760 -1760
  4. package/Logic_Debertz-core.js +1706 -1706
  5. package/Logic_Debertz-engine.js +14599 -14593
  6. package/Logic_Debertz-engine.js.map +1 -1
  7. package/Logic_Debertz-game_client.d.ts +1 -0
  8. package/Logic_Debertz-game_client.js +4950 -4933
  9. package/Logic_Debertz-game_client.js.map +1 -1
  10. package/error-library-error.js +53 -0
  11. package/error-library-error.js.map +1 -0
  12. package/kotlin-kotlin-stdlib.js +3043 -2809
  13. package/kotlin-kotlin-stdlib.js.map +1 -1
  14. package/kotlinx-atomicfu.js +24 -24
  15. package/kotlinx-coroutines-core.js +2887 -2887
  16. package/kotlinx-coroutines-core.js.map +1 -1
  17. package/kotlinx-io-kotlinx-io-core.js +356 -356
  18. package/kotlinx-serialization-kotlinx-serialization-core.js +2044 -2044
  19. package/kotlinx-serialization-kotlinx-serialization-json.js +1583 -1583
  20. package/ktor-ktor-client-content-negotiation.js +221 -221
  21. package/ktor-ktor-client-core.js +2549 -2549
  22. package/ktor-ktor-client-logging.js +559 -559
  23. package/ktor-ktor-events.js +12 -12
  24. package/ktor-ktor-http.js +765 -765
  25. package/ktor-ktor-io.js +1645 -1645
  26. package/ktor-ktor-serialization-kotlinx-json.js +7 -7
  27. package/ktor-ktor-serialization-kotlinx.js +279 -279
  28. package/ktor-ktor-serialization.js +134 -134
  29. package/ktor-ktor-utils.js +743 -743
  30. package/ktor-ktor-websockets.js +59 -59
  31. package/package.json +1 -1
  32. package/random-library-crypto-rand.js +251 -0
  33. package/random-library-crypto-rand.js.map +1 -0
  34. package/random-library-secure-random.js +93 -0
  35. package/random-library-secure-random.js.map +1 -0
  36. package/raspberry-cardgame-lib-core.js +296 -296
  37. package/raspberry-cardgame-lib-core.js.map +1 -1
  38. package/raspberry-cardgame-lib-logger.js +107 -107
  39. package/raspberry-cardgame-lib-random.js +1045 -981
  40. package/raspberry-cardgame-lib-random.js.map +1 -1
  41. package/uuid.js +33 -33
  42. package/secure-random-secure-random.js +0 -174
  43. package/secure-random-secure-random.js.map +0 -1
@@ -27,20 +27,20 @@
27
27
  }(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io) {
28
28
  'use strict';
29
29
  //region block: imports
30
- var protoOf = kotlin_kotlin.$_$.oc;
31
- var initMetadataForClass = kotlin_kotlin.$_$.nb;
32
- var CoroutineImpl = kotlin_kotlin.$_$.pa;
33
- var Unit_instance = kotlin_kotlin.$_$.h5;
34
- var THROW_CCE = kotlin_kotlin.$_$.og;
30
+ var protoOf = kotlin_kotlin.$_$.qc;
31
+ var initMetadataForClass = kotlin_kotlin.$_$.pb;
32
+ var CoroutineImpl = kotlin_kotlin.$_$.ra;
33
+ var Unit_instance = kotlin_kotlin.$_$.j5;
34
+ var THROW_CCE = kotlin_kotlin.$_$.pg;
35
35
  var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
36
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.aa;
37
- var initMetadataForLambda = kotlin_kotlin.$_$.rb;
36
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
37
+ var initMetadataForLambda = kotlin_kotlin.$_$.tb;
38
38
  var VOID = kotlin_kotlin.$_$.f;
39
39
  var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.p;
40
40
  var contentType = kotlin_io_ktor_ktor_http.$_$.e1;
41
41
  var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
42
- var plus = kotlin_kotlin.$_$.p8;
43
- var toMutableSet = kotlin_kotlin.$_$.r9;
42
+ var plus = kotlin_kotlin.$_$.r8;
43
+ var toMutableSet = kotlin_kotlin.$_$.t9;
44
44
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
45
45
  var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
46
46
  var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
@@ -49,38 +49,38 @@
49
49
  var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
50
50
  var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.g;
51
51
  var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
52
- var initMetadataForObject = kotlin_kotlin.$_$.sb;
53
- var toString = kotlin_kotlin.$_$.tc;
52
+ var initMetadataForObject = kotlin_kotlin.$_$.ub;
53
+ var toString = kotlin_kotlin.$_$.uc;
54
54
  var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
55
55
  var accept = kotlin_io_ktor_ktor_client_core.$_$.m;
56
- var Collection = kotlin_kotlin.$_$.j5;
57
- var isInterface = kotlin_kotlin.$_$.bc;
56
+ var Collection = kotlin_kotlin.$_$.l5;
57
+ var isInterface = kotlin_kotlin.$_$.dc;
58
58
  var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
59
59
  var getKClassFromExpression = kotlin_kotlin.$_$.d;
60
60
  var contentType_0 = kotlin_io_ktor_ktor_http.$_$.d1;
61
61
  var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.h;
62
- var Unit = kotlin_kotlin.$_$.zg;
62
+ var Unit = kotlin_kotlin.$_$.ah;
63
63
  var charset = kotlin_io_ktor_ktor_http.$_$.b1;
64
64
  var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
65
- var ensureNotNull = kotlin_kotlin.$_$.fh;
65
+ var ensureNotNull = kotlin_kotlin.$_$.gh;
66
66
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
67
- var equals = kotlin_kotlin.$_$.gb;
68
- var joinToString = kotlin_kotlin.$_$.x7;
69
- var initMetadataForCoroutine = kotlin_kotlin.$_$.pb;
67
+ var equals = kotlin_kotlin.$_$.ib;
68
+ var joinToString = kotlin_kotlin.$_$.z7;
69
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
70
70
  var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.h1;
71
- var collectionSizeOrDefault = kotlin_kotlin.$_$.k6;
71
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.m6;
72
72
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
73
73
  var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
74
- var Exception = kotlin_kotlin.$_$.fg;
74
+ var Exception = kotlin_kotlin.$_$.gg;
75
75
  var Exception_init_$Init$ = kotlin_kotlin.$_$.j1;
76
- var captureStack = kotlin_kotlin.$_$.xa;
76
+ var captureStack = kotlin_kotlin.$_$.za;
77
77
  var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.g;
78
- var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.u4;
78
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.w4;
79
79
  var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.s;
80
80
  var getKClass = kotlin_kotlin.$_$.e;
81
- var setOf = kotlin_kotlin.$_$.z8;
82
- var startsWith = kotlin_kotlin.$_$.ue;
83
- var endsWith = kotlin_kotlin.$_$.xd;
81
+ var setOf = kotlin_kotlin.$_$.b9;
82
+ var startsWith = kotlin_kotlin.$_$.ve;
83
+ var endsWith = kotlin_kotlin.$_$.yd;
84
84
  var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.w;
85
85
  //endregion
86
86
  //region block: pre-declaration
@@ -107,61 +107,61 @@
107
107
  }
108
108
  var DefaultCommonIgnoredTypes;
109
109
  function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
110
- this.x43_1 = converter;
111
- this.y43_1 = contentTypeToSend;
112
- this.z43_1 = contentTypeMatcher;
110
+ this.l44_1 = converter;
111
+ this.m44_1 = contentTypeToSend;
112
+ this.n44_1 = contentTypeMatcher;
113
113
  }
114
114
  function defaultMatcher($this, pattern) {
115
115
  return new ContentNegotiation$Config$defaultMatcher$1(pattern);
116
116
  }
117
117
  function ContentNegotiation$Config$defaultMatcher$1($pattern) {
118
- this.a44_1 = $pattern;
118
+ this.o44_1 = $pattern;
119
119
  }
120
- protoOf(ContentNegotiation$Config$defaultMatcher$1).b44 = function (contentType) {
121
- return contentType.h2h(this.a44_1);
120
+ protoOf(ContentNegotiation$Config$defaultMatcher$1).p44 = function (contentType) {
121
+ return contentType.v2h(this.o44_1);
122
122
  };
123
123
  function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
124
- this.k44_1 = $plugin;
124
+ this.y44_1 = $plugin;
125
125
  CoroutineImpl.call(this, resultContinuation);
126
126
  }
127
- protoOf(ContentNegotiation$Plugin$install$slambda).y2v = function ($this$intercept, it, $completion) {
128
- var tmp = this.z2v($this$intercept, it, $completion);
129
- tmp.l9_1 = Unit_instance;
130
- tmp.m9_1 = null;
131
- return tmp.r9();
127
+ protoOf(ContentNegotiation$Plugin$install$slambda).m2w = function ($this$intercept, it, $completion) {
128
+ var tmp = this.n2w($this$intercept, it, $completion);
129
+ tmp.n9_1 = Unit_instance;
130
+ tmp.o9_1 = null;
131
+ return tmp.t9();
132
132
  };
133
- protoOf(ContentNegotiation$Plugin$install$slambda).aa = function (p1, p2, $completion) {
133
+ protoOf(ContentNegotiation$Plugin$install$slambda).ea = function (p1, p2, $completion) {
134
134
  var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
135
- return this.y2v(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
135
+ return this.m2w(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
136
136
  };
137
- protoOf(ContentNegotiation$Plugin$install$slambda).r9 = function () {
138
- var suspendResult = this.l9_1;
137
+ protoOf(ContentNegotiation$Plugin$install$slambda).t9 = function () {
138
+ var suspendResult = this.n9_1;
139
139
  $sm: do
140
140
  try {
141
- var tmp = this.j9_1;
141
+ var tmp = this.l9_1;
142
142
  switch (tmp) {
143
143
  case 0:
144
- this.k9_1 = 3;
145
- this.j9_1 = 1;
146
- suspendResult = this.k44_1.r44(this.l44_1.r2e_1, this.l44_1.u2d(), this);
144
+ this.m9_1 = 3;
145
+ this.l9_1 = 1;
146
+ suspendResult = this.y44_1.f45(this.z44_1.f2f_1, this.z44_1.i2e(), this);
147
147
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
148
148
  return suspendResult;
149
149
  }
150
150
 
151
151
  continue $sm;
152
152
  case 1:
153
- this.n44_1 = suspendResult;
153
+ this.b45_1 = suspendResult;
154
154
  var tmp_0 = this;
155
155
  var tmp_1;
156
- if (this.n44_1 == null) {
156
+ if (this.b45_1 == null) {
157
157
  return Unit_instance;
158
158
  } else {
159
- tmp_1 = this.n44_1;
159
+ tmp_1 = this.b45_1;
160
160
  }
161
161
 
162
- tmp_0.o44_1 = tmp_1;
163
- this.j9_1 = 2;
164
- suspendResult = this.l44_1.v2d(this.o44_1, this);
162
+ tmp_0.c45_1 = tmp_1;
163
+ this.l9_1 = 2;
164
+ suspendResult = this.z44_1.j2e(this.c45_1, this);
165
165
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
166
166
  return suspendResult;
167
167
  }
@@ -170,91 +170,91 @@
170
170
  case 2:
171
171
  return Unit_instance;
172
172
  case 3:
173
- throw this.m9_1;
173
+ throw this.o9_1;
174
174
  }
175
175
  } catch ($p) {
176
176
  var e = $p;
177
- if (this.k9_1 === 3) {
177
+ if (this.m9_1 === 3) {
178
178
  throw e;
179
179
  } else {
180
- this.j9_1 = this.k9_1;
181
- this.m9_1 = e;
180
+ this.l9_1 = this.m9_1;
181
+ this.o9_1 = e;
182
182
  }
183
183
  }
184
184
  while (true);
185
185
  };
186
- protoOf(ContentNegotiation$Plugin$install$slambda).z2v = function ($this$intercept, it, completion) {
187
- var i = new ContentNegotiation$Plugin$install$slambda(this.k44_1, completion);
188
- i.l44_1 = $this$intercept;
189
- i.m44_1 = it;
186
+ protoOf(ContentNegotiation$Plugin$install$slambda).n2w = function ($this$intercept, it, completion) {
187
+ var i = new ContentNegotiation$Plugin$install$slambda(this.y44_1, completion);
188
+ i.z44_1 = $this$intercept;
189
+ i.a45_1 = it;
190
190
  return i;
191
191
  };
192
192
  function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
193
193
  var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
194
194
  var l = function ($this$intercept, it, $completion) {
195
- return i.y2v($this$intercept, it, $completion);
195
+ return i.m2w($this$intercept, it, $completion);
196
196
  };
197
197
  l.$arity = 2;
198
198
  return l;
199
199
  }
200
200
  function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
201
- this.a45_1 = $plugin;
201
+ this.o45_1 = $plugin;
202
202
  CoroutineImpl.call(this, resultContinuation);
203
203
  }
204
- protoOf(ContentNegotiation$Plugin$install$slambda_1).s2w = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
205
- var tmp = this.t2w($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
206
- tmp.l9_1 = Unit_instance;
207
- tmp.m9_1 = null;
208
- return tmp.r9();
204
+ protoOf(ContentNegotiation$Plugin$install$slambda_1).g2x = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
205
+ var tmp = this.h2x($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
206
+ tmp.n9_1 = Unit_instance;
207
+ tmp.o9_1 = null;
208
+ return tmp.t9();
209
209
  };
210
- protoOf(ContentNegotiation$Plugin$install$slambda_1).aa = function (p1, p2, $completion) {
210
+ protoOf(ContentNegotiation$Plugin$install$slambda_1).ea = function (p1, p2, $completion) {
211
211
  var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
212
- return this.s2w(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
212
+ return this.g2x(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
213
213
  };
214
- protoOf(ContentNegotiation$Plugin$install$slambda_1).r9 = function () {
215
- var suspendResult = this.l9_1;
214
+ protoOf(ContentNegotiation$Plugin$install$slambda_1).t9 = function () {
215
+ var suspendResult = this.n9_1;
216
216
  $sm: do
217
217
  try {
218
- var tmp = this.j9_1;
218
+ var tmp = this.l9_1;
219
219
  switch (tmp) {
220
220
  case 0:
221
- this.k9_1 = 3;
222
- this.d45_1 = this.c45_1.gf();
223
- this.e45_1 = this.c45_1.hf();
221
+ this.m9_1 = 3;
222
+ this.r45_1 = this.q45_1.kf();
223
+ this.s45_1 = this.q45_1.lf();
224
224
  var tmp_0 = this;
225
- var tmp0_elvis_lhs = contentType(this.b45_1.r2e_1.f2w());
225
+ var tmp0_elvis_lhs = contentType(this.p45_1.f2f_1.t2w());
226
226
  var tmp_1;
227
227
  if (tmp0_elvis_lhs == null) {
228
- this.b45_1;
229
- get_LOGGER().n2f('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
228
+ this.p45_1;
229
+ get_LOGGER().b2g('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
230
230
  return Unit_instance;
231
231
  } else {
232
232
  tmp_1 = tmp0_elvis_lhs;
233
233
  }
234
234
 
235
- tmp_0.f45_1 = tmp_1;
236
- this.g45_1 = suitableCharset(this.b45_1.r2e_1.o2z().p2l());
237
- this.j9_1 = 1;
238
- suspendResult = this.a45_1.k45(this.b45_1.r2e_1.o2z().r2z(), this.d45_1, this.e45_1, this.f45_1, this.g45_1, this);
235
+ tmp_0.t45_1 = tmp_1;
236
+ this.u45_1 = suitableCharset(this.p45_1.f2f_1.c30().d2m());
237
+ this.l9_1 = 1;
238
+ suspendResult = this.o45_1.y45(this.p45_1.f2f_1.c30().f30(), this.r45_1, this.s45_1, this.t45_1, this.u45_1, this);
239
239
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
240
240
  return suspendResult;
241
241
  }
242
242
 
243
243
  continue $sm;
244
244
  case 1:
245
- this.h45_1 = suspendResult;
245
+ this.v45_1 = suspendResult;
246
246
  var tmp_2 = this;
247
247
  var tmp_3;
248
- if (this.h45_1 == null) {
248
+ if (this.v45_1 == null) {
249
249
  return Unit_instance;
250
250
  } else {
251
- tmp_3 = this.h45_1;
251
+ tmp_3 = this.v45_1;
252
252
  }
253
253
 
254
- tmp_2.i45_1 = tmp_3;
255
- this.j45_1 = new HttpResponseContainer(this.d45_1, this.i45_1);
256
- this.j9_1 = 2;
257
- suspendResult = this.b45_1.v2d(this.j45_1, this);
254
+ tmp_2.w45_1 = tmp_3;
255
+ this.x45_1 = new HttpResponseContainer(this.r45_1, this.w45_1);
256
+ this.l9_1 = 2;
257
+ suspendResult = this.p45_1.j2e(this.x45_1, this);
258
258
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
259
259
  return suspendResult;
260
260
  }
@@ -263,74 +263,74 @@
263
263
  case 2:
264
264
  return Unit_instance;
265
265
  case 3:
266
- throw this.m9_1;
266
+ throw this.o9_1;
267
267
  }
268
268
  } catch ($p) {
269
269
  var e = $p;
270
- if (this.k9_1 === 3) {
270
+ if (this.m9_1 === 3) {
271
271
  throw e;
272
272
  } else {
273
- this.j9_1 = this.k9_1;
274
- this.m9_1 = e;
273
+ this.l9_1 = this.m9_1;
274
+ this.o9_1 = e;
275
275
  }
276
276
  }
277
277
  while (true);
278
278
  };
279
- protoOf(ContentNegotiation$Plugin$install$slambda_1).t2w = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
280
- var i = new ContentNegotiation$Plugin$install$slambda_1(this.a45_1, completion);
281
- i.b45_1 = $this$intercept;
282
- i.c45_1 = _name_for_destructuring_parameter_0__wldtmu;
279
+ protoOf(ContentNegotiation$Plugin$install$slambda_1).h2x = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
280
+ var i = new ContentNegotiation$Plugin$install$slambda_1(this.o45_1, completion);
281
+ i.p45_1 = $this$intercept;
282
+ i.q45_1 = _name_for_destructuring_parameter_0__wldtmu;
283
283
  return i;
284
284
  };
285
285
  function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
286
286
  var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
287
287
  var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
288
- return i.s2w($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
288
+ return i.g2x($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
289
289
  };
290
290
  l.$arity = 2;
291
291
  return l;
292
292
  }
293
293
  function Config() {
294
- this.l45_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
294
+ this.z45_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
295
295
  var tmp = this;
296
296
  // Inline function 'kotlin.collections.mutableListOf' call
297
- tmp.m45_1 = ArrayList_init_$Create$();
297
+ tmp.a46_1 = ArrayList_init_$Create$();
298
298
  }
299
- protoOf(Config).j2s = function (contentType, converter, configuration) {
300
- var matcher = contentType.equals(Application_getInstance().a2g_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
301
- this.n45(contentType, converter, matcher, configuration);
299
+ protoOf(Config).x2s = function (contentType, converter, configuration) {
300
+ var matcher = contentType.equals(Application_getInstance().o2g_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
301
+ this.b46(contentType, converter, matcher, configuration);
302
302
  };
303
- protoOf(Config).n45 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
303
+ protoOf(Config).b46 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
304
304
  // Inline function 'kotlin.apply' call
305
305
  configuration(converter);
306
306
  var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
307
- this.m45_1.e(registration);
307
+ this.a46_1.e(registration);
308
308
  };
309
309
  function Plugin() {
310
310
  Plugin_instance = this;
311
- this.o45_1 = new AttributeKey('ContentNegotiation');
311
+ this.c46_1 = new AttributeKey('ContentNegotiation');
312
312
  }
313
313
  protoOf(Plugin).t = function () {
314
- return this.o45_1;
314
+ return this.c46_1;
315
315
  };
316
- protoOf(Plugin).p45 = function (block) {
316
+ protoOf(Plugin).d46 = function (block) {
317
317
  // Inline function 'kotlin.apply' call
318
318
  var this_0 = new Config();
319
319
  block(this_0);
320
320
  var config = this_0;
321
- return new ContentNegotiation(config.m45_1, config.l45_1);
321
+ return new ContentNegotiation(config.a46_1, config.z45_1);
322
322
  };
323
- protoOf(Plugin).j2y = function (block) {
324
- return this.p45(block);
323
+ protoOf(Plugin).x2y = function (block) {
324
+ return this.d46(block);
325
325
  };
326
- protoOf(Plugin).q45 = function (plugin, scope) {
327
- var tmp = Phases_getInstance().d34_1;
328
- scope.e2v_1.v2e(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
329
- var tmp_0 = Phases_getInstance_0().e2y_1;
330
- scope.f2v_1.v2e(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
326
+ protoOf(Plugin).e46 = function (plugin, scope) {
327
+ var tmp = Phases_getInstance().r34_1;
328
+ scope.s2v_1.j2f(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
329
+ var tmp_0 = Phases_getInstance_0().s2y_1;
330
+ scope.t2v_1.j2f(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
331
331
  };
332
- protoOf(Plugin).k2y = function (plugin, scope) {
333
- return this.q45(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
332
+ protoOf(Plugin).y2y = function (plugin, scope) {
333
+ return this.e46(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
334
334
  };
335
335
  var Plugin_instance;
336
336
  function Plugin_getInstance() {
@@ -339,41 +339,41 @@
339
339
  return Plugin_instance;
340
340
  }
341
341
  function ContentNegotiation$convertRequest$lambda(it) {
342
- return toString(it.x43_1);
342
+ return toString(it.l44_1);
343
343
  }
344
344
  function $convertRequestCOROUTINE$(_this__u8e3s4, request, body, resultContinuation) {
345
345
  CoroutineImpl.call(this, resultContinuation);
346
- this.z45_1 = _this__u8e3s4;
347
- this.a46_1 = request;
348
- this.b46_1 = body;
346
+ this.n46_1 = _this__u8e3s4;
347
+ this.o46_1 = request;
348
+ this.p46_1 = body;
349
349
  }
350
- protoOf($convertRequestCOROUTINE$).r9 = function () {
351
- var suspendResult = this.l9_1;
350
+ protoOf($convertRequestCOROUTINE$).t9 = function () {
351
+ var suspendResult = this.n9_1;
352
352
  $sm: do
353
353
  try {
354
- var tmp = this.j9_1;
354
+ var tmp = this.l9_1;
355
355
  switch (tmp) {
356
356
  case 0:
357
- this.k9_1 = 7;
358
- var _iterator__ex2g4s = this.z45_1.p44_1.j();
357
+ this.m9_1 = 7;
358
+ var _iterator__ex2g4s = this.n46_1.d45_1.j();
359
359
  while (_iterator__ex2g4s.k()) {
360
360
  var element = _iterator__ex2g4s.l();
361
361
  l$ret$1: do {
362
- get_LOGGER().n2f('Adding Accept=' + element.y43_1.d2h_1 + ' header for ' + this.a46_1.e2x_1.toString());
363
- if (this.a46_1.g2x_1.v2b(HttpHeaders_getInstance().m2h_1, element.y43_1.toString())) {
362
+ get_LOGGER().b2g('Adding Accept=' + element.m44_1.r2h_1 + ' header for ' + this.o46_1.s2x_1.toString());
363
+ if (this.o46_1.u2x_1.j2c(HttpHeaders_getInstance().a2i_1, element.m44_1.toString())) {
364
364
  break l$ret$1;
365
365
  }
366
- accept(this.a46_1, element.y43_1);
366
+ accept(this.o46_1, element.m44_1);
367
367
  }
368
368
  while (false);
369
369
  }
370
370
 
371
371
  var tmp_0;
372
- var tmp_1 = this.b46_1;
372
+ var tmp_1 = this.p46_1;
373
373
  if (tmp_1 instanceof OutgoingContent) {
374
374
  tmp_0 = true;
375
375
  } else {
376
- var tmp0 = this.z45_1.q44_1;
376
+ var tmp0 = this.n46_1.e45_1;
377
377
  var tmp$ret$2;
378
378
  l$ret$3: do {
379
379
  var tmp_2;
@@ -389,7 +389,7 @@
389
389
  var _iterator__ex2g4s_0 = tmp0.j();
390
390
  while (_iterator__ex2g4s_0.k()) {
391
391
  var element_0 = _iterator__ex2g4s_0.l();
392
- if (element_0.xa(this.b46_1)) {
392
+ if (element_0.bb(this.p46_1)) {
393
393
  tmp$ret$2 = true;
394
394
  break l$ret$3;
395
395
  }
@@ -401,36 +401,36 @@
401
401
  }
402
402
 
403
403
  if (tmp_0) {
404
- get_LOGGER().n2f('Body type ' + toString(getKClassFromExpression(this.b46_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.a46_1.e2x_1.toString() + '.'));
404
+ get_LOGGER().b2g('Body type ' + toString(getKClassFromExpression(this.p46_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.o46_1.s2x_1.toString() + '.'));
405
405
  return null;
406
406
  }
407
407
 
408
408
  var tmp_3 = this;
409
- var tmp0_elvis_lhs = contentType_0(this.a46_1);
409
+ var tmp0_elvis_lhs = contentType_0(this.o46_1);
410
410
  var tmp_4;
411
411
  if (tmp0_elvis_lhs == null) {
412
- this.z45_1;
413
- get_LOGGER().n2f("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.a46_1.e2x_1.toString() + '.');
412
+ this.n46_1;
413
+ get_LOGGER().b2g("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.o46_1.s2x_1.toString() + '.');
414
414
  return null;
415
415
  } else {
416
416
  tmp_4 = tmp0_elvis_lhs;
417
417
  }
418
418
 
419
- tmp_3.c46_1 = tmp_4;
420
- var tmp_5 = this.b46_1;
419
+ tmp_3.q46_1 = tmp_4;
420
+ var tmp_5 = this.p46_1;
421
421
  if (tmp_5 instanceof Unit) {
422
- get_LOGGER().n2f('Sending empty body for ' + this.a46_1.e2x_1.toString());
423
- this.a46_1.g2x_1.a2c(HttpHeaders_getInstance().e2i_1);
422
+ get_LOGGER().b2g('Sending empty body for ' + this.o46_1.s2x_1.toString());
423
+ this.o46_1.u2x_1.o2c(HttpHeaders_getInstance().s2i_1);
424
424
  return EmptyContent_getInstance();
425
425
  }
426
426
 
427
427
  var tmp_6 = this;
428
- var tmp0_0 = this.z45_1.p44_1;
428
+ var tmp0_0 = this.n46_1.d45_1;
429
429
  var destination = ArrayList_init_$Create$();
430
430
  var _iterator__ex2g4s_1 = tmp0_0.j();
431
431
  while (_iterator__ex2g4s_1.k()) {
432
432
  var element_1 = _iterator__ex2g4s_1.l();
433
- if (element_1.z43_1.b44(this.c46_1)) {
433
+ if (element_1.n44_1.p44(this.q46_1)) {
434
434
  destination.e(element_1);
435
435
  }
436
436
  }
@@ -445,44 +445,44 @@
445
445
  var tmp1_elvis_lhs = tmp_7;
446
446
  var tmp_8;
447
447
  if (tmp1_elvis_lhs == null) {
448
- this.z45_1;
449
- get_LOGGER().n2f('None of the registered converters match request Content-Type=' + this.c46_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.a46_1.e2x_1.toString() + '.'));
448
+ this.n46_1;
449
+ get_LOGGER().b2g('None of the registered converters match request Content-Type=' + this.q46_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.o46_1.s2x_1.toString() + '.'));
450
450
  return null;
451
451
  } else {
452
452
  tmp_8 = tmp1_elvis_lhs;
453
453
  }
454
454
 
455
- tmp_6.d46_1 = tmp_8;
456
- if (this.a46_1.q3m() == null) {
457
- get_LOGGER().n2f('Request has unknown body type. Skipping ContentNegotiation for ' + this.a46_1.e2x_1.toString() + '.');
455
+ tmp_6.r46_1 = tmp_8;
456
+ if (this.o46_1.e3n() == null) {
457
+ get_LOGGER().b2g('Request has unknown body type. Skipping ContentNegotiation for ' + this.o46_1.s2x_1.toString() + '.');
458
458
  return null;
459
459
  }
460
460
 
461
- this.a46_1.g2x_1.a2c(HttpHeaders_getInstance().e2i_1);
461
+ this.o46_1.u2x_1.o2c(HttpHeaders_getInstance().s2i_1);
462
462
  var tmp_9 = this;
463
- tmp_9.e46_1 = this.d46_1;
464
- this.j9_1 = 1;
463
+ tmp_9.s46_1 = this.r46_1;
464
+ this.l9_1 = 1;
465
465
  continue $sm;
466
466
  case 1:
467
- this.g46_1 = this.e46_1;
468
- this.h46_1 = this.g46_1.j();
469
- this.j9_1 = 2;
467
+ this.u46_1 = this.s46_1;
468
+ this.v46_1 = this.u46_1.j();
469
+ this.l9_1 = 2;
470
470
  continue $sm;
471
471
  case 2:
472
- if (!this.h46_1.k()) {
473
- this.j9_1 = 5;
472
+ if (!this.v46_1.k()) {
473
+ this.l9_1 = 5;
474
474
  continue $sm;
475
475
  }
476
476
 
477
- this.i46_1 = this.h46_1.l();
477
+ this.w46_1 = this.v46_1.l();
478
478
  var tmp_10 = this;
479
- tmp_10.j46_1 = this.i46_1;
480
- this.k46_1 = this.j46_1;
481
- this.j9_1 = 3;
482
- var tmp0_elvis_lhs_0 = charset(this.c46_1);
483
- var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().p23_1 : tmp0_elvis_lhs_0;
484
- var tmp_12 = ensureNotNull(this.a46_1.q3m());
485
- var this_0 = this.b46_1;
479
+ tmp_10.x46_1 = this.w46_1;
480
+ this.y46_1 = this.x46_1;
481
+ this.l9_1 = 3;
482
+ var tmp0_elvis_lhs_0 = charset(this.q46_1);
483
+ var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().d24_1 : tmp0_elvis_lhs_0;
484
+ var tmp_12 = ensureNotNull(this.o46_1.e3n());
485
+ var this_0 = this.p46_1;
486
486
  var tmp_13;
487
487
  if (!equals(this_0, NullBody_instance)) {
488
488
  tmp_13 = this_0;
@@ -490,7 +490,7 @@
490
490
  tmp_13 = null;
491
491
  }
492
492
 
493
- suspendResult = this.k46_1.x43_1.m2s(this.c46_1, tmp_11, tmp_12, tmp_13, this);
493
+ suspendResult = this.y46_1.l44_1.a2t(this.q46_1, tmp_11, tmp_12, tmp_13, this);
494
494
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
495
495
  return suspendResult;
496
496
  }
@@ -499,37 +499,37 @@
499
499
  case 3:
500
500
  var result = suspendResult;
501
501
  if (!(result == null)) {
502
- get_LOGGER().n2f('Converted request body using ' + toString(this.k46_1.x43_1) + ' for ' + this.a46_1.e2x_1.toString());
502
+ get_LOGGER().b2g('Converted request body using ' + toString(this.y46_1.l44_1) + ' for ' + this.o46_1.s2x_1.toString());
503
503
  }
504
504
 
505
505
  var result_0 = result;
506
506
  if (!(result_0 == null)) {
507
- this.f46_1 = result_0;
508
- this.j9_1 = 6;
507
+ this.t46_1 = result_0;
508
+ this.l9_1 = 6;
509
509
  continue $sm;
510
510
  } else {
511
- this.j9_1 = 4;
511
+ this.l9_1 = 4;
512
512
  continue $sm;
513
513
  }
514
514
 
515
515
  case 4:
516
- this.j9_1 = 2;
516
+ this.l9_1 = 2;
517
517
  continue $sm;
518
518
  case 5:
519
- this.f46_1 = null;
519
+ this.t46_1 = null;
520
520
  if (false) {
521
- this.j9_1 = 1;
521
+ this.l9_1 = 1;
522
522
  continue $sm;
523
523
  }
524
524
 
525
- this.j9_1 = 6;
525
+ this.l9_1 = 6;
526
526
  continue $sm;
527
527
  case 6:
528
- var tmp2_elvis_lhs = this.f46_1;
528
+ var tmp2_elvis_lhs = this.t46_1;
529
529
  var tmp_14;
530
530
  if (tmp2_elvis_lhs == null) {
531
- var tmp_15 = "Can't convert " + toString(this.b46_1) + ' with contentType ' + this.c46_1.toString() + ' using converters ';
532
- throw new ContentConverterException(tmp_15 + joinToString(this.d46_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
531
+ var tmp_15 = "Can't convert " + toString(this.p46_1) + ' with contentType ' + this.q46_1.toString() + ' using converters ';
532
+ throw new ContentConverterException(tmp_15 + joinToString(this.r46_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
533
533
  } else {
534
534
  tmp_14 = tmp2_elvis_lhs;
535
535
  }
@@ -537,54 +537,54 @@
537
537
  var serializedContent = tmp_14;
538
538
  return serializedContent;
539
539
  case 7:
540
- throw this.m9_1;
540
+ throw this.o9_1;
541
541
  }
542
542
  } catch ($p) {
543
543
  var e = $p;
544
- if (this.k9_1 === 7) {
544
+ if (this.m9_1 === 7) {
545
545
  throw e;
546
546
  } else {
547
- this.j9_1 = this.k9_1;
548
- this.m9_1 = e;
547
+ this.l9_1 = this.m9_1;
548
+ this.o9_1 = e;
549
549
  }
550
550
  }
551
551
  while (true);
552
552
  };
553
553
  function $convertResponseCOROUTINE$(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
554
554
  CoroutineImpl.call(this, resultContinuation);
555
- this.t46_1 = _this__u8e3s4;
556
- this.u46_1 = requestUrl;
557
- this.v46_1 = info;
558
- this.w46_1 = body;
559
- this.x46_1 = responseContentType;
560
- this.y46_1 = charset;
555
+ this.h47_1 = _this__u8e3s4;
556
+ this.i47_1 = requestUrl;
557
+ this.j47_1 = info;
558
+ this.k47_1 = body;
559
+ this.l47_1 = responseContentType;
560
+ this.m47_1 = charset;
561
561
  }
562
- protoOf($convertResponseCOROUTINE$).r9 = function () {
563
- var suspendResult = this.l9_1;
562
+ protoOf($convertResponseCOROUTINE$).t9 = function () {
563
+ var suspendResult = this.n9_1;
564
564
  $sm: do
565
565
  try {
566
- var tmp = this.j9_1;
566
+ var tmp = this.l9_1;
567
567
  switch (tmp) {
568
568
  case 0:
569
- this.k9_1 = 2;
570
- var tmp_0 = this.w46_1;
569
+ this.m9_1 = 2;
570
+ var tmp_0 = this.k47_1;
571
571
  if (!isInterface(tmp_0, ByteReadChannel)) {
572
- get_LOGGER().n2f('Response body is already transformed. Skipping ContentNegotiation for ' + this.u46_1.toString() + '.');
572
+ get_LOGGER().b2g('Response body is already transformed. Skipping ContentNegotiation for ' + this.i47_1.toString() + '.');
573
573
  return null;
574
574
  }
575
575
 
576
- if (this.t46_1.q44_1.s1(this.v46_1.i2f_1)) {
577
- get_LOGGER().n2f('Response body type ' + toString(this.v46_1.i2f_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.u46_1.toString() + '.'));
576
+ if (this.h47_1.e45_1.v1(this.j47_1.w2f_1)) {
577
+ get_LOGGER().b2g('Response body type ' + toString(this.j47_1.w2f_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.i47_1.toString() + '.'));
578
578
  return null;
579
579
  }
580
580
 
581
581
  var tmp_1 = this;
582
- var tmp0 = this.t46_1.p44_1;
582
+ var tmp0 = this.h47_1.d45_1;
583
583
  var destination = ArrayList_init_$Create$();
584
584
  var _iterator__ex2g4s = tmp0.j();
585
585
  while (_iterator__ex2g4s.k()) {
586
586
  var element = _iterator__ex2g4s.l();
587
- if (element.z43_1.b44(this.x46_1)) {
587
+ if (element.n44_1.p44(this.l47_1)) {
588
588
  destination.e(element);
589
589
  }
590
590
  }
@@ -593,7 +593,7 @@
593
593
  var _iterator__ex2g4s_0 = destination.j();
594
594
  while (_iterator__ex2g4s_0.k()) {
595
595
  var item = _iterator__ex2g4s_0.l();
596
- destination_0.e(item.x43_1);
596
+ destination_0.e(item.l44_1);
597
597
  }
598
598
 
599
599
  var tmp_2;
@@ -606,16 +606,16 @@
606
606
  var tmp0_elvis_lhs = tmp_2;
607
607
  var tmp_3;
608
608
  if (tmp0_elvis_lhs == null) {
609
- this.t46_1;
610
- get_LOGGER().n2f('None of the registered converters match response with Content-Type=' + this.x46_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.u46_1.toString() + '.'));
609
+ this.h47_1;
610
+ get_LOGGER().b2g('None of the registered converters match response with Content-Type=' + this.l47_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.i47_1.toString() + '.'));
611
611
  return null;
612
612
  } else {
613
613
  tmp_3 = tmp0_elvis_lhs;
614
614
  }
615
615
 
616
- tmp_1.z46_1 = tmp_3;
617
- this.j9_1 = 1;
618
- suspendResult = deserialize(this.z46_1, this.w46_1, this.v46_1, this.y46_1, this);
616
+ tmp_1.n47_1 = tmp_3;
617
+ this.l9_1 = 1;
618
+ suspendResult = deserialize(this.n47_1, this.k47_1, this.j47_1, this.m47_1, this);
619
619
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
620
620
  return suspendResult;
621
621
  }
@@ -624,40 +624,40 @@
624
624
  case 1:
625
625
  var result = suspendResult;
626
626
  if (!isInterface(result, ByteReadChannel)) {
627
- get_LOGGER().n2f('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.u46_1.toString() + '.');
627
+ get_LOGGER().b2g('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.i47_1.toString() + '.');
628
628
  }
629
629
 
630
630
  return result;
631
631
  case 2:
632
- throw this.m9_1;
632
+ throw this.o9_1;
633
633
  }
634
634
  } catch ($p) {
635
635
  var e = $p;
636
- if (this.k9_1 === 2) {
636
+ if (this.m9_1 === 2) {
637
637
  throw e;
638
638
  } else {
639
- this.j9_1 = this.k9_1;
640
- this.m9_1 = e;
639
+ this.l9_1 = this.m9_1;
640
+ this.o9_1 = e;
641
641
  }
642
642
  }
643
643
  while (true);
644
644
  };
645
645
  function ContentNegotiation(registrations, ignoredTypes) {
646
646
  Plugin_getInstance();
647
- this.p44_1 = registrations;
648
- this.q44_1 = ignoredTypes;
647
+ this.d45_1 = registrations;
648
+ this.e45_1 = ignoredTypes;
649
649
  }
650
- protoOf(ContentNegotiation).r44 = function (request, body, $completion) {
650
+ protoOf(ContentNegotiation).f45 = function (request, body, $completion) {
651
651
  var tmp = new $convertRequestCOROUTINE$(this, request, body, $completion);
652
- tmp.l9_1 = Unit_instance;
653
- tmp.m9_1 = null;
654
- return tmp.r9();
652
+ tmp.n9_1 = Unit_instance;
653
+ tmp.o9_1 = null;
654
+ return tmp.t9();
655
655
  };
656
- protoOf(ContentNegotiation).k45 = function (requestUrl, info, body, responseContentType, charset, $completion) {
656
+ protoOf(ContentNegotiation).y45 = function (requestUrl, info, body, responseContentType, charset, $completion) {
657
657
  var tmp = new $convertResponseCOROUTINE$(this, requestUrl, info, body, responseContentType, charset, $completion);
658
- tmp.l9_1 = Unit_instance;
659
- tmp.m9_1 = null;
660
- return tmp.r9();
658
+ tmp.n9_1 = Unit_instance;
659
+ tmp.o9_1 = null;
660
+ return tmp.t9();
661
661
  };
662
662
  function ContentConverterException(message) {
663
663
  Exception_init_$Init$(message, this);
@@ -668,16 +668,16 @@
668
668
  if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
669
669
  properties_initialized_ContentNegotiation_kt_1ayduy = true;
670
670
  LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
671
- DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().bc(), PrimitiveClasses_getInstance().xb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
671
+ DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().fc(), PrimitiveClasses_getInstance().bc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
672
672
  }
673
673
  }
674
674
  function JsonContentTypeMatcher() {
675
675
  }
676
- protoOf(JsonContentTypeMatcher).b44 = function (contentType) {
677
- if (contentType.h2h(Application_getInstance().a2g_1)) {
676
+ protoOf(JsonContentTypeMatcher).p44 = function (contentType) {
677
+ if (contentType.v2h(Application_getInstance().o2g_1)) {
678
678
  return true;
679
679
  }
680
- var value = contentType.g2h().toString();
680
+ var value = contentType.u2h().toString();
681
681
  return startsWith(value, 'application/') && endsWith(value, '+json');
682
682
  };
683
683
  var JsonContentTypeMatcher_instance;
@@ -698,7 +698,7 @@
698
698
  }
699
699
  }
700
700
  //region block: post-declaration
701
- protoOf(Config).k2s = register$default;
701
+ protoOf(Config).y2s = register$default;
702
702
  //endregion
703
703
  //region block: init
704
704
  JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();