@doordeck/doordeck-headless-sdk 0.94.0 → 0.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1471 -1471
  2. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +27 -27
  3. package/kotlin/MultiplatformSettings-multiplatform-settings.js +13 -13
  4. package/kotlin/doordeck-sdk.js +9661 -9661
  5. package/kotlin/kotlin-kotlin-stdlib.js +866 -739
  6. package/kotlin/kotlinx-atomicfu.js +18 -18
  7. package/kotlin/kotlinx-coroutines-core.js +2601 -1851
  8. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +42 -42
  9. package/kotlin/kotlinx-io-kotlinx-io-core.js +447 -447
  10. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1818 -1818
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1424 -1424
  12. package/kotlin/ktor-ktor-client-ktor-client-core.js +1898 -1898
  13. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +411 -323
  14. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +156 -156
  15. package/kotlin/ktor-ktor-http-ktor-http-cio.js +603 -363
  16. package/kotlin/ktor-ktor-http.js +754 -754
  17. package/kotlin/ktor-ktor-io.js +629 -629
  18. package/kotlin/ktor-ktor-shared-ktor-events.js +12 -12
  19. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
  20. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +158 -158
  21. package/kotlin/ktor-ktor-shared-ktor-serialization.js +78 -78
  22. package/kotlin/ktor-ktor-shared-ktor-websockets.js +52 -52
  23. package/kotlin/ktor-ktor-utils.js +627 -603
  24. package/package.json +4 -4
@@ -1,22 +1,22 @@
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.$_$.u9;
4
+ var CoroutineImpl = kotlin_kotlin.$_$.v9;
5
5
  var Unit_instance = kotlin_kotlin.$_$.k5;
6
- var protoOf = kotlin_kotlin.$_$.tb;
7
- var THROW_CCE = kotlin_kotlin.$_$.of;
6
+ var protoOf = kotlin_kotlin.$_$.ub;
7
+ var THROW_CCE = kotlin_kotlin.$_$.sf;
8
8
  var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.y;
9
9
  var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
10
- var initMetadataForLambda = kotlin_kotlin.$_$.wa;
10
+ var initMetadataForLambda = kotlin_kotlin.$_$.xa;
11
11
  var VOID = kotlin_kotlin.$_$.h;
12
12
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
13
- var initMetadataForClass = kotlin_kotlin.$_$.ra;
13
+ var initMetadataForClass = kotlin_kotlin.$_$.sa;
14
14
  var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
15
- var toList = kotlin_kotlin.$_$.s8;
15
+ var toList = kotlin_kotlin.$_$.t8;
16
16
  var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.c;
17
17
  var KtMutableMap = kotlin_kotlin.$_$.w5;
18
18
  var getKClass = kotlin_kotlin.$_$.f;
19
- var arrayOf = kotlin_kotlin.$_$.cg;
19
+ var arrayOf = kotlin_kotlin.$_$.gg;
20
20
  var createKType = kotlin_kotlin.$_$.c;
21
21
  var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
22
22
  var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.a5;
@@ -27,28 +27,35 @@
27
27
  var collectionSizeOrDefault = kotlin_kotlin.$_$.f6;
28
28
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
29
29
  var parseAuthorizationHeaders = kotlin_io_ktor_ktor_http.$_$.m;
30
- var flatten = kotlin_kotlin.$_$.h7;
30
+ var flatten = kotlin_kotlin.$_$.i7;
31
31
  var emptyList = kotlin_kotlin.$_$.z6;
32
- var to = kotlin_kotlin.$_$.sg;
32
+ var to = kotlin_kotlin.$_$.wg;
33
33
  var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.h;
34
- var first = kotlin_kotlin.$_$.g7;
34
+ var first = kotlin_kotlin.$_$.h7;
35
35
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.y;
36
36
  var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.e;
37
37
  var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.s;
38
- var toString = kotlin_kotlin.$_$.xb;
39
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.e9;
38
+ var toString = kotlin_kotlin.$_$.yb;
39
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f9;
40
40
  var Sender = kotlin_io_ktor_ktor_client_core.$_$.f;
41
41
  var HashSet_init_$Create$ = kotlin_kotlin.$_$.w;
42
- var initMetadataForCoroutine = kotlin_kotlin.$_$.ta;
42
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.ua;
43
43
  var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.g;
44
- var Unit = kotlin_kotlin.$_$.zf;
44
+ var Unit = kotlin_kotlin.$_$.dg;
45
45
  var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.i;
46
46
  var KtList = kotlin_kotlin.$_$.r5;
47
- var initMetadataForInterface = kotlin_kotlin.$_$.va;
48
- var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
49
- var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.qg;
50
- var CompletableDeferred_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
51
- var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
47
+ var initMetadataForInterface = kotlin_kotlin.$_$.wa;
48
+ var initMetadataForCompanion = kotlin_kotlin.$_$.ta;
49
+ var get = kotlin_kotlin.$_$.r9;
50
+ var fold = kotlin_kotlin.$_$.q9;
51
+ var minusKey = kotlin_kotlin.$_$.s9;
52
+ var plus = kotlin_kotlin.$_$.u9;
53
+ var Element = kotlin_kotlin.$_$.t9;
54
+ var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
55
+ var isInterface = kotlin_kotlin.$_$.hb;
56
+ var equals = kotlin_kotlin.$_$.la;
57
+ var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
58
+ var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
52
59
  var headers = kotlin_io_ktor_ktor_client_core.$_$.v;
53
60
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
54
61
  var Parameterized = kotlin_io_ktor_ktor_http.$_$.l;
@@ -62,16 +69,19 @@
62
69
  initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$0, CoroutineImpl);
63
70
  initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$1, CoroutineImpl);
64
71
  function sendWithoutRequest(request) {
65
- return this.h4j();
72
+ return this.m4m();
66
73
  }
67
74
  function addRequestHeaders$default(request, authHeader, $completion, $super) {
68
75
  authHeader = authHeader === VOID ? null : authHeader;
69
- return $super === VOID ? this.g4j(request, authHeader, $completion) : $super.g4j.call(this, request, authHeader, $completion);
76
+ return $super === VOID ? this.l4m(request, authHeader, $completion) : $super.l4m.call(this, request, authHeader, $completion);
70
77
  }
71
78
  function refreshToken(response, $completion) {
72
79
  return true;
73
80
  }
74
81
  initMetadataForInterface(AuthProvider, 'AuthProvider', VOID, VOID, VOID, [2, 1]);
82
+ initMetadataForCompanion(Companion);
83
+ initMetadataForClass(SetTokenContext, 'SetTokenContext', SetTokenContext, VOID, [Element]);
84
+ initMetadataForLambda(AuthTokenHolder$setToken$slambda, CoroutineImpl, VOID, [1]);
75
85
  initMetadataForCoroutine($loadTokenCOROUTINE$2, CoroutineImpl);
76
86
  initMetadataForCoroutine($setTokenCOROUTINE$3, CoroutineImpl);
77
87
  initMetadataForClass(AuthTokenHolder, 'AuthTokenHolder', VOID, VOID, VOID, [0, 1]);
@@ -108,14 +118,14 @@
108
118
  function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
109
119
  CoroutineImpl.call(this, resultContinuation);
110
120
  }
111
- protoOf(AuthConfig$isUnauthorizedResponse$slambda).c4g = function (it, $completion) {
112
- var tmp = this.y3i(it, $completion);
121
+ protoOf(AuthConfig$isUnauthorizedResponse$slambda).h4j = function (it, $completion) {
122
+ var tmp = this.d3m(it, $completion);
113
123
  tmp.i9_1 = Unit_instance;
114
124
  tmp.j9_1 = null;
115
125
  return tmp.o9();
116
126
  };
117
127
  protoOf(AuthConfig$isUnauthorizedResponse$slambda).ca = function (p1, $completion) {
118
- return this.c4g(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
128
+ return this.h4j(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
119
129
  };
120
130
  protoOf(AuthConfig$isUnauthorizedResponse$slambda).o9 = function () {
121
131
  var suspendResult = this.i9_1;
@@ -124,7 +134,7 @@
124
134
  var tmp = this.g9_1;
125
135
  if (tmp === 0) {
126
136
  this.h9_1 = 1;
127
- return this.b4g_1.b3c().equals(Companion_getInstance().n2t_1);
137
+ return this.g4j_1.g3f().equals(Companion_getInstance().q2v_1);
128
138
  } else if (tmp === 1) {
129
139
  throw this.j9_1;
130
140
  }
@@ -134,15 +144,15 @@
134
144
  }
135
145
  while (true);
136
146
  };
137
- protoOf(AuthConfig$isUnauthorizedResponse$slambda).y3i = function (it, completion) {
147
+ protoOf(AuthConfig$isUnauthorizedResponse$slambda).d3m = function (it, completion) {
138
148
  var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
139
- i.b4g_1 = it;
149
+ i.g4j_1 = it;
140
150
  return i;
141
151
  };
142
152
  function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
143
153
  var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
144
154
  var l = function (it, $completion) {
145
- return i.c4g(it, $completion);
155
+ return i.h4j(it, $completion);
146
156
  };
147
157
  l.$arity = 1;
148
158
  return l;
@@ -150,12 +160,12 @@
150
160
  function AuthConfig() {
151
161
  var tmp = this;
152
162
  // Inline function 'kotlin.collections.mutableListOf' call
153
- tmp.d4g_1 = ArrayList_init_$Create$();
163
+ tmp.i4j_1 = ArrayList_init_$Create$();
154
164
  var tmp_0 = this;
155
- tmp_0.e4g_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
165
+ tmp_0.j4j_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
156
166
  }
157
167
  function AtomicCounter() {
158
- this.f4g_1 = atomic$int$1(0);
168
+ this.k4j_1 = atomic$int$1(0);
159
169
  }
160
170
  function AuthConfig$_init_$ref_ms3pb9() {
161
171
  var l = function () {
@@ -166,8 +176,8 @@
166
176
  }
167
177
  function Auth$lambda($this$createClientPlugin) {
168
178
  _init_properties_Auth_kt__9ob1dk();
169
- var providers = toList($this$createClientPlugin.y3h_1.d4g_1);
170
- $this$createClientPlugin.x3h_1.r37_1.e2f(get_AuthProvidersKey(), providers);
179
+ var providers = toList($this$createClientPlugin.d3l_1.i4j_1);
180
+ $this$createClientPlugin.c3l_1.w3a_1.i2h(get_AuthProvidersKey(), providers);
171
181
  var tokenVersions = new ConcurrentMap();
172
182
  // Inline function 'io.ktor.util.AttributeKey' call
173
183
  var name = 'ProviderVersionAttributeKey';
@@ -190,13 +200,13 @@
190
200
  var tmp$ret$0 = tmp_0;
191
201
  var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
192
202
  var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
193
- $this$createClientPlugin.l40(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
203
+ $this$createClientPlugin.q43(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
194
204
  var tmp_2 = Send_instance;
195
- $this$createClientPlugin.b3i(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
205
+ $this$createClientPlugin.g3l(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
196
206
  return Unit_instance;
197
207
  }
198
208
  function invoke$findProvider(call, candidateProviders) {
199
- var headerValues = call.o38().a2s().s2g(HttpHeaders_getInstance().z2q_1);
209
+ var headerValues = call.t3b().d2u().w2i(HttpHeaders_getInstance().c2t_1);
200
210
  var tmp;
201
211
  if (headerValues == null) {
202
212
  tmp = null;
@@ -222,8 +232,8 @@
222
232
  // Inline function 'io.ktor.util.logging.trace' call
223
233
  var this_0 = get_LOGGER();
224
234
  if (get_isTraceEnabled(this_0)) {
225
- var tmp$ret$3 = 'Unauthorized response ' + call.x3b().a3c().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
226
- this_0.j2l(tmp$ret$3);
235
+ var tmp$ret$3 = 'Unauthorized response ' + call.c3f().f3f().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
236
+ this_0.m2n(tmp$ret$3);
227
237
  }
228
238
  tmp_0 = null;
229
239
  } else {
@@ -240,7 +250,7 @@
240
250
  var _iterator__ex2g4s_1 = candidateProviders.p();
241
251
  while (_iterator__ex2g4s_1.q()) {
242
252
  var element_0 = _iterator__ex2g4s_1.r();
243
- if (element_0.g4g(element)) {
253
+ if (element_0.l4j(element)) {
244
254
  tmp$ret$6 = element_0;
245
255
  break $l$block;
246
256
  }
@@ -287,21 +297,21 @@
287
297
  return LinkedHashMap_init_$Create$();
288
298
  }
289
299
  function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
290
- this.t4h_1 = $providers;
291
- this.u4h_1 = $tokenVersions;
292
- this.v4h_1 = $tokenVersionsAttributeKey;
300
+ this.y4k_1 = $providers;
301
+ this.z4k_1 = $tokenVersions;
302
+ this.a4l_1 = $tokenVersionsAttributeKey;
293
303
  CoroutineImpl.call(this, resultContinuation);
294
304
  }
295
- protoOf(Auth$lambda$slambda).y40 = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
296
- var tmp = this.z40($this$onRequest, request, _unused_var__etf5q3, $completion);
305
+ protoOf(Auth$lambda$slambda).d44 = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
306
+ var tmp = this.e44($this$onRequest, request, _unused_var__etf5q3, $completion);
297
307
  tmp.i9_1 = Unit_instance;
298
308
  tmp.j9_1 = null;
299
309
  return tmp.o9();
300
310
  };
301
- protoOf(Auth$lambda$slambda).a41 = function (p1, p2, p3, $completion) {
311
+ protoOf(Auth$lambda$slambda).f44 = function (p1, p2, p3, $completion) {
302
312
  var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
303
313
  var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
304
- return this.y40(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
314
+ return this.d44(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
305
315
  };
306
316
  protoOf(Auth$lambda$slambda).o9 = function () {
307
317
  var suspendResult = this.i9_1;
@@ -312,46 +322,46 @@
312
322
  case 0:
313
323
  this.h9_1 = 4;
314
324
  var tmp_0 = this;
315
- var tmp0 = this.t4h_1;
325
+ var tmp0 = this.y4k_1;
316
326
  var destination = ArrayList_init_$Create$();
317
327
  var _iterator__ex2g4s = tmp0.p();
318
328
  while (_iterator__ex2g4s.q()) {
319
329
  var element = _iterator__ex2g4s.r();
320
- if (element.h4i(this.x4h_1)) {
330
+ if (element.m4l(this.c4l_1)) {
321
331
  destination.k(element);
322
332
  }
323
333
  }
324
334
 
325
- tmp_0.z4h_1 = destination;
326
- this.a4i_1 = this.z4h_1;
327
- this.b4i_1 = this.a4i_1.p();
335
+ tmp_0.e4l_1 = destination;
336
+ this.f4l_1 = this.e4l_1;
337
+ this.g4l_1 = this.f4l_1.p();
328
338
  this.g9_1 = 1;
329
339
  continue $sm;
330
340
  case 1:
331
- if (!this.b4i_1.q()) {
341
+ if (!this.g4l_1.q()) {
332
342
  this.g9_1 = 3;
333
343
  continue $sm;
334
344
  }
335
345
 
336
- this.c4i_1 = this.b4i_1.r();
346
+ this.h4l_1 = this.g4l_1.r();
337
347
  var tmp_1 = this;
338
- tmp_1.d4i_1 = this.c4i_1;
339
- this.e4i_1 = this.d4i_1;
348
+ tmp_1.i4l_1 = this.h4l_1;
349
+ this.j4l_1 = this.i4l_1;
340
350
  var this_0 = get_LOGGER();
341
351
  if (get_isTraceEnabled(this_0)) {
342
- this_0.j2l('Adding auth headers for ' + this.x4h_1.o39_1.toString() + ' from provider ' + toString(this.e4i_1));
352
+ this_0.m2n('Adding auth headers for ' + this.c4l_1.t3c_1.toString() + ' from provider ' + toString(this.j4l_1));
343
353
  }
344
354
 
345
355
  var tmp_2 = this;
346
- tmp_2.f4i_1 = this.u4h_1.b2l(this.e4i_1, Auth$lambda$slambda$lambda);
356
+ tmp_2.k4l_1 = this.z4k_1.e2n(this.j4l_1, Auth$lambda$slambda$lambda);
347
357
  var tmp_3 = this;
348
- tmp_3.g4i_1 = this.x4h_1.t39_1.g2f(this.v4h_1, Auth$lambda$slambda$lambda_0);
349
- var tmp1 = this.g4i_1;
350
- var tmp2 = this.e4i_1;
351
- var value = this.f4i_1.f4g_1.kotlinx$atomicfu$value;
358
+ tmp_3.l4l_1 = this.c4l_1.y3c_1.k2h(this.a4l_1, Auth$lambda$slambda$lambda_0);
359
+ var tmp1 = this.l4l_1;
360
+ var tmp2 = this.j4l_1;
361
+ var value = this.k4l_1.k4j_1.kotlinx$atomicfu$value;
352
362
  tmp1.n2(tmp2, value);
353
363
  this.g9_1 = 2;
354
- suspendResult = this.e4i_1.i4i(this.x4h_1, VOID, this);
364
+ suspendResult = this.j4l_1.n4l(this.c4l_1, VOID, this);
355
365
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
356
366
  return suspendResult;
357
367
  }
@@ -376,37 +386,37 @@
376
386
  }
377
387
  while (true);
378
388
  };
379
- protoOf(Auth$lambda$slambda).z40 = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
380
- var i = new Auth$lambda$slambda(this.t4h_1, this.u4h_1, this.v4h_1, completion);
381
- i.w4h_1 = $this$onRequest;
382
- i.x4h_1 = request;
383
- i.y4h_1 = _unused_var__etf5q3;
389
+ protoOf(Auth$lambda$slambda).e44 = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
390
+ var i = new Auth$lambda$slambda(this.y4k_1, this.z4k_1, this.a4l_1, completion);
391
+ i.b4l_1 = $this$onRequest;
392
+ i.c4l_1 = request;
393
+ i.d4l_1 = _unused_var__etf5q3;
384
394
  return i;
385
395
  };
386
396
  function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
387
397
  var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
388
398
  var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
389
- return i.y40($this$onRequest, request, _unused_var__etf5q3, $completion);
399
+ return i.d44($this$onRequest, request, _unused_var__etf5q3, $completion);
390
400
  };
391
401
  l.$arity = 3;
392
402
  return l;
393
403
  }
394
404
  function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
395
- this.r4i_1 = $this_createClientPlugin;
396
- this.s4i_1 = $providers;
397
- this.t4i_1 = $tokenVersions;
398
- this.u4i_1 = $tokenVersionsAttributeKey;
405
+ this.w4l_1 = $this_createClientPlugin;
406
+ this.x4l_1 = $providers;
407
+ this.y4l_1 = $tokenVersions;
408
+ this.z4l_1 = $tokenVersionsAttributeKey;
399
409
  CoroutineImpl.call(this, resultContinuation);
400
410
  }
401
- protoOf(Auth$lambda$slambda_1).g3r = function ($this$on, originalRequest, $completion) {
402
- var tmp = this.h3r($this$on, originalRequest, $completion);
411
+ protoOf(Auth$lambda$slambda_1).l3u = function ($this$on, originalRequest, $completion) {
412
+ var tmp = this.m3u($this$on, originalRequest, $completion);
403
413
  tmp.i9_1 = Unit_instance;
404
414
  tmp.j9_1 = null;
405
415
  return tmp.o9();
406
416
  };
407
417
  protoOf(Auth$lambda$slambda_1).da = function (p1, p2, $completion) {
408
418
  var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
409
- return this.g3r(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
419
+ return this.l3u(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
410
420
  };
411
421
  protoOf(Auth$lambda$slambda_1).o9 = function () {
412
422
  var suspendResult = this.i9_1;
@@ -417,40 +427,40 @@
417
427
  case 0:
418
428
  this.h9_1 = 10;
419
429
  this.g9_1 = 1;
420
- suspendResult = this.v4i_1.k3r(this.w4i_1, this);
430
+ suspendResult = this.a4m_1.p3u(this.b4m_1, this);
421
431
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
422
432
  return suspendResult;
423
433
  }
424
434
 
425
435
  continue $sm;
426
436
  case 1:
427
- this.x4i_1 = suspendResult;
437
+ this.c4m_1 = suspendResult;
428
438
  this.g9_1 = 2;
429
- suspendResult = this.r4i_1.y3h_1.e4g_1(this.x4i_1.o38(), this);
439
+ suspendResult = this.w4l_1.d3l_1.j4j_1(this.c4m_1.t3b(), this);
430
440
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
431
441
  return suspendResult;
432
442
  }
433
443
 
434
444
  continue $sm;
435
445
  case 2:
436
- this.y4i_1 = suspendResult;
437
- if (!this.y4i_1) {
438
- return this.x4i_1;
446
+ this.d4m_1 = suspendResult;
447
+ if (!this.d4m_1) {
448
+ return this.c4m_1;
439
449
  } else {
440
450
  this.g9_1 = 3;
441
451
  continue $sm;
442
452
  }
443
453
 
444
454
  case 3:
445
- if (this.x4i_1.x3b().w3a().d2f(get_AuthCircuitBreaker()))
446
- return this.x4i_1;
447
- this.z4i_1 = this.x4i_1;
448
- this.a4j_1 = HashSet_init_$Create$(this.s4i_1);
455
+ if (this.c4m_1.c3f().b3e().h2h(get_AuthCircuitBreaker()))
456
+ return this.c4m_1;
457
+ this.e4m_1 = this.c4m_1;
458
+ this.f4m_1 = HashSet_init_$Create$(this.x4l_1);
449
459
  this.g9_1 = 4;
450
460
  continue $sm;
451
461
  case 4:
452
462
  this.g9_1 = 5;
453
- suspendResult = this.r4i_1.y3h_1.e4g_1(this.z4i_1.o38(), this);
463
+ suspendResult = this.w4l_1.d3l_1.j4j_1(this.e4m_1.t3b(), this);
454
464
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
455
465
  return suspendResult;
456
466
  }
@@ -464,43 +474,43 @@
464
474
 
465
475
  var this_0 = get_LOGGER();
466
476
  if (get_isTraceEnabled(this_0)) {
467
- this_0.j2l('Unauthorized response for ' + this.z4i_1.x3b().a3c().toString());
477
+ this_0.m2n('Unauthorized response for ' + this.e4m_1.c3f().f3f().toString());
468
478
  }
469
479
 
470
480
  var tmp_0 = this;
471
- var tmp0_elvis_lhs = invoke$findProvider(this.z4i_1, this.a4j_1);
481
+ var tmp0_elvis_lhs = invoke$findProvider(this.e4m_1, this.f4m_1);
472
482
  var tmp_1;
473
483
  if (tmp0_elvis_lhs == null) {
474
- this.v4i_1;
484
+ this.a4m_1;
475
485
  var this_1 = get_LOGGER();
476
486
  if (get_isTraceEnabled(this_1)) {
477
- this_1.j2l('Can not find auth provider for ' + this.z4i_1.x3b().a3c().toString());
487
+ this_1.m2n('Can not find auth provider for ' + this.e4m_1.c3f().f3f().toString());
478
488
  }
479
- return this.z4i_1;
489
+ return this.e4m_1;
480
490
  } else {
481
491
  tmp_1 = tmp0_elvis_lhs;
482
492
  }
483
493
 
484
- tmp_0.b4j_1 = tmp_1;
485
- this.c4j_1 = this.b4j_1.tg();
486
- this.d4j_1 = this.b4j_1.ug();
494
+ tmp_0.g4m_1 = tmp_1;
495
+ this.h4m_1 = this.g4m_1.tg();
496
+ this.i4m_1 = this.g4m_1.ug();
487
497
  var this_2 = get_LOGGER();
488
498
  if (get_isTraceEnabled(this_2)) {
489
- this_2.j2l('Using provider ' + toString(this.c4j_1) + ' for ' + this.z4i_1.x3b().a3c().toString());
499
+ this_2.m2n('Using provider ' + toString(this.h4m_1) + ' for ' + this.e4m_1.c3f().f3f().toString());
490
500
  }
491
501
 
492
- this.a4j_1.d2(this.c4j_1);
502
+ this.f4m_1.d2(this.h4m_1);
493
503
  this.g9_1 = 6;
494
- suspendResult = invoke$refreshTokenIfNeeded(this.t4i_1, this.u4i_1, this.z4i_1, this.c4j_1, this.w4i_1, this);
504
+ suspendResult = invoke$refreshTokenIfNeeded(this.y4l_1, this.z4l_1, this.e4m_1, this.h4m_1, this.b4m_1, this);
495
505
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
496
506
  return suspendResult;
497
507
  }
498
508
 
499
509
  continue $sm;
500
510
  case 6:
501
- this.e4j_1 = suspendResult;
502
- if (!this.e4j_1) {
503
- return this.z4i_1;
511
+ this.j4m_1 = suspendResult;
512
+ if (!this.j4m_1) {
513
+ return this.e4m_1;
504
514
  } else {
505
515
  this.g9_1 = 7;
506
516
  continue $sm;
@@ -508,18 +518,18 @@
508
518
 
509
519
  case 7:
510
520
  this.g9_1 = 8;
511
- suspendResult = invoke$executeWithNewToken(this.v4i_1, this.z4i_1, this.c4j_1, this.w4i_1, this.d4j_1, this);
521
+ suspendResult = invoke$executeWithNewToken(this.a4m_1, this.e4m_1, this.h4m_1, this.b4m_1, this.i4m_1, this);
512
522
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
513
523
  return suspendResult;
514
524
  }
515
525
 
516
526
  continue $sm;
517
527
  case 8:
518
- this.z4i_1 = suspendResult;
528
+ this.e4m_1 = suspendResult;
519
529
  this.g9_1 = 4;
520
530
  continue $sm;
521
531
  case 9:
522
- return this.z4i_1;
532
+ return this.e4m_1;
523
533
  case 10:
524
534
  throw this.j9_1;
525
535
  }
@@ -534,16 +544,16 @@
534
544
  }
535
545
  while (true);
536
546
  };
537
- protoOf(Auth$lambda$slambda_1).h3r = function ($this$on, originalRequest, completion) {
538
- var i = new Auth$lambda$slambda_1(this.r4i_1, this.s4i_1, this.t4i_1, this.u4i_1, completion);
539
- i.v4i_1 = $this$on;
540
- i.w4i_1 = originalRequest;
547
+ protoOf(Auth$lambda$slambda_1).m3u = function ($this$on, originalRequest, completion) {
548
+ var i = new Auth$lambda$slambda_1(this.w4l_1, this.x4l_1, this.y4l_1, this.z4l_1, completion);
549
+ i.a4m_1 = $this$on;
550
+ i.b4m_1 = originalRequest;
541
551
  return i;
542
552
  };
543
553
  function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
544
554
  var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
545
555
  var l = function ($this$on, originalRequest, $completion) {
546
- return i.g3r($this$on, originalRequest, $completion);
556
+ return i.l3u($this$on, originalRequest, $completion);
547
557
  };
548
558
  l.$arity = 2;
549
559
  return l;
@@ -559,11 +569,11 @@
559
569
  }
560
570
  function $invoke$refreshTokenIfNeededCOROUTINE$0(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
561
571
  CoroutineImpl.call(this, resultContinuation);
562
- this.p4g_1 = tokenVersions;
563
- this.q4g_1 = tokenVersionsAttributeKey;
564
- this.r4g_1 = call;
565
- this.s4g_1 = provider;
566
- this.t4g_1 = request;
572
+ this.u4j_1 = tokenVersions;
573
+ this.v4j_1 = tokenVersionsAttributeKey;
574
+ this.w4j_1 = call;
575
+ this.x4j_1 = provider;
576
+ this.y4j_1 = request;
567
577
  }
568
578
  protoOf($invoke$refreshTokenIfNeededCOROUTINE$0).o9 = function () {
569
579
  var suspendResult = this.i9_1;
@@ -574,17 +584,17 @@
574
584
  case 0:
575
585
  this.h9_1 = 4;
576
586
  var tmp_0 = this;
577
- tmp_0.u4g_1 = this.p4g_1.b2l(this.s4g_1, Auth$lambda$refreshTokenIfNeeded$lambda);
587
+ tmp_0.z4j_1 = this.u4j_1.e2n(this.x4j_1, Auth$lambda$refreshTokenIfNeeded$lambda);
578
588
  var tmp_1 = this;
579
- tmp_1.v4g_1 = this.t4g_1.t39_1.g2f(this.q4g_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
580
- this.w4g_1 = this.v4g_1.k2(this.s4g_1);
581
- if (!(this.w4g_1 == null) && this.w4g_1 >= this.u4g_1.f4g_1.kotlinx$atomicfu$value) {
589
+ tmp_1.a4k_1 = this.y4j_1.y3c_1.k2h(this.v4j_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
590
+ this.b4k_1 = this.a4k_1.k2(this.x4j_1);
591
+ if (!(this.b4k_1 == null) && this.b4k_1 >= this.z4j_1.k4j_1.kotlinx$atomicfu$value) {
582
592
  var this_0 = get_LOGGER();
583
593
  if (get_isTraceEnabled(this_0)) {
584
- this_0.j2l('Refreshing token for ' + this.r4g_1.x3b().a3c().toString());
594
+ this_0.m2n('Refreshing token for ' + this.w4j_1.c3f().f3f().toString());
585
595
  }
586
596
  this.g9_1 = 1;
587
- suspendResult = this.s4g_1.f4j(this.r4g_1.o38(), this);
597
+ suspendResult = this.x4j_1.k4m(this.w4j_1.t3b(), this);
588
598
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
589
599
  return suspendResult;
590
600
  }
@@ -599,13 +609,13 @@
599
609
  if (!ARGUMENT) {
600
610
  var this_1 = get_LOGGER();
601
611
  if (get_isTraceEnabled(this_1)) {
602
- this_1.j2l('Refreshing token failed for ' + this.r4g_1.x3b().a3c().toString());
612
+ this_1.m2n('Refreshing token failed for ' + this.w4j_1.c3f().f3f().toString());
603
613
  }
604
614
  return false;
605
615
  } else {
606
- var tmp2 = this.v4g_1;
607
- var tmp3 = this.s4g_1;
608
- var value = this.u4g_1.f4g_1.atomicfu$incrementAndGet();
616
+ var tmp2 = this.a4k_1;
617
+ var tmp3 = this.x4j_1;
618
+ var value = this.z4j_1.k4j_1.atomicfu$incrementAndGet();
609
619
  tmp2.n2(tmp3, value);
610
620
  this.g9_1 = 2;
611
621
  continue $sm;
@@ -632,11 +642,11 @@
632
642
  };
633
643
  function $invoke$executeWithNewTokenCOROUTINE$1(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
634
644
  CoroutineImpl.call(this, resultContinuation);
635
- this.f4h_1 = _this__u8e3s4;
636
- this.g4h_1 = call;
637
- this.h4h_1 = provider;
638
- this.i4h_1 = oldRequest;
639
- this.j4h_1 = authHeader;
645
+ this.k4k_1 = _this__u8e3s4;
646
+ this.l4k_1 = call;
647
+ this.m4k_1 = provider;
648
+ this.n4k_1 = oldRequest;
649
+ this.o4k_1 = authHeader;
640
650
  }
641
651
  protoOf($invoke$executeWithNewTokenCOROUTINE$1).o9 = function () {
642
652
  var suspendResult = this.i9_1;
@@ -646,24 +656,24 @@
646
656
  switch (tmp) {
647
657
  case 0:
648
658
  this.h9_1 = 3;
649
- this.k4h_1 = new HttpRequestBuilder();
650
- this.k4h_1.k3f(this.i4h_1);
659
+ this.p4k_1 = new HttpRequestBuilder();
660
+ this.p4k_1.p3i(this.n4k_1);
651
661
  this.g9_1 = 1;
652
- suspendResult = this.h4h_1.g4j(this.k4h_1, this.j4h_1, this);
662
+ suspendResult = this.m4k_1.l4m(this.p4k_1, this.o4k_1, this);
653
663
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
654
664
  return suspendResult;
655
665
  }
656
666
 
657
667
  continue $sm;
658
668
  case 1:
659
- this.k4h_1.t39_1.e2f(get_AuthCircuitBreaker(), Unit_instance);
669
+ this.p4k_1.y3c_1.i2h(get_AuthCircuitBreaker(), Unit_instance);
660
670
  var this_0 = get_LOGGER();
661
671
  if (get_isTraceEnabled(this_0)) {
662
- this_0.j2l('Sending new request to ' + this.g4h_1.x3b().a3c().toString());
672
+ this_0.m2n('Sending new request to ' + this.l4k_1.c3f().f3f().toString());
663
673
  }
664
674
 
665
675
  this.g9_1 = 2;
666
- suspendResult = this.f4h_1.k3r(this.k4h_1, this);
676
+ suspendResult = this.k4k_1.p3u(this.p4k_1, this);
667
677
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
668
678
  return suspendResult;
669
679
  }
@@ -738,93 +748,180 @@
738
748
  }
739
749
  function AuthProvider() {
740
750
  }
741
- function $loadTokenCOROUTINE$2(_this__u8e3s4, resultContinuation) {
751
+ function Companion() {
752
+ }
753
+ var Companion_instance;
754
+ function Companion_getInstance_0() {
755
+ return Companion_instance;
756
+ }
757
+ function SetTokenContext() {
758
+ }
759
+ protoOf(SetTokenContext).y = function () {
760
+ return Companion_instance;
761
+ };
762
+ function AuthTokenHolder$setToken$slambda($block, resultContinuation) {
763
+ this.v4m_1 = $block;
742
764
  CoroutineImpl.call(this, resultContinuation);
743
- this.q4j_1 = _this__u8e3s4;
744
765
  }
745
- protoOf($loadTokenCOROUTINE$2).o9 = function () {
766
+ protoOf(AuthTokenHolder$setToken$slambda).x4m = function ($this$withContext, $completion) {
767
+ var tmp = this.s1u($this$withContext, $completion);
768
+ tmp.i9_1 = Unit_instance;
769
+ tmp.j9_1 = null;
770
+ return tmp.o9();
771
+ };
772
+ protoOf(AuthTokenHolder$setToken$slambda).ca = function (p1, $completion) {
773
+ return this.x4m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
774
+ };
775
+ protoOf(AuthTokenHolder$setToken$slambda).o9 = function () {
746
776
  var suspendResult = this.i9_1;
747
777
  $sm: do
748
778
  try {
749
779
  var tmp = this.g9_1;
750
780
  switch (tmp) {
751
781
  case 0:
752
- this.h9_1 = 5;
753
- this.s4j_1 = null;
754
- $l$loop: while (true) {
755
- this.r4j_1 = this.q4j_1.v4j_1.kotlinx$atomicfu$value;
756
- var tmp0_elvis_lhs = this.r4j_1;
757
- var newValue = tmp0_elvis_lhs == null ? CompletableDeferred() : tmp0_elvis_lhs;
758
- if (this.q4j_1.v4j_1.atomicfu$compareAndSet(this.r4j_1, newValue)) {
759
- this.s4j_1 = newValue;
760
- break $l$loop;
761
- }
782
+ this.h9_1 = 2;
783
+ this.g9_1 = 1;
784
+ suspendResult = this.v4m_1(this);
785
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
786
+ return suspendResult;
762
787
  }
763
788
 
764
- if (!(this.r4j_1 == null)) {
765
- this.g9_1 = 4;
766
- suspendResult = this.r4j_1.cr(this);
789
+ continue $sm;
790
+ case 1:
791
+ return suspendResult;
792
+ case 2:
793
+ throw this.j9_1;
794
+ }
795
+ } catch ($p) {
796
+ var e = $p;
797
+ if (this.h9_1 === 2) {
798
+ throw e;
799
+ } else {
800
+ this.g9_1 = this.h9_1;
801
+ this.j9_1 = e;
802
+ }
803
+ }
804
+ while (true);
805
+ };
806
+ protoOf(AuthTokenHolder$setToken$slambda).s1u = function ($this$withContext, completion) {
807
+ var i = new AuthTokenHolder$setToken$slambda(this.v4m_1, completion);
808
+ i.w4m_1 = $this$withContext;
809
+ return i;
810
+ };
811
+ function AuthTokenHolder$setToken$slambda_0($block, resultContinuation) {
812
+ var i = new AuthTokenHolder$setToken$slambda($block, resultContinuation);
813
+ var l = function ($this$withContext, $completion) {
814
+ return i.x4m($this$withContext, $completion);
815
+ };
816
+ l.$arity = 1;
817
+ return l;
818
+ }
819
+ function $loadTokenCOROUTINE$2(_this__u8e3s4, resultContinuation) {
820
+ CoroutineImpl.call(this, resultContinuation);
821
+ this.g4n_1 = _this__u8e3s4;
822
+ }
823
+ protoOf($loadTokenCOROUTINE$2).o9 = function () {
824
+ var suspendResult = this.i9_1;
825
+ $sm: do
826
+ try {
827
+ var tmp = this.g9_1;
828
+ switch (tmp) {
829
+ case 0:
830
+ this.h9_1 = 12;
831
+ if (!(this.g4n_1.p4n_1 == null))
832
+ return this.g4n_1.p4n_1;
833
+ this.h4n_1 = this.g4n_1.p4n_1;
834
+ if (!(this.m9().t9(Companion_instance) == null)) {
835
+ this.g9_1 = 10;
836
+ suspendResult = this.g4n_1.o4n_1(this);
767
837
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
768
838
  return suspendResult;
769
839
  }
770
840
  continue $sm;
771
841
  } else {
842
+ var tmp_0 = this;
843
+ tmp_0.j4n_1 = this.g4n_1.r4n_1;
844
+ this.k4n_1 = this.j4n_1;
845
+ var tmp_1 = this;
846
+ tmp_1.l4n_1 = null;
772
847
  this.g9_1 = 1;
848
+ suspendResult = this.k4n_1.k1d(this.l4n_1, this);
849
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
850
+ return suspendResult;
851
+ }
773
852
  continue $sm;
774
853
  }
775
854
 
776
855
  case 1:
777
- this.h9_1 = 3;
856
+ this.m4n_1 = Unit_instance;
778
857
  this.g9_1 = 2;
779
- suspendResult = this.q4j_1.t4j_1(this);
780
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
781
- return suspendResult;
782
- }
783
-
784
858
  continue $sm;
785
859
  case 2:
786
- var newTokens = suspendResult;
787
- var tmp_0;
788
- if (this.s4j_1 == null) {
789
- throwUninitializedPropertyAccessException('newDeferred');
790
- } else {
791
- tmp_0 = this.s4j_1;
792
- }
793
-
794
- tmp_0.av(newTokens);
795
- return newTokens;
860
+ this.h9_1 = 9;
861
+ this.g4n_1.q4n_1 = true;
862
+ this.g9_1 = 3;
863
+ continue $sm;
796
864
  case 3:
797
- this.h9_1 = 5;
798
- var tmp_1 = this.j9_1;
799
- if (tmp_1 instanceof Error) {
800
- var cause = this.j9_1;
801
- var tmp_2;
802
- if (this.s4j_1 == null) {
803
- throwUninitializedPropertyAccessException('newDeferred');
804
- } else {
805
- tmp_2 = this.s4j_1;
806
- }
807
- tmp_2.cv(cause);
808
- var tmp_3;
809
- if (this.s4j_1 == null) {
810
- throwUninitializedPropertyAccessException('newDeferred');
811
- } else {
812
- tmp_3 = this.s4j_1;
865
+ this.h9_1 = 8;
866
+ if (equals(this.h4n_1, this.g4n_1.p4n_1)) {
867
+ this.g9_1 = 4;
868
+ suspendResult = this.g4n_1.o4n_1(this);
869
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
870
+ return suspendResult;
813
871
  }
814
- this.q4j_1.v4j_1.atomicfu$compareAndSet(tmp_3, null);
815
- throw cause;
872
+ continue $sm;
816
873
  } else {
817
- throw this.j9_1;
874
+ this.g9_1 = 5;
875
+ continue $sm;
818
876
  }
819
877
 
820
878
  case 4:
821
- return suspendResult;
879
+ var ARGUMENT = suspendResult;
880
+ this.g4n_1.p4n_1 = ARGUMENT;
881
+ this.g9_1 = 5;
882
+ continue $sm;
822
883
  case 5:
884
+ this.n4n_1 = Unit_instance;
885
+ this.g9_1 = 6;
886
+ continue $sm;
887
+ case 6:
888
+ this.h9_1 = 9;
889
+ this.g4n_1.q4n_1 = false;
890
+ this.m4n_1 = this.g4n_1.p4n_1;
891
+ this.h9_1 = 12;
892
+ this.g9_1 = 7;
893
+ continue $sm;
894
+ case 7:
895
+ var tmp_2 = this.m4n_1;
896
+ this.h9_1 = 12;
897
+ this.k4n_1.w1c(this.l4n_1);
898
+ this.i4n_1 = tmp_2;
899
+ this.g9_1 = 11;
900
+ continue $sm;
901
+ case 8:
902
+ this.h9_1 = 9;
903
+ var t = this.j9_1;
904
+ this.g4n_1.q4n_1 = false;
905
+ throw t;
906
+ case 9:
907
+ this.h9_1 = 12;
908
+ var t_0 = this.j9_1;
909
+ this.k4n_1.w1c(this.l4n_1);
910
+ throw t_0;
911
+ case 10:
912
+ var ARGUMENT_0 = suspendResult;
913
+ this.g4n_1.p4n_1 = ARGUMENT_0;
914
+ this.i4n_1 = this.g4n_1.p4n_1;
915
+ this.g9_1 = 11;
916
+ continue $sm;
917
+ case 11:
918
+ return this.i4n_1;
919
+ case 12:
823
920
  throw this.j9_1;
824
921
  }
825
922
  } catch ($p) {
826
923
  var e = $p;
827
- if (this.h9_1 === 5) {
924
+ if (this.h9_1 === 12) {
828
925
  throw e;
829
926
  } else {
830
927
  this.g9_1 = this.h9_1;
@@ -835,8 +932,8 @@
835
932
  };
836
933
  function $setTokenCOROUTINE$3(_this__u8e3s4, block, resultContinuation) {
837
934
  CoroutineImpl.call(this, resultContinuation);
838
- this.e4k_1 = _this__u8e3s4;
839
- this.f4k_1 = block;
935
+ this.b4o_1 = _this__u8e3s4;
936
+ this.c4o_1 = block;
840
937
  }
841
938
  protoOf($setTokenCOROUTINE$3).o9 = function () {
842
939
  var suspendResult = this.i9_1;
@@ -845,87 +942,69 @@
845
942
  var tmp = this.g9_1;
846
943
  switch (tmp) {
847
944
  case 0:
848
- this.h9_1 = 5;
849
- this.h4k_1 = null;
850
- $l$loop: while (true) {
851
- this.g4k_1 = this.e4k_1.u4j_1.kotlinx$atomicfu$value;
852
- var tmp0_elvis_lhs = this.g4k_1;
853
- var newValue = tmp0_elvis_lhs == null ? CompletableDeferred() : tmp0_elvis_lhs;
854
- if (this.e4k_1.u4j_1.atomicfu$compareAndSet(this.g4k_1, newValue)) {
855
- this.h4k_1 = newValue;
856
- break $l$loop;
857
- }
945
+ this.h9_1 = 7;
946
+ this.d4o_1 = this.b4o_1.p4n_1;
947
+ this.e4o_1 = this.b4o_1.q4n_1;
948
+ var tmp_0 = this;
949
+ tmp_0.f4o_1 = this.b4o_1.r4n_1;
950
+ this.g4o_1 = this.f4o_1;
951
+ var tmp_1 = this;
952
+ tmp_1.h4o_1 = null;
953
+ this.g9_1 = 1;
954
+ suspendResult = this.g4o_1.k1d(this.h4o_1, this);
955
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
956
+ return suspendResult;
858
957
  }
859
958
 
860
- this.h9_1 = 4;
861
- if (this.g4k_1 == null) {
862
- this.g9_1 = 2;
863
- suspendResult = this.f4k_1(this);
959
+ continue $sm;
960
+ case 1:
961
+ this.i4o_1 = Unit_instance;
962
+ this.g9_1 = 2;
963
+ continue $sm;
964
+ case 2:
965
+ this.h9_1 = 6;
966
+ if (equals(this.d4o_1, this.b4o_1.p4n_1) || this.e4o_1) {
967
+ this.g9_1 = 3;
968
+ var tmp_2 = this.m9().rh(this.b4o_1.s4n_1);
969
+ suspendResult = withContext(tmp_2, AuthTokenHolder$setToken$slambda_0(this.c4o_1, null), this);
864
970
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
865
971
  return suspendResult;
866
972
  }
867
973
  continue $sm;
868
974
  } else {
869
- this.g9_1 = 1;
870
- suspendResult = this.g4k_1.cr(this);
871
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
872
- return suspendResult;
873
- }
975
+ this.g9_1 = 4;
874
976
  continue $sm;
875
977
  }
876
978
 
877
- case 1:
878
- this.i4k_1 = suspendResult;
879
- this.g9_1 = 3;
880
- continue $sm;
881
- case 2:
882
- var newTokens = suspendResult;
883
- var tmp_0;
884
- if (this.h4k_1 == null) {
885
- throwUninitializedPropertyAccessException('newDeferred');
886
- } else {
887
- tmp_0 = this.h4k_1;
979
+ case 3:
980
+ var newValue = suspendResult;
981
+ if (!(newValue == null)) {
982
+ this.b4o_1.p4n_1 = newValue;
888
983
  }
889
984
 
890
- tmp_0.av(newTokens);
891
- this.e4k_1.u4j_1.kotlinx$atomicfu$value = null;
892
- this.i4k_1 = newTokens;
893
- this.g9_1 = 3;
985
+ this.g9_1 = 4;
894
986
  continue $sm;
895
- case 3:
896
- var newToken = this.i4k_1;
897
- this.e4k_1.v4j_1.kotlinx$atomicfu$value = CompletableDeferred_0(newToken);
898
- return newToken;
899
987
  case 4:
900
- this.h9_1 = 5;
901
- var tmp_1 = this.j9_1;
902
- if (tmp_1 instanceof Error) {
903
- var cause = this.j9_1;
904
- var tmp_2;
905
- if (this.h4k_1 == null) {
906
- throwUninitializedPropertyAccessException('newDeferred');
907
- } else {
908
- tmp_2 = this.h4k_1;
909
- }
910
- tmp_2.cv(cause);
911
- var tmp_3;
912
- if (this.h4k_1 == null) {
913
- throwUninitializedPropertyAccessException('newDeferred');
914
- } else {
915
- tmp_3 = this.h4k_1;
916
- }
917
- this.e4k_1.u4j_1.atomicfu$compareAndSet(tmp_3, null);
918
- throw cause;
919
- } else {
920
- throw this.j9_1;
921
- }
922
-
988
+ this.i4o_1 = this.b4o_1.p4n_1;
989
+ this.h9_1 = 7;
990
+ this.g9_1 = 5;
991
+ continue $sm;
923
992
  case 5:
993
+ var tmp_3 = this.i4o_1;
994
+ this.h9_1 = 7;
995
+ this.g4o_1.w1c(this.h4o_1);
996
+ return tmp_3;
997
+ case 6:
998
+ this.h9_1 = 7;
999
+ var t = this.j9_1;
1000
+ this.g4o_1.w1c(this.h4o_1);
1001
+ throw t;
1002
+ case 7:
924
1003
  throw this.j9_1;
925
1004
  }
926
1005
  } catch ($p) {
927
1006
  var e = $p;
928
- if (this.h9_1 === 5) {
1007
+ if (this.h9_1 === 7) {
929
1008
  throw e;
930
1009
  } else {
931
1010
  this.g9_1 = this.h9_1;
@@ -935,17 +1014,19 @@
935
1014
  while (true);
936
1015
  };
937
1016
  function AuthTokenHolder(loadTokens) {
938
- this.t4j_1 = loadTokens;
939
- this.u4j_1 = atomic$ref$1(null);
940
- this.v4j_1 = atomic$ref$1(null);
1017
+ this.o4n_1 = loadTokens;
1018
+ this.p4n_1 = null;
1019
+ this.q4n_1 = false;
1020
+ this.r4n_1 = Mutex();
1021
+ this.s4n_1 = new SetTokenContext();
941
1022
  }
942
- protoOf(AuthTokenHolder).j4k = function ($completion) {
1023
+ protoOf(AuthTokenHolder).j4o = function ($completion) {
943
1024
  var tmp = new $loadTokenCOROUTINE$2(this, $completion);
944
1025
  tmp.i9_1 = Unit_instance;
945
1026
  tmp.j9_1 = null;
946
1027
  return tmp.o9();
947
1028
  };
948
- protoOf(AuthTokenHolder).k4k = function (block, $completion) {
1029
+ protoOf(AuthTokenHolder).k4o = function (block, $completion) {
949
1030
  var tmp = new $setTokenCOROUTINE$3(this, block, $completion);
950
1031
  tmp.i9_1 = Unit_instance;
951
1032
  tmp.j9_1 = null;
@@ -956,19 +1037,19 @@
956
1037
  var this_0 = new BearerAuthConfig();
957
1038
  block(this_0);
958
1039
  // Inline function 'kotlin.with' call
959
- _this__u8e3s4.d4g_1.k(new BearerAuthProvider(this_0.l4k_1, this_0.m4k_1, this_0.n4k_1, this_0.o4k_1));
1040
+ _this__u8e3s4.i4j_1.k(new BearerAuthProvider(this_0.l4o_1, this_0.m4o_1, this_0.n4o_1, this_0.o4o_1));
960
1041
  }
961
1042
  function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
962
1043
  CoroutineImpl.call(this, resultContinuation);
963
1044
  }
964
- protoOf(BearerAuthConfig$refreshTokens$slambda).y4k = function (_this__u8e3s4, $completion) {
965
- var tmp = this.z4k(_this__u8e3s4, $completion);
1045
+ protoOf(BearerAuthConfig$refreshTokens$slambda).y4o = function (_this__u8e3s4, $completion) {
1046
+ var tmp = this.z4o(_this__u8e3s4, $completion);
966
1047
  tmp.i9_1 = Unit_instance;
967
1048
  tmp.j9_1 = null;
968
1049
  return tmp.o9();
969
1050
  };
970
1051
  protoOf(BearerAuthConfig$refreshTokens$slambda).ca = function (p1, $completion) {
971
- return this.y4k(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
1052
+ return this.y4o(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
972
1053
  };
973
1054
  protoOf(BearerAuthConfig$refreshTokens$slambda).o9 = function () {
974
1055
  var suspendResult = this.i9_1;
@@ -987,15 +1068,15 @@
987
1068
  }
988
1069
  while (true);
989
1070
  };
990
- protoOf(BearerAuthConfig$refreshTokens$slambda).z4k = function (_this__u8e3s4, completion) {
1071
+ protoOf(BearerAuthConfig$refreshTokens$slambda).z4o = function (_this__u8e3s4, completion) {
991
1072
  var i = new BearerAuthConfig$refreshTokens$slambda(completion);
992
- i.x4k_1 = _this__u8e3s4;
1073
+ i.x4o_1 = _this__u8e3s4;
993
1074
  return i;
994
1075
  };
995
1076
  function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
996
1077
  var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
997
1078
  var l = function (_this__u8e3s4, $completion) {
998
- return i.y4k(_this__u8e3s4, $completion);
1079
+ return i.y4o(_this__u8e3s4, $completion);
999
1080
  };
1000
1081
  l.$arity = 1;
1001
1082
  return l;
@@ -1003,14 +1084,14 @@
1003
1084
  function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
1004
1085
  CoroutineImpl.call(this, resultContinuation);
1005
1086
  }
1006
- protoOf(BearerAuthConfig$loadTokens$slambda).i4l = function ($completion) {
1007
- var tmp = this.j4l($completion);
1087
+ protoOf(BearerAuthConfig$loadTokens$slambda).i4p = function ($completion) {
1088
+ var tmp = this.j4p($completion);
1008
1089
  tmp.i9_1 = Unit_instance;
1009
1090
  tmp.j9_1 = null;
1010
1091
  return tmp.o9();
1011
1092
  };
1012
1093
  protoOf(BearerAuthConfig$loadTokens$slambda).hb = function ($completion) {
1013
- return this.i4l($completion);
1094
+ return this.i4p($completion);
1014
1095
  };
1015
1096
  protoOf(BearerAuthConfig$loadTokens$slambda).o9 = function () {
1016
1097
  var suspendResult = this.i9_1;
@@ -1029,13 +1110,13 @@
1029
1110
  }
1030
1111
  while (true);
1031
1112
  };
1032
- protoOf(BearerAuthConfig$loadTokens$slambda).j4l = function (completion) {
1113
+ protoOf(BearerAuthConfig$loadTokens$slambda).j4p = function (completion) {
1033
1114
  return new BearerAuthConfig$loadTokens$slambda(completion);
1034
1115
  };
1035
1116
  function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
1036
1117
  var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
1037
1118
  var l = function ($completion) {
1038
- return i.i4l($completion);
1119
+ return i.i4p($completion);
1039
1120
  };
1040
1121
  l.$arity = 0;
1041
1122
  return l;
@@ -1045,56 +1126,56 @@
1045
1126
  }
1046
1127
  function BearerAuthConfig() {
1047
1128
  var tmp = this;
1048
- tmp.l4k_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
1129
+ tmp.l4o_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
1049
1130
  var tmp_0 = this;
1050
- tmp_0.m4k_1 = BearerAuthConfig$loadTokens$slambda_0(null);
1131
+ tmp_0.m4o_1 = BearerAuthConfig$loadTokens$slambda_0(null);
1051
1132
  var tmp_1 = this;
1052
- tmp_1.n4k_1 = BearerAuthConfig$sendWithoutRequest$lambda;
1053
- this.o4k_1 = null;
1133
+ tmp_1.n4o_1 = BearerAuthConfig$sendWithoutRequest$lambda;
1134
+ this.o4o_1 = null;
1054
1135
  }
1055
- protoOf(BearerAuthConfig).k4l = function (block) {
1056
- this.l4k_1 = block;
1136
+ protoOf(BearerAuthConfig).k4p = function (block) {
1137
+ this.l4o_1 = block;
1057
1138
  };
1058
1139
  function RefreshTokensParams(client, response, oldTokens) {
1059
- this.l4l_1 = client;
1060
- this.m4l_1 = response;
1061
- this.n4l_1 = oldTokens;
1140
+ this.l4p_1 = client;
1141
+ this.m4p_1 = response;
1142
+ this.n4p_1 = oldTokens;
1062
1143
  }
1063
- protoOf(RefreshTokensParams).o4l = function (_this__u8e3s4) {
1064
- _this__u8e3s4.t39_1.e2f(get_AuthCircuitBreaker(), Unit_instance);
1144
+ protoOf(RefreshTokensParams).o4p = function (_this__u8e3s4) {
1145
+ _this__u8e3s4.y3c_1.i2h(get_AuthCircuitBreaker(), Unit_instance);
1065
1146
  };
1066
1147
  function BearerTokens(accessToken, refreshToken) {
1067
- this.p4l_1 = accessToken;
1068
- this.q4l_1 = refreshToken;
1148
+ this.p4p_1 = accessToken;
1149
+ this.q4p_1 = refreshToken;
1069
1150
  }
1070
1151
  function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
1071
1152
  return true;
1072
1153
  }
1073
1154
  function BearerAuthProvider$addRequestHeaders$lambda($token) {
1074
1155
  return function ($this$headers) {
1075
- var tokenValue = 'Bearer ' + $token.p4l_1;
1156
+ var tokenValue = 'Bearer ' + $token.p4p_1;
1076
1157
  var tmp;
1077
- if ($this$headers.a2h(HttpHeaders_getInstance().g2o_1)) {
1078
- $this$headers.g2h(HttpHeaders_getInstance().g2o_1);
1158
+ if ($this$headers.e2j(HttpHeaders_getInstance().j2q_1)) {
1159
+ $this$headers.k2j(HttpHeaders_getInstance().j2q_1);
1079
1160
  tmp = Unit_instance;
1080
1161
  }
1081
- $this$headers.d2h(HttpHeaders_getInstance().g2o_1, tokenValue);
1162
+ $this$headers.h2j(HttpHeaders_getInstance().j2q_1, tokenValue);
1082
1163
  return Unit_instance;
1083
1164
  };
1084
1165
  }
1085
1166
  function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
1086
- this.z4l_1 = this$0;
1087
- this.a4m_1 = $response;
1167
+ this.z4p_1 = this$0;
1168
+ this.a4q_1 = $response;
1088
1169
  CoroutineImpl.call(this, resultContinuation);
1089
1170
  }
1090
- protoOf(BearerAuthProvider$refreshToken$slambda).f4m = function ($completion) {
1091
- var tmp = this.j4l($completion);
1171
+ protoOf(BearerAuthProvider$refreshToken$slambda).f4q = function ($completion) {
1172
+ var tmp = this.j4p($completion);
1092
1173
  tmp.i9_1 = Unit_instance;
1093
1174
  tmp.j9_1 = null;
1094
1175
  return tmp.o9();
1095
1176
  };
1096
1177
  protoOf(BearerAuthProvider$refreshToken$slambda).hb = function ($completion) {
1097
- return this.f4m($completion);
1178
+ return this.f4q($completion);
1098
1179
  };
1099
1180
  protoOf(BearerAuthProvider$refreshToken$slambda).o9 = function () {
1100
1181
  var suspendResult = this.i9_1;
@@ -1104,20 +1185,20 @@
1104
1185
  switch (tmp) {
1105
1186
  case 0:
1106
1187
  this.h9_1 = 3;
1107
- this.b4m_1 = this.z4l_1.g4m_1;
1108
- this.c4m_1 = this.a4m_1.x3c().j38_1;
1188
+ this.b4q_1 = this.z4p_1.g4q_1;
1189
+ this.c4q_1 = this.a4q_1.c3g().o3b_1;
1109
1190
  this.g9_1 = 1;
1110
- suspendResult = this.z4l_1.j4m_1.j4k(this);
1191
+ suspendResult = this.z4p_1.j4q_1.j4o(this);
1111
1192
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1112
1193
  return suspendResult;
1113
1194
  }
1114
1195
 
1115
1196
  continue $sm;
1116
1197
  case 1:
1117
- this.d4m_1 = suspendResult;
1118
- this.e4m_1 = new RefreshTokensParams(this.c4m_1, this.a4m_1, this.d4m_1);
1198
+ this.d4q_1 = suspendResult;
1199
+ this.e4q_1 = new RefreshTokensParams(this.c4q_1, this.a4q_1, this.d4q_1);
1119
1200
  this.g9_1 = 2;
1120
- suspendResult = this.b4m_1(this.e4m_1, this);
1201
+ suspendResult = this.b4q_1(this.e4q_1, this);
1121
1202
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1122
1203
  return suspendResult;
1123
1204
  }
@@ -1139,22 +1220,22 @@
1139
1220
  }
1140
1221
  while (true);
1141
1222
  };
1142
- protoOf(BearerAuthProvider$refreshToken$slambda).j4l = function (completion) {
1143
- return new BearerAuthProvider$refreshToken$slambda(this.z4l_1, this.a4m_1, completion);
1223
+ protoOf(BearerAuthProvider$refreshToken$slambda).j4p = function (completion) {
1224
+ return new BearerAuthProvider$refreshToken$slambda(this.z4p_1, this.a4q_1, completion);
1144
1225
  };
1145
1226
  function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
1146
1227
  var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
1147
1228
  var l = function ($completion) {
1148
- return i.f4m($completion);
1229
+ return i.f4q($completion);
1149
1230
  };
1150
1231
  l.$arity = 0;
1151
1232
  return l;
1152
1233
  }
1153
1234
  function $addRequestHeadersCOROUTINE$4(_this__u8e3s4, request, authHeader, resultContinuation) {
1154
1235
  CoroutineImpl.call(this, resultContinuation);
1155
- this.s4m_1 = _this__u8e3s4;
1156
- this.t4m_1 = request;
1157
- this.u4m_1 = authHeader;
1236
+ this.s4q_1 = _this__u8e3s4;
1237
+ this.t4q_1 = request;
1238
+ this.u4q_1 = authHeader;
1158
1239
  }
1159
1240
  protoOf($addRequestHeadersCOROUTINE$4).o9 = function () {
1160
1241
  var suspendResult = this.i9_1;
@@ -1165,7 +1246,7 @@
1165
1246
  case 0:
1166
1247
  this.h9_1 = 2;
1167
1248
  this.g9_1 = 1;
1168
- suspendResult = this.s4m_1.j4m_1.j4k(this);
1249
+ suspendResult = this.s4q_1.j4q_1.j4o(this);
1169
1250
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1170
1251
  return suspendResult;
1171
1252
  }
@@ -1181,7 +1262,7 @@
1181
1262
  }
1182
1263
 
1183
1264
  var token = tmp_0;
1184
- headers(this.t4m_1, BearerAuthProvider$addRequestHeaders$lambda(token));
1265
+ headers(this.t4q_1, BearerAuthProvider$addRequestHeaders$lambda(token));
1185
1266
  return Unit_instance;
1186
1267
  case 2:
1187
1268
  throw this.j9_1;
@@ -1199,8 +1280,8 @@
1199
1280
  };
1200
1281
  function $refreshTokenCOROUTINE$5(_this__u8e3s4, response, resultContinuation) {
1201
1282
  CoroutineImpl.call(this, resultContinuation);
1202
- this.d4n_1 = _this__u8e3s4;
1203
- this.e4n_1 = response;
1283
+ this.d4r_1 = _this__u8e3s4;
1284
+ this.e4r_1 = response;
1204
1285
  }
1205
1286
  protoOf($refreshTokenCOROUTINE$5).o9 = function () {
1206
1287
  var suspendResult = this.i9_1;
@@ -1211,7 +1292,7 @@
1211
1292
  case 0:
1212
1293
  this.h9_1 = 2;
1213
1294
  this.g9_1 = 1;
1214
- suspendResult = this.d4n_1.j4m_1.k4k(BearerAuthProvider$refreshToken$slambda_0(this.d4n_1, this.e4n_1, null), this);
1295
+ suspendResult = this.d4r_1.j4q_1.k4o(BearerAuthProvider$refreshToken$slambda_0(this.d4r_1, this.e4r_1, null), this);
1215
1296
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1216
1297
  return suspendResult;
1217
1298
  }
@@ -1242,53 +1323,60 @@
1242
1323
  tmp = sendWithoutRequestCallback;
1243
1324
  }
1244
1325
  sendWithoutRequestCallback = tmp;
1245
- this.g4m_1 = refreshTokens;
1246
- this.h4m_1 = sendWithoutRequestCallback;
1247
- this.i4m_1 = realm;
1248
- this.j4m_1 = new AuthTokenHolder(loadTokens);
1326
+ this.g4q_1 = refreshTokens;
1327
+ this.h4q_1 = sendWithoutRequestCallback;
1328
+ this.i4q_1 = realm;
1329
+ this.j4q_1 = new AuthTokenHolder(loadTokens);
1249
1330
  }
1250
- protoOf(BearerAuthProvider).h4j = function () {
1331
+ protoOf(BearerAuthProvider).m4m = function () {
1251
1332
  var message = 'Deprecated';
1252
1333
  throw IllegalStateException_init_$Create$(toString(message));
1253
1334
  };
1254
- protoOf(BearerAuthProvider).h4i = function (request) {
1255
- return this.h4m_1(request);
1335
+ protoOf(BearerAuthProvider).m4l = function (request) {
1336
+ return this.h4q_1(request);
1256
1337
  };
1257
- protoOf(BearerAuthProvider).g4g = function (auth) {
1258
- if (!(auth.m2x_1 === 'Bearer')) {
1259
- get_LOGGER().j2l('Bearer Auth Provider is not applicable for ' + auth.toString());
1338
+ protoOf(BearerAuthProvider).l4j = function (auth) {
1339
+ if (!(auth.p2z_1 === 'Bearer')) {
1340
+ get_LOGGER().m2n('Bearer Auth Provider is not applicable for ' + auth.toString());
1260
1341
  return false;
1261
1342
  }
1262
1343
  var tmp;
1263
- if (this.i4m_1 == null) {
1344
+ if (this.i4q_1 == null) {
1264
1345
  tmp = true;
1265
1346
  } else {
1266
1347
  if (!(auth instanceof Parameterized)) {
1267
1348
  tmp = false;
1268
1349
  } else {
1269
- tmp = auth.s2n('realm') == this.i4m_1;
1350
+ tmp = auth.v2p('realm') == this.i4q_1;
1270
1351
  }
1271
1352
  }
1272
1353
  var isSameRealm = tmp;
1273
1354
  if (!isSameRealm) {
1274
- get_LOGGER().j2l('Bearer Auth Provider is not applicable for this realm');
1355
+ get_LOGGER().m2n('Bearer Auth Provider is not applicable for this realm');
1275
1356
  }
1276
1357
  return isSameRealm;
1277
1358
  };
1278
- protoOf(BearerAuthProvider).g4j = function (request, authHeader, $completion) {
1359
+ protoOf(BearerAuthProvider).l4m = function (request, authHeader, $completion) {
1279
1360
  var tmp = new $addRequestHeadersCOROUTINE$4(this, request, authHeader, $completion);
1280
1361
  tmp.i9_1 = Unit_instance;
1281
1362
  tmp.j9_1 = null;
1282
1363
  return tmp.o9();
1283
1364
  };
1284
- protoOf(BearerAuthProvider).f4j = function (response, $completion) {
1365
+ protoOf(BearerAuthProvider).k4m = function (response, $completion) {
1285
1366
  var tmp = new $refreshTokenCOROUTINE$5(this, response, $completion);
1286
1367
  tmp.i9_1 = Unit_instance;
1287
1368
  tmp.j9_1 = null;
1288
1369
  return tmp.o9();
1289
1370
  };
1290
1371
  //region block: post-declaration
1291
- protoOf(BearerAuthProvider).i4i = addRequestHeaders$default;
1372
+ protoOf(SetTokenContext).t9 = get;
1373
+ protoOf(SetTokenContext).qh = fold;
1374
+ protoOf(SetTokenContext).ph = minusKey;
1375
+ protoOf(SetTokenContext).rh = plus;
1376
+ protoOf(BearerAuthProvider).n4l = addRequestHeaders$default;
1377
+ //endregion
1378
+ //region block: init
1379
+ Companion_instance = new Companion();
1292
1380
  //endregion
1293
1381
  //region block: exports
1294
1382
  _.$_$ = _.$_$ || {};