@doordeck/doordeck-headless-sdk 0.193.0 → 0.194.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,63 +1,63 @@
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.$_$.h9;
5
- var Unit_instance = kotlin_kotlin.$_$.z4;
6
- var protoOf = kotlin_kotlin.$_$.vb;
7
- var THROW_CCE = kotlin_kotlin.$_$.tf;
8
- var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.i1;
4
+ var CoroutineImpl = kotlin_kotlin.$_$.l9;
5
+ var Unit_instance = kotlin_kotlin.$_$.c5;
6
+ var protoOf = kotlin_kotlin.$_$.zb;
7
+ var THROW_CCE = kotlin_kotlin.$_$.zf;
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.$_$.db;
10
+ var initMetadataForLambda = kotlin_kotlin.$_$.hb;
11
11
  var VOID = kotlin_kotlin.$_$.b;
12
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
13
- var initMetadataForClass = kotlin_kotlin.$_$.ya;
12
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
13
+ var initMetadataForClass = kotlin_kotlin.$_$.cb;
14
14
  var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
15
- var toList = kotlin_kotlin.$_$.e8;
16
- var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.d;
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
- var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
24
- var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
15
+ var toList = kotlin_kotlin.$_$.i8;
16
+ var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.e;
17
+ var KtMutableMap = kotlin_kotlin.$_$.p5;
18
+ var getKClass = kotlin_kotlin.$_$.rc;
19
+ var arrayOf = kotlin_kotlin.$_$.ng;
20
+ var createKType = kotlin_kotlin.$_$.pc;
21
+ var createInvariantKTypeProjection = kotlin_kotlin.$_$.nc;
22
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.q4;
23
+ var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.p;
24
+ var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.r;
25
25
  var Send_instance = kotlin_io_ktor_ktor_client_core.$_$.b;
26
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
27
- var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
28
- var collectionSizeOrDefault = kotlin_kotlin.$_$.u5;
29
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
26
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
27
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.x5;
28
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
30
29
  var parseAuthorizationHeaders = kotlin_io_ktor_ktor_http.$_$.l;
31
- var flatten = kotlin_kotlin.$_$.x6;
32
- var emptyList = kotlin_kotlin.$_$.o6;
33
- var to = kotlin_kotlin.$_$.xg;
34
- var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.i;
35
- var first = kotlin_kotlin.$_$.w6;
36
- var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.j;
37
- var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.b1;
38
- var toString = kotlin_kotlin.$_$.yb;
39
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
40
- var Sender = kotlin_io_ktor_ktor_client_core.$_$.k;
41
- var HashSet_init_$Create$ = kotlin_kotlin.$_$.q;
42
- var initMetadataForCoroutine = kotlin_kotlin.$_$.ab;
43
- var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
44
- var Unit = kotlin_kotlin.$_$.eg;
45
- var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
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
- var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
55
- var isInterface = kotlin_kotlin.$_$.nb;
56
- var equals = kotlin_kotlin.$_$.qa;
57
- var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
58
- var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
59
- var headers = kotlin_io_ktor_ktor_client_core.$_$.e1;
60
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
30
+ var flatten = kotlin_kotlin.$_$.b7;
31
+ var emptyList = kotlin_kotlin.$_$.s6;
32
+ var to = kotlin_kotlin.$_$.dh;
33
+ var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.l;
34
+ var first = kotlin_kotlin.$_$.a7;
35
+ var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.k;
36
+ var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
37
+ var toString = kotlin_kotlin.$_$.cc;
38
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
39
+ var Sender = kotlin_io_ktor_ktor_client_core.$_$.l;
40
+ var HashSet_init_$Create$ = kotlin_kotlin.$_$.s;
41
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.eb;
42
+ var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.k;
43
+ var Unit = kotlin_kotlin.$_$.kg;
44
+ var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
45
+ var KtList = kotlin_kotlin.$_$.j5;
46
+ var initMetadataForInterface = kotlin_kotlin.$_$.gb;
47
+ var initMetadataForCompanion = kotlin_kotlin.$_$.db;
48
+ var get = kotlin_kotlin.$_$.h9;
49
+ var fold = kotlin_kotlin.$_$.g9;
50
+ var minusKey = kotlin_kotlin.$_$.i9;
51
+ var plus = kotlin_kotlin.$_$.k9;
52
+ var Element = kotlin_kotlin.$_$.j9;
53
+ var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
54
+ var isInterface = kotlin_kotlin.$_$.rb;
55
+ var equals = kotlin_kotlin.$_$.ua;
56
+ var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
57
+ var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
58
+ var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
59
+ var headers = kotlin_io_ktor_ktor_client_core.$_$.g1;
60
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t1;
61
61
  var Parameterized = kotlin_io_ktor_ktor_http.$_$.k;
62
62
  //endregion
63
63
  //region block: pre-declaration
@@ -69,11 +69,11 @@
69
69
  initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
70
70
  initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
71
71
  function sendWithoutRequest(request) {
72
- return this.h4p();
72
+ return this.g52();
73
73
  }
74
74
  function addRequestHeaders$default(request, authHeader, $completion, $super) {
75
75
  authHeader = authHeader === VOID ? null : authHeader;
76
- return $super === VOID ? this.g4p(request, authHeader, $completion) : $super.g4p.call(this, request, authHeader, $completion);
76
+ return $super === VOID ? this.f52(request, authHeader, $completion) : $super.f52.call(this, request, authHeader, $completion);
77
77
  }
78
78
  function refreshToken(response, $completion) {
79
79
  return true;
@@ -83,8 +83,7 @@
83
83
  initMetadataForClass(SetTokenContext, 'SetTokenContext', SetTokenContext, VOID, [Element]);
84
84
  initMetadataForLambda(AuthTokenHolder$setToken$slambda, CoroutineImpl, VOID, [1]);
85
85
  initMetadataForCoroutine($loadTokenCOROUTINE$, CoroutineImpl);
86
- initMetadataForCoroutine($setTokenCOROUTINE$, CoroutineImpl);
87
- initMetadataForClass(AuthTokenHolder, 'AuthTokenHolder', VOID, VOID, VOID, [0, 1]);
86
+ initMetadataForClass(AuthTokenHolder, 'AuthTokenHolder', VOID, VOID, VOID, [0, 2]);
88
87
  initMetadataForLambda(BearerAuthConfig$refreshTokens$slambda, CoroutineImpl, VOID, [1]);
89
88
  initMetadataForLambda(BearerAuthConfig$loadTokens$slambda, CoroutineImpl, VOID, [0]);
90
89
  initMetadataForClass(BearerAuthConfig, 'BearerAuthConfig', BearerAuthConfig);
@@ -118,14 +117,14 @@
118
117
  function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
119
118
  CoroutineImpl.call(this, resultContinuation);
120
119
  }
121
- protoOf(AuthConfig$isUnauthorizedResponse$slambda).n4m = function (it, $completion) {
122
- var tmp = this.i3n(it, $completion);
120
+ protoOf(AuthConfig$isUnauthorizedResponse$slambda).m4z = function (it, $completion) {
121
+ var tmp = this.k3y(it, $completion);
123
122
  tmp.c9_1 = Unit_instance;
124
123
  tmp.d9_1 = null;
125
124
  return tmp.i9();
126
125
  };
127
126
  protoOf(AuthConfig$isUnauthorizedResponse$slambda).u9 = function (p1, $completion) {
128
- return this.n4m(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
127
+ return this.m4z(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
129
128
  };
130
129
  protoOf(AuthConfig$isUnauthorizedResponse$slambda).i9 = function () {
131
130
  var suspendResult = this.c9_1;
@@ -134,7 +133,7 @@
134
133
  var tmp = this.a9_1;
135
134
  if (tmp === 0) {
136
135
  this.b9_1 = 1;
137
- return this.m4m_1.g32().equals(Companion_getInstance().x2x_1);
136
+ return this.l4z_1.m35().equals(Companion_getInstance().d31_1);
138
137
  } else if (tmp === 1) {
139
138
  throw this.d9_1;
140
139
  }
@@ -144,15 +143,15 @@
144
143
  }
145
144
  while (true);
146
145
  };
147
- protoOf(AuthConfig$isUnauthorizedResponse$slambda).i3n = function (it, completion) {
146
+ protoOf(AuthConfig$isUnauthorizedResponse$slambda).k3y = function (it, completion) {
148
147
  var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
149
- i.m4m_1 = it;
148
+ i.l4z_1 = it;
150
149
  return i;
151
150
  };
152
151
  function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
153
152
  var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
154
153
  var l = function (it, $completion) {
155
- return i.n4m(it, $completion);
154
+ return i.m4z(it, $completion);
156
155
  };
157
156
  l.$arity = 1;
158
157
  return l;
@@ -160,12 +159,12 @@
160
159
  function AuthConfig() {
161
160
  var tmp = this;
162
161
  // Inline function 'kotlin.collections.mutableListOf' call
163
- tmp.o4m_1 = ArrayList_init_$Create$();
162
+ tmp.n4z_1 = ArrayList_init_$Create$();
164
163
  var tmp_0 = this;
165
- tmp_0.p4m_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
164
+ tmp_0.o4z_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
166
165
  }
167
166
  function AtomicCounter() {
168
- this.q4m_1 = atomic$int$1(0);
167
+ this.p4z_1 = atomic$int$1(0);
169
168
  }
170
169
  function AuthConfig$_init_$ref_ms3pb9() {
171
170
  var l = function () {
@@ -176,8 +175,8 @@
176
175
  }
177
176
  function Auth$lambda($this$createClientPlugin) {
178
177
  _init_properties_Auth_kt__9ob1dk();
179
- var providers = toList($this$createClientPlugin.i3m_1.o4m_1);
180
- $this$createClientPlugin.h3m_1.j3c_1.w2g(get_AuthProvidersKey(), providers);
178
+ var providers = toList($this$createClientPlugin.k3x_1.n4z_1);
179
+ $this$createClientPlugin.j3x_1.k3n_1.z2j(get_AuthProvidersKey(), providers);
181
180
  var tokenVersions = new ConcurrentMap();
182
181
  // Inline function 'io.ktor.util.AttributeKey' call
183
182
  var name = 'ProviderVersionAttributeKey';
@@ -200,9 +199,9 @@
200
199
  var tmp$ret$0 = tmp_0;
201
200
  var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
202
201
  var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
203
- $this$createClientPlugin.j41(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
202
+ $this$createClientPlugin.l4c(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
204
203
  var tmp_2 = Send_instance;
205
- $this$createClientPlugin.l3m(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
204
+ $this$createClientPlugin.n3x(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
206
205
  return Unit_instance;
207
206
  }
208
207
  function Auth$lambda$refreshTokenIfNeeded$lambda() {
@@ -215,7 +214,7 @@
215
214
  return LinkedHashMap_init_$Create$();
216
215
  }
217
216
  function invoke$findProvider(call, candidateProviders) {
218
- var headerValues = call.f3d().j2w().x2k(HttpHeaders_getInstance().h2v_1);
217
+ var headerValues = call.g3o().n2z().b2o('WWW-Authenticate');
219
218
  var tmp;
220
219
  if (headerValues == null) {
221
220
  tmp = null;
@@ -235,54 +234,69 @@
235
234
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : flatten(tmp1_safe_receiver);
236
235
  var authHeaders = tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs;
237
236
  var tmp_0;
238
- if (authHeaders.r() && candidateProviders.l1() === 1) {
239
- tmp_0 = to(first(candidateProviders), null);
237
+ if (candidateProviders.l1() === 1) {
238
+ var provider = first(candidateProviders);
239
+ var tmp$ret$4;
240
+ $l$block: {
241
+ // Inline function 'kotlin.collections.firstOrNull' call
242
+ var _iterator__ex2g4s_0 = authHeaders.t();
243
+ while (_iterator__ex2g4s_0.u()) {
244
+ var element = _iterator__ex2g4s_0.v();
245
+ if (provider.q4z(element)) {
246
+ tmp$ret$4 = element;
247
+ break $l$block;
248
+ }
249
+ }
250
+ tmp$ret$4 = null;
251
+ }
252
+ var header = tmp$ret$4;
253
+ tmp_0 = to(provider, header);
240
254
  } else if (authHeaders.r()) {
241
255
  // Inline function 'io.ktor.util.logging.trace' call
242
256
  var this_0 = get_LOGGER();
243
257
  if (get_isTraceEnabled(this_0)) {
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);
258
+ var tmp$ret$5 = 'Unauthorized response ' + call.o3q().x3q().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
259
+ this_0.r2s(tmp$ret$5);
246
260
  }
247
261
  tmp_0 = null;
248
262
  } else {
249
- var tmp$ret$11;
250
- $l$block_0: {
263
+ var tmp$ret$13;
264
+ $l$block_1: {
251
265
  // Inline function 'kotlin.collections.firstNotNullOfOrNull' call
252
- var _iterator__ex2g4s_0 = authHeaders.t();
253
- while (_iterator__ex2g4s_0.u()) {
254
- var element = _iterator__ex2g4s_0.v();
266
+ var _iterator__ex2g4s_1 = authHeaders.t();
267
+ while (_iterator__ex2g4s_1.u()) {
268
+ var element_0 = _iterator__ex2g4s_1.v();
255
269
  // Inline function 'kotlin.collections.find' call
256
- var tmp$ret$6;
257
- $l$block: {
270
+ var tmp$ret$8;
271
+ $l$block_0: {
258
272
  // Inline function 'kotlin.collections.firstOrNull' call
259
- var _iterator__ex2g4s_1 = candidateProviders.t();
260
- while (_iterator__ex2g4s_1.u()) {
261
- var element_0 = _iterator__ex2g4s_1.v();
262
- if (element_0.r4m(element)) {
263
- tmp$ret$6 = element_0;
264
- break $l$block;
273
+ var _iterator__ex2g4s_2 = candidateProviders.t();
274
+ while (_iterator__ex2g4s_2.u()) {
275
+ var element_1 = _iterator__ex2g4s_2.v();
276
+ if (element_1.q4z(element_0)) {
277
+ tmp$ret$8 = element_1;
278
+ break $l$block_0;
265
279
  }
266
280
  }
267
- tmp$ret$6 = null;
281
+ tmp$ret$8 = null;
268
282
  }
269
- var tmp0_safe_receiver = tmp$ret$6;
283
+ var tmp0_safe_receiver = tmp$ret$8;
270
284
  var tmp_1;
271
285
  if (tmp0_safe_receiver == null) {
272
286
  tmp_1 = null;
273
287
  } else {
274
288
  // Inline function 'kotlin.let' call
275
- tmp_1 = to(tmp0_safe_receiver, element);
289
+ tmp_1 = to(tmp0_safe_receiver, element_0);
276
290
  }
277
291
  var result = tmp_1;
278
292
  if (!(result == null)) {
279
- tmp$ret$11 = result;
280
- break $l$block_0;
293
+ tmp$ret$13 = result;
294
+ break $l$block_1;
281
295
  }
282
296
  }
283
- tmp$ret$11 = null;
297
+ tmp$ret$13 = null;
284
298
  }
285
- tmp_0 = tmp$ret$11;
299
+ tmp_0 = tmp$ret$13;
286
300
  }
287
301
  return tmp_0;
288
302
  }
@@ -306,21 +320,21 @@
306
320
  return LinkedHashMap_init_$Create$();
307
321
  }
308
322
  function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
309
- this.d4o_1 = $providers;
310
- this.e4o_1 = $tokenVersions;
311
- this.f4o_1 = $tokenVersionsAttributeKey;
323
+ this.c51_1 = $providers;
324
+ this.d51_1 = $tokenVersions;
325
+ this.e51_1 = $tokenVersionsAttributeKey;
312
326
  CoroutineImpl.call(this, resultContinuation);
313
327
  }
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);
328
+ protoOf(Auth$lambda$slambda).z4c = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
329
+ var tmp = this.a4d($this$onRequest, request, _unused_var__etf5q3, $completion);
316
330
  tmp.c9_1 = Unit_instance;
317
331
  tmp.d9_1 = null;
318
332
  return tmp.i9();
319
333
  };
320
- protoOf(Auth$lambda$slambda).z41 = function (p1, p2, p3, $completion) {
334
+ protoOf(Auth$lambda$slambda).b4d = function (p1, p2, p3, $completion) {
321
335
  var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
322
336
  var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
323
- return this.x41(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
337
+ return this.z4c(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
324
338
  };
325
339
  protoOf(Auth$lambda$slambda).i9 = function () {
326
340
  var suspendResult = this.c9_1;
@@ -330,37 +344,37 @@
330
344
  switch (tmp) {
331
345
  case 0:
332
346
  this.b9_1 = 4;
333
- var tmp0 = this.d4o_1;
347
+ var tmp0 = this.c51_1;
334
348
  var destination = ArrayList_init_$Create$();
335
349
  var _iterator__ex2g4s = tmp0.t();
336
350
  while (_iterator__ex2g4s.u()) {
337
351
  var element = _iterator__ex2g4s.v();
338
- if (element.k4o(this.h4o_1)) {
352
+ if (element.j51(this.g51_1)) {
339
353
  destination.j1(element);
340
354
  }
341
355
  }
342
356
 
343
- this.j4o_1 = destination.t();
357
+ this.i51_1 = destination.t();
344
358
  this.a9_1 = 1;
345
359
  continue $sm;
346
360
  case 1:
347
- if (!this.j4o_1.u()) {
361
+ if (!this.i51_1.u()) {
348
362
  this.a9_1 = 3;
349
363
  continue $sm;
350
364
  }
351
365
 
352
- var element_0 = this.j4o_1.v();
366
+ var element_0 = this.i51_1.v();
353
367
  var this_0 = get_LOGGER();
354
368
  if (get_isTraceEnabled(this_0)) {
355
- this_0.n2p('Adding auth headers for ' + this.h4o_1.f3e_1.toString() + ' from provider ' + toString(element_0));
369
+ this_0.r2s('Adding auth headers for ' + this.g51_1.g3p_1.toString() + ' from provider ' + toString(element_0));
356
370
  }
357
371
 
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;
372
+ var tokenVersion = this.d51_1.g2s(element_0, Auth$lambda$slambda$lambda);
373
+ var requestTokenVersions = this.g51_1.l3p_1.c2k(this.e51_1, Auth$lambda$slambda$lambda_0);
374
+ var value = tokenVersion.p4z_1.kotlinx$atomicfu$value;
361
375
  requestTokenVersions.y2(element_0, value);
362
376
  this.a9_1 = 2;
363
- suspendResult = element_0.l4o(this.h4o_1, VOID, this);
377
+ suspendResult = element_0.k51(this.g51_1, VOID, this);
364
378
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
365
379
  return suspendResult;
366
380
  }
@@ -385,37 +399,37 @@
385
399
  }
386
400
  while (true);
387
401
  };
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;
402
+ protoOf(Auth$lambda$slambda).a4d = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
403
+ var i = new Auth$lambda$slambda(this.c51_1, this.d51_1, this.e51_1, completion);
404
+ i.f51_1 = $this$onRequest;
405
+ i.g51_1 = request;
406
+ i.h51_1 = _unused_var__etf5q3;
393
407
  return i;
394
408
  };
395
409
  function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
396
410
  var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
397
411
  var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
398
- return i.x41($this$onRequest, request, _unused_var__etf5q3, $completion);
412
+ return i.z4c($this$onRequest, request, _unused_var__etf5q3, $completion);
399
413
  };
400
414
  l.$arity = 3;
401
415
  return l;
402
416
  }
403
417
  function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
404
- this.u4o_1 = $this_createClientPlugin;
405
- this.v4o_1 = $providers;
406
- this.w4o_1 = $tokenVersions;
407
- this.x4o_1 = $tokenVersionsAttributeKey;
418
+ this.t51_1 = $this_createClientPlugin;
419
+ this.u51_1 = $providers;
420
+ this.v51_1 = $tokenVersions;
421
+ this.w51_1 = $tokenVersionsAttributeKey;
408
422
  CoroutineImpl.call(this, resultContinuation);
409
423
  }
410
- protoOf(Auth$lambda$slambda_1).n3t = function ($this$on, originalRequest, $completion) {
411
- var tmp = this.o3t($this$on, originalRequest, $completion);
424
+ protoOf(Auth$lambda$slambda_1).p44 = function ($this$on, originalRequest, $completion) {
425
+ var tmp = this.q44($this$on, originalRequest, $completion);
412
426
  tmp.c9_1 = Unit_instance;
413
427
  tmp.d9_1 = null;
414
428
  return tmp.i9();
415
429
  };
416
430
  protoOf(Auth$lambda$slambda_1).v9 = function (p1, p2, $completion) {
417
431
  var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
418
- return this.n3t(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
432
+ return this.p44(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
419
433
  };
420
434
  protoOf(Auth$lambda$slambda_1).i9 = function () {
421
435
  var suspendResult = this.c9_1;
@@ -426,16 +440,16 @@
426
440
  case 0:
427
441
  this.b9_1 = 10;
428
442
  this.a9_1 = 1;
429
- suspendResult = this.y4o_1.r3t(this.z4o_1, this);
443
+ suspendResult = this.x51_1.t44(this.y51_1, this);
430
444
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
431
445
  return suspendResult;
432
446
  }
433
447
 
434
448
  continue $sm;
435
449
  case 1:
436
- this.e4p_1 = suspendResult;
450
+ this.d52_1 = suspendResult;
437
451
  this.a9_1 = 2;
438
- suspendResult = this.u4o_1.i3m_1.p4m_1(this.e4p_1.f3d(), this);
452
+ suspendResult = this.t51_1.k3x_1.o4z_1(this.d52_1.g3o(), this);
439
453
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
440
454
  return suspendResult;
441
455
  }
@@ -443,22 +457,22 @@
443
457
  continue $sm;
444
458
  case 2:
445
459
  if (!suspendResult) {
446
- return this.e4p_1;
460
+ return this.d52_1;
447
461
  } else {
448
462
  this.a9_1 = 3;
449
463
  continue $sm;
450
464
  }
451
465
 
452
466
  case 3:
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);
467
+ if (this.d52_1.o3q().p3q().y2j(get_AuthCircuitBreaker()))
468
+ return this.d52_1;
469
+ this.z51_1 = this.d52_1;
470
+ this.c52_1 = HashSet_init_$Create$(this.u51_1);
457
471
  this.a9_1 = 4;
458
472
  continue $sm;
459
473
  case 4:
460
474
  this.a9_1 = 5;
461
- suspendResult = this.u4o_1.i3m_1.p4m_1(this.a4p_1.f3d(), this);
475
+ suspendResult = this.t51_1.k3x_1.o4z_1(this.z51_1.g3o(), this);
462
476
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
463
477
  return suspendResult;
464
478
  }
@@ -472,33 +486,33 @@
472
486
 
473
487
  var this_0 = get_LOGGER();
474
488
  if (get_isTraceEnabled(this_0)) {
475
- this_0.n2p('Unauthorized response for ' + this.a4p_1.n3f().w3f().toString());
489
+ this_0.r2s('Unauthorized response for ' + this.z51_1.o3q().x3q().toString());
476
490
  }
477
491
 
478
- var tmp0_elvis_lhs = invoke$findProvider(this.a4p_1, this.d4p_1);
492
+ var tmp0_elvis_lhs = invoke$findProvider(this.z51_1, this.c52_1);
479
493
  var tmp_0;
480
494
  if (tmp0_elvis_lhs == null) {
481
- this.y4o_1;
495
+ this.x51_1;
482
496
  var this_1 = get_LOGGER();
483
497
  if (get_isTraceEnabled(this_1)) {
484
- this_1.n2p('Can not find auth provider for ' + this.a4p_1.n3f().w3f().toString());
498
+ this_1.r2s('Can not find auth provider for ' + this.z51_1.o3q().x3q().toString());
485
499
  }
486
- return this.a4p_1;
500
+ return this.z51_1;
487
501
  } else {
488
502
  tmp_0 = tmp0_elvis_lhs;
489
503
  }
490
504
 
491
505
  var _destruct__k2r9zo = tmp_0;
492
- this.c4p_1 = _destruct__k2r9zo.fg();
493
- this.b4p_1 = _destruct__k2r9zo.gg();
506
+ this.b52_1 = _destruct__k2r9zo.fg();
507
+ this.a52_1 = _destruct__k2r9zo.gg();
494
508
  var this_2 = get_LOGGER();
495
509
  if (get_isTraceEnabled(this_2)) {
496
- this_2.n2p('Using provider ' + toString(this.c4p_1) + ' for ' + this.a4p_1.n3f().w3f().toString());
510
+ this_2.r2s('Using provider ' + toString(this.b52_1) + ' for ' + this.z51_1.o3q().x3q().toString());
497
511
  }
498
512
 
499
- this.d4p_1.i3(this.c4p_1);
513
+ this.c52_1.i3(this.b52_1);
500
514
  this.a9_1 = 6;
501
- suspendResult = invoke$refreshTokenIfNeeded(this.w4o_1, this.x4o_1, this.a4p_1, this.c4p_1, this.z4o_1, this);
515
+ suspendResult = invoke$refreshTokenIfNeeded(this.v51_1, this.w51_1, this.z51_1, this.b52_1, this.y51_1, this);
502
516
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
503
517
  return suspendResult;
504
518
  }
@@ -506,7 +520,7 @@
506
520
  continue $sm;
507
521
  case 6:
508
522
  if (!suspendResult) {
509
- return this.a4p_1;
523
+ return this.z51_1;
510
524
  } else {
511
525
  this.a9_1 = 7;
512
526
  continue $sm;
@@ -514,18 +528,18 @@
514
528
 
515
529
  case 7:
516
530
  this.a9_1 = 8;
517
- suspendResult = invoke$executeWithNewToken(this.y4o_1, this.a4p_1, this.c4p_1, this.z4o_1, this.b4p_1, this);
531
+ suspendResult = invoke$executeWithNewToken(this.x51_1, this.z51_1, this.b52_1, this.y51_1, this.a52_1, this);
518
532
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
519
533
  return suspendResult;
520
534
  }
521
535
 
522
536
  continue $sm;
523
537
  case 8:
524
- this.a4p_1 = suspendResult;
538
+ this.z51_1 = suspendResult;
525
539
  this.a9_1 = 4;
526
540
  continue $sm;
527
541
  case 9:
528
- return this.a4p_1;
542
+ return this.z51_1;
529
543
  case 10:
530
544
  throw this.d9_1;
531
545
  }
@@ -540,27 +554,27 @@
540
554
  }
541
555
  while (true);
542
556
  };
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;
557
+ protoOf(Auth$lambda$slambda_1).q44 = function ($this$on, originalRequest, completion) {
558
+ var i = new Auth$lambda$slambda_1(this.t51_1, this.u51_1, this.v51_1, this.w51_1, completion);
559
+ i.x51_1 = $this$on;
560
+ i.y51_1 = originalRequest;
547
561
  return i;
548
562
  };
549
563
  function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
550
564
  var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
551
565
  var l = function ($this$on, originalRequest, $completion) {
552
- return i.n3t($this$on, originalRequest, $completion);
566
+ return i.p44($this$on, originalRequest, $completion);
553
567
  };
554
568
  l.$arity = 2;
555
569
  return l;
556
570
  }
557
571
  function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
558
572
  CoroutineImpl.call(this, resultContinuation);
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;
573
+ this.z4z_1 = tokenVersions;
574
+ this.a50_1 = tokenVersionsAttributeKey;
575
+ this.b50_1 = call;
576
+ this.c50_1 = provider;
577
+ this.d50_1 = request;
564
578
  }
565
579
  protoOf($invoke$refreshTokenIfNeededCOROUTINE$).i9 = function () {
566
580
  var suspendResult = this.c9_1;
@@ -571,17 +585,17 @@
571
585
  case 0:
572
586
  this.b9_1 = 4;
573
587
  var tmp_0 = this;
574
- tmp_0.f4n_1 = this.a4n_1.c2p(this.d4n_1, Auth$lambda$refreshTokenIfNeeded$lambda);
588
+ tmp_0.e50_1 = this.z4z_1.g2s(this.c50_1, Auth$lambda$refreshTokenIfNeeded$lambda);
575
589
  var tmp_1 = this;
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) {
590
+ tmp_1.f50_1 = this.d50_1.l3p_1.c2k(this.a50_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
591
+ var requestTokenVersion = this.f50_1.g3(this.c50_1);
592
+ if (!(requestTokenVersion == null) && requestTokenVersion >= this.e50_1.p4z_1.kotlinx$atomicfu$value) {
579
593
  var this_0 = get_LOGGER();
580
594
  if (get_isTraceEnabled(this_0)) {
581
- this_0.n2p('Refreshing token for ' + this.c4n_1.n3f().w3f().toString());
595
+ this_0.r2s('Refreshing token for ' + this.b50_1.o3q().x3q().toString());
582
596
  }
583
597
  this.a9_1 = 1;
584
- suspendResult = this.d4n_1.f4p(this.c4n_1.f3d(), this);
598
+ suspendResult = this.c50_1.e52(this.b50_1.g3o(), this);
585
599
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
586
600
  return suspendResult;
587
601
  }
@@ -595,13 +609,13 @@
595
609
  if (!suspendResult) {
596
610
  var this_1 = get_LOGGER();
597
611
  if (get_isTraceEnabled(this_1)) {
598
- this_1.n2p('Refreshing token failed for ' + this.c4n_1.n3f().w3f().toString());
612
+ this_1.r2s('Refreshing token failed for ' + this.b50_1.o3q().x3q().toString());
599
613
  }
600
614
  return false;
601
615
  } else {
602
- var tmp0 = this.g4n_1;
603
- var tmp2 = this.d4n_1;
604
- var value = this.f4n_1.q4m_1.atomicfu$incrementAndGet();
616
+ var tmp0 = this.f50_1;
617
+ var tmp2 = this.c50_1;
618
+ var value = this.e50_1.p4z_1.atomicfu$incrementAndGet();
605
619
  tmp0.y2(tmp2, value);
606
620
  this.a9_1 = 2;
607
621
  continue $sm;
@@ -628,11 +642,11 @@
628
642
  };
629
643
  function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
630
644
  CoroutineImpl.call(this, resultContinuation);
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;
645
+ this.o50_1 = _this__u8e3s4;
646
+ this.p50_1 = call;
647
+ this.q50_1 = provider;
648
+ this.r50_1 = oldRequest;
649
+ this.s50_1 = authHeader;
636
650
  }
637
651
  protoOf($invoke$executeWithNewTokenCOROUTINE$).i9 = function () {
638
652
  var suspendResult = this.c9_1;
@@ -642,24 +656,24 @@
642
656
  switch (tmp) {
643
657
  case 0:
644
658
  this.b9_1 = 3;
645
- this.u4n_1 = new HttpRequestBuilder();
646
- this.u4n_1.x3j(this.s4n_1);
659
+ this.t50_1 = new HttpRequestBuilder();
660
+ this.t50_1.z3u(this.r50_1);
647
661
  this.a9_1 = 1;
648
- suspendResult = this.r4n_1.g4p(this.u4n_1, this.t4n_1, this);
662
+ suspendResult = this.q50_1.f52(this.t50_1, this.s50_1, this);
649
663
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
650
664
  return suspendResult;
651
665
  }
652
666
 
653
667
  continue $sm;
654
668
  case 1:
655
- this.u4n_1.k3e_1.w2g(get_AuthCircuitBreaker(), Unit_instance);
669
+ this.t50_1.l3p_1.z2j(get_AuthCircuitBreaker(), Unit_instance);
656
670
  var this_0 = get_LOGGER();
657
671
  if (get_isTraceEnabled(this_0)) {
658
- this_0.n2p('Sending new request to ' + this.q4n_1.n3f().w3f().toString());
672
+ this_0.r2s('Sending new request to ' + this.p50_1.o3q().x3q().toString());
659
673
  }
660
674
 
661
675
  this.a9_1 = 2;
662
- suspendResult = this.p4n_1.r3t(this.u4n_1, this);
676
+ suspendResult = this.o50_1.t44(this.t50_1, this);
663
677
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
664
678
  return suspendResult;
665
679
  }
@@ -742,21 +756,24 @@
742
756
  }
743
757
  function SetTokenContext() {
744
758
  }
745
- protoOf(SetTokenContext).q1 = function () {
759
+ protoOf(SetTokenContext).r1 = function () {
746
760
  return Companion_instance;
747
761
  };
748
- function AuthTokenHolder$setToken$slambda($block, resultContinuation) {
749
- this.q4p_1 = $block;
762
+ function AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
763
+ this.p52_1 = this$0;
764
+ this.q52_1 = $prevValue;
765
+ this.r52_1 = $lockedByLoad;
766
+ this.s52_1 = $block;
750
767
  CoroutineImpl.call(this, resultContinuation);
751
768
  }
752
- protoOf(AuthTokenHolder$setToken$slambda).s4p = function ($this$withContext, $completion) {
753
- var tmp = this.e1u($this$withContext, $completion);
769
+ protoOf(AuthTokenHolder$setToken$slambda).x52 = function ($this$withContext, $completion) {
770
+ var tmp = this.c1x($this$withContext, $completion);
754
771
  tmp.c9_1 = Unit_instance;
755
772
  tmp.d9_1 = null;
756
773
  return tmp.i9();
757
774
  };
758
775
  protoOf(AuthTokenHolder$setToken$slambda).u9 = function (p1, $completion) {
759
- return this.s4p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
776
+ return this.x52((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
760
777
  };
761
778
  protoOf(AuthTokenHolder$setToken$slambda).i9 = function () {
762
779
  var suspendResult = this.c9_1;
@@ -765,22 +782,60 @@
765
782
  var tmp = this.a9_1;
766
783
  switch (tmp) {
767
784
  case 0:
768
- this.b9_1 = 2;
785
+ this.b9_1 = 7;
786
+ this.v52_1 = this.p52_1.c53_1;
787
+ this.u52_1 = null;
769
788
  this.a9_1 = 1;
770
- suspendResult = this.q4p_1(this);
789
+ suspendResult = this.v52_1.i1j(this.u52_1, this);
771
790
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
772
791
  return suspendResult;
773
792
  }
774
793
 
775
794
  continue $sm;
776
795
  case 1:
777
- return suspendResult;
796
+ this.w52_1 = Unit_instance;
797
+ this.a9_1 = 2;
798
+ continue $sm;
778
799
  case 2:
800
+ this.b9_1 = 6;
801
+ if (equals(this.q52_1, this.p52_1.a53_1) || this.r52_1) {
802
+ this.a9_1 = 3;
803
+ suspendResult = this.s52_1(this);
804
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
805
+ return suspendResult;
806
+ }
807
+ continue $sm;
808
+ } else {
809
+ this.a9_1 = 4;
810
+ continue $sm;
811
+ }
812
+
813
+ case 3:
814
+ var ARGUMENT = suspendResult;
815
+ this.p52_1.a53_1 = ARGUMENT;
816
+ this.a9_1 = 4;
817
+ continue $sm;
818
+ case 4:
819
+ this.w52_1 = this.p52_1.a53_1;
820
+ this.b9_1 = 7;
821
+ this.a9_1 = 5;
822
+ continue $sm;
823
+ case 5:
824
+ var tmp_0 = this.w52_1;
825
+ this.b9_1 = 7;
826
+ this.v52_1.u1i(this.u52_1);
827
+ return tmp_0;
828
+ case 6:
829
+ this.b9_1 = 7;
830
+ var t = this.d9_1;
831
+ this.v52_1.u1i(this.u52_1);
832
+ throw t;
833
+ case 7:
779
834
  throw this.d9_1;
780
835
  }
781
836
  } catch ($p) {
782
837
  var e = $p;
783
- if (this.b9_1 === 2) {
838
+ if (this.b9_1 === 7) {
784
839
  throw e;
785
840
  } else {
786
841
  this.a9_1 = this.b9_1;
@@ -789,22 +844,22 @@
789
844
  }
790
845
  while (true);
791
846
  };
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;
847
+ protoOf(AuthTokenHolder$setToken$slambda).c1x = function ($this$withContext, completion) {
848
+ var i = new AuthTokenHolder$setToken$slambda(this.p52_1, this.q52_1, this.r52_1, this.s52_1, completion);
849
+ i.t52_1 = $this$withContext;
795
850
  return i;
796
851
  };
797
- function AuthTokenHolder$setToken$slambda_0($block, resultContinuation) {
798
- var i = new AuthTokenHolder$setToken$slambda($block, resultContinuation);
852
+ function AuthTokenHolder$setToken$slambda_0(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
853
+ var i = new AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation);
799
854
  var l = function ($this$withContext, $completion) {
800
- return i.s4p($this$withContext, $completion);
855
+ return i.x52($this$withContext, $completion);
801
856
  };
802
857
  l.$arity = 1;
803
858
  return l;
804
859
  }
805
860
  function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
806
861
  CoroutineImpl.call(this, resultContinuation);
807
- this.b4q_1 = _this__u8e3s4;
862
+ this.m53_1 = _this__u8e3s4;
808
863
  }
809
864
  protoOf($loadTokenCOROUTINE$).i9 = function () {
810
865
  var suspendResult = this.c9_1;
@@ -813,174 +868,112 @@
813
868
  var tmp = this.a9_1;
814
869
  switch (tmp) {
815
870
  case 0:
816
- this.b9_1 = 12;
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
- if (!(this.g9().n9(Companion_instance) == null)) {
821
- this.a9_1 = 10;
822
- suspendResult = this.b4q_1.h4q_1(this);
871
+ this.b9_1 = 14;
872
+ if (!this.m53_1.z52_1) {
873
+ this.a9_1 = 13;
874
+ suspendResult = this.m53_1.y52_1(this);
823
875
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
824
876
  return suspendResult;
825
877
  }
826
878
  continue $sm;
827
879
  } else {
828
- this.e4q_1 = this.b4q_1.k4q_1;
829
- this.d4q_1 = null;
830
880
  this.a9_1 = 1;
831
- suspendResult = this.e4q_1.f1g(this.d4q_1, this);
881
+ continue $sm;
882
+ }
883
+
884
+ case 1:
885
+ if (!(this.m53_1.a53_1 == null))
886
+ return this.m53_1.a53_1;
887
+ this.r53_1 = this.m53_1.a53_1;
888
+ if (!(this.g9().n9(Companion_instance) == null)) {
889
+ this.a9_1 = 11;
890
+ suspendResult = this.m53_1.y52_1(this);
891
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
892
+ return suspendResult;
893
+ }
894
+ continue $sm;
895
+ } else {
896
+ this.p53_1 = this.m53_1.c53_1;
897
+ this.o53_1 = null;
898
+ this.a9_1 = 2;
899
+ suspendResult = this.p53_1.i1j(this.o53_1, this);
832
900
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
833
901
  return suspendResult;
834
902
  }
835
903
  continue $sm;
836
904
  }
837
905
 
838
- case 1:
839
- this.f4q_1 = Unit_instance;
840
- this.a9_1 = 2;
841
- continue $sm;
842
906
  case 2:
843
- this.b9_1 = 9;
844
- this.b4q_1.j4q_1 = true;
907
+ this.q53_1 = Unit_instance;
845
908
  this.a9_1 = 3;
846
909
  continue $sm;
847
910
  case 3:
848
- this.b9_1 = 8;
849
- if (equals(this.g4q_1, this.b4q_1.i4q_1)) {
850
- this.a9_1 = 4;
851
- suspendResult = this.b4q_1.h4q_1(this);
911
+ this.b9_1 = 10;
912
+ this.m53_1.b53_1 = true;
913
+ this.a9_1 = 4;
914
+ continue $sm;
915
+ case 4:
916
+ this.b9_1 = 9;
917
+ if (equals(this.r53_1, this.m53_1.a53_1)) {
918
+ this.a9_1 = 5;
919
+ suspendResult = this.m53_1.y52_1(this);
852
920
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
853
921
  return suspendResult;
854
922
  }
855
923
  continue $sm;
856
924
  } else {
857
- this.a9_1 = 5;
925
+ this.a9_1 = 6;
858
926
  continue $sm;
859
927
  }
860
928
 
861
- case 4:
862
- var ARGUMENT = suspendResult;
863
- this.b4q_1.i4q_1 = ARGUMENT;
864
- this.a9_1 = 5;
865
- continue $sm;
866
929
  case 5:
930
+ var ARGUMENT = suspendResult;
931
+ this.m53_1.a53_1 = ARGUMENT;
867
932
  this.a9_1 = 6;
868
933
  continue $sm;
869
934
  case 6:
870
- this.b9_1 = 9;
871
- this.b4q_1.j4q_1 = false;
872
- this.f4q_1 = this.b4q_1.i4q_1;
873
- this.b9_1 = 12;
874
935
  this.a9_1 = 7;
875
936
  continue $sm;
876
937
  case 7:
877
- var tmp_0 = this.f4q_1;
878
- this.b9_1 = 12;
879
- this.e4q_1.r1f(this.d4q_1);
880
- this.c4q_1 = tmp_0;
881
- this.a9_1 = 11;
938
+ this.b9_1 = 10;
939
+ this.m53_1.b53_1 = false;
940
+ this.q53_1 = this.m53_1.a53_1;
941
+ this.b9_1 = 14;
942
+ this.a9_1 = 8;
882
943
  continue $sm;
883
944
  case 8:
884
- this.b9_1 = 9;
945
+ var tmp_0 = this.q53_1;
946
+ this.b9_1 = 14;
947
+ this.p53_1.u1i(this.o53_1);
948
+ this.n53_1 = tmp_0;
949
+ this.a9_1 = 12;
950
+ continue $sm;
951
+ case 9:
952
+ this.b9_1 = 10;
885
953
  var t = this.d9_1;
886
- this.b4q_1.j4q_1 = false;
954
+ this.m53_1.b53_1 = false;
887
955
  throw t;
888
- case 9:
889
- this.b9_1 = 12;
956
+ case 10:
957
+ this.b9_1 = 14;
890
958
  var t_0 = this.d9_1;
891
- this.e4q_1.r1f(this.d4q_1);
959
+ this.p53_1.u1i(this.o53_1);
892
960
  throw t_0;
893
- case 10:
961
+ case 11:
894
962
  var ARGUMENT_0 = suspendResult;
895
- this.b4q_1.i4q_1 = ARGUMENT_0;
896
- this.c4q_1 = this.b4q_1.i4q_1;
897
- this.a9_1 = 11;
963
+ this.m53_1.a53_1 = ARGUMENT_0;
964
+ this.n53_1 = this.m53_1.a53_1;
965
+ this.a9_1 = 12;
898
966
  continue $sm;
899
- case 11:
900
- return this.c4q_1;
901
967
  case 12:
968
+ return this.n53_1;
969
+ case 13:
970
+ return suspendResult;
971
+ case 14:
902
972
  throw this.d9_1;
903
973
  }
904
974
  } catch ($p) {
905
975
  var e = $p;
906
- if (this.b9_1 === 12) {
907
- throw e;
908
- } else {
909
- this.a9_1 = this.b9_1;
910
- this.d9_1 = e;
911
- }
912
- }
913
- while (true);
914
- };
915
- function $setTokenCOROUTINE$(_this__u8e3s4, block, resultContinuation) {
916
- CoroutineImpl.call(this, resultContinuation);
917
- this.u4q_1 = _this__u8e3s4;
918
- this.v4q_1 = block;
919
- }
920
- protoOf($setTokenCOROUTINE$).i9 = function () {
921
- var suspendResult = this.c9_1;
922
- $sm: do
923
- try {
924
- var tmp = this.a9_1;
925
- switch (tmp) {
926
- case 0:
927
- this.b9_1 = 7;
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
- this.a9_1 = 1;
933
- suspendResult = this.x4q_1.f1g(this.w4q_1, this);
934
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
935
- return suspendResult;
936
- }
937
-
938
- continue $sm;
939
- case 1:
940
- this.y4q_1 = Unit_instance;
941
- this.a9_1 = 2;
942
- continue $sm;
943
- case 2:
944
- this.b9_1 = 6;
945
- if (equals(this.a4r_1, this.u4q_1.i4q_1) || this.z4q_1) {
946
- this.a9_1 = 3;
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
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
950
- return suspendResult;
951
- }
952
- continue $sm;
953
- } else {
954
- this.a9_1 = 4;
955
- continue $sm;
956
- }
957
-
958
- case 3:
959
- var ARGUMENT = suspendResult;
960
- this.u4q_1.i4q_1 = ARGUMENT;
961
- this.a9_1 = 4;
962
- continue $sm;
963
- case 4:
964
- this.y4q_1 = this.u4q_1.i4q_1;
965
- this.b9_1 = 7;
966
- this.a9_1 = 5;
967
- continue $sm;
968
- case 5:
969
- var tmp_1 = this.y4q_1;
970
- this.b9_1 = 7;
971
- this.x4q_1.r1f(this.w4q_1);
972
- return tmp_1;
973
- case 6:
974
- this.b9_1 = 7;
975
- var t = this.d9_1;
976
- this.x4q_1.r1f(this.w4q_1);
977
- throw t;
978
- case 7:
979
- throw this.d9_1;
980
- }
981
- } catch ($p) {
982
- var e = $p;
983
- if (this.b9_1 === 7) {
976
+ if (this.b9_1 === 14) {
984
977
  throw e;
985
978
  } else {
986
979
  this.a9_1 = this.b9_1;
@@ -989,43 +982,53 @@
989
982
  }
990
983
  while (true);
991
984
  };
992
- function AuthTokenHolder(loadTokens) {
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();
985
+ function AuthTokenHolder(loadTokens, cacheTokens) {
986
+ cacheTokens = cacheTokens === VOID ? true : cacheTokens;
987
+ this.y52_1 = loadTokens;
988
+ this.z52_1 = cacheTokens;
989
+ this.a53_1 = null;
990
+ this.b53_1 = false;
991
+ this.c53_1 = Mutex();
992
+ this.d53_1 = new SetTokenContext();
998
993
  }
999
- protoOf(AuthTokenHolder).b4r = function ($completion) {
994
+ protoOf(AuthTokenHolder).s53 = function ($completion) {
1000
995
  var tmp = new $loadTokenCOROUTINE$(this, $completion);
1001
996
  tmp.c9_1 = Unit_instance;
1002
997
  tmp.d9_1 = null;
1003
998
  return tmp.i9();
1004
999
  };
1005
- protoOf(AuthTokenHolder).c4r = function (block, $completion) {
1006
- var tmp = new $setTokenCOROUTINE$(this, block, $completion);
1007
- tmp.c9_1 = Unit_instance;
1008
- tmp.d9_1 = null;
1009
- return tmp.i9();
1000
+ protoOf(AuthTokenHolder).t53 = function (nonCancellable, block, $completion) {
1001
+ var prevValue = this.a53_1;
1002
+ var lockedByLoad = this.b53_1;
1003
+ var tmp;
1004
+ if (nonCancellable) {
1005
+ // Inline function 'kotlin.js.getCoroutineContext' call
1006
+ tmp = $completion.g9().ch(NonCancellable_getInstance()).ch(this.d53_1);
1007
+ } else {
1008
+ // Inline function 'kotlin.js.getCoroutineContext' call
1009
+ tmp = $completion.g9().ch(this.d53_1);
1010
+ }
1011
+ var context = tmp;
1012
+ return withContext(context, AuthTokenHolder$setToken$slambda_0(this, prevValue, lockedByLoad, block, null), $completion);
1010
1013
  };
1011
1014
  function bearer(_this__u8e3s4, block) {
1012
1015
  // Inline function 'kotlin.apply' call
1013
1016
  var this_0 = new BearerAuthConfig();
1014
1017
  block(this_0);
1015
1018
  // Inline function 'kotlin.with' call
1016
- _this__u8e3s4.o4m_1.j1(new BearerAuthProvider(this_0.d4r_1, this_0.e4r_1, this_0.f4r_1, this_0.g4r_1));
1019
+ _this__u8e3s4.n4z_1.j1(new BearerAuthProvider(this_0.u53_1, this_0.v53_1, this_0.w53_1, this_0.x53_1, this_0.y53_1, this_0.z53_1));
1017
1020
  }
1018
1021
  function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
1019
1022
  CoroutineImpl.call(this, resultContinuation);
1020
1023
  }
1021
- protoOf(BearerAuthConfig$refreshTokens$slambda).q4r = function (_this__u8e3s4, $completion) {
1022
- var tmp = this.r4r(_this__u8e3s4, $completion);
1024
+ protoOf(BearerAuthConfig$refreshTokens$slambda).j54 = function (_this__u8e3s4, $completion) {
1025
+ var tmp = this.k54(_this__u8e3s4, $completion);
1023
1026
  tmp.c9_1 = Unit_instance;
1024
1027
  tmp.d9_1 = null;
1025
1028
  return tmp.i9();
1026
1029
  };
1027
1030
  protoOf(BearerAuthConfig$refreshTokens$slambda).u9 = function (p1, $completion) {
1028
- return this.q4r(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
1031
+ return this.j54(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
1029
1032
  };
1030
1033
  protoOf(BearerAuthConfig$refreshTokens$slambda).i9 = function () {
1031
1034
  var suspendResult = this.c9_1;
@@ -1044,15 +1047,15 @@
1044
1047
  }
1045
1048
  while (true);
1046
1049
  };
1047
- protoOf(BearerAuthConfig$refreshTokens$slambda).r4r = function (_this__u8e3s4, completion) {
1050
+ protoOf(BearerAuthConfig$refreshTokens$slambda).k54 = function (_this__u8e3s4, completion) {
1048
1051
  var i = new BearerAuthConfig$refreshTokens$slambda(completion);
1049
- i.p4r_1 = _this__u8e3s4;
1052
+ i.i54_1 = _this__u8e3s4;
1050
1053
  return i;
1051
1054
  };
1052
1055
  function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
1053
1056
  var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
1054
1057
  var l = function (_this__u8e3s4, $completion) {
1055
- return i.q4r(_this__u8e3s4, $completion);
1058
+ return i.j54(_this__u8e3s4, $completion);
1056
1059
  };
1057
1060
  l.$arity = 1;
1058
1061
  return l;
@@ -1060,14 +1063,14 @@
1060
1063
  function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
1061
1064
  CoroutineImpl.call(this, resultContinuation);
1062
1065
  }
1063
- protoOf(BearerAuthConfig$loadTokens$slambda).a4s = function ($completion) {
1064
- var tmp = this.b4s($completion);
1066
+ protoOf(BearerAuthConfig$loadTokens$slambda).t54 = function ($completion) {
1067
+ var tmp = this.u54($completion);
1065
1068
  tmp.c9_1 = Unit_instance;
1066
1069
  tmp.d9_1 = null;
1067
1070
  return tmp.i9();
1068
1071
  };
1069
1072
  protoOf(BearerAuthConfig$loadTokens$slambda).ra = function ($completion) {
1070
- return this.a4s($completion);
1073
+ return this.t54($completion);
1071
1074
  };
1072
1075
  protoOf(BearerAuthConfig$loadTokens$slambda).i9 = function () {
1073
1076
  var suspendResult = this.c9_1;
@@ -1086,13 +1089,13 @@
1086
1089
  }
1087
1090
  while (true);
1088
1091
  };
1089
- protoOf(BearerAuthConfig$loadTokens$slambda).b4s = function (completion) {
1092
+ protoOf(BearerAuthConfig$loadTokens$slambda).u54 = function (completion) {
1090
1093
  return new BearerAuthConfig$loadTokens$slambda(completion);
1091
1094
  };
1092
1095
  function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
1093
1096
  var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
1094
1097
  var l = function ($completion) {
1095
- return i.a4s($completion);
1098
+ return i.t54($completion);
1096
1099
  };
1097
1100
  l.$arity = 0;
1098
1101
  return l;
@@ -1102,60 +1105,62 @@
1102
1105
  }
1103
1106
  function BearerAuthConfig() {
1104
1107
  var tmp = this;
1105
- tmp.d4r_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
1108
+ tmp.u53_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
1106
1109
  var tmp_0 = this;
1107
- tmp_0.e4r_1 = BearerAuthConfig$loadTokens$slambda_0(null);
1110
+ tmp_0.v53_1 = BearerAuthConfig$loadTokens$slambda_0(null);
1108
1111
  var tmp_1 = this;
1109
- tmp_1.f4r_1 = BearerAuthConfig$sendWithoutRequest$lambda;
1110
- this.g4r_1 = null;
1112
+ tmp_1.w53_1 = BearerAuthConfig$sendWithoutRequest$lambda;
1113
+ this.x53_1 = null;
1114
+ this.y53_1 = true;
1115
+ this.z53_1 = false;
1111
1116
  }
1112
- protoOf(BearerAuthConfig).c4s = function (block) {
1113
- this.d4r_1 = block;
1117
+ protoOf(BearerAuthConfig).v54 = function (block) {
1118
+ this.u53_1 = block;
1114
1119
  };
1115
1120
  function RefreshTokensParams(client, response, oldTokens) {
1116
- this.d4s_1 = client;
1117
- this.e4s_1 = response;
1118
- this.f4s_1 = oldTokens;
1121
+ this.w54_1 = client;
1122
+ this.x54_1 = response;
1123
+ this.y54_1 = oldTokens;
1119
1124
  }
1120
- protoOf(RefreshTokensParams).g4s = function (_this__u8e3s4) {
1121
- _this__u8e3s4.k3e_1.w2g(get_AuthCircuitBreaker(), Unit_instance);
1125
+ protoOf(RefreshTokensParams).z54 = function (_this__u8e3s4) {
1126
+ _this__u8e3s4.l3p_1.z2j(get_AuthCircuitBreaker(), Unit_instance);
1122
1127
  };
1123
1128
  function BearerTokens(accessToken, refreshToken) {
1124
- this.h4s_1 = accessToken;
1125
- this.i4s_1 = refreshToken;
1129
+ this.a55_1 = accessToken;
1130
+ this.b55_1 = refreshToken;
1126
1131
  }
1127
1132
  function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
1128
1133
  return true;
1129
1134
  }
1130
1135
  function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
1131
1136
  return function ($this$headers) {
1132
- var tokenValue = 'Bearer ' + $token.h4s_1;
1137
+ var tokenValue = 'Bearer ' + $token.a55_1;
1133
1138
  var tmp;
1134
- if ($this$headers.s2k(HttpHeaders_getInstance().o2s_1)) {
1135
- $this$headers.h2l(HttpHeaders_getInstance().o2s_1);
1139
+ if ($this$headers.w2n('Authorization')) {
1140
+ $this$headers.l2o('Authorization');
1136
1141
  tmp = Unit_instance;
1137
1142
  }
1138
1143
  var tmp_0;
1139
- if (!$request.k3e_1.v2g(get_AuthCircuitBreaker())) {
1140
- $this$headers.t2k(HttpHeaders_getInstance().o2s_1, tokenValue);
1144
+ if (!$request.l3p_1.y2j(get_AuthCircuitBreaker())) {
1145
+ $this$headers.x2n('Authorization', tokenValue);
1141
1146
  tmp_0 = Unit_instance;
1142
1147
  }
1143
1148
  return Unit_instance;
1144
1149
  };
1145
1150
  }
1146
1151
  function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
1147
- this.r4s_1 = this$0;
1148
- this.s4s_1 = $response;
1152
+ this.k55_1 = this$0;
1153
+ this.l55_1 = $response;
1149
1154
  CoroutineImpl.call(this, resultContinuation);
1150
1155
  }
1151
- protoOf(BearerAuthProvider$refreshToken$slambda).v4s = function ($completion) {
1152
- var tmp = this.b4s($completion);
1156
+ protoOf(BearerAuthProvider$refreshToken$slambda).t54 = function ($completion) {
1157
+ var tmp = this.u54($completion);
1153
1158
  tmp.c9_1 = Unit_instance;
1154
1159
  tmp.d9_1 = null;
1155
1160
  return tmp.i9();
1156
1161
  };
1157
1162
  protoOf(BearerAuthProvider$refreshToken$slambda).ra = function ($completion) {
1158
- return this.v4s($completion);
1163
+ return this.t54($completion);
1159
1164
  };
1160
1165
  protoOf(BearerAuthProvider$refreshToken$slambda).i9 = function () {
1161
1166
  var suspendResult = this.c9_1;
@@ -1165,10 +1170,10 @@
1165
1170
  switch (tmp) {
1166
1171
  case 0:
1167
1172
  this.b9_1 = 3;
1168
- this.t4s_1 = this.r4s_1.w4s_1;
1169
- this.u4s_1 = this.s4s_1.u3f().a3d_1;
1173
+ this.m55_1 = this.k55_1.o55_1;
1174
+ this.n55_1 = this.l55_1.v3q().b3o_1;
1170
1175
  this.a9_1 = 1;
1171
- suspendResult = this.r4s_1.z4s_1.b4r(this);
1176
+ suspendResult = this.k55_1.s55_1.s53(this);
1172
1177
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1173
1178
  return suspendResult;
1174
1179
  }
@@ -1176,9 +1181,9 @@
1176
1181
  continue $sm;
1177
1182
  case 1:
1178
1183
  var ARGUMENT = suspendResult;
1179
- var ARGUMENT_0 = new RefreshTokensParams(this.u4s_1, this.s4s_1, ARGUMENT);
1184
+ var ARGUMENT_0 = new RefreshTokensParams(this.n55_1, this.l55_1, ARGUMENT);
1180
1185
  this.a9_1 = 2;
1181
- suspendResult = this.t4s_1(ARGUMENT_0, this);
1186
+ suspendResult = this.m55_1(ARGUMENT_0, this);
1182
1187
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1183
1188
  return suspendResult;
1184
1189
  }
@@ -1200,22 +1205,22 @@
1200
1205
  }
1201
1206
  while (true);
1202
1207
  };
1203
- protoOf(BearerAuthProvider$refreshToken$slambda).b4s = function (completion) {
1204
- return new BearerAuthProvider$refreshToken$slambda(this.r4s_1, this.s4s_1, completion);
1208
+ protoOf(BearerAuthProvider$refreshToken$slambda).u54 = function (completion) {
1209
+ return new BearerAuthProvider$refreshToken$slambda(this.k55_1, this.l55_1, completion);
1205
1210
  };
1206
1211
  function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
1207
1212
  var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
1208
1213
  var l = function ($completion) {
1209
- return i.v4s($completion);
1214
+ return i.t54($completion);
1210
1215
  };
1211
1216
  l.$arity = 0;
1212
1217
  return l;
1213
1218
  }
1214
1219
  function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
1215
1220
  CoroutineImpl.call(this, resultContinuation);
1216
- this.i4t_1 = _this__u8e3s4;
1217
- this.j4t_1 = request;
1218
- this.k4t_1 = authHeader;
1221
+ this.b56_1 = _this__u8e3s4;
1222
+ this.c56_1 = request;
1223
+ this.d56_1 = authHeader;
1219
1224
  }
1220
1225
  protoOf($addRequestHeadersCOROUTINE$).i9 = function () {
1221
1226
  var suspendResult = this.c9_1;
@@ -1226,7 +1231,7 @@
1226
1231
  case 0:
1227
1232
  this.b9_1 = 2;
1228
1233
  this.a9_1 = 1;
1229
- suspendResult = this.i4t_1.z4s_1.b4r(this);
1234
+ suspendResult = this.b56_1.s55_1.s53(this);
1230
1235
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1231
1236
  return suspendResult;
1232
1237
  }
@@ -1242,7 +1247,7 @@
1242
1247
  }
1243
1248
 
1244
1249
  var token = tmp_0;
1245
- headers(this.j4t_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.j4t_1));
1250
+ headers(this.c56_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.c56_1));
1246
1251
  return Unit_instance;
1247
1252
  case 2:
1248
1253
  throw this.d9_1;
@@ -1260,8 +1265,8 @@
1260
1265
  };
1261
1266
  function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
1262
1267
  CoroutineImpl.call(this, resultContinuation);
1263
- this.t4t_1 = _this__u8e3s4;
1264
- this.u4t_1 = response;
1268
+ this.m56_1 = _this__u8e3s4;
1269
+ this.n56_1 = response;
1265
1270
  }
1266
1271
  protoOf($refreshTokenCOROUTINE$).i9 = function () {
1267
1272
  var suspendResult = this.c9_1;
@@ -1272,7 +1277,7 @@
1272
1277
  case 0:
1273
1278
  this.b9_1 = 2;
1274
1279
  this.a9_1 = 1;
1275
- suspendResult = this.t4t_1.z4s_1.c4r(BearerAuthProvider$refreshToken$slambda_0(this.t4t_1, this.u4t_1, null), this);
1280
+ suspendResult = this.m56_1.s55_1.t53(this.m56_1.r55_1, BearerAuthProvider$refreshToken$slambda_0(this.m56_1, this.n56_1, null), this);
1276
1281
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1277
1282
  return suspendResult;
1278
1283
  }
@@ -1295,7 +1300,7 @@
1295
1300
  }
1296
1301
  while (true);
1297
1302
  };
1298
- function BearerAuthProvider(refreshTokens, loadTokens, sendWithoutRequestCallback, realm) {
1303
+ function BearerAuthProvider(refreshTokens, loadTokens, sendWithoutRequestCallback, realm, cacheTokens, nonCancellableRefresh) {
1299
1304
  var tmp;
1300
1305
  if (sendWithoutRequestCallback === VOID) {
1301
1306
  tmp = BearerAuthProvider$_init_$lambda_lcdiwf;
@@ -1303,46 +1308,49 @@
1303
1308
  tmp = sendWithoutRequestCallback;
1304
1309
  }
1305
1310
  sendWithoutRequestCallback = tmp;
1306
- this.w4s_1 = refreshTokens;
1307
- this.x4s_1 = sendWithoutRequestCallback;
1308
- this.y4s_1 = realm;
1309
- this.z4s_1 = new AuthTokenHolder(loadTokens);
1311
+ cacheTokens = cacheTokens === VOID ? true : cacheTokens;
1312
+ nonCancellableRefresh = nonCancellableRefresh === VOID ? false : nonCancellableRefresh;
1313
+ this.o55_1 = refreshTokens;
1314
+ this.p55_1 = sendWithoutRequestCallback;
1315
+ this.q55_1 = realm;
1316
+ this.r55_1 = nonCancellableRefresh;
1317
+ this.s55_1 = new AuthTokenHolder(loadTokens, cacheTokens);
1310
1318
  }
1311
- protoOf(BearerAuthProvider).h4p = function () {
1319
+ protoOf(BearerAuthProvider).g52 = function () {
1312
1320
  var message = 'Deprecated';
1313
1321
  throw IllegalStateException_init_$Create$(toString(message));
1314
1322
  };
1315
- protoOf(BearerAuthProvider).k4o = function (request) {
1316
- return this.x4s_1(request);
1323
+ protoOf(BearerAuthProvider).j51 = function (request) {
1324
+ return this.p55_1(request);
1317
1325
  };
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());
1326
+ protoOf(BearerAuthProvider).q4z = function (auth) {
1327
+ if (!(auth.c35_1 === 'Bearer')) {
1328
+ get_LOGGER().r2s('Bearer Auth Provider is not applicable for ' + auth.toString());
1321
1329
  return false;
1322
1330
  }
1323
1331
  var tmp;
1324
- if (this.y4s_1 == null) {
1332
+ if (this.q55_1 == null) {
1325
1333
  tmp = true;
1326
1334
  } else {
1327
1335
  if (!(auth instanceof Parameterized)) {
1328
1336
  tmp = false;
1329
1337
  } else {
1330
- tmp = auth.a2s('realm') == this.y4s_1;
1338
+ tmp = auth.e2v('realm') == this.q55_1;
1331
1339
  }
1332
1340
  }
1333
1341
  var isSameRealm = tmp;
1334
1342
  if (!isSameRealm) {
1335
- get_LOGGER().n2p('Bearer Auth Provider is not applicable for this realm');
1343
+ get_LOGGER().r2s('Bearer Auth Provider is not applicable for this realm');
1336
1344
  }
1337
1345
  return isSameRealm;
1338
1346
  };
1339
- protoOf(BearerAuthProvider).g4p = function (request, authHeader, $completion) {
1347
+ protoOf(BearerAuthProvider).f52 = function (request, authHeader, $completion) {
1340
1348
  var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
1341
1349
  tmp.c9_1 = Unit_instance;
1342
1350
  tmp.d9_1 = null;
1343
1351
  return tmp.i9();
1344
1352
  };
1345
- protoOf(BearerAuthProvider).f4p = function (response, $completion) {
1353
+ protoOf(BearerAuthProvider).e52 = function (response, $completion) {
1346
1354
  var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
1347
1355
  tmp.c9_1 = Unit_instance;
1348
1356
  tmp.d9_1 = null;
@@ -1353,7 +1361,7 @@
1353
1361
  protoOf(SetTokenContext).bh = fold;
1354
1362
  protoOf(SetTokenContext).ah = minusKey;
1355
1363
  protoOf(SetTokenContext).ch = plus;
1356
- protoOf(BearerAuthProvider).l4o = addRequestHeaders$default;
1364
+ protoOf(BearerAuthProvider).k51 = addRequestHeaders$default;
1357
1365
  //endregion
1358
1366
  //region block: init
1359
1367
  Companion_instance = new Companion();