@doordeck/doordeck-headless-sdk 0.45.0 → 0.46.0

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 (69) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1394 -1464
  2. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +19 -21
  3. package/kotlin/MultiplatformSettings-multiplatform-settings.js +6 -8
  4. package/kotlin/Stately-stately-concurrency.js +6 -8
  5. package/kotlin/Stately-stately-concurrent-collections.js +53 -55
  6. package/kotlin/Stately-stately-strict.js +0 -2
  7. package/kotlin/doordeck-sdk.js +11742 -11209
  8. package/kotlin/kotlin-kotlin-stdlib.js +1932 -1918
  9. package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +0 -2
  10. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -2
  11. package/kotlin/kotlinx-atomicfu.js +13 -15
  12. package/kotlin/kotlinx-coroutines-core.js +2056 -2094
  13. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +0 -2
  14. package/kotlin/kotlinx-io-kotlinx-io-core.js +559 -550
  15. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1849 -1872
  16. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js +0 -2
  17. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1523 -1523
  18. package/kotlin/ktor-ktor-client-ktor-client-core.js +2832 -2843
  19. package/kotlin/ktor-ktor-client-ktor-client-js.js +0 -2
  20. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +388 -391
  21. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +198 -199
  22. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js +0 -2
  23. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +0 -2
  24. package/kotlin/ktor-ktor-http.js +833 -860
  25. package/kotlin/ktor-ktor-io.js +641 -653
  26. package/kotlin/ktor-ktor-shared-ktor-events.js +7 -10
  27. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -9
  28. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +266 -263
  29. package/kotlin/ktor-ktor-shared-ktor-serialization.js +113 -111
  30. package/kotlin/ktor-ktor-shared-ktor-sse.js +0 -2
  31. package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js +0 -2
  32. package/kotlin/ktor-ktor-shared-ktor-websockets.js +46 -46
  33. package/kotlin/ktor-ktor-utils.js +590 -606
  34. package/kotlin/projects-core-koin-core.js +299 -316
  35. package/package.json +4 -3
  36. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
  37. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +0 -1
  38. package/kotlin/MultiplatformSettings-multiplatform-settings.js.map +0 -1
  39. package/kotlin/Stately-stately-concurrency.js.map +0 -1
  40. package/kotlin/Stately-stately-concurrent-collections.js.map +0 -1
  41. package/kotlin/Stately-stately-strict.js.map +0 -1
  42. package/kotlin/doordeck-sdk.js.map +0 -1
  43. package/kotlin/kotlin-kotlin-stdlib.js.map +0 -1
  44. package/kotlin/kotlin-kotlinx-atomicfu-runtime.js.map +0 -1
  45. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +0 -1
  46. package/kotlin/kotlinx-atomicfu.js.map +0 -1
  47. package/kotlin/kotlinx-coroutines-core.js.map +0 -1
  48. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js.map +0 -1
  49. package/kotlin/kotlinx-io-kotlinx-io-core.js.map +0 -1
  50. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
  51. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js.map +0 -1
  52. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
  53. package/kotlin/ktor-ktor-client-ktor-client-core.js.map +0 -1
  54. package/kotlin/ktor-ktor-client-ktor-client-js.js.map +0 -1
  55. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js.map +0 -1
  56. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map +0 -1
  57. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js.map +0 -1
  58. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js.map +0 -1
  59. package/kotlin/ktor-ktor-http.js.map +0 -1
  60. package/kotlin/ktor-ktor-io.js.map +0 -1
  61. package/kotlin/ktor-ktor-shared-ktor-events.js.map +0 -1
  62. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js.map +0 -1
  63. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map +0 -1
  64. package/kotlin/ktor-ktor-shared-ktor-serialization.js.map +0 -1
  65. package/kotlin/ktor-ktor-shared-ktor-sse.js.map +0 -1
  66. package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js.map +0 -1
  67. package/kotlin/ktor-ktor-shared-ktor-websockets.js.map +0 -1
  68. package/kotlin/ktor-ktor-utils.js.map +0 -1
  69. package/kotlin/projects-core-koin-core.js.map +0 -1
@@ -85,35 +85,34 @@
85
85
  }
86
86
  var ContentNegotiation;
87
87
  function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
88
- this.g46_1 = converter;
89
- this.h46_1 = contentTypeToSend;
90
- this.i46_1 = contentTypeMatcher;
88
+ this.i48_1 = converter;
89
+ this.j48_1 = contentTypeToSend;
90
+ this.k48_1 = contentTypeMatcher;
91
91
  }
92
92
  function defaultMatcher($this, pattern) {
93
93
  return new ContentNegotiationConfig$defaultMatcher$1(pattern);
94
94
  }
95
95
  function ContentNegotiationConfig$defaultMatcher$1($pattern) {
96
- this.j46_1 = $pattern;
96
+ this.l48_1 = $pattern;
97
97
  }
98
- protoOf(ContentNegotiationConfig$defaultMatcher$1).k46 = function (contentType) {
99
- return contentType.g2e(this.j46_1);
98
+ protoOf(ContentNegotiationConfig$defaultMatcher$1).m48 = function (contentType) {
99
+ return contentType.p2f(this.l48_1);
100
100
  };
101
101
  function ContentNegotiationConfig() {
102
- this.l46_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
102
+ this.n48_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
103
103
  var tmp = this;
104
104
  // Inline function 'kotlin.collections.mutableListOf' call
105
- tmp.m46_1 = ArrayList_init_$Create$();
105
+ tmp.o48_1 = ArrayList_init_$Create$();
106
106
  }
107
- protoOf(ContentNegotiationConfig).n2q = function (contentType, converter, configuration) {
108
- var matcher = contentType.equals(Application_getInstance().y2c_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
109
- this.n46(contentType, converter, matcher, configuration);
107
+ protoOf(ContentNegotiationConfig).w2r = function (contentType, converter, configuration) {
108
+ var matcher = contentType.equals(Application_getInstance().h2e_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
109
+ this.p48(contentType, converter, matcher, configuration);
110
110
  };
111
- protoOf(ContentNegotiationConfig).n46 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
111
+ protoOf(ContentNegotiationConfig).p48 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
112
112
  // Inline function 'kotlin.apply' call
113
- // Inline function 'kotlin.contracts.contract' call
114
113
  configuration(converter);
115
114
  var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
116
- this.m46_1.k(registration);
115
+ this.o48_1.k(registration);
117
116
  };
118
117
  function ContentConverterException(message) {
119
118
  Exception_init_$Init$(message, this);
@@ -128,53 +127,53 @@
128
127
  }
129
128
  function ContentNegotiation$lambda($this$createClientPlugin) {
130
129
  _init_properties_ContentNegotiation_kt__o183go();
131
- var registrations = $this$createClientPlugin.d33_1.m46_1;
132
- var ignoredTypes = $this$createClientPlugin.d33_1.l46_1;
133
- $this$createClientPlugin.w3l(ContentNegotiation$lambda$slambda_0(registrations, ignoredTypes, $this$createClientPlugin, null));
134
- $this$createClientPlugin.b3e(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
130
+ var registrations = $this$createClientPlugin.q34_1.o48_1;
131
+ var ignoredTypes = $this$createClientPlugin.q34_1.n48_1;
132
+ $this$createClientPlugin.o3n(ContentNegotiation$lambda$slambda_0(registrations, ignoredTypes, $this$createClientPlugin, null));
133
+ $this$createClientPlugin.t3f(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
135
134
  return Unit_instance;
136
135
  }
137
136
  function invoke$convertRequest(registrations, ignoredTypes, $this_createClientPlugin, request, body, $completion) {
138
137
  var tmp = new $invoke$convertRequestCOROUTINE$0(registrations, ignoredTypes, $this_createClientPlugin, request, body, $completion);
139
- tmp.f9_1 = Unit_instance;
140
- tmp.g9_1 = null;
141
- return tmp.l9();
138
+ tmp.g9_1 = Unit_instance;
139
+ tmp.h9_1 = null;
140
+ return tmp.m9();
142
141
  }
143
142
  function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
144
- charset = charset === VOID ? Charsets_getInstance().p1k_1 : charset;
143
+ charset = charset === VOID ? Charsets_getInstance().y1l_1 : charset;
145
144
  var tmp = new $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
146
- tmp.f9_1 = Unit_instance;
147
- tmp.g9_1 = null;
148
- return tmp.l9();
145
+ tmp.g9_1 = Unit_instance;
146
+ tmp.h9_1 = null;
147
+ return tmp.m9();
149
148
  }
150
149
  function ContentNegotiation$lambda$slambda($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation) {
151
- this.h48_1 = $registrations;
152
- this.i48_1 = $ignoredTypes;
153
- this.j48_1 = $this_createClientPlugin;
150
+ this.l4a_1 = $registrations;
151
+ this.m4a_1 = $ignoredTypes;
152
+ this.n4a_1 = $this_createClientPlugin;
154
153
  CoroutineImpl.call(this, resultContinuation);
155
154
  }
156
- protoOf(ContentNegotiation$lambda$slambda).o48 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
157
- var tmp = this.p48($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
158
- tmp.f9_1 = Unit_instance;
159
- tmp.g9_1 = null;
160
- return tmp.l9();
155
+ protoOf(ContentNegotiation$lambda$slambda).s4a = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
156
+ var tmp = this.t4a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
157
+ tmp.g9_1 = Unit_instance;
158
+ tmp.h9_1 = null;
159
+ return tmp.m9();
161
160
  };
162
- protoOf(ContentNegotiation$lambda$slambda).g3f = function (p1, p2, p3, p4, $completion) {
161
+ protoOf(ContentNegotiation$lambda$slambda).y3g = function (p1, p2, p3, p4, $completion) {
163
162
  var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
164
163
  var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
165
164
  var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
166
- return this.o48(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
165
+ return this.s4a(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
167
166
  };
168
- protoOf(ContentNegotiation$lambda$slambda).l9 = function () {
169
- var suspendResult = this.f9_1;
167
+ protoOf(ContentNegotiation$lambda$slambda).m9 = function () {
168
+ var suspendResult = this.g9_1;
170
169
  $sm: do
171
170
  try {
172
- var tmp = this.d9_1;
171
+ var tmp = this.e9_1;
173
172
  switch (tmp) {
174
173
  case 0:
175
- this.e9_1 = 2;
176
- this.d9_1 = 1;
177
- suspendResult = invoke$convertRequest(this.h48_1, this.i48_1, this.j48_1, this.l48_1, this.m48_1, this);
174
+ this.f9_1 = 2;
175
+ this.e9_1 = 1;
176
+ suspendResult = invoke$convertRequest(this.l4a_1, this.m4a_1, this.n4a_1, this.p4a_1, this.q4a_1, this);
178
177
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
179
178
  return suspendResult;
180
179
  }
@@ -183,63 +182,63 @@
183
182
  case 1:
184
183
  return suspendResult;
185
184
  case 2:
186
- throw this.g9_1;
185
+ throw this.h9_1;
187
186
  }
188
187
  } catch ($p) {
189
188
  var e = $p;
190
- if (this.e9_1 === 2) {
189
+ if (this.f9_1 === 2) {
191
190
  throw e;
192
191
  } else {
193
- this.d9_1 = this.e9_1;
194
- this.g9_1 = e;
192
+ this.e9_1 = this.f9_1;
193
+ this.h9_1 = e;
195
194
  }
196
195
  }
197
196
  while (true);
198
197
  };
199
- protoOf(ContentNegotiation$lambda$slambda).p48 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
200
- var i = new ContentNegotiation$lambda$slambda(this.h48_1, this.i48_1, this.j48_1, completion);
201
- i.k48_1 = $this$transformRequestBody;
202
- i.l48_1 = request;
203
- i.m48_1 = body;
204
- i.n48_1 = _unused_var__etf5q3;
198
+ protoOf(ContentNegotiation$lambda$slambda).t4a = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
199
+ var i = new ContentNegotiation$lambda$slambda(this.l4a_1, this.m4a_1, this.n4a_1, completion);
200
+ i.o4a_1 = $this$transformRequestBody;
201
+ i.p4a_1 = request;
202
+ i.q4a_1 = body;
203
+ i.r4a_1 = _unused_var__etf5q3;
205
204
  return i;
206
205
  };
207
206
  function ContentNegotiation$lambda$slambda_0($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation) {
208
207
  var i = new ContentNegotiation$lambda$slambda($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation);
209
208
  var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
210
- return i.o48($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
209
+ return i.s4a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
211
210
  };
212
211
  l.$arity = 4;
213
212
  return l;
214
213
  }
215
214
  function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
216
- this.y48_1 = $ignoredTypes;
217
- this.z48_1 = $registrations;
218
- this.a49_1 = $this_createClientPlugin;
215
+ this.c4b_1 = $ignoredTypes;
216
+ this.d4b_1 = $registrations;
217
+ this.e4b_1 = $this_createClientPlugin;
219
218
  CoroutineImpl.call(this, resultContinuation);
220
219
  }
221
- protoOf(ContentNegotiation$lambda$slambda_1).e3f = function ($this$transformResponseBody, response, body, info, $completion) {
222
- var tmp = this.f3f($this$transformResponseBody, response, body, info, $completion);
223
- tmp.f9_1 = Unit_instance;
224
- tmp.g9_1 = null;
225
- return tmp.l9();
220
+ protoOf(ContentNegotiation$lambda$slambda_1).w3g = function ($this$transformResponseBody, response, body, info, $completion) {
221
+ var tmp = this.x3g($this$transformResponseBody, response, body, info, $completion);
222
+ tmp.g9_1 = Unit_instance;
223
+ tmp.h9_1 = null;
224
+ return tmp.m9();
226
225
  };
227
- protoOf(ContentNegotiation$lambda$slambda_1).g3f = function (p1, p2, p3, p4, $completion) {
226
+ protoOf(ContentNegotiation$lambda$slambda_1).y3g = function (p1, p2, p3, p4, $completion) {
228
227
  var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
229
228
  var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
230
229
  var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
231
- return this.e3f(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
230
+ return this.w3g(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
232
231
  };
233
- protoOf(ContentNegotiation$lambda$slambda_1).l9 = function () {
234
- var suspendResult = this.f9_1;
232
+ protoOf(ContentNegotiation$lambda$slambda_1).m9 = function () {
233
+ var suspendResult = this.g9_1;
235
234
  $sm: do
236
235
  try {
237
- var tmp = this.d9_1;
236
+ var tmp = this.e9_1;
238
237
  switch (tmp) {
239
238
  case 0:
240
- this.e9_1 = 2;
239
+ this.f9_1 = 2;
241
240
  var tmp_0 = this;
242
- var tmp0_elvis_lhs = contentType(this.c49_1);
241
+ var tmp0_elvis_lhs = contentType(this.g4b_1);
243
242
  var tmp_1;
244
243
  if (tmp0_elvis_lhs == null) {
245
244
  return null;
@@ -247,10 +246,10 @@
247
246
  tmp_1 = tmp0_elvis_lhs;
248
247
  }
249
248
 
250
- tmp_0.f49_1 = tmp_1;
251
- this.g49_1 = suitableCharset(get_request(this.c49_1).p2i());
252
- this.d9_1 = 1;
253
- suspendResult = invoke$convertResponse(this.y48_1, this.z48_1, this.a49_1, get_request(this.c49_1).d2x(), this.e49_1, this.d49_1, this.f49_1, this.g49_1, this);
249
+ tmp_0.j4b_1 = tmp_1;
250
+ this.k4b_1 = suitableCharset(get_request(this.g4b_1).y2j());
251
+ this.e9_1 = 1;
252
+ suspendResult = invoke$convertResponse(this.c4b_1, this.d4b_1, this.e4b_1, get_request(this.g4b_1).q2y(), this.i4b_1, this.h4b_1, this.j4b_1, this.k4b_1, this);
254
253
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
255
254
  return suspendResult;
256
255
  }
@@ -259,79 +258,79 @@
259
258
  case 1:
260
259
  return suspendResult;
261
260
  case 2:
262
- throw this.g9_1;
261
+ throw this.h9_1;
263
262
  }
264
263
  } catch ($p) {
265
264
  var e = $p;
266
- if (this.e9_1 === 2) {
265
+ if (this.f9_1 === 2) {
267
266
  throw e;
268
267
  } else {
269
- this.d9_1 = this.e9_1;
270
- this.g9_1 = e;
268
+ this.e9_1 = this.f9_1;
269
+ this.h9_1 = e;
271
270
  }
272
271
  }
273
272
  while (true);
274
273
  };
275
- protoOf(ContentNegotiation$lambda$slambda_1).f3f = function ($this$transformResponseBody, response, body, info, completion) {
276
- var i = new ContentNegotiation$lambda$slambda_1(this.y48_1, this.z48_1, this.a49_1, completion);
277
- i.b49_1 = $this$transformResponseBody;
278
- i.c49_1 = response;
279
- i.d49_1 = body;
280
- i.e49_1 = info;
274
+ protoOf(ContentNegotiation$lambda$slambda_1).x3g = function ($this$transformResponseBody, response, body, info, completion) {
275
+ var i = new ContentNegotiation$lambda$slambda_1(this.c4b_1, this.d4b_1, this.e4b_1, completion);
276
+ i.f4b_1 = $this$transformResponseBody;
277
+ i.g4b_1 = response;
278
+ i.h4b_1 = body;
279
+ i.i4b_1 = info;
281
280
  return i;
282
281
  };
283
282
  function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
284
283
  var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
285
284
  var l = function ($this$transformResponseBody, response, body, info, $completion) {
286
- return i.e3f($this$transformResponseBody, response, body, info, $completion);
285
+ return i.w3g($this$transformResponseBody, response, body, info, $completion);
287
286
  };
288
287
  l.$arity = 4;
289
288
  return l;
290
289
  }
291
290
  function ContentNegotiation$lambda$convertRequest$lambda(it) {
292
291
  _init_properties_ContentNegotiation_kt__o183go();
293
- return toString(it.g46_1);
292
+ return toString(it.i48_1);
294
293
  }
295
294
  function $invoke$convertRequestCOROUTINE$0(registrations, ignoredTypes, $this_createClientPlugin, request, body, resultContinuation) {
296
295
  CoroutineImpl.call(this, resultContinuation);
297
- this.w46_1 = registrations;
298
- this.x46_1 = ignoredTypes;
299
- this.y46_1 = $this_createClientPlugin;
300
- this.z46_1 = request;
301
- this.a47_1 = body;
296
+ this.y48_1 = registrations;
297
+ this.z48_1 = ignoredTypes;
298
+ this.a49_1 = $this_createClientPlugin;
299
+ this.b49_1 = request;
300
+ this.c49_1 = body;
302
301
  }
303
- protoOf($invoke$convertRequestCOROUTINE$0).l9 = function () {
304
- var suspendResult = this.f9_1;
302
+ protoOf($invoke$convertRequestCOROUTINE$0).m9 = function () {
303
+ var suspendResult = this.g9_1;
305
304
  $sm: do
306
305
  try {
307
- var tmp = this.d9_1;
306
+ var tmp = this.e9_1;
308
307
  switch (tmp) {
309
308
  case 0:
310
- this.e9_1 = 7;
311
- var tmp0_iterator = this.w46_1.p();
312
- while (tmp0_iterator.q()) {
313
- var element = tmp0_iterator.r();
309
+ this.f9_1 = 7;
310
+ var _iterator__ex2g4s = this.y48_1.p();
311
+ while (_iterator__ex2g4s.q()) {
312
+ var element = _iterator__ex2g4s.r();
314
313
  l$ret$1: do {
315
- get_LOGGER().l2c('Adding Accept=' + element.h46_1.c2e_1 + ' header for ' + this.z46_1.r2u_1.toString());
316
- if (this.z46_1.t2u_1.h28(HttpHeaders_getInstance().m2e_1, element.h46_1.toString())) {
314
+ get_LOGGER().u2d('Adding Accept=' + element.j48_1.l2f_1 + ' header for ' + this.b49_1.e2w_1.toString());
315
+ if (this.b49_1.g2w_1.q29(HttpHeaders_getInstance().v2f_1, element.j48_1.toString())) {
317
316
  break l$ret$1;
318
317
  }
319
- accept(this.z46_1, element.h46_1);
318
+ accept(this.b49_1, element.j48_1);
320
319
  }
321
320
  while (false);
322
321
  }
323
322
 
324
323
  var tmp_0;
325
- var tmp_1 = this.a47_1;
324
+ var tmp_1 = this.c49_1;
326
325
  if (tmp_1 instanceof OutgoingContent) {
327
326
  tmp_0 = true;
328
327
  } else {
328
+ var tmp2 = this.z48_1;
329
329
  var tmp$ret$2;
330
330
  l$ret$3: do {
331
- var this_0 = this.x46_1;
332
331
  var tmp_2;
333
- if (isInterface(this_0, Collection)) {
334
- tmp_2 = this_0.h();
332
+ if (isInterface(tmp2, Collection)) {
333
+ tmp_2 = tmp2.h();
335
334
  } else {
336
335
  tmp_2 = false;
337
336
  }
@@ -339,10 +338,10 @@
339
338
  tmp$ret$2 = false;
340
339
  break l$ret$3;
341
340
  }
342
- var tmp0_iterator_0 = this_0.p();
343
- while (tmp0_iterator_0.q()) {
344
- var element_0 = tmp0_iterator_0.r();
345
- if (element_0.wa(this.a47_1)) {
341
+ var _iterator__ex2g4s_0 = tmp2.p();
342
+ while (_iterator__ex2g4s_0.q()) {
343
+ var element_0 = _iterator__ex2g4s_0.r();
344
+ if (element_0.fb(this.c49_1)) {
346
345
  tmp$ret$2 = true;
347
346
  break l$ret$3;
348
347
  }
@@ -354,36 +353,36 @@
354
353
  }
355
354
 
356
355
  if (tmp_0) {
357
- get_LOGGER().l2c('Body type ' + toString(getKClassFromExpression(this.a47_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.z46_1.r2u_1.toString() + '.'));
356
+ get_LOGGER().u2d('Body type ' + toString(getKClassFromExpression(this.c49_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.b49_1.e2w_1.toString() + '.'));
358
357
  return null;
359
358
  }
360
359
 
361
360
  var tmp_3 = this;
362
- var tmp0_elvis_lhs = contentType_0(this.z46_1);
361
+ var tmp0_elvis_lhs = contentType_0(this.b49_1);
363
362
  var tmp_4;
364
363
  if (tmp0_elvis_lhs == null) {
365
- this.y46_1;
366
- get_LOGGER().l2c("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.z46_1.r2u_1.toString() + '.');
364
+ this.a49_1;
365
+ get_LOGGER().u2d("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.b49_1.e2w_1.toString() + '.');
367
366
  return null;
368
367
  } else {
369
368
  tmp_4 = tmp0_elvis_lhs;
370
369
  }
371
370
 
372
- tmp_3.b47_1 = tmp_4;
373
- var tmp_5 = this.a47_1;
371
+ tmp_3.d49_1 = tmp_4;
372
+ var tmp_5 = this.c49_1;
374
373
  if (tmp_5 instanceof Unit) {
375
- get_LOGGER().l2c('Sending empty body for ' + this.z46_1.r2u_1.toString());
376
- this.z46_1.t2u_1.n28(HttpHeaders_getInstance().e2f_1);
374
+ get_LOGGER().u2d('Sending empty body for ' + this.b49_1.e2w_1.toString());
375
+ this.b49_1.g2w_1.w29(HttpHeaders_getInstance().n2g_1);
377
376
  return EmptyContent_getInstance();
378
377
  }
379
378
 
380
379
  var tmp_6 = this;
381
- var this_1 = this.w46_1;
380
+ var tmp0 = this.y48_1;
382
381
  var destination = ArrayList_init_$Create$();
383
- var tmp0_iterator_1 = this_1.p();
384
- while (tmp0_iterator_1.q()) {
385
- var element_1 = tmp0_iterator_1.r();
386
- if (element_1.i46_1.k46(this.b47_1)) {
382
+ var _iterator__ex2g4s_1 = tmp0.p();
383
+ while (_iterator__ex2g4s_1.q()) {
384
+ var element_1 = _iterator__ex2g4s_1.r();
385
+ if (element_1.k48_1.m48(this.d49_1)) {
387
386
  destination.k(element_1);
388
387
  }
389
388
  }
@@ -398,50 +397,52 @@
398
397
  var tmp1_elvis_lhs = tmp_7;
399
398
  var tmp_8;
400
399
  if (tmp1_elvis_lhs == null) {
401
- this.y46_1;
402
- get_LOGGER().l2c('None of the registered converters match request Content-Type=' + this.b47_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.z46_1.r2u_1.toString() + '.'));
400
+ this.a49_1;
401
+ get_LOGGER().u2d('None of the registered converters match request Content-Type=' + this.d49_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.b49_1.e2w_1.toString() + '.'));
403
402
  return null;
404
403
  } else {
405
404
  tmp_8 = tmp1_elvis_lhs;
406
405
  }
407
406
 
408
- tmp_6.c47_1 = tmp_8;
409
- if (this.z46_1.f3o() == null) {
410
- get_LOGGER().l2c('Request has unknown body type. Skipping ContentNegotiation for ' + this.z46_1.r2u_1.toString() + '.');
407
+ tmp_6.e49_1 = tmp_8;
408
+ if (this.b49_1.x3p() == null) {
409
+ get_LOGGER().u2d('Request has unknown body type. Skipping ContentNegotiation for ' + this.b49_1.e2w_1.toString() + '.');
411
410
  return null;
412
411
  }
413
412
 
414
- this.z46_1.t2u_1.n28(HttpHeaders_getInstance().e2f_1);
415
- this.d9_1 = 1;
413
+ this.b49_1.g2w_1.w29(HttpHeaders_getInstance().n2g_1);
414
+ var tmp_9 = this;
415
+ tmp_9.f49_1 = this.e49_1;
416
+ this.e9_1 = 1;
416
417
  continue $sm;
417
418
  case 1:
418
- var tmp_9 = this;
419
- tmp_9.e47_1 = this.c47_1;
420
- this.f47_1 = this.e47_1.p();
421
- this.d9_1 = 2;
419
+ this.h49_1 = this.f49_1;
420
+ this.i49_1 = this.h49_1.p();
421
+ this.e9_1 = 2;
422
422
  continue $sm;
423
423
  case 2:
424
- if (!this.f47_1.q()) {
425
- this.d9_1 = 5;
424
+ if (!this.i49_1.q()) {
425
+ this.e9_1 = 5;
426
426
  continue $sm;
427
427
  }
428
428
 
429
- this.g47_1 = this.f47_1.r();
429
+ this.j49_1 = this.i49_1.r();
430
430
  var tmp_10 = this;
431
- tmp_10.h47_1 = this.g47_1;
432
- this.d9_1 = 3;
433
- var tmp0_elvis_lhs_0 = charset(this.b47_1);
434
- var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().p1k_1 : tmp0_elvis_lhs_0;
435
- var tmp_12 = ensureNotNull(this.z46_1.f3o());
436
- var this_2 = this.a47_1;
431
+ tmp_10.k49_1 = this.j49_1;
432
+ this.l49_1 = this.k49_1;
433
+ this.e9_1 = 3;
434
+ var tmp0_elvis_lhs_0 = charset(this.d49_1);
435
+ var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().y1l_1 : tmp0_elvis_lhs_0;
436
+ var tmp_12 = ensureNotNull(this.b49_1.x3p());
437
+ var this_0 = this.c49_1;
437
438
  var tmp_13;
438
- if (!equals(this_2, NullBody_instance)) {
439
- tmp_13 = this_2;
439
+ if (!equals(this_0, NullBody_instance)) {
440
+ tmp_13 = this_0;
440
441
  } else {
441
442
  tmp_13 = null;
442
443
  }
443
444
 
444
- suspendResult = this.h47_1.g46_1.h49(this.b47_1, tmp_11, tmp_12, tmp_13, this);
445
+ suspendResult = this.l49_1.i48_1.l4b(this.d49_1, tmp_11, tmp_12, tmp_13, this);
445
446
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
446
447
  return suspendResult;
447
448
  }
@@ -450,37 +451,37 @@
450
451
  case 3:
451
452
  var result = suspendResult;
452
453
  if (!(result == null)) {
453
- get_LOGGER().l2c('Converted request body using ' + toString(this.h47_1.g46_1) + ' for ' + this.z46_1.r2u_1.toString());
454
+ get_LOGGER().u2d('Converted request body using ' + toString(this.l49_1.i48_1) + ' for ' + this.b49_1.e2w_1.toString());
454
455
  }
455
456
 
456
457
  var result_0 = result;
457
458
  if (!(result_0 == null)) {
458
- this.d47_1 = result_0;
459
- this.d9_1 = 6;
459
+ this.g49_1 = result_0;
460
+ this.e9_1 = 6;
460
461
  continue $sm;
461
462
  } else {
462
- this.d9_1 = 4;
463
+ this.e9_1 = 4;
463
464
  continue $sm;
464
465
  }
465
466
 
466
467
  case 4:
467
- this.d9_1 = 2;
468
+ this.e9_1 = 2;
468
469
  continue $sm;
469
470
  case 5:
470
- this.d47_1 = null;
471
+ this.g49_1 = null;
471
472
  if (false) {
472
- this.d9_1 = 1;
473
+ this.e9_1 = 1;
473
474
  continue $sm;
474
475
  }
475
476
 
476
- this.d9_1 = 6;
477
+ this.e9_1 = 6;
477
478
  continue $sm;
478
479
  case 6:
479
- var tmp2_elvis_lhs = this.d47_1;
480
+ var tmp2_elvis_lhs = this.g49_1;
480
481
  var tmp_14;
481
482
  if (tmp2_elvis_lhs == null) {
482
- var tmp_15 = "Can't convert " + toString(this.a47_1) + ' with contentType ' + this.b47_1.toString() + ' using converters ';
483
- throw new ContentConverterException(tmp_15 + joinToString(this.c47_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
483
+ var tmp_15 = "Can't convert " + toString(this.c49_1) + ' with contentType ' + this.d49_1.toString() + ' using converters ';
484
+ throw new ContentConverterException(tmp_15 + joinToString(this.e49_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
484
485
  } else {
485
486
  tmp_14 = tmp2_elvis_lhs;
486
487
  }
@@ -488,65 +489,65 @@
488
489
  var serializedContent = tmp_14;
489
490
  return serializedContent;
490
491
  case 7:
491
- throw this.g9_1;
492
+ throw this.h9_1;
492
493
  }
493
494
  } catch ($p) {
494
495
  var e = $p;
495
- if (this.e9_1 === 7) {
496
+ if (this.f9_1 === 7) {
496
497
  throw e;
497
498
  } else {
498
- this.d9_1 = this.e9_1;
499
- this.g9_1 = e;
499
+ this.e9_1 = this.f9_1;
500
+ this.h9_1 = e;
500
501
  }
501
502
  }
502
503
  while (true);
503
504
  };
504
505
  function $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
505
506
  CoroutineImpl.call(this, resultContinuation);
506
- this.q47_1 = ignoredTypes;
507
- this.r47_1 = registrations;
508
- this.s47_1 = $this_createClientPlugin;
509
- this.t47_1 = requestUrl;
510
- this.u47_1 = info;
511
- this.v47_1 = body;
512
- this.w47_1 = responseContentType;
513
- this.x47_1 = charset;
507
+ this.u49_1 = ignoredTypes;
508
+ this.v49_1 = registrations;
509
+ this.w49_1 = $this_createClientPlugin;
510
+ this.x49_1 = requestUrl;
511
+ this.y49_1 = info;
512
+ this.z49_1 = body;
513
+ this.a4a_1 = responseContentType;
514
+ this.b4a_1 = charset;
514
515
  }
515
- protoOf($invoke$convertResponseCOROUTINE$1).l9 = function () {
516
- var suspendResult = this.f9_1;
516
+ protoOf($invoke$convertResponseCOROUTINE$1).m9 = function () {
517
+ var suspendResult = this.g9_1;
517
518
  $sm: do
518
519
  try {
519
- var tmp = this.d9_1;
520
+ var tmp = this.e9_1;
520
521
  switch (tmp) {
521
522
  case 0:
522
- this.e9_1 = 2;
523
- var tmp_0 = this.v47_1;
523
+ this.f9_1 = 2;
524
+ var tmp_0 = this.z49_1;
524
525
  if (!isInterface(tmp_0, ByteReadChannel)) {
525
- get_LOGGER().l2c('Response body is already transformed. Skipping ContentNegotiation for ' + this.t47_1.toString() + '.');
526
+ get_LOGGER().u2d('Response body is already transformed. Skipping ContentNegotiation for ' + this.x49_1.toString() + '.');
526
527
  return null;
527
528
  }
528
529
 
529
- if (this.q47_1.x1(this.u47_1.z2b_1)) {
530
- get_LOGGER().l2c('Response body type ' + toString(this.u47_1.z2b_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.t47_1.toString() + '.'));
530
+ if (this.u49_1.x1(this.y49_1.i2d_1)) {
531
+ get_LOGGER().u2d('Response body type ' + toString(this.y49_1.i2d_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.x49_1.toString() + '.'));
531
532
  return null;
532
533
  }
533
534
 
534
535
  var tmp_1 = this;
535
- var this_0 = this.r47_1;
536
+ var tmp0 = this.v49_1;
536
537
  var destination = ArrayList_init_$Create$();
537
- var tmp0_iterator = this_0.p();
538
- while (tmp0_iterator.q()) {
539
- var element = tmp0_iterator.r();
540
- if (element.i46_1.k46(this.w47_1)) {
538
+ var _iterator__ex2g4s = tmp0.p();
539
+ while (_iterator__ex2g4s.q()) {
540
+ var element = _iterator__ex2g4s.r();
541
+ if (element.k48_1.m48(this.a4a_1)) {
541
542
  destination.k(element);
542
543
  }
543
544
  }
544
545
 
545
546
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
546
- var tmp0_iterator_0 = destination.p();
547
- while (tmp0_iterator_0.q()) {
548
- var item = tmp0_iterator_0.r();
549
- destination_0.k(item.g46_1);
547
+ var _iterator__ex2g4s_0 = destination.p();
548
+ while (_iterator__ex2g4s_0.q()) {
549
+ var item = _iterator__ex2g4s_0.r();
550
+ destination_0.k(item.i48_1);
550
551
  }
551
552
 
552
553
  var tmp_2;
@@ -559,16 +560,16 @@
559
560
  var tmp0_elvis_lhs = tmp_2;
560
561
  var tmp_3;
561
562
  if (tmp0_elvis_lhs == null) {
562
- this.s47_1;
563
- get_LOGGER().l2c('None of the registered converters match response with Content-Type=' + this.w47_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.t47_1.toString() + '.'));
563
+ this.w49_1;
564
+ get_LOGGER().u2d('None of the registered converters match response with Content-Type=' + this.a4a_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.x49_1.toString() + '.'));
564
565
  return null;
565
566
  } else {
566
567
  tmp_3 = tmp0_elvis_lhs;
567
568
  }
568
569
 
569
- tmp_1.y47_1 = tmp_3;
570
- this.d9_1 = 1;
571
- suspendResult = deserialize(this.y47_1, this.v47_1, this.u47_1, this.x47_1, this);
570
+ tmp_1.c4a_1 = tmp_3;
571
+ this.e9_1 = 1;
572
+ suspendResult = deserialize(this.c4a_1, this.z49_1, this.y49_1, this.b4a_1, this);
572
573
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
573
574
  return suspendResult;
574
575
  }
@@ -577,20 +578,20 @@
577
578
  case 1:
578
579
  var result = suspendResult;
579
580
  if (!isInterface(result, ByteReadChannel)) {
580
- get_LOGGER().l2c('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.t47_1.toString() + '.');
581
+ get_LOGGER().u2d('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.x49_1.toString() + '.');
581
582
  }
582
583
 
583
584
  return result;
584
585
  case 2:
585
- throw this.g9_1;
586
+ throw this.h9_1;
586
587
  }
587
588
  } catch ($p) {
588
589
  var e = $p;
589
- if (this.e9_1 === 2) {
590
+ if (this.f9_1 === 2) {
590
591
  throw e;
591
592
  } else {
592
- this.d9_1 = this.e9_1;
593
- this.g9_1 = e;
593
+ this.e9_1 = this.f9_1;
594
+ this.h9_1 = e;
594
595
  }
595
596
  }
596
597
  while (true);
@@ -600,18 +601,18 @@
600
601
  if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
601
602
  properties_initialized_ContentNegotiation_kt_1ayduy = true;
602
603
  LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
603
- DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().fc(), PrimitiveClasses_getInstance().bc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
604
+ DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().oc(), PrimitiveClasses_getInstance().kc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
604
605
  var tmp = ContentNegotiationConfig$_init_$ref_1ne3ob();
605
606
  ContentNegotiation = createClientPlugin('ContentNegotiation', tmp, ContentNegotiation$lambda);
606
607
  }
607
608
  }
608
609
  function JsonContentTypeMatcher() {
609
610
  }
610
- protoOf(JsonContentTypeMatcher).k46 = function (contentType) {
611
- if (contentType.g2e(Application_getInstance().y2c_1)) {
611
+ protoOf(JsonContentTypeMatcher).m48 = function (contentType) {
612
+ if (contentType.p2f(Application_getInstance().h2e_1)) {
612
613
  return true;
613
614
  }
614
- var value = contentType.f2e().toString();
615
+ var value = contentType.o2f().toString();
615
616
  return startsWith(value, 'application/', true) && endsWith(value, '+json', true);
616
617
  };
617
618
  var JsonContentTypeMatcher_instance;
@@ -632,7 +633,7 @@
632
633
  }
633
634
  }
634
635
  //region block: post-declaration
635
- protoOf(ContentNegotiationConfig).o2q = register$default;
636
+ protoOf(ContentNegotiationConfig).x2r = register$default;
636
637
  //endregion
637
638
  //region block: init
638
639
  JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
@@ -643,5 +644,3 @@
643
644
  //endregion
644
645
  return _;
645
646
  }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-shared-ktor-serialization.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-client-ktor-client-core.js'), require('./ktor-ktor-utils.js')));
646
-
647
- //# sourceMappingURL=ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map