@doordeck/doordeck-headless-sdk 0.203.0 → 0.205.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.
@@ -2,62 +2,63 @@
2
2
  'use strict';
3
3
  //region block: imports
4
4
  var CoroutineImpl = kotlin_kotlin.$_$.s9;
5
- var Unit_instance = kotlin_kotlin.$_$.a1;
6
- var protoOf = kotlin_kotlin.$_$.gc;
7
- var THROW_CCE = kotlin_kotlin.$_$.hg;
5
+ var Unit_instance = kotlin_kotlin.$_$.z2;
6
+ var protoOf = kotlin_kotlin.$_$.hc;
7
+ var THROW_CCE = kotlin_kotlin.$_$.jg;
8
8
  var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
9
9
  var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
10
- var initMetadataForLambda = kotlin_kotlin.$_$.ob;
10
+ var initMetadataForLambda = kotlin_kotlin.$_$.pb;
11
11
  var VOID = kotlin_kotlin.$_$.c;
12
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
13
- var initMetadataForClass = kotlin_kotlin.$_$.jb;
12
+ var constructCallableReference = kotlin_kotlin.$_$.ab;
13
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j3;
14
+ var initMetadataForClass = kotlin_kotlin.$_$.kb;
14
15
  var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
15
16
  var toList = kotlin_kotlin.$_$.n8;
16
17
  var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.e;
17
18
  var KtMutableMap = kotlin_kotlin.$_$.u5;
18
- var getKClass = kotlin_kotlin.$_$.yc;
19
- var arrayOf = kotlin_kotlin.$_$.vg;
20
- var createKType = kotlin_kotlin.$_$.wc;
21
- var createInvariantKTypeProjection = kotlin_kotlin.$_$.uc;
22
- var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.o;
19
+ var getKClass = kotlin_kotlin.$_$.ad;
20
+ var arrayOf = kotlin_kotlin.$_$.xg;
21
+ var createKType = kotlin_kotlin.$_$.yc;
22
+ var createInvariantKTypeProjection = kotlin_kotlin.$_$.wc;
23
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.n2;
23
24
  var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.o;
24
25
  var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.q;
25
26
  var Send_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
26
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t1;
27
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s3;
27
28
  var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
28
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j1;
29
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i3;
29
30
  var parseAuthorizationHeaders = kotlin_io_ktor_ktor_http.$_$.l;
30
31
  var flatten = kotlin_kotlin.$_$.g7;
31
32
  var emptyList = kotlin_kotlin.$_$.w6;
32
- var to = kotlin_kotlin.$_$.lh;
33
+ var to = kotlin_kotlin.$_$.nh;
33
34
  var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.k;
34
35
  var first = kotlin_kotlin.$_$.f7;
35
36
  var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.k;
36
37
  var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
37
- var toString = kotlin_kotlin.$_$.jc;
38
+ var toString = kotlin_kotlin.$_$.kc;
38
39
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
39
40
  var Sender = kotlin_io_ktor_ktor_client_core.$_$.l;
40
- var HashSet_init_$Create$ = kotlin_kotlin.$_$.r1;
41
- var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
41
+ var HashSet_init_$Create$ = kotlin_kotlin.$_$.q3;
42
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.mb;
42
43
  var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.j;
43
- var Unit = kotlin_kotlin.$_$.sg;
44
+ var Unit = kotlin_kotlin.$_$.ug;
44
45
  var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
45
46
  var KtList = kotlin_kotlin.$_$.n5;
46
- var initMetadataForInterface = kotlin_kotlin.$_$.nb;
47
- var initMetadataForCompanion = kotlin_kotlin.$_$.kb;
47
+ var initMetadataForInterface = kotlin_kotlin.$_$.ob;
48
+ var initMetadataForCompanion = kotlin_kotlin.$_$.lb;
48
49
  var get = kotlin_kotlin.$_$.o9;
49
50
  var fold = kotlin_kotlin.$_$.n9;
50
51
  var minusKey = kotlin_kotlin.$_$.p9;
51
52
  var plus = kotlin_kotlin.$_$.r9;
52
53
  var Element = kotlin_kotlin.$_$.q9;
53
54
  var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
54
- var isInterface = kotlin_kotlin.$_$.yb;
55
- var equals = kotlin_kotlin.$_$.bb;
55
+ var isInterface = kotlin_kotlin.$_$.zb;
56
+ var equals = kotlin_kotlin.$_$.cb;
56
57
  var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
57
- var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
58
- var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
58
+ var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
59
+ var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
59
60
  var headers = kotlin_io_ktor_ktor_client_core.$_$.g1;
60
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t2;
61
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s4;
61
62
  var Parameterized = kotlin_io_ktor_ktor_http.$_$.k;
62
63
  //endregion
63
64
  //region block: pre-declaration
@@ -69,11 +70,11 @@
69
70
  initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
70
71
  initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
71
72
  function sendWithoutRequest(request) {
72
- return this.m54();
73
+ return this.w54();
73
74
  }
74
75
  function addRequestHeaders$default(request, authHeader, $completion, $super) {
75
76
  authHeader = authHeader === VOID ? null : authHeader;
76
- return $super === VOID ? this.l54(request, authHeader, $completion) : $super.l54.call(this, request, authHeader, $completion);
77
+ return $super === VOID ? this.v54(request, authHeader, $completion) : $super.v54.call(this, request, authHeader, $completion);
77
78
  }
78
79
  function refreshToken(response, $completion) {
79
80
  return true;
@@ -117,14 +118,14 @@
117
118
  function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
118
119
  CoroutineImpl.call(this, resultContinuation);
119
120
  }
120
- protoOf(AuthConfig$isUnauthorizedResponse$slambda).s51 = function (it, $completion) {
121
- var tmp = this.n40(it, $completion);
121
+ protoOf(AuthConfig$isUnauthorizedResponse$slambda).c52 = function (it, $completion) {
122
+ var tmp = this.u40(it, $completion);
122
123
  tmp.f9_1 = Unit_instance;
123
124
  tmp.g9_1 = null;
124
125
  return tmp.l9();
125
126
  };
126
127
  protoOf(AuthConfig$isUnauthorizedResponse$slambda).y9 = function (p1, $completion) {
127
- return this.s51(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
128
+ return this.c52(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
128
129
  };
129
130
  protoOf(AuthConfig$isUnauthorizedResponse$slambda).l9 = function () {
130
131
  var suspendResult = this.f9_1;
@@ -133,7 +134,7 @@
133
134
  var tmp = this.d9_1;
134
135
  if (tmp === 0) {
135
136
  this.e9_1 = 1;
136
- return this.r51_1.o37().equals(Companion_getInstance().f33_1);
137
+ return this.b52_1.v37().equals(Companion_getInstance().m33_1);
137
138
  } else if (tmp === 1) {
138
139
  throw this.g9_1;
139
140
  }
@@ -143,40 +144,36 @@
143
144
  }
144
145
  while (true);
145
146
  };
146
- protoOf(AuthConfig$isUnauthorizedResponse$slambda).n40 = function (it, completion) {
147
+ protoOf(AuthConfig$isUnauthorizedResponse$slambda).u40 = function (it, completion) {
147
148
  var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
148
- i.r51_1 = it;
149
+ i.b52_1 = it;
149
150
  return i;
150
151
  };
151
152
  function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
152
153
  var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
153
- var l = function (it, $completion) {
154
- return i.s51(it, $completion);
155
- };
156
- l.$arity = 1;
157
- return l;
154
+ return constructCallableReference(function (it, $completion) {
155
+ return i.c52(it, $completion);
156
+ }, 1);
158
157
  }
159
158
  function AuthConfig() {
160
159
  var tmp = this;
161
160
  // Inline function 'kotlin.collections.mutableListOf' call
162
- tmp.t51_1 = ArrayList_init_$Create$();
161
+ tmp.d52_1 = ArrayList_init_$Create$();
163
162
  var tmp_0 = this;
164
- tmp_0.u51_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
163
+ tmp_0.e52_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
165
164
  }
166
165
  function AtomicCounter() {
167
- this.v51_1 = atomic$int$1(0);
166
+ this.f52_1 = atomic$int$1(0);
168
167
  }
169
168
  function AuthConfig$_init_$ref_ms3pb9() {
170
- var l = function () {
169
+ return constructCallableReference(function () {
171
170
  return new AuthConfig();
172
- };
173
- l.callableName = '<init>';
174
- return l;
171
+ }, 0, 0, 39, '<init>');
175
172
  }
176
173
  function Auth$lambda($this$createClientPlugin) {
177
174
  _init_properties_Auth_kt__9ob1dk();
178
- var providers = toList($this$createClientPlugin.n3z_1.t51_1);
179
- $this$createClientPlugin.m3z_1.m3p_1.v2k(get_AuthProvidersKey(), providers);
175
+ var providers = toList($this$createClientPlugin.u3z_1.d52_1);
176
+ $this$createClientPlugin.t3z_1.t3p_1.c2l(get_AuthProvidersKey(), providers);
180
177
  var tokenVersions = new ConcurrentMap();
181
178
  // Inline function 'io.ktor.util.AttributeKey' call
182
179
  var name = 'ProviderVersionAttributeKey';
@@ -185,7 +182,7 @@
185
182
  // Inline function 'io.ktor.util.reflect.typeOfOrNull' call
186
183
  var tmp_0;
187
184
  try {
188
- tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().zb(), arrayOf([]), false))]), false);
185
+ tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().cc(), arrayOf([]), false))]), false);
189
186
  } catch ($p) {
190
187
  var tmp_1;
191
188
  if ($p instanceof Error) {
@@ -199,9 +196,9 @@
199
196
  var tmp$ret$2 = tmp_0;
200
197
  var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$2);
201
198
  var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
202
- $this$createClientPlugin.n4e(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
199
+ $this$createClientPlugin.x4e(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
203
200
  var tmp_2 = Send_instance;
204
- $this$createClientPlugin.q3z(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
201
+ $this$createClientPlugin.x3z(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
205
202
  return Unit_instance;
206
203
  }
207
204
  function Auth$lambda$refreshTokenIfNeeded$lambda() {
@@ -214,7 +211,7 @@
214
211
  return LinkedHashMap_init_$Create$();
215
212
  }
216
213
  function invoke$findProvider(call, candidateProviders) {
217
- var headerValues = call.n3q().p31().j2p('WWW-Authenticate');
214
+ var headerValues = call.u3q().w31().q2p('WWW-Authenticate');
218
215
  var tmp;
219
216
  if (headerValues == null) {
220
217
  tmp = null;
@@ -242,7 +239,7 @@
242
239
  var _iterator__ex2g4s_0 = authHeaders.t();
243
240
  while (_iterator__ex2g4s_0.u()) {
244
241
  var element = _iterator__ex2g4s_0.v();
245
- if (provider.w51(element)) {
242
+ if (provider.g52(element)) {
246
243
  tmp$ret$3 = element;
247
244
  break $l$block;
248
245
  }
@@ -255,8 +252,8 @@
255
252
  // Inline function 'io.ktor.util.logging.trace' call
256
253
  var this_0 = get_LOGGER();
257
254
  if (get_isTraceEnabled(this_0)) {
258
- var tmp$ret$6 = 'Unauthorized response ' + call.v3s().e3t().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
259
- this_0.f2u(tmp$ret$6);
255
+ var tmp$ret$6 = 'Unauthorized response ' + call.c3t().l3t().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
256
+ this_0.m2u(tmp$ret$6);
260
257
  }
261
258
  tmp_0 = null;
262
259
  } else {
@@ -273,7 +270,7 @@
273
270
  var _iterator__ex2g4s_2 = candidateProviders.t();
274
271
  while (_iterator__ex2g4s_2.u()) {
275
272
  var element_1 = _iterator__ex2g4s_2.v();
276
- if (element_1.w51(element_0)) {
273
+ if (element_1.g52(element_0)) {
277
274
  tmp$ret$10 = element_1;
278
275
  break $l$block_0;
279
276
  }
@@ -320,21 +317,21 @@
320
317
  return LinkedHashMap_init_$Create$();
321
318
  }
322
319
  function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
323
- this.i53_1 = $providers;
324
- this.j53_1 = $tokenVersions;
325
- this.k53_1 = $tokenVersionsAttributeKey;
320
+ this.s53_1 = $providers;
321
+ this.t53_1 = $tokenVersions;
322
+ this.u53_1 = $tokenVersionsAttributeKey;
326
323
  CoroutineImpl.call(this, resultContinuation);
327
324
  }
328
- protoOf(Auth$lambda$slambda).b4f = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
329
- var tmp = this.c4f($this$onRequest, request, _unused_var__etf5q3, $completion);
325
+ protoOf(Auth$lambda$slambda).l4f = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
326
+ var tmp = this.m4f($this$onRequest, request, _unused_var__etf5q3, $completion);
330
327
  tmp.f9_1 = Unit_instance;
331
328
  tmp.g9_1 = null;
332
329
  return tmp.l9();
333
330
  };
334
- protoOf(Auth$lambda$slambda).d4f = function (p1, p2, p3, $completion) {
331
+ protoOf(Auth$lambda$slambda).n4f = function (p1, p2, p3, $completion) {
335
332
  var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
336
333
  var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
337
- return this.b4f(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
334
+ return this.l4f(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
338
335
  };
339
336
  protoOf(Auth$lambda$slambda).l9 = function () {
340
337
  var suspendResult = this.f9_1;
@@ -344,37 +341,37 @@
344
341
  switch (tmp) {
345
342
  case 0:
346
343
  this.e9_1 = 4;
347
- var tmp0 = this.i53_1;
344
+ var tmp0 = this.s53_1;
348
345
  var destination = ArrayList_init_$Create$();
349
346
  var _iterator__ex2g4s = tmp0.t();
350
347
  while (_iterator__ex2g4s.u()) {
351
348
  var element = _iterator__ex2g4s.v();
352
- if (element.p53(this.m53_1)) {
349
+ if (element.z53(this.w53_1)) {
353
350
  destination.j1(element);
354
351
  }
355
352
  }
356
353
 
357
- this.o53_1 = destination.t();
354
+ this.y53_1 = destination.t();
358
355
  this.d9_1 = 1;
359
356
  continue $sm;
360
357
  case 1:
361
- if (!this.o53_1.u()) {
358
+ if (!this.y53_1.u()) {
362
359
  this.d9_1 = 3;
363
360
  continue $sm;
364
361
  }
365
362
 
366
- var element_0 = this.o53_1.v();
363
+ var element_0 = this.y53_1.v();
367
364
  var this_0 = get_LOGGER();
368
365
  if (get_isTraceEnabled(this_0)) {
369
- this_0.f2u('Adding auth headers for ' + this.m53_1.n3r_1.toString() + ' from provider ' + toString(element_0));
366
+ this_0.m2u('Adding auth headers for ' + this.w53_1.u3r_1.toString() + ' from provider ' + toString(element_0));
370
367
  }
371
368
 
372
- var tokenVersion = this.j53_1.u2t(element_0, Auth$lambda$slambda$lambda);
373
- var requestTokenVersions = this.m53_1.s3r_1.y2k(this.k53_1, Auth$lambda$slambda$lambda_0);
374
- var value = tokenVersion.v51_1.kotlinx$atomicfu$value;
369
+ var tokenVersion = this.t53_1.b2u(element_0, Auth$lambda$slambda$lambda);
370
+ var requestTokenVersions = this.w53_1.z3r_1.f2l(this.u53_1, Auth$lambda$slambda$lambda_0);
371
+ var value = tokenVersion.f52_1.kotlinx$atomicfu$value;
375
372
  requestTokenVersions.y2(element_0, value);
376
373
  this.d9_1 = 2;
377
- suspendResult = element_0.q53(this.m53_1, VOID, this);
374
+ suspendResult = element_0.a54(this.w53_1, VOID, this);
378
375
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
379
376
  return suspendResult;
380
377
  }
@@ -399,37 +396,35 @@
399
396
  }
400
397
  while (true);
401
398
  };
402
- protoOf(Auth$lambda$slambda).c4f = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
403
- var i = new Auth$lambda$slambda(this.i53_1, this.j53_1, this.k53_1, completion);
404
- i.l53_1 = $this$onRequest;
405
- i.m53_1 = request;
406
- i.n53_1 = _unused_var__etf5q3;
399
+ protoOf(Auth$lambda$slambda).m4f = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
400
+ var i = new Auth$lambda$slambda(this.s53_1, this.t53_1, this.u53_1, completion);
401
+ i.v53_1 = $this$onRequest;
402
+ i.w53_1 = request;
403
+ i.x53_1 = _unused_var__etf5q3;
407
404
  return i;
408
405
  };
409
406
  function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
410
407
  var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
411
- var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
412
- return i.b4f($this$onRequest, request, _unused_var__etf5q3, $completion);
413
- };
414
- l.$arity = 3;
415
- return l;
408
+ return constructCallableReference(function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
409
+ return i.l4f($this$onRequest, request, _unused_var__etf5q3, $completion);
410
+ }, 3);
416
411
  }
417
412
  function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
418
- this.z53_1 = $this_createClientPlugin;
419
- this.a54_1 = $providers;
420
- this.b54_1 = $tokenVersions;
421
- this.c54_1 = $tokenVersionsAttributeKey;
413
+ this.j54_1 = $this_createClientPlugin;
414
+ this.k54_1 = $providers;
415
+ this.l54_1 = $tokenVersions;
416
+ this.m54_1 = $tokenVersionsAttributeKey;
422
417
  CoroutineImpl.call(this, resultContinuation);
423
418
  }
424
- protoOf(Auth$lambda$slambda_1).r46 = function ($this$on, originalRequest, $completion) {
425
- var tmp = this.s46($this$on, originalRequest, $completion);
419
+ protoOf(Auth$lambda$slambda_1).y46 = function ($this$on, originalRequest, $completion) {
420
+ var tmp = this.z46($this$on, originalRequest, $completion);
426
421
  tmp.f9_1 = Unit_instance;
427
422
  tmp.g9_1 = null;
428
423
  return tmp.l9();
429
424
  };
430
425
  protoOf(Auth$lambda$slambda_1).z9 = function (p1, p2, $completion) {
431
426
  var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
432
- return this.r46(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
427
+ return this.y46(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
433
428
  };
434
429
  protoOf(Auth$lambda$slambda_1).l9 = function () {
435
430
  var suspendResult = this.f9_1;
@@ -440,16 +435,16 @@
440
435
  case 0:
441
436
  this.e9_1 = 10;
442
437
  this.d9_1 = 1;
443
- suspendResult = this.d54_1.v46(this.e54_1, this);
438
+ suspendResult = this.n54_1.c47(this.o54_1, this);
444
439
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
445
440
  return suspendResult;
446
441
  }
447
442
 
448
443
  continue $sm;
449
444
  case 1:
450
- this.j54_1 = suspendResult;
445
+ this.t54_1 = suspendResult;
451
446
  this.d9_1 = 2;
452
- suspendResult = this.z53_1.n3z_1.u51_1(this.j54_1.n3q(), this);
447
+ suspendResult = this.j54_1.u3z_1.e52_1(this.t54_1.u3q(), this);
453
448
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
454
449
  return suspendResult;
455
450
  }
@@ -457,22 +452,22 @@
457
452
  continue $sm;
458
453
  case 2:
459
454
  if (!suspendResult) {
460
- return this.j54_1;
455
+ return this.t54_1;
461
456
  } else {
462
457
  this.d9_1 = 3;
463
458
  continue $sm;
464
459
  }
465
460
 
466
461
  case 3:
467
- if (this.j54_1.v3s().w3s().u2k(get_AuthCircuitBreaker()))
468
- return this.j54_1;
469
- this.f54_1 = this.j54_1;
470
- this.i54_1 = HashSet_init_$Create$(this.a54_1);
462
+ if (this.t54_1.c3t().d3t().b2l(get_AuthCircuitBreaker()))
463
+ return this.t54_1;
464
+ this.p54_1 = this.t54_1;
465
+ this.s54_1 = HashSet_init_$Create$(this.k54_1);
471
466
  this.d9_1 = 4;
472
467
  continue $sm;
473
468
  case 4:
474
469
  this.d9_1 = 5;
475
- suspendResult = this.z53_1.n3z_1.u51_1(this.f54_1.n3q(), this);
470
+ suspendResult = this.j54_1.u3z_1.e52_1(this.p54_1.u3q(), this);
476
471
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
477
472
  return suspendResult;
478
473
  }
@@ -486,33 +481,33 @@
486
481
 
487
482
  var this_0 = get_LOGGER();
488
483
  if (get_isTraceEnabled(this_0)) {
489
- this_0.f2u('Unauthorized response for ' + this.f54_1.v3s().e3t().toString());
484
+ this_0.m2u('Unauthorized response for ' + this.p54_1.c3t().l3t().toString());
490
485
  }
491
486
 
492
- var tmp0_elvis_lhs = invoke$findProvider(this.f54_1, this.i54_1);
487
+ var tmp0_elvis_lhs = invoke$findProvider(this.p54_1, this.s54_1);
493
488
  var tmp_0;
494
489
  if (tmp0_elvis_lhs == null) {
495
- this.d54_1;
490
+ this.n54_1;
496
491
  var this_1 = get_LOGGER();
497
492
  if (get_isTraceEnabled(this_1)) {
498
- this_1.f2u('Can not find auth provider for ' + this.f54_1.v3s().e3t().toString());
493
+ this_1.m2u('Can not find auth provider for ' + this.p54_1.c3t().l3t().toString());
499
494
  }
500
- return this.f54_1;
495
+ return this.p54_1;
501
496
  } else {
502
497
  tmp_0 = tmp0_elvis_lhs;
503
498
  }
504
499
 
505
500
  var _destruct__k2r9zo = tmp_0;
506
- this.h54_1 = _destruct__k2r9zo.fg();
507
- this.g54_1 = _destruct__k2r9zo.gg();
501
+ this.r54_1 = _destruct__k2r9zo.jg();
502
+ this.q54_1 = _destruct__k2r9zo.kg();
508
503
  var this_2 = get_LOGGER();
509
504
  if (get_isTraceEnabled(this_2)) {
510
- this_2.f2u('Using provider ' + toString(this.h54_1) + ' for ' + this.f54_1.v3s().e3t().toString());
505
+ this_2.m2u('Using provider ' + toString(this.r54_1) + ' for ' + this.p54_1.c3t().l3t().toString());
511
506
  }
512
507
 
513
- this.i54_1.i3(this.h54_1);
508
+ this.s54_1.i3(this.r54_1);
514
509
  this.d9_1 = 6;
515
- suspendResult = invoke$refreshTokenIfNeeded(this.b54_1, this.c54_1, this.f54_1, this.h54_1, this.e54_1, this);
510
+ suspendResult = invoke$refreshTokenIfNeeded(this.l54_1, this.m54_1, this.p54_1, this.r54_1, this.o54_1, this);
516
511
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
517
512
  return suspendResult;
518
513
  }
@@ -520,7 +515,7 @@
520
515
  continue $sm;
521
516
  case 6:
522
517
  if (!suspendResult) {
523
- return this.f54_1;
518
+ return this.p54_1;
524
519
  } else {
525
520
  this.d9_1 = 7;
526
521
  continue $sm;
@@ -528,18 +523,18 @@
528
523
 
529
524
  case 7:
530
525
  this.d9_1 = 8;
531
- suspendResult = invoke$executeWithNewToken(this.d54_1, this.f54_1, this.h54_1, this.e54_1, this.g54_1, this);
526
+ suspendResult = invoke$executeWithNewToken(this.n54_1, this.p54_1, this.r54_1, this.o54_1, this.q54_1, this);
532
527
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
533
528
  return suspendResult;
534
529
  }
535
530
 
536
531
  continue $sm;
537
532
  case 8:
538
- this.f54_1 = suspendResult;
533
+ this.p54_1 = suspendResult;
539
534
  this.d9_1 = 4;
540
535
  continue $sm;
541
536
  case 9:
542
- return this.f54_1;
537
+ return this.p54_1;
543
538
  case 10:
544
539
  throw this.g9_1;
545
540
  }
@@ -554,27 +549,25 @@
554
549
  }
555
550
  while (true);
556
551
  };
557
- protoOf(Auth$lambda$slambda_1).s46 = function ($this$on, originalRequest, completion) {
558
- var i = new Auth$lambda$slambda_1(this.z53_1, this.a54_1, this.b54_1, this.c54_1, completion);
559
- i.d54_1 = $this$on;
560
- i.e54_1 = originalRequest;
552
+ protoOf(Auth$lambda$slambda_1).z46 = function ($this$on, originalRequest, completion) {
553
+ var i = new Auth$lambda$slambda_1(this.j54_1, this.k54_1, this.l54_1, this.m54_1, completion);
554
+ i.n54_1 = $this$on;
555
+ i.o54_1 = originalRequest;
561
556
  return i;
562
557
  };
563
558
  function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
564
559
  var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
565
- var l = function ($this$on, originalRequest, $completion) {
566
- return i.r46($this$on, originalRequest, $completion);
567
- };
568
- l.$arity = 2;
569
- return l;
560
+ return constructCallableReference(function ($this$on, originalRequest, $completion) {
561
+ return i.y46($this$on, originalRequest, $completion);
562
+ }, 2);
570
563
  }
571
564
  function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
572
565
  CoroutineImpl.call(this, resultContinuation);
573
- this.f52_1 = tokenVersions;
574
- this.g52_1 = tokenVersionsAttributeKey;
575
- this.h52_1 = call;
576
- this.i52_1 = provider;
577
- this.j52_1 = request;
566
+ this.p52_1 = tokenVersions;
567
+ this.q52_1 = tokenVersionsAttributeKey;
568
+ this.r52_1 = call;
569
+ this.s52_1 = provider;
570
+ this.t52_1 = request;
578
571
  }
579
572
  protoOf($invoke$refreshTokenIfNeededCOROUTINE$).l9 = function () {
580
573
  var suspendResult = this.f9_1;
@@ -585,17 +578,17 @@
585
578
  case 0:
586
579
  this.e9_1 = 4;
587
580
  var tmp_0 = this;
588
- tmp_0.k52_1 = this.f52_1.u2t(this.i52_1, Auth$lambda$refreshTokenIfNeeded$lambda);
581
+ tmp_0.u52_1 = this.p52_1.b2u(this.s52_1, Auth$lambda$refreshTokenIfNeeded$lambda);
589
582
  var tmp_1 = this;
590
- tmp_1.l52_1 = this.j52_1.s3r_1.y2k(this.g52_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
591
- var requestTokenVersion = this.l52_1.g3(this.i52_1);
592
- if (!(requestTokenVersion == null) && requestTokenVersion >= this.k52_1.v51_1.kotlinx$atomicfu$value) {
583
+ tmp_1.v52_1 = this.t52_1.z3r_1.f2l(this.q52_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
584
+ var requestTokenVersion = this.v52_1.g3(this.s52_1);
585
+ if (!(requestTokenVersion == null) && requestTokenVersion >= this.u52_1.f52_1.kotlinx$atomicfu$value) {
593
586
  var this_0 = get_LOGGER();
594
587
  if (get_isTraceEnabled(this_0)) {
595
- this_0.f2u('Refreshing token for ' + this.h52_1.v3s().e3t().toString());
588
+ this_0.m2u('Refreshing token for ' + this.r52_1.c3t().l3t().toString());
596
589
  }
597
590
  this.d9_1 = 1;
598
- suspendResult = this.i52_1.k54(this.h52_1.n3q(), this);
591
+ suspendResult = this.s52_1.u54(this.r52_1.u3q(), this);
599
592
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
600
593
  return suspendResult;
601
594
  }
@@ -609,13 +602,13 @@
609
602
  if (!suspendResult) {
610
603
  var this_1 = get_LOGGER();
611
604
  if (get_isTraceEnabled(this_1)) {
612
- this_1.f2u('Refreshing token failed for ' + this.h52_1.v3s().e3t().toString());
605
+ this_1.m2u('Refreshing token failed for ' + this.r52_1.c3t().l3t().toString());
613
606
  }
614
607
  return false;
615
608
  } else {
616
- var tmp0 = this.l52_1;
617
- var tmp2 = this.i52_1;
618
- var value = this.k52_1.v51_1.atomicfu$incrementAndGet();
609
+ var tmp0 = this.v52_1;
610
+ var tmp2 = this.s52_1;
611
+ var value = this.u52_1.f52_1.atomicfu$incrementAndGet();
619
612
  tmp0.y2(tmp2, value);
620
613
  this.d9_1 = 2;
621
614
  continue $sm;
@@ -642,11 +635,11 @@
642
635
  };
643
636
  function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
644
637
  CoroutineImpl.call(this, resultContinuation);
645
- this.u52_1 = _this__u8e3s4;
646
- this.v52_1 = call;
647
- this.w52_1 = provider;
648
- this.x52_1 = oldRequest;
649
- this.y52_1 = authHeader;
638
+ this.e53_1 = _this__u8e3s4;
639
+ this.f53_1 = call;
640
+ this.g53_1 = provider;
641
+ this.h53_1 = oldRequest;
642
+ this.i53_1 = authHeader;
650
643
  }
651
644
  protoOf($invoke$executeWithNewTokenCOROUTINE$).l9 = function () {
652
645
  var suspendResult = this.f9_1;
@@ -656,24 +649,24 @@
656
649
  switch (tmp) {
657
650
  case 0:
658
651
  this.e9_1 = 3;
659
- this.z52_1 = new HttpRequestBuilder();
660
- this.z52_1.g3x(this.x52_1);
652
+ this.j53_1 = new HttpRequestBuilder();
653
+ this.j53_1.n3x(this.h53_1);
661
654
  this.d9_1 = 1;
662
- suspendResult = this.w52_1.l54(this.z52_1, this.y52_1, this);
655
+ suspendResult = this.g53_1.v54(this.j53_1, this.i53_1, this);
663
656
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
664
657
  return suspendResult;
665
658
  }
666
659
 
667
660
  continue $sm;
668
661
  case 1:
669
- this.z52_1.s3r_1.v2k(get_AuthCircuitBreaker(), Unit_instance);
662
+ this.j53_1.z3r_1.c2l(get_AuthCircuitBreaker(), Unit_instance);
670
663
  var this_0 = get_LOGGER();
671
664
  if (get_isTraceEnabled(this_0)) {
672
- this_0.f2u('Sending new request to ' + this.v52_1.v3s().e3t().toString());
665
+ this_0.m2u('Sending new request to ' + this.f53_1.c3t().l3t().toString());
673
666
  }
674
667
 
675
668
  this.d9_1 = 2;
676
- suspendResult = this.u52_1.v46(this.z52_1, this);
669
+ suspendResult = this.e53_1.c47(this.j53_1, this);
677
670
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
678
671
  return suspendResult;
679
672
  }
@@ -731,13 +724,13 @@
731
724
  var tmp_4;
732
725
  try {
733
726
  tmp_4 = createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false))]), false);
734
- } catch ($p) {
727
+ } catch ($p_0) {
735
728
  var tmp_5;
736
- if ($p instanceof Error) {
737
- var _unused_var__etf5q3_0 = $p;
729
+ if ($p_0 instanceof Error) {
730
+ var _unused_var__etf5q3_0 = $p_0;
738
731
  tmp_5 = null;
739
732
  } else {
740
- throw $p;
733
+ throw $p_0;
741
734
  }
742
735
  tmp_4 = tmp_5;
743
736
  }
@@ -760,20 +753,20 @@
760
753
  return Companion_instance;
761
754
  };
762
755
  function AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
763
- this.v54_1 = this$0;
764
- this.w54_1 = $prevValue;
765
- this.x54_1 = $lockedByLoad;
766
- this.y54_1 = $block;
756
+ this.f55_1 = this$0;
757
+ this.g55_1 = $prevValue;
758
+ this.h55_1 = $lockedByLoad;
759
+ this.i55_1 = $block;
767
760
  CoroutineImpl.call(this, resultContinuation);
768
761
  }
769
- protoOf(AuthTokenHolder$setToken$slambda).d55 = function ($this$withContext, $completion) {
770
- var tmp = this.w1x($this$withContext, $completion);
762
+ protoOf(AuthTokenHolder$setToken$slambda).n55 = function ($this$withContext, $completion) {
763
+ var tmp = this.d1y($this$withContext, $completion);
771
764
  tmp.f9_1 = Unit_instance;
772
765
  tmp.g9_1 = null;
773
766
  return tmp.l9();
774
767
  };
775
768
  protoOf(AuthTokenHolder$setToken$slambda).y9 = function (p1, $completion) {
776
- return this.d55((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
769
+ return this.n55((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
777
770
  };
778
771
  protoOf(AuthTokenHolder$setToken$slambda).l9 = function () {
779
772
  var suspendResult = this.f9_1;
@@ -783,24 +776,24 @@
783
776
  switch (tmp) {
784
777
  case 0:
785
778
  this.e9_1 = 7;
786
- this.b55_1 = this.v54_1.i55_1;
787
- this.a55_1 = null;
779
+ this.l55_1 = this.f55_1.s55_1;
780
+ this.k55_1 = null;
788
781
  this.d9_1 = 1;
789
- suspendResult = this.b55_1.b1k(this.a55_1, this);
782
+ suspendResult = this.l55_1.f1k(this.k55_1, this);
790
783
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
791
784
  return suspendResult;
792
785
  }
793
786
 
794
787
  continue $sm;
795
788
  case 1:
796
- this.c55_1 = Unit_instance;
789
+ this.m55_1 = Unit_instance;
797
790
  this.d9_1 = 2;
798
791
  continue $sm;
799
792
  case 2:
800
793
  this.e9_1 = 6;
801
- if (equals(this.w54_1, this.v54_1.g55_1) || this.x54_1) {
794
+ if (equals(this.g55_1, this.f55_1.q55_1) || this.h55_1) {
802
795
  this.d9_1 = 3;
803
- suspendResult = this.y54_1(this);
796
+ suspendResult = this.i55_1(this);
804
797
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
805
798
  return suspendResult;
806
799
  }
@@ -812,23 +805,23 @@
812
805
 
813
806
  case 3:
814
807
  var ARGUMENT = suspendResult;
815
- this.v54_1.g55_1 = ARGUMENT;
808
+ this.f55_1.q55_1 = ARGUMENT;
816
809
  this.d9_1 = 4;
817
810
  continue $sm;
818
811
  case 4:
819
- this.c55_1 = this.v54_1.g55_1;
812
+ this.m55_1 = this.f55_1.q55_1;
820
813
  this.e9_1 = 7;
821
814
  this.d9_1 = 5;
822
815
  continue $sm;
823
816
  case 5:
824
- var tmp_0 = this.c55_1;
817
+ var tmp_0 = this.m55_1;
825
818
  this.e9_1 = 7;
826
- this.b55_1.n1j(this.a55_1);
819
+ this.l55_1.r1j(this.k55_1);
827
820
  return tmp_0;
828
821
  case 6:
829
822
  this.e9_1 = 7;
830
823
  var t = this.g9_1;
831
- this.b55_1.n1j(this.a55_1);
824
+ this.l55_1.r1j(this.k55_1);
832
825
  throw t;
833
826
  case 7:
834
827
  throw this.g9_1;
@@ -844,22 +837,20 @@
844
837
  }
845
838
  while (true);
846
839
  };
847
- protoOf(AuthTokenHolder$setToken$slambda).w1x = function ($this$withContext, completion) {
848
- var i = new AuthTokenHolder$setToken$slambda(this.v54_1, this.w54_1, this.x54_1, this.y54_1, completion);
849
- i.z54_1 = $this$withContext;
840
+ protoOf(AuthTokenHolder$setToken$slambda).d1y = function ($this$withContext, completion) {
841
+ var i = new AuthTokenHolder$setToken$slambda(this.f55_1, this.g55_1, this.h55_1, this.i55_1, completion);
842
+ i.j55_1 = $this$withContext;
850
843
  return i;
851
844
  };
852
845
  function AuthTokenHolder$setToken$slambda_0(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
853
846
  var i = new AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation);
854
- var l = function ($this$withContext, $completion) {
855
- return i.d55($this$withContext, $completion);
856
- };
857
- l.$arity = 1;
858
- return l;
847
+ return constructCallableReference(function ($this$withContext, $completion) {
848
+ return i.n55($this$withContext, $completion);
849
+ }, 1);
859
850
  }
860
851
  function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
861
852
  CoroutineImpl.call(this, resultContinuation);
862
- this.s55_1 = _this__u8e3s4;
853
+ this.c56_1 = _this__u8e3s4;
863
854
  }
864
855
  protoOf($loadTokenCOROUTINE$).l9 = function () {
865
856
  var suspendResult = this.f9_1;
@@ -869,9 +860,9 @@
869
860
  switch (tmp) {
870
861
  case 0:
871
862
  this.e9_1 = 14;
872
- if (!this.s55_1.f55_1) {
863
+ if (!this.c56_1.p55_1) {
873
864
  this.d9_1 = 13;
874
- suspendResult = this.s55_1.e55_1(this);
865
+ suspendResult = this.c56_1.o55_1(this);
875
866
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
876
867
  return suspendResult;
877
868
  }
@@ -882,21 +873,21 @@
882
873
  }
883
874
 
884
875
  case 1:
885
- if (!(this.s55_1.g55_1 == null))
886
- return this.s55_1.g55_1;
887
- this.x55_1 = this.s55_1.g55_1;
876
+ if (!(this.c56_1.q55_1 == null))
877
+ return this.c56_1.q55_1;
878
+ this.h56_1 = this.c56_1.q55_1;
888
879
  if (!(this.j9().q9(Companion_instance) == null)) {
889
880
  this.d9_1 = 11;
890
- suspendResult = this.s55_1.e55_1(this);
881
+ suspendResult = this.c56_1.o55_1(this);
891
882
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
892
883
  return suspendResult;
893
884
  }
894
885
  continue $sm;
895
886
  } else {
896
- this.v55_1 = this.s55_1.i55_1;
897
- this.u55_1 = null;
887
+ this.f56_1 = this.c56_1.s55_1;
888
+ this.e56_1 = null;
898
889
  this.d9_1 = 2;
899
- suspendResult = this.v55_1.b1k(this.u55_1, this);
890
+ suspendResult = this.f56_1.f1k(this.e56_1, this);
900
891
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
901
892
  return suspendResult;
902
893
  }
@@ -904,19 +895,19 @@
904
895
  }
905
896
 
906
897
  case 2:
907
- this.w55_1 = Unit_instance;
898
+ this.g56_1 = Unit_instance;
908
899
  this.d9_1 = 3;
909
900
  continue $sm;
910
901
  case 3:
911
902
  this.e9_1 = 10;
912
- this.s55_1.h55_1 = true;
903
+ this.c56_1.r55_1 = true;
913
904
  this.d9_1 = 4;
914
905
  continue $sm;
915
906
  case 4:
916
907
  this.e9_1 = 9;
917
- if (equals(this.x55_1, this.s55_1.g55_1)) {
908
+ if (equals(this.h56_1, this.c56_1.q55_1)) {
918
909
  this.d9_1 = 5;
919
- suspendResult = this.s55_1.e55_1(this);
910
+ suspendResult = this.c56_1.o55_1(this);
920
911
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
921
912
  return suspendResult;
922
913
  }
@@ -928,7 +919,7 @@
928
919
 
929
920
  case 5:
930
921
  var ARGUMENT = suspendResult;
931
- this.s55_1.g55_1 = ARGUMENT;
922
+ this.c56_1.q55_1 = ARGUMENT;
932
923
  this.d9_1 = 6;
933
924
  continue $sm;
934
925
  case 6:
@@ -936,36 +927,36 @@
936
927
  continue $sm;
937
928
  case 7:
938
929
  this.e9_1 = 10;
939
- this.s55_1.h55_1 = false;
940
- this.w55_1 = this.s55_1.g55_1;
930
+ this.c56_1.r55_1 = false;
931
+ this.g56_1 = this.c56_1.q55_1;
941
932
  this.e9_1 = 14;
942
933
  this.d9_1 = 8;
943
934
  continue $sm;
944
935
  case 8:
945
- var tmp_0 = this.w55_1;
936
+ var tmp_0 = this.g56_1;
946
937
  this.e9_1 = 14;
947
- this.v55_1.n1j(this.u55_1);
948
- this.t55_1 = tmp_0;
938
+ this.f56_1.r1j(this.e56_1);
939
+ this.d56_1 = tmp_0;
949
940
  this.d9_1 = 12;
950
941
  continue $sm;
951
942
  case 9:
952
943
  this.e9_1 = 10;
953
944
  var t = this.g9_1;
954
- this.s55_1.h55_1 = false;
945
+ this.c56_1.r55_1 = false;
955
946
  throw t;
956
947
  case 10:
957
948
  this.e9_1 = 14;
958
949
  var t_0 = this.g9_1;
959
- this.v55_1.n1j(this.u55_1);
950
+ this.f56_1.r1j(this.e56_1);
960
951
  throw t_0;
961
952
  case 11:
962
953
  var ARGUMENT_0 = suspendResult;
963
- this.s55_1.g55_1 = ARGUMENT_0;
964
- this.t55_1 = this.s55_1.g55_1;
954
+ this.c56_1.q55_1 = ARGUMENT_0;
955
+ this.d56_1 = this.c56_1.q55_1;
965
956
  this.d9_1 = 12;
966
957
  continue $sm;
967
958
  case 12:
968
- return this.t55_1;
959
+ return this.d56_1;
969
960
  case 13:
970
961
  return suspendResult;
971
962
  case 14:
@@ -984,29 +975,29 @@
984
975
  };
985
976
  function AuthTokenHolder(loadTokens, cacheTokens) {
986
977
  cacheTokens = cacheTokens === VOID ? true : cacheTokens;
987
- this.e55_1 = loadTokens;
988
- this.f55_1 = cacheTokens;
989
- this.g55_1 = null;
990
- this.h55_1 = false;
991
- this.i55_1 = Mutex();
992
- this.j55_1 = new SetTokenContext();
978
+ this.o55_1 = loadTokens;
979
+ this.p55_1 = cacheTokens;
980
+ this.q55_1 = null;
981
+ this.r55_1 = false;
982
+ this.s55_1 = Mutex();
983
+ this.t55_1 = new SetTokenContext();
993
984
  }
994
- protoOf(AuthTokenHolder).y55 = function ($completion) {
985
+ protoOf(AuthTokenHolder).i56 = function ($completion) {
995
986
  var tmp = new $loadTokenCOROUTINE$(this, $completion);
996
987
  tmp.f9_1 = Unit_instance;
997
988
  tmp.g9_1 = null;
998
989
  return tmp.l9();
999
990
  };
1000
- protoOf(AuthTokenHolder).z55 = function (nonCancellable, block, $completion) {
1001
- var prevValue = this.g55_1;
1002
- var lockedByLoad = this.h55_1;
991
+ protoOf(AuthTokenHolder).j56 = function (nonCancellable, block, $completion) {
992
+ var prevValue = this.q55_1;
993
+ var lockedByLoad = this.r55_1;
1003
994
  var tmp;
1004
995
  if (nonCancellable) {
1005
996
  // Inline function 'kotlin.js.getCoroutineContext' call
1006
- tmp = $completion.j9().ch(NonCancellable_getInstance()).ch(this.j55_1);
997
+ tmp = $completion.j9().gh(NonCancellable_getInstance()).gh(this.t55_1);
1007
998
  } else {
1008
999
  // Inline function 'kotlin.js.getCoroutineContext' call
1009
- tmp = $completion.j9().ch(this.j55_1);
1000
+ tmp = $completion.j9().gh(this.t55_1);
1010
1001
  }
1011
1002
  var context = tmp;
1012
1003
  return withContext(context, AuthTokenHolder$setToken$slambda_0(this, prevValue, lockedByLoad, block, null), $completion);
@@ -1016,19 +1007,19 @@
1016
1007
  var this_0 = new BearerAuthConfig();
1017
1008
  block(this_0);
1018
1009
  // Inline function 'kotlin.with' call
1019
- _this__u8e3s4.t51_1.j1(new BearerAuthProvider(this_0.a56_1, this_0.b56_1, this_0.c56_1, this_0.d56_1, this_0.e56_1, this_0.f56_1));
1010
+ _this__u8e3s4.d52_1.j1(new BearerAuthProvider(this_0.k56_1, this_0.l56_1, this_0.m56_1, this_0.n56_1, this_0.o56_1, this_0.p56_1));
1020
1011
  }
1021
1012
  function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
1022
1013
  CoroutineImpl.call(this, resultContinuation);
1023
1014
  }
1024
- protoOf(BearerAuthConfig$refreshTokens$slambda).p56 = function (_this__u8e3s4, $completion) {
1025
- var tmp = this.q56(_this__u8e3s4, $completion);
1015
+ protoOf(BearerAuthConfig$refreshTokens$slambda).z56 = function (_this__u8e3s4, $completion) {
1016
+ var tmp = this.a57(_this__u8e3s4, $completion);
1026
1017
  tmp.f9_1 = Unit_instance;
1027
1018
  tmp.g9_1 = null;
1028
1019
  return tmp.l9();
1029
1020
  };
1030
1021
  protoOf(BearerAuthConfig$refreshTokens$slambda).y9 = function (p1, $completion) {
1031
- return this.p56(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
1022
+ return this.z56(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
1032
1023
  };
1033
1024
  protoOf(BearerAuthConfig$refreshTokens$slambda).l9 = function () {
1034
1025
  var suspendResult = this.f9_1;
@@ -1047,30 +1038,28 @@
1047
1038
  }
1048
1039
  while (true);
1049
1040
  };
1050
- protoOf(BearerAuthConfig$refreshTokens$slambda).q56 = function (_this__u8e3s4, completion) {
1041
+ protoOf(BearerAuthConfig$refreshTokens$slambda).a57 = function (_this__u8e3s4, completion) {
1051
1042
  var i = new BearerAuthConfig$refreshTokens$slambda(completion);
1052
- i.o56_1 = _this__u8e3s4;
1043
+ i.y56_1 = _this__u8e3s4;
1053
1044
  return i;
1054
1045
  };
1055
1046
  function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
1056
1047
  var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
1057
- var l = function (_this__u8e3s4, $completion) {
1058
- return i.p56(_this__u8e3s4, $completion);
1059
- };
1060
- l.$arity = 1;
1061
- return l;
1048
+ return constructCallableReference(function (_this__u8e3s4, $completion) {
1049
+ return i.z56(_this__u8e3s4, $completion);
1050
+ }, 1);
1062
1051
  }
1063
1052
  function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
1064
1053
  CoroutineImpl.call(this, resultContinuation);
1065
1054
  }
1066
- protoOf(BearerAuthConfig$loadTokens$slambda).z56 = function ($completion) {
1067
- var tmp = this.r2u($completion);
1055
+ protoOf(BearerAuthConfig$loadTokens$slambda).j57 = function ($completion) {
1056
+ var tmp = this.y2u($completion);
1068
1057
  tmp.f9_1 = Unit_instance;
1069
1058
  tmp.g9_1 = null;
1070
1059
  return tmp.l9();
1071
1060
  };
1072
1061
  protoOf(BearerAuthConfig$loadTokens$slambda).x9 = function ($completion) {
1073
- return this.z56($completion);
1062
+ return this.j57($completion);
1074
1063
  };
1075
1064
  protoOf(BearerAuthConfig$loadTokens$slambda).l9 = function () {
1076
1065
  var suspendResult = this.f9_1;
@@ -1089,78 +1078,76 @@
1089
1078
  }
1090
1079
  while (true);
1091
1080
  };
1092
- protoOf(BearerAuthConfig$loadTokens$slambda).r2u = function (completion) {
1081
+ protoOf(BearerAuthConfig$loadTokens$slambda).y2u = function (completion) {
1093
1082
  return new BearerAuthConfig$loadTokens$slambda(completion);
1094
1083
  };
1095
1084
  function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
1096
1085
  var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
1097
- var l = function ($completion) {
1098
- return i.z56($completion);
1099
- };
1100
- l.$arity = 0;
1101
- return l;
1086
+ return constructCallableReference(function ($completion) {
1087
+ return i.j57($completion);
1088
+ }, 0);
1102
1089
  }
1103
1090
  function BearerAuthConfig$sendWithoutRequest$lambda(it) {
1104
1091
  return true;
1105
1092
  }
1106
1093
  function BearerAuthConfig() {
1107
1094
  var tmp = this;
1108
- tmp.a56_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
1095
+ tmp.k56_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
1109
1096
  var tmp_0 = this;
1110
- tmp_0.b56_1 = BearerAuthConfig$loadTokens$slambda_0(null);
1097
+ tmp_0.l56_1 = BearerAuthConfig$loadTokens$slambda_0(null);
1111
1098
  var tmp_1 = this;
1112
- tmp_1.c56_1 = BearerAuthConfig$sendWithoutRequest$lambda;
1113
- this.d56_1 = null;
1114
- this.e56_1 = true;
1115
- this.f56_1 = false;
1099
+ tmp_1.m56_1 = BearerAuthConfig$sendWithoutRequest$lambda;
1100
+ this.n56_1 = null;
1101
+ this.o56_1 = true;
1102
+ this.p56_1 = false;
1116
1103
  }
1117
- protoOf(BearerAuthConfig).a57 = function (block) {
1118
- this.a56_1 = block;
1104
+ protoOf(BearerAuthConfig).k57 = function (block) {
1105
+ this.k56_1 = block;
1119
1106
  };
1120
1107
  function RefreshTokensParams(client, response, oldTokens) {
1121
- this.b57_1 = client;
1122
- this.c57_1 = response;
1123
- this.d57_1 = oldTokens;
1108
+ this.l57_1 = client;
1109
+ this.m57_1 = response;
1110
+ this.n57_1 = oldTokens;
1124
1111
  }
1125
- protoOf(RefreshTokensParams).e57 = function (_this__u8e3s4) {
1126
- _this__u8e3s4.s3r_1.v2k(get_AuthCircuitBreaker(), Unit_instance);
1112
+ protoOf(RefreshTokensParams).o57 = function (_this__u8e3s4) {
1113
+ _this__u8e3s4.z3r_1.c2l(get_AuthCircuitBreaker(), Unit_instance);
1127
1114
  };
1128
1115
  function BearerTokens(accessToken, refreshToken) {
1129
- this.f57_1 = accessToken;
1130
- this.g57_1 = refreshToken;
1116
+ this.p57_1 = accessToken;
1117
+ this.q57_1 = refreshToken;
1131
1118
  }
1132
1119
  function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
1133
1120
  return true;
1134
1121
  }
1135
1122
  function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
1136
1123
  return function ($this$headers) {
1137
- var tokenValue = 'Bearer ' + $token.f57_1;
1124
+ var tokenValue = 'Bearer ' + $token.p57_1;
1138
1125
  var tmp;
1139
- if ($this$headers.b2o('Authorization')) {
1140
- $this$headers.t2p('Authorization');
1126
+ if ($this$headers.i2o('Authorization')) {
1127
+ $this$headers.a2q('Authorization');
1141
1128
  tmp = Unit_instance;
1142
1129
  }
1143
1130
  var tmp_0;
1144
- if (!$request.s3r_1.u2k(get_AuthCircuitBreaker())) {
1145
- $this$headers.f2p('Authorization', tokenValue);
1131
+ if (!$request.z3r_1.b2l(get_AuthCircuitBreaker())) {
1132
+ $this$headers.m2p('Authorization', tokenValue);
1146
1133
  tmp_0 = Unit_instance;
1147
1134
  }
1148
1135
  return Unit_instance;
1149
1136
  };
1150
1137
  }
1151
1138
  function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
1152
- this.p57_1 = this$0;
1153
- this.q57_1 = $response;
1139
+ this.z57_1 = this$0;
1140
+ this.a58_1 = $response;
1154
1141
  CoroutineImpl.call(this, resultContinuation);
1155
1142
  }
1156
- protoOf(BearerAuthProvider$refreshToken$slambda).z56 = function ($completion) {
1157
- var tmp = this.r2u($completion);
1143
+ protoOf(BearerAuthProvider$refreshToken$slambda).j57 = function ($completion) {
1144
+ var tmp = this.y2u($completion);
1158
1145
  tmp.f9_1 = Unit_instance;
1159
1146
  tmp.g9_1 = null;
1160
1147
  return tmp.l9();
1161
1148
  };
1162
1149
  protoOf(BearerAuthProvider$refreshToken$slambda).x9 = function ($completion) {
1163
- return this.z56($completion);
1150
+ return this.j57($completion);
1164
1151
  };
1165
1152
  protoOf(BearerAuthProvider$refreshToken$slambda).l9 = function () {
1166
1153
  var suspendResult = this.f9_1;
@@ -1170,10 +1157,10 @@
1170
1157
  switch (tmp) {
1171
1158
  case 0:
1172
1159
  this.e9_1 = 3;
1173
- this.r57_1 = this.p57_1.t57_1;
1174
- this.s57_1 = this.q57_1.c3t().i3q_1;
1160
+ this.b58_1 = this.z57_1.d58_1;
1161
+ this.c58_1 = this.a58_1.j3t().p3q_1;
1175
1162
  this.d9_1 = 1;
1176
- suspendResult = this.p57_1.x57_1.y55(this);
1163
+ suspendResult = this.z57_1.h58_1.i56(this);
1177
1164
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1178
1165
  return suspendResult;
1179
1166
  }
@@ -1181,9 +1168,9 @@
1181
1168
  continue $sm;
1182
1169
  case 1:
1183
1170
  var ARGUMENT = suspendResult;
1184
- var ARGUMENT_0 = new RefreshTokensParams(this.s57_1, this.q57_1, ARGUMENT);
1171
+ var ARGUMENT_0 = new RefreshTokensParams(this.c58_1, this.a58_1, ARGUMENT);
1185
1172
  this.d9_1 = 2;
1186
- suspendResult = this.r57_1(ARGUMENT_0, this);
1173
+ suspendResult = this.b58_1(ARGUMENT_0, this);
1187
1174
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1188
1175
  return suspendResult;
1189
1176
  }
@@ -1205,22 +1192,20 @@
1205
1192
  }
1206
1193
  while (true);
1207
1194
  };
1208
- protoOf(BearerAuthProvider$refreshToken$slambda).r2u = function (completion) {
1209
- return new BearerAuthProvider$refreshToken$slambda(this.p57_1, this.q57_1, completion);
1195
+ protoOf(BearerAuthProvider$refreshToken$slambda).y2u = function (completion) {
1196
+ return new BearerAuthProvider$refreshToken$slambda(this.z57_1, this.a58_1, completion);
1210
1197
  };
1211
1198
  function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
1212
1199
  var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
1213
- var l = function ($completion) {
1214
- return i.z56($completion);
1215
- };
1216
- l.$arity = 0;
1217
- return l;
1200
+ return constructCallableReference(function ($completion) {
1201
+ return i.j57($completion);
1202
+ }, 0);
1218
1203
  }
1219
1204
  function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
1220
1205
  CoroutineImpl.call(this, resultContinuation);
1221
- this.g58_1 = _this__u8e3s4;
1222
- this.h58_1 = request;
1223
- this.i58_1 = authHeader;
1206
+ this.q58_1 = _this__u8e3s4;
1207
+ this.r58_1 = request;
1208
+ this.s58_1 = authHeader;
1224
1209
  }
1225
1210
  protoOf($addRequestHeadersCOROUTINE$).l9 = function () {
1226
1211
  var suspendResult = this.f9_1;
@@ -1231,7 +1216,7 @@
1231
1216
  case 0:
1232
1217
  this.e9_1 = 2;
1233
1218
  this.d9_1 = 1;
1234
- suspendResult = this.g58_1.x57_1.y55(this);
1219
+ suspendResult = this.q58_1.h58_1.i56(this);
1235
1220
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1236
1221
  return suspendResult;
1237
1222
  }
@@ -1247,7 +1232,7 @@
1247
1232
  }
1248
1233
 
1249
1234
  var token = tmp_0;
1250
- headers(this.h58_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.h58_1));
1235
+ headers(this.r58_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.r58_1));
1251
1236
  return Unit_instance;
1252
1237
  case 2:
1253
1238
  throw this.g9_1;
@@ -1265,8 +1250,8 @@
1265
1250
  };
1266
1251
  function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
1267
1252
  CoroutineImpl.call(this, resultContinuation);
1268
- this.r58_1 = _this__u8e3s4;
1269
- this.s58_1 = response;
1253
+ this.b59_1 = _this__u8e3s4;
1254
+ this.c59_1 = response;
1270
1255
  }
1271
1256
  protoOf($refreshTokenCOROUTINE$).l9 = function () {
1272
1257
  var suspendResult = this.f9_1;
@@ -1277,7 +1262,7 @@
1277
1262
  case 0:
1278
1263
  this.e9_1 = 2;
1279
1264
  this.d9_1 = 1;
1280
- suspendResult = this.r58_1.x57_1.z55(this.r58_1.w57_1, BearerAuthProvider$refreshToken$slambda_0(this.r58_1, this.s58_1, null), this);
1265
+ suspendResult = this.b59_1.h58_1.j56(this.b59_1.g58_1, BearerAuthProvider$refreshToken$slambda_0(this.b59_1, this.c59_1, null), this);
1281
1266
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1282
1267
  return suspendResult;
1283
1268
  }
@@ -1310,48 +1295,48 @@
1310
1295
  sendWithoutRequestCallback = tmp;
1311
1296
  cacheTokens = cacheTokens === VOID ? true : cacheTokens;
1312
1297
  nonCancellableRefresh = nonCancellableRefresh === VOID ? false : nonCancellableRefresh;
1313
- this.t57_1 = refreshTokens;
1314
- this.u57_1 = sendWithoutRequestCallback;
1315
- this.v57_1 = realm;
1316
- this.w57_1 = nonCancellableRefresh;
1317
- this.x57_1 = new AuthTokenHolder(loadTokens, cacheTokens);
1298
+ this.d58_1 = refreshTokens;
1299
+ this.e58_1 = sendWithoutRequestCallback;
1300
+ this.f58_1 = realm;
1301
+ this.g58_1 = nonCancellableRefresh;
1302
+ this.h58_1 = new AuthTokenHolder(loadTokens, cacheTokens);
1318
1303
  }
1319
- protoOf(BearerAuthProvider).m54 = function () {
1304
+ protoOf(BearerAuthProvider).w54 = function () {
1320
1305
  // Inline function 'kotlin.error' call
1321
1306
  var message = 'Deprecated';
1322
1307
  throw IllegalStateException_init_$Create$(toString(message));
1323
1308
  };
1324
- protoOf(BearerAuthProvider).p53 = function (request) {
1325
- return this.u57_1(request);
1309
+ protoOf(BearerAuthProvider).z53 = function (request) {
1310
+ return this.e58_1(request);
1326
1311
  };
1327
- protoOf(BearerAuthProvider).w51 = function (auth) {
1328
- if (!(auth.e37_1 === 'Bearer')) {
1329
- get_LOGGER().f2u('Bearer Auth Provider is not applicable for ' + auth.toString());
1312
+ protoOf(BearerAuthProvider).g52 = function (auth) {
1313
+ if (!(auth.l37_1 === 'Bearer')) {
1314
+ get_LOGGER().m2u('Bearer Auth Provider is not applicable for ' + auth.toString());
1330
1315
  return false;
1331
1316
  }
1332
1317
  var tmp;
1333
- if (this.v57_1 == null) {
1318
+ if (this.f58_1 == null) {
1334
1319
  tmp = true;
1335
1320
  } else {
1336
1321
  if (!(auth instanceof Parameterized)) {
1337
1322
  tmp = false;
1338
1323
  } else {
1339
- tmp = auth.e2x('realm') == this.v57_1;
1324
+ tmp = auth.l2x('realm') == this.f58_1;
1340
1325
  }
1341
1326
  }
1342
1327
  var isSameRealm = tmp;
1343
1328
  if (!isSameRealm) {
1344
- get_LOGGER().f2u('Bearer Auth Provider is not applicable for this realm');
1329
+ get_LOGGER().m2u('Bearer Auth Provider is not applicable for this realm');
1345
1330
  }
1346
1331
  return isSameRealm;
1347
1332
  };
1348
- protoOf(BearerAuthProvider).l54 = function (request, authHeader, $completion) {
1333
+ protoOf(BearerAuthProvider).v54 = function (request, authHeader, $completion) {
1349
1334
  var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
1350
1335
  tmp.f9_1 = Unit_instance;
1351
1336
  tmp.g9_1 = null;
1352
1337
  return tmp.l9();
1353
1338
  };
1354
- protoOf(BearerAuthProvider).k54 = function (response, $completion) {
1339
+ protoOf(BearerAuthProvider).u54 = function (response, $completion) {
1355
1340
  var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
1356
1341
  tmp.f9_1 = Unit_instance;
1357
1342
  tmp.g9_1 = null;
@@ -1359,10 +1344,10 @@
1359
1344
  };
1360
1345
  //region block: post-declaration
1361
1346
  protoOf(SetTokenContext).q9 = get;
1362
- protoOf(SetTokenContext).bh = fold;
1363
- protoOf(SetTokenContext).ah = minusKey;
1364
- protoOf(SetTokenContext).ch = plus;
1365
- protoOf(BearerAuthProvider).q53 = addRequestHeaders$default;
1347
+ protoOf(SetTokenContext).fh = fold;
1348
+ protoOf(SetTokenContext).eh = minusKey;
1349
+ protoOf(SetTokenContext).gh = plus;
1350
+ protoOf(BearerAuthProvider).a54 = addRequestHeaders$default;
1366
1351
  //endregion
1367
1352
  //region block: init
1368
1353
  Companion_instance = new Companion();