@doordeck/doordeck-headless-sdk 0.189.0 → 0.193.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.
@@ -1,59 +1,59 @@
1
1
  (function (_, kotlin_kotlin, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_utils, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var CoroutineImpl = kotlin_kotlin.$_$.j9;
5
- var Unit_instance = kotlin_kotlin.$_$.b5;
6
- var protoOf = kotlin_kotlin.$_$.xb;
7
- var THROW_CCE = kotlin_kotlin.$_$.vf;
4
+ var CoroutineImpl = kotlin_kotlin.$_$.h9;
5
+ var Unit_instance = kotlin_kotlin.$_$.z4;
6
+ var protoOf = kotlin_kotlin.$_$.vb;
7
+ var THROW_CCE = kotlin_kotlin.$_$.tf;
8
8
  var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.i1;
9
9
  var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
10
- var initMetadataForLambda = kotlin_kotlin.$_$.fb;
10
+ var initMetadataForLambda = kotlin_kotlin.$_$.db;
11
11
  var VOID = kotlin_kotlin.$_$.b;
12
12
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
13
- var initMetadataForClass = kotlin_kotlin.$_$.ab;
13
+ var initMetadataForClass = kotlin_kotlin.$_$.ya;
14
14
  var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
15
- var toList = kotlin_kotlin.$_$.g8;
15
+ var toList = kotlin_kotlin.$_$.e8;
16
16
  var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.d;
17
- var KtMutableMap = kotlin_kotlin.$_$.o5;
18
- var getKClass = kotlin_kotlin.$_$.oc;
19
- var arrayOf = kotlin_kotlin.$_$.jg;
20
- var createKType = kotlin_kotlin.$_$.mc;
21
- var createInvariantKTypeProjection = kotlin_kotlin.$_$.kc;
22
- var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.p4;
17
+ var KtMutableMap = kotlin_kotlin.$_$.m5;
18
+ var getKClass = kotlin_kotlin.$_$.mc;
19
+ var arrayOf = kotlin_kotlin.$_$.hg;
20
+ var createKType = kotlin_kotlin.$_$.kc;
21
+ var createInvariantKTypeProjection = kotlin_kotlin.$_$.ic;
22
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.n4;
23
23
  var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
24
24
  var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
25
25
  var Send_instance = kotlin_io_ktor_ktor_client_core.$_$.b;
26
26
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
27
27
  var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
28
- var collectionSizeOrDefault = kotlin_kotlin.$_$.w5;
28
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.u5;
29
29
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
30
30
  var parseAuthorizationHeaders = kotlin_io_ktor_ktor_http.$_$.l;
31
- var flatten = kotlin_kotlin.$_$.z6;
32
- var emptyList = kotlin_kotlin.$_$.q6;
33
- var to = kotlin_kotlin.$_$.zg;
31
+ var flatten = kotlin_kotlin.$_$.x6;
32
+ var emptyList = kotlin_kotlin.$_$.o6;
33
+ var to = kotlin_kotlin.$_$.xg;
34
34
  var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.i;
35
- var first = kotlin_kotlin.$_$.y6;
35
+ var first = kotlin_kotlin.$_$.w6;
36
36
  var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.j;
37
37
  var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.b1;
38
- var toString = kotlin_kotlin.$_$.ac;
39
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
38
+ var toString = kotlin_kotlin.$_$.yb;
39
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
40
40
  var Sender = kotlin_io_ktor_ktor_client_core.$_$.k;
41
41
  var HashSet_init_$Create$ = kotlin_kotlin.$_$.q;
42
- var initMetadataForCoroutine = kotlin_kotlin.$_$.cb;
42
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.ab;
43
43
  var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
44
- var Unit = kotlin_kotlin.$_$.gg;
44
+ var Unit = kotlin_kotlin.$_$.eg;
45
45
  var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
46
- var KtList = kotlin_kotlin.$_$.i5;
47
- var initMetadataForInterface = kotlin_kotlin.$_$.eb;
48
- var initMetadataForCompanion = kotlin_kotlin.$_$.bb;
49
- var get = kotlin_kotlin.$_$.f9;
50
- var fold = kotlin_kotlin.$_$.e9;
51
- var minusKey = kotlin_kotlin.$_$.g9;
52
- var plus = kotlin_kotlin.$_$.i9;
53
- var Element = kotlin_kotlin.$_$.h9;
46
+ var KtList = kotlin_kotlin.$_$.g5;
47
+ var initMetadataForInterface = kotlin_kotlin.$_$.cb;
48
+ var initMetadataForCompanion = kotlin_kotlin.$_$.za;
49
+ var get = kotlin_kotlin.$_$.d9;
50
+ var fold = kotlin_kotlin.$_$.c9;
51
+ var minusKey = kotlin_kotlin.$_$.e9;
52
+ var plus = kotlin_kotlin.$_$.g9;
53
+ var Element = kotlin_kotlin.$_$.f9;
54
54
  var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
55
- var isInterface = kotlin_kotlin.$_$.pb;
56
- var equals = kotlin_kotlin.$_$.sa;
55
+ var isInterface = kotlin_kotlin.$_$.nb;
56
+ var equals = kotlin_kotlin.$_$.qa;
57
57
  var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
58
58
  var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
59
59
  var headers = kotlin_io_ktor_ktor_client_core.$_$.e1;
@@ -69,11 +69,11 @@
69
69
  initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
70
70
  initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
71
71
  function sendWithoutRequest(request) {
72
- return this.z4p();
72
+ return this.h4p();
73
73
  }
74
74
  function addRequestHeaders$default(request, authHeader, $completion, $super) {
75
75
  authHeader = authHeader === VOID ? null : authHeader;
76
- return $super === VOID ? this.y4p(request, authHeader, $completion) : $super.y4p.call(this, request, authHeader, $completion);
76
+ return $super === VOID ? this.g4p(request, authHeader, $completion) : $super.g4p.call(this, request, authHeader, $completion);
77
77
  }
78
78
  function refreshToken(response, $completion) {
79
79
  return true;
@@ -118,14 +118,14 @@
118
118
  function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
119
119
  CoroutineImpl.call(this, resultContinuation);
120
120
  }
121
- protoOf(AuthConfig$isUnauthorizedResponse$slambda).f4n = function (it, $completion) {
122
- var tmp = this.a3o(it, $completion);
121
+ protoOf(AuthConfig$isUnauthorizedResponse$slambda).n4m = function (it, $completion) {
122
+ var tmp = this.i3n(it, $completion);
123
123
  tmp.c9_1 = Unit_instance;
124
124
  tmp.d9_1 = null;
125
125
  return tmp.i9();
126
126
  };
127
127
  protoOf(AuthConfig$isUnauthorizedResponse$slambda).u9 = function (p1, $completion) {
128
- return this.f4n(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
128
+ return this.n4m(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
129
129
  };
130
130
  protoOf(AuthConfig$isUnauthorizedResponse$slambda).i9 = function () {
131
131
  var suspendResult = this.c9_1;
@@ -134,7 +134,7 @@
134
134
  var tmp = this.a9_1;
135
135
  if (tmp === 0) {
136
136
  this.b9_1 = 1;
137
- return this.e4n_1.y32().equals(Companion_getInstance().p2y_1);
137
+ return this.m4m_1.g32().equals(Companion_getInstance().x2x_1);
138
138
  } else if (tmp === 1) {
139
139
  throw this.d9_1;
140
140
  }
@@ -144,15 +144,15 @@
144
144
  }
145
145
  while (true);
146
146
  };
147
- protoOf(AuthConfig$isUnauthorizedResponse$slambda).a3o = function (it, completion) {
147
+ protoOf(AuthConfig$isUnauthorizedResponse$slambda).i3n = function (it, completion) {
148
148
  var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
149
- i.e4n_1 = it;
149
+ i.m4m_1 = it;
150
150
  return i;
151
151
  };
152
152
  function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
153
153
  var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
154
154
  var l = function (it, $completion) {
155
- return i.f4n(it, $completion);
155
+ return i.n4m(it, $completion);
156
156
  };
157
157
  l.$arity = 1;
158
158
  return l;
@@ -160,12 +160,12 @@
160
160
  function AuthConfig() {
161
161
  var tmp = this;
162
162
  // Inline function 'kotlin.collections.mutableListOf' call
163
- tmp.g4n_1 = ArrayList_init_$Create$();
163
+ tmp.o4m_1 = ArrayList_init_$Create$();
164
164
  var tmp_0 = this;
165
- tmp_0.h4n_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
165
+ tmp_0.p4m_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
166
166
  }
167
167
  function AtomicCounter() {
168
- this.i4n_1 = atomic$int$1(0);
168
+ this.q4m_1 = atomic$int$1(0);
169
169
  }
170
170
  function AuthConfig$_init_$ref_ms3pb9() {
171
171
  var l = function () {
@@ -176,8 +176,8 @@
176
176
  }
177
177
  function Auth$lambda($this$createClientPlugin) {
178
178
  _init_properties_Auth_kt__9ob1dk();
179
- var providers = toList($this$createClientPlugin.a3n_1.g4n_1);
180
- $this$createClientPlugin.z3m_1.b3d_1.o2h(get_AuthProvidersKey(), providers);
179
+ var providers = toList($this$createClientPlugin.i3m_1.o4m_1);
180
+ $this$createClientPlugin.h3m_1.j3c_1.w2g(get_AuthProvidersKey(), providers);
181
181
  var tokenVersions = new ConcurrentMap();
182
182
  // Inline function 'io.ktor.util.AttributeKey' call
183
183
  var name = 'ProviderVersionAttributeKey';
@@ -200,9 +200,9 @@
200
200
  var tmp$ret$0 = tmp_0;
201
201
  var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
202
202
  var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
203
- $this$createClientPlugin.b42(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
203
+ $this$createClientPlugin.j41(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
204
204
  var tmp_2 = Send_instance;
205
- $this$createClientPlugin.d3n(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
205
+ $this$createClientPlugin.l3m(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
206
206
  return Unit_instance;
207
207
  }
208
208
  function Auth$lambda$refreshTokenIfNeeded$lambda() {
@@ -215,7 +215,7 @@
215
215
  return LinkedHashMap_init_$Create$();
216
216
  }
217
217
  function invoke$findProvider(call, candidateProviders) {
218
- var headerValues = call.x3d().b2x().p2l(HttpHeaders_getInstance().z2v_1);
218
+ var headerValues = call.f3d().j2w().x2k(HttpHeaders_getInstance().h2v_1);
219
219
  var tmp;
220
220
  if (headerValues == null) {
221
221
  tmp = null;
@@ -241,8 +241,8 @@
241
241
  // Inline function 'io.ktor.util.logging.trace' call
242
242
  var this_0 = get_LOGGER();
243
243
  if (get_isTraceEnabled(this_0)) {
244
- var tmp$ret$3 = 'Unauthorized response ' + call.f3g().o3g().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
245
- this_0.f2q(tmp$ret$3);
244
+ var tmp$ret$3 = 'Unauthorized response ' + call.n3f().w3f().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
245
+ this_0.n2p(tmp$ret$3);
246
246
  }
247
247
  tmp_0 = null;
248
248
  } else {
@@ -259,7 +259,7 @@
259
259
  var _iterator__ex2g4s_1 = candidateProviders.t();
260
260
  while (_iterator__ex2g4s_1.u()) {
261
261
  var element_0 = _iterator__ex2g4s_1.v();
262
- if (element_0.j4n(element)) {
262
+ if (element_0.r4m(element)) {
263
263
  tmp$ret$6 = element_0;
264
264
  break $l$block;
265
265
  }
@@ -306,21 +306,21 @@
306
306
  return LinkedHashMap_init_$Create$();
307
307
  }
308
308
  function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
309
- this.v4o_1 = $providers;
310
- this.w4o_1 = $tokenVersions;
311
- this.x4o_1 = $tokenVersionsAttributeKey;
309
+ this.d4o_1 = $providers;
310
+ this.e4o_1 = $tokenVersions;
311
+ this.f4o_1 = $tokenVersionsAttributeKey;
312
312
  CoroutineImpl.call(this, resultContinuation);
313
313
  }
314
- protoOf(Auth$lambda$slambda).p42 = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
315
- var tmp = this.q42($this$onRequest, request, _unused_var__etf5q3, $completion);
314
+ protoOf(Auth$lambda$slambda).x41 = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
315
+ var tmp = this.y41($this$onRequest, request, _unused_var__etf5q3, $completion);
316
316
  tmp.c9_1 = Unit_instance;
317
317
  tmp.d9_1 = null;
318
318
  return tmp.i9();
319
319
  };
320
- protoOf(Auth$lambda$slambda).r42 = function (p1, p2, p3, $completion) {
320
+ protoOf(Auth$lambda$slambda).z41 = function (p1, p2, p3, $completion) {
321
321
  var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
322
322
  var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
323
- return this.p42(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
323
+ return this.x41(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
324
324
  };
325
325
  protoOf(Auth$lambda$slambda).i9 = function () {
326
326
  var suspendResult = this.c9_1;
@@ -330,37 +330,37 @@
330
330
  switch (tmp) {
331
331
  case 0:
332
332
  this.b9_1 = 4;
333
- var tmp0 = this.v4o_1;
333
+ var tmp0 = this.d4o_1;
334
334
  var destination = ArrayList_init_$Create$();
335
335
  var _iterator__ex2g4s = tmp0.t();
336
336
  while (_iterator__ex2g4s.u()) {
337
337
  var element = _iterator__ex2g4s.v();
338
- if (element.c4p(this.z4o_1)) {
338
+ if (element.k4o(this.h4o_1)) {
339
339
  destination.j1(element);
340
340
  }
341
341
  }
342
342
 
343
- this.b4p_1 = destination.t();
343
+ this.j4o_1 = destination.t();
344
344
  this.a9_1 = 1;
345
345
  continue $sm;
346
346
  case 1:
347
- if (!this.b4p_1.u()) {
347
+ if (!this.j4o_1.u()) {
348
348
  this.a9_1 = 3;
349
349
  continue $sm;
350
350
  }
351
351
 
352
- var element_0 = this.b4p_1.v();
352
+ var element_0 = this.j4o_1.v();
353
353
  var this_0 = get_LOGGER();
354
354
  if (get_isTraceEnabled(this_0)) {
355
- this_0.f2q('Adding auth headers for ' + this.z4o_1.x3e_1.toString() + ' from provider ' + toString(element_0));
355
+ this_0.n2p('Adding auth headers for ' + this.h4o_1.f3e_1.toString() + ' from provider ' + toString(element_0));
356
356
  }
357
357
 
358
- var tokenVersion = this.w4o_1.u2p(element_0, Auth$lambda$slambda$lambda);
359
- var requestTokenVersions = this.z4o_1.c3f_1.q2h(this.x4o_1, Auth$lambda$slambda$lambda_0);
360
- var value = tokenVersion.i4n_1.kotlinx$atomicfu$value;
358
+ var tokenVersion = this.e4o_1.c2p(element_0, Auth$lambda$slambda$lambda);
359
+ var requestTokenVersions = this.h4o_1.k3e_1.y2g(this.f4o_1, Auth$lambda$slambda$lambda_0);
360
+ var value = tokenVersion.q4m_1.kotlinx$atomicfu$value;
361
361
  requestTokenVersions.y2(element_0, value);
362
362
  this.a9_1 = 2;
363
- suspendResult = element_0.d4p(this.z4o_1, VOID, this);
363
+ suspendResult = element_0.l4o(this.h4o_1, VOID, this);
364
364
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
365
365
  return suspendResult;
366
366
  }
@@ -385,37 +385,37 @@
385
385
  }
386
386
  while (true);
387
387
  };
388
- protoOf(Auth$lambda$slambda).q42 = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
389
- var i = new Auth$lambda$slambda(this.v4o_1, this.w4o_1, this.x4o_1, completion);
390
- i.y4o_1 = $this$onRequest;
391
- i.z4o_1 = request;
392
- i.a4p_1 = _unused_var__etf5q3;
388
+ protoOf(Auth$lambda$slambda).y41 = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
389
+ var i = new Auth$lambda$slambda(this.d4o_1, this.e4o_1, this.f4o_1, completion);
390
+ i.g4o_1 = $this$onRequest;
391
+ i.h4o_1 = request;
392
+ i.i4o_1 = _unused_var__etf5q3;
393
393
  return i;
394
394
  };
395
395
  function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
396
396
  var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
397
397
  var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
398
- return i.p42($this$onRequest, request, _unused_var__etf5q3, $completion);
398
+ return i.x41($this$onRequest, request, _unused_var__etf5q3, $completion);
399
399
  };
400
400
  l.$arity = 3;
401
401
  return l;
402
402
  }
403
403
  function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
404
- this.m4p_1 = $this_createClientPlugin;
405
- this.n4p_1 = $providers;
406
- this.o4p_1 = $tokenVersions;
407
- this.p4p_1 = $tokenVersionsAttributeKey;
404
+ this.u4o_1 = $this_createClientPlugin;
405
+ this.v4o_1 = $providers;
406
+ this.w4o_1 = $tokenVersions;
407
+ this.x4o_1 = $tokenVersionsAttributeKey;
408
408
  CoroutineImpl.call(this, resultContinuation);
409
409
  }
410
- protoOf(Auth$lambda$slambda_1).f3u = function ($this$on, originalRequest, $completion) {
411
- var tmp = this.g3u($this$on, originalRequest, $completion);
410
+ protoOf(Auth$lambda$slambda_1).n3t = function ($this$on, originalRequest, $completion) {
411
+ var tmp = this.o3t($this$on, originalRequest, $completion);
412
412
  tmp.c9_1 = Unit_instance;
413
413
  tmp.d9_1 = null;
414
414
  return tmp.i9();
415
415
  };
416
416
  protoOf(Auth$lambda$slambda_1).v9 = function (p1, p2, $completion) {
417
417
  var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
418
- return this.f3u(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
418
+ return this.n3t(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
419
419
  };
420
420
  protoOf(Auth$lambda$slambda_1).i9 = function () {
421
421
  var suspendResult = this.c9_1;
@@ -426,16 +426,16 @@
426
426
  case 0:
427
427
  this.b9_1 = 10;
428
428
  this.a9_1 = 1;
429
- suspendResult = this.q4p_1.j3u(this.r4p_1, this);
429
+ suspendResult = this.y4o_1.r3t(this.z4o_1, this);
430
430
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
431
431
  return suspendResult;
432
432
  }
433
433
 
434
434
  continue $sm;
435
435
  case 1:
436
- this.w4p_1 = suspendResult;
436
+ this.e4p_1 = suspendResult;
437
437
  this.a9_1 = 2;
438
- suspendResult = this.m4p_1.a3n_1.h4n_1(this.w4p_1.x3d(), this);
438
+ suspendResult = this.u4o_1.i3m_1.p4m_1(this.e4p_1.f3d(), this);
439
439
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
440
440
  return suspendResult;
441
441
  }
@@ -443,22 +443,22 @@
443
443
  continue $sm;
444
444
  case 2:
445
445
  if (!suspendResult) {
446
- return this.w4p_1;
446
+ return this.e4p_1;
447
447
  } else {
448
448
  this.a9_1 = 3;
449
449
  continue $sm;
450
450
  }
451
451
 
452
452
  case 3:
453
- if (this.w4p_1.f3g().g3g().n2h(get_AuthCircuitBreaker()))
454
- return this.w4p_1;
455
- this.s4p_1 = this.w4p_1;
456
- this.v4p_1 = HashSet_init_$Create$(this.n4p_1);
453
+ if (this.e4p_1.n3f().o3f().v2g(get_AuthCircuitBreaker()))
454
+ return this.e4p_1;
455
+ this.a4p_1 = this.e4p_1;
456
+ this.d4p_1 = HashSet_init_$Create$(this.v4o_1);
457
457
  this.a9_1 = 4;
458
458
  continue $sm;
459
459
  case 4:
460
460
  this.a9_1 = 5;
461
- suspendResult = this.m4p_1.a3n_1.h4n_1(this.s4p_1.x3d(), this);
461
+ suspendResult = this.u4o_1.i3m_1.p4m_1(this.a4p_1.f3d(), this);
462
462
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
463
463
  return suspendResult;
464
464
  }
@@ -472,33 +472,33 @@
472
472
 
473
473
  var this_0 = get_LOGGER();
474
474
  if (get_isTraceEnabled(this_0)) {
475
- this_0.f2q('Unauthorized response for ' + this.s4p_1.f3g().o3g().toString());
475
+ this_0.n2p('Unauthorized response for ' + this.a4p_1.n3f().w3f().toString());
476
476
  }
477
477
 
478
- var tmp0_elvis_lhs = invoke$findProvider(this.s4p_1, this.v4p_1);
478
+ var tmp0_elvis_lhs = invoke$findProvider(this.a4p_1, this.d4p_1);
479
479
  var tmp_0;
480
480
  if (tmp0_elvis_lhs == null) {
481
- this.q4p_1;
481
+ this.y4o_1;
482
482
  var this_1 = get_LOGGER();
483
483
  if (get_isTraceEnabled(this_1)) {
484
- this_1.f2q('Can not find auth provider for ' + this.s4p_1.f3g().o3g().toString());
484
+ this_1.n2p('Can not find auth provider for ' + this.a4p_1.n3f().w3f().toString());
485
485
  }
486
- return this.s4p_1;
486
+ return this.a4p_1;
487
487
  } else {
488
488
  tmp_0 = tmp0_elvis_lhs;
489
489
  }
490
490
 
491
491
  var _destruct__k2r9zo = tmp_0;
492
- this.u4p_1 = _destruct__k2r9zo.fg();
493
- this.t4p_1 = _destruct__k2r9zo.gg();
492
+ this.c4p_1 = _destruct__k2r9zo.fg();
493
+ this.b4p_1 = _destruct__k2r9zo.gg();
494
494
  var this_2 = get_LOGGER();
495
495
  if (get_isTraceEnabled(this_2)) {
496
- this_2.f2q('Using provider ' + toString(this.u4p_1) + ' for ' + this.s4p_1.f3g().o3g().toString());
496
+ this_2.n2p('Using provider ' + toString(this.c4p_1) + ' for ' + this.a4p_1.n3f().w3f().toString());
497
497
  }
498
498
 
499
- this.v4p_1.i3(this.u4p_1);
499
+ this.d4p_1.i3(this.c4p_1);
500
500
  this.a9_1 = 6;
501
- suspendResult = invoke$refreshTokenIfNeeded(this.o4p_1, this.p4p_1, this.s4p_1, this.u4p_1, this.r4p_1, this);
501
+ suspendResult = invoke$refreshTokenIfNeeded(this.w4o_1, this.x4o_1, this.a4p_1, this.c4p_1, this.z4o_1, this);
502
502
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
503
503
  return suspendResult;
504
504
  }
@@ -506,7 +506,7 @@
506
506
  continue $sm;
507
507
  case 6:
508
508
  if (!suspendResult) {
509
- return this.s4p_1;
509
+ return this.a4p_1;
510
510
  } else {
511
511
  this.a9_1 = 7;
512
512
  continue $sm;
@@ -514,18 +514,18 @@
514
514
 
515
515
  case 7:
516
516
  this.a9_1 = 8;
517
- suspendResult = invoke$executeWithNewToken(this.q4p_1, this.s4p_1, this.u4p_1, this.r4p_1, this.t4p_1, this);
517
+ suspendResult = invoke$executeWithNewToken(this.y4o_1, this.a4p_1, this.c4p_1, this.z4o_1, this.b4p_1, this);
518
518
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
519
519
  return suspendResult;
520
520
  }
521
521
 
522
522
  continue $sm;
523
523
  case 8:
524
- this.s4p_1 = suspendResult;
524
+ this.a4p_1 = suspendResult;
525
525
  this.a9_1 = 4;
526
526
  continue $sm;
527
527
  case 9:
528
- return this.s4p_1;
528
+ return this.a4p_1;
529
529
  case 10:
530
530
  throw this.d9_1;
531
531
  }
@@ -540,27 +540,27 @@
540
540
  }
541
541
  while (true);
542
542
  };
543
- protoOf(Auth$lambda$slambda_1).g3u = function ($this$on, originalRequest, completion) {
544
- var i = new Auth$lambda$slambda_1(this.m4p_1, this.n4p_1, this.o4p_1, this.p4p_1, completion);
545
- i.q4p_1 = $this$on;
546
- i.r4p_1 = originalRequest;
543
+ protoOf(Auth$lambda$slambda_1).o3t = function ($this$on, originalRequest, completion) {
544
+ var i = new Auth$lambda$slambda_1(this.u4o_1, this.v4o_1, this.w4o_1, this.x4o_1, completion);
545
+ i.y4o_1 = $this$on;
546
+ i.z4o_1 = originalRequest;
547
547
  return i;
548
548
  };
549
549
  function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
550
550
  var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
551
551
  var l = function ($this$on, originalRequest, $completion) {
552
- return i.f3u($this$on, originalRequest, $completion);
552
+ return i.n3t($this$on, originalRequest, $completion);
553
553
  };
554
554
  l.$arity = 2;
555
555
  return l;
556
556
  }
557
557
  function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
558
558
  CoroutineImpl.call(this, resultContinuation);
559
- this.s4n_1 = tokenVersions;
560
- this.t4n_1 = tokenVersionsAttributeKey;
561
- this.u4n_1 = call;
562
- this.v4n_1 = provider;
563
- this.w4n_1 = request;
559
+ this.a4n_1 = tokenVersions;
560
+ this.b4n_1 = tokenVersionsAttributeKey;
561
+ this.c4n_1 = call;
562
+ this.d4n_1 = provider;
563
+ this.e4n_1 = request;
564
564
  }
565
565
  protoOf($invoke$refreshTokenIfNeededCOROUTINE$).i9 = function () {
566
566
  var suspendResult = this.c9_1;
@@ -571,17 +571,17 @@
571
571
  case 0:
572
572
  this.b9_1 = 4;
573
573
  var tmp_0 = this;
574
- tmp_0.x4n_1 = this.s4n_1.u2p(this.v4n_1, Auth$lambda$refreshTokenIfNeeded$lambda);
574
+ tmp_0.f4n_1 = this.a4n_1.c2p(this.d4n_1, Auth$lambda$refreshTokenIfNeeded$lambda);
575
575
  var tmp_1 = this;
576
- tmp_1.y4n_1 = this.w4n_1.c3f_1.q2h(this.t4n_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
577
- var requestTokenVersion = this.y4n_1.g3(this.v4n_1);
578
- if (!(requestTokenVersion == null) && requestTokenVersion >= this.x4n_1.i4n_1.kotlinx$atomicfu$value) {
576
+ tmp_1.g4n_1 = this.e4n_1.k3e_1.y2g(this.b4n_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
577
+ var requestTokenVersion = this.g4n_1.g3(this.d4n_1);
578
+ if (!(requestTokenVersion == null) && requestTokenVersion >= this.f4n_1.q4m_1.kotlinx$atomicfu$value) {
579
579
  var this_0 = get_LOGGER();
580
580
  if (get_isTraceEnabled(this_0)) {
581
- this_0.f2q('Refreshing token for ' + this.u4n_1.f3g().o3g().toString());
581
+ this_0.n2p('Refreshing token for ' + this.c4n_1.n3f().w3f().toString());
582
582
  }
583
583
  this.a9_1 = 1;
584
- suspendResult = this.v4n_1.x4p(this.u4n_1.x3d(), this);
584
+ suspendResult = this.d4n_1.f4p(this.c4n_1.f3d(), this);
585
585
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
586
586
  return suspendResult;
587
587
  }
@@ -595,13 +595,13 @@
595
595
  if (!suspendResult) {
596
596
  var this_1 = get_LOGGER();
597
597
  if (get_isTraceEnabled(this_1)) {
598
- this_1.f2q('Refreshing token failed for ' + this.u4n_1.f3g().o3g().toString());
598
+ this_1.n2p('Refreshing token failed for ' + this.c4n_1.n3f().w3f().toString());
599
599
  }
600
600
  return false;
601
601
  } else {
602
- var tmp0 = this.y4n_1;
603
- var tmp2 = this.v4n_1;
604
- var value = this.x4n_1.i4n_1.atomicfu$incrementAndGet();
602
+ var tmp0 = this.g4n_1;
603
+ var tmp2 = this.d4n_1;
604
+ var value = this.f4n_1.q4m_1.atomicfu$incrementAndGet();
605
605
  tmp0.y2(tmp2, value);
606
606
  this.a9_1 = 2;
607
607
  continue $sm;
@@ -628,11 +628,11 @@
628
628
  };
629
629
  function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
630
630
  CoroutineImpl.call(this, resultContinuation);
631
- this.h4o_1 = _this__u8e3s4;
632
- this.i4o_1 = call;
633
- this.j4o_1 = provider;
634
- this.k4o_1 = oldRequest;
635
- this.l4o_1 = authHeader;
631
+ this.p4n_1 = _this__u8e3s4;
632
+ this.q4n_1 = call;
633
+ this.r4n_1 = provider;
634
+ this.s4n_1 = oldRequest;
635
+ this.t4n_1 = authHeader;
636
636
  }
637
637
  protoOf($invoke$executeWithNewTokenCOROUTINE$).i9 = function () {
638
638
  var suspendResult = this.c9_1;
@@ -642,24 +642,24 @@
642
642
  switch (tmp) {
643
643
  case 0:
644
644
  this.b9_1 = 3;
645
- this.m4o_1 = new HttpRequestBuilder();
646
- this.m4o_1.p3k(this.k4o_1);
645
+ this.u4n_1 = new HttpRequestBuilder();
646
+ this.u4n_1.x3j(this.s4n_1);
647
647
  this.a9_1 = 1;
648
- suspendResult = this.j4o_1.y4p(this.m4o_1, this.l4o_1, this);
648
+ suspendResult = this.r4n_1.g4p(this.u4n_1, this.t4n_1, this);
649
649
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
650
650
  return suspendResult;
651
651
  }
652
652
 
653
653
  continue $sm;
654
654
  case 1:
655
- this.m4o_1.c3f_1.o2h(get_AuthCircuitBreaker(), Unit_instance);
655
+ this.u4n_1.k3e_1.w2g(get_AuthCircuitBreaker(), Unit_instance);
656
656
  var this_0 = get_LOGGER();
657
657
  if (get_isTraceEnabled(this_0)) {
658
- this_0.f2q('Sending new request to ' + this.i4o_1.f3g().o3g().toString());
658
+ this_0.n2p('Sending new request to ' + this.q4n_1.n3f().w3f().toString());
659
659
  }
660
660
 
661
661
  this.a9_1 = 2;
662
- suspendResult = this.h4o_1.j3u(this.m4o_1, this);
662
+ suspendResult = this.p4n_1.r3t(this.u4n_1, this);
663
663
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
664
664
  return suspendResult;
665
665
  }
@@ -746,17 +746,17 @@
746
746
  return Companion_instance;
747
747
  };
748
748
  function AuthTokenHolder$setToken$slambda($block, resultContinuation) {
749
- this.i4q_1 = $block;
749
+ this.q4p_1 = $block;
750
750
  CoroutineImpl.call(this, resultContinuation);
751
751
  }
752
- protoOf(AuthTokenHolder$setToken$slambda).k4q = function ($this$withContext, $completion) {
753
- var tmp = this.w1u($this$withContext, $completion);
752
+ protoOf(AuthTokenHolder$setToken$slambda).s4p = function ($this$withContext, $completion) {
753
+ var tmp = this.e1u($this$withContext, $completion);
754
754
  tmp.c9_1 = Unit_instance;
755
755
  tmp.d9_1 = null;
756
756
  return tmp.i9();
757
757
  };
758
758
  protoOf(AuthTokenHolder$setToken$slambda).u9 = function (p1, $completion) {
759
- return this.k4q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
759
+ return this.s4p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
760
760
  };
761
761
  protoOf(AuthTokenHolder$setToken$slambda).i9 = function () {
762
762
  var suspendResult = this.c9_1;
@@ -767,7 +767,7 @@
767
767
  case 0:
768
768
  this.b9_1 = 2;
769
769
  this.a9_1 = 1;
770
- suspendResult = this.i4q_1(this);
770
+ suspendResult = this.q4p_1(this);
771
771
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
772
772
  return suspendResult;
773
773
  }
@@ -789,22 +789,22 @@
789
789
  }
790
790
  while (true);
791
791
  };
792
- protoOf(AuthTokenHolder$setToken$slambda).w1u = function ($this$withContext, completion) {
793
- var i = new AuthTokenHolder$setToken$slambda(this.i4q_1, completion);
794
- i.j4q_1 = $this$withContext;
792
+ protoOf(AuthTokenHolder$setToken$slambda).e1u = function ($this$withContext, completion) {
793
+ var i = new AuthTokenHolder$setToken$slambda(this.q4p_1, completion);
794
+ i.r4p_1 = $this$withContext;
795
795
  return i;
796
796
  };
797
797
  function AuthTokenHolder$setToken$slambda_0($block, resultContinuation) {
798
798
  var i = new AuthTokenHolder$setToken$slambda($block, resultContinuation);
799
799
  var l = function ($this$withContext, $completion) {
800
- return i.k4q($this$withContext, $completion);
800
+ return i.s4p($this$withContext, $completion);
801
801
  };
802
802
  l.$arity = 1;
803
803
  return l;
804
804
  }
805
805
  function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
806
806
  CoroutineImpl.call(this, resultContinuation);
807
- this.t4q_1 = _this__u8e3s4;
807
+ this.b4q_1 = _this__u8e3s4;
808
808
  }
809
809
  protoOf($loadTokenCOROUTINE$).i9 = function () {
810
810
  var suspendResult = this.c9_1;
@@ -814,21 +814,21 @@
814
814
  switch (tmp) {
815
815
  case 0:
816
816
  this.b9_1 = 12;
817
- if (!(this.t4q_1.a4r_1 == null))
818
- return this.t4q_1.a4r_1;
819
- this.y4q_1 = this.t4q_1.a4r_1;
817
+ if (!(this.b4q_1.i4q_1 == null))
818
+ return this.b4q_1.i4q_1;
819
+ this.g4q_1 = this.b4q_1.i4q_1;
820
820
  if (!(this.g9().n9(Companion_instance) == null)) {
821
821
  this.a9_1 = 10;
822
- suspendResult = this.t4q_1.z4q_1(this);
822
+ suspendResult = this.b4q_1.h4q_1(this);
823
823
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
824
824
  return suspendResult;
825
825
  }
826
826
  continue $sm;
827
827
  } else {
828
- this.w4q_1 = this.t4q_1.c4r_1;
829
- this.v4q_1 = null;
828
+ this.e4q_1 = this.b4q_1.k4q_1;
829
+ this.d4q_1 = null;
830
830
  this.a9_1 = 1;
831
- suspendResult = this.w4q_1.x1g(this.v4q_1, this);
831
+ suspendResult = this.e4q_1.f1g(this.d4q_1, this);
832
832
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
833
833
  return suspendResult;
834
834
  }
@@ -836,19 +836,19 @@
836
836
  }
837
837
 
838
838
  case 1:
839
- this.x4q_1 = Unit_instance;
839
+ this.f4q_1 = Unit_instance;
840
840
  this.a9_1 = 2;
841
841
  continue $sm;
842
842
  case 2:
843
843
  this.b9_1 = 9;
844
- this.t4q_1.b4r_1 = true;
844
+ this.b4q_1.j4q_1 = true;
845
845
  this.a9_1 = 3;
846
846
  continue $sm;
847
847
  case 3:
848
848
  this.b9_1 = 8;
849
- if (equals(this.y4q_1, this.t4q_1.a4r_1)) {
849
+ if (equals(this.g4q_1, this.b4q_1.i4q_1)) {
850
850
  this.a9_1 = 4;
851
- suspendResult = this.t4q_1.z4q_1(this);
851
+ suspendResult = this.b4q_1.h4q_1(this);
852
852
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
853
853
  return suspendResult;
854
854
  }
@@ -860,7 +860,7 @@
860
860
 
861
861
  case 4:
862
862
  var ARGUMENT = suspendResult;
863
- this.t4q_1.a4r_1 = ARGUMENT;
863
+ this.b4q_1.i4q_1 = ARGUMENT;
864
864
  this.a9_1 = 5;
865
865
  continue $sm;
866
866
  case 5:
@@ -868,36 +868,36 @@
868
868
  continue $sm;
869
869
  case 6:
870
870
  this.b9_1 = 9;
871
- this.t4q_1.b4r_1 = false;
872
- this.x4q_1 = this.t4q_1.a4r_1;
871
+ this.b4q_1.j4q_1 = false;
872
+ this.f4q_1 = this.b4q_1.i4q_1;
873
873
  this.b9_1 = 12;
874
874
  this.a9_1 = 7;
875
875
  continue $sm;
876
876
  case 7:
877
- var tmp_0 = this.x4q_1;
877
+ var tmp_0 = this.f4q_1;
878
878
  this.b9_1 = 12;
879
- this.w4q_1.j1g(this.v4q_1);
880
- this.u4q_1 = tmp_0;
879
+ this.e4q_1.r1f(this.d4q_1);
880
+ this.c4q_1 = tmp_0;
881
881
  this.a9_1 = 11;
882
882
  continue $sm;
883
883
  case 8:
884
884
  this.b9_1 = 9;
885
885
  var t = this.d9_1;
886
- this.t4q_1.b4r_1 = false;
886
+ this.b4q_1.j4q_1 = false;
887
887
  throw t;
888
888
  case 9:
889
889
  this.b9_1 = 12;
890
890
  var t_0 = this.d9_1;
891
- this.w4q_1.j1g(this.v4q_1);
891
+ this.e4q_1.r1f(this.d4q_1);
892
892
  throw t_0;
893
893
  case 10:
894
894
  var ARGUMENT_0 = suspendResult;
895
- this.t4q_1.a4r_1 = ARGUMENT_0;
896
- this.u4q_1 = this.t4q_1.a4r_1;
895
+ this.b4q_1.i4q_1 = ARGUMENT_0;
896
+ this.c4q_1 = this.b4q_1.i4q_1;
897
897
  this.a9_1 = 11;
898
898
  continue $sm;
899
899
  case 11:
900
- return this.u4q_1;
900
+ return this.c4q_1;
901
901
  case 12:
902
902
  throw this.d9_1;
903
903
  }
@@ -914,8 +914,8 @@
914
914
  };
915
915
  function $setTokenCOROUTINE$(_this__u8e3s4, block, resultContinuation) {
916
916
  CoroutineImpl.call(this, resultContinuation);
917
- this.m4r_1 = _this__u8e3s4;
918
- this.n4r_1 = block;
917
+ this.u4q_1 = _this__u8e3s4;
918
+ this.v4q_1 = block;
919
919
  }
920
920
  protoOf($setTokenCOROUTINE$).i9 = function () {
921
921
  var suspendResult = this.c9_1;
@@ -925,27 +925,27 @@
925
925
  switch (tmp) {
926
926
  case 0:
927
927
  this.b9_1 = 7;
928
- this.s4r_1 = this.m4r_1.a4r_1;
929
- this.r4r_1 = this.m4r_1.b4r_1;
930
- this.p4r_1 = this.m4r_1.c4r_1;
931
- this.o4r_1 = null;
928
+ this.a4r_1 = this.u4q_1.i4q_1;
929
+ this.z4q_1 = this.u4q_1.j4q_1;
930
+ this.x4q_1 = this.u4q_1.k4q_1;
931
+ this.w4q_1 = null;
932
932
  this.a9_1 = 1;
933
- suspendResult = this.p4r_1.x1g(this.o4r_1, this);
933
+ suspendResult = this.x4q_1.f1g(this.w4q_1, this);
934
934
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
935
935
  return suspendResult;
936
936
  }
937
937
 
938
938
  continue $sm;
939
939
  case 1:
940
- this.q4r_1 = Unit_instance;
940
+ this.y4q_1 = Unit_instance;
941
941
  this.a9_1 = 2;
942
942
  continue $sm;
943
943
  case 2:
944
944
  this.b9_1 = 6;
945
- if (equals(this.s4r_1, this.m4r_1.a4r_1) || this.r4r_1) {
945
+ if (equals(this.a4r_1, this.u4q_1.i4q_1) || this.z4q_1) {
946
946
  this.a9_1 = 3;
947
- var tmp_0 = this.g9().ch(this.m4r_1.d4r_1);
948
- suspendResult = withContext(tmp_0, AuthTokenHolder$setToken$slambda_0(this.n4r_1, null), this);
947
+ var tmp_0 = this.g9().ch(this.u4q_1.l4q_1);
948
+ suspendResult = withContext(tmp_0, AuthTokenHolder$setToken$slambda_0(this.v4q_1, null), this);
949
949
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
950
950
  return suspendResult;
951
951
  }
@@ -957,23 +957,23 @@
957
957
 
958
958
  case 3:
959
959
  var ARGUMENT = suspendResult;
960
- this.m4r_1.a4r_1 = ARGUMENT;
960
+ this.u4q_1.i4q_1 = ARGUMENT;
961
961
  this.a9_1 = 4;
962
962
  continue $sm;
963
963
  case 4:
964
- this.q4r_1 = this.m4r_1.a4r_1;
964
+ this.y4q_1 = this.u4q_1.i4q_1;
965
965
  this.b9_1 = 7;
966
966
  this.a9_1 = 5;
967
967
  continue $sm;
968
968
  case 5:
969
- var tmp_1 = this.q4r_1;
969
+ var tmp_1 = this.y4q_1;
970
970
  this.b9_1 = 7;
971
- this.p4r_1.j1g(this.o4r_1);
971
+ this.x4q_1.r1f(this.w4q_1);
972
972
  return tmp_1;
973
973
  case 6:
974
974
  this.b9_1 = 7;
975
975
  var t = this.d9_1;
976
- this.p4r_1.j1g(this.o4r_1);
976
+ this.x4q_1.r1f(this.w4q_1);
977
977
  throw t;
978
978
  case 7:
979
979
  throw this.d9_1;
@@ -990,19 +990,19 @@
990
990
  while (true);
991
991
  };
992
992
  function AuthTokenHolder(loadTokens) {
993
- this.z4q_1 = loadTokens;
994
- this.a4r_1 = null;
995
- this.b4r_1 = false;
996
- this.c4r_1 = Mutex();
997
- this.d4r_1 = new SetTokenContext();
993
+ this.h4q_1 = loadTokens;
994
+ this.i4q_1 = null;
995
+ this.j4q_1 = false;
996
+ this.k4q_1 = Mutex();
997
+ this.l4q_1 = new SetTokenContext();
998
998
  }
999
- protoOf(AuthTokenHolder).t4r = function ($completion) {
999
+ protoOf(AuthTokenHolder).b4r = function ($completion) {
1000
1000
  var tmp = new $loadTokenCOROUTINE$(this, $completion);
1001
1001
  tmp.c9_1 = Unit_instance;
1002
1002
  tmp.d9_1 = null;
1003
1003
  return tmp.i9();
1004
1004
  };
1005
- protoOf(AuthTokenHolder).u4r = function (block, $completion) {
1005
+ protoOf(AuthTokenHolder).c4r = function (block, $completion) {
1006
1006
  var tmp = new $setTokenCOROUTINE$(this, block, $completion);
1007
1007
  tmp.c9_1 = Unit_instance;
1008
1008
  tmp.d9_1 = null;
@@ -1013,19 +1013,19 @@
1013
1013
  var this_0 = new BearerAuthConfig();
1014
1014
  block(this_0);
1015
1015
  // Inline function 'kotlin.with' call
1016
- _this__u8e3s4.g4n_1.j1(new BearerAuthProvider(this_0.v4r_1, this_0.w4r_1, this_0.x4r_1, this_0.y4r_1));
1016
+ _this__u8e3s4.o4m_1.j1(new BearerAuthProvider(this_0.d4r_1, this_0.e4r_1, this_0.f4r_1, this_0.g4r_1));
1017
1017
  }
1018
1018
  function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
1019
1019
  CoroutineImpl.call(this, resultContinuation);
1020
1020
  }
1021
- protoOf(BearerAuthConfig$refreshTokens$slambda).i4s = function (_this__u8e3s4, $completion) {
1022
- var tmp = this.j4s(_this__u8e3s4, $completion);
1021
+ protoOf(BearerAuthConfig$refreshTokens$slambda).q4r = function (_this__u8e3s4, $completion) {
1022
+ var tmp = this.r4r(_this__u8e3s4, $completion);
1023
1023
  tmp.c9_1 = Unit_instance;
1024
1024
  tmp.d9_1 = null;
1025
1025
  return tmp.i9();
1026
1026
  };
1027
1027
  protoOf(BearerAuthConfig$refreshTokens$slambda).u9 = function (p1, $completion) {
1028
- return this.i4s(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
1028
+ return this.q4r(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
1029
1029
  };
1030
1030
  protoOf(BearerAuthConfig$refreshTokens$slambda).i9 = function () {
1031
1031
  var suspendResult = this.c9_1;
@@ -1044,15 +1044,15 @@
1044
1044
  }
1045
1045
  while (true);
1046
1046
  };
1047
- protoOf(BearerAuthConfig$refreshTokens$slambda).j4s = function (_this__u8e3s4, completion) {
1047
+ protoOf(BearerAuthConfig$refreshTokens$slambda).r4r = function (_this__u8e3s4, completion) {
1048
1048
  var i = new BearerAuthConfig$refreshTokens$slambda(completion);
1049
- i.h4s_1 = _this__u8e3s4;
1049
+ i.p4r_1 = _this__u8e3s4;
1050
1050
  return i;
1051
1051
  };
1052
1052
  function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
1053
1053
  var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
1054
1054
  var l = function (_this__u8e3s4, $completion) {
1055
- return i.i4s(_this__u8e3s4, $completion);
1055
+ return i.q4r(_this__u8e3s4, $completion);
1056
1056
  };
1057
1057
  l.$arity = 1;
1058
1058
  return l;
@@ -1060,14 +1060,14 @@
1060
1060
  function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
1061
1061
  CoroutineImpl.call(this, resultContinuation);
1062
1062
  }
1063
- protoOf(BearerAuthConfig$loadTokens$slambda).s4s = function ($completion) {
1064
- var tmp = this.t4s($completion);
1063
+ protoOf(BearerAuthConfig$loadTokens$slambda).a4s = function ($completion) {
1064
+ var tmp = this.b4s($completion);
1065
1065
  tmp.c9_1 = Unit_instance;
1066
1066
  tmp.d9_1 = null;
1067
1067
  return tmp.i9();
1068
1068
  };
1069
1069
  protoOf(BearerAuthConfig$loadTokens$slambda).ra = function ($completion) {
1070
- return this.s4s($completion);
1070
+ return this.a4s($completion);
1071
1071
  };
1072
1072
  protoOf(BearerAuthConfig$loadTokens$slambda).i9 = function () {
1073
1073
  var suspendResult = this.c9_1;
@@ -1086,13 +1086,13 @@
1086
1086
  }
1087
1087
  while (true);
1088
1088
  };
1089
- protoOf(BearerAuthConfig$loadTokens$slambda).t4s = function (completion) {
1089
+ protoOf(BearerAuthConfig$loadTokens$slambda).b4s = function (completion) {
1090
1090
  return new BearerAuthConfig$loadTokens$slambda(completion);
1091
1091
  };
1092
1092
  function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
1093
1093
  var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
1094
1094
  var l = function ($completion) {
1095
- return i.s4s($completion);
1095
+ return i.a4s($completion);
1096
1096
  };
1097
1097
  l.$arity = 0;
1098
1098
  return l;
@@ -1102,60 +1102,60 @@
1102
1102
  }
1103
1103
  function BearerAuthConfig() {
1104
1104
  var tmp = this;
1105
- tmp.v4r_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
1105
+ tmp.d4r_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
1106
1106
  var tmp_0 = this;
1107
- tmp_0.w4r_1 = BearerAuthConfig$loadTokens$slambda_0(null);
1107
+ tmp_0.e4r_1 = BearerAuthConfig$loadTokens$slambda_0(null);
1108
1108
  var tmp_1 = this;
1109
- tmp_1.x4r_1 = BearerAuthConfig$sendWithoutRequest$lambda;
1110
- this.y4r_1 = null;
1109
+ tmp_1.f4r_1 = BearerAuthConfig$sendWithoutRequest$lambda;
1110
+ this.g4r_1 = null;
1111
1111
  }
1112
- protoOf(BearerAuthConfig).u4s = function (block) {
1113
- this.v4r_1 = block;
1112
+ protoOf(BearerAuthConfig).c4s = function (block) {
1113
+ this.d4r_1 = block;
1114
1114
  };
1115
1115
  function RefreshTokensParams(client, response, oldTokens) {
1116
- this.v4s_1 = client;
1117
- this.w4s_1 = response;
1118
- this.x4s_1 = oldTokens;
1116
+ this.d4s_1 = client;
1117
+ this.e4s_1 = response;
1118
+ this.f4s_1 = oldTokens;
1119
1119
  }
1120
- protoOf(RefreshTokensParams).y4s = function (_this__u8e3s4) {
1121
- _this__u8e3s4.c3f_1.o2h(get_AuthCircuitBreaker(), Unit_instance);
1120
+ protoOf(RefreshTokensParams).g4s = function (_this__u8e3s4) {
1121
+ _this__u8e3s4.k3e_1.w2g(get_AuthCircuitBreaker(), Unit_instance);
1122
1122
  };
1123
1123
  function BearerTokens(accessToken, refreshToken) {
1124
- this.z4s_1 = accessToken;
1125
- this.a4t_1 = refreshToken;
1124
+ this.h4s_1 = accessToken;
1125
+ this.i4s_1 = refreshToken;
1126
1126
  }
1127
1127
  function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
1128
1128
  return true;
1129
1129
  }
1130
1130
  function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
1131
1131
  return function ($this$headers) {
1132
- var tokenValue = 'Bearer ' + $token.z4s_1;
1132
+ var tokenValue = 'Bearer ' + $token.h4s_1;
1133
1133
  var tmp;
1134
- if ($this$headers.k2l(HttpHeaders_getInstance().g2t_1)) {
1135
- $this$headers.z2l(HttpHeaders_getInstance().g2t_1);
1134
+ if ($this$headers.s2k(HttpHeaders_getInstance().o2s_1)) {
1135
+ $this$headers.h2l(HttpHeaders_getInstance().o2s_1);
1136
1136
  tmp = Unit_instance;
1137
1137
  }
1138
1138
  var tmp_0;
1139
- if (!$request.c3f_1.n2h(get_AuthCircuitBreaker())) {
1140
- $this$headers.l2l(HttpHeaders_getInstance().g2t_1, tokenValue);
1139
+ if (!$request.k3e_1.v2g(get_AuthCircuitBreaker())) {
1140
+ $this$headers.t2k(HttpHeaders_getInstance().o2s_1, tokenValue);
1141
1141
  tmp_0 = Unit_instance;
1142
1142
  }
1143
1143
  return Unit_instance;
1144
1144
  };
1145
1145
  }
1146
1146
  function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
1147
- this.j4t_1 = this$0;
1148
- this.k4t_1 = $response;
1147
+ this.r4s_1 = this$0;
1148
+ this.s4s_1 = $response;
1149
1149
  CoroutineImpl.call(this, resultContinuation);
1150
1150
  }
1151
- protoOf(BearerAuthProvider$refreshToken$slambda).n4t = function ($completion) {
1152
- var tmp = this.t4s($completion);
1151
+ protoOf(BearerAuthProvider$refreshToken$slambda).v4s = function ($completion) {
1152
+ var tmp = this.b4s($completion);
1153
1153
  tmp.c9_1 = Unit_instance;
1154
1154
  tmp.d9_1 = null;
1155
1155
  return tmp.i9();
1156
1156
  };
1157
1157
  protoOf(BearerAuthProvider$refreshToken$slambda).ra = function ($completion) {
1158
- return this.n4t($completion);
1158
+ return this.v4s($completion);
1159
1159
  };
1160
1160
  protoOf(BearerAuthProvider$refreshToken$slambda).i9 = function () {
1161
1161
  var suspendResult = this.c9_1;
@@ -1165,10 +1165,10 @@
1165
1165
  switch (tmp) {
1166
1166
  case 0:
1167
1167
  this.b9_1 = 3;
1168
- this.l4t_1 = this.j4t_1.o4t_1;
1169
- this.m4t_1 = this.k4t_1.m3g().s3d_1;
1168
+ this.t4s_1 = this.r4s_1.w4s_1;
1169
+ this.u4s_1 = this.s4s_1.u3f().a3d_1;
1170
1170
  this.a9_1 = 1;
1171
- suspendResult = this.j4t_1.r4t_1.t4r(this);
1171
+ suspendResult = this.r4s_1.z4s_1.b4r(this);
1172
1172
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1173
1173
  return suspendResult;
1174
1174
  }
@@ -1176,9 +1176,9 @@
1176
1176
  continue $sm;
1177
1177
  case 1:
1178
1178
  var ARGUMENT = suspendResult;
1179
- var ARGUMENT_0 = new RefreshTokensParams(this.m4t_1, this.k4t_1, ARGUMENT);
1179
+ var ARGUMENT_0 = new RefreshTokensParams(this.u4s_1, this.s4s_1, ARGUMENT);
1180
1180
  this.a9_1 = 2;
1181
- suspendResult = this.l4t_1(ARGUMENT_0, this);
1181
+ suspendResult = this.t4s_1(ARGUMENT_0, this);
1182
1182
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1183
1183
  return suspendResult;
1184
1184
  }
@@ -1200,22 +1200,22 @@
1200
1200
  }
1201
1201
  while (true);
1202
1202
  };
1203
- protoOf(BearerAuthProvider$refreshToken$slambda).t4s = function (completion) {
1204
- return new BearerAuthProvider$refreshToken$slambda(this.j4t_1, this.k4t_1, completion);
1203
+ protoOf(BearerAuthProvider$refreshToken$slambda).b4s = function (completion) {
1204
+ return new BearerAuthProvider$refreshToken$slambda(this.r4s_1, this.s4s_1, completion);
1205
1205
  };
1206
1206
  function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
1207
1207
  var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
1208
1208
  var l = function ($completion) {
1209
- return i.n4t($completion);
1209
+ return i.v4s($completion);
1210
1210
  };
1211
1211
  l.$arity = 0;
1212
1212
  return l;
1213
1213
  }
1214
1214
  function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
1215
1215
  CoroutineImpl.call(this, resultContinuation);
1216
- this.a4u_1 = _this__u8e3s4;
1217
- this.b4u_1 = request;
1218
- this.c4u_1 = authHeader;
1216
+ this.i4t_1 = _this__u8e3s4;
1217
+ this.j4t_1 = request;
1218
+ this.k4t_1 = authHeader;
1219
1219
  }
1220
1220
  protoOf($addRequestHeadersCOROUTINE$).i9 = function () {
1221
1221
  var suspendResult = this.c9_1;
@@ -1226,7 +1226,7 @@
1226
1226
  case 0:
1227
1227
  this.b9_1 = 2;
1228
1228
  this.a9_1 = 1;
1229
- suspendResult = this.a4u_1.r4t_1.t4r(this);
1229
+ suspendResult = this.i4t_1.z4s_1.b4r(this);
1230
1230
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1231
1231
  return suspendResult;
1232
1232
  }
@@ -1242,7 +1242,7 @@
1242
1242
  }
1243
1243
 
1244
1244
  var token = tmp_0;
1245
- headers(this.b4u_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.b4u_1));
1245
+ headers(this.j4t_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.j4t_1));
1246
1246
  return Unit_instance;
1247
1247
  case 2:
1248
1248
  throw this.d9_1;
@@ -1260,8 +1260,8 @@
1260
1260
  };
1261
1261
  function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
1262
1262
  CoroutineImpl.call(this, resultContinuation);
1263
- this.l4u_1 = _this__u8e3s4;
1264
- this.m4u_1 = response;
1263
+ this.t4t_1 = _this__u8e3s4;
1264
+ this.u4t_1 = response;
1265
1265
  }
1266
1266
  protoOf($refreshTokenCOROUTINE$).i9 = function () {
1267
1267
  var suspendResult = this.c9_1;
@@ -1272,7 +1272,7 @@
1272
1272
  case 0:
1273
1273
  this.b9_1 = 2;
1274
1274
  this.a9_1 = 1;
1275
- suspendResult = this.l4u_1.r4t_1.u4r(BearerAuthProvider$refreshToken$slambda_0(this.l4u_1, this.m4u_1, null), this);
1275
+ suspendResult = this.t4t_1.z4s_1.c4r(BearerAuthProvider$refreshToken$slambda_0(this.t4t_1, this.u4t_1, null), this);
1276
1276
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1277
1277
  return suspendResult;
1278
1278
  }
@@ -1303,46 +1303,46 @@
1303
1303
  tmp = sendWithoutRequestCallback;
1304
1304
  }
1305
1305
  sendWithoutRequestCallback = tmp;
1306
- this.o4t_1 = refreshTokens;
1307
- this.p4t_1 = sendWithoutRequestCallback;
1308
- this.q4t_1 = realm;
1309
- this.r4t_1 = new AuthTokenHolder(loadTokens);
1306
+ this.w4s_1 = refreshTokens;
1307
+ this.x4s_1 = sendWithoutRequestCallback;
1308
+ this.y4s_1 = realm;
1309
+ this.z4s_1 = new AuthTokenHolder(loadTokens);
1310
1310
  }
1311
- protoOf(BearerAuthProvider).z4p = function () {
1311
+ protoOf(BearerAuthProvider).h4p = function () {
1312
1312
  var message = 'Deprecated';
1313
1313
  throw IllegalStateException_init_$Create$(toString(message));
1314
1314
  };
1315
- protoOf(BearerAuthProvider).c4p = function (request) {
1316
- return this.p4t_1(request);
1315
+ protoOf(BearerAuthProvider).k4o = function (request) {
1316
+ return this.x4s_1(request);
1317
1317
  };
1318
- protoOf(BearerAuthProvider).j4n = function (auth) {
1319
- if (!(auth.o32_1 === 'Bearer')) {
1320
- get_LOGGER().f2q('Bearer Auth Provider is not applicable for ' + auth.toString());
1318
+ protoOf(BearerAuthProvider).r4m = function (auth) {
1319
+ if (!(auth.w31_1 === 'Bearer')) {
1320
+ get_LOGGER().n2p('Bearer Auth Provider is not applicable for ' + auth.toString());
1321
1321
  return false;
1322
1322
  }
1323
1323
  var tmp;
1324
- if (this.q4t_1 == null) {
1324
+ if (this.y4s_1 == null) {
1325
1325
  tmp = true;
1326
1326
  } else {
1327
1327
  if (!(auth instanceof Parameterized)) {
1328
1328
  tmp = false;
1329
1329
  } else {
1330
- tmp = auth.s2s('realm') == this.q4t_1;
1330
+ tmp = auth.a2s('realm') == this.y4s_1;
1331
1331
  }
1332
1332
  }
1333
1333
  var isSameRealm = tmp;
1334
1334
  if (!isSameRealm) {
1335
- get_LOGGER().f2q('Bearer Auth Provider is not applicable for this realm');
1335
+ get_LOGGER().n2p('Bearer Auth Provider is not applicable for this realm');
1336
1336
  }
1337
1337
  return isSameRealm;
1338
1338
  };
1339
- protoOf(BearerAuthProvider).y4p = function (request, authHeader, $completion) {
1339
+ protoOf(BearerAuthProvider).g4p = function (request, authHeader, $completion) {
1340
1340
  var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
1341
1341
  tmp.c9_1 = Unit_instance;
1342
1342
  tmp.d9_1 = null;
1343
1343
  return tmp.i9();
1344
1344
  };
1345
- protoOf(BearerAuthProvider).x4p = function (response, $completion) {
1345
+ protoOf(BearerAuthProvider).f4p = function (response, $completion) {
1346
1346
  var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
1347
1347
  tmp.c9_1 = Unit_instance;
1348
1348
  tmp.d9_1 = null;
@@ -1353,7 +1353,7 @@
1353
1353
  protoOf(SetTokenContext).bh = fold;
1354
1354
  protoOf(SetTokenContext).ah = minusKey;
1355
1355
  protoOf(SetTokenContext).ch = plus;
1356
- protoOf(BearerAuthProvider).d4p = addRequestHeaders$default;
1356
+ protoOf(BearerAuthProvider).l4o = addRequestHeaders$default;
1357
1357
  //endregion
1358
1358
  //region block: init
1359
1359
  Companion_instance = new Companion();